From 724a9129f22ae6c38348536ce0dcf6c233582f57 Mon Sep 17 00:00:00 2001 From: Ashley Claymore Date: Wed, 18 Sep 2024 17:56:37 +0100 Subject: [PATCH] Updates --- .nojekyll | 0 assets/base.min.css | 1 + assets/benchmark-chart-1.jpg | Bin 0 -> 29081 bytes assets/benchmark-chart-2.jpg | Bin 0 -> 32348 bytes index.html | 204 + .../prism-themes/themes/prism-vs.min.css | 1 + .../themes/prism-vsc-dark-plus.min.css | 1 + play/codicon-37A3DWZT.ttf | Bin 0 -> 80340 bytes play/index.html | 103 + play/play.css | 1 + play/play.js | 3293 + vs/editor/editor.worker.js | 14 + vs/language/typescript/ts.worker.js | 51344 ++++++++++++++++ 13 files changed, 54962 insertions(+) create mode 100644 .nojekyll create mode 100644 assets/base.min.css create mode 100644 assets/benchmark-chart-1.jpg create mode 100644 assets/benchmark-chart-2.jpg create mode 100644 index.html create mode 100644 node_modules/prism-themes/themes/prism-vs.min.css create mode 100644 node_modules/prism-themes/themes/prism-vsc-dark-plus.min.css create mode 100644 play/codicon-37A3DWZT.ttf create mode 100644 play/index.html create mode 100644 play/play.css create mode 100644 play/play.js create mode 100644 vs/editor/editor.worker.js create mode 100644 vs/language/typescript/ts.worker.js diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/assets/base.min.css b/assets/base.min.css new file mode 100644 index 0000000..6a68e3e --- /dev/null +++ b/assets/base.min.css @@ -0,0 +1 @@ +@import"https://assets.bwbx.io/font-service/css/AvenirNextP2ForBBG:100,100i,300,300i,400,400i,500,500i,600,600i,700,700i,900,900i|RobotoMono:400,400i,700,700i/styled-font-face.css";@layer{:root,:host{--cds-color-core-amber-01: #ffdfb7;--cds-color-core-amber-02: #ffd093;--cds-color-core-amber-03: #ffc070;--cds-color-core-amber-04: #ffb04c;--cds-color-core-amber-05: #ffa028;--cds-color-core-amber-06: #db7500;--cds-color-core-amber-07: #b76100;--cds-color-core-amber-08: #924e00;--cds-color-core-amber-09: #6e3a00;--cds-color-core-amber-10: #492600;--cds-color-core-black: #000000;--cds-color-core-blue-01: #cce3ff;--cds-color-core-blue-02: #99c7ff;--cds-color-core-blue-03: #66abff;--cds-color-core-blue-04: #2b8eff;--cds-color-core-blue-05: #0073ff;--cds-color-core-blue-06: #0062dd;--cds-color-core-blue-07: #0051ba;--cds-color-core-blue-08: #004098;--cds-color-core-blue-09: #003075;--cds-color-core-blue-10: #001f53;--cds-color-core-green-01: #c5facf;--cds-color-core-green-02: #8af59e;--cds-color-core-green-03: #50f06e;--cds-color-core-green-04: #35d655;--cds-color-core-green-05: #1bbc3c;--cds-color-core-green-06: #00a223;--cds-color-core-green-07: #00851c;--cds-color-core-green-08: #006716;--cds-color-core-green-09: #004a0f;--cds-color-core-green-10: #002c09;--cds-color-core-grey-01: #f0f0f0;--cds-color-core-grey-02: #ebebeb;--cds-color-core-grey-03: #e1e1e1;--cds-color-core-grey-04: #d7d7d7;--cds-color-core-grey-05: #cdcdcd;--cds-color-core-grey-06: #bebebe;--cds-color-core-grey-07: #a5a5a5;--cds-color-core-grey-08: #8c8c8c;--cds-color-core-grey-09: #787878;--cds-color-core-grey-10: #646464;--cds-color-core-grey-11: #505050;--cds-color-core-grey-12: #414141;--cds-color-core-grey-13: #373737;--cds-color-core-grey-14: #282828;--cds-color-core-grey-15: #232323;--cds-color-core-grey-16: #1e1e1e;--cds-color-core-grey-17: #191919;--cds-color-core-grey-18: #141414;--cds-color-core-magenta-01: #fbb7e8;--cds-color-core-magenta-02: #f993dd;--cds-color-core-magenta-03: #f770d2;--cds-color-core-magenta-04: #f54cc6;--cds-color-core-magenta-05: #f328bb;--cds-color-core-magenta-06: #d022a0;--cds-color-core-magenta-07: #ae1d86;--cds-color-core-magenta-08: #8b176b;--cds-color-core-magenta-09: #681150;--cds-color-core-magenta-10: #450b35;--cds-color-core-none: transparent;--cds-color-core-orange-01: #fdc8b7;--cds-color-core-orange-02: #fdac93;--cds-color-core-orange-03: #fc9170;--cds-color-core-orange-04: #fb754c;--cds-color-core-orange-05: #fa5a28;--cds-color-core-orange-06: #d64d22;--cds-color-core-orange-07: #b3401d;--cds-color-core-orange-08: #8f3317;--cds-color-core-orange-09: #6b2711;--cds-color-core-orange-10: #471a0b;--cds-color-core-purple-01: #edd0ff;--cds-color-core-purple-02: #e4b9ff;--cds-color-core-purple-03: #daa2ff;--cds-color-core-purple-04: #d18aff;--cds-color-core-purple-05: #c873ff;--cds-color-core-purple-06: #ab63db;--cds-color-core-purple-07: #8f52b6;--cds-color-core-purple-08: #724292;--cds-color-core-purple-09: #56316d;--cds-color-core-purple-10: #392149;--cds-color-core-red-01: #ffccd2;--cds-color-core-red-02: #ff7486;--cds-color-core-red-03: #ff415c;--cds-color-core-red-04: #ff2c4a;--cds-color-core-red-05: #e61e3c;--cds-color-core-red-06: #c31834;--cds-color-core-red-07: #a1122c;--cds-color-core-red-08: #7e0c24;--cds-color-core-red-09: #5c061c;--cds-color-core-red-10: #390014;--cds-color-core-teal-01: #dffcff;--cds-color-core-teal-02: #bff9ff;--cds-color-core-teal-03: #80f3ff;--cds-color-core-teal-04: #40ecff;--cds-color-core-teal-05: #00e6ff;--cds-color-core-teal-06: #00c2d7;--cds-color-core-teal-07: #009eb0;--cds-color-core-teal-08: #007b88;--cds-color-core-teal-09: #005761;--cds-color-core-teal-10: #003339;--cds-color-core-white: #ffffff;--cds-color-core-yellow-01: #fff9cc;--cds-color-core-yellow-02: #fff399;--cds-color-core-yellow-03: #ffed66;--cds-color-core-yellow-04: #ffe733;--cds-color-core-yellow-05: #ffe100;--cds-color-core-yellow-06: #d7be00;--cds-color-core-yellow-07: #b09b00;--cds-color-core-yellow-08: #887800;--cds-color-core-yellow-09: #615500;--cds-color-core-yellow-10: #393200;--cds-font-core-decoration-none: none;--cds-font-core-decoration-underline: underline;--cds-font-core-family-avenir: AvenirNextP2ForBBG, Arial, Helvetica, sans-serif;--cds-font-core-family-roboto: RobotoMono, monospace;--cds-font-core-scale-01-fontsize: .5rem;--cds-font-core-scale-01-lineheight: 1.375;--cds-font-core-scale-02-fontsize: .625rem;--cds-font-core-scale-02-lineheight: 1.2;--cds-font-core-scale-03-fontsize: .75rem;--cds-font-core-scale-03-lineheight: 1.3;--cds-font-core-scale-04-fontsize: .875rem;--cds-font-core-scale-04-lineheight: 1.429;--cds-font-core-scale-05-fontsize: 1rem;--cds-font-core-scale-05-lineheight: 1.5;--cds-font-core-scale-06-fontsize: 1.25rem;--cds-font-core-scale-06-lineheight: 1.3;--cds-font-core-scale-07-fontsize: 1.5rem;--cds-font-core-scale-07-lineheight: 1.25;--cds-font-core-scale-08-fontsize: 1.75rem;--cds-font-core-scale-08-lineheight: 1.214;--cds-font-core-scale-09-fontsize: 2.25rem;--cds-font-core-scale-09-lineheight: 1.167;--cds-font-core-scale-10-fontsize: 2.75rem;--cds-font-core-scale-10-lineheight: 1.273;--cds-font-core-scale-11-fontsize: 3.25rem;--cds-font-core-scale-11-lineheight: 1.154;--cds-font-core-scale-12-fontsize: 4.25rem;--cds-font-core-scale-12-lineheight: 1.088;--cds-font-core-scale-13-fontsize: 5.25rem;--cds-font-core-scale-13-lineheight: 1.143;--cds-font-core-scale-14-fontsize: 6.25rem;--cds-font-core-scale-14-lineheight: 1.12;--cds-font-core-transform-uppercase: uppercase;--cds-font-core-weight-bold: 700;--cds-font-core-weight-heavy: 900;--cds-font-core-weight-light: 300;--cds-font-core-weight-medium: 500;--cds-font-core-weight-regular: 400;--cds-font-core-weight-semibold: 600;--cds-font-core-weight-thin: 100;--cds-opacity-core-01: .05;--cds-opacity-core-02: .15;--cds-opacity-core-03: .25;--cds-opacity-core-04: .35;--cds-opacity-core-05: .45;--cds-opacity-core-06: .55;--cds-opacity-core-07: .65;--cds-opacity-core-08: .75;--cds-opacity-core-09: .85;--cds-opacity-core-10: .95;--cds-size-core-000-px: 0px;--cds-size-core-000-rem: 0rem;--cds-size-core-005-px: 2px;--cds-size-core-005-rem: .125rem;--cds-size-core-010-px: 4px;--cds-size-core-010-rem: .25rem;--cds-size-core-020-px: 8px;--cds-size-core-020-rem: .5rem;--cds-size-core-030-px: 12px;--cds-size-core-030-rem: .75rem;--cds-size-core-040-px: 16px;--cds-size-core-040-rem: 1rem;--cds-size-core-050-px: 20px;--cds-size-core-050-rem: 1.25rem;--cds-size-core-060-px: 24px;--cds-size-core-060-rem: 1.5rem;--cds-size-core-080-px: 32px;--cds-size-core-080-rem: 2rem;--cds-size-core-100-px: 40px;--cds-size-core-100-rem: 2.5rem;--cds-size-core-230-px: 92px;--cds-size-core-230-rem: 5.75rem;--cds-font-base-family: var(--cds-font-core-family-avenir);--cds-font-base-height: var(--cds-font-core-scale-04-lineheight);--cds-font-base-size: var(--cds-font-core-scale-04-fontsize);--cds-font-body-default-fontsize: var(--cds-font-core-scale-04-fontsize);--cds-font-body-default-lineheight: var(--cds-font-core-scale-04-lineheight);--cds-font-body-default-weight: var(--cds-font-core-weight-regular);--cds-font-body-default-weight-bold: var(--cds-font-core-weight-medium);--cds-font-body-large-fontsize: var(--cds-font-core-scale-05-fontsize);--cds-font-body-large-lineheight: var(--cds-font-core-scale-05-lineheight);--cds-font-body-large-weight: var(--cds-font-core-weight-regular);--cds-font-body-small-fontsize: var(--cds-font-core-scale-03-fontsize);--cds-font-body-small-lineheight: var(--cds-font-core-scale-03-lineheight);--cds-font-body-small-weight: var(--cds-font-core-weight-regular);--cds-font-button-label-fontsize: var(--cds-font-core-scale-04-fontsize);--cds-font-button-label-lineheight: var(--cds-font-core-scale-04-lineheight);--cds-font-button-label-weight: var(--cds-font-core-weight-medium);--cds-font-code-family: var(--cds-font-core-family-roboto);--cds-font-datadisplay-01-fontsize: var(--cds-font-core-scale-08-fontsize);--cds-font-datadisplay-01-lineheight: var(--cds-font-core-scale-08-lineheight);--cds-font-datadisplay-01-weight: var(--cds-font-core-weight-regular);--cds-font-datadisplay-02-fontsize: var(--cds-font-core-scale-07-fontsize);--cds-font-datadisplay-02-lineheight: var(--cds-font-core-scale-07-lineheight);--cds-font-datadisplay-02-weight: var(--cds-font-core-weight-regular);--cds-font-display-01-fontsize: var(--cds-font-core-scale-12-fontsize);--cds-font-display-01-lineheight: var(--cds-font-core-scale-12-lineheight);--cds-font-display-01-weight: var(--cds-font-core-weight-regular);--cds-font-display-01-weight-bold: var(--cds-font-core-weight-bold);--cds-font-display-02-fontsize: var(--cds-font-core-scale-11-fontsize);--cds-font-display-02-lineheight: var(--cds-font-core-scale-11-lineheight);--cds-font-display-02-weight: var(--cds-font-core-weight-regular);--cds-font-display-02-weight-bold: var(--cds-font-core-weight-bold);--cds-font-display-03-fontsize: var(--cds-font-core-scale-10-fontsize);--cds-font-display-03-lineheight: var(--cds-font-core-scale-10-lineheight);--cds-font-display-03-weight: var(--cds-font-core-weight-regular);--cds-font-display-03-weight-bold: var(--cds-font-core-weight-bold);--cds-font-groupheading-01-fontsize: var(--cds-font-core-scale-04-fontsize);--cds-font-groupheading-01-lineheight: var(--cds-font-core-scale-04-lineheight);--cds-font-groupheading-01-transform: var(--cds-font-core-transform-uppercase);--cds-font-groupheading-01-weight: var(--cds-font-core-weight-medium);--cds-font-groupheading-02-fontsize: var(--cds-font-core-scale-03-fontsize);--cds-font-groupheading-02-lineheight: var(--cds-font-core-scale-03-lineheight);--cds-font-groupheading-02-transform: var(--cds-font-core-transform-uppercase);--cds-font-groupheading-02-weight: var(--cds-font-core-weight-semibold);--cds-font-heading-01-fontsize: var(--cds-font-core-scale-09-fontsize);--cds-font-heading-01-lineheight: var(--cds-font-core-scale-09-lineheight);--cds-font-heading-01-weight: var(--cds-font-core-weight-medium);--cds-font-heading-02-fontsize: var(--cds-font-core-scale-08-fontsize);--cds-font-heading-02-lineheight: var(--cds-font-core-scale-08-lineheight);--cds-font-heading-02-weight: var(--cds-font-core-weight-medium);--cds-font-heading-03-fontsize: var(--cds-font-core-scale-07-fontsize);--cds-font-heading-03-lineheight: var(--cds-font-core-scale-07-lineheight);--cds-font-heading-03-weight: var(--cds-font-core-weight-medium);--cds-font-heading-04-fontsize: var(--cds-font-core-scale-06-fontsize);--cds-font-heading-04-lineheight: var(--cds-font-core-scale-03-lineheight);--cds-font-heading-04-weight: var(--cds-font-core-weight-medium);--cds-font-heading-05-fontsize: var(--cds-font-core-scale-05-fontsize);--cds-font-heading-05-lineheight: var(--cds-font-core-scale-05-lineheight);--cds-font-heading-05-weight: var(--cds-font-core-weight-semibold);--cds-font-heading-06-fontsize: var(--cds-font-core-scale-04-fontsize);--cds-font-heading-06-lineheight: var(--cds-font-core-scale-04-lineheight);--cds-font-heading-06-weight: var(--cds-font-core-weight-semibold);--cds-font-heading-07-fontsize: var(--cds-font-core-scale-03-fontsize);--cds-font-heading-07-lineheight: var(--cds-font-core-scale-03-lineheight);--cds-font-heading-07-weight: var(--cds-font-core-weight-semibold);--cds-font-label-default-fontsize: var(--cds-font-core-scale-04-fontsize);--cds-font-label-default-lineheight: var(--cds-font-core-scale-04-lineheight);--cds-font-label-default-weight: var(--cds-font-core-weight-medium);--cds-font-label-default-weight-bold: var(--cds-font-core-weight-semibold);--cds-font-label-small-fontsize: var(--cds-font-core-scale-03-fontsize);--cds-font-label-small-lineheight: var(--cds-font-core-scale-03-lineheight);--cds-font-label-small-weight: var(--cds-font-core-weight-semibold);--cds-font-label-xsmall-fontsize: var(--cds-font-core-scale-02-fontsize);--cds-font-label-xsmall-lineheight: var(--cds-font-core-scale-02-lineheight);--cds-font-label-xsmall-transform: var(--cds-font-core-transform-uppercase);--cds-font-label-xsmall-weight: var(--cds-font-core-weight-bold);--cds-font-link-default-decoration: var(--cds-font-core-decoration-none);--cds-font-link-inline-decoration: var(--cds-font-core-decoration-underline);--cds-font-link-tablerow-decoration: var(--cds-font-core-decoration-underline)}:root,:host,[data-cds-sizing=regular],[data-cds-sizing="regular*"] *,[data-cds-sizing="regular[*]"] tbody :where(td,th) *,[data-cds-sizing=compact] [data-cds-sizing=regular],[data-cds-sizing="compact*"] [data-cds-sizing=regular],[data-cds-sizing="compact*"] [data-cds-sizing=regular] *,[data-cds-sizing="compact[*]"] [data-cds-sizing=regular],[data-cds-sizing="compact[*]"] [data-cds-sizing=regular] *{--cds-button-size-icongap: var(--cds-size-core-020-px);--cds-button-size-minheight: var(--cds-size-core-100-px);--cds-button-size-minwidth: var(--cds-size-core-100-px);--cds-button-size-padding-bottom: var(--cds-size-core-020-px);--cds-button-size-padding-left: var(--cds-size-core-030-px);--cds-button-size-padding-right: var(--cds-size-core-030-px);--cds-button-size-padding-top: var(--cds-size-core-020-px);--cds-cell-size-minheight: var(--cds-size-core-100-px);--cds-cell-size-minwidth: var(--cds-size-core-100-px);--cds-cell-size-padding-bottom: var(--cds-size-core-020-px);--cds-cell-size-padding-left: 5px;--cds-cell-size-padding-right: 5px;--cds-cell-size-padding-top: var(--cds-size-core-020-px);--cds-input-helpertext-size-margin-top: var(--cds-size-core-010-px);--cds-input-label-size-icongap: var(--cds-size-core-010-px);--cds-input-label-size-margin-bottom: var(--cds-size-core-020-px);--cds-input-size-icongap: var(--cds-size-core-020-px);--cds-input-size-minheight: var(--cds-size-core-100-px);--cds-input-size-minwidth: var(--cds-size-core-000-px);--cds-input-size-padding-bottom: var(--cds-size-core-020-px);--cds-input-size-padding-left: var(--cds-size-core-030-px);--cds-input-size-padding-right: var(--cds-size-core-030-px);--cds-input-size-padding-top: var(--cds-size-core-020-px);--cds-input-token-size-padding-bottom: var(--cds-size-core-005-px);--cds-input-token-size-padding-left: 10px;--cds-input-token-size-padding-right: 10px;--cds-input-token-size-padding-top: var(--cds-size-core-005-px);--cds-menu-actionitem-size-minheight: var(--cds-size-core-100-px);--cds-menu-actionitem-size-padding-bottom: var(--cds-size-core-030-px);--cds-menu-actionitem-size-padding-top: var(--cds-size-core-030-px);--cds-menu-group-size-margin-top: var(--cds-size-core-030-px);--cds-menu-group-size-minheight: var(--cds-size-core-080-px);--cds-menu-group-size-padding-bottom: 6px;--cds-menu-group-size-padding-left: 14px;--cds-menu-group-size-padding-right: 14px;--cds-menu-group-size-padding-top: 6px;--cds-menu-item-size-margin-top: var(--cds-size-core-010-px);--cds-menu-item-size-minheight: var(--cds-size-core-080-px);--cds-menu-item-size-padding-bottom: 6px;--cds-menu-item-size-padding-left: 14px;--cds-menu-item-size-padding-right: 14px;--cds-menu-item-size-padding-top: 6px;--cds-menu-size-icongap: var(--cds-size-core-020-px);--cds-menu-size-minwidth: var(--cds-size-core-230-px);--cds-menu-size-padding-bottom: 6px;--cds-menu-size-padding-left: var(--cds-size-core-030-px);--cds-menu-size-padding-middle: 6px;--cds-menu-size-padding-right: var(--cds-size-core-030-px);--cds-menu-size-padding-top: var(--cds-size-core-020-px);--cds-menu-size-searchgap: var(--cds-size-core-020-px);--cds-menu-tag-size-padding-bottom: var(--cds-size-core-005-px);--cds-menu-tag-size-padding-left: var(--cds-size-core-010-px);--cds-menu-tag-size-padding-right: var(--cds-size-core-010-px);--cds-menu-tag-size-padding-top: var(--cds-size-core-005-px);--cds-pagination-size-textgap: var(--cds-size-core-030-px);--cds-token-size-actiongap: var(--cds-size-core-020-px);--cds-token-size-icongap: var(--cds-size-core-010-px);--cds-token-size-minheight: var(--cds-size-core-080-px);--cds-token-size-minwidth: var(--cds-size-core-080-px);--cds-token-size-padding-bottom: var(--cds-size-core-010-px);--cds-token-size-padding-left: var(--cds-size-core-030-px);--cds-token-size-padding-lefticon: var(--cds-size-core-020-px);--cds-token-size-padding-right: var(--cds-size-core-030-px);--cds-token-size-padding-rightaction: var(--cds-size-core-010-px);--cds-token-size-padding-top: var(--cds-size-core-010-px);--cds-tree-actions-size-separatormargin: var(--cds-size-core-010-px);--cds-tree-size-arrowsize: var(--cds-size-core-050-rem);--cds-tree-size-borderwidth: var(--cds-size-core-010-px);--cds-tree-size-columngap: var(--cds-size-core-010-px);--cds-tree-size-indentgap: var(--cds-size-core-060-px);--cds-tree-size-padding-right: var(--cds-size-core-020-px);--cds-tree-size-textgap: var(--cds-size-core-060-px)}[data-cds-sizing=compact],[data-cds-sizing="compact*"] *,[data-cds-sizing="compact[*]"] tbody :where(td,th) *,[data-cds-sizing=regular] [data-cds-sizing=compact],[data-cds-sizing="regular*"] [data-cds-sizing=compact],[data-cds-sizing="regular*"] [data-cds-sizing=compact] *,[data-cds-sizing="regular[*]"] [data-cds-sizing=compact],[data-cds-sizing="regular[*]"] [data-cds-sizing=compact] *{--cds-button-size-icongap: var(--cds-size-core-010-px);--cds-button-size-minheight: var(--cds-size-core-060-px);--cds-button-size-minwidth: var(--cds-size-core-060-px);--cds-button-size-padding-bottom: 1px;--cds-button-size-padding-left: var(--cds-size-core-030-px);--cds-button-size-padding-right: var(--cds-size-core-030-px);--cds-button-size-padding-top: 1px;--cds-cell-size-minheight: var(--cds-size-core-080-px);--cds-cell-size-minwidth: var(--cds-size-core-080-px);--cds-cell-size-padding-bottom: var(--cds-size-core-010-px);--cds-cell-size-padding-left: 5px;--cds-cell-size-padding-right: 5px;--cds-cell-size-padding-top: var(--cds-size-core-010-px);--cds-input-helpertext-size-margin-top: var(--cds-size-core-010-px);--cds-input-label-size-icongap: var(--cds-size-core-010-px);--cds-input-label-size-margin-bottom: var(--cds-size-core-020-px);--cds-input-size-icongap: var(--cds-size-core-020-px);--cds-input-size-minheight: var(--cds-size-core-060-px);--cds-input-size-minwidth: var(--cds-size-core-000-px);--cds-input-size-padding-bottom: var(--cds-size-core-005-px);--cds-input-size-padding-left: var(--cds-size-core-030-px);--cds-input-size-padding-right: var(--cds-size-core-030-px);--cds-input-size-padding-top: var(--cds-size-core-005-px);--cds-input-token-size-padding-bottom: var(--cds-size-core-000-px);--cds-input-token-size-padding-left: var(--cds-size-core-020-px);--cds-input-token-size-padding-right: var(--cds-size-core-020-px);--cds-input-token-size-padding-top: var(--cds-size-core-000-px);--cds-menu-actionitem-size-minheight: var(--cds-size-core-080-px);--cds-menu-actionitem-size-padding-bottom: var(--cds-size-core-010-px);--cds-menu-actionitem-size-padding-top: var(--cds-size-core-010-px);--cds-menu-group-size-margin-top: 6px;--cds-menu-group-size-minheight: var(--cds-size-core-080-px);--cds-menu-group-size-padding-bottom: 6px;--cds-menu-group-size-padding-left: 14px;--cds-menu-group-size-padding-right: 14px;--cds-menu-group-size-padding-top: 6px;--cds-menu-item-size-margin-top: var(--cds-size-core-010-px);--cds-menu-item-size-minheight: var(--cds-size-core-080-px);--cds-menu-item-size-padding-bottom: 6px;--cds-menu-item-size-padding-left: 14px;--cds-menu-item-size-padding-right: 14px;--cds-menu-item-size-padding-top: 6px;--cds-menu-size-icongap: var(--cds-size-core-020-px);--cds-menu-size-minwidth: var(--cds-size-core-230-px);--cds-menu-size-padding-bottom: var(--cds-size-core-010-px);--cds-menu-size-padding-left: var(--cds-size-core-030-px);--cds-menu-size-padding-middle: var(--cds-size-core-010-px);--cds-menu-size-padding-right: var(--cds-size-core-030-px);--cds-menu-size-padding-top: var(--cds-size-core-020-px);--cds-menu-size-searchgap: var(--cds-size-core-020-px);--cds-menu-tag-size-padding-bottom: var(--cds-size-core-005-px);--cds-menu-tag-size-padding-left: var(--cds-size-core-010-px);--cds-menu-tag-size-padding-right: var(--cds-size-core-010-px);--cds-menu-tag-size-padding-top: var(--cds-size-core-005-px);--cds-pagination-size-textgap: var(--cds-size-core-030-px);--cds-token-size-actiongap: var(--cds-size-core-030-px);--cds-token-size-icongap: var(--cds-size-core-010-px);--cds-token-size-minheight: var(--cds-size-core-060-px);--cds-token-size-minwidth: var(--cds-size-core-060-px);--cds-token-size-padding-bottom: var(--cds-size-core-005-px);--cds-token-size-padding-left: var(--cds-size-core-030-px);--cds-token-size-padding-lefticon: var(--cds-size-core-020-px);--cds-token-size-padding-right: var(--cds-size-core-030-px);--cds-token-size-padding-rightaction: var(--cds-size-core-010-px);--cds-token-size-padding-top: var(--cds-size-core-005-px)}:root,:host,[data-cds-theme=light]{color-scheme:light;--cds-color-background: var(--cds-color-core-white);--cds-color-background-hover: var(--cds-color-core-grey-02);--cds-color-background-none: var(--cds-color-core-none);--cds-color-background-secondary: var(--cds-color-core-grey-01);--cds-color-background-selected: #cce3ff8c;--cds-color-background-selectedhover: #cce3ff8c;--cds-color-border-moderate: var(--cds-color-core-grey-07);--cds-color-border-strong: var(--cds-color-core-grey-10);--cds-color-border-subtle: var(--cds-color-core-grey-04);--cds-color-chart-bar-a: var(--cds-color-core-grey-05);--cds-color-chart-bar-b: var(--cds-color-core-blue-02);--cds-color-chart-bar-c: var(--cds-color-core-orange-02);--cds-color-chart-bar-d: var(--cds-color-core-purple-02);--cds-color-chart-bar-e: var(--cds-color-core-yellow-03);--cds-color-chart-bar-f: var(--cds-color-core-teal-03);--cds-color-chart-bar-g: var(--cds-color-core-amber-02);--cds-color-chart-bar-h: var(--cds-color-core-magenta-02);--cds-color-chart-bar-i: var(--cds-color-core-green-02);--cds-color-chart-bar-j: var(--cds-color-core-purple-01);--cds-color-chart-bar-k: var(--cds-color-core-yellow-02);--cds-color-chart-bar-l: var(--cds-color-core-teal-02);--cds-color-chart-bar-m: var(--cds-color-core-red-01);--cds-color-chart-bar-n: var(--cds-color-core-blue-01);--cds-color-chart-bar-o: var(--cds-color-core-green-01);--cds-color-chart-bar-p: var(--cds-color-core-magenta-01);--cds-color-chart-bar-q: var(--cds-color-core-orange-01);--cds-color-chart-bar-r: var(--cds-color-core-grey-04);--cds-color-chart-bar-s: var(--cds-color-core-amber-01);--cds-color-chart-bar-t: var(--cds-color-core-red-02);--cds-color-chart-dot-a: var(--cds-color-core-black);--cds-color-chart-dot-b: var(--cds-color-core-blue-05);--cds-color-chart-dot-c: var(--cds-color-core-orange-05);--cds-color-chart-dot-d: var(--cds-color-core-purple-06);--cds-color-chart-dot-e: var(--cds-color-core-yellow-07);--cds-color-chart-dot-f: var(--cds-color-core-teal-07);--cds-color-chart-dot-g: var(--cds-color-core-amber-06);--cds-color-chart-dot-h: var(--cds-color-core-magenta-05);--cds-color-chart-dot-i: var(--cds-color-core-green-05);--cds-color-chart-dot-j: var(--cds-color-core-purple-05);--cds-color-chart-dot-k: var(--cds-color-core-yellow-06);--cds-color-chart-dot-l: var(--cds-color-core-teal-06);--cds-color-chart-dot-m: var(--cds-color-core-red-04);--cds-color-chart-dot-n: var(--cds-color-core-blue-04);--cds-color-chart-dot-o: var(--cds-color-core-green-04);--cds-color-chart-dot-p: var(--cds-color-core-magenta-04);--cds-color-chart-dot-q: var(--cds-color-core-orange-04);--cds-color-chart-dot-r: var(--cds-color-core-grey-08);--cds-color-chart-dot-s: var(--cds-color-core-amber-05);--cds-color-chart-dot-t: var(--cds-color-core-red-06);--cds-color-chart-line-a: var(--cds-color-core-black);--cds-color-chart-line-b: var(--cds-color-core-blue-05);--cds-color-chart-line-c: var(--cds-color-core-orange-05);--cds-color-chart-line-d: var(--cds-color-core-purple-06);--cds-color-chart-line-e: var(--cds-color-core-yellow-07);--cds-color-chart-line-f: var(--cds-color-core-teal-07);--cds-color-chart-line-g: var(--cds-color-core-amber-06);--cds-color-chart-line-h: var(--cds-color-core-magenta-05);--cds-color-chart-line-i: var(--cds-color-core-green-05);--cds-color-chart-line-j: var(--cds-color-core-purple-05);--cds-color-chart-line-k: var(--cds-color-core-yellow-06);--cds-color-chart-line-l: var(--cds-color-core-teal-06);--cds-color-chart-line-m: var(--cds-color-core-red-04);--cds-color-chart-line-n: var(--cds-color-core-blue-04);--cds-color-chart-line-o: var(--cds-color-core-green-04);--cds-color-chart-line-p: var(--cds-color-core-magenta-04);--cds-color-chart-line-q: var(--cds-color-core-orange-04);--cds-color-chart-line-r: var(--cds-color-core-grey-08);--cds-color-chart-line-s: var(--cds-color-core-amber-05);--cds-color-chart-line-t: var(--cds-color-core-red-06);--cds-color-chart-neutral-high-a: var(--cds-color-core-blue-10);--cds-color-chart-neutral-high-b: var(--cds-color-core-blue-08);--cds-color-chart-neutral-high-c: var(--cds-color-core-blue-06);--cds-color-chart-neutral-high-d: var(--cds-color-core-blue-04);--cds-color-chart-neutral-high-e: var(--cds-color-core-blue-02);--cds-color-destruction-background-hover: var(--cds-color-core-red-04);--cds-color-destruction-background-idle: var(--cds-color-core-red-05);--cds-color-destruction-background-pressed: var(--cds-color-core-red-06);--cds-color-destruction-icon: var(--cds-color-core-white);--cds-color-destruction-text: var(--cds-color-core-white);--cds-color-dropshadow-default: #00000059;--cds-color-error-background-hover: var(--cds-color-core-red-01);--cds-color-error-background-idle: #ffccd2a6;--cds-color-error-background-selected: #ffccd2a6;--cds-color-error-backgroundbar-selected: var(--cds-color-core-blue-06);--cds-color-error-border: var(--cds-color-core-red-06);--cds-color-error-icon: var(--cds-color-core-red-06);--cds-color-error-text: var(--cds-color-core-red-06);--cds-color-errorpanel-background-hover: var(--cds-color-core-red-04);--cds-color-errorpanel-background-idle: var(--cds-color-core-red-05);--cds-color-errorpanel-border-moderate: var(--cds-color-core-red-07);--cds-color-errorpanel-border-subtle: var(--cds-color-core-red-06);--cds-color-errorpanel-icon: var(--cds-color-core-white);--cds-color-errorpanel-link: var(--cds-color-core-white);--cds-color-errorpanel-text: var(--cds-color-core-white);--cds-color-focus-border: var(--cds-color-core-blue-06);--cds-color-icon-moderate: var(--cds-color-core-grey-09);--cds-color-icon-strong: var(--cds-color-core-grey-15);--cds-color-indicator-amber-background: var(--cds-color-core-amber-04);--cds-color-indicator-amber-text: var(--cds-color-core-grey-15);--cds-color-indicator-blue-background: var(--cds-color-core-blue-02);--cds-color-indicator-blue-text: var(--cds-color-core-grey-15);--cds-color-indicator-green-background: var(--cds-color-core-green-03);--cds-color-indicator-green-text: var(--cds-color-core-grey-15);--cds-color-indicator-greya-background: var(--cds-color-core-grey-05);--cds-color-indicator-greya-text: var(--cds-color-core-grey-15);--cds-color-indicator-greyb-background: var(--cds-color-core-grey-07);--cds-color-indicator-greyb-text: var(--cds-color-core-grey-15);--cds-color-indicator-magenta-background: var(--cds-color-core-magenta-03);--cds-color-indicator-magenta-text: var(--cds-color-core-grey-15);--cds-color-indicator-orange-background: var(--cds-color-core-orange-04);--cds-color-indicator-orange-text: var(--cds-color-core-grey-15);--cds-color-indicator-purple-background: var(--cds-color-core-purple-04);--cds-color-indicator-purple-text: var(--cds-color-core-grey-15);--cds-color-indicator-red-background: var(--cds-color-core-red-05);--cds-color-indicator-red-text: var(--cds-color-core-white);--cds-color-indicator-teal-background: var(--cds-color-core-teal-06);--cds-color-indicator-teal-text: var(--cds-color-core-grey-15);--cds-color-indicator-yellow-background: var(--cds-color-core-yellow-03);--cds-color-indicator-yellow-text: var(--cds-color-core-grey-15);--cds-color-information-background-idle: var(--cds-color-core-grey-04);--cds-color-information-icon-strong: var(--cds-color-core-grey-15);--cds-color-information-text: var(--cds-color-core-grey-15);--cds-color-informationpanel-background-hover: var(--cds-color-core-blue-01);--cds-color-informationpanel-background-idle: var(--cds-color-core-blue-02);--cds-color-informationpanel-border-moderate: var(--cds-color-core-blue-06);--cds-color-informationpanel-border-subtle: var(--cds-color-core-blue-03);--cds-color-informationpanel-icon: var(--cds-color-core-grey-15);--cds-color-informationpanel-link: var(--cds-color-core-grey-15);--cds-color-informationpanel-text: var(--cds-color-core-grey-15);--cds-color-insensitive-background: var(--cds-color-core-grey-02);--cds-color-insensitive-border: var(--cds-color-core-grey-04);--cds-color-insensitive-icon: var(--cds-color-core-grey-07);--cds-color-insensitive-text: var(--cds-color-core-grey-07);--cds-color-inverse-background: var(--cds-color-core-grey-18);--cds-color-inverse-icon: var(--cds-color-core-white);--cds-color-inverse-text: var(--cds-color-core-white);--cds-color-link-icon-hover: var(--cds-color-core-blue-09);--cds-color-link-icon-idle: var(--cds-color-core-blue-07);--cds-color-link-icon-visited: var(--cds-color-core-purple-08);--cds-color-link-text-hover: var(--cds-color-core-blue-09);--cds-color-link-text-idle: var(--cds-color-core-blue-07);--cds-color-link-text-visited: var(--cds-color-core-purple-08);--cds-color-overlay-background: #ffffffd9;--cds-color-placeholder-text: var(--cds-color-core-grey-10);--cds-color-popover-background: var(--cds-color-core-white);--cds-color-readonly-background: var(--cds-color-core-none);--cds-color-readonly-border: var(--cds-color-core-grey-04);--cds-color-readonly-text: var(--cds-color-core-grey-15);--cds-color-scrollbar-bar: var(--cds-color-core-grey-08);--cds-color-scrollbar-track: var(--cds-color-core-none);--cds-color-selectedgraphics-background-primary: var(--cds-color-core-blue-06);--cds-color-selectedgraphics-background-secondary: var(--cds-color-core-blue-06);--cds-color-success-background-hover: var(--cds-color-core-green-01);--cds-color-success-background-idle: #c5facfa6;--cds-color-success-background-selected: #c5facfa6;--cds-color-success-backgroundbar-selected: var(--cds-color-core-blue-06);--cds-color-success-border: var(--cds-color-core-green-06);--cds-color-success-icon: var(--cds-color-core-green-07);--cds-color-success-text: var(--cds-color-core-green-08);--cds-color-successpanel-background-hover: var(--cds-color-core-green-02);--cds-color-successpanel-background-idle: var(--cds-color-core-green-03);--cds-color-successpanel-border-moderate: var(--cds-color-core-green-06);--cds-color-successpanel-border-subtle: var(--cds-color-core-green-05);--cds-color-successpanel-icon: var(--cds-color-core-grey-15);--cds-color-successpanel-link: var(--cds-color-core-grey-15);--cds-color-successpanel-text: var(--cds-color-core-grey-15);--cds-color-text: var(--cds-color-core-grey-15);--cds-color-text-secondary: var(--cds-color-core-grey-10);--cds-color-warning-background-hover: var(--cds-color-core-yellow-01);--cds-color-warning-background-idle: #fff9cca6;--cds-color-warning-background-selected: #fff9cca6;--cds-color-warning-backgroundbar-selected: var(--cds-color-core-blue-06);--cds-color-warning-border: var(--cds-color-core-yellow-06);--cds-color-warning-icon: var(--cds-color-core-yellow-06);--cds-color-warning-icon-secondary: var(--cds-color-core-grey-18);--cds-color-warning-text: var(--cds-color-core-yellow-09);--cds-color-warningpanel-background-hover: var(--cds-color-core-yellow-02);--cds-color-warningpanel-background-idle: var(--cds-color-core-yellow-03);--cds-color-warningpanel-border-moderate: var(--cds-color-core-yellow-07);--cds-color-warningpanel-border-subtle: var(--cds-color-core-yellow-06);--cds-color-warningpanel-icon: var(--cds-color-core-grey-15);--cds-color-warningpanel-link: var(--cds-color-core-grey-15);--cds-color-warningpanel-text: var(--cds-color-core-grey-15);--cds-button-primary-color-background-hover: var(--cds-color-core-blue-04);--cds-button-primary-color-background-idle: var(--cds-color-core-blue-06);--cds-button-primary-color-background-pressed: var(--cds-color-core-blue-07);--cds-button-primary-color-border: var(--cds-color-core-none);--cds-button-primary-color-icon: var(--cds-color-core-white);--cds-button-primary-color-text: var(--cds-color-core-white);--cds-button-secondary-color-background-hover: var(--cds-color-core-grey-04);--cds-button-secondary-color-background-idle: var(--cds-color-core-none);--cds-button-secondary-color-background-pressed: var(--cds-color-core-grey-06);--cds-button-secondary-color-border: var(--cds-color-core-grey-10);--cds-button-secondary-color-icon: var(--cds-color-core-grey-15);--cds-button-secondary-color-text: var(--cds-color-core-grey-15);--cds-button-tertiary-color-background-hover: var(--cds-color-core-grey-04);--cds-button-tertiary-color-background-idle: var(--cds-color-core-none);--cds-button-tertiary-color-background-pressed: var(--cds-color-core-grey-06);--cds-button-tertiary-color-border: var(--cds-color-core-none);--cds-button-tertiary-color-icon: var(--cds-color-core-grey-15);--cds-button-tertiary-color-text: var(--cds-color-core-grey-15);--cds-datepicker-color-default-background-focus: var(--cds-color-core-grey-02);--cds-datepicker-color-default-background-hover: var(--cds-color-core-grey-02);--cds-datepicker-color-default-background-idle: var(--cds-color-core-white);--cds-datepicker-color-default-border-pressed: var(--cds-color-core-grey-06);--cds-datepicker-color-default-dropshadow: #00000059;--cds-datepicker-color-default-text-idle: var(--cds-color-core-grey-15);--cds-datepicker-color-default-text-insensitive: var(--cds-color-core-grey-07);--cds-datepicker-color-default-text-othermonths: var(--cds-color-core-grey-10);--cds-datepicker-color-selected-border-idle: var(--cds-color-core-blue-06);--cds-datepicker-color-selected-text-idle: var(--cds-color-core-white);--cds-datepicker-color-today-text-idle: var(--cds-color-core-blue-06);--cds-daterange-color-default-background-focus: var(--cds-color-core-grey-02);--cds-daterange-color-default-background-hover: var(--cds-color-core-grey-02);--cds-daterange-color-default-background-idle: var(--cds-color-core-white);--cds-daterange-color-default-border-pressed: var(--cds-color-core-grey-06);--cds-daterange-color-default-dropshadow: #00000059;--cds-daterange-color-default-text-idle: var(--cds-color-core-grey-15);--cds-daterange-color-default-text-insensitive: var(--cds-color-core-grey-07);--cds-daterange-color-inrange-background-hover: var(--cds-color-core-blue-08);--cds-daterange-color-inrange-background-idle: var(--cds-color-core-blue-06);--cds-daterange-color-inrange-border-focus: var(--cds-color-core-white);--cds-daterange-color-inrange-border-pressed: var(--cds-color-core-white);--cds-daterange-color-inrange-text-idle: var(--cds-color-core-white);--cds-daterange-color-rangestartend-background-focus: var(--cds-color-core-grey-04);--cds-daterange-color-rangestartend-border-idle: var(--cds-color-core-blue-06);--cds-daterange-color-today-text-idle: var(--cds-color-core-blue-06);--cds-dropdown-color-background: var(--cds-color-core-white);--cds-footer-color-background: var(--cds-color-core-black);--cds-footer-color-border: var(--cds-color-core-grey-10);--cds-footer-color-text: var(--cds-color-core-white);--cds-monthpicker-color-default-background-focus: var(--cds-color-core-grey-02);--cds-monthpicker-color-default-background-hover: var(--cds-color-core-grey-02);--cds-monthpicker-color-default-background-idle: var(--cds-color-core-white);--cds-monthpicker-color-default-border-pressed: var(--cds-color-core-grey-06);--cds-monthpicker-color-default-dropshadow: #00000059;--cds-monthpicker-color-default-text-idle: var(--cds-color-core-grey-15);--cds-monthpicker-color-default-text-insensitive: var(--cds-color-core-grey-07);--cds-monthpicker-color-selected-border-idle: var(--cds-color-core-blue-06);--cds-monthpicker-color-today-text-idle: var(--cds-color-core-blue-06);--cds-progress-color-background: var(--cds-color-core-blue-06);--cds-progress-color-background-secondary: var(--cds-color-core-grey-04);--cds-skeletonpulse-color-background-a: var(--cds-color-core-none);--cds-skeletonpulse-color-background-b: #d7d7d740;--cds-skeletonpulse-color-background-c: #f0f0f073;--cds-slider-color-background: var(--cds-color-core-blue-06);--cds-slider-color-background-hover: #0062dd59;--cds-slider-color-background-insensitive: var(--cds-color-core-grey-07);--cds-slider-color-background-secondary: var(--cds-color-core-grey-04);--cds-tabletoolbar-color-background: var(--cds-color-core-grey-03);--cds-tabs-color-background-hover: var(--cds-color-core-grey-02);--cds-tabs-color-background-idle: var(--cds-color-core-grey-01);--cds-titlebar-color-background: var(--cds-color-core-black);--cds-titlebar-color-border: var(--cds-color-core-grey-10);--cds-titlebar-color-dropdown-background: var(--cds-color-core-grey-16);--cds-titlebar-color-dropdown-dropshadow: #000000bf;--cds-titlebar-color-dropdown-hover: var(--cds-color-core-grey-14);--cds-titlebar-color-icon: var(--cds-color-core-white);--cds-titlebar-color-text: var(--cds-color-core-white);--cds-titlebar-color-text-secondary: var(--cds-color-core-teal-05);--cds-togglebuttonbar-color-background-hover: var(--cds-color-core-grey-02);--cds-togglebuttonbar-color-background-idle: var(--cds-color-core-grey-01);--cds-togglebuttonbar-color-background-insensitive: var(--cds-color-core-grey-01);--cds-tooltip-color-background: var(--cds-color-core-white)}[data-cds-theme=dark]{color-scheme:dark;--cds-color-background: var(--cds-color-core-grey-18);--cds-color-background-hover: var(--cds-color-core-grey-14);--cds-color-background-none: var(--cds-color-core-none);--cds-color-background-secondary: var(--cds-color-core-grey-16);--cds-color-background-selected: #0073ff40;--cds-color-background-selectedhover: #0073ff40;--cds-color-border-moderate: var(--cds-color-core-grey-08);--cds-color-border-strong: var(--cds-color-core-grey-03);--cds-color-border-subtle: var(--cds-color-core-grey-12);--cds-color-chart-bar-a: var(--cds-color-core-grey-08);--cds-color-chart-bar-b: var(--cds-color-core-blue-07);--cds-color-chart-bar-c: var(--cds-color-core-orange-07);--cds-color-chart-bar-d: var(--cds-color-core-purple-07);--cds-color-chart-bar-e: var(--cds-color-core-yellow-07);--cds-color-chart-bar-f: var(--cds-color-core-teal-07);--cds-color-chart-bar-g: var(--cds-color-core-amber-07);--cds-color-chart-bar-h: var(--cds-color-core-magenta-07);--cds-color-chart-bar-i: var(--cds-color-core-green-07);--cds-color-chart-bar-j: var(--cds-color-core-purple-09);--cds-color-chart-bar-k: var(--cds-color-core-yellow-09);--cds-color-chart-bar-l: var(--cds-color-core-teal-09);--cds-color-chart-bar-m: var(--cds-color-core-red-07);--cds-color-chart-bar-n: var(--cds-color-core-blue-09);--cds-color-chart-bar-o: var(--cds-color-core-green-09);--cds-color-chart-bar-p: var(--cds-color-core-magenta-09);--cds-color-chart-bar-q: var(--cds-color-core-orange-09);--cds-color-chart-bar-r: var(--cds-color-core-grey-11);--cds-color-chart-bar-s: var(--cds-color-core-amber-09);--cds-color-chart-bar-t: var(--cds-color-core-red-09);--cds-color-chart-dot-a: var(--cds-color-core-white);--cds-color-chart-dot-b: var(--cds-color-core-blue-03);--cds-color-chart-dot-c: var(--cds-color-core-orange-04);--cds-color-chart-dot-d: var(--cds-color-core-purple-04);--cds-color-chart-dot-e: var(--cds-color-core-yellow-04);--cds-color-chart-dot-f: var(--cds-color-core-teal-04);--cds-color-chart-dot-g: var(--cds-color-core-amber-04);--cds-color-chart-dot-h: var(--cds-color-core-magenta-04);--cds-color-chart-dot-i: var(--cds-color-core-green-04);--cds-color-chart-dot-j: var(--cds-color-core-purple-06);--cds-color-chart-dot-k: var(--cds-color-core-yellow-06);--cds-color-chart-dot-l: var(--cds-color-core-teal-06);--cds-color-chart-dot-m: var(--cds-color-core-red-04);--cds-color-chart-dot-n: var(--cds-color-core-blue-05);--cds-color-chart-dot-o: var(--cds-color-core-green-06);--cds-color-chart-dot-p: var(--cds-color-core-magenta-06);--cds-color-chart-dot-q: var(--cds-color-core-orange-06);--cds-color-chart-dot-r: var(--cds-color-core-grey-06);--cds-color-chart-dot-s: var(--cds-color-core-amber-06);--cds-color-chart-dot-t: var(--cds-color-core-red-06);--cds-color-chart-line-a: var(--cds-color-core-white);--cds-color-chart-line-b: var(--cds-color-core-blue-03);--cds-color-chart-line-c: var(--cds-color-core-orange-04);--cds-color-chart-line-d: var(--cds-color-core-purple-04);--cds-color-chart-line-e: var(--cds-color-core-yellow-04);--cds-color-chart-line-f: var(--cds-color-core-teal-04);--cds-color-chart-line-g: var(--cds-color-core-amber-04);--cds-color-chart-line-h: var(--cds-color-core-magenta-04);--cds-color-chart-line-i: var(--cds-color-core-green-04);--cds-color-chart-line-j: var(--cds-color-core-purple-06);--cds-color-chart-line-k: var(--cds-color-core-yellow-06);--cds-color-chart-line-l: var(--cds-color-core-teal-06);--cds-color-chart-line-m: var(--cds-color-core-red-04);--cds-color-chart-line-n: var(--cds-color-core-blue-05);--cds-color-chart-line-o: var(--cds-color-core-green-06);--cds-color-chart-line-p: var(--cds-color-core-magenta-06);--cds-color-chart-line-q: var(--cds-color-core-orange-06);--cds-color-chart-line-r: var(--cds-color-core-grey-06);--cds-color-chart-line-s: var(--cds-color-core-amber-06);--cds-color-chart-line-t: var(--cds-color-core-red-06);--cds-color-chart-neutral-high-a: var(--cds-color-core-blue-02);--cds-color-chart-neutral-high-b: var(--cds-color-core-blue-04);--cds-color-chart-neutral-high-c: var(--cds-color-core-blue-06);--cds-color-chart-neutral-high-d: var(--cds-color-core-blue-08);--cds-color-chart-neutral-high-e: var(--cds-color-core-blue-10);--cds-color-destruction-background-hover: var(--cds-color-core-red-04);--cds-color-destruction-background-idle: var(--cds-color-core-red-05);--cds-color-destruction-background-pressed: var(--cds-color-core-red-06);--cds-color-destruction-icon: var(--cds-color-core-white);--cds-color-destruction-text: var(--cds-color-core-white);--cds-color-dropshadow-default: #000000bf;--cds-color-error-background-hover: var(--cds-color-core-red-09);--cds-color-error-background-idle: var(--cds-color-core-red-10);--cds-color-error-background-selected: var(--cds-color-core-red-10);--cds-color-error-backgroundbar-selected: var(--cds-color-core-blue-06);--cds-color-error-border: var(--cds-color-core-red-05);--cds-color-error-icon: var(--cds-color-core-red-05);--cds-color-error-text: var(--cds-color-core-red-03);--cds-color-errorpanel-background-hover: var(--cds-color-core-red-04);--cds-color-errorpanel-background-idle: var(--cds-color-core-red-05);--cds-color-errorpanel-border-moderate: var(--cds-color-core-red-07);--cds-color-errorpanel-border-subtle: var(--cds-color-core-red-06);--cds-color-errorpanel-icon: var(--cds-color-core-white);--cds-color-errorpanel-link: var(--cds-color-core-white);--cds-color-errorpanel-text: var(--cds-color-core-white);--cds-color-focus-border: var(--cds-color-core-blue-06);--cds-color-icon-moderate: var(--cds-color-core-grey-07);--cds-color-icon-strong: var(--cds-color-core-white);--cds-color-indicator-amber-background: var(--cds-color-core-amber-04);--cds-color-indicator-amber-text: var(--cds-color-core-grey-15);--cds-color-indicator-blue-background: var(--cds-color-core-blue-02);--cds-color-indicator-blue-text: var(--cds-color-core-grey-15);--cds-color-indicator-green-background: var(--cds-color-core-green-03);--cds-color-indicator-green-text: var(--cds-color-core-grey-15);--cds-color-indicator-greya-background: var(--cds-color-core-grey-13);--cds-color-indicator-greya-text: var(--cds-color-core-white);--cds-color-indicator-greyb-background: var(--cds-color-core-grey-10);--cds-color-indicator-greyb-text: var(--cds-color-core-white);--cds-color-indicator-magenta-background: var(--cds-color-core-magenta-03);--cds-color-indicator-magenta-text: var(--cds-color-core-grey-15);--cds-color-indicator-orange-background: var(--cds-color-core-orange-04);--cds-color-indicator-orange-text: var(--cds-color-core-grey-15);--cds-color-indicator-purple-background: var(--cds-color-core-purple-04);--cds-color-indicator-purple-text: var(--cds-color-core-grey-15);--cds-color-indicator-red-background: var(--cds-color-core-red-05);--cds-color-indicator-red-text: var(--cds-color-core-white);--cds-color-indicator-teal-background: var(--cds-color-core-teal-06);--cds-color-indicator-teal-text: var(--cds-color-core-grey-15);--cds-color-indicator-yellow-background: var(--cds-color-core-yellow-03);--cds-color-indicator-yellow-text: var(--cds-color-core-grey-15);--cds-color-information-background-idle: var(--cds-color-core-grey-14);--cds-color-information-icon-strong: var(--cds-color-core-white);--cds-color-information-text: var(--cds-color-core-white);--cds-color-informationpanel-background-hover: var(--cds-color-core-blue-01);--cds-color-informationpanel-background-idle: var(--cds-color-core-blue-02);--cds-color-informationpanel-border-moderate: var(--cds-color-core-blue-06);--cds-color-informationpanel-border-subtle: var(--cds-color-core-blue-03);--cds-color-informationpanel-icon: var(--cds-color-core-grey-15);--cds-color-informationpanel-link: var(--cds-color-core-grey-15);--cds-color-informationpanel-text: var(--cds-color-core-grey-15);--cds-color-insensitive-background: var(--cds-color-core-grey-13);--cds-color-insensitive-border: var(--cds-color-core-grey-12);--cds-color-insensitive-icon: var(--cds-color-core-grey-10);--cds-color-insensitive-text: var(--cds-color-core-grey-09);--cds-color-inverse-background: var(--cds-color-core-white);--cds-color-inverse-icon: var(--cds-color-core-grey-15);--cds-color-inverse-text: var(--cds-color-core-grey-15);--cds-color-link-icon-hover: var(--cds-color-core-blue-02);--cds-color-link-icon-idle: var(--cds-color-core-blue-03);--cds-color-link-icon-visited: var(--cds-color-core-purple-04);--cds-color-link-text-hover: var(--cds-color-core-blue-02);--cds-color-link-text-idle: var(--cds-color-core-blue-03);--cds-color-link-text-visited: var(--cds-color-core-purple-04);--cds-color-overlay-background: #000000bf;--cds-color-placeholder-text: var(--cds-color-core-grey-07);--cds-color-popover-background: var(--cds-color-core-grey-16);--cds-color-readonly-background: var(--cds-color-core-none);--cds-color-readonly-border: var(--cds-color-core-grey-12);--cds-color-readonly-text: var(--cds-color-core-white);--cds-color-scrollbar-bar: var(--cds-color-core-grey-09);--cds-color-scrollbar-track: var(--cds-color-core-none);--cds-color-selectedgraphics-background-primary: var(--cds-color-core-blue-06);--cds-color-selectedgraphics-background-secondary: var(--cds-color-core-blue-06);--cds-color-success-background-hover: var(--cds-color-core-green-09);--cds-color-success-background-idle: var(--cds-color-core-green-10);--cds-color-success-background-selected: var(--cds-color-core-green-10);--cds-color-success-backgroundbar-selected: var(--cds-color-core-blue-06);--cds-color-success-border: var(--cds-color-core-green-06);--cds-color-success-icon: var(--cds-color-core-green-06);--cds-color-success-text: var(--cds-color-core-green-05);--cds-color-successpanel-background-hover: var(--cds-color-core-green-02);--cds-color-successpanel-background-idle: var(--cds-color-core-green-03);--cds-color-successpanel-border-moderate: var(--cds-color-core-green-06);--cds-color-successpanel-border-subtle: var(--cds-color-core-green-05);--cds-color-successpanel-icon: var(--cds-color-core-grey-15);--cds-color-successpanel-link: var(--cds-color-core-grey-15);--cds-color-successpanel-text: var(--cds-color-core-grey-15);--cds-color-text: var(--cds-color-core-white);--cds-color-text-secondary: var(--cds-color-core-grey-07);--cds-color-warning-background-hover: var(--cds-color-core-yellow-09);--cds-color-warning-background-idle: var(--cds-color-core-yellow-10);--cds-color-warning-background-selected: var(--cds-color-core-yellow-10);--cds-color-warning-backgroundbar-selected: var(--cds-color-core-blue-06);--cds-color-warning-border: var(--cds-color-core-yellow-03);--cds-color-warning-icon: var(--cds-color-core-yellow-03);--cds-color-warning-icon-secondary: var(--cds-color-core-grey-18);--cds-color-warning-text: var(--cds-color-core-yellow-03);--cds-color-warningpanel-background-hover: var(--cds-color-core-yellow-02);--cds-color-warningpanel-background-idle: var(--cds-color-core-yellow-03);--cds-color-warningpanel-border-moderate: var(--cds-color-core-yellow-07);--cds-color-warningpanel-border-subtle: var(--cds-color-core-yellow-06);--cds-color-warningpanel-icon: var(--cds-color-core-grey-15);--cds-color-warningpanel-link: var(--cds-color-core-grey-15);--cds-color-warningpanel-text: var(--cds-color-core-grey-15);--cds-button-primary-color-background-hover: var(--cds-color-core-blue-04);--cds-button-primary-color-background-idle: var(--cds-color-core-blue-06);--cds-button-primary-color-background-pressed: var(--cds-color-core-blue-07);--cds-button-primary-color-border: var(--cds-color-core-none);--cds-button-primary-color-icon: var(--cds-color-core-white);--cds-button-primary-color-text: var(--cds-color-core-white);--cds-button-secondary-color-background-hover: var(--cds-color-core-grey-13);--cds-button-secondary-color-background-idle: var(--cds-color-core-none);--cds-button-secondary-color-background-pressed: var(--cds-color-core-grey-12);--cds-button-secondary-color-border: var(--cds-color-core-grey-03);--cds-button-secondary-color-icon: var(--cds-color-core-white);--cds-button-secondary-color-text: var(--cds-color-core-white);--cds-button-tertiary-color-background-hover: var(--cds-color-core-grey-13);--cds-button-tertiary-color-background-idle: var(--cds-color-core-none);--cds-button-tertiary-color-background-pressed: var(--cds-color-core-grey-12);--cds-button-tertiary-color-border: var(--cds-color-core-none);--cds-button-tertiary-color-icon: var(--cds-color-core-white);--cds-button-tertiary-color-text: var(--cds-color-core-white);--cds-datepicker-color-default-background-focus: var(--cds-color-core-grey-13);--cds-datepicker-color-default-background-hover: var(--cds-color-core-grey-13);--cds-datepicker-color-default-background-idle: var(--cds-color-core-grey-16);--cds-datepicker-color-default-border-pressed: var(--cds-color-core-grey-10);--cds-datepicker-color-default-dropshadow: #000000bf;--cds-datepicker-color-default-text-idle: var(--cds-color-core-white);--cds-datepicker-color-default-text-insensitive: var(--cds-color-core-grey-11);--cds-datepicker-color-default-text-othermonths: var(--cds-color-core-grey-08);--cds-datepicker-color-selected-border-idle: var(--cds-color-core-blue-06);--cds-datepicker-color-selected-text-idle: var(--cds-color-core-white);--cds-datepicker-color-today-text-idle: var(--cds-color-core-blue-06);--cds-daterange-color-default-background-focus: var(--cds-color-core-grey-13);--cds-daterange-color-default-background-hover: var(--cds-color-core-grey-13);--cds-daterange-color-default-background-idle: var(--cds-color-core-grey-16);--cds-daterange-color-default-border-pressed: var(--cds-color-core-grey-10);--cds-daterange-color-default-dropshadow: #000000bf;--cds-daterange-color-default-text-idle: var(--cds-color-core-white);--cds-daterange-color-default-text-insensitive: var(--cds-color-core-grey-11);--cds-daterange-color-inrange-background-hover: var(--cds-color-core-blue-08);--cds-daterange-color-inrange-background-idle: var(--cds-color-core-blue-06);--cds-daterange-color-inrange-border-focus: var(--cds-color-core-white);--cds-daterange-color-inrange-border-pressed: var(--cds-color-core-white);--cds-daterange-color-inrange-text-idle: var(--cds-color-core-white);--cds-daterange-color-rangestartend-background-focus: var(--cds-color-core-grey-13);--cds-daterange-color-rangestartend-border-idle: var(--cds-color-core-blue-06);--cds-daterange-color-today-text-idle: var(--cds-color-core-blue-06);--cds-dropdown-color-background: var(--cds-color-core-grey-16);--cds-footer-color-background: var(--cds-color-core-black);--cds-footer-color-border: var(--cds-color-core-grey-10);--cds-footer-color-text: var(--cds-color-core-white);--cds-monthpicker-color-default-background-focus: var(--cds-color-core-grey-13);--cds-monthpicker-color-default-background-hover: var(--cds-color-core-grey-13);--cds-monthpicker-color-default-background-idle: var(--cds-color-core-grey-16);--cds-monthpicker-color-default-border-pressed: var(--cds-color-core-grey-10);--cds-monthpicker-color-default-dropshadow: #000000bf;--cds-monthpicker-color-default-text-idle: var(--cds-color-core-white);--cds-monthpicker-color-default-text-insensitive: var(--cds-color-core-grey-11);--cds-monthpicker-color-selected-border-idle: var(--cds-color-core-blue-06);--cds-monthpicker-color-today-text-idle: var(--cds-color-core-blue-06);--cds-progress-color-background: var(--cds-color-core-blue-06);--cds-progress-color-background-secondary: var(--cds-color-core-grey-12);--cds-skeletonpulse-color-background-a: var(--cds-color-core-none);--cds-skeletonpulse-color-background-b: #41414140;--cds-skeletonpulse-color-background-c: #23232373;--cds-slider-color-background: var(--cds-color-core-blue-06);--cds-slider-color-background-hover: #0062dd8c;--cds-slider-color-background-insensitive: var(--cds-color-core-grey-10);--cds-slider-color-background-secondary: var(--cds-color-core-grey-12);--cds-tabletoolbar-color-background: var(--cds-color-core-grey-14);--cds-tabs-color-background-hover: var(--cds-color-core-grey-14);--cds-tabs-color-background-idle: var(--cds-color-core-grey-16);--cds-titlebar-color-background: var(--cds-color-core-black);--cds-titlebar-color-border: var(--cds-color-core-grey-10);--cds-titlebar-color-dropdown-background: var(--cds-color-core-grey-16);--cds-titlebar-color-dropdown-dropshadow: #000000bf;--cds-titlebar-color-dropdown-hover: var(--cds-color-core-grey-14);--cds-titlebar-color-icon: var(--cds-color-core-white);--cds-titlebar-color-text: var(--cds-color-core-white);--cds-titlebar-color-text-secondary: var(--cds-color-core-teal-05);--cds-togglebuttonbar-color-background-hover: var(--cds-color-core-grey-14);--cds-togglebuttonbar-color-background-idle: var(--cds-color-core-grey-16);--cds-togglebuttonbar-color-background-insensitive: var(--cds-color-core-grey-16);--cds-tooltip-color-background: var(--cds-color-core-grey-16)}@media (prefers-color-scheme: dark){:root,:host{color-scheme:dark;--cds-color-background: var(--cds-color-core-grey-18);--cds-color-background-hover: var(--cds-color-core-grey-14);--cds-color-background-none: var(--cds-color-core-none);--cds-color-background-secondary: var(--cds-color-core-grey-16);--cds-color-background-selected: #0073ff40;--cds-color-background-selectedhover: #0073ff40;--cds-color-border-moderate: var(--cds-color-core-grey-08);--cds-color-border-strong: var(--cds-color-core-grey-03);--cds-color-border-subtle: var(--cds-color-core-grey-12);--cds-color-chart-bar-a: var(--cds-color-core-grey-08);--cds-color-chart-bar-b: var(--cds-color-core-blue-07);--cds-color-chart-bar-c: var(--cds-color-core-orange-07);--cds-color-chart-bar-d: var(--cds-color-core-purple-07);--cds-color-chart-bar-e: var(--cds-color-core-yellow-07);--cds-color-chart-bar-f: var(--cds-color-core-teal-07);--cds-color-chart-bar-g: var(--cds-color-core-amber-07);--cds-color-chart-bar-h: var(--cds-color-core-magenta-07);--cds-color-chart-bar-i: var(--cds-color-core-green-07);--cds-color-chart-bar-j: var(--cds-color-core-purple-09);--cds-color-chart-bar-k: var(--cds-color-core-yellow-09);--cds-color-chart-bar-l: var(--cds-color-core-teal-09);--cds-color-chart-bar-m: var(--cds-color-core-red-07);--cds-color-chart-bar-n: var(--cds-color-core-blue-09);--cds-color-chart-bar-o: var(--cds-color-core-green-09);--cds-color-chart-bar-p: var(--cds-color-core-magenta-09);--cds-color-chart-bar-q: var(--cds-color-core-orange-09);--cds-color-chart-bar-r: var(--cds-color-core-grey-11);--cds-color-chart-bar-s: var(--cds-color-core-amber-09);--cds-color-chart-bar-t: var(--cds-color-core-red-09);--cds-color-chart-dot-a: var(--cds-color-core-white);--cds-color-chart-dot-b: var(--cds-color-core-blue-03);--cds-color-chart-dot-c: var(--cds-color-core-orange-04);--cds-color-chart-dot-d: var(--cds-color-core-purple-04);--cds-color-chart-dot-e: var(--cds-color-core-yellow-04);--cds-color-chart-dot-f: var(--cds-color-core-teal-04);--cds-color-chart-dot-g: var(--cds-color-core-amber-04);--cds-color-chart-dot-h: var(--cds-color-core-magenta-04);--cds-color-chart-dot-i: var(--cds-color-core-green-04);--cds-color-chart-dot-j: var(--cds-color-core-purple-06);--cds-color-chart-dot-k: var(--cds-color-core-yellow-06);--cds-color-chart-dot-l: var(--cds-color-core-teal-06);--cds-color-chart-dot-m: var(--cds-color-core-red-04);--cds-color-chart-dot-n: var(--cds-color-core-blue-05);--cds-color-chart-dot-o: var(--cds-color-core-green-06);--cds-color-chart-dot-p: var(--cds-color-core-magenta-06);--cds-color-chart-dot-q: var(--cds-color-core-orange-06);--cds-color-chart-dot-r: var(--cds-color-core-grey-06);--cds-color-chart-dot-s: var(--cds-color-core-amber-06);--cds-color-chart-dot-t: var(--cds-color-core-red-06);--cds-color-chart-line-a: var(--cds-color-core-white);--cds-color-chart-line-b: var(--cds-color-core-blue-03);--cds-color-chart-line-c: var(--cds-color-core-orange-04);--cds-color-chart-line-d: var(--cds-color-core-purple-04);--cds-color-chart-line-e: var(--cds-color-core-yellow-04);--cds-color-chart-line-f: var(--cds-color-core-teal-04);--cds-color-chart-line-g: var(--cds-color-core-amber-04);--cds-color-chart-line-h: var(--cds-color-core-magenta-04);--cds-color-chart-line-i: var(--cds-color-core-green-04);--cds-color-chart-line-j: var(--cds-color-core-purple-06);--cds-color-chart-line-k: var(--cds-color-core-yellow-06);--cds-color-chart-line-l: var(--cds-color-core-teal-06);--cds-color-chart-line-m: var(--cds-color-core-red-04);--cds-color-chart-line-n: var(--cds-color-core-blue-05);--cds-color-chart-line-o: var(--cds-color-core-green-06);--cds-color-chart-line-p: var(--cds-color-core-magenta-06);--cds-color-chart-line-q: var(--cds-color-core-orange-06);--cds-color-chart-line-r: var(--cds-color-core-grey-06);--cds-color-chart-line-s: var(--cds-color-core-amber-06);--cds-color-chart-line-t: var(--cds-color-core-red-06);--cds-color-chart-neutral-high-a: var(--cds-color-core-blue-02);--cds-color-chart-neutral-high-b: var(--cds-color-core-blue-04);--cds-color-chart-neutral-high-c: var(--cds-color-core-blue-06);--cds-color-chart-neutral-high-d: var(--cds-color-core-blue-08);--cds-color-chart-neutral-high-e: var(--cds-color-core-blue-10);--cds-color-destruction-background-hover: var(--cds-color-core-red-04);--cds-color-destruction-background-idle: var(--cds-color-core-red-05);--cds-color-destruction-background-pressed: var(--cds-color-core-red-06);--cds-color-destruction-icon: var(--cds-color-core-white);--cds-color-destruction-text: var(--cds-color-core-white);--cds-color-dropshadow-default: #000000bf;--cds-color-error-background-hover: var(--cds-color-core-red-09);--cds-color-error-background-idle: var(--cds-color-core-red-10);--cds-color-error-background-selected: var(--cds-color-core-red-10);--cds-color-error-backgroundbar-selected: var(--cds-color-core-blue-06);--cds-color-error-border: var(--cds-color-core-red-05);--cds-color-error-icon: var(--cds-color-core-red-05);--cds-color-error-text: var(--cds-color-core-red-03);--cds-color-errorpanel-background-hover: var(--cds-color-core-red-04);--cds-color-errorpanel-background-idle: var(--cds-color-core-red-05);--cds-color-errorpanel-border-moderate: var(--cds-color-core-red-07);--cds-color-errorpanel-border-subtle: var(--cds-color-core-red-06);--cds-color-errorpanel-icon: var(--cds-color-core-white);--cds-color-errorpanel-link: var(--cds-color-core-white);--cds-color-errorpanel-text: var(--cds-color-core-white);--cds-color-focus-border: var(--cds-color-core-blue-06);--cds-color-icon-moderate: var(--cds-color-core-grey-07);--cds-color-icon-strong: var(--cds-color-core-white);--cds-color-indicator-amber-background: var(--cds-color-core-amber-04);--cds-color-indicator-amber-text: var(--cds-color-core-grey-15);--cds-color-indicator-blue-background: var(--cds-color-core-blue-02);--cds-color-indicator-blue-text: var(--cds-color-core-grey-15);--cds-color-indicator-green-background: var(--cds-color-core-green-03);--cds-color-indicator-green-text: var(--cds-color-core-grey-15);--cds-color-indicator-greya-background: var(--cds-color-core-grey-13);--cds-color-indicator-greya-text: var(--cds-color-core-white);--cds-color-indicator-greyb-background: var(--cds-color-core-grey-10);--cds-color-indicator-greyb-text: var(--cds-color-core-white);--cds-color-indicator-magenta-background: var(--cds-color-core-magenta-03);--cds-color-indicator-magenta-text: var(--cds-color-core-grey-15);--cds-color-indicator-orange-background: var(--cds-color-core-orange-04);--cds-color-indicator-orange-text: var(--cds-color-core-grey-15);--cds-color-indicator-purple-background: var(--cds-color-core-purple-04);--cds-color-indicator-purple-text: var(--cds-color-core-grey-15);--cds-color-indicator-red-background: var(--cds-color-core-red-05);--cds-color-indicator-red-text: var(--cds-color-core-white);--cds-color-indicator-teal-background: var(--cds-color-core-teal-06);--cds-color-indicator-teal-text: var(--cds-color-core-grey-15);--cds-color-indicator-yellow-background: var(--cds-color-core-yellow-03);--cds-color-indicator-yellow-text: var(--cds-color-core-grey-15);--cds-color-information-background-idle: var(--cds-color-core-grey-14);--cds-color-information-icon-strong: var(--cds-color-core-white);--cds-color-information-text: var(--cds-color-core-white);--cds-color-informationpanel-background-hover: var(--cds-color-core-blue-01);--cds-color-informationpanel-background-idle: var(--cds-color-core-blue-02);--cds-color-informationpanel-border-moderate: var(--cds-color-core-blue-06);--cds-color-informationpanel-border-subtle: var(--cds-color-core-blue-03);--cds-color-informationpanel-icon: var(--cds-color-core-grey-15);--cds-color-informationpanel-link: var(--cds-color-core-grey-15);--cds-color-informationpanel-text: var(--cds-color-core-grey-15);--cds-color-insensitive-background: var(--cds-color-core-grey-13);--cds-color-insensitive-border: var(--cds-color-core-grey-12);--cds-color-insensitive-icon: var(--cds-color-core-grey-10);--cds-color-insensitive-text: var(--cds-color-core-grey-09);--cds-color-inverse-background: var(--cds-color-core-white);--cds-color-inverse-icon: var(--cds-color-core-grey-15);--cds-color-inverse-text: var(--cds-color-core-grey-15);--cds-color-link-icon-hover: var(--cds-color-core-blue-02);--cds-color-link-icon-idle: var(--cds-color-core-blue-03);--cds-color-link-icon-visited: var(--cds-color-core-purple-04);--cds-color-link-text-hover: var(--cds-color-core-blue-02);--cds-color-link-text-idle: var(--cds-color-core-blue-03);--cds-color-link-text-visited: var(--cds-color-core-purple-04);--cds-color-overlay-background: #000000bf;--cds-color-placeholder-text: var(--cds-color-core-grey-07);--cds-color-popover-background: var(--cds-color-core-grey-16);--cds-color-readonly-background: var(--cds-color-core-none);--cds-color-readonly-border: var(--cds-color-core-grey-12);--cds-color-readonly-text: var(--cds-color-core-white);--cds-color-scrollbar-bar: var(--cds-color-core-grey-09);--cds-color-scrollbar-track: var(--cds-color-core-none);--cds-color-selectedgraphics-background-primary: var(--cds-color-core-blue-06);--cds-color-selectedgraphics-background-secondary: var(--cds-color-core-blue-06);--cds-color-success-background-hover: var(--cds-color-core-green-09);--cds-color-success-background-idle: var(--cds-color-core-green-10);--cds-color-success-background-selected: var(--cds-color-core-green-10);--cds-color-success-backgroundbar-selected: var(--cds-color-core-blue-06);--cds-color-success-border: var(--cds-color-core-green-06);--cds-color-success-icon: var(--cds-color-core-green-06);--cds-color-success-text: var(--cds-color-core-green-05);--cds-color-successpanel-background-hover: var(--cds-color-core-green-02);--cds-color-successpanel-background-idle: var(--cds-color-core-green-03);--cds-color-successpanel-border-moderate: var(--cds-color-core-green-06);--cds-color-successpanel-border-subtle: var(--cds-color-core-green-05);--cds-color-successpanel-icon: var(--cds-color-core-grey-15);--cds-color-successpanel-link: var(--cds-color-core-grey-15);--cds-color-successpanel-text: var(--cds-color-core-grey-15);--cds-color-text: var(--cds-color-core-white);--cds-color-text-secondary: var(--cds-color-core-grey-07);--cds-color-warning-background-hover: var(--cds-color-core-yellow-09);--cds-color-warning-background-idle: var(--cds-color-core-yellow-10);--cds-color-warning-background-selected: var(--cds-color-core-yellow-10);--cds-color-warning-backgroundbar-selected: var(--cds-color-core-blue-06);--cds-color-warning-border: var(--cds-color-core-yellow-03);--cds-color-warning-icon: var(--cds-color-core-yellow-03);--cds-color-warning-icon-secondary: var(--cds-color-core-grey-18);--cds-color-warning-text: var(--cds-color-core-yellow-03);--cds-color-warningpanel-background-hover: var(--cds-color-core-yellow-02);--cds-color-warningpanel-background-idle: var(--cds-color-core-yellow-03);--cds-color-warningpanel-border-moderate: var(--cds-color-core-yellow-07);--cds-color-warningpanel-border-subtle: var(--cds-color-core-yellow-06);--cds-color-warningpanel-icon: var(--cds-color-core-grey-15);--cds-color-warningpanel-link: var(--cds-color-core-grey-15);--cds-color-warningpanel-text: var(--cds-color-core-grey-15);--cds-button-primary-color-background-hover: var(--cds-color-core-blue-04);--cds-button-primary-color-background-idle: var(--cds-color-core-blue-06);--cds-button-primary-color-background-pressed: var(--cds-color-core-blue-07);--cds-button-primary-color-border: var(--cds-color-core-none);--cds-button-primary-color-icon: var(--cds-color-core-white);--cds-button-primary-color-text: var(--cds-color-core-white);--cds-button-secondary-color-background-hover: var(--cds-color-core-grey-13);--cds-button-secondary-color-background-idle: var(--cds-color-core-none);--cds-button-secondary-color-background-pressed: var(--cds-color-core-grey-12);--cds-button-secondary-color-border: var(--cds-color-core-grey-03);--cds-button-secondary-color-icon: var(--cds-color-core-white);--cds-button-secondary-color-text: var(--cds-color-core-white);--cds-button-tertiary-color-background-hover: var(--cds-color-core-grey-13);--cds-button-tertiary-color-background-idle: var(--cds-color-core-none);--cds-button-tertiary-color-background-pressed: var(--cds-color-core-grey-12);--cds-button-tertiary-color-border: var(--cds-color-core-none);--cds-button-tertiary-color-icon: var(--cds-color-core-white);--cds-button-tertiary-color-text: var(--cds-color-core-white);--cds-datepicker-color-default-background-focus: var(--cds-color-core-grey-13);--cds-datepicker-color-default-background-hover: var(--cds-color-core-grey-13);--cds-datepicker-color-default-background-idle: var(--cds-color-core-grey-16);--cds-datepicker-color-default-border-pressed: var(--cds-color-core-grey-10);--cds-datepicker-color-default-dropshadow: #000000bf;--cds-datepicker-color-default-text-idle: var(--cds-color-core-white);--cds-datepicker-color-default-text-insensitive: var(--cds-color-core-grey-11);--cds-datepicker-color-default-text-othermonths: var(--cds-color-core-grey-08);--cds-datepicker-color-selected-border-idle: var(--cds-color-core-blue-06);--cds-datepicker-color-selected-text-idle: var(--cds-color-core-white);--cds-datepicker-color-today-text-idle: var(--cds-color-core-blue-06);--cds-daterange-color-default-background-focus: var(--cds-color-core-grey-13);--cds-daterange-color-default-background-hover: var(--cds-color-core-grey-13);--cds-daterange-color-default-background-idle: var(--cds-color-core-grey-16);--cds-daterange-color-default-border-pressed: var(--cds-color-core-grey-10);--cds-daterange-color-default-dropshadow: #000000bf;--cds-daterange-color-default-text-idle: var(--cds-color-core-white);--cds-daterange-color-default-text-insensitive: var(--cds-color-core-grey-11);--cds-daterange-color-inrange-background-hover: var(--cds-color-core-blue-08);--cds-daterange-color-inrange-background-idle: var(--cds-color-core-blue-06);--cds-daterange-color-inrange-border-focus: var(--cds-color-core-white);--cds-daterange-color-inrange-border-pressed: var(--cds-color-core-white);--cds-daterange-color-inrange-text-idle: var(--cds-color-core-white);--cds-daterange-color-rangestartend-background-focus: var(--cds-color-core-grey-13);--cds-daterange-color-rangestartend-border-idle: var(--cds-color-core-blue-06);--cds-daterange-color-today-text-idle: var(--cds-color-core-blue-06);--cds-dropdown-color-background: var(--cds-color-core-grey-16);--cds-footer-color-background: var(--cds-color-core-black);--cds-footer-color-border: var(--cds-color-core-grey-10);--cds-footer-color-text: var(--cds-color-core-white);--cds-monthpicker-color-default-background-focus: var(--cds-color-core-grey-13);--cds-monthpicker-color-default-background-hover: var(--cds-color-core-grey-13);--cds-monthpicker-color-default-background-idle: var(--cds-color-core-grey-16);--cds-monthpicker-color-default-border-pressed: var(--cds-color-core-grey-10);--cds-monthpicker-color-default-dropshadow: #000000bf;--cds-monthpicker-color-default-text-idle: var(--cds-color-core-white);--cds-monthpicker-color-default-text-insensitive: var(--cds-color-core-grey-11);--cds-monthpicker-color-selected-border-idle: var(--cds-color-core-blue-06);--cds-monthpicker-color-today-text-idle: var(--cds-color-core-blue-06);--cds-progress-color-background: var(--cds-color-core-blue-06);--cds-progress-color-background-secondary: var(--cds-color-core-grey-12);--cds-skeletonpulse-color-background-a: var(--cds-color-core-none);--cds-skeletonpulse-color-background-b: #41414140;--cds-skeletonpulse-color-background-c: #23232373;--cds-slider-color-background: var(--cds-color-core-blue-06);--cds-slider-color-background-hover: #0062dd8c;--cds-slider-color-background-insensitive: var(--cds-color-core-grey-10);--cds-slider-color-background-secondary: var(--cds-color-core-grey-12);--cds-tabletoolbar-color-background: var(--cds-color-core-grey-14);--cds-tabs-color-background-hover: var(--cds-color-core-grey-14);--cds-tabs-color-background-idle: var(--cds-color-core-grey-16);--cds-titlebar-color-background: var(--cds-color-core-black);--cds-titlebar-color-border: var(--cds-color-core-grey-10);--cds-titlebar-color-dropdown-background: var(--cds-color-core-grey-16);--cds-titlebar-color-dropdown-dropshadow: #000000bf;--cds-titlebar-color-dropdown-hover: var(--cds-color-core-grey-14);--cds-titlebar-color-icon: var(--cds-color-core-white);--cds-titlebar-color-text: var(--cds-color-core-white);--cds-titlebar-color-text-secondary: var(--cds-color-core-teal-05);--cds-togglebuttonbar-color-background-hover: var(--cds-color-core-grey-14);--cds-togglebuttonbar-color-background-idle: var(--cds-color-core-grey-16);--cds-togglebuttonbar-color-background-insensitive: var(--cds-color-core-grey-16);--cds-tooltip-color-background: var(--cds-color-core-grey-16)}}}@layer{/*! modern-normalize v2.0.0 | MIT License | https://github.com/sindresorhus/modern-normalize */*,:before,:after{box-sizing:border-box}html{font-family:system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";line-height:1.15;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4}body{margin:0}hr{height:0;color:inherit}abbr[title]{text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}::-moz-focus-inner{border-style:none;padding:0}:-moz-focusring{outline:1px dotted ButtonText}:-moz-ui-invalid{box-shadow:none}legend{padding:0}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}}@layer{hr{border-top-width:1px}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit;text-wrap:balance}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0;border:0}legend{padding:0}ol,ul,menu{list-style-type:"";margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}}@layer{body{color:var(--cds-color-text);background-color:var(--cds-color-background);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--cds-font-base-family);scrollbar-width:thin;scrollbar-color:var(--cds-color-scrollbar-bar) var(--cds-color-scrollbar-track)}::-webkit-scrollbar{width:8px}::-webkit-scrollbar:horizontal{height:8px}::-webkit-scrollbar-thumb{border-radius:4px;background-color:var(--cds-color-scrollbar-bar)}::-webkit-scrollbar-track,::-webkit-scrollbar-corner{background-color:var(--cds-color-scrollbar-track)}.cds-monospace,code{font-family:var(--cds-font-code-family)}strong,b{font-weight:var(--cds-font-core-weight-bold)}a,.cds-link,button.cds-link{font-size:inherit;line-height:inherit;font-weight:inherit;text-decoration:var(--cds-font-link-default-decoration);color:var(--cds-color-link-text-idle);background:none;border:none;cursor:pointer;padding:0;display:inline;min-width:auto;min-height:auto;box-shadow:none}a:visited,.cds-link:visited,button.cds-link:visited{color:var(--cds-color-link-text-visited);background:none;border:none}a:hover,a:active,.cds-link:hover,.cds-link:active{color:var(--cds-color-link-text-hover);background:none;border:none}:focus{outline:none}:focus-visible{outline:var(--cds-color-focus-border) solid 2px;outline-offset:2px}button,.cds-button,a.cds-button,::file-selector-button{--_cds-button-border: 1px;--_cds-button-color-text: var(--cds-button-secondary-color-text);--_cds-button-color-border: var(--cds-button-secondary-color-border);--_cds-button-color-background: var(--cds-button-secondary-color-background-idle);--_cds-button-hover-background: var(--cds-button-secondary-color-background-hover);--_cds-button-hover-border: var(--cds-button-secondary-color-border);--_cds-button-active-background: var(--cds-button-secondary-color-background-pressed);--_cds-button-active-border: var(--cds-button-secondary-color-border);-webkit-appearance:none;appearance:none;border-radius:0;text-decoration:none;display:inline-flex;vertical-align:middle;align-items:center;gap:var(--cds-button-size-icongap);touch-action:manipulation;user-select:none;inline-size:fit-content;font-family:inherit;flex-shrink:0;border:solid var(--_cds-button-border) var(--_cds-button-color-border);padding:var(--cds-button-size-padding-top) var(--cds-button-size-padding-right) var(--cds-button-size-padding-bottom) var(--cds-button-size-padding-left);min-height:var(--cds-button-size-minheight);min-width:var(--cds-button-size-minwidth);font-size:var(--cds-font-button-label-fontsize);line-height:var(--cds-font-button-label-lineheight);font-weight:var(--cds-font-button-label-weight);color:var(--_cds-button-color-text);border-color:var(--_cds-button-color-border);background:var(--_cds-button-color-background)}.cds-button .bb-icon,.cds-button__icon{width:1em;height:1em}button:hover,.cds-button:hover,a.cds-button:hover,button:focus-visible,.cds-button:focus-visible,a.cds-button:focus-visible{background:var(--_cds-button-hover-background)}button:active,.cds-button:active,a.cds-button:active{background:var(--_cds-button-active-background)}.cds-button--primary,a.cds-button--primary{--_cds-button-color-text: var(--cds-button-primary-color-text);--_cds-button-color-border: transparent;--_cds-button-color-background: var(--cds-button-primary-color-background-idle);--_cds-button-hover-background: var(--cds-button-primary-color-background-hover);--_cds-button-active-background: var(--cds-button-primary-color-background-pressed)}.cds-button--tertiary,a.cds-button--tertiary{--_cds-button-color-text: var(--cds-button-tertiary-color-text);--_cds-button-color-border: var(--cds-button-tertiary-color-border);--_cds-button-color-background: var(--cds-button-tertiary-color-background-idle);--_cds-button-hover-background: var(--cds-button-tertiary-color-background-hover);--_cds-button-active-background: var(--cds-button-tertiary-color-background-pressed)}.cds-button--destruction,a.cds-button--destruction{--_cds-button-color-text: var(--cds-color-destruction-text);--_cds-button-color-border: transparent;--_cds-button-color-background: var(--cds-color-destruction-background-idle);--_cds-button-hover-background: var(--cds-color-destruction-background-hover);--_cds-button-active-background: var(--cds-color-destruction-background-pressed)}.cds-button--disabled,a.cds-button--disabled,button:disabled{--_cds-button-color-text: var(--cds-color-insensitive-text);--_cds-button-color-border: transparent;--_cds-button-color-background: var(--cds-color-insensitive-background);--_cds-button-hover-background: var(--cds-color-insensitive-background);--_cds-button-active-background: var(--cds-color-insensitive-background)}table{width:100%;border-collapse:collapse;tr{border-bottom:1px solid var(--cds-color-border-subtle)}tbody tr:last-child,>tr:last-child{border-bottom:none}th,td,.cds-td{padding:max((var(--cds-cell-size-minheight) - 1lh) / 2,var(--cds-cell-size-padding-top)) var(--cds-cell-size-padding-right) max((var(--cds-cell-size-minheight) - 1lh) / 2,var(--cds-cell-size-padding-bottom)) var(--cds-cell-size-padding-left);min-width:var(--cds-cell-size-minwidth)}td.cds-flush{padding:0}th{text-align:left;font-weight:700}td{vertical-align:top}}input,optgroup,select,textarea{color:inherit;font:inherit;margin:0;box-sizing:border-box}input[type=text],input[type=email],input[type=number],input[type=date],input[type=search],input[type=tel],select,textarea,.cds-input{--_cds-input-border-initial: 1px;--_cds-input-border-current: var(--_cds-input-border-initial);--_cds-input-border-offset: calc(var(--_cds-input-border-current) - var(--_cds-input-border-initial));--_cds-input-border-color: var(--cds-color-border-moderate);display:block;border-radius:0;width:100%;min-width:0;background-color:var(--cds-color-background);border:none;color:var(--cds-color-text);line-height:var( --cds-font-button-label-lineheight );font-size:var(--cds-font-button-label-fontsize);box-shadow:0 0 0 var(--_cds-input-border-current) inset var(--_cds-input-border-color);padding:var(--cds-button-size-padding-top) var(--cds-button-size-padding-right) var(--cds-button-size-padding-bottom) var(--cds-button-size-padding-left);min-height:var(--cds-button-size-minheight);&:focus,&:focus-visible{--_cds-input-border-current: 2px;--_cds-input-border-color: var(--cds-color-focus-border);outline:none}}input[type=text],input[type=email],input[type=number],input[type=date],input[type=search],input[type=tel],textarea,.cds-input--field,.cds-input--textarea{appearance:none;&:read-only{--_cds-input-border-color: var(--cds-color-readonly-border);background:var(--cds-color-readonly-background);color:var(--cds-color-readonly-text)}&:disabled{--_cds-input-border-color: var(--cds-color-readonly-border);background:var(--cds-color-insensitive-background);color:var(--cds-color-insensitive-text)}&:user-invalid{--_cds-input-border-current: 2px;--_cds-input-border-color: var(--cds-color-error-border)}}select,.cds-input--select{min-height:var(--cds-input-size-minheight)}textarea,.cds-input--textarea{resize:vertical}input[type=radio],input[type=checkbox]{accent-color:var(--cds-color-selectedgraphics-background-primary);width:1em;height:1em;line-height:0;cursor:pointer;flex-shrink:0}::placeholder{font-style:italic;color:var(--cds-color-placeholder-text)}label{font-size:var(--cds-font-label-default-fontsize);line-height:var(--cds-font-label-default-lineheight);font-weight:var(--cds-font-label-default-weight)}.bbui-icon{flex-shrink:0}}@layer{.cds-t-body{font-size:var(--cds-font-body-default-fontsize);line-height:var(--cds-font-body-default-lineheight);font-weight:var(--cds-font-body-default-weight)}.cds-t-body-large,.cds-prose{font-size:var(--cds-font-body-large-fontsize);line-height:var(--cds-font-body-large-lineheight);font-weight:var(--cds-font-body-large-weight)}.cds-t-body--b{font-weight:var(--cds-font-body-default-weight-bold)}.cds-t-h1,.cds-prose h1{font-size:var(--cds-font-heading-01-fontsize);line-height:var(--cds-font-heading-01-lineheight);font-weight:var(--cds-font-heading-01-weight)}.cds-t-h2,.cds-prose h2{font-size:var(--cds-font-heading-02-fontsize);line-height:var(--cds-font-heading-02-lineheight);font-weight:var(--cds-font-heading-02-weight)}.cds-t-h3,.cds-prose h3{font-size:var(--cds-font-heading-03-fontsize);line-height:var(--cds-font-heading-03-lineheight);font-weight:var(--cds-font-heading-03-weight)}.cds-t-h4,.cds-prose h4{font-size:var(--cds-font-heading-04-fontsize);line-height:var(--cds-font-heading-04-lineheight);font-weight:var(--cds-font-heading-04-weight)}.cds-t-h5,.cds-prose h5{font-size:var(--cds-font-heading-05-fontsize);line-height:var(--cds-font-heading-05-lineheight);font-weight:var(--cds-font-heading-05-weight)}.cds-t-h6,.cds-prose h6{font-size:var(--cds-font-heading-06-fontsize);line-height:var(--cds-font-heading-06-lineheight);font-weight:var(--cds-font-heading-06-weight)}.cds-t-group-heading1{font-size:var(--cds-font-groupheading-01-fontsize);line-height:var(--cds-font-groupheading-01-lineheight);font-weight:var(--cds-font-groupheading-01-weight);text-transform:var(--cds-font-groupheading-01-transform)}.cds-t-group-heading2{font-size:var(--cds-font-groupheading-02-fontsize);line-height:var(--cds-font-groupheading-02-lineheight);font-weight:var(--cds-font-groupheading-02-weight);text-transform:var(--cds-font-groupheading-02-transform)}.cds-t-label{font-size:var(--cds-font-label-default-fontsize);line-height:var(--cds-font-label-default-lineheight);font-weight:var(--cds-font-label-default-weight)}.cds-t-label--b{font-weight:var(--cds-font-label-default-weight-bold)}.cds-t-label--small{font-size:var(--cds-font-label-small-fontsize);line-height:var(--cds-font-label-small-lineheight);font-weight:var(--cds-font-label-small-weight)}.cds-t-datadisplay1{font-size:var(--cds-font-datadisplay-01-fontsize);line-height:var(--cds-font-datadisplay-01-lineheight);font-weight:var(--cds-font-datadisplay-01-weight)}.cds-t-datadisplay2{font-size:var(--cds-font-datadisplay-02-fontsize);line-height:var(--cds-font-datadisplay-02-lineheight);font-weight:var(--cds-font-datadisplay-02-weight)}.cds-t-d1{font-size:var(--cds-font-display-01-fontsize);line-height:var(--cds-font-display-01-lineheight);font-weight:var(--cds-font-display-01-weight);text-wrap:balance}.cds-t-d1--b{font-weight:var(--cds-font-display-01-weight-bold)}.cds-t-d2{font-size:var(--cds-font-display-02-fontsize);line-height:var(--cds-font-display-02-lineheight);font-weight:var(--cds-font-display-02-weight);text-wrap:balance}.cds-t-d2--b{font-weight:var(--cds-font-display-02-weight-bold)}.cds-t-d3{font-size:var(--cds-font-display-03-fontsize);line-height:var(--cds-font-display-03-lineheight);font-weight:var(--cds-font-display-03-weight);text-wrap:balance}.cds-t-d3--b{font-weight:var(--cds-font-display-03-weight-bold)}.cds-prose :is(p,ul,ol,h1,h2,h3,h4,h5,h6,table,figure,blockquote,.cds-prose__block):not(:last-child){margin-bottom:.625rem}.cds-prose--limit-line :is(p,li,h1,h2,h3,h4,h5,h6){max-width:var(--cds-config-prose-line-limit, 70ch)}.cds-prose :is(p,ul,ol,h1,h2,h3,h4,h5,h6,table,figure,blockquote,pre,.cds-prose__block)+:is(h1,h2,h3,h4,h5,h6){margin-top:2.5rem}.cds-ul,.cds-ol,.cds-prose ul,.cds-prose ol{padding-left:1rem}.cds-ul li,.cds-prose ul li{list-style:disc outside}.cds-ol li,.cds-prose ol li{list-style:decimal outside}.cds-ol,.cds-li,.cds-prose li{margin:0 0 .5rem}.cds-prose :is(p,ul,ol){text-wrap:pretty}.cds-prose--preformatted p{white-space:pre-wrap}.cds-pattern-hexgrid{--_lineColor: var(--cds-config-pattern-linecolor, rgba(0, 0, 0, .3));--_patternSize: var(--cds-config-pattern-size, 96px);--_lineAngle: 30deg;background-position-x:-1px;background-image:linear-gradient(var(--_lineAngle),var(--_lineColor) 1px,transparent 1px,transparent 50%,var(--_lineColor) 50%,var(--_lineColor) 50.78%,transparent 50.78%,transparent 100%),linear-gradient(calc(-1 * var(--_lineAngle)),var(--_lineColor) 1px,transparent 1px,transparent 50%,var(--_lineColor) 50%,var(--_lineColor) 50.78%,transparent 50.78%,transparent 100%),linear-gradient(90deg,var(--_lineColor) 0px,var(--_lineColor) 1px,transparent 1px);background-size:var(--_patternSize) calc(var(--_patternSize) * tan(30deg)),var(--_patternSize) calc(var(--_patternSize) * tan(30deg)),calc(var(--_patternSize) / 2) calc(var(--_patternSize) / 2)}} \ No newline at end of file diff --git a/assets/benchmark-chart-1.jpg b/assets/benchmark-chart-1.jpg new file mode 100644 index 0000000000000000000000000000000000000000..b17947ed94198a532b8cfc2814d96a6c787f09ae GIT binary patch literal 29081 zcmeFZ1zcT8vM_#u;O@b>xVu|$4K4vL?sm~&L4&(XaJS&Df#B{zFOc96EI0%LAG2>~ zcXr;+?9Q9_$?yMv=QNzI>h7xQ>guXKea=0Pi;rIb81m9`(f}wZ008Rg1Uy0jK>&oO z0}%lc2?-Gu4FwGq8xsQq6Pp+Z@989FBqAevN{lot)RfdLG?Lt`tlW}H;v(WohMJm& z?oRHRnbS~zmcU~V022Ym0%i{eiUI(Q2?c`*_1FjC{z*jGpG5uJ0S^WJ3>FRn2I>h5 z4fD$qI4D@?XYeqO%K(%oJTwLj##5u5kAG|VU&%lX0yE)6e`-mmDMPJM{S!%8#u%|o zn4fUJcRZKMVSMma@S3|^@iX4Tic#PVT|Mw(?jxGY+MP_DC-UuN-kYd59Cn5OjGVoY zs3|t$>YeI}TxocEK{NTP{=7;T9L3sxBQTysv`o^84z-jeJs5uEPyRt^Rz3H!v&k^D zm?TrAeKU9PSP9IQzl5`VG5t_+^xg2q8-(AJ3jo-u_(~WZQf*}?@b>zaUR6p87e~W| zgb&a?;Uc{ctOYq$s=mTyz|m04g~tsB3f%d=dN1;UP-Az#h~+2b?-TzwN}*(DUY?h+ ztxoKrrP@yHlDN$V9|uf3|DQOM{~{hd{xa%|&nEmNF&EyQf4)Dz?lQ5nGuO;v+cmks zPlbCaNv`Fy8VhAO2>dM`Je$85BtmS)c-{hEalOwH{vo?p*G?& z`QkEN_Sz?~czMx@(ermwnUL}L*W-iP?68&PJ^iVlZS)Pla?32TKAxx99sFYmgBVT z5n$EfsW}AD(hlE#a|A0Dbo2XEelCS$GNv8CNLuG_f$~W`>#Gp9hkY9Bg+D&lP=Q(F zS9d9SvCK64nJVQ#D5!y@r%sQPH^aA8vp{|sPmix>N;%C{;21>w^vnFu|zS^Li=i=%?J6~Y03`enQE?e+;lz0t~ z@M9TT0Z1dKlGXaTr8PM}EAzLn@VqlFK7G%H;llvt-#I6Iqf&+xck$Q~Hxc9=Ggkne zqqinnq|MMj&D$S;eBSPSS8`|xgwH(%pma%lPEIE*A$DvGV0jxODq&~%<1hI!$@l(b zfPAZd4F*E*w*ZWc{a7E|0`hyj|3hRcv(gPmIZUjhVbrmUkH6WCKdmCqgQ;*yr!uKp_q6191Ex*nJ_bU`BKP?|T;ZmbI_Eyjc#|%l{D!ev8$gQx_D<*woUT zyKZ#LZ_)n?{!cO?a=#C6-t$E3_+2K%pXGiYj?}%${}_(Uf8TjVneE9Y^9sFi{7oiM z6a8L#N<-AkN<&miL$s#-9MO1se~xJo%}vGOcM_Jp-(-p=kDHzcdI`4+;AyL@9^M1) z+-LqNo=_9(oA*iu)+H+dG_J#Rzt&o39ZShuAJKm*0zaLWO)!{^C=;;!wW*6XH#FnS z#fO%6MJ#a2!ynGDKxlVw*e+;GHy+fS-m85j_n-RyfLw^M=K zJb~QmJiao0G_BQw{VNfB0!)RK7UQQxaYSiNQzA=L=|GJ%{#PaFYb|VDV4V9ZITY^P zg|WRs#{i68SZ4kpV2;c9F9$iCs`l#3+kys7s<4>8r<9t7C;wW&f6exF4bB~uwh?a& z)a9*@<3-%Lk|OE3O!@IQiE$=>7-On|8O4q%^?lF(ek1z3rk-*OcCM=|WA;LAivW?C zOda|qWmt<)1t{ej+z=Qqe=@_=1#~%duC3`4t~Z@0&xB@%06bVP!BmiOSdr9(V2e_% zS*X^Js8!{*XKxTZyJ-JA!yu~Lp#IF^z~*SBKgHDY1xRE52|qv?5iw>&b#%eqdovYuL4J7 z2s}ISp61kXVahjtO6-?xdi!fBX!D_IAr@Aas(Z$t@}P3w=8SHNM4$t0n*@$iEqF=w z?EqxfN=!+IB?0vkMgAp=NWD-WKB8BT9)uQ#raN0*rwbdp2asBu0f-Q3coM)n0XYi8 z;`JJg*8VGB;1)C+Z-t);eNOyyarh@gl}^xev$$HR*3j)E@RreWpKRW}&eKQwEG zba6o!xT~Bx*!&`;&yDMTMPU!UT0Ub^S-ew_^{4X7EW!HTy*|7Ax(hF&?~efOe#XM) zQ}I`rPsy&p4ewkhrO)1VSzBV-P=8J6%Y~QGdEoTs1eu`}`~oI@W~YP8#aExrXI05- z{fK%}hijLRcE1D?5Q`;0|Qa}0x z%p{E^b$lb_c`$9r8dJb;CtVp%Hr%QXvC3m?^x4Z}49mY&YaJZi4{OLAoil&6eGxU& zCK5m=zwwmllSFPnmG&Ua_W515^IyzZTWjKkQHjo{TM+S5dvzXi0N|OxOGW#kr#*+F zAqz#`pAaH1QMEojA&~MXKJI-40B|D1<;E}kpEf8MQDt|YZXBRwGgEY#{~>S=-knMZ zbP*UW9Qp&`hdSveiAbAiz5oE2V)fsxsId;8$gmZ738>4^p8XI70Pv(jM_GnZ+W7zg zl?u!F$t)Rn1%CjPq=%`Ur%qg@C;%2c%G6TU%A7^H;z<&ElIKKOX4$q^E3w$N~aM3fPc{yIZ?vH@=o63Ni*MKMEtOk%%9q5%Y3g+Y5{ow0BA21;#|8N zinRd%_Qn+`yWqZ|ehz;CpwLne8_w#f(Rn8xuSXh(b!g2mc>R=xlE~S0gnQO2?+>8U znoQDuY!+pew3^l2>!%ZQ!U(wa4_81^4!Z1s}v;b&ulin;#*|Kop5p7RekWW-Yd zC^76UpFy|DzZOHCeUG$%>Luxrgyzp&07atz*!XV{6zS?E8&#zL-w^*s2AY2SmdxPb zAnD(z`}Zm?-j9G$K$H5-j{o10|3=QXf#i=h_%~?&vnr@G2kFF}5B!S>_`Pz^6FW6L z!xUcF5r6q-b$&*aMWa9My((e=pkSb(VGuB$!NR~id)iWk zf`)kpfQ7@v!Y0ST<=}L3PDsQ6vaxfEscLANn7IVR*Ve&v@fhJzsHnZh7geV;&Z82S z@Yjl)e*3g1i}18x3-to<2spg;jB{ow*kLpnyf58HlAr2Cdb`E{2&h$?@z*E<2o-LF z>S!|?XK~vpJV*7}MFXJV*;jFaK_s{x%gS-3NUKgl>s9Xxg+@cE1cJ%#F#PNo13c-s z={kdd?X_ta+IDKR(q3`kMerj7BBX3==T@c=nN@DYZ%*TKJ|FNy z*0;ZkDo- zRW6hX<|ya9%G9^1AF^jGO}Gy(P}U^K{~91voIS|rnV|v7i>t@o?IjN)p6b$8xtHnf zw&(gvQ}+#!mr7a6cfzI_i49?G&y`#N&Z8+coFUsP^#B&R zj2CamA5*red6)ktlkgHJHxE|7R!dLcx}%GMlR|>ECYrkuST}Pa)cBCMzUm>ms+(|J zD*q`<%upm};FvdZsj(QR9%qn$n>ZPt>kL^rxh*o>7&3lzt8Okb%c(LATbl^$3;g=2 z{SYCMIUY~TAX}-B%5qtDEO85`!!LB2sxdQR%3Y&O&MXD`KKM0)$}{3_g1|drJzQt? z72C}7#h#o@ue8NhlN+~;Wg|VzQe(UQeEF7Vj{q=;wz6;YZc95OU$6-1->{SFD#y*U z)tADy5kt# zK4Cl?m&a?|y9zXxub_Xer_DE@r@^wJ%BoBaNEQe-LoDxorx1L|w>+I`j^S}9d?(W};`a=i?nj=`9t3)00Q0dIRK?XF82 z#76*w@{+a##u9V9Q;_G3N~osmyWC*+c~rctz+lI~vjkmhe2upJy#A(wmmRZ*P3H>8 z;J#p>M2DKRQOx89{@e8H&H5le<&Qh6fB=Ls!f>-U+wK`5R8(PZv+P?rm>h75TJX+h z*Y>G$cDRCYfPf@2!ew}Y4*hsuB)J8H07Kn-yio*kqG4Az-{r_LYt+@OMy0i@vxJ7= zn(snMt)n>>z4n5bA+e{7Fp4R?R$jL)u5ZNAH%JMnDbLPq#sK$XeM_Dl;K-BUU9Z{2 zZeLQ%cU1%IfDI;6^la9{vPh-}%3&u|*!WP5*M2RbHrwv@7Wj;Bt}xEBzJZv42$t09 z=adqIJcu0nsC7rNYQg0lTCcjxnH%vXHy0U+Uw4E`*QDFyx2jWjBI!3lqTu8n0q+9S z-!HDX8fP75Md(Lh74aOkJLgs~DiqqRO2UE$RWn{+P~e<6)$Vjv95uDi|Am;ll);R=Ik7V z5!eSTIUfOv!l&}qMPd-JtfSuKqfk0V^XG%&3G51hAI zG)wjp%UeB0{6D$@girP2o`oH?rg|v?byQ<|5`yql)B=#iWQX}Z>A_r$Km{;^8k#i~ zw0cfLg|>0Iv%Obi6PaFQ;!K=8C!IpW0gBL)^?Y2@BcM?fQ&t=!C=U@)UK9Wo2XJ#j zP4&$UTRzf3MnW1DcoH)EB0&K6Awzhd>NUeG00chW*iVL=PVot9n9&1;gMl`qa-t{` z2I`6pv%0!XGg;KQBp7gJH{%Za&5HfUG+e1Y)U}Y3+@83kyuC_h`Y*xc7>q8`Q((f7 z3l%ZZX#%R4Qyg7uCF-7K`56THFoLN2kU&N1em){uU4JAM7|ztBLp?`|9YtSp+GnA- z*;3pOS%UjGuNejdqu)E5vlto3kpnW@k)ITa1hQ6(bCDy*;%8KwZw8es)yv2z1B+4< z1=iZ_(-&H_XP&~qpnY~Y=G3CIpv_#IYP#6;=&-DH@yG~~ynKueIaJzNx`ZNcQ8}1? zhCd4f&T_xRM0pfoDguOrv;5wKi>mjVGr@>A0@&_49UZg4L+Rh?zPxk-M=HJE(_ zl*eg>q-c8d*Xd+IuUh)kC?pJYz%q&g#N5#{iZbPEfv81XMT)DG7pGBSHObEB< zwP5cq2I95G08u-L$E}gSBqOzMjHcYTTi1awnRf^js>^Jr#G&tcYC3^Z4{NQ20lkME zO=M=*QyVY5#yy*WBc6Txz$UFmbUN9w2)vB<-xRJj^kyUQ&N@Hw%?&=syV}*A#+_8~)rRkOx zuL}&bEg7X)`#S<#?OQ_Bm5-ykgF{pHJ8-)5BGUiU_{~DYA1Qqm?t7%zaFWX zkNj;BY%8%XbtzEE-KM!rEuHs3yl5hCJhjzKXgtni%6F>HoDDYk=2~~c&Y5)aZYF@+ zd~YHpB7RF#r(%jJjwleeE<{c4D03vqYb)pB>&pa+0oM)ADJ4(U{(2XF8B5lPu1HJ2 zkAn}kH%;#MD1JNt9JH>`p{oQA9a(*Eosm@&BW2Gy0qsFAP-Zk`V{8|<6yFwHS6)Eb z#*agk5u9iB)V-(g=D!0Phjxxig7~eg=sT@`%(*4Bq}-x6rzD7uZjh^Xt_p2yb~P*W zYdRdwPH2MeUY{pxJ^T$R)3uUt{zf?&75I(|&9vSJpu6SbHrqqouz>TK%lB)a0etE= zpG|NTd#7XJHyK)sUo#8qKxh4OHvrKy^goYUX_*Ynf@x9I?kv#xOh9sY^Z$ZKI`5jVL{F;%~PoGFl<} zaivESG0n3*V3xuP=ZItx6!JtC5DF~uTi3nti58Dh_eJPcL4rKn&5M>Tk=lM*x>FkZ$%0QPCX zIs(obIh=AlgVr^nqI~g(ru3~me2&B zC4QP3lXAd1WR*}(RC`?W#v#+K7PXct1*lH~_E(02OA;5O?SOObbn@|ycE~g|ECB7| zFYL|V_FsPI{vYK3Qws6U>}_hLQ%bRv=oB_?`fT0j63puql|<$D!t2h~d*k~L!q0r2 zUDDOqrtS7V2s4v1!%c!4X|2)<%(1&iecNPFjqq4ADpw-b`s zmdZ$U_4EGTx^Izg8XdvO4WEu|V2qQqZx!Wg4QeiDrd^uESNAMd!qf666M%g!IXc4DcU@k{BNt`1OtKo$R1r&C7t*hs9Jc-3{wXAL%zdijI$17@+afF8OgnjYagcWA= zM&z_<;rVAiH4n70McYGPH2QJ;%9ugd??ft>W)n>{~_Dr8A!(c>U+H7 zIh=@1^(Dpn4vP1j;a92NvFEq%yFNvRzGFYvl)jhDz6jA}(}uD|JSjK*7Y_OALHLJA zmv?jvS$5=!>gD3UiU3`)e#+IKDed8R^Y1?SxUu8E-M%ODfY?SkWYP;^4li~3GduIQ zTd$+(+D15}zi`<6JbQ3G1bKVA*Lg{%AN4OBC*pZT`r}YwRwG{`8nZen<4(mL;+55UWH-_2M5J&L7F6?)HcvfAW#JxQVo30RyJ5 zcQ*Z6dR%?hDSJBnuI9UDp(87XzO!AdMGR!ha}|Gk>-72*9Ql zg&m+~gRp-RoS+ZV{EPu%xuNN|4f(E@xgRoYK1GfN)c56bh+=#6p*jE;92*>!)(GTdRmvPt+b^}TNDh~6^>1L6=R z!>8`(0)}^$JMl;bg)SFfCb#&!SJrv;F1_95>neIV)pb(Gz~V`S1)5!hyT;pecu&{A zRQOBXq!oSGVB0k<18P?GhwhuxEpp%$$Q39i$_y06T;nH9hQ=9aRLgHT6N(|H^V@kB zODZU59ijrUJ^>;k!aM@LscS{5V`(cLs|0*zj z9_%VvIEinDIiL3VD$@S^_gB#*Gnami+69RCh`@%#1S}}EdGB!9yl5w4e|(3J&G0&> z%-5L2@#C7}gSE}-POLnwDWNM`ifQ!YMLFb-zSDn<*Yurvr{vJNVN`JEM_^H@g=$Vh zp=o=K1IDNgqhJbGFEpVt>JpR~w^5GB)zMmSc%GEgJVr1R4<}ewABYG>6o-?O1)!6Y zHL#!TU*2tjKi*#$zKN|G_!qYtu5Dd6UiSUYhI+&0ai8+?~UJ$xx+xFk)b0|3YRoAfwng10Zl4{wm}Th5X~xiWfGW(hAs{`$1VW^9d?VbKBy< z#AFeh(Fo7Kn&_O#8lzXBy?IXqZS4$7_HG|-Z(BkFvu5F`_$>a>{#6bVf1VSb`xw*% zw$tl_?N}eT=fh2?!?oy?OZDtn-ewEp$CTAYQZiPozKZ!{y=duKH8VM4#yCxMyA-68 z^Cg@j5%s$}08mV3^^ph{%g0IU`J*o`&U+8xHLZqyPd8{lnKkV9h@7!sI5nWS z$Y{KO750JV$PageRj&OX3at7T7LMoV^;-mr7wD7dJjJw$p8uhxOdEvdDpL3wr|(VA z(VWHJL3>d#_mcHBL}dVretrKk%3K$W0^1U8 z{*~f2WW9hx+N5jN)$bO3U9D(*$Yp2aozZdI_VEQ*%?FZTdU`pvFhm#*We+HsQ(lx% zf5Cbed{=S%U9Fv&-MIriU8WEQvW1R|w;4>*c5NGjNl;qe%2pkszIK*LDT@pW!>-hg z4eAh}(We)E-ux`;D1|R299nbxQnl5dyBfUzdJ@Hq=NT5X>0CHWH;-phXP~S4W2Bt> z>#CRk${xBcfnk!Fnv6H*50_K)kK=+j+4hYh1=8&|5a%jGR*u}lxpIMboY8gs zTz=KXd!||MGuQt=5Q7e~&Qt!IgfMzMhehJ2cJu`C%n9%V|DcHqyZhwD6k<~`fluJ> zF~#T;^~--yPPH>N%K|lHY<^;1+D!<=+l0R-p20|5G;(?5XGJm`-zP)1UE@#(^21)_HjlUSqbCrrx*8)myx~3fmE#b{VsVgXK7o2bo&M4L7Edfo{tP$JQ!W zGpNS0?~O(7=xxNcrd*K` zPY8Q%Jn@j7HxEADod`95_LQL5jC^Rl3H@U6;RaIcVL$s|OXjioht>pSjW00nQ5L$0 z+*nbU{l-mC{-8U(D*01B(s#H;*#d^pc5(<%y)o~->Uys`nNighsdMhSaB3@J-}b<4 zIlf@nUvb;^6^$yI{-O?~hSc77_$Qs#<)J!*q##r3W{b*(^H9VCQ=dq@TUR7IdZB*x z#+bxDzU@st#&@aZUltTQY5q`ZLhW9O2*q1InKT@UZ9X@8_UFh`sbKeppvAcUm28OpeH0huY7rKkxVv`=^4; zLrHkY^G;{qcBh*w&;9R*rY~k^MM#?Xu3GoM&+37^rLXv! zldX}ozX~!rzxs0~{5_lIo5}6)_oKnhrQMQ)+Nei>^2-~y#m(g>NYM#=E@O%3tM;Np z(5)JwfA>$Do{-{~{`163NbF$!r1F9(!9#Z1x1-v@#!2P*^bN>P%mmYYp`VA_kpX7p zUm6a4jixfui|%d|%eb znelf)di+T7PZ*I&QgoUA=;VpD{|8NtlJo|ZY^z}JN#$644(-wci6rLw#Gri4OYVkmOCJsPS)bsKv;RzApokwYQ{|5_bsg-OCRXbtE7Gg zd0Ih*OEW8;wW|huV$%}gs-u+6U|medu*Onq;HLz+A*igMtNvq4&4*oZB9vmSfM7Y5 zSrT6|Nt3L?IK3nQ50U0KW*6QnbL?Uf&)Cfb({_T&R}Hr%a-nHjayynIGM z=nrPUmXE4MG?^f1;9c)~WU7!A`G*X*T_PJhcVb;LR?s__-n=dU3a-sTli0V-eR1Wh~XGsd%+8c-+5fiP?ae;c8{s-5$7lgJlv z+G(cF2{l@gsF_&zEi!sR5S+1=`MK z+-|r`a5D&G4`dXdQ7bI9KoHJHCc2(xuRLce z@Hh~7TGG4>1@)&=VVd1@a4txUOuJnar?wNp4?x6hoWxpd1% zofd@2v1Opu@%V;~1jUxCAQQu&}tNf?yb6d26rVK8e96Dp1e@on-J5wQS zOde<*n%b&J%o_3m5vEk?*H;wIP*sRxI+Ah{TLcd>ety2IT!B&T8wOg9^xp^heEY;E z=FrQ2lQJcm@s$>_%`_r1$u@No^zV(_UzI_m-#oUshot#_DSiT*zygpxN##E- zOR&UR$FiQm*0V4Sfml$I)Hig!3%(;+^nzk|(wK4cJ}xKVaUxT)B?xuRK3g_9ln*}w9Z0k>9pq2T7fl)(wrer?6aaYEb?QlQJ?QL9!9gReO398Nu- z&$Wz&;lK3d!zTYcPCr5?H;qt8BR-$)oPz04-txHcfZm>C!g66}NJ3)}Rq1wm@*1v3 z>sZTVYsm2ejy@*az*}g_w}?t%o5bbR!}io}w+Skj14K;6jX+ogMn?;dWB!N_D@DpJ zt5YlsIC|-sr73$DD+mO+PUYpO-Mg3{W()HUlC(e^Ny|v8>37ldM-B~=daY+zv-JEH zzWzvVocN$mnK~gmwJaL$Al=IC{Ao3;%y6Lo2g`U(lL0)?y7jwBOuF1Mr@3BRmK#Io z&Xp~twp9qPZJ@g8u%wqaf<4?wxTsd6Yv}H<8f@JZ;! zVD!W;(j4MaA}K1zTL?|Q&;w7#>-eXZK_<-fA+tJ7{Kt8k!KcJ!u`jIJYfC$%lh5PxG#yD74_Gsj~kn(Y$tG!Y-iO!Mqyz{v-ymKoQ~`> zs9H$O9a5sC@KU$xEa7slw0pM!Lllt~n0A8w1L_C3A&-jtdKR#8&s1)Q&L zLeZMN10K;@hboNlvuu=NnH5x>ye{`-4*h(ul#F-$dKC18RV~T_9OHu;kR{b=Y`dE-0%W4fWIC|mz30w0#*e)j8}lxQ^lOb5DjlfuB>g<( z3U!Y7@&=qx)3+`NBBTRjIG|p!TXUP%O4qZU5jhQJdp_N+x43}H&$2hdP&bGbyh5FF z=nD`P!^SxFZEq3AT9uc`S8KU0x)W(&N7j1joYg%Ubwj0%Fl+{mqbh7f(}6! z)K%o0RkXD@xST*TOd1xdUNx2eegfFtWi<4^5aViTpatb(X}~{lp1C7;rw~Sz&Vphj zQ${WZ-t>7ulq=qM=;?PNxJNpI4k2ciJo8_MKdQd6P0l}c?&T$du5Uda=*_E*$DAZ2 zEffz~38l*Cl=CsAZozoclUH!hIvNCXNo`HxWs{%{ci3)!-vE1qg5yZg7jMXCIV)Lt z{!c)i+H{IFWBE6*Gjz=KV1E+Zk>J9)SafzP4pNO&a|Q3{*P$NrqkAuM%XHB3d>J^I zTRxP{3pQx>v<&J1VGYMJThJQb#}X=jeH|t2;%e2YE32najyOh70L}H4%cw_uWm

i+bt9g+n+-b@V*XyH&3~ssl%jlSn=UKs7m1M zV%2lox@Du|y>QR2YxA-RgT_9cdD6|?1+GUsH^Y%l-=R?16+#S-&uhb&CyBf%nv}Q-RoN@_2J2U5*EYwi^o z$kg;*Z_!KXZ_yd$1`*D(*IinB8pYkro=7$cTJ8aG9a{zlXgGPwXs8F)ZoFl(hecoU zbDh_HZt0dJR;2Mcam(c!bIQX_NgUWO=t~c@ZU$v09cu4cs}au&7Hqz9Y}L!tU2kVG z&1+Km3q7Y+$pKKdaFtxR^IK{Tby6>CDDSOLCFUOlI4Dd!v8w}2REjC15i0T+hR3Nq z8BmK?9o*DwP4kLm4Kj*ExZM%25wsS|lR3l*%tO;k)JtOgp9@pEQ)waQ7D^78P9weC;)f zGz)9eaT?Tf?Kzkfc=DJcoGa{9)-x4}Aph^_DHz1&5(7;W@8ovPUwNXh9=`L!6pb=q zC&eO(-aNsn6x#aKp%n?a(w>(gTOg>c(xxNl>EW|Bcs*t{hKr{St}94yz{1X9(eIW= zBuIee8s#g&)CYdnOT@gnMW~J2x5Ie^j3AV1g}d|5e%m@oyeppAR5O~Cd5*D1Nj(?R zOFBw0KXqQ+ah^W-`SngS{tC-0S-f}eyRzD%k}x3h3QO5B33nx@@+-UbI@SiVq8V<+(xZPZDPmSnqNBvFg_1>w+WH><$i$y;?b@K0$|glL1i5=VpF?-T67loI%a` zBq%*261akE7HyO?TP>eGoe)&;f!L|Y)v69uQ8{FfELFVb(WaVh{q&P4t5a~9oVZ32 z-Lpb0xg!9qGSRMOe2e*BYMNHr&SX@~G%mNxDH>)lbx2_17kTkD)4P=zXEmGcC{_2S zTD0+M`>*HYv>G7t`h>RzS-gat3ZUqkWxOh^ggC@)%I`=k;M(;0q*!`>&2vLmEIpzY zonw~>jp$?R097)HyQFPlEMMvzmS^)sO>5x8hI6b9zE=q(kATJZb=t;D@3gIOg?8jU zw-bt5y69ku*@fRizyp^+Vz)}ke@Y+JDKjsVPpx%g#)BH2@q0^FPj^%TFDj{s+2bIN? zQK*w#ZHrza$ioDA@LAeDhvUnXO`}mVN6mO7^SvyrG+S04aU0$?rCJp-z(Zl5`U%M$ z3>nhbWC|>9DKqnYMru0d$Z9h)(34M}TTxn0N-8Xq1i+bPPmx5KzP33+y;B^ayn+NO z9pt8JCaNI`$+?PfYY19UB;UXAtyg-vgCQ+0HX;EoZ`hRAUWbx1PpYV7CTF_-1bB9h z9Na_QL^Mm?Mr2;NQ}8OXLr=Hen~uQ^b%d!<(Ks>@woneCOwEE{fPvD)oo3D5M5QHO zT6I};6MFVZXEBX@pDf}wTI9t=pNt|Inn^}K`%Y12df3KQjDG0WrPLkIu|CA7Sl4ph zJ?m+89->*nrsZw=sTAvZvq|P=Tk^*bTqNe!{3Uv^kAVC@#Ud$VL?q!ec)Le{_<%xG zhsqYH5cVZYKbU6#5t#oq9GRw)=WG;ZotMRV6q56r?+)#hq;uA2E}$2!$f(k;?c zO+(^pV;@}*-3L+`Ry{H}?CHa152=SH@>Nv+f>G6E26NFQoG0E|f8Z6A~2@cLV ze3;gHDGWUV$>(<+%;N938)Xq#zl?Qk(_3FQ7G#h=1CxrSQ9Z2{cPJe&22F(MCfQ$y zQ@7S`%8NE>IoXoj^EIRXk^!DsiybF@lp<~9|+uum%asO^&RN+Edd+?vmA*UZ(OqoGhv z^bt^SGV{Jc{LN=@G{LPxTvG-jOLb7yy7SZ0qED|Z7H(NN>Sp*9DUAY;xkd@^+ZmO# zuGW%k-EzX$7g^6NwHAy_yq>v^MLPCO zs0D~IkV9>9hmkbq4?5}3Qo^fLy0gtiJObX-u)X74@@e<_QEpeJe_`1zv7}j#o~M;c zxw`uFngsP=W1w8eWH?M8tab$+Ji(len*0auCPN>m-}& zaMKMs&{{8ge>REzORa74ToGOVEe6-mM$;&5+0xaZ8sl&;N)qUO9b61*Oew5yAMuL$;9^6lclFO8fPdL#f`bugIUXVX6g$G8BQsOUgWJY z@wCq(T6i0MksGJ&D9q8A%kH+RYij5*m3X;RRGQ4JS9p!wxbfLC%zVO|XNnwcnp*NY zK=de4X~hY)PtdhKci2A{@7Qk11h4%4hB87E{iC-3~MM*(Z z71Dy19T6gaFfXtS`)D?fI9xbYmibu>^ia9td+vOi9b=_3Ldl)4BXj4%17|GF2T@nL z!{y28YK9i)$z45Ss zyYF53iDM)+A*j?y$+kA*j%|vbSs?Z83OrpTV%C64ReZPwILeq*oL&UGitA5m9Fr}d zSvafKSM^YKmRRUL9q+bxyyX=Y2UJc_K_nw<+c!ix9 zBG}@)8}j*$^ArJA98^@^BY<90n_0d=*Q8q`m6Vy1nHSBnWdldA7I$RZTK-z-&a`qg zWQkUjIabdlSpQ`DRI0Mv7H@aj&qSQlR?F{VRPLyvx&vF0S`JL;iM!`tuua*boCb#@ zW0?8mD`BWBd!U`UIi4YVO;zI!_V*$e>-b7)#k?~f3!8l65mj*R}orBOs3Q3_^|!H z-GzA%QZ+@&nwMs(SOTYmg+wRFqqs3oZX!2(+}=u5hVUR8&6drEqa`79MsVx4;)Kf6 zOspc0kx)c;?N3r?J=%e@oY@B4Y9(MweLdv@OHrj=XKW$BI^R-WzXGCa2++Dy^vKjV zE?Qx(t~WPuXQWCQ4rC22m)28nw5o#~)}|7|NHr-$7=*-=<9Z4Ow&-7rgI!Q8ksaWY zRC1#^(0K>7N~lfTqr0%=;-S9|C`m9SvvqouC%x2pdLaQaHmH+@$NK|+o7_r3+c5mo zr!lUvj6R~HHq}Vl1~NK=Vg(VY*ee?~l>`k@+=!~v6ShEtv8Gj{7u8Qc5N>Ez%YF!W zk0YeQGOzII6=6%i6I3%5O2+G&F6^=stO!I|Dt{>9^X+478mYGg&Qu*CY0|n1IzuQE znh}L7MwOhz)~)mSX>%h+l-%TG52{*s9&`C42h#f?_T=v-zNO+1#&cUVvn+t45nV`= zbdwyw?%Gw3${>N|9li9v##w<8&hGnTs%cfu@U*N?uv9sQcs12T-j~ zfKT1U!O@B-Bpglli-;*}NGPlx+m=`6f$P~SU4KekV3p{Y(D2b76F312k(M0JY__>v zUF*lG-n`_?dbE91!Vij#YuC&hTun5hjZJqaGAGH*^bfiLpB8zMHAXoP<CXO6`3O0NUt?6SBz#oeqLtPS+{ZTiM>HK%d&lH-SY0U6Y;|gsglrL{%1$ z)vOOrnLj9($MBa=Du@GU-1Vn$H@l6c_ZahKvrFPsFvQ(6GLU6idGZpoQcEhtEX}gZ zw||8hR_^`4qS-&n-6=Hmim%i{D8B}qppv+5q-HgMl&rB4iO171MUIx6bp3U!R0E`N zBB>HjTRNfBA8MN`(}70E4Vu}$yR~I4NqRdoVXsVE&>O5un8V-eY_#9Z-I371I#&?< z>6qlrB*iXp=9GHjlbCKpjF~z!Fh$pz7>At7naccO_)s}iJHu^im)s~@Jsbo`6swy_BPMwGE zO(+UzkkUGi$f9ghonEK8tRZtY#!#K!`Qi$79+K(wCDeg%hQ zo^wmZ)ahlA{8`}3_0;A7aM@i&YAO{I-}f`dhc}_PrB0Mmw!$E0V8iZ~=n#0U-z{ZJ z7!_6SU4unxkcC2-%#S1+Jz0#x!8VXas~cRgZ87Lfz)A0HkFb^B)PTI^W$y{w<}98n zeFz7=p0l9&M~1nO3O9EHx6e?;cqa&jeoC#2RFI&>F^K!fAiKG}I6SRsMdq+Y<@~;U zRJ&^xMC6(K3Q{VI&BO;$kN7m2gt(+4N+Exk=B7<>+cLxnN>&9ZN698uc2(?Hc|~;0 zG*ZLXSi#=Qrswqt@Z-o-EPFmPa}=ytp={l^qGQ=KvpmYS@pam~S*M_t6o$GfWg~NH zh6=ixHqIUXRXNypTCG7%Nsb^fHB2?yWl;4vA%E?2$n!XCQZyY(9t0KE2y@5NLinRp z*&W;s0$3f#Wk>f+yITfi*1@1&HM7)JacGTwC~7m0A+p2M*J*U2XgHQhBfDdgCSSee z#c_~Q)DO()Z)sL6dz*EDRg+++CW{6&jq`LXWJX;3SX^gKi$Euj<=sAx=S+f$@v_1V zc?Li&Jwb;$`1z5XHxhmLW^#^g=b78?@Ol!8d|xNz#N}hj^TLT+`>?9T=lcUp@UTWB z7!n%h-dm8@7e#`znvPS-jK!Z7Rrn8KtGrNLtz})WxK1PoRqu3R3Tcl&No0 zkTVX6vm}t{xi+!2_1_O$v>@<9q8i#T@C@CD^8L;g^$V2RAo`L{q&I04xC6A|;G2<- zGLnn*hV@b5xZxGdK;vD7h;0$z7TMg$3|5ilJ6ZniM}SRWG_?q&0reVXJ(`#!x4n7Y zML?YF(bnS#k2s!G8z=^?N*rjkmdw_6ONk_mq86xToSnQbo^ zCn})d*v&{ZgA}$XgjAP^W}TUsgcVE8D{AFcSSm?-)GG@5aE?e!a8X@JA)pc)^l=3@ zPYW4^Hk*FhqwVTlM5Ehoyd0=KE$-1$L)arAPOLmV*Q`^ptR zBN?oAwXE$mKJBweo7<{Jr3#(^ton@yryfvk21w%88n5->UsC&Q`$zOPacLiwMUb$x z6qPMxJ*_nGTxeTf&J!`+Q0%u?Xk{l?TygW5PJOQsAv>vC zO;@hJeB|bI2Xij<^m$5@XnsYu)VMQvfeI}+rg4$~)!TIjHMMr@K&TO<1VT6TDm|zu z2S`AgQVdA%AVouwUZjQ=5DC3ksnT0ensh-dbVWMS5im4G5Nqi= zLQRdM*H9Sm(BA)IVSFknwUe~0%xH{}eZZlh=4ZBklve&a>5+JA$lWjb6jmW!WZK(%H9i;V^a~`DGiLX$DqY%i3~-=nN{H}v$Vn?F4KIgz z6X%*@#IKnKDrNDNp8g282|gLDVtk&Ll5V~ooTs6el70Hly6lZ?j8p2SY3VMVTh!#` zN@r|jw=iD3r$(5sZiaM#MkQ)gBml0(z)M^pXa8+54mPCzuqRIlF7#$OBhCjDdC7~n z#VmRU$xR`J)_i5dg%_(%1UB&(Pi1<#SGZ-`A>6iFd$6!qJFRd``itT{`<9MC;{4Y{ zn9{d>Q-)g&jqy_|p7z0yH92CIn^&GQ=}{{;)+P)!^1K%AwzhjWxYYi67wX!4yzQE0 z^mETOtGAgUJ%KUtHm;~TUWWfpJ8Uo&7hWs||ARi{wBcNgXA;Q6aTn(S$ zef3FV!nqIY`f$rR#`s-A;U&znS;T?>$7Va46(Pfq$iv<&M; zR$-jguaOD?x1*1rGEEL2y)swsLsp-9P(6vg>UKM`N0#}XCco(lB<3+wJp%41Clk_X zSOM$4gTfayanam|VHWmzmQ^!4-=JIgXA zR~%_zDJ#_dl4h#eAY$)?`r{;MvDwt`bE8=6Y^F%+T|zB<p4z) zTRML!*UH>XNhb>DqE3v5odFj4nXQo@b$1x@XOMHZlO`D<`ZflS7S#+@YKkf zpUW*35X_w5gU}j<)~_N|#_89j6Yn2}3D(JH@Sm>Yh_GB_0br&by<(Vtprj^77XE?y=E z8Z3RMS!VTB`sw8`cKIQcr5chsyXn~)7!)sHl4uRICA)h+D9YI*$1&H(2vX=BY4CRH5# zPaVNoKzNf-cB!OS09u!3+cQ9-tMzLy22uwHFW%AAp@R zz&W#mVVCR3Ihw_xTR)DOo#hUZ^v#58GA{$)}S+PLB#QOe#5 z&1MHJfBy>N11j}Glg`k*dpMbEs>_J`6IF}epXdV`uW&hNiCR02BK|*uRX02!KK|ku zDaT26hYFos?`!aE^9VJ2ccb~#aF@7%wvVamC4lY>aP7A^iXmzqb>BQK+Fp3^TXZMg z7||=N;s@g1)USVw`5?9eDlr^X=KtJT=eH`xG~DtiBIf6gqqfxrF1@h~d=GS#V(g9)mB5X2Dg73DL{PwdSjSVDtVn08<06 z2>BbB#fJGdThj0JMbNm0`HoR2p-ZYN&GB4Uzr;zZVwFGfxKmq?yl-LL_Rg325{LIk z{LMuF)GOLPNE0Ab`NsGT{eKVb$V)wYZ8=UIXlGmNsiKRE0+zY_2{+L^XhF!o&5n}r z-e_+0?+Kf$lk2?%2Rp>Rk%_q_|Ha_NY}ki7h2AYnQ0E>s(~s1ah~?kv^u0M|wY3#c z2ip|%2#xl)IRi+zx}btqE>b10&tki*N-dkr2s;xDY|saR{O0!tOn6s&5_Zy*FKvCJ zP*YbRG zM5u{7c(Lyn)OKwK+=PI7SBV1q5 zjzOc~ZtlWrN1e9;0%ErdCM%vUntg@5y$7Y=3C2AT{GR%Vv=DP`jlI>&JJ?F{#0Wv} zQMJV#R44tE`4K`EUXOX77sxr;vpS?eYoBnOh+RGgp7POFaHg-x>a4Ft=x_zQnf~u> z)S~+uH0sJj*?pQGR$cR(#U6Z|sU1L5K1arl171JXUO`}u7`*l7zfiKw*Z?R76wMK# zzgZu2f3TD#S(0>{rT!Pbc6D(W?+#=ib00k(kd8@E%{Gk9 zZ0uS?<7t5%ajW?hNJiD6JOFe-lu<;dvihxaVEo3j=3v77Y85V+)}aIHQOPSFFqs!` z&g60lYu`YHx6>b&=JR-TS!5VDBj+5esoXDAMlL1dU2LlkUq{(sH2^?^iA+ZA*z7C9 zxop=jq^kkqZeullY|_k73cR^7{<6*`Z#jthu?r+0B4ooSx_8yTH`S+XJQ^P2cDzXY ze`)AP!rr92@+1VT<{J8-o4sq(>WKHmWQcRQITz+Zk)ad@HfLU8GNBm|Sey+Z7aco# znx{O%&YAJ`l|=K$Ky?MkKE-+9^WcM?@(ycsut*C2R>?PFIB0@)ZyWJNld?TkMNHu} zxXi*6E6 zWfR-nq`4b87dSY49DK-i4qc`h!nfkDtmF>JlLb$DTNwIP$R8h?$4!&ho|n(|b&f6h zU->#!{|X};Z2r+bZuM=hZa;ATkEru9eOQ$W=3AHdoyvMTN-|zLP!ZKqUGaxLG~ifVb^H7%n6)&bWiBMvIxu2a zN*%{v86>&*jFvyC7M#VG7;u>1Y5T1DgQP#RmWMcs2xB-Q)4hy(58+q2CCRb2uDXZav)#CZaZjYvBY=^s~CMQQF@tWy7z3%*7kKgXAwM``~Qd zq$L4`&+^elKYEF^v0efa`#s~qqm`I50AqHV@6yu_=~(<3d-T8}CFr)OT+!bZ9| fyV|<)=-Yoi*C`X7q4XNTX;skX86fcG+2sEKI+5N7 literal 0 HcmV?d00001 diff --git a/assets/benchmark-chart-2.jpg b/assets/benchmark-chart-2.jpg new file mode 100644 index 0000000000000000000000000000000000000000..fd2b616a9342dbd5a039ea850ae5cb3db1129518 GIT binary patch literal 32348 zcmeEt1yo$gw&=m#-Q5Yn-CY6%2p(L6H%@SOcMlFWo3;+{HFx& zI{^%MC{w5nC2?+(3@}~j|2LS^K1q~0D9|{6oegXi{Fkl!Y z)cqWQ3?2cA4uuYewYC3@@GrGsVMTw&huF;9_xpAWu_gFjjVAW_+wHGDj-KC`$s@^F z7tEtSs8%jM@qDSlH@iPG{i;b#TZ?vV5@S3?Gk|7=_GnIZol3x+wz^6X-KSFJ)#+CS zvS82d>}|tqO7FIq{!kg;1fE^381;to+Ni}xl3Go@TatN$+*kab7f#A022yfObUE~7+Gg7|o{(lsh#659q&~U) z$mfRDo2=TC)9f*>+j)+RbaV8r7mIe=kFe6E_&|QYQV4(|z<_Rc*Z_cDX##vxFqAE> zSAqcGJ@UH7lgHt>SxoqVMc|W*-w*Uk6jgh8i$V%e`V21Bb}7Obf&(lnXSxW1a8tcT z{^~nb!O9XRz;Cu$ za_S=(e!KrWKOp*&+zxNK3mepg$JIN**W6AivnRgM!-K!h1%fP2=IdLrQ0^H&*txDU zW}zuV&ZN(OZ9HrSlbo4RQMdhEmu5hhW~Tl0iq6BY@t4p(h0gd+wqby6G5=B5Cvzw{ zrN2fHf-rc5!fR6>`wZa85L%m=82<>OzX=dg=SSwN?FP7~NIZ=8svusy{cGfaXz`7> zR;MyVPk?BI^vLGf)>qynA2G7RY*^xXV}QsSwYmIU+wX&#-=ETh`cA z9=K@ZJY3Mk2sp6jHu6t_)gmx7`*$j%Dttan0FbjG+~{F%kM3NL7yePj6&q`qP?hct zk+#T5rO+7L3IL@h^yy4faj(`hhNE85??i!8M6ZN#TCEPk6tY9(dG$@Y-}`_-Ntck- z0w5I(r>Eedt?)R5kF(v?W`IS@^F$M68I|t*Blz1VTdW)N=)k;|%X(3xpf z+WYtTB(U3T938;y&nnM`(AKU=F03JnjRP_kp6vESoiKR+Yi_|Wj^xw5jFf_jPB{)` z{ayRP3rg!@01(XKLkRD2k~6h+id5<^0fdqsr3I}q@zj}*EYFZO`48TfLo|=?)Ar`X zp~*o5gJ{0FluFZHWqCFfj;&+Z!HJl- z@84|zQ3@}~0qXH|BOWJW#(9m(nj^4907xUpCwRCVi>Oux#wvV2x_3zh>|W=Mue>=J z;ZJ_drZzkLci?Qw%UAtp3HopJ@VJ#}oT_efjBNYwTK&7uztPiqrGqoMcKibWH<&?` z1rMA;r!M6!{h?+MaA8AWr_sdo8Sz6_R#`KtTk(*QLvYm>%tsPzsb2pJ%N4{^ttFw< z(k{*F-{;1QY6q3+w*inJk_;oR4p4I6CP>=I(Ik6qAL>BnPMVodX%v366BdQE2C3EI za=d?i#)Xt2emUCAumjk0dJa^)&40I|@&`*VT+Ev~rkCBP;Ni7PJBBe&W0Q-D;6 zfL`iW`ts#Oq6Ygfgo0K=;t%ix7PsnNCqTn`Lr{JO5Td4VxPZcJJHfv7H8htco1NZH&Qrk;Qcvv^)z zAyF=Q*R#)n)>O2f<%$quu2tb#XPMg)g&?FaklU^c1$FYbERN!D$_t5PXEv|Ofuv!I zW7OaTq`{f**D8icdATk0FHyX~06?9B<7os)8zu5ue7_$W&2(ZH^5ajTcsxIeG8Si4 zeE=|9OP5xINQ0GY{_c7CebiH^X{n>UvT?fA0_4rnFGIx#VAgF&saV4NfTW(+)F<%H zy~N^v0Hy+BOSvBv>p&LA_nVPT#fEg!b`k~jceYDxrFM2(RWRzK7Fx3ve zf)qJ6Ce)sjI$zWj({1THaJ31vhWR+&xp|`tyQS$8`>Y&!Oc9VtSsS_Dsog#IMh`5w z{B$Dv-TR&Go{$=c-d^awHesYr^D&+}|BP6oT8Y2ft_{!rYfmY&(5*zku z7ycO>@HG-THjr0%BDgIp-2U?#0WqzV3f_*wvgPpzol3oQ149Ip5uE+N^=rFCasXhR znlu~T-T|LuyylUw>=!Zw02D#w8q$ZB;D$%J8t&y57?=L&z~u~F|5T6}5|r1ss~-6Q za8TO1{eq!H3~>NpeIXVLojD{7UN1@DytyXn1XEnWZ4|u97QXA-YZG?>AneM5gOpeQ*y9|l`!L!Y}{b*=Mi_$+viR6;PKB;CN1*PF+76+z;G11 zpzY(pTN82ss@y)SU_dTt9ILij0K+T;9F3PF?~08tucjxx4G-sO$ z8eNH@M(|P1y3msi>J1ApFDUeEh^_rqQ)DpPH-U3(D`Y$;Hhus;$68dk;+rZHb1>ki zf=qCH@wqQ@mV4ocE{KQ^!x#u)Z+uq-^#}d-6E8N~0RUP_h%qREp*GSB>@;8gowc49 zV1(~VjOn;w=&gYg@I~e1*}qZ-dK!u=b1;_eN;dwqyIj#nJO?YlTP0N(DpU!24GUity)u1^w^BMFXE{bD{$f zP|yH06g>F+8i0fXM-~JW3;+pB4u^rmh0Vcr6e(9JtlFLY*@&? zNL7N`wpsg^uL*<*sQjcm;6aZhEzp(7c2{Ja;ATW}M(9qGIZ+bW=z`s$$Q~e2aepPC zrbYHzg~%p7vyNC~+w_B)u=j&16Uj7TX^Wb*=p%UTFjgr`=}FxLYF#ApVE1Xq5ZOAm zR?4z*mbSYP0}r!^SQLB~h!nRe+R9p1hMf0G+LinZF`|`R`E%xU2iJ#}M-+K^g6ucA zyI#1vl6}sfcgZ9xyBqA3&8BppJ2oY#YFjZDKB)aPpss?$$Ea)jE-c(ErLgcp%F}m6 z3TCN{4;H&Cht$>iXdLBrZ5#L=QcJF-%$gMpPF7AnY4Cm>78J3KbP$*fz6jxz3AA-| znHyBspGYYw*w)U4rF@t*UPygNU1U=^>f2*eqmE;x&+|@-6en)nwO0zDO4T-7XiKf5 z?ZE{dF4o;yopN+}?szoqpE)X<)oNQ&>eOl#rm~b($FgtBH}ko+Z9dfCiFK9^ukp@G zD5)G$!CYFlIJ(pSSou-?$vrT^$9avv!=P#pmom!s02}!WpXtPrV`m3nZuJhdWEcj4 zVDhn&_(-WY_kr{7YNaRti}XLu1ZuKZPUmg>s>}q2`p{d=n3$Z)BXVB2s9KxR&cjOZ{pLnl zAw857WL_x<%cGof%FVU&wkh+rZI@d4uqf3n_dqzs_KNKDiv-eE>d><9Z*Z+R>%1pK z8aKFK4~Ob+%$;*jH`KO_)a==oIoXQVrVNF&HJL5SdUm)OiMS3m$DIf4b^7e4dQj}c zd599dTXK0 zc&=Dy&0PmPeFF7YKa&1a1jE6#N4SR>CPjmqnn|T)40`&ijm@uJJmh<6P~A_B_U()= zh*q-~yxI4ug+4cx=a!r2yb?MT-nUB+{cIoO20HmccJJ43LOl?<-YE1yct@vwL1rHr z<0nq?7+LsiH{4yR1G~9(`L+PfOSx(O&95k0bn^umffz7*x)nkLxH%o!W-PN()Ht~H z8SIjRI`WX60np9`XJl9(CG`b}j#Z!1dUNFy!_l25c-~8cd42VR{AMuhGJ)rwVge@YHhe$oRh(5TYx%_9(&B;D zBi+3pR7)CoAT)O2wKEE_5K77}l*x0%gn~9I1t#qGuCs=P#4oCNd)7=tC5ABqNiTBU>K^?n zgbYW7WIb2B7e8^JwJ#Cxt$z72NCP=fDfYw9J)M6Ygvd8Tq0G=qh3hVwOoa`4>VscP zHPs!<1Iv6I=key#d|)p&-N+s_4WPNR?9lBH%bmv0eNB=MTvIF7CEe4y;iYw05-Du-g?)A5!j%GEP+yTaeMKq;3qW?_e?Llw)?T2}t5 z9bxDvrY3HjQ00%yh@Oq!0}bhJ5a(S@nR9Uk$p&k2=|MIH zJW#${4XF-fUIGm*Z!x`1T`%B1;y(M;%pQsR@?QMWquE0{E!j8|q?l$>WehxK`@b+S zzMKbO=`x9GH%X5dWy1-#Cx+}V8+T&)EPUbSX?k?WRi zhKAlTa|=@^^DX@aIT^@@O+le;C@Jfq3Y7!y)q^7)VJ=HAH}u-Q5B4_Bvi>L|a*p@X zvuiPI7zYWDA%t_G_6kC&knIXT?t01e$(*rqSluP9aGOni%DAYwM~yn>w#Z3%kv!>| z{bjzlEB+R?@zb+v|OL=FBMyMs;ay>8QN1%s=>2i)9gvg0FgC?x1oB@ z^8Zn2dMyO0b7MYMFnZ-4N`Q-wg!&|$ZMcQz&d1_5w3X*m?*z-CZ}nNKo9Pnr>Fa0RK6|t`eEX(f zx^uNjS|LthGR(>RTlqfqO|TqEEFv`_96MUdn7ao6XZOI!(mVI-m-$+#_khjtuot%H zTOxw2u%~eq>w}v{kRC>;O1ALbnjR`H=ePFj0|-MEw$OU8<{R;hfX3pLWiw; z-05zviU(sl8d)-XEB0MEXG(wQSPKd=Qcn#nhkX`2P6&O3=k}V zZm&wsGD6mYS&PGt@1=nEnNFld1WU7u%SvP!wx0XT?H)XR`o=@4>A$VhEQWtG=+0AA z&m|#B&;AFp#V^kvCMcB6V}YiIXmo#M*9}MP_(a{w2BMEBo#N+SIueI+oRMz(h|rfD3ilB5WUsX0Mh z?+g|4py9d@wMPZ@XHebh;UQ$_N*NUG&8x%(ZjhIjaf|>JYyXaKWIFh?Wk32HR6W#G zX&>_ZL-mS?86|(5RfNQ9{jwjvvc2Noc#*@>N*7u7{SBfaN0!FS*@kdS_95w3 zqj}B?p+lvE#dNnb+5?i0-n_v}B}*Z<{ky!epSqVqg?6%e6St}A+J#?K{b~m)e9f>Y z*UGS+J;8RmvmbUYHNklbu^-_Uax&Cb!Q;1=|D~Jd*6xO9Pv+0(`1!1|qvE0R)4lZA zG7B%6Mwaxq@6f!|nt9&n-G(>AxsWMQxNW;Fw>b(ZQJsT$md8Bl{&2Zz9rR4Fk9fZ6 zJnZc$up%_>JR&6Oxstuy!oI(w_*vlH6$q(Kw+-bwe(q0mq4$~ELZX-2w7?sa?b#)a zy~sDuzCtZw@1uN4^)0Nk4l@1Gi&$qpj$ipa zOMHK7zsqOM_0RK?chWia687onm$a)hw{FjuUos8Mg5YjiuDSMS%X~&W&#afK^lvk| zv+cg5d|0yk8*I2jR{-Tj)K>GK_+upeSvoA{JwVFkepu8OtuJVGxT+aTSl*fLsBdkBo-_9%XiFP%yg~+Zeud=fYnjF$KUs6RI>)!*qp`~?bdUm9hm@@Qhpy-Ou z5bU~#R3%;0-vHVj5;){StGmINydS3Pf5xt=f@b!6;$8j$pU}3BY}?^y#wc3iC9H%I} zfTzPsz6X$3T@FTh48WDS2;`E;@;F7&O9@TMkkTIq7(hU;IJSLH>pPO^fk9-s^}k`8 z9Txt)r(!7t)OcY*R0gi9$own#wBP43<%w&G2bBgR=pkY@V$&GJit1;T{eT0mirBW0 zu#&UC!JO&kw;m^d8=`)31M_9@9{2}(q<&So2S37pB3ah=*pYB2{Uq=SPPPhOqMd4SW%YI(Io?)nTG_~jpkvG)K3&8 z^hk|$KhoMgya&hwyGhPu9H?k%i6a=b@E%$-xBWt3L zKy`{OLkL_!ZYVsrJ;z>>hI$Ekmnl=}KDOmIqR*un1tF-!i79w8(^|1p$7lzrgZoR< z6MJt^E}iG&c93~T@+J1U61qEzxN*P4ikUKqP?5yMF)T=ebpDBv+Bbw1aSqCDapKo0m)y72+6BZj_ncCT;Igfcux z`tkI-mNmtrZs|h+$@_~Iep>koV2B~oPSeLsa%z4t(Bnl%b@=X`%?p`VJ@9OP82&Je zPdX)mRB?tEl?PfmLA}LwRP;~dU^AX&iUjJ8nqfS4s~o^pM8ZgFATRA_EKE839v* z2tOb`Kn=3VVg2V&htla9s7xWrj)W=UUb4+9?YQIZXA(QJTRV)@SauOAADhm zk^ffxg&4dR7^JsRDXT?9sEv+R$-&sFs+Xm>H7lbFM-(6oaST=GQ5?XJ+3O{TwHg`+ zlO#ZTVw&OsI`9LCEo%|UE-*JS(V<(ZS%d{|FcndV;12zu6c_1-;W?n#S|1aCUa#Uo zf`OcpftgAV>ysHYnaL3S7815cl_*iJv_=JvBz={O%{R`k6E8^yp=>!P!%cL@)*f_S zXy~xY6)9P8;B3ie^}yuBKvVc3JM=Ev(}o6~%Q_teNSc+&4QL%Sn0|cajoM|xI)Sn$ zkvcQf-@(q43~#4JDu`ZYIwBHLJ7KGp!qc>;XKgn(0M}^BkZu?U5pgFka8dL+`&7#=Mzx{7e56KkcL_ZiiZIF4+--3=2Xv^jj8OB3EsB6D=v?>KjfHB0Vb$(1@f zitiB~Z&Kd?DXb+SRz2}(Cc371LlFyR&z8kzoKMW0V${ST9saD2Qh*z^>(OjwAsvgy zHYf%XeH2b8UN$Oi`2%khak0Z^Qr6uF0jj#@GjU>~N1g)%$EFchZX~_(BuApSFmH6s zyKPIts6o0iWXb&$6vb9wh$G~u995snx~GZncw*qoE=wxlv>mV$TvKLRg5C%|31{vy zy~x2J{#+VJ`6;E&EJgRotb*9b=vtPQTq2gBLSoU0K0Hukhtaz@<-)O;9f~MoVD%*( z^d%oDEAt%eQC}zL(_)?ABgB?%Sf362IR3u0Q5e9Vu1fYYjV#V{zZ^puwQ6g)+D@mW zpC?Iqft3wlwlNefy@a1uD1=qp7#eORiKJOQ7Ju2>f|Wq&6^eUecMrIZSJpN5T5`aK z$D5-k9EecSQQ<$fgY}^ZF=VH)r|^#nb)w0RglC0>NHP>@qyOwL?WLr^yCd7B!{ErR znCna`LE6DbEf-H9p*T08SZ6Vlpa6;b1+6Y&1pGa4M<#8xS2kCKD2!=zEv5P2TkqG`U*XM)y_AdKJ6CkAE zFHWD+9iW3z1W_OGQA686=PPOrDb`rbnlE*|MvRpWxk*uAoNtr!U zo7m~%eh_{LG0Opu{HPU|uXo1Xe6=g%3De%L_nEfs^dhMYU_IC#@7f>dz1GSpspJTO zI$USW{V9cZW3#TejU3{*Zb-=RrP-_A^<$&h*pV;}apd+9uk>NwXB;;1=)(>sxHzP< zeau!vS&j-cy|h#VhV`*XF#O=%XjF(VRX;^=R77kz<~aBX4@gI3gqd?l4w7d20uT6| zO#JZZ1W)?lH}f@bcI?Kgcrlbw4hG}Hg+gRtjmfD7p0i)K4pFAb@;WMO{Omr zE(FOOHYisO#lyQo@=c@W9S4f~HUo)2QH+gL&k8Af8;}rJoUUhpAg*3h5Lj)@~eU5|SZ zD1>)=tX1fRuRkxEN@yGcMOqWF#|(0fA##Fc*t;g?+Mx%POGn6jdAp87wpDbF;ODiX zAMDJ~Dn!HpTJ19M21yzZqLVZuDKIcFusraWO*^PDgSsl;jYo$Xvf)FE^;p~nuKFhs z9xB13ul8C#z6bhTrqV0yUCvo*>TJy=nClPPQ)sr(!uIVP2?Zfc0*Kjs-P0qD^_lz6 zSB)|Ts6yCoT!|=RvQy2q$Rz-4ShVwSs$yjJeS1tGQ6j3JEcoH#Sj|JS>wz-C{$O6d z%dkyd9N}W4#iOBIzvx(8Rt$fv^Qe$#6oFoZqe8_I;kvyI6lt zy+YVWt5gA(dJl{>j|;^T6OnE%-ko;uGvOCq`XXJndh#sK_=A?soF0v^;qXCZnzFAp zdvj%up_(ddI6dr_9iX8wo?SsKWnyBvaEtpKSg*X7C69gt7356rIAMxVt}qkQFV$J$ zNhm{8nUz63|ANwDX1QaT&BjP+K88GP&7*6>!(UmULvSBcJKE&DU+@X96AJkGfMs9s zgHVsr0Z8!wbs-Vp5MW?nVPL?ICxV}bf`-8$$4tPYU=veORg160W_@CkSkVcKPAU4> z(8w`~okQFhMCJdoV;qN?)5$LnPD0%|KvE+xuIh(}q!2{FQ|R3#Uh6CHcfhj7^NBLw zk7;OM9SaiOpS)8(C3StWkHct>NFLj@8xwqpmRsYSVVoM1@QF{~@`XW!pT|fVXsmJ} z)U{PzAb*7pF` zgJ!AK&|^YZBX66D`Jo$BykuW4+!#UDhe?l?%8`(dNN9`8Y*F6R&hAmtC;F&qXui>! zT4A8kx(kxRK1{)}_t}Dj$&_Q}VYZCk*F6ria(Ln^lE#6hLF&n;-MD2HASYz0m9URIc(g}LA%3En zW<83}p?M`WA6kBf7WLt;XbbtU96+-W7mqq#%zZMKX26ARt{1pQqc*#>cH|qm!G}S4 zeP_AmZUUZM9OQgR*_h^Sdhhzza5`TaHRGor4dW)pJf5ONoy26_}b*$iNf1QqAa4ga8*J(D;MN_jU8HeZPKp2vlN4eGf zSiQnNlXuqJmXw%8_>bPFJH@b+=+c~y6zJ9)1HmZ_Ve>QCN4l%8-}j)Dn;I`HujVDa z8Bw^iI7$K#h$TQbDOHIW11 zbItu_&p`Ok9$=M{Wg1s7Wij52uJ6!_aca^PLu@>+#XV|imZG`z$8DMl=Vac{BB5Uc6MI-m1y`95*g%_4nOc?Nl$k8kxe+UeGH%-OXWcVnxaF%tyb zQ-HTN>~V4h?wmF>C0#iZEG9DfUIsjtt@l70NZIa7Gb7cymg-!O{jJT#+TuGIv~Yu( zp+x++9->+?KOxA9`C$dREWxU~&Z=%v^P;jGHbI7~hSY!2)f z5Cf^hFXH^tmvI={A{OiGx(Xdl98(@Ql2Q8-)kam zvmCJ8e##8@K*77=0CIM*!C`CIh)Fi$p60lb&b7}L<)?vCZlr{+bP3w^%uCFJG8zwr zrl@%90zQ_jbsh&;qeOhz9%z0;7om^KM+HZv1*s4?FTZ8RVa5@}$MI6lRzgsYku({U zcD-*yi&ZK9A|X$ERBRiEx3ala4xln@KSB-)ER%$LWaajJ#c#E4mh3X0IzO{7U=i;w zwws|B)a4U<85OG^h=T(s{5*wpRkdruO3O1^0S#1Ow8zCP)cZQL{$u$$;s1jE18bzC zN%tQggc~NA4n8X_rLBV&wKIPvDH6x!@rXmopN{p>I6{&WuTC}OC~-ZF_>(++2g|Vs z!|lw83-V@h{v(;HPnp$*I!A00**mCCl3qai$3ewG+ynAQ(5j9_xd#~y_W;6gYCi+! z_OF2cJFD)}@!}I(57JRN?w#@&-Q0NhSGiLd$XoCe$>7wgc%Sm6*E@9c8P`>(YU$s?R{aLgo8YQQV zPx=@o=ks3>>X@x<9XR<#-_`43MP7omu7Gyuc+Il|fxE#0a#br+S-;^XRz$c{E)V3d zZz)Y2F5NUJY*L~9DB0}Og zYP5S?=&t1zw4z?HMex@9$(zs=t(>#Tx47@RcdA$FN_Yf4O*amM7C!)m43-te>_w<@0SmCcfXo1zUxrV@D(=2)VeuD{47oK&yx*^AofGpVk zG9O8cwXLSR6lIv1R+4q_Ca>#*3@E}VwaoPp53%x~t=2!u0H z0K9nPzYJ42=`Vu)>u?wvt$CSo(M;hPV@t%hhN%OeBfkLN^o(5o z)D8a?S*P>&6YY~)H~B?OtAvf0gv{@dFWOq|cDdqkPyL?&yh`s!w2i`5@aTqmxP;Fe zRTD)^W*stW`%(q5-#nR5A*B>?38#CXaQxNmh%uYbyq`5D-ocph`C}zx3|=-6J9-2aocfVRf;)NUCEds#FTeXN;Ev{A;wGot_0KBKvQiOU1jYV|)JT%dRCM?AAR>N5BxxrzAwny;n$ zKdAfKZIo`+DW`!zq}+##kMJL~{`f)Ii*7gTXy}36KpGfED*sEM%~Gw?)Vh;NFRCQy z7Zl@@n&k=@XJ*CY9+?1|f>Mr&c6yQ&MOgTTYQ3#fK`#8$(q2;kis;D%nO- z@H-)W8_Szy8lP6Czf@g)*tfeRLrPUPp4r{_do#=6-vwsNm6m0hr=;|oCQbJX>>=F) zAaw7+2v4Tdr*j{^AUk^Z{*zd|oabDYe84#jt4Q0v0zFwv%JxW_f#t}y3Y)tt+NzVn z4LJer(y_Ofo8D*jIqxBfPt+pK_-~Vl*WOq{H4E+h3K2ADQ>&NtXbdh<#+fpC7z1hm zBky4XW4#iNJRe2OxZx70h1fl&P1+uFYsbLAh&ERDV0+6KVf@?5E$pg>4LkaH57tb2 z#4DmPhyL>uxr8TCvW4s@iRyu~O4quN1>j8k<9PcP?Ei_mvNIN~b0A*2>&3|Hxz`@O zZ8wX7@3#C99=X<*6wy!-iCOO|8i$E7YU<}dAej5l1(Ms@e{Y)VI%<;8`gGyI;M%hG zywEdp{)~XA=q)?%P1`>m?Tkgz{D2B#P&}fdDuAe&U3W;pA!76yT%=-y#GvMSvOFDSkVrXE8P}9eBRXiev-4}`mu!dQ z0|%-di?(=r48&R)uTTy(-`hvD270NV5UsqHAz^fSe+gwJX#V;hfG_avWHdO4NWG!_ z;f~=La^%MPcXHL`yg#H+){8+8bep4$OCn#YK6nXcTsdk-oIBRuV)JU5`9Xwy41UvY z(7S7KX(?m5{&m&X!vX{Mk7dnPnu}aa`-I8o(T~=N(c80n1G~xfEFuF)Z%M-hEe!HR zqB&h3mX#;|aw8*v2Y;;7A0Si`&>eBfVfHYwvjXnuMS4&XXHA2EE{N*D-_aOW@htS% z`o`Inp{(K_5c+52_*tf&m3y>iIbn+i2jsBS7_8g_#a0OxF%OC}EZF(xXzB;9B`$03 z_yw@1XYPTVSV>ZjviG^Y8NV|}v)h`hpx|7WOP=O~%+H63887CcfNleKN)w z*JQ`zTY%;;rB2Prv9<0slXpW3X7)T|LqsvBGv)<3TfHPhGH9?LiUlB98HV=YKH> zifq?uvxGZrEaGQIDoKKfhZZ^YkAivza-N?4EJRqZSCV^7eN<@wQg6-A-9f#Q%B4b8 z?IJioi~WLaz0)jxOjr@LTdSOK4;*s+jPKW%$gQ1qS~`yGNcQPxh2P2h`uO~9tw{$?z4^X;8J~I6+IMsEocu7`C+Lpzck;f^K#)NB@P;E~iP1gKqSJK`Jg*78 zJGDl;{W?W@IZxUU;_bhqeHTccA6Yynz{Q>~|CL(`*N z-GwpcUVQ(p@l=LId$YWKy;Mq)U}MO5In~0H6UX=O=-_YcM(| zOO-?C4O>*Z498PcJ0N9+cv}C&_*+BJ(H|>7#ebSnItwZKEgxdHZOe;d>G`>DjiR*m z*=6opd~WUaQuS!SYc@vI{Fj<(vdODwvPKa-aAc&c7)e`$!}&?_?;7gejyp#?tTwH0 z`v)~!%dOA5p`J?EsbY@HCN@xur%TUYhOMWpD>Mf^> zztPg0nDQanX~82|6)A1qYpx`<hB1q0SL9?FF#k4~+G)CO|9ZU$7X9!w~spayWHZ1`fD27W@iyT`2Am}%9 z5%&1LZZOWtIv<#x06TrbkKscngfbu*)w9b(QF$F;>fp{bMM6=iSNZmexhxr^wc% z9?mT-!)9k*PpQjwGeWaYT>gq8#9d46iUz>mZA>8 zA4-a{UC}b&S1)3r94tJ}SDCyvu198%x&;`eAyUmZA3Qv*=rbIlQ!iK}0 z!cxd*#fT2mB3ufFB=z27!Vl*$dX2o7PFEU)pHr1t7gbURq0$BF9qJ80noc!T@V(gi zy30ZpeMT^mDCmF89?u-n%R5deW77sx?Blszpcaxd(9g=Bqm@{w5tujps)Bc5CEi1& zdAM89zn*s-IcC-eN$X}B{G$aDS7My)Cy!;ZVJW73NL9-$(?i+jcVOO8Lur!m9|U}* zL=_cr8G@Cx?Ya@-YmnDAF^}mtaoiJ&Jq4urAdGU;v!Rb+S-Z7h6AjHBabgx*c|de1 zAl#WF1z8DGRmlSGZVo|Al7#%A$neUs9qRdH3RkHwh8&O;OhcKM=q()_=$RHNlv(Ky zjMHLBLJb6}r&JnuPKcwWG4UT$(r+Mb(0Y_TD4}ug>dwP-SkNwihg^GI z!2!CQ2y+Tt zp$xkQkB6C&m%FxMjmzg;`)vLid|3+7u>3SM)+Qy4h%z~-F!dC+aFZTlJsHkedut@p zCw!B)cNj2hr7SxyT4Bekn z?i0HwxmH|pi@4%ban{I%wZ>ZNWMpY$*=M5QEf|5hS9gqA5@x()h&KL12E=O9#*VVx z4>-vabQLgFK-uHTVJgH{n!Vj{8VD*jYR(ttPJGB!!p56+gG4rqALzSA((M=TRMcMI zA%wM;cew+?GJQE6Bx+KoT^5z2Cw+Yo4P%jv0lbOqt|pK3ImY6SvEq(4sG`vasLb9M zX)1;r84)gS2v#L@3065IM}N|m@_`zCAfJ@#P8>};tb+DcPS7lTlWqqGjj^`}>$Tqs zj*D~s4R_}`MuJByWL^g)6bZ2!5=Y(jdNroQN+VEVA>$M)~Ysz4$;~FV&MkGmdl{RY(1i2^)j{iPRd@u-x6L>r*jw=oESmk@xC7 z-DC{I(pO)#X(*Z8!zqjzG~H83m3XXt>-vunAqeHLytg=SOSqx~2`aAG7E4yM^$ zTMO){nwU9VU9Qwby_#W~wOWj<(f(qcbDYkco)32li8WAzHv#-n-$fI;BOutR%shcf z8L-H~T$aj!$V6OS8`wWmGTRu`oYH}68eFV@j?+arFpZJ2wkvuhtjmP|F317=%ynQK z8k;NSvWS@|%jOkKLGWbE1I(V#6#)WjOF283t>L$h zAO@cpQABV_s`TSXi+V(cCRn?N<+SJKf$%PcOn5*hJ)hRnKmI@MU3XAaTazD#Fo5LfkTXM00)vj^EJ#M8=nU7 zc-CBY$Q=db`Ga6pz?&~LEe?vi$K|t}PJ8{4h#L^=|J~OC0$mC&^O)b>A>HIvRb~Y) zH}60z4|$d2v-p-tY@AO*tDv!2G`aN(-XY#MY$Y-}ErtQMMV?(oU3u$`z9G}KIIbR- zWSKrc5l(i^vZ54IXISr`9P zDBR8d~8RGj3aGnuLm>-Z30Y#>nD^R}i+*|!r1q{l^HjVF7`6Oe= z6!bJ}@Eao5V2;4dRyHQ*H=Rg`phuCZO@F^Kp-isVa zCvYKCzCh-hSwv>jVZN`-4_%qce#2M>y3%o0WMXcqHr+AWH7nH z#7CN2h}1sEtw`pce2eWxE7MV}8`gkM;gs&_&GM4QmhNhMO3|?k;9e<>52wYraAK(R zKG0GiH-&+Q8+C6Gxm;KqXl+ECmujaKLPm!J-0>o+e6+z-BbWFX6Y>g>c}(P3pgjr~ zh8WGjKFrXndG{1*0#+5k9^QU#Ps5&UDld=C^ak)IAAC<02g~&Y+I{d6WYbI|IDQe~ zA-Zerzl?&!4htY%%|^fQW&C``@HkNT^2i?fF)2U$-TNpmePn)%P?v<-pWChY0M8!5 zsu%THkln!1y?r_uiXnOP`s-f+I_;Y2go13=gfO^jLLI!!9KvIprm;`gU^pll16A#$ zpGbEM^gT+HqF}nXu0$+qQ*M4}WL>;_dw2%UBvUEMMs(NFga2NtSQ8-+o|iih-56Mb zZzZ?J7hIivq;+6%LOgYSOEx9lxMf{&`@0_9)jOr#-K_Chyz_IHx(Cr&h`{))ej2=W zuXFm|3KzLFSwW*5^NtRgJd^v+#;%yxBB_X8{!H4|mYDLk^siiG-dVCNg;W}b01k&` z>A^e@1;iyK^y+OLAL9sP#0necSbkDZeqK^VXAc@p_P%*(&WP!8r}a_DO>?OnpJCI~ z={vjC|2{~NZSke#kRKmD?H6DbJHiM1us$`z2chLpsm}?npNa*FyUC!C2)7|M*#6x! z8a%!LWl8$o$mpZ^X4R{Pw~g7n-T2}j4hAh9KmL~V(hrZ{I0?Hs7JJeyAybVCxt7fc zlrIyOOJ`a7|hek&{ zu{I#EWOZtD6NgGb_srb4%hMN0^B`&K$3ul3gRBgyaN@c}k|NZ)U?kqrTswkaXD>6MxYSUvAhceg&9=ntmATb?BLZsv75i2D{|ue!O!zrcA>K8#W= zod~e#J!gu70DfMs(wDFO&{(>@E+rAqlh|HxAp19e^$m!ai14a~7?1UNIaWYAhBNNg z$C!R(2-+MJ67@Fs{KiooAPEdeh|#ADp zA(svXGv98ZS%aav0-Y?mVrOe2t!O+8GndybIHbb+_SVeC`koOys8V-s@(^Ku_r9wm`NZ@{+)BPhFh)a}x;*?Sd=*wmyA`Xl zV!j^NCtg{598K&G;;C8Iii!oB(uiJf6{DyL{;^HpWn(s>BhTGW&9XHfdJ`}>WYe2E z!$i|NoT@ki9(X_hrWD^TrQNAUl>4y{9hd0tEh?@asAokb4u+hBe=|?js%7bG?plRI zo)bGUn{z_8V&lFG(j*mdF!3=INA!CKCF_H>ms?bNbn~Xgg;xq1+KgT6386!8pRI3T zpiVe5icJRBJ}%))R&VZpLX2Gb<|C8q*|@Gx0f2O_1S}r*l$riSo=zB655+a7XTp-> zkbFj5M&s}`C3^$5AinS$c>DId0Ss;f9)~!oC(snU!1;mbJ=zS32*=U{i}Zdq%v%Q< z{FJp#*7lpo>Bi}$k0mzt*&{9tkRcSDo$tcnl5J70FyzEl_kH$P+NQW`NInFQSfWq; zNY>)>uC>O20Sk$j6Oa;nWfji*X~K!hBx>uv6E?Fpt=eMw;Pzyh8+O!fmWL8O=l7V( zZkB(ts=b!0xRW0jkUyv}QLw%Wm;6DIQeqz+)TE}^M4s=eqW}=B}Sv; z+#kJaUu^1mMNou+Ao_?5Wa8|EJ9%5w+yjby!EHU0m;s2<)#mlWm}^HbiroMz8+m^* z+1lG`ZtC4V?U(n!RThH?2eiKcZfpkZ;z*9jY_OO4d%k6 z_9Cfeqgn?(%R~H(JIx9M=*s59_sTaA#bhiHa?rG7mUA2#pLU-}-5UpweWu>(mC&4= z>n&9df@s8|O?mh{G!&(?xuzi7@LC(js9AQ6iCY<*IuJD6e)r4wQQOYk$71!lpGFqb z6CCQ!v$7p-R6Lp1_b52lj3KX0oFmgT^1$k5wf#H^>IrmZ7`_Lqcj^(Ul)7cPu<#hg z=pGcEEATF$K z^J92Ka)B&G^88^_mu!HE!?yD>1;Ns^U5%3t#pq2UUr43)B2ks6t<|CiRAgGmJ+};? zzEED1^EeeXnEJNFOD1yhX#uJXKozRk@B9!0)NzVdDqfTt5oQ9e-qN^*_@wyXf#Ewzs9EK0WleJ&I z%2S#>!BHbHZe7MHNKGBX68>e0>Mc^&1xXo=b}mMbaC@8Yb_3n&+3bappF)Cl8^)|V zDwslanlys)J1~}u3oc<`jrS9r?PSBXhC@#_U1xR%?j4!ncR@<%7pF0IU{C6cEjPDn z*whp~*KyVqs$V5{2G82tT^G}7Pd-+s$;&~#j_KZZaI;G%yXtAw3mI*y0EtwNR%b?h zyd}eN0M#r$kN45UC)z%VeBm3>^y&(PJ(E$^{SI*dXCkRx&W{AAK}a{ln5qR^^eCL* zXpONMTjLB*nYnX4!x}|pnGXvuS=i!l(Gm52D6vVdt2IhRpg?aYSX@stSG@0-DPE^9 z+~adfndOQ9IYDC!R$-ftYob?+XvaCqop@dMF`-Qr?(yPWUc5uG>gFqem+88x?jBwY zBwYjjoL$7-*A8;#0i%RWlhNUtPu$jfZnoStQ->wO^By=WL=Y3gd!e_rq8?$5> zd^%t8&3{34t1f---t|U05|Rgt*I2yGDZTkuN^Xklw-Qt7>Qqu~ca2cQ`8vUY z4XA-AV3nF!6Q9*)&l@?;9}3ke&`5bXzr#8^+rgY$Y4%oCF4}?*gGp3dMV1?rYdTPD z#;a08hn>}P_?(=I_S}dO_^K8ul>_J(pzs&qs@6q?_6qEphy+ATLPShV@F$!w0g#B0 zm_`=Bb;GB&j)a!U8y=oQXJ~91!N4tPWP+k+lycyamMI)lu@4PPF8I&l79at^pT#X+ zhw=N=QDwnub{2jfc$SLP1(04N|5Ol&51U6;Q}8|wU%`5!_4Eq9K_$|E8y~36_HOJifuRDA}HeZ)nj1p?on2|s`hSZyhu^HDv~c! zWhjO)6qFHO0wIROGW1REJVX*3`h~v!BZm|2FEKI~4LCtJG<3 z&7S=!ma+s2oduPI7xriA!ZS8l6OB!=>OP2H{i$bZDwoErq*k!rzw#FTUp8PwdA!_) zWxf0TF?GsHd156YzZ3WYOR(|Jy_NMF=db2g20yzW*?$Os*Udw4XNq7F^vAS;fO34B zed0M9dn9bu(i&b8KV@x~X!sK(`XOVcEh%r*i=fnl?*`gA?5QQ z^#hj`;zjzHdk2=!Smfd5_B~sAW9Tq7i*?$F497w5nzGC0=PnVyk5211_j3>uw}2Q@ z1y|8#R`R3`zY+_jl7RqeBHIZfzvW))R^zGcj36QZ0GF0d@1 z_>b^gdrqL4a`VMi@@xqQuV4kWrMF*XHIdfRz}R+sj#Dp@zOKG4mcNsmW{nmx3E5$R zs!pKx!{h27uM=%*{jA6B=&wVo&Jks2=o<^-G|vVno_tudH^Kgo7TfWumKbZ-=dmA7 ziZV;Pb`xf7t&ZEx#qR_py{%6ujgBNAblGriWR@(%f9fm^r?QL}>+LE!o&AwP{i6<} z7smV)%YGsi@wXju_m4y?`Ka=u@!lY}zQy+?uNB}QW*_SW>Dezf@39nZ+fPKcsQfRT z^MkG7@ih~zSIFa$1m9ue94RQtThqh+V<6^R2*3nCGEXk(A*O?)nfw`X>QR&_YWwAn z%${BHlhx1F49MPho)cmn2M%y;4dLa)nR{|Yh_q$sGhCW0TzgQWvtl?K?6WDoGm8q=o6m< z^1rd~nw!NbF%;89I};jW7w0`|oy>?IsfHZ{Mk*>3{H5xHx&c`KO-j1&OTOe5a*RYY zysA0o)ydfBP9mDqVS2>$p@DtDZU1cCKP1@2_w(=iYC*3`3-v4I0U1B7q2rd4H9|QQO3Nr;R>musi};*{zlykZHX)f4(~6zJP47biYBR z&ejVvJNtAw7RCBN6X#W*qrPhJo+zC3y!UoN{Q1bCOw?Di1=lZT)g5@dE4+gIm}1<3 zbPnetbSHW)DsLr;^u@8|rNv(t(a|opITR28pIh%j<3}I4G1hVePn%sgf2*IQbroVY zgqD{9OIVJeo{PIM+O;8r&kGi6T@RWHykJ?*c{*wjlUKb8<&7~@t&5{=M9`2nqjrYeXRoNc&4bKL~b z46|ZZPP*rvv%=epH&2smrEuC$B13a*Q#h4-b-2Xs?cS%iI(xAZA&}+Fv1iy z$~!sZdZNACH2I41japVy%&cyp<60b<>UY}pZJD5Af4s*y;w$$MUj5Ol+qFJDRAG?c z=oB`}|C?E8ZW0wdB|Y#1zcYq;H9q)f!$HbvzcEGmJKb-Ti(v;E{>EQ~`MSUH0N2xh zsY%yHz)LVU-hbD0zxUugmE@Y)OB16e9rv}%2&|d)FBr^Ch^&Zq8aZ@0?st!Ax zLB<)2@gD)7Mf^_Tyx{rmobFEjj=i(u%j-LC2D1h>{xYT8rEg&1i6fJ*)ZZny_r^Wl zk_q>ZYT6jus^#0v4si{MVU@pqOmo-`(CAZ*3hPtLe~-vl3Llq)U3uReQAF6e)*s-d zY595eP~Rl!>4VDYXaR4P1pHcKffCZu8bBq zd-|gELff<62VzTZdoO2J_{_^nOZm%h1M=q##?sdYV#(*Msm39fiTe5m<|V;jZR3x- zf9HP73x8^nhBD_+WiS}}qDW(Mn1RL5GlN7uTx!ed{XqHpKZxYnVG1ZyW0Yzu9IpV> zPLtZr6zuuNV&4D;?Qni}NqWeBX=Y&bcM?;7M*UO8^}1+M3;1LII3%aNos1!y&n=1d zPXEKNf2qQR6etvyq;qG=;t6mPb%E7pNcWlyf}MogG)(;b9C%XI>+_a|*8W+987c5u zxa3a}-Y<76h&bp?!_}a>4ILS8y_X&Yh&^BG9pAG$=sv?s=+@yyGvIC#7YDzl{{y~^ BBaQ$7 literal 0 HcmV?d00001 diff --git a/index.html b/index.html new file mode 100644 index 0000000..5edcfdf --- /dev/null +++ b/index.html @@ -0,0 +1,204 @@ + + + + + + ts-blank-space + + + + + + +

+
+

ts-

+
+
+

blank-space

+ + playground + + + +
+
+

What is ts-blank-space?

+

ts-blank-space is a fast type-stripping compiler that converts TypeScript to JavaScript. It supports a modern subset of TypeScript by erasing the types and replacing them with whitespace. That's it. It is not a type checker and does not perform any other code transformations.

+

The underlying technique can improve build performance and simplify development. The implementation is pure TypeScript. It is simple enough to read and understand in a few minutes because it is only 700 lines of code and reuses the original TypeScript parser.

+

Type Stripping

+

The core idea is to use spaces as a substitute for type annotations. You can think of ts-blank-space as a reference implementation of this type-stripping technique. Much like other compiler techniques seen in the JS ecosystem such as tree-shaking, it is a reusable idea that any TypeScript compiler could implement. Some already do!

+

Let's look at some examples. If you use the classic TypeScript (tsc) compiler today without customizing any options, you'll see your source code undergo significant transformations.

+ +
class Cat<T> {
+  public whiskers: number;
+  public tail: T;
+
+  constructor(count: number, tail: T) {
+    this.whiskers = count;
+    this.tail = tail;
+  }
+}
+
+throw Error();
+

is compiled to:

+ +
var Cat = /** @class */ (function () {
+    function Cat(count, tail) {
+        this.whiskers = count;
+        this.tail = tail;
+    }
+    return Cat;
+}());
+throw Error();
+

That's because TypeScript is performing "down-leveling" to convert your modern JavaScript into something that can run on older JavaScript engines. This moves the code around which, without also generating sourcemaps, confuses error stacks and breakpoint locations.

+

Let's try disabling down-leveling using the tsconfig.json option target: "esnext":

+ +
class Cat {
+    whiskers;
+    tail;
+    constructor(count, tail) {
+        this.whiskers = count;
+        this.tail = tail;
+    }
+}
+throw Error();
+

This looks much closer to the original code with the types erased. But the output is still visually smaller and occupies fewer lines. Meaning we're going to have inaccurate error stacks.

+
// Original source
+Error
+    at Object. (cat.ts:11:7)
+
// With TypeScript's output
+Error
+    at Object. (cat.js:8:7)
+

One solution to this relocation problem is to ask TypeScript to generate sourcemaps. Debuggers and runtimes know how to use sourcemaps to translate the filenames and coordinates used for breakpoints and error stacks. But could we do better?

+

Yes! Here's what the generated code looks like with ts-blank-space:

+ +
class Cat    {
+         whiskers        ;
+         tail   ;
+
+  constructor(count        , tail   ) {
+    this.whiskers = count;
+    this.tail = tail;
+  }
+}
+
+throw Error();
+

This might look a little wacky, but by leaving the code coordinates unchanged, we've eliminated the need to generate sourcemaps. There's no encoding and decoding locations. Error stack coordinates are always accurate!

+

Finally, we can teach the JS engine and debugger about the original filename by adding one line (//# sourceURL=cat.ts) to the end of the JS file. This magic comment is part of the sourcemap specification and is supported natively, naming files correctly in error stacks with no loss of performance.

+

Build Performance Benefits

+

The typical build operations to emit JavaScript code from TypeScript source involves:

+
    +
  1. Parsing the TypeScript into TypeScript's Abstract Syntax Tree (AST)
  2. +
  3. Transforming this into a JavaScript AST
  4. +
  5. Code generation from the JavaScript AST
  6. +
  7. Sourcemap mapping calculation from the generated code to the original locations in the AST
  8. +
+

ts-blank-space replaces steps 2, 3, 4 with basic string substitution on spans extracted from the AST. The AST is used merely to discover the start and end points of the type annotations in order to shake them off.

+

Skipping this work is what makes it a swift approach. Further time is saved by decreasing the number of sourcemaps that need to be merged during build scenarios that involve a sequence of transforms and corresponding sourcemaps.

+

Build Performance Results

+

Here's a benchmark of compiling a huge TypeScript file (52 KLoC) ten times using a variety of build tools.

+

a bar chart comparing the times to run the benchmark. From fastest to slowest the results are: esbuild, swc, ts-blank-space, swc/wasm-typescript, sucrase, swc/wasm, esbuild-wasm, typescript, and babel. esbuild and swc are categorized as having native binaries in contrast to ts-blank-space being distributed as JavaScript

+

For the supported subset of TypeScript, ts-blank-space is 5.6x faster than tsc. Today it appears to be the fastest emitter written in JavaScript and even beats the Wasm-based emitters. Credit for this speed should primarily be attributed to the highly-optimized TypeScript parser which is doing the heavy lifting. It is also worth calling out the impressive speed of sucrase, which is also written in JavaScript and is only marginally slower while supporting more syntax.

+

Performance Results with AST Re-use

+

In Bloomberg, we want to use the TypeScript AST for JavaScript-based analysis in addition to emitting JavaScript. This means we are already paying the cost of generating the TypeScript AST and ts-blank-space can operate on this as-is.

+

Here's a similar benchmark in which we measure the combined time to (a) emit JavaScript, and (b) generate a JavaScript-accessible AST. babel, @swc/core, and @swc/wasm have APIs to produce the AST. sucrase and esbuild do not provide access to an AST, for these we fallback to using typescript to provide the AST.

+

a bar chart with the same results as the previous chart, however with AST access overhead added to the times. Now the results from fastest to slowest are ts-blank-space, esbuild, swc, sucrase, swc/wasm-typescript, swc/wasm, esbuild-wasm, typescript, and babel. ts-blank-space, typescript, and babel have essentially no AST access overhead in contrast to the other libraries that have more significant overheads

+

With these requirements we've found ts-blank-space provides the fastest overall result.

+

On large files such as that used in the benchmark, we've seen Garbage Collection (GC) account for up to 17% of build time. With internal benchmarks of real-life code, the file size is typically smaller and we've seen ts-blank-space go even faster with GC dropping to nearer 3%.

+

The full code and results of the benchmark can be found in the perf folder of the repository.

+

Development Time Benefits

+

Simpler Startup

+

Debuggers require sourcemaps to be loaded and processed before app startup in order to reliably set breakpoints in terms of generated coordinates ahead of first execution. Eliminating sourcemaps means fewer moving parts and potentially faster startup.

+

Faster Errors

+

Avoiding sourcemaps can also increase runtime performance with respect to Error stacks. Node has the ability to toggle whether runtime processing of Error stacks uses sourcemaps. Node includes a microbenchmark that demonstrates the cost of reading a mapped error stack is approximately twice that of an unmapped error stack.

+
> node benchmark/es/error-stack.js
+es/error-stack.js n=100000 method="without-sourcemap": 107,059.95251565645
+es/error-stack.js n=100000 method="sourcemap": 55,918.729592805634
+

Resilience

+

Bloomberg is a heavy user of sourcemaps and we have folk helping to make them even better. For sourcemaps to work, many different tools all need to align end-to-end, which can lead to them sometimes failing. The good news is that with ts-blank-space your debugging experience will be based on accurate locations even if your environment is misconfigured or when sourcemaps would have been inaccessible.

+

Maintenance Benefits

+

The default parser used by ts-blank-space is the official TypeScript parser. This maximizes alignment with the upstream TypeScript project. Specifically it means that as new syntax is added to the TypeScript language, it should be trivial for ts-blank-space to support that syntax.

+

This reduces the effort and compatibility risk associated with maintaining another parser. It also means the project benefits from any performance or correctness improvements that are made to the central TypeScript parser.

+

Beyond the parser, the remaining code is only 700 lines of TypeScript. This small size makes it easy to review and understand by TypeScript users.

+

Limitations

+

ts-blank-space does not support all TypeScript syntax and so may not be suitable for your needs.

+

JSX is tolerated but not compiled, meaning it preserves the tags in the output: *.tsx becomes *.jsx.

+

We refer to the supported subset as Modern TypeScript because it represents nearly all TypeScript syntax, except for TypeScript-specific features that may be considered legacy or discouraged in some way - despite not being formally deprecated.

+

These unsupported TypeScript features already have alternatives we prefer:

+
    +
  • Prefix-style type assertions (<type>value) +
      +
    • ...should be replaced with as-style type assertions.
    • +
    +
  • +
  • CommonJS-specific syntax (import = and export =) +
      +
    • ...should be replaced with standard ES modules - CommonJS is not supported.
    • +
    +
  • +
  • Instantiated Namespaces (namespace Foo and module Foo) +
      +
    • ...should be replaced with standard ES modules.
    • +
    +
  • +
+

The following unsupported TypeScript features must be avoided when using ts-blank-space. Unfortunately the alternatives are not always as concise. We would be excited if more powerful and coherent alternatives to these were to succeed as JavaScript language proposals.

+
    +
  • Enums (enum) + +
  • +
  • Constructor Parameter Properties (constructor(public prop) {}) +
      +
    • Explicit field declarations and assignments are needed instead.
    • +
    +
  • +
+

Note that ambient Namespaces and ambient Enums are supported, i.e. declare namespace, declare enum.

+

We've successfully used this TypeScript subset in Bloomberg for many years, following the clear mental model that TypeScript is JavaScript + Types. During that time, the primary unsupported feature that users said they missed was Enums. Most of the time that need was appeased via the alternative patterns.

+

Getting Started

+

ts-blank-space is just a library that transforms strings. It is a single function. It is not a CLI or toolchain.

+
    +
  • If you want to see how the code is transformed, please use the playground.
  • +
  • The quickest way to use this library for real is to use the example Node loader.
  • +
  • For anything more, you will need to integrate the library into a CLI or toolchain.
  • +
+

Should I use this library?

+

Only if you want to. While ts-blank-space is battle-tested and used in production at Bloomberg, the idea is more important than the implementation.

+

ts-blank-space has a singular purpose and a limited scope. Many users will continue to be better served by existing tools with a more comprehensive scope. And who knows - if those tools find ways to leverage the ideas presented here, everyone wins 😉

+
+ + + diff --git a/node_modules/prism-themes/themes/prism-vs.min.css b/node_modules/prism-themes/themes/prism-vs.min.css new file mode 100644 index 0000000..cdd6d54 --- /dev/null +++ b/node_modules/prism-themes/themes/prism-vs.min.css @@ -0,0 +1 @@ +code[class*=language-],pre[class*=language-]{color:#393a34;font-family:Consolas,"Bitstream Vera Sans Mono","Courier New",Courier,monospace;direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;font-size:.9em;line-height:1.2em;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}pre>code[class*=language-]{font-size:1em}code[class*=language-] ::-moz-selection,code[class*=language-]::-moz-selection,pre[class*=language-] ::-moz-selection,pre[class*=language-]::-moz-selection{background:#c1def1}code[class*=language-] ::selection,code[class*=language-]::selection,pre[class*=language-] ::selection,pre[class*=language-]::selection{background:#c1def1}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto;border:1px solid #ddd;background-color:#fff}:not(pre)>code[class*=language-]{padding:.2em;padding-top:1px;padding-bottom:1px;background:#f8f8f8;border:1px solid #ddd}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:green;font-style:italic}.token.namespace{opacity:.7}.token.string{color:#a31515}.token.operator,.token.punctuation{color:#393a34}.token.boolean,.token.constant,.token.inserted,.token.number,.token.symbol,.token.url,.token.variable{color:#36acaa}.language-autohotkey .token.selector,.language-json .token.boolean,.language-json .token.number,.token.atrule,.token.attr-value,.token.keyword,code[class*=language-css]{color:#00f}.token.function{color:#393a34}.language-autohotkey .token.tag,.token.deleted{color:#9a050f}.language-autohotkey .token.keyword,.token.selector{color:#00009f}.token.important{color:#e90}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.language-json .token.property,.token.class-name{color:#2b91af}.token.selector,.token.tag{color:maroon}.token.attr-name,.token.entity,.token.property,.token.regex{color:red}.token.directive.tag .tag{background:#ff0;color:#393a34}.line-numbers.line-numbers .line-numbers-rows{border-right-color:#a5a5a5}.line-numbers .line-numbers-rows>span:before{color:#2b91af}.line-highlight.line-highlight{background:rgba(193,222,241,.2);background:-webkit-linear-gradient(left,rgba(193,222,241,.2) 70%,rgba(221,222,241,0));background:linear-gradient(to right,rgba(193,222,241,.2) 70%,rgba(221,222,241,0))} \ No newline at end of file diff --git a/node_modules/prism-themes/themes/prism-vsc-dark-plus.min.css b/node_modules/prism-themes/themes/prism-vsc-dark-plus.min.css new file mode 100644 index 0000000..19d722f --- /dev/null +++ b/node_modules/prism-themes/themes/prism-vsc-dark-plus.min.css @@ -0,0 +1 @@ +code[class*=language-],pre[class*=language-]{color:#d4d4d4;font-size:13px;text-shadow:none;font-family:Menlo,Monaco,Consolas,"Andale Mono","Ubuntu Mono","Courier New",monospace;direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}code[class*=language-] ::selection,code[class*=language-]::selection,pre[class*=language-] ::selection,pre[class*=language-]::selection{text-shadow:none;background:#264f78}@media print{code[class*=language-],pre[class*=language-]{text-shadow:none}}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto;background:#1e1e1e}:not(pre)>code[class*=language-]{padding:.1em .3em;border-radius:.3em;color:#db4c69;background:#1e1e1e}.namespace{opacity:.7}.token.doctype .token.doctype-tag{color:#569cd6}.token.doctype .token.name{color:#9cdcfe}.token.comment,.token.prolog{color:#6a9955}.language-html .language-css .token.punctuation,.language-html .language-javascript .token.punctuation,.token.punctuation{color:#d4d4d4}.token.boolean,.token.constant,.token.inserted,.token.number,.token.property,.token.symbol,.token.tag,.token.unit{color:#b5cea8}.token.attr-name,.token.builtin,.token.char,.token.deleted,.token.selector,.token.string{color:#ce9178}.language-css .token.string.url{text-decoration:underline}.token.entity,.token.operator{color:#d4d4d4}.token.operator.arrow{color:#569cd6}.token.atrule{color:#ce9178}.token.atrule .token.rule{color:#c586c0}.token.atrule .token.url{color:#9cdcfe}.token.atrule .token.url .token.function{color:#dcdcaa}.token.atrule .token.url .token.punctuation{color:#d4d4d4}.token.keyword{color:#569cd6}.token.keyword.control-flow,.token.keyword.module{color:#c586c0}.token.function,.token.function .token.maybe-class-name{color:#dcdcaa}.token.regex{color:#d16969}.token.important{color:#569cd6}.token.italic{font-style:italic}.token.constant{color:#9cdcfe}.token.class-name,.token.maybe-class-name{color:#4ec9b0}.token.console{color:#9cdcfe}.token.parameter{color:#9cdcfe}.token.interpolation{color:#9cdcfe}.token.punctuation.interpolation-punctuation{color:#569cd6}.token.boolean{color:#569cd6}.token.exports .token.maybe-class-name,.token.imports .token.maybe-class-name,.token.property,.token.variable{color:#9cdcfe}.token.selector{color:#d7ba7d}.token.escape{color:#d7ba7d}.token.tag{color:#569cd6}.token.tag .token.punctuation{color:grey}.token.cdata{color:grey}.token.attr-name{color:#9cdcfe}.token.attr-value,.token.attr-value .token.punctuation{color:#ce9178}.token.attr-value .token.punctuation.attr-equals{color:#d4d4d4}.token.entity{color:#569cd6}.token.namespace{color:#4ec9b0}code[class*=language-javascript],code[class*=language-jsx],code[class*=language-tsx],code[class*=language-typescript],pre[class*=language-javascript],pre[class*=language-jsx],pre[class*=language-tsx],pre[class*=language-typescript]{color:#9cdcfe}code[class*=language-css],pre[class*=language-css]{color:#ce9178}code[class*=language-html],pre[class*=language-html]{color:#d4d4d4}.language-regex .token.anchor{color:#dcdcaa}.language-html .token.punctuation{color:grey}pre[class*=language-]>code[class*=language-]{position:relative;z-index:1}.line-highlight.line-highlight{background:#f7ebc6;box-shadow:inset 5px 0 0 #f7d87c;z-index:0} \ No newline at end of file diff --git a/play/codicon-37A3DWZT.ttf b/play/codicon-37A3DWZT.ttf new file mode 100644 index 0000000000000000000000000000000000000000..27ee4c68caef1cd22342f481420d6dbda1648012 GIT binary patch literal 80340 zcmeFa37lJ3c{hB{)zw{fudeQubR~_JnbAm^@oe^N(s&ui6FZB?ah$|)oW&E{S?mNS znSrcMfDjuRk`Tf+gg^-d8f=yVfu zfU*5JAYCl|3ZLhJuKm|se{*)j^UvXa#~D*=2d=wpPx$Vy?7&YlW1)9nv*+d+>0kM4 z@Ouj9w_m&Gnk(M&i%(54o_`F-emQg9E3UsRb=v0{Z~qu$=`M!4^FEx3_vfE~{&#$U zjx2xiW5E#|-Tv!e&0ZQ^`)|w?SKL%Q6ft30_o_<)8V1tM=`|{l%3WztOK8M>tcO zM`hm2?_*(n`*ZeJcwf;h?_)MQi=k@a5RSgYYulBZE@z*u@BRr7TGz%;M}LYZEu9^- zjDG(g{GZa``RD(8)A0Z6_W!=;|GwY{+0UI8hT^v@sXeK=b=5+ zch~Q#zp?(c`cn(=47vVEUgdA&C4Mcp z`Solo{{r95ujW^=H?c9klD&>S&3?x=@VBsAn9o1M-pTIdr}7++^8`P_zQ!JA^ZY&h zc6K*^6TgMu$zR70^4IhG_}%<4`wV|Ie*=^Z8Lc&-6GoT?y(5a2xU7xkSe_NwC2SX) zW|yLNm$6P(WL>Pp%B+X=f&%?)fDJ+;8e+q2gpIPbY@DrwezcyQ!Y0|N>@;=;JCjYZ z^Vtq|0o%#;v8&k2*tP8C?0R+syOG_*Ze|DBt?V}TO7<%DYW5m-2RqDO%l?49p54RV z$nIlrVQ*z`V{`27?0)tR_5gbqdpCQKy@$P*J;dI}{)io6N7)B)&WG5C*&nmV*r(X1 z*=N}o*_YT?*^|(vo??H&{+fM*{S7Glx9nT&@7TB5zp|gQpRu2_U$N)dui0-nAL7G&gpcwuzJ{;m>-Yp;&rjhS_$1%R zPvd9sGx-$X!ng9X(TnHsbNPk*B7QNygzw^)^2_-Z{7Sx`zl>kQXZg$dEBFokMt&>5 zjlYt=iob^6!4L7*@;~5r@q75a{O$aH{$BnNe?Nbie}Et5ALJk6ALbw7ALpOopX7hS zALF0mkMnu{Y5qn2CH`gp75-KJ6#ol$g8du&1^Xr2&GxVvwwled%lRAGb?g=F8g?|XXc_B_w< z)ocat;T^2XYHTxqD}R)KjQ=tJDEk;ckMH1Vc7T74|2cn>KfvF~-^KrszneeE-@#(+ zJl@6rkbjY`{d^~TKSqC&eV%=RS6DmiV83N? z{--?2{ulc$`$zVD_6++c_5=1W>_@D@j12v0Gy50FBf2+M0te(ucEwCfWHmpJ^@}rxnF=^i}ES~Zlkj6&JT_*sJ%IY%$;H|7aE5OE3zFYwOmepS&0M5(m z^gIAOnAL9(05@j!8wJ<~ls5^0L$mtL0^rrG-UQj3by(m8@NZU!wM_sgXZ70z*qta} zDZo!f`6>aPL-}d}9!Gh*08gNNjR2$otKT62dBEz21Rxn${jdO8>-E(z;GG1t9BK{apf(daVA3 z0+4^K{%!$CLRNoJ05Xx)i7o)7Bdfnx0CJMm9}Hqa0Hi#t|A_$PJ*z(|0Ljnle<}bS zfYreV2+#&t{Zj(a3t0Ve0cZ%U{)7N@1y-jq2S96J^-l{xe_(a$ZvdJEtN)n*bP87g ztN^qNR{xv;I|b$E1)y=T`WFPCd$9T!1)znn`j-TtkFffe1)!O*`d0*?qp~I0cbj`{#OFfd073g1)%+~`Zoli z2eJC!2tXrZ^=}G5H)8d_6@Zq+>faK8zQpQ(CjiZf)xRwO9g5ZeUI5w@tA9rTdKIhx zg8(!vR{yR5bS+l@M*(PEto}U#=wGb9AOKB_)t?c7PR8p0BmnJ<)xR$QJ&o1>SpXUv ztN%a%x*MziivYAZR{x;@^f^}lkpQ$dR<8>{$7A(|0JJ?;KP~{hkJbN|05m{W|FHmc zL011)0ceG+{;UA>LstKZ05nBb|EU0UMppls0DBM069Uj9S^eJxpi#2=&jp}cvidIs zpk=c9F9o1)vih$Cpn0*Ot0CZp0Pz9g`vxX)BeV8?L0cggo zVG2M;W{rpdv}M+?1fVywhAjXMnl+*V(4|?!5r9_B8ZiOr*R0_RK+|RoPXIbMYs3Yh zeX~YF0D3rUBn6<6vxYAK-JCU20?^V~BP{@Zoi#E74D@ZZ34mm*krm)XznlPRX^p%9 zCwdeFIMJhBfKyvL1UR*?Q-D+ZiUOS4*CoKIO(g+N^(_mK2fI-b;8d?}0Z#Sm5#aRv z6#|@|-z&iB+&%%avm5;a~5I#4-hw-@yK7!9p@KJnj zf{)>I6MPLmR|WW5lr;gq4&}H2pFp`-QE|kf0sd)}M0bFH5hc+b;9o*XbO-pCQNCJ$e+A|30{p8esXqYz6iVt30QNg; zP=5fhC5fGVLWy0Dlx~ z&@%vdrdZ=C0Y-KH3juhmSmT%gqkBFr01p;xd|d#(EY|o-0eH1o_E_V%0DOF`LEiy*`&i@0 z0`U8>#=i={1IQZB3cwf08b1+$SCBP+Dggf=Yy3=r(eqCTkb>R#HvxDLS>xvd@FTLu zF9aCT=9dESEwaY11Q?Bl=L9HAqVa11cph2fHv$yTZ&3RIcq3WkcLEgsZ#*vm4<$W1 z0DP6~I2VA|k{y=>;J;+YLjv$*vg5J<`wGgi0H+eqBf!tej^lX*cs$v0JdXh1Cp%8h z1KDL8Hlz%$B@M+Dd>P+9`;ma^lv0Na8xD!})kbOhi_WyfOz?CU690Z#Yx z1o-<1y6kvCfMM($Zx`T12aH_;yuR#srvUuF?08Xt-Hx(LfZvR=BmnO) zJ5Kcg;3sCsD+2Hsv*X`|0G0{n9*R|xRWqU;r5RL?#EegVpU0eG9)@c{w&o!Rk0 z0rmvSl>(f`1(VB* z59(R{8^)c+G2`c^W^Ob0n%A4JGw(OQXFeB+L{gEl$ll0(krUPmYr?wHy4U)RJz(Ev zKWcwHT8`cx{i-85W#SoH}^|ltz1{J6ycWMV{#g8riLu08i4)1~ z$w!mNeaG+iYyKJjc7MNrqyIoEl^RNINj;D@(qri}(s!hvO8+L4%uHl1%FJXQ%6u{N z!?tYONZTjdzMnO+JF_=t-<6%uelM5FjpcUc?#w-&`$1mIugqVPKb)U0#0ztUuNIzZ z&$Qp%{&+{e<6y@lopR@a&QEqeS6p3uPx14`XS<}XeAh!=pY8fi*Dp(_l@6C4EB&Cn zv;1UbvT|?bvF=*;bocjrZtgj;;+`QIaTV8wG+MCyYXYF(Awye8(-NWmSPq-696PqV4pSW*ge&U(+ z?)sOnzi0h3r=(7~{FHl7d2)laVRFNb8@{~Zmy_km-IK4H{QPA7)R|L1xUp;FwVTe} zbl0Z&(>hN(?X)~5a@NpU_n-CEvwpnww5@x$&YZpC?EB9CtrtFb(M1=1{bKFn$&250iF3)0OFqAA^RzQPFumo{)t4T)^o~o9 zT>8`9wcR^+-?jVLp6NZe?|FRBb9?i9H}5^L_o2&bmmRq5{>#35`P}87z2cNBZoA?K zSK3#eaph;Od~V;wzT5ZB@0a#(-T(0ZC$EZM_2H}K1M)SGU-N@&jcaeb_TAS$dF?aT zIoIvI?!N1unYn%D@tG%QzCBZ)d2aTi*#~C7{qnAtU;XlLze0Y+xv%)v_19nj{_B5! zL-!4r-|+Yizq#>@8~5M%?VIv9?Y`;po4$Q>>gJ6%zx(F-TW-JQ*@JJs)wp%*t&l6^ z!=~std;u}|cSlG+FO3ZFPMas<$pTLftw-ol?W|NM|Mb3L6r zWY|u^h~^SXNb1}vYnGdg*_vkSUR<;PK#oOpGc2oNgL5;U$z?oK(KI=1=#g01jThIR zv9{>V^=#_y-qh2vHeqBkMq=&WlxoCmBWxyYO;6pe$6ZU;Y&Q|JWn61t%(&?t~N9k>5 zhWfKvPYW@FB*|x9R1^L%{;H$+Q*l{B1uDhFFn3Pqx}hI4bUpjG3s29NXJ&X>uNe>O z`h!Mouv|VmH#ZBG-g>?ZzaFG?)mJN{cpI)%{e)Vn*1D})&FY>P#UT{dxZT}tkK+S~ z1-XG6sPK#Fs1c+^)yMO3eX&v%V@=Skf)Uj@z{OCxqT4ImHLLcq!tlg!K99G8m+l+t zO9yXn?LKgI*{W8fh2cW;ghIOcTN<+N1<&*;LQ$;@j~1&HkfMr#7`GvVCb*wi-eE7g zDaYNH?)t(S;Wt!?yGwO?!84of1dUa{I$BW`dR*{eUJ=7XJo)~mhUCR9U+~PYG^y~> z)^DK2@<+b-nd^CCc+{^}imKmiB%Z1+C-Y0SV;O0GPmLDGf*kZG`f?al9W5p*Yo@Jf zYpb{Q(5_wf)-Qf>YirEH_X_Q>N|X=!p!NGtalU<)w{+f5=)CnD)bfdLN2jOltzY=U z*6v;QE^DjXJP(n@1#v%&o?sk(ZO|ID3SQx^!9gp(e}6$d7uM3#!Fgh&CW`(+{9d@~ zs={UB{QODh1tS@gqwY+OKH%J@IlgwCq=lvHta6)mn_Vtv4a43a(!zM=5-(JV8vNQ@J+D>nd|y=iZEaro_YA%UwU3O_=Ew{q4FNkNIx&Y$LVR>`1wuW{m6l z8C%Z|$r7LP+^KuRx-P%oiX_^iemSPM_pP|l;pSG`O`Udj)b%@P7ziF~fUZ%&^-D`N zByx^bf{GW_>M#b=8Sad?SvHM%!@N@}cU@b_-H{u3L+~sk7Q0X0diLp4kzffg%?VGPodVge|nld=+FITcIic5ZZ?&bX7aNupqkWgz<;29j&seTp2A_M@Pg5y!Ubt8T#-l@P#totE(n(vJWoVxp>Yx zK8C9*s|KWAXer>C!7cq_lJw?06eKXrSxGTeS%SJB4hln&B;B#Vqlt^lp>SA17Nwy| z5)OnymZM8=l_Vt$RetGEa7J(w9`$2cOG$MWyp9vHW+-VTVnWH+%m_Xjn(Qi;rXeR& zbLbur03kPwXDg0IFAMV=hd4bJN4QFdyrug{F|W{>QmkwYY`7&i1pQt`e!KtoC7^0Dvn}!Cjwgs3OA+}6uRJ0Wz;8i4ew+ERTJEq)Ti}HT|c28nVOoLGHUwNq4KUN z*gaDVP;;{SoMFsmJoK8PeO!6(^mD^sXMYLlKRet4>+{fzY5F#_a~fa#=G? ztt?9yM=i)aJ)KSKwqaztik5`i7jXBqgHv$dMc$EtSK1`4&>IH*i$wcj^u}m03rq8a z?k(U2uCt))3zKtm9=SG~*QP+vRmjUallV2M3^`t;aZF`m4Trd*a1PTTm~GQl!vXi1046WQThy+yGe$ z*ZA#zPPdY6xok3`ealR?wM>1O;ZW&A3TzZJVrdc04(lN!mddtwb~r}NQfw_0Qe`G6g&T(VgzDbr%#hI08X^>Q0m{y0fDLvyQq`Gc6fC z1$z!-06h^gE9e#UO*niJ4pFyaFvwa!Qgp1oNj4)oD2%ho_@i!>O-r>4`K*j}9$=32jhEhRueL|-zVBRXn``u#QTq0ykDOA{xUNu$q7`MUm$QOQ{6i6nEm$2czqwwYUFxo?mF5{RqVoo3fRjX$L;U9O!^p z66k;n3LK-3^w_{hgR(;YA9C5yuP{i0Z>L$FWo7KPxy9FJtJBU{R=fCNP<;DV+_Kv2 zFnCbeEqnVrtc+!Ep<~uX^cge=>I@Ik=cvwL{M6#Pb0Ryv{gW$X>01aI zS4dM$BVyU-om|5%QFAWAK+&RUD_5|yNh3j-RO zM5;aEj28ZO6#^m<;ECapas_5GdLf8@Ahc3kyT!5|Oi!-qdd3zdPX{rV;O$Vn6>yz=O=ZtK^ zv4>^D)FfHA&4`+GOi!0%$;3TjS<)cQH+qaCh8M}V4$lV?Uh{vZlOZ5Rw`*G z$}*6I<`P~Rju}U1jhJc1j2iUqm|@%k%LE14@6hz>;(}zfw$LZL5THp1C?pZqG0I1q zSJ3&bzs0s;9+S52A>R$z4aC5~8v}M;=@{)u06x^y;RN31E$A)n?a_SR%729`zk7~A z?EMt{(E9C=H|0(0?l?F_OMWH6E0eI4`p834B{IPv0Ba-_pXf&993^unFkby2l%Rsb z6>#6c&t5rHoAZpUi}4e0GmH%|Tnq#QO)dPoxEHreR@ZG-$;L;ke55p}2fj5=pV$96 z41LNlj4<2`a^0hCj%*9`H5Dt-~%v*OXg6GC))@!E!SOTwK6R*e81xXb?1#v`Azr;m zY1NBtvLb;{v4VJ9I{ndfpMicN{*{a5qdWC5vV2bZ$i5Zd^2Qt zf+vmn6F8y<0TL3L-{bH~`q2b*0ZH-;ZHnTA!*R<{%#^L`c1Dk=W?Rg*^>T0F(v+97 zx)IOg?Sma&GN0s5G#Pem8`_y|WHXLunpUyX4~67-QYqY+y7CI&>h5mwO4N0T*4l`= z27aLz)|NQqvf5VRMW)KOx*MbywJnuiy1s*hsBcs@RX-clH&jTw|89l3)vU48>mptp z)Hr!Y`pPR(h)^!_chosSYmQoVhGDXtj7>-3N%S5T)x770)O+Mqk3lywNBbknAfZ!EEmzWK(FshZEt5zYz`zCv6 z$gVvWn~r^9)ld-R4T{~`6Qnwm)`YtEq3#LjiyM&ZxQlXUJ!BI2!;qFR#B(Ps)LQ3FT|qzG?toOnD?K^tlOR8)8)YKAcY<}At@6*b)}A9aciYUOFTE!;?_)d?E`8ftUSxbVnh zt{?`E@e8G!YDZf5a6v*0097Gr6UZQZs7!fD2US}zyklAY#v*;5)Agyz!#O><(`!qp zgYD;IWB9Q{f@o__eSkh=+&RUqeRf&zXHkxaNC z5hbTk04U>EaR7Y}_`~aPdKDGL{3iE}JA$er(Z!&Q;@fUD-cpbaaPwV+`~;dT^Qld+AvwjmK8r3AI!e z%^npQCxgz|t9ADvS~jqNdmhyX)iM3(gVYMLJ>cKPu37!yBYiFkR|h%bdxKJekNHE3K5?Pdd`MB;wt=kVx>Byct@)9| zgV5AyyKGCgs^u+hisg2>r$?K|^`C3cAmn++VEccn5$8j1 zz*RJs1Rrb3rXsDyt@?wU{)XW!da3RqXVYTm94&7tZwFa#k%(+3cf)jxgvGT-x0JVR z2LYE(Sx)bROV$Tu4()panL~Suq_7fyA0k(`qF#Y#9ST4B*?r+n4norv7&>Dx+%PVn zWCoE)Xd_5IfK3N86hep`VI+!RHx5_fi8#O5SuG>s3w?o; zl)yKQ#@>MJw1}qdptp!NB=JzJTy!i1m+WXrQdLt?BUaD3Jyt|jOjVUa@GOVImQyUB z$+;2fI;|^$Ot(n9!&PKiaXaFxwUyDx3Qr1E)R5$@h(uS;>Pi+*!J8hXxJ2;f5iW(i zue9V)>cSzf~5{^a@Q`;sf9^KO0 ztA)L8J04GJS~4EDyS*UXB6uwMJyhX|qCA*@^Anq=v??(CDesDna6TWcP0!7{?k(Pe zck0~`TD2#B=FWRiG#1AY`41HM#k&KW04glBVd#J~kKs@&7lUXD;GUsKk$Trv%?Ed@d=@UV5pQy6XPoR+ZQNi zvY?vgDdqAp*DX!Ync5*bhPN57X#+eh{3@i+P0!5C!B`Tyla5@T2rRK~%&pb5hTMZ< zEK#l+#w_{IK_Pt2!*i!112ITpQ%U`SH=?QrV|oG+Xjq;YmcEK8l7D8~hBaMsZfwKq zlAJAP+Ovb%WNGC;zQnj*x7IxvKWsrsYO$Zy@f6LEfmH8t;v? zaK939_PjG?qc0aMj}Z|dRUG5eoTEhAC_&yf{$3X3|kI=F%*u_ zmq<8tPn^?!7R~r#H)MMWTzVAIn$u8M6*5K%EW`u}_ay1Y6pbQ7ZVcMRC<2hx3It9O z90yef7r~Su?c7%rB>WMx@)NI*$?5jA9J7)k&*L&O4Af*QsV1zH%pu2{e-q- zU_R#}7?)Cmt?f8&3>zv__U%GLT zZ}jlKW}lq$U+s~qs6CXR>VMn-De;27cHNW9>L)18!$uz!z1F`NdUvfLTyOJR{7s;lh zl4ZI*DQz?5f_x()#X4IjOlwla&!#m~E3Q}r8&BxOO<$Np+E{hDbwFA%DV)nZVJ-~D zg(WZ8v@4uAflh~&PYak86)c&>7_T1kZpAad<=pKPe{Q5gFSleH_XO{w`5>e^@tO zS465yw%-`JAZ8_q6}*^%SOJ4cC^1K`Ne1?H11rG}W4Oh~r6{r{KYX!t3Ex*F_xgY_ zyvDIGl3i{rv6QriB*kDPgXJJtrr3I9yAjQ1iMt3IVs|UDWp#{WWEUYmO;*(?44Wy> zn}|jaC9i@k{2O&%-Q{Ro?r&ZbU3Lu!v3Sj3HhW1jdAMU2uK7E29sw(J@^JGS;#WHS zGO(!7<4wK;<_ghkBZmlKeh6QR^-st{d6_c2T5f^SX~A$32sk3%=KvD4EyNlPtQ9ge zMOL#(37fD<&$qbD?y#i>=LHw2mg&GdW+F<6i%e579EA6gV${-uW6*_Su#&437eG&9 zG-CRy6d)v(kv<^j4f2b^94daLGb#{f@NhIm$9fWMRDBxG%JZRc+RUhWJZ@^ab8@<@ z`60z!?IPkyOEdpIn=pq@kwB>_JK(|I#1{Mua z&w+8ko*gZTOu- z{-L6p8C(_h^uCl)EcxB`(F;$#*PDtLG}l%Av|1YK^Q^c(WO!H@l7BC{eND2TgiFw9 z%;poYaP%PN*&no4L82wnEqr)d6D9b*njP3WxTP zTl_0-Mu~N_>+zE2SSuuVM&W zNSe;?6c4;bgX>8k`OD{dU75BMNOFiOi7jAy!!lrM6?nhK-r5E0WJIgPB_~h$o zKSlH$1Z%(<;DM@cOU}(Dv)7(5FZVBxeB>=~8npZ$5gtK(+k;+3zfrChk}^lJQc3it zFCs&6r6cRCY|D+bOFSo~Dg!;{=vMazhvHVr&rS_`Nm!(CA$P`;Ue>*jj4uayEVPaX`29 zUv!T)aSxtu-DIJ8lat!p0h*#7WK)reOHr1gB>7CL$jyf8jkJ(qZoXuTsbLA{rJ9`J z$##U+gs+Eun&dBJ9!3uN+vx5mFtAW4+MdIDE_-kmYqD^@fjW zOrjBtk$i~why*U0V5^9a2JEsEB9wS%xk8}?O6$TkC?PNr-~f%tx`#hlMb3R*!n%Rc zk=~2TR(HiJ2k+NAT~=p=_YL5Vy;cvmyUJZQ?}@D7(J&wAGmCK5IJwST>}3~bN|}T2 zD2yVmk1=}s8d2gggin^{Nb>lYaylb~-IqnmQ<&f(g zi$uIkW{C4lHr?M5i*@v;b4_}Yzc4N`lF4U4o;Pw)LJJ^Q>EgKYr(%d7oG)^?UZxLp z)B2XYJ?MFe0EdzMYkb6e6TD_Pe9J8b3ppxHd6|J;MIL+%%92Qa#7!}X;D5uk#KX9` zPKRIdsJ_nLH8+PG|GzGF>-u3`FBkQfT{E+*V058KmBvZ83=@HPZVXo!hi z`4h$w1Ak5^^r^X!N<5yeKfQ}U*c3H#9^4>S;3oVhBPSBu^CtJ6eZ7wMg z;a+`V;b@B>LUz%8h=*n{wo15H0S@qBY$4C25(F+q!!S!o=+e)F{Lz|1B6@cAXl)iQ zW8|TDrRnLrd&4fT@p#Qf4&Z|Ovm@hE!7qorW4+cB-Z7|ROTM5G+759=8Uez!!81ud z&reUbD2NBlG>O+5qfMH@9kkeH(RXB2wpzSUs!dN5;e+`0!r|J~6rSADy{Hdc?freN z{aP*TQY~hVj?Yjt>2KGrmuev0zp48`7ZBr1WN$*oh~`yMQyL+y*+8wO?`32ZNKhieHKBtV1z$dF2M+b;KJ({*p~%)FkYb11a=^?JbVa(x}%f&^+GFj7ec#d7=fJOk@H*DA>gi%Jve()Z>+9=4Mu3H=$1?hoW)8F8D@G-My)>$l zkD}`TvhAIrzRX$S2af03oQ}B;o_-*FR;DlX&bB|VwHY|@f_o4jf!2pLXd-M9tRN-5 z2l;PcD#PfTH&Ckw5o-V0)ZEdme)th%yRN@o1LN8^JG*O2gX+>8E7-$M!~L)tbukTN zQLZh1n1aS_IOeoSRBje?(7lmhjAXxMMN9tBxHp5$1q^EpLh6fQic2-S1xycvaw?d_ zUd>yWot-@hp0p55>)-C%bqJYf#xV+B3cm6T_@{|hgAzhv7t)FJFOeuiB1cTkp|KAq zld;xc*OKMziK%&A>nEI(TuL~Ji<#V{OA_m667cqops&bGfK!^BT}X+A<~afTuR2yi zpdbGzW=^S?=*FhBtW@8d>~YHZXgRsE63;s!HClFiJId*_6pQA{UOC$CcXT>sx!>w< z{n3hKr>ELmaeY}&nw={K5(DW-1f&3lg+QDMkjPdJQ>UPOxxfZj8w~#6L!ij zcKBf{+u5E}BHA=h2X_)T)y$J_)BFm1utHB=X`3O10>rk-H9hRNxqJjxRkqlX3`g2J zJMzeA5xiE!aaHu2@ZgZ>hW!2yqPb;E{}-i-9CFLk)8I=l4C%J?1b8VlvaV^`Lir)~ znkfETpLOb~R^O))@jKdYZ9LWL_iBgGH-cx;8h+wgt$cIxNCYgI^vH0aXEeW~wvcvf zq|xG059tB)_q%`brd^~C9P?)3E5S!lPy7PIZU$-K^y5tMLu)L=d7QOl^^?ehRIs3n zhHjqIz^(eE0#p$(K{hd8RVjBOA_q;l+Nt`K`h-IK?K zNGZmJ*Z1jO`kb&68Ys%Lq{?l*slGuE4t&9nV#vWEeuM-NM2duh9Vjv+cq^FXSY}FT z?Bwx!mfav~UUw|4=_< z(2LYEFka(mN2<&*!8<#3{eIhV^Tk5Uv8*JB#yzA?Tii;y2HfIdB{}4^wN={Mz{GR7 zWIB~H^sHJ$X#L|lwkkjbrI^zdzuKrOPUyB>j&@cwt??ki{uj zsue`P*RWI2q9qLkqpzaIDKQ$!(uzMa6z>eACfbY!6UT-p532tQPxOxvf+{-|bZRxk7-jr2MD;Ss8ILKTe-JHBO2?$V3qe`_^Be_;PJU^*#?zDP(tS)-% zT&%&=_`;k%d2i9`!M}|*y+faduLE?V{*FQWr`6g$$P+*|9CCV~vJQ_9N+Juc2>Zzo zK0;$hsz9({56l&Y4+K$5DJ;+ElU`^-d6TYB)(+Kb`;eqCr@I9!*=<>8M|1gI-e5^+ z*`zIaJ?ex6HOgBUuLao?##BDp9jR=KX4|}h4T!Yh584#fk!WJ0mTBmb-SE3r5&Jl^ zWtmf&QBYkhrJ{f+lmL(i9SElz-iP43AUEpJh!3HKW5Ywx7RE5Uz`y7O(yzHp^@jgr z(wnM%Nyp9;hCV+(r&#d>77&DuNuB58aSM(-)6mXxt&X_+cc}foX=;Z&-fV$B?e401 zcg1p~bee6Y~e<%IPWe1qlyYbN1S z{UNxZCgTI%Y0Zpro~FHwYKrs_`e=CjG;QOowsDQ7&F=R$%)d-Sz7AGs+ps&J4IMSY zHga9Ub}bqmM{avJ@_nh6_flTd5* zH(@s94(a+KgZ3YBhpbf{H8C4JOoXZJ`qcQeLBHQJldW~EvWB4bLq_2hj5S(eaPrD1 zj5o3iFv7@$A%_CZ5ROWrQ_xX?v5b1+DC`B)6K~7PH8>LnZ!rN5gzG>IER@yZjhsR( zQ`bF1_sX6NiM)hYIJIcV11p?XVgZ@UPu%FJ+XoGF{@?;7%muF!T|q0SlFm8jMAd`0 zP&1nPZNLMg=-EXtmaw_uQ^V#Byk^Y??$D#t&_%xkg9I6QM~*B^xxpfPF*ZENZ!1_; z47Hio>^5mn(+o_3CJ?3^6~li&i{-xV+ub!zEuSyXjl=AigR#^H6&DVdarf={{K6A3 zI-aNrTO$~E;6flNC{@7@4ZEhMx!Qi={{0uWFX__c%Yil5I*Tk(B4lv(OnDlqI^qhb z2p1ylzUj02HQL@!`x+t)N~$Wji4PC=05YzizS8=wpddG?iZ9RxlaQ$uAL)NMLaD0d zijAN(3S1gwVkB1K$1*Pd5VplJUD?JOp^#z53o)!Cl6AwuvMB=#eXK&8uE;TR)9a-* z4&rf^Ax9A0$C@ALun|2j#dMfJx{M4~BdlaS+sx|GBpkq&X4`VA6jyPL6}2_Pj7H$N zNuFL(HG~DcQd>OpYSqGO_-s^$bGGQ{I#!^sNhUK^REql%!z~!_sUnlUsk51&1LaRL zPHuj5l_dP#arO5$Pesl#&w1ZjTO#L~=RUuAvw6-r$F^)S&pns;5cYc- zX!@a=e9=!(Ac`0e(ljx_0v@@@iI#M9(Il`U&Aic3&fhJ`*TL#l%|&LkJYZStk5*EV z_7lc-s9)elSZ;yII2Q1v$>p)jbJs*hJR7E=;7jCpA`VG8*`%L=7hu*0l}o&+ZkYVU z04RQfYPmOI+D>B~{jxeCH2_?^)tj;-FLp?oUVJHe!Q?rajq#Vha&@U zXc@=8e?(*c7q8co= zC5IDI$jNty^jy+5D3)1nn&+6Sq$g9DGBG9M#_?tWlh&W3w}Wz++4k;-lB$Q>tvL=694{aG6Fof_x7yI|XGFE&z1Xq8!ZxkvD21 z_zviW83&0GtPuv?FdnKE?79=I4X$8LA@~}Y%}AGqDH;S^tBZbzMR(hWjHF?eVyRGn ze>fE_MK!FlDMeG^zJ3K?VJVi|`up3;6=TGxlwhc)%N6YuKc7tIeOf9FH^sO6gHtWs zD7dos1vff1xMJDG_=sB`!m^LN?{^APwfd2CG1^^X9P#CCXk~G16zmnrJ+Mg>6(5l) z6)?>BqRNOtGg=%ij}qIhjt%)>weTrm*BbF1Ul5T{AxFuD^V>X@T*4KrA^S0ASut8j z2}@e$Ql4^R5AWJl!=@`pSd*eMxGa}EY`+jTLQyRo?58sZJ8?mann)_c1_@F)9*1u_ z1b!XDj%(y&e$N~-%&-Lt){^5&S}2Pb)@fp~Etcwrjj$vIOU)MNeFoz;i59OUe+Z^^ zlNCt;cLIa*D+$P?z@`O@3RZm6>TrCbm>8s0ZA#h!n?acfX(rT@`Pv5PWnerW0w%-Z z5|X(~(`A=qI!P1iN-UVtC$YQ6lxs{O?bmSOl9m(%3l;1lRISyTJaz$cIZB=|XzM{{ z5@u=O=3d+&<_&HZ`y&N!x>!8K`?iEutX>h?B8pqZDx>E3#s4OoMc)>nb)8B72MF2t zfvTq<>yT2qhJ&7?Xf`I}a3wi`*e5wn0)ZLq@PH1*%PAgmf*FjVoqE(_?0lRzuiy5hxi^u?RO7 z38_vkSXN=Dc-Gq=ieu$RNJ9iOmI>{P#NHW}?08hg4jj&{AtTaZM@$8$z;NFmaf0it zR9pNJ4nb=xp-9XzmgX<*Zxw1qDky^hvyu#8a&~~tlF|p)h(p_non=phh2w>2(lKl- z*4DPw-gN{^Zd$xRyaaT0cZ)yM$-e9@euqFNW};y3avNs6T!L@(06oq;Hbj22a}PMU~=Rp8M#gl*eY zPkXahp-@5NqV?gy>Tp^bgs^820>zG1pc6uaSi~q*k`&xVG7OQWl{8JmY}luuH{~3T zfyY+Kkz9eYag}CaQM=`+ma9htdNfCyYpF>b58969^?j;iY0cq;QD;+2G3HdmHB}5o zs=pJ@6|6$LRVY~P1?%e(MVbaXN!i%HQ5A#Dhxs=KIw5zbNhRTar9sdl(pXX@8j;`P zBqGsDmgVygN-e1=V8GDN6GbAAXJBD^Dz}U{UXFt{niUIi%$k#k<1WoYr0yacFz{Lj zGGo(Ibx^8q2}a}FgaQQ=|#C&5%IoGWwiBS`%8}u2jf1h z(0Cv&WMfAij1#a1oom+Dg=1+j62r2Y7&1}LD=>wjXOi*T)RD0IpSEuS)2ew#-Ehq=mBx=AYQ>gzdEmb_T2G|wwA6^W z=qxPIBQ`9*aqKx01ly*(ci=Qs&O=3UMvI>bKM}2%99Xg@%TPs8D|ph$GeHSv!7!sC zw`}PK3{4x(+RJt2{F!k>yS9RLH9@>m4gj9w-bO zW9u`efmx6A(~CM*9^G)Dy)9=>XJ%^GoIwsn81Ga8{GY5H^glMP>dct@|m;$ftgL*yQ)}M-D8-)Qf%LX)TpMr2#)XgQa zlZz{3KPOYdE+o2^Fmkadavq~bbdXHB3=|bj#;#Gc>zaZMDQUMI3rk95+frhw-fTRR zz|oL}Fg4WtFe2J4_`is;eycBt5<;*9n?aLRxkwY3G1xV86{TSjO@cinL6TKvn5#q+ zyn`xO2^!_14+0xDIZT3SfYWBrnSp#bY@66pCKSSEGa;SK3KJ!EsN!1QNjj=7Bf5u` zAu(+J4C;kBq8A11_Y=+!rh7KgM$|p+t5+DZoW?D}*dPWQHgW}voN1RJEH8*?vgK9$ zm=}lBDIAW3B<{trsI%f)a>zD%WZCFlT|iyX=GOe62pp}R#CU}+&=eudb0cP5thyZ^ zpM>Z8nC{Nc*XWx&P1gLeFU>c7NkqE{{ofxiSksBUlxSU2xq|g?w2czBpT-+xQdBCd zG}35+EV4_3!HCsy2pS=ZH3;1n$x(>UVRYuPupPTaVks?@K-$C`=MXi6J-NF#(GGiZ z*zz6hq=XK~uBkBBbhW)5wA8WX5%%0uKyd8106S5Qn%Hy8?;ET@?98LfRO;wWDA+bqZ*`8fOCiK| zu@@P71h<#4=NQ&SCDFxwt0#uC*`bNmeL79oz_18(-v~TMdFXYk5V_cZ^)qLY2gHK| zWHEq`fMW%8AX~afBWoBt5{`{vUmwh0e5NEbBoU8QgEe6|L=zSE2vnnT1w*o!tSaQQ ze6XX|(NUYEw^!sCd z8ddB+=lUg+r|B;3?R2XtB#ruQwXhtu3=Qi%4Hy=1njv*$Lq3zqx204>744kuVT0Js z$!s{CTa|2U%jVPJY_d82XkB5FRmh*;+;dncEZBr`fJ0${0+02m$Wsqo>yT7P<{h3b zle$8RijGClJQjhza_Nw_(;5$Z$N@Ss<<&l2!F~WKEO7RqucWLgQhD&xJVg0!+!Q|fpr{MLKVMRdy6ANK^qjS7HFCkBzD8nduyCutWRAU9 zle%`3wW%{*$PU(4wn?#I$yPkJ=Ok6CIgc{fTO`=yri8sL=pRpueJi*!54Rx3PAfJS zgV5e`n)V?r_KtVtUaM)Z)nhl@@XFnqwp)W+uUY4I%zXtsgw~o-x(zL& z0MUja=zNu@e~Y}dJyv0(J!KbmTV<=}>c2hl*q*{hYpSrP4EJ*@A0QLlr?rO@+^eno zLG>V?De1Igc^!#G?$M*42v&T1SiuqGIbe4tv2Rgp zZv^rb1^N`}RLeh4L;J-G+BUsTP&3N&!8_Wr6oYzUzmLLpUI*Sm-k#vD6oP`21-(wI zI+lN?IrI|8dnKAziQ#NHn=R`HX*}o%9o^Gf%f8`7M_k$fil=FT_lbSMz%krXunOKN z&57^cc(4{;FJt@YWig#BdKC?qlO*Bh!{PEXzo@Ww4L2 z3~qkibtwM|ya{`wAoziuWDM0opwm&Wy_P<-<_>%`IokXBm0Rk#TfAVC1#O*Su(1lV`C)RJ1%WvO-9YTA-oYFXCNEya&eD&V{{g2=O_a6=skyyC`mteNz(Fput0N%GG`3H|MYrjPvsUPe++~*8Ob_Q2m zIc?0XT;^vp{UZk^Jpva;OUuipYArri+l}-dA1NHTdY?ZwZjZFh;VF0N@)d+hc-}m< zJ9ES^z(vDhBON8Ad0-ripHg}a(aRru)D3v7Z63AnJ$k8pwpNsXpO*uqb_9ab$8+9& zx4e&qBk#ME+tG1CdjD7Hy<)|Sq?N8FV-Ibk)a}snJwbMh>M0bv0QH#aiOp*zO5AF1 z&t&GZ*|~dha>t<R!ul~ zajm<>_6T)!v7aZfQ$t2et|s!&a?2sFfF2^;FCJ6vuf+#flD6&&`#=X8EmLQA0EU*( zyNuqaSENHa_MVyS4E#mFT2|2Oh#uHS)@ST-YmuZ~(jMv1u#sLB5b_K*?6%`WB(Y%a zPA}O$%moEl39(>O%4_4jY^6gh+#WNU0ORe6@D6BTtVg{V1b#kpDqNweZ%?DoZ(j6lMR0??Wf?ip6eDW z)mXinYx{Ky8kJQg#+-iOP_EMa=fl3} z!8%uu{-OhcBIP@Y4$~rnS@YU#oH!Av{JXl1{Vh@t&Ya;~jd%T0*SzTf$I%L+#u^Bk zy@0Q0f*ET*WQOmRQ2nf8UJ~)FBJToEo44qfr6p?t5F2sqHksDK29K8*TK{o&;iEIa z;{2Ttp+q8;^_%wSRKoB0W@hZ5-Sl&r-KGzO-8V;b@*Ceeej=-X%Vw_%{ZQ|I!43sE zl$q9>U!9i&WfT4|$AZhthr?=cnmwUsY_pA;^pgUzV3~e~6+k9o4BE~nC}Insx7G1t z(=n#5{Adib0Rgn>th;l+Tfx>Fp4hRoRm&vry(sAY`+hW3eOqhw85 z``;agr@mB4?6W37yr%X_MIpyn-Jap^9=Yva4ijfJv1wSP|&2L4Xi0;;m}(qju= zZGWpW)$})-d-hMc<%Nb2%AeYF^l5v3=+Eg#NMlr~9vluDlc2c<@Ex>6O@CCKHEuIJ zW+T&VW00h&Pv*Euvu(!h-7vutx5|GoYXj#4rf8-M9}H|$`e-QcC7wHs)j^aFQ9lF! zDg#nxKu#5_lY0X`RKz~6a~ZGb!IIQc>X!cO`|M#mZC;mF2_s=*QcEWKbs!gpzwbTv zNb+C|v6U|bV&opOYtESSPHR3jjFZ41l4e2(Xq&^SdF!3_JMCrxCRyPuN2V8=((l7- z6TIqWQVSKG6rSZAmssWtXxvRT z;BimD!jVeA2XEuTI46Ygki)*>eikDoY(5!x zY+|DcGm|uOVe~ixx$lgT`vUSM9&eUIagcuh+WE&JPYj`mzRQDFXnoxoM=oIN7`{eM$tRlp0rN5p5H9lAM#4M zM%j)fCQ5KqzHxMf+I>MReuSGwEXFM;FGGD^+wC(%VnpvgBsCjbqG*d+Ls*di;xZLA zN8F~k`?@_QWO4Ov{z49IyVEtP&q7WgBd=KsS3m#)ef4TE%3vvDB^$~5o>sDDowa!1 zQ%|zCP6Xi#W+pAxc{_MpX|43Opxp>poTVI!Pa3O-(H*R;$7eEl#MYzlBb1OaE4x2j zt9@v94YZLqO(X^+*yKAUY{5f-4B2(-eIj)sT!O_=;XiQ}n~mgAY0n z|M4nX?)_u0J3gMVDxGAIExc~*ekUKFd_&O5?;i7FSlm@|1 zp+c6z=K84f@Wal7kF2iV{s;FvXU31e?ke3XXQHz#A3k`ncP01zcK%;Ekb9!r$w=Jf zE<-iy0^frP@7y_UZAp65#-^Nn$@Y>*5^lfo%+~hou%$c7@j=XOXGfFBOtcpXK->1) zkW;-#e+v2GUx3sfnB+Y=c&Og+exco7ZnaL3(PoD0HX>MJ)Q*E|m*c(QYKY$!M5~Uj zs1=+hnQPlct)P|Z>k6O8D;`JgYTKRZ;|vb-S&qT$<=RCI0v;(&CcXdQe%AeEQ3{2Y zkkjk)ziOLGn?!dY3_GMI@DMiwiqrXMJumY-Ug5m`V101j4bCjjV=#ZesIP2$_MA>% zsn31B+_^xAV>)zXk8Lfq;y*FC%!_i(uX3)fe)$CZgy+)z@>Sbp+qocJeXZx(c3-ed z56;Eay{2{un|Me@WhZk9l3Zs$v3^Iu>RZ*-xn1 zB&KLH4+NzEdGO4O&D%Q=6X&PIkv78AFQZbni}2XiN_Bt4f{3FUON=`is#$vJL^dd- z;jyyfYhf1I3E!_}>-FsQv9iAtWhtpL&M4+@s-7b&Ba0&Rn~~3beipsjs%E3+658P(=iuxyjc=<^gr|iaqoyC%Re+d z4NQ`dSV)z&@L7O<=xO41;mXT}fGbjp3E!b4LSj@1{}uXMEC$xB6(cYk@0yT9;qO7! zNjkv8;JUXh{`gk6O~7WRjm8%(Jchr4q^yLS!J6gJW-3GbK!xL!Tsb(NBME^K{{UjP z6I{V{WnjJpDH0}tkic_HplaxtKx81g(8s0xfK3E}kEqWN{R3?#83MvTErC7@P2%Mq z;5KfN|3Dy)z{DuoXZopSf+A0?=yrF?oyI-{naZf;5-xhVr!_jwgN(`Z+8T4h$sKtd z5hIKlxR(cL``V2w8$OUVEWmfW@4EAG8MZ5u8~*s6?{eQQKJ4f?cpD}(9#T3ScOr;S zTt9@}B=jy2Pr5)s*i!`py12Ow#+P2D>4P_cp}>UH4a>eHv=fCOp`GyPuqtFx2uD68 zZ@E3&f866&;hwsf8>PB3`A@@sTy}|PaWBLs%5m0THCPC@$@yE`a1UYs9q`ICYs<_f zDqoL=IJ0tQef``9QbY7PaX&@#-q!Y#h0N9k{uZ1 z*ga^>NV{wJ@Io6nyJo$`9g8KD$BuSgtNTp&`U7G{ioruCr>kV8tIGeNl}iy(4S&&A z5iB+QAg?&7T(TEED@N%Olu!b0L)P*x)4&tf53Z;0;|3*gM|PYxu-FwNvXFB3Fb)_n z{34Y_^l@b|&EdkM^KMd&gO&J)rH#X9Qr+~ohtGs4iae9x>{($tIe&iZsYE`(&F!@| zGH6nHD)Ky~m#v&VyS7H?^Za?dcY~)R8N$36jW6`?OZ6P=YI(941iZ_`k)z7z;5*vE z;MF?6^|}~UmN*xE4*E?~HFTV;3vQ5SkCKAf9zN$z8N7fP@(#Vb2zDJygNWfSG;TmdE@znG~VNsm;shMNv1DcEEI zb~2Jyx|%UzjJYm%mEDZR-OQ-zd6lU~P91J8^~Y2$R~!-em~kaZ2j!7rD{W6q?Ztx0 zB#p)(bLGVj>=qb6({3D%=x_^m8eRgTKo(K}H{-J&=ake^HE>Bh)-I0-QgC^Dw zcj&7si)U?gs3SHCxXI?+xCduyx2IE%_lmHfrVL00gau9#$=H;L^Pmy_tpg#{cwVLV zI(yS9byyi>7umD3wrY%1Dh<=sj7)zeyZlEVrAdZ8HCD>Hx8Lr< z|F9#Ww{+mniAG2mqXcSn6 zzzl$L&=Pogt0k1&cvc5}TKrIwdNIn85BKspdt%G)ZBMlzke2pa$|Z-^+y->E!0((lGMn+RjD8;pKQN@niK@(2Fx;2 z+l#+JosO!?peu#!(1W`Z%ns+~Ngq@{>b#4YW$oVTr^{C0R`o*W3{M-4|wr3ymPcbtJWF1?OfaR%eTaw<$&WGh3VW0jd z+Ftf4h&?HGHc&oX0)i8gGlwHF$)Eh(A?MT1 zXewhSvY?KgiT&tGX(O4OTK>@ffu8iYL;rx+{0Qx8c1(_pgGsPDsF2O^Me#sU7G8Ci zxb&`N;$aemiZ~n#QX#j9+nH6pB|IO$S*_>BDrx0WOLd}HsRPUg%b9aauAPa+a~b&7 zyh5u^rE~>+63VKpa;a?Gu6X{XpmNfchM(_@pl&utJEED4k3e6S%}@7dHl+Wgs8f?WX8$`ZZ1dCcGmKMNvB5gH^hP3Q#{wR zGSq0`w;(4-dU-uh-xqI0ldBDdjeyn|XXsJPS`;ObnhQ8@S>kc6BF*@lAyIv@66D7V zK2j~HOjf@lnLH~ZHlLEPG{0*0ihN~~F%^w7kmj6AabVuYslUSF^MC!4D~og$E!TC`d$J0& z#1o@jX98(?jzg)?Tn|VQI~5$acI>c@U-!i?)_+>)4q9Y^tgRVsuN7PAYxeZ5V>(C_ zrVpJX+d)?lD^q8mk{LD^jy9xVl#KD|N8;XF-|EF5DV#bLoI2I?rl;M}Govma^@mht z#rj-wWhMDJYvpH;tTTRjdp!lr*@jJ|l6m+%wH_2Oi;Rm$lv@E-%9N+YHfasSkvZKG zrf07xK_69lkNKWpGLu+I9y2osj~qUt+&OF3J$&lasV~jXKf0PLRFl^DcrsZjR4!Me zqpB!5u(=%+!H8rWXAEPZg0{4fKVcRl-9ALL!asmW(l<%%0+BGi<`>8OF?ZIReZUPD z7RL@B9&_jB?$Yn>*x@@HhYmFebbg;3E?n0L8s3~cyPK8noY#<^8|sbXdy-h6)JI@- z#9pz8rY%N57je7gXc4vVjF9usv?;Ih#MelGcbq5Jcq#HUNk(45S_#6;V+Y;PU)eg3 z#6zS$kVIDLy)9wt6nkDetQC?$FmgFtyBTtOOMPWX3cvwHKQAods6by49)#(Xz|~cD zZrzU7P$O||M%HGtXJ>4%-D)_vu`ihRQjV$hDMty=J%1+YA9q@I`zhHltP>ITw~8uh zERyIZxE5$;%t5-F`1kp4@dPA_M`84ZW7+Jn1^bGMeW!^!{-^8b^2Dy!LIHpRAW@IYn3*8tUX!9h4 zJjYY3I?FK#26>Knf#m354P&Hj24{?H>v$~&MY3@*Jgbrii)Qg`6lW)*MUbsP*jZb? z8{6aT&%%mOcW0ehx4tdTULE>hKpd;yDSz@(_XA!KsuL zWp>_oRKg8EK4HeM4&(Y)r?bzxdJA|?63X%Owi|x5UKH-%?Ej&zJMamIPAy$ObztSl z=YSyV-1<6fMrUv_TS5r;jD7a3@XS#DS@a3oUie_b`7S)-%U2V8yFWNV~-8=aLt5P43!>(&{0*Qh@E_`kIk;U}X_rTpiqDIq)^0Z2w z#nzBys9ukhLG{7mCf))IhXP&&3BnQ-4PoOtC=HfM>I#G<2hglo*~RY``WQL`mt%LZ zK*2bTRHlY#+VhY272i%+81sc(re3{axSq+ajb+Pe7d^r$5{fTSF)rt(%h@ZFaD}JS z(Z`pP&>Y|-Ae5YtGVm0*aFV6Q&T_#?CY?fgXX7zw-P4tTFs1k&utCv0Qt{aJxpHpv zFS=)`*&#Aq=dK8ggXEQKf0hK4OXC(I6$#c81De1jY6)R~!&7}kiF2ZGo7il>LG=T$ z?^EuSjbd%Z-2y3JI?W3g7!`W_lW}A9cMJZ73m48kL7FT&Ey z%fJ&ism5Ou@5UFX?N1!Oy~wvlrY2F=VhK;`ej=7AKjIHY9LYW;<+2wBo>uR5el^$#7fEl)<5c-!p3Z>Qwh}HmjWN@y7Qsfq>G+wzb;i@loo=4s zaAMb@VLa~Sy}ilw6ajo?q?1$Wo4{I=rLoU)#Ae=pSu1&(f ze!-RD^V>y{J@R_~uP?R{E+Mz$VEkUB2MP8_kR!~J5>`O-6G}69Zn0nS5oxvH)AyyV zhaWamZ;7ushn91{w7Pm`wH;g>vEOAk8oZ4_r=80r9erc6+fjO2>98S#{vNM|Xj zbScHaokaYEOIL+S%~(e;P#D(_aE+@=W3lV;kOSzCUvcdobz6yAxp5<#-rrA_*i)S8 z@e{j1X~yGL@|STI;#7>6f}atu;-%zTylyd`BC>Bgu|;j)Yg;M8-y?K;=>DNgg^L3a z)5AjER)#9)PP!A<*S&Q^D~h?a z)*6R@FpbWLN|?gJK^r`9E`9Djp&}?{#84Vf$gd@x8_0^yIfb?nS=JQfM^8f}r1Jxg z*b-pde01RM#gU~&%|KphFMqqYh^>a*hJ#cx1dnfGQE=LAiX0Ha$PXW3A=1RiWNZ(9 zKoy)}c5Ma!avMq|Zz_=!gk&nCM*~UtrjiUApAon=!+ze=bFm&*Ll@}t!o9Xru*JcE zeT|Ts06hq)X~~KMf%F6QDaScA_OA_Z8Ds-{LxJ?Dt5)+5-*!zNDpY7z5 z+2oQHAV(mLh+hpRJf1O4m?q-J)x-<|iJxBs{_8o36~|tI84Lv>4}{B1K*>sAHUAUmozB zP76jdcx~c5axoNMBh6{YJAT~r_q=w7)1OWDv;E{7ujzz+XXwAumYPpq&^%1+i>1pm znX{kyD3v5PlBct$ehmX@(C%MlY!t5?# z9lndg+}0o+s*j!r&9S}?gEP|xLQY^&Au~Md`+>j4`aY&p^c=p1*Hz=TM0^ZP$s^+I zf#mQBc(_@5>WL?K7GYa$$1Kr=FXEIYIuS+-2X^xY**0gWEh#W49kqCFBOv494A>s+ zOW?^~#DAeZzS8OirZI#*4vWSAG!`_AesOW1;}(PFuzktenRlLeoo~&*@rheZb_x5s z#FoDn>cveL;A`8;Dcq1Wxmrzj{A2>BvOq5c2Aj0w zxYQGAij45jNxA9OVkAQyB{80HS^(euJRMCO{1~P98eg*F1IbCBV1KNuK`oT z6qq-AfLRdlC0S#UB8*E6uppZXh@44KYZB8+!bK&1>1Q)uE`anclg(2qj{FjvkB^Zk z>_GSHx*p`BSSD1|mvxCphwJW)$>~9p>Y&$hKm2&HW&@pRsE?aDBKXUm@nSM@?o@acG>v0O_}AKKdhxlx{3=(xdT zE(F}qu#@CsS;?7jMPDm|=qSAOxOp{C6P{MlLATY+6PY2hA{wDuj&SudV#Qs=KP^Yl zxAZz063V)ebe!Y`N$$CD0oWJ@T<8y4J8^>SMIxf&J>rE&i4w9Gw~FtruSxCWzF^IK zEIqOOd~xT5coOZqB(rJ*sVCY!R!r2+FHim*sh&5yg!g+bR5FPhQ(j)zm>*DnM>e0# zg-OmJ*#hA?cz&;KN?ezs2^2&aeoZFMnXo>|XJ5086Z%rWrXpT?2~vl4g`|2t0y&At*ZedveTrR{gI-lug{*F8fAuzN436(o=#Jz7i?J=`U{5NKy~m~|QY z6vfV=XG=Gct{|V{l+@h@>`n8-lU{Y7#Kcmme65z>SM?^3KIS-&Iggz@c^M1yJ5E9& z9KB>ApWn5s_;vQmRs6hyqf4>N^WSzpG@H6<+||3Nt5C`!109H5Sr~WN$E*R&r&=Haz2e#tIkSeOBV8Uu;xK?EKC9 zqK(<(yEAMY?t!6e`$5hR*nacghyET(5^`D+Z{Y&U;p+i zS5nudue&Max7?h!&&mjs*lw8REoC*amU(I4ghr}VXDNwd*}o7K5!XC zE<4iOQRKoAiCNGqG39Av8KH#>gQ=NLY895|!E~`nnBtMgZzmTIKo$hGc>ox*nuyS7?W^}XiG*|ftRifagil)kD ziK+8PpgbF>VlHi3xfDhw^MQmB*4F-Na+e#7a_!mlXnqElz-TVjxoy~j12E^<>xq08 zsc$R zxhw9zY_@*6X?B*|!5)qQL^tY(J9Osm0;qzODDtA?F0_dUtve})nA3d0j$WWm2=VG( zh^%9%MxsyVcpZ2V6I^-{(t$RUCe-`lN|Br_$)mY=cI7(Lg#b6@n36LkJQ`%P{rt*t zM_NX|5{Z7Ibc6`sOyHvor{qKo1b?iG!URU#tcX52Dq9bUOi12;Y1+7{6XwR_!H~cF$aKb9Xd4)XS{7dAS}c{M{X^Ebp%%_rDJD|T@V@=D zm&U)z3UQ9eWX4p$96^ql{Ms1|Ole+SZeY{rDX!^KJnJPE77|`IUZ@rLlC-+AJW_~d z-FZr2XPyb`x||9%qe$P}$S~e&l~~@4RjV;GA1l|ux|d`5q!$}5$4j*!sFmX7DsnL& z%j3?Iy+4ie$Hzy)BS~9_F=yer5ROiskH{VzGMoKMSAoxdzh8=>Ze-?RmMKf)zz-l;GJlb97U zK>SrQaUn9~p0z5i1qOkAJ3w(?m#TyDToBaIpUq+%Pt`r&OB`!CYya; z@8WNl0X|9j=+zl2U4&ckwq?!HdGBpDwk2fwwDW})E2yqN^C@=j#v`XCA@!79-y#M3Ba${N^1GR^?Yt%r{3eq>y| z;M+8Ystx6VgSF}6MV%=(0)MQ0nvbASo`Dm+oINfm*VFR0E(HOhiwj2$!O?Bsj>b}u zbwSrDI(GcI>p(x5t9g*XK%s zb+0vCI&>&oXim(|#70XKr7K#&7fgz^yZl#`QZQ!sEz*atnP^SV94`;ELr|J494fQv zXl!P7qFKO|)c=^RcW@JtEEZmGsc5l?%>iC5ssYg@9}}u4G7Z~+{ppM|h-5v9Xen0^ zoZO~1ylHm_QYPR&rvUr+WmclQ`#uwz&l^usjlsE5qkOV$U3n!}r;f^zFx>Nn%cKm! zbovPh$@ zWN4>d`9+g+OQ(8;tCso^qL8ac;m$Wh!gl=Yt5)`vu32hHB%LR40-JaOxLk{y__0^H zg00{k-a8Ih@30Q6J-GPD;)C)^= zaB*>b{07=GoFf|aTk-F5oPmcIryi~&ZCZ_a-r1l0$gJS+g1W0J$qh^Ud?Dqi-+gyo z^D2e*RB7lNNagHM1A7W32W(*nY%$7+5JhpY5G*gL*MxKDxND)YE71gVMR5zWKGa=$ zPe1x2AGq^g@99gXKfp+Cd%2y{*-Vfu>;}~7lFU?WjsnQNvI#YJdSvE0?^NN|BcHSG z^>!EPw;uASZZ%a(2KnMJ_=vKj4A+EYeI)5O{9Mok=rI!AH^hSazR439+&586ebEct z^k+VL(@*~7M?SLU<$mk^*#}B*6leFVw3{ejdOjT&ANfc2zogwh61JOm4Gm%dQs=dX z%z$fEVa!toVbEUM`otLzXGaeHzum(AP7SugKn(Wvr7gIxb>TOK?< z_06iz(2`Zs<#e&)fEXApsAQ@ljg`!&a`j{|76jn<*`C{tWQDX>c%A6&|J>^YGKsB> zq0{TUmW!PtZ>*FqmgN1lUojh(^)97ydh5DHE{hH%@*=82f>74+N}?HJ-4d-UNdhRQ z11z_EQN^11DN5Eb-Oku6pY@URCn!%DtC_3cTl!`###&goX6#R$|LpQ|F$0&@s#%M* zB~UT&S61{a-$2VH9AB5pnD>`GEj0)eF<{Mau=u=Upc=~8edy!tI~-16-ia_H-4u?3MvD5YhDv1wS}aS%5F`O zw~J9cgS!w6s`jelf04#)vIgy{uQ4Tk2&4L6_m^>j!6?5$X&eXxpv%DtWFICuMO+S?L@tgDX`(<0|HYa87V0G(oOMUXrzX<>F;5- zi-c1MKrwZ|!seG<1r&(KOq7rOxh7 z>3B{T5|g+0?Wnm0u*UUjYk)T%R(0B0YRfXtdPF}!!{P2jl8OnZQ)aP2m^MuO{5aMC zj4gqOA(H^NO0Tp;wVCGleF5O1jG=4@1WSpD!$)>fy>Db@zLVWKQH=THJ0^-o&WBhv zbFEXp2IADQvj4ZiBJ@bM9W!APtQ_4_37{IF^np>`m3L02V*c2UiIS0H-#1WiCUuSH zmoK}P(Ab#tmC!#orFJvcKb4XZ4mnhXO??5~q513eZpF@@^iB?6(l6$FWB9U4 zo#}R|)Gn#1vHrf|!|8_#M*Gm=9nWYULwRFxh3AkwBJBqY^V2Y0dL715;CRb=lvh|Uco)Gz;^A98i-(H9y%qm#`@%&c82!z@9r87a zUU=isD(!>LqGf@M7E%7i1;!(83xJuJd$&M{2ZklYW(Spdll&8jzcPY7|V@k z6r5}OPw5p;hF@g$lRBjxM~&XXZ=ctsf(}r5dExI_)2xFwI2FFgD_Rl7SXj|w421K! z;EPM#kHqfK%wAew1rZ{O2H6Q6ODkJyzOk?{ zIysfvmzvr&vam3+OD|5&&Cgpk$ef*ulbs}Yp06YRWR|b2ti37a`j!0Xa4K0bO*?Hv z3ZMA(!6BlfO^(We?{g}t?FT?3*!FeBs`#0*>5Yu+hMGPFO+A`Zbk7#}uL@6bpY~@0 zebM1jLA44hMsQy}@Sok%0HX`t)JwJ@oXIv@o194(V)wvG9J@DGs1#x&_}=2NdaRH} zRS`=tc@-P5HX$q7;2wyIWm|EH$j^^wadsw@(9Hwc6x(wvkXM}SmhXi z<$NM%Ip*U*BN)r1GI6y7hUQ~e08WYh_}1KC1JiqS=yhECbONJ}ss%kRjCllgGREl2 z!+HS4!6*z|Fj&Qb;o=~XOzpPi#Uy$h`Ms>}k7jCBn6MRQbS`62^fI8BNkX!1v5|76 zN-c9=GE*qK%!F>a0F5AEq#V|fm$8W&JNMX5Jevo+2{6Uzrrq+SP3({%$sPKYqnbB57L z1^X&miDXWSwM|GEYe;fOXGo@y6cOY*Vsx=r0!@9^HdoW=9n0pWYgetT>^X7Us5d?1 z{-p|bInM9c4Lh)R1>Pr;dlmiZ*;Y zFFoUTt)9>+Pk%WQj1zGGSNfFW!Blk0Lvl)QdYfG}qDC}sVw}7jiBoM&`XO2zfcB;z zX44Z1P`U#cfN=+E;Oddf5AKLJ_8#SZbZ2GX(s+EhyO;OszR+P9v1lF1R+Cw$wX11o zt(uDE6ZO599qPnK_Z>a>g=}JYe*e-~e0YA};u|CPN%(OC1pxelDh5d}H)to(<&s2l zZ=szAJ|ZGKfciyYLpt{u{sp2P1%Ws2`&DVGVL7r<-?W=sK42_xzB-5OzM>lIDf~*qaEQP zF#|gil9c8Cz3B zhhXP;_dlmiP%Gq?0eE6@O4IS^C6D7(T6C+O^wuvr!au9+0NW=DUbX5K;4TFJ$x{Ap zuem*8IJ8~R_AysDYQm*|P8)wvP7D+^Jh5CtBLCa3((VvQs;zbx3j1v*)|U{?2l6Z; zuCoD4f*8T530)95zJI}AlcWc-XjzoZoC_B==aN_0cX4Z9y~AKv7+%Tl>EJwftf)e2yoVreqRlfj3Blq9NB5tSg!tB~z2F)7=f zQc=E45--IY55l*@0q|m@zlpFos7#R?y>Nf#RoR5^OY|(!DnbncM64cO7N-+^Ps{du zh@y~gH5yOkl8(v({EES<*kSnOO3;J6Gg~X#}aOfCrppS@|Ad=Y15X0AOrUO^@vIniC%@z#u{qRI2EaxD^k)AnWD~IF%4T7HS6- zOdVw^YmF$TMIiK>%1&48W(n3xbPON_(hyF}b_^(Z5-L?1$rf{z%(KBMqpTqntX$ED zGbtwU0xOovs$T{B59}K77X>iji!o4C60x#jI|XLYgp?{ntvAyFZn@-en)@SH1X1Hy zsZuhQ9(CRHY33lvX>c43d`IHDaj~OwXc|~Va6DK&9J@q!GY0A?LEbLl6RYm)orLY$d~EY7);RN&cklI^hq#<`?(SZ@ z)o%sk6+>T>$S;#)kA5S0e01JdOJKqHo_$Tou5&A|9n{4|MeU7WUgFVGe|%c5Yf)?b ziyB)eo&l7}5dD(hrf7w0MpfHKm#F#ANm$l?CenyPU7@AFDQ6>aKI`D2TIVy0^@bHZ zQ^Q;F+QD2WK34EK;*sV;aDZvc7M-bC;6yX6*0a2W(Y17y6ezwiEY9&@qW!rS3x5{R zNe4xEM6`00_dC!@B@!GFlUzJ=Rmbi3-5pmS>$tt1+c|dTIZaaX^kKexJ$Hw{Lw|M- z(_W!{o2Ng7HE8uy)LJlA!L%}rn!|O6+77A@`VOWpUB#L)dZj;d=PT~`YP0RGw7i0S zOWEUlbM@MOx~2bpth~SSwt2TQULN;aD{i}ZzwK1!y-IV%-j!;n`{{Q2vC4kJCj;H9 zN>7r=)#YS1+)4(cc%6WXh}tX3lVV|NKOR>?WRVO;!PJmWD8b+Zl65G)s7?J;>&~n$ zcIFAiiR98h$r}BW1d-OOvn@F6tNB`9p3{IYO0cJTw3S2^)gBb06zJf>ak;*JJ|r&;Hl*+e z#63b61fgT-pOHA5WOYg1d#SlP=vVYhIu6BG-7|7}&53CR84rF$Yc^??vQOaGu^!}p<4jh8YZsbtodx}>K+joA?>JuXC!f_&P zw^@q=rV8!i!Mg)qkwM+*F)9{&Dzlnfa~yg5)bZo?&F{R~di?RP%pA!b&&k`zcU{)b zb`DP6y#E*;`OpRp&me0gJo zWPwOd41?$mtCa!WV{mAk<5I6nnyus?4^sDy zgN;Vn&Bj2qfNseRd+}hjS<9W)^$G>>Gmx)eqcvOj_pThei=K!=(8EcM4vK0)H^LaC z)ED!BE`M&4e#c0~YNfq!Tg(>=Ob-#Pu)DY6pVo zetgg&JJ*F3$IOzn8w6RH7){Ez!f=>^EGHSi&dymz5*@@YdH9Y~wwVLQ1(zboe<%0^ zE)2?%+NCVo2h8D4F|hEPz0t(8oGVh@)k-aV)VvCn)TWS@i)%{dQmM2PF9MV&RNyFT zWGTPun+f}1wzN#LIhn&M2A#4ZfN5I!nrzAcq?Oy1MWAivl)RXm0DL%IT*fZ{^%$06 zAm8cx@|`;LCrI9aJPwMt)zhcfL42>BK5=401HM;jnIPx{r%wz^x94&kOn{ zo(tU0i@k512nd#}1}B`yZ@lrkTW`H}_4sipwX$cj^7a$+w@)8lT%5aP{w`+C=vj+@ zJ;~@5eB(~!vAD5$#Aq*;@CKI976%avabDnYLQJo$JNCI?2i3FR)<{k6$}}5!BRe`? z&l{PFQz>~y+R3(yxS>~6{Enx`cEMoK4^|#?jLc}W5g6H#@y2n>NENC@vd$U^sc@_E0ptTibG5u5jm)U~<;`b3b zeqMwzy;45p4eFoGZ%i61C#0UnU_8|Du1IeCPG=u`0Zx}DdNz*lgJKV2;vjv1?IS=KKTCLGNuI>VYB>V%l%y8(s*~=W zH~2GTr_S8xj*Sie_QcXz=t?XSgDjPUX%c;&J+RxK;zml6Iz-$p1<5JAt``1Wf+OL@5|H z65YrE#(^e&P7ogvAC6Y_&ikeWdYomn60u|a)4iHEKIZ*&ZP*(dKSxQqQ}IN=7N@A^ z(7LMTj(cO?@UT1Pjc+|md6JiKR^oO@VUf3tU8XD=xCn?#5=A?F^iZf+7`PiRMiyqidz1q4f}hjUX%c(5Q|^hjB%7?Z1h+n zk!cX5z#%?2J4;@0#c3b#Mm=HINGAHFrF5n-iW?e4_|ehiKcr#_ugxtVX;F8;hz+j* z(Wcyb0;rQ|O0k}>f5Mp<#+pLiI&#NJzuf*GSs5xo$WtnQZSs`2(2_#71fI>HZ-#c7 zk>I z>Lg#}LL^0T<0m3~eR>Fm@wOVTU;PCK~Bj*Dsx#(kSfwSI8&e*M5awgfn znaZS@Y%P29NR{AuIQA#OCg=1uFhetMGJA#?1nN^zPIcOl(Ix8XXiR48Q<>`ir3Mb) zPNtJ7sp{0+p-goTMouZy@pfd2M!7Tnz3!j6e@&I`TDM;GIy<~lc~@EeGSw_D@mQj+cYe(ma?cBed$plA_&Hg*q zaPE?tzT#*;lijng^YQQ`^%=KXOO1`@_RN&L9UZUO+7k>nQp4r!Y?PNGbN80^yq%$G zs~!X6Nc?Ohb}!19(o$c~F-!o_kOqiS_!gP58;-CY!v?y-e<98aKcUak|y* znD4yZ-R19Ul?;{7!T%s&`HXukX0(n!d|WD78oA+7?Oe}s$EOE-*WjTd@-f2#bO(&L% zP52QTsuDkus>YMGxJ3{wl}|b&$^VTt&DkVN{Hb9^I{^gn8@1q+F3pai%%!DkrQRKm^>wxo^^-q>_5Po5Yz zZx~5@0ndcl@1NC_WkZ>7f13;bdvHx8mXj~HTP@-XzfxVNu2(m!RduI2sUA>|&=1GS zc`7X}TB4W1Cc%>-wkDoU%k1`M#Sw4im*%WCEAY$Dfep~{P-^JLN^Jl>pnd8{QQmrH zsXMB=77i>C$W)yoKo6B_ySLC;1b#4w)r+w%S{7xd3Vh<3@Ad>9IuG5*Tv4#J`0`8h zvVaLT-=U&(sXbRHLi7R9DBq-$q5RG*%*px2sZLc8AnrIy0Rz%3!M8hCw3ZeCAaS7` zlV$Redb(S8G#L};M#n>i7Uw~!H@_(AcYzDBOzE79b8Qx9ml*<_$D}>x1?}7J6idDF z=6ta^+bNL|SQ4K21)>O2bt}()JnLSOL2GdJQjeHyuO6E$bqcfHxp~IV;*ymoS+4i~ zc+BvwfRtUS;jG&vdmN-LHOerE2<#*Q4J0!->gf_-2&C`oJS8|qh$4WN5Ffk(6+(e* z$@U;g5ZbOpJa5(JYaCKpXp->6Gh*T_!a?iO*)vd!aTuZwoCi8!x)?`*cAyHFfe3*q z2W4+LfV|88y1EvhawO;o*p88sZRZW2dJ9|&cq^*d+10YgFNL~Cm&6hv;gKsoZpKo+ zJzSRX0GU^IinS&uUE*-uS)5bKy;Tw>Xtb*8KxM_?U~Gz%P@&<)Kgjjqqa9$b_@Q9O~P3W5-DsXQSSX?VFj&Ve1pSK(0; zLx9%hT(G=zSNa+g78j)`!-!r(DRV2W9AY}D3g^uYrw~Y#*^VjdO3o>A&?sRjTk4(FqNxC??qyeaj=>S-=JR^s-!%d(Miy_;!1m>>#5_Qk{%&b2<{ z|Mf$^G;{$P70Hy)!DERbV}~N@!%AZUqA?gEdX#{_kZ_x^u(U{koe>&?KHU(jsIwp- zLuygrs%CHqUveSenP&kkFgk>|ujJ4~+z!STq)PdWhr+gl!yBPd$uRcHj^9*^D7` z7Y;SPjtkowL$oBbk0H~I{=@o1Vxa+XQwGA0U7CY^*k0sX#>f}{hm1U$l1C!_!Y0Nh z%tSoU_=qL0IYR1CvDtQoCyxST5zXUKS|n8_ZIwv*)JwC4=7%XHoqQJ$m|f_Ldi*K| zAZ8=DRYo+#9dt|SDx8a_2Rjc>S^{mX;pv9MP#(9Oo7f*K4C4NDw3q`$AjgP9%%8X< z&eibP6T1I$Fgb+uE+hdRJTHY+kRM685{8_xRMX|<3Sb0x4iR3YyE(9bv6Y1QkVEuE zu0bS$vfn`P56=QUo^H+E<7{BCMC6e|?8Hc+Z?cNQE(jg2-8L*IPwuHxhEmW>gXT{M zrL;>R+w|>x(RDt`9dW^Ow=(1qeN;M>hLE+@V`XBRK%YJWFZ!FX+Un+f&fF}s7VxC z?nLV7ay;6AjSEuD9?{7wnEUmLRb&5AcYeQ3$yWRC?U?i5{wDTk#*g_%Fw@I)I#`t9aYL+W zR5f+8s+%^6BXc1%6`nY8f{4Au?6o3r=G27?QS99mT|k9C&K!Do2hHVDq`?5;w3%zf zq}VY#65Q;z7dL+{AqLtVlR1_Do$IPT5zrVmNuVPIqbR>T|mC2+k4({AF&DA?G?{U^~F>J z`EnZCY5t87|U;c8woTy&{6e(@PryMixVQ3$Th0~Ti+`;`*4>JQmm8zKHu$zqR z2*7kpzxA@WU%elXyKisa=$&9UUA3?<|@$wh+doSMt`a+qpC0;#4?fR?nm)#@wnRtZTVr!J-$zZWl z_fzy)?0REC@GsaNd}RQey&}Fclu}6x(EcYPf*6-G3KbQiQzC=n5T!+By6rW5Xtq zklGh$IMbNAEN;bC-e0O`(v1wjn5GMVg6F#Rxvr;>e%?)F#L)^N-b zXyyH4a8@%?3s(`2LSdm;Thm=tzgg4m(j%qMY$``N!tdZv}FQ$whnPN$8OmqyuT8aC{t z$K}vVJl8VQPJxgCI)Tln&0pZCZS!0ht;ah;=vt7cI!e45GjC#RN4``XWD-FTN7}a< z2lEcK9_;*qF`(y;qxLL=dFngs{ngfaD5O?xeq6Cv!{msYZqlERFE6jPc*&#NnrAo9 zAI`JZ)>lBXjAo+N;cVx+%sQ z6zz2=LjbnNZj6H#wi}l;pe?0{f#2`rG(JbVPvdeaR3JaLoXZ=sG~Un~KO0bfhlG8u zDfH!rG5bI>mJw&KnM=Bi^t%h^+oVXGRSMkA5&BdnzqBG-Q-lNYu%%exm zYw%(2S-v)L^l0MRWfuFNr~2*~TX9yllZ8`3kAUy)-NE2fo{vt7)SN%!-xjZ`v{F~+ z-duwBim+QC7p5tdByJmCAALwC-Vj~DQMa|MMLI3`qV9$X-B5ym)s5+Vs6LX z;a)>)wxsC9Q}nIA4dD66OV;3aZM9UT;})+!UUoZwbN%&2x6^U&(5>wFEuDtrwARD# z!LsgxHXsve>S#`~z{?jvk4XI$C{Ic-#ESQ9(Bq|r7gwu0n^rzK4N;qZlvJVRARKQ6mB;ru6ICie0+aFqWp<}YZ<4;w0MlJbyrWWW0^DXnv}&mu-RYr$HWyKd zq#CCYTC>tv$aZmC>O^h4L(JH8&yTr{-44v%(+#&i-t zoxylim|a*~94n2W6X$~MB$ALjCJ~~TU-1)&{wQW7e#Il?UA-PO*xf_-@}w4)v{8J} zz+@h0q+!Eyvw#kp;~FbsiLosu1wbbt>c!Y@cf?{IZxhyFD(`ASQ9OD`c*uoGVR*3< z@-AjxabF0)1m@e=uy~*VkJtn=@nv9WA-^%yP+({Q>ULs&iFsz@SK-UULMG)>vFVdA zOyN|`UU;#?@;Ew>?45OoISm>S!PBHky>Mb~G>w@Y#~2k&2|JB^O>D7z9P~PV8j|qf zU~~#qujJSjw_0#2>EZnOZ63~0j|=+{&U(f=Bb+hLh(}6^e5404(nH4a9~(UQx*I*Z zgWhHCp{g4_&Zv8M^pn}kyu(#Dl7E9fDw^^?w}*yjer~Fg zziiqn@ zJDgB(nUI*Xm>ITT&-racj+ttPKcYs3VUj4}--EbL(nhyk+^H=>$hAy$w3->49=l{1 ze|vJ;PgaL@NIje@x32YN+vt_9^E+PKcfKBJDz4$%&qvQGWMyUy5a>h3Z#^eOC7M2j zs-pK3h}HH1D7H@F1y|ufttx&|!|^CoK}y`_Hy_pNh0T+A$u`j*4xmY{Ys=o!c+PM- zLl>t%if$v?gUSN*JJnyOvk<)J_|G^f+;oi3pWT#?;DalA#^1|)e}jxhNwLyIJmT@g z^%oZASXd$vQ=qisg$!d&k^!L2R+&LtqNj*Ia*&v{wcK4<7s?zfmjUqaWHLERzUsUz z%5`SFaW8A9En(xK&bbt;fm$^YpOLrq&83UF)S82D!*RyS1SErEW+huR$sMM)b9NQAg4)=T0$4EOGJa5rk!nz2v#MlnW z^A-t4Z>Hx69t5Y3ULzz6gD;lu2Res!32PXzr6Bi^0D>I3K18Lgqc^csmv8=+l*f27 znJp)uO#ZlmE%|mYfESA;Di-mQ)OdtqSPN)6No~nej_pgIlu*Ij;VksXw-Esl>N8@m z3m=Vm>O=xC`H=b`BT$&bKa%~fU-@7fHc(f^^`7_KnY!k*&YoMh{RK^T2L!iDn+ac`M|Pxe4D%qX8NyBPt8xIciQ&O z!2%l$h-^7&IL{4jaPFvnYJeYJi`0;Ej0?e4uX7khmD)HJR_&_+hVIvZ)8=bv#(2{- zI}*6)3#$~nAX_Ms-$VZ$Us{cOlDzUEy33gS$3SSB994qE0Dr7Svc?G_Xd(*<6Tkq) zxe9Zv7A^fQ_KM7EMnK?0pUn9HTh`C?^PD(jN$ zTg$DIp4iXAzcZ4ESHT^&@!?Wtz{z>TnIF0&KU}WX_j;~hD&&HEH0O)o?PYSKXoyf! z2}J=f8L(7utl@ zLs1+CN_wK}nIX7XZzXOW9=PEC45<5J;Ej>rawrWN_F@usMg>HfmrV%RaFu92o3#s% z5gQO ziih8%-gMHZ!a%}yJ%Jx0==eGQAEln$J38LdlGlFdYdZQCi{&Lvno8JAC5}%}&YH7Q zb#zH_$4fj8T^qp&Gihx45kd~|XlJt)S>miGBoKE1&7mDqvFJ^Bd5lB>GyrkC997_P zK;=Y*CW$d+U+u$H*>RW1_rRJD=i(M|uL+RbS1}T0($mfkWR(|}B*FwWNOVj~{N1?r z#IeYe7>$<>BuIr8SVl(Gjf3h3ljJ#BWP6sy@kLAb%8y~F(PO4liIO*zl7k2t~ zu~@MEokfS7uhEQTg8TMDGWoh%GHFau|Kbg5N^XZRrlGDZwwt5FB_b70X?T?KuvZbV zByiGKX&fZDMbc{7A8!no3%D~X!;NvjVyQQE49n`$W^bXNg|cRFe{UW-v+WK6^K9KA ziF5S1m%Bq8{F??7LQ1SnZ8OnTsW?JBt|=9hQ45NeI2!o6*$zdxm~}fq&heewA?Lga zU0(EhnG&J}Baxwh@SVQnWz12Q_B8dCyjbx@hEH(l}axRK^h~%41g zS1bp$gO|^q%+=E>4IhxEy*WyOyms)b`F8eN@4AvPdGts#z4#uNE$TVk%$hYwszhj5 z+NOLBucP^$ucL#u_NwPEpE&XACqJPbEX>Hi6?tKmM)HInS%YOOS|2h+h3n(2Ekx@R z%;&Xe*<}5WXxTx&%tXtA^}K<*0|&qw4+}nAHduZnT8^>&zGzw4^gb3XCx|kAGFmoS z|0~h5Lv6d?jFwYFZI!=v(x0(_Ife{N@KAXv|H|%|)w@ z-*Z<(wr|}1-~*5F_E6)dH$VK=+wW`K@W@+FzWKq%B@dpw>z+p*IlX6QMz*-?zWW}W zzVpHRhwdDDaOmXFoAu`d#2xM$IyLmxq5ELie&|KNy>QE$*zzG*xZlkF4-7T1*Tf2$ zd(l3}iDTTwuY=<^Xe-(N5!T7lLww%EuMcz1+c|54c723pxuOU8b_wq%Il?`xePrnL z&>o(_%;qufVvqaSVp^Z|{?PUq^nX5I^it>XZiq*Nd4&i~QrXH;DV0_(nn*@v@do+i z*5nl=5n!lL+ZaO-3Zwf9j-sK))VOM@3Dr_0$FB12VI;@VUOVp+6sJcvDuC7qWz-O(ftJKx%8g(s5t=ECox#V!Y~7-6Rj*fXP`9ZQ;J4nW-lT3VEZrdQhEK zXVgRLVfBc5t9qMyR6VBNt{zw4rQV_5sotgDt=^;FtKO&9)D!Cc>I3S7>buqVs1KFW>L=A_ z)K96OR-aX8)z7G(Ri9Hor+!}jg8D`EOX~CLm({;e|BLz+^#%1W)vv1mRXwB5ssBy= zn)-G1MfI=Lm(*{l-&D`4-%|ft{kHly>UY$?RllqL9Z%+h`aSh!_511%)E}xpQh%)e zM14j5srvWoKdAqx{*(IO)t{+9R~zc9>ic6W0rv6@iU0qcFp#D+)cl8bRKh!tX|E2y(eM>#BzHJOKqe?7GV`zXJBmvSnM#@MV zF63kxBWvUgg7HQk5CDN_qij@+sxfTTj1h`1){TZSW{ew6W5Q?|ZKGrCFm@Wdj7ek4 z*bRDR#+WtcjCrGLEEtQ%lF>8z#ZZd8*ZZU2(UT?g?xXn0WtQv1L-elZv++o~l zoHXt-?lw*t_ZV+B?ls|j~H(?-ex>%JZ8Mzc-;6d;~mC3 zjdvOEHr`{r*La_?W;|iM-}r#>Kl`|@CE0Nsy2X(?sKbPNy=zx(*?w@9pY&0b#Fltl z615E7qxk`+b*15gk17WP*5HuiS*4)!X0Cwmur zH+v6zFMA(*Kl=dtAo~#eF#8DmDEk=uIQsNQmH2VzuEc+b$Jo^IsBKs2iGW!bq zD*GDyI{OCuCi@oqHv10yF8dz)KKlXtA^Q>gG5ZPoDf=1wIr|0sCHocoHTw7( zw)O9MARz7d;-KN@Y|rPMUSf`XScDNb%(%6@Y}WkFY1l6gYA~s1Rt5GhbZ)E~W`SN5 zKyAF-ZaraIZW>~e$;+JKONWmRiSyg7nUY%CR*Sy^|H`X>`HC~ zD8(yKb`I)jguW_nU3GePTt+~viJNpj%$G< z)M683WGCBJR8Jy@%36y&$kykwiSdU#X$Rjv)b_GjnCjo*q(x|QT`dukT+{w%Wh;ka zgaCGj10iY)-c|k(TAcYhux=nG^~?grUF6D`gos(Gb~_=^8MG}Q!b%w!rSlHMbNHl? zy|}@%6Fs~vP3a6Z3Y(Kib0oyXxgLk3+JmTQF3s8EIdEfgpMzpGu?QGap&>j6*(wW@ zh7krHgyuCgwWzT35*tq{1m=={{5dQtZh1kWRSAR=?f-J3Z0^tRG-BTzM(#5|M^A%= zu?gPhuE*QtPKxT~|EKrHM}uU-+3eRmSK&>Mq&wFGix8;yFMi$sRC>dskyh1bGoLaW>#0IZig;5Fw)%T*bH$l)MO!8vP z>A4D`fjcwNT4>il335swu5G^4yc5x&D0^|zz{?PglVL9fF{YJ!KPv`PH0E9&-|W|q z5n-$t@&XgjdEmc_8}sA9oAY6cz-)S_8d6W zT&D`zimZ~mU5=_FsBT~wN?(T2#Q*CFe%Q`qQ?uXm7iq*lC4OH zo|8`~S14;X^n)yJ`G~zO0O4{l(yT={*fBrK9))S;aXL6X_4HiamaVHqCT<7bR~~3U zB61+Hgu;lMOpFmPs|%0|;73L0y8?+&F&q3^6g4~m!n44oyB0^Z+@V}~Z_Pag$fxIq zelR28(Kd3eMD^0+G^hsA({f%lsj*s81A3EMqKMZhI4DZMC!5uTP(V6KVowfSizU%J zVavu-h>u#lM6$u5)@kvILk@(ZQ$0tHCdG;uAL&;FwXc69u2pVTUN*e1g?ahWa4(M2 z;MIQ*UXlRWf~wDlp&d8({GbMJyB{Ta;|hOfs;5nRuC=rPk&<8(__B@spw%N(6n^%MHK*2*EfM;z%c zx8oqz4VJ{w`)Ei#GjHH7#8c9s&|fx6%RAs5pkE{QQW&pnD*Hm+&X5%-Sc&X+3N-o@ zJI7{s{QGFdIKZz_dTC{mkdip^2 z%o!_pGZh(c8-8tq>Hk`|+{Y)~y8Yxf4Js6lwK{#4x zur{3*plu!#_qwGnyl^do)LFHYw`UTAoZPo!dD7WCfsK?fTWzePj<34@l^LWBVaH1~R0i(WN14S--yofj~A(JBNmCS@S@0do@~XC1G5 zVV5131Pr`Nh{`%X#2|h`cyOzFT60JFi1TDWt}YJ z3Kt-k9Ra9??yQs4vadTJJ)+I`SP7M!t1i}|STao7IU~!Yb5<+}SSXn@Pk5x9gQN~1 z>s21fq*qp4(+}Mla*GOtbH(f^Sty|Wj+bIh`IHYD1ymf@O4q!XcmB*~@bdsy52!L| z3>O1O{VsXG@_l8<^@QjQm_PvzB_ff7RBmU1Ob5w(wHzd>7hGd62HCIi2b`y(W5-!w zRFbqex)nPJeqkmXxt3wYLc5*9Qiu}Ukac%V&QQfPDo#I*zQUr z76`152r>BDN0C{f-XU;uzytpGcc8-+ATS9cPh|i&gkWC^GY1J|fQv24 zG`e=7XMy*R1KudG1N129>oCvLmd2HePA91UImv@bzGBV8qSFEU5r^64u{Z|17Q++t_%t`B5a2pY$A<}Ma#PmbqFJO zcjGED{+1l*1Q*ci#(Q7qqCZGnG%35bQ3RjEFJ>0ljS&`|b8T|!7#0(kdOVn!MvAtY z8}xoCnhXC#c+U(a|}*VOJQcNij|_I7u!8 ziPkNE_hRBxi)b>b)v$hpgF;IiKf>K})R=5fW4>!xome-_EkYHh-B3H2Biqo{m(7^t zy7Bap2wvMh6wVyFzqWef`bWJbhJ3|#J(a)g{sO<9oR<4Jm&iDOm78`q@e2_C3bj0R zQ~L)hUZgXSKmuPrK?2Tt1PVKJ?4U0Xa4){wpdCeLrOhnx$q~1-`H^eVOphG*jqKP+ z8=@H`QZuI + + + ts-blank-space playground + + + + + + + + +
+
+

ts-

+
+
+

blank-space

+ + + + + + + + +
+
+
+
+
+ + + + diff --git a/play/play.css b/play/play.css new file mode 100644 index 0000000..dc11dc8 --- /dev/null +++ b/play/play.css @@ -0,0 +1 @@ +.monaco-editor{font-family:-apple-system,BlinkMacSystemFont,Segoe WPC,Segoe UI,HelveticaNeue-Light,system-ui,Ubuntu,Droid Sans,sans-serif;--monaco-monospace-font: "SF Mono", Monaco, Menlo, Consolas, "Ubuntu Mono", "Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace}.monaco-menu .monaco-action-bar.vertical .action-item .action-menu-item:focus .action-label{stroke-width:1.2px}.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.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{stroke-width:1.2px}.monaco-hover p{margin:0}.monaco-aria-container{position:absolute!important;top:0;height:1px;width:1px;margin:-1px;overflow:hidden;padding:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%)}.monaco-editor,.monaco-diff-editor .synthetic-focus,.monaco-diff-editor [tabindex="0"]:focus,.monaco-diff-editor [tabindex="-1"]: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{outline-width:1px;outline-style:solid;outline-offset:-1px;outline-color:var(--vscode-focusBorder);opacity:1}.monaco-aria-container{position:absolute;left:-999em}::-ms-clear{display:none}.monaco-editor .editor-widget input{color:inherit}.monaco-editor{position:relative;overflow:visible;-webkit-text-size-adjust:100%;color:var(--vscode-editor-foreground);background-color:var(--vscode-editor-background)}.monaco-editor-background{background-color:var(--vscode-editor-background)}.monaco-editor .rangeHighlight{background-color:var(--vscode-editor-rangeHighlightBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-rangeHighlightBorder)}.monaco-editor.hc-black .rangeHighlight,.monaco-editor.hc-light .rangeHighlight{border-style:dotted}.monaco-editor .symbolHighlight{background-color:var(--vscode-editor-symbolHighlightBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-symbolHighlightBorder)}.monaco-editor.hc-black .symbolHighlight,.monaco-editor.hc-light .symbolHighlight{border-style:dotted}.monaco-editor .overflow-guard{position:relative;overflow:hidden}.monaco-editor .view-overlays{position:absolute;top:0}.monaco-editor .view-overlays>div,.monaco-editor .margin-view-overlays>div{position:absolute;width:100%}.monaco-editor .squiggly-error{border-bottom:4px double var(--vscode-editorError-border)}.monaco-editor .squiggly-error:before{display:block;content:"";width:100%;height:100%;background:var(--vscode-editorError-background)}.monaco-editor .squiggly-warning{border-bottom:4px double var(--vscode-editorWarning-border)}.monaco-editor .squiggly-warning:before{display:block;content:"";width:100%;height:100%;background:var(--vscode-editorWarning-background)}.monaco-editor .squiggly-info{border-bottom:4px double var(--vscode-editorInfo-border)}.monaco-editor .squiggly-info:before{display:block;content:"";width:100%;height:100%;background:var(--vscode-editorInfo-background)}.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-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.monaco-scrollable-element>.visible{opacity:1;background:#0000;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{position:absolute;display:none}.monaco-scrollable-element>.shadow.top{display:block;top:0;left:3px;height:3px;width:100%;box-shadow:var(--vscode-scrollbar-shadow) 0 6px 6px -6px inset}.monaco-scrollable-element>.shadow.left{display:block;top:3px;left:0;height:100%;width:3px;box-shadow:var(--vscode-scrollbar-shadow) 6px 0 6px -6px inset}.monaco-scrollable-element>.shadow.top-left-corner{display:block;top:0;left:0;height:3px;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-editor .inputarea{min-width:0;min-height:0;margin:0;padding:0;position:absolute;outline:none!important;resize:none;border:none;overflow:hidden;color:transparent;background-color:transparent;z-index:-10}.monaco-editor .inputarea.ime-input{z-index:10;caret-color:var(--vscode-editorCursor-foreground);color:var(--vscode-editor-foreground)}.monaco-editor .margin-view-overlays .line-numbers{bottom:0;font-variant-numeric:tabular-nums;position:absolute;text-align:right;display:inline-block;vertical-align:middle;box-sizing:border-box;cursor:default}.monaco-editor .relative-current-line-number{text-align:left;display:inline-block;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{position:absolute;top:0;pointer-events:none}.monaco-editor .blockDecorations-block{position:absolute;box-sizing:border-box}.monaco-editor .view-overlays .current-line,.monaco-editor .margin-view-overlays .current-line{display:block;position:absolute;left:0;top:0;box-sizing:border-box;height:100%}.monaco-editor .margin-view-overlays .current-line.current-line-margin.current-line-margin-both{border-right:0}.monaco-editor .lines-content .cdr{position:absolute;height:100%}.monaco-editor .glyph-margin{position:absolute;top:0}.monaco-editor .glyph-margin-widgets .cgmr{position:absolute;display:flex;align-items:center;justify-content:center}.monaco-editor .glyph-margin-widgets .cgmr.codicon-modifier-spin:before{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.monaco-editor .lines-content .core-guide{position:absolute;box-sizing:border-box;height:100%}.mtkcontrol{color:#fff!important;background:#960000!important}.mtkoverflow{background-color:var(--vscode-button-background, var(--vscode-editor-background));color:var(--vscode-button-foreground, var(--vscode-editor-foreground));border-width:1px;border-style:solid;border-color:var(--vscode-contrastBorder);border-radius:2px;padding:4px;cursor:pointer}.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:initial;-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{top:0;bottom:0;position:absolute}.monaco-editor .mtkw{color:var(--vscode-editorWhitespace-foreground)!important}.monaco-editor .mtkz{display:inline-block;color:var(--vscode-editorWhitespace-foreground)!important}.monaco-editor .lines-decorations{position:absolute;top:0;background:#fff}.monaco-editor .margin-view-overlays .cldr{position:absolute;height:100%}.monaco-editor .margin-view-overlays .cmdr{position:absolute;left:0;width:100%;height:100%}.monaco-editor .minimap.slider-mouseover .minimap-slider{opacity:0;transition:opacity .1s linear}.monaco-editor .minimap.slider-mouseover:hover .minimap-slider,.monaco-editor .minimap.slider-mouseover .minimap-slider.active{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{position:absolute;left:-6px;width:6px}.monaco-editor.no-minimap-shadow .minimap-shadow-visible{position:absolute;left:-1px;width:1px}.minimap.autohide{opacity:0;transition:opacity .5s}.minimap.autohide:hover{opacity:1}.monaco-editor .minimap{z-index:5}.monaco-editor .overlayWidgets{position:absolute;top:0;left:0}.monaco-editor .view-ruler{position:absolute;top:0;box-shadow:1px 0 0 0 var(--vscode-editorRuler-foreground) inset}.monaco-editor .scroll-decoration{position:absolute;top:0;left:0;height:6px;box-shadow:var(--vscode-scrollbar-shadow) 0 6px 6px -6px inset}.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{position:absolute;overflow:hidden;box-sizing:border-box}.monaco-editor .cursors-layer.cursor-smooth-caret-animation>.cursor{transition:all 80ms}.monaco-editor .cursors-layer.cursor-block-outline-style>.cursor{background:transparent!important;border-style:solid;border-width:1px}.monaco-editor .cursors-layer.cursor-underline-style>.cursor{border-bottom-width:2px;border-bottom-style:solid;background:transparent!important}.monaco-editor .cursors-layer.cursor-underline-thin-style>.cursor{border-bottom-width:1px;border-bottom-style:solid;background:transparent!important}@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{position:absolute;color:var(--vscode-editorWhitespace-foreground)!important}.monaco-workbench .workbench-hover{position:relative;font-size:13px;line-height:19px;z-index:40;overflow:hidden;max-width:700px;background:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);border-radius:3px;color:var(--vscode-editorHoverWidget-foreground);box-shadow:0 2px 8px var(--vscode-widget-shadow)}.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{position:absolute;z-index:41;pointer-events:none}.monaco-workbench .workbench-hover-pointer:after{content:"";position:absolute;width:5px;height:5px;background-color:var(--vscode-editorHoverWidget-background);border-right:1px solid var(--vscode-editorHoverWidget-border);border-bottom:1px solid var(--vscode-editorHoverWidget-border)}.monaco-workbench .locked .workbench-hover-pointer:after{width:4px;height:4px;border-right-width:2px;border-bottom-width:2px}.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-offset:-1px;text-decoration:underline;outline-color:var(--vscode-focusBorder)}.monaco-workbench .workbench-hover a:hover,.monaco-workbench .workbench-hover a:active{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-right:0;margin-left:16px}.monaco-hover{cursor:default;position:absolute;overflow:hidden;user-select:text;-webkit-user-select:text;box-sizing:border-box;animation:fadein .1s linear;line-height:1.5em;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){max-width:var(--vscode-hover-maxWidth, 500px);word-wrap:break-word}.monaco-hover .markdown-hover>.hover-contents:not(.code-hover-contents) hr{min-width:100%}.monaco-hover p,.monaco-hover .code,.monaco-hover ul,.monaco-hover h1,.monaco-hover h2,.monaco-hover h3,.monaco-hover h4,.monaco-hover h5,.monaco-hover h6{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{box-sizing:border-box;border-left:0px;border-right:0px;margin:4px -8px -4px;height:1px}.monaco-hover p:first-child,.monaco-hover .code:first-child,.monaco-hover ul:first-child{margin-top:0}.monaco-hover p:last-child,.monaco-hover .code:last-child,.monaco-hover ul:last-child{margin-bottom:0}.monaco-hover ul,.monaco-hover ol{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{margin-right:16px;cursor:pointer}.monaco-hover .hover-row.status-bar .actions .action-container .action .icon{padding-right:4px}.monaco-hover .markdown-hover .hover-contents .codicon{color:inherit;font-size:inherit;vertical-align:middle}.monaco-hover .hover-contents a.code-link:hover,.monaco-hover .hover-contents a.code-link{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{text-decoration:underline;border-bottom:1px solid transparent;text-underline-position:under;color:var(--vscode-textLink-foreground)}.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{margin-bottom:4px;display:inline-block}.monaco-hover-content .action-container a{-webkit-user-select:none;user-select:none}.monaco-hover-content .action-container.disabled{pointer-events:none;opacity:.4;cursor:default}.monaco-editor .rendered-markdown kbd{background-color:var(--vscode-keybindingLabel-background);color:var(--vscode-keybindingLabel-foreground);border-style:solid;border-width:1px;border-radius:3px;border-color:var(--vscode-keybindingLabel-border);border-bottom-color:var(--vscode-keybindingLabel-bottomBorder);box-shadow:inset 0 -1px 0 var(--vscode-widget-shadow);vertical-align:middle;padding:1px 3px}.rendered-markdown li:has(input[type=checkbox]){list-style-type:none}.context-view{position:absolute}.context-view.fixed{all:initial;font-family:inherit;font-size:13px;position:fixed;color:inherit}.monaco-list{position:relative;height:100%;width:100%;white-space:nowrap}.monaco-list.mouse-support{user-select:none;-webkit-user-select:none}.monaco-list>.monaco-scrollable-element{height:100%}.monaco-list-rows{position:relative;width:100%;height:100%}.monaco-list.horizontal-scrolling .monaco-list-rows{width:auto;min-width:100%}.monaco-list-row{position:absolute;box-sizing:border-box;overflow:hidden;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-single,.monaco-list.selection-multiple{outline:0!important}.monaco-drag-image{display:inline-block;padding:1px 7px;border-radius:10px;font-size:12px;position:absolute;z-index:1000}.monaco-list-type-filter-message{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;padding:40px 1em 1em;text-align:center;white-space:normal;opacity:.7;pointer-events:none}.monaco-list-type-filter-message:empty{display:none}.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{display:none;box-sizing:border-box}.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{line-height:15px;font-family:var(--monaco-monospace-font)}.monaco-select-box-dropdown-container.visible{display:flex;flex-direction:column;text-align:left;width:1px;overflow:hidden;border-bottom-left-radius:3px;border-bottom-right-radius:3px}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container{flex:0 0 auto;align-self:flex-start;padding-top:var(--dropdown-padding-top);padding-bottom:var(--dropdown-padding-bottom);padding-left:1px;padding-right:1px;width:100%;overflow:hidden;box-sizing:border-box}.monaco-select-box-dropdown-container>.select-box-details-pane{padding:5px}.hc-black .monaco-select-box-dropdown-container>.select-box-dropdown-list-container{padding-top:var(--dropdown-padding-top);padding-bottom:var(--dropdown-padding-bottom)}.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{text-overflow:ellipsis;overflow:hidden;padding-left:3.5px;white-space:nowrap;float:left}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.option-detail{text-overflow:ellipsis;overflow:hidden;padding-left:3.5px;white-space:nowrap;float:left;opacity:.7}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.option-decorator-right{text-overflow:ellipsis;overflow:hidden;padding-right:10px;white-space:nowrap;float:right}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.visually-hidden{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}.monaco-select-box-dropdown-container>.select-box-dropdown-container-width-control{flex:1 1 auto;align-self:flex-start;opacity:0}.monaco-select-box-dropdown-container>.select-box-dropdown-container-width-control>.width-control-div{overflow:hidden;max-height:0px}.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{width:100%;cursor:pointer;border-radius:2px}.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-width:100px;min-height:18px;padding:2px 23px 2px 8px}.mac .monaco-action-bar .action-item .monaco-select-box{font-size:11px;border-radius:5px}.monaco-action-bar{white-space:nowrap;height:100%}.monaco-action-bar .actions-container{display:flex;margin:0 auto;padding:0;height:100%;width:100%;align-items:center}.monaco-action-bar.vertical .actions-container{display:inline-block}.monaco-action-bar .action-item{display:block;align-items:center;justify-content:center;cursor:pointer;position:relative}.monaco-action-bar .action-item.disabled{cursor:default}.monaco-action-bar .action-item .icon,.monaco-action-bar .action-item .codicon{display:block}.monaco-action-bar .action-item .codicon{display:flex;align-items:center;width:16px;height:16px}.monaco-action-bar .action-label{display:flex;font-size:11px;padding:3px;border-radius:5px}.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{display:block;border-bottom:1px solid #bbb;padding-top:1px;margin-left:.8em;margin-right:.8em}.monaco-action-bar .action-item .action-label.separator{width:1px;height:16px;margin:5px 4px!important;cursor:default;min-width:1px;padding:0;background-color:#bbb}.secondary-actions .monaco-action-bar .action-label{margin-left:6px}.monaco-action-bar .action-item.select-container{overflow:hidden;flex:1;max-width:170px;min-width:60px;display:flex;align-items:center;justify-content:center;margin-right:10px}.monaco-action-bar .action-item.action-dropdown-item{display:flex}.monaco-action-bar .action-item.action-dropdown-item>.action-dropdown-item-separator{display:flex;align-items:center;cursor:default}.monaco-action-bar .action-item.action-dropdown-item>.action-dropdown-item-separator>div{width:1px}.monaco-dropdown{height:100%;padding:0}.monaco-dropdown>.dropdown-label{cursor:pointer;height:100%;display:flex;align-items:center;justify-content:center}.monaco-dropdown>.dropdown-label>.action-label.disabled{cursor:default}.monaco-dropdown-with-primary{display:flex!important;flex-direction:row;border-radius:5px}.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;padding-left:0;padding-right:0;line-height:16px;margin-left:-3px}.monaco-dropdown-with-primary>.dropdown-action-container>.monaco-dropdown>.dropdown-label>.action-label{display:block;background-size:16px;background-position:center center;background-repeat:no-repeat}.monaco-action-bar .action-item.menu-entry .action-label.icon{width:16px;height:16px;background-repeat:no-repeat;background-position:50%;background-size:16px}.monaco-dropdown-with-default{display:flex!important;flex-direction:row;border-radius:5px}.monaco-dropdown-with-default>.action-container>.action-label{margin-right:0}.monaco-dropdown-with-default>.action-container.menu-entry>.action-label.icon{width:16px;height:16px;background-repeat:no-repeat;background-position:50%;background-size: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;padding-left:0;padding-right:0;line-height:16px;margin-left:-3px}.monaco-dropdown-with-default>.dropdown-action-container>.monaco-dropdown>.dropdown-label>.action-label{display:block;background-size:16px;background-position:center center;background-repeat:no-repeat}.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:solid 1px rgba(204,204,204,.4);border-bottom-color:#bbb6;box-shadow:inset 0 -1px #bbb6;color:#555}.hc-black .monaco-keybinding>.monaco-keybinding-key{background-color:transparent;border:solid 1px rgb(111,195,223);box-shadow:none;color:#fff}.hc-light .monaco-keybinding>.monaco-keybinding-key{background-color:transparent;border:solid 1px #0F4A85;box-shadow:none;color:#292929}.vs-dark .monaco-keybinding>.monaco-keybinding-key{background-color:#8080802b;border:solid 1px rgba(51,51,51,.6);border-bottom-color:#4449;box-shadow:inset 0 -1px #4449;color:#ccc}.monaco-custom-toggle{margin-left:2px;float:left;cursor:pointer;overflow:hidden;width:20px;height:20px;border-radius:3px;border:1px solid transparent;padding:1px;box-sizing:border-box;user-select:none;-webkit-user-select:none}.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-light .monaco-custom-toggle,.hc-black .monaco-custom-toggle:hover,.hc-light .monaco-custom-toggle:hover{background:none}.monaco-custom-toggle.monaco-checkbox{height:18px;width:18px;border:1px solid transparent;border-radius:3px;margin-right:9px;margin-left:0;padding:0;opacity:1;background-size:16px!important}.monaco-action-bar .checkbox-action-item{display:flex;align-items:center}.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}.quick-input-widget{position:absolute;width:600px;z-index:2550;left:50%;margin-left:-300px;-webkit-app-region:no-drag;border-radius:6px}.quick-input-titlebar{display:flex;align-items:center;border-radius:inherit}.quick-input-left-action-bar{display:flex;margin-left:4px;flex:1}.quick-input-title{padding:3px 0;text-align:center;text-overflow:ellipsis;overflow:hidden}.quick-input-right-action-bar{display:flex;margin-right:4px;flex:1}.quick-input-right-action-bar>.actions-container{justify-content:flex-end}.quick-input-titlebar .monaco-action-bar .action-label.codicon{background-position:center;background-repeat:no-repeat;padding:2px}.quick-input-description{margin:6px 6px 6px 11px}.quick-input-header .quick-input-description{margin:4px 2px;flex:1}.quick-input-header{display:flex;padding:8px 6px 2px}.quick-input-widget.hidden-input .quick-input-header{padding:0;margin-bottom: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{flex-grow:1;display:flex;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{position:absolute;left:-10000px}.quick-input-count{align-self:center;position:absolute;right:4px;display:flex;align-items:center}.quick-input-count .monaco-count-badge{vertical-align:middle;padding:2px 4px;border-radius:2px;min-height:auto;line-height:normal}.quick-input-action{margin-left:6px}.quick-input-action .monaco-text-button{font-size:11px;padding:0 6px;display:flex;height:25px;align-items:center}.quick-input-message{margin-top:-1px;padding:5px;overflow-wrap:break-word}.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{overflow:hidden;max-height:440px;padding-bottom:5px}.quick-input-list .monaco-scrollable-element{padding:0 5px}.quick-input-list .quick-input-list-entry{box-sizing:border-box;overflow:hidden;display:flex;height:100%;padding:0 6px}.quick-input-list .quick-input-list-entry.quick-input-list-separator-border{border-top-width:1px;border-top-style:solid}.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{overflow:hidden;display:flex;height:100%;flex:1}.quick-input-list .quick-input-list-checkbox{align-self:center;margin:0}.quick-input-list .quick-input-list-icon{background-size:16px;background-position:left center;background-repeat:no-repeat;padding-right:6px;width:16px;height:22px;display:flex;align-items:center;justify-content:center}.quick-input-list .quick-input-list-rows{overflow:hidden;text-overflow:ellipsis;display:flex;flex-direction:column;height:100%;flex:1;margin-left:5px}.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{display:flex;align-items:center}.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}.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{opacity:.7;line-height:normal;text-overflow:ellipsis;overflow:hidden}.quick-input-list .monaco-list .monaco-list-row .monaco-highlighted-label .highlight{font-weight:700;background-color:unset;color:var(--vscode-list-highlightForeground)!important}.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;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:0 2px 2px}.quick-input-list .quick-input-list-entry-action-bar{margin-top:1px}.quick-input-list .quick-input-list-entry-action-bar{margin-right:4px}.quick-input-list .quick-input-list-entry .quick-input-list-entry-action-bar .action-label.always-visible,.quick-input-list .quick-input-list-entry:hover .quick-input-list-entry-action-bar .action-label,.quick-input-list .quick-input-list-entry.focus-inside .quick-input-list-entry-action-bar .action-label,.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{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{padding:4px 6px;font-size:12px}.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-text-button{box-sizing:border-box;display:flex;width:100%;padding:4px;border-radius:2px;text-align:center;cursor:pointer;justify-content:center;align-items:center;border:1px solid var(--vscode-button-border, transparent);line-height:18px}.monaco-text-button:focus{outline-offset:2px!important}.monaco-text-button:hover{text-decoration:none!important}.monaco-button.disabled:focus,.monaco-button.disabled{opacity:.4!important;cursor:default}.monaco-text-button .codicon{margin:0 .2em;color:inherit!important}.monaco-text-button.monaco-text-button-with-short-label{flex-direction:row;flex-wrap:wrap;padding:0 4px;overflow:hidden;height:28px}.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;width:0;overflow:hidden}.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{display:flex;justify-content:center;align-items:center;font-weight:400;font-style:inherit;padding:4px 0}.monaco-button-dropdown{display:flex;cursor:pointer}.monaco-button-dropdown.disabled{cursor:default}.monaco-button-dropdown>.monaco-button:focus{outline-offset:-1px!important}.monaco-button-dropdown.disabled>.monaco-button.disabled,.monaco-button-dropdown.disabled>.monaco-button.disabled:focus,.monaco-button-dropdown.disabled>.monaco-button-dropdown-separator{opacity:.4!important}.monaco-button-dropdown>.monaco-button.monaco-text-button{border-right-width:0!important}.monaco-button-dropdown .monaco-button-dropdown-separator{padding:4px 0;cursor:default}.monaco-button-dropdown .monaco-button-dropdown-separator>div{height:100%;width:1px}.monaco-button-dropdown>.monaco-button.monaco-dropdown-button{border:1px solid var(--vscode-button-border, transparent);border-left-width:0!important;border-radius:0 2px 2px 0;display:flex;align-items:center}.monaco-button-dropdown>.monaco-button.monaco-text-button{border-radius:2px 0 0 2px}.monaco-description-button{display:flex;flex-direction:column;align-items:center;margin:4px 5px}.monaco-description-button .monaco-button-description{font-style:italic;font-size:11px;padding:4px 20px}.monaco-description-button .monaco-button-label,.monaco-description-button .monaco-button-description{display:flex;justify-content:center;align-items:center}.monaco-description-button .monaco-button-label>.codicon,.monaco-description-button .monaco-button-description>.codicon{margin:0 .2em;color:inherit!important}.monaco-button.default-colors,.monaco-button-dropdown.default-colors>.monaco-button{color:var(--vscode-button-foreground);background-color:var(--vscode-button-background)}.monaco-button.default-colors:hover,.monaco-button-dropdown.default-colors>.monaco-button:hover{background-color:var(--vscode-button-hoverBackground)}.monaco-button.default-colors.secondary,.monaco-button-dropdown.default-colors>.monaco-button.secondary{color:var(--vscode-button-secondaryForeground);background-color:var(--vscode-button-secondaryBackground)}.monaco-button.default-colors.secondary:hover,.monaco-button-dropdown.default-colors>.monaco-button.secondary:hover{background-color:var(--vscode-button-secondaryHoverBackground)}.monaco-button-dropdown.default-colors .monaco-button-dropdown-separator{background-color:var(--vscode-button-background);border-top:1px solid var(--vscode-button-border);border-bottom: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)}.monaco-count-badge{padding:3px 6px;border-radius:11px;font-size:11px;min-width:18px;min-height:18px;line-height:11px;font-weight:400;text-align:center;display:inline-block;box-sizing:border-box}.monaco-count-badge.long{padding:2px 3px;border-radius:2px;min-height:auto;line-height:normal}.monaco-progress-container{width:100%;height:2px;overflow:hidden}.monaco-progress-container .progress-bit{width:2%;height:2px;position:absolute;left:0;display:none}.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-name:progress;animation-duration:4s;animation-iteration-count:infinite;transform:translateZ(0);animation-timing-function:linear}.monaco-progress-container.infinite.infinite-long-running .progress-bit{animation-timing-function:steps(100)}@keyframes progress{0%{transform:translate(0) scaleX(1)}50%{transform:translate(2500%) scaleX(3)}to{transform:translate(4900%) scaleX(1)}}.monaco-inputbox{position:relative;display:block;padding:0;box-sizing:border-box;border-radius:2px;font-size:inherit}.monaco-inputbox>.ibwrapper>.input,.monaco-inputbox>.ibwrapper>.mirror{padding:4px 6px}.monaco-inputbox>.ibwrapper{position:relative;width:100%;height:100%}.monaco-inputbox>.ibwrapper>.input{display:inline-block;box-sizing:border-box;width:100%;height:100%;line-height:inherit;border:none;font-family:inherit;font-size:inherit;resize:none;color:inherit}.monaco-inputbox>.ibwrapper>input{text-overflow:ellipsis}.monaco-inputbox>.ibwrapper>textarea.input{display:block;scrollbar-width:none;outline:none}.monaco-inputbox>.ibwrapper>textarea.input::-webkit-scrollbar{display:none}.monaco-inputbox>.ibwrapper>textarea.input.empty{white-space:nowrap}.monaco-inputbox>.ibwrapper>.mirror{position:absolute;display:inline-block;width:100%;top:0;left:0;box-sizing:border-box;white-space:pre-wrap;visibility:hidden;word-wrap:break-word}.monaco-inputbox-container{text-align:right}.monaco-inputbox-container .monaco-inputbox-message{display:inline-block;overflow:hidden;text-align:left;width:100%;box-sizing:border-box;padding:.4em;font-size:12px;line-height:17px;margin-top:-1px;word-wrap:break-word}.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;width:16px;height:16px}.monaco-findInput{position:relative}.monaco-findInput .monaco-inputbox{font-size:13px;width:100%}.monaco-findInput>.controls{position:absolute;top:3px;right:2px}.vs .monaco-findInput.disabled{background-color:#e1e1e1}.vs-dark .monaco-findInput.disabled{background-color:#333}.monaco-findInput.highlight-0 .controls,.hc-light .monaco-findInput.highlight-0 .controls{animation:monaco-findInput-highlight-0 .1s linear 0s}.monaco-findInput.highlight-1 .controls,.hc-light .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:transparent}}@keyframes monaco-findInput-highlight-1{0%{background:#fdff00cc}99%{background:transparent}}@keyframes monaco-findInput-highlight-dark-0{0%{background:#ffffff70}to{background:transparent}}@keyframes monaco-findInput-highlight-dark-1{0%{background:#ffffff70}99%{background:transparent}}:root{--vscode-sash-size: 4px;--vscode-sash-hover-size: 4px}.monaco-sash{position:absolute;z-index:35;touch-action:none}.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;top:0;width:var(--vscode-sash-size);height:100%}.monaco-sash.horizontal{cursor:ns-resize;left:0;width:100%;height:var(--vscode-sash-size)}.monaco-sash:not(.disabled)>.orthogonal-drag-handle{content:" ";height:calc(var(--vscode-sash-size) * 2);width:calc(var(--vscode-sash-size) * 2);z-index:100;display:block;cursor:all-scroll;position:absolute}.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{left:calc(var(--vscode-sash-size) * -.5);bottom:calc(var(--vscode-sash-size) * -1)}.monaco-sash.horizontal>.orthogonal-drag-handle.start{top:calc(var(--vscode-sash-size) * -.5);left:calc(var(--vscode-sash-size) * -1)}.monaco-sash.horizontal>.orthogonal-drag-handle.end{top:calc(var(--vscode-sash-size) * -.5);right:calc(var(--vscode-sash-size) * -1)}.monaco-sash:before{content:"";pointer-events:none;position:absolute;width:100%;height:100%;background:transparent}.monaco-workbench:not(.reduce-motion) .monaco-sash:before{transition:background-color .1s ease-out}.monaco-sash.hover:before,.monaco-sash.active:before{background:var(--vscode-sash-hoverBorder)}.monaco-sash.vertical:before{width:var(--vscode-sash-hover-size);left:calc(50% - (var(--vscode-sash-hover-size) / 2))}.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:#0ff}.monaco-sash.debug.disabled{background:#0ff3}.monaco-sash.debug:not(.disabled)>.orthogonal-drag-handle{background:red}.monaco-split-view2{position:relative;width:100%;height:100%}.monaco-split-view2>.sash-container{position:absolute;width:100%;height:100%;pointer-events:none}.monaco-split-view2>.sash-container>.monaco-sash{pointer-events:initial}.monaco-split-view2>.monaco-scrollable-element{width:100%;height:100%}.monaco-split-view2>.monaco-scrollable-element>.split-view-container{width:100%;height:100%;white-space:nowrap;position:relative}.monaco-split-view2>.monaco-scrollable-element>.split-view-container>.split-view-view{white-space:initial;position:absolute}.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{content:" ";position:absolute;top:0;left:0;z-index:5;pointer-events:none;background-color:var(--separator-border)}.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;position:relative;height:100%;width:100%;white-space:nowrap;overflow:hidden}.monaco-table>.monaco-split-view2{border-bottom:1px solid transparent}.monaco-table>.monaco-list{flex:1}.monaco-table-tr{display:flex;height:100%}.monaco-table-th{width:100%;height:100%;font-weight:700;overflow:hidden;text-overflow:ellipsis}.monaco-table-th,.monaco-table-td{box-sizing:border-box;flex-shrink:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.monaco-table>.monaco-split-view2 .monaco-sash.vertical:before{content:"";position:absolute;left:calc(var(--vscode-sash-size) / 2);width:0;border-left:1px solid transparent}.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-tl-row{display:flex;height:100%;align-items:center;position:relative}.monaco-tl-row.disabled{cursor:default}.monaco-tl-indent{height:100%;position:absolute;top:0;left:16px;pointer-events:none}.hide-arrows .monaco-tl-indent{left:12px}.monaco-tl-indent>.indent-guide{display:inline-block;box-sizing:border-box;height:100%;border-left:1px solid transparent}.monaco-workbench:not(.reduce-motion) .monaco-tl-indent>.indent-guide{transition:border-color .1s linear}.monaco-tl-twistie,.monaco-tl-contents{height:100%}.monaco-tl-twistie{font-size:10px;text-align:right;padding-right:6px;flex-shrink:0;width:16px;display:flex!important;align-items:center;justify-content:center;transform:translate(3px)}.monaco-tl-contents{flex: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{position:absolute;top:0;display:flex;padding:3px;max-width:200px;z-index:100;margin:0 6px;border:1px solid var(--vscode-widget-border);border-bottom-left-radius:4px;border-bottom-right-radius:4px}.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{display:flex!important;align-items:center;justify-content:center;cursor:grab;margin-right:2px}.monaco-tree-type-filter-grab.grabbing{cursor:grabbing}.monaco-tree-type-filter-input{flex: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{position:absolute;top:0;left:0;width:100%;height:0;z-index:13;background-color:var(--vscode-sideBar-background)}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-row.monaco-list-row{position:absolute;width:100%;opacity:1!important;overflow:hidden;background-color:var(--vscode-sideBar-background)}.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{position:absolute;bottom:-3px;left:0;height:0px;width:100%}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container[tabindex="0"]:focus{outline:none}.monaco-icon-label{display:flex;overflow:hidden;text-overflow:ellipsis}.monaco-icon-label:before{background-size:16px;background-position:left center;background-repeat:no-repeat;padding-right:6px;width:16px;height:22px;line-height:inherit!important;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:top;flex-shrink:0}.monaco-icon-label-iconpath{width:16px;height:16px;padding-left:2px;margin-top:2px;display:flex}.monaco-icon-label-container.disabled{color:var(--vscode-disabledForeground)}.monaco-icon-label>.monaco-icon-label-container{min-width:0;overflow:hidden;text-overflow:ellipsis;flex:1}.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{opacity:.7;margin-left:.5em;font-size:.9em;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-name-container>.label-name,.monaco-icon-label.italic>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{font-style:italic}.monaco-icon-label.deprecated{text-decoration:line-through;opacity:.66}.monaco-icon-label.italic:after{font-style:italic}.monaco-icon-label.strikethrough>.monaco-icon-label-container>.monaco-icon-name-container>.label-name,.monaco-icon-label.strikethrough>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{text-decoration:line-through}.monaco-icon-label:after{opacity:.75;font-size:90%;font-weight:600;margin:auto 16px 0 5px;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-keybinding{display:flex;align-items:center;line-height:10px}.monaco-keybinding>.monaco-keybinding-key{display:inline-block;border-style:solid;border-width:1px;border-radius:3px;vertical-align:middle;font-size:11px;padding:3px 5px;margin:0 2px}.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-editor .diff-hidden-lines-widget{width:100%}.monaco-editor .diff-hidden-lines{height:0px;transform:translateY(-10px);font-size:13px;line-height:14px}.monaco-editor .diff-hidden-lines:not(.dragging) .top:hover,.monaco-editor .diff-hidden-lines:not(.dragging) .bottom:hover,.monaco-editor .diff-hidden-lines .top.dragging,.monaco-editor .diff-hidden-lines .bottom.dragging{background-color:var(--vscode-focusBorder)}.monaco-editor .diff-hidden-lines .top,.monaco-editor .diff-hidden-lines .bottom{transition:background-color .1s ease-out;height:4px;background-color:transparent;background-clip:padding-box;border-bottom:2px solid transparent;border-top:4px solid transparent}.monaco-editor.draggingUnchangedRegion.canMoveTop:not(.canMoveBottom) *,.monaco-editor .diff-hidden-lines .top.canMoveTop:not(.canMoveBottom),.monaco-editor .diff-hidden-lines .bottom.canMoveTop:not(.canMoveBottom){cursor:n-resize!important}.monaco-editor.draggingUnchangedRegion:not(.canMoveTop).canMoveBottom *,.monaco-editor .diff-hidden-lines .top:not(.canMoveTop).canMoveBottom,.monaco-editor .diff-hidden-lines .bottom:not(.canMoveTop).canMoveBottom{cursor:s-resize!important}.monaco-editor.draggingUnchangedRegion.canMoveTop.canMoveBottom *,.monaco-editor .diff-hidden-lines .top.canMoveTop.canMoveBottom,.monaco-editor .diff-hidden-lines .bottom.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{z-index:1;background:var(--vscode-editor-background);display:flex;justify-content:center;align-items:center}.monaco-editor .diff-hidden-lines .center{background:var(--vscode-diffEditor-unchangedRegionBackground);color:var(--vscode-diffEditor-unchangedRegionForeground);overflow:hidden;display:block;text-overflow:ellipsis;white-space:nowrap;height:24px;box-shadow:inset 0 -5px 5px -7px var(--vscode-diffEditor-unchangedRegionShadow),inset 0 5px 5px -7px var(--vscode-diffEditor-unchangedRegionShadow)}.monaco-editor .diff-hidden-lines .center span.codicon{vertical-align:middle}.monaco-editor .diff-hidden-lines .center a:hover .codicon{cursor:pointer;color:var(--vscode-editorLink-activeForeground)!important}.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 .movedOriginal,.monaco-editor .movedModified{border:2px solid var(--vscode-diffEditor-move-border)}.monaco-editor .movedOriginal.currentMove,.monaco-editor .movedModified.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{position:absolute;pointer-events:none}.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{margin-left:-1px;border-left:solid var(--vscode-diffEditor-removedTextBackground) 3px}.monaco-editor .char-insert.diff-range-empty{border-left:solid var(--vscode-diffEditor-insertedTextBackground) 3px}.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{width:12px;height:12px;font-size: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-editor .insert-sign,.monaco-diff-editor .insert-sign,.monaco-editor .delete-sign,.monaco-diff-editor .delete-sign{font-size:11px!important;opacity:.7!important;display:flex!important;align-items:center}.monaco-editor.hc-black .insert-sign,.monaco-diff-editor.hc-black .insert-sign,.monaco-editor.hc-black .delete-sign,.monaco-diff-editor.hc-black .delete-sign,.monaco-editor.hc-light .insert-sign,.monaco-diff-editor.hc-light .insert-sign,.monaco-editor.hc-light .delete-sign,.monaco-diff-editor.hc-light .delete-sign{opacity:1}.monaco-editor .inline-deleted-margin-view-zone,.monaco-editor .inline-added-margin-view-zone{text-align:right}.monaco-editor .arrow-revert-change{z-index:10;position:absolute}.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-editor .char-insert,.monaco-diff-editor .char-insert{background-color:var(--vscode-diffEditor-insertedTextBackground)}.monaco-editor .line-insert,.monaco-diff-editor .line-insert{background-color:var(--vscode-diffEditor-insertedLineBackground, var(--vscode-diffEditor-insertedTextBackground))}.monaco-editor .line-insert,.monaco-editor .char-insert{box-sizing:border-box;border:1px solid var(--vscode-diffEditor-insertedTextBorder)}.monaco-editor.hc-black .line-insert,.monaco-editor.hc-light .line-insert,.monaco-editor.hc-black .char-insert,.monaco-editor.hc-light .char-insert{border-style:dashed}.monaco-editor .line-delete,.monaco-editor .char-delete{box-sizing:border-box;border:1px solid var(--vscode-diffEditor-removedTextBorder)}.monaco-editor.hc-black .line-delete,.monaco-editor.hc-light .line-delete,.monaco-editor.hc-black .char-delete,.monaco-editor.hc-light .char-delete{border-style:dashed}.monaco-editor .inline-added-margin-view-zone,.monaco-editor .gutter-insert,.monaco-diff-editor .gutter-insert{background-color:var(--vscode-diffEditorGutter-insertedLineBackground, var(--vscode-diffEditor-insertedLineBackground), var(--vscode-diffEditor-insertedTextBackground))}.monaco-editor .char-delete,.monaco-diff-editor .char-delete{background-color:var(--vscode-diffEditor-removedTextBackground)}.monaco-editor .line-delete,.monaco-diff-editor .line-delete{background-color:var(--vscode-diffEditor-removedLineBackground, var(--vscode-diffEditor-removedTextBackground))}.monaco-editor .inline-deleted-margin-view-zone,.monaco-editor .gutter-delete,.monaco-diff-editor .gutter-delete{background-color:var(--vscode-diffEditorGutter-removedLineBackground, var(--vscode-diffEditor-removedLineBackground), var(--vscode-diffEditor-removedTextBackground))}.monaco-diff-editor.side-by-side .editor.modified{box-shadow:-6px 0 5px -5px var(--vscode-scrollbar-shadow);border-left:1px solid var(--vscode-diffEditor-border)}.monaco-diff-editor.side-by-side .editor.original{box-shadow:6px 0 5px -5px var(--vscode-scrollbar-shadow);border-right:1px solid var(--vscode-diffEditor-border)}.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{position:relative;overflow:hidden;flex-shrink:0;flex-grow:0;>div{position:absolute}.gutterItem{opacity:0;transition:opacity .7s;&.showAlways{opacity:1;transition:none}&.noTransition{transition:none}}&:hover .gutterItem{opacity:1;transition:opacity .1s ease-in-out}.gutterItem{.background{position:absolute;height:100%;left:50%;width:1px;border-left:2px var(--vscode-menu-border) solid}.buttons{position:absolute;width:100%;display:flex;justify-content:center;align-items:center;.monaco-toolbar{height:fit-content;.monaco-action-bar{line-height:1;.actions-container{width:fit-content;border-radius:4px;background:var(--vscode-editorGutter-commentRangeForeground);.action-item{&:hover{background:var(--vscode-toolbar-hoverBackground)}.action-label{padding:1px 2px}}}}}}}}.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{text-align:right;display:inline-block;color:var(--vscode-editorLineNumber-foreground)}.monaco-component.diff-review .diff-review-summary{padding-left:10px}.monaco-component.diff-review .diff-review-shadow{position:absolute;box-shadow:var(--vscode-scrollbar-shadow) 0 -6px 6px -6px inset}.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;width:10px;vertical-align:middle}.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{width:16px;height:16px;margin:2px 0}.monaco-component.diff-review .revertButton{cursor:pointer}.monaco-toolbar{height:100%}.monaco-toolbar .toolbar-toggle-more{display:inline-block;padding:0}.monaco-component.multiDiffEditor{background:var(--vscode-multiDiffEditor-background);position:relative;height:100%;width:100%;overflow-y:hidden;>div{position:absolute;top:0;left:0;height:100%;width:100%;&.placeholder{visibility:hidden;&.visible{visibility:visible}display:grid;place-items:center;place-content:center}}.active{--vscode-multiDiffEditor-border: var(--vscode-focusBorder)}.multiDiffEntry{display:flex;flex-direction:column;flex:1;overflow:hidden;.collapse-button{margin:0 5px;cursor:pointer;a{display:block}}.header{z-index:1000;background:var(--vscode-editor-background);&:not(.collapsed) .header-content{border-bottom:1px solid var(--vscode-sideBarSectionHeader-border)}.header-content{margin:8px 0 0;padding:4px 5px;border-top:1px solid var(--vscode-multiDiffEditor-border);display:flex;align-items:center;color:var(--vscode-foreground);background:var(--vscode-multiDiffEditor-headerBackground);&.shadow{box-shadow:var(--vscode-scrollbar-shadow) 0 6px 6px -6px}.file-path{display:flex;flex:1;min-width:0;.title{font-size:14px;line-height:22px;&.original{flex:1;min-width:0;text-overflow:ellipsis}}.status{font-weight:600;opacity:.75;margin:0 10px;line-height:22px}}.actions{padding:0 8px}}}.editorParent{flex:1;display:flex;flex-direction:column;border-bottom:1px solid var(--vscode-multiDiffEditor-border);overflow:hidden}.editorContainer{flex:1}}}.monaco-editor .selection-anchor{background-color:#007acc;width:2px!important}.monaco-editor .bracket-match{box-sizing:border-box;background-color:var(--vscode-editorBracketMatch-background);border:1px solid var(--vscode-editorBracketMatch-border)}.inline-editor-progress-decoration{display:inline-block;width:1em;height:1em}.inline-progress-widget{display:flex!important;justify-content:center;align-items:center}.inline-progress-widget .icon{font-size:80%!important}.inline-progress-widget:hover .icon{font-size:90%!important;animation:none}.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{padding:2px 4px;color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-inputValidation-infoBorder);border-radius:3px}.monaco-editor .monaco-editor-overlaymessage .message p{margin-block:0px}.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{width:0!important;height:0!important;border-color:transparent;border-style:solid;z-index:1000;border-width:8px;position:absolute;left:2px}.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:not(.below) .anchor.top,.monaco-editor .monaco-editor-overlaymessage.below .anchor.below{display:none}.monaco-editor .monaco-editor-overlaymessage.below .anchor.top{display:inherit;top:-8px}.post-edit-widget{box-shadow:0 0 8px 2px var(--vscode-widget-shadow);border:1px solid var(--vscode-widget-border, transparent);border-radius:4px;background-color:var(--vscode-editorWidget-background);overflow:hidden}.post-edit-widget .monaco-button{padding:2px;border:none;border-radius:0}.post-edit-widget .monaco-button:hover{background-color:var(--vscode-button-secondaryHoverBackground)!important}.post-edit-widget .monaco-button .codicon{margin:0}@font-face{font-family:codicon;font-display:block;src:url("./codicon-37A3DWZT.ttf") format("truetype")}.codicon[class*=codicon-]{font: 16px/1 codicon;display:inline-block;text-decoration:none;text-rendering:auto;text-align:center;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;user-select:none;-webkit-user-select:none}.codicon-wrench-subaction{opacity:.5}@keyframes codicon-spin{to{transform:rotate(360deg)}}.codicon-sync.codicon-modifier-spin,.codicon-loading.codicon-modifier-spin,.codicon-gear.codicon-modifier-spin,.codicon-notebook-state-executing.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-value,.monaco-workbench .codicon.codicon-symbol-value,.monaco-editor .codicon.codicon-symbol-enum,.monaco-workbench .codicon.codicon-symbol-enum{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{display:flex;align-items:center;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{position:absolute;top:0;left:0;content:"";display:block;width:100%;height:100%;opacity:.3;background-color:var(--vscode-editor-background);z-index:1}.action-widget{font-size:13px;min-width:160px;max-width:80vw;z-index:40;display:block;width:100%;border:1px solid var(--vscode-editorWidget-border)!important;border-radius:2px;background-color:var(--vscode-editorWidget-background);color:var(--vscode-editorWidget-foreground)}.context-view-block{position:fixed;cursor:initial;left:0;top:0;width:100%;height:100%;z-index:-1}.context-view-pointerBlock{position:fixed;cursor:initial;left:0;top:0;width:100%;height:100%;z-index:2}.action-widget .monaco-list{user-select:none;-webkit-user-select:none;border:none!important;border-width:0!important}.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{padding:0 10px;white-space:nowrap;cursor:pointer;touch-action:none;width:100%}.action-widget .monaco-list .monaco-list-row.action.focused:not(.option-disabled){background-color:var(--vscode-quickInputList-focusBackground)!important;color:var(--vscode-quickInputList-focusForeground);outline:1px solid var(--vscode-menu-selectionBorder, transparent);outline-offset:-1px}.action-widget .monaco-list-row.group-header{color:var(--vscode-descriptionForeground)!important;font-weight:600}.action-widget .monaco-list .group-header,.action-widget .monaco-list .option-disabled,.action-widget .monaco-list .option-disabled:before,.action-widget .monaco-list .option-disabled .focused,.action-widget .monaco-list .option-disabled .focused:before{cursor:default!important;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;background-color:transparent!important;outline:0 solid!important}.action-widget .monaco-list-row.action{display:flex;gap:6px;align-items:center}.action-widget .monaco-list-row.action.option-disabled,.action-widget .monaco-list:focus .monaco-list-row.focused.action.option-disabled,.action-widget .monaco-list-row.action.option-disabled .codicon,.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;overflow:hidden;text-overflow:ellipsis}.action-widget .monaco-list-row.action .monaco-keybinding>.monaco-keybinding-key{background-color:var(--vscode-keybindingLabel-background);color:var(--vscode-keybindingLabel-foreground);border-style:solid;border-width:1px;border-radius:3px;border-color:var(--vscode-keybindingLabel-border);border-bottom-color:var(--vscode-keybindingLabel-bottomBorder);box-shadow:inset 0 -1px 0 var(--vscode-widget-shadow)}.action-widget .action-widget-action-bar{background-color:var(--vscode-editorHoverWidget-statusBarBackground);border-top:1px solid var(--vscode-editorHoverWidget-border)}.action-widget .action-widget-action-bar:before{display:block;content:"";width:100%}.action-widget .action-widget-action-bar .actions-container{padding:0 8px}.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:transparent!important}.monaco-action-bar .actions-container.highlight-toggled .action-label.checked{background:var(--vscode-actionBar-toggledBackground)!important}.monaco-editor .codelens-decoration{overflow:hidden;display:inline-block;text-overflow:ellipsis;white-space:nowrap;color:var(--vscode-editorCodeLens-foreground);line-height:var(--vscode-editorCodeLens-lineHeight);font-size:var(--vscode-editorCodeLens-fontSize);padding-right:calc(var(--vscode-editorCodeLens-fontSize)*.5);font-feature-settings:var(--vscode-editorCodeLens-fontFeatureSettings);font-family:var(--vscode-editorCodeLens-fontFamily),var(--vscode-editorCodeLens-fontFamilyDefault)}.monaco-editor .codelens-decoration>span,.monaco-editor .codelens-decoration>a{user-select:none;-webkit-user-select:none;white-space:nowrap;vertical-align:sub}.monaco-editor .codelens-decoration>a{text-decoration:none}.monaco-editor .codelens-decoration>a:hover{cursor:pointer;color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .codelens-decoration>a:hover .codicon{color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .codelens-decoration .codicon{vertical-align:middle;color:currentColor!important;color:var(--vscode-editorCodeLens-foreground);line-height:var(--vscode-editorCodeLens-lineHeight);font-size:var(--vscode-editorCodeLens-fontSize)}.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:solid .1em #000;box-sizing:border-box;margin:.1em .2em 0;width:.8em;height:.8em;line-height:.8em;display:inline-block;cursor:pointer}.hc-black .colorpicker-color-decoration,.vs-dark .colorpicker-color-decoration{border:solid .1em #eee}.colorpicker-header{display:flex;height:24px;position:relative;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=);background-size:9px 9px;image-rendering:pixelated}.colorpicker-header .picked-color{width:240px;display:flex;align-items:center;justify-content:center;line-height:24px;cursor:pointer;color:#fff;flex:1;white-space:nowrap;overflow:hidden}.colorpicker-header .picked-color .picked-color-presentation{white-space:nowrap;margin-left:5px;margin-right:5px}.colorpicker-header .picked-color .codicon{color:inherit;font-size:14px}.colorpicker-header .picked-color.light{color:#000}.colorpicker-header .original-color{width:74px;z-index:inherit;cursor:pointer}.standalone-colorpicker{color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border)}.colorpicker-header.standalone-colorpicker{border-bottom:none}.colorpicker-header .close-button{cursor:pointer;background-color:var(--vscode-editorHoverWidget-background);border-left:1px solid var(--vscode-editorHoverWidget-border)}.colorpicker-header .close-button-inner-div{width:100%;height:100%;text-align:center}.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{overflow:hidden;height:150px;position:relative;min-width:220px;flex:1}.colorpicker-body .saturation-box{height:150px;position:absolute}.colorpicker-body .saturation-selection{width:9px;height:9px;margin:-5px 0 0 -5px;border:1px solid rgb(255,255,255);border-radius:100%;box-shadow:0 0 2px #000c;position:absolute}.colorpicker-body .strip{width:25px;height:150px}.colorpicker-body .standalone-strip{width:25px;height:122px}.colorpicker-body .hue-strip{position:relative;margin-left:8px;cursor:grab;background:linear-gradient(to bottom,red,#ff0 17%,#0f0 33%,#0ff,#00f 67%,#f0f 83%,red)}.colorpicker-body .opacity-strip{position:relative;margin-left:8px;cursor:grab;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=);background-size:9px 9px;image-rendering:pixelated}.colorpicker-body .strip.grabbing{cursor:grabbing}.colorpicker-body .slider{position:absolute;top:0;left:-2px;width:calc(100% + 4px);height:4px;box-sizing:border-box;border:1px solid rgba(255,255,255,.71);box-shadow:0 0 1px #000000d9}.colorpicker-body .strip .overlay{height:150px;pointer-events:none}.colorpicker-body .standalone-strip .standalone-overlay{height:122px;pointer-events:none}.standalone-colorpicker-body{display:block;border:1px solid transparent;border-bottom:1px solid var(--vscode-editorHoverWidget-border);overflow:hidden}.colorpicker-body .insert-button{position:absolute;height:20px;width:58px;padding:0;right:8px;bottom:8px;background:var(--vscode-button-background);color:var(--vscode-button-foreground);border-radius:2px;border:none;cursor:pointer}.colorpicker-body .insert-button:hover{background:var(--vscode-button-hoverBackground)}.monaco-editor .inlineSuggestionsHints.withBorder{z-index:39;color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border)}.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;min-width:19px;justify-content:center}.monaco-editor .inlineSuggestionStatusBarItemLabel{margin-right:2px}.monaco-editor .peekview-widget .head{box-sizing:border-box;display:flex;justify-content:space-between;flex-wrap:nowrap}.monaco-editor .peekview-widget .head .peekview-title{display:flex;align-items:baseline;font-size:13px;margin-left:20px;min-width:0;text-overflow:ellipsis;overflow:hidden}.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 .meta{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.monaco-editor .peekview-widget .head .peekview-title .dirname,.monaco-editor .peekview-widget .head .peekview-title .filename{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;text-align:right;padding-right:2px}.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{margin-right:4px;align-self:center}.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-top-style:solid;border-bottom-style:solid;border-top-width:0;border-bottom-width:0;position:relative}.monaco-editor .zone-widget .zone-widget-container.reference-zone-widget{border-top-width:1px;border-bottom-width:1px}.monaco-editor .reference-zone-widget .inline{display:inline-block;vertical-align:top}.monaco-editor .reference-zone-widget .messages{height:100%;width:100%;text-align:center;padding:3em 0}.monaco-editor .reference-zone-widget .ref-tree{line-height:23px;background-color:var(--vscode-peekViewResult-background);color:var(--vscode-peekViewResult-lineForeground)}.monaco-editor .reference-zone-widget .ref-tree .reference{text-overflow:ellipsis;overflow:hidden}.monaco-editor .reference-zone-widget .ref-tree .reference-file{display:inline-flex;width:100%;height:100%;color:var(--vscode-peekViewResult-fileForeground)}.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-right:12px;margin-left:auto}.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 .monaco-editor-background,.monaco-editor .reference-zone-widget .preview .monaco-editor .inputarea.ime-input{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, transparent);box-sizing:border-box}.monaco-editor .hoverHighlight{background-color:var(--vscode-editor-hoverHighlightBackground)}.monaco-editor .monaco-hover-content{padding-right:2px;padding-bottom:2px;box-sizing:border-box}.monaco-editor .monaco-hover{color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);border-radius:3px}.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{min-width:0;display:flex;flex-direction:column}.monaco-editor .monaco-hover .hover-row .verbosity-actions{display:flex;flex-direction:column;padding-left:5px;padding-right:5px;justify-content:end;border-right:1px solid var(--vscode-editorHoverWidget-border)}.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 .dnd-target,.monaco-editor.hc-light .dnd-target{border-right:2px dotted black;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.mouse-default .view-lines,.monaco-editor.vs-dark.mac.mouse-default .view-lines,.monaco-editor.hc-black.mac.mouse-default .view-lines,.monaco-editor.hc-light.mac.mouse-default .view-lines{cursor:default}.monaco-editor.mouse-copy .view-lines,.monaco-editor.vs-dark.mac.mouse-copy .view-lines,.monaco-editor.hc-black.mac.mouse-copy .view-lines,.monaco-editor.hc-light.mac.mouse-copy .view-lines{cursor:copy}.monaco-editor .findOptionsWidget{background-color:var(--vscode-editorWidget-background);color:var(--vscode-editorWidget-foreground);box-shadow:0 0 8px 2px var(--vscode-widget-shadow);border:2px solid var(--vscode-contrastBorder)}.monaco-editor .find-widget{position:absolute;z-index:35;height:33px;overflow:hidden;line-height:19px;transition:transform .2s linear;padding:0 4px;box-sizing:border-box;transform:translateY(calc(-100% - 10px));box-shadow:0 0 8px 2px var(--vscode-widget-shadow);color:var(--vscode-editorWidget-foreground);border-left:1px solid var(--vscode-widget-border);border-right:1px solid var(--vscode-widget-border);border-bottom:1px solid var(--vscode-widget-border);border-bottom-left-radius:4px;border-bottom-right-radius:4px;background-color:var(--vscode-editorWidget-background)}.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-offset:-1px;outline-color:var(--vscode-focusBorder)}.monaco-editor .find-widget .monaco-inputbox .input{background-color:transparent;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{margin:3px 25px 0 17px;font-size:12px;display:flex}.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-top:2px;padding-bottom:2px}.monaco-editor .find-widget>.find-part .find-actions{height:25px;display:flex;align-items:center}.monaco-editor .find-widget>.replace-part .replace-actions{height:25px;display:flex;align-items:center}.monaco-editor .find-widget .monaco-findInput{vertical-align:middle;display:flex;flex:1}.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{display:flex;flex:initial;margin:0 0 0 3px;padding:2px 0 0 2px;height:25px;vertical-align:middle;box-sizing:border-box;text-align:center;line-height:23px}.monaco-editor .find-widget .button{width:16px;height:16px;padding:3px;border-radius:5px;flex:initial;margin-left:3px;background-position:center center;background-repeat:no-repeat;cursor:pointer;display:flex;align-items:center;justify-content:center}.monaco-editor .find-widget .codicon-find-selection{width:22px;height:22px;padding:3px;border-radius:5px}.monaco-editor .find-widget .button.left{margin-left:0;margin-right:3px}.monaco-editor .find-widget .button.wide{width:auto;padding:1px 6px;top:-1px}.monaco-editor .find-widget .button.toggle{position:absolute;top:0;left:3px;width:18px;height:100%;border-radius:0;box-sizing:border-box}.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{position:relative;display:flex;vertical-align:middle;flex:auto;flex-grow:0;flex-shrink:0}.monaco-editor .find-widget>.replace-part>.monaco-findInput>.controls{position:absolute;top:3px;right:2px}.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.previous,.monaco-editor .find-widget.collapsed-find-widget .button.next,.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);padding:1px;box-sizing:border-box}.monaco-editor .findScope{background-color:var(--vscode-editor-findRangeHighlightBackground)}.monaco-editor .find-widget .monaco-sash{left:0!important;background-color:var(--vscode-editorWidget-resizeBorder, var(--vscode-editorWidget-border))}.monaco-editor.hc-black .find-widget .button:before{position:relative;top:1px;left:2px}.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;top:5px;right:4px}.monaco-editor .margin-view-overlays .codicon-folding-manual-collapsed,.monaco-editor .margin-view-overlays .codicon-folding-manual-expanded,.monaco-editor .margin-view-overlays .codicon-folding-expanded,.monaco-editor .margin-view-overlays .codicon-folding-collapsed{cursor:pointer;opacity:0;transition:opacity .5s;display:flex;align-items:center;justify-content:center;font-size:140%;margin-left:2px}.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,.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-expanded,.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-collapsed{transition:initial}.monaco-editor .margin-view-overlays:hover .codicon,.monaco-editor .margin-view-overlays .codicon.codicon-folding-collapsed,.monaco-editor .margin-view-overlays .codicon.codicon-folding-manual-collapsed,.monaco-editor .margin-view-overlays .codicon.alwaysShowFoldIcons{opacity:1}.monaco-editor .inline-folded:after{color:gray;margin:.1em .2em 0;content:"\22ef";display:inline;line-height:1em;cursor:pointer}.monaco-editor .folded-background{background-color:var(--vscode-editor-foldBackground)}.monaco-editor .cldr.codicon.codicon-folding-expanded,.monaco-editor .cldr.codicon.codicon-folding-collapsed,.monaco-editor .cldr.codicon.codicon-folding-manual-expanded,.monaco-editor .cldr.codicon.codicon-folding-manual-collapsed{color:var(--vscode-editorGutter-foldingControlForeground)!important}.monaco-editor .suggest-preview-additional-widget{white-space:nowrap}.monaco-editor .suggest-preview-additional-widget .content-spacer{color:transparent;white-space:pre}.monaco-editor .suggest-preview-additional-widget .button{display:inline-block;cursor:pointer;text-decoration:underline;text-underline-position:under}.monaco-editor .ghost-text-hidden{opacity:0;font-size: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{color:var(--vscode-editorGhostText-foreground)!important;background-color:var(--vscode-editorGhostText-background);border:1px solid var(--vscode-editorGhostText-border)}.monaco-editor .snippet-placeholder{min-width:2px;outline-style:solid;outline-width:1px;background-color:var(--vscode-editor-snippetTabstopHighlightBackground, transparent);outline-color:var(--vscode-editor-snippetTabstopHighlightBorder, transparent)}.monaco-editor .finish-snippet-placeholder{outline-style:solid;outline-width:1px;background-color:var(--vscode-editor-snippetFinalTabstopHighlightBackground, transparent);outline-color:var(--vscode-editor-snippetFinalTabstopHighlightBorder, transparent)}.monaco-editor .suggest-widget{width:430px;z-index:40;display:flex;flex-direction:column;border-radius:3px}.monaco-editor .suggest-widget.message{flex-direction:row;align-items:center}.monaco-editor .suggest-widget,.monaco-editor .suggest-details{flex:0 1 auto;width:100%;border-style:solid;border-width:1px;border-color:var(--vscode-editorSuggestWidget-border);background-color:var(--vscode-editorSuggestWidget-background)}.monaco-editor.hc-black .suggest-widget,.monaco-editor.hc-black .suggest-details,.monaco-editor.hc-light .suggest-widget,.monaco-editor.hc-light .suggest-details{border-width:2px}.monaco-editor .suggest-widget .suggest-status-bar{box-sizing:border-box;display:none;flex-flow:row nowrap;justify-content:space-between;width:100%;font-size:80%;padding:0 4px;border-top:1px solid var(--vscode-editorSuggestWidget-border);overflow:hidden}.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>.contents>.main>.right>.readMore,.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row.focused.string-label>.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{display:flex;-mox-box-sizing:border-box;box-sizing:border-box;padding-right:10px;background-repeat:no-repeat;background-position:2px 2px;white-space:nowrap;cursor:pointer;touch-action:none}.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;height:100%;overflow:hidden;padding-left:2px}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main{display:flex;overflow:hidden;text-overflow:ellipsis;white-space:pre;justify-content:space-between}.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;opacity:1;font-size:14px;cursor:pointer}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close{position:absolute;top:6px;right:2px}.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{overflow:hidden;text-overflow:ellipsis;opacity:.6}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.qualifier-label{margin-left:12px;opacity:.4;font-size:85%;line-height:initial;text-overflow:ellipsis;overflow:hidden;align-self:center}.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:not(.shows-details) .monaco-list .monaco-list-row.focused>.contents>.main>.right>.details-label{display:inline}.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{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-shrink:1;flex-grow: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{overflow:hidden;flex-shrink:4;max-width:70%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:inline-block;position:absolute;right:10px;width:18px;height:18px;visibility:hidden}.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{display:block;height:16px;width:16px;margin-left:2px;background-repeat:no-repeat;background-size:80%;background-position:center}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.hide{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .suggest-icon{display:flex;align-items:center;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{margin:0 0 0 .3em;border:.1em solid #000;width:.7em;height:.7em;display:inline-block}.monaco-editor .suggest-details-container{z-index:41}.monaco-editor .suggest-details{display:flex;flex-direction:column;cursor:default;color:var(--vscode-editorSuggestWidget-foreground)}.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}.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;overflow:hidden;text-overflow:ellipsis;opacity:.7;white-space:pre;margin:0 24px 0 0;padding:4px 0 12px 5px}.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{padding:0;white-space:initial;min-height:calc(1rem + 8px)}.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{white-space:pre-wrap;word-wrap:break-word}.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 ul,.monaco-editor .suggest-details ol{padding-left:20px}.monaco-editor .suggest-details p code{font-family:var(--monaco-monospace-font)}.monaco-editor .goto-definition-link{text-decoration:underline;cursor:pointer;color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .peekview-widget .head .peekview-title .severity-icon{display:inline-block;vertical-align:text-top;margin-right:4px}.monaco-editor .marker-widget{text-overflow:ellipsis;white-space:nowrap}.monaco-editor .marker-widget>.stale{opacity:.6;font-style:italic}.monaco-editor .marker-widget .title{display:inline-block;padding-right:5px}.monaco-editor .marker-widget .descriptioncontainer{position:absolute;white-space:pre;user-select:text;-webkit-user-select:text;padding:8px 12px 0 20px}.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{opacity:.6;color:inherit}.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{text-decoration:underline;border-bottom:1px solid transparent;text-underline-position:under;color:var(--vscode-textLink-activeForeground)}.monaco-editor .marker-widget .descriptioncontainer .filename{cursor:pointer;color:var(--vscode-textLink-activeForeground)}.monaco-editor .zone-widget .codicon.codicon-error,.markers-panel .marker-icon.error,.markers-panel .marker-icon .codicon.codicon-error,.text-search-provider-messages .providerMessage .codicon.codicon-error,.extensions-viewlet>.extensions .codicon.codicon-error,.extension-editor .codicon.codicon-error,.preferences-editor .codicon.codicon-error{color:var(--vscode-problemsErrorIcon-foreground)}.monaco-editor .zone-widget .codicon.codicon-warning,.markers-panel .marker-icon.warning,.markers-panel .marker-icon .codicon.codicon-warning,.text-search-provider-messages .providerMessage .codicon.codicon-warning,.extensions-viewlet>.extensions .codicon.codicon-warning,.extension-editor .codicon.codicon-warning,.preferences-editor .codicon.codicon-warning{color:var(--vscode-problemsWarningIcon-foreground)}.monaco-editor .zone-widget .codicon.codicon-info,.markers-panel .marker-icon.info,.markers-panel .marker-icon .codicon.codicon-info,.text-search-provider-messages .providerMessage .codicon.codicon-info,.extensions-viewlet>.extensions .codicon.codicon-info,.extension-editor .codicon.codicon-info,.preferences-editor .codicon.codicon-info{color:var(--vscode-problemsInfoIcon-foreground)}.monaco-editor.vs .valueSetReplacement{outline:solid 2px var(--vscode-editorBracketMatch-border)}.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{cursor:pointer;color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .focused .selectionHighlight{background-color:var(--vscode-editor-selectionHighlightBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-selectionHighlightBorder)}.monaco-editor.hc-black .focused .selectionHighlight,.monaco-editor.hc-light .focused .selectionHighlight{border-style:dotted}.monaco-editor .wordHighlight{background-color:var(--vscode-editor-wordHighlightBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-wordHighlightBorder)}.monaco-editor.hc-black .wordHighlight,.monaco-editor.hc-light .wordHighlight{border-style:dotted}.monaco-editor .wordHighlightStrong{background-color:var(--vscode-editor-wordHighlightStrongBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-wordHighlightStrongBorder)}.monaco-editor.hc-black .wordHighlightStrong,.monaco-editor.hc-light .wordHighlightStrong{border-style:dotted}.monaco-editor .wordHighlightText{background-color:var(--vscode-editor-wordHighlightTextBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-wordHighlightTextBorder)}.monaco-editor.hc-black .wordHighlightText,.monaco-editor.hc-light .wordHighlightText{border-style:dotted}.monaco-editor .inline-edit-remove{background-color:var(--vscode-editorGhostText-background);font-style:italic;text-decoration:line-through}.monaco-editor .inline-edit-remove.backgroundColoring{background-color:var(--vscode-diffEditor-removedLineBackground)}.monaco-editor .inline-edit-hidden{opacity:0;font-size: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{color:var(--vscode-editorGhostText-foreground)!important;background-color:var(--vscode-editorGhostText-background);border:1px solid var(--vscode-editorGhostText-border)}.monaco-editor .inlineEditHints.withBorder{z-index:39;color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border)}.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 .parameter-hints-widget{z-index:39;display:flex;flex-direction:column;line-height:1.5em;cursor:default;color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border)}.hc-black .monaco-editor .parameter-hints-widget,.hc-light .monaco-editor .parameter-hints-widget{border-width:2px}.monaco-editor .parameter-hints-widget>.phwrapper{max-width:440px;display:flex;flex-direction:row}.monaco-editor .parameter-hints-widget.multiple{min-height:3.3em;padding:0}.monaco-editor .parameter-hints-widget.multiple .body:before{content:"";display:block;height:100%;position:absolute;opacity:.5;border-left:1px solid var(--vscode-editorHoverWidget-border)}.monaco-editor .parameter-hints-widget p,.monaco-editor .parameter-hints-widget ul{margin:8px 0}.monaco-editor .parameter-hints-widget .monaco-scrollable-element,.monaco-editor .parameter-hints-widget .body{display:flex;flex: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{content:"";display:block;position:absolute;left:0;width:100%;padding-top:4px;opacity:.5;border-bottom:1px solid var(--vscode-editorHoverWidget-border)}.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:initial}.monaco-editor .parameter-hints-widget .docs code{font-family:var(--monaco-monospace-font);border-radius:3px;padding:0 .4em;background-color:var(--vscode-textCodeBlock-background)}.monaco-editor .parameter-hints-widget .docs .monaco-tokenized-source,.monaco-editor .parameter-hints-widget .docs .code{white-space:pre-wrap}.monaco-editor .parameter-hints-widget .controls{display:none;flex-direction:column;align-items:center;min-width:22px;justify-content:flex-end}.monaco-editor .parameter-hints-widget.multiple .controls{display:flex;padding:0 2px}.monaco-editor .parameter-hints-widget.multiple .button{width:16px;height:16px;background-repeat:no-repeat;cursor:pointer}.monaco-editor .parameter-hints-widget .button.previous{bottom:24px}.monaco-editor .parameter-hints-widget .overloads{text-align:center;height:12px;line-height:12px;font-family:var(--monaco-monospace-font)}.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 .rename-box{z-index:100;color:inherit;border-radius:4px}.monaco-editor .rename-box.preview{padding:4px 4px 0}.monaco-editor .rename-box .rename-input-with-button{padding:3px;border-radius:2px;width:calc(100% - 8px)}.monaco-editor .rename-box .rename-input{width:calc(100% - 8px);padding:0}.monaco-editor .rename-box .rename-input:focus{outline:none}.monaco-editor .rename-box .rename-suggestions-button{display:flex;align-items:center;padding:3px;background-color:transparent;border:none;border-radius:5px;cursor:pointer}.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{float:left;background-color:inherit}.monaco-editor .sticky-widget-lines-scrollable{display:inline-block;position:absolute;overflow:hidden;width:var(--vscode-editorStickyScroll-scrollableWidth);background-color:inherit}.monaco-editor .sticky-widget-lines{position:absolute;background-color:inherit}.monaco-editor .sticky-line-number,.monaco-editor .sticky-line-content{color:var(--vscode-editorLineNumber-foreground);white-space:nowrap;display:inline-block;position:absolute;background-color:inherit}.monaco-editor .sticky-line-number .codicon-folding-expanded,.monaco-editor .sticky-line-number .codicon-folding-collapsed{float:right;transition:var(--vscode-editorStickyScroll-foldingOpacityTransition)}.monaco-editor .sticky-line-content{width:var(--vscode-editorStickyScroll-scrollableWidth);background-color:inherit;white-space:nowrap}.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{width:100%;box-shadow:var(--vscode-editorStickyScroll-shadow) 0 3px 2px -2px;z-index:4;background-color:var(--vscode-editorStickyScroll-background);right:initial!important}.monaco-editor .sticky-widget.peek{background-color:var(--vscode-peekViewEditorStickyScroll-background)}.monaco-editor .unicode-highlight{border:1px solid var(--vscode-editorUnicodeHighlight-border);background-color:var(--vscode-editorUnicodeHighlight-background);box-sizing:border-box}.editor-banner{box-sizing:border-box;cursor:default;width:100%;font-size:12px;display:flex;overflow:visible;height:26px;background:var(--vscode-banner-background)}.editor-banner .icon-container{display:flex;flex-shrink:0;align-items:center;padding:0 6px 0 10px}.editor-banner .icon-container.custom-icon{background-repeat:no-repeat;background-position:center center;background-size:16px;width:16px;padding:0;margin:0 6px 0 10px}.editor-banner .message-container{display:flex;align-items:center;line-height:26px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.editor-banner .message-container p{margin-block-start:0;margin-block-end: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{width:inherit;margin:2px 8px;padding:0 12px}.editor-banner .message-actions-container a{padding:3px;margin-left:12px;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 .iPadShowKeyboard{width:58px;min-width:0;height:36px;min-height:0;margin:0;padding:0;position:absolute;resize:none;overflow:hidden;background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1MC4yNDcgMC4wMDc4MTI1IDQ4LjAzNjQgMC4wMDc4MTI1SDQuMDA3NzlaTTguMDEwNDIgOC4wMTMwMkgxMi4wMTNWMTIuMDE1Nkg4LjAxMDQyVjguMDEzMDJaTTIwLjAxODIgOC4wMTMwMkgxNi4wMTU2VjEyLjAxNTZIMjAuMDE4MlY4LjAxMzAyWk0yNC4wMjA4IDguMDEzMDJIMjguMDIzNFYxMi4wMTU2SDI0LjAyMDhWOC4wMTMwMlpNMzYuMDI4NiA4LjAxMzAySDMyLjAyNlYxMi4wMTU2SDM2LjAyODZWOC4wMTMwMlpNNDAuMDMxMiA4LjAxMzAySDQ0LjAzMzlWMTIuMDE1Nkg0MC4wMzEyVjguMDEzMDJaTTE2LjAxNTYgMTYuMDE4Mkg4LjAxMDQyVjIwLjAyMDhIMTYuMDE1NlYxNi4wMTgyWk0yMC4wMTgyIDE2LjAxODJIMjQuMDIwOFYyMC4wMjA4SDIwLjAxODJWMTYuMDE4MlpNMzIuMDI2IDE2LjAxODJIMjguMDIzNFYyMC4wMjA4SDMyLjAyNlYxNi4wMTgyWk00NC4wMzM5IDE2LjAxODJWMjAuMDIwOEgzNi4wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjNDI0MjQyIi8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==) center center no-repeat;border:4px solid #F6F6F6;border-radius:4px}.monaco-editor.vs-dark .iPadShowKeyboard{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1MC4yNDcgMC4wMDc4MTI1IDQ4LjAzNjQgMC4wMDc4MTI1SDQuMDA3NzlaTTguMDEwNDIgOC4wMTMwMkgxMi4wMTNWMTIuMDE1Nkg4LjAxMDQyVjguMDEzMDJaTTIwLjAxODIgOC4wMTMwMkgxNi4wMTU2VjEyLjAxNTZIMjAuMDE4MlY4LjAxMzAyWk0yNC4wMjA4IDguMDEzMDJIMjguMDIzNFYxMi4wMTU2SDI0LjAyMDhWOC4wMTMwMlpNMzYuMDI4NiA4LjAxMzAySDMyLjAyNlYxMi4wMTU2SDM2LjAyODZWOC4wMTMwMlpNNDAuMDMxMiA4LjAxMzAySDQ0LjAzMzlWMTIuMDE1Nkg0MC4wMzEyVjguMDEzMDJaTTE2LjAxNTYgMTYuMDE4Mkg4LjAxMDQyVjIwLjAyMDhIMTYuMDE1NlYxNi4wMTgyWk0yMC4wMTgyIDE2LjAxODJIMjQuMDIwOFYyMC4wMjA4SDIwLjAxODJWMTYuMDE4MlpNMzIuMDI2IDE2LjAxODJIMjguMDIzNFYyMC4wMjA4SDMyLjAyNlYxNi4wMTgyWk00NC4wMzM5IDE2LjAxODJWMjAuMDIwOEgzNi4wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjQzVDNUM1Ii8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==) center center no-repeat;border:4px solid #252526}.monaco-editor .tokens-inspect-widget{z-index:50;user-select:text;-webkit-user-select:text;padding:10px;color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border)}.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{height:1px;border:0;background-color:var(--vscode-editorHoverWidget-border)}.monaco-editor .tokens-inspect-widget .tm-token{font-family:var(--monaco-monospace-font)}.monaco-editor .tokens-inspect-widget .tm-token-length{font-weight:400;font-size:60%;float:right}.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)} diff --git a/play/play.js b/play/play.js new file mode 100644 index 0000000..14a6eea --- /dev/null +++ b/play/play.js @@ -0,0 +1,3293 @@ +(()=>{var N7i=Object.create;var $Xt=Object.defineProperty;var A7i=Object.getOwnPropertyDescriptor;var P7i=Object.getOwnPropertyNames;var L7i=Object.getPrototypeOf,O7i=Object.prototype.hasOwnProperty;var I4e=(l=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(l,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):l)(function(l){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+l+'" is not supported')});var ti=(l,e)=>()=>(l&&(e=l(l=0)),e);var Dq=(l,e)=>()=>(e||l((e={exports:{}}).exports,e),e.exports),od=(l,e)=>{for(var r in e)$Xt(l,r,{get:e[r],enumerable:!0})},F7i=(l,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let c of P7i(e))!O7i.call(l,c)&&c!==r&&$Xt(l,c,{get:()=>e[c],enumerable:!(o=A7i(e,c))||o.enumerable});return l};var Olt=(l,e,r)=>(r=l!=null?N7i(L7i(l)):{},F7i(e||!l||!l.__esModule?$Xt(r,"default",{value:l,enumerable:!0}):r,l));var GXt=Dq(()=>{});var Flt=Dq(()=>{});var KXt=Dq(()=>{});var XXt=Dq(()=>{});var YXt=Dq(()=>{});var QXt=Dq(()=>{});var ZXt=Dq(()=>{});var Hhi=Dq((zin,JEt)=>{var Fhi={};(l=>{"use strict";var e=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,d=(t,n)=>{for(var a in n)e(t,a,{get:n[a],enumerable:!0})},h=(t,n,a,u)=>{if(n&&typeof n=="object"||typeof n=="function")for(let m of o(n))!c.call(t,m)&&m!==a&&e(t,m,{get:()=>n[m],enumerable:!(u=r(n,m))||u.enumerable});return t},b=t=>t,w={};d(w,{ANONYMOUS:()=>q0e,AccessFlags:()=>WCe,AssertionLevel:()=>lCe,AssignmentDeclarationKind:()=>qCe,AssignmentKind:()=>$7,Associativity:()=>twe,BreakpointResolver:()=>Nye,BuilderFileEmit:()=>cte,BuilderProgramKind:()=>KFe,BuilderState:()=>uI,CallHierarchy:()=>w9,CharacterCodes:()=>tke,CheckFlags:()=>MCe,CheckMode:()=>$Te,ClassificationType:()=>m0e,ClassificationTypeNames:()=>AEe,CommentDirectiveType:()=>$_e,Comparison:()=>B,CompletionInfoFlags:()=>P7e,CompletionTriggerKind:()=>d0e,Completions:()=>IJ,ContainerFlags:()=>BTe,ContextFlags:()=>O$,Debug:()=>Se,DiagnosticCategory:()=>Doe,Diagnostics:()=>j,DocumentHighlights:()=>Sle,ElementFlags:()=>jCe,EmitFlags:()=>spe,EmitHint:()=>rke,EmitOnly:()=>G_e,EndOfLineState:()=>EEe,ExitStatus:()=>DCe,ExportKind:()=>X0e,Extension:()=>GQ,ExternalEmitHelpers:()=>nke,FileIncludeKind:()=>koe,FilePreprocessingDiagnosticsKind:()=>ECe,FileSystemEntryKind:()=>_$e,FileWatcherEventKind:()=>cke,FindAllReferences:()=>Wm,FlattenLevel:()=>yFe,FlowFlags:()=>Coe,ForegroundColorEscapeSequences:()=>P2e,FunctionFlags:()=>Sse,GeneratedIdentifierFlags:()=>Xs,GetLiteralTextFlags:()=>A2,GoToDefinition:()=>Cie,HighlightSpanKind:()=>_0e,IdentifierNameMap:()=>NK,ImportKind:()=>ble,ImportsNotUsedAsValues:()=>Ioe,IndentStyle:()=>kEe,IndexFlags:()=>tpe,IndexKind:()=>ipe,InferenceFlags:()=>UCe,InferencePriority:()=>HCe,InlayHintKind:()=>f0e,InlayHints:()=>SNe,InternalEmitFlags:()=>ape,InternalNodeBuilderFlags:()=>ACe,InternalSymbolName:()=>RCe,IntersectionFlags:()=>NCe,InvalidatedProjectKind:()=>u7e,JSDocParsingMode:()=>ake,JsDoc:()=>N9,JsTyping:()=>lP,JsxEmit:()=>YCe,JsxFlags:()=>kCe,JsxReferenceKind:()=>zCe,LanguageFeatureMinimumTarget:()=>ike,LanguageServiceMode:()=>xEe,LanguageVariant:()=>ZCe,LexicalEnvironmentFlags:()=>ske,ListFormat:()=>cpe,LogLevel:()=>j3e,MapCode:()=>C9e,MemberOverrideStatus:()=>ICe,ModifierFlags:()=>CCe,ModuleDetectionKind:()=>$Ce,ModuleInstanceState:()=>ice,ModuleKind:()=>$Q,ModuleResolutionKind:()=>aH,ModuleSpecifierEnding:()=>uU,NavigateTo:()=>lDe,NavigationBar:()=>ZYe,NewLineKind:()=>t5,NodeBuilderFlags:()=>K_e,NodeCheckFlags:()=>Q_e,NodeFactoryFlags:()=>sae,NodeFlags:()=>xCe,NodeResolutionFeatures:()=>J8e,ObjectFlags:()=>epe,OperationCanceledException:()=>sH,OperatorPrecedence:()=>P8,OrganizeImports:()=>P9,OrganizeImportsMode:()=>dT,OuterExpressionKinds:()=>oke,OutliningElementsCollector:()=>N9e,OutliningSpanKind:()=>$ce,OutputFileType:()=>TEe,PackageJsonAutoImportPreference:()=>Jce,PackageJsonDependencyGroup:()=>A7e,PatternMatchKind:()=>tDe,PollingInterval:()=>upe,PollingWatchKind:()=>XCe,PragmaKindFlags:()=>lpe,PredicateSemantics:()=>wCe,PrivateIdentifierKind:()=>Kme,ProcessLevel:()=>YKe,ProgramUpdateLevel:()=>kXe,QuotePreference:()=>dO,RegularExpressionFlags:()=>qQ,RelationComparisonResult:()=>xoe,Rename:()=>NNe,ScriptElementKind:()=>IEe,ScriptElementKindModifier:()=>NEe,ScriptKind:()=>cH,ScriptSnapshot:()=>SEe,ScriptTarget:()=>QCe,SemanticClassificationFormat:()=>CEe,SemanticMeaning:()=>h0e,SemicolonPreference:()=>p0e,SignatureCheckMode:()=>Xhe,SignatureFlags:()=>Eoe,SignatureHelp:()=>ave,SignatureInfo:()=>Oge,SignatureKind:()=>VCe,SmartSelectionRange:()=>F9e,SnippetKind:()=>ope,StatisticType:()=>oYe,StructureIsReused:()=>woe,SymbolAccessibility:()=>LCe,SymbolDisplay:()=>mO,SymbolDisplayPartKind:()=>UK,SymbolFlags:()=>Y_e,SymbolFormatFlags:()=>X_e,SyntaxKind:()=>SCe,Ternary:()=>JCe,ThrottledCancellationToken:()=>uZe,TokenClass:()=>DEe,TokenFlags:()=>TCe,TransformFlags:()=>rpe,TypeFacts:()=>Khe,TypeFlags:()=>Z_e,TypeFormatFlags:()=>PCe,TypeMapKind:()=>npe,TypePredicateKind:()=>OCe,TypeReferenceSerializationKind:()=>FCe,UnionReduction:()=>Toe,UpToDateStatusType:()=>BXe,VarianceFlags:()=>BCe,Version:()=>ve,VersionRange:()=>vCe,WatchDirectoryFlags:()=>eke,WatchDirectoryKind:()=>KCe,WatchFileKind:()=>GCe,WatchLogLevel:()=>N2e,WatchType:()=>Ty,accessPrivateIdentifier:()=>rge,addEmitFlags:()=>gN,addEmitHelper:()=>cL,addEmitHelpers:()=>bk,addInternalEmitFlags:()=>Na,addNodeFactoryPatcher:()=>GOe,addObjectAllocatorPatcher:()=>xme,addRange:()=>Ho,addRelatedInfo:()=>Pd,addSyntheticLeadingComment:()=>If,addSyntheticTrailingComment:()=>Zj,addToSeen:()=>HC,advancedAsyncSuperHelper:()=>_ee,affectsDeclarationPathOptionDeclarations:()=>Eee,affectsEmitOptionDeclarations:()=>g8e,allKeysStartWithDot:()=>ece,altDirectorySeparator:()=>dke,and:()=>wv,append:()=>ar,appendIfUnique:()=>oo,arrayFrom:()=>tc,arrayIsEqualTo:()=>ho,arrayIsHomogeneous:()=>eM,arrayOf:()=>r4,arrayReverseIterator:()=>Ws,arrayToMap:()=>I_,arrayToMultiMap:()=>Ql,arrayToNumericMap:()=>Zo,assertType:()=>mCe,assign:()=>o4,asyncSuperHelper:()=>fae,attachFileToDiagnostics:()=>OG,base64decode:()=>cwe,base64encode:()=>Mse,binarySearch:()=>Q_,binarySearchKey:()=>Zu,bindSourceFile:()=>jTe,breakIntoCharacterSpans:()=>VYe,breakIntoWordSpans:()=>iDe,buildLinkParts:()=>UEe,buildOpts:()=>Iee,buildOverload:()=>lot,bundlerModuleNameResolver:()=>q8e,canBeConvertedToAsync:()=>aDe,canEmitTsBuildInfo:()=>JU,canHaveDecorators:()=>_W,canHaveExportModifier:()=>pU,canHaveFlowNode:()=>vse,canHaveIllegalDecorators:()=>dK,canHaveIllegalModifiers:()=>oO,canHaveIllegalType:()=>Iae,canHaveIllegalTypeParameters:()=>mGe,canHaveJSDoc:()=>gG,canHaveLocals:()=>zE,canHaveModifiers:()=>tD,canHaveModuleSpecifier:()=>Zpe,canHaveSymbol:()=>$x,canIncludeBindAndCheckDiagnostics:()=>Z7,canJsonReportNoInputFiles:()=>FU,canProduceDiagnostics:()=>uge,canUsePropertyAccess:()=>Rme,canWatchAffectingLocation:()=>Y2e,canWatchAtTypes:()=>K2e,canWatchDirectoryOrFile:()=>Uge,cartesianProduct:()=>V_e,cast:()=>$d,chainBundle:()=>kN,chainDiagnosticMessages:()=>Zl,changeAnyExtension:()=>QB,changeCompilerHostLikeToUseCache:()=>u9,changeExtension:()=>J3,changeFullExtension:()=>yu,changesAffectModuleResolution:()=>uj,changesAffectingProgramStructure:()=>fh,characterCodeToRegularExpressionFlag:()=>Ooe,childIsDecorated:()=>vj,classElementOrClassElementParameterIsDecorated:()=>bj,classHasClassThisAssignment:()=>o9,classHasDeclaredOrExplicitlyAssignedName:()=>cge,classHasExplicitlyAssignedName:()=>r2e,classOrConstructorParameterIsDecorated:()=>aN,classicNameResolver:()=>gKe,classifier:()=>yZe,cleanExtendedConfigCache:()=>I2e,clear:()=>La,clearMap:()=>Zb,clearSharedExtendedConfigFileWatcher:()=>LFe,climbPastPropertyAccess:()=>FEe,clone:()=>Uw,cloneCompilerOptions:()=>ZK,closeFileWatcher:()=>GT,closeFileWatcherOf:()=>Dk,codefix:()=>vb,collapseTextChangeRangesAcrossMultipleVersions:()=>u0,collectExternalModuleInfo:()=>tge,combine:()=>pu,combinePaths:()=>Ps,commandLineOptionOfCustomType:()=>aTe,commentPragmas:()=>KQ,commonOptionsWithBuild:()=>rTe,compact:()=>no,compareBooleans:()=>QI,compareDataObjects:()=>nU,compareDiagnostics:()=>FG,compareEmitHelpers:()=>Rwe,compareNumberOfDirectorySeparators:()=>O5,comparePaths:()=>fk,comparePathsCaseInsensitive:()=>hm,comparePathsCaseSensitive:()=>pke,comparePatternKeys:()=>Uee,compareProperties:()=>p1,compareStringsCaseInsensitive:()=>RQ,compareStringsCaseInsensitiveEslintCompatible:()=>A6,compareStringsCaseSensitive:()=>Jg,compareStringsCaseSensitiveUI:()=>WQ,compareTextSpans:()=>j_e,compareValues:()=>m_,compilerOptionsAffectDeclarationPath:()=>H3,compilerOptionsAffectEmit:()=>Jse,compilerOptionsAffectSemanticDiagnostics:()=>RG,compilerOptionsDidYouMeanDiagnostics:()=>She,compilerOptionsIndicateEsModules:()=>M0e,computeCommonSourceDirectoryOfFilenames:()=>nte,computeLineAndCharacterOfPosition:()=>Bd,computeLineOfPosition:()=>l4,computeLineStarts:()=>E7,computePositionOfLineAndCharacter:()=>mpe,computeSignatureWithDiagnostics:()=>Tce,computeSuggestionDiagnostics:()=>lMe,computedOptions:()=>Sy,concatenate:()=>Pl,concatenateDiagnosticMessageChains:()=>Hse,consumesNodeCoreModules:()=>gle,contains:()=>dr,containsIgnoredPath:()=>V8,containsObjectRestOrSpread:()=>fW,containsParseError:()=>B7,containsPath:()=>Gp,convertCompilerOptionsForTelemetry:()=>SK,convertCompilerOptionsFromJson:()=>GGe,convertJsonOption:()=>vW,convertToBase64:()=>yme,convertToJson:()=>Jae,convertToObject:()=>D8e,convertToOptionsWithAbsolutePaths:()=>Oee,convertToRelativePath:()=>lH,convertToTSConfig:()=>hTe,convertTypeAcquisitionFromJson:()=>KGe,copyComments:()=>Qv,copyEntries:()=>eG,copyLeadingComments:()=>Ute,copyProperties:()=>PS,copyTrailingAsLeadingComments:()=>iz,copyTrailingComments:()=>bL,couldStartTrivia:()=>Sf,countWhere:()=>Tn,createAbstractBuilder:()=>Hge,createAccessorPropertyBackingField:()=>Pae,createAccessorPropertyGetRedirector:()=>CGe,createAccessorPropertySetRedirector:()=>Lae,createBaseNodeFactory:()=>rae,createBinaryExpressionTrampoline:()=>Qwe,createBuilderProgram:()=>Mge,createBuilderProgramUsingIncrementalBuildInfo:()=>jge,createBuilderStatusReporter:()=>Zge,createCacheableExportInfoMap:()=>sz,createCachedDirectoryStructureHost:()=>W4,createClassifier:()=>DYe,createCommentDirectivesMap:()=>RA,createCompilerDiagnostic:()=>Th,createCompilerDiagnosticForInvalidCustomType:()=>lTe,createCompilerDiagnosticFromMessageChain:()=>Vse,createCompilerHost:()=>wXe,createCompilerHostFromProgramHost:()=>gte,createCompilerHostWorker:()=>rte,createDetachedDiagnostic:()=>Vj,createDiagnosticCollection:()=>kse,createDiagnosticForFileFromMessageChain:()=>Vpe,createDiagnosticForNode:()=>ws,createDiagnosticForNodeArray:()=>ob,createDiagnosticForNodeArrayFromMessageChain:()=>BC,createDiagnosticForNodeFromMessageChain:()=>WT,createDiagnosticForNodeInSourceFile:()=>ss,createDiagnosticForRange:()=>Hpe,createDiagnosticMessageChainFromDiagnostic:()=>dse,createDiagnosticReporter:()=>_9,createDocumentPositionMapper:()=>QTe,createDocumentRegistry:()=>xle,createDocumentRegistryInternal:()=>mX,createEmitAndSemanticDiagnosticsBuilderProgram:()=>Vge,createEmitHelperFactory:()=>Mwe,createEmptyExports:()=>Cae,createEvaluator:()=>YG,createExpressionForJsxElement:()=>nhe,createExpressionForJsxFragment:()=>Kwe,createExpressionForObjectLiteralElementLike:()=>Xwe,createExpressionForPropertyName:()=>rhe,createExpressionFromEntityName:()=>rO,createExternalHelpersImportDeclarationIfNeeded:()=>EU,createFileDiagnostic:()=>k_,createFileDiagnosticFromMessageChain:()=>TH,createFlowNode:()=>rP,createForOfBindingStatement:()=>cK,createFutureSourceFile:()=>_O,createGetCanonicalFileName:()=>U0,createGetIsolatedDeclarationErrors:()=>b2e,createGetSourceFile:()=>Cge,createGetSymbolAccessibilityDiagnosticForNode:()=>lF,createGetSymbolAccessibilityDiagnosticForNodeName:()=>v2e,createGetSymbolWalker:()=>vKe,createIncrementalCompilerHost:()=>Yge,createIncrementalProgram:()=>Qge,createJsxFactoryExpression:()=>kae,createLanguageService:()=>vRe,createLanguageServiceSourceFile:()=>JDe,createMemberAccessForPropertyName:()=>XC,createModeAwareCache:()=>aI,createModeAwareCacheKey:()=>wK,createModeMismatchDetails:()=>MA,createModuleNotFoundChain:()=>yy,createModuleResolutionCache:()=>jU,createModuleResolutionLoader:()=>Ige,createModuleResolutionLoaderUsingGlobalCache:()=>qge,createModuleSpecifierResolutionHost:()=>XW,createMultiMap:()=>Hb,createNameResolver:()=>oT,createNodeConverters:()=>Wme,createNodeFactory:()=>cee,createOptionNameMap:()=>Wae,createOverload:()=>bve,createPackageJsonImportFilter:()=>bJ,createPackageJsonInfo:()=>hle,createParenthesizerRules:()=>xy,createPatternMatcher:()=>oye,createPrinter:()=>j4,createPrinterWithDefaults:()=>AFe,createPrinterWithRemoveComments:()=>dF,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>bge,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>gce,createProgram:()=>f9,createProgramHost:()=>tEe,createPropertyNameNodeForIdentifierOrLiteral:()=>nee,createQueue:()=>ZV,createRange:()=>tT,createRedirectedBuilderProgram:()=>G2e,createResolutionCache:()=>eEe,createRuntimeTypeSerializer:()=>a2e,createScanner:()=>LA,createSemanticDiagnosticsBuilderProgram:()=>zge,createSet:()=>yoe,createSolutionBuilder:()=>oEe,createSolutionBuilderHost:()=>rEe,createSolutionBuilderWithWatch:()=>VXe,createSolutionBuilderWithWatchHost:()=>WXe,createSortedArray:()=>os,createSourceFile:()=>AU,createSourceMapGenerator:()=>FKe,createSourceMapSource:()=>wa,createSuperAccessVariableStatement:()=>l2e,createSymbolTable:()=>Au,createSymlinkCache:()=>A5,createSyntacticTypeNodeBuilder:()=>D7e,createSystemWatchFunctions:()=>$3e,createTextChange:()=>lJ,createTextChangeFromStartLength:()=>$4,createTextChangeRange:()=>aZ,createTextRangeFromNode:()=>oS,createTextRangeFromSpan:()=>Fte,createTextSpan:()=>h1,createTextSpanFromBounds:()=>cg,createTextSpanFromNode:()=>Cx,createTextSpanFromRange:()=>q4,createTextSpanFromStringLiteralLikeContent:()=>rle,createTextWriter:()=>ume,createTokenRange:()=>tU,createTypeChecker:()=>Qhe,createTypeReferenceDirectiveResolutionCache:()=>Bee,createTypeReferenceResolutionLoader:()=>ote,createWatchCompilerHost:()=>r7e,createWatchCompilerHostOfConfigFile:()=>Xge,createWatchCompilerHostOfFilesAndCompilerOptions:()=>vte,createWatchFactory:()=>hte,createWatchHost:()=>Mce,createWatchProgram:()=>jce,createWatchStatusReporter:()=>_te,createWriteFileMeasuringIO:()=>kge,declarationNameToString:()=>Gf,decodeMappings:()=>Zhe,decodedTextSpanIntersectsWith:()=>q$,deduplicate:()=>la,defaultInitCompilerOptions:()=>vhe,defaultMaximumTruncationLength:()=>Z$,diagnosticCategoryName:()=>e5,diagnosticToString:()=>RM,diagnosticsEqualityComparer:()=>Q7,directoryProbablyExists:()=>fN,directorySeparator:()=>uh,displayPart:()=>Pk,displayPartsToString:()=>lz,disposeEmitNodes:()=>uee,documentSpansEqual:()=>ale,dumpTracingLegend:()=>q_e,elementAt:()=>C0,elideNodes:()=>xGe,emitDetachedComments:()=>w0,emitFiles:()=>T2e,emitFilesAndReportErrors:()=>jW,emitFilesAndReportErrorsAndGetExitStatus:()=>tJ,emitModuleKindIsNonNodeESM:()=>UC,emitNewLineBeforeLeadingCommentOfPosition:()=>fme,emitResolverSkipsTypeChecking:()=>w2e,emitSkippedWithNoDiagnostics:()=>BFe,emptyArray:()=>F,emptyFileSystemEntries:()=>UG,emptyMap:()=>Y,emptyOptions:()=>t2,endsWith:()=>xh,ensurePathIsNonModuleName:()=>FE,ensureScriptKind:()=>Xse,ensureTrailingDirectorySeparator:()=>Fs,entityNameToString:()=>$b,enumerateInsertsAndDeletes:()=>$B,equalOwnProperties:()=>k2,equateStringsCaseInsensitive:()=>rw,equateStringsCaseSensitive:()=>ud,equateValues:()=>p8,escapeJsxAttributeString:()=>rwe,escapeLeadingUnderscores:()=>kh,escapeNonAsciiString:()=>Ese,escapeSnippetText:()=>_w,escapeString:()=>w4,escapeTemplateSubstitution:()=>wse,evaluatorResult:()=>bg,every:()=>Yt,executeCommandLine:()=>uYe,expandPreOrPostfixIncrementOrDecrementExpression:()=>See,explainFiles:()=>Lce,explainIfFileIsRedirectAndImpliedFormat:()=>Oce,exportAssignmentIsAlias:()=>Nj,expressionResultIsUnused:()=>$G,extend:()=>nw,extensionFromPath:()=>F5,extensionIsTS:()=>eae,extensionsNotSupportingExtensionlessResolution:()=>zG,externalHelpersModuleNameText:()=>R7,factory:()=>Me,fileContainsPackageImport:()=>fX,fileExtensionIs:()=>Wh,fileExtensionIsOneOf:()=>gg,fileIncludeReasonToDiagnostics:()=>mte,fileShouldUseJavaScriptRequire:()=>nie,filter:()=>Qn,filterMutate:()=>ks,filterSemanticDiagnostics:()=>YU,find:()=>jt,findAncestor:()=>go,findBestPatternMatch:()=>tH,findChildOfKind:()=>Np,findComputedPropertyNameCacheAssignment:()=>dhe,findConfigFile:()=>vce,findConstructorDeclaration:()=>vk,findContainingList:()=>aJ,findDiagnosticForNode:()=>yle,findFirstNonJsxWhitespaceToken:()=>El,findIndex:()=>_n,findLast:()=>mi,findLastIndex:()=>Pr,findListItemInfo:()=>iD,findModifier:()=>FM,findNextToken:()=>NM,findPackageJson:()=>mle,findPackageJsons:()=>Yte,findPrecedingMatchingToken:()=>ile,findPrecedingToken:()=>p0,findSuperStatementIndexPath:()=>wW,findTokenOnLeftOfPosition:()=>ele,findUseStrictPrologue:()=>e8e,first:()=>of,firstDefined:()=>Je,firstDefinedIterator:()=>Xe,firstIterator:()=>AC,firstOrOnly:()=>S9,firstOrUndefined:()=>Ed,firstOrUndefinedIterator:()=>c0,fixupCompilerOptions:()=>cDe,flatMap:()=>za,flatMapIterator:()=>Ya,flatMapToMutable:()=>Uc,flatten:()=>cr,flattenCommaList:()=>Zwe,flattenDestructuringAssignment:()=>HU,flattenDestructuringBinding:()=>CM,flattenDiagnosticMessageText:()=>wN,forEach:()=>ee,forEachAncestor:()=>af,forEachAncestorDirectory:()=>T2,forEachChild:()=>_d,forEachChildRecursively:()=>NU,forEachEmittedFile:()=>x2e,forEachEnclosingBlockScopeContainer:()=>use,forEachEntry:()=>Km,forEachExternalModuleToImportFrom:()=>sie,forEachImportClauseDeclaration:()=>FZ,forEachKey:()=>N2,forEachLeadingCommentRange:()=>iZ,forEachNameInAccessChainWalkingLeft:()=>N4,forEachNameOfDefaultExport:()=>_X,forEachPropertyAssignment:()=>h5,forEachResolvedProjectReference:()=>j2e,forEachReturnStatement:()=>Gb,forEachRight:()=>Te,forEachTrailingCommentRange:()=>Mf,forEachTsConfigPropArray:()=>DZ,forEachUnique:()=>cle,forEachYieldExpression:()=>bOe,formatColorAndReset:()=>fF,formatDiagnostic:()=>bce,formatDiagnostics:()=>A2e,formatDiagnosticsWithColorAndContext:()=>F2e,formatGeneratedName:()=>rF,formatGeneratedNamePart:()=>wee,formatLocation:()=>Ege,formatMessage:()=>sU,formatStringFromArgs:()=>KA,formatting:()=>Dy,generateDjb2Hash:()=>F$,generateTSConfig:()=>N8e,getAdjustedReferenceLocation:()=>F7e,getAdjustedRenameLocation:()=>w0e,getAliasDeclarationFromName:()=>QD,getAllAccessorDeclarations:()=>j2,getAllDecoratorsOfClass:()=>Xee,getAllDecoratorsOfClassElement:()=>Yee,getAllJSDocTags:()=>R6,getAllJSDocTagsOfKind:()=>Voe,getAllKeys:()=>VD,getAllProjectOutputs:()=>vge,getAllSuperTypeNodes:()=>FH,getAllowJSCompilerOption:()=>T0,getAllowSyntheticDefaultImports:()=>cU,getAncestor:()=>M2,getAnyExtensionFromPath:()=>LE,getAreDeclarationMapsEnabled:()=>x1,getAssignedExpandoInitializer:()=>U7,getAssignedName:()=>pH,getAssignmentDeclarationKind:()=>wh,getAssignmentDeclarationPropertyAccessKind:()=>kj,getAssignmentTargetKind:()=>N8,getAutomaticTypeDirectiveNames:()=>Xae,getBaseFileName:()=>sg,getBinaryOperatorPrecedence:()=>CG,getBuildInfo:()=>l9,getBuildInfoFileVersionMap:()=>$2e,getBuildInfoText:()=>MK,getBuildOrderFromAnyBuildOrder:()=>nJ,getBuilderCreationParameters:()=>dte,getBuilderFileEmit:()=>nS,getCanonicalDiagnostic:()=>Kke,getCheckFlags:()=>Ag,getClassExtendsHeritageElement:()=>K6,getClassLikeDeclarationOfSymbol:()=>av,getCombinedLocalAndExportSymbolFlags:()=>R8,getCombinedModifierFlags:()=>iv,getCombinedNodeFlags:()=>d4,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>vpe,getCommentRange:()=>Nv,getCommonSourceDirectory:()=>uF,getCommonSourceDirectoryOfConfig:()=>c9,getCompilerOptionValue:()=>lU,getCompilerOptionsDiffValue:()=>Lee,getConditions:()=>yM,getConfigFileParsingDiagnostics:()=>lO,getConstantValue:()=>oI,getContainerFlags:()=>oP,getContainerNode:()=>hF,getContainingClass:()=>vy,getContainingClassExcludingClassDecorators:()=>zy,getContainingClassStaticBlock:()=>hk,getContainingFunction:()=>BS,getContainingFunctionDeclaration:()=>_se,getContainingFunctionOrClassStaticBlock:()=>pse,getContainingNodeArray:()=>rI,getContainingObjectLiteralElement:()=>Dye,getContextualTypeFromParent:()=>fle,getContextualTypeFromParentOrAncestorTypeNode:()=>REe,getDeclarationDiagnostics:()=>dge,getDeclarationEmitExtensionForPath:()=>jZ,getDeclarationEmitOutputFilePath:()=>UH,getDeclarationEmitOutputFilePathWorker:()=>JH,getDeclarationFileExtension:()=>N0,getDeclarationFromName:()=>F_,getDeclarationModifierFlagsFromSymbol:()=>nT,getDeclarationOfKind:()=>Kp,getDeclarationsOfKind:()=>Npe,getDeclaredExpandoInitializer:()=>v5,getDecorators:()=>v3,getDefaultCompilerOptions:()=>Eye,getDefaultFormatCodeSettings:()=>qce,getDefaultLibFileName:()=>gpe,getDefaultLibFilePath:()=>Ale,getDefaultLikeExportInfo:()=>aie,getDefaultLikeExportNameFromDeclaration:()=>vle,getDefaultResolutionModeForFileWorker:()=>WK,getDiagnosticText:()=>bx,getDiagnosticsWithinSpan:()=>Qte,getDirectoryPath:()=>Cc,getDirectoryToWatchFailedLookupLocation:()=>Jge,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>Dce,getDocumentPositionMapper:()=>oMe,getDocumentSpansEqualityComparer:()=>tz,getESModuleInterop:()=>GE,getEditsForFileRename:()=>nye,getEffectiveBaseTypeNode:()=>HE,getEffectiveConstraintOfTypeParameter:()=>Ux,getEffectiveContainerForJSDocTemplateTag:()=>tme,getEffectiveImplementsTypeNodes:()=>F3,getEffectiveInitializer:()=>hse,getEffectiveJSDocHost:()=>C4,getEffectiveModifierFlags:()=>A_,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Pse,getEffectiveModifierFlagsNoCache:()=>Mj,getEffectiveReturnTypeNode:()=>WC,getEffectiveSetAccessorTypeAnnotationNode:()=>W3,getEffectiveTypeAnnotationNode:()=>gm,getEffectiveTypeParameterDeclarations:()=>h8,getEffectiveTypeRoots:()=>gM,getElementOrPropertyAccessArgumentExpressionOrName:()=>_G,getElementOrPropertyAccessName:()=>Yw,getElementsOfBindingOrAssignmentPattern:()=>pL,getEmitDeclarations:()=>fw,getEmitFlags:()=>N_,getEmitHelpers:()=>gU,getEmitModuleDetectionKind:()=>wme,getEmitModuleFormatOfFileWorker:()=>V4,getEmitModuleKind:()=>b1,getEmitModuleResolutionKind:()=>S1,getEmitScriptTarget:()=>h_,getEmitStandardClassFields:()=>B8,getEnclosingBlockScopeContainer:()=>Xw,getEnclosingContainer:()=>lse,getEncodedSemanticClassifications:()=>eye,getEncodedSyntacticClassifications:()=>eDe,getEndLinePosition:()=>Jo,getEntityNameFromTypeNode:()=>sb,getEntrypointsFromPackageJsonInfo:()=>CN,getErrorCountForSummary:()=>pte,getErrorSpanForNode:()=>_5,getErrorSummaryText:()=>Gge,getEscapedTextOfIdentifierOrLiteral:()=>dx,getEscapedTextOfJsxAttributeName:()=>Y3,getEscapedTextOfJsxNamespacedName:()=>R5,getExpandoInitializer:()=>zA,getExportAssignmentExpression:()=>nme,getExportInfoMap:()=>Q0e,getExportNeedsImportStarHelper:()=>VKe,getExpressionAssociativity:()=>WH,getExpressionPrecedence:()=>Qb,getExternalHelpersModuleName:()=>wae,getExternalModuleImportEqualsDeclarationExpression:()=>Sj,getExternalModuleName:()=>Tj,getExternalModuleNameFromDeclaration:()=>HH,getExternalModuleNameFromPath:()=>EG,getExternalModuleNameLiteral:()=>_M,getExternalModuleRequireArgument:()=>PZ,getFallbackOptions:()=>RK,getFileEmitOutput:()=>ZU,getFileMatcherPatterns:()=>Kse,getFileNamesFromConfigSpecs:()=>MU,getFileWatcherEventKind:()=>Noe,getFilesInErrorForSummary:()=>$ge,getFirstConstructorWithBody:()=>eI,getFirstIdentifier:()=>fx,getFirstNonSpaceCharacterPosition:()=>H0e,getFirstProjectOutput:()=>k2e,getFixableErrorSpanExpression:()=>G0e,getFormatCodeSettingsForWriting:()=>iie,getFullWidth:()=>kH,getFunctionFlags:()=>Gg,getHeritageClause:()=>HT,getHostSignatureFromJSDoc:()=>P3,getIdentifierAutoGenerate:()=>XOe,getIdentifierGeneratedImportReference:()=>Gme,getIdentifierTypeArguments:()=>iW,getImmediatelyInvokedFunctionExpression:()=>w3,getImpliedNodeFormatForEmitWorker:()=>uO,getImpliedNodeFormatForFile:()=>jK,getImpliedNodeFormatForFileWorker:()=>Pge,getImportNeedsImportDefaultHelper:()=>hFe,getImportNeedsImportStarHelper:()=>ZTe,getIndentString:()=>owe,getInferredLibraryNameResolveFrom:()=>ste,getInitializedVariables:()=>NG,getInitializerOfBinaryExpression:()=>COe,getInitializerOfBindingOrAssignmentElement:()=>Av,getInterfaceBaseTypeNodes:()=>xG,getInternalEmitFlags:()=>RC,getInvokedExpression:()=>EH,getIsFileExcluded:()=>Y0e,getIsolatedModules:()=>$E,getJSDocAugmentsTag:()=>kke,getJSDocClassTag:()=>xpe,getJSDocCommentRanges:()=>wZ,getJSDocCommentsAndTags:()=>S5,getJSDocDeprecatedTag:()=>Ike,getJSDocDeprecatedTagNoCache:()=>Nke,getJSDocEnumTag:()=>Ake,getJSDocHost:()=>L3,getJSDocImplementsTags:()=>eOe,getJSDocOverloadTags:()=>kOe,getJSDocOverrideTagNoCache:()=>Dke,getJSDocParameterTags:()=>mu,getJSDocParameterTagsNoCache:()=>Woe,getJSDocPrivateTag:()=>iOe,getJSDocPrivateTagNoCache:()=>Tke,getJSDocProtectedTag:()=>Eke,getJSDocProtectedTagNoCache:()=>nOe,getJSDocPublicTag:()=>tOe,getJSDocPublicTagNoCache:()=>wke,getJSDocReadonlyTag:()=>rOe,getJSDocReadonlyTagNoCache:()=>oOe,getJSDocReturnTag:()=>Pke,getJSDocReturnType:()=>dZ,getJSDocRoot:()=>Ej,getJSDocSatisfiesExpressionType:()=>ree,getJSDocSatisfiesTag:()=>Cpe,getJSDocTags:()=>S3,getJSDocTemplateTag:()=>Lke,getJSDocThisTag:()=>zoe,getJSDocType:()=>M6,getJSDocTypeAliasName:()=>i8e,getJSDocTypeAssertionType:()=>TU,getJSDocTypeParameterDeclarations:()=>j3,getJSDocTypeParameterTags:()=>N7,getJSDocTypeParameterTagsNoCache:()=>Z3e,getJSDocTypeTag:()=>b3,getJSXImplicitImportBase:()=>jG,getJSXRuntimeImport:()=>qse,getJSXTransformEnabled:()=>BG,getKeyForCompilerOptions:()=>V8e,getLanguageVariant:()=>GZ,getLastChild:()=>I5,getLeadingCommentRanges:()=>PA,getLeadingCommentRangesOfNode:()=>gOe,getLeftmostAccessExpression:()=>rU,getLeftmostExpression:()=>Va,getLibraryNameFromLibFileName:()=>Cce,getLineAndCharacterOfPosition:()=>Df,getLineInfo:()=>iS,getLineOfLocalPosition:()=>Lj,getLineStartPositionForPosition:()=>oC,getLineStarts:()=>P6,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>bme,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>OOe,getLinesBetweenPositions:()=>Foe,getLinesBetweenRangeEndAndRangeStart:()=>dw,getLinesBetweenRangeEndPositions:()=>vme,getLiteralText:()=>Bpe,getLocalNameForExternalImport:()=>nF,getLocalSymbolForExportDefault:()=>E5,getLocaleSpecificMessage:()=>ed,getLocaleTimeString:()=>fte,getMappedContextSpan:()=>_J,getMappedDocumentSpan:()=>lle,getMappedLocation:()=>fJ,getMatchedFileSpec:()=>Fce,getMatchedIncludeSpec:()=>RW,getMeaningFromDeclaration:()=>D1,getMeaningFromLocation:()=>m9,getMembersOfDeclaration:()=>$6,getModeForFileReference:()=>Dge,getModeForResolutionAtIndex:()=>N0t,getModeForUsageLocation:()=>R2e,getModifiedTime:()=>KB,getModifiers:()=>$g,getModuleInstanceState:()=>$2,getModuleNameStringLiteralAt:()=>QU,getModuleSpecifierEndingPreference:()=>M$e,getModuleSpecifierResolverHost:()=>ole,getNameForExportedSymbol:()=>Zte,getNameFromImportAttribute:()=>hU,getNameFromIndexInfo:()=>Gke,getNameFromPropertyName:()=>KW,getNameOfAccessExpression:()=>mN,getNameOfCompilerOptionValue:()=>khe,getNameOfDeclaration:()=>Nu,getNameOfExpando:()=>xOe,getNameOfJSDocTypedef:()=>r5,getNameOfScriptTarget:()=>JC,getNameOrArgument:()=>LH,getNameTable:()=>bRe,getNamespaceDeclarationNode:()=>E8,getNewLineCharacter:()=>W2,getNewLineKind:()=>oz,getNewLineOrDefaultFromHost:()=>fO,getNewTargetContainer:()=>jS,getNextJSDocCommentLocation:()=>yG,getNodeChildren:()=>$we,getNodeForGeneratedName:()=>uhe,getNodeId:()=>pp,getNodeKind:()=>IM,getNodeModifiers:()=>QK,getNodeModulePathParts:()=>Kj,getNonAssignedNameOfDeclaration:()=>bpe,getNonAssignmentOperatorForCompoundAssignment:()=>VU,getNonAugmentationDeclaration:()=>C8,getNonDecoratorTokenPosOfNode:()=>Hke,getNonIncrementalBuildInfoRoots:()=>Wge,getNonModifierTokenPosOfNode:()=>l5,getNormalizedAbsolutePath:()=>tu,getNormalizedAbsolutePathWithoutRoot:()=>NA,getNormalizedPathComponents:()=>_pe,getObjectFlags:()=>Ls,getOperatorAssociativity:()=>Cse,getOperatorPrecedence:()=>JT,getOptionFromName:()=>b8e,getOptionsForLibraryResolution:()=>Yae,getOptionsNameMap:()=>gW,getOrCreateEmitNode:()=>Iv,getOrUpdate:()=>Hv,getOriginalNode:()=>Gm,getOriginalNodeId:()=>rC,getOutputDeclarationFileName:()=>PW,getOutputDeclarationFileNameWorker:()=>B4,getOutputExtension:()=>hge,getOutputFileNames:()=>C2e,getOutputJSFileNameWorker:()=>qU,getOutputPathsFor:()=>a9,getOwnEmitOutputFilePath:()=>Dse,getOwnKeys:()=>Zy,getOwnValues:()=>k0,getPackageJsonTypesVersionsPaths:()=>Lhe,getPackageNameFromTypesPackageName:()=>qee,getPackageScopeForPath:()=>Vee,getParameterSymbolFromJSDoc:()=>vG,getParentNodeInSpan:()=>QW,getParseTreeNode:()=>ju,getParsedCommandLineOfConfigFile:()=>hK,getPathComponents:()=>Uv,getPathFromPathComponents:()=>IA,getPathUpdater:()=>rye,getPathsBasePath:()=>UA,getPatternFromSpec:()=>zOe,getPendingEmitKindWithSeen:()=>V2e,getPositionOfLineAndCharacter:()=>ppe,getPossibleGenericSignatures:()=>E0e,getPossibleOriginalInputExtensionForExtension:()=>qH,getPossibleTypeArgumentsInfo:()=>YK,getPreEmitDiagnostics:()=>e2,getPrecedingNonSpaceCharacterPosition:()=>qEe,getPrivateIdentifier:()=>nge,getProperties:()=>TW,getProperty:()=>QV,getPropertyArrayElementValue:()=>Zke,getPropertyAssignmentAliasLikeExpression:()=>wOe,getPropertyNameForPropertyNameNode:()=>k5,getPropertyNameFromType:()=>rT,getPropertyNameOfBindingOrAssignmentElement:()=>Eae,getPropertySymbolFromBindingElement:()=>eX,getPropertySymbolsFromContextualType:()=>GDe,getQuoteFromPreference:()=>sle,getQuotePreference:()=>Nk,getRangesWhere:()=>IE,getRefactorContextSpan:()=>b9,getReferencedFileLocation:()=>FW,getRegexFromPattern:()=>U3,getRegularExpressionForWildcard:()=>Gse,getRegularExpressionsForWildcards:()=>XZ,getRelativePathFromDirectory:()=>w2,getRelativePathFromFile:()=>j$,getRelativePathToDirectoryOrUrl:()=>uH,getRenameLocation:()=>Hte,getReplacementSpanForContextToken:()=>O0e,getResolutionDiagnostic:()=>kce,getResolutionModeOverride:()=>LW,getResolveJsonModule:()=>Q6,getResolvePackageJsonExports:()=>Tme,getResolvePackageJsonImports:()=>mwe,getResolvedExternalModuleName:()=>Zw,getResolvedModuleFromResolution:()=>U6,getResolvedTypeReferenceDirectiveFromResolution:()=>Qoe,getRestIndicatorOfBindingOrAssignmentElement:()=>Tae,getRestParameterElementType:()=>Yke,getRightMostAssignedExpression:()=>S4,getRootDeclaration:()=>UT,getRootDirectoryOfResolutionCache:()=>Q2e,getRootLength:()=>q0,getScriptKind:()=>ule,getScriptKindFromFileName:()=>Jj,getScriptTargetFeatures:()=>u_,getSelectedEffectiveModifierFlags:()=>v1,getSelectedSyntacticModifierFlags:()=>Sc,getSemanticClassifications:()=>IYe,getSemanticJsxChildren:()=>Sp,getSetAccessorTypeAnnotationNode:()=>T5,getSetAccessorValueParameter:()=>w5,getSetExternalModuleIndicator:()=>kme,getShebang:()=>nZ,getSingleVariableOfVariableStatement:()=>D8,getSnapshotText:()=>PM,getSnippetElement:()=>fee,getSourceFileOfModule:()=>g4,getSourceFileOfNode:()=>Vo,getSourceFilePathInNewDir:()=>Ise,getSourceFileVersionAsHashFromText:()=>yte,getSourceFilesToEmit:()=>WZ,getSourceMapRange:()=>J8,getSourceMapper:()=>rMe,getSourceTextOfNodeFromSourceFile:()=>S8,getSpanOfTokenAtPosition:()=>XD,getSpellingSuggestion:()=>JB,getStartPositionOfLine:()=>KD,getStartPositionOfRange:()=>iT,getStartsOnNewLine:()=>W5,getStaticPropertiesAndClassStaticBlock:()=>cO,getStrictOptionValue:()=>d0,getStringComparer:()=>s4,getSubPatternFromSpec:()=>xwe,getSuperCallFromStatement:()=>Kee,getSuperContainer:()=>IZ,getSupportedCodeFixes:()=>CX,getSupportedExtensions:()=>qj,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>L5,getSwitchedType:()=>Jte,getSymbolId:()=>Nf,getSymbolNameForPrivateIdentifier:()=>BH,getSymbolTarget:()=>JEe,getSyntacticClassifications:()=>AYe,getSyntacticModifierFlags:()=>eT,getSyntacticModifierFlagsNoCache:()=>pme,getSynthesizedDeepClone:()=>mp,getSynthesizedDeepCloneWithReplacements:()=>Vte,getSynthesizedDeepClones:()=>g_,getSynthesizedDeepClonesWithReplacements:()=>rX,getSyntheticLeadingComments:()=>aL,getSyntheticTrailingComments:()=>cae,getTargetLabel:()=>qK,getTargetOfBindingOrAssignmentElement:()=>M4,getTemporaryModuleResolutionState:()=>e9,getTextOfConstantValue:()=>Jke,getTextOfIdentifierOrLiteral:()=>jC,getTextOfJSDocComment:()=>ij,getTextOfJsxAttributeName:()=>Yj,getTextOfJsxNamespacedName:()=>XG,getTextOfNode:()=>_h,getTextOfNodeFromSourceText:()=>nse,getTextOfPropertyName:()=>k8,getThisContainer:()=>Kb,getThisParameter:()=>R3,getTokenAtPosition:()=>wc,getTokenPosOfNode:()=>J6,getTokenSourceMapRange:()=>ub,getTouchingPropertyName:()=>VS,getTouchingToken:()=>h9,getTrailingCommentRanges:()=>L6,getTrailingSemicolonDeferringWriter:()=>DOe,getTransformers:()=>hXe,getTsBuildInfoEmitOutputFilePath:()=>s9,getTsConfigObjectLiteralExpression:()=>cG,getTsConfigPropArrayElementValue:()=>g5,getTypeAnnotationNode:()=>XH,getTypeArgumentOrTypeParameterList:()=>WEe,getTypeKeywordOfTypeOnlyImport:()=>ZW,getTypeNode:()=>tW,getTypeNodeIfAccessible:()=>vJ,getTypeParameterFromJsDoc:()=>I8,getTypeParameterOwner:()=>cZ,getTypesPackageName:()=>Vhe,getUILocale:()=>W_e,getUniqueName:()=>mJ,getUniqueSymbolId:()=>V0e,getUseDefineForClassFields:()=>KZ,getWatchErrorSummaryDiagnosticMessage:()=>Ace,getWatchFactory:()=>ite,group:()=>Ks,groupBy:()=>Ug,guessIndentation:()=>GD,handleNoEmitOptions:()=>jFe,handleWatchOptionsConfigDirTemplateSubstitution:()=>qae,hasAbstractModifier:()=>qA,hasAccessorModifier:()=>dN,hasAmbientModifier:()=>AOe,hasChangesInResolutions:()=>Lpe,hasContextSensitiveParameters:()=>iee,hasDecorators:()=>uw,hasDocComment:()=>D0e,hasDynamicName:()=>HA,hasEffectiveModifier:()=>zC,hasEffectiveModifiers:()=>NOe,hasEffectiveReadonlyModifier:()=>QH,hasExtension:()=>B$,hasImplementationTSFileExtension:()=>Twe,hasIndexSignature:()=>yJ,hasInferredType:()=>j$e,hasInitializer:()=>yg,hasInvalidEscape:()=>zH,hasJSDocNodes:()=>Gx,hasJSDocParameterTags:()=>mH,hasJSFileExtension:()=>eL,hasJsonModuleEmitEnabled:()=>nI,hasOnlyExpressionInitializer:()=>b8,hasOverrideModifier:()=>Ase,hasPossibleExternalModuleReference:()=>$ke,hasProperty:()=>bf,hasPropertyAccessExpressionWithName:()=>Nte,hasQuestionToken:()=>x4,hasRecordedExternalHelpers:()=>Cee,hasResolutionModeOverride:()=>jme,hasRestParameter:()=>yZ,hasScopeMarker:()=>lOe,hasStaticModifier:()=>G0,hasSyntacticModifier:()=>kc,hasSyntacticModifiers:()=>swe,hasTSFileExtension:()=>VG,hasTabstop:()=>K3,hasTrailingDirectorySeparator:()=>h3,hasType:()=>Yoe,hasTypeArguments:()=>q7,hasZeroOrOneAsteriskCharacter:()=>Dme,hostGetCanonicalFileName:()=>E4,hostUsesCaseSensitiveFileNames:()=>TG,idText:()=>Un,identifierIsThisKeyword:()=>KH,identifierToKeywordKind:()=>F6,identity:()=>ps,identitySourceMapConsumer:()=>mFe,ignoreSourceNewlines:()=>qme,ignoredPaths:()=>R$,importFromModuleSpecifier:()=>pG,importSyntaxAffectsModuleResolution:()=>ROe,indexOfAnyCharCode:()=>Rr,indexOfNode:()=>Rm,indicesOf:()=>On,inferredTypesContainingFile:()=>KU,injectClassNamedEvaluationHelperBlockIfMissing:()=>NW,injectClassThisAssignmentIfMissing:()=>GKe,insertImports:()=>B7e,insertSorted:()=>Hn,insertStatementAfterCustomPrologue:()=>fj,insertStatementAfterStandardPrologue:()=>tse,insertStatementsAfterCustomPrologue:()=>Mpe,insertStatementsAfterStandardPrologue:()=>rv,intersperse:()=>Nt,intrinsicTagNameToString:()=>see,introducesArgumentsExoticObject:()=>Qke,inverseJsxOptionMap:()=>pK,isAbstractConstructorSymbol:()=>vg,isAbstractModifier:()=>Ni,isAccessExpression:()=>cf,isAccessibilityModifier:()=>P0e,isAccessor:()=>O_,isAccessorModifier:()=>sW,isAliasableExpression:()=>Ij,isAmbientModule:()=>nb,isAmbientPropertyDeclaration:()=>d5,isAnyDirectorySeparator:()=>fke,isAnyImportOrBareOrAccessedRequire:()=>zpe,isAnyImportOrReExport:()=>wH,isAnyImportOrRequireStatement:()=>_j,isAnyImportSyntax:()=>f5,isAnySupportedFileExtension:()=>JOe,isApplicableVersionedTypesKey:()=>EK,isArgumentExpressionOfElementAccess:()=>x0e,isArray:()=>ua,isArrayBindingElement:()=>Em,isArrayBindingOrAssignmentElement:()=>a5,isArrayBindingOrAssignmentPattern:()=>gd,isArrayBindingPattern:()=>QE,isArrayLiteralExpression:()=>Yg,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>J4,isArrayTypeNode:()=>$8,isArrowFunction:()=>Zc,isAsExpression:()=>SU,isAssertClause:()=>eF,isAssertEntry:()=>f0,isAssertionExpression:()=>gy,isAssertsKeyword:()=>Z3,isAssignmentDeclaration:()=>dG,isAssignmentExpression:()=>Kg,isAssignmentOperator:()=>D4,isAssignmentPattern:()=>fZ,isAssignmentTarget:()=>O3,isAsteriskToken:()=>eK,isAsyncFunction:()=>BZ,isAsyncModifier:()=>U5,isAutoAccessorPropertyDeclaration:()=>g1,isAwaitExpression:()=>YT,isAwaitKeyword:()=>Zme,isBigIntLiteral:()=>ZG,isBinaryExpression:()=>ms,isBinaryLogicalOperator:()=>HZ,isBinaryOperatorToken:()=>che,isBindableObjectDefinePropertyCall:()=>I3,isBindableStaticAccessExpression:()=>gk,isBindableStaticElementAccessExpression:()=>Yh,isBindableStaticNameExpression:()=>lN,isBindingElement:()=>Zd,isBindingElementOfBareOrAccessedRequire:()=>LZ,isBindingName:()=>_4,isBindingOrAssignmentElement:()=>Joe,isBindingOrAssignmentPattern:()=>$D,isBindingPattern:()=>Uu,isBlock:()=>qu,isBlockLike:()=>yF,isBlockOrCatchScoped:()=>jpe,isBlockScope:()=>ose,isBlockScopedContainerTopLevel:()=>CZ,isBooleanLiteral:()=>sf,isBreakOrContinueStatement:()=>oj,isBreakStatement:()=>zwe,isBuild:()=>S7e,isBuildInfoFile:()=>IFe,isBuilderProgram:()=>Pce,isBundle:()=>nK,isCallChain:()=>E2,isCallExpression:()=>Od,isCallExpressionTarget:()=>L7e,isCallLikeExpression:()=>H6,isCallLikeOrFunctionLikeExpression:()=>Tpe,isCallOrNewExpression:()=>WE,isCallOrNewExpressionTarget:()=>Kce,isCallSignatureDeclaration:()=>xg,isCallToHelper:()=>QG,isCaseBlock:()=>Wc,isCaseClause:()=>eP,isCaseKeyword:()=>Wwe,isCaseOrDefaultClause:()=>fl,isCatchClause:()=>eC,isCatchClauseVariableDeclaration:()=>q_,isCatchClauseVariableDeclarationOrBindingElement:()=>Wpe,isCheckJsEnabledForFile:()=>HG,isCircularBuildOrder:()=>pF,isClassDeclaration:()=>D0,isClassElement:()=>rl,isClassExpression:()=>Qh,isClassInstanceProperty:()=>aOe,isClassLike:()=>bc,isClassMemberModifier:()=>Om,isClassNamedEvaluationHelperBlock:()=>PK,isClassOrTypeElement:()=>Pc,isClassStaticBlockDeclaration:()=>Yf,isClassThisAssignmentBlock:()=>uce,isColonToken:()=>Qme,isCommaExpression:()=>ohe,isCommaListExpression:()=>Lg,isCommaSequence:()=>lK,isCommaToken:()=>mee,isComment:()=>qW,isCommonJsExportPropertyAssignment:()=>fse,isCommonJsExportedExpression:()=>hj,isCompoundAssignment:()=>kW,isComputedNonLiteralName:()=>Ep,isComputedPropertyName:()=>f_,isConciseBody:()=>Rke,isConditionalExpression:()=>Cp,isConditionalTypeNode:()=>YE,isConstAssertion:()=>nae,isConstTypeReference:()=>Jx,isConstructSignatureDeclaration:()=>db,isConstructorDeclaration:()=>yl,isConstructorTypeNode:()=>Dm,isContextualKeyword:()=>RH,isContinueStatement:()=>Fg,isCustomPrologue:()=>sN,isDebuggerStatement:()=>yae,isDeclaration:()=>y1,isDeclarationBindingElement:()=>V6,isDeclarationFileName:()=>ey,isDeclarationName:()=>VT,isDeclarationNameOfEnumOrNamespace:()=>JZ,isDeclarationReadonly:()=>mk,isDeclarationStatement:()=>_Oe,isDeclarationWithTypeParameterChildren:()=>ase,isDeclarationWithTypeParameters:()=>sse,isDecorator:()=>Cy,isDecoratorTarget:()=>g0e,isDefaultClause:()=>fL,isDefaultImport:()=>N3,isDefaultModifier:()=>bU,isDefaultedExpandoInitializer:()=>fG,isDeleteExpression:()=>Ha,isDeleteTarget:()=>VA,isDeprecatedDeclaration:()=>uX,isDestructuringAssignment:()=>z3,isDiskPathRoot:()=>J0,isDoStatement:()=>the,isDocumentRegistryEntry:()=>pX,isDotDotDotToken:()=>eS,isDottedName:()=>Rj,isDynamicName:()=>C5,isEffectiveExternalModule:()=>u5,isEffectiveStrictModeSourceFile:()=>hOe,isElementAccessChain:()=>sOe,isElementAccessExpression:()=>T_,isEmittedFileOfProgram:()=>yce,isEmptyArrayLiteral:()=>VC,isEmptyBindingElement:()=>Boe,isEmptyBindingPattern:()=>lZ,isEmptyObjectLiteral:()=>nm,isEmptyStatement:()=>q5,isEmptyStringLiteral:()=>uG,isEntityName:()=>tb,isEntityNameExpression:()=>Dp,isEnumConst:()=>jy,isEnumDeclaration:()=>Z8,isEnumMember:()=>pb,isEqualityOperatorKind:()=>oX,isEqualsGreaterThanToken:()=>_ae,isExclamationToken:()=>q8,isExcludedFile:()=>F8e,isExclusivelyTypeOnlyImportOrExport:()=>M2e,isExpandoPropertyDeclaration:()=>B5,isExportAssignment:()=>Bm,isExportDeclaration:()=>Qg,isExportModifier:()=>H5,isExportName:()=>xee,isExportNamespaceAsDefaultDeclaration:()=>ise,isExportOrDefaultModifier:()=>lhe,isExportSpecifier:()=>X0,isExportsIdentifier:()=>PH,isExportsOrModuleExportsOrAlias:()=>xM,isExpression:()=>An,isExpressionNode:()=>ab,isExpressionOfExternalModuleImportEqualsDeclaration:()=>C0e,isExpressionOfOptionalChainRoot:()=>gH,isExpressionStatement:()=>E0,isExpressionWithTypeArguments:()=>$C,isExpressionWithTypeArgumentsInClassExtendsClause:()=>Ose,isExternalModule:()=>Mg,isExternalModuleAugmentation:()=>j7,isExternalModuleImportEqualsDeclaration:()=>WS,isExternalModuleIndicator:()=>pZ,isExternalModuleNameRelative:()=>l0,isExternalModuleReference:()=>Zg,isExternalModuleSymbol:()=>xH,isExternalOrCommonJsModule:()=>Jv,isFileLevelReservedGeneratedIdentifier:()=>s5,isFileLevelUniqueName:()=>iG,isFileProbablyExternalModule:()=>gw,isFirstDeclarationOfSymbolParameter:()=>Wte,isFixablePromiseHandler:()=>fMe,isForInOrOfStatement:()=>Rn,isForInStatement:()=>gae,isForInitializer:()=>BT,isForOfStatement:()=>$u,isForStatement:()=>QA,isFullSourceFile:()=>Yx,isFunctionBlock:()=>z7,isFunctionBody:()=>x3,isFunctionDeclaration:()=>fp,isFunctionExpression:()=>yd,isFunctionExpressionOrArrowFunction:()=>H8,isFunctionLike:()=>iu,isFunctionLikeDeclaration:()=>Rp,isFunctionLikeKind:()=>Vh,isFunctionLikeOrClassStaticBlockDeclaration:()=>g8,isFunctionOrConstructorTypeNode:()=>Mke,isFunctionOrModuleBlock:()=>F7,isFunctionSymbol:()=>OZ,isFunctionTypeNode:()=>xp,isGeneratedIdentifier:()=>Tm,isGeneratedPrivateIdentifier:()=>FA,isGetAccessor:()=>oN,isGetAccessorDeclaration:()=>n_,isGetOrSetAccessorDeclaration:()=>Hoe,isGlobalScopeAugmentation:()=>y4,isGlobalSourceFile:()=>w8,isGrammarError:()=>k3,isHeritageClause:()=>KC,isHoistedFunction:()=>P2,isHoistedVariableStatement:()=>oG,isIdentifier:()=>Ai,isIdentifierANonContextualKeyword:()=>bse,isIdentifierName:()=>K7,isIdentifierOrThisTypeNode:()=>she,isIdentifierPart:()=>UD,isIdentifierStart:()=>HD,isIdentifierText:()=>Jb,isIdentifierTypePredicate:()=>V7,isIdentifierTypeReference:()=>JG,isIfStatement:()=>aM,isIgnoredFileFromWildCardWatching:()=>xge,isImplicitGlob:()=>Ame,isImportAttribute:()=>iK,isImportAttributeName:()=>Fke,isImportAttributes:()=>GC,isImportCall:()=>Kx,isImportClause:()=>Ym,isImportDeclaration:()=>Dd,isImportEqualsDeclaration:()=>pf,isImportKeyword:()=>rM,isImportMeta:()=>b4,isImportOrExportSpecifier:()=>I2,isImportOrExportSpecifierName:()=>nX,isImportSpecifier:()=>eg,isImportTypeAssertionContainer:()=>V2,isImportTypeNode:()=>Ck,isImportableFile:()=>rie,isInComment:()=>U4,isInCompoundLikeAssignment:()=>ime,isInExpressionContext:()=>NZ,isInJSDoc:()=>cb,isInJSFile:()=>Ys,isInJSXText:()=>tle,isInJsonFile:()=>H7,isInNonReferenceComment:()=>yL,isInReferenceComment:()=>L0e,isInRightSideOfInternalImportEqualsDeclaration:()=>mF,isInString:()=>JW,isInTemplateString:()=>T0e,isInTopLevelContext:()=>lG,isInTypeQuery:()=>GH,isIncrementalBuildInfo:()=>ute,isIncrementalBundleEmitBuildInfo:()=>qFe,isIncrementalCompilation:()=>_f,isIndexSignatureDeclaration:()=>nu,isIndexedAccessTypeNode:()=>tO,isInferTypeNode:()=>Hy,isInfinityOrNaNString:()=>GG,isInitializedProperty:()=>n9,isInitializedVariable:()=>qZ,isInsideJsxElement:()=>Ote,isInsideJsxElementOrAttribute:()=>BEe,isInsideNodeModules:()=>cX,isInsideTemplateLiteral:()=>nle,isInstanceOfExpression:()=>GA,isInstantiatedModule:()=>Yhe,isInterfaceDeclaration:()=>ky,isInternalDeclaration:()=>Ipe,isInternalModuleImportEqualsDeclaration:()=>y5,isInternalName:()=>Ywe,isIntersectionTypeNode:()=>lL,isIntrinsicJsxName:()=>wG,isIterationStatement:()=>v8,isJSDoc:()=>eD,isJSDocAllType:()=>Cl,isJSDocAugmentsTag:()=>lM,isJSDocAuthorTag:()=>Hwe,isJSDocCallbackTag:()=>gee,isJSDocClassTag:()=>kU,isJSDocCommentContainingNode:()=>Xoe,isJSDocConstructSignature:()=>A3,isJSDocDeprecatedTag:()=>ihe,isJSDocEnumTag:()=>oK,isJSDocFunctionType:()=>CU,isJSDocImplementsTag:()=>Tk,isJSDocImportTag:()=>cT,isJSDocIndexSignature:()=>qpe,isJSDocLikeText:()=>Wn,isJSDocLink:()=>w1,isJSDocLinkCode:()=>tP,isJSDocLinkLike:()=>ib,isJSDocLinkPlain:()=>tF,isJSDocMemberName:()=>hh,isJSDocNameReference:()=>F4,isJSDocNamepathType:()=>lGe,isJSDocNamespaceBody:()=>dOe,isJSDocNode:()=>gZ,isJSDocNonNullableType:()=>uW,isJSDocNullableType:()=>SN,isJSDocOptionalParameter:()=>X3,isJSDocOptionalType:()=>nO,isJSDocOverloadTag:()=>rK,isJSDocOverrideTag:()=>dM,isJSDocParameterTag:()=>hw,isJSDocPrivateTag:()=>J2,isJSDocPropertyLikeTag:()=>vH,isJSDocPropertyTag:()=>vee,isJSDocProtectedTag:()=>uM,isJSDocPublicTag:()=>Uwe,isJSDocReadonlyTag:()=>iP,isJSDocReturnTag:()=>yee,isJSDocSatisfiesExpression:()=>mU,isJSDocSatisfiesTag:()=>sK,isJSDocSeeTag:()=>Jwe,isJSDocSignature:()=>U2,isJSDocTag:()=>SH,isJSDocTemplateTag:()=>tC,isJSDocThisTag:()=>Sae,isJSDocThrowsTag:()=>qwe,isJSDocTypeAlias:()=>ux,isJSDocTypeAssertion:()=>iF,isJSDocTypeExpression:()=>lv,isJSDocTypeLiteral:()=>G5,isJSDocTypeTag:()=>dW,isJSDocTypedefTag:()=>fM,isJSDocUnknownTag:()=>uGe,isJSDocUnknownType:()=>Vwe,isJSDocVariadicType:()=>bae,isJSXTagName:()=>T8,isJsonEqual:()=>eee,isJsonSourceFile:()=>qv,isJsxAttribute:()=>_b,isJsxAttributeLike:()=>Dv,isJsxAttributeName:()=>oee,isJsxAttributes:()=>wk,isJsxChild:()=>hZ,isJsxClosingElement:()=>I0,isJsxClosingFragment:()=>lW,isJsxElement:()=>R_,isJsxExpression:()=>aT,isJsxFragment:()=>$5,isJsxNamespacedName:()=>vx,isJsxOpeningElement:()=>Y0,isJsxOpeningFragment:()=>cM,isJsxOpeningLikeElement:()=>nv,isJsxOpeningLikeElementTagName:()=>OEe,isJsxSelfClosingElement:()=>mh,isJsxSpreadAttribute:()=>ZA,isJsxTagNameExpression:()=>X$,isJsxText:()=>nW,isJumpStatementTarget:()=>rJ,isKeyword:()=>Gv,isKeywordOrPunctuation:()=>Aj,isKnownSymbol:()=>ZD,isLabelName:()=>GK,isLabelOfLabeledStatement:()=>$K,isLabeledStatement:()=>dL,isLateVisibilityPaintedStatement:()=>cse,isLeftHandSideExpression:()=>MS,isLet:()=>p5,isLineBreak:()=>Ev,isLiteralComputedPropertyDeclarationName:()=>SG,isLiteralExpression:()=>B6,isLiteralExpressionOfObject:()=>Oke,isLiteralImportTypeNode:()=>Wy,isLiteralKind:()=>bH,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>Ate,isLiteralTypeLiteral:()=>M7,isLiteralTypeNode:()=>xk,isLocalName:()=>sI,isLogicalOperator:()=>X6,isLogicalOrCoalescingAssignmentExpression:()=>POe,isLogicalOrCoalescingAssignmentOperator:()=>UZ,isLogicalOrCoalescingBinaryExpression:()=>hme,isLogicalOrCoalescingBinaryOperator:()=>mme,isMappedTypeNode:()=>K8,isMemberName:()=>qD,isMetaProperty:()=>cW,isMethodDeclaration:()=>Sg,isMethodOrAccessor:()=>p4,isMethodSignature:()=>sT,isMinusToken:()=>V5,isMissingDeclaration:()=>O4,isMissingPackageJsonInfo:()=>kK,isModifier:()=>jd,isModifierKind:()=>z6,isModifierLike:()=>Fm,isModuleAugmentationExternal:()=>VE,isModuleBlock:()=>vN,isModuleBody:()=>C3,isModuleDeclaration:()=>Dh,isModuleExportName:()=>vae,isModuleExportsAccessExpression:()=>cN,isModuleIdentifier:()=>Xpe,isModuleName:()=>IU,isModuleOrEnumDeclaration:()=>aj,isModuleReference:()=>g$e,isModuleSpecifierLike:()=>jte,isModuleWithStringLiteralName:()=>xZ,isNameOfFunctionDeclaration:()=>Yce,isNameOfModuleDeclaration:()=>zW,isNamedDeclaration:()=>xf,isNamedEvaluation:()=>Yb,isNamedEvaluationSource:()=>Qw,isNamedExportBindings:()=>yH,isNamedExports:()=>QT,isNamedImportBindings:()=>mZ,isNamedImports:()=>_p,isNamedImportsOrExports:()=>zj,isNamedTupleMember:()=>YA,isNamespaceBody:()=>uOe,isNamespaceExport:()=>vm,isNamespaceExportDeclaration:()=>wy,isNamespaceImport:()=>ZE,isNamespaceReexportDeclaration:()=>NH,isNewExpression:()=>sM,isNewExpressionTarget:()=>Gce,isNoSubstitutionTemplateLiteral:()=>z5,isNodeArray:()=>f4,isNodeArrayMultiLine:()=>M8,isNodeDescendantOf:()=>G7,isNodeKind:()=>MT,isNodeLikeSystem:()=>VQ,isNodeModulesDirectory:()=>eN,isNodeWithPossibleHoistedDeclaration:()=>A8,isNonContextualKeyword:()=>M3,isNonGlobalAmbientModule:()=>rb,isNonNullAccess:()=>iae,isNonNullChain:()=>rj,isNonNullExpression:()=>P4,isNonStaticMethodOrAccessorWithPrivateName:()=>cce,isNotEmittedStatement:()=>bN,isNullishCoalesce:()=>Uoe,isNumber:()=>k7,isNumericLiteral:()=>mx,isNumericLiteralName:()=>nL,isObjectBindingElementWithoutPropertyName:()=>dJ,isObjectBindingOrAssignmentElement:()=>_Z,isObjectBindingOrAssignmentPattern:()=>Yc,isObjectBindingPattern:()=>fb,isObjectLiteralElement:()=>cj,isObjectLiteralElementLike:()=>FC,isObjectLiteralExpression:()=>Ld,isObjectLiteralMethod:()=>zT,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>EZ,isObjectTypeDeclaration:()=>PG,isOmittedExpression:()=>Eh,isOptionalChain:()=>By,isOptionalChainRoot:()=>D2,isOptionalDeclaration:()=>XT,isOptionalJSDocPropertyLikeTag:()=>M5,isOptionalTypeNode:()=>oM,isOuterExpression:()=>xN,isOutermostOptionalChain:()=>nj,isOverrideModifier:()=>Il,isPackageJsonInfo:()=>CK,isPackedArrayLiteral:()=>Mme,isParameter:()=>Fl,isParameterPropertyDeclaration:()=>OC,isParameterPropertyModifier:()=>$$,isParenthesizedExpression:()=>Tu,isParenthesizedTypeNode:()=>eO,isParseTreeNode:()=>joe,isPartOfParameterDeclaration:()=>k4,isPartOfTypeNode:()=>jA,isPartOfTypeQuery:()=>AZ,isPartiallyEmittedExpression:()=>mw,isPatternMatch:()=>pCe,isPinnedComment:()=>Rpe,isPlainJsFile:()=>tG,isPlusToken:()=>Xf,isPossiblyTypeArgumentPosition:()=>cJ,isPostfixUnaryExpression:()=>mae,isPrefixUnaryExpression:()=>z2,isPrimitiveLiteralValue:()=>tM,isPrivateIdentifier:()=>wl,isPrivateIdentifierClassElementDeclaration:()=>qb,isPrivateIdentifierPropertyAccessExpression:()=>iN,isPrivateIdentifierSymbol:()=>xse,isProgramUptoDate:()=>XU,isPrologueDirective:()=>cw,isPropertyAccessChain:()=>hH,isPropertyAccessEntityNameExpression:()=>Bj,isPropertyAccessExpression:()=>ba,isPropertyAccessOrQualifiedName:()=>sj,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>qoe,isPropertyAssignment:()=>Ih,isPropertyDeclaration:()=>vu,isPropertyName:()=>C_,isPropertyNameLiteral:()=>Xp,isPropertySignature:()=>hx,isPrototypeAccess:()=>Y6,isPrototypePropertyAssignment:()=>Qpe,isPunctuation:()=>MH,isPushOrUnshiftIdentifier:()=>ewe,isQualifiedName:()=>tS,isQuestionDotToken:()=>tK,isQuestionOrExclamationToken:()=>Nae,isQuestionOrPlusOrMinusToken:()=>n8e,isQuestionToken:()=>XE,isReadonlyKeyword:()=>pae,isReadonlyKeywordOrPlusOrMinusToken:()=>Aae,isRecognizedTripleSlashComment:()=>Vke,isReferenceFileLocation:()=>OW,isReferencedFile:()=>z4,isRegularExpressionLiteral:()=>Yme,isRequireCall:()=>es,isRequireVariableStatement:()=>lb,isRestParameter:()=>RS,isRestTypeNode:()=>qC,isReturnStatement:()=>fm,isReturnStatementWithFixablePromiseHandler:()=>oDe,isRightSideOfAccessExpression:()=>by,isRightSideOfInstanceofExpression:()=>Fse,isRightSideOfPropertyAccess:()=>WW,isRightSideOfQualifiedName:()=>S0e,isRightSideOfQualifiedNameOrPropertyAccess:()=>ZH,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>LOe,isRootedDiskPath:()=>LC,isSameEntityName:()=>G6,isSatisfiesExpression:()=>ia,isSemicolonClassElement:()=>L4,isSetAccessor:()=>Gw,isSetAccessorDeclaration:()=>zc,isShiftOperatorOrHigher:()=>ahe,isShorthandAmbientModuleSymbol:()=>nG,isShorthandPropertyAssignment:()=>Q0,isSideEffectImport:()=>j5,isSignedNumericLiteral:()=>rme,isSimpleCopiableExpression:()=>Sx,isSimpleInlineableExpression:()=>cI,isSimpleParameterList:()=>oge,isSingleOrDoubleQuote:()=>xj,isSourceElement:()=>Nwe,isSourceFile:()=>ul,isSourceFileFromLibrary:()=>xJ,isSourceFileJS:()=>$v,isSourceFileNotJson:()=>WA,isSourceMapping:()=>ege,isSpecialPropertyDeclaration:()=>yse,isSpreadAssignment:()=>H2,isSpreadElement:()=>yx,isStatement:()=>ll,isStatementButNotDeclaration:()=>K$,isStatementOrBlock:()=>rN,isStatementWithLocals:()=>Ope,isStatic:()=>Xd,isStaticModifier:()=>oW,isString:()=>Yu,isStringANonContextualKeyword:()=>ov,isStringAndEmptyAnonymousObjectIntersection:()=>A0e,isStringDoubleQuoted:()=>D3,isStringLiteral:()=>Kf,isStringLiteralLike:()=>i_,isStringLiteralOrJsxExpression:()=>jke,isStringLiteralOrTemplate:()=>ple,isStringOrNumericLiteralLike:()=>Xb,isStringOrRegularExpressionOrTemplateLiteral:()=>I0e,isStringTextContainingNode:()=>W6,isSuperCall:()=>m5,isSuperKeyword:()=>aW,isSuperProperty:()=>Xx,isSupportedSourceFileName:()=>Qse,isSwitchStatement:()=>hee,isSyntaxList:()=>iC,isSyntheticExpression:()=>ehe,isSyntheticReference:()=>kk,isTagName:()=>Xce,isTaggedTemplateExpression:()=>Kv,isTaggedTemplateTag:()=>JK,isTemplateExpression:()=>dm,isTemplateHead:()=>nM,isTemplateLiteral:()=>y8,isTemplateLiteralKind:()=>OA,isTemplateLiteralToken:()=>wpe,isTemplateLiteralTypeNode:()=>J5,isTemplateLiteralTypeSpan:()=>X8,isTemplateMiddle:()=>pee,isTemplateMiddleOrTemplateTail:()=>P7,isTemplateSpan:()=>Og,isTemplateTail:()=>rW,isTextWhiteSpaceLike:()=>R0e,isThis:()=>H4,isThisContainerOrFunctionBlock:()=>mse,isThisIdentifier:()=>JA,isThisInTypeQuery:()=>L8,isThisInitializedDeclaration:()=>T3,isThisInitializedObjectBindingExpression:()=>SOe,isThisProperty:()=>gj,isThisTypeNode:()=>uL,isThisTypeParameter:()=>KG,isThisTypePredicate:()=>L2,isThrowStatement:()=>iO,isToken:()=>A7,isTokenKind:()=>RT,isTraceEnabled:()=>sF,isTransientSymbol:()=>m4,isTrivia:()=>x5,isTryStatement:()=>Q8,isTupleTypeNode:()=>G8,isTypeAlias:()=>MZ,isTypeAliasDeclaration:()=>k1,isTypeAssertionExpression:()=>A4,isTypeDeclaration:()=>Xj,isTypeElement:()=>Xh,isTypeKeyword:()=>y9,isTypeKeywordTokenOrIdentifier:()=>$W,isTypeLiteralNode:()=>Im,isTypeNode:()=>Qa,isTypeNodeKind:()=>zse,isTypeOfExpression:()=>Ip,isTypeOnlyExportDeclaration:()=>O7,isTypeOnlyImportDeclaration:()=>L7,isTypeOnlyImportOrExportDeclaration:()=>j6,isTypeOperatorNode:()=>yN,isTypeParameterDeclaration:()=>Yp,isTypePredicateNode:()=>Sk,isTypeQueryNode:()=>C1,isTypeReferenceNode:()=>M_,isTypeReferenceType:()=>Y$,isTypeUsableAsPropertyName:()=>px,isUMDExportSymbol:()=>D5,isUnaryExpression:()=>Epe,isUnaryExpressionWithWrite:()=>Dpe,isUnicodeIdentifierStart:()=>yke,isUnionTypeNode:()=>gx,isUrl:()=>_ke,isValidBigIntString:()=>tee,isValidESSymbolDeclaration:()=>aG,isValidTypeOnlyAliasUseSite:()=>q3,isValueSignatureDeclaration:()=>F2,isVarAwaitUsing:()=>q6,isVarConst:()=>W7,isVarConstLike:()=>kZ,isVarUsing:()=>pj,isVariableDeclaration:()=>$c,isVariableDeclarationInVariableStatement:()=>sG,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>E3,isVariableDeclarationInitializedToRequire:()=>AH,isVariableDeclarationList:()=>Xv,isVariableLike:()=>mj,isVariableLikeOrAccessor:()=>Jpe,isVariableStatement:()=>Zh,isVoidExpression:()=>rd,isWatchSet:()=>AG,isWhileStatement:()=>xU,isWhiteSpaceLike:()=>tN,isWhiteSpaceSingleLine:()=>_k,isWithStatement:()=>Y8,isWriteAccess:()=>Wj,isWriteOnlyAccess:()=>Bse,isYieldExpression:()=>hae,jsxModeNeedsExplicitImport:()=>QEe,keywordPart:()=>Qm,last:()=>Bu,lastOrUndefined:()=>Y_,length:()=>Z,libMap:()=>p8e,libs:()=>Rae,lineBreakPart:()=>zte,loadModuleFromGlobalCache:()=>X8e,loadWithModeAwareCache:()=>kM,makeIdentifierFromModuleName:()=>v$e,makeImport:()=>vL,makeStringLiteral:()=>YW,mangleScopedPackageName:()=>Jee,map:()=>$i,mapAllOrFail:()=>Vb,mapDefined:()=>Dc,mapDefinedIterator:()=>up,mapEntries:()=>C2,mapIterator:()=>Dl,mapOneOrMany:()=>K0e,mapToDisplayParts:()=>Cw,matchFiles:()=>Cwe,matchPatternOrExact:()=>tL,matchedText:()=>z_e,matchesExclude:()=>Gae,maxBy:()=>uCe,maybeBind:()=>wu,maybeSetLocalizedDiagnosticMessages:()=>P$e,memoize:()=>H0,memoizeOne:()=>l_,min:()=>dCe,minAndMax:()=>KE,missingFileModifiedTime:()=>PC,modifierToFlag:()=>Vy,modifiersToFlags:()=>tI,moduleExportNameIsDefault:()=>MC,moduleExportNameTextEscaped:()=>x8,moduleExportNameTextUnescaped:()=>Kw,moduleOptionDeclaration:()=>h8e,moduleResolutionIsEqualTo:()=>Wke,moduleResolutionNameAndModeGetter:()=>GU,moduleResolutionOptionDeclarations:()=>oTe,moduleResolutionSupportsPackageJsonExportsAndImports:()=>Uj,moduleResolutionUsesNodeModules:()=>OM,moduleSpecifierToValidIdentifier:()=>SJ,moduleSpecifiers:()=>cF,moduleSymbolToValidIdentifier:()=>eie,moveEmitHelpers:()=>eW,moveRangeEnd:()=>uwe,moveRangePastDecorators:()=>I4,moveRangePastModifiers:()=>JE,moveRangePos:()=>O8,moveSyntheticComments:()=>lae,mutateMap:()=>yk,mutateMapSkippingNewValues:()=>pN,needsParentheses:()=>gJ,needsScopeMarker:()=>Koe,newCaseClauseTracker:()=>dX,newPrivateEnvironment:()=>Qee,noEmitNotification:()=>ete,noEmitSubstitution:()=>FK,noTransformers:()=>mXe,noTruncationMaximumTruncationLength:()=>bp,nodeCanBeDecorated:()=>DH,nodeHasName:()=>ta,nodeIsDecorated:()=>IH,nodeIsMissing:()=>Mm,nodeIsPresent:()=>jT,nodeIsSynthesized:()=>um,nodeModuleNameResolver:()=>SW,nodeModulesPathPart:()=>nP,nodeNextJsonConfigResolver:()=>$8e,nodeOrChildIsDecorated:()=>yj,nodeOverlapsWithStartEnd:()=>sJ,nodePosToString:()=>ngt,nodeSeenTracker:()=>GW,nodeStartsNewLexicalEnvironment:()=>ome,noop:()=>Za,noopFileWatcher:()=>iJ,normalizePath:()=>Kd,normalizeSlashes:()=>Ch,normalizeSpans:()=>ype,not:()=>voe,notImplemented:()=>ld,notImplementedResolver:()=>hce,nullNodeConverters:()=>aee,nullParenthesizerRules:()=>Pwe,nullTransformationContext:()=>mge,objectAllocator:()=>xd,operatorPart:()=>sS,optionDeclarations:()=>zS,optionMapToObject:()=>gK,optionsAffectingProgramStructure:()=>yhe,optionsForBuild:()=>q2,optionsForWatch:()=>mK,optionsHaveChanges:()=>CH,or:()=>ow,orderedRemoveItem:()=>I$,orderedRemoveItemAt:()=>Jw,packageIdToPackageName:()=>dj,packageIdToString:()=>h4,parameterIsThisKeyword:()=>B3,parameterNamePart:()=>yb,parseBaseNodeFactory:()=>kGe,parseBigInt:()=>Qd,parseBuildCommand:()=>x8e,parseCommandLine:()=>LU,parseCommandLineWorker:()=>Aee,parseConfigFileTextToJson:()=>Pee,parseConfigFileWithSystem:()=>Nce,parseConfigHostFromCompilerHostLike:()=>z2e,parseCustomTypeOption:()=>zae,parseIsolatedEntityName:()=>sO,parseIsolatedJSDocComment:()=>PU,parseJSDocTypeExpressionForTests:()=>Pgt,parseJsonConfigFileContent:()=>zgt,parseJsonSourceFileConfigFileContent:()=>whe,parseJsonText:()=>Mae,parseListTypeOption:()=>OGe,parseNodeFactory:()=>mL,parseNodeModuleFromPath:()=>Mhe,parsePackageName:()=>jhe,parsePseudoBigInt:()=>_U,parseValidBigInt:()=>Ome,pasteEdits:()=>UNe,patchWriteFileEnsuringDirectory:()=>YQ,pathContainsNodeModules:()=>vM,pathIsAbsolute:()=>QQ,pathIsBareSpecifier:()=>ZQ,pathIsRelative:()=>t_,patternText:()=>_Ce,performIncrementalCompilation:()=>Rce,performance:()=>l$e,positionBelongsToNode:()=>Lte,positionIsASICandidate:()=>sX,positionIsSynthesized:()=>hN,positionsAreOnSameLine:()=>sv,preProcessFile:()=>JYe,probablyUsesSemicolons:()=>$te,processCommentPragmas:()=>hhe,processPragmasIntoFields:()=>iTe,processTaggedTemplateExpression:()=>bFe,programContainsEsModules:()=>Rte,programContainsModules:()=>F0e,projectReferenceIsEqualTo:()=>Ape,propertyNamePart:()=>tX,pseudoBigIntToString:()=>z8,punctuationPart:()=>Bf,pushIfUnique:()=>Xu,quote:()=>_le,quotePreferenceFromString:()=>uJ,rangeContainsPosition:()=>xx,rangeContainsPositionExclusive:()=>Pte,rangeContainsRange:()=>bw,rangeContainsRangeExclusive:()=>i2,rangeContainsStartEnd:()=>HW,rangeEndIsOnSameLineAsRangeStart:()=>_N,rangeEndPositionsAreOnSameLine:()=>D$e,rangeEquals:()=>lm,rangeIsOnSingleLine:()=>F8,rangeOfNode:()=>ZZ,rangeOfTypeParameters:()=>fU,rangeOverlapsWithStartEnd:()=>oJ,rangeStartIsOnSameLineAsRangeEnd:()=>I$e,rangeStartPositionsAreOnSameLine:()=>$T,readBuilderProgram:()=>Bce,readConfigFile:()=>Vae,readJson:()=>IG,readJsonConfigFile:()=>fTe,readJsonOrUndefined:()=>Rse,reduceEachLeadingCommentRange:()=>hpe,reduceEachTrailingCommentRange:()=>z$,reduceLeft:()=>$m,reduceLeftIterator:()=>ct,reducePathComponents:()=>gc,refactor:()=>vX,regExpEscape:()=>jOe,regularExpressionFlagToCharacterCode:()=>igt,relativeComplement:()=>ea,removeAllComments:()=>Hme,removeEmitHelper:()=>dee,removeExtension:()=>j8,removeFileExtension:()=>Qx,removeIgnoredPath:()=>Ece,removeMinAndVersionNumbers:()=>D$,removePrefix:()=>iH,removeSuffix:()=>eH,removeTrailingDirectorySeparator:()=>OE,repeatString:()=>LM,replaceElement:()=>m3,replaceFirstStar:()=>rL,resolutionExtensionIsTSOrJson:()=>QZ,resolveConfigFileProjectName:()=>o7e,resolveJSModule:()=>uKe,resolveLibrary:()=>DTe,resolveModuleName:()=>TK,resolveModuleNameFromCache:()=>lKe,resolvePackageNameToPackageJson:()=>z8e,resolvePath:()=>w7,resolveProjectReferencePath:()=>MW,resolveTripleslashReference:()=>BK,resolveTypeReferenceDirective:()=>rKe,resolvingEmptyArray:()=>vZ,returnFalse:()=>uk,returnNoopFileWatcher:()=>_0,returnTrue:()=>ql,returnUndefined:()=>FT,returnsPromise:()=>uMe,sameFlatMap:()=>Xl,sameMap:()=>$s,sameMapping:()=>uFe,scanTokenAtPosition:()=>Xke,scanner:()=>rS,semanticDiagnosticsOptionDeclarations:()=>Bae,serializeCompilerOptions:()=>gTe,server:()=>y,servicesVersion:()=>aZe,setCommentRange:()=>Xg,setConfigFileInOptions:()=>bTe,setConstantValue:()=>K0,setEmitFlags:()=>De,setGetSourceFileAsHashVersioned:()=>Kge,setIdentifierAutoGenerate:()=>yU,setIdentifierGeneratedImportReference:()=>$me,setIdentifierTypeArguments:()=>Zx,setInternalEmitFlags:()=>aae,setLocalizedDiagnosticMessages:()=>A$e,setNodeChildren:()=>Gwe,setNodeFlags:()=>R$e,setObjectAllocator:()=>oU,setOriginalNode:()=>Wo,setParent:()=>dp,setParentRecursive:()=>G3,setPrivateIdentifier:()=>r9,setSnippetElement:()=>Jme,setSourceMapRange:()=>w_,setStackTraceLimit:()=>V3e,setStartsOnNewLine:()=>Vs,setSyntheticLeadingComments:()=>pw,setSyntheticTrailingComments:()=>Qj,setSys:()=>Xht,setSysLog:()=>f$e,setTextRange:()=>Fn,setTextRangeEnd:()=>Gj,setTextRangePos:()=>qG,setTextRangePosEnd:()=>KT,setTextRangePosWidth:()=>$3,setTokenSourceMapRange:()=>Ume,setTypeNode:()=>Fwe,setUILocale:()=>jQ,setValueDeclaration:()=>YD,shouldAllowImportingTsExtension:()=>DK,shouldPreserveConstEnums:()=>ph,shouldUseUriStyleNodeCoreModules:()=>rz,showModuleSpecifier:()=>Wse,signatureHasRestParameter:()=>Wu,signatureToDisplayParts:()=>iX,single:()=>N6,singleElementArray:()=>Rl,singleIterator:()=>Qy,singleOrMany:()=>Hu,singleOrUndefined:()=>vp,skipAlias:()=>ym,skipConstraint:()=>v9,skipOuterExpressions:()=>ug,skipParentheses:()=>J_,skipPartiallyEmittedExpressions:()=>dh,skipTrivia:()=>fd,skipTypeChecking:()=>W8,skipTypeCheckingIgnoringNoCheck:()=>qOe,skipTypeParentheses:()=>RZ,skipWhile:()=>sw,sliceAfter:()=>$j,some:()=>En,sortAndDeduplicate:()=>tr,sortAndDeduplicateDiagnostics:()=>qw,sourceFileAffectingCompilerOptions:()=>Dee,sourceFileMayBeEmitted:()=>Pj,sourceMapCommentRegExp:()=>lFe,sourceMapCommentRegExpDontCareLineStart:()=>MKe,spacePart:()=>dg,spanMap:()=>$f,startEndContainsRange:()=>KK,startEndOverlapsWithStartEnd:()=>UW,startOnNewLine:()=>T1,startTracing:()=>L$,startsWith:()=>xl,startsWithDirectory:()=>T7,startsWithUnderscore:()=>tie,startsWithUseStrict:()=>pGe,stringContainsAt:()=>H7e,stringToToken:()=>fH,stripQuotes:()=>B2,supportedDeclarationExtensions:()=>wwe,supportedJSExtensionsFlat:()=>P5,supportedLocaleDirectories:()=>Cke,supportedTSExtensionsFlat:()=>Yse,supportedTSImplementationExtensions:()=>Pme,suppressLeadingAndTrailingTrivia:()=>Lk,suppressLeadingTrivia:()=>gF,suppressTrailingTrivia:()=>J0e,symbolEscapedNameNoDefault:()=>Bte,symbolName:()=>Bc,symbolNameNoDefault:()=>Ak,symbolToDisplayParts:()=>TN,sys:()=>hy,sysLog:()=>Aoe,tagNamesAreEquivalent:()=>Cg,takeWhile:()=>zQ,targetOptionDeclaration:()=>m8e,testFormatSettings:()=>wEe,textChangeRangeIsUnchanged:()=>xke,textChangeRangeNewSpan:()=>n5,textChanges:()=>Gs,textOrKeywordPart:()=>j0e,textPart:()=>Sw,textRangeContainsPositionInclusive:()=>Roe,textRangeContainsTextSpan:()=>Ry,textRangeIntersectsWithTextSpan:()=>Ske,textSpanContainsPosition:()=>bke,textSpanContainsTextRange:()=>U$,textSpanContainsTextSpan:()=>X3e,textSpanEnd:()=>ag,textSpanIntersection:()=>Y3e,textSpanIntersectsWith:()=>oZ,textSpanIntersectsWithPosition:()=>sZ,textSpanIntersectsWithTextSpan:()=>qg,textSpanIsEmpty:()=>H$,textSpanOverlap:()=>rZ,textSpanOverlapsWith:()=>J$,textSpansEqual:()=>ez,textToKeywordObj:()=>ZB,timestamp:()=>mm,toArray:()=>LS,toBuilderFileEmit:()=>q2e,toBuilderStateFileInfoForMultiEmit:()=>J2e,toEditorSettings:()=>Tye,toFileNameLowerCase:()=>OS,toPath:()=>dd,toProgramEmitPending:()=>Bge,toSorted:()=>du,tokenIsIdentifierOrKeyword:()=>FS,tokenIsIdentifierOrKeywordOrGreaterThan:()=>ME,tokenToString:()=>Ef,trace:()=>su,tracing:()=>us,tracingEnabled:()=>Soe,transferSourceFileChildren:()=>xae,transform:()=>o1t,transformClassFields:()=>tXe,transformDeclarations:()=>pce,transformECMAScriptModule:()=>wFe,transformES2015:()=>m2e,transformES2016:()=>kFe,transformES2017:()=>sXe,transformES2018:()=>aXe,transformES2019:()=>cXe,transformES2020:()=>lXe,transformES2021:()=>OK,transformESDecorators:()=>oXe,transformESNext:()=>u2e,transformGenerators:()=>h2e,transformImpliedNodeFormatDependentModule:()=>y2e,transformJsx:()=>p2e,transformLegacyDecorators:()=>c2e,transformModule:()=>_ce,transformNamedEvaluation:()=>mb,transformNodes:()=>pge,transformSystemModule:()=>g2e,transformTypeScript:()=>eXe,transpile:()=>_Me,transpileDeclaration:()=>Dyt,transpileModule:()=>aye,transpileOptionValueCompilerOptions:()=>hW,tryAddToSet:()=>dc,tryAndIgnoreErrors:()=>Kte,tryCast:()=>ac,tryDirectoryExists:()=>aX,tryExtractTSExtension:()=>eU,tryFileExists:()=>nz,tryGetClassExtendingExpressionWithTypeArguments:()=>Lse,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>UE,tryGetDirectories:()=>XEe,tryGetExtensionFromPath:()=>Pg,tryGetImportFromModuleSpecifier:()=>wj,tryGetJSDocSatisfiesTypeNode:()=>Bme,tryGetModuleNameFromFile:()=>kee,tryGetModuleSpecifierFromDeclaration:()=>J7,tryGetNativePerformanceHooks:()=>c$e,tryGetPropertyAccessOrIdentifierToString:()=>iI,tryGetPropertyNameOfBindingOrAssignmentElement:()=>Dae,tryGetSourceMappingURL:()=>Gee,tryGetTextOfPropertyName:()=>rG,tryParseJson:()=>jj,tryParsePattern:()=>dU,tryParsePatterns:()=>Zse,tryParseRawSourceMap:()=>RKe,tryReadDirectory:()=>Gte,tryReadFile:()=>OU,tryRemoveDirectoryPrefix:()=>Nme,tryRemoveExtension:()=>XA,tryRemovePrefix:()=>ZR,tryRemoveSuffix:()=>fCe,typeAcquisitionDeclarations:()=>jae,typeAliasNamePart:()=>W0e,typeDirectiveIsEqualTo:()=>Ppe,typeKeywords:()=>Mte,typeParameterNamePart:()=>xw,typeToDisplayParts:()=>MM,unchangedPollThresholds:()=>XB,unchangedTextChangeRange:()=>tv,unescapeLeadingUnderscores:()=>Ba,unmangleScopedPackageName:()=>xW,unorderedRemoveItem:()=>N$,unreachableCodeIsError:()=>Hj,unsetNodeChildren:()=>bee,unusedLabelIsError:()=>Eme,unwrapInnermostStatementOfLabel:()=>TZ,unwrapParenthesizedExpression:()=>Awe,updateErrorForNoInputFiles:()=>Ihe,updateLanguageServiceSourceFile:()=>qDe,updateMissingFilePathsWatch:()=>OFe,updateResolutionField:()=>BU,updateSharedExtendedConfigFileWatcher:()=>D2e,updateSourceFile:()=>mhe,updateWatchingWildcardDirectories:()=>Sge,usingSingleLineStringWriter:()=>SZ,utf16EncodeAsString:()=>ej,validateLocaleAndSetLanguage:()=>y3,version:()=>L,versionMajorMinor:()=>N,visitArray:()=>oce,visitCommaListElements:()=>sce,visitEachChild:()=>Fo,visitFunctionBody:()=>Po,visitIterationBody:()=>E1,visitLexicalEnvironment:()=>YTe,visitNode:()=>on,visitNodes:()=>ts,visitParameterList:()=>Af,walkUpBindingElementsAndPatterns:()=>tj,walkUpOuterExpressions:()=>t8e,walkUpParenthesizedExpressions:()=>uN,walkUpParenthesizedTypes:()=>bG,walkUpParenthesizedTypesAndGetParentAndChild:()=>Dj,whitespaceOrMapCommentRegExp:()=>Ek,writeCommentRange:()=>YH,writeFile:()=>Nse,writeFileEnsuringDirectories:()=>zZ,zipWith:()=>Ct}),l.exports=b(w);var N="5.6",L="5.6.2",B=(t=>(t[t.LessThan=-1]="LessThan",t[t.EqualTo=0]="EqualTo",t[t.GreaterThan=1]="GreaterThan",t))(B||{}),F=[],Y=new Map;function Z(t){return t!==void 0?t.length:0}function ee(t,n){if(t!==void 0)for(let a=0;a=0;a--){let u=n(t[a],a);if(u)return u}}function Je(t,n){if(t!==void 0)for(let a=0;a=0;u--){let m=t[u];if(n(m,u))return m}}function _n(t,n,a){if(t===void 0)return-1;for(let u=a??0;u=0;u--)if(n(t[u],u))return u;return-1}function dr(t,n,a=p8){if(t!==void 0){for(let u=0;u{let[g,v]=n(m,u);a.set(g,v)}),a}function En(t,n){if(t!==void 0)if(n!==void 0){for(let a=0;a0;return!1}function IE(t,n,a){let u;for(let m=0;mt[v])}function uu(t,n){let a=[];for(let u=0;u0&&u(n,t[v-1]))return!1;if(v0&&Se.assertGreaterThanOrEqual(a(n[g],n[g-1]),0);t:for(let v=m;mv&&Se.assertGreaterThanOrEqual(a(t[m],t[m-1]),0),a(n[g],t[m])){case-1:u.push(n[g]);continue e;case 0:continue e;case 1:continue t}}return u}function ar(t,n){return n===void 0?t:t===void 0?[n]:(t.push(n),t)}function pu(t,n){return t===void 0?n:n===void 0?t:ua(t)?ua(n)?Pl(t,n):ar(t,n):ua(n)?ar(n,t):[t,n]}function Yl(t,n){return n<0?t.length+n:n}function Ho(t,n,a,u){if(n===void 0||n.length===0)return t;if(t===void 0)return n.slice(a,u);a=a===void 0?0:Yl(n,a),u=u===void 0?n.length:Yl(n,u);for(let m=a;ma(t[u],t[m])||m_(u,m))}function du(t,n){return t.length===0?F:t.slice().sort(n)}function*Ws(t){for(let n=t.length-1;n>=0;n--)yield t[n]}function lm(t,n,a,u){for(;at?.at(n):(t,n)=>{if(t!==void 0&&(n=Yl(t,n),n>1),k=a(t[x],x);switch(u(k,n)){case-1:g=x+1;break;case 0:return x;case 1:v=x-1;break}}return~g}function $m(t,n,a,u,m){if(t&&t.length>0){let g=t.length;if(g>0){let v=u===void 0||u<0?0:u,x=m===void 0||v+m>g-1?g-1:v+m,k;for(arguments.length<=2?(k=t[v],v++):k=a;v<=x;)k=n(k,t[v],v),v++;return k}}return a}var NE=Object.prototype.hasOwnProperty;function bf(t,n){return NE.call(t,n)}function QV(t,n){return NE.call(t,n)?t[n]:void 0}function Zy(t){let n=[];for(let a in t)NE.call(t,a)&&n.push(a);return n}function VD(t){let n=[];do{let a=Object.getOwnPropertyNames(t);for(let u of a)Xu(n,u)}while(t=Object.getPrototypeOf(t));return n}function k0(t){let n=[];for(let a in t)NE.call(t,a)&&n.push(t[a]);return n}function r4(t,n){let a=new Array(t);for(let u=0;u100&&a>n.length>>1){let x=n.length-a;n.copyWithin(0,a),n.length=x,a=0}return v}return{enqueue:m,dequeue:g,isEmpty:u}}function yoe(t,n){let a=new Map,u=0;function*m(){for(let v of a.values())ua(v)?yield*v:yield v}let g={has(v){let x=t(v);if(!a.has(x))return!1;let k=a.get(x);return ua(k)?dr(k,v,n):n(k,v)},add(v){let x=t(v);if(a.has(x)){let k=a.get(x);if(ua(k))dr(k,v,n)||(k.push(v),u++);else{let T=k;n(T,v)||(a.set(x,[T,v]),u++)}}else a.set(x,v),u++;return this},delete(v){let x=t(v);if(!a.has(x))return!1;let k=a.get(x);if(ua(k)){for(let T=0;Tm(),[Symbol.toStringTag]:a[Symbol.toStringTag]};return g}function ua(t){return Array.isArray(t)}function LS(t){return ua(t)?t:[t]}function Yu(t){return typeof t=="string"}function k7(t){return typeof t=="number"}function ac(t,n){return t!==void 0&&n(t)?t:void 0}function $d(t,n){return t!==void 0&&n(t)?t:Se.fail(`Invalid cast. The supplied value ${t} did not pass the test '${Se.getFunctionName(n)}'.`)}function Za(t){}function uk(){return!1}function ql(){return!0}function FT(){}function ps(t){return t}function ff(t){return t.toLowerCase()}var U_=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g;function OS(t){return U_.test(t)?t.replace(U_,ff):t}function ld(){throw new Error("Not implemented")}function H0(t){let n;return()=>(t&&(n=t(),t=void 0),n)}function l_(t){let n=new Map;return a=>{let u=`${typeof a}:${a}`,m=n.get(u);return m===void 0&&!n.has(u)&&(m=t(a),n.set(u,m)),m}}var lCe=(t=>(t[t.None=0]="None",t[t.Normal=1]="Normal",t[t.Aggressive=2]="Aggressive",t[t.VeryAggressive=3]="VeryAggressive",t))(lCe||{});function p8(t,n){return t===n}function rw(t,n){return t===n||t!==void 0&&n!==void 0&&t.toUpperCase()===n.toUpperCase()}function ud(t,n){return p8(t,n)}function cx(t,n){return t===n?0:t===void 0?-1:n===void 0?1:tn(a,u)===-1?a:u)}function RQ(t,n){return t===n?0:t===void 0?-1:n===void 0?1:(t=t.toUpperCase(),n=n.toUpperCase(),tn?1:0)}function A6(t,n){return t===n?0:t===void 0?-1:n===void 0?1:(t=t.toLowerCase(),n=n.toLowerCase(),tn?1:0)}function Jg(t,n){return cx(t,n)}function s4(t){return t?RQ:Jg}var Wht=(()=>{return n;function t(a,u,m){if(a===u)return 0;if(a===void 0)return-1;if(u===void 0)return 1;let g=m(a,u);return g<0?-1:g>0?1:0}function n(a){let u=new Intl.Collator(a,{usage:"sort",sensitivity:"variant",numeric:!0}).compare;return(m,g)=>t(m,g,u)}})(),im,BQ;function W_e(){return BQ}function jQ(t){BQ!==t&&(BQ=t,im=void 0)}function WQ(t,n){return im??(im=Wht(BQ)),im(t,n)}function p1(t,n,a,u){return t===n?0:t===void 0?-1:n===void 0?1:u(t[a],n[a])}function QI(t,n){return m_(t?1:0,n?1:0)}function JB(t,n,a){let u=Math.max(2,Math.floor(t.length*.34)),m=Math.floor(t.length*.4)+1,g;for(let v of n){let x=a(v);if(x!==void 0&&Math.abs(x.length-t.length)<=u){if(x===t||x.length<3&&x.toLowerCase()!==t.toLowerCase())continue;let k=e$e(t,x,m-.1);if(k===void 0)continue;Se.assert(ka?x-a:1),I=Math.floor(n.length>a+x?a+x:n.length);m[0]=x;let A=x;for(let R=1;Ra)return;let M=u;u=m,m=M}let v=u[n.length];return v>a?void 0:v}function xh(t,n,a){let u=t.length-n.length;return u>=0&&(a?rw(t.slice(u),n):t.indexOf(n,u)===u)}function eH(t,n){return xh(t,n)?t.slice(0,t.length-n.length):t}function fCe(t,n){return xh(t,n)?t.slice(0,t.length-n.length):void 0}function D$(t){let n=t.length;for(let a=n-1;a>0;a--){let u=t.charCodeAt(a);if(u>=48&&u<=57)do--a,u=t.charCodeAt(a);while(a>0&&u>=48&&u<=57);else if(a>4&&(u===110||u===78)){if(--a,u=t.charCodeAt(a),u!==105&&u!==73||(--a,u=t.charCodeAt(a),u!==109&&u!==77))break;--a,u=t.charCodeAt(a)}else break;if(u!==45&&u!==46)break;n=a}return n===t.length?t:t.slice(0,n)}function I$(t,n){for(let a=0;aa===n)}function hg(t,n){for(let a=0;am&&(m=x.prefix.length,u=v)}return u}function xl(t,n,a){return a?rw(t.slice(0,n.length),n):t.lastIndexOf(n,0)===0}function iH(t,n){return xl(t,n)?t.substr(n.length):t}function ZR(t,n,a=ps){return xl(a(t),a(n))?t.substring(n.length):void 0}function pCe({prefix:t,suffix:n},a){return a.length>=t.length+n.length&&xl(a,t)&&xh(a,n)}function wv(t,n){return a=>t(a)&&n(a)}function ow(...t){return(...n)=>{let a;for(let u of t)if(a=u(...n),a)return a;return a}}function voe(t){return(...n)=>!t(...n)}function mCe(t){}function Rl(t){return t===void 0?void 0:[t]}function $B(t,n,a,u,m,g){g??(g=Za);let v=0,x=0,k=t.length,T=n.length,I=!1;for(;v(t[t.Off=0]="Off",t[t.Error=1]="Error",t[t.Warning=2]="Warning",t[t.Info=3]="Info",t[t.Verbose=4]="Verbose",t))(j3e||{}),Se;(t=>{let n=0;t.currentLogLevel=2,t.isDebugging=!1;function a(ci){return t.currentLogLevel<=ci}t.shouldLog=a;function u(ci,gn){t.loggingHost&&a(ci)&&t.loggingHost.log(ci,gn)}function m(ci){u(3,ci)}t.log=m,(ci=>{function gn(Mn){u(1,Mn)}ci.error=gn;function Sr(Mn){u(2,Mn)}ci.warn=Sr;function vo(Mn){u(3,Mn)}ci.log=vo;function $o(Mn){u(4,Mn)}ci.trace=$o})(m=t.log||(t.log={}));let g={};function v(){return n}t.getAssertionLevel=v;function x(ci){let gn=n;if(n=ci,ci>gn)for(let Sr of Zy(g)){let vo=g[Sr];vo!==void 0&&t[Sr]!==vo.assertion&&ci>=vo.level&&(t[Sr]=vo,g[Sr]=void 0)}}t.setAssertionLevel=x;function k(ci){return n>=ci}t.shouldAssert=k;function T(ci,gn){return k(ci)?!0:(g[gn]={level:ci,assertion:t[gn]},t[gn]=Za,!1)}function I(ci,gn){debugger;let Sr=new Error(ci?`Debug Failure. ${ci}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(Sr,gn||I),Sr}t.fail=I;function A(ci,gn,Sr){return I(`${gn||"Unexpected node."}\r +Node ${Oe(ci.kind)} was unexpected.`,Sr||A)}t.failBadSyntaxKind=A;function M(ci,gn,Sr,vo){ci||(gn=gn?`False expression: ${gn}`:"False expression.",Sr&&(gn+=`\r +Verbose Debug Information: `+(typeof Sr=="string"?Sr:Sr())),I(gn,vo||M))}t.assert=M;function R(ci,gn,Sr,vo,$o){if(ci!==gn){let Mn=Sr?vo?`${Sr} ${vo}`:Sr:"";I(`Expected ${ci} === ${gn}. ${Mn}`,$o||R)}}t.assertEqual=R;function H(ci,gn,Sr,vo){ci>=gn&&I(`Expected ${ci} < ${gn}. ${Sr||""}`,vo||H)}t.assertLessThan=H;function U(ci,gn,Sr){ci>gn&&I(`Expected ${ci} <= ${gn}`,Sr||U)}t.assertLessThanOrEqual=U;function $(ci,gn,Sr){ci= ${gn}`,Sr||$)}t.assertGreaterThanOrEqual=$;function K(ci,gn,Sr){ci==null&&I(gn,Sr||K)}t.assertIsDefined=K;function re(ci,gn,Sr){return K(ci,gn,Sr||re),ci}t.checkDefined=re;function X(ci,gn,Sr){for(let vo of ci)K(vo,gn,Sr||X)}t.assertEachIsDefined=X;function ne(ci,gn,Sr){return X(ci,gn,Sr||ne),ci}t.checkEachDefined=ne;function se(ci,gn="Illegal value:",Sr){let vo=typeof ci=="object"&&bf(ci,"kind")&&bf(ci,"pos")?"SyntaxKind: "+Oe(ci.kind):JSON.stringify(ci);return I(`${gn} ${vo}`,Sr||se)}t.assertNever=se;function _e(ci,gn,Sr,vo){T(1,"assertEachNode")&&M(gn===void 0||Yt(ci,gn),Sr||"Unexpected node.",()=>`Node array did not pass test '${fe(gn)}'.`,vo||_e)}t.assertEachNode=_e;function ae(ci,gn,Sr,vo){T(1,"assertNode")&&M(ci!==void 0&&(gn===void 0||gn(ci)),Sr||"Unexpected node.",()=>`Node ${Oe(ci?.kind)} did not pass test '${fe(gn)}'.`,vo||ae)}t.assertNode=ae;function le(ci,gn,Sr,vo){T(1,"assertNotNode")&&M(ci===void 0||gn===void 0||!gn(ci),Sr||"Unexpected node.",()=>`Node ${Oe(ci.kind)} should not have passed test '${fe(gn)}'.`,vo||le)}t.assertNotNode=le;function Ee(ci,gn,Sr,vo){T(1,"assertOptionalNode")&&M(gn===void 0||ci===void 0||gn(ci),Sr||"Unexpected node.",()=>`Node ${Oe(ci?.kind)} did not pass test '${fe(gn)}'.`,vo||Ee)}t.assertOptionalNode=Ee;function xe(ci,gn,Sr,vo){T(1,"assertOptionalToken")&&M(gn===void 0||ci===void 0||ci.kind===gn,Sr||"Unexpected node.",()=>`Node ${Oe(ci?.kind)} was not a '${Oe(gn)}' token.`,vo||xe)}t.assertOptionalToken=xe;function be(ci,gn,Sr){T(1,"assertMissingNode")&&M(ci===void 0,gn||"Unexpected node.",()=>`Node ${Oe(ci.kind)} was unexpected'.`,Sr||be)}t.assertMissingNode=be;function Le(ci){}t.type=Le;function fe(ci){if(typeof ci!="function")return"";if(bf(ci,"name"))return ci.name;{let gn=Function.prototype.toString.call(ci),Sr=/^function\s+([\w$]+)\s*\(/.exec(gn);return Sr?Sr[1]:""}}t.getFunctionName=fe;function we(ci){return`{ name: ${Ba(ci.escapedName)}; flags: ${mt(ci.flags)}; declarations: ${$i(ci.declarations,gn=>Oe(gn.kind))} }`}t.formatSymbol=we;function Ae(ci=0,gn,Sr){let vo=he(gn);if(ci===0)return vo.length>0&&vo[0][0]===0?vo[0][1]:"0";if(Sr){let $o=[],Mn=ci;for(let[Qs,Pi]of vo){if(Qs>ci)break;Qs!==0&&Qs&ci&&($o.push(Pi),Mn&=~Qs)}if(Mn===0)return $o.join("|")}else for(let[$o,Mn]of vo)if($o===ci)return Mn;return ci.toString()}t.formatEnum=Ae;let Ge=new Map;function he(ci){let gn=Ge.get(ci);if(gn)return gn;let Sr=[];for(let $o in ci){let Mn=ci[$o];typeof Mn=="number"&&Sr.push([Mn,$o])}let vo=du(Sr,($o,Mn)=>m_($o[0],Mn[0]));return Ge.set(ci,vo),vo}function Oe(ci){return Ae(ci,SCe,!1)}t.formatSyntaxKind=Oe;function Re(ci){return Ae(ci,ope,!1)}t.formatSnippetKind=Re;function $e(ci){return Ae(ci,cH,!1)}t.formatScriptKind=$e;function Ke(ci){return Ae(ci,xCe,!0)}t.formatNodeFlags=Ke;function qe(ci){return Ae(ci,Q_e,!0)}t.formatNodeCheckFlags=qe;function rt(ci){return Ae(ci,CCe,!0)}t.formatModifierFlags=rt;function _t(ci){return Ae(ci,rpe,!0)}t.formatTransformFlags=_t;function ft(ci){return Ae(ci,spe,!0)}t.formatEmitFlags=ft;function mt(ci){return Ae(ci,Y_e,!0)}t.formatSymbolFlags=mt;function ut(ci){return Ae(ci,Z_e,!0)}t.formatTypeFlags=ut;function ht(ci){return Ae(ci,Eoe,!0)}t.formatSignatureFlags=ht;function Kt(ci){return Ae(ci,epe,!0)}t.formatObjectFlags=Kt;function ni(ci){return Ae(ci,Coe,!0)}t.formatFlowFlags=ni;function Ut(ci){return Ae(ci,xoe,!0)}t.formatRelationComparisonResult=Ut;function pi(ci){return Ae(ci,$Te,!0)}t.formatCheckMode=pi;function wi(ci){return Ae(ci,Xhe,!0)}t.formatSignatureCheckMode=wi;function Bi(ci){return Ae(ci,Khe,!0)}t.formatTypeFacts=Bi;let Bn=!1,mr;function Ei(ci){"__debugFlowFlags"in ci||Object.defineProperties(ci,{__tsDebuggerDisplay:{value(){let gn=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",Sr=this.flags&-2048;return`${gn}${Sr?` (${ni(Sr)})`:""}`}},__debugFlowFlags:{get(){return Ae(this.flags,Coe,!0)}},__debugToString:{value(){return Gr(this)}}})}function zn(ci){return Bn&&(typeof Object.setPrototypeOf=="function"?(mr||(mr=Object.create(Object.prototype),Ei(mr)),Object.setPrototypeOf(ci,mr)):Ei(ci)),ci}t.attachFlowNodeDebugInfo=zn;let zr;function xr(ci){"__tsDebuggerDisplay"in ci||Object.defineProperties(ci,{__tsDebuggerDisplay:{value(gn){return gn=String(gn).replace(/(?:,[\s\w]+:[^,]+)+\]$/,"]"),`NodeArray ${gn}`}}})}function lo(ci){Bn&&(typeof Object.setPrototypeOf=="function"?(zr||(zr=Object.create(Array.prototype),xr(zr)),Object.setPrototypeOf(ci,zr)):xr(ci))}t.attachNodeArrayDebugInfo=lo;function _r(){if(Bn)return;let ci=new WeakMap,gn=new WeakMap;Object.defineProperties(xd.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let vo=this.flags&33554432?"TransientSymbol":"Symbol",$o=this.flags&-33554433;return`${vo} '${Bc(this)}'${$o?` (${mt($o)})`:""}`}},__debugFlags:{get(){return mt(this.flags)}}}),Object.defineProperties(xd.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){let vo=this.flags&67359327?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",$o=this.flags&524288?this.objectFlags&-1344:0;return`${vo}${this.symbol?` '${Bc(this.symbol)}'`:""}${$o?` (${Kt($o)})`:""}`}},__debugFlags:{get(){return ut(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?Kt(this.objectFlags):""}},__debugTypeToString:{value(){let vo=ci.get(this);return vo===void 0&&(vo=this.checker.typeToString(this),ci.set(this,vo)),vo}}}),Object.defineProperties(xd.getSignatureConstructor().prototype,{__debugFlags:{get(){return ht(this.flags)}},__debugSignatureToString:{value(){var vo;return(vo=this.checker)==null?void 0:vo.signatureToString(this)}}});let Sr=[xd.getNodeConstructor(),xd.getIdentifierConstructor(),xd.getTokenConstructor(),xd.getSourceFileConstructor()];for(let vo of Sr)bf(vo.prototype,"__debugKind")||Object.defineProperties(vo.prototype,{__tsDebuggerDisplay:{value(){return`${Tm(this)?"GeneratedIdentifier":Ai(this)?`Identifier '${Un(this)}'`:wl(this)?`PrivateIdentifier '${Un(this)}'`:Kf(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:mx(this)?`NumericLiteral ${this.text}`:ZG(this)?`BigIntLiteral ${this.text}n`:Yp(this)?"TypeParameterDeclaration":Fl(this)?"ParameterDeclaration":yl(this)?"ConstructorDeclaration":n_(this)?"GetAccessorDeclaration":zc(this)?"SetAccessorDeclaration":xg(this)?"CallSignatureDeclaration":db(this)?"ConstructSignatureDeclaration":nu(this)?"IndexSignatureDeclaration":Sk(this)?"TypePredicateNode":M_(this)?"TypeReferenceNode":xp(this)?"FunctionTypeNode":Dm(this)?"ConstructorTypeNode":C1(this)?"TypeQueryNode":Im(this)?"TypeLiteralNode":$8(this)?"ArrayTypeNode":G8(this)?"TupleTypeNode":oM(this)?"OptionalTypeNode":qC(this)?"RestTypeNode":gx(this)?"UnionTypeNode":lL(this)?"IntersectionTypeNode":YE(this)?"ConditionalTypeNode":Hy(this)?"InferTypeNode":eO(this)?"ParenthesizedTypeNode":uL(this)?"ThisTypeNode":yN(this)?"TypeOperatorNode":tO(this)?"IndexedAccessTypeNode":K8(this)?"MappedTypeNode":xk(this)?"LiteralTypeNode":YA(this)?"NamedTupleMember":Ck(this)?"ImportTypeNode":Oe(this.kind)}${this.flags?` (${Ke(this.flags)})`:""}`}},__debugKind:{get(){return Oe(this.kind)}},__debugNodeFlags:{get(){return Ke(this.flags)}},__debugModifierFlags:{get(){return rt(Mj(this))}},__debugTransformFlags:{get(){return _t(this.transformFlags)}},__debugIsParseTreeNode:{get(){return joe(this)}},__debugEmitFlags:{get(){return ft(N_(this))}},__debugGetText:{value($o){if(um(this))return"";let Mn=gn.get(this);if(Mn===void 0){let Qs=ju(this),Pi=Qs&&Vo(Qs);Mn=Pi?S8(Pi,Qs,$o):"",gn.set(this,Mn)}return Mn}}});Bn=!0}t.enableDebugInfo=_r;function Hs(ci){let gn=ci&7,Sr=gn===0?"in out":gn===3?"[bivariant]":gn===2?"in":gn===1?"out":gn===4?"[independent]":"";return ci&8?Sr+=" (unmeasurable)":ci&16&&(Sr+=" (unreliable)"),Sr}t.formatVariance=Hs;class ai{__debugToString(){var gn;switch(this.kind){case 3:return((gn=this.debugInfo)==null?void 0:gn.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return Ct(this.sources,this.targets||$i(this.sources,()=>"any"),(Sr,vo)=>`${Sr.__debugTypeToString()} -> ${typeof vo=="string"?vo:vo.__debugTypeToString()}`).join(", ");case 2:return Ct(this.sources,this.targets,(Sr,vo)=>`${Sr.__debugTypeToString()} -> ${vo().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` +`).join(` + `)} +m2: ${this.mapper2.__debugToString().split(` +`).join(` + `)}`;default:return se(this)}}}t.DebugTypeMapper=ai;function mn(ci){return t.isDebugging?Object.setPrototypeOf(ci,ai.prototype):ci}t.attachDebugPrototypeIfDebug=mn;function Nn(ci){return console.log(Gr(ci))}t.printControlFlowGraph=Nn;function Gr(ci){let gn=-1;function Sr(We){return We.id||(We.id=gn,gn--),We.id}let vo;(We=>{We.lr="\u2500",We.ud="\u2502",We.dr="\u256D",We.dl="\u256E",We.ul="\u256F",We.ur="\u2570",We.udr="\u251C",We.udl="\u2524",We.dlr="\u252C",We.ulr="\u2534",We.udlr="\u256B"})(vo||(vo={}));let $o;(We=>{We[We.None=0]="None",We[We.Up=1]="Up",We[We.Down=2]="Down",We[We.Left=4]="Left",We[We.Right=8]="Right",We[We.UpDown=3]="UpDown",We[We.LeftRight=12]="LeftRight",We[We.UpLeft=5]="UpLeft",We[We.UpRight=9]="UpRight",We[We.DownLeft=6]="DownLeft",We[We.DownRight=10]="DownRight",We[We.UpDownLeft=7]="UpDownLeft",We[We.UpDownRight=11]="UpDownRight",We[We.UpLeftRight=13]="UpLeftRight",We[We.DownLeftRight=14]="DownLeftRight",We[We.UpDownLeftRight=15]="UpDownLeftRight",We[We.NoChildren=16]="NoChildren"})($o||($o={}));let Mn=2032,Qs=882,Pi=Object.create(null),qi=[],lt=[],Xi=pt(ci,new Set);for(let We of qi)We.text=Ce(We.flowNode,We.circular),Mt(We);let nt=hi(Xi),Lt=Ie(nt);return Bt(Xi,0),ye();function Pe(We){return!!(We.flags&128)}function St(We){return!!(We.flags&12)&&!!We.antecedent}function Ve(We){return!!(We.flags&Mn)}function Tt(We){return!!(We.flags&Qs)}function dt(We){let si=[];for(let At of We.edges)At.source===We&&si.push(At.target);return si}function Wt(We){let si=[];for(let At of We.edges)At.target===We&&si.push(At.source);return si}function pt(We,si){let At=Sr(We),Ot=Pi[At];if(Ot&&si.has(We))return Ot.circular=!0,Ot={id:-1,flowNode:We,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},qi.push(Ot),Ot;if(si.add(We),!Ot)if(Pi[At]=Ot={id:At,flowNode:We,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},qi.push(Ot),St(We))for(let Fi of We.antecedent)Gt(Ot,Fi,si);else Ve(We)&&Gt(Ot,We.antecedent,si);return si.delete(We),Ot}function Gt(We,si,At){let Ot=pt(si,At),Fi={source:We,target:Ot};lt.push(Fi),We.edges.push(Fi),Ot.edges.push(Fi)}function Mt(We){if(We.level!==-1)return We.level;let si=0;for(let At of Wt(We))si=Math.max(si,Mt(At)+1);return We.level=si}function hi(We){let si=0;for(let At of dt(We))si=Math.max(si,hi(At));return si+1}function Ie(We){let si=pe(Array(We),0);for(let At of qi)si[At.level]=Math.max(si[At.level],At.text.length);return si}function Bt(We,si){if(We.lane===-1){We.lane=si,We.endLane=si;let At=dt(We);for(let Ot=0;Ot0&&si++;let Fi=At[Ot];Bt(Fi,si),Fi.endLane>We.endLane&&(si=Fi.endLane)}We.endLane=si}}function ui(We){if(We&2)return"Start";if(We&4)return"Branch";if(We&8)return"Loop";if(We&16)return"Assignment";if(We&32)return"True";if(We&64)return"False";if(We&128)return"SwitchClause";if(We&256)return"ArrayMutation";if(We&512)return"Call";if(We&1024)return"ReduceLabel";if(We&1)return"Unreachable";throw new Error}function Ue(We){let si=Vo(We);return S8(si,We,!1)}function Ce(We,si){let At=ui(We.flags);if(si&&(At=`${At}#${Sr(We)}`),Pe(We)){let Ot=[],{switchStatement:Fi,clauseStart:Vn,clauseEnd:In}=We.node;for(let dn=Vn;dnIn.lane)+1,At=pe(Array(si),""),Ot=Lt.map(()=>Array(si)),Fi=Lt.map(()=>pe(Array(si),0));for(let In of qi){Ot[In.level][In.lane]=In;let dn=dt(In);for(let Ri=0;Ri0&&(cn|=1),Ri0&&(cn|=1),Ri0?Fi[In-1][dn]:0,Ri=dn>0?Fi[In][dn-1]:0,Cn=Fi[In][dn];Cn||(Si&8&&(Cn|=12),Ri&2&&(Cn|=3),Fi[In][dn]=Cn)}for(let In=0;In0?We.repeat(si):"";let At="";for(;At.length=0,"Invalid argument: major"),Se.assert(a>=0,"Invalid argument: minor"),Se.assert(u>=0,"Invalid argument: patch");let v=m?ua(m)?m:m.split("."):F,x=g?ua(g)?g:g.split("."):F;Se.assert(Yt(v,k=>zht.test(k)),"Invalid argument: prerelease"),Se.assert(Yt(x,k=>i$e.test(k)),"Invalid argument: build"),this.major=n,this.minor=a,this.patch=u,this.prerelease=v,this.build=x}static tryParse(n){let a=Vht(n);if(!a)return;let{major:u,minor:m,patch:g,prerelease:v,build:x}=a;return new Oze(u,m,g,v,x)}compareTo(n){return this===n?0:n===void 0?1:m_(this.major,n.major)||m_(this.minor,n.minor)||m_(this.patch,n.patch)||e9t(this.prerelease,n.prerelease)}increment(n){switch(n){case"major":return new Oze(this.major+1,0,0);case"minor":return new Oze(this.major,this.minor+1,0);case"patch":return new Oze(this.major,this.minor,this.patch+1);default:return Se.assertNever(n)}}with(n){let{major:a=this.major,minor:u=this.minor,patch:m=this.patch,prerelease:g=this.prerelease,build:v=this.build}=n;return new Oze(a,u,m,g,v)}toString(){let n=`${this.major}.${this.minor}.${this.patch}`;return En(this.prerelease)&&(n+=`-${this.prerelease.join(".")}`),En(this.build)&&(n+=`+${this.build.join(".")}`),n}};yCe.zero=new yCe(0,0,0,["0"]);var ve=yCe;function Vht(t){let n=hCe.exec(t);if(!n)return;let[,a,u="0",m="0",g="",v=""]=n;if(!(g&&!t$e.test(g))&&!(v&&!W3e.test(v)))return{major:parseInt(a,10),minor:parseInt(u,10),patch:parseInt(m,10),prerelease:g,build:v}}function e9t(t,n){if(t===n)return 0;if(t.length===0)return n.length===0?0:1;if(n.length===0)return-1;let a=Math.min(t.length,n.length);for(let u=0;u=]|<=|>=)?\s*([a-z0-9-+.*]+)$/i;function r$e(t){let n=[];for(let a of t.trim().split(t9t)){if(!a)continue;let u=[];a=a.trim();let m=n$e.exec(a);if(m){if(!bCe(m[1],m[2],u))return}else for(let g of a.split(i9t)){let v=ZI.exec(g.trim());if(!v||!n9t(v[1],v[2],u))return}n.push(u)}return n}function o$e(t){let n=Hht.exec(t);if(!n)return;let[,a,u="*",m="*",g,v]=n;return{version:new ve(AE(a)?0:parseInt(a,10),AE(a)||AE(u)?0:parseInt(u,10),AE(a)||AE(u)||AE(m)?0:parseInt(m,10),g,v),major:a,minor:u,patch:m}}function bCe(t,n,a){let u=o$e(t);if(!u)return!1;let m=o$e(n);return m?(AE(u.major)||a.push(a4(">=",u.version)),AE(m.major)||a.push(AE(m.minor)?a4("<",m.version.increment("major")):AE(m.patch)?a4("<",m.version.increment("minor")):a4("<=",m.version)),!0):!1}function n9t(t,n,a){let u=o$e(n);if(!u)return!1;let{version:m,major:g,minor:v,patch:x}=u;if(AE(g))(t==="<"||t===">")&&a.push(a4("<",ve.zero));else switch(t){case"~":a.push(a4(">=",m)),a.push(a4("<",m.increment(AE(v)?"major":"minor")));break;case"^":a.push(a4(">=",m)),a.push(a4("<",m.increment(m.major>0||AE(v)?"major":m.minor>0||AE(x)?"minor":"patch")));break;case"<":case">=":a.push(AE(v)||AE(x)?a4(t,m.with({prerelease:"0"})):a4(t,m));break;case"<=":case">":a.push(AE(v)?a4(t==="<="?"<":">=",m.increment("major").with({prerelease:"0"})):AE(x)?a4(t==="<="?"<":">=",m.increment("minor").with({prerelease:"0"})):a4(t,m));break;case"=":case void 0:AE(v)||AE(x)?(a.push(a4(">=",m.with({prerelease:"0"}))),a.push(a4("<",m.increment(AE(v)?"major":"minor").with({prerelease:"0"})))):a.push(a4("=",m));break;default:return!1}return!0}function AE(t){return t==="*"||t==="x"||t==="X"}function a4(t,n){return{operator:t,operand:n}}function r9t(t,n){if(n.length===0)return!0;for(let a of n)if(o9t(t,a))return!0;return!1}function o9t(t,n){for(let a of n)if(!Uht(t,a.operator,a.operand))return!1;return!0}function Uht(t,n,a){let u=t.compareTo(a);switch(n){case"<":return u<0;case"<=":return u<=0;case">":return u>0;case">=":return u>=0;case"=":return u===0;default:return Se.assertNever(n)}}function s$e(t){return $i(t,s9t).join(" || ")||"*"}function s9t(t){return $i(t,a9t).join(" ")}function a9t(t){return`${t.operator}${t.operand}`}function PE(){if(VQ())try{let{performance:t}=GXt();if(t)return{shouldWriteNativeEvents:!1,performance:t}}catch{}if(typeof performance=="object")return{shouldWriteNativeEvents:!0,performance}}function c4(){let t=PE();if(!t)return;let{shouldWriteNativeEvents:n,performance:a}=t,u={shouldWriteNativeEvents:n,performance:void 0,performanceTime:void 0};return typeof a.timeOrigin=="number"&&typeof a.now=="function"&&(u.performanceTime=a),u.performanceTime&&typeof a.mark=="function"&&typeof a.measure=="function"&&typeof a.clearMarks=="function"&&typeof a.clearMeasures=="function"&&(u.performance=a),u}var a$e=c4(),Jht=a$e?.performanceTime;function c$e(){return a$e}var mm=Jht?()=>Jht.now():Date.now,l$e={};d(l$e,{clearMarks:()=>UQ,clearMeasures:()=>d$e,createTimer:()=>U_e,createTimerIf:()=>qht,disable:()=>jh,enable:()=>oH,forEachMark:()=>HQ,forEachMeasure:()=>J_e,getCount:()=>u$e,getDuration:()=>rH,isEnabled:()=>JQ,mark:()=>Lm,measure:()=>Ub,nullTimer:()=>z3e});var boe,nH;function qht(t,n,a,u){return t?U_e(n,a,u):z3e}function U_e(t,n,a){let u=0;return{enter:m,exit:g};function m(){++u===1&&Lm(n)}function g(){--u===0?(Lm(a),Ub(t,n,a)):u<0&&Se.fail("enter/exit count does not match.")}}var z3e={enter:Za,exit:Za},A$=!1,lh=mm(),GB=new Map,m1=new Map,P$=new Map;function Lm(t){if(A$){let n=m1.get(t)??0;m1.set(t,n+1),GB.set(t,mm()),nH?.mark(t),typeof onProfilerEvent=="function"&&onProfilerEvent(t)}}function Ub(t,n,a){if(A$){let u=(a!==void 0?GB.get(a):void 0)??mm(),m=(n!==void 0?GB.get(n):void 0)??lh,g=P$.get(t)||0;P$.set(t,g+(u-m)),nH?.measure(t,n,a)}}function u$e(t){return m1.get(t)||0}function rH(t){return P$.get(t)||0}function J_e(t){P$.forEach((n,a)=>t(a,n))}function HQ(t){GB.forEach((n,a)=>t(a))}function d$e(t){t!==void 0?P$.delete(t):P$.clear(),nH?.clearMeasures(t)}function UQ(t){t!==void 0?(m1.delete(t),GB.delete(t)):(m1.clear(),GB.clear()),nH?.clearMarks(t)}function JQ(){return A$}function oH(t=hy){var n;return A$||(A$=!0,boe||(boe=c$e()),boe?.performance&&(lh=boe.performance.timeOrigin,(boe.shouldWriteNativeEvents||(n=t?.cpuProfilingEnabled)!=null&&n.call(t)||t?.debugMode)&&(nH=boe.performance))),!0}function jh(){A$&&(GB.clear(),m1.clear(),P$.clear(),nH=void 0,A$=!1)}var us,Soe;(t=>{let n,a=0,u=0,m,g=[],v,x=[];function k(ae,le,Ee){if(Se.assert(!us,"Tracing already started"),n===void 0)try{n=Flt()}catch(we){throw new Error(`tracing requires having fs +(original error: ${we.message||we})`)}m=ae,g.length=0,v===void 0&&(v=Ps(le,"legend.json")),n.existsSync(le)||n.mkdirSync(le,{recursive:!0});let xe=m==="build"?`.${process.pid}-${++a}`:m==="server"?`.${process.pid}`:"",be=Ps(le,`trace${xe}.json`),Le=Ps(le,`types${xe}.json`);x.push({configFilePath:Ee,tracePath:be,typesPath:Le}),u=n.openSync(be,"w"),us=t;let fe={cat:"__metadata",ph:"M",ts:1e3*mm(),pid:1,tid:1};n.writeSync(u,`[ +`+[{name:"process_name",args:{name:"tsc"},...fe},{name:"thread_name",args:{name:"Main"},...fe},{name:"TracingStartedInBrowser",...fe,cat:"disabled-by-default-devtools.timeline"}].map(we=>JSON.stringify(we)).join(`, +`))}t.startTracing=k;function T(){Se.assert(us,"Tracing is not in progress"),Se.assert(!!g.length==(m!=="server")),n.writeSync(u,` +] +`),n.closeSync(u),us=void 0,g.length?se(g):x[x.length-1].typesPath=void 0}t.stopTracing=T;function I(ae){m!=="server"&&g.push(ae)}t.recordType=I;let A;(ae=>{ae.Parse="parse",ae.Program="program",ae.Bind="bind",ae.Check="check",ae.CheckTypes="checkTypes",ae.Emit="emit",ae.Session="session"})(A=t.Phase||(t.Phase={}));function M(ae,le,Ee){X("I",ae,le,Ee,'"s":"g"')}t.instant=M;let R=[];function H(ae,le,Ee,xe=!1){xe&&X("B",ae,le,Ee),R.push({phase:ae,name:le,args:Ee,time:1e3*mm(),separateBeginAndEnd:xe})}t.push=H;function U(ae){Se.assert(R.length>0),re(R.length-1,1e3*mm(),ae),R.length--}t.pop=U;function $(){let ae=1e3*mm();for(let le=R.length-1;le>=0;le--)re(le,ae);R.length=0}t.popAll=$;let K=1e3*10;function re(ae,le,Ee){let{phase:xe,name:be,args:Le,time:fe,separateBeginAndEnd:we}=R[ae];we?(Se.assert(!Ee,"`results` are not supported for events with `separateBeginAndEnd`"),X("E",xe,be,Le,void 0,le)):K-fe%K<=le-fe&&X("X",xe,be,{...Le,results:Ee},`"dur":${le-fe}`,fe)}function X(ae,le,Ee,xe,be,Le=1e3*mm()){m==="server"&&le==="checkTypes"||(Lm("beginTracing"),n.writeSync(u,`, +{"pid":1,"tid":1,"ph":"${ae}","cat":"${le}","ts":${Le},"name":"${Ee}"`),be&&n.writeSync(u,`,${be}`),xe&&n.writeSync(u,`,"args":${JSON.stringify(xe)}`),n.writeSync(u,"}"),Lm("endTracing"),Ub("Tracing","beginTracing","endTracing"))}function ne(ae){let le=Vo(ae);return le?{path:le.path,start:Ee(Df(le,ae.pos)),end:Ee(Df(le,ae.end))}:void 0;function Ee(xe){return{line:xe.line+1,character:xe.character+1}}}function se(ae){var le,Ee,xe,be,Le,fe,we,Ae,Ge,he,Oe,Re,$e,Ke,qe,rt,_t,ft,mt;Lm("beginDumpTypes");let ut=x[x.length-1].typesPath,ht=n.openSync(ut,"w"),Kt=new Map;n.writeSync(ht,"[");let ni=ae.length;for(let Ut=0;UtNn.id),referenceLocation:ne(mn.node)}}let zn={};if(pi.flags&16777216){let mn=pi;zn={conditionalCheckType:(fe=mn.checkType)==null?void 0:fe.id,conditionalExtendsType:(we=mn.extendsType)==null?void 0:we.id,conditionalTrueType:((Ae=mn.resolvedTrueType)==null?void 0:Ae.id)??-1,conditionalFalseType:((Ge=mn.resolvedFalseType)==null?void 0:Ge.id)??-1}}let zr={};if(pi.flags&33554432){let mn=pi;zr={substitutionBaseType:(he=mn.baseType)==null?void 0:he.id,constraintType:(Oe=mn.constraint)==null?void 0:Oe.id}}let xr={};if(wi&1024){let mn=pi;xr={reverseMappedSourceType:(Re=mn.source)==null?void 0:Re.id,reverseMappedMappedType:($e=mn.mappedType)==null?void 0:$e.id,reverseMappedConstraintType:(Ke=mn.constraintType)==null?void 0:Ke.id}}let lo={};if(wi&256){let mn=pi;lo={evolvingArrayElementType:mn.elementType.id,evolvingArrayFinalType:(qe=mn.finalArrayType)==null?void 0:qe.id}}let _r,Hs=pi.checker.getRecursionIdentity(pi);Hs&&(_r=Kt.get(Hs),_r||(_r=Kt.size,Kt.set(Hs,_r)));let ai={id:pi.id,intrinsicName:pi.intrinsicName,symbolName:Bi?.escapedName&&Ba(Bi.escapedName),recursionId:_r,isTuple:wi&8?!0:void 0,unionTypes:pi.flags&1048576?(rt=pi.types)==null?void 0:rt.map(mn=>mn.id):void 0,intersectionTypes:pi.flags&2097152?pi.types.map(mn=>mn.id):void 0,aliasTypeArguments:(_t=pi.aliasTypeArguments)==null?void 0:_t.map(mn=>mn.id),keyofType:pi.flags&4194304?(ft=pi.type)==null?void 0:ft.id:void 0,...mr,...Ei,...zn,...zr,...xr,...lo,destructuringPattern:ne(pi.pattern),firstDeclaration:ne((mt=Bi?.declarations)==null?void 0:mt[0]),flags:Se.formatTypeFlags(pi.flags).split("|"),display:Bn};n.writeSync(ht,JSON.stringify(ai)),Ut(t[t.Unknown=0]="Unknown",t[t.EndOfFileToken=1]="EndOfFileToken",t[t.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",t[t.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",t[t.NewLineTrivia=4]="NewLineTrivia",t[t.WhitespaceTrivia=5]="WhitespaceTrivia",t[t.ShebangTrivia=6]="ShebangTrivia",t[t.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",t[t.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",t[t.NumericLiteral=9]="NumericLiteral",t[t.BigIntLiteral=10]="BigIntLiteral",t[t.StringLiteral=11]="StringLiteral",t[t.JsxText=12]="JsxText",t[t.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",t[t.RegularExpressionLiteral=14]="RegularExpressionLiteral",t[t.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",t[t.TemplateHead=16]="TemplateHead",t[t.TemplateMiddle=17]="TemplateMiddle",t[t.TemplateTail=18]="TemplateTail",t[t.OpenBraceToken=19]="OpenBraceToken",t[t.CloseBraceToken=20]="CloseBraceToken",t[t.OpenParenToken=21]="OpenParenToken",t[t.CloseParenToken=22]="CloseParenToken",t[t.OpenBracketToken=23]="OpenBracketToken",t[t.CloseBracketToken=24]="CloseBracketToken",t[t.DotToken=25]="DotToken",t[t.DotDotDotToken=26]="DotDotDotToken",t[t.SemicolonToken=27]="SemicolonToken",t[t.CommaToken=28]="CommaToken",t[t.QuestionDotToken=29]="QuestionDotToken",t[t.LessThanToken=30]="LessThanToken",t[t.LessThanSlashToken=31]="LessThanSlashToken",t[t.GreaterThanToken=32]="GreaterThanToken",t[t.LessThanEqualsToken=33]="LessThanEqualsToken",t[t.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",t[t.EqualsEqualsToken=35]="EqualsEqualsToken",t[t.ExclamationEqualsToken=36]="ExclamationEqualsToken",t[t.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",t[t.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",t[t.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",t[t.PlusToken=40]="PlusToken",t[t.MinusToken=41]="MinusToken",t[t.AsteriskToken=42]="AsteriskToken",t[t.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",t[t.SlashToken=44]="SlashToken",t[t.PercentToken=45]="PercentToken",t[t.PlusPlusToken=46]="PlusPlusToken",t[t.MinusMinusToken=47]="MinusMinusToken",t[t.LessThanLessThanToken=48]="LessThanLessThanToken",t[t.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",t[t.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",t[t.AmpersandToken=51]="AmpersandToken",t[t.BarToken=52]="BarToken",t[t.CaretToken=53]="CaretToken",t[t.ExclamationToken=54]="ExclamationToken",t[t.TildeToken=55]="TildeToken",t[t.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",t[t.BarBarToken=57]="BarBarToken",t[t.QuestionToken=58]="QuestionToken",t[t.ColonToken=59]="ColonToken",t[t.AtToken=60]="AtToken",t[t.QuestionQuestionToken=61]="QuestionQuestionToken",t[t.BacktickToken=62]="BacktickToken",t[t.HashToken=63]="HashToken",t[t.EqualsToken=64]="EqualsToken",t[t.PlusEqualsToken=65]="PlusEqualsToken",t[t.MinusEqualsToken=66]="MinusEqualsToken",t[t.AsteriskEqualsToken=67]="AsteriskEqualsToken",t[t.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",t[t.SlashEqualsToken=69]="SlashEqualsToken",t[t.PercentEqualsToken=70]="PercentEqualsToken",t[t.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",t[t.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",t[t.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",t[t.AmpersandEqualsToken=74]="AmpersandEqualsToken",t[t.BarEqualsToken=75]="BarEqualsToken",t[t.BarBarEqualsToken=76]="BarBarEqualsToken",t[t.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",t[t.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",t[t.CaretEqualsToken=79]="CaretEqualsToken",t[t.Identifier=80]="Identifier",t[t.PrivateIdentifier=81]="PrivateIdentifier",t[t.JSDocCommentTextToken=82]="JSDocCommentTextToken",t[t.BreakKeyword=83]="BreakKeyword",t[t.CaseKeyword=84]="CaseKeyword",t[t.CatchKeyword=85]="CatchKeyword",t[t.ClassKeyword=86]="ClassKeyword",t[t.ConstKeyword=87]="ConstKeyword",t[t.ContinueKeyword=88]="ContinueKeyword",t[t.DebuggerKeyword=89]="DebuggerKeyword",t[t.DefaultKeyword=90]="DefaultKeyword",t[t.DeleteKeyword=91]="DeleteKeyword",t[t.DoKeyword=92]="DoKeyword",t[t.ElseKeyword=93]="ElseKeyword",t[t.EnumKeyword=94]="EnumKeyword",t[t.ExportKeyword=95]="ExportKeyword",t[t.ExtendsKeyword=96]="ExtendsKeyword",t[t.FalseKeyword=97]="FalseKeyword",t[t.FinallyKeyword=98]="FinallyKeyword",t[t.ForKeyword=99]="ForKeyword",t[t.FunctionKeyword=100]="FunctionKeyword",t[t.IfKeyword=101]="IfKeyword",t[t.ImportKeyword=102]="ImportKeyword",t[t.InKeyword=103]="InKeyword",t[t.InstanceOfKeyword=104]="InstanceOfKeyword",t[t.NewKeyword=105]="NewKeyword",t[t.NullKeyword=106]="NullKeyword",t[t.ReturnKeyword=107]="ReturnKeyword",t[t.SuperKeyword=108]="SuperKeyword",t[t.SwitchKeyword=109]="SwitchKeyword",t[t.ThisKeyword=110]="ThisKeyword",t[t.ThrowKeyword=111]="ThrowKeyword",t[t.TrueKeyword=112]="TrueKeyword",t[t.TryKeyword=113]="TryKeyword",t[t.TypeOfKeyword=114]="TypeOfKeyword",t[t.VarKeyword=115]="VarKeyword",t[t.VoidKeyword=116]="VoidKeyword",t[t.WhileKeyword=117]="WhileKeyword",t[t.WithKeyword=118]="WithKeyword",t[t.ImplementsKeyword=119]="ImplementsKeyword",t[t.InterfaceKeyword=120]="InterfaceKeyword",t[t.LetKeyword=121]="LetKeyword",t[t.PackageKeyword=122]="PackageKeyword",t[t.PrivateKeyword=123]="PrivateKeyword",t[t.ProtectedKeyword=124]="ProtectedKeyword",t[t.PublicKeyword=125]="PublicKeyword",t[t.StaticKeyword=126]="StaticKeyword",t[t.YieldKeyword=127]="YieldKeyword",t[t.AbstractKeyword=128]="AbstractKeyword",t[t.AccessorKeyword=129]="AccessorKeyword",t[t.AsKeyword=130]="AsKeyword",t[t.AssertsKeyword=131]="AssertsKeyword",t[t.AssertKeyword=132]="AssertKeyword",t[t.AnyKeyword=133]="AnyKeyword",t[t.AsyncKeyword=134]="AsyncKeyword",t[t.AwaitKeyword=135]="AwaitKeyword",t[t.BooleanKeyword=136]="BooleanKeyword",t[t.ConstructorKeyword=137]="ConstructorKeyword",t[t.DeclareKeyword=138]="DeclareKeyword",t[t.GetKeyword=139]="GetKeyword",t[t.InferKeyword=140]="InferKeyword",t[t.IntrinsicKeyword=141]="IntrinsicKeyword",t[t.IsKeyword=142]="IsKeyword",t[t.KeyOfKeyword=143]="KeyOfKeyword",t[t.ModuleKeyword=144]="ModuleKeyword",t[t.NamespaceKeyword=145]="NamespaceKeyword",t[t.NeverKeyword=146]="NeverKeyword",t[t.OutKeyword=147]="OutKeyword",t[t.ReadonlyKeyword=148]="ReadonlyKeyword",t[t.RequireKeyword=149]="RequireKeyword",t[t.NumberKeyword=150]="NumberKeyword",t[t.ObjectKeyword=151]="ObjectKeyword",t[t.SatisfiesKeyword=152]="SatisfiesKeyword",t[t.SetKeyword=153]="SetKeyword",t[t.StringKeyword=154]="StringKeyword",t[t.SymbolKeyword=155]="SymbolKeyword",t[t.TypeKeyword=156]="TypeKeyword",t[t.UndefinedKeyword=157]="UndefinedKeyword",t[t.UniqueKeyword=158]="UniqueKeyword",t[t.UnknownKeyword=159]="UnknownKeyword",t[t.UsingKeyword=160]="UsingKeyword",t[t.FromKeyword=161]="FromKeyword",t[t.GlobalKeyword=162]="GlobalKeyword",t[t.BigIntKeyword=163]="BigIntKeyword",t[t.OverrideKeyword=164]="OverrideKeyword",t[t.OfKeyword=165]="OfKeyword",t[t.QualifiedName=166]="QualifiedName",t[t.ComputedPropertyName=167]="ComputedPropertyName",t[t.TypeParameter=168]="TypeParameter",t[t.Parameter=169]="Parameter",t[t.Decorator=170]="Decorator",t[t.PropertySignature=171]="PropertySignature",t[t.PropertyDeclaration=172]="PropertyDeclaration",t[t.MethodSignature=173]="MethodSignature",t[t.MethodDeclaration=174]="MethodDeclaration",t[t.ClassStaticBlockDeclaration=175]="ClassStaticBlockDeclaration",t[t.Constructor=176]="Constructor",t[t.GetAccessor=177]="GetAccessor",t[t.SetAccessor=178]="SetAccessor",t[t.CallSignature=179]="CallSignature",t[t.ConstructSignature=180]="ConstructSignature",t[t.IndexSignature=181]="IndexSignature",t[t.TypePredicate=182]="TypePredicate",t[t.TypeReference=183]="TypeReference",t[t.FunctionType=184]="FunctionType",t[t.ConstructorType=185]="ConstructorType",t[t.TypeQuery=186]="TypeQuery",t[t.TypeLiteral=187]="TypeLiteral",t[t.ArrayType=188]="ArrayType",t[t.TupleType=189]="TupleType",t[t.OptionalType=190]="OptionalType",t[t.RestType=191]="RestType",t[t.UnionType=192]="UnionType",t[t.IntersectionType=193]="IntersectionType",t[t.ConditionalType=194]="ConditionalType",t[t.InferType=195]="InferType",t[t.ParenthesizedType=196]="ParenthesizedType",t[t.ThisType=197]="ThisType",t[t.TypeOperator=198]="TypeOperator",t[t.IndexedAccessType=199]="IndexedAccessType",t[t.MappedType=200]="MappedType",t[t.LiteralType=201]="LiteralType",t[t.NamedTupleMember=202]="NamedTupleMember",t[t.TemplateLiteralType=203]="TemplateLiteralType",t[t.TemplateLiteralTypeSpan=204]="TemplateLiteralTypeSpan",t[t.ImportType=205]="ImportType",t[t.ObjectBindingPattern=206]="ObjectBindingPattern",t[t.ArrayBindingPattern=207]="ArrayBindingPattern",t[t.BindingElement=208]="BindingElement",t[t.ArrayLiteralExpression=209]="ArrayLiteralExpression",t[t.ObjectLiteralExpression=210]="ObjectLiteralExpression",t[t.PropertyAccessExpression=211]="PropertyAccessExpression",t[t.ElementAccessExpression=212]="ElementAccessExpression",t[t.CallExpression=213]="CallExpression",t[t.NewExpression=214]="NewExpression",t[t.TaggedTemplateExpression=215]="TaggedTemplateExpression",t[t.TypeAssertionExpression=216]="TypeAssertionExpression",t[t.ParenthesizedExpression=217]="ParenthesizedExpression",t[t.FunctionExpression=218]="FunctionExpression",t[t.ArrowFunction=219]="ArrowFunction",t[t.DeleteExpression=220]="DeleteExpression",t[t.TypeOfExpression=221]="TypeOfExpression",t[t.VoidExpression=222]="VoidExpression",t[t.AwaitExpression=223]="AwaitExpression",t[t.PrefixUnaryExpression=224]="PrefixUnaryExpression",t[t.PostfixUnaryExpression=225]="PostfixUnaryExpression",t[t.BinaryExpression=226]="BinaryExpression",t[t.ConditionalExpression=227]="ConditionalExpression",t[t.TemplateExpression=228]="TemplateExpression",t[t.YieldExpression=229]="YieldExpression",t[t.SpreadElement=230]="SpreadElement",t[t.ClassExpression=231]="ClassExpression",t[t.OmittedExpression=232]="OmittedExpression",t[t.ExpressionWithTypeArguments=233]="ExpressionWithTypeArguments",t[t.AsExpression=234]="AsExpression",t[t.NonNullExpression=235]="NonNullExpression",t[t.MetaProperty=236]="MetaProperty",t[t.SyntheticExpression=237]="SyntheticExpression",t[t.SatisfiesExpression=238]="SatisfiesExpression",t[t.TemplateSpan=239]="TemplateSpan",t[t.SemicolonClassElement=240]="SemicolonClassElement",t[t.Block=241]="Block",t[t.EmptyStatement=242]="EmptyStatement",t[t.VariableStatement=243]="VariableStatement",t[t.ExpressionStatement=244]="ExpressionStatement",t[t.IfStatement=245]="IfStatement",t[t.DoStatement=246]="DoStatement",t[t.WhileStatement=247]="WhileStatement",t[t.ForStatement=248]="ForStatement",t[t.ForInStatement=249]="ForInStatement",t[t.ForOfStatement=250]="ForOfStatement",t[t.ContinueStatement=251]="ContinueStatement",t[t.BreakStatement=252]="BreakStatement",t[t.ReturnStatement=253]="ReturnStatement",t[t.WithStatement=254]="WithStatement",t[t.SwitchStatement=255]="SwitchStatement",t[t.LabeledStatement=256]="LabeledStatement",t[t.ThrowStatement=257]="ThrowStatement",t[t.TryStatement=258]="TryStatement",t[t.DebuggerStatement=259]="DebuggerStatement",t[t.VariableDeclaration=260]="VariableDeclaration",t[t.VariableDeclarationList=261]="VariableDeclarationList",t[t.FunctionDeclaration=262]="FunctionDeclaration",t[t.ClassDeclaration=263]="ClassDeclaration",t[t.InterfaceDeclaration=264]="InterfaceDeclaration",t[t.TypeAliasDeclaration=265]="TypeAliasDeclaration",t[t.EnumDeclaration=266]="EnumDeclaration",t[t.ModuleDeclaration=267]="ModuleDeclaration",t[t.ModuleBlock=268]="ModuleBlock",t[t.CaseBlock=269]="CaseBlock",t[t.NamespaceExportDeclaration=270]="NamespaceExportDeclaration",t[t.ImportEqualsDeclaration=271]="ImportEqualsDeclaration",t[t.ImportDeclaration=272]="ImportDeclaration",t[t.ImportClause=273]="ImportClause",t[t.NamespaceImport=274]="NamespaceImport",t[t.NamedImports=275]="NamedImports",t[t.ImportSpecifier=276]="ImportSpecifier",t[t.ExportAssignment=277]="ExportAssignment",t[t.ExportDeclaration=278]="ExportDeclaration",t[t.NamedExports=279]="NamedExports",t[t.NamespaceExport=280]="NamespaceExport",t[t.ExportSpecifier=281]="ExportSpecifier",t[t.MissingDeclaration=282]="MissingDeclaration",t[t.ExternalModuleReference=283]="ExternalModuleReference",t[t.JsxElement=284]="JsxElement",t[t.JsxSelfClosingElement=285]="JsxSelfClosingElement",t[t.JsxOpeningElement=286]="JsxOpeningElement",t[t.JsxClosingElement=287]="JsxClosingElement",t[t.JsxFragment=288]="JsxFragment",t[t.JsxOpeningFragment=289]="JsxOpeningFragment",t[t.JsxClosingFragment=290]="JsxClosingFragment",t[t.JsxAttribute=291]="JsxAttribute",t[t.JsxAttributes=292]="JsxAttributes",t[t.JsxSpreadAttribute=293]="JsxSpreadAttribute",t[t.JsxExpression=294]="JsxExpression",t[t.JsxNamespacedName=295]="JsxNamespacedName",t[t.CaseClause=296]="CaseClause",t[t.DefaultClause=297]="DefaultClause",t[t.HeritageClause=298]="HeritageClause",t[t.CatchClause=299]="CatchClause",t[t.ImportAttributes=300]="ImportAttributes",t[t.ImportAttribute=301]="ImportAttribute",t[t.AssertClause=300]="AssertClause",t[t.AssertEntry=301]="AssertEntry",t[t.ImportTypeAssertionContainer=302]="ImportTypeAssertionContainer",t[t.PropertyAssignment=303]="PropertyAssignment",t[t.ShorthandPropertyAssignment=304]="ShorthandPropertyAssignment",t[t.SpreadAssignment=305]="SpreadAssignment",t[t.EnumMember=306]="EnumMember",t[t.SourceFile=307]="SourceFile",t[t.Bundle=308]="Bundle",t[t.JSDocTypeExpression=309]="JSDocTypeExpression",t[t.JSDocNameReference=310]="JSDocNameReference",t[t.JSDocMemberName=311]="JSDocMemberName",t[t.JSDocAllType=312]="JSDocAllType",t[t.JSDocUnknownType=313]="JSDocUnknownType",t[t.JSDocNullableType=314]="JSDocNullableType",t[t.JSDocNonNullableType=315]="JSDocNonNullableType",t[t.JSDocOptionalType=316]="JSDocOptionalType",t[t.JSDocFunctionType=317]="JSDocFunctionType",t[t.JSDocVariadicType=318]="JSDocVariadicType",t[t.JSDocNamepathType=319]="JSDocNamepathType",t[t.JSDoc=320]="JSDoc",t[t.JSDocComment=320]="JSDocComment",t[t.JSDocText=321]="JSDocText",t[t.JSDocTypeLiteral=322]="JSDocTypeLiteral",t[t.JSDocSignature=323]="JSDocSignature",t[t.JSDocLink=324]="JSDocLink",t[t.JSDocLinkCode=325]="JSDocLinkCode",t[t.JSDocLinkPlain=326]="JSDocLinkPlain",t[t.JSDocTag=327]="JSDocTag",t[t.JSDocAugmentsTag=328]="JSDocAugmentsTag",t[t.JSDocImplementsTag=329]="JSDocImplementsTag",t[t.JSDocAuthorTag=330]="JSDocAuthorTag",t[t.JSDocDeprecatedTag=331]="JSDocDeprecatedTag",t[t.JSDocClassTag=332]="JSDocClassTag",t[t.JSDocPublicTag=333]="JSDocPublicTag",t[t.JSDocPrivateTag=334]="JSDocPrivateTag",t[t.JSDocProtectedTag=335]="JSDocProtectedTag",t[t.JSDocReadonlyTag=336]="JSDocReadonlyTag",t[t.JSDocOverrideTag=337]="JSDocOverrideTag",t[t.JSDocCallbackTag=338]="JSDocCallbackTag",t[t.JSDocOverloadTag=339]="JSDocOverloadTag",t[t.JSDocEnumTag=340]="JSDocEnumTag",t[t.JSDocParameterTag=341]="JSDocParameterTag",t[t.JSDocReturnTag=342]="JSDocReturnTag",t[t.JSDocThisTag=343]="JSDocThisTag",t[t.JSDocTypeTag=344]="JSDocTypeTag",t[t.JSDocTemplateTag=345]="JSDocTemplateTag",t[t.JSDocTypedefTag=346]="JSDocTypedefTag",t[t.JSDocSeeTag=347]="JSDocSeeTag",t[t.JSDocPropertyTag=348]="JSDocPropertyTag",t[t.JSDocThrowsTag=349]="JSDocThrowsTag",t[t.JSDocSatisfiesTag=350]="JSDocSatisfiesTag",t[t.JSDocImportTag=351]="JSDocImportTag",t[t.SyntaxList=352]="SyntaxList",t[t.NotEmittedStatement=353]="NotEmittedStatement",t[t.PartiallyEmittedExpression=354]="PartiallyEmittedExpression",t[t.CommaListExpression=355]="CommaListExpression",t[t.SyntheticReferenceExpression=356]="SyntheticReferenceExpression",t[t.Count=357]="Count",t[t.FirstAssignment=64]="FirstAssignment",t[t.LastAssignment=79]="LastAssignment",t[t.FirstCompoundAssignment=65]="FirstCompoundAssignment",t[t.LastCompoundAssignment=79]="LastCompoundAssignment",t[t.FirstReservedWord=83]="FirstReservedWord",t[t.LastReservedWord=118]="LastReservedWord",t[t.FirstKeyword=83]="FirstKeyword",t[t.LastKeyword=165]="LastKeyword",t[t.FirstFutureReservedWord=119]="FirstFutureReservedWord",t[t.LastFutureReservedWord=127]="LastFutureReservedWord",t[t.FirstTypeNode=182]="FirstTypeNode",t[t.LastTypeNode=205]="LastTypeNode",t[t.FirstPunctuation=19]="FirstPunctuation",t[t.LastPunctuation=79]="LastPunctuation",t[t.FirstToken=0]="FirstToken",t[t.LastToken=165]="LastToken",t[t.FirstTriviaToken=2]="FirstTriviaToken",t[t.LastTriviaToken=7]="LastTriviaToken",t[t.FirstLiteralToken=9]="FirstLiteralToken",t[t.LastLiteralToken=15]="LastLiteralToken",t[t.FirstTemplateToken=15]="FirstTemplateToken",t[t.LastTemplateToken=18]="LastTemplateToken",t[t.FirstBinaryOperator=30]="FirstBinaryOperator",t[t.LastBinaryOperator=79]="LastBinaryOperator",t[t.FirstStatement=243]="FirstStatement",t[t.LastStatement=259]="LastStatement",t[t.FirstNode=166]="FirstNode",t[t.FirstJSDocNode=309]="FirstJSDocNode",t[t.LastJSDocNode=351]="LastJSDocNode",t[t.FirstJSDocTagNode=327]="FirstJSDocTagNode",t[t.LastJSDocTagNode=351]="LastJSDocTagNode",t[t.FirstContextualKeyword=128]="FirstContextualKeyword",t[t.LastContextualKeyword=165]="LastContextualKeyword",t))(SCe||{}),xCe=(t=>(t[t.None=0]="None",t[t.Let=1]="Let",t[t.Const=2]="Const",t[t.Using=4]="Using",t[t.AwaitUsing=6]="AwaitUsing",t[t.NestedNamespace=8]="NestedNamespace",t[t.Synthesized=16]="Synthesized",t[t.Namespace=32]="Namespace",t[t.OptionalChain=64]="OptionalChain",t[t.ExportContext=128]="ExportContext",t[t.ContainsThis=256]="ContainsThis",t[t.HasImplicitReturn=512]="HasImplicitReturn",t[t.HasExplicitReturn=1024]="HasExplicitReturn",t[t.GlobalAugmentation=2048]="GlobalAugmentation",t[t.HasAsyncFunctions=4096]="HasAsyncFunctions",t[t.DisallowInContext=8192]="DisallowInContext",t[t.YieldContext=16384]="YieldContext",t[t.DecoratorContext=32768]="DecoratorContext",t[t.AwaitContext=65536]="AwaitContext",t[t.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",t[t.ThisNodeHasError=262144]="ThisNodeHasError",t[t.JavaScriptFile=524288]="JavaScriptFile",t[t.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",t[t.HasAggregatedChildData=2097152]="HasAggregatedChildData",t[t.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",t[t.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",t[t.JSDoc=16777216]="JSDoc",t[t.Ambient=33554432]="Ambient",t[t.InWithStatement=67108864]="InWithStatement",t[t.JsonFile=134217728]="JsonFile",t[t.TypeCached=268435456]="TypeCached",t[t.Deprecated=536870912]="Deprecated",t[t.BlockScoped=7]="BlockScoped",t[t.Constant=6]="Constant",t[t.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",t[t.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",t[t.ContextFlags=101441536]="ContextFlags",t[t.TypeExcludesFlags=81920]="TypeExcludesFlags",t[t.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",t[t.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",t[t.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",t))(xCe||{}),CCe=(t=>(t[t.None=0]="None",t[t.Public=1]="Public",t[t.Private=2]="Private",t[t.Protected=4]="Protected",t[t.Readonly=8]="Readonly",t[t.Override=16]="Override",t[t.Export=32]="Export",t[t.Abstract=64]="Abstract",t[t.Ambient=128]="Ambient",t[t.Static=256]="Static",t[t.Accessor=512]="Accessor",t[t.Async=1024]="Async",t[t.Default=2048]="Default",t[t.Const=4096]="Const",t[t.In=8192]="In",t[t.Out=16384]="Out",t[t.Decorator=32768]="Decorator",t[t.Deprecated=65536]="Deprecated",t[t.JSDocPublic=8388608]="JSDocPublic",t[t.JSDocPrivate=16777216]="JSDocPrivate",t[t.JSDocProtected=33554432]="JSDocProtected",t[t.JSDocReadonly=67108864]="JSDocReadonly",t[t.JSDocOverride=134217728]="JSDocOverride",t[t.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",t[t.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",t[t.SyntacticModifiers=65535]="SyntacticModifiers",t[t.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",t[t.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",t[t.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",t[t.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",t[t.HasComputedFlags=536870912]="HasComputedFlags",t[t.AccessibilityModifier=7]="AccessibilityModifier",t[t.ParameterPropertyModifier=31]="ParameterPropertyModifier",t[t.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",t[t.TypeScriptModifier=28895]="TypeScriptModifier",t[t.ExportDefault=2080]="ExportDefault",t[t.All=131071]="All",t[t.Modifier=98303]="Modifier",t))(CCe||{}),kCe=(t=>(t[t.None=0]="None",t[t.IntrinsicNamedElement=1]="IntrinsicNamedElement",t[t.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",t[t.IntrinsicElement=3]="IntrinsicElement",t))(kCe||{}),xoe=(t=>(t[t.None=0]="None",t[t.Succeeded=1]="Succeeded",t[t.Failed=2]="Failed",t[t.ReportsUnmeasurable=8]="ReportsUnmeasurable",t[t.ReportsUnreliable=16]="ReportsUnreliable",t[t.ReportsMask=24]="ReportsMask",t[t.ComplexityOverflow=32]="ComplexityOverflow",t[t.StackDepthOverflow=64]="StackDepthOverflow",t[t.Overflow=96]="Overflow",t))(xoe||{}),wCe=(t=>(t[t.None=0]="None",t[t.Always=1]="Always",t[t.Never=2]="Never",t[t.Sometimes=3]="Sometimes",t))(wCe||{}),Xs=(t=>(t[t.None=0]="None",t[t.Auto=1]="Auto",t[t.Loop=2]="Loop",t[t.Unique=3]="Unique",t[t.Node=4]="Node",t[t.KindMask=7]="KindMask",t[t.ReservedInNestedScopes=8]="ReservedInNestedScopes",t[t.Optimistic=16]="Optimistic",t[t.FileLevel=32]="FileLevel",t[t.AllowNameSubstitution=64]="AllowNameSubstitution",t))(Xs||{}),qQ=(t=>(t[t.None=0]="None",t[t.HasIndices=1]="HasIndices",t[t.Global=2]="Global",t[t.IgnoreCase=4]="IgnoreCase",t[t.Multiline=8]="Multiline",t[t.DotAll=16]="DotAll",t[t.Unicode=32]="Unicode",t[t.UnicodeSets=64]="UnicodeSets",t[t.Sticky=128]="Sticky",t[t.AnyUnicodeMode=96]="AnyUnicodeMode",t[t.Modifiers=28]="Modifiers",t))(qQ||{}),TCe=(t=>(t[t.None=0]="None",t[t.PrecedingLineBreak=1]="PrecedingLineBreak",t[t.PrecedingJSDocComment=2]="PrecedingJSDocComment",t[t.Unterminated=4]="Unterminated",t[t.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",t[t.Scientific=16]="Scientific",t[t.Octal=32]="Octal",t[t.HexSpecifier=64]="HexSpecifier",t[t.BinarySpecifier=128]="BinarySpecifier",t[t.OctalSpecifier=256]="OctalSpecifier",t[t.ContainsSeparator=512]="ContainsSeparator",t[t.UnicodeEscape=1024]="UnicodeEscape",t[t.ContainsInvalidEscape=2048]="ContainsInvalidEscape",t[t.HexEscape=4096]="HexEscape",t[t.ContainsLeadingZero=8192]="ContainsLeadingZero",t[t.ContainsInvalidSeparator=16384]="ContainsInvalidSeparator",t[t.PrecedingJSDocLeadingAsterisks=32768]="PrecedingJSDocLeadingAsterisks",t[t.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",t[t.WithSpecifier=448]="WithSpecifier",t[t.StringLiteralFlags=7176]="StringLiteralFlags",t[t.NumericLiteralFlags=25584]="NumericLiteralFlags",t[t.TemplateLiteralLikeFlags=7176]="TemplateLiteralLikeFlags",t[t.IsInvalid=26656]="IsInvalid",t))(TCe||{}),Coe=(t=>(t[t.Unreachable=1]="Unreachable",t[t.Start=2]="Start",t[t.BranchLabel=4]="BranchLabel",t[t.LoopLabel=8]="LoopLabel",t[t.Assignment=16]="Assignment",t[t.TrueCondition=32]="TrueCondition",t[t.FalseCondition=64]="FalseCondition",t[t.SwitchClause=128]="SwitchClause",t[t.ArrayMutation=256]="ArrayMutation",t[t.Call=512]="Call",t[t.ReduceLabel=1024]="ReduceLabel",t[t.Referenced=2048]="Referenced",t[t.Shared=4096]="Shared",t[t.Label=12]="Label",t[t.Condition=96]="Condition",t))(Coe||{}),$_e=(t=>(t[t.ExpectError=0]="ExpectError",t[t.Ignore=1]="Ignore",t))($_e||{}),sH=class{},koe=(t=>(t[t.RootFile=0]="RootFile",t[t.SourceFromProjectReference=1]="SourceFromProjectReference",t[t.OutputFromProjectReference=2]="OutputFromProjectReference",t[t.Import=3]="Import",t[t.ReferenceFile=4]="ReferenceFile",t[t.TypeReferenceDirective=5]="TypeReferenceDirective",t[t.LibFile=6]="LibFile",t[t.LibReferenceDirective=7]="LibReferenceDirective",t[t.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",t))(koe||{}),ECe=(t=>(t[t.FilePreprocessingLibReferenceDiagnostic=0]="FilePreprocessingLibReferenceDiagnostic",t[t.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",t[t.ResolutionDiagnostics=2]="ResolutionDiagnostics",t))(ECe||{}),G_e=(t=>(t[t.Js=0]="Js",t[t.Dts=1]="Dts",t[t.BuilderSignature=2]="BuilderSignature",t))(G_e||{}),woe=(t=>(t[t.Not=0]="Not",t[t.SafeModules=1]="SafeModules",t[t.Completely=2]="Completely",t))(woe||{}),DCe=(t=>(t[t.Success=0]="Success",t[t.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",t[t.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",t[t.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",t[t.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",t))(DCe||{}),ICe=(t=>(t[t.Ok=0]="Ok",t[t.NeedsOverride=1]="NeedsOverride",t[t.HasInvalidOverride=2]="HasInvalidOverride",t))(ICe||{}),Toe=(t=>(t[t.None=0]="None",t[t.Literal=1]="Literal",t[t.Subtype=2]="Subtype",t))(Toe||{}),NCe=(t=>(t[t.None=0]="None",t[t.NoSupertypeReduction=1]="NoSupertypeReduction",t[t.NoConstraintReduction=2]="NoConstraintReduction",t))(NCe||{}),O$=(t=>(t[t.None=0]="None",t[t.Signature=1]="Signature",t[t.NoConstraints=2]="NoConstraints",t[t.Completions=4]="Completions",t[t.SkipBindingPatterns=8]="SkipBindingPatterns",t))(O$||{}),K_e=(t=>(t[t.None=0]="None",t[t.NoTruncation=1]="NoTruncation",t[t.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",t[t.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",t[t.UseStructuralFallback=8]="UseStructuralFallback",t[t.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",t[t.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",t[t.UseFullyQualifiedType=64]="UseFullyQualifiedType",t[t.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",t[t.SuppressAnyReturnType=256]="SuppressAnyReturnType",t[t.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",t[t.MultilineObjectLiterals=1024]="MultilineObjectLiterals",t[t.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",t[t.UseTypeOfFunction=4096]="UseTypeOfFunction",t[t.OmitParameterModifiers=8192]="OmitParameterModifiers",t[t.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",t[t.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",t[t.NoTypeReduction=536870912]="NoTypeReduction",t[t.OmitThisParameter=33554432]="OmitThisParameter",t[t.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",t[t.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",t[t.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",t[t.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",t[t.AllowEmptyTuple=524288]="AllowEmptyTuple",t[t.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",t[t.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",t[t.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",t[t.IgnoreErrors=70221824]="IgnoreErrors",t[t.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",t[t.InTypeAlias=8388608]="InTypeAlias",t[t.InInitialEntityName=16777216]="InInitialEntityName",t))(K_e||{}),ACe=(t=>(t[t.None=0]="None",t[t.WriteComputedProps=1]="WriteComputedProps",t[t.NoSyntacticPrinter=2]="NoSyntacticPrinter",t[t.DoNotIncludeSymbolChain=4]="DoNotIncludeSymbolChain",t[t.AllowUnresolvedNames=8]="AllowUnresolvedNames",t))(ACe||{}),PCe=(t=>(t[t.None=0]="None",t[t.NoTruncation=1]="NoTruncation",t[t.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",t[t.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",t[t.UseStructuralFallback=8]="UseStructuralFallback",t[t.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",t[t.UseFullyQualifiedType=64]="UseFullyQualifiedType",t[t.SuppressAnyReturnType=256]="SuppressAnyReturnType",t[t.MultilineObjectLiterals=1024]="MultilineObjectLiterals",t[t.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",t[t.UseTypeOfFunction=4096]="UseTypeOfFunction",t[t.OmitParameterModifiers=8192]="OmitParameterModifiers",t[t.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",t[t.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",t[t.NoTypeReduction=536870912]="NoTypeReduction",t[t.OmitThisParameter=33554432]="OmitThisParameter",t[t.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",t[t.AddUndefined=131072]="AddUndefined",t[t.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",t[t.InArrayType=524288]="InArrayType",t[t.InElementType=2097152]="InElementType",t[t.InFirstTypeArgument=4194304]="InFirstTypeArgument",t[t.InTypeAlias=8388608]="InTypeAlias",t[t.NodeBuilderFlagsMask=848330095]="NodeBuilderFlagsMask",t))(PCe||{}),X_e=(t=>(t[t.None=0]="None",t[t.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",t[t.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",t[t.AllowAnyNodeKind=4]="AllowAnyNodeKind",t[t.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",t[t.WriteComputedProps=16]="WriteComputedProps",t[t.DoNotIncludeSymbolChain=32]="DoNotIncludeSymbolChain",t))(X_e||{}),LCe=(t=>(t[t.Accessible=0]="Accessible",t[t.NotAccessible=1]="NotAccessible",t[t.CannotBeNamed=2]="CannotBeNamed",t[t.NotResolved=3]="NotResolved",t))(LCe||{}),OCe=(t=>(t[t.This=0]="This",t[t.Identifier=1]="Identifier",t[t.AssertsThis=2]="AssertsThis",t[t.AssertsIdentifier=3]="AssertsIdentifier",t))(OCe||{}),FCe=(t=>(t[t.Unknown=0]="Unknown",t[t.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",t[t.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",t[t.NumberLikeType=3]="NumberLikeType",t[t.BigIntLikeType=4]="BigIntLikeType",t[t.StringLikeType=5]="StringLikeType",t[t.BooleanType=6]="BooleanType",t[t.ArrayLikeType=7]="ArrayLikeType",t[t.ESSymbolType=8]="ESSymbolType",t[t.Promise=9]="Promise",t[t.TypeWithCallSignature=10]="TypeWithCallSignature",t[t.ObjectType=11]="ObjectType",t))(FCe||{}),Y_e=(t=>(t[t.None=0]="None",t[t.FunctionScopedVariable=1]="FunctionScopedVariable",t[t.BlockScopedVariable=2]="BlockScopedVariable",t[t.Property=4]="Property",t[t.EnumMember=8]="EnumMember",t[t.Function=16]="Function",t[t.Class=32]="Class",t[t.Interface=64]="Interface",t[t.ConstEnum=128]="ConstEnum",t[t.RegularEnum=256]="RegularEnum",t[t.ValueModule=512]="ValueModule",t[t.NamespaceModule=1024]="NamespaceModule",t[t.TypeLiteral=2048]="TypeLiteral",t[t.ObjectLiteral=4096]="ObjectLiteral",t[t.Method=8192]="Method",t[t.Constructor=16384]="Constructor",t[t.GetAccessor=32768]="GetAccessor",t[t.SetAccessor=65536]="SetAccessor",t[t.Signature=131072]="Signature",t[t.TypeParameter=262144]="TypeParameter",t[t.TypeAlias=524288]="TypeAlias",t[t.ExportValue=1048576]="ExportValue",t[t.Alias=2097152]="Alias",t[t.Prototype=4194304]="Prototype",t[t.ExportStar=8388608]="ExportStar",t[t.Optional=16777216]="Optional",t[t.Transient=33554432]="Transient",t[t.Assignment=67108864]="Assignment",t[t.ModuleExports=134217728]="ModuleExports",t[t.All=-1]="All",t[t.Enum=384]="Enum",t[t.Variable=3]="Variable",t[t.Value=111551]="Value",t[t.Type=788968]="Type",t[t.Namespace=1920]="Namespace",t[t.Module=1536]="Module",t[t.Accessor=98304]="Accessor",t[t.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",t[t.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",t[t.ParameterExcludes=111551]="ParameterExcludes",t[t.PropertyExcludes=0]="PropertyExcludes",t[t.EnumMemberExcludes=900095]="EnumMemberExcludes",t[t.FunctionExcludes=110991]="FunctionExcludes",t[t.ClassExcludes=899503]="ClassExcludes",t[t.InterfaceExcludes=788872]="InterfaceExcludes",t[t.RegularEnumExcludes=899327]="RegularEnumExcludes",t[t.ConstEnumExcludes=899967]="ConstEnumExcludes",t[t.ValueModuleExcludes=110735]="ValueModuleExcludes",t[t.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",t[t.MethodExcludes=103359]="MethodExcludes",t[t.GetAccessorExcludes=46015]="GetAccessorExcludes",t[t.SetAccessorExcludes=78783]="SetAccessorExcludes",t[t.AccessorExcludes=13247]="AccessorExcludes",t[t.TypeParameterExcludes=526824]="TypeParameterExcludes",t[t.TypeAliasExcludes=788968]="TypeAliasExcludes",t[t.AliasExcludes=2097152]="AliasExcludes",t[t.ModuleMember=2623475]="ModuleMember",t[t.ExportHasLocal=944]="ExportHasLocal",t[t.BlockScoped=418]="BlockScoped",t[t.PropertyOrAccessor=98308]="PropertyOrAccessor",t[t.ClassMember=106500]="ClassMember",t[t.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",t[t.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",t[t.Classifiable=2885600]="Classifiable",t[t.LateBindingContainer=6256]="LateBindingContainer",t))(Y_e||{}),MCe=(t=>(t[t.None=0]="None",t[t.Instantiated=1]="Instantiated",t[t.SyntheticProperty=2]="SyntheticProperty",t[t.SyntheticMethod=4]="SyntheticMethod",t[t.Readonly=8]="Readonly",t[t.ReadPartial=16]="ReadPartial",t[t.WritePartial=32]="WritePartial",t[t.HasNonUniformType=64]="HasNonUniformType",t[t.HasLiteralType=128]="HasLiteralType",t[t.ContainsPublic=256]="ContainsPublic",t[t.ContainsProtected=512]="ContainsProtected",t[t.ContainsPrivate=1024]="ContainsPrivate",t[t.ContainsStatic=2048]="ContainsStatic",t[t.Late=4096]="Late",t[t.ReverseMapped=8192]="ReverseMapped",t[t.OptionalParameter=16384]="OptionalParameter",t[t.RestParameter=32768]="RestParameter",t[t.DeferredType=65536]="DeferredType",t[t.HasNeverType=131072]="HasNeverType",t[t.Mapped=262144]="Mapped",t[t.StripOptional=524288]="StripOptional",t[t.Unresolved=1048576]="Unresolved",t[t.Synthetic=6]="Synthetic",t[t.Discriminant=192]="Discriminant",t[t.Partial=48]="Partial",t))(MCe||{}),RCe=(t=>(t.Call="__call",t.Constructor="__constructor",t.New="__new",t.Index="__index",t.ExportStar="__export",t.Global="__global",t.Missing="__missing",t.Type="__type",t.Object="__object",t.JSXAttributes="__jsxAttributes",t.Class="__class",t.Function="__function",t.Computed="__computed",t.Resolving="__resolving__",t.ExportEquals="export=",t.Default="default",t.This="this",t.InstantiationExpression="__instantiationExpression",t.ImportAttributes="__importAttributes",t))(RCe||{}),Q_e=(t=>(t[t.None=0]="None",t[t.TypeChecked=1]="TypeChecked",t[t.LexicalThis=2]="LexicalThis",t[t.CaptureThis=4]="CaptureThis",t[t.CaptureNewTarget=8]="CaptureNewTarget",t[t.SuperInstance=16]="SuperInstance",t[t.SuperStatic=32]="SuperStatic",t[t.ContextChecked=64]="ContextChecked",t[t.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",t[t.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",t[t.CaptureArguments=512]="CaptureArguments",t[t.EnumValuesComputed=1024]="EnumValuesComputed",t[t.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",t[t.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",t[t.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",t[t.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",t[t.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",t[t.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",t[t.AssignmentsMarked=131072]="AssignmentsMarked",t[t.ContainsConstructorReference=262144]="ContainsConstructorReference",t[t.ConstructorReference=536870912]="ConstructorReference",t[t.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",t[t.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",t[t.InCheckIdentifier=4194304]="InCheckIdentifier",t[t.PartiallyTypeChecked=8388608]="PartiallyTypeChecked",t[t.LazyFlags=539358128]="LazyFlags",t))(Q_e||{}),Z_e=(t=>(t[t.Any=1]="Any",t[t.Unknown=2]="Unknown",t[t.String=4]="String",t[t.Number=8]="Number",t[t.Boolean=16]="Boolean",t[t.Enum=32]="Enum",t[t.BigInt=64]="BigInt",t[t.StringLiteral=128]="StringLiteral",t[t.NumberLiteral=256]="NumberLiteral",t[t.BooleanLiteral=512]="BooleanLiteral",t[t.EnumLiteral=1024]="EnumLiteral",t[t.BigIntLiteral=2048]="BigIntLiteral",t[t.ESSymbol=4096]="ESSymbol",t[t.UniqueESSymbol=8192]="UniqueESSymbol",t[t.Void=16384]="Void",t[t.Undefined=32768]="Undefined",t[t.Null=65536]="Null",t[t.Never=131072]="Never",t[t.TypeParameter=262144]="TypeParameter",t[t.Object=524288]="Object",t[t.Union=1048576]="Union",t[t.Intersection=2097152]="Intersection",t[t.Index=4194304]="Index",t[t.IndexedAccess=8388608]="IndexedAccess",t[t.Conditional=16777216]="Conditional",t[t.Substitution=33554432]="Substitution",t[t.NonPrimitive=67108864]="NonPrimitive",t[t.TemplateLiteral=134217728]="TemplateLiteral",t[t.StringMapping=268435456]="StringMapping",t[t.Reserved1=536870912]="Reserved1",t[t.Reserved2=1073741824]="Reserved2",t[t.AnyOrUnknown=3]="AnyOrUnknown",t[t.Nullable=98304]="Nullable",t[t.Literal=2944]="Literal",t[t.Unit=109472]="Unit",t[t.Freshable=2976]="Freshable",t[t.StringOrNumberLiteral=384]="StringOrNumberLiteral",t[t.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",t[t.DefinitelyFalsy=117632]="DefinitelyFalsy",t[t.PossiblyFalsy=117724]="PossiblyFalsy",t[t.Intrinsic=67359327]="Intrinsic",t[t.StringLike=402653316]="StringLike",t[t.NumberLike=296]="NumberLike",t[t.BigIntLike=2112]="BigIntLike",t[t.BooleanLike=528]="BooleanLike",t[t.EnumLike=1056]="EnumLike",t[t.ESSymbolLike=12288]="ESSymbolLike",t[t.VoidLike=49152]="VoidLike",t[t.Primitive=402784252]="Primitive",t[t.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",t[t.DisjointDomains=469892092]="DisjointDomains",t[t.UnionOrIntersection=3145728]="UnionOrIntersection",t[t.StructuredType=3670016]="StructuredType",t[t.TypeVariable=8650752]="TypeVariable",t[t.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",t[t.InstantiablePrimitive=406847488]="InstantiablePrimitive",t[t.Instantiable=465829888]="Instantiable",t[t.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",t[t.ObjectFlagsType=3899393]="ObjectFlagsType",t[t.Simplifiable=25165824]="Simplifiable",t[t.Singleton=67358815]="Singleton",t[t.Narrowable=536624127]="Narrowable",t[t.IncludesMask=473694207]="IncludesMask",t[t.IncludesMissingType=262144]="IncludesMissingType",t[t.IncludesNonWideningType=4194304]="IncludesNonWideningType",t[t.IncludesWildcard=8388608]="IncludesWildcard",t[t.IncludesEmptyObject=16777216]="IncludesEmptyObject",t[t.IncludesInstantiable=33554432]="IncludesInstantiable",t[t.IncludesConstrainedTypeVariable=536870912]="IncludesConstrainedTypeVariable",t[t.IncludesError=1073741824]="IncludesError",t[t.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",t))(Z_e||{}),epe=(t=>(t[t.None=0]="None",t[t.Class=1]="Class",t[t.Interface=2]="Interface",t[t.Reference=4]="Reference",t[t.Tuple=8]="Tuple",t[t.Anonymous=16]="Anonymous",t[t.Mapped=32]="Mapped",t[t.Instantiated=64]="Instantiated",t[t.ObjectLiteral=128]="ObjectLiteral",t[t.EvolvingArray=256]="EvolvingArray",t[t.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",t[t.ReverseMapped=1024]="ReverseMapped",t[t.JsxAttributes=2048]="JsxAttributes",t[t.JSLiteral=4096]="JSLiteral",t[t.FreshLiteral=8192]="FreshLiteral",t[t.ArrayLiteral=16384]="ArrayLiteral",t[t.PrimitiveUnion=32768]="PrimitiveUnion",t[t.ContainsWideningType=65536]="ContainsWideningType",t[t.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",t[t.NonInferrableType=262144]="NonInferrableType",t[t.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",t[t.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",t[t.ClassOrInterface=3]="ClassOrInterface",t[t.RequiresWidening=196608]="RequiresWidening",t[t.PropagatingFlags=458752]="PropagatingFlags",t[t.InstantiatedMapped=96]="InstantiatedMapped",t[t.ObjectTypeKindMask=1343]="ObjectTypeKindMask",t[t.ContainsSpread=2097152]="ContainsSpread",t[t.ObjectRestType=4194304]="ObjectRestType",t[t.InstantiationExpressionType=8388608]="InstantiationExpressionType",t[t.SingleSignatureType=134217728]="SingleSignatureType",t[t.IsClassInstanceClone=16777216]="IsClassInstanceClone",t[t.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",t[t.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",t[t.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",t[t.IsGenericObjectType=4194304]="IsGenericObjectType",t[t.IsGenericIndexType=8388608]="IsGenericIndexType",t[t.IsGenericType=12582912]="IsGenericType",t[t.ContainsIntersections=16777216]="ContainsIntersections",t[t.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",t[t.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",t[t.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",t[t.IsNeverIntersection=33554432]="IsNeverIntersection",t[t.IsConstrainedTypeVariable=67108864]="IsConstrainedTypeVariable",t))(epe||{}),BCe=(t=>(t[t.Invariant=0]="Invariant",t[t.Covariant=1]="Covariant",t[t.Contravariant=2]="Contravariant",t[t.Bivariant=3]="Bivariant",t[t.Independent=4]="Independent",t[t.VarianceMask=7]="VarianceMask",t[t.Unmeasurable=8]="Unmeasurable",t[t.Unreliable=16]="Unreliable",t[t.AllowsStructuralFallback=24]="AllowsStructuralFallback",t))(BCe||{}),jCe=(t=>(t[t.Required=1]="Required",t[t.Optional=2]="Optional",t[t.Rest=4]="Rest",t[t.Variadic=8]="Variadic",t[t.Fixed=3]="Fixed",t[t.Variable=12]="Variable",t[t.NonRequired=14]="NonRequired",t[t.NonRest=11]="NonRest",t))(jCe||{}),WCe=(t=>(t[t.None=0]="None",t[t.IncludeUndefined=1]="IncludeUndefined",t[t.NoIndexSignatures=2]="NoIndexSignatures",t[t.Writing=4]="Writing",t[t.CacheSymbol=8]="CacheSymbol",t[t.AllowMissing=16]="AllowMissing",t[t.ExpressionPosition=32]="ExpressionPosition",t[t.ReportDeprecated=64]="ReportDeprecated",t[t.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",t[t.Contextual=256]="Contextual",t[t.Persistent=1]="Persistent",t))(WCe||{}),tpe=(t=>(t[t.None=0]="None",t[t.StringsOnly=1]="StringsOnly",t[t.NoIndexSignatures=2]="NoIndexSignatures",t[t.NoReducibleCheck=4]="NoReducibleCheck",t))(tpe||{}),zCe=(t=>(t[t.Component=0]="Component",t[t.Function=1]="Function",t[t.Mixed=2]="Mixed",t))(zCe||{}),VCe=(t=>(t[t.Call=0]="Call",t[t.Construct=1]="Construct",t))(VCe||{}),Eoe=(t=>(t[t.None=0]="None",t[t.HasRestParameter=1]="HasRestParameter",t[t.HasLiteralTypes=2]="HasLiteralTypes",t[t.Abstract=4]="Abstract",t[t.IsInnerCallChain=8]="IsInnerCallChain",t[t.IsOuterCallChain=16]="IsOuterCallChain",t[t.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",t[t.IsNonInferrable=64]="IsNonInferrable",t[t.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",t[t.PropagatingFlags=167]="PropagatingFlags",t[t.CallChainFlags=24]="CallChainFlags",t))(Eoe||{}),ipe=(t=>(t[t.String=0]="String",t[t.Number=1]="Number",t))(ipe||{}),npe=(t=>(t[t.Simple=0]="Simple",t[t.Array=1]="Array",t[t.Deferred=2]="Deferred",t[t.Function=3]="Function",t[t.Composite=4]="Composite",t[t.Merged=5]="Merged",t))(npe||{}),HCe=(t=>(t[t.None=0]="None",t[t.NakedTypeVariable=1]="NakedTypeVariable",t[t.SpeculativeTuple=2]="SpeculativeTuple",t[t.SubstituteSource=4]="SubstituteSource",t[t.HomomorphicMappedType=8]="HomomorphicMappedType",t[t.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",t[t.MappedTypeConstraint=32]="MappedTypeConstraint",t[t.ContravariantConditional=64]="ContravariantConditional",t[t.ReturnType=128]="ReturnType",t[t.LiteralKeyof=256]="LiteralKeyof",t[t.NoConstraints=512]="NoConstraints",t[t.AlwaysStrict=1024]="AlwaysStrict",t[t.MaxValue=2048]="MaxValue",t[t.PriorityImpliesCombination=416]="PriorityImpliesCombination",t[t.Circularity=-1]="Circularity",t))(HCe||{}),UCe=(t=>(t[t.None=0]="None",t[t.NoDefault=1]="NoDefault",t[t.AnyDefault=2]="AnyDefault",t[t.SkippedGenericFunction=4]="SkippedGenericFunction",t))(UCe||{}),JCe=(t=>(t[t.False=0]="False",t[t.Unknown=1]="Unknown",t[t.Maybe=3]="Maybe",t[t.True=-1]="True",t))(JCe||{}),qCe=(t=>(t[t.None=0]="None",t[t.ExportsProperty=1]="ExportsProperty",t[t.ModuleExports=2]="ModuleExports",t[t.PrototypeProperty=3]="PrototypeProperty",t[t.ThisProperty=4]="ThisProperty",t[t.Property=5]="Property",t[t.Prototype=6]="Prototype",t[t.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",t[t.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",t[t.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",t))(qCe||{}),Doe=(t=>(t[t.Warning=0]="Warning",t[t.Error=1]="Error",t[t.Suggestion=2]="Suggestion",t[t.Message=3]="Message",t))(Doe||{});function e5(t,n=!0){let a=Doe[t.category];return n?a.toLowerCase():a}var aH=(t=>(t[t.Classic=1]="Classic",t[t.NodeJs=2]="NodeJs",t[t.Node10=2]="Node10",t[t.Node16=3]="Node16",t[t.NodeNext=99]="NodeNext",t[t.Bundler=100]="Bundler",t))(aH||{}),$Ce=(t=>(t[t.Legacy=1]="Legacy",t[t.Auto=2]="Auto",t[t.Force=3]="Force",t))($Ce||{}),GCe=(t=>(t[t.FixedPollingInterval=0]="FixedPollingInterval",t[t.PriorityPollingInterval=1]="PriorityPollingInterval",t[t.DynamicPriorityPolling=2]="DynamicPriorityPolling",t[t.FixedChunkSizePolling=3]="FixedChunkSizePolling",t[t.UseFsEvents=4]="UseFsEvents",t[t.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",t))(GCe||{}),KCe=(t=>(t[t.UseFsEvents=0]="UseFsEvents",t[t.FixedPollingInterval=1]="FixedPollingInterval",t[t.DynamicPriorityPolling=2]="DynamicPriorityPolling",t[t.FixedChunkSizePolling=3]="FixedChunkSizePolling",t))(KCe||{}),XCe=(t=>(t[t.FixedInterval=0]="FixedInterval",t[t.PriorityInterval=1]="PriorityInterval",t[t.DynamicPriority=2]="DynamicPriority",t[t.FixedChunkSize=3]="FixedChunkSize",t))(XCe||{}),$Q=(t=>(t[t.None=0]="None",t[t.CommonJS=1]="CommonJS",t[t.AMD=2]="AMD",t[t.UMD=3]="UMD",t[t.System=4]="System",t[t.ES2015=5]="ES2015",t[t.ES2020=6]="ES2020",t[t.ES2022=7]="ES2022",t[t.ESNext=99]="ESNext",t[t.Node16=100]="Node16",t[t.NodeNext=199]="NodeNext",t[t.Preserve=200]="Preserve",t))($Q||{}),YCe=(t=>(t[t.None=0]="None",t[t.Preserve=1]="Preserve",t[t.React=2]="React",t[t.ReactNative=3]="ReactNative",t[t.ReactJSX=4]="ReactJSX",t[t.ReactJSXDev=5]="ReactJSXDev",t))(YCe||{}),Ioe=(t=>(t[t.Remove=0]="Remove",t[t.Preserve=1]="Preserve",t[t.Error=2]="Error",t))(Ioe||{}),t5=(t=>(t[t.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",t[t.LineFeed=1]="LineFeed",t))(t5||{}),cH=(t=>(t[t.Unknown=0]="Unknown",t[t.JS=1]="JS",t[t.JSX=2]="JSX",t[t.TS=3]="TS",t[t.TSX=4]="TSX",t[t.External=5]="External",t[t.JSON=6]="JSON",t[t.Deferred=7]="Deferred",t))(cH||{}),QCe=(t=>(t[t.ES3=0]="ES3",t[t.ES5=1]="ES5",t[t.ES2015=2]="ES2015",t[t.ES2016=3]="ES2016",t[t.ES2017=4]="ES2017",t[t.ES2018=5]="ES2018",t[t.ES2019=6]="ES2019",t[t.ES2020=7]="ES2020",t[t.ES2021=8]="ES2021",t[t.ES2022=9]="ES2022",t[t.ES2023=10]="ES2023",t[t.ESNext=99]="ESNext",t[t.JSON=100]="JSON",t[t.Latest=99]="Latest",t))(QCe||{}),ZCe=(t=>(t[t.Standard=0]="Standard",t[t.JSX=1]="JSX",t))(ZCe||{}),eke=(t=>(t[t.None=0]="None",t[t.Recursive=1]="Recursive",t))(eke||{}),tke=(t=>(t[t.EOF=-1]="EOF",t[t.nullCharacter=0]="nullCharacter",t[t.maxAsciiCharacter=127]="maxAsciiCharacter",t[t.lineFeed=10]="lineFeed",t[t.carriageReturn=13]="carriageReturn",t[t.lineSeparator=8232]="lineSeparator",t[t.paragraphSeparator=8233]="paragraphSeparator",t[t.nextLine=133]="nextLine",t[t.space=32]="space",t[t.nonBreakingSpace=160]="nonBreakingSpace",t[t.enQuad=8192]="enQuad",t[t.emQuad=8193]="emQuad",t[t.enSpace=8194]="enSpace",t[t.emSpace=8195]="emSpace",t[t.threePerEmSpace=8196]="threePerEmSpace",t[t.fourPerEmSpace=8197]="fourPerEmSpace",t[t.sixPerEmSpace=8198]="sixPerEmSpace",t[t.figureSpace=8199]="figureSpace",t[t.punctuationSpace=8200]="punctuationSpace",t[t.thinSpace=8201]="thinSpace",t[t.hairSpace=8202]="hairSpace",t[t.zeroWidthSpace=8203]="zeroWidthSpace",t[t.narrowNoBreakSpace=8239]="narrowNoBreakSpace",t[t.ideographicSpace=12288]="ideographicSpace",t[t.mathematicalSpace=8287]="mathematicalSpace",t[t.ogham=5760]="ogham",t[t.replacementCharacter=65533]="replacementCharacter",t[t._=95]="_",t[t.$=36]="$",t[t._0=48]="_0",t[t._1=49]="_1",t[t._2=50]="_2",t[t._3=51]="_3",t[t._4=52]="_4",t[t._5=53]="_5",t[t._6=54]="_6",t[t._7=55]="_7",t[t._8=56]="_8",t[t._9=57]="_9",t[t.a=97]="a",t[t.b=98]="b",t[t.c=99]="c",t[t.d=100]="d",t[t.e=101]="e",t[t.f=102]="f",t[t.g=103]="g",t[t.h=104]="h",t[t.i=105]="i",t[t.j=106]="j",t[t.k=107]="k",t[t.l=108]="l",t[t.m=109]="m",t[t.n=110]="n",t[t.o=111]="o",t[t.p=112]="p",t[t.q=113]="q",t[t.r=114]="r",t[t.s=115]="s",t[t.t=116]="t",t[t.u=117]="u",t[t.v=118]="v",t[t.w=119]="w",t[t.x=120]="x",t[t.y=121]="y",t[t.z=122]="z",t[t.A=65]="A",t[t.B=66]="B",t[t.C=67]="C",t[t.D=68]="D",t[t.E=69]="E",t[t.F=70]="F",t[t.G=71]="G",t[t.H=72]="H",t[t.I=73]="I",t[t.J=74]="J",t[t.K=75]="K",t[t.L=76]="L",t[t.M=77]="M",t[t.N=78]="N",t[t.O=79]="O",t[t.P=80]="P",t[t.Q=81]="Q",t[t.R=82]="R",t[t.S=83]="S",t[t.T=84]="T",t[t.U=85]="U",t[t.V=86]="V",t[t.W=87]="W",t[t.X=88]="X",t[t.Y=89]="Y",t[t.Z=90]="Z",t[t.ampersand=38]="ampersand",t[t.asterisk=42]="asterisk",t[t.at=64]="at",t[t.backslash=92]="backslash",t[t.backtick=96]="backtick",t[t.bar=124]="bar",t[t.caret=94]="caret",t[t.closeBrace=125]="closeBrace",t[t.closeBracket=93]="closeBracket",t[t.closeParen=41]="closeParen",t[t.colon=58]="colon",t[t.comma=44]="comma",t[t.dot=46]="dot",t[t.doubleQuote=34]="doubleQuote",t[t.equals=61]="equals",t[t.exclamation=33]="exclamation",t[t.greaterThan=62]="greaterThan",t[t.hash=35]="hash",t[t.lessThan=60]="lessThan",t[t.minus=45]="minus",t[t.openBrace=123]="openBrace",t[t.openBracket=91]="openBracket",t[t.openParen=40]="openParen",t[t.percent=37]="percent",t[t.plus=43]="plus",t[t.question=63]="question",t[t.semicolon=59]="semicolon",t[t.singleQuote=39]="singleQuote",t[t.slash=47]="slash",t[t.tilde=126]="tilde",t[t.backspace=8]="backspace",t[t.formFeed=12]="formFeed",t[t.byteOrderMark=65279]="byteOrderMark",t[t.tab=9]="tab",t[t.verticalTab=11]="verticalTab",t))(tke||{}),GQ=(t=>(t.Ts=".ts",t.Tsx=".tsx",t.Dts=".d.ts",t.Js=".js",t.Jsx=".jsx",t.Json=".json",t.TsBuildInfo=".tsbuildinfo",t.Mjs=".mjs",t.Mts=".mts",t.Dmts=".d.mts",t.Cjs=".cjs",t.Cts=".cts",t.Dcts=".d.cts",t))(GQ||{}),rpe=(t=>(t[t.None=0]="None",t[t.ContainsTypeScript=1]="ContainsTypeScript",t[t.ContainsJsx=2]="ContainsJsx",t[t.ContainsESNext=4]="ContainsESNext",t[t.ContainsES2022=8]="ContainsES2022",t[t.ContainsES2021=16]="ContainsES2021",t[t.ContainsES2020=32]="ContainsES2020",t[t.ContainsES2019=64]="ContainsES2019",t[t.ContainsES2018=128]="ContainsES2018",t[t.ContainsES2017=256]="ContainsES2017",t[t.ContainsES2016=512]="ContainsES2016",t[t.ContainsES2015=1024]="ContainsES2015",t[t.ContainsGenerator=2048]="ContainsGenerator",t[t.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",t[t.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",t[t.ContainsLexicalThis=16384]="ContainsLexicalThis",t[t.ContainsRestOrSpread=32768]="ContainsRestOrSpread",t[t.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",t[t.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",t[t.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",t[t.ContainsBindingPattern=524288]="ContainsBindingPattern",t[t.ContainsYield=1048576]="ContainsYield",t[t.ContainsAwait=2097152]="ContainsAwait",t[t.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",t[t.ContainsDynamicImport=8388608]="ContainsDynamicImport",t[t.ContainsClassFields=16777216]="ContainsClassFields",t[t.ContainsDecorators=33554432]="ContainsDecorators",t[t.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",t[t.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",t[t.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",t[t.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",t[t.HasComputedFlags=-2147483648]="HasComputedFlags",t[t.AssertTypeScript=1]="AssertTypeScript",t[t.AssertJsx=2]="AssertJsx",t[t.AssertESNext=4]="AssertESNext",t[t.AssertES2022=8]="AssertES2022",t[t.AssertES2021=16]="AssertES2021",t[t.AssertES2020=32]="AssertES2020",t[t.AssertES2019=64]="AssertES2019",t[t.AssertES2018=128]="AssertES2018",t[t.AssertES2017=256]="AssertES2017",t[t.AssertES2016=512]="AssertES2016",t[t.AssertES2015=1024]="AssertES2015",t[t.AssertGenerator=2048]="AssertGenerator",t[t.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",t[t.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",t[t.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",t[t.NodeExcludes=-2147483648]="NodeExcludes",t[t.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",t[t.FunctionExcludes=-1937940480]="FunctionExcludes",t[t.ConstructorExcludes=-1937948672]="ConstructorExcludes",t[t.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",t[t.PropertyExcludes=-2013249536]="PropertyExcludes",t[t.ClassExcludes=-2147344384]="ClassExcludes",t[t.ModuleExcludes=-1941676032]="ModuleExcludes",t[t.TypeExcludes=-2]="TypeExcludes",t[t.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",t[t.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",t[t.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",t[t.ParameterExcludes=-2147483648]="ParameterExcludes",t[t.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",t[t.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",t[t.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",t[t.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",t))(rpe||{}),ope=(t=>(t[t.TabStop=0]="TabStop",t[t.Placeholder=1]="Placeholder",t[t.Choice=2]="Choice",t[t.Variable=3]="Variable",t))(ope||{}),spe=(t=>(t[t.None=0]="None",t[t.SingleLine=1]="SingleLine",t[t.MultiLine=2]="MultiLine",t[t.AdviseOnEmitNode=4]="AdviseOnEmitNode",t[t.NoSubstitution=8]="NoSubstitution",t[t.CapturesThis=16]="CapturesThis",t[t.NoLeadingSourceMap=32]="NoLeadingSourceMap",t[t.NoTrailingSourceMap=64]="NoTrailingSourceMap",t[t.NoSourceMap=96]="NoSourceMap",t[t.NoNestedSourceMaps=128]="NoNestedSourceMaps",t[t.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",t[t.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",t[t.NoTokenSourceMaps=768]="NoTokenSourceMaps",t[t.NoLeadingComments=1024]="NoLeadingComments",t[t.NoTrailingComments=2048]="NoTrailingComments",t[t.NoComments=3072]="NoComments",t[t.NoNestedComments=4096]="NoNestedComments",t[t.HelperName=8192]="HelperName",t[t.ExportName=16384]="ExportName",t[t.LocalName=32768]="LocalName",t[t.InternalName=65536]="InternalName",t[t.Indented=131072]="Indented",t[t.NoIndentation=262144]="NoIndentation",t[t.AsyncFunctionBody=524288]="AsyncFunctionBody",t[t.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",t[t.CustomPrologue=2097152]="CustomPrologue",t[t.NoHoisting=4194304]="NoHoisting",t[t.Iterator=8388608]="Iterator",t[t.NoAsciiEscaping=16777216]="NoAsciiEscaping",t))(spe||{}),ape=(t=>(t[t.None=0]="None",t[t.TypeScriptClassWrapper=1]="TypeScriptClassWrapper",t[t.NeverApplyImportHelper=2]="NeverApplyImportHelper",t[t.IgnoreSourceNewlines=4]="IgnoreSourceNewlines",t[t.Immutable=8]="Immutable",t[t.IndirectCall=16]="IndirectCall",t[t.TransformPrivateStaticElements=32]="TransformPrivateStaticElements",t))(ape||{}),ike=(t=>(t[t.Classes=2]="Classes",t[t.ForOf=2]="ForOf",t[t.Generators=2]="Generators",t[t.Iteration=2]="Iteration",t[t.SpreadElements=2]="SpreadElements",t[t.RestElements=2]="RestElements",t[t.TaggedTemplates=2]="TaggedTemplates",t[t.DestructuringAssignment=2]="DestructuringAssignment",t[t.BindingPatterns=2]="BindingPatterns",t[t.ArrowFunctions=2]="ArrowFunctions",t[t.BlockScopedVariables=2]="BlockScopedVariables",t[t.ObjectAssign=2]="ObjectAssign",t[t.RegularExpressionFlagsUnicode=2]="RegularExpressionFlagsUnicode",t[t.RegularExpressionFlagsSticky=2]="RegularExpressionFlagsSticky",t[t.Exponentiation=3]="Exponentiation",t[t.AsyncFunctions=4]="AsyncFunctions",t[t.ForAwaitOf=5]="ForAwaitOf",t[t.AsyncGenerators=5]="AsyncGenerators",t[t.AsyncIteration=5]="AsyncIteration",t[t.ObjectSpreadRest=5]="ObjectSpreadRest",t[t.RegularExpressionFlagsDotAll=5]="RegularExpressionFlagsDotAll",t[t.BindinglessCatch=6]="BindinglessCatch",t[t.BigInt=7]="BigInt",t[t.NullishCoalesce=7]="NullishCoalesce",t[t.OptionalChaining=7]="OptionalChaining",t[t.LogicalAssignment=8]="LogicalAssignment",t[t.TopLevelAwait=9]="TopLevelAwait",t[t.ClassFields=9]="ClassFields",t[t.PrivateNamesAndClassStaticBlocks=9]="PrivateNamesAndClassStaticBlocks",t[t.RegularExpressionFlagsHasIndices=9]="RegularExpressionFlagsHasIndices",t[t.ShebangComments=99]="ShebangComments",t[t.UsingAndAwaitUsing=99]="UsingAndAwaitUsing",t[t.ClassAndClassElementDecorators=99]="ClassAndClassElementDecorators",t[t.RegularExpressionFlagsUnicodeSets=99]="RegularExpressionFlagsUnicodeSets",t))(ike||{}),nke=(t=>(t[t.Extends=1]="Extends",t[t.Assign=2]="Assign",t[t.Rest=4]="Rest",t[t.Decorate=8]="Decorate",t[t.ESDecorateAndRunInitializers=8]="ESDecorateAndRunInitializers",t[t.Metadata=16]="Metadata",t[t.Param=32]="Param",t[t.Awaiter=64]="Awaiter",t[t.Generator=128]="Generator",t[t.Values=256]="Values",t[t.Read=512]="Read",t[t.SpreadArray=1024]="SpreadArray",t[t.Await=2048]="Await",t[t.AsyncGenerator=4096]="AsyncGenerator",t[t.AsyncDelegator=8192]="AsyncDelegator",t[t.AsyncValues=16384]="AsyncValues",t[t.ExportStar=32768]="ExportStar",t[t.ImportStar=65536]="ImportStar",t[t.ImportDefault=131072]="ImportDefault",t[t.MakeTemplateObject=262144]="MakeTemplateObject",t[t.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",t[t.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",t[t.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",t[t.SetFunctionName=4194304]="SetFunctionName",t[t.PropKey=8388608]="PropKey",t[t.AddDisposableResourceAndDisposeResources=16777216]="AddDisposableResourceAndDisposeResources",t[t.FirstEmitHelper=1]="FirstEmitHelper",t[t.LastEmitHelper=16777216]="LastEmitHelper",t[t.ForOfIncludes=256]="ForOfIncludes",t[t.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",t[t.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",t[t.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",t[t.SpreadIncludes=1536]="SpreadIncludes",t))(nke||{}),rke=(t=>(t[t.SourceFile=0]="SourceFile",t[t.Expression=1]="Expression",t[t.IdentifierName=2]="IdentifierName",t[t.MappedTypeParameter=3]="MappedTypeParameter",t[t.Unspecified=4]="Unspecified",t[t.EmbeddedStatement=5]="EmbeddedStatement",t[t.JsxAttributeValue=6]="JsxAttributeValue",t[t.ImportTypeNodeAttributes=7]="ImportTypeNodeAttributes",t))(rke||{}),oke=(t=>(t[t.Parentheses=1]="Parentheses",t[t.TypeAssertions=2]="TypeAssertions",t[t.NonNullAssertions=4]="NonNullAssertions",t[t.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",t[t.ExpressionsWithTypeArguments=16]="ExpressionsWithTypeArguments",t[t.Assertions=6]="Assertions",t[t.All=31]="All",t[t.ExcludeJSDocTypeAssertion=-2147483648]="ExcludeJSDocTypeAssertion",t))(oke||{}),ske=(t=>(t[t.None=0]="None",t[t.InParameters=1]="InParameters",t[t.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",t))(ske||{}),cpe=(t=>(t[t.None=0]="None",t[t.SingleLine=0]="SingleLine",t[t.MultiLine=1]="MultiLine",t[t.PreserveLines=2]="PreserveLines",t[t.LinesMask=3]="LinesMask",t[t.NotDelimited=0]="NotDelimited",t[t.BarDelimited=4]="BarDelimited",t[t.AmpersandDelimited=8]="AmpersandDelimited",t[t.CommaDelimited=16]="CommaDelimited",t[t.AsteriskDelimited=32]="AsteriskDelimited",t[t.DelimitersMask=60]="DelimitersMask",t[t.AllowTrailingComma=64]="AllowTrailingComma",t[t.Indented=128]="Indented",t[t.SpaceBetweenBraces=256]="SpaceBetweenBraces",t[t.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",t[t.Braces=1024]="Braces",t[t.Parenthesis=2048]="Parenthesis",t[t.AngleBrackets=4096]="AngleBrackets",t[t.SquareBrackets=8192]="SquareBrackets",t[t.BracketsMask=15360]="BracketsMask",t[t.OptionalIfUndefined=16384]="OptionalIfUndefined",t[t.OptionalIfEmpty=32768]="OptionalIfEmpty",t[t.Optional=49152]="Optional",t[t.PreferNewLine=65536]="PreferNewLine",t[t.NoTrailingNewLine=131072]="NoTrailingNewLine",t[t.NoInterveningComments=262144]="NoInterveningComments",t[t.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",t[t.SingleElement=1048576]="SingleElement",t[t.SpaceAfterList=2097152]="SpaceAfterList",t[t.Modifiers=2359808]="Modifiers",t[t.HeritageClauses=512]="HeritageClauses",t[t.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",t[t.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",t[t.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",t[t.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",t[t.UnionTypeConstituents=516]="UnionTypeConstituents",t[t.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",t[t.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",t[t.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",t[t.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",t[t.ImportAttributes=526226]="ImportAttributes",t[t.ImportClauseEntries=526226]="ImportClauseEntries",t[t.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",t[t.CommaListElements=528]="CommaListElements",t[t.CallExpressionArguments=2576]="CallExpressionArguments",t[t.NewExpressionArguments=18960]="NewExpressionArguments",t[t.TemplateExpressionSpans=262144]="TemplateExpressionSpans",t[t.SingleLineBlockStatements=768]="SingleLineBlockStatements",t[t.MultiLineBlockStatements=129]="MultiLineBlockStatements",t[t.VariableDeclarationList=528]="VariableDeclarationList",t[t.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",t[t.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",t[t.ClassHeritageClauses=0]="ClassHeritageClauses",t[t.ClassMembers=129]="ClassMembers",t[t.InterfaceMembers=129]="InterfaceMembers",t[t.EnumMembers=145]="EnumMembers",t[t.CaseBlockClauses=129]="CaseBlockClauses",t[t.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",t[t.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",t[t.JsxElementAttributes=262656]="JsxElementAttributes",t[t.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",t[t.HeritageClauseTypes=528]="HeritageClauseTypes",t[t.SourceFileStatements=131073]="SourceFileStatements",t[t.Decorators=2146305]="Decorators",t[t.TypeArguments=53776]="TypeArguments",t[t.TypeParameters=53776]="TypeParameters",t[t.Parameters=2576]="Parameters",t[t.IndexSignatureParameters=8848]="IndexSignatureParameters",t[t.JSDocComment=33]="JSDocComment",t))(cpe||{}),lpe=(t=>(t[t.None=0]="None",t[t.TripleSlashXML=1]="TripleSlashXML",t[t.SingleLine=2]="SingleLine",t[t.MultiLine=4]="MultiLine",t[t.All=7]="All",t[t.Default=7]="Default",t))(lpe||{}),KQ={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0},{name:"preserve",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}},ake=(t=>(t[t.ParseAll=0]="ParseAll",t[t.ParseNone=1]="ParseNone",t[t.ParseForTypeErrors=2]="ParseForTypeErrors",t[t.ParseForTypeInfo=3]="ParseForTypeInfo",t))(ake||{});function F$(t){let n=5381;for(let a=0;a(t[t.Created=0]="Created",t[t.Changed=1]="Changed",t[t.Deleted=2]="Deleted",t))(cke||{}),upe=(t=>(t[t.High=2e3]="High",t[t.Medium=500]="Medium",t[t.Low=250]="Low",t))(upe||{}),PC=new Date(0);function KB(t,n){return t.getModifiedTime(n)||PC}function lke(t){return{250:t.Low,500:t.Medium,2e3:t.High}}var XQ={Low:32,Medium:64,High:256},dpe=lke(XQ),XB=lke(XQ);function $ht(t){if(!t.getEnvironmentVariable)return;let n=m("TSC_WATCH_POLLINGINTERVAL",upe);dpe=g("TSC_WATCH_POLLINGCHUNKSIZE",XQ)||dpe,XB=g("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",XQ)||XB;function a(v,x){return t.getEnvironmentVariable(`${v}_${x.toUpperCase()}`)}function u(v){let x;return k("Low"),k("Medium"),k("High"),x;function k(T){let I=a(v,T);I&&((x||(x={}))[T]=Number(I))}}function m(v,x){let k=u(v);if(k)return T("Low"),T("Medium"),T("High"),!0;return!1;function T(I){x[I]=k[I]||x[I]}}function g(v,x){let k=u(v);return(n||k)&&lke(k?{...x,...k}:x)}}function H3e(t,n,a,u,m){let g=a;for(let x=n.length;u&&x;v(),x--){let k=n[a];if(k){if(k.isClosed){n[a]=void 0;continue}}else continue;u--;let T=q3e(k,KB(t,k.fileName));if(k.isClosed){n[a]=void 0;continue}m?.(k,a,T),n[a]&&(g{X.isClosed=!0,N$(n,X)}}}function x($){let K=[];return K.pollingInterval=$,K.pollIndex=0,K.pollScheduled=!1,K}function k($,K){K.pollIndex=I(K,K.pollingInterval,K.pollIndex,dpe[K.pollingInterval]),K.length?U(K.pollingInterval):(Se.assert(K.pollIndex===0),K.pollScheduled=!1)}function T($,K){I(a,250,0,a.length),k($,K),!K.pollScheduled&&a.length&&U(250)}function I($,K,re,X){return H3e(t,$,re,X,ne);function ne(se,_e,ae){ae?(se.unchangedPolls=0,$!==a&&($[_e]=void 0,R(se))):se.unchangedPolls!==XB[K]?se.unchangedPolls++:$===a?(se.unchangedPolls=1,$[_e]=void 0,M(se,250)):K!==2e3&&(se.unchangedPolls++,$[_e]=void 0,M(se,K===250?500:2e3))}}function A($){switch($){case 250:return u;case 500:return m;case 2e3:return g}}function M($,K){A(K).push($),H(K)}function R($){a.push($),H(250)}function H($){A($).pollScheduled||U($)}function U($){A($).pollScheduled=t.setTimeout($===250?T:k,$,$===250?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",A($))}}function aw(t,n,a,u){let m=Hb(),g=u?new Map:void 0,v=new Map,x=U0(n);return k;function k(I,A,M,R){let H=x(I);m.add(H,A).length===1&&g&&g.set(H,a(I)||PC);let U=Cc(H)||".",$=v.get(U)||T(Cc(I)||".",U,R);return $.referenceCount++,{close:()=>{$.referenceCount===1?($.close(),v.delete(U)):$.referenceCount--,m.remove(H,A)}}}function T(I,A,M){let R=t(I,1,(H,U)=>{if(!Yu(U))return;let $=tu(U,I),K=x($),re=$&&m.get(K);if(re){let X,ne=1;if(g){let se=g.get(K);if(H==="change"&&(X=a($)||PC,X.getTime()===se.getTime()))return;X||(X=a($)||PC),g.set(K,X),se===PC?ne=0:X===PC&&(ne=2)}for(let se of re)se($,ne,X)}},!1,500,M);return R.referenceCount=0,v.set(A,R),R}}function M$(t){let n=[],a=0,u;return m;function m(x,k){let T={fileName:x,callback:k,mtime:KB(t,x)};return n.push(T),v(),{close:()=>{T.isClosed=!0,N$(n,T)}}}function g(){u=void 0,a=H3e(t,n,a,dpe[250]),v()}function v(){!n.length||u||(u=t.setTimeout(g,2e3,"pollQueue"))}}function J3e(t,n,a,u,m){let v=U0(n)(a),x=t.get(v);return x?x.callbacks.push(u):t.set(v,{watcher:m((k,T,I)=>{var A;return(A=t.get(v))==null?void 0:A.callbacks.slice().forEach(M=>M(k,T,I))}),callbacks:[u]}),{close:()=>{let k=t.get(v);k&&(!I$(k.callbacks,u)||k.callbacks.length||(t.delete(v),Dk(k)))}}}function q3e(t,n){let a=t.mtime.getTime(),u=n.getTime();return a!==u?(t.mtime=n,t.callback(t.fileName,Noe(a,u),n),!0):!1}function Noe(t,n){return t===0?0:n===0?2:1}var R$=["/node_modules/.","/.git","/.#"],Ght=Za;function Aoe(t){return Ght(t)}function f$e(t){Ght=t}function c9t({watchDirectory:t,useCaseSensitiveFileNames:n,getCurrentDirectory:a,getAccessibleSortedChildDirectories:u,fileSystemEntryExists:m,realpath:g,setTimeout:v,clearTimeout:x}){let k=new Map,T=Hb(),I=new Map,A,M=s4(!n),R=U0(n);return(le,Ee,xe,be)=>xe?H(le,be,Ee):t(le,Ee,xe,be);function H(le,Ee,xe,be){let Le=R(le),fe=k.get(Le);fe?fe.refCount++:(fe={watcher:t(le,Ae=>{var Ge;_e(Ae,Ee)||(Ee?.synchronousWatchDirectory?((Ge=k.get(Le))!=null&&Ge.targetWatcher||U(le,Le,Ae),se(le,Le,Ee)):$(le,Le,Ae,Ee))},!1,Ee),refCount:1,childWatches:F,targetWatcher:void 0,links:void 0},k.set(Le,fe),se(le,Le,Ee)),be&&(fe.links??(fe.links=new Set)).add(be);let we=xe&&{dirName:le,callback:xe};return we&&T.add(Le,we),{dirName:le,close:()=>{var Ae;let Ge=Se.checkDefined(k.get(Le));we&&T.remove(Le,we),be&&((Ae=Ge.links)==null||Ae.delete(be)),Ge.refCount--,!Ge.refCount&&(k.delete(Le),Ge.links=void 0,Dk(Ge),ne(Ge),Ge.childWatches.forEach(GT))}}}function U(le,Ee,xe,be){var Le,fe;let we,Ae;Yu(xe)?we=xe:Ae=xe,T.forEach((Ge,he)=>{if(!(Ae&&Ae.get(he)===!0)&&(he===Ee||xl(Ee,he)&&Ee[he.length]===uh))if(Ae)if(be){let Oe=Ae.get(he);Oe?Oe.push(...be):Ae.set(he,be.slice())}else Ae.set(he,!0);else Ge.forEach(({callback:Oe})=>Oe(we))}),(fe=(Le=k.get(Ee))==null?void 0:Le.links)==null||fe.forEach(Ge=>{let he=Oe=>Ps(Ge,w2(le,Oe,R));Ae?U(Ge,R(Ge),Ae,be?.map(he)):U(Ge,R(Ge),he(we))})}function $(le,Ee,xe,be){let Le=k.get(Ee);if(Le&&m(le,1)){K(le,Ee,xe,be);return}U(le,Ee,xe),ne(Le),X(Le)}function K(le,Ee,xe,be){let Le=I.get(Ee);Le?Le.fileNames.push(xe):I.set(Ee,{dirName:le,options:be,fileNames:[xe]}),A&&(x(A),A=void 0),A=v(re,1e3,"timerToUpdateChildWatches")}function re(){var le;A=void 0,Aoe(`sysLog:: onTimerToUpdateChildWatches:: ${I.size}`);let Ee=mm(),xe=new Map;for(;!A&&I.size;){let Le=I.entries().next();Se.assert(!Le.done);let{value:[fe,{dirName:we,options:Ae,fileNames:Ge}]}=Le;I.delete(fe);let he=se(we,fe,Ae);(le=k.get(fe))!=null&&le.targetWatcher||U(we,fe,xe,he?void 0:Ge)}Aoe(`sysLog:: invokingWatchers:: Elapsed:: ${mm()-Ee}ms:: ${I.size}`),T.forEach((Le,fe)=>{let we=xe.get(fe);we&&Le.forEach(({callback:Ae,dirName:Ge})=>{ua(we)?we.forEach(Ae):Ae(Ge)})});let be=mm()-Ee;Aoe(`sysLog:: Elapsed:: ${be}ms:: onTimerToUpdateChildWatches:: ${I.size} ${A}`)}function X(le){if(!le)return;let Ee=le.childWatches;le.childWatches=F;for(let xe of Ee)xe.close(),X(k.get(R(xe.dirName)))}function ne(le){le?.targetWatcher&&(le.targetWatcher.close(),le.targetWatcher=void 0)}function se(le,Ee,xe){let be=k.get(Ee);if(!be)return!1;let Le=Kd(g(le)),fe,we;return M(Le,le)===0?fe=$B(m(le,1)?Dc(u(le),he=>{let Oe=tu(he,le);return!_e(Oe,xe)&&M(Oe,Kd(g(Oe)))===0?Oe:void 0}):F,be.childWatches,(he,Oe)=>M(he,Oe.dirName),Ae,GT,Ge):be.targetWatcher&&M(Le,be.targetWatcher.dirName)===0?(fe=!1,Se.assert(be.childWatches===F)):(ne(be),be.targetWatcher=H(Le,xe,void 0,le),be.childWatches.forEach(GT),fe=!0),be.childWatches=we||F,fe;function Ae(he){let Oe=H(he,xe);Ge(Oe)}function Ge(he){(we||(we=[])).push(he)}}function _e(le,Ee){return En(R$,xe=>ae(le,xe))||uke(le,Ee,n,a)}function ae(le,Ee){return le.includes(Ee)?!0:n?!1:R(le).includes(Ee)}}var _$e=(t=>(t[t.File=0]="File",t[t.Directory=1]="Directory",t))(_$e||{});function Kht(t){return(n,a,u)=>t(a===1?"change":"rename","",u)}function l9t(t,n,a){return(u,m,g)=>{u==="rename"?(g||(g=a(t)||PC),n(t,g!==PC?0:2,g)):n(t,1,g)}}function uke(t,n,a,u){return(n?.excludeDirectories||n?.excludeFiles)&&(Gae(t,n?.excludeFiles,a,u())||Gae(t,n?.excludeDirectories,a,u()))}function fpe(t,n,a,u,m){return(g,v)=>{if(g==="rename"){let x=v?Kd(Ps(t,v)):t;(!v||!uke(x,a,u,m))&&n(x)}}}function $3e({pollingWatchFileWorker:t,getModifiedTime:n,setTimeout:a,clearTimeout:u,fsWatchWorker:m,fileSystemEntryExists:g,useCaseSensitiveFileNames:v,getCurrentDirectory:x,fsSupportsRecursiveFsWatch:k,getAccessibleSortedChildDirectories:T,realpath:I,tscWatchFile:A,useNonPollingWatchers:M,tscWatchDirectory:R,inodeWatching:H,fsWatchWithTimestamp:U,sysLog:$}){let K=new Map,re=new Map,X=new Map,ne,se,_e,ae,le=!1;return{watchFile:Ee,watchDirectory:we};function Ee(Ke,qe,rt,_t){_t=Le(_t,M);let ft=Se.checkDefined(_t.watchFile);switch(ft){case 0:return he(Ke,qe,250,void 0);case 1:return he(Ke,qe,rt,void 0);case 2:return xe()(Ke,qe,rt,void 0);case 3:return be()(Ke,qe,void 0,void 0);case 4:return Oe(Ke,0,l9t(Ke,qe,n),!1,rt,RK(_t));case 5:return _e||(_e=aw(Oe,v,n,U)),_e(Ke,qe,rt,RK(_t));default:Se.assertNever(ft)}}function xe(){return ne||(ne=U3e({getModifiedTime:n,setTimeout:a}))}function be(){return se||(se=M$({getModifiedTime:n,setTimeout:a}))}function Le(Ke,qe){if(Ke&&Ke.watchFile!==void 0)return Ke;switch(A){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return fe(4,1,Ke);case"UseFsEventsWithFallbackDynamicPolling":return fe(4,2,Ke);case"UseFsEventsOnParentDirectory":qe=!0;default:return qe?fe(5,1,Ke):{watchFile:4}}}function fe(Ke,qe,rt){let _t=rt?.fallbackPolling;return{watchFile:Ke,fallbackPolling:_t===void 0?qe:_t}}function we(Ke,qe,rt,_t){return k?Oe(Ke,1,fpe(Ke,qe,_t,v,x),rt,500,RK(_t)):(ae||(ae=c9t({useCaseSensitiveFileNames:v,getCurrentDirectory:x,fileSystemEntryExists:g,getAccessibleSortedChildDirectories:T,watchDirectory:Ae,realpath:I,setTimeout:a,clearTimeout:u})),ae(Ke,qe,rt,_t))}function Ae(Ke,qe,rt,_t){Se.assert(!rt);let ft=Ge(_t),mt=Se.checkDefined(ft.watchDirectory);switch(mt){case 1:return he(Ke,()=>qe(Ke),500,void 0);case 2:return xe()(Ke,()=>qe(Ke),500,void 0);case 3:return be()(Ke,()=>qe(Ke),void 0,void 0);case 0:return Oe(Ke,1,fpe(Ke,qe,_t,v,x),rt,500,RK(ft));default:Se.assertNever(mt)}}function Ge(Ke){if(Ke&&Ke.watchDirectory!==void 0)return Ke;switch(R){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:let qe=Ke?.fallbackPolling;return{watchDirectory:0,fallbackPolling:qe!==void 0?qe:void 0}}}function he(Ke,qe,rt,_t){return J3e(K,v,Ke,qe,ft=>t(Ke,ft,rt,_t))}function Oe(Ke,qe,rt,_t,ft,mt){return J3e(_t?X:re,v,Ke,rt,ut=>Re(Ke,qe,ut,_t,ft,mt))}function Re(Ke,qe,rt,_t,ft,mt){let ut,ht;H&&(ut=Ke.substring(Ke.lastIndexOf(uh)),ht=ut.slice(uh.length));let Kt=g(Ke,qe)?Ut():Bi();return{close:()=>{Kt&&(Kt.close(),Kt=void 0)}};function ni(Bn){Kt&&($(`sysLog:: ${Ke}:: Changing watcher to ${Bn===Ut?"Present":"Missing"}FileSystemEntryWatcher`),Kt.close(),Kt=Bn())}function Ut(){if(le)return $(`sysLog:: ${Ke}:: Defaulting to watchFile`),wi();try{let Bn=(qe===1||!U?m:$e)(Ke,_t,H?pi:rt);return Bn.on("error",()=>{rt("rename",""),ni(Bi)}),Bn}catch(Bn){return le||(le=Bn.code==="ENOSPC"),$(`sysLog:: ${Ke}:: Changing to watchFile`),wi()}}function pi(Bn,mr){let Ei;if(mr&&xh(mr,"~")&&(Ei=mr,mr=mr.slice(0,mr.length-1)),Bn==="rename"&&(!mr||mr===ht||xh(mr,ut))){let zn=n(Ke)||PC;Ei&&rt(Bn,Ei,zn),rt(Bn,mr,zn),H?ni(zn===PC?Bi:Ut):zn===PC&&ni(Bi)}else Ei&&rt(Bn,Ei),rt(Bn,mr)}function wi(){return Ee(Ke,Kht(rt),ft,mt)}function Bi(){return Ee(Ke,(Bn,mr,Ei)=>{mr===0&&(Ei||(Ei=n(Ke)||PC),Ei!==PC&&(rt("rename","",Ei),ni(Ut)))},ft,mt)}}function $e(Ke,qe,rt){let _t=n(Ke)||PC;return m(Ke,qe,(ft,mt,ut)=>{ft==="change"&&(ut||(ut=n(Ke)||PC),ut.getTime()===_t.getTime())||(_t=ut||n(Ke)||PC,rt(ft,mt,_t))})}}function YQ(t){let n=t.writeFile;t.writeFile=(a,u,m)=>zZ(a,u,!!m,(g,v,x)=>n.call(t,g,v,x),g=>t.createDirectory(g),g=>t.directoryExists(g))}var hy=(()=>{let t="\uFEFF";function n(){let u=/^native |^\([^)]+\)$|^(?:internal[\\/]|[\w\s]+(?:\.js)?$)/,m=Flt(),g=KXt(),v=XXt(),x;try{x=YXt()}catch{x=void 0}let k,T="./profile.cpuprofile",I=process.platform==="darwin",A=process.platform==="linux"||I,M=v.platform(),R=Ee(),H=m.realpathSync.native?process.platform==="win32"?Ke:m.realpathSync.native:m.realpathSync,U=__filename.endsWith("sys.js")?g.join(g.dirname(__dirname),"__fake__.js"):__filename,$=process.platform==="win32"||I,K=H0(()=>process.cwd()),{watchFile:re,watchDirectory:X}=$3e({pollingWatchFileWorker:be,getModifiedTime:rt,setTimeout,clearTimeout,fsWatchWorker:Le,useCaseSensitiveFileNames:R,getCurrentDirectory:K,fileSystemEntryExists:he,fsSupportsRecursiveFsWatch:$,getAccessibleSortedChildDirectories:ut=>Ae(ut).directories,realpath:qe,tscWatchFile:process.env.TSC_WATCHFILE,useNonPollingWatchers:!!process.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:process.env.TSC_WATCHDIRECTORY,inodeWatching:A,fsWatchWithTimestamp:I,sysLog:Aoe}),ne={args:process.argv.slice(2),newLine:v.EOL,useCaseSensitiveFileNames:R,write(ut){process.stdout.write(ut)},getWidthOfTerminal(){return process.stdout.columns},writeOutputIsTTY(){return process.stdout.isTTY},readFile:fe,writeFile:we,watchFile:re,watchDirectory:X,preferNonRecursiveWatch:!$,resolvePath:ut=>g.resolve(ut),fileExists:Oe,directoryExists:Re,getAccessibleFileSystemEntries:Ae,createDirectory(ut){if(!ne.directoryExists(ut))try{m.mkdirSync(ut)}catch(ht){if(ht.code!=="EEXIST")throw ht}},getExecutingFilePath(){return U},getCurrentDirectory:K,getDirectories:$e,getEnvironmentVariable(ut){return process.env[ut]||""},readDirectory:Ge,getModifiedTime:rt,setModifiedTime:_t,deleteFile:ft,createHash:x?mt:F$,createSHA256Hash:x?mt:void 0,getMemoryUsage(){return global.gc&&global.gc(),process.memoryUsage().heapUsed},getFileSize(ut){try{let ht=se(ut);if(ht?.isFile())return ht.size}catch{}return 0},exit(ut){le(()=>process.exit(ut))},enableCPUProfiler:_e,disableCPUProfiler:le,cpuProfilingEnabled:()=>!!k||dr(process.execArgv,"--cpu-prof")||dr(process.execArgv,"--prof"),realpath:qe,debugMode:!!process.env.NODE_INSPECTOR_IPC||!!process.env.VSCODE_INSPECTOR_OPTIONS||En(process.execArgv,ut=>/^--(?:inspect|debug)(?:-brk)?(?:=\d+)?$/i.test(ut))||!!process.recordreplay,tryEnableSourceMapsForHost(){try{QXt().install()}catch{}},setTimeout,clearTimeout,clearScreen:()=>{process.stdout.write("\x1B[2J\x1B[3J\x1B[H")},setBlocking:()=>{var ut;let ht=(ut=process.stdout)==null?void 0:ut._handle;ht&&ht.setBlocking&&ht.setBlocking(!0)},base64decode:ut=>Buffer.from(ut,"base64").toString("utf8"),base64encode:ut=>Buffer.from(ut).toString("base64"),require:(ut,ht)=>{try{let Kt=uKe(ht,ut,ne);return{module:I4e(Kt),modulePath:Kt,error:void 0}}catch(Kt){return{module:void 0,modulePath:void 0,error:Kt}}}};return ne;function se(ut){return m.statSync(ut,{throwIfNoEntry:!1})}function _e(ut,ht){if(k)return ht(),!1;let Kt=ZXt();if(!Kt||!Kt.Session)return ht(),!1;let ni=new Kt.Session;return ni.connect(),ni.post("Profiler.enable",()=>{ni.post("Profiler.start",()=>{k=ni,T=ut,ht()})}),!0}function ae(ut){let ht=0,Kt=new Map,ni=Ch(g.dirname(U)),Ut=`file://${q0(ni)===1?"":"/"}${ni}`;for(let pi of ut.nodes)if(pi.callFrame.url){let wi=Ch(pi.callFrame.url);Gp(Ut,wi,R)?pi.callFrame.url=uH(Ut,wi,Ut,U0(R),!0):u.test(wi)||(pi.callFrame.url=(Kt.has(wi)?Kt:Kt.set(wi,`external${ht}.js`)).get(wi),ht++)}return ut}function le(ut){if(k&&k!=="stopping"){let ht=k;return k.post("Profiler.stop",(Kt,{profile:ni})=>{var Ut;if(!Kt){try{(Ut=se(T))!=null&&Ut.isDirectory()&&(T=g.join(T,`${new Date().toISOString().replace(/:/g,"-")}+P${process.pid}.cpuprofile`))}catch{}try{m.mkdirSync(g.dirname(T),{recursive:!0})}catch{}m.writeFileSync(T,JSON.stringify(ae(ni)))}k=void 0,ht.disconnect(),ut()}),k="stopping",!0}else return ut(),!1}function Ee(){return M==="win32"||M==="win64"?!1:!Oe(xe(__filename))}function xe(ut){return ut.replace(/\w/g,ht=>{let Kt=ht.toUpperCase();return ht===Kt?ht.toLowerCase():Kt})}function be(ut,ht,Kt){m.watchFile(ut,{persistent:!0,interval:Kt},Ut);let ni;return{close:()=>m.unwatchFile(ut,Ut)};function Ut(pi,wi){let Bi=+wi.mtime==0||ni===2;if(+pi.mtime==0){if(Bi)return;ni=2}else if(Bi)ni=0;else{if(+pi.mtime==+wi.mtime)return;ni=1}ht(ut,ni,pi.mtime)}}function Le(ut,ht,Kt){return m.watch(ut,$?{persistent:!0,recursive:!!ht}:{persistent:!0},Kt)}function fe(ut,ht){let Kt;try{Kt=m.readFileSync(ut)}catch{return}let ni=Kt.length;if(ni>=2&&Kt[0]===254&&Kt[1]===255){ni&=-2;for(let Ut=0;Ut=2&&Kt[0]===255&&Kt[1]===254?Kt.toString("utf16le",2):ni>=3&&Kt[0]===239&&Kt[1]===187&&Kt[2]===191?Kt.toString("utf8",3):Kt.toString("utf8")}function we(ut,ht,Kt){Kt&&(ht=t+ht);let ni;try{ni=m.openSync(ut,"w"),m.writeSync(ni,ht,void 0,"utf8")}finally{ni!==void 0&&m.closeSync(ni)}}function Ae(ut){try{let ht=m.readdirSync(ut||".",{withFileTypes:!0}),Kt=[],ni=[];for(let Ut of ht){let pi=typeof Ut=="string"?Ut:Ut.name;if(pi==="."||pi==="..")continue;let wi;if(typeof Ut=="string"||Ut.isSymbolicLink()){let Bi=Ps(ut,pi);try{if(wi=se(Bi),!wi)continue}catch{continue}}else wi=Ut;wi.isFile()?Kt.push(pi):wi.isDirectory()&&ni.push(pi)}return Kt.sort(),ni.sort(),{files:Kt,directories:ni}}catch{return UG}}function Ge(ut,ht,Kt,ni,Ut){return Cwe(ut,ht,Kt,ni,R,process.cwd(),Ut,Ae,qe)}function he(ut,ht){let Kt=Error.stackTraceLimit;Error.stackTraceLimit=0;try{let ni=se(ut);if(!ni)return!1;switch(ht){case 0:return ni.isFile();case 1:return ni.isDirectory();default:return!1}}catch{return!1}finally{Error.stackTraceLimit=Kt}}function Oe(ut){return he(ut,0)}function Re(ut){return he(ut,1)}function $e(ut){return Ae(ut).directories.slice()}function Ke(ut){return ut.length<260?m.realpathSync.native(ut):m.realpathSync(ut)}function qe(ut){try{return H(ut)}catch{return ut}}function rt(ut){var ht;let Kt=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return(ht=se(ut))==null?void 0:ht.mtime}catch{return}finally{Error.stackTraceLimit=Kt}}function _t(ut,ht){try{m.utimesSync(ut,ht,ht)}catch{return}}function ft(ut){try{return m.unlinkSync(ut)}catch{return}}function mt(ut){let ht=x.createHash("sha256");return ht.update(ut),ht.digest("hex")}}let a;return VQ()&&(a=n()),a&&YQ(a),a})();function Xht(t){hy=t}hy&&hy.getEnvironmentVariable&&($ht(hy),Se.setAssertionLevel(/^development$/i.test(hy.getEnvironmentVariable("NODE_ENV"))?1:0)),hy&&hy.debugMode&&(Se.isDebugging=!0);var uh="/",dke="\\",Yht="://",Qht=/\\/g;function fke(t){return t===47||t===92}function _ke(t){return YB(t)<0}function LC(t){return YB(t)>0}function J0(t){let n=YB(t);return n>0&&n===t.length}function QQ(t){return YB(t)!==0}function t_(t){return/^\.\.?(?:$|[\\/])/.test(t)}function ZQ(t){return!QQ(t)&&!t_(t)}function B$(t){return sg(t).includes(".")}function Wh(t,n){return t.length>n.length&&xh(t,n)}function gg(t,n){for(let a of n)if(Wh(t,a))return!0;return!1}function h3(t){return t.length>0&&fke(t.charCodeAt(t.length-1))}function dk(t){return t>=97&&t<=122||t>=65&&t<=90}function G3e(t,n){let a=t.charCodeAt(n);if(a===58)return n+1;if(a===37&&t.charCodeAt(n+1)===51){let u=t.charCodeAt(n+2);if(u===97||u===65)return n+3}return-1}function YB(t){if(!t)return 0;let n=t.charCodeAt(0);if(n===47||n===92){if(t.charCodeAt(1)!==n)return 1;let u=t.indexOf(n===47?uh:dke,2);return u<0?t.length:u+1}if(dk(n)&&t.charCodeAt(1)===58){let u=t.charCodeAt(2);if(u===47||u===92)return 3;if(t.length===2)return 2}let a=t.indexOf(Yht);if(a!==-1){let u=a+Yht.length,m=t.indexOf(uh,u);if(m!==-1){let g=t.slice(0,a),v=t.slice(u,m);if(g==="file"&&(v===""||v==="localhost")&&dk(t.charCodeAt(m+1))){let x=G3e(t,m+2);if(x!==-1){if(t.charCodeAt(x)===47)return~(x+1);if(x===t.length)return~x}}return~(m+1)}return~t.length}return 0}function q0(t){let n=YB(t);return n<0?~n:n}function Cc(t){t=Ch(t);let n=q0(t);return n===t.length?t:(t=OE(t),t.slice(0,Math.max(n,t.lastIndexOf(uh))))}function sg(t,n,a){if(t=Ch(t),q0(t)===t.length)return"";t=OE(t);let m=t.slice(Math.max(q0(t),t.lastIndexOf(uh)+1)),g=n!==void 0&&a!==void 0?LE(m,n,a):void 0;return g?m.slice(0,m.length-g.length):m}function zh(t,n,a){if(xl(n,".")||(n="."+n),t.length>=n.length&&t.charCodeAt(t.length-n.length)===46){let u=t.slice(t.length-n.length);if(a(u,n))return u}}function $0(t,n,a){if(typeof n=="string")return zh(t,n,a)||"";for(let u of n){let m=zh(t,u,a);if(m)return m}return""}function LE(t,n,a){if(n)return $0(OE(t),n,a?rw:ud);let u=sg(t),m=u.lastIndexOf(".");return m>=0?u.substring(m):""}function Zht(t,n){let a=t.substring(0,n),u=t.substring(n).split(uh);return u.length&&!Y_(u)&&u.pop(),[a,...u]}function Uv(t,n=""){return t=Ps(n,t),Zht(t,q0(t))}function IA(t,n){return t.length===0?"":(t[0]&&Fs(t[0]))+t.slice(1,n).join(uh)}function Ch(t){return t.includes("\\")?t.replace(Qht,uh):t}function gc(t){if(!En(t))return[];let n=[t[0]];for(let a=1;a1){if(n[n.length-1]!==".."){n.pop();continue}}else if(n[0])continue}n.push(u)}}return n}function Ps(t,...n){t&&(t=Ch(t));for(let a of n)a&&(a=Ch(a),!t||q0(a)!==0?t=a:t=Fs(t)+a);return t}function w7(t,...n){return Kd(En(n)?Ps(t,...n):Ch(t))}function _pe(t,n){return gc(Uv(t,n))}function tu(t,n){return IA(_pe(t,n))}function Kd(t){if(t=Ch(t),!Ad.test(t))return t;let n=t.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(n!==t&&(t=n,!Ad.test(t)))return t;let a=IA(gc(Uv(t)));return a&&h3(t)?Fs(a):a}function Tv(t){return t.length===0?"":t.slice(1).join(uh)}function NA(t,n){return Tv(_pe(t,n))}function dd(t,n,a){let u=LC(t)?Kd(t):tu(t,n);return a(u)}function OE(t){return h3(t)?t.substr(0,t.length-1):t}function Fs(t){return h3(t)?t:t+uh}function FE(t){return!QQ(t)&&!t_(t)?"./"+t:t}function QB(t,n,a,u){let m=a!==void 0&&u!==void 0?LE(t,a,u):LE(t);return m?t.slice(0,t.length-m.length)+(xl(n,".")?n:"."+n):t}function yu(t,n){let a=N0(t);return a?t.slice(0,t.length-a.length)+(xl(n,".")?n:"."+n):QB(t,n)}var Ad=/\/\/|(?:^|\/)\.\.?(?:$|\/)/;function p$e(t,n,a){if(t===n)return 0;if(t===void 0)return-1;if(n===void 0)return 1;let u=t.substring(0,q0(t)),m=n.substring(0,q0(n)),g=RQ(u,m);if(g!==0)return g;let v=t.substring(u.length),x=n.substring(m.length);if(!Ad.test(v)&&!Ad.test(x))return a(v,x);let k=gc(Uv(t)),T=gc(Uv(n)),I=Math.min(k.length,T.length);for(let A=1;A0==q0(n)>0,"Paths must either both be absolute or both be relative");let g=Poe(t,n,(typeof a=="boolean"?a:!1)?rw:ud,typeof a=="function"?a:ps);return IA(g)}function lH(t,n,a){return LC(t)?uH(n,t,n,a,!1):t}function j$(t,n,a){return FE(w2(Cc(t),n,a))}function uH(t,n,a,u,m){let g=Poe(w7(a,t),w7(a,n),ud,u),v=g[0];if(m&&LC(v)){let x=v.charAt(0)===uh?"file://":"file:///";g[0]=x+v}return IA(g)}function T2(t,n){for(;;){let a=n(t);if(a!==void 0)return a;let u=Cc(t);if(u===t)return;t=u}}function eN(t){return xh(t,"/node_modules")}function te(t,n,a,u,m,g,v){return{code:t,category:n,key:a,message:u,reportsUnnecessary:m,elidedInCompatabilityPyramid:g,reportsDeprecated:v}}var j={Unterminated_string_literal:te(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:te(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:te(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:te(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:te(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:te(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:te(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:te(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:te(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:te(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:te(1014,1,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:te(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:te(1016,1,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:te(1017,1,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:te(1018,1,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:te(1019,1,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:te(1020,1,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:te(1021,1,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:te(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:te(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:te(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:te(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:te(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:te(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:te(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:te(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:te(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:te(1036,1,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:te(1038,1,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:te(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:te(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:te(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:te(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:te(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:te(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:te(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:te(1049,1,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:te(1051,1,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:te(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:te(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:te(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:te(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compa_1055","Type '{0}' is not a valid async function return type in ES5 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:te(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:te(1058,1,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:te(1059,1,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:te(1060,1,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:te(1061,1,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:te(1062,1,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:te(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:te(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{0}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:te(1065,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065","The return type of an async function or method must be the global Promise type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:te(1066,1,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:te(1068,1,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:te(1069,1,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:te(1070,1,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:te(1071,1,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:te(1079,1,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:te(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:te(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:te(1090,1,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:te(1091,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:te(1092,1,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:te(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:te(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:te(1095,1,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:te(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:te(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:te(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:te(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:te(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:te(1101,1,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:te(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:te(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:te(1104,1,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:te(1105,1,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:te(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:te(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:te(1108,1,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:te(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:te(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:te(1111,1,"Private_field_0_must_be_declared_in_an_enclosing_class_1111","Private field '{0}' must be declared in an enclosing class."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:te(1113,1,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:te(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:te(1115,1,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:te(1116,1,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:te(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:te(1118,1,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:te(1119,1,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:te(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:te(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:te(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:te(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:te(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:te(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:te(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:te(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:te(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:te(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:te(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:te(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:te(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:te(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:te(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:te(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:te(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:te(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:te(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:te(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:te(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:te(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:te(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:te(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:te(1147,1,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:te(1148,1,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:te(1149,1,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),_0_declarations_must_be_initialized:te(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:te(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:te(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:te(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:te(1162,1,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:te(1163,1,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:te(1164,1,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:te(1165,1,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:te(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:te(1168,1,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:te(1169,1,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:te(1170,1,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:te(1171,1,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:te(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:te(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:te(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:te(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:te(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:te(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:te(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:te(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:te(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:te(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:te(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:te(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:te(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:te(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:te(1186,1,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:te(1187,1,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:te(1188,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:te(1189,1,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:te(1190,1,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:te(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:te(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:te(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:te(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:te(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:te(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:te(1197,1,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:te(1198,1,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:te(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:te(1200,1,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:te(1202,1,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202",`Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.`),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:te(1203,1,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:te(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:te(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:te(1207,1,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:te(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:te(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:te(1211,1,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:te(1212,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:te(1213,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:te(1214,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:te(1215,1,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:te(1216,1,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:te(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:te(1221,1,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:te(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:te(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:te(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:te(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:te(1226,1,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:te(1227,1,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:te(1228,1,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:te(1229,1,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:te(1230,1,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:te(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:te(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:te(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:te(1234,1,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:te(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:te(1236,1,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:te(1237,1,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:te(1238,1,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:te(1239,1,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:te(1240,1,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:te(1241,1,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:te(1242,1,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:te(1243,1,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:te(1244,1,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:te(1245,1,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:te(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:te(1247,1,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:te(1248,1,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:te(1249,1,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5:te(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:te(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definiti_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:te(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_au_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Modules are automatically in strict mode."),Abstract_properties_can_only_appear_within_an_abstract_class:te(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:te(1254,1,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:te(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:te(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:te(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:te(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:te(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:te(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:te(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:te(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:te(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:te(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:te(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:te(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:te(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:te(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:te(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:te(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:te(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:te(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:te(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:te(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:te(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:te(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:te(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:te(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:te(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:te(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:te(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:te(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:te(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:te(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:te(1286,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286","ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:te(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:te(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:te(1289,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:te(1290,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:te(1291,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:te(1292,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve:te(1293,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293","ESM syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'."),with_statements_are_not_allowed_in_an_async_function_block:te(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:te(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:te(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:te(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:te(1313,1,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:te(1314,1,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:te(1315,1,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:te(1316,1,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:te(1317,1,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:te(1318,1,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:te(1319,1,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:te(1320,1,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:te(1321,1,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:te(1322,1,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext:te(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_nodenext_or_preserve:te(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_nodene_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', 'nodenext', or 'preserve'."),Argument_of_dynamic_import_cannot_be_spread_element:te(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:te(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:te(1327,1,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:te(1328,1,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:te(1329,1,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:te(1330,1,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:te(1331,1,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:te(1332,1,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:te(1333,1,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:te(1334,1,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:te(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:te(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:te(1338,1,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:te(1339,1,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:te(1340,1,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Class_constructor_may_not_be_an_accessor:te(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext:te(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),A_label_is_not_allowed_here:te(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:te(1345,1,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:te(1346,1,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:te(1347,1,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:te(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:te(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:te(1350,3,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:te(1351,1,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:te(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:te(1353,1,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:te(1354,1,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:te(1355,1,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:te(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:te(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:te(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:te(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:te(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:te(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:te(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:te(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:te(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:te(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:te(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:te(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:te(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:te(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:te(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:te(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:te(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:te(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:te(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:te(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:te(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:te(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:te(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:te(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:te(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:te(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:te(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:te(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:te(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:te(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:te(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:te(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:te(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:te(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:te(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:te(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:te(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:te(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:te(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:te(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:te(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:te(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:te(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:te(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:te(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:te(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:te(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:te(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:te(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:te(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:te(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:te(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:te(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:te(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:te(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:te(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:te(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:te(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:te(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:te(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:te(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:te(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:te(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:te(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:te(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:te(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:te(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:te(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:te(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:te(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:te(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:te(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:te(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:te(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:te(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:te(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:te(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:te(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:te(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:te(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443",`Module declaration names may only use ' or " quoted strings.`),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:te(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:te(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments:te(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional set of attributes as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:te(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_should_be_either_require_or_import:te(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:te(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:te(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:te(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:te(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:te(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",`File is ECMAScript module because '{0}' has field "type" with value "module"`),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:te(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",`File is CommonJS module because '{0}' has field "type" whose value is not "module"`),File_is_CommonJS_module_because_0_does_not_have_field_type:te(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460",`File is CommonJS module because '{0}' does not have field "type"`),File_is_CommonJS_module_because_package_json_was_not_found:te(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),resolution_mode_is_the_only_valid_key_for_type_import_attributes:te(1463,1,"resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463","'resolution-mode' is the only valid key for type import attributes."),Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:te(1464,1,"Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464","Type import attributes should have exactly one key - 'resolution-mode' - with value 'import' or 'require'."),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:te(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:te(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:te(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:te(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:te(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:te(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:te(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:te(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:te(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:te(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479",`The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("{0}")' call instead.`),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:te(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:te(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481",`To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field \`"type": "module"\` to '{1}'.`),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:te(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:te(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:te(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:te(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:te(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:te(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:te(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:te(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:te(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:te(1491,1,"_0_modifier_cannot_appear_on_a_using_declaration_1491","'{0}' modifier cannot appear on a 'using' declaration."),_0_declarations_may_not_have_binding_patterns:te(1492,1,"_0_declarations_may_not_have_binding_patterns_1492","'{0}' declarations may not have binding patterns."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:te(1493,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493","The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:te(1494,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494","The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),_0_modifier_cannot_appear_on_an_await_using_declaration:te(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),Identifier_string_literal_or_number_literal_expected:te(1496,1,"Identifier_string_literal_or_number_literal_expected_1496","Identifier, string literal, or number literal expected."),Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator:te(1497,1,"Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator_1497","Expression must be enclosed in parentheses to be used as a decorator."),Invalid_syntax_in_decorator:te(1498,1,"Invalid_syntax_in_decorator_1498","Invalid syntax in decorator."),Unknown_regular_expression_flag:te(1499,1,"Unknown_regular_expression_flag_1499","Unknown regular expression flag."),Duplicate_regular_expression_flag:te(1500,1,"Duplicate_regular_expression_flag_1500","Duplicate regular expression flag."),This_regular_expression_flag_is_only_available_when_targeting_0_or_later:te(1501,1,"This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501","This regular expression flag is only available when targeting '{0}' or later."),The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously:te(1502,1,"The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously_1502","The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously."),Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later:te(1503,1,"Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503","Named capturing groups are only available when targeting 'ES2018' or later."),Subpattern_flags_must_be_present_when_there_is_a_minus_sign:te(1504,1,"Subpattern_flags_must_be_present_when_there_is_a_minus_sign_1504","Subpattern flags must be present when there is a minus sign."),Incomplete_quantifier_Digit_expected:te(1505,1,"Incomplete_quantifier_Digit_expected_1505","Incomplete quantifier. Digit expected."),Numbers_out_of_order_in_quantifier:te(1506,1,"Numbers_out_of_order_in_quantifier_1506","Numbers out of order in quantifier."),There_is_nothing_available_for_repetition:te(1507,1,"There_is_nothing_available_for_repetition_1507","There is nothing available for repetition."),Unexpected_0_Did_you_mean_to_escape_it_with_backslash:te(1508,1,"Unexpected_0_Did_you_mean_to_escape_it_with_backslash_1508","Unexpected '{0}'. Did you mean to escape it with backslash?"),This_regular_expression_flag_cannot_be_toggled_within_a_subpattern:te(1509,1,"This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509","This regular expression flag cannot be toggled within a subpattern."),k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets:te(1510,1,"k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets_1510","'\\k' must be followed by a capturing group name enclosed in angle brackets."),q_is_only_available_inside_character_class:te(1511,1,"q_is_only_available_inside_character_class_1511","'\\q' is only available inside character class."),c_must_be_followed_by_an_ASCII_letter:te(1512,1,"c_must_be_followed_by_an_ASCII_letter_1512","'\\c' must be followed by an ASCII letter."),Undetermined_character_escape:te(1513,1,"Undetermined_character_escape_1513","Undetermined character escape."),Expected_a_capturing_group_name:te(1514,1,"Expected_a_capturing_group_name_1514","Expected a capturing group name."),Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other:te(1515,1,"Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515","Named capturing groups with the same name must be mutually exclusive to each other."),A_character_class_range_must_not_be_bounded_by_another_character_class:te(1516,1,"A_character_class_range_must_not_be_bounded_by_another_character_class_1516","A character class range must not be bounded by another character class."),Range_out_of_order_in_character_class:te(1517,1,"Range_out_of_order_in_character_class_1517","Range out of order in character class."),Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class:te(1518,1,"Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_characte_1518","Anything that would possibly match more than a single character is invalid inside a negated character class."),Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead:te(1519,1,"Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead_1519","Operators must not be mixed within a character class. Wrap it in a nested class instead."),Expected_a_class_set_operand:te(1520,1,"Expected_a_class_set_operand_1520","Expected a class set operand."),q_must_be_followed_by_string_alternatives_enclosed_in_braces:te(1521,1,"q_must_be_followed_by_string_alternatives_enclosed_in_braces_1521","'\\q' must be followed by string alternatives enclosed in braces."),A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash:te(1522,1,"A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backs_1522","A character class must not contain a reserved double punctuator. Did you mean to escape it with backslash?"),Expected_a_Unicode_property_name:te(1523,1,"Expected_a_Unicode_property_name_1523","Expected a Unicode property name."),Unknown_Unicode_property_name:te(1524,1,"Unknown_Unicode_property_name_1524","Unknown Unicode property name."),Expected_a_Unicode_property_value:te(1525,1,"Expected_a_Unicode_property_value_1525","Expected a Unicode property value."),Unknown_Unicode_property_value:te(1526,1,"Unknown_Unicode_property_value_1526","Unknown Unicode property value."),Expected_a_Unicode_property_name_or_value:te(1527,1,"Expected_a_Unicode_property_name_or_value_1527","Expected a Unicode property name or value."),Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set:te(1528,1,"Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_t_1528","Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set."),Unknown_Unicode_property_name_or_value:te(1529,1,"Unknown_Unicode_property_name_or_value_1529","Unknown Unicode property name or value."),Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:te(1530,1,"Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v__1530","Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces:te(1531,1,"_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces_1531","'\\{0}' must be followed by a Unicode property value expression enclosed in braces."),There_is_no_capturing_group_named_0_in_this_regular_expression:te(1532,1,"There_is_no_capturing_group_named_0_in_this_regular_expression_1532","There is no capturing group named '{0}' in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression:te(1533,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_r_1533","This backreference refers to a group that does not exist. There are only {0} capturing groups in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression:te(1534,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regul_1534","This backreference refers to a group that does not exist. There are no capturing groups in this regular expression."),This_character_cannot_be_escaped_in_a_regular_expression:te(1535,1,"This_character_cannot_be_escaped_in_a_regular_expression_1535","This character cannot be escaped in a regular expression."),Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended_as_an_escape_sequence_use_the_syntax_0_instead:te(1536,1,"Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended__1536","Octal escape sequences and backreferences are not allowed in a character class. If this was intended as an escape sequence, use the syntax '{0}' instead."),Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class:te(1537,1,"Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537","Decimal escape sequences and backreferences are not allowed in a character class."),Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:te(1538,1,"Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_se_1538","Unicode escape sequences are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),A_bigint_literal_cannot_be_used_as_a_property_name:te(1539,1,"A_bigint_literal_cannot_be_used_as_a_property_name_1539","A 'bigint' literal cannot be used as a property name."),A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead:te(1540,2,"A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1540","A 'namespace' declaration should not be declared using the 'module' keyword. Please use the 'namespace' keyword instead.",void 0,void 0,!0),The_types_of_0_are_incompatible_between_these_types:te(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:te(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:te(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:te(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:te(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:te(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:te(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:te(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:te(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:te(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:te(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:te(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:te(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:te(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:te(2301,1,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:te(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:te(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:te(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:te(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:te(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:te(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:te(2308,1,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:te(2309,1,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:te(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:te(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:te(2312,1,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:te(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:te(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:te(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:te(2316,1,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:te(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:te(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:te(2319,1,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:te(2320,1,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:te(2321,1,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:te(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:te(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:te(2324,1,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:te(2325,1,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:te(2326,1,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:te(2327,1,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:te(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:te(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:te(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:te(2331,1,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:te(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_a_static_property_initializer:te(2334,1,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:te(2335,1,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:te(2336,1,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:te(2337,1,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:te(2338,1,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:te(2339,1,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:te(2340,1,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:te(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:te(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:te(2344,1,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:te(2345,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Untyped_function_calls_may_not_accept_type_arguments:te(2347,1,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:te(2348,1,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:te(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:te(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:te(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:te(2352,1,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:te(2353,1,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:te(2354,1,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value:te(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:te(2356,1,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:te(2357,1,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:te(2358,1,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method:te(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359","The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the 'Function' interface type, or an object type with a 'Symbol.hasInstance' method."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:te(2362,1,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:te(2363,1,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:te(2364,1,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:te(2365,1,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:te(2366,1,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:te(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:te(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:te(2369,1,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:te(2370,1,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:te(2371,1,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:te(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:te(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:te(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:te(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:te(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:te(2377,1,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:te(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:te(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),Overload_signatures_must_all_be_exported_or_non_exported:te(2383,1,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:te(2384,1,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:te(2385,1,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:te(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:te(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:te(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:te(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:te(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:te(2391,1,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:te(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:te(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:te(2394,1,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:te(2395,1,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:te(2396,1,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:te(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:te(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:te(2399,1,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:te(2400,1,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:te(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:te(2402,1,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:te(2403,1,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:te(2404,1,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:te(2405,1,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:te(2406,1,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:te(2407,1,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:te(2408,1,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:te(2409,1,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:te(2410,1,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:te(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:te(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:te(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:te(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:te(2415,1,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:te(2416,1,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:te(2417,1,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:te(2418,1,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:te(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:te(2420,1,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:te(2422,1,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:te(2423,1,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:te(2425,1,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:te(2426,1,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:te(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:te(2428,1,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:te(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:te(2431,1,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:te(2432,1,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:te(2433,1,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:te(2434,1,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:te(2435,1,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:te(2436,1,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:te(2437,1,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:te(2438,1,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:te(2439,1,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:te(2440,1,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:te(2441,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:te(2442,1,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:te(2443,1,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:te(2444,1,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:te(2445,1,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:te(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:te(2447,1,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:te(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:te(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:te(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:te(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:te(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:te(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:te(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:te(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:te(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:te(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:te(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:te(2461,1,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:te(2462,1,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:te(2463,1,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:te(2464,1,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:te(2465,1,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:te(2466,1,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:te(2467,1,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:te(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:te(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:te(2472,1,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:te(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:te(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:te(2475,1,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:te(2476,1,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:te(2477,1,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:te(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:te(2480,1,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:te(2481,1,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:te(2483,1,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:te(2484,1,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:te(2487,1,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:te(2488,1,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:te(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:te(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:te(2491,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:te(2492,1,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:te(2493,1,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:te(2494,1,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:te(2495,1,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression:te(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_func_2496","The 'arguments' object cannot be referenced in an arrow function in ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:te(2497,1,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:te(2498,1,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:te(2499,1,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:te(2500,1,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:te(2501,1,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:te(2502,1,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:te(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:te(2504,1,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:te(2505,1,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:te(2506,1,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:te(2507,1,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:te(2508,1,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:te(2509,1,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:te(2510,1,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:te(2511,1,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:te(2512,1,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:te(2513,1,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),A_tuple_type_cannot_be_indexed_with_a_negative_value:te(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:te(2515,1,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member {1} from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:te(2516,1,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:te(2517,1,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:te(2518,1,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:te(2519,1,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:te(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method:te(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_sta_2522","The 'arguments' object cannot be referenced in an async function or method in ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:te(2523,1,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:te(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:te(2526,1,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:te(2527,1,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:te(2528,1,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:te(2529,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:te(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:te(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:te(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:te(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:te(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:te(2536,1,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:te(2537,1,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:te(2538,1,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:te(2539,1,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:te(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:te(2542,1,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:te(2543,1,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:te(2544,1,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:te(2545,1,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:te(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:te(2548,1,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:te(2549,1,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:te(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:te(2551,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:te(2552,1,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:te(2553,1,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:te(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:te(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:te(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:te(2558,1,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:te(2559,1,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:te(2560,1,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:te(2561,1,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:te(2562,1,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:te(2563,1,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:te(2564,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:te(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:te(2566,1,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:te(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:te(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:te(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:te(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:te(2574,1,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:te(2575,1,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:te(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:te(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:te(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:te(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:te(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:te(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:te(2583,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:te(2584,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:te(2585,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:te(2588,1,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:te(2589,1,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:te(2590,1,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:te(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:te(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:te(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:te(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:te(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:te(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:te(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:te(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:te(2602,1,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:te(2603,1,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:te(2604,1,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:te(2606,1,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:te(2607,1,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:te(2608,1,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:te(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:te(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:te(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:te(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:te(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:te(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:te(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:te(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:te(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:te(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:te(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:te(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:te(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:te(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:te(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:te(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:te(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:te(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:te(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:te(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:te(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:te(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:te(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:te(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:te(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:te(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:te(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:te(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:te(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),React_components_cannot_include_JSX_namespace_names:te(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:te(2649,1,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more:te(2650,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and__2650","Non-abstract class expression is missing implementations for the following members of '{0}': {1} and {2} more."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:te(2651,1,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:te(2652,1,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:te(2653,1,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2:te(2654,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_2654","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2}."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more:te(2655,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more_2655","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2} and {3} more."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1:te(2656,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_2656","Non-abstract class expression is missing implementations for the following members of '{0}': {1}."),JSX_expressions_must_have_one_parent_element:te(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:te(2658,1,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:te(2659,1,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:te(2660,1,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:te(2661,1,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:te(2662,1,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:te(2663,1,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:te(2664,1,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:te(2665,1,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:te(2666,1,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:te(2667,1,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:te(2668,1,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:te(2669,1,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:te(2670,1,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:te(2671,1,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:te(2672,1,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:te(2673,1,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:te(2674,1,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:te(2675,1,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:te(2676,1,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:te(2677,1,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:te(2678,1,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:te(2679,1,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:te(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:te(2681,1,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:te(2683,1,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:te(2684,1,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:te(2685,1,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:te(2686,1,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:te(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:te(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:te(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:te(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:te(2692,1,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:te(2693,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:te(2694,1,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:te(2695,1,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:te(2696,1,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:te(2697,1,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:te(2698,1,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:te(2699,1,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:te(2700,1,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:te(2701,1,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:te(2702,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:te(2703,1,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:te(2704,1,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:te(2705,1,"An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_2705","An async function or method in ES5 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:te(2706,1,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:te(2707,1,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:te(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:te(2709,1,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:te(2710,1,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:te(2711,1,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:te(2712,1,"A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_t_2712","A dynamic import call in ES5 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:te(2713,1,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713",`Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}["{1}"]'?`),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:te(2714,1,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:te(2715,1,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:te(2716,1,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:te(2717,1,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:te(2718,1,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:te(2719,1,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:te(2720,1,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:te(2721,1,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:te(2722,1,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:te(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:te(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:te(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:te(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:te(2727,1,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:te(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:te(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:te(2730,1,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:te(2731,1,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:te(2732,1,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:te(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:te(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:te(2735,1,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:te(2736,1,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:te(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:te(2738,3,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:te(2739,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:te(2740,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:te(2741,1,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:te(2742,1,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:te(2743,1,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:te(2744,1,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:te(2745,1,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:te(2746,1,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:te(2747,1,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_0_is_enabled:te(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:te(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:te(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:te(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:te(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:te(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:te(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:te(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:te(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:te(2757,1,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:te(2758,1,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:te(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:te(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:te(2761,1,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:te(2762,1,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:te(2763,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:te(2764,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:te(2765,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:te(2766,1,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:te(2767,1,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:te(2768,1,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:te(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:te(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:te(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:te(2772,1,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:te(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:te(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:te(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:te(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:te(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:te(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:te(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:te(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:te(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:te(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:te(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:te(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:te(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:te(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:te(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:te(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:te(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:te(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:te(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:te(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:te(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:te(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:te(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:te(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:te(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:te(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:te(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:te(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:te(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:te(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:te(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:te(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:te(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:te(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:te(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:te(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:te(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:te(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:te(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:te(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:te(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:te(2815,1,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:te(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:te(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:te(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:te(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:te(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:te(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2821","Import assertions are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:te(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:te(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2823","Import attributes are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),Cannot_find_namespace_0_Did_you_mean_1:te(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:te(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:te(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:te(2836,1,"Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836","Import assertions are not allowed on statements that compile to CommonJS 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:te(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:te(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:te(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types:te(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840","An interface cannot extend a primitive type like '{0}'. It can only extend other named object types."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:te(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:te(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:te(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:te(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:te(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:te(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:te(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:te(2850,1,"The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850","The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:te(2851,1,"The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851","The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:te(2852,1,"await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852","'await using' statements are only allowed within async functions and at the top levels of modules."),await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:te(2853,1,"await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853","'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:te(2854,1,"Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854","Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super:te(2855,1,"Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855","Class field '{0}' defined by the parent class is not accessible in the child class via super."),Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:te(2856,1,"Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856","Import attributes are not allowed on statements that compile to CommonJS 'require' calls."),Import_attributes_cannot_be_used_with_type_only_imports_or_exports:te(2857,1,"Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857","Import attributes cannot be used with type-only imports or exports."),Import_attribute_values_must_be_string_literal_expressions:te(2858,1,"Import_attribute_values_must_be_string_literal_expressions_2858","Import attribute values must be string literal expressions."),Excessive_complexity_comparing_types_0_and_1:te(2859,1,"Excessive_complexity_comparing_types_0_and_1_2859","Excessive complexity comparing types '{0}' and '{1}'."),The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method:te(2860,1,"The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860","The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method."),An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression:te(2861,1,"An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861","An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression."),Type_0_is_generic_and_can_only_be_indexed_for_reading:te(2862,1,"Type_0_is_generic_and_can_only_be_indexed_for_reading_2862","Type '{0}' is generic and can only be indexed for reading."),A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values:te(2863,1,"A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863","A class cannot extend a primitive type like '{0}'. Classes can only extend constructable values."),A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types:te(2864,1,"A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864","A class cannot implement a primitive type like '{0}'. It can only implement other named object types."),Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:te(2865,1,"Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865","Import '{0}' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled."),Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:te(2866,1,"Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866","Import '{0}' conflicts with global value used in this file, so must be declared with a type-only import when 'isolatedModules' is enabled."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun:te(2867,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:te(2868,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2868","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun` and then add 'bun' to the types field in your tsconfig."),Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish:te(2869,1,"Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish_2869","Right operand of ?? is unreachable because the left operand is never nullish."),This_binary_expression_is_never_nullish_Are_you_missing_parentheses:te(2870,1,"This_binary_expression_is_never_nullish_Are_you_missing_parentheses_2870","This binary expression is never nullish. Are you missing parentheses?"),This_expression_is_always_nullish:te(2871,1,"This_expression_is_always_nullish_2871","This expression is always nullish."),This_kind_of_expression_is_always_truthy:te(2872,1,"This_kind_of_expression_is_always_truthy_2872","This kind of expression is always truthy."),This_kind_of_expression_is_always_falsy:te(2873,1,"This_kind_of_expression_is_always_falsy_2873","This kind of expression is always falsy."),Import_declaration_0_is_using_private_name_1:te(4e3,1,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:te(4002,1,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:te(4004,1,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:te(4006,1,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:te(4008,1,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:te(4010,1,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:te(4012,1,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:te(4014,1,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:te(4016,1,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:te(4019,1,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:te(4020,1,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:te(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:te(4022,1,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:te(4023,1,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:te(4024,1,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:te(4025,1,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:te(4026,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:te(4027,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:te(4028,1,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:te(4029,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:te(4030,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:te(4031,1,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:te(4032,1,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:te(4033,1,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:te(4034,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:te(4035,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:te(4036,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:te(4037,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:te(4038,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:te(4039,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:te(4040,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:te(4041,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:te(4042,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:te(4043,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:te(4044,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:te(4045,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:te(4046,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:te(4047,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:te(4048,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:te(4049,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:te(4050,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:te(4051,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:te(4052,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:te(4053,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:te(4054,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:te(4055,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:te(4056,1,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:te(4057,1,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:te(4058,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:te(4059,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:te(4060,1,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:te(4061,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:te(4062,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:te(4063,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:te(4064,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:te(4065,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:te(4066,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:te(4067,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:te(4068,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:te(4069,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:te(4070,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:te(4071,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:te(4072,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:te(4073,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:te(4074,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:te(4075,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:te(4076,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:te(4077,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:te(4078,1,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:te(4081,1,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:te(4082,1,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:te(4083,1,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:te(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:te(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:te(4091,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:te(4092,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected:te(4094,1,"Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected_4094","Property '{0}' of exported anonymous class type may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:te(4095,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:te(4096,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:te(4097,1,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:te(4098,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:te(4099,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:te(4100,1,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:te(4101,1,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:te(4102,1,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:te(4103,1,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:te(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:te(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:te(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:te(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:te(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:te(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:te(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:te(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:te(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:te(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:te(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:te(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:te(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:te(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:te(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:te(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:te(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:te(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:te(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:te(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:te(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given:te(4125,1,"Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125","Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value:te(4126,1,"One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126","One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),The_current_host_does_not_support_the_0_option:te(5001,1,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:te(5009,1,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:te(5010,1,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:te(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Unknown_compiler_option_0:te(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:te(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:te(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:te(5033,1,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:te(5042,1,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:te(5047,1,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:te(5051,1,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:te(5052,1,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:te(5053,1,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:te(5054,1,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:te(5055,1,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:te(5056,1,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:te(5057,1,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:te(5058,1,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:te(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:te(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:te(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:te(5063,1,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:te(5064,1,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:te(5065,1,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:te(5066,1,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:te(5067,1,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:te(5068,1,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:te(5069,1,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic:te(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd:te(5071,1,"Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071","Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'."),Unknown_build_option_0:te(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:te(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:te(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:te(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:te(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:te(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:te(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:te(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:te(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:te(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:te(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:te(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:te(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:te(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:te(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:te(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:te(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:te(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:te(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:te(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:te(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:te(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later:te(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'preserve' or to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:te(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:te(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:te(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:te(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101",`Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '"ignoreDeprecations": "{2}"' to silence this error.`),Option_0_has_been_removed_Please_remove_it_from_your_configuration:te(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:te(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:te(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:te(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:te(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:te(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107",`Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '"ignoreDeprecations": "{3}"' to silence this error.`),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:te(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:te(5109,1,"Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109","Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:te(5110,1,"Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110","Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),Option_tsBuildInfoFile_cannot_be_specified_without_specifying_option_incremental_or_composite_or_if_not_running_tsc_b:te(5111,1,"Option_tsBuildInfoFile_cannot_be_specified_without_specifying_option_incremental_or_composite_or_if__5111","Option 'tsBuildInfoFile' cannot be specified without specifying option 'incremental' or 'composite' or if not running 'tsc -b'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:te(6e3,3,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:te(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:te(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:te(6004,3,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:te(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:te(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:te(6007,3,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:te(6008,3,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:te(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:te(6010,3,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:te(6011,3,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:te(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:te(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:te(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:te(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:te(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:te(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:te(6019,3,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:te(6020,3,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:te(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:te(6024,3,"options_6024","options"),file:te(6025,3,"file_6025","file"),Examples_Colon_0:te(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:te(6027,3,"Options_Colon_6027","Options:"),Version_0:te(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:te(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:te(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:te(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:te(6034,3,"KIND_6034","KIND"),FILE:te(6035,3,"FILE_6035","FILE"),VERSION:te(6036,3,"VERSION_6036","VERSION"),LOCATION:te(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:te(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:te(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:te(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:te(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:te(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:te(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:te(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:te(6046,1,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:te(6048,1,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unable_to_open_file_0:te(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:te(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:te(6052,3,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:te(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:te(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:te(6055,3,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:te(6056,3,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:te(6058,3,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:te(6059,1,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:te(6060,3,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:te(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:te(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:te(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:te(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:te(6070,3,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:te(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:te(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:te(6073,3,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:te(6074,3,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:te(6075,3,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:te(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:te(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:te(6078,3,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:te(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:te(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),Only_amd_and_system_modules_are_supported_alongside_0:te(6082,1,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:te(6083,3,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:te(6084,3,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:te(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:te(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:te(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:te(6088,3,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:te(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:te(6090,3,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:te(6091,3,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:te(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:te(6093,3,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:te(6094,3,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1:te(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:te(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:te(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:te(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:te(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:te(6100,3,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:te(6101,3,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:te(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:te(6104,3,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:te(6105,3,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:te(6106,3,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:te(6107,3,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:te(6108,3,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:te(6109,3,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:te(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:te(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:te(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:te(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:te(6114,1,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:te(6115,3,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:te(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:te(6119,3,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:te(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:te(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:te(6122,3,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:te(6123,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:te(6124,3,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:te(6125,3,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:te(6126,3,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:te(6127,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:te(6128,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:te(6130,3,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:te(6131,1,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:te(6132,3,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:te(6133,1,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:te(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:te(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:te(6136,3,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:te(6137,1,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:te(6138,1,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:te(6139,3,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:te(6140,1,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:te(6141,3,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:te(6142,1,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:te(6144,3,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:te(6146,3,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:te(6147,3,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:te(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:te(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:te(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:te(6151,3,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:te(6152,3,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:te(6153,3,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:te(6154,3,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:te(6155,3,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:te(6156,3,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:te(6157,3,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:te(6158,3,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:te(6159,3,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:te(6160,3,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:te(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:te(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:te(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:te(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:te(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:te(6166,3,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:te(6167,3,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:te(6168,3,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:te(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:te(6170,3,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:te(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5:te(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5'."),Enable_all_strict_type_checking_options:te(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:te(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:te(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:te(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:te(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:te(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:te(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:te(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:te(6191,3,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:te(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:te(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:te(6194,3,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:te(6195,3,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:te(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:te(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:te(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:te(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:te(6200,1,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:te(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:te(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:te(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:te(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:te(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:te(6206,3,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:te(6207,3,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:te(6208,3,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:te(6209,3,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:te(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:te(6211,3,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:te(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:te(6213,3,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:te(6214,3,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:te(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:te(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:te(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:te(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:te(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:te(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:te(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:te(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:te(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:te(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:te(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:te(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:te(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:te(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:te(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:te(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:te(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:te(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:te(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:te(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:te(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:te(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:te(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:te(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:te(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:te(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:te(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:te(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:te(6244,3,"Modules_6244","Modules"),File_Management:te(6245,3,"File_Management_6245","File Management"),Emit:te(6246,3,"Emit_6246","Emit"),JavaScript_Support:te(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:te(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:te(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:te(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:te(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:te(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:te(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:te(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:te(6255,3,"Projects_6255","Projects"),Output_Formatting:te(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:te(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:te(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_0:te(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:te(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:te(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:te(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:te(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:te(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:te(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:te(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:te(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:te(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:te(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:te(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:te(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:te(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:te(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:te(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:te(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278",`There are types at '{0}', but this result could not be resolved when respecting package.json "exports". The '{1}' library may need to update its package.json or typings.`),Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update:te(6279,3,"Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279","Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler:te(6280,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280","There are types at '{0}', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'."),package_json_has_a_peerDependencies_field:te(6281,3,"package_json_has_a_peerDependencies_field_6281","'package.json' has a 'peerDependencies' field."),Found_peerDependency_0_with_1_version:te(6282,3,"Found_peerDependency_0_with_1_version_6282","Found peerDependency '{0}' with '{1}' version."),Failed_to_find_peerDependency_0:te(6283,3,"Failed_to_find_peerDependency_0_6283","Failed to find peerDependency '{0}'."),Enable_project_compilation:te(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:te(6304,1,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:te(6305,1,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:te(6306,1,"Referenced_project_0_must_have_setting_composite_Colon_true_6306",`Referenced project '{0}' must have setting "composite": true.`),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:te(6307,1,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Referenced_project_0_may_not_disable_emit:te(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:te(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:te(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:te(6352,3,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:te(6353,3,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:te(6354,3,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:te(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:te(6356,3,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:te(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:te(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:te(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:te(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:te(6362,3,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:te(6363,3,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:te(6364,3,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:te(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:te(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:te(6369,1,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:te(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:te(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:te(6374,3,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:te(6377,1,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:te(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:te(6380,3,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:te(6381,3,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:te(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:te(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:te(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:te(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:te(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:te(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:te(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:te(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:te(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:te(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:te(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:te(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:te(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:te(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:te(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:te(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:te(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:te(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:te(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:te(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:te(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:te(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:te(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:te(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:te(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:te(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:te(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:te(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:te(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:te(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:te(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:te(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:te(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:te(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:te(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:te(6417,3,"Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417","Searching all ancestor node_modules directories for preferred extensions: {0}."),Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:te(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors:te(6419,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors_6419","Project '{0}' is out of date because buildinfo file '{1}' indicates that program needs to report errors."),Project_0_is_out_of_date_because_1:te(6420,3,"Project_0_is_out_of_date_because_1_6420","Project '{0}' is out of date because {1}."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:te(6500,3,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:te(6501,3,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:te(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:te(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:te(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:te(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:te(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:te(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:te(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:te(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:te(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:te(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:te(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:te(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:te(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:te(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:te(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:te(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:te(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:te(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:te(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:te(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:te(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:te(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:te(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:te(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:te(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:te(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:te(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:te(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:te(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:te(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:te(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:te(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:te(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:te(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:te(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:te(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:te(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:te(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:te(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:te(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:te(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:te(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:te(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:te(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Skip_building_downstream_projects_on_error_in_upstream_project:te(6640,3,"Skip_building_downstream_projects_on_error_in_upstream_project_6640","Skip building downstream projects on error in upstream project."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:te(6641,3,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:te(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:te(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:te(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:te(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:te(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:te(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:te(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:te(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:te(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:te(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:te(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:te(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:te(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:te(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:te(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:te(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:te(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:te(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:te(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:te(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:te(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:te(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:te(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:te(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:te(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:te(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:te(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:te(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:te(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:te(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:te(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:te(6673,3,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:te(6674,3,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:te(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:te(6676,3,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:te(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:te(6678,3,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:te(6679,3,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:te(6680,3,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:te(6681,3,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:te(6682,3,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:te(6683,3,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:te(6684,3,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:te(6685,3,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:te(6686,3,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:te(6687,3,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:te(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:te(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:te(6690,3,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:te(6691,3,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:te(6692,3,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:te(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:te(6694,3,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:te(6695,3,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:te(6697,3,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:te(6698,3,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:te(6699,3,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:te(6700,3,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:te(6701,3,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:te(6702,3,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:te(6703,3,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:te(6704,3,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:te(6705,3,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:te(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:te(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:te(6709,3,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:te(6710,3,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:te(6711,3,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:te(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:te(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:te(6714,3,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:te(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:te(6717,3,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:te(6718,3,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files:te(6719,3,"Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719","Require sufficient annotation on exports so other tools can trivially generate declaration files."),Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any:te(6720,3,"Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any_6720","Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'."),Default_catch_clause_variables_as_unknown_instead_of_any:te(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:te(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported:te(6805,3,"Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805","Disable full type checking (only critical parse and emit errors will be reported)."),Check_side_effect_imports:te(6806,3,"Check_side_effect_imports_6806","Check side effect imports."),This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2:te(6807,1,"This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2_6807","This operation can be simplified. This shift is identical to `{0} {1} {2}`."),one_of_Colon:te(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:te(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:te(6902,3,"type_Colon_6902","type:"),default_Colon:te(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:te(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:te(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:te(6906,3,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:te(6907,3,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:te(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:te(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:te(69010,3,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:te(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:te(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:te(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:te(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:te(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:te(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:te(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:te(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:te(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:te(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:te(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:te(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:te(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:te(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:te(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:te(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:te(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:te(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:te(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:te(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:te(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:te(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:te(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:te(7008,1,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:te(7009,1,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:te(7010,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:te(7011,1,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:te(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:te(7013,1,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:te(7014,1,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:te(7015,1,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:te(7016,1,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:te(7017,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:te(7018,1,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:te(7019,1,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:te(7020,1,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:te(7022,1,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:te(7023,1,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:te(7024,1,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:te(7025,1,"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025","Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:te(7026,1,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:te(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:te(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:te(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:te(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:te(7031,1,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:te(7032,1,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:te(7033,1,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:te(7034,1,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:te(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:te(7036,1,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:te(7037,3,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:te(7038,3,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:te(7039,1,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:te(7040,1,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:te(7041,1,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:te(7042,1,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:te(7043,2,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:te(7044,2,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:te(7045,2,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:te(7046,2,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:te(7047,2,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:te(7048,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:te(7049,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:te(7050,2,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:te(7051,1,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:te(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:te(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:te(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:te(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:te(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:te(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:te(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:te(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:te(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:te(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:te(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:te(8001,1,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:te(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:te(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:te(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:te(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:te(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:te(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:te(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:te(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:te(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:te(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:te(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:te(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Signature_declarations_can_only_be_used_in_TypeScript_files:te(8017,1,"Signature_declarations_can_only_be_used_in_TypeScript_files_8017","Signature declarations can only be used in TypeScript files."),Report_errors_in_js_files:te(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:te(8020,1,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:te(8021,1,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:te(8022,1,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:te(8023,1,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:te(8024,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:te(8025,1,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:te(8026,1,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:te(8027,1,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:te(8028,1,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:te(8029,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:te(8030,1,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:te(8031,1,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:te(8032,1,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:te(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:te(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:te(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:te(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:te(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:te(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:te(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:te(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:te(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:te(9007,1,"Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9007","Function must have an explicit return type annotation with --isolatedDeclarations."),Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:te(9008,1,"Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9008","Method must have an explicit return type annotation with --isolatedDeclarations."),At_least_one_accessor_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:te(9009,1,"At_least_one_accessor_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9009","At least one accessor must have an explicit return type annotation with --isolatedDeclarations."),Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations:te(9010,1,"Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9010","Variable must have an explicit type annotation with --isolatedDeclarations."),Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations:te(9011,1,"Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9011","Parameter must have an explicit type annotation with --isolatedDeclarations."),Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations:te(9012,1,"Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9012","Property must have an explicit type annotation with --isolatedDeclarations."),Expression_type_can_t_be_inferred_with_isolatedDeclarations:te(9013,1,"Expression_type_can_t_be_inferred_with_isolatedDeclarations_9013","Expression type can't be inferred with --isolatedDeclarations."),Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations:te(9014,1,"Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedD_9014","Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations."),Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations:te(9015,1,"Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations_9015","Objects that contain spread assignments can't be inferred with --isolatedDeclarations."),Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations:te(9016,1,"Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations_9016","Objects that contain shorthand properties can't be inferred with --isolatedDeclarations."),Only_const_arrays_can_be_inferred_with_isolatedDeclarations:te(9017,1,"Only_const_arrays_can_be_inferred_with_isolatedDeclarations_9017","Only const arrays can be inferred with --isolatedDeclarations."),Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations:te(9018,1,"Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations_9018","Arrays with spread elements can't inferred with --isolatedDeclarations."),Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations:te(9019,1,"Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations_9019","Binding elements can't be exported directly with --isolatedDeclarations."),Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations:te(9020,1,"Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDecl_9020","Enum member initializers must be computable without references to external symbols with --isolatedDeclarations."),Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations:te(9021,1,"Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations_9021","Extends clause can't contain an expression with --isolatedDeclarations."),Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations:te(9022,1,"Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations_9022","Inference from class expressions is not supported with --isolatedDeclarations."),Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function:te(9023,1,"Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023","Assigning properties to functions without declaring them is not supported with --isolatedDeclarations. Add an explicit declaration for the properties assigned to this function."),Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_it_s_type_This_is_not_supported_with_isolatedDeclarations:te(9025,1,"Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_it_s_type_This_is_not_su_9025","Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations."),Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations:te(9026,1,"Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026","Declaration emit for this file requires preserving this import for augmentations. This is not supported with --isolatedDeclarations."),Add_a_type_annotation_to_the_variable_0:te(9027,1,"Add_a_type_annotation_to_the_variable_0_9027","Add a type annotation to the variable {0}."),Add_a_type_annotation_to_the_parameter_0:te(9028,1,"Add_a_type_annotation_to_the_parameter_0_9028","Add a type annotation to the parameter {0}."),Add_a_type_annotation_to_the_property_0:te(9029,1,"Add_a_type_annotation_to_the_property_0_9029","Add a type annotation to the property {0}."),Add_a_return_type_to_the_function_expression:te(9030,1,"Add_a_return_type_to_the_function_expression_9030","Add a return type to the function expression."),Add_a_return_type_to_the_function_declaration:te(9031,1,"Add_a_return_type_to_the_function_declaration_9031","Add a return type to the function declaration."),Add_a_return_type_to_the_get_accessor_declaration:te(9032,1,"Add_a_return_type_to_the_get_accessor_declaration_9032","Add a return type to the get accessor declaration."),Add_a_type_to_parameter_of_the_set_accessor_declaration:te(9033,1,"Add_a_type_to_parameter_of_the_set_accessor_declaration_9033","Add a type to parameter of the set accessor declaration."),Add_a_return_type_to_the_method:te(9034,1,"Add_a_return_type_to_the_method_9034","Add a return type to the method"),Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit:te(9035,1,"Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit_9035","Add satisfies and a type assertion to this expression (satisfies T as T) to make the type explicit."),Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it:te(9036,1,"Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it_9036","Move the expression in default export to a variable and add a type annotation to it."),Default_exports_can_t_be_inferred_with_isolatedDeclarations:te(9037,1,"Default_exports_can_t_be_inferred_with_isolatedDeclarations_9037","Default exports can't be inferred with --isolatedDeclarations."),Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations:te(9038,1,"Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations_9038","Computed property names on class or object literals cannot be inferred with --isolatedDeclarations."),Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations:te(9039,1,"Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations_9039","Type containing private name '{0}' can't be used with --isolatedDeclarations."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:te(17e3,1,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:te(17001,1,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:te(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:te(17004,1,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:te(17005,1,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:te(17006,1,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:te(17007,1,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:te(17008,1,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:te(17009,1,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:te(17010,1,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:te(17011,1,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:te(17012,1,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:te(17013,1,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:te(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:te(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:te(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:te(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:te(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:te(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:te(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Unicode_escape_sequence_cannot_appear_here:te(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:te(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:te(18002,1,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:te(18003,1,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:te(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:te(80002,2,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:te(80003,2,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:te(80004,2,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:te(80005,2,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:te(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:te(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:te(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),JSDoc_typedef_may_be_converted_to_TypeScript_type:te(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:te(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:te(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:te(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:te(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:te(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:te(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:te(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:te(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:te(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:te(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:te(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:te(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:te(90013,3,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:te(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:te(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:te(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:te(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:te(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:te(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:te(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:te(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:te(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:te(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:te(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:te(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:te(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:te(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:te(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:te(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:te(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:te(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:te(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:te(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:te(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:te(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:te(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:te(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:te(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:te(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:te(90055,3,"Remove_type_from_import_declaration_from_0_90055",`Remove 'type' from import declaration from "{0}"`),Remove_type_from_import_of_0_from_1:te(90056,3,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:te(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:te(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:te(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:te(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Update_modifiers_of_0:te(90061,3,"Update_modifiers_of_0_90061","Update modifiers of '{0}'"),Add_annotation_of_type_0:te(90062,3,"Add_annotation_of_type_0_90062","Add annotation of type '{0}'"),Add_return_type_0:te(90063,3,"Add_return_type_0_90063","Add return type '{0}'"),Extract_base_class_to_variable:te(90064,3,"Extract_base_class_to_variable_90064","Extract base class to variable"),Extract_default_export_to_variable:te(90065,3,"Extract_default_export_to_variable_90065","Extract default export to variable"),Extract_binding_expressions_to_variable:te(90066,3,"Extract_binding_expressions_to_variable_90066","Extract binding expressions to variable"),Add_all_missing_type_annotations:te(90067,3,"Add_all_missing_type_annotations_90067","Add all missing type annotations"),Add_satisfies_and_an_inline_type_assertion_with_0:te(90068,3,"Add_satisfies_and_an_inline_type_assertion_with_0_90068","Add satisfies and an inline type assertion with '{0}'"),Extract_to_variable_and_replace_with_0_as_typeof_0:te(90069,3,"Extract_to_variable_and_replace_with_0_as_typeof_0_90069","Extract to variable and replace with '{0} as typeof {0}'"),Mark_array_literal_as_const:te(90070,3,"Mark_array_literal_as_const_90070","Mark array literal as const"),Annotate_types_of_properties_expando_function_in_a_namespace:te(90071,3,"Annotate_types_of_properties_expando_function_in_a_namespace_90071","Annotate types of properties expando function in a namespace"),Convert_function_to_an_ES2015_class:te(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:te(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:te(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:te(95005,3,"Extract_function_95005","Extract function"),Extract_constant:te(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:te(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:te(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:te(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:te(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:te(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:te(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:te(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:te(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:te(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:te(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:te(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:te(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:te(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:te(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:te(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:te(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:te(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:te(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:te(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:te(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:te(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:te(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:te(95030,3,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:te(95031,3,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:te(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:te(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:te(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:te(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:te(95036,3,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:te(95037,3,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:te(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:te(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:te(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:te(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:te(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:te(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:te(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:te(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:te(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:te(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:te(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:te(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:te(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:te(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:te(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:te(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:te(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:te(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:te(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:te(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:te(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:te(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:te(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:te(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:te(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:te(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:te(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:te(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:te(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:te(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:te(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:te(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:te(95070,3,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:te(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:te(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:te(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:te(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:te(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:te(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:te(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:te(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:te(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:te(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:te(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:te(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:te(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:te(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:te(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:te(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:te(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:te(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:te(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:te(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:te(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:te(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:te(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:te(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:te(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:te(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:te(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:te(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:te(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:te(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:te(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:te(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:te(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:te(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:te(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:te(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:te(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:te(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:te(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:te(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:te(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:te(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:te(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:te(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:te(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:te(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:te(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:te(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:te(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:te(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:te(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:te(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:te(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:te(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:te(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:te(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:te(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:te(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:te(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:te(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:te(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:te(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:te(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:te(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:te(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:te(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:te(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:te(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:te(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:te(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:te(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:te(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:te(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:te(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:te(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:te(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:te(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:te(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:te(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:te(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:te(95154,3,"Can_only_convert_string_concatenations_and_string_literals_95154","Can only convert string concatenations and string literals"),Selection_is_not_a_valid_statement_or_statements:te(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:te(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:te(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:te(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:te(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:te(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:te(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:te(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:te(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:te(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:te(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:te(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:te(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:te(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:te(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:te(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:te(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:te(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:te(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:te(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:te(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:te(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:te(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:te(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:te(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:te(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:te(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:te(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:te(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:te(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:te(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:te(95186,3,"Variables_with_multiple_declarations_cannot_be_inlined_95186","Variables with multiple declarations cannot be inlined."),Add_missing_comma_for_object_member_completion_0:te(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),Add_missing_parameter_to_0:te(95188,3,"Add_missing_parameter_to_0_95188","Add missing parameter to '{0}'"),Add_missing_parameters_to_0:te(95189,3,"Add_missing_parameters_to_0_95189","Add missing parameters to '{0}'"),Add_all_missing_parameters:te(95190,3,"Add_all_missing_parameters_95190","Add all missing parameters"),Add_optional_parameter_to_0:te(95191,3,"Add_optional_parameter_to_0_95191","Add optional parameter to '{0}'"),Add_optional_parameters_to_0:te(95192,3,"Add_optional_parameters_to_0_95192","Add optional parameters to '{0}'"),Add_all_optional_parameters:te(95193,3,"Add_all_optional_parameters_95193","Add all optional parameters"),Wrap_in_parentheses:te(95194,3,"Wrap_in_parentheses_95194","Wrap in parentheses"),Wrap_all_invalid_decorator_expressions_in_parentheses:te(95195,3,"Wrap_all_invalid_decorator_expressions_in_parentheses_95195","Wrap all invalid decorator expressions in parentheses"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:te(18004,1,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:te(18006,1,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:te(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:te(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:te(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:te(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:te(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:te(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:te(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:te(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:te(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:te(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:te(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:te(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:te(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:te(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:te(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:te(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:te(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:te(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:te(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:te(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:te(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:te(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:te(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:te(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),await_expression_cannot_be_used_inside_a_class_static_block:te(18037,1,"await_expression_cannot_be_used_inside_a_class_static_block_18037","'await' expression cannot be used inside a class static block."),for_await_loops_cannot_be_used_inside_a_class_static_block:te(18038,1,"for_await_loops_cannot_be_used_inside_a_class_static_block_18038","'for await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:te(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:te(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:te(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:te(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:te(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:te(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:te(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:te(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:te(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:te(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:te(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:te(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Its_type_0_is_not_a_valid_JSX_element_type:te(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type."),await_using_statements_cannot_be_used_inside_a_class_static_block:te(18054,1,"await_using_statements_cannot_be_used_inside_a_class_static_block_18054","'await using' statements cannot be used inside a class static block."),_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled:te(18055,1,"_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is__18055","'{0}' has a string type, but must have syntactically recognizable string syntax when 'isolatedModules' is enabled."),Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled:te(18056,1,"Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is__18056","Enum member following a non-literal numeric member must have an initializer when 'isolatedModules' is enabled."),String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020:te(18057,1,"String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es_18057","String literal import and export names are not supported when the '--module' flag is set to 'es2015' or 'es2020'.")};function FS(t){return t>=80}function ME(t){return t===32||FS(t)}var ZB={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},Loe=new Map(Object.entries(ZB)),dH=new Map(Object.entries({...ZB,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,">":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),RE=new Map([[100,1],[103,2],[105,4],[109,8],[115,16],[117,32],[118,64],[121,128]]),mke=new Map([[1,9],[16,5],[32,2],[64,99],[128,2]]),ie=[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,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,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,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,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,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,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,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,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,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,11310,11312,11358,11360,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,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,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,43968,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],W=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,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,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,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,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,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,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,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,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,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,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,8204,8205,8255,8256,8276,8276,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,11310,11312,11358,11360,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,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,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,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],lx=[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,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,8472,8477,8484,8484,8486,8486,8488,8488,8490,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,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,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,191472,192093,194560,195101,196608,201546,201552,205743],m$e=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,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,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,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2160,2183,2185,2190,2200,2273,2275,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,4969,4977,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,6157,6159,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,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,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,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,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,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,65296,65305,65313,65338,65343,65343,65345,65370,65381,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,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,69826,69826,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,78895,78912,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,118528,118573,118576,118598,119141,119145,119149,119154,119163,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,191472,192093,194560,195101,196608,201546,201552,205743,917760,917999],hke=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,u9t=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,egt=/@(?:see|link)/i;function gke(t,n){if(t=2?gke(t,lx):gke(t,ie)}function d9t(t,n){return n>=2?gke(t,m$e):gke(t,W)}function tgt(t){let n=[];return t.forEach((a,u)=>{n[a]=u}),n}var f9t=tgt(dH);function Ef(t){return f9t[t]}function fH(t){return dH.get(t)}var _9t=tgt(RE);function igt(t){return _9t[t]}function Ooe(t){return RE.get(t)}function E7(t){let n=[],a=0,u=0;for(;a127&&Ev(m)&&(n.push(u),u=a);break}}return n.push(u),n}function ppe(t,n,a,u){return t.getPositionOfLineAndCharacter?t.getPositionOfLineAndCharacter(n,a,u):mpe(P6(t),n,a,t.text,u)}function mpe(t,n,a,u,m){(n<0||n>=t.length)&&(m?n=n<0?0:n>=t.length?t.length-1:n:Se.fail(`Bad line number. Line: ${n}, lineStarts.length: ${t.length} , line map is correct? ${u!==void 0?ho(t,E7(u)):"unknown"}`));let g=t[n]+a;return m?g>t[n+1]?t[n+1]:typeof u=="string"&&g>u.length?u.length:g:(n=8192&&t<=8203||t===8239||t===8287||t===12288||t===65279}function Ev(t){return t===10||t===13||t===8232||t===8233}function i5(t){return t>=48&&t<=57}function AA(t){return i5(t)||t>=65&&t<=70||t>=97&&t<=102}function _H(t){return t>=65&&t<=90||t>=97&&t<=122}function eZ(t){return _H(t)||i5(t)||t===95}function W$(t){return t>=48&&t<=55}function Sf(t,n){let a=t.charCodeAt(n);switch(a){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return n===0;default:return a>127}}function fd(t,n,a,u,m){if(hN(n))return n;let g=!1;for(;;){let v=t.charCodeAt(n);switch(v){case 13:t.charCodeAt(n+1)===10&&n++;case 10:if(n++,a)return n;g=!!m;continue;case 9:case 11:case 12:case 32:n++;continue;case 47:if(u)break;if(t.charCodeAt(n+1)===47){for(n+=2;n127&&tN(v)){n++;continue}break}return n}}var BE=7;function ev(t,n){if(Se.assert(n>=0),n===0||Ev(t.charCodeAt(n-1))){let a=t.charCodeAt(n);if(n+BE=0&&a127&&tN(H)){A&&Ev(H)&&(I=!0),a++;continue}break e}}return A&&(R=m(x,k,T,I,g,R)),R}function iZ(t,n,a,u){return tZ(!1,t,n,!1,a,u)}function Mf(t,n,a,u){return tZ(!1,t,n,!0,a,u)}function hpe(t,n,a,u,m){return tZ(!0,t,n,!1,a,u,m)}function z$(t,n,a,u,m){return tZ(!0,t,n,!0,a,u,m)}function Moe(t,n,a,u,m,g=[]){return g.push({kind:a,pos:t,end:n,hasTrailingNewLine:u}),g}function PA(t,n){return hpe(t,n,Moe,void 0,void 0)}function L6(t,n){return z$(t,n,Moe,void 0,void 0)}function nZ(t){let n=vke.exec(t);if(n)return n[0]}function HD(t,n){return _H(t)||t===36||t===95||t>127&&yke(t,n)}function UD(t,n,a){return eZ(t)||t===36||(a===1?t===45||t===58:!1)||t>127&&d9t(t,n)}function Jb(t,n,a){let u=V$(t,0);if(!HD(u,n))return!1;for(let m=JD(u);mI,getStartPos:()=>I,getTokenEnd:()=>k,getTextPos:()=>k,getToken:()=>M,getTokenStart:()=>A,getTokenPos:()=>A,getTokenText:()=>x.substring(A,k),getTokenValue:()=>R,hasUnicodeEscape:()=>(H&1024)!==0,hasExtendedUnicodeEscape:()=>(H&8)!==0,hasPrecedingLineBreak:()=>(H&1)!==0,hasPrecedingJSDocComment:()=>(H&2)!==0,hasPrecedingJSDocLeadingAsterisks:()=>(H&32768)!==0,isIdentifier:()=>M===80||M>118,isReservedWord:()=>M>=83&&M<=118,isUnterminated:()=>(H&4)!==0,getCommentDirectives:()=>U,getNumericLiteralFlags:()=>H&25584,getTokenFlags:()=>H,reScanGreaterToken:ni,reScanAsteriskEqualsToken:Ut,reScanSlashToken:pi,reScanTemplateToken:Ei,reScanTemplateHeadOrNoSubstitutionTemplate:zn,scanJsxIdentifier:ai,scanJsxAttributeValue:mn,reScanJsxAttributeValue:Nn,reScanJsxToken:zr,reScanLessThanToken:xr,reScanHashToken:lo,reScanQuestionToken:_r,reScanInvalidIdentifier:ht,scanJsxToken:Hs,scanJsDocToken:ci,scanJSDocCommentTextToken:Gr,scan:mt,getText:Mn,clearCommentDirectives:Qs,setText:Pi,setScriptTarget:lt,setLanguageVariant:Xi,setScriptKind:nt,setJSDocParsingMode:Lt,setOnError:qi,resetTokenState:Pe,setTextPos:Pe,setSkipJsDocLeadingAsterisks:St,tryScan:$o,lookAhead:vo,scanRange:Sr};return Se.isDebugging&&Object.defineProperty(X,"__debugShowCurrentPositionInText",{get:()=>{let Ve=X.getText();return Ve.slice(0,X.getTokenFullStart())+"\u2551"+Ve.slice(X.getTokenFullStart())}}),X;function ne(Ve){return V$(x,Ve)}function se(Ve){return Ve>=0&&Ve=0&&Ve=65&&Mt<=70)Mt+=32;else if(!(Mt>=48&&Mt<=57||Mt>=97&&Mt<=102))break;Wt.push(Mt),k++,Gt=!1}return Wt.length=T){dt+=x.substring(Wt,k),H|=4,le(j.Unterminated_string_literal);break}let pt=_e(k);if(pt===Tt){dt+=x.substring(Wt,k),k++;break}if(pt===92&&!Ve){dt+=x.substring(Wt,k),dt+=Oe(3),Wt=k;continue}if((pt===10||pt===13)&&!Ve){dt+=x.substring(Wt,k),H|=4,le(j.Unterminated_string_literal);break}k++}return dt}function he(Ve){let Tt=_e(k)===96;k++;let dt=k,Wt="",pt;for(;;){if(k>=T){Wt+=x.substring(dt,k),H|=4,le(j.Unterminated_template_literal),pt=Tt?15:18;break}let Gt=_e(k);if(Gt===96){Wt+=x.substring(dt,k),k++,pt=Tt?15:18;break}if(Gt===36&&k+1=T)return le(j.Unexpected_end_of_text),"";let dt=_e(k);switch(k++,dt){case 48:if(k>=T||!i5(_e(k)))return"\0";case 49:case 50:case 51:k=55296&&Wt<=56319&&k+6=56320&&hi<=57343)return k=Mt,pt+String.fromCharCode(hi)}return pt;case 120:for(;k1114111&&(Ve&&le(j.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive,dt,k-dt),Gt=!0),k>=T?(Ve&&le(j.Unexpected_end_of_text),Gt=!0):_e(k)===125?k++:(Ve&&le(j.Unterminated_Unicode_escape_sequence),Gt=!0),Gt?(H|=2048,x.substring(Tt,k)):(H|=8,ej(pt))}function $e(){if(k+5=0&&UD(dt,t)){Ve+=Re(!0),Tt=k;continue}if(dt=$e(),!(dt>=0&&UD(dt,t)))break;H|=1024,Ve+=x.substring(Tt,k),Ve+=ej(dt),k+=6,Tt=k}else break}return Ve+=x.substring(Tt,k),Ve}function rt(){let Ve=R.length;if(Ve>=2&&Ve<=12){let Tt=R.charCodeAt(0);if(Tt>=97&&Tt<=122){let dt=Loe.get(R);if(dt!==void 0)return M=dt}}return M=80}function _t(Ve){let Tt="",dt=!1,Wt=!1;for(;;){let pt=_e(k);if(pt===95){H|=512,dt?(dt=!1,Wt=!0):le(Wt?j.Multiple_consecutive_numeric_separators_are_not_permitted:j.Numeric_separators_are_not_allowed_here,k,1),k++;continue}if(dt=!0,!i5(pt)||pt-48>=Ve)break;Tt+=x[k],k++,Wt=!1}return _e(k-1)===95&&le(j.Numeric_separators_are_not_allowed_here,k-1,1),Tt}function ft(){return _e(k)===110?(R+="n",H&384&&(R=_U(R)+"n"),k++,10):(R=""+(H&128?parseInt(R.slice(2),2):H&256?parseInt(R.slice(2),8):+R),9)}function mt(){for(I=k,H=0;;){if(A=k,k>=T)return M=1;let Ve=ne(k);if(k===0&&Ve===35&&K3e(x,k)){if(k=h$e(x,k),n)continue;return M=6}switch(Ve){case 10:case 13:if(H|=1,n){k++;continue}else return Ve===13&&k+1=0&&HD(Tt,t))return R=Re(!0)+qe(),M=rt();let dt=$e();return dt>=0&&HD(dt,t)?(k+=6,H|=1024,R=String.fromCharCode(dt)+qe(),M=rt()):(le(j.Invalid_character),k++,M=0);case 35:if(k!==0&&x[k+1]==="!")return le(j.can_only_be_used_at_the_start_of_a_file,k,2),k++,M=0;let Wt=ne(k+1);if(Wt===92){k++;let Mt=Ke();if(Mt>=0&&HD(Mt,t))return R="#"+Re(!0)+qe(),M=81;let hi=$e();if(hi>=0&&HD(hi,t))return k+=6,H|=1024,R="#"+String.fromCharCode(hi)+qe(),M=81;k--}return HD(Wt,t)?(k++,Kt(Wt,t)):(R="#",le(j.Invalid_character,k++,JD(Ve))),M=81;case 65533:return le(j.File_appears_to_be_binary,0,0),k=T,M=8;default:let pt=Kt(Ve,t);if(pt)return M=pt;if(_k(Ve)){k+=JD(Ve);continue}else if(Ev(Ve)){H|=1,k+=JD(Ve);continue}let Gt=JD(Ve);return le(j.Invalid_character,k,Gt),k+=Gt,M=0}}}function ut(){switch(re){case 0:return!0;case 1:return!1}return K!==3&&K!==4?!0:re===3?!1:egt.test(x.slice(I,k))}function ht(){Se.assert(M===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),k=A=I,H=0;let Ve=ne(k),Tt=Kt(Ve,99);return Tt?M=Tt:(k+=JD(Ve),M)}function Kt(Ve,Tt){let dt=Ve;if(HD(dt,Tt)){for(k+=JD(dt);k=T)return M=1;let Tt=_e(k);if(Tt===60)return _e(k+1)===47?(k+=2,M=31):(k++,M=30);if(Tt===123)return k++,M=19;let dt=0;for(;k0)break;tN(Tt)||(dt=k)}k++}return R=x.substring(I,k),dt===-1?13:12}function ai(){if(FS(M)){for(;k=T)return M=1;for(let Tt=_e(k);k=0&&_k(_e(k-1))&&!(k+1=T)return M=1;let Ve=ne(k);switch(k+=JD(Ve),Ve){case 9:case 11:case 12:case 32:for(;k=0&&HD(Tt,t))return R=Re(!0)+qe(),M=rt();let dt=$e();return dt>=0&&HD(dt,t)?(k+=6,H|=1024,R=String.fromCharCode(dt)+qe(),M=rt()):(k++,M=0)}if(HD(Ve,t)){let Tt=Ve;for(;k=0),k=Ve,I=Ve,A=Ve,M=0,R=void 0,H=0}function St(Ve){$+=Ve?1:-1}}function V$(t,n){return t.codePointAt(n)}function JD(t){return t>=65536?2:t===-1?0:1}function O6(t){if(Se.assert(0<=t&&t<=1114111),t<=65535)return String.fromCharCode(t);let n=Math.floor((t-65536)/1024)+55296,a=(t-65536)%1024+56320;return String.fromCharCode(n,a)}var I7=String.fromCodePoint?t=>String.fromCodePoint(t):O6;function ej(t){return I7(t)}var u4=new Map(Object.entries({General_Category:"General_Category",gc:"General_Category",Script:"Script",sc:"Script",Script_Extensions:"Script_Extensions",scx:"Script_Extensions"})),g3=new Set(["ASCII","ASCII_Hex_Digit","AHex","Alphabetic","Alpha","Any","Assigned","Bidi_Control","Bidi_C","Bidi_Mirrored","Bidi_M","Case_Ignorable","CI","Cased","Changes_When_Casefolded","CWCF","Changes_When_Casemapped","CWCM","Changes_When_Lowercased","CWL","Changes_When_NFKC_Casefolded","CWKCF","Changes_When_Titlecased","CWT","Changes_When_Uppercased","CWU","Dash","Default_Ignorable_Code_Point","DI","Deprecated","Dep","Diacritic","Dia","Emoji","Emoji_Component","EComp","Emoji_Modifier","EMod","Emoji_Modifier_Base","EBase","Emoji_Presentation","EPres","Extended_Pictographic","ExtPict","Extender","Ext","Grapheme_Base","Gr_Base","Grapheme_Extend","Gr_Ext","Hex_Digit","Hex","IDS_Binary_Operator","IDSB","IDS_Trinary_Operator","IDST","ID_Continue","IDC","ID_Start","IDS","Ideographic","Ideo","Join_Control","Join_C","Logical_Order_Exception","LOE","Lowercase","Lower","Math","Noncharacter_Code_Point","NChar","Pattern_Syntax","Pat_Syn","Pattern_White_Space","Pat_WS","Quotation_Mark","QMark","Radical","Regional_Indicator","RI","Sentence_Terminal","STerm","Soft_Dotted","SD","Terminal_Punctuation","Term","Unified_Ideograph","UIdeo","Uppercase","Upper","Variation_Selector","VS","White_Space","space","XID_Continue","XIDC","XID_Start","XIDS"]),pk=new Set(["Basic_Emoji","Emoji_Keycap_Sequence","RGI_Emoji_Modifier_Sequence","RGI_Emoji_Flag_Sequence","RGI_Emoji_Tag_Sequence","RGI_Emoji_ZWJ_Sequence","RGI_Emoji"]),jE={General_Category:new Set(["C","Other","Cc","Control","cntrl","Cf","Format","Cn","Unassigned","Co","Private_Use","Cs","Surrogate","L","Letter","LC","Cased_Letter","Ll","Lowercase_Letter","Lm","Modifier_Letter","Lo","Other_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter","M","Mark","Combining_Mark","Mc","Spacing_Mark","Me","Enclosing_Mark","Mn","Nonspacing_Mark","N","Number","Nd","Decimal_Number","digit","Nl","Letter_Number","No","Other_Number","P","Punctuation","punct","Pc","Connector_Punctuation","Pd","Dash_Punctuation","Pe","Close_Punctuation","Pf","Final_Punctuation","Pi","Initial_Punctuation","Po","Other_Punctuation","Ps","Open_Punctuation","S","Symbol","Sc","Currency_Symbol","Sk","Modifier_Symbol","Sm","Math_Symbol","So","Other_Symbol","Z","Separator","Zl","Line_Separator","Zp","Paragraph_Separator","Zs","Space_Separator"]),Script:new Set(["Adlm","Adlam","Aghb","Caucasian_Albanian","Ahom","Arab","Arabic","Armi","Imperial_Aramaic","Armn","Armenian","Avst","Avestan","Bali","Balinese","Bamu","Bamum","Bass","Bassa_Vah","Batk","Batak","Beng","Bengali","Bhks","Bhaiksuki","Bopo","Bopomofo","Brah","Brahmi","Brai","Braille","Bugi","Buginese","Buhd","Buhid","Cakm","Chakma","Cans","Canadian_Aboriginal","Cari","Carian","Cham","Cher","Cherokee","Chrs","Chorasmian","Copt","Coptic","Qaac","Cpmn","Cypro_Minoan","Cprt","Cypriot","Cyrl","Cyrillic","Deva","Devanagari","Diak","Dives_Akuru","Dogr","Dogra","Dsrt","Deseret","Dupl","Duployan","Egyp","Egyptian_Hieroglyphs","Elba","Elbasan","Elym","Elymaic","Ethi","Ethiopic","Geor","Georgian","Glag","Glagolitic","Gong","Gunjala_Gondi","Gonm","Masaram_Gondi","Goth","Gothic","Gran","Grantha","Grek","Greek","Gujr","Gujarati","Guru","Gurmukhi","Hang","Hangul","Hani","Han","Hano","Hanunoo","Hatr","Hatran","Hebr","Hebrew","Hira","Hiragana","Hluw","Anatolian_Hieroglyphs","Hmng","Pahawh_Hmong","Hmnp","Nyiakeng_Puachue_Hmong","Hrkt","Katakana_Or_Hiragana","Hung","Old_Hungarian","Ital","Old_Italic","Java","Javanese","Kali","Kayah_Li","Kana","Katakana","Kawi","Khar","Kharoshthi","Khmr","Khmer","Khoj","Khojki","Kits","Khitan_Small_Script","Knda","Kannada","Kthi","Kaithi","Lana","Tai_Tham","Laoo","Lao","Latn","Latin","Lepc","Lepcha","Limb","Limbu","Lina","Linear_A","Linb","Linear_B","Lisu","Lyci","Lycian","Lydi","Lydian","Mahj","Mahajani","Maka","Makasar","Mand","Mandaic","Mani","Manichaean","Marc","Marchen","Medf","Medefaidrin","Mend","Mende_Kikakui","Merc","Meroitic_Cursive","Mero","Meroitic_Hieroglyphs","Mlym","Malayalam","Modi","Mong","Mongolian","Mroo","Mro","Mtei","Meetei_Mayek","Mult","Multani","Mymr","Myanmar","Nagm","Nag_Mundari","Nand","Nandinagari","Narb","Old_North_Arabian","Nbat","Nabataean","Newa","Nkoo","Nko","Nshu","Nushu","Ogam","Ogham","Olck","Ol_Chiki","Orkh","Old_Turkic","Orya","Oriya","Osge","Osage","Osma","Osmanya","Ougr","Old_Uyghur","Palm","Palmyrene","Pauc","Pau_Cin_Hau","Perm","Old_Permic","Phag","Phags_Pa","Phli","Inscriptional_Pahlavi","Phlp","Psalter_Pahlavi","Phnx","Phoenician","Plrd","Miao","Prti","Inscriptional_Parthian","Rjng","Rejang","Rohg","Hanifi_Rohingya","Runr","Runic","Samr","Samaritan","Sarb","Old_South_Arabian","Saur","Saurashtra","Sgnw","SignWriting","Shaw","Shavian","Shrd","Sharada","Sidd","Siddham","Sind","Khudawadi","Sinh","Sinhala","Sogd","Sogdian","Sogo","Old_Sogdian","Sora","Sora_Sompeng","Soyo","Soyombo","Sund","Sundanese","Sylo","Syloti_Nagri","Syrc","Syriac","Tagb","Tagbanwa","Takr","Takri","Tale","Tai_Le","Talu","New_Tai_Lue","Taml","Tamil","Tang","Tangut","Tavt","Tai_Viet","Telu","Telugu","Tfng","Tifinagh","Tglg","Tagalog","Thaa","Thaana","Thai","Tibt","Tibetan","Tirh","Tirhuta","Tnsa","Tangsa","Toto","Ugar","Ugaritic","Vaii","Vai","Vith","Vithkuqi","Wara","Warang_Citi","Wcho","Wancho","Xpeo","Old_Persian","Xsux","Cuneiform","Yezi","Yezidi","Yiii","Yi","Zanb","Zanabazar_Square","Zinh","Inherited","Qaai","Zyyy","Common","Zzzz","Unknown"]),Script_Extensions:void 0};jE.Script_Extensions=jE.Script;function l0(t){return t_(t)||LC(t)}function qw(t){return tr(t,FG,Q7)}function gpe(t){switch(h_(t)){case 99:return"lib.esnext.full.d.ts";case 10:return"lib.es2023.full.d.ts";case 9:return"lib.es2022.full.d.ts";case 8:return"lib.es2021.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}}function ag(t){return t.start+t.length}function H$(t){return t.length===0}function bke(t,n){return n>=t.start&&n=t.pos&&n<=t.end}function X3e(t,n){return n.start>=t.start&&ag(n)<=ag(t)}function U$(t,n){return n.pos>=t.start&&n.end<=ag(t)}function Ry(t,n){return n.start>=t.pos&&ag(n)<=t.end}function J$(t,n){return rZ(t,n)!==void 0}function rZ(t,n){let a=Y3e(t,n);return a&&a.length===0?void 0:a}function qg(t,n){return q$(t.start,t.length,n.start,n.length)}function oZ(t,n,a){return q$(t.start,t.length,n,a)}function q$(t,n,a,u){let m=t+n,g=a+u;return a<=m&&g>=t}function sZ(t,n){return n<=ag(t)&&n>=t.start}function Ske(t,n){return oZ(n,t.pos,t.end-t.pos)}function Y3e(t,n){let a=Math.max(t.start,n.start),u=Math.min(ag(t),ag(n));return a<=u?cg(a,u):void 0}function ype(t){t=t.filter(u=>u.length>0).sort((u,m)=>u.start!==m.start?u.start-m.start:u.length-m.length);let n=[],a=0;for(;a=2&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95?"_"+t:t}function Ba(t){let n=t;return n.length>=3&&n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)===95?n.substr(1):n}function Un(t){return Ba(t.escapedText)}function F6(t){let n=fH(t.escapedText);return n?ac(n,Gv):void 0}function Bc(t){return t.valueDeclaration&&qb(t.valueDeclaration)?Un(t.valueDeclaration.name):Ba(t.escapedName)}function Kh(t){let n=t.parent.parent;if(n){if(y1(n))return kl(n);switch(n.kind){case 243:if(n.declarationList&&n.declarationList.declarations[0])return kl(n.declarationList.declarations[0]);break;case 244:let a=n.expression;switch(a.kind===226&&a.operatorToken.kind===64&&(a=a.left),a.kind){case 211:return a.name;case 212:let u=a.argumentExpression;if(Ai(u))return u}break;case 217:return kl(n.expression);case 256:{if(y1(n.statement)||An(n.statement))return kl(n.statement);break}}}}function kl(t){let n=Nu(t);return n&&Ai(n)?n:void 0}function ta(t,n){return!!(xf(t)&&Ai(t.name)&&Un(t.name)===Un(n)||Zh(t)&&En(t.declarationList.declarations,a=>ta(a,n)))}function r5(t){return t.name||Kh(t)}function xf(t){return!!t.name}function bpe(t){switch(t.kind){case 80:return t;case 348:case 341:{let{name:a}=t;if(a.kind===166)return a.right;break}case 213:case 226:{let a=t;switch(wh(a)){case 1:case 4:case 5:case 3:return _G(a.left);case 7:case 8:case 9:return a.arguments[1];default:return}}case 346:return r5(t);case 340:return Kh(t);case 277:{let{expression:a}=t;return Ai(a)?a:void 0}case 212:let n=t;if(Yh(n))return n.argumentExpression}return t.name}function Nu(t){if(t!==void 0)return bpe(t)||(yd(t)||Zc(t)||Qh(t)?pH(t):void 0)}function pH(t){if(t.parent){if(Ih(t.parent)||Zd(t.parent))return t.parent.name;if(ms(t.parent)&&t===t.parent.right){if(Ai(t.parent.left))return t.parent.left;if(cf(t.parent.left))return _G(t.parent.left)}else if($c(t.parent)&&Ai(t.parent.name))return t.parent.name}else return}function v3(t){if(uw(t))return Qn(t.modifiers,Cy)}function $g(t){if(kc(t,98303))return Qn(t.modifiers,jd)}function Spe(t,n){if(t.name)if(Ai(t.name)){let a=t.name.escapedText;return kpe(t.parent,n).filter(u=>hw(u)&&Ai(u.name)&&u.name.escapedText===a)}else{let a=t.parent.parameters.indexOf(t);Se.assert(a>-1,"Parameters should always be in their parents' parameter list");let u=kpe(t.parent,n).filter(hw);if(atC(u)&&u.typeParameters.some(m=>m.name.escapedText===a))}function N7(t){return m8(t,!1)}function Z3e(t){return m8(t,!0)}function mH(t){return!!eb(t,hw)}function kke(t){return eb(t,lM)}function eOe(t){return R6(t,Tk)}function xpe(t){return eb(t,kU)}function tOe(t){return eb(t,Uwe)}function wke(t){return eb(t,Uwe,!0)}function iOe(t){return eb(t,J2)}function Tke(t){return eb(t,J2,!0)}function Eke(t){return eb(t,uM)}function nOe(t){return eb(t,uM,!0)}function rOe(t){return eb(t,iP)}function oOe(t){return eb(t,iP,!0)}function Dke(t){return eb(t,dM,!0)}function Ike(t){return eb(t,ihe)}function Nke(t){return eb(t,ihe,!0)}function Ake(t){return eb(t,oK)}function zoe(t){return eb(t,Sae)}function Pke(t){return eb(t,yee)}function Lke(t){return eb(t,tC)}function Cpe(t){return eb(t,sK)}function b3(t){let n=eb(t,dW);if(n&&n.typeExpression&&n.typeExpression.type)return n}function M6(t){let n=eb(t,dW);return!n&&Fl(t)&&(n=jt(mu(t),a=>!!a.typeExpression)),n&&n.typeExpression&&n.typeExpression.type}function dZ(t){let n=Pke(t);if(n&&n.typeExpression)return n.typeExpression.type;let a=b3(t);if(a&&a.typeExpression){let u=a.typeExpression.type;if(Im(u)){let m=jt(u.members,xg);return m&&m.type}if(xp(u)||CU(u))return u.type}}function kpe(t,n){var a;if(!gG(t))return F;let u=(a=t.jsDoc)==null?void 0:a.jsDocCache;if(u===void 0||n){let m=S5(t,n);Se.assert(m.length<2||m[0]!==m[1]),u=za(m,g=>eD(g)?g.tags:g),n||(t.jsDoc??(t.jsDoc=[]),t.jsDoc.jsDocCache=u)}return u}function S3(t){return kpe(t,!1)}function eb(t,n,a){return jt(kpe(t,a),n)}function R6(t,n){return S3(t).filter(n)}function Voe(t,n){return S3(t).filter(a=>a.kind===n)}function ij(t){return typeof t=="string"?t:t?.map(n=>n.kind===321?n.text:o5(n)).join("")}function o5(t){let n=t.kind===324?"link":t.kind===325?"linkcode":"linkplain",a=t.name?$b(t.name):"",u=t.name&&(t.text===""||t.text.startsWith("://"))?"":" ";return`{@${n} ${a}${u}${t.text}}`}function h8(t){if(U2(t)){if(rK(t.parent)){let n=Ej(t.parent);if(n&&Z(n.tags))return za(n.tags,a=>tC(a)?a.typeParameters:void 0)}return F}if(ux(t))return Se.assert(t.parent.kind===320),za(t.parent.tags,n=>tC(n)?n.typeParameters:void 0);if(t.typeParameters||mGe(t)&&t.typeParameters)return t.typeParameters;if(Ys(t)){let n=j3(t);if(n.length)return n;let a=M6(t);if(a&&xp(a)&&a.typeParameters)return a.typeParameters}return F}function Ux(t){return t.constraint?t.constraint:tC(t.parent)&&t===t.parent.typeParameters[0]?t.parent.constraint:void 0}function qD(t){return t.kind===80||t.kind===81}function Hoe(t){return t.kind===178||t.kind===177}function hH(t){return ba(t)&&!!(t.flags&64)}function sOe(t){return T_(t)&&!!(t.flags&64)}function E2(t){return Od(t)&&!!(t.flags&64)}function By(t){let n=t.kind;return!!(t.flags&64)&&(n===211||n===212||n===213||n===235)}function D2(t){return By(t)&&!P4(t)&&!!t.questionDotToken}function gH(t){return D2(t.parent)&&t.parent.expression===t}function nj(t){return!By(t.parent)||D2(t.parent)||t!==t.parent.expression}function Uoe(t){return t.kind===226&&t.operatorToken.kind===61}function Jx(t){return M_(t)&&Ai(t.typeName)&&t.typeName.escapedText==="const"&&!t.typeArguments}function dh(t){return ug(t,8)}function rj(t){return P4(t)&&!!(t.flags&64)}function oj(t){return t.kind===252||t.kind===251}function yH(t){return t.kind===280||t.kind===279}function vH(t){return t.kind===348||t.kind===341}function MT(t){return t>=166}function RT(t){return t>=0&&t<=165}function A7(t){return RT(t.kind)}function f4(t){return bf(t,"pos")&&bf(t,"end")}function bH(t){return 9<=t&&t<=15}function B6(t){return bH(t.kind)}function Oke(t){switch(t.kind){case 210:case 209:case 14:case 218:case 231:return!0}return!1}function OA(t){return 15<=t&&t<=18}function wpe(t){return OA(t.kind)}function P7(t){let n=t.kind;return n===17||n===18}function I2(t){return eg(t)||X0(t)}function L7(t){switch(t.kind){case 276:return t.isTypeOnly||t.parent.parent.isTypeOnly;case 274:return t.parent.isTypeOnly;case 273:case 271:return t.isTypeOnly}return!1}function O7(t){switch(t.kind){case 281:return t.isTypeOnly||t.parent.parent.isTypeOnly;case 278:return t.isTypeOnly&&!!t.moduleSpecifier&&!t.exportClause;case 280:return t.parent.isTypeOnly}return!1}function j6(t){return L7(t)||O7(t)}function W6(t){return t.kind===11||OA(t.kind)}function Fke(t){return Kf(t)||Ai(t)}function Tm(t){var n;return Ai(t)&&((n=t.emitNode)==null?void 0:n.autoGenerate)!==void 0}function FA(t){var n;return wl(t)&&((n=t.emitNode)==null?void 0:n.autoGenerate)!==void 0}function s5(t){let n=t.emitNode.autoGenerate.flags;return!!(n&32)&&!!(n&16)&&!!(n&8)}function qb(t){return(vu(t)||p4(t))&&wl(t.name)}function iN(t){return ba(t)&&wl(t.name)}function z6(t){switch(t){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function $$(t){return!!(Vy(t)&31)}function Om(t){return $$(t)||t===126||t===164||t===129}function jd(t){return z6(t.kind)}function tb(t){let n=t.kind;return n===166||n===80}function C_(t){let n=t.kind;return n===80||n===81||n===11||n===9||n===167}function _4(t){let n=t.kind;return n===80||n===206||n===207}function iu(t){return!!t&&Vh(t.kind)}function g8(t){return!!t&&(Vh(t.kind)||Yf(t))}function Rp(t){return t&&qx(t.kind)}function sf(t){return t.kind===112||t.kind===97}function qx(t){switch(t){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function Vh(t){switch(t){case 173:case 179:case 323:case 180:case 181:case 184:case 317:case 185:return!0;default:return qx(t)}}function F7(t){return ul(t)||vN(t)||qu(t)&&iu(t.parent)}function rl(t){let n=t.kind;return n===176||n===172||n===174||n===177||n===178||n===181||n===175||n===240}function bc(t){return t&&(t.kind===263||t.kind===231)}function O_(t){return t&&(t.kind===177||t.kind===178)}function g1(t){return vu(t)&&dN(t)}function aOe(t){return Ys(t)&&B5(t)?(!gk(t)||!Y6(t.expression))&&!lN(t,!0):t.parent&&bc(t.parent)&&vu(t)&&!dN(t)}function p4(t){switch(t.kind){case 174:case 177:case 178:return!0;default:return!1}}function Fm(t){return jd(t)||Cy(t)}function Xh(t){let n=t.kind;return n===180||n===179||n===171||n===173||n===181||n===177||n===178}function Pc(t){return Xh(t)||rl(t)}function FC(t){let n=t.kind;return n===303||n===304||n===305||n===174||n===177||n===178}function Qa(t){return zse(t.kind)}function Mke(t){switch(t.kind){case 184:case 185:return!0}return!1}function Uu(t){if(t){let n=t.kind;return n===207||n===206}return!1}function fZ(t){let n=t.kind;return n===209||n===210}function Em(t){let n=t.kind;return n===208||n===232}function V6(t){switch(t.kind){case 260:case 169:case 208:return!0}return!1}function Joe(t){return $c(t)||Fl(t)||_Z(t)||a5(t)}function $D(t){return Yc(t)||gd(t)}function Yc(t){switch(t.kind){case 206:case 210:return!0}return!1}function _Z(t){switch(t.kind){case 208:case 303:case 304:case 305:return!0}return!1}function gd(t){switch(t.kind){case 207:case 209:return!0}return!1}function a5(t){switch(t.kind){case 208:case 232:case 230:case 209:case 210:case 80:case 211:case 212:return!0}return Kg(t,!0)}function qoe(t){let n=t.kind;return n===211||n===166||n===205}function sj(t){let n=t.kind;return n===211||n===166}function Tpe(t){return H6(t)||H8(t)}function H6(t){switch(t.kind){case 286:case 285:case 213:case 214:case 215:case 170:return!0;default:return!1}}function WE(t){return t.kind===213||t.kind===214}function y8(t){let n=t.kind;return n===228||n===15}function MS(t){return $oe(dh(t).kind)}function $oe(t){switch(t){case 211:case 212:case 214:case 213:case 284:case 285:case 288:case 215:case 209:case 217:case 210:case 231:case 218:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 228:case 97:case 106:case 110:case 112:case 108:case 235:case 233:case 236:case 102:case 282:return!0;default:return!1}}function Epe(t){return Goe(dh(t).kind)}function Goe(t){switch(t){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return $oe(t)}}function Dpe(t){switch(t.kind){case 225:return!0;case 224:return t.operator===46||t.operator===47;default:return!1}}function M7(t){switch(t.kind){case 106:case 112:case 97:case 224:return!0;default:return B6(t)}}function An(t){return G$(dh(t).kind)}function G$(t){switch(t){case 227:case 229:case 219:case 226:case 230:case 234:case 232:case 355:case 354:case 238:return!0;default:return Goe(t)}}function gy(t){let n=t.kind;return n===216||n===234}function v8(t,n){switch(t.kind){case 248:case 249:case 250:case 246:case 247:return!0;case 256:return n&&v8(t.statement,n)}return!1}function cOe(t){return Bm(t)||Qg(t)}function lOe(t){return En(t,cOe)}function Koe(t){return!wH(t)&&!Bm(t)&&!kc(t,32)&&!nb(t)}function pZ(t){return wH(t)||Bm(t)||kc(t,32)}function Rn(t){return t.kind===249||t.kind===250}function Rke(t){return qu(t)||An(t)}function x3(t){return qu(t)}function BT(t){return Xv(t)||An(t)}function C3(t){let n=t.kind;return n===268||n===267||n===80}function uOe(t){let n=t.kind;return n===268||n===267}function dOe(t){let n=t.kind;return n===80||n===267}function mZ(t){let n=t.kind;return n===275||n===274}function aj(t){return t.kind===267||t.kind===266}function $x(t){switch(t.kind){case 219:case 226:case 208:case 213:case 179:case 263:case 231:case 175:case 176:case 185:case 180:case 212:case 266:case 306:case 277:case 278:case 281:case 262:case 218:case 184:case 177:case 80:case 273:case 271:case 276:case 181:case 264:case 338:case 340:case 317:case 341:case 348:case 323:case 346:case 322:case 291:case 292:case 293:case 200:case 174:case 173:case 267:case 202:case 280:case 270:case 274:case 214:case 15:case 9:case 210:case 169:case 211:case 303:case 172:case 171:case 178:case 304:case 307:case 305:case 11:case 265:case 187:case 168:case 260:return!0;default:return!1}}function zE(t){switch(t.kind){case 219:case 241:case 179:case 269:case 299:case 175:case 194:case 176:case 185:case 180:case 248:case 249:case 250:case 262:case 218:case 184:case 177:case 181:case 338:case 340:case 317:case 323:case 346:case 200:case 174:case 173:case 267:case 178:case 307:case 265:return!0;default:return!1}}function fOe(t){return t===219||t===208||t===263||t===231||t===175||t===176||t===266||t===306||t===281||t===262||t===218||t===177||t===273||t===271||t===276||t===264||t===291||t===174||t===173||t===267||t===270||t===274||t===280||t===169||t===303||t===172||t===171||t===178||t===304||t===265||t===168||t===260||t===346||t===338||t===348||t===202}function $w(t){return t===262||t===282||t===263||t===264||t===265||t===266||t===267||t===272||t===271||t===278||t===277||t===270}function Bke(t){return t===252||t===251||t===259||t===246||t===244||t===242||t===249||t===250||t===248||t===245||t===256||t===253||t===255||t===257||t===258||t===243||t===247||t===254||t===353}function y1(t){return t.kind===168?t.parent&&t.parent.kind!==345||Ys(t):fOe(t.kind)}function _Oe(t){return $w(t.kind)}function K$(t){return Bke(t.kind)}function ll(t){let n=t.kind;return Bke(n)||$w(n)||nN(t)}function nN(t){return t.kind!==241||t.parent!==void 0&&(t.parent.kind===258||t.parent.kind===299)?!1:!z7(t)}function rN(t){let n=t.kind;return Bke(n)||$w(n)||n===241}function g$e(t){let n=t.kind;return n===283||n===166||n===80}function X$(t){let n=t.kind;return n===110||n===80||n===211||n===295}function hZ(t){let n=t.kind;return n===284||n===294||n===285||n===12||n===288}function Dv(t){let n=t.kind;return n===291||n===293}function jke(t){let n=t.kind;return n===11||n===294}function nv(t){let n=t.kind;return n===286||n===285}function fl(t){let n=t.kind;return n===296||n===297}function gZ(t){return t.kind>=309&&t.kind<=351}function Xoe(t){return t.kind===320||t.kind===319||t.kind===321||ib(t)||SH(t)||G5(t)||U2(t)}function SH(t){return t.kind>=327&&t.kind<=351}function Gw(t){return t.kind===178}function oN(t){return t.kind===177}function Gx(t){if(!gG(t))return!1;let{jsDoc:n}=t;return!!n&&n.length>0}function Yoe(t){return!!t.type}function yg(t){return!!t.initializer}function b8(t){switch(t.kind){case 260:case 169:case 208:case 172:case 303:case 306:return!0;default:return!1}}function cj(t){return t.kind===291||t.kind===293||FC(t)}function Y$(t){return t.kind===183||t.kind===233}var Q$=1073741823;function GD(t){let n=Q$;for(let a of t){if(!a.length)continue;let u=0;for(;u0?a.parent.parameters[m-1]:void 0,v=n.text,x=g?Pl(L6(v,fd(v,g.end+1,!1,!0)),PA(v,t.pos)):L6(v,fd(v,t.pos,!1,!0));return En(x)&&lj(Bu(x),n)}let u=a&&gOe(a,n);return!!ee(u,m=>lj(m,n))}var vZ=[],R7="tslib",Z$=160,bp=1e6;function Kp(t,n){let a=t.declarations;if(a){for(let u of a)if(u.kind===n)return u}}function Npe(t,n){return Qn(t.declarations||F,a=>a.kind===n)}function Au(t){let n=new Map;if(t)for(let a of t)n.set(a.escapedName,a);return n}function m4(t){return(t.flags&33554432)!==0}function xH(t){return!!(t.flags&1536)&&t.escapedName.charCodeAt(0)===34}var bZ=c5();function c5(){var t="";let n=a=>t+=a;return{getText:()=>t,write:n,rawWrite:n,writeKeyword:n,writeOperator:n,writePunctuation:n,writeSpace:n,writeStringLiteral:n,writeLiteral:n,writeParameter:n,writeProperty:n,writeSymbol:(a,u)=>n(a),writeTrailingSemicolon:n,writeComment:n,getTextPos:()=>t.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!t.length&&tN(t.charCodeAt(t.length-1)),writeLine:()=>t+=" ",increaseIndent:Za,decreaseIndent:Za,clear:()=>t=""}}function uj(t,n){return t.configFilePath!==n.configFilePath||pOe(t,n)}function pOe(t,n){return CH(t,n,oTe)}function fh(t,n){return CH(t,n,yhe)}function CH(t,n,a){return t!==n&&a.some(u=>!eee(lU(t,u),lU(n,u)))}function af(t,n){for(;;){let a=n(t);if(a==="quit")return;if(a!==void 0)return a;if(ul(t))return;t=t.parent}}function Km(t,n){let a=t.entries();for(let[u,m]of a){let g=n(m,u);if(g)return g}}function N2(t,n){let a=t.keys();for(let u of a){let m=n(u);if(m)return m}}function eG(t,n){t.forEach((a,u)=>{n.set(u,a)})}function SZ(t){let n=bZ.getText();try{return t(bZ),bZ.getText()}finally{bZ.clear(),bZ.writeKeyword(n)}}function kH(t){return t.end-t.pos}function Ape(t,n){return t.path===n.path&&!t.prepend==!n.prepend&&!t.circular==!n.circular}function Wke(t,n){return t===n||t.resolvedModule===n.resolvedModule||!!t.resolvedModule&&!!n.resolvedModule&&t.resolvedModule.isExternalLibraryImport===n.resolvedModule.isExternalLibraryImport&&t.resolvedModule.extension===n.resolvedModule.extension&&t.resolvedModule.resolvedFileName===n.resolvedModule.resolvedFileName&&t.resolvedModule.originalPath===n.resolvedModule.originalPath&&zke(t.resolvedModule.packageId,n.resolvedModule.packageId)&&t.alternateResult===n.alternateResult}function U6(t){return t.resolvedModule}function Qoe(t){return t.resolvedTypeReferenceDirective}function yy(t,n,a,u,m){var g;let v=(g=n.getResolvedModule(t,a,u))==null?void 0:g.alternateResult,x=v&&(S1(n.getCompilerOptions())===2?[j.There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler,[v]]:[j.There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings,[v,v.includes(nP+"@types/")?`@types/${Jee(m)}`:m]]),k=x?Zl(void 0,x[0],...x[1]):n.typesPackageExists(m)?Zl(void 0,j.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,m,Jee(m)):n.packageBundlesTypes(m)?Zl(void 0,j.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,m,a):Zl(void 0,j.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,a,Jee(m));return k&&(k.repopulateInfo=()=>({moduleReference:a,mode:u,packageName:m===a?void 0:m})),k}function MA(t){let n=Pg(t.fileName),a=t.packageJsonScope,u=n===".ts"?".mts":n===".js"?".mjs":void 0,m=a&&!a.contents.packageJsonContent.type?u?Zl(void 0,j.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,u,Ps(a.packageDirectory,"package.json")):Zl(void 0,j.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,Ps(a.packageDirectory,"package.json")):u?Zl(void 0,j.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,u):Zl(void 0,j.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module);return m.repopulateInfo=()=>!0,m}function zke(t,n){return t===n||!!t&&!!n&&t.name===n.name&&t.subModuleName===n.subModuleName&&t.version===n.version&&t.peerDependencies===n.peerDependencies}function dj({name:t,subModuleName:n}){return n?`${t}/${n}`:t}function h4(t){return`${dj(t)}@${t.version}${t.peerDependencies??""}`}function Ppe(t,n){return t===n||t.resolvedTypeReferenceDirective===n.resolvedTypeReferenceDirective||!!t.resolvedTypeReferenceDirective&&!!n.resolvedTypeReferenceDirective&&t.resolvedTypeReferenceDirective.resolvedFileName===n.resolvedTypeReferenceDirective.resolvedFileName&&!!t.resolvedTypeReferenceDirective.primary==!!n.resolvedTypeReferenceDirective.primary&&t.resolvedTypeReferenceDirective.originalPath===n.resolvedTypeReferenceDirective.originalPath}function Lpe(t,n,a,u){Se.assert(t.length===n.length);for(let m=0;m=0),P6(n)[t]}function ngt(t){let n=Vo(t),a=Df(n,t.pos);return`${n.fileName}(${a.line+1},${a.character+1})`}function Jo(t,n){Se.assert(t>=0);let a=P6(n),u=t,m=n.text;if(u+1===a.length)return m.length-1;{let g=a[u],v=a[u+1]-1;for(Se.assert(Ev(m.charCodeAt(v)));g<=v&&Ev(m.charCodeAt(v));)v--;return v}}function iG(t,n,a){return!(a&&a(n))&&!t.identifiers.has(n)}function Mm(t){return t===void 0?!0:t.pos===t.end&&t.pos>=0&&t.kind!==1}function jT(t){return!Mm(t)}function k3(t,n){return Yp(t)?n===t.expression:Yf(t)?n===t.modifiers:hx(t)?n===t.initializer:vu(t)?n===t.questionToken&&g1(t):Ih(t)?n===t.modifiers||n===t.questionToken||n===t.exclamationToken||Zoe(t.modifiers,n,Fm):Q0(t)?n===t.equalsToken||n===t.modifiers||n===t.questionToken||n===t.exclamationToken||Zoe(t.modifiers,n,Fm):Sg(t)?n===t.exclamationToken:yl(t)?n===t.typeParameters||n===t.type||Zoe(t.typeParameters,n,Yp):n_(t)?n===t.typeParameters||Zoe(t.typeParameters,n,Yp):zc(t)?n===t.typeParameters||n===t.type||Zoe(t.typeParameters,n,Yp):wy(t)?n===t.modifiers||Zoe(t.modifiers,n,Fm):!1}function Zoe(t,n,a){return!t||ua(n)||!a(n)?!1:dr(t,n)}function ese(t,n,a){if(n===void 0||n.length===0)return t;let u=0;for(;u[`${Df(t,v.range.end).line}`,v])),u=new Map;return{getUnusedExpectations:m,markUsed:g};function m(){return tc(a.entries()).filter(([v,x])=>x.type===0&&!u.get(v)).map(([v,x])=>x)}function g(v){return a.has(`${v}`)?(u.set(`${v}`,!0),!0):!1}}function J6(t,n,a){if(Mm(t))return t.pos;if(gZ(t)||t.kind===12)return fd((n??Vo(t)).text,t.pos,!1,!0);if(a&&Gx(t))return J6(t.jsDoc[0],n);if(t.kind===352){n??(n=Vo(t));let u=Ed($we(t,n));if(u)return J6(u,n,a)}return fd((n??Vo(t)).text,t.pos,!1,!1,cb(t))}function Hke(t,n){let a=!Mm(t)&&tD(t)?mi(t.modifiers,Cy):void 0;return a?fd((n||Vo(t)).text,a.end):J6(t,n)}function l5(t,n){let a=!Mm(t)&&tD(t)&&t.modifiers?Bu(t.modifiers):void 0;return a?fd((n||Vo(t)).text,a.end):J6(t,n)}function S8(t,n,a=!1){return nse(t.text,n,a)}function Uke(t){return!!go(t,lv)}function ise(t){return!!(Qg(t)&&t.exportClause&&vm(t.exportClause)&&MC(t.exportClause.name))}function Kw(t){return t.kind===11?t.text:Ba(t.escapedText)}function x8(t){return t.kind===11?kh(t.text):t.escapedText}function MC(t){return(t.kind===11?t.text:t.escapedText)==="default"}function nse(t,n,a=!1){if(Mm(n))return"";let u=t.substring(a?n.pos:fd(t,n.pos),n.end);return Uke(n)&&(u=u.split(/\r\n|\n|\r/).map(m=>m.replace(/^\s*\*/,"").trimStart()).join(` +`)),u}function _h(t,n=!1){return S8(Vo(t),t,n)}function rse(t){return t.pos}function Rm(t,n){return Q_(t,n,rse,m_)}function N_(t){let n=t.emitNode;return n&&n.flags||0}function RC(t){let n=t.emitNode;return n&&n.internalFlags||0}var u_=H0(()=>new Map(Object.entries({Array:new Map(Object.entries({es2015:["find","findIndex","fill","copyWithin","entries","keys","values"],es2016:["includes"],es2019:["flat","flatMap"],es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Iterator:new Map(Object.entries({es2015:F})),AsyncIterator:new Map(Object.entries({es2015:F})),Atomics:new Map(Object.entries({es2017:F})),SharedArrayBuffer:new Map(Object.entries({es2017:F})),AsyncIterable:new Map(Object.entries({es2018:F})),AsyncIterableIterator:new Map(Object.entries({es2018:F})),AsyncGenerator:new Map(Object.entries({es2018:F})),AsyncGeneratorFunction:new Map(Object.entries({es2018:F})),RegExp:new Map(Object.entries({es2015:["flags","sticky","unicode"],es2018:["dotAll"]})),Reflect:new Map(Object.entries({es2015:["apply","construct","defineProperty","deleteProperty","get","getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"]})),ArrayConstructor:new Map(Object.entries({es2015:["from","of"],esnext:["fromAsync"]})),ObjectConstructor:new Map(Object.entries({es2015:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],es2017:["values","entries","getOwnPropertyDescriptors"],es2019:["fromEntries"],es2022:["hasOwn"]})),NumberConstructor:new Map(Object.entries({es2015:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"]})),Math:new Map(Object.entries({es2015:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"]})),Map:new Map(Object.entries({es2015:["entries","keys","values"]})),Set:new Map(Object.entries({es2015:["entries","keys","values"]})),PromiseConstructor:new Map(Object.entries({es2015:["all","race","reject","resolve"],es2020:["allSettled"],es2021:["any"]})),Symbol:new Map(Object.entries({es2015:["for","keyFor"],es2019:["description"]})),WeakMap:new Map(Object.entries({es2015:["entries","keys","values"]})),WeakSet:new Map(Object.entries({es2015:["entries","keys","values"]})),String:new Map(Object.entries({es2015:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],es2017:["padStart","padEnd"],es2019:["trimStart","trimEnd","trimLeft","trimRight"],es2020:["matchAll"],es2021:["replaceAll"],es2022:["at"],esnext:["isWellFormed","toWellFormed"]})),StringConstructor:new Map(Object.entries({es2015:["fromCodePoint","raw"]})),DateTimeFormat:new Map(Object.entries({es2017:["formatToParts"]})),Promise:new Map(Object.entries({es2015:F,es2018:["finally"]})),RegExpMatchArray:new Map(Object.entries({es2018:["groups"]})),RegExpExecArray:new Map(Object.entries({es2018:["groups"]})),Intl:new Map(Object.entries({es2018:["PluralRules"]})),NumberFormat:new Map(Object.entries({es2018:["formatToParts"]})),SymbolConstructor:new Map(Object.entries({es2020:["matchAll"]})),DataView:new Map(Object.entries({es2020:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"]})),BigInt:new Map(Object.entries({es2020:F})),RelativeTimeFormat:new Map(Object.entries({es2020:["format","formatToParts","resolvedOptions"]})),Int8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint8ClampedArray:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Int16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Int32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Float32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Float64Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),BigInt64Array:new Map(Object.entries({es2020:F,es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),BigUint64Array:new Map(Object.entries({es2020:F,es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Error:new Map(Object.entries({es2022:["cause"]}))}))),A2=(t=>(t[t.None=0]="None",t[t.NeverAsciiEscape=1]="NeverAsciiEscape",t[t.JsxAttributeEscape=2]="JsxAttributeEscape",t[t.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",t[t.AllowNumericSeparator=8]="AllowNumericSeparator",t))(A2||{});function Bpe(t,n,a){if(n&&y$e(t,a))return S8(n,t);switch(t.kind){case 11:{let u=a&2?rwe:a&1||N_(t)&16777216?w4:Ese;return t.singleQuote?"'"+u(t.text,39)+"'":'"'+u(t.text,34)+'"'}case 15:case 16:case 17:case 18:{let u=a&1||N_(t)&16777216?w4:Ese,m=t.rawText??wse(u(t.text,96));switch(t.kind){case 15:return"`"+m+"`";case 16:return"`"+m+"${";case 17:return"}"+m+"${";case 18:return"}"+m+"`"}break}case 9:case 10:return t.text;case 14:return a&4&&t.isUnterminated?t.text+(t.text.charCodeAt(t.text.length-1)===92?" /":"/"):t.text}return Se.fail(`Literal kind '${t.kind}' not accounted for.`)}function y$e(t,n){if(um(t)||!t.parent||n&4&&t.isUnterminated)return!1;if(mx(t)){if(t.numericLiteralFlags&26656)return!1;if(t.numericLiteralFlags&512)return!!(n&8)}return!ZG(t)}function Jke(t){return Yu(t)?`"${w4(t)}"`:""+t}function v$e(t){return sg(t).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function jpe(t){return(d4(t)&7)!==0||Wpe(t)}function Wpe(t){let n=UT(t);return n.kind===260&&n.parent.kind===299}function nb(t){return Dh(t)&&(t.name.kind===11||y4(t))}function xZ(t){return Dh(t)&&t.name.kind===11}function rb(t){return Dh(t)&&Kf(t.name)}function qke(t){return Dh(t)||Ai(t)}function nG(t){return b$e(t.valueDeclaration)}function b$e(t){return!!t&&t.kind===267&&!t.body}function CZ(t){return t.kind===307||t.kind===267||g8(t)}function y4(t){return!!(t.flags&2048)}function j7(t){return nb(t)&&VE(t)}function VE(t){switch(t.parent.kind){case 307:return Mg(t.parent);case 268:return nb(t.parent.parent)&&ul(t.parent.parent.parent)&&!Mg(t.parent.parent.parent)}return!1}function C8(t){var n;return(n=t.declarations)==null?void 0:n.find(a=>!j7(a)&&!(Dh(a)&&y4(a)))}function mOe(t){return t===1||t===100||t===199}function u5(t,n){return Mg(t)||mOe(b1(n))&&!!t.commonJsModuleIndicator}function hOe(t,n){switch(t.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return t.isDeclarationFile?!1:!!(d0(n,"alwaysStrict")||pGe(t.statements)||Mg(t)||$E(n))}function d5(t){return!!(t.flags&33554432)||kc(t,128)}function ose(t,n){switch(t.kind){case 307:case 269:case 299:case 267:case 248:case 249:case 250:case 176:case 174:case 177:case 178:case 262:case 218:case 219:case 172:case 175:return!0;case 241:return!g8(n)}return!1}function sse(t){switch(Se.type(t),t.kind){case 338:case 346:case 323:return!0;default:return ase(t)}}function ase(t){switch(Se.type(t),t.kind){case 179:case 180:case 173:case 181:case 184:case 185:case 317:case 263:case 231:case 264:case 265:case 345:case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function f5(t){switch(t.kind){case 272:case 271:return!0;default:return!1}}function zpe(t){return f5(t)||E3(t)}function _j(t){return f5(t)||lb(t)}function cse(t){switch(t.kind){case 272:case 271:case 243:case 263:case 262:case 267:case 265:case 264:case 266:return!0;default:return!1}}function $ke(t){return wH(t)||Dh(t)||Ck(t)||Kx(t)}function wH(t){return f5(t)||Qg(t)}function lse(t){return go(t.parent,n=>!!(oP(n)&1))}function Xw(t){return go(t.parent,n=>ose(n,n.parent))}function use(t,n){let a=Xw(t);for(;a;)n(a),a=Xw(a)}function Gf(t){return!t||kH(t)===0?"(Missing)":_h(t)}function Gke(t){return t.declaration?Gf(t.declaration.parameters[0].name):void 0}function Ep(t){return t.kind===167&&!Xb(t.expression)}function rG(t){var n;switch(t.kind){case 80:case 81:return(n=t.emitNode)!=null&&n.autoGenerate?void 0:t.escapedText;case 11:case 9:case 10:case 15:return kh(t.text);case 167:return Xb(t.expression)?kh(t.expression.text):void 0;case 295:return R5(t);default:return Se.assertNever(t)}}function k8(t){return Se.checkDefined(rG(t))}function $b(t){switch(t.kind){case 110:return"this";case 81:case 80:return kH(t)===0?Un(t):_h(t);case 166:return $b(t.left)+"."+$b(t.right);case 211:return Ai(t.name)||wl(t.name)?$b(t.expression)+"."+$b(t.name):Se.assertNever(t.name);case 311:return $b(t.left)+"#"+$b(t.right);case 295:return $b(t.namespace)+":"+$b(t.name);default:return Se.assertNever(t)}}function ws(t,n,...a){let u=Vo(t);return ss(u,t,n,...a)}function ob(t,n,a,...u){let m=fd(t.text,n.pos);return k_(t,m,n.end-m,a,...u)}function ss(t,n,a,...u){let m=_5(t,n);return k_(t,m.start,m.length,a,...u)}function WT(t,n,a,u){let m=_5(t,n);return TH(t,m.start,m.length,a,u)}function BC(t,n,a,u){let m=fd(t.text,n.pos);return TH(t,m,n.end-m,a,u)}function BA(t,n,a){Se.assertGreaterThanOrEqual(n,0),Se.assertGreaterThanOrEqual(a,0),Se.assertLessThanOrEqual(n,t.length),Se.assertLessThanOrEqual(n+a,t.length)}function TH(t,n,a,u,m){return BA(t.text,n,a),{file:t,start:n,length:a,code:u.code,category:u.category,messageText:u.next?u:u.messageText,relatedInformation:m,canonicalHead:u.canonicalHead}}function Vpe(t,n,a){return{file:t,start:0,length:0,code:n.code,category:n.category,messageText:n.next?n:n.messageText,relatedInformation:a}}function dse(t){return typeof t.messageText=="string"?{code:t.code,category:t.category,messageText:t.messageText,next:t.next}:t.messageText}function Hpe(t,n,a){return{file:t,start:n.pos,length:n.end-n.pos,code:a.code,category:a.category,messageText:a.message}}function Kke(t,...n){return{code:t.code,messageText:sU(t,...n)}}function XD(t,n){let a=LA(t.languageVersion,!0,t.languageVariant,t.text,void 0,n);a.scan();let u=a.getTokenStart();return cg(u,a.getTokenEnd())}function Xke(t,n){let a=LA(t.languageVersion,!0,t.languageVariant,t.text,void 0,n);return a.scan(),a.getToken()}function v4(t,n){let a=fd(t.text,n.pos);if(n.body&&n.body.kind===241){let{line:u}=Df(t,n.body.pos),{line:m}=Df(t,n.body.end);if(u0?n.statements[0].pos:n.end;return cg(g,v)}case 253:case 229:{let g=fd(t.text,n.pos);return XD(t,g)}case 238:{let g=fd(t.text,n.expression.end);return XD(t,g)}case 350:{let g=fd(t.text,n.tagName.pos);return XD(t,g)}case 176:{let g=n,v=fd(t.text,g.pos),x=LA(t.languageVersion,!0,t.languageVariant,t.text,void 0,v),k=x.scan();for(;k!==137&&k!==1;)k=x.scan();let T=x.getTokenEnd();return cg(v,T)}}if(a===void 0)return XD(t,n.pos);Se.assert(!eD(a));let u=Mm(a),m=u||nW(n)?a.pos:fd(t.text,a.pos);return u?(Se.assert(m===a.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),Se.assert(m===a.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(Se.assert(m>=a.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),Se.assert(m<=a.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),cg(m,a.end)}function w8(t){return t.kind===307&&!Jv(t)}function Jv(t){return(t.externalModuleIndicator||t.commonJsModuleIndicator)!==void 0}function qv(t){return t.scriptKind===6}function jy(t){return!!(iv(t)&4096)}function mk(t){return!!(iv(t)&8&&!OC(t,t.parent))}function q6(t){return(d4(t)&7)===6}function pj(t){return(d4(t)&7)===4}function W7(t){return(d4(t)&7)===2}function kZ(t){let n=d4(t)&7;return n===2||n===4||n===6}function p5(t){return(d4(t)&7)===1}function m5(t){return t.kind===213&&t.expression.kind===108}function Kx(t){return t.kind===213&&t.expression.kind===102}function b4(t){return cW(t)&&t.keywordToken===102&&t.name.escapedText==="meta"}function Wy(t){return Ck(t)&&xk(t.argument)&&Kf(t.argument.literal)}function cw(t){return t.kind===244&&t.expression.kind===11}function sN(t){return!!(N_(t)&2097152)}function P2(t){return sN(t)&&fp(t)}function Upe(t){return Ai(t.name)&&!t.initializer}function oG(t){return sN(t)&&Zh(t)&&Yt(t.declarationList.declarations,Upe)}function gOe(t,n){return t.kind!==12?PA(n.text,t.pos):void 0}function wZ(t,n){let a=t.kind===169||t.kind===168||t.kind===218||t.kind===219||t.kind===217||t.kind===260||t.kind===281?Pl(L6(n,t.pos),PA(n,t.pos)):PA(n,t.pos);return Qn(a,u=>u.end<=t.end&&n.charCodeAt(u.pos+1)===42&&n.charCodeAt(u.pos+2)===42&&n.charCodeAt(u.pos+3)!==47)}var yOe=/^\/\/\/\s*/,vOe=/^\/\/\/\s*/,S$e=/^\/\/\/\s*/,m9t=/^\/\/\/\s*/,h9t=/^\/\/\/\s*/,x$e=/^\/\/\/\s*/;function jA(t){if(182<=t.kind&&t.kind<=205)return!0;switch(t.kind){case 133:case 159:case 150:case 163:case 154:case 136:case 155:case 151:case 157:case 106:case 146:return!0;case 116:return t.parent.kind!==222;case 233:return rgt(t);case 168:return t.parent.kind===200||t.parent.kind===195;case 80:(t.parent.kind===166&&t.parent.right===t||t.parent.kind===211&&t.parent.name===t)&&(t=t.parent),Se.assert(t.kind===80||t.kind===166||t.kind===211,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 166:case 211:case 110:{let{parent:n}=t;if(n.kind===186)return!1;if(n.kind===205)return!n.isTypeOf;if(182<=n.kind&&n.kind<=205)return!0;switch(n.kind){case 233:return rgt(n);case 168:return t===n.constraint;case 345:return t===n.constraint;case 172:case 171:case 169:case 260:return t===n.type;case 262:case 218:case 219:case 176:case 174:case 173:case 177:case 178:return t===n.type;case 179:case 180:case 181:return t===n.type;case 216:return t===n.type;case 213:case 214:case 215:return dr(n.typeArguments,t)}}}return!1}function rgt(t){return Tk(t.parent)||lM(t.parent)||KC(t.parent)&&!Ose(t)}function Gb(t,n){return a(t);function a(u){switch(u.kind){case 253:return n(u);case 269:case 241:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 296:case 297:case 256:case 258:case 299:return _d(u,a)}}}function bOe(t,n){return a(t);function a(u){switch(u.kind){case 229:n(u);let m=u.expression;m&&a(m);return;case 266:case 264:case 267:case 265:return;default:if(iu(u)){if(u.name&&u.name.kind===167){a(u.name.expression);return}}else jA(u)||_d(u,a)}}}function Yke(t){return t&&t.kind===188?t.elementType:t&&t.kind===183?vp(t.typeArguments):void 0}function $6(t){switch(t.kind){case 264:case 263:case 231:case 187:return t.members;case 210:return t.properties}}function mj(t){if(t)switch(t.kind){case 208:case 306:case 169:case 303:case 172:case 171:case 304:case 260:return!0}return!1}function Jpe(t){return mj(t)||O_(t)}function sG(t){return t.parent.kind===261&&t.parent.parent.kind===243}function hj(t){return Ys(t)?Ld(t.parent)&&ms(t.parent.parent)&&wh(t.parent.parent)===2||fse(t.parent):!1}function fse(t){return Ys(t)?ms(t)&&wh(t)===1:!1}function aG(t){return($c(t)?W7(t)&&Ai(t.name)&&sG(t):vu(t)?QH(t)&&G0(t):hx(t)&&QH(t))||fse(t)}function Qke(t){switch(t.kind){case 174:case 173:case 176:case 177:case 178:case 262:case 218:return!0}return!1}function TZ(t,n){for(;;){if(n&&n(t),t.statement.kind!==256)return t.statement;t=t.statement}}function z7(t){return t&&t.kind===241&&iu(t.parent)}function zT(t){return t&&t.kind===174&&t.parent.kind===210}function EZ(t){return(t.kind===174||t.kind===177||t.kind===178)&&(t.parent.kind===210||t.parent.kind===231)}function V7(t){return t&&t.kind===1}function L2(t){return t&&t.kind===0}function h5(t,n,a,u){return ee(t?.properties,m=>{if(!Ih(m))return;let g=rG(m.name);return n===g||u&&u===g?a(m):void 0})}function Zke(t,n,a){return h5(t,n,u=>Yg(u.initializer)?jt(u.initializer.elements,m=>Kf(m)&&m.text===a):void 0)}function cG(t){if(t&&t.statements.length){let n=t.statements[0].expression;return ac(n,Ld)}}function g5(t,n,a){return DZ(t,n,u=>Yg(u.initializer)?jt(u.initializer.elements,m=>Kf(m)&&m.text===a):void 0)}function DZ(t,n,a){return h5(cG(t),n,a)}function BS(t){return go(t.parent,iu)}function _se(t){return go(t.parent,Rp)}function vy(t){return go(t.parent,bc)}function hk(t){return go(t.parent,n=>bc(n)||iu(n)?"quit":Yf(n))}function pse(t){return go(t.parent,g8)}function zy(t){let n=go(t.parent,a=>bc(a)?"quit":Cy(a));return n&&bc(n.parent)?vy(n.parent):vy(n??t)}function Kb(t,n,a){for(Se.assert(t.kind!==307);;){if(t=t.parent,!t)return Se.fail();switch(t.kind){case 167:if(a&&bc(t.parent.parent))return t;t=t.parent.parent;break;case 170:t.parent.kind===169&&rl(t.parent.parent)?t=t.parent.parent:rl(t.parent)&&(t=t.parent);break;case 219:if(!n)continue;case 262:case 218:case 267:case 175:case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 179:case 180:case 181:case 266:case 307:return t}}}function mse(t){switch(t.kind){case 219:case 262:case 218:case 172:return!0;case 241:switch(t.parent.kind){case 176:case 174:case 177:case 178:return!0;default:return!1}default:return!1}}function lG(t){Ai(t)&&(D0(t.parent)||fp(t.parent))&&t.parent.name===t&&(t=t.parent);let n=Kb(t,!0,!1);return ul(n)}function jS(t){let n=Kb(t,!1,!1);if(n)switch(n.kind){case 176:case 262:case 218:return n}}function IZ(t,n){for(;;){if(t=t.parent,!t)return;switch(t.kind){case 167:t=t.parent;break;case 262:case 218:case 219:if(!n)continue;case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 175:return t;case 170:t.parent.kind===169&&rl(t.parent.parent)?t=t.parent.parent:rl(t.parent)&&(t=t.parent);break}}}function w3(t){if(t.kind===218||t.kind===219){let n=t,a=t.parent;for(;a.kind===217;)n=a,a=a.parent;if(a.kind===213&&a.expression===n)return a}}function Xx(t){let n=t.kind;return(n===211||n===212)&&t.expression.kind===108}function gj(t){let n=t.kind;return(n===211||n===212)&&t.expression.kind===110}function T3(t){var n;return!!t&&$c(t)&&((n=t.initializer)==null?void 0:n.kind)===110}function SOe(t){return!!t&&(Q0(t)||Ih(t))&&ms(t.parent.parent)&&t.parent.parent.operatorToken.kind===64&&t.parent.parent.right.kind===110}function sb(t){switch(t.kind){case 183:return t.typeName;case 233:return Dp(t.expression)?t.expression:void 0;case 80:case 166:return t}}function EH(t){switch(t.kind){case 215:return t.tag;case 286:case 285:return t.tagName;case 226:return t.right;default:return t.expression}}function DH(t,n,a,u){if(t&&xf(n)&&wl(n.name))return!1;switch(n.kind){case 263:return!0;case 231:return!t;case 172:return a!==void 0&&(t?D0(a):bc(a)&&!qA(n)&&!AOe(n));case 177:case 178:case 174:return n.body!==void 0&&a!==void 0&&(t?D0(a):bc(a));case 169:return t?a!==void 0&&a.body!==void 0&&(a.kind===176||a.kind===174||a.kind===178)&&R3(a)!==n&&u!==void 0&&u.kind===263:!1}return!1}function IH(t,n,a,u){return uw(n)&&DH(t,n,a,u)}function yj(t,n,a,u){return IH(t,n,a,u)||vj(t,n,a)}function vj(t,n,a){switch(n.kind){case 263:return En(n.members,u=>yj(t,u,n,a));case 231:return!t&&En(n.members,u=>yj(t,u,n,a));case 174:case 178:case 176:return En(n.parameters,u=>IH(t,u,n,a));default:return!1}}function aN(t,n){if(IH(t,n))return!0;let a=eI(n);return!!a&&vj(t,a,n)}function bj(t,n,a){let u;if(O_(n)){let{firstAccessor:m,secondAccessor:g,setAccessor:v}=j2(a.members,n),x=uw(m)?m:g&&uw(g)?g:void 0;if(!x||n!==x)return!1;u=v?.parameters}else Sg(n)&&(u=n.parameters);if(IH(t,n,a))return!0;if(u){for(let m of u)if(!B3(m)&&IH(t,m,n,a))return!0}return!1}function uG(t){if(t.textSourceNode){switch(t.textSourceNode.kind){case 11:return uG(t.textSourceNode);case 15:return t.text===""}return!1}return t.text===""}function T8(t){let{parent:n}=t;return n.kind===286||n.kind===285||n.kind===287?n.tagName===t:!1}function ab(t){switch(t.kind){case 108:case 106:case 112:case 97:case 14:case 209:case 210:case 211:case 212:case 213:case 214:case 215:case 234:case 216:case 238:case 235:case 217:case 218:case 231:case 219:case 222:case 220:case 221:case 224:case 225:case 226:case 227:case 230:case 228:case 232:case 284:case 285:case 288:case 229:case 223:case 236:return!0;case 233:return!KC(t.parent)&&!lM(t.parent);case 166:for(;t.parent.kind===166;)t=t.parent;return t.parent.kind===186||ib(t.parent)||F4(t.parent)||hh(t.parent)||T8(t);case 311:for(;hh(t.parent);)t=t.parent;return t.parent.kind===186||ib(t.parent)||F4(t.parent)||hh(t.parent)||T8(t);case 81:return ms(t.parent)&&t.parent.left===t&&t.parent.operatorToken.kind===103;case 80:if(t.parent.kind===186||ib(t.parent)||F4(t.parent)||hh(t.parent)||T8(t))return!0;case 9:case 10:case 11:case 15:case 110:return NZ(t);default:return!1}}function NZ(t){let{parent:n}=t;switch(n.kind){case 260:case 169:case 172:case 171:case 306:case 303:case 208:return n.initializer===t;case 244:case 245:case 246:case 247:case 253:case 254:case 255:case 296:case 257:return n.expression===t;case 248:let a=n;return a.initializer===t&&a.initializer.kind!==261||a.condition===t||a.incrementor===t;case 249:case 250:let u=n;return u.initializer===t&&u.initializer.kind!==261||u.expression===t;case 216:case 234:return t===n.expression;case 239:return t===n.expression;case 167:return t===n.expression;case 170:case 294:case 293:case 305:return!0;case 233:return n.expression===t&&!jA(n);case 304:return n.objectAssignmentInitializer===t;case 238:return t===n.expression;default:return ab(n)}}function AZ(t){for(;t.kind===166||t.kind===80;)t=t.parent;return t.kind===186}function NH(t){return vm(t)&&!!t.parent.moduleSpecifier}function WS(t){return t.kind===271&&t.moduleReference.kind===283}function Sj(t){return Se.assert(WS(t)),t.moduleReference.expression}function PZ(t){return E3(t)&&rU(t.initializer).arguments[0]}function y5(t){return t.kind===271&&t.moduleReference.kind!==283}function Yx(t){return t?.kind===307}function $v(t){return Ys(t)}function Ys(t){return!!t&&!!(t.flags&524288)}function H7(t){return!!t&&!!(t.flags&134217728)}function WA(t){return!qv(t)}function cb(t){return!!t&&!!(t.flags&16777216)}function qpe(t){return M_(t)&&Ai(t.typeName)&&t.typeName.escapedText==="Object"&&t.typeArguments&&t.typeArguments.length===2&&(t.typeArguments[0].kind===154||t.typeArguments[0].kind===150)}function es(t,n){if(t.kind!==213)return!1;let{expression:a,arguments:u}=t;if(a.kind!==80||a.escapedText!=="require"||u.length!==1)return!1;let m=u[0];return!n||i_(m)}function AH(t){return $pe(t,!1)}function E3(t){return $pe(t,!0)}function LZ(t){return Zd(t)&&E3(t.parent.parent)}function $pe(t,n){return $c(t)&&!!t.initializer&&es(n?rU(t.initializer):t.initializer,!0)}function lb(t){return Zh(t)&&t.declarationList.declarations.length>0&&Yt(t.declarationList.declarations,n=>AH(n))}function xj(t){return t===39||t===34}function D3(t,n){return S8(n,t).charCodeAt(0)===34}function dG(t){return ms(t)||cf(t)||Ai(t)||Od(t)}function hse(t){return Ys(t)&&t.initializer&&ms(t.initializer)&&(t.initializer.operatorToken.kind===57||t.initializer.operatorToken.kind===61)&&t.name&&Dp(t.name)&&G6(t.name,t.initializer.left)?t.initializer.right:t.initializer}function v5(t){let n=hse(t);return n&&zA(n,Y6(t.name))}function Gpe(t,n){return ee(t.properties,a=>Ih(a)&&Ai(a.name)&&a.name.escapedText==="value"&&a.initializer&&zA(a.initializer,n))}function U7(t){if(t&&t.parent&&ms(t.parent)&&t.parent.operatorToken.kind===64){let n=Y6(t.parent.left);return zA(t.parent.right,n)||Kpe(t.parent.left,t.parent.right,n)}if(t&&Od(t)&&I3(t)){let n=Gpe(t.arguments[2],t.arguments[1].text==="prototype");if(n)return n}}function zA(t,n){if(Od(t)){let a=J_(t.expression);return a.kind===218||a.kind===219?t:void 0}if(t.kind===218||t.kind===231||t.kind===219||Ld(t)&&(t.properties.length===0||n))return t}function Kpe(t,n,a){let u=ms(n)&&(n.operatorToken.kind===57||n.operatorToken.kind===61)&&zA(n.right,a);if(u&&G6(t,n.left))return u}function fG(t){let n=$c(t.parent)?t.parent.name:ms(t.parent)&&t.parent.operatorToken.kind===64?t.parent.left:void 0;return n&&zA(t.right,Y6(n))&&Dp(n)&&G6(n,t.left)}function xOe(t){if(ms(t.parent)){let n=(t.parent.operatorToken.kind===57||t.parent.operatorToken.kind===61)&&ms(t.parent.parent)?t.parent.parent:t.parent;if(n.operatorToken.kind===64&&Ai(n.left))return n.left}else if($c(t.parent))return t.parent.name}function G6(t,n){return Xp(t)&&Xp(n)?jC(t)===jC(n):qD(t)&&b5(n)&&(n.expression.kind===110||Ai(n.expression)&&(n.expression.escapedText==="window"||n.expression.escapedText==="self"||n.expression.escapedText==="global"))?G6(t,LH(n)):b5(t)&&b5(n)?Yw(t)===Yw(n)&&G6(t.expression,n.expression):!1}function S4(t){for(;Kg(t,!0);)t=t.right;return t}function PH(t){return Ai(t)&&t.escapedText==="exports"}function Xpe(t){return Ai(t)&&t.escapedText==="module"}function cN(t){return(ba(t)||gse(t))&&Xpe(t.expression)&&Yw(t)==="exports"}function wh(t){let n=Ype(t);return n===5||Ys(t)?n:0}function I3(t){return Z(t.arguments)===3&&ba(t.expression)&&Ai(t.expression.expression)&&Un(t.expression.expression)==="Object"&&Un(t.expression.name)==="defineProperty"&&Xb(t.arguments[1])&&lN(t.arguments[0],!0)}function b5(t){return ba(t)||gse(t)}function gse(t){return T_(t)&&Xb(t.argumentExpression)}function gk(t,n){return ba(t)&&(!n&&t.expression.kind===110||Ai(t.name)&&lN(t.expression,!0))||Yh(t,n)}function Yh(t,n){return gse(t)&&(!n&&t.expression.kind===110||Dp(t.expression)||gk(t.expression,!0))}function lN(t,n){return Dp(t)||gk(t,n)}function LH(t){return ba(t)?t.name:t.argumentExpression}function Ype(t){if(Od(t)){if(!I3(t))return 0;let n=t.arguments[0];return PH(n)||cN(n)?8:gk(n)&&Yw(n)==="prototype"?9:7}return t.operatorToken.kind!==64||!cf(t.left)||Cj(S4(t))?0:lN(t.left.expression,!0)&&Yw(t.left)==="prototype"&&Ld(COe(t))?6:kj(t.left)}function Cj(t){return rd(t)&&mx(t.expression)&&t.expression.text==="0"}function _G(t){if(ba(t))return t.name;let n=J_(t.argumentExpression);return mx(n)||i_(n)?n:t}function Yw(t){let n=_G(t);if(n){if(Ai(n))return n.escapedText;if(i_(n)||mx(n))return kh(n.text)}}function kj(t){if(t.expression.kind===110)return 4;if(cN(t))return 2;if(lN(t.expression,!0)){if(Y6(t.expression))return 3;let n=t;for(;!Ai(n.expression);)n=n.expression;let a=n.expression;if((a.escapedText==="exports"||a.escapedText==="module"&&Yw(n)==="exports")&&gk(t))return 1;if(lN(t,!0)||T_(t)&&C5(t))return 5}return 0}function COe(t){for(;ms(t.right);)t=t.right;return t.right}function Qpe(t){return ms(t)&&wh(t)===3}function yse(t){return Ys(t)&&t.parent&&t.parent.kind===244&&(!T_(t)||gse(t))&&!!b3(t.parent)}function YD(t,n){let{valueDeclaration:a}=t;(!a||!(n.flags&33554432&&!Ys(n)&&!(a.flags&33554432))&&dG(a)&&!dG(n)||a.kind!==n.kind&&qke(a))&&(t.valueDeclaration=n)}function OZ(t){if(!t||!t.valueDeclaration)return!1;let n=t.valueDeclaration;return n.kind===262||$c(n)&&n.initializer&&iu(n.initializer)}function Zpe(t){switch(t?.kind){case 260:case 208:case 272:case 278:case 271:case 273:case 280:case 274:case 281:case 276:case 205:return!0}return!1}function J7(t){var n,a;switch(t.kind){case 260:case 208:return(n=go(t.initializer,u=>es(u,!0)))==null?void 0:n.arguments[0];case 272:case 278:case 351:return ac(t.moduleSpecifier,i_);case 271:return ac((a=ac(t.moduleReference,Zg))==null?void 0:a.expression,i_);case 273:case 280:return ac(t.parent.moduleSpecifier,i_);case 274:case 281:return ac(t.parent.parent.moduleSpecifier,i_);case 276:return ac(t.parent.parent.parent.moduleSpecifier,i_);case 205:return Wy(t)?t.argument.literal:void 0;default:Se.assertNever(t)}}function pG(t){return wj(t)||Se.failBadSyntaxKind(t.parent)}function wj(t){switch(t.parent.kind){case 272:case 278:case 351:return t.parent;case 283:return t.parent.parent;case 213:return Kx(t.parent)||es(t.parent,!1)?t.parent:void 0;case 201:return Se.assert(Kf(t)),ac(t.parent.parent,Ck);default:return}}function Tj(t){switch(t.kind){case 272:case 278:case 351:return t.moduleSpecifier;case 271:return t.moduleReference.kind===283?t.moduleReference.expression:void 0;case 205:return Wy(t)?t.argument.literal:void 0;case 213:return t.arguments[0];case 267:return t.name.kind===11?t.name:void 0;default:return Se.assertNever(t)}}function E8(t){switch(t.kind){case 272:return t.importClause&&ac(t.importClause.namedBindings,ZE);case 271:return t;case 278:return t.exportClause&&ac(t.exportClause,vm);default:return Se.assertNever(t)}}function N3(t){return(t.kind===272||t.kind===351)&&!!t.importClause&&!!t.importClause.name}function FZ(t,n){if(t.name){let a=n(t);if(a)return a}if(t.namedBindings){let a=ZE(t.namedBindings)?n(t.namedBindings):ee(t.namedBindings.elements,n);if(a)return a}}function x4(t){if(t)switch(t.kind){case 169:case 174:case 173:case 304:case 303:case 172:case 171:return t.questionToken!==void 0}return!1}function A3(t){let n=CU(t)?Ed(t.parameters):void 0,a=ac(n&&n.name,Ai);return!!a&&a.escapedText==="new"}function ux(t){return t.kind===346||t.kind===338||t.kind===340}function MZ(t){return ux(t)||k1(t)}function mG(t){return E0(t)&&ms(t.expression)&&t.expression.operatorToken.kind===64?S4(t.expression):void 0}function hG(t){return E0(t)&&ms(t.expression)&&wh(t.expression)!==0&&ms(t.expression.right)&&(t.expression.right.operatorToken.kind===57||t.expression.right.operatorToken.kind===61)?t.expression.right.right:void 0}function O2(t){switch(t.kind){case 243:let n=D8(t);return n&&n.initializer;case 172:return t.initializer;case 303:return t.initializer}}function D8(t){return Zh(t)?Ed(t.declarationList.declarations):void 0}function ogt(t){return Dh(t)&&t.body&&t.body.kind===267?t.body:void 0}function vse(t){if(t.kind>=243&&t.kind<=259)return!0;switch(t.kind){case 80:case 110:case 108:case 166:case 236:case 212:case 211:case 208:case 218:case 219:case 174:case 177:case 178:return!0;default:return!1}}function gG(t){switch(t.kind){case 219:case 226:case 241:case 252:case 179:case 296:case 263:case 231:case 175:case 176:case 185:case 180:case 251:case 259:case 246:case 212:case 242:case 1:case 266:case 306:case 277:case 278:case 281:case 244:case 249:case 250:case 248:case 262:case 218:case 184:case 177:case 80:case 245:case 272:case 271:case 181:case 264:case 317:case 323:case 256:case 174:case 173:case 267:case 202:case 270:case 210:case 169:case 217:case 211:case 303:case 172:case 171:case 253:case 240:case 178:case 304:case 305:case 255:case 257:case 258:case 265:case 168:case 260:case 243:case 247:case 254:return!0;default:return!1}}function S5(t,n){let a;mj(t)&&yg(t)&&Gx(t.initializer)&&(a=Ho(a,C$e(t,t.initializer.jsDoc)));let u=t;for(;u&&u.parent;){if(Gx(u)&&(a=Ho(a,C$e(t,u.jsDoc))),u.kind===169){a=Ho(a,(n?Woe:mu)(u));break}if(u.kind===168){a=Ho(a,(n?Z3e:N7)(u));break}u=yG(u)}return a||F}function C$e(t,n){let a=Bu(n);return za(n,u=>{if(u===a){let m=Qn(u.tags,g=>eme(t,g));return u.tags===m?[u]:m}else return Qn(u.tags,rK)})}function eme(t,n){return!(dW(n)||sK(n))||!n.parent||!eD(n.parent)||!Tu(n.parent.parent)||n.parent.parent===t}function yG(t){let n=t.parent;if(n.kind===303||n.kind===277||n.kind===172||n.kind===244&&t.kind===211||n.kind===253||ogt(n)||Kg(t))return n;if(n.parent&&(D8(n.parent)===t||Kg(n)))return n.parent;if(n.parent&&n.parent.parent&&(D8(n.parent.parent)||O2(n.parent.parent)===t||hG(n.parent.parent)))return n.parent.parent}function vG(t){if(t.symbol)return t.symbol;if(!Ai(t.name))return;let n=t.name.escapedText,a=P3(t);if(!a)return;let u=jt(a.parameters,m=>m.name.kind===80&&m.name.escapedText===n);return u&&u.symbol}function tme(t){if(eD(t.parent)&&t.parent.tags){let n=jt(t.parent.tags,ux);if(n)return n}return P3(t)}function kOe(t){return R6(t,rK)}function P3(t){let n=C4(t);if(n)return hx(n)&&n.type&&iu(n.type)?n.type:iu(n)?n:void 0}function C4(t){let n=L3(t);if(n)return hG(n)||mG(n)||O2(n)||D8(n)||ogt(n)||n}function L3(t){let n=Ej(t);if(!n)return;let a=n.parent;if(a&&a.jsDoc&&n===Y_(a.jsDoc))return a}function Ej(t){return go(t.parent,eD)}function I8(t){let n=t.name.escapedText,{typeParameters:a}=t.parent.parent.parent;return a&&jt(a,u=>u.name.escapedText===n)}function q7(t){return!!t.typeArguments}var $7=(t=>(t[t.None=0]="None",t[t.Definite=1]="Definite",t[t.Compound=2]="Compound",t))($7||{});function OH(t){let n=t.parent;for(;;){switch(n.kind){case 226:let a=n,u=a.operatorToken.kind;return D4(u)&&a.left===t?a:void 0;case 224:case 225:let m=n,g=m.operator;return g===46||g===47?m:void 0;case 249:case 250:let v=n;return v.initializer===t?v:void 0;case 217:case 209:case 230:case 235:t=n;break;case 305:t=n.parent;break;case 304:if(n.name!==t)return;t=n.parent;break;case 303:if(n.name===t)return;t=n.parent;break;default:return}n=t.parent}}function N8(t){let n=OH(t);if(!n)return 0;switch(n.kind){case 226:let a=n.operatorToken.kind;return a===64||UZ(a)?1:2;case 224:case 225:return 2;case 249:case 250:return 1}}function O3(t){return!!OH(t)}function k$e(t){let n=J_(t.right);return n.kind===226&&ahe(n.operatorToken.kind)}function ime(t){let n=OH(t);return!!n&&Kg(n,!0)&&k$e(n)}function A8(t){switch(t.kind){case 241:case 243:case 254:case 245:case 255:case 269:case 296:case 297:case 256:case 248:case 249:case 250:case 246:case 247:case 258:case 299:return!0}return!1}function F2(t){return yd(t)||Zc(t)||p4(t)||fp(t)||yl(t)}function sgt(t,n){for(;t&&t.kind===n;)t=t.parent;return t}function bG(t){return sgt(t,196)}function uN(t){return sgt(t,217)}function Dj(t){let n;for(;t&&t.kind===196;)n=t,t=t.parent;return[n,t]}function RZ(t){for(;eO(t);)t=t.type;return t}function J_(t,n){return ug(t,n?-2147483647:1)}function VA(t){return t.kind!==211&&t.kind!==212?!1:(t=uN(t.parent),t&&t.kind===220)}function G7(t,n){for(;t;){if(t===n)return!0;t=t.parent}return!1}function VT(t){return!ul(t)&&!Uu(t)&&y1(t.parent)&&t.parent.name===t}function F_(t){let n=t.parent;switch(t.kind){case 11:case 15:case 9:if(f_(n))return n.parent;case 80:if(y1(n))return n.name===t?n:void 0;if(tS(n)){let a=n.parent;return hw(a)&&a.name===n?a:void 0}else{let a=n.parent;return ms(a)&&wh(a)!==0&&(a.left.symbol||a.symbol)&&Nu(a)===t?a:void 0}case 81:return y1(n)&&n.name===t?n:void 0;default:return}}function SG(t){return Xb(t)&&t.parent.kind===167&&y1(t.parent.parent)}function K7(t){let n=t.parent;switch(n.kind){case 172:case 171:case 174:case 173:case 177:case 178:case 306:case 303:case 211:return n.name===t;case 166:return n.right===t;case 208:case 276:return n.propertyName===t;case 281:case 291:case 285:case 286:case 287:return!0}return!1}function QD(t){switch(t.parent.kind){case 273:case 276:case 274:case 281:case 277:case 271:case 280:return t.parent;case 166:do t=t.parent;while(t.parent.kind===166);return QD(t)}}function Ij(t){return Dp(t)||Qh(t)}function Nj(t){let n=nme(t);return Ij(n)}function nme(t){return Bm(t)?t.expression:t.right}function wOe(t){return t.kind===304?t.name:t.kind===303?t.initializer:t.parent.right}function HE(t){let n=K6(t);if(n&&Ys(t)){let a=kke(t);if(a)return a.class}return n}function K6(t){let n=HT(t.heritageClauses,96);return n&&n.types.length>0?n.types[0]:void 0}function F3(t){if(Ys(t))return eOe(t).map(n=>n.class);{let n=HT(t.heritageClauses,119);return n?.types}}function FH(t){return ky(t)?xG(t)||F:bc(t)&&Pl(Rl(HE(t)),F3(t))||F}function xG(t){let n=HT(t.heritageClauses,96);return n?n.types:void 0}function HT(t,n){if(t){for(let a of t)if(a.token===n)return a}}function M2(t,n){for(;t;){if(t.kind===n)return t;t=t.parent}}function Gv(t){return 83<=t&&t<=165}function MH(t){return 19<=t&&t<=79}function Aj(t){return Gv(t)||MH(t)}function RH(t){return 128<=t&&t<=165}function M3(t){return Gv(t)&&!RH(t)}function ov(t){let n=fH(t);return n!==void 0&&M3(n)}function bse(t){let n=F6(t);return!!n&&!RH(n)}function x5(t){return 2<=t&&t<=7}var Sse=(t=>(t[t.Normal=0]="Normal",t[t.Generator=1]="Generator",t[t.Async=2]="Async",t[t.Invalid=4]="Invalid",t[t.AsyncGenerator=3]="AsyncGenerator",t))(Sse||{});function Gg(t){if(!t)return 4;let n=0;switch(t.kind){case 262:case 218:case 174:t.asteriskToken&&(n|=1);case 219:kc(t,1024)&&(n|=2);break}return t.body||(n|=4),n}function BZ(t){switch(t.kind){case 262:case 218:case 219:case 174:return t.body!==void 0&&t.asteriskToken===void 0&&kc(t,1024)}return!1}function Xb(t){return i_(t)||mx(t)}function rme(t){return z2(t)&&(t.operator===40||t.operator===41)&&mx(t.operand)}function HA(t){let n=Nu(t);return!!n&&C5(n)}function C5(t){if(!(t.kind===167||t.kind===212))return!1;let n=T_(t)?J_(t.argumentExpression):t.expression;return!Xb(n)&&!rme(n)}function k5(t){switch(t.kind){case 80:case 81:return t.escapedText;case 11:case 15:case 9:case 10:return kh(t.text);case 167:let n=t.expression;return Xb(n)?kh(n.text):rme(n)?n.operator===41?Ef(n.operator)+n.operand.text:n.operand.text:void 0;case 295:return R5(t);default:return Se.assertNever(t)}}function Xp(t){switch(t.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function jC(t){return qD(t)?Un(t):vx(t)?XG(t):t.text}function dx(t){return qD(t)?t.escapedText:vx(t)?R5(t):kh(t.text)}function BH(t,n){return`__#${Nf(t)}@${n}`}function ZD(t){return xl(t.escapedName,"__@")}function xse(t){return xl(t.escapedName,"__#")}function jH(t){return Ai(t)?Un(t)==="__proto__":Kf(t)&&t.text==="__proto__"}function R2(t,n){switch(t=ug(t),t.kind){case 231:if(cge(t))return!1;break;case 218:if(t.name)return!1;break;case 219:break;default:return!1}return typeof n=="function"?n(t):!0}function Qw(t){switch(t.kind){case 303:return!jH(t.name);case 304:return!!t.objectAssignmentInitializer;case 260:return Ai(t.name)&&!!t.initializer;case 169:return Ai(t.name)&&!!t.initializer&&!t.dotDotDotToken;case 208:return Ai(t.name)&&!!t.initializer&&!t.dotDotDotToken;case 172:return!!t.initializer;case 226:switch(t.operatorToken.kind){case 64:case 77:case 76:case 78:return Ai(t.left)}break;case 277:return!0}return!1}function Yb(t,n){if(!Qw(t))return!1;switch(t.kind){case 303:return R2(t.initializer,n);case 304:return R2(t.objectAssignmentInitializer,n);case 260:case 169:case 208:case 172:return R2(t.initializer,n);case 226:return R2(t.right,n);case 277:return R2(t.expression,n)}}function ewe(t){return t.escapedText==="push"||t.escapedText==="unshift"}function k4(t){return UT(t).kind===169}function UT(t){for(;t.kind===208;)t=t.parent.parent;return t}function ome(t){let n=t.kind;return n===176||n===218||n===262||n===219||n===174||n===177||n===178||n===267||n===307}function um(t){return hN(t.pos)||hN(t.end)}var twe=(t=>(t[t.Left=0]="Left",t[t.Right=1]="Right",t))(twe||{});function WH(t){let n=iwe(t),a=t.kind===214&&t.arguments!==void 0;return Cse(t.kind,n,a)}function Cse(t,n,a){switch(t){case 214:return a?0:1;case 224:case 221:case 222:case 220:case 223:case 227:case 229:return 1;case 226:switch(n){case 43:case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 1}}return 0}function Qb(t){let n=iwe(t),a=t.kind===214&&t.arguments!==void 0;return JT(t.kind,n,a)}function iwe(t){return t.kind===226?t.operatorToken.kind:t.kind===224||t.kind===225?t.operator:t.kind}var P8=(t=>(t[t.Comma=0]="Comma",t[t.Spread=1]="Spread",t[t.Yield=2]="Yield",t[t.Assignment=3]="Assignment",t[t.Conditional=4]="Conditional",t[t.Coalesce=4]="Coalesce",t[t.LogicalOR=5]="LogicalOR",t[t.LogicalAND=6]="LogicalAND",t[t.BitwiseOR=7]="BitwiseOR",t[t.BitwiseXOR=8]="BitwiseXOR",t[t.BitwiseAND=9]="BitwiseAND",t[t.Equality=10]="Equality",t[t.Relational=11]="Relational",t[t.Shift=12]="Shift",t[t.Additive=13]="Additive",t[t.Multiplicative=14]="Multiplicative",t[t.Exponentiation=15]="Exponentiation",t[t.Unary=16]="Unary",t[t.Update=17]="Update",t[t.LeftHandSide=18]="LeftHandSide",t[t.Member=19]="Member",t[t.Primary=20]="Primary",t[t.Highest=20]="Highest",t[t.Lowest=0]="Lowest",t[t.Invalid=-1]="Invalid",t))(P8||{});function JT(t,n,a){switch(t){case 355:return 0;case 230:return 1;case 229:return 2;case 227:return 4;case 226:switch(n){case 28:return 0;case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 3;default:return CG(n)}case 216:case 235:case 224:case 221:case 222:case 220:case 223:return 16;case 225:return 17;case 213:return 18;case 214:return a?19:18;case 215:case 211:case 212:case 236:return 19;case 234:case 238:return 11;case 110:case 108:case 80:case 81:case 106:case 112:case 97:case 9:case 10:case 11:case 209:case 210:case 218:case 219:case 231:case 14:case 15:case 228:case 217:case 232:case 284:case 285:case 288:return 20;default:return-1}}function CG(t){switch(t){case 61:return 4;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function Sp(t){return Qn(t,n=>{switch(n.kind){case 294:return!!n.expression;case 12:return!n.containsOnlyTriviaWhiteSpaces;default:return!0}})}function kse(){let t=[],n=[],a=new Map,u=!1;return{add:g,lookup:m,getGlobalDiagnostics:v,getDiagnostics:x};function m(k){let T;if(k.file?T=a.get(k.file.fileName):T=t,!T)return;let I=Q_(T,k,ps,Ju);if(I>=0)return T[I];if(~I>0&&Q7(k,T[~I-1]))return T[~I-1]}function g(k){let T;k.file?(T=a.get(k.file.fileName),T||(T=[],a.set(k.file.fileName,T),Hn(n,k.file.fileName,Jg))):(u&&(u=!1,t=t.slice()),T=t),Hn(T,k,Ju,Q7)}function v(){return u=!0,t}function x(k){if(k)return a.get(k)||[];let T=Uc(n,I=>a.get(I));return t.length&&T.unshift(...t),T}}var w$e=/\$\{/g;function wse(t){return t.replace(w$e,"\\${")}function sme(t){return!!((t.templateFlags||0)&2048)}function zH(t){return t&&!!(z5(t)?sme(t):sme(t.head)||En(t.templateSpans,n=>sme(n.literal)))}var TOe=/[\\"\u0000-\u001f\u2028\u2029\u0085]/g,T$e=/[\\'\u0000-\u001f\u2028\u2029\u0085]/g,ame=/\r\n|[\\`\u0000-\u001f\u2028\u2029\u0085]/g,cme=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"}));function kG(t){return"\\u"+("0000"+t.toString(16).toUpperCase()).slice(-4)}function Tse(t,n,a){if(t.charCodeAt(0)===0){let u=a.charCodeAt(n+t.length);return u>=48&&u<=57?"\\x00":"\\0"}return cme.get(t)||kG(t.charCodeAt(0))}function w4(t,n){let a=n===96?ame:n===39?T$e:TOe;return t.replace(a,Tse)}var nwe=/[^\u0000-\u007F]/g;function Ese(t,n){return t=w4(t,n),nwe.test(t)?t.replace(nwe,a=>kG(a.charCodeAt(0))):t}var EOe=/["\u0000-\u001f\u2028\u2029\u0085]/g,g9t=/['\u0000-\u001f\u2028\u2029\u0085]/g,y9t=new Map(Object.entries({'"':""","'":"'"}));function v9t(t){return"&#x"+t.toString(16).toUpperCase()+";"}function b9t(t){return t.charCodeAt(0)===0?"�":y9t.get(t)||v9t(t.charCodeAt(0))}function rwe(t,n){let a=n===39?g9t:EOe;return t.replace(a,b9t)}function B2(t){let n=t.length;return n>=2&&t.charCodeAt(0)===t.charCodeAt(n-1)&&T4(t.charCodeAt(0))?t.substring(1,n-1):t}function T4(t){return t===39||t===34||t===96}function wG(t){let n=t.charCodeAt(0);return n>=97&&n<=122||t.includes("-")}var VH=[""," "];function owe(t){let n=VH[1];for(let a=VH.length;a<=t;a++)VH.push(VH[a-1]+n);return VH[t]}function lme(){return VH[1].length}function ume(t){var n,a,u,m,g,v=!1;function x(U){let $=E7(U);$.length>1?(m=m+$.length-1,g=n.length-U.length+Bu($),u=g-n.length===0):u=!1}function k(U){U&&U.length&&(u&&(U=owe(a)+U,u=!1),n+=U,x(U))}function T(U){U&&(v=!1),k(U)}function I(U){U&&(v=!0),k(U)}function A(){n="",a=0,u=!0,m=0,g=0,v=!1}function M(U){U!==void 0&&(n+=U,x(U),v=!1)}function R(U){U&&U.length&&T(U)}function H(U){(!u||U)&&(n+=t,m++,g=n.length,u=!0,v=!1)}return A(),{write:T,rawWrite:M,writeLiteral:R,writeLine:H,increaseIndent:()=>{a++},decreaseIndent:()=>{a--},getIndent:()=>a,getTextPos:()=>n.length,getLine:()=>m,getColumn:()=>u?a*lme():n.length-g,getText:()=>n,isAtStartOfLine:()=>u,hasTrailingComment:()=>v,hasTrailingWhitespace:()=>!!n.length&&tN(n.charCodeAt(n.length-1)),clear:A,writeKeyword:T,writeOperator:T,writeParameter:T,writeProperty:T,writePunctuation:T,writeSpace:T,writeStringLiteral:T,writeSymbol:(U,$)=>T(U),writeTrailingSemicolon:T,writeComment:I}}function DOe(t){let n=!1;function a(){n&&(t.writeTrailingSemicolon(";"),n=!1)}return{...t,writeTrailingSemicolon(){n=!0},writeLiteral(u){a(),t.writeLiteral(u)},writeStringLiteral(u){a(),t.writeStringLiteral(u)},writeSymbol(u,m){a(),t.writeSymbol(u,m)},writePunctuation(u){a(),t.writePunctuation(u)},writeKeyword(u){a(),t.writeKeyword(u)},writeOperator(u){a(),t.writeOperator(u)},writeParameter(u){a(),t.writeParameter(u)},writeSpace(u){a(),t.writeSpace(u)},writeProperty(u){a(),t.writeProperty(u)},writeComment(u){a(),t.writeComment(u)},writeLine(){a(),t.writeLine()},increaseIndent(){a(),t.increaseIndent()},decreaseIndent(){a(),t.decreaseIndent()}}}function TG(t){return t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!1}function E4(t){return U0(TG(t))}function Zw(t,n,a){return n.moduleName||EG(t,n.fileName,a&&a.fileName)}function agt(t,n){return t.getCanonicalFileName(tu(n,t.getCurrentDirectory()))}function HH(t,n,a){let u=n.getExternalModuleFileFromDeclaration(a);if(!u||u.isDeclarationFile)return;let m=Tj(a);if(!(m&&i_(m)&&!t_(m.text)&&!agt(t,u.path).includes(agt(t,Fs(t.getCommonSourceDirectory())))))return Zw(t,u)}function EG(t,n,a){let u=k=>t.getCanonicalFileName(k),m=dd(a?Cc(a):t.getCommonSourceDirectory(),t.getCurrentDirectory(),u),g=tu(n,t.getCurrentDirectory()),v=uH(m,g,m,u,!1),x=Qx(v);return a?FE(x):x}function Dse(t,n,a){let u=n.getCompilerOptions(),m;return u.outDir?m=Qx(Ise(t,n,u.outDir)):m=Qx(t),m+a}function UH(t,n){return JH(t,n.getCompilerOptions(),n)}function JH(t,n,a){let u=n.declarationDir||n.outDir,m=u?dme(t,u,a.getCurrentDirectory(),a.getCommonSourceDirectory(),v=>a.getCanonicalFileName(v)):t,g=jZ(m);return Qx(m)+g}function jZ(t){return gg(t,[".mjs",".mts"])?".d.mts":gg(t,[".cjs",".cts"])?".d.cts":gg(t,[".json"])?".d.json.ts":".d.ts"}function qH(t){return gg(t,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:gg(t,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:gg(t,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function UA(t,n){var a;if(t.paths)return t.baseUrl??Se.checkDefined(t.pathsBasePath||((a=n.getCurrentDirectory)==null?void 0:a.call(n)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function WZ(t,n,a){let u=t.getCompilerOptions();if(u.outFile){let m=b1(u),g=u.emitDeclarationOnly||m===2||m===4;return Qn(t.getSourceFiles(),v=>(g||!Mg(v))&&Pj(v,t,a))}else{let m=n===void 0?t.getSourceFiles():[n];return Qn(m,g=>Pj(g,t,a))}}function Pj(t,n,a){let u=n.getCompilerOptions();if(u.noEmitForJsFiles&&$v(t)||t.isDeclarationFile||n.isSourceFileFromExternalLibrary(t))return!1;if(a)return!0;if(n.isSourceOfProjectReferenceRedirect(t.fileName))return!1;if(!qv(t))return!0;if(n.getResolvedProjectReferenceToRedirect(t.fileName))return!1;if(u.outFile)return!0;if(!u.outDir)return!1;if(u.rootDir||u.composite&&u.configFilePath){let m=tu(uF(u,()=>[],n.getCurrentDirectory(),n.getCanonicalFileName),n.getCurrentDirectory()),g=dme(t.fileName,u.outDir,n.getCurrentDirectory(),m,n.getCanonicalFileName);if(fk(t.fileName,g,n.getCurrentDirectory(),!n.useCaseSensitiveFileNames())===0)return!1}return!0}function Ise(t,n,a){return dme(t,a,n.getCurrentDirectory(),n.getCommonSourceDirectory(),u=>n.getCanonicalFileName(u))}function dme(t,n,a,u,m){let g=tu(t,a);return g=m(g).indexOf(m(u))===0?g.substring(u.length):g,Ps(n,g)}function Nse(t,n,a,u,m,g,v){t.writeFile(a,u,m,x=>{n.add(Th(j.Could_not_write_file_0_Colon_1,a,x))},g,v)}function IOe(t,n,a){if(t.length>q0(t)&&!a(t)){let u=Cc(t);IOe(u,n,a),n(t)}}function zZ(t,n,a,u,m,g){try{u(t,n,a)}catch{IOe(Cc(Kd(t)),m,g),u(t,n,a)}}function Lj(t,n){let a=P6(t);return l4(a,n)}function $H(t,n){return l4(t,n)}function eI(t){return jt(t.members,n=>yl(n)&&jT(n.body))}function w5(t){if(t&&t.parameters.length>0){let n=t.parameters.length===2&&B3(t.parameters[0]);return t.parameters[n?1:0]}}function T5(t){let n=w5(t);return n&&n.type}function R3(t){if(t.parameters.length&&!U2(t)){let n=t.parameters[0];if(B3(n))return n}}function B3(t){return JA(t.name)}function JA(t){return!!t&&t.kind===80&&KH(t)}function GH(t){return!!go(t,n=>n.kind===186?!0:n.kind===80||n.kind===166?!1:"quit")}function L8(t){if(!JA(t))return!1;for(;tS(t.parent)&&t.parent.left===t;)t=t.parent;return t.parent.kind===186}function KH(t){return t.escapedText==="this"}function j2(t,n){let a,u,m,g;return HA(n)?(a=n,n.kind===177?m=n:n.kind===178?g=n:Se.fail("Accessor has wrong kind")):ee(t,v=>{if(O_(v)&&Xd(v)===Xd(n)){let x=k5(v.name),k=k5(n.name);x===k&&(a?u||(u=v):a=v,v.kind===177&&!m&&(m=v),v.kind===178&&!g&&(g=v))}}),{firstAccessor:a,secondAccessor:u,getAccessor:m,setAccessor:g}}function gm(t){if(!Ys(t)&&fp(t)||k1(t))return;let n=t.type;return n||!Ys(t)?n:vH(t)?t.typeExpression&&t.typeExpression.type:M6(t)}function XH(t){return t.type}function WC(t){return U2(t)?t.type&&t.type.typeExpression&&t.type.typeExpression.type:t.type||(Ys(t)?dZ(t):void 0)}function j3(t){return za(S3(t),n=>Oj(n)?n.typeParameters:void 0)}function Oj(t){return tC(t)&&!(t.parent.kind===320&&(t.parent.tags.some(ux)||t.parent.tags.some(rK)))}function W3(t){let n=w5(t);return n&&gm(n)}function DG(t,n,a,u){Fj(t,n,a.pos,u)}function Fj(t,n,a,u){u&&u.length&&a!==u[0].pos&&$H(t,a)!==$H(t,u[0].pos)&&n.writeLine()}function fme(t,n,a,u){a!==u&&$H(t,a)!==$H(t,u)&&n.writeLine()}function X7(t,n,a,u,m,g,v,x){if(u&&u.length>0){m&&a.writeSpace(" ");let k=!1;for(let T of u)k&&(a.writeSpace(" "),k=!1),x(t,n,a,T.pos,T.end,v),T.hasTrailingNewLine?a.writeLine():k=!0;k&&g&&a.writeSpace(" ")}}function w0(t,n,a,u,m,g,v){let x,k;if(v?m.pos===0&&(x=Qn(PA(t,m.pos),T)):x=PA(t,m.pos),x){let I=[],A;for(let M of x){if(A){let R=$H(n,A.end);if($H(n,M.pos)>=R+2)break}I.push(M),A=M}if(I.length){let M=$H(n,Bu(I).end);$H(n,fd(t,m.pos))>=M+2&&(DG(n,a,m,x),X7(t,n,a,I,!1,!0,g,u),k={nodePos:m.pos,detachedCommentEndPos:Bu(I).end})}}return k;function T(I){return Rpe(t,I.pos)}}function YH(t,n,a,u,m,g){if(t.charCodeAt(u+1)===42){let v=Bd(n,u),x=n.length,k;for(let T=u,I=v.line;T0){let H=R%lme(),U=owe((R-H)/lme());for(a.rawWrite(U);H;)a.rawWrite(" "),H--}else a.rawWrite("")}lw(t,m,a,g,T,A),T=A}}else a.writeComment(t.substring(u,m))}function lw(t,n,a,u,m,g){let v=Math.min(n,g-1),x=t.substring(m,v).trim();x?(a.writeComment(x),v!==n&&a.writeLine()):a.rawWrite(u)}function _me(t,n,a){let u=0;for(;n=0&&t.kind<=165?0:(t.modifierFlagsCache&536870912||(t.modifierFlagsCache=pme(t)|536870912),a||n&&Ys(t)?(!(t.modifierFlagsCache&268435456)&&t.parent&&(t.modifierFlagsCache|=awe(t)|268435456),VZ(t.modifierFlagsCache)):$A(t.modifierFlagsCache))}function A_(t){return Yd(t,!0)}function Pse(t){return Yd(t,!0,!0)}function eT(t){return Yd(t,!1)}function awe(t){let n=0;return t.parent&&!Fl(t)&&(Ys(t)&&(wke(t)&&(n|=8388608),Tke(t)&&(n|=16777216),nOe(t)&&(n|=33554432),oOe(t)&&(n|=67108864),Dke(t)&&(n|=134217728)),Nke(t)&&(n|=65536)),n}function $A(t){return t&65535}function VZ(t){return t&131071|(t&260046848)>>>23}function qT(t){return VZ(awe(t))}function Mj(t){return pme(t)|qT(t)}function pme(t){let n=tD(t)?tI(t.modifiers):0;return(t.flags&8||t.kind===80&&t.flags&4096)&&(n|=32),n}function tI(t){let n=0;if(t)for(let a of t)n|=Vy(a.kind);return n}function Vy(t){switch(t){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 170:return 32768}return 0}function HZ(t){return t===57||t===56}function X6(t){return HZ(t)||t===54}function UZ(t){return t===76||t===77||t===78}function POe(t){return ms(t)&&UZ(t.operatorToken.kind)}function mme(t){return HZ(t)||t===61}function hme(t){return ms(t)&&mme(t.operatorToken.kind)}function D4(t){return t>=64&&t<=79}function Lse(t){let n=UE(t);return n&&!n.isImplements?n.class:void 0}function UE(t){if($C(t)){if(KC(t.parent)&&bc(t.parent.parent))return{class:t.parent.parent,isImplements:t.parent.token===119};if(lM(t.parent)){let n=C4(t.parent);if(n&&bc(n))return{class:n,isImplements:!1}}}}function Kg(t,n){return ms(t)&&(n?t.operatorToken.kind===64:D4(t.operatorToken.kind))&&MS(t.left)}function z3(t){if(Kg(t,!0)){let n=t.left.kind;return n===210||n===209}return!1}function Ose(t){return Lse(t)!==void 0}function Dp(t){return t.kind===80||Bj(t)}function fx(t){switch(t.kind){case 80:return t;case 166:do t=t.left;while(t.kind!==80);return t;case 211:do t=t.expression;while(t.kind!==80);return t}}function Rj(t){return t.kind===80||t.kind===110||t.kind===108||t.kind===236||t.kind===211&&Rj(t.expression)||t.kind===217&&Rj(t.expression)}function Bj(t){return ba(t)&&Ai(t.name)&&Dp(t.expression)}function iI(t){if(ba(t)){let n=iI(t.expression);if(n!==void 0)return n+"."+$b(t.name)}else if(T_(t)){let n=iI(t.expression);if(n!==void 0&&C_(t.argumentExpression))return n+"."+k5(t.argumentExpression)}else{if(Ai(t))return Ba(t.escapedText);if(vx(t))return XG(t)}}function Y6(t){return gk(t)&&Yw(t)==="prototype"}function ZH(t){return t.parent.kind===166&&t.parent.right===t||t.parent.kind===211&&t.parent.name===t||t.parent.kind===236&&t.parent.name===t}function by(t){return!!t.parent&&(ba(t.parent)&&t.parent.name===t||T_(t.parent)&&t.parent.argumentExpression===t)}function LOe(t){return tS(t.parent)&&t.parent.right===t||ba(t.parent)&&t.parent.name===t||hh(t.parent)&&t.parent.right===t}function GA(t){return ms(t)&&t.operatorToken.kind===104}function Fse(t){return GA(t.parent)&&t===t.parent.right}function nm(t){return t.kind===210&&t.properties.length===0}function VC(t){return t.kind===209&&t.elements.length===0}function E5(t){if(!(!gme(t)||!t.declarations)){for(let n of t.declarations)if(n.localSymbol)return n.localSymbol}}function gme(t){return t&&Z(t.declarations)>0&&kc(t.declarations[0],2048)}function eU(t){return jt(kwe,n=>Wh(t,n))}function Y7(t){let n=[],a=t.length;for(let u=0;u>6|192),n.push(m&63|128)):m<65536?(n.push(m>>12|224),n.push(m>>6&63|128),n.push(m&63|128)):m<131072?(n.push(m>>18|240),n.push(m>>12&63|128),n.push(m>>6&63|128),n.push(m&63|128)):Se.assert(!1,"Unexpected code point")}return n}var V3="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function yme(t){let n="",a=Y7(t),u=0,m=a.length,g,v,x,k;for(;u>2,v=(a[u]&3)<<4|a[u+1]>>4,x=(a[u+1]&15)<<2|a[u+2]>>6,k=a[u+2]&63,u+1>=m?x=k=64:u+2>=m&&(k=64),n+=V3.charAt(g)+V3.charAt(v)+V3.charAt(x)+V3.charAt(k),u+=3;return n}function E$e(t){let n="",a=0,u=t.length;for(;a>4&3,I=(v&15)<<4|x>>2&15,A=(x&3)<<6|k&63;I===0&&x!==0?u.push(T):A===0&&k!==0?u.push(T,I):u.push(T,I,A),m+=4}return E$e(u)}function Rse(t,n){let a=Yu(n)?n:n.readFile(t);if(!a)return;let u=Pee(t,a);return u.error?void 0:u.config}function IG(t,n){return Rse(t,n)||{}}function jj(t){try{return JSON.parse(t)}catch{return}}function fN(t,n){return!n.directoryExists||n.directoryExists(t)}var lwe=`\r +`,S9t=` +`;function W2(t){switch(t.newLine){case 0:return lwe;case 1:case void 0:return S9t}}function tT(t,n=t){return Se.assert(n>=t||n===-1),{pos:t,end:n}}function uwe(t,n){return tT(t.pos,n)}function O8(t,n){return tT(n,t.end)}function I4(t){let n=tD(t)?mi(t.modifiers,Cy):void 0;return n&&!hN(n.end)?O8(t,n.end):t}function JE(t){if(vu(t)||Sg(t))return O8(t,t.name.pos);let n=tD(t)?Y_(t.modifiers):void 0;return n&&!hN(n.end)?O8(t,n.end):I4(t)}function tU(t,n){return tT(t,t+Ef(n).length)}function F8(t,n){return I$e(t,t,n)}function $T(t,n,a){return sv(iT(t,a,!1),iT(n,a,!1),a)}function D$e(t,n,a){return sv(t.end,n.end,a)}function I$e(t,n,a){return sv(iT(t,a,!1),n.end,a)}function _N(t,n,a){return sv(t.end,iT(n,a,!1),a)}function dw(t,n,a,u){let m=iT(n,a,u);return Foe(a,t.end,m)}function vme(t,n,a){return Foe(a,t.end,n.end)}function M8(t,n){return!sv(t.pos,t.end,n)}function sv(t,n,a){return Foe(a,t,n)===0}function iT(t,n,a){return hN(t.pos)?-1:fd(n.text,t.pos,!1,a)}function OOe(t,n,a,u){let m=fd(a.text,t,!1,u),g=iU(m,n,a);return Foe(a,g??n,m)}function bme(t,n,a,u){let m=fd(a.text,t,!1,u);return Foe(a,t,Math.min(n,m))}function iU(t,n=0,a){for(;t-- >n;)if(!tN(a.text.charCodeAt(t)))return t}function JZ(t){let n=ju(t);if(n)switch(n.parent.kind){case 266:case 267:return n===n.parent.name}return!1}function NG(t){return Qn(t.declarations,qZ)}function qZ(t){return $c(t)&&t.initializer!==void 0}function AG(t){return t.watch&&bf(t,"watch")}function GT(t){t.close()}function Ag(t){return t.flags&33554432?t.links.checkFlags:0}function nT(t,n=!1){if(t.valueDeclaration){let a=n&&t.declarations&&jt(t.declarations,zc)||t.flags&32768&&jt(t.declarations,n_)||t.valueDeclaration,u=iv(a);return t.parent&&t.parent.flags&32?u:u&-8}if(Ag(t)&6){let a=t.links.checkFlags,u=a&1024?2:a&256?1:4,m=a&2048?256:0;return u|m}return t.flags&4194304?257:0}function ym(t,n){return t.flags&2097152?n.getAliasedSymbol(t):t}function R8(t){return t.exportSymbol?t.exportSymbol.flags|t.flags:t.flags}function Bse(t){return jse(t)===1}function Wj(t){return jse(t)!==0}function jse(t){let{parent:n}=t;switch(n?.kind){case 217:return jse(n);case 225:case 224:let{operator:a}=n;return a===46||a===47?2:0;case 226:let{left:u,operatorToken:m}=n;return u===t&&D4(m.kind)?m.kind===64?1:2:0;case 211:return n.name!==t?0:jse(n);case 303:{let g=jse(n.parent);return t===n.name?FOe(g):g}case 304:return t===n.objectAssignmentInitializer?0:jse(n.parent);case 209:return jse(n);default:return 0}}function FOe(t){switch(t){case 0:return 1;case 1:return 0;case 2:return 2;default:return Se.assertNever(t)}}function nU(t,n){if(!t||!n||Object.keys(t).length!==Object.keys(n).length)return!1;for(let a in t)if(typeof t[a]=="object"){if(!nU(t[a],n[a]))return!1}else if(typeof t[a]!="function"&&t[a]!==n[a])return!1;return!0}function Zb(t,n){t.forEach(n),t.clear()}function pN(t,n,a){let{onDeleteValue:u,onExistingValue:m}=a;t.forEach((g,v)=>{var x;n?.has(v)?m&&m(g,(x=n.get)==null?void 0:x.call(n,v),v):(t.delete(v),u(g,v))})}function yk(t,n,a){pN(t,n,a);let{createNewValue:u}=a;n?.forEach((m,g)=>{t.has(g)||t.set(g,u(g,m))})}function vg(t){if(t.flags&32){let n=av(t);return!!n&&kc(n,64)}return!1}function av(t){var n;return(n=t.declarations)==null?void 0:n.find(bc)}function Ls(t){return t.flags&3899393?t.objectFlags:0}function D5(t){return!!t&&!!t.declarations&&!!t.declarations[0]&&wy(t.declarations[0])}function Wse({moduleSpecifier:t}){return Kf(t)?t.text:_h(t)}function I5(t){let n;return _d(t,a=>{jT(a)&&(n=a)},a=>{for(let u=a.length-1;u>=0;u--)if(jT(a[u])){n=a[u];break}}),n}function HC(t,n,a=!0){return t.has(n)?!1:(t.set(n,a),!0)}function PG(t){return bc(t)||ky(t)||Im(t)}function zse(t){return t>=182&&t<=205||t===133||t===159||t===150||t===163||t===151||t===136||t===154||t===155||t===116||t===157||t===146||t===141||t===233||t===312||t===313||t===314||t===315||t===316||t===317||t===318}function cf(t){return t.kind===211||t.kind===212}function mN(t){return t.kind===211?t.name:(Se.assert(t.kind===212),t.argumentExpression)}function zj(t){return t.kind===275||t.kind===279}function rU(t){for(;cf(t);)t=t.expression;return t}function N4(t,n){if(cf(t.parent)&&by(t))return a(t.parent);function a(u){if(u.kind===211){let m=n(u.name);if(m!==void 0)return m}else if(u.kind===212)if(Ai(u.argumentExpression)||i_(u.argumentExpression)){let m=n(u.argumentExpression);if(m!==void 0)return m}else return;if(cf(u.expression))return a(u.expression);if(Ai(u.expression))return n(u.expression)}}function Va(t,n){for(;;){switch(t.kind){case 225:t=t.operand;continue;case 226:t=t.left;continue;case 227:t=t.condition;continue;case 215:t=t.tag;continue;case 213:if(n)return t;case 234:case 212:case 211:case 235:case 354:case 238:t=t.expression;continue}return t}}function cgt(t,n){this.flags=t,this.escapedName=n,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.lastAssignmentPos=void 0,this.links=void 0}function dwe(t,n){this.flags=n,(Se.isDebugging||us)&&(this.checker=t)}function N$e(t,n){this.flags=n,Se.isDebugging&&(this.checker=t)}function Sme(t,n,a){this.pos=n,this.end=a,this.kind=t,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function qE(t,n,a){this.pos=n,this.end=a,this.kind=t,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function LG(t,n,a){this.pos=n,this.end=a,this.kind=t,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function MOe(t,n,a){this.fileName=t,this.text=n,this.skipTrivia=a||(u=>u)}var xd={getNodeConstructor:()=>Sme,getTokenConstructor:()=>qE,getIdentifierConstructor:()=>LG,getPrivateIdentifierConstructor:()=>Sme,getSourceFileConstructor:()=>Sme,getSymbolConstructor:()=>cgt,getTypeConstructor:()=>dwe,getSignatureConstructor:()=>N$e,getSourceMapSourceConstructor:()=>MOe},fwe=[];function xme(t){fwe.push(t),t(xd)}function oU(t){Object.assign(xd,t),ee(fwe,n=>n(xd))}function KA(t,n){return t.replace(/\{(\d+)\}/g,(a,u)=>""+Se.checkDefined(n[+u]))}var N5;function A$e(t){N5=t}function P$e(t){!N5&&t&&(N5=t())}function ed(t){return N5&&N5[t.key]||t.message}function Vj(t,n,a,u,m,...g){a+u>n.length&&(u=n.length-a),BA(n,a,u);let v=ed(m);return En(g)&&(v=KA(v,g)),{file:void 0,start:a,length:u,messageText:v,category:m.category,code:m.code,reportsUnnecessary:m.reportsUnnecessary,fileName:t}}function x9t(t){return t.file===void 0&&t.start!==void 0&&t.length!==void 0&&typeof t.fileName=="string"}function lgt(t,n){let a=n.fileName||"",u=n.text.length;Se.assertEqual(t.fileName,a),Se.assertLessThanOrEqual(t.start,u),Se.assertLessThanOrEqual(t.start+t.length,u);let m={file:n,start:t.start,length:t.length,messageText:t.messageText,category:t.category,code:t.code,reportsUnnecessary:t.reportsUnnecessary};if(t.relatedInformation){m.relatedInformation=[];for(let g of t.relatedInformation)x9t(g)&&g.fileName===a?(Se.assertLessThanOrEqual(g.start,u),Se.assertLessThanOrEqual(g.start+g.length,u),m.relatedInformation.push(lgt(g,n))):m.relatedInformation.push(g)}return m}function OG(t,n){let a=[];for(let u of t)a.push(lgt(u,n));return a}function k_(t,n,a,u,...m){BA(t.text,n,a);let g=ed(u);return En(m)&&(g=KA(g,m)),{file:t,start:n,length:a,messageText:g,category:u.category,code:u.code,reportsUnnecessary:u.reportsUnnecessary,reportsDeprecated:u.reportsDeprecated}}function sU(t,...n){let a=ed(t);return En(n)&&(a=KA(a,n)),a}function Th(t,...n){let a=ed(t);return En(n)&&(a=KA(a,n)),{file:void 0,start:void 0,length:void 0,messageText:a,category:t.category,code:t.code,reportsUnnecessary:t.reportsUnnecessary,reportsDeprecated:t.reportsDeprecated}}function Vse(t,n){return{file:void 0,start:void 0,length:void 0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:n}}function Zl(t,n,...a){let u=ed(n);return En(a)&&(u=KA(u,a)),{messageText:u,category:n.category,code:n.code,next:t===void 0||Array.isArray(t)?t:[t]}}function Hse(t,n){let a=t;for(;a.next;)a=a.next[0];a.next=[n]}function Cme(t){return t.file?t.file.path:void 0}function FG(t,n){return Ju(t,n)||MG(t,n)||0}function Ju(t,n){let a=Xm(t),u=Xm(n);return Jg(Cme(t),Cme(n))||m_(t.start,n.start)||m_(t.length,n.length)||m_(a,u)||C9t(t,n)||0}function MG(t,n){return!t.relatedInformation&&!n.relatedInformation?0:t.relatedInformation&&n.relatedInformation?m_(n.relatedInformation.length,t.relatedInformation.length)||ee(t.relatedInformation,(a,u)=>{let m=n.relatedInformation[u];return FG(a,m)})||0:t.relatedInformation?-1:1}function C9t(t,n){let a=$Z(t),u=$Z(n);typeof a!="string"&&(a=a.messageText),typeof u!="string"&&(u=u.messageText);let m=typeof t.messageText!="string"?t.messageText.next:void 0,g=typeof n.messageText!="string"?n.messageText.next:void 0,v=Jg(a,u);return v||(v=ugt(m,g),v)?v:t.canonicalHead&&!n.canonicalHead?-1:n.canonicalHead&&!t.canonicalHead?1:0}function ugt(t,n){return t===void 0&&n===void 0?0:t===void 0?1:n===void 0?-1:aU(t,n)||cv(t,n)}function aU(t,n){if(t===void 0&&n===void 0)return 0;if(t===void 0)return 1;if(n===void 0)return-1;let a=m_(n.length,t.length);if(a)return a;for(let u=0;u{m.externalModuleIndicator=gw(m)||!m.isDeclarationFile||void 0};case 1:return m=>{m.externalModuleIndicator=gw(m)};case 2:let n=[gw];(t.jsx===4||t.jsx===5)&&n.push(Use),n.push(pwe);let a=ow(...n);return m=>void(m.externalModuleIndicator=a(m,t))}}function ROe(t){let n=S1(t);return 3<=n&&n<=99||Tme(t)||mwe(t)}function Ohi(t){return t}var Sy={target:{dependencies:["module"],computeValue:t=>(t.target===0?void 0:t.target)??(t.module===100&&9||t.module===199&&99||1)},module:{dependencies:["target"],computeValue:t=>typeof t.module=="number"?t.module:Sy.target.computeValue(t)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:t=>{let n=t.moduleResolution;if(n===void 0)switch(Sy.module.computeValue(t)){case 1:n=2;break;case 100:n=3;break;case 199:n=99;break;case 200:n=100;break;default:n=1;break}return n}},moduleDetection:{dependencies:["module","target"],computeValue:t=>t.moduleDetection||(Sy.module.computeValue(t)===100||Sy.module.computeValue(t)===199?3:2)},isolatedModules:{dependencies:["verbatimModuleSyntax"],computeValue:t=>!!(t.isolatedModules||t.verbatimModuleSyntax)},esModuleInterop:{dependencies:["module","target"],computeValue:t=>{if(t.esModuleInterop!==void 0)return t.esModuleInterop;switch(Sy.module.computeValue(t)){case 100:case 199:case 200:return!0}return!1}},allowSyntheticDefaultImports:{dependencies:["module","target","moduleResolution"],computeValue:t=>t.allowSyntheticDefaultImports!==void 0?t.allowSyntheticDefaultImports:Sy.esModuleInterop.computeValue(t)||Sy.module.computeValue(t)===4||Sy.moduleResolution.computeValue(t)===100},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:t=>{let n=Sy.moduleResolution.computeValue(t);if(!Uj(n))return!1;if(t.resolvePackageJsonExports!==void 0)return t.resolvePackageJsonExports;switch(n){case 3:case 99:case 100:return!0}return!1}},resolvePackageJsonImports:{dependencies:["moduleResolution","resolvePackageJsonExports"],computeValue:t=>{let n=Sy.moduleResolution.computeValue(t);if(!Uj(n))return!1;if(t.resolvePackageJsonExports!==void 0)return t.resolvePackageJsonExports;switch(n){case 3:case 99:case 100:return!0}return!1}},resolveJsonModule:{dependencies:["moduleResolution","module","target"],computeValue:t=>t.resolveJsonModule!==void 0?t.resolveJsonModule:Sy.moduleResolution.computeValue(t)===100},declaration:{dependencies:["composite"],computeValue:t=>!!(t.declaration||t.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:t=>!!(t.preserveConstEnums||Sy.isolatedModules.computeValue(t))},incremental:{dependencies:["composite"],computeValue:t=>!!(t.incremental||t.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:t=>!!(t.declarationMap&&Sy.declaration.computeValue(t))},allowJs:{dependencies:["checkJs"],computeValue:t=>t.allowJs===void 0?!!t.checkJs:t.allowJs},useDefineForClassFields:{dependencies:["target","module"],computeValue:t=>t.useDefineForClassFields===void 0?Sy.target.computeValue(t)>=9:t.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:t=>d0(t,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:t=>d0(t,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:t=>d0(t,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:t=>d0(t,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:t=>d0(t,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:t=>d0(t,"strictPropertyInitialization")},strictBuiltinIteratorReturn:{dependencies:["strict"],computeValue:t=>d0(t,"strictBuiltinIteratorReturn")},alwaysStrict:{dependencies:["strict"],computeValue:t=>d0(t,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:t=>d0(t,"useUnknownInCatchVariables")}},h_=Sy.target.computeValue,b1=Sy.module.computeValue,S1=Sy.moduleResolution.computeValue,wme=Sy.moduleDetection.computeValue,$E=Sy.isolatedModules.computeValue,GE=Sy.esModuleInterop.computeValue,cU=Sy.allowSyntheticDefaultImports.computeValue,Tme=Sy.resolvePackageJsonExports.computeValue,mwe=Sy.resolvePackageJsonImports.computeValue,Q6=Sy.resolveJsonModule.computeValue,fw=Sy.declaration.computeValue,ph=Sy.preserveConstEnums.computeValue,_f=Sy.incremental.computeValue,x1=Sy.declarationMap.computeValue,T0=Sy.allowJs.computeValue,KZ=Sy.useDefineForClassFields.computeValue;function UC(t){return t>=5&&t<=99}function nI(t){switch(b1(t)){case 0:case 4:case 3:return!1}return!0}function Hj(t){return t.allowUnreachableCode===!1}function Eme(t){return t.allowUnusedLabels===!1}function Uj(t){return t>=3&&t<=99||t===100}function d0(t,n){return t[n]===void 0?!!t.strict:!!t[n]}function JC(t){return Km(m8e.type,(n,a)=>n===t?a:void 0)}function B8(t){return t.useDefineForClassFields!==!1&&h_(t)>=9}function RG(t,n){return CH(n,t,Bae)}function Jse(t,n){return CH(n,t,g8e)}function H3(t,n){return CH(n,t,Eee)}function lU(t,n){return n.strictFlag?d0(t,n.name):n.allowJsFlag?T0(t):t[n.name]}function BG(t){let n=t.jsx;return n===2||n===4||n===5}function jG(t,n){let a=n?.pragmas.get("jsximportsource"),u=ua(a)?a[a.length-1]:a,m=n?.pragmas.get("jsxruntime"),g=ua(m)?m[m.length-1]:m;if(g?.arguments.factory!=="classic")return t.jsx===4||t.jsx===5||t.jsxImportSource||u||g?.arguments.factory==="automatic"?u?.arguments.factory||t.jsxImportSource||"react":void 0}function qse(t,n){return t?`${t}/${n.jsx===5?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function Dme(t){let n=!1;for(let a=0;am,getSymlinkedDirectories:()=>a,getSymlinkedDirectoriesByRealpath:()=>u,setSymlinkedFile:(k,T)=>(m||(m=new Map)).set(k,T),setSymlinkedDirectory:(k,T)=>{let I=dd(k,t,n);V8(I)||(I=Fs(I),T!==!1&&!a?.has(I)&&(u||(u=Hb())).add(T.realPath,k),(a||(a=new Map)).set(I,T))},setSymlinksFromResolutions(k,T,I){Se.assert(!g),g=!0,k(A=>x(this,A.resolvedModule)),T(A=>x(this,A.resolvedTypeReferenceDirective)),I.forEach(A=>x(this,A.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>g,setSymlinksFromResolution(k){x(this,k)},hasAnySymlinks:v};function v(){return!!m?.size||!!a&&!!Km(a,k=>!!k)}function x(k,T){if(!T||!T.originalPath||!T.resolvedFileName)return;let{resolvedFileName:I,originalPath:A}=T;k.setSymlinkedFile(dd(A,t,n),I);let[M,R]=_x(I,A,t,n)||F;M&&R&&k.setSymlinkedDirectory(R,{real:Fs(M),realPath:Fs(dd(M,t,n))})}}function _x(t,n,a,u){let m=Uv(tu(t,a)),g=Uv(tu(n,a)),v=!1;for(;m.length>=2&&g.length>=2&&!Ime(m[m.length-2],u)&&!Ime(g[g.length-2],u)&&u(m[m.length-1])===u(g[g.length-1]);)m.pop(),g.pop(),v=!0;return v?[IA(m),IA(g)]:void 0}function Ime(t,n){return t!==void 0&&(n(t)==="node_modules"||xl(t,"@"))}function BOe(t){return fke(t.charCodeAt(0))?t.slice(1):void 0}function Nme(t,n,a){let u=ZR(t,n,a);return u===void 0?void 0:BOe(u)}var hwe=/[^\w\s/]/g;function jOe(t){return t.replace(hwe,gwe)}function gwe(t){return"\\"+t}var ywe=[42,63],vwe=["node_modules","bower_components","jspm_packages"],$se=`(?!(${vwe.join("|")})(/|$))`,bwe={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${$se}[^/.][^/]*)*?`,replaceWildcardCharacter:t=>L$e(t,bwe.singleAsteriskRegexFragment)},Swe={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${$se}[^/.][^/]*)*?`,replaceWildcardCharacter:t=>L$e(t,Swe.singleAsteriskRegexFragment)},dgt={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:t=>L$e(t,dgt.singleAsteriskRegexFragment)},WOe={files:bwe,directories:Swe,exclude:dgt};function Gse(t,n,a){let u=XZ(t,n,a);return!u||!u.length?void 0:`^(${u.map(v=>`(${v})`).join("|")})${a==="exclude"?"($|/)":"$"}`}function XZ(t,n,a){if(!(t===void 0||t.length===0))return za(t,u=>u&&xwe(u,n,a,WOe[a]))}function Ame(t){return!/[.*?]/.test(t)}function zOe(t,n,a){let u=t&&xwe(t,n,a,WOe[a]);return u&&`^(${u})${a==="exclude"?"($|/)":"$"}`}function xwe(t,n,a,{singleAsteriskRegexFragment:u,doubleAsteriskRegexFragment:m,replaceWildcardCharacter:g}=WOe[a]){let v="",x=!1,k=_pe(t,n),T=Bu(k);if(a!=="exclude"&&T==="**")return;k[0]=OE(k[0]),Ame(T)&&k.push("**","*");let I=0;for(let A of k){if(A==="**")v+=m;else if(a==="directories"&&(v+="(",I++),x&&(v+=uh),a!=="exclude"){let M="";A.charCodeAt(0)===42?(M+="([^./]"+u+")?",A=A.substr(1)):A.charCodeAt(0)===63&&(M+="[^./]",A=A.substr(1)),M+=A.replace(hwe,g),M!==A&&(v+=$se),v+=M}else v+=A.replace(hwe,g);x=!0}for(;I>0;)v+=")?",I--;return v}function L$e(t,n){return t==="*"?n:t==="?"?"[^/]":"\\"+t}function Kse(t,n,a,u,m){t=Kd(t),m=Kd(m);let g=Ps(m,t);return{includeFilePatterns:$i(XZ(a,g,"files"),v=>`^${v}$`),includeFilePattern:Gse(a,g,"files"),includeDirectoryPattern:Gse(a,g,"directories"),excludePattern:Gse(n,g,"exclude"),basePaths:fgt(t,a,u)}}function U3(t,n){return new RegExp(t,n?"":"i")}function Cwe(t,n,a,u,m,g,v,x,k){t=Kd(t),g=Kd(g);let T=Kse(t,a,u,m,g),I=T.includeFilePatterns&&T.includeFilePatterns.map(K=>U3(K,m)),A=T.includeDirectoryPattern&&U3(T.includeDirectoryPattern,m),M=T.excludePattern&&U3(T.excludePattern,m),R=I?I.map(()=>[]):[[]],H=new Map,U=U0(m);for(let K of T.basePaths)$(K,Ps(g,K),v);return cr(R);function $(K,re,X){let ne=U(k(re));if(H.has(ne))return;H.set(ne,!0);let{files:se,directories:_e}=x(K);for(let ae of du(se,Jg)){let le=Ps(K,ae),Ee=Ps(re,ae);if(!(n&&!gg(le,n))&&!(M&&M.test(Ee)))if(!I)R[0].push(le);else{let xe=_n(I,be=>be.test(Ee));xe!==-1&&R[xe].push(le)}}if(!(X!==void 0&&(X--,X===0)))for(let ae of du(_e,Jg)){let le=Ps(K,ae),Ee=Ps(re,ae);(!A||A.test(Ee))&&(!M||!M.test(Ee))&&$(le,Ee,X)}}}function fgt(t,n,a){let u=[t];if(n){let m=[];for(let g of n){let v=LC(g)?g:Kd(Ps(t,g));m.push(_gt(v))}m.sort(s4(!a));for(let g of m)Yt(u,v=>!Gp(v,g,t,!a))&&u.push(g)}return u}function _gt(t){let n=Rr(t,ywe);return n<0?B$(t)?OE(Cc(t)):t:t.substring(0,t.lastIndexOf(uh,n))}function Xse(t,n){return n||Jj(t)||3}function Jj(t){switch(t.substr(t.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}var WG=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],Yse=cr(WG),O$e=[...WG,[".json"]],kwe=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],F$e=[[".js",".jsx"],[".mjs"],[".cjs"]],P5=cr(F$e),Z6=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],VOe=[...Z6,[".json"]],wwe=[".d.ts",".d.cts",".d.mts"],Pme=[".ts",".cts",".mts",".tsx"],zG=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"];function qj(t,n){let a=t&&T0(t);if(!n||n.length===0)return a?Z6:WG;let u=a?Z6:WG,m=cr(u);return[...u,...Dc(n,v=>v.scriptKind===7||a&&HOe(v.scriptKind)&&!m.includes(v.extension)?[v.extension]:void 0)]}function L5(t,n){return!t||!Q6(t)?n:n===Z6?VOe:n===WG?O$e:[...n,[".json"]]}function HOe(t){return t===1||t===2}function eL(t){return En(P5,n=>Wh(t,n))}function VG(t){return En(Yse,n=>Wh(t,n))}function Twe(t){return En(Pme,n=>Wh(t,n))&&!ey(t)}var uU=(t=>(t[t.Minimal=0]="Minimal",t[t.Index=1]="Index",t[t.JsExtension=2]="JsExtension",t[t.TsExtension=3]="TsExtension",t))(uU||{});function UOe({imports:t},n=ow(eL,VG)){return Je(t,({text:a})=>t_(a)&&!gg(a,zG)?n(a):void 0)||!1}function M$e(t,n,a,u){let m=S1(a),g=3<=m&&m<=99;if(t==="js"||n===99&&g)return DK(a)&&v()!==2?3:2;if(t==="minimal")return 0;if(t==="index")return 1;if(!DK(a))return u&&UOe(u)?2:0;return v();function v(){let x=!1,k=u?.imports.length?u.imports:u&&$v(u)?Ewe(u).map(T=>T.arguments[0]):F;for(let T of k)if(t_(T.text)){if(g&&n===1&&R2e(u,T,a)===99||gg(T.text,zG))continue;if(VG(T.text))return 3;eL(T.text)&&(x=!0)}return x?2:0}}function Ewe(t){let n=0,a;for(let u of t.statements){if(n>3)break;lb(u)?a=Pl(a,u.declarationList.declarations.map(m=>m.initializer)):E0(u)&&es(u.expression,!0)?a=ar(a,u.expression):n++}return a||F}function Qse(t,n,a){if(!t)return!1;let u=qj(n,a);for(let m of cr(L5(n,u)))if(Wh(t,m))return!0;return!1}function Lme(t){let n=t.match(/\//g);return n?n.length:0}function O5(t,n){return m_(Lme(t),Lme(n))}var YZ=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"];function Qx(t){for(let n of YZ){let a=XA(t,n);if(a!==void 0)return a}return t}function XA(t,n){return Wh(t,n)?j8(t,n):void 0}function j8(t,n){return t.substring(0,t.length-n.length)}function J3(t,n){return QB(t,n,YZ,!1)}function dU(t){let n=t.indexOf("*");return n===-1?t:t.indexOf("*",n+1)!==-1?void 0:{prefix:t.substr(0,n),suffix:t.substr(n+1)}}function Zse(t){return Dc(Zy(t),n=>dU(n))}function hN(t){return!(t>=0)}function eae(t){return t===".ts"||t===".tsx"||t===".d.ts"||t===".cts"||t===".mts"||t===".d.mts"||t===".d.cts"||xl(t,".d.")&&xh(t,".ts")}function QZ(t){return eae(t)||t===".json"}function F5(t){let n=Pg(t);return n!==void 0?n:Se.fail(`File ${t} has unknown extension.`)}function JOe(t){return Pg(t)!==void 0}function Pg(t){return jt(YZ,n=>Wh(t,n))}function HG(t,n){return t.checkJsDirective?t.checkJsDirective.enabled:n.checkJs}var UG={files:F,directories:F};function tL(t,n){let a=[];for(let u of t){if(u===n)return n;Yu(u)||a.push(u)}return tH(a,u=>u,n)}function $j(t,n){let a=t.indexOf(n);return Se.assert(a!==-1),t.slice(a)}function Pd(t,...n){return n.length&&(t.relatedInformation||(t.relatedInformation=[]),Se.assert(t.relatedInformation!==F,"Diagnostic had empty array singleton for related info, but is still being constructed!"),t.relatedInformation.push(...n)),t}function KE(t,n){Se.assert(t.length!==0);let a=n(t[0]),u=a;for(let m=1;mu&&(u=g)}return{min:a,max:u}}function ZZ(t){return{pos:J6(t),end:t.end}}function fU(t,n){let a=n.pos-1,u=Math.min(t.text.length,fd(t.text,n.end)+1);return{pos:a,end:u}}function W8(t,n,a){return iL(t,n,a,!1)}function qOe(t,n,a){return iL(t,n,a,!0)}function iL(t,n,a,u){return n.skipLibCheck&&t.isDeclarationFile||n.skipDefaultLibCheck&&t.hasNoDefaultLib||!u&&n.noCheck||a.isSourceOfProjectReferenceRedirect(t.fileName)||!Z7(t,n)}function Z7(t,n){if(t.checkJsDirective&&t.checkJsDirective.enabled===!1)return!1;if(t.scriptKind===3||t.scriptKind===4||t.scriptKind===5)return!0;let u=(t.scriptKind===1||t.scriptKind===2)&&HG(t,n);return tG(t,n.checkJs)||u||t.scriptKind===7}function eee(t,n){return t===n||typeof t=="object"&&t!==null&&typeof n=="object"&&n!==null&&k2(t,n,eee)}function _U(t){let n;switch(t.charCodeAt(1)){case 98:case 66:n=1;break;case 111:case 79:n=3;break;case 120:case 88:n=4;break;default:let T=t.length-1,I=0;for(;t.charCodeAt(I)===48;)I++;return t.slice(I,T)||"0"}let a=2,u=t.length-1,m=(u-a)*n,g=new Uint16Array((m>>>4)+(m&15?1:0));for(let T=u-1,I=0;T>=a;T--,I+=n){let A=I>>>4,M=t.charCodeAt(T),H=(M<=57?M-48:10+M-(M<=70?65:97))<<(I&15);g[A]|=H;let U=H>>>16;U&&(g[A+1]|=U)}let v="",x=g.length-1,k=!0;for(;k;){let T=0;k=!1;for(let I=x;I>=0;I--){let A=T<<16|g[I],M=A/10|0;g[I]=M,T=A-M*10,M&&!k&&(x=I,k=!0)}v=T+v}return v}function z8({negative:t,base10Value:n}){return(t&&n!=="0"?"-":"")+n}function Qd(t){if(tee(t,!1))return Ome(t)}function Ome(t){let n=t.startsWith("-"),a=_U(`${n?t.slice(1):t}n`);return{negative:n,base10Value:a}}function tee(t,n){if(t==="")return!1;let a=LA(99,!1),u=!0;a.setOnError(()=>u=!1),a.setText(t+"n");let m=a.scan(),g=m===41;g&&(m=a.scan());let v=a.getTokenFlags();return u&&m===10&&a.getTokenEnd()===t.length+1&&!(v&512)&&(!n||t===z8({negative:g,base10Value:_U(a.getTokenValue())}))}function q3(t){return!!(t.flags&33554432)||AZ(t)||Dwe(t)||Fme(t)||!(ab(t)||tae(t))}function tae(t){return Ai(t)&&Q0(t.parent)&&t.parent.name===t}function Fme(t){for(;t.kind===80||t.kind===211;)t=t.parent;if(t.kind!==167)return!1;if(kc(t.parent,64))return!0;let n=t.parent.parent.kind;return n===264||n===187}function Dwe(t){if(t.kind!==80)return!1;let n=go(t.parent,a=>{switch(a.kind){case 298:return!0;case 211:case 233:return!1;default:return"quit"}});return n?.token===119||n?.parent.kind===264}function JG(t){return M_(t)&&Ai(t.typeName)}function eM(t,n=p8){if(t.length<2)return!0;let a=t[0];for(let u=1,m=t.length;ut.includes(n))}function rI(t){if(!t.parent)return;switch(t.kind){case 168:let{parent:a}=t;return a.kind===195?void 0:a.typeParameters;case 169:return t.parent.parameters;case 204:return t.parent.templateSpans;case 239:return t.parent.templateSpans;case 170:{let{parent:u}=t;return _W(u)?u.modifiers:void 0}case 298:return t.parent.heritageClauses}let{parent:n}=t;if(SH(t))return G5(t.parent)?void 0:t.parent.tags;switch(n.kind){case 187:case 264:return Xh(t)?n.members:void 0;case 192:case 193:return n.types;case 189:case 209:case 355:case 275:case 279:return n.elements;case 210:case 292:return n.properties;case 213:case 214:return Qa(t)?n.typeArguments:n.expression===t?void 0:n.arguments;case 284:case 288:return hZ(t)?n.children:void 0;case 286:case 285:return Qa(t)?n.typeArguments:void 0;case 241:case 296:case 297:case 268:return n.statements;case 269:return n.clauses;case 263:case 231:return rl(t)?n.members:void 0;case 266:return pb(t)?n.members:void 0;case 307:return n.statements}}function iee(t){if(!t.typeParameters){if(En(t.parameters,n=>!gm(n)))return!0;if(t.kind!==219){let n=Ed(t.parameters);if(!(n&&B3(n)))return!0}}return!1}function GG(t){return t==="Infinity"||t==="-Infinity"||t==="NaN"}function q_(t){return t.kind===260&&t.parent.kind===299}function H8(t){return t.kind===218||t.kind===219}function _w(t){return t.replace(/\$/g,()=>"\\$")}function nL(t){return(+t).toString()===t}function nee(t,n,a,u,m){let g=m&&t==="new";return!g&&Jb(t,n)?Me.createIdentifier(t):!u&&!g&&nL(t)&&+t>=0?Me.createNumericLiteral(+t):Me.createStringLiteral(t,!!a)}function KG(t){return!!(t.flags&262144&&t.isThisType)}function Kj(t){let n=0,a=0,u=0,m=0,g;(T=>{T[T.BeforeNodeModules=0]="BeforeNodeModules",T[T.NodeModules=1]="NodeModules",T[T.Scope=2]="Scope",T[T.PackageContent=3]="PackageContent"})(g||(g={}));let v=0,x=0,k=0;for(;x>=0;)switch(v=x,x=t.indexOf("/",v+1),k){case 0:t.indexOf(nP,v)===v&&(n=v,a=x,k=1);break;case 1:case 2:k===1&&t.charAt(v+1)==="@"?k=2:(u=x,k=3);break;case 3:t.indexOf(nP,v)===v?k=1:k=3;break}return m=v,k>1?{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:a,packageRootIndex:u,fileNameIndex:m}:void 0}function Xj(t){switch(t.kind){case 168:case 263:case 264:case 265:case 266:case 346:case 338:case 340:return!0;case 273:return t.isTypeOnly;case 276:case 281:return t.parent.parent.isTypeOnly;default:return!1}}function pU(t){return Z8(t)||Zh(t)||fp(t)||D0(t)||ky(t)||Xj(t)||Dh(t)&&!j7(t)&&!y4(t)}function M5(t){if(!vH(t))return!1;let{isBracketed:n,typeExpression:a}=t;return n||!!a&&a.type.kind===316}function Rme(t,n){if(t.length===0)return!1;let a=t.charCodeAt(0);return a===35?t.length>1&&HD(t.charCodeAt(1),n):HD(a,n)}function K3(t){var n;return((n=fee(t))==null?void 0:n.kind)===0}function X3(t){return Ys(t)&&(t.type&&t.type.kind===316||mu(t).some(M5))}function XT(t){switch(t.kind){case 172:case 171:return!!t.questionToken;case 169:return!!t.questionToken||X3(t);case 348:case 341:return M5(t);default:return!1}}function iae(t){let n=t.kind;return(n===211||n===212)&&P4(t.expression)}function mU(t){return Ys(t)&&Tu(t)&&Gx(t)&&!!Cpe(t)}function ree(t){return Se.checkDefined(Bme(t))}function Bme(t){let n=Cpe(t);return n&&n.typeExpression&&n.typeExpression.type}function Y3(t){return Ai(t)?t.escapedText:R5(t)}function Yj(t){return Ai(t)?Un(t):XG(t)}function oee(t){let n=t.kind;return n===80||n===295}function R5(t){return`${t.namespace.escapedText}:${Un(t.name)}`}function XG(t){return`${Un(t.namespace)}:${Un(t.name)}`}function see(t){return Ai(t)?Un(t):XG(t)}function px(t){return!!(t.flags&8576)}function rT(t){return t.flags&8192?t.escapedName:t.flags&384?kh(""+t.value):Se.fail()}function B5(t){return!!t&&(ba(t)||T_(t)||ms(t))}function jme(t){return t===void 0?!1:!!LW(t.attributes)}var Iwe=String.prototype.replace;function rL(t,n){return Iwe.call(t,"*",n)}function hU(t){return Ai(t.name)?t.name.escapedText:kh(t.name.text)}function Nwe(t){switch(t.kind){case 168:case 169:case 172:case 171:case 185:case 184:case 179:case 180:case 181:case 174:case 173:case 175:case 176:case 177:case 178:case 183:case 182:case 186:case 187:case 188:case 189:case 192:case 193:case 196:case 190:case 191:case 197:case 198:case 194:case 195:case 203:case 205:case 202:case 328:case 329:case 346:case 338:case 340:case 345:case 344:case 324:case 325:case 326:case 341:case 348:case 317:case 315:case 314:case 312:case 313:case 322:case 318:case 309:case 333:case 335:case 334:case 350:case 343:case 199:case 200:case 262:case 241:case 268:case 243:case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 251:case 252:case 253:case 254:case 255:case 256:case 257:case 258:case 260:case 208:case 263:case 264:case 265:case 266:case 267:case 272:case 271:case 278:case 277:case 242:case 259:case 282:return!0}return!1}function bg(t,n=!1,a=!1,u=!1){return{value:t,isSyntacticallyString:n,resolvedOtherFiles:a,hasExternalReferences:u}}function YG({evaluateElementAccessExpression:t,evaluateEntityNameExpression:n}){function a(m,g){let v=!1,x=!1,k=!1;switch(m=J_(m),m.kind){case 224:let T=a(m.operand,g);if(x=T.resolvedOtherFiles,k=T.hasExternalReferences,typeof T.value=="number")switch(m.operator){case 40:return bg(T.value,v,x,k);case 41:return bg(-T.value,v,x,k);case 55:return bg(~T.value,v,x,k)}break;case 226:{let I=a(m.left,g),A=a(m.right,g);if(v=(I.isSyntacticallyString||A.isSyntacticallyString)&&m.operatorToken.kind===40,x=I.resolvedOtherFiles||A.resolvedOtherFiles,k=I.hasExternalReferences||A.hasExternalReferences,typeof I.value=="number"&&typeof A.value=="number")switch(m.operatorToken.kind){case 52:return bg(I.value|A.value,v,x,k);case 51:return bg(I.value&A.value,v,x,k);case 49:return bg(I.value>>A.value,v,x,k);case 50:return bg(I.value>>>A.value,v,x,k);case 48:return bg(I.value<=2)break;case 174:case 176:case 177:case 178:case 262:if(_e&3&&Ke==="arguments"){we=a;break e}break;case 218:if(_e&3&&Ke==="arguments"){we=a;break e}if(_e&16){let _t=ne.name;if(_t&&Ke===_t.escapedText){we=ne.symbol;break e}}break;case 170:ne.parent&&ne.parent.kind===169&&(ne=ne.parent),ne.parent&&(rl(ne.parent)||ne.parent.kind===263)&&(ne=ne.parent);break;case 346:case 338:case 340:case 351:let rt=Ej(ne);rt&&(ne=rt.parent);break;case 169:Ae&&(Ae===ne.initializer||Ae===ne.name&&Uu(Ae))&&(Oe||(Oe=ne));break;case 208:Ae&&(Ae===ne.initializer||Ae===ne.name&&Uu(Ae))&&k4(ne)&&!Oe&&(Oe=ne);break;case 195:if(_e&262144){let _t=ne.typeParameter.name;if(_t&&Ke===_t.escapedText){we=ne.typeParameter.symbol;break e}}break;case 281:Ae&&Ae===ne.propertyName&&ne.parent.parent.moduleSpecifier&&(ne=ne.parent.parent.parent);break}re(ne,Ae)&&(Ge=ne),Ae=ne,ne=tC(ne)?tme(ne)||ne.parent:(hw(ne)||yee(ne))&&P3(ne)||ne.parent}if(le&&we&&(!Ge||we!==Ge.symbol)&&(we.isReferenced|=_e),!we){if(Ae&&(Se.assertNode(Ae,ul),Ae.commonJsModuleIndicator&&Ke==="exports"&&_e&Ae.symbol.flags))return Ae.symbol;Ee||(we=v(g,Ke,_e))}if(!we&&fe&&Ys(fe)&&fe.parent&&es(fe.parent,!1))return n;if(ae){if(he&&T(fe,Ke,he,we))return;we?A(fe,we,_e,Ae,Oe,Re):I(fe,se,_e,ae)}return we}function $(ne,se,_e){let ae=h_(t),le=se;if(Fl(_e)&&le.body&&ne.valueDeclaration&&ne.valueDeclaration.pos>=le.body.pos&&ne.valueDeclaration.end<=le.body.end&&ae>=2){let be=k(le);return be===void 0&&(be=ee(le.parameters,Ee)||!1,x(le,be)),!be}return!1;function Ee(be){return xe(be.name)||!!be.initializer&&xe(be.initializer)}function xe(be){switch(be.kind){case 219:case 218:case 262:case 176:return!1;case 174:case 177:case 178:case 303:return xe(be.name);case 172:return G0(be)?!R:xe(be.name);default:return Uoe(be)||By(be)?ae<7:Zd(be)&&be.dotDotDotToken&&fb(be.parent)?ae<4:Qa(be)?!1:_d(be,xe)||!1}}}function K(ne,se){return ne.kind!==219&&ne.kind!==218?C1(ne)||(Rp(ne)||ne.kind===172&&!Xd(ne))&&(!se||se!==ne.name):se&&se===ne.name?!1:ne.asteriskToken||kc(ne,1024)?!0:!w3(ne)}function re(ne,se){switch(ne.kind){case 169:return!!se&&se===ne.name;case 262:case 263:case 264:case 266:case 265:case 267:return!0;default:return!1}}function X(ne,se){if(ne.declarations){for(let _e of ne.declarations)if(_e.kind===168&&(tC(_e.parent)?L3(_e.parent):_e.parent)===se)return!(tC(_e.parent)&&jt(_e.parent.parent.tags,ux))}return!1}}function tM(t,n=!0){switch(Se.type(t),t.kind){case 112:case 97:case 9:case 11:case 15:return!0;case 10:return n;case 224:return t.operator===41?mx(t.operand)||n&&ZG(t.operand):t.operator===40?mx(t.operand):!1;default:return!1}}function Awe(t){for(;t.kind===217;)t=t.expression;return t}function j$e(t){switch(Se.type(t),t.kind){case 169:case 171:case 172:case 208:case 211:case 212:case 226:case 260:case 277:case 303:return!0;default:return!1}}function j5(t){let n=go(t,Dd);return!!n&&!n.importClause}function rae(){let t,n,a,u,m;return{createBaseSourceFileNode:g,createBaseIdentifierNode:v,createBasePrivateIdentifierNode:x,createBaseTokenNode:k,createBaseNode:T};function g(I){return new(m||(m=xd.getSourceFileConstructor()))(I,-1,-1)}function v(I){return new(a||(a=xd.getIdentifierConstructor()))(I,-1,-1)}function x(I){return new(u||(u=xd.getPrivateIdentifierConstructor()))(I,-1,-1)}function k(I){return new(n||(n=xd.getTokenConstructor()))(I,-1,-1)}function T(I){return new(t||(t=xd.getNodeConstructor()))(I,-1,-1)}}function xy(t){let n,a;return{getParenthesizeLeftSideOfBinaryForOperator:u,getParenthesizeRightSideOfBinaryForOperator:m,parenthesizeLeftSideOfBinary:T,parenthesizeRightSideOfBinary:I,parenthesizeExpressionOfComputedPropertyName:A,parenthesizeConditionOfConditionalExpression:M,parenthesizeBranchOfConditionalExpression:R,parenthesizeExpressionOfExportDefault:H,parenthesizeExpressionOfNew:U,parenthesizeLeftSideOfAccess:$,parenthesizeOperandOfPostfixUnary:K,parenthesizeOperandOfPrefixUnary:re,parenthesizeExpressionsOfCommaDelimitedList:X,parenthesizeExpressionForDisallowedComma:ne,parenthesizeExpressionOfExpressionStatement:se,parenthesizeConciseBodyOfArrowFunction:_e,parenthesizeCheckTypeOfConditionalType:ae,parenthesizeExtendsTypeOfConditionalType:le,parenthesizeConstituentTypesOfUnionType:xe,parenthesizeConstituentTypeOfUnionType:Ee,parenthesizeConstituentTypesOfIntersectionType:Le,parenthesizeConstituentTypeOfIntersectionType:be,parenthesizeOperandOfTypeOperator:fe,parenthesizeOperandOfReadonlyTypeOperator:we,parenthesizeNonArrayTypeOfPostfixType:Ae,parenthesizeElementTypesOfTupleType:Ge,parenthesizeElementTypeOfTupleType:he,parenthesizeTypeOfOptionalType:Re,parenthesizeTypeArguments:qe,parenthesizeLeadingTypeArgument:$e};function u(rt){n||(n=new Map);let _t=n.get(rt);return _t||(_t=ft=>T(rt,ft),n.set(rt,_t)),_t}function m(rt){a||(a=new Map);let _t=a.get(rt);return _t||(_t=ft=>I(rt,void 0,ft),a.set(rt,_t)),_t}function g(rt,_t,ft,mt){let ut=JT(226,rt),ht=Cse(226,rt),Kt=dh(_t);if(!ft&&_t.kind===219&&ut>3)return!0;let ni=Qb(Kt);switch(m_(ni,ut)){case-1:return!(!ft&&ht===1&&_t.kind===229);case 1:return!1;case 0:if(ft)return ht===1;if(ms(Kt)&&Kt.operatorToken.kind===rt){if(v(rt))return!1;if(rt===40){let pi=mt?x(mt):0;if(bH(pi)&&pi===x(Kt))return!1}}return WH(Kt)===0}}function v(rt){return rt===42||rt===52||rt===51||rt===53||rt===28}function x(rt){if(rt=dh(rt),bH(rt.kind))return rt.kind;if(rt.kind===226&&rt.operatorToken.kind===40){if(rt.cachedLiteralKind!==void 0)return rt.cachedLiteralKind;let _t=x(rt.left),ft=bH(_t)&&_t===x(rt.right)?_t:0;return rt.cachedLiteralKind=ft,ft}return 0}function k(rt,_t,ft,mt){return dh(_t).kind===217?_t:g(rt,_t,ft,mt)?t.createParenthesizedExpression(_t):_t}function T(rt,_t){return k(rt,_t,!0)}function I(rt,_t,ft){return k(rt,ft,!1,_t)}function A(rt){return lK(rt)?t.createParenthesizedExpression(rt):rt}function M(rt){let _t=JT(227,58),ft=dh(rt),mt=Qb(ft);return m_(mt,_t)!==1?t.createParenthesizedExpression(rt):rt}function R(rt){let _t=dh(rt);return lK(_t)?t.createParenthesizedExpression(rt):rt}function H(rt){let _t=dh(rt),ft=lK(_t);if(!ft)switch(Va(_t,!1).kind){case 231:case 218:ft=!0}return ft?t.createParenthesizedExpression(rt):rt}function U(rt){let _t=Va(rt,!0);switch(_t.kind){case 213:return t.createParenthesizedExpression(rt);case 214:return _t.arguments?rt:t.createParenthesizedExpression(rt)}return $(rt)}function $(rt,_t){let ft=dh(rt);return MS(ft)&&(ft.kind!==214||ft.arguments)&&(_t||!By(ft))?rt:Fn(t.createParenthesizedExpression(rt),rt)}function K(rt){return MS(rt)?rt:Fn(t.createParenthesizedExpression(rt),rt)}function re(rt){return Epe(rt)?rt:Fn(t.createParenthesizedExpression(rt),rt)}function X(rt){let _t=$s(rt,ne);return Fn(t.createNodeArray(_t,rt.hasTrailingComma),rt)}function ne(rt){let _t=dh(rt),ft=Qb(_t),mt=JT(226,28);return ft>mt?rt:Fn(t.createParenthesizedExpression(rt),rt)}function se(rt){let _t=dh(rt);if(Od(_t)){let mt=_t.expression,ut=dh(mt).kind;if(ut===218||ut===219){let ht=t.updateCallExpression(_t,Fn(t.createParenthesizedExpression(mt),mt),_t.typeArguments,_t.arguments);return t.restoreOuterExpressions(rt,ht,8)}}let ft=Va(_t,!1).kind;return ft===210||ft===218?Fn(t.createParenthesizedExpression(rt),rt):rt}function _e(rt){return!qu(rt)&&(lK(rt)||Va(rt,!1).kind===210)?Fn(t.createParenthesizedExpression(rt),rt):rt}function ae(rt){switch(rt.kind){case 184:case 185:case 194:return t.createParenthesizedType(rt)}return rt}function le(rt){switch(rt.kind){case 194:return t.createParenthesizedType(rt)}return rt}function Ee(rt){switch(rt.kind){case 192:case 193:return t.createParenthesizedType(rt)}return ae(rt)}function xe(rt){return t.createNodeArray($s(rt,Ee))}function be(rt){switch(rt.kind){case 192:case 193:return t.createParenthesizedType(rt)}return Ee(rt)}function Le(rt){return t.createNodeArray($s(rt,be))}function fe(rt){switch(rt.kind){case 193:return t.createParenthesizedType(rt)}return be(rt)}function we(rt){switch(rt.kind){case 198:return t.createParenthesizedType(rt)}return fe(rt)}function Ae(rt){switch(rt.kind){case 195:case 198:case 186:return t.createParenthesizedType(rt)}return fe(rt)}function Ge(rt){return t.createNodeArray($s(rt,he))}function he(rt){return Oe(rt)?t.createParenthesizedType(rt):rt}function Oe(rt){return SN(rt)?rt.postfix:YA(rt)||xp(rt)||Dm(rt)||yN(rt)?Oe(rt.type):YE(rt)?Oe(rt.falseType):gx(rt)||lL(rt)?Oe(Bu(rt.types)):Hy(rt)?!!rt.typeParameter.constraint&&Oe(rt.typeParameter.constraint):!1}function Re(rt){return Oe(rt)?t.createParenthesizedType(rt):Ae(rt)}function $e(rt){return Mke(rt)&&rt.typeParameters?t.createParenthesizedType(rt):rt}function Ke(rt,_t){return _t===0?$e(rt):rt}function qe(rt){if(En(rt))return t.createNodeArray($s(rt,Ke))}}var Pwe={getParenthesizeLeftSideOfBinaryForOperator:t=>ps,getParenthesizeRightSideOfBinaryForOperator:t=>ps,parenthesizeLeftSideOfBinary:(t,n)=>n,parenthesizeRightSideOfBinary:(t,n,a)=>a,parenthesizeExpressionOfComputedPropertyName:ps,parenthesizeConditionOfConditionalExpression:ps,parenthesizeBranchOfConditionalExpression:ps,parenthesizeExpressionOfExportDefault:ps,parenthesizeExpressionOfNew:t=>$d(t,MS),parenthesizeLeftSideOfAccess:t=>$d(t,MS),parenthesizeOperandOfPostfixUnary:t=>$d(t,MS),parenthesizeOperandOfPrefixUnary:t=>$d(t,Epe),parenthesizeExpressionsOfCommaDelimitedList:t=>$d(t,f4),parenthesizeExpressionForDisallowedComma:ps,parenthesizeExpressionOfExpressionStatement:ps,parenthesizeConciseBodyOfArrowFunction:ps,parenthesizeCheckTypeOfConditionalType:ps,parenthesizeExtendsTypeOfConditionalType:ps,parenthesizeConstituentTypesOfUnionType:t=>$d(t,f4),parenthesizeConstituentTypeOfUnionType:ps,parenthesizeConstituentTypesOfIntersectionType:t=>$d(t,f4),parenthesizeConstituentTypeOfIntersectionType:ps,parenthesizeOperandOfTypeOperator:ps,parenthesizeOperandOfReadonlyTypeOperator:ps,parenthesizeNonArrayTypeOfPostfixType:ps,parenthesizeElementTypesOfTupleType:t=>$d(t,f4),parenthesizeElementTypeOfTupleType:ps,parenthesizeTypeOfOptionalType:ps,parenthesizeTypeArguments:t=>t&&$d(t,f4),parenthesizeLeadingTypeArgument:ps};function Wme(t){return{convertToFunctionBlock:n,convertToFunctionExpression:a,convertToClassExpression:u,convertToArrayAssignmentElement:m,convertToObjectAssignmentElement:g,convertToAssignmentPattern:v,convertToObjectAssignmentPattern:x,convertToArrayAssignmentPattern:k,convertToAssignmentElementTarget:T};function n(I,A){if(qu(I))return I;let M=t.createReturnStatement(I);Fn(M,I);let R=t.createBlock([M],A);return Fn(R,I),R}function a(I){var A;if(!I.body)return Se.fail("Cannot convert a FunctionDeclaration without a body");let M=t.createFunctionExpression((A=$g(I))==null?void 0:A.filter(R=>!H5(R)&&!bU(R)),I.asteriskToken,I.name,I.typeParameters,I.parameters,I.type,I.body);return Wo(M,I),Fn(M,I),W5(I)&&Vs(M,!0),M}function u(I){var A;let M=t.createClassExpression((A=I.modifiers)==null?void 0:A.filter(R=>!H5(R)&&!bU(R)),I.name,I.typeParameters,I.heritageClauses,I.members);return Wo(M,I),Fn(M,I),W5(I)&&Vs(M,!0),M}function m(I){if(Zd(I)){if(I.dotDotDotToken)return Se.assertNode(I.name,Ai),Wo(Fn(t.createSpreadElement(I.name),I),I);let A=T(I.name);return I.initializer?Wo(Fn(t.createAssignment(A,I.initializer),I),I):A}return $d(I,An)}function g(I){if(Zd(I)){if(I.dotDotDotToken)return Se.assertNode(I.name,Ai),Wo(Fn(t.createSpreadAssignment(I.name),I),I);if(I.propertyName){let A=T(I.name);return Wo(Fn(t.createPropertyAssignment(I.propertyName,I.initializer?t.createAssignment(A,I.initializer):A),I),I)}return Se.assertNode(I.name,Ai),Wo(Fn(t.createShorthandPropertyAssignment(I.name,I.initializer),I),I)}return $d(I,FC)}function v(I){switch(I.kind){case 207:case 209:return k(I);case 206:case 210:return x(I)}}function x(I){return fb(I)?Wo(Fn(t.createObjectLiteralExpression($i(I.elements,g)),I),I):$d(I,Ld)}function k(I){return QE(I)?Wo(Fn(t.createArrayLiteralExpression($i(I.elements,m)),I),I):$d(I,Yg)}function T(I){return Uu(I)?v(I):$d(I,An)}}var aee={convertToFunctionBlock:ld,convertToFunctionExpression:ld,convertToClassExpression:ld,convertToArrayAssignmentElement:ld,convertToObjectAssignmentElement:ld,convertToAssignmentPattern:ld,convertToObjectAssignmentPattern:ld,convertToArrayAssignmentPattern:ld,convertToAssignmentElementTarget:ld},oae=0,sae=(t=>(t[t.None=0]="None",t[t.NoParenthesizerRules=1]="NoParenthesizerRules",t[t.NoNodeConverters=2]="NoNodeConverters",t[t.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",t[t.NoOriginalNode=8]="NoOriginalNode",t))(sae||{}),$Oe=[];function GOe(t){$Oe.push(t)}function cee(t,n){let a=t&8?ps:Wo,u=H0(()=>t&1?Pwe:xy(K)),m=H0(()=>t&2?aee:Wme(K)),g=l_(J=>(me,ze)=>Ft(me,J,ze)),v=l_(J=>me=>gi(J,me)),x=l_(J=>me=>yn(me,J)),k=l_(J=>()=>ro(J)),T=l_(J=>me=>Z4(J,me)),I=l_(J=>(me,ze)=>ys(J,me,ze)),A=l_(J=>(me,ze)=>Z2(J,me,ze)),M=l_(J=>(me,ze)=>F0(J,me,ze)),R=l_(J=>(me,ze)=>qy(J,me,ze)),H=l_(J=>(me,ze,kt)=>F1(J,me,ze,kt)),U=l_(J=>(me,ze,kt)=>yI(J,me,ze,kt)),$=l_(J=>(me,ze,kt,Di)=>vT(J,me,ze,kt,Di)),K={get parenthesizer(){return u()},get converters(){return m()},baseFactory:n,flags:t,createNodeArray:re,createNumericLiteral:_e,createBigIntLiteral:ae,createStringLiteral:Ee,createStringLiteralFromNode:xe,createRegularExpressionLiteral:be,createLiteralLikeNode:Le,createIdentifier:Ae,createTempVariable:Ge,createLoopVariable:he,createUniqueName:Oe,getGeneratedNameForNode:Re,createPrivateIdentifier:Ke,createUniquePrivateName:rt,getGeneratedPrivateNameForNode:_t,createToken:mt,createSuper:ut,createThis:ht,createNull:Kt,createTrue:ni,createFalse:Ut,createModifier:pi,createModifiersFromModifierFlags:wi,createQualifiedName:Bi,updateQualifiedName:Bn,createComputedPropertyName:mr,updateComputedPropertyName:Ei,createTypeParameterDeclaration:zn,updateTypeParameterDeclaration:zr,createParameterDeclaration:xr,updateParameterDeclaration:lo,createDecorator:_r,updateDecorator:Hs,createPropertySignature:ai,updatePropertySignature:mn,createPropertyDeclaration:Gr,updatePropertyDeclaration:ci,createMethodSignature:gn,updateMethodSignature:Sr,createMethodDeclaration:vo,updateMethodDeclaration:$o,createConstructorDeclaration:lt,updateConstructorDeclaration:Xi,createGetAccessorDeclaration:Lt,updateGetAccessorDeclaration:Pe,createSetAccessorDeclaration:Ve,updateSetAccessorDeclaration:Tt,createCallSignature:Wt,updateCallSignature:pt,createConstructSignature:Gt,updateConstructSignature:Mt,createIndexSignature:hi,updateIndexSignature:Ie,createClassStaticBlockDeclaration:Qs,updateClassStaticBlockDeclaration:Pi,createTemplateLiteralTypeSpan:Bt,updateTemplateLiteralTypeSpan:ui,createKeywordTypeNode:Ue,createTypePredicateNode:Ce,updateTypePredicateNode:ye,createTypeReferenceNode:vt,updateTypeReferenceNode:pe,createFunctionTypeNode:at,updateFunctionTypeNode:We,createConstructorTypeNode:At,updateConstructorTypeNode:Vn,createTypeQueryNode:Si,updateTypeQueryNode:Ri,createTypeLiteralNode:Cn,updateTypeLiteralNode:cn,createArrayTypeNode:Pn,updateArrayTypeNode:Wi,createTupleTypeNode:Kn,updateTupleTypeNode:Ti,createNamedTupleMember:wr,updateNamedTupleMember:Nr,createOptionalTypeNode:Vr,updateOptionalTypeNode:ir,createRestTypeNode:Ts,updateRestTypeNode:pa,createUnionTypeNode:Fa,updateUnionTypeNode:Pf,createIntersectionTypeNode:$l,updateIntersectionTypeNode:cc,createConditionalTypeNode:vl,updateConditionalTypeNode:G_,createInferTypeNode:ja,updateInferTypeNode:Gd,createImportTypeNode:gr,updateImportTypeNode:Wl,createParenthesizedType:Vc,updateParenthesizedType:xu,createThisTypeNode:Ar,createTypeOperatorNode:Hl,updateTypeOperatorNode:Lf,createIndexedAccessTypeNode:Rt,updateIndexedAccessTypeNode:bt,createMappedTypeNode:Ci,updateMappedTypeNode:kn,createLiteralTypeNode:ke,updateLiteralTypeNode:Qt,createTemplateLiteralType:Su,updateTemplateLiteralType:Aa,createObjectBindingPattern:oi,updateObjectBindingPattern:nn,createArrayBindingPattern:hr,updateArrayBindingPattern:io,createBindingElement:Er,updateBindingElement:is,createArrayLiteralExpression:zs,updateArrayLiteralExpression:da,createObjectLiteralExpression:cu,updateObjectLiteralExpression:ru,createPropertyAccessExpression:t&4?(J,me)=>De(B_(J,me),262144):B_,updatePropertyAccessExpression:vd,createPropertyAccessChain:t&4?(J,me,ze)=>De(td(J,me,ze),262144):td,updatePropertyAccessChain:rp,createElementAccessExpression:er,updateElementAccessExpression:wo,createElementAccessChain:cl,updateElementAccessChain:ri,createCallExpression:xo,updateCallExpression:Lc,createCallChain:tl,updateCallChain:il,createNewExpression:Fd,updateNewExpression:hp,createTaggedTemplateExpression:Wf,updateTaggedTemplateExpression:Md,createTypeAssertion:j_,updateTypeAssertion:tg,createParenthesizedExpression:Rg,updateParenthesizedExpression:e0,createFunctionExpression:A0,updateFunctionExpression:gh,createArrowFunction:wp,updateArrowFunction:xb,createDeleteExpression:ig,updateDeleteExpression:wg,createTypeOfExpression:Ap,updateTypeOfExpression:xt,createVoidExpression:ln,updateVoidExpression:Dr,createAwaitExpression:Tr,updateAwaitExpression:st,createPrefixUnaryExpression:gi,updatePrefixUnaryExpression:an,createPostfixUnaryExpression:yn,updatePostfixUnaryExpression:Be,createBinaryExpression:Ft,updateBinaryExpression:yr,createConditionalExpression:He,updateConditionalExpression:Xt,createTemplateExpression:un,updateTemplateExpression:Ur,createTemplateHead:bd,createTemplateMiddle:op,createTemplateTail:Pv,createNoSubstitutionTemplateLiteral:Lv,createTemplateLiteralLikeNode:Id,createYieldExpression:P0,updateYieldExpression:Ny,createSpreadElement:y_,updateSpreadElement:ng,createClassExpression:eh,updateClassExpression:m0,createOmittedExpression:Z_,createExpressionWithTypeArguments:Ay,updateExpressionWithTypeArguments:Py,createAsExpression:iy,updateAsExpression:sC,createNonNullExpression:h0,updateNonNullExpression:aC,createSatisfiesExpression:A1,updateSatisfiesExpression:dv,createNonNullChain:Ov,updateNonNullChain:xi,createMetaProperty:Ui,updateMetaProperty:nr,createTemplateSpan:Hr,updateTemplateSpan:yo,createSemicolonClassElement:fs,createBlock:Co,updateBlock:Os,createVariableStatement:Jc,updateVariableStatement:qt,createEmptyStatement:bi,createExpressionStatement:Li,updateExpressionStatement:Yn,createIfStatement:Mr,updateIfStatement:Bo,createDoStatement:bo,updateDoStatement:Zs,createWhileStatement:jc,updateWhileStatement:bs,createForStatement:nl,updateForStatement:Us,createForInStatement:Pu,updateForInStatement:ep,createForOfStatement:L0,updateForOfStatement:Cb,createContinueStatement:O0,updateContinueStatement:HS,createBreakStatement:t0,updateBreakStatement:cD,createReturnStatement:cC,updateReturnStatement:Ok,createWithStatement:lf,updateWithStatement:s2,createSwitchStatement:wx,updateSwitchStatement:kw,createLabeledStatement:QC,updateLabeledStatement:US,createThrowStatement:Zv,updateThrowStatement:fv,createTryStatement:_v,updateTryStatement:Gu,createDebuggerStatement:pT,createVariableDeclaration:pP,updateVariableDeclaration:fI,createVariableDeclarationList:ZC,updateVariableDeclarationList:Tx,createFunctionDeclaration:e1,updateFunctionDeclaration:P1,createClassDeclaration:ny,updateClassDeclaration:lD,createInterfaceDeclaration:Fk,updateInterfaceDeclaration:Tg,createTypeAliasDeclaration:Oi,updateTypeAliasDeclaration:L1,createEnumDeclaration:zm,updateEnumDeclaration:_I,createModuleDeclaration:Hh,updateModuleDeclaration:pv,createModuleBlock:Bg,updateModuleBlock:Mk,createCaseBlock:mT,updateCaseBlock:ki,createNamespaceExportDeclaration:Ly,updateNamespaceExportDeclaration:lC,createImportEqualsDeclaration:mP,updateImportEqualsDeclaration:Rk,createImportDeclaration:uC,updateImportDeclaration:Ex,createImportClause:pI,updateImportClause:Ou,createAssertClause:jg,updateAssertClause:ek,createAssertEntry:ww,updateAssertEntry:Kc,createImportTypeAssertionContainer:oa,updateImportTypeAssertionContainer:yh,createImportAttributes:hT,updateImportAttributes:dC,createImportAttribute:dD,updateImportAttribute:Uy,createNamespaceImport:Y2,updateNamespaceImport:fC,createNamespaceExport:Nl,updateNamespaceExport:ra,createNamedImports:Wp,updateNamedImports:Tw,createImportSpecifier:W_,updateImportSpecifier:Ew,createExportAssignment:mI,updateExportAssignment:LN,createExportDeclaration:yp,updateExportDeclaration:a2,createNamedExports:Dx,updateNamedExports:sa,createExportSpecifier:ry,updateExportSpecifier:Cu,createMissingDeclaration:Q2,createExternalModuleReference:aa,updateExternalModuleReference:rm,get createJSDocAllType(){return k(312)},get createJSDocUnknownType(){return k(313)},get createJSDocNonNullableType(){return A(315)},get updateJSDocNonNullableType(){return M(315)},get createJSDocNullableType(){return A(314)},get updateJSDocNullableType(){return M(314)},get createJSDocOptionalType(){return T(316)},get updateJSDocOptionalType(){return I(316)},get createJSDocVariadicType(){return T(318)},get updateJSDocVariadicType(){return I(318)},get createJSDocNamepathType(){return T(319)},get updateJSDocNamepathType(){return I(319)},createJSDocFunctionType:_C,updateJSDocFunctionType:c2,createJSDocTypeLiteral:M0,updateJSDocTypeLiteral:Uh,createJSDocTypeExpression:Nh,updateJSDocTypeExpression:Ix,createJSDocSignature:cS,updateJSDocSignature:lS,createJSDocTemplateTag:gT,updateJSDocTemplateTag:fD,createJSDocTypedefTag:hI,updateJSDocTypedefTag:_D,createJSDocParameterTag:wb,updateJSDocParameterTag:e6,createJSDocPropertyTag:pD,updateJSDocPropertyTag:eE,createJSDocCallbackTag:O1,updateJSDocCallbackTag:mD,createJSDocOverloadTag:Tb,updateJSDocOverloadTag:jk,createJSDocAugmentsTag:tk,updateJSDocAugmentsTag:Ah,createJSDocImplementsTag:t1,updateJSDocImplementsTag:th,createJSDocSeeTag:uS,updateJSDocSeeTag:Vm,createJSDocImportTag:zf,updateJSDocImportTag:kF,createJSDocNameReference:__,updateJSDocNameReference:yT,createJSDocMemberName:i0,updateJSDocMemberName:dS,createJSDocLink:gI,updateJSDocLink:Eb,createJSDocLinkCode:hD,updateJSDocLinkCode:pC,createJSDocLinkPlain:Nm,updateJSDocLinkPlain:oy,get createJSDocTypeTag(){return U(344)},get updateJSDocTypeTag(){return $(344)},get createJSDocReturnTag(){return U(342)},get updateJSDocReturnTag(){return $(342)},get createJSDocThisTag(){return U(343)},get updateJSDocThisTag(){return $(343)},get createJSDocAuthorTag(){return R(330)},get updateJSDocAuthorTag(){return H(330)},get createJSDocClassTag(){return R(332)},get updateJSDocClassTag(){return H(332)},get createJSDocPublicTag(){return R(333)},get updateJSDocPublicTag(){return H(333)},get createJSDocPrivateTag(){return R(334)},get updateJSDocPrivateTag(){return H(334)},get createJSDocProtectedTag(){return R(335)},get updateJSDocProtectedTag(){return H(335)},get createJSDocReadonlyTag(){return R(336)},get updateJSDocReadonlyTag(){return H(336)},get createJSDocOverrideTag(){return R(337)},get updateJSDocOverrideTag(){return H(337)},get createJSDocDeprecatedTag(){return R(331)},get updateJSDocDeprecatedTag(){return H(331)},get createJSDocThrowsTag(){return U(349)},get updateJSDocThrowsTag(){return $(349)},get createJSDocSatisfiesTag(){return U(350)},get updateJSDocSatisfiesTag(){return $(350)},createJSDocEnumTag:vI,updateJSDocEnumTag:hP,createJSDocUnknownTag:$y,updateJSDocUnknownTag:l2,createJSDocText:bI,updateJSDocText:SI,createJSDocComment:gD,updateJSDocComment:Gy,createJsxElement:ON,updateJsxElement:gP,createJsxSelfClosingElement:M1,updateJsxSelfClosingElement:R1,createJsxOpeningElement:yD,updateJsxOpeningElement:mv,createJsxClosingElement:g0,updateJsxClosingElement:FN,createJsxFragment:tE,createJsxText:ma,updateJsxText:Db,createJsxOpeningFragment:R0,createJsxJsxClosingFragment:vD,updateJsxFragment:r_,createJsxAttribute:Fv,updateJsxAttribute:ik,createJsxAttributes:mC,updateJsxAttributes:yO,createJsxSpreadAttribute:Vf,updateJsxSpreadAttribute:Bs,createJsxExpression:Hm,updateJsxExpression:B0,createJsxNamespacedName:hC,updateJsxNamespacedName:iE,createCaseClause:yP,updateCaseClause:ih,createDefaultClause:JS,updateDefaultClause:i1,createHeritageClause:n1,updateHeritageClause:Jh,createCatchClause:r1,updateCatchClause:fS,createPropertyAssignment:ge,updatePropertyAssignment:Vt,createShorthandPropertyAssignment:Wr,updateShorthandPropertyAssignment:de,createSpreadAssignment:Gi,updateSpreadAssignment:rr,createEnumMember:as,updateEnumMember:Hc,createSourceFile:Qc,updateSourceFile:bT,createRedirectedSourceFile:Sl,createBundle:Ib,updateBundle:Dw,createSyntheticExpression:u2,createSyntaxList:ST,createNotEmittedStatement:bD,createPartiallyEmittedExpression:hl,updatePartiallyEmittedExpression:_S,createCommaListExpression:xI,updateCommaListExpression:EL,createSyntheticReferenceExpression:SD,updateSyntheticReferenceExpression:wF,cloneNode:vs,get createComma(){return g(28)},get createAssignment(){return g(64)},get createLogicalOr(){return g(57)},get createLogicalAnd(){return g(56)},get createBitwiseOr(){return g(52)},get createBitwiseXor(){return g(53)},get createBitwiseAnd(){return g(51)},get createStrictEquality(){return g(37)},get createStrictInequality(){return g(38)},get createEquality(){return g(35)},get createInequality(){return g(36)},get createLessThan(){return g(30)},get createLessThanEquals(){return g(33)},get createGreaterThan(){return g(32)},get createGreaterThanEquals(){return g(34)},get createLeftShift(){return g(48)},get createRightShift(){return g(49)},get createUnsignedRightShift(){return g(50)},get createAdd(){return g(40)},get createSubtract(){return g(41)},get createMultiply(){return g(42)},get createDivide(){return g(44)},get createModulo(){return g(45)},get createExponent(){return g(43)},get createPrefixPlus(){return v(40)},get createPrefixMinus(){return v(41)},get createPrefixIncrement(){return v(46)},get createPrefixDecrement(){return v(47)},get createBitwiseNot(){return v(55)},get createLogicalNot(){return v(54)},get createPostfixIncrement(){return x(46)},get createPostfixDecrement(){return x(47)},createImmediatelyInvokedFunctionExpression:KM,createImmediatelyInvokedArrowFunction:TF,createVoidZero:vP,createExportDefault:MN,createExternalModuleExport:kz,createTypeCheck:t6,createIsNotTypeCheck:RN,createMethodCall:yC,createGlobalMethodCall:Wk,createFunctionBindCall:Iw,createFunctionCallCall:EF,createFunctionApplyCall:HJ,createArraySliceCall:BN,createArrayConcatCall:wz,createObjectDefinePropertyCall:om,createObjectGetOwnPropertyDescriptorCall:zk,createReflectGetCall:z_,createReflectSetCall:Vd,createPropertyDescriptor:DF,createCallBinding:qr,createAssignmentTargetWrapper:Qe,inlineExpressions:$t,getInternalName:Ki,getLocalName:jn,getExportName:$r,getDeclarationName:jo,getNamespaceMemberName:Ms,getExternalModuleOrNamespaceExportName:rc,restoreOuterExpressions:Yi,restoreEnclosingLabel:Ln,createUseStrictPrologue:v_,copyPrologue:_c,copyStandardPrologue:uf,copyCustomPrologue:Of,ensureUseStrict:vC,liftToBlock:Eg,mergeLexicalEnvironment:ef,replaceModifiers:Am,replaceDecoratorsAndModifiers:Nw,replacePropertyName:d2};return ee($Oe,J=>J(K)),K;function re(J,me){if(J===void 0||J===F)J=[];else if(f4(J)){if(me===void 0||J.hasTrailingComma===me)return J.transformFlags===void 0&&Lwe(J),Se.attachNodeArrayDebugInfo(J),J;let Di=J.slice();return Di.pos=J.pos,Di.end=J.end,Di.hasTrailingComma=me,Di.transformFlags=J.transformFlags,Se.attachNodeArrayDebugInfo(Di),Di}let ze=J.length,kt=ze>=1&&ze<=4?J.slice():J;return kt.pos=-1,kt.end=-1,kt.hasTrailingComma=!!me,kt.transformFlags=0,Lwe(kt),Se.attachNodeArrayDebugInfo(kt),kt}function X(J){return n.createBaseNode(J)}function ne(J){let me=X(J);return me.symbol=void 0,me.localSymbol=void 0,me}function se(J,me){return J!==me&&(J.typeArguments=me.typeArguments),yt(J,me)}function _e(J,me=0){let ze=typeof J=="number"?J+"":J;Se.assert(ze.charCodeAt(0)!==45,"Negative numbers should be created in combination with createPrefixUnaryExpression");let kt=ne(9);return kt.text=ze,kt.numericLiteralFlags=me,me&384&&(kt.transformFlags|=1024),kt}function ae(J){let me=ft(10);return me.text=typeof J=="string"?J:z8(J)+"n",me.transformFlags|=32,me}function le(J,me){let ze=ne(11);return ze.text=J,ze.singleQuote=me,ze}function Ee(J,me,ze){let kt=le(J,me);return kt.hasExtendedUnicodeEscape=ze,ze&&(kt.transformFlags|=1024),kt}function xe(J){let me=le(jC(J),void 0);return me.textSourceNode=J,me}function be(J){let me=ft(14);return me.text=J,me}function Le(J,me){switch(J){case 9:return _e(me,0);case 10:return ae(me);case 11:return Ee(me,void 0);case 12:return ma(me,!1);case 13:return ma(me,!0);case 14:return be(me);case 15:return Id(J,me,void 0,0)}}function fe(J){let me=n.createBaseIdentifierNode(80);return me.escapedText=J,me.jsDoc=void 0,me.flowNode=void 0,me.symbol=void 0,me}function we(J,me,ze,kt){let Di=fe(kh(J));return yU(Di,{flags:me,id:oae,prefix:ze,suffix:kt}),oae++,Di}function Ae(J,me,ze){me===void 0&&J&&(me=fH(J)),me===80&&(me=void 0);let kt=fe(kh(J));return ze&&(kt.flags|=256),kt.escapedText==="await"&&(kt.transformFlags|=67108864),kt.flags&256&&(kt.transformFlags|=1024),kt}function Ge(J,me,ze,kt){let Di=1;me&&(Di|=8);let Ir=we("",Di,ze,kt);return J&&J(Ir),Ir}function he(J){let me=2;return J&&(me|=8),we("",me,void 0,void 0)}function Oe(J,me=0,ze,kt){return Se.assert(!(me&7),"Argument out of range: flags"),Se.assert((me&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),we(J,3|me,ze,kt)}function Re(J,me=0,ze,kt){Se.assert(!(me&7),"Argument out of range: flags");let Di=J?qD(J)?rF(!1,ze,J,kt,Un):`generated@${pp(J)}`:"";(ze||kt)&&(me|=16);let Ir=we(Di,4|me,ze,kt);return Ir.original=J,Ir}function $e(J){let me=n.createBasePrivateIdentifierNode(81);return me.escapedText=J,me.transformFlags|=16777216,me}function Ke(J){return xl(J,"#")||Se.fail("First character of private identifier must be #: "+J),$e(kh(J))}function qe(J,me,ze,kt){let Di=$e(kh(J));return yU(Di,{flags:me,id:oae,prefix:ze,suffix:kt}),oae++,Di}function rt(J,me,ze){J&&!xl(J,"#")&&Se.fail("First character of private identifier must be #: "+J);let kt=8|(J?3:1);return qe(J??"",kt,me,ze)}function _t(J,me,ze){let kt=qD(J)?rF(!0,me,J,ze,Un):`#generated@${pp(J)}`,Ir=qe(kt,4|(me||ze?16:0),me,ze);return Ir.original=J,Ir}function ft(J){return n.createBaseTokenNode(J)}function mt(J){Se.assert(J>=0&&J<=165,"Invalid token"),Se.assert(J<=15||J>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),Se.assert(J<=9||J>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),Se.assert(J!==80,"Invalid token. Use 'createIdentifier' to create identifiers");let me=ft(J),ze=0;switch(J){case 134:ze=384;break;case 160:ze=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:ze=1;break;case 108:ze=134218752,me.flowNode=void 0;break;case 126:ze=1024;break;case 129:ze=16777216;break;case 110:ze=16384,me.flowNode=void 0;break}return ze&&(me.transformFlags|=ze),me}function ut(){return mt(108)}function ht(){return mt(110)}function Kt(){return mt(106)}function ni(){return mt(112)}function Ut(){return mt(97)}function pi(J){return mt(J)}function wi(J){let me=[];return J&32&&me.push(pi(95)),J&128&&me.push(pi(138)),J&2048&&me.push(pi(90)),J&4096&&me.push(pi(87)),J&1&&me.push(pi(125)),J&2&&me.push(pi(123)),J&4&&me.push(pi(124)),J&64&&me.push(pi(128)),J&256&&me.push(pi(126)),J&16&&me.push(pi(164)),J&8&&me.push(pi(148)),J&512&&me.push(pi(129)),J&1024&&me.push(pi(134)),J&8192&&me.push(pi(103)),J&16384&&me.push(pi(147)),me.length?me:void 0}function Bi(J,me){let ze=X(166);return ze.left=J,ze.right=Sm(me),ze.transformFlags|=ka(ze.left)|lee(ze.right),ze.flowNode=void 0,ze}function Bn(J,me,ze){return J.left!==me||J.right!==ze?yt(Bi(me,ze),J):J}function mr(J){let me=X(167);return me.expression=u().parenthesizeExpressionOfComputedPropertyName(J),me.transformFlags|=ka(me.expression)|1024|131072,me}function Ei(J,me){return J.expression!==me?yt(mr(me),J):J}function zn(J,me,ze,kt){let Di=ne(168);return Di.modifiers=Hf(J),Di.name=Sm(me),Di.constraint=ze,Di.default=kt,Di.transformFlags=1,Di.expression=void 0,Di.jsDoc=void 0,Di}function zr(J,me,ze,kt,Di){return J.modifiers!==me||J.name!==ze||J.constraint!==kt||J.default!==Di?yt(zn(me,ze,kt,Di),J):J}function xr(J,me,ze,kt,Di,Ir){let xs=ne(169);return xs.modifiers=Hf(J),xs.dotDotDotToken=me,xs.name=Sm(ze),xs.questionToken=kt,xs.type=Di,xs.initializer=Ns(Ir),JA(xs.name)?xs.transformFlags=1:xs.transformFlags=d_(xs.modifiers)|ka(xs.dotDotDotToken)|sL(xs.name)|ka(xs.questionToken)|ka(xs.initializer)|(xs.questionToken??xs.type?1:0)|(xs.dotDotDotToken??xs.initializer?1024:0)|(tI(xs.modifiers)&31?8192:0),xs.jsDoc=void 0,xs}function lo(J,me,ze,kt,Di,Ir,xs){return J.modifiers!==me||J.dotDotDotToken!==ze||J.name!==kt||J.questionToken!==Di||J.type!==Ir||J.initializer!==xs?yt(xr(me,ze,kt,Di,Ir,xs),J):J}function _r(J){let me=X(170);return me.expression=u().parenthesizeLeftSideOfAccess(J,!1),me.transformFlags|=ka(me.expression)|1|8192|33554432,me}function Hs(J,me){return J.expression!==me?yt(_r(me),J):J}function ai(J,me,ze,kt){let Di=ne(171);return Di.modifiers=Hf(J),Di.name=Sm(me),Di.type=kt,Di.questionToken=ze,Di.transformFlags=1,Di.initializer=void 0,Di.jsDoc=void 0,Di}function mn(J,me,ze,kt,Di){return J.modifiers!==me||J.name!==ze||J.questionToken!==kt||J.type!==Di?Nn(ai(me,ze,kt,Di),J):J}function Nn(J,me){return J!==me&&(J.initializer=me.initializer),yt(J,me)}function Gr(J,me,ze,kt,Di){let Ir=ne(172);Ir.modifiers=Hf(J),Ir.name=Sm(me),Ir.questionToken=ze&&XE(ze)?ze:void 0,Ir.exclamationToken=ze&&q8(ze)?ze:void 0,Ir.type=kt,Ir.initializer=Ns(Di);let xs=Ir.flags&33554432||tI(Ir.modifiers)&128;return Ir.transformFlags=d_(Ir.modifiers)|sL(Ir.name)|ka(Ir.initializer)|(xs||Ir.questionToken||Ir.exclamationToken||Ir.type?1:0)|(f_(Ir.name)||tI(Ir.modifiers)&256&&Ir.initializer?8192:0)|16777216,Ir.jsDoc=void 0,Ir}function ci(J,me,ze,kt,Di,Ir){return J.modifiers!==me||J.name!==ze||J.questionToken!==(kt!==void 0&&XE(kt)?kt:void 0)||J.exclamationToken!==(kt!==void 0&&q8(kt)?kt:void 0)||J.type!==Di||J.initializer!==Ir?yt(Gr(me,ze,kt,Di,Ir),J):J}function gn(J,me,ze,kt,Di,Ir){let xs=ne(173);return xs.modifiers=Hf(J),xs.name=Sm(me),xs.questionToken=ze,xs.typeParameters=Hf(kt),xs.parameters=Hf(Di),xs.type=Ir,xs.transformFlags=1,xs.jsDoc=void 0,xs.locals=void 0,xs.nextContainer=void 0,xs.typeArguments=void 0,xs}function Sr(J,me,ze,kt,Di,Ir,xs){return J.modifiers!==me||J.name!==ze||J.questionToken!==kt||J.typeParameters!==Di||J.parameters!==Ir||J.type!==xs?se(gn(me,ze,kt,Di,Ir,xs),J):J}function vo(J,me,ze,kt,Di,Ir,xs,Ll){let sp=ne(174);if(sp.modifiers=Hf(J),sp.asteriskToken=me,sp.name=Sm(ze),sp.questionToken=kt,sp.exclamationToken=void 0,sp.typeParameters=Hf(Di),sp.parameters=re(Ir),sp.type=xs,sp.body=Ll,!sp.body)sp.transformFlags=1;else{let xT=tI(sp.modifiers)&1024,nE=!!sp.asteriskToken,Vk=xT&&nE;sp.transformFlags=d_(sp.modifiers)|ka(sp.asteriskToken)|sL(sp.name)|ka(sp.questionToken)|d_(sp.typeParameters)|d_(sp.parameters)|ka(sp.type)|ka(sp.body)&-67108865|(Vk?128:xT?256:nE?2048:0)|(sp.questionToken||sp.typeParameters||sp.type?1:0)|1024}return sp.typeArguments=void 0,sp.jsDoc=void 0,sp.locals=void 0,sp.nextContainer=void 0,sp.flowNode=void 0,sp.endFlowNode=void 0,sp.returnFlowNode=void 0,sp}function $o(J,me,ze,kt,Di,Ir,xs,Ll,sp){return J.modifiers!==me||J.asteriskToken!==ze||J.name!==kt||J.questionToken!==Di||J.typeParameters!==Ir||J.parameters!==xs||J.type!==Ll||J.body!==sp?Mn(vo(me,ze,kt,Di,Ir,xs,Ll,sp),J):J}function Mn(J,me){return J!==me&&(J.exclamationToken=me.exclamationToken),yt(J,me)}function Qs(J){let me=ne(175);return me.body=J,me.transformFlags=ka(J)|16777216,me.modifiers=void 0,me.jsDoc=void 0,me.locals=void 0,me.nextContainer=void 0,me.endFlowNode=void 0,me.returnFlowNode=void 0,me}function Pi(J,me){return J.body!==me?qi(Qs(me),J):J}function qi(J,me){return J!==me&&(J.modifiers=me.modifiers),yt(J,me)}function lt(J,me,ze){let kt=ne(176);return kt.modifiers=Hf(J),kt.parameters=re(me),kt.body=ze,kt.body?kt.transformFlags=d_(kt.modifiers)|d_(kt.parameters)|ka(kt.body)&-67108865|1024:kt.transformFlags=1,kt.typeParameters=void 0,kt.type=void 0,kt.typeArguments=void 0,kt.jsDoc=void 0,kt.locals=void 0,kt.nextContainer=void 0,kt.endFlowNode=void 0,kt.returnFlowNode=void 0,kt}function Xi(J,me,ze,kt){return J.modifiers!==me||J.parameters!==ze||J.body!==kt?nt(lt(me,ze,kt),J):J}function nt(J,me){return J!==me&&(J.typeParameters=me.typeParameters,J.type=me.type),se(J,me)}function Lt(J,me,ze,kt,Di){let Ir=ne(177);return Ir.modifiers=Hf(J),Ir.name=Sm(me),Ir.parameters=re(ze),Ir.type=kt,Ir.body=Di,Ir.body?Ir.transformFlags=d_(Ir.modifiers)|sL(Ir.name)|d_(Ir.parameters)|ka(Ir.type)|ka(Ir.body)&-67108865|(Ir.type?1:0):Ir.transformFlags=1,Ir.typeArguments=void 0,Ir.typeParameters=void 0,Ir.jsDoc=void 0,Ir.locals=void 0,Ir.nextContainer=void 0,Ir.flowNode=void 0,Ir.endFlowNode=void 0,Ir.returnFlowNode=void 0,Ir}function Pe(J,me,ze,kt,Di,Ir){return J.modifiers!==me||J.name!==ze||J.parameters!==kt||J.type!==Di||J.body!==Ir?St(Lt(me,ze,kt,Di,Ir),J):J}function St(J,me){return J!==me&&(J.typeParameters=me.typeParameters),se(J,me)}function Ve(J,me,ze,kt){let Di=ne(178);return Di.modifiers=Hf(J),Di.name=Sm(me),Di.parameters=re(ze),Di.body=kt,Di.body?Di.transformFlags=d_(Di.modifiers)|sL(Di.name)|d_(Di.parameters)|ka(Di.body)&-67108865|(Di.type?1:0):Di.transformFlags=1,Di.typeArguments=void 0,Di.typeParameters=void 0,Di.type=void 0,Di.jsDoc=void 0,Di.locals=void 0,Di.nextContainer=void 0,Di.flowNode=void 0,Di.endFlowNode=void 0,Di.returnFlowNode=void 0,Di}function Tt(J,me,ze,kt,Di){return J.modifiers!==me||J.name!==ze||J.parameters!==kt||J.body!==Di?dt(Ve(me,ze,kt,Di),J):J}function dt(J,me){return J!==me&&(J.typeParameters=me.typeParameters,J.type=me.type),se(J,me)}function Wt(J,me,ze){let kt=ne(179);return kt.typeParameters=Hf(J),kt.parameters=Hf(me),kt.type=ze,kt.transformFlags=1,kt.jsDoc=void 0,kt.locals=void 0,kt.nextContainer=void 0,kt.typeArguments=void 0,kt}function pt(J,me,ze,kt){return J.typeParameters!==me||J.parameters!==ze||J.type!==kt?se(Wt(me,ze,kt),J):J}function Gt(J,me,ze){let kt=ne(180);return kt.typeParameters=Hf(J),kt.parameters=Hf(me),kt.type=ze,kt.transformFlags=1,kt.jsDoc=void 0,kt.locals=void 0,kt.nextContainer=void 0,kt.typeArguments=void 0,kt}function Mt(J,me,ze,kt){return J.typeParameters!==me||J.parameters!==ze||J.type!==kt?se(Gt(me,ze,kt),J):J}function hi(J,me,ze){let kt=ne(181);return kt.modifiers=Hf(J),kt.parameters=Hf(me),kt.type=ze,kt.transformFlags=1,kt.jsDoc=void 0,kt.locals=void 0,kt.nextContainer=void 0,kt.typeArguments=void 0,kt}function Ie(J,me,ze,kt){return J.parameters!==ze||J.type!==kt||J.modifiers!==me?se(hi(me,ze,kt),J):J}function Bt(J,me){let ze=X(204);return ze.type=J,ze.literal=me,ze.transformFlags=1,ze}function ui(J,me,ze){return J.type!==me||J.literal!==ze?yt(Bt(me,ze),J):J}function Ue(J){return mt(J)}function Ce(J,me,ze){let kt=X(182);return kt.assertsModifier=J,kt.parameterName=Sm(me),kt.type=ze,kt.transformFlags=1,kt}function ye(J,me,ze,kt){return J.assertsModifier!==me||J.parameterName!==ze||J.type!==kt?yt(Ce(me,ze,kt),J):J}function vt(J,me){let ze=X(183);return ze.typeName=Sm(J),ze.typeArguments=me&&u().parenthesizeTypeArguments(re(me)),ze.transformFlags=1,ze}function pe(J,me,ze){return J.typeName!==me||J.typeArguments!==ze?yt(vt(me,ze),J):J}function at(J,me,ze){let kt=ne(184);return kt.typeParameters=Hf(J),kt.parameters=Hf(me),kt.type=ze,kt.transformFlags=1,kt.modifiers=void 0,kt.jsDoc=void 0,kt.locals=void 0,kt.nextContainer=void 0,kt.typeArguments=void 0,kt}function We(J,me,ze,kt){return J.typeParameters!==me||J.parameters!==ze||J.type!==kt?si(at(me,ze,kt),J):J}function si(J,me){return J!==me&&(J.modifiers=me.modifiers),se(J,me)}function At(...J){return J.length===4?Ot(...J):J.length===3?Fi(...J):Se.fail("Incorrect number of arguments specified.")}function Ot(J,me,ze,kt){let Di=ne(185);return Di.modifiers=Hf(J),Di.typeParameters=Hf(me),Di.parameters=Hf(ze),Di.type=kt,Di.transformFlags=1,Di.jsDoc=void 0,Di.locals=void 0,Di.nextContainer=void 0,Di.typeArguments=void 0,Di}function Fi(J,me,ze){return Ot(void 0,J,me,ze)}function Vn(...J){return J.length===5?In(...J):J.length===4?dn(...J):Se.fail("Incorrect number of arguments specified.")}function In(J,me,ze,kt,Di){return J.modifiers!==me||J.typeParameters!==ze||J.parameters!==kt||J.type!==Di?se(At(me,ze,kt,Di),J):J}function dn(J,me,ze,kt){return In(J,J.modifiers,me,ze,kt)}function Si(J,me){let ze=X(186);return ze.exprName=J,ze.typeArguments=me&&u().parenthesizeTypeArguments(me),ze.transformFlags=1,ze}function Ri(J,me,ze){return J.exprName!==me||J.typeArguments!==ze?yt(Si(me,ze),J):J}function Cn(J){let me=ne(187);return me.members=re(J),me.transformFlags=1,me}function cn(J,me){return J.members!==me?yt(Cn(me),J):J}function Pn(J){let me=X(188);return me.elementType=u().parenthesizeNonArrayTypeOfPostfixType(J),me.transformFlags=1,me}function Wi(J,me){return J.elementType!==me?yt(Pn(me),J):J}function Kn(J){let me=X(189);return me.elements=re(u().parenthesizeElementTypesOfTupleType(J)),me.transformFlags=1,me}function Ti(J,me){return J.elements!==me?yt(Kn(me),J):J}function wr(J,me,ze,kt){let Di=ne(202);return Di.dotDotDotToken=J,Di.name=me,Di.questionToken=ze,Di.type=kt,Di.transformFlags=1,Di.jsDoc=void 0,Di}function Nr(J,me,ze,kt,Di){return J.dotDotDotToken!==me||J.name!==ze||J.questionToken!==kt||J.type!==Di?yt(wr(me,ze,kt,Di),J):J}function Vr(J){let me=X(190);return me.type=u().parenthesizeTypeOfOptionalType(J),me.transformFlags=1,me}function ir(J,me){return J.type!==me?yt(Vr(me),J):J}function Ts(J){let me=X(191);return me.type=J,me.transformFlags=1,me}function pa(J,me){return J.type!==me?yt(Ts(me),J):J}function Nc(J,me,ze){let kt=X(J);return kt.types=K.createNodeArray(ze(me)),kt.transformFlags=1,kt}function _a(J,me,ze){return J.types!==me?yt(Nc(J.kind,me,ze),J):J}function Fa(J){return Nc(192,J,u().parenthesizeConstituentTypesOfUnionType)}function Pf(J,me){return _a(J,me,u().parenthesizeConstituentTypesOfUnionType)}function $l(J){return Nc(193,J,u().parenthesizeConstituentTypesOfIntersectionType)}function cc(J,me){return _a(J,me,u().parenthesizeConstituentTypesOfIntersectionType)}function vl(J,me,ze,kt){let Di=X(194);return Di.checkType=u().parenthesizeCheckTypeOfConditionalType(J),Di.extendsType=u().parenthesizeExtendsTypeOfConditionalType(me),Di.trueType=ze,Di.falseType=kt,Di.transformFlags=1,Di.locals=void 0,Di.nextContainer=void 0,Di}function G_(J,me,ze,kt,Di){return J.checkType!==me||J.extendsType!==ze||J.trueType!==kt||J.falseType!==Di?yt(vl(me,ze,kt,Di),J):J}function ja(J){let me=X(195);return me.typeParameter=J,me.transformFlags=1,me}function Gd(J,me){return J.typeParameter!==me?yt(ja(me),J):J}function Su(J,me){let ze=X(203);return ze.head=J,ze.templateSpans=re(me),ze.transformFlags=1,ze}function Aa(J,me,ze){return J.head!==me||J.templateSpans!==ze?yt(Su(me,ze),J):J}function gr(J,me,ze,kt,Di=!1){let Ir=X(205);return Ir.argument=J,Ir.attributes=me,Ir.assertions&&Ir.assertions.assertClause&&Ir.attributes&&(Ir.assertions.assertClause=Ir.attributes),Ir.qualifier=ze,Ir.typeArguments=kt&&u().parenthesizeTypeArguments(kt),Ir.isTypeOf=Di,Ir.transformFlags=1,Ir}function Wl(J,me,ze,kt,Di,Ir=J.isTypeOf){return J.argument!==me||J.attributes!==ze||J.qualifier!==kt||J.typeArguments!==Di||J.isTypeOf!==Ir?yt(gr(me,ze,kt,Di,Ir),J):J}function Vc(J){let me=X(196);return me.type=J,me.transformFlags=1,me}function xu(J,me){return J.type!==me?yt(Vc(me),J):J}function Ar(){let J=X(197);return J.transformFlags=1,J}function Hl(J,me){let ze=X(198);return ze.operator=J,ze.type=J===148?u().parenthesizeOperandOfReadonlyTypeOperator(me):u().parenthesizeOperandOfTypeOperator(me),ze.transformFlags=1,ze}function Lf(J,me){return J.type!==me?yt(Hl(J.operator,me),J):J}function Rt(J,me){let ze=X(199);return ze.objectType=u().parenthesizeNonArrayTypeOfPostfixType(J),ze.indexType=me,ze.transformFlags=1,ze}function bt(J,me,ze){return J.objectType!==me||J.indexType!==ze?yt(Rt(me,ze),J):J}function Ci(J,me,ze,kt,Di,Ir){let xs=ne(200);return xs.readonlyToken=J,xs.typeParameter=me,xs.nameType=ze,xs.questionToken=kt,xs.type=Di,xs.members=Ir&&re(Ir),xs.transformFlags=1,xs.locals=void 0,xs.nextContainer=void 0,xs}function kn(J,me,ze,kt,Di,Ir,xs){return J.readonlyToken!==me||J.typeParameter!==ze||J.nameType!==kt||J.questionToken!==Di||J.type!==Ir||J.members!==xs?yt(Ci(me,ze,kt,Di,Ir,xs),J):J}function ke(J){let me=X(201);return me.literal=J,me.transformFlags=1,me}function Qt(J,me){return J.literal!==me?yt(ke(me),J):J}function oi(J){let me=X(206);return me.elements=re(J),me.transformFlags|=d_(me.elements)|1024|524288,me.transformFlags&32768&&(me.transformFlags|=65664),me}function nn(J,me){return J.elements!==me?yt(oi(me),J):J}function hr(J){let me=X(207);return me.elements=re(J),me.transformFlags|=d_(me.elements)|1024|524288,me}function io(J,me){return J.elements!==me?yt(hr(me),J):J}function Er(J,me,ze,kt){let Di=ne(208);return Di.dotDotDotToken=J,Di.propertyName=Sm(me),Di.name=Sm(ze),Di.initializer=Ns(kt),Di.transformFlags|=ka(Di.dotDotDotToken)|sL(Di.propertyName)|sL(Di.name)|ka(Di.initializer)|(Di.dotDotDotToken?32768:0)|1024,Di.flowNode=void 0,Di}function is(J,me,ze,kt,Di){return J.propertyName!==ze||J.dotDotDotToken!==me||J.name!==kt||J.initializer!==Di?yt(Er(me,ze,kt,Di),J):J}function zs(J,me){let ze=X(209),kt=J&&Y_(J),Di=re(J,kt&&Eh(kt)?!0:void 0);return ze.elements=u().parenthesizeExpressionsOfCommaDelimitedList(Di),ze.multiLine=me,ze.transformFlags|=d_(ze.elements),ze}function da(J,me){return J.elements!==me?yt(zs(me,J.multiLine),J):J}function cu(J,me){let ze=ne(210);return ze.properties=re(J),ze.multiLine=me,ze.transformFlags|=d_(ze.properties),ze.jsDoc=void 0,ze}function ru(J,me){return J.properties!==me?yt(cu(me,J.multiLine),J):J}function mf(J,me,ze){let kt=ne(211);return kt.expression=J,kt.questionDotToken=me,kt.name=ze,kt.transformFlags=ka(kt.expression)|ka(kt.questionDotToken)|(Ai(kt.name)?lee(kt.name):ka(kt.name)|536870912),kt.jsDoc=void 0,kt.flowNode=void 0,kt}function B_(J,me){let ze=mf(u().parenthesizeLeftSideOfAccess(J,!1),void 0,Sm(me));return aW(J)&&(ze.transformFlags|=384),ze}function vd(J,me,ze){return hH(J)?rp(J,me,J.questionDotToken,$d(ze,Ai)):J.expression!==me||J.name!==ze?yt(B_(me,ze),J):J}function td(J,me,ze){let kt=mf(u().parenthesizeLeftSideOfAccess(J,!0),me,Sm(ze));return kt.flags|=64,kt.transformFlags|=32,kt}function rp(J,me,ze,kt){return Se.assert(!!(J.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),J.expression!==me||J.questionDotToken!==ze||J.name!==kt?yt(td(me,ze,kt),J):J}function _i(J,me,ze){let kt=ne(212);return kt.expression=J,kt.questionDotToken=me,kt.argumentExpression=ze,kt.transformFlags|=ka(kt.expression)|ka(kt.questionDotToken)|ka(kt.argumentExpression),kt.jsDoc=void 0,kt.flowNode=void 0,kt}function er(J,me){let ze=_i(u().parenthesizeLeftSideOfAccess(J,!1),void 0,hv(me));return aW(J)&&(ze.transformFlags|=384),ze}function wo(J,me,ze){return sOe(J)?ri(J,me,J.questionDotToken,ze):J.expression!==me||J.argumentExpression!==ze?yt(er(me,ze),J):J}function cl(J,me,ze){let kt=_i(u().parenthesizeLeftSideOfAccess(J,!0),me,hv(ze));return kt.flags|=64,kt.transformFlags|=32,kt}function ri(J,me,ze,kt){return Se.assert(!!(J.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),J.expression!==me||J.questionDotToken!==ze||J.argumentExpression!==kt?yt(cl(me,ze,kt),J):J}function $n(J,me,ze,kt){let Di=ne(213);return Di.expression=J,Di.questionDotToken=me,Di.typeArguments=ze,Di.arguments=kt,Di.transformFlags|=ka(Di.expression)|ka(Di.questionDotToken)|d_(Di.typeArguments)|d_(Di.arguments),Di.typeArguments&&(Di.transformFlags|=1),Xx(Di.expression)&&(Di.transformFlags|=16384),Di}function xo(J,me,ze){let kt=$n(u().parenthesizeLeftSideOfAccess(J,!1),void 0,Hf(me),u().parenthesizeExpressionsOfCommaDelimitedList(re(ze)));return rM(kt.expression)&&(kt.transformFlags|=8388608),kt}function Lc(J,me,ze,kt){return E2(J)?il(J,me,J.questionDotToken,ze,kt):J.expression!==me||J.typeArguments!==ze||J.arguments!==kt?yt(xo(me,ze,kt),J):J}function tl(J,me,ze,kt){let Di=$n(u().parenthesizeLeftSideOfAccess(J,!0),me,Hf(ze),u().parenthesizeExpressionsOfCommaDelimitedList(re(kt)));return Di.flags|=64,Di.transformFlags|=32,Di}function il(J,me,ze,kt,Di){return Se.assert(!!(J.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),J.expression!==me||J.questionDotToken!==ze||J.typeArguments!==kt||J.arguments!==Di?yt(tl(me,ze,kt,Di),J):J}function Fd(J,me,ze){let kt=ne(214);return kt.expression=u().parenthesizeExpressionOfNew(J),kt.typeArguments=Hf(me),kt.arguments=ze?u().parenthesizeExpressionsOfCommaDelimitedList(ze):void 0,kt.transformFlags|=ka(kt.expression)|d_(kt.typeArguments)|d_(kt.arguments)|32,kt.typeArguments&&(kt.transformFlags|=1),kt}function hp(J,me,ze,kt){return J.expression!==me||J.typeArguments!==ze||J.arguments!==kt?yt(Fd(me,ze,kt),J):J}function Wf(J,me,ze){let kt=X(215);return kt.tag=u().parenthesizeLeftSideOfAccess(J,!1),kt.typeArguments=Hf(me),kt.template=ze,kt.transformFlags|=ka(kt.tag)|d_(kt.typeArguments)|ka(kt.template)|1024,kt.typeArguments&&(kt.transformFlags|=1),zH(kt.template)&&(kt.transformFlags|=128),kt}function Md(J,me,ze,kt){return J.tag!==me||J.typeArguments!==ze||J.template!==kt?yt(Wf(me,ze,kt),J):J}function j_(J,me){let ze=X(216);return ze.expression=u().parenthesizeOperandOfPrefixUnary(me),ze.type=J,ze.transformFlags|=ka(ze.expression)|ka(ze.type)|1,ze}function tg(J,me,ze){return J.type!==me||J.expression!==ze?yt(j_(me,ze),J):J}function Rg(J){let me=X(217);return me.expression=J,me.transformFlags=ka(me.expression),me.jsDoc=void 0,me}function e0(J,me){return J.expression!==me?yt(Rg(me),J):J}function A0(J,me,ze,kt,Di,Ir,xs){let Ll=ne(218);Ll.modifiers=Hf(J),Ll.asteriskToken=me,Ll.name=Sm(ze),Ll.typeParameters=Hf(kt),Ll.parameters=re(Di),Ll.type=Ir,Ll.body=xs;let sp=tI(Ll.modifiers)&1024,xT=!!Ll.asteriskToken,nE=sp&&xT;return Ll.transformFlags=d_(Ll.modifiers)|ka(Ll.asteriskToken)|sL(Ll.name)|d_(Ll.typeParameters)|d_(Ll.parameters)|ka(Ll.type)|ka(Ll.body)&-67108865|(nE?128:sp?256:xT?2048:0)|(Ll.typeParameters||Ll.type?1:0)|4194304,Ll.typeArguments=void 0,Ll.jsDoc=void 0,Ll.locals=void 0,Ll.nextContainer=void 0,Ll.flowNode=void 0,Ll.endFlowNode=void 0,Ll.returnFlowNode=void 0,Ll}function gh(J,me,ze,kt,Di,Ir,xs,Ll){return J.name!==kt||J.modifiers!==me||J.asteriskToken!==ze||J.typeParameters!==Di||J.parameters!==Ir||J.type!==xs||J.body!==Ll?se(A0(me,ze,kt,Di,Ir,xs,Ll),J):J}function wp(J,me,ze,kt,Di,Ir){let xs=ne(219);xs.modifiers=Hf(J),xs.typeParameters=Hf(me),xs.parameters=re(ze),xs.type=kt,xs.equalsGreaterThanToken=Di??mt(39),xs.body=u().parenthesizeConciseBodyOfArrowFunction(Ir);let Ll=tI(xs.modifiers)&1024;return xs.transformFlags=d_(xs.modifiers)|d_(xs.typeParameters)|d_(xs.parameters)|ka(xs.type)|ka(xs.equalsGreaterThanToken)|ka(xs.body)&-67108865|(xs.typeParameters||xs.type?1:0)|(Ll?16640:0)|1024,xs.typeArguments=void 0,xs.jsDoc=void 0,xs.locals=void 0,xs.nextContainer=void 0,xs.flowNode=void 0,xs.endFlowNode=void 0,xs.returnFlowNode=void 0,xs}function xb(J,me,ze,kt,Di,Ir,xs){return J.modifiers!==me||J.typeParameters!==ze||J.parameters!==kt||J.type!==Di||J.equalsGreaterThanToken!==Ir||J.body!==xs?se(wp(me,ze,kt,Di,Ir,xs),J):J}function ig(J){let me=X(220);return me.expression=u().parenthesizeOperandOfPrefixUnary(J),me.transformFlags|=ka(me.expression),me}function wg(J,me){return J.expression!==me?yt(ig(me),J):J}function Ap(J){let me=X(221);return me.expression=u().parenthesizeOperandOfPrefixUnary(J),me.transformFlags|=ka(me.expression),me}function xt(J,me){return J.expression!==me?yt(Ap(me),J):J}function ln(J){let me=X(222);return me.expression=u().parenthesizeOperandOfPrefixUnary(J),me.transformFlags|=ka(me.expression),me}function Dr(J,me){return J.expression!==me?yt(ln(me),J):J}function Tr(J){let me=X(223);return me.expression=u().parenthesizeOperandOfPrefixUnary(J),me.transformFlags|=ka(me.expression)|256|128|2097152,me}function st(J,me){return J.expression!==me?yt(Tr(me),J):J}function gi(J,me){let ze=X(224);return ze.operator=J,ze.operand=u().parenthesizeOperandOfPrefixUnary(me),ze.transformFlags|=ka(ze.operand),(J===46||J===47)&&Ai(ze.operand)&&!Tm(ze.operand)&&!sI(ze.operand)&&(ze.transformFlags|=268435456),ze}function an(J,me){return J.operand!==me?yt(gi(J.operator,me),J):J}function yn(J,me){let ze=X(225);return ze.operator=me,ze.operand=u().parenthesizeOperandOfPostfixUnary(J),ze.transformFlags|=ka(ze.operand),Ai(ze.operand)&&!Tm(ze.operand)&&!sI(ze.operand)&&(ze.transformFlags|=268435456),ze}function Be(J,me){return J.operand!==me?yt(yn(me,J.operator),J):J}function Ft(J,me,ze){let kt=ne(226),Di=Q(me),Ir=Di.kind;return kt.left=u().parenthesizeLeftSideOfBinary(Ir,J),kt.operatorToken=Di,kt.right=u().parenthesizeRightSideOfBinary(Ir,kt.left,ze),kt.transformFlags|=ka(kt.left)|ka(kt.operatorToken)|ka(kt.right),Ir===61?kt.transformFlags|=32:Ir===64?Ld(kt.left)?kt.transformFlags|=5248|Vi(kt.left):Yg(kt.left)&&(kt.transformFlags|=5120|Vi(kt.left)):Ir===43||Ir===68?kt.transformFlags|=512:UZ(Ir)&&(kt.transformFlags|=16),Ir===103&&wl(kt.left)&&(kt.transformFlags|=536870912),kt.jsDoc=void 0,kt}function Vi(J){return fW(J)?65536:0}function yr(J,me,ze,kt){return J.left!==me||J.operatorToken!==ze||J.right!==kt?yt(Ft(me,ze,kt),J):J}function He(J,me,ze,kt,Di){let Ir=X(227);return Ir.condition=u().parenthesizeConditionOfConditionalExpression(J),Ir.questionToken=me??mt(58),Ir.whenTrue=u().parenthesizeBranchOfConditionalExpression(ze),Ir.colonToken=kt??mt(59),Ir.whenFalse=u().parenthesizeBranchOfConditionalExpression(Di),Ir.transformFlags|=ka(Ir.condition)|ka(Ir.questionToken)|ka(Ir.whenTrue)|ka(Ir.colonToken)|ka(Ir.whenFalse),Ir}function Xt(J,me,ze,kt,Di,Ir){return J.condition!==me||J.questionToken!==ze||J.whenTrue!==kt||J.colonToken!==Di||J.whenFalse!==Ir?yt(He(me,ze,kt,Di,Ir),J):J}function un(J,me){let ze=X(228);return ze.head=J,ze.templateSpans=re(me),ze.transformFlags|=ka(ze.head)|d_(ze.templateSpans)|1024,ze}function Ur(J,me,ze){return J.head!==me||J.templateSpans!==ze?yt(un(me,ze),J):J}function Rs(J,me,ze,kt=0){Se.assert(!(kt&-7177),"Unsupported template flags.");let Di;if(ze!==void 0&&ze!==me&&(Di=W$e(J,ze),typeof Di=="object"))return Se.fail("Invalid raw text");if(me===void 0){if(Di===void 0)return Se.fail("Arguments 'text' and 'rawText' may not both be undefined.");me=Di}else Di!==void 0&&Se.assert(me===Di,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return me}function Ja(J){let me=1024;return J&&(me|=128),me}function Tc(J,me,ze,kt){let Di=ft(J);return Di.text=me,Di.rawText=ze,Di.templateFlags=kt&7176,Di.transformFlags=Ja(Di.templateFlags),Di}function Jl(J,me,ze,kt){let Di=ne(J);return Di.text=me,Di.rawText=ze,Di.templateFlags=kt&7176,Di.transformFlags=Ja(Di.templateFlags),Di}function Id(J,me,ze,kt){return J===15?Jl(J,me,ze,kt):Tc(J,me,ze,kt)}function bd(J,me,ze){return J=Rs(16,J,me,ze),Id(16,J,me,ze)}function op(J,me,ze){return J=Rs(16,J,me,ze),Id(17,J,me,ze)}function Pv(J,me,ze){return J=Rs(16,J,me,ze),Id(18,J,me,ze)}function Lv(J,me,ze){return J=Rs(16,J,me,ze),Jl(15,J,me,ze)}function P0(J,me){Se.assert(!J||!!me,"A `YieldExpression` with an asteriskToken must have an expression.");let ze=X(229);return ze.expression=me&&u().parenthesizeExpressionForDisallowedComma(me),ze.asteriskToken=J,ze.transformFlags|=ka(ze.expression)|ka(ze.asteriskToken)|1024|128|1048576,ze}function Ny(J,me,ze){return J.expression!==ze||J.asteriskToken!==me?yt(P0(me,ze),J):J}function y_(J){let me=X(230);return me.expression=u().parenthesizeExpressionForDisallowedComma(J),me.transformFlags|=ka(me.expression)|1024|32768,me}function ng(J,me){return J.expression!==me?yt(y_(me),J):J}function eh(J,me,ze,kt,Di){let Ir=ne(231);return Ir.modifiers=Hf(J),Ir.name=Sm(me),Ir.typeParameters=Hf(ze),Ir.heritageClauses=Hf(kt),Ir.members=re(Di),Ir.transformFlags|=d_(Ir.modifiers)|sL(Ir.name)|d_(Ir.typeParameters)|d_(Ir.heritageClauses)|d_(Ir.members)|(Ir.typeParameters?1:0)|1024,Ir.jsDoc=void 0,Ir}function m0(J,me,ze,kt,Di,Ir){return J.modifiers!==me||J.name!==ze||J.typeParameters!==kt||J.heritageClauses!==Di||J.members!==Ir?yt(eh(me,ze,kt,Di,Ir),J):J}function Z_(){return X(232)}function Ay(J,me){let ze=X(233);return ze.expression=u().parenthesizeLeftSideOfAccess(J,!1),ze.typeArguments=me&&u().parenthesizeTypeArguments(me),ze.transformFlags|=ka(ze.expression)|d_(ze.typeArguments)|1024,ze}function Py(J,me,ze){return J.expression!==me||J.typeArguments!==ze?yt(Ay(me,ze),J):J}function iy(J,me){let ze=X(234);return ze.expression=J,ze.type=me,ze.transformFlags|=ka(ze.expression)|ka(ze.type)|1,ze}function sC(J,me,ze){return J.expression!==me||J.type!==ze?yt(iy(me,ze),J):J}function h0(J){let me=X(235);return me.expression=u().parenthesizeLeftSideOfAccess(J,!1),me.transformFlags|=ka(me.expression)|1,me}function aC(J,me){return rj(J)?xi(J,me):J.expression!==me?yt(h0(me),J):J}function A1(J,me){let ze=X(238);return ze.expression=J,ze.type=me,ze.transformFlags|=ka(ze.expression)|ka(ze.type)|1,ze}function dv(J,me,ze){return J.expression!==me||J.type!==ze?yt(A1(me,ze),J):J}function Ov(J){let me=X(235);return me.flags|=64,me.expression=u().parenthesizeLeftSideOfAccess(J,!0),me.transformFlags|=ka(me.expression)|1,me}function xi(J,me){return Se.assert(!!(J.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),J.expression!==me?yt(Ov(me),J):J}function Ui(J,me){let ze=X(236);switch(ze.keywordToken=J,ze.name=me,ze.transformFlags|=ka(ze.name),J){case 105:ze.transformFlags|=1024;break;case 102:ze.transformFlags|=32;break;default:return Se.assertNever(J)}return ze.flowNode=void 0,ze}function nr(J,me){return J.name!==me?yt(Ui(J.keywordToken,me),J):J}function Hr(J,me){let ze=X(239);return ze.expression=J,ze.literal=me,ze.transformFlags|=ka(ze.expression)|ka(ze.literal)|1024,ze}function yo(J,me,ze){return J.expression!==me||J.literal!==ze?yt(Hr(me,ze),J):J}function fs(){let J=X(240);return J.transformFlags|=1024,J}function Co(J,me){let ze=X(241);return ze.statements=re(J),ze.multiLine=me,ze.transformFlags|=d_(ze.statements),ze.jsDoc=void 0,ze.locals=void 0,ze.nextContainer=void 0,ze}function Os(J,me){return J.statements!==me?yt(Co(me,J.multiLine),J):J}function Jc(J,me){let ze=X(243);return ze.modifiers=Hf(J),ze.declarationList=ua(me)?ZC(me):me,ze.transformFlags|=d_(ze.modifiers)|ka(ze.declarationList),tI(ze.modifiers)&128&&(ze.transformFlags=1),ze.jsDoc=void 0,ze.flowNode=void 0,ze}function qt(J,me,ze){return J.modifiers!==me||J.declarationList!==ze?yt(Jc(me,ze),J):J}function bi(){let J=X(242);return J.jsDoc=void 0,J}function Li(J){let me=X(244);return me.expression=u().parenthesizeExpressionOfExpressionStatement(J),me.transformFlags|=ka(me.expression),me.jsDoc=void 0,me.flowNode=void 0,me}function Yn(J,me){return J.expression!==me?yt(Li(me),J):J}function Mr(J,me,ze){let kt=X(245);return kt.expression=J,kt.thenStatement=Ne(me),kt.elseStatement=Ne(ze),kt.transformFlags|=ka(kt.expression)|ka(kt.thenStatement)|ka(kt.elseStatement),kt.jsDoc=void 0,kt.flowNode=void 0,kt}function Bo(J,me,ze,kt){return J.expression!==me||J.thenStatement!==ze||J.elseStatement!==kt?yt(Mr(me,ze,kt),J):J}function bo(J,me){let ze=X(246);return ze.statement=Ne(J),ze.expression=me,ze.transformFlags|=ka(ze.statement)|ka(ze.expression),ze.jsDoc=void 0,ze.flowNode=void 0,ze}function Zs(J,me,ze){return J.statement!==me||J.expression!==ze?yt(bo(me,ze),J):J}function jc(J,me){let ze=X(247);return ze.expression=J,ze.statement=Ne(me),ze.transformFlags|=ka(ze.expression)|ka(ze.statement),ze.jsDoc=void 0,ze.flowNode=void 0,ze}function bs(J,me,ze){return J.expression!==me||J.statement!==ze?yt(jc(me,ze),J):J}function nl(J,me,ze,kt){let Di=X(248);return Di.initializer=J,Di.condition=me,Di.incrementor=ze,Di.statement=Ne(kt),Di.transformFlags|=ka(Di.initializer)|ka(Di.condition)|ka(Di.incrementor)|ka(Di.statement),Di.jsDoc=void 0,Di.locals=void 0,Di.nextContainer=void 0,Di.flowNode=void 0,Di}function Us(J,me,ze,kt,Di){return J.initializer!==me||J.condition!==ze||J.incrementor!==kt||J.statement!==Di?yt(nl(me,ze,kt,Di),J):J}function Pu(J,me,ze){let kt=X(249);return kt.initializer=J,kt.expression=me,kt.statement=Ne(ze),kt.transformFlags|=ka(kt.initializer)|ka(kt.expression)|ka(kt.statement),kt.jsDoc=void 0,kt.locals=void 0,kt.nextContainer=void 0,kt.flowNode=void 0,kt}function ep(J,me,ze,kt){return J.initializer!==me||J.expression!==ze||J.statement!==kt?yt(Pu(me,ze,kt),J):J}function L0(J,me,ze,kt){let Di=X(250);return Di.awaitModifier=J,Di.initializer=me,Di.expression=u().parenthesizeExpressionForDisallowedComma(ze),Di.statement=Ne(kt),Di.transformFlags|=ka(Di.awaitModifier)|ka(Di.initializer)|ka(Di.expression)|ka(Di.statement)|1024,J&&(Di.transformFlags|=128),Di.jsDoc=void 0,Di.locals=void 0,Di.nextContainer=void 0,Di.flowNode=void 0,Di}function Cb(J,me,ze,kt,Di){return J.awaitModifier!==me||J.initializer!==ze||J.expression!==kt||J.statement!==Di?yt(L0(me,ze,kt,Di),J):J}function O0(J){let me=X(251);return me.label=Sm(J),me.transformFlags|=ka(me.label)|4194304,me.jsDoc=void 0,me.flowNode=void 0,me}function HS(J,me){return J.label!==me?yt(O0(me),J):J}function t0(J){let me=X(252);return me.label=Sm(J),me.transformFlags|=ka(me.label)|4194304,me.jsDoc=void 0,me.flowNode=void 0,me}function cD(J,me){return J.label!==me?yt(t0(me),J):J}function cC(J){let me=X(253);return me.expression=J,me.transformFlags|=ka(me.expression)|128|4194304,me.jsDoc=void 0,me.flowNode=void 0,me}function Ok(J,me){return J.expression!==me?yt(cC(me),J):J}function lf(J,me){let ze=X(254);return ze.expression=J,ze.statement=Ne(me),ze.transformFlags|=ka(ze.expression)|ka(ze.statement),ze.jsDoc=void 0,ze.flowNode=void 0,ze}function s2(J,me,ze){return J.expression!==me||J.statement!==ze?yt(lf(me,ze),J):J}function wx(J,me){let ze=X(255);return ze.expression=u().parenthesizeExpressionForDisallowedComma(J),ze.caseBlock=me,ze.transformFlags|=ka(ze.expression)|ka(ze.caseBlock),ze.jsDoc=void 0,ze.flowNode=void 0,ze.possiblyExhaustive=!1,ze}function kw(J,me,ze){return J.expression!==me||J.caseBlock!==ze?yt(wx(me,ze),J):J}function QC(J,me){let ze=X(256);return ze.label=Sm(J),ze.statement=Ne(me),ze.transformFlags|=ka(ze.label)|ka(ze.statement),ze.jsDoc=void 0,ze.flowNode=void 0,ze}function US(J,me,ze){return J.label!==me||J.statement!==ze?yt(QC(me,ze),J):J}function Zv(J){let me=X(257);return me.expression=J,me.transformFlags|=ka(me.expression),me.jsDoc=void 0,me.flowNode=void 0,me}function fv(J,me){return J.expression!==me?yt(Zv(me),J):J}function _v(J,me,ze){let kt=X(258);return kt.tryBlock=J,kt.catchClause=me,kt.finallyBlock=ze,kt.transformFlags|=ka(kt.tryBlock)|ka(kt.catchClause)|ka(kt.finallyBlock),kt.jsDoc=void 0,kt.flowNode=void 0,kt}function Gu(J,me,ze,kt){return J.tryBlock!==me||J.catchClause!==ze||J.finallyBlock!==kt?yt(_v(me,ze,kt),J):J}function pT(){let J=X(259);return J.jsDoc=void 0,J.flowNode=void 0,J}function pP(J,me,ze,kt){let Di=ne(260);return Di.name=Sm(J),Di.exclamationToken=me,Di.type=ze,Di.initializer=Ns(kt),Di.transformFlags|=sL(Di.name)|ka(Di.initializer)|(Di.exclamationToken??Di.type?1:0),Di.jsDoc=void 0,Di}function fI(J,me,ze,kt,Di){return J.name!==me||J.type!==kt||J.exclamationToken!==ze||J.initializer!==Di?yt(pP(me,ze,kt,Di),J):J}function ZC(J,me=0){let ze=X(261);return ze.flags|=me&7,ze.declarations=re(J),ze.transformFlags|=d_(ze.declarations)|4194304,me&7&&(ze.transformFlags|=263168),me&4&&(ze.transformFlags|=4),ze}function Tx(J,me){return J.declarations!==me?yt(ZC(me,J.flags),J):J}function e1(J,me,ze,kt,Di,Ir,xs){let Ll=ne(262);if(Ll.modifiers=Hf(J),Ll.asteriskToken=me,Ll.name=Sm(ze),Ll.typeParameters=Hf(kt),Ll.parameters=re(Di),Ll.type=Ir,Ll.body=xs,!Ll.body||tI(Ll.modifiers)&128)Ll.transformFlags=1;else{let sp=tI(Ll.modifiers)&1024,xT=!!Ll.asteriskToken,nE=sp&&xT;Ll.transformFlags=d_(Ll.modifiers)|ka(Ll.asteriskToken)|sL(Ll.name)|d_(Ll.typeParameters)|d_(Ll.parameters)|ka(Ll.type)|ka(Ll.body)&-67108865|(nE?128:sp?256:xT?2048:0)|(Ll.typeParameters||Ll.type?1:0)|4194304}return Ll.typeArguments=void 0,Ll.jsDoc=void 0,Ll.locals=void 0,Ll.nextContainer=void 0,Ll.endFlowNode=void 0,Ll.returnFlowNode=void 0,Ll}function P1(J,me,ze,kt,Di,Ir,xs,Ll){return J.modifiers!==me||J.asteriskToken!==ze||J.name!==kt||J.typeParameters!==Di||J.parameters!==Ir||J.type!==xs||J.body!==Ll?gp(e1(me,ze,kt,Di,Ir,xs,Ll),J):J}function gp(J,me){return J!==me&&J.modifiers===me.modifiers&&(J.modifiers=me.modifiers),se(J,me)}function ny(J,me,ze,kt,Di){let Ir=ne(263);return Ir.modifiers=Hf(J),Ir.name=Sm(me),Ir.typeParameters=Hf(ze),Ir.heritageClauses=Hf(kt),Ir.members=re(Di),tI(Ir.modifiers)&128?Ir.transformFlags=1:(Ir.transformFlags|=d_(Ir.modifiers)|sL(Ir.name)|d_(Ir.typeParameters)|d_(Ir.heritageClauses)|d_(Ir.members)|(Ir.typeParameters?1:0)|1024,Ir.transformFlags&8192&&(Ir.transformFlags|=1)),Ir.jsDoc=void 0,Ir}function lD(J,me,ze,kt,Di,Ir){return J.modifiers!==me||J.name!==ze||J.typeParameters!==kt||J.heritageClauses!==Di||J.members!==Ir?yt(ny(me,ze,kt,Di,Ir),J):J}function Fk(J,me,ze,kt,Di){let Ir=ne(264);return Ir.modifiers=Hf(J),Ir.name=Sm(me),Ir.typeParameters=Hf(ze),Ir.heritageClauses=Hf(kt),Ir.members=re(Di),Ir.transformFlags=1,Ir.jsDoc=void 0,Ir}function Tg(J,me,ze,kt,Di,Ir){return J.modifiers!==me||J.name!==ze||J.typeParameters!==kt||J.heritageClauses!==Di||J.members!==Ir?yt(Fk(me,ze,kt,Di,Ir),J):J}function Oi(J,me,ze,kt){let Di=ne(265);return Di.modifiers=Hf(J),Di.name=Sm(me),Di.typeParameters=Hf(ze),Di.type=kt,Di.transformFlags=1,Di.jsDoc=void 0,Di.locals=void 0,Di.nextContainer=void 0,Di}function L1(J,me,ze,kt,Di){return J.modifiers!==me||J.name!==ze||J.typeParameters!==kt||J.type!==Di?yt(Oi(me,ze,kt,Di),J):J}function zm(J,me,ze){let kt=ne(266);return kt.modifiers=Hf(J),kt.name=Sm(me),kt.members=re(ze),kt.transformFlags|=d_(kt.modifiers)|ka(kt.name)|d_(kt.members)|1,kt.transformFlags&=-67108865,kt.jsDoc=void 0,kt}function _I(J,me,ze,kt){return J.modifiers!==me||J.name!==ze||J.members!==kt?yt(zm(me,ze,kt),J):J}function Hh(J,me,ze,kt=0){let Di=ne(267);return Di.modifiers=Hf(J),Di.flags|=kt&2088,Di.name=me,Di.body=ze,tI(Di.modifiers)&128?Di.transformFlags=1:Di.transformFlags|=d_(Di.modifiers)|ka(Di.name)|ka(Di.body)|1,Di.transformFlags&=-67108865,Di.jsDoc=void 0,Di.locals=void 0,Di.nextContainer=void 0,Di}function pv(J,me,ze,kt){return J.modifiers!==me||J.name!==ze||J.body!==kt?yt(Hh(me,ze,kt,J.flags),J):J}function Bg(J){let me=X(268);return me.statements=re(J),me.transformFlags|=d_(me.statements),me.jsDoc=void 0,me}function Mk(J,me){return J.statements!==me?yt(Bg(me),J):J}function mT(J){let me=X(269);return me.clauses=re(J),me.transformFlags|=d_(me.clauses),me.locals=void 0,me.nextContainer=void 0,me}function ki(J,me){return J.clauses!==me?yt(mT(me),J):J}function Ly(J){let me=ne(270);return me.name=Sm(J),me.transformFlags|=lee(me.name)|1,me.modifiers=void 0,me.jsDoc=void 0,me}function lC(J,me){return J.name!==me?uD(Ly(me),J):J}function uD(J,me){return J!==me&&(J.modifiers=me.modifiers),yt(J,me)}function mP(J,me,ze,kt){let Di=ne(271);return Di.modifiers=Hf(J),Di.name=Sm(ze),Di.isTypeOnly=me,Di.moduleReference=kt,Di.transformFlags|=d_(Di.modifiers)|lee(Di.name)|ka(Di.moduleReference),Zg(Di.moduleReference)||(Di.transformFlags|=1),Di.transformFlags&=-67108865,Di.jsDoc=void 0,Di}function Rk(J,me,ze,kt,Di){return J.modifiers!==me||J.isTypeOnly!==ze||J.name!==kt||J.moduleReference!==Di?yt(mP(me,ze,kt,Di),J):J}function uC(J,me,ze,kt){let Di=X(272);return Di.modifiers=Hf(J),Di.importClause=me,Di.moduleSpecifier=ze,Di.attributes=Di.assertClause=kt,Di.transformFlags|=ka(Di.importClause)|ka(Di.moduleSpecifier),Di.transformFlags&=-67108865,Di.jsDoc=void 0,Di}function Ex(J,me,ze,kt,Di){return J.modifiers!==me||J.importClause!==ze||J.moduleSpecifier!==kt||J.attributes!==Di?yt(uC(me,ze,kt,Di),J):J}function pI(J,me,ze){let kt=ne(273);return kt.isTypeOnly=J,kt.name=me,kt.namedBindings=ze,kt.transformFlags|=ka(kt.name)|ka(kt.namedBindings),J&&(kt.transformFlags|=1),kt.transformFlags&=-67108865,kt}function Ou(J,me,ze,kt){return J.isTypeOnly!==me||J.name!==ze||J.namedBindings!==kt?yt(pI(me,ze,kt),J):J}function jg(J,me){let ze=X(300);return ze.elements=re(J),ze.multiLine=me,ze.token=132,ze.transformFlags|=4,ze}function ek(J,me,ze){return J.elements!==me||J.multiLine!==ze?yt(jg(me,ze),J):J}function ww(J,me){let ze=X(301);return ze.name=J,ze.value=me,ze.transformFlags|=4,ze}function Kc(J,me,ze){return J.name!==me||J.value!==ze?yt(ww(me,ze),J):J}function oa(J,me){let ze=X(302);return ze.assertClause=J,ze.multiLine=me,ze}function yh(J,me,ze){return J.assertClause!==me||J.multiLine!==ze?yt(oa(me,ze),J):J}function hT(J,me,ze){let kt=X(300);return kt.token=ze??118,kt.elements=re(J),kt.multiLine=me,kt.transformFlags|=4,kt}function dC(J,me,ze){return J.elements!==me||J.multiLine!==ze?yt(hT(me,ze,J.token),J):J}function dD(J,me){let ze=X(301);return ze.name=J,ze.value=me,ze.transformFlags|=4,ze}function Uy(J,me,ze){return J.name!==me||J.value!==ze?yt(dD(me,ze),J):J}function Y2(J){let me=ne(274);return me.name=J,me.transformFlags|=ka(me.name),me.transformFlags&=-67108865,me}function fC(J,me){return J.name!==me?yt(Y2(me),J):J}function Nl(J){let me=ne(280);return me.name=J,me.transformFlags|=ka(me.name)|32,me.transformFlags&=-67108865,me}function ra(J,me){return J.name!==me?yt(Nl(me),J):J}function Wp(J){let me=X(275);return me.elements=re(J),me.transformFlags|=d_(me.elements),me.transformFlags&=-67108865,me}function Tw(J,me){return J.elements!==me?yt(Wp(me),J):J}function W_(J,me,ze){let kt=ne(276);return kt.isTypeOnly=J,kt.propertyName=me,kt.name=ze,kt.transformFlags|=ka(kt.propertyName)|ka(kt.name),kt.transformFlags&=-67108865,kt}function Ew(J,me,ze,kt){return J.isTypeOnly!==me||J.propertyName!==ze||J.name!==kt?yt(W_(me,ze,kt),J):J}function mI(J,me,ze){let kt=ne(277);return kt.modifiers=Hf(J),kt.isExportEquals=me,kt.expression=me?u().parenthesizeRightSideOfBinary(64,void 0,ze):u().parenthesizeExpressionOfExportDefault(ze),kt.transformFlags|=d_(kt.modifiers)|ka(kt.expression),kt.transformFlags&=-67108865,kt.jsDoc=void 0,kt}function LN(J,me,ze){return J.modifiers!==me||J.expression!==ze?yt(mI(me,J.isExportEquals,ze),J):J}function yp(J,me,ze,kt,Di){let Ir=ne(278);return Ir.modifiers=Hf(J),Ir.isTypeOnly=me,Ir.exportClause=ze,Ir.moduleSpecifier=kt,Ir.attributes=Ir.assertClause=Di,Ir.transformFlags|=d_(Ir.modifiers)|ka(Ir.exportClause)|ka(Ir.moduleSpecifier),Ir.transformFlags&=-67108865,Ir.jsDoc=void 0,Ir}function a2(J,me,ze,kt,Di,Ir){return J.modifiers!==me||J.isTypeOnly!==ze||J.exportClause!==kt||J.moduleSpecifier!==Di||J.attributes!==Ir?Q4(yp(me,ze,kt,Di,Ir),J):J}function Q4(J,me){return J!==me&&J.modifiers===me.modifiers&&(J.modifiers=me.modifiers),yt(J,me)}function Dx(J){let me=X(279);return me.elements=re(J),me.transformFlags|=d_(me.elements),me.transformFlags&=-67108865,me}function sa(J,me){return J.elements!==me?yt(Dx(me),J):J}function ry(J,me,ze){let kt=X(281);return kt.isTypeOnly=J,kt.propertyName=Sm(me),kt.name=Sm(ze),kt.transformFlags|=ka(kt.propertyName)|ka(kt.name),kt.transformFlags&=-67108865,kt.jsDoc=void 0,kt}function Cu(J,me,ze,kt){return J.isTypeOnly!==me||J.propertyName!==ze||J.name!==kt?yt(ry(me,ze,kt),J):J}function Q2(){let J=ne(282);return J.jsDoc=void 0,J}function aa(J){let me=X(283);return me.expression=J,me.transformFlags|=ka(me.expression),me.transformFlags&=-67108865,me}function rm(J,me){return J.expression!==me?yt(aa(me),J):J}function ro(J){return X(J)}function Z2(J,me,ze=!1){let kt=Z4(J,ze?me&&u().parenthesizeNonArrayTypeOfPostfixType(me):me);return kt.postfix=ze,kt}function Z4(J,me){let ze=X(J);return ze.type=me,ze}function F0(J,me,ze){return me.type!==ze?yt(Z2(J,ze,me.postfix),me):me}function ys(J,me,ze){return me.type!==ze?yt(Z4(J,ze),me):me}function _C(J,me){let ze=ne(317);return ze.parameters=Hf(J),ze.type=me,ze.transformFlags=d_(ze.parameters)|(ze.type?1:0),ze.jsDoc=void 0,ze.locals=void 0,ze.nextContainer=void 0,ze.typeArguments=void 0,ze}function c2(J,me,ze){return J.parameters!==me||J.type!==ze?yt(_C(me,ze),J):J}function M0(J,me=!1){let ze=ne(322);return ze.jsDocPropertyTags=Hf(J),ze.isArrayType=me,ze}function Uh(J,me,ze){return J.jsDocPropertyTags!==me||J.isArrayType!==ze?yt(M0(me,ze),J):J}function Nh(J){let me=X(309);return me.type=J,me}function Ix(J,me){return J.type!==me?yt(Nh(me),J):J}function cS(J,me,ze){let kt=ne(323);return kt.typeParameters=Hf(J),kt.parameters=re(me),kt.type=ze,kt.jsDoc=void 0,kt.locals=void 0,kt.nextContainer=void 0,kt}function lS(J,me,ze,kt){return J.typeParameters!==me||J.parameters!==ze||J.type!==kt?yt(cS(me,ze,kt),J):J}function Jy(J){let me=zme(J.kind);return J.tagName.escapedText===kh(me)?J.tagName:Ae(me)}function Bk(J,me,ze){let kt=X(J);return kt.tagName=me,kt.comment=ze,kt}function kb(J,me,ze){let kt=ne(J);return kt.tagName=me,kt.comment=ze,kt}function gT(J,me,ze,kt){let Di=Bk(345,J??Ae("template"),kt);return Di.constraint=me,Di.typeParameters=re(ze),Di}function fD(J,me=Jy(J),ze,kt,Di){return J.tagName!==me||J.constraint!==ze||J.typeParameters!==kt||J.comment!==Di?yt(gT(me,ze,kt,Di),J):J}function hI(J,me,ze,kt){let Di=kb(346,J??Ae("typedef"),kt);return Di.typeExpression=me,Di.fullName=ze,Di.name=i8e(ze),Di.locals=void 0,Di.nextContainer=void 0,Di}function _D(J,me=Jy(J),ze,kt,Di){return J.tagName!==me||J.typeExpression!==ze||J.fullName!==kt||J.comment!==Di?yt(hI(me,ze,kt,Di),J):J}function wb(J,me,ze,kt,Di,Ir){let xs=kb(341,J??Ae("param"),Ir);return xs.typeExpression=kt,xs.name=me,xs.isNameFirst=!!Di,xs.isBracketed=ze,xs}function e6(J,me=Jy(J),ze,kt,Di,Ir,xs){return J.tagName!==me||J.name!==ze||J.isBracketed!==kt||J.typeExpression!==Di||J.isNameFirst!==Ir||J.comment!==xs?yt(wb(me,ze,kt,Di,Ir,xs),J):J}function pD(J,me,ze,kt,Di,Ir){let xs=kb(348,J??Ae("prop"),Ir);return xs.typeExpression=kt,xs.name=me,xs.isNameFirst=!!Di,xs.isBracketed=ze,xs}function eE(J,me=Jy(J),ze,kt,Di,Ir,xs){return J.tagName!==me||J.name!==ze||J.isBracketed!==kt||J.typeExpression!==Di||J.isNameFirst!==Ir||J.comment!==xs?yt(pD(me,ze,kt,Di,Ir,xs),J):J}function O1(J,me,ze,kt){let Di=kb(338,J??Ae("callback"),kt);return Di.typeExpression=me,Di.fullName=ze,Di.name=i8e(ze),Di.locals=void 0,Di.nextContainer=void 0,Di}function mD(J,me=Jy(J),ze,kt,Di){return J.tagName!==me||J.typeExpression!==ze||J.fullName!==kt||J.comment!==Di?yt(O1(me,ze,kt,Di),J):J}function Tb(J,me,ze){let kt=Bk(339,J??Ae("overload"),ze);return kt.typeExpression=me,kt}function jk(J,me=Jy(J),ze,kt){return J.tagName!==me||J.typeExpression!==ze||J.comment!==kt?yt(Tb(me,ze,kt),J):J}function tk(J,me,ze){let kt=Bk(328,J??Ae("augments"),ze);return kt.class=me,kt}function Ah(J,me=Jy(J),ze,kt){return J.tagName!==me||J.class!==ze||J.comment!==kt?yt(tk(me,ze,kt),J):J}function t1(J,me,ze){let kt=Bk(329,J??Ae("implements"),ze);return kt.class=me,kt}function uS(J,me,ze){let kt=Bk(347,J??Ae("see"),ze);return kt.name=me,kt}function Vm(J,me,ze,kt){return J.tagName!==me||J.name!==ze||J.comment!==kt?yt(uS(me,ze,kt),J):J}function __(J){let me=X(310);return me.name=J,me}function yT(J,me){return J.name!==me?yt(__(me),J):J}function i0(J,me){let ze=X(311);return ze.left=J,ze.right=me,ze.transformFlags|=ka(ze.left)|ka(ze.right),ze}function dS(J,me,ze){return J.left!==me||J.right!==ze?yt(i0(me,ze),J):J}function gI(J,me){let ze=X(324);return ze.name=J,ze.text=me,ze}function Eb(J,me,ze){return J.name!==me?yt(gI(me,ze),J):J}function hD(J,me){let ze=X(325);return ze.name=J,ze.text=me,ze}function pC(J,me,ze){return J.name!==me?yt(hD(me,ze),J):J}function Nm(J,me){let ze=X(326);return ze.name=J,ze.text=me,ze}function oy(J,me,ze){return J.name!==me?yt(Nm(me,ze),J):J}function th(J,me=Jy(J),ze,kt){return J.tagName!==me||J.class!==ze||J.comment!==kt?yt(t1(me,ze,kt),J):J}function qy(J,me,ze){return Bk(J,me??Ae(zme(J)),ze)}function F1(J,me,ze=Jy(me),kt){return me.tagName!==ze||me.comment!==kt?yt(qy(J,ze,kt),me):me}function yI(J,me,ze,kt){let Di=Bk(J,me??Ae(zme(J)),kt);return Di.typeExpression=ze,Di}function vT(J,me,ze=Jy(me),kt,Di){return me.tagName!==ze||me.typeExpression!==kt||me.comment!==Di?yt(yI(J,ze,kt,Di),me):me}function $y(J,me){return Bk(327,J,me)}function l2(J,me,ze){return J.tagName!==me||J.comment!==ze?yt($y(me,ze),J):J}function vI(J,me,ze){let kt=kb(340,J??Ae(zme(340)),ze);return kt.typeExpression=me,kt.locals=void 0,kt.nextContainer=void 0,kt}function hP(J,me=Jy(J),ze,kt){return J.tagName!==me||J.typeExpression!==ze||J.comment!==kt?yt(vI(me,ze,kt),J):J}function zf(J,me,ze,kt,Di){let Ir=Bk(351,J??Ae("import"),Di);return Ir.importClause=me,Ir.moduleSpecifier=ze,Ir.attributes=kt,Ir.comment=Di,Ir}function kF(J,me,ze,kt,Di,Ir){return J.tagName!==me||J.comment!==Ir||J.importClause!==ze||J.moduleSpecifier!==kt||J.attributes!==Di?yt(zf(me,ze,kt,Di,Ir),J):J}function bI(J){let me=X(321);return me.text=J,me}function SI(J,me){return J.text!==me?yt(bI(me),J):J}function gD(J,me){let ze=X(320);return ze.comment=J,ze.tags=Hf(me),ze}function Gy(J,me,ze){return J.comment!==me||J.tags!==ze?yt(gD(me,ze),J):J}function ON(J,me,ze){let kt=X(284);return kt.openingElement=J,kt.children=re(me),kt.closingElement=ze,kt.transformFlags|=ka(kt.openingElement)|d_(kt.children)|ka(kt.closingElement)|2,kt}function gP(J,me,ze,kt){return J.openingElement!==me||J.children!==ze||J.closingElement!==kt?yt(ON(me,ze,kt),J):J}function M1(J,me,ze){let kt=X(285);return kt.tagName=J,kt.typeArguments=Hf(me),kt.attributes=ze,kt.transformFlags|=ka(kt.tagName)|d_(kt.typeArguments)|ka(kt.attributes)|2,kt.typeArguments&&(kt.transformFlags|=1),kt}function R1(J,me,ze,kt){return J.tagName!==me||J.typeArguments!==ze||J.attributes!==kt?yt(M1(me,ze,kt),J):J}function yD(J,me,ze){let kt=X(286);return kt.tagName=J,kt.typeArguments=Hf(me),kt.attributes=ze,kt.transformFlags|=ka(kt.tagName)|d_(kt.typeArguments)|ka(kt.attributes)|2,me&&(kt.transformFlags|=1),kt}function mv(J,me,ze,kt){return J.tagName!==me||J.typeArguments!==ze||J.attributes!==kt?yt(yD(me,ze,kt),J):J}function g0(J){let me=X(287);return me.tagName=J,me.transformFlags|=ka(me.tagName)|2,me}function FN(J,me){return J.tagName!==me?yt(g0(me),J):J}function tE(J,me,ze){let kt=X(288);return kt.openingFragment=J,kt.children=re(me),kt.closingFragment=ze,kt.transformFlags|=ka(kt.openingFragment)|d_(kt.children)|ka(kt.closingFragment)|2,kt}function r_(J,me,ze,kt){return J.openingFragment!==me||J.children!==ze||J.closingFragment!==kt?yt(tE(me,ze,kt),J):J}function ma(J,me){let ze=X(12);return ze.text=J,ze.containsOnlyTriviaWhiteSpaces=!!me,ze.transformFlags|=2,ze}function Db(J,me,ze){return J.text!==me||J.containsOnlyTriviaWhiteSpaces!==ze?yt(ma(me,ze),J):J}function R0(){let J=X(289);return J.transformFlags|=2,J}function vD(){let J=X(290);return J.transformFlags|=2,J}function Fv(J,me){let ze=ne(291);return ze.name=J,ze.initializer=me,ze.transformFlags|=ka(ze.name)|ka(ze.initializer)|2,ze}function ik(J,me,ze){return J.name!==me||J.initializer!==ze?yt(Fv(me,ze),J):J}function mC(J){let me=ne(292);return me.properties=re(J),me.transformFlags|=d_(me.properties)|2,me}function yO(J,me){return J.properties!==me?yt(mC(me),J):J}function Vf(J){let me=X(293);return me.expression=J,me.transformFlags|=ka(me.expression)|2,me}function Bs(J,me){return J.expression!==me?yt(Vf(me),J):J}function Hm(J,me){let ze=X(294);return ze.dotDotDotToken=J,ze.expression=me,ze.transformFlags|=ka(ze.dotDotDotToken)|ka(ze.expression)|2,ze}function B0(J,me){return J.expression!==me?yt(Hm(J.dotDotDotToken,me),J):J}function hC(J,me){let ze=X(295);return ze.namespace=J,ze.name=me,ze.transformFlags|=ka(ze.namespace)|ka(ze.name)|2,ze}function iE(J,me,ze){return J.namespace!==me||J.name!==ze?yt(hC(me,ze),J):J}function yP(J,me){let ze=X(296);return ze.expression=u().parenthesizeExpressionForDisallowedComma(J),ze.statements=re(me),ze.transformFlags|=ka(ze.expression)|d_(ze.statements),ze.jsDoc=void 0,ze}function ih(J,me,ze){return J.expression!==me||J.statements!==ze?yt(yP(me,ze),J):J}function JS(J){let me=X(297);return me.statements=re(J),me.transformFlags=d_(me.statements),me}function i1(J,me){return J.statements!==me?yt(JS(me),J):J}function n1(J,me){let ze=X(298);switch(ze.token=J,ze.types=re(me),ze.transformFlags|=d_(ze.types),J){case 96:ze.transformFlags|=1024;break;case 119:ze.transformFlags|=1;break;default:return Se.assertNever(J)}return ze}function Jh(J,me){return J.types!==me?yt(n1(J.token,me),J):J}function r1(J,me){let ze=X(299);return ze.variableDeclaration=Ze(J),ze.block=me,ze.transformFlags|=ka(ze.variableDeclaration)|ka(ze.block)|(J?0:64),ze.locals=void 0,ze.nextContainer=void 0,ze}function fS(J,me,ze){return J.variableDeclaration!==me||J.block!==ze?yt(r1(me,ze),J):J}function ge(J,me){let ze=ne(303);return ze.name=Sm(J),ze.initializer=u().parenthesizeExpressionForDisallowedComma(me),ze.transformFlags|=sL(ze.name)|ka(ze.initializer),ze.modifiers=void 0,ze.questionToken=void 0,ze.exclamationToken=void 0,ze.jsDoc=void 0,ze}function Vt(J,me,ze){return J.name!==me||J.initializer!==ze?Sn(ge(me,ze),J):J}function Sn(J,me){return J!==me&&(J.modifiers=me.modifiers,J.questionToken=me.questionToken,J.exclamationToken=me.exclamationToken),yt(J,me)}function Wr(J,me){let ze=ne(304);return ze.name=Sm(J),ze.objectAssignmentInitializer=me&&u().parenthesizeExpressionForDisallowedComma(me),ze.transformFlags|=lee(ze.name)|ka(ze.objectAssignmentInitializer)|1024,ze.equalsToken=void 0,ze.modifiers=void 0,ze.questionToken=void 0,ze.exclamationToken=void 0,ze.jsDoc=void 0,ze}function de(J,me,ze){return J.name!==me||J.objectAssignmentInitializer!==ze?Et(Wr(me,ze),J):J}function Et(J,me){return J!==me&&(J.modifiers=me.modifiers,J.questionToken=me.questionToken,J.exclamationToken=me.exclamationToken,J.equalsToken=me.equalsToken),yt(J,me)}function Gi(J){let me=ne(305);return me.expression=u().parenthesizeExpressionForDisallowedComma(J),me.transformFlags|=ka(me.expression)|128|65536,me.jsDoc=void 0,me}function rr(J,me){return J.expression!==me?yt(Gi(me),J):J}function as(J,me){let ze=ne(306);return ze.name=Sm(J),ze.initializer=me&&u().parenthesizeExpressionForDisallowedComma(me),ze.transformFlags|=ka(ze.name)|ka(ze.initializer)|1,ze.jsDoc=void 0,ze}function Hc(J,me,ze){return J.name!==me||J.initializer!==ze?yt(as(me,ze),J):J}function Qc(J,me,ze){let kt=n.createBaseSourceFileNode(307);return kt.statements=re(J),kt.endOfFileToken=me,kt.flags|=ze,kt.text="",kt.fileName="",kt.path="",kt.resolvedPath="",kt.originalFileName="",kt.languageVersion=1,kt.languageVariant=0,kt.scriptKind=0,kt.isDeclarationFile=!1,kt.hasNoDefaultLib=!1,kt.transformFlags|=d_(kt.statements)|ka(kt.endOfFileToken),kt.locals=void 0,kt.nextContainer=void 0,kt.endFlowNode=void 0,kt.nodeCount=0,kt.identifierCount=0,kt.symbolCount=0,kt.parseDiagnostics=void 0,kt.bindDiagnostics=void 0,kt.bindSuggestionDiagnostics=void 0,kt.lineMap=void 0,kt.externalModuleIndicator=void 0,kt.setExternalModuleIndicator=void 0,kt.pragmas=void 0,kt.checkJsDirective=void 0,kt.referencedFiles=void 0,kt.typeReferenceDirectives=void 0,kt.libReferenceDirectives=void 0,kt.amdDependencies=void 0,kt.commentDirectives=void 0,kt.identifiers=void 0,kt.packageJsonLocations=void 0,kt.packageJsonScope=void 0,kt.imports=void 0,kt.moduleAugmentations=void 0,kt.ambientModuleNames=void 0,kt.classifiableNames=void 0,kt.impliedNodeFormat=void 0,kt}function Sl(J){let me=Object.create(J.redirectTarget);return Object.defineProperties(me,{id:{get(){return this.redirectInfo.redirectTarget.id},set(ze){this.redirectInfo.redirectTarget.id=ze}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(ze){this.redirectInfo.redirectTarget.symbol=ze}}}),me.redirectInfo=J,me}function ml(J){let me=Sl(J.redirectInfo);return me.flags|=J.flags&-17,me.fileName=J.fileName,me.path=J.path,me.resolvedPath=J.resolvedPath,me.originalFileName=J.originalFileName,me.packageJsonLocations=J.packageJsonLocations,me.packageJsonScope=J.packageJsonScope,me.emitNode=void 0,me}function bm(J){let me=n.createBaseSourceFileNode(307);me.flags|=J.flags&-17;for(let ze in J)if(!(bf(me,ze)||!bf(J,ze))){if(ze==="emitNode"){me.emitNode=void 0;continue}me[ze]=J[ze]}return me}function Um(J){let me=J.redirectInfo?ml(J):bm(J);return a(me,J),me}function B1(J,me,ze,kt,Di,Ir,xs){let Ll=Um(J);return Ll.statements=re(me),Ll.isDeclarationFile=ze,Ll.referencedFiles=kt,Ll.typeReferenceDirectives=Di,Ll.hasNoDefaultLib=Ir,Ll.libReferenceDirectives=xs,Ll.transformFlags=d_(Ll.statements)|ka(Ll.endOfFileToken),Ll}function bT(J,me,ze=J.isDeclarationFile,kt=J.referencedFiles,Di=J.typeReferenceDirectives,Ir=J.hasNoDefaultLib,xs=J.libReferenceDirectives){return J.statements!==me||J.isDeclarationFile!==ze||J.referencedFiles!==kt||J.typeReferenceDirectives!==Di||J.hasNoDefaultLib!==Ir||J.libReferenceDirectives!==xs?yt(B1(J,me,ze,kt,Di,Ir,xs),J):J}function Ib(J){let me=X(308);return me.sourceFiles=J,me.syntheticFileReferences=void 0,me.syntheticTypeReferences=void 0,me.syntheticLibReferences=void 0,me.hasNoDefaultLib=void 0,me}function Dw(J,me){return J.sourceFiles!==me?yt(Ib(me),J):J}function u2(J,me=!1,ze){let kt=X(237);return kt.type=J,kt.isSpread=me,kt.tupleNameSource=ze,kt}function ST(J){let me=X(352);return me._children=J,me}function bD(J){let me=X(353);return me.original=J,Fn(me,J),me}function hl(J,me){let ze=X(354);return ze.expression=J,ze.original=me,ze.transformFlags|=ka(ze.expression)|1,Fn(ze,me),ze}function _S(J,me){return J.expression!==me?yt(hl(me,J.original),J):J}function cs(J){if(um(J)&&!joe(J)&&!J.original&&!J.emitNode&&!J.id){if(Lg(J))return J.elements;if(ms(J)&&mee(J.operatorToken))return[J.left,J.right]}return J}function xI(J){let me=X(355);return me.elements=re(Xl(J,cs)),me.transformFlags|=d_(me.elements),me}function EL(J,me){return J.elements!==me?yt(xI(me),J):J}function SD(J,me){let ze=X(356);return ze.expression=J,ze.thisArg=me,ze.transformFlags|=ka(ze.expression)|ka(ze.thisArg),ze}function wF(J,me,ze){return J.expression!==me||J.thisArg!==ze?yt(SD(me,ze),J):J}function GM(J){let me=fe(J.escapedText);return me.flags|=J.flags&-17,me.transformFlags=J.transformFlags,a(me,J),yU(me,{...J.emitNode.autoGenerate}),me}function VJ(J){let me=fe(J.escapedText);me.flags|=J.flags&-17,me.jsDoc=J.jsDoc,me.flowNode=J.flowNode,me.symbol=J.symbol,me.transformFlags=J.transformFlags,a(me,J);let ze=iW(J);return ze&&Zx(me,ze),me}function zl(J){let me=$e(J.escapedText);return me.flags|=J.flags&-17,me.transformFlags=J.transformFlags,a(me,J),yU(me,{...J.emitNode.autoGenerate}),me}function gC(J){let me=$e(J.escapedText);return me.flags|=J.flags&-17,me.transformFlags=J.transformFlags,a(me,J),me}function vs(J){if(J===void 0)return J;if(ul(J))return Um(J);if(Tm(J))return GM(J);if(Ai(J))return VJ(J);if(FA(J))return zl(J);if(wl(J))return gC(J);let me=MT(J.kind)?n.createBaseNode(J.kind):n.createBaseTokenNode(J.kind);me.flags|=J.flags&-17,me.transformFlags=J.transformFlags,a(me,J);for(let ze in J)bf(me,ze)||!bf(J,ze)||(me[ze]=J[ze]);return me}function KM(J,me,ze){return xo(A0(void 0,void 0,void 0,void 0,me?[me]:[],void 0,Co(J,!0)),void 0,ze?[ze]:[])}function TF(J,me,ze){return xo(wp(void 0,void 0,me?[me]:[],void 0,void 0,Co(J,!0)),void 0,ze?[ze]:[])}function vP(){return ln(_e("0"))}function MN(J){return mI(void 0,!1,J)}function kz(J){return yp(void 0,!1,Dx([ry(!1,void 0,J)]))}function t6(J,me){return me==="null"?K.createStrictEquality(J,Kt()):me==="undefined"?K.createStrictEquality(J,vP()):K.createStrictEquality(Ap(J),Ee(me))}function RN(J,me){return me==="null"?K.createStrictInequality(J,Kt()):me==="undefined"?K.createStrictInequality(J,vP()):K.createStrictInequality(Ap(J),Ee(me))}function yC(J,me,ze){return E2(J)?tl(td(J,void 0,me),void 0,void 0,ze):xo(B_(J,me),void 0,ze)}function Iw(J,me,ze){return yC(J,"bind",[me,...ze])}function EF(J,me,ze){return yC(J,"call",[me,...ze])}function HJ(J,me,ze){return yC(J,"apply",[me,ze])}function Wk(J,me,ze){return yC(Ae(J),me,ze)}function BN(J,me){return yC(J,"slice",me===void 0?[]:[hv(me)])}function wz(J,me){return yC(J,"concat",me)}function om(J,me,ze){return Wk("Object","defineProperty",[J,hv(me),ze])}function zk(J,me){return Wk("Object","getOwnPropertyDescriptor",[J,hv(me)])}function z_(J,me,ze){return Wk("Reflect","get",ze?[J,me,ze]:[J,me])}function Vd(J,me,ze,kt){return Wk("Reflect","set",kt?[J,me,ze,kt]:[J,me,ze])}function xD(J,me,ze){return ze?(J.push(ge(me,ze)),!0):!1}function DF(J,me){let ze=[];xD(ze,"enumerable",hv(J.enumerable)),xD(ze,"configurable",hv(J.configurable));let kt=xD(ze,"writable",hv(J.writable));kt=xD(ze,"value",J.value)||kt;let Di=xD(ze,"get",J.get);return Di=xD(ze,"set",J.set)||Di,Se.assert(!(kt&&Di),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),cu(ze,!me)}function gt(J,me){switch(J.kind){case 217:return e0(J,me);case 216:return tg(J,J.type,me);case 234:return sC(J,me,J.type);case 238:return dv(J,me,J.type);case 235:return aC(J,me);case 233:return Py(J,me,J.typeArguments);case 354:return _S(J,me)}}function di(J){return Tu(J)&&um(J)&&um(J8(J))&&um(Nv(J))&&!En(aL(J))&&!En(cae(J))}function Yi(J,me,ze=31){return J&&xN(J,ze)&&!di(J)?gt(J,Yi(J.expression,me)):me}function Ln(J,me,ze){if(!me)return J;let kt=US(me,me.label,dL(me.statement)?Ln(J,me.statement):J);return ze&&ze(me),kt}function Br(J,me){let ze=J_(J);switch(ze.kind){case 80:return me;case 110:case 9:case 10:case 11:return!1;case 209:return ze.elements.length!==0;case 210:return ze.properties.length>0;default:return!0}}function qr(J,me,ze,kt=!1){let Di=ug(J,31),Ir,xs;return Xx(Di)?(Ir=ht(),xs=Di):aW(Di)?(Ir=ht(),xs=ze!==void 0&&ze<2?Fn(Ae("_super"),Di):Di):N_(Di)&8192?(Ir=vP(),xs=u().parenthesizeLeftSideOfAccess(Di,!1)):ba(Di)?Br(Di.expression,kt)?(Ir=Ge(me),xs=B_(Fn(K.createAssignment(Ir,Di.expression),Di.expression),Di.name),Fn(xs,Di)):(Ir=Di.expression,xs=Di):T_(Di)?Br(Di.expression,kt)?(Ir=Ge(me),xs=er(Fn(K.createAssignment(Ir,Di.expression),Di.expression),Di.argumentExpression),Fn(xs,Di)):(Ir=Di.expression,xs=Di):(Ir=vP(),xs=u().parenthesizeLeftSideOfAccess(J,!1)),{target:xs,thisArg:Ir}}function Qe(J,me){return B_(Rg(cu([Ve(void 0,"value",[xr(void 0,void 0,J,void 0,void 0,void 0)],Co([Li(me)]))])),"value")}function $t(J){return J.length>10?xI(J):$m(J,K.createComma)}function vi(J,me,ze,kt=0,Di){let Ir=Di?J&&bpe(J):Nu(J);if(Ir&&Ai(Ir)&&!Tm(Ir)){let xs=dp(Fn(vs(Ir),Ir),Ir.parent);return kt|=N_(Ir),ze||(kt|=96),me||(kt|=3072),kt&&De(xs,kt),xs}return Re(J)}function Ki(J,me,ze){return vi(J,me,ze,98304)}function jn(J,me,ze,kt){return vi(J,me,ze,32768,kt)}function $r(J,me,ze){return vi(J,me,ze,16384)}function jo(J,me,ze){return vi(J,me,ze)}function Ms(J,me,ze,kt){let Di=B_(J,um(me)?me:vs(me));Fn(Di,me);let Ir=0;return kt||(Ir|=96),ze||(Ir|=3072),Ir&&De(Di,Ir),Di}function rc(J,me,ze,kt){return J&&kc(me,32)?Ms(J,vi(me),ze,kt):$r(me,ze,kt)}function _c(J,me,ze,kt){let Di=uf(J,me,0,ze);return Of(J,me,Di,kt)}function gl(J){return Kf(J.expression)&&J.expression.text==="use strict"}function v_(){return T1(Li(Ee("use strict")))}function uf(J,me,ze=0,kt){Se.assert(me.length===0,"Prologue directives should be at the first statement in the target statements array");let Di=!1,Ir=J.length;for(;zeLl&&xT.splice(Di,0,...me.slice(Ll,sp)),Ll>xs&&xT.splice(kt,0,...me.slice(xs,Ll)),xs>Ir&&xT.splice(ze,0,...me.slice(Ir,xs)),Ir>0)if(ze===0)xT.splice(0,0,...me.slice(0,Ir));else{let nE=new Map;for(let Vk=0;Vk=0;Vk--){let Tz=me[Vk];nE.has(Tz.expression.text)||xT.unshift(Tz)}}return f4(J)?Fn(re(xT,J.hasTrailingComma),J):J}function Am(J,me){let ze;return typeof me=="number"?ze=wi(me):ze=me,Yp(J)?zr(J,ze,J.name,J.constraint,J.default):Fl(J)?lo(J,ze,J.dotDotDotToken,J.name,J.questionToken,J.type,J.initializer):Dm(J)?In(J,ze,J.typeParameters,J.parameters,J.type):hx(J)?mn(J,ze,J.name,J.questionToken,J.type):vu(J)?ci(J,ze,J.name,J.questionToken??J.exclamationToken,J.type,J.initializer):sT(J)?Sr(J,ze,J.name,J.questionToken,J.typeParameters,J.parameters,J.type):Sg(J)?$o(J,ze,J.asteriskToken,J.name,J.questionToken,J.typeParameters,J.parameters,J.type,J.body):yl(J)?Xi(J,ze,J.parameters,J.body):n_(J)?Pe(J,ze,J.name,J.parameters,J.type,J.body):zc(J)?Tt(J,ze,J.name,J.parameters,J.body):nu(J)?Ie(J,ze,J.parameters,J.type):yd(J)?gh(J,ze,J.asteriskToken,J.name,J.typeParameters,J.parameters,J.type,J.body):Zc(J)?xb(J,ze,J.typeParameters,J.parameters,J.type,J.equalsGreaterThanToken,J.body):Qh(J)?m0(J,ze,J.name,J.typeParameters,J.heritageClauses,J.members):Zh(J)?qt(J,ze,J.declarationList):fp(J)?P1(J,ze,J.asteriskToken,J.name,J.typeParameters,J.parameters,J.type,J.body):D0(J)?lD(J,ze,J.name,J.typeParameters,J.heritageClauses,J.members):ky(J)?Tg(J,ze,J.name,J.typeParameters,J.heritageClauses,J.members):k1(J)?L1(J,ze,J.name,J.typeParameters,J.type):Z8(J)?_I(J,ze,J.name,J.members):Dh(J)?pv(J,ze,J.name,J.body):pf(J)?Rk(J,ze,J.isTypeOnly,J.name,J.moduleReference):Dd(J)?Ex(J,ze,J.importClause,J.moduleSpecifier,J.attributes):Bm(J)?LN(J,ze,J.expression):Qg(J)?a2(J,ze,J.isTypeOnly,J.exportClause,J.moduleSpecifier,J.attributes):Se.assertNever(J)}function Nw(J,me){return Fl(J)?lo(J,me,J.dotDotDotToken,J.name,J.questionToken,J.type,J.initializer):vu(J)?ci(J,me,J.name,J.questionToken??J.exclamationToken,J.type,J.initializer):Sg(J)?$o(J,me,J.asteriskToken,J.name,J.questionToken,J.typeParameters,J.parameters,J.type,J.body):n_(J)?Pe(J,me,J.name,J.parameters,J.type,J.body):zc(J)?Tt(J,me,J.name,J.parameters,J.body):Qh(J)?m0(J,me,J.name,J.typeParameters,J.heritageClauses,J.members):D0(J)?lD(J,me,J.name,J.typeParameters,J.heritageClauses,J.members):Se.assertNever(J)}function d2(J,me){switch(J.kind){case 177:return Pe(J,J.modifiers,me,J.parameters,J.type,J.body);case 178:return Tt(J,J.modifiers,me,J.parameters,J.body);case 174:return $o(J,J.modifiers,J.asteriskToken,me,J.questionToken,J.typeParameters,J.parameters,J.type,J.body);case 173:return Sr(J,J.modifiers,me,J.questionToken,J.typeParameters,J.parameters,J.type);case 172:return ci(J,J.modifiers,me,J.questionToken??J.exclamationToken,J.type,J.initializer);case 171:return mn(J,J.modifiers,me,J.questionToken,J.type);case 303:return Vt(J,me,J.initializer)}}function Hf(J){return J?re(J):void 0}function Sm(J){return typeof J=="string"?Ae(J):J}function hv(J){return typeof J=="string"?Ee(J):typeof J=="number"?_e(J):typeof J=="boolean"?J?ni():Ut():J}function Ns(J){return J&&u().parenthesizeExpressionForDisallowedComma(J)}function Q(J){return typeof J=="number"?mt(J):J}function Ne(J){return J&&bN(J)?Fn(a(bi(),J),J):J}function Ze(J){return typeof J=="string"||J&&!$c(J)?pP(J,void 0,void 0,void 0):J}function yt(J,me){return J!==me&&(a(J,me),Fn(J,me)),J}}function zme(t){switch(t){case 344:return"type";case 342:return"returns";case 343:return"this";case 340:return"enum";case 330:return"author";case 332:return"class";case 333:return"public";case 334:return"private";case 335:return"protected";case 336:return"readonly";case 337:return"override";case 345:return"template";case 346:return"typedef";case 341:return"param";case 348:return"prop";case 338:return"callback";case 339:return"overload";case 328:return"augments";case 329:return"implements";case 351:return"import";default:return Se.fail(`Unsupported kind: ${Se.formatSyntaxKind(t)}`)}}var oL,KOe={};function W$e(t,n){switch(oL||(oL=LA(99,!1,0)),t){case 15:oL.setText("`"+n+"`");break;case 16:oL.setText("`"+n+"${");break;case 17:oL.setText("}"+n+"${");break;case 18:oL.setText("}"+n+"`");break}let a=oL.scan();if(a===20&&(a=oL.reScanTemplateToken(!1)),oL.isUnterminated())return oL.setText(void 0),KOe;let u;switch(a){case 15:case 16:case 17:case 18:u=oL.getTokenValue();break}return u===void 0||oL.scan()!==1?(oL.setText(void 0),KOe):(oL.setText(void 0),u)}function sL(t){return t&&Ai(t)?lee(t):ka(t)}function lee(t){return ka(t)&-67108865}function pgt(t,n){return n|t.transformFlags&134234112}function ka(t){if(!t)return 0;let n=t.transformFlags&~U8(t.kind);return xf(t)&&C_(t.name)?pgt(t.name,n):n}function d_(t){return t?t.transformFlags:0}function Lwe(t){let n=0;for(let a of t)n|=ka(a);t.transformFlags=n}function U8(t){if(t>=182&&t<=205)return-2;switch(t){case 213:case 214:case 209:return-2147450880;case 267:return-1941676032;case 169:return-2147483648;case 219:return-2072174592;case 218:case 262:return-1937940480;case 261:return-2146893824;case 263:case 231:return-2147344384;case 176:return-1937948672;case 172:return-2013249536;case 174:case 177:case 178:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 168:case 171:case 173:case 179:case 180:case 181:case 264:case 265:return-2;case 210:return-2147278848;case 299:return-2147418112;case 206:case 207:return-2147450880;case 216:case 238:case 234:case 354:case 217:case 108:return-2147483648;case 211:case 212:return-2147483648;default:return-2147483648}}var Vme=rae();function Owe(t){return t.flags|=16,t}var iM={createBaseSourceFileNode:t=>Owe(Vme.createBaseSourceFileNode(t)),createBaseIdentifierNode:t=>Owe(Vme.createBaseIdentifierNode(t)),createBasePrivateIdentifierNode:t=>Owe(Vme.createBasePrivateIdentifierNode(t)),createBaseTokenNode:t=>Owe(Vme.createBaseTokenNode(t)),createBaseNode:t=>Owe(Vme.createBaseNode(t))},Me=cee(4,iM),mgt;function wa(t,n,a){return new(mgt||(mgt=xd.getSourceMapSourceConstructor()))(t,n,a)}function Wo(t,n){if(t.original!==n&&(t.original=n,n)){let a=n.emitNode;a&&(t.emitNode=hgt(a,t.emitNode))}return t}function hgt(t,n){let{flags:a,internalFlags:u,leadingComments:m,trailingComments:g,commentRange:v,sourceMapRange:x,tokenSourceMapRanges:k,constantValue:T,helpers:I,startsOnNewLine:A,snippetElement:M,classThis:R,assignedName:H}=t;if(n||(n={}),a&&(n.flags=a),u&&(n.internalFlags=u&-9),m&&(n.leadingComments=Ho(m.slice(),n.leadingComments)),g&&(n.trailingComments=Ho(g.slice(),n.trailingComments)),v&&(n.commentRange=v),x&&(n.sourceMapRange=x),k&&(n.tokenSourceMapRanges=z$e(k,n.tokenSourceMapRanges)),T!==void 0&&(n.constantValue=T),I)for(let U of I)n.helpers=oo(n.helpers,U);return A!==void 0&&(n.startsOnNewLine=A),M!==void 0&&(n.snippetElement=M),R&&(n.classThis=R),H&&(n.assignedName=H),n}function z$e(t,n){n||(n=[]);for(let a in t)n[a]=t[a];return n}function Iv(t){if(t.emitNode)Se.assert(!(t.emitNode.internalFlags&8),"Invalid attempt to mutate an immutable node.");else{if(joe(t)){if(t.kind===307)return t.emitNode={annotatedNodes:[t]};let n=Vo(ju(Vo(t)))??Se.fail("Could not determine parsed source file.");Iv(n).annotatedNodes.push(t)}t.emitNode={}}return t.emitNode}function uee(t){var n,a;let u=(a=(n=Vo(ju(t)))==null?void 0:n.emitNode)==null?void 0:a.annotatedNodes;if(u)for(let m of u)m.emitNode=void 0}function Hme(t){let n=Iv(t);return n.flags|=3072,n.leadingComments=void 0,n.trailingComments=void 0,t}function De(t,n){return Iv(t).flags=n,t}function gN(t,n){let a=Iv(t);return a.flags=a.flags|n,t}function aae(t,n){return Iv(t).internalFlags=n,t}function Na(t,n){let a=Iv(t);return a.internalFlags=a.internalFlags|n,t}function J8(t){var n;return((n=t.emitNode)==null?void 0:n.sourceMapRange)??t}function w_(t,n){return Iv(t).sourceMapRange=n,t}function ub(t,n){var a,u;return(u=(a=t.emitNode)==null?void 0:a.tokenSourceMapRanges)==null?void 0:u[n]}function Ume(t,n,a){let u=Iv(t),m=u.tokenSourceMapRanges??(u.tokenSourceMapRanges=[]);return m[n]=a,t}function W5(t){var n;return(n=t.emitNode)==null?void 0:n.startsOnNewLine}function Vs(t,n){return Iv(t).startsOnNewLine=n,t}function Nv(t){var n;return((n=t.emitNode)==null?void 0:n.commentRange)??t}function Xg(t,n){return Iv(t).commentRange=n,t}function aL(t){var n;return(n=t.emitNode)==null?void 0:n.leadingComments}function pw(t,n){return Iv(t).leadingComments=n,t}function If(t,n,a,u){return pw(t,ar(aL(t),{kind:n,pos:-1,end:-1,hasTrailingNewLine:u,text:a}))}function cae(t){var n;return(n=t.emitNode)==null?void 0:n.trailingComments}function Qj(t,n){return Iv(t).trailingComments=n,t}function Zj(t,n,a,u){return Qj(t,ar(cae(t),{kind:n,pos:-1,end:-1,hasTrailingNewLine:u,text:a}))}function lae(t,n){pw(t,aL(n)),Qj(t,cae(n));let a=Iv(n);return a.leadingComments=void 0,a.trailingComments=void 0,t}function oI(t){var n;return(n=t.emitNode)==null?void 0:n.constantValue}function K0(t,n){let a=Iv(t);return a.constantValue=n,t}function cL(t,n){let a=Iv(t);return a.helpers=ar(a.helpers,n),t}function bk(t,n){if(En(n)){let a=Iv(t);for(let u of n)a.helpers=oo(a.helpers,u)}return t}function dee(t,n){var a;let u=(a=t.emitNode)==null?void 0:a.helpers;return u?I$(u,n):!1}function gU(t){var n;return(n=t.emitNode)==null?void 0:n.helpers}function eW(t,n,a){let u=t.emitNode,m=u&&u.helpers;if(!En(m))return;let g=Iv(n),v=0;for(let x=0;x0&&(m[x-v]=k)}v>0&&(m.length-=v)}function fee(t){var n;return(n=t.emitNode)==null?void 0:n.snippetElement}function Jme(t,n){let a=Iv(t);return a.snippetElement=n,t}function qme(t){return Iv(t).internalFlags|=4,t}function Fwe(t,n){let a=Iv(t);return a.typeNode=n,t}function tW(t){var n;return(n=t.emitNode)==null?void 0:n.typeNode}function Zx(t,n){return Iv(t).identifierTypeArguments=n,t}function iW(t){var n;return(n=t.emitNode)==null?void 0:n.identifierTypeArguments}function yU(t,n){return Iv(t).autoGenerate=n,t}function XOe(t){var n;return(n=t.emitNode)==null?void 0:n.autoGenerate}function $me(t,n){return Iv(t).generatedImportReference=n,t}function Gme(t){var n;return(n=t.emitNode)==null?void 0:n.generatedImportReference}var Kme=(t=>(t.Field="f",t.Method="m",t.Accessor="a",t))(Kme||{});function Mwe(t){let n=t.factory,a=H0(()=>aae(n.createTrue(),8)),u=H0(()=>aae(n.createFalse(),8));return{getUnscopedHelperName:m,createDecorateHelper:g,createMetadataHelper:v,createParamHelper:x,createESDecorateHelper:U,createRunInitializersHelper:$,createAssignHelper:K,createAwaitHelper:re,createAsyncGeneratorHelper:X,createAsyncDelegatorHelper:ne,createAsyncValuesHelper:se,createRestHelper:_e,createAwaiterHelper:ae,createExtendsHelper:le,createTemplateObjectHelper:Ee,createSpreadArrayHelper:xe,createPropKeyHelper:be,createSetFunctionNameHelper:Le,createValuesHelper:fe,createReadHelper:we,createGeneratorHelper:Ae,createImportStarHelper:Ge,createImportStarCallbackHelper:he,createImportDefaultHelper:Oe,createExportStarHelper:Re,createClassPrivateFieldGetHelper:$e,createClassPrivateFieldSetHelper:Ke,createClassPrivateFieldInHelper:qe,createAddDisposableResourceHelper:rt,createDisposeResourcesHelper:_t};function m(ft){return De(n.createIdentifier(ft),8196)}function g(ft,mt,ut,ht){t.requestEmitHelper(vU);let Kt=[];return Kt.push(n.createArrayLiteralExpression(ft,!0)),Kt.push(mt),ut&&(Kt.push(ut),ht&&Kt.push(ht)),n.createCallExpression(m("__decorate"),void 0,Kt)}function v(ft,mt){return t.requestEmitHelper(Xme),n.createCallExpression(m("__metadata"),void 0,[n.createStringLiteral(ft),mt])}function x(ft,mt,ut){return t.requestEmitHelper(ggt),Fn(n.createCallExpression(m("__param"),void 0,[n.createNumericLiteral(mt+""),ft]),ut)}function k(ft){let mt=[n.createPropertyAssignment(n.createIdentifier("kind"),n.createStringLiteral("class")),n.createPropertyAssignment(n.createIdentifier("name"),ft.name),n.createPropertyAssignment(n.createIdentifier("metadata"),ft.metadata)];return n.createObjectLiteralExpression(mt)}function T(ft){let mt=ft.computed?n.createElementAccessExpression(n.createIdentifier("obj"),ft.name):n.createPropertyAccessExpression(n.createIdentifier("obj"),ft.name);return n.createPropertyAssignment("get",n.createArrowFunction(void 0,void 0,[n.createParameterDeclaration(void 0,void 0,n.createIdentifier("obj"))],void 0,void 0,mt))}function I(ft){let mt=ft.computed?n.createElementAccessExpression(n.createIdentifier("obj"),ft.name):n.createPropertyAccessExpression(n.createIdentifier("obj"),ft.name);return n.createPropertyAssignment("set",n.createArrowFunction(void 0,void 0,[n.createParameterDeclaration(void 0,void 0,n.createIdentifier("obj")),n.createParameterDeclaration(void 0,void 0,n.createIdentifier("value"))],void 0,void 0,n.createBlock([n.createExpressionStatement(n.createAssignment(mt,n.createIdentifier("value")))])))}function A(ft){let mt=ft.computed?ft.name:Ai(ft.name)?n.createStringLiteralFromNode(ft.name):ft.name;return n.createPropertyAssignment("has",n.createArrowFunction(void 0,void 0,[n.createParameterDeclaration(void 0,void 0,n.createIdentifier("obj"))],void 0,void 0,n.createBinaryExpression(mt,103,n.createIdentifier("obj"))))}function M(ft,mt){let ut=[];return ut.push(A(ft)),mt.get&&ut.push(T(ft)),mt.set&&ut.push(I(ft)),n.createObjectLiteralExpression(ut)}function R(ft){let mt=[n.createPropertyAssignment(n.createIdentifier("kind"),n.createStringLiteral(ft.kind)),n.createPropertyAssignment(n.createIdentifier("name"),ft.name.computed?ft.name.name:n.createStringLiteralFromNode(ft.name.name)),n.createPropertyAssignment(n.createIdentifier("static"),ft.static?n.createTrue():n.createFalse()),n.createPropertyAssignment(n.createIdentifier("private"),ft.private?n.createTrue():n.createFalse()),n.createPropertyAssignment(n.createIdentifier("access"),M(ft.name,ft.access)),n.createPropertyAssignment(n.createIdentifier("metadata"),ft.metadata)];return n.createObjectLiteralExpression(mt)}function H(ft){return ft.kind==="class"?k(ft):R(ft)}function U(ft,mt,ut,ht,Kt,ni){return t.requestEmitHelper(V$e),n.createCallExpression(m("__esDecorate"),void 0,[ft??n.createNull(),mt??n.createNull(),ut,H(ht),Kt,ni])}function $(ft,mt,ut){return t.requestEmitHelper(H$e),n.createCallExpression(m("__runInitializers"),void 0,ut?[ft,mt,ut]:[ft,mt])}function K(ft){return h_(t.getCompilerOptions())>=2?n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"assign"),void 0,ft):(t.requestEmitHelper(U$e),n.createCallExpression(m("__assign"),void 0,ft))}function re(ft){return t.requestEmitHelper(uae),n.createCallExpression(m("__await"),void 0,[ft])}function X(ft,mt){return t.requestEmitHelper(uae),t.requestEmitHelper(J$e),(ft.emitNode||(ft.emitNode={})).flags|=1572864,n.createCallExpression(m("__asyncGenerator"),void 0,[mt?n.createThis():n.createVoidZero(),n.createIdentifier("arguments"),ft])}function ne(ft){return t.requestEmitHelper(uae),t.requestEmitHelper(YOe),n.createCallExpression(m("__asyncDelegator"),void 0,[ft])}function se(ft){return t.requestEmitHelper(q$e),n.createCallExpression(m("__asyncValues"),void 0,[ft])}function _e(ft,mt,ut,ht){t.requestEmitHelper($$e);let Kt=[],ni=0;for(let Ut=0;Ut{let u="";for(let m=0;m= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + };`},Xme={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:` + var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); + };`},ggt={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:` + var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } + };`},V$e={name:"typescript:esDecorate",importName:"__esDecorate",scoped:!1,priority:2,text:` + var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { + function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; } + var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; + var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; + var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); + var _, done = false; + for (var i = decorators.length - 1; i >= 0; i--) { + var context = {}; + for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p]; + for (var p in contextIn.access) context.access[p] = contextIn.access[p]; + context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); }; + var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); + if (kind === "accessor") { + if (result === void 0) continue; + if (result === null || typeof result !== "object") throw new TypeError("Object expected"); + if (_ = accept(result.get)) descriptor.get = _; + if (_ = accept(result.set)) descriptor.set = _; + if (_ = accept(result.init)) initializers.unshift(_); + } + else if (_ = accept(result)) { + if (kind === "field") initializers.unshift(_); + else descriptor[key] = _; + } + } + if (target) Object.defineProperty(target, contextIn.name, descriptor); + done = true; + };`},H$e={name:"typescript:runInitializers",importName:"__runInitializers",scoped:!1,priority:2,text:` + var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) { + var useValue = arguments.length > 2; + for (var i = 0; i < initializers.length; i++) { + value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); + } + return useValue ? value : void 0; + };`},U$e={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:` + var __assign = (this && this.__assign) || function () { + __assign = Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); + };`},uae={name:"typescript:await",importName:"__await",scoped:!1,text:` + var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }`},J$e={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[uae],text:` + var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } + };`},YOe={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[uae],text:` + var __asyncDelegator = (this && this.__asyncDelegator) || function (o) { + var i, p; + return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; + function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; } + };`},q$e={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:` + var __asyncValues = (this && this.__asyncValues) || function (o) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var m = o[Symbol.asyncIterator], i; + return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); + function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } + function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } + };`},$$e={name:"typescript:rest",importName:"__rest",scoped:!1,text:` + var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; + };`},G$e={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:` + var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + };`},K$e={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:` + var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + })();`},X$e={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:` + var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { + if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } + return cooked; + };`},Y$e={name:"typescript:read",importName:"__read",scoped:!1,text:` + var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; + };`},dae={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:` + var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { + if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); + };`},Q$e={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:` + var __propKey = (this && this.__propKey) || function (x) { + return typeof x === "symbol" ? x : "".concat(x); + };`},Z$e={name:"typescript:setFunctionName",importName:"__setFunctionName",scoped:!1,text:` + var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) { + if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : ""; + return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name }); + };`},eGe={name:"typescript:values",importName:"__values",scoped:!1,text:` + var __values = (this && this.__values) || function(o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) return m.call(o); + if (o && typeof o.length === "number") return { + next: function () { + if (o && i >= o.length) o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); + };`},tGe={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:` + var __generator = (this && this.__generator) || function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype); + return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (g && (g = 0, op[0] && (_ = 0)), _) try { + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } + };`},Bwe={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:` + var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); + }) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; + }));`},iGe={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:` + var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + }) : function(o, v) { + o["default"] = v; + });`},QOe={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[Bwe,iGe],priority:2,text:` + var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; + };`},nGe={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:` + var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; + };`},rGe={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[Bwe],priority:2,text:` + var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); + };`},oGe={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:` + var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); + return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); + };`},sGe={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:` + var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { + if (kind === "m") throw new TypeError("Private method is not writable"); + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); + return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; + };`},aGe={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:` + var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) { + if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object"); + return typeof state === "function" ? receiver === state : state.has(receiver); + };`},cGe={name:"typescript:addDisposableResource",importName:"__addDisposableResource",scoped:!1,text:` + var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) { + if (value !== null && value !== void 0) { + if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected."); + var dispose, inner; + if (async) { + if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined."); + dispose = value[Symbol.asyncDispose]; + } + if (dispose === void 0) { + if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined."); + dispose = value[Symbol.dispose]; + if (async) inner = dispose; + } + if (typeof dispose !== "function") throw new TypeError("Object not disposable."); + if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } }; + env.stack.push({ value: value, dispose: dispose, async: async }); + } + else if (async) { + env.stack.push({ async: true }); + } + return value; + };`},jwe={name:"typescript:disposeResources",importName:"__disposeResources",scoped:!1,text:` + var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) { + return function (env) { + function fail(e) { + env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e; + env.hasError = true; + } + var r, s = 0; + function next() { + while (r = env.stack.pop()) { + try { + if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next); + if (r.dispose) { + var result = r.dispose.call(r.value); + if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); }); + } + else s |= 1; + } + catch (e) { + fail(e); + } + } + if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve(); + if (env.hasError) throw env.error; + } + return next(); + }; + })(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { + var e = new Error(message); + return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; + });`},fae={name:"typescript:async-super",scoped:!0,text:Q3` + const ${"_superIndex"} = name => super[name];`},_ee={name:"typescript:advanced-async-super",scoped:!0,text:Q3` + const ${"_superIndex"} = (function (geti, seti) { + const cache = Object.create(null); + return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } }); + })(name => super[name], (name, value) => super[name] = value);`};function QG(t,n){return Od(t)&&Ai(t.expression)&&(N_(t.expression)&8192)!==0&&t.expression.escapedText===n}function mx(t){return t.kind===9}function ZG(t){return t.kind===10}function Kf(t){return t.kind===11}function nW(t){return t.kind===12}function Yme(t){return t.kind===14}function z5(t){return t.kind===15}function nM(t){return t.kind===16}function pee(t){return t.kind===17}function rW(t){return t.kind===18}function eS(t){return t.kind===26}function mee(t){return t.kind===28}function Xf(t){return t.kind===40}function V5(t){return t.kind===41}function eK(t){return t.kind===42}function q8(t){return t.kind===54}function XE(t){return t.kind===58}function Qme(t){return t.kind===59}function tK(t){return t.kind===29}function _ae(t){return t.kind===39}function Ai(t){return t.kind===80}function wl(t){return t.kind===81}function H5(t){return t.kind===95}function bU(t){return t.kind===90}function U5(t){return t.kind===134}function Z3(t){return t.kind===131}function Zme(t){return t.kind===135}function pae(t){return t.kind===148}function oW(t){return t.kind===126}function Ni(t){return t.kind===128}function Il(t){return t.kind===164}function sW(t){return t.kind===129}function aW(t){return t.kind===108}function rM(t){return t.kind===102}function Wwe(t){return t.kind===84}function tS(t){return t.kind===166}function f_(t){return t.kind===167}function Yp(t){return t.kind===168}function Fl(t){return t.kind===169}function Cy(t){return t.kind===170}function hx(t){return t.kind===171}function vu(t){return t.kind===172}function sT(t){return t.kind===173}function Sg(t){return t.kind===174}function Yf(t){return t.kind===175}function yl(t){return t.kind===176}function n_(t){return t.kind===177}function zc(t){return t.kind===178}function xg(t){return t.kind===179}function db(t){return t.kind===180}function nu(t){return t.kind===181}function Sk(t){return t.kind===182}function M_(t){return t.kind===183}function xp(t){return t.kind===184}function Dm(t){return t.kind===185}function C1(t){return t.kind===186}function Im(t){return t.kind===187}function $8(t){return t.kind===188}function G8(t){return t.kind===189}function YA(t){return t.kind===202}function oM(t){return t.kind===190}function qC(t){return t.kind===191}function gx(t){return t.kind===192}function lL(t){return t.kind===193}function YE(t){return t.kind===194}function Hy(t){return t.kind===195}function eO(t){return t.kind===196}function uL(t){return t.kind===197}function yN(t){return t.kind===198}function tO(t){return t.kind===199}function K8(t){return t.kind===200}function xk(t){return t.kind===201}function Ck(t){return t.kind===205}function X8(t){return t.kind===204}function J5(t){return t.kind===203}function fb(t){return t.kind===206}function QE(t){return t.kind===207}function Zd(t){return t.kind===208}function Yg(t){return t.kind===209}function Ld(t){return t.kind===210}function ba(t){return t.kind===211}function T_(t){return t.kind===212}function Od(t){return t.kind===213}function sM(t){return t.kind===214}function Kv(t){return t.kind===215}function A4(t){return t.kind===216}function Tu(t){return t.kind===217}function yd(t){return t.kind===218}function Zc(t){return t.kind===219}function Ha(t){return t.kind===220}function Ip(t){return t.kind===221}function rd(t){return t.kind===222}function YT(t){return t.kind===223}function z2(t){return t.kind===224}function mae(t){return t.kind===225}function ms(t){return t.kind===226}function Cp(t){return t.kind===227}function dm(t){return t.kind===228}function hae(t){return t.kind===229}function yx(t){return t.kind===230}function Qh(t){return t.kind===231}function Eh(t){return t.kind===232}function $C(t){return t.kind===233}function SU(t){return t.kind===234}function ia(t){return t.kind===238}function P4(t){return t.kind===235}function cW(t){return t.kind===236}function ehe(t){return t.kind===237}function mw(t){return t.kind===354}function Lg(t){return t.kind===355}function Og(t){return t.kind===239}function L4(t){return t.kind===240}function qu(t){return t.kind===241}function Zh(t){return t.kind===243}function q5(t){return t.kind===242}function E0(t){return t.kind===244}function aM(t){return t.kind===245}function the(t){return t.kind===246}function xU(t){return t.kind===247}function QA(t){return t.kind===248}function gae(t){return t.kind===249}function $u(t){return t.kind===250}function Fg(t){return t.kind===251}function zwe(t){return t.kind===252}function fm(t){return t.kind===253}function Y8(t){return t.kind===254}function hee(t){return t.kind===255}function dL(t){return t.kind===256}function iO(t){return t.kind===257}function Q8(t){return t.kind===258}function yae(t){return t.kind===259}function $c(t){return t.kind===260}function Xv(t){return t.kind===261}function fp(t){return t.kind===262}function D0(t){return t.kind===263}function ky(t){return t.kind===264}function k1(t){return t.kind===265}function Z8(t){return t.kind===266}function Dh(t){return t.kind===267}function vN(t){return t.kind===268}function Wc(t){return t.kind===269}function wy(t){return t.kind===270}function pf(t){return t.kind===271}function Dd(t){return t.kind===272}function Ym(t){return t.kind===273}function V2(t){return t.kind===302}function eF(t){return t.kind===300}function f0(t){return t.kind===301}function GC(t){return t.kind===300}function iK(t){return t.kind===301}function ZE(t){return t.kind===274}function vm(t){return t.kind===280}function _p(t){return t.kind===275}function eg(t){return t.kind===276}function Bm(t){return t.kind===277}function Qg(t){return t.kind===278}function QT(t){return t.kind===279}function X0(t){return t.kind===281}function vae(t){return t.kind===80||t.kind===11}function O4(t){return t.kind===282}function bN(t){return t.kind===353}function kk(t){return t.kind===356}function Zg(t){return t.kind===283}function R_(t){return t.kind===284}function mh(t){return t.kind===285}function Y0(t){return t.kind===286}function I0(t){return t.kind===287}function $5(t){return t.kind===288}function cM(t){return t.kind===289}function lW(t){return t.kind===290}function _b(t){return t.kind===291}function wk(t){return t.kind===292}function ZA(t){return t.kind===293}function aT(t){return t.kind===294}function vx(t){return t.kind===295}function eP(t){return t.kind===296}function fL(t){return t.kind===297}function KC(t){return t.kind===298}function eC(t){return t.kind===299}function Ih(t){return t.kind===303}function Q0(t){return t.kind===304}function H2(t){return t.kind===305}function pb(t){return t.kind===306}function ul(t){return t.kind===307}function nK(t){return t.kind===308}function lv(t){return t.kind===309}function F4(t){return t.kind===310}function hh(t){return t.kind===311}function w1(t){return t.kind===324}function tP(t){return t.kind===325}function tF(t){return t.kind===326}function Cl(t){return t.kind===312}function Vwe(t){return t.kind===313}function SN(t){return t.kind===314}function uW(t){return t.kind===315}function nO(t){return t.kind===316}function CU(t){return t.kind===317}function bae(t){return t.kind===318}function lGe(t){return t.kind===319}function eD(t){return t.kind===320}function G5(t){return t.kind===322}function U2(t){return t.kind===323}function lM(t){return t.kind===328}function Hwe(t){return t.kind===330}function kU(t){return t.kind===332}function gee(t){return t.kind===338}function Uwe(t){return t.kind===333}function J2(t){return t.kind===334}function uM(t){return t.kind===335}function iP(t){return t.kind===336}function dM(t){return t.kind===337}function rK(t){return t.kind===339}function ihe(t){return t.kind===331}function Jwe(t){return t.kind===347}function oK(t){return t.kind===340}function hw(t){return t.kind===341}function yee(t){return t.kind===342}function Sae(t){return t.kind===343}function dW(t){return t.kind===344}function tC(t){return t.kind===345}function fM(t){return t.kind===346}function uGe(t){return t.kind===327}function vee(t){return t.kind===348}function Tk(t){return t.kind===329}function sK(t){return t.kind===350}function qwe(t){return t.kind===349}function cT(t){return t.kind===351}function iC(t){return t.kind===352}var _L=new WeakMap;function $we(t,n){var a;let u=t.kind;return MT(u)?u===352?t._children:(a=_L.get(n))==null?void 0:a.get(t):F}function Gwe(t,n,a){t.kind===352&&Se.fail("Should not need to re-set the children of a SyntaxList.");let u=_L.get(n);return u===void 0&&(u=new WeakMap,_L.set(n,u)),u.set(t,a),a}function bee(t,n){var a;t.kind===352&&Se.fail("Did not expect to unset the children of a SyntaxList."),(a=_L.get(n))==null||a.delete(t)}function xae(t,n){let a=_L.get(t);a!==void 0&&(_L.delete(t),_L.set(n,a))}function Cae(t){return t.createExportDeclaration(void 0,!1,t.createNamedExports([]),void 0)}function XC(t,n,a,u){if(f_(a))return Fn(t.createElementAccessExpression(n,a.expression),u);{let m=Fn(qD(a)?t.createPropertyAccessExpression(n,a):t.createElementAccessExpression(n,a),a);return gN(m,128),m}}function wU(t,n){let a=mL.createIdentifier(t||"React");return dp(a,ju(n)),a}function aK(t,n,a){if(tS(n)){let u=aK(t,n.left,a),m=t.createIdentifier(Un(n.right));return m.escapedText=n.right.escapedText,t.createPropertyAccessExpression(u,m)}else return wU(Un(n),a)}function kae(t,n,a,u){return n?aK(t,n,u):t.createPropertyAccessExpression(wU(a,u),"createElement")}function dGe(t,n,a,u){return n?aK(t,n,u):t.createPropertyAccessExpression(wU(a,u),"Fragment")}function nhe(t,n,a,u,m,g){let v=[a];if(u&&v.push(u),m&&m.length>0)if(u||v.push(t.createNull()),m.length>1)for(let x of m)T1(x),v.push(x);else v.push(m[0]);return Fn(t.createCallExpression(n,void 0,v),g)}function Kwe(t,n,a,u,m,g,v){let k=[dGe(t,a,u,g),t.createNull()];if(m&&m.length>0)if(m.length>1)for(let T of m)T1(T),k.push(T);else k.push(m[0]);return Fn(t.createCallExpression(kae(t,n,u,g),void 0,k),v)}function cK(t,n,a){if(Xv(n)){let u=of(n.declarations),m=t.updateVariableDeclaration(u,u.name,void 0,void 0,a);return Fn(t.createVariableStatement(void 0,t.updateVariableDeclarationList(n,[m])),n)}else{let u=Fn(t.createAssignment(n,a),n);return Fn(t.createExpressionStatement(u),n)}}function rO(t,n){if(tS(n)){let a=rO(t,n.left),u=dp(Fn(t.cloneNode(n.right),n.right),n.right.parent);return Fn(t.createPropertyAccessExpression(a,u),n)}else return dp(Fn(t.cloneNode(n),n),n.parent)}function rhe(t,n){return Ai(n)?t.createStringLiteralFromNode(n):f_(n)?dp(Fn(t.cloneNode(n.expression),n.expression),n.expression.parent):dp(Fn(t.cloneNode(n),n),n.parent)}function fGe(t,n,a,u,m){let{firstAccessor:g,getAccessor:v,setAccessor:x}=j2(n,a);if(a===g)return Fn(t.createObjectDefinePropertyCall(u,rhe(t,a.name),t.createPropertyDescriptor({enumerable:t.createFalse(),configurable:!0,get:v&&Fn(Wo(t.createFunctionExpression($g(v),void 0,void 0,void 0,v.parameters,void 0,v.body),v),v),set:x&&Fn(Wo(t.createFunctionExpression($g(x),void 0,void 0,void 0,x.parameters,void 0,x.body),x),x)},!m)),g)}function ZOe(t,n,a){return Wo(Fn(t.createAssignment(XC(t,a,n.name,n.name),n.initializer),n),n)}function k9t(t,n,a){return Wo(Fn(t.createAssignment(XC(t,a,n.name,n.name),t.cloneNode(n.name)),n),n)}function _Ge(t,n,a){return Wo(Fn(t.createAssignment(XC(t,a,n.name,n.name),Wo(Fn(t.createFunctionExpression($g(n),n.asteriskToken,void 0,void 0,n.parameters,void 0,n.body),n),n)),n),n)}function Xwe(t,n,a,u){switch(a.name&&wl(a.name)&&Se.failBadSyntaxKind(a.name,"Private identifiers are not allowed in object literals."),a.kind){case 177:case 178:return fGe(t,n.properties,a,u,!!n.multiLine);case 303:return ZOe(t,a,u);case 304:return k9t(t,a,u);case 174:return _Ge(t,a,u)}}function See(t,n,a,u,m){let g=n.operator;Se.assert(g===46||g===47,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");let v=t.createTempVariable(u);a=t.createAssignment(v,a),Fn(a,n.operand);let x=z2(n)?t.createPrefixUnaryExpression(g,v):t.createPostfixUnaryExpression(v,g);return Fn(x,n),m&&(x=t.createAssignment(m,x),Fn(x,n)),a=t.createComma(a,x),Fn(a,n),mae(n)&&(a=t.createComma(a,v),Fn(a,n)),a}function Ywe(t){return(N_(t)&65536)!==0}function sI(t){return(N_(t)&32768)!==0}function xee(t){return(N_(t)&16384)!==0}function ygt(t){return Kf(t.expression)&&t.expression.text==="use strict"}function e8e(t){for(let n of t)if(cw(n)){if(ygt(n))return n}else break}function pGe(t){let n=Ed(t);return n!==void 0&&cw(n)&&ygt(n)}function ohe(t){return t.kind===226&&t.operatorToken.kind===28}function lK(t){return ohe(t)||Lg(t)}function iF(t){return Tu(t)&&Ys(t)&&!!b3(t)}function TU(t){let n=M6(t);return Se.assertIsDefined(n),n}function xN(t,n=31){switch(t.kind){case 217:return n&-2147483648&&iF(t)?!1:(n&1)!==0;case 216:case 234:case 238:return(n&2)!==0;case 233:return(n&16)!==0;case 235:return(n&4)!==0;case 354:return(n&8)!==0}return!1}function ug(t,n=31){for(;xN(t,n);)t=t.expression;return t}function t8e(t,n=31){let a=t.parent;for(;xN(a,n);)a=a.parent,Se.assert(a);return a}function T1(t){return Vs(t,!0)}function wae(t){let n=Gm(t,ul),a=n&&n.emitNode;return a&&a.externalHelpersModuleName}function Cee(t){let n=Gm(t,ul),a=n&&n.emitNode;return!!a&&(!!a.externalHelpersModuleName||!!a.externalHelpers)}function EU(t,n,a,u,m,g,v){if(u.importHelpers&&u5(a,u)){let x,k=b1(u);if(k>=5&&k<=99||uO(a,u)===99){let T=gU(a);if(T){let I=[];for(let A of T)if(!A.scoped){let M=A.importName;M&&Xu(I,M)}if(En(I)){I.sort(Jg),x=t.createNamedImports($i(I,R=>iG(a,R)?t.createImportSpecifier(!1,void 0,t.createIdentifier(R)):t.createImportSpecifier(!1,t.createIdentifier(R),n.getUnscopedHelperName(R))));let A=Gm(a,ul),M=Iv(A);M.externalHelpers=!0}}}else{let T=DU(t,a,u,m,g||v);T&&(x=t.createNamespaceImport(T))}if(x){let T=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,x),t.createStringLiteral(R7),void 0);return Na(T,2),T}}}function DU(t,n,a,u,m){if(a.importHelpers&&u5(n,a)){let g=wae(n);if(g)return g;let v=(u||GE(a)&&m)&&V4(n,a)<4;if(!v){let x=gU(n);if(x){for(let k of x)if(!k.scoped){v=!0;break}}}if(v){let x=Gm(n,ul),k=Iv(x);return k.externalHelpersModuleName||(k.externalHelpersModuleName=t.createUniqueName(R7))}}}function nF(t,n,a){let u=E8(n);if(u&&!N3(n)&&!ise(n)){let m=u.name;return m.kind===11?t.getGeneratedNameForNode(n):Tm(m)?m:t.createIdentifier(S8(a,m)||Un(m))}if(n.kind===272&&n.importClause||n.kind===278&&n.moduleSpecifier)return t.getGeneratedNameForNode(n)}function _M(t,n,a,u,m,g){let v=Tj(n);if(v&&Kf(v))return vgt(n,u,t,m,g)||Z0(t,v,a)||t.cloneNode(v)}function Z0(t,n,a){let u=a.renamedDependencies&&a.renamedDependencies.get(n.text);return u?t.createStringLiteral(u):void 0}function kee(t,n,a,u){if(n){if(n.moduleName)return t.createStringLiteral(n.moduleName);if(!n.isDeclarationFile&&u.outFile)return t.createStringLiteral(EG(a,n.fileName))}}function vgt(t,n,a,u,m){return kee(a,u.getExternalModuleFileFromDeclaration(t),n,m)}function Av(t){if(V6(t))return t.initializer;if(Ih(t)){let n=t.initializer;return Kg(n,!0)?n.right:void 0}if(Q0(t))return t.objectAssignmentInitializer;if(Kg(t,!0))return t.right;if(yx(t))return Av(t.expression)}function M4(t){if(V6(t))return t.name;if(FC(t)){switch(t.kind){case 303:return M4(t.initializer);case 304:return t.name;case 305:return M4(t.expression)}return}return Kg(t,!0)?M4(t.left):yx(t)?M4(t.expression):t}function Tae(t){switch(t.kind){case 169:case 208:return t.dotDotDotToken;case 230:case 305:return t}}function Eae(t){let n=Dae(t);return Se.assert(!!n||H2(t),"Invalid property name for binding element."),n}function Dae(t){switch(t.kind){case 208:if(t.propertyName){let a=t.propertyName;return wl(a)?Se.failBadSyntaxKind(a):f_(a)&&uK(a.expression)?a.expression:a}break;case 303:if(t.name){let a=t.name;return wl(a)?Se.failBadSyntaxKind(a):f_(a)&&uK(a.expression)?a.expression:a}break;case 305:return t.name&&wl(t.name)?Se.failBadSyntaxKind(t.name):t.name}let n=M4(t);if(n&&C_(n))return n}function uK(t){let n=t.kind;return n===11||n===9}function pL(t){switch(t.kind){case 206:case 207:case 209:return t.elements;case 210:return t.properties}}function i8e(t){if(t){let n=t;for(;;){if(Ai(n)||!n.body)return Ai(n)?n:n.name;n=n.body}}}function Iae(t){let n=t.kind;return n===176||n===178}function mGe(t){let n=t.kind;return n===176||n===177||n===178}function dK(t){let n=t.kind;return n===303||n===304||n===262||n===176||n===181||n===175||n===282||n===243||n===264||n===265||n===266||n===267||n===271||n===272||n===270||n===278||n===277}function oO(t){let n=t.kind;return n===175||n===303||n===304||n===282||n===270}function Nae(t){return XE(t)||q8(t)}function she(t){return Ai(t)||uL(t)}function Aae(t){return pae(t)||Xf(t)||V5(t)}function n8e(t){return XE(t)||Xf(t)||V5(t)}function IU(t){return Ai(t)||Kf(t)}function r8e(t){return t===43}function bgt(t){return t===42||t===44||t===45}function hGe(t){return r8e(t)||bgt(t)}function o8e(t){return t===40||t===41}function gGe(t){return o8e(t)||hGe(t)}function yGe(t){return t===48||t===49||t===50}function ahe(t){return yGe(t)||gGe(t)}function vGe(t){return t===30||t===33||t===32||t===34||t===104||t===103}function bGe(t){return vGe(t)||ahe(t)}function SGe(t){return t===35||t===37||t===36||t===38}function Sgt(t){return SGe(t)||bGe(t)}function w9t(t){return t===51||t===52||t===53}function T9t(t){return w9t(t)||Sgt(t)}function E9t(t){return t===56||t===57}function D9t(t){return E9t(t)||T9t(t)}function I9t(t){return t===61||D9t(t)||D4(t)}function N9t(t){return I9t(t)||t===28}function che(t){return N9t(t.kind)}var s8e;(t=>{function n(I,A,M,R,H,U,$){let K=A>0?H[A-1]:void 0;return Se.assertEqual(M[A],n),H[A]=I.onEnter(R[A],K,$),M[A]=x(I,n),A}t.enter=n;function a(I,A,M,R,H,U,$){Se.assertEqual(M[A],a),Se.assertIsDefined(I.onLeft),M[A]=x(I,a);let K=I.onLeft(R[A].left,H[A],R[A]);return K?(T(A,R,K),k(A,M,R,H,K)):A}t.left=a;function u(I,A,M,R,H,U,$){return Se.assertEqual(M[A],u),Se.assertIsDefined(I.onOperator),M[A]=x(I,u),I.onOperator(R[A].operatorToken,H[A],R[A]),A}t.operator=u;function m(I,A,M,R,H,U,$){Se.assertEqual(M[A],m),Se.assertIsDefined(I.onRight),M[A]=x(I,m);let K=I.onRight(R[A].right,H[A],R[A]);return K?(T(A,R,K),k(A,M,R,H,K)):A}t.right=m;function g(I,A,M,R,H,U,$){Se.assertEqual(M[A],g),M[A]=x(I,g);let K=I.onExit(R[A],H[A]);if(A>0){if(A--,I.foldState){let re=M[A]===g?"right":"left";H[A]=I.foldState(H[A],K,re)}}else U.value=K;return A}t.exit=g;function v(I,A,M,R,H,U,$){return Se.assertEqual(M[A],v),A}t.done=v;function x(I,A){switch(A){case n:if(I.onLeft)return a;case a:if(I.onOperator)return u;case u:if(I.onRight)return m;case m:return g;case g:return v;case v:return v;default:Se.fail("Invalid state")}}t.nextState=x;function k(I,A,M,R,H){return I++,A[I]=n,M[I]=H,R[I]=void 0,I}function T(I,A,M){if(Se.shouldAssert(2))for(;I>=0;)Se.assert(A[I]!==M,"Circular traversal detected."),I--}})(s8e||(s8e={}));var A9t=class{constructor(t,n,a,u,m,g){this.onEnter=t,this.onLeft=n,this.onOperator=a,this.onRight=u,this.onExit=m,this.foldState=g}};function Qwe(t,n,a,u,m,g){let v=new A9t(t,n,a,u,m,g);return x;function x(k,T){let I={value:void 0},A=[s8e.enter],M=[k],R=[void 0],H=0;for(;A[H]!==s8e.done;)H=A[H](v,H,A,M,R,I,T);return Se.assertEqual(H,0),I.value}}function P9t(t){return t===95||t===90}function lhe(t){let n=t.kind;return P9t(n)}function xGe(t,n){if(n!==void 0)return n.length===0?n:Fn(t.createNodeArray([],n.hasTrailingComma),n)}function uhe(t){var n;let a=t.emitNode.autoGenerate;if(a.flags&4){let u=a.id,m=t,g=m.original;for(;g;){m=g;let v=(n=m.emitNode)==null?void 0:n.autoGenerate;if(qD(m)&&(v===void 0||v.flags&4&&v.id!==u))break;g=m.original}return m}return t}function wee(t,n){return typeof t=="object"?rF(!1,t.prefix,t.node,t.suffix,n):typeof t=="string"?t.length>0&&t.charCodeAt(0)===35?t.slice(1):t:""}function L9t(t,n){return typeof t=="string"?t:O9t(t,Se.checkDefined(n))}function O9t(t,n){return FA(t)?n(t).slice(1):Tm(t)?n(t):wl(t)?t.escapedText.slice(1):Un(t)}function rF(t,n,a,u,m){return n=wee(n,m),u=wee(u,m),a=L9t(a,m),`${t?"#":""}${n}${a}${u}`}function Pae(t,n,a,u){return t.updatePropertyDeclaration(n,a,t.getGeneratedPrivateNameForNode(n.name,void 0,"_accessor_storage"),void 0,void 0,u)}function CGe(t,n,a,u,m=t.createThis()){return t.createGetAccessorDeclaration(a,u,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(m,t.getGeneratedPrivateNameForNode(n.name,void 0,"_accessor_storage")))]))}function Lae(t,n,a,u,m=t.createThis()){return t.createSetAccessorDeclaration(a,u,[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(m,t.getGeneratedPrivateNameForNode(n.name,void 0,"_accessor_storage")),t.createIdentifier("value")))]))}function dhe(t){let n=t.expression;for(;;){if(n=ug(n),Lg(n)){n=Bu(n.elements);continue}if(ohe(n)){n=n.right;continue}if(Kg(n,!0)&&Tm(n.left))return n;break}}function fhe(t){return Tu(t)&&um(t)&&!t.emitNode}function _he(t,n){if(fhe(t))_he(t.expression,n);else if(ohe(t))_he(t.left,n),_he(t.right,n);else if(Lg(t))for(let a of t.elements)_he(a,n);else n.push(t)}function Zwe(t){let n=[];return _he(t,n),n}function fW(t){if(t.transformFlags&65536)return!0;if(t.transformFlags&128)for(let n of pL(t)){let a=M4(n);if(a&&fZ(a)&&(a.transformFlags&65536||a.transformFlags&128&&fW(a)))return!0}return!1}function Fn(t,n){return n?KT(t,n.pos,n.end):t}function tD(t){let n=t.kind;return n===168||n===169||n===171||n===172||n===173||n===174||n===176||n===177||n===178||n===181||n===185||n===218||n===219||n===231||n===243||n===262||n===263||n===264||n===265||n===266||n===267||n===271||n===272||n===277||n===278}function _W(t){let n=t.kind;return n===169||n===172||n===174||n===177||n===178||n===231||n===263}var pM,eTe,a8e,c8e,phe,kGe={createBaseSourceFileNode:t=>new(phe||(phe=xd.getSourceFileConstructor()))(t,-1,-1),createBaseIdentifierNode:t=>new(a8e||(a8e=xd.getIdentifierConstructor()))(t,-1,-1),createBasePrivateIdentifierNode:t=>new(c8e||(c8e=xd.getPrivateIdentifierConstructor()))(t,-1,-1),createBaseTokenNode:t=>new(eTe||(eTe=xd.getTokenConstructor()))(t,-1,-1),createBaseNode:t=>new(pM||(pM=xd.getNodeConstructor()))(t,-1,-1)},mL=cee(1,kGe);function Xr(t,n){return n&&t(n)}function pl(t,n,a){if(a){if(n)return n(a);for(let u of a){let m=t(u);if(m)return m}}}function Wn(t,n){return t.charCodeAt(n+1)===42&&t.charCodeAt(n+2)===42&&t.charCodeAt(n+3)!==47}function gw(t){return ee(t.statements,pW)||xgt(t)}function pW(t){return tD(t)&&Cgt(t,95)||pf(t)&&Zg(t.moduleReference)||Dd(t)||Bm(t)||Qg(t)?t:void 0}function xgt(t){return t.flags&8388608?wGe(t):void 0}function wGe(t){return kgt(t)?t:_d(t,wGe)}function Cgt(t,n){return En(t.modifiers,a=>a.kind===n)}function kgt(t){return cW(t)&&t.keywordToken===102&&t.name.escapedText==="meta"}var wgt={166:function(n,a,u){return Xr(a,n.left)||Xr(a,n.right)},168:function(n,a,u){return pl(a,u,n.modifiers)||Xr(a,n.name)||Xr(a,n.constraint)||Xr(a,n.default)||Xr(a,n.expression)},304:function(n,a,u){return pl(a,u,n.modifiers)||Xr(a,n.name)||Xr(a,n.questionToken)||Xr(a,n.exclamationToken)||Xr(a,n.equalsToken)||Xr(a,n.objectAssignmentInitializer)},305:function(n,a,u){return Xr(a,n.expression)},169:function(n,a,u){return pl(a,u,n.modifiers)||Xr(a,n.dotDotDotToken)||Xr(a,n.name)||Xr(a,n.questionToken)||Xr(a,n.type)||Xr(a,n.initializer)},172:function(n,a,u){return pl(a,u,n.modifiers)||Xr(a,n.name)||Xr(a,n.questionToken)||Xr(a,n.exclamationToken)||Xr(a,n.type)||Xr(a,n.initializer)},171:function(n,a,u){return pl(a,u,n.modifiers)||Xr(a,n.name)||Xr(a,n.questionToken)||Xr(a,n.type)||Xr(a,n.initializer)},303:function(n,a,u){return pl(a,u,n.modifiers)||Xr(a,n.name)||Xr(a,n.questionToken)||Xr(a,n.exclamationToken)||Xr(a,n.initializer)},260:function(n,a,u){return Xr(a,n.name)||Xr(a,n.exclamationToken)||Xr(a,n.type)||Xr(a,n.initializer)},208:function(n,a,u){return Xr(a,n.dotDotDotToken)||Xr(a,n.propertyName)||Xr(a,n.name)||Xr(a,n.initializer)},181:function(n,a,u){return pl(a,u,n.modifiers)||pl(a,u,n.typeParameters)||pl(a,u,n.parameters)||Xr(a,n.type)},185:function(n,a,u){return pl(a,u,n.modifiers)||pl(a,u,n.typeParameters)||pl(a,u,n.parameters)||Xr(a,n.type)},184:function(n,a,u){return pl(a,u,n.modifiers)||pl(a,u,n.typeParameters)||pl(a,u,n.parameters)||Xr(a,n.type)},179:l8e,180:l8e,174:function(n,a,u){return pl(a,u,n.modifiers)||Xr(a,n.asteriskToken)||Xr(a,n.name)||Xr(a,n.questionToken)||Xr(a,n.exclamationToken)||pl(a,u,n.typeParameters)||pl(a,u,n.parameters)||Xr(a,n.type)||Xr(a,n.body)},173:function(n,a,u){return pl(a,u,n.modifiers)||Xr(a,n.name)||Xr(a,n.questionToken)||pl(a,u,n.typeParameters)||pl(a,u,n.parameters)||Xr(a,n.type)},176:function(n,a,u){return pl(a,u,n.modifiers)||Xr(a,n.name)||pl(a,u,n.typeParameters)||pl(a,u,n.parameters)||Xr(a,n.type)||Xr(a,n.body)},177:function(n,a,u){return pl(a,u,n.modifiers)||Xr(a,n.name)||pl(a,u,n.typeParameters)||pl(a,u,n.parameters)||Xr(a,n.type)||Xr(a,n.body)},178:function(n,a,u){return pl(a,u,n.modifiers)||Xr(a,n.name)||pl(a,u,n.typeParameters)||pl(a,u,n.parameters)||Xr(a,n.type)||Xr(a,n.body)},262:function(n,a,u){return pl(a,u,n.modifiers)||Xr(a,n.asteriskToken)||Xr(a,n.name)||pl(a,u,n.typeParameters)||pl(a,u,n.parameters)||Xr(a,n.type)||Xr(a,n.body)},218:function(n,a,u){return pl(a,u,n.modifiers)||Xr(a,n.asteriskToken)||Xr(a,n.name)||pl(a,u,n.typeParameters)||pl(a,u,n.parameters)||Xr(a,n.type)||Xr(a,n.body)},219:function(n,a,u){return pl(a,u,n.modifiers)||pl(a,u,n.typeParameters)||pl(a,u,n.parameters)||Xr(a,n.type)||Xr(a,n.equalsGreaterThanToken)||Xr(a,n.body)},175:function(n,a,u){return pl(a,u,n.modifiers)||Xr(a,n.body)},183:function(n,a,u){return Xr(a,n.typeName)||pl(a,u,n.typeArguments)},182:function(n,a,u){return Xr(a,n.assertsModifier)||Xr(a,n.parameterName)||Xr(a,n.type)},186:function(n,a,u){return Xr(a,n.exprName)||pl(a,u,n.typeArguments)},187:function(n,a,u){return pl(a,u,n.members)},188:function(n,a,u){return Xr(a,n.elementType)},189:function(n,a,u){return pl(a,u,n.elements)},192:mM,193:mM,194:function(n,a,u){return Xr(a,n.checkType)||Xr(a,n.extendsType)||Xr(a,n.trueType)||Xr(a,n.falseType)},195:function(n,a,u){return Xr(a,n.typeParameter)},205:function(n,a,u){return Xr(a,n.argument)||Xr(a,n.attributes)||Xr(a,n.qualifier)||pl(a,u,n.typeArguments)},302:function(n,a,u){return Xr(a,n.assertClause)},196:Yr,198:Yr,199:function(n,a,u){return Xr(a,n.objectType)||Xr(a,n.indexType)},200:function(n,a,u){return Xr(a,n.readonlyToken)||Xr(a,n.typeParameter)||Xr(a,n.nameType)||Xr(a,n.questionToken)||Xr(a,n.type)||pl(a,u,n.members)},201:function(n,a,u){return Xr(a,n.literal)},202:function(n,a,u){return Xr(a,n.dotDotDotToken)||Xr(a,n.name)||Xr(a,n.questionToken)||Xr(a,n.type)},206:Tl,207:Tl,209:function(n,a,u){return pl(a,u,n.elements)},210:function(n,a,u){return pl(a,u,n.properties)},211:function(n,a,u){return Xr(a,n.expression)||Xr(a,n.questionDotToken)||Xr(a,n.name)},212:function(n,a,u){return Xr(a,n.expression)||Xr(a,n.questionDotToken)||Xr(a,n.argumentExpression)},213:tTe,214:tTe,215:function(n,a,u){return Xr(a,n.tag)||Xr(a,n.questionDotToken)||pl(a,u,n.typeArguments)||Xr(a,n.template)},216:function(n,a,u){return Xr(a,n.type)||Xr(a,n.expression)},217:function(n,a,u){return Xr(a,n.expression)},220:function(n,a,u){return Xr(a,n.expression)},221:function(n,a,u){return Xr(a,n.expression)},222:function(n,a,u){return Xr(a,n.expression)},224:function(n,a,u){return Xr(a,n.operand)},229:function(n,a,u){return Xr(a,n.asteriskToken)||Xr(a,n.expression)},223:function(n,a,u){return Xr(a,n.expression)},225:function(n,a,u){return Xr(a,n.operand)},226:function(n,a,u){return Xr(a,n.left)||Xr(a,n.operatorToken)||Xr(a,n.right)},234:function(n,a,u){return Xr(a,n.expression)||Xr(a,n.type)},235:function(n,a,u){return Xr(a,n.expression)},238:function(n,a,u){return Xr(a,n.expression)||Xr(a,n.type)},236:function(n,a,u){return Xr(a,n.name)},227:function(n,a,u){return Xr(a,n.condition)||Xr(a,n.questionToken)||Xr(a,n.whenTrue)||Xr(a,n.colonToken)||Xr(a,n.whenFalse)},230:function(n,a,u){return Xr(a,n.expression)},241:Oae,268:Oae,307:function(n,a,u){return pl(a,u,n.statements)||Xr(a,n.endOfFileToken)},243:function(n,a,u){return pl(a,u,n.modifiers)||Xr(a,n.declarationList)},261:function(n,a,u){return pl(a,u,n.declarations)},244:function(n,a,u){return Xr(a,n.expression)},245:function(n,a,u){return Xr(a,n.expression)||Xr(a,n.thenStatement)||Xr(a,n.elseStatement)},246:function(n,a,u){return Xr(a,n.statement)||Xr(a,n.expression)},247:function(n,a,u){return Xr(a,n.expression)||Xr(a,n.statement)},248:function(n,a,u){return Xr(a,n.initializer)||Xr(a,n.condition)||Xr(a,n.incrementor)||Xr(a,n.statement)},249:function(n,a,u){return Xr(a,n.initializer)||Xr(a,n.expression)||Xr(a,n.statement)},250:function(n,a,u){return Xr(a,n.awaitModifier)||Xr(a,n.initializer)||Xr(a,n.expression)||Xr(a,n.statement)},251:Tgt,252:Tgt,253:function(n,a,u){return Xr(a,n.expression)},254:function(n,a,u){return Xr(a,n.expression)||Xr(a,n.statement)},255:function(n,a,u){return Xr(a,n.expression)||Xr(a,n.caseBlock)},269:function(n,a,u){return pl(a,u,n.clauses)},296:function(n,a,u){return Xr(a,n.expression)||pl(a,u,n.statements)},297:function(n,a,u){return pl(a,u,n.statements)},256:function(n,a,u){return Xr(a,n.label)||Xr(a,n.statement)},257:function(n,a,u){return Xr(a,n.expression)},258:function(n,a,u){return Xr(a,n.tryBlock)||Xr(a,n.catchClause)||Xr(a,n.finallyBlock)},299:function(n,a,u){return Xr(a,n.variableDeclaration)||Xr(a,n.block)},170:function(n,a,u){return Xr(a,n.expression)},263:Egt,231:Egt,264:function(n,a,u){return pl(a,u,n.modifiers)||Xr(a,n.name)||pl(a,u,n.typeParameters)||pl(a,u,n.heritageClauses)||pl(a,u,n.members)},265:function(n,a,u){return pl(a,u,n.modifiers)||Xr(a,n.name)||pl(a,u,n.typeParameters)||Xr(a,n.type)},266:function(n,a,u){return pl(a,u,n.modifiers)||Xr(a,n.name)||pl(a,u,n.members)},306:function(n,a,u){return Xr(a,n.name)||Xr(a,n.initializer)},267:function(n,a,u){return pl(a,u,n.modifiers)||Xr(a,n.name)||Xr(a,n.body)},271:function(n,a,u){return pl(a,u,n.modifiers)||Xr(a,n.name)||Xr(a,n.moduleReference)},272:function(n,a,u){return pl(a,u,n.modifiers)||Xr(a,n.importClause)||Xr(a,n.moduleSpecifier)||Xr(a,n.attributes)},273:function(n,a,u){return Xr(a,n.name)||Xr(a,n.namedBindings)},300:function(n,a,u){return pl(a,u,n.elements)},301:function(n,a,u){return Xr(a,n.name)||Xr(a,n.value)},270:function(n,a,u){return pl(a,u,n.modifiers)||Xr(a,n.name)},274:function(n,a,u){return Xr(a,n.name)},280:function(n,a,u){return Xr(a,n.name)},275:TGe,279:TGe,278:function(n,a,u){return pl(a,u,n.modifiers)||Xr(a,n.exportClause)||Xr(a,n.moduleSpecifier)||Xr(a,n.attributes)},276:Dgt,281:Dgt,277:function(n,a,u){return pl(a,u,n.modifiers)||Xr(a,n.expression)},228:function(n,a,u){return Xr(a,n.head)||pl(a,u,n.templateSpans)},239:function(n,a,u){return Xr(a,n.expression)||Xr(a,n.literal)},203:function(n,a,u){return Xr(a,n.head)||pl(a,u,n.templateSpans)},204:function(n,a,u){return Xr(a,n.type)||Xr(a,n.literal)},167:function(n,a,u){return Xr(a,n.expression)},298:function(n,a,u){return pl(a,u,n.types)},233:function(n,a,u){return Xr(a,n.expression)||pl(a,u,n.typeArguments)},283:function(n,a,u){return Xr(a,n.expression)},282:function(n,a,u){return pl(a,u,n.modifiers)},355:function(n,a,u){return pl(a,u,n.elements)},284:function(n,a,u){return Xr(a,n.openingElement)||pl(a,u,n.children)||Xr(a,n.closingElement)},288:function(n,a,u){return Xr(a,n.openingFragment)||pl(a,u,n.children)||Xr(a,n.closingFragment)},285:Igt,286:Igt,292:function(n,a,u){return pl(a,u,n.properties)},291:function(n,a,u){return Xr(a,n.name)||Xr(a,n.initializer)},293:function(n,a,u){return Xr(a,n.expression)},294:function(n,a,u){return Xr(a,n.dotDotDotToken)||Xr(a,n.expression)},287:function(n,a,u){return Xr(a,n.tagName)},295:function(n,a,u){return Xr(a,n.namespace)||Xr(a,n.name)},190:Fae,191:Fae,309:Fae,315:Fae,314:Fae,316:Fae,318:Fae,317:function(n,a,u){return pl(a,u,n.parameters)||Xr(a,n.type)},320:function(n,a,u){return(typeof n.comment=="string"?void 0:pl(a,u,n.comment))||pl(a,u,n.tags)},347:function(n,a,u){return Xr(a,n.tagName)||Xr(a,n.name)||(typeof n.comment=="string"?void 0:pl(a,u,n.comment))},310:function(n,a,u){return Xr(a,n.name)},311:function(n,a,u){return Xr(a,n.left)||Xr(a,n.right)},341:EGe,348:EGe,330:function(n,a,u){return Xr(a,n.tagName)||(typeof n.comment=="string"?void 0:pl(a,u,n.comment))},329:function(n,a,u){return Xr(a,n.tagName)||Xr(a,n.class)||(typeof n.comment=="string"?void 0:pl(a,u,n.comment))},328:function(n,a,u){return Xr(a,n.tagName)||Xr(a,n.class)||(typeof n.comment=="string"?void 0:pl(a,u,n.comment))},345:function(n,a,u){return Xr(a,n.tagName)||Xr(a,n.constraint)||pl(a,u,n.typeParameters)||(typeof n.comment=="string"?void 0:pl(a,u,n.comment))},346:function(n,a,u){return Xr(a,n.tagName)||(n.typeExpression&&n.typeExpression.kind===309?Xr(a,n.typeExpression)||Xr(a,n.fullName)||(typeof n.comment=="string"?void 0:pl(a,u,n.comment)):Xr(a,n.fullName)||Xr(a,n.typeExpression)||(typeof n.comment=="string"?void 0:pl(a,u,n.comment)))},338:function(n,a,u){return Xr(a,n.tagName)||Xr(a,n.fullName)||Xr(a,n.typeExpression)||(typeof n.comment=="string"?void 0:pl(a,u,n.comment))},342:Tee,344:Tee,343:Tee,340:Tee,350:Tee,349:Tee,339:Tee,323:function(n,a,u){return ee(n.typeParameters,a)||ee(n.parameters,a)||Xr(a,n.type)},324:u8e,325:u8e,326:u8e,322:function(n,a,u){return ee(n.jsDocPropertyTags,a)},327:fK,332:fK,333:fK,334:fK,335:fK,336:fK,331:fK,337:fK,351:Ngt,354:Agt};function l8e(t,n,a){return pl(n,a,t.typeParameters)||pl(n,a,t.parameters)||Xr(n,t.type)}function mM(t,n,a){return pl(n,a,t.types)}function Yr(t,n,a){return Xr(n,t.type)}function Tl(t,n,a){return pl(n,a,t.elements)}function tTe(t,n,a){return Xr(n,t.expression)||Xr(n,t.questionDotToken)||pl(n,a,t.typeArguments)||pl(n,a,t.arguments)}function Oae(t,n,a){return pl(n,a,t.statements)}function Tgt(t,n,a){return Xr(n,t.label)}function Egt(t,n,a){return pl(n,a,t.modifiers)||Xr(n,t.name)||pl(n,a,t.typeParameters)||pl(n,a,t.heritageClauses)||pl(n,a,t.members)}function TGe(t,n,a){return pl(n,a,t.elements)}function Dgt(t,n,a){return Xr(n,t.propertyName)||Xr(n,t.name)}function Igt(t,n,a){return Xr(n,t.tagName)||pl(n,a,t.typeArguments)||Xr(n,t.attributes)}function Fae(t,n,a){return Xr(n,t.type)}function EGe(t,n,a){return Xr(n,t.tagName)||(t.isNameFirst?Xr(n,t.name)||Xr(n,t.typeExpression):Xr(n,t.typeExpression)||Xr(n,t.name))||(typeof t.comment=="string"?void 0:pl(n,a,t.comment))}function Tee(t,n,a){return Xr(n,t.tagName)||Xr(n,t.typeExpression)||(typeof t.comment=="string"?void 0:pl(n,a,t.comment))}function u8e(t,n,a){return Xr(n,t.name)}function fK(t,n,a){return Xr(n,t.tagName)||(typeof t.comment=="string"?void 0:pl(n,a,t.comment))}function Ngt(t,n,a){return Xr(n,t.tagName)||Xr(n,t.importClause)||Xr(n,t.moduleSpecifier)||Xr(n,t.attributes)||(typeof t.comment=="string"?void 0:pl(n,a,t.comment))}function Agt(t,n,a){return Xr(n,t.expression)}function _d(t,n,a){if(t===void 0||t.kind<=165)return;let u=wgt[t.kind];return u===void 0?void 0:u(t,n,a)}function NU(t,n,a){let u=DGe(t),m=[];for(;m.length=0;--x)u.push(g[x]),m.push(v)}else{let x=n(g,v);if(x){if(x==="skip")continue;return x}if(g.kind>=166)for(let k of DGe(g))u.push(k),m.push(g)}}}function DGe(t){let n=[];return _d(t,a,a),n;function a(u){n.unshift(u)}}function IGe(t){t.externalModuleIndicator=gw(t)}function AU(t,n,a,u=!1,m){var g,v;(g=us)==null||g.push(us.Phase.Parse,"createSourceFile",{path:t},!0),Lm("beforeParse");let x,{languageVersion:k,setExternalModuleIndicator:T,impliedNodeFormat:I,jsDocParsingMode:A}=typeof a=="object"?a:{languageVersion:a};if(k===100)x=K5.parseSourceFile(t,n,k,void 0,u,6,Za,A);else{let M=I===void 0?T:R=>(R.impliedNodeFormat=I,(T||IGe)(R));x=K5.parseSourceFile(t,n,k,void 0,u,m,M,A)}return Lm("afterParse"),Ub("Parse","beforeParse","afterParse"),(v=us)==null||v.pop(),x}function sO(t,n){return K5.parseIsolatedEntityName(t,n)}function Mae(t,n){return K5.parseJsonText(t,n)}function Mg(t){return t.externalModuleIndicator!==void 0}function mhe(t,n,a,u=!1){let m=X5.updateSourceFile(t,n,a,u);return m.flags|=t.flags&12582912,m}function PU(t,n,a){let u=K5.JSDocParser.parseIsolatedJSDocComment(t,n,a);return u&&u.jsDoc&&K5.fixupParentReferences(u.jsDoc),u}function Pgt(t,n,a){return K5.JSDocParser.parseJSDocTypeExpressionForTests(t,n,a)}var K5;(t=>{var n=LA(99,!0),a=40960,u,m,g,v,x;function k(Qe){return Ut++,Qe}var T={createBaseSourceFileNode:Qe=>k(new x(Qe,0,0)),createBaseIdentifierNode:Qe=>k(new g(Qe,0,0)),createBasePrivateIdentifierNode:Qe=>k(new v(Qe,0,0)),createBaseTokenNode:Qe=>k(new m(Qe,0,0)),createBaseNode:Qe=>k(new u(Qe,0,0))},I=cee(11,T),{createNodeArray:A,createNumericLiteral:M,createStringLiteral:R,createLiteralLikeNode:H,createIdentifier:U,createPrivateIdentifier:$,createToken:K,createArrayLiteralExpression:re,createObjectLiteralExpression:X,createPropertyAccessExpression:ne,createPropertyAccessChain:se,createElementAccessExpression:_e,createElementAccessChain:ae,createCallExpression:le,createCallChain:Ee,createNewExpression:xe,createParenthesizedExpression:be,createBlock:Le,createVariableStatement:fe,createExpressionStatement:we,createIfStatement:Ae,createWhileStatement:Ge,createForStatement:he,createForOfStatement:Oe,createVariableDeclaration:Re,createVariableDeclarationList:$e}=I,Ke,qe,rt,_t,ft,mt,ut,ht,Kt,ni,Ut,pi,wi,Bi,Bn,mr,Ei=!0,zn=!1;function zr(Qe,$t,vi,Ki,jn=!1,$r,jo,Ms=0){var rc;if($r=Xse(Qe,$r),$r===6){let gl=lo(Qe,$t,vi,Ki,jn);return Jae(gl,(rc=gl.statements[0])==null?void 0:rc.expression,gl.parseDiagnostics,!1,void 0),gl.referencedFiles=F,gl.typeReferenceDirectives=F,gl.libReferenceDirectives=F,gl.amdDependencies=F,gl.hasNoDefaultLib=!1,gl.pragmas=Y,gl}_r(Qe,$t,vi,Ki,$r,Ms);let _c=ai(vi,jn,$r,jo||IGe,Ms);return Hs(),_c}t.parseSourceFile=zr;function xr(Qe,$t){_r("",Qe,$t,void 0,1,0),Ot();let vi=st(!0),Ki=We()===1&&!ut.length;return Hs(),Ki?vi:void 0}t.parseIsolatedEntityName=xr;function lo(Qe,$t,vi=2,Ki,jn=!1){_r(Qe,$t,vi,Ki,6,0),qe=mr,Ot();let $r=pe(),jo,Ms;if(We()===1)jo=xu([],$r,$r),Ms=Su();else{let gl;for(;We()!==1;){let Of;switch(We()){case 23:Of=O1();break;case 112:case 97:case 106:Of=Su();break;case 41:Ti(()=>Ot()===9&&Ot()!==59)?Of=dD():Of=Tb();break;case 9:case 11:if(Ti(()=>Ot()!==59)){Of=un();break}default:Of=Tb();break}gl&&ua(gl)?gl.push(Of):gl?gl=[gl,Of]:(gl=Of,We()!==1&&ui(j.Unexpected_token))}let v_=ua(gl)?Ar(re(gl),$r):Se.checkDefined(gl),uf=we(v_);Ar(uf,$r),jo=xu([uf],$r),Ms=ja(1,j.Unexpected_token)}let rc=gn(Qe,2,6,!1,jo,Ms,qe,Za);jn&&ci(rc),rc.nodeCount=Ut,rc.identifierCount=wi,rc.identifiers=pi,rc.parseDiagnostics=OG(ut,rc),ht&&(rc.jsDocDiagnostics=OG(ht,rc));let _c=rc;return Hs(),_c}t.parseJsonText=lo;function _r(Qe,$t,vi,Ki,jn,$r){switch(u=xd.getNodeConstructor(),m=xd.getTokenConstructor(),g=xd.getIdentifierConstructor(),v=xd.getPrivateIdentifierConstructor(),x=xd.getSourceFileConstructor(),Ke=Kd(Qe),rt=$t,_t=vi,Kt=Ki,ft=jn,mt=GZ(jn),ut=[],Bi=0,pi=new Map,wi=0,Ut=0,qe=0,Ei=!0,ft){case 1:case 2:mr=524288;break;case 6:mr=134742016;break;default:mr=0;break}zn=!1,n.setText(rt),n.setOnError(vt),n.setScriptTarget(_t),n.setLanguageVariant(mt),n.setScriptKind(ft),n.setJSDocParsingMode($r)}function Hs(){n.clearCommentDirectives(),n.setText(""),n.setOnError(void 0),n.setScriptKind(0),n.setJSDocParsingMode(0),rt=void 0,_t=void 0,Kt=void 0,ft=void 0,mt=void 0,qe=0,ut=void 0,ht=void 0,Bi=0,pi=void 0,Bn=void 0,Ei=!0}function ai(Qe,$t,vi,Ki,jn){let $r=ey(Ke);$r&&(mr|=33554432),qe=mr,Ot();let jo=il(0,g0);Se.assert(We()===1);let Ms=at(),rc=Nn(Su(),Ms),_c=gn(Ke,Qe,vi,$r,jo,rc,qe,Ki);return hhe(_c,rt),iTe(_c,gl),_c.commentDirectives=n.getCommentDirectives(),_c.nodeCount=Ut,_c.identifierCount=wi,_c.identifiers=pi,_c.parseDiagnostics=OG(ut,_c),_c.jsDocParsingMode=jn,ht&&(_c.jsDocDiagnostics=OG(ht,_c)),$t&&ci(_c),_c;function gl(v_,uf,Of){ut.push(Vj(Ke,rt,v_,uf,Of))}}let mn=!1;function Nn(Qe,$t){if(!$t)return Qe;Se.assert(!Qe.jsDoc);let vi=Dc(wZ(Qe,rt),Ki=>qr.parseJSDocComment(Qe,Ki.pos,Ki.end-Ki.pos));return vi.length&&(Qe.jsDoc=vi),mn&&(mn=!1,Qe.flags|=536870912),Qe}function Gr(Qe){let $t=Kt,vi=X5.createSyntaxCursor(Qe);Kt={currentNode:gl};let Ki=[],jn=ut;ut=[];let $r=0,jo=rc(Qe.statements,0);for(;jo!==-1;){let v_=Qe.statements[$r],uf=Qe.statements[jo];Ho(Ki,Qe.statements,$r,jo),$r=_c(Qe.statements,jo);let Of=_n(jn,Eg=>Eg.start>=v_.pos),vC=Of>=0?_n(jn,Eg=>Eg.start>=uf.pos,Of):-1;Of>=0&&Ho(ut,jn,Of,vC>=0?vC:void 0),Kn(()=>{let Eg=mr;for(mr|=65536,n.resetTokenState(uf.pos),Ot();We()!==1;){let bC=n.getTokenFullStart(),ef=Fd(0,g0);if(Ki.push(ef),bC===n.getTokenFullStart()&&Ot(),$r>=0){let Am=Qe.statements[$r];if(ef.end===Am.pos)break;ef.end>Am.pos&&($r=_c(Qe.statements,$r+1))}}mr=Eg},2),jo=$r>=0?rc(Qe.statements,$r):-1}if($r>=0){let v_=Qe.statements[$r];Ho(Ki,Qe.statements,$r);let uf=_n(jn,Of=>Of.start>=v_.pos);uf>=0&&Ho(ut,jn,uf)}return Kt=$t,I.updateSourceFile(Qe,Fn(A(Ki),Qe.statements));function Ms(v_){return!(v_.flags&65536)&&!!(v_.transformFlags&67108864)}function rc(v_,uf){for(let Of=uf;Of118}function Vr(){return We()===80?!0:We()===127&&Gt()||We()===135&&Bt()?!1:We()>118}function ir(Qe,$t,vi=!0){return We()===Qe?(vi&&Ot(),!0):($t?ui($t):ui(j._0_expected,Ef(Qe)),!1)}let Ts=Object.keys(ZB).filter(Qe=>Qe.length>2);function pa(Qe){if(Kv(Qe)){Ce(fd(rt,Qe.template.pos),Qe.template.end,j.Module_declaration_names_may_only_use_or_quoted_strings);return}let $t=Ai(Qe)?Un(Qe):void 0;if(!$t||!Jb($t,_t)){ui(j._0_expected,Ef(27));return}let vi=fd(rt,Qe.pos);switch($t){case"const":case"let":case"var":Ce(vi,Qe.end,j.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":Nc(j.Interface_name_cannot_be_0,j.Interface_must_be_given_a_name,19);return;case"is":Ce(vi,n.getTokenStart(),j.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":Nc(j.Namespace_name_cannot_be_0,j.Namespace_must_be_given_a_name,19);return;case"type":Nc(j.Type_alias_name_cannot_be_0,j.Type_alias_must_be_given_a_name,64);return}let Ki=JB($t,Ts,ps)??_a($t);if(Ki){Ce(vi,Qe.end,j.Unknown_keyword_or_identifier_Did_you_mean_0,Ki);return}We()!==0&&Ce(vi,Qe.end,j.Unexpected_keyword_or_identifier)}function Nc(Qe,$t,vi){We()===vi?ui($t):ui(Qe,n.getTokenValue())}function _a(Qe){for(let $t of Ts)if(Qe.length>$t.length+2&&xl(Qe,$t))return`${$t} ${Qe.slice($t.length)}`}function Fa(Qe,$t,vi){if(We()===60&&!n.hasPrecedingLineBreak()){ui(j.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(We()===21){ui(j.Cannot_start_a_function_call_in_a_type_annotation),Ot();return}if($t&&!gr()){vi?ui(j._0_expected,Ef(27)):ui(j.Expected_for_property_initializer);return}if(!Wl()){if(vi){ui(j._0_expected,Ef(27));return}pa(Qe)}}function Pf(Qe){return We()===Qe?(Fi(),!0):(Se.assert(Aj(Qe)),ui(j._0_expected,Ef(Qe)),!1)}function $l(Qe,$t,vi,Ki){if(We()===$t){Ot();return}let jn=ui(j._0_expected,Ef($t));vi&&jn&&Pd(jn,Vj(Ke,rt,Ki,1,j.The_parser_expected_to_find_a_1_to_match_the_0_token_here,Ef(Qe),Ef($t)))}function cc(Qe){return We()===Qe?(Ot(),!0):!1}function vl(Qe){if(We()===Qe)return Su()}function G_(Qe){if(We()===Qe)return Aa()}function ja(Qe,$t,vi){return vl(Qe)||Hl(Qe,!1,$t||j._0_expected,vi||Ef(Qe))}function Gd(Qe){let $t=G_(Qe);return $t||(Se.assert(Aj(Qe)),Hl(Qe,!1,j._0_expected,Ef(Qe)))}function Su(){let Qe=pe(),$t=We();return Ot(),Ar(K($t),Qe)}function Aa(){let Qe=pe(),$t=We();return Fi(),Ar(K($t),Qe)}function gr(){return We()===27?!0:We()===20||We()===1||n.hasPrecedingLineBreak()}function Wl(){return gr()?(We()===27&&Ot(),!0):!1}function Vc(){return Wl()||ir(27)}function xu(Qe,$t,vi,Ki){let jn=A(Qe,Ki);return KT(jn,$t,vi??n.getTokenFullStart()),jn}function Ar(Qe,$t,vi){return KT(Qe,$t,vi??n.getTokenFullStart()),mr&&(Qe.flags|=mr),zn&&(zn=!1,Qe.flags|=262144),Qe}function Hl(Qe,$t,vi,...Ki){$t?Ue(n.getTokenFullStart(),0,vi,...Ki):vi&&ui(vi,...Ki);let jn=pe(),$r=Qe===80?U("",void 0):OA(Qe)?I.createTemplateLiteralLikeNode(Qe,"","",void 0):Qe===9?M("",void 0):Qe===11?R("",void 0):Qe===282?I.createMissingDeclaration():K(Qe);return Ar($r,jn)}function Lf(Qe){let $t=pi.get(Qe);return $t===void 0&&pi.set(Qe,$t=Qe),$t}function Rt(Qe,$t,vi){if(Qe){wi++;let Ms=n.hasPrecedingJSDocLeadingAsterisks()?n.getTokenStart():pe(),rc=We(),_c=Lf(n.getTokenValue()),gl=n.hasExtendedUnicodeEscape();return si(),Ar(U(_c,rc,gl),Ms)}if(We()===81)return ui(vi||j.Private_identifiers_are_not_allowed_outside_class_bodies),Rt(!0);if(We()===0&&n.tryScan(()=>n.reScanInvalidIdentifier()===80))return Rt(!0);wi++;let Ki=We()===1,jn=n.isReservedWord(),$r=n.getTokenText(),jo=jn?j.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:j.Identifier_expected;return Hl(80,Ki,$t||jo,$r)}function bt(Qe){return Rt(Nr(),void 0,Qe)}function Ci(Qe,$t){return Rt(Vr(),Qe,$t)}function kn(Qe){return Rt(FS(We()),Qe)}function ke(){return(n.hasUnicodeEscape()||n.hasExtendedUnicodeEscape())&&ui(j.Unicode_escape_sequence_cannot_appear_here),Rt(FS(We()))}function Qt(){return FS(We())||We()===11||We()===9||We()===10}function oi(){return FS(We())||We()===11}function nn(Qe){if(We()===11||We()===9||We()===10){let $t=un();return $t.text=Lf($t.text),$t}return Qe&&We()===23?io():We()===81?Er():kn()}function hr(){return nn(!0)}function io(){let Qe=pe();ir(23);let $t=lt(Hh);return ir(24),Ar(I.createComputedPropertyName($t),Qe)}function Er(){let Qe=pe(),$t=$(Lf(n.getTokenValue()));return Ot(),Ar($t,Qe)}function is(Qe){return We()===Qe&&wr(da)}function zs(){return Ot(),n.hasPrecedingLineBreak()?!1:B_()}function da(){switch(We()){case 87:return Ot()===94;case 95:return Ot(),We()===90?Ti(vd):We()===156?Ti(ru):cu();case 90:return vd();case 126:case 139:case 153:return Ot(),B_();default:return zs()}}function cu(){return We()===60||We()!==42&&We()!==130&&We()!==19&&B_()}function ru(){return Ot(),cu()}function mf(){return z6(We())&&wr(da)}function B_(){return We()===23||We()===19||We()===42||We()===26||Qt()}function vd(){return Ot(),We()===86||We()===100||We()===120||We()===60||We()===128&&Ti(hP)||We()===134&&Ti(zf)}function td(Qe,$t){if(hp(Qe))return!0;switch(Qe){case 0:case 1:case 3:return!(We()===27&&$t)&&gD();case 2:return We()===84||We()===90;case 4:return Ti(qt);case 5:return Ti(Vt)||We()===27&&!$t;case 6:return We()===23||Qt();case 12:switch(We()){case 23:case 42:case 26:case 25:return!0;default:return Qt()}case 18:return Qt();case 9:return We()===23||We()===26||Qt();case 24:return oi();case 7:return We()===19?Ti(rp):$t?Vr()&&!cl():L1()&&!cl();case 8:return Bs();case 10:return We()===28||We()===26||Bs();case 19:return We()===103||We()===87||Vr();case 15:switch(We()){case 28:case 25:return!0}case 11:return We()===26||zm();case 16:return iy(!1);case 17:return iy(!0);case 20:case 21:return We()===28||wx();case 22:return ST();case 23:return We()===161&&Ti(Db)?!1:We()===11?!0:FS(We());case 13:return FS(We())||We()===19;case 14:return!0;case 25:return!0;case 26:return Se.fail("ParsingContext.Count used as a context");default:Se.assertNever(Qe,"Non-exhaustive case in 'isListElement'.")}}function rp(){if(Se.assert(We()===19),Ot()===20){let Qe=Ot();return Qe===28||Qe===19||Qe===96||Qe===119}return!0}function _i(){return Ot(),Vr()}function er(){return Ot(),FS(We())}function wo(){return Ot(),ME(We())}function cl(){return We()===119||We()===96?Ti(ri):!1}function ri(){return Ot(),zm()}function $n(){return Ot(),wx()}function xo(Qe){if(We()===1)return!0;switch(Qe){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return We()===20;case 3:return We()===20||We()===84||We()===90;case 7:return We()===19||We()===96||We()===119;case 8:return Lc();case 19:return We()===32||We()===21||We()===19||We()===96||We()===119;case 11:return We()===22||We()===27;case 15:case 21:case 10:return We()===24;case 17:case 16:case 18:return We()===22||We()===24;case 20:return We()!==28;case 22:return We()===19||We()===20;case 13:return We()===32||We()===44;case 14:return We()===30&&Ti(vs);default:return!1}}function Lc(){return!!(gr()||ww(We())||We()===39)}function tl(){Se.assert(Bi,"Missing parsing context");for(let Qe=0;Qe<26;Qe++)if(Bi&1<=0)}function xt(Qe){return Qe===6?j.An_enum_member_name_must_be_followed_by_a_or:void 0}function ln(){let Qe=xu([],pe());return Qe.isMissingList=!0,Qe}function Dr(Qe){return!!Qe.isMissingList}function Tr(Qe,$t,vi,Ki){if(ir(vi)){let jn=Ap(Qe,$t);return ir(Ki),jn}return ln()}function st(Qe,$t){let vi=pe(),Ki=Qe?kn($t):Ci($t);for(;cc(25)&&We()!==30;)Ki=Ar(I.createQualifiedName(Ki,an(Qe,!1,!0)),vi);return Ki}function gi(Qe,$t){return Ar(I.createQualifiedName(Qe,$t),Qe.pos)}function an(Qe,$t,vi){if(n.hasPrecedingLineBreak()&&FS(We())&&Ti(vI))return Hl(80,!0,j.Identifier_expected);if(We()===81){let Ki=Er();return $t?Ki:Hl(80,!0,j.Identifier_expected)}return Qe?vi?kn():ke():Ci()}function yn(Qe){let $t=pe(),vi=[],Ki;do Ki=Xt(Qe),vi.push(Ki);while(Ki.literal.kind===17);return xu(vi,$t)}function Be(Qe){let $t=pe();return Ar(I.createTemplateExpression(Ur(Qe),yn(Qe)),$t)}function Ft(){let Qe=pe();return Ar(I.createTemplateLiteralType(Ur(!1),Vi()),Qe)}function Vi(){let Qe=pe(),$t=[],vi;do vi=yr(),$t.push(vi);while(vi.literal.kind===17);return xu($t,Qe)}function yr(){let Qe=pe();return Ar(I.createTemplateLiteralTypeSpan(Tg(),He(!1)),Qe)}function He(Qe){return We()===20?(Si(Qe),Rs()):ja(18,j._0_expected,Ef(20))}function Xt(Qe){let $t=pe();return Ar(I.createTemplateSpan(lt(Hh),He(Qe)),$t)}function un(){return Tc(We())}function Ur(Qe){!Qe&&n.getTokenFlags()&26656&&Si(!1);let $t=Tc(We());return Se.assert($t.kind===16,"Template head has wrong token kind"),$t}function Rs(){let Qe=Tc(We());return Se.assert(Qe.kind===17||Qe.kind===18,"Template fragment has wrong token kind"),Qe}function Ja(Qe){let $t=Qe===15||Qe===18,vi=n.getTokenText();return vi.substring(1,vi.length-(n.isUnterminated()?0:$t?1:2))}function Tc(Qe){let $t=pe(),vi=OA(Qe)?I.createTemplateLiteralLikeNode(Qe,n.getTokenValue(),Ja(Qe),n.getTokenFlags()&7176):Qe===9?M(n.getTokenValue(),n.getNumericLiteralFlags()):Qe===11?R(n.getTokenValue(),void 0,n.hasExtendedUnicodeEscape()):bH(Qe)?H(Qe,n.getTokenValue()):Se.fail();return n.hasExtendedUnicodeEscape()&&(vi.hasExtendedUnicodeEscape=!0),n.isUnterminated()&&(vi.isUnterminated=!0),Ot(),Ar(vi,$t)}function Jl(){return st(!0,j.Type_expected)}function Id(){if(!n.hasPrecedingLineBreak()&&Ri()===30)return Tr(20,Tg,30,32)}function bd(){let Qe=pe();return Ar(I.createTypeReferenceNode(Jl(),Id()),Qe)}function op(Qe){switch(Qe.kind){case 183:return Mm(Qe.typeName);case 184:case 185:{let{parameters:$t,type:vi}=Qe;return Dr($t)||op(vi)}case 196:return op(Qe.type);default:return!1}}function Pv(Qe){return Ot(),Ar(I.createTypePredicateNode(void 0,Qe,Tg()),Qe.pos)}function Lv(){let Qe=pe();return Ot(),Ar(I.createThisTypeNode(),Qe)}function P0(){let Qe=pe();return Ot(),Ar(I.createJSDocAllType(),Qe)}function Ny(){let Qe=pe();return Ot(),Ar(I.createJSDocNonNullableType(s2(),!1),Qe)}function y_(){let Qe=pe();return Ot(),We()===28||We()===20||We()===22||We()===32||We()===64||We()===52?Ar(I.createJSDocUnknownType(),Qe):Ar(I.createJSDocNullableType(Tg(),!1),Qe)}function ng(){let Qe=pe(),$t=at();if(wr(zl)){let vi=nr(36),Ki=Ov(59,!1);return Nn(Ar(I.createJSDocFunctionType(vi,Ki),Qe),$t)}return Ar(I.createTypeReferenceNode(kn(),void 0),Qe)}function eh(){let Qe=pe(),$t;return(We()===110||We()===105)&&($t=kn(),ir(59)),Ar(I.createParameterDeclaration(void 0,void 0,$t,void 0,m0(),void 0),Qe)}function m0(){n.setSkipJsDocLeadingAsterisks(!0);let Qe=pe();if(cc(144)){let Ki=I.createJSDocNamepathType(void 0);e:for(;;)switch(We()){case 20:case 1:case 28:case 5:break e;default:Fi()}return n.setSkipJsDocLeadingAsterisks(!1),Ar(Ki,Qe)}let $t=cc(26),vi=ny();return n.setSkipJsDocLeadingAsterisks(!1),$t&&(vi=Ar(I.createJSDocVariadicType(vi),Qe)),We()===64?(Ot(),Ar(I.createJSDocOptionalType(vi),Qe)):vi}function Z_(){let Qe=pe();ir(114);let $t=st(!0),vi=n.hasPrecedingLineBreak()?void 0:u2();return Ar(I.createTypeQueryNode($t,vi),Qe)}function Ay(){let Qe=pe(),$t=rr(!1,!0),vi=Ci(),Ki,jn;cc(96)&&(wx()||!zm()?Ki=Tg():jn=Wp());let $r=cc(64)?Tg():void 0,jo=I.createTypeParameterDeclaration($t,vi,Ki,$r);return jo.expression=jn,Ar(jo,Qe)}function Py(){if(We()===30)return Tr(19,Ay,30,32)}function iy(Qe){return We()===26||Bs()||z6(We())||We()===60||wx(!Qe)}function sC(Qe){let $t=Hm(j.Private_identifiers_cannot_be_used_as_parameters);return kH($t)===0&&!En(Qe)&&z6(We())&&Ot(),$t}function h0(){return Nr()||We()===23||We()===19}function aC(Qe){return dv(Qe)}function A1(Qe){return dv(Qe,!1)}function dv(Qe,$t=!0){let vi=pe(),Ki=at(),jn=Qe?Ve(()=>rr(!0)):Tt(()=>rr(!0));if(We()===110){let rc=I.createParameterDeclaration(jn,void 0,Rt(!0),void 0,Oi(),void 0),_c=Ed(jn);return _c&&ye(_c,j.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),Nn(Ar(rc,vi),Ki)}let $r=Ei;Ei=!1;let jo=vl(26);if(!$t&&!h0())return;let Ms=Nn(Ar(I.createParameterDeclaration(jn,jo,sC(jn),vl(58),Oi(),pv()),vi),Ki);return Ei=$r,Ms}function Ov(Qe,$t){if(xi(Qe,$t))return nt(ny)}function xi(Qe,$t){return Qe===39?(ir(Qe),!0):cc(59)?!0:$t&&We()===39?(ui(j._0_expected,Ef(59)),Ot(),!0):!1}function Ui(Qe,$t){let vi=Gt(),Ki=Bt();$o(!!(Qe&1)),Qs(!!(Qe&2));let jn=Qe&32?Ap(17,eh):Ap(16,()=>$t?aC(Ki):A1(Ki));return $o(vi),Qs(Ki),jn}function nr(Qe){if(!ir(21))return ln();let $t=Ui(Qe,!0);return ir(22),$t}function Hr(){cc(28)||Vc()}function yo(Qe){let $t=pe(),vi=at();Qe===180&&ir(105);let Ki=Py(),jn=nr(4),$r=Ov(59,!0);Hr();let jo=Qe===179?I.createCallSignature(Ki,jn,$r):I.createConstructSignature(Ki,jn,$r);return Nn(Ar(jo,$t),vi)}function fs(){return We()===23&&Ti(Co)}function Co(){if(Ot(),We()===26||We()===24)return!0;if(z6(We())){if(Ot(),Vr())return!0}else if(Vr())Ot();else return!1;return We()===59||We()===28?!0:We()!==58?!1:(Ot(),We()===59||We()===28||We()===24)}function Os(Qe,$t,vi){let Ki=Tr(16,()=>aC(!1),23,24),jn=Oi();Hr();let $r=I.createIndexSignature(vi,Ki,jn);return Nn(Ar($r,Qe),$t)}function Jc(Qe,$t,vi){let Ki=hr(),jn=vl(58),$r;if(We()===21||We()===30){let jo=Py(),Ms=nr(4),rc=Ov(59,!0);$r=I.createMethodSignature(vi,Ki,jn,jo,Ms,rc)}else{let jo=Oi();$r=I.createPropertySignature(vi,Ki,jn,jo),We()===64&&($r.initializer=pv())}return Hr(),Nn(Ar($r,Qe),$t)}function qt(){if(We()===21||We()===30||We()===139||We()===153)return!0;let Qe=!1;for(;z6(We());)Qe=!0,Ot();return We()===23?!0:(Qt()&&(Qe=!0,Ot()),Qe?We()===21||We()===30||We()===58||We()===59||We()===28||gr():!1)}function bi(){if(We()===21||We()===30)return yo(179);if(We()===105&&Ti(Li))return yo(180);let Qe=pe(),$t=at(),vi=rr(!1);return is(139)?ge(Qe,$t,vi,177,4):is(153)?ge(Qe,$t,vi,178,4):fs()?Os(Qe,$t,vi):Jc(Qe,$t,vi)}function Li(){return Ot(),We()===21||We()===30}function Yn(){return Ot()===25}function Mr(){switch(Ot()){case 21:case 30:case 25:return!0}return!1}function Bo(){let Qe=pe();return Ar(I.createTypeLiteralNode(bo()),Qe)}function bo(){let Qe;return ir(19)?(Qe=il(4,bi),ir(20)):Qe=ln(),Qe}function Zs(){return Ot(),We()===40||We()===41?Ot()===148:(We()===148&&Ot(),We()===23&&_i()&&Ot()===103)}function jc(){let Qe=pe(),$t=kn();ir(103);let vi=Tg();return Ar(I.createTypeParameterDeclaration(void 0,$t,vi,void 0),Qe)}function bs(){let Qe=pe();ir(19);let $t;(We()===148||We()===40||We()===41)&&($t=Su(),$t.kind!==148&&ir(148)),ir(23);let vi=jc(),Ki=cc(130)?Tg():void 0;ir(24);let jn;(We()===58||We()===40||We()===41)&&(jn=Su(),jn.kind!==58&&ir(58));let $r=Oi();Vc();let jo=il(4,bi);return ir(20),Ar(I.createMappedTypeNode($t,vi,Ki,jn,$r,jo),Qe)}function nl(){let Qe=pe();if(cc(26))return Ar(I.createRestTypeNode(Tg()),Qe);let $t=Tg();if(SN($t)&&$t.pos===$t.type.pos){let vi=I.createOptionalTypeNode($t.type);return Fn(vi,$t),vi.flags=$t.flags,vi}return $t}function Us(){return Ot()===59||We()===58&&Ot()===59}function Pu(){return We()===26?FS(Ot())&&Us():FS(We())&&Us()}function ep(){if(Ti(Pu)){let Qe=pe(),$t=at(),vi=vl(26),Ki=kn(),jn=vl(58);ir(59);let $r=nl(),jo=I.createNamedTupleMember(vi,Ki,jn,$r);return Nn(Ar(jo,Qe),$t)}return nl()}function L0(){let Qe=pe();return Ar(I.createTupleTypeNode(Tr(21,ep,23,24)),Qe)}function Cb(){let Qe=pe();ir(21);let $t=Tg();return ir(22),Ar(I.createParenthesizedType($t),Qe)}function O0(){let Qe;if(We()===128){let $t=pe();Ot();let vi=Ar(K(128),$t);Qe=xu([vi],$t)}return Qe}function HS(){let Qe=pe(),$t=at(),vi=O0(),Ki=cc(105);Se.assert(!vi||Ki,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");let jn=Py(),$r=nr(4),jo=Ov(39,!1),Ms=Ki?I.createConstructorTypeNode(vi,jn,$r,jo):I.createFunctionTypeNode(jn,$r,jo);return Nn(Ar(Ms,Qe),$t)}function t0(){let Qe=Su();return We()===25?void 0:Qe}function cD(Qe){let $t=pe();Qe&&Ot();let vi=We()===112||We()===97||We()===106?Su():Tc(We());return Qe&&(vi=Ar(I.createPrefixUnaryExpression(41,vi),$t)),Ar(I.createLiteralTypeNode(vi),$t)}function cC(){return Ot(),We()===102}function Ok(){qe|=4194304;let Qe=pe(),$t=cc(114);ir(102),ir(21);let vi=Tg(),Ki;if(cc(28)){let jo=n.getTokenStart();ir(19);let Ms=We();if(Ms===118||Ms===132?Ot():ui(j._0_expected,Ef(118)),ir(59),Ki=t6(Ms,!0),!ir(20)){let rc=Y_(ut);rc&&rc.code===j._0_expected.code&&Pd(rc,Vj(Ke,rt,jo,1,j.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}ir(22);let jn=cc(25)?Jl():void 0,$r=Id();return Ar(I.createImportTypeNode(vi,Ki,jn,$r,$t),Qe)}function lf(){return Ot(),We()===9||We()===10}function s2(){switch(We()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return wr(t0)||bd();case 67:n.reScanAsteriskEqualsToken();case 42:return P0();case 61:n.reScanQuestionToken();case 58:return y_();case 100:return ng();case 54:return Ny();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return cD();case 41:return Ti(lf)?cD(!0):bd();case 116:return Su();case 110:{let Qe=Lv();return We()===142&&!n.hasPrecedingLineBreak()?Pv(Qe):Qe}case 114:return Ti(cC)?Ok():Z_();case 19:return Ti(Zs)?bs():Bo();case 23:return L0();case 21:return Cb();case 102:return Ok();case 131:return Ti(vI)?Fk():bd();case 16:return Ft();default:return bd()}}function wx(Qe){switch(We()){case 133:case 159:case 154:case 150:case 163:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!Qe;case 41:return!Qe&&Ti(lf);case 21:return!Qe&&Ti(kw);default:return Vr()}}function kw(){return Ot(),We()===22||iy(!1)||wx()}function QC(){let Qe=pe(),$t=s2();for(;!n.hasPrecedingLineBreak();)switch(We()){case 54:Ot(),$t=Ar(I.createJSDocNonNullableType($t,!0),Qe);break;case 58:if(Ti($n))return $t;Ot(),$t=Ar(I.createJSDocNullableType($t,!0),Qe);break;case 23:if(ir(23),wx()){let vi=Tg();ir(24),$t=Ar(I.createIndexedAccessTypeNode($t,vi),Qe)}else ir(24),$t=Ar(I.createArrayTypeNode($t),Qe);break;default:return $t}return $t}function US(Qe){let $t=pe();return ir(Qe),Ar(I.createTypeOperatorNode(Qe,Gu()),$t)}function Zv(){if(cc(96)){let Qe=Lt(Tg);if(hi()||We()!==58)return Qe}}function fv(){let Qe=pe(),$t=Ci(),vi=wr(Zv),Ki=I.createTypeParameterDeclaration(void 0,$t,vi);return Ar(Ki,Qe)}function _v(){let Qe=pe();return ir(140),Ar(I.createInferTypeNode(fv()),Qe)}function Gu(){let Qe=We();switch(Qe){case 143:case 158:case 148:return US(Qe);case 140:return _v()}return nt(QC)}function pT(Qe){if(e1()){let $t=HS(),vi;return xp($t)?vi=Qe?j.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:j.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:vi=Qe?j.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:j.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,ye($t,vi),$t}}function pP(Qe,$t,vi){let Ki=pe(),jn=Qe===52,$r=cc(Qe),jo=$r&&pT(jn)||$t();if(We()===Qe||$r){let Ms=[jo];for(;cc(Qe);)Ms.push(pT(jn)||$t());jo=Ar(vi(xu(Ms,Ki)),Ki)}return jo}function fI(){return pP(51,Gu,I.createIntersectionTypeNode)}function ZC(){return pP(52,fI,I.createUnionTypeNode)}function Tx(){return Ot(),We()===105}function e1(){return We()===30||We()===21&&Ti(gp)?!0:We()===105||We()===128&&Ti(Tx)}function P1(){if(z6(We())&&rr(!1),Vr()||We()===110)return Ot(),!0;if(We()===23||We()===19){let Qe=ut.length;return Hm(),Qe===ut.length}return!1}function gp(){return Ot(),!!(We()===22||We()===26||P1()&&(We()===59||We()===28||We()===58||We()===64||We()===22&&(Ot(),We()===39)))}function ny(){let Qe=pe(),$t=Vr()&&wr(lD),vi=Tg();return $t?Ar(I.createTypePredicateNode(void 0,$t,vi),Qe):vi}function lD(){let Qe=Ci();if(We()===142&&!n.hasPrecedingLineBreak())return Ot(),Qe}function Fk(){let Qe=pe(),$t=ja(131),vi=We()===110?Lv():Ci(),Ki=cc(142)?Tg():void 0;return Ar(I.createTypePredicateNode($t,vi,Ki),Qe)}function Tg(){if(mr&81920)return Pi(81920,Tg);if(e1())return HS();let Qe=pe(),$t=ZC();if(!hi()&&!n.hasPrecedingLineBreak()&&cc(96)){let vi=Lt(Tg);ir(58);let Ki=nt(Tg);ir(59);let jn=nt(Tg);return Ar(I.createConditionalTypeNode($t,vi,Ki,jn),Qe)}return $t}function Oi(){return cc(59)?Tg():void 0}function L1(){switch(We()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return Ti(Mr);default:return Vr()}}function zm(){if(L1())return!0;switch(We()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return oa()?!0:Vr()}}function _I(){return We()!==19&&We()!==100&&We()!==86&&We()!==60&&zm()}function Hh(){let Qe=Ie();Qe&&Mn(!1);let $t=pe(),vi=Bg(!0),Ki;for(;Ki=vl(28);)vi=hT(vi,Ki,Bg(!0),$t);return Qe&&Mn(!0),vi}function pv(){return cc(64)?Bg(!0):void 0}function Bg(Qe){if(Mk())return ki();let $t=lC(Qe)||uC(Qe);if($t)return $t;let vi=pe(),Ki=at(),jn=ek(0);return jn.kind===80&&We()===39?Ly(vi,jn,Qe,Ki,void 0):MS(jn)&&D4(In())?hT(jn,Su(),Bg(Qe),vi):jg(jn,vi,Qe)}function Mk(){return We()===127?Gt()?!0:Ti(kF):!1}function mT(){return Ot(),!n.hasPrecedingLineBreak()&&Vr()}function ki(){let Qe=pe();return Ot(),!n.hasPrecedingLineBreak()&&(We()===42||zm())?Ar(I.createYieldExpression(vl(42),Bg(!0)),Qe):Ar(I.createYieldExpression(void 0,void 0),Qe)}function Ly(Qe,$t,vi,Ki,jn){Se.assert(We()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");let $r=I.createParameterDeclaration(void 0,void 0,$t,void 0,void 0,void 0);Ar($r,$t.pos);let jo=xu([$r],$r.pos,$r.end),Ms=ja(39),rc=Ou(!!jn,vi),_c=I.createArrowFunction(jn,void 0,jo,void 0,Ms,rc);return Nn(Ar(_c,Qe),Ki)}function lC(Qe){let $t=uD();if($t!==0)return $t===1?pI(!0,!0):wr(()=>Rk(Qe))}function uD(){return We()===21||We()===30||We()===134?Ti(mP):We()===39?1:0}function mP(){if(We()===134&&(Ot(),n.hasPrecedingLineBreak()||We()!==21&&We()!==30))return 0;let Qe=We(),$t=Ot();if(Qe===21){if($t===22)switch(Ot()){case 39:case 59:case 19:return 1;default:return 0}if($t===23||$t===19)return 2;if($t===26)return 1;if(z6($t)&&$t!==134&&Ti(_i))return Ot()===130?0:1;if(!Vr()&&$t!==110)return 0;switch(Ot()){case 59:return 1;case 58:return Ot(),We()===59||We()===28||We()===64||We()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return Se.assert(Qe===30),!Vr()&&We()!==87?0:mt===1?Ti(()=>{cc(87);let Ki=Ot();if(Ki===96)switch(Ot()){case 64:case 32:case 44:return!1;default:return!0}else if(Ki===28||Ki===64)return!0;return!1})?1:0:2}function Rk(Qe){let $t=n.getTokenStart();if(Bn?.has($t))return;let vi=pI(!1,Qe);return vi||(Bn||(Bn=new Set)).add($t),vi}function uC(Qe){if(We()===134&&Ti(Ex)===1){let $t=pe(),vi=at(),Ki=as(),jn=ek(0);return Ly($t,jn,Qe,vi,Ki)}}function Ex(){if(We()===134){if(Ot(),n.hasPrecedingLineBreak()||We()===39)return 0;let Qe=ek(0);if(!n.hasPrecedingLineBreak()&&Qe.kind===80&&We()===39)return 1}return 0}function pI(Qe,$t){let vi=pe(),Ki=at(),jn=as(),$r=En(jn,U5)?2:0,jo=Py(),Ms;if(ir(21)){if(Qe)Ms=Ui($r,Qe);else{let bC=Ui($r,Qe);if(!bC)return;Ms=bC}if(!ir(22)&&!Qe)return}else{if(!Qe)return;Ms=ln()}let rc=We()===59,_c=Ov(59,!1);if(_c&&!Qe&&op(_c))return;let gl=_c;for(;gl?.kind===196;)gl=gl.type;let v_=gl&&CU(gl);if(!Qe&&We()!==39&&(v_||We()!==19))return;let uf=We(),Of=ja(39),vC=uf===39||uf===19?Ou(En(jn,U5),$t):Ci();if(!$t&&rc&&We()!==59)return;let Eg=I.createArrowFunction(jn,jo,Ms,_c,Of,vC);return Nn(Ar(Eg,vi),Ki)}function Ou(Qe,$t){if(We()===19)return uS(Qe?2:0);if(We()!==27&&We()!==100&&We()!==86&&gD()&&!_I())return uS(16|(Qe?2:0));let vi=Ei;Ei=!1;let Ki=Qe?Ve(()=>Bg($t)):Tt(()=>Bg($t));return Ei=vi,Ki}function jg(Qe,$t,vi){let Ki=vl(58);if(!Ki)return Qe;let jn;return Ar(I.createConditionalExpression(Qe,Ki,Pi(a,()=>Bg(!1)),jn=ja(59),jT(jn)?Bg(vi):Hl(80,!1,j._0_expected,Ef(59))),$t)}function ek(Qe){let $t=pe(),vi=Wp();return Kc(Qe,vi,$t)}function ww(Qe){return Qe===103||Qe===165}function Kc(Qe,$t,vi){for(;;){In();let Ki=CG(We());if(!(We()===43?Ki>=Qe:Ki>Qe)||We()===103&&Mt())break;if(We()===130||We()===152){if(n.hasPrecedingLineBreak())break;{let $r=We();Ot(),$t=$r===152?yh($t,Tg()):dC($t,Tg())}}else $t=hT($t,Su(),ek(Ki),vi)}return $t}function oa(){return Mt()&&We()===103?!1:CG(We())>0}function yh(Qe,$t){return Ar(I.createSatisfiesExpression(Qe,$t),Qe.pos)}function hT(Qe,$t,vi,Ki){return Ar(I.createBinaryExpression(Qe,$t,vi),Ki)}function dC(Qe,$t){return Ar(I.createAsExpression(Qe,$t),Qe.pos)}function dD(){let Qe=pe();return Ar(I.createPrefixUnaryExpression(We(),At(Tw)),Qe)}function Uy(){let Qe=pe();return Ar(I.createDeleteExpression(At(Tw)),Qe)}function Y2(){let Qe=pe();return Ar(I.createTypeOfExpression(At(Tw)),Qe)}function fC(){let Qe=pe();return Ar(I.createVoidExpression(At(Tw)),Qe)}function Nl(){return We()===135?Bt()?!0:Ti(kF):!1}function ra(){let Qe=pe();return Ar(I.createAwaitExpression(At(Tw)),Qe)}function Wp(){if(W_()){let vi=pe(),Ki=Ew();return We()===43?Kc(CG(We()),Ki,vi):Ki}let Qe=We(),$t=Tw();if(We()===43){let vi=fd(rt,$t.pos),{end:Ki}=$t;$t.kind===216?Ce(vi,Ki,j.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(Se.assert(Aj(Qe)),Ce(vi,Ki,j.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,Ef(Qe)))}return $t}function Tw(){switch(We()){case 40:case 41:case 55:case 54:return dD();case 91:return Uy();case 114:return Y2();case 116:return fC();case 30:return mt===1?a2(!0,void 0,void 0,!0):c2();case 135:if(Nl())return ra();default:return Ew()}}function W_(){switch(We()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(mt!==1)return!1;default:return!0}}function Ew(){if(We()===46||We()===47){let $t=pe();return Ar(I.createPrefixUnaryExpression(We(),At(mI)),$t)}else if(mt===1&&We()===30&&Ti(wo))return a2(!0);let Qe=mI();if(Se.assert(MS(Qe)),(We()===46||We()===47)&&!n.hasPrecedingLineBreak()){let $t=We();return Ot(),Ar(I.createPostfixUnaryExpression(Qe,$t),Qe.pos)}return Qe}function mI(){let Qe=pe(),$t;return We()===102?Ti(Li)?(qe|=4194304,$t=Su()):Ti(Yn)?(Ot(),Ot(),$t=Ar(I.createMetaProperty(102,kn()),Qe),qe|=8388608):$t=LN():$t=We()===108?yp():LN(),kb(Qe,$t)}function LN(){let Qe=pe(),$t=_D();return lS(Qe,$t,!0)}function yp(){let Qe=pe(),$t=Su();if(We()===30){let vi=pe(),Ki=wr(fD);Ki!==void 0&&(Ce(vi,pe(),j.super_may_not_use_type_arguments),Jy()||($t=I.createExpressionWithTypeArguments($t,Ki)))}return We()===21||We()===25||We()===23?$t:(ja(25,j.super_must_be_followed_by_an_argument_list_or_member_access),Ar(ne($t,an(!0,!0,!0)),Qe))}function a2(Qe,$t,vi,Ki=!1){let jn=pe(),$r=Cu(Qe),jo;if($r.kind===286){let Ms=sa($r),rc,_c=Ms[Ms.length-1];if(_c?.kind===284&&!Cg(_c.openingElement.tagName,_c.closingElement.tagName)&&Cg($r.tagName,_c.closingElement.tagName)){let gl=_c.children.end,v_=Ar(I.createJsxElement(_c.openingElement,_c.children,Ar(I.createJsxClosingElement(Ar(U(""),gl,gl)),gl,gl)),_c.openingElement.pos,gl);Ms=xu([...Ms.slice(0,Ms.length-1),v_],Ms.pos,gl),rc=_c.closingElement}else rc=ys($r,Qe),Cg($r.tagName,rc.tagName)||(vi&&Y0(vi)&&Cg(rc.tagName,vi.tagName)?ye($r.tagName,j.JSX_element_0_has_no_corresponding_closing_tag,nse(rt,$r.tagName)):ye(rc.tagName,j.Expected_corresponding_JSX_closing_tag_for_0,nse(rt,$r.tagName)));jo=Ar(I.createJsxElement($r,Ms,rc),jn)}else $r.kind===289?jo=Ar(I.createJsxFragment($r,sa($r),_C(Qe)),jn):(Se.assert($r.kind===285),jo=$r);if(!Ki&&Qe&&We()===30){let Ms=typeof $t>"u"?jo.pos:$t,rc=wr(()=>a2(!0,Ms));if(rc){let _c=Hl(28,!1);return $3(_c,rc.pos,0),Ce(fd(rt,Ms),rc.end,j.JSX_expressions_must_have_one_parent_element),Ar(I.createBinaryExpression(jo,_c,rc),jn)}}return jo}function Q4(){let Qe=pe(),$t=I.createJsxText(n.getTokenValue(),ni===13);return ni=n.scanJsxToken(),Ar($t,Qe)}function Dx(Qe,$t){switch($t){case 1:if(cM(Qe))ye(Qe,j.JSX_fragment_has_no_corresponding_closing_tag);else{let vi=Qe.tagName,Ki=Math.min(fd(rt,vi.pos),vi.end);Ce(Ki,vi.end,j.JSX_element_0_has_no_corresponding_closing_tag,nse(rt,Qe.tagName))}return;case 31:case 7:return;case 12:case 13:return Q4();case 19:return rm(!1);case 30:return a2(!1,void 0,Qe);default:return Se.assertNever($t)}}function sa(Qe){let $t=[],vi=pe(),Ki=Bi;for(Bi|=16384;;){let jn=Dx(Qe,ni=n.reScanJsxToken());if(!jn||($t.push(jn),Y0(Qe)&&jn?.kind===284&&!Cg(jn.openingElement.tagName,jn.closingElement.tagName)&&Cg(Qe.tagName,jn.closingElement.tagName)))break}return Bi=Ki,xu($t,vi)}function ry(){let Qe=pe();return Ar(I.createJsxAttributes(il(13,ro)),Qe)}function Cu(Qe){let $t=pe();if(ir(30),We()===32)return Pn(),Ar(I.createJsxOpeningFragment(),$t);let vi=Q2(),Ki=mr&524288?void 0:u2(),jn=ry(),$r;return We()===32?(Pn(),$r=I.createJsxOpeningElement(vi,Ki,jn)):(ir(44),ir(32,void 0,!1)&&(Qe?Ot():Pn()),$r=I.createJsxSelfClosingElement(vi,Ki,jn)),Ar($r,$t)}function Q2(){let Qe=pe(),$t=aa();if(vx($t))return $t;let vi=$t;for(;cc(25);)vi=Ar(ne(vi,an(!0,!1,!1)),Qe);return vi}function aa(){let Qe=pe();cn();let $t=We()===110,vi=ke();return cc(59)?(cn(),Ar(I.createJsxNamespacedName(vi,ke()),Qe)):$t?Ar(I.createToken(110),Qe):vi}function rm(Qe){let $t=pe();if(!ir(19))return;let vi,Ki;return We()!==20&&(Qe||(vi=vl(26)),Ki=Hh()),Qe?ir(20):ir(20,void 0,!1)&&Pn(),Ar(I.createJsxExpression(vi,Ki),$t)}function ro(){if(We()===19)return F0();let Qe=pe();return Ar(I.createJsxAttribute(Z4(),Z2()),Qe)}function Z2(){if(We()===64){if(Wi()===11)return un();if(We()===19)return rm(!0);if(We()===30)return a2(!0);ui(j.or_JSX_element_expected)}}function Z4(){let Qe=pe();cn();let $t=ke();return cc(59)?(cn(),Ar(I.createJsxNamespacedName($t,ke()),Qe)):$t}function F0(){let Qe=pe();ir(19),ir(26);let $t=Hh();return ir(20),Ar(I.createJsxSpreadAttribute($t),Qe)}function ys(Qe,$t){let vi=pe();ir(31);let Ki=Q2();return ir(32,void 0,!1)&&($t||!Cg(Qe.tagName,Ki)?Ot():Pn()),Ar(I.createJsxClosingElement(Ki),vi)}function _C(Qe){let $t=pe();return ir(31),ir(32,j.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(Qe?Ot():Pn()),Ar(I.createJsxJsxClosingFragment(),$t)}function c2(){Se.assert(mt!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");let Qe=pe();ir(30);let $t=Tg();ir(32);let vi=Tw();return Ar(I.createTypeAssertion($t,vi),Qe)}function M0(){return Ot(),FS(We())||We()===23||Jy()}function Uh(){return We()===29&&Ti(M0)}function Nh(Qe){if(Qe.flags&64)return!0;if(P4(Qe)){let $t=Qe.expression;for(;P4($t)&&!($t.flags&64);)$t=$t.expression;if($t.flags&64){for(;P4(Qe);)Qe.flags|=64,Qe=Qe.expression;return!0}}return!1}function Ix(Qe,$t,vi){let Ki=an(!0,!0,!0),jn=vi||Nh($t),$r=jn?se($t,vi,Ki):ne($t,Ki);if(jn&&wl($r.name)&&ye($r.name,j.An_optional_chain_cannot_contain_private_identifiers),$C($t)&&$t.typeArguments){let jo=$t.typeArguments.pos-1,Ms=fd(rt,$t.typeArguments.end)+1;Ce(jo,Ms,j.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return Ar($r,Qe)}function cS(Qe,$t,vi){let Ki;if(We()===24)Ki=Hl(80,!0,j.An_element_access_expression_should_take_an_argument);else{let $r=lt(Hh);Xb($r)&&($r.text=Lf($r.text)),Ki=$r}ir(24);let jn=vi||Nh($t)?ae($t,vi,Ki):_e($t,Ki);return Ar(jn,Qe)}function lS(Qe,$t,vi){for(;;){let Ki,jn=!1;if(vi&&Uh()?(Ki=ja(29),jn=FS(We())):jn=cc(25),jn){$t=Ix(Qe,$t,Ki);continue}if((Ki||!Ie())&&cc(23)){$t=cS(Qe,$t,Ki);continue}if(Jy()){$t=!Ki&&$t.kind===233?Bk(Qe,$t.expression,Ki,$t.typeArguments):Bk(Qe,$t,Ki,void 0);continue}if(!Ki){if(We()===54&&!n.hasPrecedingLineBreak()){Ot(),$t=Ar(I.createNonNullExpression($t),Qe);continue}let $r=wr(fD);if($r){$t=Ar(I.createExpressionWithTypeArguments($t,$r),Qe);continue}}return $t}}function Jy(){return We()===15||We()===16}function Bk(Qe,$t,vi,Ki){let jn=I.createTaggedTemplateExpression($t,Ki,We()===15?(Si(!0),un()):Be(!0));return(vi||$t.flags&64)&&(jn.flags|=64),jn.questionDotToken=vi,Ar(jn,Qe)}function kb(Qe,$t){for(;;){$t=lS(Qe,$t,!0);let vi,Ki=vl(29);if(Ki&&(vi=wr(fD),Jy())){$t=Bk(Qe,$t,Ki,vi);continue}if(vi||We()===21){!Ki&&$t.kind===233&&(vi=$t.typeArguments,$t=$t.expression);let jn=gT(),$r=Ki||Nh($t)?Ee($t,Ki,vi,jn):le($t,vi,jn);$t=Ar($r,Qe);continue}if(Ki){let jn=Hl(80,!1,j.Identifier_expected);$t=Ar(se($t,Ki,jn),Qe)}break}return $t}function gT(){ir(21);let Qe=Ap(11,eE);return ir(22),Qe}function fD(){if(mr&524288||Ri()!==30)return;Ot();let Qe=Ap(20,Tg);if(In()===32)return Ot(),Qe&&hI()?Qe:void 0}function hI(){switch(We()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return n.hasPrecedingLineBreak()||oa()||!zm()}function _D(){switch(We()){case 15:n.getTokenFlags()&26656&&Si(!1);case 9:case 10:case 11:return un();case 110:case 108:case 106:case 112:case 97:return Su();case 21:return wb();case 23:return O1();case 19:return Tb();case 134:if(!Ti(zf))break;return jk();case 60:return Qc();case 86:return Sl();case 100:return jk();case 105:return Ah();case 44:case 69:if(dn()===14)return un();break;case 16:return Be(!1);case 81:return Er()}return Ci(j.Expression_expected)}function wb(){let Qe=pe(),$t=at();ir(21);let vi=lt(Hh);return ir(22),Nn(Ar(be(vi),Qe),$t)}function e6(){let Qe=pe();ir(26);let $t=Bg(!0);return Ar(I.createSpreadElement($t),Qe)}function pD(){return We()===26?e6():We()===28?Ar(I.createOmittedExpression(),pe()):Bg(!0)}function eE(){return Pi(a,pD)}function O1(){let Qe=pe(),$t=n.getTokenStart(),vi=ir(23),Ki=n.hasPrecedingLineBreak(),jn=Ap(15,pD);return $l(23,24,vi,$t),Ar(re(jn,Ki),Qe)}function mD(){let Qe=pe(),$t=at();if(vl(26)){let gl=Bg(!0);return Nn(Ar(I.createSpreadAssignment(gl),Qe),$t)}let vi=rr(!0);if(is(139))return ge(Qe,$t,vi,177,0);if(is(153))return ge(Qe,$t,vi,178,0);let Ki=vl(42),jn=Vr(),$r=hr(),jo=vl(58),Ms=vl(54);if(Ki||We()===21||We()===30)return Jh(Qe,$t,vi,Ki,$r,jo,Ms);let rc;if(jn&&We()!==59){let gl=vl(64),v_=gl?lt(()=>Bg(!0)):void 0;rc=I.createShorthandPropertyAssignment($r,v_),rc.equalsToken=gl}else{ir(59);let gl=lt(()=>Bg(!0));rc=I.createPropertyAssignment($r,gl)}return rc.modifiers=vi,rc.questionToken=jo,rc.exclamationToken=Ms,Nn(Ar(rc,Qe),$t)}function Tb(){let Qe=pe(),$t=n.getTokenStart(),vi=ir(19),Ki=n.hasPrecedingLineBreak(),jn=Ap(12,mD,!0);return $l(19,20,vi,$t),Ar(X(jn,Ki),Qe)}function jk(){let Qe=Ie();Mn(!1);let $t=pe(),vi=at(),Ki=rr(!1);ir(100);let jn=vl(42),$r=jn?1:0,jo=En(Ki,U5)?2:0,Ms=$r&&jo?dt(tk):$r?Pe(tk):jo?Ve(tk):tk(),rc=Py(),_c=nr($r|jo),gl=Ov(59,!1),v_=uS($r|jo);Mn(Qe);let uf=I.createFunctionExpression(Ki,jn,Ms,rc,_c,gl,v_);return Nn(Ar(uf,$t),vi)}function tk(){return Nr()?bt():void 0}function Ah(){let Qe=pe();if(ir(105),cc(25)){let $r=kn();return Ar(I.createMetaProperty(105,$r),Qe)}let $t=pe(),vi=lS($t,_D(),!1),Ki;vi.kind===233&&(Ki=vi.typeArguments,vi=vi.expression),We()===29&&ui(j.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,nse(rt,vi));let jn=We()===21?gT():void 0;return Ar(xe(vi,Ki,jn),Qe)}function t1(Qe,$t){let vi=pe(),Ki=at(),jn=n.getTokenStart(),$r=ir(19,$t);if($r||Qe){let jo=n.hasPrecedingLineBreak(),Ms=il(1,g0);$l(19,20,$r,jn);let rc=Nn(Ar(Le(Ms,jo),vi),Ki);return We()===64&&(ui(j.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses),Ot()),rc}else{let jo=ln();return Nn(Ar(Le(jo,void 0),vi),Ki)}}function uS(Qe,$t){let vi=Gt();$o(!!(Qe&1));let Ki=Bt();Qs(!!(Qe&2));let jn=Ei;Ei=!1;let $r=Ie();$r&&Mn(!1);let jo=t1(!!(Qe&16),$t);return $r&&Mn(!0),Ei=jn,$o(vi),Qs(Ki),jo}function Vm(){let Qe=pe(),$t=at();return ir(27),Nn(Ar(I.createEmptyStatement(),Qe),$t)}function __(){let Qe=pe(),$t=at();ir(101);let vi=n.getTokenStart(),Ki=ir(21),jn=lt(Hh);$l(21,22,Ki,vi);let $r=g0(),jo=cc(93)?g0():void 0;return Nn(Ar(Ae(jn,$r,jo),Qe),$t)}function yT(){let Qe=pe(),$t=at();ir(92);let vi=g0();ir(117);let Ki=n.getTokenStart(),jn=ir(21),$r=lt(Hh);return $l(21,22,jn,Ki),cc(27),Nn(Ar(I.createDoStatement(vi,$r),Qe),$t)}function i0(){let Qe=pe(),$t=at();ir(117);let vi=n.getTokenStart(),Ki=ir(21),jn=lt(Hh);$l(21,22,Ki,vi);let $r=g0();return Nn(Ar(Ge(jn,$r),Qe),$t)}function dS(){let Qe=pe(),$t=at();ir(99);let vi=vl(135);ir(21);let Ki;We()!==27&&(We()===115||We()===121||We()===87||We()===160&&Ti(gP)||We()===135&&Ti(yD)?Ki=iE(!0):Ki=Xi(Hh));let jn;if(vi?ir(165):cc(165)){let $r=lt(()=>Bg(!0));ir(22),jn=Oe(vi,Ki,$r,g0())}else if(cc(103)){let $r=lt(Hh);ir(22),jn=I.createForInStatement(Ki,$r,g0())}else{ir(27);let $r=We()!==27&&We()!==22?lt(Hh):void 0;ir(27);let jo=We()!==22?lt(Hh):void 0;ir(22),jn=he(Ki,$r,jo,g0())}return Nn(Ar(jn,Qe),$t)}function gI(Qe){let $t=pe(),vi=at();ir(Qe===252?83:88);let Ki=gr()?void 0:Ci();Vc();let jn=Qe===252?I.createBreakStatement(Ki):I.createContinueStatement(Ki);return Nn(Ar(jn,$t),vi)}function Eb(){let Qe=pe(),$t=at();ir(107);let vi=gr()?void 0:lt(Hh);return Vc(),Nn(Ar(I.createReturnStatement(vi),Qe),$t)}function hD(){let Qe=pe(),$t=at();ir(118);let vi=n.getTokenStart(),Ki=ir(21),jn=lt(Hh);$l(21,22,Ki,vi);let $r=qi(67108864,g0);return Nn(Ar(I.createWithStatement(jn,$r),Qe),$t)}function pC(){let Qe=pe(),$t=at();ir(84);let vi=lt(Hh);ir(59);let Ki=il(3,g0);return Nn(Ar(I.createCaseClause(vi,Ki),Qe),$t)}function Nm(){let Qe=pe();ir(90),ir(59);let $t=il(3,g0);return Ar(I.createDefaultClause($t),Qe)}function oy(){return We()===84?pC():Nm()}function th(){let Qe=pe();ir(19);let $t=il(2,oy);return ir(20),Ar(I.createCaseBlock($t),Qe)}function qy(){let Qe=pe(),$t=at();ir(109),ir(21);let vi=lt(Hh);ir(22);let Ki=th();return Nn(Ar(I.createSwitchStatement(vi,Ki),Qe),$t)}function F1(){let Qe=pe(),$t=at();ir(111);let vi=n.hasPrecedingLineBreak()?void 0:lt(Hh);return vi===void 0&&(wi++,vi=Ar(U(""),pe())),Wl()||pa(vi),Nn(Ar(I.createThrowStatement(vi),Qe),$t)}function yI(){let Qe=pe(),$t=at();ir(113);let vi=t1(!1),Ki=We()===85?vT():void 0,jn;return(!Ki||We()===98)&&(ir(98,j.catch_or_finally_expected),jn=t1(!1)),Nn(Ar(I.createTryStatement(vi,Ki,jn),Qe),$t)}function vT(){let Qe=pe();ir(85);let $t;cc(21)?($t=hC(),ir(22)):$t=void 0;let vi=t1(!1);return Ar(I.createCatchClause($t,vi),Qe)}function $y(){let Qe=pe(),$t=at();return ir(89),Vc(),Nn(Ar(I.createDebuggerStatement(),Qe),$t)}function l2(){let Qe=pe(),$t=at(),vi,Ki=We()===21,jn=lt(Hh);return Ai(jn)&&cc(59)?vi=I.createLabeledStatement(jn,g0()):(Wl()||pa(jn),vi=we(jn),Ki&&($t=!1)),Nn(Ar(vi,Qe),$t)}function vI(){return Ot(),FS(We())&&!n.hasPrecedingLineBreak()}function hP(){return Ot(),We()===86&&!n.hasPrecedingLineBreak()}function zf(){return Ot(),We()===100&&!n.hasPrecedingLineBreak()}function kF(){return Ot(),(FS(We())||We()===9||We()===10||We()===11)&&!n.hasPrecedingLineBreak()}function bI(){for(;;)switch(We()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return R1();case 135:return mv();case 120:case 156:return mT();case 144:case 145:return vD();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:let Qe=We();if(Ot(),n.hasPrecedingLineBreak())return!1;if(Qe===138&&We()===156)return!0;continue;case 162:return Ot(),We()===19||We()===80||We()===95;case 102:return Ot(),We()===11||We()===42||We()===19||FS(We());case 95:let $t=Ot();if($t===156&&($t=Ti(Ot)),$t===64||$t===42||$t===19||$t===90||$t===130||$t===60)return!0;continue;case 126:Ot();continue;default:return!1}}function SI(){return Ti(bI)}function gD(){switch(We()){case 60:case 27:case 19:case 115:case 121:case 160:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:return!0;case 102:return SI()||Ti(Mr);case 87:case 95:return SI();case 134:case 138:case 120:case 144:case 145:case 156:case 162:return!0;case 129:case 125:case 123:case 124:case 126:case 148:return SI()||!Ti(vI);default:return zm()}}function Gy(){return Ot(),Nr()||We()===19||We()===23}function ON(){return Ti(Gy)}function gP(){return M1(!0)}function M1(Qe){return Ot(),Qe&&We()===165?!1:(Nr()||We()===19)&&!n.hasPrecedingLineBreak()}function R1(){return Ti(M1)}function yD(Qe){return Ot()===160?M1(Qe):!1}function mv(){return Ti(yD)}function g0(){switch(We()){case 27:return Vm();case 19:return t1(!1);case 115:return ih(pe(),at(),void 0);case 121:if(ON())return ih(pe(),at(),void 0);break;case 135:if(mv())return ih(pe(),at(),void 0);break;case 160:if(R1())return ih(pe(),at(),void 0);break;case 100:return JS(pe(),at(),void 0);case 86:return ml(pe(),at(),void 0);case 101:return __();case 92:return yT();case 117:return i0();case 99:return dS();case 88:return gI(251);case 83:return gI(252);case 107:return Eb();case 118:return hD();case 109:return qy();case 111:return F1();case 113:case 85:case 98:return yI();case 89:return $y();case 60:return tE();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 162:if(SI())return tE();break}return l2()}function FN(Qe){return Qe.kind===138}function tE(){let Qe=pe(),$t=at(),vi=rr(!0);if(En(vi,FN)){let jn=r_(Qe);if(jn)return jn;for(let $r of vi)$r.flags|=33554432;return qi(33554432,()=>ma(Qe,$t,vi))}else return ma(Qe,$t,vi)}function r_(Qe){return qi(33554432,()=>{let $t=hp(Bi,Qe);if($t)return Wf($t)})}function ma(Qe,$t,vi){switch(We()){case 115:case 121:case 87:case 160:case 135:return ih(Qe,$t,vi);case 100:return JS(Qe,$t,vi);case 86:return ml(Qe,$t,vi);case 120:return hl(Qe,$t,vi);case 156:return _S(Qe,$t,vi);case 94:return xI(Qe,$t,vi);case 162:case 144:case 145:return GM(Qe,$t,vi);case 102:return TF(Qe,$t,vi);case 95:switch(Ot(),We()){case 90:case 64:return Yi(Qe,$t,vi);case 130:return KM(Qe,$t,vi);default:return di(Qe,$t,vi)}default:if(vi){let Ki=Hl(282,!0,j.Declaration_expected);return qG(Ki,Qe),Ki.modifiers=vi,Ki}return}}function Db(){return Ot()===11}function R0(){return Ot(),We()===161||We()===64}function vD(){return Ot(),!n.hasPrecedingLineBreak()&&(Vr()||We()===11)}function Fv(Qe,$t){if(We()!==19){if(Qe&4){Hr();return}if(gr()){Vc();return}}return uS(Qe,$t)}function ik(){let Qe=pe();if(We()===28)return Ar(I.createOmittedExpression(),Qe);let $t=vl(26),vi=Hm(),Ki=pv();return Ar(I.createBindingElement($t,void 0,vi,Ki),Qe)}function mC(){let Qe=pe(),$t=vl(26),vi=Nr(),Ki=hr(),jn;vi&&We()!==59?(jn=Ki,Ki=void 0):(ir(59),jn=Hm());let $r=pv();return Ar(I.createBindingElement($t,Ki,jn,$r),Qe)}function yO(){let Qe=pe();ir(19);let $t=lt(()=>Ap(9,mC));return ir(20),Ar(I.createObjectBindingPattern($t),Qe)}function Vf(){let Qe=pe();ir(23);let $t=lt(()=>Ap(10,ik));return ir(24),Ar(I.createArrayBindingPattern($t),Qe)}function Bs(){return We()===19||We()===23||We()===81||Nr()}function Hm(Qe){return We()===23?Vf():We()===19?yO():bt(Qe)}function B0(){return hC(!0)}function hC(Qe){let $t=pe(),vi=at(),Ki=Hm(j.Private_identifiers_are_not_allowed_in_variable_declarations),jn;Qe&&Ki.kind===80&&We()===54&&!n.hasPrecedingLineBreak()&&(jn=Su());let $r=Oi(),jo=ww(We())?void 0:pv(),Ms=Re(Ki,jn,$r,jo);return Nn(Ar(Ms,$t),vi)}function iE(Qe){let $t=pe(),vi=0;switch(We()){case 115:break;case 121:vi|=1;break;case 87:vi|=2;break;case 160:vi|=4;break;case 135:Se.assert(mv()),vi|=6,Ot();break;default:Se.fail()}Ot();let Ki;if(We()===165&&Ti(yP))Ki=ln();else{let jn=Mt();vo(Qe),Ki=Ap(8,Qe?hC:B0),vo(jn)}return Ar($e(Ki,vi),$t)}function yP(){return _i()&&Ot()===22}function ih(Qe,$t,vi){let Ki=iE(!1);Vc();let jn=fe(vi,Ki);return Nn(Ar(jn,Qe),$t)}function JS(Qe,$t,vi){let Ki=Bt(),jn=tI(vi);ir(100);let $r=vl(42),jo=jn&2048?tk():bt(),Ms=$r?1:0,rc=jn&1024?2:0,_c=Py();jn&32&&Qs(!0);let gl=nr(Ms|rc),v_=Ov(59,!1),uf=Fv(Ms|rc,j.or_expected);Qs(Ki);let Of=I.createFunctionDeclaration(vi,$r,jo,_c,gl,v_,uf);return Nn(Ar(Of,Qe),$t)}function i1(){if(We()===137)return ir(137);if(We()===11&&Ti(Ot)===21)return wr(()=>{let Qe=un();return Qe.text==="constructor"?Qe:void 0})}function n1(Qe,$t,vi){return wr(()=>{if(i1()){let Ki=Py(),jn=nr(0),$r=Ov(59,!1),jo=Fv(0,j.or_expected),Ms=I.createConstructorDeclaration(vi,jn,jo);return Ms.typeParameters=Ki,Ms.type=$r,Nn(Ar(Ms,Qe),$t)}})}function Jh(Qe,$t,vi,Ki,jn,$r,jo,Ms){let rc=Ki?1:0,_c=En(vi,U5)?2:0,gl=Py(),v_=nr(rc|_c),uf=Ov(59,!1),Of=Fv(rc|_c,Ms),vC=I.createMethodDeclaration(vi,Ki,jn,$r,gl,v_,uf,Of);return vC.exclamationToken=jo,Nn(Ar(vC,Qe),$t)}function r1(Qe,$t,vi,Ki,jn){let $r=!jn&&!n.hasPrecedingLineBreak()?vl(54):void 0,jo=Oi(),Ms=Pi(90112,pv);Fa(Ki,jo,Ms);let rc=I.createPropertyDeclaration(vi,Ki,jn||$r,jo,Ms);return Nn(Ar(rc,Qe),$t)}function fS(Qe,$t,vi){let Ki=vl(42),jn=hr(),$r=vl(58);return Ki||We()===21||We()===30?Jh(Qe,$t,vi,Ki,jn,$r,void 0,j.or_expected):r1(Qe,$t,vi,jn,$r)}function ge(Qe,$t,vi,Ki,jn){let $r=hr(),jo=Py(),Ms=nr(0),rc=Ov(59,!1),_c=Fv(jn),gl=Ki===177?I.createGetAccessorDeclaration(vi,$r,Ms,rc,_c):I.createSetAccessorDeclaration(vi,$r,Ms,_c);return gl.typeParameters=jo,zc(gl)&&(gl.type=rc),Nn(Ar(gl,Qe),$t)}function Vt(){let Qe;if(We()===60)return!0;for(;z6(We());){if(Qe=We(),Om(Qe))return!0;Ot()}if(We()===42||(Qt()&&(Qe=We(),Ot()),We()===23))return!0;if(Qe!==void 0){if(!Gv(Qe)||Qe===153||Qe===139)return!0;switch(We()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return gr()}}return!1}function Sn(Qe,$t,vi){ja(126);let Ki=Wr(),jn=Nn(Ar(I.createClassStaticBlockDeclaration(Ki),Qe),$t);return jn.modifiers=vi,jn}function Wr(){let Qe=Gt(),$t=Bt();$o(!1),Qs(!0);let vi=t1(!1);return $o(Qe),Qs($t),vi}function de(){if(Bt()&&We()===135){let Qe=pe(),$t=Ci(j.Expression_expected);Ot();let vi=lS(Qe,$t,!0);return kb(Qe,vi)}return mI()}function Et(){let Qe=pe();if(!cc(60))return;let $t=St(de);return Ar(I.createDecorator($t),Qe)}function Gi(Qe,$t,vi){let Ki=pe(),jn=We();if(We()===87&&$t){if(!wr(zs))return}else{if(vi&&We()===126&&Ti(gC))return;if(Qe&&We()===126)return;if(!mf())return}return Ar(K(jn),Ki)}function rr(Qe,$t,vi){let Ki=pe(),jn,$r,jo,Ms=!1,rc=!1,_c=!1;if(Qe&&We()===60)for(;$r=Et();)jn=ar(jn,$r);for(;jo=Gi(Ms,$t,vi);)jo.kind===126&&(Ms=!0),jn=ar(jn,jo),rc=!0;if(rc&&Qe&&We()===60)for(;$r=Et();)jn=ar(jn,$r),_c=!0;if(_c)for(;jo=Gi(Ms,$t,vi);)jo.kind===126&&(Ms=!0),jn=ar(jn,jo);return jn&&xu(jn,Ki)}function as(){let Qe;if(We()===134){let $t=pe();Ot();let vi=Ar(K(134),$t);Qe=xu([vi],$t)}return Qe}function Hc(){let Qe=pe(),$t=at();if(We()===27)return Ot(),Nn(Ar(I.createSemicolonClassElement(),Qe),$t);let vi=rr(!0,!0,!0);if(We()===126&&Ti(gC))return Sn(Qe,$t,vi);if(is(139))return ge(Qe,$t,vi,177,0);if(is(153))return ge(Qe,$t,vi,178,0);if(We()===137||We()===11){let Ki=n1(Qe,$t,vi);if(Ki)return Ki}if(fs())return Os(Qe,$t,vi);if(FS(We())||We()===11||We()===9||We()===10||We()===42||We()===23)if(En(vi,FN)){for(let jn of vi)jn.flags|=33554432;return qi(33554432,()=>fS(Qe,$t,vi))}else return fS(Qe,$t,vi);if(vi){let Ki=Hl(80,!0,j.Declaration_expected);return r1(Qe,$t,vi,Ki,void 0)}return Se.fail("Should not have attempted to parse class member declaration.")}function Qc(){let Qe=pe(),$t=at(),vi=rr(!0);if(We()===86)return bm(Qe,$t,vi,231);let Ki=Hl(282,!0,j.Expression_expected);return qG(Ki,Qe),Ki.modifiers=vi,Ki}function Sl(){return bm(pe(),at(),void 0,231)}function ml(Qe,$t,vi){return bm(Qe,$t,vi,263)}function bm(Qe,$t,vi,Ki){let jn=Bt();ir(86);let $r=Um(),jo=Py();En(vi,H5)&&Qs(!0);let Ms=bT(),rc;ir(19)?(rc=bD(),ir(20)):rc=ln(),Qs(jn);let _c=Ki===263?I.createClassDeclaration(vi,$r,jo,Ms,rc):I.createClassExpression(vi,$r,jo,Ms,rc);return Nn(Ar(_c,Qe),$t)}function Um(){return Nr()&&!B1()?Rt(Nr()):void 0}function B1(){return We()===119&&Ti(er)}function bT(){if(ST())return il(22,Ib)}function Ib(){let Qe=pe(),$t=We();Se.assert($t===96||$t===119),Ot();let vi=Ap(7,Dw);return Ar(I.createHeritageClause($t,vi),Qe)}function Dw(){let Qe=pe(),$t=mI();if($t.kind===233)return $t;let vi=u2();return Ar(I.createExpressionWithTypeArguments($t,vi),Qe)}function u2(){return We()===30?Tr(20,Tg,30,32):void 0}function ST(){return We()===96||We()===119}function bD(){return il(5,Hc)}function hl(Qe,$t,vi){ir(120);let Ki=Ci(),jn=Py(),$r=bT(),jo=bo(),Ms=I.createInterfaceDeclaration(vi,Ki,jn,$r,jo);return Nn(Ar(Ms,Qe),$t)}function _S(Qe,$t,vi){ir(156),n.hasPrecedingLineBreak()&&ui(j.Line_break_not_permitted_here);let Ki=Ci(),jn=Py();ir(64);let $r=We()===141&&wr(t0)||Tg();Vc();let jo=I.createTypeAliasDeclaration(vi,Ki,jn,$r);return Nn(Ar(jo,Qe),$t)}function cs(){let Qe=pe(),$t=at(),vi=hr(),Ki=lt(pv);return Nn(Ar(I.createEnumMember(vi,Ki),Qe),$t)}function xI(Qe,$t,vi){ir(94);let Ki=Ci(),jn;ir(19)?(jn=Wt(()=>Ap(6,cs)),ir(20)):jn=ln();let $r=I.createEnumDeclaration(vi,Ki,jn);return Nn(Ar($r,Qe),$t)}function EL(){let Qe=pe(),$t;return ir(19)?($t=il(1,g0),ir(20)):$t=ln(),Ar(I.createModuleBlock($t),Qe)}function SD(Qe,$t,vi,Ki){let jn=Ki&32,$r=Ki&8?kn():Ci(),jo=cc(25)?SD(pe(),!1,void 0,8|jn):EL(),Ms=I.createModuleDeclaration(vi,$r,jo,Ki);return Nn(Ar(Ms,Qe),$t)}function wF(Qe,$t,vi){let Ki=0,jn;We()===162?(jn=Ci(),Ki|=2048):(jn=un(),jn.text=Lf(jn.text));let $r;We()===19?$r=EL():Vc();let jo=I.createModuleDeclaration(vi,jn,$r,Ki);return Nn(Ar(jo,Qe),$t)}function GM(Qe,$t,vi){let Ki=0;if(We()===162)return wF(Qe,$t,vi);if(cc(145))Ki|=32;else if(ir(144),We()===11)return wF(Qe,$t,vi);return SD(Qe,$t,vi,Ki)}function VJ(){return We()===149&&Ti(zl)}function zl(){return Ot()===21}function gC(){return Ot()===19}function vs(){return Ot()===44}function KM(Qe,$t,vi){ir(130),ir(145);let Ki=Ci();Vc();let jn=I.createNamespaceExportDeclaration(Ki);return jn.modifiers=vi,Nn(Ar(jn,Qe),$t)}function TF(Qe,$t,vi){ir(102);let Ki=n.getTokenFullStart(),jn;Vr()&&(jn=Ci());let $r=!1;if(jn?.escapedText==="type"&&(We()!==161||Vr()&&Ti(R0))&&(Vr()||RN())&&($r=!0,jn=Vr()?Ci():void 0),jn&&!yC())return Iw(Qe,$t,vi,jn,$r);let jo=vP(jn,Ki,$r),Ms=BN(),rc=MN();Vc();let _c=I.createImportDeclaration(vi,jo,Ms,rc);return Nn(Ar(_c,Qe),$t)}function vP(Qe,$t,vi,Ki=!1){let jn;return(Qe||We()===42||We()===19)&&(jn=EF(Qe,$t,vi,Ki),ir(161)),jn}function MN(){let Qe=We();if((Qe===118||Qe===132)&&!n.hasPrecedingLineBreak())return t6(Qe)}function kz(){let Qe=pe(),$t=FS(We())?kn():Tc(11);ir(59);let vi=Bg(!0);return Ar(I.createImportAttribute($t,vi),Qe)}function t6(Qe,$t){let vi=pe();$t||ir(Qe);let Ki=n.getTokenStart();if(ir(19)){let jn=n.hasPrecedingLineBreak(),$r=Ap(24,kz,!0);if(!ir(20)){let jo=Y_(ut);jo&&jo.code===j._0_expected.code&&Pd(jo,Vj(Ke,rt,Ki,1,j.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return Ar(I.createImportAttributes($r,jn,Qe),vi)}else{let jn=xu([],pe(),void 0,!1);return Ar(I.createImportAttributes(jn,!1,Qe),vi)}}function RN(){return We()===42||We()===19}function yC(){return We()===28||We()===161}function Iw(Qe,$t,vi,Ki,jn){ir(64);let $r=HJ();Vc();let jo=I.createImportEqualsDeclaration(vi,jn,Ki,$r);return Nn(Ar(jo,Qe),$t)}function EF(Qe,$t,vi,Ki){let jn;return(!Qe||cc(28))&&(Ki&&n.setSkipJsDocLeadingAsterisks(!0),jn=We()===42?wz():z_(275),Ki&&n.setSkipJsDocLeadingAsterisks(!1)),Ar(I.createImportClause(vi,Qe,jn),$t)}function HJ(){return VJ()?Wk():st(!1)}function Wk(){let Qe=pe();ir(149),ir(21);let $t=BN();return ir(22),Ar(I.createExternalModuleReference($t),Qe)}function BN(){if(We()===11){let Qe=un();return Qe.text=Lf(Qe.text),Qe}else return Hh()}function wz(){let Qe=pe();ir(42),ir(130);let $t=Ci();return Ar(I.createNamespaceImport($t),Qe)}function om(){return FS(We())||We()===11}function zk(Qe){return We()===11?un():Qe()}function z_(Qe){let $t=pe(),vi=Qe===275?I.createNamedImports(Tr(23,xD,19,20)):I.createNamedExports(Tr(23,Vd,19,20));return Ar(vi,$t)}function Vd(){let Qe=at();return Nn(DF(281),Qe)}function xD(){return DF(276)}function DF(Qe){let $t=pe(),vi=Gv(We())&&!Vr(),Ki=n.getTokenStart(),jn=n.getTokenEnd(),$r=!1,jo,Ms=!0,rc=zk(kn);if(rc.kind===80&&rc.escapedText==="type")if(We()===130){let v_=kn();if(We()===130){let uf=kn();om()?($r=!0,jo=v_,rc=zk(gl),Ms=!1):(jo=rc,rc=uf,Ms=!1)}else om()?(jo=rc,Ms=!1,rc=zk(gl)):($r=!0,rc=v_)}else om()&&($r=!0,rc=zk(gl));Ms&&We()===130&&(jo=rc,ir(130),rc=zk(gl)),Qe===276&&(rc.kind!==80?(Ce(fd(rt,rc.pos),rc.end,j.Identifier_expected),rc=KT(Hl(80,!1),rc.pos,rc.pos)):vi&&Ce(Ki,jn,j.Identifier_expected));let _c=Qe===276?I.createImportSpecifier($r,jo,rc):I.createExportSpecifier($r,jo,rc);return Ar(_c,$t);function gl(){return vi=Gv(We())&&!Vr(),Ki=n.getTokenStart(),jn=n.getTokenEnd(),kn()}}function gt(Qe){return Ar(I.createNamespaceExport(zk(kn)),Qe)}function di(Qe,$t,vi){let Ki=Bt();Qs(!0);let jn,$r,jo,Ms=cc(156),rc=pe();cc(42)?(cc(130)&&(jn=gt(rc)),ir(161),$r=BN()):(jn=z_(279),(We()===161||We()===11&&!n.hasPrecedingLineBreak())&&(ir(161),$r=BN()));let _c=We();$r&&(_c===118||_c===132)&&!n.hasPrecedingLineBreak()&&(jo=t6(_c)),Vc(),Qs(Ki);let gl=I.createExportDeclaration(vi,Ms,jn,$r,jo);return Nn(Ar(gl,Qe),$t)}function Yi(Qe,$t,vi){let Ki=Bt();Qs(!0);let jn;cc(64)?jn=!0:ir(90);let $r=Bg(!0);Vc(),Qs(Ki);let jo=I.createExportAssignment(vi,jn,$r);return Nn(Ar(jo,Qe),$t)}let Ln;(Qe=>{Qe[Qe.SourceElements=0]="SourceElements",Qe[Qe.BlockStatements=1]="BlockStatements",Qe[Qe.SwitchClauses=2]="SwitchClauses",Qe[Qe.SwitchClauseStatements=3]="SwitchClauseStatements",Qe[Qe.TypeMembers=4]="TypeMembers",Qe[Qe.ClassMembers=5]="ClassMembers",Qe[Qe.EnumMembers=6]="EnumMembers",Qe[Qe.HeritageClauseElement=7]="HeritageClauseElement",Qe[Qe.VariableDeclarations=8]="VariableDeclarations",Qe[Qe.ObjectBindingElements=9]="ObjectBindingElements",Qe[Qe.ArrayBindingElements=10]="ArrayBindingElements",Qe[Qe.ArgumentExpressions=11]="ArgumentExpressions",Qe[Qe.ObjectLiteralMembers=12]="ObjectLiteralMembers",Qe[Qe.JsxAttributes=13]="JsxAttributes",Qe[Qe.JsxChildren=14]="JsxChildren",Qe[Qe.ArrayLiteralMembers=15]="ArrayLiteralMembers",Qe[Qe.Parameters=16]="Parameters",Qe[Qe.JSDocParameters=17]="JSDocParameters",Qe[Qe.RestProperties=18]="RestProperties",Qe[Qe.TypeParameters=19]="TypeParameters",Qe[Qe.TypeArguments=20]="TypeArguments",Qe[Qe.TupleElementTypes=21]="TupleElementTypes",Qe[Qe.HeritageClauses=22]="HeritageClauses",Qe[Qe.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",Qe[Qe.ImportAttributes=24]="ImportAttributes",Qe[Qe.JSDocComment=25]="JSDocComment",Qe[Qe.Count=26]="Count"})(Ln||(Ln={}));let Br;(Qe=>{Qe[Qe.False=0]="False",Qe[Qe.True=1]="True",Qe[Qe.Unknown=2]="Unknown"})(Br||(Br={}));let qr;(Qe=>{function $t(_c,gl,v_){_r("file.js",_c,99,void 0,1,0),n.setText(_c,gl,v_),ni=n.scan();let uf=vi(),Of=gn("file.js",99,1,!1,[],K(1),0,Za),vC=OG(ut,Of);return ht&&(Of.jsDocDiagnostics=OG(ht,Of)),Hs(),uf?{jsDocTypeExpression:uf,diagnostics:vC}:void 0}Qe.parseJSDocTypeExpressionForTests=$t;function vi(_c){let gl=pe(),v_=(_c?cc:ir)(19),uf=qi(16777216,m0);(!_c||v_)&&Pf(20);let Of=I.createJSDocTypeExpression(uf);return ci(Of),Ar(Of,gl)}Qe.parseJSDocTypeExpression=vi;function Ki(){let _c=pe(),gl=cc(19),v_=pe(),uf=st(!1);for(;We()===81;)Cn(),Fi(),uf=Ar(I.createJSDocMemberName(uf,Ci()),v_);gl&&Pf(20);let Of=I.createJSDocNameReference(uf);return ci(Of),Ar(Of,_c)}Qe.parseJSDocNameReference=Ki;function jn(_c,gl,v_){_r("",_c,99,void 0,1,0);let uf=qi(16777216,()=>rc(gl,v_)),vC=OG(ut,{languageVariant:0,text:_c});return Hs(),uf?{jsDoc:uf,diagnostics:vC}:void 0}Qe.parseIsolatedJSDocComment=jn;function $r(_c,gl,v_){let uf=ni,Of=ut.length,vC=zn,Eg=qi(16777216,()=>rc(gl,v_));return dp(Eg,_c),mr&524288&&(ht||(ht=[]),Ho(ht,ut,Of)),ni=uf,ut.length=Of,zn=vC,Eg}Qe.parseJSDocComment=$r;let jo;(_c=>{_c[_c.BeginningOfLine=0]="BeginningOfLine",_c[_c.SawAsterisk=1]="SawAsterisk",_c[_c.SavingComments=2]="SavingComments",_c[_c.SavingBackticks=3]="SavingBackticks"})(jo||(jo={}));let Ms;(_c=>{_c[_c.Property=1]="Property",_c[_c.Parameter=2]="Parameter",_c[_c.CallbackParameter=4]="CallbackParameter"})(Ms||(Ms={}));function rc(_c=0,gl){let v_=rt,uf=gl===void 0?v_.length:_c+gl;if(gl=uf-_c,Se.assert(_c>=0),Se.assert(_c<=uf),Se.assert(uf<=v_.length),!Wn(v_,_c))return;let Of,vC,Eg,bC,ef,Am=[],Nw=[],d2=Bi;Bi|=1<<25;let Hf=n.scanRange(_c+3,gl-5,Sm);return Bi=d2,Hf;function Sm(){let to=1,Cs,Ta=_c-(v_.lastIndexOf(` +`,_c)+1)+4;function Oc(ap){Cs||(Cs=Ta),Am.push(ap),Ta+=ap.length}for(Fi();Wa(5););Wa(4)&&(to=0,Ta=0);e:for(;;){switch(We()){case 60:Ns(Am),ef||(ef=pe()),Ll(yt(Ta)),to=0,Cs=void 0;break;case 4:Am.push(n.getTokenText()),to=0,Ta=0;break;case 42:let ap=n.getTokenText();to===1?(to=2,Oc(ap)):(Se.assert(to===0),to=1,Ta+=ap.length);break;case 5:Se.assert(to!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");let Pp=n.getTokenText();Cs!==void 0&&Ta+Pp.length>Cs&&Am.push(Pp.slice(Cs-Ta)),Ta+=Pp.length;break;case 1:break e;case 82:to=2,Oc(n.getTokenValue());break;case 19:to=2;let f2=n.getTokenFullStart(),zN=n.getTokenEnd()-1,Ax=ze(zN);if(Ax){bC||hv(Am),Nw.push(Ar(I.createJSDocText(Am.join("")),bC??_c,f2)),Nw.push(Ax),Am=[],bC=n.getTokenEnd();break}default:to=2,Oc(n.getTokenText());break}to===2?Vn(!1):Fi()}let ha=Am.join("").trimEnd();Nw.length&&ha.length&&Nw.push(Ar(I.createJSDocText(ha),bC??_c,ef)),Nw.length&&Of&&Se.assertIsDefined(ef,"having parsed tags implies that the end of the comment span should be set");let hf=Of&&xu(Of,vC,Eg);return Ar(I.createJSDocComment(Nw.length?xu(Nw,_c,ef):ha.length?ha:void 0,hf),_c,uf)}function hv(to){for(;to.length&&(to[0]===` +`||to[0]==="\r");)to.shift()}function Ns(to){for(;to.length;){let Cs=to[to.length-1].trimEnd();if(Cs==="")to.pop();else if(Cs.lengthPp&&(Oc.push(SP.slice(Pp-to)),ap=2),to+=SP.length;break;case 19:ap=2;let zp=n.getTokenFullStart(),$X=n.getTokenEnd()-1,pS=ze($X);pS?(ha.push(Ar(I.createJSDocText(Oc.join("")),hf??Ta,zp)),ha.push(pS),Oc=[],hf=n.getTokenEnd()):f2(n.getTokenText());break;case 62:ap===3?ap=2:ap=3,f2(n.getTokenText());break;case 82:ap!==3&&(ap=2),f2(n.getTokenValue());break;case 42:if(ap===0){ap=1,to+=1;break}default:ap!==3&&(ap=2),f2(n.getTokenText());break}ap===2||ap===3?zN=Vn(ap===3):zN=Fi()}hv(Oc);let Ax=Oc.join("").trimEnd();if(ha.length)return Ax.length&&ha.push(Ar(I.createJSDocText(Ax),hf??Ta)),xu(ha,Ta,n.getTokenEnd());if(Ax.length)return Ax}function ze(to){let Cs=wr(Di);if(!Cs)return;Fi(),Ne();let Ta=kt(),Oc=[];for(;We()!==20&&We()!==4&&We()!==1;)Oc.push(n.getTokenText()),Fi();let ha=Cs==="link"?I.createJSDocLink:Cs==="linkcode"?I.createJSDocLinkCode:I.createJSDocLinkPlain;return Ar(ha(Ta,Oc.join("")),to,n.getTokenEnd())}function kt(){if(FS(We())){let to=pe(),Cs=kn();for(;cc(25);)Cs=Ar(I.createQualifiedName(Cs,We()===81?Hl(80,!1):kn()),to);for(;We()===81;)Cn(),Fi(),Cs=Ar(I.createJSDocMemberName(Cs,Ci()),to);return Cs}}function Di(){if(Ze(),We()===19&&Fi()===60&&FS(Fi())){let to=n.getTokenValue();if(Ir(to))return to}}function Ir(to){return to==="link"||to==="linkcode"||to==="linkplain"}function xs(to,Cs,Ta,Oc){return Ar(I.createJSDocUnknownTag(Cs,J(to,pe(),Ta,Oc)),to)}function Ll(to){to&&(Of?Of.push(to):(Of=[to],vC=to.pos),Eg=to.end)}function sp(){return Ze(),We()===19?vi():void 0}function xT(){let to=Wa(23);to&&Ne();let Cs=Wa(62),Ta=_l();return Cs&&Gd(62),to&&(Ne(),vl(64)&&Hh(),ir(24)),{name:Ta,isBracketed:to}}function nE(to){switch(to.kind){case 151:return!0;case 188:return nE(to.elementType);default:return M_(to)&&Ai(to.typeName)&&to.typeName.escapedText==="Object"&&!to.typeArguments}}function Vk(to,Cs,Ta,Oc){let ha=sp(),hf=!ha;Ze();let{name:ap,isBracketed:Pp}=xT(),f2=Ze();hf&&!Ti(Di)&&(ha=sp());let zN=J(to,pe(),Oc,f2),Ax=Tz(ha,ap,Ta,Oc);Ax&&(ha=Ax,hf=!0);let SP=Ta===1?I.createJSDocPropertyTag(Cs,ap,Pp,ha,hf,zN):I.createJSDocParameterTag(Cs,ap,Pp,ha,hf,zN);return Ar(SP,to)}function Tz(to,Cs,Ta,Oc){if(to&&nE(to.type)){let ha=pe(),hf,ap;for(;hf=wr(()=>QM(Ta,Oc,Cs));)hf.kind===341||hf.kind===348?ap=ar(ap,hf):hf.kind===345&&ye(hf.tagName,j.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(ap){let Pp=Ar(I.createJSDocTypeLiteral(ap,to.type.kind===188),ha);return Ar(I.createJSDocTypeExpression(Pp),ha)}}}function UX(to,Cs,Ta,Oc){En(Of,yee)&&Ce(Cs.pos,n.getTokenStart(),j._0_tag_already_specified,Ba(Cs.escapedText));let ha=sp();return Ar(I.createJSDocReturnTag(Cs,ha,J(to,pe(),Ta,Oc)),to)}function Rve(to,Cs,Ta,Oc){En(Of,dW)&&Ce(Cs.pos,n.getTokenStart(),j._0_tag_already_specified,Ba(Cs.escapedText));let ha=vi(!0),hf=Ta!==void 0&&Oc!==void 0?J(to,pe(),Ta,Oc):void 0;return Ar(I.createJSDocTypeTag(Cs,ha,hf),to)}function XM(to,Cs,Ta,Oc){let hf=We()===23||Ti(()=>Fi()===60&&FS(Fi())&&Ir(n.getTokenValue()))?void 0:Ki(),ap=Ta!==void 0&&Oc!==void 0?J(to,pe(),Ta,Oc):void 0;return Ar(I.createJSDocSeeTag(Cs,hf,ap),to)}function JX(to,Cs,Ta,Oc){let ha=sp(),hf=J(to,pe(),Ta,Oc);return Ar(I.createJSDocThrowsTag(Cs,ha,hf),to)}function Bve(to,Cs,Ta,Oc){let ha=pe(),hf=fAe(),ap=n.getTokenFullStart(),Pp=J(to,ap,Ta,Oc);Pp||(ap=n.getTokenFullStart());let f2=typeof Pp!="string"?xu(Pl([Ar(hf,ha,ap)],Pp),ha):hf.text+Pp;return Ar(I.createJSDocAuthorTag(Cs,f2),to)}function fAe(){let to=[],Cs=!1,Ta=n.getToken();for(;Ta!==1&&Ta!==4;){if(Ta===30)Cs=!0;else{if(Ta===60&&!Cs)break;if(Ta===32&&Cs){to.push(n.getTokenText()),n.resetTokenState(n.getTokenEnd());break}}to.push(n.getTokenText()),Ta=Fi()}return I.createJSDocText(to.join(""))}function jN(to,Cs,Ta,Oc){let ha=js();return Ar(I.createJSDocImplementsTag(Cs,ha,J(to,pe(),Ta,Oc)),to)}function Vie(to,Cs,Ta,Oc){let ha=js();return Ar(I.createJSDocAugmentsTag(Cs,ha,J(to,pe(),Ta,Oc)),to)}function jve(to,Cs,Ta,Oc){let ha=vi(!1),hf=Ta!==void 0&&Oc!==void 0?J(to,pe(),Ta,Oc):void 0;return Ar(I.createJSDocSatisfiesTag(Cs,ha,hf),to)}function bP(to,Cs,Ta,Oc){let ha=n.getTokenFullStart(),hf;Vr()&&(hf=Ci());let ap=vP(hf,ha,!0,!0),Pp=BN(),f2=MN(),zN=Ta!==void 0&&Oc!==void 0?J(to,pe(),Ta,Oc):void 0;return Ar(I.createJSDocImportTag(Cs,ap,Pp,f2,zN),to)}function js(){let to=cc(19),Cs=pe(),Ta=DL();n.setSkipJsDocLeadingAsterisks(!0);let Oc=u2();n.setSkipJsDocLeadingAsterisks(!1);let ha=I.createExpressionWithTypeArguments(Ta,Oc),hf=Ar(ha,Cs);return to&&ir(20),hf}function DL(){let to=pe(),Cs=Uf();for(;cc(25);){let Ta=Uf();Cs=Ar(ne(Cs,Ta),to)}return Cs}function CD(to,Cs,Ta,Oc,ha){return Ar(Cs(Ta,J(to,pe(),Oc,ha)),to)}function Ez(to,Cs,Ta,Oc){let ha=vi(!0);return Ne(),Ar(I.createJSDocThisTag(Cs,ha,J(to,pe(),Ta,Oc)),to)}function UJ(to,Cs,Ta,Oc){let ha=vi(!0);return Ne(),Ar(I.createJSDocEnumTag(Cs,ha,J(to,pe(),Ta,Oc)),to)}function O9(to,Cs,Ta,Oc){let ha=sp();Ze();let hf=YM();Ne();let ap=me(Ta),Pp;if(!ha||nE(ha.type)){let zN,Ax,SP,zp=!1;for(;(zN=wr(()=>Nx(Ta)))&&zN.kind!==345;)if(zp=!0,zN.kind===344)if(Ax){let $X=ui(j.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);$X&&Pd($X,Vj(Ke,rt,0,0,j.The_tag_was_first_specified_here));break}else Ax=zN;else SP=ar(SP,zN);if(zp){let $X=ha&&ha.type.kind===188,pS=I.createJSDocTypeLiteral(SP,$X);ha=Ax&&Ax.typeExpression&&!nE(Ax.typeExpression.type)?Ax.typeExpression:Ar(pS,to),Pp=ha.end}}Pp=Pp||ap!==void 0?pe():(hf??ha??Cs).end,ap||(ap=J(to,Pp,Ta,Oc));let f2=I.createJSDocTypedefTag(Cs,ha,hf,ap);return Ar(f2,to,Pp)}function YM(to){let Cs=n.getTokenStart();if(!FS(We()))return;let Ta=Uf();if(cc(25)){let Oc=YM(!0),ha=I.createModuleDeclaration(void 0,Ta,Oc,to?8:void 0);return Ar(ha,Cs)}return to&&(Ta.flags|=4096),Ta}function Hie(to){let Cs=pe(),Ta,Oc;for(;Ta=wr(()=>QM(4,to));){if(Ta.kind===345){ye(Ta.tagName,j.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}Oc=ar(Oc,Ta)}return xu(Oc||[],Cs)}function Hk(to,Cs){let Ta=Hie(Cs),Oc=wr(()=>{if(Wa(60)){let ha=yt(Cs);if(ha&&ha.kind===342)return ha}});return Ar(I.createJSDocSignature(void 0,Ta,Oc),to)}function Js(to,Cs,Ta,Oc){let ha=YM();Ne();let hf=me(Ta),ap=Hk(to,Ta);hf||(hf=J(to,pe(),Ta,Oc));let Pp=hf!==void 0?pe():ap.end;return Ar(I.createJSDocCallbackTag(Cs,ap,ha,hf),to,Pp)}function i6(to,Cs,Ta,Oc){Ne();let ha=me(Ta),hf=Hk(to,Ta);ha||(ha=J(to,pe(),Ta,Oc));let ap=ha!==void 0?pe():hf.end;return Ar(I.createJSDocOverloadTag(Cs,hf,ha),to,ap)}function qX(to,Cs){for(;!Ai(to)||!Ai(Cs);)if(!Ai(to)&&!Ai(Cs)&&to.right.escapedText===Cs.right.escapedText)to=to.left,Cs=Cs.left;else return!1;return to.escapedText===Cs.escapedText}function Nx(to){return QM(1,to)}function QM(to,Cs,Ta){let Oc=!0,ha=!1;for(;;)switch(Fi()){case 60:if(Oc){let hf=WN(to,Cs);return hf&&(hf.kind===341||hf.kind===348)&&Ta&&(Ai(hf.name)||!qX(Ta,hf.name.left))?!1:hf}ha=!1;break;case 4:Oc=!0,ha=!1;break;case 42:ha&&(Oc=!1),ha=!0;break;case 80:Oc=!1;break;case 1:return!1}}function WN(to,Cs){Se.assert(We()===60);let Ta=n.getTokenFullStart();Fi();let Oc=Uf(),ha=Ze(),hf;switch(Oc.escapedText){case"type":return to===1&&Rve(Ta,Oc);case"prop":case"property":hf=1;break;case"arg":case"argument":case"param":hf=6;break;case"template":return ec(Ta,Oc,Cs,ha);case"this":return Ez(Ta,Oc,Cs,ha);default:return!1}return to&hf?Vk(Ta,Oc,to,Cs):!1}function Lo(){let to=pe(),Cs=Wa(23);Cs&&Ne();let Ta=rr(!1,!0),Oc=Uf(j.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),ha;if(Cs&&(Ne(),ir(64),ha=qi(16777216,m0),ir(24)),!Mm(Oc))return Ar(I.createTypeParameterDeclaration(Ta,Oc,void 0,ha),to)}function Ua(){let to=pe(),Cs=[];do{Ne();let Ta=Lo();Ta!==void 0&&Cs.push(Ta),Ze()}while(Wa(28));return xu(Cs,to)}function ec(to,Cs,Ta,Oc){let ha=We()===19?vi():void 0,hf=Ua();return Ar(I.createJSDocTemplateTag(Cs,ha,hf,J(to,pe(),Ta,Oc)),to)}function Wa(to){return We()===to?(Fi(),!0):!1}function _l(){let to=Uf();for(cc(23)&&ir(24);cc(25);){let Cs=Uf();cc(23)&&ir(24),to=gi(to,Cs)}return to}function Uf(to){if(!FS(We()))return Hl(80,!to,to||j.Identifier_expected);wi++;let Cs=n.getTokenStart(),Ta=n.getTokenEnd(),Oc=We(),ha=Lf(n.getTokenValue()),hf=Ar(U(ha,Oc),Cs,Ta);return Fi(),hf}}})(qr=t.JSDocParser||(t.JSDocParser={}))})(K5||(K5={}));var pd=new WeakSet;function _K(t){pd.has(t)&&Se.fail("Source file has already been incrementally parsed"),pd.add(t)}var NGe=new WeakSet;function Lgt(t){return NGe.has(t)}function mW(t){NGe.add(t)}var X5;(t=>{function n(R,H,U,$){if($=$||Se.shouldAssert(2),I(R,H,U,$),xke(U))return R;if(R.statements.length===0)return K5.parseSourceFile(R.fileName,H,R.languageVersion,void 0,!0,R.scriptKind,R.setExternalModuleIndicator,R.jsDocParsingMode);_K(R),K5.fixupParentReferences(R);let K=R.text,re=A(R),X=k(R,U);I(R,H,X,$),Se.assert(X.span.start<=U.span.start),Se.assert(ag(X.span)===ag(U.span)),Se.assert(ag(n5(X))===ag(n5(U)));let ne=n5(X).length-X.span.length;x(R,X.span.start,ag(X.span),ag(n5(X)),ne,K,H,$);let se=K5.parseSourceFile(R.fileName,H,R.languageVersion,re,!0,R.scriptKind,R.setExternalModuleIndicator,R.jsDocParsingMode);return se.commentDirectives=a(R.commentDirectives,se.commentDirectives,X.span.start,ag(X.span),ne,K,H,$),se.impliedNodeFormat=R.impliedNodeFormat,xae(R,se),se}t.updateSourceFile=n;function a(R,H,U,$,K,re,X,ne){if(!R)return H;let se,_e=!1;for(let le of R){let{range:Ee,type:xe}=le;if(Ee.end$){ae();let be={range:{pos:Ee.pos+K,end:Ee.end+K},type:xe};se=ar(se,be),ne&&Se.assert(re.substring(Ee.pos,Ee.end)===X.substring(be.range.pos,be.range.end))}}return ae(),se;function ae(){_e||(_e=!0,se?H&&se.push(...H):se=H)}}function u(R,H,U,$,K,re,X){U?se(R):ne(R);return;function ne(_e){let ae="";if(X&&m(_e)&&(ae=K.substring(_e.pos,_e.end)),bee(_e,H),KT(_e,_e.pos+$,_e.end+$),X&&m(_e)&&Se.assert(ae===re.substring(_e.pos,_e.end)),_d(_e,ne,se),Gx(_e))for(let le of _e.jsDoc)ne(le);v(_e,X)}function se(_e){KT(_e,_e.pos+$,_e.end+$);for(let ae of _e)ne(ae)}}function m(R){switch(R.kind){case 11:case 9:case 80:return!0}return!1}function g(R,H,U,$,K){Se.assert(R.end>=H,"Adjusting an element that was entirely before the change range"),Se.assert(R.pos<=U,"Adjusting an element that was entirely after the change range"),Se.assert(R.pos<=R.end);let re=Math.min(R.pos,$),X=R.end>=U?R.end+K:Math.min(R.end,$);if(Se.assert(re<=X),R.parent){let ne=R.parent;Se.assertGreaterThanOrEqual(re,ne.pos),Se.assertLessThanOrEqual(X,ne.end)}KT(R,re,X)}function v(R,H){if(H){let U=R.pos,$=K=>{Se.assert(K.pos>=U),U=K.end};if(Gx(R))for(let K of R.jsDoc)$(K);_d(R,$),Se.assert(U<=R.end)}}function x(R,H,U,$,K,re,X,ne){se(R);return;function se(ae){if(Se.assert(ae.pos<=ae.end),ae.pos>U){u(ae,R,!1,K,re,X,ne);return}let le=ae.end;if(le>=H){if(mW(ae),bee(ae,R),g(ae,H,U,$,K),_d(ae,se,_e),Gx(ae))for(let Ee of ae.jsDoc)se(Ee);v(ae,ne);return}Se.assert(leU){u(ae,R,!0,K,re,X,ne);return}let le=ae.end;if(le>=H){mW(ae),g(ae,H,U,$,K);for(let Ee of ae)se(Ee);return}Se.assert(le0&&X<=1;X++){let ne=T(R,$);Se.assert(ne.pos<=$);let se=ne.pos;$=Math.max(0,se-1)}let K=cg($,ag(H.span)),re=H.newLength+(H.span.start-$);return aZ(K,re)}function T(R,H){let U=R,$;if(_d(R,re),$){let X=K($);X.pos>U.pos&&(U=X)}return U;function K(X){for(;;){let ne=I5(X);if(ne)X=ne;else return X}}function re(X){if(!Mm(X))if(X.pos<=H){if(X.pos>=U.pos&&(U=X),HH),!0}}function I(R,H,U,$){let K=R.text;if(U&&(Se.assert(K.length-U.span.length+U.newLength===H.length),$||Se.shouldAssert(3))){let re=K.substr(0,U.span.start),X=H.substr(0,U.span.start);Se.assert(re===X);let ne=K.substring(ag(U.span),K.length),se=H.substring(ag(n5(U)),H.length);Se.assert(ne===se)}}function A(R){let H=R.statements,U=0;Se.assert(U=_e.pos&&X<_e.end?(_d(_e,ne,se),!0):!1}function se(_e){if(X>=_e.pos&&X<_e.end)for(let ae=0;ae<_e.length;ae++){let le=_e[ae];if(le){if(le.pos===X)return H=_e,U=ae,$=le,!0;if(le.pos{R[R.Value=-1]="Value"})(M||(M={}))})(X5||(X5={}));function ey(t){return N0(t)!==void 0}function N0(t){let n=LE(t,wwe,!1);if(n)return n;if(Wh(t,".ts")){let a=sg(t).lastIndexOf(".d.");if(a>=0)return t.substring(a)}}function d8e(t,n,a,u){if(t){if(t==="import")return 99;if(t==="require")return 1;u(n,a-n,j.resolution_mode_should_be_either_require_or_import)}}function hhe(t,n){let a=[];for(let u of PA(n,0)||F){let m=n.substring(u.pos,u.end);M9t(a,u,m)}t.pragmas=new Map;for(let u of a){if(t.pragmas.has(u.name)){let m=t.pragmas.get(u.name);m instanceof Array?m.push(u.args):t.pragmas.set(u.name,[m,u.args]);continue}t.pragmas.set(u.name,u.args)}}function iTe(t,n){t.checkJsDirective=void 0,t.referencedFiles=[],t.typeReferenceDirectives=[],t.libReferenceDirectives=[],t.amdDependencies=[],t.hasNoDefaultLib=!1,t.pragmas.forEach((a,u)=>{switch(u){case"reference":{let m=t.referencedFiles,g=t.typeReferenceDirectives,v=t.libReferenceDirectives;ee(LS(a),x=>{let{types:k,lib:T,path:I,["resolution-mode"]:A,preserve:M}=x.arguments,R=M==="true"?!0:void 0;if(x.arguments["no-default-lib"]==="true")t.hasNoDefaultLib=!0;else if(k){let H=d8e(A,k.pos,k.end,n);g.push({pos:k.pos,end:k.end,fileName:k.value,...H?{resolutionMode:H}:{},...R?{preserve:R}:{}})}else T?v.push({pos:T.pos,end:T.end,fileName:T.value,...R?{preserve:R}:{}}):I?m.push({pos:I.pos,end:I.end,fileName:I.value,...R?{preserve:R}:{}}):n(x.range.pos,x.range.end-x.range.pos,j.Invalid_reference_directive_syntax)});break}case"amd-dependency":{t.amdDependencies=$i(LS(a),m=>({name:m.arguments.name,path:m.arguments.path}));break}case"amd-module":{if(a instanceof Array)for(let m of a)t.moduleName&&n(m.range.pos,m.range.end-m.range.pos,j.An_AMD_module_cannot_have_multiple_name_assignments),t.moduleName=m.arguments.name;else t.moduleName=a.arguments.name;break}case"ts-nocheck":case"ts-check":{ee(LS(a),m=>{(!t.checkJsDirective||m.range.pos>t.checkJsDirective.pos)&&(t.checkJsDirective={enabled:u==="ts-check",end:m.range.end,pos:m.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:Se.fail("Unhandled pragma kind")}})}var oF=new Map;function Ogt(t){if(oF.has(t))return oF.get(t);let n=new RegExp(`(\\s${t}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return oF.set(t,n),n}var F9t=/^\/\/\/\s*<(\S+)\s.*?\/>/m,Fgt=/^\/\/\/?\s*@([^\s:]+)((?:[^\S\r\n]|:).*)?$/m;function M9t(t,n,a){let u=n.kind===2&&F9t.exec(a);if(u){let g=u[1].toLowerCase(),v=KQ[g];if(!v||!(v.kind&1))return;if(v.args){let x={};for(let k of v.args){let I=Ogt(k.name).exec(a);if(!I&&!k.optional)return;if(I){let A=I[2]||I[3];if(k.captureSpan){let M=n.pos+I.index+I[1].length+1;x[k.name]={value:A,pos:M,end:M+A.length}}else x[k.name]=A}}t.push({name:g,args:{arguments:x,range:n}})}else t.push({name:g,args:{arguments:{},range:n}});return}let m=n.kind===2&&Fgt.exec(a);if(m)return f8e(t,n,2,m);if(n.kind===3){let g=/@(\S+)(\s+(?:\S.*)?)?$/gm,v;for(;v=g.exec(a);)f8e(t,n,4,v)}}function f8e(t,n,a,u){if(!u)return;let m=u[1].toLowerCase(),g=KQ[m];if(!g||!(g.kind&a))return;let v=u[2],x=_8e(g,v);x!=="fail"&&t.push({name:m,args:{arguments:x,range:n}})}function _8e(t,n){if(!n)return{};if(!t.args)return{};let a=n.trim().split(/\s+/),u={};for(let m=0;m[""+n,t])),nTe=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["es2021","lib.es2021.d.ts"],["es2022","lib.es2022.d.ts"],["es2023","lib.es2023.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["dom.asynciterable","lib.dom.asynciterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.d.ts"],["webworker.asynciterable","lib.webworker.asynciterable.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2016.intl","lib.es2016.intl.d.ts"],["es2017.date","lib.es2017.date.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2019.intl","lib.es2019.intl.d.ts"],["es2020.bigint","lib.es2020.bigint.d.ts"],["es2020.date","lib.es2020.date.d.ts"],["es2020.promise","lib.es2020.promise.d.ts"],["es2020.sharedmemory","lib.es2020.sharedmemory.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["es2020.intl","lib.es2020.intl.d.ts"],["es2020.number","lib.es2020.number.d.ts"],["es2021.promise","lib.es2021.promise.d.ts"],["es2021.string","lib.es2021.string.d.ts"],["es2021.weakref","lib.es2021.weakref.d.ts"],["es2021.intl","lib.es2021.intl.d.ts"],["es2022.array","lib.es2022.array.d.ts"],["es2022.error","lib.es2022.error.d.ts"],["es2022.intl","lib.es2022.intl.d.ts"],["es2022.object","lib.es2022.object.d.ts"],["es2022.sharedmemory","lib.es2022.sharedmemory.d.ts"],["es2022.string","lib.es2022.string.d.ts"],["es2022.regexp","lib.es2022.regexp.d.ts"],["es2023.array","lib.es2023.array.d.ts"],["es2023.collection","lib.es2023.collection.d.ts"],["es2023.intl","lib.es2023.intl.d.ts"],["esnext.array","lib.es2023.array.d.ts"],["esnext.collection","lib.esnext.collection.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.disposable","lib.esnext.disposable.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.es2022.string.d.ts"],["esnext.promise","lib.esnext.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"],["esnext.decorators","lib.esnext.decorators.d.ts"],["esnext.object","lib.esnext.object.d.ts"],["esnext.array","lib.esnext.array.d.ts"],["esnext.regexp","lib.esnext.regexp.d.ts"],["esnext.string","lib.esnext.string.d.ts"],["esnext.iterator","lib.esnext.iterator.d.ts"],["decorators","lib.decorators.d.ts"],["decorators.legacy","lib.decorators.legacy.d.ts"]],Rae=nTe.map(t=>t[0]),p8e=new Map(nTe),mK=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:j.Watch_and_Build_Modes,description:j.Specify_how_the_TypeScript_watch_mode_works,defaultValueDescription:4},{name:"watchDirectory",type:new Map(Object.entries({usefsevents:0,fixedpollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3})),category:j.Watch_and_Build_Modes,description:j.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,defaultValueDescription:0},{name:"fallbackPolling",type:new Map(Object.entries({fixedinterval:0,priorityinterval:1,dynamicpriority:2,fixedchunksize:3})),category:j.Watch_and_Build_Modes,description:j.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:j.Watch_and_Build_Modes,description:j.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,defaultValueDescription:!1},{name:"excludeDirectories",type:"list",element:{name:"excludeDirectory",type:"string",isFilePath:!0,extraValidation:ZGe},allowConfigDirTemplateSubstitution:!0,category:j.Watch_and_Build_Modes,description:j.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:ZGe},allowConfigDirTemplateSubstitution:!0,category:j.Watch_and_Build_Modes,description:j.Remove_a_list_of_files_from_the_watch_mode_s_processing}],rTe=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:j.Command_line_Options,description:j.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:j.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:j.Command_line_Options,description:j.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:j.Output_Formatting,description:j.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:j.Compiler_Diagnostics,description:j.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:j.Compiler_Diagnostics,description:j.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:j.Compiler_Diagnostics,description:j.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:j.Output_Formatting,description:j.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:j.Compiler_Diagnostics,description:j.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:j.Compiler_Diagnostics,description:j.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:j.Compiler_Diagnostics,description:j.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:j.FILE_OR_DIRECTORY,category:j.Compiler_Diagnostics,description:j.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,paramType:j.DIRECTORY,category:j.Compiler_Diagnostics,description:j.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:j.Projects,description:j.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:j.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:j.Emit,transpileOptionValue:void 0,description:j.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:j.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:j.Emit,defaultValueDescription:!1,description:j.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:j.Emit,description:j.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:j.Emit,defaultValueDescription:!1,description:j.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:j.Emit,description:j.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"noCheck",type:"boolean",showInSimplifiedHelpView:!1,category:j.Compiler_Diagnostics,description:j.Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:j.Emit,description:j.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:j.Watch_and_Build_Modes,description:j.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,defaultValueDescription:!1},{name:"locale",type:"string",category:j.Command_line_Options,isCommandLineOnly:!0,description:j.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:j.Platform_specific}],m8e={name:"target",shortName:"t",type:new Map(Object.entries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,es2022:9,es2023:10,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,deprecatedKeys:new Set(["es3"]),paramType:j.VERSION,showInSimplifiedHelpView:!0,category:j.Language_and_Environment,description:j.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},h8e={name:"module",shortName:"m",type:new Map(Object.entries({none:0,commonjs:1,amd:2,system:4,umd:3,es6:5,es2015:5,es2020:6,es2022:7,esnext:99,node16:100,nodenext:199,preserve:200})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:j.KIND,showInSimplifiedHelpView:!0,category:j.Modules,description:j.Specify_what_module_code_is_generated,defaultValueDescription:void 0},AGe=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:j.Command_line_Options,description:j.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:j.Command_line_Options,description:j.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:j.Command_line_Options,description:j.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:j.Command_line_Options,paramType:j.FILE_OR_DIRECTORY,description:j.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:j.Command_line_Options,description:j.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:j.Command_line_Options,isCommandLineOnly:!0,description:j.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:j.Command_line_Options,isCommandLineOnly:!0,description:j.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},m8e,h8e,{name:"lib",type:"list",element:{name:"lib",type:p8e,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:j.Language_and_Environment,description:j.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",allowJsFlag:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:j.JavaScript_Support,description:j.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,defaultValueDescription:!1},{name:"checkJs",type:"boolean",affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:j.JavaScript_Support,description:j.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:Mgt,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,paramType:j.KIND,showInSimplifiedHelpView:!0,category:j.Language_and_Environment,description:j.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:j.FILE,showInSimplifiedHelpView:!0,category:j.Emit,description:j.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:j.DIRECTORY,showInSimplifiedHelpView:!0,category:j.Emit,description:j.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:j.LOCATION,category:j.Modules,description:j.Specify_the_root_folder_within_your_source_files,defaultValueDescription:j.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:j.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:j.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:j.FILE,category:j.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:j.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:j.Emit,defaultValueDescription:!1,description:j.Disable_emitting_comments},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,affectsSourceFile:!0,category:j.Emit,description:j.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:!1},{name:"importsNotUsedAsValues",type:new Map(Object.entries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:j.Backwards_Compatibility,description:j.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:j.Emit,description:j.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:j.Interop_Constraints,description:j.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"verbatimModuleSyntax",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:j.Interop_Constraints,description:j.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting,defaultValueDescription:!1},{name:"isolatedDeclarations",type:"boolean",category:j.Interop_Constraints,description:j.Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files,defaultValueDescription:!1,affectsBuildInfo:!0,affectsSemanticDiagnostics:!0},{name:"strict",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:j.Type_Checking,description:j.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:j.Type_Checking,description:j.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:j.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:j.Type_Checking,description:j.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:j.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:j.Type_Checking,description:j.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:j.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:j.Type_Checking,description:j.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:j.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:j.Type_Checking,description:j.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:j.false_unless_strict_is_set},{name:"strictBuiltinIteratorReturn",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:j.Type_Checking,description:j.Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any,defaultValueDescription:j.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:j.Type_Checking,description:j.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:j.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:j.Type_Checking,description:j.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:j.false_unless_strict_is_set},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:j.Type_Checking,description:j.Ensure_use_strict_is_always_emitted,defaultValueDescription:j.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:j.Type_Checking,description:j.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:j.Type_Checking,description:j.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:j.Type_Checking,description:j.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:j.Type_Checking,description:j.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:!1},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:j.Type_Checking,description:j.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:j.Type_Checking,description:j.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:j.Type_Checking,description:j.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:!1},{name:"noPropertyAccessFromIndexSignature",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!1,category:j.Type_Checking,description:j.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:"moduleResolution",type:new Map(Object.entries({node10:2,node:2,classic:1,node16:3,nodenext:99,bundler:100})),deprecatedKeys:new Set(["node"]),affectsSourceFile:!0,affectsModuleResolution:!0,paramType:j.STRATEGY,category:j.Modules,description:j.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:j.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:j.Modules,description:j.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,isTSConfigOnly:!0,category:j.Modules,description:j.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,category:j.Modules,description:j.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:j.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,category:j.Modules,description:j.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:j.Modules,description:j.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:j.Interop_Constraints,description:j.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:j.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:j.Interop_Constraints,description:j.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:j.Interop_Constraints,description:j.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:!1},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:j.Modules,description:j.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:j.Modules,description:j.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:j.Modules,description:j.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,defaultValueDescription:!1,transpileOptionValue:void 0},{name:"resolvePackageJsonExports",type:"boolean",affectsModuleResolution:!0,category:j.Modules,description:j.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:j.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:j.Modules,description:j.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:j.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:j.Modules,description:j.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"noUncheckedSideEffectImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:j.Modules,description:j.Check_side_effect_imports,defaultValueDescription:!1},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:j.LOCATION,category:j.Emit,description:j.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:j.LOCATION,category:j.Emit,description:j.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:j.Emit,description:j.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:j.Language_and_Environment,description:j.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:j.Language_and_Environment,description:j.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:j.Language_and_Environment,description:j.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,defaultValueDescription:"`React.createElement`"},{name:"jsxFragmentFactory",type:"string",category:j.Language_and_Environment,description:j.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,defaultValueDescription:"React.Fragment"},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSourceFile:!0,category:j.Language_and_Environment,description:j.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,defaultValueDescription:"react"},{name:"resolveJsonModule",type:"boolean",affectsModuleResolution:!0,category:j.Modules,description:j.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:j.Modules,description:j.Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present,defaultValueDescription:!1},{name:"out",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!1,category:j.Backwards_Compatibility,paramType:j.FILE,transpileOptionValue:void 0,description:j.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:j.Language_and_Environment,description:j.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:j.Completeness,description:j.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:j.Backwards_Compatibility,description:j.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:"utf8"},{name:"emitBOM",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:j.Emit,description:j.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:!1},{name:"newLine",type:new Map(Object.entries({crlf:0,lf:1})),affectsEmit:!0,affectsBuildInfo:!0,paramType:j.NEWLINE,category:j.Emit,description:j.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:j.Output_Formatting,description:j.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:j.Language_and_Environment,affectsProgramStructure:!0,description:j.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:j.Modules,description:j.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:!1},{name:"stripInternal",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:j.Emit,description:j.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:j.Editor_Support,description:j.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:!1},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:j.Projects,description:j.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:j.Projects,description:j.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:j.Projects,description:j.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:j.Backwards_Compatibility,description:j.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:j.Emit,description:j.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:j.Emit,transpileOptionValue:void 0,description:j.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:j.Emit,description:j.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:j.DIRECTORY,category:j.Emit,transpileOptionValue:void 0,description:j.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:j.Completeness,description:j.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:j.Type_Checking,description:j.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:j.Type_Checking,description:j.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:j.Backwards_Compatibility,description:j.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:j.Backwards_Compatibility,description:j.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:j.Interop_Constraints,description:j.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:j.JavaScript_Support,description:j.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,defaultValueDescription:0},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:j.Backwards_Compatibility,description:j.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:j.Language_and_Environment,description:j.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:j.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:j.Backwards_Compatibility,description:j.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:j.Backwards_Compatibility,description:j.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:!1},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:j.Specify_a_list_of_language_service_plugins_to_include,category:j.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsSourceFile:!0,affectsModuleResolution:!0,description:j.Control_what_method_is_used_to_detect_module_format_JS_files,category:j.Language_and_Environment,defaultValueDescription:j.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules},{name:"ignoreDeprecations",type:"string",defaultValueDescription:void 0}],zS=[...rTe,...AGe],Bae=zS.filter(t=>!!t.affectsSemanticDiagnostics),g8e=zS.filter(t=>!!t.affectsEmit),Eee=zS.filter(t=>!!t.affectsDeclarationPath),oTe=zS.filter(t=>!!t.affectsModuleResolution),Dee=zS.filter(t=>!!t.affectsSourceFile||!!t.affectsBindDiagnostics),yhe=zS.filter(t=>!!t.affectsProgramStructure),hW=zS.filter(t=>bf(t,"transpileOptionValue")),sTe=zS.filter(t=>t.allowConfigDirTemplateSubstitution||!t.isCommandLineOnly&&t.isFilePath),y8e=mK.filter(t=>t.allowConfigDirTemplateSubstitution||!t.isCommandLineOnly&&t.isFilePath),aTe=zS.filter(PGe);function PGe(t){return!Yu(t.type)}var q2=[{name:"verbose",shortName:"v",category:j.Command_line_Options,description:j.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:j.Command_line_Options,description:j.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:j.Command_line_Options,description:j.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:j.Command_line_Options,description:j.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1},{name:"stopBuildOnErrors",category:j.Command_line_Options,description:j.Skip_building_downstream_projects_on_error_in_upstream_project,type:"boolean",defaultValueDescription:!1}],Iee=[...rTe,...q2],jae=[{name:"enable",type:"boolean",defaultValueDescription:!1},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},{name:"disableFilenameBasedTypeAcquisition",type:"boolean",defaultValueDescription:!1}];function Wae(t){let n=new Map,a=new Map;return ee(t,u=>{n.set(u.name.toLowerCase(),u),u.shortName&&a.set(u.shortName,u.name)}),{optionsNameMap:n,shortOptionNames:a}}var cTe;function gW(){return cTe||(cTe=Wae(zS))}var LGe={diagnostic:j.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:FGe},vhe={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0};function lTe(t){return v8e(t,Th)}function v8e(t,n){let a=tc(t.type.keys()),u=(t.deprecatedKeys?a.filter(m=>!t.deprecatedKeys.has(m)):a).map(m=>`'${m}'`).join(", ");return n(j.Argument_for_0_option_must_be_Colon_1,`--${t.name}`,u)}function zae(t,n,a){return YGe(t,(n??"").trim(),a)}function OGe(t,n="",a){if(n=n.trim(),xl(n,"-"))return;if(t.type==="listOrElement"&&!n.includes(","))return vK(t,n,a);if(n==="")return[];let u=n.split(",");switch(t.element.type){case"number":return Dc(u,m=>vK(t.element,parseInt(m),a));case"string":return Dc(u,m=>vK(t.element,m||"",a));case"boolean":case"object":return Se.fail(`List of ${t.element.type} is not yet supported.`);default:return Dc(u,m=>zae(t.element,m,a))}}function uTe(t){return t.name}function Nee(t,n,a,u,m){var g;if((g=n.alternateMode)!=null&&g.getOptionsNameMap().optionsNameMap.has(t.toLowerCase()))return Y5(m,u,n.alternateMode.diagnostic,t);let v=JB(t,n.optionDeclarations,uTe);return v?Y5(m,u,n.unknownDidYouMeanDiagnostic,a||t,v.name):Y5(m,u,n.unknownOptionDiagnostic,a||t)}function Aee(t,n,a){let u={},m,g=[],v=[];return x(n),{options:u,watchOptions:m,fileNames:g,errors:v};function x(T){let I=0;for(;Ihy.readFile(R)));if(!Yu(I)){v.push(I);return}let A=[],M=0;for(;;){for(;M=I.length)break;let R=M;if(I.charCodeAt(R)===34){for(M++;M32;)M++;A.push(I.substring(R,M))}}x(A)}}function bhe(t,n,a,u,m,g){if(u.isTSConfigOnly){let v=t[n];v==="null"?(m[u.name]=void 0,n++):u.type==="boolean"?v==="false"?(m[u.name]=vK(u,!1,g),n++):(v==="true"&&n++,g.push(Th(j.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,u.name))):(g.push(Th(j.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,u.name)),v&&!xl(v,"-")&&n++)}else if(!t[n]&&u.type!=="boolean"&&g.push(Th(a.optionTypeMismatchDiagnostic,u.name,mTe(u))),t[n]!=="null")switch(u.type){case"number":m[u.name]=vK(u,parseInt(t[n]),g),n++;break;case"boolean":let v=t[n];m[u.name]=vK(u,v!=="false",g),(v==="false"||v==="true")&&n++;break;case"string":m[u.name]=vK(u,t[n]||"",g),n++;break;case"list":let x=OGe(u,t[n],g);m[u.name]=x||[],x&&n++;break;case"listOrElement":Se.fail("listOrElement not supported here");break;default:m[u.name]=zae(u,t[n],g),n++;break}else m[u.name]=void 0,n++;return n}var She={alternateMode:LGe,getOptionsNameMap:gW,optionDeclarations:zS,unknownOptionDiagnostic:j.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:j.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:j.Compiler_option_0_expects_an_argument};function LU(t,n){return Aee(She,t,n)}function b8e(t,n){return xhe(gW,t,n)}function xhe(t,n,a=!1){n=n.toLowerCase();let{optionsNameMap:u,shortOptionNames:m}=t();if(a){let g=m.get(n);g!==void 0&&(n=g)}return u.get(n)}var S8e;function FGe(){return S8e||(S8e=Wae(Iee))}var dTe={diagnostic:j.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:gW},MGe={alternateMode:dTe,getOptionsNameMap:FGe,optionDeclarations:Iee,unknownOptionDiagnostic:j.Unknown_build_option_0,unknownDidYouMeanDiagnostic:j.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:j.Build_option_0_requires_a_value_of_type_1};function x8e(t){let{options:n,watchOptions:a,fileNames:u,errors:m}=Aee(MGe,t),g=n;return u.length===0&&u.push("."),g.clean&&g.force&&m.push(Th(j.Options_0_and_1_cannot_be_combined,"clean","force")),g.clean&&g.verbose&&m.push(Th(j.Options_0_and_1_cannot_be_combined,"clean","verbose")),g.clean&&g.watch&&m.push(Th(j.Options_0_and_1_cannot_be_combined,"clean","watch")),g.watch&&g.dry&&m.push(Th(j.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:g,watchOptions:a,projects:u,errors:m}}function bx(t,...n){return $d(Th(t,...n).messageText,Yu)}function hK(t,n,a,u,m,g){let v=OU(t,T=>a.readFile(T));if(!Yu(v)){a.onUnRecoverableConfigFileDiagnostic(v);return}let x=Mae(t,v),k=a.getCurrentDirectory();return x.path=dd(t,k,U0(a.useCaseSensitiveFileNames)),x.resolvedPath=x.path,x.originalFileName=x.fileName,whe(x,a,tu(Cc(t),k),n,tu(t,k),void 0,g,u,m)}function Vae(t,n){let a=OU(t,n);return Yu(a)?Pee(t,a):{config:{},error:a}}function Pee(t,n){let a=Mae(t,n);return{config:zGe(a,a.parseDiagnostics,void 0),error:a.parseDiagnostics.length?a.parseDiagnostics[0]:void 0}}function fTe(t,n){let a=OU(t,n);return Yu(a)?Mae(t,a):{fileName:t,parseDiagnostics:[a]}}function OU(t,n){let a;try{a=n(t)}catch(u){return Th(j.Cannot_read_file_0_Colon_1,t,u.message)}return a===void 0?Th(j.Cannot_read_file_0,t):a}function Che(t){return I_(t,uTe)}var RGe={optionDeclarations:jae,unknownOptionDiagnostic:j.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:j.Unknown_type_acquisition_option_0_Did_you_mean_1},BGe;function Rgt(){return BGe||(BGe=Wae(mK))}var C8e={getOptionsNameMap:Rgt,optionDeclarations:mK,unknownOptionDiagnostic:j.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:j.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:j.Watch_option_0_requires_a_value_of_type_1},k8e;function nC(){return k8e||(k8e=Che(zS))}var Hae;function Uae(){return Hae||(Hae=Che(mK))}var _Te;function w8e(){return _Te||(_Te=Che(jae))}var yW={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:j.File_Management,disallowNullOrUndefined:!0},pTe={name:"compilerOptions",type:"object",elementOptions:nC(),extraKeyDiagnostics:She},jGe={name:"watchOptions",type:"object",elementOptions:Uae(),extraKeyDiagnostics:C8e},WGe={name:"typeAcquisition",type:"object",elementOptions:w8e(),extraKeyDiagnostics:RGe},T8e;function E8e(){return T8e===void 0&&(T8e={name:void 0,type:"object",elementOptions:Che([pTe,jGe,WGe,yW,{name:"references",type:"list",element:{name:"references",type:"object"},category:j.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:j.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:j.File_Management,defaultValueDescription:j.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:j.File_Management,defaultValueDescription:j.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},ghe])}),T8e}function zGe(t,n,a){var u;let m=(u=t.statements[0])==null?void 0:u.expression;if(m&&m.kind!==210){if(n.push(ss(t,m,j.The_root_value_of_a_0_file_must_be_an_object,sg(t.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),Yg(m)){let g=jt(m.elements,Ld);if(g)return Jae(t,g,n,!0,a)}return{}}return Jae(t,m,n,!0,a)}function D8e(t,n){var a;return Jae(t,(a=t.statements[0])==null?void 0:a.expression,n,!0,void 0)}function Jae(t,n,a,u,m){if(!n)return u?{}:void 0;return x(n,m?.rootOptions);function g(T,I){var A;let M=u?{}:void 0;for(let R of T.properties){if(R.kind!==303){a.push(ss(t,R,j.Property_assignment_expected));continue}R.questionToken&&a.push(ss(t,R.questionToken,j.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),k(R.name)||a.push(ss(t,R.name,j.String_literal_with_double_quotes_expected));let H=Ep(R.name)?void 0:k8(R.name),U=H&&Ba(H),$=U?(A=I?.elementOptions)==null?void 0:A.get(U):void 0,K=x(R.initializer,$);typeof U<"u"&&(u&&(M[U]=K),m?.onPropertySet(U,K,R,I,$))}return M}function v(T,I){if(!u){T.forEach(A=>x(A,I));return}return Qn(T.map(A=>x(A,I)),A=>A!==void 0)}function x(T,I){switch(T.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return k(T)||a.push(ss(t,T,j.String_literal_with_double_quotes_expected)),T.text;case 9:return Number(T.text);case 224:if(T.operator!==41||T.operand.kind!==9)break;return-Number(T.operand.text);case 210:return g(T,I);case 209:return v(T.elements,I&&I.element)}I?a.push(ss(t,T,j.Compiler_option_0_requires_a_value_of_type_1,I.name,mTe(I))):a.push(ss(t,T,j.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function k(T){return Kf(T)&&D3(T,t)}}function mTe(t){return t.type==="listOrElement"?`${mTe(t.element)} or Array`:t.type==="list"?"Array":Yu(t.type)?t.type:"string"}function VGe(t,n){if(t){if(yK(n))return!t.disallowNullOrUndefined;if(t.type==="list")return ua(n);if(t.type==="listOrElement")return ua(n)||VGe(t.element,n);let a=Yu(t.type)?t.type:"string";return typeof n===a}return!1}function hTe(t,n,a){var u,m,g;let v=U0(a.useCaseSensitiveFileNames),x=$i(Qn(t.fileNames,(m=(u=t.options.configFile)==null?void 0:u.configFileSpecs)!=null&&m.validatedIncludeSpecs?jgt(n,t.options.configFile.configFileSpecs.validatedIncludeSpecs,t.options.configFile.configFileSpecs.validatedExcludeSpecs,a):ql),H=>j$(tu(n,a.getCurrentDirectory()),tu(H,a.getCurrentDirectory()),v)),k={configFilePath:tu(n,a.getCurrentDirectory()),useCaseSensitiveFileNames:a.useCaseSensitiveFileNames},T=gTe(t.options,k),I=t.watchOptions&&Wgt(t.watchOptions),A={compilerOptions:{...gK(T),showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0},watchOptions:I&&gK(I),references:$i(t.projectReferences,H=>({...H,path:H.originalPath?H.originalPath:"",originalPath:void 0})),files:Z(x)?x:void 0,...(g=t.options.configFile)!=null&&g.configFileSpecs?{include:Bgt(t.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:t.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:t.compileOnSave?!0:void 0},M=new Set(T.keys()),R={};for(let H in Sy)if(!M.has(H)&&En(Sy[H].dependencies,U=>M.has(U))){let U=Sy[H].computeValue(t.options),$=Sy[H].computeValue({});U!==$&&(R[H]=Sy[H].computeValue(t.options))}return o4(A.compilerOptions,gK(gTe(R,k))),A}function gK(t){return Object.fromEntries(t)}function Bgt(t){if(Z(t)){if(Z(t)!==1)return t;if(t[0]!==Vgt)return t}}function jgt(t,n,a,u){if(!n)return ql;let m=Kse(t,a,n,u.useCaseSensitiveFileNames,u.getCurrentDirectory()),g=m.excludePattern&&U3(m.excludePattern,u.useCaseSensitiveFileNames),v=m.includeFilePattern&&U3(m.includeFilePattern,u.useCaseSensitiveFileNames);return v?g?x=>!(v.test(x)&&!g.test(x)):x=>!v.test(x):g?x=>g.test(x):ql}function HGe(t){switch(t.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return HGe(t.element);default:return t.type}}function khe(t,n){return Km(n,(a,u)=>{if(a===t)return u})}function gTe(t,n){return I8e(t,gW(),n)}function Wgt(t){return I8e(t,Rgt())}function I8e(t,{optionsNameMap:n},a){let u=new Map,m=a&&U0(a.useCaseSensitiveFileNames);for(let g in t)if(bf(t,g)){if(n.has(g)&&(n.get(g).category===j.Command_line_Options||n.get(g).category===j.Output_Formatting))continue;let v=t[g],x=n.get(g.toLowerCase());if(x){Se.assert(x.type!=="listOrElement");let k=HGe(x);k?x.type==="list"?u.set(g,v.map(T=>khe(T,k))):u.set(g,khe(v,k)):a&&x.isFilePath?u.set(g,j$(a.configFilePath,tu(v,Cc(a.configFilePath)),m)):a&&x.type==="list"&&x.element.isFilePath?u.set(g,v.map(T=>j$(a.configFilePath,tu(T,Cc(a.configFilePath)),m))):u.set(g,v)}}return u}function Lee(t,n){let a=yTe(t);return m();function u(g){return Array(g+1).join(" ")}function m(){let g=[],v=u(2);return AGe.forEach(x=>{if(!a.has(x.name))return;let k=a.get(x.name),T=R8e(x);k!==T?g.push(`${v}${x.name}: ${k}`):bf(vhe,x.name)&&g.push(`${v}${x.name}: ${T}`)}),g.join(n)+n}}function yTe(t){let n=nw(t,vhe);return gTe(n)}function N8e(t,n,a){let u=yTe(t);return v();function m(x){return Array(x+1).join(" ")}function g({category:x,name:k,isCommandLineOnly:T}){let I=[j.Command_line_Options,j.Editor_Support,j.Compiler_Diagnostics,j.Backwards_Compatibility,j.Watch_and_Build_Modes,j.Output_Formatting];return!T&&x!==void 0&&(!I.includes(x)||u.has(k))}function v(){let x=new Map;x.set(j.Projects,[]),x.set(j.Language_and_Environment,[]),x.set(j.Modules,[]),x.set(j.JavaScript_Support,[]),x.set(j.Emit,[]),x.set(j.Interop_Constraints,[]),x.set(j.Type_Checking,[]),x.set(j.Completeness,[]);for(let R of zS)if(g(R)){let H=x.get(R.category);H||x.set(R.category,H=[]),H.push(R)}let k=0,T=0,I=[];x.forEach((R,H)=>{I.length!==0&&I.push({value:""}),I.push({value:`/* ${ed(H)} */`});for(let U of R){let $;u.has(U.name)?$=`"${U.name}": ${JSON.stringify(u.get(U.name))}${(T+=1)===u.size?"":","}`:$=`// "${U.name}": ${JSON.stringify(R8e(U))},`,I.push({value:$,description:`/* ${U.description&&ed(U.description)||U.name} */`}),k=Math.max($.length,k)}});let A=m(2),M=[];M.push("{"),M.push(`${A}"compilerOptions": {`),M.push(`${A}${A}/* ${ed(j.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),M.push("");for(let R of I){let{value:H,description:U=""}=R;M.push(H&&`${A}${A}${H}${U&&m(k-H.length+2)+U}`)}if(n.length){M.push(`${A}},`),M.push(`${A}"files": [`);for(let R=0;Rtypeof $e=="object","object"),Ee=ne(se("files"));if(Ee){let $e=le==="no-prop"||ua(le)&&le.length===0,Ke=bf(M,"extends");if(Ee.length===0&&$e&&!Ke)if(n){let qe=v||"tsconfig.json",rt=j.The_files_list_in_config_file_0_is_empty,_t=DZ(n,"files",mt=>mt.initializer),ft=Y5(n,_t,rt,qe);I.push(ft)}else ae(j.The_files_list_in_config_file_0_is_empty,v||"tsconfig.json")}let xe=ne(se("include")),be=se("exclude"),Le=!1,fe=ne(be);if(be==="no-prop"){let $e=R.outDir,Ke=R.declarationDir;($e||Ke)&&(fe=Qn([$e,Ke],qe=>!!qe))}Ee===void 0&&xe===void 0&&(xe=[Vgt],Le=!0);let we,Ae,Ge,he;xe&&(we=bW(xe,I,!0,n,"include"),Ge=Ehe(we,U)||we),fe&&(Ae=bW(fe,I,!1,n,"exclude"),he=Ehe(Ae,U)||Ae);let Oe=Qn(Ee,Yu),Re=Ehe(Oe,U)||Oe;return{filesSpecs:Ee,includeSpecs:xe,excludeSpecs:fe,validatedFilesSpec:Re,validatedIncludeSpecs:Ge,validatedExcludeSpecs:he,validatedFilesSpecBeforeSubstitution:Oe,validatedIncludeSpecsBeforeSubstitution:we,validatedExcludeSpecsBeforeSubstitution:Ae,pathPatterns:void 0,isDefaultIncludeSpec:Le}}function re(le){let Ee=MU($,le,R,a,k);return qGe(Ee,FU(M),x)&&I.push($ae($,v)),Ee}function X(le){let Ee,xe=_e("references",be=>typeof be=="object","object");if(ua(xe))for(let be of xe)typeof be.path!="string"?ae(j.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(Ee||(Ee=[])).push({path:tu(be.path,le),originalPath:be.path,prepend:be.prepend,circular:be.circular});return Ee}function ne(le){return ua(le)?le:void 0}function se(le){return _e(le,Yu,"string")}function _e(le,Ee,xe){if(bf(M,le)&&!yK(M[le]))if(ua(M[le])){let be=M[le];return!n&&!Yt(be,Ee)&&I.push(Th(j.Compiler_option_0_requires_a_value_of_type_1,le,xe)),be}else return ae(j.Compiler_option_0_requires_a_value_of_type_1,le,"Array"),"not-array";return"no-prop"}function ae(le,...Ee){n||I.push(Th(le,...Ee))}}function qae(t,n){return JGe(t,y8e,n)}function JGe(t,n,a){if(!t)return t;let u;for(let g of n)if(t[g.name]!==void 0){let v=t[g.name];switch(g.type){case"string":Se.assert(g.isFilePath),Fee(v)&&m(g,Hgt(v,a));break;case"list":Se.assert(g.element.isFilePath);let x=Ehe(v,a);x&&m(g,x);break;case"object":Se.assert(g.name==="paths");let k=Dhe(v,a);k&&m(g,k);break;default:Se.fail("option type not supported")}}return u||t;function m(g,v){(u??(u=o4({},t)))[g.name]=v}}var A8e="${configDir}";function Fee(t){return Yu(t)&&xl(t,A8e,!0)}function Hgt(t,n){return tu(t.replace(A8e,"./"),n)}function Ehe(t,n){if(!t)return t;let a;return t.forEach((u,m)=>{Fee(u)&&((a??(a=t.slice()))[m]=Hgt(u,n))}),a}function Dhe(t,n){let a;return Zy(t).forEach(m=>{if(!ua(t[m]))return;let g=Ehe(t[m],n);g&&((a??(a=o4({},t)))[m]=g)}),a}function P8e(t){return t.code===j.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function $ae({includeSpecs:t,excludeSpecs:n},a){return Th(j.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,a||"tsconfig.json",JSON.stringify(t||[]),JSON.stringify(n||[]))}function qGe(t,n,a){return t.length===0&&n&&(!a||a.length===0)}function FU(t){return!bf(t,"files")&&!bf(t,"references")}function Ihe(t,n,a,u,m){let g=u.length;return qGe(t,m)?u.push($ae(a,n)):ks(u,v=>!P8e(v)),g!==u.length}function STe(t){return!!t.options}function $Ge(t,n,a,u,m,g,v,x){var k;u=Ch(u);let T=tu(m||"",u);if(g.includes(T))return v.push(Th(j.Circularity_detected_while_resolving_configuration_Colon_0,[...g,T].join(" -> "))),{raw:t||D8e(n,v)};let I=t?Ugt(t,a,u,m,v):Jgt(n,a,u,m,v);if((k=I.options)!=null&&k.paths&&(I.options.pathsBasePath=u),I.extendedConfigPath){g=g.concat([T]);let M={options:{}};Yu(I.extendedConfigPath)?A(M,I.extendedConfigPath):I.extendedConfigPath.forEach(R=>A(M,R)),M.include&&(I.raw.include=M.include),M.exclude&&(I.raw.exclude=M.exclude),M.files&&(I.raw.files=M.files),I.raw.compileOnSave===void 0&&M.compileOnSave&&(I.raw.compileOnSave=M.compileOnSave),n&&M.extendedSourceFiles&&(n.extendedSourceFiles=tc(M.extendedSourceFiles.keys())),I.options=o4(M.options,I.options),I.watchOptions=I.watchOptions&&M.watchOptions?o4(M.watchOptions,I.watchOptions):I.watchOptions||M.watchOptions}return I;function A(M,R){let H=R9t(n,R,a,g,v,x,M);if(H&&STe(H)){let U=H.raw,$,K=re=>{I.raw[re]||U[re]&&(M[re]=$i(U[re],X=>Fee(X)||LC(X)?X:Ps($||($=lH(Cc(R),u,U0(a.useCaseSensitiveFileNames))),X)))};K("include"),K("exclude"),K("files"),U.compileOnSave!==void 0&&(M.compileOnSave=U.compileOnSave),o4(M.options,H.options),M.watchOptions=M.watchOptions&&H.watchOptions?o4({},M.watchOptions,H.watchOptions):M.watchOptions||H.watchOptions}}}function Ugt(t,n,a,u,m){bf(t,"excludes")&&m.push(Th(j.Unknown_option_excludes_Did_you_mean_exclude));let g=Ahe(t.compilerOptions,a,m,u),v=XGe(t.typeAcquisition,a,m,u),x=j9t(t.watchOptions,a,m);t.compileOnSave=B9t(t,a,m);let k=t.extends||t.extends===""?xTe(t.extends,n,a,u,m):void 0;return{raw:t,options:g,watchOptions:x,typeAcquisition:v,extendedConfigPath:k}}function xTe(t,n,a,u,m,g,v,x){let k,T=u?The(u,a):a;if(Yu(t))k=Nhe(t,n,T,m,v,x);else if(ua(t)){k=[];for(let I=0;Ire.name===R)&&(T=ar(T,U.name))))}}function Nhe(t,n,a,u,m,g){if(t=Ch(t),LC(t)||xl(t,"./")||xl(t,"../")){let x=tu(t,a);if(!n.fileExists(x)&&!xh(x,".json")&&(x=`${x}.json`,!n.fileExists(x))){u.push(Y5(g,m,j.File_0_not_found,t));return}return x}let v=$8e(t,Ps(a,"tsconfig.json"),n);if(v.resolvedModule)return v.resolvedModule.resolvedFileName;t===""?u.push(Y5(g,m,j.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):u.push(Y5(g,m,j.File_0_not_found,t))}function R9t(t,n,a,u,m,g,v){let x=a.useCaseSensitiveFileNames?n:OS(n),k,T,I;if(g&&(k=g.get(x))?{extendedResult:T,extendedConfig:I}=k:(T=fTe(n,A=>a.readFile(A)),T.parseDiagnostics.length||(I=$Ge(void 0,T,a,Cc(n),sg(n),u,m,g)),g&&g.set(x,{extendedResult:T,extendedConfig:I})),t&&((v.extendedSourceFiles??(v.extendedSourceFiles=new Set)).add(T.fileName),T.extendedSourceFiles))for(let A of T.extendedSourceFiles)v.extendedSourceFiles.add(A);if(T.parseDiagnostics.length){m.push(...T.parseDiagnostics);return}return I}function B9t(t,n,a){if(!bf(t,ghe.name))return!1;let u=vW(ghe,t.compileOnSave,n,a);return typeof u=="boolean"&&u}function GGe(t,n,a){let u=[];return{options:Ahe(t,n,u,a),errors:u}}function KGe(t,n,a){let u=[];return{options:XGe(t,n,u,a),errors:u}}function Mee(t){return t&&sg(t)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function Ahe(t,n,a,u){let m=Mee(u);return O8e(nC(),t,n,m,She,a),u&&(m.configFilePath=Ch(u)),m}function L8e(t){return{enable:!!t&&sg(t)==="jsconfig.json",include:[],exclude:[]}}function XGe(t,n,a,u){let m=L8e(u);return O8e(w8e(),t,n,m,RGe,a),m}function j9t(t,n,a){return O8e(Uae(),t,n,void 0,C8e,a)}function O8e(t,n,a,u,m,g){if(n){for(let v in n){let x=t.get(v);x?(u||(u={}))[x.name]=vW(x,n[v],a,g):g.push(Nee(v,m))}return u}}function Y5(t,n,a,...u){return t&&n?ss(t,n,a,...u):Th(a,...u)}function vW(t,n,a,u,m,g,v){if(t.isCommandLineOnly){u.push(Y5(v,m?.name,j.Option_0_can_only_be_specified_on_command_line,t.name));return}if(VGe(t,n)){let x=t.type;if(x==="list"&&ua(n))return QGe(t,n,a,u,m,g,v);if(x==="listOrElement")return ua(n)?QGe(t,n,a,u,m,g,v):vW(t.element,n,a,u,m,g,v);if(!Yu(t.type))return YGe(t,n,u,g,v);let k=vK(t,n,u,g,v);return yK(k)?k:W9t(t,a,k)}else u.push(Y5(v,g,j.Compiler_option_0_requires_a_value_of_type_1,t.name,mTe(t)))}function W9t(t,n,a){return t.isFilePath&&(a=Ch(a),a=Fee(a)?a:tu(a,n),a===""&&(a=".")),a}function vK(t,n,a,u,m){var g;if(yK(n))return;let v=(g=t.extraValidation)==null?void 0:g.call(t,n);if(!v)return n;a.push(Y5(m,u,...v))}function YGe(t,n,a,u,m){if(yK(n))return;let g=n.toLowerCase(),v=t.type.get(g);if(v!==void 0)return vK(t,v,a,u,m);a.push(v8e(t,(x,...k)=>Y5(m,u,x,...k)))}function QGe(t,n,a,u,m,g,v){return Qn($i(n,(x,k)=>vW(t.element,x,a,u,m,g?.elements[k],v)),x=>t.listPreserveFalsyValues?!0:!!x)}var qgt=/(?:^|\/)\*\*\/?$/,$gt=/^[^*?]*(?=\/[^/]*[*?])/;function MU(t,n,a,u,m=F){n=Kd(n);let g=U0(u.useCaseSensitiveFileNames),v=new Map,x=new Map,k=new Map,{validatedFilesSpec:T,validatedIncludeSpecs:I,validatedExcludeSpecs:A}=t,M=qj(a,m),R=L5(a,M);if(T)for(let K of T){let re=tu(K,n);v.set(g(re),re)}let H;if(I&&I.length>0)for(let K of u.readDirectory(n,cr(R),A,I,void 0)){if(Wh(K,".json")){if(!H){let ne=I.filter(_e=>xh(_e,".json")),se=$i(XZ(ne,n,"files"),_e=>`^${_e}$`);H=se?se.map(_e=>U3(_e,u.useCaseSensitiveFileNames)):F}if(_n(H,ne=>ne.test(K))!==-1){let ne=g(K);!v.has(ne)&&!k.has(ne)&&k.set(ne,K)}continue}if(z9t(K,v,x,M,g))continue;V9t(K,x,M,g);let re=g(K);!v.has(re)&&!x.has(re)&&x.set(re,K)}let U=tc(v.values()),$=tc(x.values());return U.concat($,tc(k.values()))}function F8e(t,n,a,u,m){let{validatedFilesSpec:g,validatedIncludeSpecs:v,validatedExcludeSpecs:x}=n;if(!Z(v)||!Z(x))return!1;a=Kd(a);let k=U0(u);if(g){for(let T of g)if(k(tu(T,a))===t)return!1}return hM(t,x,u,m,a)}function Ggt(t){let n=xl(t,"**/")?0:t.indexOf("/**/");return n===-1?!1:(xh(t,"/..")?t.length:t.lastIndexOf("/../"))>n}function Gae(t,n,a,u){return hM(t,Qn(n,m=>!Ggt(m)),a,u)}function hM(t,n,a,u,m){let g=Gse(n,Ps(Kd(u),m),"exclude"),v=g&&U3(g,a);return v?v.test(t)?!0:!B$(t)&&v.test(Fs(t)):!1}function bW(t,n,a,u,m){return t.filter(v=>{if(!Yu(v))return!1;let x=ZGe(v,a);return x!==void 0&&n.push(g(...x)),x===void 0});function g(v,x){let k=g5(u,m,x);return Y5(u,k,v,x)}}function ZGe(t,n){if(Se.assert(typeof t=="string"),n&&qgt.test(t))return[j.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,t];if(Ggt(t))return[j.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,t]}function bK({validatedIncludeSpecs:t,validatedExcludeSpecs:n},a,u){let m=Gse(n,a,"exclude"),g=m&&new RegExp(m,u?"":"i"),v={},x=new Map;if(t!==void 0){let k=[];for(let T of t){let I=Kd(Ps(a,T));if(g&&g.test(I))continue;let A=Kgt(I,u);if(A){let{key:M,path:R,flags:H}=A,U=x.get(M),$=U!==void 0?v[U]:void 0;($===void 0||$gg(t,v)?v:void 0);if(!g)return!1;for(let v of g){if(Wh(t,v)&&(v!==".ts"||!Wh(t,".d.ts")))return!1;let x=m(J3(t,v));if(n.has(x)||a.has(x)){if(v===".d.ts"&&(Wh(t,".js")||Wh(t,".jsx")))continue;return!0}}return!1}function V9t(t,n,a,u){let m=ee(a,g=>gg(t,g)?g:void 0);if(m)for(let g=m.length-1;g>=0;g--){let v=m[g];if(Wh(t,v))return;let x=u(J3(t,v));n.delete(x)}}function SK(t){let n={};for(let a in t)if(bf(t,a)){let u=b8e(a);u!==void 0&&(n[a]=CTe(t[a],u))}return n}function CTe(t,n){if(t===void 0)return t;switch(n.type){case"object":return"";case"string":return"";case"number":return typeof t=="number"?t:"";case"boolean":return typeof t=="boolean"?t:"";case"listOrElement":if(!ua(t))return CTe(t,n.element);case"list":let a=n.element;return ua(t)?Dc(t,u=>CTe(u,a)):"";default:return Km(n.type,(u,m)=>{if(u===t)return m})}}function R8e(t){switch(t.type){case"number":return 1;case"boolean":return!0;case"string":let n=t.defaultValueDescription;return t.isFilePath?`./${n&&typeof n=="string"?n:""}`:"";case"list":return[];case"listOrElement":return R8e(t.element);case"object":return{};default:let a=c0(t.type.keys());return a!==void 0?a:Se.fail("Expected 'option.type' to have entries.")}}function su(t,n,...a){t.trace(sU(n,...a))}function sF(t,n){return!!t.traceResolution&&n.trace!==void 0}function RU(t,n,a){let u;if(n&&t){let m=t.contents.packageJsonContent;typeof m.name=="string"&&typeof m.version=="string"&&(u={name:m.name,subModuleName:n.path.slice(t.packageDirectory.length+uh.length),version:m.version,peerDependencies:Hee(t,a)})}return n&&{path:n.path,extension:n.ext,packageId:u,resolvedUsingTsExtension:n.resolvedUsingTsExtension}}function Phe(t){return RU(void 0,t,void 0)}function Xgt(t){if(t)return Se.assert(t.packageId===void 0),{path:t.path,ext:t.extension,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function Kae(t){let n=[];return t&1&&n.push("TypeScript"),t&2&&n.push("JavaScript"),t&4&&n.push("Declaration"),t&8&&n.push("JSON"),n.join(", ")}function H9t(t){let n=[];return t&1&&n.push(...Pme),t&2&&n.push(...P5),t&4&&n.push(...wwe),t&8&&n.push(".json"),n}function eKe(t){if(t)return Se.assert(eae(t.extension)),{fileName:t.path,packageId:t.packageId}}function Ygt(t,n,a,u,m,g,v,x,k){if(!v.resultFromCache&&!v.compilerOptions.preserveSymlinks&&n&&a&&!n.originalPath&&!l0(t)){let{resolvedFileName:T,originalPath:I}=wTe(n.path,v.host,v.traceEnabled);I&&(n={...n,path:T,originalPath:I})}return B8e(n,a,u,m,g,v.resultFromCache,x,k)}function B8e(t,n,a,u,m,g,v,x){return g?v?.isReadonly?{...g,failedLookupLocations:au(g.failedLookupLocations,a),affectingLocations:au(g.affectingLocations,u),resolutionDiagnostics:au(g.resolutionDiagnostics,m)}:(g.failedLookupLocations=BU(g.failedLookupLocations,a),g.affectingLocations=BU(g.affectingLocations,u),g.resolutionDiagnostics=BU(g.resolutionDiagnostics,m),g):{resolvedModule:t&&{resolvedFileName:t.path,originalPath:t.originalPath===!0?void 0:t.originalPath,extension:t.extension,isExternalLibraryImport:n,packageId:t.packageId,resolvedUsingTsExtension:!!t.resolvedUsingTsExtension},failedLookupLocations:xK(a),affectingLocations:xK(u),resolutionDiagnostics:xK(m),alternateResult:x}}function xK(t){return t.length?t:void 0}function BU(t,n){return n?.length?t?.length?(t.push(...n),t):n:t}function au(t,n){return t?.length?n.length?[...t,...n]:t.slice():xK(n)}function R4(t,n,a,u){if(!bf(t,n)){u.traceEnabled&&su(u.host,j.package_json_does_not_have_a_0_field,n);return}let m=t[n];if(typeof m!==a||m===null){u.traceEnabled&&su(u.host,j.Expected_type_of_0_field_in_package_json_to_be_1_got_2,n,a,m===null?"null":typeof m);return}return m}function Q5(t,n,a,u){let m=R4(t,n,"string",u);if(m===void 0)return;if(!m){u.traceEnabled&&su(u.host,j.package_json_had_a_falsy_0_field,n);return}let g=Kd(Ps(a,m));return u.traceEnabled&&su(u.host,j.package_json_has_0_field_1_that_references_2,n,m,g),g}function j8e(t,n,a){return Q5(t,"typings",n,a)||Q5(t,"types",n,a)}function Qgt(t,n,a){return Q5(t,"tsconfig",n,a)}function kTe(t,n,a){return Q5(t,"main",n,a)}function U9t(t,n){let a=R4(t,"typesVersions","object",n);if(a!==void 0)return n.traceEnabled&&su(n.host,j.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),a}function tKe(t,n){let a=U9t(t,n);if(a===void 0)return;if(n.traceEnabled)for(let v in a)bf(a,v)&&!vCe.tryParse(v)&&su(n.host,j.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,v);let u=Lhe(a);if(!u){n.traceEnabled&&su(n.host,j.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,N);return}let{version:m,paths:g}=u;if(typeof g!="object"){n.traceEnabled&&su(n.host,j.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${m}']`,"object",typeof g);return}return u}var W8e;function Lhe(t){W8e||(W8e=new ve(L));for(let n in t){if(!bf(t,n))continue;let a=vCe.tryParse(n);if(a!==void 0&&a.test(W8e))return{version:n,paths:t[n]}}}function gM(t,n){if(t.typeRoots)return t.typeRoots;let a;if(t.configFilePath?a=Cc(t.configFilePath):n.getCurrentDirectory&&(a=n.getCurrentDirectory()),a!==void 0)return Ree(a)}function Ree(t){let n;return T2(Kd(t),a=>{let u=Ps(a,iKe);(n??(n=[])).push(u)}),n}var iKe=Ps("node_modules","@types");function nKe(t,n,a){let u=typeof a.useCaseSensitiveFileNames=="function"?a.useCaseSensitiveFileNames():a.useCaseSensitiveFileNames;return fk(t,n,!u)===0}function wTe(t,n,a){let u=n0t(t,n,a),m=nKe(t,u,n);return{resolvedFileName:m?t:u,originalPath:m?void 0:t}}function Zgt(t,n,a){let u=xh(t,"/node_modules/@types")||xh(t,"/node_modules/@types/")?MTe(n,a):n;return Ps(t,u)}function rKe(t,n,a,u,m,g,v){Se.assert(typeof t=="string","Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.");let x=sF(a,u);m&&(a=m.commandLine.options);let k=n?Cc(n):void 0,T=k?g?.getFromDirectoryCache(t,v,k,m):void 0;if(!T&&k&&!l0(t)&&(T=g?.getFromNonRelativeNameCache(t,v,k,m)),T)return x&&(su(u,j.Resolving_type_reference_directive_0_containing_file_1,t,n),m&&su(u,j.Using_compiler_options_of_project_reference_redirect_0,m.sourceFile.fileName),su(u,j.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,t,k),se(T)),T;let I=gM(a,u);x&&(n===void 0?I===void 0?su(u,j.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,t):su(u,j.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,t,I):I===void 0?su(u,j.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,t,n):su(u,j.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,t,n,I),m&&su(u,j.Using_compiler_options_of_project_reference_redirect_0,m.sourceFile.fileName));let A=[],M=[],R=oKe(a);v!==void 0&&(R|=30);let H=S1(a);v===99&&3<=H&&H<=99&&(R|=32);let U=R&8?yM(a,v):[],$=[],K={compilerOptions:a,host:u,traceEnabled:x,failedLookupLocations:A,affectingLocations:M,packageJsonInfoCache:g,features:R,conditions:U,requestContainingDirectory:k,reportDiagnostic:le=>void $.push(le),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},re=_e(),X=!0;re||(re=ae(),X=!1);let ne;if(re){let{fileName:le,packageId:Ee}=re,xe=le,be;a.preserveSymlinks||({resolvedFileName:xe,originalPath:be}=wTe(le,u,x)),ne={primary:X,resolvedFileName:xe,originalPath:be,packageId:Ee,isExternalLibraryImport:vM(le)}}return T={resolvedTypeReferenceDirective:ne,failedLookupLocations:xK(A),affectingLocations:xK(M),resolutionDiagnostics:xK($)},k&&g&&!g.isReadonly&&(g.getOrCreateCacheForDirectory(k,m).set(t,v,T),l0(t)||g.getOrCreateCacheForNonRelativeName(t,v,m).set(k,T)),x&&se(T),T;function se(le){var Ee;(Ee=le.resolvedTypeReferenceDirective)!=null&&Ee.resolvedFileName?le.resolvedTypeReferenceDirective.packageId?su(u,j.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,t,le.resolvedTypeReferenceDirective.resolvedFileName,h4(le.resolvedTypeReferenceDirective.packageId),le.resolvedTypeReferenceDirective.primary):su(u,j.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,t,le.resolvedTypeReferenceDirective.resolvedFileName,le.resolvedTypeReferenceDirective.primary):su(u,j.Type_reference_directive_0_was_not_resolved,t)}function _e(){if(I&&I.length)return x&&su(u,j.Resolving_with_primary_search_path_0,I.join(", ")),Je(I,le=>{let Ee=Zgt(le,t,K),xe=fN(le,u);if(!xe&&x&&su(u,j.Directory_0_does_not_exist_skipping_all_lookups_in_it,le),a.typeRoots){let be=WU(4,Ee,!xe,K);if(be){let Le=Mhe(be.path),fe=Le?bM(Le,!1,K):void 0;return eKe(RU(fe,be,K))}}return eKe(Bhe(4,Ee,!xe,K))});x&&su(u,j.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function ae(){let le=n&&Cc(n);if(le!==void 0){let Ee;if(!a.typeRoots||!xh(n,KU))if(x&&su(u,j.Looking_up_in_node_modules_folder_initial_location_0,le),l0(t)){let{path:xe}=i0t(le,t);Ee=Fhe(4,xe,!1,K,!0)}else{let xe=pKe(4,t,le,K,void 0,void 0);Ee=xe&&xe.value}else x&&su(u,j.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);return eKe(Ee)}else x&&su(u,j.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function oKe(t){let n=0;switch(S1(t)){case 3:n=30;break;case 99:n=30;break;case 100:n=30;break}return t.resolvePackageJsonExports?n|=8:t.resolvePackageJsonExports===!1&&(n&=-9),t.resolvePackageJsonImports?n|=2:t.resolvePackageJsonImports===!1&&(n&=-3),n}function yM(t,n){let a=S1(t);if(n===void 0){if(a===100)n=99;else if(a===2)return[]}let u=n===99?["import"]:["require"];return t.noDtsResolution||u.push("types"),a!==100&&u.push("node"),Pl(u,t.customConditions)}function z8e(t,n,a,u,m){let g=e9(m?.getPackageJsonInfoCache(),u,a);return T2(n,v=>{if(sg(v)!=="node_modules"){let x=Ps(v,"node_modules"),k=Ps(x,t);return bM(k,!1,g)}})}function Xae(t,n){if(t.types)return t.types;let a=[];if(n.directoryExists&&n.getDirectories){let u=gM(t,n);if(u){for(let m of u)if(n.directoryExists(m))for(let g of n.getDirectories(m)){let v=Kd(g),x=Ps(m,v,"package.json");if(!(n.fileExists(x)&&IG(x,n).typings===null)){let T=sg(v);T.charCodeAt(0)!==46&&a.push(T)}}}}return a}function CK(t){return!!t?.contents}function kK(t){return!!t&&!t.contents}function sKe(t){var n;if(t===null||typeof t!="object")return""+t;if(ua(t))return`[${(n=t.map(u=>sKe(u)))==null?void 0:n.join(",")}]`;let a="{";for(let u in t)bf(t,u)&&(a+=`${u}: ${sKe(t[u])}`);return a+"}"}function V8e(t,n){return n.map(a=>sKe(lU(t,a))).join("|")+`|${t.pathsBasePath}`}function e0t(t,n){let a=new Map,u=new Map,m=new Map;return t&&a.set(t,m),{getMapOfCacheRedirects:g,getOrCreateMapOfCacheRedirects:v,update:x,clear:T,getOwnMap:()=>m};function g(A){return A?k(A.commandLine.options,!1):m}function v(A){return A?k(A.commandLine.options,!0):m}function x(A){t!==A&&(t?m=k(A,!0):a.set(A,m),t=A)}function k(A,M){let R=a.get(A);if(R)return R;let H=I(A);if(R=u.get(H),!R){if(t){let U=I(t);U===H?R=m:u.has(U)||u.set(U,m)}M&&(R??(R=new Map)),R&&u.set(H,R)}return R&&a.set(A,R),R}function T(){let A=t&&n.get(t);m.clear(),a.clear(),n.clear(),u.clear(),t&&(A&&n.set(t,A),a.set(t,m))}function I(A){let M=n.get(A);return M||n.set(A,M=V8e(A,oTe)),M}}function t0t(t,n){let a;return{getPackageJsonInfo:u,setPackageJsonInfo:m,clear:g,getInternalMap:v};function u(x){return a?.get(dd(x,t,n))}function m(x,k){(a||(a=new Map)).set(dd(x,t,n),k)}function g(){a=void 0}function v(){return a}}function aKe(t,n,a,u){let m=t.getOrCreateMapOfCacheRedirects(n),g=m.get(a);return g||(g=u(),m.set(a,g)),g}function cKe(t,n,a,u){let m=e0t(a,u);return{getFromDirectoryCache:k,getOrCreateCacheForDirectory:x,clear:g,update:v,directoryToModuleNameMap:m};function g(){m.clear()}function v(T){m.update(T)}function x(T,I){let A=dd(T,t,n);return aKe(m,I,A,()=>aI())}function k(T,I,A,M){var R,H;let U=dd(A,t,n);return(H=(R=m.getMapOfCacheRedirects(M))==null?void 0:R.get(U))==null?void 0:H.get(T,I)}}function wK(t,n){return n===void 0?t:`${n}|${t}`}function aI(){let t=new Map,n=new Map,a={get(m,g){return t.get(u(m,g))},set(m,g,v){return t.set(u(m,g),v),a},delete(m,g){return t.delete(u(m,g)),a},has(m,g){return t.has(u(m,g))},forEach(m){return t.forEach((g,v)=>{let[x,k]=n.get(v);return m(g,x,k)})},size(){return t.size}};return a;function u(m,g){let v=wK(m,g);return n.set(v,[m,g]),v}}function H8e(t){return t.resolvedModule&&(t.resolvedModule.originalPath||t.resolvedModule.resolvedFileName)}function TTe(t){return t.resolvedTypeReferenceDirective&&(t.resolvedTypeReferenceDirective.originalPath||t.resolvedTypeReferenceDirective.resolvedFileName)}function ETe(t,n,a,u,m){let g=e0t(a,m);return{getFromNonRelativeNameCache:k,getOrCreateCacheForNonRelativeName:T,clear:v,update:x};function v(){g.clear()}function x(A){g.update(A)}function k(A,M,R,H){var U,$;return Se.assert(!l0(A)),($=(U=g.getMapOfCacheRedirects(H))==null?void 0:U.get(wK(A,M)))==null?void 0:$.get(R)}function T(A,M,R){return Se.assert(!l0(A)),aKe(g,R,wK(A,M),I)}function I(){let A=new Map;return{get:M,set:R};function M(U){return A.get(dd(U,t,n))}function R(U,$){let K=dd(U,t,n);if(A.has(K))return;A.set(K,$);let re=u($),X=re&&H(K,re),ne=K;for(;ne!==X;){let se=Cc(ne);if(se===ne||A.has(se))break;A.set(se,$),ne=se}}function H(U,$){let K=dd(Cc($),t,n),re=0,X=Math.min(U.length,K.length);for(;reu,clearAllExceptPackageJsonInfoCache:T,optionsToRedirectsKey:g};function k(){T(),u.clear()}function T(){v.clear(),x.clear()}function I(A){v.update(A),x.update(A)}}function jU(t,n,a,u,m){let g=U8e(t,n,a,u,H8e,m);return g.getOrCreateCacheForModuleName=(v,x,k)=>g.getOrCreateCacheForNonRelativeName(v,x,k),g}function Bee(t,n,a,u,m){return U8e(t,n,a,u,TTe,m)}function Yae(t){return{moduleResolution:2,traceResolution:t.traceResolution}}function DTe(t,n,a,u,m){return TK(t,n,Yae(a),u,m)}function lKe(t,n,a,u){let m=Cc(n);return a.getFromDirectoryCache(t,u,m,void 0)}function TK(t,n,a,u,m,g,v){let x=sF(a,u);g&&(a=g.commandLine.options),x&&(su(u,j.Resolving_module_0_from_1,t,n),g&&su(u,j.Using_compiler_options_of_project_reference_redirect_0,g.sourceFile.fileName));let k=Cc(n),T=m?.getFromDirectoryCache(t,v,k,g);if(T)x&&su(u,j.Resolution_for_module_0_was_found_in_cache_from_location_1,t,k);else{let I=a.moduleResolution;switch(I===void 0?(I=S1(a),x&&su(u,j.Module_resolution_kind_is_not_specified_using_0,aH[I])):x&&su(u,j.Explicitly_specified_module_resolution_kind_Colon_0,aH[I]),I){case 3:T=zee(t,n,a,u,m,g,v);break;case 99:T=ITe(t,n,a,u,m,g,v);break;case 2:T=SW(t,n,a,u,m,g,v?yM(a,v):void 0);break;case 1:T=gKe(t,n,a,u,m,g);break;case 100:T=q8e(t,n,a,u,m,g,v?yM(a,v):void 0);break;default:return Se.fail(`Unexpected moduleResolution: ${I}`)}m&&!m.isReadonly&&(m.getOrCreateCacheForDirectory(k,g).set(t,v,T),l0(t)||m.getOrCreateCacheForNonRelativeName(t,v,g).set(k,T))}return x&&(T.resolvedModule?T.resolvedModule.packageId?su(u,j.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,t,T.resolvedModule.resolvedFileName,h4(T.resolvedModule.packageId)):su(u,j.Module_name_0_was_successfully_resolved_to_1,t,T.resolvedModule.resolvedFileName):su(u,j.Module_name_0_was_not_resolved,t)),T}function jee(t,n,a,u,m){let g=Wee(t,n,u,m);return g?g.value:l0(n)?J9t(t,n,a,u,m):q9t(t,n,u,m)}function Wee(t,n,a,u){var m;let{baseUrl:g,paths:v,configFile:x}=u.compilerOptions;if(v&&!t_(n)){u.traceEnabled&&(g&&su(u.host,j.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,g,n),su(u.host,j.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,n));let k=UA(u.compilerOptions,u.host),T=x?.configFileSpecs?(m=x.configFileSpecs).pathPatterns||(m.pathPatterns=Zse(v)):void 0;return zhe(t,n,k,v,T,a,!1,u)}}function J9t(t,n,a,u,m){if(!m.compilerOptions.rootDirs)return;m.traceEnabled&&su(m.host,j.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,n);let g=Kd(Ps(a,n)),v,x;for(let k of m.compilerOptions.rootDirs){let T=Kd(k);xh(T,uh)||(T+=uh);let I=xl(g,T)&&(x===void 0||x.length(t[t.None=0]="None",t[t.Imports=2]="Imports",t[t.SelfName=4]="SelfName",t[t.Exports=8]="Exports",t[t.ExportsPatternTrailers=16]="ExportsPatternTrailers",t[t.AllFeatures=30]="AllFeatures",t[t.Node16Default=30]="Node16Default",t[t.NodeNextDefault=30]="NodeNextDefault",t[t.BundlerDefault=30]="BundlerDefault",t[t.EsmMode=32]="EsmMode",t))(J8e||{});function zee(t,n,a,u,m,g,v){return NTe(30,t,n,a,u,m,g,v)}function ITe(t,n,a,u,m,g,v){return NTe(30,t,n,a,u,m,g,v)}function NTe(t,n,a,u,m,g,v,x,k){let T=Cc(a),I=x===99?32:0,A=u.noDtsResolution?3:7;return Q6(u)&&(A|=8),Ohe(t|I,n,T,u,m,g,A,!1,v,k)}function ATe(t,n,a){return Ohe(0,t,n,{moduleResolution:2,allowJs:!0},a,void 0,2,!1,void 0,void 0)}function q8e(t,n,a,u,m,g,v){let x=Cc(n),k=a.noDtsResolution?3:7;return Q6(a)&&(k|=8),Ohe(oKe(a),t,x,a,u,m,k,!1,g,v)}function SW(t,n,a,u,m,g,v,x){let k;return x?k=8:a.noDtsResolution?(k=3,Q6(a)&&(k|=8)):k=Q6(a)?15:7,Ohe(v?30:0,t,Cc(n),a,u,m,k,!!x,g,v)}function $8e(t,n,a){return Ohe(30,t,Cc(n),{moduleResolution:99},a,void 0,8,!0,void 0,void 0)}function Ohe(t,n,a,u,m,g,v,x,k,T){var I,A,M,R,H;let U=sF(u,m),$=[],K=[],re=S1(u);T??(T=yM(u,re===100||re===2?void 0:t&32?99:1));let X=[],ne={compilerOptions:u,host:m,traceEnabled:U,failedLookupLocations:$,affectingLocations:K,packageJsonInfoCache:g,features:t,conditions:T??F,requestContainingDirectory:a,reportDiagnostic:le=>void X.push(le),isConfigLookup:x,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};U&&Uj(re)&&su(m,j.Resolving_in_0_mode_with_conditions_1,t&32?"ESM":"CJS",ne.conditions.map(le=>`'${le}'`).join(", "));let se;if(re===2){let le=v&5,Ee=v&-6;se=le&&ae(le,ne)||Ee&&ae(Ee,ne)||void 0}else se=ae(v,ne);let _e;if(ne.resolvedPackageDirectory&&!x&&!l0(n)){let le=se?.value&&v&5&&!OTe(5,se.value.resolved.extension);if((I=se?.value)!=null&&I.isExternalLibraryImport&&le&&t&8&&T?.includes("import")){aO(ne,j.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);let Ee={...ne,features:ne.features&-9,reportDiagnostic:Za},xe=ae(v&5,Ee);(A=xe?.value)!=null&&A.isExternalLibraryImport&&(_e=xe.value.resolved.path)}else if((!se?.value||le)&&re===2){aO(ne,j.Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update);let Ee={...ne.compilerOptions,moduleResolution:100},xe={...ne,compilerOptions:Ee,features:30,conditions:yM(Ee),reportDiagnostic:Za},be=ae(v&5,xe);(M=be?.value)!=null&&M.isExternalLibraryImport&&(_e=be.value.resolved.path)}}return Ygt(n,(R=se?.value)==null?void 0:R.resolved,(H=se?.value)==null?void 0:H.isExternalLibraryImport,$,K,X,ne,g,_e);function ae(le,Ee){let be=jee(le,n,a,(Le,fe,we,Ae)=>Fhe(Le,fe,we,Ae,!0),Ee);if(be)return yw({resolved:be,isExternalLibraryImport:vM(be.path)});if(l0(n)){let{path:Le,parts:fe}=i0t(a,n),we=Fhe(le,Le,!1,Ee,!0);return we&&yw({resolved:we,isExternalLibraryImport:dr(fe,"node_modules")})}else{let Le;if(t&2&&xl(n,"#")&&(Le=tce(le,n,a,Ee,g,k)),!Le&&t&4&&(Le=$9t(le,n,a,Ee,g,k)),!Le){if(n.includes(":")){U&&su(m,j.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,n,Kae(le));return}U&&su(m,j.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,n,Kae(le)),Le=pKe(le,n,a,Ee,g,k)}return le&4&&(Le??(Le=yKe(n,Ee))),Le&&{value:Le.value&&{resolved:Le.value,isExternalLibraryImport:!0}}}}}function i0t(t,n){let a=Ps(t,n),u=Uv(a),m=Y_(u);return{path:m==="."||m===".."?Fs(Kd(a)):Kd(a),parts:u}}function n0t(t,n,a){if(!n.realpath)return t;let u=Kd(n.realpath(t));return a&&su(n,j.Resolving_real_path_for_0_result_1,t,u),u}function Fhe(t,n,a,u,m){if(u.traceEnabled&&su(u.host,j.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,n,Kae(t)),!h3(n)){if(!a){let v=Cc(n);fN(v,u.host)||(u.traceEnabled&&su(u.host,j.Directory_0_does_not_exist_skipping_all_lookups_in_it,v),a=!0)}let g=WU(t,n,a,u);if(g){let v=m?Mhe(g.path):void 0,x=v?bM(v,!1,u):void 0;return RU(x,g,u)}}if(a||fN(n,u.host)||(u.traceEnabled&&su(u.host,j.Directory_0_does_not_exist_skipping_all_lookups_in_it,n),a=!0),!(u.features&32))return Bhe(t,n,a,u,m)}var nP="/node_modules/";function vM(t){return t.includes(nP)}function Mhe(t,n){let a=Kd(t),u=a.lastIndexOf(nP);if(u===-1)return;let m=u+nP.length,g=dKe(a,m,n);return a.charCodeAt(m)===64&&(g=dKe(a,g,n)),a.slice(0,g)}function dKe(t,n,a){let u=t.indexOf(uh,n+1);return u===-1?a?t.length:n:u}function fKe(t,n,a,u){return Phe(WU(t,n,a,u))}function WU(t,n,a,u){let m=G8e(t,n,a,u);if(m)return m;if(!(u.features&32)){let g=Qae(n,t,"",a,u);if(g)return g}}function G8e(t,n,a,u){if(!sg(n).includes("."))return;let g=Qx(n);g===n&&(g=n.substring(0,n.lastIndexOf(".")));let v=n.substring(g.length);return u.traceEnabled&&su(u.host,j.File_name_0_has_a_1_extension_stripping_it,n,v),Qae(g,t,v,a,u)}function Rhe(t,n,a,u){return t&1&&gg(n,Pme)||t&4&&gg(n,wwe)?PTe(n,a,u)!==void 0?{path:n,ext:eU(n),resolvedUsingTsExtension:void 0}:void 0:u.isConfigLookup&&t===8&&Wh(n,".json")?PTe(n,a,u)!==void 0?{path:n,ext:".json",resolvedUsingTsExtension:void 0}:void 0:G8e(t,n,a,u)}function Qae(t,n,a,u,m){if(!u){let v=Cc(t);v&&(u=!fN(v,m.host))}switch(a){case".mjs":case".mts":case".d.mts":return n&1&&g(".mts",a===".mts"||a===".d.mts")||n&4&&g(".d.mts",a===".mts"||a===".d.mts")||n&2&&g(".mjs")||void 0;case".cjs":case".cts":case".d.cts":return n&1&&g(".cts",a===".cts"||a===".d.cts")||n&4&&g(".d.cts",a===".cts"||a===".d.cts")||n&2&&g(".cjs")||void 0;case".json":return n&4&&g(".d.json.ts")||n&8&&g(".json")||void 0;case".tsx":case".jsx":return n&1&&(g(".tsx",a===".tsx")||g(".ts",a===".tsx"))||n&4&&g(".d.ts",a===".tsx")||n&2&&(g(".jsx")||g(".js"))||void 0;case".ts":case".d.ts":case".js":case"":return n&1&&(g(".ts",a===".ts"||a===".d.ts")||g(".tsx",a===".ts"||a===".d.ts"))||n&4&&g(".d.ts",a===".ts"||a===".d.ts")||n&2&&(g(".js")||g(".jsx"))||m.isConfigLookup&&g(".json")||void 0;default:return n&4&&!ey(t+a)&&g(`.d${a}.ts`)||void 0}function g(v,x){let k=PTe(t+v,u,m);return k===void 0?void 0:{path:k,ext:v,resolvedUsingTsExtension:!m.candidateIsFromPackageJsonField&&x}}}function PTe(t,n,a){var u;if(!((u=a.compilerOptions.moduleSuffixes)!=null&&u.length))return _Ke(t,n,a);let m=Pg(t)??"",g=m?j8(t,m):t;return ee(a.compilerOptions.moduleSuffixes,v=>_Ke(g+v+m,n,a))}function _Ke(t,n,a){var u;if(!n){if(a.host.fileExists(t))return a.traceEnabled&&su(a.host,j.File_0_exists_use_it_as_a_name_resolution_result,t),t;a.traceEnabled&&su(a.host,j.File_0_does_not_exist,t)}(u=a.failedLookupLocations)==null||u.push(t)}function Bhe(t,n,a,u,m=!0){let g=m?bM(n,a,u):void 0,v=g&&g.contents.packageJsonContent,x=g&&Zae(g,u);return RU(g,LTe(t,n,a,u,v,x),u)}function CN(t,n,a,u,m){if(!m&&t.contents.resolvedEntrypoints!==void 0)return t.contents.resolvedEntrypoints;let g,v=5|(m?2:0),x=oKe(n),k=e9(u?.getPackageJsonInfoCache(),a,n);k.conditions=yM(n),k.requestContainingDirectory=t.packageDirectory;let T=LTe(v,t.packageDirectory,!1,k,t.contents.packageJsonContent,Zae(t,k));if(g=ar(g,T?.path),x&8&&t.contents.packageJsonContent.exports){let I=la([yM(n,99),yM(n,1)],ho);for(let A of I){let M={...k,failedLookupLocations:[],conditions:A,host:a},R=Z5(t,t.contents.packageJsonContent.exports,M,v);if(R)for(let H of R)g=oo(g,H.path)}}return t.contents.resolvedEntrypoints=g||!1}function Z5(t,n,a,u){let m;if(ua(n))for(let v of n)g(v);else if(typeof n=="object"&&n!==null&&ece(n))for(let v in n)g(n[v]);else g(n);return m;function g(v){var x,k;if(typeof v=="string"&&xl(v,"./"))if(v.includes("*")&&a.host.readDirectory){if(v.indexOf("*")!==v.lastIndexOf("*"))return!1;a.host.readDirectory(t.packageDirectory,H9t(u),void 0,[yu(rL(v,"**/*"),".*")]).forEach(T=>{m=oo(m,{path:T,ext:LE(T),resolvedUsingTsExtension:void 0})})}else{let T=Uv(v).slice(2);if(T.includes("..")||T.includes(".")||T.includes("node_modules"))return!1;let I=Ps(t.packageDirectory,v),A=tu(I,(k=(x=a.host).getCurrentDirectory)==null?void 0:k.call(x)),M=Rhe(u,A,!1,a);if(M)return m=oo(m,M,(R,H)=>R.path===H.path),!0}else if(Array.isArray(v)){for(let T of v)if(g(T))return!0}else if(typeof v=="object"&&v!==null)return ee(Zy(v),T=>{if(T==="default"||dr(a.conditions,T)||EK(a.conditions,T))return g(v[T]),!0})}}function e9(t,n,a){return{host:n,compilerOptions:a,traceEnabled:sF(a,n),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:t,features:0,conditions:F,requestContainingDirectory:void 0,reportDiagnostic:Za,isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1}}function Vee(t,n){return T2(t,a=>bM(a,!1,n))}function Zae(t,n){return t.contents.versionPaths===void 0&&(t.contents.versionPaths=tKe(t.contents.packageJsonContent,n)||!1),t.contents.versionPaths||void 0}function Hee(t,n){return t.contents.peerDependencies===void 0&&(t.contents.peerDependencies=r0t(t,n)||!1),t.contents.peerDependencies||void 0}function r0t(t,n){let a=R4(t.contents.packageJsonContent,"peerDependencies","object",n);if(a===void 0)return;n.traceEnabled&&su(n.host,j.package_json_has_a_peerDependencies_field);let u=n0t(t.packageDirectory,n.host,n.traceEnabled),m=u.substring(0,u.lastIndexOf("node_modules")+12)+uh,g="";for(let v in a)if(bf(a,v)){let x=bM(m+v,!1,n);if(x){let k=x.contents.packageJsonContent.version;g+=`+${v}@${k}`,n.traceEnabled&&su(n.host,j.Found_peerDependency_0_with_1_version,v,k)}else n.traceEnabled&&su(n.host,j.Failed_to_find_peerDependency_0,v)}return g}function bM(t,n,a){var u,m,g,v,x,k;let{host:T,traceEnabled:I}=a,A=Ps(t,"package.json");if(n){(u=a.failedLookupLocations)==null||u.push(A);return}let M=(m=a.packageJsonInfoCache)==null?void 0:m.getPackageJsonInfo(A);if(M!==void 0){if(CK(M))return I&&su(T,j.File_0_exists_according_to_earlier_cached_lookups,A),(g=a.affectingLocations)==null||g.push(A),M.packageDirectory===t?M:{packageDirectory:t,contents:M.contents};M.directoryExists&&I&&su(T,j.File_0_does_not_exist_according_to_earlier_cached_lookups,A),(v=a.failedLookupLocations)==null||v.push(A);return}let R=fN(t,T);if(R&&T.fileExists(A)){let H=IG(A,T);I&&su(T,j.Found_package_json_at_0,A);let U={packageDirectory:t,contents:{packageJsonContent:H,versionPaths:void 0,resolvedEntrypoints:void 0,peerDependencies:void 0}};return a.packageJsonInfoCache&&!a.packageJsonInfoCache.isReadonly&&a.packageJsonInfoCache.setPackageJsonInfo(A,U),(x=a.affectingLocations)==null||x.push(A),U}else R&&I&&su(T,j.File_0_does_not_exist,A),a.packageJsonInfoCache&&!a.packageJsonInfoCache.isReadonly&&a.packageJsonInfoCache.setPackageJsonInfo(A,{packageDirectory:t,directoryExists:R}),(k=a.failedLookupLocations)==null||k.push(A)}function LTe(t,n,a,u,m,g){let v;m&&(u.isConfigLookup?v=Qgt(m,n,u):v=t&4&&j8e(m,n,u)||t&7&&kTe(m,n,u)||void 0);let x=(M,R,H,U)=>{let $=Rhe(M,R,H,U);if($)return Phe($);let K=M===4?5:M,re=U.features,X=U.candidateIsFromPackageJsonField;U.candidateIsFromPackageJsonField=!0,m?.type!=="module"&&(U.features&=-33);let ne=Fhe(K,R,H,U,!1);return U.features=re,U.candidateIsFromPackageJsonField=X,ne},k=v?!fN(Cc(v),u.host):void 0,T=a||!fN(n,u.host),I=Ps(n,u.isConfigLookup?"tsconfig":"index");if(g&&(!v||Gp(n,v))){let M=w2(n,v||I,!1);u.traceEnabled&&su(u.host,j.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,g.version,L,M);let R=zhe(t,M,n,g.paths,void 0,x,k||T,u);if(R)return Xgt(R.value)}let A=v&&Xgt(x(t,v,k,u));if(A)return A;if(!(u.features&32))return WU(t,I,T,u)}function OTe(t,n){return t&2&&(n===".js"||n===".jsx"||n===".mjs"||n===".cjs")||t&1&&(n===".ts"||n===".tsx"||n===".mts"||n===".cts")||t&4&&(n===".d.ts"||n===".d.mts"||n===".d.cts")||t&8&&n===".json"||!1}function jhe(t){let n=t.indexOf(uh);return t[0]==="@"&&(n=t.indexOf(uh,n+1)),n===-1?{packageName:t,rest:""}:{packageName:t.slice(0,n),rest:t.slice(n+1)}}function ece(t){return Yt(Zy(t),n=>xl(n,"."))}function K8e(t){return!En(Zy(t),n=>xl(n,"."))}function $9t(t,n,a,u,m,g){var v,x;let k=tu(a,(x=(v=u.host).getCurrentDirectory)==null?void 0:x.call(v)),T=Vee(k,u);if(!T||!T.contents.packageJsonContent.exports||typeof T.contents.packageJsonContent.name!="string")return;let I=Uv(n),A=Uv(T.contents.packageJsonContent.name);if(!Yt(A,($,K)=>I[K]===$))return;let M=I.slice(A.length),R=Z(M)?`.${uh}${M.join(uh)}`:".";if(T0(u.compilerOptions)&&!vM(a))return zU(T,t,R,u,m,g);let H=t&5,U=t&-6;return zU(T,H,R,u,m,g)||zU(T,U,R,u,m,g)}function zU(t,n,a,u,m,g){if(t.contents.packageJsonContent.exports){if(a==="."){let v;if(typeof t.contents.packageJsonContent.exports=="string"||Array.isArray(t.contents.packageJsonContent.exports)||typeof t.contents.packageJsonContent.exports=="object"&&K8e(t.contents.packageJsonContent.exports)?v=t.contents.packageJsonContent.exports:bf(t.contents.packageJsonContent.exports,".")&&(v=t.contents.packageJsonContent.exports["."]),v)return SM(n,u,m,g,a,t,!1)(v,"",!1,".")}else if(ece(t.contents.packageJsonContent.exports)){if(typeof t.contents.packageJsonContent.exports!="object")return u.traceEnabled&&su(u.host,j.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,a,t.packageDirectory),yw(void 0);let v=o0t(n,u,m,g,a,t.contents.packageJsonContent.exports,t,!1);if(v)return v}return u.traceEnabled&&su(u.host,j.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,a,t.packageDirectory),yw(void 0)}}function tce(t,n,a,u,m,g){var v,x;if(n==="#"||xl(n,"#/"))return u.traceEnabled&&su(u.host,j.Invalid_import_specifier_0_has_no_possible_resolutions,n),yw(void 0);let k=tu(a,(x=(v=u.host).getCurrentDirectory)==null?void 0:x.call(v)),T=Vee(k,u);if(!T)return u.traceEnabled&&su(u.host,j.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,k),yw(void 0);if(!T.contents.packageJsonContent.imports)return u.traceEnabled&&su(u.host,j.package_json_scope_0_has_no_imports_defined,T.packageDirectory),yw(void 0);let I=o0t(t,u,m,g,n,T.contents.packageJsonContent.imports,T,!0);return I||(u.traceEnabled&&su(u.host,j.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,T.packageDirectory),yw(void 0))}function Uee(t,n){let a=t.indexOf("*"),u=n.indexOf("*"),m=a===-1?t.length:a+1,g=u===-1?n.length:u+1;return m>g?-1:g>m||a===-1?1:u===-1||t.length>n.length?-1:n.length>t.length?1:0}function o0t(t,n,a,u,m,g,v,x){let k=SM(t,n,a,u,m,v,x);if(!xh(m,uh)&&!m.includes("*")&&bf(g,m)){let A=g[m];return k(A,"",!1,m)}let T=du(Qn(Zy(g),A=>G9t(A)||xh(A,"/")),Uee);for(let A of T)if(n.features&16&&I(A,m)){let M=g[A],R=A.indexOf("*"),H=m.substring(A.substring(0,R).length,m.length-(A.length-1-R));return k(M,H,!0,A)}else if(xh(A,"*")&&xl(m,A.substring(0,A.length-1))){let M=g[A],R=m.substring(A.length-1);return k(M,R,!0,A)}else if(xl(m,A)){let M=g[A],R=m.substring(A.length);return k(M,R,!1,A)}function I(A,M){if(xh(A,"*"))return!1;let R=A.indexOf("*");return R===-1?!1:xl(M,A.substring(0,R))&&xh(M,A.substring(R+1))}}function G9t(t){let n=t.indexOf("*");return n!==-1&&n===t.lastIndexOf("*")}function SM(t,n,a,u,m,g,v){return x;function x(k,T,I,A){if(typeof k=="string"){if(!I&&T.length>0&&!xh(k,"/"))return n.traceEnabled&&su(n.host,j.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,g.packageDirectory,m),yw(void 0);if(!xl(k,"./")){if(v&&!xl(k,"../")&&!xl(k,"/")&&!LC(k)){let se=I?k.replace(/\*/g,T):k+T;aO(n,j.Using_0_subpath_1_with_target_2,"imports",A,se),aO(n,j.Resolving_module_0_from_1,se,g.packageDirectory+"/");let _e=Ohe(n.features,se,g.packageDirectory+"/",n.compilerOptions,n.host,a,t,!1,u,n.conditions);return yw(_e.resolvedModule?{path:_e.resolvedModule.resolvedFileName,extension:_e.resolvedModule.extension,packageId:_e.resolvedModule.packageId,originalPath:_e.resolvedModule.originalPath,resolvedUsingTsExtension:_e.resolvedModule.resolvedUsingTsExtension}:void 0)}return n.traceEnabled&&su(n.host,j.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,g.packageDirectory,m),yw(void 0)}let $=(t_(k)?Uv(k).slice(1):Uv(k)).slice(1);if($.includes("..")||$.includes(".")||$.includes("node_modules"))return n.traceEnabled&&su(n.host,j.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,g.packageDirectory,m),yw(void 0);let K=Ps(g.packageDirectory,k),re=Uv(T);if(re.includes("..")||re.includes(".")||re.includes("node_modules"))return n.traceEnabled&&su(n.host,j.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,g.packageDirectory,m),yw(void 0);n.traceEnabled&&su(n.host,j.Using_0_subpath_1_with_target_2,v?"imports":"exports",A,I?k.replace(/\*/g,T):k+T);let X=M(I?K.replace(/\*/g,T):K+T),ne=H(X,T,Ps(g.packageDirectory,"package.json"),v);return ne||yw(RU(g,Rhe(t,X,!1,n),n))}else if(typeof k=="object"&&k!==null)if(Array.isArray(k)){if(!Z(k))return n.traceEnabled&&su(n.host,j.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,g.packageDirectory,m),yw(void 0);for(let U of k){let $=x(U,T,I,A);if($)return $}}else{aO(n,j.Entering_conditional_exports);for(let U of Zy(k))if(U==="default"||n.conditions.includes(U)||EK(n.conditions,U)){aO(n,j.Matched_0_condition_1,v?"imports":"exports",U);let $=k[U],K=x($,T,I,A);if(K)return aO(n,j.Resolved_under_condition_0,U),aO(n,j.Exiting_conditional_exports),K;aO(n,j.Failed_to_resolve_under_condition_0,U)}else aO(n,j.Saw_non_matching_condition_0,U);aO(n,j.Exiting_conditional_exports);return}else if(k===null)return n.traceEnabled&&su(n.host,j.package_json_scope_0_explicitly_maps_specifier_1_to_null,g.packageDirectory,m),yw(void 0);return n.traceEnabled&&su(n.host,j.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,g.packageDirectory,m),yw(void 0);function M(U){var $,K;return U===void 0?U:tu(U,(K=($=n.host).getCurrentDirectory)==null?void 0:K.call($))}function R(U,$){return Fs(Ps(U,$))}function H(U,$,K,re){var X,ne,se,_e;if(!n.isConfigLookup&&(n.compilerOptions.declarationDir||n.compilerOptions.outDir)&&!U.includes("/node_modules/")&&(!n.compilerOptions.configFile||Gp(g.packageDirectory,M(n.compilerOptions.configFile.fileName),!RTe(n)))){let le=E4({useCaseSensitiveFileNames:()=>RTe(n)}),Ee=[];if(n.compilerOptions.rootDir||n.compilerOptions.composite&&n.compilerOptions.configFilePath){let xe=M(uF(n.compilerOptions,()=>[],((ne=(X=n.host).getCurrentDirectory)==null?void 0:ne.call(X))||"",le));Ee.push(xe)}else if(n.requestContainingDirectory){let xe=M(Ps(n.requestContainingDirectory,"index.ts")),be=M(uF(n.compilerOptions,()=>[xe,M(K)],((_e=(se=n.host).getCurrentDirectory)==null?void 0:_e.call(se))||"",le));Ee.push(be);let Le=Fs(be);for(;Le&&Le.length>1;){let fe=Uv(Le);fe.pop();let we=IA(fe);Ee.unshift(we),Le=Fs(we)}}Ee.length>1&&n.reportDiagnostic(Th(re?j.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:j.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,$===""?".":$,K));for(let xe of Ee){let be=ae(xe);for(let Le of be)if(Gp(Le,U,!RTe(n))){let fe=U.slice(Le.length+1),we=Ps(xe,fe),Ae=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(let Ge of Ae)if(Wh(we,Ge)){let he=qH(we);for(let Oe of he){if(!OTe(t,Oe))continue;let Re=QB(we,Oe,Ge,!RTe(n));if(n.host.fileExists(Re))return yw(RU(g,Rhe(t,Re,!1,n),n))}}}}}return;function ae(le){var Ee,xe;let be=n.compilerOptions.configFile?((xe=(Ee=n.host).getCurrentDirectory)==null?void 0:xe.call(Ee))||"":le,Le=[];return n.compilerOptions.declarationDir&&Le.push(M(R(be,n.compilerOptions.declarationDir))),n.compilerOptions.outDir&&n.compilerOptions.outDir!==n.compilerOptions.declarationDir&&Le.push(M(R(be,n.compilerOptions.outDir))),Le}}}}function EK(t,n){if(!t.includes("types")||!xl(n,"types@"))return!1;let a=vCe.tryParse(n.substring(6));return a?a.test(L):!1}function pKe(t,n,a,u,m,g){return Whe(t,n,a,u,!1,m,g)}function FTe(t,n,a){return Whe(4,t,n,a,!0,void 0,void 0)}function Whe(t,n,a,u,m,g,v){let x=u.features===0?void 0:u.features&32?99:1,k=t&5,T=t&-6;if(k){aO(u,j.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,Kae(k));let A=I(k);if(A)return A}if(T&&!m)return aO(u,j.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,Kae(T)),I(T);function I(A){return T2(Ch(a),M=>{if(sg(M)!=="node_modules"){let R=hKe(g,n,x,M,v,u);return R||yw(s0t(A,n,M,u,m,g,v))}})}}function s0t(t,n,a,u,m,g,v){let x=Ps(a,"node_modules"),k=fN(x,u.host);if(!k&&u.traceEnabled&&su(u.host,j.Directory_0_does_not_exist_skipping_all_lookups_in_it,x),!m){let T=a0t(t,n,x,k,u,g,v);if(T)return T}if(t&4){let T=Ps(x,"@types"),I=k;return k&&!fN(T,u.host)&&(u.traceEnabled&&su(u.host,j.Directory_0_does_not_exist_skipping_all_lookups_in_it,T),I=!1),a0t(4,MTe(n,u),T,I,u,g,v)}}function a0t(t,n,a,u,m,g,v){var x,k;let T=Kd(Ps(a,n)),{packageName:I,rest:A}=jhe(n),M=Ps(a,I),R,H=bM(T,!u,m);if(A!==""&&H&&(!(m.features&8)||!bf(((x=R=bM(M,!u,m))==null?void 0:x.contents.packageJsonContent)??F,"exports"))){let K=WU(t,T,!u,m);if(K)return Phe(K);let re=LTe(t,T,!u,m,H.contents.packageJsonContent,Zae(H,m));return RU(H,re,m)}let U=(K,re,X,ne)=>{let se=(A||!(ne.features&32))&&WU(K,re,X,ne)||LTe(K,re,X,ne,H&&H.contents.packageJsonContent,H&&Zae(H,ne));return!se&&H&&(H.contents.packageJsonContent.exports===void 0||H.contents.packageJsonContent.exports===null)&&ne.features&32&&(se=WU(K,Ps(re,"index.js"),X,ne)),RU(H,se,ne)};if(A!==""&&(H=R??bM(M,!u,m)),H&&(m.resolvedPackageDirectory=!0),H&&H.contents.packageJsonContent.exports&&m.features&8)return(k=zU(H,t,Ps(".",A),m,g,v))==null?void 0:k.value;let $=A!==""&&H?Zae(H,m):void 0;if($){m.traceEnabled&&su(m.host,j.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,$.version,L,A);let K=u&&fN(M,m.host),re=zhe(t,A,M,$.paths,void 0,U,!K,m);if(re)return re.value}return U(t,T,!u,m)}function zhe(t,n,a,u,m,g,v,x){m||(m=Zse(u));let k=tL(m,n);if(k){let T=Yu(k)?void 0:z_e(k,n),I=Yu(k)?k:_Ce(k);return x.traceEnabled&&su(x.host,j.Module_name_0_matched_pattern_1,n,I),{value:ee(u[I],M=>{let R=T?rL(M,T):M,H=Kd(Ps(a,R));x.traceEnabled&&su(x.host,j.Trying_substitution_0_candidate_module_location_Colon_1,M,R);let U=Pg(M);if(U!==void 0){let $=PTe(H,v,x);if($!==void 0)return Phe({path:$,ext:U,resolvedUsingTsExtension:void 0})}return g(t,H,v||!fN(Cc(H),x.host),x)})}}}var mKe="__";function MTe(t,n){let a=Jee(t);return n.traceEnabled&&a!==t&&su(n.host,j.Scoped_package_detected_looking_in_0,a),a}function Vhe(t){return`@types/${Jee(t)}`}function Jee(t){if(xl(t,"@")){let n=t.replace(uh,mKe);if(n!==t)return n.slice(1)}return t}function qee(t){let n=iH(t,"@types/");return n!==t?xW(n):t}function xW(t){return t.includes(mKe)?"@"+t.replace(mKe,uh):t}function hKe(t,n,a,u,m,g){let v=t&&t.getFromNonRelativeNameCache(n,a,u,m);if(v)return g.traceEnabled&&su(g.host,j.Resolution_for_module_0_was_found_in_cache_from_location_1,n,u),g.resultFromCache=v,{value:v.resolvedModule&&{path:v.resolvedModule.resolvedFileName,originalPath:v.resolvedModule.originalPath||!0,extension:v.resolvedModule.extension,packageId:v.resolvedModule.packageId,resolvedUsingTsExtension:v.resolvedModule.resolvedUsingTsExtension}}}function gKe(t,n,a,u,m,g){let v=sF(a,u),x=[],k=[],T=Cc(n),I=[],A={compilerOptions:a,host:u,traceEnabled:v,failedLookupLocations:x,affectingLocations:k,packageJsonInfoCache:m,features:0,conditions:[],requestContainingDirectory:T,reportDiagnostic:H=>void I.push(H),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},M=R(5)||R(2|(a.resolveJsonModule?8:0));return Ygt(t,M&&M.value,M?.value&&vM(M.value.path),x,k,I,A,m);function R(H){let U=jee(H,t,T,fKe,A);if(U)return{value:U};if(l0(t)){let $=Kd(Ps(T,t));return yw(fKe(H,$,!1,A))}else{let $=T2(T,K=>{let re=hKe(m,t,void 0,K,g,A);if(re)return re;let X=Kd(Ps(K,t));return yw(fKe(H,X,!1,A))});if($)return $;if(H&5){let K=FTe(t,T,A);return H&4&&(K??(K=yKe(t,A))),K}}}}function yKe(t,n){if(n.compilerOptions.typeRoots)for(let a of n.compilerOptions.typeRoots){let u=Zgt(a,t,n),m=fN(a,n.host);!m&&n.traceEnabled&&su(n.host,j.Directory_0_does_not_exist_skipping_all_lookups_in_it,a);let g=WU(4,u,!m,n);if(g){let x=Mhe(g.path),k=x?bM(x,!1,n):void 0;return yw(RU(k,g,n))}let v=Bhe(4,u,!m,n);if(v)return yw(v)}}function DK(t,n){return!!t.allowImportingTsExtensions||n&&ey(n)}function X8e(t,n,a,u,m,g){let v=sF(a,u);v&&su(u,j.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,n,t,m);let x=[],k=[],T=[],I={compilerOptions:a,host:u,traceEnabled:v,failedLookupLocations:x,affectingLocations:k,packageJsonInfoCache:g,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:M=>void T.push(M),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},A=s0t(4,t,m,I,!1,void 0,void 0);return B8e(A,!0,x,k,T,I.resultFromCache,void 0)}function yw(t){return t!==void 0?{value:t}:void 0}function aO(t,n,...a){t.traceEnabled&&su(t.host,n,...a)}function RTe(t){return t.host.useCaseSensitiveFileNames?typeof t.host.useCaseSensitiveFileNames=="boolean"?t.host.useCaseSensitiveFileNames:t.host.useCaseSensitiveFileNames():!0}var ice=(t=>(t[t.NonInstantiated=0]="NonInstantiated",t[t.Instantiated=1]="Instantiated",t[t.ConstEnumOnly=2]="ConstEnumOnly",t))(ice||{});function $2(t,n){return t.body&&!t.body.parent&&(dp(t.body,t),G3(t.body,!1)),t.body?IK(t.body,n):1}function IK(t,n=new Map){let a=pp(t);if(n.has(a))return n.get(a)||0;n.set(a,void 0);let u=Hhe(t,n);return n.set(a,u),u}function Hhe(t,n){switch(t.kind){case 264:case 265:return 0;case 266:if(jy(t))return 2;break;case 272:case 271:if(!kc(t,32))return 0;break;case 278:let a=t;if(!a.moduleSpecifier&&a.exportClause&&a.exportClause.kind===279){let u=0;for(let m of a.exportClause.elements){let g=c0t(m,n);if(g>u&&(u=g),u===1)return u}return u}break;case 268:{let u=0;return _d(t,m=>{let g=IK(m,n);switch(g){case 0:return;case 2:u=2;return;case 1:return u=1,!0;default:Se.assertNever(g)}}),u}case 267:return $2(t,n);case 80:if(t.flags&4096)return 0}return 1}function c0t(t,n){let a=t.propertyName||t.name;if(a.kind!==80)return 1;let u=t.parent;for(;u;){if(qu(u)||vN(u)||ul(u)){let m=u.statements,g;for(let v of m)if(ta(v,a)){v.parent||(dp(v,u),G3(v,!1));let x=IK(v,n);if((g===void 0||x>g)&&(g=x),g===1)return g;v.kind===271&&(g=1)}if(g!==void 0)return g}u=u.parent}return 1}var BTe=(t=>(t[t.None=0]="None",t[t.IsContainer=1]="IsContainer",t[t.IsBlockScopedContainer=2]="IsBlockScopedContainer",t[t.IsControlFlowContainer=4]="IsControlFlowContainer",t[t.IsFunctionLike=8]="IsFunctionLike",t[t.IsFunctionExpression=16]="IsFunctionExpression",t[t.HasLocals=32]="HasLocals",t[t.IsInterface=64]="IsInterface",t[t.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]="IsObjectLiteralOrClassExpressionMethodOrAccessor",t))(BTe||{});function rP(t,n,a){return Se.attachFlowNodeDebugInfo({flags:t,id:0,node:n,antecedent:a})}var $ee=ZT();function jTe(t,n){Lm("beforeBind"),$ee(t,n),Lm("afterBind"),Ub("Bind","beforeBind","afterBind")}function ZT(){var t,n,a,u,m,g,v,x,k,T,I,A,M,R,H,U,$,K,re,X,ne,se,_e,ae,le=!1,Ee=0,xe,be,Le=rP(1,void 0,void 0),fe=rP(1,void 0,void 0),we=vt();return Ge;function Ae(He,Xt,...un){return ss(Vo(He)||t,He,Xt,...un)}function Ge(He,Xt){var un,Ur;t=He,n=Xt,a=h_(n),ae=he(t,Xt),be=new Set,Ee=0,xe=xd.getSymbolConstructor(),Se.attachFlowNodeDebugInfo(Le),Se.attachFlowNodeDebugInfo(fe),t.locals||((un=us)==null||un.push(us.Phase.Bind,"bindSourceFile",{path:t.path},!0),Er(t),(Ur=us)==null||Ur.pop(),t.symbolCount=Ee,t.classifiableNames=be,G_(),ja()),t=void 0,n=void 0,a=void 0,u=void 0,m=void 0,g=void 0,v=void 0,x=void 0,k=void 0,I=void 0,T=!1,A=void 0,M=void 0,R=void 0,H=void 0,U=void 0,$=void 0,K=void 0,X=void 0,ne=!1,se=!1,le=!1,_e=0}function he(He,Xt){return d0(Xt,"alwaysStrict")&&!He.isDeclarationFile?!0:!!He.externalModuleIndicator}function Oe(He,Xt){return Ee++,new xe(He,Xt)}function Re(He,Xt,un){He.flags|=un,Xt.symbol=He,He.declarations=oo(He.declarations,Xt),un&1955&&!He.exports&&(He.exports=Au()),un&6240&&!He.members&&(He.members=Au()),He.constEnumOnlyModule&&He.flags&304&&(He.constEnumOnlyModule=!1),un&111551&&YD(He,Xt)}function $e(He){if(He.kind===277)return He.isExportEquals?"export=":"default";let Xt=Nu(He);if(Xt){if(nb(He)){let un=jC(Xt);return y4(He)?"__global":`"${un}"`}if(Xt.kind===167){let un=Xt.expression;if(Xb(un))return kh(un.text);if(rme(un))return Ef(un.operator)+un.operand.text;Se.fail("Only computed properties with literal names have declaration names")}if(wl(Xt)){let un=vy(He);if(!un)return;let Ur=un.symbol;return BH(Ur,Xt.escapedText)}return vx(Xt)?R5(Xt):Xp(Xt)?dx(Xt):void 0}switch(He.kind){case 176:return"__constructor";case 184:case 179:case 323:return"__call";case 185:case 180:return"__new";case 181:return"__index";case 278:return"__export";case 307:return"export=";case 226:if(wh(He)===2)return"export=";Se.fail("Unknown binary declaration kind");break;case 317:return A3(He)?"__new":"__call";case 169:return Se.assert(He.parent.kind===317,"Impossible parameter parent kind",()=>`parent is: ${Se.formatSyntaxKind(He.parent.kind)}, expected JSDocFunctionType`),"arg"+He.parent.parameters.indexOf(He)}}function Ke(He){return xf(He)?Gf(He.name):Ba(Se.checkDefined($e(He)))}function qe(He,Xt,un,Ur,Rs,Ja,Tc){Se.assert(Tc||!HA(un));let Jl=kc(un,2048)||X0(un)&&MC(un.name),Id=Tc?"__computed":Jl&&Xt?"default":$e(un),bd;if(Id===void 0)bd=Oe(0,"__missing");else if(bd=He.get(Id),Ur&2885600&&be.add(Id),!bd)He.set(Id,bd=Oe(0,Id)),Ja&&(bd.isReplaceableByMethod=!0);else{if(Ja&&!bd.isReplaceableByMethod)return bd;if(bd.flags&Rs){if(bd.isReplaceableByMethod)He.set(Id,bd=Oe(0,Id));else if(!(Ur&3&&bd.flags&67108864)){xf(un)&&dp(un.name,un);let op=bd.flags&2?j.Cannot_redeclare_block_scoped_variable_0:j.Duplicate_identifier_0,Pv=!0;(bd.flags&384||Ur&384)&&(op=j.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,Pv=!1);let Lv=!1;Z(bd.declarations)&&(Jl||bd.declarations&&bd.declarations.length&&un.kind===277&&!un.isExportEquals)&&(op=j.A_module_cannot_have_multiple_default_exports,Pv=!1,Lv=!0);let P0=[];k1(un)&&Mm(un.type)&&kc(un,32)&&bd.flags&2887656&&P0.push(Ae(un,j.Did_you_mean_0,`export type { ${Ba(un.name.escapedText)} }`));let Ny=Nu(un)||un;ee(bd.declarations,(ng,eh)=>{let m0=Nu(ng)||ng,Z_=Pv?Ae(m0,op,Ke(ng)):Ae(m0,op);t.bindDiagnostics.push(Lv?Pd(Z_,Ae(Ny,eh===0?j.Another_export_default_is_here:j.and_here)):Z_),Lv&&P0.push(Ae(m0,j.The_first_export_default_is_here))});let y_=Pv?Ae(Ny,op,Ke(un)):Ae(Ny,op);t.bindDiagnostics.push(Pd(y_,...P0)),bd=Oe(0,Id)}}}return Re(bd,un,Ur),bd.parent?Se.assert(bd.parent===Xt,"Existing symbol parent should match new one"):bd.parent=Xt,bd}function rt(He,Xt,un){let Ur=!!(iv(He)&32)||_t(He);if(Xt&2097152)return He.kind===281||He.kind===271&&Ur?qe(m.symbol.exports,m.symbol,He,Xt,un):(Se.assertNode(m,zE),qe(m.locals,void 0,He,Xt,un));if(ux(He)&&Se.assert(Ys(He)),!nb(He)&&(Ur||m.flags&128)){if(!zE(m)||!m.locals||kc(He,2048)&&!$e(He))return qe(m.symbol.exports,m.symbol,He,Xt,un);let Rs=Xt&111551?1048576:0,Ja=qe(m.locals,void 0,He,Rs,un);return Ja.exportSymbol=qe(m.symbol.exports,m.symbol,He,Xt,un),He.localSymbol=Ja,Ja}else return Se.assertNode(m,zE),qe(m.locals,void 0,He,Xt,un)}function _t(He){if(He.parent&&Dh(He)&&(He=He.parent),!ux(He))return!1;if(!oK(He)&&He.fullName)return!0;let Xt=Nu(He);return Xt?!!(Bj(Xt.parent)&&gh(Xt.parent)||y1(Xt.parent)&&iv(Xt.parent)&32):!1}function ft(He,Xt){let un=m,Ur=g,Rs=v;if(Xt&1?(He.kind!==219&&(g=m),m=v=He,Xt&32&&(m.locals=Au(),Ti(m))):Xt&2&&(v=He,Xt&32&&(v.locals=void 0)),Xt&4){let Ja=A,Tc=M,Jl=R,Id=H,bd=K,op=X,Pv=ne,Lv=Xt&16&&!kc(He,1024)&&!He.asteriskToken&&!!w3(He)||He.kind===175;Lv||(A=rP(2,void 0,void 0),Xt&144&&(A.node=He)),H=Lv||He.kind===176||Ys(He)&&(He.kind===262||He.kind===218)?Ei():void 0,K=void 0,M=void 0,R=void 0,X=void 0,ne=!1,Kt(He),He.flags&=-5633,!(A.flags&1)&&Xt&8&&jT(He.body)&&(He.flags|=512,ne&&(He.flags|=1024),He.endFlowNode=A),He.kind===307&&(He.flags|=_e,He.endFlowNode=A),H&&(lo(H,A),A=Nn(H),(He.kind===176||He.kind===175||Ys(He)&&(He.kind===262||He.kind===218))&&(He.returnFlowNode=A)),Lv||(A=Ja),M=Tc,R=Jl,H=Id,K=bd,X=op,ne=Pv}else Xt&64?(T=!1,Kt(He),Se.assertNotNode(He,Ai),He.flags=T?He.flags|256:He.flags&-257):Kt(He);m=un,g=Ur,v=Rs}function mt(He){ut(He,Xt=>Xt.kind===262?Er(Xt):void 0),ut(He,Xt=>Xt.kind!==262?Er(Xt):void 0)}function ut(He,Xt=Er){He!==void 0&&ee(He,Xt)}function ht(He){_d(He,Er,ut)}function Kt(He){let Xt=le;if(le=!1,yr(He)){ht(He),is(He),le=Xt;return}switch(He.kind>=243&&He.kind<=259&&(!n.allowUnreachableCode||He.kind===253)&&(He.flowNode=A),He.kind){case 247:Pi(He);break;case 246:qi(He);break;case 248:lt(He);break;case 249:case 250:Xi(He);break;case 245:nt(He);break;case 253:case 257:Lt(He);break;case 252:case 251:Ve(He);break;case 258:Tt(He);break;case 255:dt(He);break;case 269:Wt(He);break;case 296:pt(He);break;case 244:Gt(He);break;case 256:hi(He);break;case 224:Ue(He);break;case 225:Ce(He);break;case 226:if(z3(He)){le=Xt,ye(He);return}we(He);break;case 220:pe(He);break;case 227:at(He);break;case 260:si(He);break;case 211:case 212:Wi(He);break;case 213:Kn(He);break;case 235:Pn(He);break;case 346:case 338:case 340:Vn(He);break;case 351:dn(He);break;case 307:{mt(He.statements),Er(He.endOfFileToken);break}case 241:case 268:mt(He.statements);break;case 208:At(He);break;case 169:Ot(He);break;case 210:case 209:case 303:case 230:le=Xt;default:ht(He);break}is(He),le=Xt}function ni(He){switch(He.kind){case 80:case 110:return!0;case 211:case 212:return pi(He);case 213:return wi(He);case 217:if(iF(He))return!1;case 235:return ni(He.expression);case 226:return Bn(He);case 224:return He.operator===54&&ni(He.operand);case 221:return ni(He.expression)}return!1}function Ut(He){switch(He.kind){case 80:case 110:case 108:case 236:return!0;case 211:case 217:case 235:return Ut(He.expression);case 212:return(Xb(He.argumentExpression)||Dp(He.argumentExpression))&&Ut(He.expression);case 226:return He.operatorToken.kind===28&&Ut(He.right)||D4(He.operatorToken.kind)&&MS(He.left)}return!1}function pi(He){return Ut(He)||By(He)&&pi(He.expression)}function wi(He){if(He.arguments){for(let Xt of He.arguments)if(pi(Xt))return!0}return!!(He.expression.kind===211&&pi(He.expression.expression))}function Bi(He,Xt){return Ip(He)&&mr(He.expression)&&i_(Xt)}function Bn(He){switch(He.operatorToken.kind){case 64:case 76:case 77:case 78:return pi(He.left);case 35:case 36:case 37:case 38:return mr(He.left)||mr(He.right)||Bi(He.right,He.left)||Bi(He.left,He.right)||sf(He.right)&&ni(He.left)||sf(He.left)&&ni(He.right);case 104:return mr(He.left);case 103:return ni(He.right);case 28:return ni(He.right)}return!1}function mr(He){switch(He.kind){case 217:return mr(He.expression);case 226:switch(He.operatorToken.kind){case 64:return mr(He.left);case 28:return mr(He.right)}}return pi(He)}function Ei(){return rP(4,void 0,void 0)}function zn(){return rP(8,void 0,void 0)}function zr(He,Xt,un){return rP(1024,{target:He,antecedents:Xt},un)}function xr(He){He.flags|=He.flags&2048?4096:2048}function lo(He,Xt){!(Xt.flags&1)&&!dr(He.antecedent,Xt)&&((He.antecedent||(He.antecedent=[])).push(Xt),xr(Xt))}function _r(He,Xt,un){return Xt.flags&1?Xt:un?(un.kind===112&&He&64||un.kind===97&&He&32)&&!gH(un)&&!Uoe(un.parent)?Le:ni(un)?(xr(Xt),rP(He,un,Xt)):Xt:He&32?Xt:Le}function Hs(He,Xt,un,Ur){return xr(He),rP(128,{switchStatement:Xt,clauseStart:un,clauseEnd:Ur},He)}function ai(He,Xt,un){xr(Xt),se=!0;let Ur=rP(He,un,Xt);return K&&lo(K,Ur),Ur}function mn(He,Xt){return xr(He),se=!0,rP(512,Xt,He)}function Nn(He){let Xt=He.antecedent;return Xt?Xt.length===1?Xt[0]:He:Le}function Gr(He){let Xt=He.parent;switch(Xt.kind){case 245:case 247:case 246:return Xt.expression===He;case 248:case 227:return Xt.condition===He}return!1}function ci(He){for(;;)if(He.kind===217)He=He.expression;else if(He.kind===224&&He.operator===54)He=He.operand;else return hme(He)}function gn(He){return POe(J_(He))}function Sr(He){for(;Tu(He.parent)||z2(He.parent)&&He.parent.operator===54;)He=He.parent;return!Gr(He)&&!ci(He.parent)&&!(By(He.parent)&&He.parent.expression===He)}function vo(He,Xt,un,Ur){let Rs=U,Ja=$;U=un,$=Ur,He(Xt),U=Rs,$=Ja}function $o(He,Xt,un){vo(Er,He,Xt,un),(!He||!gn(He)&&!ci(He)&&!(By(He)&&nj(He)))&&(lo(Xt,_r(32,A,He)),lo(un,_r(64,A,He)))}function Mn(He,Xt,un){let Ur=M,Rs=R;M=Xt,R=un,Er(He),M=Ur,R=Rs}function Qs(He,Xt){let un=X;for(;un&&He.parent.kind===256;)un.continueTarget=Xt,un=un.next,He=He.parent;return Xt}function Pi(He){let Xt=Qs(He,zn()),un=Ei(),Ur=Ei();lo(Xt,A),A=Xt,$o(He.expression,un,Ur),A=Nn(un),Mn(He.statement,Ur,Xt),lo(Xt,A),A=Nn(Ur)}function qi(He){let Xt=zn(),un=Qs(He,Ei()),Ur=Ei();lo(Xt,A),A=Xt,Mn(He.statement,Ur,un),lo(un,A),A=Nn(un),$o(He.expression,Xt,Ur),A=Nn(Ur)}function lt(He){let Xt=Qs(He,zn()),un=Ei(),Ur=Ei();Er(He.initializer),lo(Xt,A),A=Xt,$o(He.condition,un,Ur),A=Nn(un),Mn(He.statement,Ur,Xt),Er(He.incrementor),lo(Xt,A),A=Nn(Ur)}function Xi(He){let Xt=Qs(He,zn()),un=Ei();Er(He.expression),lo(Xt,A),A=Xt,He.kind===250&&Er(He.awaitModifier),lo(un,A),Er(He.initializer),He.initializer.kind!==261&&Bt(He.initializer),Mn(He.statement,un,Xt),lo(Xt,A),A=Nn(un)}function nt(He){let Xt=Ei(),un=Ei(),Ur=Ei();$o(He.expression,Xt,un),A=Nn(Xt),Er(He.thenStatement),lo(Ur,A),A=Nn(un),Er(He.elseStatement),lo(Ur,A),A=Nn(Ur)}function Lt(He){Er(He.expression),He.kind===253&&(ne=!0,H&&lo(H,A)),A=Le,se=!0}function Pe(He){for(let Xt=X;Xt;Xt=Xt.next)if(Xt.name===He)return Xt}function St(He,Xt,un){let Ur=He.kind===252?Xt:un;Ur&&(lo(Ur,A),A=Le,se=!0)}function Ve(He){if(Er(He.label),He.label){let Xt=Pe(He.label.escapedText);Xt&&(Xt.referenced=!0,St(He,Xt.breakTarget,Xt.continueTarget))}else St(He,M,R)}function Tt(He){let Xt=H,un=K,Ur=Ei(),Rs=Ei(),Ja=Ei();if(He.finallyBlock&&(H=Rs),lo(Ja,A),K=Ja,Er(He.tryBlock),lo(Ur,A),He.catchClause&&(A=Nn(Ja),Ja=Ei(),lo(Ja,A),K=Ja,Er(He.catchClause),lo(Ur,A)),H=Xt,K=un,He.finallyBlock){let Tc=Ei();Tc.antecedent=Pl(Pl(Ur.antecedent,Ja.antecedent),Rs.antecedent),A=Tc,Er(He.finallyBlock),A.flags&1?A=Le:(H&&Rs.antecedent&&lo(H,zr(Tc,Rs.antecedent,A)),K&&Ja.antecedent&&lo(K,zr(Tc,Ja.antecedent,A)),A=Ur.antecedent?zr(Tc,Ur.antecedent,A):Le)}else A=Nn(Ur)}function dt(He){let Xt=Ei();Er(He.expression);let un=M,Ur=re;M=Xt,re=A,Er(He.caseBlock),lo(Xt,A);let Rs=ee(He.caseBlock.clauses,Ja=>Ja.kind===297);He.possiblyExhaustive=!Rs&&!Xt.antecedent,Rs||lo(Xt,Hs(re,He,0,0)),M=un,re=Ur,A=Nn(Xt)}function Wt(He){let Xt=He.clauses,un=He.parent.expression.kind===112||ni(He.parent.expression),Ur=Le;for(let Rs=0;RsQg(un)||Bm(un))}function Ts(He){He.flags&33554432&&!ir(He)?He.flags|=128:He.flags&=-129}function pa(He){if(Ts(He),nb(He))if(kc(He,32)&&oi(He,j.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),VE(He))Nc(He);else{let Xt;if(He.name.kind===11){let{text:Ur}=He.name;Xt=dU(Ur),Xt===void 0&&oi(He.name,j.Pattern_0_can_have_at_most_one_Asterisk_character,Ur)}let un=wr(He,512,110735);t.patternAmbientModules=ar(t.patternAmbientModules,Xt&&!Yu(Xt)?{pattern:Xt,symbol:un}:void 0)}else{let Xt=Nc(He);if(Xt!==0){let{symbol:un}=He;un.constEnumOnlyModule=!(un.flags&304)&&Xt===2&&un.constEnumOnlyModule!==!1}}}function Nc(He){let Xt=$2(He),un=Xt!==0;return wr(He,un?512:1024,un?110735:0),Xt}function _a(He){let Xt=Oe(131072,$e(He));Re(Xt,He,131072);let un=Oe(2048,"__type");Re(un,He,2048),un.members=Au(),un.members.set(Xt.escapedName,Xt)}function Fa(He){return cc(He,4096,"__object")}function Pf(He){return cc(He,4096,"__jsxAttributes")}function $l(He,Xt,un){return wr(He,Xt,un)}function cc(He,Xt,un){let Ur=Oe(Xt,un);return Xt&106508&&(Ur.parent=m.symbol),Re(Ur,He,Xt),Ur}function vl(He,Xt,un){switch(v.kind){case 267:rt(He,Xt,un);break;case 307:if(Jv(m)){rt(He,Xt,un);break}default:Se.assertNode(v,zE),v.locals||(v.locals=Au(),Ti(v)),qe(v.locals,void 0,He,Xt,un)}}function G_(){if(!k)return;let He=m,Xt=x,un=v,Ur=u,Rs=A;for(let Ja of k){let Tc=Ja.parent.parent;m=lse(Tc)||t,v=Xw(Tc)||t,A=rP(2,void 0,void 0),u=Ja,Er(Ja.typeExpression);let Jl=Nu(Ja);if((oK(Ja)||!Ja.fullName)&&Jl&&Bj(Jl.parent)){let Id=gh(Jl.parent);if(Id){e0(t.symbol,Jl.parent,Id,!!go(Jl,op=>ba(op)&&op.name.escapedText==="prototype"),!1);let bd=m;switch(kj(Jl.parent)){case 1:case 2:Jv(t)?m=t:m=void 0;break;case 4:m=Jl.parent.expression;break;case 3:m=Jl.parent.expression.name;break;case 5:m=xM(t,Jl.parent.expression)?t:ba(Jl.parent.expression)?Jl.parent.expression.name:Jl.parent.expression;break;case 0:return Se.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}m&&rt(Ja,524288,788968),m=bd}}else oK(Ja)||!Ja.fullName||Ja.fullName.kind===80?(u=Ja.parent,vl(Ja,524288,788968)):Er(Ja.fullName)}m=He,x=Xt,v=un,u=Ur,A=Rs}function ja(){if(I===void 0)return;let He=m,Xt=x,un=v,Ur=u,Rs=A;for(let Ja of I){let Tc=L3(Ja),Jl=Tc?lse(Tc):void 0,Id=Tc?Xw(Tc):void 0;m=Jl||t,v=Id||t,A=rP(2,void 0,void 0),u=Ja,Er(Ja.importClause)}m=He,x=Xt,v=un,u=Ur,A=Rs}function Gd(He){if(!t.parseDiagnostics.length&&!(He.flags&33554432)&&!(He.flags&16777216)&&!K7(He)){let Xt=F6(He);if(Xt===void 0)return;ae&&Xt>=119&&Xt<=127?t.bindDiagnostics.push(Ae(He,Su(He),Gf(He))):Xt===135?Mg(t)&&lG(He)?t.bindDiagnostics.push(Ae(He,j.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,Gf(He))):He.flags&65536&&t.bindDiagnostics.push(Ae(He,j.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Gf(He))):Xt===127&&He.flags&16384&&t.bindDiagnostics.push(Ae(He,j.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Gf(He)))}}function Su(He){return vy(He)?j.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:t.externalModuleIndicator?j.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:j.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function Aa(He){He.escapedText==="#constructor"&&(t.parseDiagnostics.length||t.bindDiagnostics.push(Ae(He,j.constructor_is_a_reserved_word,Gf(He))))}function gr(He){ae&&MS(He.left)&&D4(He.operatorToken.kind)&&Ar(He,He.left)}function Wl(He){ae&&He.variableDeclaration&&Ar(He,He.variableDeclaration.name)}function Vc(He){if(ae&&He.expression.kind===80){let Xt=_5(t,He.expression);t.bindDiagnostics.push(k_(t,Xt.start,Xt.length,j.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function xu(He){return Ai(He)&&(He.escapedText==="eval"||He.escapedText==="arguments")}function Ar(He,Xt){if(Xt&&Xt.kind===80){let un=Xt;if(xu(un)){let Ur=_5(t,Xt);t.bindDiagnostics.push(k_(t,Ur.start,Ur.length,Hl(He),Un(un)))}}}function Hl(He){return vy(He)?j.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:t.externalModuleIndicator?j.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:j.Invalid_use_of_0_in_strict_mode}function Lf(He){ae&&!(He.flags&33554432)&&Ar(He,He.name)}function Rt(He){return vy(He)?j.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:t.externalModuleIndicator?j.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:j.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5}function bt(He){if(a<2&&v.kind!==307&&v.kind!==267&&!g8(v)){let Xt=_5(t,He);t.bindDiagnostics.push(k_(t,Xt.start,Xt.length,Rt(He)))}}function Ci(He){ae&&Ar(He,He.operand)}function kn(He){ae&&(He.operator===46||He.operator===47)&&Ar(He,He.operand)}function ke(He){ae&&oi(He,j.with_statements_are_not_allowed_in_strict_mode)}function Qt(He){ae&&h_(n)>=2&&(_Oe(He.statement)||Zh(He.statement))&&oi(He.label,j.A_label_is_not_allowed_here)}function oi(He,Xt,...un){let Ur=XD(t,He.pos);t.bindDiagnostics.push(k_(t,Ur.start,Ur.length,Xt,...un))}function nn(He,Xt,un){hr(He,Xt,Xt,un)}function hr(He,Xt,un,Ur){io(He,{pos:J6(Xt,t),end:un.end},Ur)}function io(He,Xt,un){let Ur=k_(t,Xt.pos,Xt.end-Xt.pos,un);He?t.bindDiagnostics.push(Ur):t.bindSuggestionDiagnostics=ar(t.bindSuggestionDiagnostics,{...Ur,category:2})}function Er(He){if(!He)return;dp(He,u),us&&(He.tracingPath=t.path);let Xt=ae;if(cu(He),He.kind>165){let un=u;u=He;let Ur=oP(He);Ur===0?Kt(He):ft(He,Ur),u=un}else{let un=u;He.kind===1&&(u=He),is(He),u=un}ae=Xt}function is(He){if(Gx(He))if(Ys(He))for(let Xt of He.jsDoc)Er(Xt);else for(let Xt of He.jsDoc)dp(Xt,He),G3(Xt,!1)}function zs(He){if(!ae)for(let Xt of He){if(!cw(Xt))return;if(da(Xt)){ae=!0;return}}}function da(He){let Xt=S8(t,He.expression);return Xt==='"use strict"'||Xt==="'use strict'"}function cu(He){switch(He.kind){case 80:if(He.flags&4096){let Tc=He.parent;for(;Tc&&!ux(Tc);)Tc=Tc.parent;vl(Tc,524288,788968);break}case 110:return A&&(An(He)||u.kind===304)&&(He.flowNode=A),Gd(He);case 166:A&&AZ(He)&&(He.flowNode=A);break;case 236:case 108:He.flowNode=A;break;case 81:return Aa(He);case 211:case 212:let Xt=He;A&&Ut(Xt)&&(Xt.flowNode=A),yse(Xt)&&Fd(Xt),Ys(Xt)&&t.commonJsModuleIndicator&&cN(Xt)&&!nce(v,"module")&&qe(t.locals,void 0,Xt.expression,134217729,111550);break;case 226:switch(wh(He)){case 1:ri(He);break;case 2:$n(He);break;case 3:Md(He.left,He);break;case 6:hp(He);break;case 4:Lc(He);break;case 5:let Tc=He.left.expression;if(Ys(He)&&Ai(Tc)){let Jl=nce(v,Tc.escapedText);if(T3(Jl?.valueDeclaration)){Lc(He);break}}tg(He);break;case 0:break;default:Se.fail("Unknown binary expression special property assignment kind")}return gr(He);case 299:return Wl(He);case 220:return Vc(He);case 225:return Ci(He);case 224:return kn(He);case 254:return ke(He);case 256:return Qt(He);case 197:T=!0;return;case 182:break;case 168:return Ft(He);case 169:return st(He);case 260:return Tr(He);case 208:return He.flowNode=A,Tr(He);case 172:case 171:return ru(He);case 303:case 304:return yn(He,4,0);case 306:return yn(He,8,900095);case 179:case 180:case 181:return wr(He,131072,0);case 174:case 173:return yn(He,8192|(He.questionToken?16777216:0),zT(He)?0:103359);case 262:return gi(He);case 176:return wr(He,16384,0);case 177:return yn(He,32768,46015);case 178:return yn(He,65536,78783);case 184:case 317:case 323:case 185:return _a(He);case 187:case 322:case 200:return mf(He);case 332:return In(He);case 210:return Fa(He);case 218:case 219:return an(He);case 213:switch(wh(He)){case 7:return j_(He);case 8:return cl(He);case 9:return Wf(He);case 0:break;default:return Se.fail("Unknown call expression assignment declaration kind")}Ys(He)&&xt(He);break;case 231:case 263:return ae=!0,ln(He);case 264:return vl(He,64,788872);case 265:return vl(He,524288,788968);case 266:return Dr(He);case 267:return pa(He);case 292:return Pf(He);case 291:return $l(He,4,0);case 271:case 274:case 276:case 281:return wr(He,2097152,2097152);case 270:return rp(He);case 273:return er(He);case 278:return _i(He);case 277:return td(He);case 307:return zs(He.statements),B_();case 241:if(!g8(He.parent))return;case 268:return zs(He.statements);case 341:if(He.parent.kind===323)return st(He);if(He.parent.kind!==322)break;case 348:let Rs=He,Ja=Rs.isBracketed||Rs.typeExpression&&Rs.typeExpression.type.kind===316?16777220:4;return wr(Rs,Ja,0);case 346:case 338:case 340:return(k||(k=[])).push(He);case 339:return Er(He.typeExpression);case 351:return(I||(I=[])).push(He)}}function ru(He){let Xt=g1(He),un=Xt?98304:4,Ur=Xt?13247:0;return yn(He,un|(He.questionToken?16777216:0),Ur)}function mf(He){return cc(He,2048,"__type")}function B_(){if(Ts(t),Mg(t))vd();else if(qv(t)){vd();let He=t.symbol;qe(t.symbol.exports,t.symbol,t,4,-1),t.symbol=He}}function vd(){cc(t,512,`"${Qx(t.fileName)}"`)}function td(He){if(!m.symbol||!m.symbol.exports)cc(He,111551,$e(He));else{let Xt=Nj(He)?2097152:4,un=qe(m.symbol.exports,m.symbol,He,Xt,-1);He.isExportEquals&&YD(un,He)}}function rp(He){En(He.modifiers)&&t.bindDiagnostics.push(Ae(He,j.Modifiers_cannot_appear_here));let Xt=ul(He.parent)?Mg(He.parent)?He.parent.isDeclarationFile?void 0:j.Global_module_exports_may_only_appear_in_declaration_files:j.Global_module_exports_may_only_appear_in_module_files:j.Global_module_exports_may_only_appear_at_top_level;Xt?t.bindDiagnostics.push(Ae(He,Xt)):(t.symbol.globalExports=t.symbol.globalExports||Au(),qe(t.symbol.globalExports,t.symbol,He,2097152,2097152))}function _i(He){!m.symbol||!m.symbol.exports?cc(He,8388608,$e(He)):He.exportClause?vm(He.exportClause)&&(dp(He.exportClause,He),qe(m.symbol.exports,m.symbol,He.exportClause,2097152,2097152)):qe(m.symbol.exports,m.symbol,He,8388608,0)}function er(He){He.name&&wr(He,2097152,2097152)}function wo(He){return t.externalModuleIndicator&&t.externalModuleIndicator!==!0?!1:(t.commonJsModuleIndicator||(t.commonJsModuleIndicator=He,t.externalModuleIndicator||vd()),!0)}function cl(He){if(!wo(He))return;let Xt=Ap(He.arguments[0],void 0,(un,Ur)=>(Ur&&Re(Ur,un,67110400),Ur));Xt&&qe(Xt.exports,Xt,He,1048580,0)}function ri(He){if(!wo(He))return;let Xt=Ap(He.left.expression,void 0,(un,Ur)=>(Ur&&Re(Ur,un,67110400),Ur));if(Xt){let Ur=Ij(He.right)&&(PH(He.left.expression)||cN(He.left.expression))?2097152:1048580;dp(He.left,He),qe(Xt.exports,Xt,He.left,Ur,0)}}function $n(He){if(!wo(He))return;let Xt=S4(He.right);if(nm(Xt)||m===t&&xM(t,Xt))return;if(Ld(Xt)&&Yt(Xt.properties,Q0)){ee(Xt.properties,xo);return}let un=Nj(He)?2097152:1049092,Ur=qe(t.symbol.exports,t.symbol,He,un|67108864,0);YD(Ur,He)}function xo(He){qe(t.symbol.exports,t.symbol,He,69206016,0)}function Lc(He){if(Se.assert(Ys(He)),ms(He)&&ba(He.left)&&wl(He.left.name)||ba(He)&&wl(He.name))return;let un=Kb(He,!1,!1);switch(un.kind){case 262:case 218:let Ur=un.symbol;if(ms(un.parent)&&un.parent.operatorToken.kind===64){let Tc=un.parent.left;gk(Tc)&&Y6(Tc.expression)&&(Ur=wg(Tc.expression.expression,g))}Ur&&Ur.valueDeclaration&&(Ur.members=Ur.members||Au(),HA(He)?tl(He,Ur,Ur.members):qe(Ur.members,Ur,He,67108868,0),Re(Ur,Ur.valueDeclaration,32));break;case 176:case 172:case 174:case 177:case 178:case 175:let Rs=un.parent,Ja=Xd(un)?Rs.symbol.exports:Rs.symbol.members;HA(He)?tl(He,Rs.symbol,Ja):qe(Ja,Rs.symbol,He,67108868,0,!0);break;case 307:if(HA(He))break;un.commonJsModuleIndicator?qe(un.symbol.exports,un.symbol,He,1048580,0):wr(He,1,111550);break;case 267:break;default:Se.failBadSyntaxKind(un)}}function tl(He,Xt,un){qe(un,Xt,He,4,0,!0,!0),il(He,Xt)}function il(He,Xt){Xt&&(Xt.assignmentDeclarationMembers||(Xt.assignmentDeclarationMembers=new Map)).set(pp(He),He)}function Fd(He){He.expression.kind===110?Lc(He):gk(He)&&He.parent.parent.kind===307&&(Y6(He.expression)?Md(He,He.parent):Rg(He))}function hp(He){dp(He.left,He),dp(He.right,He),wp(He.left.expression,He.left,!1,!0)}function Wf(He){let Xt=wg(He.arguments[0].expression);Xt&&Xt.valueDeclaration&&Re(Xt,Xt.valueDeclaration,32),A0(He,Xt,!0)}function Md(He,Xt){let un=He.expression,Ur=un.expression;dp(Ur,un),dp(un,He),dp(He,Xt),wp(Ur,He,!0,!0)}function j_(He){let Xt=wg(He.arguments[0]),un=He.parent.parent.kind===307;Xt=e0(Xt,He.arguments[0],un,!1,!1),A0(He,Xt,!1)}function tg(He){var Xt;let un=wg(He.left.expression,v)||wg(He.left.expression,m);if(!Ys(He)&&!OZ(un))return;let Ur=rU(He.left);if(!(Ai(Ur)&&((Xt=nce(m,Ur.escapedText))==null?void 0:Xt.flags)&2097152))if(dp(He.left,He),dp(He.right,He),Ai(He.left.expression)&&m===t&&xM(t,He.left.expression))ri(He);else if(HA(He)){cc(He,67108868,"__computed");let Rs=e0(un,He.left.expression,gh(He.left),!1,!1);il(He,Rs)}else Rg($d(He.left,lN))}function Rg(He){Se.assert(!Ai(He)),dp(He.expression,He),wp(He.expression,He,!1,!1)}function e0(He,Xt,un,Ur,Rs){return He?.flags&2097152||(un&&!Ur&&(He=Ap(Xt,He,(Jl,Id,bd)=>{if(Id)return Re(Id,Jl,67110400),Id;{let op=bd?bd.exports:t.jsGlobalAugmentations||(t.jsGlobalAugmentations=Au());return qe(op,bd,Jl,67110400,110735)}})),Rs&&He&&He.valueDeclaration&&Re(He,He.valueDeclaration,32)),He}function A0(He,Xt,un){if(!Xt||!xb(Xt))return;let Ur=un?Xt.members||(Xt.members=Au()):Xt.exports||(Xt.exports=Au()),Rs=0,Ja=0;Rp(U7(He))?(Rs=8192,Ja=103359):Od(He)&&I3(He)&&(En(He.arguments[2].properties,Tc=>{let Jl=Nu(Tc);return!!Jl&&Ai(Jl)&&Un(Jl)==="set"})&&(Rs|=65540,Ja|=78783),En(He.arguments[2].properties,Tc=>{let Jl=Nu(Tc);return!!Jl&&Ai(Jl)&&Un(Jl)==="get"})&&(Rs|=32772,Ja|=46015)),Rs===0&&(Rs=4,Ja=0),qe(Ur,Xt,He,Rs|67108864,Ja&-67108865)}function gh(He){return ms(He.parent)?ig(He.parent).parent.kind===307:He.parent.parent.kind===307}function wp(He,Xt,un,Ur){let Rs=wg(He,v)||wg(He,m),Ja=gh(Xt);Rs=e0(Rs,Xt.expression,Ja,un,Ur),A0(Xt,Rs,un)}function xb(He){if(He.flags&1072)return!0;let Xt=He.valueDeclaration;if(Xt&&Od(Xt))return!!U7(Xt);let un=Xt?$c(Xt)?Xt.initializer:ms(Xt)?Xt.right:ba(Xt)&&ms(Xt.parent)?Xt.parent.right:void 0:void 0;if(un=un&&S4(un),un){let Ur=Y6($c(Xt)?Xt.name:ms(Xt)?Xt.left:Xt);return!!zA(ms(un)&&(un.operatorToken.kind===57||un.operatorToken.kind===61)?un.right:un,Ur)}return!1}function ig(He){for(;ms(He.parent);)He=He.parent;return He.parent}function wg(He,Xt=m){if(Ai(He))return nce(Xt,He.escapedText);{let un=wg(He.expression);return un&&un.exports&&un.exports.get(Yw(He))}}function Ap(He,Xt,un){if(xM(t,He))return t.symbol;if(Ai(He))return un(He,wg(He),Xt);{let Ur=Ap(He.expression,Xt,un),Rs=LH(He);return wl(Rs)&&Se.fail("unexpected PrivateIdentifier"),un(Rs,Ur&&Ur.exports&&Ur.exports.get(Yw(He)),Ur)}}function xt(He){!t.commonJsModuleIndicator&&es(He,!1)&&wo(He)}function ln(He){if(He.kind===263)vl(He,32,899503);else{let Rs=He.name?He.name.escapedText:"__class";cc(He,32,Rs),He.name&&be.add(He.name.escapedText)}let{symbol:Xt}=He,un=Oe(4194308,"prototype"),Ur=Xt.exports.get(un.escapedName);Ur&&(He.name&&dp(He.name,He),t.bindDiagnostics.push(Ae(Ur.declarations[0],j.Duplicate_identifier_0,Bc(un)))),Xt.exports.set(un.escapedName,un),un.parent=Xt}function Dr(He){return jy(He)?vl(He,128,899967):vl(He,256,899327)}function Tr(He){if(ae&&Ar(He,He.name),!Uu(He.name)){let Xt=He.kind===260?He:He.parent.parent;Ys(He)&&E3(Xt)&&!b3(He)&&!(iv(He)&32)?wr(He,2097152,2097152):jpe(He)?vl(He,2,111551):k4(He)?wr(He,1,111551):wr(He,1,111550)}}function st(He){if(!(He.kind===341&&m.kind!==323)&&(ae&&!(He.flags&33554432)&&Ar(He,He.name),Uu(He.name)?cc(He,1,"__"+He.parent.parameters.indexOf(He)):wr(He,1,111551),OC(He,He.parent))){let Xt=He.parent.parent;qe(Xt.symbol.members,Xt.symbol,He,4|(He.questionToken?16777216:0),0)}}function gi(He){!t.isDeclarationFile&&!(He.flags&33554432)&&BZ(He)&&(_e|=4096),Lf(He),ae?(bt(He),vl(He,16,110991)):wr(He,16,110991)}function an(He){!t.isDeclarationFile&&!(He.flags&33554432)&&BZ(He)&&(_e|=4096),A&&(He.flowNode=A),Lf(He);let Xt=He.name?He.name.escapedText:"__function";return cc(He,16,Xt)}function yn(He,Xt,un){return!t.isDeclarationFile&&!(He.flags&33554432)&&BZ(He)&&(_e|=4096),A&&EZ(He)&&(He.flowNode=A),HA(He)?cc(He,Xt,"__computed"):wr(He,Xt,un)}function Be(He){let Xt=go(He,un=>un.parent&&YE(un.parent)&&un.parent.extendsType===un);return Xt&&Xt.parent}function Ft(He){if(tC(He.parent)){let Xt=tme(He.parent);Xt?(Se.assertNode(Xt,zE),Xt.locals??(Xt.locals=Au()),qe(Xt.locals,void 0,He,262144,526824)):wr(He,262144,526824)}else if(He.parent.kind===195){let Xt=Be(He.parent);Xt?(Se.assertNode(Xt,zE),Xt.locals??(Xt.locals=Au()),qe(Xt.locals,void 0,He,262144,526824)):cc(He,262144,$e(He))}else wr(He,262144,526824)}function Vi(He){let Xt=$2(He);return Xt===1||Xt===2&&ph(n)}function yr(He){if(!(A.flags&1))return!1;if(A===Le&&(K$(He)&&He.kind!==242||He.kind===263||aF(He,n)||He.kind===267&&Vi(He))&&(A=fe,!n.allowUnreachableCode)){let un=Hj(n)&&!(He.flags&33554432)&&(!Zh(He)||!!(d4(He.declarationList)&7)||He.declarationList.declarations.some(Ur=>!!Ur.initializer));Y8e(He,n,(Ur,Rs)=>hr(un,Ur,Rs,j.Unreachable_code_detected))}return!0}}function aF(t,n){return t.kind===266&&(!jy(t)||ph(n))}function Y8e(t,n,a){if(ll(t)&&u(t)&&qu(t.parent)){let{statements:g}=t.parent,v=$j(g,t);IE(v,u,(x,k)=>a(v[x],v[k-1]))}else a(t,t);function u(g){return!fp(g)&&!m(g)&&!(Zh(g)&&!(d4(g)&7)&&g.declarationList.declarations.some(v=>!v.initializer))}function m(g){switch(g.kind){case 264:case 265:return!0;case 267:return $2(g)!==1;case 266:return!aF(g,n);default:return!1}}}function xM(t,n){let a=0,u=ZV();for(u.enqueue(n);!u.isEmpty()&&a<100;){if(a++,n=u.dequeue(),PH(n)||cN(n))return!0;if(Ai(n)){let m=nce(t,n.escapedText);if(m&&m.valueDeclaration&&$c(m.valueDeclaration)&&m.valueDeclaration.initializer){let g=m.valueDeclaration.initializer;u.enqueue(g),Kg(g,!0)&&(u.enqueue(g.left),u.enqueue(g.right))}}}return!1}function oP(t){switch(t.kind){case 231:case 263:case 266:case 210:case 187:case 322:case 292:return 1;case 264:return 65;case 267:case 265:case 200:case 181:return 33;case 307:return 37;case 177:case 178:case 174:if(EZ(t))return 173;case 176:case 262:case 173:case 179:case 323:case 317:case 184:case 180:case 185:case 175:return 45;case 218:case 219:return 61;case 268:return 4;case 172:return t.initializer?4:0;case 299:case 248:case 249:case 250:case 269:return 34;case 241:return iu(t.parent)||Yf(t.parent)?0:34}return 0}function nce(t,n){var a,u,m,g;let v=(u=(a=ac(t,zE))==null?void 0:a.locals)==null?void 0:u.get(n);if(v)return v.exportSymbol??v;if(ul(t)&&t.jsGlobalAugmentations&&t.jsGlobalAugmentations.has(n))return t.jsGlobalAugmentations.get(n);if($x(t))return(g=(m=t.symbol)==null?void 0:m.exports)==null?void 0:g.get(n)}function vKe(t,n,a,u,m,g,v,x,k,T){return I;function I(A=()=>!0){let M=[],R=[];return{walkType:Ee=>{try{return H(Ee),{visitedTypes:k0(M),visitedSymbols:k0(R)}}finally{La(M),La(R)}},walkSymbol:Ee=>{try{return le(Ee),{visitedTypes:k0(M),visitedSymbols:k0(R)}}finally{La(M),La(R)}}};function H(Ee){if(!(!Ee||M[Ee.id]||(M[Ee.id]=Ee,le(Ee.symbol)))){if(Ee.flags&524288){let be=Ee,Le=be.objectFlags;Le&4&&U(Ee),Le&32&&ne(Ee),Le&3&&_e(Ee),Le&24&&ae(be)}Ee.flags&262144&&$(Ee),Ee.flags&3145728&&K(Ee),Ee.flags&4194304&&re(Ee),Ee.flags&8388608&&X(Ee)}}function U(Ee){H(Ee.target),ee(T(Ee),H)}function $(Ee){H(x(Ee))}function K(Ee){ee(Ee.types,H)}function re(Ee){H(Ee.type)}function X(Ee){H(Ee.objectType),H(Ee.indexType),H(Ee.constraint)}function ne(Ee){H(Ee.typeParameter),H(Ee.constraintType),H(Ee.templateType),H(Ee.modifiersType)}function se(Ee){let xe=n(Ee);xe&&H(xe.type),ee(Ee.typeParameters,H);for(let be of Ee.parameters)le(be);H(t(Ee)),H(a(Ee))}function _e(Ee){ae(Ee),ee(Ee.typeParameters,H),ee(u(Ee),H),H(Ee.thisType)}function ae(Ee){let xe=m(Ee);for(let be of xe.indexInfos)H(be.keyType),H(be.type);for(let be of xe.callSignatures)se(be);for(let be of xe.constructSignatures)se(be);for(let be of xe.properties)le(be)}function le(Ee){if(!Ee)return!1;let xe=Nf(Ee);if(R[xe])return!1;if(R[xe]=Ee,!A(Ee))return!0;let be=g(Ee);return H(be),Ee.exports&&Ee.exports.forEach(le),ee(Ee.declarations,Le=>{if(Le.type&&Le.type.kind===186){let fe=Le.type,we=v(k(fe.exprName));le(we)}}),!1}}}var cF={};d(cF,{RelativePreference:()=>sP,countPathComponents:()=>zTe,forEachFileNameOfModule:()=>EKe,getLocalModuleSpecifierBetweenFileNames:()=>CKe,getModuleSpecifier:()=>K9t,getModuleSpecifierPreferences:()=>Uhe,getModuleSpecifiers:()=>WTe,getModuleSpecifiersWithCacheInfo:()=>Jhe,getNodeModulesPackageName:()=>X9t,tryGetJSExtensionForFile:()=>JTe,tryGetModuleSpecifiersFromCache:()=>Y9t,tryGetRealFileNameForNonJsDeclarationFileName:()=>NKe,updateModuleSpecifier:()=>SKe});var bKe=l_(t=>{try{let n=t.indexOf("/");if(n!==0)return new RegExp(t);let a=t.lastIndexOf("/");if(n===a)return new RegExp(t);for(;(n=t.indexOf("/",n+1))!==a;)if(t[n-1]!=="\\")return new RegExp(t);let u=t.substring(a+1).replace(/[^iu]/g,"");return t=t.substring(1,a),new RegExp(t,u)}catch{return}}),sP=(t=>(t[t.Relative=0]="Relative",t[t.NonRelative=1]="NonRelative",t[t.Shortest=2]="Shortest",t[t.ExternalNonRelative=3]="ExternalNonRelative",t))(sP||{});function Uhe({importModuleSpecifierPreference:t,importModuleSpecifierEnding:n,autoImportSpecifierExcludeRegexes:a},u,m,g,v){let x=k();return{excludeRegexes:a,relativePreference:v!==void 0?l0(v)?0:1:t==="relative"?0:t==="non-relative"?1:t==="project-relative"?3:2,getAllowedEndingsInPreferredOrder:T=>{let I=tFe(g,u,m),A=T!==I?k(T):x,M=S1(m);if((T??I)===99&&3<=M&&M<=99)return DK(m,g.fileName)?[3,2]:[2];if(S1(m)===1)return A===2?[2,1]:[1,2];let R=DK(m,g.fileName);switch(A){case 2:return R?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return R?[1,0,3,2]:[1,0,2];case 0:return R?[0,1,3,2]:[0,1,2];default:Se.assertNever(A)}}};function k(T){if(v!==void 0){if(eL(v))return 2;if(xh(v,"/index"))return 1}return M$e(n,T??tFe(g,u,m),m,Yx(g)?g:void 0)}}function SKe(t,n,a,u,m,g,v={}){let x=xKe(t,n,a,u,m,Uhe({},m,t,n,g),{},v);if(x!==g)return x}function K9t(t,n,a,u,m,g={}){return xKe(t,n,a,u,m,Uhe({},m,t,n),{},g)}function X9t(t,n,a,u,m,g={}){let v=CW(n.fileName,u),x=DKe(v,a,u,m,t,g);return Je(x,k=>Z8e(k,v,n,u,t,m,!0,g.overrideImportMode))}function xKe(t,n,a,u,m,g,v,x={}){let k=CW(a,m),T=DKe(k,u,m,v,t,x);return Je(T,I=>Z8e(I,k,n,m,t,v,void 0,x.overrideImportMode))||kKe(u,k,t,m,x.overrideImportMode||tFe(n,m,t),g)}function Y9t(t,n,a,u,m={}){let g=t9(t,n,a,u,m);return g[1]&&{kind:g[0],moduleSpecifiers:g[1],computedWithoutCache:!1}}function t9(t,n,a,u,m={}){var g;let v=g4(t);if(!v)return F;let x=(g=a.getModuleSpecifierCache)==null?void 0:g.call(a),k=x?.get(n.path,v.path,u,m);return[k?.kind,k?.moduleSpecifiers,v,k?.modulePaths,x]}function WTe(t,n,a,u,m,g,v={}){return Jhe(t,n,a,u,m,g,v,!1).moduleSpecifiers}function Jhe(t,n,a,u,m,g,v={},x){let k=!1,T=VTe(t,n);if(T)return{kind:"ambient",moduleSpecifiers:x&&qhe(T,g.autoImportSpecifierExcludeRegexes)?F:[T],computedWithoutCache:k};let[I,A,M,R,H]=t9(t,u,m,g,v);if(A)return{kind:I,moduleSpecifiers:A,computedWithoutCache:k};if(!M)return{kind:void 0,moduleSpecifiers:F,computedWithoutCache:k};k=!0,R||(R=d0t(CW(u.fileName,m),M.originalFileName,m,a,v));let U=i9(R,a,u,m,g,v,x);return H?.set(u.path,M.path,g,v,U.kind,R,U.moduleSpecifiers),U}function CKe(t,n,a,u,m,g={}){let v=CW(t.fileName,u),x=g.overrideImportMode??t.impliedNodeFormat;return kKe(n,v,a,u,x,Uhe(m,u,a,t))}function i9(t,n,a,u,m,g={},v){let x=CW(a.fileName,u),k=Uhe(m,u,n,a),T=Yx(a)&&ee(t,U=>ee(u.getFileIncludeReasons().get(dd(U.path,u.getCurrentDirectory(),x.getCanonicalFileName)),$=>{if($.kind!==3||$.file!==a.path)return;let K=u.getModeForResolutionAtIndex(a,$.index),re=g.overrideImportMode??u.getDefaultResolutionModeForFile(a);if(K!==re&&K!==void 0&&re!==void 0)return;let X=QU(a,$.index).text;return k.relativePreference!==1||!t_(X)?X:void 0}));if(T)return{kind:void 0,moduleSpecifiers:[T],computedWithoutCache:!0};let I=En(t,U=>U.isInNodeModules),A,M,R,H;for(let U of t){let $=U.isInNodeModules?Z8e(U,x,a,u,n,m,void 0,g.overrideImportMode):void 0;if($&&!(v&&qhe($,k.excludeRegexes))&&(A=ar(A,$),U.isRedirect))return{kind:"node_modules",moduleSpecifiers:A,computedWithoutCache:!0};if(!$){let K=kKe(U.path,x,n,u,g.overrideImportMode||a.impliedNodeFormat,k,U.isRedirect);if(!K||v&&qhe(K,k.excludeRegexes))continue;U.isRedirect?R=ar(R,K):ZQ(K)?vM(K)?H=ar(H,K):M=ar(M,K):(v||!I||U.isInNodeModules)&&(H=ar(H,K))}}return M?.length?{kind:"paths",moduleSpecifiers:M,computedWithoutCache:!0}:R?.length?{kind:"redirect",moduleSpecifiers:R,computedWithoutCache:!0}:A?.length?{kind:"node_modules",moduleSpecifiers:A,computedWithoutCache:!0}:{kind:"relative",moduleSpecifiers:H??F,computedWithoutCache:!0}}function qhe(t,n){return En(n,a=>{var u;return!!((u=bKe(a))!=null&&u.test(t))})}function CW(t,n){t=tu(t,n.getCurrentDirectory());let a=U0(n.useCaseSensitiveFileNames?n.useCaseSensitiveFileNames():!0),u=Cc(t);return{getCanonicalFileName:a,importingSourceFileName:t,sourceDirectory:u,canonicalSourceDirectory:a(u)}}function kKe(t,n,a,u,m,{getAllowedEndingsInPreferredOrder:g,relativePreference:v,excludeRegexes:x},k){let{baseUrl:T,paths:I,rootDirs:A}=a;if(k&&!I)return;let{sourceDirectory:M,canonicalSourceDirectory:R,getCanonicalFileName:H}=n,U=g(m),$=A&&IKe(A,t,M,H,U,a)||$he(FE(w2(M,t,H)),U,a);if(!T&&!I&&!mwe(a)||v===0)return k?void 0:$;let K=tu(UA(a,u)||T,u.getCurrentDirectory()),re=Ghe(t,K,H);if(!re)return k?void 0:$;let X=k?void 0:f0t(t,M,a,u,m,Z9t(U)),ne=k||X===void 0?I&&Q8e(re,I,U,u,a):void 0;if(k)return ne;let se=X??(ne===void 0&&T!==void 0?$he(re,U,a):ne);if(!se)return $;let _e=qhe($,x),ae=qhe(se,x);if(!_e&&ae)return $;if(_e&&!ae||v===1&&!t_(se))return se;if(v===3&&!t_(se)){let le=a.configFilePath?dd(Cc(a.configFilePath),u.getCurrentDirectory(),n.getCanonicalFileName):n.getCanonicalFileName(u.getCurrentDirectory()),Ee=dd(t,le,H),xe=xl(R,le),be=xl(Ee,le);if(xe&&!be||!xe&&be)return se;let Le=TKe(u,Cc(Ee)),fe=TKe(u,M),we=!TG(u);return l0t(Le,fe,we)?$:se}return m0t(se)||zTe($)t.fileExists(Ps(a,"package.json"))?a:void 0)}function EKe(t,n,a,u,m){var g;let v=E4(a),x=a.getCurrentDirectory(),k=a.isSourceOfProjectReferenceRedirect(n)?a.getProjectReferenceRedirect(n):void 0,T=dd(n,x,v),I=a.redirectTargetsMap.get(T)||F,M=[...k?[k]:F,n,...I].map(K=>tu(K,x)),R=!Yt(M,V8);if(!u){let K=ee(M,re=>!(R&&V8(re))&&m(re,k===re));if(K)return K}let H=(g=a.getSymlinkCache)==null?void 0:g.call(a).getSymlinkedDirectoriesByRealpath(),U=tu(n,x);return H&&T2(Cc(U),K=>{let re=H.get(Fs(dd(K,x,v)));if(re)return T7(t,K,v)?!1:ee(M,X=>{if(!T7(X,K,v))return;let ne=w2(K,X,v);for(let se of re){let _e=w7(se,ne),ae=m(_e,X===k);if(R=!0,ae)return ae}})})||(u?ee(M,K=>R&&V8(K)?void 0:m(K,K===k)):void 0)}function DKe(t,n,a,u,m,g={}){var v;let x=dd(t.importingSourceFileName,a.getCurrentDirectory(),E4(a)),k=dd(n,a.getCurrentDirectory(),E4(a)),T=(v=a.getModuleSpecifierCache)==null?void 0:v.call(a);if(T){let A=T.get(x,k,u,g);if(A?.modulePaths)return A.modulePaths}let I=d0t(t,n,a,m,g);return T&&T.setModulePaths(x,k,u,g,I),I}var u0t=["dependencies","peerDependencies","optionalDependencies"];function Q9t(t){let n;for(let a of u0t){let u=t[a];u&&typeof u=="object"&&(n=Pl(n,Zy(u)))}return n}function d0t(t,n,a,u,m){var g,v;let x=(g=a.getModuleResolutionCache)==null?void 0:g.call(a),k=(v=a.getSymlinkCache)==null?void 0:v.call(a);if(x&&k&&a.readFile&&!vM(t.importingSourceFileName)){Se.type(a);let M=e9(x.getPackageJsonInfoCache(),a,{}),R=Vee(Cc(t.importingSourceFileName),M);if(R){let H=Q9t(R.contents.packageJsonContent);for(let U of H||F){let $=TK(U,Ps(R.packageDirectory,"package.json"),u,a,x,void 0,m.overrideImportMode);k.setSymlinksFromResolution($.resolvedModule)}}}let T=new Map,I=!1;EKe(t.importingSourceFileName,n,a,!0,(M,R)=>{let H=vM(M);T.set(M,{path:t.getCanonicalFileName(M),isRedirect:R,isInNodeModules:H}),I=I||H});let A=[];for(let M=t.canonicalSourceDirectory;T.size!==0;){let R=Fs(M),H;T.forEach(({path:$,isRedirect:K,isInNodeModules:re},X)=>{xl($,R)&&((H||(H=[])).push({path:X,isRedirect:K,isInNodeModules:re}),T.delete(X))}),H&&(H.length>1&&H.sort(wKe),A.push(...H));let U=Cc(M);if(U===M)break;M=U}if(T.size){let M=tc(T.entries(),([R,{isRedirect:H,isInNodeModules:U}])=>({path:R,isRedirect:H,isInNodeModules:U}));M.length>1&&M.sort(wKe),A.push(...M)}return A}function VTe(t,n){var a;let u=(a=t.declarations)==null?void 0:a.find(v=>rb(v)&&(!j7(v)||!l0(jC(v.name))));if(u)return u.name.text;let g=Dc(t.declarations,v=>{var x,k,T,I;if(!Dh(v))return;let A=U(v);if(!((x=A?.parent)!=null&&x.parent&&vN(A.parent)&&nb(A.parent.parent)&&ul(A.parent.parent.parent)))return;let M=(I=(T=(k=A.parent.parent.symbol.exports)==null?void 0:k.get("export="))==null?void 0:T.valueDeclaration)==null?void 0:I.expression;if(!M)return;let R=n.getSymbolAtLocation(M);if(!R)return;if((R?.flags&2097152?n.getAliasedSymbol(R):R)===v.symbol)return A.parent.parent;function U($){for(;$.flags&8;)$=$.parent;return $}})[0];if(g)return g.name.text}function Q8e(t,n,a,u,m){for(let v in n)for(let x of n[v]){let k=Kd(x),T=k.indexOf("*"),I=a.map(A=>({ending:A,value:$he(t,[A],m)}));if(Pg(k)&&I.push({ending:void 0,value:t}),T!==-1){let A=k.substring(0,T),M=k.substring(T+1);for(let{ending:R,value:H}of I)if(H.length>=A.length+M.length&&xl(H,A)&&xh(H,M)&&g({ending:R,value:H})){let U=H.substring(A.length,H.length-M.length);if(!t_(U))return rL(v,U)}}else if(En(I,A=>A.ending!==0&&k===A.value)||En(I,A=>A.ending===0&&k===A.value&&g(A)))return v}function g({ending:v,value:x}){return v!==0||x===$he(t,[v],m,u)}}function HTe(t,n,a,u,m,g,v,x,k,T){if(typeof g=="string"){let I=!TG(n),A=()=>n.getCommonSourceDirectory(),M=k&&qU(a,t,I,A),R=k&&B4(a,t,I,A),H=tu(Ps(u,g),void 0),U=VG(a)?Qx(a)+JTe(a,t):void 0,$=T&&Twe(a);switch(x){case 0:if(U&&fk(U,H,I)===0||fk(a,H,I)===0||M&&fk(M,H,I)===0||R&&fk(R,H,I)===0)return{moduleFileToTry:m};break;case 1:if($&&Gp(a,H,I)){let ne=w2(H,a,!1);return{moduleFileToTry:tu(Ps(Ps(m,g),ne),void 0)}}if(U&&Gp(H,U,I)){let ne=w2(H,U,!1);return{moduleFileToTry:tu(Ps(Ps(m,g),ne),void 0)}}if(!$&&Gp(H,a,I)){let ne=w2(H,a,!1);return{moduleFileToTry:tu(Ps(Ps(m,g),ne),void 0)}}if(M&&Gp(H,M,I)){let ne=w2(H,M,!1);return{moduleFileToTry:Ps(m,ne)}}if(R&&Gp(H,R,I)){let ne=yu(w2(H,R,!1),eFe(R,t));return{moduleFileToTry:Ps(m,ne)}}break;case 2:let K=H.indexOf("*"),re=H.slice(0,K),X=H.slice(K+1);if($&&xl(a,re,I)&&xh(a,X,I)){let ne=a.slice(re.length,a.length-X.length);return{moduleFileToTry:rL(m,ne)}}if(U&&xl(U,re,I)&&xh(U,X,I)){let ne=U.slice(re.length,U.length-X.length);return{moduleFileToTry:rL(m,ne)}}if(!$&&xl(a,re,I)&&xh(a,X,I)){let ne=a.slice(re.length,a.length-X.length);return{moduleFileToTry:rL(m,ne)}}if(M&&xl(M,re,I)&&xh(M,X,I)){let ne=M.slice(re.length,M.length-X.length);return{moduleFileToTry:rL(m,ne)}}if(R&&xl(R,re,I)&&xh(R,X,I)){let ne=R.slice(re.length,R.length-X.length),se=rL(m,ne),_e=JTe(R,t);return _e?{moduleFileToTry:yu(se,_e)}:void 0}break}}else{if(Array.isArray(g))return ee(g,I=>HTe(t,n,a,u,m,I,v,x,k,T));if(typeof g=="object"&&g!==null){for(let I of Zy(g))if(I==="default"||v.indexOf(I)>=0||EK(v,I)){let A=g[I],M=HTe(t,n,a,u,m,A,v,x,k,T);if(M)return M}}}}function UTe(t,n,a,u,m,g,v){return typeof g=="object"&&g!==null&&!Array.isArray(g)&&ece(g)?ee(Zy(g),x=>{let k=tu(Ps(m,x),void 0),T=xh(x,"/")?1:x.includes("*")?2:0;return HTe(t,n,a,u,k,g[x],v,T,!1,!1)}):HTe(t,n,a,u,m,g,v,0,!1,!1)}function f0t(t,n,a,u,m,g){var v,x,k;if(!u.readFile||!mwe(a))return;let T=TKe(u,n);if(!T)return;let I=Ps(T,"package.json"),A=(x=(v=u.getPackageJsonInfoCache)==null?void 0:v.call(u))==null?void 0:x.getPackageJsonInfo(I);if(kK(A)||!u.fileExists(I))return;let M=A?.contents.packageJsonContent||jj(u.readFile(I)),R=M?.imports;if(!R)return;let H=yM(a,m);return(k=ee(Zy(R),U=>{if(!xl(U,"#")||U==="#"||xl(U,"#/"))return;let $=xh(U,"/")?1:U.includes("*")?2:0;return HTe(a,u,t,T,U,R[U],H,$,!0,g)}))==null?void 0:k.moduleFileToTry}function IKe(t,n,a,u,m,g){let v=p0t(n,t,u);if(v===void 0)return;let x=p0t(a,t,u),k=za(x,I=>$i(v,A=>FE(w2(I,A,u)))),T=dCe(k,O5);if(T)return $he(T,m,g)}function Z8e({path:t,isRedirect:n},{getCanonicalFileName:a,canonicalSourceDirectory:u},m,g,v,x,k,T){if(!g.fileExists||!g.readFile)return;let I=Kj(t);if(!I)return;let M=Uhe(x,g,v,m).getAllowedEndingsInPreferredOrder(),R=t,H=!1;if(!k){let ne=I.packageRootIndex,se;for(;;){let{moduleFileToTry:_e,packageRootPath:ae,blockedByExports:le,verbatimFromExports:Ee}=X(ne);if(S1(v)!==1){if(le)return;if(Ee)return _e}if(ae){R=ae,H=!0;break}if(se||(se=_e),ne=t.indexOf(uh,ne+1),ne===-1){R=$he(se,M,v,g);break}}}if(n&&!H)return;let U=g.getGlobalTypingsCacheLocation&&g.getGlobalTypingsCacheLocation(),$=a(R.substring(0,I.topLevelNodeModulesIndex));if(!(xl(u,$)||U&&xl(a(U),$)))return;let K=R.substring(I.topLevelPackageNameIndex+1),re=qee(K);return S1(v)===1&&re===K?void 0:re;function X(ne){var se,_e;let ae=t.substring(0,ne),le=Ps(ae,"package.json"),Ee=t,xe=!1,be=(_e=(se=g.getPackageJsonInfoCache)==null?void 0:se.call(g))==null?void 0:_e.getPackageJsonInfo(le);if(CK(be)||be===void 0&&g.fileExists(le)){let Le=be?.contents.packageJsonContent||jj(g.readFile(le)),fe=T||tFe(m,g,v);if(Tme(v)){let Ge=ae.substring(I.topLevelPackageNameIndex+1),he=qee(Ge),Oe=yM(v,fe),Re=Le?.exports?UTe(v,g,t,ae,he,Le.exports,Oe):void 0;if(Re)return{...Re,verbatimFromExports:!0};if(Le?.exports)return{moduleFileToTry:t,blockedByExports:!0}}let we=Le?.typesVersions?Lhe(Le.typesVersions):void 0;if(we){let Ge=t.slice(ae.length+1),he=Q8e(Ge,we.paths,M,g,v);he===void 0?xe=!0:Ee=Ps(ae,he)}let Ae=Le?.typings||Le?.types||Le?.main||"index.js";if(Yu(Ae)&&!(xe&&tL(Zse(we.paths),Ae))){let Ge=dd(Ae,ae,a),he=a(Ee);if(Qx(Ge)===Qx(he))return{packageRootPath:ae,moduleFileToTry:Ee};if(Le?.type!=="module"&&!gg(he,zG)&&xl(he,Ge)&&Cc(he)===OE(Ge)&&Qx(sg(he))==="index")return{packageRootPath:ae,moduleFileToTry:Ee}}}else{let Le=a(Ee.substring(I.packageRootIndex+1));if(Le==="index.d.ts"||Le==="index.js"||Le==="index.ts"||Le==="index.tsx")return{moduleFileToTry:Ee,packageRootPath:ae}}return{moduleFileToTry:Ee}}}function _0t(t,n){if(!t.fileExists)return;let a=cr(qj({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));for(let u of a){let m=n+u;if(t.fileExists(m))return m}}function p0t(t,n,a){return Dc(n,u=>{let m=Ghe(t,u,a);return m!==void 0&&m0t(m)?void 0:m})}function $he(t,n,a,u){if(gg(t,[".json",".mjs",".cjs"]))return t;let m=Qx(t);if(t===m)return t;let g=n.indexOf(2),v=n.indexOf(3);if(gg(t,[".mts",".cts"])&&v!==-1&&vT===0||T===1);return k!==-1&&k-1&&n(t[t.None=0]="None",t[t.TypeofEQString=1]="TypeofEQString",t[t.TypeofEQNumber=2]="TypeofEQNumber",t[t.TypeofEQBigInt=4]="TypeofEQBigInt",t[t.TypeofEQBoolean=8]="TypeofEQBoolean",t[t.TypeofEQSymbol=16]="TypeofEQSymbol",t[t.TypeofEQObject=32]="TypeofEQObject",t[t.TypeofEQFunction=64]="TypeofEQFunction",t[t.TypeofEQHostObject=128]="TypeofEQHostObject",t[t.TypeofNEString=256]="TypeofNEString",t[t.TypeofNENumber=512]="TypeofNENumber",t[t.TypeofNEBigInt=1024]="TypeofNEBigInt",t[t.TypeofNEBoolean=2048]="TypeofNEBoolean",t[t.TypeofNESymbol=4096]="TypeofNESymbol",t[t.TypeofNEObject=8192]="TypeofNEObject",t[t.TypeofNEFunction=16384]="TypeofNEFunction",t[t.TypeofNEHostObject=32768]="TypeofNEHostObject",t[t.EQUndefined=65536]="EQUndefined",t[t.EQNull=131072]="EQNull",t[t.EQUndefinedOrNull=262144]="EQUndefinedOrNull",t[t.NEUndefined=524288]="NEUndefined",t[t.NENull=1048576]="NENull",t[t.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",t[t.Truthy=4194304]="Truthy",t[t.Falsy=8388608]="Falsy",t[t.IsUndefined=16777216]="IsUndefined",t[t.IsNull=33554432]="IsNull",t[t.IsUndefinedOrNull=50331648]="IsUndefinedOrNull",t[t.All=134217727]="All",t[t.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",t[t.BaseStringFacts=12582401]="BaseStringFacts",t[t.StringStrictFacts=16317953]="StringStrictFacts",t[t.StringFacts=16776705]="StringFacts",t[t.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",t[t.EmptyStringFacts=12582401]="EmptyStringFacts",t[t.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",t[t.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",t[t.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",t[t.BaseNumberFacts=12582146]="BaseNumberFacts",t[t.NumberStrictFacts=16317698]="NumberStrictFacts",t[t.NumberFacts=16776450]="NumberFacts",t[t.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",t[t.ZeroNumberFacts=12582146]="ZeroNumberFacts",t[t.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",t[t.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",t[t.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",t[t.BaseBigIntFacts=12581636]="BaseBigIntFacts",t[t.BigIntStrictFacts=16317188]="BigIntStrictFacts",t[t.BigIntFacts=16775940]="BigIntFacts",t[t.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",t[t.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",t[t.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",t[t.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",t[t.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",t[t.BaseBooleanFacts=12580616]="BaseBooleanFacts",t[t.BooleanStrictFacts=16316168]="BooleanStrictFacts",t[t.BooleanFacts=16774920]="BooleanFacts",t[t.FalseStrictFacts=12121864]="FalseStrictFacts",t[t.FalseFacts=12580616]="FalseFacts",t[t.TrueStrictFacts=7927560]="TrueStrictFacts",t[t.TrueFacts=16774920]="TrueFacts",t[t.SymbolStrictFacts=7925520]="SymbolStrictFacts",t[t.SymbolFacts=16772880]="SymbolFacts",t[t.ObjectStrictFacts=7888800]="ObjectStrictFacts",t[t.ObjectFacts=16736160]="ObjectFacts",t[t.FunctionStrictFacts=7880640]="FunctionStrictFacts",t[t.FunctionFacts=16728e3]="FunctionFacts",t[t.VoidFacts=9830144]="VoidFacts",t[t.UndefinedFacts=26607360]="UndefinedFacts",t[t.NullFacts=42917664]="NullFacts",t[t.EmptyObjectStrictFacts=83427327]="EmptyObjectStrictFacts",t[t.EmptyObjectFacts=83886079]="EmptyObjectFacts",t[t.UnknownFacts=83886079]="UnknownFacts",t[t.AllTypeofNE=556800]="AllTypeofNE",t[t.OrFactsMask=8256]="OrFactsMask",t[t.AndFactsMask=134209471]="AndFactsMask",t))(Khe||{}),rFe=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),$Te=(t=>(t[t.Normal=0]="Normal",t[t.Contextual=1]="Contextual",t[t.Inferential=2]="Inferential",t[t.SkipContextSensitive=4]="SkipContextSensitive",t[t.SkipGenericFunctions=8]="SkipGenericFunctions",t[t.IsForSignatureHelp=16]="IsForSignatureHelp",t[t.RestBindingElement=32]="RestBindingElement",t[t.TypeOnly=64]="TypeOnly",t))($Te||{}),Xhe=(t=>(t[t.None=0]="None",t[t.BivariantCallback=1]="BivariantCallback",t[t.StrictCallback=2]="StrictCallback",t[t.IgnoreReturnTypes=4]="IgnoreReturnTypes",t[t.StrictArity=8]="StrictArity",t[t.StrictTopSignature=16]="StrictTopSignature",t[t.Callback=3]="Callback",t))(Xhe||{}),oFe=wv(g0t,sFe),GTe=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3,NoInfer:4})),LKe=class{};function h0t(){this.flags=0}function pp(t){return t.id||(t.id=rce,rce++),t.id}function Nf(t){return t.id||(t.id=AKe,AKe++),t.id}function Yhe(t,n){let a=$2(t);return a===1||n&&a===2}function Qhe(t){var n=[],a=f=>{n.push(f)},u,m,g=xd.getSymbolConstructor(),v=xd.getTypeConstructor(),x=xd.getSignatureConstructor(),k=0,T=0,I=0,A=0,M=0,R=0,H,U,$=!1,K=Au(),re=[1],X=t.getCompilerOptions(),ne=h_(X),se=b1(X),_e=!!X.experimentalDecorators,ae=KZ(X),le=B8(X),Ee=cU(X),xe=d0(X,"strictNullChecks"),be=d0(X,"strictFunctionTypes"),Le=d0(X,"strictBindCallApply"),fe=d0(X,"strictPropertyInitialization"),we=d0(X,"strictBuiltinIteratorReturn"),Ae=d0(X,"noImplicitAny"),Ge=d0(X,"noImplicitThis"),he=d0(X,"useUnknownInCatchVariables"),Oe=X.exactOptionalPropertyTypes,Re=!!X.noUncheckedSideEffectImports,$e=Fde(),Ke=kXt(),qe=RN(),rt=D7e(X,{isEntityNameVisible:VJ,isExpandoFunctionDeclaration:TEt,getAllAccessorDeclarations:PI,requiresAddingImplicitUndefined:Tze,isUndefinedIdentifierExpression(f){return Se.assert(ab(f)),pE(f)===mt},isDefinitelyReferenceToGlobalSymbolObject:Tg}),_t=YG({evaluateElementAccessExpression:VKt,evaluateEntityNameExpression:hbe}),ft=Au(),mt=Ou(4,"undefined");mt.declarations=[];var ut=Ou(1536,"globalThis",8);ut.exports=ft,ut.declarations=[],ft.set(ut.escapedName,ut);var ht=Ou(4,"arguments"),Kt=Ou(4,"require"),ni=X.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",Ut=!X.verbatimModuleSyntax,pi,wi,Bi=0,Bn,mr=0,Ei=oT({compilerOptions:X,requireSymbol:Kt,argumentsSymbol:ht,globals:ft,getSymbolOfDeclaration:Bs,error:ki,getRequiresScopeChangeCache:Ew,setRequiresScopeChangeCache:mI,lookup:Wp,onPropertyWithInvalidInitializer:LN,onFailedToResolveSymbol:yp,onSuccessfullyResolvedSymbol:a2}),zn=oT({compilerOptions:X,requireSymbol:Kt,argumentsSymbol:ht,globals:ft,getSymbolOfDeclaration:Bs,error:ki,getRequiresScopeChangeCache:Ew,setRequiresScopeChangeCache:mI,lookup:wTt});let zr={getNodeCount:()=>$m(t.getSourceFiles(),(f,S)=>f+S.nodeCount,0),getIdentifierCount:()=>$m(t.getSourceFiles(),(f,S)=>f+S.identifierCount,0),getSymbolCount:()=>$m(t.getSourceFiles(),(f,S)=>f+S.symbolCount,T),getTypeCount:()=>k,getInstantiationCount:()=>I,getRelationCacheSizes:()=>({assignable:P1.size,identity:ny.size,subtype:Tx.size,strictSubtype:e1.size}),isUndefinedSymbol:f=>f===mt,isArgumentsSymbol:f=>f===ht,isUnknownSymbol:f=>f===St,getMergedSymbol:Vf,symbolIsValue:r1,getDiagnostics:hEt,getGlobalDiagnostics:ylt,getRecursionIdentity:f1e,getUnmatchedProperties:p6,getTypeOfSymbolAtLocation:(f,S)=>{let E=ju(S);return E?Iwt(f,E):Ie},getTypeOfSymbol:Js,getSymbolsOfParameterPropertyDeclaration:(f,S)=>{let E=ju(f,Fl);return E===void 0?Se.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(Se.assert(OC(E,E.parent)),Tw(E,kh(S)))},getDeclaredTypeOfSymbol:_m,getPropertiesOfType:Lp,getPropertyOfType:(f,S)=>Ku(f,kh(S)),getPrivateIdentifierPropertyOfType:(f,S,E)=>{let P=ju(E);if(!P)return;let z=kh(S),q=APe(z,P);return q?PPe(f,q):void 0},getTypeOfPropertyOfType:(f,S)=>Ln(f,kh(S)),getIndexInfoOfType:(f,S)=>AL(f,S===0?Ot:Fi),getIndexInfosOfType:o1,getIndexInfosOfIndexSymbol:zBe,getSignaturesOfType:kd,getIndexTypeOfType:(f,S)=>o6(f,S===0?Ot:Fi),getIndexType:f=>JN(f),getBaseTypes:Pp,getBaseTypeOfLiteralType:RL,getWidenedType:$k,getWidenedLiteralType:BL,getTypeFromTypeNode:f=>{let S=ju(f,Qa);return S?al(S):Ie},getParameterType:eA,getParameterIdentifierInfoAtPosition:$Pe,getPromisedTypeOfPromise:abe,getAwaitedType:f=>EY(f),getReturnTypeOfSignature:Op,isNullableType:O1e,getNullableType:m1e,getNonNullableType:LO,getNonOptionalType:Ox,getTypeArguments:nh,typeToTypeNode:qe.typeToTypeNode,typePredicateToTypePredicateNode:qe.typePredicateToTypePredicateNode,indexInfoToIndexSignatureDeclaration:qe.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:qe.signatureToSignatureDeclaration,symbolToEntityName:qe.symbolToEntityName,symbolToExpression:qe.symbolToExpression,symbolToNode:qe.symbolToNode,symbolToTypeParameterDeclarations:qe.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:qe.symbolToParameterDeclaration,typeParameterToDeclaration:qe.typeParameterToDeclaration,getSymbolsInScope:(f,S)=>{let E=ju(f);return E?gEt(E,S):[]},getSymbolAtLocation:f=>{let S=ju(f);return S?pE(S,!0):void 0},getIndexInfosAtLocation:f=>{let S=ju(f);return S?sXt(S):void 0},getShorthandAssignmentValueSymbol:f=>{let S=ju(f);return S?xze(S):void 0},getExportSpecifierLocalTargetSymbol:f=>{let S=ju(f,X0);return S?vbe(S):void 0},getExportSymbolOfSymbol(f){return Vf(f.exportSymbol||f)},getTypeAtLocation:f=>{let S=ju(f);return S?kq(S):Ie},getTypeOfAssignmentPattern:f=>{let S=ju(f,fZ);return S&&S4e(S)||Ie},getPropertySymbolOfDestructuringAssignment:f=>{let S=ju(f,Ai);return S?aXt(S):void 0},signatureToString:(f,S,E,P)=>gC(f,ju(S),E,P),typeToString:(f,S,E)=>vs(f,ju(S),E),symbolToString:(f,S,E,P)=>zl(f,ju(S),E,P),typePredicateToString:(f,S,E)=>yC(f,ju(S),E),writeSignature:(f,S,E,P,z)=>gC(f,ju(S),E,P,z),writeType:(f,S,E,P)=>vs(f,ju(S),E,P),writeSymbol:(f,S,E,P,z)=>zl(f,ju(S),E,P,z),writeTypePredicate:(f,S,E,P)=>yC(f,ju(S),E,P),getAugmentedPropertiesOfType:Cze,getRootSymbols:PY,getSymbolOfExpando:EWe,getContextualType:(f,S)=>{let E=ju(f,An);if(E)return S&4?_r(E,()=>TC(E,S)):TC(E,S)},getContextualTypeForObjectLiteralElement:f=>{let S=ju(f,FC);return S?oWe(S,void 0):void 0},getContextualTypeForArgumentAtIndex:(f,S)=>{let E=ju(f,H6);return E&&nWe(E,S)},getContextualTypeForJsxAttribute:f=>{let S=ju(f,Dv);return S&&SPe(S,void 0)},isContextSensitive:Lw,getTypeOfPropertyOfContextualType:VL,getFullyQualifiedName:l2,getResolvedSignature:(f,S,E)=>Hs(f,S,E,0),getCandidateSignaturesForStringLiteralCompletions:xr,getResolvedSignatureForSignatureHelp:(f,S,E)=>lo(f,()=>Hs(f,S,E,16)),getExpandedParameters:nkt,hasEffectiveRestParameter:g6,containsArgumentsReference:rst,getConstantValue:f=>{let S=ju(f,EEt);return S?k4e(S):void 0},isValidPropertyAccess:(f,S)=>{let E=ju(f,qoe);return!!E&&J$t(E,kh(S))},isValidPropertyAccessForCompletions:(f,S,E)=>{let P=ju(f,ba);return!!P&&FPe(P,S,E)},getSignatureFromDeclaration:f=>{let S=ju(f,iu);return S?m2(S):void 0},isImplementationOfOverload:f=>{let S=ju(f,iu);return S?Xde(S):void 0},getImmediateAliasedSymbol:N1e,getAliasedSymbol:oy,getEmitResolver:pv,requiresAddingImplicitUndefined:Tze,getExportsOfModule:tE,getExportsAndPropertiesOfModule:r_,forEachExportAndPropertyOfModule:ma,getSymbolWalker:vKe(MJt,Pw,Op,Pp,UN,Js,SS,xC,fx,nh),getAmbientModules:je,getJsxIntrinsicTagNamesAt:B$t,isOptionalParameter:f=>{let S=ju(f,Fl);return S?Aue(S):!1},tryGetMemberInModuleExports:(f,S)=>Db(kh(f),S),tryGetMemberInModuleExportsAndProperties:(f,S)=>R0(kh(f),S),tryFindAmbientModule:f=>ykt(f,!0),getApparentType:qS,getUnionType:Fc,isTypeAssignableTo:wf,createAnonymousType:ml,createSignature:n6,createSymbol:Ou,createIndexInfo:CT,getAnyType:()=>pt,getStringType:()=>Ot,getStringLiteralType:kC,getNumberType:()=>Fi,getNumberLiteralType:fg,getBigIntType:()=>Vn,getBigIntLiteralType:EP,createPromiseType:G1e,createArrayType:vS,getElementTypeOfArrayType:ML,getBooleanType:()=>Cn,getFalseType:f=>f?In:dn,getTrueType:f=>f?Si:Ri,getVoidType:()=>Pn,getUndefinedType:()=>ye,getNullType:()=>si,getESSymbolType:()=>cn,getNeverType:()=>Wi,getOptionalType:()=>We,getPromiseType:()=>AAe(!1),getPromiseLikeType:()=>Ikt(!1),getAnyAsyncIterableType:()=>{let f=Yve(!1);if(f!==Vc)return wP(f,[pt,pt,pt])},isSymbolAccessible:_S,isArrayType:ok,isTupleType:a_,isArrayLikeType:AO,isEmptyAnonymousObjectType:_6,isTypeInvalidDueToUnionDiscriminant:ukt,getExactOptionalProperties:JAe,getAllPossiblePropertiesOfTypes:dkt,getSuggestedSymbolForNonexistentProperty:cct,getSuggestedSymbolForNonexistentJSXAttribute:CTt,getSuggestedSymbolForNonexistentSymbol:(f,S,E)=>lct(f,kh(S),E),getSuggestedSymbolForNonexistentModule:cB,getSuggestedSymbolForNonexistentClassMember:xTt,getBaseConstraintOfType:Pb,getDefaultFromTypeParameter:f=>f&&f.flags&262144?R9(f):void 0,resolveName(f,S,E,P){return Ei(S,kh(f),E,void 0,!1,P)},getJsxNamespace:f=>Ba(zm(f)),getJsxFragmentFactory:f=>{let S=Elt(f);return S&&Ba(fx(S).escapedText)},getAccessibleSymbolChain:bT,getTypePredicateOfSignature:Pw,resolveExternalModuleName:f=>{let S=ju(f,An);return S&&Gy(S,S,!0)},resolveExternalModuleSymbol:R1,tryGetThisTypeAt:(f,S,E)=>{let P=ju(f);return P&&Hat(P,S,E)},getTypeArgumentConstraint:f=>{let S=ju(f,Qa);return S&&nbe(S)},getSuggestionDiagnostics:(f,S)=>{let E=ju(f,ul)||Se.fail("Could not determine parsed source file.");if(W8(E,X,t))return F;let P;try{return u=S,ybe(E),Se.assert(!!(ra(E).flags&1)),P=Ho(P,pT.getDiagnostics(E.fileName)),A2t(_E(E),(z,q,oe)=>{!B7(z)&&!gbe(q,!!(z.flags&33554432))&&(P||(P=[])).push({...oe,category:2})}),P||F}finally{u=void 0}},runWithCancellationToken:(f,S)=>{try{return u=f,S(zr)}finally{u=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:Wa,isDeclarationVisible:zk,isPropertyAccessible:bWe,getTypeOnlyAliasDeclaration:vT,getMemberOverrideModifierStatus:OKt,isTypeParameterPossiblyReferenced:t1e,typeHasCallOrConstructSignatures:kze,getSymbolFlags:qy};function xr(f,S){let E=new Set,P=[];_r(S,()=>Hs(f,P,void 0,0));for(let z of P)E.add(z);P.length=0,lo(S,()=>Hs(f,P,void 0,0));for(let z of P)E.add(z);return tc(E)}function lo(f,S){if(f=go(f,Tpe),f){let E=[],P=[];for(;f;){let q=ra(f);if(E.push([q,q.resolvedSignature]),q.resolvedSignature=void 0,H8(f)){let oe=Nl(Bs(f)),Fe=oe.type;P.push([oe,Fe]),oe.type=void 0}f=go(f.parent,Tpe)}let z=S();for(let[q,oe]of E)q.resolvedSignature=oe;for(let[q,oe]of P)q.type=oe;return z}return S()}function _r(f,S){let E=go(f,H6);if(E){let z=f;do ra(z).skipDirectInference=!0,z=z.parent;while(z&&z!==E)}$=!0;let P=lo(f,S);if($=!1,E){let z=f;do ra(z).skipDirectInference=void 0,z=z.parent;while(z&&z!==E)}return P}function Hs(f,S,E,P){let z=ju(f,H6);pi=E;let q=z?bq(z,S,P):void 0;return pi=void 0,q}var ai=new Map,mn=new Map,Nn=new Map,Gr=new Map,ci=new Map,gn=new Map,Sr=new Map,vo=new Map,$o=new Map,Mn=new Map,Qs=new Map,Pi=new Map,qi=new Map,lt=new Map,Xi=new Map,nt=[],Lt=new Map,Pe=new Set,St=Ou(4,"unknown"),Ve=Ou(0,"__resolving__"),Tt=new Map,dt=new Map,Wt=new Set,pt=Sn(1,"any"),Gt=Sn(1,"any",262144,"auto"),Mt=Sn(1,"any",void 0,"wildcard"),hi=Sn(1,"any",void 0,"blocked string"),Ie=Sn(1,"error"),Bt=Sn(1,"unresolved"),ui=Sn(1,"any",65536,"non-inferrable"),Ue=Sn(1,"intrinsic"),Ce=Sn(2,"unknown"),ye=Sn(32768,"undefined"),vt=xe?ye:Sn(32768,"undefined",65536,"widening"),pe=Sn(32768,"undefined",void 0,"missing"),at=Oe?pe:ye,We=Sn(32768,"undefined",void 0,"optional"),si=Sn(65536,"null"),At=xe?si:Sn(65536,"null",65536,"widening"),Ot=Sn(4,"string"),Fi=Sn(8,"number"),Vn=Sn(64,"bigint"),In=Sn(512,"false",void 0,"fresh"),dn=Sn(512,"false"),Si=Sn(512,"true",void 0,"fresh"),Ri=Sn(512,"true");Si.regularType=Ri,Si.freshType=Si,Ri.regularType=Ri,Ri.freshType=Si,In.regularType=dn,In.freshType=In,dn.regularType=dn,dn.freshType=In;var Cn=Fc([dn,Ri]),cn=Sn(4096,"symbol"),Pn=Sn(16384,"void"),Wi=Sn(131072,"never"),Kn=Sn(131072,"never",262144,"silent"),Ti=Sn(131072,"never",void 0,"implicit"),wr=Sn(131072,"never",void 0,"unreachable"),Nr=Sn(67108864,"object"),Vr=Fc([Ot,Fi]),ir=Fc([Ot,Fi,cn]),Ts=Fc([Fi,Vn]),pa=Fc([Ot,Fi,Cn,Vn,si,ye]),Nc=TP(["",""],[Fi]),_a=eq(f=>f.flags&262144?Qkt(f):f,()=>"(restrictive mapper)"),Fa=eq(f=>f.flags&262144?Mt:f,()=>"(permissive mapper)"),Pf=Sn(131072,"never",void 0,"unique literal"),$l=eq(f=>f.flags&262144?Pf:f,()=>"(unique literal mapper)"),cc,vl=eq(f=>(cc&&(f===Rt||f===bt||f===Ci)&&cc(!0),f),()=>"(unmeasurable reporter)"),G_=eq(f=>(cc&&(f===Rt||f===bt||f===Ci)&&cc(!1),f),()=>"(unreliable reporter)"),ja=ml(void 0,K,F,F,F),Gd=ml(void 0,K,F,F,F);Gd.objectFlags|=2048;var Su=Ou(2048,"__type");Su.members=Au();var Aa=ml(Su,K,F,F,F),gr=ml(void 0,K,F,F,F),Wl=xe?Fc([ye,si,gr]):Ce,Vc=ml(void 0,K,F,F,F);Vc.instantiations=new Map;var xu=ml(void 0,K,F,F,F);xu.objectFlags|=262144;var Ar=ml(void 0,K,F,F,F),Hl=ml(void 0,K,F,F,F),Lf=ml(void 0,K,F,F,F),Rt=Gi(),bt=Gi();bt.constraint=Rt;var Ci=Gi(),kn=Gi(),ke=Gi();ke.constraint=kn;var Qt=Pue(1,"<>",0,pt),oi=n6(void 0,void 0,void 0,F,pt,void 0,0,0),nn=n6(void 0,void 0,void 0,F,Ie,void 0,0,0),hr=n6(void 0,void 0,void 0,F,pt,void 0,0,0),io=n6(void 0,void 0,void 0,F,Kn,void 0,0,0),Er=CT(Fi,Ot,!0),is=new Map,zs={get yieldType(){return Se.fail("Not supported")},get returnType(){return Se.fail("Not supported")},get nextType(){return Se.fail("Not supported")}},da=pR(pt,pt,pt),cu={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:zJt,getGlobalIterableType:Yve,getGlobalIterableIteratorType:Nkt,getGlobalIteratorObjectType:VJt,getGlobalGeneratorType:HJt,getGlobalBuiltinIteratorTypes:pst,resolveIterationType:(f,S)=>EY(f,S,j.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:j.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:j.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:j.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},ru={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:UJt,getGlobalIterableType:ZBe,getGlobalIterableIteratorType:Akt,getGlobalIteratorObjectType:qJt,getGlobalGeneratorType:$Jt,getGlobalBuiltinIteratorTypes:JJt,resolveIterationType:(f,S)=>f,mustHaveANextMethodDiagnostic:j.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:j.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:j.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},mf,B_=new Map,vd=new Map,td,rp,_i,er,wo,cl,ri,$n,xo,Lc,tl,il,Fd,hp,Wf,Md,j_,tg,Rg,e0,A0,gh,wp,xb,ig,wg,Ap,xt,ln,Dr,Tr,st,gi,an,yn,Be,Ft,Vi,yr,He,Xt,un,Ur,Rs,Ja,Tc,Jl,Id,bd,op,Pv,Lv,P0,Ny,y_,ng,eh,m0,Z_,Ay,Py,iy=new Map,sC=0,h0=0,aC=0,A1=!1,dv=0,Ov,xi,Ui,nr=[],Hr=[],yo=[],fs=0,Co=[],Os=[],Jc=[],qt=0,bi=kC(""),Li=fg(0),Yn=EP({negative:!1,base10Value:"0"}),Mr=[],Bo=[],bo=[],Zs=0,jc=!1,bs=0,nl=10,Us=[],Pu=[],ep=[],L0=[],Cb=[],O0=[],HS=[],t0=[],cD=[],cC=[],Ok=[],lf=[],s2=[],wx=[],kw=[],QC=[],US=[],Zv=[],fv=[],_v=0,Gu=kse(),pT=kse(),pP=Et(),fI,ZC,Tx=new Map,e1=new Map,P1=new Map,gp=new Map,ny=new Map,lD=new Map,Fk=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",X.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return wXt(),zr;function Tg(f){return!ba(f)||!Ai(f.name)||!ba(f.expression)&&!Ai(f.expression)?!1:Ai(f.expression)?Un(f.expression)==="Symbol"&&SS(f.expression)===(z9("Symbol",1160127,void 0)||St):Ai(f.expression.expression)?Un(f.expression.name)==="Symbol"&&Un(f.expression.expression)==="globalThis"&&SS(f.expression.expression)===ut:!1}function Oi(f){return f?Xi.get(f):void 0}function L1(f,S){return f&&Xi.set(f,S),S}function zm(f){if(f){let S=Vo(f);if(S)if(cM(f)){if(S.localJsxFragmentNamespace)return S.localJsxFragmentNamespace;let E=S.pragmas.get("jsxfrag");if(E){let z=ua(E)?E[0]:E;if(S.localJsxFragmentFactory=sO(z.arguments.factory,ne),on(S.localJsxFragmentFactory,Hh,tb),S.localJsxFragmentFactory)return S.localJsxFragmentNamespace=fx(S.localJsxFragmentFactory).escapedText}let P=Elt(f);if(P)return S.localJsxFragmentFactory=P,S.localJsxFragmentNamespace=fx(P).escapedText}else{let E=_I(S);if(E)return S.localJsxNamespace=E}}return fI||(fI="React",X.jsxFactory?(ZC=sO(X.jsxFactory,ne),on(ZC,Hh),ZC&&(fI=fx(ZC).escapedText)):X.reactNamespace&&(fI=kh(X.reactNamespace))),ZC||(ZC=Me.createQualifiedName(Me.createIdentifier(Ba(fI)),"createElement")),fI}function _I(f){if(f.localJsxNamespace)return f.localJsxNamespace;let S=f.pragmas.get("jsx");if(S){let E=ua(S)?S[0]:S;if(f.localJsxFactory=sO(E.arguments.factory,ne),on(f.localJsxFactory,Hh,tb),f.localJsxFactory)return f.localJsxNamespace=fx(f.localJsxFactory).escapedText}}function Hh(f){return KT(f,-1,-1),Fo(f,Hh,void 0)}function pv(f,S,E){return E||hEt(f,S),Ke}function Bg(f,S,...E){let P=f?ws(f,S,...E):Th(S,...E),z=Gu.lookup(P);return z||(Gu.add(P),P)}function Mk(f,S,E,...P){let z=ki(S,E,...P);return z.skippedOn=f,z}function mT(f,S,...E){return f?ws(f,S,...E):Th(S,...E)}function ki(f,S,...E){let P=mT(f,S,...E);return Gu.add(P),P}function Ly(f,S){f?Gu.add(S):pT.add({...S,category:2})}function lC(f,S,E,...P){if(S.pos<0||S.end<0){if(!f)return;let z=Vo(S);Ly(f,"message"in E?k_(z,0,0,E,...P):Vpe(z,E));return}Ly(f,"message"in E?ws(S,E,...P):WT(Vo(S),S,E))}function uD(f,S,E,...P){let z=ki(f,E,...P);if(S){let q=ws(f,j.Did_you_forget_to_use_await);Pd(z,q)}return z}function mP(f,S){let E=Array.isArray(f)?ee(f,Ike):Ike(f);return E&&Pd(S,ws(E,j.The_declaration_was_marked_as_deprecated_here)),pT.add(S),S}function Rk(f){let S=B0(f);return S&&Z(f.declarations)>1?S.flags&64?En(f.declarations,uC):Yt(f.declarations,uC):!!f.valueDeclaration&&uC(f.valueDeclaration)||Z(f.declarations)&&Yt(f.declarations,uC)}function uC(f){return!!(ca(f)&536870912)}function Ex(f,S,E){let P=ws(f,j._0_is_deprecated,E);return mP(S,P)}function pI(f,S,E,P){let z=E?ws(f,j.The_signature_0_of_1_is_deprecated,P,E):ws(f,j._0_is_deprecated,P);return mP(S,z)}function Ou(f,S,E){T++;let P=new g(f|33554432,S);return P.links=new LKe,P.links.checkFlags=E||0,P}function jg(f,S){let E=Ou(1,f);return E.links.type=S,E}function ek(f,S){let E=Ou(4,f);return E.links.type=S,E}function ww(f){let S=0;return f&2&&(S|=111551),f&1&&(S|=111550),f&4&&(S|=0),f&8&&(S|=900095),f&16&&(S|=110991),f&32&&(S|=899503),f&64&&(S|=788872),f&256&&(S|=899327),f&128&&(S|=899967),f&512&&(S|=110735),f&8192&&(S|=103359),f&32768&&(S|=46015),f&65536&&(S|=78783),f&262144&&(S|=526824),f&524288&&(S|=788968),f&2097152&&(S|=2097152),S}function Kc(f,S){S.mergeId||(S.mergeId=PKe,PKe++),Us[S.mergeId]=f}function oa(f){let S=Ou(f.flags,f.escapedName);return S.declarations=f.declarations?f.declarations.slice():[],S.parent=f.parent,f.valueDeclaration&&(S.valueDeclaration=f.valueDeclaration),f.constEnumOnlyModule&&(S.constEnumOnlyModule=!0),f.members&&(S.members=new Map(f.members)),f.exports&&(S.exports=new Map(f.exports)),Kc(S,f),S}function yh(f,S,E=!1){if(!(f.flags&ww(S.flags))||(S.flags|f.flags)&67108864){if(S===f)return f;if(!(f.flags&33554432)){let q=Nm(f);if(q===St)return S;if(!(q.flags&ww(S.flags))||(S.flags|q.flags)&67108864)f=oa(q);else return P(f,S),S}S.flags&512&&f.flags&512&&f.constEnumOnlyModule&&!S.constEnumOnlyModule&&(f.constEnumOnlyModule=!1),f.flags|=S.flags,S.valueDeclaration&&YD(f,S.valueDeclaration),Ho(f.declarations,S.declarations),S.members&&(f.members||(f.members=Au()),Uy(f.members,S.members,E)),S.exports&&(f.exports||(f.exports=Au()),Uy(f.exports,S.exports,E,f)),E||Kc(f,S)}else f.flags&1024?f!==ut&&ki(S.declarations&&Nu(S.declarations[0]),j.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,zl(f)):P(f,S);return f;function P(q,oe){let Fe=!!(q.flags&384||oe.flags&384),Ye=!!(q.flags&2||oe.flags&2),it=Fe?j.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:Ye?j.Cannot_redeclare_block_scoped_variable_0:j.Duplicate_identifier_0,tt=oe.declarations&&Vo(oe.declarations[0]),It=q.declarations&&Vo(q.declarations[0]),Pt=tG(tt,X.checkJs),yi=tG(It,X.checkJs),Hi=zl(oe);if(tt&&It&&mf&&!Fe&&tt!==It){let vn=fk(tt.path,It.path)===-1?tt:It,br=vn===tt?It:tt,Qr=Hv(mf,`${vn.path}|${br.path}`,()=>({firstFile:vn,secondFile:br,conflictingSymbols:new Map})),ao=Hv(Qr.conflictingSymbols,Hi,()=>({isBlockScoped:Ye,firstFileLocations:[],secondFileLocations:[]}));Pt||z(ao.firstFileLocations,oe),yi||z(ao.secondFileLocations,q)}else Pt||hT(oe,it,Hi,q),yi||hT(q,it,Hi,oe)}function z(q,oe){if(oe.declarations)for(let Fe of oe.declarations)Xu(q,Fe)}}function hT(f,S,E,P){ee(f.declarations,z=>{dC(z,S,E,P.declarations)})}function dC(f,S,E,P){let z=(zA(f,!1)?xOe(f):Nu(f))||f,q=Bg(z,S,E);for(let oe of P||F){let Fe=(zA(oe,!1)?xOe(oe):Nu(oe))||oe;if(Fe===z)continue;q.relatedInformation=q.relatedInformation||[];let Ye=ws(Fe,j._0_was_also_declared_here,E),it=ws(Fe,j.and_here);Z(q.relatedInformation)>=5||En(q.relatedInformation,tt=>FG(tt,it)===0||FG(tt,Ye)===0)||Pd(q,Z(q.relatedInformation)?it:Ye)}}function dD(f,S){if(!f?.size)return S;if(!S?.size)return f;let E=Au();return Uy(E,f),Uy(E,S),E}function Uy(f,S,E=!1,P){S.forEach((z,q)=>{let oe=f.get(q),Fe=oe?yh(oe,z,E):Vf(z);P&&oe&&(Fe.parent=P),f.set(q,Fe)})}function Y2(f){var S,E,P;let z=f.parent;if(((S=z.symbol.declarations)==null?void 0:S[0])!==z){Se.assert(z.symbol.declarations.length>1);return}if(y4(z))Uy(ft,z.symbol.exports);else{let q=f.parent.parent.flags&33554432?void 0:j.Invalid_module_name_in_augmentation_module_0_cannot_be_found,oe=ON(f,f,q,!1,!0);if(!oe)return;if(oe=R1(oe),oe.flags&1920)if(En(rp,Fe=>oe===Fe.symbol)){let Fe=yh(z.symbol,oe,!0);_i||(_i=new Map),_i.set(f.text,Fe)}else{if((E=oe.exports)!=null&&E.get("__export")&&((P=z.symbol.exports)!=null&&P.size)){let Fe=Kot(oe,"resolvedExports");for(let[Ye,it]of tc(z.symbol.exports.entries()))Fe.has(Ye)&&!oe.exports.has(Ye)&&yh(Fe.get(Ye),it)}yh(oe,z.symbol)}else ki(f,j.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,f.text)}}function fC(){let f=mt.escapedName,S=ft.get(f);S?ee(S.declarations,E=>{Xj(E)||Gu.add(ws(E,j.Declaration_name_conflicts_with_built_in_global_identifier_0,Ba(f)))}):ft.set(f,mt)}function Nl(f){if(f.flags&33554432)return f.links;let S=Nf(f);return Pu[S]??(Pu[S]=new LKe)}function ra(f){let S=pp(f);return ep[S]||(ep[S]=new h0t)}function Wp(f,S,E){if(E){let P=Vf(f.get(S));if(P&&(P.flags&E||P.flags&2097152&&qy(P)&E))return P}}function Tw(f,S){let E=f.parent,P=f.parent.parent,z=Wp(E.locals,S,111551),q=Wp(ZM(P.symbol),S,111551);return z&&q?[z,q]:Se.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function W_(f,S){let E=Vo(f),P=Vo(S),z=Xw(f);if(E!==P){if(se&&(E.externalModuleIndicator||P.externalModuleIndicator)||!X.outFile||GH(S)||f.flags&33554432||oe(S,f))return!0;let Ye=t.getSourceFiles();return Ye.indexOf(E)<=Ye.indexOf(P)}if(S.flags&16777216||GH(S)||Wje(S))return!0;if(f.pos<=S.pos&&!(vu(f)&&gj(S.parent)&&!f.initializer&&!f.exclamationToken)){if(f.kind===208){let Ye=M2(S,208);return Ye?go(Ye,Zd)!==go(f,Zd)||f.posit===f?"quit":f_(it)?it.parent.parent===f:!_e&&Cy(it)&&(it.parent===f||Sg(it.parent)&&it.parent.parent===f||Hoe(it.parent)&&it.parent.parent===f||vu(it.parent)&&it.parent.parent===f||Fl(it.parent)&&it.parent.parent.parent===f));return Ye?!_e&&Cy(Ye)?!!go(S,it=>it===Ye?"quit":iu(it)&&!w3(it)):!1:!0}else{if(vu(f))return!Fe(f,S,!1);if(OC(f,f.parent))return!(le&&vy(f)===vy(S)&&oe(S,f))}}return!0}if(S.parent.kind===281||S.parent.kind===277&&S.parent.isExportEquals||S.kind===277&&S.isExportEquals)return!0;if(oe(S,f))return le&&vy(f)&&(vu(f)||OC(f,f.parent))?!Fe(f,S,!0):!0;return!1;function q(Ye,it){switch(Ye.parent.parent.kind){case 243:case 248:case 250:if(c2(it,Ye,z))return!0;break}let tt=Ye.parent.parent;return Rn(tt)&&c2(it,tt.expression,z)}function oe(Ye,it){return!!go(Ye,tt=>{if(tt===z)return"quit";if(iu(tt))return!0;if(Yf(tt))return it.posYe.end?!1:go(it,Pt=>{if(Pt===Ye)return"quit";switch(Pt.kind){case 219:return!0;case 172:return tt&&(vu(Ye)&&Pt.parent===Ye.parent||OC(Ye,Ye.parent)&&Pt.parent===Ye.parent.parent)?"quit":!0;case 241:switch(Pt.parent.kind){case 177:case 174:case 178:return!0;default:return!1}default:return!1}})===void 0}}function Ew(f){return ra(f).declarationRequiresScopeChange}function mI(f,S){ra(f).declarationRequiresScopeChange=S}function LN(f,S,E,P){return le?!1:(f&&!P&&sa(f,S,S)||ki(f,f&&E.type&&Roe(E.type,f.pos)?j.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:j.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,Gf(E.name),Dx(S)),!0)}function yp(f,S,E,P){let z=Yu(S)?S:S.escapedText;a(()=>{if(!f||f.parent.kind!==324&&!sa(f,z,S)&&!ry(f)&&!Q2(f,z,E)&&!ro(f,z)&&!ys(f,z,E)&&!Z2(f,z,E)&&!aa(f,z,E)){let q,oe;if(S&&(oe=act(S),oe&&ki(f,P,Dx(S),oe)),!oe&&bs{var oe;let Fe=S.escapedName,Ye=P&&ul(P)&&Jv(P);if(f&&(E&2||(E&32||E&384)&&(E&111551)===111551)){let it=Jh(S);(it.flags&2||it.flags&32||it.flags&384)&&_C(it,f)}if(Ye&&(E&111551)===111551&&!(f.flags&16777216)){let it=Vf(S);Z(it.declarations)&&Yt(it.declarations,tt=>wy(tt)||ul(tt)&&!!tt.symbol.globalExports)&&lC(!X.allowUmdGlobalAccess,f,j._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,Ba(Fe))}if(z&&!q&&(E&111551)===111551){let it=Vf(gAe(S)),tt=UT(z);it===Bs(z)?ki(f,j.Parameter_0_cannot_reference_itself,Gf(z.name)):it.valueDeclaration&&it.valueDeclaration.pos>z.pos&&tt.parent.locals&&Wp(tt.parent.locals,it.escapedName,E)===it&&ki(f,j.Parameter_0_cannot_reference_identifier_1_declared_after_it,Gf(z.name),Gf(f))}if(f&&E&111551&&S.flags&2097152&&!(S.flags&111551)&&!q3(f)){let it=vT(S,111551);if(it){let tt=it.kind===281||it.kind===278||it.kind===280?j._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:j._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,It=Ba(Fe);Q4(ki(f,tt,It),it,It)}}if(X.isolatedModules&&S&&Ye&&(E&111551)===111551){let tt=Wp(ft,Fe,E)===S&&ul(P)&&P.locals&&Wp(P.locals,Fe,-111552);if(tt){let It=(oe=tt.declarations)==null?void 0:oe.find(Pt=>Pt.kind===276||Pt.kind===273||Pt.kind===274||Pt.kind===271);It&&!L7(It)&&ki(It,j.Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,Ba(Fe))}}})}function Q4(f,S,E){return S?Pd(f,ws(S,S.kind===281||S.kind===278||S.kind===280?j._0_was_exported_here:j._0_was_imported_here,E)):f}function Dx(f){return Yu(f)?Ba(f):Gf(f)}function sa(f,S,E){if(!Ai(f)||f.escapedText!==S||vze(f)||GH(f))return!1;let P=Kb(f,!1,!1),z=P;for(;z;){if(bc(z.parent)){let q=Bs(z.parent);if(!q)break;let oe=Js(q);if(Ku(oe,S))return ki(f,j.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,Dx(E),zl(q)),!0;if(z===P&&!Xd(z)){let Fe=_m(q).thisType;if(Ku(Fe,S))return ki(f,j.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,Dx(E)),!0}}z=z.parent}return!1}function ry(f){let S=Cu(f);return S&&zf(S,64,!0)?(ki(f,j.Cannot_extend_an_interface_0_Did_you_mean_implements,_h(S)),!0):!1}function Cu(f){switch(f.kind){case 80:case 211:return f.parent?Cu(f.parent):void 0;case 233:if(Dp(f.expression))return f.expression;default:return}}function Q2(f,S,E){let P=1920|(Ys(f)?111551:0);if(E===P){let z=Nm(Ei(f,S,788968&~P,void 0,!1)),q=f.parent;if(z){if(tS(q)){Se.assert(q.left===f,"Should only be resolving left side of qualified name as a namespace");let oe=q.right.escapedText;if(Ku(_m(z),oe))return ki(q,j.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,Ba(S),Ba(oe)),!0}return ki(f,j._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,Ba(S)),!0}}return!1}function aa(f,S,E){if(E&788584){let P=Nm(Ei(f,S,111127,void 0,!1));if(P&&!(P.flags&1920))return ki(f,j._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Ba(S)),!0}return!1}function rm(f){return f==="any"||f==="string"||f==="number"||f==="boolean"||f==="never"||f==="unknown"}function ro(f,S){return rm(S)&&f.parent.kind===281?(ki(f,j.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,S),!0):!1}function Z2(f,S,E){if(E&111551){if(rm(S)){let q=f.parent.parent;if(q&&q.parent&&KC(q)){let oe=q.token,Fe=q.parent.kind;Fe===264&&oe===96?ki(f,j.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,Ba(S)):Fe===263&&oe===96?ki(f,j.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,Ba(S)):Fe===263&&oe===119&&ki(f,j.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,Ba(S))}else ki(f,j._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,Ba(S));return!0}let P=Nm(Ei(f,S,788544,void 0,!1)),z=P&&qy(P);if(P&&z!==void 0&&!(z&111551)){let q=Ba(S);return F0(S)?ki(f,j._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,q):Z4(f,P)?ki(f,j._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,q,q==="K"?"P":"K"):ki(f,j._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,q),!0}}return!1}function Z4(f,S){let E=go(f.parent,P=>f_(P)||hx(P)?!1:Im(P)||"quit");if(E&&E.members.length===1){let P=_m(S);return!!(P.flags&1048576)&&Ode(P,384,!0)}return!1}function F0(f){switch(f){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function ys(f,S,E){if(E&111127){if(Nm(Ei(f,S,1024,void 0,!1)))return ki(f,j.Cannot_use_namespace_0_as_a_value,Ba(S)),!0}else if(E&788544&&Nm(Ei(f,S,1536,void 0,!1)))return ki(f,j.Cannot_use_namespace_0_as_a_type,Ba(S)),!0;return!1}function _C(f,S){var E;if(Se.assert(!!(f.flags&2||f.flags&32||f.flags&384)),f.flags&67108881&&f.flags&32)return;let P=(E=f.declarations)==null?void 0:E.find(z=>jpe(z)||bc(z)||z.kind===266);if(P===void 0)return Se.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(P.flags&33554432)&&!W_(P,S)){let z,q=Gf(Nu(P));f.flags&2?z=ki(S,j.Block_scoped_variable_0_used_before_its_declaration,q):f.flags&32?z=ki(S,j.Class_0_used_before_its_declaration,q):f.flags&256?z=ki(S,j.Enum_0_used_before_its_declaration,q):(Se.assert(!!(f.flags&128)),$E(X)&&(z=ki(S,j.Enum_0_used_before_its_declaration,q))),z&&Pd(z,ws(P,j._0_is_declared_here,q))}}function c2(f,S,E){return!!S&&!!go(f,P=>P===S||(P===E||iu(P)&&(!w3(P)||Gg(P)&3)?"quit":!1))}function M0(f){switch(f.kind){case 271:return f;case 273:return f.parent;case 274:return f.parent.parent;case 276:return f.parent.parent.parent;default:return}}function Uh(f){return f.declarations&&mi(f.declarations,Nh)}function Nh(f){return f.kind===271||f.kind===270||f.kind===273&&!!f.name||f.kind===274||f.kind===280||f.kind===276||f.kind===281||f.kind===277&&Nj(f)||ms(f)&&wh(f)===2&&Nj(f)||cf(f)&&ms(f.parent)&&f.parent.left===f&&f.parent.operatorToken.kind===64&&Ix(f.parent.right)||f.kind===304||f.kind===303&&Ix(f.initializer)||f.kind===260&&E3(f)||f.kind===208&&E3(f.parent.parent)}function Ix(f){return Ij(f)||yd(f)&&QN(f)}function cS(f,S){let E=__(f);if(E){let z=rU(E.expression).arguments[0];return Ai(E.name)?Nm(Ku(Lue(z),E.name.escapedText)):void 0}if($c(f)||f.moduleReference.kind===283){let z=Gy(f,PZ(f)||Sj(f)),q=R1(z);return F1(f,z,q,!1),q}let P=$y(f.moduleReference,S);return lS(f,P),P}function lS(f,S){if(F1(f,void 0,S,!1)&&!f.isTypeOnly){let E=vT(Bs(f)),P=E.kind===281||E.kind===278,z=P?j.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:j.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,q=P?j._0_was_exported_here:j._0_was_imported_here,oe=E.kind===278?"*":Kw(E.name);Pd(ki(f.moduleReference,z),ws(E,q,oe))}}function Jy(f,S,E,P){let z=f.exports.get("export="),q=z?Ku(Js(z),S,!0):f.exports.get(S),oe=Nm(q,P);return F1(E,q,oe,!1),oe}function Bk(f){return Bm(f)&&!f.isExportEquals||kc(f,2048)||X0(f)||vm(f)}function kb(f){return i_(f)?t.getEmitSyntaxForUsageLocation(Vo(f),f):void 0}function gT(f,S){return f===99&&S===1}function fD(f){return 100<=se&&se<=199?kb(f)===99&&xh(f.text,".json"):!1}function hI(f,S,E,P){let z=f&&kb(P);if(f&&z!==void 0){let q=t.getImpliedNodeFormatForEmit(f);if(z===99&&q===1&&100<=se&&se<=199)return!0;if(z===99&&q===99)return!1}if(!Ee)return!1;if(!f||f.isDeclarationFile){let q=Jy(S,"default",void 0,!0);return!(q&&En(q.declarations,Bk)||Jy(S,kh("__esModule"),void 0,E))}return $v(f)?typeof f.externalModuleIndicator!="object"&&!Jy(S,kh("__esModule"),void 0,E):FN(S)}function _D(f,S){let E=Gy(f,f.parent.moduleSpecifier);if(E)return wb(E,f,S)}function wb(f,S,E){var P;let z;nG(f)?z=f:z=Jy(f,"default",S,E);let q=(P=f.declarations)==null?void 0:P.find(ul),oe=e6(S);if(!oe)return z;let Fe=fD(oe),Ye=hI(q,f,E,oe);if(!z&&!Ye&&!Fe)if(FN(f)&&!Ee){let it=se>=5?"allowSyntheticDefaultImports":"esModuleInterop",It=f.exports.get("export=").valueDeclaration,Pt=ki(S.name,j.Module_0_can_only_be_default_imported_using_the_1_flag,zl(f),it);It&&Pd(Pt,ws(It,j.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,it))}else Ym(S)?pD(f,S):Ah(f,f,S,I2(S)&&S.propertyName||S.name);else if(Ye||Fe){let it=R1(f,E)||Nm(f,E);return F1(S,f,it,!1),it}return F1(S,z,void 0,!1),z}function e6(f){switch(f.kind){case 273:return f.parent.moduleSpecifier;case 271:return Zg(f.moduleReference)?f.moduleReference.expression:void 0;case 274:return f.parent.parent.moduleSpecifier;case 276:return f.parent.parent.parent.moduleSpecifier;case 281:return f.parent.parent.moduleSpecifier;default:return Se.assertNever(f)}}function pD(f,S){var E,P,z;if((E=f.exports)!=null&&E.has(S.symbol.escapedName))ki(S.name,j.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,zl(f),zl(S.symbol));else{let q=ki(S.name,j.Module_0_has_no_default_export,zl(f)),oe=(P=f.exports)==null?void 0:P.get("__export");if(oe){let Fe=(z=oe.declarations)==null?void 0:z.find(Ye=>{var it,tt;return!!(Qg(Ye)&&Ye.moduleSpecifier&&((tt=(it=Gy(Ye,Ye.moduleSpecifier))==null?void 0:it.exports)!=null&&tt.has("default")))});Fe&&Pd(q,ws(Fe,j.export_Asterisk_does_not_re_export_a_default))}}}function eE(f,S){let E=f.parent.parent.moduleSpecifier,P=Gy(f,E),z=mv(P,E,S,!1);return F1(f,P,z,!1),z}function O1(f,S){let E=f.parent.moduleSpecifier,P=E&&Gy(f,E),z=E&&mv(P,E,S,!1);return F1(f,P,z,!1),z}function mD(f,S){if(f===St&&S===St)return St;if(f.flags&790504)return f;let E=Ou(f.flags|S.flags,f.escapedName);return Se.assert(f.declarations||S.declarations),E.declarations=la(Pl(f.declarations,S.declarations),p8),E.parent=f.parent||S.parent,f.valueDeclaration&&(E.valueDeclaration=f.valueDeclaration),S.members&&(E.members=new Map(S.members)),f.exports&&(E.exports=new Map(f.exports)),E}function Tb(f,S,E,P){var z;if(f.flags&1536){let q=Fv(f).get(S),oe=Nm(q,P),Fe=(z=Nl(f).typeOnlyExportStarMap)==null?void 0:z.get(S);return F1(E,q,oe,!1,Fe,S),oe}}function jk(f,S){if(f.flags&3){let E=f.valueDeclaration.type;if(E)return Nm(Ku(al(E),S))}}function tk(f,S,E=!1){var P;let z=PZ(f)||f.moduleSpecifier,q=Gy(f,z),oe=!ba(S)&&S.propertyName||S.name;if(!Ai(oe)&&oe.kind!==11)return;let Fe=x8(oe),it=mv(q,z,!1,Fe==="default"&&Ee);if(it&&(Fe||oe.kind===11)){if(nG(q))return q;let tt;q&&q.exports&&q.exports.get("export=")?tt=Ku(Js(it),Fe,!0):tt=jk(it,Fe),tt=Nm(tt,E);let It=Tb(it,Fe,S,E);if(It===void 0&&Fe==="default"){let yi=(P=q.declarations)==null?void 0:P.find(ul);(fD(z)||hI(yi,q,E,z))&&(It=R1(q,E)||Nm(q,E))}let Pt=It&&tt&&It!==tt?mD(tt,It):It||tt;return Pt||Ah(q,it,f,oe),Pt}}function Ah(f,S,E,P){var z;let q=l2(f,E),oe=Gf(P),Fe=Ai(P)?cB(P,S):void 0;if(Fe!==void 0){let Ye=zl(Fe),it=ki(P,j._0_has_no_exported_member_named_1_Did_you_mean_2,q,oe,Ye);Fe.valueDeclaration&&Pd(it,ws(Fe.valueDeclaration,j._0_is_declared_here,Ye))}else(z=f.exports)!=null&&z.has("default")?ki(P,j.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,q,oe):t1(E,P,oe,f,q)}function t1(f,S,E,P,z){var q,oe;let Fe=(oe=(q=ac(P.valueDeclaration,zE))==null?void 0:q.locals)==null?void 0:oe.get(x8(S)),Ye=P.exports;if(Fe){let it=Ye?.get("export=");if(it)n1(it,Fe)?uS(f,S,E,z):ki(S,j.Module_0_has_no_exported_member_1,z,E);else{let tt=Ye?jt(QX(Ye),Pt=>!!n1(Pt,Fe)):void 0,It=tt?ki(S,j.Module_0_declares_1_locally_but_it_is_exported_as_2,z,E,zl(tt)):ki(S,j.Module_0_declares_1_locally_but_it_is_not_exported,z,E);Fe.declarations&&Pd(It,...$i(Fe.declarations,(Pt,yi)=>ws(Pt,yi===0?j._0_is_declared_here:j.and_here,E)))}}else ki(S,j.Module_0_has_no_exported_member_1,z,E)}function uS(f,S,E,P){if(se>=5){let z=GE(X)?j._0_can_only_be_imported_by_using_a_default_import:j._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;ki(S,z,E)}else if(Ys(f)){let z=GE(X)?j._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:j._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;ki(S,z,E)}else{let z=GE(X)?j._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:j._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;ki(S,z,E,E,P)}}function Vm(f,S){if(eg(f)&&MC(f.propertyName||f.name)){let oe=e6(f),Fe=oe&&Gy(f,oe);if(Fe)return wb(Fe,f,S)}let E=Zd(f)?UT(f):f.parent.parent.parent,P=__(E),z=tk(E,P||f,S),q=f.propertyName||f.name;return P&&z&&Ai(q)?Nm(Ku(Js(z),q.escapedText),S):(F1(f,void 0,z,!1),z)}function __(f){if($c(f)&&f.initializer&&ba(f.initializer))return f.initializer}function yT(f,S){if($x(f.parent)){let E=R1(f.parent.symbol,S);return F1(f,void 0,E,!1),E}}function i0(f,S,E){let P=f.propertyName||f.name;if(MC(P)){let q=e6(f),oe=q&&Gy(f,q);if(oe)return wb(oe,f,!!E)}let z=f.parent.parent.moduleSpecifier?tk(f.parent.parent,f,E):P.kind===11?void 0:zf(P,S,!1,E);return F1(f,void 0,z,!1),z}function dS(f,S){let E=Bm(f)?f.expression:f.right,P=gI(E,S);return F1(f,void 0,P,!1),P}function gI(f,S){if(Qh(f))return r0(f).symbol;if(!tb(f)&&!Dp(f))return;let E=zf(f,901119,!0,S);return E||(r0(f),ra(f).resolvedSymbol)}function Eb(f,S){if(ms(f.parent)&&f.parent.left===f&&f.parent.operatorToken.kind===64)return gI(f.parent.right,S)}function hD(f,S=!1){switch(f.kind){case 271:case 260:return cS(f,S);case 273:return _D(f,S);case 274:return eE(f,S);case 280:return O1(f,S);case 276:case 208:return Vm(f,S);case 281:return i0(f,901119,S);case 277:case 226:return dS(f,S);case 270:return yT(f,S);case 304:return zf(f.name,901119,!0,S);case 303:return gI(f.initializer,S);case 212:case 211:return Eb(f,S);default:return Se.fail()}}function pC(f,S=901119){return f?(f.flags&(2097152|S))===2097152||!!(f.flags&2097152&&f.flags&67108864):!1}function Nm(f,S){return!S&&pC(f)?oy(f):f}function oy(f){Se.assert((f.flags&2097152)!==0,"Should only get Alias here.");let S=Nl(f);if(S.aliasTarget)S.aliasTarget===Ve&&(S.aliasTarget=St);else{S.aliasTarget=Ve;let E=Uh(f);if(!E)return Se.fail();let P=hD(E);S.aliasTarget===Ve?S.aliasTarget=P||St:ki(E,j.Circular_definition_of_import_alias_0,zl(f))}return S.aliasTarget}function th(f){if(Nl(f).aliasTarget!==Ve)return oy(f)}function qy(f,S,E){let P=S&&vT(f),z=P&&Qg(P),q=P&&(z?Gy(P.moduleSpecifier,P.moduleSpecifier,!0):oy(P.symbol)),oe=z&&q?ik(q):void 0,Fe=E?0:f.flags,Ye;for(;f.flags&2097152;){let it=Jh(oy(f));if(!z&&it===q||oe?.get(it.escapedName)===it)break;if(it===St)return-1;if(it===f||Ye?.has(it))break;it.flags&2097152&&(Ye?Ye.add(it):Ye=new Set([f,it])),Fe|=it.flags,f=it}return Fe}function F1(f,S,E,P,z,q){if(!f||ba(f))return!1;let oe=Bs(f);if(j6(f)){let Ye=Nl(oe);return Ye.typeOnlyDeclaration=f,!0}if(z){let Ye=Nl(oe);return Ye.typeOnlyDeclaration=z,oe.escapedName!==q&&(Ye.typeOnlyExportStarName=q),!0}let Fe=Nl(oe);return yI(Fe,S,P)||yI(Fe,E,P)}function yI(f,S,E){var P;if(S&&(f.typeOnlyDeclaration===void 0||E&&f.typeOnlyDeclaration===!1)){let z=((P=S.exports)==null?void 0:P.get("export="))??S,q=z.declarations&&jt(z.declarations,j6);f.typeOnlyDeclaration=q??Nl(z).typeOnlyDeclaration??!1}return!!f.typeOnlyDeclaration}function vT(f,S){var E;if(!(f.flags&2097152))return;let P=Nl(f);if(P.typeOnlyDeclaration===void 0){P.typeOnlyDeclaration=!1;let z=Nm(f);F1((E=f.declarations)==null?void 0:E[0],Uh(f)&&N1e(f),z,!0)}if(S===void 0)return P.typeOnlyDeclaration||void 0;if(P.typeOnlyDeclaration){let z=P.typeOnlyDeclaration.kind===278?Nm(ik(P.typeOnlyDeclaration.symbol.parent).get(P.typeOnlyExportStarName||f.escapedName)):oy(P.typeOnlyDeclaration.symbol);return qy(z)&S?P.typeOnlyDeclaration:void 0}}function $y(f,S){return f.kind===80&&ZH(f)&&(f=f.parent),f.kind===80||f.parent.kind===166?zf(f,1920,!1,S):(Se.assert(f.parent.kind===271),zf(f,901119,!1,S))}function l2(f,S){return f.parent?l2(f.parent,S)+"."+zl(f):zl(f,S,void 0,36)}function vI(f){for(;tS(f.parent);)f=f.parent;return f}function hP(f){let S=fx(f),E=Ei(S,S,111551,void 0,!0);if(E){for(;tS(S.parent);){let P=Js(E);if(E=Ku(P,S.parent.right.escapedText),!E)return;S=S.parent}return E}}function zf(f,S,E,P,z){if(Mm(f))return;let q=1920|(Ys(f)?S&111551:0),oe;if(f.kind===80){let Fe=S===q||um(f)?j.Cannot_find_namespace_0:Cwt(fx(f)),Ye=Ys(f)&&!um(f)?kF(f,S):void 0;if(oe=Vf(Ei(z||f,f,S,E||Ye?void 0:Fe,!0,!1)),!oe)return Vf(Ye)}else if(f.kind===166||f.kind===211){let Fe=f.kind===166?f.left:f.expression,Ye=f.kind===166?f.right:f.name,it=zf(Fe,q,E,!1,z);if(!it||Mm(Ye))return;if(it===St)return it;if(it.valueDeclaration&&Ys(it.valueDeclaration)&&S1(X)!==100&&$c(it.valueDeclaration)&&it.valueDeclaration.initializer&&V1e(it.valueDeclaration.initializer)){let tt=it.valueDeclaration.initializer.arguments[0],It=Gy(tt,tt);if(It){let Pt=R1(It);Pt&&(it=Pt)}}if(oe=Vf(Wp(Fv(it),Ye.escapedText,S)),!oe&&it.flags&2097152&&(oe=Vf(Wp(Fv(oy(it)),Ye.escapedText,S))),!oe){if(!E){let tt=l2(it),It=Gf(Ye),Pt=cB(Ye,it);if(Pt){ki(Ye,j._0_has_no_exported_member_named_1_Did_you_mean_2,tt,It,zl(Pt));return}let yi=tS(f)&&vI(f);if(er&&S&788968&&yi&&!Ip(yi.parent)&&hP(yi)){ki(yi,j._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,$b(yi));return}if(S&1920&&tS(f.parent)){let vn=Vf(Wp(Fv(it),Ye.escapedText,788968));if(vn){ki(f.parent.right,j.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,zl(vn),Ba(f.parent.right.escapedText));return}}ki(Ye,j.Namespace_0_has_no_exported_member_1,tt,It)}return}}else Se.assertNever(f,"Unknown entity name kind.");return!um(f)&&tb(f)&&(oe.flags&2097152||f.parent.kind===277)&&F1(QD(f),oe,void 0,!0),oe.flags&S||P?oe:oy(oe)}function kF(f,S){if(Mz(f.parent)){let E=bI(f.parent);if(E)return Ei(E,f,S,void 0,!0)}}function bI(f){if(go(f,z=>gZ(z)||z.flags&16777216?ux(z):"quit"))return;let E=L3(f);if(E&&E0(E)&&Qpe(E.expression)){let z=Bs(E.expression.left);if(z)return SI(z)}if(E&&yd(E)&&Qpe(E.parent)&&E0(E.parent.parent)){let z=Bs(E.parent.left);if(z)return SI(z)}if(E&&(zT(E)||Ih(E))&&ms(E.parent.parent)&&wh(E.parent.parent)===6){let z=Bs(E.parent.parent.left);if(z)return SI(z)}let P=C4(f);if(P&&iu(P)){let z=Bs(P);return z&&z.valueDeclaration}}function SI(f){let S=f.parent.valueDeclaration;return S?(dG(S)?U7(S):b8(S)?v5(S):void 0)||S:void 0}function gD(f){let S=f.valueDeclaration;if(!S||!Ys(S)||f.flags&524288||zA(S,!1))return;let E=$c(S)?v5(S):U7(S);if(E){let P=Hm(E);if(P)return TWe(P,f)}}function Gy(f,S,E){let z=S1(X)===1?j.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:j.Cannot_find_module_0_or_its_corresponding_type_declarations;return ON(f,S,E?void 0:z,E)}function ON(f,S,E,P=!1,z=!1){return i_(S)?gP(f,S.text,E,P?void 0:S,z):void 0}function gP(f,S,E,P,z=!1){var q,oe,Fe,Ye,it,tt,It,Pt,yi,Hi,vn;if(P&&xl(S,"@types/")){let Oa=j.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,wd=iH(S,"@types/");ki(P,Oa,wd,S)}let br=ykt(S,!0);if(br)return br;let Qr=Vo(f),ao=i_(f)?f:((q=Dh(f)?f:f.parent&&Dh(f.parent)&&f.parent.name===f?f.parent:void 0)==null?void 0:q.name)||((oe=Wy(f)?f:void 0)==null?void 0:oe.argument.literal)||(Ys(f)&&cT(f)?f.moduleSpecifier:void 0)||($c(f)&&f.initializer&&es(f.initializer,!0)?f.initializer.arguments[0]:void 0)||((Fe=go(f,Kx))==null?void 0:Fe.arguments[0])||((Ye=go(f,Dd))==null?void 0:Ye.moduleSpecifier)||((it=go(f,WS))==null?void 0:it.moduleReference.expression)||((tt=go(f,Qg))==null?void 0:tt.moduleSpecifier),Ko=ao&&i_(ao)?t.getModeForUsageLocation(Qr,ao):t.getDefaultResolutionModeForFile(Qr),Zr=S1(X),jr=(It=t.getResolvedModule(Qr,S,Ko))==null?void 0:It.resolvedModule,Ss=P&&jr&&kce(X,jr,Qr),Ds=jr&&(!Ss||Ss===j.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&t.getSourceFile(jr.resolvedFileName);if(Ds){if(Ss&&ki(P,Ss,S,jr.resolvedFileName),jr.resolvedUsingTsExtension&&ey(S)){let Oa=((Pt=go(f,Dd))==null?void 0:Pt.importClause)||go(f,ow(pf,Qg));(P&&Oa&&!Oa.isTypeOnly||go(f,Kx))&&ki(P,j.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,Sa(Se.checkDefined(eU(S))))}else if(jr.resolvedUsingTsExtension&&!DK(X,Qr.fileName)){let Oa=((yi=go(f,Dd))==null?void 0:yi.importClause)||go(f,ow(pf,Qg));if(P&&!(Oa?.isTypeOnly||go(f,Ck))){let wd=Se.checkDefined(eU(S));ki(P,j.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,wd)}}if(Ds.symbol){if(P&&jr.isExternalLibraryImport&&!QZ(jr.extension)&&M1(!1,P,Qr,Ko,jr,S),P&&(Zr===3||Zr===99)){let Oa=Qr.impliedNodeFormat===1&&!go(f,Kx)||!!go(f,pf),wd=go(f,Td=>Ck(Td)||Qg(Td)||Dd(Td)||cT(Td));if(Oa&&Ds.impliedNodeFormat===99&&!jme(wd))if(go(f,pf))ki(P,j.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead,S);else{let Td,sm=Pg(Qr.fileName);(sm===".ts"||sm===".js"||sm===".tsx"||sm===".jsx")&&(Td=MA(Qr)),Gu.add(WT(Vo(P),P,Zl(Td,j.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead,S)))}}return Vf(Ds.symbol)}P&&E&&!j5(P)&&ki(P,j.File_0_is_not_a_module,Ds.fileName);return}if(rp){let Oa=tH(rp,wd=>wd.pattern,S);if(Oa){let wd=_i&&_i.get(S);return Vf(wd||Oa.symbol)}}if(!P)return;if(jr&&!QZ(jr.extension)&&Ss===void 0||Ss===j.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(z){let Oa=j.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;ki(P,Oa,S,jr.resolvedFileName)}else M1(Ae&&!!E,P,Qr,Ko,jr,S);return}if(E){if(jr){let Oa=t.getProjectReferenceRedirect(jr.resolvedFileName);if(Oa){ki(P,j.Output_file_0_has_not_been_built_from_source_file_1,Oa,jr.resolvedFileName);return}}if(Ss)ki(P,Ss,S,jr.resolvedFileName);else{let Oa=t_(S)&&!B$(S),wd=Zr===3||Zr===99;if(!Q6(X)&&Wh(S,".json")&&Zr!==1&&nI(X))ki(P,j.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,S);else if(Ko===99&&wd&&Oa){let Td=tu(S,Cc(Qr.path)),sm=(Hi=Fk.find(([ol,vh])=>t.fileExists(Td+ol)))==null?void 0:Hi[1];sm?ki(P,j.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,S+sm):ki(P,j.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else if((vn=t.getResolvedModule(Qr,S,Ko))!=null&&vn.alternateResult){let Td=yy(Qr,t,S,Ko,S);lC(!0,P,Zl(Td,E,S))}else ki(P,E,S)}}return;function Sa(Oa){let wd=j8(S,Oa);if(UC(se)||Ko===99){let Td=ey(S)&&DK(X);return wd+(Oa===".mts"||Oa===".d.mts"?Td?".mts":".mjs":Oa===".cts"||Oa===".d.mts"?Td?".cts":".cjs":Td?".ts":".js")}return wd}}function M1(f,S,E,P,{packageId:z,resolvedFileName:q},oe){if(j5(S))return;let Fe;!l0(oe)&&z&&(Fe=yy(E,t,oe,P,z.name)),lC(f,S,Zl(Fe,j.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,oe,q))}function R1(f,S){if(f?.exports){let E=Nm(f.exports.get("export="),S),P=yD(Vf(E),Vf(f));return Vf(P)||f}}function yD(f,S){if(!f||f===St||f===S||S.exports.size===1||f.flags&2097152)return f;let E=Nl(f);if(E.cjsExportMerged)return E.cjsExportMerged;let P=f.flags&33554432?f:oa(f);return P.flags=P.flags|512,P.exports===void 0&&(P.exports=Au()),S.exports.forEach((z,q)=>{q!=="export="&&P.exports.set(q,P.exports.has(q)?yh(P.exports.get(q),z):z)}),P===f&&(Nl(P).resolvedExports=void 0,Nl(P).resolvedMembers=void 0),Nl(P).cjsExportMerged=P,E.cjsExportMerged=P}function mv(f,S,E,P){var z;let q=R1(f,E);if(!E&&q){if(!P&&!(q.flags&1539)&&!Kp(q,307)){let Fe=se>=5?"allowSyntheticDefaultImports":"esModuleInterop";return ki(S,j.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,Fe),q}let oe=S.parent;if(Dd(oe)&&E8(oe)||Kx(oe)){let Fe=Kx(oe)?oe.arguments[0]:oe.moduleSpecifier,Ye=Js(q),it=NWe(Ye,q,f,Fe);if(it)return g0(q,it,oe);let tt=(z=f?.declarations)==null?void 0:z.find(ul),It=tt&&gT(kb(Fe),t.getImpliedNodeFormatForEmit(tt));if(GE(X)||It){let Pt=NL(Ye,0);if((!Pt||!Pt.length)&&(Pt=NL(Ye,1)),Pt&&Pt.length||Ku(Ye,"default",!0)||It){let yi=Ye.flags&3670016?VTt(Ye,q,f,Fe):IWe(q,q.parent);return g0(q,yi,oe)}}}}return q}function g0(f,S,E){let P=Ou(f.flags,f.escapedName);P.declarations=f.declarations?f.declarations.slice():[],P.parent=f.parent,P.links.target=f,P.links.originatingImport=E,f.valueDeclaration&&(P.valueDeclaration=f.valueDeclaration),f.constEnumOnlyModule&&(P.constEnumOnlyModule=!0),f.members&&(P.members=new Map(f.members)),f.exports&&(P.exports=new Map(f.exports));let z=UN(S);return P.links.type=ml(P,z.members,F,F,z.indexInfos),P}function FN(f){return f.exports.get("export=")!==void 0}function tE(f){return QX(ik(f))}function r_(f){let S=tE(f),E=R1(f);if(E!==f){let P=Js(E);vD(P)&&Ho(S,Lp(P))}return S}function ma(f,S){ik(f).forEach((z,q)=>{rr(q)||S(z,q)});let P=R1(f);if(P!==f){let z=Js(P);vD(z)&&est(z,(q,oe)=>{S(q,oe)})}}function Db(f,S){let E=ik(S);if(E)return E.get(f)}function R0(f,S){let E=Db(f,S);if(E)return E;let P=R1(S);if(P===S)return;let z=Js(P);return vD(z)?Ku(z,f):void 0}function vD(f){return!(f.flags&402784252||Ls(f)&1||ok(f)||a_(f))}function Fv(f){return f.flags&6256?Kot(f,"resolvedExports"):f.flags&1536?ik(f):f.exports||K}function ik(f){let S=Nl(f);if(!S.resolvedExports){let{exports:E,typeOnlyExportStarMap:P}=yO(f);S.resolvedExports=E,S.typeOnlyExportStarMap=P}return S.resolvedExports}function mC(f,S,E,P){S&&S.forEach((z,q)=>{if(q==="default")return;let oe=f.get(q);if(!oe)f.set(q,z),E&&P&&E.set(q,{specifierText:_h(P.moduleSpecifier)});else if(E&&P&&oe&&Nm(oe)!==Nm(z)){let Fe=E.get(q);Fe.exportsWithDuplicate?Fe.exportsWithDuplicate.push(P):Fe.exportsWithDuplicate=[P]}})}function yO(f){let S=[],E,P=new Set;f=R1(f);let z=q(f)||K;return E&&P.forEach(oe=>E.delete(oe)),{exports:z,typeOnlyExportStarMap:E};function q(oe,Fe,Ye){if(!Ye&&oe?.exports&&oe.exports.forEach((It,Pt)=>P.add(Pt)),!(oe&&oe.exports&&Xu(S,oe)))return;let it=new Map(oe.exports),tt=oe.exports.get("__export");if(tt){let It=Au(),Pt=new Map;if(tt.declarations)for(let yi of tt.declarations){let Hi=Gy(yi,yi.moduleSpecifier),vn=q(Hi,yi,Ye||yi.isTypeOnly);mC(It,vn,Pt,yi)}Pt.forEach(({exportsWithDuplicate:yi},Hi)=>{if(!(Hi==="export="||!(yi&&yi.length)||it.has(Hi)))for(let vn of yi)Gu.add(ws(vn,j.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,Pt.get(Hi).specifierText,Ba(Hi)))}),mC(it,It)}return Fe?.isTypeOnly&&(E??(E=new Map),it.forEach((It,Pt)=>E.set(Pt,Fe))),it}}function Vf(f){let S;return f&&f.mergeId&&(S=Us[f.mergeId])?S:f}function Bs(f){return Vf(f.symbol&&gAe(f.symbol))}function Hm(f){return $x(f)?Bs(f):void 0}function B0(f){return Vf(f.parent&&gAe(f.parent))}function hC(f){var S,E;return(((S=f.valueDeclaration)==null?void 0:S.kind)===219||((E=f.valueDeclaration)==null?void 0:E.kind)===218)&&Hm(f.valueDeclaration.parent)||f}function iE(f,S){let E=Vo(S),P=pp(E),z=Nl(f),q;if(z.extendedContainersByFile&&(q=z.extendedContainersByFile.get(P)))return q;if(E&&E.imports){for(let Fe of E.imports){if(um(Fe))continue;let Ye=Gy(S,Fe,!0);!Ye||!i1(Ye,f)||(q=ar(q,Ye))}if(Z(q))return(z.extendedContainersByFile||(z.extendedContainersByFile=new Map)).set(P,q),q}if(z.extendedContainers)return z.extendedContainers;let oe=t.getSourceFiles();for(let Fe of oe){if(!Mg(Fe))continue;let Ye=Bs(Fe);i1(Ye,f)&&(q=ar(q,Ye))}return z.extendedContainers=q||F}function yP(f,S,E){let P=B0(f);if(P&&!(f.flags&262144))return Ye(P);let z=Dc(f.declarations,tt=>{if(!nb(tt)&&tt.parent){if(SD(tt.parent))return Bs(tt.parent);if(vN(tt.parent)&&tt.parent.parent&&R1(Bs(tt.parent.parent))===f)return Bs(tt.parent.parent)}if(Qh(tt)&&ms(tt.parent)&&tt.parent.operatorToken.kind===64&&cf(tt.parent.left)&&Dp(tt.parent.left.expression))return cN(tt.parent.left)||PH(tt.parent.left.expression)?Bs(Vo(tt)):(r0(tt.parent.left.expression),ra(tt.parent.left.expression).resolvedSymbol)});if(!Z(z))return;let q=Dc(z,tt=>i1(tt,f)?tt:void 0),oe=[],Fe=[];for(let tt of q){let[It,...Pt]=Ye(tt);oe=ar(oe,It),Fe=Ho(Fe,Pt)}return Pl(oe,Fe);function Ye(tt){let It=Dc(tt.declarations,it),Pt=S&&iE(f,S),yi=ih(tt,E);if(S&&tt.flags&B1(E)&&bT(tt,S,1920,!1))return ar(Pl(Pl([tt],It),Pt),yi);let Hi=!(tt.flags&B1(E))&&tt.flags&788968&&_m(tt).flags&524288&&E===111551?Um(S,br=>Km(br,Qr=>{if(Qr.flags&B1(E)&&Js(Qr)===_m(tt))return Qr})):void 0,vn=Hi?[Hi,...It,tt]:[...It,tt];return vn=ar(vn,yi),vn=Ho(vn,Pt),vn}function it(tt){return P&&JS(tt,P)}}function ih(f,S){let E=!!Z(f.declarations)&&of(f.declarations);if(S&111551&&E&&E.parent&&$c(E.parent)&&(Ld(E)&&E===E.parent.initializer||Im(E)&&E===E.parent.type))return Bs(E.parent)}function JS(f,S){let E=xI(f),P=E&&E.exports&&E.exports.get("export=");return P&&n1(P,S)?E:void 0}function i1(f,S){if(f===B0(S))return S;let E=f.exports&&f.exports.get("export=");if(E&&n1(E,S))return f;let P=Fv(f),z=P.get(S.escapedName);return z&&n1(z,S)?z:Km(P,q=>{if(n1(q,S))return q})}function n1(f,S){if(Vf(Nm(Vf(f)))===Vf(Nm(Vf(S))))return f}function Jh(f){return Vf(f&&(f.flags&1048576)!==0&&f.exportSymbol||f)}function r1(f,S){return!!(f.flags&111551||f.flags&2097152&&qy(f,!S)&111551)}function fS(f){var S;let E=new v(zr,f);return k++,E.id=k,(S=us)==null||S.recordType(E),E}function ge(f,S){let E=fS(f);return E.symbol=S,E}function Vt(f){return new v(zr,f)}function Sn(f,S,E=0,P){Wr(S,P);let z=fS(f);return z.intrinsicName=S,z.debugIntrinsicName=P,z.objectFlags=E|524288|2097152|33554432|16777216,z}function Wr(f,S){let E=`${f},${S??""}`;Wt.has(E)&&Se.fail(`Duplicate intrinsic type name ${f}${S?` (${S})`:""}; you may need to pass a name to createIntrinsicType.`),Wt.add(E)}function de(f,S){let E=ge(524288,S);return E.objectFlags=f,E.members=void 0,E.properties=void 0,E.callSignatures=void 0,E.constructSignatures=void 0,E.indexInfos=void 0,E}function Et(){return Fc(tc(rFe.keys(),kC))}function Gi(f){return ge(262144,f)}function rr(f){return f.charCodeAt(0)===95&&f.charCodeAt(1)===95&&f.charCodeAt(2)!==95&&f.charCodeAt(2)!==64&&f.charCodeAt(2)!==35}function as(f){let S;return f.forEach((E,P)=>{Hc(E,P)&&(S||(S=[])).push(E)}),S||F}function Hc(f,S){return!rr(S)&&r1(f)}function Qc(f){let S=as(f),E=$ie(f);return E?Pl(S,[E]):S}function Sl(f,S,E,P,z){let q=f;return q.members=S,q.properties=F,q.callSignatures=E,q.constructSignatures=P,q.indexInfos=z,S!==K&&(q.properties=as(S)),q}function ml(f,S,E,P,z){return Sl(de(16,f),S,E,P,z)}function bm(f){if(f.constructSignatures.length===0)return f;if(f.objectTypeWithoutAbstractConstructSignatures)return f.objectTypeWithoutAbstractConstructSignatures;let S=Qn(f.constructSignatures,P=>!(P.flags&4));if(f.constructSignatures===S)return f;let E=ml(f.symbol,f.members,f.callSignatures,En(S)?S:F,f.indexInfos);return f.objectTypeWithoutAbstractConstructSignatures=E,E.objectTypeWithoutAbstractConstructSignatures=E,E}function Um(f,S){let E;for(let P=f;P;P=P.parent){if(zE(P)&&P.locals&&!w8(P)&&(E=S(P.locals,void 0,!0,P)))return E;switch(P.kind){case 307:if(!Jv(P))break;case 267:let z=Bs(P);if(E=S(z?.exports||K,void 0,!0,P))return E;break;case 263:case 231:case 264:let q;if((Bs(P).members||K).forEach((oe,Fe)=>{oe.flags&788968&&(q||(q=Au())).set(Fe,oe)}),q&&(E=S(q,void 0,!1,P)))return E;break}}return S(ft,void 0,!0)}function B1(f){return f===111551?111551:1920}function bT(f,S,E,P,z=new Map){if(!(f&&!Dw(f)))return;let q=Nl(f),oe=q.accessibleChainCache||(q.accessibleChainCache=new Map),Fe=Um(S,(Qr,ao,Ko,Zr)=>Zr),Ye=`${P?0:1}|${Fe&&pp(Fe)}|${E}`;if(oe.has(Ye))return oe.get(Ye);let it=Nf(f),tt=z.get(it);tt||z.set(it,tt=[]);let It=Um(S,Pt);return oe.set(Ye,It),It;function Pt(Qr,ao,Ko){if(!Xu(tt,Qr))return;let Zr=vn(Qr,ao,Ko);return tt.pop(),Zr}function yi(Qr,ao){return!Ib(Qr,S,ao)||!!bT(Qr.parent,S,B1(ao),P,z)}function Hi(Qr,ao,Ko){return(f===(ao||Qr)||Vf(f)===Vf(ao||Qr))&&!En(Qr.declarations,SD)&&(Ko||yi(Vf(Qr),E))}function vn(Qr,ao,Ko){return Hi(Qr.get(f.escapedName),void 0,ao)?[f]:Km(Qr,jr=>{if(jr.flags&2097152&&jr.escapedName!=="export="&&jr.escapedName!=="default"&&!(D5(jr)&&S&&Mg(Vo(S)))&&(!P||En(jr.declarations,WS))&&(!Ko||!En(jr.declarations,NH))&&(ao||!Kp(jr,281))){let Ss=oy(jr),Ds=br(jr,Ss,ao);if(Ds)return Ds}if(jr.escapedName===f.escapedName&&jr.exportSymbol&&Hi(Vf(jr.exportSymbol),void 0,ao))return[f]})||(Qr===ft?br(ut,ut,ao):void 0)}function br(Qr,ao,Ko){if(Hi(Qr,ao,Ko))return[Qr];let Zr=Fv(ao),jr=Zr&&Pt(Zr,!0);if(jr&&yi(Qr,B1(E)))return[Qr].concat(jr)}}function Ib(f,S,E){let P=!1;return Um(S,z=>{let q=Vf(z.get(f.escapedName));if(!q)return!1;if(q===f)return!0;let oe=q.flags&2097152&&!Kp(q,281);return q=oe?oy(q):q,(oe?qy(q):q.flags)&E?(P=!0,!0):!1}),P}function Dw(f){if(f.declarations&&f.declarations.length){for(let S of f.declarations)switch(S.kind){case 172:case 174:case 177:case 178:continue;default:return!1}return!0}return!1}function u2(f,S){return cs(f,S,788968,!1,!0).accessibility===0}function ST(f,S){return cs(f,S,111551,!1,!0).accessibility===0}function bD(f,S,E){return cs(f,S,E,!1,!1).accessibility===0}function hl(f,S,E,P,z,q){if(!Z(f))return;let oe,Fe=!1;for(let Ye of f){let it=bT(Ye,S,P,!1);if(it){oe=Ye;let Pt=wF(it[0],z);if(Pt)return Pt}if(q&&En(Ye.declarations,SD)){if(z){Fe=!0;continue}return{accessibility:0}}let tt=yP(Ye,S,P),It=hl(tt,S,E,E===Ye?B1(P):P,z,q);if(It)return It}if(Fe)return{accessibility:0};if(oe)return{accessibility:1,errorSymbolName:zl(E,S,P),errorModuleName:oe!==E?zl(oe,S,1920):void 0}}function _S(f,S,E,P){return cs(f,S,E,P,!0)}function cs(f,S,E,P,z){if(f&&S){let q=hl([f],S,f,E,P,z);if(q)return q;let oe=ee(f.declarations,xI);if(oe){let Fe=xI(S);if(oe!==Fe)return{accessibility:2,errorSymbolName:zl(f,S,E),errorModuleName:zl(oe),errorNode:Ys(S)?S:void 0}}return{accessibility:1,errorSymbolName:zl(f,S,E)}}return{accessibility:0}}function xI(f){let S=go(f,EL);return S&&Bs(S)}function EL(f){return nb(f)||f.kind===307&&Jv(f)}function SD(f){return xZ(f)||f.kind===307&&Jv(f)}function wF(f,S){let E;if(!Yt(Qn(f.declarations,q=>q.kind!==80),P))return;return{accessibility:0,aliasesToMakeVisible:E};function P(q){var oe,Fe;if(!zk(q)){let Ye=M0(q);if(Ye&&!kc(Ye,32)&&zk(Ye.parent))return z(q,Ye);if($c(q)&&Zh(q.parent.parent)&&!kc(q.parent.parent,32)&&zk(q.parent.parent.parent))return z(q,q.parent.parent);if(cse(q)&&!kc(q,32)&&zk(q.parent))return z(q,q);if(Zd(q)){if(f.flags&2097152&&Ys(q)&&((oe=q.parent)!=null&&oe.parent)&&$c(q.parent.parent)&&((Fe=q.parent.parent.parent)!=null&&Fe.parent)&&Zh(q.parent.parent.parent.parent)&&!kc(q.parent.parent.parent.parent,32)&&q.parent.parent.parent.parent.parent&&zk(q.parent.parent.parent.parent.parent))return z(q,q.parent.parent.parent.parent);if(f.flags&2){let it=go(q,Zh);return kc(it,32)?!0:zk(it.parent)?z(q,it):!1}}return!1}return!0}function z(q,oe){return S&&(ra(q).isVisible=!0,E=oo(E,oe)),!0}}function GM(f){let S;return f.parent.kind===186||f.parent.kind===233&&!jA(f.parent)||f.parent.kind===167||f.parent.kind===182&&f.parent.parameterName===f?S=1160127:f.kind===166||f.kind===211||f.parent.kind===271||f.parent.kind===166&&f.parent.left===f||f.parent.kind===211&&f.parent.expression===f||f.parent.kind===212&&f.parent.expression===f?S=1920:S=788968,S}function VJ(f,S,E=!0){let P=GM(f),z=fx(f),q=Ei(S,z.escapedText,P,void 0,!1);return q&&q.flags&262144&&P&788968?{accessibility:0}:!q&&JA(z)&&_S(Bs(Kb(z,!1,!1)),z,P,!1).accessibility===0?{accessibility:0}:q?wF(q,E)||{accessibility:1,errorSymbolName:_h(z),errorNode:z}:{accessibility:3,errorSymbolName:_h(z),errorNode:z}}function zl(f,S,E,P=4,z){let q=70221824,oe=0;P&2&&(q|=128),P&1&&(q|=512),P&8&&(q|=16384),P&32&&(oe|=4),P&16&&(oe|=1);let Fe=P&4?qe.symbolToNode:qe.symbolToEntityName;return z?Ye(z).getText():SZ(Ye);function Ye(it){let tt=Fe(f,E,S,q,oe),It=S?.kind===307?bge():dF(),Pt=S&&Vo(S);return It.writeNode(4,tt,Pt,it),it}}function gC(f,S,E=0,P,z){return z?q(z).getText():SZ(q);function q(oe){let Fe;E&262144?Fe=P===1?185:184:Fe=P===1?180:179;let Ye=qe.signatureToSignatureDeclaration(f,Fe,S,MN(E)|70221824|512),it=gce(),tt=S&&Vo(S);return it.writeNode(4,Ye,tt,DOe(oe)),oe}}function vs(f,S,E=1064960,P=ume("")){let z=X.noErrorTruncation||E&1,q=qe.typeToTypeNode(f,S,MN(E)|70221824|(z?1:0),void 0);if(q===void 0)return Se.fail("should always get typenode");let oe=f!==Bt?dF():AFe(),Fe=S&&Vo(S);oe.writeNode(4,q,Fe,P);let Ye=P.getText(),it=z?bp*2:Z$*2;return it&&Ye&&Ye.length>=it?Ye.substr(0,it-3)+"...":Ye}function KM(f,S){let E=vP(f.symbol)?vs(f,f.symbol.valueDeclaration):vs(f),P=vP(S.symbol)?vs(S,S.symbol.valueDeclaration):vs(S);return E===P&&(E=TF(f),P=TF(S)),[E,P]}function TF(f){return vs(f,void 0,64)}function vP(f){return f&&!!f.valueDeclaration&&An(f.valueDeclaration)&&!Lw(f.valueDeclaration)}function MN(f=0){return f&848330095}function kz(f){return!!f.symbol&&!!(f.symbol.flags&32)&&(f===pS(f.symbol)||!!(f.flags&524288)&&!!(Ls(f)&16777216))}function t6(f){return al(f)}function RN(){return{typeToTypeNode:(zt,Dt,xn,Or,ko)=>Fe(Dt,xn,Or,ko,Io=>tt(zt,Io)),typePredicateToTypePredicateNode:(zt,Dt,xn,Or,ko)=>Fe(Dt,xn,Or,ko,Io=>sm(zt,Io)),expressionOrTypeToTypeNode:(zt,Dt,xn,Or,ko,Io,Go)=>Fe(Or,ko,Io,Go,hc=>E(hc,zt,Dt,xn)),serializeTypeForDeclaration:(zt,Dt,xn,Or,ko,Io,Go)=>Fe(Or,ko,Io,Go,hc=>Cr(hc,zt,Dt,xn)),serializeReturnTypeForSignature:(zt,Dt,xn,Or,ko)=>Fe(Dt,xn,Or,ko,Io=>Ji(Io,zt)),indexInfoToIndexSignatureDeclaration:(zt,Dt,xn,Or,ko)=>Fe(Dt,xn,Or,ko,Io=>ao(zt,Io,void 0)),signatureToSignatureDeclaration:(zt,Dt,xn,Or,ko,Io)=>Fe(xn,Or,ko,Io,Go=>Ko(zt,Dt,Go)),symbolToEntityName:(zt,Dt,xn,Or,ko,Io)=>Fe(xn,Or,ko,Io,Go=>Uo(zt,Go,Dt,!1)),symbolToExpression:(zt,Dt,xn,Or,ko,Io)=>Fe(xn,Or,ko,Io,Go=>No(zt,Go,Dt)),symbolToTypeParameterDeclarations:(zt,Dt,xn,Or,ko)=>Fe(Dt,xn,Or,ko,Io=>eo(zt,Io)),symbolToParameterDeclaration:(zt,Dt,xn,Or,ko)=>Fe(Dt,xn,Or,ko,Io=>vh(zt,Io)),typeParameterToDeclaration:(zt,Dt,xn,Or,ko)=>Fe(Dt,xn,Or,ko,Io=>Td(zt,Io)),symbolTableToDeclarationStatements:(zt,Dt,xn,Or,ko)=>Fe(Dt,xn,Or,ko,Io=>Yo(zt,Io)),symbolToNode:(zt,Dt,xn,Or,ko,Io)=>Fe(xn,Or,ko,Io,Go=>oe(zt,Go,Dt))};function f(zt,Dt,xn){let Or=t6(Dt);if(!zt.mapper)return Or;let ko=Ul(Or,zt.mapper);return xn&&ko!==Or?void 0:ko}function S(zt,Dt,xn){if((!um(Dt)||!(Dt.flags&16)||!zt.enclosingFile||zt.enclosingFile!==Vo(Gm(Dt)))&&(Dt=Me.cloneNode(Dt)),Dt===xn||!xn)return Dt;let Or=Dt.original;for(;Or&&Or!==xn;)Or=Or.original;return Or||Wo(Dt,xn),zt.enclosingFile&&zt.enclosingFile===Vo(Gm(xn))?Fn(Dt,xn):Dt}function E(zt,Dt,xn,Or){let ko=Ye(zt);Dt&&!(zt.internalFlags&2)&&rt.serializeTypeOfExpression(Dt,zt,Or),zt.internalFlags|=2;let Io=P(zt,Dt,xn,Or);return ko(),Io}function P(zt,Dt,xn,Or){if(Dt){let ko=gy(Dt)?Dt.type:iF(Dt)?TU(Dt):void 0;if(ko&&!Jx(ko)){let Io=z(zt,ko,xn,Dt.parent,Or);if(Io)return Io}}return Or&&(xn=aR(xn)),tt(xn,zt)}function z(zt,Dt,xn,Or,ko){let Io=xn;ko&&(xn=aR(xn,!Fl(Or)));let Go=q(zt,Dt,xn,Or);if(Go)return ko&&Tje(xn)&&!uE(f(zt,Dt),hc=>!!(hc.flags&32768))?Me.createUnionTypeNode([Go,Me.createKeywordTypeNode(157)]):Go;if(ko&&Io!==xn){let hc=q(zt,Dt,Io,Or);if(hc)return Me.createUnionTypeNode([hc,Me.createKeywordTypeNode(157)])}}function q(zt,Dt,xn,Or=zt.enclosingDeclaration,ko=f(zt,Dt,!0)){if(ko&&Jt(Or,xn,ko)&&ji(Dt,xn)){let Io=uo(zt,Dt);if(Io)return Io}}function oe(zt,Dt,xn){if(Dt.internalFlags&1){if(zt.valueDeclaration){let ko=Nu(zt.valueDeclaration);if(ko&&f_(ko))return ko}let Or=Nl(zt).nameType;if(Or&&Or.flags&9216)return Dt.enclosingDeclaration=Or.symbol.valueDeclaration,Me.createComputedPropertyName(No(Or.symbol,Dt,xn))}return No(zt,Dt,xn)}function Fe(zt,Dt,xn,Or,ko){let Io=Or?.trackSymbol?Or.moduleResolverHost:(xn||0)&4?aFe(t):void 0,Go={enclosingDeclaration:zt,enclosingFile:zt&&Vo(zt),flags:Dt||0,internalFlags:xn||0,tracker:void 0,encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0,bundled:!!X.outFile&&!!zt&&Jv(Vo(zt)),truncating:!1,usedSymbolNames:void 0,remappedSymbolNames:void 0,remappedSymbolReferences:void 0,reverseMappedStack:void 0,mustCreateTypeParameterSymbolList:!0,typeParameterSymbolList:void 0,mustCreateTypeParametersNamesLookups:!0,typeParameterNames:void 0,typeParameterNamesByText:void 0,typeParameterNamesByTextNextNameCount:void 0,mapper:void 0};Go.tracker=new XTe(Go,Or,Io);let hc=ko(Go);return Go.truncating&&Go.flags&1&&Go.tracker.reportTruncationError(),Go.encounteredError?void 0:hc}function Ye(zt){let Dt=zt.flags,xn=zt.internalFlags;return Or;function Or(){zt.flags=Dt,zt.internalFlags=xn}}function it(zt){return zt.truncating?zt.truncating:zt.truncating=zt.approximateLength>(zt.flags&1?bp:Z$)}function tt(zt,Dt){let xn=Ye(Dt),Or=It(zt,Dt);return xn(),Or}function It(zt,Dt){var xn,Or;u&&u.throwIfCancellationRequested&&u.throwIfCancellationRequested();let ko=Dt.flags&8388608;if(Dt.flags&=-8388609,!zt){if(!(Dt.flags&262144)){Dt.encounteredError=!0;return}return Dt.approximateLength+=3,Me.createKeywordTypeNode(133)}if(Dt.flags&536870912||(zt=lu(zt)),zt.flags&1)return zt.aliasSymbol?Me.createTypeReferenceNode(ii(zt.aliasSymbol),br(zt.aliasTypeArguments,Dt)):zt===Bt?If(Me.createKeywordTypeNode(133),3,"unresolved"):(Dt.approximateLength+=3,Me.createKeywordTypeNode(zt===Ue?141:133));if(zt.flags&2)return Me.createKeywordTypeNode(159);if(zt.flags&4)return Dt.approximateLength+=6,Me.createKeywordTypeNode(154);if(zt.flags&8)return Dt.approximateLength+=6,Me.createKeywordTypeNode(150);if(zt.flags&64)return Dt.approximateLength+=6,Me.createKeywordTypeNode(163);if(zt.flags&16&&!zt.aliasSymbol)return Dt.approximateLength+=7,Me.createKeywordTypeNode(136);if(zt.flags&1056){if(zt.symbol.flags&8){let fr=B0(zt.symbol),Do=Ht(fr,Dt,788968);if(_m(fr)===zt)return Do;let As=Bc(zt.symbol);return Jb(As,1)?pn(Do,Me.createTypeReferenceNode(As,void 0)):Ck(Do)?(Do.isTypeOf=!0,Me.createIndexedAccessTypeNode(Do,Me.createLiteralTypeNode(Me.createStringLiteral(As)))):M_(Do)?Me.createIndexedAccessTypeNode(Me.createTypeQueryNode(Do.typeName),Me.createLiteralTypeNode(Me.createStringLiteral(As))):Se.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}return Ht(zt.symbol,Dt,788968)}if(zt.flags&128)return Dt.approximateLength+=zt.value.length+2,Me.createLiteralTypeNode(De(Me.createStringLiteral(zt.value,!!(Dt.flags&268435456)),16777216));if(zt.flags&256){let fr=zt.value;return Dt.approximateLength+=(""+fr).length,Me.createLiteralTypeNode(fr<0?Me.createPrefixUnaryExpression(41,Me.createNumericLiteral(-fr)):Me.createNumericLiteral(fr))}if(zt.flags&2048)return Dt.approximateLength+=z8(zt.value).length+1,Me.createLiteralTypeNode(Me.createBigIntLiteral(zt.value));if(zt.flags&512)return Dt.approximateLength+=zt.intrinsicName.length,Me.createLiteralTypeNode(zt.intrinsicName==="true"?Me.createTrue():Me.createFalse());if(zt.flags&8192){if(!(Dt.flags&1048576)){if(ST(zt.symbol,Dt.enclosingDeclaration))return Dt.approximateLength+=6,Ht(zt.symbol,Dt,111551);Dt.tracker.reportInaccessibleUniqueSymbolError&&Dt.tracker.reportInaccessibleUniqueSymbolError()}return Dt.approximateLength+=13,Me.createTypeOperatorNode(158,Me.createKeywordTypeNode(155))}if(zt.flags&16384)return Dt.approximateLength+=4,Me.createKeywordTypeNode(116);if(zt.flags&32768)return Dt.approximateLength+=9,Me.createKeywordTypeNode(157);if(zt.flags&65536)return Dt.approximateLength+=4,Me.createLiteralTypeNode(Me.createNull());if(zt.flags&131072)return Dt.approximateLength+=5,Me.createKeywordTypeNode(146);if(zt.flags&4096)return Dt.approximateLength+=6,Me.createKeywordTypeNode(155);if(zt.flags&67108864)return Dt.approximateLength+=6,Me.createKeywordTypeNode(151);if(KG(zt))return Dt.flags&4194304&&(!Dt.encounteredError&&!(Dt.flags&32768)&&(Dt.encounteredError=!0),(Or=(xn=Dt.tracker).reportInaccessibleThisError)==null||Or.call(xn)),Dt.approximateLength+=4,Me.createThisTypeNode();if(!ko&&zt.aliasSymbol&&(Dt.flags&16384||u2(zt.aliasSymbol,Dt.enclosingDeclaration))){let fr=br(zt.aliasTypeArguments,Dt);return rr(zt.aliasSymbol.escapedName)&&!(zt.aliasSymbol.flags&32)?Me.createTypeReferenceNode(Me.createIdentifier(""),fr):Z(fr)===1&&zt.aliasSymbol===$n.symbol?Me.createArrayTypeNode(fr[0]):Ht(zt.aliasSymbol,Dt,788968,fr)}let Io=Ls(zt);if(Io&4)return Se.assert(!!(zt.flags&524288)),zt.node?en(zt,fo):fo(zt);if(zt.flags&262144||Io&3){if(zt.flags&262144&&dr(Dt.inferTypeParameters,zt)){Dt.approximateLength+=Bc(zt.symbol).length+6;let Do,As=xC(zt);if(As){let _o=xO(zt,!0);_o&&d6(As,_o)||(Dt.approximateLength+=9,Do=As&&tt(As,Dt))}return Me.createInferTypeNode(Oa(zt,Dt,Do))}if(Dt.flags&4&&zt.flags&262144){let Do=so(zt,Dt);return Dt.approximateLength+=Un(Do).length,Me.createTypeReferenceNode(Me.createIdentifier(Un(Do)),void 0)}if(zt.symbol)return Ht(zt.symbol,Dt,788968);let fr=(zt===kn||zt===ke)&&U&&U.symbol?(zt===ke?"sub-":"super-")+Bc(U.symbol):"?";return Me.createTypeReferenceNode(Me.createIdentifier(fr),void 0)}if(zt.flags&1048576&&zt.origin&&(zt=zt.origin),zt.flags&3145728){let fr=zt.flags&1048576?Iw(zt.types):zt.types;if(Z(fr)===1)return tt(fr[0],Dt);let Do=br(fr,Dt,!0);if(Do&&Do.length>0)return zt.flags&1048576?Me.createUnionTypeNode(Do):Me.createIntersectionTypeNode(Do);!Dt.encounteredError&&!(Dt.flags&262144)&&(Dt.encounteredError=!0);return}if(Io&48)return Se.assert(!!(zt.flags&524288)),zi(zt);if(zt.flags&4194304){let fr=zt.type;Dt.approximateLength+=6;let Do=tt(fr,Dt);return Me.createTypeOperatorNode(143,Do)}if(zt.flags&134217728){let fr=zt.texts,Do=zt.types,As=Me.createTemplateHead(fr[0]),_o=Me.createNodeArray($i(Do,(Is,ns)=>Me.createTemplateLiteralTypeSpan(tt(Is,Dt),(nsGo(fr));if(zt.flags&33554432){let fr=tt(zt.baseType,Dt),Do=W9(zt)&&_st("NoInfer",!1);return Do?Ht(Do,Dt,788968,[fr]):fr}return Se.fail("Should be unreachable.");function Go(fr){let Do=tt(fr.checkType,Dt);if(Dt.approximateLength+=15,Dt.flags&4&&fr.root.isDistributive&&!(fr.checkType.flags&262144)){let uc=Gi(Ou(262144,"T")),el=so(uc,Dt),Mc=Me.createTypeReferenceNode(el);Dt.approximateLength+=37;let Lu=q9(fr.root.checkType,uc,fr.mapper),Qp=Dt.inferTypeParameters;Dt.inferTypeParameters=fr.root.inferTypeParameters;let Oh=tt(Ul(fr.root.extendsType,Lu),Dt);Dt.inferTypeParameters=Qp;let Zn=hc(Ul(f(Dt,fr.root.node.trueType),Lu)),fa=hc(Ul(f(Dt,fr.root.node.falseType),Lu));return Me.createConditionalTypeNode(Do,Me.createInferTypeNode(Me.createTypeParameterDeclaration(void 0,Me.cloneNode(Mc.typeName))),Me.createConditionalTypeNode(Me.createTypeReferenceNode(Me.cloneNode(el)),tt(fr.checkType,Dt),Me.createConditionalTypeNode(Mc,Oh,Zn,fa),Me.createKeywordTypeNode(146)),Me.createKeywordTypeNode(146))}let As=Dt.inferTypeParameters;Dt.inferTypeParameters=fr.root.inferTypeParameters;let _o=tt(fr.extendsType,Dt);Dt.inferTypeParameters=As;let Is=hc(TO(fr)),ns=hc(MF(fr));return Me.createConditionalTypeNode(Do,_o,Is,ns)}function hc(fr){var Do,As,_o;return fr.flags&1048576?(Do=Dt.visitedTypes)!=null&&Do.has(Rv(fr))?(Dt.flags&131072||(Dt.encounteredError=!0,(_o=(As=Dt.tracker)==null?void 0:As.reportCyclicStructureError)==null||_o.call(As)),Pt(Dt)):en(fr,Is=>tt(Is,Dt)):tt(fr,Dt)}function Ol(fr){return!!i1e(fr)}function ou(fr){return!!fr.target&&Ol(fr.target)&&!Ol(fr)}function Eu(fr){var Do;Se.assert(!!(fr.flags&524288));let As=fr.declaration.readonlyToken?Me.createToken(fr.declaration.readonlyToken.kind):void 0,_o=fr.declaration.questionToken?Me.createToken(fr.declaration.questionToken.kind):void 0,Is,ns,uc=!xP(fr)&&!(bO(fr).flags&2)&&Dt.flags&4&&!(Ph(fr).flags&262144&&((Do=xC(Ph(fr)))==null?void 0:Do.flags)&4194304);if(xP(fr)){if(ou(fr)&&Dt.flags&4){let Zn=Gi(Ou(262144,"T")),fa=so(Zn,Dt);ns=Me.createTypeReferenceNode(fa)}Is=Me.createTypeOperatorNode(143,ns||tt(bO(fr),Dt))}else if(uc){let Zn=Gi(Ou(262144,"T")),fa=so(Zn,Dt);ns=Me.createTypeReferenceNode(fa),Is=ns}else Is=tt(Ph(fr),Dt);let el=Oa(HN(fr),Dt,Is),Mc=fr.declaration.nameType?tt(r6(fr),Dt):void 0,Lu=tt(qk(j1(fr),!!(gf(fr)&4)),Dt),Qp=Me.createMappedTypeNode(As,el,Mc,_o,Lu,void 0);Dt.approximateLength+=10;let Oh=De(Qp,1);if(ou(fr)&&Dt.flags&4){let Zn=Ul(xC(f(Dt,fr.declaration.typeParameter.constraint.type))||Ce,fr.mapper);return Me.createConditionalTypeNode(tt(bO(fr),Dt),Me.createInferTypeNode(Me.createTypeParameterDeclaration(void 0,Me.cloneNode(ns.typeName),Zn.flags&2?void 0:tt(Zn,Dt))),Oh,Me.createKeywordTypeNode(146))}else if(uc)return Me.createConditionalTypeNode(tt(Ph(fr),Dt),Me.createInferTypeNode(Me.createTypeParameterDeclaration(void 0,Me.cloneNode(ns.typeName),Me.createTypeOperatorNode(143,tt(bO(fr),Dt)))),Oh,Me.createKeywordTypeNode(146));return Oh}function zi(fr){var Do,As;let _o=fr.id,Is=fr.symbol;if(Is){if(!!(Ls(fr)&8388608)){let Lu=fr.node;if(C1(Lu)){let Qp=q(Dt,Lu,fr);if(Qp)return Qp}return(Do=Dt.visitedTypes)!=null&&Do.has(_o)?Pt(Dt):en(fr,pr)}let el=kz(fr)?788968:111551;if(QN(Is.valueDeclaration))return Ht(Is,Dt,el);if(Is.flags&32&&!jve(Is)&&!(Is.valueDeclaration&&bc(Is.valueDeclaration)&&Dt.flags&2048&&(!D0(Is.valueDeclaration)||_S(Is,Dt.enclosingDeclaration,el,!1).accessibility!==0))||Is.flags&896||ns())return Ht(Is,Dt,el);if((As=Dt.visitedTypes)!=null&&As.has(_o)){let Mc=HJ(fr);return Mc?Ht(Mc,Dt,788968):Pt(Dt)}else return en(fr,pr)}else return pr(fr);function ns(){var uc;let el=!!(Is.flags&8192)&&En(Is.declarations,Lu=>Xd(Lu)),Mc=!!(Is.flags&16)&&(Is.parent||ee(Is.declarations,Lu=>Lu.parent.kind===307||Lu.parent.kind===268));if(el||Mc)return(!!(Dt.flags&4096)||((uc=Dt.visitedTypes)==null?void 0:uc.has(_o)))&&(!(Dt.flags&8)||ST(Is,Dt.enclosingDeclaration))}}function en(fr,Do){var As,_o,Is;let ns=fr.id,uc=Ls(fr)&16&&fr.symbol&&fr.symbol.flags&32,el=Ls(fr)&4&&fr.node?"N"+pp(fr.node):fr.flags&16777216?"N"+pp(fr.root.node):fr.symbol?(uc?"+":"")+Nf(fr.symbol):void 0;Dt.visitedTypes||(Dt.visitedTypes=new Set),el&&!Dt.symbolDepth&&(Dt.symbolDepth=new Map);let Mc=Dt.enclosingDeclaration&&ra(Dt.enclosingDeclaration),Lu=`${Rv(fr)}|${Dt.flags}|${Dt.internalFlags}`;Mc&&(Mc.serializedTypes||(Mc.serializedTypes=new Map));let Qp=(As=Mc?.serializedTypes)==null?void 0:As.get(Lu);if(Qp)return(_o=Qp.trackedSymbols)==null||_o.forEach(([Kl,bu,Vp])=>Dt.tracker.trackSymbol(Kl,bu,Vp)),Qp.truncating&&(Dt.truncating=!0),Dt.approximateLength+=Qp.addedLength,Ka(Qp.node);let Oh;if(el){if(Oh=Dt.symbolDepth.get(el)||0,Oh>10)return Pt(Dt);Dt.symbolDepth.set(el,Oh+1)}Dt.visitedTypes.add(ns);let Zn=Dt.trackedSymbols;Dt.trackedSymbols=void 0;let fa=Dt.approximateLength,Ac=Do(fr),oc=Dt.approximateLength-fa;return!Dt.reportedDiagnostic&&!Dt.encounteredError&&((Is=Mc?.serializedTypes)==null||Is.set(Lu,{node:Ac,truncating:Dt.truncating,addedLength:oc,trackedSymbols:Dt.trackedSymbols})),Dt.visitedTypes.delete(ns),el&&Dt.symbolDepth.set(el,Oh),Dt.trackedSymbols=Zn,Ac;function Ka(Kl){return!um(Kl)&&ju(Kl)===Kl?Kl:S(Dt,Me.cloneNode(Fo(Kl,Ka,void 0,tp,Ka)),Kl)}function tp(Kl,bu,Vp,E_,Qf){return Kl&&Kl.length===0?Fn(Me.createNodeArray(void 0,Kl.hasTrailingComma),Kl):ts(Kl,bu,Vp,E_,Qf)}}function pr(fr){if(Mv(fr)||fr.containsError)return Eu(fr);let Do=UN(fr);if(!Do.properties.length&&!Do.indexInfos.length){if(!Do.callSignatures.length&&!Do.constructSignatures.length)return Dt.approximateLength+=2,De(Me.createTypeLiteralNode(void 0),1);if(Do.callSignatures.length===1&&!Do.constructSignatures.length){let uc=Do.callSignatures[0];return Ko(uc,184,Dt)}if(Do.constructSignatures.length===1&&!Do.callSignatures.length){let uc=Do.constructSignatures[0];return Ko(uc,185,Dt)}}let As=Qn(Do.constructSignatures,uc=>!!(uc.flags&4));if(En(As)){let uc=$i(As,Mc=>$S(Mc));return Do.callSignatures.length+(Do.constructSignatures.length-As.length)+Do.indexInfos.length+(Dt.flags&2048?Tn(Do.properties,Mc=>!(Mc.flags&4194304)):Z(Do.properties))&&uc.push(bm(Do)),tt(Qu(uc),Dt)}let _o=Ye(Dt);Dt.flags|=4194304;let Is=Mo(Do);_o();let ns=Me.createTypeLiteralNode(Is);return Dt.approximateLength+=2,De(ns,Dt.flags&1024?0:1),ns}function fo(fr){let Do=nh(fr);if(fr.target===$n||fr.target===xo){if(Dt.flags&2){let Is=tt(Do[0],Dt);return Me.createTypeReferenceNode(fr.target===$n?"Array":"ReadonlyArray",[Is])}let As=tt(Do[0],Dt),_o=Me.createArrayTypeNode(As);return fr.target===$n?_o:Me.createTypeOperatorNode(148,_o)}else if(fr.target.objectFlags&8){if(Do=$s(Do,(As,_o)=>qk(As,!!(fr.target.elementFlags[_o]&2))),Do.length>0){let As=PL(fr),_o=br(Do.slice(0,As),Dt);if(_o){let{labeledElementDeclarations:Is}=fr.target;for(let uc=0;uc<_o.length;uc++){let el=fr.target.elementFlags[uc],Mc=Is?.[uc];Mc?_o[uc]=Me.createNamedTupleMember(el&12?Me.createToken(26):void 0,Me.createIdentifier(Ba(Ict(Mc))),el&2?Me.createToken(58):void 0,el&4?Me.createArrayTypeNode(_o[uc]):_o[uc]):_o[uc]=el&12?Me.createRestTypeNode(el&4?Me.createArrayTypeNode(_o[uc]):_o[uc]):el&2?Me.createOptionalTypeNode(_o[uc]):_o[uc]}let ns=De(Me.createTupleTypeNode(_o),1);return fr.target.readonly?Me.createTypeOperatorNode(148,ns):ns}}if(Dt.encounteredError||Dt.flags&524288){let As=De(Me.createTupleTypeNode([]),1);return fr.target.readonly?Me.createTypeOperatorNode(148,As):As}Dt.encounteredError=!0;return}else{if(Dt.flags&2048&&fr.symbol.valueDeclaration&&bc(fr.symbol.valueDeclaration)&&!ST(fr.symbol,Dt.enclosingDeclaration))return zi(fr);{let As=fr.target.outerTypeParameters,_o=0,Is;if(As){let Mc=As.length;for(;_o0){let Mc=0;if(fr.target.typeParameters&&(Mc=Math.min(fr.target.typeParameters.length,Do.length),(Nx(fr,ZBe(!1))||Nx(fr,Akt(!1))||Nx(fr,Yve(!1))||Nx(fr,Nkt(!1)))&&(!fr.node||!M_(fr.node)||!fr.node.typeArguments||fr.node.typeArguments.length0;){let Lu=Do[Mc-1],Qp=fr.target.typeParameters[Mc-1],Oh=R9(Qp);if(!Oh||!d6(Lu,Oh))break;Mc--}ns=br(Do.slice(_o,Mc),Dt)}let uc=Ye(Dt);Dt.flags|=16;let el=Ht(fr.symbol,Dt,788968,ns);return uc(),Is?pn(Is,el):el}}}function pn(fr,Do){if(Ck(fr)){let As=fr.typeArguments,_o=fr.qualifier;_o&&(Ai(_o)?As!==iW(_o)&&(_o=Zx(Me.cloneNode(_o),As)):As!==iW(_o.right)&&(_o=Me.updateQualifiedName(_o,_o.left,Zx(Me.cloneNode(_o.right),As)))),As=Do.typeArguments;let Is=kr(Do);for(let ns of Is)_o=_o?Me.createQualifiedName(_o,ns):ns;return Me.updateImportTypeNode(fr,fr.argument,fr.attributes,_o,As,fr.isTypeOf)}else{let As=fr.typeArguments,_o=fr.typeName;Ai(_o)?As!==iW(_o)&&(_o=Zx(Me.cloneNode(_o),As)):As!==iW(_o.right)&&(_o=Me.updateQualifiedName(_o,_o.left,Zx(Me.cloneNode(_o.right),As))),As=Do.typeArguments;let Is=kr(Do);for(let ns of Is)_o=Me.createQualifiedName(_o,ns);return Me.updateTypeReferenceNode(fr,_o,As)}}function kr(fr){let Do=fr.typeName,As=[];for(;!Ai(Do);)As.unshift(Do.right),Do=Do.left;return As.unshift(Do),As}function Mo(fr){if(it(Dt))return[Me.createPropertySignature(void 0,"...",void 0,void 0)];let Do=[];for(let Is of fr.callSignatures)Do.push(Ko(Is,179,Dt));for(let Is of fr.constructSignatures)Is.flags&4||Do.push(Ko(Is,180,Dt));for(let Is of fr.indexInfos)Do.push(ao(Is,Dt,fr.objectFlags&1024?Pt(Dt):void 0));let As=fr.properties;if(!As)return Do;let _o=0;for(let Is of As){if(_o++,Dt.flags&2048){if(Is.flags&4194304)continue;nT(Is)&6&&Dt.tracker.reportPrivateInBaseOfClassExpression&&Dt.tracker.reportPrivateInBaseOfClassExpression(Ba(Is.escapedName))}if(it(Dt)&&_o+2!(fo.flags&32768)),0);for(let fo of pr){let pn=Ko(fo,173,Dt,{name:hc,questionToken:Ol});xn.push(en(pn))}if(pr.length||!Ol)return}let ou;yi(zt,Dt)?ou=Pt(Dt):(ko&&(Dt.reverseMappedStack||(Dt.reverseMappedStack=[]),Dt.reverseMappedStack.push(zt)),ou=Io?Cr(Dt,void 0,Io,zt):Me.createKeywordTypeNode(133),ko&&Dt.reverseMappedStack.pop());let Eu=DD(zt)?[Me.createToken(148)]:void 0;Eu&&(Dt.approximateLength+=9);let zi=Me.createPropertySignature(Eu,hc,Ol,ou);xn.push(en(zi));function en(pr){var fo;let pn=(fo=zt.declarations)==null?void 0:fo.find(kr=>kr.kind===348);if(pn){let kr=ij(pn.comment);kr&&pw(pr,[{kind:3,text:`* + * `+kr.replace(/\n/g,` + * `)+` + `,pos:-1,end:-1,hasTrailingNewLine:!0}])}else zt.valueDeclaration&&vn(Dt,pr,zt.valueDeclaration);return pr}}function vn(zt,Dt,xn){return zt.enclosingFile&&zt.enclosingFile===Vo(xn)?Xg(Dt,xn):Dt}function br(zt,Dt,xn){if(En(zt)){if(it(Dt))if(xn){if(zt.length>2)return[tt(zt[0],Dt),Me.createTypeReferenceNode(`... ${zt.length-2} more ...`,void 0),tt(zt[zt.length-1],Dt)]}else return[Me.createTypeReferenceNode("...",void 0)];let ko=!(Dt.flags&64)?Hb():void 0,Io=[],Go=0;for(let hc of zt){if(Go++,it(Dt)&&Go+2{if(!eM(Ol,([ou],[Eu])=>Qr(ou,Eu)))for(let[ou,Eu]of Ol)Io[Eu]=tt(ou,Dt)}),hc()}return Io}}function Qr(zt,Dt){return zt===Dt||!!zt.symbol&&zt.symbol===Dt.symbol||!!zt.aliasSymbol&&zt.aliasSymbol===Dt.aliasSymbol}function ao(zt,Dt,xn){let Or=Gke(zt)||"x",ko=tt(zt.keyType,Dt),Io=Me.createParameterDeclaration(void 0,void 0,Or,void 0,ko,void 0);return xn||(xn=tt(zt.type||pt,Dt)),!zt.type&&!(Dt.flags&2097152)&&(Dt.encounteredError=!0),Dt.approximateLength+=Or.length+4,Me.createIndexSignature(zt.isReadonly?[Me.createToken(148)]:void 0,[Io],xn)}function Ko(zt,Dt,xn,Or){var ko;let Io,Go,hc=nkt(zt,!0)[0],Ol=Ds(xn,zt.declaration,hc,zt.typeParameters,zt.parameters,zt.mapper);xn.approximateLength+=3,xn.flags&32&&zt.target&&zt.mapper&&zt.target.typeParameters?Go=zt.target.typeParameters.map(pn=>tt(Ul(pn,zt.mapper),xn)):Io=zt.typeParameters&&zt.typeParameters.map(pn=>Td(pn,xn));let ou=Ye(xn);xn.flags&=-257;let Eu=(En(hc,pn=>pn!==hc[hc.length-1]&&!!(Ag(pn)&32768))?zt.parameters:hc).map(pn=>vh(pn,xn,Dt===176)),zi=xn.flags&33554432?void 0:Sa(zt,xn);zi&&Eu.unshift(zi),ou();let en=Ji(xn,zt),pr=Or?.modifiers;if(Dt===185&&zt.flags&4){let pn=tI(pr);pr=Me.createModifiersFromModifierFlags(pn|64)}let fo=Dt===179?Me.createCallSignature(Io,Eu,en):Dt===180?Me.createConstructSignature(Io,Eu,en):Dt===173?Me.createMethodSignature(pr,Or?.name??Me.createIdentifier(""),Or?.questionToken,Io,Eu,en):Dt===174?Me.createMethodDeclaration(pr,void 0,Or?.name??Me.createIdentifier(""),void 0,Io,Eu,en,void 0):Dt===176?Me.createConstructorDeclaration(pr,Eu,void 0):Dt===177?Me.createGetAccessorDeclaration(pr,Or?.name??Me.createIdentifier(""),Eu,en,void 0):Dt===178?Me.createSetAccessorDeclaration(pr,Or?.name??Me.createIdentifier(""),Eu,void 0):Dt===181?Me.createIndexSignature(pr,Eu,en):Dt===317?Me.createJSDocFunctionType(Eu,en):Dt===184?Me.createFunctionTypeNode(Io,Eu,en??Me.createTypeReferenceNode(Me.createIdentifier(""))):Dt===185?Me.createConstructorTypeNode(pr,Io,Eu,en??Me.createTypeReferenceNode(Me.createIdentifier(""))):Dt===262?Me.createFunctionDeclaration(pr,void 0,Or?.name?$d(Or.name,Ai):Me.createIdentifier(""),Io,Eu,en,void 0):Dt===218?Me.createFunctionExpression(pr,void 0,Or?.name?$d(Or.name,Ai):Me.createIdentifier(""),Io,Eu,en,Me.createBlock([])):Dt===219?Me.createArrowFunction(pr,Io,Eu,en,void 0,Me.createBlock([])):Se.assertNever(Dt);if(Go&&(fo.typeArguments=Me.createNodeArray(Go)),((ko=zt.declaration)==null?void 0:ko.kind)===323&&zt.declaration.parent.kind===339){let pn=_h(zt.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map(kr=>kr.replace(/^\s+/," ")).join(` +`);If(fo,3,pn,!0)}return Ol?.(),fo}function Zr(zt){return iu(zt)||U2(zt)||K8(zt)}function jr(zt){return iu(zt)||U2(zt)?m2(zt).typeParameters:YE(zt)?que(zt):[F9(Bs(zt.typeParameter))]}function Ss(zt){return iu(zt)||U2(zt)?m2(zt).parameters:void 0}function Ds(zt,Dt,xn,Or,ko,Io){let Go=zu(zt),hc,Ol,ou=zt.enclosingDeclaration,Eu=zt.mapper;if(Io&&(zt.mapper=Io),zt.enclosingDeclaration&&Dt){let en=function(pr,fo){Se.assert(zt.enclosingDeclaration);let pn;ra(zt.enclosingDeclaration).fakeScopeForSignatureDeclaration===pr?pn=zt.enclosingDeclaration:zt.enclosingDeclaration.parent&&ra(zt.enclosingDeclaration.parent).fakeScopeForSignatureDeclaration===pr&&(pn=zt.enclosingDeclaration.parent),Se.assertOptionalNode(pn,qu);let kr=pn?.locals??Au(),Mo,fr;if(fo((Do,As)=>{if(pn){let _o=kr.get(Do);_o?fr=ar(fr,{name:Do,oldSymbol:_o}):Mo=ar(Mo,Do)}kr.set(Do,As)}),pn)return function(){ee(Mo,As=>kr.delete(As)),ee(fr,As=>kr.set(As.name,As.oldSymbol))};{let Do=Me.createBlock(F);ra(Do).fakeScopeForSignatureDeclaration=pr,Do.locals=kr,dp(Do,zt.enclosingDeclaration),zt.enclosingDeclaration=Do}};var zi=en;hc=En(xn)?en("params",pr=>{if(xn)for(let fo=0;fo{if(Fl(Mo)&&Uu(Mo.name))return fr(Mo.name),!0;return;function fr(As){ee(As.elements,_o=>{switch(_o.kind){case 232:return;case 208:return Do(_o);default:return Se.assertNever(_o)}})}function Do(As){if(Uu(As.name))return fr(As.name);let _o=Bs(As);pr(_o.escapedName,_o)}})||pr(pn.escapedName,pn)}}):void 0,zt.flags&4&&En(Or)&&(Ol=en("typeParams",pr=>{for(let fo of Or??F){let pn=so(fo,zt).escapedText;pr(pn,fo.symbol)}}))}return()=>{hc?.(),Ol?.(),Go(),zt.enclosingDeclaration=ou,zt.mapper=Eu}}function Sa(zt,Dt){if(zt.thisParameter)return vh(zt.thisParameter,Dt);if(zt.declaration&&Ys(zt.declaration)){let xn=zoe(zt.declaration);if(xn&&xn.typeExpression)return Me.createParameterDeclaration(void 0,void 0,"this",void 0,tt(f(Dt,xn.typeExpression),Dt))}}function Oa(zt,Dt,xn){let Or=Ye(Dt);Dt.flags&=-513;let ko=Me.createModifiersFromModifierFlags(Qst(zt)),Io=so(zt,Dt),Go=R9(zt),hc=Go&&tt(Go,Dt);return Or(),Me.createTypeParameterDeclaration(ko,Io,xn,hc)}function wd(zt,Dt,xn){return Dt&&q(xn,Dt,zt)||tt(zt,xn)}function Td(zt,Dt,xn=xC(zt)){let Or=xn&&wd(xn,xm(zt),Dt);return Oa(zt,Dt,Or)}function sm(zt,Dt){let xn=zt.kind===2||zt.kind===3?Me.createToken(131):void 0,Or=zt.kind===1||zt.kind===3?De(Me.createIdentifier(zt.parameterName),16777216):Me.createThisTypeNode(),ko=zt.type&&tt(zt.type,Dt);return Me.createTypePredicateNode(xn,Or,ko)}function ol(zt){let Dt=Kp(zt,169);if(Dt)return Dt;if(!m4(zt))return Kp(zt,341)}function vh(zt,Dt,xn){let Or=ol(zt),ko=Js(zt),Io=Cr(Dt,Or,ko,zt),Go=!(Dt.flags&8192)&&xn&&Or&&tD(Or)?$i($g(Or),Me.cloneNode):void 0,Ol=Or&&RS(Or)||Ag(zt)&32768?Me.createToken(26):void 0,ou=or(zt,Or,Dt),zi=Or&&Aue(Or)||Ag(zt)&16384?Me.createToken(58):void 0,en=Me.createParameterDeclaration(Go,Ol,ou,zi,Io,void 0);return Dt.approximateLength+=Bc(zt).length+3,en}function or(zt,Dt,xn){return Dt&&Dt.name?Dt.name.kind===80?De(Me.cloneNode(Dt.name),16777216):Dt.name.kind===166?De(Me.cloneNode(Dt.name.right),16777216):Or(Dt.name):Bc(zt);function Or(ko){return Io(ko);function Io(Go){xn.tracker.canTrackSymbol&&f_(Go)&&SC(Go)&&Kr(Go.expression,xn.enclosingDeclaration,xn);let hc=Fo(Go,Io,void 0,void 0,Io);return Zd(hc)&&(hc=Me.updateBindingElement(hc,hc.dotDotDotToken,hc.propertyName,hc.name,void 0)),um(hc)||(hc=Me.cloneNode(hc)),De(hc,16777217)}}}function Kr(zt,Dt,xn){if(!xn.tracker.canTrackSymbol)return;let Or=fx(zt),ko=Ei(Or,Or.escapedText,1160127,void 0,!0);ko&&xn.tracker.trackSymbol(ko,Dt,111551)}function bn(zt,Dt,xn,Or){return Dt.tracker.trackSymbol(zt,Dt.enclosingDeclaration,xn),Gn(zt,Dt,xn,Or)}function Gn(zt,Dt,xn,Or){let ko;return!(zt.flags&262144)&&(Dt.enclosingDeclaration||Dt.flags&64)&&!(Dt.internalFlags&4)?(ko=Se.checkDefined(Go(zt,xn,!0)),Se.assert(ko&&ko.length>0)):ko=[zt],ko;function Go(hc,Ol,ou){let Eu=bT(hc,Dt.enclosingDeclaration,Ol,!!(Dt.flags&128)),zi;if(!Eu||Ib(Eu[0],Dt.enclosingDeclaration,Eu.length===1?Ol:B1(Ol))){let pr=yP(Eu?Eu[0]:hc,Dt.enclosingDeclaration,Ol);if(Z(pr)){zi=pr.map(kr=>En(kr.declarations,SD)?lc(kr,Dt):void 0);let fo=pr.map((kr,Mo)=>Mo);fo.sort(en);let pn=fo.map(kr=>pr[kr]);for(let kr of pn){let Mo=Go(kr,B1(Ol),!1);if(Mo){if(kr.exports&&kr.exports.get("export=")&&n1(kr.exports.get("export="),hc)){Eu=Mo;break}Eu=Mo.concat(Eu||[i1(kr,hc)||hc]);break}}}}if(Eu)return Eu;if(ou||!(hc.flags&6144))return!ou&&!Or&&ee(hc.declarations,SD)?void 0:[hc];function en(pr,fo){let pn=zi[pr],kr=zi[fo];if(pn&&kr){let Mo=t_(kr);return t_(pn)===Mo?zTe(pn)-zTe(kr):Mo?-1:1}return 0}}}function eo(zt,Dt){let xn;return Cne(zt).flags&524384&&(xn=Me.createNodeArray($i(Wa(zt),ko=>Td(ko,Dt)))),xn}function Lr(zt,Dt,xn){var Or;Se.assert(zt&&0<=Dt&&DtBF(Eu,Ol.links.mapper)),xn)}else Go=eo(ko,xn)}return Go}function ga(zt){return tO(zt.objectType)?ga(zt.objectType):zt}function lc(zt,Dt,xn){let Or=Kp(zt,307);if(!Or){let zi=Je(zt.declarations,en=>JS(en,zt));zi&&(Or=Kp(zi,307))}if(Or&&Or.moduleName!==void 0)return Or.moduleName;if(!Or&&qTe.test(zt.escapedName))return zt.escapedName.substring(1,zt.escapedName.length-1);if(!Dt.enclosingFile||!Dt.tracker.moduleResolverHost)return qTe.test(zt.escapedName)?zt.escapedName.substring(1,zt.escapedName.length-1):Vo(C8(zt)).fileName;let ko=Gm(Dt.enclosingDeclaration),Io=Zpe(ko)?J7(ko):void 0,Go=Dt.enclosingFile,hc=xn||Io&&t.getModeForUsageLocation(Go,Io)||Go&&t.getDefaultResolutionModeForFile(Go),Ol=wK(Go.path,hc),ou=Nl(zt),Eu=ou.specifierCache&&ou.specifierCache.get(Ol);if(!Eu){let zi=!!X.outFile,{moduleResolverHost:en}=Dt.tracker,pr=zi?{...X,baseUrl:en.getCommonSourceDirectory()}:X;Eu=of(WTe(zt,zr,pr,Go,en,{importModuleSpecifierPreference:zi?"non-relative":"project-relative",importModuleSpecifierEnding:zi?"minimal":hc===99?"js":void 0},{overrideImportMode:xn})),ou.specifierCache??(ou.specifierCache=new Map),ou.specifierCache.set(Ol,Eu)}return Eu}function ii(zt){let Dt=Me.createIdentifier(Ba(zt.escapedName));return zt.parent?Me.createQualifiedName(ii(zt.parent),Dt):Dt}function Ht(zt,Dt,xn,Or){let ko=bn(zt,Dt,xn,!(Dt.flags&16384)),Io=xn===111551;if(En(ko[0].declarations,SD)){let Ol=ko.length>1?hc(ko,ko.length-1,1):void 0,ou=Or||Lr(ko,0,Dt),Eu=Vo(Gm(Dt.enclosingDeclaration)),zi=g4(ko[0]),en,pr;if((S1(X)===3||S1(X)===99)&&zi?.impliedNodeFormat===99&&zi.impliedNodeFormat!==Eu?.impliedNodeFormat&&(en=lc(ko[0],Dt,99),pr=Me.createImportAttributes(Me.createNodeArray([Me.createImportAttribute(Me.createStringLiteral("resolution-mode"),Me.createStringLiteral("import"))]))),en||(en=lc(ko[0],Dt)),!(Dt.flags&67108864)&&S1(X)!==1&&en.includes("/node_modules/")){let pn=en;if(S1(X)===3||S1(X)===99){let kr=Eu?.impliedNodeFormat===99?1:99;en=lc(ko[0],Dt,kr),en.includes("/node_modules/")?en=pn:pr=Me.createImportAttributes(Me.createNodeArray([Me.createImportAttribute(Me.createStringLiteral("resolution-mode"),Me.createStringLiteral(kr===99?"import":"require"))]))}pr||(Dt.encounteredError=!0,Dt.tracker.reportLikelyUnsafeImportRequiredError&&Dt.tracker.reportLikelyUnsafeImportRequiredError(pn))}let fo=Me.createLiteralTypeNode(Me.createStringLiteral(en));if(Dt.approximateLength+=en.length+10,!Ol||tb(Ol)){if(Ol){let pn=Ai(Ol)?Ol:Ol.right;Zx(pn,void 0)}return Me.createImportTypeNode(fo,pr,Ol,ou,Io)}else{let pn=ga(Ol),kr=pn.objectType.typeName;return Me.createIndexedAccessTypeNode(Me.createImportTypeNode(fo,pr,kr,ou,Io),pn.indexType)}}let Go=hc(ko,ko.length-1,0);if(tO(Go))return Go;if(Io)return Me.createTypeQueryNode(Go);{let Ol=Ai(Go)?Go:Go.right,ou=iW(Ol);return Zx(Ol,void 0),Me.createTypeReferenceNode(Go,ou)}function hc(Ol,ou,Eu){let zi=ou===Ol.length-1?Or:Lr(Ol,ou,Dt),en=Ol[ou],pr=Ol[ou-1],fo;if(ou===0)Dt.flags|=16777216,fo=om(en,Dt),Dt.approximateLength+=(fo?fo.length:0)+1,Dt.flags^=16777216;else if(pr&&Fv(pr)){let kr=Fv(pr);Km(kr,(Mo,fr)=>{if(n1(Mo,en)&&!wue(fr)&&fr!=="export=")return fo=Ba(fr),!0})}if(fo===void 0){let kr=Je(en.declarations,Nu);if(kr&&f_(kr)&&tb(kr.expression)){let Mo=hc(Ol,ou-1,Eu);return tb(Mo)?Me.createIndexedAccessTypeNode(Me.createParenthesizedType(Me.createTypeQueryNode(Mo)),Me.createTypeQueryNode(kr.expression)):Mo}fo=om(en,Dt)}if(Dt.approximateLength+=fo.length+1,!(Dt.flags&16)&&pr&&ZM(pr)&&ZM(pr).get(en.escapedName)&&n1(ZM(pr).get(en.escapedName),en)){let kr=hc(Ol,ou-1,Eu);return tO(kr)?Me.createIndexedAccessTypeNode(kr,Me.createLiteralTypeNode(Me.createStringLiteral(fo))):Me.createIndexedAccessTypeNode(Me.createTypeReferenceNode(kr,zi),Me.createLiteralTypeNode(Me.createStringLiteral(fo)))}let pn=De(Me.createIdentifier(fo),16777216);if(zi&&Zx(pn,Me.createNodeArray(zi)),pn.symbol=en,ou>Eu){let kr=hc(Ol,ou-1,Eu);return tb(kr)?Me.createQualifiedName(kr,pn):Se.fail("Impossible construct - an export of an indexed access cannot be reachable")}return pn}}function sr(zt,Dt,xn){let Or=Ei(Dt.enclosingDeclaration,zt,788968,void 0,!1);return Or&&Or.flags&262144?Or!==xn.symbol:!1}function so(zt,Dt){var xn,Or,ko,Io;if(Dt.flags&4&&Dt.typeParameterNames){let Ol=Dt.typeParameterNames.get(Rv(zt));if(Ol)return Ol}let Go=Uo(zt.symbol,Dt,788968,!0);if(!(Go.kind&80))return Me.createIdentifier("(Missing type parameter)");let hc=(Or=(xn=zt.symbol)==null?void 0:xn.declarations)==null?void 0:Or[0];if(hc&&Yp(hc)&&(Go=S(Dt,Go,hc.name)),Dt.flags&4){let Ol=Go.escapedText,ou=((ko=Dt.typeParameterNamesByTextNextNameCount)==null?void 0:ko.get(Ol))||0,Eu=Ol;for(;(Io=Dt.typeParameterNamesByText)!=null&&Io.has(Eu)||sr(Eu,Dt,zt);)ou++,Eu=`${Ol}_${ou}`;if(Eu!==Ol){let zi=iW(Go);Go=Me.createIdentifier(Eu),Zx(Go,zi)}Dt.mustCreateTypeParametersNamesLookups&&(Dt.mustCreateTypeParametersNamesLookups=!1,Dt.typeParameterNames=new Map(Dt.typeParameterNames),Dt.typeParameterNamesByTextNextNameCount=new Map(Dt.typeParameterNamesByTextNextNameCount),Dt.typeParameterNamesByText=new Set(Dt.typeParameterNamesByText)),Dt.typeParameterNamesByTextNextNameCount.set(Ol,ou),Dt.typeParameterNames.set(Rv(zt),Go),Dt.typeParameterNamesByText.add(Eu)}return Go}function Uo(zt,Dt,xn,Or){let ko=bn(zt,Dt,xn);return Or&&ko.length!==1&&!Dt.encounteredError&&!(Dt.flags&65536)&&(Dt.encounteredError=!0),Io(ko,ko.length-1);function Io(Go,hc){let Ol=Lr(Go,hc,Dt),ou=Go[hc];hc===0&&(Dt.flags|=16777216);let Eu=om(ou,Dt);hc===0&&(Dt.flags^=16777216);let zi=De(Me.createIdentifier(Eu),16777216);return Ol&&Zx(zi,Me.createNodeArray(Ol)),zi.symbol=ou,hc>0?Me.createQualifiedName(Io(Go,hc-1),zi):zi}}function No(zt,Dt,xn){let Or=bn(zt,Dt,xn);return ko(Or,Or.length-1);function ko(Io,Go){let hc=Lr(Io,Go,Dt),Ol=Io[Go];Go===0&&(Dt.flags|=16777216);let ou=om(Ol,Dt);Go===0&&(Dt.flags^=16777216);let Eu=ou.charCodeAt(0);if(xj(Eu)&&En(Ol.declarations,SD))return Me.createStringLiteral(lc(Ol,Dt));if(Go===0||Rme(ou,ne)){let zi=De(Me.createIdentifier(ou),16777216);return hc&&Zx(zi,Me.createNodeArray(hc)),zi.symbol=Ol,Go>0?Me.createPropertyAccessExpression(ko(Io,Go-1),zi):zi}else{Eu===91&&(ou=ou.substring(1,ou.length-1),Eu=ou.charCodeAt(0));let zi;if(xj(Eu)&&!(Ol.flags&8)?zi=Me.createStringLiteral(B2(ou).replace(/\\./g,en=>en.substring(1)),Eu===39):""+ +ou===ou&&(zi=Me.createNumericLiteral(+ou)),!zi){let en=De(Me.createIdentifier(ou),16777216);hc&&Zx(en,Me.createNodeArray(hc)),en.symbol=Ol,zi=en}return Me.createElementAccessExpression(ko(Io,Go-1),zi)}}}function Es(zt){let Dt=Nu(zt);return Dt?f_(Dt)?!!(fu(Dt.expression).flags&402653316):T_(Dt)?!!(fu(Dt.argumentExpression).flags&402653316):Kf(Dt):!1}function qa(zt){let Dt=Nu(zt);return!!(Dt&&Kf(Dt)&&(Dt.singleQuote||!um(Dt)&&xl(_h(Dt,!1),"'")))}function pc(zt,Dt){let xn=!!Z(zt.declarations)&&Yt(zt.declarations,Es),Or=!!Z(zt.declarations)&&Yt(zt.declarations,qa),ko=!!(zt.flags&8192),Io=Gl(zt,Dt,Or,xn,ko);if(Io)return Io;let Go=Ba(zt.escapedName);return nee(Go,h_(X),Or,xn,ko)}function Gl(zt,Dt,xn,Or,ko){let Io=Nl(zt).nameType;if(Io){if(Io.flags&384){let Go=""+Io.value;return!Jb(Go,h_(X))&&(Or||!nL(Go))?Me.createStringLiteral(Go,!!xn):nL(Go)&&xl(Go,"-")?Me.createComputedPropertyName(Me.createPrefixUnaryExpression(41,Me.createNumericLiteral(-Go))):nee(Go,h_(X),xn,Or,ko)}if(Io.flags&8192)return Me.createComputedPropertyName(No(Io.symbol,Dt,111551))}}function zu(zt){let Dt=zt.mustCreateTypeParameterSymbolList,xn=zt.mustCreateTypeParametersNamesLookups;zt.mustCreateTypeParameterSymbolList=!0,zt.mustCreateTypeParametersNamesLookups=!0;let Or=zt.typeParameterNames,ko=zt.typeParameterNamesByText,Io=zt.typeParameterNamesByTextNextNameCount,Go=zt.typeParameterSymbolList;return()=>{zt.typeParameterNames=Or,zt.typeParameterNamesByText=ko,zt.typeParameterNamesByTextNextNameCount=Io,zt.typeParameterSymbolList=Go,zt.mustCreateTypeParameterSymbolList=Dt,zt.mustCreateTypeParametersNamesLookups=xn}}function kp(zt,Dt){return zt.declarations&&jt(zt.declarations,xn=>!!Ize(xn)&&(!Dt||!!go(xn,Or=>Or===Dt)))}function ji(zt,Dt){if(!(Ls(Dt)&4)||!M_(zt))return!0;Kve(zt);let xn=ra(zt).resolvedSymbol,Or=xn&&_m(xn);return!Or||Or!==Dt.target?!0:Z(zt.typeArguments)>=Px(Dt.target.typeParameters)}function rn(zt){for(;ra(zt).fakeScopeForSignatureDeclaration;)zt=zt.parent;return zt}function Cr(zt,Dt,xn,Or){var ko,Io;let Go=Dt&&(Fl(Dt)||hw(Dt))&&Tze(Dt,zt.enclosingDeclaration),hc=zt.enclosingDeclaration,Ol=Ye(zt);if(Dt&&j$e(Dt)&&!(zt.internalFlags&2)&&rt.serializeTypeOfDeclaration(Dt,zt),zt.internalFlags|=2,hc&&(!Qe(xn)||zt.internalFlags&8)){let en=Dt&&Ize(Dt)?Dt:kp(Or);if(en&&!Rp(en)&&!n_(en)){let pr=Ize(en),fo=Go||!!(Or.flags&4&&Or.flags&16777216&&XT(en)&&((ko=Or.links)!=null&&ko.mappedType)&&Tje(xn)),pn=!Sk(pr)&&z(zt,pr,xn,en,fo);if(pn)return Ol(),pn}}xn.flags&8192&&xn.symbol===Or&&(!zt.enclosingDeclaration||En(Or.declarations,en=>Vo(en)===Vo(zt.enclosingDeclaration)))&&(zt.flags|=1048576);let ou=Dt??Or.valueDeclaration??((Io=Or.declarations)==null?void 0:Io[0]),Eu=ou&&hXt(ou)?DEt(ou):void 0,zi=E(zt,Eu,xn,Go);return Ol(),zi}function Jt(zt,Dt,xn){return xn===Dt?!0:zt&&(Fl(zt)||hx(zt)||vu(zt))&&zt.questionToken?cE(Dt,524288)===xn:!1}function Ji(zt,Dt){let xn=zt.flags&256,Or=Ye(zt);xn&&(zt.flags&=-257);let ko,Io=Op(Dt);return Io&&!(xn&&qr(Io))?(Dt.declaration&&!(zt.internalFlags&2)&&rt.serializeReturnTypeForSignature(Dt.declaration,zt),zt.internalFlags|=2,ko=Zi(zt,Dt)):xn||(ko=Me.createKeywordTypeNode(133)),Or(),ko}function Zi(zt,Dt){let xn=Pw(Dt),Or=Op(Dt);if(zt.enclosingDeclaration&&(!Qe(Or)||zt.internalFlags&8)&&Dt.declaration&&!um(Dt.declaration)){let Io=CXt(Dt.declaration);if(Io){let Go=z(zt,Io,Or,zt.enclosingDeclaration);if(Go)return Go}}if(xn)return sm(xn,zt);let ko=Dt.declaration&&DEt(Dt.declaration);return E(zt,ko,Or)}function Ii(zt,Dt){let xn=!1,Or=fx(zt);if(Ys(zt)&&(PH(Or)||cN(Or.parent)||tS(Or.parent)&&Xpe(Or.parent.left)&&PH(Or.parent.right)))return xn=!0,{introducesError:xn,node:zt};let ko=GM(zt),Io;if(JA(Or))return Io=Bs(Kb(Or,!1,!1)),_S(Io,Or,ko,!1).accessibility!==0&&(xn=!0,Dt.tracker.reportInaccessibleThisError()),{introducesError:xn,node:Go(zt)};if(Io=zf(Or,ko,!0,!0),Dt.enclosingDeclaration&&!(Io&&Io.flags&262144)){Io=Jh(Io);let hc=zf(Or,ko,!0,!0,Dt.enclosingDeclaration);if(hc===St||hc===void 0&&Io!==void 0||hc&&Io&&!n1(Jh(hc),Io))return hc!==St&&Dt.tracker.reportInferenceFallback(zt),xn=!0,{introducesError:xn,node:zt,sym:Io};Io=hc}if(Io)return Io.flags&1&&Io.valueDeclaration&&(k4(Io.valueDeclaration)||hw(Io.valueDeclaration))?{introducesError:xn,node:Go(zt)}:(!(Io.flags&262144)&&!VT(zt)&&_S(Io,Dt.enclosingDeclaration,ko,!1).accessibility!==0?(Dt.tracker.reportInferenceFallback(zt),xn=!0):Dt.tracker.trackSymbol(Io,Dt.enclosingDeclaration,ko),{introducesError:xn,node:Go(zt)});return{introducesError:xn,node:zt};function Go(hc){if(hc===Or){let ou=_m(Io),Eu=Io.flags&262144?so(ou,Dt):Me.cloneNode(hc);return Eu.symbol=Io,S(Dt,De(Eu,16777216),hc)}let Ol=Fo(hc,ou=>Go(ou),void 0);return Ol!==hc&&S(Dt,Ol,hc),Ol}}function Dn(zt,Dt,xn,Or){let ko=xn?111551:788968,Io=zf(Dt,ko,!0);if(!Io)return;let Go=Io.flags&2097152?oy(Io):Io;if(_S(Io,zt.enclosingDeclaration,ko,!1).accessibility===0)return Ht(Go,zt,ko,Or)}function ur(zt,Dt){if(Ys(Dt)&&Wy(Dt)){TD(Dt);let xn=ra(Dt).resolvedSymbol;return!xn||!(!Dt.isTypeOf&&!(xn.flags&788968)||!(Z(Dt.typeArguments)>=Px(Wa(xn))))}if(uL(Dt))return zt.mapper===void 0?!0:!!f(zt,Dt,!0);if(M_(Dt)){if(Jx(Dt))return!1;let xn=Kve(Dt),Or=ra(Dt).resolvedSymbol;if(!Or)return!1;if(Or.flags&262144){let ko=_m(Or);if(zt.mapper&&BF(ko,zt.mapper)!==ko)return!1}if(cb(Dt))return ji(Dt,xn)&&!Ckt(Dt)&&Or.flags&788968}if(yN(Dt)&&Dt.operator===158&&Dt.type.kind===155){let xn=zt.enclosingDeclaration&&rn(zt.enclosingDeclaration);return!!go(Dt,Or=>Or===xn)}return!0}function lr(zt,Dt){let xn=f(zt,Dt);return tt(xn,zt)}function uo(zt,Dt){u&&u.throwIfCancellationRequested&&u.throwIfCancellationRequested();let xn=!1,{finalizeBoundary:Or,startRecoveryScope:ko}=hc(),Io=on(Dt,Go,Qa);if(!Or())return;return zt.approximateLength+=Dt.end-Dt.pos,Io;function Go(pn){if(xn)return pn;let kr=ko(),Mo=Zr(pn)?Ol(pn):void 0,fr=fo(pn);return Mo?.(),xn?Qa(pn)&&!Sk(pn)?(kr(),lr(zt,pn)):pn:fr?S(zt,fr,pn):void 0}function hc(){let pn,kr,Mo=zt.tracker,fr=zt.trackedSymbols;zt.trackedSymbols=void 0;let Do=zt.encounteredError;return zt.tracker=new XTe(zt,{...Mo.inner,reportCyclicStructureError(){As(()=>Mo.reportCyclicStructureError())},reportInaccessibleThisError(){As(()=>Mo.reportInaccessibleThisError())},reportInaccessibleUniqueSymbolError(){As(()=>Mo.reportInaccessibleUniqueSymbolError())},reportLikelyUnsafeImportRequiredError(ns){As(()=>Mo.reportLikelyUnsafeImportRequiredError(ns))},reportNonSerializableProperty(ns){As(()=>Mo.reportNonSerializableProperty(ns))},trackSymbol(ns,uc,el){return(pn??(pn=[])).push([ns,uc,el]),!1},moduleResolverHost:zt.tracker.moduleResolverHost},zt.tracker.moduleResolverHost),{startRecoveryScope:_o,finalizeBoundary:Is};function As(ns){xn=!0,(kr??(kr=[])).push(ns)}function _o(){let ns=pn?.length??0,uc=kr?.length??0;return()=>{xn=!1,pn&&(pn.length=ns),kr&&(kr.length=uc)}}function Is(){return zt.tracker=Mo,zt.trackedSymbols=fr,zt.encounteredError=Do,kr?.forEach(ns=>ns()),xn?!1:(pn?.forEach(([ns,uc,el])=>zt.tracker.trackSymbol(ns,uc,el)),!0)}}function Ol(pn){return Ds(zt,pn,Ss(pn),jr(pn))}function ou(pn){let kr=RZ(pn);switch(kr.kind){case 183:return pr(kr);case 186:return en(kr);case 199:return Eu(kr);case 198:let Mo=kr;if(Mo.operator===143)return zi(Mo)}return on(pn,Go,Qa)}function Eu(pn){let kr=ou(pn.objectType);if(kr!==void 0)return Me.updateIndexedAccessTypeNode(pn,kr,on(pn.indexType,Go,Qa))}function zi(pn){Se.assertEqual(pn.operator,143);let kr=ou(pn.type);if(kr!==void 0)return Me.updateTypeOperatorNode(pn,kr)}function en(pn){let{introducesError:kr,node:Mo}=Ii(pn.exprName,zt);if(!kr)return Me.updateTypeQueryNode(pn,Mo,ts(pn.typeArguments,Go,Qa));let fr=Dn(zt,pn.exprName,!0);if(fr)return S(zt,fr,pn.exprName)}function pr(pn){if(ur(zt,pn)){let{introducesError:kr,node:Mo}=Ii(pn.typeName,zt),fr=ts(pn.typeArguments,Go,Qa);if(kr){let Do=Dn(zt,pn.typeName,!1,fr);if(Do)return S(zt,Do,pn.typeName)}else{let Do=Me.updateTypeReferenceNode(pn,Mo,fr);return S(zt,Do,pn)}}}function fo(pn){if(lv(pn))return on(pn.type,Go,Qa);if(Cl(pn)||pn.kind===319)return Me.createKeywordTypeNode(133);if(Vwe(pn))return Me.createKeywordTypeNode(159);if(SN(pn))return Me.createUnionTypeNode([on(pn.type,Go,Qa),Me.createLiteralTypeNode(Me.createNull())]);if(nO(pn))return Me.createUnionTypeNode([on(pn.type,Go,Qa),Me.createKeywordTypeNode(157)]);if(uW(pn))return on(pn.type,Go);if(bae(pn))return Me.createArrayTypeNode(on(pn.type,Go,Qa));if(G5(pn))return Me.createTypeLiteralNode($i(pn.jsDocPropertyTags,_o=>{let Is=on(Ai(_o.name)?_o.name:_o.name.right,Go,Ai),ns=Ln(f(zt,pn),Is.escapedText),uc=ns&&_o.typeExpression&&f(zt,_o.typeExpression.type)!==ns?tt(ns,zt):void 0;return Me.createPropertySignature(void 0,Is,_o.isBracketed||_o.typeExpression&&nO(_o.typeExpression.type)?Me.createToken(58):void 0,uc||_o.typeExpression&&on(_o.typeExpression.type,Go,Qa)||Me.createKeywordTypeNode(133))}));if(M_(pn)&&Ai(pn.typeName)&&pn.typeName.escapedText==="")return Wo(Me.createKeywordTypeNode(133),pn);if(($C(pn)||M_(pn))&&qpe(pn))return Me.createTypeLiteralNode([Me.createIndexSignature(void 0,[Me.createParameterDeclaration(void 0,void 0,"x",void 0,on(pn.typeArguments[0],Go,Qa))],on(pn.typeArguments[1],Go,Qa))]);if(CU(pn))if(A3(pn)){let _o;return Me.createConstructorTypeNode(void 0,ts(pn.typeParameters,Go,Yp),Dc(pn.parameters,(Is,ns)=>Is.name&&Ai(Is.name)&&Is.name.escapedText==="new"?(_o=Is.type,void 0):Me.createParameterDeclaration(void 0,fr(Is),S(zt,Me.createIdentifier(Do(Is,ns)),Is),Me.cloneNode(Is.questionToken),on(Is.type,Go,Qa),void 0)),on(_o||pn.type,Go,Qa)||Me.createKeywordTypeNode(133))}else return Me.createFunctionTypeNode(ts(pn.typeParameters,Go,Yp),$i(pn.parameters,(_o,Is)=>Me.createParameterDeclaration(void 0,fr(_o),S(zt,Me.createIdentifier(Do(_o,Is)),_o),Me.cloneNode(_o.questionToken),on(_o.type,Go,Qa),void 0)),on(pn.type,Go,Qa)||Me.createKeywordTypeNode(133));if(uL(pn))return ur(zt,pn)||(xn=!0),pn;if(Yp(pn))return Me.updateTypeParameterDeclaration(pn,ts(pn.modifiers,Go,jd),S(zt,so(_m(Bs(pn)),zt),pn),on(pn.constraint,Go,Qa),on(pn.default,Go,Qa));if(tO(pn)){let _o=Eu(pn);return _o||(xn=!0,pn)}if(M_(pn)){let _o=pr(pn);return _o||(xn=!0,pn)}if(Wy(pn)){let _o=ra(pn).resolvedSymbol;return cb(pn)&&_o&&(!pn.isTypeOf&&!(_o.flags&788968)||!(Z(pn.typeArguments)>=Px(Wa(_o))))?S(zt,tt(f(zt,pn),zt),pn):Me.updateImportTypeNode(pn,Me.updateLiteralTypeNode(pn.argument,As(pn,pn.argument.literal)),on(pn.attributes,Go,GC),on(pn.qualifier,Go,tb),ts(pn.typeArguments,Go,Qa),pn.isTypeOf)}if(xf(pn)&&pn.name.kind===167&&!SC(pn.name)){if(!HA(pn))return kr(pn,Go);if(!(zt.internalFlags&8&&Dp(pn.name.expression)&&YN(pn.name).flags&1))return}if(iu(pn)&&!pn.type||vu(pn)&&!pn.type&&!pn.initializer||hx(pn)&&!pn.type&&!pn.initializer||Fl(pn)&&!pn.type&&!pn.initializer){let _o=kr(pn,Go);return _o===pn&&(_o=S(zt,Me.cloneNode(pn),pn)),_o.type=Me.createKeywordTypeNode(133),Fl(pn)&&(_o.modifiers=void 0),_o}if(C1(pn)){let _o=en(pn);return _o||(xn=!0,pn)}if(f_(pn)&&Dp(pn.expression)){let{node:_o,introducesError:Is}=Ii(pn.expression,zt);if(Is){let ns=$k(bbe(pn.expression)),uc=tt(ns,zt),el;if(xk(uc))el=uc.literal;else{let Mc=hbe(pn.expression),Lu=typeof Mc.value=="string"?Me.createStringLiteral(Mc.value,void 0):typeof Mc.value=="number"?Me.createNumericLiteral(Mc.value,0):void 0;if(!Lu)return Ck(uc)&&Kr(pn.expression,zt.enclosingDeclaration,zt),pn;el=Lu}return el.kind===11&&Jb(el.text,h_(X))?Me.createIdentifier(el.text):el.kind===9&&!el.text.startsWith("-")?el:Me.updateComputedPropertyName(pn,el)}else return Me.updateComputedPropertyName(pn,_o)}if(Sk(pn)){let _o;if(Ai(pn.parameterName)){let{node:Is,introducesError:ns}=Ii(pn.parameterName,zt);xn=xn||ns,_o=Is}else _o=Me.cloneNode(pn.parameterName);return Me.updateTypePredicateNode(pn,Me.cloneNode(pn.assertsModifier),_o,on(pn.type,Go,Qa))}if(G8(pn)||Im(pn)||K8(pn)){let _o=kr(pn,Go),Is=S(zt,_o===pn?Me.cloneNode(pn):_o,pn),ns=N_(Is);return De(Is,ns|(zt.flags&1024&&Im(pn)?0:1)),Is}if(Kf(pn)&&zt.flags&268435456&&!pn.singleQuote){let _o=Me.cloneNode(pn);return _o.singleQuote=!0,_o}if(YE(pn)){let _o=on(pn.checkType,Go,Qa),Is=Ol(pn),ns=on(pn.extendsType,Go,Qa),uc=on(pn.trueType,Go,Qa);Is();let el=on(pn.falseType,Go,Qa);return Me.updateConditionalTypeNode(pn,_o,ns,uc,el)}if(yN(pn)){if(pn.operator===158&&pn.type.kind===155){if(!ur(zt,pn))return xn=!0,pn}else if(pn.operator===143){let _o=zi(pn);return _o||(xn=!0,pn)}}return kr(pn,Go);function kr(_o,Is){let ns=!zt.enclosingFile||zt.enclosingFile!==Vo(_o);return Fo(_o,Is,void 0,ns?Mo:void 0)}function Mo(_o,Is,ns,uc,el){let Mc=ts(_o,Is,ns,uc,el);return Mc&&(Mc.pos!==-1||Mc.end!==-1)&&(Mc===_o&&(Mc=Me.createNodeArray(_o.slice(),_o.hasTrailingComma)),KT(Mc,-1,-1)),Mc}function fr(_o){return _o.dotDotDotToken||(_o.type&&bae(_o.type)?Me.createToken(26):void 0)}function Do(_o,Is){return _o.name&&Ai(_o.name)&&_o.name.escapedText==="this"?"this":fr(_o)?"args":`arg${Is}`}function As(_o,Is){if(zt.bundled||zt.enclosingFile!==Vo(Is)){let ns=Is.text,uc=ra(pn).resolvedSymbol,el=_o.isTypeOf?111551:788968,Mc=uc&&_S(uc,zt.enclosingDeclaration,el,!1).accessibility===0&&bn(uc,zt,el,!0)[0];if(Mc&&xH(Mc))ns=lc(Mc,zt);else{let Lu=Yde(_o);Lu&&(ns=lc(Lu.symbol,zt))}if(ns.includes("/node_modules/")&&(zt.encounteredError=!0,zt.tracker.reportLikelyUnsafeImportRequiredError&&zt.tracker.reportLikelyUnsafeImportRequiredError(ns)),ns!==Is.text)return Wo(Me.createStringLiteral(ns),Is)}return on(Is,Go,Kf)}}}function Yo(zt,Dt){var xn;let Or=o0(Me.createPropertyDeclaration,174,!0),ko=o0((vr,sc,mc,Rc)=>Me.createPropertySignature(vr,sc,mc,Rc),173,!1),Io=Dt.enclosingDeclaration,Go=[],hc=new Set,Ol=[],ou=Dt;Dt={...ou,usedSymbolNames:new Set(ou.usedSymbolNames),remappedSymbolNames:new Map,remappedSymbolReferences:new Map((xn=ou.remappedSymbolReferences)==null?void 0:xn.entries()),tracker:void 0};let Eu={...ou.tracker.inner,trackSymbol:(vr,sc,mc)=>{var Rc,Ic;if((Rc=Dt.remappedSymbolNames)!=null&&Rc.has(Nf(vr)))return!1;if(_S(vr,sc,mc,!1).accessibility===0){let Zf=Gn(vr,Dt,mc);if(!(vr.flags&4)){let tf=Zf[0],Hd=Vo(ou.enclosingDeclaration);En(tf.declarations,Zp=>Vo(Zp)===Hd)&&uc(tf)}}else if((Ic=ou.tracker.inner)!=null&&Ic.trackSymbol)return ou.tracker.inner.trackSymbol(vr,sc,mc);return!1}};Dt.tracker=new XTe(Dt,Eu,ou.tracker.moduleResolverHost),Km(zt,(vr,sc)=>{let mc=Ba(sc);mE(vr,mc)});let zi=!Dt.bundled,en=zt.get("export=");return en&&zt.size>1&&en.flags&2098688&&(zt=Au(),zt.set("export=",en)),_o(zt),fr(Go);function pr(vr){return!!vr&&vr.kind===80}function fo(vr){return Zh(vr)?Qn($i(vr.declarationList.declarations,Nu),pr):Qn([Nu(vr)],pr)}function pn(vr){let sc=jt(vr,Bm),mc=_n(vr,Dh),Rc=mc!==-1?vr[mc]:void 0;if(Rc&&sc&&sc.isExportEquals&&Ai(sc.expression)&&Ai(Rc.name)&&Un(Rc.name)===Un(sc.expression)&&Rc.body&&vN(Rc.body)){let Ic=Qn(vr,tf=>!!(A_(tf)&32)),am=Rc.name,Zf=Rc.body;if(Z(Ic)&&(Rc=Me.updateModuleDeclaration(Rc,Rc.modifiers,Rc.name,Zf=Me.updateModuleBlock(Zf,Me.createNodeArray([...Rc.body.statements,Me.createExportDeclaration(void 0,!1,Me.createNamedExports($i(za(Ic,tf=>fo(tf)),tf=>Me.createExportSpecifier(!1,void 0,tf))),void 0)]))),vr=[...vr.slice(0,mc),Rc,...vr.slice(mc+1)]),!jt(vr,tf=>tf!==Rc&&ta(tf,am))){Go=[];let tf=!En(Zf.statements,Hd=>kc(Hd,32)||Bm(Hd)||Qg(Hd));ee(Zf.statements,Hd=>{Mc(Hd,tf?32:0)}),vr=[...Qn(vr,Hd=>Hd!==Rc&&Hd!==sc),...Go]}}return vr}function kr(vr){let sc=Qn(vr,Rc=>Qg(Rc)&&!Rc.moduleSpecifier&&!!Rc.exportClause&&QT(Rc.exportClause));Z(sc)>1&&(vr=[...Qn(vr,Ic=>!Qg(Ic)||!!Ic.moduleSpecifier||!Ic.exportClause),Me.createExportDeclaration(void 0,!1,Me.createNamedExports(za(sc,Ic=>$d(Ic.exportClause,QT).elements)),void 0)]);let mc=Qn(vr,Rc=>Qg(Rc)&&!!Rc.moduleSpecifier&&!!Rc.exportClause&&QT(Rc.exportClause));if(Z(mc)>1){let Rc=Ks(mc,Ic=>Kf(Ic.moduleSpecifier)?">"+Ic.moduleSpecifier.text:">");if(Rc.length!==mc.length)for(let Ic of Rc)Ic.length>1&&(vr=[...Qn(vr,am=>!Ic.includes(am)),Me.createExportDeclaration(void 0,!1,Me.createNamedExports(za(Ic,am=>$d(am.exportClause,QT).elements)),Ic[0].moduleSpecifier)])}return vr}function Mo(vr){let sc=_n(vr,mc=>Qg(mc)&&!mc.moduleSpecifier&&!mc.attributes&&!!mc.exportClause&&QT(mc.exportClause));if(sc>=0){let mc=vr[sc],Rc=Dc(mc.exportClause.elements,Ic=>{if(!Ic.propertyName&&Ic.name.kind!==11){let am=Ic.name,Zf=On(vr),tf=Qn(Zf,Hd=>ta(vr[Hd],am));if(Z(tf)&&Yt(tf,Hd=>pU(vr[Hd]))){for(let Hd of tf)vr[Hd]=Do(vr[Hd]);return}}return Ic});Z(Rc)?vr[sc]=Me.updateExportDeclaration(mc,mc.modifiers,mc.isTypeOnly,Me.updateNamedExports(mc.exportClause,Rc),mc.moduleSpecifier,mc.attributes):Jw(vr,sc)}return vr}function fr(vr){return vr=pn(vr),vr=kr(vr),vr=Mo(vr),Io&&(ul(Io)&&Jv(Io)||Dh(Io))&&(!En(vr,pZ)||!lOe(vr)&&En(vr,Koe))&&vr.push(Cae(Me)),vr}function Do(vr){let sc=(A_(vr)|32)&-129;return Me.replaceModifiers(vr,sc)}function As(vr){let sc=A_(vr)&-33;return Me.replaceModifiers(vr,sc)}function _o(vr,sc,mc){sc||Ol.push(new Map),vr.forEach(Rc=>{Is(Rc,!1,!!mc)}),sc||(Ol[Ol.length-1].forEach(Rc=>{Is(Rc,!0,!!mc)}),Ol.pop())}function Is(vr,sc,mc){Lp(Js(vr));let Rc=Vf(vr);if(hc.has(Nf(Rc)))return;if(hc.add(Nf(Rc)),!sc||Z(vr.declarations)&&En(vr.declarations,am=>!!go(am,Zf=>Zf===Io))){let am=zu(Dt);ns(vr,sc,mc),am()}}function ns(vr,sc,mc,Rc=vr.escapedName){var Ic,am,Zf,tf,Hd,Zp;let sh=Ba(Rc),Yk=Rc==="default";if(sc&&!(Dt.flags&131072)&&ov(sh)&&!Yk){Dt.encounteredError=!0;return}let Rx=Yk&&!!(vr.flags&-113||vr.flags&16&&Z(Lp(Js(vr))))&&!(vr.flags&2097152),XS=!Rx&&!sc&&ov(sh)&&!Yk;(Rx||XS)&&(sc=!0);let bh=(sc?0:32)|(Yk&&!Rx?2048:0),YS=vr.flags&1536&&vr.flags&7&&Rc!=="export=",LI=YS&&xS(Js(vr),vr);if((vr.flags&8208||LI)&&oc(Js(vr),vr,mE(vr,sh),bh),vr.flags&524288&&Lu(vr,sh,bh),vr.flags&98311&&Rc!=="export="&&!(vr.flags&4194304)&&!(vr.flags&32)&&!(vr.flags&8192)&&!LI)if(mc)yv(vr)&&(XS=!1,Rx=!1);else{let Rb=Js(vr),h2=mE(vr,sh);if(Rb.symbol&&Rb.symbol!==vr&&Rb.symbol.flags&16&&En(Rb.symbol.declarations,H8)&&((Ic=Rb.symbol.members)!=null&&Ic.size||(am=Rb.symbol.exports)!=null&&am.size))Dt.remappedSymbolReferences||(Dt.remappedSymbolReferences=new Map),Dt.remappedSymbolReferences.set(Nf(Rb.symbol),vr),ns(Rb.symbol,sc,mc,Rc),Dt.remappedSymbolReferences.delete(Nf(Rb.symbol));else if(!(vr.flags&16)&&xS(Rb,vr))oc(Rb,vr,h2,bh);else{let efe=vr.flags&2?_q(vr)?2:1:(Zf=vr.parent)!=null&&Zf.valueDeclaration&&ul((tf=vr.parent)==null?void 0:tf.valueDeclaration)?2:void 0,$L=Rx||!(vr.flags&4)?h2:y6(h2,vr),rV=vr.declarations&&jt(vr.declarations,Lze=>$c(Lze));rV&&Xv(rV.parent)&&rV.parent.declarations.length===1&&(rV=rV.parent.parent);let oV=(Hd=vr.declarations)==null?void 0:Hd.find(ba);if(oV&&ms(oV.parent)&&Ai(oV.parent.right)&&((Zp=Rb.symbol)!=null&&Zp.valueDeclaration)&&ul(Rb.symbol.valueDeclaration)){let Lze=h2===oV.parent.right.escapedText?void 0:oV.parent.right;Mc(Me.createExportDeclaration(void 0,!1,Me.createNamedExports([Me.createExportSpecifier(!1,Lze,h2)])),0),Dt.tracker.trackSymbol(Rb.symbol,Dt.enclosingDeclaration,111551)}else{let Lze=S(Dt,Me.createVariableStatement(void 0,Me.createVariableDeclarationList([Me.createVariableDeclaration($L,void 0,Cr(Dt,void 0,Rb,vr))],efe)),rV);Mc(Lze,$L!==h2?bh&-33:bh),$L!==h2&&!sc&&(Mc(Me.createExportDeclaration(void 0,!1,Me.createNamedExports([Me.createExportSpecifier(!1,$L,h2)])),0),XS=!1,Rx=!1)}}}if(vr.flags&384&&Ac(vr,sh,bh),vr.flags&32&&(vr.flags&4&&vr.valueDeclaration&&ms(vr.valueDeclaration.parent)&&Qh(vr.valueDeclaration.parent.right)?Qf(vr,mE(vr,sh),bh):Vp(vr,mE(vr,sh),bh)),(vr.flags&1536&&(!YS||Zn(vr))||LI)&&fa(vr,sh,bh),vr.flags&64&&!(vr.flags&32)&&Qp(vr,sh,bh),vr.flags&2097152&&Qf(vr,mE(vr,sh),bh),vr.flags&4&&vr.escapedName==="export="&&yv(vr),vr.flags&8388608&&vr.declarations)for(let Rb of vr.declarations){let h2=Gy(Rb,Rb.moduleSpecifier);h2&&Mc(Me.createExportDeclaration(void 0,Rb.isTypeOnly,void 0,Me.createStringLiteral(lc(h2,Dt))),0)}Rx?Mc(Me.createExportAssignment(void 0,!1,Me.createIdentifier(mE(vr,sh))),0):XS&&Mc(Me.createExportDeclaration(void 0,!1,Me.createNamedExports([Me.createExportSpecifier(!1,mE(vr,sh),sh)])),0)}function uc(vr){if(En(vr.declarations,k4))return;Se.assertIsDefined(Ol[Ol.length-1]),y6(Ba(vr.escapedName),vr);let sc=!!(vr.flags&2097152)&&!En(vr.declarations,mc=>!!go(mc,Qg)||vm(mc)||pf(mc)&&!Zg(mc.moduleReference));Ol[sc?0:Ol.length-1].set(Nf(vr),vr)}function el(vr){return ul(vr)&&(Jv(vr)||qv(vr))||nb(vr)&&!y4(vr)}function Mc(vr,sc){if(tD(vr)){let mc=0,Rc=Dt.enclosingDeclaration&&(ux(Dt.enclosingDeclaration)?Vo(Dt.enclosingDeclaration):Dt.enclosingDeclaration);sc&32&&Rc&&(el(Rc)||Dh(Rc))&&pU(vr)&&(mc|=32),zi&&!(mc&32)&&(!Rc||!(Rc.flags&33554432))&&(Z8(vr)||Zh(vr)||fp(vr)||D0(vr)||Dh(vr))&&(mc|=128),sc&2048&&(D0(vr)||ky(vr)||fp(vr))&&(mc|=2048),mc&&(vr=Me.replaceModifiers(vr,mc|A_(vr)))}Go.push(vr)}function Lu(vr,sc,mc){var Rc;let Ic=YCt(vr),am=Nl(vr).typeParameters,Zf=$i(am,Rx=>Td(Rx,Dt)),tf=(Rc=vr.declarations)==null?void 0:Rc.find(ux),Hd=ij(tf?tf.comment||tf.parent.comment:void 0),Zp=Ye(Dt);Dt.flags|=8388608;let sh=Dt.enclosingDeclaration;Dt.enclosingDeclaration=tf;let Yk=tf&&tf.typeExpression&&lv(tf.typeExpression)&&q(Dt,tf.typeExpression.type,Ic,void 0)||tt(Ic,Dt);Mc(pw(Me.createTypeAliasDeclaration(void 0,mE(vr,sc),Zf,Yk),Hd?[{kind:3,text:`* + * `+Hd.replace(/\n/g,` + * `)+` + `,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),mc),Zp(),Dt.enclosingDeclaration=sh}function Qp(vr,sc,mc){let Rc=pS(vr),Ic=Wa(vr),am=$i(Ic,XS=>Td(XS,Dt)),Zf=Pp(Rc),tf=Z(Zf)?Qu(Zf):void 0,Hd=za(Lp(Rc),XS=>Mb(XS,tf)),Zp=Mx(0,Rc,tf,179),sh=Mx(1,Rc,tf,180),Yk=b0(Rc,tf),Rx=Z(Zf)?[Me.createHeritageClause(96,Dc(Zf,XS=>nV(XS,111551)))]:void 0;Mc(Me.createInterfaceDeclaration(void 0,mE(vr,sc),am,Rx,[...Yk,...sh,...Zp,...Hd]),mc)}function Oh(vr){let sc=tc(Fv(vr).values()),mc=Vf(vr);if(mc!==vr){let Rc=new Set(sc);for(let Ic of Fv(mc).values())qy(Nm(Ic))&111551||Rc.add(Ic);sc=tc(Rc)}return Qn(sc,Rc=>Kl(Rc)&&Jb(Rc.escapedName,99))}function Zn(vr){return Yt(Oh(vr),sc=>!(qy(Nm(sc))&111551))}function fa(vr,sc,mc){let Rc=Oh(vr),Ic=Ql(Rc,tf=>tf.parent&&tf.parent===vr?"real":"merged"),am=Ic.get("real")||F,Zf=Ic.get("merged")||F;if(Z(am)){let tf=mE(vr,sc);tp(am,tf,mc,!!(vr.flags&67108880))}if(Z(Zf)){let tf=Vo(Dt.enclosingDeclaration),Hd=mE(vr,sc),Zp=Me.createModuleBlock([Me.createExportDeclaration(void 0,!1,Me.createNamedExports(Dc(Qn(Zf,sh=>sh.escapedName!=="export="),sh=>{var Yk,Rx;let XS=Ba(sh.escapedName),bh=mE(sh,XS),YS=sh.declarations&&Uh(sh);if(tf&&(YS?tf!==Vo(YS):!En(sh.declarations,h2=>Vo(h2)===tf))){(Rx=(Yk=Dt.tracker)==null?void 0:Yk.reportNonlocalAugmentation)==null||Rx.call(Yk,tf,vr,sh);return}let LI=YS&&hD(YS,!0);uc(LI||sh);let Rb=LI?mE(LI,Ba(LI.escapedName)):bh;return Me.createExportSpecifier(!1,XS===Rb?void 0:Rb,XS)})))]);Mc(Me.createModuleDeclaration(void 0,Me.createIdentifier(Hd),Zp,32),0)}}function Ac(vr,sc,mc){Mc(Me.createEnumDeclaration(Me.createModifiersFromModifierFlags(Wct(vr)?4096:0),mE(vr,sc),$i(Qn(Lp(Js(vr)),Rc=>!!(Rc.flags&8)),Rc=>{let Ic=Rc.declarations&&Rc.declarations[0]&&pb(Rc.declarations[0])?k4e(Rc.declarations[0]):void 0;return Me.createEnumMember(Ba(Rc.escapedName),Ic===void 0?void 0:typeof Ic=="string"?Me.createStringLiteral(Ic):Me.createNumericLiteral(Ic))})),mc)}function oc(vr,sc,mc,Rc){let Ic=kd(vr,0);for(let am of Ic){let Zf=Ko(am,262,Dt,{name:Me.createIdentifier(mc)});Mc(S(Dt,Zf,Ka(am)),Rc)}if(!(sc.flags&1536&&sc.exports&&sc.exports.size)){let am=Qn(Lp(vr),Kl);tp(am,mc,Rc,!0)}}function Ka(vr){if(vr.declaration&&vr.declaration.parent){if(ms(vr.declaration.parent)&&wh(vr.declaration.parent)===5)return vr.declaration.parent;if($c(vr.declaration.parent)&&vr.declaration.parent.parent)return vr.declaration.parent.parent}return vr.declaration}function tp(vr,sc,mc,Rc){if(Z(vr)){let am=Ql(vr,bh=>!Z(bh.declarations)||En(bh.declarations,YS=>Vo(YS)===Vo(Dt.enclosingDeclaration))?"local":"remote").get("local")||F,Zf=mL.createModuleDeclaration(void 0,Me.createIdentifier(sc),Me.createModuleBlock([]),32);dp(Zf,Io),Zf.locals=Au(vr),Zf.symbol=vr[0].parent;let tf=Go;Go=[];let Hd=zi;zi=!1;let Zp={...Dt,enclosingDeclaration:Zf},sh=Dt;Dt=Zp,_o(Au(am),Rc,!0),Dt=sh,zi=Hd;let Yk=Go;Go=tf;let Rx=$i(Yk,bh=>Bm(bh)&&!bh.isExportEquals&&Ai(bh.expression)?Me.createExportDeclaration(void 0,!1,Me.createNamedExports([Me.createExportSpecifier(!1,bh.expression,Me.createIdentifier("default"))])):bh),XS=Yt(Rx,bh=>kc(bh,32))?$i(Rx,As):Rx;Zf=Me.updateModuleDeclaration(Zf,Zf.modifiers,Zf.name,Me.createModuleBlock(XS)),Mc(Zf,mc)}}function Kl(vr){return!!(vr.flags&2887656)||!(vr.flags&4194304||vr.escapedName==="prototype"||vr.valueDeclaration&&Xd(vr.valueDeclaration)&&bc(vr.valueDeclaration.parent))}function bu(vr){let sc=Dc(vr,mc=>{let Rc=Dt.enclosingDeclaration;Dt.enclosingDeclaration=mc;let Ic=mc.expression;if(Dp(Ic)){if(Ai(Ic)&&Un(Ic)==="")return am(void 0);let Zf;if({introducesError:Zf,node:Ic}=Ii(Ic,Dt),Zf)return am(void 0)}return am(Me.createExpressionWithTypeArguments(Ic,$i(mc.typeArguments,Zf=>q(Dt,Zf,f(Dt,Zf))||tt(f(Dt,Zf),Dt))));function am(Zf){return Dt.enclosingDeclaration=Rc,Zf}});if(sc.length===vr.length)return sc}function Vp(vr,sc,mc){var Rc,Ic;let am=(Rc=vr.declarations)==null?void 0:Rc.find(bc),Zf=Dt.enclosingDeclaration;Dt.enclosingDeclaration=am||Zf;let tf=Wa(vr),Hd=$i(tf,GL=>Td(GL,Dt)),Zp=Aw(pS(vr)),sh=Pp(Zp),Yk=am&&F3(am),Rx=Yk&&bu(Yk)||Dc(hf(Zp),OP),XS=Js(vr),bh=!!((Ic=XS.symbol)!=null&&Ic.valueDeclaration)&&bc(XS.symbol.valueDeclaration),YS=bh?ha(XS):pt,LI=[...Z(sh)?[Me.createHeritageClause(96,$i(sh,GL=>sk(GL,YS,sc)))]:[],...Z(Rx)?[Me.createHeritageClause(119,Rx)]:[]],Rb=RKt(Zp,sh,Lp(Zp)),h2=Qn(Rb,GL=>{let D4e=GL.valueDeclaration;return!!D4e&&!(xf(D4e)&&wl(D4e.name))}),$L=En(Rb,GL=>{let D4e=GL.valueDeclaration;return!!D4e&&xf(D4e)&&wl(D4e.name)})?[Me.createPropertyDeclaration(void 0,Me.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:F,rV=za(h2,GL=>Or(GL,!1,sh[0])),oV=za(Qn(Lp(XS),GL=>!(GL.flags&4194304)&&GL.escapedName!=="prototype"&&!Kl(GL)),GL=>Or(GL,!0,YS)),D7i=!bh&&!!vr.valueDeclaration&&Ys(vr.valueDeclaration)&&!En(kd(XS,1))?[Me.createConstructorDeclaration(Me.createModifiersFromModifierFlags(2),[],void 0)]:Mx(1,XS,YS,176),I7i=b0(Zp,sh[0]);Dt.enclosingDeclaration=Zf,Mc(S(Dt,Me.createClassDeclaration(void 0,sc,Hd,LI,[...I7i,...oV,...D7i,...rV,...$L]),vr.declarations&&Qn(vr.declarations,GL=>D0(GL)||Qh(GL))[0]),mc)}function E_(vr){return Je(vr,sc=>{if(eg(sc)||X0(sc))return Kw(sc.propertyName||sc.name);if(ms(sc)||Bm(sc)){let mc=Bm(sc)?sc.expression:sc.right;if(ba(mc))return Un(mc.name)}if(Nh(sc)){let mc=Nu(sc);if(mc&&Ai(mc))return Un(mc)}})}function Qf(vr,sc,mc){var Rc,Ic,am,Zf,tf;let Hd=Uh(vr);if(!Hd)return Se.fail();let Zp=Vf(hD(Hd,!0));if(!Zp)return;let sh=nG(Zp)&&E_(vr.declarations)||Ba(Zp.escapedName);sh==="export="&&Ee&&(sh="default");let Yk=mE(Zp,sh);switch(uc(Zp),Hd.kind){case 208:if(((Ic=(Rc=Hd.parent)==null?void 0:Rc.parent)==null?void 0:Ic.kind)===260){let bh=lc(Zp.parent||Zp,Dt),{propertyName:YS}=Hd;Mc(Me.createImportDeclaration(void 0,Me.createImportClause(!1,void 0,Me.createNamedImports([Me.createImportSpecifier(!1,YS&&Ai(YS)?Me.createIdentifier(Un(YS)):void 0,Me.createIdentifier(sc))])),Me.createStringLiteral(bh),void 0),0);break}Se.failBadSyntaxKind(((am=Hd.parent)==null?void 0:am.parent)||Hd,"Unhandled binding element grandparent kind in declaration serialization");break;case 304:((tf=(Zf=Hd.parent)==null?void 0:Zf.parent)==null?void 0:tf.kind)===226&&v0(Ba(vr.escapedName),Yk);break;case 260:if(ba(Hd.initializer)){let bh=Hd.initializer,YS=Me.createUniqueName(sc),LI=lc(Zp.parent||Zp,Dt);Mc(Me.createImportEqualsDeclaration(void 0,!1,YS,Me.createExternalModuleReference(Me.createStringLiteral(LI))),0),Mc(Me.createImportEqualsDeclaration(void 0,!1,Me.createIdentifier(sc),Me.createQualifiedName(YS,bh.name)),mc);break}case 271:if(Zp.escapedName==="export="&&En(Zp.declarations,bh=>ul(bh)&&qv(bh))){yv(vr);break}let Rx=!(Zp.flags&512)&&!$c(Hd);Mc(Me.createImportEqualsDeclaration(void 0,!1,Me.createIdentifier(sc),Rx?Uo(Zp,Dt,-1,!1):Me.createExternalModuleReference(Me.createStringLiteral(lc(Zp,Dt)))),Rx?mc:0);break;case 270:Mc(Me.createNamespaceExportDeclaration(Un(Hd.name)),0);break;case 273:{let bh=lc(Zp.parent||Zp,Dt),YS=Dt.bundled?Me.createStringLiteral(bh):Hd.parent.moduleSpecifier,LI=Dd(Hd.parent)?Hd.parent.attributes:void 0,Rb=cT(Hd.parent);Mc(Me.createImportDeclaration(void 0,Me.createImportClause(Rb,Me.createIdentifier(sc),void 0),YS,LI),0);break}case 274:{let bh=lc(Zp.parent||Zp,Dt),YS=Dt.bundled?Me.createStringLiteral(bh):Hd.parent.parent.moduleSpecifier,LI=cT(Hd.parent.parent);Mc(Me.createImportDeclaration(void 0,Me.createImportClause(LI,void 0,Me.createNamespaceImport(Me.createIdentifier(sc))),YS,Hd.parent.attributes),0);break}case 280:Mc(Me.createExportDeclaration(void 0,!1,Me.createNamespaceExport(Me.createIdentifier(sc)),Me.createStringLiteral(lc(Zp,Dt))),0);break;case 276:{let bh=lc(Zp.parent||Zp,Dt),YS=Dt.bundled?Me.createStringLiteral(bh):Hd.parent.parent.parent.moduleSpecifier,LI=cT(Hd.parent.parent.parent);Mc(Me.createImportDeclaration(void 0,Me.createImportClause(LI,void 0,Me.createNamedImports([Me.createImportSpecifier(!1,sc!==sh?Me.createIdentifier(sh):void 0,Me.createIdentifier(sc))])),YS,Hd.parent.parent.parent.attributes),0);break}case 281:let XS=Hd.parent.parent.moduleSpecifier;if(XS){let bh=Hd.propertyName;bh&&MC(bh)&&(sh="default")}v0(Ba(vr.escapedName),XS?sh:Yk,XS&&i_(XS)?Me.createStringLiteral(XS.text):void 0);break;case 277:yv(vr);break;case 226:case 211:case 212:vr.escapedName==="default"||vr.escapedName==="export="?yv(vr):v0(sc,Yk);break;default:return Se.failBadSyntaxKind(Hd,"Unhandled alias declaration kind in symbol serializer!")}}function v0(vr,sc,mc){Mc(Me.createExportDeclaration(void 0,!1,Me.createNamedExports([Me.createExportSpecifier(!1,vr!==sc?sc:void 0,vr)]),mc),0)}function yv(vr){var sc;if(vr.flags&4194304)return!1;let mc=Ba(vr.escapedName),Rc=mc==="export=",am=Rc||mc==="default",Zf=vr.declarations&&Uh(vr),tf=Zf&&hD(Zf,!0);if(tf&&Z(tf.declarations)&&En(tf.declarations,Hd=>Vo(Hd)===Vo(Io))){let Hd=Zf&&(Bm(Zf)||ms(Zf)?nme(Zf):wOe(Zf)),Zp=Hd&&Dp(Hd)?JKt(Hd):void 0,sh=Zp&&zf(Zp,-1,!0,!0,Io);(sh||tf)&&uc(sh||tf);let Yk=Dt.tracker.disableTrackSymbol;if(Dt.tracker.disableTrackSymbol=!0,am)Go.push(Me.createExportAssignment(void 0,Rc,No(tf,Dt,-1)));else if(Zp===Hd&&Zp)v0(mc,Un(Zp));else if(Hd&&Qh(Hd))v0(mc,mE(tf,Bc(tf)));else{let Rx=y6(mc,vr);Mc(Me.createImportEqualsDeclaration(void 0,!1,Me.createIdentifier(Rx),Uo(tf,Dt,-1,!1)),0),v0(mc,Rx)}return Dt.tracker.disableTrackSymbol=Yk,!0}else{let Hd=y6(mc,vr),Zp=$k(Js(Vf(vr)));if(xS(Zp,vr))oc(Zp,vr,Hd,am?0:32);else{let sh=((sc=Dt.enclosingDeclaration)==null?void 0:sc.kind)===267&&(!(vr.flags&98304)||vr.flags&65536)?1:2,Yk=Me.createVariableStatement(void 0,Me.createVariableDeclarationList([Me.createVariableDeclaration(Hd,void 0,Cr(Dt,void 0,Zp,vr))],sh));Mc(Yk,tf&&tf.flags&4&&tf.escapedName==="export="?128:mc===Hd?32:0)}return am?(Go.push(Me.createExportAssignment(void 0,Rc,Me.createIdentifier(Hd))),!0):mc!==Hd?(v0(mc,Hd),!0):!1}}function xS(vr,sc){var mc;let Rc=Vo(Dt.enclosingDeclaration);return Ls(vr)&48&&!En((mc=vr.symbol)==null?void 0:mc.declarations,Qa)&&!Z(o1(vr))&&!kz(vr)&&!!(Z(Qn(Lp(vr),Kl))||Z(kd(vr,0)))&&!Z(kd(vr,1))&&!kp(sc,Io)&&!(vr.symbol&&En(vr.symbol.declarations,Ic=>Vo(Ic)!==Rc))&&!En(Lp(vr),Ic=>wue(Ic.escapedName))&&!En(Lp(vr),Ic=>En(Ic.declarations,am=>Vo(am)!==Rc))&&Yt(Lp(vr),Ic=>Jb(Bc(Ic),ne)?Ic.flags&98304?i6(Ic)===Hk(Ic):!0:!1)}function o0(vr,sc,mc){return function(Ic,am,Zf){var tf,Hd,Zp,sh,Yk;let Rx=nT(Ic),XS=!!(Rx&2);if(am&&Ic.flags&2887656)return[];if(Ic.flags&4194304||Ic.escapedName==="constructor"||Zf&&Ku(Zf,Ic.escapedName)&&DD(Ku(Zf,Ic.escapedName))===DD(Ic)&&(Ic.flags&16777216)===(Ku(Zf,Ic.escapedName).flags&16777216)&&d6(Js(Ic),Ln(Zf,Ic.escapedName)))return[];let bh=Rx&-1025|(am?256:0),YS=pc(Ic,Dt),LI=(tf=Ic.declarations)==null?void 0:tf.find(ow(vu,O_,$c,hx,ms,ba));if(Ic.flags&98304&&mc){let Rb=[];if(Ic.flags&65536){let h2=Ic.declarations&&ee(Ic.declarations,$L=>{if($L.kind===178)return $L;if(Od($L)&&I3($L))return ee($L.arguments[2].properties,rV=>{let oV=Nu(rV);if(oV&&Ai(oV)&&Un(oV)==="set")return rV})});Se.assert(!!h2);let efe=Rp(h2)?m2(h2).parameters[0]:void 0;Rb.push(S(Dt,Me.createSetAccessorDeclaration(Me.createModifiersFromModifierFlags(bh),YS,[Me.createParameterDeclaration(void 0,void 0,efe?or(efe,ol(efe),Dt):"value",void 0,XS?void 0:Cr(Dt,void 0,Hk(Ic),Ic))],void 0),((Hd=Ic.declarations)==null?void 0:Hd.find(Gw))||LI))}if(Ic.flags&32768){let h2=Rx&2;Rb.push(S(Dt,Me.createGetAccessorDeclaration(Me.createModifiersFromModifierFlags(bh),YS,[],h2?void 0:Cr(Dt,void 0,Js(Ic),Ic),void 0),((Zp=Ic.declarations)==null?void 0:Zp.find(oN))||LI))}return Rb}else if(Ic.flags&98311)return S(Dt,vr(Me.createModifiersFromModifierFlags((DD(Ic)?8:0)|bh),YS,Ic.flags&16777216?Me.createToken(58):void 0,XS?void 0:Cr(Dt,void 0,Hk(Ic),Ic),void 0),((sh=Ic.declarations)==null?void 0:sh.find(ow(vu,$c)))||LI);if(Ic.flags&8208){let Rb=Js(Ic),h2=kd(Rb,0);if(bh&2)return S(Dt,vr(Me.createModifiersFromModifierFlags((DD(Ic)?8:0)|bh),YS,Ic.flags&16777216?Me.createToken(58):void 0,void 0,void 0),((Yk=Ic.declarations)==null?void 0:Yk.find(Rp))||h2[0]&&h2[0].declaration||Ic.declarations&&Ic.declarations[0]);let efe=[];for(let $L of h2){let rV=Ko($L,sc,Dt,{name:YS,questionToken:Ic.flags&16777216?Me.createToken(58):void 0,modifiers:bh?Me.createModifiersFromModifierFlags(bh):void 0}),oV=$L.declaration&&Qpe($L.declaration.parent)?$L.declaration.parent:$L.declaration;efe.push(S(Dt,rV,oV))}return efe}return Se.fail(`Unhandled class member kind! ${Ic.__debugFlags||Ic.flags}`)}}function Mb(vr,sc){return ko(vr,!1,sc)}function Mx(vr,sc,mc,Rc){let Ic=kd(sc,vr);if(vr===1){if(!mc&&Yt(Ic,tf=>Z(tf.parameters)===0))return[];if(mc){let tf=kd(mc,1);if(!Z(tf)&&Yt(Ic,Hd=>Z(Hd.parameters)===0))return[];if(tf.length===Ic.length){let Hd=!1;for(let Zp=0;Zptt(Ic,Dt)),Rc=No(vr.target.symbol,Dt,788968)):vr.symbol&&bD(vr.symbol,Io,sc)&&(Rc=No(vr.symbol,Dt,788968)),Rc)return Me.createExpressionWithTypeArguments(Rc,mc)}function OP(vr){let sc=nV(vr,788968);if(sc)return sc;if(vr.symbol)return Me.createExpressionWithTypeArguments(No(vr.symbol,Dt,788968),void 0)}function y6(vr,sc){var mc,Rc;let Ic=sc?Nf(sc):void 0;if(Ic&&Dt.remappedSymbolNames.has(Ic))return Dt.remappedSymbolNames.get(Ic);sc&&(vr=$F(sc,vr));let am=0,Zf=vr;for(;(mc=Dt.usedSymbolNames)!=null&&mc.has(vr);)am++,vr=`${Zf}_${am}`;return(Rc=Dt.usedSymbolNames)==null||Rc.add(vr),Ic&&Dt.remappedSymbolNames.set(Ic,vr),vr}function $F(vr,sc){if(sc==="default"||sc==="__class"||sc==="__function"){let mc=Ye(Dt);Dt.flags|=16777216;let Rc=om(vr,Dt);mc(),sc=Rc.length>0&&xj(Rc.charCodeAt(0))?B2(Rc):Rc}return sc==="default"?sc="_default":sc==="export="&&(sc="_exports"),sc=Jb(sc,ne)&&!ov(sc)?sc:"_"+sc.replace(/[^a-z0-9]/gi,"_"),sc}function mE(vr,sc){let mc=Nf(vr);return Dt.remappedSymbolNames.has(mc)?Dt.remappedSymbolNames.get(mc):(sc=$F(vr,sc),Dt.remappedSymbolNames.set(mc,sc),sc)}}}function yC(f,S,E=16384,P){return P?z(P).getText():SZ(z);function z(q){let oe=MN(E)|70221824|512,Fe=qe.typePredicateToTypePredicateNode(f,S,oe),Ye=dF(),it=S&&Vo(S);return Ye.writeNode(4,Fe,it,q),q}}function Iw(f){let S=[],E=0;for(let P=0;PNu(oe)?oe:void 0),q=z&&Nu(z);if(z&&q){if(Od(z)&&I3(z))return Bc(f);if(f_(q)&&!(Ag(f)&4096)){let oe=Nl(f).nameType;if(oe&&oe.flags&384){let Fe=wz(f,S);if(Fe!==void 0)return Fe}}return Gf(q)}if(z||(z=f.declarations[0]),z.parent&&z.parent.kind===260)return Gf(z.parent.name);switch(z.kind){case 231:case 218:case 219:return S&&!S.encounteredError&&!(S.flags&131072)&&(S.encounteredError=!0),z.kind===231?"(Anonymous class)":"(Anonymous function)"}}let P=wz(f,S);return P!==void 0?P:Bc(f)}function zk(f){if(f){let E=ra(f);return E.isVisible===void 0&&(E.isVisible=!!S()),E.isVisible}return!1;function S(){switch(f.kind){case 338:case 346:case 340:return!!(f.parent&&f.parent.parent&&f.parent.parent.parent&&ul(f.parent.parent.parent));case 208:return zk(f.parent.parent);case 260:if(Uu(f.name)&&!f.name.elements.length)return!1;case 267:case 263:case 264:case 265:case 262:case 266:case 271:if(j7(f))return!0;let E=di(f);return!(hs(f)&32)&&!(f.kind!==271&&E.kind!==307&&E.flags&33554432)?w8(E):zk(E);case 172:case 171:case 177:case 178:case 174:case 173:if(zC(f,6))return!1;case 176:case 180:case 179:case 181:case 169:case 268:case 184:case 185:case 187:case 183:case 188:case 189:case 192:case 193:case 196:case 202:return zk(f.parent);case 273:case 274:case 276:return!1;case 168:case 307:case 270:return!0;case 277:return!1;default:return!1}}}function z_(f,S){let E;f.kind!==11&&f.parent&&f.parent.kind===277?E=Ei(f,f,2998271,void 0,!1):f.parent.kind===281&&(E=i0(f.parent,2998271));let P,z;return E&&(z=new Set,z.add(Nf(E)),q(E.declarations)),P;function q(oe){ee(oe,Fe=>{let Ye=M0(Fe)||Fe;if(S?ra(Fe).isVisible=!0:(P=P||[],Xu(P,Ye)),y5(Fe)){let it=Fe.moduleReference,tt=fx(it),It=Ei(Fe,tt.escapedText,901119,void 0,!1);It&&z&&dc(z,Nf(It))&&q(It.declarations)}})}}function Vd(f,S){let E=xD(f,S);if(E>=0){let{length:P}=Mr;for(let z=E;z=Zs;E--){if(DF(Mr[E],bo[E]))return-1;if(Mr[E]===f&&bo[E]===S)return E}return-1}function DF(f,S){switch(S){case 0:return!!Nl(f).type;case 2:return!!Nl(f).declaredType;case 1:return!!f.resolvedBaseConstructorType;case 3:return!!f.resolvedReturnType;case 4:return!!f.immediateBaseConstraint;case 5:return!!f.resolvedTypeArguments;case 6:return!!f.baseTypesResolved;case 7:return!!Nl(f).writeType;case 8:return ra(f).parameterInitializerContainsUndefined!==void 0}return Se.assertNever(S)}function gt(){return Mr.pop(),bo.pop(),Bo.pop()}function di(f){return go(UT(f),S=>{switch(S.kind){case 260:case 261:case 276:case 275:case 274:case 273:return!1;default:return!0}}).parent}function Yi(f){let S=_m(B0(f));return S.typeParameters?wP(S,$i(S.typeParameters,E=>pt)):S}function Ln(f,S){let E=Ku(f,S);return E?Js(E):void 0}function Br(f,S){var E;let P;return Ln(f,S)||(P=(E=gS(f,S))==null?void 0:E.type)&&Eg(P,!0,!0)}function qr(f){return f&&(f.flags&1)!==0}function Qe(f){return f===Ie||!!(f.flags&1&&f.aliasSymbol)}function $t(f,S){if(S!==0)return bC(f,!1,S);let E=Bs(f);return E&&Nl(E).type||bC(f,!1,S)}function vi(f,S,E){if(f=cy(f,Ye=>!(Ye.flags&98304)),f.flags&131072)return ja;if(f.flags&1048576)return oh(f,Ye=>vi(Ye,S,E));let P=Fc($i(S,wO)),z=[],q=[];for(let Ye of Lp(f)){let it=rY(Ye,8576);!wf(it,P)&&!(nT(Ye)&6)&&ene(Ye)?z.push(Ye):q.push(it)}if(Wz(f)||zz(P)){if(q.length&&(P=Fc([P,...q])),P.flags&131072)return f;let Ye=gst();return Ye?CO(Ye,[f,P]):Ie}let oe=Au();for(let Ye of z)oe.set(Ye.escapedName,Wst(Ye,!1));let Fe=ml(E,oe,F,F,o1(f));return Fe.objectFlags|=4194304,Fe}function Ki(f){return!!(f.flags&465829888)&&n0(Pb(f)||Ce,32768)}function jn(f){let S=uE(f,Ki)?oh(f,E=>E.flags&465829888?CP(E):E):f;return cE(S,524288)}function $r(f,S){let E=jo(f);return E?zL(E,S):S}function jo(f){let S=Ms(f);if(S&&vse(S)&&S.flowNode){let E=rc(f);if(E){let P=Fn(mL.createStringLiteral(E),f),z=MS(S)?S:mL.createParenthesizedExpression(S),q=Fn(mL.createElementAccessExpression(z,P),f);return dp(P,q),dp(q,f),z!==S&&dp(z,q),q.flowNode=S.flowNode,q}}}function Ms(f){let S=f.parent.parent;switch(S.kind){case 208:case 303:return jo(S);case 209:return jo(f.parent);case 260:return S.initializer;case 226:return S.right}}function rc(f){let S=f.parent;return f.kind===208&&S.kind===206?_c(f.propertyName||f.name):f.kind===303||f.kind===304?_c(f.name):""+S.elements.indexOf(f)}function _c(f){let S=wO(f);return S.flags&384?""+S.value:void 0}function gl(f){let S=f.dotDotDotToken?32:0,E=$t(f.parent.parent,S);return E&&v_(f,E,!1)}function v_(f,S,E){if(qr(S))return S;let P=f.parent;xe&&f.flags&33554432&&k4(f)?S=LO(S):xe&&P.parent.initializer&&!XN(rPe(P.parent.initializer),65536)&&(S=cE(S,524288));let z=32|(E||bY(f)?16:0),q;if(P.kind===206)if(f.dotDotDotToken){if(S=lu(S),S.flags&2||!A1e(S))return ki(f,j.Rest_types_may_only_be_created_from_object_types),Ie;let oe=[];for(let Fe of P.elements)Fe.dotDotDotToken||oe.push(Fe.propertyName||Fe.name);q=vi(S,oe,f.symbol)}else{let oe=f.propertyName||f.name,Fe=wO(oe),Ye=rk(S,Fe,z,oe);q=$r(f,Ye)}else{let oe=qF(65|(f.dotDotDotToken?0:128),S,ye,P),Fe=P.elements.indexOf(f);if(f.dotDotDotToken){let Ye=oh(S,it=>it.flags&58982400?CP(it):it);q=KS(Ye,a_)?oh(Ye,it=>zue(it,Fe)):vS(oe)}else if(AO(S)){let Ye=fg(Fe),it=FF(S,Ye,z,f.name)||Ie;q=$r(f,it)}else q=oe}return f.initializer?gm(tj(f))?xe&&!XN(Oy(f,0),16777216)?jn(q):q:BWe(f,Fc([jn(q),Oy(f,0)],2)):q}function uf(f){let S=M6(f);if(S)return al(S)}function Of(f){let S=J_(f,!0);return S.kind===106||S.kind===80&&SS(S)===mt}function vC(f){let S=J_(f,!0);return S.kind===209&&S.elements.length===0}function Eg(f,S=!1,E=!0){return xe&&E?aR(f,S):f}function bC(f,S,E){if($c(f)&&f.parent.parent.kind===249){let oe=JN(NPe(fu(f.parent.parent.expression,E)));return oe.flags&4456448?oje(oe):Ot}if($c(f)&&f.parent.parent.kind===250){let oe=f.parent.parent;return pbe(oe)||pt}if(Uu(f.parent))return gl(f);let P=vu(f)&&!dN(f)||hx(f)||vee(f),z=S&&XT(f),q=Vk(f);if(Wpe(f))return q?qr(q)||q===Ce?q:Ie:he?Ce:pt;if(q)return Eg(q,P,z);if((Ae||Ys(f))&&$c(f)&&!Uu(f.name)&&!(hs(f)&32)&&!(f.flags&33554432)){if(!(ca(f)&6)&&(!f.initializer||Of(f.initializer)))return Gt;if(f.initializer&&vC(f.initializer))return Md}if(Fl(f)){if(!f.symbol)return;let oe=f.parent;if(oe.kind===178&&Uie(oe)){let it=Kp(Bs(f.parent),177);if(it){let tt=m2(it),It=Nlt(oe);return It&&f===It?(Se.assert(!It.type),Js(tt.thisParameter)):Op(tt)}}let Fe=Jie(oe,f);if(Fe)return Fe;let Ye=f.symbol.escapedName==="this"?Jat(oe):Gwt(f);if(Ye)return Eg(Ye,!1,z)}if(b8(f)&&f.initializer){if(Ys(f)&&!Fl(f)){let Fe=Q(f,Bs(f),v5(f));if(Fe)return Fe}let oe=BWe(f,Oy(f,E));return Eg(oe,P,z)}if(vu(f)&&(Ae||Ys(f)))if(G0(f)){let oe=Qn(f.parent.members,Yf),Fe=oe.length?Hf(f.symbol,oe):A_(f)&128?Ow(f.symbol):void 0;return Fe&&Eg(Fe,!0,z)}else{let oe=vk(f.parent),Fe=oe?Sm(f.symbol,oe):A_(f)&128?Ow(f.symbol):void 0;return Fe&&Eg(Fe,!0,z)}if(_b(f))return Si;if(Uu(f.name))return Ir(f.name,!1,!0)}function ef(f){if(f.valueDeclaration&&ms(f.valueDeclaration)){let S=Nl(f);return S.isConstructorDeclaredProperty===void 0&&(S.isConstructorDeclaredProperty=!1,S.isConstructorDeclaredProperty=!!Nw(f)&&Yt(f.declarations,E=>ms(E)&&vde(E)&&(E.left.kind!==212||Xb(E.left.argumentExpression))&&!Ne(void 0,E,f,E))),S.isConstructorDeclaredProperty}return!1}function Am(f){let S=f.valueDeclaration;return S&&vu(S)&&!gm(S)&&!S.initializer&&(Ae||Ys(S))}function Nw(f){if(f.declarations)for(let S of f.declarations){let E=Kb(S,!1,!1);if(E&&(E.kind===176||QN(E)))return E}}function d2(f){let S=Vo(f.declarations[0]),E=Ba(f.escapedName),P=f.declarations.every(q=>Ys(q)&&cf(q)&&cN(q.expression)),z=P?Me.createPropertyAccessExpression(Me.createPropertyAccessExpression(Me.createIdentifier("module"),Me.createIdentifier("exports")),E):Me.createPropertyAccessExpression(Me.createIdentifier("exports"),E);return P&&dp(z.expression.expression,z.expression),dp(z.expression,z),dp(z,S),z.flowNode=S.endFlowNode,zL(z,Gt,ye)}function Hf(f,S){let E=xl(f.escapedName,"__#")?Me.createPrivateIdentifier(f.escapedName.split("@")[1]):Ba(f.escapedName);for(let P of S){let z=Me.createPropertyAccessExpression(Me.createThis(),E);dp(z.expression,z),dp(z,P),z.flowNode=P.returnFlowNode;let q=hv(z,f);if(Ae&&(q===Gt||q===Md)&&ki(f.valueDeclaration,j.Member_0_implicitly_has_an_1_type,zl(f),vs(q)),!KS(q,O1e))return iA(q)}}function Sm(f,S){let E=xl(f.escapedName,"__#")?Me.createPrivateIdentifier(f.escapedName.split("@")[1]):Ba(f.escapedName),P=Me.createPropertyAccessExpression(Me.createThis(),E);dp(P.expression,P),dp(P,S),P.flowNode=S.returnFlowNode;let z=hv(P,f);return Ae&&(z===Gt||z===Md)&&ki(f.valueDeclaration,j.Member_0_implicitly_has_an_1_type,zl(f),vs(z)),KS(z,O1e)?void 0:iA(z)}function hv(f,S){let E=S?.valueDeclaration&&(!Am(S)||A_(S.valueDeclaration)&128)&&Ow(S)||ye;return zL(f,Gt,E)}function Ns(f,S){let E=U7(f.valueDeclaration);if(E){let Fe=Ys(E)?b3(E):void 0;return Fe&&Fe.typeExpression?al(Fe.typeExpression):f.valueDeclaration&&Q(f.valueDeclaration,f,E)||BL(r0(E))}let P,z=!1,q=!1;if(ef(f)&&(P=Sm(f,Nw(f))),!P){let Fe;if(f.declarations){let Ye;for(let it of f.declarations){let tt=ms(it)||Od(it)?it:cf(it)?ms(it.parent)?it.parent:it:void 0;if(!tt)continue;let It=cf(tt)?kj(tt):wh(tt);(It===4||ms(tt)&&vde(tt,It))&&(J(tt)?z=!0:q=!0),Od(tt)||(Ye=Ne(Ye,tt,f,it)),Ye||(Fe||(Fe=[])).push(ms(tt)||Od(tt)?Ze(f,S,tt,It):Wi)}P=Ye}if(!P){if(!Z(Fe))return Ie;let Ye=z&&f.declarations?me(Fe,f.declarations):void 0;if(q){let tt=Ow(f);tt&&((Ye||(Ye=[])).push(tt),z=!0)}let it=En(Ye,tt=>!!(tt.flags&-98305))?Ye:Fe;P=Fc(it)}}let oe=$k(Eg(P,!1,q&&!z));return f.valueDeclaration&&Ys(f.valueDeclaration)&&cy(oe,Fe=>!!(Fe.flags&-98305))===Wi?(cR(f.valueDeclaration,pt),pt):oe}function Q(f,S,E){var P,z;if(!Ys(f)||!E||!Ld(E)||E.properties.length)return;let q=Au();for(;ms(f)||ba(f);){let Ye=Hm(f);(P=Ye?.exports)!=null&&P.size&&Uy(q,Ye.exports),f=ms(f)?f.parent:f.parent.parent}let oe=Hm(f);(z=oe?.exports)!=null&&z.size&&Uy(q,oe.exports);let Fe=ml(S,q,F,F,F);return Fe.objectFlags|=4096,Fe}function Ne(f,S,E,P){var z;let q=gm(S.parent);if(q){let oe=$k(al(q));if(f)!Qe(f)&&!Qe(oe)&&!d6(f,oe)&&O2t(void 0,f,P,oe);else return oe}if((z=E.parent)!=null&&z.valueDeclaration){let oe=hC(E.parent);if(oe.valueDeclaration){let Fe=gm(oe.valueDeclaration);if(Fe){let Ye=Ku(al(Fe),E.escapedName);if(Ye)return i6(Ye)}}}return f}function Ze(f,S,E,P){if(Od(E)){if(S)return Js(S);let oe=r0(E.arguments[2]),Fe=Ln(oe,"value");if(Fe)return Fe;let Ye=Ln(oe,"get");if(Ye){let tt=yq(Ye);if(tt)return Op(tt)}let it=Ln(oe,"set");if(it){let tt=yq(it);if(tt)return KPe(tt)}return pt}if(yt(E.left,E.right))return pt;let z=P===1&&(ba(E.left)||T_(E.left))&&(cN(E.left.expression)||Ai(E.left.expression)&&PH(E.left.expression)),q=S?Js(S):z?Ig(r0(E.right)):BL(r0(E.right));if(q.flags&524288&&P===2&&f.escapedName==="export="){let oe=UN(q),Fe=Au();eG(oe.members,Fe);let Ye=Fe.size;S&&!S.exports&&(S.exports=Au()),(S||f).exports.forEach((tt,It)=>{var Pt;let yi=Fe.get(It);if(yi&&yi!==tt&&!(tt.flags&2097152))if(tt.flags&111551&&yi.flags&111551){if(tt.valueDeclaration&&yi.valueDeclaration&&Vo(tt.valueDeclaration)!==Vo(yi.valueDeclaration)){let vn=Ba(tt.escapedName),br=((Pt=ac(yi.valueDeclaration,xf))==null?void 0:Pt.name)||yi.valueDeclaration;Pd(ki(tt.valueDeclaration,j.Duplicate_identifier_0,vn),ws(br,j._0_was_also_declared_here,vn)),Pd(ki(br,j.Duplicate_identifier_0,vn),ws(tt.valueDeclaration,j._0_was_also_declared_here,vn))}let Hi=Ou(tt.flags|yi.flags,It);Hi.links.type=Fc([Js(tt),Js(yi)]),Hi.valueDeclaration=yi.valueDeclaration,Hi.declarations=Pl(yi.declarations,tt.declarations),Fe.set(It,Hi)}else Fe.set(It,yh(tt,yi));else Fe.set(It,tt)});let it=ml(Ye!==Fe.size?void 0:oe.symbol,Fe,oe.callSignatures,oe.constructSignatures,oe.indexInfos);if(Ye===Fe.size&&(q.aliasSymbol&&(it.aliasSymbol=q.aliasSymbol,it.aliasTypeArguments=q.aliasTypeArguments),Ls(q)&4)){it.aliasSymbol=q.symbol;let tt=nh(q);it.aliasTypeArguments=Z(tt)?tt:void 0}return it.objectFlags|=EAe([q])|Ls(q)&20608,it.symbol&&it.symbol.flags&32&&q===pS(it.symbol)&&(it.objectFlags|=16777216),it}return s_(q)?(cR(E,Wf),Wf):q}function yt(f,S){return ba(f)&&f.expression.kind===110&&NU(S,E=>z1(f,E))}function J(f){let S=Kb(f,!1,!1);return S.kind===176||S.kind===262||S.kind===218&&!Qpe(S.parent)}function me(f,S){return Se.assert(f.length===S.length),f.filter((E,P)=>{let z=S[P],q=ms(z)?z:ms(z.parent)?z.parent:void 0;return q&&J(q)})}function ze(f,S,E){if(f.initializer){let P=Uu(f.name)?Ir(f.name,!0,!1):Ce;return Eg(BWe(f,Oy(f,0,P)))}return Uu(f.name)?Ir(f.name,S,E):(E&&!nE(f)&&cR(f,pt),S?ui:pt)}function kt(f,S,E){let P=Au(),z,q=131200;ee(f.elements,Fe=>{let Ye=Fe.propertyName||Fe.name;if(Fe.dotDotDotToken){z=CT(Ot,pt,!1);return}let it=wO(Ye);if(!px(it)){q|=512;return}let tt=rT(it),It=4|(Fe.initializer?16777216:0),Pt=Ou(It,tt);Pt.links.type=ze(Fe,S,E),Pt.links.bindingElement=Fe,P.set(Pt.escapedName,Pt)});let oe=ml(void 0,P,F,F,z?[z]:F);return oe.objectFlags|=q,S&&(oe.pattern=f,oe.objectFlags|=131072),oe}function Di(f,S,E){let P=f.elements,z=Y_(P),q=z&&z.kind===208&&z.dotDotDotToken?z:void 0;if(P.length===0||P.length===1&&q)return ne>=2?bst(pt):Wf;let oe=$i(P,tt=>Eh(tt)?pt:ze(tt,S,E)),Fe=Pr(P,tt=>!(tt===q||Eh(tt)||bY(tt)),P.length-1)+1,Ye=$i(P,(tt,It)=>tt===q?4:It>=Fe?2:1),it=l6(oe,Ye);return S&&(it=Kie(it),it.pattern=f,it.objectFlags|=131072),it}function Ir(f,S=!1,E=!1){S&&Co.push(f);let P=f.kind===206?kt(f,S,E):Di(f,S,E);return S&&Co.pop(),P}function xs(f,S){return xT(bC(f,!0,0),f,S)}function Ll(f){let S=ra(f);if(!S.resolvedType){let E=Ou(4096,"__importAttributes"),P=Au();ee(f.elements,q=>{let oe=Ou(4,hU(q));oe.parent=E,oe.links.type=uEt(q),oe.links.target=oe,P.set(oe.escapedName,oe)});let z=ml(E,P,F,F,F);z.objectFlags|=262272,S.resolvedType=z}return S.resolvedType}function sp(f){let S=Hm(f),E=jJt(!1);return E&&S&&S===E}function xT(f,S,E){return f?(f.flags&4096&&sp(S.parent)&&(f=BAe(S)),E&&fY(S,f),f.flags&8192&&(Zd(S)||!S.type)&&f.symbol!==Bs(S)&&(f=cn),$k(f)):(f=Fl(S)&&S.dotDotDotToken?Wf:pt,E&&(nE(S)||cR(S,f)),f)}function nE(f){let S=UT(f),E=S.kind===169?S.parent:S;return Wde(E)}function Vk(f){let S=gm(f);if(S)return al(S)}function Tz(f){let S=f.valueDeclaration;return S?(Zd(S)&&(S=tj(S)),Fl(S)?bje(S.parent):!1):!1}function UX(f){let S=Nl(f);if(!S.type){let E=Rve(f);return!S.type&&!Tz(f)&&(S.type=E),E}return S.type}function Rve(f){if(f.flags&4194304)return Yi(f);if(f===Kt)return pt;if(f.flags&134217728&&f.valueDeclaration){let P=Bs(Vo(f.valueDeclaration)),z=Ou(P.flags,"exports");z.declarations=P.declarations?P.declarations.slice():[],z.parent=f,z.links.target=P,P.valueDeclaration&&(z.valueDeclaration=P.valueDeclaration),P.members&&(z.members=new Map(P.members)),P.exports&&(z.exports=new Map(P.exports));let q=Au();return q.set("exports",z),ml(f,q,F,F,F)}Se.assertIsDefined(f.valueDeclaration);let S=f.valueDeclaration;if(ul(S)&&qv(S))return S.statements.length?$k(BL(fu(S.statements[0].expression))):ja;if(O_(S))return jN(f);if(!Vd(f,0))return f.flags&512&&!(f.flags&67108864)?bP(f):O9(f);let E;if(S.kind===277)E=xT(Vk(S)||r0(S.expression),S);else if(ms(S)||Ys(S)&&(Od(S)||(ba(S)||Yh(S))&&ms(S.parent)))E=Ns(f);else if(ba(S)||T_(S)||Ai(S)||i_(S)||mx(S)||D0(S)||fp(S)||Sg(S)&&!zT(S)||sT(S)||ul(S)){if(f.flags&9136)return bP(f);E=ms(S.parent)?Ns(f):Vk(S)||pt}else if(Ih(S))E=Vk(S)||c2t(S);else if(_b(S))E=Vk(S)||Zat(S);else if(Q0(S))E=Vk(S)||vne(S.name,0);else if(zT(S))E=Vk(S)||qct(S,0);else if(Fl(S)||vu(S)||hx(S)||$c(S)||Zd(S)||vH(S))E=xs(S,!0);else if(Z8(S))E=bP(f);else if(pb(S))E=DL(f);else return Se.fail("Unhandled declaration kind! "+Se.formatSyntaxKind(S.kind)+" for "+Se.formatSymbol(f));return gt()?E:f.flags&512&&!(f.flags&67108864)?bP(f):O9(f)}function XM(f){if(f)switch(f.kind){case 177:return WC(f);case 178:return W3(f);case 172:return Se.assert(dN(f)),gm(f)}}function JX(f){let S=XM(f);return S&&al(S)}function Bve(f){let S=Nlt(f);return S&&S.symbol}function fAe(f){return PF(m2(f))}function jN(f){let S=Nl(f);if(!S.type){if(!Vd(f,0))return Ie;let E=Kp(f,177),P=Kp(f,178),z=ac(Kp(f,172),g1),q=E&&Ys(E)&&uf(E)||JX(E)||JX(P)||JX(z)||E&&E.body&&FWe(E)||z&&z.initializer&&xs(z,!0);q||(P&&!Wde(P)?lC(Ae,P,j.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,zl(f)):E&&!Wde(E)?lC(Ae,E,j.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,zl(f)):z&&!Wde(z)&&lC(Ae,z,j.Member_0_implicitly_has_an_1_type,zl(f),"any"),q=pt),gt()||(XM(E)?ki(E,j._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,zl(f)):XM(P)||XM(z)?ki(P,j._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,zl(f)):E&&Ae&&ki(E,j._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,zl(f)),q=pt),S.type??(S.type=q)}return S.type}function Vie(f){let S=Nl(f);if(!S.writeType){if(!Vd(f,7))return Ie;let E=Kp(f,178)??ac(Kp(f,172),g1),P=JX(E);gt()||(XM(E)&&ki(E,j._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,zl(f)),P=pt),S.writeType??(S.writeType=P||jN(f))}return S.writeType}function jve(f){let S=ha(pS(f));return S.flags&8650752?S:S.flags&2097152?jt(S.types,E=>!!(E.flags&8650752)):void 0}function bP(f){let S=Nl(f),E=S;if(!S.type){let P=f.valueDeclaration&&EWe(f.valueDeclaration,!1);if(P){let z=TWe(f,P);z&&(f=z,S=z.links)}E.type=S.type=js(f)}return S.type}function js(f){let S=f.valueDeclaration;if(f.flags&1536&&nG(f))return pt;if(S&&(S.kind===226||cf(S)&&S.parent.kind===226))return Ns(f);if(f.flags&512&&S&&ul(S)&&S.commonJsModuleIndicator){let P=R1(f);if(P!==f){if(!Vd(f,0))return Ie;let z=Vf(f.exports.get("export=")),q=Ns(z,z===P?void 0:P);return gt()?q:O9(f)}}let E=de(16,f);if(f.flags&32){let P=jve(f);return P?Qu([E,P]):E}else return xe&&f.flags&16777216?aR(E,!0):E}function DL(f){let S=Nl(f);return S.type||(S.type=qot(f))}function CD(f){let S=Nl(f);if(!S.type){if(!Vd(f,0))return Ie;let E=oy(f),P=f.declarations&&hD(Uh(f),!0),z=Je(P?.declarations,q=>Bm(q)?Vk(q):void 0);if(S.type??(S.type=P?.declarations&&hze(P.declarations)&&f.declarations.length?d2(P):hze(f.declarations)?Gt:z||(qy(E)&111551?Js(E):Ie)),!gt())return O9(P??f),S.type??(S.type=Ie)}return S.type}function Ez(f){let S=Nl(f);return S.type||(S.type=Ul(Js(S.target),S.mapper))}function UJ(f){let S=Nl(f);return S.writeType||(S.writeType=Ul(Hk(S.target),S.mapper))}function O9(f){let S=f.valueDeclaration;if(S){if(gm(S))return ki(f.valueDeclaration,j._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,zl(f)),Ie;Ae&&(S.kind!==169||S.initializer)&&ki(f.valueDeclaration,j._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,zl(f))}else if(f.flags&2097152){let E=Uh(f);E&&ki(E,j.Circular_definition_of_import_alias_0,zl(f))}return pt}function YM(f){let S=Nl(f);return S.type||(Se.assertIsDefined(S.deferralParent),Se.assertIsDefined(S.deferralConstituents),S.type=S.deferralParent.flags&1048576?Fc(S.deferralConstituents):Qu(S.deferralConstituents)),S.type}function Hie(f){let S=Nl(f);return!S.writeType&&S.deferralWriteConstituents&&(Se.assertIsDefined(S.deferralParent),Se.assertIsDefined(S.deferralConstituents),S.writeType=S.deferralParent.flags&1048576?Fc(S.deferralWriteConstituents):Qu(S.deferralWriteConstituents)),S.writeType}function Hk(f){let S=Ag(f);return f.flags&4?S&2?S&65536?Hie(f)||YM(f):f.links.writeType||f.links.type:qk(Js(f),!!(f.flags&16777216)):f.flags&98304?S&1?UJ(f):Vie(f):Js(f)}function Js(f){let S=Ag(f);return S&65536?YM(f):S&1?Ez(f):S&262144?Tue(f):S&8192?zqt(f):f.flags&7?UX(f):f.flags&9136?bP(f):f.flags&8?DL(f):f.flags&98304?jN(f):f.flags&2097152?CD(f):Ie}function i6(f){return qk(Js(f),!!(f.flags&16777216))}function qX(f,S){if(f===void 0||!(Ls(f)&4))return!1;for(let E of S)if(f.target===E)return!0;return!1}function Nx(f,S){return f!==void 0&&S!==void 0&&(Ls(f)&4)!==0&&f.target===S}function QM(f){return Ls(f)&4?f.target:f}function WN(f,S){return E(f);function E(P){if(Ls(P)&7){let z=QM(P);return z===S||En(Pp(z),E)}else if(P.flags&2097152)return En(P.types,E);return!1}}function Lo(f,S){for(let E of S)f=oo(f,F9(Bs(E)));return f}function Ua(f,S){for(;;){if(f=f.parent,f&&ms(f)){let P=wh(f);if(P===6||P===3){let z=Bs(f.left);z&&z.parent&&!go(z.parent.valueDeclaration,q=>f===q)&&(f=z.parent.valueDeclaration)}}if(!f)return;let E=f.kind;switch(E){case 263:case 231:case 264:case 179:case 180:case 173:case 184:case 185:case 317:case 262:case 174:case 218:case 219:case 265:case 345:case 346:case 340:case 338:case 200:case 194:{let z=Ua(f,S);if((E===218||E===219||zT(f))&&Lw(f)){let Fe=Ed(kd(Js(Bs(f)),0));if(Fe&&Fe.typeParameters)return[...z||F,...Fe.typeParameters]}if(E===200)return ar(z,F9(Bs(f.typeParameter)));if(E===194)return Pl(z,que(f));let q=Lo(z,h8(f)),oe=S&&(E===263||E===231||E===264||QN(f))&&pS(Bs(f)).thisType;return oe?ar(q,oe):q}case 341:let P=vG(f);P&&(f=P.valueDeclaration);break;case 320:{let z=Ua(f,S);return f.tags?Lo(z,za(f.tags,q=>tC(q)?q.typeParameters:void 0)):z}}}}function ec(f){var S;let E=f.flags&32||f.flags&16?f.valueDeclaration:(S=f.declarations)==null?void 0:S.find(P=>{if(P.kind===264)return!0;if(P.kind!==260)return!1;let z=P.initializer;return!!z&&(z.kind===218||z.kind===219)});return Se.assert(!!E,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),Ua(E)}function Wa(f){if(!f.declarations)return;let S;for(let E of f.declarations)(E.kind===264||E.kind===263||E.kind===231||QN(E)||MZ(E))&&(S=Lo(S,h8(E)));return S}function _l(f){return Pl(ec(f),Wa(f))}function Uf(f){let S=kd(f,1);if(S.length===1){let E=S[0];if(!E.typeParameters&&E.parameters.length===1&&Wu(E)){let P=Ide(E.parameters[0]);return qr(P)||ML(P)===pt}}return!1}function to(f){if(kd(f,1).length>0)return!0;if(f.flags&8650752){let S=Pb(f);return!!S&&Uf(S)}return!1}function Cs(f){let S=av(f.symbol);return S&&HE(S)}function Ta(f,S,E){let P=Z(S),z=Ys(E);return Qn(kd(f,1),q=>(z||P>=Px(q.typeParameters))&&P<=Z(q.typeParameters))}function Oc(f,S,E){let P=Ta(f,S,E),z=$i(S,al);return $s(P,q=>En(q.typeParameters)?Jve(q,z,Ys(E)):q)}function ha(f){if(!f.resolvedBaseConstructorType){let S=av(f.symbol),E=S&&HE(S),P=Cs(f);if(!P)return f.resolvedBaseConstructorType=ye;if(!Vd(f,1))return Ie;let z=fu(P.expression);if(E&&P!==E&&(Se.assert(!E.typeArguments),fu(E.expression)),z.flags&2621440&&UN(z),!gt())return ki(f.symbol.valueDeclaration,j._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,zl(f.symbol)),f.resolvedBaseConstructorType??(f.resolvedBaseConstructorType=Ie);if(!(z.flags&1)&&z!==At&&!to(z)){let q=ki(P.expression,j.Type_0_is_not_a_constructor_function_type,vs(z));if(z.flags&262144){let oe=Gie(z),Fe=Ce;if(oe){let Ye=kd(oe,1);Ye[0]&&(Fe=Op(Ye[0]))}z.symbol.declarations&&Pd(q,ws(z.symbol.declarations[0],j.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,zl(z.symbol),vs(Fe)))}return f.resolvedBaseConstructorType??(f.resolvedBaseConstructorType=Ie)}f.resolvedBaseConstructorType??(f.resolvedBaseConstructorType=z)}return f.resolvedBaseConstructorType}function hf(f){let S=F;if(f.symbol.declarations)for(let E of f.symbol.declarations){let P=F3(E);if(P)for(let z of P){let q=al(z);Qe(q)||(S===F?S=[q]:S.push(q))}}return S}function ap(f,S){ki(f,j.Type_0_recursively_references_itself_as_a_base_type,vs(S,void 0,2))}function Pp(f){if(!f.baseTypesResolved){if(Vd(f,6)&&(f.objectFlags&8?f.resolvedBaseTypes=[f2(f)]:f.symbol.flags&96?(f.symbol.flags&32&&zN(f),f.symbol.flags&64&&zp(f)):Se.fail("type must be class or interface"),!gt()&&f.symbol.declarations))for(let S of f.symbol.declarations)(S.kind===263||S.kind===264)&&ap(S,f);f.baseTypesResolved=!0}return f.resolvedBaseTypes}function f2(f){let S=$s(f.typeParameters,(E,P)=>f.elementFlags[P]&8?rk(E,Fi):E);return vS(Fc(S||F),f.readonly)}function zN(f){f.resolvedBaseTypes=vZ;let S=qS(ha(f));if(!(S.flags&2621441))return f.resolvedBaseTypes=F;let E=Cs(f),P,z=S.symbol?_m(S.symbol):void 0;if(S.symbol&&S.symbol.flags&32&&Ax(z))P=VBe(E,S.symbol);else if(S.flags&1)P=S;else{let oe=Oc(S,E.typeArguments,E);if(!oe.length)return ki(E.expression,j.No_base_constructor_has_the_specified_number_of_type_arguments),f.resolvedBaseTypes=F;P=Op(oe[0])}if(Qe(P))return f.resolvedBaseTypes=F;let q=lu(P);if(!SP(q)){let oe=hS(void 0,P),Fe=Zl(oe,j.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,vs(q));return Gu.add(WT(Vo(E.expression),E.expression,Fe)),f.resolvedBaseTypes=F}return f===q||WN(q,f)?(ki(f.symbol.valueDeclaration,j.Type_0_recursively_references_itself_as_a_base_type,vs(f,void 0,2)),f.resolvedBaseTypes=F):(f.resolvedBaseTypes===vZ&&(f.members=void 0),f.resolvedBaseTypes=[q])}function Ax(f){let S=f.outerTypeParameters;if(S){let E=S.length-1,P=nh(f);return S[E].symbol!==P[E].symbol}return!0}function SP(f){if(f.flags&262144){let S=Pb(f);if(S)return SP(S)}return!!(f.flags&67633153&&!Mv(f)||f.flags&2097152&&Yt(f.types,SP))}function zp(f){if(f.resolvedBaseTypes=f.resolvedBaseTypes||F,f.symbol.declarations){for(let S of f.symbol.declarations)if(S.kind===264&&xG(S))for(let E of xG(S)){let P=lu(al(E));Qe(P)||(SP(P)?f!==P&&!WN(P,f)?f.resolvedBaseTypes===F?f.resolvedBaseTypes=[P]:f.resolvedBaseTypes.push(P):ap(S,f):ki(E,j.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function $X(f){if(!f.declarations)return!0;for(let S of f.declarations)if(S.kind===264){if(S.flags&256)return!1;let E=xG(S);if(E){for(let P of E)if(Dp(P.expression)){let z=zf(P.expression,788968,!0);if(!z||!(z.flags&64)||pS(z).thisType)return!1}}}return!0}function pS(f){let S=Nl(f),E=S;if(!S.declaredType){let P=f.flags&32?1:2,z=TWe(f,f.valueDeclaration&&aGt(f.valueDeclaration));z&&(f=z,S=z.links);let q=E.declaredType=S.declaredType=de(P,f),oe=ec(f),Fe=Wa(f);(oe||Fe||P===1||!$X(f))&&(q.objectFlags|=4,q.typeParameters=Pl(oe,Fe),q.outerTypeParameters=oe,q.localTypeParameters=Fe,q.instantiations=new Map,q.instantiations.set(kD(q.typeParameters),q),q.target=q,q.resolvedTypeArguments=q.typeParameters,q.thisType=Gi(f),q.thisType.isThisType=!0,q.thisType.constraint=q)}return S.declaredType}function YCt(f){var S;let E=Nl(f);if(!E.declaredType){if(!Vd(f,2))return Ie;let P=Se.checkDefined((S=f.declarations)==null?void 0:S.find(MZ),"Type alias symbol with no valid declaration found"),z=ux(P)?P.typeExpression:P.type,q=z?al(z):Ie;if(gt()){let oe=Wa(f);oe&&(E.typeParameters=oe,E.instantiations=new Map,E.instantiations.set(kD(oe),q)),q===Ue&&f.escapedName==="BuiltinIteratorReturn"&&(q=mst())}else q=Ie,P.kind===340?ki(P.typeExpression.type,j.Type_alias_0_circularly_references_itself,zl(f)):ki(xf(P)&&P.name||P,j.Type_alias_0_circularly_references_itself,zl(f));E.declaredType??(E.declaredType=q)}return E.declaredType}function _Ae(f){return f.flags&1056&&f.symbol.flags&8?_m(B0(f.symbol)):f}function QCt(f){let S=Nl(f);if(!S.declaredType){let E=[];if(f.declarations){for(let z of f.declarations)if(z.kind===266){for(let q of z.members)if(Uie(q)){let oe=Bs(q),Fe=Eq(q).value,Ye=U9(Fe!==void 0?Hz(Fe,Nf(f),oe):ZCt(oe));Nl(oe).declaredType=Ye,E.push(Ig(Ye))}}}let P=E.length?Fc(E,1,f,void 0):ZCt(f);P.flags&1048576&&(P.flags|=1024,P.symbol=f),S.declaredType=P}return S.declaredType}function ZCt(f){let S=ge(32,f),E=ge(32,f);return S.regularType=S,S.freshType=E,E.regularType=S,E.freshType=E,S}function qot(f){let S=Nl(f);if(!S.declaredType){let E=QCt(B0(f));S.declaredType||(S.declaredType=E)}return S.declaredType}function F9(f){let S=Nl(f);return S.declaredType||(S.declaredType=Gi(f))}function ekt(f){let S=Nl(f);return S.declaredType||(S.declaredType=_m(oy(f)))}function _m(f){return pAe(f)||Ie}function pAe(f){if(f.flags&96)return pS(f);if(f.flags&524288)return YCt(f);if(f.flags&262144)return F9(f);if(f.flags&384)return QCt(f);if(f.flags&8)return qot(f);if(f.flags&2097152)return ekt(f)}function JJ(f){switch(f.kind){case 133:case 159:case 154:case 150:case 163:case 136:case 155:case 151:case 116:case 157:case 146:case 201:return!0;case 188:return JJ(f.elementType);case 183:return!f.typeArguments||f.typeArguments.every(JJ)}return!1}function mAe(f){let S=Ux(f);return!S||JJ(S)}function GX(f){let S=gm(f);return S?JJ(S):!yg(f)}function SJt(f){let S=WC(f),E=h8(f);return(f.kind===176||!!S&&JJ(S))&&f.parameters.every(GX)&&E.every(mAe)}function xJt(f){if(f.declarations&&f.declarations.length===1){let S=f.declarations[0];if(S)switch(S.kind){case 172:case 171:return GX(S);case 174:case 173:case 176:case 177:case 178:return SJt(S)}}return!1}function $ot(f,S,E){let P=Au();for(let z of f)P.set(z.escapedName,E&&xJt(z)?z:$9(z,S));return P}function IBe(f,S){for(let E of S){if(IF(E))continue;let P=f.get(E.escapedName);(!P||P.valueDeclaration&&ms(P.valueDeclaration)&&!ef(P)&&!hk(P.valueDeclaration))&&(f.set(E.escapedName,E),f.set(E.escapedName,E))}}function IF(f){return!!f.valueDeclaration&&qb(f.valueDeclaration)&&Xd(f.valueDeclaration)}function Wve(f){if(!f.declaredProperties){let S=f.symbol,E=ZM(S);f.declaredProperties=as(E),f.declaredCallSignatures=F,f.declaredConstructSignatures=F,f.declaredIndexInfos=F,f.declaredCallSignatures=B9(E.get("__call")),f.declaredConstructSignatures=B9(E.get("__new")),f.declaredIndexInfos=SO(S)}return f}function SC(f){if(!f_(f)&&!T_(f))return!1;let S=f_(f)?f.expression:f.argumentExpression;return Dp(S)&&px(f_(f)?YN(f):r0(S))}function wue(f){return f.charCodeAt(0)===95&&f.charCodeAt(1)===95&&f.charCodeAt(2)===64}function hAe(f){let S=Nu(f);return!!S&&SC(S)}function Uie(f){return!HA(f)||hAe(f)}function IL(f){return C5(f)&&!SC(f)}function zve(f,S,E){Se.assert(!!(Ag(f)&4096),"Expected a late-bound symbol."),f.flags|=E,Nl(S.symbol).lateSymbol=f,f.declarations?S.symbol.isReplaceableByMethod||f.declarations.push(S):f.declarations=[S],E&111551&&(!f.valueDeclaration||f.valueDeclaration.kind!==S.kind)&&(f.valueDeclaration=S)}function Got(f,S,E,P){Se.assert(!!P.symbol,"The member is expected to have a symbol.");let z=ra(P);if(!z.resolvedSymbol){z.resolvedSymbol=P.symbol;let q=ms(P)?P.left:P.name,oe=T_(q)?r0(q.argumentExpression):YN(q);if(px(oe)){let Fe=rT(oe),Ye=P.symbol.flags,it=E.get(Fe);it||E.set(Fe,it=Ou(0,Fe,4096));let tt=S&&S.get(Fe);if(!(f.flags&32)&&it.flags&ww(Ye)){let It=tt?Pl(tt.declarations,it.declarations):it.declarations,Pt=!(oe.flags&8192)&&Ba(Fe)||Gf(q);ee(It,yi=>ki(Nu(yi)||yi,j.Property_0_was_also_declared_here,Pt)),ki(q||P,j.Duplicate_property_0,Pt),it=Ou(0,Fe,4096)}return it.links.nameType=oe,zve(it,P,Ye),it.parent?Se.assert(it.parent===f,"Existing symbol parent should match new one"):it.parent=f,z.resolvedSymbol=it}}return z.resolvedSymbol}function Kot(f,S){let E=Nl(f);if(!E[S]){let P=S==="resolvedExports",z=P?f.flags&1536?yO(f).exports:f.exports:f.members;E[S]=z||K;let q=Au();for(let Ye of f.declarations||F){let it=$6(Ye);if(it)for(let tt of it)P===G0(tt)&&hAe(tt)&&Got(f,z,q,tt)}let oe=hC(f).assignmentDeclarationMembers;if(oe){let Ye=tc(oe.values());for(let it of Ye){let tt=wh(it),It=tt===3||ms(it)&&vde(it,tt)||tt===9||tt===6;P===!It&&hAe(it)&&Got(f,z,q,it)}}let Fe=dD(z,q);if(f.flags&33554432&&E.cjsExportMerged&&f.declarations)for(let Ye of f.declarations){let it=Nl(Ye.symbol)[S];if(!Fe){Fe=it;continue}it&&it.forEach((tt,It)=>{let Pt=Fe.get(It);if(!Pt)Fe.set(It,tt);else{if(Pt===tt)return;Fe.set(It,yh(Pt,tt))}})}E[S]=Fe||K}return E[S]}function ZM(f){return f.flags&6256?Kot(f,"resolvedMembers"):f.members||K}function gAe(f){if(f.flags&106500&&f.escapedName==="__computed"){let S=Nl(f);if(!S.lateSymbol&&En(f.declarations,hAe)){let E=Vf(f.parent);En(f.declarations,G0)?Fv(E):ZM(E)}return S.lateSymbol||(S.lateSymbol=f)}return f}function Aw(f,S,E){if(Ls(f)&4){let P=f.target,z=nh(f);return Z(P.typeParameters)===Z(z)?wP(P,Pl(z,[S||P.thisType])):f}else if(f.flags&2097152){let P=$s(f.types,z=>Aw(z,S,E));return P!==f.types?Qu(P):f}return E?qS(f):f}function yAe(f,S,E,P){let z,q,oe,Fe,Ye;lm(E,P,0,E.length)?(q=S.symbol?ZM(S.symbol):Au(S.declaredProperties),oe=S.declaredCallSignatures,Fe=S.declaredConstructSignatures,Ye=S.declaredIndexInfos):(z=wC(E,P),q=$ot(S.declaredProperties,z,E.length===1),oe=pje(S.declaredCallSignatures,z),Fe=pje(S.declaredConstructSignatures,z),Ye=ZJ(S.declaredIndexInfos,z));let it=Pp(S);if(it.length){if(S.symbol&&q===ZM(S.symbol)){let It=Au(S.declaredProperties),Pt=Oz(S.symbol);Pt&&It.set("__index",Pt),q=It}Sl(f,q,oe,Fe,Ye);let tt=Y_(P);for(let It of it){let Pt=tt?Aw(Ul(It,z),tt):It;IBe(q,Lp(Pt)),oe=Pl(oe,kd(Pt,0)),Fe=Pl(Fe,kd(Pt,1));let yi=Pt!==pt?o1(Pt):[CT(Ot,pt,!1)];Ye=Pl(Ye,Qn(yi,Hi=>!MBe(Ye,Hi.keyType)))}}Sl(f,q,oe,Fe,Ye)}function CJt(f){yAe(f,Wve(f),F,F)}function Xot(f){let S=Wve(f.target),E=Pl(S.typeParameters,[S.thisType]),P=nh(f),z=P.length===E.length?P:Pl(P,[f]);yAe(f,S,E,z)}function n6(f,S,E,P,z,q,oe,Fe){let Ye=new x(zr,Fe);return Ye.declaration=f,Ye.typeParameters=S,Ye.parameters=P,Ye.thisParameter=E,Ye.resolvedReturnType=z,Ye.resolvedTypePredicate=q,Ye.minArgumentCount=oe,Ye.resolvedMinArgumentCount=void 0,Ye.target=void 0,Ye.mapper=void 0,Ye.compositeSignatures=void 0,Ye.compositeKind=void 0,Ye}function Vve(f){let S=n6(f.declaration,f.typeParameters,f.thisParameter,f.parameters,void 0,void 0,f.minArgumentCount,f.flags&167);return S.target=f.target,S.mapper=f.mapper,S.compositeSignatures=f.compositeSignatures,S.compositeKind=f.compositeKind,S}function tkt(f,S){let E=Vve(f);return E.compositeSignatures=S,E.compositeKind=1048576,E.target=void 0,E.mapper=void 0,E}function kJt(f,S){if((f.flags&24)===S)return f;f.optionalCallSignatureCache||(f.optionalCallSignatureCache={});let E=S===8?"inner":"outer";return f.optionalCallSignatureCache[E]||(f.optionalCallSignatureCache[E]=ikt(f,S))}function ikt(f,S){Se.assert(S===8||S===16,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");let E=Vve(f);return E.flags|=S,E}function nkt(f,S){if(Wu(f)){let z=f.parameters.length-1,q=f.parameters[z],oe=Js(q);if(a_(oe))return[E(oe,z,q)];if(!S&&oe.flags&1048576&&Yt(oe.types,a_))return $i(oe.types,Fe=>E(Fe,z,q))}return[f.parameters];function E(z,q,oe){let Fe=nh(z),Ye=P(z,oe),it=$i(Fe,(tt,It)=>{let Pt=Ye&&Ye[It]?Ye[It]:Nde(f,q+It,z),yi=z.target.elementFlags[It],Hi=yi&12?32768:yi&2?16384:0,vn=Ou(1,Pt,Hi);return vn.links.type=yi&4?vS(tt):tt,vn});return Pl(f.parameters.slice(0,q),it)}function P(z,q){let oe=$i(z.target.labeledElementDeclarations,(Fe,Ye)=>Ict(Fe,Ye,z.target.elementFlags[Ye],q));if(oe){let Fe=[],Ye=new Set;for(let tt=0;tt=It&&Ye<=Pt){let yi=Pt?qve(tt,s1(Fe,tt.typeParameters,It,oe)):Vve(tt);yi.typeParameters=f.localTypeParameters,yi.resolvedReturnType=f,yi.flags=z?yi.flags|4:yi.flags&-5,it.push(yi)}}return it}function bAe(f,S,E,P,z){for(let q of f)if(nne(q,S,E,P,z,E?Cqt:Gue))return q}function wJt(f,S,E){if(S.typeParameters){if(E>0)return;for(let z=1;z1&&(E=E===void 0?P:-1);for(let z of f[P])if(!S||!bAe(S,z,!1,!1,!0)){let q=wJt(f,z,P);if(q){let oe=z;if(q.length>1){let Fe=z.thisParameter,Ye=ee(q,it=>it.thisParameter);if(Ye){let it=Qu(Dc(q,tt=>tt.thisParameter&&Js(tt.thisParameter)));Fe=oq(Ye,it)}oe=tkt(z,q),oe.thisParameter=Fe}(S||(S=[])).push(oe)}}}if(!Z(S)&&E!==-1){let P=f[E!==void 0?E:0],z=P.slice();for(let q of f)if(q!==P){let oe=q[0];if(Se.assert(!!oe,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),z=oe.typeParameters&&En(z,Fe=>!!Fe.typeParameters&&!Qot(oe.typeParameters,Fe.typeParameters))?void 0:$i(z,Fe=>EJt(Fe,oe)),!z)break}S=z}return S||F}function Qot(f,S){if(Z(f)!==Z(S))return!1;if(!f||!S)return!0;let E=wC(S,f);for(let P=0;P=z?f:S,oe=q===f?S:f,Fe=q===f?P:z,Ye=g6(f)||g6(S),it=Ye&&!g6(q),tt=new Array(Fe+(it?1:0));for(let It=0;It=tA(q)&&It>=tA(oe),Qr=It>=P?void 0:Nde(f,It),ao=It>=z?void 0:Nde(S,It),Ko=Qr===ao?Qr:Qr?ao?void 0:Qr:ao,Zr=Ou(1|(br&&!vn?16777216:0),Ko||`arg${It}`,vn?32768:br?16384:0);Zr.links.type=vn?vS(Hi):Hi,tt[It]=Zr}if(it){let It=Ou(1,"args",32768);It.links.type=vS(eA(oe,Fe)),oe===S&&(It.links.type=Ul(It.links.type,E)),tt[Fe]=It}return tt}function EJt(f,S){let E=f.typeParameters||S.typeParameters,P;f.typeParameters&&S.typeParameters&&(P=wC(S.typeParameters,f.typeParameters));let z=f.declaration,q=TJt(f,S,P),oe=rkt(f.thisParameter,S.thisParameter,P),Fe=Math.max(f.minArgumentCount,S.minArgumentCount),Ye=n6(z,E,oe,q,void 0,void 0,Fe,(f.flags|S.flags)&167);return Ye.compositeKind=1048576,Ye.compositeSignatures=Pl(f.compositeKind!==2097152&&f.compositeSignatures||[f],[S]),P?Ye.mapper=f.compositeKind!==2097152&&f.mapper&&f.compositeSignatures?J9(f.mapper,P):P:f.compositeKind!==2097152&&f.mapper&&f.compositeSignatures&&(Ye.mapper=f.mapper),Ye}function okt(f){let S=o1(f[0]);if(S){let E=[];for(let P of S){let z=P.keyType;Yt(f,q=>!!AL(q,z))&&E.push(CT(z,Fc($i(f,q=>o6(q,z))),En(f,q=>AL(q,z).isReadonly)))}return E}return F}function DJt(f){let S=Yot($i(f.types,z=>z===wo?[nn]:kd(z,0))),E=Yot($i(f.types,z=>kd(z,1))),P=okt(f.types);Sl(f,K,S,E,P)}function KX(f,S){return f?S?Qu([f,S]):f:S}function NBe(f){let S=Tn(f,P=>kd(P,1).length>0),E=$i(f,Uf);if(S>0&&S===Tn(E,P=>P)){let P=E.indexOf(!0);E[P]=!1}return E}function Zot(f,S,E,P){let z=[];for(let q=0;qFe);for(let Fe=0;Fe0&&(it=$i(it,tt=>{let It=Vve(tt);return It.resolvedReturnType=Zot(Op(tt),z,q,Fe),It})),E=skt(E,it)}S=skt(S,kd(Ye,0)),P=$m(o1(Ye),(it,tt)=>CI(it,tt,!1),P)}Sl(f,K,S||F,E||F,P||F)}function skt(f,S){for(let E of S)(!f||Yt(f,P=>!nne(P,E,!1,!1,!1,Gue)))&&(f=ar(f,E));return f}function CI(f,S,E){if(f)for(let P=0;P{var Ye;!(Fe.flags&418)&&!(Fe.flags&512&&((Ye=Fe.declarations)!=null&&Ye.length)&&Yt(Fe.declarations,nb))&&oe.set(Fe.escapedName,Fe)}),E=oe}let z;if(Sl(f,E,F,F,F),S.flags&32){let oe=pS(S),Fe=ha(oe);Fe.flags&11272192?(E=Au(Qc(E)),IBe(E,Lp(Fe))):Fe===pt&&(z=CT(Ot,pt,!1))}let q=$ie(E);if(q?P=zBe(q):(z&&(P=ar(P,z)),S.flags&384&&(_m(S).flags&32||En(f.properties,oe=>!!(Js(oe).flags&296)))&&(P=ar(P,Er))),Sl(f,E,F,F,P||F),S.flags&8208&&(f.callSignatures=B9(S)),S.flags&32){let oe=pS(S),Fe=S.members?B9(S.members.get("__constructor")):F;S.flags&16&&(Fe=Ho(Fe.slice(),Dc(f.callSignatures,Ye=>QN(Ye.declaration)?n6(Ye.declaration,Ye.typeParameters,Ye.thisParameter,Ye.parameters,oe,void 0,Ye.minArgumentCount,Ye.flags&167):void 0))),Fe.length||(Fe=vAe(oe)),f.constructSignatures=Fe}}function NF(f,S,E){return Ul(f,wC([S.indexType,S.objectType],[fg(0),l6([E])]))}function vO(f){let S=Ph(f.mappedType);if(!(S.flags&1048576||S.flags&2097152))return;let E=S.flags&1048576?S.origin:S;if(!E||!(E.flags&2097152))return;let P=Qu(E.types.filter(z=>z!==f.constraintType));return P!==Wi?P:void 0}function akt(f){let S=AL(f.source,Ot),E=gf(f.mappedType),P=!(E&1),z=E&4?0:16777216,q=S?[CT(Ot,Rje(S.type,f.mappedType,f.constraintType)||Ce,P&&S.isReadonly)]:F,oe=Au(),Fe=vO(f);for(let Ye of Lp(f.source)){if(Fe){let It=rY(Ye,8576);if(!wf(It,Fe))continue}let it=8192|(P&&DD(Ye)?8:0),tt=Ou(4|Ye.flags&z,Ye.escapedName,it);if(tt.declarations=Ye.declarations,tt.links.nameType=Nl(Ye).nameType,tt.links.propertyType=Js(Ye),f.constraintType.type.flags&8388608&&f.constraintType.type.objectType.flags&262144&&f.constraintType.type.indexType.flags&262144){let It=f.constraintType.type.objectType,Pt=NF(f.mappedType,f.constraintType.type,It);tt.links.mappedType=Pt,tt.links.constraintType=JN(It)}else tt.links.mappedType=f.mappedType,tt.links.constraintType=f.constraintType;oe.set(Ye.escapedName,tt)}Sl(f,oe,F,F,q)}function M9(f){if(f.flags&4194304){let S=qS(f.type);return jL(S)?kst(S):JN(S)}if(f.flags&16777216){if(f.root.isDistributive){let S=f.checkType,E=M9(S);if(E!==S)return IO(f,q9(f.root.checkType,E,f.mapper),!1)}return f}if(f.flags&1048576)return oh(f,M9,!0);if(f.flags&2097152){let S=f.types;return S.length===2&&S[0].flags&76&&S[1]===Aa?f:Qu($s(f.types,M9))}return f}function eR(f){return Ag(f)&4096}function VN(f,S,E,P){for(let z of Lp(f))P(rY(z,S));if(f.flags&1)P(Ot);else for(let z of o1(f))(!E||z.keyType.flags&134217732)&&P(z.keyType)}function ckt(f){let S=Au(),E;Sl(f,K,F,F,F);let P=HN(f),z=Ph(f),q=f.target||f,oe=r6(q),Fe=Nb(q)!==2,Ye=j1(q),it=qS(bO(f)),tt=gf(f);xP(f)?VN(it,8576,!1,Pt):uq(M9(z),Pt),Sl(f,S,F,F,E||F);function Pt(Hi){let vn=oe?Ul(oe,Vl(f.mapper,P,Hi)):Hi;uq(vn,br=>yi(Hi,br))}function yi(Hi,vn){if(px(vn)){let br=rT(vn),Qr=S.get(br);if(Qr)Qr.links.nameType=Fc([Qr.links.nameType,vn]),Qr.links.keyType=Fc([Qr.links.keyType,Hi]);else{let ao=px(Hi)?Ku(it,rT(Hi)):void 0,Ko=!!(tt&4||!(tt&8)&&ao&&ao.flags&16777216),Zr=!!(tt&1||!(tt&2)&&ao&&DD(ao)),jr=xe&&!Ko&&ao&&ao.flags&16777216,Ss=ao?eR(ao):0,Ds=Ou(4|(Ko?16777216:0),br,Ss|262144|(Zr?8:0)|(jr?524288:0));Ds.links.mappedType=f,Ds.links.nameType=vn,Ds.links.keyType=Hi,ao&&(Ds.links.syntheticOrigin=ao,Ds.declarations=Fe?ao.declarations:void 0),S.set(br,Ds)}}else if($ve(vn)||vn.flags&33){let br=vn.flags&5?Ot:vn.flags&40?Fi:vn,Qr=Ul(Ye,Vl(f.mapper,P,Hi)),ao=kP(it,vn),Ko=!!(tt&1||!(tt&2)&&ao?.isReadonly),Zr=CT(br,Qr,Ko);E=CI(E,Zr,!0)}}}function Tue(f){var S;if(!f.links.type){let E=f.links.mappedType;if(!Vd(f,0))return E.containsError=!0,Ie;let P=j1(E.target||E),z=Vl(E.mapper,HN(E),f.links.keyType),q=Ul(P,z),oe=xe&&f.flags&16777216&&!n0(q,49152)?aR(q,!0):f.links.checkFlags&524288?g1e(q):q;gt()||(ki(H,j.Type_of_property_0_circularly_references_itself_in_mapped_type_1,zl(f),vs(E)),oe=Ie),(S=f.links).type??(S.type=oe)}return f.links.type}function HN(f){return f.typeParameter||(f.typeParameter=F9(Bs(f.declaration.typeParameter)))}function Ph(f){return f.constraintType||(f.constraintType=xC(HN(f))||Ie)}function r6(f){return f.declaration.nameType?f.nameType||(f.nameType=Ul(al(f.declaration.nameType),f.mapper)):void 0}function j1(f){return f.templateType||(f.templateType=f.declaration.type?Ul(Eg(al(f.declaration.type),!0,!!(gf(f)&4)),f.mapper):Ie)}function AF(f){return Ux(f.declaration.typeParameter)}function xP(f){let S=AF(f);return S.kind===198&&S.operator===143}function bO(f){if(!f.modifiersType)if(xP(f))f.modifiersType=Ul(al(AF(f).type),f.mapper);else{let S=QJ(f.declaration),E=Ph(S),P=E&&E.flags&262144?xC(E):E;f.modifiersType=P&&P.flags&4194304?Ul(P.type,f.mapper):Ce}return f.modifiersType}function gf(f){let S=f.declaration;return(S.readonlyToken?S.readonlyToken.kind===41?2:1:0)|(S.questionToken?S.questionToken.kind===41?8:4:0)}function lkt(f){let S=gf(f);return S&8?-1:S&4?1:0}function Eue(f){if(Ls(f)&32)return lkt(f)||Eue(bO(f));if(f.flags&2097152){let S=Eue(f.types[0]);return Yt(f.types,(E,P)=>P===0||Eue(E)===S)?S:0}return 0}function NJt(f){return!!(Ls(f)&32&&gf(f)&4)}function Mv(f){if(Ls(f)&32){let S=Ph(f);if(zz(S))return!0;let E=r6(f);if(E&&zz(Ul(E,Uz(HN(f),S))))return!0}return!1}function Nb(f){let S=r6(f);return S?wf(S,HN(f))?1:2:0}function UN(f){return f.members||(f.flags&524288?f.objectFlags&4?Xot(f):f.objectFlags&3?CJt(f):f.objectFlags&1024?akt(f):f.objectFlags&16?_2(f):f.objectFlags&32?ckt(f):Se.fail("Unhandled object type "+Se.formatObjectFlags(f.objectFlags)):f.flags&1048576?DJt(f):f.flags&2097152?IJt(f):Se.fail("Unhandled type "+Se.formatTypeFlags(f.flags))),f}function p2(f){return f.flags&524288?UN(f).properties:F}function Dz(f,S){if(f.flags&524288){let P=UN(f).members.get(S);if(P&&r1(P))return P}}function Due(f){if(!f.resolvedProperties){let S=Au();for(let E of f.types){for(let P of Lp(E))if(!S.has(P.escapedName)){let z=YX(f,P.escapedName,!!(f.flags&2097152));z&&S.set(P.escapedName,z)}if(f.flags&1048576&&o1(E).length===0)break}f.resolvedProperties=as(S)}return f.resolvedProperties}function Lp(f){return f=XX(f),f.flags&3145728?Due(f):p2(f)}function est(f,S){f=XX(f),f.flags&3670016&&UN(f).members.forEach((E,P)=>{Hc(E,P)&&S(E,P)})}function ukt(f,S){return S.properties.some(P=>{let z=P.name&&(vx(P.name)?kC(Yj(P.name)):wO(P.name)),q=z&&px(z)?rT(z):void 0,oe=q===void 0?void 0:Ln(f,q);return!!oe&&ide(oe)&&!wf(kq(P),oe)})}function dkt(f){let S=Fc(f);if(!(S.flags&1048576))return Cze(S);let E=Au();for(let P of f)for(let{escapedName:z}of Cze(P))if(!E.has(z)){let q=mkt(S,z);q&&E.set(z,q)}return tc(E.values())}function Iz(f){return f.flags&262144?xC(f):f.flags&8388608?SAe(f):f.flags&16777216?tst(f):Pb(f)}function xC(f){return Iue(f)?Gie(f):void 0}function Ab(f,S){let E=i1e(f);return!!E&&Uk(E,S)}function Uk(f,S=0){var E;return S<5&&!!(f&&(f.flags&262144&&En((E=f.symbol)==null?void 0:E.declarations,P=>kc(P,4096))||f.flags&3145728&&En(f.types,P=>Uk(P,S))||f.flags&8388608&&Uk(f.objectType,S+1)||f.flags&16777216&&Uk(tst(f),S+1)||f.flags&33554432&&Uk(f.baseType,S)||Ls(f)&32&&Ab(f,S)||jL(f)&&_n(Bz(f),(P,z)=>!!(f.target.elementFlags[z]&8)&&Uk(P,S))>=0))}function SAe(f){return Iue(f)?AJt(f):void 0}function xAe(f){let S=Jk(f,!1);return S!==f?S:Iz(f)}function AJt(f){if(PBe(f))return cje(f.objectType,f.indexType);let S=xAe(f.indexType);if(S&&S!==f.indexType){let P=FF(f.objectType,S,f.accessFlags);if(P)return P}let E=xAe(f.objectType);if(E&&E!==f.objectType)return FF(E,f.indexType,f.accessFlags)}function CAe(f){if(!f.resolvedDefaultConstraint){let S=gqt(f),E=MF(f);f.resolvedDefaultConstraint=qr(S)?E:qr(E)?S:Fc([S,E])}return f.resolvedDefaultConstraint}function Nz(f){if(f.resolvedConstraintOfDistributive!==void 0)return f.resolvedConstraintOfDistributive||void 0;if(f.root.isDistributive&&f.restrictiveInstantiation!==f){let S=Jk(f.checkType,!1),E=S===f.checkType?Iz(S):S;if(E&&E!==f.checkType){let P=IO(f,q9(f.root.checkType,E,f.mapper),!0);if(!(P.flags&131072))return f.resolvedConstraintOfDistributive=P,P}}f.resolvedConstraintOfDistributive=!1}function fkt(f){return Nz(f)||CAe(f)}function tst(f){return Iue(f)?fkt(f):void 0}function _kt(f,S){let E,P=!1;for(let z of f)if(z.flags&465829888){let q=Iz(z);for(;q&&q.flags&21233664;)q=Iz(q);q&&(E=ar(E,q),S&&(E=ar(E,z)))}else(z.flags&469892092||_6(z))&&(P=!0);if(E&&(S||P)){if(P)for(let z of f)(z.flags&469892092||_6(z))&&(E=ar(E,z));return ine(Qu(E,2),!1)}}function Pb(f){if(f.flags&464781312||jL(f)){let S=mS(f);return S!==Ar&&S!==Hl?S:void 0}return f.flags&4194304?ir:void 0}function CP(f){return Pb(f)||f}function Iue(f){return mS(f)!==Hl}function mS(f){if(f.resolvedBaseConstraint)return f.resolvedBaseConstraint;let S=[];return f.resolvedBaseConstraint=E(f);function E(q){if(!q.immediateBaseConstraint){if(!Vd(q,4))return Hl;let oe,Fe=f1e(q);if((S.length<10||S.length<50&&!dr(S,Fe))&&(S.push(Fe),oe=z(Jk(q,!1)),S.pop()),!gt()){if(q.flags&262144){let Ye=xm(q);if(Ye){let it=ki(Ye,j.Type_parameter_0_has_a_circular_constraint,vs(q));H&&!G7(Ye,H)&&!G7(H,Ye)&&Pd(it,ws(H,j.Circularity_originates_in_type_at_this_location))}}oe=Hl}q.immediateBaseConstraint??(q.immediateBaseConstraint=oe||Ar)}return q.immediateBaseConstraint}function P(q){let oe=E(q);return oe!==Ar&&oe!==Hl?oe:void 0}function z(q){if(q.flags&262144){let oe=Gie(q);return q.isThisType||!oe?oe:P(oe)}if(q.flags&3145728){let oe=q.types,Fe=[],Ye=!1;for(let it of oe){let tt=P(it);tt?(tt!==it&&(Ye=!0),Fe.push(tt)):Ye=!0}return Ye?q.flags&1048576&&Fe.length===oe.length?Fc(Fe):q.flags&2097152&&Fe.length?Qu(Fe):void 0:q}if(q.flags&4194304)return ir;if(q.flags&134217728){let oe=q.types,Fe=Dc(oe,P);return Fe.length===oe.length?TP(q.texts,Fe):Ot}if(q.flags&268435456){let oe=P(q.type);return oe&&oe!==q.type?OF(q.symbol,oe):Ot}if(q.flags&8388608){if(PBe(q))return P(cje(q.objectType,q.indexType));let oe=P(q.objectType),Fe=P(q.indexType),Ye=oe&&Fe&&FF(oe,Fe,q.accessFlags);return Ye&&P(Ye)}if(q.flags&16777216){let oe=fkt(q);return oe&&P(oe)}if(q.flags&33554432)return P(UBe(q));if(jL(q)){let oe=$i(Bz(q),(Fe,Ye)=>{let it=Fe.flags&262144&&q.target.elementFlags[Ye]&8&&P(Fe)||Fe;return it!==Fe&&KS(it,tt=>Y9(tt)&&!jL(tt))?it:Fe});return l6(oe,q.target.elementFlags,q.target.readonly,q.target.labeledElementDeclarations)}return q}}function Nue(f,S){if(f===S)return f.resolvedApparentType||(f.resolvedApparentType=Aw(f,S,!0));let E=`I${Rv(f)},${Rv(S)}`;return Oi(E)??L1(E,Aw(f,S,!0))}function ABe(f){if(f.default)f.default===Lf&&(f.default=Hl);else if(f.target){let S=ABe(f.target);f.default=S?Ul(S,f.mapper):Ar}else{f.default=Lf;let S=f.symbol&&ee(f.symbol.declarations,P=>Yp(P)&&P.default),E=S?al(S):Ar;f.default===Lf&&(f.default=E)}return f.default}function R9(f){let S=ABe(f);return S!==Ar&&S!==Hl?S:void 0}function PJt(f){return ABe(f)!==Hl}function Hve(f){return!!(f.symbol&&ee(f.symbol.declarations,S=>Yp(S)&&S.default))}function kI(f){return f.resolvedApparentType||(f.resolvedApparentType=LJt(f))}function LJt(f){let S=f.target??f,E=i1e(S);if(E&&!S.declaration.nameType){let P=bO(f),z=Mv(P)?kI(P):Pb(P);if(z&&KS(z,q=>Y9(q)||pkt(q)))return Ul(S,q9(E,z,f.mapper))}return f}function pkt(f){return!!(f.flags&2097152)&&Yt(f.types,Y9)}function PBe(f){let S;return!!(f.flags&8388608&&Ls(S=f.objectType)&32&&!Mv(S)&&zz(f.indexType)&&!(gf(S)&8)&&!S.declaration.nameType)}function qS(f){let S=f.flags&465829888?Pb(f)||Ce:f,E=Ls(S);return E&32?kI(S):E&4&&S!==f?Aw(S,f):S.flags&2097152?Nue(S,f):S.flags&402653316?Lc:S.flags&296?tl:S.flags&2112?XJt():S.flags&528?il:S.flags&12288?Dkt():S.flags&67108864?ja:S.flags&4194304?ir:S.flags&2&&!xe?ja:S}function XX(f){return lu(qS(lu(f)))}function mkt(f,S,E){var P,z,q;let oe,Fe,Ye,it=f.flags&1048576,tt,It=4,Pt=it?0:8,yi=!1;for(let Ds of f.types){let Sa=qS(Ds);if(!(Qe(Sa)||Sa.flags&131072)){let Oa=Ku(Sa,S,E),wd=Oa?nT(Oa):0;if(Oa){if(Oa.flags&106500&&(tt??(tt=it?0:16777216),it?tt|=Oa.flags&16777216:tt&=Oa.flags),!oe)oe=Oa;else if(Oa!==oe)if((Cne(Oa)||Oa)===(Cne(oe)||oe)&&_1e(oe,Oa,(sm,ol)=>sm===ol?-1:0)===-1)yi=!!oe.parent&&!!Z(Wa(oe.parent));else{Fe||(Fe=new Map,Fe.set(Nf(oe),oe));let sm=Nf(Oa);Fe.has(sm)||Fe.set(sm,Oa)}it&&DD(Oa)?Pt|=8:!it&&!DD(Oa)&&(Pt&=-9),Pt|=(wd&6?0:256)|(wd&4?512:0)|(wd&2?1024:0)|(wd&256?2048:0),DPe(Oa)||(It=2)}else if(it){let Td=!wue(S)&&gS(Sa,S);Td?(Pt|=32|(Td.isReadonly?8:0),Ye=ar(Ye,a_(Sa)?AP(Sa)||ye:Td.type)):OO(Sa)&&!(Ls(Sa)&2097152)?(Pt|=32,Ye=ar(Ye,ye)):Pt|=16}}}if(!oe||it&&(Fe||Pt&48)&&Pt&1536&&!(Fe&&Ff(Fe.values())))return;if(!Fe&&!(Pt&16)&&!Ye)if(yi){let Ds=(P=ac(oe,m4))==null?void 0:P.links,Sa=oq(oe,Ds?.type);return Sa.parent=(q=(z=oe.valueDeclaration)==null?void 0:z.symbol)==null?void 0:q.parent,Sa.links.containingType=f,Sa.links.mapper=Ds?.mapper,Sa.links.writeType=Hk(oe),Sa}else return oe;let Hi=Fe?tc(Fe.values()):[oe],vn,br,Qr,ao=[],Ko,Zr,jr=!1;for(let Ds of Hi){Zr?Ds.valueDeclaration&&Ds.valueDeclaration!==Zr&&(jr=!0):Zr=Ds.valueDeclaration,vn=Ho(vn,Ds.declarations);let Sa=Js(Ds);br||(br=Sa,Qr=Nl(Ds).nameType);let Oa=Hk(Ds);(Ko||Oa!==Sa)&&(Ko=ar(Ko||ao.slice(),Oa)),Sa!==br&&(Pt|=64),(ide(Sa)||jz(Sa))&&(Pt|=128),Sa.flags&131072&&Sa!==Pf&&(Pt|=131072),ao.push(Sa)}Ho(ao,Ye);let Ss=Ou(4|(tt??0),S,It|Pt);return Ss.links.containingType=f,!jr&&Zr&&(Ss.valueDeclaration=Zr,Zr.symbol.parent&&(Ss.parent=Zr.symbol.parent)),Ss.declarations=vn,Ss.links.nameType=Qr,ao.length>2?(Ss.links.checkFlags|=65536,Ss.links.deferralParent=f,Ss.links.deferralConstituents=ao,Ss.links.deferralWriteConstituents=Ko):(Ss.links.type=it?Fc(ao):Qu(ao),Ko&&(Ss.links.writeType=it?Fc(Ko):Qu(Ko))),Ss}function LBe(f,S,E){var P,z,q;let oe=E?(P=f.propertyCacheWithoutObjectFunctionPropertyAugment)==null?void 0:P.get(S):(z=f.propertyCache)==null?void 0:z.get(S);return oe||(oe=mkt(f,S,E),oe&&((E?f.propertyCacheWithoutObjectFunctionPropertyAugment||(f.propertyCacheWithoutObjectFunctionPropertyAugment=Au()):f.propertyCache||(f.propertyCache=Au())).set(S,oe),E&&!(Ag(oe)&48)&&!((q=f.propertyCache)!=null&&q.get(S))&&(f.propertyCache||(f.propertyCache=Au())).set(S,oe))),oe}function Ff(f){let S;for(let E of f){if(!E.declarations)return;if(!S){S=new Set(E.declarations);continue}if(S.forEach(P=>{dr(E.declarations,P)||S.delete(P)}),S.size===0)return}return S}function YX(f,S,E){let P=LBe(f,S,E);return P&&!(Ag(P)&16)?P:void 0}function lu(f){return f.flags&1048576&&f.objectFlags&16777216?f.resolvedReducedType||(f.resolvedReducedType=OJt(f)):f.flags&2097152?(f.objectFlags&16777216||(f.objectFlags|=16777216|(En(Due(f),hkt)?33554432:0)),f.objectFlags&33554432?Wi:f):f}function OJt(f){let S=$s(f.types,lu);if(S===f.types)return f;let E=Fc(S);return E.flags&1048576&&(E.resolvedReducedType=E),E}function hkt(f){return OBe(f)||FBe(f)}function OBe(f){return!(f.flags&16777216)&&(Ag(f)&131264)===192&&!!(Js(f).flags&131072)}function FBe(f){return!f.valueDeclaration&&!!(Ag(f)&1024)}function Az(f){return!!(f.flags&1048576&&f.objectFlags&16777216&&En(f.types,Az)||f.flags&2097152&&ist(f))}function ist(f){let S=f.uniqueLiteralFilledInstantiation||(f.uniqueLiteralFilledInstantiation=Ul(f,$l));return lu(S)!==S}function hS(f,S){if(S.flags&2097152&&Ls(S)&33554432){let E=jt(Due(S),OBe);if(E)return Zl(f,j.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,vs(S,void 0,536870912),zl(E));let P=jt(Due(S),FBe);if(P)return Zl(f,j.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,vs(S,void 0,536870912),zl(P))}return f}function Ku(f,S,E,P){var z,q;if(f=XX(f),f.flags&524288){let oe=UN(f),Fe=oe.members.get(S);if(Fe&&!P&&((z=f.symbol)==null?void 0:z.flags)&512&&((q=Nl(f.symbol).typeOnlyExportStarMap)!=null&&q.has(S)))return;if(Fe&&r1(Fe,P))return Fe;if(E)return;let Ye=oe===xu?wo:oe.callSignatures.length?cl:oe.constructSignatures.length?ri:void 0;if(Ye){let it=Dz(Ye,S);if(it)return it}return Dz(er,S)}if(f.flags&2097152){let oe=YX(f,S,!0);return oe||(E?void 0:YX(f,S,E))}if(f.flags&1048576)return YX(f,S,E)}function NL(f,S){if(f.flags&3670016){let E=UN(f);return S===0?E.callSignatures:E.constructSignatures}return F}function kd(f,S){let E=NL(XX(f),S);if(S===0&&!Z(E)&&f.flags&1048576){if(f.arrayFallbackSignatures)return f.arrayFallbackSignatures;let P;if(KS(f,z=>{var q;return!!((q=z.symbol)!=null&&q.parent)&&Uve(z.symbol.parent)&&(P?P===z.symbol.escapedName:(P=z.symbol.escapedName,!0))})){let z=oh(f,oe=>BF((qJ(oe.symbol.parent)?xo:$n).typeParameters[0],oe.mapper)),q=vS(z,uE(f,oe=>qJ(oe.symbol.parent)));return f.arrayFallbackSignatures=kd(Ln(q,P),S)}f.arrayFallbackSignatures=E}return E}function Uve(f){return!f||!$n.symbol||!xo.symbol?!1:!!n1(f,$n.symbol)||!!n1(f,xo.symbol)}function qJ(f){return!f||!xo.symbol?!1:!!n1(f,xo.symbol)}function MBe(f,S){return jt(f,E=>E.keyType===S)}function kAe(f,S){let E,P,z;for(let q of f)q.keyType===Ot?E=q:Pz(S,q.keyType)&&(P?(z||(z=[P])).push(q):P=q);return z?CT(Ce,Qu($i(z,q=>q.type)),$m(z,(q,oe)=>q&&oe.isReadonly,!0)):P||(E&&Pz(S,Ot)?E:void 0)}function Pz(f,S){return wf(f,S)||S===Ot&&wf(f,Fi)||S===Fi&&(f===Nc||!!(f.flags&128)&&nL(f.value))}function wAe(f){return f.flags&3670016?UN(f).indexInfos:F}function o1(f){return wAe(XX(f))}function AL(f,S){return MBe(o1(f),S)}function o6(f,S){var E;return(E=AL(f,S))==null?void 0:E.type}function wI(f,S){return o1(f).filter(E=>Pz(S,E.keyType))}function kP(f,S){return kAe(o1(f),S)}function gS(f,S){return kP(f,wue(S)?cn:kC(Ba(S)))}function gkt(f){var S;let E;for(let P of h8(f))E=oo(E,F9(P.symbol));return E?.length?E:fp(f)?(S=K_(f))==null?void 0:S.typeParameters:void 0}function QX(f){let S=[];return f.forEach((E,P)=>{rr(P)||S.push(E)}),S}function ykt(f,S){if(l0(f))return;let E=Wp(ft,'"'+f+'"',512);return E&&S?Vf(E):E}function nst(f){return x4(f)||M5(f)||Fl(f)&&X3(f)}function Aue(f){if(nst(f))return!0;if(!Fl(f))return!1;if(f.initializer){let E=m2(f.parent),P=f.parent.parameters.indexOf(f);return Se.assert(P>=0),P>=tA(E,3)}let S=w3(f.parent);return S?!f.type&&!f.dotDotDotToken&&f.parent.parameters.indexOf(f)>=CWe(S).length:!1}function Lz(f){return vu(f)&&!dN(f)&&f.questionToken}function Pue(f,S,E,P){return{kind:f,parameterName:S,parameterIndex:E,type:P}}function Px(f){let S=0;if(f)for(let E=0;E=E&&q<=z){let oe=f?f.slice():[];for(let Ye=q;YeYe.arguments.length&&!Qr||(z=E.length)}if((f.kind===177||f.kind===178)&&Uie(f)&&(!Fe||!q)){let Hi=f.kind===177?178:177,vn=Kp(Bs(f),Hi);vn&&(q=Bve(vn))}oe&&oe.typeExpression&&(q=oq(Ou(1,"this"),al(oe.typeExpression)));let It=U2(f)?C4(f):f,Pt=It&&yl(It)?pS(Vf(It.parent.symbol)):void 0,yi=Pt?Pt.localTypeParameters:gkt(f);(yZ(f)||Ys(f)&&vkt(f,E))&&(P|=1),(Dm(f)&&kc(f,64)||yl(f)&&kc(f.parent,64))&&(P|=4),S.resolvedSignature=n6(f,yi,q,E,void 0,void 0,z,P)}return S.resolvedSignature}function vkt(f,S){if(U2(f)||!rst(f))return!1;let E=Y_(f.parameters),P=E?mu(E):S3(f).filter(hw),z=Je(P,oe=>oe.typeExpression&&bae(oe.typeExpression.type)?oe.typeExpression.type:void 0),q=Ou(3,"args",32768);return z?q.links.type=vS(al(z.type)):(q.links.checkFlags|=65536,q.links.deferralParent=Wi,q.links.deferralConstituents=[Wf],q.links.deferralWriteConstituents=[Wf]),z&&S.pop(),S.push(q),!0}function K_(f){if(!(Ys(f)&&Rp(f)))return;let S=b3(f);return S?.typeExpression&&yq(al(S.typeExpression))}function Jie(f,S){let E=K_(f);if(!E)return;let P=f.parameters.indexOf(S);return S.dotDotDotToken?GPe(E,P):eA(E,P)}function RBe(f){let S=K_(f);return S&&Op(S)}function rst(f){let S=ra(f);return S.containsArgumentsReference===void 0&&(S.flags&512?S.containsArgumentsReference=!0:S.containsArgumentsReference=E(f.body)),S.containsArgumentsReference;function E(P){if(!P)return!1;switch(P.kind){case 80:return P.escapedText===ht.escapedName&&xbe(P)===ht;case 172:case 174:case 177:case 178:return P.name.kind===167&&E(P.name);case 211:case 212:return E(P.expression);case 303:return E(P.initializer);default:return!ome(P)&&!jA(P)&&!!_d(P,E)}}}function B9(f){if(!f||!f.declarations)return F;let S=[];for(let E=0;E0&&P.body){let z=f.declarations[E-1];if(P.parent===z.parent&&P.kind===z.kind&&P.pos===z.end)continue}if(Ys(P)&&P.jsDoc){let z=kOe(P);if(Z(z)){for(let q of z){let oe=q.typeExpression;oe.type===void 0&&!yl(P)&&cR(oe,pt),S.push(m2(oe))}continue}}S.push(!H8(P)&&!zT(P)&&K_(P)||m2(P))}}return S}function Lue(f){let S=Gy(f,f);if(S){let E=R1(S);if(E)return Js(E)}return pt}function PF(f){if(f.thisParameter)return Js(f.thisParameter)}function Pw(f){if(!f.resolvedTypePredicate){if(f.target){let S=Pw(f.target);f.resolvedTypePredicate=S?Sqt(S,f.mapper):Qt}else if(f.compositeSignatures)f.resolvedTypePredicate=Ist(f.compositeSignatures,f.compositeKind)||Qt;else{let S=f.declaration&&WC(f.declaration),E;if(!S){let P=K_(f.declaration);P&&f!==P&&(E=Pw(P))}if(S||E)f.resolvedTypePredicate=S&&Sk(S)?FJt(S,f):E||Qt;else if(f.declaration&&Rp(f.declaration)&&(!f.resolvedReturnType||f.resolvedReturnType.flags&16)&&Xk(f)>0){let{declaration:P}=f;f.resolvedTypePredicate=Qt,f.resolvedTypePredicate=vGt(P)||Qt}else f.resolvedTypePredicate=Qt}Se.assert(!!f.resolvedTypePredicate)}return f.resolvedTypePredicate===Qt?void 0:f.resolvedTypePredicate}function FJt(f,S){let E=f.parameterName,P=f.type&&al(f.type);return E.kind===197?Pue(f.assertsModifier?2:0,void 0,void 0,P):Pue(f.assertsModifier?3:1,E.escapedText,_n(S.parameters,z=>z.escapedName===E.escapedText),P)}function Oue(f,S,E){return S!==2097152?Fc(f,E):Qu(f)}function Op(f){if(!f.resolvedReturnType){if(!Vd(f,3))return Ie;let S=f.target?Ul(Op(f.target),f.mapper):f.compositeSignatures?Ul(Oue($i(f.compositeSignatures,Op),f.compositeKind,2),f.mapper):qie(f.declaration)||(Mm(f.declaration.body)?pt:FWe(f.declaration));if(f.flags&8?S=_wt(S):f.flags&16&&(S=aR(S)),!gt()){if(f.declaration){let E=WC(f.declaration);if(E)ki(E,j.Return_type_annotation_circularly_references_itself);else if(Ae){let P=f.declaration,z=Nu(P);z?ki(z,j._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,Gf(z)):ki(P,j.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions)}}S=pt}f.resolvedReturnType??(f.resolvedReturnType=S)}return f.resolvedReturnType}function qie(f){if(f.kind===176)return pS(Vf(f.parent.symbol));let S=WC(f);if(U2(f)){let E=Ej(f);if(E&&yl(E.parent)&&!S)return pS(Vf(E.parent.parent.symbol))}if(A3(f))return al(f.parameters[0].type);if(S)return al(S);if(f.kind===177&&Uie(f)){let E=Ys(f)&&uf(f);if(E)return E;let P=Kp(Bs(f),178),z=JX(P);if(z)return z}return RBe(f)}function BBe(f){return f.compositeSignatures&&En(f.compositeSignatures,BBe)||!f.resolvedReturnType&&xD(f,3)>=0}function MJt(f){return bkt(f)||pt}function bkt(f){if(Wu(f)){let S=Js(f.parameters[f.parameters.length-1]),E=a_(S)?AP(S):S;return E&&o6(E,Fi)}}function Jve(f,S,E,P){let z=j9(f,s1(S,f.typeParameters,Px(f.typeParameters),E));if(P){let q=pct(Op(z));if(q){let oe=Vve(q);oe.typeParameters=P;let Fe=Vve(z);return Fe.resolvedReturnType=$S(oe),Fe}}return z}function j9(f,S){let E=f.instantiations||(f.instantiations=new Map),P=kD(S),z=E.get(P);return z||E.set(P,z=qve(f,S)),z}function qve(f,S){return jF(f,s6(f,S),!0)}function TAe(f){return $s(f.typeParameters,S=>S.mapper?Ul(S,S.mapper):S)}function s6(f,S){return wC(TAe(f),S)}function Fue(f){return f.typeParameters?f.erasedSignatureCache||(f.erasedSignatureCache=ost(f)):f}function ost(f){return jF(f,Ykt(f.typeParameters),!0)}function jBe(f){return f.typeParameters?f.canonicalSignatureCache||(f.canonicalSignatureCache=WBe(f)):f}function WBe(f){return Jve(f,$i(f.typeParameters,S=>S.target&&!xC(S.target)?S.target:S),Ys(f.declaration))}function Skt(f){return f.typeParameters?f.implementationSignatureCache||(f.implementationSignatureCache=Mue(f)):f}function Mue(f){return f.typeParameters?jF(f,wC([],[])):f}function xkt(f){let S=f.typeParameters;if(S){if(f.baseSignatureCache)return f.baseSignatureCache;let E=Ykt(S),P=wC(S,$i(S,q=>xC(q)||Ce)),z=$i(S,q=>Ul(q,P)||Ce);for(let q=0;q{$ve(z)&&!MBe(S,z)&&S.push(CT(z,E.type?al(E.type):pt,zC(E,8),E))})}return S}return F}function $ve(f){return!!(f.flags&4108)||jz(f)||!!(f.flags&2097152)&&!wD(f)&&En(f.types,$ve)}function xm(f){return Dc(Qn(f.symbol&&f.symbol.declarations,Yp),Ux)[0]}function xO(f,S){var E;let P;if((E=f.symbol)!=null&&E.declarations){for(let z of f.symbol.declarations)if(z.parent.kind===195){let[q=z.parent,oe]=Dj(z.parent.parent);if(oe.kind===183&&!S){let Fe=oe,Ye=tbe(Fe);if(Ye){let it=Fe.typeArguments.indexOf(q);if(it()=>JGt(Fe,Ye,Hi))),Pt=Ul(tt,It);Pt!==f&&(P=ar(P,Pt))}}}}else if(oe.kind===169&&oe.dotDotDotToken||oe.kind===191||oe.kind===202&&oe.dotDotDotToken)P=ar(P,vS(Ce));else if(oe.kind===204)P=ar(P,Ot);else if(oe.kind===168&&oe.parent.kind===200)P=ar(P,ir);else if(oe.kind===200&&oe.type&&J_(oe.type)===z.parent&&oe.parent.kind===194&&oe.parent.extendsType===oe&&oe.parent.checkType.kind===200&&oe.parent.checkType.type){let Fe=oe.parent.checkType,Ye=al(Fe.type);P=ar(P,Ul(Ye,Uz(F9(Bs(Fe.typeParameter)),Fe.typeParameter.constraint?al(Fe.typeParameter.constraint):ir)))}}}return P&&Qu(P)}function Gie(f){if(!f.constraint)if(f.target){let S=xC(f.target);f.constraint=S?Ul(S,f.mapper):Ar}else{let S=xm(f);if(!S)f.constraint=xO(f)||Ar;else{let E=al(S);E.flags&1&&!Qe(E)&&(E=S.parent.parent.kind===200?ir:Ce),f.constraint=E}}return f.constraint===Ar?void 0:f.constraint}function ZX(f){let S=Kp(f.symbol,168),E=tC(S.parent)?tme(S.parent):S.parent;return E&&Hm(E)}function kD(f){let S="";if(f){let E=f.length,P=0;for(;P1&&(S+=":"+q),P+=q}}return S}function $J(f,S){return f?`@${Nf(f)}`+(S?`:${kD(S)}`:""):""}function EAe(f,S){let E=0;for(let P of f)(S===void 0||!(P.flags&S))&&(E|=Ls(P));return E&458752}function eY(f,S){return En(S)&&f===Vc?Ce:wP(f,S)}function wP(f,S){let E=kD(S),P=f.instantiations.get(E);return P||(P=de(4,f.symbol),f.instantiations.set(E,P),P.objectFlags|=S?EAe(S):0,P.target=f,P.resolvedTypeArguments=S),P}function Kie(f){let S=ge(f.flags,f.symbol);return S.objectFlags=f.objectFlags,S.target=f.target,S.resolvedTypeArguments=f.resolvedTypeArguments,S}function Gve(f,S,E,P,z){if(!P){P=sY(S);let oe=Zie(P);z=E?DP(oe,E):oe}let q=de(4,f.symbol);return q.target=f,q.node=S,q.mapper=E,q.aliasSymbol=P,q.aliasTypeArguments=z,q}function nh(f){var S,E;if(!f.resolvedTypeArguments){if(!Vd(f,5))return Pl(f.target.outerTypeParameters,(S=f.target.localTypeParameters)==null?void 0:S.map(()=>Ie))||F;let P=f.node,z=P?P.kind===183?Pl(f.target.outerTypeParameters,UWe(P,f.target.localTypeParameters)):P.kind===188?[al(P.elementType)]:$i(P.elements,al):F;gt()?f.resolvedTypeArguments??(f.resolvedTypeArguments=f.mapper?DP(z,f.mapper):z):(f.resolvedTypeArguments??(f.resolvedTypeArguments=Pl(f.target.outerTypeParameters,((E=f.target.localTypeParameters)==null?void 0:E.map(()=>Ie))||F)),ki(f.node||H,f.target.symbol?j.Type_arguments_for_0_circularly_reference_themselves:j.Tuple_type_arguments_circularly_reference_themselves,f.target.symbol&&zl(f.target.symbol)))}return f.resolvedTypeArguments}function PL(f){return Z(f.target.typeParameters)}function VBe(f,S){let E=_m(Vf(S)),P=E.localTypeParameters;if(P){let z=Z(f.typeArguments),q=Px(P),oe=Ys(f);if(!(!Ae&&oe)&&(zP.length)){let it=oe&&$C(f)&&!lM(f.parent),tt=q===P.length?it?j.Expected_0_type_arguments_provide_these_with_an_extends_tag:j.Generic_type_0_requires_1_type_argument_s:it?j.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:j.Generic_type_0_requires_between_1_and_2_type_arguments,It=vs(E,void 0,2);if(ki(f,tt,It,q,P.length),!oe)return Ie}if(f.kind===183&&a1(f,Z(f.typeArguments)!==P.length))return Gve(E,f,void 0);let Ye=Pl(E.outerTypeParameters,s1(Xve(f),P,q,oe));return wP(E,Ye)}return rh(f,S)?E:Ie}function CO(f,S,E,P){let z=_m(f);if(z===Ue){let it=GTe.get(f.escapedName);if(it!==void 0&&S&&S.length===1)return it===4?HBe(S[0]):OF(f,S[0])}let q=Nl(f),oe=q.typeParameters,Fe=kD(S)+$J(E,P),Ye=q.instantiations.get(Fe);return Ye||q.instantiations.set(Fe,Ye=kf(z,wC(oe,s1(S,oe,Px(oe),Ys(f.valueDeclaration))),E,P)),Ye}function sst(f,S){if(Ag(S)&1048576){let z=Xve(f),q=$J(S,z),oe=dt.get(q);return oe||(oe=Sn(1,"error",void 0,`alias ${q}`),oe.aliasSymbol=S,oe.aliasTypeArguments=z,dt.set(q,oe)),oe}let E=_m(S),P=Nl(S).typeParameters;if(P){let z=Z(f.typeArguments),q=Px(P);if(zP.length)return ki(f,q===P.length?j.Generic_type_0_requires_1_type_argument_s:j.Generic_type_0_requires_between_1_and_2_type_arguments,zl(S),q,P.length),Ie;let oe=sY(f),Fe=oe&&(ast(S)||!ast(oe))?oe:void 0,Ye;if(Fe)Ye=Zie(Fe);else if(Y$(f)){let it=Rue(f,2097152,!0);if(it&&it!==St){let tt=oy(it);tt&&tt.flags&524288&&(Fe=tt,Ye=Xve(f)||(P?[]:void 0))}}return CO(S,Xve(f),Fe,Ye)}return rh(f,S)?E:Ie}function ast(f){var S;let E=(S=f.declarations)==null?void 0:S.find(MZ);return!!(E&&BS(E))}function cst(f){switch(f.kind){case 183:return f.typeName;case 233:let S=f.expression;if(Dp(S))return S}}function lst(f){return f.parent?`${lst(f.parent)}.${f.escapedName}`:f.escapedName}function DAe(f){let E=(f.kind===166?f.right:f.kind===211?f.name:f).escapedText;if(E){let P=f.kind===166?DAe(f.left):f.kind===211?DAe(f.expression):void 0,z=P?`${lst(P)}.${E}`:E,q=Tt.get(z);return q||(Tt.set(z,q=Ou(524288,E,1048576)),q.parent=P,q.links.declaredType=Bt),q}return St}function Rue(f,S,E){let P=cst(f);if(!P)return St;let z=zf(P,S,E);return z&&z!==St?z:E?St:DAe(P)}function Bue(f,S){if(S===St)return Ie;if(S=gD(S)||S,S.flags&96)return VBe(f,S);if(S.flags&524288)return sst(f,S);let E=pAe(S);if(E)return rh(f,S)?Ig(E):Ie;if(S.flags&111551&&Mz(f)){let P=Fz(f,S);return P||(Rue(f,788968),Js(S))}return Ie}function Fz(f,S){let E=ra(f);if(!E.resolvedJSDocType){let P=Js(S),z=P;if(S.valueDeclaration){let q=f.kind===205&&f.qualifier;P.symbol&&P.symbol!==S&&q&&(z=Bue(f,P.symbol))}E.resolvedJSDocType=z}return E.resolvedJSDocType}function HBe(f){return ust(f)?dst(f,Ce):f}function ust(f){return!!(f.flags&3145728&&En(f.types,ust)||f.flags&33554432&&!W9(f)&&ust(f.baseType)||f.flags&524288&&!_6(f)||f.flags&432275456&&!jz(f))}function W9(f){return!!(f.flags&33554432&&f.constraint.flags&2)}function jue(f,S){return S.flags&3||S===f||f.flags&1?f:dst(f,S)}function dst(f,S){let E=`${Rv(f)}>${Rv(S)}`,P=Pi.get(E);if(P)return P;let z=fS(33554432);return z.baseType=f,z.constraint=S,Pi.set(E,z),z}function UBe(f){return W9(f)?f.baseType:Qu([f.constraint,f.baseType])}function JBe(f){return f.kind===189&&f.elements.length===1}function qBe(f,S,E){return JBe(S)&&JBe(E)?qBe(f,S.elements[0],E.elements[0]):FL(al(S))===FL(f)?al(E):void 0}function $Be(f,S){let E,P=!0;for(;S&&!ll(S)&&S.kind!==320;){let z=S.parent;if(z.kind===169&&(P=!P),(P||f.flags&8650752)&&z.kind===194&&S===z.trueType){let q=qBe(f,z.checkType,z.extendsType);q&&(E=ar(E,q))}else if(f.flags&262144&&z.kind===200&&!z.nameType&&S===z.type){let q=al(z);if(HN(q)===FL(f)){let oe=i1e(q);if(oe){let Fe=xC(oe);Fe&&KS(Fe,Y9)&&(E=ar(E,Fc([Fi,Nc])))}}}S=z}return E?jue(f,Qu(E)):f}function Mz(f){return!!(f.flags&16777216)&&(f.kind===183||f.kind===205)}function rh(f,S){return f.typeArguments?(ki(f,j.Type_0_is_not_generic,S?zl(S):f.typeName?Gf(f.typeName):iFe),!1):!0}function Ckt(f){if(Ai(f.typeName)){let S=f.typeArguments;switch(f.typeName.escapedText){case"String":return rh(f),Ot;case"Number":return rh(f),Fi;case"Boolean":return rh(f),Cn;case"Void":return rh(f),Pn;case"Undefined":return rh(f),ye;case"Null":return rh(f),si;case"Function":case"function":return rh(f),wo;case"array":return(!S||!S.length)&&!Ae?Wf:void 0;case"promise":return(!S||!S.length)&&!Ae?G1e(pt):void 0;case"Object":if(S&&S.length===2){if(qpe(f)){let E=al(S[0]),P=al(S[1]),z=E===Ot||E===Fi?[CT(E,P,!1)]:F;return ml(void 0,K,F,F,z)}return pt}return rh(f),Ae?void 0:pt}}}function RJt(f){let S=al(f.type);return xe?m1e(S,65536):S}function Kve(f){let S=ra(f);if(!S.resolvedType){if(Jx(f)&&gy(f.parent))return S.resolvedSymbol=St,S.resolvedType=r0(f.parent.expression);let E,P,z=788968;Mz(f)&&(P=Ckt(f),P||(E=Rue(f,z,!0),E===St?E=Rue(f,z|111551):Rue(f,z),P=Bue(f,E))),P||(E=Rue(f,z),P=Bue(f,E)),S.resolvedSymbol=E,S.resolvedType=P}return S.resolvedType}function Xve(f){return $i(f.typeArguments,al)}function fst(f){let S=ra(f);if(!S.resolvedType){let E=H1e(f);S.resolvedType=Ig($k(E))}return S.resolvedType}function GBe(f,S){function E(z){let q=z.declarations;if(q)for(let oe of q)switch(oe.kind){case 263:case 264:case 266:return oe}}if(!f)return S?Vc:ja;let P=_m(f);return P.flags&524288?Z(P.typeParameters)!==S?(ki(E(f),j.Global_type_0_must_have_1_type_parameter_s,Bc(f),S),S?Vc:ja):P:(ki(E(f),j.Global_type_0_must_be_a_class_or_interface_type,Bc(f)),S?Vc:ja)}function KBe(f,S){return z9(f,111551,S?j.Cannot_find_global_value_0:void 0)}function _st(f,S){return z9(f,788968,S?j.Cannot_find_global_type_0:void 0)}function IAe(f,S,E){let P=z9(f,788968,E?j.Cannot_find_global_type_0:void 0);if(P&&(_m(P),Z(Nl(P).typeParameters)!==S)){let z=P.declarations&&jt(P.declarations,k1);ki(z,j.Global_type_0_must_have_1_type_parameter_s,Bc(P),S);return}return P}function z9(f,S,E){return Ei(void 0,f,S,E,!1,!1)}function Dg(f,S,E){let P=_st(f,E);return P||E?GBe(P,S):void 0}function XBe(f,S){let E;for(let P of f)E=ar(E,Dg(P,S,!1));return E??F}function BJt(){return gh||(gh=Dg("TypedPropertyDescriptor",1,!0)||Vc)}function YBe(){return Xt||(Xt=Dg("TemplateStringsArray",0,!0)||ja)}function kkt(){return un||(un=Dg("ImportMeta",0,!0)||ja)}function wkt(){if(!Ur){let f=Ou(0,"ImportMetaExpression"),S=kkt(),E=Ou(4,"meta",8);E.parent=f,E.links.type=S;let P=Au([E]);f.members=P,Ur=ml(f,P,F,F,F)}return Ur}function Tkt(f){return Rs||(Rs=Dg("ImportCallOptions",0,f))||ja}function NAe(f){return Ja||(Ja=Dg("ImportAttributes",0,f))||ja}function Ekt(f){return Rg||(Rg=KBe("Symbol",f))}function jJt(f){return e0||(e0=_st("SymbolConstructor",f))}function Dkt(){return A0||(A0=Dg("Symbol",0,!1))||ja}function AAe(f){return wp||(wp=Dg("Promise",1,f))||Vc}function Ikt(f){return xb||(xb=Dg("PromiseLike",1,f))||Vc}function QBe(f){return ig||(ig=KBe("Promise",f))}function WJt(f){return wg||(wg=Dg("PromiseConstructorLike",0,f))||ja}function Yve(f){return an||(an=Dg("AsyncIterable",3,f))||Vc}function zJt(f){return yn||(yn=Dg("AsyncIterator",3,f))||Vc}function Nkt(f){return Be||(Be=Dg("AsyncIterableIterator",3,f))||Vc}function pst(){return Vi??(Vi=XBe(["ReadableStreamAsyncIterator"],1))}function VJt(f){return yr||(yr=Dg("AsyncIteratorObject",3,f))||Vc}function HJt(f){return He||(He=Dg("AsyncGenerator",3,f))||Vc}function ZBe(f){return Ap||(Ap=Dg("Iterable",3,f))||Vc}function UJt(f){return xt||(xt=Dg("Iterator",3,f))||Vc}function Akt(f){return ln||(ln=Dg("IterableIterator",3,f))||Vc}function mst(){return we?ye:pt}function JJt(){return Ft??(Ft=XBe(["ArrayIterator","MapIterator","SetIterator","StringIterator"],1))}function qJt(f){return Dr||(Dr=Dg("IteratorObject",3,f))||Vc}function $Jt(f){return Tr||(Tr=Dg("Generator",3,f))||Vc}function GJt(f){return st||(st=Dg("IteratorYieldResult",1,f))||Vc}function KJt(f){return gi||(gi=Dg("IteratorReturnResult",1,f))||Vc}function Wue(f){return Tc||(Tc=Dg("Disposable",0,f))||ja}function Pkt(f){return Jl||(Jl=Dg("AsyncDisposable",0,f))||ja}function hst(f,S=0){let E=z9(f,788968,void 0);return E&&GBe(E,S)}function yS(){return Id||(Id=IAe("Extract",2,!0)||St),Id===St?void 0:Id}function gst(){return bd||(bd=IAe("Omit",2,!0)||St),bd===St?void 0:bd}function eje(f){return op||(op=IAe("Awaited",1,f)||(f?St:void 0)),op===St?void 0:op}function XJt(){return Pv||(Pv=Dg("BigInt",0,!1))||ja}function YJt(f){return Ny??(Ny=Dg("ClassDecoratorContext",1,f))??Vc}function Lkt(f){return y_??(y_=Dg("ClassMethodDecoratorContext",2,f))??Vc}function Okt(f){return ng??(ng=Dg("ClassGetterDecoratorContext",2,f))??Vc}function tR(f){return eh??(eh=Dg("ClassSetterDecoratorContext",2,f))??Vc}function QJt(f){return m0??(m0=Dg("ClassAccessorDecoratorContext",2,f))??Vc}function ZJt(f){return Z_??(Z_=Dg("ClassAccessorDecoratorTarget",2,f))??Vc}function a6(f){return Ay??(Ay=Dg("ClassAccessorDecoratorResult",2,f))??Vc}function yst(f){return Py??(Py=Dg("ClassFieldDecoratorContext",2,f))??Vc}function eqt(){return Lv||(Lv=KBe("NaN",!1))}function vst(){return P0||(P0=IAe("Record",2,!0)||St),P0===St?void 0:P0}function tY(f,S){return f!==Vc?wP(f,S):ja}function Xie(f){return tY(BJt(),[f])}function bst(f){return tY(ZBe(!0),[f,Pn,ye])}function vS(f,S){return tY(S?xo:$n,[f])}function Yie(f){switch(f.kind){case 190:return 2;case 191:return tje(f);case 202:return f.questionToken?2:f.dotDotDotToken?tje(f):1;default:return 1}}function tje(f){return EO(f.type)?4:8}function Rz(f){let S=Fkt(f.parent);if(EO(f))return S?xo:$n;let P=$i(f.elements,Yie);return Sst(P,S,$i(f.elements,tqt))}function tqt(f){return YA(f)||Fl(f)?f:void 0}function a1(f,S){return!!sY(f)||kO(f)&&(f.kind===188?c6(f.elementType):f.kind===189?En(f.elements,c6):S||En(f.typeArguments,c6))}function kO(f){let S=f.parent;switch(S.kind){case 196:case 202:case 183:case 192:case 193:case 199:case 194:case 198:case 188:case 189:return kO(S);case 265:return!0}return!1}function c6(f){switch(f.kind){case 183:return Mz(f)||!!(Rue(f,788968).flags&524288);case 186:return!0;case 198:return f.operator!==158&&c6(f.type);case 196:case 190:case 202:case 316:case 314:case 315:case 309:return c6(f.type);case 191:return f.type.kind!==188||c6(f.type.elementType);case 192:case 193:return En(f.types,c6);case 199:return c6(f.objectType)||c6(f.indexType);case 194:return c6(f.checkType)||c6(f.extendsType)||c6(f.trueType)||c6(f.falseType)}return!1}function iqt(f){let S=ra(f);if(!S.resolvedType){let E=Rz(f);if(E===Vc)S.resolvedType=ja;else if(!(f.kind===189&&En(f.elements,P=>!!(Yie(P)&8)))&&a1(f))S.resolvedType=f.kind===189&&f.elements.length===0?E:Gve(E,f,void 0);else{let P=f.kind===188?[al(f.elementType)]:$i(f.elements,al);S.resolvedType=xst(E,P)}}return S.resolvedType}function Fkt(f){return yN(f)&&f.operator===148}function l6(f,S,E=!1,P=[]){let z=Sst(S||$i(f,q=>1),E,P);return z===Vc?ja:f.length?xst(z,f):z}function Sst(f,S,E){if(f.length===1&&f[0]&4)return S?xo:$n;let P=$i(f,q=>q&1?"#":q&2?"?":q&4?".":"*").join()+(S?"R":"")+(En(E,q=>!!q)?","+$i(E,q=>q?pp(q):"_").join(","):""),z=ai.get(P);return z||ai.set(P,z=nqt(f,S,E)),z}function nqt(f,S,E){let P=f.length,z=Tn(f,It=>!!(It&9)),q,oe=[],Fe=0;if(P){q=new Array(P);for(let It=0;It!!(f.elementFlags[br]&8&&vn.flags&1179648));if(Hi>=0)return LAe($i(S,(vn,br)=>f.elementFlags[br]&8?vn:Ce))?oh(S[Hi],vn=>Cst(f,m3(S,Hi,vn))):Ie}let oe=[],Fe=[],Ye=[],it=-1,tt=-1,It=-1;for(let Hi=0;Hi=1e4)return ki(H,jA(H)?j.Type_produces_a_tuple_type_that_is_too_large_to_represent:j.Expression_produces_a_tuple_type_that_is_too_large_to_represent),Ie;ee(Qr,(ao,Ko)=>{var Zr;return yi(ao,vn.target.elementFlags[Ko],(Zr=vn.target.labeledElementDeclarations)==null?void 0:Zr[Ko])})}else yi(AO(vn)&&o6(vn,Fi)||Ie,4,(z=f.labeledElementDeclarations)==null?void 0:z[Hi]);else yi(vn,br,(q=f.labeledElementDeclarations)==null?void 0:q[Hi])}for(let Hi=0;Hi=0&&ttFe[tt+vn]&8?rk(Hi,Fi):Hi)),oe.splice(tt+1,It-tt),Fe.splice(tt+1,It-tt),Ye.splice(tt+1,It-tt));let Pt=Sst(Fe,f.readonly,Ye);return Pt===Vc?ja:Fe.length?wP(Pt,oe):Pt;function yi(Hi,vn,br){vn&1&&(it=Fe.length),vn&4&&tt<0&&(tt=Fe.length),vn&6&&(It=Fe.length),oe.push(vn&2?Eg(Hi,!0):Hi),Fe.push(vn),Ye.push(br)}}function zue(f,S,E=0){let P=f.target,z=PL(f)-E;return S>P.fixedLength?Pje(f)||l6(F):l6(nh(f).slice(S,z),P.elementFlags.slice(S,z),!1,P.labeledElementDeclarations&&P.labeledElementDeclarations.slice(S,z))}function kst(f){return Fc(ar(r4(f.target.fixedLength,S=>kC(""+S)),JN(f.target.readonly?xo:$n)))}function wst(f,S){let E=_n(f.elementFlags,P=>!(P&S));return E>=0?E:f.elementFlags.length}function vc(f,S){return f.elementFlags.length-Pr(f.elementFlags,E=>!(E&S))-1}function ije(f){return f.fixedLength+vc(f,3)}function Bz(f){let S=nh(f),E=PL(f);return S.length===E?S:S.slice(0,E)}function Tst(f){return Eg(al(f.type),!0)}function Rv(f){return f.id}function LL(f,S){return Q_(f,S,Rv,m_)>=0}function PAe(f,S){let E=Q_(f,S,Rv,m_);return E<0?(f.splice(~E,0,S),!0):!1}function Mkt(f,S,E){let P=E.flags;if(!(P&131072))if(S|=P&473694207,P&465829888&&(S|=33554432),P&2097152&&Ls(E)&67108864&&(S|=536870912),E===Mt&&(S|=8388608),Qe(E)&&(S|=1073741824),!xe&&P&98304)Ls(E)&65536||(S|=4194304);else{let z=f.length,q=z&&E.id>f[z-1].id?~z:Q_(f,E,Rv,m_);q<0&&f.splice(~q,0,E)}return S}function Rkt(f,S,E){let P;for(let z of E)z!==P&&(S=z.flags&1048576?Rkt(f,S|(o_(z)?1048576:0),z.types):Mkt(f,S,z),P=z);return S}function rqt(f,S){var E;if(f.length<2)return f;let P=kD(f),z=qi.get(P);if(z)return z;let q=S&&En(f,it=>!!(it.flags&524288)&&!Mv(it)&&wje(UN(it))),oe=f.length,Fe=oe,Ye=0;for(;Fe>0;){Fe--;let it=f[Fe];if(q||it.flags&469499904){if(it.flags&262144&&CP(it).flags&1048576){$N(it,Fc($i(f,Pt=>Pt===it?Wi:Pt)),e1)&&Jw(f,Fe);continue}let tt=it.flags&61603840?jt(Lp(it),Pt=>KN(Js(Pt))):void 0,It=tt&&Ig(Js(tt));for(let Pt of f)if(it!==Pt){if(Ye===1e5&&Ye/(oe-Fe)*oe>1e6){(E=us)==null||E.instant(us.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:f.map(Hi=>Hi.id)}),ki(H,j.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}if(Ye++,tt&&Pt.flags&61603840){let yi=Ln(Pt,tt.escapedName);if(yi&&KN(yi)&&Ig(yi)!==It)continue}if($N(it,Pt,e1)&&(!(Ls(QM(it))&1)||!(Ls(QM(Pt))&1)||K9(it,Pt))){Jw(f,Fe);break}}}}return qi.set(P,f),f}function oqt(f,S,E){let P=f.length;for(;P>0;){P--;let z=f[P],q=z.flags;(q&402653312&&S&4||q&256&&S&8||q&2048&&S&64||q&8192&&S&4096||E&&q&32768&&S&16384||RF(z)&&LL(f,z.regularType))&&Jw(f,P)}}function Bkt(f){let S=Qn(f,jz);if(S.length){let E=f.length;for(;E>0;){E--;let P=f[E];P.flags&128&&En(S,z=>sqt(P,z))&&Jw(f,E)}}}function sqt(f,S){return S.flags&134217728?bS(f,S):v1e(f,S)}function aqt(f){let S=[];for(let E of f)if(E.flags&2097152&&Ls(E)&67108864){let P=E.types[0].flags&8650752?0:1;Xu(S,E.types[P])}for(let E of S){let P=[];for(let q of f)if(q.flags&2097152&&Ls(q)&67108864){let oe=q.types[0].flags&8650752?0:1;q.types[oe]===E&&PAe(P,q.types[1-oe])}let z=Pb(E);if(KS(z,q=>LL(P,q))){let q=f.length;for(;q>0;){q--;let oe=f[q];if(oe.flags&2097152&&Ls(oe)&67108864){let Fe=oe.types[0].flags&8650752?0:1;oe.types[Fe]===E&&LL(P,oe.types[1-Fe])&&Jw(f,q)}}PAe(f,E)}}}function o_(f){return!!(f.flags&1048576&&(f.aliasSymbol||f.origin))}function Est(f,S){for(let E of S)if(E.flags&1048576){let P=E.origin;E.aliasSymbol||P&&!(P.flags&1048576)?Xu(f,E):P&&P.flags&1048576&&Est(f,P.types)}}function Vue(f,S){let E=Vt(f);return E.types=S,E}function Fc(f,S=1,E,P,z){if(f.length===0)return Wi;if(f.length===1)return f[0];if(f.length===2&&!z&&(f[0].flags&1048576||f[1].flags&1048576)){let q=S===0?"N":S===2?"S":"L",oe=f[0].id=2&&q[0]===ye&&q[1]===pe&&Jw(q,1),(oe&402664352||oe&16384&&oe&32768)&&oqt(q,oe,!!(S&2)),oe&128&&oe&402653184&&Bkt(q),oe&536870912&&aqt(q),S===2&&(q=rqt(q,!!(oe&524288)),!q))return Ie;if(q.length===0)return oe&65536?oe&4194304?si:At:oe&32768?oe&4194304?ye:vt:Wi}if(!z&&oe&1048576){let Ye=[];Est(Ye,f);let it=[];for(let It of q)En(Ye,Pt=>LL(Pt.types,It))||it.push(It);if(!E&&Ye.length===1&&it.length===0)return Ye[0];if($m(Ye,(It,Pt)=>It+Pt.types.length,0)+it.length===q.length){for(let It of Ye)PAe(it,It);z=Vue(1048576,it)}}let Fe=(oe&36323331?0:32768)|(oe&2097152?16777216:0);return nje(q,Fe,E,P,z)}function Ist(f,S){let E,P=[];for(let q of f){let oe=Pw(q);if(oe){if(oe.kind!==0&&oe.kind!==1||E&&!Nst(E,oe))return;E=oe,P.push(oe.type)}else{let Fe=S!==2097152?Op(q):void 0;if(Fe!==In&&Fe!==dn)return}}if(!E)return;let z=Oue(P,S);return Pue(E.kind,E.parameterName,E.parameterIndex,z)}function Nst(f,S){return f.kind===S.kind&&f.parameterIndex===S.parameterIndex}function nje(f,S,E,P,z){if(f.length===0)return Wi;if(f.length===1)return f[0];let oe=(z?z.flags&1048576?`|${kD(z.types)}`:z.flags&2097152?`&${kD(z.types)}`:`#${z.type.id}|${kD(f)}`:kD(f))+$J(E,P),Fe=mn.get(oe);return Fe||(Fe=fS(1048576),Fe.objectFlags=S|EAe(f,98304),Fe.types=f,Fe.origin=z,Fe.aliasSymbol=E,Fe.aliasTypeArguments=P,f.length===2&&f[0].flags&512&&f[1].flags&512&&(Fe.flags|=16,Fe.intrinsicName="boolean"),mn.set(oe,Fe)),Fe}function cqt(f){let S=ra(f);if(!S.resolvedType){let E=sY(f);S.resolvedType=Fc($i(f.types,al),1,E,Zie(E))}return S.resolvedType}function jkt(f,S,E){let P=E.flags;return P&2097152?Ast(f,S,E.types):(_6(E)?S&16777216||(S|=16777216,f.set(E.id.toString(),E)):(P&3?(E===Mt&&(S|=8388608),Qe(E)&&(S|=1073741824)):(xe||!(P&98304))&&(E===pe&&(S|=262144,E=ye),f.has(E.id.toString())||(E.flags&109472&&S&109472&&(S|=67108864),f.set(E.id.toString(),E))),S|=P&473694207),S)}function Ast(f,S,E){for(let P of E)S=jkt(f,S,Ig(P));return S}function lqt(f,S){let E=f.length;for(;E>0;){E--;let P=f[E];(P.flags&4&&S&402653312||P.flags&8&&S&256||P.flags&64&&S&2048||P.flags&4096&&S&8192||P.flags&16384&&S&32768||_6(P)&&S&470302716)&&Jw(f,E)}}function LF(f,S){for(let E of f)if(!LL(E.types,S)){if(S===pe)return LL(E.types,ye);if(S===ye)return LL(E.types,pe);let P=S.flags&128?Ot:S.flags&288?Fi:S.flags&2048?Vn:S.flags&8192?cn:void 0;if(!P||!LL(E.types,P))return!1}return!0}function iY(f){let S=f.length,E=Qn(f,P=>!!(P.flags&128));for(;S>0;){S--;let P=f[S];if(P.flags&402653184){for(let z of E)if(Jz(z,P)){Jw(f,S);break}else if(jz(P))return!0}}return!1}function Pst(f,S){for(let E=0;E!(P.flags&S))}function uqt(f){let S,E=_n(f,oe=>!!(Ls(oe)&32768));if(E<0)return!1;let P=E+1;for(;P!!(Hi.flags&469893116)||_6(Hi))){if(zAe(yi,Pt))return It;if(!(yi.flags&1048576&&uE(yi,Hi=>zAe(Hi,Pt)))&&!zAe(Pt,yi))return Wi;Fe=67108864}}}let Ye=kD(oe)+(S&2?"*":$J(E,P)),it=Gr.get(Ye);if(!it){if(q&1048576)if(uqt(oe))it=Qu(oe,S,E,P);else if(Yt(oe,tt=>!!(tt.flags&1048576&&tt.types[0].flags&32768))){let tt=En(oe,uY)?pe:ye;Pst(oe,32768),it=Fc([Qu(oe,S),tt],1,E,P)}else if(Yt(oe,tt=>!!(tt.flags&1048576&&(tt.types[0].flags&65536||tt.types[1].flags&65536))))Pst(oe,65536),it=Fc([Qu(oe,S),si],1,E,P);else if(oe.length>=3&&f.length>2){let tt=Math.floor(oe.length/2);it=Qu([Qu(oe.slice(0,tt),S),Qu(oe.slice(tt),S)],S,E,P)}else{if(!LAe(oe))return Ie;let tt=dqt(oe,S),It=En(tt,Pt=>!!(Pt.flags&2097152))&&V9(tt)>V9(oe)?Vue(2097152,oe):void 0;it=Fc(tt,1,E,P,It)}else it=Lst(oe,Fe,E,P);Gr.set(Ye,it)}return it}function Ost(f){return $m(f,(S,E)=>E.flags&1048576?S*E.types.length:E.flags&131072?0:S,1)}function LAe(f){var S;let E=Ost(f);return E>=1e5?((S=us)==null||S.instant(us.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:f.map(P=>P.id),size:E}),ki(H,j.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function dqt(f,S){let E=Ost(f),P=[];for(let z=0;z=0;Ye--)if(f[Ye].flags&1048576){let it=f[Ye].types,tt=it.length;q[Ye]=it[oe%tt],oe=Math.floor(oe/tt)}let Fe=Qu(q,S);Fe.flags&131072||P.push(Fe)}return P}function Wkt(f){return!(f.flags&3145728)||f.aliasSymbol?1:f.flags&1048576&&f.origin?Wkt(f.origin):V9(f.types)}function V9(f){return $m(f,(S,E)=>S+Wkt(E),0)}function fqt(f){let S=ra(f);if(!S.resolvedType){let E=sY(f),P=$i(f.types,al),z=P.length===2?P.indexOf(Aa):-1,q=z>=0?P[1-z]:Ce,oe=!!(q.flags&76||q.flags&134217728&&jz(q));S.resolvedType=Qu(P,oe?1:0,E,Zie(E))}return S.resolvedType}function zkt(f,S){let E=fS(4194304);return E.type=f,E.indexFlags=S,E}function nY(f){let S=Vt(4194304);return S.type=f,S}function Fst(f,S){return S&1?f.resolvedStringIndexType||(f.resolvedStringIndexType=zkt(f,1)):f.resolvedIndexType||(f.resolvedIndexType=zkt(f,0))}function Vkt(f,S){let E=HN(f),P=Ph(f),z=r6(f.target||f);if(!z&&!(S&2))return P;let q=[];if(zz(P)){if(xP(f))return Fst(f,S);uq(P,Fe)}else if(xP(f)){let Ye=qS(bO(f));VN(Ye,8576,!!(S&1),Fe)}else uq(M9(P),Fe);let oe=S&2?cy(Fc(q),Ye=>!(Ye.flags&5)):Fc(q);if(oe.flags&1048576&&P.flags&1048576&&kD(oe.types)===kD(P.types))return P;return oe;function Fe(Ye){let it=z?Ul(z,Vl(f.mapper,E,Ye)):Ye;q.push(it===Ot?Vr:it)}}function Hkt(f){let S=HN(f);return E(r6(f)||S);function E(P){return P.flags&470810623?!0:P.flags&16777216?P.root.isDistributive&&P.checkType===S:P.flags&137363456?Yt(P.types,E):P.flags&8388608?E(P.objectType)&&E(P.indexType):P.flags&33554432?E(P.baseType)&&E(P.constraint):P.flags&268435456?E(P.type):!1}}function wO(f){if(wl(f))return Wi;if(mx(f))return Ig(fu(f));if(f_(f))return Ig(YN(f));let S=k5(f);return S!==void 0?kC(Ba(S)):An(f)?Ig(fu(f)):Wi}function rY(f,S,E){if(E||!(nT(f)&6)){let P=Nl(gAe(f)).nameType;if(!P){let z=Nu(f.valueDeclaration);P=f.escapedName==="default"?kC("default"):z&&wO(z)||(ZD(f)?void 0:kC(Bc(f)))}if(P&&P.flags&S)return P}return Wi}function Hue(f,S){return!!(f.flags&S||f.flags&2097152&&En(f.types,E=>Hue(E,S)))}function rje(f,S,E){let P=E&&(Ls(f)&7||f.aliasSymbol)?nY(f):void 0,z=$i(Lp(f),oe=>rY(oe,S)),q=$i(o1(f),oe=>oe!==Er&&Hue(oe.keyType,S)?oe.keyType===Ot&&S&8?Vr:oe.keyType:Wi);return Fc(Pl(z,q),1,void 0,void 0,P)}function OAe(f,S=0){return!!(f.flags&58982400||jL(f)||Mv(f)&&(!Hkt(f)||Nb(f)===2)||f.flags&1048576&&!(S&4)&&Az(f)||f.flags&2097152&&n0(f,465829888)&&En(f.types,_6))}function JN(f,S=0){return f=lu(f),W9(f)?HBe(JN(f.baseType,S)):OAe(f,S)?Fst(f,S):f.flags&1048576?Qu($i(f.types,E=>JN(E,S))):f.flags&2097152?Fc($i(f.types,E=>JN(E,S))):Ls(f)&32?Vkt(f,S):f===Mt?Mt:f.flags&2?Wi:f.flags&131073?ir:rje(f,(S&2?128:402653316)|(S&1?0:12584),S===0)}function oje(f){let S=yS();return S?CO(S,[f,Ot]):Ot}function FAe(f){let S=oje(JN(f));return S.flags&131072?Ot:S}function GJ(f){let S=ra(f);if(!S.resolvedType)switch(f.operator){case 143:S.resolvedType=JN(al(f.type));break;case 158:S.resolvedType=f.type.kind===155?BAe(bG(f.parent)):Ie;break;case 148:S.resolvedType=al(f.type);break;default:Se.assertNever(f.operator)}return S.resolvedType}function Ukt(f){let S=ra(f);return S.resolvedType||(S.resolvedType=TP([f.head.text,...$i(f.templateSpans,E=>E.literal.text)],$i(f.templateSpans,E=>al(E.type)))),S.resolvedType}function TP(f,S){let E=_n(S,it=>!!(it.flags&1179648));if(E>=0)return LAe(S)?oh(S[E],it=>TP(f,m3(S,E,it))):Ie;if(dr(S,Mt))return Mt;let P=[],z=[],q=f[0];if(!Ye(f,S))return Ot;if(P.length===0)return kC(q);if(z.push(q),Yt(z,it=>it==="")){if(Yt(P,it=>!!(it.flags&4)))return Ot;if(P.length===1&&jz(P[0]))return P[0]}let oe=`${kD(P)}|${$i(z,it=>it.length).join(",")}|${z.join("")}`,Fe=Mn.get(oe);return Fe||Mn.set(oe,Fe=XJ(z,P)),Fe;function Ye(it,tt){for(let It=0;ItOF(f,E)):S.flags&128?kC(OL(f,S.value)):S.flags&134217728?TP(...Jkt(f,S.texts,S.types)):S.flags&268435456&&f===S.symbol?S:S.flags&268435461||zz(S)?qkt(f,S):u6(S)?qkt(f,TP(["",""],[S])):S}function OL(f,S){switch(GTe.get(f.escapedName)){case 0:return S.toUpperCase();case 1:return S.toLowerCase();case 2:return S.charAt(0).toUpperCase()+S.slice(1);case 3:return S.charAt(0).toLowerCase()+S.slice(1)}return S}function Jkt(f,S,E){switch(GTe.get(f.escapedName)){case 0:return[S.map(P=>P.toUpperCase()),E.map(P=>OF(f,P))];case 1:return[S.map(P=>P.toLowerCase()),E.map(P=>OF(f,P))];case 2:return[S[0]===""?S:[S[0].charAt(0).toUpperCase()+S[0].slice(1),...S.slice(1)],S[0]===""?[OF(f,E[0]),...E.slice(1)]:E];case 3:return[S[0]===""?S:[S[0].charAt(0).toLowerCase()+S[0].slice(1),...S.slice(1)],S[0]===""?[OF(f,E[0]),...E.slice(1)]:E]}return[S,E]}function qkt(f,S){let E=`${Nf(f)},${Rv(S)}`,P=Qs.get(E);return P||Qs.set(E,P=_qt(f,S)),P}function _qt(f,S){let E=ge(268435456,f);return E.type=S,E}function pqt(f,S,E,P,z){let q=fS(8388608);return q.objectType=f,q.indexType=S,q.accessFlags=E,q.aliasSymbol=P,q.aliasTypeArguments=z,q}function Uue(f){if(Ae)return!1;if(Ls(f)&4096)return!0;if(f.flags&1048576)return Yt(f.types,Uue);if(f.flags&2097152)return En(f.types,Uue);if(f.flags&465829888){let S=mS(f);return S!==f&&Uue(S)}return!1}function Jue(f,S){return px(f)?rT(f):S&&C_(S)?k5(S):void 0}function Mst(f,S){if(S.flags&8208){let E=go(f.parent,P=>!cf(P))||f.parent;return H6(E)?WE(E)&&Ai(f)&&pde(E,f):Yt(S.declarations,P=>!iu(P)||uC(P))}return!0}function nk(f,S,E,P,z,q){let oe=z&&z.kind===212?z:void 0,Fe=z&&wl(z)?void 0:Jue(E,z);if(Fe!==void 0){if(q&256)return VL(S,Fe)||pt;let it=Ku(S,Fe);if(it){if(q&64&&z&&it.declarations&&Rk(it)&&Mst(z,it)){let It=oe?.argumentExpression??(tO(z)?z.indexType:z);Ex(It,it.declarations,Fe)}if(oe){if(wde(it,oe,uct(oe.expression,S.symbol)),t2t(oe,it,N8(oe))){ki(oe.argumentExpression,j.Cannot_assign_to_0_because_it_is_a_read_only_property,zl(it));return}if(q&8&&(ra(z).resolvedSymbol=it),gTt(oe,it))return Gt}let tt=q&4?Hk(it):Js(it);return oe&&N8(oe)!==1?zL(oe,tt):z&&tO(z)&&uY(tt)?Fc([tt,ye]):tt}if(KS(S,a_)&&nL(Fe)){let tt=+Fe;if(z&&KS(S,It=>!(It.target.combinedFlags&12))&&!(q&16)){let It=sje(z);if(a_(S)){if(tt<0)return ki(It,j.A_tuple_type_cannot_be_indexed_with_a_negative_value),ye;ki(It,j.Tuple_type_0_of_length_1_has_no_element_at_index_2,vs(S),PL(S),Ba(Fe))}else ki(It,j.Property_0_does_not_exist_on_type_1,Ba(Fe),vs(S))}if(tt>=0)return Ye(AL(S,Fi)),rde(S,tt,q&1?pe:void 0)}}if(!(E.flags&98304)&&Ob(E,402665900)){if(S.flags&131073)return S;let it=kP(S,E)||AL(S,Ot);if(it){if(q&2&&it.keyType!==Fi){oe&&(q&4?ki(oe,j.Type_0_is_generic_and_can_only_be_indexed_for_reading,vs(f)):ki(oe,j.Type_0_cannot_be_used_to_index_type_1,vs(E),vs(f)));return}if(z&&it.keyType===Ot&&!Ob(E,12)){let tt=sje(z);return ki(tt,j.Type_0_cannot_be_used_as_an_index_type,vs(E)),q&1?Fc([it.type,pe]):it.type}return Ye(it),q&1&&!(S.symbol&&S.symbol.flags&384&&E.symbol&&E.flags&1024&&B0(E.symbol)===S.symbol)?Fc([it.type,pe]):it.type}if(E.flags&131072)return Wi;if(Uue(S))return pt;if(oe&&!MWe(S)){if(OO(S)){if(Ae&&E.flags&384)return Gu.add(ws(oe,j.Property_0_does_not_exist_on_type_1,E.value,vs(S))),ye;if(E.flags&12){let tt=$i(S.properties,It=>Js(It));return Fc(ar(tt,ye))}}if(S.symbol===ut&&Fe!==void 0&&ut.exports.has(Fe)&&ut.exports.get(Fe).flags&418)ki(oe,j.Property_0_does_not_exist_on_type_1,Ba(Fe),vs(S));else if(Ae&&!(q&128))if(Fe!==void 0&&vWe(Fe,S)){let tt=vs(S);ki(oe,j.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,Fe,tt,tt+"["+_h(oe.argumentExpression)+"]")}else if(o6(S,Fi))ki(oe.argumentExpression,j.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let tt;if(Fe!==void 0&&(tt=kTt(Fe,S)))tt!==void 0&&ki(oe.argumentExpression,j.Property_0_does_not_exist_on_type_1_Did_you_mean_2,Fe,vs(S),tt);else{let It=LP(S,oe,E);if(It!==void 0)ki(oe,j.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,vs(S),It);else{let Pt;if(E.flags&1024)Pt=Zl(void 0,j.Property_0_does_not_exist_on_type_1,"["+vs(E)+"]",vs(S));else if(E.flags&8192){let yi=l2(E.symbol,oe);Pt=Zl(void 0,j.Property_0_does_not_exist_on_type_1,"["+yi+"]",vs(S))}else E.flags&128||E.flags&256?Pt=Zl(void 0,j.Property_0_does_not_exist_on_type_1,E.value,vs(S)):E.flags&12&&(Pt=Zl(void 0,j.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,vs(E),vs(S)));Pt=Zl(Pt,j.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,vs(P),vs(S)),Gu.add(WT(Vo(oe),oe,Pt))}}}return}}if(q&16&&OO(S))return ye;if(Uue(S))return pt;if(z){let it=sje(z);if(it.kind!==10&&E.flags&384)ki(it,j.Property_0_does_not_exist_on_type_1,""+E.value,vs(S));else if(E.flags&12)ki(it,j.Type_0_has_no_matching_index_signature_for_type_1,vs(S),vs(E));else{let tt=it.kind===10?"bigint":vs(E);ki(it,j.Type_0_cannot_be_used_as_an_index_type,tt)}}if(qr(E))return E;return;function Ye(it){it&&it.isReadonly&&oe&&(O3(oe)||VA(oe))&&ki(oe,j.Index_signature_in_type_0_only_permits_reading,vs(S))}}function sje(f){return f.kind===212?f.argumentExpression:f.kind===199?f.indexType:f.kind===167?f.expression:f}function u6(f){if(f.flags&2097152){let S=!1;for(let E of f.types)if(E.flags&101248||u6(E))S=!0;else if(!(E.flags&524288))return!1;return S}return!!(f.flags&77)||jz(f)}function jz(f){return!!(f.flags&134217728)&&Yt(f.types,u6)||!!(f.flags&268435456)&&u6(f.type)}function aje(f){return!!(f.flags&402653184)&&!jz(f)}function wD(f){return!!Qie(f)}function Wz(f){return!!(Qie(f)&4194304)}function zz(f){return!!(Qie(f)&8388608)}function Qie(f){return f.flags&3145728?(f.objectFlags&2097152||(f.objectFlags|=2097152|$m(f.types,(S,E)=>S|Qie(E),0)),f.objectFlags&12582912):f.flags&33554432?(f.objectFlags&2097152||(f.objectFlags|=2097152|Qie(f.baseType)|Qie(f.constraint)),f.objectFlags&12582912):(f.flags&58982400||Mv(f)||jL(f)?4194304:0)|(f.flags&63176704||aje(f)?8388608:0)}function Jk(f,S){return f.flags&8388608?Rst(f,S):f.flags&16777216?hqt(f,S):f}function iR(f,S,E){if(f.flags&1048576||f.flags&2097152&&!OAe(f)){let P=$i(f.types,z=>Jk(rk(z,S),E));return f.flags&2097152||E?Qu(P):Fc(P)}}function mqt(f,S,E){if(S.flags&1048576){let P=$i(S.types,z=>Jk(rk(f,z),E));return E?Qu(P):Fc(P)}}function Rst(f,S){let E=S?"simplifiedForWriting":"simplifiedForReading";if(f[E])return f[E]===Hl?f:f[E];f[E]=Hl;let P=Jk(f.objectType,S),z=Jk(f.indexType,S),q=mqt(P,z,S);if(q)return f[E]=q;if(!(z.flags&465829888)){let oe=iR(P,z,S);if(oe)return f[E]=oe}if(jL(P)&&z.flags&296){let oe=ode(P,z.flags&8?0:P.target.fixedLength,0,S);if(oe)return f[E]=oe}return Mv(P)&&Nb(P)!==2?f[E]=oh(cje(P,f.indexType),oe=>Jk(oe,S)):f[E]=f}function hqt(f,S){let E=f.checkType,P=f.extendsType,z=TO(f),q=MF(f);if(q.flags&131072&&FL(z)===FL(E)){if(E.flags&1||wf(sy(E),sy(P)))return Jk(z,S);if($kt(E,P))return Wi}else if(z.flags&131072&&FL(q)===FL(E)){if(!(E.flags&1)&&wf(sy(E),sy(P)))return Wi;if(E.flags&1||$kt(E,P))return Jk(q,S)}return f}function $kt(f,S){return!!(Fc([KX(f,S),Wi]).flags&131072)}function cje(f,S){let E=wC([HN(f)],[S]),P=J9(f.mapper,E),z=Ul(j1(f.target||f),P),q=lkt(f)>0||(wD(f)?Eue(bO(f))>0:Gkt(f,S));return Eg(z,!0,q)}function Gkt(f,S){let E=Pb(S);return!!E&&En(Lp(f),P=>!!(P.flags&16777216)&&wf(rY(P,8576),E))}function rk(f,S,E=0,P,z,q){return FF(f,S,E,P,z,q)||(P?Ie:Ce)}function Bst(f,S){return KS(f,E=>{if(E.flags&384){let P=rT(E);if(nL(P)){let z=+P;return z>=0&&z0&&!En(f.elements,S=>oM(S)||qC(S)||YA(S)&&!!(S.questionToken||S.dotDotDotToken))}function uje(f,S){return wD(f)||S&&a_(f)&&En(Bz(f),wD)}function nR(f,S,E,P,z){let q,oe,Fe=0;for(;;){if(Fe===1e3)return ki(H,j.Type_instantiation_is_excessively_deep_and_possibly_infinite),Ie;let it=Ul(FL(f.checkType),S),tt=Ul(f.extendsType,S);if(it===Ie||tt===Ie)return Ie;if(it===Mt||tt===Mt)return Mt;let It=RZ(f.node.checkType),Pt=RZ(f.node.extendsType),yi=lje(It)&&lje(Pt)&&Z(It.elements)===Z(Pt.elements),Hi=uje(it,yi),vn;if(f.inferTypeParameters){let Qr=sde(f.inferTypeParameters,void 0,0);S&&(Qr.nonFixingMapper=J9(Qr.nonFixingMapper,S)),Hi||kT(Qr.inferences,it,tt,1536),vn=S?J9(Qr.mapper,S):Qr.mapper}let br=vn?Ul(f.extendsType,vn):tt;if(!Hi&&!uje(br,yi)){if(!(br.flags&3)&&(it.flags&1||!wf(tq(it),tq(br)))){(it.flags&1||E&&!(br.flags&131072)&&uE(tq(br),ao=>wf(ao,tq(it))))&&(oe||(oe=[])).push(Ul(al(f.node.trueType),vn||S));let Qr=al(f.node.falseType);if(Qr.flags&16777216){let ao=Qr.root;if(ao.node.parent===f.node&&(!ao.isDistributive||ao.checkType===f.checkType)){f=ao;continue}if(Ye(Qr,S))continue}q=Ul(Qr,S);break}if(br.flags&3||wf(sy(it),sy(br))){let Qr=al(f.node.trueType),ao=vn||S;if(Ye(Qr,ao))continue;q=Ul(Qr,ao);break}}q=fS(16777216),q.root=f,q.checkType=Ul(f.checkType,S),q.extendsType=Ul(f.extendsType,S),q.mapper=S,q.combinedMapper=vn,q.aliasSymbol=P||f.aliasSymbol,q.aliasTypeArguments=P?z:DP(f.aliasTypeArguments,S);break}return oe?Fc(ar(oe,q)):q;function Ye(it,tt){if(it.flags&16777216&&tt){let It=it.root;if(It.outerTypeParameters){let Pt=J9(it.mapper,tt),yi=$i(It.outerTypeParameters,br=>BF(br,Pt)),Hi=wC(It.outerTypeParameters,yi),vn=It.isDistributive?BF(It.checkType,Hi):void 0;if(!vn||vn===It.checkType||!(vn.flags&1179648))return f=It,S=Hi,P=void 0,z=void 0,It.aliasSymbol&&Fe++,!0}}return!1}}function TO(f){return f.resolvedTrueType||(f.resolvedTrueType=Ul(al(f.root.node.trueType),f.mapper))}function MF(f){return f.resolvedFalseType||(f.resolvedFalseType=Ul(al(f.root.node.falseType),f.mapper))}function gqt(f){return f.resolvedInferredTrueType||(f.resolvedInferredTrueType=f.combinedMapper?Ul(al(f.root.node.trueType),f.combinedMapper):TO(f))}function que(f){let S;return f.locals&&f.locals.forEach(E=>{E.flags&262144&&(S=ar(S,_m(E)))}),S}function oY(f){return f.isDistributive&&(t1e(f.checkType,f.node.trueType)||t1e(f.checkType,f.node.falseType))}function Lx(f){let S=ra(f);if(!S.resolvedType){let E=al(f.checkType),P=sY(f),z=Zie(P),q=Ua(f,!0),oe=z?q:Qn(q,Ye=>t1e(Ye,f)),Fe={node:f,checkType:E,extendsType:al(f.extendsType),isDistributive:!!(E.flags&262144),inferTypeParameters:que(f),outerTypeParameters:oe,instantiations:void 0,aliasSymbol:P,aliasTypeArguments:z};S.resolvedType=nR(Fe,void 0,!1),oe&&(Fe.instantiations=new Map,Fe.instantiations.set(kD(oe),S.resolvedType))}return S.resolvedType}function Vz(f){let S=ra(f);return S.resolvedType||(S.resolvedType=F9(Bs(f.typeParameter))),S.resolvedType}function CC(f){return Ai(f)?[f]:ar(CC(f.left),f.right)}function TD(f){var S;let E=ra(f);if(!E.resolvedType){if(!Wy(f))return ki(f.argument,j.String_literal_expected),E.resolvedSymbol=St,E.resolvedType=Ie;let P=f.isTypeOf?111551:f.flags&16777216?900095:788968,z=Gy(f,f.argument.literal);if(!z)return E.resolvedSymbol=St,E.resolvedType=Ie;let q=!!((S=z.exports)!=null&&S.get("export=")),oe=R1(z,!1);if(Mm(f.qualifier))if(oe.flags&P)E.resolvedType=MAe(f,E,oe,P);else{let Fe=P===111551?j.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:j.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;ki(f,Fe,f.argument.literal.text),E.resolvedSymbol=St,E.resolvedType=Ie}else{let Fe=CC(f.qualifier),Ye=oe,it;for(;it=Fe.shift();){let tt=Fe.length?1920:P,It=Vf(Nm(Ye)),Pt=f.isTypeOf||Ys(f)&&q?Ku(Js(It),it.escapedText,!1,!0):void 0,Hi=(f.isTypeOf?void 0:Wp(Fv(It),it.escapedText,tt))??Pt;if(!Hi)return ki(it,j.Namespace_0_has_no_exported_member_1,l2(Ye),Gf(it)),E.resolvedType=Ie;ra(it).resolvedSymbol=Hi,ra(it.parent).resolvedSymbol=Hi,Ye=Hi}E.resolvedType=MAe(f,E,Ye,P)}}return E.resolvedType}function MAe(f,S,E,P){let z=Nm(E);return S.resolvedSymbol=z,P===111551?Ect(Js(E),f):Bue(f,z)}function Kkt(f){let S=ra(f);if(!S.resolvedType){let E=sY(f);if(ZM(f.symbol).size===0&&!E)S.resolvedType=Aa;else{let P=de(16,f.symbol);P.aliasSymbol=E,P.aliasTypeArguments=Zie(E),G5(f)&&f.isArrayType&&(P=vS(P)),S.resolvedType=P}}return S.resolvedType}function sY(f){let S=f.parent;for(;eO(S)||lv(S)||yN(S)&&S.operator===148;)S=S.parent;return MZ(S)?Bs(S):void 0}function Zie(f){return f?Wa(f):void 0}function Qve(f){return!!(f.flags&524288)&&!Mv(f)}function jst(f){return NP(f)||!!(f.flags&474058748)}function Zve(f,S){if(!(f.flags&1048576))return f;if(Yt(f.types,jst))return jt(f.types,NP)||ja;let E=jt(f.types,q=>!jst(q));if(!E||jt(f.types,q=>q!==E&&!jst(q)))return f;return z(E);function z(q){let oe=Au();for(let Ye of Lp(q))if(!(nT(Ye)&6)){if(ene(Ye)){let it=Ye.flags&65536&&!(Ye.flags&32768),It=Ou(16777220,Ye.escapedName,eR(Ye)|(S?8:0));It.links.type=it?ye:Eg(Js(Ye),!0),It.declarations=Ye.declarations,It.links.nameType=Nl(Ye).nameType,It.links.syntheticOrigin=Ye,oe.set(Ye.escapedName,It)}}let Fe=ml(q.symbol,oe,F,F,o1(q));return Fe.objectFlags|=131200,Fe}}function H9(f,S,E,P,z){if(f.flags&1||S.flags&1)return pt;if(f.flags&2||S.flags&2)return Ce;if(f.flags&131072)return S;if(S.flags&131072)return f;if(f=Zve(f,z),f.flags&1048576)return LAe([f,S])?oh(f,it=>H9(it,S,E,P,z)):Ie;if(S=Zve(S,z),S.flags&1048576)return LAe([f,S])?oh(S,it=>H9(f,it,E,P,z)):Ie;if(S.flags&473960444)return f;if(Wz(f)||Wz(S)){if(NP(f))return S;if(f.flags&2097152){let it=f.types,tt=it[it.length-1];if(Qve(tt)&&Qve(S))return Qu(Pl(it.slice(0,it.length-1),[H9(tt,S,E,P,z)]))}return Qu([f,S])}let q=Au(),oe=new Set,Fe=f===ja?o1(S):okt([f,S]);for(let it of Lp(S))nT(it)&6?oe.add(it.escapedName):ene(it)&&q.set(it.escapedName,Wst(it,z));for(let it of Lp(f))if(!(oe.has(it.escapedName)||!ene(it)))if(q.has(it.escapedName)){let tt=q.get(it.escapedName),It=Js(tt);if(tt.flags&16777216){let Pt=Pl(it.declarations,tt.declarations),yi=4|it.flags&16777216,Hi=Ou(yi,it.escapedName),vn=Js(it),br=g1e(vn),Qr=g1e(It);Hi.links.type=br===Qr?vn:Fc([vn,Qr],2),Hi.links.leftSpread=it,Hi.links.rightSpread=tt,Hi.declarations=Pt,Hi.links.nameType=Nl(it).nameType,q.set(it.escapedName,Hi)}}else q.set(it.escapedName,Wst(it,z));let Ye=ml(E,q,F,F,$s(Fe,it=>Al(it,z)));return Ye.objectFlags|=2228352|P,Ye}function ene(f){var S;return!En(f.declarations,qb)&&(!(f.flags&106496)||!((S=f.declarations)!=null&&S.some(E=>bc(E.parent))))}function Wst(f,S){let E=f.flags&65536&&!(f.flags&32768);if(!E&&S===DD(f))return f;let P=4|f.flags&16777216,z=Ou(P,f.escapedName,eR(f)|(S?8:0));return z.links.type=E?ye:Js(f),z.declarations=f.declarations,z.links.nameType=Nl(f).nameType,z.links.syntheticOrigin=f,z}function Al(f,S){return f.isReadonly!==S?CT(f.keyType,f.type,S,f.declaration):f}function e1e(f,S,E,P){let z=ge(f,E);return z.value=S,z.regularType=P||z,z}function U9(f){if(f.flags&2976){if(!f.freshType){let S=e1e(f.flags,f.value,f.symbol,f);S.freshType=S,f.freshType=S}return f.freshType}return f}function Ig(f){return f.flags&2976?f.regularType:f.flags&1048576?f.regularType||(f.regularType=oh(f,Ig)):f}function RF(f){return!!(f.flags&2976)&&f.freshType===f}function kC(f){let S;return ci.get(f)||(ci.set(f,S=e1e(128,f)),S)}function fg(f){let S;return gn.get(f)||(gn.set(f,S=e1e(256,f)),S)}function EP(f){let S,E=z8(f);return Sr.get(E)||(Sr.set(E,S=e1e(2048,f)),S)}function Hz(f,S,E){let P,z=`${S}${typeof f=="string"?"@":"#"}${f}`,q=1024|(typeof f=="string"?128:256);return vo.get(z)||(vo.set(z,P=e1e(q,f,E)),P)}function yqt(f){if(f.literal.kind===106)return si;let S=ra(f);return S.resolvedType||(S.resolvedType=Ig(fu(f.literal))),S.resolvedType}function RAe(f){let S=ge(8192,f);return S.escapedName=`__@${S.symbol.escapedName}@${Nf(S.symbol)}`,S}function BAe(f){if(Ys(f)&&lv(f)){let S=L3(f);S&&(f=D8(S)||S)}if(aG(f)){let S=fse(f)?Hm(f.left):Hm(f);if(S){let E=Nl(S);return E.uniqueESSymbolType||(E.uniqueESSymbolType=RAe(S))}}return cn}function dje(f){let S=Kb(f,!1,!1),E=S&&S.parent;if(E&&(bc(E)||E.kind===264)&&!Xd(S)&&(!yl(S)||G7(f,S.body)))return pS(Bs(E)).thisType;if(E&&Ld(E)&&ms(E.parent)&&wh(E.parent)===6)return pS(Hm(E.parent.left).parent).thisType;let P=f.flags&16777216?P3(f):void 0;return P&&yd(P)&&ms(P.parent)&&wh(P.parent)===3?pS(Hm(P.parent.left).parent).thisType:QN(S)&&G7(f,S.body)?pS(Bs(S)).thisType:(ki(f,j.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),Ie)}function fje(f){let S=ra(f);return S.resolvedType||(S.resolvedType=dje(f)),S.resolvedType}function Xkt(f){return al(EO(f.type)||f.type)}function EO(f){switch(f.kind){case 196:return EO(f.type);case 189:if(f.elements.length===1&&(f=f.elements[0],f.kind===191||f.kind===202&&f.dotDotDotToken))return EO(f.type);break;case 188:return f.elementType}}function vqt(f){let S=ra(f);return S.resolvedType||(S.resolvedType=f.dotDotDotToken?Xkt(f):Eg(al(f.type),!0,!!f.questionToken))}function al(f){return $Be($ue(f),f)}function $ue(f){switch(f.kind){case 133:case 312:case 313:return pt;case 159:return Ce;case 154:return Ot;case 150:return Fi;case 163:return Vn;case 136:return Cn;case 155:return cn;case 116:return Pn;case 157:return ye;case 106:return si;case 146:return Wi;case 151:return f.flags&524288&&!Ae?pt:Nr;case 141:return Ue;case 197:case 110:return fje(f);case 201:return yqt(f);case 183:return Kve(f);case 182:return f.assertsModifier?Pn:Cn;case 233:return Kve(f);case 186:return fst(f);case 188:case 189:return iqt(f);case 190:return Tst(f);case 192:return cqt(f);case 193:return fqt(f);case 314:return RJt(f);case 316:return Eg(al(f.type));case 202:return vqt(f);case 196:case 315:case 309:return al(f.type);case 191:return Xkt(f);case 318:return YKt(f);case 184:case 185:case 187:case 322:case 317:case 323:return Kkt(f);case 198:return GJ(f);case 199:return YJ(f);case 200:return QJ(f);case 194:return Lx(f);case 195:return Vz(f);case 203:return Ukt(f);case 205:return TD(f);case 80:case 166:case 211:let S=pE(f);return S?_m(S):Ie;default:return Ie}}function _je(f,S,E){if(f&&f.length)for(let P=0;PP.typeParameter),$i(E,()=>Ce))}function J9(f,S){return f?WAe(4,f,S):S}function mje(f,S){return f?WAe(5,f,S):S}function q9(f,S,E){return E?WAe(5,Uz(f,S),E):Uz(f,S)}function Vl(f,S,E){return f?WAe(5,f,Uz(S,E)):Uz(S,E)}function Qkt(f){return!f.constraint&&!xm(f)||f.constraint===Ar?f:f.restrictiveInstantiation||(f.restrictiveInstantiation=Gi(f.symbol),f.restrictiveInstantiation.constraint=Ar,f.restrictiveInstantiation)}function Vst(f){let S=Gi(f.symbol);return S.target=f,S}function Sqt(f,S){return Pue(f.kind,f.parameterName,f.parameterIndex,Ul(f.type,S))}function jF(f,S,E){let P;if(f.typeParameters&&!E){P=$i(f.typeParameters,Vst),S=J9(wC(f.typeParameters,P),S);for(let q of P)q.mapper=S}let z=n6(f.declaration,P,f.thisParameter&&$9(f.thisParameter,S),_je(f.parameters,S,$9),void 0,void 0,f.minArgumentCount,f.flags&167);return z.target=f,z.mapper=S,z}function $9(f,S){let E=Nl(f);if(E.type&&!zF(E.type)&&(!(f.flags&65536)||E.writeType&&!zF(E.writeType)))return f;Ag(f)&1&&(f=E.target,S=J9(E.mapper,S));let P=Ou(f.flags,f.escapedName,1|Ag(f)&53256);return P.declarations=f.declarations,P.parent=f.parent,P.links.target=f,P.links.mapper=S,f.valueDeclaration&&(P.valueDeclaration=f.valueDeclaration),E.nameType&&(P.links.nameType=E.nameType),P}function xqt(f,S,E,P){let z=f.objectFlags&4||f.objectFlags&8388608?f.node:f.symbol.declarations[0],q=ra(z),oe=f.objectFlags&4?q.resolvedType:f.objectFlags&64?f.target:f,Fe=f.objectFlags&134217728?f.outerTypeParameters:q.outerTypeParameters;if(!Fe){let Ye=Ua(z,!0);if(QN(z)){let tt=gkt(z);Ye=Ho(Ye,tt)}Fe=Ye||F;let it=f.objectFlags&8388612?[z]:f.symbol.declarations;Fe=(oe.objectFlags&8388612||oe.symbol.flags&8192||oe.symbol.flags&2048)&&!oe.aliasTypeArguments?Qn(Fe,tt=>En(it,It=>t1e(tt,It))):Fe,q.outerTypeParameters=Fe}if(Fe.length){let Ye=J9(f.mapper,S),it=$i(Fe,Hi=>BF(Hi,Ye)),tt=E||f.aliasSymbol,It=E?P:DP(f.aliasTypeArguments,S),Pt=(f.objectFlags&134217728?"S":"")+kD(it)+$J(tt,It);oe.instantiations||(oe.instantiations=new Map,oe.instantiations.set(kD(Fe)+$J(oe.aliasSymbol,oe.aliasTypeArguments),oe));let yi=oe.instantiations.get(Pt);if(!yi){if(f.objectFlags&134217728)return yi=yje(f,S),oe.instantiations.set(Pt,yi),yi;let Hi=wC(Fe,it);yi=oe.objectFlags&4?Gve(f.target,f.node,Hi,tt,It):oe.objectFlags&32?hje(oe,Hi,tt,It):yje(oe,Hi,tt,It),oe.instantiations.set(Pt,yi);let vn=Ls(yi);if(yi.flags&3899393&&!(vn&524288)){let br=En(it,zF);Ls(yi)&524288||(vn&52?yi.objectFlags|=524288|(br?1048576:0):yi.objectFlags|=br?0:524288)}}return yi}return f}function rE(f){return!(f.parent.kind===183&&f.parent.typeArguments&&f===f.parent.typeName||f.parent.kind===205&&f.parent.typeArguments&&f===f.parent.qualifier)}function t1e(f,S){if(f.symbol&&f.symbol.declarations&&f.symbol.declarations.length===1){let P=f.symbol.declarations[0].parent;for(let z=S;z!==P;z=z.parent)if(!z||z.kind===241||z.kind===194&&_d(z.extendsType,E))return!0;return E(S)}return!0;function E(P){switch(P.kind){case 197:return!!f.isThisType;case 80:return!f.isThisType&&jA(P)&&rE(P)&&$ue(P)===f;case 186:let z=P.exprName,q=fx(z);if(!JA(q)){let oe=SS(q),Fe=f.symbol.declarations[0],Ye=Fe.kind===168?Fe.parent:f.isThisType?Fe:void 0;if(oe.declarations&&Ye)return En(oe.declarations,it=>G7(it,Ye))||En(P.typeArguments,E)}return!0;case 174:case 173:return!P.type&&!!P.body||En(P.typeParameters,E)||En(P.parameters,E)||!!P.type&&E(P.type)}return!!_d(P,E)}}function i1e(f){let S=Ph(f);if(S.flags&4194304){let E=FL(S.type);if(E.flags&262144)return E}}function hje(f,S,E,P){let z=i1e(f);if(z){let oe=Ul(z,S);if(z!==oe)return C1e(lu(oe),q,E,P)}return Ul(Ph(f),S)===Mt?Mt:yje(f,S,E,P);function q(oe){if(oe.flags&61603843&&oe!==Mt&&!Qe(oe)){if(!f.declaration.nameType){let Fe;if(ok(oe)||oe.flags&1&&xD(z,4)<0&&(Fe=xC(z))&&KS(Fe,Y9))return n1e(oe,f,q9(z,oe,S));if(a_(oe))return DO(oe,f,z,S);if(pkt(oe))return Qu($i(oe.types,q))}return yje(f,q9(z,oe,S))}return oe}}function Hst(f,S){return S&1?!0:S&2?!1:f}function DO(f,S,E,P){let z=f.target.elementFlags,q=f.target.fixedLength,oe=q?q9(E,f,P):P,Fe=$i(Bz(f),(It,Pt)=>{let yi=z[Pt];return PtIt&1?2:It):Ye&8?$i(z,It=>It&2?1:It):z,tt=Hst(f.target.readonly,gf(S));return dr(Fe,Ie)?Ie:l6(Fe,it,tt,f.target.labeledElementDeclarations)}function n1e(f,S,E){let P=gje(S,Fi,!0,E);return Qe(P)?Ie:vS(P,Hst(ED(f),gf(S)))}function gje(f,S,E,P){let z=Vl(P,HN(f),S),q=Ul(j1(f.target||f),z),oe=gf(f);return xe&&oe&4&&!n0(q,49152)?aR(q,!0):xe&&oe&8&&E?cE(q,524288):q}function yje(f,S,E,P){Se.assert(f.symbol,"anonymous type must have symbol to be instantiated");let z=de(f.objectFlags&-1572865|64,f.symbol);if(f.objectFlags&32){z.declaration=f.declaration;let q=HN(f),oe=Vst(q);z.typeParameter=oe,S=J9(Uz(q,oe),S),oe.mapper=S}return f.objectFlags&8388608&&(z.node=f.node),f.objectFlags&134217728&&(z.outerTypeParameters=f.outerTypeParameters),z.target=f,z.mapper=S,z.aliasSymbol=E||f.aliasSymbol,z.aliasTypeArguments=E?P:DP(f.aliasTypeArguments,S),z.objectFlags|=z.aliasTypeArguments?EAe(z.aliasTypeArguments):0,z}function IO(f,S,E,P,z){let q=f.root;if(q.outerTypeParameters){let oe=$i(q.outerTypeParameters,it=>BF(it,S)),Fe=(E?"C":"")+kD(oe)+$J(P,z),Ye=q.instantiations.get(Fe);if(!Ye){let it=wC(q.outerTypeParameters,oe),tt=q.checkType,It=q.isDistributive?lu(BF(tt,it)):void 0;Ye=It&&tt!==It&&It.flags&1179648?C1e(It,Pt=>nR(q,q9(tt,Pt,it),E),P,z):nR(q,it,E,P,z),q.instantiations.set(Fe,Ye)}return Ye}return f}function Ul(f,S){return f&&S?kf(f,S,void 0,void 0):f}function kf(f,S,E,P){var z;if(!zF(f))return f;if(M===100||A>=5e6)return(z=us)==null||z.instant(us.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:f.id,instantiationDepth:M,instantiationCount:A}),ki(H,j.Type_instantiation_is_excessively_deep_and_possibly_infinite),Ie;I++,A++,M++;let q=G9(f,S,E,P);return M--,q}function G9(f,S,E,P){let z=f.flags;if(z&262144)return BF(f,S);if(z&524288){let q=f.objectFlags;if(q&52){if(q&4&&!f.node){let oe=f.resolvedTypeArguments,Fe=DP(oe,S);return Fe!==oe?xst(f.target,Fe):f}return q&1024?vje(f,S):xqt(f,S,E,P)}return f}if(z&3145728){let q=f.flags&1048576?f.origin:void 0,oe=q&&q.flags&3145728?q.types:f.types,Fe=DP(oe,S);if(Fe===oe&&E===f.aliasSymbol)return f;let Ye=E||f.aliasSymbol,it=E?P:DP(f.aliasTypeArguments,S);return z&2097152||q&&q.flags&2097152?Qu(Fe,0,Ye,it):Fc(Fe,1,Ye,it)}if(z&4194304)return JN(Ul(f.type,S));if(z&134217728)return TP(f.texts,DP(f.types,S));if(z&268435456)return OF(f.symbol,Ul(f.type,S));if(z&8388608){let q=E||f.aliasSymbol,oe=E?P:DP(f.aliasTypeArguments,S);return rk(Ul(f.objectType,S),Ul(f.indexType,S),f.accessFlags,void 0,q,oe)}if(z&16777216)return IO(f,J9(f.mapper,S),!1,E,P);if(z&33554432){let q=Ul(f.baseType,S);if(W9(f))return HBe(q);let oe=Ul(f.constraint,S);return q.flags&8650752&&wD(oe)?jue(q,oe):oe.flags&3||wf(sy(q),sy(oe))?q:q.flags&8650752?jue(q,oe):Qu([oe,q])}return f}function vje(f,S){let E=Ul(f.mappedType,S);if(!(Ls(E)&32))return f;let P=Ul(f.constraintType,S);if(!(P.flags&4194304))return f;let z=_at(Ul(f.source,S),E,P);return z||f}function tq(f){return f.flags&402915327?f:f.permissiveInstantiation||(f.permissiveInstantiation=Ul(f,Fa))}function sy(f){return f.flags&402915327?f:(f.restrictiveInstantiation||(f.restrictiveInstantiation=Ul(f,_a),f.restrictiveInstantiation.restrictiveInstantiation=f.restrictiveInstantiation),f.restrictiveInstantiation)}function rR(f,S){return CT(f.keyType,Ul(f.type,S),f.isReadonly,f.declaration)}function Lw(f){switch(Se.assert(f.kind!==174||zT(f)),f.kind){case 218:case 219:case 174:case 262:return Ust(f);case 210:return En(f.properties,Lw);case 209:return En(f.elements,Lw);case 227:return Lw(f.whenTrue)||Lw(f.whenFalse);case 226:return(f.operatorToken.kind===57||f.operatorToken.kind===61)&&(Lw(f.left)||Lw(f.right));case 303:return Lw(f.initializer);case 217:return Lw(f.expression);case 292:return En(f.properties,Lw)||Y0(f.parent)&&En(f.parent.parent.children,Lw);case 291:{let{initializer:S}=f;return!!S&&Lw(S)}case 294:{let{expression:S}=f;return!!S&&Lw(S)}}return!1}function Ust(f){return iee(f)||r1e(f)}function r1e(f){return f.typeParameters||WC(f)||!f.body?!1:f.body.kind!==241?Lw(f.body):!!Gb(f.body,S=>!!S.expression&&Lw(S.expression))}function bje(f){return(H8(f)||zT(f))&&Ust(f)}function Zkt(f){if(f.flags&524288){let S=UN(f);if(S.constructSignatures.length||S.callSignatures.length){let E=de(16,f.symbol);return E.members=S.members,E.properties=S.properties,E.callSignatures=F,E.constructSignatures=F,E.indexInfos=F,E}}else if(f.flags&2097152)return Qu($i(f.types,Zkt));return f}function d6(f,S){return $N(f,S,ny)}function Gue(f,S){return $N(f,S,ny)?-1:0}function Kue(f,S){return $N(f,S,P1)?-1:0}function Cqt(f,S){return $N(f,S,Tx)?-1:0}function Jz(f,S){return $N(f,S,Tx)}function zAe(f,S){return $N(f,S,e1)}function wf(f,S){return $N(f,S,P1)}function K9(f,S){return f.flags&1048576?Yt(f.types,E=>K9(E,S)):S.flags&1048576?En(S.types,E=>K9(f,E)):f.flags&2097152?En(f.types,E=>K9(E,S)):f.flags&58982400?K9(Pb(f)||Ce,S):_6(S)?!!(f.flags&67633152):S===er?!!(f.flags&67633152)&&!_6(f):S===wo?!!(f.flags&524288)&&Cat(f):WN(f,QM(S))||ok(S)&&!ED(S)&&K9(f,xo)}function VAe(f,S){return $N(f,S,gp)}function HAe(f,S){return VAe(f,S)||VAe(S,f)}function GS(f,S,E,P,z,q){return sE(f,S,P1,E,P,z,q)}function oR(f,S,E,P,z,q){return Sje(f,S,P1,E,P,z,q,void 0)}function Sje(f,S,E,P,z,q,oe,Fe){return $N(f,S,E)?!0:!P||!aY(z,f,S,E,q,oe,Fe)?sE(f,S,E,P,q,oe,Fe):!1}function ewt(f){return!!(f.flags&16777216||f.flags&2097152&&En(f.types,ewt))}function aY(f,S,E,P,z,q,oe){if(!f||ewt(E))return!1;if(!sE(S,E,P,void 0)&&Jst(f,S,E,P,z,q,oe))return!0;switch(f.kind){case 234:if(!nae(f))break;case 294:case 217:return aY(f.expression,S,E,P,z,q,oe);case 226:switch(f.operatorToken.kind){case 64:case 28:return aY(f.right,S,E,P,z,q,oe)}break;case 210:return nwt(f,S,E,P,q,oe);case 209:return o1e(f,S,E,P,q,oe);case 292:return iwt(f,S,E,P,q,oe);case 219:return kqt(f,S,E,P,q,oe)}return!1}function Jst(f,S,E,P,z,q,oe){let Fe=kd(S,0),Ye=kd(S,1);for(let it of[Ye,Fe])if(En(it,tt=>{let It=Op(tt);return!(It.flags&131073)&&sE(It,E,P,void 0)})){let tt=oe||{};GS(S,E,f,z,q,tt);let It=tt.errors[tt.errors.length-1];return Pd(It,ws(f,it===Ye?j.Did_you_mean_to_use_new_with_this_expression:j.Did_you_mean_to_call_this_expression)),!0}return!1}function kqt(f,S,E,P,z,q){if(qu(f.body)||En(f.parameters,Yoe))return!1;let oe=yq(S);if(!oe)return!1;let Fe=kd(E,0);if(!Z(Fe))return!1;let Ye=f.body,it=Op(oe),tt=Fc($i(Fe,Op));if(!sE(it,tt,P,void 0)){let It=Ye&&aY(Ye,it,tt,P,void 0,z,q);if(It)return It;let Pt=q||{};if(sE(it,tt,P,Ye,void 0,z,Pt),Pt.errors)return E.symbol&&Z(E.symbol.declarations)&&Pd(Pt.errors[Pt.errors.length-1],ws(E.symbol.declarations[0],j.The_expected_type_comes_from_the_return_type_of_this_signature)),!(Gg(f)&2)&&!Ln(it,"then")&&sE(G1e(it),tt,P,void 0)&&Pd(Pt.errors[Pt.errors.length-1],ws(f,j.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function twt(f,S,E){let P=FF(S,E);if(P)return P;if(S.flags&1048576){let z=nq(f,S);if(z)return FF(z,E)}}function xje(f,S){CPe(f,S,!1);let E=vne(f,1);return une(),E}function qN(f,S,E,P,z,q){let oe=!1;for(let Fe of f){let{errorNode:Ye,innerExpression:it,nameType:tt,errorMessage:It}=Fe,Pt=twt(S,E,tt);if(!Pt||Pt.flags&8388608)continue;let yi=FF(S,tt);if(!yi)continue;let Hi=Jue(tt,void 0);if(!sE(yi,Pt,P,void 0)){let vn=it&&aY(it,yi,Pt,P,void 0,z,q);if(oe=!0,!vn){let br=q||{},Qr=it?xje(it,yi):yi;if(Oe&&Yue(Qr,Pt)){let ao=ws(Ye,j.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,vs(Qr),vs(Pt));Gu.add(ao),br.errors=[ao]}else{let ao=!!(Hi&&(Ku(E,Hi)||St).flags&16777216),Ko=!!(Hi&&(Ku(S,Hi)||St).flags&16777216);Pt=qk(Pt,ao),yi=qk(yi,ao&&Ko),sE(Qr,Pt,P,Ye,It,z,br)&&Qr!==yi&&sE(yi,Pt,P,Ye,It,z,br)}if(br.errors){let ao=br.errors[br.errors.length-1],Ko=px(tt)?rT(tt):void 0,Zr=Ko!==void 0?Ku(E,Ko):void 0,jr=!1;if(!Zr){let Ss=kP(E,tt);Ss&&Ss.declaration&&!Vo(Ss.declaration).hasNoDefaultLib&&(jr=!0,Pd(ao,ws(Ss.declaration,j.The_expected_type_comes_from_this_index_signature)))}if(!jr&&(Zr&&Z(Zr.declarations)||E.symbol&&Z(E.symbol.declarations))){let Ss=Zr&&Z(Zr.declarations)?Zr.declarations[0]:E.symbol.declarations[0];Vo(Ss).hasNoDefaultLib||Pd(ao,ws(Ss,j.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,Ko&&!(tt.flags&8192)?Ba(Ko):vs(tt),vs(E)))}}}}}return oe}function f6(f,S,E,P,z,q){let oe=cy(E,XAe),Fe=cy(E,tt=>!XAe(tt)),Ye=Fe!==Wi?m4e(13,0,Fe,void 0):void 0,it=!1;for(let tt=f.next();!tt.done;tt=f.next()){let{errorNode:It,innerExpression:Pt,nameType:yi,errorMessage:Hi}=tt.value,vn=Ye,br=oe!==Wi?twt(S,oe,yi):void 0;if(br&&!(br.flags&8388608)&&(vn=Ye?Fc([Ye,br]):br),!vn)continue;let Qr=FF(S,yi);if(!Qr)continue;let ao=Jue(yi,void 0);if(!sE(Qr,vn,P,void 0)){let Ko=Pt&&aY(Pt,Qr,vn,P,void 0,z,q);if(it=!0,!Ko){let Zr=q||{},jr=Pt?xje(Pt,Qr):Qr;if(Oe&&Yue(jr,vn)){let Ss=ws(It,j.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,vs(jr),vs(vn));Gu.add(Ss),Zr.errors=[Ss]}else{let Ss=!!(ao&&(Ku(oe,ao)||St).flags&16777216),Ds=!!(ao&&(Ku(S,ao)||St).flags&16777216);vn=qk(vn,Ss),Qr=qk(Qr,Ss&&Ds),sE(jr,vn,P,It,Hi,z,Zr)&&jr!==Qr&&sE(Qr,vn,P,It,Hi,z,Zr)}}}}return it}function*wqt(f){if(Z(f.properties))for(let S of f.properties)ZA(S)||dWe(Yj(S.name))||(yield{errorNode:S.name,innerExpression:S.initializer,nameType:kC(Yj(S.name))})}function*tne(f,S){if(!Z(f.children))return;let E=0;for(let P=0;P1,br,Qr;if(ZBe(!1)!==Vc){let Ko=bst(pt);br=cy(yi,Zr=>wf(Zr,Ko)),Qr=cy(yi,Zr=>!wf(Zr,Ko))}else br=cy(yi,XAe),Qr=cy(yi,Ko=>!XAe(Ko));if(vn){if(br!==Wi){let Ko=l6(dne(it,0)),Zr=tne(it,Ye);oe=f6(Zr,Ko,br,P,z,q)||oe}else if(!$N(rk(S,Pt),yi,P)){oe=!0;let Ko=ki(it.openingElement.tagName,j.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,It,vs(yi));q&&q.skipLogging&&(q.errors||(q.errors=[])).push(Ko)}}else if(Qr!==Wi){let Ko=Hi[0],Zr=qst(Ko,Pt,Ye);Zr&&(oe=qN(function*(){yield Zr}(),S,E,P,z,q)||oe)}else if(!$N(rk(S,Pt),yi,P)){oe=!0;let Ko=ki(it.openingElement.tagName,j.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,It,vs(yi));q&&q.skipLogging&&(q.errors||(q.errors=[])).push(Ko)}}return oe;function Ye(){if(!Fe){let it=_h(f.parent.tagName),tt=xde(sB(f)),It=tt===void 0?"children":Ba(tt),Pt=rk(E,kC(It)),yi=j._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;Fe={...yi,key:"!!ALREADY FORMATTED!!",message:sU(yi,it,It,vs(Pt))}}return Fe}}function*Cje(f,S){let E=Z(f.elements);if(E)for(let P=0;PYe:tA(f)>Ye))return P&&!(E&8)&&z(j.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,tA(f),Ye),0;f.typeParameters&&f.typeParameters!==S.typeParameters&&(S=jBe(S),f=mct(f,S,void 0,oe));let tt=Xk(f),It=J1e(f),Pt=J1e(S);(It||Pt)&&Ul(It||Pt,Fe);let yi=S.declaration?S.declaration.kind:0,Hi=!(E&3)&&be&&yi!==174&&yi!==173&&yi!==176,vn=-1,br=PF(f);if(br&&br!==Pn){let Ko=PF(S);if(Ko){let Zr=!Hi&&oe(br,Ko,!1)||oe(Ko,br,P);if(!Zr)return P&&z(j.The_this_types_of_each_signature_are_incompatible),0;vn&=Zr}}let Qr=It||Pt?Math.min(tt,Ye):Math.max(tt,Ye),ao=It||Pt?Qr-1:-1;for(let Ko=0;Ko=tA(f)&&Ko=3&&S[0].flags&32768&&S[1].flags&65536&&En(S,_6)?67108864:0)}return!!(f.objectFlags&67108864)}return!1}function iq(f){return!!((f.flags&1048576?f.types[0]:f).flags&32768)}function Tje(f){let S=f.flags&1048576?f.types[0]:f;return!!(S.flags&32768)&&S!==pe}function owt(f){return f.flags&524288&&!Mv(f)&&Lp(f).length===0&&o1(f).length===1&&!!AL(f,Ot)||f.flags&3145728&&Yt(f.types,owt)||!1}function UAe(f,S,E){let P=f.flags&8?B0(f):f,z=S.flags&8?B0(S):S;if(P===z)return!0;if(P.escapedName!==z.escapedName||!(P.flags&256)||!(z.flags&256))return!1;let q=Nf(P)+","+Nf(z),oe=lD.get(q);if(oe!==void 0&&!(oe&2&&E))return!!(oe&1);let Fe=Js(z);for(let Ye of Lp(Js(P)))if(Ye.flags&8){let it=Ku(Fe,Ye.escapedName);if(!it||!(it.flags&8))return E&&E(j.Property_0_is_missing_in_type_1,Bc(Ye),vs(_m(z),void 0,64)),lD.set(q,2),!1;let tt=Eq(Kp(Ye,306)).value,It=Eq(Kp(it,306)).value;if(tt!==It){let Pt=typeof tt=="string",yi=typeof It=="string";if(tt!==void 0&&It!==void 0){if(E){let Hi=Pt?`"${w4(tt)}"`:tt,vn=yi?`"${w4(It)}"`:It;E(j.Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given,Bc(z),Bc(it),vn,Hi)}return lD.set(q,2),!1}if(Pt||yi){if(E){let Hi=tt??It;Se.assert(typeof Hi=="string");let vn=`"${w4(Hi)}"`;E(j.One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value,Bc(z),Bc(it),vn)}return lD.set(q,2),!1}}}return lD.set(q,1),!0}function Xue(f,S,E,P){let z=f.flags,q=S.flags;return q&1||z&131072||f===Mt||q&2&&!(E===e1&&z&1)?!0:q&131072?!1:!!(z&402653316&&q&4||z&128&&z&1024&&q&128&&!(q&1024)&&f.value===S.value||z&296&&q&8||z&256&&z&1024&&q&256&&!(q&1024)&&f.value===S.value||z&2112&&q&64||z&528&&q&16||z&12288&&q&4096||z&32&&q&32&&f.symbol.escapedName===S.symbol.escapedName&&UAe(f.symbol,S.symbol,P)||z&1024&&q&1024&&(z&1048576&&q&1048576&&UAe(f.symbol,S.symbol,P)||z&2944&&q&2944&&f.value===S.value&&UAe(f.symbol,S.symbol,P))||z&32768&&(!xe&&!(q&3145728)||q&49152)||z&65536&&(!xe&&!(q&3145728)||q&65536)||z&524288&&q&67108864&&!(E===e1&&_6(f)&&!(Ls(f)&8192))||(E===P1||E===gp)&&(z&1||z&8&&(q&32||q&256&&q&1024)||z&256&&!(z&1024)&&(q&32||q&256&&q&1024&&f.value===S.value)||rwt(S)))}function $N(f,S,E){if(RF(f)&&(f=f.regularType),RF(S)&&(S=S.regularType),f===S)return!0;if(E!==ny){if(E===gp&&!(S.flags&131072)&&Xue(S,f,E)||Xue(f,S,E))return!0}else if(!((f.flags|S.flags)&61865984)){if(f.flags!==S.flags)return!1;if(f.flags&67358815)return!0}if(f.flags&524288&&S.flags&524288){let P=E.get($Ae(f,S,0,E,!1));if(P!==void 0)return!!(P&1)}return f.flags&469499904||S.flags&469499904?sE(f,S,E,void 0):!1}function a1e(f,S){return Ls(f)&2048&&dWe(S.escapedName)}function ine(f,S){for(;;){let E=RF(f)?f.regularType:jL(f)?Dqt(f,S):Ls(f)&4?f.node?wP(f.target,nh(f)):eat(f)||f:f.flags&3145728?Kst(f,S):f.flags&33554432?S?f.baseType:UBe(f):f.flags&25165824?Jk(f,S):f;if(E===f)return E;f=E}}function Kst(f,S){let E=lu(f);if(E!==f)return E;if(f.flags&2097152&&Eqt(f)){let P=$s(f.types,z=>ine(z,S));if(P!==f.types)return Qu(P)}return f}function Eqt(f){let S=!1,E=!1;for(let P of f.types)if(S||(S=!!(P.flags&465829888)),E||(E=!!(P.flags&98304)||_6(P)),S&&E)return!0;return!1}function Dqt(f,S){let E=Bz(f),P=$s(E,z=>z.flags&25165824?Jk(z,S):z);return E!==P?Cst(f.target,P):f}function sE(f,S,E,P,z,q,oe){var Fe;let Ye,it,tt,It,Pt,yi,Hi=0,vn=0,br=0,Qr=0,ao=!1,Ko=0,Zr=0,jr,Ss,Ds=16e6-E.size>>3;Se.assert(E!==ny||!P,"no error reporting in identity checking");let Sa=Lr(f,S,3,!!P,z);if(Ss&&sm(),ao){let zi=$Ae(f,S,0,E,!1);E.set(zi,2|(Ds<=0?32:64)),(Fe=us)==null||Fe.instant(us.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:f.id,targetId:S.id,depth:vn,targetDepth:br});let en=Ds<=0?j.Excessive_complexity_comparing_types_0_and_1:j.Excessive_stack_depth_comparing_types_0_and_1,pr=ki(P||H,en,vs(f),vs(S));oe&&(oe.errors||(oe.errors=[])).push(pr)}else if(Ye){if(q){let pr=q();pr&&(Hse(pr,Ye),Ye=pr)}let zi;if(z&&P&&!Sa&&f.symbol){let pr=Nl(f.symbol);if(pr.originatingImport&&!Kx(pr.originatingImport)&&sE(Js(pr.target),S,E,void 0)){let pn=ws(pr.originatingImport,j.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead);zi=ar(zi,pn)}}let en=WT(Vo(P),P,Ye,zi);it&&Pd(en,...it),oe&&(oe.errors||(oe.errors=[])).push(en),(!oe||!oe.skipLogging)&&Gu.add(en)}return P&&oe&&oe.skipLogging&&Sa===0&&Se.assert(!!oe.errors,"missed opportunity to interact with error."),Sa!==0;function Oa(zi){Ye=zi.errorInfo,jr=zi.lastSkippedInfo,Ss=zi.incompatibleStack,Ko=zi.overrideNextErrorInfo,Zr=zi.skipParentCounter,it=zi.relatedInfo}function wd(){return{errorInfo:Ye,lastSkippedInfo:jr,incompatibleStack:Ss?.slice(),overrideNextErrorInfo:Ko,skipParentCounter:Zr,relatedInfo:it?.slice()}}function Td(zi,...en){Ko++,jr=void 0,(Ss||(Ss=[])).push([zi,...en])}function sm(){let zi=Ss||[];Ss=void 0;let en=jr;if(jr=void 0,zi.length===1){ol(...zi[0]),en&&Kr(void 0,...en);return}let pr="",fo=[];for(;zi.length;){let[pn,...kr]=zi.pop();switch(pn.code){case j.Types_of_property_0_are_incompatible.code:{pr.indexOf("new ")===0&&(pr=`(${pr})`);let Mo=""+kr[0];pr.length===0?pr=`${Mo}`:Jb(Mo,h_(X))?pr=`${pr}.${Mo}`:Mo[0]==="["&&Mo[Mo.length-1]==="]"?pr=`${pr}${Mo}`:pr=`${pr}[${Mo}]`;break}case j.Call_signature_return_types_0_and_1_are_incompatible.code:case j.Construct_signature_return_types_0_and_1_are_incompatible.code:case j.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case j.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:{if(pr.length===0){let Mo=pn;pn.code===j.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?Mo=j.Call_signature_return_types_0_and_1_are_incompatible:pn.code===j.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(Mo=j.Construct_signature_return_types_0_and_1_are_incompatible),fo.unshift([Mo,kr[0],kr[1]])}else{let Mo=pn.code===j.Construct_signature_return_types_0_and_1_are_incompatible.code||pn.code===j.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",fr=pn.code===j.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||pn.code===j.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";pr=`${Mo}${pr}(${fr})`}break}case j.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{fo.unshift([j.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,kr[0],kr[1]]);break}case j.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{fo.unshift([j.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,kr[0],kr[1],kr[2]]);break}default:return Se.fail(`Unhandled Diagnostic: ${pn.code}`)}}pr?ol(pr[pr.length-1]===")"?j.The_types_returned_by_0_are_incompatible_between_these_types:j.The_types_of_0_are_incompatible_between_these_types,pr):fo.shift();for(let[pn,...kr]of fo){let Mo=pn.elidedInCompatabilityPyramid;pn.elidedInCompatabilityPyramid=!1,ol(pn,...kr),pn.elidedInCompatabilityPyramid=Mo}en&&Kr(void 0,...en)}function ol(zi,...en){Se.assert(!!P),Ss&&sm(),!zi.elidedInCompatabilityPyramid&&(Zr===0?Ye=Zl(Ye,zi,...en):Zr--)}function vh(zi,...en){ol(zi,...en),Zr++}function or(zi){Se.assert(!!Ye),it?it.push(zi):it=[zi]}function Kr(zi,en,pr){Ss&&sm();let[fo,pn]=KM(en,pr),kr=en,Mo=fo;if(ide(en)&&!c1e(pr)&&(kr=RL(en),Se.assert(!wf(kr,pr),"generalized source shouldn't be assignable"),Mo=TF(kr)),(pr.flags&8388608&&!(en.flags&8388608)?pr.objectType.flags:pr.flags)&262144&&pr!==kn&&pr!==ke){let Do=Pb(pr),As;Do&&(wf(kr,Do)||(As=wf(en,Do)))?ol(j._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,As?fo:Mo,pn,vs(Do)):(Ye=void 0,ol(j._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,pn,Mo))}if(zi)zi===j.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&Oe&&swt(en,pr).length&&(zi=j.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties);else if(E===gp)zi=j.Type_0_is_not_comparable_to_type_1;else if(fo===pn)zi=j.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(Oe&&swt(en,pr).length)zi=j.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties;else{if(en.flags&128&&pr.flags&1048576){let Do=U$t(en,pr);if(Do){ol(j.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,Mo,pn,vs(Do));return}}zi=j.Type_0_is_not_assignable_to_type_1}ol(zi,Mo,pn)}function bn(zi,en){let pr=vP(zi.symbol)?vs(zi,zi.symbol.valueDeclaration):vs(zi),fo=vP(en.symbol)?vs(en,en.symbol.valueDeclaration):vs(en);(Lc===zi&&Ot===en||tl===zi&&Fi===en||il===zi&&Cn===en||Dkt()===zi&&cn===en)&&ol(j._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,fo,pr)}function Gn(zi,en,pr){return a_(zi)?zi.target.readonly&&tde(en)?(pr&&ol(j.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,vs(zi),vs(en)),!1):Y9(en):ED(zi)&&tde(en)?(pr&&ol(j.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,vs(zi),vs(en)),!1):a_(en)?ok(zi):!0}function eo(zi,en,pr){return Lr(zi,en,3,pr)}function Lr(zi,en,pr=3,fo=!1,pn,kr=0){if(zi===en)return-1;if(zi.flags&524288&&en.flags&402784252)return E===gp&&!(en.flags&131072)&&Xue(en,zi,E)||Xue(zi,en,E,fo?ol:void 0)?-1:(fo&&ga(zi,en,zi,en,pn),0);let Mo=ine(zi,!1),fr=ine(en,!0);if(Mo===fr)return-1;if(E===ny)return Mo.flags!==fr.flags?0:Mo.flags&67358815?-1:(lc(Mo,fr),kp(Mo,fr,!1,0,pr));if(Mo.flags&262144&&Iz(Mo)===fr)return-1;if(Mo.flags&470302716&&fr.flags&1048576){let Do=fr.types,As=Do.length===2&&Do[0].flags&98304?Do[1]:Do.length===3&&Do[0].flags&98304&&Do[1].flags&98304?Do[2]:void 0;if(As&&!(As.flags&98304)&&(fr=ine(As,!0),Mo===fr))return-1}if(E===gp&&!(fr.flags&131072)&&Xue(fr,Mo,E)||Xue(Mo,fr,E,fo?ol:void 0))return-1;if(Mo.flags&469499904||fr.flags&469499904){if(!(kr&2)&&OO(Mo)&&Ls(Mo)&8192&&Ht(Mo,fr,fo))return fo&&Kr(pn,Mo,en.aliasSymbol?en:fr),0;let As=(E!==gp||KN(Mo))&&!(kr&2)&&Mo.flags&405405692&&Mo!==er&&fr.flags&2621440&&Xst(fr)&&(Lp(Mo).length>0||kze(Mo)),_o=!!(Ls(Mo)&2048);if(As&&!Iqt(Mo,fr,_o)){if(fo){let uc=vs(zi.aliasSymbol?zi:Mo),el=vs(en.aliasSymbol?en:fr),Mc=kd(Mo,0),Lu=kd(Mo,1);Mc.length>0&&Lr(Op(Mc[0]),fr,1,!1)||Lu.length>0&&Lr(Op(Lu[0]),fr,1,!1)?ol(j.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,uc,el):ol(j.Type_0_has_no_properties_in_common_with_type_1,uc,el)}return 0}lc(Mo,fr);let ns=Mo.flags&1048576&&Mo.types.length<4&&!(fr.flags&1048576)||fr.flags&1048576&&fr.types.length<4&&!(Mo.flags&469499904)?so(Mo,fr,fo,kr):kp(Mo,fr,fo,kr,pr);if(ns)return ns}return fo&&ga(zi,en,Mo,fr,pn),0}function ga(zi,en,pr,fo,pn){var kr,Mo;let fr=!!eat(zi),Do=!!eat(en);pr=zi.aliasSymbol||fr?zi:pr,fo=en.aliasSymbol||Do?en:fo;let As=Ko>0;if(As&&Ko--,pr.flags&524288&&fo.flags&524288){let _o=Ye;Gn(pr,fo,!0),Ye!==_o&&(As=!!Ye)}if(pr.flags&524288&&fo.flags&402784252)bn(pr,fo);else if(pr.symbol&&pr.flags&524288&&er===pr)ol(j.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(Ls(pr)&2048&&fo.flags&2097152){let _o=fo.types,Is=oB(lT.IntrinsicAttributes,P),ns=oB(lT.IntrinsicClassAttributes,P);if(!Qe(Is)&&!Qe(ns)&&(dr(_o,Is)||dr(_o,ns)))return}else Ye=hS(Ye,en);if(!pn&&As){let _o=wd();Kr(pn,pr,fo);let Is;Ye&&Ye!==_o.errorInfo&&(Is={code:Ye.code,messageText:Ye.messageText}),Oa(_o),Is&&Ye&&(Ye.canonicalHead=Is),jr=[pr,fo];return}if(Kr(pn,pr,fo),pr.flags&262144&&((Mo=(kr=pr.symbol)==null?void 0:kr.declarations)!=null&&Mo[0])&&!Iz(pr)){let _o=Vst(pr);if(_o.constraint=Ul(fo,Uz(pr,_o)),Iue(_o)){let Is=vs(fo,pr.symbol.declarations[0]);or(ws(pr.symbol.declarations[0],j.This_type_parameter_might_need_an_extends_0_constraint,Is))}}}function lc(zi,en){if(us&&zi.flags&3145728&&en.flags&3145728){let pr=zi,fo=en;if(pr.objectFlags&fo.objectFlags&32768)return;let pn=pr.types.length,kr=fo.types.length;pn*kr>1e6&&us.instant(us.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:zi.id,sourceSize:pn,targetId:en.id,targetSize:kr,pos:P?.pos,end:P?.end})}}function ii(zi,en){return Fc($m(zi,(fo,pn)=>{var kr;pn=qS(pn);let Mo=pn.flags&3145728?YX(pn,en):Dz(pn,en),fr=Mo&&Js(Mo)||((kr=gS(pn,en))==null?void 0:kr.type)||ye;return ar(fo,fr)},void 0)||F)}function Ht(zi,en,pr){var fo;if(!xY(en)||!Ae&&Ls(en)&4096)return!1;let pn=!!(Ls(zi)&2048);if((E===P1||E===gp)&&(gY(er,en)||!pn&&NP(en)))return!1;let kr=en,Mo;en.flags&1048576&&(kr=mo(zi,en,Lr)||Xn(en),Mo=kr.flags&1048576?kr.types:[kr]);for(let fr of Lp(zi))if(sr(fr,zi.symbol)&&!a1e(zi,fr)){if(!EPe(kr,fr.escapedName,pn)){if(pr){let Do=cy(kr,xY);if(!P)return Se.fail();if(wk(P)||nv(P)||nv(P.parent)){fr.valueDeclaration&&_b(fr.valueDeclaration)&&Vo(P)===Vo(fr.valueDeclaration.name)&&(P=fr.valueDeclaration.name);let As=zl(fr),_o=CTt(As,Do),Is=_o?zl(_o):void 0;Is?ol(j.Property_0_does_not_exist_on_type_1_Did_you_mean_2,As,vs(Do),Is):ol(j.Property_0_does_not_exist_on_type_1,As,vs(Do))}else{let As=((fo=zi.symbol)==null?void 0:fo.declarations)&&Ed(zi.symbol.declarations),_o;if(fr.valueDeclaration&&go(fr.valueDeclaration,Is=>Is===As)&&Vo(As)===Vo(P)){let Is=fr.valueDeclaration;Se.assertNode(Is,FC);let ns=Is.name;P=ns,Ai(ns)&&(_o=kTt(ns,Do))}_o!==void 0?vh(j.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,zl(fr),vs(Do),_o):vh(j.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,zl(fr),vs(Do))}}return!0}if(Mo&&!Lr(Js(fr),ii(Mo,fr.escapedName),3,pr))return pr&&Td(j.Types_of_property_0_are_incompatible,zl(fr)),!0}return!1}function sr(zi,en){return zi.valueDeclaration&&en.valueDeclaration&&zi.valueDeclaration.parent===en.valueDeclaration}function so(zi,en,pr,fo){if(zi.flags&1048576){if(en.flags&1048576){let pn=zi.origin;if(pn&&pn.flags&2097152&&en.aliasSymbol&&dr(pn.types,en))return-1;let kr=en.origin;if(kr&&kr.flags&1048576&&zi.aliasSymbol&&dr(kr.types,zi))return-1}return E===gp?qa(zi,en,pr&&!(zi.flags&402784252),fo):Gl(zi,en,pr&&!(zi.flags&402784252),fo)}if(en.flags&1048576)return No(y1e(zi),en,pr&&!(zi.flags&402784252)&&!(en.flags&402784252),fo);if(en.flags&2097152)return Es(zi,en,pr,2);if(E===gp&&en.flags&402784252){let pn=$s(zi.types,kr=>kr.flags&465829888?Pb(kr)||Ce:kr);if(pn!==zi.types){if(zi=Qu(pn),zi.flags&131072)return 0;if(!(zi.flags&2097152))return Lr(zi,en,1,!1)||Lr(en,zi,1,!1)}}return qa(zi,en,!1,1)}function Uo(zi,en){let pr=-1,fo=zi.types;for(let pn of fo){let kr=No(pn,en,!1,0);if(!kr)return 0;pr&=kr}return pr}function No(zi,en,pr,fo){let pn=en.types;if(en.flags&1048576){if(LL(pn,zi))return-1;if(E!==gp&&Ls(en)&32768&&!(zi.flags&1024)&&(zi.flags&2688||(E===Tx||E===e1)&&zi.flags&256)){let Mo=zi===zi.regularType?zi.freshType:zi.regularType,fr=zi.flags&128?Ot:zi.flags&256?Fi:zi.flags&2048?Vn:void 0;return fr&&LL(pn,fr)||Mo&&LL(pn,Mo)?-1:0}let kr=zje(en,zi);if(kr){let Mo=Lr(zi,kr,2,!1,void 0,fo);if(Mo)return Mo}}for(let kr of pn){let Mo=Lr(zi,kr,2,!1,void 0,fo);if(Mo)return Mo}if(pr){let kr=nq(zi,en,Lr);kr&&Lr(zi,kr,2,!0,void 0,fo)}return 0}function Es(zi,en,pr,fo){let pn=-1,kr=en.types;for(let Mo of kr){let fr=Lr(zi,Mo,2,pr,void 0,fo);if(!fr)return 0;pn&=fr}return pn}function qa(zi,en,pr,fo){let pn=zi.types;if(zi.flags&1048576&&LL(pn,en))return-1;let kr=pn.length;for(let Mo=0;Mo=Mo.types.length&&kr.length%Mo.types.length===0){let _o=Lr(Do,Mo.types[fr%Mo.types.length],3,!1,void 0,fo);if(_o){pn&=_o;continue}}let As=Lr(Do,en,1,pr,void 0,fo);if(!As)return 0;pn&=As}return pn}function zu(zi=F,en=F,pr=F,fo,pn){if(zi.length!==en.length&&E===ny)return 0;let kr=zi.length<=en.length?zi.length:en.length,Mo=-1;for(let fr=0;fr(uc|=Lu?16:8,ns(Lu)));let el;return Qr===3?((kr=us)==null||kr.instant(us.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:zi.id,sourceIdStack:Pt.map(Lu=>Lu.id),targetId:en.id,targetIdStack:yi.map(Lu=>Lu.id),depth:vn,targetDepth:br}),el=3):((Mo=us)==null||Mo.push(us.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:zi.id,targetId:en.id}),el=ji(zi,en,pr,fo),(fr=us)==null||fr.pop()),cc&&(cc=ns),pn&1&&vn--,pn&2&&br--,Qr=Is,el?(el===-1||vn===0&&br===0)&&Mc(el===-1||el===3):(E.set(Do,2|uc),Ds--,Mc(!1)),el;function Mc(Lu){for(let Qp=_o;Qpfr!==zi)&&(kr=Lr(Mo,en,1,!1,void 0,fo))}kr&&!(fo&2)&&en.flags&2097152&&!Wz(en)&&zi.flags&2621440?(kr&=lr(zi,en,pr,void 0,!1,0),kr&&OO(zi)&&Ls(zi)&8192&&(kr&=hc(zi,en,!1,pr,0))):kr&&Qve(en)&&!Y9(en)&&zi.flags&2097152&&qS(zi).flags&3670016&&!En(zi.types,Mo=>Mo===en||!!(Ls(Mo)&262144))&&(kr&=lr(zi,en,pr,void 0,!0,fo))}return kr&&Oa(pn),kr}function rn(zi,en){let pr=qS(bO(en)),fo=[];return VN(pr,8576,!1,pn=>void fo.push(Ul(zi,Vl(en.mapper,HN(en),pn)))),Fc(fo)}function Cr(zi,en,pr,fo,pn){let kr,Mo,fr=!1,Do=zi.flags,As=en.flags;if(E===ny){if(Do&3145728){let ns=Uo(zi,en);return ns&&(ns&=Uo(en,zi)),ns}if(Do&4194304)return Lr(zi.type,en.type,3,!1);if(Do&8388608&&(kr=Lr(zi.objectType,en.objectType,3,!1))&&(kr&=Lr(zi.indexType,en.indexType,3,!1))||Do&16777216&&zi.root.isDistributive===en.root.isDistributive&&(kr=Lr(zi.checkType,en.checkType,3,!1))&&(kr&=Lr(zi.extendsType,en.extendsType,3,!1))&&(kr&=Lr(TO(zi),TO(en),3,!1))&&(kr&=Lr(MF(zi),MF(en),3,!1))||Do&33554432&&(kr=Lr(zi.baseType,en.baseType,3,!1))&&(kr&=Lr(zi.constraint,en.constraint,3,!1)))return kr;if(!(Do&524288))return 0}else if(Do&3145728||As&3145728){if(kr=so(zi,en,pr,fo))return kr;if(!(Do&465829888||Do&524288&&As&1048576||Do&2097152&&As&467402752))return 0}if(Do&17301504&&zi.aliasSymbol&&zi.aliasTypeArguments&&zi.aliasSymbol===en.aliasSymbol&&!(Que(zi)||Que(en))){let ns=rq(zi.aliasSymbol);if(ns===F)return 1;let uc=Nl(zi.aliasSymbol).typeParameters,el=Px(uc),Mc=s1(zi.aliasTypeArguments,uc,el,Ys(zi.aliasSymbol.valueDeclaration)),Lu=s1(en.aliasTypeArguments,uc,el,Ys(zi.aliasSymbol.valueDeclaration)),Qp=Is(Mc,Lu,ns,fo);if(Qp!==void 0)return Qp}if(nde(zi)&&!zi.target.readonly&&(kr=Lr(nh(zi)[0],en,1))||nde(en)&&(en.target.readonly||tde(Pb(zi)||zi))&&(kr=Lr(zi,nh(en)[0],2)))return kr;if(As&262144){if(Ls(zi)&32&&!zi.declaration.nameType&&Lr(JN(en),Ph(zi),3)&&!(gf(zi)&4)){let ns=j1(zi),uc=rk(en,HN(zi));if(kr=Lr(ns,uc,3,pr))return kr}if(E===gp&&Do&262144){let ns=xC(zi);if(ns)for(;ns&&uE(ns,uc=>!!(uc.flags&262144));){if(kr=Lr(ns,en,1,!1))return kr;ns=xC(ns)}return 0}}else if(As&4194304){let ns=en.type;if(Do&4194304&&(kr=Lr(ns,zi.type,3,!1)))return kr;if(a_(ns)){if(kr=Lr(zi,kst(ns),2,pr))return kr}else{let uc=xAe(ns);if(uc){if(Lr(zi,JN(uc,en.indexFlags|4),2,pr)===-1)return-1}else if(Mv(ns)){let el=r6(ns),Mc=Ph(ns),Lu;if(el&&xP(ns)){let Qp=rn(el,ns);Lu=Fc([Qp,el])}else Lu=el||Mc;if(Lr(zi,Lu,2,pr)===-1)return-1}}}else if(As&8388608){if(Do&8388608){if((kr=Lr(zi.objectType,en.objectType,3,pr))&&(kr&=Lr(zi.indexType,en.indexType,3,pr)),kr)return kr;pr&&(Mo=Ye)}if(E===P1||E===gp){let ns=en.objectType,uc=en.indexType,el=Pb(ns)||ns,Mc=Pb(uc)||uc;if(!Wz(el)&&!zz(Mc)){let Lu=4|(el!==ns?2:0),Qp=FF(el,Mc,Lu);if(Qp){if(pr&&Mo&&Oa(pn),kr=Lr(zi,Qp,2,pr,void 0,fo))return kr;pr&&Mo&&Ye&&(Ye=_o([Mo])<=_o([Ye])?Mo:Ye)}}}pr&&(Mo=void 0)}else if(Mv(en)&&E!==ny){let ns=!!en.declaration.nameType,uc=j1(en),el=gf(en);if(!(el&8)){if(!ns&&uc.flags&8388608&&uc.objectType===zi&&uc.indexType===HN(en))return-1;if(!Mv(zi)){let Mc=ns?r6(en):Ph(en),Lu=JN(zi,2),Qp=el&4,Oh=Qp?KX(Mc,Lu):void 0;if(Qp?!(Oh.flags&131072):Lr(Mc,Lu,3)){let Zn=j1(en),fa=HN(en),Ac=$z(Zn,-98305);if(!ns&&Ac.flags&8388608&&Ac.indexType===fa){if(kr=Lr(zi,Ac.objectType,2,pr))return kr}else{let oc=ns?Oh||Mc:Oh?Qu([Oh,fa]):fa,Ka=rk(zi,oc);if(kr=Lr(Ka,Zn,3,pr))return kr}}Mo=Ye,Oa(pn)}}}else if(As&16777216){if(sR(en,yi,br,10))return 3;let ns=en;if(!ns.root.inferTypeParameters&&!oY(ns.root)&&!(zi.flags&16777216&&zi.root===ns.root)){let uc=!wf(tq(ns.checkType),tq(ns.extendsType)),el=!uc&&wf(sy(ns.checkType),sy(ns.extendsType));if((kr=uc?-1:Lr(zi,TO(ns),2,!1,void 0,fo))&&(kr&=el?-1:Lr(zi,MF(ns),2,!1,void 0,fo),kr))return kr}}else if(As&134217728){if(Do&134217728){if(E===gp)return Uqt(zi,en)?0:-1;Ul(zi,vl)}if(bS(zi,en))return-1}else if(en.flags&268435456&&!(zi.flags&268435456)&&v1e(zi,en))return-1;if(Do&8650752){if(!(Do&8388608&&As&8388608)){let ns=Iz(zi)||Ce;if(kr=Lr(ns,en,1,!1,void 0,fo))return kr;if(kr=Lr(Aw(ns,zi),en,1,pr&&ns!==Ce&&!(As&Do&262144),void 0,fo))return kr;if(PBe(zi)){let uc=Iz(zi.indexType);if(uc&&(kr=Lr(rk(zi.objectType,uc),en,1,pr)))return kr}}}else if(Do&4194304){let ns=OAe(zi.type,zi.indexFlags)&&Ls(zi.type)&32;if(kr=Lr(ir,en,1,pr&&!ns))return kr;if(ns){let uc=zi.type,el=r6(uc),Mc=el&&xP(uc)?rn(el,uc):el||Ph(uc);if(kr=Lr(Mc,en,1,pr))return kr}}else if(Do&134217728&&!(As&524288)){if(!(As&134217728)){let ns=Pb(zi);if(ns&&ns!==zi&&(kr=Lr(ns,en,1,pr)))return kr}}else if(Do&268435456)if(As&268435456){if(zi.symbol!==en.symbol)return 0;if(kr=Lr(zi.type,en.type,3,pr))return kr}else{let ns=Pb(zi);if(ns&&(kr=Lr(ns,en,1,pr)))return kr}else if(Do&16777216){if(sR(zi,Pt,vn,10))return 3;if(As&16777216){let el=zi.root.inferTypeParameters,Mc=zi.extendsType,Lu;if(el){let Qp=sde(el,void 0,0,eo);kT(Qp.inferences,en.extendsType,Mc,1536),Mc=Ul(Mc,Qp.mapper),Lu=Qp.mapper}if(d6(Mc,en.extendsType)&&(Lr(zi.checkType,en.checkType,3)||Lr(en.checkType,zi.checkType,3))&&((kr=Lr(Ul(TO(zi),Lu),TO(en),3,pr))&&(kr&=Lr(MF(zi),MF(en),3,pr)),kr))return kr}let ns=CAe(zi);if(ns&&(kr=Lr(ns,en,1,pr)))return kr;let uc=!(As&16777216)&&Iue(zi)?Nz(zi):void 0;if(uc&&(Oa(pn),kr=Lr(uc,en,1,pr)))return kr}else{if(E!==Tx&&E!==e1&&NJt(en)&&NP(zi))return-1;if(Mv(en))return Mv(zi)&&(kr=Jt(zi,en,pr))?kr:0;let ns=!!(Do&402784252);if(E!==ny)zi=qS(zi),Do=zi.flags;else if(Mv(zi))return 0;if(Ls(zi)&4&&Ls(en)&4&&zi.target===en.target&&!a_(zi)&&!(Que(zi)||Que(en))){if(s_(zi))return-1;let uc=Eje(zi.target);if(uc===F)return 1;let el=Is(nh(zi),nh(en),uc,fo);if(el!==void 0)return el}else{if(ED(en)?KS(zi,Y9):ok(en)&&KS(zi,uc=>a_(uc)&&!uc.target.readonly))return E!==ny?Lr(o6(zi,Fi)||pt,o6(en,Fi)||pt,3,pr):0;if(jL(zi)&&a_(en)&&!jL(en)){let uc=CP(zi);if(uc!==zi)return Lr(uc,en,1,pr)}else if((E===Tx||E===e1)&&NP(en)&&Ls(en)&8192&&!NP(zi))return 0}if(Do&2621440&&As&524288){let uc=pr&&Ye===pn.errorInfo&&!ns;if(kr=lr(zi,en,uc,void 0,!1,fo),kr&&(kr&=Yo(zi,en,0,uc,fo),kr&&(kr&=Yo(zi,en,1,uc,fo),kr&&(kr&=hc(zi,en,ns,uc,fo)))),fr&&kr)Ye=Mo||Ye||pn.errorInfo;else if(kr)return kr}if(Do&2621440&&As&1048576){let uc=$z(en,36175872);if(uc.flags&1048576){let el=Ji(zi,uc);if(el)return el}}}return 0;function _o(ns){return ns?$m(ns,(uc,el)=>uc+1+_o(el.next),0):0}function Is(ns,uc,el,Mc){if(kr=zu(ns,uc,el,pr,Mc))return kr;if(En(el,Qp=>!!(Qp&24))){Mo=void 0,Oa(pn);return}let Lu=uc&&Zst(uc,el);if(fr=!Lu,el!==F&&!Lu){if(fr&&!(pr&&En(el,Qp=>(Qp&7)===0)))return 0;Mo=Ye,Oa(pn)}}}function Jt(zi,en,pr){if(E===gp||(E===ny?gf(zi)===gf(en):Eue(zi)<=Eue(en))){let pn,kr=Ph(en),Mo=Ul(Ph(zi),Eue(zi)<0?G_:vl);if(pn=Lr(kr,Mo,3,pr)){let fr=wC([HN(zi)],[HN(en)]);if(Ul(r6(zi),fr)===Ul(r6(en),fr))return pn&Lr(Ul(j1(zi),fr),j1(en),3,pr)}}return 0}function Ji(zi,en){var pr;let fo=Lp(zi),pn=aE(fo,en);if(!pn)return 0;let kr=1;for(let Is of pn)if(kr*=i$t(i6(Is)),kr>25)return(pr=us)==null||pr.instant(us.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:zi.id,targetId:en.id,numCombinations:kr}),0;let Mo=new Array(pn.length),fr=new Set;for(let Is=0;IsIs[el],!1,0,xe||E===gp))continue e}Xu(As,uc,p8),ns=!0}if(!ns)return 0}let _o=-1;for(let Is of As)if(_o&=lr(zi,Is,!1,fr,!1,0),_o&&(_o&=Yo(zi,Is,0,!1,0),_o&&(_o&=Yo(zi,Is,1,!1,0),_o&&!(a_(zi)&&a_(Is))&&(_o&=hc(zi,Is,!1,!1,0)))),!_o)return _o;return _o}function Zi(zi,en){if(!en||zi.length===0)return zi;let pr;for(let fo=0;fo5?ol(j.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,vs(zi),vs(en),$i(kr.slice(0,4),Mo=>zl(Mo)).join(", "),kr.length-4):ol(j.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,vs(zi),vs(en),$i(kr,Mo=>zl(Mo)).join(", ")),pn&&Ye&&Ko++)}function lr(zi,en,pr,fo,pn,kr){if(E===ny)return uo(zi,en,fo);let Mo=-1;if(a_(en)){if(Y9(zi)){if(!en.target.readonly&&(ED(zi)||a_(zi)&&zi.target.readonly))return 0;let Is=PL(zi),ns=PL(en),uc=a_(zi)?zi.target.combinedFlags&4:4,el=!!(en.target.combinedFlags&12),Mc=a_(zi)?zi.target.minLength:0,Lu=en.target.minLength;if(!uc&&Is=Zn?ns-1-Math.min(tp,fa):oc,bu=en.target.elementFlags[Kl];if(bu&8&&!(Ka&8))return pr&&ol(j.Source_provides_no_match_for_variadic_element_at_position_0_in_target,Kl),0;if(Ka&8&&!(bu&12))return pr&&ol(j.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,oc,Kl),0;if(bu&1&&!(Ka&1))return pr&&ol(j.Source_provides_no_match_for_required_element_at_position_0_in_target,Kl),0;if(Ac&&((Ka&12||bu&12)&&(Ac=!1),Ac&&fo?.has(""+oc)))continue;let Vp=qk(Qp[oc],!!(Ka&bu&2)),E_=Oh[Kl],Qf=Ka&8&&bu&4?vS(E_):qk(E_,!!(bu&2)),v0=Lr(Vp,Qf,3,pr,void 0,kr);if(!v0)return pr&&(ns>1||Is>1)&&(el&&oc>=Zn&&tp>=fa&&Zn!==Is-fa-1?Td(j.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,Zn,Is-fa-1,Kl):Td(j.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,oc,Kl)),0;Mo&=v0}return Mo}if(en.target.combinedFlags&12)return 0}let fr=(E===Tx||E===e1)&&!OO(zi)&&!s_(zi)&&!a_(zi),Do=pat(zi,en,fr,!1);if(Do)return pr&&zt(zi,en)&&ur(zi,en,Do,fr),0;if(OO(en)){for(let Is of Zi(Lp(zi),fo))if(!Dz(en,Is.escapedName)&&!(Js(Is).flags&32768))return pr&&ol(j.Property_0_does_not_exist_on_type_1,zl(Is),vs(en)),0}let As=Lp(en),_o=a_(zi)&&a_(en);for(let Is of Zi(As,fo)){let ns=Is.escapedName;if(!(Is.flags&4194304)&&(!_o||nL(ns)||ns==="length")&&(!pn||Is.flags&16777216)){let uc=Ku(zi,ns);if(uc&&uc!==Is){let el=Dn(zi,en,uc,Is,i6,pr,kr,E===gp);if(!el)return 0;Mo&=el}}}return Mo}function uo(zi,en,pr){if(!(zi.flags&524288&&en.flags&524288))return 0;let fo=Zi(p2(zi),pr),pn=Zi(p2(en),pr);if(fo.length!==pn.length)return 0;let kr=-1;for(let Mo of fo){let fr=Dz(en,Mo.escapedName);if(!fr)return 0;let Do=_1e(Mo,fr,Lr);if(!Do)return 0;kr&=Do}return kr}function Yo(zi,en,pr,fo,pn){var kr,Mo;if(E===ny)return ko(zi,en,pr);if(en===xu||zi===xu)return-1;let fr=zi.symbol&&QN(zi.symbol.valueDeclaration),Do=en.symbol&&QN(en.symbol.valueDeclaration),As=kd(zi,fr&&pr===1?0:pr),_o=kd(en,Do&&pr===1?0:pr);if(pr===1&&As.length&&_o.length){let Mc=!!(As[0].flags&4),Lu=!!(_o[0].flags&4);if(Mc&&!Lu)return fo&&ol(j.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!Eu(As[0],_o[0],fo))return 0}let Is=-1,ns=pr===1?xn:Dt,uc=Ls(zi),el=Ls(en);if(uc&64&&el&64&&zi.symbol===en.symbol||uc&4&&el&4&&zi.target===en.target){Se.assertEqual(As.length,_o.length);for(let Mc=0;Mc<_o.length;Mc++){let Lu=Or(As[Mc],_o[Mc],!0,fo,pn,ns(As[Mc],_o[Mc]));if(!Lu)return 0;Is&=Lu}}else if(As.length===1&&_o.length===1){let Mc=E===gp,Lu=of(As),Qp=of(_o);if(Is=Or(Lu,Qp,Mc,fo,pn,ns(Lu,Qp)),!Is&&fo&&pr===1&&uc&el&&(((kr=Qp.declaration)==null?void 0:kr.kind)===176||((Mo=Lu.declaration)==null?void 0:Mo.kind)===176)){let Oh=Zn=>gC(Zn,void 0,262144,pr);return ol(j.Type_0_is_not_assignable_to_type_1,Oh(Lu),Oh(Qp)),ol(j.Types_of_construct_signatures_are_incompatible),Is}}else e:for(let Mc of _o){let Lu=wd(),Qp=fo;for(let Oh of As){let Zn=Or(Oh,Mc,!0,Qp,pn,ns(Oh,Mc));if(Zn){Is&=Zn,Oa(Lu);continue e}Qp=!1}return Qp&&ol(j.Type_0_provides_no_match_for_the_signature_1,vs(zi),gC(Mc,void 0,void 0,pr)),0}return Is}function zt(zi,en){let pr=NL(zi,0),fo=NL(zi,1),pn=p2(zi);return(pr.length||fo.length)&&!pn.length?!!(kd(en,0).length&&pr.length||kd(en,1).length&&fo.length):!0}function Dt(zi,en){return zi.parameters.length===0&&en.parameters.length===0?(pr,fo)=>Td(j.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,vs(pr),vs(fo)):(pr,fo)=>Td(j.Call_signature_return_types_0_and_1_are_incompatible,vs(pr),vs(fo))}function xn(zi,en){return zi.parameters.length===0&&en.parameters.length===0?(pr,fo)=>Td(j.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,vs(pr),vs(fo)):(pr,fo)=>Td(j.Construct_signature_return_types_0_and_1_are_incompatible,vs(pr),vs(fo))}function Or(zi,en,pr,fo,pn,kr){let Mo=E===Tx?16:E===e1?24:0;return $st(pr?Fue(zi):zi,pr?Fue(en):en,Mo,fo,ol,kr,fr,vl);function fr(Do,As,_o){return Lr(Do,As,3,_o,void 0,pn)}}function ko(zi,en,pr){let fo=kd(zi,pr),pn=kd(en,pr);if(fo.length!==pn.length)return 0;let kr=-1;for(let Mo=0;MoDo.keyType===Ot),fr=-1;for(let Do of kr){let As=E!==e1&&!pr&&Mo&&Do.type.flags&1?-1:Mv(zi)&&Mo?Lr(j1(zi),Do.type,3,fo):Ol(zi,Do,fo,pn);if(!As)return 0;fr&=As}return fr}function Ol(zi,en,pr,fo){let pn=kP(zi,en.keyType);return pn?Go(pn,en,pr,fo):!(fo&1)&&(E!==e1||Ls(zi)&8192)&&dY(zi)?Io(zi,en,pr,fo):(pr&&ol(j.Index_signature_for_type_0_is_missing_in_type_1,vs(en.keyType),vs(zi)),0)}function ou(zi,en){let pr=o1(zi),fo=o1(en);if(pr.length!==fo.length)return 0;for(let pn of fo){let kr=AL(zi,pn.keyType);if(!(kr&&Lr(kr.type,pn.type,3)&&kr.isReadonly===pn.isReadonly))return 0}return-1}function Eu(zi,en,pr){if(!zi.declaration||!en.declaration)return!0;let fo=v1(zi.declaration,6),pn=v1(en.declaration,6);return pn===2||pn===4&&fo!==2||pn!==4&&!fo?!0:(pr&&ol(j.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,EF(fo),EF(pn)),!1)}}function c1e(f){if(f.flags&16)return!1;if(f.flags&3145728)return!!ee(f.types,c1e);if(f.flags&465829888){let S=Iz(f);if(S&&S!==f)return c1e(S)}return KN(f)||!!(f.flags&134217728)||!!(f.flags&268435456)}function swt(f,S){return a_(f)&&a_(S)?F:Lp(S).filter(E=>Yue(Ln(f,E.escapedName),Js(E)))}function Yue(f,S){return!!f&&!!S&&n0(f,32768)&&!!uY(S)}function JAe(f){return Lp(f).filter(S=>uY(Js(S)))}function nq(f,S,E=Kue){return mo(f,S,E)||li(f,S)||ei(f,S)||fn(f,S)||Jn(f,S)}function l1e(f,S,E){let P=f.types,z=P.map(oe=>oe.flags&402784252?0:-1);for(let[oe,Fe]of S){let Ye=!1;for(let it=0;it!!E(It,tt))?Ye=!0:z[it]=3}for(let it=0;itz[Fe]),0):f;return q.flags&131072?f:q}function Xst(f){if(f.flags&524288){let S=UN(f);return S.callSignatures.length===0&&S.constructSignatures.length===0&&S.indexInfos.length===0&&S.properties.length>0&&Yt(S.properties,E=>!!(E.flags&16777216))}return f.flags&33554432?Xst(f.baseType):f.flags&2097152?Yt(f.types,Xst):!1}function Iqt(f,S,E){for(let P of Lp(f))if(EPe(S,P.escapedName,E))return!0;return!1}function Eje(f){return f===$n||f===xo||f.objectFlags&8?re:Yst(f.symbol,f.typeParameters)}function rq(f){return Yst(f,Nl(f).typeParameters)}function Yst(f,S=F){var E,P;let z=Nl(f);if(!z.variances){(E=us)==null||E.push(us.Phase.CheckTypes,"getVariancesWorker",{arity:S.length,id:Rv(_m(f))});let q=jc,oe=Zs;jc||(jc=!0,Zs=Mr.length),z.variances=F;let Fe=[];for(let Ye of S){let it=Qst(Ye),tt=it&16384?it&8192?0:1:it&8192?2:void 0;if(tt===void 0){let It=!1,Pt=!1,yi=cc;cc=br=>br?Pt=!0:It=!0;let Hi=u1e(f,Ye,Rt),vn=u1e(f,Ye,bt);tt=(wf(vn,Hi)?1:0)|(wf(Hi,vn)?2:0),tt===3&&wf(u1e(f,Ye,Ci),Hi)&&(tt=4),cc=yi,(It||Pt)&&(It&&(tt|=8),Pt&&(tt|=16))}Fe.push(tt)}q||(jc=!1,Zs=oe),z.variances=Fe,(P=us)==null||P.pop({variances:Fe.map(Se.formatVariance)})}return z.variances}function u1e(f,S,E){let P=Uz(S,E),z=_m(f);if(Qe(z))return z;let q=f.flags&524288?CO(f,DP(Nl(f).typeParameters,P)):wP(z,DP(z.typeParameters,P));return Pe.add(Rv(q)),q}function Que(f){return Pe.has(Rv(f))}function Qst(f){var S;return $m((S=f.symbol)==null?void 0:S.declarations,(E,P)=>E|A_(P),0)&28672}function Zst(f,S){for(let E=0;E!!(S.flags&262144)||Dje(S))}function Aqt(f,S,E,P){let z=[],q="",oe=Ye(f,0),Fe=Ye(S,0);return`${q}${oe},${Fe}${E}`;function Ye(it,tt=0){let It=""+it.target.id;for(let Pt of nh(it)){if(Pt.flags&262144){if(P||Nqt(Pt)){let yi=z.indexOf(Pt);yi<0&&(yi=z.length,z.push(Pt)),It+="="+yi;continue}q="*"}else if(tt<4&&Dje(Pt)){It+="<"+Ye(Pt,tt+1)+">";continue}It+="-"+Pt.id}return It}}function $Ae(f,S,E,P,z){if(P===ny&&f.id>S.id){let oe=f;f=S,S=oe}let q=E?":"+E:"";return Dje(f)&&Dje(S)?Aqt(f,S,q,z):`${f.id},${S.id}${q}`}function GAe(f,S){if(Ag(f)&6){for(let E of f.links.containingType.types){let P=Ku(E,f.escapedName),z=P&&GAe(P,S);if(z)return z}return}return S(f)}function cY(f){return f.parent&&f.parent.flags&32?_m(B0(f)):void 0}function Ow(f){let S=cY(f),E=S&&Pp(S)[0];return E&&Ln(E,f.escapedName)}function Zue(f,S){return GAe(f,E=>{let P=cY(E);return P?WN(P,S):!1})}function X9(f,S){return!GAe(S,E=>nT(E)&4?!Zue(f,cY(E)):!1)}function d1e(f,S,E){return GAe(S,P=>nT(P,E)&4?!WN(f,cY(P)):!1)?void 0:f}function sR(f,S,E,P=3){if(E>=P){if((Ls(f)&96)===96&&(f=NO(f)),f.flags&2097152)return En(f.types,Fe=>sR(Fe,S,E,P));let z=f1e(f),q=0,oe=0;for(let Fe=0;Fe=oe&&(q++,q>=P))return!0;oe=Ye.id}}}return!1}function NO(f){let S;for(;(Ls(f)&96)===96&&(S=bO(f))&&(S.symbol||S.flags&2097152&&En(S.types,E=>!!E.symbol));)f=S;return f}function Ije(f,S){return(Ls(f)&96)===96&&(f=NO(f)),f.flags&2097152?En(f.types,E=>Ije(E,S)):f1e(f)===S}function f1e(f){if(f.flags&524288&&!Q9(f)){if(Ls(f)&4&&f.node)return f.node;if(f.symbol&&!(Ls(f)&16&&f.symbol.flags&32))return f.symbol;if(a_(f))return f.target}if(f.flags&262144)return f.symbol;if(f.flags&8388608){do f=f.objectType;while(f.flags&8388608);return f}return f.flags&16777216?f.root:f}function awt(f,S){return _1e(f,S,Gue)!==0}function _1e(f,S,E){if(f===S)return-1;let P=nT(f)&6,z=nT(S)&6;if(P!==z)return 0;if(P){if(Cne(f)!==Cne(S))return 0}else if((f.flags&16777216)!==(S.flags&16777216))return 0;return DD(f)!==DD(S)?0:E(Js(f),Js(S))}function ede(f,S,E){let P=Xk(f),z=Xk(S),q=tA(f),oe=tA(S),Fe=g6(f),Ye=g6(S);return!!(P===z&&q===oe&&Fe===Ye||E&&q<=oe)}function nne(f,S,E,P,z,q){if(f===S)return-1;if(!ede(f,S,E)||Z(f.typeParameters)!==Z(S.typeParameters))return 0;if(S.typeParameters){let Ye=wC(f.typeParameters,S.typeParameters);for(let it=0;itS|(E.flags&1048576?TI(E.types):E.flags),0)}function lwt(f){if(f.length===1)return f[0];let S=xe?$s(f,P=>cy(P,z=>!(z.flags&98304))):f,E=Pqt(S)?Fc(S):$m(S,(P,z)=>Jz(P,z)?z:P);return S===f?E:m1e(E,TI(f)&98304)}function Lqt(f){return $m(f,(S,E)=>Jz(E,S)?E:S)}function ok(f){return!!(Ls(f)&4)&&(f.target===$n||f.target===xo)}function ED(f){return!!(Ls(f)&4)&&f.target===xo}function Y9(f){return ok(f)||a_(f)}function tde(f){return ok(f)&&!ED(f)||a_(f)&&!f.target.readonly}function ML(f){return ok(f)?nh(f)[0]:void 0}function AO(f){return ok(f)||!(f.flags&98304)&&wf(f,j_)}function KAe(f){return tde(f)||!(f.flags&98305)&&wf(f,Wf)}function eat(f){if(!(Ls(f)&4)||!(Ls(f.target)&3))return;if(Ls(f)&33554432)return Ls(f)&67108864?f.cachedEquivalentBaseType:void 0;f.objectFlags|=33554432;let S=f.target;if(Ls(S)&1){let z=Cs(S);if(z&&z.expression.kind!==80&&z.expression.kind!==211)return}let E=Pp(S);if(E.length!==1||ZM(f.symbol).size)return;let P=Z(S.typeParameters)?Ul(E[0],wC(S.typeParameters,nh(f).slice(0,S.typeParameters.length))):E[0];return Z(nh(f))>Z(S.typeParameters)&&(P=Aw(P,Bu(nh(f)))),f.objectFlags|=67108864,f.cachedEquivalentBaseType=P}function Nje(f){return xe?f===Ti:f===vt}function s_(f){let S=ML(f);return!!S&&Nje(S)}function GN(f){let S;return a_(f)||!!Ku(f,"0")||AO(f)&&!!(S=Ln(f,"length"))&&KS(S,E=>!!(E.flags&256))}function XAe(f){return AO(f)||GN(f)}function YAe(f,S){let E=Ln(f,""+S);if(E)return E;if(KS(f,a_))return rde(f,S,X.noUncheckedIndexedAccess?ye:void 0)}function uwt(f){return!(f.flags&240544)}function KN(f){return!!(f.flags&109472)}function rne(f){let S=CP(f);return S.flags&2097152?En(S.types,KN):KN(S)}function Oqt(f){return f.flags&2097152&&jt(f.types,KN)||f}function ide(f){return f.flags&16?!0:f.flags&1048576?f.flags&1024?!0:Yt(f.types,KN):KN(f)}function RL(f){return f.flags&1056?_Ae(f):f.flags&402653312?Ot:f.flags&256?Fi:f.flags&2048?Vn:f.flags&512?Cn:f.flags&1048576?Fqt(f):f}function Fqt(f){let S=`B${Rv(f)}`;return Oi(S)??L1(S,oh(f,RL))}function tat(f){return f.flags&402653312?Ot:f.flags&288?Fi:f.flags&2048?Vn:f.flags&512?Cn:f.flags&1048576?oh(f,tat):f}function BL(f){return f.flags&1056&&RF(f)?_Ae(f):f.flags&128&&RF(f)?Ot:f.flags&256&&RF(f)?Fi:f.flags&2048&&RF(f)?Vn:f.flags&512&&RF(f)?Cn:f.flags&1048576?oh(f,BL):f}function WF(f){return f.flags&8192?cn:f.flags&1048576?oh(f,WF):f}function iat(f,S){return jWe(f,S)||(f=WF(BL(f))),Ig(f)}function PO(f,S,E){if(f&&KN(f)){let P=S?E?abe(S):S:void 0;f=iat(f,P)}return f}function Aje(f,S,E,P){if(f&&KN(f)){let z=S?uB(E,S,P):void 0;f=iat(f,z)}return f}function a_(f){return!!(Ls(f)&4&&f.target.objectFlags&8)}function jL(f){return a_(f)&&!!(f.target.combinedFlags&8)}function nde(f){return jL(f)&&f.target.elementFlags.length===1}function AP(f){return ode(f,f.target.fixedLength)}function rde(f,S,E){return oh(f,P=>{let z=P,q=AP(z);return q?E&&S>=ije(z.target)?Fc([q,E]):q:ye})}function Pje(f){let S=AP(f);return S&&vS(S)}function ode(f,S,E=0,P=!1,z=!1){let q=PL(f)-E;if(S(E&12)===(S.target.elementFlags[P]&12))}function qz({value:f}){return f.base10Value==="0"}function dwt(f){return cy(f,S=>XN(S,4194304))}function p1e(f){return oh(f,fwt)}function fwt(f){return f.flags&4?bi:f.flags&8?Li:f.flags&64?Yn:f===dn||f===In||f.flags&114691||f.flags&128&&f.value===""||f.flags&256&&f.value===0||f.flags&2048&&qz(f)?f:Wi}function m1e(f,S){let E=S&~f.flags&98304;return E===0?f:Fc(E===32768?[f,ye]:E===65536?[f,si]:[f,ye,si])}function aR(f,S=!1){Se.assert(xe);let E=S?at:ye;return f===E||f.flags&1048576&&f.types[0]===E?f:Fc([f,E])}function Mqt(f){return tg||(tg=z9("NonNullable",524288,void 0)||St),tg!==St?CO(tg,[f]):Qu([f,ja])}function LO(f){return xe?cq(f,2097152):f}function _wt(f){return xe?Fc([f,We]):f}function Ox(f){return xe?oPe(f,We):f}function h1e(f,S,E){return E?nj(S)?aR(f):_wt(f):f}function lY(f,S){return gH(S)?LO(f):By(S)?Ox(f):f}function qk(f,S){return Oe&&S?oPe(f,pe):f}function uY(f){return f===pe||!!(f.flags&1048576)&&f.types[0]===pe}function g1e(f){return Oe?oPe(f,pe):cE(f,524288)}function nat(f,S){return(f.flags&524)!==0&&(S.flags&28)!==0}function dY(f){let S=Ls(f);return f.flags&2097152?Yt(f.types,dY):!!(f.symbol&&f.symbol.flags&7040&&!(f.symbol.flags&32)&&!kze(f))||!!(S&4194304)||!!(S&1024&&dY(f.source))}function oq(f,S){let E=Ou(f.flags,f.escapedName,Ag(f)&8);E.declarations=f.declarations,E.parent=f.parent,E.links.type=S,E.links.target=f,f.valueDeclaration&&(E.valueDeclaration=f.valueDeclaration);let P=Nl(f).nameType;return P&&(E.links.nameType=P),E}function rat(f,S){let E=Au();for(let P of p2(f)){let z=Js(P),q=S(z);E.set(P.escapedName,q===z?P:oq(P,q))}return E}function y1e(f){if(!(OO(f)&&Ls(f)&8192))return f;let S=f.regularType;if(S)return S;let E=f,P=rat(f,y1e),z=ml(E.symbol,P,E.callSignatures,E.constructSignatures,E.indexInfos);return z.flags=E.flags,z.objectFlags|=E.objectFlags&-8193,f.regularType=z,z}function pwt(f,S,E){return{parent:f,propertyName:S,siblings:E,resolvedProperties:void 0}}function QAe(f){if(!f.siblings){let S=[];for(let E of QAe(f.parent))if(OO(E)){let P=Dz(E,f.propertyName);P&&uq(Js(P),z=>{S.push(z)})}f.siblings=S}return f.siblings}function oat(f){if(!f.resolvedProperties){let S=new Map;for(let E of QAe(f))if(OO(E)&&!(Ls(E)&2097152))for(let P of Lp(E))S.set(P.escapedName,P);f.resolvedProperties=tc(S.values())}return f.resolvedProperties}function Rqt(f,S){if(!(f.flags&4))return f;let E=Js(f),P=S&&pwt(S,f.escapedName,void 0),z=ZAe(E,P);return z===E?f:oq(f,z)}function sat(f){let S=Lt.get(f.escapedName);if(S)return S;let E=oq(f,at);return E.flags|=16777216,Lt.set(f.escapedName,E),E}function mwt(f,S){let E=Au();for(let z of p2(f))E.set(z.escapedName,Rqt(z,S));if(S)for(let z of oat(S))E.has(z.escapedName)||E.set(z.escapedName,sat(z));let P=ml(f.symbol,E,F,F,$s(o1(f),z=>CT(z.keyType,$k(z.type),z.isReadonly)));return P.objectFlags|=Ls(f)&266240,P}function $k(f){return ZAe(f,void 0)}function ZAe(f,S){if(Ls(f)&196608){if(S===void 0&&f.widened)return f.widened;let E;if(f.flags&98305)E=pt;else if(OO(f))E=mwt(f,S);else if(f.flags&1048576){let P=S||pwt(void 0,void 0,f.types),z=$s(f.types,q=>q.flags&98304?q:ZAe(q,P));E=Fc(z,En(z,NP)?2:1)}else f.flags&2097152?E=Qu($s(f.types,$k)):Y9(f)&&(E=wP(f.target,$s(nh(f),$k)));return E&&S===void 0&&(f.widened=E),E||f}return f}function WL(f){var S;let E=!1;if(Ls(f)&65536){if(f.flags&1048576)if(En(f.types,NP))E=!0;else for(let P of f.types)E||(E=WL(P));else if(Y9(f))for(let P of nh(f))E||(E=WL(P));else if(OO(f))for(let P of p2(f)){let z=Js(P);if(Ls(z)&65536&&(E=WL(z),!E)){let q=(S=P.declarations)==null?void 0:S.find(oe=>{var Fe;return((Fe=oe.symbol.valueDeclaration)==null?void 0:Fe.parent)===f.symbol.valueDeclaration});q&&(ki(q,j.Object_literal_s_property_0_implicitly_has_an_1_type,zl(P),vs($k(z))),E=!0)}}}return E}function cR(f,S,E){let P=vs($k(S));if(Ys(f)&&!HG(Vo(f),X))return;let z;switch(f.kind){case 226:case 172:case 171:z=Ae?j.Member_0_implicitly_has_an_1_type:j.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 169:let q=f;if(Ai(q.name)){let oe=F6(q.name);if((xg(q.parent)||sT(q.parent)||xp(q.parent))&&q.parent.parameters.includes(q)&&(Ei(q,q.name.escapedText,788968,void 0,!0)||oe&&zse(oe))){let Fe="arg"+q.parent.parameters.indexOf(q),Ye=Gf(q.name)+(q.dotDotDotToken?"[]":"");lC(Ae,f,j.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,Fe,Ye);return}}z=f.dotDotDotToken?Ae?j.Rest_parameter_0_implicitly_has_an_any_type:j.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:Ae?j.Parameter_0_implicitly_has_an_1_type:j.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 208:if(z=j.Binding_element_0_implicitly_has_an_1_type,!Ae)return;break;case 317:ki(f,j.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,P);return;case 323:Ae&&rK(f.parent)&&ki(f.parent.tagName,j.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,P);return;case 262:case 174:case 173:case 177:case 178:case 218:case 219:if(Ae&&!f.name){E===3?ki(f,j.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation,P):ki(f,j.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,P);return}z=Ae?E===3?j._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:j._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:j._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 200:Ae&&ki(f,j.Mapped_object_type_implicitly_has_an_any_template_type);return;default:z=Ae?j.Variable_0_implicitly_has_an_1_type:j.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}lC(Ae,f,z,Gf(Nu(f)),P)}function fY(f,S,E){a(()=>{Ae&&Ls(S)&65536&&(!E||!Xat(f))&&(WL(S)||cR(f,S,E))})}function aat(f,S,E){let P=Xk(f),z=Xk(S),q=U1e(f),oe=U1e(S),Fe=oe?z-1:z,Ye=q?Fe:Math.min(P,Fe),it=PF(f);if(it){let tt=PF(S);tt&&E(it,tt)}for(let tt=0;ttS.typeParameter),$i(f.inferences,(S,E)=>()=>(S.isFixed||(dat(f),ade(f.inferences),S.isFixed=!0),ude(f,E))))}function jqt(f){return zst($i(f.inferences,S=>S.typeParameter),$i(f.inferences,(S,E)=>()=>ude(f,E)))}function ade(f){for(let S of f)S.isFixed||(S.inferredType=void 0)}function ePe(f,S,E){(f.intraExpressionInferenceSites??(f.intraExpressionInferenceSites=[])).push({node:S,type:E})}function dat(f){if(f.intraExpressionInferenceSites){for(let{node:S,type:E}of f.intraExpressionInferenceSites){let P=S.kind===174?bde(S,2):TC(S,2);P&&kT(f.inferences,E,P)}f.intraExpressionInferenceSites=void 0}}function fat(f){return{typeParameter:f,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function hwt(f){return{typeParameter:f.typeParameter,candidates:f.candidates&&f.candidates.slice(),contraCandidates:f.contraCandidates&&f.contraCandidates.slice(),inferredType:f.inferredType,priority:f.priority,topLevel:f.topLevel,isFixed:f.isFixed,impliedArity:f.impliedArity}}function gwt(f){let S=Qn(f.inferences,TY);return S.length?uat($i(S,hwt),f.signature,f.flags,f.compareTypes):void 0}function tPe(f){return f&&f.mapper}function zF(f){let S=Ls(f);if(S&524288)return!!(S&1048576);let E=!!(f.flags&465829888||f.flags&524288&&!ywt(f)&&(S&4&&(f.node||En(nh(f),zF))||S&134217728&&Z(f.outerTypeParameters)||S&16&&f.symbol&&f.symbol.flags&14384&&f.symbol.declarations||S&12583968)||f.flags&3145728&&!(f.flags&1024)&&!ywt(f)&&En(f.types,zF));return f.flags&3899393&&(f.objectFlags|=524288|(E?1048576:0)),E}function ywt(f){if(f.aliasSymbol&&!f.aliasTypeArguments){let S=Kp(f.aliasSymbol,265);return!!(S&&go(S.parent,E=>E.kind===307?!0:E.kind===267?!1:"quit"))}return!1}function cde(f,S,E=0){return!!(f===S||f.flags&3145728&&En(f.types,P=>cde(P,S,E))||E<3&&f.flags&16777216&&(cde(TO(f),S,E+1)||cde(MF(f),S,E+1)))}function Wqt(f,S){let E=Pw(f);return E?!!E.type&&cde(E.type,S):cde(Op(f),S)}function Oje(f){let S=Au();uq(f,P=>{if(!(P.flags&128))return;let z=kh(P.value),q=Ou(4,z);q.links.type=pt,P.symbol&&(q.declarations=P.symbol.declarations,q.valueDeclaration=P.symbol.valueDeclaration),S.set(z,q)});let E=f.flags&4?[CT(Ot,ja,!1)]:F;return ml(void 0,S,F,F,E)}function _at(f,S,E){let P=f.id+","+S.id+","+E.id;if(vd.has(P))return vd.get(P);let z=Mje(f,S,E);return vd.set(P,z),z}function Fje(f){return!(Ls(f)&262144)||OO(f)&&En(Lp(f),S=>Fje(Js(S)))||a_(f)&&En(Bz(f),Fje)}function Mje(f,S,E){if(!(AL(f,Ot)||Lp(f).length!==0&&Fje(f)))return;if(ok(f)){let z=Rje(nh(f)[0],S,E);return z?vS(z,ED(f)):void 0}if(a_(f)){let z=$i(Bz(f),oe=>Rje(oe,S,E));if(!Yt(z,oe=>!!oe))return;let q=gf(S)&4?$s(f.target.elementFlags,oe=>oe&2?1:oe):f.target.elementFlags;return l6(z,q,f.target.readonly,f.target.labeledElementDeclarations)}let P=de(1040,void 0);return P.source=f,P.mappedType=S,P.constraintType=E,P}function zqt(f){let S=Nl(f);return S.type||(S.type=Rje(f.links.propertyType,f.links.mappedType,f.links.constraintType)||Ce),S.type}function vwt(f,S,E){let P=rk(E.type,HN(S)),z=j1(S),q=fat(P);return kT([q],f,z),lR(q)||Ce}function Rje(f,S,E){let P=f.id+","+S.id+","+E.id;if(B_.has(P))return B_.get(P)||Ce;Zv.push(f),fv.push(S);let z=_v;sR(f,Zv,Zv.length,2)&&(_v|=1),sR(S,fv,fv.length,2)&&(_v|=2);let q;return _v!==3&&(q=vwt(f,S,E)),Zv.pop(),fv.pop(),_v=z,B_.set(P,q),q}function*p6(f,S,E,P){let z=Lp(S);for(let q of z)if(!IF(q)&&(E||!(q.flags&16777216||Ag(q)&48))){let oe=Ku(f,q.escapedName);if(!oe)yield q;else if(P){let Fe=Js(q);if(Fe.flags&109472){let Ye=Js(oe);Ye.flags&1||Ig(Ye)===Ig(Fe)||(yield q)}}}}function pat(f,S,E,P){return c0(p6(f,S,E,P))}function Vqt(f,S){return!(S.target.combinedFlags&8)&&S.target.minLength>f.target.minLength||!(S.target.combinedFlags&12)&&(!!(f.target.combinedFlags&12)||S.target.fixedLengthOF(q,z),f)===f&&v1e(f,S)}return!1}function Bje(f,S){if(S.flags&2097152)return Yt(S.types,E=>E===Aa||Bje(f,E));if(S.flags&4||wf(f,S))return!0;if(f.flags&128){let E=f.value;return!!(S.flags&8&&Swt(E,!1)||S.flags&64&&tee(E,!1)||S.flags&98816&&E===S.intrinsicName||S.flags&268435456&&v1e(kC(E),S)||S.flags&134217728&&bS(f,S))}if(f.flags&134217728){let E=f.texts;return E.length===2&&E[0]===""&&E[1]===""&&wf(f.types[0],S)}return!1}function hat(f,S){return f.flags&128?b1e([f.value],F,S):f.flags&134217728?ho(f.texts,S.texts)?$i(f.types,(E,P)=>wf(CP(E),CP(S.types[P]))?E:gat(E)):b1e(f.texts,f.types,S):void 0}function bS(f,S){let E=hat(f,S);return!!E&&Yt(E,(P,z)=>Bje(P,S.types[z]))}function gat(f){return f.flags&402653317?f:TP(["",""],[f])}function b1e(f,S,E){let P=f.length-1,z=f[0],q=f[P],oe=E.texts,Fe=oe.length-1,Ye=oe[0],it=oe[Fe];if(P===0&&z.length0){let ao=Pt,Ko=yi;for(;Ko=Hi(ao).indexOf(Qr,Ko),!(Ko>=0);){if(ao++,ao===f.length)return;Ko=0}vn(ao,Ko),yi+=Qr.length}else if(yi!dr(Lr,lc)):bn,ga?Qn(Gn,lc=>!dr(ga,lc)):Gn]}function ao(bn,Gn,eo){let Lr=bn.length!!jr(ga));if(!Lr||Gn&&Lr!==Gn)return;Gn=Lr}return Gn}function Ds(bn,Gn,eo){let Lr=0;if(eo&1048576){let ga,lc=bn.flags&1048576?bn.types:[bn],ii=new Array(lc.length),Ht=!1;for(let sr of Gn)if(jr(sr))ga=sr,Lr++;else for(let so=0;soii[Uo]?void 0:so);if(sr.length){Pt(Fc(sr),ga);return}}}else for(let ga of Gn)jr(ga)?Lr++:Pt(bn,ga);if(eo&2097152?Lr===1:Lr>0)for(let ga of Gn)jr(ga)&&yi(bn,ga,1)}function Sa(bn,Gn,eo){if(eo.flags&1048576||eo.flags&2097152){let Lr=!1;for(let ga of eo.types)Lr=Sa(bn,Gn,ga)||Lr;return Lr}if(eo.flags&4194304){let Lr=jr(eo.type);if(Lr&&!Lr.isFixed&&!bwt(bn)){let ga=_at(bn,Gn,eo);ga&&yi(ga,Lr.typeParameter,Ls(bn)&262144?16:8)}return!0}if(eo.flags&262144){yi(JN(bn,bn.pattern?2:0),eo,32);let Lr=Iz(eo);if(Lr&&Sa(bn,Gn,Lr))return!0;let ga=$i(Lp(bn),Js),lc=$i(o1(bn),ii=>ii!==Er?ii.type:Wi);return Pt(Fc(Pl(ga,lc)),j1(Gn)),!0}return!1}function Oa(bn,Gn){if(bn.flags&16777216)Pt(bn.checkType,Gn.checkType),Pt(bn.extendsType,Gn.extendsType),Pt(TO(bn),TO(Gn)),Pt(MF(bn),MF(Gn));else{let eo=[TO(Gn),MF(Gn)];vn(bn,eo,Gn.flags,z?64:0)}}function wd(bn,Gn){let eo=hat(bn,Gn),Lr=Gn.types;if(eo||Yt(Gn.texts,ga=>ga.length===0))for(let ga=0;gaNo|Es.flags,0);if(!(Uo&4)){let No=lc.value;Uo&296&&!Swt(No,!0)&&(Uo&=-297),Uo&2112&&!tee(No,!0)&&(Uo&=-2113);let Es=$m(so,(qa,pc)=>pc.flags&Uo?qa.flags&4?qa:pc.flags&4?lc:qa.flags&134217728?qa:pc.flags&134217728&&bS(lc,pc)?lc:qa.flags&268435456?qa:pc.flags&268435456&&No===OL(pc.symbol,No)?lc:qa.flags&128?qa:pc.flags&128&&pc.value===No?pc:qa.flags&8?qa:pc.flags&8?fg(+No):qa.flags&32?qa:pc.flags&32?fg(+No):qa.flags&256?qa:pc.flags&256&&pc.value===+No?pc:qa.flags&64?qa:pc.flags&64?mat(No):qa.flags&2048?qa:pc.flags&2048&&z8(pc.value)===No?pc:qa.flags&16?qa:pc.flags&16?No==="true"?Si:No==="false"?In:Cn:qa.flags&512?qa:pc.flags&512&&pc.intrinsicName===No?pc:qa.flags&32768?qa:pc.flags&32768&&pc.intrinsicName===No?pc:qa.flags&65536?qa:pc.flags&65536&&pc.intrinsicName===No?pc:qa:qa,Wi);if(!(Es.flags&131072)){Pt(Es,ii);continue}}}}Pt(lc,ii)}}function Td(bn,Gn){Pt(Ph(bn),Ph(Gn)),Pt(j1(bn),j1(Gn));let eo=r6(bn),Lr=r6(Gn);eo&&Lr&&Pt(eo,Lr)}function sm(bn,Gn){var eo,Lr;if(Ls(bn)&4&&Ls(Gn)&4&&(bn.target===Gn.target||ok(bn)&&ok(Gn))){ao(nh(bn),nh(Gn),Eje(bn.target));return}if(Mv(bn)&&Mv(Gn)&&Td(bn,Gn),Ls(Gn)&32&&!Gn.declaration.nameType){let ga=Ph(Gn);if(Sa(bn,Gn,ga))return}if(!Hqt(bn,Gn)){if(Y9(bn)){if(a_(Gn)){let ga=PL(bn),lc=PL(Gn),ii=nh(Gn),Ht=Gn.target.elementFlags;if(a_(bn)&&Lje(bn,Gn)){for(let Uo=0;Uo0){let lc=kd(Gn,eo),ii=lc.length;for(let Ht=0;Ht1){let S=Qn(f,Q9);if(S.length){let E=Fc(S,2);return Pl(Qn(f,P=>!Q9(P)),[E])}}return f}function xwt(f){return f.priority&416?Qu(f.contraCandidates):Lqt(f.contraCandidates)}function $qt(f,S){let E=lde(f.candidates),P=qqt(f.typeParameter)||Uk(f.typeParameter),z=!P&&f.topLevel&&(f.isFixed||!Wqt(S,f.typeParameter)),q=P?$s(E,Ig):z?$s(E,BL):E,oe=f.priority&416?Fc(q,2):lwt(q);return $k(oe)}function ude(f,S){let E=f.inferences[S];if(!E.inferredType){let P,z;if(f.signature){let oe=E.candidates?$qt(E,f.signature):void 0,Fe=E.contraCandidates?xwt(E):void 0;if(oe||Fe){let Ye=oe&&(!Fe||!(oe.flags&131073)&&En(E.contraCandidates,it=>wf(oe,it))&&Yt(f.inferences,it=>it!==E&&xC(it.typeParameter)!==E.typeParameter||Yt(it.candidates,tt=>wf(tt,oe))));P=Ye?oe:Fe,z=Ye?Fe:oe}else if(f.flags&1)P=Kn;else{let Ye=R9(E.typeParameter);Ye&&(P=Ul(Ye,mje(bqt(f,S),f.nonFixingMapper)))}}else P=lR(E);E.inferredType=P||dde(!!(f.flags&2));let q=xC(E.typeParameter);if(q){let oe=Ul(q,f.nonFixingMapper);(!P||!f.compareTypes(P,Aw(oe,P)))&&(E.inferredType=z&&f.compareTypes(z,Aw(oe,z))?z:oe)}}return E.inferredType}function dde(f){return f?pt:Ce}function jje(f){let S=[];for(let E=0;Eky(S)||k1(S)||Im(S)))}function fde(f,S,E,P){switch(f.kind){case 80:if(!L8(f)){let oe=SS(f);return oe!==St?`${P?pp(P):"-1"}|${Rv(S)}|${Rv(E)}|${Nf(oe)}`:void 0}case 110:return`0|${P?pp(P):"-1"}|${Rv(S)}|${Rv(E)}`;case 235:case 217:return fde(f.expression,S,E,P);case 166:let z=fde(f.left,S,E,P);return z&&`${z}.${f.right.escapedText}`;case 211:case 212:let q=sq(f);if(q!==void 0){let oe=fde(f.expression,S,E,P);return oe&&`${oe}.${q}`}if(T_(f)&&Ai(f.argumentExpression)){let oe=SS(f.argumentExpression);if(_q(oe)||gde(oe)&&!hde(oe)){let Fe=fde(f.expression,S,E,P);return Fe&&`${Fe}.@${Nf(oe)}`}}break;case 206:case 207:case 262:case 218:case 219:case 174:return`${pp(f)}#${Rv(S)}`}}function z1(f,S){switch(S.kind){case 217:case 235:return z1(f,S.expression);case 226:return Kg(S)&&z1(f,S.left)||ms(S)&&S.operatorToken.kind===28&&z1(f,S.right)}switch(f.kind){case 236:return S.kind===236&&f.keywordToken===S.keywordToken&&f.name.escapedText===S.name.escapedText;case 80:case 81:return L8(f)?S.kind===110:S.kind===80&&SS(f)===SS(S)||($c(S)||Zd(S))&&Jh(SS(f))===Bs(S);case 110:return S.kind===110;case 108:return S.kind===108;case 235:case 217:return z1(f.expression,S);case 211:case 212:let E=sq(f);if(E!==void 0){let P=cf(S)?sq(S):void 0;if(P!==void 0)return P===E&&z1(f.expression,S.expression)}if(T_(f)&&T_(S)&&Ai(f.argumentExpression)&&Ai(S.argumentExpression)){let P=SS(f.argumentExpression);if(P===SS(S.argumentExpression)&&(_q(P)||gde(P)&&!hde(P)))return z1(f.expression,S.expression)}break;case 166:return cf(S)&&f.right.escapedText===sq(S)&&z1(f.left,S.expression);case 226:return ms(f)&&f.operatorToken.kind===28&&z1(f.right,S)}return!1}function sq(f){if(ba(f))return f.name.escapedText;if(T_(f))return bat(f);if(Zd(f)){let S=rc(f);return S?kh(S):void 0}if(Fl(f))return""+f.parent.parameters.indexOf(f)}function vat(f){return f.flags&8192?f.escapedName:f.flags&384?kh(""+f.value):void 0}function bat(f){return Xb(f.argumentExpression)?kh(f.argumentExpression.text):Dp(f.argumentExpression)?one(f.argumentExpression):void 0}function one(f){let S=zf(f,111551,!0);if(!S||!(_q(S)||S.flags&8))return;let E=S.valueDeclaration;if(E===void 0)return;let P=Vk(E);if(P){let z=vat(P);if(z!==void 0)return z}if(b8(E)&&W_(E,f)){let z=hse(E);if(z){let q=Uu(E.parent)?gl(E):Fb(z);return q&&vat(q)}if(pb(E))return k8(E.name)}}function EI(f,S){for(;cf(f);)if(f=f.expression,z1(f,S))return!0;return!1}function Z9(f,S){for(;By(f);)if(f=f.expression,z1(f,S))return!0;return!1}function _de(f,S){if(f&&f.flags&1048576){let E=LBe(f,S);if(E&&Ag(E)&2)return E.links.isDiscriminantProperty===void 0&&(E.links.isDiscriminantProperty=(E.links.checkFlags&192)===192&&!wD(Js(E))),!!E.links.isDiscriminantProperty}return!1}function aE(f,S){let E;for(let P of f)if(_de(S,P.escapedName)){if(E){E.push(P);continue}E=[P]}return E}function aq(f,S){let E=new Map,P=0;for(let z of f)if(z.flags&61603840){let q=Ln(z,S);if(q){if(!ide(q))return;let oe=!1;uq(q,Fe=>{let Ye=Rv(Ig(Fe)),it=E.get(Ye);it?it!==Ce&&(E.set(Ye,Ce),oe=!0):E.set(Ye,z)}),oe||P++}}return P>=10&&P*2>=f.length?E:void 0}function S1e(f){let S=f.types;if(!(S.length<10||Ls(f)&32768||Tn(S,E=>!!(E.flags&59506688))<10)){if(f.keyPropertyName===void 0){let E=ee(S,z=>z.flags&59506688?ee(Lp(z),q=>KN(Js(q))?q.escapedName:void 0):void 0),P=E&&aq(S,E);f.keyPropertyName=P?E:"",f.constituentMap=P}return f.keyPropertyName.length?f.keyPropertyName:void 0}}function x1e(f,S){var E;let P=(E=f.constituentMap)==null?void 0:E.get(Rv(Ig(S)));return P!==Ce?P:void 0}function zje(f,S){let E=S1e(f),P=E&&Ln(S,E);return P&&x1e(f,P)}function kwt(f,S){let E=S1e(f),P=E&&jt(S.properties,q=>q.symbol&&q.kind===303&&q.symbol.escapedName===E&&xPe(q.initializer)),z=P&&i4e(P.initializer);return z&&x1e(f,z)}function Sat(f,S){return z1(f,S)||EI(f,S)}function pde(f,S){if(f.arguments){for(let E of f.arguments)if(Sat(S,E)||Z9(E,S))return!0}return!!(f.expression.kind===211&&Sat(S,f.expression.expression))}function Vje(f){return f.id<=0&&(f.id=nFe,nFe++),f.id}function Gqt(f,S){if(!(f.flags&1048576))return wf(f,S);for(let E of f.types)if(wf(E,S))return!0;return!1}function xat(f,S){if(f===S)return f;if(S.flags&131072)return S;let E=`A${Rv(f)},${Rv(S)}`;return Oi(E)??L1(E,Kqt(f,S))}function Kqt(f,S){let E=cy(f,z=>Gqt(S,z)),P=S.flags&512&&RF(S)?oh(E,U9):E;return wf(S,P)?P:f}function Cat(f){if(Ls(f)&256)return!1;let S=UN(f);return!!(S.callSignatures.length||S.constructSignatures.length||S.members.get("bind")&&Jz(f,wo))}function _Y(f,S){return mde(f,S)&S}function XN(f,S){return _Y(f,S)!==0}function mde(f,S){f.flags&467927040&&(f=Pb(f)||Ce);let E=f.flags;if(E&268435460)return xe?16317953:16776705;if(E&134217856){let P=E&128&&f.value==="";return xe?P?12123649:7929345:P?12582401:16776705}if(E&40)return xe?16317698:16776450;if(E&256){let P=f.value===0;return xe?P?12123394:7929090:P?12582146:16776450}if(E&64)return xe?16317188:16775940;if(E&2048){let P=qz(f);return xe?P?12122884:7928580:P?12581636:16775940}return E&16?xe?16316168:16774920:E&528?xe?f===In||f===dn?12121864:7927560:f===In||f===dn?12580616:16774920:E&524288?S&(xe?83427327:83886079)?Ls(f)&16&&NP(f)?xe?83427327:83886079:Cat(f)?xe?7880640:16728e3:xe?7888800:16736160:0:E&16384?9830144:E&32768?26607360:E&65536?42917664:E&12288?xe?7925520:16772880:E&67108864?xe?7888800:16736160:E&131072?0:E&1048576?$m(f.types,(P,z)=>P|mde(z,S),0):E&2097152?Xqt(f,S):83886079}function Xqt(f,S){let E=n0(f,402784252),P=0,z=134217727;for(let q of f.types)if(!(E&&q.flags&524288)){let oe=mde(q,S);P|=oe,z&=oe}return P&8256|z&134209471}function cE(f,S){return cy(f,E=>XN(E,S))}function cq(f,S){let E=wwt(cE(xe&&f.flags&2?Wl:f,S));if(xe)switch(S){case 524288:return kat(E,65536,131072,33554432,si);case 1048576:return kat(E,131072,65536,16777216,ye);case 2097152:case 4194304:return oh(E,P=>XN(P,262144)?Mqt(P):P)}return E}function kat(f,S,E,P,z){let q=_Y(f,50528256);if(!(q&S))return f;let oe=Fc([ja,z]);return oh(f,Fe=>XN(Fe,S)?Qu([Fe,!(q&P)&&XN(Fe,E)?oe:ja]):Fe)}function wwt(f){return f===Wl?Ce:f}function uR(f,S){return S?Fc([jn(f),Fb(S)]):f}function wat(f,S){var E;let P=wO(S);if(!px(P))return Ie;let z=rT(P);return Ln(f,z)||pY((E=gS(f,z))==null?void 0:E.type)||Ie}function Twt(f,S){return KS(f,GN)&&YAe(f,S)||pY(qF(65,f,ye,void 0))||Ie}function pY(f){return f&&(X.noUncheckedIndexedAccess?Fc([f,pe]):f)}function Tat(f){return vS(qF(65,f,ye,void 0)||Ie)}function Yqt(f){return f.parent.kind===209&&mY(f.parent)||f.parent.kind===303&&mY(f.parent.parent)?uR(nPe(f),f.right):Fb(f.right)}function mY(f){return f.parent.kind===226&&f.parent.left===f||f.parent.kind===250&&f.parent.initializer===f}function Qqt(f,S){return Twt(nPe(f),f.elements.indexOf(S))}function lq(f){return Tat(nPe(f.parent))}function lE(f){return wat(nPe(f.parent),f.name)}function Gk(f){return uR(lE(f),f.objectAssignmentInitializer)}function nPe(f){let{parent:S}=f;switch(S.kind){case 249:return Ot;case 250:return pbe(S)||Ie;case 226:return Yqt(S);case 220:return ye;case 209:return Qqt(S,f);case 230:return lq(S);case 303:return lE(S);case 304:return Gk(S)}return Ie}function ay(f){let S=f.parent,E=Lh(S.parent),P=S.kind===206?wat(E,f.propertyName||f.name):f.dotDotDotToken?Tat(E):Twt(E,S.elements.indexOf(f));return uR(P,f.initializer)}function rPe(f){return ra(f).resolvedType||Fb(f)}function Zqt(f){return f.initializer?rPe(f.initializer):f.parent.parent.kind===249?Ot:f.parent.parent.kind===250&&pbe(f.parent.parent)||Ie}function Lh(f){return f.kind===260?Zqt(f):ay(f)}function Ewt(f){return f.kind===260&&f.initializer&&vC(f.initializer)||f.kind!==208&&f.parent.kind===226&&vC(f.parent.right)}function m6(f){switch(f.kind){case 217:return m6(f.expression);case 226:switch(f.operatorToken.kind){case 64:case 76:case 77:case 78:return m6(f.left);case 28:return m6(f.right)}}return f}function Eat(f){let{parent:S}=f;return S.kind===217||S.kind===226&&S.operatorToken.kind===64&&S.left===f||S.kind===226&&S.operatorToken.kind===28&&S.right===f?Eat(S):f}function sne(f){return f.kind===296?Ig(Fb(f.expression)):Wi}function dR(f){let S=ra(f);if(!S.switchTypes){S.switchTypes=[];for(let E of f.caseBlock.clauses)S.switchTypes.push(sne(E))}return S.switchTypes}function hY(f){if(En(f.caseBlock.clauses,E=>E.kind===296&&!i_(E.expression)))return;let S=[];for(let E of f.caseBlock.clauses){let P=E.kind===296?E.expression.text:void 0;S.push(P&&!dr(S,P)?P:void 0)}return S}function e$t(f,S){return f.flags&1048576?!ee(f.types,E=>!dr(S,E)):dr(S,f)}function gY(f,S){return!!(f===S||f.flags&131072||S.flags&1048576&&Dwt(f,S))}function Dwt(f,S){if(f.flags&1048576){for(let E of f.types)if(!LL(S.types,E))return!1;return!0}return f.flags&1056&&_Ae(f)===S?!0:LL(S.types,f)}function uq(f,S){return f.flags&1048576?ee(f.types,S):S(f)}function uE(f,S){return f.flags&1048576?En(f.types,S):S(f)}function KS(f,S){return f.flags&1048576?Yt(f.types,S):S(f)}function t$t(f,S){return f.flags&3145728?Yt(f.types,S):S(f)}function cy(f,S){if(f.flags&1048576){let E=f.types,P=Qn(E,S);if(P===E)return f;let z=f.origin,q;if(z&&z.flags&1048576){let oe=z.types,Fe=Qn(oe,Ye=>!!(Ye.flags&1048576)||S(Ye));if(oe.length-Fe.length===E.length-P.length){if(Fe.length===1)return Fe[0];q=Vue(1048576,Fe)}}return nje(P,f.objectFlags&16809984,void 0,void 0,q)}return f.flags&131072||S(f)?f:Wi}function oPe(f,S){return cy(f,E=>E!==S)}function i$t(f){return f.flags&1048576?f.types.length:1}function oh(f,S,E){if(f.flags&131072)return f;if(!(f.flags&1048576))return S(f);let P=f.origin,z=P&&P.flags&1048576?P.types:f.types,q,oe=!1;for(let Fe of z){let Ye=Fe.flags&1048576?oh(Fe,S,E):S(Fe);oe||(oe=Fe!==Ye),Ye&&(q?q.push(Ye):q=[Ye])}return oe?q&&Fc(q,E?0:1):f}function C1e(f,S,E,P){return f.flags&1048576&&E?Fc($i(f.types,S),1,E,P):oh(f,S)}function $z(f,S){return cy(f,E=>(E.flags&S)!==0)}function Dat(f,S){return n0(f,134217804)&&n0(S,402655616)?oh(f,E=>E.flags&4?$z(S,402653316):jz(E)&&!n0(S,402653188)?$z(S,128):E.flags&8?$z(S,264):E.flags&64?$z(S,2112):E):f}function ane(f){return f.flags===0}function dq(f){return f.flags===0?f.type:f}function eB(f,S){return S?{flags:0,type:f.flags&131072?Kn:f}:f}function sPe(f){let S=de(256);return S.elementType=f,S}function k1e(f){return nt[f.id]||(nt[f.id]=sPe(f))}function aPe(f,S){let E=y1e(RL(i4e(S)));return gY(E,f.elementType)?f:k1e(Fc([f.elementType,E]))}function Iat(f){return f.flags&131072?Md:vS(f.flags&1048576?Fc(f.types,2):f)}function FO(f){return f.finalArrayType||(f.finalArrayType=Iat(f.elementType))}function cPe(f){return Ls(f)&256?FO(f):f}function w1e(f){return Ls(f)&256?f.elementType:Wi}function lPe(f){let S=!1;for(let E of f)if(!(E.flags&131072)){if(!(Ls(E)&256))return!1;S=!0}return S}function Nat(f){let S=Eat(f),E=S.parent,P=ba(E)&&(E.name.escapedText==="length"||E.parent.kind===213&&Ai(E.name)&&ewe(E.name)),z=E.kind===212&&E.expression===S&&E.parent.kind===226&&E.parent.operatorToken.kind===64&&E.parent.left===E&&!O3(E.parent)&&Ob(Fb(E.argumentExpression),296);return P||z}function Aat(f){return($c(f)||vu(f)||hx(f)||Fl(f))&&!!(gm(f)||Ys(f)&&yg(f)&&f.initializer&&H8(f.initializer)&&WC(f.initializer))}function uPe(f,S){if(f=Nm(f),f.flags&8752)return Js(f);if(f.flags&7){if(Ag(f)&262144){let P=f.links.syntheticOrigin;if(P&&uPe(P))return Js(f)}let E=f.valueDeclaration;if(E){if(Aat(E))return Js(f);if($c(E)&&E.parent.parent.kind===250){let P=E.parent.parent,z=dPe(P.expression,void 0);if(z){let q=P.awaitModifier?15:13;return qF(q,z,ye,void 0)}}S&&Pd(S,ws(E,j._0_needs_an_explicit_type_annotation,zl(f)))}}}function dPe(f,S){if(!(f.flags&67108864))switch(f.kind){case 80:let E=Jh(SS(f));return uPe(E,S);case 110:return l$t(f);case 108:return yPe(f);case 211:{let P=dPe(f.expression,S);if(P){let z=f.name,q;if(wl(z)){if(!P.symbol)return;q=Ku(P,BH(P.symbol,z.escapedText))}else q=Ku(P,z.escapedText);return q&&uPe(q,S)}return}case 217:return dPe(f.expression,S)}}function cne(f){let S=ra(f),E=S.effectsSignature;if(E===void 0){let P;if(ms(f)){let oe=fne(f.right);P=zct(oe)}else f.parent.kind===244?P=dPe(f.expression,void 0):f.expression.kind!==108&&(By(f)?P=II(lY(fu(f.expression),f.expression),f.expression):P=fne(f.expression));let z=kd(P&&qS(P)||Ce,0),q=z.length===1&&!z[0].typeParameters?z[0]:En(z,Pat)?bq(f):void 0;E=S.effectsSignature=q&&Pat(q)?q:nn}return E===nn?void 0:E}function Pat(f){return!!(Pw(f)||f.declaration&&(qie(f.declaration)||Ce).flags&131072)}function n$t(f,S){if(f.kind===1||f.kind===3)return S.arguments[f.parameterIndex];let E=J_(S.expression);return cf(E)?J_(E.expression):void 0}function yY(f){let S=go(f,F7),E=Vo(f),P=XD(E,S.statements.pos);Gu.add(k_(E,P.start,P.length,j.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function fq(f){let S=Hje(f,!1);return Ov=f,xi=S,S}function fPe(f){let S=J_(f,!0);return S.kind===97||S.kind===226&&(S.operatorToken.kind===56&&(fPe(S.left)||fPe(S.right))||S.operatorToken.kind===57&&fPe(S.left)&&fPe(S.right))}function Hje(f,S){for(;;){if(f===Ov)return xi;let E=f.flags;if(E&4096){if(!S){let P=Vje(f),z=cC[P];return z!==void 0?z:cC[P]=Hje(f,!0)}S=!1}if(E&368)f=f.antecedent;else if(E&512){let P=cne(f.node);if(P){let z=Pw(P);if(z&&z.kind===3&&!z.type){let q=f.node.arguments[z.parameterIndex];if(q&&fPe(q))return!1}if(Op(P).flags&131072)return!1}f=f.antecedent}else{if(E&4)return En(f.antecedent,P=>Hje(P,!1));if(E&8){let P=f.antecedent;if(P===void 0||P.length===0)return!1;f=P[0]}else if(E&128){let P=f.node;if(P.clauseStart===P.clauseEnd&&e2t(P.switchStatement))return!1;f=f.antecedent}else if(E&1024){Ov=void 0;let P=f.node.target,z=P.antecedent;P.antecedent=f.node.antecedents;let q=Hje(f.antecedent,!1);return P.antecedent=z,q}else return!(E&1)}}}function Uje(f,S){for(;;){let E=f.flags;if(E&4096){if(!S){let P=Vje(f),z=Ok[P];return z!==void 0?z:Ok[P]=Uje(f,!0)}S=!1}if(E&496)f=f.antecedent;else if(E&512){if(f.node.expression.kind===108)return!0;f=f.antecedent}else{if(E&4)return Yt(f.antecedent,P=>Uje(P,!1));if(E&8)f=f.antecedent[0];else if(E&1024){let P=f.node.target,z=P.antecedent;P.antecedent=f.node.antecedents;let q=Uje(f.antecedent,!1);return P.antecedent=z,q}else return!!(E&1)}}}function Lat(f){switch(f.kind){case 110:return!0;case 80:if(!L8(f)){let E=SS(f);return _q(E)||gde(E)&&!hde(E)||!!E.valueDeclaration&&yd(E.valueDeclaration)}break;case 211:case 212:return Lat(f.expression)&&DD(ra(f).resolvedSymbol||St);case 206:case 207:let S=UT(f.parent);return Fl(S)||q_(S)?!Gz(S):$c(S)&&Eo(S)}return!1}function zL(f,S,E=S,P,z=(q=>(q=ac(f,vse))==null?void 0:q.flowNode)()){let q,oe=!1,Fe=0;if(A1)return Ie;if(!z)return S;dv++;let Ye=aC,it=dq(Pt(z));aC=Ye;let tt=Ls(it)&256&&Nat(f)?Md:cPe(it);if(tt===wr||f.parent&&f.parent.kind===235&&!(tt.flags&131072)&&cE(tt,2097152).flags&131072)return S;return tt;function It(){return oe?q:(oe=!0,q=fde(f,S,E,P))}function Pt(Jt){var Ji;if(Fe===2e3)return(Ji=us)==null||Ji.instant(us.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:Jt.id}),A1=!0,yY(f),Ie;Fe++;let Zi;for(;;){let Ii=Jt.flags;if(Ii&4096){for(let ur=Ye;ur=0&&Zi.parameterIndex!(ur.flags&163840)):Ji.kind===221&&Z9(Ji.expression,f)&&(Ii=lc(Ii,Jt.node,ur=>!(ur.flags&131072||ur.flags&128&&ur.value==="undefined"))));let Dn=Sa(Ji,Ii);Dn&&(Ii=Td(Ii,Dn,Jt.node))}return eB(Ii,ane(Zi))}function Zr(Jt){let Ji=[],Zi=!1,Ii=!1,Dn;for(let ur of Jt.antecedent){if(!Dn&&ur.flags&128&&ur.node.clauseStart===ur.node.clauseEnd){Dn=ur;continue}let lr=Pt(ur),uo=dq(lr);if(uo===S&&S===E)return uo;Xu(Ji,uo),gY(uo,E)||(Zi=!0),ane(lr)&&(Ii=!0)}if(Dn){let ur=Pt(Dn),lr=dq(ur);if(!(lr.flags&131072)&&!dr(Ji,lr)&&!e2t(Dn.node.switchStatement)){if(lr===S&&S===E)return lr;Ji.push(lr),gY(lr,E)||(Zi=!0),ane(ur)&&(Ii=!0)}}return eB(Ss(Ji,Zi?2:1),Ii)}function jr(Jt){let Ji=Vje(Jt),Zi=L0[Ji]||(L0[Ji]=new Map),Ii=It();if(!Ii)return S;let Dn=Zi.get(Ii);if(Dn)return Dn;for(let zt=sC;zt{let zt=Br(Yo,Ii)||Ce;return!(zt.flags&131072)&&!(uo.flags&131072)&&HAe(uo,zt)})}function wd(Jt,Ji,Zi,Ii,Dn){if((Zi===37||Zi===38)&&Jt.flags&1048576){let ur=S1e(Jt);if(ur&&ur===sq(Ji)){let lr=x1e(Jt,Fb(Ii));if(lr)return Zi===(Dn?37:38)?lr:KN(Ln(lr,ur)||Ce)?oPe(Jt,lr):Jt}}return Oa(Jt,Ji,ur=>eo(ur,Zi,Ii,Dn))}function Td(Jt,Ji,Zi){if(Zi.clauseStartx1e(Jt,ur)||Ce));if(Dn!==Ce)return Dn}return Oa(Jt,Ji,Ii=>ii(Ii,Zi))}function sm(Jt,Ji,Zi){if(z1(f,Ji))return cq(Jt,Zi?4194304:8388608);xe&&Zi&&Z9(Ji,f)&&(Jt=cq(Jt,2097152));let Ii=Sa(Ji,Jt);return Ii?Oa(Jt,Ii,Dn=>cE(Dn,Zi?4194304:8388608)):Jt}function ol(Jt,Ji,Zi){let Ii=Ku(Jt,Ji);return Ii?!!(Ii.flags&16777216||Ag(Ii)&48)||Zi:!!gS(Jt,Ji)||!Zi}function vh(Jt,Ji,Zi){let Ii=rT(Ji);if(uE(Jt,ur=>ol(ur,Ii,!0)))return cy(Jt,ur=>ol(ur,Ii,Zi));if(Zi){let ur=vst();if(ur)return Qu([Jt,CO(ur,[Ji,Ce])])}return Jt}function or(Jt,Ji,Zi,Ii,Dn){return Dn=Dn!==(Zi.kind===112)!=(Ii!==38&&Ii!==36),rn(Jt,Ji,Dn)}function Kr(Jt,Ji,Zi){switch(Ji.operatorToken.kind){case 64:case 76:case 77:case 78:return sm(rn(Jt,Ji.right,Zi),Ji.left,Zi);case 35:case 36:case 37:case 38:let Ii=Ji.operatorToken.kind,Dn=m6(Ji.left),ur=m6(Ji.right);if(Dn.kind===221&&i_(ur))return Lr(Jt,Dn,Ii,ur,Zi);if(ur.kind===221&&i_(Dn))return Lr(Jt,ur,Ii,Dn,Zi);if(z1(f,Dn))return eo(Jt,Ii,ur,Zi);if(z1(f,ur))return eo(Jt,Ii,Dn,Zi);xe&&(Z9(Dn,f)?Jt=Gn(Jt,Ii,ur,Zi):Z9(ur,f)&&(Jt=Gn(Jt,Ii,Dn,Zi)));let lr=Sa(Dn,Jt);if(lr)return wd(Jt,lr,Ii,ur,Zi);let uo=Sa(ur,Jt);if(uo)return wd(Jt,uo,Ii,Dn,Zi);if(No(Dn))return Es(Jt,Ii,ur,Zi);if(No(ur))return Es(Jt,Ii,Dn,Zi);if(sf(ur)&&!cf(Dn))return or(Jt,Dn,ur,Ii,Zi);if(sf(Dn)&&!cf(ur))return or(Jt,ur,Dn,Ii,Zi);break;case 104:return qa(Jt,Ji,Zi);case 103:if(wl(Ji.left))return bn(Jt,Ji,Zi);let Yo=m6(Ji.right);if(uY(Jt)&&cf(f)&&z1(f.expression,Yo)){let zt=Fb(Ji.left);if(px(zt)&&sq(f)===rT(zt))return cE(Jt,Zi?524288:65536)}if(z1(f,Yo)){let zt=Fb(Ji.left);if(px(zt))return vh(Jt,zt,Zi)}break;case 28:return rn(Jt,Ji.right,Zi);case 56:return Zi?rn(rn(Jt,Ji.left,!0),Ji.right,!0):Fc([rn(Jt,Ji.left,!1),rn(Jt,Ji.right,!1)]);case 57:return Zi?Fc([rn(Jt,Ji.left,!0),rn(Jt,Ji.right,!0)]):rn(rn(Jt,Ji.left,!1),Ji.right,!1)}return Jt}function bn(Jt,Ji,Zi){let Ii=m6(Ji.right);if(!z1(f,Ii))return Jt;Se.assertNode(Ji.left,wl);let Dn=F1e(Ji.left);if(Dn===void 0)return Jt;let ur=Dn.parent,lr=G0(Se.checkDefined(Dn.valueDeclaration,"should always have a declaration"))?Js(ur):_m(ur);return Gl(Jt,lr,Zi,!0)}function Gn(Jt,Ji,Zi,Ii){let Dn=Ji===35||Ji===37,ur=Ji===35||Ji===36?98304:32768,lr=Fb(Zi);return Dn!==Ii&&KS(lr,Yo=>!!(Yo.flags&ur))||Dn===Ii&&KS(lr,Yo=>!(Yo.flags&(3|ur)))?cq(Jt,2097152):Jt}function eo(Jt,Ji,Zi,Ii){if(Jt.flags&1)return Jt;(Ji===36||Ji===38)&&(Ii=!Ii);let Dn=Fb(Zi),ur=Ji===35||Ji===36;if(Dn.flags&98304){if(!xe)return Jt;let lr=ur?Ii?262144:2097152:Dn.flags&65536?Ii?131072:1048576:Ii?65536:524288;return cq(Jt,lr)}if(Ii){if(!ur&&(Jt.flags&2||uE(Jt,_6))){if(Dn.flags&469893116||_6(Dn))return Dn;if(Dn.flags&524288)return Nr}let lr=cy(Jt,uo=>HAe(uo,Dn)||ur&&nat(uo,Dn));return Dat(lr,Dn)}return KN(Dn)?cy(Jt,lr=>!(rne(lr)&&HAe(lr,Dn))):Jt}function Lr(Jt,Ji,Zi,Ii,Dn){(Zi===36||Zi===38)&&(Dn=!Dn);let ur=m6(Ji.expression);if(!z1(f,ur)){xe&&Z9(ur,f)&&Dn===(Ii.text!=="undefined")&&(Jt=cq(Jt,2097152));let lr=Sa(ur,Jt);return lr?Oa(Jt,lr,uo=>ga(uo,Ii,Dn)):Jt}return ga(Jt,Ii,Dn)}function ga(Jt,Ji,Zi){return Zi?Ht(Jt,Ji.text):cq(Jt,rFe.get(Ji.text)||32768)}function lc(Jt,{switchStatement:Ji,clauseStart:Zi,clauseEnd:Ii},Dn){return Zi!==Ii&&Yt(dR(Ji).slice(Zi,Ii),Dn)?cE(Jt,2097152):Jt}function ii(Jt,{switchStatement:Ji,clauseStart:Zi,clauseEnd:Ii}){let Dn=dR(Ji);if(!Dn.length)return Jt;let ur=Dn.slice(Zi,Ii),lr=Zi===Ii||dr(ur,Wi);if(Jt.flags&2&&!lr){let Dt;for(let xn=0;xnHAe(uo,Dt)),uo);if(!lr)return Yo;let zt=cy(Jt,Dt=>!(rne(Dt)&&dr(Dn,Dt.flags&32768?ye:Ig(Oqt(Dt)))));return Yo.flags&131072?zt:Fc([Yo,zt])}function Ht(Jt,Ji){switch(Ji){case"string":return sr(Jt,Ot,1);case"number":return sr(Jt,Fi,2);case"bigint":return sr(Jt,Vn,4);case"boolean":return sr(Jt,Cn,8);case"symbol":return sr(Jt,cn,16);case"object":return Jt.flags&1?Jt:Fc([sr(Jt,Nr,32),sr(Jt,si,131072)]);case"function":return Jt.flags&1?Jt:sr(Jt,wo,64);case"undefined":return sr(Jt,ye,65536)}return sr(Jt,Nr,128)}function sr(Jt,Ji,Zi){return oh(Jt,Ii=>$N(Ii,Ji,e1)?XN(Ii,Zi)?Ii:Wi:Jz(Ji,Ii)?Ji:XN(Ii,Zi)?Qu([Ii,Ji]):Wi)}function so(Jt,{switchStatement:Ji,clauseStart:Zi,clauseEnd:Ii}){let Dn=hY(Ji);if(!Dn)return Jt;let ur=_n(Ji.caseBlock.clauses,Yo=>Yo.kind===297);if(Zi===Ii||ur>=Zi&&ur_Y(zt,Yo)===Yo)}let uo=Dn.slice(Zi,Ii);return Fc($i(uo,Yo=>Yo?Ht(Jt,Yo):Wi))}function Uo(Jt,{switchStatement:Ji,clauseStart:Zi,clauseEnd:Ii}){let Dn=_n(Ji.caseBlock.clauses,uo=>uo.kind===297),ur=Zi===Ii||Dn>=Zi&&Dnuo.kind===296?rn(Jt,uo.expression,!0):Wi))}function No(Jt){return(ba(Jt)&&Un(Jt.name)==="constructor"||T_(Jt)&&i_(Jt.argumentExpression)&&Jt.argumentExpression.text==="constructor")&&z1(f,Jt.expression)}function Es(Jt,Ji,Zi,Ii){if(Ii?Ji!==35&&Ji!==37:Ji!==36&&Ji!==38)return Jt;let Dn=Fb(Zi);if(!Tlt(Dn)&&!to(Dn))return Jt;let ur=Ku(Dn,"prototype");if(!ur)return Jt;let lr=Js(ur),uo=qr(lr)?void 0:lr;if(!uo||uo===er||uo===wo)return Jt;if(qr(Jt))return uo;return cy(Jt,zt=>Yo(zt,uo));function Yo(zt,Dt){return zt.flags&524288&&Ls(zt)&1||Dt.flags&524288&&Ls(Dt)&1?zt.symbol===Dt.symbol:Jz(zt,Dt)}}function qa(Jt,Ji,Zi){let Ii=m6(Ji.left);if(!z1(f,Ii))return Zi&&xe&&Z9(Ii,f)?cq(Jt,2097152):Jt;let Dn=Ji.right,ur=Fb(Dn);if(!K9(ur,er))return Jt;let lr=cne(Ji),uo=lr&&Pw(lr);if(uo&&uo.kind===1&&uo.parameterIndex===0)return Gl(Jt,uo.type,Zi,!0);if(!K9(ur,wo))return Jt;let Yo=oh(ur,pc);return qr(Jt)&&(Yo===er||Yo===wo)||!Zi&&!(Yo.flags&524288&&!_6(Yo))?Jt:Gl(Jt,Yo,Zi,!0)}function pc(Jt){let Ji=Ln(Jt,"prototype");if(Ji&&!qr(Ji))return Ji;let Zi=kd(Jt,1);return Zi.length?Fc($i(Zi,Ii=>Op(Fue(Ii)))):ja}function Gl(Jt,Ji,Zi,Ii){let Dn=Jt.flags&1048576?`N${Rv(Jt)},${Rv(Ji)},${(Zi?1:0)|(Ii?2:0)}`:void 0;return Oi(Dn)??L1(Dn,zu(Jt,Ji,Zi,Ii))}function zu(Jt,Ji,Zi,Ii){if(!Zi){if(Jt===Ji)return Wi;if(Ii)return cy(Jt,Yo=>!K9(Yo,Ji));let uo=Gl(Jt,Ji,!0,!1);return cy(Jt,Yo=>!gY(Yo,uo))}if(Jt.flags&3||Jt===Ji)return Ji;let Dn=Ii?K9:Jz,ur=Jt.flags&1048576?S1e(Jt):void 0,lr=oh(Ji,uo=>{let Yo=ur&&Ln(uo,ur),zt=Yo&&x1e(Jt,Yo),Dt=oh(zt||Jt,Ii?xn=>K9(xn,uo)?xn:K9(uo,xn)?uo:Wi:xn=>zAe(xn,uo)?xn:zAe(uo,xn)?uo:Jz(xn,uo)?xn:Jz(uo,xn)?uo:Wi);return Dt.flags&131072?oh(Jt,xn=>n0(xn,465829888)&&Dn(uo,Pb(xn)||Ce)?Qu([xn,uo]):Wi):Dt});return lr.flags&131072?Jz(Ji,Jt)?Ji:wf(Jt,Ji)?Jt:wf(Ji,Jt)?Ji:Qu([Jt,Ji]):lr}function kp(Jt,Ji,Zi){if(pde(Ji,f)){let Ii=Zi||!E2(Ji)?cne(Ji):void 0,Dn=Ii&&Pw(Ii);if(Dn&&(Dn.kind===0||Dn.kind===1))return ji(Jt,Dn,Ji,Zi)}if(uY(Jt)&&cf(f)&&ba(Ji.expression)){let Ii=Ji.expression;if(z1(f.expression,m6(Ii.expression))&&Ai(Ii.name)&&Ii.name.escapedText==="hasOwnProperty"&&Ji.arguments.length===1){let Dn=Ji.arguments[0];if(i_(Dn)&&sq(f)===kh(Dn.text))return cE(Jt,Zi?524288:65536)}}return Jt}function ji(Jt,Ji,Zi,Ii){if(Ji.type&&!(qr(Jt)&&(Ji.type===er||Ji.type===wo))){let Dn=n$t(Ji,Zi);if(Dn){if(z1(f,Dn))return Gl(Jt,Ji.type,Ii,!1);xe&&Z9(Dn,f)&&(Ii&&!XN(Ji.type,65536)||!Ii&&KS(Ji.type,O1e))&&(Jt=cq(Jt,2097152));let ur=Sa(Dn,Jt);if(ur)return Oa(Jt,ur,lr=>Gl(lr,Ji.type,Ii,!1))}}return Jt}function rn(Jt,Ji,Zi){if(gH(Ji)||ms(Ji.parent)&&(Ji.parent.operatorToken.kind===61||Ji.parent.operatorToken.kind===78)&&Ji.parent.left===Ji)return Cr(Jt,Ji,Zi);switch(Ji.kind){case 80:if(!z1(f,Ji)&&R<5){let Ii=SS(Ji);if(_q(Ii)){let Dn=Ii.valueDeclaration;if(Dn&&$c(Dn)&&!Dn.type&&Dn.initializer&&Lat(f)){R++;let ur=rn(Jt,Dn.initializer,Zi);return R--,ur}}}case 110:case 108:case 211:case 212:return sm(Jt,Ji,Zi);case 213:return kp(Jt,Ji,Zi);case 217:case 235:return rn(Jt,Ji.expression,Zi);case 226:return Kr(Jt,Ji,Zi);case 224:if(Ji.operator===54)return rn(Jt,Ji.operand,!Zi);break}return Jt}function Cr(Jt,Ji,Zi){if(z1(f,Ji))return cq(Jt,Zi?2097152:262144);let Ii=Sa(Ji,Jt);return Ii?Oa(Jt,Ii,Dn=>cE(Dn,Zi?2097152:262144)):Jt}}function Iwt(f,S){if(f=Jh(f),(S.kind===80||S.kind===81)&&(ZH(S)&&(S=S.parent),ab(S)&&(!O3(S)||Wj(S)))){let E=Ox(Wj(S)&&S.kind===211?hWe(S,void 0,!0):Fb(S));if(Jh(ra(S).resolvedSymbol)===f)return E}return VT(S)&&Gw(S.parent)&&XM(S.parent)?Vie(S.parent.symbol):by(S)&&Wj(S.parent)?Hk(f):i6(f)}function T1e(f){return go(f.parent,S=>iu(S)&&!w3(S)||S.kind===268||S.kind===307||S.kind===172)}function hde(f){return!Oat(f,void 0)}function Oat(f,S){let E=go(f.valueDeclaration,pPe);if(!E)return!1;let P=ra(E);return P.flags&131072||(P.flags|=131072,Nwt(E)||Jje(E)),!f.lastAssignmentPos||S&&f.lastAssignmentPosS.kind!==232&&_Pe(S.name))}function Nwt(f){return!!go(f.parent,S=>pPe(S)&&!!(ra(S).flags&131072))}function pPe(f){return Rp(f)||ul(f)}function Jje(f){switch(f.kind){case 80:if(O3(f)){let P=SS(f);if(gde(P)&&P.lastAssignmentPos!==Number.MAX_VALUE){let z=go(f,pPe),q=go(P.valueDeclaration,pPe);P.lastAssignmentPos=z===q?Awt(f,P.valueDeclaration):Number.MAX_VALUE}}return;case 281:let S=f.parent.parent,E=f.propertyName||f.name;if(!f.isTypeOnly&&!S.isTypeOnly&&!S.moduleSpecifier&&E.kind!==11){let P=zf(E,111551,!0,!0);P&&gde(P)&&(P.lastAssignmentPos=Number.MAX_VALUE)}return;case 264:case 265:case 266:return}Qa(f)||_d(f,Jje)}function Awt(f,S){let E=f.pos;for(;f&&f.pos>S.pos;){switch(f.kind){case 243:case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 258:case 263:E=f.end}f=f.parent}return E}function _q(f){return f.flags&3&&(pWe(f)&6)!==0}function gde(f){let S=f.valueDeclaration&&UT(f.valueDeclaration);return!!S&&(Fl(S)||$c(S)&&(eC(S.parent)||Pwt(S)))}function Pwt(f){return!!(f.parent.flags&1)&&!(iv(f)&32||f.parent.parent.kind===243&&w8(f.parent.parent.parent))}function mPe(f){let S=ra(f);if(S.parameterInitializerContainsUndefined===void 0){if(!Vd(f,8))return O9(f.symbol),!0;let E=!!XN(Oy(f,0),16777216);if(!gt())return O9(f.symbol),!0;S.parameterInitializerContainsUndefined??(S.parameterInitializerContainsUndefined=E)}return S.parameterInitializerContainsUndefined}function qje(f,S){return xe&&S.kind===169&&S.initializer&&XN(f,16777216)&&!mPe(S)?cE(f,524288):f}function Lwt(f,S){let E=S.parent;return E.kind===211||E.kind===166||E.kind===213&&E.expression===S||E.kind===214&&E.expression===S||E.kind===212&&E.expression===S&&!(uE(f,Owt)&&zz(Fb(E.argumentExpression)))}function Fat(f){return f.flags&2097152?En(f.types,Fat):!!(f.flags&465829888&&CP(f).flags&1146880)}function Owt(f){return f.flags&2097152?En(f.types,Owt):!!(f.flags&465829888&&!n0(CP(f),98304))}function lne(f,S){let E=(Ai(f)||ba(f)||T_(f))&&!((Y0(f.parent)||mh(f.parent))&&f.parent.tagName===f)&&(S&&S&32?TC(f,8):TC(f,void 0));return E&&!wD(E)}function Mat(f,S,E){return W9(f)&&(f=f.baseType),!(E&&E&2)&&uE(f,Fat)&&(Lwt(f,S)||lne(S,E))?oh(f,CP):f}function Rat(f){return!!go(f,S=>{let E=S.parent;return E===void 0?"quit":Bm(E)?E.expression===S&&Dp(S):X0(E)?E.name===S||E.propertyName===S:!1})}function vY(f,S,E,P){if(Ut&&!(f.flags&33554432&&!hx(f)&&!vu(f)))switch(S){case 1:return $je(f);case 2:return Bat(f,E,P);case 3:return Fwt(f);case 4:return jat(f);case 5:return Gje(f);case 6:return Mwt(f);case 7:return Rwt(f);case 8:return Bwt(f);case 0:{if(Ai(f)&&(ab(f)||Q0(f.parent)||pf(f.parent)&&f.parent.moduleReference===f)&&Wwt(f)){if(sj(f.parent)&&(ba(f.parent)?f.parent.expression:f.parent.left)!==f)return;$je(f);return}if(sj(f)){let z=f;for(;sj(z);){if(jA(z))return;z=z.parent}return Bat(f)}return Bm(f)?Fwt(f):nv(f)||cM(f)?jat(f):pf(f)?y5(f)||fze(f)?Mwt(f):void 0:X0(f)?Rwt(f):((Rp(f)||sT(f))&&Gje(f),!X.emitDecoratorMetadata||!_W(f)||!uw(f)||!f.modifiers||!DH(_e,f,f.parent,f.parent.parent)?void 0:Bwt(f))}default:Se.assertNever(S,`Unhandled reference hint: ${S}`)}}function $je(f){let S=SS(f);S&&S!==ht&&S!==St&&!L8(f)&&yde(S,f)}function Bat(f,S,E){let P=ba(f)?f.expression:f.left;if(JA(P)||!Ai(P))return;let z=SS(P);if(!z||z===St)return;if($E(X)||ph(X)&&Rat(f)){yde(z,f);return}let q=E||r0(P);if(qr(q)||q===Kn){yde(z,f);return}let oe=S;if(!oe&&!E){let Fe=ba(f)?f.name:f.right,Ye=wl(Fe)&&APe(Fe.escapedText,Fe),it=N8(f),tt=qS(it!==0||gWe(f)?$k(q):q);oe=wl(Fe)?Ye&&PPe(tt,Ye)||void 0:Ku(tt,Fe.escapedText)}oe&&(Sbe(oe)||oe.flags&8&&f.parent.kind===306)||yde(z,f)}function Fwt(f){if(Ai(f.expression)){let S=f.expression,E=Jh(zf(S,-1,!0,!0,f));E&&yde(E,S)}}function jat(f){if(!tct(f)){let S=Gu&&X.jsx===2?j.Cannot_find_name_0:void 0,E=zm(f),P=nv(f)?f.tagName:f,z;if(cM(f)&&E==="null"||(z=Ei(P,E,111551,S,!0)),z&&(z.isReferenced=-1,Ut&&z.flags&2097152&&!vT(z)&&hPe(z)),cM(f)){let q=Vo(f),oe=_I(q);oe&&Ei(P,oe,111551,S,!0)}}}function Gje(f){if(ne<2&&Gg(f)&2){let S=WC(f);r$t(S)}}function Mwt(f){kc(f,32)&&Kje(f)}function Rwt(f){if(!f.parent.parent.moduleSpecifier&&!f.isTypeOnly&&!f.parent.parent.isTypeOnly){let S=f.propertyName||f.name;if(S.kind===11)return;let E=Ei(S,S.escapedText,2998271,void 0,!0);if(!(E&&(E===mt||E===ut||E.declarations&&w8(di(E.declarations[0]))))){let P=E&&(E.flags&2097152?oy(E):E);(!P||qy(P)&111551)&&(Kje(f),$je(S))}return}}function Bwt(f){if(X.emitDecoratorMetadata){let S=jt(f.modifiers,Cy);if(!S)return;switch(Ky(S,16),f.kind){case 263:let E=eI(f);if(E)for(let oe of E.parameters)tB(DY(oe));break;case 177:case 178:let P=f.kind===177?178:177,z=Kp(Bs(f),P);tB(XM(f)||z&&XM(z));break;case 174:for(let oe of f.parameters)tB(DY(oe));tB(WC(f));break;case 172:tB(gm(f));break;case 169:tB(DY(f));let q=f.parent;for(let oe of q.parameters)tB(DY(oe));tB(WC(q));break}}}function yde(f,S){if(Ut&&pC(f,111551)&&!GH(S)){let E=oy(f);qy(f,!0)&1160127&&($E(X)||ph(X)&&Rat(S)||!Sbe(Jh(E)))&&hPe(f)}}function hPe(f){Se.assert(Ut);let S=Nl(f);if(!S.referenced){S.referenced=!0;let E=Uh(f);if(!E)return Se.fail();if(y5(E)&&qy(Nm(f))&111551){let P=fx(E.moduleReference);$je(P)}}}function Kje(f){let S=Bs(f),E=oy(S);E&&(E===St||qy(S,!0)&111551&&!Sbe(E))&&hPe(S)}function Wat(f,S){if(!f)return;let E=fx(f),P=(f.kind===80?788968:1920)|2097152,z=Ei(E,E.escapedText,P,void 0,!0);if(z&&z.flags&2097152){if(Ut&&r1(z)&&!Sbe(oy(z))&&!vT(z))hPe(z);else if(S&&$E(X)&&b1(X)>=5&&!r1(z)&&!En(z.declarations,j6)){let q=ki(f,j.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),oe=jt(z.declarations||F,Nh);oe&&Pd(q,ws(oe,j._0_was_imported_here,Un(E)))}}}function r$t(f){Wat(f&&sb(f),!1)}function tB(f){let S=GWe(f);S&&tb(S)&&Wat(S,!0)}function zat(f,S){var E;let P=Js(f),z=f.valueDeclaration;if(z){if(Zd(z)&&!z.initializer&&!z.dotDotDotToken&&z.parent.elements.length>=2){let q=z.parent.parent,oe=UT(q);if(oe.kind===260&&ca(oe)&6||oe.kind===169){let Fe=ra(q);if(!(Fe.flags&4194304)){Fe.flags|=4194304;let Ye=$t(q,0),it=Ye&&oh(Ye,CP);if(Fe.flags&=-4194305,it&&it.flags&1048576&&!(oe.kind===169&&Gz(oe))){let tt=z.parent,It=zL(tt,it,it,void 0,S.flowNode);return It.flags&131072?Wi:v_(z,It,!0)}}}}if(Fl(z)&&!z.type&&!z.initializer&&!z.dotDotDotToken){let q=z.parent;if(q.parameters.length>=2&&bje(q)){let oe=pq(q);if(oe&&oe.parameters.length===1&&Wu(oe)){let Fe=XX(Ul(Js(oe.parameters[0]),(E=Xz(q))==null?void 0:E.nonFixingMapper));if(Fe.flags&1048576&&KS(Fe,a_)&&!En(q.parameters,Gz)){let Ye=zL(q,Fe,Fe,void 0,S.flowNode),it=q.parameters.indexOf(z)-(R3(q)?1:0);return rk(Ye,fg(it))}}}}}return P}function jwt(f,S){if(L8(f))return;if(S===ht){if(kde(f)){ki(f,j.arguments_cannot_be_referenced_in_property_initializers);return}let q=BS(f);if(q)for(ne<2&&(q.kind===219?ki(f,j.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression):kc(q,1024)&&ki(f,j.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method)),ra(q).flags|=512;q&&Zc(q);)q=BS(q),q&&(ra(q).flags|=512);return}let E=Jh(S),P=plt(E,f);Rk(P)&&Mst(f,P)&&P.declarations&&Ex(f,P.declarations,f.escapedText);let z=E.valueDeclaration;if(z&&E.flags&32&&bc(z)&&z.name!==f){let q=Kb(f,!1,!1);for(;q.kind!==307&&q.parent!==z;)q=Kb(q,!1,!1);q.kind!==307&&(ra(z).flags|=262144,ra(q).flags|=262144,ra(f).flags|=536870912)}a$t(f,S)}function o$t(f,S){if(L8(f))return gPe(f);let E=SS(f);if(E===St)return Ie;if(jwt(f,E),E===ht)return kde(f)?Ie:Js(E);Wwt(f)&&vY(f,1);let P=Jh(E),z=P.valueDeclaration;if(z&&z.kind===208&&dr(Co,z.parent)&&go(f,Ko=>Ko===z.parent))return ui;let q=zat(P,f),oe=N8(f);if(oe){if(!(P.flags&3)&&!(Ys(f)&&P.flags&512)){let Ko=P.flags&384?j.Cannot_assign_to_0_because_it_is_an_enum:P.flags&32?j.Cannot_assign_to_0_because_it_is_a_class:P.flags&1536?j.Cannot_assign_to_0_because_it_is_a_namespace:P.flags&16?j.Cannot_assign_to_0_because_it_is_a_function:P.flags&2097152?j.Cannot_assign_to_0_because_it_is_an_import:j.Cannot_assign_to_0_because_it_is_not_a_variable;return ki(f,Ko,zl(E)),Ie}if(DD(P))return P.flags&3?ki(f,j.Cannot_assign_to_0_because_it_is_a_constant,zl(E)):ki(f,j.Cannot_assign_to_0_because_it_is_a_read_only_property,zl(E)),Ie}let Fe=P.flags&2097152;if(P.flags&3){if(oe===1)return ime(f)?RL(q):q}else if(Fe)z=Uh(E);else return q;if(!z)return q;q=Mat(q,f,S);let Ye=UT(z).kind===169,it=T1e(z),tt=T1e(f),It=tt!==it,Pt=f.parent&&f.parent.parent&&H2(f.parent)&&mY(f.parent.parent),yi=E.flags&134217728,Hi=q===Gt||q===Md,vn=Hi&&f.parent.kind===235;for(;tt!==it&&(tt.kind===218||tt.kind===219||EZ(tt))&&(_q(P)&&q!==Md||gde(P)&&Oat(P,f));)tt=T1e(tt);let br=Ye||Fe||It||Pt||yi||s$t(f,z)||q!==Gt&&q!==Md&&(!xe||(q.flags&16387)!==0||GH(f)||Wje(f)||f.parent.kind===281)||f.parent.kind===235||z.kind===260&&z.exclamationToken||z.flags&33554432,Qr=vn?ye:br?Ye?qje(q,z):q:Hi?ye:aR(q),ao=vn?LO(zL(f,q,Qr,tt)):zL(f,q,Qr,tt);if(!Nat(f)&&(q===Gt||q===Md)){if(ao===Gt||ao===Md)return Ae&&(ki(Nu(z),j.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,zl(E),vs(ao)),ki(f,j.Variable_0_implicitly_has_an_1_type,zl(E),vs(ao))),iA(ao)}else if(!br&&!iq(q)&&iq(ao))return ki(f,j.Variable_0_is_used_before_being_assigned,zl(E)),q;return oe?RL(ao):ao}function s$t(f,S){if(Zd(S)){let E=go(f,Zd);return E&&UT(E)===UT(S)}}function Wwt(f){var S;let E=f.parent;if(E){if(ba(E)&&E.expression===f||X0(E)&&E.isTypeOnly)return!1;let P=(S=E.parent)==null?void 0:S.parent;if(P&&Qg(P)&&P.isTypeOnly)return!1}return!0}function Xje(f,S){return!!go(f,E=>E===S?"quit":iu(E)||E.parent&&vu(E.parent)&&!G0(E.parent)&&E.parent.initializer===E)}function zwt(f,S){return go(f,E=>E===S?"quit":E===S.initializer||E===S.condition||E===S.incrementor||E===S.statement)}function Yje(f){return go(f,S=>!S||ome(S)?"quit":v8(S,!1))}function a$t(f,S){if(ne>=2||!(S.flags&34)||!S.valueDeclaration||ul(S.valueDeclaration)||S.valueDeclaration.parent.kind===299)return;let E=Xw(S.valueDeclaration),P=Xje(f,E),z=Yje(E);if(z){if(P){let q=!0;if(QA(E)){let oe=M2(S.valueDeclaration,261);if(oe&&oe.parent===E){let Fe=zwt(f.parent,E);if(Fe){let Ye=ra(Fe);Ye.flags|=8192;let it=Ye.capturedBlockScopeBindings||(Ye.capturedBlockScopeBindings=[]);Xu(it,S),Fe===E.initializer&&(q=!1)}}}q&&(ra(z).flags|=4096)}if(QA(E)){let q=M2(S.valueDeclaration,261);q&&q.parent===E&&Hwt(f,E)&&(ra(S.valueDeclaration).flags|=65536)}ra(S.valueDeclaration).flags|=32768}P&&(ra(S.valueDeclaration).flags|=16384)}function Vwt(f,S){let E=ra(f);return!!E&&dr(E.capturedBlockScopeBindings,Bs(S))}function Hwt(f,S){let E=f;for(;E.parent.kind===217;)E=E.parent;let P=!1;if(O3(E))P=!0;else if(E.parent.kind===224||E.parent.kind===225){let z=E.parent;P=z.operator===46||z.operator===47}return P?!!go(E,z=>z===S?"quit":z===S.statement):!1}function Qje(f,S){if(ra(f).flags|=2,S.kind===172||S.kind===176){let E=S.parent;ra(E).flags|=4}else ra(S).flags|=4}function Zje(f){return m5(f)?f:iu(f)?void 0:_d(f,Zje)}function Vat(f){let S=Bs(f),E=_m(S);return ha(E)===At}function Uwt(f,S,E){let P=S.parent;K6(P)&&!Vat(P)&&vse(f)&&f.flowNode&&!Uje(f.flowNode,!1)&&ki(f,E)}function c$t(f,S){vu(S)&&G0(S)&&_e&&S.initializer&&Roe(S.initializer,f.pos)&&uw(S.parent)&&ki(f,j.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function gPe(f){let S=GH(f),E=Kb(f,!0,!0),P=!1,z=!1;for(E.kind===176&&Uwt(f,E,j.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);;){if(E.kind===219&&(E=Kb(E,!1,!z),P=!0),E.kind===167){E=Kb(E,!P,!1),z=!0;continue}break}if(c$t(f,E),z)ki(f,j.this_cannot_be_referenced_in_a_computed_property_name);else switch(E.kind){case 267:ki(f,j.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 266:ki(f,j.this_cannot_be_referenced_in_current_location);break}!S&&P&&ne<2&&Qje(f,E);let q=Hat(f,!0,E);if(Ge){let oe=Js(ut);if(q===oe&&P)ki(f,j.The_containing_arrow_function_captures_the_global_value_of_this);else if(!q){let Fe=ki(f,j.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!ul(E)){let Ye=Hat(E);Ye&&Ye!==oe&&Pd(Fe,ws(E,j.An_outer_value_of_this_is_shadowed_by_this_container))}}}return q||pt}function Hat(f,S=!0,E=Kb(f,!1,!1)){let P=Ys(f);if(iu(E)&&(!vPe(f)||R3(E))){let z=fAe(E)||P&&Jwt(E);if(!z){let q=Uat(E);if(P&&q){let oe=fu(q).symbol;oe&&oe.members&&oe.flags&16&&(z=_m(oe).thisType)}else QN(E)&&(z=_m(Vf(E.symbol)).thisType);z||(z=Jat(E))}if(z)return zL(f,z)}if(bc(E.parent)){let z=Bs(E.parent),q=Xd(E)?Js(z):_m(z).thisType;return zL(f,q)}if(ul(E))if(E.commonJsModuleIndicator){let z=Bs(E);return z&&Js(z)}else{if(E.externalModuleIndicator)return ye;if(S)return Js(ut)}}function l$t(f){let S=Kb(f,!1,!1);if(iu(S)){let E=m2(S);if(E.thisParameter)return uPe(E.thisParameter)}if(bc(S.parent)){let E=Bs(S.parent);return Xd(S)?Js(E):_m(E).thisType}}function Uat(f){if(f.kind===218&&ms(f.parent)&&wh(f.parent)===3)return f.parent.left.expression.expression;if(f.kind===174&&f.parent.kind===210&&ms(f.parent.parent)&&wh(f.parent.parent)===6)return f.parent.parent.left.expression;if(f.kind===218&&f.parent.kind===303&&f.parent.parent.kind===210&&ms(f.parent.parent.parent)&&wh(f.parent.parent.parent)===6)return f.parent.parent.parent.left.expression;if(f.kind===218&&Ih(f.parent)&&Ai(f.parent.name)&&(f.parent.name.escapedText==="value"||f.parent.name.escapedText==="get"||f.parent.name.escapedText==="set")&&Ld(f.parent.parent)&&Od(f.parent.parent.parent)&&f.parent.parent.parent.arguments[2]===f.parent.parent&&wh(f.parent.parent.parent)===9)return f.parent.parent.parent.arguments[0].expression;if(Sg(f)&&Ai(f.name)&&(f.name.escapedText==="value"||f.name.escapedText==="get"||f.name.escapedText==="set")&&Ld(f.parent)&&Od(f.parent.parent)&&f.parent.parent.arguments[2]===f.parent&&wh(f.parent.parent)===9)return f.parent.parent.arguments[0].expression}function Jwt(f){let S=zoe(f);if(S&&S.typeExpression)return al(S.typeExpression);let E=K_(f);if(E)return PF(E)}function eWe(f,S){return!!go(f,E=>Rp(E)?"quit":E.kind===169&&E.parent===S)}function yPe(f){let S=f.parent.kind===213&&f.parent.expression===f,E=IZ(f,!0),P=E,z=!1,q=!1;if(!S){for(;P&&P.kind===219;)kc(P,1024)&&(q=!0),P=IZ(P,!0),z=ne<2;P&&kc(P,1024)&&(q=!0)}let oe=0;if(!P||!tt(P)){let It=go(f,Pt=>Pt===P?"quit":Pt.kind===167);return It&&It.kind===167?ki(f,j.super_cannot_be_referenced_in_a_computed_property_name):S?ki(f,j.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):!P||!P.parent||!(bc(P.parent)||P.parent.kind===210)?ki(f,j.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):ki(f,j.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),Ie}if(!S&&E.kind===176&&Uwt(f,P,j.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),Xd(P)||S?(oe=32,!S&&ne>=2&&ne<=8&&(vu(P)||Yf(P))&&use(f.parent,It=>{(!ul(It)||Jv(It))&&(ra(It).flags|=2097152)})):oe=16,ra(f).flags|=oe,P.kind===174&&q&&(Xx(f.parent)&&O3(f.parent)?ra(P).flags|=256:ra(P).flags|=128),z&&Qje(f.parent,P),P.parent.kind===210)return ne<2?(ki(f,j.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Ie):pt;let Fe=P.parent;if(!K6(Fe))return ki(f,j.super_can_only_be_referenced_in_a_derived_class),Ie;if(Vat(Fe))return S?Ie:At;let Ye=_m(Bs(Fe)),it=Ye&&Pp(Ye)[0];if(!it)return Ie;if(P.kind===176&&eWe(f,P))return ki(f,j.super_cannot_be_referenced_in_constructor_arguments),Ie;return oe===32?ha(Ye):Aw(it,Ye.thisType);function tt(It){return S?It.kind===176:bc(It.parent)||It.parent.kind===210?Xd(It)?It.kind===174||It.kind===173||It.kind===177||It.kind===178||It.kind===172||It.kind===175:It.kind===174||It.kind===173||It.kind===177||It.kind===178||It.kind===172||It.kind===171||It.kind===176:!1}}function tWe(f){return(f.kind===174||f.kind===177||f.kind===178)&&f.parent.kind===210?f.parent:f.kind===218&&f.parent.kind===303?f.parent.parent:void 0}function qwt(f){return Ls(f)&4&&f.target===hp?nh(f)[0]:void 0}function u$t(f){return oh(f,S=>S.flags&2097152?ee(S.types,qwt):qwt(S))}function $wt(f,S){let E=f,P=S;for(;P;){let z=u$t(P);if(z)return z;if(E.parent.kind!==303)break;E=E.parent.parent,P=fR(E,void 0)}}function Jat(f){if(f.kind===219)return;if(bje(f)){let E=pq(f);if(E){let P=E.thisParameter;if(P)return Js(P)}}let S=Ys(f);if(Ge||S){let E=tWe(f);if(E){let z=fR(E,void 0),q=$wt(E,z);return q?Ul(q,tPe(Xz(E))):$k(z?LO(z):r0(E))}let P=uN(f.parent);if(Kg(P)){let z=P.left;if(cf(z)){let{expression:q}=z;if(S&&Ai(q)){let oe=Vo(P);if(oe.commonJsModuleIndicator&&SS(q)===oe.symbol)return}return $k(r0(q))}}}}function Gwt(f){let S=f.parent;if(!bje(S))return;let E=w3(S);if(E&&E.arguments){let z=CWe(E),q=S.parameters.indexOf(f);if(f.dotDotDotToken)return yct(z,q,z.length,pt,void 0,0);let oe=ra(E),Fe=oe.resolvedSignature;oe.resolvedSignature=oi;let Ye=q0)return Ir(E.name,!0,!1)}}function Xwt(f,S){let E=BS(f);if(E){let P=iWe(E,S);if(P){let z=Gg(E);if(z&1){let q=(z&2)!==0;P.flags&1048576&&(P=cy(P,Fe=>!!uB(1,Fe,q)));let oe=uB(1,P,(z&2)!==0);if(!oe)return;P=oe}if(z&2){let q=oh(P,HF);return q&&Fc([q,YTt(q)])}return P}}}function qat(f,S){let E=TC(f,S);if(E){let P=HF(E);return P&&Fc([P,YTt(P)])}}function f$t(f,S){let E=BS(f);if(E){let P=Gg(E),z=iWe(E,S);if(z){let q=(P&2)!==0;if(!f.asteriskToken&&z.flags&1048576&&(z=cy(z,oe=>!!uB(1,oe,q))),f.asteriskToken){let oe=ult(z,q),Fe=oe?.yieldType??Kn,Ye=TC(f,S)??Kn,it=oe?.nextType??Ce,tt=fE(Fe,Ye,it,!1);if(q){let It=fE(Fe,Ye,it,!0);return Fc([tt,It])}return tt}return uB(0,z,q)}}}function vPe(f){let S=!1;for(;f.parent&&!iu(f.parent);){if(Fl(f.parent)&&(S||f.parent.initializer===f))return!0;Zd(f.parent)&&f.parent.initializer===f&&(S=!0),f=f.parent}return!1}function Ywt(f,S){let E=!!(Gg(S)&2),P=iWe(S,void 0);if(P)return uB(f,P,E)||void 0}function iWe(f,S){let E=qie(f);if(E)return E;let P=Xat(f);if(P&&!BBe(P)){let q=Op(P),oe=Gg(f);return oe&1?cy(q,Fe=>!!(Fe.flags&58998787)||VWe(Fe,oe,void 0)):oe&2?cy(q,Fe=>!!(Fe.flags&58998787)||!!eV(Fe)):q}let z=w3(f);if(z)return TC(z,S)}function Qwt(f,S){let P=CWe(f).indexOf(S);return P===-1?void 0:nWe(f,P)}function nWe(f,S){if(Kx(f))return S===0?Ot:S===1?Tkt(!1):pt;let E=ra(f).resolvedSignature===hr?hr:bq(f);if(nv(f)&&S===0)return cWe(E,f);let P=E.parameters.length-1;return Wu(E)&&S>=P?rk(Js(E.parameters[P]),fg(S-P),256):eA(E,S)}function bPe(f){let S=YPe(f);return S?$S(S):void 0}function _$t(f,S){if(f.parent.kind===215)return Qwt(f.parent,S)}function p$t(f,S){let E=f.parent,{left:P,operatorToken:z,right:q}=E;switch(z.kind){case 64:case 77:case 76:case 78:return f===q?rWe(E):void 0;case 57:case 61:let oe=TC(E,S);return f===q&&(oe&&oe.pattern||!oe&&!fG(E))?Fb(P):oe;case 56:case 28:return f===q?TC(E,S):void 0;default:return}}function nB(f){if($x(f)&&f.symbol)return f.symbol;if(Ai(f))return SS(f);if(ba(f)){let E=Fb(f.expression);return wl(f.name)?S(E,f.name):Ku(E,f.name.escapedText)}if(T_(f)){let E=r0(f.argumentExpression);if(!px(E))return;let P=Fb(f.expression);return Ku(P,rT(E))}return;function S(E,P){let z=APe(P.escapedText,P);return z&&PPe(E,z)}}function rWe(f){var S,E;let P=wh(f);switch(P){case 0:case 4:let z=nB(f.left),q=z&&z.valueDeclaration;if(q&&(vu(q)||hx(q))){let Ye=gm(q);return Ye&&Ul(al(Ye),Nl(z).mapper)||(vu(q)?q.initializer&&Fb(f.left):void 0)}return P===0?Fb(f.left):Fx(f);case 5:if(vde(f,P))return Fx(f);if(!$x(f.left)||!f.left.symbol)return Fb(f.left);{let Ye=f.left.symbol.valueDeclaration;if(!Ye)return;let it=$d(f.left,cf),tt=gm(Ye);if(tt)return al(tt);if(Ai(it.expression)){let It=it.expression,Pt=Ei(It,It.escapedText,111551,void 0,!0);if(Pt){let yi=Pt.valueDeclaration&&gm(Pt.valueDeclaration);if(yi){let Hi=Yw(it);if(Hi!==void 0)return VL(al(yi),Hi)}return}}return Ys(Ye)||Ye===f.left?void 0:Fb(f.left)}case 1:case 6:case 3:case 2:let oe;P!==2&&(oe=$x(f.left)?(S=f.left.symbol)==null?void 0:S.valueDeclaration:void 0),oe||(oe=(E=f.symbol)==null?void 0:E.valueDeclaration);let Fe=oe&&gm(oe);return Fe?al(Fe):void 0;case 7:case 8:case 9:return Se.fail("Does not apply");default:return Se.assertNever(P)}}function vde(f,S=wh(f)){if(S===4)return!0;if(!Ys(f)||S!==5||!Ai(f.left.expression))return!1;let E=f.left.expression.escapedText,P=Ei(f.left,E,111551,void 0,!0,!0);return T3(P?.valueDeclaration)}function Fx(f){if(!f.symbol)return Fb(f.left);if(f.symbol.valueDeclaration){let z=gm(f.symbol.valueDeclaration);if(z){let q=al(z);if(q)return q}}let S=$d(f.left,cf);if(!zT(Kb(S.expression,!1,!1)))return;let E=gPe(S.expression),P=Yw(S);return P!==void 0&&VL(E,P)||void 0}function Zwt(f){return!!(Ag(f)&262144&&!f.links.type&&xD(f,0)>=0)}function VL(f,S,E){return oh(f,P=>{var z;if(Mv(P)&&Nb(P)!==2){let q=Ph(P),oe=Pb(q)||q,Fe=E||kC(Ba(S));if(wf(Fe,oe))return cje(P,Fe)}else if(P.flags&3670016){let q=Ku(P,S);if(q)return Zwt(q)?void 0:qk(Js(q),!!(q.flags&16777216));if(a_(P)&&nL(S)&&+S>=0){let oe=ode(P,P.target.fixedLength,0,!1,!0);if(oe)return oe}return(z=kAe(wAe(P),E||kC(Ba(S))))==null?void 0:z.type}},!0)}function bde(f,S){if(Se.assert(zT(f)),!(f.flags&67108864))return oWe(f,S)}function oWe(f,S){let E=f.parent,P=Ih(f)&&E1e(f,S);if(P)return P;let z=fR(E,S);if(z){if(Uie(f)){let q=Bs(f);return VL(z,q.escapedName,Nl(q).nameType)}if(HA(f)){let q=Nu(f);if(q&&f_(q)){let oe=fu(q.expression),Fe=px(oe)&&VL(z,rT(oe));if(Fe)return Fe}}if(f.name){let q=wO(f.name);return oh(z,oe=>{var Fe;return(Fe=kAe(wAe(oe),q))==null?void 0:Fe.type},!0)}}}function m$t(f){let S,E;for(let P=0;P{if(a_(q)){if((P===void 0||Sz)?E-S:0,Fe=oe>0&&q.target.combinedFlags&12?vc(q.target,3):0;return oe>0&&oe<=Fe?nh(q)[PL(q)-oe]:ode(q,P===void 0?q.target.fixedLength:Math.min(q.target.fixedLength,P),E===void 0||z===void 0?Fe:Math.min(Fe,E-z),!1,!0)}return(!P||SAO(Ye)?rk(Ye,fg(oe)):Ye,!0))}function g$t(f,S){let E=f.parent;return Dv(E)?TC(f,S):R_(E)?h$t(E,f,S):void 0}function SPe(f,S){if(_b(f)){let E=fR(f.parent,S);return!E||qr(E)?void 0:VL(E,Y3(f.name))}else return TC(f.parent,S)}function xPe(f){switch(f.kind){case 11:case 9:case 10:case 15:case 228:case 112:case 97:case 106:case 80:case 157:return!0;case 211:case 217:return xPe(f.expression);case 294:return!f.expression||xPe(f.expression)}return!1}function y$t(f,S){let E=`D${pp(f)},${Rv(S)}`;return Oi(E)??L1(E,kwt(S,f)??l1e(S,Pl($i(Qn(f.properties,P=>P.symbol?P.kind===303?xPe(P.initializer)&&_de(S,P.symbol.escapedName):P.kind===304?_de(S,P.symbol.escapedName):!1:!1),P=>[()=>i4e(P.kind===303?P.initializer:P.name),P.symbol.escapedName]),$i(Qn(Lp(S),P=>{var z;return!!(P.flags&16777216)&&!!((z=f?.symbol)!=null&&z.members)&&!f.symbol.members.has(P.escapedName)&&_de(S,P.escapedName)}),P=>[()=>ye,P.escapedName])),wf))}function v$t(f,S){let E=`D${pp(f)},${Rv(S)}`,P=Oi(E);if(P)return P;let z=xde(sB(f));return L1(E,l1e(S,Pl($i(Qn(f.properties,q=>!!q.symbol&&q.kind===291&&_de(S,q.symbol.escapedName)&&(!q.initializer||xPe(q.initializer))),q=>[q.initializer?()=>i4e(q.initializer):()=>Si,q.symbol.escapedName]),$i(Qn(Lp(S),q=>{var oe;if(!(q.flags&16777216)||!((oe=f?.symbol)!=null&&oe.members))return!1;let Fe=f.parent.parent;return q.escapedName===z&&R_(Fe)&&Sp(Fe.children).length?!1:!f.symbol.members.has(q.escapedName)&&_de(S,q.escapedName)}),q=>[()=>ye,q.escapedName])),wf))}function fR(f,S){let E=zT(f)?bde(f,S):TC(f,S),P=sWe(E,f,S);if(P&&!(S&&S&2&&P.flags&8650752)){let z=oh(P,q=>Ls(q)&32?q:qS(q),!0);return z.flags&1048576&&Ld(f)?y$t(f,z):z.flags&1048576&&wk(f)?v$t(f,z):z}}function sWe(f,S,E){if(f&&n0(f,465829888)){let P=Xz(S);if(P&&E&1&&En(P.inferences,Z1e))return aWe(f,P.nonFixingMapper);if(P?.returnMapper){let z=aWe(f,P.returnMapper);return z.flags&1048576&&LL(z.types,dn)&&LL(z.types,Ri)?cy(z,q=>q!==dn&&q!==Ri):z}}return f}function aWe(f,S){return f.flags&465829888?Ul(f,S):f.flags&1048576?Fc($i(f.types,E=>aWe(E,S)),0):f.flags&2097152?Qu($i(f.types,E=>aWe(E,S))):f}function TC(f,S){var E;if(f.flags&67108864)return;let P=tTt(f,!S);if(P>=0)return Hr[P];let{parent:z}=f;switch(z.kind){case 260:case 169:case 172:case 171:case 208:return iB(f,S);case 219:case 253:return Xwt(f,S);case 229:return f$t(z,S);case 223:return qat(z,S);case 213:case 214:return Qwt(z,f);case 170:return bPe(z);case 216:case 234:return Jx(z.type)?TC(z,S):al(z.type);case 226:return p$t(f,S);case 303:case 304:return oWe(z,S);case 305:return TC(z.parent,S);case 209:{let q=z,oe=fR(q,S),Fe=Rm(q.elements,f),Ye=(E=ra(q)).spreadIndices??(E.spreadIndices=m$t(q.elements));return $at(oe,Fe,q.elements.length,Ye.first,Ye.last)}case 227:return Kz(f,S);case 239:return Se.assert(z.parent.kind===228),_$t(z.parent,f);case 217:{if(Ys(z)){if(mU(z))return al(ree(z));let q=b3(z);if(q&&!Jx(q.typeExpression.type))return al(q.typeExpression.type)}return TC(z,S)}case 235:return TC(z,S);case 238:return al(z.type);case 277:return Vk(z);case 294:return g$t(z,S);case 291:case 293:return SPe(z,S);case 286:case 285:return S$t(z,S);case 301:return b$t(z)}}function eTt(f){CPe(f,TC(f,void 0),!0)}function CPe(f,S,E){nr[fs]=f,Hr[fs]=S,yo[fs]=E,fs++}function une(){fs--}function tTt(f,S){for(let E=fs-1;E>=0;E--)if(f===nr[E]&&(S||!yo[E]))return E;return-1}function Gat(f,S){Os[qt]=f,Jc[qt]=S,qt++}function D1e(){qt--}function Xz(f){for(let S=qt-1;S>=0;S--)if(G7(f,Os[S]))return Jc[S]}function b$t(f){return VL(NAe(!1),hU(f))}function S$t(f,S){if(Y0(f)&&S!==4){let E=tTt(f.parent,!S);if(E>=0)return Hr[E]}return nWe(f,0)}function cWe(f,S){return ITt(S)!==0?Sde(f,S):C$t(f,S)}function Sde(f,S){let E=Act(f,Ce);E=Kat(S,sB(S),E);let P=oB(lT.IntrinsicAttributes,S);return Qe(P)||(E=KX(P,E)),E}function x$t(f,S){if(f.compositeSignatures){let P=[];for(let z of f.compositeSignatures){let q=Op(z);if(qr(q))return q;let oe=Ln(q,S);if(!oe)return;P.push(oe)}return Qu(P)}let E=Op(f);return qr(E)?E:Ln(E,S)}function iTt(f){if(SY(f.tagName)){let E=sTt(f),P=UPe(f,E);return $S(P)}let S=r0(f.tagName);if(S.flags&128){let E=nct(S,f);if(!E)return Ie;let P=UPe(f,E);return $S(P)}return S}function Kat(f,S,E){let P=P1e(S);if(P){let z=iTt(f),q=aTt(P,Ys(f),z,E);if(q)return q}return E}function C$t(f,S){let E=sB(S),P=ict(E),z=P===void 0?Act(f,Ce):P===""?Op(f):x$t(f,P);if(!z)return P&&Z(S.attributes.properties)&&ki(S,j.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,Ba(P)),Ce;if(z=Kat(S,E,z),qr(z))return z;{let q=z,oe=oB(lT.IntrinsicClassAttributes,S);if(!Qe(oe)){let Ye=Wa(oe.symbol),it=Op(f),tt;if(Ye){let It=s1([it],Ye,Px(Ye),Ys(S));tt=Ul(oe,wC(Ye,It))}else tt=oe;q=KX(tt,q)}let Fe=oB(lT.IntrinsicAttributes,S);return Qe(Fe)||(q=KX(Fe,q)),q}}function k$t(f){return d0(X,"noImplicitAny")?$m(f,(S,E)=>S===E||!S?S:Qot(S.typeParameters,E.typeParameters)?nTt(S,E):void 0):void 0}function PP(f,S,E){if(!f||!S)return f||S;let P=Fc([Js(f),Ul(Js(S),E)]);return oq(f,P)}function w$t(f,S,E){let P=Xk(f),z=Xk(S),q=P>=z?f:S,oe=q===f?S:f,Fe=q===f?P:z,Ye=g6(f)||g6(S),it=Ye&&!g6(q),tt=new Array(Fe+(it?1:0));for(let It=0;It=tA(q)&&It>=tA(oe),Qr=It>=P?void 0:Nde(f,It),ao=It>=z?void 0:Nde(S,It),Ko=Qr===ao?Qr:Qr?ao?void 0:Qr:ao,Zr=Ou(1|(br&&!vn?16777216:0),Ko||`arg${It}`);Zr.links.type=vn?vS(Hi):Hi,tt[It]=Zr}if(it){let It=Ou(1,"args");It.links.type=vS(eA(oe,Fe)),oe===S&&(It.links.type=Ul(It.links.type,E)),tt[Fe]=It}return tt}function nTt(f,S){let E=f.typeParameters||S.typeParameters,P;f.typeParameters&&S.typeParameters&&(P=wC(S.typeParameters,f.typeParameters));let z=f.declaration,q=w$t(f,S,P),oe=PP(f.thisParameter,S.thisParameter,P),Fe=Math.max(f.minArgumentCount,S.minArgumentCount),Ye=n6(z,E,oe,q,void 0,void 0,Fe,(f.flags|S.flags)&167);return Ye.compositeKind=2097152,Ye.compositeSignatures=Pl(f.compositeKind===2097152&&f.compositeSignatures||[f],[S]),P&&(Ye.mapper=f.compositeKind===2097152&&f.mapper&&f.compositeSignatures?J9(f.mapper,P):P),Ye}function kPe(f,S){let E=kd(f,0),P=Qn(E,z=>!lWe(z,S));return P.length===1?P[0]:k$t(P)}function lWe(f,S){let E=0;for(;E{let oe=m.getTokenEnd();if(P.category===3&&E&&oe===E.start&&z===E.length){let Fe=Vj(S.fileName,S.text,oe,z,P,q);Pd(E,Fe)}else(!E||oe!==E.start)&&(E=k_(S,oe,z,P,q),Gu.add(E))}),m.setText(S.text,f.pos,f.end-f.pos);try{return m.scan(),Se.assert(m.reScanSlashToken(!0)===14,"Expected scanner to rescan RegularExpressionLiteral"),!!E}finally{m.setText(""),m.setOnError(void 0)}}return!1}function E$t(f){let S=ra(f);return S.flags&1||(S.flags|=1,a(()=>T$t(f))),Fd}function D$t(f,S){ne<2&&Ky(f,X.downlevelIteration?1536:1024);let E=fu(f.expression,S);return qF(33,E,ye,f.expression)}function I$t(f){return f.isSpread?rk(f.type,Fi):f.type}function bY(f){return f.kind===208&&!!f.initializer||f.kind===303&&bY(f.initializer)||f.kind===304&&!!f.objectAssignmentInitializer||f.kind===226&&f.operatorToken.kind===64}function Yat(f){let S=uN(f.parent);return yx(S)&&WE(S.parent)}function mq(f,S,E){let P=f.elements,z=P.length,q=[],oe=[];eTt(f);let Fe=O3(f),Ye=Rde(f),it=fR(f,void 0),tt=Yat(f)||!!it&&uE(it,Pt=>GN(Pt)||Mv(Pt)&&!Pt.nameType&&!!i1e(Pt.target||Pt)),It=!1;for(let Pt=0;Ptoe[yi]&8?FF(Pt,Fi)||pt:Pt),2):xe?Ti:vt,Ye))}function Qat(f){if(!(Ls(f)&4))return f;let S=f.literalType;return S||(S=f.literalType=Kie(f),S.objectFlags|=147456),S}function N$t(f){switch(f.kind){case 167:return uWe(f);case 80:return nL(f.escapedText);case 9:case 11:return nL(f.text);default:return!1}}function uWe(f){return Ob(YN(f),296)}function YN(f){let S=ra(f.expression);if(!S.resolvedType){if((Im(f.parent.parent)||bc(f.parent.parent)||ky(f.parent.parent))&&ms(f.expression)&&f.expression.operatorToken.kind===103&&f.parent.kind!==177&&f.parent.kind!==178)return S.resolvedType=Ie;if(S.resolvedType=fu(f.expression),vu(f.parent)&&!G0(f.parent)&&Qh(f.parent.parent)){let E=Xw(f.parent.parent),P=Yje(E);P&&(ra(P).flags|=4096,ra(f).flags|=32768,ra(f.parent.parent).flags|=32768)}(S.resolvedType.flags&98304||!Ob(S.resolvedType,402665900)&&!wf(S.resolvedType,ir))&&ki(f,j.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return S.resolvedType}function A$t(f){var S;let E=(S=f.declarations)==null?void 0:S[0];return nL(f.escapedName)||E&&xf(E)&&N$t(E.name)}function rB(f){var S;let E=(S=f.declarations)==null?void 0:S[0];return ZD(f)||E&&xf(E)&&f_(E.name)&&Ob(YN(E.name),4096)}function I1e(f,S,E,P){let z=[];for(let oe=S;oe0&&(oe=H9(oe,Zr(),f.symbol,Hi,it),q=[],z=Au(),br=!1,Qr=!1,ao=!1);let Sa=lu(fu(jr.expression,S&2));if(A1e(Sa)){let Oa=Zve(Sa,it);if(P&&ect(Oa,P,jr),Ko=q.length,Qe(oe))continue;oe=H9(oe,Oa,f.symbol,Hi,it)}else ki(jr,j.Spread_types_may_only_be_created_from_object_types),oe=Ie;continue}else Se.assert(jr.kind===177||jr.kind===178),AY(jr);Ds&&!(Ds.flags&8576)?wf(Ds,ir)&&(wf(Ds,Fi)?Qr=!0:wf(Ds,cn)?ao=!0:br=!0,E&&(vn=!0)):z.set(Ss.escapedName,Ss),q.push(Ss)}if(une(),Qe(oe))return Ie;if(oe!==ja)return q.length>0&&(oe=H9(oe,Zr(),f.symbol,Hi,it),q=[],z=Au(),br=!1,Qr=!1),oh(oe,jr=>jr===ja?Zr():jr);return Zr();function Zr(){let jr=[];br&&jr.push(I1e(f,Ko,q,Ot)),Qr&&jr.push(I1e(f,Ko,q,Fi)),ao&&jr.push(I1e(f,Ko,q,cn));let Ss=ml(f.symbol,z,F,F,jr);return Ss.objectFlags|=Hi|128|131072,yi&&(Ss.objectFlags|=4096),vn&&(Ss.objectFlags|=512),E&&(Ss.pattern=f),Ss}}function A1e(f){let S=dwt(oh(f,CP));return!!(S.flags&126615553||S.flags&3145728&&Yt(S.types,A1e))}function P$t(f){DI(f)}function L$t(f,S){return AY(f),aB(f)||pt}function O$t(f){DI(f.openingElement),SY(f.closingElement.tagName)?fWe(f.closingElement):fu(f.closingElement.tagName),dne(f)}function wPe(f,S){return AY(f),aB(f)||pt}function rTt(f){DI(f.openingFragment);let S=Vo(f);return BG(X)&&(X.jsxFactory||S.pragmas.has("jsx"))&&!X.jsxFragmentFactory&&!S.pragmas.has("jsxfrag")&&ki(f,X.jsxFactory?j.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:j.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),dne(f),aB(f)||pt}function dWe(f){return f.includes("-")}function SY(f){return Ai(f)&&wG(f.escapedText)||vx(f)}function Zat(f,S){return f.initializer?vne(f.initializer,S):Si}function oTt(f,S=0){let E=f.attributes,P=TC(E,0),z=xe?Au():void 0,q=Au(),oe=Gd,Fe=!1,Ye,it=!1,tt=2048,It=xde(sB(f));for(let Hi of E.properties){let vn=Hi.symbol;if(_b(Hi)){let br=Zat(Hi,S);tt|=Ls(br)&458752;let Qr=Ou(4|vn.flags,vn.escapedName);if(Qr.declarations=vn.declarations,Qr.parent=vn.parent,vn.valueDeclaration&&(Qr.valueDeclaration=vn.valueDeclaration),Qr.links.type=br,Qr.links.target=vn,q.set(Qr.escapedName,Qr),z?.set(Qr.escapedName,Qr),Y3(Hi.name)===It&&(it=!0),P){let ao=Ku(P,vn.escapedName);ao&&ao.declarations&&Rk(ao)&&Ai(Hi.name)&&Ex(Hi.name,ao.declarations,Hi.name.escapedText)}if(P&&S&2&&!(S&4)&&Lw(Hi)){let ao=Xz(E);Se.assert(ao);let Ko=Hi.initializer.expression;ePe(ao,Ko,br)}}else{Se.assert(Hi.kind===293),q.size>0&&(oe=H9(oe,yi(),E.symbol,tt,!1),q=Au());let br=lu(fu(Hi.expression,S&2));qr(br)&&(Fe=!0),A1e(br)?(oe=H9(oe,br,E.symbol,tt,!1),z&&ect(br,z,Hi)):(ki(Hi.expression,j.Spread_types_may_only_be_created_from_object_types),Ye=Ye?Qu([Ye,br]):br)}}Fe||q.size>0&&(oe=H9(oe,yi(),E.symbol,tt,!1));let Pt=f.parent.kind===284?f.parent:void 0;if(Pt&&Pt.openingElement===f&&Sp(Pt.children).length>0){let Hi=dne(Pt,S);if(!Fe&&It&&It!==""){it&&ki(E,j._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,Ba(It));let vn=fR(f.attributes,void 0),br=vn&&VL(vn,It),Qr=Ou(4,It);Qr.links.type=Hi.length===1?Hi[0]:br&&uE(br,GN)?l6(Hi):vS(Fc(Hi)),Qr.valueDeclaration=Me.createPropertySignature(void 0,Ba(It),void 0,void 0),dp(Qr.valueDeclaration,E),Qr.valueDeclaration.symbol=Qr;let ao=Au();ao.set(It,Qr),oe=H9(oe,ml(E.symbol,ao,F,F,F),E.symbol,tt,!1)}}if(Fe)return pt;if(Ye&&oe!==Gd)return Qu([Ye,oe]);return Ye||(oe===Gd?yi():oe);function yi(){tt|=8192;let Hi=ml(E.symbol,q,F,F,F);return Hi.objectFlags|=tt|128|131072,Hi}}function dne(f,S){let E=[];for(let P of f.children)if(P.kind===12)P.containsOnlyTriviaWhiteSpaces||E.push(Ot);else{if(P.kind===294&&!P.expression)continue;E.push(vne(P,S))}return E}function ect(f,S,E){for(let P of Lp(f))if(!(P.flags&16777216)){let z=S.get(P.escapedName);if(z){let q=ki(z.valueDeclaration,j._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,Ba(z.escapedName));Pd(q,ws(E,j.This_spread_always_overwrites_this_property))}}}function F$t(f,S){return oTt(f.parent,S)}function oB(f,S){let E=sB(S),P=E&&Fv(E),z=P&&Wp(P,f,788968);return z?_m(z):Ie}function fWe(f){let S=ra(f);if(!S.resolvedSymbol){let E=oB(lT.IntrinsicElements,f);if(Qe(E))return Ae&&ki(f,j.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,Ba(lT.IntrinsicElements)),S.resolvedSymbol=St;{if(!Ai(f.tagName)&&!vx(f.tagName))return Se.fail();let P=vx(f.tagName)?R5(f.tagName):f.tagName.escapedText,z=Ku(E,P);if(z)return S.jsxFlags|=1,S.resolvedSymbol=z;let q=vEt(E,kC(Ba(P)));return q?(S.jsxFlags|=2,S.resolvedSymbol=q):Br(E,P)?(S.jsxFlags|=2,S.resolvedSymbol=E.symbol):(ki(f,j.Property_0_does_not_exist_on_type_1,see(f.tagName),"JSX."+lT.IntrinsicElements),S.resolvedSymbol=St)}}return S.resolvedSymbol}function tct(f){let S=f&&Vo(f),E=S&&ra(S);if(E&&E.jsxImplicitImportContainer===!1)return;if(E&&E.jsxImplicitImportContainer)return E.jsxImplicitImportContainer;let P=qse(jG(X,S),X);if(!P)return;let q=S1(X)===1?j.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:j.Cannot_find_module_0_or_its_corresponding_type_declarations,oe=Xo(S,P),Fe=gP(oe||f,P,q,f),Ye=Fe&&Fe!==St?Vf(Nm(Fe)):void 0;return E&&(E.jsxImplicitImportContainer=Ye||!1),Ye}function sB(f){let S=f&&ra(f);if(S&&S.jsxNamespace)return S.jsxNamespace;if(!S||S.jsxNamespace!==!1){let P=tct(f);if(!P||P===St){let z=zm(f);P=Ei(f,z,1920,void 0,!1)}if(P){let z=Nm(Wp(Fv(Nm(P)),lT.JSX,1920));if(z&&z!==St)return S&&(S.jsxNamespace=z),z}S&&(S.jsxNamespace=!1)}let E=Nm(z9(lT.JSX,1920,void 0));if(E!==St)return E}function TPe(f,S){let E=S&&Wp(S.exports,f,788968),P=E&&_m(E),z=P&&Lp(P);if(z){if(z.length===0)return"";if(z.length===1)return z[0].escapedName;z.length>1&&E.declarations&&ki(E.declarations[0],j.The_global_type_JSX_0_may_not_have_more_than_one_property,Ba(f))}}function P1e(f){return f&&Wp(f.exports,lT.LibraryManagedAttributes,788968)}function M$t(f){return f&&Wp(f.exports,lT.ElementType,788968)}function ict(f){return TPe(lT.ElementAttributesPropertyNameContainer,f)}function xde(f){return TPe(lT.ElementChildrenAttributeNameContainer,f)}function _We(f,S){if(f.flags&4)return[oi];if(f.flags&128){let z=nct(f,S);return z?[UPe(S,z)]:(ki(S,j.Property_0_does_not_exist_on_type_1,f.value,"JSX."+lT.IntrinsicElements),F)}let E=qS(f),P=kd(E,1);return P.length===0&&(P=kd(E,0)),P.length===0&&E.flags&1048576&&(P=Yot($i(E.types,z=>_We(z,S)))),P}function nct(f,S){let E=oB(lT.IntrinsicElements,S);if(!Qe(E)){let P=f.value,z=Ku(E,kh(P));if(z)return Js(z);let q=o6(E,Ot);return q||void 0}return pt}function R$t(f,S,E){if(f===1){let z=L1e(E);z&&sE(S,z,P1,E.tagName,j.Its_return_type_0_is_not_a_valid_JSX_element,P)}else if(f===0){let z=rct(E);z&&sE(S,z,P1,E.tagName,j.Its_instance_type_0_is_not_a_valid_JSX_element,P)}else{let z=L1e(E),q=rct(E);if(!z||!q)return;let oe=Fc([z,q]);sE(S,oe,P1,E.tagName,j.Its_element_type_0_is_not_a_valid_JSX_element,P)}function P(){let z=_h(E.tagName);return Zl(void 0,j._0_cannot_be_used_as_a_JSX_component,z)}}function sTt(f){var S;Se.assert(SY(f.tagName));let E=ra(f);if(!E.resolvedJsxElementAttributesType){let P=fWe(f);if(E.jsxFlags&1)return E.resolvedJsxElementAttributesType=Js(P)||Ie;if(E.jsxFlags&2){let z=vx(f.tagName)?R5(f.tagName):f.tagName.escapedText;return E.resolvedJsxElementAttributesType=((S=gS(oB(lT.IntrinsicElements,f),z))==null?void 0:S.type)||Ie}else return E.resolvedJsxElementAttributesType=Ie}return E.resolvedJsxElementAttributesType}function rct(f){let S=oB(lT.ElementClass,f);if(!Qe(S))return S}function aB(f){return oB(lT.Element,f)}function L1e(f){let S=aB(f);if(S)return Fc([S,si])}function oct(f){let S=sB(f);if(!S)return;let E=M$t(S);if(!E)return;let P=aTt(E,Ys(f));if(!(!P||Qe(P)))return P}function aTt(f,S,...E){let P=_m(f);if(f.flags&524288){let z=Nl(f).typeParameters;if(Z(z)>=E.length){let q=s1(E,z,E.length,S);return Z(q)===0?P:CO(f,q)}}if(Z(P.typeParameters)>=E.length){let z=s1(E,P.typeParameters,E.length,S);return wP(P,z)}}function B$t(f){let S=oB(lT.IntrinsicElements,f);return S?Lp(S):F}function cTt(f){(X.jsx||0)===0&&ki(f,j.Cannot_use_JSX_unless_the_jsx_flag_is_provided),aB(f)===void 0&&Ae&&ki(f,j.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function DI(f){let S=nv(f);if(S&&mR(f),cTt(f),jat(f),S){let E=f,P=bq(E);JPe(P,f);let z=oct(E);if(z!==void 0){let q=E.tagName,oe=SY(q)?kC(see(q)):fu(q);sE(oe,z,P1,q,j.Its_type_0_is_not_a_valid_JSX_element_type,()=>{let Fe=_h(q);return Zl(void 0,j._0_cannot_be_used_as_a_JSX_component,Fe)})}else R$t(ITt(E),Op(P),E)}}function EPe(f,S,E){if(f.flags&524288&&(Dz(f,S)||gS(f,S)||wue(S)&&AL(f,Ot)||E&&dWe(S)))return!0;if(f.flags&33554432)return EPe(f.baseType,S,E);if(f.flags&3145728&&xY(f)){for(let P of f.types)if(EPe(P,S,E))return!0}return!1}function xY(f){return!!(f.flags&524288&&!(Ls(f)&512)||f.flags&67108864||f.flags&33554432&&xY(f.baseType)||f.flags&1048576&&En(f.types,xY)||f.flags&2097152&&Yt(f.types,xY))}function j$t(f,S){if(iV(f),f.expression){let E=fu(f.expression,S);return f.dotDotDotToken&&E!==pt&&!ok(E)&&ki(f,j.JSX_spread_child_must_be_an_array_type),E}else return Ie}function pWe(f){return f.valueDeclaration?ca(f.valueDeclaration):0}function DPe(f){if(f.flags&8192||Ag(f)&4)return!0;if(Ys(f.valueDeclaration)){let S=f.valueDeclaration.parent;return S&&ms(S)&&wh(S)===3}}function Cde(f,S,E,P,z,q=!0){let oe=q?f.kind===166?f.right:f.kind===205?f:f.kind===208&&f.propertyName?f.propertyName:f.name:void 0;return lTt(f,S,E,P,z,oe)}function lTt(f,S,E,P,z,q){var oe;let Fe=nT(z,E);if(S){if(ne<2&&IPe(z))return q&&ki(q,j.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(Fe&64)return q&&ki(q,j.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,zl(z),vs(cY(z))),!1;if(!(Fe&256)&&((oe=z.declarations)!=null&&oe.some(aOe)))return q&&ki(q,j.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super,zl(z)),!1}if(Fe&64&&IPe(z)&&(gj(f)||SOe(f)||fb(f.parent)&&T3(f.parent.parent))){let it=av(B0(z));if(it&&tXt(f))return q&&ki(q,j.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,zl(z),jC(it.name)),!1}if(!(Fe&6))return!0;if(Fe&2){let it=av(B0(z));return blt(f,it)?!0:(q&&ki(q,j.Property_0_is_private_and_only_accessible_within_class_1,zl(z),vs(cY(z))),!1)}if(S)return!0;let Ye=vlt(f,it=>{let tt=_m(Bs(it));return d1e(tt,z,E)});return!Ye&&(Ye=W$t(f),Ye=Ye&&d1e(Ye,z,E),Fe&256||!Ye)?(q&&ki(q,j.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,zl(z),vs(cY(z)||P)),!1):Fe&256?!0:(P.flags&262144&&(P=P.isThisType?xC(P):Pb(P)),!P||!WN(P,Ye)?(q&&ki(q,j.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,zl(z),vs(Ye),vs(P)),!1):!0)}function W$t(f){let S=mWe(f),E=S?.type&&al(S.type);if(E)E.flags&262144&&(E=xC(E));else{let P=Kb(f,!1,!1);iu(P)&&(E=Jat(P))}if(E&&Ls(E)&7)return QM(E)}function mWe(f){let S=Kb(f,!1,!1);return S&&iu(S)?R3(S):void 0}function IPe(f){return!!GAe(f,S=>!(S.flags&8192))}function fne(f){return II(fu(f),f)}function O1e(f){return XN(f,50331648)}function NPe(f){return O1e(f)?LO(f):f}function sct(f,S){let E=Dp(f)?$b(f):void 0;if(f.kind===106){ki(f,j.The_value_0_cannot_be_used_here,"null");return}if(E!==void 0&&E.length<100){if(Ai(f)&&E==="undefined"){ki(f,j.The_value_0_cannot_be_used_here,"undefined");return}ki(f,S&16777216?S&33554432?j._0_is_possibly_null_or_undefined:j._0_is_possibly_undefined:j._0_is_possibly_null,E)}else ki(f,S&16777216?S&33554432?j.Object_is_possibly_null_or_undefined:j.Object_is_possibly_undefined:j.Object_is_possibly_null)}function uTt(f,S){ki(f,S&16777216?S&33554432?j.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:j.Cannot_invoke_an_object_which_is_possibly_undefined:j.Cannot_invoke_an_object_which_is_possibly_null)}function dTt(f,S,E){if(xe&&f.flags&2){if(Dp(S)){let z=$b(S);if(z.length<100)return ki(S,j._0_is_of_type_unknown,z),Ie}return ki(S,j.Object_is_of_type_unknown),Ie}let P=_Y(f,50331648);if(P&50331648){E(S,P);let z=LO(f);return z.flags&229376?Ie:z}return f}function II(f,S){return dTt(f,S,sct)}function fTt(f,S){let E=II(f,S);if(E.flags&16384){if(Dp(S)){let P=$b(S);if(Ai(S)&&P==="undefined")return ki(S,j.The_value_0_cannot_be_used_here,P),E;if(P.length<100)return ki(S,j._0_is_possibly_undefined,P),E}ki(S,j.Object_is_possibly_undefined)}return E}function hWe(f,S,E){return f.flags&64?_Tt(f,S):yWe(f,f.expression,fne(f.expression),f.name,S,E)}function _Tt(f,S){let E=fu(f.expression),P=lY(E,f.expression);return h1e(yWe(f,f.expression,II(P,f.expression),f.name,S),f,P!==E)}function pTt(f,S){let E=AZ(f)&&JA(f.left)?II(gPe(f.left),f.left):fne(f.left);return yWe(f,f.left,E,f.right,S)}function gWe(f){for(;f.parent.kind===217;)f=f.parent;return WE(f.parent)&&f.parent.expression===f}function APe(f,S){for(let E=zy(S);E;E=vy(E)){let{symbol:P}=E,z=BH(P,f),q=P.members&&P.members.get(z)||P.exports&&P.exports.get(z);if(q)return q}}function z$t(f){if(!vy(f))return To(f,j.Private_identifiers_are_not_allowed_outside_class_bodies);if(!gae(f.parent)){if(!ab(f))return To(f,j.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);let S=ms(f.parent)&&f.parent.operatorToken.kind===103;if(!F1e(f)&&!S)return To(f,j.Cannot_find_name_0,Un(f))}return!1}function mTt(f){z$t(f);let S=F1e(f);return S&&wde(S,void 0,!1),pt}function F1e(f){if(!ab(f))return;let S=ra(f);return S.resolvedSymbol===void 0&&(S.resolvedSymbol=APe(f.escapedText,f)),S.resolvedSymbol}function PPe(f,S){return Ku(f,S.escapedName)}function hTt(f,S,E){let P,z=Lp(f);z&&ee(z,oe=>{let Fe=oe.valueDeclaration;if(Fe&&xf(Fe)&&wl(Fe.name)&&Fe.name.escapedText===S.escapedText)return P=oe,!0});let q=Dx(S);if(P){let oe=Se.checkDefined(P.valueDeclaration),Fe=Se.checkDefined(vy(oe));if(E?.valueDeclaration){let Ye=E.valueDeclaration,it=vy(Ye);if(Se.assert(!!it),go(it,tt=>Fe===tt)){let tt=ki(S,j.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,q,vs(f));return Pd(tt,ws(Ye,j.The_shadowing_declaration_of_0_is_defined_here,q),ws(oe,j.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,q)),!0}}return ki(S,j.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,q,Dx(Fe.name||iFe)),!0}return!1}function gTt(f,S){return(ef(S)||gj(f)&&Am(S))&&Kb(f,!0,!1)===Nw(S)}function yWe(f,S,E,P,z,q){let oe=ra(S).resolvedSymbol,Fe=N8(f),Ye=qS(Fe!==0||gWe(f)?$k(E):E),it=qr(Ye)||Ye===Kn,tt;if(wl(P)){(ne<9||ne<99||!ae)&&(Fe!==0&&Ky(f,1048576),Fe!==1&&Ky(f,524288));let Pt=APe(P.escapedText,P);if(Fe&&Pt&&Pt.valueDeclaration&&Sg(Pt.valueDeclaration)&&To(P,j.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,Un(P)),it){if(Pt)return Qe(Ye)?Ie:Ye;if(zy(P)===void 0)return To(P,j.Private_identifiers_are_not_allowed_outside_class_bodies),pt}if(tt=Pt&&PPe(E,Pt),tt===void 0){if(hTt(E,P,Pt))return Ie;let yi=zy(P);yi&&tG(Vo(yi),X.checkJs)&&To(P,j.Private_field_0_must_be_declared_in_an_enclosing_class,Un(P))}else tt.flags&65536&&!(tt.flags&32768)&&Fe!==1&&ki(f,j.Private_accessor_was_defined_without_a_getter)}else{if(it)return Ai(S)&&oe&&vY(f,2,void 0,E),Qe(Ye)?Ie:Ye;tt=Ku(Ye,P.escapedText,MWe(Ye),f.kind===166)}vY(f,2,tt,E);let It;if(tt){let Pt=plt(tt,P);if(Rk(Pt)&&Mst(f,Pt)&&Pt.declarations&&Ex(P,Pt.declarations,P.escapedText),V$t(tt,f,P),wde(tt,f,uct(S,oe)),ra(f).resolvedSymbol=tt,Cde(f,S.kind===108,Wj(f),Ye,tt),t2t(f,tt,Fe))return ki(P,j.Cannot_assign_to_0_because_it_is_a_read_only_property,Un(P)),Ie;It=gTt(f,tt)?Gt:q||Bse(f)?Hk(tt):Js(tt)}else{let Pt=!wl(P)&&(Fe===0||!Wz(E)||KG(E))?gS(Ye,P.escapedText):void 0;if(!(Pt&&Pt.type)){let yi=LPe(f,E.symbol,!0);return!yi&&Uue(E)?pt:E.symbol===ut?(ut.exports.has(P.escapedText)&&ut.exports.get(P.escapedText).flags&418?ki(P,j.Property_0_does_not_exist_on_type_1,Ba(P.escapedText),vs(E)):Ae&&ki(P,j.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,vs(E)),pt):(P.escapedText&&!ry(f)&&bTt(P,KG(E)?Ye:E,yi),Ie)}Pt.isReadonly&&(O3(f)||VA(f))&&ki(f,j.Index_signature_in_type_0_only_permits_reading,vs(Ye)),It=Pt.type,X.noUncheckedIndexedAccess&&N8(f)!==1&&(It=Fc([It,pe])),X.noPropertyAccessFromIndexSignature&&ba(f)&&ki(P,j.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,Ba(P.escapedText)),Pt.declaration&&uC(Pt.declaration)&&Ex(P,[Pt.declaration],P.escapedText)}return yTt(f,tt,It,P,z)}function LPe(f,S,E){var P;let z=Vo(f);if(z&&X.checkJs===void 0&&z.checkJsDirective===void 0&&(z.scriptKind===1||z.scriptKind===2)){let q=ee(S?.declarations,Vo),oe=!S?.valueDeclaration||!bc(S.valueDeclaration)||((P=S.valueDeclaration.heritageClauses)==null?void 0:P.length)||aN(!1,S.valueDeclaration);return!(z!==q&&q&&w8(q))&&!(E&&S&&S.flags&32&&oe)&&!(f&&E&&ba(f)&&f.expression.kind===110&&oe)}return!1}function yTt(f,S,E,P,z){let q=N8(f);if(q===1)return qk(E,!!(S&&S.flags&16777216));if(S&&!(S.flags&98311)&&!(S.flags&8192&&E.flags&1048576)&&!hze(S.declarations))return E;if(E===Gt)return hv(f,S);E=Mat(E,f,z);let oe=!1;if(xe&&fe&&cf(f)&&f.expression.kind===110){let Ye=S&&S.valueDeclaration;if(Ye&&aze(Ye)&&!Xd(Ye)){let it=T1e(f);it.kind===176&&it.parent===Ye.parent&&!(Ye.flags&33554432)&&(oe=!0)}}else xe&&S&&S.valueDeclaration&&ba(S.valueDeclaration)&&kj(S.valueDeclaration)&&T1e(f)===T1e(S.valueDeclaration)&&(oe=!0);let Fe=zL(f,E,oe?aR(E):E);return oe&&!iq(E)&&iq(Fe)?(ki(P,j.Property_0_is_used_before_being_assigned,zl(S)),E):q?RL(Fe):Fe}function V$t(f,S,E){let{valueDeclaration:P}=f;if(!P||Vo(S).isDeclarationFile)return;let z,q=Un(E);kde(S)&&!Lz(P)&&!(cf(S)&&cf(S.expression))&&!W_(P,E)&&!(Sg(P)&&hs(P)&256)&&(ae||!OPe(f))?z=ki(E,j.Property_0_is_used_before_its_initialization,q):P.kind===263&&S.parent.kind!==183&&!(P.flags&33554432)&&!W_(P,E)&&(z=ki(E,j.Class_0_used_before_its_declaration,q)),z&&Pd(z,ws(P,j._0_is_declared_here,q))}function kde(f){return!!go(f,S=>{switch(S.kind){case 172:return!0;case 303:case 174:case 177:case 178:case 305:case 167:case 239:case 294:case 291:case 292:case 293:case 286:case 233:case 298:return!1;case 219:case 244:return qu(S.parent)&&Yf(S.parent.parent)?!0:"quit";default:return ab(S)?!1:"quit"}})}function OPe(f){if(!(f.parent.flags&32))return!1;let S=Js(f.parent);for(;;){if(S=S.symbol&&vTt(S),!S)return!1;let E=Ku(S,f.escapedName);if(E&&E.valueDeclaration)return!0}}function vTt(f){let S=Pp(f);if(S.length!==0)return Qu(S)}function bTt(f,S,E){let P,z;if(!wl(f)&&S.flags&1048576&&!(S.flags&402784252)){for(let oe of S.types)if(!Ku(oe,f.escapedText)&&!gS(oe,f.escapedText)){P=Zl(P,j.Property_0_does_not_exist_on_type_1,Gf(f),vs(oe));break}}if(vWe(f.escapedText,S)){let oe=Gf(f),Fe=vs(S);P=Zl(P,j.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,oe,Fe,Fe+"."+oe)}else{let oe=abe(S);if(oe&&Ku(oe,f.escapedText))P=Zl(P,j.Property_0_does_not_exist_on_type_1,Gf(f),vs(S)),z=ws(f,j.Did_you_forget_to_use_await);else{let Fe=Gf(f),Ye=vs(S),it=H$t(Fe,S);if(it!==void 0)P=Zl(P,j.Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later,Fe,Ye,it);else{let tt=cct(f,S);if(tt!==void 0){let It=Bc(tt),Pt=E?j.Property_0_may_not_exist_on_type_1_Did_you_mean_2:j.Property_0_does_not_exist_on_type_1_Did_you_mean_2;P=Zl(P,Pt,Fe,Ye,It),z=tt.valueDeclaration&&ws(tt.valueDeclaration,j._0_is_declared_here,It)}else{let It=STt(S)?j.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:j.Property_0_does_not_exist_on_type_1;P=Zl(hS(P,S),It,Fe,Ye)}}}}let q=WT(Vo(f),f,P);z&&Pd(q,z),Ly(!E||P.code!==j.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,q)}function STt(f){return X.lib&&!X.lib.includes("dom")&&t$t(f,S=>S.symbol&&/^(?:EventTarget|Node|(?:HTML[a-zA-Z]*)?Element)$/.test(Ba(S.symbol.escapedName)))&&NP(f)}function vWe(f,S){let E=S.symbol&&Ku(Js(S.symbol),f);return E!==void 0&&!!E.valueDeclaration&&Xd(E.valueDeclaration)}function act(f){let S=Dx(f),P=u_().get(S);return P&&AC(P.keys())}function H$t(f,S){let E=qS(S).symbol;if(!E)return;let P=Bc(E),q=u_().get(P);if(q){for(let[oe,Fe]of q)if(dr(Fe,f))return oe}}function xTt(f,S){return _ne(f,Lp(S),106500)}function cct(f,S){let E=Lp(S);if(typeof f!="string"){let P=f.parent;ba(P)&&(E=Qn(E,z=>FPe(P,S,z))),f=Un(f)}return _ne(f,E,111551)}function CTt(f,S){let E=Yu(f)?f:Un(f),P=Lp(S);return(E==="for"?jt(P,q=>Bc(q)==="htmlFor"):E==="class"?jt(P,q=>Bc(q)==="className"):void 0)??_ne(E,P,111551)}function kTt(f,S){let E=cct(f,S);return E&&Bc(E)}function wTt(f,S,E){let P=Wp(f,S,E);if(P)return P;let z;return f===ft?z=Dc(["string","number","boolean","object","bigint","symbol"],oe=>f.has(oe.charAt(0).toUpperCase()+oe.slice(1))?Ou(524288,oe):void 0).concat(tc(f.values())):z=tc(f.values()),_ne(Ba(S),z,E)}function lct(f,S,E){return Se.assert(S!==void 0,"outername should always be defined"),zn(f,S,E,void 0,!1,!1)}function cB(f,S){return S.exports&&_ne(Un(f),tE(S),2623475)}function LP(f,S,E){function P(oe){let Fe=Dz(f,oe);if(Fe){let Ye=yq(Js(Fe));return!!Ye&&tA(Ye)>=1&&wf(E,eA(Ye,0))}return!1}let z=O3(S)?"set":"get";if(!P(z))return;let q=iI(S.expression);return q===void 0?q=z:q+="."+z,q}function U$t(f,S){let E=S.types.filter(P=>!!(P.flags&128));return JB(f.value,E,P=>P.value)}function _ne(f,S,E){return JB(f,S,P);function P(z){let q=Bc(z);if(!xl(q,'"')){if(z.flags&E)return q;if(z.flags&2097152){let oe=th(z);if(oe&&oe.flags&E)return q}}}}function wde(f,S,E){let P=f&&f.flags&106500&&f.valueDeclaration;if(!P)return;let z=zC(P,2),q=f.valueDeclaration&&xf(f.valueDeclaration)&&wl(f.valueDeclaration.name);if(!(!z&&!q)&&!(S&&Bse(S)&&!(f.flags&65536))){if(E){let oe=go(S,Rp);if(oe&&oe.symbol===f)return}(Ag(f)&1?Nl(f).target:f).isReferenced=-1}}function uct(f,S){return f.kind===110||!!S&&Dp(f)&&S===SS(fx(f))}function J$t(f,S){switch(f.kind){case 211:return MPe(f,f.expression.kind===108,S,$k(fu(f.expression)));case 166:return MPe(f,!1,S,$k(fu(f.left)));case 205:return MPe(f,!1,S,al(f))}}function FPe(f,S,E){return bWe(f,f.kind===211&&f.expression.kind===108,!1,S,E)}function MPe(f,S,E,P){if(qr(P))return!0;let z=Ku(P,E);return!!z&&bWe(f,S,!1,P,z)}function bWe(f,S,E,P,z){if(qr(P))return!0;if(z.valueDeclaration&&qb(z.valueDeclaration)){let q=vy(z.valueDeclaration);return!By(f)&&!!go(f,oe=>oe===q)}return lTt(f,S,E,P,z)}function gq(f){let S=f.initializer;if(S.kind===261){let E=S.declarations[0];if(E&&!Uu(E.name))return Bs(E)}else if(S.kind===80)return SS(S)}function TTt(f){return o1(f).length===1&&!!AL(f,Fi)}function M1e(f){let S=J_(f);if(S.kind===80){let E=SS(S);if(E.flags&3){let P=f,z=f.parent;for(;z;){if(z.kind===249&&P===z.statement&&gq(z)===E&&TTt(Fb(z.expression)))return!0;P=z,z=z.parent}}}return!1}function ETt(f,S){return f.flags&64?q$t(f,S):dct(f,fne(f.expression),S)}function q$t(f,S){let E=fu(f.expression),P=lY(E,f.expression);return h1e(dct(f,II(P,f.expression),S),f,P!==E)}function dct(f,S,E){let P=N8(f)!==0||gWe(f)?$k(S):S,z=f.argumentExpression,q=fu(z);if(Qe(P)||P===Kn)return P;if(MWe(P)&&!i_(z))return ki(z,j.A_const_enum_member_can_only_be_accessed_using_a_string_literal),Ie;let oe=M1e(z)?Fi:q,Fe=N8(f),Ye;Fe===0?Ye=32:(Ye=4|(Wz(P)&&!KG(P)?2:0),Fe===2&&(Ye|=32));let it=FF(P,oe,Ye,f)||Ie;return o4e(yTt(f,ra(f).resolvedSymbol,it,z,E),f)}function SWe(f){return WE(f)||Kv(f)||nv(f)}function Yz(f){return SWe(f)&&ee(f.typeArguments,c_),f.kind===215?fu(f.template):nv(f)?fu(f.attributes):ms(f)?fu(f.left):WE(f)&&ee(f.arguments,S=>{fu(S)}),oi}function NI(f){return Yz(f),nn}function fct(f,S,E){let P,z,q=0,oe,Fe=-1,Ye;Se.assert(!S.length);for(let it of f){let tt=it.declaration&&Bs(it.declaration),It=it.declaration&&it.declaration.parent;!z||tt===z?P&&It===P?oe=oe+1:(P=It,oe=q):(oe=q=S.length,P=It),z=tt,Rf(it)?(Fe++,Ye=Fe,q++):Ye=oe,S.splice(Ye,0,E?kJt(it,E):it)}}function RPe(f){return!!f&&(f.kind===230||f.kind===237&&f.isSpread)}function _ct(f){return _n(f,RPe)}function BPe(f){return!!(f.flags&16384)}function jPe(f){return!!(f.flags&49155)}function WPe(f,S,E,P=!1){let z,q=!1,oe=Xk(E),Fe=tA(E);if(f.kind===215)if(z=S.length,f.template.kind===228){let Ye=Bu(f.template.templateSpans);q=Mm(Ye.literal)||!!Ye.literal.isUnterminated}else{let Ye=f.template;Se.assert(Ye.kind===15),q=!!Ye.isUnterminated}else if(f.kind===170)z=NTt(f,E);else if(f.kind===226)z=1;else if(nv(f)){if(q=f.attributes.end===f.end,q)return!0;z=Fe===0?S.length:1,oe=S.length===0?oe:1,Fe=Math.min(Fe,1)}else if(f.arguments){z=P?S.length+1:S.length,q=f.arguments.end===f.end;let Ye=_ct(S);if(Ye>=0)return Ye>=tA(E)&&(g6(E)||Yeoe)return!1;if(q||z>=Fe)return!0;for(let Ye=z;Ye=P&&S.length<=E}function zPe(f,S){let E;return!!(f.target&&(E=Zz(f.target,S))&&wD(E))}function yq(f){return R1e(f,0,!1)}function pct(f){return R1e(f,0,!1)||R1e(f,1,!1)}function R1e(f,S,E){if(f.flags&524288){let P=UN(f);if(E||P.properties.length===0&&P.indexInfos.length===0){if(S===0&&P.callSignatures.length===1&&P.constructSignatures.length===0)return P.callSignatures[0];if(S===1&&P.constructSignatures.length===1&&P.callSignatures.length===0)return P.constructSignatures[0]}}}function mct(f,S,E,P){let z=sde(TAe(f),f,0,P),q=U1e(S),oe=E&&(q&&q.flags&262144?E.nonFixingMapper:E.mapper),Fe=oe?jF(S,oe):S;return aat(Fe,f,(Ye,it)=>{kT(z.inferences,Ye,it)}),E||cat(S,f,(Ye,it)=>{kT(z.inferences,Ye,it,128)}),Jve(f,jje(z),Ys(S.declaration))}function VPe(f,S,E,P){let z=cWe(S,f),q=yne(f.attributes,z,P,E);return kT(P.inferences,q,z),jje(P)}function DTt(f){if(!f)return Pn;let S=fu(f);return Fse(f)?S:D2(f.parent)?LO(S):By(f.parent)?Ox(S):S}function hct(f,S,E,P,z){if(nv(f))return VPe(f,S,P,z);if(f.kind!==170&&f.kind!==226){let Ye=Yt(S.typeParameters,tt=>!!R9(tt)),it=TC(f,Ye?8:0);if(it){let tt=Op(S);if(zF(tt)){let It=Xz(f);if(!(!Ye&&TC(f,8)!==it)){let vn=tPe(lat(It,1)),br=Ul(it,vn),Qr=yq(br),ao=Qr&&Qr.typeParameters?$S(j9(Qr,Qr.typeParameters)):br;kT(z.inferences,ao,tt,128)}let yi=sde(S.typeParameters,S,z.flags),Hi=Ul(it,It&&It.returnMapper);kT(yi.inferences,Hi,tt),z.returnMapper=En(yi.inferences,TY)?tPe(gwt(yi)):void 0}}}let q=J1e(S),oe=q?Math.min(Xk(S)-1,E.length):E.length;if(q&&q.flags&262144){let Ye=jt(z.inferences,it=>it.typeParameter===q);Ye&&(Ye.impliedArity=_n(E,RPe,oe)<0?E.length-oe:void 0)}let Fe=PF(S);if(Fe&&zF(Fe)){let Ye=vct(f);kT(z.inferences,DTt(Ye),Fe)}for(let Ye=0;Ye=E-1){let tt=f[E-1];if(RPe(tt)){let It=tt.kind===237?tt.type:yne(tt.expression,P,z,q);return AO(It)?gct(It):vS(qF(33,It,ye,tt.kind===230?tt.expression:tt),oe)}}let Fe=[],Ye=[],it=[];for(let tt=S;ttZl(void 0,j.Type_0_does_not_satisfy_the_constraint_1):void 0,It=P||j.Type_0_does_not_satisfy_the_constraint_1;Fe||(Fe=wC(q,oe));let Pt=oe[Ye];if(!GS(Pt,Aw(Ul(it,Fe),Pt),E?S[Ye]:void 0,It,tt))return}}return oe}function ITt(f){if(SY(f.tagName))return 2;let S=qS(fu(f.tagName));return Z(kd(S,1))?0:Z(kd(S,0))?1:2}function $$t(f,S,E,P,z,q,oe){let Fe=cWe(S,f),Ye=yne(f.attributes,Fe,void 0,P),it=P&4?y1e(Ye):Ye;return tt()&&Sje(it,Fe,E,z?f.tagName:void 0,f.attributes,void 0,q,oe);function tt(){var It;if(tct(f))return!0;let Pt=(Y0(f)||mh(f))&&!(SY(f.tagName)||vx(f.tagName))?fu(f.tagName):void 0;if(!Pt)return!0;let yi=kd(Pt,0);if(!Z(yi))return!0;let Hi=NEt(f);if(!Hi)return!0;let vn=zf(Hi,111551,!0,!1,f);if(!vn)return!0;let br=Js(vn),Qr=kd(br,0);if(!Z(Qr))return!0;let ao=!1,Ko=0;for(let jr of Qr){let Ss=eA(jr,0),Ds=kd(Ss,0);if(Z(Ds))for(let Sa of Ds){if(ao=!0,g6(Sa))return!0;let Oa=Xk(Sa);Oa>Ko&&(Ko=Oa)}}if(!ao)return!0;let Zr=1/0;for(let jr of yi){let Ss=tA(jr);Ss{z.push(q.expression)}),z}if(f.kind===170)return G$t(f);if(f.kind===226)return[f.left];if(nv(f))return f.attributes.properties.length>0||Y0(f)&&f.parent.children.length>0?[f.attributes]:F;let S=f.arguments||F,E=_ct(S);if(E>=0){let P=S.slice(0,E);for(let z=E;z{var it;let tt=oe.target.elementFlags[Ye],It=HPe(q,tt&4?vS(Fe):Fe,!!(tt&12),(it=oe.target.labeledElementDeclarations)==null?void 0:it[Ye]);P.push(It)}):P.push(q)}return P}return S}function G$t(f){let S=f.expression,E=YPe(f);if(E){let P=[];for(let z of E.parameters){let q=Js(z);P.push(HPe(S,q))}return P}return Se.fail()}function NTt(f,S){return X.experimentalDecorators?K$t(f,S):Math.min(Math.max(Xk(S),1),2)}function K$t(f,S){switch(f.parent.kind){case 263:case 231:return 1;case 172:return dN(f.parent)?3:2;case 174:case 177:case 178:return S.parameters.length<=2?2:3;case 169:return 3;default:return Se.fail()}}function ATt(f){let S=Vo(f),{start:E,length:P}=_5(S,ba(f.expression)?f.expression.name:f.expression);return{start:E,length:P,sourceFile:S}}function CY(f,S,...E){if(Od(f)){let{sourceFile:P,start:z,length:q}=ATt(f);return"message"in S?k_(P,z,q,S,...E):Vpe(P,S)}else return"message"in S?ws(f,S,...E):WT(Vo(f),f,S)}function X$t(f){return WE(f)?ba(f.expression)?f.expression.name:f.expression:Kv(f)?ba(f.tag)?f.tag.name:f.tag:nv(f)?f.tagName:f}function PTt(f){if(!Od(f)||!Ai(f.expression))return!1;let S=Ei(f.expression,f.expression.escapedText,111551,void 0,!1),E=S?.valueDeclaration;if(!E||!Fl(E)||!H8(E.parent)||!sM(E.parent.parent)||!Ai(E.parent.parent.expression))return!1;let P=QBe(!1);return P?pE(E.parent.parent.expression,!0)===P:!1}function kWe(f,S,E,P){var z;let q=_ct(E);if(q>-1)return ws(E[q],j.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let oe=Number.POSITIVE_INFINITY,Fe=Number.NEGATIVE_INFINITY,Ye=Number.NEGATIVE_INFINITY,it=Number.POSITIVE_INFINITY,tt;for(let vn of S){let br=tA(vn),Qr=Xk(vn);brYe&&(Ye=br),E.lengthz?oe=Math.min(oe,Ye):it1&&(Ko=Ss(Pt,Tx,Hi,Zr)),Ko||(Ko=Ss(Pt,P1,Hi,Zr)),Ko)return Ko;if(Ko=bct(f,Pt,yi,!!E,P),ra(f).resolvedSignature=Ko,tt)if(!q&&it&&(q=j.The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method),br)if(br.length===1||br.length>3){let Ds=br[br.length-1],Sa;br.length>3&&(Sa=Zl(Sa,j.The_last_overload_gave_the_following_error),Sa=Zl(Sa,j.No_overload_matches_this_call)),q&&(Sa=Zl(Sa,q));let Oa=B1e(f,yi,Ds,P1,0,!0,()=>Sa,void 0);if(Oa)for(let wd of Oa)Ds.declaration&&br.length>3&&Pd(wd,ws(Ds.declaration,j.The_last_overload_is_declared_here)),jr(Ds,wd),Gu.add(wd);else Se.fail("No error for last overload signature")}else{let Ds=[],Sa=0,Oa=Number.MAX_VALUE,wd=0,Td=0;for(let Kr of br){let Gn=B1e(f,yi,Kr,P1,0,!0,()=>Zl(void 0,j.Overload_0_of_1_2_gave_the_following_error,Td+1,Pt.length,gC(Kr)),void 0);Gn?(Gn.length<=Oa&&(Oa=Gn.length,wd=Td),Sa=Math.max(Sa,Gn.length),Ds.push(Gn)):Se.fail("No error for 3 or fewer overload signatures"),Td++}let sm=Sa>1?Ds[wd]:cr(Ds);Se.assert(sm.length>0,"No errors reported for 3 or fewer overload signatures");let ol=Zl($i(sm,dse),j.No_overload_matches_this_call);q&&(ol=Zl(ol,q));let vh=[...za(sm,Kr=>Kr.relatedInformation)],or;if(Yt(sm,Kr=>Kr.start===sm[0].start&&Kr.length===sm[0].length&&Kr.file===sm[0].file)){let{file:Kr,start:bn,length:Gn}=sm[0];or={file:Kr,start:bn,length:Gn,code:ol.code,category:ol.category,messageText:ol,relatedInformation:vh}}else or=WT(Vo(f),X$t(f),ol,vh);jr(br[0],or),Gu.add(or)}else if(Qr)Gu.add(kWe(f,[Qr],yi,q));else if(ao)vq(ao,f.typeArguments,!0,q);else{let Ds=Qn(S,Sa=>Tde(Sa,It));Ds.length===0?Gu.add(Y$t(f,S,It,q)):Gu.add(kWe(f,Ds,yi,q))}return Ko;function jr(Ds,Sa){var Oa,wd;let Td=br,sm=Qr,ol=ao,vh=((wd=(Oa=Ds.declaration)==null?void 0:Oa.symbol)==null?void 0:wd.declarations)||F,Kr=vh.length>1?jt(vh,bn=>Rp(bn)&&jT(bn.body)):void 0;if(Kr){let bn=m2(Kr),Gn=!bn.typeParameters;Ss([bn],P1,Gn)&&Pd(Sa,ws(Kr,j.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}br=Td,Qr=sm,ao=ol}function Ss(Ds,Sa,Oa,wd=!1){var Td,sm;if(br=void 0,Qr=void 0,ao=void 0,Oa){let ol=Ds[0];if(En(It)||!WPe(f,yi,ol,wd))return;if(B1e(f,yi,ol,Sa,0,!1,void 0,void 0)){br=[ol];return}return ol}for(let ol=0;olLr===Gn)&&(vh=Skt(vh));let eo;if(En(It)){if(eo=vq(vh,It,!1),!eo){ao=vh;continue}}else Kr=sde(vh.typeParameters,vh,Ys(f)?2:0),eo=DP(hct(f,vh,yi,vn|8,Kr),Kr.nonFixingMapper),vn|=Kr.flags&4?8:0;if(or=Jve(vh,eo,Ys(vh.declaration),Kr&&Kr.inferredTypeParameters),J1e(vh)&&!WPe(f,yi,or,wd)){Qr=or;continue}}else or=vh;if(B1e(f,yi,or,Sa,vn,!1,void 0,Kr)){(br||(br=[])).push(or);continue}if(vn){if(vn=0,Kr){let bn=DP(hct(f,vh,yi,vn,Kr),Kr.mapper);if(or=Jve(vh,bn,Ys(vh.declaration),Kr.inferredTypeParameters),J1e(vh)&&!WPe(f,yi,or,wd)){Qr=or;continue}}if(B1e(f,yi,or,Sa,vn,!1,void 0,Kr)){(br||(br=[])).push(or);continue}}return Ds[ol]=or,or}}}function bct(f,S,E,P,z){return Se.assert(S.length>0),AY(f),P||S.length===1||S.some(q=>!!q.typeParameters)?wWe(f,S,E,z):LTt(S)}function LTt(f){let S=Dc(f,Ye=>Ye.thisParameter),E;S.length&&(E=OTt(S,S.map(Ide)));let{min:P,max:z}=KE(f,Q$t),q=[];for(let Ye=0;YeWu(tt)?YeZz(tt,Ye))))}let oe=Dc(f,Ye=>Wu(Ye)?Bu(Ye.parameters):void 0),Fe=128;if(oe.length!==0){let Ye=vS(Fc(Dc(f,bkt),2));q.push(FTt(oe,Ye)),Fe|=1}return f.some(Rf)&&(Fe|=2),n6(f[0].declaration,void 0,E,q,Qu(f.map(Op)),void 0,P,Fe)}function Q$t(f){let S=f.parameters.length;return Wu(f)?S-1:S}function OTt(f,S){return FTt(f,Fc(S,2))}function FTt(f,S){return oq(of(f),S)}function wWe(f,S,E,P){let z=tGt(S,pi===void 0?E.length:pi),q=S[z],{typeParameters:oe}=q;if(!oe)return q;let Fe=SWe(f)?f.typeArguments:void 0,Ye=Fe?qve(q,Z$t(Fe,oe,Ys(f))):eGt(f,oe,q,E,P);return S[z]=Ye,Ye}function Z$t(f,S,E){let P=f.map(kq);for(;P.length>S.length;)P.pop();for(;P.length=S)return z;oe>P&&(P=oe,E=z)}return E}function iGt(f,S,E){if(f.expression.kind===108){let Ye=yPe(f.expression);if(qr(Ye)){for(let it of f.arguments)fu(it);return oi}if(!Qe(Ye)){let it=HE(vy(f));if(it){let tt=Oc(Ye,it.typeArguments,it);return kY(f,tt,S,E,0)}}return Yz(f)}let P,z=fu(f.expression);if(E2(f)){let Ye=lY(z,f.expression);P=Ye===z?0:nj(f)?16:8,z=Ye}else P=0;if(z=dTt(z,f.expression,uTt),z===Kn)return io;let q=qS(z);if(Qe(q))return NI(f);let oe=kd(q,0),Fe=kd(q,1).length;if(dE(z,q,oe.length,Fe))return!Qe(z)&&f.typeArguments&&ki(f,j.Untyped_function_calls_may_not_accept_type_arguments),Yz(f);if(!oe.length){if(Fe)ki(f,j.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,vs(z));else{let Ye;if(f.arguments.length===1){let it=Vo(f).text;Ev(it.charCodeAt(fd(it,f.expression.end,!0)-1))&&(Ye=ws(f.expression,j.Are_you_missing_a_semicolon))}W1e(f.expression,q,0,Ye)}return NI(f)}return E&8&&!f.typeArguments&&oe.some(pne)?(u2t(f,E),hr):oe.some(Ye=>Ys(Ye.declaration)&&!!xpe(Ye.declaration))?(ki(f,j.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,vs(z)),NI(f)):kY(f,oe,S,E,P)}function pne(f){return!!(f.typeParameters&&Tlt(Op(f)))}function dE(f,S,E,P){return qr(f)||qr(S)&&!!(f.flags&262144)||!E&&!P&&!(S.flags&1048576)&&!(lu(S).flags&131072)&&wf(f,wo)}function Sct(f,S,E){let P=fne(f.expression);if(P===Kn)return io;if(P=qS(P),Qe(P))return NI(f);if(qr(P))return f.typeArguments&&ki(f,j.Untyped_function_calls_may_not_accept_type_arguments),Yz(f);let z=kd(P,1);if(z.length){if(!nGt(f,z[0]))return NI(f);if(MTt(z,Fe=>!!(Fe.flags&4)))return ki(f,j.Cannot_create_an_instance_of_an_abstract_class),NI(f);let oe=P.symbol&&av(P.symbol);return oe&&kc(oe,64)?(ki(f,j.Cannot_create_an_instance_of_an_abstract_class),NI(f)):kY(f,z,S,E,0)}let q=kd(P,0);if(q.length){let oe=kY(f,q,S,E,0);return Ae||(oe.declaration&&!QN(oe.declaration)&&Op(oe)!==Pn&&ki(f,j.Only_a_void_function_can_be_called_with_the_new_keyword),PF(oe)===Pn&&ki(f,j.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),oe}return W1e(f.expression,P,1),NI(f)}function MTt(f,S){return ua(f)?En(f,E=>MTt(E,S)):f.compositeKind===1048576?En(f.compositeSignatures,S):S(f)}function j1e(f,S){let E=Pp(S);if(!Z(E))return!1;let P=E[0];if(P.flags&2097152){let z=P.types,q=NBe(z),oe=0;for(let Fe of P.types){if(!q[oe]&&Ls(Fe)&3&&(Fe.symbol===f||j1e(f,Fe)))return!0;oe++}return!1}return P.symbol===f?!0:j1e(f,P)}function nGt(f,S){if(!S||!S.declaration)return!0;let E=S.declaration,P=v1(E,6);if(!P||E.kind!==176)return!0;let z=av(E.parent.symbol),q=_m(E.parent.symbol);if(!blt(f,z)){let oe=vy(f);if(oe&&P&4){let Fe=kq(oe);if(j1e(E.parent.symbol,Fe))return!0}return P&2&&ki(f,j.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,vs(q)),P&4&&ki(f,j.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,vs(q)),!1}return!0}function RTt(f,S,E){let P,z=E===0,q=EY(S),oe=q&&kd(q,E).length>0;if(S.flags&1048576){let Ye=S.types,it=!1;for(let tt of Ye)if(kd(tt,E).length!==0){if(it=!0,P)break}else if(P||(P=Zl(P,z?j.Type_0_has_no_call_signatures:j.Type_0_has_no_construct_signatures,vs(tt)),P=Zl(P,z?j.Not_all_constituents_of_type_0_are_callable:j.Not_all_constituents_of_type_0_are_constructable,vs(S))),it)break;it||(P=Zl(void 0,z?j.No_constituent_of_type_0_is_callable:j.No_constituent_of_type_0_is_constructable,vs(S))),P||(P=Zl(P,z?j.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:j.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,vs(S)))}else P=Zl(P,z?j.Type_0_has_no_call_signatures:j.Type_0_has_no_construct_signatures,vs(S));let Fe=z?j.This_expression_is_not_callable:j.This_expression_is_not_constructable;if(Od(f.parent)&&f.parent.arguments.length===0){let{resolvedSymbol:Ye}=ra(f);Ye&&Ye.flags&32768&&(Fe=j.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:Zl(P,Fe),relatedMessage:oe?j.Did_you_forget_to_use_await:void 0}}function W1e(f,S,E,P){let{messageChain:z,relatedMessage:q}=RTt(f,S,E),oe=WT(Vo(f),f,z);if(q&&Pd(oe,ws(f,q)),Od(f.parent)){let{start:Fe,length:Ye}=ATt(f.parent);oe.start=Fe,oe.length=Ye}Gu.add(oe),z1e(S,E,P?Pd(oe,P):oe)}function z1e(f,S,E){if(!f.symbol)return;let P=Nl(f.symbol).originatingImport;if(P&&!Kx(P)){let z=kd(Js(Nl(f.symbol).target),S);if(!z||!z.length)return;Pd(E,ws(P,j.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead))}}function BTt(f,S,E){let P=fu(f.tag),z=qS(P);if(Qe(z))return NI(f);let q=kd(z,0),oe=kd(z,1).length;if(dE(P,z,q.length,oe))return Yz(f);if(!q.length){if(Yg(f.parent)){let Fe=ws(f.tag,j.It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked);return Gu.add(Fe),NI(f)}return W1e(f.tag,z,0),NI(f)}return kY(f,q,S,E,0)}function rGt(f){switch(f.parent.kind){case 263:case 231:return j.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 169:return j.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 172:return j.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 174:case 177:case 178:return j.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return Se.fail()}}function xct(f,S,E){let P=fu(f.expression),z=qS(P);if(Qe(z))return NI(f);let q=kd(z,0),oe=kd(z,1).length;if(dE(P,z,q.length,oe))return Yz(f);if(oGt(f,q)&&!Tu(f.expression)){let Ye=_h(f.expression,!1);return ki(f,j._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,Ye),NI(f)}let Fe=rGt(f);if(!q.length){let Ye=RTt(f.expression,z,0),it=Zl(Ye.messageChain,Fe),tt=WT(Vo(f.expression),f.expression,it);return Ye.relatedMessage&&Pd(tt,ws(f.expression,Ye.relatedMessage)),Gu.add(tt),z1e(z,0,tt),NI(f)}return kY(f,q,S,E,0,Fe)}function UPe(f,S){let E=sB(f),P=E&&Fv(E),z=P&&Wp(P,lT.Element,788968),q=z&&qe.symbolToEntityName(z,788968,f),oe=Me.createFunctionTypeNode(void 0,[Me.createParameterDeclaration(void 0,void 0,"props",void 0,qe.typeToTypeNode(S,f))],q?Me.createTypeReferenceNode(q,void 0):Me.createKeywordTypeNode(133)),Fe=Ou(1,"props");return Fe.links.type=S,n6(oe,void 0,void 0,[Fe],z?_m(z):Ie,void 0,1,0)}function jTt(f,S,E){if(SY(f.tagName)){let oe=sTt(f),Fe=UPe(f,oe);return oR(yne(f.attributes,cWe(Fe,f),void 0,0),oe,f.tagName,f.attributes),Z(f.typeArguments)&&(ee(f.typeArguments,c_),Gu.add(ob(Vo(f),f.typeArguments,j.Expected_0_type_arguments_but_got_1,0,Z(f.typeArguments)))),Fe}let P=fu(f.tagName),z=qS(P);if(Qe(z))return NI(f);let q=_We(P,f);return dE(P,z,q.length,0)?Yz(f):q.length===0?(ki(f.tagName,j.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,_h(f.tagName)),NI(f)):kY(f,q,S,E,0)}function WTt(f,S,E){let P=fu(f.right);if(!qr(P)){let z=zct(P);if(z){let q=qS(z);if(Qe(q))return NI(f);let oe=kd(q,0),Fe=kd(q,1);if(dE(z,q,oe.length,Fe.length))return Yz(f);if(oe.length)return kY(f,oe,S,E,0)}else if(!(kze(P)||Jz(P,wo)))return ki(f.right,j.The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method),NI(f)}return oi}function oGt(f,S){return S.length&&Yt(S,E=>E.minArgumentCount===0&&!Wu(E)&&E.parameters.length1?r0(f.arguments[1]):void 0;for(let q=2;q{let oe=$k(z);VAe(q,oe)||s1e(z,q,E,j.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first)})}function ZN(f){let S=fu(f.expression),E=lY(S,f.expression);return h1e(LO(E),f,E!==S)}function Qz(f){return f.flags&64?ZN(f):LO(fu(f.expression))}function H1e(f){if(Ilt(f),ee(f.typeArguments,c_),f.kind===233){let E=uN(f.parent);E.kind===226&&E.operatorToken.kind===104&&G7(f,E.right)&&ki(f,j.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression)}let S=f.kind===233?fu(f.expression):JA(f.exprName)?gPe(f.exprName):fu(f.exprName);return Ect(S,f)}function Ect(f,S){let E=S.typeArguments;if(f===Kn||Qe(f)||!En(E))return f;let P=!1,z,q=Fe(f),oe=P?z:f;return oe&&Gu.add(ob(Vo(S),E,j.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,vs(oe))),q;function Fe(it){let tt=!1,It=!1,Pt=yi(it);return P||(P=It),tt&&!It&&(z??(z=it)),Pt;function yi(Hi){if(Hi.flags&524288){let vn=UN(Hi),br=Ye(vn.callSignatures),Qr=Ye(vn.constructSignatures);if(tt||(tt=vn.callSignatures.length!==0||vn.constructSignatures.length!==0),It||(It=br.length!==0||Qr.length!==0),br!==vn.callSignatures||Qr!==vn.constructSignatures){let ao=ml(Ou(0,"__instantiationExpression"),vn.members,br,Qr,vn.indexInfos);return ao.objectFlags|=8388608,ao.node=S,ao}}else if(Hi.flags&58982400){let vn=Pb(Hi);if(vn){let br=yi(vn);if(br!==vn)return br}}else{if(Hi.flags&1048576)return oh(Hi,Fe);if(Hi.flags&2097152)return Qu($s(Hi.types,yi))}return Hi}}function Ye(it){let tt=Qn(it,It=>!!It.typeParameters&&Tde(It,E));return $s(tt,It=>{let Pt=vq(It,E,!0);return Pt?Jve(It,Pt,Ys(It.declaration)):It})}}function Kk(f){return c_(f.type),AI(f.expression,f.type)}function AI(f,S,E){let P=fu(f,E),z=al(S);if(Qe(z))return z;let q=go(S.parent,oe=>oe.kind===238||oe.kind===350);return oR(P,z,q,f,j.Type_0_does_not_satisfy_the_expected_type_1),P}function h6(f){return UXt(f),f.keywordToken===105?mne(f):f.keywordToken===102?Dct(f):Se.assertNever(f.keywordToken)}function Dde(f){switch(f.keywordToken){case 102:return wkt();case 105:let S=mne(f);return Qe(S)?Ie:OWe(S);default:Se.assertNever(f.keywordToken)}}function mne(f){let S=jS(f);if(S)if(S.kind===176){let E=Bs(S.parent);return Js(E)}else{let E=Bs(S);return Js(E)}else return ki(f,j.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),Ie}function Dct(f){se===100||se===199?Vo(f).impliedNodeFormat!==99&&ki(f,j.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):se<6&&se!==4&&ki(f,j.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext);let S=Vo(f);return Se.assert(!!(S.flags&8388608),"Containing file is missing import meta node flag."),f.name.escapedText==="meta"?kkt():Ie}function Ide(f){let S=f.valueDeclaration;return Eg(Js(f),!1,!!S&&(yg(S)||XT(S)))}function AWe(f,S,E){switch(f.name.kind){case 80:{let P=f.name.escapedText;return f.dotDotDotToken?E&12?P:`${P}_${S}`:E&3?P:`${P}_n`}case 207:{if(f.dotDotDotToken){let P=f.name.elements,z=ac(Y_(P),Zd),q=P.length-(z?.dotDotDotToken?1:0);if(S=P-1)return S===P-1?q:vS(rk(q,Fi));let oe=[],Fe=[],Ye=[];for(let it=S;it!(Ye&1)),Fe=oe<0?q.target.fixedLength:oe;Fe>0&&(z=f.parameters.length-1+Fe)}}if(z===void 0){if(!E&&f.flags&32)return 0;z=f.minArgumentCount}if(P)return z;for(let q=z-1;q>=0;q--){let oe=eA(f,q);if(cy(oe,BPe).flags&131072)break;z=q}f.resolvedMinArgumentCount=z}return f.resolvedMinArgumentCount}function g6(f){if(Wu(f)){let S=Js(f.parameters[f.parameters.length-1]);return!a_(S)||!!(S.target.combinedFlags&12)}return!1}function U1e(f){if(Wu(f)){let S=Js(f.parameters[f.parameters.length-1]);if(!a_(S))return qr(S)?Wf:S;if(S.target.combinedFlags&12)return zue(S,S.target.fixedLength)}}function J1e(f){let S=U1e(f);return S&&!ok(S)&&!qr(S)?S:void 0}function KPe(f){return Act(f,Wi)}function Act(f,S){return f.parameters.length>0?eA(f,0):S}function JTt(f,S,E){let P=f.parameters.length-(Wu(f)?1:0);for(let z=0;z=0);let q=yl(P.parent)?Js(Bs(P.parent.parent)):bEt(P.parent),oe=yl(P.parent)?ye:SEt(P.parent),Fe=fg(z),Ye=jg("target",q),it=jg("propertyKey",oe),tt=jg("parameterIndex",Fe);E.decoratorSignature=lbe(void 0,void 0,[Ye,it,tt],Pn);break}case 174:case 177:case 178:case 172:{let P=S;if(!bc(P.parent))break;let z=bEt(P),q=jg("target",z),oe=SEt(P),Fe=jg("propertyKey",oe),Ye=vu(P)?Pn:Xie(kq(P));if(!vu(S)||dN(S)){let tt=Xie(kq(P)),It=jg("descriptor",tt);E.decoratorSignature=lbe(void 0,void 0,[q,Fe,It],Fc([Ye,Pn]))}else E.decoratorSignature=lbe(void 0,void 0,[q,Fe],Fc([Ye,Pn]));break}}return E.decoratorSignature===oi?void 0:E.decoratorSignature}function YPe(f){return _e?hGt(f):mGt(f)}function G1e(f){let S=AAe(!0);return S!==Vc?(f=HF(Hde(f))||Ce,wP(S,[f])):Ce}function YTt(f){let S=Ikt(!0);return S!==Vc?(f=HF(Hde(f))||Ce,wP(S,[f])):Ce}function QPe(f,S){let E=G1e(S);return E===Ce?(ki(f,Kx(f)?j.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:j.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),Ie):(QBe(!0)||ki(f,Kx(f)?j.A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:j.An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),E)}function OWe(f){let S=Ou(0,"NewTargetExpression"),E=Ou(4,"target",8);E.parent=S,E.links.type=f;let P=Au([E]);return S.members=P,ml(S,P,F,F,F)}function FWe(f,S){if(!f.body)return Ie;let E=Gg(f),P=(E&2)!==0,z=(E&1)!==0,q,oe,Fe,Ye=Pn;if(f.body.kind!==241)q=r0(f.body,S&&S&-9),P&&(q=Hde(cbe(q,!1,f,j.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(z){let it=Mct(f,S);it?it.length>0&&(q=Fc(it,2)):Ye=Wi;let{yieldTypes:tt,nextTypes:It}=QTt(f,S);oe=En(tt)?Fc(tt,2):void 0,Fe=En(It)?Qu(It):void 0}else{let it=Mct(f,S);if(!it)return E&2?QPe(f,Wi):Wi;if(it.length===0){let tt=iWe(f,void 0),It=tt&&(g4e(tt,E)||Pn).flags&32768?ye:Pn;return E&2?QPe(f,It):It}q=Fc(it,2)}if(q||oe||Fe){if(oe&&fY(f,oe,3),q&&fY(f,q,1),Fe&&fY(f,Fe,2),q&&KN(q)||oe&&KN(oe)||Fe&&KN(Fe)){let it=Xat(f),tt=it?it===m2(f)?z?void 0:q:sWe(Op(it),f,void 0):void 0;z?(oe=Aje(oe,tt,0,P),q=Aje(q,tt,1,P),Fe=Aje(Fe,tt,2,P)):q=PO(q,tt,P)}oe&&(oe=$k(oe)),q&&(q=$k(q)),Fe&&(Fe=$k(Fe))}return z?fE(oe||Wi,q||Ye,Fe||Ywt(2,f)||Ce,P):P?G1e(q||Ye):q||Ye}function fE(f,S,E,P){let z=P?cu:ru,q=z.getGlobalGeneratorType(!1);if(f=z.resolveIterationType(f,void 0)||Ce,S=z.resolveIterationType(S,void 0)||Ce,q===Vc){let oe=z.getGlobalIterableIteratorType(!1);return oe!==Vc?tY(oe,[f,S,E]):(z.getGlobalIterableIteratorType(!0),ja)}return tY(q,[f,S,E])}function QTt(f,S){let E=[],P=[],z=(Gg(f)&2)!==0;return bOe(f.body,q=>{let oe=q.expression?fu(q.expression,S):vt;Xu(E,Ade(q,oe,pt,z));let Fe;if(q.asteriskToken){let Ye=xne(oe,z?19:17,q.expression);Fe=Ye&&Ye.nextType}else Fe=TC(q,void 0);Fe&&Xu(P,Fe)}),{yieldTypes:E,nextTypes:P}}function Ade(f,S,E,P){let z=f.expression||f,q=f.asteriskToken?qF(P?19:17,S,E,z):S;return P?EY(q,z,f.asteriskToken?j.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:j.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):q}function ZTt(f,S,E){let P=0;for(let z=0;z=S?E[z]:void 0;P|=q!==void 0?rFe.get(q)||32768:0}return P}function e2t(f){let S=ra(f);if(S.isExhaustive===void 0){S.isExhaustive=0;let E=gGt(f);S.isExhaustive===0&&(S.isExhaustive=E)}else S.isExhaustive===0&&(S.isExhaustive=!1);return S.isExhaustive}function gGt(f){if(f.expression.kind===221){let P=hY(f);if(!P)return!1;let z=CP(r0(f.expression.expression)),q=ZTt(0,0,P);return z.flags&3?(556800&q)===556800:!uE(z,oe=>_Y(oe,q)===q)}let S=r0(f.expression);if(!ide(S))return!1;let E=dR(f);return!E.length||En(E,uwt)?!1:e$t(oh(S,Ig),E)}function Fct(f){return f.endFlowNode&&fq(f.endFlowNode)}function Mct(f,S){let E=Gg(f),P=[],z=Fct(f),q=!1;if(Gb(f.body,oe=>{let Fe=oe.expression;if(Fe){if(Fe=J_(Fe,!0),E&2&&Fe.kind===223&&(Fe=J_(Fe.expression,!0)),Fe.kind===213&&Fe.expression.kind===80&&r0(Fe.expression).symbol===Vf(f.symbol)&&(!H8(f.symbol.valueDeclaration)||Lat(Fe.expression))){q=!0;return}let Ye=r0(Fe,S&&S&-9);E&2&&(Ye=Hde(cbe(Ye,!1,f,j.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),Ye.flags&131072&&(q=!0),Xu(P,Ye)}else z=!0}),!(P.length===0&&!z&&(q||yGt(f))))return xe&&P.length&&z&&!(QN(f)&&P.some(oe=>oe.symbol===f.symbol))&&Xu(P,ye),P}function yGt(f){switch(f.kind){case 218:case 219:return!0;case 174:return f.parent.kind===210;default:return!1}}function vGt(f){switch(f.kind){case 176:case 177:case 178:return}if(Gg(f)!==0)return;let E;if(f.body&&f.body.kind!==241)E=f.body;else if(Gb(f.body,z=>{if(E||!z.expression)return!0;E=z.expression})||!E||Fct(f))return;return bGt(f,E)}function bGt(f,S){if(S=J_(S,!0),!!(r0(S).flags&16))return ee(f.parameters,(P,z)=>{let q=Js(P.symbol);if(!q||q.flags&16||!Ai(P.name)||hde(P.symbol)||RS(P))return;let oe=Rct(f,S,P,q);if(oe)return Pue(1,Ba(P.name.escapedText),z,oe)})}function Rct(f,S,E,P){let z=S.flowNode||S.parent.kind===253&&S.parent.flowNode||rP(2,void 0,void 0),q=rP(32,S,z),oe=zL(E.name,P,P,f,q);if(oe===P)return;let Fe=rP(64,S,z);return zL(E.name,P,oe,f,Fe).flags&131072?oe:void 0}function Pde(f,S){a(E);return;function E(){let P=Gg(f),z=S&&g4e(S,P);if(z&&(n0(z,16384)||z.flags&32769)||f.kind===173||Mm(f.body)||f.body.kind!==241||!Fct(f))return;let q=f.flags&1024,oe=WC(f)||f;if(z&&z.flags&131072)ki(oe,j.A_function_returning_never_cannot_have_a_reachable_end_point);else if(z&&!q)ki(oe,j.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(z&&xe&&!wf(ye,z))ki(oe,j.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(X.noImplicitReturns){if(!z){if(!q)return;let Fe=Op(m2(f));if(G2t(f,Fe))return}ki(oe,j.Not_all_code_paths_return_a_value)}}}function Wg(f,S){if(Se.assert(f.kind!==174||zT(f)),AY(f),yd(f)&&Jde(f,f.name),S&&S&4&&Lw(f)){if(!WC(f)&&!iee(f)){let P=pq(f);if(P&&zF(Op(P))){let z=ra(f);if(z.contextFreeType)return z.contextFreeType;let q=FWe(f,S),oe=n6(void 0,void 0,void 0,F,q,void 0,0,64),Fe=ml(f.symbol,K,[oe],F,F);return Fe.objectFlags|=262144,z.contextFreeType=Fe}}return xu}return!kbe(f)&&f.kind===218&&E4e(f),Lb(f,S),Js(Bs(f))}function Lb(f,S){let E=ra(f);if(!(E.flags&64)){let P=pq(f);if(!(E.flags&64)){E.flags|=64;let z=Ed(kd(Js(Bs(f)),0));if(!z)return;if(Lw(f))if(P){let q=Xz(f),oe;if(S&&S&2){JTt(z,P,q);let Fe=U1e(P);Fe&&Fe.flags&262144&&(oe=jF(P,q.nonFixingMapper))}oe||(oe=q?jF(P,q.mapper):P),Pct(z,oe)}else XPe(z);else if(P&&!f.typeParameters&&P.parameters.length>f.parameters.length){let q=Xz(f);S&&S&2&&JTt(z,P,q)}if(P&&!qie(f)&&!z.resolvedReturnType){let q=FWe(f,S);z.resolvedReturnType||(z.resolvedReturnType=q)}bne(f)}}}function K1e(f){Se.assert(f.kind!==174||zT(f));let S=Gg(f),E=qie(f);if(Pde(f,E),f.body)if(WC(f)||Op(m2(f)),f.body.kind===241)c_(f.body);else{let P=fu(f.body),z=E&&g4e(E,S);if(z){let q=xWe(f.body);if((S&3)===2){let oe=cbe(P,!1,q,j.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);oR(oe,z,q,q)}else oR(P,z,q,q)}}}function Lde(f,S,E,P=!1){if(!wf(S,Ts)){let z=P&&eV(S);return uD(f,!!z&&wf(z,Ts),E),!1}return!0}function Bct(f){if(!Od(f)||!I3(f))return!1;let S=r0(f.arguments[2]);if(Ln(S,"value")){let z=Ku(S,"writable"),q=z&&Js(z);if(!q||q===In||q===dn)return!0;if(z&&z.valueDeclaration&&Ih(z.valueDeclaration)){let oe=z.valueDeclaration.initializer,Fe=fu(oe);if(Fe===In||Fe===dn)return!0}return!1}return!Ku(S,"set")}function DD(f){return!!(Ag(f)&8||f.flags&4&&nT(f)&8||f.flags&3&&pWe(f)&6||f.flags&98304&&!(f.flags&65536)||f.flags&8||En(f.declarations,Bct))}function t2t(f,S,E){var P,z;if(E===0)return!1;if(DD(S)){if(S.flags&4&&cf(f)&&f.expression.kind===110){let q=BS(f);if(!(q&&(q.kind===176||QN(q))))return!0;if(S.valueDeclaration){let oe=ms(S.valueDeclaration),Fe=q.parent===S.valueDeclaration.parent,Ye=q===S.valueDeclaration.parent,it=oe&&((P=S.parent)==null?void 0:P.valueDeclaration)===q.parent,tt=oe&&((z=S.parent)==null?void 0:z.valueDeclaration)===q;return!(Fe||Ye||it||tt)}}return!0}if(cf(f)){let q=J_(f.expression);if(q.kind===80){let oe=ra(q).resolvedSymbol;if(oe.flags&2097152){let Fe=Uh(oe);return!!Fe&&Fe.kind===274}}}return!1}function X1e(f,S,E){let P=ug(f,7);return P.kind!==80&&!cf(P)?(ki(f,S),!1):P.flags&64?(ki(f,E),!1):!0}function SGt(f){fu(f.expression);let S=J_(f.expression);if(!cf(S))return ki(S,j.The_operand_of_a_delete_operator_must_be_a_property_reference),Cn;ba(S)&&wl(S.name)&&ki(S,j.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);let E=ra(S),P=Jh(E.resolvedSymbol);return P&&(DD(P)?ki(S,j.The_operand_of_a_delete_operator_cannot_be_a_read_only_property):xGt(S,P)),Cn}function xGt(f,S){let E=Js(S);xe&&!(E.flags&131075)&&!(Oe?S.flags&16777216:XN(E,16777216))&&ki(f,j.The_operand_of_a_delete_operator_must_be_optional)}function i2t(f){return fu(f.expression),pP}function CGt(f){return AY(f),vt}function jct(f){let S=!1,E=pse(f);if(E&&Yf(E)){let P=YT(f)?j.await_expression_cannot_be_used_inside_a_class_static_block:j.await_using_statements_cannot_be_used_inside_a_class_static_block;ki(f,P),S=!0}else if(!(f.flags&65536))if(lG(f)){let P=Vo(f);if(!hR(P)){let z;if(!u5(P,X)){z??(z=XD(P,f.pos));let q=YT(f)?j.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:j.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module,oe=k_(P,z.start,z.length,q);Gu.add(oe),S=!0}switch(se){case 100:case 199:if(P.impliedNodeFormat===1){z??(z=XD(P,f.pos)),Gu.add(k_(P,z.start,z.length,j.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level)),S=!0;break}case 7:case 99:case 200:case 4:if(ne>=4)break;default:z??(z=XD(P,f.pos));let q=YT(f)?j.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:j.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher;Gu.add(k_(P,z.start,z.length,q)),S=!0;break}}}else{let P=Vo(f);if(!hR(P)){let z=XD(P,f.pos),q=YT(f)?j.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:j.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules,oe=k_(P,z.start,z.length,q);if(E&&E.kind!==176&&!(Gg(E)&2)){let Fe=ws(E,j.Did_you_mean_to_mark_this_function_as_async);Pd(oe,Fe)}Gu.add(oe),S=!0}}return YT(f)&&vPe(f)&&(ki(f,j.await_expressions_cannot_be_used_in_a_parameter_initializer),S=!0),S}function Sq(f){a(()=>jct(f));let S=fu(f.expression),E=cbe(S,!0,f,j.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return E===S&&!Qe(E)&&!(S.flags&3)&&Ly(!1,ws(f,j.await_has_no_effect_on_the_type_of_this_expression)),E}function kGt(f){let S=fu(f.operand);if(S===Kn)return Kn;switch(f.operand.kind){case 9:switch(f.operator){case 41:return U9(fg(-f.operand.text));case 40:return U9(fg(+f.operand.text))}break;case 10:if(f.operator===41)return U9(EP({negative:!0,base10Value:_U(f.operand.text)}))}switch(f.operator){case 40:case 41:case 55:return II(S,f.operand),t4e(S,12288)&&ki(f.operand,j.The_0_operator_cannot_be_applied_to_type_symbol,Ef(f.operator)),f.operator===40?(t4e(S,2112)&&ki(f.operand,j.Operator_0_cannot_be_applied_to_type_1,Ef(f.operator),vs(RL(S))),Fi):e4e(S);case 54:_4e(S,f.operand);let E=_Y(S,12582912);return E===4194304?In:E===8388608?Si:Cn;case 46:case 47:return Lde(f.operand,II(S,f.operand),j.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&X1e(f.operand,j.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,j.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),e4e(S)}return Ie}function ZPe(f){let S=fu(f.operand);return S===Kn?Kn:(Lde(f.operand,II(S,f.operand),j.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&X1e(f.operand,j.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,j.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),e4e(S))}function e4e(f){return n0(f,2112)?Ob(f,3)||n0(f,296)?Ts:Vn:Fi}function t4e(f,S){if(n0(f,S))return!0;let E=CP(f);return!!E&&n0(E,S)}function n0(f,S){if(f.flags&S)return!0;if(f.flags&3145728){let E=f.types;for(let P of E)if(n0(P,S))return!0}return!1}function Ob(f,S,E){return f.flags&S?!0:E&&f.flags&114691?!1:!!(S&296)&&wf(f,Fi)||!!(S&2112)&&wf(f,Vn)||!!(S&402653316)&&wf(f,Ot)||!!(S&528)&&wf(f,Cn)||!!(S&16384)&&wf(f,Pn)||!!(S&131072)&&wf(f,Wi)||!!(S&65536)&&wf(f,si)||!!(S&32768)&&wf(f,ye)||!!(S&4096)&&wf(f,cn)||!!(S&67108864)&&wf(f,Nr)}function Ode(f,S,E){return f.flags&1048576?Yt(f.types,P=>Ode(P,S,E)):Ob(f,S,E)}function MWe(f){return!!(Ls(f)&16)&&!!f.symbol&&Wct(f.symbol)}function Wct(f){return(f.flags&128)!==0}function zct(f){let S=U2t("hasInstance");if(Ode(f,67108864)){let E=Ku(f,S);if(E){let P=Js(E);if(P&&kd(P,0).length!==0)return P}}}function n2t(f,S,E,P,z){if(E===Kn||P===Kn)return Kn;!qr(E)&&Ode(E,402784252)&&ki(f,j.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),Se.assert(GA(f.parent));let q=bq(f.parent,void 0,z);if(q===hr)return Kn;let oe=Op(q);return GS(oe,Cn,S,j.An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression),Cn}function wGt(f){return uE(f,S=>S===gr||!!(S.flags&2097152)&&_6(CP(S)))}function TGt(f,S,E,P){if(E===Kn||P===Kn)return Kn;if(wl(f)){if((ne<9||ne<99||!ae)&&Ky(f,2097152),!ra(f).resolvedSymbol&&vy(f)){let z=LPe(f,P.symbol,!0);bTt(f,P,z)}}else GS(II(E,f),ir,f);return GS(II(P,S),Nr,S)&&wGt(P)&&ki(S,j.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,vs(P)),Cn}function EGt(f,S,E){let P=f.properties;if(xe&&P.length===0)return II(S,f);for(let z=0;zzue(it,E)):vS(P);return HL(Fe,Ye,z)}}}}function HL(f,S,E,P){let z;if(f.kind===304){let q=f;q.objectAssignmentInitializer&&(xe&&!XN(fu(q.objectAssignmentInitializer),16777216)&&(S=cE(S,524288)),r2t(q.name,q.equalsToken,q.objectAssignmentInitializer,E)),z=f.name}else z=f;return z.kind===226&&z.operatorToken.kind===64&&($e(z,E),z=z.left,xe&&(S=cE(S,524288))),z.kind===210?EGt(z,S,P):z.kind===209?y0(z,S,E):DGt(z,S,E)}function DGt(f,S,E){let P=fu(f,E),z=f.parent.kind===305?j.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:j.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,q=f.parent.kind===305?j.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:j.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;return X1e(f,z,q)&&oR(S,P,f,f),iN(f)&&Ky(f.parent,1048576),S}function hne(f){switch(f=J_(f),f.kind){case 80:case 11:case 14:case 215:case 228:case 15:case 9:case 10:case 112:case 97:case 106:case 157:case 218:case 231:case 219:case 209:case 210:case 221:case 235:case 285:case 284:return!0;case 227:return hne(f.whenTrue)&&hne(f.whenFalse);case 226:return D4(f.operatorToken.kind)?!1:hne(f.left)&&hne(f.right);case 224:case 225:switch(f.operator){case 54:case 40:case 41:case 55:return!0}return!1;case 222:case 216:case 234:default:return!1}}function Y1e(f,S){return(S.flags&98304)!==0||VAe(f,S)}function Fde(){let f=Qwe(S,E,P,z,q,oe);return(Pt,yi)=>{let Hi=f(Pt,yi);return Se.assertIsDefined(Hi),Hi};function S(Pt,yi,Hi){return yi?(yi.stackIndex++,yi.skip=!1,it(yi,void 0),It(yi,void 0)):yi={checkMode:Hi,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},Ys(Pt)&&U7(Pt)?(yi.skip=!0,It(yi,fu(Pt.right,Hi)),yi):(Mde(Pt),Pt.operatorToken.kind===64&&(Pt.left.kind===210||Pt.left.kind===209)&&(yi.skip=!0,It(yi,HL(Pt.left,fu(Pt.right,Hi),Hi,Pt.right.kind===110))),yi)}function E(Pt,yi,Hi){if(!yi.skip)return Fe(yi,Pt)}function P(Pt,yi,Hi){if(!yi.skip){let vn=tt(yi);Se.assertIsDefined(vn),it(yi,vn),It(yi,void 0);let br=Pt.kind;if(mme(br)){let Qr=Hi.parent;for(;Qr.kind===217||hme(Qr);)Qr=Qr.parent;(br===56||aM(Qr))&&ZWe(Hi.left,vn,aM(Qr)?Qr.thenStatement:void 0),HZ(br)&&_4e(vn,Hi.left)}}}function z(Pt,yi,Hi){if(!yi.skip)return Fe(yi,Pt)}function q(Pt,yi){let Hi;if(yi.skip)Hi=tt(yi);else{let vn=Ye(yi);Se.assertIsDefined(vn);let br=tt(yi);Se.assertIsDefined(br),Hi=Hct(Pt.left,Pt.operatorToken,Pt.right,vn,br,yi.checkMode,Pt)}return yi.skip=!1,it(yi,void 0),It(yi,void 0),yi.stackIndex--,Hi}function oe(Pt,yi,Hi){return It(Pt,yi),Pt}function Fe(Pt,yi){if(ms(yi))return yi;It(Pt,fu(yi,Pt.checkMode))}function Ye(Pt){return Pt.typeStack[Pt.stackIndex]}function it(Pt,yi){Pt.typeStack[Pt.stackIndex]=yi}function tt(Pt){return Pt.typeStack[Pt.stackIndex+1]}function It(Pt,yi){Pt.typeStack[Pt.stackIndex+1]=yi}}function Mde(f){let{left:S,operatorToken:E,right:P}=f;if(E.kind===61){ms(S)&&(S.operatorToken.kind===57||S.operatorToken.kind===56)&&To(S,j._0_and_1_operations_cannot_be_mixed_without_parentheses,Ef(S.operatorToken.kind),Ef(E.kind)),ms(P)&&(P.operatorToken.kind===57||P.operatorToken.kind===56)&&To(P,j._0_and_1_operations_cannot_be_mixed_without_parentheses,Ef(P.operatorToken.kind),Ef(E.kind));let z=ug(S,31),q=RWe(z);q!==3&&(f.parent.kind===226?ki(z,j.This_binary_expression_is_never_nullish_Are_you_missing_parentheses):q===1?ki(z,j.This_expression_is_always_nullish):ki(z,j.Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish))}}function RWe(f){switch(f=ug(f),f.kind){case 223:case 213:case 212:case 214:case 211:case 229:case 110:return 3;case 226:switch(f.operatorToken.kind){case 64:case 61:case 78:case 57:case 76:case 56:case 77:return 3}return 2;case 227:return RWe(f.whenTrue)|RWe(f.whenFalse);case 106:return 1;case 80:return SS(f)===mt?1:3}return 2}function r2t(f,S,E,P,z){let q=S.kind;if(q===64&&(f.kind===210||f.kind===209))return HL(f,fu(E,P),P,E.kind===110);let oe;HZ(q)?oe=_be(f,P):oe=fu(f,P);let Fe=fu(E,P);return Hct(f,S,E,oe,Fe,P,z)}function Hct(f,S,E,P,z,q,oe){let Fe=S.kind;switch(Fe){case 42:case 43:case 67:case 68:case 44:case 69:case 45:case 70:case 41:case 66:case 48:case 71:case 49:case 72:case 50:case 73:case 52:case 75:case 53:case 79:case 51:case 74:if(P===Kn||z===Kn)return Kn;P=II(P,f),z=II(z,E);let Zr;if(P.flags&528&&z.flags&528&&(Zr=Pt(S.kind))!==void 0)return ki(oe||S,j.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,Ef(S.kind),Ef(Zr)),Fi;{let Ds=Lde(f,P,j.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),Sa=Lde(E,z,j.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),Oa;if(Ob(P,3)&&Ob(z,3)||!(n0(P,2112)||n0(z,2112)))Oa=Fi;else if(Ye(P,z)){switch(Fe){case 50:case 73:br();break;case 43:case 68:ne<3&&ki(oe,j.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}Oa=Vn}else br(Ye),Oa=Ie;if(Ds&&Sa)switch(yi(Oa),Fe){case 48:case 71:case 49:case 72:case 50:case 73:let wd=_t(E);typeof wd.value=="number"&&Math.abs(wd.value)>=32&&lC(pb(uN(E.parent.parent)),oe||S,j.This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2,_h(f),Ef(Fe),wd.value%32);break;default:break}return Oa}case 40:case 65:if(P===Kn||z===Kn)return Kn;!Ob(P,402653316)&&!Ob(z,402653316)&&(P=II(P,f),z=II(z,E));let jr;return Ob(P,296,!0)&&Ob(z,296,!0)?jr=Fi:Ob(P,2112,!0)&&Ob(z,2112,!0)?jr=Vn:Ob(P,402653316,!0)||Ob(z,402653316,!0)?jr=Ot:(qr(P)||qr(z))&&(jr=Qe(P)||Qe(z)?Ie:pt),jr&&!It(Fe)?jr:jr?(Fe===65&&yi(jr),jr):(br((Sa,Oa)=>Ob(Sa,402655727)&&Ob(Oa,402655727)),pt);case 30:case 32:case 33:case 34:return It(Fe)&&(P=tat(II(P,f)),z=tat(II(z,E)),vn((Ds,Sa)=>{if(qr(Ds)||qr(Sa))return!0;let Oa=wf(Ds,Ts),wd=wf(Sa,Ts);return Oa&&wd||!Oa&&!wd&&HAe(Ds,Sa)})),Cn;case 35:case 36:case 37:case 38:if(!(q&&q&64)){if((Oke(f)||Oke(E))&&(!Ys(f)||Fe===37||Fe===38)){let Ds=Fe===35||Fe===37;ki(oe,j.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,Ds?"false":"true")}ao(oe,Fe,f,E),vn((Ds,Sa)=>Y1e(Ds,Sa)||Y1e(Sa,Ds))}return Cn;case 104:return n2t(f,E,P,z,q);case 103:return TGt(f,E,P,z);case 56:case 77:{let Ds=XN(P,4194304)?Fc([p1e(xe?P:RL(z)),z]):P;return Fe===77&&yi(z),Ds}case 57:case 76:{let Ds=XN(P,8388608)?Fc([LO(dwt(P)),z],2):P;return Fe===76&&yi(z),Ds}case 61:case 78:{let Ds=XN(P,262144)?Fc([LO(P),z],2):P;return Fe===78&&yi(z),Ds}case 64:let Ss=ms(f.parent)?wh(f.parent):0;return it(Ss,z),Hi(Ss)?((!(z.flags&524288)||Ss!==2&&Ss!==6&&!NP(z)&&!Cat(z)&&!(Ls(z)&1))&&yi(z),P):(yi(z),z);case 28:if(!X.allowUnreachableCode&&hne(f)&&!tt(f.parent)){let Ds=Vo(f),Sa=Ds.text,Oa=fd(Sa,f.pos);Ds.parseDiagnostics.some(Td=>Td.code!==j.JSX_expressions_must_have_one_parent_element.code?!1:bke(Td,Oa))||ki(f,j.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return z;default:return Se.fail()}function Ye(Zr,jr){return Ob(Zr,2112)&&Ob(jr,2112)}function it(Zr,jr){if(Zr===2)for(let Ss of p2(jr)){let Ds=Js(Ss);if(Ds.symbol&&Ds.symbol.flags&32){let Sa=Ss.escapedName,Oa=Ei(Ss.valueDeclaration,Sa,788968,void 0,!1);Oa?.declarations&&Oa.declarations.some(fM)&&(hT(Oa,j.Duplicate_identifier_0,Ba(Sa),Ss),hT(Ss,j.Duplicate_identifier_0,Ba(Sa),Oa))}}}function tt(Zr){return Zr.parent.kind===217&&mx(Zr.left)&&Zr.left.text==="0"&&(Od(Zr.parent.parent)&&Zr.parent.parent.expression===Zr.parent||Zr.parent.parent.kind===215)&&(cf(Zr.right)||Ai(Zr.right)&&Zr.right.escapedText==="eval")}function It(Zr){let jr=t4e(P,12288)?f:t4e(z,12288)?E:void 0;return jr?(ki(jr,j.The_0_operator_cannot_be_applied_to_type_symbol,Ef(Zr)),!1):!0}function Pt(Zr){switch(Zr){case 52:case 75:return 57;case 53:case 79:return 38;case 51:case 74:return 56;default:return}}function yi(Zr){D4(Fe)&&a(jr);function jr(){let Ss=P;if(kW(S.kind)&&f.kind===211&&(Ss=hWe(f,void 0,!0)),X1e(f,j.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,j.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let Ds;if(Oe&&ba(f)&&n0(Zr,32768)){let Sa=Ln(Fb(f.expression),f.name.escapedText);Yue(Zr,Sa)&&(Ds=j.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}oR(Zr,Ss,f,E,Ds)}}}function Hi(Zr){var jr;switch(Zr){case 2:return!0;case 1:case 5:case 6:case 3:case 4:let Ss=Hm(f),Ds=U7(E);return!!Ds&&Ld(Ds)&&!!((jr=Ss?.exports)!=null&&jr.size);default:return!1}}function vn(Zr){return Zr(P,z)?!1:(br(Zr),!0)}function br(Zr){let jr=!1,Ss=oe||S;if(Zr){let Td=HF(P),sm=HF(z);jr=!(Td===P&&sm===z)&&!!(Td&&sm)&&Zr(Td,sm)}let Ds=P,Sa=z;!jr&&Zr&&([Ds,Sa]=o2t(P,z,Zr));let[Oa,wd]=KM(Ds,Sa);Qr(Ss,jr,Oa,wd)||uD(Ss,jr,j.Operator_0_cannot_be_applied_to_types_1_and_2,Ef(S.kind),Oa,wd)}function Qr(Zr,jr,Ss,Ds){switch(S.kind){case 37:case 35:case 38:case 36:return uD(Zr,jr,j.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,Ss,Ds);default:return}}function ao(Zr,jr,Ss,Ds){let Sa=Ko(J_(Ss)),Oa=Ko(J_(Ds));if(Sa||Oa){let wd=ki(Zr,j.This_condition_will_always_return_0,Ef(jr===37||jr===35?97:112));if(Sa&&Oa)return;let Td=jr===38||jr===36?Ef(54):"",sm=Sa?Ds:Ss,ol=J_(sm);Pd(wd,ws(sm,j.Did_you_mean_0,`${Td}Number.isNaN(${Dp(ol)?$b(ol):"..."})`))}}function Ko(Zr){if(Ai(Zr)&&Zr.escapedText==="NaN"){let jr=eqt();return!!jr&&jr===SS(Zr)}return!1}}function o2t(f,S,E){let P=f,z=S,q=RL(f),oe=RL(S);return E(q,oe)||(P=q,z=oe),[P,z]}function gne(f){a(It);let S=BS(f);if(!S)return pt;let E=Gg(S);if(!(E&1))return pt;let P=(E&2)!==0;f.asteriskToken&&(P&&ne<5&&Ky(f,26624),!P&&ne<2&&X.downlevelIteration&&Ky(f,256));let z=qie(S);z&&z.flags&1048576&&(z=cy(z,Pt=>VWe(Pt,E,void 0)));let q=z&&ult(z,P),oe=q&&q.yieldType||pt,Fe=q&&q.nextType||pt,Ye=f.expression?fu(f.expression):vt,it=Ade(f,Ye,Fe,P);if(z&&it&&oR(it,oe,f.expression||f,f.expression),f.asteriskToken)return m4e(P?19:17,1,Ye,f.expression)||pt;if(z)return uB(2,z,P)||pt;let tt=Ywt(2,S);return tt||(tt=pt,a(()=>{if(Ae&&!$G(f)){let Pt=TC(f,void 0);(!Pt||qr(Pt))&&ki(f,j.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}})),tt;function It(){f.flags&16384||c1(f,j.A_yield_expression_is_only_allowed_in_a_generator_body),vPe(f)&&ki(f,j.yield_expressions_cannot_be_used_in_a_parameter_initializer)}}function IGt(f,S){let E=_be(f.condition,S);ZWe(f.condition,E,f.whenTrue);let P=fu(f.whenTrue,S),z=fu(f.whenFalse,S);return Fc([P,z],2)}function s2t(f){let S=f.parent;return Tu(S)&&s2t(S)||T_(S)&&S.argumentExpression===f}function NGt(f){let S=[f.head.text],E=[];for(let z of f.templateSpans){let q=fu(z.expression);t4e(q,12288)&&ki(z.expression,j.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),S.push(z.literal.text),E.push(wf(q,pa)?q:Ot)}let P=f.parent.kind!==215&&_t(f).value;return P?U9(kC(P)):Rde(f)||s2t(f)||uE(TC(f,void 0)||Ce,AGt)?TP(S,E):Ot}function AGt(f){return!!(f.flags&134217856||f.flags&58982400&&n0(Pb(f)||Ce,402653316))}function Uct(f){return wk(f)&&!mh(f.parent)?f.parent.parent:f}function yne(f,S,E,P){let z=Uct(f);CPe(z,S,!1),Gat(z,E);let q=fu(f,P|1|(E?2:0));E&&E.intraExpressionInferenceSites&&(E.intraExpressionInferenceSites=void 0);let oe=n0(q,2944)&&jWe(q,sWe(S,f,void 0))?Ig(q):q;return D1e(),une(),oe}function r0(f,S){if(S)return fu(f,S);let E=ra(f);if(!E.resolvedType){let P=sC,z=Ui;sC=h0,Ui=void 0,E.resolvedType=fu(f,S),Ui=z,sC=P}return E.resolvedType}function a2t(f){return f=J_(f,!0),f.kind===216||f.kind===234||iF(f)}function Oy(f,S,E){let P=hse(f);if(Ys(f)){let q=Bme(f);if(q)return AI(P,q,S)}let z=ebe(P)||(E?yne(P,E,void 0,S||0):r0(P,S));if(Fl(Zd(f)?tj(f):f)){if(f.name.kind===206&&OO(z))return Jct(z,f.name);if(f.name.kind===207&&a_(z))return hu(z,f.name)}return z}function Jct(f,S){let E;for(let q of S.elements)if(q.initializer){let oe=Q1e(q);oe&&!Ku(f,oe)&&(E=ar(E,q))}if(!E)return f;let P=Au();for(let q of p2(f))P.set(q.escapedName,q);for(let q of E){let oe=Ou(16777220,Q1e(q));oe.links.type=ze(q,!1,!1),P.set(oe.escapedName,oe)}let z=ml(f.symbol,P,F,F,o1(f));return z.objectFlags=f.objectFlags,z}function Q1e(f){let S=wO(f.propertyName||f.name);return px(S)?rT(S):void 0}function hu(f,S){if(f.target.combinedFlags&12||PL(f)>=S.elements.length)return f;let E=S.elements,P=Bz(f).slice(),z=f.target.elementFlags.slice();for(let q=PL(f);qjWe(f,P))}if(S.flags&58982400){let E=Pb(S)||Ce;return n0(E,4)&&n0(f,128)||n0(E,8)&&n0(f,256)||n0(E,64)&&n0(f,2048)||n0(E,4096)&&n0(f,8192)||jWe(f,E)}return!!(S.flags&406847616&&n0(f,128)||S.flags&256&&n0(f,256)||S.flags&2048&&n0(f,2048)||S.flags&512&&n0(f,512)||S.flags&8192&&n0(f,8192))}return!1}function Rde(f){let S=f.parent;return gy(S)&&Jx(S.type)||iF(S)&&Jx(TU(S))||kct(f)&&Uk(TC(f,0))||(Tu(S)||Yg(S)||yx(S))&&Rde(S)||(Ih(S)||Q0(S)||Og(S))&&Rde(S.parent)}function vne(f,S,E){let P=fu(f,S,E);return Rde(f)||hj(f)?Ig(P):a2t(f)?P:iat(P,sWe(TC(f,void 0),f,void 0))}function c2t(f,S){return f.name.kind===167&&YN(f.name),vne(f.initializer,S)}function qct(f,S){WEt(f),f.name.kind===167&&YN(f.name);let E=Wg(f,S);return l2t(f,E,S)}function l2t(f,S,E){if(E&&E&10){let P=R1e(S,0,!0),z=R1e(S,1,!0),q=P||z;if(q&&q.typeParameters){let oe=fR(f,2);if(oe){let Fe=R1e(LO(oe),P?0:1,!1);if(Fe&&!Fe.typeParameters){if(E&8)return u2t(f,E),xu;let Ye=Xz(f),it=Ye.signature&&Op(Ye.signature),tt=it&&pct(it);if(tt&&!tt.typeParameters&&!Yt(Ye.inferences,TY)){let It=LGt(Ye,q.typeParameters),Pt=j9(q,It),yi=$i(Ye.inferences,Hi=>fat(Hi.typeParameter));if(aat(Pt,Fe,(Hi,vn)=>{kT(yi,Hi,vn,0,!0)}),En(yi,TY)&&(cat(Pt,Fe,(Hi,vn)=>{kT(yi,Hi,vn)}),!$ct(Ye.inferences,yi)))return PGt(Ye.inferences,yi),Ye.inferredTypeParameters=Pl(Ye.inferredTypeParameters,It),$S(Pt)}return $S(mct(q,Fe,Ye),za(Jc,It=>It&&$i(It.inferences,Pt=>Pt.typeParameter)).slice())}}}}return S}function u2t(f,S){if(S&2){let E=Xz(f);E.flags|=4}}function TY(f){return!!(f.candidates||f.contraCandidates)}function Z1e(f){return!!(f.candidates||f.contraCandidates||Hve(f.typeParameter))}function $ct(f,S){for(let E=0;EE.symbol.escapedName===S)}function Gct(f,S){let E=S.length;for(;E>1&&S.charCodeAt(E-1)>=48&&S.charCodeAt(E-1)<=57;)E--;let P=S.slice(0,E);for(let z=1;;z++){let q=P+z;if(!WWe(f,q))return q}}function Kct(f){let S=yq(f);if(S&&!S.typeParameters)return Op(S)}function OGt(f){let S=fu(f.expression),E=lY(S,f.expression),P=Kct(S);return P&&h1e(P,f,E!==S)}function Fb(f){let S=ebe(f);if(S)return S;if(f.flags&268435456&&Ui){let z=Ui[pp(f)];if(z)return z}let E=dv,P=fu(f,64);if(dv!==E){let z=Ui||(Ui=[]);z[pp(f)]=P,R$e(f,f.flags|268435456)}return P}function ebe(f){let S=J_(f,!0);if(iF(S)){let E=TU(S);if(!Jx(E))return al(E)}if(S=J_(f),YT(S)){let E=ebe(S.expression);return E?EY(E):void 0}if(Od(S)&&S.expression.kind!==108&&!es(S,!0)&&!DWe(S))return E2(S)?OGt(S):Kct(fne(S.expression));if(gy(S)&&!Jx(S.type))return al(S.type);if(B6(f)||sf(f))return fu(f)}function i4e(f){let S=ra(f);if(S.contextFreeType)return S.contextFreeType;CPe(f,pt,!1);let E=S.contextFreeType=fu(f,4);return une(),E}function fu(f,S,E){var P,z;(P=us)==null||P.push(us.Phase.Check,"checkExpression",{kind:f.kind,pos:f.pos,end:f.end,path:f.tracingPath});let q=H;H=f,A=0;let oe=f2t(f,S,E),Fe=l2t(f,oe,S);return MWe(Fe)&&FGt(f,Fe),H=q,(z=us)==null||z.pop(),Fe}function FGt(f,S){let E=f.parent.kind===211&&f.parent.expression===f||f.parent.kind===212&&f.parent.expression===f||(f.kind===80||f.kind===166)&&Sze(f)||f.parent.kind===186&&f.parent.exprName===f||f.parent.kind===281;if(E||ki(f,j.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query),X.isolatedModules||X.verbatimModuleSyntax&&E&&!Ei(f,fx(f),2097152,void 0,!1,!0)){Se.assert(!!(S.symbol.flags&128));let P=S.symbol.valueDeclaration,z=t.getRedirectReferenceForResolutionFromSourceOfProject(Vo(P).resolvedPath);P.flags&33554432&&!q3(f)&&(!z||!ph(z.commandLine.options))&&ki(f,j.Cannot_access_ambient_const_enums_when_0_is_enabled,ni)}}function d2t(f,S){if(Gx(f)){if(mU(f))return AI(f.expression,ree(f),S);if(iF(f))return wct(f,S)}return fu(f.expression,S)}function f2t(f,S,E){let P=f.kind;if(u)switch(P){case 231:case 218:case 219:u.throwIfCancellationRequested()}switch(P){case 80:return o$t(f,S);case 81:return mTt(f);case 110:return gPe(f);case 108:return yPe(f);case 106:return At;case 15:case 11:return iPe(f)?hi:U9(kC(f.text));case 9:return V(f),U9(fg(+f.text));case 10:return G(f),U9(EP({negative:!1,base10Value:_U(f.text)}));case 112:return Si;case 97:return In;case 228:return NGt(f);case 14:return E$t(f);case 209:return mq(f,S,E);case 210:return hq(f,S);case 211:return hWe(f,S);case 166:return pTt(f,S);case 212:return ETt(f,S);case 213:if(f.expression.kind===102)return lGt(f);case 214:return zTt(f,S);case 215:return Cct(f);case 217:return d2t(f,S);case 231:return AKt(f);case 218:case 219:return Wg(f,S);case 221:return i2t(f);case 216:case 234:return Ede(f,S);case 235:return Qz(f);case 233:return H1e(f);case 238:return Kk(f);case 236:return h6(f);case 220:return SGt(f);case 222:return CGt(f);case 223:return Sq(f);case 224:return kGt(f);case 225:return ZPe(f);case 226:return $e(f,S);case 227:return IGt(f,S);case 230:return D$t(f,S);case 232:return vt;case 229:return gne(f);case 237:return I$t(f);case 294:return j$t(f,S);case 284:return wPe(f,S);case 285:return L$t(f,S);case 288:return rTt(f);case 292:return F$t(f,S);case 286:Se.fail("Shouldn't ever directly check a JsxOpeningElement")}return Ie}function _2t(f){qL(f),f.expression&&c1(f.expression,j.Type_expected),c_(f.constraint),c_(f.default);let S=F9(Bs(f));Pb(S),PJt(S)||ki(f.default,j.Type_parameter_0_has_a_circular_default,vs(S));let E=xC(S),P=R9(S);E&&P&&GS(P,Aw(Ul(E,Uz(S,P)),P),f.default,j.Type_0_does_not_satisfy_the_constraint_1),AY(f),a(()=>Kde(f.name,j.Type_parameter_name_cannot_be_0))}function MGt(f){var S,E;if(ky(f.parent)||bc(f.parent)||k1(f.parent)){let P=F9(Bs(f)),z=Qst(P)&24576;if(z){let q=Bs(f.parent);if(k1(f.parent)&&!(Ls(_m(q))&52))ki(f,j.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);else if(z===8192||z===16384){(S=us)==null||S.push(us.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:Rv(_m(q)),id:Rv(P)});let oe=u1e(q,P,z===16384?ke:kn),Fe=u1e(q,P,z===16384?kn:ke),Ye=P;U=P,GS(oe,Fe,f,j.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),U=Ye,(E=us)==null||E.pop()}}}}function n4e(f){qL(f),qde(f);let S=BS(f);kc(f,31)&&(S.kind===176&&jT(S.body)||ki(f,j.A_parameter_property_is_only_allowed_in_a_constructor_implementation),S.kind===176&&Ai(f.name)&&f.name.escapedText==="constructor"&&ki(f.name,j.constructor_cannot_be_used_as_a_parameter_property_name)),!f.initializer&&XT(f)&&Uu(f.name)&&S.body&&ki(f,j.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),f.name&&Ai(f.name)&&(f.name.escapedText==="this"||f.name.escapedText==="new")&&(S.parameters.indexOf(f)!==0&&ki(f,j.A_0_parameter_must_be_the_first_parameter,f.name.escapedText),(S.kind===176||S.kind===180||S.kind===185)&&ki(f,j.A_constructor_cannot_have_a_this_parameter),S.kind===219&&ki(f,j.An_arrow_function_cannot_have_a_this_parameter),(S.kind===177||S.kind===178)&&ki(f,j.get_and_set_accessors_cannot_declare_this_parameters)),f.dotDotDotToken&&!Uu(f.name)&&!wf(lu(Js(f.symbol)),j_)&&ki(f,j.A_rest_parameter_must_be_of_an_array_type)}function p2t(f){let S=RGt(f);if(!S){ki(f,j.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}let E=m2(S),P=Pw(E);if(!P)return;c_(f.type);let{parameterName:z}=f;if(P.kind!==0&&P.kind!==2){if(P.parameterIndex>=0){if(Wu(E)&&P.parameterIndex===E.parameters.length-1)ki(z,j.A_type_predicate_cannot_reference_a_rest_parameter);else if(P.type){let q=()=>Zl(void 0,j.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);GS(P.type,Js(E.parameters[P.parameterIndex]),f.type,void 0,q)}}else if(z){let q=!1;for(let{name:oe}of S.parameters)if(Uu(oe)&&zWe(oe,z,P.parameterName)){q=!0;break}q||ki(f.parameterName,j.Cannot_find_parameter_0,P.parameterName)}}}function RGt(f){switch(f.parent.kind){case 219:case 179:case 262:case 218:case 184:case 174:case 173:let S=f.parent;if(f===S.type)return S}}function zWe(f,S,E){for(let P of f.elements){if(Eh(P))continue;let z=P.name;if(z.kind===80&&z.escapedText===E)return ki(S,j.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,E),!0;if((z.kind===207||z.kind===206)&&zWe(z,S,E))return!0}}function bne(f){f.kind===181?PXt(f):(f.kind===184||f.kind===262||f.kind===185||f.kind===179||f.kind===176||f.kind===180)&&kbe(f);let S=Gg(f);S&4||((S&3)===3&&ne<5&&Ky(f,6144),(S&3)===2&&ne<4&&Ky(f,64),S&3&&ne<2&&Ky(f,128)),y4e(h8(f)),DKt(f),ee(f.parameters,n4e),f.type&&c_(f.type),a(E);function E(){fKt(f);let P=WC(f),z=P;if(Ys(f)){let q=b3(f);if(q&&q.typeExpression&&M_(q.typeExpression.type)){let oe=yq(al(q.typeExpression));oe&&oe.declaration&&(P=WC(oe.declaration),z=q.typeExpression.type)}}if(Ae&&!P)switch(f.kind){case 180:ki(f,j.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 179:ki(f,j.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break}if(P&&z){let q=Gg(f);if((q&5)===1){let oe=al(P);oe===Pn?ki(z,j.A_generator_cannot_have_a_void_type_annotation):VWe(oe,q,z)}else(q&3)===2&&eKt(f,P,z)}f.kind!==181&&f.kind!==317&&_R(f)}}function VWe(f,S,E){let P=uB(0,f,(S&2)!==0)||pt,z=uB(1,f,(S&2)!==0)||P,q=uB(2,f,(S&2)!==0)||Ce,oe=fE(P,z,q,!!(S&2));return GS(oe,f,E)}function BGt(f){let S=new Map,E=new Map,P=new Map;for(let q of f.members)if(q.kind===176)for(let oe of q.parameters)OC(oe,q)&&!Uu(oe.name)&&z(S,oe.name,oe.name.escapedText,3);else{let oe=Xd(q),Fe=q.name;if(!Fe)continue;let Ye=wl(Fe),it=Ye&&oe?16:0,tt=Ye?P:oe?E:S,It=Fe&&So(Fe);if(It)switch(q.kind){case 177:z(tt,Fe,It,1|it);break;case 178:z(tt,Fe,It,2|it);break;case 172:z(tt,Fe,It,3|it);break;case 174:z(tt,Fe,It,8|it);break}}function z(q,oe,Fe,Ye){let it=q.get(Fe);if(it)if((it&16)!==(Ye&16))ki(oe,j.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,_h(oe));else{let tt=!!(it&8),It=!!(Ye&8);tt||It?tt!==It&&ki(oe,j.Duplicate_identifier_0,_h(oe)):it&Ye&-17?ki(oe,j.Duplicate_identifier_0,_h(oe)):q.set(Fe,it|Ye)}else q.set(Fe,Ye)}}function jGt(f){for(let S of f.members){let E=S.name;if(Xd(S)&&E){let z=So(E);switch(z){case"name":case"length":case"caller":case"arguments":if(ae)break;case"prototype":let q=j.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,oe=om(Bs(f));ki(E,q,z,oe);break}}}}function m2t(f){let S=new Map;for(let E of f.members)if(E.kind===171){let P,z=E.name;switch(z.kind){case 11:case 9:P=z.text;break;case 80:P=Un(z);break;default:continue}S.get(P)?(ki(Nu(E.symbol.valueDeclaration),j.Duplicate_identifier_0,P),ki(E.name,j.Duplicate_identifier_0,P)):S.set(P,!0)}}function Xct(f){if(f.kind===264){let E=Bs(f);if(E.declarations&&E.declarations.length>0&&E.declarations[0]!==f)return}let S=Oz(Bs(f));if(S?.declarations){let E=new Map;for(let P of S.declarations)P.parameters.length===1&&P.parameters[0].type&&uq(al(P.parameters[0].type),z=>{let q=E.get(Rv(z));q?q.declarations.push(P):E.set(Rv(z),{type:z,declarations:[P]})});E.forEach(P=>{if(P.declarations.length>1)for(let z of P.declarations)ki(z,j.Duplicate_index_signature_for_type_0,vs(P.type))})}}function h2t(f){!qL(f)&&!qXt(f)&&T4e(f.name),qde(f),HWe(f),kc(f,64)&&f.kind===172&&f.initializer&&ki(f,j.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,Gf(f.name))}function WGt(f){return wl(f.name)&&ki(f,j.Private_identifiers_are_not_allowed_outside_class_bodies),h2t(f)}function g2t(f){WEt(f)||T4e(f.name),Sg(f)&&f.asteriskToken&&Ai(f.name)&&Un(f.name)==="constructor"&&ki(f.name,j.Class_constructor_may_not_be_a_generator),N2t(f),kc(f,64)&&f.kind===174&&f.body&&ki(f,j.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,Gf(f.name)),wl(f.name)&&!vy(f)&&ki(f,j.Private_identifiers_are_not_allowed_outside_class_bodies),HWe(f)}function HWe(f){if(wl(f.name)&&(ne<9||ne<99||!ae)){for(let S=Xw(f);S;S=Xw(S))ra(S).flags|=1048576;if(Qh(f.parent)){let S=Yje(f.parent);S&&(ra(f.name).flags|=32768,ra(S).flags|=4096)}}}function zGt(f){qL(f),_d(f,c_)}function VGt(f){bne(f),Tbe(f)||JXt(f),c_(f.body);let S=Bs(f),E=Kp(S,f.kind);if(f===E&&s4e(S),Mm(f.body))return;a(z);return;function P(q){return qb(q)?!0:q.kind===172&&!Xd(q)&&!!q.initializer}function z(){let q=f.parent;if(K6(q)){Qje(f.parent,q);let oe=Vat(q),Fe=Zje(f.body);if(Fe){if(oe&&ki(Fe,j.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),!le&&(En(f.parent.members,P)||En(f.parameters,it=>kc(it,31))))if(!HGt(Fe,f.body))ki(Fe,j.A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers);else{let it;for(let tt of f.body.statements){if(E0(tt)&&m5(ug(tt.expression))){it=tt;break}if(y2t(tt))break}it===void 0&&ki(f,j.A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers)}}else oe||ki(f,j.Constructors_for_derived_classes_must_contain_a_super_call)}}}function HGt(f,S){let E=uN(f.parent);return E0(E)&&E.parent===S}function y2t(f){return f.kind===108||f.kind===110?!0:mse(f)?!1:!!_d(f,y2t)}function v2t(f){Ai(f.name)&&Un(f.name)==="constructor"&&bc(f.parent)&&ki(f.name,j.Class_constructor_may_not_be_an_accessor),a(S),c_(f.body),HWe(f);function S(){if(!kbe(f)&&!Oo(f)&&T4e(f.name),a4e(f),bne(f),f.kind===177&&!(f.flags&33554432)&&jT(f.body)&&f.flags&512&&(f.flags&1024||ki(f.name,j.A_get_accessor_must_return_a_value)),f.name.kind===167&&YN(f.name),Uie(f)){let P=Bs(f),z=Kp(P,177),q=Kp(P,178);if(z&&q&&!(Tq(z)&1)){ra(z).flags|=1;let oe=A_(z),Fe=A_(q);(oe&64)!==(Fe&64)&&(ki(z.name,j.Accessors_must_both_be_abstract_or_non_abstract),ki(q.name,j.Accessors_must_both_be_abstract_or_non_abstract)),(oe&4&&!(Fe&6)||oe&2&&!(Fe&2))&&(ki(z.name,j.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),ki(q.name,j.A_get_accessor_must_be_at_least_as_accessible_as_the_setter))}}let E=jN(Bs(f));f.kind===177&&Pde(f,E)}}function UGt(f){a4e(f)}function JGt(f,S,E){return f.typeArguments&&E{let P=tbe(f);P&&b2t(f,P)});let E=ra(f).resolvedSymbol;E&&En(E.declarations,P=>Xj(P)&&!!(P.flags&536870912))&&Ex(qPe(f),E.declarations,E.escapedName)}}function nbe(f){let S=ac(f.parent,Y$);if(!S)return;let E=tbe(S);if(!E)return;let P=xC(E[S.typeArguments.indexOf(f)]);return P&&Ul(P,wC(E,UWe(S,E)))}function qGt(f){fst(f)}function Bde(f){ee(f.members,c_),a(S);function S(){let E=Kkt(f);nze(E,E.symbol),Xct(f),m2t(f)}}function rbe(f){c_(f.elementType)}function obe(f){let S=!1,E=!1;for(let P of f.elements){let z=Yie(P);if(z&8){let q=al(P.type);if(!AO(q)){ki(P,j.A_rest_element_type_must_be_an_array_type);break}(ok(q)||a_(q)&&q.target.combinedFlags&4)&&(z|=4)}if(z&4){if(E){To(P,j.A_rest_element_cannot_follow_another_rest_element);break}E=!0}else if(z&2){if(E){To(P,j.An_optional_element_cannot_follow_a_rest_element);break}S=!0}else if(z&1&&S){To(P,j.A_required_element_cannot_follow_an_optional_element);break}}ee(f.elements,c_),al(f)}function x2t(f){ee(f.types,c_),al(f)}function o4e(f,S){if(!(f.flags&8388608))return f;let E=f.objectType,P=f.indexType,z=Mv(E)&&Nb(E)===2?Vkt(E,0):JN(E,0),q=!!AL(E,Fi);if(KS(P,oe=>wf(oe,z)||q&&Pz(oe,Fi)))return S.kind===212&&O3(S)&&Ls(E)&32&&gf(E)&1&&ki(S,j.Index_signature_in_type_0_only_permits_reading,vs(E)),f;if(Wz(E)){let oe=Jue(P,S);if(oe){let Fe=uq(qS(E),Ye=>Ku(Ye,oe));if(Fe&&nT(Fe)&6)return ki(S,j.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,Ba(oe)),Ie}}return ki(S,j.Type_0_cannot_be_used_to_index_type_1,vs(P),vs(E)),Ie}function jde(f){c_(f.objectType),c_(f.indexType),o4e(YJ(f),f)}function C2t(f){$Gt(f),c_(f.typeParameter),c_(f.nameType),c_(f.type),f.type||cR(f,pt);let S=QJ(f),E=r6(S);if(E)GS(E,ir,f.nameType);else{let P=Ph(S);GS(P,ir,Ux(f.typeParameter))}}function $Gt(f){var S;if((S=f.members)!=null&&S.length)return To(f.members[0],j.A_mapped_type_may_not_declare_properties_or_methods)}function GGt(f){fje(f)}function xq(f){BXt(f),c_(f.type)}function VF(f){_d(f,c_)}function KGt(f){go(f,E=>E.parent&&E.parent.kind===194&&E.parent.extendsType===E)||To(f,j.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),c_(f.typeParameter);let S=Bs(f.typeParameter);if(S.declarations&&S.declarations.length>1){let E=Nl(S);if(!E.typeParametersChecked){E.typeParametersChecked=!0;let P=F9(S),z=Npe(S,168);if(!eEt(z,[P],q=>[q])){let q=zl(S);for(let oe of z)ki(oe.name,j.All_declarations_of_0_must_have_identical_constraints,q)}}}_R(f)}function XGt(f){for(let S of f.templateSpans){c_(S.type);let E=al(S.type);GS(E,pa,S.type)}al(f)}function YGt(f){c_(f.argument),f.attributes&&LW(f.attributes,To),S2t(f)}function sbe(f){f.dotDotDotToken&&f.questionToken&&To(f,j.A_tuple_member_cannot_be_both_optional_and_rest),f.type.kind===190&&To(f.type,j.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),f.type.kind===191&&To(f.type,j.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),c_(f.type),al(f)}function Wde(f){return(zC(f,2)||qb(f))&&!!(f.flags&33554432)}function zde(f,S){let E=hs(f);if(f.parent.kind!==264&&f.parent.kind!==263&&f.parent.kind!==231&&f.flags&33554432){let P=lse(f);P&&P.flags&128&&!(E&128)&&!(vN(f.parent)&&Dh(f.parent.parent)&&y4(f.parent.parent))&&(E|=32),E|=128}return E&S}function s4e(f){a(()=>Yct(f))}function Yct(f){function S(Zr,jr){return jr!==void 0&&jr.parent===Zr[0].parent?jr:Zr[0]}function E(Zr,jr,Ss,Ds,Sa){if((Ds^Sa)!==0){let wd=zde(S(Zr,jr),Ss);Ks(Zr,Td=>Vo(Td).fileName).forEach(Td=>{let sm=zde(S(Td,jr),Ss);for(let ol of Td){let vh=zde(ol,Ss)^wd,or=zde(ol,Ss)^sm;or&32?ki(Nu(ol),j.Overload_signatures_must_all_be_exported_or_non_exported):or&128?ki(Nu(ol),j.Overload_signatures_must_all_be_ambient_or_non_ambient):vh&6?ki(Nu(ol)||ol,j.Overload_signatures_must_all_be_public_private_or_protected):vh&64&&ki(Nu(ol),j.Overload_signatures_must_all_be_abstract_or_non_abstract)}})}}function P(Zr,jr,Ss,Ds){if(Ss!==Ds){let Sa=x4(S(Zr,jr));ee(Zr,Oa=>{x4(Oa)!==Sa&&ki(Nu(Oa),j.Overload_signatures_must_all_be_optional_or_required)})}}let z=230,q=0,oe=z,Fe=!1,Ye=!0,it=!1,tt,It,Pt,yi=f.declarations,Hi=(f.flags&16384)!==0;function vn(Zr){if(Zr.name&&Mm(Zr.name))return;let jr=!1,Ss=_d(Zr.parent,Sa=>{if(jr)return Sa;jr=Sa===Zr});if(Ss&&Ss.pos===Zr.end&&Ss.kind===Zr.kind){let Sa=Ss.name||Ss,Oa=Ss.name;if(Zr.name&&Oa&&(wl(Zr.name)&&wl(Oa)&&Zr.name.escapedText===Oa.escapedText||f_(Zr.name)&&f_(Oa)&&d6(YN(Zr.name),YN(Oa))||Xp(Zr.name)&&Xp(Oa)&&dx(Zr.name)===dx(Oa))){if((Zr.kind===174||Zr.kind===173)&&Xd(Zr)!==Xd(Ss)){let Td=Xd(Zr)?j.Function_overload_must_be_static:j.Function_overload_must_not_be_static;ki(Sa,Td)}return}if(jT(Ss.body)){ki(Sa,j.Function_implementation_name_must_be_0,Gf(Zr.name));return}}let Ds=Zr.name||Zr;Hi?ki(Ds,j.Constructor_implementation_is_missing):kc(Zr,64)?ki(Ds,j.All_declarations_of_an_abstract_method_must_be_consecutive):ki(Ds,j.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let br=!1,Qr=!1,ao=!1,Ko=[];if(yi)for(let Zr of yi){let jr=Zr,Ss=jr.flags&33554432,Ds=jr.parent&&(jr.parent.kind===264||jr.parent.kind===187)||Ss;if(Ds&&(Pt=void 0),(jr.kind===263||jr.kind===231)&&!Ss&&(ao=!0),jr.kind===262||jr.kind===174||jr.kind===173||jr.kind===176){Ko.push(jr);let Sa=zde(jr,z);q|=Sa,oe&=Sa,Fe=Fe||x4(jr),Ye=Ye&&x4(jr);let Oa=jT(jr.body);Oa&&tt?Hi?Qr=!0:br=!0:Pt?.parent===jr.parent&&Pt.end!==jr.pos&&vn(Pt),Oa?tt||(tt=jr):it=!0,Pt=jr,Ds||(It=jr)}Ys(Zr)&&iu(Zr)&&Zr.jsDoc&&(it=Z(kOe(Zr))>0)}if(Qr&&ee(Ko,Zr=>{ki(Zr,j.Multiple_constructor_implementations_are_not_allowed)}),br&&ee(Ko,Zr=>{ki(Nu(Zr)||Zr,j.Duplicate_function_implementation)}),ao&&!Hi&&f.flags&16&&yi){let Zr=Qn(yi,jr=>jr.kind===263).map(jr=>ws(jr,j.Consider_adding_a_declare_modifier_to_this_class));ee(yi,jr=>{let Ss=jr.kind===263?j.Class_declaration_cannot_implement_overload_list_for_0:jr.kind===262?j.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;Ss&&Pd(ki(Nu(jr)||jr,Ss,Bc(f)),...Zr)})}if(It&&!It.body&&!kc(It,64)&&!It.questionToken&&vn(It),it&&(yi&&(E(yi,tt,z,q,oe),P(yi,tt,Fe,Ye)),tt)){let Zr=B9(f),jr=m2(tt);for(let Ss of Zr)if(!Gst(jr,Ss)){let Ds=Ss.declaration&&U2(Ss.declaration)?Ss.declaration.parent.tagName:Ss.declaration;Pd(ki(Ds,j.This_overload_signature_is_not_compatible_with_its_implementation_signature),ws(tt,j.The_implementation_signature_is_declared_here));break}}}function Vde(f){a(()=>JWe(f))}function JWe(f){let S=f.localSymbol;if(!S&&(S=Bs(f),!S.exportSymbol)||Kp(S,f.kind)!==f)return;let E=0,P=0,z=0;for(let it of S.declarations){let tt=Ye(it),It=zde(it,2080);It&32?It&2048?z|=tt:E|=tt:P|=tt}let q=E|P,oe=E&P,Fe=z&q;if(oe||Fe)for(let it of S.declarations){let tt=Ye(it),It=Nu(it);tt&Fe?ki(It,j.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,Gf(It)):tt&oe&&ki(It,j.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,Gf(It))}function Ye(it){let tt=it;switch(tt.kind){case 264:case 265:case 346:case 338:case 340:return 2;case 267:return nb(tt)||$2(tt)!==0?5:4;case 263:case 266:case 306:return 3;case 307:return 7;case 277:case 226:let It=tt,Pt=Bm(It)?It.expression:It.right;if(!Dp(Pt))return 1;tt=Pt;case 271:case 274:case 273:let yi=0,Hi=oy(Bs(tt));return ee(Hi.declarations,vn=>{yi|=Ye(vn)}),yi;case 260:case 208:case 262:case 276:case 80:return 1;case 173:case 171:return 2;default:return Se.failBadSyntaxKind(tt)}}}function eV(f,S,E,...P){let z=abe(f,S);return z&&EY(z,S,E,...P)}function abe(f,S,E){if(qr(f))return;let P=f;if(P.promisedTypeOfPromise)return P.promisedTypeOfPromise;if(Nx(f,AAe(!1)))return P.promisedTypeOfPromise=nh(f)[0];if(Ode(CP(f),402915324))return;let z=Ln(f,"then");if(qr(z))return;let q=z?kd(z,0):F;if(q.length===0){S&&ki(S,j.A_promise_must_have_a_then_method);return}let oe,Fe;for(let tt of q){let It=PF(tt);It&&It!==Pn&&!$N(f,It,Tx)?oe=It:Fe=ar(Fe,tt)}if(!Fe){Se.assertIsDefined(oe),E&&(E.value=oe),S&&ki(S,j.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,vs(f),vs(oe));return}let Ye=cE(Fc($i(Fe,KPe)),2097152);if(qr(Ye))return;let it=kd(Ye,0);if(it.length===0){S&&ki(S,j.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return P.promisedTypeOfPromise=Fc($i(it,KPe),2)}function cbe(f,S,E,P,...z){return(S?EY(f,E,P,...z):HF(f,E,P,...z))||Ie}function k2t(f){if(Ode(CP(f),402915324))return!1;let S=Ln(f,"then");return!!S&&kd(cE(S,2097152),0).length>0}function qWe(f){var S;if(f.flags&16777216){let E=eje(!1);return!!E&&f.aliasSymbol===E&&((S=f.aliasTypeArguments)==null?void 0:S.length)===1}return!1}function Hde(f){return f.flags&1048576?oh(f,Hde):qWe(f)?f.aliasTypeArguments[0]:f}function w2t(f){if(qr(f)||qWe(f))return!1;if(Wz(f)){let S=Pb(f);if(S?S.flags&3||NP(S)||uE(S,k2t):n0(f,8650752))return!0}return!1}function QGt(f){let S=eje(!0);if(S)return CO(S,[Hde(f)])}function ZGt(f){return w2t(f)?QGt(f)??f:(Se.assert(qWe(f)||abe(f)===void 0,"type provided should not be a non-generic 'promise'-like."),f)}function EY(f,S,E,...P){let z=HF(f,S,E,...P);return z&&ZGt(z)}function HF(f,S,E,...P){if(qr(f)||qWe(f))return f;let z=f;if(z.awaitedTypeOfType)return z.awaitedTypeOfType;if(f.flags&1048576){if(US.lastIndexOf(f.id)>=0){S&&ki(S,j.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}let Fe=S?it=>HF(it,S,E,...P):HF;US.push(f.id);let Ye=oh(f,Fe);return US.pop(),z.awaitedTypeOfType=Ye}if(w2t(f))return z.awaitedTypeOfType=f;let q={value:void 0},oe=abe(f,void 0,q);if(oe){if(f.id===oe.id||US.lastIndexOf(oe.id)>=0){S&&ki(S,j.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}US.push(f.id);let Fe=HF(oe,S,E,...P);return US.pop(),Fe?z.awaitedTypeOfType=Fe:void 0}if(k2t(f)){if(S){Se.assertIsDefined(E);let Fe;q.value&&(Fe=Zl(Fe,j.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,vs(f),vs(q.value))),Fe=Zl(Fe,E,...P),Gu.add(WT(Vo(S),S,Fe))}return}return z.awaitedTypeOfType=f}function eKt(f,S,E){let P=al(S);if(ne>=2){if(Qe(P))return;let q=AAe(!0);if(q!==Vc&&!Nx(P,q)){z(j.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,S,E,vs(HF(P)||Pn));return}}else{if(vY(f,5),Qe(P))return;let q=sb(S);if(q===void 0){z(j.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,S,E,vs(P));return}let oe=zf(q,111551,!0),Fe=oe?Js(oe):Ie;if(Qe(Fe)){q.kind===80&&q.escapedText==="Promise"&&QM(P)===AAe(!1)?ki(E,j.An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):z(j.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,S,E,$b(q));return}let Ye=WJt(!0);if(Ye===ja){z(j.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,S,E,$b(q));return}let it=j.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value;if(!GS(Fe,Ye,E,it,()=>S===E?void 0:Zl(void 0,j.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)))return;let It=q&&fx(q),Pt=Wp(f.locals,It.escapedText,111551);if(Pt){ki(Pt.valueDeclaration,j.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,Un(It),$b(q));return}}cbe(P,!1,f,j.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);function z(q,oe,Fe,Ye){if(oe===Fe)ki(Fe,q,Ye);else{let it=ki(Fe,j.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type);Pd(it,ws(oe,q,Ye))}}}function tKt(f){let S=Vo(f);if(!hR(S)){let E=f.expression;if(Tu(E))return!1;let P=!0,z;for(;;){if($C(E)||P4(E)){E=E.expression;continue}if(Od(E)){P||(z=E),E.questionDotToken&&(z=E.questionDotToken),E=E.expression,P=!1;continue}if(ba(E)){E.questionDotToken&&(z=E.questionDotToken),E=E.expression,P=!1;continue}Ai(E)||(z=E);break}if(z)return Pd(ki(f.expression,j.Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator),ws(z,j.Invalid_syntax_in_decorator)),!0}return!1}function iKt(f){tKt(f);let S=bq(f);JPe(S,f);let E=Op(S);if(E.flags&1)return;let P=YPe(f);if(!P?.resolvedReturnType)return;let z,q=P.resolvedReturnType;switch(f.parent.kind){case 263:case 231:z=j.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 172:if(!_e){z=j.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 169:z=j.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 174:case 177:case 178:z=j.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return Se.failBadSyntaxKind(f.parent)}GS(E,q,f.expression,z)}function lbe(f,S,E,P,z,q=E.length,oe=0){let Fe=Me.createFunctionTypeNode(void 0,F,Me.createKeywordTypeNode(133));return n6(Fe,f,S,E,P,z,q,oe)}function $We(f,S,E,P,z,q,oe){let Fe=lbe(f,S,E,P,z,q,oe);return $S(Fe)}function Qct(f){return $We(void 0,void 0,F,f)}function UF(f){let S=jg("value",f);return $We(void 0,void 0,[S],Pn)}function GWe(f){if(f)switch(f.kind){case 193:case 192:return Zct(f.types);case 194:return Zct([f.trueType,f.falseType]);case 196:case 202:return GWe(f.type);case 183:return f.typeName}}function Zct(f){let S;for(let E of f){for(;E.kind===196||E.kind===202;)E=E.type;if(E.kind===146||!xe&&(E.kind===201&&E.literal.kind===106||E.kind===157))continue;let P=GWe(E);if(!P)return;if(S){if(!Ai(S)||!Ai(P)||S.escapedText!==P.escapedText)return}else S=P}return S}function DY(f){let S=gm(f);return RS(f)?Yke(S):S}function a4e(f){if(!_W(f)||!uw(f)||!f.modifiers||!DH(_e,f,f.parent,f.parent.parent))return;let S=jt(f.modifiers,Cy);if(S){_e?(Ky(S,8),f.kind===169&&Ky(S,32)):ne<99&&(Ky(S,8),D0(f)?f.name?flt(f)&&Ky(S,4194304):Ky(S,4194304):Qh(f)||(wl(f.name)&&(Sg(f)||O_(f)||g1(f))&&Ky(S,4194304),f_(f.name)&&Ky(S,8388608))),vY(f,8);for(let E of f.modifiers)Cy(E)&&iKt(E)}}function nKt(f){a(S);function S(){N2t(f),E4e(f),Jde(f,f.name)}}function elt(f){f.typeExpression||ki(f.name,j.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),f.name&&Kde(f.name,j.Type_alias_name_cannot_be_0),c_(f.typeExpression),y4e(h8(f))}function tlt(f){c_(f.constraint);for(let S of f.typeParameters)c_(S)}function c4e(f){c_(f.typeExpression)}function T2t(f){c_(f.typeExpression);let S=C4(f);if(S){let E=R6(S,sK);if(Z(E)>1)for(let P=1;P0),E.length>1&&ki(E[1],j.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);let P=I2t(f.class.expression),z=K6(S);if(z){let q=I2t(z.expression);q&&P.escapedText!==q.escapedText&&ki(P,j.JSDoc_0_1_does_not_match_the_extends_2_clause,Un(f.tagName),Un(P),Un(q))}}function ube(f){let S=L3(f);S&&qb(S)&&ki(f,j.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function I2t(f){switch(f.kind){case 80:return f;case 211:return f.name;default:return}}function N2t(f){var S;a4e(f),bne(f);let E=Gg(f);if(f.name&&f.name.kind===167&&YN(f.name),Uie(f)){let q=Bs(f),oe=f.localSymbol||q,Fe=(S=oe.declarations)==null?void 0:S.find(Ye=>Ye.kind===f.kind&&!(Ye.flags&524288));f===Fe&&s4e(oe),q.parent&&s4e(q)}let P=f.kind===173?void 0:f.body;if(c_(P),Pde(f,qie(f)),a(z),Ys(f)){let q=b3(f);q&&q.typeExpression&&!kPe(al(q.typeExpression),f)&&ki(q.typeExpression.type,j.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function z(){WC(f)||(Mm(P)&&!Wde(f)&&cR(f,pt),E&1&&jT(P)&&Op(m2(f)))}}function _R(f){a(S);function S(){let E=Vo(f),P=iy.get(E.path);P||(P=[],iy.set(E.path,P)),P.push(f)}}function A2t(f,S){for(let E of f)switch(E.kind){case 263:case 231:cKt(E,S),IY(E,S);break;case 307:case 267:case 241:case 269:case 248:case 249:case 250:nlt(E,S);break;case 176:case 218:case 262:case 219:case 174:case 177:case 178:E.body&&nlt(E,S),IY(E,S);break;case 173:case 179:case 180:case 184:case 185:case 265:case 264:IY(E,S);break;case 195:lKt(E,S);break;default:Se.assertNever(E,"Node should not have been registered for unused identifiers check")}}function P2t(f,S,E){let P=Nu(f)||f,z=Xj(f)?j._0_is_declared_but_never_used:j._0_is_declared_but_its_value_is_never_read;E(f,0,ws(P,z,S))}function dbe(f){return Ai(f)&&Un(f).charCodeAt(0)===95}function cKt(f,S){for(let E of f.members)switch(E.kind){case 174:case 172:case 177:case 178:if(E.kind===178&&E.symbol.flags&32768)break;let P=Bs(E);!P.isReferenced&&(zC(E,2)||xf(E)&&wl(E.name))&&!(E.flags&33554432)&&S(E,0,ws(E.name,j._0_is_declared_but_its_value_is_never_read,zl(P)));break;case 176:for(let z of E.parameters)!z.symbol.isReferenced&&kc(z,2)&&S(z,0,ws(z.name,j.Property_0_is_declared_but_its_value_is_never_read,Bc(z.symbol)));break;case 181:case 240:case 175:break;default:Se.fail("Unexpected class member")}}function lKt(f,S){let{typeParameter:E}=f;ilt(E)&&S(f,1,ws(f,j._0_is_declared_but_its_value_is_never_read,Un(E.name)))}function IY(f,S){let E=Bs(f).declarations;if(!E||Bu(E)!==f)return;let P=h8(f),z=new Set;for(let q of P){if(!ilt(q))continue;let oe=Un(q.name),{parent:Fe}=q;if(Fe.kind!==195&&Fe.typeParameters.every(ilt)){if(dc(z,Fe)){let Ye=Vo(Fe),it=tC(Fe)?ZZ(Fe):fU(Ye,Fe.typeParameters),It=Fe.typeParameters.length===1?[j._0_is_declared_but_its_value_is_never_read,oe]:[j.All_type_parameters_are_unused];S(q,1,k_(Ye,it.pos,it.end-it.pos,...It))}}else S(q,1,ws(q,j._0_is_declared_but_its_value_is_never_read,oe))}}function ilt(f){return!(Vf(f.symbol).isReferenced&262144)&&!dbe(f.name)}function Cq(f,S,E,P){let z=String(P(S)),q=f.get(z);q?q[1].push(E):f.set(z,[S,[E]])}function fbe(f){return ac(UT(f),Fl)}function L2t(f){return Zd(f)?fb(f.parent)?!!(f.propertyName&&dbe(f.name)):dbe(f.name):nb(f)||($c(f)&&Rn(f.parent.parent)||d4e(f))&&dbe(f.name)}function nlt(f,S){let E=new Map,P=new Map,z=new Map;f.locals.forEach(q=>{if(!(q.flags&262144?!(q.flags&3&&!(q.isReferenced&3)):q.isReferenced||q.exportSymbol)&&q.declarations){for(let oe of q.declarations)if(!L2t(oe))if(d4e(oe))Cq(E,dKt(oe),oe,pp);else if(Zd(oe)&&fb(oe.parent)){let Fe=Bu(oe.parent.elements);(oe===Fe||!Bu(oe.parent.elements).dotDotDotToken)&&Cq(P,oe.parent,oe,pp)}else if($c(oe)){let Fe=ca(oe)&7,Ye=Nu(oe);(Fe!==4&&Fe!==6||!Ye||!dbe(Ye))&&Cq(z,oe.parent,oe,pp)}else{let Fe=q.valueDeclaration&&fbe(q.valueDeclaration),Ye=q.valueDeclaration&&Nu(q.valueDeclaration);Fe&&Ye?!OC(Fe,Fe.parent)&&!B3(Fe)&&!dbe(Ye)&&(Zd(oe)&&QE(oe.parent)?Cq(P,oe.parent,oe,pp):S(Fe,1,ws(Ye,j._0_is_declared_but_its_value_is_never_read,Bc(q)))):P2t(oe,Bc(q),S)}}}),E.forEach(([q,oe])=>{let Fe=q.parent;if((q.name?1:0)+(q.namedBindings?q.namedBindings.kind===274?1:q.namedBindings.elements.length:0)===oe.length)S(Fe,0,oe.length===1?ws(Fe,j._0_is_declared_but_its_value_is_never_read,Un(of(oe).name)):ws(Fe,j.All_imports_in_import_declaration_are_unused));else for(let it of oe)P2t(it,Un(it.name),S)}),P.forEach(([q,oe])=>{let Fe=fbe(q.parent)?1:0;if(q.elements.length===oe.length)oe.length===1&&q.parent.kind===260&&q.parent.parent.kind===261?Cq(z,q.parent.parent,q.parent,pp):S(q,Fe,oe.length===1?ws(q,j._0_is_declared_but_its_value_is_never_read,u4e(of(oe).name)):ws(q,j.All_destructured_elements_are_unused));else for(let Ye of oe)S(Ye,Fe,ws(Ye,j._0_is_declared_but_its_value_is_never_read,u4e(Ye.name)))}),z.forEach(([q,oe])=>{if(q.declarations.length===oe.length)S(q,0,oe.length===1?ws(of(oe).name,j._0_is_declared_but_its_value_is_never_read,u4e(of(oe).name)):ws(q.parent.kind===243?q.parent:q,j.All_variables_are_unused));else for(let Fe of oe)S(Fe,0,ws(Fe,j._0_is_declared_but_its_value_is_never_read,u4e(Fe.name)))})}function uKt(){var f;for(let S of QC)if(!((f=Bs(S))!=null&&f.isReferenced)){let E=tj(S);Se.assert(k4(E),"Only parameter declaration should be checked here");let P=ws(S.name,j._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,Gf(S.name),Gf(S.propertyName));E.type||Pd(P,k_(Vo(E),E.end,0,j.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,Gf(S.propertyName))),Gu.add(P)}}function u4e(f){switch(f.kind){case 80:return Un(f);case 207:case 206:return u4e($d(of(f.elements),Zd).name);default:return Se.assertNever(f)}}function d4e(f){return f.kind===273||f.kind===276||f.kind===274}function dKt(f){return f.kind===273?f:f.kind===274?f.parent:f.parent.parent}function XWe(f){if(f.kind===241&&O(f),F7(f)){let S=A1;ee(f.statements,c_),A1=S}else ee(f.statements,c_);f.locals&&_R(f)}function fKt(f){ne>=2||!yZ(f)||f.flags&33554432||Mm(f.body)||ee(f.parameters,S=>{S.name&&!Uu(S.name)&&S.name.escapedText===ht.escapedName&&Mk("noEmit",S,j.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function Sne(f,S,E){if(S?.escapedText!==E||f.kind===172||f.kind===171||f.kind===174||f.kind===173||f.kind===177||f.kind===178||f.kind===303||f.flags&33554432||(Ym(f)||pf(f)||eg(f))&&j6(f))return!1;let P=UT(f);return!(Fl(P)&&Mm(P.parent.body))}function _Kt(f){go(f,S=>Tq(S)&4?(f.kind!==80?ki(Nu(f),j.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):ki(f,j.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0):!1)}function pKt(f){go(f,S=>Tq(S)&8?(f.kind!==80?ki(Nu(f),j.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):ki(f,j.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0):!1)}function mKt(f,S){if(t.getEmitModuleFormatOfFile(Vo(f))>=5||!S||!Sne(f,S,"require")&&!Sne(f,S,"exports")||Dh(f)&&$2(f)!==1)return;let E=di(f);E.kind===307&&Jv(E)&&Mk("noEmit",S,j.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,Gf(S),Gf(S))}function hKt(f,S){if(!S||ne>=4||!Sne(f,S,"Promise")||Dh(f)&&$2(f)!==1)return;let E=di(f);E.kind===307&&Jv(E)&&E.flags&4096&&Mk("noEmit",S,j.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,Gf(S),Gf(S))}function rlt(f,S){ne<=8&&(Sne(f,S,"WeakMap")||Sne(f,S,"WeakSet"))&&wx.push(f)}function Ude(f){let S=Xw(f);Tq(S)&1048576&&(Se.assert(xf(f)&&Ai(f.name)&&typeof f.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),Mk("noEmit",f,j.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,f.name.escapedText))}function gKt(f,S){S&&ne>=2&&ne<=8&&Sne(f,S,"Reflect")&&kw.push(f)}function yKt(f){let S=!1;if(Qh(f)){for(let E of f.members)if(Tq(E)&2097152){S=!0;break}}else if(yd(f))Tq(f)&2097152&&(S=!0);else{let E=Xw(f);E&&Tq(E)&2097152&&(S=!0)}S&&(Se.assert(xf(f)&&Ai(f.name),"The target of a Reflect collision check should be an identifier"),Mk("noEmit",f,j.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,Gf(f.name),"Reflect"))}function Jde(f,S){S&&(mKt(f,S),hKt(f,S),rlt(f,S),gKt(f,S),bc(f)?(Kde(S,j.Class_name_cannot_be_0),f.flags&33554432||Z2t(S)):Z8(f)&&Kde(S,j.Enum_name_cannot_be_0))}function f4e(f){if(ca(f)&7||k4(f))return;let S=Bs(f);if(S.flags&1){if(!Ai(f.name))return Se.fail();let E=Ei(f,f.name.escapedText,3,void 0,!1);if(E&&E!==S&&E.flags&2&&pWe(E)&7){let P=M2(E.valueDeclaration,261),z=P.parent.kind===243&&P.parent.parent?P.parent.parent:void 0;if(!(z&&(z.kind===241&&iu(z.parent)||z.kind===268||z.kind===267||z.kind===307))){let oe=zl(E);ki(f,j.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,oe,oe)}}}}function iA(f){return f===Gt?pt:f===Md?Wf:f}function qde(f){var S;if(a4e(f),Zd(f)||c_(f.type),!f.name)return;if(f.name.kind===167&&(YN(f.name),b8(f)&&f.initializer&&r0(f.initializer)),Zd(f)){if(f.propertyName&&Ai(f.name)&&k4(f)&&Mm(BS(f).body)){QC.push(f);return}fb(f.parent)&&f.dotDotDotToken&&ne<5&&Ky(f,4),f.propertyName&&f.propertyName.kind===167&&YN(f.propertyName);let z=f.parent.parent,q=f.dotDotDotToken?32:0,oe=$t(z,q),Fe=f.propertyName||f.name;if(oe&&!Uu(Fe)){let Ye=wO(Fe);if(px(Ye)){let it=rT(Ye),tt=Ku(oe,it);tt&&(wde(tt,void 0,!1),Cde(f,!!z.initializer&&z.initializer.kind===108,!1,oe,tt))}}}if(Uu(f.name)&&(f.name.kind===207&&ne<2&&X.downlevelIteration&&Ky(f,512),ee(f.name.elements,c_)),f.initializer&&k4(f)&&Mm(BS(f).body)){ki(f,j.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if(Uu(f.name)){if(Wje(f))return;let z=b8(f)&&f.initializer&&f.parent.parent.kind!==249,q=!En(f.name.elements,voe(Eh));if(z||q){let oe=xs(f);if(z){let Fe=r0(f.initializer);xe&&q?fTt(Fe,f):oR(Fe,xs(f),f,f.initializer)}q&&(QE(f.name)?qF(65,oe,ye,f):xe&&fTt(oe,f))}return}let E=Bs(f);if(E.flags&2097152&&(E3(f)||LZ(f))){_ze(f);return}f.name.kind===10&&ki(f.name,j.A_bigint_literal_cannot_be_used_as_a_property_name);let P=iA(Js(E));if(f===E.valueDeclaration){let z=b8(f)&&hse(f);if(z&&!(Ys(f)&&Ld(z)&&(z.properties.length===0||Y6(f.name))&&!!((S=E.exports)!=null&&S.size))&&f.parent.parent.kind!==249){let oe=r0(z);oR(oe,P,f,z,void 0);let Fe=ca(f)&7;if(Fe===6){let Ye=Pkt(!0),it=Wue(!0);if(Ye!==ja&&it!==ja){let tt=Fc([Ye,it,si,ye]);GS(xT(oe,f),tt,z,j.The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined)}}else if(Fe===4){let Ye=Wue(!0);if(Ye!==ja){let it=Fc([Ye,si,ye]);GS(xT(oe,f),it,z,j.The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined)}}}E.declarations&&E.declarations.length>1&&En(E.declarations,q=>q!==f&&mj(q)&&!YWe(q,f))&&ki(f.name,j.All_declarations_of_0_must_have_identical_modifiers,Gf(f.name))}else{let z=iA(xs(f));!Qe(P)&&!Qe(z)&&!d6(P,z)&&!(E.flags&67108864)&&O2t(E.valueDeclaration,P,f,z),b8(f)&&f.initializer&&oR(r0(f.initializer),z,f,f.initializer,void 0),E.valueDeclaration&&!YWe(f,E.valueDeclaration)&&ki(f.name,j.All_declarations_of_0_must_have_identical_modifiers,Gf(f.name))}f.kind!==172&&f.kind!==171&&(Vde(f),(f.kind===260||f.kind===208)&&f4e(f),Jde(f,f.name))}function O2t(f,S,E,P){let z=Nu(E),q=E.kind===172||E.kind===171?j.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:j.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,oe=Gf(z),Fe=ki(z,q,oe,vs(S),vs(P));f&&Pd(Fe,ws(f,j._0_was_also_declared_here,oe))}function YWe(f,S){if(f.kind===169&&S.kind===260||f.kind===260&&S.kind===169)return!0;if(x4(f)!==x4(S))return!1;let E=1358;return v1(f,E)===v1(S,E)}function JF(f){var S,E;(S=us)==null||S.push(us.Phase.Check,"checkVariableDeclaration",{kind:f.kind,pos:f.pos,end:f.end,path:f.tracingPath}),VXt(f),qde(f),(E=us)==null||E.pop()}function F2t(f){return MO(f),qde(f)}function $de(f){let S=d4(f)&7;(S===4||S===6)&&ne<99&&Ky(f,16777216),ee(f.declarations,c_)}function UL(f){!qL(f)&&!Llt(f.declarationList)&&HXt(f),$de(f.declarationList)}function QWe(f){O(f),fu(f.expression)}function olt(f){O(f);let S=_be(f.expression);ZWe(f.expression,S,f.thenStatement),c_(f.thenStatement),f.thenStatement.kind===242&&ki(f.thenStatement,j.The_body_of_an_if_statement_cannot_be_the_empty_statement),c_(f.elseStatement)}function ZWe(f,S,E){if(!xe)return;P(f,E);function P(q,oe){for(q=J_(q),z(q,oe);ms(q)&&(q.operatorToken.kind===57||q.operatorToken.kind===61);)q=J_(q.left),z(q,oe)}function z(q,oe){let Fe=hme(q)?J_(q.right):q;if(cN(Fe))return;if(hme(Fe)){P(Fe,oe);return}let Ye=Fe===q?S:fu(Fe);if(Ye.flags&1024&&ba(Fe)&&(ra(Fe.expression).resolvedSymbol??St).flags&384){ki(Fe,j.This_condition_will_always_return_0,Ye.value?"true":"false");return}let it=ba(Fe)&&a2t(Fe.expression);if(!XN(Ye,4194304)||it)return;let tt=kd(Ye,0),It=!!eV(Ye);if(tt.length===0&&!It)return;let Pt=Ai(Fe)?Fe:ba(Fe)?Fe.name:void 0,yi=Pt&&pE(Pt);if(!yi&&!It)return;yi&&ms(q.parent)&&M2t(q.parent,yi)||yi&&oe&&slt(q,oe,Pt,yi)||(It?uD(Fe,!0,j.This_condition_will_always_return_true_since_this_0_is_always_defined,TF(Ye)):ki(Fe,j.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}function slt(f,S,E,P){return!!_d(S,function z(q){if(Ai(q)){let oe=pE(q);if(oe&&oe===P){if(Ai(f)||Ai(E)&&ms(E.parent))return!0;let Fe=E.parent,Ye=q.parent;for(;Fe&&Ye;){if(Ai(Fe)&&Ai(Ye)||Fe.kind===110&&Ye.kind===110)return pE(Fe)===pE(Ye);if(ba(Fe)&&ba(Ye)){if(pE(Fe.name)!==pE(Ye.name))return!1;Ye=Ye.expression,Fe=Fe.expression}else if(Od(Fe)&&Od(Ye))Ye=Ye.expression,Fe=Fe.expression;else return!1}}}return _d(q,z)})}function M2t(f,S){for(;ms(f)&&f.operatorToken.kind===56;){if(_d(f.right,function P(z){if(Ai(z)){let q=pE(z);if(q&&q===S)return!0}return _d(z,P)}))return!0;f=f.parent}return!1}function R2t(f){O(f),c_(f.statement),_be(f.expression)}function B2t(f){O(f),_be(f.expression),c_(f.statement)}function _4e(f,S){if(f.flags&16384)ki(S,j.An_expression_of_type_void_cannot_be_tested_for_truthiness);else{let E=p4e(S);E!==3&&ki(S,E===1?j.This_kind_of_expression_is_always_truthy:j.This_kind_of_expression_is_always_falsy)}return f}function p4e(f){switch(f=ug(f),f.kind){case 9:return f.text==="0"||f.text==="1"?3:1;case 209:case 219:case 10:case 231:case 218:case 284:case 285:case 210:case 14:return 1;case 222:case 106:return 2;case 15:case 11:return f.text?1:2;case 227:return p4e(f.whenTrue)|p4e(f.whenFalse);case 80:return SS(f)===mt?2:3}return 3}function _be(f,S){return _4e(fu(f,S),f)}function j2t(f){O(f)||f.initializer&&f.initializer.kind===261&&Llt(f.initializer),f.initializer&&(f.initializer.kind===261?$de(f.initializer):fu(f.initializer)),f.condition&&_be(f.condition),f.incrementor&&fu(f.incrementor),c_(f.statement),f.locals&&_R(f)}function W2t(f){jEt(f);let S=pse(f);if(f.awaitModifier?S&&Yf(S)?To(f.awaitModifier,j.for_await_loops_cannot_be_used_inside_a_class_static_block):(Gg(S)&6)===2&&ne<5&&Ky(f,16384):X.downlevelIteration&&ne<2&&Ky(f,256),f.initializer.kind===261)$de(f.initializer);else{let E=f.initializer,P=pbe(f);if(E.kind===209||E.kind===210)HL(E,P||Ie);else{let z=fu(E);X1e(E,j.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,j.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),P&&oR(P,z,E,f.expression)}}c_(f.statement),f.locals&&_R(f)}function vKt(f){jEt(f);let S=NPe(fu(f.expression));if(f.initializer.kind===261){let E=f.initializer.declarations[0];E&&Uu(E.name)&&ki(E.name,j.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),$de(f.initializer)}else{let E=f.initializer,P=fu(E);E.kind===209||E.kind===210?ki(E,j.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):wf(FAe(S),P)?X1e(E,j.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,j.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):ki(E,j.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}(S===Wi||!Ob(S,126091264))&&ki(f.expression,j.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0,vs(S)),c_(f.statement),f.locals&&_R(f)}function pbe(f){let S=f.awaitModifier?15:13;return qF(S,fne(f.expression),ye,f.expression)}function qF(f,S,E,P){return qr(S)?S:alt(f,S,E,P,!0)||pt}function alt(f,S,E,P,z){let q=(f&2)!==0;if(S===Wi){P&&clt(P,S,q);return}let oe=ne>=2,Fe=!oe&&X.downlevelIteration,Ye=X.noUncheckedIndexedAccess&&!!(f&128);if(oe||Fe||q){let yi=xne(S,f,oe?P:void 0);if(z&&yi){let Hi=f&8?j.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:f&32?j.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:f&64?j.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:f&16?j.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:void 0;Hi&&GS(E,yi.nextType,P,Hi)}if(yi||oe)return Ye?pY(yi&&yi.yieldType):yi&&yi.yieldType}let it=S,tt=!1;if(f&4){if(it.flags&1048576){let yi=S.types,Hi=Qn(yi,vn=>!(vn.flags&402653316));Hi!==yi&&(it=Fc(Hi,2))}else it.flags&402653316&&(it=Wi);if(tt=it!==S,tt&&it.flags&131072)return Ye?pY(Ot):Ot}if(!AO(it)){if(P){let yi=!!(f&4)&&!tt,[Hi,vn]=Pt(yi,Fe);uD(P,vn&&!!eV(it),Hi,vs(it))}return tt?Ye?pY(Ot):Ot:void 0}let It=o6(it,Fi);if(tt&&It)return It.flags&402653316&&!X.noUncheckedIndexedAccess?Ot:Fc(Ye?[It,Ot,ye]:[It,Ot],2);return f&128?pY(It):It;function Pt(yi,Hi){var vn;return Hi?yi?[j.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[j.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:m4e(f,0,S,void 0)?[j.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:bKt((vn=S.symbol)==null?void 0:vn.escapedName)?[j.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:yi?[j.Type_0_is_not_an_array_type_or_a_string_type,!0]:[j.Type_0_is_not_an_array_type,!0]}}function bKt(f){switch(f){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}function m4e(f,S,E,P){if(qr(E))return;let z=xne(E,f,P);return z&&z[y0t(S)]}function pR(f=Wi,S=Wi,E=Ce){if(f.flags&67359327&&S.flags&180227&&E.flags&180227){let P=kD([f,S,E]),z=is.get(P);return z||(z={yieldType:f,returnType:S,nextType:E},is.set(P,z)),z}return{yieldType:f,returnType:S,nextType:E}}function lB(f){let S,E,P;for(let z of f)if(!(z===void 0||z===zs)){if(z===da)return da;S=ar(S,z.yieldType),E=ar(E,z.returnType),P=ar(P,z.nextType)}return S||E||P?pR(S&&Fc(S),E&&Fc(E),P&&Qu(P)):zs}function mbe(f,S){return f[S]}function JL(f,S,E){return f[S]=E}function xne(f,S,E){var P,z;if(qr(f))return da;if(!(f.flags&1048576)){let it=E?{errors:void 0}:void 0,tt=z2t(f,S,E,it);if(tt===zs){if(E){let It=clt(E,f,!!(S&2));it?.errors&&Pd(It,...it.errors)}return}else if((P=it?.errors)!=null&&P.length)for(let It of it.errors)Gu.add(It);return tt}let q=S&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",oe=mbe(f,q);if(oe)return oe===zs?void 0:oe;let Fe;for(let it of f.types){let tt=E?{errors:void 0}:void 0,It=z2t(it,S,E,tt);if(It===zs){if(E){let Pt=clt(E,f,!!(S&2));tt?.errors&&Pd(Pt,...tt.errors)}JL(f,q,zs);return}else if((z=tt?.errors)!=null&&z.length)for(let Pt of tt.errors)Gu.add(Pt);Fe=ar(Fe,It)}let Ye=Fe?lB(Fe):zs;return JL(f,q,Ye),Ye===zs?void 0:Ye}function eze(f,S){if(f===zs)return zs;if(f===da)return da;let{yieldType:E,returnType:P,nextType:z}=f;return S&&eje(!0),pR(EY(E,S)||pt,EY(P,S)||pt,z)}function z2t(f,S,E,P){if(qr(f))return da;let z=!1;if(S&2){let q=V2t(f,cu)||H2t(f,cu);if(q)if(q===zs&&E)z=!0;else return S&8?eze(q,E):q}if(S&1){let q=V2t(f,ru)||H2t(f,ru);if(q)if(q===zs&&E)z=!0;else if(S&2){if(q!==zs)return q=eze(q,E),z?q:JL(f,"iterationTypesOfAsyncIterable",q)}else return q}if(S&2){let q=J2t(f,cu,E,P,z);if(q!==zs)return q}if(S&1){let q=J2t(f,ru,E,P,z);if(q!==zs)return S&2?(q=eze(q,E),z?q:JL(f,"iterationTypesOfAsyncIterable",q)):q}return zs}function V2t(f,S){return mbe(f,S.iterableCacheKey)}function H2t(f,S){if(Nx(f,S.getGlobalIterableType(!1))||Nx(f,S.getGlobalIteratorObjectType(!1))||Nx(f,S.getGlobalIterableIteratorType(!1))||Nx(f,S.getGlobalGeneratorType(!1))){let[E,P,z]=nh(f);return JL(f,S.iterableCacheKey,pR(S.resolveIterationType(E,void 0)||E,S.resolveIterationType(P,void 0)||P,z))}if(qX(f,S.getGlobalBuiltinIteratorTypes())){let[E]=nh(f),P=mst(),z=Ce;return JL(f,S.iterableCacheKey,pR(S.resolveIterationType(E,void 0)||E,S.resolveIterationType(P,void 0)||P,z))}}function U2t(f){let S=Ekt(!1),E=S&&Ln(Js(S),kh(f));return E&&px(E)?rT(E):`__@${f}`}function J2t(f,S,E,P,z){let q=Ku(f,U2t(S.iteratorSymbolName)),oe=q&&!(q.flags&16777216)?Js(q):void 0;if(qr(oe))return z?da:JL(f,S.iterableCacheKey,da);let Fe=oe?kd(oe,0):void 0;if(!En(Fe))return z?zs:JL(f,S.iterableCacheKey,zs);let Ye=Qu($i(Fe,Op)),it=llt(Ye,S,E,P,z)??zs;return z?it:JL(f,S.iterableCacheKey,it)}function clt(f,S,E){let P=E?j.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:j.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator,z=!!eV(S)||!E&&$u(f.parent)&&f.parent.expression===f&&Yve(!1)!==Vc&&wf(S,tY(Yve(!1),[pt,pt,pt]));return uD(f,z,P,vs(S))}function tze(f,S,E,P){return llt(f,S,E,P,!1)}function llt(f,S,E,P,z){if(qr(f))return da;let q=SKt(f,S)||Gde(f,S);return q===zs&&E&&(q=void 0,z=!0),q??(q=$2t(f,S,E,P,z)),q===zs?void 0:q}function SKt(f,S){return mbe(f,S.iteratorCacheKey)}function Gde(f,S){if(Nx(f,S.getGlobalIterableIteratorType(!1))||Nx(f,S.getGlobalIteratorType(!1))||Nx(f,S.getGlobalIteratorObjectType(!1))||Nx(f,S.getGlobalGeneratorType(!1))){let[E,P,z]=nh(f);return JL(f,S.iteratorCacheKey,pR(E,P,z))}if(qX(f,S.getGlobalBuiltinIteratorTypes())){let[E]=nh(f),P=mst(),z=Ce;return JL(f,S.iteratorCacheKey,pR(E,P,z))}}function q2t(f,S){let E=Ln(f,"done")||In;return wf(S===0?In:Si,E)}function xKt(f){return q2t(f,0)}function h4e(f){return q2t(f,1)}function CKt(f){if(qr(f))return da;let S=mbe(f,"iterationTypesOfIteratorResult");if(S)return S;if(Nx(f,GJt(!1))){let oe=nh(f)[0];return JL(f,"iterationTypesOfIteratorResult",pR(oe,void 0,void 0))}if(Nx(f,KJt(!1))){let oe=nh(f)[0];return JL(f,"iterationTypesOfIteratorResult",pR(void 0,oe,void 0))}let E=cy(f,xKt),P=E!==Wi?Ln(E,"value"):void 0,z=cy(f,h4e),q=z!==Wi?Ln(z,"value"):void 0;return!P&&!q?JL(f,"iterationTypesOfIteratorResult",zs):JL(f,"iterationTypesOfIteratorResult",pR(P,q||Pn,void 0))}function ize(f,S,E,P,z){var q,oe,Fe,Ye;let it=Ku(f,E);if(!it&&E!=="next")return;let tt=it&&!(E==="next"&&it.flags&16777216)?E==="next"?Js(it):cE(Js(it),2097152):void 0;if(qr(tt))return da;let It=tt?kd(tt,0):F;if(It.length===0){if(P){let Zr=E==="next"?S.mustHaveANextMethodDiagnostic:S.mustBeAMethodDiagnostic;z?(z.errors??(z.errors=[]),z.errors.push(ws(P,Zr,E))):ki(P,Zr,E)}return E==="next"?zs:void 0}if(tt?.symbol&&It.length===1){let Zr=S.getGlobalGeneratorType(!1),jr=S.getGlobalIteratorType(!1),Ss=((oe=(q=Zr.symbol)==null?void 0:q.members)==null?void 0:oe.get(E))===tt.symbol,Ds=!Ss&&((Ye=(Fe=jr.symbol)==null?void 0:Fe.members)==null?void 0:Ye.get(E))===tt.symbol;if(Ss||Ds){let Sa=Ss?Zr:jr,{mapper:Oa}=tt;return pR(BF(Sa.typeParameters[0],Oa),BF(Sa.typeParameters[1],Oa),E==="next"?BF(Sa.typeParameters[2],Oa):void 0)}}let Pt,yi;for(let Zr of It)E!=="throw"&&En(Zr.parameters)&&(Pt=ar(Pt,eA(Zr,0))),yi=ar(yi,Op(Zr));let Hi,vn;if(E!=="throw"){let Zr=Pt?Fc(Pt):Ce;if(E==="next")vn=Zr;else if(E==="return"){let jr=S.resolveIterationType(Zr,P)||pt;Hi=ar(Hi,jr)}}let br,Qr=yi?Qu(yi):Wi,ao=S.resolveIterationType(Qr,P)||pt,Ko=CKt(ao);return Ko===zs?(P&&(z?(z.errors??(z.errors=[]),z.errors.push(ws(P,S.mustHaveAValueDiagnostic,E))):ki(P,S.mustHaveAValueDiagnostic,E)),br=pt,Hi=ar(Hi,pt)):(br=Ko.yieldType,Hi=ar(Hi,Ko.returnType)),pR(br,Fc(Hi),vn)}function $2t(f,S,E,P,z){let q=lB([ize(f,S,"next",E,P),ize(f,S,"return",E,P),ize(f,S,"throw",E,P)]);return z?q:JL(f,S.iteratorCacheKey,q)}function uB(f,S,E){if(qr(S))return;let P=ult(S,E);return P&&P[y0t(f)]}function ult(f,S){if(qr(f))return da;let E=S?2:1,P=S?cu:ru;return xne(f,E,void 0)||tze(f,P,void 0,void 0)}function kKt(f){O(f)||jXt(f)}function g4e(f,S){let E=!!(S&1),P=!!(S&2);if(E){let z=uB(1,f,P);return z?P?HF(Hde(z)):z:Ie}return P?HF(f)||Ie:f}function G2t(f,S){let E=g4e(S,Gg(f));return!!(E&&(n0(E,16384)||E.flags&32769))}function K2t(f){if(O(f))return;let S=pse(f);if(S&&Yf(S)){c1(f,j.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!S){c1(f,j.A_return_statement_can_only_be_used_within_a_function_body);return}let E=m2(S),P=Op(E),z=Gg(S);if(xe||f.expression||P.flags&131072){let q=f.expression?r0(f.expression):ye;if(S.kind===178)f.expression&&ki(f,j.Setters_cannot_return_a_value);else if(S.kind===176)f.expression&&!oR(q,P,f,f.expression)&&ki(f,j.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(qie(S)){let oe=g4e(P,z)??P,Fe=z&2?cbe(q,!1,f,j.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):q;oe&&oR(Fe,oe,f,f.expression)}}else S.kind!==176&&X.noImplicitReturns&&!G2t(S,P)&&ki(f,j.Not_all_code_paths_return_a_value)}function wKt(f){O(f)||f.flags&65536&&c1(f,j.with_statements_are_not_allowed_in_an_async_function_block),fu(f.expression);let S=Vo(f);if(!hR(S)){let E=XD(S,f.pos).start,P=f.statement.pos;gR(S,E,P-E,j.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function X2t(f){O(f);let S,E=!1,P=fu(f.expression);ee(f.caseBlock.clauses,z=>{z.kind===297&&!E&&(S===void 0?S=z:(To(z,j.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),E=!0)),z.kind===296&&a(q(z)),ee(z.statements,c_),X.noFallthroughCasesInSwitch&&z.fallthroughFlowNode&&fq(z.fallthroughFlowNode)&&ki(z,j.Fallthrough_case_in_switch);function q(oe){return()=>{let Fe=fu(oe.expression);Y1e(P,Fe)||s1e(Fe,P,oe.expression,void 0)}}}),f.caseBlock.locals&&_R(f.caseBlock)}function Y2t(f){O(f)||go(f.parent,S=>iu(S)?"quit":S.kind===256&&S.label.escapedText===f.label.escapedText?(To(f.label,j.Duplicate_label_0,_h(f.label)),!0):!1),c_(f.statement)}function Q2t(f){O(f)||Ai(f.expression)&&!f.expression.escapedText&&ue(f,j.Line_break_not_permitted_here),f.expression&&fu(f.expression)}function TKt(f){O(f),XWe(f.tryBlock);let S=f.catchClause;if(S){if(S.variableDeclaration){let E=S.variableDeclaration;qde(E);let P=gm(E);if(P){let z=al(P);z&&!(z.flags&3)&&c1(P,j.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(E.initializer)c1(E.initializer,j.Catch_clause_variable_cannot_have_an_initializer);else{let z=S.block.locals;z&&N2(S.locals,q=>{let oe=z.get(q);oe?.valueDeclaration&&oe.flags&2&&To(oe.valueDeclaration,j.Cannot_redeclare_identifier_0_in_catch_clause,Ba(q))})}}XWe(S.block)}f.finallyBlock&&XWe(f.finallyBlock)}function nze(f,S,E){let P=o1(f);if(P.length===0)return;for(let q of p2(f))E&&q.flags&4194304||NY(f,q,rY(q,8576,!0),i6(q));let z=S.valueDeclaration;if(z&&bc(z)){for(let q of z.members)if(!Xd(q)&&!Uie(q)){let oe=Bs(q);NY(f,oe,Fb(q.name.expression),i6(oe))}}if(P.length>1)for(let q of P)EKt(f,q)}function NY(f,S,E,P){let z=S.valueDeclaration,q=Nu(z);if(q&&wl(q))return;let oe=wI(f,E),Fe=Ls(f)&2?Kp(f.symbol,264):void 0,Ye=z&&z.kind===226||q&&q.kind===167?z:void 0,it=B0(S)===f.symbol?z:void 0;for(let tt of oe){let It=tt.declaration&&B0(Bs(tt.declaration))===f.symbol?tt.declaration:void 0,Pt=it||It||(Fe&&!En(Pp(f),yi=>!!Dz(yi,S.escapedName)&&!!o6(yi,tt.keyType))?Fe:void 0);if(Pt&&!wf(P,tt.type)){let yi=mT(Pt,j.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,zl(S),vs(P),vs(tt.keyType),vs(tt.type));Ye&&Pt!==Ye&&Pd(yi,ws(Ye,j._0_is_declared_here,zl(S))),Gu.add(yi)}}}function EKt(f,S){let E=S.declaration,P=wI(f,S.keyType),z=Ls(f)&2?Kp(f.symbol,264):void 0,q=E&&B0(Bs(E))===f.symbol?E:void 0;for(let oe of P){if(oe===S)continue;let Fe=oe.declaration&&B0(Bs(oe.declaration))===f.symbol?oe.declaration:void 0,Ye=q||Fe||(z&&!En(Pp(f),it=>!!AL(it,S.keyType)&&!!o6(it,oe.keyType))?z:void 0);Ye&&!wf(S.type,oe.type)&&ki(Ye,j._0_index_type_1_is_not_assignable_to_2_index_type_3,vs(S.keyType),vs(S.type),vs(oe.keyType),vs(oe.type))}}function Kde(f,S){switch(f.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":case"undefined":ki(f,S,f.escapedText)}}function Z2t(f){ne>=1&&f.escapedText==="Object"&&t.getEmitModuleFormatOfFile(Vo(f))<5&&ki(f,j.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,$Q[se])}function DKt(f){let S=Qn(S3(f),hw);if(!Z(S))return;let E=Ys(f),P=new Set,z=new Set;if(ee(f.parameters,({name:oe},Fe)=>{Ai(oe)&&P.add(oe.escapedText),Uu(oe)&&z.add(Fe)}),rst(f)){let oe=S.length-1,Fe=S[oe];E&&Fe&&Ai(Fe.name)&&Fe.typeExpression&&Fe.typeExpression.type&&!P.has(Fe.name.escapedText)&&!z.has(oe)&&!ok(al(Fe.typeExpression.type))&&ki(Fe.name,j.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,Un(Fe.name))}else ee(S,({name:oe,isNameFirst:Fe},Ye)=>{z.has(Ye)||Ai(oe)&&P.has(oe.escapedText)||(tS(oe)?E&&ki(oe,j.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,$b(oe),$b(oe.left)):Fe||lC(E,oe,j.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,Un(oe)))})}function y4e(f){let S=!1;if(f)for(let P=0;P{P.default?(S=!0,IKt(P.default,f,z)):S&&ki(P,j.Required_type_parameters_may_not_follow_optional_type_parameters);for(let q=0;qP)return!1;for(let Ye=0;YeG0(E)&&qb(E))&&To(S,j.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!f.name&&!kc(f,2048)&&c1(f,j.A_class_declaration_without_the_default_modifier_must_have_a_name),iEt(f),ee(f.members,c_),_R(f)}function iEt(f){AXt(f),a4e(f),Jde(f,f.name),y4e(h8(f)),Vde(f);let S=Bs(f),E=_m(S),P=Aw(E),z=Js(S);dlt(S),s4e(S),BGt(f),!!(f.flags&33554432)||jGt(f);let oe=HE(f);if(oe){ee(oe.typeArguments,c_),ne<2&&Ky(oe.parent,1);let it=K6(f);it&&it!==oe&&fu(it.expression);let tt=Pp(E);tt.length&&a(()=>{let It=tt[0],Pt=ha(E),yi=qS(Pt);if(LKt(yi,oe),c_(oe.expression),En(oe.typeArguments)){ee(oe.typeArguments,c_);for(let vn of Ta(yi,oe.typeArguments,oe))if(!b2t(oe,vn.typeParameters))break}let Hi=Aw(It,E.thisType);if(GS(P,Hi,void 0)?GS(z,Zkt(yi),f.name||f,j.Class_static_side_0_incorrectly_extends_base_class_static_side_1):oEt(f,P,Hi,j.Class_0_incorrectly_extends_base_class_1),Pt.flags&8650752&&(Uf(z)?kd(Pt,1).some(br=>br.flags&4)&&!kc(f,64)&&ki(f.name||f,j.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):ki(f.name||f,j.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),!(yi.symbol&&yi.symbol.flags&32)&&!(Pt.flags&8650752)){let vn=Oc(yi,oe.typeArguments,oe);ee(vn,br=>!QN(br.declaration)&&!d6(Op(br),It))&&ki(oe.expression,j.Base_constructors_must_all_have_the_same_return_type)}MKt(E,It)})}nEt(f,E,P,z);let Fe=F3(f);if(Fe)for(let it of Fe)(!Dp(it.expression)||By(it.expression))&&ki(it.expression,j.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),ibe(it),a(Ye(it));a(()=>{nze(E,S),nze(z,S,!0),Xct(f),sze(f)});function Ye(it){return()=>{let tt=lu(al(it));if(!Qe(tt))if(SP(tt)){let It=tt.symbol&&tt.symbol.flags&32?j.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:j.Class_0_incorrectly_implements_interface_1,Pt=Aw(tt,E.thisType);GS(P,Pt,void 0)||oEt(f,P,Pt,It)}else ki(it,j.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}}function nEt(f,S,E,P){let q=HE(f)&&Pp(S),oe=q?.length?Aw(of(q),S.thisType):void 0,Fe=ha(S);for(let Ye of f.members)AOe(Ye)||(yl(Ye)&&ee(Ye.parameters,it=>{OC(it,Ye)&&rEt(f,P,Fe,oe,S,E,it,!0)}),rEt(f,P,Fe,oe,S,E,Ye,!1))}function rEt(f,S,E,P,z,q,oe,Fe,Ye=!0){let it=oe.name&&pE(oe.name)||pE(oe);return it?_lt(f,S,E,P,z,q,Ase(oe),qA(oe),Xd(oe),Fe,it,Ye?oe:void 0):0}function _lt(f,S,E,P,z,q,oe,Fe,Ye,it,tt,It){let Pt=Ys(f),yi=!!(f.flags&33554432);if(P&&(oe||X.noImplicitOverride)){let Hi=Ye?S:q,vn=Ye?E:P,br=Ku(Hi,tt.escapedName),Qr=Ku(vn,tt.escapedName),ao=vs(P);if(br&&!Qr&&oe){if(It){let Ko=xTt(Bc(tt),vn);Ko?ki(It,Pt?j.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:j.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,ao,zl(Ko)):ki(It,Pt?j.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:j.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,ao)}return 2}else if(br&&Qr?.declarations&&X.noImplicitOverride&&!yi){let Ko=En(Qr.declarations,qA);if(oe)return 0;if(Ko){if(Fe&&Ko)return It&&ki(It,j.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,ao),1}else{if(It){let Zr=it?Pt?j.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:j.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:Pt?j.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:j.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;ki(It,Zr,ao)}return 1}}}else if(oe){if(It){let Hi=vs(z);ki(It,Pt?j.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:j.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,Hi)}return 2}return 0}function oEt(f,S,E,P){let z=!1;for(let q of f.members){if(Xd(q))continue;let oe=q.name&&pE(q.name)||pE(q);if(oe){let Fe=Ku(S,oe.escapedName),Ye=Ku(E,oe.escapedName);if(Fe&&Ye){let it=()=>Zl(void 0,j.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,zl(oe),vs(S),vs(E));GS(Js(Fe),Js(Ye),q.name||q,void 0,it)||(z=!0)}}}z||GS(S,E,f.name||f,P)}function LKt(f,S){let E=kd(f,1);if(E.length){let P=E[0].declaration;if(P&&zC(P,2)){let z=av(f.symbol);blt(S,z)||ki(S,j.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,l2(f.symbol))}}}function OKt(f,S,E){if(!S.name)return 0;let P=Bs(f),z=_m(P),q=Aw(z),oe=Js(P),Ye=HE(f)&&Pp(z),it=Ye?.length?Aw(of(Ye),z.thisType):void 0,tt=ha(z),It=S.parent?Ase(S):kc(S,16);return _lt(f,oe,tt,it,z,q,It,qA(S),Xd(S),!1,E)}function Cne(f){return Ag(f)&1?f.links.target:f}function FKt(f){return Qn(f.declarations,S=>S.kind===263||S.kind===264)}function MKt(f,S){var E,P,z,q,oe;let Fe=Lp(S),Ye=new Map;e:for(let it of Fe){let tt=Cne(it);if(tt.flags&4194304)continue;let It=Dz(f,tt.escapedName);if(!It)continue;let Pt=Cne(It),yi=nT(tt);if(Se.assert(!!Pt,"derived should point to something, even if it is the base class' declaration."),Pt===tt){let Hi=av(f.symbol);if(yi&64&&(!Hi||!kc(Hi,64))){for(let Ko of Pp(f)){if(Ko===S)continue;let Zr=Dz(Ko,tt.escapedName),jr=Zr&&Cne(Zr);if(jr&&jr!==tt)continue e}let vn=vs(S),br=vs(f),Qr=zl(it),ao=ar((E=Ye.get(Hi))==null?void 0:E.missedProperties,Qr);Ye.set(Hi,{baseTypeName:vn,typeName:br,missedProperties:ao})}}else{let Hi=nT(Pt);if(yi&2||Hi&2)continue;let vn,br=tt.flags&98308,Qr=Pt.flags&98308;if(br&&Qr){if((Ag(tt)&6?(P=tt.declarations)!=null&&P.some(Zr=>rze(Zr,yi)):(z=tt.declarations)!=null&&z.every(Zr=>rze(Zr,yi)))||Ag(tt)&262144||Pt.valueDeclaration&&ms(Pt.valueDeclaration))continue;let ao=br!==4&&Qr===4;if(ao||br===4&&Qr!==4){let Zr=ao?j._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:j._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;ki(Nu(Pt.valueDeclaration)||Pt.valueDeclaration,Zr,zl(tt),vs(S),vs(f))}else if(ae){let Zr=(q=Pt.declarations)==null?void 0:q.find(jr=>jr.kind===172&&!jr.initializer);if(Zr&&!(Pt.flags&33554432)&&!(yi&64)&&!(Hi&64)&&!((oe=Pt.declarations)!=null&&oe.some(jr=>!!(jr.flags&33554432)))){let jr=vk(av(f.symbol)),Ss=Zr.name;if(Zr.exclamationToken||!jr||!Ai(Ss)||!xe||!lze(Ss,f,jr)){let Ds=j.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration;ki(Nu(Pt.valueDeclaration)||Pt.valueDeclaration,Ds,zl(tt),vs(S))}}}continue}else if(DPe(tt)){if(DPe(Pt)||Pt.flags&4)continue;Se.assert(!!(Pt.flags&98304)),vn=j.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else tt.flags&98304?vn=j.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:vn=j.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;ki(Nu(Pt.valueDeclaration)||Pt.valueDeclaration,vn,vs(S),zl(tt),vs(f))}}for(let[it,tt]of Ye)if(Z(tt.missedProperties)===1)Qh(it)?ki(it,j.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,of(tt.missedProperties),tt.baseTypeName):ki(it,j.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,tt.typeName,of(tt.missedProperties),tt.baseTypeName);else if(Z(tt.missedProperties)>5){let It=$i(tt.missedProperties.slice(0,4),yi=>`'${yi}'`).join(", "),Pt=Z(tt.missedProperties)-4;Qh(it)?ki(it,j.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more,tt.baseTypeName,It,Pt):ki(it,j.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more,tt.typeName,tt.baseTypeName,It,Pt)}else{let It=$i(tt.missedProperties,Pt=>`'${Pt}'`).join(", ");Qh(it)?ki(it,j.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1,tt.baseTypeName,It):ki(it,j.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2,tt.typeName,tt.baseTypeName,It)}}function rze(f,S){return S&64&&(!vu(f)||!f.initializer)||ky(f.parent)}function RKt(f,S,E){if(!Z(S))return E;let P=new Map;ee(E,z=>{P.set(z.escapedName,z)});for(let z of S){let q=Lp(Aw(z,f.thisType));for(let oe of q){let Fe=P.get(oe.escapedName);Fe&&oe.parent===Fe.parent&&P.delete(oe.escapedName)}}return tc(P.values())}function oze(f,S){let E=Pp(f);if(E.length<2)return!0;let P=new Map;ee(Wve(f).declaredProperties,q=>{P.set(q.escapedName,{prop:q,containingType:f})});let z=!0;for(let q of E){let oe=Lp(Aw(q,f.thisType));for(let Fe of oe){let Ye=P.get(Fe.escapedName);if(!Ye)P.set(Fe.escapedName,{prop:Fe,containingType:q});else if(Ye.containingType!==f&&!awt(Ye.prop,Fe)){z=!1;let tt=vs(Ye.containingType),It=vs(q),Pt=Zl(void 0,j.Named_property_0_of_types_1_and_2_are_not_identical,zl(Fe),tt,It);Pt=Zl(Pt,j.Interface_0_cannot_simultaneously_extend_types_1_and_2,vs(f),tt,It),Gu.add(WT(Vo(S),S,Pt))}}}return z}function sze(f){if(!xe||!fe||f.flags&33554432)return;let S=vk(f);for(let E of f.members)if(!(A_(E)&128)&&!Xd(E)&&aze(E)){let P=E.name;if(Ai(P)||wl(P)||f_(P)){let z=Js(Bs(E));z.flags&3||iq(z)||(!S||!lze(P,z,S))&&ki(E.name,j.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,Gf(P))}}}function aze(f){return f.kind===172&&!qA(f)&&!f.exclamationToken&&!f.initializer}function cze(f,S,E,P,z){for(let q of E)if(q.pos>=P&&q.pos<=z){let oe=Me.createPropertyAccessExpression(Me.createThis(),f);dp(oe.expression,oe),dp(oe,q),oe.flowNode=q.returnFlowNode;let Fe=zL(oe,S,aR(S));if(!iq(Fe))return!0}return!1}function lze(f,S,E){let P=f_(f)?Me.createElementAccessExpression(Me.createThis(),f.expression):Me.createPropertyAccessExpression(Me.createThis(),f);dp(P.expression,P),dp(P,E),P.flowNode=E.returnFlowNode;let z=zL(P,S,aR(S));return!iq(z)}function BKt(f){qL(f)||REt(f),y4e(f.typeParameters),a(()=>{Kde(f.name,j.Interface_name_cannot_be_0),Vde(f);let S=Bs(f);dlt(S);let E=Kp(S,264);if(f===E){let P=_m(S),z=Aw(P);if(oze(P,f.name)){for(let q of Pp(P))GS(z,Aw(q,P.thisType),f.name,j.Interface_0_incorrectly_extends_interface_1);nze(P,S)}}m2t(f)}),ee(xG(f),S=>{(!Dp(S.expression)||By(S.expression))&&ki(S.expression,j.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),ibe(S)}),ee(f.members,c_),a(()=>{Xct(f),_R(f)})}function jKt(f){if(qL(f),Kde(f.name,j.Type_alias_name_cannot_be_0),Vde(f),y4e(f.typeParameters),f.type.kind===141){let S=Z(f.typeParameters);(S===0?f.name.escapedText==="BuiltinIteratorReturn":S===1&>e.has(f.name.escapedText))||ki(f.type,j.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types)}else c_(f.type),_R(f)}function sEt(f){let S=ra(f);if(!(S.flags&1024)){S.flags|=1024;let E=0,P;for(let z of f.members){let q=WKt(z,E,P);ra(z).enumMemberValue=q,E=typeof q.value=="number"?q.value+1:void 0,P=z}}}function WKt(f,S,E){if(Ep(f.name))ki(f.name,j.Computed_property_names_are_not_allowed_in_enums);else{let P=k8(f.name);nL(P)&&!GG(P)&&ki(f.name,j.An_enum_member_cannot_have_a_numeric_name)}if(f.initializer)return zKt(f);if(f.parent.flags&33554432&&!jy(f.parent))return bg(void 0);if(S===void 0)return ki(f.name,j.Enum_member_must_have_initializer),bg(void 0);if($E(X)&&E?.initializer){let P=Eq(E);typeof P.value=="number"&&!P.resolvedOtherFiles||ki(f.name,j.Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled)}return bg(S)}function zKt(f){let S=jy(f.parent),E=f.initializer,P=_t(E,f);return P.value!==void 0?S&&typeof P.value=="number"&&!isFinite(P.value)?ki(E,isNaN(P.value)?j.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:j.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):$E(X)&&typeof P.value=="string"&&!P.isSyntacticallyString&&ki(E,j._0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled,`${Un(f.parent.name)}.${k8(f.name)}`):S?ki(E,j.const_enum_member_initializers_must_be_constant_expressions):f.parent.flags&33554432?ki(E,j.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):GS(fu(E),Fi,E,j.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),P}function hbe(f,S){let E=zf(f,111551,!0);if(!E)return bg(void 0);if(f.kind===80){let P=f;if(GG(P.escapedText)&&E===z9(P.escapedText,111551,void 0))return bg(+P.escapedText,!1)}if(E.flags&8)return S?aEt(f,E,S):Eq(E.valueDeclaration);if(_q(E)){let P=E.valueDeclaration;if(P&&$c(P)&&!P.type&&P.initializer&&(!S||P!==S&&W_(P,S))){let z=_t(P.initializer,P);return S&&Vo(S)!==Vo(P)?bg(z.value,!1,!0,!0):bg(z.value,z.isSyntacticallyString,z.resolvedOtherFiles,!0)}}return bg(void 0)}function VKt(f,S){let E=f.expression;if(Dp(E)&&i_(f.argumentExpression)){let P=zf(E,111551,!0);if(P&&P.flags&384){let z=kh(f.argumentExpression.text),q=P.exports.get(z);if(q)return Se.assert(Vo(q.valueDeclaration)===Vo(P.valueDeclaration)),S?aEt(f,q,S):Eq(q.valueDeclaration)}}return bg(void 0)}function aEt(f,S,E){let P=S.valueDeclaration;if(!P||P===E)return ki(f,j.Property_0_is_used_before_being_assigned,zl(S)),bg(void 0);if(!W_(P,E))return ki(f,j.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),bg(0);let z=Eq(P);return E.parent!==P.parent?bg(z.value,z.isSyntacticallyString,z.resolvedOtherFiles,!0):z}function HKt(f){a(()=>cEt(f))}function cEt(f){qL(f),Jde(f,f.name),Vde(f),f.members.forEach(uze),sEt(f);let S=Bs(f),E=Kp(S,f.kind);if(f===E){if(S.declarations&&S.declarations.length>1){let z=jy(f);ee(S.declarations,q=>{Z8(q)&&jy(q)!==z&&ki(Nu(q),j.Enum_declarations_must_all_be_const_or_non_const)})}let P=!1;ee(S.declarations,z=>{if(z.kind!==266)return!1;let q=z;if(!q.members.length)return!1;let oe=q.members[0];oe.initializer||(P?ki(oe.name,j.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):P=!0)})}}function uze(f){wl(f.name)&&ki(f,j.An_enum_member_cannot_be_named_with_a_private_identifier),f.initializer&&fu(f.initializer)}function b_(f){let S=f.declarations;if(S){for(let E of S)if((E.kind===263||E.kind===262&&jT(E.body))&&!(E.flags&33554432))return E}}function UKt(f,S){let E=Xw(f),P=Xw(S);return w8(E)?w8(P):w8(P)?!1:E===P}function lEt(f){f.body&&(c_(f.body),y4(f)||_R(f)),a(S);function S(){var E,P;let z=y4(f),q=f.flags&33554432;z&&!q&&ki(f.name,j.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);let oe=nb(f),Fe=oe?j.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:j.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(v4e(f,Fe))return;if(qL(f)||!q&&f.name.kind===11&&To(f.name,j.Only_ambient_modules_can_use_quoted_names),Ai(f.name)&&(Jde(f,f.name),!(f.flags&2080))){let it=Vo(f),tt=l5(f),It=XD(it,tt);pT.add(k_(it,It.start,It.length,j.A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead))}Vde(f);let Ye=Bs(f);if(Ye.flags&512&&!q&&Yhe(f,ph(X))){if($E(X)&&!Vo(f).externalModuleIndicator&&ki(f.name,j.Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement,ni),((E=Ye.declarations)==null?void 0:E.length)>1){let it=b_(Ye);it&&(Vo(f)!==Vo(it)?ki(f.name,j.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):f.postt.kind===95);it&&ki(it,j.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(oe)if(j7(f)){if((z||Bs(f).flags&33554432)&&f.body)for(let tt of f.body.statements)dze(tt,z)}else w8(f.parent)?z?ki(f.name,j.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):l0(jC(f.name))&&ki(f.name,j.Ambient_module_declaration_cannot_specify_relative_module_name):z?ki(f.name,j.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):ki(f.name,j.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}}function dze(f,S){switch(f.kind){case 243:for(let P of f.declarationList.declarations)dze(P,S);break;case 277:case 278:c1(f,j.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 271:if(y5(f))break;case 272:c1(f,j.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 208:case 260:let E=f.name;if(Uu(E)){for(let P of E.elements)dze(P,S);break}case 263:case 266:case 262:case 264:case 267:case 265:if(S)return;break}}function JKt(f){switch(f.kind){case 80:return f;case 166:do f=f.left;while(f.kind!==80);return f;case 211:do{if(cN(f.expression)&&!wl(f.name))return f.name;f=f.expression}while(f.kind!==80);return f}}function fze(f){let S=Tj(f);if(!S||Mm(S))return!1;if(!Kf(S))return ki(S,j.String_literal_expected),!1;let E=f.parent.kind===268&&nb(f.parent.parent);if(f.parent.kind!==307&&!E)return ki(S,f.kind===278?j.Export_declarations_are_not_permitted_in_a_namespace:j.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(E&&l0(S.text)&&!Wk(f))return ki(f,j.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!pf(f)&&f.attributes){let P=f.attributes.token===118?j.Import_attribute_values_must_be_string_literal_expressions:j.Import_assertion_values_must_be_string_literal_expressions,z=!1;for(let q of f.attributes.elements)Kf(q.value)||(z=!0,ki(q.value,P));return!z}return!0}function dB(f,S=!0){f===void 0||f.kind!==11||(S?(se===5||se===6)&&To(f,j.String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020):To(f,j.Identifier_expected))}function _ze(f){var S,E,P,z;let q=Bs(f),oe=oy(q);if(oe!==St){if(q=Vf(q.exportSymbol||q),Ys(f)&&!(oe.flags&111551)&&!j6(f)){let it=I2(f)?f.propertyName||f.name:xf(f)?f.name:f;if(Se.assert(f.kind!==280),f.kind===281){let tt=ki(it,j.Types_cannot_appear_in_export_declarations_in_JavaScript_files),It=(E=(S=Vo(f).symbol)==null?void 0:S.exports)==null?void 0:E.get(x8(f.propertyName||f.name));if(It===oe){let Pt=(P=It.declarations)==null?void 0:P.find(gZ);Pt&&Pd(tt,ws(Pt,j._0_is_automatically_exported_here,Ba(It.escapedName)))}}else{Se.assert(f.kind!==260);let tt=go(f,ow(Dd,pf)),It=(tt&&((z=J7(tt))==null?void 0:z.text))??"...",Pt=Ba(Ai(it)?it.escapedText:q.escapedName);ki(it,j._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,Pt,`import("${It}").${Pt}`)}return}let Fe=qy(oe),Ye=(q.flags&1160127?111551:0)|(q.flags&788968?788968:0)|(q.flags&1920?1920:0);if(Fe&Ye){let it=f.kind===281?j.Export_declaration_conflicts_with_exported_declaration_of_0:j.Import_declaration_conflicts_with_local_declaration_of_0;ki(f,it,zl(q))}else f.kind!==281&&X.isolatedModules&&!go(f,j6)&&q.flags&1160127&&ki(f,j.Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,zl(q),ni);if($E(X)&&!j6(f)&&!(f.flags&33554432)){let it=vT(q),tt=!(Fe&111551);if(tt||it)switch(f.kind){case 273:case 276:case 271:{if(X.verbatimModuleSyntax){Se.assertIsDefined(f.name,"An ImportClause with a symbol should have a name");let It=X.verbatimModuleSyntax&&y5(f)?j.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:tt?j._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:j._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled,Pt=Kw(f.kind===276&&f.propertyName||f.name);Q4(ki(f,It,Pt),tt?void 0:it,Pt)}tt&&f.kind===271&&zC(f,32)&&ki(f,j.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,ni);break}case 281:if(X.verbatimModuleSyntax||Vo(it)!==Vo(f)){let It=Kw(f.propertyName||f.name),Pt=tt?ki(f,j.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,ni):ki(f,j._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,It,ni);Q4(Pt,tt?void 0:it,It);break}}if(X.verbatimModuleSyntax&&f.kind!==271&&!Ys(f)&&t.getEmitModuleFormatOfFile(Vo(f))===1?ki(f,j.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled):se===200&&f.kind!==271&&f.kind!==260&&t.getEmitModuleFormatOfFile(Vo(f))===1&&ki(f,j.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve),X.verbatimModuleSyntax&&!j6(f)&&!(f.flags&33554432)&&Fe&128){let It=oe.valueDeclaration,Pt=t.getRedirectReferenceForResolutionFromSourceOfProject(Vo(It).resolvedPath);It.flags&33554432&&(!Pt||!ph(Pt.commandLine.options))&&ki(f,j.Cannot_access_ambient_const_enums_when_0_is_enabled,ni)}}if(eg(f)){let it=plt(q,f);Rk(it)&&it.declarations&&Ex(f,it.declarations,it.escapedName)}}}function plt(f,S){if(!(f.flags&2097152)||Rk(f)||!Uh(f))return f;let E=oy(f);if(E===St)return E;for(;f.flags&2097152;){let P=N1e(f);if(P){if(P===E)break;if(P.declarations&&Z(P.declarations))if(Rk(P)){Ex(S,P.declarations,P.escapedName);break}else{if(f===E)break;f=P}}else break}return E}function pze(f){Jde(f,f.name),_ze(f),f.kind===276&&(dB(f.propertyName),MC(f.propertyName||f.name)&&GE(X)&&t.getEmitModuleFormatOfFile(Vo(f))<4&&Ky(f,131072))}function mze(f){var S;let E=f.attributes;if(E){let P=NAe(!0);P!==ja&&GS(Ll(E),m1e(P,32768),E);let z=M2e(f),q=LW(E,z?To:void 0),oe=f.attributes.token===118;if(z&&q)return;if((se===199&&f.moduleSpecifier&&kb(f.moduleSpecifier))!==99&&se!==99&&se!==200){let it=oe?se===199?j.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:j.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:se===199?j.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:j.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve;return To(E,it)}if(cT(f)||(Dd(f)?(S=f.importClause)==null?void 0:S.isTypeOnly:f.isTypeOnly))return To(E,oe?j.Import_attributes_cannot_be_used_with_type_only_imports_or_exports:j.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(q)return To(E,j.resolution_mode_can_only_be_set_for_type_only_imports)}}function uEt(f){return Ig(r0(f.value))}function qKt(f){if(!v4e(f,Ys(f)?j.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:j.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!qL(f)&&f.modifiers&&c1(f,j.An_import_declaration_cannot_have_modifiers),fze(f)){let S=f.importClause;S&&!et(S)?(S.name&&pze(S),S.namedBindings&&(S.namedBindings.kind===274?(pze(S.namedBindings),t.getEmitModuleFormatOfFile(Vo(f))<4&&GE(X)&&Ky(f,65536)):Gy(f,f.moduleSpecifier)&&ee(S.namedBindings.elements,pze))):Re&&!S&&Gy(f,f.moduleSpecifier)}mze(f)}}function dEt(f){if(!v4e(f,Ys(f)?j.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:j.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(qL(f),y5(f)||fze(f)))if(pze(f),vY(f,6),f.moduleReference.kind!==283){let S=oy(Bs(f));if(S!==St){let E=qy(S);if(E&111551){let P=fx(f.moduleReference);zf(P,112575).flags&1920||ki(P,j.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,Gf(P))}E&788968&&Kde(f.name,j.Import_name_cannot_be_0)}f.isTypeOnly&&To(f,j.An_import_alias_cannot_use_import_type)}else 5<=se&&se<=99&&!f.isTypeOnly&&!(f.flags&33554432)&&To(f,j.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}function mlt(f){if(!v4e(f,Ys(f)?j.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:j.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!qL(f)&&swe(f)&&c1(f,j.An_export_declaration_cannot_have_modifiers),hlt(f),!f.moduleSpecifier||fze(f))if(f.exportClause&&!vm(f.exportClause)){ee(f.exportClause.elements,$Kt);let S=f.parent.kind===268&&nb(f.parent.parent),E=!S&&f.parent.kind===268&&!f.moduleSpecifier&&f.flags&33554432;f.parent.kind!==307&&!S&&!E&&ki(f,j.Export_declarations_are_not_permitted_in_a_namespace)}else{let S=Gy(f,f.moduleSpecifier);S&&FN(S)?ki(f.moduleSpecifier,j.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,zl(S)):f.exportClause&&(_ze(f.exportClause),dB(f.exportClause.name)),t.getEmitModuleFormatOfFile(Vo(f))<4&&(f.exportClause?GE(X)&&Ky(f,65536):Ky(f,32768))}mze(f)}}function hlt(f){var S;return f.isTypeOnly&&((S=f.exportClause)==null?void 0:S.kind)===279?ot(f.exportClause):!1}function v4e(f,S){let E=f.parent.kind===307||f.parent.kind===268||f.parent.kind===267;return E||c1(f,S),!E}function $Kt(f){_ze(f);let S=f.parent.parent.moduleSpecifier!==void 0;if(dB(f.propertyName,S),dB(f.name),fw(X)&&z_(f.propertyName||f.name,!0),S)GE(X)&&t.getEmitModuleFormatOfFile(Vo(f))<4&&MC(f.propertyName||f.name)&&Ky(f,131072);else{let E=f.propertyName||f.name;if(E.kind===11)return;let P=Ei(E,E.escapedText,2998271,void 0,!0);P&&(P===mt||P===ut||P.declarations&&w8(di(P.declarations[0])))?ki(E,j.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,Un(E)):vY(f,7)}}function GKt(f){let S=f.isExportEquals?j.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:j.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration;if(v4e(f,S))return;let E=f.parent.kind===307?f.parent:f.parent.parent;if(E.kind===267&&!nb(E)){f.isExportEquals?ki(f,j.An_export_assignment_cannot_be_used_in_a_namespace):ki(f,j.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}!qL(f)&&NOe(f)&&c1(f,j.An_export_assignment_cannot_have_modifiers);let P=gm(f);P&&GS(r0(f.expression),al(P),f.expression);let z=!f.isExportEquals&&!(f.flags&33554432)&&X.verbatimModuleSyntax&&t.getEmitModuleFormatOfFile(Vo(f))===1;if(f.expression.kind===80){let q=f.expression,oe=Jh(zf(q,-1,!0,!0,f));if(oe){vY(f,3);let Fe=vT(oe,111551);if(qy(oe)&111551?(r0(q),!z&&!(f.flags&33554432)&&X.verbatimModuleSyntax&&Fe&&ki(q,f.isExportEquals?j.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:j.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,Un(q))):!z&&!(f.flags&33554432)&&X.verbatimModuleSyntax&&ki(q,f.isExportEquals?j.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:j.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,Un(q)),!z&&!(f.flags&33554432)&&$E(X)&&!(oe.flags&111551)){let Ye=qy(oe,!1,!0);oe.flags&2097152&&Ye&788968&&!(Ye&111551)&&(!Fe||Vo(Fe)!==Vo(f))?ki(q,f.isExportEquals?j._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:j._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,Un(q),ni):Fe&&Vo(Fe)!==Vo(f)&&Q4(ki(q,f.isExportEquals?j._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:j._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,Un(q),ni),Fe,Un(q))}}else r0(q);fw(X)&&z_(q,!0)}else r0(f.expression);z&&ki(f,j.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled),glt(E),f.flags&33554432&&!Dp(f.expression)&&To(f.expression,j.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),f.isExportEquals&&(se>=5&&se!==200&&(f.flags&33554432&&t.getImpliedNodeFormatForEmit(Vo(f))===99||!(f.flags&33554432)&&t.getImpliedNodeFormatForEmit(Vo(f))!==1)?To(f,j.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):se===4&&!(f.flags&33554432)&&To(f,j.Export_assignment_is_not_supported_when_module_flag_is_system))}function KKt(f){return Km(f.exports,(S,E)=>E!=="export=")}function glt(f){let S=Bs(f),E=Nl(S);if(!E.exportsChecked){let P=S.exports.get("export=");if(P&&KKt(S)){let q=Uh(P)||P.valueDeclaration;q&&!Wk(q)&&!Ys(q)&&ki(q,j.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}let z=ik(S);z&&z.forEach(({declarations:q,flags:oe},Fe)=>{if(Fe==="__export"||oe&1920)return;let Ye=Tn(q,wv(oFe,voe(ky)));if(!(oe&524288&&Ye<=2)&&Ye>1&&!hze(q))for(let it of q)g0t(it)&&Gu.add(ws(it,j.Cannot_redeclare_exported_variable_0,Ba(Fe)))}),E.exportsChecked=!0}}function hze(f){return f&&f.length>1&&f.every(S=>Ys(S)&&cf(S)&&(PH(S.expression)||cN(S.expression)))}function c_(f){if(f){let S=H;H=f,A=0,XKt(f),H=S}}function XKt(f){if(Tq(f)&8388608)return;gG(f)&&ee(f.jsDoc,({comment:E,tags:P})=>{gze(E),ee(P,z=>{gze(z.comment),Ys(f)&&c_(z)})});let S=f.kind;if(u)switch(S){case 267:case 263:case 264:case 262:u.throwIfCancellationRequested()}switch(S>=243&&S<=259&&vse(f)&&f.flowNode&&!fq(f.flowNode)&&lC(X.allowUnreachableCode===!1,f,j.Unreachable_code_detected),S){case 168:return _2t(f);case 169:return n4e(f);case 172:return h2t(f);case 171:return WGt(f);case 185:case 184:case 179:case 180:case 181:return bne(f);case 174:case 173:return g2t(f);case 175:return zGt(f);case 176:return VGt(f);case 177:case 178:return v2t(f);case 183:return ibe(f);case 182:return p2t(f);case 186:return qGt(f);case 187:return Bde(f);case 188:return rbe(f);case 189:return obe(f);case 192:case 193:return x2t(f);case 196:case 190:case 191:return c_(f.type);case 197:return GGt(f);case 198:return xq(f);case 194:return VF(f);case 195:return KGt(f);case 203:return XGt(f);case 205:return YGt(f);case 202:return sbe(f);case 328:return aKt(f);case 329:return KWe(f);case 346:case 338:case 340:return elt(f);case 345:return tlt(f);case 344:return c4e(f);case 324:case 325:case 326:return rKt(f);case 341:return E2t(f);case 348:return oKt(f);case 317:l4e(f);case 315:case 314:case 312:case 313:case 322:fEt(f),_d(f,c_);return;case 318:yze(f);return;case 309:return c_(f.type);case 333:case 335:case 334:return ube(f);case 350:return T2t(f);case 343:return D2t(f);case 351:return sKt(f);case 199:return jde(f);case 200:return C2t(f);case 262:return nKt(f);case 241:case 268:return XWe(f);case 243:return UL(f);case 244:return QWe(f);case 245:return olt(f);case 246:return R2t(f);case 247:return B2t(f);case 248:return j2t(f);case 249:return vKt(f);case 250:return W2t(f);case 251:case 252:return kKt(f);case 253:return K2t(f);case 254:return wKt(f);case 255:return X2t(f);case 256:return Y2t(f);case 257:return Q2t(f);case 258:return TKt(f);case 260:return JF(f);case 208:return F2t(f);case 263:return PKt(f);case 264:return BKt(f);case 265:return jKt(f);case 266:return HKt(f);case 267:return lEt(f);case 272:return qKt(f);case 271:return dEt(f);case 278:return mlt(f);case 277:return GKt(f);case 242:case 259:O(f);return;case 282:return UGt(f)}}function gze(f){ua(f)&&ee(f,S=>{ib(S)&&c_(S)})}function fEt(f){if(!Ys(f))if(uW(f)||SN(f)){let S=Ef(uW(f)?54:58),E=f.postfix?j._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:j._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,P=f.type,z=al(P);To(f,E,S,vs(SN(f)&&!(z===Wi||z===Pn)?Fc(ar([z,ye],f.postfix?void 0:si)):z))}else To(f,j.JSDoc_types_can_only_be_used_inside_documentation_comments)}function yze(f){fEt(f),c_(f.type);let{parent:S}=f;if(Fl(S)&&CU(S.parent)){Bu(S.parent.parameters)!==S&&ki(f,j.A_rest_parameter_must_be_last_in_a_parameter_list);return}lv(S)||ki(f,j.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);let E=f.parent.parent;if(!hw(E)){ki(f,j.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}let P=vG(E);if(!P)return;let z=P3(E);(!z||Bu(z.parameters).symbol!==P)&&ki(f,j.A_rest_parameter_must_be_last_in_a_parameter_list)}function YKt(f){let S=al(f.type),{parent:E}=f,P=f.parent.parent;if(lv(f.parent)&&hw(P)){let z=P3(P),q=gee(P.parent.parent);if(z||q){let oe=Y_(q?P.parent.parent.typeExpression.parameters:z.parameters),Fe=vG(P);if(!oe||Fe&&oe.symbol===Fe&&RS(oe))return vS(S)}}return Fl(E)&&CU(E.parent)?vS(S):Eg(S)}function AY(f){let S=Vo(f),E=ra(S);E.flags&1?Se.assert(!E.deferredNodes,"A type-checked file should have no deferred nodes."):(E.deferredNodes||(E.deferredNodes=new Set),E.deferredNodes.add(f))}function _Et(f){let S=ra(f);S.deferredNodes&&S.deferredNodes.forEach(pEt),S.deferredNodes=void 0}function pEt(f){var S,E;(S=us)==null||S.push(us.Phase.Check,"checkDeferredNode",{kind:f.kind,pos:f.pos,end:f.end,path:f.tracingPath});let P=H;switch(H=f,A=0,f.kind){case 213:case 214:case 215:case 170:case 286:Yz(f);break;case 218:case 219:case 174:case 173:K1e(f);break;case 177:case 178:v2t(f);break;case 231:tEt(f);break;case 168:MGt(f);break;case 285:P$t(f);break;case 284:O$t(f);break;case 216:case 234:case 217:uGt(f);break;case 222:fu(f.expression);break;case 226:GA(f)&&Yz(f);break}H=P,(E=us)==null||E.pop()}function mEt(f,S){var E,P;(E=us)==null||E.push(us.Phase.Check,S?"checkSourceFileNodes":"checkSourceFile",{path:f.path},!0);let z=S?"beforeCheckNodes":"beforeCheck",q=S?"afterCheckNodes":"afterCheck";Lm(z),S?ZKt(f,S):QKt(f),Lm(q),Ub("Check",z,q),(P=us)==null||P.pop()}function gbe(f,S){if(S)return!1;switch(f){case 0:return!!X.noUnusedLocals;case 1:return!!X.noUnusedParameters;default:return Se.assertNever(f)}}function _E(f){return iy.get(f.path)||F}function QKt(f){let S=ra(f);if(!(S.flags&1)){if(W8(f,X,t))return;D(f),La(lf),La(s2),La(wx),La(kw),La(QC),S.flags&8388608&&(lf=S.potentialThisCollisions,s2=S.potentialNewTargetCollisions,wx=S.potentialWeakMapSetCollisions,kw=S.potentialReflectCollisions,QC=S.potentialUnusedRenamedBindingElementsInTypes),ee(f.statements,c_),c_(f.endOfFileToken),_Et(f),Jv(f)&&_R(f),a(()=>{!f.isDeclarationFile&&(X.noUnusedLocals||X.noUnusedParameters)&&A2t(_E(f),(E,P,z)=>{!B7(E)&&gbe(P,!!(E.flags&33554432))&&Gu.add(z)}),f.isDeclarationFile||uKt()}),Jv(f)&&glt(f),lf.length&&(ee(lf,_Kt),La(lf)),s2.length&&(ee(s2,pKt),La(s2)),wx.length&&(ee(wx,Ude),La(wx)),kw.length&&(ee(kw,yKt),La(kw)),S.flags|=1}}function ZKt(f,S){let E=ra(f);if(!(E.flags&1)){if(W8(f,X,t))return;D(f),La(lf),La(s2),La(wx),La(kw),La(QC),ee(S,c_),_Et(f),(E.potentialThisCollisions||(E.potentialThisCollisions=[])).push(...lf),(E.potentialNewTargetCollisions||(E.potentialNewTargetCollisions=[])).push(...s2),(E.potentialWeakMapSetCollisions||(E.potentialWeakMapSetCollisions=[])).push(...wx),(E.potentialReflectCollisions||(E.potentialReflectCollisions=[])).push(...kw),(E.potentialUnusedRenamedBindingElementsInTypes||(E.potentialUnusedRenamedBindingElementsInTypes=[])).push(...QC),E.flags|=8388608;for(let P of S){let z=ra(P);z.flags|=8388608}}}function hEt(f,S,E){try{return u=S,eXt(f,E)}finally{u=void 0}}function tV(){for(let f of n)f();n=[]}function ybe(f,S){tV();let E=a;a=P=>P(),mEt(f,S),a=E}function eXt(f,S){if(f){tV();let E=Gu.getGlobalDiagnostics(),P=E.length;ybe(f,S);let z=Gu.getDiagnostics(f.fileName);if(S)return z;let q=Gu.getGlobalDiagnostics();if(q!==E){let oe=ea(E,q,FG);return Pl(oe,z)}else if(P===0&&q.length>0)return Pl(q,z);return z}return ee(t.getSourceFiles(),E=>ybe(E)),Gu.getDiagnostics()}function ylt(){return tV(),Gu.getGlobalDiagnostics()}function gEt(f,S){if(f.flags&67108864)return[];let E=Au(),P=!1;return z(),E.delete("this"),QX(E);function z(){for(;f;){switch(zE(f)&&f.locals&&!w8(f)&&oe(f.locals,S),f.kind){case 307:if(!Mg(f))break;case 267:Fe(Bs(f).exports,S&2623475);break;case 266:oe(Bs(f).exports,S&8);break;case 231:f.name&&q(f.symbol,S);case 263:case 264:P||oe(ZM(Bs(f)),S&788968);break;case 218:f.name&&q(f.symbol,S);break}Qke(f)&&q(ht,S),P=Xd(f),f=f.parent}oe(ft,S)}function q(Ye,it){if(R8(Ye)&it){let tt=Ye.escapedName;E.has(tt)||E.set(tt,Ye)}}function oe(Ye,it){it&&Ye.forEach(tt=>{q(tt,it)})}function Fe(Ye,it){it&&Ye.forEach(tt=>{!Kp(tt,281)&&!Kp(tt,280)&&tt.escapedName!=="default"&&q(tt,it)})}}function yEt(f){return f.kind===80&&Xj(f.parent)&&Nu(f.parent)===f}function vze(f){for(;f.parent.kind===166;)f=f.parent;return f.parent.kind===183}function bze(f){for(;f.parent.kind===211;)f=f.parent;return f.parent.kind===233}function vlt(f,S){let E,P=vy(f);for(;P&&!(E=S(P));)P=vy(P);return E}function tXt(f){return!!go(f,S=>yl(S)&&jT(S.body)||vu(S)?!0:bc(S)||Rp(S)?"quit":!1)}function blt(f,S){return!!vlt(f,E=>E===S)}function iXt(f){for(;f.parent.kind===166;)f=f.parent;if(f.parent.kind===271)return f.parent.moduleReference===f?f.parent:void 0;if(f.parent.kind===277)return f.parent.expression===f?f.parent:void 0}function Sze(f){return iXt(f)!==void 0}function nXt(f){switch(wh(f.parent.parent)){case 1:case 3:return Hm(f.parent);case 5:if(ba(f.parent)&&rU(f.parent)===f)return;case 4:case 2:return Bs(f.parent.parent)}}function rXt(f){let S=f.parent;for(;tS(S);)f=S,S=S.parent;if(S&&S.kind===205&&S.qualifier===f)return S}function oXt(f){if(f.expression.kind===110){let S=Kb(f,!1,!1);if(iu(S)){let E=tWe(S);if(E){let P=fR(E,void 0),z=$wt(E,P);return z&&!qr(z)}}}}function Slt(f){if(VT(f))return Hm(f.parent);if(Ys(f)&&f.parent.kind===211&&f.parent===f.parent.parent.left&&!wl(f)&&!hh(f)&&!oXt(f.parent)){let S=nXt(f);if(S)return S}if(f.parent.kind===277&&Dp(f)){let S=zf(f,2998271,!0);if(S&&S!==St)return S}else if(tb(f)&&Sze(f)){let S=M2(f,271);return Se.assert(S!==void 0),$y(f,!0)}if(tb(f)){let S=rXt(f);if(S){al(S);let E=ra(f).resolvedSymbol;return E===St?void 0:E}}for(;LOe(f);)f=f.parent;if(bze(f)){let S=0;f.parent.kind===233?(S=jA(f)?788968:111551,Ose(f.parent)&&(S|=111551)):S=1920,S|=2097152;let E=Dp(f)?zf(f,S,!0):void 0;if(E)return E}if(f.parent.kind===341)return vG(f.parent);if(f.parent.kind===168&&f.parent.parent.kind===345){Se.assert(!Ys(f));let S=I8(f.parent);return S&&S.symbol}if(ab(f)){if(Mm(f))return;let S=go(f,ow(ib,F4,hh)),E=S?901119:111551;if(f.kind===80){if(T8(f)&&SY(f)){let z=fWe(f.parent);return z===St?void 0:z}let P=zf(f,E,!0,!0,P3(f));if(!P&&S){let z=go(f,ow(bc,ky));if(z)return b4e(f,!0,Bs(z))}if(P&&S){let z=L3(f);if(z&&pb(z)&&z===P.valueDeclaration)return zf(f,E,!0,!0,Vo(z))||P}return P}else{if(wl(f))return F1e(f);if(f.kind===211||f.kind===166){let P=ra(f);return P.resolvedSymbol?P.resolvedSymbol:(f.kind===211?(hWe(f,0),P.resolvedSymbol||(P.resolvedSymbol=vEt(r0(f.expression),wO(f.name)))):pTt(f,0),!P.resolvedSymbol&&S&&tS(f)?b4e(f):P.resolvedSymbol)}else if(hh(f))return b4e(f)}}else if(vze(f)){let S=f.parent.kind===183?788968:1920,E=zf(f,S,!1,!0);return E&&E!==St?E:DAe(f)}if(f.parent.kind===182)return zf(f,1)}function vEt(f,S){let E=wI(f,S);if(E.length&&f.members){let P=$ie(UN(f).members);if(E===o1(f))return P;if(P){let z=Nl(P),q=Dc(E,Fe=>Fe.declaration),oe=$i(q,pp).join(",");if(z.filteredIndexSymbolCache||(z.filteredIndexSymbolCache=new Map),z.filteredIndexSymbolCache.has(oe))return z.filteredIndexSymbolCache.get(oe);{let Fe=Ou(131072,"__index");return Fe.declarations=Dc(E,Ye=>Ye.declaration),Fe.parent=f.aliasSymbol?f.aliasSymbol:f.symbol?f.symbol:pE(Fe.declarations[0].parent),z.filteredIndexSymbolCache.set(oe,Fe),Fe}}}}function b4e(f,S,E){if(tb(f)){let oe=zf(f,901119,S,!0,P3(f));if(!oe&&Ai(f)&&E&&(oe=Vf(Wp(Fv(E),f.escapedText,901119))),oe)return oe}let P=Ai(f)?E:b4e(f.left,S,E),z=Ai(f)?f.escapedText:f.right.escapedText;if(P){let q=P.flags&111551&&Ku(Js(P),"prototype"),oe=q?Js(q):_m(P);return Ku(oe,z)}}function pE(f,S){if(ul(f))return Mg(f)?Vf(f.symbol):void 0;let{parent:E}=f,P=E.parent;if(!(f.flags&67108864)){if(KTe(f)){let z=Bs(E);return I2(f.parent)&&f.parent.propertyName===f?N1e(z):z}else if(SG(f))return Bs(E.parent);if(f.kind===80){if(Sze(f))return Slt(f);if(E.kind===208&&P.kind===206&&f===E.propertyName){let z=kq(P),q=Ku(z,f.escapedText);if(q)return q}else if(cW(E)&&E.name===f)return E.keywordToken===105&&Un(f)==="target"?mne(E).symbol:E.keywordToken===102&&Un(f)==="meta"?wkt().members.get("meta"):void 0}switch(f.kind){case 80:case 81:case 211:case 166:if(!L8(f))return Slt(f);case 110:let z=Kb(f,!1,!1);if(iu(z)){let Fe=m2(z);if(Fe.thisParameter)return Fe.thisParameter}if(NZ(f))return fu(f).symbol;case 197:return fje(f).symbol;case 108:return fu(f).symbol;case 137:let q=f.parent;return q&&q.kind===176?q.parent.symbol:void 0;case 11:case 15:if(WS(f.parent.parent)&&Sj(f.parent.parent)===f||(f.parent.kind===272||f.parent.kind===278)&&f.parent.moduleSpecifier===f||Ys(f)&&cT(f.parent)&&f.parent.moduleSpecifier===f||Ys(f)&&es(f.parent,!1)||Kx(f.parent)||xk(f.parent)&&Wy(f.parent.parent)&&f.parent.parent.argument===f.parent)return Gy(f,f,S);if(Od(E)&&I3(E)&&E.arguments[1]===f)return Bs(E);case 9:let oe=T_(E)?E.argumentExpression===f?Fb(E.expression):void 0:xk(E)&&tO(P)?al(P.objectType):void 0;return oe&&Ku(oe,kh(f.text));case 90:case 100:case 39:case 86:return Hm(f.parent);case 205:return Wy(f)?pE(f.argument.literal,S):void 0;case 95:return Bm(f.parent)?Se.checkDefined(f.parent.symbol):void 0;case 102:case 105:return cW(f.parent)?Dde(f.parent).symbol:void 0;case 104:if(ms(f.parent)){let Fe=Fb(f.parent.right),Ye=zct(Fe);return Ye?.symbol??Fe.symbol}return;case 236:return fu(f).symbol;case 295:if(T8(f)&&SY(f)){let Fe=fWe(f.parent);return Fe===St?void 0:Fe}default:return}}}function sXt(f){if(Ai(f)&&ba(f.parent)&&f.parent.name===f){let S=wO(f),E=Fb(f.parent.expression),P=E.flags&1048576?E.types:[E];return za(P,z=>Qn(o1(z),q=>Pz(S,q.keyType)))}}function xze(f){if(f&&f.kind===304)return zf(f.name,2208703)}function vbe(f){if(X0(f)){let S=f.propertyName||f.name;return f.parent.parent.moduleSpecifier?tk(f.parent.parent,f):S.kind===11?void 0:zf(S,2998271)}else return zf(f,2998271)}function kq(f){if(ul(f)&&!Mg(f)||f.flags&67108864)return Ie;let S=UE(f),E=S&&pS(Bs(S.class));if(jA(f)){let P=al(f);return E?Aw(P,E.thisType):P}if(ab(f))return bbe(f);if(E&&!S.isImplements){let P=Ed(Pp(E));return P?Aw(P,E.thisType):Ie}if(Xj(f)){let P=Bs(f);return _m(P)}if(yEt(f)){let P=pE(f);return P?_m(P):Ie}if(Zd(f))return bC(f,!0,0)||Ie;if(y1(f)){let P=Bs(f);return P?Js(P):Ie}if(KTe(f)){let P=pE(f);return P?Js(P):Ie}if(Uu(f))return bC(f.parent,!0,0)||Ie;if(Sze(f)){let P=pE(f);if(P){let z=_m(P);return Qe(z)?Js(P):z}}return cW(f.parent)&&f.parent.keywordToken===f.kind?Dde(f.parent):GC(f)?NAe(!1):Ie}function S4e(f){if(Se.assert(f.kind===210||f.kind===209),f.parent.kind===250){let z=pbe(f.parent);return HL(f,z||Ie)}if(f.parent.kind===226){let z=Fb(f.parent.right);return HL(f,z||Ie)}if(f.parent.kind===303){let z=$d(f.parent.parent,Ld),q=S4e(z)||Ie,oe=Rm(z.properties,f.parent);return wY(z,q,oe)}let S=$d(f.parent,Yg),E=S4e(S)||Ie,P=qF(65,E,ye,f.parent)||Ie;return Vct(S,E,S.elements.indexOf(f),P)}function aXt(f){let S=S4e($d(f.parent.parent,fZ));return S&&Ku(S,f.escapedText)}function bbe(f){return ZH(f)&&(f=f.parent),Ig(Fb(f))}function bEt(f){let S=Hm(f.parent);return Xd(f)?Js(S):_m(S)}function SEt(f){let S=f.name;switch(S.kind){case 80:return kC(Un(S));case 9:case 11:return kC(S.text);case 167:let E=YN(S);return Ob(E,12288)?E:Ot;default:return Se.fail("Unsupported property name.")}}function Cze(f){f=qS(f);let S=Au(Lp(f)),E=kd(f,0).length?cl:kd(f,1).length?ri:void 0;return E&&ee(Lp(E),P=>{S.has(P.escapedName)||S.set(P.escapedName,P)}),as(S)}function kze(f){return kd(f,0).length!==0||kd(f,1).length!==0}function PY(f){let S=xlt(f);return S?za(S,PY):[f]}function xlt(f){if(Ag(f)&6)return Dc(Nl(f).containingType.types,S=>Ku(S,f.escapedName));if(f.flags&33554432){let{links:{leftSpread:S,rightSpread:E,syntheticOrigin:P}}=f;return S?[S,E]:P?[P]:Rl(cXt(f))}}function cXt(f){let S,E=f;for(;E=Nl(E).target;)S=E;return S}function wq(f){if(Tm(f))return!1;let S=ju(f,Ai);if(!S)return!1;let E=S.parent;return E?!((ba(E)||Ih(E))&&E.name===S)&&xbe(S)===ht:!1}function xEt(f){return aj(f.parent)&&f===f.parent.name}function Clt(f,S){var E;let P=ju(f,Ai);if(P){let z=xbe(P,xEt(P));if(z){if(z.flags&1048576){let oe=Vf(z.exportSymbol);if(!S&&oe.flags&944&&!(oe.flags&3))return;z=oe}let q=B0(z);if(q){if(q.flags&512&&((E=q.valueDeclaration)==null?void 0:E.kind)===307){let oe=q.valueDeclaration,Fe=Vo(P);return oe!==Fe?void 0:oe}return go(P.parent,oe=>aj(oe)&&Bs(oe)===q)}}}}function klt(f){let S=Gme(f);if(S)return S;let E=ju(f,Ai);if(E){let P=LY(E);if(pC(P,111551)&&!vT(P,111551))return Uh(P)}}function lXt(f){return f.valueDeclaration&&Zd(f.valueDeclaration)&&tj(f.valueDeclaration).parent.kind===299}function CEt(f){if(f.flags&418&&f.valueDeclaration&&!ul(f.valueDeclaration)){let S=Nl(f);if(S.isDeclarationWithCollidingName===void 0){let E=Xw(f.valueDeclaration);if(Ope(E)||lXt(f))if(Ei(E.parent,f.escapedName,111551,void 0,!1))S.isDeclarationWithCollidingName=!0;else if(C4e(f.valueDeclaration,16384)){let P=C4e(f.valueDeclaration,32768),z=v8(E,!1),q=E.kind===241&&v8(E.parent,!1);S.isDeclarationWithCollidingName=!CZ(E)&&(!P||!z&&!q)}else S.isDeclarationWithCollidingName=!1}return S.isDeclarationWithCollidingName}return!1}function uXt(f){if(!Tm(f)){let S=ju(f,Ai);if(S){let E=xbe(S);if(E&&CEt(E))return E.valueDeclaration}}}function x4e(f){let S=ju(f,y1);if(S){let E=Bs(S);if(E)return CEt(E)}return!1}function wlt(f){switch(Se.assert(Ut),f.kind){case 271:return wze(Bs(f));case 273:case 274:case 276:case 281:let S=Bs(f);return!!S&&wze(S,!0);case 278:let E=f.exportClause;return!!E&&(vm(E)||En(E.elements,wlt));case 277:return f.expression&&f.expression.kind===80?wze(Bs(f),!0):!0}return!1}function kEt(f){let S=ju(f,pf);return S===void 0||S.parent.kind!==307||!y5(S)?!1:wze(Bs(S))&&S.moduleReference&&!Mm(S.moduleReference)}function wze(f,S){if(!f)return!1;let E=Vo(f.valueDeclaration),P=E&&Bs(E);R1(P);let z=Jh(oy(f));return z===St?!S||!vT(f):!!(qy(f,S,!0)&111551)&&(ph(X)||!Sbe(z))}function Sbe(f){return Wct(f)||!!f.constEnumOnlyModule}function wEt(f,S){if(Se.assert(Ut),Nh(f)){let E=Bs(f),P=E&&Nl(E);if(P?.referenced)return!0;let z=Nl(E).aliasTarget;if(z&&A_(f)&32&&qy(z)&111551&&(ph(X)||!Sbe(z)))return!0}return S?!!_d(f,E=>wEt(E,S)):!1}function Xde(f){if(jT(f.body)){if(oN(f)||Gw(f))return!1;let S=Bs(f),E=B9(S);return E.length>1||E.length===1&&E[0].declaration!==f}return!1}function dXt(f){let S=Ize(f);if(!S)return!1;let E=al(S);return iq(E)}function Tze(f,S){return(fXt(f,S)||_Xt(f))&&!dXt(f)}function fXt(f,S){return!xe||Aue(f)||hw(f)||!f.initializer?!1:kc(f,31)?!!S&&Rp(S):!0}function _Xt(f){return xe&&Aue(f)&&(hw(f)||!f.initializer)&&kc(f,31)}function TEt(f){let S=ju(f,P=>fp(P)||$c(P));if(!S)return!1;let E;if($c(S)){if(S.type||!Ys(S)&&!Eo(S))return!1;let P=v5(S);if(!P||!$x(P))return!1;E=Bs(P)}else E=Bs(S);return!E||!(E.flags&16|3)?!1:!!Km(Fv(E),P=>P.flags&111551&&B5(P.valueDeclaration))}function pXt(f){let S=ju(f,fp);if(!S)return F;let E=Bs(S);return E&&Lp(Js(E))||F}function Tq(f){var S;let E=f.id||0;return E<0||E>=ep.length?0:((S=ep[E])==null?void 0:S.flags)||0}function C4e(f,S){return Eze(f,S),!!(Tq(f)&S)}function Eze(f,S){if(!X.noCheck&&Z7(Vo(f),X)||ra(f).calculatedFlags&S)return;switch(S){case 16:case 32:return oe(f);case 128:case 256:case 2097152:return q(f);case 512:case 8192:case 65536:case 262144:return Ye(f);case 536870912:return tt(f);case 4096:case 32768:case 16384:return Pt(f);default:return Se.assertNever(S,`Unhandled node check flag calculation: ${Se.formatNodeCheckFlags(S)}`)}function P(Hi,vn){let br=vn(Hi,Hi.parent);if(br!=="skip")return br||NU(Hi,vn)}function z(Hi){let vn=ra(Hi);if(vn.calculatedFlags&S)return"skip";vn.calculatedFlags|=2097536,oe(Hi)}function q(Hi){P(Hi,z)}function oe(Hi){let vn=ra(Hi);vn.calculatedFlags|=48,Hi.kind===108&&yPe(Hi)}function Fe(Hi){let vn=ra(Hi);if(vn.calculatedFlags&S)return"skip";vn.calculatedFlags|=336384,tt(Hi)}function Ye(Hi){P(Hi,Fe)}function it(Hi){return ab(Hi)||Q0(Hi.parent)&&(Hi.parent.objectAssignmentInitializer??Hi.parent.name)===Hi}function tt(Hi){let vn=ra(Hi);if(vn.calculatedFlags|=536870912,Ai(Hi)&&(vn.calculatedFlags|=49152,it(Hi)&&!(ba(Hi.parent)&&Hi.parent.name===Hi))){let br=SS(Hi);br&&br!==St&&jwt(Hi,br)}}function It(Hi){let vn=ra(Hi);if(vn.calculatedFlags&S)return"skip";vn.calculatedFlags|=53248,yi(Hi)}function Pt(Hi){let vn=Xw(VT(Hi)?Hi.parent:Hi);P(vn,It)}function yi(Hi){tt(Hi),f_(Hi)&&YN(Hi),wl(Hi)&&rl(Hi.parent)&&HWe(Hi.parent)}}function Eq(f){return sEt(f.parent),ra(f).enumMemberValue??bg(void 0)}function EEt(f){switch(f.kind){case 306:case 211:case 212:return!0}return!1}function k4e(f){if(f.kind===306)return Eq(f).value;ra(f).resolvedSymbol||r0(f);let S=ra(f).resolvedSymbol||(Dp(f)?zf(f,111551,!0):void 0);if(S&&S.flags&8){let E=S.valueDeclaration;if(jy(E.parent))return Eq(E).value}}function Tlt(f){return!!(f.flags&524288)&&kd(f,0).length>0}function gv(f,S){var E;let P=ju(f,tb);if(!P||S&&(S=ju(S),!S))return 0;let z=!1;if(tS(P)){let tt=zf(fx(P),111551,!0,!0,S);z=!!((E=tt?.declarations)!=null&&E.every(j6))}let q=zf(P,111551,!0,!0,S),oe=q&&q.flags&2097152?oy(q):q;z||(z=!!(q&&vT(q,111551)));let Fe=zf(P,788968,!0,!0,S),Ye=Fe&&Fe.flags&2097152?oy(Fe):Fe;if(q||z||(z=!!(Fe&&vT(Fe,788968))),oe&&oe===Ye){let tt=QBe(!1);if(tt&&oe===tt)return 9;let It=Js(oe);if(It&&to(It))return z?10:1}if(!Ye)return z?11:0;let it=_m(Ye);return Qe(it)?z?11:0:it.flags&3?11:Ob(it,245760)?2:Ob(it,528)?6:Ob(it,296)?3:Ob(it,2112)?4:Ob(it,402653316)?5:a_(it)?7:Ob(it,12288)?8:Tlt(it)?10:ok(it)?7:11}function mXt(f,S,E,P,z){let q=ju(f,Jpe);if(!q)return Me.createToken(133);let oe=Bs(q),Fe=oe&&!(oe.flags&133120)?BL(Js(oe)):Ie;return qe.serializeTypeForDeclaration(q,Fe,oe,S,E|1024,P,z)}function hXt(f){return iu(f)||Bm(f)||mj(f)}function PI(f){f=ju(f,Hoe);let S=f.kind===178?177:178,E=Kp(Bs(f),S),P=E&&E.pos{if(!S)S=P.expression;else return S=void 0,!0}):S=E}return S}function gXt(f,S,E,P,z){let q=ju(f,iu);return q?qe.serializeReturnTypeForSignature(m2(q),S,E|1024,P,z):Me.createToken(133)}function yXt(f,S,E,P,z){let q=ju(f,An);if(!q)return Me.createToken(133);let oe=$k(bbe(q));return qe.expressionOrTypeToTypeNode(q,oe,void 0,S,E|1024,P,z)}function vXt(f){return ft.has(kh(f))}function xbe(f,S){let E=ra(f).resolvedSymbol;if(E)return E;let P=f;if(S){let z=f.parent;y1(z)&&f===z.name&&(P=di(z))}return Ei(P,f.escapedText,3257279,void 0,!0)}function LY(f){let S=ra(f).resolvedSymbol;return S&&S!==St?S:Ei(f,f.escapedText,3257279,void 0,!0,void 0)}function IEt(f){if(!Tm(f)){let S=ju(f,Ai);if(S){let E=xbe(S);if(E)return Jh(E).valueDeclaration}}}function bXt(f){if(!Tm(f)){let S=ju(f,Ai);if(S){let E=xbe(S);if(E)return Qn(Jh(E).declarations,P=>{switch(P.kind){case 260:case 169:case 208:case 172:case 303:case 304:case 306:case 210:case 262:case 218:case 219:case 263:case 231:case 266:case 174:case 177:case 178:case 267:return!0}return!1})}}}function SXt(f){return mk(f)||$c(f)&&Eo(f)?RF(Js(Bs(f))):!1}function xXt(f,S,E){let P=f.flags&1056?qe.symbolToExpression(f.symbol,111551,S,void 0,void 0,E):f===Si?Me.createTrue():f===In&&Me.createFalse();if(P)return P;let z=f.value;return typeof z=="object"?Me.createBigIntLiteral(z):typeof z=="string"?Me.createStringLiteral(z):z<0?Me.createPrefixUnaryExpression(41,Me.createNumericLiteral(-z)):Me.createNumericLiteral(z)}function Dze(f,S){let E=Js(Bs(f));return xXt(E,f,S)}function NEt(f){return f?(zm(f),Vo(f).localJsxFactory||ZC):ZC}function Elt(f){if(f){let S=Vo(f);if(S){if(S.localJsxFragmentFactory)return S.localJsxFragmentFactory;let E=S.pragmas.get("jsxfrag"),P=ua(E)?E[0]:E;if(P)return S.localJsxFragmentFactory=sO(P.arguments.factory,ne),S.localJsxFragmentFactory}}if(X.jsxFragmentFactory)return sO(X.jsxFragmentFactory,ne)}function Ize(f){let S=gm(f);if(S)return S;if(f.kind===169&&f.parent.kind===178){let E=PI(f.parent).getAccessor;if(E)return WC(E)}}function CXt(f){let S=WC(f);if(S)return S;if(f.kind===177){let E=PI(f).setAccessor;if(E){let P=w5(E);if(P)return gm(P)}}}function kXt(){return{getReferencedExportContainer:Clt,getReferencedImportDeclaration:klt,getReferencedDeclarationWithCollidingName:uXt,isDeclarationWithCollidingName:x4e,isValueAliasDeclaration:S=>{let E=ju(S);return E&&Ut?wlt(E):!0},hasGlobalName:vXt,isReferencedAliasDeclaration:(S,E)=>{let P=ju(S);return P&&Ut?wEt(P,E):!0},hasNodeCheckFlag:(S,E)=>{let P=ju(S);return P?C4e(P,E):!1},isTopLevelValueImportEqualsWithEntityName:kEt,isDeclarationVisible:zk,isImplementationOfOverload:Xde,requiresAddingImplicitUndefined:Tze,isExpandoFunctionDeclaration:TEt,getPropertiesOfContainerFunction:pXt,createTypeOfDeclaration:mXt,createReturnTypeOfSignatureDeclaration:gXt,createTypeOfExpression:yXt,createLiteralConstValue:Dze,isSymbolAccessible:_S,isEntityNameVisible:VJ,getConstantValue:S=>{let E=ju(S,EEt);return E?k4e(E):void 0},getEnumMemberValue:S=>{let E=ju(S,pb);return E?Eq(E):void 0},collectLinkedAliases:z_,markLinkedReferences:S=>{let E=ju(S);return E&&vY(E,0)},getReferencedValueDeclaration:IEt,getReferencedValueDeclarations:bXt,getTypeReferenceSerializationKind:gv,isOptionalParameter:Aue,isArgumentsLocalBinding:wq,getExternalModuleFileFromDeclaration:S=>{let E=ju(S,$ke);return E&&Yde(E)},isLiteralConstDeclaration:SXt,isLateBound:S=>{let E=ju(S,y1),P=E&&Bs(E);return!!(P&&Ag(P)&4096)},getJsxFactoryEntity:NEt,getJsxFragmentFactoryEntity:Elt,isBindingCapturedByNode:(S,E)=>{let P=ju(S),z=ju(E);return!!P&&!!z&&($c(z)||Zd(z))&&Vwt(P,z)},getDeclarationStatementsForSourceFile:(S,E,P,z)=>{let q=ju(S);Se.assert(q&&q.kind===307,"Non-sourcefile node passed into getDeclarationsForSourceFile");let oe=Bs(S);return oe?(R1(oe),oe.exports?qe.symbolTableToDeclarationStatements(oe.exports,S,E,P,z):[]):S.locals?qe.symbolTableToDeclarationStatements(S.locals,S,E,P,z):[]},isImportRequiredByAugmentation:f,isDefinitelyReferenceToGlobalSymbolObject:Tg};function f(S){let E=Vo(S);if(!E.symbol)return!1;let P=Yde(S);if(!P||P===E)return!1;let z=ik(E.symbol);for(let q of tc(z.values()))if(q.mergeId){let oe=Vf(q);if(oe.declarations){for(let Fe of oe.declarations)if(Vo(Fe)===P)return!0}}return!1}}function Yde(f){let S=f.kind===267?ac(f.name,Kf):Tj(f),E=ON(S,S,void 0);if(E)return Kp(E,307)}function wXt(){for(let S of t.getSourceFiles())jTe(S,X);mf=new Map;let f;for(let S of t.getSourceFiles())if(!S.redirectInfo){if(!Jv(S)){let E=S.locals.get("globalThis");if(E?.declarations)for(let P of E.declarations)Gu.add(ws(P,j.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));Uy(ft,S.locals)}S.jsGlobalAugmentations&&Uy(ft,S.jsGlobalAugmentations),S.patternAmbientModules&&S.patternAmbientModules.length&&(rp=Pl(rp,S.patternAmbientModules)),S.moduleAugmentations.length&&(f||(f=[])).push(S.moduleAugmentations),S.symbol&&S.symbol.globalExports&&S.symbol.globalExports.forEach((P,z)=>{ft.has(z)||ft.set(z,P)})}if(f)for(let S of f)for(let E of S)y4(E.parent)&&Y2(E);if(fC(),Nl(mt).type=vt,Nl(ht).type=Dg("IArguments",0,!0),Nl(St).type=Ie,Nl(ut).type=de(16,ut),$n=Dg("Array",1,!0),er=Dg("Object",0,!0),wo=Dg("Function",0,!0),cl=Le&&Dg("CallableFunction",0,!0)||wo,ri=Le&&Dg("NewableFunction",0,!0)||wo,Lc=Dg("String",0,!0),tl=Dg("Number",0,!0),il=Dg("Boolean",0,!0),Fd=Dg("RegExp",0,!0),Wf=vS(pt),Md=vS(Gt),Md===ja&&(Md=ml(void 0,K,F,F,F)),xo=hst("ReadonlyArray",1)||$n,j_=xo?tY(xo,[pt]):Wf,hp=hst("ThisType",1),f)for(let S of f)for(let E of S)y4(E.parent)||Y2(E);mf.forEach(({firstFile:S,secondFile:E,conflictingSymbols:P})=>{if(P.size<8)P.forEach(({isBlockScoped:z,firstFileLocations:q,secondFileLocations:oe},Fe)=>{let Ye=z?j.Cannot_redeclare_block_scoped_variable_0:j.Duplicate_identifier_0;for(let it of q)dC(it,Ye,Fe,oe);for(let it of oe)dC(it,Ye,Fe,q)});else{let z=tc(P.keys()).join(", ");Gu.add(Pd(ws(S,j.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,z),ws(E,j.Conflicts_are_in_this_file))),Gu.add(Pd(ws(E,j.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,z),ws(S,j.Conflicts_are_in_this_file)))}}),mf=void 0}function Ky(f,S){if(X.importHelpers){let E=Vo(f);if(u5(E,X)&&!(f.flags&33554432)){let P=TXt(E,f);if(P!==St){let z=Nl(P);if(z.requestedExternalEmitHelpers??(z.requestedExternalEmitHelpers=0),(z.requestedExternalEmitHelpers&S)!==S){let q=S&~z.requestedExternalEmitHelpers;for(let oe=1;oe<=16777216;oe<<=1)if(q&oe)for(let Fe of AEt(oe)){let Ye=Nm(Wp(ik(P),kh(Fe),111551));Ye?oe&524288?En(B9(Ye),it=>Xk(it)>3)||ki(f,j.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,R7,Fe,4):oe&1048576?En(B9(Ye),it=>Xk(it)>4)||ki(f,j.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,R7,Fe,5):oe&1024&&(En(B9(Ye),it=>Xk(it)>2)||ki(f,j.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,R7,Fe,3)):ki(f,j.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,R7,Fe)}}z.requestedExternalEmitHelpers|=S}}}}function AEt(f){switch(f){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return _e?["__decorate"]:["__esDecorate","__runInitializers"];case 16:return["__metadata"];case 32:return["__param"];case 64:return["__awaiter"];case 128:return["__generator"];case 256:return["__values"];case 512:return["__read"];case 1024:return["__spreadArray"];case 2048:return["__await"];case 4096:return["__asyncGenerator"];case 8192:return["__asyncDelegator"];case 16384:return["__asyncValues"];case 32768:return["__exportStar"];case 65536:return["__importStar"];case 131072:return["__importDefault"];case 262144:return["__makeTemplateObject"];case 524288:return["__classPrivateFieldGet"];case 1048576:return["__classPrivateFieldSet"];case 2097152:return["__classPrivateFieldIn"];case 4194304:return["__setFunctionName"];case 8388608:return["__propKey"];case 16777216:return["__addDisposableResource","__disposeResources"];default:return Se.fail("Unrecognized helper")}}function TXt(f,S){let E=ra(f);return E.externalHelpersModule||(E.externalHelpersModule=gP(ds(f),R7,j.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,S)||St),E.externalHelpersModule}function qL(f){var S;let E=PEt(f)||Nze(f);if(E!==void 0)return E;if(Fl(f)&&B3(f))return c1(f,j.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);let P=Zh(f)?f.declarationList.flags&7:0,z,q,oe,Fe,Ye,it=0,tt=!1,It=!1;for(let Pt of f.modifiers)if(Cy(Pt)){if(DH(_e,f,f.parent,f.parent.parent)){if(_e&&(f.kind===177||f.kind===178)){let yi=PI(f);if(uw(yi.firstAccessor)&&f===yi.secondAccessor)return c1(f,j.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return f.kind===174&&!jT(f.body)?c1(f,j.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):c1(f,j.Decorators_are_not_valid_here);if(it&-34849)return To(Pt,j.Decorators_are_not_valid_here);if(It&&it&98303){Se.assertIsDefined(Ye);let yi=Vo(Pt);return hR(yi)?!1:(Pd(ki(Pt,j.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),ws(Ye,j.Decorator_used_before_export_here)),!0)}it|=32768,it&98303?it&32&&(tt=!0):It=!0,Ye??(Ye=Pt)}else{if(Pt.kind!==148){if(f.kind===171||f.kind===173)return To(Pt,j._0_modifier_cannot_appear_on_a_type_member,Ef(Pt.kind));if(f.kind===181&&(Pt.kind!==126||!bc(f.parent)))return To(Pt,j._0_modifier_cannot_appear_on_an_index_signature,Ef(Pt.kind))}if(Pt.kind!==103&&Pt.kind!==147&&Pt.kind!==87&&f.kind===168)return To(Pt,j._0_modifier_cannot_appear_on_a_type_parameter,Ef(Pt.kind));switch(Pt.kind){case 87:{if(f.kind!==266&&f.kind!==168)return To(f,j.A_class_member_cannot_have_the_0_keyword,Ef(87));let vn=tC(f.parent)&&C4(f.parent)||f.parent;if(f.kind===168&&!(Rp(vn)||bc(vn)||xp(vn)||Dm(vn)||xg(vn)||db(vn)||sT(vn)))return To(Pt,j._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,Ef(Pt.kind));break}case 164:if(it&16)return To(Pt,j._0_modifier_already_seen,"override");if(it&128)return To(Pt,j._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(it&8)return To(Pt,j._0_modifier_must_precede_1_modifier,"override","readonly");if(it&512)return To(Pt,j._0_modifier_must_precede_1_modifier,"override","accessor");if(it&1024)return To(Pt,j._0_modifier_must_precede_1_modifier,"override","async");it|=16,Fe=Pt;break;case 125:case 124:case 123:let yi=EF(Vy(Pt.kind));if(it&7)return To(Pt,j.Accessibility_modifier_already_seen);if(it&16)return To(Pt,j._0_modifier_must_precede_1_modifier,yi,"override");if(it&256)return To(Pt,j._0_modifier_must_precede_1_modifier,yi,"static");if(it&512)return To(Pt,j._0_modifier_must_precede_1_modifier,yi,"accessor");if(it&8)return To(Pt,j._0_modifier_must_precede_1_modifier,yi,"readonly");if(it&1024)return To(Pt,j._0_modifier_must_precede_1_modifier,yi,"async");if(f.parent.kind===268||f.parent.kind===307)return To(Pt,j._0_modifier_cannot_appear_on_a_module_or_namespace_element,yi);if(it&64)return Pt.kind===123?To(Pt,j._0_modifier_cannot_be_used_with_1_modifier,yi,"abstract"):To(Pt,j._0_modifier_must_precede_1_modifier,yi,"abstract");if(qb(f))return To(Pt,j.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);it|=Vy(Pt.kind);break;case 126:if(it&256)return To(Pt,j._0_modifier_already_seen,"static");if(it&8)return To(Pt,j._0_modifier_must_precede_1_modifier,"static","readonly");if(it&1024)return To(Pt,j._0_modifier_must_precede_1_modifier,"static","async");if(it&512)return To(Pt,j._0_modifier_must_precede_1_modifier,"static","accessor");if(f.parent.kind===268||f.parent.kind===307)return To(Pt,j._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(f.kind===169)return To(Pt,j._0_modifier_cannot_appear_on_a_parameter,"static");if(it&64)return To(Pt,j._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(it&16)return To(Pt,j._0_modifier_must_precede_1_modifier,"static","override");it|=256,z=Pt;break;case 129:if(it&512)return To(Pt,j._0_modifier_already_seen,"accessor");if(it&8)return To(Pt,j._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(it&128)return To(Pt,j._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(f.kind!==172)return To(Pt,j.accessor_modifier_can_only_appear_on_a_property_declaration);it|=512;break;case 148:if(it&8)return To(Pt,j._0_modifier_already_seen,"readonly");if(f.kind!==172&&f.kind!==171&&f.kind!==181&&f.kind!==169)return To(Pt,j.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(it&512)return To(Pt,j._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");it|=8;break;case 95:if(X.verbatimModuleSyntax&&!(f.flags&33554432)&&f.kind!==265&&f.kind!==264&&f.kind!==267&&f.parent.kind===307&&t.getEmitModuleFormatOfFile(Vo(f))===1)return To(Pt,j.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(it&32)return To(Pt,j._0_modifier_already_seen,"export");if(it&128)return To(Pt,j._0_modifier_must_precede_1_modifier,"export","declare");if(it&64)return To(Pt,j._0_modifier_must_precede_1_modifier,"export","abstract");if(it&1024)return To(Pt,j._0_modifier_must_precede_1_modifier,"export","async");if(bc(f.parent))return To(Pt,j._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(f.kind===169)return To(Pt,j._0_modifier_cannot_appear_on_a_parameter,"export");if(P===4)return To(Pt,j._0_modifier_cannot_appear_on_a_using_declaration,"export");if(P===6)return To(Pt,j._0_modifier_cannot_appear_on_an_await_using_declaration,"export");it|=32;break;case 90:let Hi=f.parent.kind===307?f.parent:f.parent.parent;if(Hi.kind===267&&!nb(Hi))return To(Pt,j.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(P===4)return To(Pt,j._0_modifier_cannot_appear_on_a_using_declaration,"default");if(P===6)return To(Pt,j._0_modifier_cannot_appear_on_an_await_using_declaration,"default");if(it&32){if(tt)return To(Ye,j.Decorators_are_not_valid_here)}else return To(Pt,j._0_modifier_must_precede_1_modifier,"export","default");it|=2048;break;case 138:if(it&128)return To(Pt,j._0_modifier_already_seen,"declare");if(it&1024)return To(Pt,j._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(it&16)return To(Pt,j._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(bc(f.parent)&&!vu(f))return To(Pt,j._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(f.kind===169)return To(Pt,j._0_modifier_cannot_appear_on_a_parameter,"declare");if(P===4)return To(Pt,j._0_modifier_cannot_appear_on_a_using_declaration,"declare");if(P===6)return To(Pt,j._0_modifier_cannot_appear_on_an_await_using_declaration,"declare");if(f.parent.flags&33554432&&f.parent.kind===268)return To(Pt,j.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(qb(f))return To(Pt,j._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(it&512)return To(Pt,j._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");it|=128,q=Pt;break;case 128:if(it&64)return To(Pt,j._0_modifier_already_seen,"abstract");if(f.kind!==263&&f.kind!==185){if(f.kind!==174&&f.kind!==172&&f.kind!==177&&f.kind!==178)return To(Pt,j.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(f.parent.kind===263&&kc(f.parent,64))){let vn=f.kind===172?j.Abstract_properties_can_only_appear_within_an_abstract_class:j.Abstract_methods_can_only_appear_within_an_abstract_class;return To(Pt,vn)}if(it&256)return To(Pt,j._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(it&2)return To(Pt,j._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(it&1024&&oe)return To(oe,j._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(it&16)return To(Pt,j._0_modifier_must_precede_1_modifier,"abstract","override");if(it&512)return To(Pt,j._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(xf(f)&&f.name.kind===81)return To(Pt,j._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");it|=64;break;case 134:if(it&1024)return To(Pt,j._0_modifier_already_seen,"async");if(it&128||f.parent.flags&33554432)return To(Pt,j._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(f.kind===169)return To(Pt,j._0_modifier_cannot_appear_on_a_parameter,"async");if(it&64)return To(Pt,j._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");it|=1024,oe=Pt;break;case 103:case 147:{let vn=Pt.kind===103?8192:16384,br=Pt.kind===103?"in":"out",Qr=tC(f.parent)&&(C4(f.parent)||jt((S=Ej(f.parent))==null?void 0:S.tags,fM))||f.parent;if(f.kind!==168||Qr&&!(ky(Qr)||bc(Qr)||k1(Qr)||fM(Qr)))return To(Pt,j._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,br);if(it&vn)return To(Pt,j._0_modifier_already_seen,br);if(vn&8192&&it&16384)return To(Pt,j._0_modifier_must_precede_1_modifier,"in","out");it|=vn;break}}}return f.kind===176?it&256?To(z,j._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):it&16?To(Fe,j._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):it&1024?To(oe,j._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!1:(f.kind===272||f.kind===271)&&it&128?To(q,j.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):f.kind===169&&it&31&&Uu(f.name)?To(f,j.A_parameter_property_may_not_be_declared_using_a_binding_pattern):f.kind===169&&it&31&&f.dotDotDotToken?To(f,j.A_parameter_property_cannot_be_declared_using_a_rest_parameter):it&1024?DXt(f,oe):!1}function Nze(f){if(!f.modifiers)return!1;let S=Dlt(f);return S&&c1(S,j.Modifiers_cannot_appear_here)}function Cbe(f,S){let E=jt(f.modifiers,jd);return E&&E.kind!==S?E:void 0}function Dlt(f){switch(f.kind){case 177:case 178:case 176:case 172:case 171:case 174:case 173:case 181:case 267:case 272:case 271:case 278:case 277:case 218:case 219:case 169:case 168:return;case 175:case 303:case 304:case 270:case 282:return jt(f.modifiers,jd);default:if(f.parent.kind===268||f.parent.kind===307)return;switch(f.kind){case 262:return Cbe(f,134);case 263:case 185:return Cbe(f,128);case 231:case 264:case 265:return jt(f.modifiers,jd);case 243:return f.declarationList.flags&4?Cbe(f,135):jt(f.modifiers,jd);case 266:return Cbe(f,87);default:Se.assertNever(f)}}}function PEt(f){let S=EXt(f);return S&&c1(S,j.Decorators_are_not_valid_here)}function EXt(f){return dK(f)?jt(f.modifiers,Cy):void 0}function DXt(f,S){switch(f.kind){case 174:case 262:case 218:case 219:return!1}return To(S,j._0_modifier_cannot_be_used_here,"async")}function OY(f,S=j.Trailing_comma_not_allowed){return f&&f.hasTrailingComma?gR(f[0],f.end-1,1,S):!1}function LEt(f,S){if(f&&f.length===0){let E=f.pos-1,P=fd(S.text,f.end)+1;return gR(S,E,P-E,j.Type_parameter_list_cannot_be_empty)}return!1}function OEt(f){let S=!1,E=f.length;for(let P=0;P!!S.initializer||Uu(S.name)||RS(S))}function NXt(f){if(ne>=3){let S=f.body&&qu(f.body)&&e8e(f.body.statements);if(S){let E=IXt(f.parameters);if(Z(E)){ee(E,z=>{Pd(ki(z,j.This_parameter_is_not_allowed_with_use_strict_directive),ws(S,j.use_strict_directive_used_here))});let P=E.map((z,q)=>q===0?ws(z,j.Non_simple_parameter_declared_here):ws(z,j.and_here));return Pd(ki(S,j.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...P),!0}}}return!1}function kbe(f){let S=Vo(f);return qL(f)||LEt(f.typeParameters,S)||OEt(f.parameters)||Qde(f,S)||Rp(f)&&NXt(f)}function AXt(f){let S=Vo(f);return FXt(f)||LEt(f.typeParameters,S)}function Qde(f,S){if(!Zc(f))return!1;f.typeParameters&&!(Z(f.typeParameters)>1||f.typeParameters.hasTrailingComma||f.typeParameters[0].constraint)&&S&&gg(S.fileName,[".mts",".cts"])&&To(f.typeParameters[0],j.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);let{equalsGreaterThanToken:E}=f,P=Df(S,E.pos).line,z=Df(S,E.end).line;return P!==z&&To(E,j.Line_terminator_not_permitted_before_arrow)}function FEt(f){let S=f.parameters[0];if(f.parameters.length!==1)return To(S?S.name:f,j.An_index_signature_must_have_exactly_one_parameter);if(OY(f.parameters,j.An_index_signature_cannot_have_a_trailing_comma),S.dotDotDotToken)return To(S.dotDotDotToken,j.An_index_signature_cannot_have_a_rest_parameter);if(NOe(S))return To(S.name,j.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(S.questionToken)return To(S.questionToken,j.An_index_signature_parameter_cannot_have_a_question_mark);if(S.initializer)return To(S.name,j.An_index_signature_parameter_cannot_have_an_initializer);if(!S.type)return To(S.name,j.An_index_signature_parameter_must_have_a_type_annotation);let E=al(S.type);return uE(E,P=>!!(P.flags&8576))||wD(E)?To(S.name,j.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):KS(E,$ve)?f.type?!1:To(f,j.An_index_signature_must_have_a_type_annotation):To(S.name,j.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function PXt(f){return qL(f)||FEt(f)}function LXt(f,S){if(S&&S.length===0){let E=Vo(f),P=S.pos-1,z=fd(E.text,S.end)+1;return gR(E,P,z-P,j.Type_argument_list_cannot_be_empty)}return!1}function wbe(f,S){return OY(S)||LXt(f,S)}function OXt(f){return f.questionDotToken||f.flags&64?To(f.template,j.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function MEt(f){let S=f.types;if(OY(S))return!0;if(S&&S.length===0){let E=Ef(f.token);return gR(f,S.pos,0,j._0_list_cannot_be_empty,E)}return En(S,Ilt)}function Ilt(f){return $C(f)&&rM(f.expression)&&f.typeArguments?To(f,j.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):wbe(f,f.typeArguments)}function FXt(f){let S=!1,E=!1;if(!qL(f)&&f.heritageClauses)for(let P of f.heritageClauses){if(P.token===96){if(S)return c1(P,j.extends_clause_already_seen);if(E)return c1(P,j.extends_clause_must_precede_implements_clause);if(P.types.length>1)return c1(P.types[1],j.Classes_can_only_extend_a_single_class);S=!0}else{if(Se.assert(P.token===119),E)return c1(P,j.implements_clause_already_seen);E=!0}MEt(P)}}function REt(f){let S=!1;if(f.heritageClauses)for(let E of f.heritageClauses){if(E.token===96){if(S)return c1(E,j.extends_clause_already_seen);S=!0}else return Se.assert(E.token===119),c1(E,j.Interface_declaration_cannot_have_implements_clause);MEt(E)}return!1}function T4e(f){if(f.kind!==167)return!1;let S=f;return S.expression.kind===226&&S.expression.operatorToken.kind===28?To(S.expression,j.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function E4e(f){if(f.asteriskToken){if(Se.assert(f.kind===262||f.kind===218||f.kind===174),f.flags&33554432)return To(f.asteriskToken,j.Generators_are_not_allowed_in_an_ambient_context);if(!f.body)return To(f.asteriskToken,j.An_overload_signature_cannot_be_declared_as_a_generator)}}function Aze(f,S){return!!f&&To(f,S)}function BEt(f,S){return!!f&&To(f,S)}function MXt(f,S){let E=new Map;for(let P of f.properties){if(P.kind===305){if(S){let oe=J_(P.expression);if(Yg(oe)||Ld(oe))return To(P.expression,j.A_rest_element_cannot_contain_a_binding_pattern)}continue}let z=P.name;if(z.kind===167&&T4e(z),P.kind===304&&!S&&P.objectAssignmentInitializer&&To(P.equalsToken,j.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern),z.kind===81&&To(z,j.Private_identifiers_are_not_allowed_outside_class_bodies),tD(P)&&P.modifiers)for(let oe of P.modifiers)jd(oe)&&(oe.kind!==134||P.kind!==174)&&To(oe,j._0_modifier_cannot_be_used_here,_h(oe));else if(oO(P)&&P.modifiers)for(let oe of P.modifiers)jd(oe)&&To(oe,j._0_modifier_cannot_be_used_here,_h(oe));let q;switch(P.kind){case 304:case 303:BEt(P.exclamationToken,j.A_definite_assignment_assertion_is_not_permitted_in_this_context),Aze(P.questionToken,j.An_object_member_cannot_be_declared_optional),z.kind===9&&V(z),z.kind===10&&Ly(!0,ws(z,j.A_bigint_literal_cannot_be_used_as_a_property_name)),q=4;break;case 174:q=8;break;case 177:q=1;break;case 178:q=2;break;default:Se.assertNever(P,"Unexpected syntax kind:"+P.kind)}if(!S){let oe=So(z);if(oe===void 0)continue;let Fe=E.get(oe);if(!Fe)E.set(oe,q);else if(q&8&&Fe&8)To(z,j.Duplicate_identifier_0,_h(z));else if(q&4&&Fe&4)To(z,j.An_object_literal_cannot_have_multiple_properties_with_the_same_name,_h(z));else if(q&3&&Fe&3)if(Fe!==3&&q!==Fe)E.set(oe,q|Fe);else return To(z,j.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return To(z,j.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function mR(f){V1(f.tagName),wbe(f,f.typeArguments);let S=new Map;for(let E of f.attributes.properties){if(E.kind===293)continue;let{name:P,initializer:z}=E,q=Y3(P);if(!S.get(q))S.set(q,!0);else return To(P,j.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(z&&z.kind===294&&!z.expression)return To(z,j.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}function V1(f){if(ba(f)&&vx(f.expression))return To(f.expression,j.JSX_property_access_expressions_cannot_include_JSX_namespace_names);if(vx(f)&&BG(X)&&!wG(f.namespace.escapedText))return To(f,j.React_components_cannot_include_JSX_namespace_names)}function iV(f){if(f.expression&&lK(f.expression))return To(f.expression,j.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function jEt(f){if(O(f))return!0;if(f.kind===250&&f.awaitModifier&&!(f.flags&65536)){let S=Vo(f);if(lG(f)){if(!hR(S))switch(u5(S,X)||Gu.add(ws(f.awaitModifier,j.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module)),se){case 100:case 199:if(S.impliedNodeFormat===1){Gu.add(ws(f.awaitModifier,j.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 200:case 4:if(ne>=4)break;default:Gu.add(ws(f.awaitModifier,j.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher));break}}else if(!hR(S)){let E=ws(f.awaitModifier,j.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),P=BS(f);if(P&&P.kind!==176){Se.assert((Gg(P)&2)===0,"Enclosing function should never be an async function.");let z=ws(P,j.Did_you_mean_to_mark_this_function_as_async);Pd(E,z)}return Gu.add(E),!0}}if($u(f)&&!(f.flags&65536)&&Ai(f.initializer)&&f.initializer.escapedText==="async")return To(f.initializer,j.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(f.initializer.kind===261){let S=f.initializer;if(!Llt(S)){let E=S.declarations;if(!E.length)return!1;if(E.length>1){let z=f.kind===249?j.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:j.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return c1(S.declarations[1],z)}let P=E[0];if(P.initializer){let z=f.kind===249?j.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:j.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return To(P.name,z)}if(P.type){let z=f.kind===249?j.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:j.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation;return To(P,z)}}}return!1}function Oo(f){if(!(f.flags&33554432)&&f.parent.kind!==187&&f.parent.kind!==264){if(ne<2&&wl(f.name))return To(f.name,j.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(f.body===void 0&&!kc(f,64))return gR(f,f.end-1,1,j._0_expected,"{")}if(f.body){if(kc(f,64))return To(f,j.An_abstract_accessor_cannot_have_an_implementation);if(f.parent.kind===187||f.parent.kind===264)return To(f.body,j.An_implementation_cannot_be_declared_in_ambient_contexts)}if(f.typeParameters)return To(f.name,j.An_accessor_cannot_have_type_parameters);if(!RXt(f))return To(f.name,f.kind===177?j.A_get_accessor_cannot_have_parameters:j.A_set_accessor_must_have_exactly_one_parameter);if(f.kind===178){if(f.type)return To(f.name,j.A_set_accessor_cannot_have_a_return_type_annotation);let S=Se.checkDefined(w5(f),"Return value does not match parameter count assertion.");if(S.dotDotDotToken)return To(S.dotDotDotToken,j.A_set_accessor_cannot_have_rest_parameter);if(S.questionToken)return To(S.questionToken,j.A_set_accessor_cannot_have_an_optional_parameter);if(S.initializer)return To(f.name,j.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function RXt(f){return Nlt(f)||f.parameters.length===(f.kind===177?0:1)}function Nlt(f){if(f.parameters.length===(f.kind===177?1:2))return R3(f)}function BXt(f){if(f.operator===158){if(f.type.kind!==155)return To(f.type,j._0_expected,Ef(155));let S=bG(f.parent);if(Ys(S)&&lv(S)){let E=L3(S);E&&(S=D8(E)||E)}switch(S.kind){case 260:let E=S;if(E.name.kind!==80)return To(f,j.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!sG(E))return To(f,j.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(E.parent.flags&2))return To(S.name,j.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 172:if(!Xd(S)||!QH(S))return To(S.name,j.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 171:if(!kc(S,8))return To(S.name,j.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return To(f,j.unique_symbol_types_are_not_allowed_here)}}else if(f.operator===148&&f.type.kind!==188&&f.type.kind!==189)return c1(f,j.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,Ef(155))}function Zde(f,S){if(IL(f))return To(f,S)}function WEt(f){if(kbe(f))return!0;if(f.kind===174){if(f.parent.kind===210){if(f.modifiers&&!(f.modifiers.length===1&&of(f.modifiers).kind===134))return c1(f,j.Modifiers_cannot_appear_here);if(Aze(f.questionToken,j.An_object_member_cannot_be_declared_optional))return!0;if(BEt(f.exclamationToken,j.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(f.body===void 0)return gR(f,f.end-1,1,j._0_expected,"{")}if(E4e(f))return!0}if(bc(f.parent)){if(ne<2&&wl(f.name))return To(f.name,j.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(f.flags&33554432)return Zde(f.name,j.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(f.kind===174&&!f.body)return Zde(f.name,j.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(f.parent.kind===264)return Zde(f.name,j.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(f.parent.kind===187)return Zde(f.name,j.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function jXt(f){let S=f;for(;S;){if(g8(S))return To(f,j.Jump_target_cannot_cross_function_boundary);switch(S.kind){case 256:if(f.label&&S.label.escapedText===f.label.escapedText)return f.kind===251&&!v8(S.statement,!0)?To(f,j.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1;break;case 255:if(f.kind===252&&!f.label)return!1;break;default:if(v8(S,!1)&&!f.label)return!1;break}S=S.parent}if(f.label){let E=f.kind===252?j.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:j.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return To(f,E)}else{let E=f.kind===252?j.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:j.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return To(f,E)}}function MO(f){if(f.dotDotDotToken){let S=f.parent.elements;if(f!==Bu(S))return To(f,j.A_rest_element_must_be_last_in_a_destructuring_pattern);if(OY(S,j.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),f.propertyName)return To(f.name,j.A_rest_element_cannot_have_a_property_name)}if(f.dotDotDotToken&&f.initializer)return gR(f,f.initializer.pos-1,1,j.A_rest_element_cannot_have_an_initializer)}function Alt(f){return Xb(f)||f.kind===224&&f.operator===41&&f.operand.kind===9}function WXt(f){return f.kind===10||f.kind===224&&f.operator===41&&f.operand.kind===10}function zXt(f){if((ba(f)||T_(f)&&Alt(f.argumentExpression))&&Dp(f.expression))return!!(r0(f).flags&1056)}function zEt(f){let S=f.initializer;if(S){let E=!(Alt(S)||zXt(S)||S.kind===112||S.kind===97||WXt(S));if((mk(f)||$c(f)&&Eo(f))&&!f.type){if(E)return To(S,j.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return To(S,j.Initializers_are_not_allowed_in_ambient_contexts)}}function VXt(f){let S=ca(f),E=S&7;if(Uu(f.name))switch(E){case 6:return To(f,j._0_declarations_may_not_have_binding_patterns,"await using");case 4:return To(f,j._0_declarations_may_not_have_binding_patterns,"using")}if(f.parent.parent.kind!==249&&f.parent.parent.kind!==250){if(S&33554432)zEt(f);else if(!f.initializer){if(Uu(f.name)&&!Uu(f.parent))return To(f,j.A_destructuring_declaration_must_have_an_initializer);switch(E){case 6:return To(f,j._0_declarations_must_be_initialized,"await using");case 4:return To(f,j._0_declarations_must_be_initialized,"using");case 2:return To(f,j._0_declarations_must_be_initialized,"const")}}}if(f.exclamationToken&&(f.parent.parent.kind!==243||!f.type||f.initializer||S&33554432)){let P=f.initializer?j.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:f.type?j.A_definite_assignment_assertion_is_not_permitted_in_this_context:j.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return To(f.exclamationToken,P)}return t.getEmitModuleFormatOfFile(Vo(f))<4&&!(f.parent.parent.flags&33554432)&&kc(f.parent.parent,32)&&Plt(f.name),!!E&&VEt(f.name)}function Plt(f){if(f.kind===80){if(Un(f)==="__esModule")return Pze("noEmit",f,j.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{let S=f.elements;for(let E of S)if(!Eh(E))return Plt(E.name)}return!1}function VEt(f){if(f.kind===80){if(f.escapedText==="let")return To(f,j.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{let S=f.elements;for(let E of S)Eh(E)||VEt(E.name)}return!1}function Llt(f){let S=f.declarations;if(OY(f.declarations))return!0;if(!f.declarations.length)return gR(f,S.pos,S.end-S.pos,j.Variable_declaration_list_cannot_be_empty);let E=f.flags&7;return(E===4||E===6)&&gae(f.parent)?To(f,E===4?j.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:j.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration):E===6?jct(f):!1}function HEt(f){switch(f.kind){case 245:case 246:case 247:case 254:case 248:case 249:case 250:return!1;case 256:return HEt(f.parent)}return!0}function HXt(f){if(!HEt(f.parent)){let S=ca(f.declarationList)&7;if(S){let E=S===1?"let":S===2?"const":S===4?"using":S===6?"await using":Se.fail("Unknown BlockScope flag");return To(f,j._0_declarations_can_only_be_declared_inside_a_block,E)}}}function UXt(f){let S=f.name.escapedText;switch(f.keywordToken){case 105:if(S!=="target")return To(f.name,j._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Ba(f.name.escapedText),Ef(f.keywordToken),"target");break;case 102:if(S!=="meta")return To(f.name,j._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Ba(f.name.escapedText),Ef(f.keywordToken),"meta");break}}function hR(f){return f.parseDiagnostics.length>0}function c1(f,S,...E){let P=Vo(f);if(!hR(P)){let z=XD(P,f.pos);return Gu.add(k_(P,z.start,z.length,S,...E)),!0}return!1}function gR(f,S,E,P,...z){let q=Vo(f);return hR(q)?!1:(Gu.add(k_(q,S,E,P,...z)),!0)}function Pze(f,S,E,...P){let z=Vo(S);return hR(z)?!1:(Mk(f,S,E,...P),!0)}function To(f,S,...E){let P=Vo(f);return hR(P)?!1:(Gu.add(ws(f,S,...E)),!0)}function Tbe(f){let S=Ys(f)?j3(f):void 0,E=f.typeParameters||S&&Ed(S);if(E){let P=E.pos===E.end?E.pos:fd(Vo(f).text,E.pos);return gR(f,P,E.end-P,j.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function JXt(f){let S=f.type||WC(f);if(S)return To(S,j.Type_annotation_cannot_appear_on_a_constructor_declaration)}function qXt(f){if(f_(f.name)&&ms(f.name.expression)&&f.name.expression.operatorToken.kind===103)return To(f.parent.members[0],j.A_mapped_type_may_not_declare_properties_or_methods);if(bc(f.parent)){if(Kf(f.name)&&f.name.text==="constructor")return To(f.name,j.Classes_may_not_have_a_field_named_constructor);if(Zde(f.name,j.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(ne<2&&wl(f.name))return To(f.name,j.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(ne<2&&g1(f))return To(f.name,j.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(g1(f)&&Aze(f.questionToken,j.An_accessor_property_cannot_be_declared_optional))return!0}else if(f.parent.kind===264){if(Zde(f.name,j.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(Se.assertNode(f,hx),f.initializer)return To(f.initializer,j.An_interface_property_cannot_have_an_initializer)}else if(Im(f.parent)){if(Zde(f.name,j.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(Se.assertNode(f,hx),f.initializer)return To(f.initializer,j.A_type_literal_property_cannot_have_an_initializer)}if(f.flags&33554432&&zEt(f),vu(f)&&f.exclamationToken&&(!bc(f.parent)||!f.type||f.initializer||f.flags&33554432||Xd(f)||qA(f))){let S=f.initializer?j.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:f.type?j.A_definite_assignment_assertion_is_not_permitted_in_this_context:j.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return To(f.exclamationToken,S)}}function _(f){return f.kind===264||f.kind===265||f.kind===272||f.kind===271||f.kind===278||f.kind===277||f.kind===270||kc(f,2208)?!1:c1(f,j.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function C(f){for(let S of f.statements)if((y1(S)||S.kind===243)&&_(S))return!0;return!1}function D(f){return!!(f.flags&33554432)&&C(f)}function O(f){if(f.flags&33554432){if(!ra(f).hasReportedStatementInAmbientContext&&(iu(f.parent)||O_(f.parent)))return ra(f).hasReportedStatementInAmbientContext=c1(f,j.An_implementation_cannot_be_declared_in_ambient_contexts);if(f.parent.kind===241||f.parent.kind===268||f.parent.kind===307){let E=ra(f.parent);if(!E.hasReportedStatementInAmbientContext)return E.hasReportedStatementInAmbientContext=c1(f,j.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function V(f){let S=_h(f).includes("."),E=f.numericLiteralFlags&16;S||E||+f.text<=2**53-1||Ly(!1,ws(f,j.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function G(f){return!!(!(xk(f.parent)||z2(f.parent)&&xk(f.parent.parent))&&ne<7&&To(f,j.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function ue(f,S,...E){let P=Vo(f);if(!hR(P)){let z=XD(P,f.pos);return Gu.add(k_(P,ag(z),0,S,...E)),!0}return!1}function je(){return td||(td=[],ft.forEach((f,S)=>{qTe.test(S)&&td.push(f)})),td}function et(f){var S;return f.isTypeOnly&&f.name&&f.namedBindings?To(f,j.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):f.isTypeOnly&&((S=f.namedBindings)==null?void 0:S.kind)===275?ot(f.namedBindings):!1}function ot(f){return!!ee(f.elements,S=>{if(S.isTypeOnly)return c1(S,S.kind===276?j.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:j.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)})}function wt(f){if(X.verbatimModuleSyntax&&se===1)return To(f,j.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(se===5)return To(f,j.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext);if(f.typeArguments)return To(f,j.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);let S=f.arguments;if(se!==99&&se!==199&&se!==100&&se!==200&&(OY(S),S.length>1)){let P=S[1];return To(P,j.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_nodenext_or_preserve)}if(S.length===0||S.length>2)return To(f,j.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments);let E=jt(S,yx);return E?To(E,j.Argument_of_dynamic_import_cannot_be_spread_element):!1}function li(f,S){let E=Ls(f);if(E&20&&S.flags&1048576)return jt(S.types,P=>{if(P.flags&524288){let z=E&Ls(P);if(z&4)return f.target===P.target;if(z&16)return!!f.aliasSymbol&&f.aliasSymbol===P.aliasSymbol}return!1})}function ei(f,S){if(Ls(f)&128&&uE(S,AO))return jt(S.types,E=>!AO(E))}function fn(f,S){let E=0;if(kd(f,E).length>0||(E=1,kd(f,E).length>0))return jt(S.types,z=>kd(z,E).length>0)}function Jn(f,S){let E;if(!(f.flags&406978556)){let P=0;for(let z of S.types)if(!(z.flags&406978556)){let q=Qu([JN(f),JN(z)]);if(q.flags&4194304)return z;if(KN(q)||q.flags&1048576){let oe=q.flags&1048576?Tn(q.types,KN):1;oe>=P&&(E=z,P=oe)}}}return E}function Xn(f){if(n0(f,67108864)){let S=cy(f,E=>!(E.flags&402784252));if(!(S.flags&131072))return S}return f}function mo(f,S,E){if(S.flags&1048576&&f.flags&2621440){let P=zje(S,f);if(P)return P;let z=Lp(f);if(z){let q=aE(z,S);if(q){let oe=l1e(S,$i(q,Fe=>[()=>Js(Fe),Fe.escapedName]),E);if(oe!==S)return oe}}}}function So(f){let S=k5(f);return S||(f_(f)?vat(Fb(f.expression)):void 0)}function hs(f){return Bn===f||(Bn=f,mr=iv(f)),mr}function ca(f){return wi===f||(wi=f,Bi=d4(f)),Bi}function Eo(f){let S=ca(f)&7;return S===2||S===4||S===6}function Xo(f,S){let E=X.importHelpers?1:0,P=f?.imports[E];return P&&Se.assert(um(P)&&P.text===S,`Expected sourceFile.imports[${E}] to be the synthesized JSX runtime import`),P}function ds(f){Se.assert(X.importHelpers,"Expected importHelpers to be enabled");let S=f.imports[0];return Se.assert(S&&um(S)&&S.text==="tslib","Expected sourceFile.imports[0] to be the synthesized tslib import"),S}}function sFe(t){return!O_(t)}function g0t(t){return t.kind!==262&&t.kind!==174||!!t.body}function KTe(t){switch(t.parent.kind){case 276:case 281:return Ai(t)||t.kind===11;default:return VT(t)}}var lT;(t=>{t.JSX="JSX",t.IntrinsicElements="IntrinsicElements",t.ElementClass="ElementClass",t.ElementAttributesPropertyNameContainer="ElementAttributesProperty",t.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",t.Element="Element",t.ElementType="ElementType",t.IntrinsicAttributes="IntrinsicAttributes",t.IntrinsicClassAttributes="IntrinsicClassAttributes",t.LibraryManagedAttributes="LibraryManagedAttributes"})(lT||(lT={}));function y0t(t){switch(t){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function Wu(t){return!!(t.flags&1)}function Rf(t){return!!(t.flags&2)}function aFe(t){return{getCommonSourceDirectory:t.getCommonSourceDirectory?()=>t.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>t.getCurrentDirectory(),getSymlinkCache:wu(t,t.getSymlinkCache),getPackageJsonInfoCache:()=>{var n;return(n=t.getPackageJsonInfoCache)==null?void 0:n.call(t)},useCaseSensitiveFileNames:wu(t,t.useCaseSensitiveFileNames),redirectTargetsMap:t.redirectTargetsMap,getProjectReferenceRedirect:n=>t.getProjectReferenceRedirect(n),isSourceOfProjectReferenceRedirect:n=>t.isSourceOfProjectReferenceRedirect(n),fileExists:n=>t.fileExists(n),getFileIncludeReasons:()=>t.getFileIncludeReasons(),readFile:t.readFile?n=>t.readFile(n):void 0,getDefaultResolutionModeForFile:n=>t.getDefaultResolutionModeForFile(n),getModeForResolutionAtIndex:(n,a)=>t.getModeForResolutionAtIndex(n,a)}}var XTe=class Rhi{constructor(n,a,u){this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;for(var m;a instanceof Rhi;)a=a.inner;this.inner=a,this.moduleResolverHost=u,this.context=n,this.canTrackSymbol=!!((m=this.inner)!=null&&m.trackSymbol)}trackSymbol(n,a,u){var m,g;if((m=this.inner)!=null&&m.trackSymbol&&!this.disableTrackSymbol){if(this.inner.trackSymbol(n,a,u))return this.onDiagnosticReported(),!0;n.flags&262144||((g=this.context).trackedSymbols??(g.trackedSymbols=[])).push([n,a,u])}return!1}reportInaccessibleThisError(){var n;(n=this.inner)!=null&&n.reportInaccessibleThisError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(n){var a;(a=this.inner)!=null&&a.reportPrivateInBaseOfClassExpression&&(this.onDiagnosticReported(),this.inner.reportPrivateInBaseOfClassExpression(n))}reportInaccessibleUniqueSymbolError(){var n;(n=this.inner)!=null&&n.reportInaccessibleUniqueSymbolError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleUniqueSymbolError())}reportCyclicStructureError(){var n;(n=this.inner)!=null&&n.reportCyclicStructureError&&(this.onDiagnosticReported(),this.inner.reportCyclicStructureError())}reportLikelyUnsafeImportRequiredError(n){var a;(a=this.inner)!=null&&a.reportLikelyUnsafeImportRequiredError&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(n))}reportTruncationError(){var n;(n=this.inner)!=null&&n.reportTruncationError&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}reportNonlocalAugmentation(n,a,u){var m;(m=this.inner)!=null&&m.reportNonlocalAugmentation&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(n,a,u))}reportNonSerializableProperty(n){var a;(a=this.inner)!=null&&a.reportNonSerializableProperty&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(n))}onDiagnosticReported(){this.context.reportedDiagnostic=!0}reportInferenceFallback(n){var a;(a=this.inner)!=null&&a.reportInferenceFallback&&this.inner.reportInferenceFallback(n)}};function on(t,n,a,u){if(t===void 0)return t;let m=n(t),g;if(m!==void 0)return ua(m)?g=(u||tBt)(m):g=m,Se.assertNode(g,a),g}function ts(t,n,a,u,m){if(t===void 0)return t;let g=t.length;(u===void 0||u<0)&&(u=0),(m===void 0||m>g-u)&&(m=g-u);let v,x=-1,k=-1;u>0||mg-u)&&(m=g-u),uT(t,n,a,u,m)}function uT(t,n,a,u,m){let g,v=t.length;(u>0||m=2&&(m=cFe(m,a)),a.setLexicalEnvironmentFlags(1,!1)),a.suspendLexicalEnvironment(),m}function cFe(t,n){let a;for(let u=0;u{let v=ux,addSource:Ae,setSourceContent:Ge,addName:he,addMapping:$e,appendSourceMap:Ke,toJSON:mt,toString:()=>JSON.stringify(mt())};function Ae(ht){g();let Kt=uH(u,ht,t.getCurrentDirectory(),t.getCanonicalFileName,!0),ni=T.get(Kt);return ni===void 0&&(ni=k.length,k.push(Kt),x.push(ht),T.set(Kt,ni)),v(),ni}function Ge(ht,Kt){if(g(),Kt!==null){for(I||(I=[]);I.lengthKt||Ee===Kt&&xe>ni)}function $e(ht,Kt,ni,Ut,pi,wi){Se.assert(ht>=_e,"generatedLine cannot backtrack"),Se.assert(Kt>=0,"generatedCharacter cannot be negative"),Se.assert(ni===void 0||ni>=0,"sourceIndex cannot be negative"),Se.assert(Ut===void 0||Ut>=0,"sourceLine cannot be negative"),Se.assert(pi===void 0||pi>=0,"sourceCharacter cannot be negative"),g(),(Oe(ht,Kt)||Re(ni,Ut,pi))&&(_t(),_e=ht,ae=Kt,fe=!1,we=!1,Le=!0),ni!==void 0&&Ut!==void 0&&pi!==void 0&&(le=ni,Ee=Ut,xe=pi,fe=!0,wi!==void 0&&(be=wi,we=!0)),v()}function Ke(ht,Kt,ni,Ut,pi,wi){Se.assert(ht>=_e,"generatedLine cannot backtrack"),Se.assert(Kt>=0,"generatedCharacter cannot be negative"),g();let Bi=[],Bn,mr=Zhe(ni.mappings);for(let Ei of mr){if(wi&&(Ei.generatedLine>wi.line||Ei.generatedLine===wi.line&&Ei.generatedCharacter>wi.character))break;if(pi&&(Ei.generatedLine=1024&&ft()}function _t(){if(!(!Le||!qe())){if(g(),U<_e){do rt(59),U++;while(U<_e);$=0}else Se.assertEqual(U,_e,"generatedLine cannot backtrack"),se&&rt(44);ut(ae-$),$=ae,fe&&(ut(le-K),K=le,ut(Ee-re),re=Ee,ut(xe-X),X=xe,we&&(ut(be-ne),ne=be)),se=!0,v()}}function ft(){R.length>0&&(H+=String.fromCharCode.apply(void 0,R),R.length=0)}function mt(){return _t(),ft(),{version:3,file:n,sourceRoot:a,sources:k,names:A,mappings:H,sourcesContent:I}}function ut(ht){ht<0?ht=(-ht<<1)+1:ht=ht<<1;do{let Kt=ht&31;ht=ht>>5,ht>0&&(Kt=Kt|32),rt(dFe(Kt))}while(ht>0)}}var MKe=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,lFe=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,Ek=/^\s*(\/\/[@#] .*)?$/;function iS(t,n){return{getLineCount:()=>n.length,getLineText:a=>t.substring(n[a],n[a+1])}}function Gee(t){for(let n=t.getLineCount()-1;n>=0;n--){let a=t.getLineText(n),u=lFe.exec(a);if(u)return u[1].trimEnd();if(!a.match(Ek))break}}function zo(t){return typeof t=="string"||t===null}function iBt(t){return t!==null&&typeof t=="object"&&t.version===3&&typeof t.file=="string"&&typeof t.mappings=="string"&&ua(t.sources)&&Yt(t.sources,Yu)&&(t.sourceRoot===void 0||t.sourceRoot===null||typeof t.sourceRoot=="string")&&(t.sourcesContent===void 0||t.sourcesContent===null||ua(t.sourcesContent)&&Yt(t.sourcesContent,zo))&&(t.names===void 0||t.names===null||ua(t.names)&&Yt(t.names,Yu))}function RKe(t){try{let n=JSON.parse(t);if(iBt(n))return n}catch{}}function Zhe(t){let n=!1,a=0,u=0,m=0,g=0,v=0,x=0,k=0,T;return{get pos(){return a},get error(){return T},get state(){return I(!0,!0)},next(){for(;!n&&a=t.length)return M("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;let ne=fFe(t.charCodeAt(a));if(ne===-1)return M("Invalid character in VLQ"),-1;K=(ne&32)!==0,X=X|(ne&31)<>1,X=-X):X=X>>1,X}}function uFe(t,n){return t===n||t.generatedLine===n.generatedLine&&t.generatedCharacter===n.generatedCharacter&&t.sourceIndex===n.sourceIndex&&t.sourceLine===n.sourceLine&&t.sourceCharacter===n.sourceCharacter&&t.nameIndex===n.nameIndex}function ege(t){return t.sourceIndex!==void 0&&t.sourceLine!==void 0&&t.sourceCharacter!==void 0}function dFe(t){return t>=0&&t<26?65+t:t>=26&&t<52?97+t-26:t>=52&&t<62?48+t-52:t===62?43:t===63?47:Se.fail(`${t}: not a base64 value`)}function fFe(t){return t>=65&&t<=90?t-65:t>=97&&t<=122?t-97+26:t>=48&&t<=57?t-48+52:t===43?62:t===47?63:-1}function _Fe(t){return t.sourceIndex!==void 0&&t.sourcePosition!==void 0}function v0t(t,n){return t.generatedPosition===n.generatedPosition&&t.sourceIndex===n.sourceIndex&&t.sourcePosition===n.sourcePosition}function BKe(t,n){return Se.assert(t.sourceIndex===n.sourceIndex),m_(t.sourcePosition,n.sourcePosition)}function jKe(t,n){return m_(t.generatedPosition,n.generatedPosition)}function pFe(t){return t.sourcePosition}function b0t(t){return t.generatedPosition}function QTe(t,n,a){let u=Cc(a),m=n.sourceRoot?tu(n.sourceRoot,u):u,g=tu(n.file,u),v=t.getSourceFileLike(g),x=n.sources.map(re=>tu(re,m)),k=new Map(x.map((re,X)=>[t.getCanonicalFileName(re),X])),T,I,A;return{getSourcePosition:K,getGeneratedPosition:$};function M(re){let X=v!==void 0?ppe(v,re.generatedLine,re.generatedCharacter,!0):-1,ne,se;if(ege(re)){let _e=t.getSourceFileLike(x[re.sourceIndex]);ne=n.sources[re.sourceIndex],se=_e!==void 0?ppe(_e,re.sourceLine,re.sourceCharacter,!0):-1}return{generatedPosition:X,source:ne,sourceIndex:re.sourceIndex,sourcePosition:se,nameIndex:re.nameIndex}}function R(){if(T===void 0){let re=Zhe(n.mappings),X=tc(re,M);re.error!==void 0?(t.log&&t.log(`Encountered error while decoding sourcemap: ${re.error}`),T=F):T=X}return T}function H(re){if(A===void 0){let X=[];for(let ne of R()){if(!_Fe(ne))continue;let se=X[ne.sourceIndex];se||(X[ne.sourceIndex]=se=[]),se.push(ne)}A=X.map(ne=>tr(ne,BKe,v0t))}return A[re]}function U(){if(I===void 0){let re=[];for(let X of R())re.push(X);I=tr(re,jKe,v0t)}return I}function $(re){let X=k.get(t.getCanonicalFileName(re.fileName));if(X===void 0)return re;let ne=H(X);if(!En(ne))return re;let se=Zu(ne,re.pos,pFe,m_);se<0&&(se=~se);let _e=ne[se];return _e===void 0||_e.sourceIndex!==X?re:{fileName:g,pos:_e.generatedPosition}}function K(re){let X=U();if(!En(X))return re;let ne=Zu(X,re.pos,b0t,m_);ne<0&&(ne=~ne);let se=X[ne];return se===void 0||!_Fe(se)?re:{fileName:x[se.sourceIndex],pos:se.sourcePosition}}}var mFe={getSourcePosition:ps,getGeneratedPosition:ps};function rC(t){return t=Gm(t),t?pp(t):0}function WKe(t){return!t||!_p(t)&&!QT(t)?!1:En(t.elements,zKe)}function zKe(t){return MC(t.propertyName||t.name)}function kN(t,n){return a;function a(m){return m.kind===307?n(m):u(m)}function u(m){return t.factory.createBundle($i(m.sourceFiles,n))}}function VKe(t){return!!E8(t)}function ZTe(t){if(E8(t))return!0;let n=t.importClause&&t.importClause.namedBindings;if(!n||!_p(n))return!1;let a=0;for(let u of n.elements)zKe(u)&&a++;return a>0&&a!==n.elements.length||!!(n.elements.length-a)&&N3(t)}function hFe(t){return!ZTe(t)&&(N3(t)||!!t.importClause&&_p(t.importClause.namedBindings)&&WKe(t.importClause.namedBindings))}function tge(t,n){let a=t.getEmitResolver(),u=t.getCompilerOptions(),m=[],g=new S0t,v=[],x=new Map,k=new Set,T,I=!1,A,M=!1,R=!1,H=!1;for(let re of n.statements)switch(re.kind){case 272:m.push(re),!R&&ZTe(re)&&(R=!0),!H&&hFe(re)&&(H=!0);break;case 271:re.moduleReference.kind===283&&m.push(re);break;case 278:if(re.moduleSpecifier)if(!re.exportClause)m.push(re),M=!0;else if(m.push(re),QT(re.exportClause))$(re),H||(H=WKe(re.exportClause));else{let X=re.exportClause.name,ne=Kw(X);x.get(ne)||(Yv(v,rC(re),X),x.set(ne,!0),T=ar(T,X)),R=!0}else $(re);break;case 277:re.isExportEquals&&!A&&(A=re);break;case 243:if(kc(re,32))for(let X of re.declarationList.declarations)T=e2e(X,x,T,v);break;case 262:kc(re,32)&&K(re,void 0,kc(re,2048));break;case 263:if(kc(re,32))if(kc(re,2048))I||(Yv(v,rC(re),t.factory.getDeclarationName(re)),I=!0);else{let X=re.name;X&&!x.get(Un(X))&&(Yv(v,rC(re),X),x.set(Un(X),!0),T=ar(T,X))}break}let U=EU(t.factory,t.getEmitHelperFactory(),n,u,M,R,H);return U&&m.unshift(U),{externalImports:m,exportSpecifiers:g,exportEquals:A,hasExportStarsToExportValues:M,exportedBindings:v,exportedNames:T,exportedFunctions:k,externalHelpersImportDeclaration:U};function $(re){for(let X of $d(re.exportClause,QT).elements){let ne=Kw(X.name);if(!x.get(ne)){let se=X.propertyName||X.name;if(se.kind!==11){re.moduleSpecifier||g.add(se,X);let _e=a.getReferencedImportDeclaration(se)||a.getReferencedValueDeclaration(se);if(_e){if(_e.kind===262){K(_e,X.name,MC(X.name));continue}Yv(v,rC(_e),X.name)}}x.set(ne,!0),T=ar(T,X.name)}}}function K(re,X,ne){if(k.add(Gm(re,fp)),ne)I||(Yv(v,rC(re),X??t.factory.getDeclarationName(re)),I=!0);else{X??(X=re.name);let se=Kw(X);x.get(se)||(Yv(v,rC(re),X),x.set(se,!0))}}}function e2e(t,n,a,u){if(Uu(t.name))for(let m of t.name.elements)Eh(m)||(a=e2e(m,n,a,u));else if(!Tm(t.name)){let m=Un(t.name);n.get(m)||(n.set(m,!0),a=ar(a,t.name),sI(t.name)&&Yv(u,rC(t),t.name))}return a}function Yv(t,n,a){let u=t[n];return u?u.push(a):t[n]=u=[a],u}var NK=class Ebe{constructor(){this._map=new Map}get size(){return this._map.size}has(n){return this._map.has(Ebe.toKey(n))}get(n){return this._map.get(Ebe.toKey(n))}set(n,a){return this._map.set(Ebe.toKey(n),a),this}delete(n){var a;return((a=this._map)==null?void 0:a.delete(Ebe.toKey(n)))??!1}clear(){this._map.clear()}values(){return this._map.values()}static toKey(n){if(FA(n)||Tm(n)){let a=n.emitNode.autoGenerate;if((a.flags&7)===4){let u=uhe(n),m=qD(u)&&u!==n?Ebe.toKey(u):`(generated@${pp(u)})`;return rF(!1,a.prefix,m,a.suffix,Ebe.toKey)}else{let u=`(auto@${a.id})`;return rF(!1,a.prefix,u,a.suffix,Ebe.toKey)}}return wl(n)?Un(n).slice(1):Un(n)}},S0t=class extends NK{add(t,n){let a=this.get(t);return a?a.push(n):this.set(t,a=[n]),a}remove(t,n){let a=this.get(t);a&&(N$(a,n),a.length||this.delete(t))}};function Sx(t){return i_(t)||t.kind===9||Gv(t.kind)||Ai(t)}function cI(t){return!Ai(t)&&Sx(t)}function kW(t){return t>=65&&t<=79}function VU(t){switch(t){case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 45;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 75:return 52;case 79:return 53;case 76:return 57;case 77:return 56;case 78:return 61}}function Kee(t){if(!E0(t))return;let n=J_(t.expression);return m5(n)?n:void 0}function HKe(t,n,a){for(let u=n;uaP(u,n,a))}function UKe(t){return ace(t)||Yf(t)}function cO(t){return Qn(t.members,UKe)}function aP(t,n,a){return vu(t)&&(!!t.initializer||!n)&&G0(t)===a}function ace(t){return vu(t)&&G0(t)}function n9(t){return t.kind===172&&t.initializer!==void 0}function cce(t){return!Xd(t)&&(p4(t)||g1(t))&&wl(t.name)}function gFe(t){let n;if(t){let a=t.parameters,u=a.length>0&&B3(a[0]),m=u?1:0,g=u?a.length-1:a.length;for(let v=0;vnge(a.privateEnv,n))}function t2e(t){return!t.initializer&&Ai(t.name)}function oge(t){return Yt(t,t2e)}var yFe=(t=>(t[t.All=0]="All",t[t.ObjectRest=1]="ObjectRest",t))(yFe||{});function HU(t,n,a,u,m,g){let v=t,x;if(z3(t))for(x=t.right;VC(t.left)||nm(t.left);)if(z3(x))v=t=x,x=t.right;else return Se.checkDefined(on(x,n,An));let k,T={context:a,level:u,downlevelIteration:!!a.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:I,emitBindingOrAssignment:A,createArrayBindingOrAssignmentPattern:M=>IW(a.factory,M),createObjectBindingOrAssignmentPattern:M=>cBt(a.factory,M),createArrayBindingOrAssignmentElement:x0t,visitor:n};if(x&&(x=on(x,n,An),Se.assert(x),Ai(x)&&i2e(t,x.escapedText)||sge(t)?x=DW(T,x,!1,v):m?x=DW(T,x,!0,v):um(t)&&(v=x)),AK(T,t,x,v,z3(t)),x&&m){if(!En(k))return x;k.push(x)}return a.factory.inlineExpressions(k)||a.factory.createOmittedExpression();function I(M){k=ar(k,M)}function A(M,R,H,U){Se.assertNode(M,g?Ai:An);let $=g?g(M,R,H):Fn(a.factory.createAssignment(Se.checkDefined(on(M,n,An)),R),H);$.original=U,I($)}}function i2e(t,n){let a=M4(t);return $D(a)?JKe(a,n):Ai(a)?a.escapedText===n:!1}function JKe(t,n){let a=pL(t);for(let u of a)if(i2e(u,n))return!0;return!1}function sge(t){let n=Dae(t);if(n&&f_(n)&&!B6(n.expression))return!0;let a=M4(t);return!!a&&$D(a)&&UU(a)}function UU(t){return!!ee(pL(t),sge)}function CM(t,n,a,u,m,g=!1,v){let x,k=[],T=[],I={context:a,level:u,downlevelIteration:!!a.getCompilerOptions().downlevelIteration,hoistTempVariables:g,emitExpression:A,emitBindingOrAssignment:M,createArrayBindingOrAssignmentPattern:R=>aBt(a.factory,R),createObjectBindingOrAssignmentPattern:R=>lce(a.factory,R),createArrayBindingOrAssignmentElement:R=>lBt(a.factory,R),visitor:n};if($c(t)){let R=Av(t);R&&(Ai(R)&&i2e(t,R.escapedText)||sge(t))&&(R=DW(I,Se.checkDefined(on(R,I.visitor,An)),!1,R),t=a.factory.updateVariableDeclaration(t,t.name,void 0,void 0,R))}if(AK(I,t,m,t,v),x){let R=a.factory.createTempVariable(void 0);if(g){let H=a.factory.inlineExpressions(x);x=void 0,M(R,H,void 0,void 0)}else{a.hoistVariableDeclaration(R);let H=Bu(k);H.pendingExpressions=ar(H.pendingExpressions,a.factory.createAssignment(R,H.value)),Ho(H.pendingExpressions,x),H.value=R}}for(let{pendingExpressions:R,name:H,value:U,location:$,original:K}of k){let re=a.factory.createVariableDeclaration(H,void 0,void 0,R?a.factory.inlineExpressions(ar(R,U)):U);re.original=K,Fn(re,$),T.push(re)}return T;function A(R){x=ar(x,R)}function M(R,H,U,$){Se.assertNode(R,_4),x&&(H=a.factory.inlineExpressions(ar(x,H)),x=void 0),k.push({pendingExpressions:x,name:R,value:H,location:U,original:$})}}function AK(t,n,a,u,m){let g=M4(n);if(!m){let v=on(Av(n),t.visitor,An);v?a?(a=$Ke(t,a,v,u),!cI(v)&&$D(g)&&(a=DW(t,a,!0,u))):a=v:a||(a=t.context.factory.createVoidZero())}Yc(g)?age(t,n,g,a,u):gd(g)?qKe(t,n,g,a,u):t.emitBindingOrAssignment(g,a,u,n)}function age(t,n,a,u,m){let g=pL(a),v=g.length;if(v!==1){let T=!V6(n)||v!==0;u=DW(t,u,T,m)}let x,k;for(let T=0;T=1&&!(I.transformFlags&98304)&&!(M4(I).transformFlags&98304)&&!f_(A))x=ar(x,on(I,t.visitor,Joe));else{x&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(x),u,m,a),x=void 0);let M=sBt(t,u,A);f_(A)&&(k=ar(k,M.argumentExpression)),AK(t,I,M,I)}}}x&&t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(x),u,m,a)}function qKe(t,n,a,u,m){let g=pL(a),v=g.length;if(t.level<1&&t.downlevelIteration)u=DW(t,Fn(t.context.getEmitHelperFactory().createReadHelper(u,v>0&&Tae(g[v-1])?void 0:v),m),!1,m);else if(v!==1&&(t.level<1||v===0)||Yt(g,Eh)){let T=!V6(n)||v!==0;u=DW(t,u,T,m)}let x,k;for(let T=0;T=1)if(I.transformFlags&65536||t.hasTransformedPriorElement&&!EW(I)){t.hasTransformedPriorElement=!0;let A=t.context.factory.createTempVariable(void 0);t.hoistTempVariables&&t.context.hoistVariableDeclaration(A),k=ar(k,[A,I]),x=ar(x,t.createArrayBindingOrAssignmentElement(A))}else x=ar(x,I);else{if(Eh(I))continue;if(Tae(I)){if(T===v-1){let A=t.context.factory.createArraySliceCall(u,T);AK(t,I,A,I)}}else{let A=t.context.factory.createElementAccessExpression(u,T);AK(t,I,A,I)}}}if(x&&t.emitBindingOrAssignment(t.createArrayBindingOrAssignmentPattern(x),u,m,a),k)for(let[T,I]of k)AK(t,I,T,I)}function EW(t){let n=M4(t);if(!n||Eh(n))return!0;let a=Dae(t);if(a&&!Xp(a))return!1;let u=Av(t);return u&&!cI(u)?!1:$D(n)?Yt(pL(n),EW):Ai(n)}function $Ke(t,n,a,u){return n=DW(t,n,!0,u),t.context.factory.createConditionalExpression(t.context.factory.createTypeCheck(n,"undefined"),void 0,a,void 0,n)}function sBt(t,n,a){let{factory:u}=t.context;if(f_(a)){let m=DW(t,Se.checkDefined(on(a.expression,t.visitor,An)),!1,a);return t.context.factory.createElementAccessExpression(n,m)}else if(Xb(a)||ZG(a)){let m=u.cloneNode(a);return t.context.factory.createElementAccessExpression(n,m)}else{let m=t.context.factory.createIdentifier(Un(a));return t.context.factory.createPropertyAccessExpression(n,m)}}function DW(t,n,a,u){if(Ai(n)&&a)return n;{let m=t.context.factory.createTempVariable(void 0);return t.hoistTempVariables?(t.context.hoistVariableDeclaration(m),t.emitExpression(Fn(t.context.factory.createAssignment(m,n),u))):t.emitBindingOrAssignment(m,n,u,void 0),m}}function aBt(t,n){return Se.assertEachNode(n,Em),t.createArrayBindingPattern(n)}function IW(t,n){return Se.assertEachNode(n,a5),t.createArrayLiteralExpression($i(n,t.converters.convertToArrayAssignmentElement))}function lce(t,n){return Se.assertEachNode(n,Zd),t.createObjectBindingPattern(n)}function cBt(t,n){return Se.assertEachNode(n,_Z),t.createObjectLiteralExpression($i(n,t.converters.convertToObjectAssignmentElement))}function lBt(t,n){return t.createBindingElement(void 0,void 0,n)}function x0t(t){return t}function uBt(t,n,a=t.createThis()){let u=t.createAssignment(n,a),m=t.createExpressionStatement(u),g=t.createBlock([m],!1),v=t.createClassStaticBlockDeclaration(g);return Iv(v).classThis=n,v}function uce(t){var n;if(!Yf(t)||t.body.statements.length!==1)return!1;let a=t.body.statements[0];return E0(a)&&Kg(a.expression,!0)&&Ai(a.expression.left)&&((n=t.emitNode)==null?void 0:n.classThis)===a.expression.left&&a.expression.right.kind===110}function o9(t){var n;return!!((n=t.emitNode)!=null&&n.classThis)&&En(t.members,uce)}function GKe(t,n,a,u){if(o9(n))return n;let m=uBt(t,a,u);n.name&&w_(m.body.statements[0],n.name);let g=t.createNodeArray([m,...n.members]);Fn(g,n.members);let v=D0(n)?t.updateClassDeclaration(n,n.modifiers,n.name,n.typeParameters,n.heritageClauses,g):t.updateClassExpression(n,n.modifiers,n.name,n.typeParameters,n.heritageClauses,g);return Iv(v).classThis=a,v}function n2e(t,n,a){let u=Gm(ug(a));return(D0(u)||fp(u))&&!u.name&&kc(u,2048)?t.createStringLiteral("default"):t.createStringLiteralFromNode(n)}function C0t(t,n,a){let{factory:u}=t;if(a!==void 0)return{assignedName:u.createStringLiteral(a),name:n};if(Xp(n)||wl(n))return{assignedName:u.createStringLiteralFromNode(n),name:n};if(Xp(n.expression)&&!Ai(n.expression))return{assignedName:u.createStringLiteralFromNode(n.expression),name:n};let m=u.getGeneratedNameForNode(n);t.hoistVariableDeclaration(m);let g=t.getEmitHelperFactory().createPropKeyHelper(n.expression),v=u.createAssignment(m,g),x=u.updateComputedPropertyName(n,v);return{assignedName:m,name:x}}function dBt(t,n,a=t.factory.createThis()){let{factory:u}=t,m=t.getEmitHelperFactory().createSetFunctionNameHelper(a,n),g=u.createExpressionStatement(m),v=u.createBlock([g],!1),x=u.createClassStaticBlockDeclaration(v);return Iv(x).assignedName=n,x}function PK(t){var n;if(!Yf(t)||t.body.statements.length!==1)return!1;let a=t.body.statements[0];return E0(a)&&QG(a.expression,"___setFunctionName")&&a.expression.arguments.length>=2&&a.expression.arguments[1]===((n=t.emitNode)==null?void 0:n.assignedName)}function r2e(t){var n;return!!((n=t.emitNode)!=null&&n.assignedName)&&En(t.members,PK)}function cge(t){return!!t.name||r2e(t)}function NW(t,n,a,u){if(r2e(n))return n;let{factory:m}=t,g=dBt(t,a,u);n.name&&w_(g.body.statements[0],n.name);let v=_n(n.members,uce)+1,x=n.members.slice(0,v),k=n.members.slice(v),T=m.createNodeArray([...x,g,...k]);return Fn(T,n.members),n=D0(n)?m.updateClassDeclaration(n,n.modifiers,n.name,n.typeParameters,n.heritageClauses,T):m.updateClassExpression(n,n.modifiers,n.name,n.typeParameters,n.heritageClauses,T),Iv(n).assignedName=a,n}function AW(t,n,a,u){if(u&&Kf(a)&&uG(a))return n;let{factory:m}=t,g=ug(n),v=Qh(g)?$d(NW(t,g,a),Qh):t.getEmitHelperFactory().createSetFunctionNameHelper(g,a);return m.restoreOuterExpressions(n,v)}function KKe(t,n,a,u){let{factory:m}=t,{assignedName:g,name:v}=C0t(t,n.name,u),x=AW(t,n.initializer,g,a);return m.updatePropertyAssignment(n,v,x)}function dce(t,n,a,u){let{factory:m}=t,g=u!==void 0?m.createStringLiteral(u):n2e(m,n.name,n.objectAssignmentInitializer),v=AW(t,n.objectAssignmentInitializer,g,a);return m.updateShorthandPropertyAssignment(n,n.name,v)}function k0t(t,n,a,u){let{factory:m}=t,g=u!==void 0?m.createStringLiteral(u):n2e(m,n.name,n.initializer),v=AW(t,n.initializer,g,a);return m.updateVariableDeclaration(n,n.name,n.exclamationToken,n.type,v)}function XKe(t,n,a,u){let{factory:m}=t,g=u!==void 0?m.createStringLiteral(u):n2e(m,n.name,n.initializer),v=AW(t,n.initializer,g,a);return m.updateParameterDeclaration(n,n.modifiers,n.dotDotDotToken,n.name,n.questionToken,n.type,v)}function LK(t,n,a,u){let{factory:m}=t,g=u!==void 0?m.createStringLiteral(u):n2e(m,n.name,n.initializer),v=AW(t,n.initializer,g,a);return m.updateBindingElement(n,n.dotDotDotToken,n.propertyName,n.name,v)}function o2e(t,n,a,u){let{factory:m}=t,{assignedName:g,name:v}=C0t(t,n.name,u),x=AW(t,n.initializer,g,a);return m.updatePropertyDeclaration(n,n.modifiers,v,n.questionToken??n.exclamationToken,n.type,x)}function vFe(t,n,a,u){let{factory:m}=t,g=u!==void 0?m.createStringLiteral(u):n2e(m,n.left,n.right),v=AW(t,n.right,g,a);return m.updateBinaryExpression(n,n.left,n.operatorToken,v)}function s2e(t,n,a,u){let{factory:m}=t,g=u!==void 0?m.createStringLiteral(u):m.createStringLiteral(n.isExportEquals?"":"default"),v=AW(t,n.expression,g,a);return m.updateExportAssignment(n,n.modifiers,v)}function mb(t,n,a,u){switch(n.kind){case 303:return KKe(t,n,a,u);case 304:return dce(t,n,a,u);case 260:return k0t(t,n,a,u);case 169:return XKe(t,n,a,u);case 208:return LK(t,n,a,u);case 172:return o2e(t,n,a,u);case 226:return vFe(t,n,a,u);case 277:return s2e(t,n,a,u)}}var YKe=(t=>(t[t.LiftRestriction=0]="LiftRestriction",t[t.All=1]="All",t))(YKe||{});function bFe(t,n,a,u,m,g){let v=on(n.tag,a,An);Se.assert(v);let x=[void 0],k=[],T=[],I=n.template;if(g===0&&!zH(I))return Fo(n,a,t);let{factory:A}=t;if(z5(I))k.push(QKe(A,I)),T.push(ZKe(A,I,u));else{k.push(QKe(A,I.head)),T.push(ZKe(A,I.head,u));for(let R of I.templateSpans)k.push(QKe(A,R.literal)),T.push(ZKe(A,R.literal,u)),x.push(Se.checkDefined(on(R.expression,a,An)))}let M=t.getEmitHelperFactory().createTemplateObjectHelper(A.createArrayLiteralExpression(k),A.createArrayLiteralExpression(T));if(Mg(u)){let R=A.createUniqueName("templateObject");m(R),x[0]=A.createLogicalOr(R,A.createAssignment(R,M))}else x[0]=M;return A.createCallExpression(v,void 0,x)}function QKe(t,n){return n.templateFlags&26656?t.createVoidZero():t.createStringLiteral(n.text)}function ZKe(t,n,a){let u=n.rawText;if(u===void 0){Se.assertIsDefined(a,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),u=S8(a,n);let m=n.kind===15||n.kind===18;u=u.substring(1,u.length-(m?1:2))}return u=u.replace(/\r\n?/g,` +`),Fn(t.createStringLiteral(u),n)}var fBt=!1;function eXe(t){let{factory:n,getEmitHelperFactory:a,startLexicalEnvironment:u,resumeLexicalEnvironment:m,endLexicalEnvironment:g,hoistVariableDeclaration:v}=t,x=t.getEmitResolver(),k=t.getCompilerOptions(),T=h_(k),I=b1(k),A=!!k.experimentalDecorators,M=k.emitDecoratorMetadata?a2e(t):void 0,R=t.onEmitNode,H=t.onSubstituteNode;t.onEmitNode=Aa,t.onSubstituteNode=gr,t.enableSubstitution(211),t.enableSubstitution(212);let U,$,K,re,X,ne,se;return _e;function _e(ke){return ke.kind===308?ae(ke):le(ke)}function ae(ke){return n.createBundle(ke.sourceFiles.map(le))}function le(ke){if(ke.isDeclarationFile)return ke;U=ke;let Qt=Ee(ke,ut);return bk(Qt,t.readEmitHelpers()),U=void 0,Qt}function Ee(ke,Qt){let oi=re,nn=X;xe(ke);let hr=Qt(ke);return re!==oi&&(X=nn),re=oi,hr}function xe(ke){switch(ke.kind){case 307:case 269:case 268:case 241:re=ke,X=void 0;break;case 263:case 262:if(kc(ke,128))break;ke.name?at(ke):Se.assert(ke.kind===263||kc(ke,2048));break}}function be(ke){return Ee(ke,Le)}function Le(ke){return ke.transformFlags&1?mt(ke):ke}function fe(ke){return Ee(ke,we)}function we(ke){switch(ke.kind){case 272:case 271:case 277:case 278:return Ge(ke);default:return Le(ke)}}function Ae(ke){let Qt=ju(ke);if(Qt===ke||Bm(ke))return!1;if(!Qt||Qt.kind!==ke.kind)return!0;switch(ke.kind){case 272:if(Se.assertNode(Qt,Dd),ke.importClause!==Qt.importClause||ke.attributes!==Qt.attributes)return!0;break;case 271:if(Se.assertNode(Qt,pf),ke.name!==Qt.name||ke.isTypeOnly!==Qt.isTypeOnly||ke.moduleReference!==Qt.moduleReference&&(tb(ke.moduleReference)||tb(Qt.moduleReference)))return!0;break;case 278:if(Se.assertNode(Qt,Qg),ke.exportClause!==Qt.exportClause||ke.attributes!==Qt.attributes)return!0;break}return!1}function Ge(ke){if(Ae(ke))return ke.transformFlags&1?Fo(ke,be,t):ke;switch(ke.kind){case 272:return In(ke);case 271:return Nr(ke);case 277:return Cn(ke);case 278:return cn(ke);default:Se.fail("Unhandled ellided statement")}}function he(ke){return Ee(ke,Oe)}function Oe(ke){if(!(ke.kind===278||ke.kind===272||ke.kind===273||ke.kind===271&&ke.moduleReference.kind===283))return ke.transformFlags&1||kc(ke,32)?mt(ke):ke}function Re(ke){return Qt=>Ee(Qt,oi=>$e(oi,ke))}function $e(ke,Qt){switch(ke.kind){case 176:return gn(ke);case 172:return ci(ke,Qt);case 177:return Pi(ke,Qt);case 178:return qi(ke,Qt);case 174:return Mn(ke,Qt);case 175:return Fo(ke,be,t);case 240:return ke;case 181:return;default:return Se.failBadSyntaxKind(ke)}}function Ke(ke){return Qt=>Ee(Qt,oi=>qe(oi,ke))}function qe(ke,Qt){switch(ke.kind){case 303:case 304:case 305:return be(ke);case 177:return Pi(ke,Qt);case 178:return qi(ke,Qt);case 174:return Mn(ke,Qt);default:return Se.failBadSyntaxKind(ke)}}function rt(ke){return Cy(ke)?void 0:be(ke)}function _t(ke){return jd(ke)?void 0:be(ke)}function ft(ke){if(!Cy(ke)&&!(Vy(ke.kind)&28895)&&!($&&ke.kind===95))return ke}function mt(ke){if(ll(ke)&&kc(ke,128))return n.createNotEmittedStatement(ke);switch(ke.kind){case 95:case 90:return $?void 0:ke;case 125:case 123:case 124:case 128:case 164:case 87:case 138:case 148:case 103:case 147:case 188:case 189:case 190:case 191:case 187:case 182:case 168:case 133:case 159:case 136:case 154:case 150:case 146:case 116:case 155:case 185:case 184:case 186:case 183:case 192:case 193:case 194:case 196:case 197:case 198:case 199:case 200:case 201:case 181:return;case 265:return n.createNotEmittedStatement(ke);case 270:return;case 264:return n.createNotEmittedStatement(ke);case 263:return pi(ke);case 231:return wi(ke);case 298:return mn(ke);case 233:return Nn(ke);case 210:return ht(ke);case 176:case 172:case 174:case 177:case 178:case 175:return Se.fail("Class and object literal elements must be visited with their respective visitors");case 262:return lt(ke);case 218:return Xi(ke);case 219:return nt(ke);case 169:return Lt(ke);case 217:return Tt(ke);case 216:case 234:return dt(ke);case 238:return pt(ke);case 213:return Gt(ke);case 214:return Mt(ke);case 215:return hi(ke);case 235:return Wt(ke);case 266:return Ue(ke);case 243:return Pe(ke);case 260:return Ve(ke);case 267:return Ot(ke);case 271:return Nr(ke);case 285:return Ie(ke);case 286:return Bt(ke);default:return Fo(ke,be,t)}}function ut(ke){let Qt=d0(k,"alwaysStrict")&&!(Mg(ke)&&I>=5)&&!qv(ke);return n.updateSourceFile(ke,YTe(ke.statements,fe,t,0,Qt))}function ht(ke){return n.updateObjectLiteralExpression(ke,ts(ke.properties,Ke(ke),FC))}function Kt(ke){let Qt=0;En(TW(ke,!0,!0))&&(Qt|=1);let oi=HE(ke);return oi&&ug(oi.expression).kind!==106&&(Qt|=64),aN(A,ke)&&(Qt|=2),vj(A,ke)&&(Qt|=4),Vr(ke)?Qt|=8:pa(ke)?Qt|=32:Ts(ke)&&(Qt|=16),Qt}function ni(ke){return!!(ke.transformFlags&8192)}function Ut(ke){return uw(ke)||En(ke.typeParameters)||En(ke.heritageClauses,ni)||En(ke.members,ni)}function pi(ke){let Qt=Kt(ke),oi=T<=1&&!!(Qt&7);if(!Ut(ke)&&!aN(A,ke)&&!Vr(ke))return n.updateClassDeclaration(ke,ts(ke.modifiers,ft,jd),ke.name,void 0,ts(ke.heritageClauses,be,KC),ts(ke.members,Re(ke),rl));oi&&t.startLexicalEnvironment();let nn=oi||Qt&8,hr=nn?ts(ke.modifiers,_t,Fm):ts(ke.modifiers,be,Fm);Qt&2&&(hr=Bn(hr,ke));let Er=nn&&!ke.name||Qt&4||Qt&1?ke.name??n.getGeneratedNameForNode(ke):ke.name,is=n.updateClassDeclaration(ke,hr,Er,void 0,ts(ke.heritageClauses,be,KC),Bi(ke)),zs=N_(ke);Qt&1&&(zs|=64),De(is,zs);let da;if(oi){let cu=[is],ru=tU(fd(U.text,ke.members.end),20),mf=n.getInternalName(ke),B_=n.createPartiallyEmittedExpression(mf);Gj(B_,ru.end),De(B_,3072);let vd=n.createReturnStatement(B_);qG(vd,ru.pos),De(vd,3840),cu.push(vd),rv(cu,t.endLexicalEnvironment());let td=n.createImmediatelyInvokedArrowFunction(cu);aae(td,1);let rp=n.createVariableDeclaration(n.getLocalName(ke,!1,!1),void 0,void 0,td);Wo(rp,ke);let _i=n.createVariableStatement(void 0,n.createVariableDeclarationList([rp],1));Wo(_i,ke),Xg(_i,ke),w_(_i,I4(ke)),T1(_i),da=_i}else da=is;if(nn){if(Qt&8)return[da,Nc(ke)];if(Qt&32)return[da,n.createExportDefault(n.getLocalName(ke,!1,!0))];if(Qt&16)return[da,n.createExternalModuleExport(n.getDeclarationName(ke,!1,!0))]}return da}function wi(ke){let Qt=ts(ke.modifiers,_t,Fm);return aN(A,ke)&&(Qt=Bn(Qt,ke)),n.updateClassExpression(ke,Qt,ke.name,void 0,ts(ke.heritageClauses,be,KC),Bi(ke))}function Bi(ke){let Qt=ts(ke.members,Re(ke),rl),oi,nn=eI(ke),hr=nn&&Qn(nn.parameters,io=>OC(io,nn));if(hr)for(let io of hr){let Er=n.createPropertyDeclaration(void 0,io.name,void 0,void 0,void 0);Wo(Er,io),oi=ar(oi,Er)}return oi?(oi=Ho(oi,Qt),Fn(n.createNodeArray(oi),ke.members)):Qt}function Bn(ke,Qt){let oi=Ei(Qt,Qt);if(En(oi)){let nn=[];Ho(nn,zQ(ke,lhe)),Ho(nn,Qn(ke,Cy)),Ho(nn,oi),Ho(nn,Qn(sw(ke,lhe),jd)),ke=Fn(n.createNodeArray(nn),ke)}return ke}function mr(ke,Qt,oi){if(bc(oi)&&bj(A,Qt,oi)){let nn=Ei(Qt,oi);if(En(nn)){let hr=[];Ho(hr,Qn(ke,Cy)),Ho(hr,nn),Ho(hr,Qn(ke,jd)),ke=Fn(n.createNodeArray(hr),ke)}}return ke}function Ei(ke,Qt){if(A)return fBt?zr(ke,Qt):zn(ke,Qt)}function zn(ke,Qt){if(M){let oi;if(xr(ke)){let nn=a().createMetadataHelper("design:type",M.serializeTypeOfNode({currentLexicalScope:re,currentNameScope:Qt},ke,Qt));oi=ar(oi,n.createDecorator(nn))}if(_r(ke)){let nn=a().createMetadataHelper("design:paramtypes",M.serializeParameterTypesOfNode({currentLexicalScope:re,currentNameScope:Qt},ke,Qt));oi=ar(oi,n.createDecorator(nn))}if(lo(ke)){let nn=a().createMetadataHelper("design:returntype",M.serializeReturnTypeOfNode({currentLexicalScope:re,currentNameScope:Qt},ke));oi=ar(oi,n.createDecorator(nn))}return oi}}function zr(ke,Qt){if(M){let oi;if(xr(ke)){let nn=n.createPropertyAssignment("type",n.createArrowFunction(void 0,void 0,[],void 0,n.createToken(39),M.serializeTypeOfNode({currentLexicalScope:re,currentNameScope:Qt},ke,Qt)));oi=ar(oi,nn)}if(_r(ke)){let nn=n.createPropertyAssignment("paramTypes",n.createArrowFunction(void 0,void 0,[],void 0,n.createToken(39),M.serializeParameterTypesOfNode({currentLexicalScope:re,currentNameScope:Qt},ke,Qt)));oi=ar(oi,nn)}if(lo(ke)){let nn=n.createPropertyAssignment("returnType",n.createArrowFunction(void 0,void 0,[],void 0,n.createToken(39),M.serializeReturnTypeOfNode({currentLexicalScope:re,currentNameScope:Qt},ke)));oi=ar(oi,nn)}if(oi){let nn=a().createMetadataHelper("design:typeinfo",n.createObjectLiteralExpression(oi,!0));return[n.createDecorator(nn)]}}}function xr(ke){let Qt=ke.kind;return Qt===174||Qt===177||Qt===178||Qt===172}function lo(ke){return ke.kind===174}function _r(ke){switch(ke.kind){case 263:case 231:return eI(ke)!==void 0;case 174:case 177:case 178:return!0}return!1}function Hs(ke,Qt){let oi=ke.name;return wl(oi)?n.createIdentifier(""):f_(oi)?Qt&&!cI(oi.expression)?n.getGeneratedNameForNode(oi):oi.expression:Ai(oi)?n.createStringLiteral(Un(oi)):n.cloneNode(oi)}function ai(ke){let Qt=ke.name;if(A&&f_(Qt)&&uw(ke)){let oi=on(Qt.expression,be,An);Se.assert(oi);let nn=dh(oi);if(!cI(nn)){let hr=n.getGeneratedNameForNode(Qt);return v(hr),n.updateComputedPropertyName(Qt,n.createAssignment(hr,oi))}}return Se.checkDefined(on(Qt,be,C_))}function mn(ke){if(ke.token!==119)return Fo(ke,be,t)}function Nn(ke){return n.updateExpressionWithTypeArguments(ke,Se.checkDefined(on(ke.expression,be,MS)),void 0)}function Gr(ke){return!Mm(ke.body)}function ci(ke,Qt){let oi=ke.flags&33554432||kc(ke,64);if(oi&&!(A&&uw(ke)))return;let nn=bc(Qt)?oi?ts(ke.modifiers,_t,Fm):ts(ke.modifiers,be,Fm):ts(ke.modifiers,rt,Fm);return nn=mr(nn,ke,Qt),oi?n.updatePropertyDeclaration(ke,Pl(nn,n.createModifiersFromModifierFlags(128)),Se.checkDefined(on(ke.name,be,C_)),void 0,void 0,void 0):n.updatePropertyDeclaration(ke,nn,ai(ke),void 0,void 0,on(ke.initializer,be,An))}function gn(ke){if(Gr(ke))return n.updateConstructorDeclaration(ke,void 0,Af(ke.parameters,be,t),vo(ke.body,ke))}function Sr(ke,Qt,oi,nn,hr,io){let Er=nn[hr],is=Qt[Er];if(Ho(ke,ts(Qt,be,ll,oi,Er-oi)),Q8(is)){let zs=[];Sr(zs,is.tryBlock.statements,0,nn,hr+1,io);let da=n.createNodeArray(zs);Fn(da,is.tryBlock.statements),ke.push(n.updateTryStatement(is,n.updateBlock(is.tryBlock,zs),on(is.catchClause,be,eC),on(is.finallyBlock,be,qu)))}else Ho(ke,ts(Qt,be,ll,Er,1)),Ho(ke,io);Ho(ke,ts(Qt,be,ll,Er+1))}function vo(ke,Qt){let oi=Qt&&Qn(Qt.parameters,zs=>OC(zs,Qt));if(!En(oi))return Po(ke,be,t);let nn=[];m();let hr=n.copyPrologue(ke.statements,nn,!1,be),io=wW(ke.statements,hr),Er=Dc(oi,$o);io.length?Sr(nn,ke.statements,hr,io,0,Er):(Ho(nn,Er),Ho(nn,ts(ke.statements,be,ll,hr))),nn=n.mergeLexicalEnvironment(nn,g());let is=n.createBlock(Fn(n.createNodeArray(nn),ke.statements),!0);return Fn(is,ke),Wo(is,ke),is}function $o(ke){let Qt=ke.name;if(!Ai(Qt))return;let oi=dp(Fn(n.cloneNode(Qt),Qt),Qt.parent);De(oi,3168);let nn=dp(Fn(n.cloneNode(Qt),Qt),Qt.parent);return De(nn,3072),T1(Hme(Fn(Wo(n.createExpressionStatement(n.createAssignment(Fn(n.createPropertyAccessExpression(n.createThis(),oi),ke.name),nn)),ke),O8(ke,-1))))}function Mn(ke,Qt){if(!(ke.transformFlags&1))return ke;if(!Gr(ke))return;let oi=bc(Qt)?ts(ke.modifiers,be,Fm):ts(ke.modifiers,rt,Fm);return oi=mr(oi,ke,Qt),n.updateMethodDeclaration(ke,oi,ke.asteriskToken,ai(ke),void 0,void 0,Af(ke.parameters,be,t),void 0,Po(ke.body,be,t))}function Qs(ke){return!(Mm(ke.body)&&kc(ke,64))}function Pi(ke,Qt){if(!(ke.transformFlags&1))return ke;if(!Qs(ke))return;let oi=bc(Qt)?ts(ke.modifiers,be,Fm):ts(ke.modifiers,rt,Fm);return oi=mr(oi,ke,Qt),n.updateGetAccessorDeclaration(ke,oi,ai(ke),Af(ke.parameters,be,t),void 0,Po(ke.body,be,t)||n.createBlock([]))}function qi(ke,Qt){if(!(ke.transformFlags&1))return ke;if(!Qs(ke))return;let oi=bc(Qt)?ts(ke.modifiers,be,Fm):ts(ke.modifiers,rt,Fm);return oi=mr(oi,ke,Qt),n.updateSetAccessorDeclaration(ke,oi,ai(ke),Af(ke.parameters,be,t),Po(ke.body,be,t)||n.createBlock([]))}function lt(ke){if(!Gr(ke))return n.createNotEmittedStatement(ke);let Qt=n.updateFunctionDeclaration(ke,ts(ke.modifiers,ft,jd),ke.asteriskToken,ke.name,void 0,Af(ke.parameters,be,t),void 0,Po(ke.body,be,t)||n.createBlock([]));if(Vr(ke)){let oi=[Qt];return _a(oi,ke),oi}return Qt}function Xi(ke){return Gr(ke)?n.updateFunctionExpression(ke,ts(ke.modifiers,ft,jd),ke.asteriskToken,ke.name,void 0,Af(ke.parameters,be,t),void 0,Po(ke.body,be,t)||n.createBlock([])):n.createOmittedExpression()}function nt(ke){return n.updateArrowFunction(ke,ts(ke.modifiers,ft,jd),void 0,Af(ke.parameters,be,t),void 0,ke.equalsGreaterThanToken,Po(ke.body,be,t))}function Lt(ke){if(B3(ke))return;let Qt=n.updateParameterDeclaration(ke,ts(ke.modifiers,oi=>Cy(oi)?be(oi):void 0,Fm),ke.dotDotDotToken,Se.checkDefined(on(ke.name,be,_4)),void 0,void 0,on(ke.initializer,be,An));return Qt!==ke&&(Xg(Qt,ke),Fn(Qt,JE(ke)),w_(Qt,JE(ke)),De(Qt.name,64)),Qt}function Pe(ke){if(Vr(ke)){let Qt=NG(ke.declarationList);return Qt.length===0?void 0:Fn(n.createExpressionStatement(n.inlineExpressions($i(Qt,St))),ke)}else return Fo(ke,be,t)}function St(ke){let Qt=ke.name;return Uu(Qt)?HU(ke,be,t,0,!1,Pf):Fn(n.createAssignment($l(Qt),Se.checkDefined(on(ke.initializer,be,An))),ke)}function Ve(ke){let Qt=n.updateVariableDeclaration(ke,Se.checkDefined(on(ke.name,be,_4)),void 0,void 0,on(ke.initializer,be,An));return ke.type&&Fwe(Qt.name,ke.type),Qt}function Tt(ke){let Qt=ug(ke.expression,-23);if(gy(Qt)||ia(Qt)){let oi=on(ke.expression,be,An);return Se.assert(oi),n.createPartiallyEmittedExpression(oi,ke)}return Fo(ke,be,t)}function dt(ke){let Qt=on(ke.expression,be,An);return Se.assert(Qt),n.createPartiallyEmittedExpression(Qt,ke)}function Wt(ke){let Qt=on(ke.expression,be,MS);return Se.assert(Qt),n.createPartiallyEmittedExpression(Qt,ke)}function pt(ke){let Qt=on(ke.expression,be,An);return Se.assert(Qt),n.createPartiallyEmittedExpression(Qt,ke)}function Gt(ke){return n.updateCallExpression(ke,Se.checkDefined(on(ke.expression,be,An)),void 0,ts(ke.arguments,be,An))}function Mt(ke){return n.updateNewExpression(ke,Se.checkDefined(on(ke.expression,be,An)),void 0,ts(ke.arguments,be,An))}function hi(ke){return n.updateTaggedTemplateExpression(ke,Se.checkDefined(on(ke.tag,be,An)),void 0,Se.checkDefined(on(ke.template,be,y8)))}function Ie(ke){return n.updateJsxSelfClosingElement(ke,Se.checkDefined(on(ke.tagName,be,X$)),void 0,Se.checkDefined(on(ke.attributes,be,wk)))}function Bt(ke){return n.updateJsxOpeningElement(ke,Se.checkDefined(on(ke.tagName,be,X$)),void 0,Se.checkDefined(on(ke.attributes,be,wk)))}function ui(ke){return!jy(ke)||ph(k)}function Ue(ke){if(!ui(ke))return n.createNotEmittedStatement(ke);let Qt=[],oi=4,nn=At(Qt,ke);nn&&(I!==4||re!==U)&&(oi|=1024);let hr=cc(ke),io=vl(ke),Er=Vr(ke)?n.getExternalModuleOrNamespaceExportName(K,ke,!1,!0):n.getDeclarationName(ke,!1,!0),is=n.createLogicalOr(Er,n.createAssignment(Er,n.createObjectLiteralExpression()));if(Vr(ke)){let da=n.getLocalName(ke,!1,!0);is=n.createAssignment(da,is)}let zs=n.createExpressionStatement(n.createCallExpression(n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,hr)],void 0,Ce(ke,io)),void 0,[is]));return Wo(zs,ke),nn&&(pw(zs,void 0),Qj(zs,void 0)),Fn(zs,ke),gN(zs,oi),Qt.push(zs),Qt}function Ce(ke,Qt){let oi=K;K=Qt;let nn=[];u();let hr=$i(ke.members,ye);return rv(nn,g()),Ho(nn,hr),K=oi,n.createBlock(Fn(n.createNodeArray(nn),ke.members),!0)}function ye(ke){let Qt=Hs(ke,!1),oi=x.getEnumMemberValue(ke),nn=vt(ke,oi?.value),hr=n.createAssignment(n.createElementAccessExpression(K,Qt),nn),io=typeof oi?.value=="string"||oi?.isSyntacticallyString?hr:n.createAssignment(n.createElementAccessExpression(K,hr),Qt);return Fn(n.createExpressionStatement(Fn(io,ke)),ke)}function vt(ke,Qt){return Qt!==void 0?typeof Qt=="string"?n.createStringLiteral(Qt):Qt<0?n.createPrefixUnaryExpression(41,n.createNumericLiteral(-Qt)):n.createNumericLiteral(Qt):(G_(),ke.initializer?Se.checkDefined(on(ke.initializer,be,An)):n.createVoidZero())}function pe(ke){let Qt=ju(ke,Dh);return Qt?Yhe(Qt,ph(k)):!0}function at(ke){X||(X=new Map);let Qt=si(ke);X.has(Qt)||X.set(Qt,ke)}function We(ke){if(X){let Qt=si(ke);return X.get(Qt)===ke}return!0}function si(ke){return Se.assertNode(ke.name,Ai),ke.name.escapedText}function At(ke,Qt){let oi=n.createVariableDeclaration(n.getLocalName(Qt,!1,!0)),nn=re.kind===307?0:1,hr=n.createVariableStatement(ts(Qt.modifiers,ft,jd),n.createVariableDeclarationList([oi],nn));return Wo(oi,Qt),pw(oi,void 0),Qj(oi,void 0),Wo(hr,Qt),at(Qt),We(Qt)?(Qt.kind===266?w_(hr.declarationList,Qt):w_(hr,Qt),Xg(hr,Qt),gN(hr,2048),ke.push(hr),!0):!1}function Ot(ke){if(!pe(ke))return n.createNotEmittedStatement(ke);Se.assertNode(ke.name,Ai,"A TypeScript namespace should have an Identifier name."),ja();let Qt=[],oi=4,nn=At(Qt,ke);nn&&(I!==4||re!==U)&&(oi|=1024);let hr=cc(ke),io=vl(ke),Er=Vr(ke)?n.getExternalModuleOrNamespaceExportName(K,ke,!1,!0):n.getDeclarationName(ke,!1,!0),is=n.createLogicalOr(Er,n.createAssignment(Er,n.createObjectLiteralExpression()));if(Vr(ke)){let da=n.getLocalName(ke,!1,!0);is=n.createAssignment(da,is)}let zs=n.createExpressionStatement(n.createCallExpression(n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,hr)],void 0,Fi(ke,io)),void 0,[is]));return Wo(zs,ke),nn&&(pw(zs,void 0),Qj(zs,void 0)),Fn(zs,ke),gN(zs,oi),Qt.push(zs),Qt}function Fi(ke,Qt){let oi=K,nn=$,hr=X;K=Qt,$=ke,X=void 0;let io=[];u();let Er,is;if(ke.body)if(ke.body.kind===268)Ee(ke.body,da=>Ho(io,ts(da.statements,he,ll))),Er=ke.body.statements,is=ke.body;else{let da=Ot(ke.body);da&&(ua(da)?Ho(io,da):io.push(da));let cu=Vn(ke).body;Er=O8(cu.statements,-1)}rv(io,g()),K=oi,$=nn,X=hr;let zs=n.createBlock(Fn(n.createNodeArray(io),Er),!0);return Fn(zs,is),(!ke.body||ke.body.kind!==268)&&De(zs,N_(zs)|3072),zs}function Vn(ke){if(ke.body.kind===267)return Vn(ke.body)||ke.body}function In(ke){if(!ke.importClause)return ke;if(ke.importClause.isTypeOnly)return;let Qt=on(ke.importClause,dn,Ym);return Qt?n.updateImportDeclaration(ke,void 0,Qt,ke.moduleSpecifier,ke.attributes):void 0}function dn(ke){Se.assert(!ke.isTypeOnly);let Qt=kn(ke)?ke.name:void 0,oi=on(ke.namedBindings,Si,mZ);return Qt||oi?n.updateImportClause(ke,!1,Qt,oi):void 0}function Si(ke){if(ke.kind===274)return kn(ke)?ke:void 0;{let Qt=k.verbatimModuleSyntax,oi=ts(ke.elements,Ri,eg);return Qt||En(oi)?n.updateNamedImports(ke,oi):void 0}}function Ri(ke){return!ke.isTypeOnly&&kn(ke)?ke:void 0}function Cn(ke){return k.verbatimModuleSyntax||x.isValueAliasDeclaration(ke)?Fo(ke,be,t):void 0}function cn(ke){if(ke.isTypeOnly)return;if(!ke.exportClause||vm(ke.exportClause))return ke;let Qt=!!k.verbatimModuleSyntax,oi=on(ke.exportClause,nn=>Kn(nn,Qt),yH);return oi?n.updateExportDeclaration(ke,void 0,ke.isTypeOnly,oi,ke.moduleSpecifier,ke.attributes):void 0}function Pn(ke,Qt){let oi=ts(ke.elements,Ti,X0);return Qt||En(oi)?n.updateNamedExports(ke,oi):void 0}function Wi(ke){return n.updateNamespaceExport(ke,Se.checkDefined(on(ke.name,be,Ai)))}function Kn(ke,Qt){return vm(ke)?Wi(ke):Pn(ke,Qt)}function Ti(ke){return!ke.isTypeOnly&&(k.verbatimModuleSyntax||x.isValueAliasDeclaration(ke))?ke:void 0}function wr(ke){return kn(ke)||!Mg(U)&&x.isTopLevelValueImportEqualsWithEntityName(ke)}function Nr(ke){if(ke.isTypeOnly)return;if(WS(ke))return kn(ke)?Fo(ke,be,t):void 0;if(!wr(ke))return;let Qt=rO(n,ke.moduleReference);return De(Qt,7168),Ts(ke)||!Vr(ke)?Wo(Fn(n.createVariableStatement(ts(ke.modifiers,ft,jd),n.createVariableDeclarationList([Wo(n.createVariableDeclaration(ke.name,void 0,void 0,Qt),ke)])),ke),ke):Wo(Fa(ke.name,Qt,ke),ke)}function Vr(ke){return $!==void 0&&kc(ke,32)}function ir(ke){return $===void 0&&kc(ke,32)}function Ts(ke){return ir(ke)&&!kc(ke,2048)}function pa(ke){return ir(ke)&&kc(ke,2048)}function Nc(ke){let Qt=n.createAssignment(n.getExternalModuleOrNamespaceExportName(K,ke,!1,!0),n.getLocalName(ke));w_(Qt,tT(ke.name?ke.name.pos:ke.pos,ke.end));let oi=n.createExpressionStatement(Qt);return w_(oi,tT(-1,ke.end)),oi}function _a(ke,Qt){ke.push(Nc(Qt))}function Fa(ke,Qt,oi){return Fn(n.createExpressionStatement(n.createAssignment(n.getNamespaceMemberName(K,ke,!1,!0),Qt)),oi)}function Pf(ke,Qt,oi){return Fn(n.createAssignment($l(ke),Qt),oi)}function $l(ke){return n.getNamespaceMemberName(K,ke,!1,!0)}function cc(ke){let Qt=n.getGeneratedNameForNode(ke);return w_(Qt,ke.name),Qt}function vl(ke){return n.getGeneratedNameForNode(ke)}function G_(){ne&8||(ne|=8,t.enableSubstitution(80))}function ja(){ne&2||(ne|=2,t.enableSubstitution(80),t.enableSubstitution(304),t.enableEmitNotification(267))}function Gd(ke){return Gm(ke).kind===267}function Su(ke){return Gm(ke).kind===266}function Aa(ke,Qt,oi){let nn=se,hr=U;ul(Qt)&&(U=Qt),ne&2&&Gd(Qt)&&(se|=2),ne&8&&Su(Qt)&&(se|=8),R(ke,Qt,oi),se=nn,U=hr}function gr(ke,Qt){return Qt=H(ke,Qt),ke===1?Vc(Qt):Q0(Qt)?Wl(Qt):Qt}function Wl(ke){if(ne&2){let Qt=ke.name,oi=Ar(Qt);if(oi){if(ke.objectAssignmentInitializer){let nn=n.createAssignment(oi,ke.objectAssignmentInitializer);return Fn(n.createPropertyAssignment(Qt,nn),ke)}return Fn(n.createPropertyAssignment(Qt,oi),ke)}}return ke}function Vc(ke){switch(ke.kind){case 80:return xu(ke);case 211:return Hl(ke);case 212:return Lf(ke)}return ke}function xu(ke){return Ar(ke)||ke}function Ar(ke){if(ne&se&&!Tm(ke)&&!sI(ke)){let Qt=x.getReferencedExportContainer(ke,!1);if(Qt&&Qt.kind!==307&&(se&2&&Qt.kind===267||se&8&&Qt.kind===266))return Fn(n.createPropertyAccessExpression(n.getGeneratedNameForNode(Qt),ke),ke)}}function Hl(ke){return bt(ke)}function Lf(ke){return bt(ke)}function Rt(ke){return ke.replace(/\*\//g,"*_/")}function bt(ke){let Qt=Ci(ke);if(Qt!==void 0){K0(ke,Qt);let oi=typeof Qt=="string"?n.createStringLiteral(Qt):Qt<0?n.createPrefixUnaryExpression(41,n.createNumericLiteral(-Qt)):n.createNumericLiteral(Qt);if(!k.removeComments){let nn=Gm(ke,cf);Zj(oi,3,` ${Rt(_h(nn))} `)}return oi}return ke}function Ci(ke){if(!$E(k))return ba(ke)||T_(ke)?x.getConstantValue(ke):void 0}function kn(ke){return k.verbatimModuleSyntax||Ys(ke)||x.isReferencedAliasDeclaration(ke)}}function tXe(t){let{factory:n,getEmitHelperFactory:a,hoistVariableDeclaration:u,endLexicalEnvironment:m,startLexicalEnvironment:g,resumeLexicalEnvironment:v,addBlockScopedVariable:x}=t,k=t.getEmitResolver(),T=t.getCompilerOptions(),I=h_(T),A=KZ(T),M=!!T.experimentalDecorators,R=!A,H=A&&I<9,U=R||H,$=I<9,K=I<99?-1:A?0:3,re=I<9,X=re&&I>=2,ne=U||$||K===-1,se=t.onSubstituteNode;t.onSubstituteNode=Lf;let _e=t.onEmitNode;t.onEmitNode=Hl;let ae=!1,le,Ee,xe,be,Le,fe=new Map,we=new Set,Ae,Ge,he=!1,Oe=!1;return kN(t,Re);function Re(ke){if(ke.isDeclarationFile||(Le=void 0,ae=!!(RC(ke)&32),!ne&&!ae))return ke;let Qt=Fo(ke,Ke,t);return bk(Qt,t.readEmitHelpers()),Qt}function $e(ke){switch(ke.kind){case 129:return gn()?void 0:ke;default:return ac(ke,jd)}}function Ke(ke){if(!(ke.transformFlags&16777216)&&!(ke.transformFlags&134234112))return ke;switch(ke.kind){case 263:return ui(ke);case 231:return Ce(ke);case 175:case 172:return Se.fail("Use `classElementVisitor` instead.");case 303:return Ut(ke);case 243:return pi(ke);case 260:return wi(ke);case 169:return Bi(ke);case 208:return Bn(ke);case 277:return mr(ke);case 81:return Kt(ke);case 211:return Pi(ke);case 212:return qi(ke);case 224:case 225:return lt(ke,!1);case 226:return dt(ke,!1);case 217:return pt(ke,!1);case 213:return Pe(ke);case 244:return nt(ke);case 215:return St(ke);case 248:return Xi(ke);case 110:return pe(ke);case 262:case 218:return _r(void 0,qe,ke);case 176:case 174:case 177:case 178:return _r(ke,qe,ke);default:return qe(ke)}}function qe(ke){return Fo(ke,Ke,t)}function rt(ke){switch(ke.kind){case 224:case 225:return lt(ke,!0);case 226:return dt(ke,!0);case 355:return Wt(ke,!0);case 217:return pt(ke,!0);default:return Ke(ke)}}function _t(ke){switch(ke.kind){case 298:return Fo(ke,_t,t);case 233:return Ie(ke);default:return Ke(ke)}}function ft(ke){switch(ke.kind){case 210:case 209:return Ar(ke);default:return Ke(ke)}}function mt(ke){switch(ke.kind){case 176:return _r(ke,zr,ke);case 177:case 178:case 174:return _r(ke,lo,ke);case 172:return _r(ke,Sr,ke);case 175:return _r(ke,vt,ke);case 167:return zn(ke);case 240:return ke;default:return Fm(ke)?$e(ke):Ke(ke)}}function ut(ke){switch(ke.kind){case 167:return zn(ke);default:return Ke(ke)}}function ht(ke){switch(ke.kind){case 172:return ci(ke);case 177:case 178:return mt(ke);default:Se.assertMissingNode(ke,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration");break}}function Kt(ke){return!$||ll(ke.parent)?ke:Wo(n.createIdentifier(""),ke)}function ni(ke){let Qt=vl(ke.left);if(Qt){let oi=on(ke.right,Ke,An);return Wo(a().createClassPrivateFieldInHelper(Qt.brandCheckIdentifier,oi),ke)}return Fo(ke,Ke,t)}function Ut(ke){return Yb(ke,Tt)&&(ke=mb(t,ke)),Fo(ke,Ke,t)}function pi(ke){let Qt=be;be=[];let oi=Fo(ke,Ke,t),nn=En(be)?[oi,...be]:oi;return be=Qt,nn}function wi(ke){return Yb(ke,Tt)&&(ke=mb(t,ke)),Fo(ke,Ke,t)}function Bi(ke){return Yb(ke,Tt)&&(ke=mb(t,ke)),Fo(ke,Ke,t)}function Bn(ke){return Yb(ke,Tt)&&(ke=mb(t,ke)),Fo(ke,Ke,t)}function mr(ke){return Yb(ke,Tt)&&(ke=mb(t,ke,!0,ke.isExportEquals?"":"default")),Fo(ke,Ke,t)}function Ei(ke){return En(xe)&&(Tu(ke)?(xe.push(ke.expression),ke=n.updateParenthesizedExpression(ke,n.inlineExpressions(xe))):(xe.push(ke),ke=n.inlineExpressions(xe)),xe=void 0),ke}function zn(ke){let Qt=on(ke.expression,Ke,An);return n.updateComputedPropertyName(ke,Ei(Qt))}function zr(ke){return Ae?si(ke,Ae):qe(ke)}function xr(ke){return!!($||G0(ke)&&RC(ke)&32)}function lo(ke){if(Se.assert(!uw(ke)),!qb(ke)||!xr(ke))return Fo(ke,mt,t);let Qt=vl(ke.name);if(Se.assert(Qt,"Undeclared private name for property declaration."),!Qt.isValid)return ke;let oi=Hs(ke);oi&&Vr().push(n.createAssignment(oi,n.createFunctionExpression(Qn(ke.modifiers,nn=>jd(nn)&&!oW(nn)&&!sW(nn)),ke.asteriskToken,oi,void 0,Af(ke.parameters,Ke,t),void 0,Po(ke.body,Ke,t))))}function _r(ke,Qt,oi){if(ke!==Ge){let nn=Ge;Ge=ke;let hr=Qt(oi);return Ge=nn,hr}return Qt(oi)}function Hs(ke){Se.assert(wl(ke.name));let Qt=vl(ke.name);if(Se.assert(Qt,"Undeclared private name for property declaration."),Qt.kind==="m")return Qt.methodName;if(Qt.kind==="a"){if(oN(ke))return Qt.getterName;if(Gw(ke))return Qt.setterName}}function ai(){let ke=wr();return ke.classThis??ke.classConstructor??Ae?.name}function mn(ke){let Qt=Nv(ke),oi=J8(ke),nn=ke.name,hr=nn,io=nn;if(f_(nn)&&!cI(nn.expression)){let mf=dhe(nn);if(mf)hr=n.updateComputedPropertyName(nn,on(nn.expression,Ke,An)),io=n.updateComputedPropertyName(nn,mf.left);else{let B_=n.createTempVariable(u);w_(B_,nn.expression);let vd=on(nn.expression,Ke,An),td=n.createAssignment(B_,vd);w_(td,nn.expression),hr=n.updateComputedPropertyName(nn,td),io=n.updateComputedPropertyName(nn,B_)}}let Er=ts(ke.modifiers,$e,jd),is=Pae(n,ke,Er,ke.initializer);Wo(is,ke),De(is,3072),w_(is,oi);let zs=Xd(ke)?ai()??n.createThis():n.createThis(),da=CGe(n,ke,Er,hr,zs);Wo(da,ke),Xg(da,Qt),w_(da,oi);let cu=n.createModifiersFromModifierFlags(tI(Er)),ru=Lae(n,ke,cu,io,zs);return Wo(ru,ke),De(ru,3072),w_(ru,oi),oce([is,da,ru],ht,rl)}function Nn(ke){if(xr(ke)){let Qt=vl(ke.name);if(Se.assert(Qt,"Undeclared private name for property declaration."),!Qt.isValid)return ke;if(Qt.isStatic&&!$){let oi=Vn(ke,n.createThis());if(oi)return n.createClassStaticBlockDeclaration(n.createBlock([oi],!0))}return}return R&&!Xd(ke)&&Le?.data&&Le.data.facts&16?n.updatePropertyDeclaration(ke,ts(ke.modifiers,Ke,Fm),ke.name,void 0,void 0,void 0):(Yb(ke,Tt)&&(ke=mb(t,ke)),n.updatePropertyDeclaration(ke,ts(ke.modifiers,$e,jd),on(ke.name,ut,C_),void 0,void 0,on(ke.initializer,Ke,An)))}function Gr(ke){if(U&&!g1(ke)){let Qt=Wi(ke.name,!!ke.initializer||A);if(Qt&&Vr().push(...Zwe(Qt)),Xd(ke)&&!$){let oi=Vn(ke,n.createThis());if(oi){let nn=n.createClassStaticBlockDeclaration(n.createBlock([oi]));return Wo(nn,ke),Xg(nn,ke),Xg(oi,{pos:-1,end:-1}),pw(oi,void 0),Qj(oi,void 0),nn}}return}return n.updatePropertyDeclaration(ke,ts(ke.modifiers,$e,jd),on(ke.name,ut,C_),void 0,void 0,on(ke.initializer,Ke,An))}function ci(ke){return Se.assert(!uw(ke),"Decorators should already have been transformed and elided."),qb(ke)?Nn(ke):Gr(ke)}function gn(){return K===-1||K===3&&!!Le?.data&&!!(Le.data.facts&16)}function Sr(ke){return g1(ke)&&(gn()||G0(ke)&&RC(ke)&32)?mn(ke):ci(ke)}function vo(){return!!Ge&&G0(Ge)&&O_(Ge)&&g1(Gm(Ge))}function $o(ke){if(vo()){let Qt=ug(ke);Qt.kind===110&&we.add(Qt)}}function Mn(ke,Qt){return Qt=on(Qt,Ke,An),$o(Qt),Qs(ke,Qt)}function Qs(ke,Qt){switch(Xg(Qt,O8(Qt,-1)),ke.kind){case"a":return a().createClassPrivateFieldGetHelper(Qt,ke.brandCheckIdentifier,ke.kind,ke.getterName);case"m":return a().createClassPrivateFieldGetHelper(Qt,ke.brandCheckIdentifier,ke.kind,ke.methodName);case"f":return a().createClassPrivateFieldGetHelper(Qt,ke.brandCheckIdentifier,ke.kind,ke.isStatic?ke.variableName:void 0);case"untransformed":return Se.fail("Access helpers should not be created for untransformed private elements");default:Se.assertNever(ke,"Unknown private element type")}}function Pi(ke){if(wl(ke.name)){let Qt=vl(ke.name);if(Qt)return Fn(Wo(Mn(Qt,ke.expression),ke),ke)}if(X&&Ge&&Xx(ke)&&Ai(ke.name)&&fce(Ge)&&Le?.data){let{classConstructor:Qt,superClassReference:oi,facts:nn}=Le.data;if(nn&1)return Pn(ke);if(Qt&&oi){let hr=n.createReflectGetCall(oi,n.createStringLiteralFromNode(ke.name),Qt);return Wo(hr,ke.expression),Fn(hr,ke.expression),hr}}return Fo(ke,Ke,t)}function qi(ke){if(X&&Ge&&Xx(ke)&&fce(Ge)&&Le?.data){let{classConstructor:Qt,superClassReference:oi,facts:nn}=Le.data;if(nn&1)return Pn(ke);if(Qt&&oi){let hr=n.createReflectGetCall(oi,on(ke.argumentExpression,Ke,An),Qt);return Wo(hr,ke.expression),Fn(hr,ke.expression),hr}}return Fo(ke,Ke,t)}function lt(ke,Qt){if(ke.operator===46||ke.operator===47){let oi=J_(ke.operand);if(iN(oi)){let nn;if(nn=vl(oi.name)){let hr=on(oi.expression,Ke,An);$o(hr);let{readExpression:io,initializeExpression:Er}=Lt(hr),is=Mn(nn,io),zs=z2(ke)||Qt?void 0:n.createTempVariable(u);return is=See(n,ke,is,u,zs),is=Gt(nn,Er||io,is,64),Wo(is,ke),Fn(is,ke),zs&&(is=n.createComma(is,zs),Fn(is,ke)),is}}else if(X&&Ge&&Xx(oi)&&fce(Ge)&&Le?.data){let{classConstructor:nn,superClassReference:hr,facts:io}=Le.data;if(io&1){let Er=Pn(oi);return z2(ke)?n.updatePrefixUnaryExpression(ke,Er):n.updatePostfixUnaryExpression(ke,Er)}if(nn&&hr){let Er,is;if(ba(oi)?Ai(oi.name)&&(is=Er=n.createStringLiteralFromNode(oi.name)):cI(oi.argumentExpression)?is=Er=oi.argumentExpression:(is=n.createTempVariable(u),Er=n.createAssignment(is,on(oi.argumentExpression,Ke,An))),Er&&is){let zs=n.createReflectGetCall(hr,is,nn);Fn(zs,oi);let da=Qt?void 0:n.createTempVariable(u);return zs=See(n,ke,zs,u,da),zs=n.createReflectSetCall(hr,Er,zs,nn),Wo(zs,ke),Fn(zs,ke),da&&(zs=n.createComma(zs,da),Fn(zs,ke)),zs}}}}return Fo(ke,Ke,t)}function Xi(ke){return n.updateForStatement(ke,on(ke.initializer,rt,BT),on(ke.condition,Ke,An),on(ke.incrementor,rt,An),E1(ke.statement,Ke,t))}function nt(ke){return n.updateExpressionStatement(ke,on(ke.expression,rt,An))}function Lt(ke){let Qt=um(ke)?ke:n.cloneNode(ke);if(ke.kind===110&&we.has(ke)&&we.add(Qt),cI(ke))return{readExpression:Qt,initializeExpression:void 0};let oi=n.createTempVariable(u),nn=n.createAssignment(oi,Qt);return{readExpression:oi,initializeExpression:nn}}function Pe(ke){var Qt;if(iN(ke.expression)&&vl(ke.expression.name)){let{thisArg:oi,target:nn}=n.createCallBinding(ke.expression,u,I);return E2(ke)?n.updateCallChain(ke,n.createPropertyAccessChain(on(nn,Ke,An),ke.questionDotToken,"call"),void 0,void 0,[on(oi,Ke,An),...ts(ke.arguments,Ke,An)]):n.updateCallExpression(ke,n.createPropertyAccessExpression(on(nn,Ke,An),"call"),void 0,[on(oi,Ke,An),...ts(ke.arguments,Ke,An)])}if(X&&Ge&&Xx(ke.expression)&&fce(Ge)&&((Qt=Le?.data)!=null&&Qt.classConstructor)){let oi=n.createFunctionCallCall(on(ke.expression,Ke,An),Le.data.classConstructor,ts(ke.arguments,Ke,An));return Wo(oi,ke),Fn(oi,ke),oi}return Fo(ke,Ke,t)}function St(ke){var Qt;if(iN(ke.tag)&&vl(ke.tag.name)){let{thisArg:oi,target:nn}=n.createCallBinding(ke.tag,u,I);return n.updateTaggedTemplateExpression(ke,n.createCallExpression(n.createPropertyAccessExpression(on(nn,Ke,An),"bind"),void 0,[on(oi,Ke,An)]),void 0,on(ke.template,Ke,y8))}if(X&&Ge&&Xx(ke.tag)&&fce(Ge)&&((Qt=Le?.data)!=null&&Qt.classConstructor)){let oi=n.createFunctionBindCall(on(ke.tag,Ke,An),Le.data.classConstructor,[]);return Wo(oi,ke),Fn(oi,ke),n.updateTaggedTemplateExpression(ke,oi,void 0,on(ke.template,Ke,y8))}return Fo(ke,Ke,t)}function Ve(ke){if(Le&&fe.set(Gm(ke),Le),$){if(uce(ke)){let nn=on(ke.body.statements[0].expression,Ke,An);return Kg(nn,!0)&&nn.left===nn.right?void 0:nn}if(PK(ke))return on(ke.body.statements[0].expression,Ke,An);g();let Qt=_r(ke,nn=>ts(nn,Ke,ll),ke.body.statements);Qt=n.mergeLexicalEnvironment(Qt,m());let oi=n.createImmediatelyInvokedArrowFunction(Qt);return Wo(J_(oi.expression),ke),gN(J_(oi.expression),4),Wo(oi,ke),Fn(oi,ke),oi}}function Tt(ke){if(Qh(ke)&&!ke.name){let Qt=cO(ke);return En(Qt,PK)?!1:($||!!RC(ke))&&En(Qt,nn=>Yf(nn)||qb(nn)||U&&n9(nn))}return!1}function dt(ke,Qt){if(z3(ke)){let oi=xe;xe=void 0,ke=n.updateBinaryExpression(ke,on(ke.left,ft,An),ke.operatorToken,on(ke.right,Ke,An));let nn=En(xe)?n.inlineExpressions(no([...xe,ke])):ke;return xe=oi,nn}if(Kg(ke)){Yb(ke,Tt)&&(ke=mb(t,ke),Se.assertNode(ke,Kg));let oi=ug(ke.left,9);if(iN(oi)){let nn=vl(oi.name);if(nn)return Fn(Wo(Gt(nn,oi.expression,ke.right,ke.operatorToken.kind),ke),ke)}else if(X&&Ge&&Xx(ke.left)&&fce(Ge)&&Le?.data){let{classConstructor:nn,superClassReference:hr,facts:io}=Le.data;if(io&1)return n.updateBinaryExpression(ke,Pn(ke.left),ke.operatorToken,on(ke.right,Ke,An));if(nn&&hr){let Er=T_(ke.left)?on(ke.left.argumentExpression,Ke,An):Ai(ke.left.name)?n.createStringLiteralFromNode(ke.left.name):void 0;if(Er){let is=on(ke.right,Ke,An);if(kW(ke.operatorToken.kind)){let da=Er;cI(Er)||(da=n.createTempVariable(u),Er=n.createAssignment(da,Er));let cu=n.createReflectGetCall(hr,da,nn);Wo(cu,ke.left),Fn(cu,ke.left),is=n.createBinaryExpression(cu,VU(ke.operatorToken.kind),is),Fn(is,ke)}let zs=Qt?void 0:n.createTempVariable(u);return zs&&(is=n.createAssignment(zs,is),Fn(zs,ke)),is=n.createReflectSetCall(hr,Er,is,nn),Wo(is,ke),Fn(is,ke),zs&&(is=n.createComma(is,zs),Fn(is,ke)),is}}}}return nXe(ke)?ni(ke):Fo(ke,Ke,t)}function Wt(ke,Qt){let oi=Qt?sce(ke.elements,rt):sce(ke.elements,Ke,rt);return n.updateCommaListExpression(ke,oi)}function pt(ke,Qt){let oi=Qt?rt:Ke,nn=on(ke.expression,oi,An);return n.updateParenthesizedExpression(ke,nn)}function Gt(ke,Qt,oi,nn){if(Qt=on(Qt,Ke,An),oi=on(oi,Ke,An),$o(Qt),kW(nn)){let{readExpression:hr,initializeExpression:io}=Lt(Qt);Qt=io||hr,oi=n.createBinaryExpression(Qs(ke,hr),VU(nn),oi)}switch(Xg(Qt,O8(Qt,-1)),ke.kind){case"a":return a().createClassPrivateFieldSetHelper(Qt,ke.brandCheckIdentifier,oi,ke.kind,ke.setterName);case"m":return a().createClassPrivateFieldSetHelper(Qt,ke.brandCheckIdentifier,oi,ke.kind,void 0);case"f":return a().createClassPrivateFieldSetHelper(Qt,ke.brandCheckIdentifier,oi,ke.kind,ke.isStatic?ke.variableName:void 0);case"untransformed":return Se.fail("Access helpers should not be created for untransformed private elements");default:Se.assertNever(ke,"Unknown private element type")}}function Mt(ke){return Qn(ke.members,cce)}function hi(ke){var Qt;let oi=0,nn=Gm(ke);bc(nn)&&aN(M,nn)&&(oi|=1),$&&(o9(ke)||r2e(ke))&&(oi|=2);let hr=!1,io=!1,Er=!1,is=!1;for(let da of ke.members)Xd(da)?((da.name&&(wl(da.name)||g1(da))&&$||g1(da)&&K===-1&&!ke.name&&!((Qt=ke.emitNode)!=null&&Qt.classThis))&&(oi|=2),(vu(da)||Yf(da))&&(re&&da.transformFlags&16384&&(oi|=8,oi&1||(oi|=2)),X&&da.transformFlags&134217728&&(oi&1||(oi|=6)))):qA(Gm(da))||(g1(da)?(is=!0,Er||(Er=qb(da))):qb(da)?(Er=!0,k.hasNodeCheckFlag(da,262144)&&(oi|=2)):vu(da)&&(hr=!0,io||(io=!!da.initializer)));return(H&&hr||R&&io||$&&Er||$&&is&&K===-1)&&(oi|=16),oi}function Ie(ke){var Qt;if((((Qt=Le?.data)==null?void 0:Qt.facts)||0)&4){let nn=n.createTempVariable(u,!0);return wr().superClassReference=nn,n.updateExpressionWithTypeArguments(ke,n.createAssignment(nn,on(ke.expression,Ke,An)),void 0)}return Fo(ke,Ke,t)}function Bt(ke,Qt){var oi;let nn=Ae,hr=xe,io=Le;Ae=ke,xe=void 0,Kn();let Er=RC(ke)&32;if($||Er){let da=Nu(ke);if(da&&Ai(da))Nr().data.className=da;else if((oi=ke.emitNode)!=null&&oi.assignedName&&Kf(ke.emitNode.assignedName)){if(ke.emitNode.assignedName.textSourceNode&&Ai(ke.emitNode.assignedName.textSourceNode))Nr().data.className=ke.emitNode.assignedName.textSourceNode;else if(Jb(ke.emitNode.assignedName.text,I)){let cu=n.createIdentifier(ke.emitNode.assignedName.text);Nr().data.className=cu}}}if($){let da=Mt(ke);En(da)&&(Nr().data.weakSetName=$l("instances",da[0].name))}let is=hi(ke);is&&(wr().facts=is),is&8&&Cn();let zs=Qt(ke,is);return Ti(),Se.assert(Le===io),Ae=nn,xe=hr,zs}function ui(ke){return Bt(ke,Ue)}function Ue(ke,Qt){var oi,nn;let hr;if(Qt&2)if($&&((oi=ke.emitNode)!=null&&oi.classThis))wr().classConstructor=ke.emitNode.classThis,hr=n.createAssignment(ke.emitNode.classThis,n.getInternalName(ke));else{let td=n.createTempVariable(u,!0);wr().classConstructor=n.cloneNode(td),hr=n.createAssignment(td,n.getInternalName(ke))}(nn=ke.emitNode)!=null&&nn.classThis&&(wr().classThis=ke.emitNode.classThis);let io=k.hasNodeCheckFlag(ke,262144),Er=kc(ke,32),is=kc(ke,2048),zs=ts(ke.modifiers,$e,jd),da=ts(ke.heritageClauses,_t,KC),{members:cu,prologue:ru}=at(ke),mf=[];if(hr&&Vr().unshift(hr),En(xe)&&mf.push(n.createExpressionStatement(n.inlineExpressions(xe))),R||$||RC(ke)&32){let td=cO(ke);En(td)&&Fi(mf,td,n.getInternalName(ke))}mf.length>0&&Er&&is&&(zs=ts(zs,td=>lhe(td)?void 0:td,jd),mf.push(n.createExportAssignment(void 0,!1,n.getLocalName(ke,!1,!0))));let B_=wr().classConstructor;io&&B_&&(Ri(),Ee[rC(ke)]=B_);let vd=n.updateClassDeclaration(ke,zs,ke.name,void 0,da,cu);return mf.unshift(vd),ru&&mf.unshift(n.createExpressionStatement(ru)),mf}function Ce(ke){return Bt(ke,ye)}function ye(ke,Qt){var oi,nn,hr;let io=!!(Qt&1),Er=cO(ke),is=k.hasNodeCheckFlag(ke,262144),zs=k.hasNodeCheckFlag(ke,32768),da;function cu(){var er;if($&&((er=ke.emitNode)!=null&&er.classThis))return wr().classConstructor=ke.emitNode.classThis;let wo=n.createTempVariable(zs?x:u,!0);return wr().classConstructor=n.cloneNode(wo),wo}(oi=ke.emitNode)!=null&&oi.classThis&&(wr().classThis=ke.emitNode.classThis),Qt&2&&(da??(da=cu()));let ru=ts(ke.modifiers,$e,jd),mf=ts(ke.heritageClauses,_t,KC),{members:B_,prologue:vd}=at(ke),td=n.updateClassExpression(ke,ru,ke.name,void 0,mf,B_),rp=[];if(vd&&rp.push(vd),($||RC(ke)&32)&&En(Er,er=>Yf(er)||qb(er)||U&&n9(er))||En(xe))if(io)Se.assertIsDefined(be,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),En(xe)&&Ho(be,$i(xe,n.createExpressionStatement)),En(Er)&&Fi(be,Er,((nn=ke.emitNode)==null?void 0:nn.classThis)??n.getInternalName(ke)),da?rp.push(n.createAssignment(da,td)):$&&((hr=ke.emitNode)!=null&&hr.classThis)?rp.push(n.createAssignment(ke.emitNode.classThis,td)):rp.push(td);else{if(da??(da=cu()),is){Ri();let er=n.cloneNode(da);er.emitNode.autoGenerate.flags&=-9,Ee[rC(ke)]=er}rp.push(n.createAssignment(da,td)),Ho(rp,xe),Ho(rp,In(Er,da)),rp.push(n.cloneNode(da))}else rp.push(td);return rp.length>1&&(gN(td,131072),rp.forEach(T1)),n.inlineExpressions(rp)}function vt(ke){if(!$)return Fo(ke,Ke,t)}function pe(ke){if(re&&Ge&&Yf(Ge)&&Le?.data){let{classThis:Qt,classConstructor:oi}=Le.data;return Qt??oi??ke}return ke}function at(ke){let Qt=!!(RC(ke)&32);if($||ae){for(let Er of ke.members)if(qb(Er))if(xr(Er))Pf(Er,Er.name,ir);else{let is=Nr();r9(is,Er.name,{kind:"untransformed"})}if($&&En(Mt(ke))&&We(),gn()){for(let Er of ke.members)if(g1(Er)){let is=n.getGeneratedPrivateNameForNode(Er.name,void 0,"_accessor_storage");if($||Qt&&G0(Er))Pf(Er,is,Ts);else{let zs=Nr();r9(zs,is,{kind:"untransformed"})}}}}let oi=ts(ke.members,mt,rl),nn;En(oi,yl)||(nn=si(void 0,ke));let hr,io;if(!$&&En(xe)){let Er=n.createExpressionStatement(n.inlineExpressions(xe));if(Er.transformFlags&134234112){let zs=n.createTempVariable(u),da=n.createArrowFunction(void 0,void 0,[],void 0,void 0,n.createBlock([Er]));hr=n.createAssignment(zs,da),Er=n.createExpressionStatement(n.createCallExpression(zs,void 0,[]))}let is=n.createBlock([Er]);io=n.createClassStaticBlockDeclaration(is),xe=void 0}if(nn||io){let Er,is=jt(oi,uce),zs=jt(oi,PK);Er=ar(Er,is),Er=ar(Er,zs),Er=ar(Er,nn),Er=ar(Er,io);let da=is||zs?Qn(oi,cu=>cu!==is&&cu!==zs):oi;Er=Ho(Er,da),oi=Fn(n.createNodeArray(Er),ke.members)}return{members:oi,prologue:hr}}function We(){let{weakSetName:ke}=Nr().data;Se.assert(ke,"weakSetName should be set in private identifier environment"),Vr().push(n.createAssignment(ke,n.createNewExpression(n.createIdentifier("WeakSet"),void 0,[])))}function si(ke,Qt){if(ke=on(ke,Ke,yl),!Le?.data||!(Le.data.facts&16))return ke;let oi=HE(Qt),nn=!!(oi&&ug(oi.expression).kind!==106),hr=Af(ke?ke.parameters:void 0,Ke,t),io=Ot(Qt,ke,nn);return io?ke?(Se.assert(hr),n.updateConstructorDeclaration(ke,void 0,hr,io)):T1(Wo(Fn(n.createConstructorDeclaration(void 0,hr??[],io),ke||Qt),ke)):ke}function At(ke,Qt,oi,nn,hr,io,Er){let is=nn[hr],zs=Qt[is];if(Ho(ke,ts(Qt,Ke,ll,oi,is-oi)),oi=is+1,Q8(zs)){let da=[];At(da,zs.tryBlock.statements,0,nn,hr+1,io,Er);let cu=n.createNodeArray(da);Fn(cu,zs.tryBlock.statements),ke.push(n.updateTryStatement(zs,n.updateBlock(zs.tryBlock,da),on(zs.catchClause,Ke,eC),on(zs.finallyBlock,Ke,qu)))}else{for(Ho(ke,ts(Qt,Ke,ll,is,1));oi!!vd.initializer||wl(vd.name)||dN(vd)));let Er=Mt(ke),is=En(io)||En(Er);if(!Qt&&!is)return Po(void 0,Ke,t);v();let zs=!Qt&&oi,da=0,cu=[],ru=[],mf=n.createThis();if(cn(ru,Er,mf),Qt){let vd=Qn(hr,rp=>OC(Gm(rp),Qt)),td=Qn(io,rp=>!OC(Gm(rp),Qt));Fi(ru,vd,mf),Fi(ru,td,mf)}else Fi(ru,io,mf);if(Qt?.body){da=n.copyPrologue(Qt.body.statements,cu,!1,Ke);let vd=wW(Qt.body.statements,da);if(vd.length)At(cu,Qt.body.statements,da,vd,0,ru,Qt);else{for(;da=cu.length?Qt.body.multiLine??cu.length>0:cu.length>0;return Fn(n.createBlock(Fn(n.createNodeArray(cu),((nn=Qt?.body)==null?void 0:nn.statements)??ke.members),B_),Qt?.body)}function Fi(ke,Qt,oi){for(let nn of Qt){if(Xd(nn)&&!$)continue;let hr=Vn(nn,oi);hr&&ke.push(hr)}}function Vn(ke,Qt){let oi=Yf(ke)?_r(ke,Ve,ke):dn(ke,Qt);if(!oi)return;let nn=n.createExpressionStatement(oi);Wo(nn,ke),gN(nn,N_(ke)&3072),Xg(nn,ke);let hr=Gm(ke);return Fl(hr)?(w_(nn,hr),Hme(nn)):w_(nn,JE(ke)),pw(oi,void 0),Qj(oi,void 0),dN(hr)&&gN(nn,3072),nn}function In(ke,Qt){let oi=[];for(let nn of ke){let hr=Yf(nn)?_r(nn,Ve,nn):_r(nn,()=>dn(nn,Qt),void 0);hr&&(T1(hr),Wo(hr,nn),gN(hr,N_(nn)&3072),w_(hr,JE(nn)),Xg(hr,nn),oi.push(hr))}return oi}function dn(ke,Qt){var oi;let nn=Ge,hr=Si(ke,Qt);return hr&&G0(ke)&&((oi=Le?.data)!=null&&oi.facts)&&(Wo(hr,ke),gN(hr,4),w_(hr,J8(ke.name)),fe.set(Gm(ke),Le)),Ge=nn,hr}function Si(ke,Qt){let oi=!A;Yb(ke,Tt)&&(ke=mb(t,ke));let nn=dN(ke)?n.getGeneratedPrivateNameForNode(ke.name):f_(ke.name)&&!cI(ke.name.expression)?n.updateComputedPropertyName(ke.name,n.getGeneratedNameForNode(ke.name)):ke.name;if(G0(ke)&&(Ge=ke),wl(nn)&&xr(ke)){let Er=vl(nn);if(Er)return Er.kind==="f"?Er.isStatic?_Bt(n,Er.variableName,on(ke.initializer,Ke,An)):vw(n,Qt,on(ke.initializer,Ke,An),Er.brandCheckIdentifier):void 0;Se.fail("Undeclared private name for property declaration.")}if((wl(nn)||G0(ke))&&!ke.initializer)return;let hr=Gm(ke);if(kc(hr,64))return;let io=on(ke.initializer,Ke,An);if(OC(hr,hr.parent)&&Ai(nn)){let Er=n.cloneNode(nn);io?(Tu(io)&&ohe(io.expression)&&QG(io.expression.left,"___runInitializers")&&rd(io.expression.right)&&mx(io.expression.right.expression)&&(io=io.expression.left),io=n.inlineExpressions([io,Er])):io=Er,De(nn,3168),w_(Er,hr.name),De(Er,3072)}else io??(io=n.createVoidZero());if(oi||wl(nn)){let Er=XC(n,Qt,nn,nn);return gN(Er,1024),n.createAssignment(Er,io)}else{let Er=f_(nn)?nn.expression:Ai(nn)?n.createStringLiteral(Ba(nn.escapedText)):nn,is=n.createPropertyDescriptor({value:io,configurable:!0,writable:!0,enumerable:!0});return n.createObjectDefinePropertyCall(Qt,Er,is)}}function Ri(){le&1||(le|=1,t.enableSubstitution(80),Ee=[])}function Cn(){le&2||(le|=2,t.enableSubstitution(110),t.enableEmitNotification(262),t.enableEmitNotification(218),t.enableEmitNotification(176),t.enableEmitNotification(177),t.enableEmitNotification(178),t.enableEmitNotification(174),t.enableEmitNotification(172),t.enableEmitNotification(167))}function cn(ke,Qt,oi){if(!$||!En(Qt))return;let{weakSetName:nn}=Nr().data;Se.assert(nn,"weakSetName should be set in private identifier environment"),ke.push(n.createExpressionStatement(iXe(n,oi,nn)))}function Pn(ke){return ba(ke)?n.updatePropertyAccessExpression(ke,n.createVoidZero(),ke.name):n.updateElementAccessExpression(ke,n.createVoidZero(),on(ke.argumentExpression,Ke,An))}function Wi(ke,Qt){if(f_(ke)){let oi=dhe(ke),nn=on(ke.expression,Ke,An),hr=dh(nn),io=cI(hr);if(!(!!oi||Kg(hr)&&Tm(hr.left))&&!io&&Qt){let is=n.getGeneratedNameForNode(ke);return k.hasNodeCheckFlag(ke,32768)?x(is):u(is),n.createAssignment(is,nn)}return io||Ai(hr)?void 0:nn}}function Kn(){Le={previous:Le,data:void 0}}function Ti(){Le=Le?.previous}function wr(){return Se.assert(Le),Le.data??(Le.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0})}function Nr(){return Se.assert(Le),Le.privateEnv??(Le.privateEnv=Qee({className:void 0,weakSetName:void 0}))}function Vr(){return xe??(xe=[])}function ir(ke,Qt,oi,nn,hr,io,Er){g1(ke)?Fa(ke,Qt,oi,nn,hr,io,Er):vu(ke)?Ts(ke,Qt,oi,nn,hr,io,Er):Sg(ke)?pa(ke,Qt,oi,nn,hr,io,Er):n_(ke)?Nc(ke,Qt,oi,nn,hr,io,Er):zc(ke)&&_a(ke,Qt,oi,nn,hr,io,Er)}function Ts(ke,Qt,oi,nn,hr,io,Er){if(hr){let is=Se.checkDefined(oi.classThis??oi.classConstructor,"classConstructor should be set in private identifier environment"),zs=cc(Qt);r9(nn,Qt,{kind:"f",isStatic:!0,brandCheckIdentifier:is,variableName:zs,isValid:io})}else{let is=cc(Qt);r9(nn,Qt,{kind:"f",isStatic:!1,brandCheckIdentifier:is,isValid:io}),Vr().push(n.createAssignment(is,n.createNewExpression(n.createIdentifier("WeakMap"),void 0,[])))}}function pa(ke,Qt,oi,nn,hr,io,Er){let is=cc(Qt),zs=hr?Se.checkDefined(oi.classThis??oi.classConstructor,"classConstructor should be set in private identifier environment"):Se.checkDefined(nn.data.weakSetName,"weakSetName should be set in private identifier environment");r9(nn,Qt,{kind:"m",methodName:is,brandCheckIdentifier:zs,isStatic:hr,isValid:io})}function Nc(ke,Qt,oi,nn,hr,io,Er){let is=cc(Qt,"_get"),zs=hr?Se.checkDefined(oi.classThis??oi.classConstructor,"classConstructor should be set in private identifier environment"):Se.checkDefined(nn.data.weakSetName,"weakSetName should be set in private identifier environment");Er?.kind==="a"&&Er.isStatic===hr&&!Er.getterName?Er.getterName=is:r9(nn,Qt,{kind:"a",getterName:is,setterName:void 0,brandCheckIdentifier:zs,isStatic:hr,isValid:io})}function _a(ke,Qt,oi,nn,hr,io,Er){let is=cc(Qt,"_set"),zs=hr?Se.checkDefined(oi.classThis??oi.classConstructor,"classConstructor should be set in private identifier environment"):Se.checkDefined(nn.data.weakSetName,"weakSetName should be set in private identifier environment");Er?.kind==="a"&&Er.isStatic===hr&&!Er.setterName?Er.setterName=is:r9(nn,Qt,{kind:"a",getterName:void 0,setterName:is,brandCheckIdentifier:zs,isStatic:hr,isValid:io})}function Fa(ke,Qt,oi,nn,hr,io,Er){let is=cc(Qt,"_get"),zs=cc(Qt,"_set"),da=hr?Se.checkDefined(oi.classThis??oi.classConstructor,"classConstructor should be set in private identifier environment"):Se.checkDefined(nn.data.weakSetName,"weakSetName should be set in private identifier environment");r9(nn,Qt,{kind:"a",getterName:is,setterName:zs,brandCheckIdentifier:da,isStatic:hr,isValid:io})}function Pf(ke,Qt,oi){let nn=wr(),hr=Nr(),io=nge(hr,Qt),Er=G0(ke),is=!SFe(Qt)&&io===void 0;oi(ke,Qt,nn,hr,Er,is,io)}function $l(ke,Qt,oi){let{className:nn}=Nr().data,hr=nn?{prefix:"_",node:nn,suffix:"_"}:"_",io=typeof ke=="object"?n.getGeneratedNameForNode(ke,24,hr,oi):typeof ke=="string"?n.createUniqueName(ke,16,hr,oi):n.createTempVariable(void 0,!0,hr,oi);return k.hasNodeCheckFlag(Qt,32768)?x(io):u(io),io}function cc(ke,Qt){let oi=rG(ke);return $l(oi?.substring(1)??ke,ke,Qt)}function vl(ke){let Qt=rge(Le,ke);return Qt?.kind==="untransformed"?void 0:Qt}function G_(ke){let Qt=n.getGeneratedNameForNode(ke),oi=vl(ke.name);if(!oi)return Fo(ke,Ke,t);let nn=ke.expression;return(gj(ke)||Xx(ke)||!Sx(ke.expression))&&(nn=n.createTempVariable(u,!0),Vr().push(n.createBinaryExpression(nn,64,on(ke.expression,Ke,An)))),n.createAssignmentTargetWrapper(Qt,Gt(oi,nn,Qt,64))}function ja(ke){if(Ld(ke)||Yg(ke))return Ar(ke);if(iN(ke))return G_(ke);if(X&&Ge&&Xx(ke)&&fce(Ge)&&Le?.data){let{classConstructor:Qt,superClassReference:oi,facts:nn}=Le.data;if(nn&1)return Pn(ke);if(Qt&&oi){let hr=T_(ke)?on(ke.argumentExpression,Ke,An):Ai(ke.name)?n.createStringLiteralFromNode(ke.name):void 0;if(hr){let io=n.createTempVariable(void 0);return n.createAssignmentTargetWrapper(io,n.createReflectSetCall(oi,hr,io,Qt))}}}return Fo(ke,Ke,t)}function Gd(ke){if(Yb(ke,Tt)&&(ke=mb(t,ke)),Kg(ke,!0)){let Qt=ja(ke.left),oi=on(ke.right,Ke,An);return n.updateBinaryExpression(ke,Qt,ke.operatorToken,oi)}return ja(ke)}function Su(ke){if(MS(ke.expression)){let Qt=ja(ke.expression);return n.updateSpreadElement(ke,Qt)}return Fo(ke,Ke,t)}function Aa(ke){if(a5(ke)){if(yx(ke))return Su(ke);if(!Eh(ke))return Gd(ke)}return Fo(ke,Ke,t)}function gr(ke){let Qt=on(ke.name,Ke,C_);if(Kg(ke.initializer,!0)){let oi=Gd(ke.initializer);return n.updatePropertyAssignment(ke,Qt,oi)}if(MS(ke.initializer)){let oi=ja(ke.initializer);return n.updatePropertyAssignment(ke,Qt,oi)}return Fo(ke,Ke,t)}function Wl(ke){return Yb(ke,Tt)&&(ke=mb(t,ke)),Fo(ke,Ke,t)}function Vc(ke){if(MS(ke.expression)){let Qt=ja(ke.expression);return n.updateSpreadAssignment(ke,Qt)}return Fo(ke,Ke,t)}function xu(ke){return Se.assertNode(ke,_Z),H2(ke)?Vc(ke):Q0(ke)?Wl(ke):Ih(ke)?gr(ke):Fo(ke,Ke,t)}function Ar(ke){return Yg(ke)?n.updateArrayLiteralExpression(ke,ts(ke.elements,Aa,An)):n.updateObjectLiteralExpression(ke,ts(ke.properties,xu,FC))}function Hl(ke,Qt,oi){let nn=Gm(Qt),hr=fe.get(nn);if(hr){let io=Le,Er=Oe;Le=hr,Oe=he,he=!Yf(nn)||!(RC(nn)&32),_e(ke,Qt,oi),he=Oe,Oe=Er,Le=io;return}switch(Qt.kind){case 218:if(Zc(nn)||N_(Qt)&524288)break;case 262:case 176:case 177:case 178:case 174:case 172:{let io=Le,Er=Oe;Le=void 0,Oe=he,he=!1,_e(ke,Qt,oi),he=Oe,Oe=Er,Le=io;return}case 167:{let io=Le,Er=he;Le=Le?.previous,he=Oe,_e(ke,Qt,oi),he=Er,Le=io;return}}_e(ke,Qt,oi)}function Lf(ke,Qt){return Qt=se(ke,Qt),ke===1?Rt(Qt):Qt}function Rt(ke){switch(ke.kind){case 80:return Ci(ke);case 110:return bt(ke)}return ke}function bt(ke){if(le&2&&Le?.data&&!we.has(ke)){let{facts:Qt,classConstructor:oi,classThis:nn}=Le.data,hr=he?nn??oi:oi;if(hr)return Fn(Wo(n.cloneNode(hr),ke),ke);if(Qt&1&&M)return n.createParenthesizedExpression(n.createVoidZero())}return ke}function Ci(ke){return kn(ke)||ke}function kn(ke){if(le&1&&k.hasNodeCheckFlag(ke,536870912)){let Qt=k.getReferencedValueDeclaration(ke);if(Qt){let oi=Ee[Qt.id];if(oi){let nn=n.cloneNode(oi);return w_(nn,ke),Xg(nn,ke),nn}}}}}function _Bt(t,n,a){return t.createAssignment(n,t.createObjectLiteralExpression([t.createPropertyAssignment("value",a||t.createVoidZero())]))}function vw(t,n,a,u){return t.createCallExpression(t.createPropertyAccessExpression(u,"set"),void 0,[n,a||t.createVoidZero()])}function iXe(t,n,a){return t.createCallExpression(t.createPropertyAccessExpression(a,"add"),void 0,[n])}function SFe(t){return!FA(t)&&t.escapedText==="#constructor"}function nXe(t){return wl(t.left)&&t.operatorToken.kind===103}function rXe(t){return vu(t)&&G0(t)}function fce(t){return Yf(t)||rXe(t)}function a2e(t){let{factory:n,hoistVariableDeclaration:a}=t,u=t.getEmitResolver(),m=t.getCompilerOptions(),g=h_(m),v=d0(m,"strictNullChecks"),x,k;return{serializeTypeNode:(xe,be)=>T(xe,U,be),serializeTypeOfNode:(xe,be,Le)=>T(xe,A,be,Le),serializeParameterTypesOfNode:(xe,be,Le)=>T(xe,M,be,Le),serializeReturnTypeOfNode:(xe,be)=>T(xe,H,be)};function T(xe,be,Le,fe){let we=x,Ae=k;x=xe.currentLexicalScope,k=xe.currentNameScope;let Ge=fe===void 0?be(Le):be(Le,fe);return x=we,k=Ae,Ge}function I(xe,be){let Le=j2(be.members,xe);return Le.setAccessor&&T5(Le.setAccessor)||Le.getAccessor&&WC(Le.getAccessor)}function A(xe,be){switch(xe.kind){case 172:case 169:return U(xe.type);case 178:case 177:return U(I(xe,be));case 263:case 231:case 174:return n.createIdentifier("Function");default:return n.createVoidZero()}}function M(xe,be){let Le=bc(xe)?eI(xe):iu(xe)&&jT(xe.body)?xe:void 0,fe=[];if(Le){let we=R(Le,be),Ae=we.length;for(let Ge=0;Gewe.parent&&YE(we.parent)&&(we.parent.trueType===we||we.parent.falseType===we)))return n.createIdentifier("Object");let Le=se(xe.typeName),fe=n.createTempVariable(a);return n.createConditionalExpression(n.createTypeCheck(n.createAssignment(fe,Le),"function"),void 0,fe,void 0,n.createIdentifier("Object"));case 1:return _e(xe.typeName);case 2:return n.createVoidZero();case 4:return Ee("BigInt",7);case 6:return n.createIdentifier("Boolean");case 3:return n.createIdentifier("Number");case 5:return n.createIdentifier("String");case 7:return n.createIdentifier("Array");case 8:return Ee("Symbol",2);case 10:return n.createIdentifier("Function");case 9:return n.createIdentifier("Promise");case 11:return n.createIdentifier("Object");default:return Se.assertNever(be)}}function ne(xe,be){return n.createLogicalAnd(n.createStrictInequality(n.createTypeOfExpression(xe),n.createStringLiteral("undefined")),be)}function se(xe){if(xe.kind===80){let fe=_e(xe);return ne(fe,fe)}if(xe.left.kind===80)return ne(_e(xe.left),_e(xe));let be=se(xe.left),Le=n.createTempVariable(a);return n.createLogicalAnd(n.createLogicalAnd(be.left,n.createStrictInequality(n.createAssignment(Le,be.right),n.createVoidZero())),n.createPropertyAccessExpression(Le,xe.right))}function _e(xe){switch(xe.kind){case 80:let be=dp(Fn(mL.cloneNode(xe),xe),xe.parent);return be.original=void 0,dp(be,ju(x)),be;case 166:return ae(xe)}}function ae(xe){return n.createPropertyAccessExpression(_e(xe.left),xe.right)}function le(xe){return n.createConditionalExpression(n.createTypeCheck(n.createIdentifier(xe),"function"),void 0,n.createIdentifier(xe),void 0,n.createIdentifier("Object"))}function Ee(xe,be){return glhe(gn)||Cy(gn)?void 0:gn,Fm),mr=JE(Ut),Ei=_t(Ut),zn=v<2?n.getInternalName(Ut,!1,!0):n.getLocalName(Ut,!1,!0),zr=ts(Ut.heritageClauses,A,KC),xr=ts(Ut.members,A,rl),lo=[];({members:xr,decorationStatements:lo}=$(Ut,xr));let _r=v>=9&&!!Ei&&En(xr,gn=>vu(gn)&&kc(gn,256)||Yf(gn));_r&&(xr=Fn(n.createNodeArray([n.createClassStaticBlockDeclaration(n.createBlock([n.createExpressionStatement(n.createAssignment(Ei,n.createThis()))])),...xr]),xr));let Hs=n.createClassExpression(Bn,pi&&Tm(pi)?void 0:pi,void 0,zr,xr);Wo(Hs,Ut),Fn(Hs,mr);let ai=Ei&&!_r?n.createAssignment(Ei,Hs):Hs,mn=n.createVariableDeclaration(zn,void 0,void 0,ai);Wo(mn,Ut);let Nn=n.createVariableDeclarationList([mn],1),Gr=n.createVariableStatement(void 0,Nn);Wo(Gr,Ut),Fn(Gr,mr),Xg(Gr,Ut);let ci=[Gr];if(Ho(ci,lo),Oe(ci,Ut),wi)if(Bi){let gn=n.createExportDefault(zn);ci.push(gn)}else{let gn=n.createExternalModuleExport(n.getDeclarationName(Ut));ci.push(gn)}return ci}function X(Ut){return n.updateClassExpression(Ut,ts(Ut.modifiers,I,jd),Ut.name,void 0,ts(Ut.heritageClauses,A,KC),ts(Ut.members,A,rl))}function ne(Ut){return n.updateConstructorDeclaration(Ut,ts(Ut.modifiers,I,jd),ts(Ut.parameters,A,Fl),on(Ut.body,A,qu))}function se(Ut,pi){return Ut!==pi&&(Xg(Ut,pi),w_(Ut,JE(pi))),Ut}function _e(Ut){return se(n.updateMethodDeclaration(Ut,ts(Ut.modifiers,I,jd),Ut.asteriskToken,Se.checkDefined(on(Ut.name,A,C_)),void 0,void 0,ts(Ut.parameters,A,Fl),void 0,on(Ut.body,A,qu)),Ut)}function ae(Ut){return se(n.updateGetAccessorDeclaration(Ut,ts(Ut.modifiers,I,jd),Se.checkDefined(on(Ut.name,A,C_)),ts(Ut.parameters,A,Fl),void 0,on(Ut.body,A,qu)),Ut)}function le(Ut){return se(n.updateSetAccessorDeclaration(Ut,ts(Ut.modifiers,I,jd),Se.checkDefined(on(Ut.name,A,C_)),ts(Ut.parameters,A,Fl),on(Ut.body,A,qu)),Ut)}function Ee(Ut){if(!(Ut.flags&33554432||kc(Ut,128)))return se(n.updatePropertyDeclaration(Ut,ts(Ut.modifiers,I,jd),Se.checkDefined(on(Ut.name,A,C_)),void 0,void 0,on(Ut.initializer,A,An)),Ut)}function xe(Ut){let pi=n.updateParameterDeclaration(Ut,xGe(n,Ut.modifiers),Ut.dotDotDotToken,Se.checkDefined(on(Ut.name,A,_4)),void 0,void 0,on(Ut.initializer,A,An));return pi!==Ut&&(Xg(pi,Ut),Fn(pi,JE(Ut)),w_(pi,JE(Ut)),De(pi.name,64)),pi}function be(Ut){return QG(Ut.expression,"___metadata")}function Le(Ut){if(!Ut)return;let{false:pi,true:wi}=Ug(Ut.decorators,be),Bi=[];return Ho(Bi,$i(pi,$e)),Ho(Bi,za(Ut.parameters,Ke)),Ho(Bi,$i(wi,$e)),Bi}function fe(Ut,pi,wi){Ho(Ut,$i(Ge(pi,wi),Bi=>n.createExpressionStatement(Bi)))}function we(Ut,pi,wi){return yj(!0,Ut,wi)&&pi===Xd(Ut)}function Ae(Ut,pi){return Qn(Ut.members,wi=>we(wi,pi,Ut))}function Ge(Ut,pi){let wi=Ae(Ut,pi),Bi;for(let Bn of wi)Bi=ar(Bi,he(Ut,Bn));return Bi}function he(Ut,pi){let wi=Yee(pi,Ut,!0),Bi=Le(wi);if(!Bi)return;let Bn=mt(Ut,pi),mr=qe(pi,!kc(pi,128)),Ei=vu(pi)&&!dN(pi)?n.createVoidZero():n.createNull(),zn=a().createDecorateHelper(Bi,Bn,mr,Ei);return De(zn,3072),w_(zn,JE(pi)),zn}function Oe(Ut,pi){let wi=Re(pi);wi&&Ut.push(Wo(n.createExpressionStatement(wi),pi))}function Re(Ut){let pi=Xee(Ut),wi=Le(pi);if(!wi)return;let Bi=k&&k[rC(Ut)],Bn=v<2?n.getInternalName(Ut,!1,!0):n.getDeclarationName(Ut,!1,!0),mr=a().createDecorateHelper(wi,Bn),Ei=n.createAssignment(Bn,Bi?n.createAssignment(Bi,mr):mr);return De(Ei,3072),w_(Ei,JE(Ut)),Ei}function $e(Ut){return Se.checkDefined(on(Ut.expression,A,An))}function Ke(Ut,pi){let wi;if(Ut){wi=[];for(let Bi of Ut){let Bn=a().createParamHelper($e(Bi),pi);Fn(Bn,Bi.expression),De(Bn,3072),wi.push(Bn)}}return wi}function qe(Ut,pi){let wi=Ut.name;return wl(wi)?n.createIdentifier(""):f_(wi)?pi&&!cI(wi.expression)?n.getGeneratedNameForNode(wi):wi.expression:Ai(wi)?n.createStringLiteral(Un(wi)):n.cloneNode(wi)}function rt(){k||(t.enableSubstitution(80),k=[])}function _t(Ut){if(m.hasNodeCheckFlag(Ut,262144)){rt();let pi=n.createUniqueName(Ut.name&&!Tm(Ut.name)?Un(Ut.name):"default");return k[rC(Ut)]=pi,u(pi),pi}}function ft(Ut){return n.createPropertyAccessExpression(n.getDeclarationName(Ut),"prototype")}function mt(Ut,pi){return Xd(pi)?n.getDeclarationName(Ut):ft(Ut)}function ut(Ut,pi){return pi=x(Ut,pi),Ut===1?ht(pi):pi}function ht(Ut){switch(Ut.kind){case 80:return Kt(Ut)}return Ut}function Kt(Ut){return ni(Ut)??Ut}function ni(Ut){if(k&&m.hasNodeCheckFlag(Ut,536870912)){let pi=m.getReferencedValueDeclaration(Ut);if(pi){let wi=k[pi.id];if(wi){let Bi=n.cloneNode(wi);return w_(Bi,Ut),Xg(Bi,Ut),Bi}}}}}function oXe(t){let{factory:n,getEmitHelperFactory:a,startLexicalEnvironment:u,endLexicalEnvironment:m,hoistVariableDeclaration:g}=t,v=h_(t.getCompilerOptions()),x,k,T,I,A,M;return kN(t,R);function R(pe){x=void 0,M=!1;let at=Fo(pe,le,t);return bk(at,t.readEmitHelpers()),M&&(Na(at,32),M=!1),at}function H(){switch(k=void 0,T=void 0,I=void 0,x?.kind){case"class":k=x.classInfo;break;case"class-element":k=x.next.classInfo,T=x.classThis,I=x.classSuper;break;case"name":let pe=x.next.next.next;pe?.kind==="class-element"&&(k=pe.next.classInfo,T=pe.classThis,I=pe.classSuper);break}}function U(pe){x={kind:"class",next:x,classInfo:pe,savedPendingExpressions:A},A=void 0,H()}function $(){Se.assert(x?.kind==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${x?.kind}' instead.`),A=x.savedPendingExpressions,x=x.next,H()}function K(pe){var at,We;Se.assert(x?.kind==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${x?.kind}' instead.`),x={kind:"class-element",next:x},(Yf(pe)||vu(pe)&&G0(pe))&&(x.classThis=(at=x.next.classInfo)==null?void 0:at.classThis,x.classSuper=(We=x.next.classInfo)==null?void 0:We.classSuper),H()}function re(){var pe;Se.assert(x?.kind==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${x?.kind}' instead.`),Se.assert(((pe=x.next)==null?void 0:pe.kind)==="class","Incorrect value for top.next.kind.",()=>{var at;return`Expected top.next.kind to be 'class' but got '${(at=x.next)==null?void 0:at.kind}' instead.`}),x=x.next,H()}function X(){Se.assert(x?.kind==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${x?.kind}' instead.`),x={kind:"name",next:x},H()}function ne(){Se.assert(x?.kind==="name","Incorrect value for top.kind.",()=>`Expected top.kind to be 'name' but got '${x?.kind}' instead.`),x=x.next,H()}function se(){x?.kind==="other"?(Se.assert(!A),x.depth++):(x={kind:"other",next:x,depth:0,savedPendingExpressions:A},A=void 0,H())}function _e(){Se.assert(x?.kind==="other","Incorrect value for top.kind.",()=>`Expected top.kind to be 'other' but got '${x?.kind}' instead.`),x.depth>0?(Se.assert(!A),x.depth--):(A=x.savedPendingExpressions,x=x.next,H())}function ae(pe){return!!(pe.transformFlags&33554432)||!!T&&!!(pe.transformFlags&16384)||!!T&&!!I&&!!(pe.transformFlags&134217728)}function le(pe){if(!ae(pe))return pe;switch(pe.kind){case 170:return Se.fail("Use `modifierVisitor` instead.");case 263:return Re(pe);case 231:return $e(pe);case 176:case 172:case 175:return Se.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 169:return mr(pe);case 226:return lo(pe,!1);case 303:return Gr(pe);case 260:return ci(pe);case 208:return gn(pe);case 277:return nt(pe);case 110:return Ut(pe);case 248:return zr(pe);case 244:return xr(pe);case 355:return Hs(pe,!1);case 217:return Lt(pe,!1);case 354:return Pe(pe,!1);case 213:return pi(pe);case 215:return wi(pe);case 224:case 225:return _r(pe,!1);case 211:return Bi(pe);case 212:return Bn(pe);case 167:return Nn(pe);case 174:case 178:case 177:case 218:case 262:{se();let at=Fo(pe,Ee,t);return _e(),at}default:return Fo(pe,Ee,t)}}function Ee(pe){switch(pe.kind){case 170:return;default:return le(pe)}}function xe(pe){switch(pe.kind){case 170:return;default:return pe}}function be(pe){switch(pe.kind){case 176:return rt(pe);case 174:return mt(pe);case 177:return ut(pe);case 178:return ht(pe);case 172:return ni(pe);case 175:return Kt(pe);default:return le(pe)}}function Le(pe){switch(pe.kind){case 224:case 225:return _r(pe,!0);case 226:return lo(pe,!0);case 355:return Hs(pe,!0);case 217:return Lt(pe,!0);default:return le(pe)}}function fe(pe){let at=pe.name&&Ai(pe.name)&&!Tm(pe.name)?Un(pe.name):pe.name&&wl(pe.name)&&!Tm(pe.name)?Un(pe.name).slice(1):pe.name&&Kf(pe.name)&&Jb(pe.name.text,99)?pe.name.text:bc(pe)?"class":"member";return oN(pe)&&(at=`get_${at}`),Gw(pe)&&(at=`set_${at}`),pe.name&&wl(pe.name)&&(at=`private_${at}`),Xd(pe)&&(at=`static_${at}`),"_"+at}function we(pe,at){return n.createUniqueName(`${fe(pe)}_${at}`,24)}function Ae(pe,at){return n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(pe,void 0,void 0,at)],1))}function Ge(pe){let at=n.createUniqueName("_metadata",48),We,si,At=!1,Ot=!1,Fi=!1,Vn,In,dn;if(IH(!1,pe)){let Si=En(pe.members,Ri=>(qb(Ri)||g1(Ri))&&G0(Ri));Vn=n.createUniqueName("_classThis",Si?24:48)}for(let Si of pe.members){if(p4(Si)&&yj(!1,Si,pe))if(G0(Si)){if(!si){si=n.createUniqueName("_staticExtraInitializers",48);let Ri=a().createRunInitializersHelper(Vn??n.createThis(),si);w_(Ri,pe.name??I4(pe)),In??(In=[]),In.push(Ri)}}else{if(!We){We=n.createUniqueName("_instanceExtraInitializers",48);let Ri=a().createRunInitializersHelper(n.createThis(),We);w_(Ri,pe.name??I4(pe)),dn??(dn=[]),dn.push(Ri)}We??(We=n.createUniqueName("_instanceExtraInitializers",48))}if(Yf(Si)?PK(Si)||(At=!0):vu(Si)&&(G0(Si)?At||(At=!!Si.initializer||uw(Si)):Ot||(Ot=!d5(Si))),(qb(Si)||g1(Si))&&G0(Si)&&(Fi=!0),si&&We&&At&&Ot&&Fi)break}return{class:pe,classThis:Vn,metadataReference:at,instanceMethodExtraInitializersName:We,staticMethodExtraInitializersName:si,hasStaticInitializers:At,hasNonAmbientInstanceFields:Ot,hasStaticPrivateClassElements:Fi,pendingStaticInitializers:In,pendingInstanceInitializers:dn}}function he(pe){u(),!cge(pe)&&aN(!1,pe)&&(pe=NW(t,pe,n.createStringLiteral("")));let at=n.getLocalName(pe,!1,!1,!0),We=Ge(pe),si=[],At,Ot,Fi,Vn,In=!1,dn=dt(Xee(pe));dn&&(We.classDecoratorsName=n.createUniqueName("_classDecorators",48),We.classDescriptorName=n.createUniqueName("_classDescriptor",48),We.classExtraInitializersName=n.createUniqueName("_classExtraInitializers",48),Se.assertIsDefined(We.classThis),si.push(Ae(We.classDecoratorsName,n.createArrayLiteralExpression(dn)),Ae(We.classDescriptorName),Ae(We.classExtraInitializersName,n.createArrayLiteralExpression()),Ae(We.classThis)),We.hasStaticPrivateClassElements&&(In=!0,M=!0));let Si=HT(pe.heritageClauses,96),Ri=Si&&Ed(Si.types),Cn=Ri&&on(Ri.expression,le,An);if(Cn){We.classSuper=n.createUniqueName("_classSuper",48);let Nr=ug(Cn),Vr=Qh(Nr)&&!Nr.name||yd(Nr)&&!Nr.name||Zc(Nr)?n.createComma(n.createNumericLiteral(0),Cn):Cn;si.push(Ae(We.classSuper,Vr));let ir=n.updateExpressionWithTypeArguments(Ri,We.classSuper,void 0),Ts=n.updateHeritageClause(Si,[ir]);Vn=n.createNodeArray([Ts])}let cn=We.classThis??n.createThis();U(We),At=ar(At,Ce(We.metadataReference,We.classSuper));let Pn=pe.members;if(Pn=ts(Pn,Nr=>yl(Nr)?Nr:be(Nr),rl),Pn=ts(Pn,Nr=>yl(Nr)?be(Nr):Nr,rl),A){let Nr;for(let Vr of A){Vr=on(Vr,function Ts(pa){if(!(pa.transformFlags&16384))return pa;switch(pa.kind){case 110:return Nr||(Nr=n.createUniqueName("_outerThis",16),si.unshift(Ae(Nr,n.createThis()))),Nr;default:return Fo(pa,Ts,t)}},An);let ir=n.createExpressionStatement(Vr);At=ar(At,ir)}A=void 0}if($(),En(We.pendingInstanceInitializers)&&!eI(pe)){let Nr=Ke(pe,We);if(Nr){let Vr=HE(pe),ir=!!(Vr&&ug(Vr.expression).kind!==106),Ts=[];if(ir){let Nc=n.createSpreadElement(n.createIdentifier("arguments")),_a=n.createCallExpression(n.createSuper(),void 0,[Nc]);Ts.push(n.createExpressionStatement(_a))}Ho(Ts,Nr);let pa=n.createBlock(Ts,!0);Fi=n.createConstructorDeclaration(void 0,[],pa)}}if(We.staticMethodExtraInitializersName&&si.push(Ae(We.staticMethodExtraInitializersName,n.createArrayLiteralExpression())),We.instanceMethodExtraInitializersName&&si.push(Ae(We.instanceMethodExtraInitializersName,n.createArrayLiteralExpression())),We.memberInfos&&Km(We.memberInfos,(Nr,Vr)=>{Xd(Vr)&&(si.push(Ae(Nr.memberDecoratorsName)),Nr.memberInitializersName&&si.push(Ae(Nr.memberInitializersName,n.createArrayLiteralExpression())),Nr.memberExtraInitializersName&&si.push(Ae(Nr.memberExtraInitializersName,n.createArrayLiteralExpression())),Nr.memberDescriptorName&&si.push(Ae(Nr.memberDescriptorName)))}),We.memberInfos&&Km(We.memberInfos,(Nr,Vr)=>{Xd(Vr)||(si.push(Ae(Nr.memberDecoratorsName)),Nr.memberInitializersName&&si.push(Ae(Nr.memberInitializersName,n.createArrayLiteralExpression())),Nr.memberExtraInitializersName&&si.push(Ae(Nr.memberExtraInitializersName,n.createArrayLiteralExpression())),Nr.memberDescriptorName&&si.push(Ae(Nr.memberDescriptorName)))}),At=Ho(At,We.staticNonFieldDecorationStatements),At=Ho(At,We.nonStaticNonFieldDecorationStatements),At=Ho(At,We.staticFieldDecorationStatements),At=Ho(At,We.nonStaticFieldDecorationStatements),We.classDescriptorName&&We.classDecoratorsName&&We.classExtraInitializersName&&We.classThis){At??(At=[]);let Nr=n.createPropertyAssignment("value",cn),Vr=n.createObjectLiteralExpression([Nr]),ir=n.createAssignment(We.classDescriptorName,Vr),Ts=n.createPropertyAccessExpression(cn,"name"),pa=a().createESDecorateHelper(n.createNull(),ir,We.classDecoratorsName,{kind:"class",name:Ts,metadata:We.metadataReference},n.createNull(),We.classExtraInitializersName),Nc=n.createExpressionStatement(pa);w_(Nc,I4(pe)),At.push(Nc);let _a=n.createPropertyAccessExpression(We.classDescriptorName,"value"),Fa=n.createAssignment(We.classThis,_a),Pf=n.createAssignment(at,Fa);At.push(n.createExpressionStatement(Pf))}if(At.push(ye(cn,We.metadataReference)),En(We.pendingStaticInitializers)){for(let Nr of We.pendingStaticInitializers){let Vr=n.createExpressionStatement(Nr);w_(Vr,J8(Nr)),Ot=ar(Ot,Vr)}We.pendingStaticInitializers=void 0}if(We.classExtraInitializersName){let Nr=a().createRunInitializersHelper(cn,We.classExtraInitializersName),Vr=n.createExpressionStatement(Nr);w_(Vr,pe.name??I4(pe)),Ot=ar(Ot,Vr)}At&&Ot&&!We.hasStaticInitializers&&(Ho(At,Ot),Ot=void 0);let Wi=At&&n.createClassStaticBlockDeclaration(n.createBlock(At,!0));Wi&&In&&aae(Wi,32);let Kn=Ot&&n.createClassStaticBlockDeclaration(n.createBlock(Ot,!0));if(Wi||Fi||Kn){let Nr=[],Vr=Pn.findIndex(PK);Wi?(Ho(Nr,Pn,0,Vr+1),Nr.push(Wi),Ho(Nr,Pn,Vr+1)):Ho(Nr,Pn),Fi&&Nr.push(Fi),Kn&&Nr.push(Kn),Pn=Fn(n.createNodeArray(Nr),Pn)}let Ti=m(),wr;if(dn){wr=n.createClassExpression(void 0,void 0,void 0,Vn,Pn),We.classThis&&(wr=GKe(n,wr,We.classThis));let Nr=n.createVariableDeclaration(at,void 0,void 0,wr),Vr=n.createVariableDeclarationList([Nr]),ir=We.classThis?n.createAssignment(at,We.classThis):at;si.push(n.createVariableStatement(void 0,Vr),n.createReturnStatement(ir))}else wr=n.createClassExpression(void 0,pe.name,void 0,Vn,Pn),si.push(n.createReturnStatement(wr));if(In){Na(wr,32);for(let Nr of wr.members)(qb(Nr)||g1(Nr))&&G0(Nr)&&Na(Nr,32)}return Wo(wr,pe),n.createImmediatelyInvokedArrowFunction(n.mergeLexicalEnvironment(si,Ti))}function Oe(pe){return aN(!1,pe)||vj(!1,pe)}function Re(pe){if(Oe(pe)){let at=[],We=Gm(pe,bc)??pe,si=We.name?n.createStringLiteralFromNode(We.name):n.createStringLiteral("default"),At=kc(pe,32),Ot=kc(pe,2048);if(pe.name||(pe=NW(t,pe,si)),At&&Ot){let Fi=he(pe);if(pe.name){let Vn=n.createVariableDeclaration(n.getLocalName(pe),void 0,void 0,Fi);Wo(Vn,pe);let In=n.createVariableDeclarationList([Vn],1),dn=n.createVariableStatement(void 0,In);at.push(dn);let Si=n.createExportDefault(n.getDeclarationName(pe));Wo(Si,pe),Xg(Si,Nv(pe)),w_(Si,I4(pe)),at.push(Si)}else{let Vn=n.createExportDefault(Fi);Wo(Vn,pe),Xg(Vn,Nv(pe)),w_(Vn,I4(pe)),at.push(Vn)}}else{Se.assertIsDefined(pe.name,"A class declaration that is not a default export must have a name.");let Fi=he(pe),Vn=At?cn=>H5(cn)?void 0:xe(cn):xe,In=ts(pe.modifiers,Vn,jd),dn=n.getLocalName(pe,!1,!0),Si=n.createVariableDeclaration(dn,void 0,void 0,Fi);Wo(Si,pe);let Ri=n.createVariableDeclarationList([Si],1),Cn=n.createVariableStatement(In,Ri);if(Wo(Cn,pe),Xg(Cn,Nv(pe)),at.push(Cn),At){let cn=n.createExternalModuleExport(dn);Wo(cn,pe),at.push(cn)}}return Hu(at)}else{let at=ts(pe.modifiers,xe,jd),We=ts(pe.heritageClauses,le,KC);U(void 0);let si=ts(pe.members,be,rl);return $(),n.updateClassDeclaration(pe,at,pe.name,void 0,We,si)}}function $e(pe){if(Oe(pe)){let at=he(pe);return Wo(at,pe),at}else{let at=ts(pe.modifiers,xe,jd),We=ts(pe.heritageClauses,le,KC);U(void 0);let si=ts(pe.members,be,rl);return $(),n.updateClassExpression(pe,at,pe.name,void 0,We,si)}}function Ke(pe,at){if(En(at.pendingInstanceInitializers)){let We=[];return We.push(n.createExpressionStatement(n.inlineExpressions(at.pendingInstanceInitializers))),at.pendingInstanceInitializers=void 0,We}}function qe(pe,at,We,si,At,Ot){let Fi=si[At],Vn=at[Fi];if(Ho(pe,ts(at,le,ll,We,Fi-We)),Q8(Vn)){let In=[];qe(In,Vn.tryBlock.statements,0,si,At+1,Ot);let dn=n.createNodeArray(In);Fn(dn,Vn.tryBlock.statements),pe.push(n.updateTryStatement(Vn,n.updateBlock(Vn.tryBlock,In),on(Vn.catchClause,le,eC),on(Vn.finallyBlock,le,qu)))}else Ho(pe,ts(at,le,ll,Fi,1)),Ho(pe,Ot);Ho(pe,ts(at,le,ll,Fi+1))}function rt(pe){K(pe);let at=ts(pe.modifiers,xe,jd),We=ts(pe.parameters,le,Fl),si;if(pe.body&&k){let At=Ke(k.class,k);if(At){let Ot=[],Fi=n.copyPrologue(pe.body.statements,Ot,!1,le),Vn=wW(pe.body.statements,Fi);Vn.length>0?qe(Ot,pe.body.statements,Fi,Vn,0,At):(Ho(Ot,At),Ho(Ot,ts(pe.body.statements,le,ll))),si=n.createBlock(Ot,!0),Wo(si,pe.body),Fn(si,pe.body)}}return si??(si=on(pe.body,le,qu)),re(),n.updateConstructorDeclaration(pe,at,We,si)}function _t(pe,at){return pe!==at&&(Xg(pe,at),w_(pe,I4(at))),pe}function ft(pe,at,We){let si,At,Ot,Fi,Vn,In;if(!at){let Ri=ts(pe.modifiers,xe,jd);return X(),At=mn(pe.name),ne(),{modifiers:Ri,referencedName:si,name:At,initializersName:Ot,descriptorName:In,thisArg:Vn}}let dn=dt(Yee(pe,at.class,!1)),Si=ts(pe.modifiers,xe,jd);if(dn){let Ri=we(pe,"decorators"),Cn=n.createArrayLiteralExpression(dn),cn=n.createAssignment(Ri,Cn),Pn={memberDecoratorsName:Ri};at.memberInfos??(at.memberInfos=new Map),at.memberInfos.set(pe,Pn),A??(A=[]),A.push(cn);let Wi=p4(pe)||g1(pe)?Xd(pe)?at.staticNonFieldDecorationStatements??(at.staticNonFieldDecorationStatements=[]):at.nonStaticNonFieldDecorationStatements??(at.nonStaticNonFieldDecorationStatements=[]):vu(pe)&&!g1(pe)?Xd(pe)?at.staticFieldDecorationStatements??(at.staticFieldDecorationStatements=[]):at.nonStaticFieldDecorationStatements??(at.nonStaticFieldDecorationStatements=[]):Se.fail(),Kn=n_(pe)?"getter":zc(pe)?"setter":Sg(pe)?"method":g1(pe)?"accessor":vu(pe)?"field":Se.fail(),Ti;if(Ai(pe.name)||wl(pe.name))Ti={computed:!1,name:pe.name};else if(Xp(pe.name))Ti={computed:!0,name:n.createStringLiteralFromNode(pe.name)};else{let Nr=pe.name.expression;Xp(Nr)&&!Ai(Nr)?Ti={computed:!0,name:n.createStringLiteralFromNode(Nr)}:(X(),{referencedName:si,name:At}=ai(pe.name),Ti={computed:!0,name:si},ne())}let wr={kind:Kn,name:Ti,static:Xd(pe),private:wl(pe.name),access:{get:vu(pe)||n_(pe)||Sg(pe),set:vu(pe)||zc(pe)},metadata:at.metadataReference};if(p4(pe)){let Nr=Xd(pe)?at.staticMethodExtraInitializersName:at.instanceMethodExtraInitializersName;Se.assertIsDefined(Nr);let Vr;qb(pe)&&We&&(Vr=We(pe,ts(Si,pa=>ac(pa,U5),jd)),Pn.memberDescriptorName=In=we(pe,"descriptor"),Vr=n.createAssignment(In,Vr));let ir=a().createESDecorateHelper(n.createThis(),Vr??n.createNull(),Ri,wr,n.createNull(),Nr),Ts=n.createExpressionStatement(ir);w_(Ts,I4(pe)),Wi.push(Ts)}else if(vu(pe)){Ot=Pn.memberInitializersName??(Pn.memberInitializersName=we(pe,"initializers")),Fi=Pn.memberExtraInitializersName??(Pn.memberExtraInitializersName=we(pe,"extraInitializers")),Xd(pe)&&(Vn=at.classThis);let Nr;qb(pe)&&dN(pe)&&We&&(Nr=We(pe,void 0),Pn.memberDescriptorName=In=we(pe,"descriptor"),Nr=n.createAssignment(In,Nr));let Vr=a().createESDecorateHelper(g1(pe)?n.createThis():n.createNull(),Nr??n.createNull(),Ri,wr,Ot,Fi),ir=n.createExpressionStatement(Vr);w_(ir,I4(pe)),Wi.push(ir)}}return At===void 0&&(X(),At=mn(pe.name),ne()),!En(Si)&&(Sg(pe)||vu(pe))&&De(At,1024),{modifiers:Si,referencedName:si,name:At,initializersName:Ot,extraInitializersName:Fi,descriptorName:In,thisArg:Vn}}function mt(pe){K(pe);let{modifiers:at,name:We,descriptorName:si}=ft(pe,k,Gt);if(si)return re(),_t(Bt(at,We,si),pe);{let At=ts(pe.parameters,le,Fl),Ot=on(pe.body,le,qu);return re(),_t(n.updateMethodDeclaration(pe,at,pe.asteriskToken,We,void 0,void 0,At,void 0,Ot),pe)}}function ut(pe){K(pe);let{modifiers:at,name:We,descriptorName:si}=ft(pe,k,Mt);if(si)return re(),_t(ui(at,We,si),pe);{let At=ts(pe.parameters,le,Fl),Ot=on(pe.body,le,qu);return re(),_t(n.updateGetAccessorDeclaration(pe,at,We,At,void 0,Ot),pe)}}function ht(pe){K(pe);let{modifiers:at,name:We,descriptorName:si}=ft(pe,k,hi);if(si)return re(),_t(Ue(at,We,si),pe);{let At=ts(pe.parameters,le,Fl),Ot=on(pe.body,le,qu);return re(),_t(n.updateSetAccessorDeclaration(pe,at,We,At,Ot),pe)}}function Kt(pe){K(pe);let at;if(PK(pe))at=Fo(pe,le,t);else if(uce(pe)){let We=T;T=void 0,at=Fo(pe,le,t),T=We}else if(pe=Fo(pe,le,t),at=pe,k&&(k.hasStaticInitializers=!0,En(k.pendingStaticInitializers))){let We=[];for(let Ot of k.pendingStaticInitializers){let Fi=n.createExpressionStatement(Ot);w_(Fi,J8(Ot)),We.push(Fi)}let si=n.createBlock(We,!0);at=[n.createClassStaticBlockDeclaration(si),at],k.pendingStaticInitializers=void 0}return re(),at}function ni(pe){Yb(pe,Ei)&&(pe=mb(t,pe,zn(pe.initializer))),K(pe),Se.assert(!d5(pe),"Not yet implemented.");let{modifiers:at,name:We,initializersName:si,extraInitializersName:At,descriptorName:Ot,thisArg:Fi}=ft(pe,k,dN(pe)?Ie:void 0);u();let Vn=on(pe.initializer,le,An);si&&(Vn=a().createRunInitializersHelper(Fi??n.createThis(),si,Vn??n.createVoidZero())),Xd(pe)&&k&&Vn&&(k.hasStaticInitializers=!0);let In=m();if(En(In)&&(Vn=n.createImmediatelyInvokedArrowFunction([...In,n.createReturnStatement(Vn)])),k&&(Xd(pe)?(Vn=Tt(k,!0,Vn),At&&(k.pendingStaticInitializers??(k.pendingStaticInitializers=[]),k.pendingStaticInitializers.push(a().createRunInitializersHelper(k.classThis??n.createThis(),At)))):(Vn=Tt(k,!1,Vn),At&&(k.pendingInstanceInitializers??(k.pendingInstanceInitializers=[]),k.pendingInstanceInitializers.push(a().createRunInitializersHelper(n.createThis(),At))))),re(),dN(pe)&&Ot){let dn=Nv(pe),Si=J8(pe),Ri=pe.name,Cn=Ri,cn=Ri;if(f_(Ri)&&!cI(Ri.expression)){let wr=dhe(Ri);if(wr)Cn=n.updateComputedPropertyName(Ri,on(Ri.expression,le,An)),cn=n.updateComputedPropertyName(Ri,wr.left);else{let Nr=n.createTempVariable(g);w_(Nr,Ri.expression);let Vr=on(Ri.expression,le,An),ir=n.createAssignment(Nr,Vr);w_(ir,Ri.expression),Cn=n.updateComputedPropertyName(Ri,ir),cn=n.updateComputedPropertyName(Ri,Nr)}}let Pn=ts(at,wr=>wr.kind!==129?wr:void 0,jd),Wi=Pae(n,pe,Pn,Vn);Wo(Wi,pe),De(Wi,3072),w_(Wi,Si),w_(Wi.name,pe.name);let Kn=ui(Pn,Cn,Ot);Wo(Kn,pe),Xg(Kn,dn),w_(Kn,Si);let Ti=Ue(Pn,cn,Ot);return Wo(Ti,pe),De(Ti,3072),w_(Ti,Si),[Wi,Kn,Ti]}return _t(n.updatePropertyDeclaration(pe,at,We,void 0,void 0,Vn),pe)}function Ut(pe){return T??pe}function pi(pe){if(Xx(pe.expression)&&T){let at=on(pe.expression,le,An),We=ts(pe.arguments,le,An),si=n.createFunctionCallCall(at,T,We);return Wo(si,pe),Fn(si,pe),si}return Fo(pe,le,t)}function wi(pe){if(Xx(pe.tag)&&T){let at=on(pe.tag,le,An),We=n.createFunctionBindCall(at,T,[]);Wo(We,pe),Fn(We,pe);let si=on(pe.template,le,y8);return n.updateTaggedTemplateExpression(pe,We,void 0,si)}return Fo(pe,le,t)}function Bi(pe){if(Xx(pe)&&Ai(pe.name)&&T&&I){let at=n.createStringLiteralFromNode(pe.name),We=n.createReflectGetCall(I,at,T);return Wo(We,pe.expression),Fn(We,pe.expression),We}return Fo(pe,le,t)}function Bn(pe){if(Xx(pe)&&T&&I){let at=on(pe.argumentExpression,le,An),We=n.createReflectGetCall(I,at,T);return Wo(We,pe.expression),Fn(We,pe.expression),We}return Fo(pe,le,t)}function mr(pe){Yb(pe,Ei)&&(pe=mb(t,pe,zn(pe.initializer)));let at=n.updateParameterDeclaration(pe,void 0,pe.dotDotDotToken,on(pe.name,le,_4),void 0,void 0,on(pe.initializer,le,An));return at!==pe&&(Xg(at,pe),Fn(at,JE(pe)),w_(at,JE(pe)),De(at.name,64)),at}function Ei(pe){return Qh(pe)&&!pe.name&&Oe(pe)}function zn(pe){let at=ug(pe);return Qh(at)&&!at.name&&!aN(!1,at)}function zr(pe){return n.updateForStatement(pe,on(pe.initializer,Le,BT),on(pe.condition,le,An),on(pe.incrementor,Le,An),E1(pe.statement,le,t))}function xr(pe){return Fo(pe,Le,t)}function lo(pe,at){if(z3(pe)){let We=Xi(pe.left),si=on(pe.right,le,An);return n.updateBinaryExpression(pe,We,pe.operatorToken,si)}if(Kg(pe)){if(Yb(pe,Ei))return pe=mb(t,pe,zn(pe.right)),Fo(pe,le,t);if(Xx(pe.left)&&T&&I){let We=T_(pe.left)?on(pe.left.argumentExpression,le,An):Ai(pe.left.name)?n.createStringLiteralFromNode(pe.left.name):void 0;if(We){let si=on(pe.right,le,An);if(kW(pe.operatorToken.kind)){let Ot=We;cI(We)||(Ot=n.createTempVariable(g),We=n.createAssignment(Ot,We));let Fi=n.createReflectGetCall(I,Ot,T);Wo(Fi,pe.left),Fn(Fi,pe.left),si=n.createBinaryExpression(Fi,VU(pe.operatorToken.kind),si),Fn(si,pe)}let At=at?void 0:n.createTempVariable(g);return At&&(si=n.createAssignment(At,si),Fn(At,pe)),si=n.createReflectSetCall(I,We,si,T),Wo(si,pe),Fn(si,pe),At&&(si=n.createComma(si,At),Fn(si,pe)),si}}}if(pe.operatorToken.kind===28){let We=on(pe.left,Le,An),si=on(pe.right,at?Le:le,An);return n.updateBinaryExpression(pe,We,pe.operatorToken,si)}return Fo(pe,le,t)}function _r(pe,at){if(pe.operator===46||pe.operator===47){let We=J_(pe.operand);if(Xx(We)&&T&&I){let si=T_(We)?on(We.argumentExpression,le,An):Ai(We.name)?n.createStringLiteralFromNode(We.name):void 0;if(si){let At=si;cI(si)||(At=n.createTempVariable(g),si=n.createAssignment(At,si));let Ot=n.createReflectGetCall(I,At,T);Wo(Ot,pe),Fn(Ot,pe);let Fi=at?void 0:n.createTempVariable(g);return Ot=See(n,pe,Ot,g,Fi),Ot=n.createReflectSetCall(I,si,Ot,T),Wo(Ot,pe),Fn(Ot,pe),Fi&&(Ot=n.createComma(Ot,Fi),Fn(Ot,pe)),Ot}}}return Fo(pe,le,t)}function Hs(pe,at){let We=at?sce(pe.elements,Le):sce(pe.elements,le,Le);return n.updateCommaListExpression(pe,We)}function ai(pe){if(Xp(pe)||wl(pe)){let Ot=n.createStringLiteralFromNode(pe),Fi=on(pe,le,C_);return{referencedName:Ot,name:Fi}}if(Xp(pe.expression)&&!Ai(pe.expression)){let Ot=n.createStringLiteralFromNode(pe.expression),Fi=on(pe,le,C_);return{referencedName:Ot,name:Fi}}let at=n.getGeneratedNameForNode(pe);g(at);let We=a().createPropKeyHelper(on(pe.expression,le,An)),si=n.createAssignment(at,We),At=n.updateComputedPropertyName(pe,Ve(si));return{referencedName:at,name:At}}function mn(pe){return f_(pe)?Nn(pe):on(pe,le,C_)}function Nn(pe){let at=on(pe.expression,le,An);return cI(at)||(at=Ve(at)),n.updateComputedPropertyName(pe,at)}function Gr(pe){return Yb(pe,Ei)&&(pe=mb(t,pe,zn(pe.initializer))),Fo(pe,le,t)}function ci(pe){return Yb(pe,Ei)&&(pe=mb(t,pe,zn(pe.initializer))),Fo(pe,le,t)}function gn(pe){return Yb(pe,Ei)&&(pe=mb(t,pe,zn(pe.initializer))),Fo(pe,le,t)}function Sr(pe){if(Ld(pe)||Yg(pe))return Xi(pe);if(Xx(pe)&&T&&I){let at=T_(pe)?on(pe.argumentExpression,le,An):Ai(pe.name)?n.createStringLiteralFromNode(pe.name):void 0;if(at){let We=n.createTempVariable(void 0),si=n.createAssignmentTargetWrapper(We,n.createReflectSetCall(I,at,We,T));return Wo(si,pe),Fn(si,pe),si}}return Fo(pe,le,t)}function vo(pe){if(Kg(pe,!0)){Yb(pe,Ei)&&(pe=mb(t,pe,zn(pe.right)));let at=Sr(pe.left),We=on(pe.right,le,An);return n.updateBinaryExpression(pe,at,pe.operatorToken,We)}else return Sr(pe)}function $o(pe){if(MS(pe.expression)){let at=Sr(pe.expression);return n.updateSpreadElement(pe,at)}return Fo(pe,le,t)}function Mn(pe){return Se.assertNode(pe,a5),yx(pe)?$o(pe):Eh(pe)?Fo(pe,le,t):vo(pe)}function Qs(pe){let at=on(pe.name,le,C_);if(Kg(pe.initializer,!0)){let We=vo(pe.initializer);return n.updatePropertyAssignment(pe,at,We)}if(MS(pe.initializer)){let We=Sr(pe.initializer);return n.updatePropertyAssignment(pe,at,We)}return Fo(pe,le,t)}function Pi(pe){return Yb(pe,Ei)&&(pe=mb(t,pe,zn(pe.objectAssignmentInitializer))),Fo(pe,le,t)}function qi(pe){if(MS(pe.expression)){let at=Sr(pe.expression);return n.updateSpreadAssignment(pe,at)}return Fo(pe,le,t)}function lt(pe){return Se.assertNode(pe,_Z),H2(pe)?qi(pe):Q0(pe)?Pi(pe):Ih(pe)?Qs(pe):Fo(pe,le,t)}function Xi(pe){if(Yg(pe)){let at=ts(pe.elements,Mn,An);return n.updateArrayLiteralExpression(pe,at)}else{let at=ts(pe.properties,lt,FC);return n.updateObjectLiteralExpression(pe,at)}}function nt(pe){return Yb(pe,Ei)&&(pe=mb(t,pe,zn(pe.expression))),Fo(pe,le,t)}function Lt(pe,at){let We=at?Le:le,si=on(pe.expression,We,An);return n.updateParenthesizedExpression(pe,si)}function Pe(pe,at){let We=at?Le:le,si=on(pe.expression,We,An);return n.updatePartiallyEmittedExpression(pe,si)}function St(pe,at){return En(pe)&&(at?Tu(at)?(pe.push(at.expression),at=n.updateParenthesizedExpression(at,n.inlineExpressions(pe))):(pe.push(at),at=n.inlineExpressions(pe)):at=n.inlineExpressions(pe)),at}function Ve(pe){let at=St(A,pe);return Se.assertIsDefined(at),at!==pe&&(A=void 0),at}function Tt(pe,at,We){let si=St(at?pe.pendingStaticInitializers:pe.pendingInstanceInitializers,We);return si!==We&&(at?pe.pendingStaticInitializers=void 0:pe.pendingInstanceInitializers=void 0),si}function dt(pe){if(!pe)return;let at=[];return Ho(at,$i(pe.decorators,Wt)),at}function Wt(pe){let at=on(pe.expression,le,An);De(at,3072);let We=ug(at);if(cf(We)){let{target:si,thisArg:At}=n.createCallBinding(at,g,v,!0);return n.restoreOuterExpressions(at,n.createFunctionBindCall(si,At,[]))}return at}function pt(pe,at,We,si,At,Ot,Fi){let Vn=n.createFunctionExpression(We,si,void 0,void 0,Ot,void 0,Fi??n.createBlock([]));Wo(Vn,pe),w_(Vn,I4(pe)),De(Vn,3072);let In=At==="get"||At==="set"?At:void 0,dn=n.createStringLiteralFromNode(at,void 0),Si=a().createSetFunctionNameHelper(Vn,dn,In),Ri=n.createPropertyAssignment(n.createIdentifier(At),Si);return Wo(Ri,pe),w_(Ri,I4(pe)),De(Ri,3072),Ri}function Gt(pe,at){return n.createObjectLiteralExpression([pt(pe,pe.name,at,pe.asteriskToken,"value",ts(pe.parameters,le,Fl),on(pe.body,le,qu))])}function Mt(pe,at){return n.createObjectLiteralExpression([pt(pe,pe.name,at,void 0,"get",[],on(pe.body,le,qu))])}function hi(pe,at){return n.createObjectLiteralExpression([pt(pe,pe.name,at,void 0,"set",ts(pe.parameters,le,Fl),on(pe.body,le,qu))])}function Ie(pe,at){return n.createObjectLiteralExpression([pt(pe,pe.name,at,void 0,"get",[],n.createBlock([n.createReturnStatement(n.createPropertyAccessExpression(n.createThis(),n.getGeneratedPrivateNameForNode(pe.name)))])),pt(pe,pe.name,at,void 0,"set",[n.createParameterDeclaration(void 0,void 0,"value")],n.createBlock([n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(n.createThis(),n.getGeneratedPrivateNameForNode(pe.name)),n.createIdentifier("value")))]))])}function Bt(pe,at,We){return pe=ts(pe,si=>oW(si)?si:void 0,jd),n.createGetAccessorDeclaration(pe,at,[],void 0,n.createBlock([n.createReturnStatement(n.createPropertyAccessExpression(We,n.createIdentifier("value")))]))}function ui(pe,at,We){return pe=ts(pe,si=>oW(si)?si:void 0,jd),n.createGetAccessorDeclaration(pe,at,[],void 0,n.createBlock([n.createReturnStatement(n.createFunctionCallCall(n.createPropertyAccessExpression(We,n.createIdentifier("get")),n.createThis(),[]))]))}function Ue(pe,at,We){return pe=ts(pe,si=>oW(si)?si:void 0,jd),n.createSetAccessorDeclaration(pe,at,[n.createParameterDeclaration(void 0,void 0,"value")],n.createBlock([n.createReturnStatement(n.createFunctionCallCall(n.createPropertyAccessExpression(We,n.createIdentifier("set")),n.createThis(),[n.createIdentifier("value")]))]))}function Ce(pe,at){let We=n.createVariableDeclaration(pe,void 0,void 0,n.createConditionalExpression(n.createLogicalAnd(n.createTypeCheck(n.createIdentifier("Symbol"),"function"),n.createPropertyAccessExpression(n.createIdentifier("Symbol"),"metadata")),n.createToken(58),n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"create"),void 0,[at?vt(at):n.createNull()]),n.createToken(59),n.createVoidZero()));return n.createVariableStatement(void 0,n.createVariableDeclarationList([We],2))}function ye(pe,at){let We=n.createObjectDefinePropertyCall(pe,n.createPropertyAccessExpression(n.createIdentifier("Symbol"),"metadata"),n.createPropertyDescriptor({configurable:!0,writable:!0,enumerable:!0,value:at},!0));return De(n.createIfStatement(at,n.createExpressionStatement(We)),1)}function vt(pe){return n.createBinaryExpression(n.createElementAccessExpression(pe,n.createPropertyAccessExpression(n.createIdentifier("Symbol"),"metadata")),61,n.createNull())}}function sXe(t){let{factory:n,getEmitHelperFactory:a,resumeLexicalEnvironment:u,endLexicalEnvironment:m,hoistVariableDeclaration:g}=t,v=t.getEmitResolver(),x=t.getCompilerOptions(),k=h_(x),T,I=0,A,M,R,H,U=[],$=0,K=t.onEmitNode,re=t.onSubstituteNode;return t.onEmitNode=xr,t.onSubstituteNode=lo,kN(t,X);function X(ci){if(ci.isDeclarationFile)return ci;ne(1,!1),ne(2,!hOe(ci,x));let gn=Fo(ci,be,t);return bk(gn,t.readEmitHelpers()),gn}function ne(ci,gn){$=gn?$|ci:$&~ci}function se(ci){return($&ci)!==0}function _e(){return!se(1)}function ae(){return se(2)}function le(ci,gn,Sr){let vo=ci&~$;if(vo){ne(vo,!0);let $o=gn(Sr);return ne(vo,!1),$o}return gn(Sr)}function Ee(ci){return Fo(ci,be,t)}function xe(ci){switch(ci.kind){case 218:case 262:case 174:case 177:case 178:case 176:return ci;case 169:case 208:case 260:break;case 80:if(H&&v.isArgumentsLocalBinding(ci))return H;break}return Fo(ci,xe,t)}function be(ci){if(!(ci.transformFlags&256))return H?xe(ci):ci;switch(ci.kind){case 134:return;case 223:return Oe(ci);case 174:return le(3,$e,ci);case 262:return le(3,rt,ci);case 218:return le(3,_t,ci);case 219:return le(1,ft,ci);case 211:return M&&ba(ci)&&ci.expression.kind===108&&M.add(ci.name.escapedText),Fo(ci,be,t);case 212:return M&&ci.expression.kind===108&&(R=!0),Fo(ci,be,t);case 177:return le(3,Ke,ci);case 178:return le(3,qe,ci);case 176:return le(3,Re,ci);case 263:case 231:return le(3,Ee,ci);default:return Fo(ci,be,t)}}function Le(ci){if(A8(ci))switch(ci.kind){case 243:return we(ci);case 248:return he(ci);case 249:return Ae(ci);case 250:return Ge(ci);case 299:return fe(ci);case 241:case 255:case 269:case 296:case 297:case 258:case 246:case 247:case 245:case 254:case 256:return Fo(ci,Le,t);default:return Se.assertNever(ci,"Unhandled node.")}return be(ci)}function fe(ci){let gn=new Set;mt(ci.variableDeclaration,gn);let Sr;if(gn.forEach((vo,$o)=>{A.has($o)&&(Sr||(Sr=new Set(A)),Sr.delete($o))}),Sr){let vo=A;A=Sr;let $o=Fo(ci,Le,t);return A=vo,$o}else return Fo(ci,Le,t)}function we(ci){if(ut(ci.declarationList)){let gn=ht(ci.declarationList,!1);return gn?n.createExpressionStatement(gn):void 0}return Fo(ci,be,t)}function Ae(ci){return n.updateForInStatement(ci,ut(ci.initializer)?ht(ci.initializer,!0):Se.checkDefined(on(ci.initializer,be,BT)),Se.checkDefined(on(ci.expression,be,An)),E1(ci.statement,Le,t))}function Ge(ci){return n.updateForOfStatement(ci,on(ci.awaitModifier,be,Zme),ut(ci.initializer)?ht(ci.initializer,!0):Se.checkDefined(on(ci.initializer,be,BT)),Se.checkDefined(on(ci.expression,be,An)),E1(ci.statement,Le,t))}function he(ci){let gn=ci.initializer;return n.updateForStatement(ci,ut(gn)?ht(gn,!1):on(ci.initializer,be,BT),on(ci.condition,be,An),on(ci.incrementor,be,An),E1(ci.statement,Le,t))}function Oe(ci){return _e()?Fo(ci,be,t):Wo(Fn(n.createYieldExpression(void 0,on(ci.expression,be,An)),ci),ci)}function Re(ci){let gn=H;H=void 0;let Sr=n.updateConstructorDeclaration(ci,ts(ci.modifiers,be,jd),Af(ci.parameters,be,t),wi(ci));return H=gn,Sr}function $e(ci){let gn,Sr=Gg(ci),vo=H;H=void 0;let $o=n.updateMethodDeclaration(ci,ts(ci.modifiers,be,Fm),ci.asteriskToken,ci.name,void 0,void 0,gn=Sr&2?Bn(ci):Af(ci.parameters,be,t),void 0,Sr&2?mr(ci,gn):wi(ci));return H=vo,$o}function Ke(ci){let gn=H;H=void 0;let Sr=n.updateGetAccessorDeclaration(ci,ts(ci.modifiers,be,Fm),ci.name,Af(ci.parameters,be,t),void 0,wi(ci));return H=gn,Sr}function qe(ci){let gn=H;H=void 0;let Sr=n.updateSetAccessorDeclaration(ci,ts(ci.modifiers,be,Fm),ci.name,Af(ci.parameters,be,t),wi(ci));return H=gn,Sr}function rt(ci){let gn,Sr=H;H=void 0;let vo=Gg(ci),$o=n.updateFunctionDeclaration(ci,ts(ci.modifiers,be,Fm),ci.asteriskToken,ci.name,void 0,gn=vo&2?Bn(ci):Af(ci.parameters,be,t),void 0,vo&2?mr(ci,gn):Po(ci.body,be,t));return H=Sr,$o}function _t(ci){let gn,Sr=H;H=void 0;let vo=Gg(ci),$o=n.updateFunctionExpression(ci,ts(ci.modifiers,be,jd),ci.asteriskToken,ci.name,void 0,gn=vo&2?Bn(ci):Af(ci.parameters,be,t),void 0,vo&2?mr(ci,gn):Po(ci.body,be,t));return H=Sr,$o}function ft(ci){let gn,Sr=Gg(ci);return n.updateArrowFunction(ci,ts(ci.modifiers,be,jd),void 0,gn=Sr&2?Bn(ci):Af(ci.parameters,be,t),void 0,ci.equalsGreaterThanToken,Sr&2?mr(ci,gn):Po(ci.body,be,t))}function mt({name:ci},gn){if(Ai(ci))gn.add(ci.escapedText);else for(let Sr of ci.elements)Eh(Sr)||mt(Sr,gn)}function ut(ci){return!!ci&&Xv(ci)&&!(ci.flags&7)&&ci.declarations.some(pi)}function ht(ci,gn){Kt(ci);let Sr=NG(ci);return Sr.length===0?gn?on(n.converters.convertToAssignmentElementTarget(ci.declarations[0].name),be,An):void 0:n.inlineExpressions($i(Sr,Ut))}function Kt(ci){ee(ci.declarations,ni)}function ni({name:ci}){if(Ai(ci))g(ci);else for(let gn of ci.elements)Eh(gn)||ni(gn)}function Ut(ci){let gn=w_(n.createAssignment(n.converters.convertToAssignmentElementTarget(ci.name),ci.initializer),ci);return Se.checkDefined(on(gn,be,An))}function pi({name:ci}){if(Ai(ci))return A.has(ci.escapedText);for(let gn of ci.elements)if(!Eh(gn)&&pi(gn))return!0;return!1}function wi(ci){Se.assertIsDefined(ci.body);let gn=M,Sr=R;M=new Set,R=!1;let vo=Po(ci.body,be,t),$o=Gm(ci,Rp);if(k>=2&&(v.hasNodeCheckFlag(ci,256)||v.hasNodeCheckFlag(ci,128))&&(Gg($o)&3)!==3){if(zr(),M.size){let Qs=l2e(n,v,ci,M);U[pp(Qs)]=!0;let Pi=vo.statements.slice();rv(Pi,[Qs]),vo=n.updateBlock(vo,Pi)}R&&(v.hasNodeCheckFlag(ci,256)?cL(vo,_ee):v.hasNodeCheckFlag(ci,128)&&cL(vo,fae))}return M=gn,R=Sr,vo}function Bi(){Se.assert(H);let ci=n.createVariableDeclaration(H,void 0,void 0,n.createIdentifier("arguments")),gn=n.createVariableStatement(void 0,[ci]);return T1(gn),gN(gn,2097152),gn}function Bn(ci){if(oge(ci.parameters))return Af(ci.parameters,be,t);let gn=[];for(let vo of ci.parameters){if(vo.initializer||vo.dotDotDotToken){if(ci.kind===219){let Mn=n.createParameterDeclaration(void 0,n.createToken(26),n.createUniqueName("args",8));gn.push(Mn)}break}let $o=n.createParameterDeclaration(void 0,void 0,n.getGeneratedNameForNode(vo.name,8));gn.push($o)}let Sr=n.createNodeArray(gn);return Fn(Sr,ci.parameters),Sr}function mr(ci,gn){let Sr=oge(ci.parameters)?void 0:Af(ci.parameters,be,t);u();let $o=Gm(ci,iu).type,Mn=k<2?zn($o):void 0,Qs=ci.kind===219,Pi=H,lt=v.hasNodeCheckFlag(ci,512)&&!H;lt&&(H=n.createUniqueName("arguments"));let Xi;if(Sr)if(Qs){let dt=[];Se.assert(gn.length<=ci.parameters.length);for(let Wt=0;Wt=2&&(v.hasNodeCheckFlag(ci,256)||v.hasNodeCheckFlag(ci,128));if(Wt&&(zr(),M.size)){let Gt=l2e(n,v,ci,M);U[pp(Gt)]=!0,rv(dt,[Gt])}lt&&rv(dt,[Bi()]);let pt=n.createBlock(dt,!0);Fn(pt,ci.body),Wt&&R&&(v.hasNodeCheckFlag(ci,256)?cL(pt,_ee):v.hasNodeCheckFlag(ci,128)&&cL(pt,fae)),Tt=pt}return A=nt,Qs||(M=Lt,R=Pe,H=Pi),Tt}function Ei(ci,gn){return qu(ci)?n.updateBlock(ci,ts(ci.statements,Le,ll,gn)):n.converters.convertToFunctionBlock(Se.checkDefined(on(ci,Le,Rke)))}function zn(ci){let gn=ci&&sb(ci);if(gn&&tb(gn)){let Sr=v.getTypeReferenceSerializationKind(gn);if(Sr===1||Sr===0)return gn}}function zr(){T&1||(T|=1,t.enableSubstitution(213),t.enableSubstitution(211),t.enableSubstitution(212),t.enableEmitNotification(263),t.enableEmitNotification(174),t.enableEmitNotification(177),t.enableEmitNotification(178),t.enableEmitNotification(176),t.enableEmitNotification(243))}function xr(ci,gn,Sr){if(T&1&&Nn(gn)){let vo=(v.hasNodeCheckFlag(gn,128)?128:0)|(v.hasNodeCheckFlag(gn,256)?256:0);if(vo!==I){let $o=I;I=vo,K(ci,gn,Sr),I=$o;return}}else if(T&&U[pp(gn)]){let vo=I;I=0,K(ci,gn,Sr),I=vo;return}K(ci,gn,Sr)}function lo(ci,gn){return gn=re(ci,gn),ci===1&&I?_r(gn):gn}function _r(ci){switch(ci.kind){case 211:return Hs(ci);case 212:return ai(ci);case 213:return mn(ci)}return ci}function Hs(ci){return ci.expression.kind===108?Fn(n.createPropertyAccessExpression(n.createUniqueName("_super",48),ci.name),ci):ci}function ai(ci){return ci.expression.kind===108?Gr(ci.argumentExpression,ci):ci}function mn(ci){let gn=ci.expression;if(Xx(gn)){let Sr=ba(gn)?Hs(gn):ai(gn);return n.createCallExpression(n.createPropertyAccessExpression(Sr,"call"),void 0,[n.createThis(),...ci.arguments])}return ci}function Nn(ci){let gn=ci.kind;return gn===263||gn===176||gn===174||gn===177||gn===178}function Gr(ci,gn){return I&256?Fn(n.createPropertyAccessExpression(n.createCallExpression(n.createUniqueName("_superIndex",48),void 0,[ci]),"value"),gn):Fn(n.createCallExpression(n.createUniqueName("_superIndex",48),void 0,[ci]),gn)}}function l2e(t,n,a,u){let m=n.hasNodeCheckFlag(a,256),g=[];return u.forEach((v,x)=>{let k=Ba(x),T=[];T.push(t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[],void 0,void 0,De(t.createPropertyAccessExpression(De(t.createSuper(),8),k),8)))),m&&T.push(t.createPropertyAssignment("set",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,t.createAssignment(De(t.createPropertyAccessExpression(De(t.createSuper(),8),k),8),t.createIdentifier("v"))))),g.push(t.createPropertyAssignment(k,t.createObjectLiteralExpression(T)))}),t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_super",48),void 0,void 0,t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"create"),void 0,[t.createNull(),t.createObjectLiteralExpression(g,!0)]))],2))}function aXe(t){let{factory:n,getEmitHelperFactory:a,resumeLexicalEnvironment:u,endLexicalEnvironment:m,hoistVariableDeclaration:g}=t,v=t.getEmitResolver(),x=t.getCompilerOptions(),k=h_(x),T=t.onEmitNode;t.onEmitNode=Pi;let I=t.onSubstituteNode;t.onSubstituteNode=qi;let A=!1,M,R,H,U=0,$=0,K,re,X,ne,se=[];return kN(t,xe);function _e(Ve,Tt){return $!==($&~Ve|Tt)}function ae(Ve,Tt){let dt=$;return $=($&~Ve|Tt)&3,dt}function le(Ve){$=Ve}function Ee(Ve){re=ar(re,n.createVariableDeclaration(Ve))}function xe(Ve){if(Ve.isDeclarationFile)return Ve;K=Ve;let Tt=ft(Ve);return bk(Tt,t.readEmitHelpers()),K=void 0,re=void 0,Tt}function be(Ve){return Ge(Ve,!1)}function Le(Ve){return Ge(Ve,!0)}function fe(Ve){if(Ve.kind!==134)return Ve}function we(Ve,Tt,dt,Wt){if(_e(dt,Wt)){let pt=ae(dt,Wt),Gt=Ve(Tt);return le(pt),Gt}return Ve(Tt)}function Ae(Ve){return Fo(Ve,be,t)}function Ge(Ve,Tt){if(!(Ve.transformFlags&128))return Ve;switch(Ve.kind){case 223:return he(Ve);case 229:return Oe(Ve);case 253:return Re(Ve);case 256:return $e(Ve);case 210:return qe(Ve);case 226:return ut(Ve,Tt);case 355:return ht(Ve,Tt);case 299:return Kt(Ve);case 243:return ni(Ve);case 260:return Ut(Ve);case 246:case 247:case 249:return we(Ae,Ve,0,2);case 250:return Bn(Ve,void 0);case 248:return we(wi,Ve,0,2);case 222:return Bi(Ve);case 176:return we(Hs,Ve,2,1);case 174:return we(Nn,Ve,2,1);case 177:return we(ai,Ve,2,1);case 178:return we(mn,Ve,2,1);case 262:return we(Gr,Ve,2,1);case 218:return we(gn,Ve,2,1);case 219:return we(ci,Ve,2,0);case 169:return lo(Ve);case 244:return rt(Ve);case 217:return _t(Ve,Tt);case 215:return mt(Ve);case 211:return X&&ba(Ve)&&Ve.expression.kind===108&&X.add(Ve.name.escapedText),Fo(Ve,be,t);case 212:return X&&Ve.expression.kind===108&&(ne=!0),Fo(Ve,be,t);case 263:case 231:return we(Ae,Ve,2,1);default:return Fo(Ve,be,t)}}function he(Ve){return R&2&&R&1?Wo(Fn(n.createYieldExpression(void 0,a().createAwaitHelper(on(Ve.expression,be,An))),Ve),Ve):Fo(Ve,be,t)}function Oe(Ve){if(R&2&&R&1){if(Ve.asteriskToken){let Tt=on(Se.checkDefined(Ve.expression),be,An);return Wo(Fn(n.createYieldExpression(void 0,a().createAwaitHelper(n.updateYieldExpression(Ve,Ve.asteriskToken,Fn(a().createAsyncDelegatorHelper(Fn(a().createAsyncValuesHelper(Tt),Tt)),Tt)))),Ve),Ve)}return Wo(Fn(n.createYieldExpression(void 0,zn(Ve.expression?on(Ve.expression,be,An):n.createVoidZero())),Ve),Ve)}return Fo(Ve,be,t)}function Re(Ve){return R&2&&R&1?n.updateReturnStatement(Ve,zn(Ve.expression?on(Ve.expression,be,An):n.createVoidZero())):Fo(Ve,be,t)}function $e(Ve){if(R&2){let Tt=TZ(Ve);return Tt.kind===250&&Tt.awaitModifier?Bn(Tt,Ve):n.restoreEnclosingLabel(on(Tt,be,ll,n.liftToBlock),Ve)}return Fo(Ve,be,t)}function Ke(Ve){let Tt,dt=[];for(let Wt of Ve)if(Wt.kind===305){Tt&&(dt.push(n.createObjectLiteralExpression(Tt)),Tt=void 0);let pt=Wt.expression;dt.push(on(pt,be,An))}else Tt=ar(Tt,Wt.kind===303?n.createPropertyAssignment(Wt.name,on(Wt.initializer,be,An)):on(Wt,be,FC));return Tt&&dt.push(n.createObjectLiteralExpression(Tt)),dt}function qe(Ve){if(Ve.transformFlags&65536){let Tt=Ke(Ve.properties);Tt.length&&Tt[0].kind!==210&&Tt.unshift(n.createObjectLiteralExpression());let dt=Tt[0];if(Tt.length>1){for(let Wt=1;Wt=2&&(v.hasNodeCheckFlag(Ve,256)||v.hasNodeCheckFlag(Ve,128));if(hi){Qs();let Bt=l2e(n,v,Ve,X);se[pp(Bt)]=!0,rv(pt,[Bt])}pt.push(Mt);let Ie=n.updateBlock(Ve.body,pt);return hi&&ne&&(v.hasNodeCheckFlag(Ve,256)?cL(Ie,_ee):v.hasNodeCheckFlag(Ve,128)&&cL(Ie,fae)),X=dt,ne=Wt,Ie}function $o(Ve){u();let Tt=0,dt=[],Wt=on(Ve.body,be,Rke)??n.createBlock([]);qu(Wt)&&(Tt=n.copyPrologue(Wt.statements,dt,!1,be)),Ho(dt,Mn(void 0,Ve));let pt=m();if(Tt>0||En(dt)||En(pt)){let Gt=n.converters.convertToFunctionBlock(Wt,!0);return rv(dt,pt),Ho(dt,Gt.statements.slice(Tt)),n.updateBlock(Gt,Fn(n.createNodeArray(dt),Gt.statements))}return Wt}function Mn(Ve,Tt){let dt=!1;for(let Wt of Tt.parameters)if(dt){if(Uu(Wt.name)){if(Wt.name.elements.length>0){let pt=CM(Wt,be,t,0,n.getGeneratedNameForNode(Wt));if(En(pt)){let Gt=n.createVariableDeclarationList(pt),Mt=n.createVariableStatement(void 0,Gt);De(Mt,2097152),Ve=ar(Ve,Mt)}}else if(Wt.initializer){let pt=n.getGeneratedNameForNode(Wt),Gt=on(Wt.initializer,be,An),Mt=n.createAssignment(pt,Gt),hi=n.createExpressionStatement(Mt);De(hi,2097152),Ve=ar(Ve,hi)}}else if(Wt.initializer){let pt=n.cloneNode(Wt.name);Fn(pt,Wt.name),De(pt,96);let Gt=on(Wt.initializer,be,An);gN(Gt,3168);let Mt=n.createAssignment(pt,Gt);Fn(Mt,Wt),De(Mt,3072);let hi=n.createBlock([n.createExpressionStatement(Mt)]);Fn(hi,Wt),De(hi,3905);let Ie=n.createTypeCheck(n.cloneNode(Wt.name),"undefined"),Bt=n.createIfStatement(Ie,hi);T1(Bt),Fn(Bt,Wt),De(Bt,2101056),Ve=ar(Ve,Bt)}}else if(Wt.transformFlags&65536){dt=!0;let pt=CM(Wt,be,t,1,n.getGeneratedNameForNode(Wt),!1,!0);if(En(pt)){let Gt=n.createVariableDeclarationList(pt),Mt=n.createVariableStatement(void 0,Gt);De(Mt,2097152),Ve=ar(Ve,Mt)}}return Ve}function Qs(){M&1||(M|=1,t.enableSubstitution(213),t.enableSubstitution(211),t.enableSubstitution(212),t.enableEmitNotification(263),t.enableEmitNotification(174),t.enableEmitNotification(177),t.enableEmitNotification(178),t.enableEmitNotification(176),t.enableEmitNotification(243))}function Pi(Ve,Tt,dt){if(M&1&&Pe(Tt)){let Wt=(v.hasNodeCheckFlag(Tt,128)?128:0)|(v.hasNodeCheckFlag(Tt,256)?256:0);if(Wt!==U){let pt=U;U=Wt,T(Ve,Tt,dt),U=pt;return}}else if(M&&se[pp(Tt)]){let Wt=U;U=0,T(Ve,Tt,dt),U=Wt;return}T(Ve,Tt,dt)}function qi(Ve,Tt){return Tt=I(Ve,Tt),Ve===1&&U?lt(Tt):Tt}function lt(Ve){switch(Ve.kind){case 211:return Xi(Ve);case 212:return nt(Ve);case 213:return Lt(Ve)}return Ve}function Xi(Ve){return Ve.expression.kind===108?Fn(n.createPropertyAccessExpression(n.createUniqueName("_super",48),Ve.name),Ve):Ve}function nt(Ve){return Ve.expression.kind===108?St(Ve.argumentExpression,Ve):Ve}function Lt(Ve){let Tt=Ve.expression;if(Xx(Tt)){let dt=ba(Tt)?Xi(Tt):nt(Tt);return n.createCallExpression(n.createPropertyAccessExpression(dt,"call"),void 0,[n.createThis(),...Ve.arguments])}return Ve}function Pe(Ve){let Tt=Ve.kind;return Tt===263||Tt===176||Tt===174||Tt===177||Tt===178}function St(Ve,Tt){return U&256?Fn(n.createPropertyAccessExpression(n.createCallExpression(n.createIdentifier("_superIndex"),void 0,[Ve]),"value"),Tt):Fn(n.createCallExpression(n.createIdentifier("_superIndex"),void 0,[Ve]),Tt)}}function cXe(t){let n=t.factory;return kN(t,a);function a(g){return g.isDeclarationFile?g:Fo(g,u,t)}function u(g){if(!(g.transformFlags&64))return g;switch(g.kind){case 299:return m(g);default:return Fo(g,u,t)}}function m(g){return g.variableDeclaration?Fo(g,u,t):n.updateCatchClause(g,n.createVariableDeclaration(n.createTempVariable(void 0)),on(g.block,u,qu))}}function lXe(t){let{factory:n,hoistVariableDeclaration:a}=t;return kN(t,u);function u(H){return H.isDeclarationFile?H:Fo(H,m,t)}function m(H){if(!(H.transformFlags&32))return H;switch(H.kind){case 213:{let U=k(H,!1);return Se.assertNotNode(U,kk),U}case 211:case 212:if(By(H)){let U=I(H,!1,!1);return Se.assertNotNode(U,kk),U}return Fo(H,m,t);case 226:return H.operatorToken.kind===61?M(H):Fo(H,m,t);case 220:return R(H);default:return Fo(H,m,t)}}function g(H){Se.assertNotNode(H,rj);let U=[H];for(;!H.questionDotToken&&!Kv(H);)H=$d(dh(H.expression),By),Se.assertNotNode(H,rj),U.unshift(H);return{expression:H.expression,chain:U}}function v(H,U,$){let K=T(H.expression,U,$);return kk(K)?n.createSyntheticReferenceExpression(n.updateParenthesizedExpression(H,K.expression),K.thisArg):n.updateParenthesizedExpression(H,K)}function x(H,U,$){if(By(H))return I(H,U,$);let K=on(H.expression,m,An);Se.assertNotNode(K,kk);let re;return U&&(Sx(K)?re=K:(re=n.createTempVariable(a),K=n.createAssignment(re,K))),K=H.kind===211?n.updatePropertyAccessExpression(H,K,on(H.name,m,Ai)):n.updateElementAccessExpression(H,K,on(H.argumentExpression,m,An)),re?n.createSyntheticReferenceExpression(K,re):K}function k(H,U){if(By(H))return I(H,U,!1);if(Tu(H.expression)&&By(J_(H.expression))){let $=v(H.expression,!0,!1),K=ts(H.arguments,m,An);return kk($)?Fn(n.createFunctionCallCall($.expression,$.thisArg,K),H):n.updateCallExpression(H,$,void 0,K)}return Fo(H,m,t)}function T(H,U,$){switch(H.kind){case 217:return v(H,U,$);case 211:case 212:return x(H,U,$);case 213:return k(H,U);default:return on(H,m,An)}}function I(H,U,$){let{expression:K,chain:re}=g(H),X=T(dh(K),E2(re[0]),!1),ne=kk(X)?X.thisArg:void 0,se=kk(X)?X.expression:X,_e=n.restoreOuterExpressions(K,se,8);Sx(se)||(se=n.createTempVariable(a),_e=n.createAssignment(se,_e));let ae=se,le;for(let xe=0;xeGe&&Ho(he,ts(we.statements,A,ll,Ge,Oe-Ge));break}Oe++}Se.assert(Oe$(he,Ge))))],Ge,Ae===2)}return Fo(we,A,t)}function re(we,Ae,Ge,he,Oe){let Re=[];for(let qe=Ae;qen&&(n=u)}return n}function uXe(t){let n=0;for(let a of t){let u=lge(a.statements);if(u===2)return 2;u>n&&(n=u)}return n}function p2e(t){let{factory:n,getEmitHelperFactory:a}=t,u=t.getCompilerOptions(),m,g;return kN(t,A);function v(){if(g.filenameDeclaration)return g.filenameDeclaration.name;let mt=n.createVariableDeclaration(n.createUniqueName("_jsxFileName",48),void 0,void 0,n.createStringLiteral(m.fileName));return g.filenameDeclaration=mt,g.filenameDeclaration.name}function x(mt){return u.jsx===5?"jsxDEV":mt?"jsxs":"jsx"}function k(mt){let ut=x(mt);return I(ut)}function T(){return I("Fragment")}function I(mt){var ut,ht;let Kt=mt==="createElement"?g.importSpecifier:qse(g.importSpecifier,u),ni=(ht=(ut=g.utilizedImplicitRuntimeImports)==null?void 0:ut.get(Kt))==null?void 0:ht.get(mt);if(ni)return ni.name;g.utilizedImplicitRuntimeImports||(g.utilizedImplicitRuntimeImports=new Map);let Ut=g.utilizedImplicitRuntimeImports.get(Kt);Ut||(Ut=new Map,g.utilizedImplicitRuntimeImports.set(Kt,Ut));let pi=n.createUniqueName(`_${mt}`,112),wi=n.createImportSpecifier(!1,n.createIdentifier(mt),pi);return $me(pi,wi),Ut.set(mt,wi),pi}function A(mt){if(mt.isDeclarationFile)return mt;m=mt,g={},g.importSpecifier=jG(u,mt);let ut=Fo(mt,M,t);bk(ut,t.readEmitHelpers());let ht=ut.statements;if(g.filenameDeclaration&&(ht=fj(ht.slice(),n.createVariableStatement(void 0,n.createVariableDeclarationList([g.filenameDeclaration],2)))),g.utilizedImplicitRuntimeImports){for(let[Kt,ni]of tc(g.utilizedImplicitRuntimeImports.entries()))if(Mg(mt)){let Ut=n.createImportDeclaration(void 0,n.createImportClause(!1,void 0,n.createNamedImports(tc(ni.values()))),n.createStringLiteral(Kt),void 0);G3(Ut,!1),ht=fj(ht.slice(),Ut)}else if(Jv(mt)){let Ut=n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(n.createObjectBindingPattern(tc(ni.values(),pi=>n.createBindingElement(void 0,pi.propertyName,pi.name))),void 0,void 0,n.createCallExpression(n.createIdentifier("require"),void 0,[n.createStringLiteral(Kt)]))],2));G3(Ut,!1),ht=fj(ht.slice(),Ut)}}return ht!==ut.statements&&(ut=n.updateSourceFile(ut,ht)),g=void 0,ut}function M(mt){return mt.transformFlags&2?R(mt):mt}function R(mt){switch(mt.kind){case 284:return re(mt,!1);case 285:return X(mt,!1);case 288:return ne(mt,!1);case 294:return ft(mt);default:return Fo(mt,M,t)}}function H(mt){switch(mt.kind){case 12:return Oe(mt);case 294:return ft(mt);case 284:return re(mt,!0);case 285:return X(mt,!0);case 288:return ne(mt,!0);default:return Se.failBadSyntaxKind(mt)}}function U(mt){return mt.properties.some(ut=>Ih(ut)&&(Ai(ut.name)&&Un(ut.name)==="__proto__"||Kf(ut.name)&&ut.name.text==="__proto__"))}function $(mt){let ut=!1;for(let ht of mt.attributes.properties)if(ZA(ht)&&(!Ld(ht.expression)||ht.expression.properties.some(H2)))ut=!0;else if(ut&&_b(ht)&&Ai(ht.name)&&ht.name.escapedText==="key")return!0;return!1}function K(mt){return g.importSpecifier===void 0||$(mt)}function re(mt,ut){return(K(mt.openingElement)?Ee:ae)(mt.openingElement,mt.children,ut,mt)}function X(mt,ut){return(K(mt)?Ee:ae)(mt,void 0,ut,mt)}function ne(mt,ut){return(g.importSpecifier===void 0?be:xe)(mt.openingFragment,mt.children,ut,mt)}function se(mt){let ut=_e(mt);return ut&&n.createObjectLiteralExpression([ut])}function _e(mt){let ut=Sp(mt);if(Z(ut)===1&&!ut[0].dotDotDotToken){let Kt=H(ut[0]);return Kt&&n.createPropertyAssignment("children",Kt)}let ht=Dc(mt,H);return Z(ht)?n.createPropertyAssignment("children",n.createArrayLiteralExpression(ht)):void 0}function ae(mt,ut,ht,Kt){let ni=rt(mt),Ut=ut&&ut.length?_e(ut):void 0,pi=jt(mt.attributes.properties,Bn=>!!Bn.name&&Ai(Bn.name)&&Bn.name.escapedText==="key"),wi=pi?Qn(mt.attributes.properties,Bn=>Bn!==pi):mt.attributes.properties,Bi=Z(wi)?fe(wi,Ut):n.createObjectLiteralExpression(Ut?[Ut]:F);return le(ni,Bi,pi,ut||F,ht,Kt)}function le(mt,ut,ht,Kt,ni,Ut){var pi;let wi=Sp(Kt),Bi=Z(wi)>1||!!((pi=wi[0])!=null&&pi.dotDotDotToken),Bn=[mt,ut];if(ht&&Bn.push(he(ht.initializer)),u.jsx===5){let Ei=Gm(m);if(Ei&&ul(Ei)){ht===void 0&&Bn.push(n.createVoidZero()),Bn.push(Bi?n.createTrue():n.createFalse());let zn=Df(Ei,Ut.pos);Bn.push(n.createObjectLiteralExpression([n.createPropertyAssignment("fileName",v()),n.createPropertyAssignment("lineNumber",n.createNumericLiteral(zn.line+1)),n.createPropertyAssignment("columnNumber",n.createNumericLiteral(zn.character+1))])),Bn.push(n.createThis())}}let mr=Fn(n.createCallExpression(k(Bi),void 0,Bn),Ut);return ni&&T1(mr),mr}function Ee(mt,ut,ht,Kt){let ni=rt(mt),Ut=mt.attributes.properties,pi=Z(Ut)?fe(Ut):n.createNull(),wi=g.importSpecifier===void 0?kae(n,t.getEmitResolver().getJsxFactoryEntity(m),u.reactNamespace,mt):I("createElement"),Bi=nhe(n,wi,ni,pi,Dc(ut,H),Kt);return ht&&T1(Bi),Bi}function xe(mt,ut,ht,Kt){let ni;if(ut&&ut.length){let Ut=se(ut);Ut&&(ni=Ut)}return le(T(),ni||n.createObjectLiteralExpression([]),void 0,ut,ht,Kt)}function be(mt,ut,ht,Kt){let ni=Kwe(n,t.getEmitResolver().getJsxFactoryEntity(m),t.getEmitResolver().getJsxFragmentFactoryEntity(m),u.reactNamespace,Dc(ut,H),mt,Kt);return ht&&T1(ni),ni}function Le(mt){return Ld(mt.expression)&&!U(mt.expression)?$s(mt.expression.properties,ut=>Se.checkDefined(on(ut,M,FC))):n.createSpreadAssignment(Se.checkDefined(on(mt.expression,M,An)))}function fe(mt,ut){let ht=h_(u);return ht&&ht>=5?n.createObjectLiteralExpression(we(mt,ut)):Ae(mt,ut)}function we(mt,ut){let ht=cr($f(mt,ZA,(Kt,ni)=>cr($i(Kt,Ut=>ni?Le(Ut):Ge(Ut)))));return ut&&ht.push(ut),ht}function Ae(mt,ut){let ht=[],Kt=[];for(let Ut of mt){if(ZA(Ut)){if(Ld(Ut.expression)&&!U(Ut.expression)){for(let pi of Ut.expression.properties){if(H2(pi)){ni(),ht.push(Se.checkDefined(on(pi.expression,M,An)));continue}Kt.push(Se.checkDefined(on(pi,M)))}continue}ni(),ht.push(Se.checkDefined(on(Ut.expression,M,An)));continue}Kt.push(Ge(Ut))}return ut&&Kt.push(ut),ni(),ht.length&&!Ld(ht[0])&&ht.unshift(n.createObjectLiteralExpression()),vp(ht)||a().createAssignHelper(ht);function ni(){Kt.length&&(ht.push(n.createObjectLiteralExpression(Kt)),Kt=[])}}function Ge(mt){let ut=_t(mt),ht=he(mt.initializer);return n.createPropertyAssignment(ut,ht)}function he(mt){if(mt===void 0)return n.createTrue();if(mt.kind===11){let ut=mt.singleQuote!==void 0?mt.singleQuote:!D3(mt,m),ht=n.createStringLiteral(qe(mt.text)||mt.text,ut);return Fn(ht,mt)}return mt.kind===294?mt.expression===void 0?n.createTrue():Se.checkDefined(on(mt.expression,M,An)):R_(mt)?re(mt,!1):mh(mt)?X(mt,!1):$5(mt)?ne(mt,!1):Se.failBadSyntaxKind(mt)}function Oe(mt){let ut=Re(mt.text);return ut===void 0?void 0:n.createStringLiteral(ut)}function Re(mt){let ut,ht=0,Kt=-1;for(let ni=0;ni{if(Ut)return ej(parseInt(Ut,10));if(pi)return ej(parseInt(pi,16));{let Bi=dXe.get(wi);return Bi?ej(Bi):ut}})}function qe(mt){let ut=Ke(mt);return ut===mt?void 0:ut}function rt(mt){if(mt.kind===284)return rt(mt.openingElement);{let ut=mt.tagName;return Ai(ut)&&wG(ut.escapedText)?n.createStringLiteral(Un(ut)):vx(ut)?n.createStringLiteral(Un(ut.namespace)+":"+Un(ut.name)):rO(n,ut)}}function _t(mt){let ut=mt.name;if(Ai(ut)){let ht=Un(ut);return/^[A-Z_]\w*$/i.test(ht)?ut:n.createStringLiteral(ht)}return n.createStringLiteral(Un(ut.namespace)+":"+Un(ut.name))}function ft(mt){let ut=on(mt.expression,M,An);return mt.dotDotDotToken?n.createSpreadElement(ut):ut}}var dXe=new Map(Object.entries({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830}));function kFe(t){let{factory:n,hoistVariableDeclaration:a}=t;return kN(t,u);function u(k){return k.isDeclarationFile?k:Fo(k,m,t)}function m(k){if(!(k.transformFlags&512))return k;switch(k.kind){case 226:return g(k);default:return Fo(k,m,t)}}function g(k){switch(k.operatorToken.kind){case 68:return v(k);case 43:return x(k);default:return Fo(k,m,t)}}function v(k){let T,I,A=on(k.left,m,An),M=on(k.right,m,An);if(T_(A)){let R=n.createTempVariable(a),H=n.createTempVariable(a);T=Fn(n.createElementAccessExpression(Fn(n.createAssignment(R,A.expression),A.expression),Fn(n.createAssignment(H,A.argumentExpression),A.argumentExpression)),A),I=Fn(n.createElementAccessExpression(R,H),A)}else if(ba(A)){let R=n.createTempVariable(a);T=Fn(n.createPropertyAccessExpression(Fn(n.createAssignment(R,A.expression),A.expression),A.name),A),I=Fn(n.createPropertyAccessExpression(R,A.name),A)}else T=A,I=A;return Fn(n.createAssignment(T,Fn(n.createGlobalMethodCall("Math","pow",[I,M]),k)),k)}function x(k){let T=on(k.left,m,An),I=on(k.right,m,An);return Fn(n.createGlobalMethodCall("Math","pow",[T,I]),k)}}function fXe(t,n){return{kind:t,expression:n}}function m2e(t){let{factory:n,getEmitHelperFactory:a,startLexicalEnvironment:u,resumeLexicalEnvironment:m,endLexicalEnvironment:g,hoistVariableDeclaration:v}=t,x=t.getCompilerOptions(),k=t.getEmitResolver(),T=t.onSubstituteNode,I=t.onEmitNode;t.onEmitNode=e0,t.onSubstituteNode=wp;let A,M,R,H;function U(st){H=ar(H,n.createVariableDeclaration(st))}let $,K;return kN(t,re);function re(st){if(st.isDeclarationFile)return st;A=st,M=st.text;let gi=fe(st);return bk(gi,t.readEmitHelpers()),A=void 0,M=void 0,H=void 0,R=0,gi}function X(st,gi){let an=R;return R=(R&~st|gi)&32767,an}function ne(st,gi,an){R=(R&~gi|an)&-32768|st}function se(st){return(R&8192)!==0&&st.kind===253&&!st.expression}function _e(st){return st.transformFlags&4194304&&(fm(st)||aM(st)||Y8(st)||hee(st)||Wc(st)||eP(st)||fL(st)||Q8(st)||eC(st)||dL(st)||v8(st,!1)||qu(st))}function ae(st){return(st.transformFlags&1024)!==0||$!==void 0||R&8192&&_e(st)||v8(st,!1)&&cc(st)||(RC(st)&1)!==0}function le(st){return ae(st)?Le(st,!1):st}function Ee(st){return ae(st)?Le(st,!0):st}function xe(st){if(ae(st)){let gi=Gm(st);if(vu(gi)&&G0(gi)){let an=X(32670,16449),yn=Le(st,!1);return ne(an,229376,0),yn}return Le(st,!1)}return st}function be(st){return st.kind===108?tg(st,!0):le(st)}function Le(st,gi){switch(st.kind){case 126:return;case 263:return rt(st);case 231:return _t(st);case 169:return qi(st);case 262:return ui(st);case 219:return Ie(st);case 218:return Bt(st);case 260:return dn(st);case 80:return Ke(st);case 261:return Ot(st);case 255:return we(st);case 269:return Ae(st);case 241:return ye(st,!1);case 252:case 251:return qe(st);case 256:return Cn(st);case 246:case 247:return Wi(st,void 0);case 248:return Kn(st,void 0);case 249:return wr(st,void 0);case 250:return Nr(st,void 0);case 244:return vt(st);case 210:return Nc(st);case 299:return zs(st);case 304:return mf(st);case 167:return B_(st);case 209:return td(st);case 213:return rp(st);case 214:return wo(st);case 217:return pe(st,gi);case 226:return at(st,gi);case 355:return We(st,gi);case 15:case 16:case 17:case 18:return il(st);case 11:return Fd(st);case 9:return hp(st);case 215:return Wf(st);case 228:return Md(st);case 229:return vd(st);case 230:return tl(st);case 108:return tg(st,!1);case 110:return Re(st);case 236:return Rg(st);case 174:return cu(st);case 177:case 178:return ru(st);case 243:return At(st);case 253:return Oe(st);case 222:return $e(st);default:return Fo(st,le,t)}}function fe(st){let gi=X(8064,64),an=[],yn=[];u();let Be=n.copyPrologue(st.statements,an,!1,le);return Ho(yn,ts(st.statements,le,ll,Be)),H&&yn.push(n.createVariableStatement(void 0,n.createVariableDeclarationList(H))),n.mergeLexicalEnvironment(an,g()),Ve(an,st),ne(gi,0,0),n.updateSourceFile(st,Fn(n.createNodeArray(Pl(an,yn)),st.statements))}function we(st){if($!==void 0){let gi=$.allowedNonLabeledJumps;$.allowedNonLabeledJumps|=2;let an=Fo(st,le,t);return $.allowedNonLabeledJumps=gi,an}return Fo(st,le,t)}function Ae(st){let gi=X(7104,0),an=Fo(st,le,t);return ne(gi,0,0),an}function Ge(st){return Wo(n.createReturnStatement(he()),st)}function he(){return n.createUniqueName("_this",48)}function Oe(st){return $?($.nonLocalJumps|=8,se(st)&&(st=Ge(st)),n.createReturnStatement(n.createObjectLiteralExpression([n.createPropertyAssignment(n.createIdentifier("value"),st.expression?Se.checkDefined(on(st.expression,le,An)):n.createVoidZero())]))):se(st)?Ge(st):Fo(st,le,t)}function Re(st){return R|=65536,R&2&&!(R&16384)&&(R|=131072),$?R&2?($.containsLexicalThis=!0,st):$.thisName||($.thisName=n.createUniqueName("this")):st}function $e(st){return Fo(st,Ee,t)}function Ke(st){return $&&k.isArgumentsLocalBinding(st)?$.argumentsName||($.argumentsName=n.createUniqueName("arguments")):st.flags&256?Wo(Fn(n.createIdentifier(Ba(st.escapedText)),st),st):st}function qe(st){if($){let gi=st.kind===252?2:4;if(!(st.label&&$.labels&&$.labels.get(Un(st.label))||!st.label&&$.allowedNonLabeledJumps&gi)){let yn,Be=st.label;Be?st.kind===252?(yn=`break-${Be.escapedText}`,Qt($,!0,Un(Be),yn)):(yn=`continue-${Be.escapedText}`,Qt($,!1,Un(Be),yn)):st.kind===252?($.nonLocalJumps|=2,yn="break"):($.nonLocalJumps|=4,yn="continue");let Ft=n.createStringLiteral(yn);if($.loopOutParameters.length){let Vi=$.loopOutParameters,yr;for(let He=0;HeAi(gi.name)&&!gi.initializer)}function pi(st){if(m5(st))return!0;if(!(st.transformFlags&134217728))return!1;switch(st.kind){case 219:case 218:case 262:case 176:case 175:return!1;case 177:case 178:case 174:case 172:{let gi=st;return f_(gi.name)?!!_d(gi.name,pi):!1}}return!!_d(st,pi)}function wi(st,gi,an,yn){let Be=!!an&&ug(an.expression).kind!==106;if(!st)return ni(gi,Be);let Ft=[],Vi=[];m();let yr=n.copyStandardPrologue(st.body.statements,Ft,0);(yn||pi(st.body))&&(R|=8192),Ho(Vi,ts(st.body.statements,le,ll,yr));let He=Be||R&8192;Xi(Ft,st),St(Ft,st,yn),dt(Ft,st),He?Tt(Ft,st,Qs()):Ve(Ft,st),n.mergeLexicalEnvironment(Ft,g()),He&&!Mn(st.body)&&Vi.push(n.createReturnStatement(he()));let Xt=n.createBlock(Fn(n.createNodeArray([...Ft,...Vi]),st.body.statements),!0);return Fn(Xt,st.body),$o(Xt,st.body,yn)}function Bi(st){return Tm(st)&&Un(st)==="_this"}function Bn(st){return Tm(st)&&Un(st)==="_super"}function mr(st){return Zh(st)&&st.declarationList.declarations.length===1&&Ei(st.declarationList.declarations[0])}function Ei(st){return $c(st)&&Bi(st.name)&&!!st.initializer}function zn(st){return Kg(st,!0)&&Bi(st.left)}function zr(st){return Od(st)&&ba(st.expression)&&Bn(st.expression.expression)&&Ai(st.expression.name)&&(Un(st.expression.name)==="call"||Un(st.expression.name)==="apply")&&st.arguments.length>=1&&st.arguments[0].kind===110}function xr(st){return ms(st)&&st.operatorToken.kind===57&&st.right.kind===110&&zr(st.left)}function lo(st){return ms(st)&&st.operatorToken.kind===56&&ms(st.left)&&st.left.operatorToken.kind===38&&Bn(st.left.left)&&st.left.right.kind===106&&zr(st.right)&&Un(st.right.expression.name)==="apply"}function _r(st){return ms(st)&&st.operatorToken.kind===57&&st.right.kind===110&&lo(st.left)}function Hs(st){return zn(st)&&xr(st.right)}function ai(st){return zn(st)&&_r(st.right)}function mn(st){return zr(st)||xr(st)||Hs(st)||lo(st)||_r(st)||ai(st)}function Nn(st){for(let gi=0;gi0;yn--){let Be=st.statements[yn];if(fm(Be)&&Be.expression&&Bi(Be.expression)){let Ft=st.statements[yn-1],Vi;if(E0(Ft)&&Hs(ug(Ft.expression)))Vi=Ft.expression;else if(an&&mr(Ft)){let Xt=Ft.declarationList.declarations[0];mn(ug(Xt.initializer))&&(Vi=n.createAssignment(he(),Xt.initializer))}if(!Vi)break;let yr=n.createReturnStatement(Vi);Wo(yr,Ft),Fn(yr,Ft);let He=n.createNodeArray([...st.statements.slice(0,yn-1),yr,...st.statements.slice(yn+1)]);return Fn(He,st.statements),n.updateBlock(st,He)}}return st}function ci(st){if(mr(st)){if(st.declarationList.declarations[0].initializer.kind===110)return}else if(zn(st))return n.createPartiallyEmittedExpression(st.right,st);switch(st.kind){case 219:case 218:case 262:case 176:case 175:return st;case 177:case 178:case 174:case 172:{let gi=st;return f_(gi.name)?n.replacePropertyName(gi,Fo(gi.name,ci,void 0)):st}}return Fo(st,ci,void 0)}function gn(st,gi){if(gi.transformFlags&16384||R&65536||R&131072)return st;for(let an of gi.statements)if(an.transformFlags&134217728&&!Kee(an))return st;return n.updateBlock(st,ts(st.statements,ci,ll))}function Sr(st){if(zr(st)&&st.arguments.length===2&&Ai(st.arguments[1])&&Un(st.arguments[1])==="arguments")return n.createLogicalAnd(n.createStrictInequality(j_(),n.createNull()),st);switch(st.kind){case 219:case 218:case 262:case 176:case 175:return st;case 177:case 178:case 174:case 172:{let gi=st;return f_(gi.name)?n.replacePropertyName(gi,Fo(gi.name,Sr,void 0)):st}}return Fo(st,Sr,void 0)}function vo(st){return n.updateBlock(st,ts(st.statements,Sr,ll))}function $o(st,gi,an){let yn=st;return st=Nn(st),st=Gr(st,gi),st!==yn&&(st=gn(st,gi)),an&&(st=vo(st)),st}function Mn(st){if(st.kind===253)return!0;if(st.kind===245){let gi=st;if(gi.elseStatement)return Mn(gi.thenStatement)&&Mn(gi.elseStatement)}else if(st.kind===241){let gi=Y_(st.statements);if(gi&&Mn(gi))return!0}return!1}function Qs(){return De(n.createThis(),8)}function Pi(){return n.createLogicalOr(n.createLogicalAnd(n.createStrictInequality(j_(),n.createNull()),n.createFunctionApplyCall(j_(),Qs(),n.createIdentifier("arguments"))),Qs())}function qi(st){if(!st.dotDotDotToken)return Uu(st.name)?Wo(Fn(n.createParameterDeclaration(void 0,void 0,n.getGeneratedNameForNode(st),void 0,void 0,void 0),st),st):st.initializer?Wo(Fn(n.createParameterDeclaration(void 0,void 0,st.name,void 0,void 0,void 0),st),st):st}function lt(st){return st.initializer!==void 0||Uu(st.name)}function Xi(st,gi){if(!En(gi.parameters,lt))return!1;let an=!1;for(let yn of gi.parameters){let{name:Be,initializer:Ft,dotDotDotToken:Vi}=yn;Vi||(Uu(Be)?an=nt(st,yn,Be,Ft)||an:Ft&&(Lt(st,yn,Be,Ft),an=!0))}return an}function nt(st,gi,an,yn){return an.elements.length>0?(fj(st,De(n.createVariableStatement(void 0,n.createVariableDeclarationList(CM(gi,le,t,0,n.getGeneratedNameForNode(gi)))),2097152)),!0):yn?(fj(st,De(n.createExpressionStatement(n.createAssignment(n.getGeneratedNameForNode(gi),Se.checkDefined(on(yn,le,An)))),2097152)),!0):!1}function Lt(st,gi,an,yn){yn=Se.checkDefined(on(yn,le,An));let Be=n.createIfStatement(n.createTypeCheck(n.cloneNode(an),"undefined"),De(Fn(n.createBlock([n.createExpressionStatement(De(Fn(n.createAssignment(De(dp(Fn(n.cloneNode(an),an),an.parent),96),De(yn,96|N_(yn)|3072)),gi),3072))]),gi),3905));T1(Be),Fn(Be,gi),De(Be,2101056),fj(st,Be)}function Pe(st,gi){return!!(st&&st.dotDotDotToken&&!gi)}function St(st,gi,an){let yn=[],Be=Y_(gi.parameters);if(!Pe(Be,an))return!1;let Ft=Be.name.kind===80?dp(Fn(n.cloneNode(Be.name),Be.name),Be.name.parent):n.createTempVariable(void 0);De(Ft,96);let Vi=Be.name.kind===80?n.cloneNode(Be.name):Ft,yr=gi.parameters.length-1,He=n.createLoopVariable();yn.push(De(Fn(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(Ft,void 0,void 0,n.createArrayLiteralExpression([]))])),Be),2097152));let Xt=n.createForStatement(Fn(n.createVariableDeclarationList([n.createVariableDeclaration(He,void 0,void 0,n.createNumericLiteral(yr))]),Be),Fn(n.createLessThan(He,n.createPropertyAccessExpression(n.createIdentifier("arguments"),"length")),Be),Fn(n.createPostfixIncrement(He),Be),n.createBlock([T1(Fn(n.createExpressionStatement(n.createAssignment(n.createElementAccessExpression(Vi,yr===0?He:n.createSubtract(He,n.createNumericLiteral(yr))),n.createElementAccessExpression(n.createIdentifier("arguments"),He))),Be))]));return De(Xt,2097152),T1(Xt),yn.push(Xt),Be.name.kind!==80&&yn.push(De(Fn(n.createVariableStatement(void 0,n.createVariableDeclarationList(CM(Be,le,t,0,Vi))),Be),2097152)),Mpe(st,yn),!0}function Ve(st,gi){return R&131072&&gi.kind!==219?(Tt(st,gi,n.createThis()),!0):!1}function Tt(st,gi,an){gh();let yn=n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(he(),void 0,void 0,an)]));De(yn,2100224),w_(yn,gi),fj(st,yn)}function dt(st,gi){if(R&32768){let an;switch(gi.kind){case 219:return st;case 174:case 177:case 178:an=n.createVoidZero();break;case 176:an=n.createPropertyAccessExpression(De(n.createThis(),8),"constructor");break;case 262:case 218:an=n.createConditionalExpression(n.createLogicalAnd(De(n.createThis(),8),n.createBinaryExpression(De(n.createThis(),8),104,n.getLocalName(gi))),void 0,n.createPropertyAccessExpression(De(n.createThis(),8),"constructor"),void 0,n.createVoidZero());break;default:return Se.failBadSyntaxKind(gi)}let yn=n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(n.createUniqueName("_newTarget",48),void 0,void 0,an)]));De(yn,2100224),fj(st,yn)}return st}function Wt(st,gi){for(let an of gi.members)switch(an.kind){case 240:st.push(pt(an));break;case 174:st.push(Gt(Dr(gi,an),an,gi));break;case 177:case 178:let yn=j2(gi.members,an);an===yn.firstAccessor&&st.push(Mt(Dr(gi,an),yn,gi));break;case 176:case 175:break;default:Se.failBadSyntaxKind(an,A&&A.fileName);break}}function pt(st){return Fn(n.createEmptyStatement(),st)}function Gt(st,gi,an){let yn=Nv(gi),Be=J8(gi),Ft=Ue(gi,gi,void 0,an),Vi=on(gi.name,le,C_);Se.assert(Vi);let yr;if(!wl(Vi)&&KZ(t.getCompilerOptions())){let Xt=f_(Vi)?Vi.expression:Ai(Vi)?n.createStringLiteral(Ba(Vi.escapedText)):Vi;yr=n.createObjectDefinePropertyCall(st,Xt,n.createPropertyDescriptor({value:Ft,enumerable:!1,writable:!0,configurable:!0}))}else{let Xt=XC(n,st,Vi,gi.name);yr=n.createAssignment(Xt,Ft)}De(Ft,3072),w_(Ft,Be);let He=Fn(n.createExpressionStatement(yr),gi);return Wo(He,gi),Xg(He,yn),De(He,96),He}function Mt(st,gi,an){let yn=n.createExpressionStatement(hi(st,gi,an,!1));return De(yn,3072),w_(yn,J8(gi.firstAccessor)),yn}function hi(st,{firstAccessor:gi,getAccessor:an,setAccessor:yn},Be,Ft){let Vi=dp(Fn(n.cloneNode(st),st),st.parent);De(Vi,3136),w_(Vi,gi.name);let yr=on(gi.name,le,C_);if(Se.assert(yr),wl(yr))return Se.failBadSyntaxKind(yr,"Encountered unhandled private identifier while transforming ES2015.");let He=rhe(n,yr);De(He,3104),w_(He,gi.name);let Xt=[];if(an){let Ur=Ue(an,void 0,void 0,Be);w_(Ur,J8(an)),De(Ur,1024);let Rs=n.createPropertyAssignment("get",Ur);Xg(Rs,Nv(an)),Xt.push(Rs)}if(yn){let Ur=Ue(yn,void 0,void 0,Be);w_(Ur,J8(yn)),De(Ur,1024);let Rs=n.createPropertyAssignment("set",Ur);Xg(Rs,Nv(yn)),Xt.push(Rs)}Xt.push(n.createPropertyAssignment("enumerable",an||yn?n.createFalse():n.createTrue()),n.createPropertyAssignment("configurable",n.createTrue()));let un=n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"defineProperty"),void 0,[Vi,He,n.createObjectLiteralExpression(Xt,!0)]);return Ft&&T1(un),un}function Ie(st){st.transformFlags&16384&&!(R&16384)&&(R|=131072);let gi=$;$=void 0;let an=X(15232,66),yn=n.createFunctionExpression(void 0,void 0,void 0,void 0,Af(st.parameters,le,t),void 0,Ce(st));return Fn(yn,st),Wo(yn,st),De(yn,16),ne(an,0,0),$=gi,yn}function Bt(st){let gi=N_(st)&524288?X(32662,69):X(32670,65),an=$;$=void 0;let yn=Af(st.parameters,le,t),Be=Ce(st),Ft=R&32768?n.getLocalName(st):st.name;return ne(gi,229376,0),$=an,n.updateFunctionExpression(st,void 0,st.asteriskToken,Ft,void 0,yn,void 0,Be)}function ui(st){let gi=$;$=void 0;let an=X(32670,65),yn=Af(st.parameters,le,t),Be=Ce(st),Ft=R&32768?n.getLocalName(st):st.name;return ne(an,229376,0),$=gi,n.updateFunctionDeclaration(st,ts(st.modifiers,le,jd),st.asteriskToken,Ft,void 0,yn,void 0,Be)}function Ue(st,gi,an,yn){let Be=$;$=void 0;let Ft=yn&&bc(yn)&&!Xd(st)?X(32670,73):X(32670,65),Vi=Af(st.parameters,le,t),yr=Ce(st);return R&32768&&!an&&(st.kind===262||st.kind===218)&&(an=n.getGeneratedNameForNode(st)),ne(Ft,229376,0),$=Be,Wo(Fn(n.createFunctionExpression(void 0,st.asteriskToken,an,void 0,Vi,void 0,yr),gi),st)}function Ce(st){let gi=!1,an=!1,yn,Be,Ft=[],Vi=[],yr=st.body,He;if(m(),qu(yr)&&(He=n.copyStandardPrologue(yr.statements,Ft,0,!1),He=n.copyCustomPrologue(yr.statements,Vi,He,le,P2),He=n.copyCustomPrologue(yr.statements,Vi,He,le,oG)),gi=Xi(Vi,st)||gi,gi=St(Vi,st,!1)||gi,qu(yr))He=n.copyCustomPrologue(yr.statements,Vi,He,le),yn=yr.statements,Ho(Vi,ts(yr.statements,le,ll,He)),!gi&&yr.multiLine&&(gi=!0);else{Se.assert(st.kind===219),yn=uwe(yr,-1);let un=st.equalsGreaterThanToken;!um(un)&&!um(yr)&&(_N(un,yr,A)?an=!0:gi=!0);let Ur=on(yr,le,An),Rs=n.createReturnStatement(Ur);Fn(Rs,yr),lae(Rs,yr),De(Rs,2880),Vi.push(Rs),Be=yr}if(n.mergeLexicalEnvironment(Ft,g()),dt(Ft,st),Ve(Ft,st),En(Ft)&&(gi=!0),Vi.unshift(...Ft),qu(yr)&&ho(Vi,yr.statements))return yr;let Xt=n.createBlock(Fn(n.createNodeArray(Vi),yn),gi);return Fn(Xt,st.body),!gi&&an&&De(Xt,1),Be&&Ume(Xt,20,Be),Wo(Xt,st.body),Xt}function ye(st,gi){if(gi)return Fo(st,le,t);let an=R&256?X(7104,512):X(6976,128),yn=Fo(st,le,t);return ne(an,0,0),yn}function vt(st){return Fo(st,Ee,t)}function pe(st,gi){return Fo(st,gi?Ee:le,t)}function at(st,gi){return z3(st)?HU(st,le,t,0,!gi):st.operatorToken.kind===28?n.updateBinaryExpression(st,Se.checkDefined(on(st.left,Ee,An)),st.operatorToken,Se.checkDefined(on(st.right,gi?Ee:le,An))):Fo(st,le,t)}function We(st,gi){if(gi)return Fo(st,Ee,t);let an;for(let Be=0;BeHe.name)),yr=yn?n.createYieldExpression(n.createToken(42),De(Vi,8388608)):Vi;if(Ft)Be.push(n.createExpressionStatement(yr)),Ci(gi.loopOutParameters,1,0,Be);else{let He=n.createUniqueName("state"),Xt=n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(He,void 0,void 0,yr)]));if(Be.push(Xt),Ci(gi.loopOutParameters,1,0,Be),gi.nonLocalJumps&8){let un;an?(an.nonLocalJumps|=8,un=n.createReturnStatement(He)):un=n.createReturnStatement(n.createPropertyAccessExpression(He,"value")),Be.push(n.createIfStatement(n.createTypeCheck(He,"object"),un))}if(gi.nonLocalJumps&2&&Be.push(n.createIfStatement(n.createStrictEquality(He,n.createStringLiteral("break")),n.createBreakStatement())),gi.labeledNonLocalBreaks||gi.labeledNonLocalContinues){let un=[];oi(gi.labeledNonLocalBreaks,!0,He,an,un),oi(gi.labeledNonLocalContinues,!1,He,an,un),Be.push(n.createSwitchStatement(He,n.createCaseBlock(un)))}}return Be}function Qt(st,gi,an,yn){gi?(st.labeledNonLocalBreaks||(st.labeledNonLocalBreaks=new Map),st.labeledNonLocalBreaks.set(an,yn)):(st.labeledNonLocalContinues||(st.labeledNonLocalContinues=new Map),st.labeledNonLocalContinues.set(an,yn))}function oi(st,gi,an,yn,Be){st&&st.forEach((Ft,Vi)=>{let yr=[];if(!yn||yn.labels&&yn.labels.get(Vi)){let He=n.createIdentifier(Vi);yr.push(gi?n.createBreakStatement(He):n.createContinueStatement(He))}else Qt(yn,gi,Vi,Ft),yr.push(n.createReturnStatement(an));Be.push(n.createCaseClause(n.createStringLiteral(Ft),yr))})}function nn(st,gi,an,yn,Be){let Ft=gi.name;if(Uu(Ft))for(let Vi of Ft.elements)Eh(Vi)||nn(st,Vi,an,yn,Be);else{an.push(n.createParameterDeclaration(void 0,void 0,Ft));let Vi=k.hasNodeCheckFlag(gi,65536);if(Vi||Be){let yr=n.createUniqueName("out_"+Un(Ft)),He=0;Vi&&(He|=1),QA(st)&&(st.initializer&&k.isBindingCapturedByNode(st.initializer,gi)&&(He|=2),(st.condition&&k.isBindingCapturedByNode(st.condition,gi)||st.incrementor&&k.isBindingCapturedByNode(st.incrementor,gi))&&(He|=1)),yn.push({flags:He,originalName:Ft,outParamName:yr})}}}function hr(st,gi,an,yn){let Be=gi.properties,Ft=Be.length;for(let Vi=yn;ViZh(op)&&!!of(op.declarationList.declarations).initializer,yn=$;$=void 0;let Be=ts(gi.statements,xe,ll);$=yn;let Ft=Qn(Be,an),Vi=Qn(Be,op=>!an(op)),He=$d(of(Ft),Zh).declarationList.declarations[0],Xt=ug(He.initializer),un=ac(Xt,Kg);!un&&ms(Xt)&&Xt.operatorToken.kind===28&&(un=ac(Xt.left,Kg));let Ur=$d(un?ug(un.right):Xt,Od),Rs=$d(ug(Ur.expression),yd),Ja=Rs.body.statements,Tc=0,Jl=-1,Id=[];if(un){let op=ac(Ja[Tc],E0);op&&(Id.push(op),Tc++),Id.push(Ja[Tc]),Tc++,Id.push(n.createExpressionStatement(n.createAssignment(un.left,$d(He.name,Ai))))}for(;!fm(C0(Ja,Jl));)Jl--;Ho(Id,Ja,Tc,Jl),Jl<-1&&Ho(Id,Ja,Jl+1);let bd=ac(C0(Ja,Jl),fm);for(let op of Vi)fm(op)&&bd?.expression&&!Ai(bd.expression)?Id.push(bd):Id.push(op);return Ho(Id,Ft,1),n.restoreOuterExpressions(st.expression,n.restoreOuterExpressions(He.initializer,n.restoreOuterExpressions(un&&un.right,n.updateCallExpression(Ur,n.restoreOuterExpressions(Ur.expression,n.updateFunctionExpression(Rs,void 0,void 0,void 0,void 0,Rs.parameters,void 0,n.updateBlock(Rs.body,Id))),void 0,Ur.arguments))))}function er(st,gi){if(st.transformFlags&32768||st.expression.kind===108||Xx(ug(st.expression))){let{target:an,thisArg:yn}=n.createCallBinding(st.expression,v);st.expression.kind===108&&De(yn,8);let Be;if(st.transformFlags&32768?Be=n.createFunctionApplyCall(Se.checkDefined(on(an,be,An)),st.expression.kind===108?yn:Se.checkDefined(on(yn,le,An)),cl(st.arguments,!0,!1,!1)):Be=Fn(n.createFunctionCallCall(Se.checkDefined(on(an,be,An)),st.expression.kind===108?yn:Se.checkDefined(on(yn,le,An)),ts(st.arguments,le,An)),st),st.expression.kind===108){let Ft=n.createLogicalOr(Be,Qs());Be=gi?n.createAssignment(he(),Ft):Ft}return Wo(Be,st)}return m5(st)&&(R|=131072),Fo(st,le,t)}function wo(st){if(En(st.arguments,yx)){let{target:gi,thisArg:an}=n.createCallBinding(n.createPropertyAccessExpression(st.expression,"bind"),v);return n.createNewExpression(n.createFunctionApplyCall(Se.checkDefined(on(gi,le,An)),an,cl(n.createNodeArray([n.createVoidZero(),...st.arguments]),!0,!1,!1)),void 0,[])}return Fo(st,le,t)}function cl(st,gi,an,yn){let Be=st.length,Ft=cr($f(st,ri,(Xt,un,Ur,Rs)=>un(Xt,an,yn&&Rs===Be)));if(Ft.length===1){let Xt=Ft[0];if(gi&&!x.downlevelIteration||Mme(Xt.expression)||QG(Xt.expression,"___spreadArray"))return Xt.expression}let Vi=a(),yr=Ft[0].kind!==0,He=yr?n.createArrayLiteralExpression():Ft[0].expression;for(let Xt=yr?0:1;Xt0&&yn.push(n.createStringLiteral(an.literal.text)),gi=n.createCallExpression(n.createPropertyAccessExpression(gi,"concat"),void 0,yn)}return Fn(gi,st)}function j_(){return n.createUniqueName("_super",48)}function tg(st,gi){let an=R&8&&!gi?n.createPropertyAccessExpression(Wo(j_(),st),"prototype"):j_();return Wo(an,st),Xg(an,st),w_(an,st),an}function Rg(st){return st.keywordToken===105&&st.name.escapedText==="target"?(R|=32768,n.createUniqueName("_newTarget",48)):st}function e0(st,gi,an){if(K&1&&iu(gi)){let yn=X(32670,N_(gi)&16?81:65);I(st,gi,an),ne(yn,0,0);return}I(st,gi,an)}function A0(){K&2||(K|=2,t.enableSubstitution(80))}function gh(){K&1||(K|=1,t.enableSubstitution(110),t.enableEmitNotification(176),t.enableEmitNotification(174),t.enableEmitNotification(177),t.enableEmitNotification(178),t.enableEmitNotification(219),t.enableEmitNotification(218),t.enableEmitNotification(262))}function wp(st,gi){return gi=T(st,gi),st===1?wg(gi):Ai(gi)?xb(gi):gi}function xb(st){if(K&2&&!Ywe(st)){let gi=ju(st,Ai);if(gi&&ig(gi))return Fn(n.getGeneratedNameForNode(gi),st)}return st}function ig(st){switch(st.parent.kind){case 208:case 263:case 266:case 260:return st.parent.name===st&&k.isDeclarationWithCollidingName(st.parent)}return!1}function wg(st){switch(st.kind){case 80:return Ap(st);case 110:return ln(st)}return st}function Ap(st){if(K&2&&!Ywe(st)){let gi=k.getReferencedDeclarationWithCollidingName(st);if(gi&&!(bc(gi)&&xt(gi,st)))return Fn(n.getGeneratedNameForNode(Nu(gi)),st)}return st}function xt(st,gi){let an=ju(gi);if(!an||an===st||an.end<=st.pos||an.pos>=st.end)return!1;let yn=Xw(st);for(;an;){if(an===yn||an===st)return!1;if(rl(an)&&an.parent===st)return!0;an=an.parent}return!1}function ln(st){return K&1&&R&16?Fn(he(),st):st}function Dr(st,gi){return Xd(gi)?n.getInternalName(st):n.createPropertyAccessExpression(n.getInternalName(st),"prototype")}function Tr(st,gi){if(!st||!gi||En(st.parameters))return!1;let an=Ed(st.body.statements);if(!an||!um(an)||an.kind!==244)return!1;let yn=an.expression;if(!um(yn)||yn.kind!==213)return!1;let Be=yn.expression;if(!um(Be)||Be.kind!==108)return!1;let Ft=vp(yn.arguments);if(!Ft||!um(Ft)||Ft.kind!==230)return!1;let Vi=Ft.expression;return Ai(Vi)&&Vi.escapedText==="arguments"}}function pBt(t){switch(t){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}function h2e(t){let{factory:n,getEmitHelperFactory:a,resumeLexicalEnvironment:u,endLexicalEnvironment:m,hoistFunctionDeclaration:g,hoistVariableDeclaration:v}=t,x=t.getCompilerOptions(),k=h_(x),T=t.getEmitResolver(),I=t.onSubstituteNode;t.onSubstituteNode=vt;let A,M,R,H,U,$,K,re,X,ne,se=1,_e,ae,le,Ee,xe=0,be=0,Le,fe,we,Ae,Ge,he,Oe,Re;return kN(t,$e);function $e(ri){if(ri.isDeclarationFile||!(ri.transformFlags&2048))return ri;let $n=Fo(ri,Ke,t);return bk($n,t.readEmitHelpers()),$n}function Ke(ri){let $n=ri.transformFlags;return H?qe(ri):R?rt(ri):Rp(ri)&&ri.asteriskToken?ft(ri):$n&2048?Fo(ri,Ke,t):ri}function qe(ri){switch(ri.kind){case 246:return Pi(ri);case 247:return lt(ri);case 255:return hi(ri);case 256:return Bt(ri);default:return rt(ri)}}function rt(ri){switch(ri.kind){case 262:return mt(ri);case 218:return ut(ri);case 177:case 178:return ht(ri);case 243:return ni(ri);case 248:return nt(ri);case 249:return Pe(ri);case 252:return dt(ri);case 251:return Ve(ri);case 253:return pt(ri);default:return ri.transformFlags&1048576?_t(ri):ri.transformFlags&4196352?Fo(ri,Ke,t):ri}}function _t(ri){switch(ri.kind){case 226:return Ut(ri);case 355:return Bn(ri);case 227:return Ei(ri);case 229:return zn(ri);case 209:return zr(ri);case 210:return lo(ri);case 212:return _r(ri);case 213:return Hs(ri);case 214:return ai(ri);default:return Fo(ri,Ke,t)}}function ft(ri){switch(ri.kind){case 262:return mt(ri);case 218:return ut(ri);default:return Se.failBadSyntaxKind(ri)}}function mt(ri){if(ri.asteriskToken)ri=Wo(Fn(n.createFunctionDeclaration(ri.modifiers,void 0,ri.name,void 0,Af(ri.parameters,Ke,t),void 0,Kt(ri.body)),ri),ri);else{let $n=R,xo=H;R=!1,H=!1,ri=Fo(ri,Ke,t),R=$n,H=xo}if(R){g(ri);return}else return ri}function ut(ri){if(ri.asteriskToken)ri=Wo(Fn(n.createFunctionExpression(void 0,void 0,ri.name,void 0,Af(ri.parameters,Ke,t),void 0,Kt(ri.body)),ri),ri);else{let $n=R,xo=H;R=!1,H=!1,ri=Fo(ri,Ke,t),R=$n,H=xo}return ri}function ht(ri){let $n=R,xo=H;return R=!1,H=!1,ri=Fo(ri,Ke,t),R=$n,H=xo,ri}function Kt(ri){let $n=[],xo=R,Lc=H,tl=U,il=$,Fd=K,hp=re,Wf=X,Md=ne,j_=se,tg=_e,Rg=ae,e0=le,A0=Ee;R=!0,H=!1,U=void 0,$=void 0,K=void 0,re=void 0,X=void 0,ne=void 0,se=1,_e=void 0,ae=void 0,le=void 0,Ee=n.createTempVariable(void 0),u();let gh=n.copyPrologue(ri.statements,$n,!1,Ke);mn(ri.statements,gh);let wp=Qt();return rv($n,m()),$n.push(n.createReturnStatement(wp)),R=xo,H=Lc,U=tl,$=il,K=Fd,re=hp,X=Wf,ne=Md,se=j_,_e=tg,ae=Rg,le=e0,Ee=A0,Fn(n.createBlock($n,ri.multiLine),ri)}function ni(ri){if(ri.transformFlags&1048576){vo(ri.declarationList);return}else{if(N_(ri)&2097152)return ri;for(let xo of ri.declarationList.declarations)v(xo.name);let $n=NG(ri.declarationList);return $n.length===0?void 0:w_(n.createExpressionStatement(n.inlineExpressions($i($n,$o))),ri)}}function Ut(ri){let $n=WH(ri);switch($n){case 0:return wi(ri);case 1:return pi(ri);default:return Se.assertNever($n)}}function pi(ri){let{left:$n,right:xo}=ri;if(Ce(xo)){let Lc;switch($n.kind){case 211:Lc=n.updatePropertyAccessExpression($n,We(Se.checkDefined(on($n.expression,Ke,MS))),$n.name);break;case 212:Lc=n.updateElementAccessExpression($n,We(Se.checkDefined(on($n.expression,Ke,MS))),We(Se.checkDefined(on($n.argumentExpression,Ke,An))));break;default:Lc=Se.checkDefined(on($n,Ke,An));break}let tl=ri.operatorToken.kind;return kW(tl)?Fn(n.createAssignment(Lc,Fn(n.createBinaryExpression(We(Lc),VU(tl),Se.checkDefined(on(xo,Ke,An))),ri)),ri):n.updateBinaryExpression(ri,Lc,ri.operatorToken,Se.checkDefined(on(xo,Ke,An)))}return Fo(ri,Ke,t)}function wi(ri){return Ce(ri.right)?X6(ri.operatorToken.kind)?mr(ri):ri.operatorToken.kind===28?Bi(ri):n.updateBinaryExpression(ri,We(Se.checkDefined(on(ri.left,Ke,An))),ri.operatorToken,Se.checkDefined(on(ri.right,Ke,An))):Fo(ri,Ke,t)}function Bi(ri){let $n=[];return xo(ri.left),xo(ri.right),n.inlineExpressions($n);function xo(Lc){ms(Lc)&&Lc.operatorToken.kind===28?(xo(Lc.left),xo(Lc.right)):(Ce(Lc)&&$n.length>0&&(ke(1,[n.createExpressionStatement(n.inlineExpressions($n))]),$n=[]),$n.push(Se.checkDefined(on(Lc,Ke,An))))}}function Bn(ri){let $n=[];for(let xo of ri.elements)ms(xo)&&xo.operatorToken.kind===28?$n.push(Bi(xo)):(Ce(xo)&&$n.length>0&&(ke(1,[n.createExpressionStatement(n.inlineExpressions($n))]),$n=[]),$n.push(Se.checkDefined(on(xo,Ke,An))));return n.inlineExpressions($n)}function mr(ri){let $n=At(),xo=si();return Vc(xo,Se.checkDefined(on(ri.left,Ke,An)),ri.left),ri.operatorToken.kind===56?Hl($n,xo,ri.left):Ar($n,xo,ri.left),Vc(xo,Se.checkDefined(on(ri.right,Ke,An)),ri.right),Ot($n),xo}function Ei(ri){if(Ce(ri.whenTrue)||Ce(ri.whenFalse)){let $n=At(),xo=At(),Lc=si();return Hl($n,Se.checkDefined(on(ri.condition,Ke,An)),ri.condition),Vc(Lc,Se.checkDefined(on(ri.whenTrue,Ke,An)),ri.whenTrue),xu(xo),Ot($n),Vc(Lc,Se.checkDefined(on(ri.whenFalse,Ke,An)),ri.whenFalse),Ot(xo),Lc}return Fo(ri,Ke,t)}function zn(ri){let $n=At(),xo=on(ri.expression,Ke,An);if(ri.asteriskToken){let Lc=N_(ri.expression)&8388608?xo:Fn(a().createValuesHelper(xo),ri);Lf(Lc,ri)}else Rt(xo,ri);return Ot($n),Aa(ri)}function zr(ri){return xr(ri.elements,void 0,void 0,ri.multiLine)}function xr(ri,$n,xo,Lc){let tl=ye(ri),il;if(tl>0){il=si();let Wf=ts(ri,Ke,An,0,tl);Vc(il,n.createArrayLiteralExpression($n?[$n,...Wf]:Wf)),$n=void 0}let Fd=$m(ri,hp,[],tl);return il?n.createArrayConcatCall(il,[n.createArrayLiteralExpression(Fd,Lc)]):Fn(n.createArrayLiteralExpression($n?[$n,...Fd]:Fd,Lc),xo);function hp(Wf,Md){if(Ce(Md)&&Wf.length>0){let j_=il!==void 0;il||(il=si()),Vc(il,j_?n.createArrayConcatCall(il,[n.createArrayLiteralExpression(Wf,Lc)]):n.createArrayLiteralExpression($n?[$n,...Wf]:Wf,Lc)),$n=void 0,Wf=[]}return Wf.push(Se.checkDefined(on(Md,Ke,An))),Wf}}function lo(ri){let $n=ri.properties,xo=ri.multiLine,Lc=ye($n),tl=si();Vc(tl,n.createObjectLiteralExpression(ts($n,Ke,FC,0,Lc),xo));let il=$m($n,Fd,[],Lc);return il.push(xo?T1(dp(Fn(n.cloneNode(tl),tl),tl.parent)):tl),n.inlineExpressions(il);function Fd(hp,Wf){Ce(Wf)&&hp.length>0&&(Wl(n.createExpressionStatement(n.inlineExpressions(hp))),hp=[]);let Md=Xwe(n,ri,Wf,tl),j_=on(Md,Ke,An);return j_&&(xo&&T1(j_),hp.push(j_)),hp}}function _r(ri){return Ce(ri.argumentExpression)?n.updateElementAccessExpression(ri,We(Se.checkDefined(on(ri.expression,Ke,MS))),Se.checkDefined(on(ri.argumentExpression,Ke,An))):Fo(ri,Ke,t)}function Hs(ri){if(!Kx(ri)&&ee(ri.arguments,Ce)){let{target:$n,thisArg:xo}=n.createCallBinding(ri.expression,v,k,!0);return Wo(Fn(n.createFunctionApplyCall(We(Se.checkDefined(on($n,Ke,MS))),xo,xr(ri.arguments)),ri),ri)}return Fo(ri,Ke,t)}function ai(ri){if(ee(ri.arguments,Ce)){let{target:$n,thisArg:xo}=n.createCallBinding(n.createPropertyAccessExpression(ri.expression,"bind"),v);return Wo(Fn(n.createNewExpression(n.createFunctionApplyCall(We(Se.checkDefined(on($n,Ke,An))),xo,xr(ri.arguments,n.createVoidZero())),void 0,[]),ri),ri)}return Fo(ri,Ke,t)}function mn(ri,$n=0){let xo=ri.length;for(let Lc=$n;Lc0)break;tl.push($o(Fd))}tl.length&&(Wl(n.createExpressionStatement(n.inlineExpressions(tl))),Lc+=tl.length,tl=[])}}function $o(ri){return w_(n.createAssignment(w_(n.cloneNode(ri.name),ri.name),Se.checkDefined(on(ri.initializer,Ke,An))),ri)}function Mn(ri){if(Ce(ri))if(Ce(ri.thenStatement)||Ce(ri.elseStatement)){let $n=At(),xo=ri.elseStatement?At():void 0;Hl(ri.elseStatement?xo:$n,Se.checkDefined(on(ri.expression,Ke,An)),ri.expression),Nn(ri.thenStatement),ri.elseStatement&&(xu($n),Ot(xo),Nn(ri.elseStatement)),Ot($n)}else Wl(on(ri,Ke,ll));else Wl(on(ri,Ke,ll))}function Qs(ri){if(Ce(ri)){let $n=At(),xo=At();Ti($n),Ot(xo),Nn(ri.statement),Ot($n),Ar(xo,Se.checkDefined(on(ri.expression,Ke,An))),wr()}else Wl(on(ri,Ke,ll))}function Pi(ri){return H?(Kn(),ri=Fo(ri,Ke,t),wr(),ri):Fo(ri,Ke,t)}function qi(ri){if(Ce(ri)){let $n=At(),xo=Ti($n);Ot($n),Hl(xo,Se.checkDefined(on(ri.expression,Ke,An))),Nn(ri.statement),xu($n),wr()}else Wl(on(ri,Ke,ll))}function lt(ri){return H?(Kn(),ri=Fo(ri,Ke,t),wr(),ri):Fo(ri,Ke,t)}function Xi(ri){if(Ce(ri)){let $n=At(),xo=At(),Lc=Ti(xo);if(ri.initializer){let tl=ri.initializer;Xv(tl)?vo(tl):Wl(Fn(n.createExpressionStatement(Se.checkDefined(on(tl,Ke,An))),tl))}Ot($n),ri.condition&&Hl(Lc,Se.checkDefined(on(ri.condition,Ke,An))),Nn(ri.statement),Ot(xo),ri.incrementor&&Wl(Fn(n.createExpressionStatement(Se.checkDefined(on(ri.incrementor,Ke,An))),ri.incrementor)),xu($n),wr()}else Wl(on(ri,Ke,ll))}function nt(ri){H&&Kn();let $n=ri.initializer;if($n&&Xv($n)){for(let Lc of $n.declarations)v(Lc.name);let xo=NG($n);ri=n.updateForStatement(ri,xo.length>0?n.inlineExpressions($i(xo,$o)):void 0,on(ri.condition,Ke,An),on(ri.incrementor,Ke,An),E1(ri.statement,Ke,t))}else ri=Fo(ri,Ke,t);return H&&wr(),ri}function Lt(ri){if(Ce(ri)){let $n=si(),xo=si(),Lc=si(),tl=n.createLoopVariable(),il=ri.initializer;v(tl),Vc($n,Se.checkDefined(on(ri.expression,Ke,An))),Vc(xo,n.createArrayLiteralExpression()),Wl(n.createForInStatement(Lc,$n,n.createExpressionStatement(n.createCallExpression(n.createPropertyAccessExpression(xo,"push"),void 0,[Lc])))),Vc(tl,n.createNumericLiteral(0));let Fd=At(),hp=At(),Wf=Ti(hp);Ot(Fd),Hl(Wf,n.createLessThan(tl,n.createPropertyAccessExpression(xo,"length"))),Vc(Lc,n.createElementAccessExpression(xo,tl)),Hl(hp,n.createBinaryExpression(Lc,103,$n));let Md;if(Xv(il)){for(let j_ of il.declarations)v(j_.name);Md=n.cloneNode(il.declarations[0].name)}else Md=Se.checkDefined(on(il,Ke,An)),Se.assert(MS(Md));Vc(Md,Lc),Nn(ri.statement),Ot(hp),Wl(n.createExpressionStatement(n.createPostfixIncrement(tl))),xu(Fd),wr()}else Wl(on(ri,Ke,ll))}function Pe(ri){H&&Kn();let $n=ri.initializer;if(Xv($n)){for(let xo of $n.declarations)v(xo.name);ri=n.updateForInStatement(ri,$n.declarations[0].name,Se.checkDefined(on(ri.expression,Ke,An)),Se.checkDefined(on(ri.statement,Ke,ll,n.liftToBlock)))}else ri=Fo(ri,Ke,t);return H&&wr(),ri}function St(ri){let $n=vl(ri.label?Un(ri.label):void 0);$n>0?xu($n,ri):Wl(ri)}function Ve(ri){if(H){let $n=vl(ri.label&&Un(ri.label));if($n>0)return Gd($n,ri)}return Fo(ri,Ke,t)}function Tt(ri){let $n=cc(ri.label?Un(ri.label):void 0);$n>0?xu($n,ri):Wl(ri)}function dt(ri){if(H){let $n=cc(ri.label&&Un(ri.label));if($n>0)return Gd($n,ri)}return Fo(ri,Ke,t)}function Wt(ri){bt(on(ri.expression,Ke,An),ri)}function pt(ri){return Su(on(ri.expression,Ke,An),ri)}function Gt(ri){Ce(ri)?(Si(We(Se.checkDefined(on(ri.expression,Ke,An)))),Nn(ri.statement),Ri()):Wl(on(ri,Ke,ll))}function Mt(ri){if(Ce(ri.caseBlock)){let $n=ri.caseBlock,xo=$n.clauses.length,Lc=Vr(),tl=We(Se.checkDefined(on(ri.expression,Ke,An))),il=[],Fd=-1;for(let Md=0;Md0)break;Wf.push(n.createCaseClause(Se.checkDefined(on(tg.expression,Ke,An)),[Gd(il[j_],tg.expression)]))}else Md++}Wf.length&&(Wl(n.createSwitchStatement(tl,n.createCaseBlock(Wf))),hp+=Wf.length,Wf=[]),Md>0&&(hp+=Md,Md=0)}Fd>=0?xu(il[Fd]):xu(Lc);for(let Md=0;Md=0;xo--){let Lc=re[xo];if(Fa(Lc)){if(Lc.labelText===ri)return!0}else break}return!1}function cc(ri){if(re)if(ri)for(let $n=re.length-1;$n>=0;$n--){let xo=re[$n];if(Fa(xo)&&xo.labelText===ri)return xo.breakLabel;if(_a(xo)&&$l(ri,$n-1))return xo.breakLabel}else for(let $n=re.length-1;$n>=0;$n--){let xo=re[$n];if(_a(xo))return xo.breakLabel}return 0}function vl(ri){if(re)if(ri)for(let $n=re.length-1;$n>=0;$n--){let xo=re[$n];if(Pf(xo)&&$l(ri,$n-1))return xo.continueLabel}else for(let $n=re.length-1;$n>=0;$n--){let xo=re[$n];if(Pf(xo))return xo.continueLabel}return 0}function G_(ri){if(ri!==void 0&&ri>0){ne===void 0&&(ne=[]);let $n=n.createNumericLiteral(Number.MAX_SAFE_INTEGER);return ne[ri]===void 0?ne[ri]=[$n]:ne[ri].push($n),$n}return n.createOmittedExpression()}function ja(ri){let $n=n.createNumericLiteral(ri);return Zj($n,3,pBt(ri)),$n}function Gd(ri,$n){return Se.assertLessThan(0,ri,"Invalid label"),Fn(n.createReturnStatement(n.createArrayLiteralExpression([ja(3),G_(ri)])),$n)}function Su(ri,$n){return Fn(n.createReturnStatement(n.createArrayLiteralExpression(ri?[ja(2),ri]:[ja(2)])),$n)}function Aa(ri){return Fn(n.createCallExpression(n.createPropertyAccessExpression(Ee,"sent"),void 0,[]),ri)}function gr(){ke(0)}function Wl(ri){ri?ke(1,[ri]):gr()}function Vc(ri,$n,xo){ke(2,[ri,$n],xo)}function xu(ri,$n){ke(3,[ri],$n)}function Ar(ri,$n,xo){ke(4,[ri,$n],xo)}function Hl(ri,$n,xo){ke(5,[ri,$n],xo)}function Lf(ri,$n){ke(7,[ri],$n)}function Rt(ri,$n){ke(6,[ri],$n)}function bt(ri,$n){ke(8,[ri],$n)}function Ci(ri,$n){ke(9,[ri],$n)}function kn(){ke(10)}function ke(ri,$n,xo){_e===void 0&&(_e=[],ae=[],le=[]),X===void 0&&Ot(At());let Lc=_e.length;_e[Lc]=ri,ae[Lc]=$n,le[Lc]=xo}function Qt(){xe=0,be=0,Le=void 0,fe=!1,we=!1,Ae=void 0,Ge=void 0,he=void 0,Oe=void 0,Re=void 0;let ri=oi();return a().createGeneratorHelper(De(n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,Ee)],void 0,n.createBlock(ri,ri.length>0)),1048576))}function oi(){if(_e){for(let ri=0;ri<_e.length;ri++)cu(ri);hr(_e.length)}else hr(0);if(Ae){let ri=n.createPropertyAccessExpression(Ee,"label"),$n=n.createSwitchStatement(ri,n.createCaseBlock(Ae));return[T1($n)]}return Ge||[]}function nn(){Ge&&(Er(!fe),fe=!1,we=!1,be++)}function hr(ri){io(ri)&&(is(ri),Re=void 0,vd(void 0,void 0)),Ge&&Ae&&Er(!1),zs()}function io(ri){if(!we)return!0;if(!X||!ne)return!1;for(let $n=0;$n=0;$n--){let xo=Re[$n];Ge=[n.createWithStatement(xo.expression,n.createBlock(Ge))]}if(Oe){let{startLabel:$n,catchLabel:xo,finallyLabel:Lc,endLabel:tl}=Oe;Ge.unshift(n.createExpressionStatement(n.createCallExpression(n.createPropertyAccessExpression(n.createPropertyAccessExpression(Ee,"trys"),"push"),void 0,[n.createArrayLiteralExpression([G_($n),G_(xo),G_(Lc),G_(tl)])]))),Oe=void 0}ri&&Ge.push(n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(Ee,"label"),n.createNumericLiteral(be+1))))}Ae.push(n.createCaseClause(n.createNumericLiteral(be),Ge||[])),Ge=void 0}function is(ri){if(X)for(let $n=0;$nOt.kind===11?a.createAssignment(a.createElementAccessExpression(a.createIdentifier("exports"),a.createStringLiteral(Ot.text)),At):a.createAssignment(a.createPropertyAccessExpression(a.createIdentifier("exports"),a.createIdentifier(Un(Ot))),At),a.createVoidZero())));for(let We of $.exportedFunctions)nt(ye,We);ar(ye,on($.externalHelpersImportDeclaration,Le,ll)),Ho(ye,ts(Ce.statements,Le,ll,pe)),be(ye,!1),rv(ye,g());let at=a.updateSourceFile(Ce,Fn(a.createNodeArray(ye),Ce.statements));return bk(at,t.readEmitHelpers()),at}function _e(Ce){let ye=a.createIdentifier("define"),vt=kee(a,Ce,T,x),pe=qv(Ce)&&Ce,{aliasedModuleNames:at,unaliasedModuleNames:We,importAliasNames:si}=le(Ce,!0),At=a.updateSourceFile(Ce,Fn(a.createNodeArray([a.createExpressionStatement(a.createCallExpression(ye,void 0,[...vt?[vt]:[],a.createArrayLiteralExpression(pe?F:[a.createStringLiteral("require"),a.createStringLiteral("exports"),...at,...We]),pe?pe.statements.length?pe.statements[0].expression:a.createObjectLiteralExpression():a.createFunctionExpression(void 0,void 0,void 0,void 0,[a.createParameterDeclaration(void 0,void 0,"require"),a.createParameterDeclaration(void 0,void 0,"exports"),...si],void 0,xe(Ce))]))]),Ce.statements));return bk(At,t.readEmitHelpers()),At}function ae(Ce){let{aliasedModuleNames:ye,unaliasedModuleNames:vt,importAliasNames:pe}=le(Ce,!1),at=kee(a,Ce,T,x),We=a.createFunctionExpression(void 0,void 0,void 0,void 0,[a.createParameterDeclaration(void 0,void 0,"factory")],void 0,Fn(a.createBlock([a.createIfStatement(a.createLogicalAnd(a.createTypeCheck(a.createIdentifier("module"),"object"),a.createTypeCheck(a.createPropertyAccessExpression(a.createIdentifier("module"),"exports"),"object")),a.createBlock([a.createVariableStatement(void 0,[a.createVariableDeclaration("v",void 0,void 0,a.createCallExpression(a.createIdentifier("factory"),void 0,[a.createIdentifier("require"),a.createIdentifier("exports")]))]),De(a.createIfStatement(a.createStrictInequality(a.createIdentifier("v"),a.createIdentifier("undefined")),a.createExpressionStatement(a.createAssignment(a.createPropertyAccessExpression(a.createIdentifier("module"),"exports"),a.createIdentifier("v")))),1)]),a.createIfStatement(a.createLogicalAnd(a.createTypeCheck(a.createIdentifier("define"),"function"),a.createPropertyAccessExpression(a.createIdentifier("define"),"amd")),a.createBlock([a.createExpressionStatement(a.createCallExpression(a.createIdentifier("define"),void 0,[...at?[at]:[],a.createArrayLiteralExpression([a.createStringLiteral("require"),a.createStringLiteral("exports"),...ye,...vt]),a.createIdentifier("factory")]))])))],!0),void 0)),si=a.updateSourceFile(Ce,Fn(a.createNodeArray([a.createExpressionStatement(a.createCallExpression(We,void 0,[a.createFunctionExpression(void 0,void 0,void 0,void 0,[a.createParameterDeclaration(void 0,void 0,"require"),a.createParameterDeclaration(void 0,void 0,"exports"),...pe],void 0,xe(Ce))]))]),Ce.statements));return bk(si,t.readEmitHelpers()),si}function le(Ce,ye){let vt=[],pe=[],at=[];for(let We of Ce.amdDependencies)We.name?(vt.push(a.createStringLiteral(We.path)),at.push(a.createParameterDeclaration(void 0,void 0,We.name))):pe.push(a.createStringLiteral(We.path));for(let We of $.externalImports){let si=_M(a,We,U,T,k,x),At=nF(a,We,U);si&&(ye&&At?(De(At,8),vt.push(si),at.push(a.createParameterDeclaration(void 0,void 0,At))):pe.push(si))}return{aliasedModuleNames:vt,unaliasedModuleNames:pe,importAliasNames:at}}function Ee(Ce){if(pf(Ce)||Qg(Ce)||!_M(a,Ce,U,T,k,x))return;let ye=nF(a,Ce,U),vt=Hs(Ce,ye);if(vt!==ye)return a.createExpressionStatement(a.createAssignment(ye,vt))}function xe(Ce){m();let ye=[],vt=a.copyPrologue(Ce.statements,ye,!0,Le);ne()&&ar(ye,St()),En($.exportedNames)&&ar(ye,a.createExpressionStatement($m($.exportedNames,(at,We)=>We.kind===11?a.createAssignment(a.createElementAccessExpression(a.createIdentifier("exports"),a.createStringLiteral(We.text)),at):a.createAssignment(a.createPropertyAccessExpression(a.createIdentifier("exports"),a.createIdentifier(Un(We))),at),a.createVoidZero())));for(let at of $.exportedFunctions)nt(ye,at);ar(ye,on($.externalHelpersImportDeclaration,Le,ll)),A===2&&Ho(ye,Dc($.externalImports,Ee)),Ho(ye,ts(Ce.statements,Le,ll,vt)),be(ye,!0),rv(ye,g());let pe=a.createBlock(ye,!0);return re&&cL(pe,mBt),pe}function be(Ce,ye){if($.exportEquals){let vt=on($.exportEquals.expression,Ae,An);if(vt)if(ye){let pe=a.createReturnStatement(vt);Fn(pe,$.exportEquals),De(pe,3840),Ce.push(pe)}else{let pe=a.createExpressionStatement(a.createAssignment(a.createPropertyAccessExpression(a.createIdentifier("module"),"exports"),vt));Fn(pe,$.exportEquals),De(pe,3072),Ce.push(pe)}}}function Le(Ce){switch(Ce.kind){case 272:return ai(Ce);case 271:return Nn(Ce);case 278:return Gr(Ce);case 277:return ci(Ce);default:return fe(Ce)}}function fe(Ce){switch(Ce.kind){case 243:return vo(Ce);case 262:return gn(Ce);case 263:return Sr(Ce);case 248:return Re(Ce,!0);case 249:return $e(Ce);case 250:return Ke(Ce);case 246:return qe(Ce);case 247:return rt(Ce);case 256:return _t(Ce);case 254:return ft(Ce);case 245:return mt(Ce);case 255:return ut(Ce);case 269:return ht(Ce);case 296:return Kt(Ce);case 297:return ni(Ce);case 258:return Ut(Ce);case 299:return pi(Ce);case 241:return wi(Ce);default:return Ae(Ce)}}function we(Ce,ye){if(!(Ce.transformFlags&276828160))return Ce;switch(Ce.kind){case 248:return Re(Ce,!1);case 244:return Bi(Ce);case 217:return Bn(Ce,ye);case 354:return mr(Ce,ye);case 213:if(Kx(Ce)&&T.shouldTransformImportCall(U))return zn(Ce);break;case 226:if(z3(Ce))return Oe(Ce,ye);break;case 224:case 225:return Ei(Ce,ye)}return Fo(Ce,Ae,t)}function Ae(Ce){return we(Ce,!1)}function Ge(Ce){return we(Ce,!0)}function he(Ce){if(Ld(Ce))for(let ye of Ce.properties)switch(ye.kind){case 303:if(he(ye.initializer))return!0;break;case 304:if(he(ye.name))return!0;break;case 305:if(he(ye.expression))return!0;break;case 174:case 177:case 178:return!1;default:Se.assertNever(ye,"Unhandled object member kind")}else if(Yg(Ce)){for(let ye of Ce.elements)if(yx(ye)){if(he(ye.expression))return!0}else if(he(ye))return!0}else if(Ai(Ce))return Z(Ue(Ce))>(xee(Ce)?1:0);return!1}function Oe(Ce,ye){return he(Ce.left)?HU(Ce,Ae,t,0,!ye,$o):Fo(Ce,Ae,t)}function Re(Ce,ye){if(ye&&Ce.initializer&&Xv(Ce.initializer)&&!(Ce.initializer.flags&7)){let vt=lt(void 0,Ce.initializer,!1);if(vt){let pe=[],at=on(Ce.initializer,Ge,Xv),We=a.createVariableStatement(void 0,at);pe.push(We),Ho(pe,vt);let si=on(Ce.condition,Ae,An),At=on(Ce.incrementor,Ge,An),Ot=E1(Ce.statement,ye?fe:Ae,t);return pe.push(a.updateForStatement(Ce,void 0,si,At,Ot)),pe}}return a.updateForStatement(Ce,on(Ce.initializer,Ge,BT),on(Ce.condition,Ae,An),on(Ce.incrementor,Ge,An),E1(Ce.statement,ye?fe:Ae,t))}function $e(Ce){if(Xv(Ce.initializer)&&!(Ce.initializer.flags&7)){let ye=lt(void 0,Ce.initializer,!0);if(En(ye)){let vt=on(Ce.initializer,Ge,BT),pe=on(Ce.expression,Ae,An),at=E1(Ce.statement,fe,t),We=qu(at)?a.updateBlock(at,[...ye,...at.statements]):a.createBlock([...ye,at],!0);return a.updateForInStatement(Ce,vt,pe,We)}}return a.updateForInStatement(Ce,on(Ce.initializer,Ge,BT),on(Ce.expression,Ae,An),E1(Ce.statement,fe,t))}function Ke(Ce){if(Xv(Ce.initializer)&&!(Ce.initializer.flags&7)){let ye=lt(void 0,Ce.initializer,!0),vt=on(Ce.initializer,Ge,BT),pe=on(Ce.expression,Ae,An),at=E1(Ce.statement,fe,t);return En(ye)&&(at=qu(at)?a.updateBlock(at,[...ye,...at.statements]):a.createBlock([...ye,at],!0)),a.updateForOfStatement(Ce,Ce.awaitModifier,vt,pe,at)}return a.updateForOfStatement(Ce,Ce.awaitModifier,on(Ce.initializer,Ge,BT),on(Ce.expression,Ae,An),E1(Ce.statement,fe,t))}function qe(Ce){return a.updateDoStatement(Ce,E1(Ce.statement,fe,t),on(Ce.expression,Ae,An))}function rt(Ce){return a.updateWhileStatement(Ce,on(Ce.expression,Ae,An),E1(Ce.statement,fe,t))}function _t(Ce){return a.updateLabeledStatement(Ce,Ce.label,on(Ce.statement,fe,ll,a.liftToBlock)??Fn(a.createEmptyStatement(),Ce.statement))}function ft(Ce){return a.updateWithStatement(Ce,on(Ce.expression,Ae,An),Se.checkDefined(on(Ce.statement,fe,ll,a.liftToBlock)))}function mt(Ce){return a.updateIfStatement(Ce,on(Ce.expression,Ae,An),on(Ce.thenStatement,fe,ll,a.liftToBlock)??a.createBlock([]),on(Ce.elseStatement,fe,ll,a.liftToBlock))}function ut(Ce){return a.updateSwitchStatement(Ce,on(Ce.expression,Ae,An),Se.checkDefined(on(Ce.caseBlock,fe,Wc)))}function ht(Ce){return a.updateCaseBlock(Ce,ts(Ce.clauses,fe,fl))}function Kt(Ce){return a.updateCaseClause(Ce,on(Ce.expression,Ae,An),ts(Ce.statements,fe,ll))}function ni(Ce){return Fo(Ce,fe,t)}function Ut(Ce){return Fo(Ce,fe,t)}function pi(Ce){return a.updateCatchClause(Ce,Ce.variableDeclaration,Se.checkDefined(on(Ce.block,fe,qu)))}function wi(Ce){return Ce=Fo(Ce,fe,t),Ce}function Bi(Ce){return a.updateExpressionStatement(Ce,on(Ce.expression,Ge,An))}function Bn(Ce,ye){return a.updateParenthesizedExpression(Ce,on(Ce.expression,ye?Ge:Ae,An))}function mr(Ce,ye){return a.updatePartiallyEmittedExpression(Ce,on(Ce.expression,ye?Ge:Ae,An))}function Ei(Ce,ye){if((Ce.operator===46||Ce.operator===47)&&Ai(Ce.operand)&&!Tm(Ce.operand)&&!sI(Ce.operand)&&!JZ(Ce.operand)){let vt=Ue(Ce.operand);if(vt){let pe,at=on(Ce.operand,Ae,An);z2(Ce)?at=a.updatePrefixUnaryExpression(Ce,at):(at=a.updatePostfixUnaryExpression(Ce,at),ye||(pe=a.createTempVariable(v),at=a.createAssignment(pe,at),Fn(at,Ce)),at=a.createComma(at,a.cloneNode(Ce.operand)),Fn(at,Ce));for(let We of vt)K[pp(at)]=!0,at=Tt(We,at),Fn(at,Ce);return pe&&(K[pp(at)]=!0,at=a.createComma(at,pe),Fn(at,Ce)),at}}return Fo(Ce,Ae,t)}function zn(Ce){if(A===0&&I>=7)return Fo(Ce,Ae,t);let ye=_M(a,Ce,U,T,k,x),vt=on(Ed(Ce.arguments),Ae,An),pe=ye&&(!vt||!Kf(vt)||vt.text!==ye.text)?ye:vt,at=!!(Ce.transformFlags&16384);switch(x.module){case 2:return xr(pe,at);case 3:return zr(pe??a.createVoidZero(),at);case 1:default:return lo(pe)}}function zr(Ce,ye){if(re=!0,Sx(Ce)){let vt=Tm(Ce)?Ce:Kf(Ce)?a.createStringLiteralFromNode(Ce):De(Fn(a.cloneNode(Ce),Ce),3072);return a.createConditionalExpression(a.createIdentifier("__syncRequire"),void 0,lo(Ce),void 0,xr(vt,ye))}else{let vt=a.createTempVariable(v);return a.createComma(a.createAssignment(vt,Ce),a.createConditionalExpression(a.createIdentifier("__syncRequire"),void 0,lo(vt,!0),void 0,xr(vt,ye)))}}function xr(Ce,ye){let vt=a.createUniqueName("resolve"),pe=a.createUniqueName("reject"),at=[a.createParameterDeclaration(void 0,void 0,vt),a.createParameterDeclaration(void 0,void 0,pe)],We=a.createBlock([a.createExpressionStatement(a.createCallExpression(a.createIdentifier("require"),void 0,[a.createArrayLiteralExpression([Ce||a.createOmittedExpression()]),vt,pe]))]),si;I>=2?si=a.createArrowFunction(void 0,void 0,at,void 0,void 0,We):(si=a.createFunctionExpression(void 0,void 0,void 0,void 0,at,void 0,We),ye&&De(si,16));let At=a.createNewExpression(a.createIdentifier("Promise"),void 0,[si]);return GE(x)?a.createCallExpression(a.createPropertyAccessExpression(At,a.createIdentifier("then")),void 0,[u().createImportStarCallbackHelper()]):At}function lo(Ce,ye){let vt=Ce&&!cI(Ce)&&!ye,pe=a.createCallExpression(a.createPropertyAccessExpression(a.createIdentifier("Promise"),"resolve"),void 0,vt?I>=2?[a.createTemplateExpression(a.createTemplateHead(""),[a.createTemplateSpan(Ce,a.createTemplateTail(""))])]:[a.createCallExpression(a.createPropertyAccessExpression(a.createStringLiteral(""),"concat"),void 0,[Ce])]:[]),at=a.createCallExpression(a.createIdentifier("require"),void 0,vt?[a.createIdentifier("s")]:Ce?[Ce]:[]);GE(x)&&(at=u().createImportStarHelper(at));let We=vt?[a.createParameterDeclaration(void 0,void 0,"s")]:[],si;return I>=2?si=a.createArrowFunction(void 0,void 0,We,void 0,void 0,at):si=a.createFunctionExpression(void 0,void 0,void 0,void 0,We,void 0,a.createBlock([a.createReturnStatement(at)])),a.createCallExpression(a.createPropertyAccessExpression(pe,"then"),void 0,[si])}function _r(Ce,ye){return!GE(x)||RC(Ce)&2?ye:VKe(Ce)?u().createImportStarHelper(ye):ye}function Hs(Ce,ye){return!GE(x)||RC(Ce)&2?ye:ZTe(Ce)?u().createImportStarHelper(ye):hFe(Ce)?u().createImportDefaultHelper(ye):ye}function ai(Ce){let ye,vt=E8(Ce);if(A!==2)if(Ce.importClause){let pe=[];vt&&!N3(Ce)?pe.push(a.createVariableDeclaration(a.cloneNode(vt.name),void 0,void 0,Hs(Ce,mn(Ce)))):(pe.push(a.createVariableDeclaration(a.getGeneratedNameForNode(Ce),void 0,void 0,Hs(Ce,mn(Ce)))),vt&&N3(Ce)&&pe.push(a.createVariableDeclaration(a.cloneNode(vt.name),void 0,void 0,a.getGeneratedNameForNode(Ce)))),ye=ar(ye,Wo(Fn(a.createVariableStatement(void 0,a.createVariableDeclarationList(pe,I>=2?2:0)),Ce),Ce))}else return Wo(Fn(a.createExpressionStatement(mn(Ce)),Ce),Ce);else vt&&N3(Ce)&&(ye=ar(ye,a.createVariableStatement(void 0,a.createVariableDeclarationList([Wo(Fn(a.createVariableDeclaration(a.cloneNode(vt.name),void 0,void 0,a.getGeneratedNameForNode(Ce)),Ce),Ce)],I>=2?2:0))));return ye=Qs(ye,Ce),Hu(ye)}function mn(Ce){let ye=_M(a,Ce,U,T,k,x),vt=[];return ye&&vt.push(ye),a.createCallExpression(a.createIdentifier("require"),void 0,vt)}function Nn(Ce){Se.assert(WS(Ce),"import= for internal module references should be handled in an earlier transformer.");let ye;return A!==2?kc(Ce,32)?ye=ar(ye,Wo(Fn(a.createExpressionStatement(Tt(Ce.name,mn(Ce))),Ce),Ce)):ye=ar(ye,Wo(Fn(a.createVariableStatement(void 0,a.createVariableDeclarationList([a.createVariableDeclaration(a.cloneNode(Ce.name),void 0,void 0,mn(Ce))],I>=2?2:0)),Ce),Ce)):kc(Ce,32)&&(ye=ar(ye,Wo(Fn(a.createExpressionStatement(Tt(a.getExportName(Ce),a.getLocalName(Ce))),Ce),Ce))),ye=Pi(ye,Ce),Hu(ye)}function Gr(Ce){if(!Ce.moduleSpecifier)return;let ye=a.getGeneratedNameForNode(Ce);if(Ce.exportClause&&QT(Ce.exportClause)){let vt=[];A!==2&&vt.push(Wo(Fn(a.createVariableStatement(void 0,a.createVariableDeclarationList([a.createVariableDeclaration(ye,void 0,void 0,mn(Ce))])),Ce),Ce));for(let pe of Ce.exportClause.elements){let at=pe.propertyName||pe.name,si=!!GE(x)&&!(RC(Ce)&2)&&MC(at)?u().createImportDefaultHelper(ye):ye,At=at.kind===11?a.createElementAccessExpression(si,at):a.createPropertyAccessExpression(si,at);vt.push(Wo(Fn(a.createExpressionStatement(Tt(pe.name.kind===11?a.cloneNode(pe.name):a.getExportName(pe),At,void 0,!0)),pe),pe))}return Hu(vt)}else if(Ce.exportClause){let vt=[];return vt.push(Wo(Fn(a.createExpressionStatement(Tt(a.cloneNode(Ce.exportClause.name),_r(Ce,A!==2?mn(Ce):ise(Ce)||Ce.exportClause.name.kind===11?ye:a.createIdentifier(Un(Ce.exportClause.name))))),Ce),Ce)),Hu(vt)}else return Wo(Fn(a.createExpressionStatement(u().createExportStarHelper(A!==2?mn(Ce):ye)),Ce),Ce)}function ci(Ce){if(!Ce.isExportEquals)return Ve(a.createIdentifier("default"),on(Ce.expression,Ae,An),Ce,!0)}function gn(Ce){let ye;return kc(Ce,32)?ye=ar(ye,Wo(Fn(a.createFunctionDeclaration(ts(Ce.modifiers,dt,jd),Ce.asteriskToken,a.getDeclarationName(Ce,!0,!0),void 0,ts(Ce.parameters,Ae,Fl),void 0,Fo(Ce.body,Ae,t)),Ce),Ce)):ye=ar(ye,Fo(Ce,Ae,t)),Hu(ye)}function Sr(Ce){let ye;return kc(Ce,32)?ye=ar(ye,Wo(Fn(a.createClassDeclaration(ts(Ce.modifiers,dt,Fm),a.getDeclarationName(Ce,!0,!0),void 0,ts(Ce.heritageClauses,Ae,KC),ts(Ce.members,Ae,rl)),Ce),Ce)):ye=ar(ye,Fo(Ce,Ae,t)),ye=nt(ye,Ce),Hu(ye)}function vo(Ce){let ye,vt,pe;if(kc(Ce,32)){let at,We=!1;for(let si of Ce.declarationList.declarations)if(Ai(si.name)&&sI(si.name))if(at||(at=ts(Ce.modifiers,dt,jd)),si.initializer){let At=a.updateVariableDeclaration(si,si.name,void 0,void 0,Tt(si.name,on(si.initializer,Ae,An)));vt=ar(vt,At)}else vt=ar(vt,si);else if(si.initializer)if(!Uu(si.name)&&(Zc(si.initializer)||yd(si.initializer)||Qh(si.initializer))){let At=a.createAssignment(Fn(a.createPropertyAccessExpression(a.createIdentifier("exports"),si.name),si.name),a.createIdentifier(jC(si.name))),Ot=a.createVariableDeclaration(si.name,si.exclamationToken,si.type,on(si.initializer,Ae,An));vt=ar(vt,Ot),pe=ar(pe,At),We=!0}else pe=ar(pe,Mn(si));if(vt&&(ye=ar(ye,a.updateVariableStatement(Ce,at,a.updateVariableDeclarationList(Ce.declarationList,vt)))),pe){let si=Wo(Fn(a.createExpressionStatement(a.inlineExpressions(pe)),Ce),Ce);We&&Hme(si),ye=ar(ye,si)}}else ye=ar(ye,Fo(Ce,Ae,t));return ye=qi(ye,Ce),Hu(ye)}function $o(Ce,ye,vt){let pe=Ue(Ce);if(pe){let at=xee(Ce)?ye:a.createAssignment(Ce,ye);for(let We of pe)De(at,8),at=Tt(We,at,vt);return at}return a.createAssignment(Ce,ye)}function Mn(Ce){return Uu(Ce.name)?HU(on(Ce,Ae,qZ),Ae,t,0,!1,$o):a.createAssignment(Fn(a.createPropertyAccessExpression(a.createIdentifier("exports"),Ce.name),Ce.name),Ce.initializer?on(Ce.initializer,Ae,An):a.createVoidZero())}function Qs(Ce,ye){if($.exportEquals)return Ce;let vt=ye.importClause;if(!vt)return Ce;let pe=new NK;vt.name&&(Ce=Lt(Ce,pe,vt));let at=vt.namedBindings;if(at)switch(at.kind){case 274:Ce=Lt(Ce,pe,at);break;case 275:for(let We of at.elements)Ce=Lt(Ce,pe,We,!0);break}return Ce}function Pi(Ce,ye){return $.exportEquals?Ce:Lt(Ce,new NK,ye)}function qi(Ce,ye){return lt(Ce,ye.declarationList,!1)}function lt(Ce,ye,vt){if($.exportEquals)return Ce;for(let pe of ye.declarations)Ce=Xi(Ce,pe,vt);return Ce}function Xi(Ce,ye,vt){if($.exportEquals)return Ce;if(Uu(ye.name))for(let pe of ye.name.elements)Eh(pe)||(Ce=Xi(Ce,pe,vt));else!Tm(ye.name)&&(!$c(ye)||ye.initializer||vt)&&(Ce=Lt(Ce,new NK,ye));return Ce}function nt(Ce,ye){if($.exportEquals)return Ce;let vt=new NK;if(kc(ye,32)){let pe=kc(ye,2048)?a.createIdentifier("default"):a.getDeclarationName(ye);Ce=Pe(Ce,vt,pe,a.getLocalName(ye),ye)}return ye.name&&(Ce=Lt(Ce,vt,ye)),Ce}function Lt(Ce,ye,vt,pe){let at=a.getDeclarationName(vt),We=$.exportSpecifiers.get(at);if(We)for(let si of We)Ce=Pe(Ce,ye,si.name,at,si.name,void 0,pe);return Ce}function Pe(Ce,ye,vt,pe,at,We,si){if(vt.kind!==11){if(ye.has(vt))return Ce;ye.set(vt,!0)}return Ce=ar(Ce,Ve(vt,pe,at,We,si)),Ce}function St(){let Ce=a.createExpressionStatement(a.createCallExpression(a.createPropertyAccessExpression(a.createIdentifier("Object"),"defineProperty"),void 0,[a.createIdentifier("exports"),a.createStringLiteral("__esModule"),a.createObjectLiteralExpression([a.createPropertyAssignment("value",a.createTrue())])]));return De(Ce,2097152),Ce}function Ve(Ce,ye,vt,pe,at){let We=Fn(a.createExpressionStatement(Tt(Ce,ye,void 0,at)),vt);return T1(We),pe||De(We,3072),We}function Tt(Ce,ye,vt,pe){return Fn(pe?a.createCallExpression(a.createPropertyAccessExpression(a.createIdentifier("Object"),"defineProperty"),void 0,[a.createIdentifier("exports"),a.createStringLiteralFromNode(Ce),a.createObjectLiteralExpression([a.createPropertyAssignment("enumerable",a.createTrue()),a.createPropertyAssignment("get",a.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,a.createBlock([a.createReturnStatement(ye)])))])]):a.createAssignment(Ce.kind===11?a.createElementAccessExpression(a.createIdentifier("exports"),a.cloneNode(Ce)):a.createPropertyAccessExpression(a.createIdentifier("exports"),a.cloneNode(Ce)),ye),vt)}function dt(Ce){switch(Ce.kind){case 95:case 90:return}return Ce}function Wt(Ce,ye,vt){ye.kind===307?(U=ye,$=H[rC(U)],R(Ce,ye,vt),U=void 0,$=void 0):R(Ce,ye,vt)}function pt(Ce,ye){return ye=M(Ce,ye),ye.id&&K[ye.id]?ye:Ce===1?Mt(ye):Q0(ye)?Gt(ye):ye}function Gt(Ce){let ye=Ce.name,vt=Bt(ye);if(vt!==ye){if(Ce.objectAssignmentInitializer){let pe=a.createAssignment(vt,Ce.objectAssignmentInitializer);return Fn(a.createPropertyAssignment(ye,pe),Ce)}return Fn(a.createPropertyAssignment(ye,vt),Ce)}return Ce}function Mt(Ce){switch(Ce.kind){case 80:return Bt(Ce);case 213:return hi(Ce);case 215:return Ie(Ce);case 226:return ui(Ce)}return Ce}function hi(Ce){if(Ai(Ce.expression)){let ye=Bt(Ce.expression);if(K[pp(ye)]=!0,!Ai(ye)&&!(N_(Ce.expression)&8192))return Na(a.updateCallExpression(Ce,ye,void 0,Ce.arguments),16)}return Ce}function Ie(Ce){if(Ai(Ce.tag)){let ye=Bt(Ce.tag);if(K[pp(ye)]=!0,!Ai(ye)&&!(N_(Ce.tag)&8192))return Na(a.updateTaggedTemplateExpression(Ce,ye,void 0,Ce.template),16)}return Ce}function Bt(Ce){var ye,vt;if(N_(Ce)&8192){let pe=wae(U);return pe?a.createPropertyAccessExpression(pe,Ce):Ce}else if(!(Tm(Ce)&&!(Ce.emitNode.autoGenerate.flags&64))&&!sI(Ce)){let pe=k.getReferencedExportContainer(Ce,xee(Ce));if(pe&&pe.kind===307)return Fn(a.createPropertyAccessExpression(a.createIdentifier("exports"),a.cloneNode(Ce)),Ce);let at=k.getReferencedImportDeclaration(Ce);if(at){if(Ym(at))return Fn(a.createPropertyAccessExpression(a.getGeneratedNameForNode(at.parent),a.createIdentifier("default")),Ce);if(eg(at)){let We=at.propertyName||at.name,si=a.getGeneratedNameForNode(((vt=(ye=at.parent)==null?void 0:ye.parent)==null?void 0:vt.parent)||at);return Fn(We.kind===11?a.createElementAccessExpression(si,a.cloneNode(We)):a.createPropertyAccessExpression(si,a.cloneNode(We)),Ce)}}}return Ce}function ui(Ce){if(D4(Ce.operatorToken.kind)&&Ai(Ce.left)&&(!Tm(Ce.left)||s5(Ce.left))&&!sI(Ce.left)){let ye=Ue(Ce.left);if(ye){let vt=Ce;for(let pe of ye)K[pp(vt)]=!0,vt=Tt(pe,vt,Ce);return vt}}return Ce}function Ue(Ce){if(Tm(Ce)){if(s5(Ce)){let ye=$?.exportSpecifiers.get(Ce);if(ye){let vt=[];for(let pe of ye)vt.push(pe.name);return vt}}}else{let ye=k.getReferencedImportDeclaration(Ce);if(ye)return $?.exportedBindings[rC(ye)];let vt=new Set,pe=k.getReferencedValueDeclarations(Ce);if(pe){for(let at of pe){let We=$?.exportedBindings[rC(at)];if(We)for(let si of We)vt.add(si)}if(vt.size)return tc(vt)}}}}var mBt={name:"typescript:dynamicimport-sync-require",scoped:!0,text:` + var __syncRequire = typeof module === "object" && typeof module.exports === "object";`};function g2e(t){let{factory:n,startLexicalEnvironment:a,endLexicalEnvironment:u,hoistVariableDeclaration:m}=t,g=t.getCompilerOptions(),v=t.getEmitResolver(),x=t.getEmitHost(),k=t.onSubstituteNode,T=t.onEmitNode;t.onSubstituteNode=Tt,t.onEmitNode=Ve,t.enableSubstitution(80),t.enableSubstitution(304),t.enableSubstitution(226),t.enableSubstitution(236),t.enableEmitNotification(307);let I=[],A=[],M=[],R=[],H,U,$,K,re,X,ne;return kN(t,se);function se(Ce){if(Ce.isDeclarationFile||!(u5(Ce,g)||Ce.transformFlags&8388608))return Ce;let ye=rC(Ce);H=Ce,X=Ce,U=I[ye]=tge(t,Ce),$=n.createUniqueName("exports"),A[ye]=$,K=R[ye]=n.createUniqueName("context");let vt=_e(U.externalImports),pe=ae(Ce,vt),at=n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,$),n.createParameterDeclaration(void 0,void 0,K)],void 0,pe),We=kee(n,Ce,x,g),si=n.createArrayLiteralExpression($i(vt,Ot=>Ot.name)),At=De(n.updateSourceFile(Ce,Fn(n.createNodeArray([n.createExpressionStatement(n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("System"),"register"),void 0,We?[We,si,at]:[si,at]))]),Ce.statements)),2048);return g.outFile||eW(At,pe,Ot=>!Ot.scoped),ne&&(M[ye]=ne,ne=void 0),H=void 0,U=void 0,$=void 0,K=void 0,re=void 0,X=void 0,At}function _e(Ce){let ye=new Map,vt=[];for(let pe of Ce){let at=_M(n,pe,H,x,v,g);if(at){let We=at.text,si=ye.get(We);si!==void 0?vt[si].externalImports.push(pe):(ye.set(We,vt.length),vt.push({name:at,externalImports:[pe]}))}}return vt}function ae(Ce,ye){let vt=[];a();let pe=d0(g,"alwaysStrict")||Mg(H),at=n.copyPrologue(Ce.statements,vt,pe,be);vt.push(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration("__moduleName",void 0,void 0,n.createLogicalAnd(K,n.createPropertyAccessExpression(K,"id")))]))),on(U.externalHelpersImportDeclaration,be,ll);let We=ts(Ce.statements,be,ll,at);Ho(vt,re),rv(vt,u());let si=le(vt),At=Ce.transformFlags&2097152?n.createModifiersFromModifierFlags(1024):void 0,Ot=n.createObjectLiteralExpression([n.createPropertyAssignment("setters",xe(si,ye)),n.createPropertyAssignment("execute",n.createFunctionExpression(At,void 0,void 0,void 0,[],void 0,n.createBlock(We,!0)))],!0);return vt.push(n.createReturnStatement(Ot)),n.createBlock(vt,!0)}function le(Ce){if(!U.hasExportStarsToExportValues)return;if(!En(U.exportedNames)&&U.exportedFunctions.size===0&&U.exportSpecifiers.size===0){let at=!1;for(let We of U.externalImports)if(We.kind===278&&We.exportClause){at=!0;break}if(!at){let We=Ee(void 0);return Ce.push(We),We.name}}let ye=[];if(U.exportedNames)for(let at of U.exportedNames)MC(at)||ye.push(n.createPropertyAssignment(n.createStringLiteralFromNode(at),n.createTrue()));for(let at of U.exportedFunctions)kc(at,2048)||(Se.assert(!!at.name),ye.push(n.createPropertyAssignment(n.createStringLiteralFromNode(at.name),n.createTrue())));let vt=n.createUniqueName("exportedNames");Ce.push(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(vt,void 0,void 0,n.createObjectLiteralExpression(ye,!0))])));let pe=Ee(vt);return Ce.push(pe),pe.name}function Ee(Ce){let ye=n.createUniqueName("exportStar"),vt=n.createIdentifier("m"),pe=n.createIdentifier("n"),at=n.createIdentifier("exports"),We=n.createStrictInequality(pe,n.createStringLiteral("default"));return Ce&&(We=n.createLogicalAnd(We,n.createLogicalNot(n.createCallExpression(n.createPropertyAccessExpression(Ce,"hasOwnProperty"),void 0,[pe])))),n.createFunctionDeclaration(void 0,void 0,ye,void 0,[n.createParameterDeclaration(void 0,void 0,vt)],void 0,n.createBlock([n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(at,void 0,void 0,n.createObjectLiteralExpression([]))])),n.createForInStatement(n.createVariableDeclarationList([n.createVariableDeclaration(pe)]),vt,n.createBlock([De(n.createIfStatement(We,n.createExpressionStatement(n.createAssignment(n.createElementAccessExpression(at,pe),n.createElementAccessExpression(vt,pe)))),1)])),n.createExpressionStatement(n.createCallExpression($,void 0,[at]))],!0))}function xe(Ce,ye){let vt=[];for(let pe of ye){let at=ee(pe.externalImports,At=>nF(n,At,H)),We=at?n.getGeneratedNameForNode(at):n.createUniqueName(""),si=[];for(let At of pe.externalImports){let Ot=nF(n,At,H);switch(At.kind){case 272:if(!At.importClause)break;case 271:Se.assert(Ot!==void 0),si.push(n.createExpressionStatement(n.createAssignment(Ot,We))),kc(At,32)&&si.push(n.createExpressionStatement(n.createCallExpression($,void 0,[n.createStringLiteral(Un(Ot)),We])));break;case 278:if(Se.assert(Ot!==void 0),At.exportClause)if(QT(At.exportClause)){let Fi=[];for(let Vn of At.exportClause.elements)Fi.push(n.createPropertyAssignment(n.createStringLiteral(Kw(Vn.name)),n.createElementAccessExpression(We,n.createStringLiteral(Kw(Vn.propertyName||Vn.name)))));si.push(n.createExpressionStatement(n.createCallExpression($,void 0,[n.createObjectLiteralExpression(Fi,!0)])))}else si.push(n.createExpressionStatement(n.createCallExpression($,void 0,[n.createStringLiteral(Kw(At.exportClause.name)),We])));else si.push(n.createExpressionStatement(n.createCallExpression(Ce,void 0,[We])));break}}vt.push(n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,We)],void 0,n.createBlock(si,!0)))}return n.createArrayLiteralExpression(vt,!0)}function be(Ce){switch(Ce.kind){case 272:return Le(Ce);case 271:return we(Ce);case 278:return fe(Ce);case 277:return Ae(Ce);default:return Bi(Ce)}}function Le(Ce){let ye;return Ce.importClause&&m(nF(n,Ce,H)),Hu(ft(ye,Ce))}function fe(Ce){Se.assertIsDefined(Ce)}function we(Ce){Se.assert(WS(Ce),"import= for internal module references should be handled in an earlier transformer.");let ye;return m(nF(n,Ce,H)),Hu(mt(ye,Ce))}function Ae(Ce){if(Ce.isExportEquals)return;let ye=on(Ce.expression,Mn,An);return pi(n.createIdentifier("default"),ye,!0)}function Ge(Ce){kc(Ce,32)?re=ar(re,n.updateFunctionDeclaration(Ce,ts(Ce.modifiers,St,Fm),Ce.asteriskToken,n.getDeclarationName(Ce,!0,!0),void 0,ts(Ce.parameters,Mn,Fl),void 0,on(Ce.body,Mn,qu))):re=ar(re,Fo(Ce,Mn,t)),re=Kt(re,Ce)}function he(Ce){let ye,vt=n.getLocalName(Ce);return m(vt),ye=ar(ye,Fn(n.createExpressionStatement(n.createAssignment(vt,Fn(n.createClassExpression(ts(Ce.modifiers,St,Fm),Ce.name,void 0,ts(Ce.heritageClauses,Mn,KC),ts(Ce.members,Mn,rl)),Ce))),Ce)),ye=Kt(ye,Ce),Hu(ye)}function Oe(Ce){if(!$e(Ce.declarationList))return on(Ce,Mn,ll);let ye;if(pj(Ce.declarationList)||q6(Ce.declarationList)){let vt=ts(Ce.modifiers,St,Fm),pe=[];for(let We of Ce.declarationList.declarations)pe.push(n.updateVariableDeclaration(We,n.getGeneratedNameForNode(We.name),void 0,void 0,Ke(We,!1)));let at=n.updateVariableDeclarationList(Ce.declarationList,pe);ye=ar(ye,n.updateVariableStatement(Ce,vt,at))}else{let vt,pe=kc(Ce,32);for(let at of Ce.declarationList.declarations)at.initializer?vt=ar(vt,Ke(at,pe)):Re(at);vt&&(ye=ar(ye,Fn(n.createExpressionStatement(n.inlineExpressions(vt)),Ce)))}return ye=ut(ye,Ce,!1),Hu(ye)}function Re(Ce){if(Uu(Ce.name))for(let ye of Ce.name.elements)Eh(ye)||Re(ye);else m(n.cloneNode(Ce.name))}function $e(Ce){return(N_(Ce)&4194304)===0&&(X.kind===307||(Gm(Ce).flags&7)===0)}function Ke(Ce,ye){let vt=ye?qe:rt;return Uu(Ce.name)?HU(Ce,Mn,t,0,!1,vt):Ce.initializer?vt(Ce.name,on(Ce.initializer,Mn,An)):Ce.name}function qe(Ce,ye,vt){return _t(Ce,ye,vt,!0)}function rt(Ce,ye,vt){return _t(Ce,ye,vt,!1)}function _t(Ce,ye,vt,pe){return m(n.cloneNode(Ce)),pe?wi(Ce,ui(Fn(n.createAssignment(Ce,ye),vt))):ui(Fn(n.createAssignment(Ce,ye),vt))}function ft(Ce,ye){if(U.exportEquals)return Ce;let vt=ye.importClause;if(!vt)return Ce;vt.name&&(Ce=ni(Ce,vt));let pe=vt.namedBindings;if(pe)switch(pe.kind){case 274:Ce=ni(Ce,pe);break;case 275:for(let at of pe.elements)Ce=ni(Ce,at);break}return Ce}function mt(Ce,ye){return U.exportEquals?Ce:ni(Ce,ye)}function ut(Ce,ye,vt){if(U.exportEquals)return Ce;for(let pe of ye.declarationList.declarations)(pe.initializer||vt)&&(Ce=ht(Ce,pe,vt));return Ce}function ht(Ce,ye,vt){if(U.exportEquals)return Ce;if(Uu(ye.name))for(let pe of ye.name.elements)Eh(pe)||(Ce=ht(Ce,pe,vt));else if(!Tm(ye.name)){let pe;vt&&(Ce=Ut(Ce,ye.name,n.getLocalName(ye)),pe=Un(ye.name)),Ce=ni(Ce,ye,pe)}return Ce}function Kt(Ce,ye){if(U.exportEquals)return Ce;let vt;if(kc(ye,32)){let pe=kc(ye,2048)?n.createStringLiteral("default"):ye.name;Ce=Ut(Ce,pe,n.getLocalName(ye)),vt=jC(pe)}return ye.name&&(Ce=ni(Ce,ye,vt)),Ce}function ni(Ce,ye,vt){if(U.exportEquals)return Ce;let pe=n.getDeclarationName(ye),at=U.exportSpecifiers.get(pe);if(at)for(let We of at)Kw(We.name)!==vt&&(Ce=Ut(Ce,We.name,pe));return Ce}function Ut(Ce,ye,vt,pe){return Ce=ar(Ce,pi(ye,vt,pe)),Ce}function pi(Ce,ye,vt){let pe=n.createExpressionStatement(wi(Ce,ye));return T1(pe),vt||De(pe,3072),pe}function wi(Ce,ye){let vt=Ai(Ce)?n.createStringLiteralFromNode(Ce):Ce;return De(ye,N_(ye)|3072),Xg(n.createCallExpression($,void 0,[vt,ye]),ye)}function Bi(Ce){switch(Ce.kind){case 243:return Oe(Ce);case 262:return Ge(Ce);case 263:return he(Ce);case 248:return Bn(Ce,!0);case 249:return mr(Ce);case 250:return Ei(Ce);case 246:return xr(Ce);case 247:return lo(Ce);case 256:return _r(Ce);case 254:return Hs(Ce);case 245:return ai(Ce);case 255:return mn(Ce);case 269:return Nn(Ce);case 296:return Gr(Ce);case 297:return ci(Ce);case 258:return gn(Ce);case 299:return Sr(Ce);case 241:return vo(Ce);default:return Mn(Ce)}}function Bn(Ce,ye){let vt=X;return X=Ce,Ce=n.updateForStatement(Ce,on(Ce.initializer,ye?zr:Qs,BT),on(Ce.condition,Mn,An),on(Ce.incrementor,Qs,An),E1(Ce.statement,ye?Bi:Mn,t)),X=vt,Ce}function mr(Ce){let ye=X;return X=Ce,Ce=n.updateForInStatement(Ce,zr(Ce.initializer),on(Ce.expression,Mn,An),E1(Ce.statement,Bi,t)),X=ye,Ce}function Ei(Ce){let ye=X;return X=Ce,Ce=n.updateForOfStatement(Ce,Ce.awaitModifier,zr(Ce.initializer),on(Ce.expression,Mn,An),E1(Ce.statement,Bi,t)),X=ye,Ce}function zn(Ce){return Xv(Ce)&&$e(Ce)}function zr(Ce){if(zn(Ce)){let ye;for(let vt of Ce.declarations)ye=ar(ye,Ke(vt,!1)),vt.initializer||Re(vt);return ye?n.inlineExpressions(ye):n.createOmittedExpression()}else return on(Ce,Qs,BT)}function xr(Ce){return n.updateDoStatement(Ce,E1(Ce.statement,Bi,t),on(Ce.expression,Mn,An))}function lo(Ce){return n.updateWhileStatement(Ce,on(Ce.expression,Mn,An),E1(Ce.statement,Bi,t))}function _r(Ce){return n.updateLabeledStatement(Ce,Ce.label,on(Ce.statement,Bi,ll,n.liftToBlock)??n.createExpressionStatement(n.createIdentifier("")))}function Hs(Ce){return n.updateWithStatement(Ce,on(Ce.expression,Mn,An),Se.checkDefined(on(Ce.statement,Bi,ll,n.liftToBlock)))}function ai(Ce){return n.updateIfStatement(Ce,on(Ce.expression,Mn,An),on(Ce.thenStatement,Bi,ll,n.liftToBlock)??n.createBlock([]),on(Ce.elseStatement,Bi,ll,n.liftToBlock))}function mn(Ce){return n.updateSwitchStatement(Ce,on(Ce.expression,Mn,An),Se.checkDefined(on(Ce.caseBlock,Bi,Wc)))}function Nn(Ce){let ye=X;return X=Ce,Ce=n.updateCaseBlock(Ce,ts(Ce.clauses,Bi,fl)),X=ye,Ce}function Gr(Ce){return n.updateCaseClause(Ce,on(Ce.expression,Mn,An),ts(Ce.statements,Bi,ll))}function ci(Ce){return Fo(Ce,Bi,t)}function gn(Ce){return Fo(Ce,Bi,t)}function Sr(Ce){let ye=X;return X=Ce,Ce=n.updateCatchClause(Ce,Ce.variableDeclaration,Se.checkDefined(on(Ce.block,Bi,qu))),X=ye,Ce}function vo(Ce){let ye=X;return X=Ce,Ce=Fo(Ce,Bi,t),X=ye,Ce}function $o(Ce,ye){if(!(Ce.transformFlags&276828160))return Ce;switch(Ce.kind){case 248:return Bn(Ce,!1);case 244:return Pi(Ce);case 217:return qi(Ce,ye);case 354:return lt(Ce,ye);case 226:if(z3(Ce))return nt(Ce,ye);break;case 213:if(Kx(Ce))return Xi(Ce);break;case 224:case 225:return Pe(Ce,ye)}return Fo(Ce,Mn,t)}function Mn(Ce){return $o(Ce,!1)}function Qs(Ce){return $o(Ce,!0)}function Pi(Ce){return n.updateExpressionStatement(Ce,on(Ce.expression,Qs,An))}function qi(Ce,ye){return n.updateParenthesizedExpression(Ce,on(Ce.expression,ye?Qs:Mn,An))}function lt(Ce,ye){return n.updatePartiallyEmittedExpression(Ce,on(Ce.expression,ye?Qs:Mn,An))}function Xi(Ce){let ye=_M(n,Ce,H,x,v,g),vt=on(Ed(Ce.arguments),Mn,An),pe=ye&&(!vt||!Kf(vt)||vt.text!==ye.text)?ye:vt;return n.createCallExpression(n.createPropertyAccessExpression(K,n.createIdentifier("import")),void 0,pe?[pe]:[])}function nt(Ce,ye){return Lt(Ce.left)?HU(Ce,Mn,t,0,!ye):Fo(Ce,Mn,t)}function Lt(Ce){if(Kg(Ce,!0))return Lt(Ce.left);if(yx(Ce))return Lt(Ce.expression);if(Ld(Ce))return En(Ce.properties,Lt);if(Yg(Ce))return En(Ce.elements,Lt);if(Q0(Ce))return Lt(Ce.name);if(Ih(Ce))return Lt(Ce.initializer);if(Ai(Ce)){let ye=v.getReferencedExportContainer(Ce);return ye!==void 0&&ye.kind===307}else return!1}function Pe(Ce,ye){if((Ce.operator===46||Ce.operator===47)&&Ai(Ce.operand)&&!Tm(Ce.operand)&&!sI(Ce.operand)&&!JZ(Ce.operand)){let vt=Ie(Ce.operand);if(vt){let pe,at=on(Ce.operand,Mn,An);z2(Ce)?at=n.updatePrefixUnaryExpression(Ce,at):(at=n.updatePostfixUnaryExpression(Ce,at),ye||(pe=n.createTempVariable(m),at=n.createAssignment(pe,at),Fn(at,Ce)),at=n.createComma(at,n.cloneNode(Ce.operand)),Fn(at,Ce));for(let We of vt)at=wi(We,ui(at));return pe&&(at=n.createComma(at,pe),Fn(at,Ce)),at}}return Fo(Ce,Mn,t)}function St(Ce){switch(Ce.kind){case 95:case 90:return}return Ce}function Ve(Ce,ye,vt){if(ye.kind===307){let pe=rC(ye);H=ye,U=I[pe],$=A[pe],ne=M[pe],K=R[pe],ne&&delete M[pe],T(Ce,ye,vt),H=void 0,U=void 0,$=void 0,K=void 0,ne=void 0}else T(Ce,ye,vt)}function Tt(Ce,ye){return ye=k(Ce,ye),Ue(ye)?ye:Ce===1?pt(ye):Ce===4?dt(ye):ye}function dt(Ce){switch(Ce.kind){case 304:return Wt(Ce)}return Ce}function Wt(Ce){var ye,vt;let pe=Ce.name;if(!Tm(pe)&&!sI(pe)){let at=v.getReferencedImportDeclaration(pe);if(at){if(Ym(at))return Fn(n.createPropertyAssignment(n.cloneNode(pe),n.createPropertyAccessExpression(n.getGeneratedNameForNode(at.parent),n.createIdentifier("default"))),Ce);if(eg(at)){let We=at.propertyName||at.name,si=n.getGeneratedNameForNode(((vt=(ye=at.parent)==null?void 0:ye.parent)==null?void 0:vt.parent)||at);return Fn(n.createPropertyAssignment(n.cloneNode(pe),We.kind===11?n.createElementAccessExpression(si,n.cloneNode(We)):n.createPropertyAccessExpression(si,n.cloneNode(We))),Ce)}}}return Ce}function pt(Ce){switch(Ce.kind){case 80:return Gt(Ce);case 226:return Mt(Ce);case 236:return hi(Ce)}return Ce}function Gt(Ce){var ye,vt;if(N_(Ce)&8192){let pe=wae(H);return pe?n.createPropertyAccessExpression(pe,Ce):Ce}if(!Tm(Ce)&&!sI(Ce)){let pe=v.getReferencedImportDeclaration(Ce);if(pe){if(Ym(pe))return Fn(n.createPropertyAccessExpression(n.getGeneratedNameForNode(pe.parent),n.createIdentifier("default")),Ce);if(eg(pe)){let at=pe.propertyName||pe.name,We=n.getGeneratedNameForNode(((vt=(ye=pe.parent)==null?void 0:ye.parent)==null?void 0:vt.parent)||pe);return Fn(at.kind===11?n.createElementAccessExpression(We,n.cloneNode(at)):n.createPropertyAccessExpression(We,n.cloneNode(at)),Ce)}}}return Ce}function Mt(Ce){if(D4(Ce.operatorToken.kind)&&Ai(Ce.left)&&(!Tm(Ce.left)||s5(Ce.left))&&!sI(Ce.left)){let ye=Ie(Ce.left);if(ye){let vt=Ce;for(let pe of ye)vt=wi(pe,ui(vt));return vt}}return Ce}function hi(Ce){return b4(Ce)?n.createPropertyAccessExpression(K,n.createIdentifier("meta")):Ce}function Ie(Ce){let ye,vt=Bt(Ce);if(vt){let pe=v.getReferencedExportContainer(Ce,!1);pe&&pe.kind===307&&(ye=ar(ye,n.getDeclarationName(vt))),ye=Ho(ye,U?.exportedBindings[rC(vt)])}else if(Tm(Ce)&&s5(Ce)){let pe=U?.exportSpecifiers.get(Ce);if(pe){let at=[];for(let We of pe)at.push(We.name);return at}}return ye}function Bt(Ce){if(!Tm(Ce)){let ye=v.getReferencedImportDeclaration(Ce);if(ye)return ye;let vt=v.getReferencedValueDeclaration(Ce);if(vt&&U?.exportedBindings[rC(vt)])return vt;let pe=v.getReferencedValueDeclarations(Ce);if(pe){for(let at of pe)if(at!==vt&&U?.exportedBindings[rC(at)])return at}return vt}}function ui(Ce){return ne===void 0&&(ne=[]),ne[pp(Ce)]=!0,Ce}function Ue(Ce){return ne&&Ce.id&&ne[Ce.id]}}function wFe(t){let{factory:n,getEmitHelperFactory:a}=t,u=t.getEmitHost(),m=t.getEmitResolver(),g=t.getCompilerOptions(),v=h_(g),x=t.onEmitNode,k=t.onSubstituteNode;t.onEmitNode=ne,t.onSubstituteNode=se,t.enableEmitNotification(307),t.enableSubstitution(80);let T,I,A;return kN(t,M);function M(ae){if(ae.isDeclarationFile)return ae;if(Mg(ae)||$E(g)){I=ae,A=void 0;let le=R(ae);return I=void 0,A&&(le=n.updateSourceFile(le,Fn(n.createNodeArray(Mpe(le.statements.slice(),A)),le.statements))),!Mg(ae)||b1(g)===200||En(le.statements,pZ)?le:n.updateSourceFile(le,Fn(n.createNodeArray([...le.statements,Cae(n)]),le.statements))}return ae}function R(ae){let le=EU(n,a(),ae,g);if(le){let Ee=[],xe=n.copyPrologue(ae.statements,Ee);return ar(Ee,le),Ho(Ee,ts(ae.statements,H,ll,xe)),n.updateSourceFile(ae,Fn(n.createNodeArray(Ee),ae.statements))}else return Fo(ae,H,t)}function H(ae){switch(ae.kind){case 271:return b1(g)>=100?$(ae):void 0;case 277:return re(ae);case 278:return X(ae)}return ae}function U(ae){let le=_M(n,ae,Se.checkDefined(I),u,m,g),Ee=[];if(le&&Ee.push(le),b1(g)===200)return n.createCallExpression(n.createIdentifier("require"),void 0,Ee);if(!A){let be=n.createUniqueName("_createRequire",48),Le=n.createImportDeclaration(void 0,n.createImportClause(!1,void 0,n.createNamedImports([n.createImportSpecifier(!1,n.createIdentifier("createRequire"),be)])),n.createStringLiteral("module"),void 0),fe=n.createUniqueName("__require",48),we=n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(fe,void 0,void 0,n.createCallExpression(n.cloneNode(be),void 0,[n.createPropertyAccessExpression(n.createMetaProperty(102,n.createIdentifier("meta")),n.createIdentifier("url"))]))],v>=2?2:0));A=[Le,we]}let xe=A[1].declarationList.declarations[0].name;return Se.assertNode(xe,Ai),n.createCallExpression(n.cloneNode(xe),void 0,Ee)}function $(ae){Se.assert(WS(ae),"import= for internal module references should be handled in an earlier transformer.");let le;return le=ar(le,Wo(Fn(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(n.cloneNode(ae.name),void 0,void 0,U(ae))],v>=2?2:0)),ae),ae)),le=K(le,ae),Hu(le)}function K(ae,le){return kc(le,32)&&(ae=ar(ae,n.createExportDeclaration(void 0,le.isTypeOnly,n.createNamedExports([n.createExportSpecifier(!1,void 0,Un(le.name))])))),ae}function re(ae){return ae.isExportEquals?b1(g)===200?Wo(n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("module"),"exports"),ae.expression)),ae):void 0:ae}function X(ae){if(g.module!==void 0&&g.module>5||!ae.exportClause||!vm(ae.exportClause)||!ae.moduleSpecifier)return ae;let le=ae.exportClause.name,Ee=n.getGeneratedNameForNode(le),xe=n.createImportDeclaration(void 0,n.createImportClause(!1,void 0,n.createNamespaceImport(Ee)),ae.moduleSpecifier,ae.attributes);Wo(xe,ae.exportClause);let be=ise(ae)?n.createExportDefault(Ee):n.createExportDeclaration(void 0,!1,n.createNamedExports([n.createExportSpecifier(!1,Ee,le)]));return Wo(be,ae),[xe,be]}function ne(ae,le,Ee){ul(le)?((Mg(le)||$E(g))&&g.importHelpers&&(T=new Map),x(ae,le,Ee),T=void 0):x(ae,le,Ee)}function se(ae,le){return le=k(ae,le),T&&Ai(le)&&N_(le)&8192?_e(le):le}function _e(ae){let le=Un(ae),Ee=T.get(le);return Ee||T.set(le,Ee=n.createUniqueName(le,48)),Ee}}function y2e(t){let n=t.onSubstituteNode,a=t.onEmitNode,u=wFe(t),m=t.onSubstituteNode,g=t.onEmitNode;t.onSubstituteNode=n,t.onEmitNode=a;let v=_ce(t),x=t.onSubstituteNode,k=t.onEmitNode,T=K=>t.getEmitHost().getEmitModuleFormatOfFile(K);t.onSubstituteNode=A,t.onEmitNode=M,t.enableSubstitution(307),t.enableEmitNotification(307);let I;return U;function A(K,re){return ul(re)?(I=re,n(K,re)):I?T(I)>=5?m(K,re):x(K,re):n(K,re)}function M(K,re,X){return ul(re)&&(I=re),I?T(I)>=5?g(K,re,X):k(K,re,X):a(K,re,X)}function R(K){return T(K)>=5?u:v}function H(K){if(K.isDeclarationFile)return K;I=K;let re=R(K)(K);return I=void 0,Se.assert(ul(re)),re}function U(K){return K.kind===307?H(K):$(K)}function $(K){return t.factory.createBundle($i(K.sourceFiles,H))}}function uge(t){return $c(t)||vu(t)||hx(t)||Zd(t)||Gw(t)||oN(t)||db(t)||xg(t)||Sg(t)||sT(t)||fp(t)||Fl(t)||Yp(t)||$C(t)||pf(t)||k1(t)||yl(t)||nu(t)||ba(t)||T_(t)||ms(t)||ux(t)}function v2e(t){if(Gw(t)||oN(t))return n;return sT(t)||Sg(t)?u:lF(t);function n(g){let v=a(g);return v!==void 0?{diagnosticMessage:v,errorNode:t,typeName:t.name}:void 0}function a(g){return Xd(t)?g.errorModuleName?g.accessibility===2?j.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:j.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:j.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:t.parent.kind===263?g.errorModuleName?g.accessibility===2?j.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:j.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:j.Public_property_0_of_exported_class_has_or_is_using_private_name_1:g.errorModuleName?j.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:j.Property_0_of_exported_interface_has_or_is_using_private_name_1}function u(g){let v=m(g);return v!==void 0?{diagnosticMessage:v,errorNode:t,typeName:t.name}:void 0}function m(g){return Xd(t)?g.errorModuleName?g.accessibility===2?j.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:j.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:j.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:t.parent.kind===263?g.errorModuleName?g.accessibility===2?j.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:j.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:j.Public_method_0_of_exported_class_has_or_is_using_private_name_1:g.errorModuleName?j.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:j.Method_0_of_exported_interface_has_or_is_using_private_name_1}}function lF(t){if($c(t)||vu(t)||hx(t)||ba(t)||T_(t)||ms(t)||Zd(t)||yl(t))return a;return Gw(t)||oN(t)?u:db(t)||xg(t)||Sg(t)||sT(t)||fp(t)||nu(t)?m:Fl(t)?OC(t,t.parent)&&kc(t.parent,2)?a:g:Yp(t)?x:$C(t)?k:pf(t)?T:k1(t)||ux(t)?I:Se.assertNever(t,`Attempted to set a declaration diagnostic context for unhandled node kind: ${Se.formatSyntaxKind(t.kind)}`);function n(A){if(t.kind===260||t.kind===208)return A.errorModuleName?A.accessibility===2?j.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:j.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:j.Exported_variable_0_has_or_is_using_private_name_1;if(t.kind===172||t.kind===211||t.kind===212||t.kind===226||t.kind===171||t.kind===169&&kc(t.parent,2))return Xd(t)?A.errorModuleName?A.accessibility===2?j.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:j.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:j.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:t.parent.kind===263||t.kind===169?A.errorModuleName?A.accessibility===2?j.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:j.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:j.Public_property_0_of_exported_class_has_or_is_using_private_name_1:A.errorModuleName?j.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:j.Property_0_of_exported_interface_has_or_is_using_private_name_1}function a(A){let M=n(A);return M!==void 0?{diagnosticMessage:M,errorNode:t,typeName:t.name}:void 0}function u(A){let M;return t.kind===178?Xd(t)?M=A.errorModuleName?j.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:j.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:M=A.errorModuleName?j.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:j.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:Xd(t)?M=A.errorModuleName?A.accessibility===2?j.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:j.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:j.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:M=A.errorModuleName?A.accessibility===2?j.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:j.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:j.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:M,errorNode:t.name,typeName:t.name}}function m(A){let M;switch(t.kind){case 180:M=A.errorModuleName?j.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:j.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 179:M=A.errorModuleName?j.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:j.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 181:M=A.errorModuleName?j.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:j.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 174:case 173:Xd(t)?M=A.errorModuleName?A.accessibility===2?j.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:j.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:j.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:t.parent.kind===263?M=A.errorModuleName?A.accessibility===2?j.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:j.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:j.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:M=A.errorModuleName?j.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:j.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 262:M=A.errorModuleName?A.accessibility===2?j.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:j.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:j.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return Se.fail("This is unknown kind for signature: "+t.kind)}return{diagnosticMessage:M,errorNode:t.name||t}}function g(A){let M=v(A);return M!==void 0?{diagnosticMessage:M,errorNode:t,typeName:t.name}:void 0}function v(A){switch(t.parent.kind){case 176:return A.errorModuleName?A.accessibility===2?j.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:j.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:j.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 180:case 185:return A.errorModuleName?j.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:j.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 179:return A.errorModuleName?j.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:j.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 181:return A.errorModuleName?j.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:j.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 174:case 173:return Xd(t.parent)?A.errorModuleName?A.accessibility===2?j.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:j.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:j.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t.parent.parent.kind===263?A.errorModuleName?A.accessibility===2?j.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:j.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:j.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:A.errorModuleName?j.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:j.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 262:case 184:return A.errorModuleName?A.accessibility===2?j.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:j.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:j.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 178:case 177:return A.errorModuleName?A.accessibility===2?j.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:j.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:j.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return Se.fail(`Unknown parent for parameter: ${Se.formatSyntaxKind(t.parent.kind)}`)}}function x(){let A;switch(t.parent.kind){case 263:A=j.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 264:A=j.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 200:A=j.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 185:case 180:A=j.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 179:A=j.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 174:case 173:Xd(t.parent)?A=j.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t.parent.parent.kind===263?A=j.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:A=j.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 184:case 262:A=j.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 195:A=j.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 265:A=j.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return Se.fail("This is unknown parent for type parameter: "+t.parent.kind)}return{diagnosticMessage:A,errorNode:t,typeName:t.name}}function k(){let A;return D0(t.parent.parent)?A=KC(t.parent)&&t.parent.token===119?j.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:t.parent.parent.name?j.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:j.extends_clause_of_exported_class_has_or_is_using_private_name_0:A=j.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:A,errorNode:t,typeName:Nu(t.parent.parent)}}function T(){return{diagnosticMessage:j.Import_declaration_0_is_using_private_name_1,errorNode:t,typeName:t.name}}function I(A){return{diagnosticMessage:A.errorModuleName?j.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:j.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:ux(t)?Se.checkDefined(t.typeExpression):t.type,typeName:ux(t)?Nu(t):t.name}}}function b2e(t){let n={219:j.Add_a_return_type_to_the_function_expression,218:j.Add_a_return_type_to_the_function_expression,174:j.Add_a_return_type_to_the_method,177:j.Add_a_return_type_to_the_get_accessor_declaration,178:j.Add_a_type_to_parameter_of_the_set_accessor_declaration,262:j.Add_a_return_type_to_the_function_declaration,180:j.Add_a_return_type_to_the_function_declaration,169:j.Add_a_type_annotation_to_the_parameter_0,260:j.Add_a_type_annotation_to_the_variable_0,172:j.Add_a_type_annotation_to_the_property_0,171:j.Add_a_type_annotation_to_the_property_0,277:j.Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it},a={218:j.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,262:j.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,219:j.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,174:j.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,180:j.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,177:j.At_least_one_accessor_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,178:j.At_least_one_accessor_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,169:j.Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations,260:j.Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations,172:j.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations,171:j.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations,167:j.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations,305:j.Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations,304:j.Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations,209:j.Only_const_arrays_can_be_inferred_with_isolatedDeclarations,277:j.Default_exports_can_t_be_inferred_with_isolatedDeclarations,230:j.Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations};return u;function u($){if(go($,KC))return ws($,j.Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations);if((jA($)||C1($.parent))&&(tb($)||Dp($)))return H($);switch(Se.type($),$.kind){case 177:case 178:return g($);case 167:case 304:case 305:return x($);case 209:case 230:return k($);case 174:case 180:case 218:case 219:case 262:return T($);case 208:return I($);case 172:case 260:return A($);case 169:return M($);case 303:return U($.initializer);case 231:return R($);default:return U($)}}function m($){let K=go($,re=>Bm(re)||ll(re)||$c(re)||vu(re)||Fl(re));if(K)return Bm(K)?K:fm(K)?go(K,re=>Rp(re)&&!yl(re)):ll(K)?void 0:K}function g($){let{getAccessor:K,setAccessor:re}=j2($.symbol.declarations,$),X=(Gw($)?$.parameters[0]:$)??$,ne=ws(X,a[$.kind]);return re&&Pd(ne,ws(re,n[re.kind])),K&&Pd(ne,ws(K,n[K.kind])),ne}function v($,K){let re=m($);if(re){let X=Bm(re)||!re.name?"":_h(re.name,!1);Pd(K,ws(re,n[re.kind],X))}return K}function x($){let K=ws($,a[$.kind]);return v($,K),K}function k($){let K=ws($,a[$.kind]);return v($,K),K}function T($){let K=ws($,a[$.kind]);return v($,K),Pd(K,ws($,n[$.kind])),K}function I($){return ws($,j.Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations)}function A($){let K=ws($,a[$.kind]),re=_h($.name,!1);return Pd(K,ws($,n[$.kind],re)),K}function M($){if(Gw($.parent))return g($.parent);let K=t.requiresAddingImplicitUndefined($,void 0);if(!K&&$.initializer)return U($.initializer);let re=K?j.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_it_s_type_This_is_not_supported_with_isolatedDeclarations:a[$.kind],X=ws($,re),ne=_h($.name,!1);return Pd(X,ws($,n[$.kind],ne)),X}function R($){return U($,j.Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations)}function H($){let K=ws($,j.Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations,_h($,!1));return v($,K),K}function U($,K){let re=m($),X;if(re){let ne=Bm(re)||!re.name?"":_h(re.name,!1),se=go($.parent,_e=>Bm(_e)||(ll(_e)?"quit":!Tu(_e)&&!A4(_e)&&!SU(_e)));re===se?(X=ws($,K??a[re.kind]),Pd(X,ws(re,n[re.kind],ne))):(X=ws($,K??j.Expression_type_can_t_be_inferred_with_isolatedDeclarations),Pd(X,ws(re,n[re.kind],ne)),Pd(X,ws($,j.Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit)))}else X=ws($,K??j.Expression_type_can_t_be_inferred_with_isolatedDeclarations);return X}}function dge(t,n,a){let u=t.getCompilerOptions(),m=Qn(WZ(t,a),WA);return dr(m,a)?pge(n,t,Me,u,[a],[pce],!1).diagnostics:void 0}var fge=531469,Zee=8;function pce(t){let n=()=>Se.fail("Diagnostic emitted without context"),a=n,u=!0,m=!1,g=!1,v=!1,x=!1,k,T,I,A,{factory:M}=t,R=t.getEmitHost(),H={trackSymbol:fe,reportInaccessibleThisError:Oe,reportInaccessibleUniqueSymbolError:Ge,reportCyclicStructureError:he,reportPrivateInBaseOfClassExpression:we,reportLikelyUnsafeImportRequiredError:Re,reportTruncationError:$e,moduleResolverHost:R,reportNonlocalAugmentation:Ke,reportNonSerializableProperty:qe,reportInferenceFallback:be},U,$,K,re,X,ne,se=t.getEmitResolver(),_e=t.getCompilerOptions(),ae=b2e(se),{stripInternal:le,isolatedDeclarations:Ee}=_e;return _t;function xe(Pe){se.getPropertiesOfContainerFunction(Pe).forEach(St=>{if(B5(St.valueDeclaration)){let Ve=ms(St.valueDeclaration)?St.valueDeclaration.left:St.valueDeclaration;t.addDiagnostic(ws(Ve,j.Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function))}})}function be(Pe){!Ee||$v(K)||Vo(Pe)===K&&($c(Pe)&&se.isExpandoFunctionDeclaration(Pe)?xe(Pe):t.addDiagnostic(ae(Pe)))}function Le(Pe){if(Pe.accessibility===0){if(Pe.aliasesToMakeVisible)if(!T)T=Pe.aliasesToMakeVisible;else for(let St of Pe.aliasesToMakeVisible)Xu(T,St)}else if(Pe.accessibility!==3){let St=a(Pe);if(St)return St.typeName?t.addDiagnostic(ws(Pe.errorNode||St.errorNode,St.diagnosticMessage,_h(St.typeName),Pe.errorSymbolName,Pe.errorModuleName)):t.addDiagnostic(ws(Pe.errorNode||St.errorNode,St.diagnosticMessage,Pe.errorSymbolName,Pe.errorModuleName)),!0}return!1}function fe(Pe,St,Ve){return Pe.flags&262144?!1:Le(se.isSymbolAccessible(Pe,St,Ve,!0))}function we(Pe){(U||$)&&t.addDiagnostic(Pd(ws(U||$,j.Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected,Pe),...$c((U||$).parent)?[ws(U||$,j.Add_a_type_annotation_to_the_variable_0,Ae())]:[]))}function Ae(){return U?Gf(U):$&&Nu($)?Gf(Nu($)):$&&Bm($)?$.isExportEquals?"export=":"default":"(Missing)"}function Ge(){(U||$)&&t.addDiagnostic(ws(U||$,j.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,Ae(),"unique symbol"))}function he(){(U||$)&&t.addDiagnostic(ws(U||$,j.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,Ae()))}function Oe(){(U||$)&&t.addDiagnostic(ws(U||$,j.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,Ae(),"this"))}function Re(Pe){(U||$)&&t.addDiagnostic(ws(U||$,j.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,Ae(),Pe))}function $e(){(U||$)&&t.addDiagnostic(ws(U||$,j.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function Ke(Pe,St,Ve){var Tt;let dt=(Tt=St.declarations)==null?void 0:Tt.find(pt=>Vo(pt)===Pe),Wt=Qn(Ve.declarations,pt=>Vo(pt)!==Pe);if(dt&&Wt)for(let pt of Wt)t.addDiagnostic(Pd(ws(pt,j.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),ws(dt,j.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}function qe(Pe){(U||$)&&t.addDiagnostic(ws(U||$,j.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,Pe))}function rt(Pe){let St=a;a=Tt=>Tt.errorNode&&uge(Tt.errorNode)?lF(Tt.errorNode)(Tt):{diagnosticMessage:Tt.errorModuleName?j.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:j.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:Tt.errorNode||Pe};let Ve=se.getDeclarationStatementsForSourceFile(Pe,fge,Zee,H);return a=St,Ve}function _t(Pe){if(Pe.kind===307&&Pe.isDeclarationFile)return Pe;if(Pe.kind===308){m=!0,re=[],X=[],ne=[];let Mt=!1,hi=M.createBundle($i(Pe.sourceFiles,Bt=>{if(Bt.isDeclarationFile)return;if(Mt=Mt||Bt.hasNoDefaultLib,K=Bt,k=Bt,T=void 0,A=!1,I=new Map,a=n,v=!1,x=!1,Tt(Bt),Jv(Bt)||qv(Bt)){g=!1,u=!1;let Ue=$v(Bt)?M.createNodeArray(rt(Bt)):ts(Bt.statements,Nn,ll);return M.updateSourceFile(Bt,[M.createModuleDeclaration([M.createModifier(138)],M.createStringLiteral(Zw(t.getEmitHost(),Bt)),M.createModuleBlock(Fn(M.createNodeArray(Hs(Ue)),Bt.statements)))],!0,[],[],!1,[])}u=!0;let ui=$v(Bt)?M.createNodeArray(rt(Bt)):ts(Bt.statements,Nn,ll);return M.updateSourceFile(Bt,Hs(ui),!0,[],[],!1,[])})),Ie=Cc(Ch(a9(Pe,R,!0).declarationFilePath));return hi.syntheticFileReferences=Gt(Ie),hi.syntheticTypeReferences=Wt(),hi.syntheticLibReferences=pt(),hi.hasNoDefaultLib=Mt,hi}u=!0,v=!1,x=!1,k=Pe,K=Pe,a=n,m=!1,g=!1,A=!1,T=void 0,I=new Map,re=[],X=[],ne=[],Tt(K);let St;if($v(K))St=M.createNodeArray(rt(Pe));else{let Mt=ts(Pe.statements,Nn,ll);St=Fn(M.createNodeArray(Hs(Mt)),Pe.statements),Mg(Pe)&&(!g||v&&!x)&&(St=Fn(M.createNodeArray([...St,Cae(M)]),St))}let Ve=Cc(Ch(a9(Pe,R,!0).declarationFilePath));return M.updateSourceFile(Pe,St,!0,Gt(Ve),Wt(),Pe.hasNoDefaultLib,pt());function Tt(Mt){re=Pl(re,$i(Mt.referencedFiles,hi=>[Mt,hi])),X=Pl(X,Mt.typeReferenceDirectives),ne=Pl(ne,Mt.libReferenceDirectives)}function dt(Mt){let hi={...Mt};return hi.pos=-1,hi.end=-1,hi}function Wt(){return Dc(X,Mt=>{if(Mt.preserve)return dt(Mt)})}function pt(){return Dc(ne,Mt=>{if(Mt.preserve)return dt(Mt)})}function Gt(Mt){return Dc(re,([hi,Ie])=>{if(!Ie.preserve)return;let Bt=R.getSourceFileFromReference(hi,Ie);if(!Bt)return;let ui;if(Bt.isDeclarationFile)ui=Bt.fileName;else{if(m&&dr(Pe.sourceFiles,Bt))return;let ye=a9(Bt,R,!0);ui=ye.declarationFilePath||ye.jsFilePath||Bt.fileName}if(!ui)return;let Ue=uH(Mt,ui,R.getCurrentDirectory(),R.getCanonicalFileName,!1),Ce=dt(Ie);return Ce.fileName=Ue,Ce})}}function ft(Pe){if(Pe.kind===80)return Pe;return Pe.kind===207?M.updateArrayBindingPattern(Pe,ts(Pe.elements,St,Em)):M.updateObjectBindingPattern(Pe,ts(Pe.elements,St,Zd));function St(Ve){return Ve.kind===232?Ve:(Ve.propertyName&&f_(Ve.propertyName)&&Dp(Ve.propertyName.expression)&&Ei(Ve.propertyName.expression,k),M.updateBindingElement(Ve,Ve.dotDotDotToken,Ve.propertyName,ft(Ve.name),void 0))}}function mt(Pe,St,Ve){let Tt;A||(Tt=a,a=lF(Pe));let dt=M.updateParameterDeclaration(Pe,S2e(M,Pe,St),Pe.dotDotDotToken,ft(Pe.name),se.isOptionalParameter(Pe)?Pe.questionToken||M.createToken(58):void 0,Kt(Pe,Ve||Pe.type,!0),ht(Pe));return A||(a=Tt),dt}function ut(Pe){return EFe(Pe)&&!!Pe.initializer&&se.isLiteralConstDeclaration(ju(Pe))}function ht(Pe){if(ut(Pe)){let St=Awe(Pe.initializer);return tM(St)||be(Pe),se.createLiteralConstValue(ju(Pe,EFe),H)}}function Kt(Pe,St,Ve){if(!Ve&&zC(Pe,2)||ut(Pe))return;let Tt=Pe.kind===169&&se.requiresAddingImplicitUndefined(Pe,k);if(St&&!Tt)return on(St,ai,Qa);U=Pe.name;let dt;A||(dt=a,a=lF(Pe));let Wt;switch(Pe.kind){case 169:case 171:case 172:case 208:case 260:Wt=se.createTypeOfDeclaration(Pe,k,fge,Zee,H);break;case 262:case 180:case 173:case 174:case 177:case 179:Wt=se.createReturnTypeOfSignatureDeclaration(Pe,k,fge,Zee,H);break;default:Se.assertNever(Pe)}return U=void 0,A||(a=dt),Wt??M.createKeywordTypeNode(133)}function ni(Pe){switch(Pe=ju(Pe),Pe.kind){case 262:case 267:case 264:case 263:case 265:case 266:return!se.isDeclarationVisible(Pe);case 260:return!pi(Pe);case 271:case 272:case 278:case 277:return!1;case 175:return!0}return!1}function Ut(Pe){var St;if(Pe.body)return!0;let Ve=(St=Pe.symbol.declarations)==null?void 0:St.filter(Tt=>fp(Tt)&&!Tt.body);return!Ve||Ve.indexOf(Pe)===Ve.length-1}function pi(Pe){return Eh(Pe)?!1:Uu(Pe.name)?En(Pe.name.elements,pi):se.isDeclarationVisible(Pe)}function wi(Pe,St,Ve){if(zC(Pe,2))return M.createNodeArray();let Tt=$i(St,dt=>mt(dt,Ve));return Tt?M.createNodeArray(Tt,St.hasTrailingComma):M.createNodeArray()}function Bi(Pe,St){let Ve;if(!St){let Tt=R3(Pe);Tt&&(Ve=[mt(Tt)])}if(zc(Pe)){let Tt;if(!St){let dt=w5(Pe);if(dt){let Wt=nt(Pe,j2(Ld(Pe.parent)?Pe.parent.properties:Pe.parent.members,Pe));Tt=mt(dt,void 0,Wt)}}Tt||(Tt=M.createParameterDeclaration(void 0,void 0,"value")),Ve=ar(Ve,Tt)}return M.createNodeArray(Ve||F)}function Bn(Pe,St){return zC(Pe,2)?void 0:ts(St,ai,Yp)}function mr(Pe){return ul(Pe)||k1(Pe)||Dh(Pe)||D0(Pe)||ky(Pe)||iu(Pe)||nu(Pe)||K8(Pe)}function Ei(Pe,St){let Ve=se.isEntityNameVisible(Pe,St);Le(Ve)}function zn(Pe,St){return Gx(Pe)&&Gx(St)&&(Pe.jsDoc=St.jsDoc),Xg(Pe,Nv(St))}function zr(Pe,St){if(St){if(g=g||Pe.kind!==267&&Pe.kind!==205,i_(St)&&m){let Ve=HH(t.getEmitHost(),se,Pe);if(Ve)return M.createStringLiteral(Ve)}return St}}function xr(Pe){if(se.isDeclarationVisible(Pe))if(Pe.moduleReference.kind===283){let St=Sj(Pe);return M.updateImportEqualsDeclaration(Pe,Pe.modifiers,Pe.isTypeOnly,Pe.name,M.updateExternalModuleReference(Pe.moduleReference,zr(Pe,St)))}else{let St=a;return a=lF(Pe),Ei(Pe.moduleReference,k),a=St,Pe}}function lo(Pe){if(!Pe.importClause)return M.updateImportDeclaration(Pe,Pe.modifiers,Pe.importClause,zr(Pe,Pe.moduleSpecifier),_r(Pe.attributes));let St=Pe.importClause&&Pe.importClause.name&&se.isDeclarationVisible(Pe.importClause)?Pe.importClause.name:void 0;if(!Pe.importClause.namedBindings)return St&&M.updateImportDeclaration(Pe,Pe.modifiers,M.updateImportClause(Pe.importClause,Pe.importClause.isTypeOnly,St,void 0),zr(Pe,Pe.moduleSpecifier),_r(Pe.attributes));if(Pe.importClause.namedBindings.kind===274){let Tt=se.isDeclarationVisible(Pe.importClause.namedBindings)?Pe.importClause.namedBindings:void 0;return St||Tt?M.updateImportDeclaration(Pe,Pe.modifiers,M.updateImportClause(Pe.importClause,Pe.importClause.isTypeOnly,St,Tt),zr(Pe,Pe.moduleSpecifier),_r(Pe.attributes)):void 0}let Ve=Dc(Pe.importClause.namedBindings.elements,Tt=>se.isDeclarationVisible(Tt)?Tt:void 0);if(Ve&&Ve.length||St)return M.updateImportDeclaration(Pe,Pe.modifiers,M.updateImportClause(Pe.importClause,Pe.importClause.isTypeOnly,St,Ve&&Ve.length?M.updateNamedImports(Pe.importClause.namedBindings,Ve):void 0),zr(Pe,Pe.moduleSpecifier),_r(Pe.attributes));if(se.isImportRequiredByAugmentation(Pe))return Ee&&t.addDiagnostic(ws(Pe,j.Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations)),M.updateImportDeclaration(Pe,Pe.modifiers,void 0,zr(Pe,Pe.moduleSpecifier),_r(Pe.attributes))}function _r(Pe){let St=LW(Pe);return Pe&&St!==void 0?Pe:void 0}function Hs(Pe){for(;Z(T);){let Ve=T.shift();if(!cse(Ve))return Se.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${Se.formatSyntaxKind(Ve.kind)}`);let Tt=u;u=Ve.parent&&ul(Ve.parent)&&!(Mg(Ve.parent)&&m);let dt=gn(Ve);u=Tt,I.set(rC(Ve),dt)}return ts(Pe,St,ll);function St(Ve){if(cse(Ve)){let Tt=rC(Ve);if(I.has(Tt)){let dt=I.get(Tt);return I.delete(Tt),dt&&((ua(dt)?En(dt,Koe):Koe(dt))&&(v=!0),ul(Ve.parent)&&(ua(dt)?En(dt,pZ):pZ(dt))&&(g=!0)),dt}}return Ve}}function ai(Pe){if(Qs(Pe))return;if(y1(Pe)){if(ni(Pe))return;if(HA(Pe)){if(Ee){if(!se.isDefinitelyReferenceToGlobalSymbolObject(Pe.name.expression)){if(D0(Pe.parent)||Ld(Pe.parent)){t.addDiagnostic(ws(Pe,j.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations));return}else if((ky(Pe.parent)||Im(Pe.parent))&&!Dp(Pe.name.expression)){t.addDiagnostic(ws(Pe,j.Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations));return}}}else if(!se.isLateBound(ju(Pe))||!Dp(Pe.name.expression))return}}if(iu(Pe)&&se.isImplementationOfOverload(Pe)||L4(Pe))return;let St;mr(Pe)&&(St=k,k=Pe);let Ve=a,Tt=uge(Pe),dt=A,Wt=(Pe.kind===187||Pe.kind===200)&&Pe.parent.kind!==265;if((Sg(Pe)||sT(Pe))&&zC(Pe,2))return Pe.symbol&&Pe.symbol.declarations&&Pe.symbol.declarations[0]!==Pe?void 0:pt(M.createPropertyDeclaration(lt(Pe),Pe.name,void 0,void 0,void 0));if(Tt&&!A&&(a=lF(Pe)),C1(Pe)&&Ei(Pe.exprName,k),Wt&&(A=!0),_ge(Pe))switch(Pe.kind){case 233:{(tb(Pe.expression)||Dp(Pe.expression))&&Ei(Pe.expression,k);let Gt=Fo(Pe,ai,t);return pt(M.updateExpressionWithTypeArguments(Gt,Gt.expression,Gt.typeArguments))}case 183:{Ei(Pe.typeName,k);let Gt=Fo(Pe,ai,t);return pt(M.updateTypeReferenceNode(Gt,Gt.typeName,Gt.typeArguments))}case 180:return pt(M.updateConstructSignature(Pe,Bn(Pe,Pe.typeParameters),wi(Pe,Pe.parameters),Kt(Pe,Pe.type)));case 176:{let Gt=M.createConstructorDeclaration(lt(Pe),wi(Pe,Pe.parameters,0),void 0);return pt(Gt)}case 174:{if(wl(Pe.name))return pt(void 0);let Gt=M.createMethodDeclaration(lt(Pe),void 0,Pe.name,Pe.questionToken,Bn(Pe,Pe.typeParameters),wi(Pe,Pe.parameters),Kt(Pe,Pe.type),void 0);return pt(Gt)}case 177:{if(wl(Pe.name))return pt(void 0);let Gt=nt(Pe,j2(Ld(Pe.parent)?Pe.parent.properties:Pe.parent.members,Pe));return pt(M.updateGetAccessorDeclaration(Pe,lt(Pe),Pe.name,Bi(Pe,zC(Pe,2)),Kt(Pe,Gt),void 0))}case 178:return wl(Pe.name)?pt(void 0):pt(M.updateSetAccessorDeclaration(Pe,lt(Pe),Pe.name,Bi(Pe,zC(Pe,2)),void 0));case 172:return wl(Pe.name)?pt(void 0):pt(M.updatePropertyDeclaration(Pe,lt(Pe),Pe.name,Pe.questionToken,Kt(Pe,Pe.type),ht(Pe)));case 171:return wl(Pe.name)?pt(void 0):pt(M.updatePropertySignature(Pe,lt(Pe),Pe.name,Pe.questionToken,Kt(Pe,Pe.type)));case 173:return wl(Pe.name)?pt(void 0):pt(M.updateMethodSignature(Pe,lt(Pe),Pe.name,Pe.questionToken,Bn(Pe,Pe.typeParameters),wi(Pe,Pe.parameters),Kt(Pe,Pe.type)));case 179:return pt(M.updateCallSignature(Pe,Bn(Pe,Pe.typeParameters),wi(Pe,Pe.parameters),Kt(Pe,Pe.type)));case 181:return pt(M.updateIndexSignature(Pe,lt(Pe),wi(Pe,Pe.parameters),on(Pe.type,ai,Qa)||M.createKeywordTypeNode(133)));case 260:return Uu(Pe.name)?vo(Pe.name):(Wt=!0,A=!0,pt(M.updateVariableDeclaration(Pe,Pe.name,void 0,Kt(Pe,Pe.type),ht(Pe))));case 168:return mn(Pe)&&(Pe.default||Pe.constraint)?pt(M.updateTypeParameterDeclaration(Pe,Pe.modifiers,Pe.name,void 0,void 0)):pt(Fo(Pe,ai,t));case 194:{let Gt=on(Pe.checkType,ai,Qa),Mt=on(Pe.extendsType,ai,Qa),hi=k;k=Pe.trueType;let Ie=on(Pe.trueType,ai,Qa);k=hi;let Bt=on(Pe.falseType,ai,Qa);return Se.assert(Gt),Se.assert(Mt),Se.assert(Ie),Se.assert(Bt),pt(M.updateConditionalTypeNode(Pe,Gt,Mt,Ie,Bt))}case 184:return pt(M.updateFunctionTypeNode(Pe,ts(Pe.typeParameters,ai,Yp),wi(Pe,Pe.parameters),Se.checkDefined(on(Pe.type,ai,Qa))));case 185:return pt(M.updateConstructorTypeNode(Pe,lt(Pe),ts(Pe.typeParameters,ai,Yp),wi(Pe,Pe.parameters),Se.checkDefined(on(Pe.type,ai,Qa))));case 205:return Wy(Pe)?pt(M.updateImportTypeNode(Pe,M.updateLiteralTypeNode(Pe.argument,zr(Pe,Pe.argument.literal)),Pe.attributes,Pe.qualifier,ts(Pe.typeArguments,ai,Qa),Pe.isTypeOf)):pt(Pe);default:Se.assertNever(Pe,`Attempted to process unhandled node kind: ${Se.formatSyntaxKind(Pe.kind)}`)}return G8(Pe)&&Df(K,Pe.pos).line===Df(K,Pe.end).line&&De(Pe,1),pt(Fo(Pe,ai,t));function pt(Gt){return Gt&&Tt&&HA(Pe)&&Mn(Pe),mr(Pe)&&(k=St),Tt&&!A&&(a=Ve),Wt&&(A=dt),Gt===Pe?Gt:Gt&&Wo(zn(Gt,Pe),Pe)}}function mn(Pe){return Pe.parent.kind===174&&zC(Pe.parent,2)}function Nn(Pe){if(!pXe(Pe)||Qs(Pe))return;switch(Pe.kind){case 278:return ul(Pe.parent)&&(g=!0),x=!0,M.updateExportDeclaration(Pe,Pe.modifiers,Pe.isTypeOnly,Pe.exportClause,zr(Pe,Pe.moduleSpecifier),_r(Pe.attributes));case 277:{if(ul(Pe.parent)&&(g=!0),x=!0,Pe.expression.kind===80)return Pe;{let Ve=M.createUniqueName("_default",16);a=()=>({diagnosticMessage:j.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:Pe}),$=Pe;let Tt=M.createVariableDeclaration(Ve,void 0,se.createTypeOfExpression(Pe.expression,Pe,fge,Zee,H),void 0);$=void 0;let dt=M.createVariableStatement(u?[M.createModifier(138)]:[],M.createVariableDeclarationList([Tt],2));return zn(dt,Pe),Hme(Pe),[dt,M.updateExportAssignment(Pe,Pe.modifiers,Ve)]}}}let St=gn(Pe);return I.set(rC(Pe),St),Pe}function Gr(Pe){if(pf(Pe)||zC(Pe,2048)||!tD(Pe))return Pe;let St=M.createModifiersFromModifierFlags(A_(Pe)&131039);return M.replaceModifiers(Pe,St)}function ci(Pe,St,Ve,Tt){let dt=M.updateModuleDeclaration(Pe,St,Ve,Tt);if(nb(dt)||dt.flags&32)return dt;let Wt=M.createModuleDeclaration(dt.modifiers,dt.name,dt.body,dt.flags|32);return Wo(Wt,dt),Fn(Wt,dt),Wt}function gn(Pe){if(T)for(;I$(T,Pe););if(Qs(Pe))return;switch(Pe.kind){case 271:return xr(Pe);case 272:return lo(Pe)}if(y1(Pe)&&ni(Pe)||cT(Pe)||iu(Pe)&&se.isImplementationOfOverload(Pe))return;let St;mr(Pe)&&(St=k,k=Pe);let Ve=uge(Pe),Tt=a;Ve&&(a=lF(Pe));let dt=u;switch(Pe.kind){case 265:{u=!1;let pt=Wt(M.updateTypeAliasDeclaration(Pe,lt(Pe),Pe.name,ts(Pe.typeParameters,ai,Yp),Se.checkDefined(on(Pe.type,ai,Qa))));return u=dt,pt}case 264:return Wt(M.updateInterfaceDeclaration(Pe,lt(Pe),Pe.name,Bn(Pe,Pe.typeParameters),Lt(Pe.heritageClauses),ts(Pe.members,ai,Xh)));case 262:{let pt=Wt(M.updateFunctionDeclaration(Pe,lt(Pe),void 0,Pe.name,Bn(Pe,Pe.typeParameters),wi(Pe,Pe.parameters),Kt(Pe,Pe.type),void 0));if(pt&&se.isExpandoFunctionDeclaration(Pe)&&Ut(Pe)){let Gt=se.getPropertiesOfContainerFunction(Pe);Ee&&xe(Pe);let Mt=mL.createModuleDeclaration(void 0,pt.name||M.createIdentifier("_default"),M.createModuleBlock([]),32);dp(Mt,k),Mt.locals=Au(Gt),Mt.symbol=Gt[0].parent;let hi=[],Ie=Dc(Gt,vt=>{if(!B5(vt.valueDeclaration))return;let pe=Ba(vt.escapedName);if(!Jb(pe,99))return;a=lF(vt.valueDeclaration);let at=se.createTypeOfDeclaration(vt.valueDeclaration,Mt,fge,Zee|2,H);a=Tt;let We=ov(pe),si=We?M.getGeneratedNameForNode(vt.valueDeclaration):M.createIdentifier(pe);We&&hi.push([si,pe]);let At=M.createVariableDeclaration(si,void 0,at,void 0);return M.createVariableStatement(We?void 0:[M.createToken(95)],M.createVariableDeclarationList([At]))});hi.length?Ie.push(M.createExportDeclaration(void 0,!1,M.createNamedExports($i(hi,([vt,pe])=>M.createExportSpecifier(!1,vt,pe))))):Ie=Dc(Ie,vt=>M.replaceModifiers(vt,0));let Bt=M.createModuleDeclaration(lt(Pe),Pe.name,M.createModuleBlock(Ie),32);if(!zC(pt,2048))return[pt,Bt];let ui=M.createModifiersFromModifierFlags(A_(pt)&-2081|128),Ue=M.updateFunctionDeclaration(pt,ui,void 0,pt.name,pt.typeParameters,pt.parameters,pt.type,void 0),Ce=M.updateModuleDeclaration(Bt,ui,Bt.name,Bt.body),ye=M.createExportAssignment(void 0,!1,Bt.name);return ul(Pe.parent)&&(g=!0),x=!0,[Ue,Ce,ye]}else return pt}case 267:{u=!1;let pt=Pe.body;if(pt&&pt.kind===268){let Gt=v,Mt=x;x=!1,v=!1;let hi=ts(pt.statements,Nn,ll),Ie=Hs(hi);Pe.flags&33554432&&(v=!1),!y4(Pe)&&!qi(Ie)&&!x&&(v?Ie=M.createNodeArray([...Ie,Cae(M)]):Ie=ts(Ie,Gr,ll));let Bt=M.updateModuleBlock(pt,Ie);u=dt,v=Gt,x=Mt;let ui=lt(Pe);return Wt(ci(Pe,ui,j7(Pe)?zr(Pe,Pe.name):Pe.name,Bt))}else{u=dt;let Gt=lt(Pe);u=!1,on(pt,Nn);let Mt=rC(pt),hi=I.get(Mt);return I.delete(Mt),Wt(ci(Pe,Gt,Pe.name,hi))}}case 263:{U=Pe.name,$=Pe;let pt=M.createNodeArray(lt(Pe)),Gt=Bn(Pe,Pe.typeParameters),Mt=eI(Pe),hi;if(Mt){let ye=a;hi=no(za(Mt.parameters,vt=>{if(!kc(vt,31)||Qs(vt))return;if(a=lF(vt),vt.name.kind===80)return zn(M.createPropertyDeclaration(lt(vt),vt.name,vt.questionToken,Kt(vt,vt.type),ht(vt)),vt);return pe(vt.name);function pe(at){let We;for(let si of at.elements)Eh(si)||(Uu(si.name)&&(We=Pl(We,pe(si.name))),We=We||[],We.push(M.createPropertyDeclaration(lt(vt),si.name,void 0,Kt(si,void 0),void 0)));return We}})),a=ye}let Bt=En(Pe.members,ye=>!!ye.name&&wl(ye.name))?[M.createPropertyDeclaration(void 0,M.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,ui=Pl(Pl(Bt,hi),ts(Pe.members,ai,rl)),Ue=M.createNodeArray(ui),Ce=HE(Pe);if(Ce&&!Dp(Ce.expression)&&Ce.expression.kind!==106){let ye=Pe.name?Ba(Pe.name.escapedText):"default",vt=M.createUniqueName(`${ye}_base`,16);a=()=>({diagnosticMessage:j.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:Ce,typeName:Pe.name});let pe=M.createVariableDeclaration(vt,void 0,se.createTypeOfExpression(Ce.expression,Pe,fge,Zee,H),void 0),at=M.createVariableStatement(u?[M.createModifier(138)]:[],M.createVariableDeclarationList([pe],2)),We=M.createNodeArray($i(Pe.heritageClauses,si=>{if(si.token===96){let At=a;a=lF(si.types[0]);let Ot=M.updateHeritageClause(si,$i(si.types,Fi=>M.updateExpressionWithTypeArguments(Fi,vt,ts(Fi.typeArguments,ai,Qa))));return a=At,Ot}return M.updateHeritageClause(si,ts(M.createNodeArray(Qn(si.types,At=>Dp(At.expression)||At.expression.kind===106)),ai,$C))}));return[at,Wt(M.updateClassDeclaration(Pe,pt,Pe.name,Gt,We,Ue))]}else{let ye=Lt(Pe.heritageClauses);return Wt(M.updateClassDeclaration(Pe,pt,Pe.name,Gt,ye,Ue))}}case 243:return Wt(Sr(Pe));case 266:return Wt(M.updateEnumDeclaration(Pe,M.createNodeArray(lt(Pe)),Pe.name,M.createNodeArray(Dc(Pe.members,pt=>{if(Qs(pt))return;let Gt=se.getEnumMemberValue(pt),Mt=Gt?.value;Ee&&pt.initializer&&Gt?.hasExternalReferences&&!f_(pt.name)&&t.addDiagnostic(ws(pt,j.Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations));let hi=Mt===void 0?void 0:typeof Mt=="string"?M.createStringLiteral(Mt):Mt<0?M.createPrefixUnaryExpression(41,M.createNumericLiteral(-Mt)):M.createNumericLiteral(Mt);return zn(M.updateEnumMember(pt,pt.name,hi),pt)}))))}return Se.assertNever(Pe,`Unhandled top-level node in declaration emit: ${Se.formatSyntaxKind(Pe.kind)}`);function Wt(pt){return mr(Pe)&&(k=St),Ve&&(a=Tt),Pe.kind===267&&(u=dt),pt===Pe?pt:($=void 0,U=void 0,pt&&Wo(zn(pt,Pe),Pe))}}function Sr(Pe){if(!ee(Pe.declarationList.declarations,pi))return;let St=ts(Pe.declarationList.declarations,ai,$c);if(!Z(St))return;let Ve=M.createNodeArray(lt(Pe)),Tt;return pj(Pe.declarationList)||q6(Pe.declarationList)?(Tt=M.createVariableDeclarationList(St,2),Wo(Tt,Pe.declarationList),Fn(Tt,Pe.declarationList),Xg(Tt,Pe.declarationList)):Tt=M.updateVariableDeclarationList(Pe.declarationList,St),M.updateVariableStatement(Pe,Ve,Tt)}function vo(Pe){return cr(Dc(Pe.elements,St=>$o(St)))}function $o(Pe){if(Pe.kind!==232&&Pe.name)return pi(Pe)?Uu(Pe.name)?vo(Pe.name):M.createVariableDeclaration(Pe.name,void 0,Kt(Pe,void 0),void 0):void 0}function Mn(Pe){let St;A||(St=a,a=v2e(Pe)),U=Pe.name,Se.assert(HA(Pe));let Tt=Pe.name.expression;Ei(Tt,k),A||(a=St),U=void 0}function Qs(Pe){return!!le&&!!Pe&&Ipe(Pe,K)}function Pi(Pe){return Bm(Pe)||Qg(Pe)}function qi(Pe){return En(Pe,Pi)}function lt(Pe){let St=A_(Pe),Ve=Xi(Pe);return St===Ve?oce(Pe.modifiers,Tt=>ac(Tt,jd),jd):M.createModifiersFromModifierFlags(Ve)}function Xi(Pe){let St=130030,Ve=u&&!_Xe(Pe)?128:0,Tt=Pe.parent.kind===307;return(!Tt||m&&Tt&&Mg(Pe.parent))&&(St^=128,Ve=0),TFe(Pe,St,Ve)}function nt(Pe,St){let Ve=hL(Pe);return!Ve&&Pe!==St.firstAccessor&&(Ve=hL(St.firstAccessor),a=lF(St.firstAccessor)),!Ve&&St.secondAccessor&&Pe!==St.secondAccessor&&(Ve=hL(St.secondAccessor),a=lF(St.secondAccessor)),Ve}function Lt(Pe){return M.createNodeArray(Qn($i(Pe,St=>M.updateHeritageClause(St,ts(M.createNodeArray(Qn(St.types,Ve=>Dp(Ve.expression)||St.token===96&&Ve.expression.kind===106)),ai,$C))),St=>St.types&&!!St.types.length))}}function _Xe(t){return t.kind===264}function S2e(t,n,a,u){return t.createModifiersFromModifierFlags(TFe(n,a,u))}function TFe(t,n=131070,a=0){let u=A_(t)&n|a;return u&2048&&!(u&32)&&(u^=32),u&2048&&u&128&&(u^=128),u}function hL(t){if(t)return t.kind===177?t.type:t.parameters.length>0?t.parameters[0].type:void 0}function EFe(t){switch(t.kind){case 172:case 171:return!zC(t,2);case 169:case 260:return!0}return!1}function pXe(t){switch(t.kind){case 262:case 267:case 271:case 264:case 263:case 265:case 266:case 243:case 272:case 278:case 277:return!0}return!1}function _ge(t){switch(t.kind){case 180:case 176:case 174:case 177:case 178:case 172:case 171:case 173:case 179:case 181:case 260:case 168:case 233:case 183:case 194:case 184:case 185:case 205:return!0}return!1}function DFe(t){switch(t){case 200:return wFe;case 99:case 7:case 6:case 5:case 100:case 199:case 1:return y2e;case 4:return g2e;default:return _ce}}var mXe={scriptTransformers:F,declarationTransformers:F};function hXe(t,n,a){return{scriptTransformers:w0t(t,n,a),declarationTransformers:gXe(n)}}function w0t(t,n,a){if(a)return F;let u=h_(t),m=b1(t),g=KZ(t),v=[];return Ho(v,n&&$i(n.before,D0t)),v.push(eXe),t.experimentalDecorators&&v.push(c2e),BG(t)&&v.push(p2e),u<99&&v.push(u2e),!t.experimentalDecorators&&(u<99||!g)&&v.push(oXe),v.push(tXe),u<8&&v.push(OK),u<7&&v.push(lXe),u<6&&v.push(cXe),u<5&&v.push(aXe),u<4&&v.push(sXe),u<3&&v.push(kFe),u<2&&(v.push(m2e),v.push(h2e)),v.push(DFe(m)),Ho(v,n&&$i(n.after,D0t)),v}function gXe(t){let n=[];return n.push(pce),Ho(n,t&&$i(t.afterDeclarations,hBt)),n}function T0t(t){return n=>nK(n)?t.transformBundle(n):t.transformSourceFile(n)}function E0t(t,n){return a=>{let u=t(a);return typeof u=="function"?n(a,u):T0t(u)}}function D0t(t){return E0t(t,kN)}function hBt(t){return E0t(t,(n,a)=>a)}function FK(t,n){return n}function ete(t,n,a){a(t,n)}function pge(t,n,a,u,m,g,v){var x,k;let T=new Array(357),I,A,M,R=0,H=[],U=[],$=[],K=[],re=0,X=!1,ne=[],se=0,_e,ae,le=FK,Ee=ete,xe=0,be=[],Le={factory:a,getCompilerOptions:()=>u,getEmitResolver:()=>t,getEmitHost:()=>n,getEmitHelperFactory:H0(()=>Mwe(Le)),startLexicalEnvironment:mt,suspendLexicalEnvironment:ut,resumeLexicalEnvironment:ht,endLexicalEnvironment:Kt,setLexicalEnvironmentFlags:ni,getLexicalEnvironmentFlags:Ut,hoistVariableDeclaration:rt,hoistFunctionDeclaration:_t,addInitializationStatement:ft,startBlockScope:pi,endBlockScope:wi,addBlockScopedVariable:Bi,requestEmitHelper:Bn,readEmitHelpers:mr,enableSubstitution:he,enableEmitNotification:$e,isSubstitutionEnabled:Oe,isEmitNotificationEnabled:Ke,get onSubstituteNode(){return le},set onSubstituteNode(zn){Se.assert(xe<1,"Cannot modify transformation hooks after initialization has completed."),Se.assert(zn!==void 0,"Value must not be 'undefined'"),le=zn},get onEmitNode(){return Ee},set onEmitNode(zn){Se.assert(xe<1,"Cannot modify transformation hooks after initialization has completed."),Se.assert(zn!==void 0,"Value must not be 'undefined'"),Ee=zn},addDiagnostic(zn){be.push(zn)}};for(let zn of m)uee(Vo(ju(zn)));Lm("beforeTransform");let fe=g.map(zn=>zn(Le)),we=zn=>{for(let zr of fe)zn=zr(zn);return zn};xe=1;let Ae=[];for(let zn of m)(x=us)==null||x.push(us.Phase.Emit,"transformNodes",zn.kind===307?{path:zn.path}:{kind:zn.kind,pos:zn.pos,end:zn.end}),Ae.push((v?we:Ge)(zn)),(k=us)==null||k.pop();return xe=2,Lm("afterTransform"),Ub("transformTime","beforeTransform","afterTransform"),{transformed:Ae,substituteNode:Re,emitNodeWithNotification:qe,isEmitNotificationEnabled:Ke,dispose:Ei,diagnostics:be};function Ge(zn){return zn&&(!ul(zn)||!zn.isDeclarationFile)?we(zn):zn}function he(zn){Se.assert(xe<2,"Cannot modify the transformation context after transformation has completed."),T[zn]|=1}function Oe(zn){return(T[zn.kind]&1)!==0&&(N_(zn)&8)===0}function Re(zn,zr){return Se.assert(xe<3,"Cannot substitute a node after the result is disposed."),zr&&Oe(zr)&&le(zn,zr)||zr}function $e(zn){Se.assert(xe<2,"Cannot modify the transformation context after transformation has completed."),T[zn]|=2}function Ke(zn){return(T[zn.kind]&2)!==0||(N_(zn)&4)!==0}function qe(zn,zr,xr){Se.assert(xe<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),zr&&(Ke(zr)?Ee(zn,zr,xr):xr(zn,zr))}function rt(zn){Se.assert(xe>0,"Cannot modify the lexical environment during initialization."),Se.assert(xe<2,"Cannot modify the lexical environment after transformation has completed.");let zr=De(a.createVariableDeclaration(zn),128);I?I.push(zr):I=[zr],R&1&&(R|=2)}function _t(zn){Se.assert(xe>0,"Cannot modify the lexical environment during initialization."),Se.assert(xe<2,"Cannot modify the lexical environment after transformation has completed."),De(zn,2097152),A?A.push(zn):A=[zn]}function ft(zn){Se.assert(xe>0,"Cannot modify the lexical environment during initialization."),Se.assert(xe<2,"Cannot modify the lexical environment after transformation has completed."),De(zn,2097152),M?M.push(zn):M=[zn]}function mt(){Se.assert(xe>0,"Cannot modify the lexical environment during initialization."),Se.assert(xe<2,"Cannot modify the lexical environment after transformation has completed."),Se.assert(!X,"Lexical environment is suspended."),H[re]=I,U[re]=A,$[re]=M,K[re]=R,re++,I=void 0,A=void 0,M=void 0,R=0}function ut(){Se.assert(xe>0,"Cannot modify the lexical environment during initialization."),Se.assert(xe<2,"Cannot modify the lexical environment after transformation has completed."),Se.assert(!X,"Lexical environment is already suspended."),X=!0}function ht(){Se.assert(xe>0,"Cannot modify the lexical environment during initialization."),Se.assert(xe<2,"Cannot modify the lexical environment after transformation has completed."),Se.assert(X,"Lexical environment is not suspended."),X=!1}function Kt(){Se.assert(xe>0,"Cannot modify the lexical environment during initialization."),Se.assert(xe<2,"Cannot modify the lexical environment after transformation has completed."),Se.assert(!X,"Lexical environment is suspended.");let zn;if(I||A||M){if(A&&(zn=[...A]),I){let zr=a.createVariableStatement(void 0,a.createVariableDeclarationList(I));De(zr,2097152),zn?zn.push(zr):zn=[zr]}M&&(zn?zn=[...zn,...M]:zn=[...M])}return re--,I=H[re],A=U[re],M=$[re],R=K[re],re===0&&(H=[],U=[],$=[],K=[]),zn}function ni(zn,zr){R=zr?R|zn:R&~zn}function Ut(){return R}function pi(){Se.assert(xe>0,"Cannot start a block scope during initialization."),Se.assert(xe<2,"Cannot start a block scope after transformation has completed."),ne[se]=_e,se++,_e=void 0}function wi(){Se.assert(xe>0,"Cannot end a block scope during initialization."),Se.assert(xe<2,"Cannot end a block scope after transformation has completed.");let zn=En(_e)?[a.createVariableStatement(void 0,a.createVariableDeclarationList(_e.map(zr=>a.createVariableDeclaration(zr)),1))]:void 0;return se--,_e=ne[se],se===0&&(ne=[]),zn}function Bi(zn){Se.assert(se>0,"Cannot add a block scoped variable outside of an iteration body."),(_e||(_e=[])).push(zn)}function Bn(zn){if(Se.assert(xe>0,"Cannot modify the transformation context during initialization."),Se.assert(xe<2,"Cannot modify the transformation context after transformation has completed."),Se.assert(!zn.scoped,"Cannot request a scoped emit helper."),zn.dependencies)for(let zr of zn.dependencies)Bn(zr);ae=ar(ae,zn)}function mr(){Se.assert(xe>0,"Cannot modify the transformation context during initialization."),Se.assert(xe<2,"Cannot modify the transformation context after transformation has completed.");let zn=ae;return ae=void 0,zn}function Ei(){if(xe<3){for(let zn of m)uee(Vo(ju(zn)));I=void 0,H=void 0,A=void 0,U=void 0,le=void 0,Ee=void 0,ae=void 0,xe=3}}}var mge={factory:Me,getCompilerOptions:()=>({}),getEmitResolver:ld,getEmitHost:ld,getEmitHelperFactory:ld,startLexicalEnvironment:Za,resumeLexicalEnvironment:Za,suspendLexicalEnvironment:Za,endLexicalEnvironment:FT,setLexicalEnvironmentFlags:Za,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:Za,hoistFunctionDeclaration:Za,addInitializationStatement:Za,startBlockScope:Za,endBlockScope:FT,addBlockScopedVariable:Za,requestEmitHelper:Za,readEmitHelpers:ld,enableSubstitution:Za,enableEmitNotification:Za,isSubstitutionEnabled:ld,isEmitNotificationEnabled:ld,onSubstituteNode:FK,onEmitNode:ete,addDiagnostic:Za},I0t=bXe();function IFe(t){return Wh(t,".tsbuildinfo")}function x2e(t,n,a,u=!1,m,g){let v=ua(a)?a:WZ(t,a,u),x=t.getCompilerOptions();if(!m)if(x.outFile){if(v.length){let k=Me.createBundle(v),T=n(a9(k,t,u),k);if(T)return T}}else for(let k of v){let T=n(a9(k,t,u),k);if(T)return T}if(g){let k=s9(x);if(k)return n({buildInfoPath:k},void 0)}}function s9(t){let n=t.configFilePath;if(!JU(t))return;if(t.tsBuildInfoFile)return t.tsBuildInfoFile;let a=t.outFile,u;if(a)u=Qx(a);else{if(!n)return;let m=Qx(n);u=t.outDir?t.rootDir?w7(t.outDir,w2(t.rootDir,m,!0)):Ps(t.outDir,sg(m)):m}return u+".tsbuildinfo"}function JU(t){return _f(t)||!!t.tscBuild}function tte(t,n){let a=t.outFile,u=t.emitDeclarationOnly?void 0:a,m=u&&mce(u,t),g=n||fw(t)?Qx(a)+".d.ts":void 0,v=g&&x1(t)?g+".map":void 0;return{jsFilePath:u,sourceMapFilePath:m,declarationFilePath:g,declarationMapPath:v}}function a9(t,n,a){let u=n.getCompilerOptions();if(t.kind===308)return tte(u,a);{let m=Dse(t.fileName,n,hge(t.fileName,u)),g=qv(t),v=g&&fk(t.fileName,m,n.getCurrentDirectory(),!n.useCaseSensitiveFileNames())===0,x=u.emitDeclarationOnly||v?void 0:m,k=!x||qv(t)?void 0:mce(x,u),T=a||fw(u)&&!g?UH(t.fileName,n):void 0,I=T&&x1(u)?T+".map":void 0;return{jsFilePath:x,sourceMapFilePath:k,declarationFilePath:T,declarationMapPath:I}}}function mce(t,n){return n.sourceMap&&!n.inlineSourceMap?t+".map":void 0}function hge(t,n){return Wh(t,".json")?".json":n.jsx===1&&gg(t,[".jsx",".tsx"])?".jsx":gg(t,[".mts",".mjs"])?".mjs":gg(t,[".cts",".cjs"])?".cjs":".js"}function NFe(t,n,a,u){return a?w7(a,w2(u(),t,n)):t}function PW(t,n,a,u=()=>c9(n,a)){return B4(t,n.options,a,u)}function B4(t,n,a,u){return J3(NFe(t,a,n.declarationDir||n.outDir,u),jZ(t))}function gge(t,n,a,u=()=>c9(n,a)){if(n.options.emitDeclarationOnly)return;let m=Wh(t,".json"),g=qU(t,n.options,a,u);return!m||fk(t,g,Se.checkDefined(n.options.configFilePath),a)!==0?g:void 0}function qU(t,n,a,u){return J3(NFe(t,a,n.outDir,u),hge(t,n))}function yXe(){let t;return{addOutput:n,getOutputs:a};function n(u){u&&(t||(t=[])).push(u)}function a(){return t||F}}function yge(t,n){let{jsFilePath:a,sourceMapFilePath:u,declarationFilePath:m,declarationMapPath:g}=tte(t.options,!1);n(a),n(u),n(m),n(g)}function vXe(t,n,a,u,m){if(ey(n))return;let g=gge(n,t,a,m);if(u(g),!Wh(n,".json")&&(g&&t.options.sourceMap&&u(`${g}.map`),fw(t.options))){let v=PW(n,t,a,m);u(v),t.options.declarationMap&&u(`${v}.map`)}}function uF(t,n,a,u,m){let g;return t.rootDir?(g=tu(t.rootDir,a),m?.(t.rootDir)):t.composite&&t.configFilePath?(g=Cc(Ch(t.configFilePath)),m?.(g)):g=nte(n(),a,u),g&&g[g.length-1]!==uh&&(g+=uh),g}function c9({options:t,fileNames:n},a){return uF(t,()=>Qn(n,u=>!(t.noEmitForJsFiles&&gg(u,P5))&&!ey(u)),Cc(Ch(Se.checkDefined(t.configFilePath))),U0(!a))}function vge(t,n){let{addOutput:a,getOutputs:u}=yXe();if(t.options.outFile)yge(t,a);else{let m=H0(()=>c9(t,n));for(let g of t.fileNames)vXe(t,g,n,a,m)}return a(s9(t.options)),u()}function C2e(t,n,a){n=Kd(n),Se.assert(dr(t.fileNames,n),"Expected fileName to be present in command line");let{addOutput:u,getOutputs:m}=yXe();return t.options.outFile?yge(t,u):vXe(t,n,a,u),m()}function k2e(t,n){if(t.options.outFile){let{jsFilePath:m,declarationFilePath:g}=tte(t.options,!1);return Se.checkDefined(m||g,`project ${t.options.configFilePath} expected to have at least one output`)}let a=H0(()=>c9(t,n));for(let m of t.fileNames){if(ey(m))continue;let g=gge(m,t,n,a);if(g)return g;if(!Wh(m,".json")&&fw(t.options))return PW(m,t,n,a)}let u=s9(t.options);return u||Se.fail(`project ${t.options.configFilePath} expected to have at least one output`)}function w2e(t,n){return!!n&&!!t}function T2e(t,n,a,{scriptTransformers:u,declarationTransformers:m},g,v,x,k){var T=n.getCompilerOptions(),I=T.sourceMap||T.inlineSourceMap||x1(T)?[]:void 0,A=T.listEmittedFiles?[]:void 0,M=kse(),R=W2(T),H=ume(R),{enter:U,exit:$}=U_e("printTime","beforePrint","afterPrint"),K=!1;return U(),x2e(n,re,WZ(n,a,x),x,v,!a&&!k),$(),{emitSkipped:K,diagnostics:M.getDiagnostics(),emittedFiles:A,sourceMaps:I};function re({jsFilePath:fe,sourceMapFilePath:we,declarationFilePath:Ae,declarationMapPath:Ge,buildInfoPath:he},Oe){var Re,$e,Ke,qe,rt,_t;(Re=us)==null||Re.push(us.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:fe}),ne(Oe,fe,we),($e=us)==null||$e.pop(),(Ke=us)==null||Ke.push(us.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:Ae}),se(Oe,Ae,Ge),(qe=us)==null||qe.pop(),(rt=us)==null||rt.push(us.Phase.Emit,"emitBuildInfo",{buildInfoPath:he}),X(he),(_t=us)==null||_t.pop()}function X(fe){if(!fe||a)return;if(n.isEmitBlocked(fe)){K=!0;return}let we=n.getBuildInfo()||{version:L};Nse(n,M,fe,MK(we),!1,void 0,{buildInfo:we}),A?.push(fe)}function ne(fe,we,Ae){if(!fe||g||!we)return;if(n.isEmitBlocked(we)||T.noEmit){K=!0;return}(ul(fe)?[fe]:Qn(fe.sourceFiles,WA)).forEach(Re=>{(T.noCheck||!Z7(Re,T))&&ae(Re)});let Ge=pge(t,n,Me,T,[fe],u,!1),he={removeComments:T.removeComments,newLine:T.newLine,noEmitHelpers:T.noEmitHelpers,module:b1(T),moduleResolution:S1(T),target:h_(T),sourceMap:T.sourceMap,inlineSourceMap:T.inlineSourceMap,inlineSources:T.inlineSources,extendedDiagnostics:T.extendedDiagnostics},Oe=j4(he,{hasGlobalName:t.hasGlobalName,onEmitNode:Ge.emitNodeWithNotification,isEmitNotificationEnabled:Ge.isEmitNotificationEnabled,substituteNode:Ge.substituteNode});Se.assert(Ge.transformed.length===1,"Should only see one output from the transform"),le(we,Ae,Ge,Oe,T),Ge.dispose(),A&&(A.push(we),Ae&&A.push(Ae))}function se(fe,we,Ae){if(!fe||g===0)return;if(!we){(g||T.emitDeclarationOnly)&&(K=!0);return}let Ge=ul(fe)?[fe]:fe.sourceFiles,he=x?Ge:Qn(Ge,WA),Oe=T.outFile?[Me.createBundle(he)]:he;he.forEach(Ke=>{(g&&!fw(T)||T.noCheck||w2e(g,x)||!Z7(Ke,T))&&_e(Ke)});let Re=pge(t,n,Me,T,Oe,m,!1);if(Z(Re.diagnostics))for(let Ke of Re.diagnostics)M.add(Ke);let $e=!!Re.diagnostics&&!!Re.diagnostics.length||!!n.isEmitBlocked(we)||!!T.noEmit;if(K=K||$e,!$e||x){Se.assert(Re.transformed.length===1,"Should only see one output from the decl transform");let Ke={removeComments:T.removeComments,newLine:T.newLine,noEmitHelpers:!0,module:T.module,moduleResolution:T.moduleResolution,target:T.target,sourceMap:g!==2&&T.declarationMap,inlineSourceMap:T.inlineSourceMap,extendedDiagnostics:T.extendedDiagnostics,onlyPrintJsDocStyle:!0,omitBraceSourceMapPositions:!0},qe=j4(Ke,{hasGlobalName:t.hasGlobalName,onEmitNode:Re.emitNodeWithNotification,isEmitNotificationEnabled:Re.isEmitNotificationEnabled,substituteNode:Re.substituteNode}),rt=le(we,Ae,Re,qe,{sourceMap:Ke.sourceMap,sourceRoot:T.sourceRoot,mapRoot:T.mapRoot,extendedDiagnostics:T.extendedDiagnostics});A&&(rt&&A.push(we),Ae&&A.push(Ae))}Re.dispose()}function _e(fe){if(Bm(fe)){fe.expression.kind===80&&t.collectLinkedAliases(fe.expression,!0);return}else if(X0(fe)){t.collectLinkedAliases(fe.propertyName||fe.name,!0);return}_d(fe,_e)}function ae(fe){$v(fe)||NU(fe,we=>{if(pf(we)&&!(eT(we)&32)||Dd(we))return"skip";t.markLinkedReferences(we)})}function le(fe,we,Ae,Ge,he){let Oe=Ae.transformed[0],Re=Oe.kind===308?Oe:void 0,$e=Oe.kind===307?Oe:void 0,Ke=Re?Re.sourceFiles:[$e],qe;Ee(he,Oe)&&(qe=FKe(n,sg(Ch(fe)),xe(he),be(he,fe,$e),he)),Re?Ge.writeBundle(Re,H,qe):Ge.writeFile($e,H,qe);let rt;if(qe){I&&I.push({inputSourceFileNames:qe.getSources(),sourceMap:qe.toJSON()});let mt=Le(he,qe,fe,we,$e);if(mt&&(H.isAtStartOfLine()||H.rawWrite(R),rt=H.getTextPos(),H.writeComment(`//# sourceMappingURL=${mt}`)),we){let ut=qe.toString();Nse(n,M,we,ut,!1,Ke)}}else H.writeLine();let _t=H.getText(),ft={sourceMapUrlPos:rt,diagnostics:Ae.diagnostics};return Nse(n,M,fe,_t,!!T.emitBOM,Ke,ft),H.clear(),!ft.skippedDtsWrite}function Ee(fe,we){return(fe.sourceMap||fe.inlineSourceMap)&&(we.kind!==307||!Wh(we.fileName,".json"))}function xe(fe){let we=Ch(fe.sourceRoot||"");return we&&Fs(we)}function be(fe,we,Ae){if(fe.sourceRoot)return n.getCommonSourceDirectory();if(fe.mapRoot){let Ge=Ch(fe.mapRoot);return Ae&&(Ge=Cc(Ise(Ae.fileName,n,Ge))),q0(Ge)===0&&(Ge=Ps(n.getCommonSourceDirectory(),Ge)),Ge}return Cc(Kd(we))}function Le(fe,we,Ae,Ge,he){if(fe.inlineSourceMap){let Re=we.toString();return`data:application/json;base64,${Mse(hy,Re)}`}let Oe=sg(Ch(Se.checkDefined(Ge)));if(fe.mapRoot){let Re=Ch(fe.mapRoot);return he&&(Re=Cc(Ise(he.fileName,n,Re))),q0(Re)===0?(Re=Ps(n.getCommonSourceDirectory(),Re),encodeURI(uH(Cc(Kd(Ae)),Ps(Re,Oe),n.getCurrentDirectory(),n.getCanonicalFileName,!0))):encodeURI(Ps(Re,Oe))}return encodeURI(Oe)}}function MK(t){return JSON.stringify(t)}function l9(t,n){return Rse(t,n)}var hce={hasGlobalName:ld,getReferencedExportContainer:ld,getReferencedImportDeclaration:ld,getReferencedDeclarationWithCollidingName:ld,isDeclarationWithCollidingName:ld,isValueAliasDeclaration:ld,isReferencedAliasDeclaration:ld,isTopLevelValueImportEqualsWithEntityName:ld,hasNodeCheckFlag:ld,isDeclarationVisible:ld,isLateBound:t=>!1,collectLinkedAliases:ld,markLinkedReferences:ld,isImplementationOfOverload:ld,requiresAddingImplicitUndefined:ld,isExpandoFunctionDeclaration:ld,getPropertiesOfContainerFunction:ld,createTypeOfDeclaration:ld,createReturnTypeOfSignatureDeclaration:ld,createTypeOfExpression:ld,createLiteralConstValue:ld,isSymbolAccessible:ld,isEntityNameVisible:ld,getConstantValue:ld,getEnumMemberValue:ld,getReferencedValueDeclaration:ld,getReferencedValueDeclarations:ld,getTypeReferenceSerializationKind:ld,isOptionalParameter:ld,isArgumentsLocalBinding:ld,getExternalModuleFileFromDeclaration:ld,isLiteralConstDeclaration:ld,getJsxFactoryEntity:ld,getJsxFragmentFactoryEntity:ld,isBindingCapturedByNode:ld,getDeclarationStatementsForSourceFile:ld,isImportRequiredByAugmentation:ld,isDefinitelyReferenceToGlobalSymbolObject:ld},AFe=H0(()=>j4({})),dF=H0(()=>j4({removeComments:!0})),bge=H0(()=>j4({removeComments:!0,neverAsciiEscape:!0})),gce=H0(()=>j4({removeComments:!0,omitTrailingSemicolon:!0}));function j4(t={},n={}){var{hasGlobalName:a,onEmitNode:u=ete,isEmitNotificationEnabled:m,substituteNode:g=FK,onBeforeEmitNode:v,onAfterEmitNode:x,onBeforeEmitNodeArray:k,onAfterEmitNodeArray:T,onBeforeEmitToken:I,onAfterEmitToken:A}=n,M=!!t.extendedDiagnostics,R=!!t.omitBraceSourceMapPositions,H=W2(t),U=b1(t),$=new Map,K,re,X,ne,se,_e,ae,le,Ee,xe,be,Le,fe,we,Ae,Ge=t.preserveSourceNewlines,he,Oe,Re,$e=Cu,Ke,qe=!0,rt,_t,ft=-1,mt,ut=-1,ht=-1,Kt=-1,ni=-1,Ut,pi,wi=!1,Bi=!!t.removeComments,Bn,mr,{enter:Ei,exit:zn}=qht(M,"commentTime","beforeComment","afterComment"),zr=Me.parenthesizer,xr={select:de=>de===0?zr.parenthesizeLeadingTypeArgument:void 0},lo=hp();return Pi(),{printNode:_r,printList:Hs,printFile:mn,printBundle:ai,writeNode:Nn,writeList:Gr,writeFile:gn,writeBundle:ci};function _r(de,Et,Gi){switch(de){case 0:Se.assert(ul(Et),"Expected a SourceFile node.");break;case 2:Se.assert(Ai(Et),"Expected an Identifier node.");break;case 1:Se.assert(An(Et),"Expected an Expression node.");break}switch(Et.kind){case 307:return mn(Et);case 308:return ai(Et)}return Nn(de,Et,Gi,Sr()),vo()}function Hs(de,Et,Gi){return Gr(de,Et,Gi,Sr()),vo()}function ai(de){return ci(de,Sr(),void 0),vo()}function mn(de){return gn(de,Sr(),void 0),vo()}function Nn(de,Et,Gi,rr){let as=Oe;Qs(rr,void 0),$o(de,Et,Gi),Pi(),Oe=as}function Gr(de,Et,Gi,rr){let as=Oe;Qs(rr,void 0),Gi&&Mn(Gi),yp(void 0,Et,de),Pi(),Oe=as}function ci(de,Et,Gi){Ke=!1;let rr=Oe;Qs(Et,Gi),ek(de),jg(de),ui(de),uD(de);for(let as of de.sourceFiles)$o(0,as,as);Pi(),Oe=rr}function gn(de,Et,Gi){Ke=!0;let rr=Oe;Qs(Et,Gi),ek(de),jg(de),$o(0,de,de),Pi(),Oe=rr}function Sr(){return Re||(Re=ume(H))}function vo(){let de=Re.getText();return Re.clear(),de}function $o(de,Et,Gi){Gi&&Mn(Gi),Ve(de,Et,void 0)}function Mn(de){K=de,Ut=void 0,pi=void 0,de&&Vt(de)}function Qs(de,Et){de&&t.omitTrailingSemicolon&&(de=DOe(de)),Oe=de,rt=Et,qe=!Oe||!rt}function Pi(){re=[],X=[],ne=[],se=new Set,_e=[],ae=new Map,le=[],Ee=0,xe=[],be=0,Le=[],fe=void 0,we=[],Ae=void 0,K=void 0,Ut=void 0,pi=void 0,Qs(void 0,void 0)}function qi(){return Ut||(Ut=P6(Se.checkDefined(K)))}function lt(de,Et){de!==void 0&&Ve(4,de,Et)}function Xi(de){de!==void 0&&Ve(2,de,void 0)}function nt(de,Et){de!==void 0&&Ve(1,de,Et)}function Lt(de){Ve(Kf(de)?6:4,de)}function Pe(de){Ge&&RC(de)&4&&(Ge=!1)}function St(de){Ge=de}function Ve(de,Et,Gi){mr=Gi,Wt(0,de,Et)(de,Et),mr=void 0}function Tt(de){return!Bi&&!ul(de)}function dt(de){return!qe&&!ul(de)&&!H7(de)}function Wt(de,Et,Gi){switch(de){case 0:if(u!==ete&&(!m||m(Gi)))return Gt;case 1:if(g!==FK&&(Bn=g(Et,Gi)||Gi)!==Gi)return mr&&(Bn=mr(Bn)),Bt;case 2:if(Tt(Gi))return bI;case 3:if(dt(Gi))return JS;case 4:return Mt;default:return Se.assertNever(de)}}function pt(de,Et,Gi){return Wt(de+1,Et,Gi)}function Gt(de,Et){let Gi=pt(0,de,Et);u(de,Et,Gi)}function Mt(de,Et){if(v?.(Et),Ge){let Gi=Ge;Pe(Et),hi(de,Et),St(Gi)}else hi(de,Et);x?.(Et),mr=void 0}function hi(de,Et,Gi=!0){if(Gi){let rr=fee(Et);if(rr)return vt(de,Et,rr)}if(de===0)return lC($d(Et,ul));if(de===2)return We($d(Et,Ai));if(de===6)return ye($d(Et,Kf),!0);if(de===3)return Ie($d(Et,Yp));if(de===7)return Mr($d(Et,GC));if(de===5)return Se.assertNode(Et,q5),ln(!0);if(de===4){switch(Et.kind){case 16:case 17:case 18:return ye(Et,!1);case 80:return We(Et);case 81:return si(Et);case 166:return At(Et);case 167:return Fi(Et);case 168:return Vn(Et);case 169:return In(Et);case 170:return dn(Et);case 171:return Si(Et);case 172:return Ri(Et);case 173:return Cn(Et);case 174:return cn(Et);case 175:return Pn(Et);case 176:return Wi(Et);case 177:case 178:return Kn(Et);case 179:return Ti(Et);case 180:return wr(Et);case 181:return Nr(Et);case 182:return Ts(Et);case 183:return pa(Et);case 184:return Nc(Et);case 185:return G_(Et);case 186:return ja(Et);case 187:return Gd(Et);case 188:return Su(Et);case 189:return gr(Et);case 190:return Vc(Et);case 192:return xu(Et);case 193:return Ar(Et);case 194:return Hl(Et);case 195:return Lf(Et);case 196:return Rt(Et);case 233:return e0(Et);case 197:return bt();case 198:return Ci(Et);case 199:return kn(Et);case 200:return ke(Et);case 201:return Qt(Et);case 202:return Wl(Et);case 203:return oi(Et);case 204:return Vr(Et);case 205:return nn(Et);case 206:return hr(Et);case 207:return io(Et);case 208:return Er(Et);case 239:return ig(Et);case 240:return ir();case 241:return wg(Et);case 243:return xt(Et);case 242:return ln(!1);case 244:return Dr(Et);case 245:return Tr(Et);case 246:return gi(Et);case 247:return an(Et);case 248:return yn(Et);case 249:return Be(Et);case 250:return Ft(Et);case 251:return yr(Et);case 252:return He(Et);case 253:return Tc(Et);case 254:return Jl(Et);case 255:return Id(Et);case 256:return bd(Et);case 257:return op(Et);case 258:return Pv(Et);case 259:return Lv(Et);case 260:return P0(Et);case 261:return Ny(Et);case 262:return y_(Et);case 263:return aC(Et);case 264:return dv(Et);case 265:return Ov(Et);case 266:return xi(Et);case 267:return Ui(Et);case 268:return nr(Et);case 269:return Hr(Et);case 270:return Zs(Et);case 271:return yo(Et);case 272:return Co(Et);case 273:return Os(Et);case 274:return Jc(Et);case 280:return jc(Et);case 275:return qt(Et);case 276:return bi(Et);case 277:return Li(Et);case 278:return Yn(Et);case 279:return bs(Et);case 281:return nl(Et);case 300:return Bo(Et);case 301:return bo(Et);case 282:return;case 283:return ep(Et);case 12:return t0(Et);case 286:case 289:return HS(Et);case 287:case 290:return cD(Et);case 291:return Ok(Et);case 292:return cC(Et);case 293:return lf(Et);case 294:return QC(Et);case 295:return US(Et);case 296:return fv(Et);case 297:return _v(Et);case 298:return pT(Et);case 299:return pP(Et);case 303:return fI(Et);case 304:return ZC(Et);case 305:return Tx(Et);case 306:return e1(Et);case 307:return lC(Et);case 308:return Se.fail("Bundles should be printed using printBundle");case 309:return Ly(Et);case 310:return Fk(Et);case 312:return aa("*");case 313:return aa("?");case 314:return $l(Et);case 315:return cc(Et);case 316:return vl(Et);case 317:return Pf(Et);case 191:case 318:return Aa(Et);case 319:return;case 320:return P1(Et);case 322:return pv(Et);case 323:return Bg(Et);case 327:case 332:case 337:return Hh(Et);case 328:case 329:return Tg(Et);case 330:case 331:return;case 333:case 334:case 335:case 336:return;case 338:return zm(Et);case 339:return _I(Et);case 341:case 348:return Mk(Et);case 340:case 342:case 343:case 344:case 349:case 350:return gp(Et);case 345:return Oi(Et);case 346:return L1(Et);case 347:return ny(Et);case 351:return lD(Et);case 353:return}if(An(Et)&&(de=1,g!==FK)){let rr=g(de,Et)||Et;rr!==Et&&(Et=rr,mr&&(Et=mr(Et)))}}if(de===1)switch(Et.kind){case 9:case 10:return Ce(Et);case 11:case 14:case 15:return ye(Et,!1);case 80:return We(Et);case 81:return si(Et);case 209:return is(Et);case 210:return zs(Et);case 211:return da(Et);case 212:return ru(Et);case 213:return mf(Et);case 214:return B_(Et);case 215:return vd(Et);case 216:return td(Et);case 217:return rp(Et);case 218:return _i(Et);case 219:return er(Et);case 220:return ri(Et);case 221:return $n(Et);case 222:return xo(Et);case 223:return Lc(Et);case 224:return tl(Et);case 225:return Fd(Et);case 226:return lo(Et);case 227:return Wf(Et);case 228:return Md(Et);case 229:return j_(Et);case 230:return tg(Et);case 231:return Rg(Et);case 232:return;case 234:return A0(Et);case 235:return gh(Et);case 233:return e0(Et);case 238:return wp(Et);case 236:return xb(Et);case 237:return Se.fail("SyntheticExpression should never be printed.");case 282:return;case 284:return L0(Et);case 285:return Cb(Et);case 288:return O0(Et);case 352:return Se.fail("SyntaxList should not be printed");case 353:return;case 354:return Ex(Et);case 355:return pI(Et);case 356:return Se.fail("SyntheticReferenceExpression should not be printed")}if(Gv(Et.kind))return cS(Et,ro);if(RT(Et.kind))return cS(Et,aa);Se.fail(`Unhandled SyntaxKind: ${Se.formatSyntaxKind(Et.kind)}.`)}function Ie(de){lt(de.name),ys(),ro("in"),ys(),lt(de.constraint)}function Bt(de,Et){let Gi=pt(1,de,Et);Se.assertIsDefined(Bn),Et=Bn,Bn=void 0,Gi(de,Et)}function ui(de){let Et=!1,Gi=de.kind===308?de:void 0;if(Gi&&U===0)return;let rr=Gi?Gi.sourceFiles.length:1;for(let as=0;as")}function Fa(de){ys(),lt(de.type)}function Pf(de){ro("function"),Tw(de,de.parameters),aa(":"),lt(de.type)}function $l(de){aa("?"),lt(de.type)}function cc(de){aa("!"),lt(de.type)}function vl(de){lt(de.type),aa("=")}function G_(de){oa(de,de.modifiers),ro("new"),ys(),eh(de,_a,Fa)}function ja(de){ro("typeof"),ys(),lt(de.exprName),ra(de,de.typeArguments)}function Gd(de){Ah(de),ee(de.members,yT),aa("{");let Et=N_(de)&1?768:32897;yp(de,de.members,Et|524288),aa("}"),t1(de)}function Su(de){lt(de.elementType,zr.parenthesizeNonArrayTypeOfPostfixType),aa("["),aa("]")}function Aa(de){aa("..."),lt(de.type)}function gr(de){Xt(23,de.pos,aa,de);let Et=N_(de)&1?528:657;yp(de,de.elements,Et|524288,zr.parenthesizeElementTypeOfTupleType),Xt(24,de.elements.end,aa,de)}function Wl(de){lt(de.dotDotDotToken),lt(de.name),lt(de.questionToken),Xt(59,de.name.end,aa,de),ys(),lt(de.type)}function Vc(de){lt(de.type,zr.parenthesizeTypeOfOptionalType),aa("?")}function xu(de){yp(de,de.types,516,zr.parenthesizeConstituentTypeOfUnionType)}function Ar(de){yp(de,de.types,520,zr.parenthesizeConstituentTypeOfIntersectionType)}function Hl(de){lt(de.checkType,zr.parenthesizeCheckTypeOfConditionalType),ys(),ro("extends"),ys(),lt(de.extendsType,zr.parenthesizeExtendsTypeOfConditionalType),ys(),aa("?"),ys(),lt(de.trueType),ys(),aa(":"),ys(),lt(de.falseType)}function Lf(de){ro("infer"),ys(),lt(de.typeParameter)}function Rt(de){aa("("),lt(de.type),aa(")")}function bt(){ro("this")}function Ci(de){lS(de.operator,ro),ys();let Et=de.operator===148?zr.parenthesizeOperandOfReadonlyTypeOperator:zr.parenthesizeOperandOfTypeOperator;lt(de.type,Et)}function kn(de){lt(de.objectType,zr.parenthesizeNonArrayTypeOfPostfixType),aa("["),lt(de.indexType),aa("]")}function ke(de){let Et=N_(de);aa("{"),Et&1?ys():(M0(),Uh()),de.readonlyToken&&(lt(de.readonlyToken),de.readonlyToken.kind!==148&&ro("readonly"),ys()),aa("["),Ve(3,de.typeParameter),de.nameType&&(ys(),ro("as"),ys(),lt(de.nameType)),aa("]"),de.questionToken&&(lt(de.questionToken),de.questionToken.kind!==58&&aa("?")),aa(":"),ys(),lt(de.type),rm(),Et&1?ys():(M0(),Nh()),yp(de,de.members,2),aa("}")}function Qt(de){nt(de.literal)}function oi(de){lt(de.head),yp(de,de.templateSpans,262144)}function nn(de){de.isTypeOf&&(ro("typeof"),ys()),ro("import"),aa("("),lt(de.argument),de.attributes&&(aa(","),ys(),Ve(7,de.attributes)),aa(")"),de.qualifier&&(aa("."),lt(de.qualifier)),ra(de,de.typeArguments)}function hr(de){aa("{"),yp(de,de.elements,525136),aa("}")}function io(de){aa("["),yp(de,de.elements,524880),aa("]")}function Er(de){lt(de.dotDotDotToken),de.propertyName&&(lt(de.propertyName),aa(":"),ys()),lt(de.name),hT(de.initializer,de.name.end,de,zr.parenthesizeExpressionForDisallowedComma)}function is(de){let Et=de.elements,Gi=de.multiLine?65536:0;a2(de,Et,8914|Gi,zr.parenthesizeExpressionForDisallowedComma)}function zs(de){Ah(de),ee(de.properties,yT);let Et=N_(de)&131072;Et&&Uh();let Gi=de.multiLine?65536:0,rr=K&&K.languageVersion>=1&&!qv(K)?64:0;yp(de,de.properties,526226|rr|Gi),Et&&Nh(),t1(de)}function da(de){nt(de.expression,zr.parenthesizeLeftSideOfAccess);let Et=de.questionDotToken||KT(Me.createToken(25),de.expression.end,de.name.pos),Gi=O1(de,de.expression,Et),rr=O1(de,Et,de.name);kb(Gi,!1),Et.kind!==29&&cu(de.expression)&&!Oe.hasTrailingComment()&&!Oe.hasTrailingWhitespace()&&aa("."),de.questionDotToken?lt(Et):Xt(Et.kind,de.expression.end,aa,de),kb(rr,!1),lt(de.name),gT(Gi,rr)}function cu(de){if(de=dh(de),mx(de)){let Et=tk(de,void 0,!0,!1);return!(de.numericLiteralFlags&448)&&!Et.includes(Ef(25))&&!Et.includes("E")&&!Et.includes("e")}else if(cf(de)){let Et=oI(de);return typeof Et=="number"&&isFinite(Et)&&Et>=0&&Math.floor(Et)===Et}}function ru(de){nt(de.expression,zr.parenthesizeLeftSideOfAccess),lt(de.questionDotToken),Xt(23,de.expression.end,aa,de),nt(de.argumentExpression),Xt(24,de.argumentExpression.end,aa,de)}function mf(de){let Et=RC(de)&16;Et&&(aa("("),sa("0"),aa(","),ys()),nt(de.expression,zr.parenthesizeLeftSideOfAccess),Et&&aa(")"),lt(de.questionDotToken),ra(de,de.typeArguments),a2(de,de.arguments,2576,zr.parenthesizeExpressionForDisallowedComma)}function B_(de){Xt(105,de.pos,ro,de),ys(),nt(de.expression,zr.parenthesizeExpressionOfNew),ra(de,de.typeArguments),a2(de,de.arguments,18960,zr.parenthesizeExpressionForDisallowedComma)}function vd(de){let Et=RC(de)&16;Et&&(aa("("),sa("0"),aa(","),ys()),nt(de.tag,zr.parenthesizeLeftSideOfAccess),Et&&aa(")"),ra(de,de.typeArguments),ys(),nt(de.template)}function td(de){aa("<"),lt(de.type),aa(">"),nt(de.expression,zr.parenthesizeOperandOfPrefixUnary)}function rp(de){let Et=Xt(21,de.pos,aa,de),Gi=e6(de.expression,de);nt(de.expression,void 0),pD(de.expression,de),gT(Gi),Xt(22,de.expression?de.expression.end:Et,aa,de)}function _i(de){i0(de.name),ng(de)}function er(de){oa(de,de.modifiers),eh(de,wo,cl)}function wo(de){Wp(de,de.typeParameters),Ew(de,de.parameters),yh(de.type),ys(),lt(de.equalsGreaterThanToken)}function cl(de){qu(de.body)?iy(de.body):(ys(),nt(de.body,zr.parenthesizeConciseBodyOfArrowFunction))}function ri(de){Xt(91,de.pos,ro,de),ys(),nt(de.expression,zr.parenthesizeOperandOfPrefixUnary)}function $n(de){Xt(114,de.pos,ro,de),ys(),nt(de.expression,zr.parenthesizeOperandOfPrefixUnary)}function xo(de){Xt(116,de.pos,ro,de),ys(),nt(de.expression,zr.parenthesizeOperandOfPrefixUnary)}function Lc(de){Xt(135,de.pos,ro,de),ys(),nt(de.expression,zr.parenthesizeOperandOfPrefixUnary)}function tl(de){lS(de.operator,Z2),il(de)&&ys(),nt(de.operand,zr.parenthesizeOperandOfPrefixUnary)}function il(de){let Et=de.operand;return Et.kind===224&&(de.operator===40&&(Et.operator===40||Et.operator===46)||de.operator===41&&(Et.operator===41||Et.operator===47))}function Fd(de){nt(de.operand,zr.parenthesizeOperandOfPostfixUnary),lS(de.operator,Z2)}function hp(){return Qwe(de,Et,Gi,rr,as,void 0);function de(Qc,Sl){if(Sl){Sl.stackIndex++,Sl.preserveSourceNewlinesStack[Sl.stackIndex]=Ge,Sl.containerPosStack[Sl.stackIndex]=ht,Sl.containerEndStack[Sl.stackIndex]=Kt,Sl.declarationListContainerEndStack[Sl.stackIndex]=ni;let ml=Sl.shouldEmitCommentsStack[Sl.stackIndex]=Tt(Qc),bm=Sl.shouldEmitSourceMapsStack[Sl.stackIndex]=dt(Qc);v?.(Qc),ml&&SI(Qc),bm&&i1(Qc),Pe(Qc)}else Sl={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return Sl}function Et(Qc,Sl,ml){return Hc(Qc,ml,"left")}function Gi(Qc,Sl,ml){let bm=Qc.kind!==28,Um=O1(ml,ml.left,Qc),B1=O1(ml,Qc,ml.right);kb(Um,bm),vD(Qc.pos),cS(Qc,Qc.kind===103?ro:Z2),mC(Qc.end,!0),kb(B1,!0)}function rr(Qc,Sl,ml){return Hc(Qc,ml,"right")}function as(Qc,Sl){let ml=O1(Qc,Qc.left,Qc.operatorToken),bm=O1(Qc,Qc.operatorToken,Qc.right);if(gT(ml,bm),Sl.stackIndex>0){let Um=Sl.preserveSourceNewlinesStack[Sl.stackIndex],B1=Sl.containerPosStack[Sl.stackIndex],bT=Sl.containerEndStack[Sl.stackIndex],Ib=Sl.declarationListContainerEndStack[Sl.stackIndex],Dw=Sl.shouldEmitCommentsStack[Sl.stackIndex],u2=Sl.shouldEmitSourceMapsStack[Sl.stackIndex];St(Um),u2&&n1(Qc),Dw&&gD(Qc,B1,bT,Ib),x?.(Qc),Sl.stackIndex--}}function Hc(Qc,Sl,ml){let bm=ml==="left"?zr.getParenthesizeLeftSideOfBinaryForOperator(Sl.operatorToken.kind):zr.getParenthesizeRightSideOfBinaryForOperator(Sl.operatorToken.kind),Um=Wt(0,1,Qc);if(Um===Bt&&(Se.assertIsDefined(Bn),Qc=bm($d(Bn,An)),Um=pt(1,1,Qc),Bn=void 0),(Um===bI||Um===JS||Um===Mt)&&ms(Qc))return Qc;mr=bm,Um(1,Qc)}}function Wf(de){let Et=O1(de,de.condition,de.questionToken),Gi=O1(de,de.questionToken,de.whenTrue),rr=O1(de,de.whenTrue,de.colonToken),as=O1(de,de.colonToken,de.whenFalse);nt(de.condition,zr.parenthesizeConditionOfConditionalExpression),kb(Et,!0),lt(de.questionToken),kb(Gi,!0),nt(de.whenTrue,zr.parenthesizeBranchOfConditionalExpression),gT(Et,Gi),kb(rr,!0),lt(de.colonToken),kb(as,!0),nt(de.whenFalse,zr.parenthesizeBranchOfConditionalExpression),gT(rr,as)}function Md(de){lt(de.head),yp(de,de.templateSpans,262144)}function j_(de){Xt(127,de.pos,ro,de),lt(de.asteriskToken),Uy(de.expression&&Rs(de.expression),Ja)}function tg(de){Xt(26,de.pos,aa,de),nt(de.expression,zr.parenthesizeExpressionForDisallowedComma)}function Rg(de){i0(de.name),A1(de)}function e0(de){nt(de.expression,zr.parenthesizeLeftSideOfAccess),ra(de,de.typeArguments)}function A0(de){nt(de.expression,void 0),de.type&&(ys(),ro("as"),ys(),lt(de.type))}function gh(de){nt(de.expression,zr.parenthesizeLeftSideOfAccess),Z2("!")}function wp(de){nt(de.expression,void 0),de.type&&(ys(),ro("satisfies"),ys(),lt(de.type))}function xb(de){Ix(de.keywordToken,de.pos,aa),aa("."),lt(de.name)}function ig(de){nt(de.expression),lt(de.literal)}function wg(de){Ap(de,!de.multiLine&&mD(de))}function Ap(de,Et){Xt(19,de.pos,aa,de);let Gi=Et||N_(de)&1?768:129;yp(de,de.statements,Gi),Xt(20,de.statements.end,aa,de,!!(Gi&1))}function xt(de){Kc(de,de.modifiers,!1),lt(de.declarationList),rm()}function ln(de){de?aa(";"):rm()}function Dr(de){nt(de.expression,zr.parenthesizeExpressionOfExpressionStatement),(!K||!qv(K)||um(de.expression))&&rm()}function Tr(de){let Et=Xt(101,de.pos,ro,de);ys(),Xt(21,Et,aa,de),nt(de.expression),Xt(22,de.expression.end,aa,de),fC(de,de.thenStatement),de.elseStatement&&(Jy(de,de.thenStatement,de.elseStatement),Xt(93,de.thenStatement.end,ro,de),de.elseStatement.kind===245?(ys(),lt(de.elseStatement)):fC(de,de.elseStatement))}function st(de,Et){let Gi=Xt(117,Et,ro,de);ys(),Xt(21,Gi,aa,de),nt(de.expression),Xt(22,de.expression.end,aa,de)}function gi(de){Xt(92,de.pos,ro,de),fC(de,de.statement),qu(de.statement)&&!Ge?ys():Jy(de,de.statement,de.expression),st(de,de.statement.end),rm()}function an(de){st(de,de.pos),fC(de,de.statement)}function yn(de){let Et=Xt(99,de.pos,ro,de);ys();let Gi=Xt(21,Et,aa,de);Vi(de.initializer),Gi=Xt(27,de.initializer?de.initializer.end:Gi,aa,de),Uy(de.condition),Gi=Xt(27,de.condition?de.condition.end:Gi,aa,de),Uy(de.incrementor),Xt(22,de.incrementor?de.incrementor.end:Gi,aa,de),fC(de,de.statement)}function Be(de){let Et=Xt(99,de.pos,ro,de);ys(),Xt(21,Et,aa,de),Vi(de.initializer),ys(),Xt(103,de.initializer.end,ro,de),ys(),nt(de.expression),Xt(22,de.expression.end,aa,de),fC(de,de.statement)}function Ft(de){let Et=Xt(99,de.pos,ro,de);ys(),Y2(de.awaitModifier),Xt(21,Et,aa,de),Vi(de.initializer),ys(),Xt(165,de.initializer.end,ro,de),ys(),nt(de.expression),Xt(22,de.expression.end,aa,de),fC(de,de.statement)}function Vi(de){de!==void 0&&(de.kind===261?lt(de):nt(de))}function yr(de){Xt(88,de.pos,ro,de),dD(de.label),rm()}function He(de){Xt(83,de.pos,ro,de),dD(de.label),rm()}function Xt(de,Et,Gi,rr,as){let Hc=ju(rr),Qc=Hc&&Hc.kind===rr.kind,Sl=Et;if(Qc&&K&&(Et=fd(K.text,Et)),Qc&&rr.pos!==Sl){let ml=as&&K&&!sv(Sl,Et,K);ml&&Uh(),vD(Sl),ml&&Nh()}if(!R&&(de===19||de===20)?Et=Ix(de,Et,Gi,rr):Et=lS(de,Gi,Et),Qc&&rr.end!==Et){let ml=rr.kind===294;mC(Et,!ml,ml)}return Et}function un(de){return de.kind===2||!!de.hasTrailingNewLine}function Ur(de){if(!K)return!1;let Et=PA(K.text,de.pos);if(Et){let Gi=ju(de);if(Gi&&Tu(Gi.parent))return!0}return En(Et,un)||En(aL(de),un)?!0:mw(de)?de.pos!==de.expression.pos&&En(L6(K.text,de.expression.pos),un)?!0:Ur(de.expression):!1}function Rs(de){if(!Bi&&mw(de)&&Ur(de)){let Et=ju(de);if(Et&&Tu(Et)){let Gi=Me.createParenthesizedExpression(de.expression);return Wo(Gi,de),Fn(Gi,Et),Gi}return Me.createParenthesizedExpression(de)}return de}function Ja(de){return Rs(zr.parenthesizeExpressionForDisallowedComma(de))}function Tc(de){Xt(107,de.pos,ro,de),Uy(de.expression&&Rs(de.expression),Rs),rm()}function Jl(de){let Et=Xt(118,de.pos,ro,de);ys(),Xt(21,Et,aa,de),nt(de.expression),Xt(22,de.expression.end,aa,de),fC(de,de.statement)}function Id(de){let Et=Xt(109,de.pos,ro,de);ys(),Xt(21,Et,aa,de),nt(de.expression),Xt(22,de.expression.end,aa,de),ys(),lt(de.caseBlock)}function bd(de){lt(de.label),Xt(59,de.label.end,aa,de),ys(),lt(de.statement)}function op(de){Xt(111,de.pos,ro,de),Uy(Rs(de.expression),Rs),rm()}function Pv(de){Xt(113,de.pos,ro,de),ys(),lt(de.tryBlock),de.catchClause&&(Jy(de,de.tryBlock,de.catchClause),lt(de.catchClause)),de.finallyBlock&&(Jy(de,de.catchClause||de.tryBlock,de.finallyBlock),Xt(98,(de.catchClause||de.tryBlock).end,ro,de),ys(),lt(de.finallyBlock))}function Lv(de){Ix(89,de.pos,ro),rm()}function P0(de){var Et,Gi,rr;lt(de.name),lt(de.exclamationToken),yh(de.type),hT(de.initializer,((Et=de.type)==null?void 0:Et.end)??((rr=(Gi=de.name.emitNode)==null?void 0:Gi.typeNode)==null?void 0:rr.end)??de.name.end,de,zr.parenthesizeExpressionForDisallowedComma)}function Ny(de){if(q6(de))ro("await"),ys(),ro("using");else{let Et=p5(de)?"let":W7(de)?"const":pj(de)?"using":"var";ro(Et)}ys(),yp(de,de.declarations,528)}function y_(de){ng(de)}function ng(de){Kc(de,de.modifiers,!1),ro("function"),lt(de.asteriskToken),ys(),Xi(de.name),eh(de,Ay,m0)}function eh(de,Et,Gi){let rr=N_(de)&131072;rr&&Uh(),Ah(de),ee(de.parameters,__),Et(de),Gi(de),t1(de),rr&&Nh()}function m0(de){let Et=de.body;Et?iy(Et):rm()}function Z_(de){rm()}function Ay(de){Wp(de,de.typeParameters),Tw(de,de.parameters),yh(de.type)}function Py(de){if(N_(de)&1)return!0;if(de.multiLine||!um(de)&&K&&!F8(de,K)||fD(de,Ed(de.statements),2)||_D(de,Y_(de.statements),2,de.statements))return!1;let Et;for(let Gi of de.statements){if(hI(Et,Gi,2)>0)return!1;Et=Gi}return!0}function iy(de){__(de),v?.(de),ys(),aa("{"),Uh();let Et=Py(de)?sC:h0;mv(de,de.statements,Et),Nh(),Ix(20,de.statements.end,aa,de),x?.(de)}function sC(de){h0(de,!0)}function h0(de,Et){let Gi=Ou(de.statements),rr=Oe.getTextPos();ui(de),Gi===0&&rr===Oe.getTextPos()&&Et?(Nh(),yp(de,de.statements,768),Uh()):yp(de,de.statements,1,void 0,Gi)}function aC(de){A1(de)}function A1(de){Kc(de,de.modifiers,!0),Xt(86,JE(de).pos,ro,de),de.name&&(ys(),Xi(de.name));let Et=N_(de)&131072;Et&&Uh(),Wp(de,de.typeParameters),yp(de,de.heritageClauses,0),ys(),aa("{"),Ah(de),ee(de.members,yT),yp(de,de.members,129),t1(de),aa("}"),Et&&Nh()}function dv(de){Kc(de,de.modifiers,!1),ro("interface"),ys(),lt(de.name),Wp(de,de.typeParameters),yp(de,de.heritageClauses,512),ys(),aa("{"),Ah(de),ee(de.members,yT),yp(de,de.members,129),t1(de),aa("}")}function Ov(de){Kc(de,de.modifiers,!1),ro("type"),ys(),lt(de.name),Wp(de,de.typeParameters),ys(),aa("="),ys(),lt(de.type),rm()}function xi(de){Kc(de,de.modifiers,!1),ro("enum"),ys(),lt(de.name),ys(),aa("{"),yp(de,de.members,145),aa("}")}function Ui(de){Kc(de,de.modifiers,!1),~de.flags&2048&&(ro(de.flags&32?"namespace":"module"),ys()),lt(de.name);let Et=de.body;if(!Et)return rm();for(;Et&&Dh(Et);)aa("."),lt(Et.name),Et=Et.body;ys(),lt(Et)}function nr(de){Ah(de),ee(de.statements,__),Ap(de,mD(de)),t1(de)}function Hr(de){Xt(19,de.pos,aa,de),yp(de,de.clauses,129),Xt(20,de.clauses.end,aa,de,!0)}function yo(de){Kc(de,de.modifiers,!1),Xt(102,de.modifiers?de.modifiers.end:de.pos,ro,de),ys(),de.isTypeOnly&&(Xt(156,de.pos,ro,de),ys()),lt(de.name),ys(),Xt(64,de.name.end,aa,de),ys(),fs(de.moduleReference),rm()}function fs(de){de.kind===80?nt(de):lt(de)}function Co(de){Kc(de,de.modifiers,!1),Xt(102,de.modifiers?de.modifiers.end:de.pos,ro,de),ys(),de.importClause&&(lt(de.importClause),ys(),Xt(161,de.importClause.end,ro,de),ys()),nt(de.moduleSpecifier),de.attributes&&dD(de.attributes),rm()}function Os(de){de.isTypeOnly&&(Xt(156,de.pos,ro,de),ys()),lt(de.name),de.name&&de.namedBindings&&(Xt(28,de.name.end,aa,de),ys()),lt(de.namedBindings)}function Jc(de){let Et=Xt(42,de.pos,aa,de);ys(),Xt(130,Et,ro,de),ys(),lt(de.name)}function qt(de){Us(de)}function bi(de){Pu(de)}function Li(de){let Et=Xt(95,de.pos,ro,de);ys(),de.isExportEquals?Xt(64,Et,Z2,de):Xt(90,Et,ro,de),ys(),nt(de.expression,de.isExportEquals?zr.getParenthesizeRightSideOfBinaryForOperator(64):zr.parenthesizeExpressionOfExportDefault),rm()}function Yn(de){Kc(de,de.modifiers,!1);let Et=Xt(95,de.pos,ro,de);if(ys(),de.isTypeOnly&&(Et=Xt(156,Et,ro,de),ys()),de.exportClause?lt(de.exportClause):Et=Xt(42,Et,aa,de),de.moduleSpecifier){ys();let Gi=de.exportClause?de.exportClause.end:Et;Xt(161,Gi,ro,de),ys(),nt(de.moduleSpecifier)}de.attributes&&dD(de.attributes),rm()}function Mr(de){aa("{"),ys(),ro(de.token===132?"assert":"with"),aa(":"),ys();let Et=de.elements;yp(de,Et,526226),ys(),aa("}")}function Bo(de){Xt(de.token,de.pos,ro,de),ys();let Et=de.elements;yp(de,Et,526226)}function bo(de){lt(de.name),aa(":"),ys();let Et=de.value;if(!(N_(Et)&1024)){let Gi=Nv(Et);mC(Gi.pos)}lt(Et)}function Zs(de){let Et=Xt(95,de.pos,ro,de);ys(),Et=Xt(130,Et,ro,de),ys(),Et=Xt(145,Et,ro,de),ys(),lt(de.name),rm()}function jc(de){let Et=Xt(42,de.pos,aa,de);ys(),Xt(130,Et,ro,de),ys(),lt(de.name)}function bs(de){Us(de)}function nl(de){Pu(de)}function Us(de){aa("{"),yp(de,de.elements,525136),aa("}")}function Pu(de){de.isTypeOnly&&(ro("type"),ys()),de.propertyName&&(lt(de.propertyName),ys(),Xt(130,de.propertyName.end,ro,de),ys()),lt(de.name)}function ep(de){ro("require"),aa("("),nt(de.expression),aa(")")}function L0(de){lt(de.openingElement),yp(de,de.children,262144),lt(de.closingElement)}function Cb(de){aa("<"),Zv(de.tagName),ra(de,de.typeArguments),ys(),lt(de.attributes),aa("/>")}function O0(de){lt(de.openingFragment),yp(de,de.children,262144),lt(de.closingFragment)}function HS(de){if(aa("<"),Y0(de)){let Et=e6(de.tagName,de);Zv(de.tagName),ra(de,de.typeArguments),de.attributes.properties&&de.attributes.properties.length>0&&ys(),lt(de.attributes),pD(de.attributes,de),gT(Et)}aa(">")}function t0(de){Oe.writeLiteral(de.text)}function cD(de){aa("")}function cC(de){yp(de,de.properties,262656)}function Ok(de){lt(de.name),dC("=",aa,de.initializer,Lt)}function lf(de){aa("{..."),nt(de.expression),aa("}")}function s2(de){let Et=!1;return Mf(K?.text||"",de+1,()=>Et=!0),Et}function wx(de){let Et=!1;return iZ(K?.text||"",de+1,()=>Et=!0),Et}function kw(de){return s2(de)||wx(de)}function QC(de){var Et;if(de.expression||!Bi&&!um(de)&&kw(de.pos)){let Gi=K&&!um(de)&&Df(K,de.pos).line!==Df(K,de.end).line;Gi&&Oe.increaseIndent();let rr=Xt(19,de.pos,aa,de);lt(de.dotDotDotToken),nt(de.expression),Xt(20,((Et=de.expression)==null?void 0:Et.end)||rr,aa,de),Gi&&Oe.decreaseIndent()}}function US(de){Xi(de.namespace),aa(":"),Xi(de.name)}function Zv(de){de.kind===80?nt(de):lt(de)}function fv(de){Xt(84,de.pos,ro,de),ys(),nt(de.expression,zr.parenthesizeExpressionForDisallowedComma),Gu(de,de.statements,de.expression.end)}function _v(de){let Et=Xt(90,de.pos,ro,de);Gu(de,de.statements,Et)}function Gu(de,Et,Gi){let rr=Et.length===1&&(!K||um(de)||um(Et[0])||$T(de,Et[0],K)),as=163969;rr?(Ix(59,Gi,aa,de),ys(),as&=-130):Xt(59,Gi,aa,de),yp(de,Et,as)}function pT(de){ys(),lS(de.token,ro),ys(),yp(de,de.types,528)}function pP(de){let Et=Xt(85,de.pos,ro,de);ys(),de.variableDeclaration&&(Xt(21,Et,aa,de),lt(de.variableDeclaration),Xt(22,de.variableDeclaration.end,aa,de),ys()),lt(de.block)}function fI(de){lt(de.name),aa(":"),ys();let Et=de.initializer;if(!(N_(Et)&1024)){let Gi=Nv(Et);mC(Gi.pos)}nt(Et,zr.parenthesizeExpressionForDisallowedComma)}function ZC(de){lt(de.name),de.objectAssignmentInitializer&&(ys(),aa("="),ys(),nt(de.objectAssignmentInitializer,zr.parenthesizeExpressionForDisallowedComma))}function Tx(de){de.expression&&(Xt(26,de.pos,aa,de),nt(de.expression,zr.parenthesizeExpressionForDisallowedComma))}function e1(de){lt(de.name),hT(de.initializer,de.name.end,de,zr.parenthesizeExpressionForDisallowedComma)}function P1(de){if($e("/**"),de.comment){let Et=ij(de.comment);if(Et){let Gi=Et.split(/\r\n?|\n/);for(let rr of Gi)M0(),ys(),aa("*"),ys(),$e(rr)}}de.tags&&(de.tags.length===1&&de.tags[0].kind===344&&!de.comment?(ys(),lt(de.tags[0])):yp(de,de.tags,33)),ys(),$e("*/")}function gp(de){mT(de.tagName),Ly(de.typeExpression),ki(de.comment)}function ny(de){mT(de.tagName),lt(de.name),ki(de.comment)}function lD(de){mT(de.tagName),ys(),de.importClause&&(lt(de.importClause),ys(),Xt(161,de.importClause.end,ro,de),ys()),nt(de.moduleSpecifier),de.attributes&&dD(de.attributes),ki(de.comment)}function Fk(de){ys(),aa("{"),lt(de.name),aa("}")}function Tg(de){mT(de.tagName),ys(),aa("{"),lt(de.class),aa("}"),ki(de.comment)}function Oi(de){mT(de.tagName),Ly(de.constraint),ys(),yp(de,de.typeParameters,528),ki(de.comment)}function L1(de){mT(de.tagName),de.typeExpression&&(de.typeExpression.kind===309?Ly(de.typeExpression):(ys(),aa("{"),$e("Object"),de.typeExpression.isArrayType&&(aa("["),aa("]")),aa("}"))),de.fullName&&(ys(),lt(de.fullName)),ki(de.comment),de.typeExpression&&de.typeExpression.kind===322&&pv(de.typeExpression)}function zm(de){mT(de.tagName),de.name&&(ys(),lt(de.name)),ki(de.comment),Bg(de.typeExpression)}function _I(de){ki(de.comment),Bg(de.typeExpression)}function Hh(de){mT(de.tagName),ki(de.comment)}function pv(de){yp(de,Me.createNodeArray(de.jsDocPropertyTags),33)}function Bg(de){de.typeParameters&&yp(de,Me.createNodeArray(de.typeParameters),33),de.parameters&&yp(de,Me.createNodeArray(de.parameters),33),de.type&&(M0(),ys(),aa("*"),ys(),lt(de.type))}function Mk(de){mT(de.tagName),Ly(de.typeExpression),ys(),de.isBracketed&&aa("["),lt(de.name),de.isBracketed&&aa("]"),ki(de.comment)}function mT(de){aa("@"),lt(de)}function ki(de){let Et=ij(de);Et&&(ys(),$e(Et))}function Ly(de){de&&(ys(),aa("{"),lt(de.type),aa("}"))}function lC(de){M0();let Et=de.statements;if(Et.length===0||!cw(Et[0])||um(Et[0])){mv(de,Et,uC);return}uC(de)}function uD(de){Rk(!!de.hasNoDefaultLib,de.syntheticFileReferences||[],de.syntheticTypeReferences||[],de.syntheticLibReferences||[])}function mP(de){de.isDeclarationFile&&Rk(de.hasNoDefaultLib,de.referencedFiles,de.typeReferenceDirectives,de.libReferenceDirectives)}function Rk(de,Et,Gi,rr){if(de&&(F0('/// '),M0()),K&&K.moduleName&&(F0(`/// `),M0()),K&&K.amdDependencies)for(let Hc of K.amdDependencies)Hc.name?F0(`/// `):F0(`/// `),M0();function as(Hc,Qc){for(let Sl of Qc){let ml=Sl.resolutionMode?`resolution-mode="${Sl.resolutionMode===99?"import":"require"}" `:"",bm=Sl.preserve?'preserve="true" ':"";F0(`/// `),M0()}}as("path",Et),as("types",Gi),as("lib",rr)}function uC(de){let Et=de.statements;Ah(de),ee(de.statements,__),ui(de);let Gi=_n(Et,rr=>!cw(rr));mP(de),yp(de,Et,1,void 0,Gi===-1?Et.length:Gi),t1(de)}function Ex(de){let Et=N_(de);!(Et&1024)&&de.pos!==de.expression.pos&&mC(de.expression.pos),nt(de.expression),!(Et&2048)&&de.end!==de.expression.end&&vD(de.expression.end)}function pI(de){a2(de,de.elements,528,void 0)}function Ou(de,Et,Gi){let rr=!!Et;for(let as=0;as=Gi.length||Qc===0;if(ml&&rr&32768){k?.(Gi),T?.(Gi);return}rr&15360&&(aa(PFe(rr)),ml&&Gi&&mC(Gi.pos,!0)),k?.(Gi),ml?rr&1&&!(Ge&&(!Et||K&&F8(Et,K)))?M0():rr&256&&!(rr&524288)&&ys():Dx(de,Et,Gi,rr,as,Hc,Qc,Gi.hasTrailingComma,Gi),T?.(Gi),rr&15360&&(ml&&Gi&&vD(Gi.end),aa(SXe(rr)))}function Dx(de,Et,Gi,rr,as,Hc,Qc,Sl,ml){let bm=(rr&262144)===0,Um=bm,B1=fD(Et,Gi[Hc],rr);B1?(M0(B1),Um=!1):rr&256&&ys(),rr&128&&Uh();let bT=E2e(de,as),Ib,Dw=!1;for(let _S=0;_S0){if(rr&131||(Uh(),Dw=!0),Um&&rr&60&&!hN(cs.pos)){let EL=Nv(cs);mC(EL.pos,!!(rr&512),!0)}M0(xI),Um=!1}else Ib&&rr&512&&ys()}if(Um){let xI=Nv(cs);mC(xI.pos)}else Um=bm;he=cs.pos,bT(cs,de,as,_S),Dw&&(Nh(),Dw=!1),Ib=cs}let u2=Ib?N_(Ib):0,ST=Bi||!!(u2&2048),bD=Sl&&rr&64&&rr&16;bD&&(Ib&&!ST?Xt(28,Ib.end,aa,Ib):aa(",")),Ib&&(Et?Et.end:-1)!==Ib.end&&rr&60&&!ST&&vD(bD&&ml?.end?ml.end:Ib.end),rr&128&&Nh();let hl=_D(Et,Gi[Hc+Qc-1],rr,ml);hl?M0(hl):rr&2097408&&ys()}function sa(de){Oe.writeLiteral(de)}function ry(de){Oe.writeStringLiteral(de)}function Cu(de){Oe.write(de)}function Q2(de,Et){Oe.writeSymbol(de,Et)}function aa(de){Oe.writePunctuation(de)}function rm(){Oe.writeTrailingSemicolon(";")}function ro(de){Oe.writeKeyword(de)}function Z2(de){Oe.writeOperator(de)}function Z4(de){Oe.writeParameter(de)}function F0(de){Oe.writeComment(de)}function ys(){Oe.writeSpace(" ")}function _C(de){Oe.writeProperty(de)}function c2(de){Oe.nonEscapingWrite?Oe.nonEscapingWrite(de):Oe.write(de)}function M0(de=1){for(let Et=0;Et0)}function Uh(){Oe.increaseIndent()}function Nh(){Oe.decreaseIndent()}function Ix(de,Et,Gi,rr){return qe?lS(de,Gi,Et):ge(rr,de,Gi,Et,lS)}function cS(de,Et){I&&I(de),Et(Ef(de.kind)),A&&A(de)}function lS(de,Et,Gi){let rr=Ef(de);return Et(rr),Gi<0?Gi:Gi+rr.length}function Jy(de,Et,Gi){if(N_(de)&1)ys();else if(Ge){let rr=O1(de,Et,Gi);rr?M0(rr):ys()}else M0()}function Bk(de){let Et=de.split(/\r\n?|\n/),Gi=GD(Et);for(let rr of Et){let as=Gi?rr.slice(Gi):rr;as.length&&(M0(),$e(as))}}function kb(de,Et){de?(Uh(),M0(de)):Et&&ys()}function gT(de,Et){de&&Nh(),Et&&Nh()}function fD(de,Et,Gi){if(Gi&2||Ge){if(Gi&65536)return 1;if(Et===void 0)return!de||K&&F8(de,K)?0:1;if(Et.pos===he||Et.kind===12)return 0;if(K&&de&&!hN(de.pos)&&!um(Et)&&(!Et.parent||Gm(Et.parent)===Gm(de)))return Ge?wb(rr=>OOe(Et.pos,de.pos,K,rr)):$T(de,Et,K)?0:1;if(eE(Et,Gi))return 1}return Gi&1?1:0}function hI(de,Et,Gi){if(Gi&2||Ge){if(de===void 0||Et===void 0||Et.kind===12)return 0;if(K&&!um(de)&&!um(Et))return Ge&&FN(de,Et)?wb(rr=>dw(de,Et,K,rr)):!Ge&&g0(de,Et)?_N(de,Et,K)?0:1:Gi&65536?1:0;if(eE(de,Gi)||eE(Et,Gi))return 1}else if(W5(Et))return 1;return Gi&1?1:0}function _D(de,Et,Gi,rr){if(Gi&2||Ge){if(Gi&65536)return 1;if(Et===void 0)return!de||K&&F8(de,K)?0:1;if(K&&de&&!hN(de.pos)&&!um(Et)&&(!Et.parent||Et.parent===de)){if(Ge){let as=rr&&!hN(rr.end)?rr.end:Et.end;return wb(Hc=>bme(as,de.end,K,Hc))}return D$e(de,Et,K)?0:1}if(eE(Et,Gi))return 1}return Gi&1&&!(Gi&131072)?1:0}function wb(de){Se.assert(!!Ge);let Et=de(!0);return Et===0?de(!1):Et}function e6(de,Et){let Gi=Ge&&fD(Et,de,0);return Gi&&kb(Gi,!1),!!Gi}function pD(de,Et){let Gi=Ge&&_D(Et,de,0,void 0);Gi&&M0(Gi)}function eE(de,Et){if(um(de)){let Gi=W5(de);return Gi===void 0?(Et&65536)!==0:Gi}return(Et&65536)!==0}function O1(de,Et,Gi){return N_(de)&262144?0:(de=Tb(de),Et=Tb(Et),Gi=Tb(Gi),W5(Gi)?1:K&&!um(de)&&!um(Et)&&!um(Gi)?Ge?wb(rr=>dw(Et,Gi,K,rr)):_N(Et,Gi,K)?0:1:0)}function mD(de){return de.statements.length===0&&(!K||_N(de,de,K))}function Tb(de){for(;de.kind===217&&um(de);)de=de.expression;return de}function jk(de,Et){if(Tm(de)||FA(de))return dS(de);if(Kf(de)&&de.textSourceNode)return jk(de.textSourceNode,Et);let Gi=K,rr=!!Gi&&!!de.parent&&!um(de);if(qD(de)){if(!rr||Vo(de)!==Gm(Gi))return Un(de)}else if(vx(de)){if(!rr||Vo(de)!==Gm(Gi))return XG(de)}else if(Se.assertNode(de,B6),!rr)return de.text;return S8(Gi,de,Et)}function tk(de,Et=K,Gi,rr){if(de.kind===11&&de.textSourceNode){let Hc=de.textSourceNode;if(Ai(Hc)||wl(Hc)||mx(Hc)||vx(Hc)){let Qc=mx(Hc)?Hc.text:jk(Hc);return rr?`"${rwe(Qc)}"`:Gi||N_(de)&16777216?`"${w4(Qc)}"`:`"${Ese(Qc)}"`}else return tk(Hc,Vo(Hc),Gi,rr)}let as=(Gi?1:0)|(rr?2:0)|(t.terminateUnterminatedLiterals?4:0)|(t.target&&t.target>=8?8:0);return Bpe(de,Et,as)}function Ah(de){le.push(Ee),Ee=0,we.push(Ae),!(de&&N_(de)&1048576)&&(xe.push(be),be=0,_e.push(ae),ae=void 0,Le.push(fe))}function t1(de){Ee=le.pop(),Ae=we.pop(),!(de&&N_(de)&1048576)&&(be=xe.pop(),ae=_e.pop(),fe=Le.pop())}function uS(de){(!fe||fe===Y_(Le))&&(fe=new Set),fe.add(de)}function Vm(de){(!Ae||Ae===Y_(we))&&(Ae=new Set),Ae.add(de)}function __(de){if(de)switch(de.kind){case 241:ee(de.statements,__);break;case 256:case 254:case 246:case 247:__(de.statement);break;case 245:__(de.thenStatement),__(de.elseStatement);break;case 248:case 250:case 249:__(de.initializer),__(de.statement);break;case 255:__(de.caseBlock);break;case 269:ee(de.clauses,__);break;case 296:case 297:ee(de.statements,__);break;case 258:__(de.tryBlock),__(de.catchClause),__(de.finallyBlock);break;case 299:__(de.variableDeclaration),__(de.block);break;case 243:__(de.declarationList);break;case 261:ee(de.declarations,__);break;case 260:case 169:case 208:case 263:i0(de.name);break;case 262:i0(de.name),N_(de)&1048576&&(ee(de.parameters,__),__(de.body));break;case 206:case 207:ee(de.elements,__);break;case 272:__(de.importClause);break;case 273:i0(de.name),__(de.namedBindings);break;case 274:i0(de.name);break;case 280:i0(de.name);break;case 275:ee(de.elements,__);break;case 276:i0(de.propertyName||de.name);break}}function yT(de){if(de)switch(de.kind){case 303:case 304:case 172:case 171:case 174:case 173:case 177:case 178:i0(de.name);break}}function i0(de){de&&(Tm(de)||FA(de)?dS(de):Uu(de)&&__(de))}function dS(de){let Et=de.emitNode.autoGenerate;if((Et.flags&7)===4)return gI(uhe(de),wl(de),Et.flags,Et.prefix,Et.suffix);{let Gi=Et.id;return ne[Gi]||(ne[Gi]=kF(de))}}function gI(de,Et,Gi,rr,as){let Hc=pp(de),Qc=Et?X:re;return Qc[Hc]||(Qc[Hc]=zf(de,Et,Gi??0,wee(rr,dS),wee(as)))}function Eb(de,Et){return pC(de,Et)&&!hD(de,Et)&&!se.has(de)}function hD(de,Et){let Gi,rr;if(Et?(Gi=Ae,rr=we):(Gi=fe,rr=Le),Gi?.has(de))return!0;for(let as=rr.length-1;as>=0;as--)if(Gi!==rr[as]&&(Gi=rr[as],Gi?.has(de)))return!0;return!1}function pC(de,Et){return K?iG(K,de,a):!0}function Nm(de,Et){for(let Gi=Et;Gi&&G7(Gi,Et);Gi=Gi.nextContainer)if(zE(Gi)&&Gi.locals){let rr=Gi.locals.get(kh(de));if(rr&&rr.flags&3257279)return!1}return!0}function oy(de){switch(de){case"":return be;case"#":return Ee;default:return ae?.get(de)??0}}function th(de,Et){switch(de){case"":be=Et;break;case"#":Ee=Et;break;default:ae??(ae=new Map),ae.set(de,Et);break}}function qy(de,Et,Gi,rr,as){rr.length>0&&rr.charCodeAt(0)===35&&(rr=rr.slice(1));let Hc=rF(Gi,rr,"",as),Qc=oy(Hc);if(de&&!(Qc&de)){let ml=rF(Gi,rr,de===268435456?"_i":"_n",as);if(Eb(ml,Gi))return Qc|=de,Gi?Vm(ml):Et&&uS(ml),th(Hc,Qc),ml}for(;;){let Sl=Qc&268435455;if(Qc++,Sl!==8&&Sl!==13){let ml=Sl<26?"_"+String.fromCharCode(97+Sl):"_"+(Sl-26),bm=rF(Gi,rr,ml,as);if(Eb(bm,Gi))return Gi?Vm(bm):Et&&uS(bm),th(Hc,Qc),bm}}}function F1(de,Et=Eb,Gi,rr,as,Hc,Qc){if(de.length>0&&de.charCodeAt(0)===35&&(de=de.slice(1)),Hc.length>0&&Hc.charCodeAt(0)===35&&(Hc=Hc.slice(1)),Gi){let ml=rF(as,Hc,de,Qc);if(Et(ml,as))return as?Vm(ml):rr?uS(ml):se.add(ml),ml}de.charCodeAt(de.length-1)!==95&&(de+="_");let Sl=1;for(;;){let ml=rF(as,Hc,de+Sl,Qc);if(Et(ml,as))return as?Vm(ml):rr?uS(ml):se.add(ml),ml;Sl++}}function yI(de){return F1(de,pC,!0,!1,!1,"","")}function vT(de){let Et=jk(de.name);return Nm(Et,ac(de,zE))?Et:F1(Et,Eb,!1,!1,!1,"","")}function $y(de){let Et=Tj(de),Gi=Kf(Et)?v$e(Et.text):"module";return F1(Gi,Eb,!1,!1,!1,"","")}function l2(){return F1("default",Eb,!1,!1,!1,"","")}function vI(){return F1("class",Eb,!1,!1,!1,"","")}function hP(de,Et,Gi,rr){return Ai(de.name)?gI(de.name,Et):qy(0,!1,Et,Gi,rr)}function zf(de,Et,Gi,rr,as){switch(de.kind){case 80:case 81:return F1(jk(de),Eb,!!(Gi&16),!!(Gi&8),Et,rr,as);case 267:case 266:return Se.assert(!rr&&!as&&!Et),vT(de);case 272:case 278:return Se.assert(!rr&&!as&&!Et),$y(de);case 262:case 263:{Se.assert(!rr&&!as&&!Et);let Hc=de.name;return Hc&&!Tm(Hc)?zf(Hc,!1,Gi,rr,as):l2()}case 277:return Se.assert(!rr&&!as&&!Et),l2();case 231:return Se.assert(!rr&&!as&&!Et),vI();case 174:case 177:case 178:return hP(de,Et,rr,as);case 167:return qy(0,!0,Et,rr,as);default:return qy(0,!1,Et,rr,as)}}function kF(de){let Et=de.emitNode.autoGenerate,Gi=wee(Et.prefix,dS),rr=wee(Et.suffix);switch(Et.flags&7){case 1:return qy(0,!!(Et.flags&8),wl(de),Gi,rr);case 2:return Se.assertNode(de,Ai),qy(268435456,!!(Et.flags&8),!1,Gi,rr);case 3:return F1(Un(de),Et.flags&32?pC:Eb,!!(Et.flags&16),!!(Et.flags&8),wl(de),Gi,rr)}return Se.fail(`Unsupported GeneratedIdentifierKind: ${Se.formatEnum(Et.flags&7,Xs,!0)}.`)}function bI(de,Et){let Gi=pt(2,de,Et),rr=ht,as=Kt,Hc=ni;SI(Et),Gi(de,Et),gD(Et,rr,as,Hc)}function SI(de){let Et=N_(de),Gi=Nv(de);Gy(de,Et,Gi.pos,Gi.end),Et&4096&&(Bi=!0)}function gD(de,Et,Gi,rr){let as=N_(de),Hc=Nv(de);as&4096&&(Bi=!1),ON(de,as,Hc.pos,Hc.end,Et,Gi,rr);let Qc=tW(de);Qc&&ON(de,as,Qc.pos,Qc.end,Et,Gi,rr)}function Gy(de,Et,Gi,rr){Ei(),wi=!1;let as=Gi<0||(Et&1024)!==0||de.kind===12,Hc=rr<0||(Et&2048)!==0||de.kind===12;(Gi>0||rr>0)&&Gi!==rr&&(as||tE(Gi,de.kind!==353),(!as||Gi>=0&&Et&1024)&&(ht=Gi),(!Hc||rr>=0&&Et&2048)&&(Kt=rr,de.kind===261&&(ni=rr))),ee(aL(de),gP),zn()}function ON(de,Et,Gi,rr,as,Hc,Qc){Ei();let Sl=rr<0||(Et&2048)!==0||de.kind===12;ee(cae(de),M1),(Gi>0||rr>0)&&Gi!==rr&&(ht=as,Kt=Hc,ni=Qc,!Sl&&de.kind!==353&&Fv(rr)),zn()}function gP(de){(de.hasLeadingNewline||de.kind===2)&&Oe.writeLine(),R1(de),de.hasTrailingNewLine||de.kind===2?Oe.writeLine():Oe.writeSpace(" ")}function M1(de){Oe.isAtStartOfLine()||Oe.writeSpace(" "),R1(de),de.hasTrailingNewLine&&Oe.writeLine()}function R1(de){let Et=yD(de),Gi=de.kind===3?E7(Et):void 0;YH(Et,Gi,Oe,0,Et.length,H)}function yD(de){return de.kind===3?`/*${de.text}*/`:`//${de.text}`}function mv(de,Et,Gi){Ei();let{pos:rr,end:as}=Et,Hc=N_(de),Qc=rr<0||(Hc&1024)!==0,Sl=Bi||as<0||(Hc&2048)!==0;Qc||iE(Et),zn(),Hc&4096&&!Bi?(Bi=!0,Gi(de),Bi=!1):Gi(de),Ei(),Sl||(tE(Et.end,!0),wi&&!Oe.isAtStartOfLine()&&Oe.writeLine()),zn()}function g0(de,Et){return de=Gm(de),de.parent&&de.parent===Gm(Et).parent}function FN(de,Et){if(Et.pos-1&&rr.indexOf(Et)===as+1}function tE(de,Et){wi=!1,Et?de===0&&K?.isDeclarationFile?Bs(de,ma):Bs(de,R0):de===0&&Bs(de,r_)}function r_(de,Et,Gi,rr,as){ih(de,Et)&&R0(de,Et,Gi,rr,as)}function ma(de,Et,Gi,rr,as){ih(de,Et)||R0(de,Et,Gi,rr,as)}function Db(de,Et){return t.onlyPrintJsDocStyle?Wn(de,Et)||Rpe(de,Et):!0}function R0(de,Et,Gi,rr,as){!K||!Db(K.text,de)||(wi||(fme(qi(),Oe,as,de),wi=!0),r1(de),YH(K.text,qi(),Oe,de,Et,H),r1(Et),rr?Oe.writeLine():Gi===3&&Oe.writeSpace(" "))}function vD(de){Bi||de===-1||tE(de,!0)}function Fv(de){Hm(de,ik)}function ik(de,Et,Gi,rr){!K||!Db(K.text,de)||(Oe.isAtStartOfLine()||Oe.writeSpace(" "),r1(de),YH(K.text,qi(),Oe,de,Et,H),r1(Et),rr&&Oe.writeLine())}function mC(de,Et,Gi){Bi||(Ei(),Hm(de,Et?ik:Gi?yO:Vf),zn())}function yO(de,Et,Gi){K&&(r1(de),YH(K.text,qi(),Oe,de,Et,H),r1(Et),Gi===2&&Oe.writeLine())}function Vf(de,Et,Gi,rr){K&&(r1(de),YH(K.text,qi(),Oe,de,Et,H),r1(Et),rr?Oe.writeLine():Oe.writeSpace(" "))}function Bs(de,Et){K&&(ht===-1||de!==ht)&&(B0(de)?hC(Et):iZ(K.text,de,Et,de))}function Hm(de,Et){K&&(Kt===-1||de!==Kt&&de!==ni)&&Mf(K.text,de,Et)}function B0(de){return pi!==void 0&&Bu(pi).nodePos===de}function hC(de){if(!K)return;let Et=Bu(pi).detachedCommentEndPos;pi.length-1?pi.pop():pi=void 0,iZ(K.text,Et,de,Et)}function iE(de){let Et=K&&w0(K.text,qi(),Oe,yP,de,H,Bi);Et&&(pi?pi.push(Et):pi=[Et])}function yP(de,Et,Gi,rr,as,Hc){!K||!Db(K.text,rr)||(r1(rr),YH(de,Et,Gi,rr,as,Hc),r1(as))}function ih(de,Et){return!!K&&Vke(K.text,de,Et)}function JS(de,Et){let Gi=pt(3,de,Et);i1(Et),Gi(de,Et),n1(Et)}function i1(de){let Et=N_(de),Gi=J8(de),rr=Gi.source||_t;de.kind!==353&&!(Et&32)&&Gi.pos>=0&&fS(Gi.source||_t,Jh(rr,Gi.pos)),Et&128&&(qe=!0)}function n1(de){let Et=N_(de),Gi=J8(de);Et&128&&(qe=!1),de.kind!==353&&!(Et&64)&&Gi.end>=0&&fS(Gi.source||_t,Gi.end)}function Jh(de,Et){return de.skipTrivia?de.skipTrivia(Et):fd(de.text,Et)}function r1(de){if(qe||hN(de)||Wr(_t))return;let{line:Et,character:Gi}=Df(_t,de);rt.addMapping(Oe.getLine(),Oe.getColumn(),ft,Et,Gi,void 0)}function fS(de,Et){if(de!==_t){let Gi=_t,rr=ft;Vt(de),r1(Et),Sn(Gi,rr)}else r1(Et)}function ge(de,Et,Gi,rr,as){if(qe||de&&H7(de))return as(Et,Gi,rr);let Hc=de&&de.emitNode,Qc=Hc&&Hc.flags||0,Sl=Hc&&Hc.tokenSourceMapRanges&&Hc.tokenSourceMapRanges[Et],ml=Sl&&Sl.source||_t;return rr=Jh(ml,Sl?Sl.pos:rr),!(Qc&256)&&rr>=0&&fS(ml,rr),rr=as(Et,Gi,rr),Sl&&(rr=Sl.end),!(Qc&512)&&rr>=0&&fS(ml,rr),rr}function Vt(de){if(!qe){if(_t=de,de===mt){ft=ut;return}Wr(de)||(ft=rt.addSource(de.fileName),t.inlineSources&&rt.setSourceContent(ft,de.text),mt=de,ut=ft)}}function Sn(de,Et){_t=de,ft=Et}function Wr(de){return Wh(de.fileName,".json")}}function bXe(){let t=[];return t[1024]=["{","}"],t[2048]=["(",")"],t[4096]=["<",">"],t[8192]=["[","]"],t}function PFe(t){return I0t[t&15360][0]}function SXe(t){return I0t[t&15360][1]}function xXe(t,n,a,u){n(t)}function $U(t,n,a,u){n(t,a.select(u))}function CXe(t,n,a,u){n(t,a)}function E2e(t,n){return t.length===1?xXe:typeof n=="object"?$U:CXe}function W4(t,n,a){if(!t.getDirectories||!t.readDirectory)return;let u=new Map,m=U0(a);return{useCaseSensitiveFileNames:a,fileExists:R,readFile:(le,Ee)=>t.readFile(le,Ee),directoryExists:t.directoryExists&&H,getDirectories:$,readDirectory:K,createDirectory:t.createDirectory&&U,writeFile:t.writeFile&&M,addOrDeleteFileOrDirectory:ne,addOrDeleteFile:se,clearCache:ae,realpath:t.realpath&&re};function g(le){return dd(le,n,m)}function v(le){return u.get(Fs(le))}function x(le){let Ee=v(Cc(le));return Ee&&(Ee.sortedAndCanonicalizedFiles||(Ee.sortedAndCanonicalizedFiles=Ee.files.map(m).sort(),Ee.sortedAndCanonicalizedDirectories=Ee.directories.map(m).sort()),Ee)}function k(le){return sg(Kd(le))}function T(le,Ee){var xe;if(!t.realpath||Fs(g(t.realpath(le)))===Ee){let be={files:$i(t.readDirectory(le,void 0,void 0,["*.*"]),k)||[],directories:t.getDirectories(le)||[]};return u.set(Fs(Ee),be),be}if((xe=t.directoryExists)!=null&&xe.call(t,le))return u.set(Ee,!1),!1}function I(le,Ee){Ee=Fs(Ee);let xe=v(Ee);if(xe)return xe;try{return T(le,Ee)}catch{Se.assert(!u.has(Fs(Ee)));return}}function A(le,Ee){return Q_(le,Ee,ps,Jg)>=0}function M(le,Ee,xe){let be=g(le),Le=x(be);return Le&&_e(Le,k(le),!0),t.writeFile(le,Ee,xe)}function R(le){let Ee=g(le),xe=x(Ee);return xe&&A(xe.sortedAndCanonicalizedFiles,m(k(le)))||t.fileExists(le)}function H(le){let Ee=g(le);return u.has(Fs(Ee))||t.directoryExists(le)}function U(le){let Ee=g(le),xe=x(Ee);if(xe){let be=k(le),Le=m(be),fe=xe.sortedAndCanonicalizedDirectories;Hn(fe,Le,Jg)&&xe.directories.push(be)}t.createDirectory(le)}function $(le){let Ee=g(le),xe=I(le,Ee);return xe?xe.directories.slice():t.getDirectories(le)}function K(le,Ee,xe,be,Le){let fe=g(le),we=I(le,fe),Ae;if(we!==void 0)return Cwe(le,Ee,xe,be,a,n,Le,Ge,re);return t.readDirectory(le,Ee,xe,be,Le);function Ge(Oe){let Re=g(Oe);if(Re===fe)return we||he(Oe,Re);let $e=I(Oe,Re);return $e!==void 0?$e||he(Oe,Re):UG}function he(Oe,Re){if(Ae&&Re===fe)return Ae;let $e={files:$i(t.readDirectory(Oe,void 0,void 0,["*.*"]),k)||F,directories:t.getDirectories(Oe)||F};return Re===fe&&(Ae=$e),$e}}function re(le){return t.realpath?t.realpath(le):le}function X(le){T2(Cc(le),Ee=>u.delete(Fs(Ee))?!0:void 0)}function ne(le,Ee){if(v(Ee)!==void 0){ae();return}let be=x(Ee);if(!be){X(Ee);return}if(!t.directoryExists){ae();return}let Le=k(le),fe={fileExists:t.fileExists(le),directoryExists:t.directoryExists(le)};return fe.directoryExists||A(be.sortedAndCanonicalizedDirectories,m(Le))?ae():_e(be,Le,fe.fileExists),fe}function se(le,Ee,xe){if(xe===1)return;let be=x(Ee);be?_e(be,k(le),xe===0):X(Ee)}function _e(le,Ee,xe){let be=le.sortedAndCanonicalizedFiles,Le=m(Ee);if(xe)Hn(be,Le,Jg)&&le.files.push(Ee);else{let fe=Q_(be,Le,ps,Jg);if(fe>=0){be.splice(fe,1);let we=le.files.findIndex(Ae=>m(Ae)===Le);le.files.splice(we,1)}}}function ae(){u.clear()}}var kXe=(t=>(t[t.Update=0]="Update",t[t.RootNamesAndUpdate=1]="RootNamesAndUpdate",t[t.Full=2]="Full",t))(kXe||{});function D2e(t,n,a,u,m){var g;let v=I_(((g=n?.configFile)==null?void 0:g.extendedSourceFiles)||F,m);a.forEach((x,k)=>{v.has(k)||(x.projects.delete(t),x.close())}),v.forEach((x,k)=>{let T=a.get(k);T?T.projects.add(t):a.set(k,{projects:new Set([t]),watcher:u(x,k),close:()=>{let I=a.get(k);!I||I.projects.size!==0||(I.watcher.close(),a.delete(k))}})})}function LFe(t,n){n.forEach(a=>{a.projects.delete(t)&&a.close()})}function I2e(t,n,a){t.delete(n)&&t.forEach(({extendedResult:u},m)=>{var g;(g=u.extendedSourceFiles)!=null&&g.some(v=>a(v)===n)&&I2e(t,m,a)})}function OFe(t,n,a){yk(n,t.getMissingFilePaths(),{createNewValue:a,onDeleteValue:GT})}function Sge(t,n,a){n?yk(t,new Map(Object.entries(n)),{createNewValue:u,onDeleteValue:Dk,onExistingValue:m}):Zb(t,Dk);function u(g,v){return{watcher:a(g,v),flags:v}}function m(g,v,x){g.flags!==v&&(g.watcher.close(),t.set(x,u(x,v)))}}function xge({watchedDirPath:t,fileOrDirectory:n,fileOrDirectoryPath:a,configFileName:u,options:m,program:g,extraFileExtensions:v,currentDirectory:x,useCaseSensitiveFileNames:k,writeLog:T,toPath:I,getScriptKind:A}){let M=Ece(a);if(!M)return T(`Project: ${u} Detected ignored path: ${n}`),!0;if(a=M,a===t)return!1;if(B$(a)&&!(Qse(n,m,v)||K()))return T(`Project: ${u} Detected file add/remove of non supported extension: ${n}`),!0;if(F8e(n,m.configFile.configFileSpecs,tu(Cc(u),x),k,x))return T(`Project: ${u} Detected excluded file: ${n}`),!0;if(!g||m.outFile||m.outDir)return!1;if(ey(a)){if(m.declarationDir)return!1}else if(!gg(a,P5))return!1;let R=Qx(a),H=ua(g)?void 0:Pce(g)?g.getProgramOrUndefined():g,U=!H&&!ua(g)?g:void 0;if($(R+".ts")||$(R+".tsx"))return T(`Project: ${u} Detected output file: ${n}`),!0;return!1;function $(re){return H?!!H.getSourceFileByPath(re):U?U.state.fileInfos.has(re):!!jt(g,X=>I(X)===re)}function K(){if(!A)return!1;switch(A(n)){case 3:case 4:case 7:case 5:return!0;case 1:case 2:return T0(m);case 6:return Q6(m);case 0:return!1}}}function yce(t,n){return t?t.isEmittedFile(n):!1}var N2e=(t=>(t[t.None=0]="None",t[t.TriggerOnly=1]="TriggerOnly",t[t.Verbose=2]="Verbose",t))(N2e||{});function ite(t,n,a,u){f$e(n===2?a:Za);let m={watchFile:(U,$,K,re)=>t.watchFile(U,$,K,re),watchDirectory:(U,$,K,re)=>t.watchDirectory(U,$,(K&1)!==0,re)},g=n!==0?{watchFile:R("watchFile"),watchDirectory:R("watchDirectory")}:void 0,v=n===2?{watchFile:A,watchDirectory:M}:g||m,x=n===2?I:_0;return{watchFile:k("watchFile"),watchDirectory:k("watchDirectory")};function k(U){return($,K,re,X,ne,se)=>{var _e;return Gae($,U==="watchFile"?X?.excludeFiles:X?.excludeDirectories,T(),((_e=t.getCurrentDirectory)==null?void 0:_e.call(t))||"")?x($,re,X,ne,se):v[U].call(void 0,$,K,re,X,ne,se)}}function T(){return typeof t.useCaseSensitiveFileNames=="boolean"?t.useCaseSensitiveFileNames:t.useCaseSensitiveFileNames()}function I(U,$,K,re,X){return a(`ExcludeWatcher:: Added:: ${H(U,$,K,re,X,u)}`),{close:()=>a(`ExcludeWatcher:: Close:: ${H(U,$,K,re,X,u)}`)}}function A(U,$,K,re,X,ne){a(`FileWatcher:: Added:: ${H(U,K,re,X,ne,u)}`);let se=g.watchFile(U,$,K,re,X,ne);return{close:()=>{a(`FileWatcher:: Close:: ${H(U,K,re,X,ne,u)}`),se.close()}}}function M(U,$,K,re,X,ne){let se=`DirectoryWatcher:: Added:: ${H(U,K,re,X,ne,u)}`;a(se);let _e=mm(),ae=g.watchDirectory(U,$,K,re,X,ne),le=mm()-_e;return a(`Elapsed:: ${le}ms ${se}`),{close:()=>{let Ee=`DirectoryWatcher:: Close:: ${H(U,K,re,X,ne,u)}`;a(Ee);let xe=mm();ae.close();let be=mm()-xe;a(`Elapsed:: ${be}ms ${Ee}`)}}}function R(U){return($,K,re,X,ne,se)=>m[U].call(void 0,$,(..._e)=>{let ae=`${U==="watchFile"?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${_e[0]} ${_e[1]!==void 0?_e[1]:""}:: ${H($,re,X,ne,se,u)}`;a(ae);let le=mm();K.call(void 0,..._e);let Ee=mm()-le;a(`Elapsed:: ${Ee}ms ${ae}`)},re,X,ne,se)}function H(U,$,K,re,X,ne){return`WatchInfo: ${U} ${$} ${JSON.stringify(K)} ${ne?ne(re,X):X===void 0?re:`${re} ${X}`}`}}function RK(t){let n=t?.fallbackPolling;return{watchFile:n!==void 0?n:1}}function Dk(t){t.watcher.close()}function vce(t,n,a="tsconfig.json"){return T2(t,u=>{let m=Ps(u,a);return n(m)?m:void 0})}function BK(t,n){let a=Cc(n),u=LC(t)?t:Ps(a,t);return Kd(u)}function nte(t,n,a){let u;return ee(t,g=>{let v=_pe(g,n);if(v.pop(),!u){u=v;return}let x=Math.min(u.length,v.length);for(let k=0;k{let g;try{Lm("beforeIORead"),g=t(a),Lm("afterIORead"),Ub("I/O Read","beforeIORead","afterIORead")}catch(v){m&&m(v.message),g=""}return g!==void 0?AU(a,g,u,n):void 0}}function kge(t,n,a){return(u,m,g,v)=>{try{Lm("beforeIOWrite"),zZ(u,m,g,t,n,a),Lm("afterIOWrite"),Ub("I/O Write","beforeIOWrite","afterIOWrite")}catch(x){v&&v(x.message)}}}function rte(t,n,a=hy){let u=new Map,m=U0(a.useCaseSensitiveFileNames);function g(I){return u.has(I)?!0:(T.directoryExists||a.directoryExists)(I)?(u.set(I,!0),!0):!1}function v(){return Cc(Kd(a.getExecutingFilePath()))}let x=W2(t),k=a.realpath&&(I=>a.realpath(I)),T={getSourceFile:Cge(I=>T.readFile(I),n),getDefaultLibLocation:v,getDefaultLibFileName:I=>Ps(v(),gpe(I)),writeFile:kge((I,A,M)=>a.writeFile(I,A,M),I=>(T.createDirectory||a.createDirectory)(I),I=>g(I)),getCurrentDirectory:H0(()=>a.getCurrentDirectory()),useCaseSensitiveFileNames:()=>a.useCaseSensitiveFileNames,getCanonicalFileName:m,getNewLine:()=>x,fileExists:I=>a.fileExists(I),readFile:I=>a.readFile(I),trace:I=>a.write(I+x),directoryExists:I=>a.directoryExists(I),getEnvironmentVariable:I=>a.getEnvironmentVariable?a.getEnvironmentVariable(I):"",getDirectories:I=>a.getDirectories(I),realpath:k,readDirectory:(I,A,M,R,H)=>a.readDirectory(I,A,M,R,H),createDirectory:I=>a.createDirectory(I),createHash:wu(a,a.createHash)};return T}function u9(t,n,a){let u=t.readFile,m=t.fileExists,g=t.directoryExists,v=t.createDirectory,x=t.writeFile,k=new Map,T=new Map,I=new Map,A=new Map,M=U=>{let $=n(U),K=k.get($);return K!==void 0?K!==!1?K:void 0:R($,U)},R=(U,$)=>{let K=u.call(t,$);return k.set(U,K!==void 0?K:!1),K};t.readFile=U=>{let $=n(U),K=k.get($);return K!==void 0?K!==!1?K:void 0:!Wh(U,".json")&&!IFe(U)?u.call(t,U):R($,U)};let H=a?(U,$,K,re)=>{let X=n(U),ne=typeof $=="object"?$.impliedNodeFormat:void 0,se=A.get(ne),_e=se?.get(X);if(_e)return _e;let ae=a(U,$,K,re);return ae&&(ey(U)||Wh(U,".json"))&&A.set(ne,(se||new Map).set(X,ae)),ae}:void 0;return t.fileExists=U=>{let $=n(U),K=T.get($);if(K!==void 0)return K;let re=m.call(t,U);return T.set($,!!re),re},x&&(t.writeFile=(U,$,...K)=>{let re=n(U);T.delete(re);let X=k.get(re);X!==void 0&&X!==$?(k.delete(re),A.forEach(ne=>ne.delete(re))):H&&A.forEach(ne=>{let se=ne.get(re);se&&se.text!==$&&ne.delete(re)}),x.call(t,U,$,...K)}),g&&(t.directoryExists=U=>{let $=n(U),K=I.get($);if(K!==void 0)return K;let re=g.call(t,U);return I.set($,!!re),re},v&&(t.createDirectory=U=>{let $=n(U);I.delete($),v.call(t,U)})),{originalReadFile:u,originalFileExists:m,originalDirectoryExists:g,originalCreateDirectory:v,originalWriteFile:x,getSourceFileWithCache:H,readFileWithCache:M}}function e2(t,n,a){let u;return u=Ho(u,t.getConfigFileParsingDiagnostics()),u=Ho(u,t.getOptionsDiagnostics(a)),u=Ho(u,t.getSyntacticDiagnostics(n,a)),u=Ho(u,t.getGlobalDiagnostics(a)),u=Ho(u,t.getSemanticDiagnostics(n,a)),fw(t.getCompilerOptions())&&(u=Ho(u,t.getDeclarationDiagnostics(n,a))),qw(u||F)}function A2e(t,n){let a="";for(let u of t)a+=bce(u,n);return a}function bce(t,n){let a=`${e5(t)} TS${t.code}: ${wN(t.messageText,n.getNewLine())}${n.getNewLine()}`;if(t.file){let{line:u,character:m}=Df(t.file,t.start),g=t.file.fileName;return`${lH(g,n.getCurrentDirectory(),x=>n.getCanonicalFileName(x))}(${u+1},${m+1}): `+a}return a}var P2e=(t=>(t.Grey="\x1B[90m",t.Red="\x1B[91m",t.Yellow="\x1B[93m",t.Blue="\x1B[94m",t.Cyan="\x1B[96m",t))(P2e||{}),L2e="\x1B[7m",wge=" ",O2e="\x1B[0m",Tge="...",Sce=" ",TXe=" ";function EXe(t){switch(t){case 1:return"\x1B[91m";case 0:return"\x1B[93m";case 2:return Se.fail("Should never get an Info diagnostic on the command line.");case 3:return"\x1B[94m"}}function fF(t,n){return n+t+O2e}function FFe(t,n,a,u,m,g){let{line:v,character:x}=Df(t,n),{line:k,character:T}=Df(t,n+a),I=Df(t,t.text.length).line,A=k-v>=4,M=(k+1+"").length;A&&(M=Math.max(Tge.length,M));let R="";for(let H=v;H<=k;H++){R+=g.getNewLine(),A&&v+1a.getCanonicalFileName(k)):t.fileName,x="";return x+=u(v,"\x1B[96m"),x+=":",x+=u(`${m+1}`,"\x1B[93m"),x+=":",x+=u(`${g+1}`,"\x1B[93m"),x}function F2e(t,n){let a="";for(let u of t){if(u.file){let{file:m,start:g}=u;a+=Ege(m,g,n),a+=" - "}if(a+=fF(e5(u),EXe(u.category)),a+=fF(` TS${u.code}: `,"\x1B[90m"),a+=wN(u.messageText,n.getNewLine()),u.file&&u.code!==j.File_appears_to_be_binary.code&&(a+=n.getNewLine(),a+=FFe(u.file,u.start,u.length,"",EXe(u.category),n)),u.relatedInformation){a+=n.getNewLine();for(let{file:m,start:g,length:v,messageText:x}of u.relatedInformation)m&&(a+=n.getNewLine(),a+=Sce+Ege(m,g,n),a+=FFe(m,g,v,TXe,"\x1B[96m",n)),a+=n.getNewLine(),a+=TXe+wN(x,n.getNewLine())}a+=n.getNewLine()}return a}function wN(t,n,a=0){if(Yu(t))return t;if(t===void 0)return"";let u="";if(a){u+=n;for(let m=0;mR2e(n,t,a)};function Ige(t,n,a,u,m){return{nameAndMode:GU,resolve:(g,v)=>TK(g,t,a,u,m,n,v)}}function Nge(t){return Yu(t)?t:t.fileName}var B2e={getName:Nge,getMode:(t,n,a)=>Dge(t,n&&WK(n,a))};function ote(t,n,a,u,m){return{nameAndMode:B2e,resolve:(g,v)=>rKe(g,t,a,u,n,m,v)}}function kM(t,n,a,u,m,g,v,x){if(t.length===0)return F;let k=[],T=new Map,I=x(n,a,u,g,v);for(let A of t){let M=I.nameAndMode.getName(A),R=I.nameAndMode.getMode(A,m,a?.commandLine.options||u),H=wK(M,R),U=T.get(H);U||T.set(H,U=I.resolve(M,R)),k.push(U)}return k}function j2e(t,n){return xce(void 0,t,(a,u)=>a&&n(a,u))}function xce(t,n,a,u){let m;return g(t,n,void 0);function g(v,x,k){if(u){let T=u(v,k);if(T)return T}return ee(x,(T,I)=>{if(T&&m?.has(T.sourceFile.path))return;let A=a(T,k,I);return A||!T?A:((m||(m=new Set)).add(T.sourceFile.path),g(T.commandLine.projectReferences,T.references,T))})}}var KU="__inferred type names__.ts";function ste(t,n,a){let u=t.configFilePath?Cc(t.configFilePath):n;return Ps(u,`__lib_node_modules_lookup_${a}__.ts`)}function Cce(t){let n=t.split("."),a=n[1],u=2;for(;n[u]&&n[u]!=="d";)a+=(u===2?"/":"-")+n[u],u++;return"@typescript/lib-"+a}function A0t(t){return OS(t.fileName)}function Age(t){let n=A0t(t);return p8e.get(n)}function z4(t){switch(t?.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function OW(t){return t.pos!==void 0}function FW(t,n){var a,u,m,g;let v=Se.checkDefined(t.getSourceFileByPath(n.file)),{kind:x,index:k}=n,T,I,A;switch(x){case 3:let M=QU(v,k);if(A=(u=(a=t.getResolvedModuleFromModuleSpecifier(M,v))==null?void 0:a.resolvedModule)==null?void 0:u.packageId,M.pos===-1)return{file:v,packageId:A,text:M.text};T=fd(v.text,M.pos),I=M.end;break;case 4:({pos:T,end:I}=v.referencedFiles[k]);break;case 5:({pos:T,end:I}=v.typeReferenceDirectives[k]),A=(g=(m=t.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(v.typeReferenceDirectives[k],v))==null?void 0:m.resolvedTypeReferenceDirective)==null?void 0:g.packageId;break;case 7:({pos:T,end:I}=v.libReferenceDirectives[k]);break;default:return Se.assertNever(x)}return{file:v,pos:T,end:I,packageId:A}}function XU(t,n,a,u,m,g,v,x,k,T){if(!t||x?.()||!ho(t.getRootFileNames(),n))return!1;let I;if(!ho(t.getProjectReferences(),T,U)||t.getSourceFiles().some(R))return!1;let A=t.getMissingFilePaths();if(A&&Km(A,m))return!1;let M=t.getCompilerOptions();if(!nU(M,a)||t.resolvedLibReferences&&Km(t.resolvedLibReferences,(K,re)=>v(re)))return!1;if(M.configFile&&a.configFile)return M.configFile.text===a.configFile.text;return!0;function R(K){return!H(K)||g(K.path)}function H(K){return K.version===u(K.resolvedPath,K.fileName)}function U(K,re,X){return Ape(K,re)&&$(t.getResolvedProjectReferences()[X],K)}function $(K,re){if(K){if(dr(I,K))return!0;let ne=MW(re),se=k(ne);return!se||K.commandLine.options.configFile!==se.options.configFile||!ho(K.commandLine.fileNames,se.fileNames)?!1:((I||(I=[])).push(K),!ee(K.references,(_e,ae)=>!$(_e,K.commandLine.projectReferences[ae])))}let X=MW(re);return!k(X)}}function lO(t){return t.options.configFile?[...t.options.configFile.parseDiagnostics,...t.errors]:t.errors}function jK(t,n,a,u){let m=Pge(t,n,a,u);return typeof m=="object"?m.impliedNodeFormat:m}function Pge(t,n,a,u){let m=S1(u),g=3<=m&&m<=99||vM(t);return gg(t,[".d.mts",".mts",".mjs"])?99:gg(t,[".d.cts",".cts",".cjs"])?1:g&&gg(t,[".d.ts",".ts",".tsx",".js",".jsx"])?v():void 0;function v(){let x=e9(n,a,u),k=[];x.failedLookupLocations=k,x.affectingLocations=k;let T=Vee(Cc(t),x);return{impliedNodeFormat:T?.contents.packageJsonContent.type==="module"?99:1,packageJsonLocations:k,packageJsonScope:T}}}var IXe=new Set([j.Cannot_redeclare_block_scoped_variable_0.code,j.A_module_cannot_have_multiple_default_exports.code,j.Another_export_default_is_here.code,j.The_first_export_default_is_here.code,j.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,j.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,j.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,j.constructor_is_a_reserved_word.code,j.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,j.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode.code,j.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,j.Invalid_use_of_0_in_strict_mode.code,j.A_label_is_not_allowed_here.code,j.with_statements_are_not_allowed_in_strict_mode.code,j.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,j.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,j.A_class_declaration_without_the_default_modifier_must_have_a_name.code,j.A_class_member_cannot_have_the_0_keyword.code,j.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,j.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,j.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,j.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,j.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,j.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,j.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,j.A_destructuring_declaration_must_have_an_initializer.code,j.A_get_accessor_cannot_have_parameters.code,j.A_rest_element_cannot_contain_a_binding_pattern.code,j.A_rest_element_cannot_have_a_property_name.code,j.A_rest_element_cannot_have_an_initializer.code,j.A_rest_element_must_be_last_in_a_destructuring_pattern.code,j.A_rest_parameter_cannot_have_an_initializer.code,j.A_rest_parameter_must_be_last_in_a_parameter_list.code,j.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,j.A_return_statement_cannot_be_used_inside_a_class_static_block.code,j.A_set_accessor_cannot_have_rest_parameter.code,j.A_set_accessor_must_have_exactly_one_parameter.code,j.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,j.An_export_declaration_cannot_have_modifiers.code,j.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,j.An_import_declaration_cannot_have_modifiers.code,j.An_object_member_cannot_be_declared_optional.code,j.Argument_of_dynamic_import_cannot_be_spread_element.code,j.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,j.Cannot_redeclare_identifier_0_in_catch_clause.code,j.Catch_clause_variable_cannot_have_an_initializer.code,j.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,j.Classes_can_only_extend_a_single_class.code,j.Classes_may_not_have_a_field_named_constructor.code,j.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code,j.Duplicate_label_0.code,j.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments.code,j.for_await_loops_cannot_be_used_inside_a_class_static_block.code,j.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,j.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,j.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,j.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,j.Jump_target_cannot_cross_function_boundary.code,j.Line_terminator_not_permitted_before_arrow.code,j.Modifiers_cannot_appear_here.code,j.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,j.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,j.Private_identifiers_are_not_allowed_outside_class_bodies.code,j.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,j.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,j.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,j.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,j.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,j.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,j.Trailing_comma_not_allowed.code,j.Variable_declaration_list_cannot_be_empty.code,j._0_and_1_operations_cannot_be_mixed_without_parentheses.code,j._0_expected.code,j._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,j._0_list_cannot_be_empty.code,j._0_modifier_already_seen.code,j._0_modifier_cannot_appear_on_a_constructor_declaration.code,j._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,j._0_modifier_cannot_appear_on_a_parameter.code,j._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,j._0_modifier_cannot_be_used_here.code,j._0_modifier_must_precede_1_modifier.code,j._0_declarations_can_only_be_declared_inside_a_block.code,j._0_declarations_must_be_initialized.code,j.extends_clause_already_seen.code,j.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,j.Class_constructor_may_not_be_a_generator.code,j.Class_constructor_may_not_be_an_accessor.code,j.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,j.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,j.Private_field_0_must_be_declared_in_an_enclosing_class.code,j.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code]);function d9(t,n){return t?CH(t.getCompilerOptions(),n,Dee):!1}function ate(t,n,a,u,m,g){return{rootNames:t,options:n,host:a,oldProgram:u,configFileParsingDiagnostics:m,typeScriptVersion:g}}function f9(t,n,a,u,m){var g,v,x,k,T,I,A,M,R,H,U,$,K,re,X,ne;let se=ua(t)?ate(t,n,a,u,m):t,{rootNames:_e,options:ae,configFileParsingDiagnostics:le,projectReferences:Ee,typeScriptVersion:xe}=se,{oldProgram:be}=se;for(let qt of aTe)if(bf(ae,qt.name)&&typeof ae[qt.name]=="string")throw new Error(`${qt.name} is a string value; tsconfig JSON must be parsed with parseJsonSourceFileConfigFileContent or getParsedCommandLineOfConfigFile before passing to createProgram`);let Le=H0(()=>Ay("ignoreDeprecations",j.Invalid_value_for_ignoreDeprecations)),fe,we,Ae,Ge,he,Oe,Re,$e=Hb(),Ke,qe,rt,_t,ft,mt,ut,ht,Kt,ni,Ut,pi,wi,Bi,Bn,mr=typeof ae.maxNodeModuleJsDepth=="number"?ae.maxNodeModuleJsDepth:0,Ei=0,zn=new Map,zr=new Map;(g=us)==null||g.push(us.Phase.Program,"createProgram",{configFilePath:ae.configFilePath,rootDir:ae.rootDir},!0),Lm("beforeProgram");let xr=se.host||wXe(ae),lo=z2e(xr),_r=ae.noLib,Hs=H0(()=>xr.getDefaultLibFileName(ae)),ai=xr.getDefaultLibLocation?xr.getDefaultLibLocation():Cc(Hs()),mn=kse(),Nn=[],Gr=xr.getCurrentDirectory(),ci=qj(ae),gn=L5(ae,ci),Sr=new Map,vo,$o,Mn,Qs,Pi=xr.hasInvalidatedResolutions||uk;xr.resolveModuleNameLiterals?(Qs=xr.resolveModuleNameLiterals.bind(xr),Mn=(v=xr.getModuleResolutionCache)==null?void 0:v.call(xr)):xr.resolveModuleNames?(Qs=(qt,bi,Li,Yn,Mr,Bo)=>xr.resolveModuleNames(qt.map(lI),bi,Bo?.map(lI),Li,Yn,Mr).map(bo=>bo?bo.extension!==void 0?{resolvedModule:bo}:{resolvedModule:{...bo,extension:F5(bo.resolvedFileName)}}:MFe),Mn=(x=xr.getModuleResolutionCache)==null?void 0:x.call(xr)):(Mn=jU(Gr,Vi,ae),Qs=(qt,bi,Li,Yn,Mr)=>kM(qt,bi,Li,Yn,Mr,xr,Mn,Ige));let qi;if(xr.resolveTypeReferenceDirectiveReferences)qi=xr.resolveTypeReferenceDirectiveReferences.bind(xr);else if(xr.resolveTypeReferenceDirectives)qi=(qt,bi,Li,Yn,Mr)=>xr.resolveTypeReferenceDirectives(qt.map(Nge),bi,Li,Yn,Mr?.impliedNodeFormat).map(Bo=>({resolvedTypeReferenceDirective:Bo}));else{let qt=Bee(Gr,Vi,void 0,Mn?.getPackageJsonInfoCache(),Mn?.optionsToRedirectsKey);qi=(bi,Li,Yn,Mr,Bo)=>kM(bi,Li,Yn,Mr,Bo,xr,qt,ote)}let lt=xr.hasInvalidatedLibResolutions||uk,Xi;if(xr.resolveLibrary)Xi=xr.resolveLibrary.bind(xr);else{let qt=jU(Gr,Vi,ae,Mn?.getPackageJsonInfoCache());Xi=(bi,Li,Yn)=>DTe(bi,Li,Yn,xr,qt)}let nt=new Map,Lt=new Map,Pe=Hb(),St=!1,Ve=new Map,Tt=new Map,dt=xr.useCaseSensitiveFileNames()?new Map:void 0,Wt,pt,Gt,Mt,hi=!!((k=xr.useSourceOfProjectReferenceRedirect)!=null&&k.call(xr))&&!ae.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:Ie,fileExists:Bt,directoryExists:ui}=RFe({compilerHost:xr,getSymlinkCache:Ui,useSourceOfProjectReferenceRedirect:hi,toPath:Vr,getResolvedProjectReferences:G_,getSourceOfProjectReferenceRedirect:Ap,forEachResolvedProjectReference:wg}),Ue=xr.readFile.bind(xr);(T=us)==null||T.push(us.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!be});let Ce=d9(be,ae);(I=us)==null||I.pop();let ye;if((A=us)==null||A.push(us.Phase.Program,"tryReuseStructureFromOldProgram",{}),ye=Pf(),(M=us)==null||M.pop(),ye!==2){if(fe=[],we=[],Ee&&(Wt||(Wt=Ee.map(Xt)),_e.length&&Wt?.forEach((qt,bi)=>{if(!qt)return;let Li=qt.commandLine.options.outFile;if(hi){if(Li||b1(qt.commandLine.options)===0)for(let Yn of qt.commandLine.fileNames)Fd(Yn,{kind:1,index:bi})}else if(Li)Fd(J3(Li,".d.ts"),{kind:2,index:bi});else if(b1(qt.commandLine.options)===0){let Yn=H0(()=>c9(qt.commandLine,!xr.useCaseSensitiveFileNames()));for(let Mr of qt.commandLine.fileNames)!ey(Mr)&&!Wh(Mr,".json")&&Fd(PW(Mr,qt.commandLine,!xr.useCaseSensitiveFileNames(),Yn),{kind:2,index:bi})}})),(R=us)==null||R.push(us.Phase.Program,"processRootFiles",{count:_e.length}),ee(_e,(qt,bi)=>er(qt,!1,!1,{kind:0,index:bi})),(H=us)==null||H.pop(),ut??(ut=_e.length?Xae(ae,xr):F),ht=aI(),ut.length){(U=us)==null||U.push(us.Phase.Program,"processTypeReferences",{count:ut.length});let qt=ae.configFilePath?Cc(ae.configFilePath):Gr,bi=Ps(qt,KU),Li=Nc(ut,bi);for(let Yn=0;Yn{er(yn(bi),!0,!1,{kind:6,index:Li})})}Ae=du(fe,wr).concat(we),fe=void 0,we=void 0,Ke=void 0}if(be&&xr.onReleaseOldSourceFile){let qt=be.getSourceFiles();for(let bi of qt){let Li=Ar(bi.resolvedPath);(Ce||!Li||Li.impliedNodeFormat!==bi.impliedNodeFormat||bi.resolvedPath===bi.path&&Li.resolvedPath!==bi.path)&&xr.onReleaseOldSourceFile(bi,be.getCompilerOptions(),!!Ar(bi.path),Li)}xr.getParsedCommandLine||be.forEachResolvedProjectReference(bi=>{ln(bi.sourceFile.path)||xr.onReleaseOldSourceFile(bi.sourceFile,be.getCompilerOptions(),!1,void 0)})}be&&xr.onReleaseParsedCommandLine&&xce(be.getProjectReferences(),be.getResolvedProjectReferences(),(qt,bi,Li)=>{let Yn=bi?.commandLine.projectReferences[Li]||be.getProjectReferences()[Li],Mr=MW(Yn);pt?.has(Vr(Mr))||xr.onReleaseParsedCommandLine(Mr,qt,be.getCompilerOptions())}),be=void 0,ni=void 0,pi=void 0,Bi=void 0;let vt={getRootFileNames:()=>_e,getSourceFile:xu,getSourceFileByPath:Ar,getSourceFiles:()=>Ae,getMissingFilePaths:()=>Tt,getModuleResolutionCache:()=>Mn,getFilesByNameMap:()=>Ve,getCompilerOptions:()=>ae,getSyntacticDiagnostics:Lf,getOptionsDiagnostics:vd,getGlobalDiagnostics:rp,getSemanticDiagnostics:Rt,getCachedSemanticDiagnostics:bt,getSuggestionDiagnostics:zs,getDeclarationDiagnostics:ke,getBindAndCheckDiagnostics:Ci,getProgramDiagnostics:kn,getTypeChecker:Aa,getClassifiableNames:Ts,getCommonSourceDirectory:ir,emit:gr,getCurrentDirectory:()=>Gr,getNodeCount:()=>Aa().getNodeCount(),getIdentifierCount:()=>Aa().getIdentifierCount(),getSymbolCount:()=>Aa().getSymbolCount(),getTypeCount:()=>Aa().getTypeCount(),getInstantiationCount:()=>Aa().getInstantiationCount(),getRelationCacheSizes:()=>Aa().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>mt,getAutomaticTypeDirectiveNames:()=>ut,getAutomaticTypeDirectiveResolutions:()=>ht,isSourceFileFromExternalLibrary:Gd,isSourceFileDefaultLibrary:Su,getModeForUsageLocation:nr,getEmitSyntaxForUsageLocation:Hr,getModeForResolutionAtIndex:yo,getSourceFileFromReference:Lc,getLibFileFromReference:xo,sourceFileToPackageName:Lt,redirectTargetsMap:Pe,usesUriStyleNodeCoreModules:St,resolvedModules:Ut,resolvedTypeReferenceDirectiveNames:wi,resolvedLibReferences:Kt,getResolvedModule:We,getResolvedModuleFromModuleSpecifier:si,getResolvedTypeReferenceDirective:At,getResolvedTypeReferenceDirectiveFromTypeReferenceDirective:Ot,forEachResolvedModule:Fi,forEachResolvedTypeReferenceDirective:Vn,getCurrentPackagesMap:()=>Bn,typesPackageExists:Si,packageBundlesTypes:Ri,isEmittedFile:Ov,getConfigFileParsingDiagnostics:_i,getProjectReferences:ja,getResolvedProjectReferences:G_,getProjectReferenceRedirect:gh,getResolvedProjectReferenceToRedirect:ig,getResolvedProjectReferenceByPath:ln,forEachResolvedProjectReference:wg,isSourceOfProjectReferenceRedirect:xt,getRedirectReferenceForResolutionFromSourceOfProject:Ti,getCompilerOptionsForFile:st,getDefaultResolutionModeForFile:fs,getEmitModuleFormatOfFile:Os,getImpliedNodeFormatForEmit:Co,shouldTransformImportCall:Jc,emitBuildInfo:vl,fileExists:Bt,readFile:Ue,directoryExists:ui,getSymlinkCache:Ui,realpath:(X=xr.realpath)==null?void 0:X.bind(xr),useCaseSensitiveFileNames:()=>xr.useCaseSensitiveFileNames(),getCanonicalFileName:Vi,getFileIncludeReasons:()=>$e,structureIsReused:ye,writeFile:cc};return Ie(),un(),Lm("afterProgram"),Ub("Program","beforeProgram","afterProgram"),(ne=us)==null||ne.pop(),vt;function pe(){return Nn&&(mt?.forEach(qt=>{switch(qt.kind){case 1:return mn.add(Jl(qt.file&&Ar(qt.file),qt.fileProcessingReason,qt.diagnostic,qt.args||F));case 0:return mn.add(at(qt));case 2:return qt.diagnostics.forEach(bi=>mn.add(bi));default:Se.assertNever(qt)}}),Nn.forEach(({file:qt,diagnostic:bi,args:Li})=>mn.add(Jl(qt,void 0,bi,Li))),Nn=void 0,qe=void 0,rt=void 0),mn}function at({reason:qt}){let{file:bi,pos:Li,end:Yn}=FW(vt,qt),Mr=bi.libReferenceDirectives[qt.index],Bo=A0t(Mr),bo=eH(iH(Bo,"lib."),".d.ts"),Zs=JB(bo,Rae,ps);return k_(bi,Se.checkDefined(Li),Se.checkDefined(Yn)-Li,Zs?j.Cannot_find_lib_definition_for_0_Did_you_mean_1:j.Cannot_find_lib_definition_for_0,Bo,Zs)}function We(qt,bi,Li){var Yn;return(Yn=Ut?.get(qt.path))==null?void 0:Yn.get(bi,Li)}function si(qt,bi){return bi??(bi=Vo(qt)),Se.assertIsDefined(bi,"`moduleSpecifier` must have a `SourceFile` ancestor. Use `program.getResolvedModule` instead to provide the containing file and resolution mode."),We(bi,qt.text,nr(bi,qt))}function At(qt,bi,Li){var Yn;return(Yn=wi?.get(qt.path))==null?void 0:Yn.get(bi,Li)}function Ot(qt,bi){return At(bi,qt.fileName,qt.resolutionMode||bi.impliedNodeFormat)}function Fi(qt,bi){In(Ut,qt,bi)}function Vn(qt,bi){In(wi,qt,bi)}function In(qt,bi,Li){var Yn;Li?(Yn=qt?.get(Li.path))==null||Yn.forEach((Mr,Bo,bo)=>bi(Mr,Bo,bo,Li.path)):qt?.forEach((Mr,Bo)=>Mr.forEach((bo,Zs,jc)=>bi(bo,Zs,jc,Bo)))}function dn(){return Bn||(Bn=new Map,Fi(({resolvedModule:qt})=>{qt?.packageId&&Bn.set(qt.packageId.name,qt.extension===".d.ts"||!!Bn.get(qt.packageId.name))}),Bn)}function Si(qt){return dn().has(Vhe(qt))}function Ri(qt){return!!dn().get(qt)}function Cn(qt){var bi;(bi=qt.resolutionDiagnostics)!=null&&bi.length&&(mt??(mt=[])).push({kind:2,diagnostics:qt.resolutionDiagnostics})}function cn(qt,bi,Li,Yn){if(xr.resolveModuleNameLiterals||!xr.resolveModuleNames)return Cn(Li);if(!Mn||l0(bi))return;let Mr=tu(qt.originalFileName,Gr),Bo=Cc(Mr),bo=Kn(qt),Zs=Mn.getFromNonRelativeNameCache(bi,Yn,Bo,bo);Zs&&Cn(Zs)}function Pn(qt,bi,Li){var Yn,Mr;let Bo=tu(bi.originalFileName,Gr),bo=Kn(bi);(Yn=us)==null||Yn.push(us.Phase.Program,"resolveModuleNamesWorker",{containingFileName:Bo}),Lm("beforeResolveModule");let Zs=Qs(qt,Bo,bo,ae,bi,Li);return Lm("afterResolveModule"),Ub("ResolveModule","beforeResolveModule","afterResolveModule"),(Mr=us)==null||Mr.pop(),Zs}function Wi(qt,bi,Li){var Yn,Mr;let Bo=Yu(bi)?void 0:bi,bo=Yu(bi)?bi:tu(bi.originalFileName,Gr),Zs=Bo&&Kn(Bo);(Yn=us)==null||Yn.push(us.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:bo}),Lm("beforeResolveTypeReference");let jc=qi(qt,bo,Zs,ae,Bo,Li);return Lm("afterResolveTypeReference"),Ub("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),(Mr=us)==null||Mr.pop(),jc}function Kn(qt){let bi=ig(qt.originalFileName);if(bi||!ey(qt.originalFileName))return bi;let Li=Ti(qt.path);if(Li)return Li;if(!xr.realpath||!ae.preserveSymlinks||!qt.originalFileName.includes(nP))return;let Yn=Vr(xr.realpath(qt.originalFileName));return Yn===qt.path?void 0:Ti(Yn)}function Ti(qt){let bi=Ap(qt);if(Yu(bi))return ig(bi);if(bi)return wg(Li=>{let Yn=Li.commandLine.options.outFile;if(Yn)return Vr(Yn)===qt?Li:void 0})}function wr(qt,bi){return m_(Nr(qt),Nr(bi))}function Nr(qt){if(Gp(ai,qt.fileName,!1)){let bi=sg(qt.fileName);if(bi==="lib.d.ts"||bi==="lib.es6.d.ts")return 0;let Li=eH(iH(bi,"lib."),".d.ts"),Yn=Rae.indexOf(Li);if(Yn!==-1)return Yn+1}return Rae.length+2}function Vr(qt){return dd(qt,Gr,Vi)}function ir(){if(he===void 0){let qt=Qn(Ae,bi=>Pj(bi,vt));he=uF(ae,()=>Dc(qt,bi=>bi.isDeclarationFile?void 0:bi.fileName),Gr,Vi,bi=>He(qt,bi))}return he}function Ts(){var qt;if(!Re){Aa(),Re=new Set;for(let bi of Ae)(qt=bi.classifiableNames)==null||qt.forEach(Li=>Re.add(Li))}return Re}function pa(qt,bi){return _a({entries:qt,containingFile:bi,containingSourceFile:bi,redirectedReference:Kn(bi),nameAndModeGetter:GU,resolutionWorker:Pn,getResolutionFromOldProgram:(Li,Yn)=>be?.getResolvedModule(bi,Li,Yn),getResolved:U6,canReuseResolutionsInFile:()=>bi===be?.getSourceFile(bi.fileName)&&!Pi(bi.path),resolveToOwnAmbientModule:!0})}function Nc(qt,bi){let Li=Yu(bi)?void 0:bi;return _a({entries:qt,containingFile:bi,containingSourceFile:Li,redirectedReference:Li&&Kn(Li),nameAndModeGetter:B2e,resolutionWorker:Wi,getResolutionFromOldProgram:(Yn,Mr)=>{var Bo;return Li?be?.getResolvedTypeReferenceDirective(Li,Yn,Mr):(Bo=be?.getAutomaticTypeDirectiveResolutions())==null?void 0:Bo.get(Yn,Mr)},getResolved:Qoe,canReuseResolutionsInFile:()=>Li?Li===be?.getSourceFile(Li.fileName)&&!Pi(Li.path):!Pi(Vr(bi))})}function _a({entries:qt,containingFile:bi,containingSourceFile:Li,redirectedReference:Yn,nameAndModeGetter:Mr,resolutionWorker:Bo,getResolutionFromOldProgram:bo,getResolved:Zs,canReuseResolutionsInFile:jc,resolveToOwnAmbientModule:bs}){if(!qt.length)return F;if(ye===0&&(!bs||!Li.ambientModuleNames.length))return Bo(qt,bi,void 0);let nl,Us,Pu,ep,L0=jc();for(let O0=0;O0Pu[Us[HS]]=O0),Pu):Cb}function Fa(){return!xce(be.getProjectReferences(),be.getResolvedProjectReferences(),(qt,bi,Li)=>{let Yn=(bi?bi.commandLine.projectReferences:Ee)[Li],Mr=Xt(Yn);return qt?!Mr||Mr.sourceFile!==qt.sourceFile||!ho(qt.commandLine.fileNames,Mr.commandLine.fileNames):Mr!==void 0},(qt,bi)=>{let Li=bi?ln(bi.sourceFile.path).commandLine.projectReferences:Ee;return!ho(qt,Li,Ape)})}function Pf(){var qt;if(!be)return 0;let bi=be.getCompilerOptions();if(uj(bi,ae))return 0;let Li=be.getRootFileNames();if(!ho(Li,_e)||!Fa())return 0;Ee&&(Wt=Ee.map(Xt));let Yn=[],Mr=[];if(ye=2,Km(be.getMissingFilePaths(),bs=>xr.fileExists(bs)))return 0;let Bo=be.getSourceFiles(),bo;(bs=>{bs[bs.Exists=0]="Exists",bs[bs.Modified=1]="Modified"})(bo||(bo={}));let Zs=new Map;for(let bs of Bo){let nl=j_(bs.fileName,Mn,xr,ae),Us=xr.getSourceFileByPath?xr.getSourceFileByPath(bs.fileName,bs.resolvedPath,nl,void 0,Ce):xr.getSourceFile(bs.fileName,nl,void 0,Ce);if(!Us)return 0;Us.packageJsonLocations=(qt=nl.packageJsonLocations)!=null&&qt.length?nl.packageJsonLocations:void 0,Us.packageJsonScope=nl.packageJsonScope,Se.assert(!Us.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");let Pu;if(bs.redirectInfo){if(Us!==bs.redirectInfo.unredirected)return 0;Pu=!1,Us=bs}else if(be.redirectTargetsMap.has(bs.path)){if(Us!==bs)return 0;Pu=!1}else Pu=Us!==bs;Us.path=bs.path,Us.originalFileName=bs.originalFileName,Us.resolvedPath=bs.resolvedPath,Us.fileName=bs.fileName;let ep=be.sourceFileToPackageName.get(bs.path);if(ep!==void 0){let L0=Zs.get(ep),Cb=Pu?1:0;if(L0!==void 0&&Cb===1||L0===1)return 0;Zs.set(ep,Cb)}Pu?(bs.impliedNodeFormat!==Us.impliedNodeFormat?ye=1:ho(bs.libReferenceDirectives,Us.libReferenceDirectives,wo)?bs.hasNoDefaultLib!==Us.hasNoDefaultLib?ye=1:ho(bs.referencedFiles,Us.referencedFiles,wo)?($n(Us),ho(bs.imports,Us.imports,cl)&&ho(bs.moduleAugmentations,Us.moduleAugmentations,cl)?(bs.flags&12582912)!==(Us.flags&12582912)?ye=1:ho(bs.typeReferenceDirectives,Us.typeReferenceDirectives,wo)||(ye=1):ye=1):ye=1:ye=1,Mr.push(Us)):Pi(bs.path)&&(ye=1,Mr.push(Us)),Yn.push(Us)}if(ye!==2)return ye;for(let bs of Mr){let nl=Lge(bs),Us=pa(nl,bs);(pi??(pi=new Map)).set(bs.path,Us),Lpe(nl,Us,O0=>be.getResolvedModule(bs,O0.text,nr(bs,O0)),Wke)&&(ye=1);let ep=bs.typeReferenceDirectives,L0=Nc(ep,bs);(Bi??(Bi=new Map)).set(bs.path,L0),Lpe(ep,L0,O0=>be.getResolvedTypeReferenceDirective(bs,Nge(O0),Dge(O0,bs.impliedNodeFormat)),Ppe)&&(ye=1)}if(ye!==2)return ye;if(fh(bi,ae)||be.resolvedLibReferences&&Km(be.resolvedLibReferences,(bs,nl)=>Be(nl).actual!==bs.actual))return 1;if(xr.hasChangedAutomaticTypeDirectiveNames){if(xr.hasChangedAutomaticTypeDirectiveNames())return 1}else if(ut=Xae(ae,xr),!ho(be.getAutomaticTypeDirectiveNames(),ut))return 1;Tt=be.getMissingFilePaths(),Se.assert(Yn.length===be.getSourceFiles().length);for(let bs of Yn)Ve.set(bs.path,bs);return be.getFilesByNameMap().forEach((bs,nl)=>{if(!bs){Ve.set(nl,bs);return}if(bs.path===nl){be.isSourceFileFromExternalLibrary(bs)&&zr.set(bs.path,!0);return}Ve.set(nl,Ve.get(bs.path))}),Ae=Yn,$e=be.getFileIncludeReasons(),mt=be.getFileProcessingDiagnostics(),ut=be.getAutomaticTypeDirectiveNames(),ht=be.getAutomaticTypeDirectiveResolutions(),Lt=be.sourceFileToPackageName,Pe=be.redirectTargetsMap,St=be.usesUriStyleNodeCoreModules,Ut=be.resolvedModules,wi=be.resolvedTypeReferenceDirectiveNames,Kt=be.resolvedLibReferences,Bn=be.getCurrentPackagesMap(),2}function $l(qt){return{getCanonicalFileName:Vi,getCommonSourceDirectory:vt.getCommonSourceDirectory,getCompilerOptions:vt.getCompilerOptions,getCurrentDirectory:()=>Gr,getSourceFile:vt.getSourceFile,getSourceFileByPath:vt.getSourceFileByPath,getSourceFiles:vt.getSourceFiles,isSourceFileFromExternalLibrary:Gd,getResolvedProjectReferenceToRedirect:ig,getProjectReferenceRedirect:gh,isSourceOfProjectReferenceRedirect:xt,getSymlinkCache:Ui,writeFile:qt||cc,isEmitBlocked:Wl,shouldTransformImportCall:Jc,getEmitModuleFormatOfFile:Os,getDefaultResolutionModeForFile:fs,getModeForResolutionAtIndex:yo,readFile:bi=>xr.readFile(bi),fileExists:bi=>{let Li=Vr(bi);return Ar(Li)?!0:Tt.has(Li)?!1:xr.fileExists(bi)},realpath:wu(xr,xr.realpath),useCaseSensitiveFileNames:()=>xr.useCaseSensitiveFileNames(),getBuildInfo:()=>{var bi;return(bi=vt.getBuildInfo)==null?void 0:bi.call(vt)},getSourceFileFromReference:(bi,Li)=>vt.getSourceFileFromReference(bi,Li),redirectTargetsMap:Pe,getFileIncludeReasons:vt.getFileIncludeReasons,createHash:wu(xr,xr.createHash),getModuleResolutionCache:()=>vt.getModuleResolutionCache(),trace:wu(xr,xr.trace)}}function cc(qt,bi,Li,Yn,Mr,Bo){xr.writeFile(qt,bi,Li,Yn,Mr,Bo)}function vl(qt){var bi,Li;(bi=us)==null||bi.push(us.Phase.Emit,"emitBuildInfo",{},!0),Lm("beforeEmit");let Yn=T2e(hce,$l(qt),void 0,mXe,!1,!0);return Lm("afterEmit"),Ub("Emit","beforeEmit","afterEmit"),(Li=us)==null||Li.pop(),Yn}function G_(){return Wt}function ja(){return Ee}function Gd(qt){return!!zr.get(qt.path)}function Su(qt){if(!qt.isDeclarationFile)return!1;if(qt.hasNoDefaultLib)return!0;if(ae.noLib)return!1;let bi=xr.useCaseSensitiveFileNames()?ud:rw;return ae.lib?En(ae.lib,Li=>{let Yn=Kt.get(Li);return!!Yn&&bi(qt.fileName,Yn.actual)}):bi(qt.fileName,Hs())}function Aa(){return Oe||(Oe=Qhe(vt))}function gr(qt,bi,Li,Yn,Mr,Bo,bo){var Zs,jc;(Zs=us)==null||Zs.push(us.Phase.Emit,"emit",{path:qt?.path},!0);let bs=oi(()=>Vc(vt,qt,bi,Li,Yn,Mr,Bo,bo));return(jc=us)==null||jc.pop(),bs}function Wl(qt){return Sr.has(Vr(qt))}function Vc(qt,bi,Li,Yn,Mr,Bo,bo,Zs){if(!bo){let Us=jFe(qt,bi,Li,Yn);if(Us)return Us}let jc=Aa(),bs=jc.getEmitResolver(ae.outFile?void 0:bi,Yn,w2e(Mr,bo));Lm("beforeEmit");let nl=jc.runWithCancellationToken(Yn,()=>T2e(bs,$l(Li),bi,hXe(ae,Bo,Mr),Mr,!1,bo,Zs));return Lm("afterEmit"),Ub("Emit","beforeEmit","afterEmit"),nl}function xu(qt){return Ar(Vr(qt))}function Ar(qt){return Ve.get(qt)||void 0}function Hl(qt,bi,Li){return qw(qt?bi(qt,Li):za(vt.getSourceFiles(),Yn=>(Li&&Li.throwIfCancellationRequested(),bi(Yn,Li))))}function Lf(qt,bi){return Hl(qt,Qt,bi)}function Rt(qt,bi,Li){return Hl(qt,(Yn,Mr)=>nn(Yn,Mr,Li),bi)}function bt(qt){return _t?.get(qt.path)}function Ci(qt,bi){return hr(qt,bi,void 0)}function kn(qt){var bi;if(W8(qt,ae,vt))return F;let Li=pe().getDiagnostics(qt.fileName);return(bi=qt.commentDirectives)!=null&&bi.length?is(qt,qt.commentDirectives,Li).diagnostics:Li}function ke(qt,bi){return Hl(qt,B_,bi)}function Qt(qt){return $v(qt)?(qt.additionalSyntacticDiagnostics||(qt.additionalSyntacticDiagnostics=cu(qt)),Pl(qt.additionalSyntacticDiagnostics,qt.parseDiagnostics)):qt.parseDiagnostics}function oi(qt){try{return qt()}catch(bi){throw bi instanceof sH&&(Oe=void 0),bi}}function nn(qt,bi,Li){return Pl(YU(hr(qt,bi,Li),ae),kn(qt))}function hr(qt,bi,Li){if(Li)return io(qt,bi,Li);let Yn=_t?.get(qt.path);return Yn||(_t??(_t=new Map)).set(qt.path,Yn=io(qt,bi)),Yn}function io(qt,bi,Li){return oi(()=>{if(W8(qt,ae,vt))return F;let Yn=Aa();Se.assert(!!qt.bindDiagnostics);let Mr=qt.scriptKind===1||qt.scriptKind===2,Bo=tG(qt,ae.checkJs),bo=Mr&&HG(qt,ae),Zs=qt.bindDiagnostics,jc=Yn.getDiagnostics(qt,bi,Li);return Bo&&(Zs=Qn(Zs,bs=>IXe.has(bs.code)),jc=Qn(jc,bs=>IXe.has(bs.code))),Er(qt,!Bo,!!Li,Zs,jc,bo?qt.jsDocDiagnostics:void 0)})}function Er(qt,bi,Li,...Yn){var Mr;let Bo=cr(Yn);if(!bi||!((Mr=qt.commentDirectives)!=null&&Mr.length))return Bo;let{diagnostics:bo,directives:Zs}=is(qt,qt.commentDirectives,Bo);if(Li)return bo;for(let jc of Zs.getUnusedExpectations())bo.push(Hpe(qt,jc.range,j.Unused_ts_expect_error_directive));return bo}function is(qt,bi,Li){let Yn=RA(qt,bi);return{diagnostics:Li.filter(Bo=>da(Bo,Yn)===-1),directives:Yn}}function zs(qt,bi){return oi(()=>Aa().getSuggestionDiagnostics(qt,bi))}function da(qt,bi){let{file:Li,start:Yn}=qt;if(!Li)return-1;let Mr=P6(Li),Bo=Bd(Mr,Yn).line-1;for(;Bo>=0;){if(bi.markUsed(Bo))return Bo;let bo=Li.text.slice(Mr[Bo],Mr[Bo+1]).trim();if(bo!==""&&!/^\s*\/\/.*$/.test(bo))return-1;Bo--}return-1}function cu(qt){return oi(()=>{let bi=[];return Li(qt,qt),NU(qt,Li,Yn),bi;function Li(Zs,jc){switch(jc.kind){case 169:case 172:case 174:if(jc.questionToken===Zs)return bi.push(bo(Zs,j.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 173:case 176:case 177:case 178:case 218:case 262:case 219:case 260:if(jc.type===Zs)return bi.push(bo(Zs,j.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(Zs.kind){case 273:if(Zs.isTypeOnly)return bi.push(bo(jc,j._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 278:if(Zs.isTypeOnly)return bi.push(bo(Zs,j._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 276:case 281:if(Zs.isTypeOnly)return bi.push(bo(Zs,j._0_declarations_can_only_be_used_in_TypeScript_files,eg(Zs)?"import...type":"export...type")),"skip";break;case 271:return bi.push(bo(Zs,j.import_can_only_be_used_in_TypeScript_files)),"skip";case 277:if(Zs.isExportEquals)return bi.push(bo(Zs,j.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 298:if(Zs.token===119)return bi.push(bo(Zs,j.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 264:let nl=Ef(120);return Se.assertIsDefined(nl),bi.push(bo(Zs,j._0_declarations_can_only_be_used_in_TypeScript_files,nl)),"skip";case 267:let Us=Zs.flags&32?Ef(145):Ef(144);return Se.assertIsDefined(Us),bi.push(bo(Zs,j._0_declarations_can_only_be_used_in_TypeScript_files,Us)),"skip";case 265:return bi.push(bo(Zs,j.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 176:case 174:case 262:return Zs.body?void 0:(bi.push(bo(Zs,j.Signature_declarations_can_only_be_used_in_TypeScript_files)),"skip");case 266:let Pu=Se.checkDefined(Ef(94));return bi.push(bo(Zs,j._0_declarations_can_only_be_used_in_TypeScript_files,Pu)),"skip";case 235:return bi.push(bo(Zs,j.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 234:return bi.push(bo(Zs.type,j.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 238:return bi.push(bo(Zs.type,j.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 216:Se.fail()}}function Yn(Zs,jc){if(dK(jc)){let bs=jt(jc.modifiers,Cy);bs&&bi.push(bo(bs,j.Decorators_are_not_valid_here))}else if(_W(jc)&&jc.modifiers){let bs=_n(jc.modifiers,Cy);if(bs>=0){if(Fl(jc)&&!ae.experimentalDecorators)bi.push(bo(jc.modifiers[bs],j.Decorators_are_not_valid_here));else if(D0(jc)){let nl=_n(jc.modifiers,H5);if(nl>=0){let Us=_n(jc.modifiers,bU);if(bs>nl&&Us>=0&&bs=0&&bs=0&&bi.push(Pd(bo(jc.modifiers[Pu],j.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),bo(jc.modifiers[bs],j.Decorator_used_before_export_here)))}}}}}switch(jc.kind){case 263:case 231:case 174:case 176:case 177:case 178:case 218:case 262:case 219:if(Zs===jc.typeParameters)return bi.push(Bo(Zs,j.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 243:if(Zs===jc.modifiers)return Mr(jc.modifiers,jc.kind===243),"skip";break;case 172:if(Zs===jc.modifiers){for(let bs of Zs)jd(bs)&&bs.kind!==126&&bs.kind!==129&&bi.push(bo(bs,j.The_0_modifier_can_only_be_used_in_TypeScript_files,Ef(bs.kind)));return"skip"}break;case 169:if(Zs===jc.modifiers&&En(Zs,jd))return bi.push(Bo(Zs,j.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 213:case 214:case 233:case 285:case 286:case 215:if(Zs===jc.typeArguments)return bi.push(Bo(Zs,j.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function Mr(Zs,jc){for(let bs of Zs)switch(bs.kind){case 87:if(jc)continue;case 125:case 123:case 124:case 148:case 138:case 128:case 164:case 103:case 147:bi.push(bo(bs,j.The_0_modifier_can_only_be_used_in_TypeScript_files,Ef(bs.kind)));break;case 126:case 95:case 90:case 129:}}function Bo(Zs,jc,...bs){let nl=Zs.pos;return k_(qt,nl,Zs.end-nl,jc,...bs)}function bo(Zs,jc,...bs){return ss(qt,Zs,jc,...bs)}})}function ru(qt,bi){let Li=ft?.get(qt.path);return Li||(ft??(ft=new Map)).set(qt.path,Li=mf(qt,bi)),Li}function mf(qt,bi){return oi(()=>{let Li=Aa().getEmitResolver(qt,bi);return dge($l(Za),Li,qt)||F})}function B_(qt,bi){return qt.isDeclarationFile?F:ru(qt,bi)}function vd(){return qw(Pl(pe().getGlobalDiagnostics(),td()))}function td(){if(!ae.configFile)return F;let qt=pe().getDiagnostics(ae.configFile.fileName);return wg(bi=>{qt=Pl(qt,pe().getDiagnostics(bi.sourceFile.fileName))}),qt}function rp(){return _e.length?qw(Aa().getGlobalDiagnostics().slice()):F}function _i(){return le||F}function er(qt,bi,Li,Yn){il(Kd(qt),bi,Li,void 0,Yn)}function wo(qt,bi){return qt.fileName===bi.fileName}function cl(qt,bi){return qt.kind===80?bi.kind===80&&qt.escapedText===bi.escapedText:bi.kind===11&&qt.text===bi.text}function ri(qt,bi){let Li=Me.createStringLiteral(qt),Yn=Me.createImportDeclaration(void 0,void 0,Li);return Na(Yn,2),dp(Li,Yn),dp(Yn,bi),Li.flags&=-17,Yn.flags&=-17,Li}function $n(qt){if(qt.imports)return;let bi=$v(qt),Li=Mg(qt),Yn,Mr,Bo;if(bi||!qt.isDeclarationFile&&($E(ae)||Mg(qt))){ae.importHelpers&&(Yn=[ri(R7,qt)]);let bs=qse(jG(ae,qt),ae);bs&&(Yn||(Yn=[])).push(ri(bs,qt))}for(let bs of qt.statements)bo(bs,!1);(qt.flags&4194304||bi)&&Zs(qt),qt.imports=Yn||F,qt.moduleAugmentations=Mr||F,qt.ambientModuleNames=Bo||F;return;function bo(bs,nl){if(wH(bs)){let Us=Tj(bs);Us&&Kf(Us)&&Us.text&&(!nl||!l0(Us.text))&&(G3(bs,!1),Yn=ar(Yn,Us),!St&&Ei===0&&!qt.isDeclarationFile&&(St=xl(Us.text,"node:")))}else if(Dh(bs)&&nb(bs)&&(nl||kc(bs,128)||qt.isDeclarationFile)){bs.name.parent=bs;let Us=jC(bs.name);if(Li||nl&&!l0(Us))(Mr||(Mr=[])).push(bs.name);else if(!nl){qt.isDeclarationFile&&(Bo||(Bo=[])).push(Us);let Pu=bs.body;if(Pu)for(let ep of Pu.statements)bo(ep,!0)}}}function Zs(bs){let nl=/import|require/g;for(;nl.exec(bs.text)!==null;){let Us=jc(bs,nl.lastIndex);if(bi&&es(Us,!0))G3(Us,!1),Yn=ar(Yn,Us.arguments[0]);else if(Kx(Us)&&Us.arguments.length>=1&&i_(Us.arguments[0]))G3(Us,!1),Yn=ar(Yn,Us.arguments[0]);else if(Wy(Us))G3(Us,!1),Yn=ar(Yn,Us.argument.literal);else if(bi&&cT(Us)){let Pu=Tj(Us);Pu&&Kf(Pu)&&Pu.text&&(G3(Us,!1),Yn=ar(Yn,Pu))}}}function jc(bs,nl){let Us=bs,Pu=ep=>{if(ep.pos<=nl&&(nlWh(Mr,bo))){Li&&(eL(Mr)?Li(j.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,qt):Li(j.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,qt,"'"+cr(ci).join("', '")+"'"));return}let Bo=bi(qt);if(Li)if(Bo)z4(Yn)&&Mr===xr.getCanonicalFileName(Ar(Yn.file).fileName)&&Li(j.A_file_cannot_have_a_reference_to_itself);else{let bo=gh(qt);bo?Li(j.Output_file_0_has_not_been_built_from_source_file_1,bo,qt):Li(j.File_0_not_found,qt)}return Bo}else{let Mr=ae.allowNonTsExtensions&&bi(qt);if(Mr)return Mr;if(Li&&ae.allowNonTsExtensions){Li(j.File_0_not_found,qt);return}let Bo=ee(ci[0],bo=>bi(qt+bo));return Li&&!Bo&&Li(j.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,qt,"'"+cr(ci).join("', '")+"'"),Bo}}function il(qt,bi,Li,Yn,Mr){tl(qt,Bo=>Md(Bo,bi,Li,Mr,Yn),(Bo,...bo)=>Id(void 0,Mr,Bo,bo),Mr)}function Fd(qt,bi){return il(qt,!1,!1,void 0,bi)}function hp(qt,bi,Li){!z4(Li)&&En($e.get(bi.path),z4)?Id(bi,Li,j.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[bi.fileName,qt]):Id(bi,Li,j.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[qt,bi.fileName])}function Wf(qt,bi,Li,Yn,Mr,Bo,bo){var Zs;let jc=mL.createRedirectedSourceFile({redirectTarget:qt,unredirected:bi});return jc.fileName=Li,jc.path=Yn,jc.resolvedPath=Mr,jc.originalFileName=Bo,jc.packageJsonLocations=(Zs=bo.packageJsonLocations)!=null&&Zs.length?bo.packageJsonLocations:void 0,jc.packageJsonScope=bo.packageJsonScope,zr.set(Yn,Ei>0),jc}function Md(qt,bi,Li,Yn,Mr){var Bo,bo;(Bo=us)==null||Bo.push(us.Phase.Program,"findSourceFile",{fileName:qt,isDefaultLib:bi||void 0,fileIncludeKind:koe[Yn.kind]});let Zs=tg(qt,bi,Li,Yn,Mr);return(bo=us)==null||bo.pop(),Zs}function j_(qt,bi,Li,Yn){let Mr=Pge(tu(qt,Gr),bi?.getPackageJsonInfoCache(),Li,Yn),Bo=h_(Yn),bo=kme(Yn);return typeof Mr=="object"?{...Mr,languageVersion:Bo,setExternalModuleIndicator:bo,jsDocParsingMode:Li.jsDocParsingMode}:{languageVersion:Bo,impliedNodeFormat:Mr,setExternalModuleIndicator:bo,jsDocParsingMode:Li.jsDocParsingMode}}function tg(qt,bi,Li,Yn,Mr){var Bo;let bo=Vr(qt);if(hi){let Us=Ap(bo);if(!Us&&xr.realpath&&ae.preserveSymlinks&&ey(qt)&&qt.includes(nP)){let Pu=Vr(xr.realpath(qt));Pu!==bo&&(Us=Ap(Pu))}if(Us){let Pu=Yu(Us)?Md(Us,bi,Li,Yn,Mr):void 0;return Pu&&e0(Pu,bo,qt,void 0),Pu}}let Zs=qt;if(Ve.has(bo)){let Us=Ve.get(bo),Pu=Rg(Us||void 0,Yn,!0);if(Us&&Pu&&ae.forceConsistentCasingInFileNames!==!1){let ep=Us.fileName;Vr(ep)!==Vr(qt)&&(qt=gh(qt)||qt);let Cb=NA(ep,Gr),O0=NA(qt,Gr);Cb!==O0&&hp(qt,Us,Yn)}return Us&&zr.get(Us.path)&&Ei===0?(zr.set(Us.path,!1),ae.noResolve||(Dr(Us,bi),Tr(Us)),ae.noLib||Ft(Us),zn.set(Us.path,!1),yr(Us)):Us&&zn.get(Us.path)&&EiId(void 0,Yn,j.Cannot_read_file_0_Colon_1,[qt,Us]),Ce);if(Mr){let Us=h4(Mr),Pu=nt.get(Us);if(Pu){let ep=Wf(Pu,nl,qt,bo,Vr(qt),Zs,bs);return Pe.add(Pu.path,qt),e0(ep,bo,qt,jc),Rg(ep,Yn,!1),Lt.set(bo,dj(Mr)),we.push(ep),ep}else nl&&(nt.set(Us,nl),Lt.set(bo,dj(Mr)))}if(e0(nl,bo,qt,jc),nl){if(zr.set(bo,Ei>0),nl.fileName=qt,nl.path=bo,nl.resolvedPath=Vr(qt),nl.originalFileName=Zs,nl.packageJsonLocations=(Bo=bs.packageJsonLocations)!=null&&Bo.length?bs.packageJsonLocations:void 0,nl.packageJsonScope=bs.packageJsonScope,Rg(nl,Yn,!1),xr.useCaseSensitiveFileNames()){let Us=OS(bo),Pu=dt.get(Us);Pu?hp(qt,Pu,Yn):dt.set(Us,nl)}_r=_r||nl.hasNoDefaultLib&&!Li,ae.noResolve||(Dr(nl,bi),Tr(nl)),ae.noLib||Ft(nl),yr(nl),bi?fe.push(nl):we.push(nl),(Ke??(Ke=new Set)).add(nl.path)}return nl}function Rg(qt,bi,Li){return qt&&(!Li||!z4(bi)||!Ke?.has(bi.file))?($e.add(qt.path,bi),!0):!1}function e0(qt,bi,Li,Yn){Yn?(A0(Li,Yn,qt),A0(Li,bi,qt||!1)):A0(Li,bi,qt)}function A0(qt,bi,Li){Ve.set(bi,Li),Li!==void 0?Tt.delete(bi):Tt.set(bi,qt)}function gh(qt){let bi=wp(qt);return bi&&xb(bi,qt)}function wp(qt){if(!(!Wt||!Wt.length||ey(qt)||Wh(qt,".json")))return ig(qt)}function xb(qt,bi){let Li=qt.commandLine.options.outFile;return Li?J3(Li,".d.ts"):PW(bi,qt.commandLine,!xr.useCaseSensitiveFileNames())}function ig(qt){Gt===void 0&&(Gt=new Map,wg(Li=>{Vr(ae.configFilePath)!==Li.sourceFile.path&&Li.commandLine.fileNames.forEach(Yn=>Gt.set(Vr(Yn),Li.sourceFile.path))}));let bi=Gt.get(Vr(qt));return bi&&ln(bi)}function wg(qt){return j2e(Wt,qt)}function Ap(qt){if(ey(qt))return Mt===void 0&&(Mt=new Map,wg(bi=>{let Li=bi.commandLine.options.outFile;if(Li){let Yn=J3(Li,".d.ts");Mt.set(Vr(Yn),!0)}else{let Yn=H0(()=>c9(bi.commandLine,!xr.useCaseSensitiveFileNames()));ee(bi.commandLine.fileNames,Mr=>{if(!ey(Mr)&&!Wh(Mr,".json")){let Bo=PW(Mr,bi.commandLine,!xr.useCaseSensitiveFileNames(),Yn);Mt.set(Vr(Bo),Mr)}})}})),Mt.get(qt)}function xt(qt){return hi&&!!ig(qt)}function ln(qt){if(pt)return pt.get(qt)||void 0}function Dr(qt,bi){ee(qt.referencedFiles,(Li,Yn)=>{il(BK(Li.fileName,qt.fileName),bi,!1,void 0,{kind:4,file:qt.path,index:Yn})})}function Tr(qt){let bi=qt.typeReferenceDirectives;if(!bi.length)return;let Li=Bi?.get(qt.path)||Nc(bi,qt),Yn=aI();(wi??(wi=new Map)).set(qt.path,Yn);for(let Mr=0;Mr{let Yn=Age(bi);Yn?er(yn(Yn),!0,!0,{kind:7,file:qt.path,index:Li}):(mt||(mt=[])).push({kind:0,reason:{kind:7,file:qt.path,index:Li}})})}function Vi(qt){return xr.getCanonicalFileName(qt)}function yr(qt){if($n(qt),qt.imports.length||qt.moduleAugmentations.length){let bi=Lge(qt),Li=pi?.get(qt.path)||pa(bi,qt);Se.assert(Li.length===bi.length);let Yn=st(qt),Mr=aI();(Ut??(Ut=new Map)).set(qt.path,Mr);for(let Bo=0;Bomr,L0=Pu&&!kce(Yn,bo,qt)&&!Yn.noResolve&&BoMg(bo)&&!bo.isDeclarationFile);if(ae.isolatedModules||ae.verbatimModuleSyntax)ae.module===0&&bi<2&&ae.isolatedModules&&Z_(j.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),ae.preserveConstEnums===!1&&Z_(j.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,ae.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(Li&&bi<2&&ae.module===0){let bo=_5(Li,typeof Li.externalModuleIndicator=="boolean"?Li:Li.externalModuleIndicator);mn.add(k_(Li,bo.start,bo.length,j.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(qt&&!ae.emitDeclarationOnly){if(ae.module&&!(ae.module===2||ae.module===4))Z_(j.Only_amd_and_system_modules_are_supported_alongside_0,"outFile","module");else if(ae.module===void 0&&Li){let bo=_5(Li,typeof Li.externalModuleIndicator=="boolean"?Li:Li.externalModuleIndicator);mn.add(k_(Li,bo.start,bo.length,j.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,"outFile"))}}if(Q6(ae)&&(S1(ae)===1?Z_(j.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):nI(ae)||Z_(j.Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd,"resolveJsonModule","module")),ae.outDir||ae.rootDir||ae.sourceRoot||ae.mapRoot||fw(ae)&&ae.declarationDir){let bo=ir();ae.outDir&&bo===""&&Ae.some(Zs=>q0(Zs.fileName)>1)&&Z_(j.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}ae.checkJs&&!T0(ae)&&Z_(j.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs"),ae.emitDeclarationOnly&&(fw(ae)||Z_(j.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite")),ae.emitDecoratorMetadata&&!ae.experimentalDecorators&&Z_(j.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),ae.jsxFactory?(ae.reactNamespace&&Z_(j.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(ae.jsx===4||ae.jsx===5)&&Z_(j.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",pK.get(""+ae.jsx)),sO(ae.jsxFactory,bi)||Ay("jsxFactory",j.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,ae.jsxFactory)):ae.reactNamespace&&!Jb(ae.reactNamespace,bi)&&Ay("reactNamespace",j.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,ae.reactNamespace),ae.jsxFragmentFactory&&(ae.jsxFactory||Z_(j.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(ae.jsx===4||ae.jsx===5)&&Z_(j.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",pK.get(""+ae.jsx)),sO(ae.jsxFragmentFactory,bi)||Ay("jsxFragmentFactory",j.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,ae.jsxFragmentFactory)),ae.reactNamespace&&(ae.jsx===4||ae.jsx===5)&&Z_(j.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",pK.get(""+ae.jsx)),ae.jsxImportSource&&ae.jsx===2&&Z_(j.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",pK.get(""+ae.jsx));let Yn=b1(ae);ae.verbatimModuleSyntax&&(Yn===2||Yn===3||Yn===4)&&Z_(j.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax"),ae.allowImportingTsExtensions&&!(ae.noEmit||ae.emitDeclarationOnly)&&Ay("allowImportingTsExtensions",j.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);let Mr=S1(ae);if(ae.resolvePackageJsonExports&&!Uj(Mr)&&Z_(j.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),ae.resolvePackageJsonImports&&!Uj(Mr)&&Z_(j.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),ae.customConditions&&!Uj(Mr)&&Z_(j.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),Mr===100&&!UC(Yn)&&Yn!==200&&Ay("moduleResolution",j.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"bundler"),$Q[Yn]&&100<=Yn&&Yn<=199&&!(3<=Mr&&Mr<=99)){let bo=$Q[Yn];Ay("moduleResolution",j.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,bo,bo)}else if(aH[Mr]&&3<=Mr&&Mr<=99&&!(100<=Yn&&Yn<=199)){let bo=aH[Mr];Ay("module",j.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1,bo,bo)}if(!ae.noEmit&&!ae.suppressOutputPathCheck){let bo=$l(),Zs=new Set;x2e(bo,jc=>{ae.emitDeclarationOnly||Bo(jc.jsFilePath,Zs),Bo(jc.declarationFilePath,Zs)})}function Bo(bo,Zs){if(bo){let jc=Vr(bo);if(Ve.has(jc)){let nl;ae.configFilePath||(nl=Zl(void 0,j.Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig)),nl=Zl(nl,j.Cannot_write_file_0_because_it_would_overwrite_input_file,bo),dv(bo,Vse(nl))}let bs=xr.useCaseSensitiveFileNames()?jc:OS(jc);Zs.has(bs)?dv(bo,Th(j.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,bo)):Zs.add(bs)}}}function Ur(){let qt=ae.ignoreDeprecations;if(qt){if(qt==="5.0")return new ve(qt);Le()}return ve.zero}function Rs(qt,bi,Li,Yn){let Mr=new ve(qt),Bo=new ve(bi),bo=new ve(xe||N),Zs=Ur(),jc=Bo.compareTo(bo)!==1,bs=!jc&&Zs.compareTo(Mr)===-1;(jc||bs)&&Yn((nl,Us,Pu)=>{jc?Us===void 0?Li(nl,Us,Pu,j.Option_0_has_been_removed_Please_remove_it_from_your_configuration,nl):Li(nl,Us,Pu,j.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,nl,Us):Us===void 0?Li(nl,Us,Pu,j.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,nl,bi,qt):Li(nl,Us,Pu,j.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,nl,Us,bi,qt)})}function Ja(){function qt(bi,Li,Yn,Mr,...Bo){if(Yn){let bo=Zl(void 0,j.Use_0_instead,Yn),Zs=Zl(bo,Mr,...Bo);iy(!Li,bi,void 0,Zs)}else iy(!Li,bi,void 0,Mr,...Bo)}Rs("5.0","5.5",qt,bi=>{ae.target===0&&bi("target","ES3"),ae.noImplicitUseStrict&&bi("noImplicitUseStrict"),ae.keyofStringsOnly&&bi("keyofStringsOnly"),ae.suppressExcessPropertyErrors&&bi("suppressExcessPropertyErrors"),ae.suppressImplicitAnyIndexErrors&&bi("suppressImplicitAnyIndexErrors"),ae.noStrictGenericChecks&&bi("noStrictGenericChecks"),ae.charset&&bi("charset"),ae.out&&bi("out",void 0,"outFile"),ae.importsNotUsedAsValues&&bi("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),ae.preserveValueImports&&bi("preserveValueImports",void 0,"verbatimModuleSyntax")})}function Tc(qt,bi,Li){function Yn(Mr,Bo,bo,Zs,...jc){Py(bi,Li,Zs,...jc)}Rs("5.0","5.5",Yn,Mr=>{qt.prepend&&Mr("prepend")})}function Jl(qt,bi,Li,Yn){let Mr,Bo=qt&&$e.get(qt.path),bo,Zs,jc=z4(bi)?bi:void 0,bs,nl,Us=qt&&qe?.get(qt.path),Pu;Us?(Us.fileIncludeReasonDetails?(Mr=new Set(Bo),Bo?.forEach(O0)):Bo?.forEach(Cb),nl=Us.redirectInfo):(Bo?.forEach(Cb),nl=qt&&Oce(qt,st(qt))),bi&&Cb(bi);let ep=Mr?.size!==Bo?.length;jc&&Mr?.size===1&&(Mr=void 0),Mr&&Us&&(Us.details&&!ep?Pu=Zl(Us.details,Li,...Yn||F):Us.fileIncludeReasonDetails&&(ep?HS()?bo=ar(Us.fileIncludeReasonDetails.next.slice(0,Bo.length),bo[0]):bo=[...Us.fileIncludeReasonDetails.next,bo[0]]:HS()?bo=Us.fileIncludeReasonDetails.next.slice(0,Bo.length):bs=Us.fileIncludeReasonDetails)),Pu||(bs||(bs=Mr&&Zl(bo,j.The_file_is_in_the_program_because_Colon)),Pu=Zl(nl?bs?[bs,...nl]:nl:bs,Li,...Yn||F)),qt&&(Us?(!Us.fileIncludeReasonDetails||!ep&&bs)&&(Us.fileIncludeReasonDetails=bs):(qe??(qe=new Map)).set(qt.path,Us={fileIncludeReasonDetails:bs,redirectInfo:nl}),!Us.details&&!ep&&(Us.details=Pu.next));let L0=jc&&FW(vt,jc);return L0&&OW(L0)?TH(L0.file,L0.pos,L0.end-L0.pos,Pu,Zs):Vse(Pu,Zs);function Cb(t0){Mr?.has(t0)||((Mr??(Mr=new Set)).add(t0),(bo??(bo=[])).push(mte(vt,t0)),O0(t0))}function O0(t0){!jc&&z4(t0)?jc=t0:jc!==t0&&(Zs=ar(Zs,op(t0)))}function HS(){var t0;return((t0=Us.fileIncludeReasonDetails.next)==null?void 0:t0.length)!==Bo?.length}}function Id(qt,bi,Li,Yn){(mt||(mt=[])).push({kind:1,file:qt&&qt.path,fileProcessingReason:bi,diagnostic:Li,args:Yn})}function bd(qt,bi,Li){Nn.push({file:qt,diagnostic:bi,args:Li})}function op(qt){let bi=rt?.get(qt);return bi===void 0&&(rt??(rt=new Map)).set(qt,bi=Pv(qt)??!1),bi||void 0}function Pv(qt){if(z4(qt)){let Yn=FW(vt,qt),Mr;switch(qt.kind){case 3:Mr=j.File_is_included_via_import_here;break;case 4:Mr=j.File_is_included_via_reference_here;break;case 5:Mr=j.File_is_included_via_type_library_reference_here;break;case 7:Mr=j.File_is_included_via_library_reference_here;break;default:Se.assertNever(qt)}return OW(Yn)?k_(Yn.file,Yn.pos,Yn.end-Yn.pos,Mr):void 0}if(!ae.configFile)return;let bi,Li;switch(qt.kind){case 0:if(!ae.configFile.configFileSpecs)return;let Yn=tu(_e[qt.index],Gr),Mr=Fce(vt,Yn);if(Mr){bi=g5(ae.configFile,"files",Mr),Li=j.File_is_matched_by_files_list_specified_here;break}let Bo=RW(vt,Yn);if(!Bo||!Yu(Bo))return;bi=g5(ae.configFile,"include",Bo),Li=j.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:let bo=Se.checkDefined(Wt?.[qt.index]),Zs=xce(Ee,Wt,(Pu,ep,L0)=>Pu===bo?{sourceFile:ep?.sourceFile||ae.configFile,index:L0}:void 0);if(!Zs)return;let{sourceFile:jc,index:bs}=Zs,nl=DZ(jc,"references",Pu=>Yg(Pu.initializer)?Pu.initializer:void 0);return nl&&nl.elements.length>bs?ss(jc,nl.elements[bs],qt.kind===2?j.File_is_output_from_referenced_project_specified_here:j.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!ae.types)return;bi=m0("types",qt.typeReference),Li=j.File_is_entry_point_of_type_library_specified_here;break;case 6:if(qt.index!==void 0){bi=m0("lib",ae.lib[qt.index]),Li=j.File_is_library_specified_here;break}let Us=JC(h_(ae));bi=Us?eh("target",Us):void 0,Li=j.File_is_default_library_for_target_specified_here;break;default:Se.assertNever(qt)}return bi&&ss(ae.configFile,bi,Li)}function Lv(){let qt=ae.suppressOutputPathCheck?void 0:s9(ae);xce(Ee,Wt,(bi,Li,Yn)=>{let Mr=(Li?Li.commandLine.projectReferences:Ee)[Yn],Bo=Li&&Li.sourceFile;if(Tc(Mr,Bo,Yn),!bi){Py(Bo,Yn,j.File_0_not_found,Mr.path);return}let bo=bi.commandLine.options;(!bo.composite||bo.noEmit)&&(Li?Li.commandLine.fileNames:_e).length&&(bo.composite||Py(Bo,Yn,j.Referenced_project_0_must_have_setting_composite_Colon_true,Mr.path),bo.noEmit&&Py(Bo,Yn,j.Referenced_project_0_may_not_disable_emit,Mr.path)),!Li&&qt&&qt===s9(bo)&&(Py(Bo,Yn,j.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,qt,Mr.path),Sr.set(Vr(qt),!0))})}function P0(qt,bi,Li,...Yn){let Mr=!0;ng(Bo=>{Ld(Bo.initializer)&&h5(Bo.initializer,qt,bo=>{let Zs=bo.initializer;Yg(Zs)&&Zs.elements.length>bi&&(mn.add(ss(ae.configFile,Zs.elements[bi],Li,...Yn)),Mr=!1)})}),Mr&&sC(Li,...Yn)}function Ny(qt,bi,Li,...Yn){let Mr=!0;ng(Bo=>{Ld(Bo.initializer)&&A1(Bo.initializer,qt,bi,void 0,Li,...Yn)&&(Mr=!1)}),Mr&&sC(Li,...Yn)}function y_(qt,bi){return h5(h0(),qt,bi)}function ng(qt){return y_("paths",qt)}function eh(qt,bi){return y_(qt,Li=>Kf(Li.initializer)&&Li.initializer.text===bi?Li.initializer:void 0)}function m0(qt,bi){let Li=h0();return Li&&Zke(Li,qt,bi)}function Z_(qt,bi,Li,Yn){iy(!0,bi,Li,qt,bi,Li,Yn)}function Ay(qt,bi,...Li){iy(!1,qt,void 0,bi,...Li)}function Py(qt,bi,Li,...Yn){let Mr=DZ(qt||ae.configFile,"references",Bo=>Yg(Bo.initializer)?Bo.initializer:void 0);Mr&&Mr.elements.length>bi?mn.add(ss(qt||ae.configFile,Mr.elements[bi],Li,...Yn)):mn.add(Th(Li,...Yn))}function iy(qt,bi,Li,Yn,...Mr){let Bo=h0();(!Bo||!A1(Bo,qt,bi,Li,Yn,...Mr))&&sC(Yn,...Mr)}function sC(qt,...bi){let Li=aC();Li?"messageText"in qt?mn.add(WT(ae.configFile,Li.name,qt)):mn.add(ss(ae.configFile,Li.name,qt,...bi)):"messageText"in qt?mn.add(Vse(qt)):mn.add(Th(qt,...bi))}function h0(){if(vo===void 0){let qt=aC();vo=qt&&ac(qt.initializer,Ld)||!1}return vo||void 0}function aC(){return $o===void 0&&($o=h5(cG(ae.configFile),"compilerOptions",ps)||!1),$o||void 0}function A1(qt,bi,Li,Yn,Mr,...Bo){let bo=!1;return h5(qt,Li,Zs=>{"messageText"in Mr?mn.add(WT(ae.configFile,bi?Zs.name:Zs.initializer,Mr)):mn.add(ss(ae.configFile,bi?Zs.name:Zs.initializer,Mr,...Bo)),bo=!0},Yn),bo}function dv(qt,bi){Sr.set(Vr(qt),!0),mn.add(bi)}function Ov(qt){if(ae.noEmit)return!1;let bi=Vr(qt);if(Ar(bi))return!1;let Li=ae.outFile;if(Li)return xi(bi,Li)||xi(bi,Qx(Li)+".d.ts");if(ae.declarationDir&&Gp(ae.declarationDir,bi,Gr,!xr.useCaseSensitiveFileNames()))return!0;if(ae.outDir)return Gp(ae.outDir,bi,Gr,!xr.useCaseSensitiveFileNames());if(gg(bi,P5)||ey(bi)){let Yn=Qx(bi);return!!Ar(Yn+".ts")||!!Ar(Yn+".tsx")}return!1}function xi(qt,bi){return fk(qt,bi,Gr,!xr.useCaseSensitiveFileNames())===0}function Ui(){return xr.getSymlinkCache?xr.getSymlinkCache():(Ge||(Ge=A5(Gr,Vi)),Ae&&!Ge.hasProcessedResolutions()&&Ge.setSymlinksFromResolutions(Fi,Vn,ht),Ge)}function nr(qt,bi){return _F(qt,bi,st(qt))}function Hr(qt,bi){return DXe(qt,bi,st(qt))}function yo(qt,bi){return nr(qt,QU(qt,bi))}function fs(qt){return WK(qt,st(qt))}function Co(qt){return uO(qt,st(qt))}function Os(qt){return V4(qt,st(qt))}function Jc(qt){return W2e(qt,st(qt))}}function W2e(t,n){let a=b1(n);return 100<=a&&a<=199||a===200?!1:V4(t,n)<5}function V4(t,n){return uO(t,n)??b1(n)}function uO(t,n){var a,u;let m=b1(n);if(100<=m&&m<=199)return t.impliedNodeFormat;if(t.impliedNodeFormat===1&&(((a=t.packageJsonScope)==null?void 0:a.contents.packageJsonContent.type)==="commonjs"||gg(t.fileName,[".cjs",".cts"])))return 1;if(t.impliedNodeFormat===99&&(((u=t.packageJsonScope)==null?void 0:u.contents.packageJsonContent.type)==="module"||gg(t.fileName,[".mjs",".mts"])))return 99}function WK(t,n){return ROe(n)?uO(t,n):void 0}function RFe(t){let n,a=t.compilerHost.fileExists,u=t.compilerHost.directoryExists,m=t.compilerHost.getDirectories,g=t.compilerHost.realpath;if(!t.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:Za,fileExists:k};t.compilerHost.fileExists=k;let v;return u&&(v=t.compilerHost.directoryExists=R=>u.call(t.compilerHost,R)?(A(R),!0):t.getResolvedProjectReferences()?(n||(n=new Set,t.forEachResolvedProjectReference(H=>{let U=H.commandLine.options.outFile;if(U)n.add(Cc(t.toPath(U)));else{let $=H.commandLine.options.declarationDir||H.commandLine.options.outDir;$&&n.add(t.toPath($))}})),M(R,!1)):!1),m&&(t.compilerHost.getDirectories=R=>!t.getResolvedProjectReferences()||u&&u.call(t.compilerHost,R)?m.call(t.compilerHost,R):[]),g&&(t.compilerHost.realpath=R=>{var H;return((H=t.getSymlinkCache().getSymlinkedFiles())==null?void 0:H.get(t.toPath(R)))||g.call(t.compilerHost,R)}),{onProgramCreateComplete:x,fileExists:k,directoryExists:v};function x(){t.compilerHost.fileExists=a,t.compilerHost.directoryExists=u,t.compilerHost.getDirectories=m}function k(R){return a.call(t.compilerHost,R)?!0:!t.getResolvedProjectReferences()||!ey(R)?!1:M(R,!0)}function T(R){let H=t.getSourceOfProjectReferenceRedirect(t.toPath(R));return H!==void 0?Yu(H)?a.call(t.compilerHost,H):!0:void 0}function I(R){let H=t.toPath(R),U=`${H}${uh}`;return N2(n,$=>H===$||xl($,U)||xl(H,`${$}/`))}function A(R){var H;if(!t.getResolvedProjectReferences()||V8(R)||!g||!R.includes(nP))return;let U=t.getSymlinkCache(),$=Fs(t.toPath(R));if((H=U.getSymlinkedDirectories())!=null&&H.has($))return;let K=Kd(g.call(t.compilerHost,R)),re;if(K===R||(re=Fs(t.toPath(K)))===$){U.setSymlinkedDirectory($,!1);return}U.setSymlinkedDirectory(R,{real:Fs(K),realPath:re})}function M(R,H){var U;let $=H?se=>T(se):se=>I(se),K=$(R);if(K!==void 0)return K;let re=t.getSymlinkCache(),X=re.getSymlinkedDirectories();if(!X)return!1;let ne=t.toPath(R);return ne.includes(nP)?H&&((U=re.getSymlinkedFiles())!=null&&U.has(ne))?!0:Xe(X.entries(),([se,_e])=>{if(!_e||!xl(ne,se))return;let ae=$(ne.replace(se,_e.realPath));if(H&&ae){let le=tu(R,t.compilerHost.getCurrentDirectory());re.setSymlinkedFile(ne,`${_e.real}${le.replace(new RegExp(se,"i"),"")}`)}return ae})||!1:!1}}var BFe={diagnostics:F,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0};function jFe(t,n,a,u){let m=t.getCompilerOptions();if(m.noEmit)return n?BFe:t.emitBuildInfo(a,u);if(!m.noEmitOnError)return;let g=[...t.getOptionsDiagnostics(u),...t.getSyntacticDiagnostics(n,u),...t.getGlobalDiagnostics(u),...t.getSemanticDiagnostics(n,u)];if(g.length===0&&fw(t.getCompilerOptions())&&(g=t.getDeclarationDiagnostics(void 0,u)),!g.length)return;let v;if(!n){let x=t.emitBuildInfo(a,u);x.diagnostics&&(g=[...g,...x.diagnostics]),v=x.emittedFiles}return{diagnostics:g,sourceMaps:void 0,emittedFiles:v,emitSkipped:!0}}function YU(t,n){return Qn(t,a=>!a.skippedOn||!n[a.skippedOn])}function z2e(t,n=t){return{fileExists:a=>n.fileExists(a),readDirectory(a,u,m,g,v){return Se.assertIsDefined(n.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),n.readDirectory(a,u,m,g,v)},readFile:a=>n.readFile(a),directoryExists:wu(n,n.directoryExists),getDirectories:wu(n,n.getDirectories),realpath:wu(n,n.realpath),useCaseSensitiveFileNames:t.useCaseSensitiveFileNames(),getCurrentDirectory:()=>t.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:t.onUnRecoverableConfigFileDiagnostic||FT,trace:t.trace?a=>t.trace(a):void 0}}function MW(t){return o7e(t.path)}function kce(t,{extension:n},{isDeclarationFile:a}){switch(n){case".ts":case".d.ts":case".mts":case".d.mts":case".cts":case".d.cts":return;case".tsx":return u();case".jsx":return u()||m();case".js":case".mjs":case".cjs":return m();case".json":return g();default:return v()}function u(){return t.jsx?void 0:j.Module_0_was_resolved_to_1_but_jsx_is_not_set}function m(){return T0(t)||!d0(t,"noImplicitAny")?void 0:j.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}function g(){return Q6(t)?void 0:j.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used}function v(){return a||t.allowArbitraryExtensions?void 0:j.Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set}}function Lge({imports:t,moduleAugmentations:n}){let a=t.map(u=>u);for(let u of n)u.kind===11&&a.push(u);return a}function QU({imports:t,moduleAugmentations:n},a){if(a(t[t.ComputedDts=0]="ComputedDts",t[t.StoredSignatureAtEmit=1]="StoredSignatureAtEmit",t[t.UsedVersion=2]="UsedVersion",t))(Oge||{}),uI;(t=>{function n(){function xe(be,Le,fe){let we={getKeys:Ae=>Le.get(Ae),getValues:Ae=>be.get(Ae),keys:()=>be.keys(),size:()=>be.size,deleteKey:Ae=>{(fe||(fe=new Set)).add(Ae);let Ge=be.get(Ae);return Ge?(Ge.forEach(he=>u(Le,he,Ae)),be.delete(Ae),!0):!1},set:(Ae,Ge)=>{fe?.delete(Ae);let he=be.get(Ae);return be.set(Ae,Ge),he?.forEach(Oe=>{Ge.has(Oe)||u(Le,Oe,Ae)}),Ge.forEach(Oe=>{he?.has(Oe)||a(Le,Oe,Ae)}),we}};return we}return xe(new Map,new Map,void 0)}t.createManyToManyPathMap=n;function a(xe,be,Le){let fe=xe.get(be);fe||(fe=new Set,xe.set(be,fe)),fe.add(Le)}function u(xe,be,Le){let fe=xe.get(be);return fe?.delete(Le)?(fe.size||xe.delete(be),!0):!1}function m(xe){return Dc(xe.declarations,be=>{var Le;return(Le=Vo(be))==null?void 0:Le.resolvedPath})}function g(xe,be){let Le=xe.getSymbolAtLocation(be);return Le&&m(Le)}function v(xe,be,Le,fe){return dd(xe.getProjectReferenceRedirect(be)||be,Le,fe)}function x(xe,be,Le){let fe;if(be.imports&&be.imports.length>0){let he=xe.getTypeChecker();for(let Oe of be.imports){let Re=g(he,Oe);Re?.forEach(Ge)}}let we=Cc(be.resolvedPath);if(be.referencedFiles&&be.referencedFiles.length>0)for(let he of be.referencedFiles){let Oe=v(xe,he.fileName,we,Le);Ge(Oe)}if(xe.forEachResolvedTypeReferenceDirective(({resolvedTypeReferenceDirective:he})=>{if(!he)return;let Oe=he.resolvedFileName,Re=v(xe,Oe,we,Le);Ge(Re)},be),be.moduleAugmentations.length){let he=xe.getTypeChecker();for(let Oe of be.moduleAugmentations){if(!Kf(Oe))continue;let Re=he.getSymbolAtLocation(Oe);Re&&Ae(Re)}}for(let he of xe.getTypeChecker().getAmbientModules())he.declarations&&he.declarations.length>1&&Ae(he);return fe;function Ae(he){if(he.declarations)for(let Oe of he.declarations){let Re=Vo(Oe);Re&&Re!==be&&Ge(Re.resolvedPath)}}function Ge(he){(fe||(fe=new Set)).add(he)}}function k(xe,be){return be&&!be.referencedMap==!xe}t.canReuseOldState=k;function T(xe){return xe.module!==0&&!xe.outFile?n():void 0}t.createReferencedMap=T;function I(xe,be,Le){var fe,we;let Ae=new Map,Ge=xe.getCompilerOptions(),he=T(Ge),Oe=k(he,be);xe.getTypeChecker();for(let Re of xe.getSourceFiles()){let $e=Se.checkDefined(Re.version,"Program intended to be used with Builder should have source files with versions set"),Ke=Oe?(fe=be.oldSignatures)==null?void 0:fe.get(Re.resolvedPath):void 0,qe=Ke===void 0?Oe?(we=be.fileInfos.get(Re.resolvedPath))==null?void 0:we.signature:void 0:Ke||void 0;if(he){let rt=x(xe,Re,xe.getCanonicalFileName);rt&&he.set(Re.resolvedPath,rt)}Ae.set(Re.resolvedPath,{version:$e,signature:qe,affectsGlobalScope:Ge.outFile?void 0:_e(Re)||void 0,impliedFormat:Re.impliedNodeFormat})}return{fileInfos:Ae,referencedMap:he,useFileVersionAsSignature:!Le&&!Oe}}t.create=I;function A(xe){xe.allFilesExcludingDefaultLibraryFile=void 0,xe.allFileNames=void 0}t.releaseCache=A;function M(xe,be,Le,fe,we){var Ae;let Ge=R(xe,be,Le,fe,we);return(Ae=xe.oldSignatures)==null||Ae.clear(),Ge}t.getFilesAffectedBy=M;function R(xe,be,Le,fe,we){let Ae=be.getSourceFileByPath(Le);return Ae?$(xe,be,Ae,fe,we)?(xe.referencedMap?Ee:le)(xe,be,Ae,fe,we):[Ae]:F}t.getFilesAffectedByWithOldState=R;function H(xe,be,Le){xe.fileInfos.get(Le).signature=be,(xe.hasCalledUpdateShapeSignature||(xe.hasCalledUpdateShapeSignature=new Set)).add(Le)}t.updateSignatureOfFile=H;function U(xe,be,Le,fe,we){xe.emit(be,(Ae,Ge,he,Oe,Re,$e)=>{Se.assert(ey(Ae),`File extension for signature expected to be dts: Got:: ${Ae}`),we(Tce(xe,be,Ge,fe,$e),Re)},Le,2,void 0,!0)}t.computeDtsSignature=U;function $(xe,be,Le,fe,we,Ae=xe.useFileVersionAsSignature){var Ge;if((Ge=xe.hasCalledUpdateShapeSignature)!=null&&Ge.has(Le.resolvedPath))return!1;let he=xe.fileInfos.get(Le.resolvedPath),Oe=he.signature,Re;return!Le.isDeclarationFile&&!Ae&&U(be,Le,fe,we,$e=>{Re=$e,we.storeSignatureInfo&&(xe.signatureInfo??(xe.signatureInfo=new Map)).set(Le.resolvedPath,0)}),Re===void 0&&(Re=Le.version,we.storeSignatureInfo&&(xe.signatureInfo??(xe.signatureInfo=new Map)).set(Le.resolvedPath,2)),(xe.oldSignatures||(xe.oldSignatures=new Map)).set(Le.resolvedPath,Oe||!1),(xe.hasCalledUpdateShapeSignature||(xe.hasCalledUpdateShapeSignature=new Set)).add(Le.resolvedPath),he.signature=Re,Re!==Oe}t.updateShapeSignature=$;function K(xe,be,Le){if(be.getCompilerOptions().outFile||!xe.referencedMap||_e(Le))return re(xe,be);let we=new Set,Ae=[Le.resolvedPath];for(;Ae.length;){let Ge=Ae.pop();if(!we.has(Ge)){we.add(Ge);let he=xe.referencedMap.getValues(Ge);if(he)for(let Oe of he.keys())Ae.push(Oe)}}return tc(up(we.keys(),Ge=>{var he;return((he=be.getSourceFileByPath(Ge))==null?void 0:he.fileName)??Ge}))}t.getAllDependencies=K;function re(xe,be){if(!xe.allFileNames){let Le=be.getSourceFiles();xe.allFileNames=Le===F?F:Le.map(fe=>fe.fileName)}return xe.allFileNames}function X(xe,be){let Le=xe.referencedMap.getKeys(be);return Le?tc(Le.keys()):[]}t.getReferencedByPaths=X;function ne(xe){for(let be of xe.statements)if(!xZ(be))return!1;return!0}function se(xe){return En(xe.moduleAugmentations,be=>y4(be.parent))}function _e(xe){return se(xe)||!Jv(xe)&&!qv(xe)&&!ne(xe)}function ae(xe,be,Le){if(xe.allFilesExcludingDefaultLibraryFile)return xe.allFilesExcludingDefaultLibraryFile;let fe;Le&&we(Le);for(let Ae of be.getSourceFiles())Ae!==Le&&we(Ae);return xe.allFilesExcludingDefaultLibraryFile=fe||F,xe.allFilesExcludingDefaultLibraryFile;function we(Ae){be.isSourceFileDefaultLibrary(Ae)||(fe||(fe=[])).push(Ae)}}t.getAllFilesExcludingDefaultLibraryFile=ae;function le(xe,be,Le){let fe=be.getCompilerOptions();return fe&&fe.outFile?[Le]:ae(xe,be,Le)}function Ee(xe,be,Le,fe,we){if(_e(Le))return ae(xe,be,Le);let Ae=be.getCompilerOptions();if(Ae&&($E(Ae)||Ae.outFile))return[Le];let Ge=new Map;Ge.set(Le.resolvedPath,Le);let he=X(xe,Le.resolvedPath);for(;he.length>0;){let Oe=he.pop();if(!Ge.has(Oe)){let Re=be.getSourceFileByPath(Oe);Ge.set(Oe,Re),Re&&$(xe,be,Re,fe,we)&&he.push(...X(xe,Re.resolvedPath))}}return tc(up(Ge.values(),Oe=>Oe))}})(uI||(uI={}));var cte=(t=>(t[t.None=0]="None",t[t.Js=1]="Js",t[t.JsMap=2]="JsMap",t[t.JsInlineMap=4]="JsInlineMap",t[t.DtsErrors=8]="DtsErrors",t[t.DtsEmit=16]="DtsEmit",t[t.DtsMap=32]="DtsMap",t[t.Dts=24]="Dts",t[t.AllJs=7]="AllJs",t[t.AllDtsEmit=48]="AllDtsEmit",t[t.AllDts=56]="AllDts",t[t.All=63]="All",t))(cte||{});function eJ(t){return t.program!==void 0}function NXe(t){return Se.assert(eJ(t)),t}function nS(t){let n=1;return t.sourceMap&&(n=n|2),t.inlineSourceMap&&(n=n|4),fw(t)&&(n=n|24),t.declarationMap&&(n=n|32),t.emitDeclarationOnly&&(n=n&56),n}function wce(t,n){let a=n&&(k7(n)?n:nS(n)),u=k7(t)?t:nS(t);if(a===u)return 0;if(!a||!u)return u;let m=a^u,g=0;return m&7&&(g=u&7),m&8&&(g=g|u&8),m&48&&(g=g|u&48),g}function wM(t,n){return t===n||t!==void 0&&n!==void 0&&t.size===n.size&&!N2(t,a=>!n.has(a))}function lte(t,n){var a,u;let m=uI.create(t,n,!1);m.program=t;let g=t.getCompilerOptions();m.compilerOptions=g;let v=g.outFile;m.semanticDiagnosticsPerFile=new Map,v&&g.composite&&n?.outSignature&&v===n.compilerOptions.outFile&&(m.outSignature=n.outSignature&&P0t(g,n.compilerOptions,n.outSignature)),m.changedFilesSet=new Set,m.latestChangedDtsFile=g.composite?n?.latestChangedDtsFile:void 0,m.checkPending=m.compilerOptions.noCheck?!0:void 0;let x=uI.canReuseOldState(m.referencedMap,n),k=x?n.compilerOptions:void 0,T=x&&!RG(g,k),I=g.composite&&n?.emitSignatures&&!v&&!H3(g,n.compilerOptions),A=!0;x?((a=n.changedFilesSet)==null||a.forEach(K=>m.changedFilesSet.add(K)),!v&&((u=n.affectedFilesPendingEmit)!=null&&u.size)&&(m.affectedFilesPendingEmit=new Map(n.affectedFilesPendingEmit),m.seenAffectedFiles=new Set),m.programEmitPending=n.programEmitPending,v&&m.changedFilesSet.size&&(T=!1,A=!1),m.hasErrorsFromOldState=n.hasErrors):m.buildInfoEmitPending=_f(g);let M=m.referencedMap,R=x?n.referencedMap:void 0,H=T&&!g.skipLibCheck==!k.skipLibCheck,U=H&&!g.skipDefaultLibCheck==!k.skipDefaultLibCheck;if(m.fileInfos.forEach((K,re)=>{var X;let ne,se;if(!x||!(ne=n.fileInfos.get(re))||ne.version!==K.version||ne.impliedFormat!==K.impliedFormat||!wM(se=M&&M.getValues(re),R&&R.getValues(re))||se&&N2(se,_e=>!m.fileInfos.has(_e)&&n.fileInfos.has(_e)))$(re);else{let _e=t.getSourceFileByPath(re),ae=A?(X=n.emitDiagnosticsPerFile)==null?void 0:X.get(re):void 0;if(ae&&(m.emitDiagnosticsPerFile??(m.emitDiagnosticsPerFile=new Map)).set(re,n.hasReusableDiagnostic?AXe(ae,re,t):L0t(ae,t)),T){if(_e.isDeclarationFile&&!H||_e.hasNoDefaultLib&&!U)return;let le=n.semanticDiagnosticsPerFile.get(re);le&&(m.semanticDiagnosticsPerFile.set(re,n.hasReusableDiagnostic?AXe(le,re,t):L0t(le,t)),(m.semanticDiagnosticsFromOldState??(m.semanticDiagnosticsFromOldState=new Set)).add(re))}}if(I){let _e=n.emitSignatures.get(re);_e&&(m.emitSignatures??(m.emitSignatures=new Map)).set(re,P0t(g,n.compilerOptions,_e))}}),x&&Km(n.fileInfos,(K,re)=>m.fileInfos.has(re)?!1:K.affectsGlobalScope?!0:(m.buildInfoEmitPending=!0,!!v)))uI.getAllFilesExcludingDefaultLibraryFile(m,t,void 0).forEach(K=>$(K.resolvedPath));else if(k){let K=Jse(g,k)?nS(g):wce(g,k);K!==0&&(v?m.changedFilesSet.size||(m.programEmitPending=m.programEmitPending?m.programEmitPending|K:K):(t.getSourceFiles().forEach(re=>{m.changedFilesSet.has(re.resolvedPath)||Rge(m,re.resolvedPath,K)}),Se.assert(!m.seenAffectedFiles||!m.seenAffectedFiles.size),m.seenAffectedFiles=m.seenAffectedFiles||new Set),m.buildInfoEmitPending=!0)}return x&&m.semanticDiagnosticsPerFile.size!==m.fileInfos.size&&n.checkPending!==m.checkPending&&(m.buildInfoEmitPending=!0),m;function $(K){m.changedFilesSet.add(K),v&&(T=!1,A=!1,m.semanticDiagnosticsFromOldState=void 0,m.semanticDiagnosticsPerFile.clear(),m.emitDiagnosticsPerFile=void 0),m.buildInfoEmitPending=!0,m.programEmitPending=void 0}}function P0t(t,n,a){return!!t.declarationMap==!!n.declarationMap?a:Yu(a)?[a]:a[0]}function L0t(t,n){return t.length?$s(t,a=>{if(Yu(a.messageText))return a;let u=WFe(a.messageText,a.file,n,m=>{var g;return(g=m.repopulateInfo)==null?void 0:g.call(m)});return u===a.messageText?a:{...a,messageText:u}}):t}function WFe(t,n,a,u){let m=u(t);if(m===!0)return{...MA(n),next:zFe(t.next,n,a,u)};if(m)return{...yy(n,a,m.moduleReference,m.mode,m.packageName||m.moduleReference),next:zFe(t.next,n,a,u)};let g=zFe(t.next,n,a,u);return g===t.next?t:{...t,next:g}}function zFe(t,n,a,u){return $s(t,m=>WFe(m,n,a,u))}function AXe(t,n,a){if(!t.length)return F;let u;return t.map(g=>{let v=VFe(g,n,a,m);v.reportsUnnecessary=g.reportsUnnecessary,v.reportsDeprecated=g.reportDeprecated,v.source=g.source,v.skippedOn=g.skippedOn;let{relatedInformation:x}=g;return v.relatedInformation=x?x.length?x.map(k=>VFe(k,n,a,m)):[]:void 0,v});function m(g){return u??(u=Cc(tu(s9(a.getCompilerOptions()),a.getCurrentDirectory()))),dd(g,u,a.getCanonicalFileName)}}function VFe(t,n,a,u){let{file:m}=t,g=m!==!1?a.getSourceFileByPath(m?u(m):n):void 0;return{...t,file:g,messageText:Yu(t.messageText)?t.messageText:WFe(t.messageText,g,a,v=>v.info)}}function O0t(t){uI.releaseCache(t),t.program=void 0}function HFe(t,n){Se.assert(!n||!t.affectedFiles||t.affectedFiles[t.affectedFilesIndex-1]!==n||!t.semanticDiagnosticsPerFile.has(n.resolvedPath))}function PXe(t,n,a){for(var u;;){let{affectedFiles:m}=t;if(m){let x=t.seenAffectedFiles,k=t.affectedFilesIndex;for(;k{let x=a?g&55:g&7;x?t.affectedFilesPendingEmit.set(v,x):t.affectedFilesPendingEmit.delete(v)}),t.programEmitPending)){let g=a?t.programEmitPending&55:t.programEmitPending&7;g?t.programEmitPending=g:t.programEmitPending=void 0}}function V2e(t,n,a,u){let m=wce(t,n);return a&&(m=m&56),u&&(m=m&8),m}function UFe(t){return t?8:56}function M0t(t,n,a){var u;if((u=t.affectedFilesPendingEmit)!=null&&u.size)return Km(t.affectedFilesPendingEmit,(m,g)=>{var v;let x=t.program.getSourceFileByPath(g);if(!x||!Pj(x,t.program)){t.affectedFilesPendingEmit.delete(g);return}let k=(v=t.seenEmittedFiles)==null?void 0:v.get(x.resolvedPath),T=V2e(m,k,n,a);if(T)return{affectedFile:x,emitKind:T}})}function R0t(t,n){var a;if((a=t.emitDiagnosticsPerFile)!=null&&a.size)return Km(t.emitDiagnosticsPerFile,(u,m)=>{var g;let v=t.program.getSourceFileByPath(m);if(!v||!Pj(v,t.program)){t.emitDiagnosticsPerFile.delete(m);return}let x=((g=t.seenEmittedFiles)==null?void 0:g.get(v.resolvedPath))||0;if(!(x&UFe(n)))return{affectedFile:v,diagnostics:u,seenKind:x}})}function B0t(t){if(!t.cleanedDiagnosticsOfLibFiles){t.cleanedDiagnosticsOfLibFiles=!0;let n=t.program.getCompilerOptions();ee(t.program.getSourceFiles(),a=>t.program.isSourceFileDefaultLibrary(a)&&!qOe(a,n,t.program)&&JFe(t,a.resolvedPath))}}function gBt(t,n,a,u){if(JFe(t,n.resolvedPath),t.allFilesExcludingDefaultLibraryFile===t.affectedFiles){B0t(t),uI.updateShapeSignature(t,t.program,n,a,u);return}t.compilerOptions.assumeChangesOnlyAffectDirectDependencies||OXe(t,n,a,u)}function LXe(t,n,a,u,m){if(JFe(t,n),!t.changedFilesSet.has(n)){let g=t.program.getSourceFileByPath(n);g&&(uI.updateShapeSignature(t,t.program,g,u,m,!0),a?Rge(t,n,nS(t.compilerOptions)):fw(t.compilerOptions)&&Rge(t,n,t.compilerOptions.declarationMap?56:24))}}function JFe(t,n){return t.semanticDiagnosticsFromOldState?(t.semanticDiagnosticsFromOldState.delete(n),t.semanticDiagnosticsPerFile.delete(n),!t.semanticDiagnosticsFromOldState.size):!0}function j0t(t,n){let a=Se.checkDefined(t.oldSignatures).get(n)||void 0;return Se.checkDefined(t.fileInfos.get(n)).signature!==a}function H2e(t,n,a,u,m){var g;return(g=t.fileInfos.get(n))!=null&&g.affectsGlobalScope?(uI.getAllFilesExcludingDefaultLibraryFile(t,t.program,void 0).forEach(v=>LXe(t,v.resolvedPath,a,u,m)),B0t(t),!0):!1}function OXe(t,n,a,u){var m,g;if(!t.referencedMap||!t.changedFilesSet.has(n.resolvedPath)||!j0t(t,n.resolvedPath))return;if($E(t.compilerOptions)){let k=new Map;k.set(n.resolvedPath,!0);let T=uI.getReferencedByPaths(t,n.resolvedPath);for(;T.length>0;){let I=T.pop();if(!k.has(I)){if(k.set(I,!0),H2e(t,I,!1,a,u))return;if(LXe(t,I,!1,a,u),j0t(t,I)){let A=t.program.getSourceFileByPath(I);T.push(...uI.getReferencedByPaths(t,A.resolvedPath))}}}}let v=new Set,x=!!((m=n.symbol)!=null&&m.exports)&&!!Km(n.symbol.exports,k=>{if(k.flags&128)return!0;let T=ym(k,t.program.getTypeChecker());return T===k?!1:(T.flags&128)!==0&&En(T.declarations,I=>Vo(I)===n)});(g=t.referencedMap.getKeys(n.resolvedPath))==null||g.forEach(k=>{if(H2e(t,k,x,a,u))return!0;let T=t.referencedMap.getKeys(k);return T&&N2(T,I=>FXe(t,I,x,v,a,u))})}function FXe(t,n,a,u,m,g){var v;if(dc(u,n)){if(H2e(t,n,a,m,g))return!0;LXe(t,n,a,m,g),(v=t.referencedMap.getKeys(n))==null||v.forEach(x=>FXe(t,x,a,u,m,g))}}function Fge(t,n,a,u){return t.compilerOptions.noCheck?F:Pl(yBt(t,n,a,u),t.program.getProgramDiagnostics(n))}function yBt(t,n,a,u){u??(u=t.semanticDiagnosticsPerFile);let m=n.resolvedPath,g=u.get(m);if(g)return YU(g,t.compilerOptions);let v=t.program.getBindAndCheckDiagnostics(n,a);return u.set(m,v),t.buildInfoEmitPending=!0,YU(v,t.compilerOptions)}function qFe(t){var n;return!!((n=t.options)!=null&&n.outFile)}function ute(t){return!!t.fileNames}function vBt(t){return!ute(t)&&!!t.root}function $Fe(t){t.hasErrors===void 0&&(_f(t.compilerOptions)?t.hasErrors=!En(t.program.getSourceFiles(),n=>{var a,u;let m=t.semanticDiagnosticsPerFile.get(n.resolvedPath);return m===void 0||!!m.length||!!((u=(a=t.emitDiagnosticsPerFile)==null?void 0:a.get(n.resolvedPath))!=null&&u.length)})&&(W0t(t)||En(t.program.getSourceFiles(),n=>!!t.program.getProgramDiagnostics(n).length)):t.hasErrors=En(t.program.getSourceFiles(),n=>{var a,u;let m=t.semanticDiagnosticsPerFile.get(n.resolvedPath);return!!m?.length||!!((u=(a=t.emitDiagnosticsPerFile)==null?void 0:a.get(n.resolvedPath))!=null&&u.length)})||W0t(t))}function W0t(t){return!!t.program.getConfigFileParsingDiagnostics().length||!!t.program.getSyntacticDiagnostics().length||!!t.program.getOptionsDiagnostics().length||!!t.program.getGlobalDiagnostics().length}function GFe(t){return $Fe(t),t.buildInfoEmitPending??(t.buildInfoEmitPending=!!t.hasErrorsFromOldState!=!!t.hasErrors)}function U2e(t){var n,a;let u=t.program.getCurrentDirectory(),m=Cc(tu(s9(t.compilerOptions),u)),g=t.latestChangedDtsFile?re(t.latestChangedDtsFile):void 0,v=[],x=new Map,k=new Set(t.program.getRootFileNames().map(he=>dd(he,u,t.program.getCanonicalFileName)));if($Fe(t),!_f(t.compilerOptions))return{root:tc(k,Oe=>X(Oe)),errors:t.hasErrors?!0:void 0,checkPending:t.checkPending,version:L};let T=[];if(t.compilerOptions.outFile){let he=tc(t.fileInfos.entries(),([Re,$e])=>{let Ke=ne(Re);return _e(Re,Ke),$e.impliedFormat?{version:$e.version,impliedFormat:$e.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:$e.version});return{fileNames:v,fileInfos:he,root:T,resolvedRoot:ae(),options:le(t.compilerOptions),semanticDiagnosticsPerFile:t.changedFilesSet.size?void 0:xe(),emitDiagnosticsPerFile:be(),changeFileSet:Ge(),outSignature:t.outSignature,latestChangedDtsFile:g,pendingEmit:t.programEmitPending?t.programEmitPending===nS(t.compilerOptions)?!1:t.programEmitPending:void 0,errors:t.hasErrors?!0:void 0,checkPending:t.checkPending,version:L}}let I,A,M,R=tc(t.fileInfos.entries(),([he,Oe])=>{var Re,$e;let Ke=ne(he);_e(he,Ke),Se.assert(v[Ke-1]===X(he));let qe=(Re=t.oldSignatures)==null?void 0:Re.get(he),rt=qe!==void 0?qe||void 0:Oe.signature;if(t.compilerOptions.composite){let _t=t.program.getSourceFileByPath(he);if(!qv(_t)&&Pj(_t,t.program)){let ft=($e=t.emitSignatures)==null?void 0:$e.get(he);ft!==rt&&(M=ar(M,ft===void 0?Ke:[Ke,!Yu(ft)&&ft[0]===rt?F:ft]))}}return Oe.version===rt?Oe.affectsGlobalScope||Oe.impliedFormat?{version:Oe.version,signature:void 0,affectsGlobalScope:Oe.affectsGlobalScope,impliedFormat:Oe.impliedFormat}:Oe.version:rt!==void 0?qe===void 0?Oe:{version:Oe.version,signature:rt,affectsGlobalScope:Oe.affectsGlobalScope,impliedFormat:Oe.impliedFormat}:{version:Oe.version,signature:!1,affectsGlobalScope:Oe.affectsGlobalScope,impliedFormat:Oe.impliedFormat}}),H;(n=t.referencedMap)!=null&&n.size()&&(H=tc(t.referencedMap.keys()).sort(Jg).map(he=>[ne(he),se(t.referencedMap.getValues(he))]));let U=xe(),$;if((a=t.affectedFilesPendingEmit)!=null&&a.size){let he=nS(t.compilerOptions),Oe=new Set;for(let Re of tc(t.affectedFilesPendingEmit.keys()).sort(Jg))if(dc(Oe,Re)){let $e=t.program.getSourceFileByPath(Re);if(!$e||!Pj($e,t.program))continue;let Ke=ne(Re),qe=t.affectedFilesPendingEmit.get(Re);$=ar($,qe===he?Ke:qe===24?[Ke]:[Ke,qe])}}return{fileNames:v,fileIdsList:I,fileInfos:R,root:T,resolvedRoot:ae(),options:le(t.compilerOptions),referencedMap:H,semanticDiagnosticsPerFile:U,emitDiagnosticsPerFile:be(),changeFileSet:Ge(),affectedFilesPendingEmit:$,emitSignatures:M,latestChangedDtsFile:g,errors:t.hasErrors?!0:void 0,checkPending:t.checkPending,version:L};function re(he){return X(tu(he,u))}function X(he){return FE(w2(m,he,t.program.getCanonicalFileName))}function ne(he){let Oe=x.get(he);return Oe===void 0&&(v.push(X(he)),x.set(he,Oe=v.length)),Oe}function se(he){let Oe=tc(he.keys(),ne).sort(m_),Re=Oe.join(),$e=A?.get(Re);return $e===void 0&&(I=ar(I,Oe),(A??(A=new Map)).set(Re,$e=I.length)),$e}function _e(he,Oe){let Re=t.program.getSourceFile(he);if(!t.program.getFileIncludeReasons().get(Re.path).some(rt=>rt.kind===0))return;if(!T.length)return T.push(Oe);let $e=T[T.length-1],Ke=ua($e);if(Ke&&$e[1]===Oe-1)return $e[1]=Oe;if(Ke||T.length===1||$e!==Oe-1)return T.push(Oe);let qe=T[T.length-2];return!k7(qe)||qe!==$e-1?T.push(Oe):(T[T.length-2]=[qe,Oe],T.length=T.length-1)}function ae(){let he;return k.forEach(Oe=>{let Re=t.program.getSourceFileByPath(Oe);Re&&Oe!==Re.resolvedPath&&(he=ar(he,[ne(Re.resolvedPath),ne(Oe)]))}),he}function le(he){let Oe,{optionsNameMap:Re}=gW();for(let $e of Zy(he).sort(Jg)){let Ke=Re.get($e.toLowerCase());Ke?.affectsBuildInfo&&((Oe||(Oe={}))[$e]=Ee(Ke,he[$e]))}return Oe}function Ee(he,Oe){if(he){if(Se.assert(he.type!=="listOrElement"),he.type==="list"){let Re=Oe;if(he.element.isFilePath&&Re.length)return Re.map(re)}else if(he.isFilePath)return re(Oe)}return Oe}function xe(){let he;return t.fileInfos.forEach((Oe,Re)=>{let $e=t.semanticDiagnosticsPerFile.get(Re);$e?$e.length&&(he=ar(he,[ne(Re),Le($e,Re)])):t.changedFilesSet.has(Re)||(he=ar(he,ne(Re)))}),he}function be(){var he;let Oe;if(!((he=t.emitDiagnosticsPerFile)!=null&&he.size))return Oe;for(let Re of tc(t.emitDiagnosticsPerFile.keys()).sort(Jg)){let $e=t.emitDiagnosticsPerFile.get(Re);Oe=ar(Oe,[ne(Re),Le($e,Re)])}return Oe}function Le(he,Oe){return Se.assert(!!he.length),he.map(Re=>{let $e=fe(Re,Oe);$e.reportsUnnecessary=Re.reportsUnnecessary,$e.reportDeprecated=Re.reportsDeprecated,$e.source=Re.source,$e.skippedOn=Re.skippedOn;let{relatedInformation:Ke}=Re;return $e.relatedInformation=Ke?Ke.length?Ke.map(qe=>fe(qe,Oe)):[]:void 0,$e})}function fe(he,Oe){let{file:Re}=he;return{...he,file:Re?Re.resolvedPath===Oe?void 0:X(Re.resolvedPath):!1,messageText:Yu(he.messageText)?he.messageText:we(he.messageText)}}function we(he){if(he.repopulateInfo)return{info:he.repopulateInfo(),next:Ae(he.next)};let Oe=Ae(he.next);return Oe===he.next?he:{...he,next:Oe}}function Ae(he){return he&&(ee(he,(Oe,Re)=>{let $e=we(Oe);if(Oe===$e)return;let Ke=Re>0?he.slice(0,Re-1):[];Ke.push($e);for(let qe=Re+1;qe(t[t.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",t[t.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",t))(KFe||{});function dte(t,n,a,u,m,g){let v,x,k;return t===void 0?(Se.assert(n===void 0),v=a,k=u,Se.assert(!!k),x=k.getProgram()):ua(t)?(k=u,x=f9({rootNames:t,options:n,host:a,oldProgram:k&&k.getProgramOrUndefined(),configFileParsingDiagnostics:m,projectReferences:g}),v=a):(x=t,v=n,k=a,m=u),{host:v,newProgram:x,oldProgram:k,configFileParsingDiagnostics:m||F}}function XFe(t,n){return n?.sourceMapUrlPos!==void 0?t.substring(0,n.sourceMapUrlPos):t}function Tce(t,n,a,u,m){var g;a=XFe(a,m);let v;return(g=m?.diagnostics)!=null&&g.length&&(a+=m.diagnostics.map(T=>`${k(T)}${Doe[T.category]}${T.code}: ${x(T.messageText)}`).join(` +`)),(u.createHash??F$)(a);function x(T){return Yu(T)?T:T===void 0?"":T.next?T.messageText+T.next.map(x).join(` +`):T.messageText}function k(T){return T.file.resolvedPath===n.resolvedPath?`(${T.start},${T.length})`:(v===void 0&&(v=Cc(n.resolvedPath)),`${FE(w2(v,T.file.resolvedPath,t.getCanonicalFileName))}(${T.start},${T.length})`)}}function YFe(t,n,a){return(n.createHash??F$)(XFe(t,a))}function Mge(t,{newProgram:n,host:a,oldProgram:u,configFileParsingDiagnostics:m}){let g=u&&u.state;if(g&&n===g.program&&m===n.getConfigFileParsingDiagnostics())return n=void 0,g=void 0,u;let v=lte(n,g);n.getBuildInfo=()=>U2e(NXe(v)),n=void 0,u=void 0,g=void 0;let x=G2e(v,m);return x.state=v,x.hasChangedEmitSignature=()=>!!v.hasChangedEmitSignature,x.getAllDependencies=re=>uI.getAllDependencies(v,Se.checkDefined(v.program),re),x.getSemanticDiagnostics=K,x.getDeclarationDiagnostics=U,x.emit=R,x.releaseProgram=()=>O0t(v),t===0?x.getSemanticDiagnosticsOfNextAffectedFile=$:t===1?(x.getSemanticDiagnosticsOfNextAffectedFile=$,x.emitNextAffectedFile=A,x.emitBuildInfo=k):ld(),x;function k(re,X){if(Se.assert(eJ(v)),GFe(v)){let ne=v.program.emitBuildInfo(re||wu(a,a.writeFile),X);return v.buildInfoEmitPending=!1,ne}return BFe}function T(re,X,ne,se,_e){var ae,le,Ee,xe;Se.assert(eJ(v));let be=PXe(v,X,a),Le=nS(v.compilerOptions),fe=_e?8:ne?Le&56:Le;if(!be){if(v.compilerOptions.outFile){if(v.programEmitPending&&(fe=V2e(v.programEmitPending,v.seenProgramEmit,ne,_e),fe&&(be=v.program)),!be&&((ae=v.emitDiagnosticsPerFile)!=null&&ae.size)){let Ge=v.seenProgramEmit||0;if(!(Ge&UFe(_e))){v.seenProgramEmit=UFe(_e)|Ge;let he=[];return v.emitDiagnosticsPerFile.forEach(Oe=>Ho(he,Oe)),{result:{emitSkipped:!0,diagnostics:he},affected:v.program}}}}else{let Ge=M0t(v,ne,_e);if(Ge)({affectedFile:be,emitKind:fe}=Ge);else{let he=R0t(v,_e);if(he)return(v.seenEmittedFiles??(v.seenEmittedFiles=new Map)).set(he.affectedFile.resolvedPath,he.seenKind|UFe(_e)),{result:{emitSkipped:!0,diagnostics:he.diagnostics},affected:he.affectedFile}}}if(!be){if(_e||!GFe(v))return;let Ge=v.program,he=Ge.emitBuildInfo(re||wu(a,a.writeFile),X);return v.buildInfoEmitPending=!1,{result:he,affected:Ge}}}let we;fe&7&&(we=0),fe&56&&(we=we===void 0?1:void 0);let Ae=_e?{emitSkipped:!0,diagnostics:v.program.getDeclarationDiagnostics(be===v.program?void 0:be,X)}:v.program.emit(be===v.program?void 0:be,M(re,se),X,we,se,void 0,!0);if(be!==v.program){let Ge=be;v.seenAffectedFiles.add(Ge.resolvedPath),v.affectedFilesIndex!==void 0&&v.affectedFilesIndex++,v.buildInfoEmitPending=!0;let he=((le=v.seenEmittedFiles)==null?void 0:le.get(Ge.resolvedPath))||0;(v.seenEmittedFiles??(v.seenEmittedFiles=new Map)).set(Ge.resolvedPath,fe|he);let Oe=((Ee=v.affectedFilesPendingEmit)==null?void 0:Ee.get(Ge.resolvedPath))||Le,Re=wce(Oe,fe|he);Re?(v.affectedFilesPendingEmit??(v.affectedFilesPendingEmit=new Map)).set(Ge.resolvedPath,Re):(xe=v.affectedFilesPendingEmit)==null||xe.delete(Ge.resolvedPath),Ae.diagnostics.length&&(v.emitDiagnosticsPerFile??(v.emitDiagnosticsPerFile=new Map)).set(Ge.resolvedPath,Ae.diagnostics)}else v.changedFilesSet.clear(),v.programEmitPending=v.changedFilesSet.size?wce(Le,fe):v.programEmitPending?wce(v.programEmitPending,fe):void 0,v.seenProgramEmit=fe|(v.seenProgramEmit||0),I(Ae.diagnostics),v.buildInfoEmitPending=!0;return{result:Ae,affected:be}}function I(re){let X;re.forEach(ne=>{if(!ne.file)return;let se=X?.get(ne.file.resolvedPath);se||(X??(X=new Map)).set(ne.file.resolvedPath,se=[]),se.push(ne)}),X&&(v.emitDiagnosticsPerFile=X)}function A(re,X,ne,se){return T(re,X,ne,se,!1)}function M(re,X){return Se.assert(eJ(v)),fw(v.compilerOptions)?(ne,se,_e,ae,le,Ee)=>{var xe,be,Le;if(ey(ne))if(v.compilerOptions.outFile){if(v.compilerOptions.composite){let we=fe(v.outSignature,void 0);if(!we)return Ee.skippedDtsWrite=!0;v.outSignature=we}}else{Se.assert(le?.length===1);let we;if(!X){let Ae=le[0],Ge=v.fileInfos.get(Ae.resolvedPath);if(Ge.signature===Ae.version){let he=Tce(v.program,Ae,se,a,Ee);(xe=Ee?.diagnostics)!=null&&xe.length||(we=he),he!==Ae.version&&(a.storeSignatureInfo&&(v.signatureInfo??(v.signatureInfo=new Map)).set(Ae.resolvedPath,1),v.affectedFiles&&((be=v.oldSignatures)==null?void 0:be.get(Ae.resolvedPath))===void 0&&(v.oldSignatures??(v.oldSignatures=new Map)).set(Ae.resolvedPath,Ge.signature||!1),Ge.signature=he)}}if(v.compilerOptions.composite){let Ae=le[0].resolvedPath;if(we=fe((Le=v.emitSignatures)==null?void 0:Le.get(Ae),we),!we)return Ee.skippedDtsWrite=!0;(v.emitSignatures??(v.emitSignatures=new Map)).set(Ae,we)}}re?re(ne,se,_e,ae,le,Ee):a.writeFile?a.writeFile(ne,se,_e,ae,le,Ee):v.program.writeFile(ne,se,_e,ae,le,Ee);function fe(we,Ae){let Ge=!we||Yu(we)?we:we[0];if(Ae??(Ae=YFe(se,a,Ee)),Ae===Ge){if(we===Ge)return;Ee?Ee.differsOnlyInMap=!0:Ee={differsOnlyInMap:!0}}else v.hasChangedEmitSignature=!0,v.latestChangedDtsFile=ne;return Ae}}:re||wu(a,a.writeFile)}function R(re,X,ne,se,_e){Se.assert(eJ(v)),t===1&&HFe(v,re);let ae=jFe(x,re,X,ne);if(ae)return ae;if(!re)if(t===1){let Ee=[],xe=!1,be,Le=[],fe;for(;fe=A(X,ne,se,_e);)xe=xe||fe.result.emitSkipped,be=Ho(be,fe.result.diagnostics),Le=Ho(Le,fe.result.emittedFiles),Ee=Ho(Ee,fe.result.sourceMaps);return{emitSkipped:xe,diagnostics:be||F,emittedFiles:Le,sourceMaps:Ee}}else F0t(v,se,!1);let le=v.program.emit(re,M(X,_e),ne,se,_e);return H(re,se,!1,le.diagnostics),le}function H(re,X,ne,se){!re&&t!==1&&(F0t(v,X,ne),I(se))}function U(re,X){var ne;if(Se.assert(eJ(v)),t===1){HFe(v,re);let se,_e;for(;se=T(void 0,X,void 0,void 0,!0);)re||(_e=Ho(_e,se.result.diagnostics));return(re?(ne=v.emitDiagnosticsPerFile)==null?void 0:ne.get(re.resolvedPath):_e)||F}else{let se=v.program.getDeclarationDiagnostics(re,X);return H(re,void 0,!0,se),se}}function $(re,X){for(Se.assert(eJ(v));;){let ne=PXe(v,re,a),se;if(ne)if(ne!==v.program){let _e=ne;if((!X||!X(_e))&&(se=Fge(v,_e,re)),v.seenAffectedFiles.add(_e.resolvedPath),v.affectedFilesIndex++,v.buildInfoEmitPending=!0,!se)continue}else{let _e,ae=new Map;v.program.getSourceFiles().forEach(le=>_e=Ho(_e,Fge(v,le,re,ae))),v.semanticDiagnosticsPerFile=ae,se=_e||F,v.changedFilesSet.clear(),v.programEmitPending=nS(v.compilerOptions),v.compilerOptions.noCheck||(v.checkPending=void 0),v.buildInfoEmitPending=!0}else{v.checkPending&&!v.compilerOptions.noCheck&&(v.checkPending=void 0,v.buildInfoEmitPending=!0);return}return{result:se,affected:ne}}}function K(re,X){if(Se.assert(eJ(v)),HFe(v,re),re)return Fge(v,re,X);for(;;){let se=$(X);if(!se)break;if(se.affected===v.program)return se.result}let ne;for(let se of v.program.getSourceFiles())ne=Ho(ne,Fge(v,se,X));return v.checkPending&&!v.compilerOptions.noCheck&&(v.checkPending=void 0,v.buildInfoEmitPending=!0),ne||F}}function Rge(t,n,a){var u,m;let g=((u=t.affectedFilesPendingEmit)==null?void 0:u.get(n))||0;(t.affectedFilesPendingEmit??(t.affectedFilesPendingEmit=new Map)).set(n,g|a),(m=t.emitDiagnosticsPerFile)==null||m.delete(n)}function J2e(t){return Yu(t)?{version:t,signature:t,affectsGlobalScope:void 0,impliedFormat:void 0}:Yu(t.signature)?t:{version:t.version,signature:t.signature===!1?void 0:t.version,affectsGlobalScope:t.affectsGlobalScope,impliedFormat:t.impliedFormat}}function q2e(t,n){return k7(t)?n:t[1]||24}function Bge(t,n){return t||nS(n||{})}function jge(t,n,a){var u,m,g,v;let x=Cc(tu(n,a.getCurrentDirectory())),k=U0(a.useCaseSensitiveFileNames()),T,I=(u=t.fileNames)==null?void 0:u.map(U),A,M=t.latestChangedDtsFile?$(t.latestChangedDtsFile):void 0,R=new Map,H=new Set($i(t.changeFileSet,K));if(qFe(t))t.fileInfos.forEach((_e,ae)=>{let le=K(ae+1);R.set(le,Yu(_e)?{version:_e,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:_e)}),T={fileInfos:R,compilerOptions:t.options?Oee(t.options,$):{},semanticDiagnosticsPerFile:ne(t.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:se(t.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,changedFilesSet:H,latestChangedDtsFile:M,outSignature:t.outSignature,programEmitPending:t.pendingEmit===void 0?void 0:Bge(t.pendingEmit,t.options),hasErrors:t.errors,checkPending:t.checkPending};else{A=(m=t.fileIdsList)==null?void 0:m.map(le=>new Set(le.map(K)));let _e=(g=t.options)!=null&&g.composite&&!t.options.outFile?new Map:void 0;t.fileInfos.forEach((le,Ee)=>{let xe=K(Ee+1),be=J2e(le);R.set(xe,be),_e&&be.signature&&_e.set(xe,be.signature)}),(v=t.emitSignatures)==null||v.forEach(le=>{if(k7(le))_e.delete(K(le));else{let Ee=K(le[0]);_e.set(Ee,!Yu(le[1])&&!le[1].length?[_e.get(Ee)]:le[1])}});let ae=t.affectedFilesPendingEmit?nS(t.options||{}):void 0;T={fileInfos:R,compilerOptions:t.options?Oee(t.options,$):{},referencedMap:X(t.referencedMap,t.options??{}),semanticDiagnosticsPerFile:ne(t.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:se(t.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,changedFilesSet:H,affectedFilesPendingEmit:t.affectedFilesPendingEmit&&I_(t.affectedFilesPendingEmit,le=>K(k7(le)?le:le[0]),le=>q2e(le,ae)),latestChangedDtsFile:M,emitSignatures:_e?.size?_e:void 0,hasErrors:t.errors,checkPending:t.checkPending}}return{state:T,getProgram:ld,getProgramOrUndefined:FT,releaseProgram:Za,getCompilerOptions:()=>T.compilerOptions,getSourceFile:ld,getSourceFiles:ld,getOptionsDiagnostics:ld,getGlobalDiagnostics:ld,getConfigFileParsingDiagnostics:ld,getSyntacticDiagnostics:ld,getDeclarationDiagnostics:ld,getSemanticDiagnostics:ld,emit:ld,getAllDependencies:ld,getCurrentDirectory:ld,emitNextAffectedFile:ld,getSemanticDiagnosticsOfNextAffectedFile:ld,emitBuildInfo:ld,close:Za,hasChangedEmitSignature:uk};function U(_e){return dd(_e,x,k)}function $(_e){return tu(_e,x)}function K(_e){return I[_e-1]}function re(_e){return A[_e-1]}function X(_e,ae){let le=uI.createReferencedMap(ae);return!le||!_e||_e.forEach(([Ee,xe])=>le.set(K(Ee),re(xe))),le}function ne(_e){let ae=new Map(up(R.keys(),le=>H.has(le)?void 0:[le,F]));return _e?.forEach(le=>{k7(le)?ae.delete(K(le)):ae.set(K(le[0]),le[1])}),ae}function se(_e){return _e&&I_(_e,ae=>K(ae[0]),ae=>ae[1])}}function $2e(t,n,a){let u=Cc(tu(n,a.getCurrentDirectory())),m=U0(a.useCaseSensitiveFileNames()),g=new Map,v=0,x=new Map,k=new Map(t.resolvedRoot);return t.fileInfos.forEach((I,A)=>{let M=dd(t.fileNames[A],u,m),R=Yu(I)?I:I.version;if(g.set(M,R),vdd(g,u,m))}function G2e(t,n){return{state:void 0,getProgram:a,getProgramOrUndefined:()=>t.program,releaseProgram:()=>t.program=void 0,getCompilerOptions:()=>t.compilerOptions,getSourceFile:u=>a().getSourceFile(u),getSourceFiles:()=>a().getSourceFiles(),getOptionsDiagnostics:u=>a().getOptionsDiagnostics(u),getGlobalDiagnostics:u=>a().getGlobalDiagnostics(u),getConfigFileParsingDiagnostics:()=>n,getSyntacticDiagnostics:(u,m)=>a().getSyntacticDiagnostics(u,m),getDeclarationDiagnostics:(u,m)=>a().getDeclarationDiagnostics(u,m),getSemanticDiagnostics:(u,m)=>a().getSemanticDiagnostics(u,m),emit:(u,m,g,v,x)=>a().emit(u,m,g,v,x),emitBuildInfo:(u,m)=>a().emitBuildInfo(u,m),getAllDependencies:ld,getCurrentDirectory:()=>a().getCurrentDirectory(),close:Za};function a(){return Se.checkDefined(t.program)}}function zge(t,n,a,u,m,g){return Mge(0,dte(t,n,a,u,m,g))}function Vge(t,n,a,u,m,g){return Mge(1,dte(t,n,a,u,m,g))}function Hge(t,n,a,u,m,g){let{newProgram:v,configFileParsingDiagnostics:x}=dte(t,n,a,u,m,g);return G2e({program:v,compilerOptions:v.getCompilerOptions()},x)}function Ece(t){return xh(t,"/node_modules/.staging")?eH(t,"/.staging"):En(R$,n=>t.includes(n))?void 0:t}function QFe(t,n){if(n<=1)return 1;let a=1,u=t[0].search(/[a-z]:/i)===0;if(t[0]!==uh&&!u&&t[1].search(/[a-z]\$$/i)===0){if(n===2)return 2;a=2,u=!0}return u&&!t[a].match(/^users$/i)?a:t[a].match(/^workspaces$/i)?a+1:a+2}function Uge(t,n){if(n===void 0&&(n=t.length),n<=2)return!1;let a=QFe(t,n);return n>a+1}function K2e(t){return MXe(Cc(t))}function X2e(t,n){if(n.lengthm.length+1?e7e(k,x,Math.max(m.length+1,T+1),A):{dir:a,dirPath:u,nonRecursive:!0}:ZFe(k,x,x.length-1,T,I,m,A,v)}function ZFe(t,n,a,u,m,g,v,x){if(m!==-1)return e7e(t,n,m+1,v);let k=!0,T=a;if(!x){for(let I=0;I=a&&u+2bBt(u,m,g,t,a,n,v)}}function bBt(t,n,a,u,m,g,v){let x=Z2e(t),k=TK(a,u,m,x,n,g,v);if(!t.getGlobalCache)return k;let T=t.getGlobalCache();if(T!==void 0&&!l0(a)&&!(k.resolvedModule&&eae(k.resolvedModule.extension))){let{resolvedModule:I,failedLookupLocations:A,affectingLocations:M,resolutionDiagnostics:R}=X8e(Se.checkDefined(t.globalCacheResolutionModuleName)(a),t.projectName,m,x,T,n);if(I)return k.resolvedModule=I,k.failedLookupLocations=BU(k.failedLookupLocations,A),k.affectingLocations=BU(k.affectingLocations,M),k.resolutionDiagnostics=BU(k.resolutionDiagnostics,R),k}return k}function eEe(t,n,a){let u,m,g,v=new Set,x=new Set,k=new Set,T=new Map,I=new Map,A=!1,M,R,H,U,$,K=!1,re=H0(()=>t.getCurrentDirectory()),X=t.getCachedDirectoryStructureHost(),ne=new Map,se=jU(re(),t.getCanonicalFileName,t.getCompilationSettings()),_e=new Map,ae=Bee(re(),t.getCanonicalFileName,t.getCompilationSettings(),se.getPackageJsonInfoCache(),se.optionsToRedirectsKey),le=new Map,Ee=jU(re(),t.getCanonicalFileName,Yae(t.getCompilationSettings()),se.getPackageJsonInfoCache()),xe=new Map,be=new Map,Le=Q2e(n,re),fe=t.toPath(Le),we=Uv(fe),Ae=new Map,Ge=new Map,he=new Map,Oe=new Map;return{rootDirForResolution:n,resolvedModuleNames:ne,resolvedTypeReferenceDirectives:_e,resolvedLibraries:le,resolvedFileToResolution:T,resolutionsWithFailedLookups:x,resolutionsWithOnlyAffectingLocations:k,directoryWatchesOfFailedLookups:xe,fileWatchesOfAffectingLocations:be,packageDirWatchers:Ge,dirPathToSymlinkPackageRefCount:he,watchFailedLookupLocationsOfExternalModuleResolutions:Ei,getModuleResolutionCache:()=>se,startRecordingFilesWithChangedResolutions:Ke,finishRecordingFilesWithChangedResolutions:qe,startCachingPerDirectoryResolution:ft,finishCachingPerDirectoryResolution:ut,resolveModuleNameLiterals:wi,resolveTypeReferenceDirectiveReferences:pi,resolveLibrary:Bi,resolveSingleModuleNameWithoutWatching:Bn,removeResolutionsFromProjectReferenceRedirects:$o,removeResolutionsOfFile:Mn,hasChangedAutomaticTypeDirectiveNames:()=>A,invalidateResolutionOfFile:Pi,invalidateResolutionsOfFailedLookupLocations:nt,setFilesWithInvalidatedNonRelativeUnresolvedImports:qi,createHasInvalidatedResolutions:_t,isFileWithInvalidatedNonRelativeUnresolvedImports:rt,updateTypeRootsWatch:dt,closeTypeRootsWatch:Ve,clear:Re,onChangesAffectModuleResolution:$e};function Re(){Zb(xe,Dk),Zb(be,Dk),Ae.clear(),Ge.clear(),he.clear(),v.clear(),Ve(),ne.clear(),_e.clear(),T.clear(),x.clear(),k.clear(),H=void 0,U=void 0,$=void 0,R=void 0,M=void 0,K=!1,se.clear(),ae.clear(),se.update(t.getCompilationSettings()),ae.update(t.getCompilationSettings()),Ee.clear(),I.clear(),le.clear(),A=!1}function $e(){K=!0,se.clearAllExceptPackageJsonInfoCache(),ae.clearAllExceptPackageJsonInfoCache(),se.update(t.getCompilationSettings()),ae.update(t.getCompilationSettings())}function Ke(){u=[]}function qe(){let pt=u;return u=void 0,pt}function rt(pt){if(!g)return!1;let Gt=g.get(pt);return!!Gt&&!!Gt.length}function _t(pt,Gt){nt();let Mt=m;return m=void 0,{hasInvalidatedResolutions:hi=>pt(hi)||K||!!Mt?.has(hi)||rt(hi),hasInvalidatedLibResolutions:hi=>{var Ie;return Gt(hi)||!!((Ie=le?.get(hi))!=null&&Ie.isInvalidated)}}}function ft(){se.isReadonly=void 0,ae.isReadonly=void 0,Ee.isReadonly=void 0,se.getPackageJsonInfoCache().isReadonly=void 0,se.clearAllExceptPackageJsonInfoCache(),ae.clearAllExceptPackageJsonInfoCache(),Ee.clearAllExceptPackageJsonInfoCache(),Hs(),Ae.clear()}function mt(pt){le.forEach((Gt,Mt)=>{var hi;(hi=pt?.resolvedLibReferences)!=null&&hi.has(Mt)||(ci(Gt,t.toPath(ste(t.getCompilationSettings(),re(),Mt)),U6),le.delete(Mt))})}function ut(pt,Gt){g=void 0,K=!1,Hs(),pt!==Gt&&(mt(pt),pt?.getSourceFiles().forEach(Mt=>{var hi;let Ie=((hi=Mt.packageJsonLocations)==null?void 0:hi.length)??0,Bt=I.get(Mt.resolvedPath)??F;for(let ui=Bt.length;uiIe)for(let ui=Ie;ui{let Ie=pt?.getSourceFileByPath(hi);(!Ie||Ie.resolvedPath!==hi)&&(Mt.forEach(Bt=>be.get(Bt).files--),I.delete(hi))})),xe.forEach(Kt),be.forEach(ni),Ge.forEach(ht),A=!1,se.isReadonly=!0,ae.isReadonly=!0,Ee.isReadonly=!0,se.getPackageJsonInfoCache().isReadonly=!0,Ae.clear()}function ht(pt,Gt){pt.dirPathToWatcher.size===0&&Ge.delete(Gt)}function Kt(pt,Gt){pt.refCount===0&&(xe.delete(Gt),pt.watcher.close())}function ni(pt,Gt){var Mt;pt.files===0&&pt.resolutions===0&&!((Mt=pt.symlinks)!=null&&Mt.size)&&(be.delete(Gt),pt.watcher.close())}function Ut({entries:pt,containingFile:Gt,containingSourceFile:Mt,redirectedReference:hi,options:Ie,perFileCache:Bt,reusedNames:ui,loader:Ue,getResolutionWithResolvedFileName:Ce,deferWatchingNonRelativeResolution:ye,shouldRetryResolution:vt,logChanges:pe}){let at=t.toPath(Gt),We=Bt.get(at)||Bt.set(at,aI()).get(at),si=[],At=pe&&rt(at),Ot=t.getCurrentProgram(),Fi=Ot&&Ot.getResolvedProjectReferenceToRedirect(Gt),Vn=Fi?!hi||hi.sourceFile.path!==Fi.sourceFile.path:!!hi,In=aI();for(let Si of pt){let Ri=Ue.nameAndMode.getName(Si),Cn=Ue.nameAndMode.getMode(Si,Mt,hi?.commandLine.options||Ie),cn=We.get(Ri,Cn);if(!In.has(Ri,Cn)&&(K||Vn||!cn||cn.isInvalidated||At&&!l0(Ri)&&vt(cn))){let Pn=cn;cn=Ue.resolve(Ri,Cn),t.onDiscoveredSymlink&&zK(cn)&&t.onDiscoveredSymlink(),We.set(Ri,Cn,cn),cn!==Pn&&(Ei(Ri,cn,at,Ce,ye),Pn&&ci(Pn,at,Ce)),pe&&u&&!dn(Pn,cn)&&(u.push(at),pe=!1)}else{let Pn=Z2e(t);if(sF(Ie,Pn)&&!In.has(Ri,Cn)){let Wi=Ce(cn);su(Pn,Bt===ne?Wi?.resolvedFileName?Wi.packageId?j.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:j.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:j.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:Wi?.resolvedFileName?Wi.packageId?j.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:j.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:j.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,Ri,Gt,Wi?.resolvedFileName,Wi?.packageId&&h4(Wi.packageId))}}Se.assert(cn!==void 0&&!cn.isInvalidated),In.set(Ri,Cn,!0),si.push(cn)}return ui?.forEach(Si=>In.set(Ue.nameAndMode.getName(Si),Ue.nameAndMode.getMode(Si,Mt,hi?.commandLine.options||Ie),!0)),We.size()!==In.size()&&We.forEach((Si,Ri,Cn)=>{In.has(Ri,Cn)||(ci(Si,at,Ce),We.delete(Ri,Cn))}),si;function dn(Si,Ri){if(Si===Ri)return!0;if(!Si||!Ri)return!1;let Cn=Ce(Si),cn=Ce(Ri);return Cn===cn?!0:!Cn||!cn?!1:Cn.resolvedFileName===cn.resolvedFileName}}function pi(pt,Gt,Mt,hi,Ie,Bt){return Ut({entries:pt,containingFile:Gt,containingSourceFile:Ie,redirectedReference:Mt,options:hi,reusedNames:Bt,perFileCache:_e,loader:ote(Gt,Mt,hi,Z2e(t),ae),getResolutionWithResolvedFileName:Qoe,shouldRetryResolution:ui=>ui.resolvedTypeReferenceDirective===void 0,deferWatchingNonRelativeResolution:!1})}function wi(pt,Gt,Mt,hi,Ie,Bt){return Ut({entries:pt,containingFile:Gt,containingSourceFile:Ie,redirectedReference:Mt,options:hi,reusedNames:Bt,perFileCache:ne,loader:qge(Gt,Mt,hi,t,se),getResolutionWithResolvedFileName:U6,shouldRetryResolution:ui=>!ui.resolvedModule||!QZ(ui.resolvedModule.extension),logChanges:a,deferWatchingNonRelativeResolution:!0})}function Bi(pt,Gt,Mt,hi){let Ie=Z2e(t),Bt=le?.get(hi);if(!Bt||Bt.isInvalidated){let ui=Bt;Bt=DTe(pt,Gt,Mt,Ie,Ee);let Ue=t.toPath(Gt);Ei(pt,Bt,Ue,U6,!1),le.set(hi,Bt),ui&&ci(ui,Ue,U6)}else if(sF(Mt,Ie)){let ui=U6(Bt);su(Ie,ui?.resolvedFileName?ui.packageId?j.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:j.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:j.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,pt,Gt,ui?.resolvedFileName,ui?.packageId&&h4(ui.packageId))}return Bt}function Bn(pt,Gt){var Mt,hi;let Ie=t.toPath(Gt),Bt=ne.get(Ie),ui=Bt?.get(pt,void 0);if(ui&&!ui.isInvalidated)return ui;let Ue=(Mt=t.beforeResolveSingleModuleNameWithoutWatching)==null?void 0:Mt.call(t,se),Ce=Z2e(t),ye=TK(pt,Gt,t.getCompilationSettings(),Ce,se);return(hi=t.afterResolveSingleModuleNameWithoutWatching)==null||hi.call(t,se,pt,Gt,ye,Ue),ye}function mr(pt){return xh(pt,"/node_modules/@types")}function Ei(pt,Gt,Mt,hi,Ie){if((Gt.files??(Gt.files=new Set)).add(Mt),Gt.files.size!==1)return;!Ie||l0(pt)?zr(Gt):v.add(Gt);let Bt=hi(Gt);if(Bt&&Bt.resolvedFileName){let ui=t.toPath(Bt.resolvedFileName),Ue=T.get(ui);Ue||T.set(ui,Ue=new Set),Ue.add(Gt)}}function zn(pt,Gt){let Mt=t.toPath(pt),hi=Jge(pt,Mt,Le,fe,we,re,t.preferNonRecursiveWatch);if(hi){let{dir:Ie,dirPath:Bt,nonRecursive:ui,packageDir:Ue,packageDirPath:Ce}=hi;Bt===fe?(Se.assert(ui),Se.assert(!Ue),Gt=!0):mn(Ie,Bt,Ue,Ce,ui)}return Gt}function zr(pt){var Gt;Se.assert(!!((Gt=pt.files)!=null&&Gt.size));let{failedLookupLocations:Mt,affectingLocations:hi,alternateResult:Ie}=pt;if(!Mt?.length&&!hi?.length&&!Ie)return;(Mt?.length||Ie)&&x.add(pt);let Bt=!1;if(Mt)for(let ui of Mt)Bt=zn(ui,Bt);Ie&&(Bt=zn(Ie,Bt)),Bt&&mn(Le,fe,void 0,void 0,!0),xr(pt,!Mt?.length&&!Ie)}function xr(pt,Gt){var Mt;Se.assert(!!((Mt=pt.files)!=null&&Mt.size));let{affectingLocations:hi}=pt;if(hi?.length){Gt&&k.add(pt);for(let Ie of hi)lo(Ie,!0)}}function lo(pt,Gt){let Mt=be.get(pt);if(Mt){Gt?Mt.resolutions++:Mt.files++;return}let hi=pt,Ie=!1,Bt;t.realpath&&(hi=t.realpath(pt),pt!==hi&&(Ie=!0,Bt=be.get(hi)));let ui=Gt?1:0,Ue=Gt?0:1;if(!Ie||!Bt){let Ce={watcher:Y2e(t.toPath(hi))?t.watchAffectingFileLocation(hi,(ye,vt)=>{X?.addOrDeleteFile(ye,t.toPath(hi),vt),_r(hi,se.getPackageJsonInfoCache().getInternalMap()),t.scheduleInvalidateResolutionsOfFailedLookupLocations()}):iJ,resolutions:Ie?0:ui,files:Ie?0:Ue,symlinks:void 0};be.set(hi,Ce),Ie&&(Bt=Ce)}if(Ie){Se.assert(!!Bt);let Ce={watcher:{close:()=>{var ye;let vt=be.get(hi);(ye=vt?.symlinks)!=null&&ye.delete(pt)&&!vt.symlinks.size&&!vt.resolutions&&!vt.files&&(be.delete(hi),vt.watcher.close())}},resolutions:ui,files:Ue,symlinks:void 0};be.set(pt,Ce),(Bt.symlinks??(Bt.symlinks=new Set)).add(pt)}}function _r(pt,Gt){var Mt;let hi=be.get(pt);hi?.resolutions&&(R??(R=new Set)).add(pt),hi?.files&&(M??(M=new Set)).add(pt),(Mt=hi?.symlinks)==null||Mt.forEach(Ie=>_r(Ie,Gt)),Gt?.delete(t.toPath(pt))}function Hs(){v.forEach(zr),v.clear()}function ai(pt,Gt,Mt,hi,Ie){Se.assert(!Ie);let Bt=Ae.get(hi),ui=Ge.get(hi);if(Bt===void 0){let ye=t.realpath(Mt);Bt=ye!==Mt&&t.toPath(ye)!==hi,Ae.set(hi,Bt),ui?ui.isSymlink!==Bt&&(ui.dirPathToWatcher.forEach(vt=>{gn(ui.isSymlink?hi:Gt),vt.watcher=Ce()}),ui.isSymlink=Bt):Ge.set(hi,ui={dirPathToWatcher:new Map,isSymlink:Bt})}else Se.assertIsDefined(ui),Se.assert(Bt===ui.isSymlink);let Ue=ui.dirPathToWatcher.get(Gt);Ue?Ue.refCount++:(ui.dirPathToWatcher.set(Gt,{watcher:Ce(),refCount:1}),Bt&&he.set(Gt,(he.get(Gt)??0)+1));function Ce(){return Bt?Nn(Mt,hi,Ie):Nn(pt,Gt,Ie)}}function mn(pt,Gt,Mt,hi,Ie){!hi||!t.realpath?Nn(pt,Gt,Ie):ai(pt,Gt,Mt,hi,Ie)}function Nn(pt,Gt,Mt){let hi=xe.get(Gt);return hi?(Se.assert(!!Mt==!!hi.nonRecursive),hi.refCount++):xe.set(Gt,hi={watcher:Sr(pt,Gt,Mt),refCount:1,nonRecursive:Mt}),hi}function Gr(pt,Gt){let Mt=t.toPath(pt),hi=Jge(pt,Mt,Le,fe,we,re,t.preferNonRecursiveWatch);if(hi){let{dirPath:Ie,packageDirPath:Bt}=hi;if(Ie===fe)Gt=!0;else if(Bt&&t.realpath){let ui=Ge.get(Bt),Ue=ui.dirPathToWatcher.get(Ie);if(Ue.refCount--,Ue.refCount===0&&(gn(ui.isSymlink?Bt:Ie),ui.dirPathToWatcher.delete(Ie),ui.isSymlink)){let Ce=he.get(Ie)-1;Ce===0?he.delete(Ie):he.set(Ie,Ce)}}else gn(Ie)}return Gt}function ci(pt,Gt,Mt){if(Se.checkDefined(pt.files).delete(Gt),pt.files.size)return;pt.files=void 0;let hi=Mt(pt);if(hi&&hi.resolvedFileName){let Ue=t.toPath(hi.resolvedFileName),Ce=T.get(Ue);Ce?.delete(pt)&&!Ce.size&&T.delete(Ue)}let{failedLookupLocations:Ie,affectingLocations:Bt,alternateResult:ui}=pt;if(x.delete(pt)){let Ue=!1;if(Ie)for(let Ce of Ie)Ue=Gr(Ce,Ue);ui&&(Ue=Gr(ui,Ue)),Ue&&gn(fe)}else Bt?.length&&k.delete(pt);if(Bt)for(let Ue of Bt){let Ce=be.get(Ue);Ce.resolutions--}}function gn(pt){let Gt=xe.get(pt);Gt.refCount--}function Sr(pt,Gt,Mt){return t.watchDirectoryOfFailedLookupLocation(pt,hi=>{let Ie=t.toPath(hi);X&&X.addOrDeleteFileOrDirectory(hi,Ie),lt(Ie,Gt===Ie)},Mt?0:1)}function vo(pt,Gt,Mt){let hi=pt.get(Gt);hi&&(hi.forEach(Ie=>ci(Ie,Gt,Mt)),pt.delete(Gt))}function $o(pt){if(!Wh(pt,".json"))return;let Gt=t.getCurrentProgram();if(!Gt)return;let Mt=Gt.getResolvedProjectReferenceByPath(pt);Mt&&Mt.commandLine.fileNames.forEach(hi=>Mn(t.toPath(hi)))}function Mn(pt){vo(ne,pt,U6),vo(_e,pt,Qoe)}function Qs(pt,Gt){if(!pt)return!1;let Mt=!1;return pt.forEach(hi=>{if(!(hi.isInvalidated||!Gt(hi))){hi.isInvalidated=Mt=!0;for(let Ie of Se.checkDefined(hi.files))(m??(m=new Set)).add(Ie),A=A||xh(Ie,KU)}}),Mt}function Pi(pt){Mn(pt);let Gt=A;Qs(T.get(pt),ql)&&A&&!Gt&&t.onChangedAutomaticTypeDirectiveNames()}function qi(pt){Se.assert(g===pt||g===void 0),g=pt}function lt(pt,Gt){if(Gt)($||($=new Set)).add(pt);else{let Mt=Ece(pt);if(!Mt||(pt=Mt,t.fileIsOpen(pt)))return!1;let hi=Cc(pt);if(mr(pt)||eN(pt)||mr(hi)||eN(hi))(H||(H=new Set)).add(pt),(U||(U=new Set)).add(pt);else{if(yce(t.getCurrentProgram(),pt)||Wh(pt,".map"))return!1;(H||(H=new Set)).add(pt);let Ie=Mhe(pt,!0);Ie&&(U||(U=new Set)).add(Ie)}}t.scheduleInvalidateResolutionsOfFailedLookupLocations()}function Xi(){let pt=se.getPackageJsonInfoCache().getInternalMap();pt&&(H||U||$)&&pt.forEach((Gt,Mt)=>Pe(Mt)?pt.delete(Mt):void 0)}function nt(){var pt;if(K)return M=void 0,Xi(),(H||U||$||R)&&Qs(le,Lt),H=void 0,U=void 0,$=void 0,R=void 0,!0;let Gt=!1;return M&&((pt=t.getCurrentProgram())==null||pt.getSourceFiles().forEach(Mt=>{En(Mt.packageJsonLocations,hi=>M.has(hi))&&((m??(m=new Set)).add(Mt.path),Gt=!0)}),M=void 0),!H&&!U&&!$&&!R||(Gt=Qs(x,Lt)||Gt,Xi(),H=void 0,U=void 0,$=void 0,Gt=Qs(k,St)||Gt,R=void 0),Gt}function Lt(pt){var Gt;return St(pt)?!0:!H&&!U&&!$?!1:((Gt=pt.failedLookupLocations)==null?void 0:Gt.some(Mt=>Pe(t.toPath(Mt))))||!!pt.alternateResult&&Pe(t.toPath(pt.alternateResult))}function Pe(pt){return H?.has(pt)||Xe(U?.keys()||[],Gt=>xl(pt,Gt)?!0:void 0)||Xe($?.keys()||[],Gt=>pt.length>Gt.length&&xl(pt,Gt)&&(J0(Gt)||pt[Gt.length]===uh)?!0:void 0)}function St(pt){var Gt;return!!R&&((Gt=pt.affectingLocations)==null?void 0:Gt.some(Mt=>R.has(Mt)))}function Ve(){Zb(Oe,GT)}function Tt(pt){return Wt(pt)?t.watchTypeRootsDirectory(pt,Gt=>{let Mt=t.toPath(Gt);X&&X.addOrDeleteFileOrDirectory(Gt,Mt),A=!0,t.onChangedAutomaticTypeDirectiveNames();let hi=Dce(pt,t.toPath(pt),fe,we,re,t.preferNonRecursiveWatch,Ie=>xe.has(Ie)||he.has(Ie));hi&<(Mt,hi===Mt)},1):iJ}function dt(){let pt=t.getCompilationSettings();if(pt.types){Ve();return}let Gt=gM(pt,{getCurrentDirectory:re});Gt?yk(Oe,new Set(Gt),{createNewValue:Tt,onDeleteValue:GT}):Ve()}function Wt(pt){return t.getCompilationSettings().typeRoots?!0:K2e(t.toPath(pt))}}function zK(t){var n,a;return!!((n=t.resolvedModule)!=null&&n.originalPath||(a=t.resolvedTypeReferenceDirective)!=null&&a.originalPath)}var RXe=hy?{getCurrentDirectory:()=>hy.getCurrentDirectory(),getNewLine:()=>hy.newLine,getCanonicalFileName:U0(hy.useCaseSensitiveFileNames)}:void 0;function _9(t,n){let a=t===hy&&RXe?RXe:{getCurrentDirectory:()=>t.getCurrentDirectory(),getNewLine:()=>t.newLine,getCanonicalFileName:U0(t.useCaseSensitiveFileNames)};if(!n)return m=>t.write(bce(m,a));let u=new Array(1);return m=>{u[0]=m,t.write(F2e(u,a)+a.getNewLine()),u[0]=void 0}}function z0t(t,n,a){return t.clearScreen&&!a.preserveWatchOutput&&!a.extendedDiagnostics&&!a.diagnostics&&dr(Ice,n.code)?(t.clearScreen(),!0):!1}var Ice=[j.Starting_compilation_in_watch_mode.code,j.File_change_detected_Starting_incremental_compilation.code];function t7e(t,n){return dr(Ice,t.code)?n+n:n}function fte(t){return t.now?t.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace("\u202F"," "):new Date().toLocaleTimeString()}function _te(t,n){return n?(a,u,m)=>{z0t(t,a,m);let g=`[${fF(fte(t),"\x1B[90m")}] `;g+=`${wN(a.messageText,t.newLine)}${u+u}`,t.write(g)}:(a,u,m)=>{let g="";z0t(t,a,m)||(g+=u),g+=`${fte(t)} - `,g+=`${wN(a.messageText,t.newLine)}${t7e(a,u)}`,t.write(g)}}function Nce(t,n,a,u,m,g){let v=m;v.onUnRecoverableConfigFileDiagnostic=k=>nEe(m,g,k);let x=hK(t,n,v,a,u);return v.onUnRecoverableConfigFileDiagnostic=void 0,x}function pte(t){return Tn(t,n=>n.category===1)}function $ge(t){return Qn(t,a=>a.category===1).map(a=>{if(a.file!==void 0)return`${a.file.fileName}`}).map(a=>{if(a===void 0)return;let u=jt(t,m=>m.file!==void 0&&m.file.fileName===a);if(u!==void 0){let{line:m}=Df(u.file,u.start);return{fileName:a,line:m+1}}})}function Ace(t){return t===1?j.Found_1_error_Watching_for_file_changes:j.Found_0_errors_Watching_for_file_changes}function V0t(t,n){let a=fF(":"+t.line,"\x1B[90m");return QQ(t.fileName)&&QQ(n)?w2(n,t.fileName,!1)+a:t.fileName+a}function Gge(t,n,a,u){if(t===0)return"";let m=n.filter(I=>I!==void 0),g=m.map(I=>`${I.fileName}:${I.line}`).filter((I,A,M)=>M.indexOf(I)===A),v=m[0]&&V0t(m[0],u.getCurrentDirectory()),x;t===1?x=n[0]!==void 0?[j.Found_1_error_in_0,v]:[j.Found_1_error]:x=g.length===0?[j.Found_0_errors,t]:g.length===1?[j.Found_0_errors_in_the_same_file_starting_at_Colon_1,t,v]:[j.Found_0_errors_in_1_files,t,g.length];let k=Th(...x),T=g.length>1?i7e(m,u):"";return`${a}${wN(k.messageText,a)}${a}${a}${T}`}function i7e(t,n){let a=t.filter((A,M,R)=>M===R.findIndex(H=>H?.fileName===A?.fileName));if(a.length===0)return"";let u=A=>Math.log(A)*Math.LOG10E+1,m=a.map(A=>[A,Tn(t,M=>M.fileName===A.fileName)]),g=uCe(m,0,A=>A[1]),v=j.Errors_Files.message,x=v.split(" ")[0].length,k=Math.max(x,u(g)),T=Math.max(u(g)-x,0),I="";return I+=" ".repeat(T)+v+` +`,m.forEach(A=>{let[M,R]=A,H=Math.log(R)*Math.LOG10E+1|0,U=H{n(u.fileName)})}function Lce(t,n){var a,u;let m=t.getFileIncludeReasons(),g=v=>lH(v,t.getCurrentDirectory(),t.getCanonicalFileName);for(let v of t.getSourceFiles())n(`${BW(v,g)}`),(a=m.get(v.path))==null||a.forEach(x=>n(` ${mte(t,x,g).messageText}`)),(u=Oce(v,t.getCompilerOptionsForFile(v),g))==null||u.forEach(x=>n(` ${x.messageText}`))}function Oce(t,n,a){var u;let m;if(t.path!==t.resolvedPath&&(m??(m=[])).push(Zl(void 0,j.File_is_output_of_project_reference_source_0,BW(t.originalFileName,a))),t.redirectInfo&&(m??(m=[])).push(Zl(void 0,j.File_redirects_to_file_0,BW(t.redirectInfo.redirectTarget,a))),Jv(t))switch(uO(t,n)){case 99:t.packageJsonScope&&(m??(m=[])).push(Zl(void 0,j.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,BW(Bu(t.packageJsonLocations),a)));break;case 1:t.packageJsonScope?(m??(m=[])).push(Zl(void 0,t.packageJsonScope.contents.packageJsonContent.type?j.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:j.File_is_CommonJS_module_because_0_does_not_have_field_type,BW(Bu(t.packageJsonLocations),a))):(u=t.packageJsonLocations)!=null&&u.length&&(m??(m=[])).push(Zl(void 0,j.File_is_CommonJS_module_because_package_json_was_not_found));break}return m}function Fce(t,n){var a;let u=t.getCompilerOptions().configFile;if(!((a=u?.configFileSpecs)!=null&&a.validatedFilesSpec))return;let m=t.getCanonicalFileName(n),g=Cc(tu(u.fileName,t.getCurrentDirectory())),v=_n(u.configFileSpecs.validatedFilesSpec,x=>t.getCanonicalFileName(tu(x,g))===m);return v!==-1?u.configFileSpecs.validatedFilesSpecBeforeSubstitution[v]:void 0}function RW(t,n){var a,u;let m=t.getCompilerOptions().configFile;if(!((a=m?.configFileSpecs)!=null&&a.validatedIncludeSpecs))return;if(m.configFileSpecs.isDefaultIncludeSpec)return!0;let g=Wh(n,".json"),v=Cc(tu(m.fileName,t.getCurrentDirectory())),x=t.useCaseSensitiveFileNames(),k=_n((u=m?.configFileSpecs)==null?void 0:u.validatedIncludeSpecs,T=>{if(g&&!xh(T,".json"))return!1;let I=zOe(T,v,"files");return!!I&&U3(`(${I})$`,x).test(n)});return k!==-1?m.configFileSpecs.validatedIncludeSpecsBeforeSubstitution[k]:void 0}function mte(t,n,a){var u,m;let g=t.getCompilerOptions();if(z4(n)){let v=FW(t,n),x=OW(v)?v.file.text.substring(v.pos,v.end):`"${v.text}"`,k;switch(Se.assert(OW(v)||n.kind===3,"Only synthetic references are imports"),n.kind){case 3:OW(v)?k=v.packageId?j.Imported_via_0_from_file_1_with_packageId_2:j.Imported_via_0_from_file_1:v.text===R7?k=v.packageId?j.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:j.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:k=v.packageId?j.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:j.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:Se.assert(!v.packageId),k=j.Referenced_via_0_from_file_1;break;case 5:k=v.packageId?j.Type_library_referenced_via_0_from_file_1_with_packageId_2:j.Type_library_referenced_via_0_from_file_1;break;case 7:Se.assert(!v.packageId),k=j.Library_referenced_via_0_from_file_1;break;default:Se.assertNever(n)}return Zl(void 0,k,x,BW(v.file,a),v.packageId&&h4(v.packageId))}switch(n.kind){case 0:if(!((u=g.configFile)!=null&&u.configFileSpecs))return Zl(void 0,j.Root_file_specified_for_compilation);let v=tu(t.getRootFileNames()[n.index],t.getCurrentDirectory());if(Fce(t,v))return Zl(void 0,j.Part_of_files_list_in_tsconfig_json);let k=RW(t,v);return Yu(k)?Zl(void 0,j.Matched_by_include_pattern_0_in_1,k,BW(g.configFile,a)):Zl(void 0,k?j.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:j.Root_file_specified_for_compilation);case 1:case 2:let T=n.kind===2,I=Se.checkDefined((m=t.getResolvedProjectReferences())==null?void 0:m[n.index]);return Zl(void 0,g.outFile?T?j.Output_from_referenced_project_0_included_because_1_specified:j.Source_from_referenced_project_0_included_because_1_specified:T?j.Output_from_referenced_project_0_included_because_module_is_specified_as_none:j.Source_from_referenced_project_0_included_because_module_is_specified_as_none,BW(I.sourceFile.fileName,a),g.outFile?"--outFile":"--out");case 8:{let A=g.types?n.packageId?[j.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,n.typeReference,h4(n.packageId)]:[j.Entry_point_of_type_library_0_specified_in_compilerOptions,n.typeReference]:n.packageId?[j.Entry_point_for_implicit_type_library_0_with_packageId_1,n.typeReference,h4(n.packageId)]:[j.Entry_point_for_implicit_type_library_0,n.typeReference];return Zl(void 0,...A)}case 6:{if(n.index!==void 0)return Zl(void 0,j.Library_0_specified_in_compilerOptions,g.lib[n.index]);let A=JC(h_(g)),M=A?[j.Default_library_for_target_0,A]:[j.Default_library];return Zl(void 0,...M)}default:Se.assertNever(n)}}function BW(t,n){let a=Yu(t)?t:t.fileName;return n?n(a):a}function jW(t,n,a,u,m,g,v,x){let k=t.getCompilerOptions(),T=t.getConfigFileParsingDiagnostics().slice(),I=T.length;Ho(T,t.getSyntacticDiagnostics(void 0,g)),T.length===I&&(Ho(T,t.getOptionsDiagnostics(g)),k.listFilesOnly||(Ho(T,t.getGlobalDiagnostics(g)),T.length===I&&Ho(T,t.getSemanticDiagnostics(void 0,g)),k.noEmit&&fw(k)&&T.length===I&&Ho(T,t.getDeclarationDiagnostics(void 0,g))));let A=k.listFilesOnly?{emitSkipped:!0,diagnostics:F}:t.emit(void 0,m,g,v,x);Ho(T,A.diagnostics);let M=qw(T);if(M.forEach(n),a){let R=t.getCurrentDirectory();ee(A.emittedFiles,H=>{let U=tu(H,R);a(`TSFILE: ${U}`)}),n7e(t,a)}return u&&u(pte(M),$ge(M)),{emitResult:A,diagnostics:M}}function tJ(t,n,a,u,m,g,v,x){let{emitResult:k,diagnostics:T}=jW(t,n,a,u,m,g,v,x);return k.emitSkipped&&T.length>0?1:T.length>0?2:0}var iJ={close:Za},_0=()=>iJ;function Mce(t=hy,n){return{onWatchStatusChange:n||_te(t),watchFile:wu(t,t.watchFile)||_0,watchDirectory:wu(t,t.watchDirectory)||_0,setTimeout:wu(t,t.setTimeout)||Za,clearTimeout:wu(t,t.clearTimeout)||Za,preferNonRecursiveWatch:t.preferNonRecursiveWatch}}var Ty={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",AffectingFileLocation:"File location affecting resolution",TypeRoots:"Type roots",ConfigFileOfReferencedProject:"Config file of referened project",ExtendedConfigOfReferencedProject:"Extended config file of referenced project",WildcardDirectoryOfReferencedProject:"Wild card directory of referenced project",PackageJson:"package.json file",ClosedScriptInfo:"Closed Script info",ConfigFileForInferredRoot:"Config file for the inferred project root",NodeModules:"node_modules for closed script infos and package.jsons affecting module specifier cache",MissingSourceMapFile:"Missing source map file",NoopConfigFileForInferredRoot:"Noop Config file for the inferred project root",MissingGeneratedFile:"Missing generated file",NodeModulesForModuleSpecifierCache:"node_modules for module specifier cache invalidation",TypingInstallerLocationFile:"File location for typing installer",TypingInstallerLocationDirectory:"Directory location for typing installer"};function hte(t,n){let a=t.trace?n.extendedDiagnostics?2:n.diagnostics?1:0:0,u=a!==0?g=>t.trace(g):Za,m=ite(t,a,u);return m.writeLog=u,m}function gte(t,n,a=t){let u=t.useCaseSensitiveFileNames(),m={getSourceFile:Cge((g,v)=>v?t.readFile(g,v):m.readFile(g),void 0),getDefaultLibLocation:wu(t,t.getDefaultLibLocation),getDefaultLibFileName:g=>t.getDefaultLibFileName(g),writeFile:kge((g,v,x)=>t.writeFile(g,v,x),g=>t.createDirectory(g),g=>t.directoryExists(g)),getCurrentDirectory:H0(()=>t.getCurrentDirectory()),useCaseSensitiveFileNames:()=>u,getCanonicalFileName:U0(u),getNewLine:()=>W2(n()),fileExists:g=>t.fileExists(g),readFile:g=>t.readFile(g),trace:wu(t,t.trace),directoryExists:wu(a,a.directoryExists),getDirectories:wu(a,a.getDirectories),realpath:wu(t,t.realpath),getEnvironmentVariable:wu(t,t.getEnvironmentVariable)||(()=>""),createHash:wu(t,t.createHash),readDirectory:wu(t,t.readDirectory),storeSignatureInfo:t.storeSignatureInfo,jsDocParsingMode:t.jsDocParsingMode};return m}function yte(t,n){if(n.match(MKe)){let a=n.length,u=a;for(let m=a-1;m>=0;m--){let g=n.charCodeAt(m);switch(g){case 10:m&&n.charCodeAt(m-1)===13&&m--;case 13:break;default:if(g<127||!Ev(g)){u=m;continue}break}let v=n.substring(u,a);if(v.match(lFe)){n=n.substring(0,u);break}else if(!v.match(Ek))break;a=u}}return(t.createHash||F$)(n)}function Kge(t){let n=t.getSourceFile;t.getSourceFile=(...a)=>{let u=n.call(t,...a);return u&&(u.version=yte(t,u.text)),u}}function tEe(t,n){let a=H0(()=>Cc(Kd(t.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>t.useCaseSensitiveFileNames,getNewLine:()=>t.newLine,getCurrentDirectory:H0(()=>t.getCurrentDirectory()),getDefaultLibLocation:a,getDefaultLibFileName:u=>Ps(a(),gpe(u)),fileExists:u=>t.fileExists(u),readFile:(u,m)=>t.readFile(u,m),directoryExists:u=>t.directoryExists(u),getDirectories:u=>t.getDirectories(u),readDirectory:(u,m,g,v,x)=>t.readDirectory(u,m,g,v,x),realpath:wu(t,t.realpath),getEnvironmentVariable:wu(t,t.getEnvironmentVariable),trace:u=>t.write(u+t.newLine),createDirectory:u=>t.createDirectory(u),writeFile:(u,m,g)=>t.writeFile(u,m,g),createHash:wu(t,t.createHash),createProgram:n||Vge,storeSignatureInfo:t.storeSignatureInfo,now:wu(t,t.now)}}function iEe(t=hy,n,a,u){let m=v=>t.write(v+t.newLine),g=tEe(t,n);return PS(g,Mce(t,u)),g.afterProgramCreate=v=>{let x=v.getCompilerOptions(),k=W2(x);jW(v,a,m,T=>g.onWatchStatusChange(Th(Ace(T),T),k,x,T))},g}function nEe(t,n,a){n(a),t.exit(1)}function Xge({configFileName:t,optionsToExtend:n,watchOptionsToExtend:a,extraFileExtensions:u,system:m,createProgram:g,reportDiagnostic:v,reportWatchStatus:x}){let k=v||_9(m),T=iEe(m,g,k,x);return T.onUnRecoverableConfigFileDiagnostic=I=>nEe(m,k,I),T.configFileName=t,T.optionsToExtend=n,T.watchOptionsToExtend=a,T.extraFileExtensions=u,T}function vte({rootFiles:t,options:n,watchOptions:a,projectReferences:u,system:m,createProgram:g,reportDiagnostic:v,reportWatchStatus:x}){let k=iEe(m,g,v||_9(m),x);return k.rootFiles=t,k.options=n,k.watchOptions=a,k.projectReferences=u,k}function Rce(t){let n=t.system||hy,a=t.host||(t.host=Yge(t.options,n)),u=Qge(t),m=tJ(u,t.reportDiagnostic||_9(n),g=>a.trace&&a.trace(g),t.reportErrorSummary||t.options.pretty?(g,v)=>n.write(Gge(g,v,n.newLine,a)):void 0);return t.afterProgramEmitAndDiagnostics&&t.afterProgramEmitAndDiagnostics(u),m}function Bce(t,n){let a=s9(t);if(!a)return;let u;if(n.getBuildInfo)u=n.getBuildInfo(a,t.configFilePath);else{let m=n.readFile(a);if(!m)return;u=l9(a,m)}if(!(!u||u.version!==L||!ute(u)))return jge(u,a,n)}function Yge(t,n=hy){let a=rte(t,void 0,n);return a.createHash=wu(n,n.createHash),a.storeSignatureInfo=n.storeSignatureInfo,Kge(a),u9(a,u=>dd(u,a.getCurrentDirectory(),a.getCanonicalFileName)),a}function Qge({rootNames:t,options:n,configFileParsingDiagnostics:a,projectReferences:u,host:m,createProgram:g}){m=m||Yge(n),g=g||Vge;let v=Bce(n,m);return g(t,n,m,v,a,u)}function r7e(t,n,a,u,m,g,v,x){return ua(t)?vte({rootFiles:t,options:n,watchOptions:x,projectReferences:v,system:a,createProgram:u,reportDiagnostic:m,reportWatchStatus:g}):Xge({configFileName:t,optionsToExtend:n,watchOptionsToExtend:v,extraFileExtensions:x,system:a,createProgram:u,reportDiagnostic:m,reportWatchStatus:g})}function jce(t){let n,a,u,m,g,v,x,k,T=t.extendedConfigCache,I=!1,A=new Map,M,R=!1,H=t.useCaseSensitiveFileNames(),U=t.getCurrentDirectory(),{configFileName:$,optionsToExtend:K={},watchOptionsToExtend:re,extraFileExtensions:X,createProgram:ne}=t,{rootFiles:se,options:_e,watchOptions:ae,projectReferences:le}=t,Ee,xe,be=!1,Le=!1,fe=$===void 0?void 0:W4(t,U,H),we=fe||t,Ae=z2e(t,we),Ge=Bn();$&&t.configFileParsingResult&&(qi(t.configFileParsingResult),Ge=Bn()),ai(j.Starting_compilation_in_watch_mode),$&&!t.configFileParsingResult&&(Ge=W2(K),Se.assert(!se),Pi(),Ge=Bn()),Se.assert(_e),Se.assert(se);let{watchFile:he,watchDirectory:Oe,writeLog:Re}=hte(t,_e),$e=U0(H);Re(`Current directory: ${U} CaseSensitiveFileNames: ${H}`);let Ke;$&&(Ke=he($,Sr,2e3,ae,Ty.ConfigFile));let qe=gte(t,()=>_e,we);Kge(qe);let rt=qe.getSourceFile;qe.getSourceFile=(Mt,...hi)=>xr(Mt,mr(Mt),...hi),qe.getSourceFileByPath=xr,qe.getNewLine=()=>Ge,qe.fileExists=zr,qe.onReleaseOldSourceFile=Hs,qe.onReleaseParsedCommandLine=nt,qe.toPath=mr,qe.getCompilationSettings=()=>_e,qe.useSourceOfProjectReferenceRedirect=wu(t,t.useSourceOfProjectReferenceRedirect),qe.preferNonRecursiveWatch=t.preferNonRecursiveWatch,qe.watchDirectoryOfFailedLookupLocation=(Mt,hi,Ie)=>Oe(Mt,hi,Ie,ae,Ty.FailedLookupLocations),qe.watchAffectingFileLocation=(Mt,hi)=>he(Mt,hi,2e3,ae,Ty.AffectingFileLocation),qe.watchTypeRootsDirectory=(Mt,hi,Ie)=>Oe(Mt,hi,Ie,ae,Ty.TypeRoots),qe.getCachedDirectoryStructureHost=()=>fe,qe.scheduleInvalidateResolutionsOfFailedLookupLocations=Gr,qe.onInvalidatedResolution=gn,qe.onChangedAutomaticTypeDirectiveNames=gn,qe.fileIsOpen=uk,qe.getCurrentProgram=Ut,qe.writeLog=Re,qe.getParsedCommandLine=lt;let _t=eEe(qe,$?Cc(tu($,U)):U,!1);qe.resolveModuleNameLiterals=wu(t,t.resolveModuleNameLiterals),qe.resolveModuleNames=wu(t,t.resolveModuleNames),!qe.resolveModuleNameLiterals&&!qe.resolveModuleNames&&(qe.resolveModuleNameLiterals=_t.resolveModuleNameLiterals.bind(_t)),qe.resolveTypeReferenceDirectiveReferences=wu(t,t.resolveTypeReferenceDirectiveReferences),qe.resolveTypeReferenceDirectives=wu(t,t.resolveTypeReferenceDirectives),!qe.resolveTypeReferenceDirectiveReferences&&!qe.resolveTypeReferenceDirectives&&(qe.resolveTypeReferenceDirectiveReferences=_t.resolveTypeReferenceDirectiveReferences.bind(_t)),qe.resolveLibrary=t.resolveLibrary?t.resolveLibrary.bind(t):_t.resolveLibrary.bind(_t),qe.getModuleResolutionCache=t.resolveModuleNameLiterals||t.resolveModuleNames?wu(t,t.getModuleResolutionCache):()=>_t.getModuleResolutionCache();let mt=!!t.resolveModuleNameLiterals||!!t.resolveTypeReferenceDirectiveReferences||!!t.resolveModuleNames||!!t.resolveTypeReferenceDirectives?wu(t,t.hasInvalidatedResolutions)||ql:uk,ut=t.resolveLibrary?wu(t,t.hasInvalidatedLibResolutions)||ql:uk;return n=Bce(_e,qe),pi(),dt(),$&&pt(mr($),_e,ae,Ty.ExtendedConfigFile),$?{getCurrentProgram:ni,getProgram:$o,close:ht,getResolutionCache:Kt}:{getCurrentProgram:ni,getProgram:$o,updateRootFileNames:Bi,close:ht,getResolutionCache:Kt};function ht(){Nn(),_t.clear(),Zb(A,Mt=>{Mt&&Mt.fileWatcher&&(Mt.fileWatcher.close(),Mt.fileWatcher=void 0)}),Ke&&(Ke.close(),Ke=void 0),T?.clear(),T=void 0,k&&(Zb(k,Dk),k=void 0),m&&(Zb(m,Dk),m=void 0),u&&(Zb(u,GT),u=void 0),x&&(Zb(x,Mt=>{var hi;(hi=Mt.watcher)==null||hi.close(),Mt.watcher=void 0,Mt.watchedDirectories&&Zb(Mt.watchedDirectories,Dk),Mt.watchedDirectories=void 0}),x=void 0),n=void 0}function Kt(){return _t}function ni(){return n}function Ut(){return n&&n.getProgramOrUndefined()}function pi(){Re("Synchronizing program"),Se.assert(_e),Se.assert(se),Nn();let Mt=ni();R&&(Ge=Bn(),Mt&&uj(Mt.getCompilerOptions(),_e)&&_t.onChangesAffectModuleResolution());let{hasInvalidatedResolutions:hi,hasInvalidatedLibResolutions:Ie}=_t.createHasInvalidatedResolutions(mt,ut),{originalReadFile:Bt,originalFileExists:ui,originalDirectoryExists:Ue,originalCreateDirectory:Ce,originalWriteFile:ye,readFileWithCache:vt}=u9(qe,mr);return XU(Ut(),se,_e,pe=>_r(pe,vt),pe=>qe.fileExists(pe),hi,Ie,mn,lt,le)?Le&&(I&&ai(j.File_change_detected_Starting_incremental_compilation),n=ne(void 0,void 0,qe,n,xe,le),Le=!1):(I&&ai(j.File_change_detected_Starting_incremental_compilation),wi(hi,Ie)),I=!1,t.afterProgramCreate&&Mt!==n&&t.afterProgramCreate(n),qe.readFile=Bt,qe.fileExists=ui,qe.directoryExists=Ue,qe.createDirectory=Ce,qe.writeFile=ye,n}function wi(Mt,hi){Re("CreatingProgramWith::"),Re(` roots: ${JSON.stringify(se)}`),Re(` options: ${JSON.stringify(_e)}`),le&&Re(` projectReferences: ${JSON.stringify(le)}`);let Ie=R||!Ut();R=!1,Le=!1,_t.startCachingPerDirectoryResolution(),qe.hasInvalidatedResolutions=Mt,qe.hasInvalidatedLibResolutions=hi,qe.hasChangedAutomaticTypeDirectiveNames=mn;let Bt=Ut();if(n=ne(se,_e,qe,n,xe,le),_t.finishCachingPerDirectoryResolution(n.getProgram(),Bt),OFe(n.getProgram(),u||(u=new Map),Ve),Ie&&_t.updateTypeRootsWatch(),M){for(let ui of M)u.has(ui)||A.delete(ui);M=void 0}}function Bi(Mt){Se.assert(!$,"Cannot update root file names with config file watch mode"),se=Mt,gn()}function Bn(){return W2(_e||K)}function mr(Mt){return dd(Mt,U,$e)}function Ei(Mt){return typeof Mt=="boolean"}function zn(Mt){return typeof Mt.version=="boolean"}function zr(Mt){let hi=mr(Mt);return Ei(A.get(hi))?!1:we.fileExists(Mt)}function xr(Mt,hi,Ie,Bt,ui){let Ue=A.get(hi);if(Ei(Ue))return;let Ce=typeof Ie=="object"?Ie.impliedNodeFormat:void 0;if(Ue===void 0||ui||zn(Ue)||Ue.sourceFile.impliedNodeFormat!==Ce){let ye=rt(Mt,Ie,Bt);if(Ue)ye?(Ue.sourceFile=ye,Ue.version=ye.version,Ue.fileWatcher||(Ue.fileWatcher=Lt(hi,Mt,Pe,250,ae,Ty.SourceFile))):(Ue.fileWatcher&&Ue.fileWatcher.close(),A.set(hi,!1));else if(ye){let vt=Lt(hi,Mt,Pe,250,ae,Ty.SourceFile);A.set(hi,{sourceFile:ye,version:ye.version,fileWatcher:vt})}else A.set(hi,!1);return ye}return Ue.sourceFile}function lo(Mt){let hi=A.get(Mt);hi!==void 0&&(Ei(hi)?A.set(Mt,{version:!1}):hi.version=!1)}function _r(Mt,hi){let Ie=A.get(Mt);if(!Ie)return;if(Ie.version)return Ie.version;let Bt=hi(Mt);return Bt!==void 0?yte(qe,Bt):void 0}function Hs(Mt,hi,Ie){let Bt=A.get(Mt.resolvedPath);Bt!==void 0&&(Ei(Bt)?(M||(M=[])).push(Mt.path):Bt.sourceFile===Mt&&(Bt.fileWatcher&&Bt.fileWatcher.close(),A.delete(Mt.resolvedPath),Ie||_t.removeResolutionsOfFile(Mt.path)))}function ai(Mt){t.onWatchStatusChange&&t.onWatchStatusChange(Th(Mt),Ge,_e||K)}function mn(){return _t.hasChangedAutomaticTypeDirectiveNames()}function Nn(){return v?(t.clearTimeout(v),v=void 0,!0):!1}function Gr(){if(!t.setTimeout||!t.clearTimeout)return _t.invalidateResolutionsOfFailedLookupLocations();let Mt=Nn();Re(`Scheduling invalidateFailedLookup${Mt?", Cancelled earlier one":""}`),v=t.setTimeout(ci,250,"timerToInvalidateFailedLookupResolutions")}function ci(){v=void 0,_t.invalidateResolutionsOfFailedLookupLocations()&&gn()}function gn(){!t.setTimeout||!t.clearTimeout||(g&&t.clearTimeout(g),Re("Scheduling update"),g=t.setTimeout(vo,250,"timerToUpdateProgram"))}function Sr(){Se.assert(!!$),a=2,gn()}function vo(){g=void 0,I=!0,$o()}function $o(){switch(a){case 1:Mn();break;case 2:Qs();break;default:pi();break}return ni()}function Mn(){Re("Reloading new file names and options"),Se.assert(_e),Se.assert($),a=0,se=MU(_e.configFile.configFileSpecs,tu(Cc($),U),_e,Ae,X),Ihe(se,tu($,U),_e.configFile.configFileSpecs,xe,be)&&(Le=!0),pi()}function Qs(){Se.assert($),Re(`Reloading config file: ${$}`),a=0,fe&&fe.clearCache(),Pi(),R=!0,pi(),dt(),pt(mr($),_e,ae,Ty.ExtendedConfigFile)}function Pi(){Se.assert($),qi(hK($,K,Ae,T||(T=new Map),re,X))}function qi(Mt){se=Mt.fileNames,_e=Mt.options,ae=Mt.watchOptions,le=Mt.projectReferences,Ee=Mt.wildcardDirectories,xe=lO(Mt).slice(),be=FU(Mt.raw),Le=!0}function lt(Mt){let hi=mr(Mt),Ie=x?.get(hi);if(Ie){if(!Ie.updateLevel)return Ie.parsedCommandLine;if(Ie.parsedCommandLine&&Ie.updateLevel===1&&!t.getParsedCommandLine){Re("Reloading new file names and options"),Se.assert(_e);let ui=MU(Ie.parsedCommandLine.options.configFile.configFileSpecs,tu(Cc(Mt),U),_e,Ae);return Ie.parsedCommandLine={...Ie.parsedCommandLine,fileNames:ui},Ie.updateLevel=void 0,Ie.parsedCommandLine}}Re(`Loading config file: ${Mt}`);let Bt=t.getParsedCommandLine?t.getParsedCommandLine(Mt):Xi(Mt);return Ie?(Ie.parsedCommandLine=Bt,Ie.updateLevel=void 0):(x||(x=new Map)).set(hi,Ie={parsedCommandLine:Bt}),Gt(Mt,hi,Ie),Bt}function Xi(Mt){let hi=Ae.onUnRecoverableConfigFileDiagnostic;Ae.onUnRecoverableConfigFileDiagnostic=Za;let Ie=hK(Mt,void 0,Ae,T||(T=new Map),re);return Ae.onUnRecoverableConfigFileDiagnostic=hi,Ie}function nt(Mt){var hi;let Ie=mr(Mt),Bt=x?.get(Ie);Bt&&(x.delete(Ie),Bt.watchedDirectories&&Zb(Bt.watchedDirectories,Dk),(hi=Bt.watcher)==null||hi.close(),LFe(Ie,k))}function Lt(Mt,hi,Ie,Bt,ui,Ue){return he(hi,(Ce,ye)=>Ie(Ce,ye,Mt),Bt,ui,Ue)}function Pe(Mt,hi,Ie){St(Mt,Ie,hi),hi===2&&A.has(Ie)&&_t.invalidateResolutionOfFile(Ie),lo(Ie),gn()}function St(Mt,hi,Ie){fe&&fe.addOrDeleteFile(Mt,hi,Ie)}function Ve(Mt,hi){return x?.has(Mt)?iJ:Lt(Mt,hi,Tt,500,ae,Ty.MissingFile)}function Tt(Mt,hi,Ie){St(Mt,Ie,hi),hi===0&&u.has(Ie)&&(u.get(Ie).close(),u.delete(Ie),lo(Ie),gn())}function dt(){Sge(m||(m=new Map),Ee,Wt)}function Wt(Mt,hi){return Oe(Mt,Ie=>{Se.assert($),Se.assert(_e);let Bt=mr(Ie);fe&&fe.addOrDeleteFileOrDirectory(Ie,Bt),lo(Bt),!xge({watchedDirPath:mr(Mt),fileOrDirectory:Ie,fileOrDirectoryPath:Bt,configFileName:$,extraFileExtensions:X,options:_e,program:ni()||se,currentDirectory:U,useCaseSensitiveFileNames:H,writeLog:Re,toPath:mr})&&a!==2&&(a=1,gn())},hi,ae,Ty.WildcardDirectory)}function pt(Mt,hi,Ie,Bt){D2e(Mt,hi,k||(k=new Map),(ui,Ue)=>he(ui,(Ce,ye)=>{var vt;St(ui,Ue,ye),T&&I2e(T,Ue,mr);let pe=(vt=k.get(Ue))==null?void 0:vt.projects;pe?.size&&pe.forEach(at=>{if($&&mr($)===at)a=2;else{let We=x?.get(at);We&&(We.updateLevel=2),_t.removeResolutionsFromProjectReferenceRedirects(at)}gn()})},2e3,Ie,Bt),mr)}function Gt(Mt,hi,Ie){var Bt,ui,Ue,Ce;Ie.watcher||(Ie.watcher=he(Mt,(ye,vt)=>{St(Mt,hi,vt);let pe=x?.get(hi);pe&&(pe.updateLevel=2),_t.removeResolutionsFromProjectReferenceRedirects(hi),gn()},2e3,((Bt=Ie.parsedCommandLine)==null?void 0:Bt.watchOptions)||ae,Ty.ConfigFileOfReferencedProject)),Sge(Ie.watchedDirectories||(Ie.watchedDirectories=new Map),(ui=Ie.parsedCommandLine)==null?void 0:ui.wildcardDirectories,(ye,vt)=>{var pe;return Oe(ye,at=>{let We=mr(at);fe&&fe.addOrDeleteFileOrDirectory(at,We),lo(We);let si=x?.get(hi);si?.parsedCommandLine&&(xge({watchedDirPath:mr(ye),fileOrDirectory:at,fileOrDirectoryPath:We,configFileName:Mt,options:si.parsedCommandLine.options,program:si.parsedCommandLine.fileNames,currentDirectory:U,useCaseSensitiveFileNames:H,writeLog:Re,toPath:mr})||si.updateLevel!==2&&(si.updateLevel=1,gn()))},vt,((pe=Ie.parsedCommandLine)==null?void 0:pe.watchOptions)||ae,Ty.WildcardDirectoryOfReferencedProject)}),pt(hi,(Ue=Ie.parsedCommandLine)==null?void 0:Ue.options,((Ce=Ie.parsedCommandLine)==null?void 0:Ce.watchOptions)||ae,Ty.ExtendedConfigOfReferencedProject)}}var BXe=(t=>(t[t.Unbuildable=0]="Unbuildable",t[t.UpToDate=1]="UpToDate",t[t.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",t[t.OutputMissing=3]="OutputMissing",t[t.ErrorReadingFile=4]="ErrorReadingFile",t[t.OutOfDateWithSelf=5]="OutOfDateWithSelf",t[t.OutOfDateWithUpstream=6]="OutOfDateWithUpstream",t[t.OutOfDateBuildInfoWithPendingEmit=7]="OutOfDateBuildInfoWithPendingEmit",t[t.OutOfDateBuildInfoWithErrors=8]="OutOfDateBuildInfoWithErrors",t[t.OutOfDateOptions=9]="OutOfDateOptions",t[t.OutOfDateRoots=10]="OutOfDateRoots",t[t.UpstreamOutOfDate=11]="UpstreamOutOfDate",t[t.UpstreamBlocked=12]="UpstreamBlocked",t[t.ComputingUpstream=13]="ComputingUpstream",t[t.TsVersionOutputOfDate=14]="TsVersionOutputOfDate",t[t.UpToDateWithInputFileText=15]="UpToDateWithInputFileText",t[t.ContainerOnly=16]="ContainerOnly",t[t.ForceBuild=17]="ForceBuild",t))(BXe||{});function o7e(t){return Wh(t,".json")?t:Ps(t,"tsconfig.json")}var SBt=new Date(-864e13);function jXe(t,n,a){let u=t.get(n),m;return u||(m=a(),t.set(n,m)),u||m}function bte(t,n){return jXe(t,n,()=>new Map)}function p9(t){return t.now?t.now():new Date}function pF(t){return!!t&&!!t.buildOrder}function nJ(t){return pF(t)?t.buildOrder:t}function Zge(t,n){return a=>{let u=n?`[${fF(fte(t),"\x1B[90m")}] `:`${fte(t)} - `;u+=`${wN(a.messageText,t.newLine)}${t.newLine+t.newLine}`,t.write(u)}}function s7e(t,n,a,u){let m=tEe(t,n);return m.getModifiedTime=t.getModifiedTime?g=>t.getModifiedTime(g):FT,m.setModifiedTime=t.setModifiedTime?(g,v)=>t.setModifiedTime(g,v):Za,m.deleteFile=t.deleteFile?g=>t.deleteFile(g):Za,m.reportDiagnostic=a||_9(t),m.reportSolutionBuilderStatus=u||Zge(t),m.now=wu(t,t.now),m}function rEe(t=hy,n,a,u,m){let g=s7e(t,n,a,u);return g.reportErrorSummary=m,g}function WXe(t=hy,n,a,u,m){let g=s7e(t,n,a,u),v=Mce(t,m);return PS(g,v),g}function zXe(t){let n={};return rTe.forEach(a=>{bf(t,a.name)&&(n[a.name]=t[a.name])}),n.tscBuild=!0,n}function oEe(t,n,a){return Q0t(!1,t,n,a)}function VXe(t,n,a,u){return Q0t(!0,t,n,a,u)}function dI(t,n,a,u,m){let g=n,v=n,x=zXe(u),k=gte(g,()=>U.projectCompilerOptions);Kge(k),k.getParsedCommandLine=$=>TM(U,$,cP(U,$)),k.resolveModuleNameLiterals=wu(g,g.resolveModuleNameLiterals),k.resolveTypeReferenceDirectiveReferences=wu(g,g.resolveTypeReferenceDirectiveReferences),k.resolveLibrary=wu(g,g.resolveLibrary),k.resolveModuleNames=wu(g,g.resolveModuleNames),k.resolveTypeReferenceDirectives=wu(g,g.resolveTypeReferenceDirectives),k.getModuleResolutionCache=wu(g,g.getModuleResolutionCache);let T,I;!k.resolveModuleNameLiterals&&!k.resolveModuleNames&&(T=jU(k.getCurrentDirectory(),k.getCanonicalFileName),k.resolveModuleNameLiterals=($,K,re,X,ne)=>kM($,K,re,X,ne,g,T,Ige),k.getModuleResolutionCache=()=>T),!k.resolveTypeReferenceDirectiveReferences&&!k.resolveTypeReferenceDirectives&&(I=Bee(k.getCurrentDirectory(),k.getCanonicalFileName,void 0,T?.getPackageJsonInfoCache(),T?.optionsToRedirectsKey),k.resolveTypeReferenceDirectiveReferences=($,K,re,X,ne)=>kM($,K,re,X,ne,g,I,ote));let A;k.resolveLibrary||(A=jU(k.getCurrentDirectory(),k.getCanonicalFileName,void 0,T?.getPackageJsonInfoCache()),k.resolveLibrary=($,K,re)=>DTe($,K,re,g,A)),k.getBuildInfo=($,K)=>GXe(U,$,cP(U,K),void 0);let{watchFile:M,watchDirectory:R,writeLog:H}=hte(v,u),U={host:g,hostWithWatch:v,parseConfigFileHost:z2e(g),write:wu(g,g.trace),options:u,baseCompilerOptions:x,rootNames:a,baseWatchOptions:m,resolvedConfigFilePaths:new Map,configFileCache:new Map,projectStatus:new Map,extendedConfigCache:new Map,buildInfoCache:new Map,outputTimeStamps:new Map,builderPrograms:new Map,diagnostics:new Map,projectPendingBuild:new Map,projectErrorsReported:new Map,compilerHost:k,moduleResolutionCache:T,typeReferenceDirectiveResolutionCache:I,libraryResolutionCache:A,buildOrder:void 0,readFileWithCache:$=>g.readFile($),projectCompilerOptions:x,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:t,watch:t,allWatchedWildcardDirectories:new Map,allWatchedInputFiles:new Map,allWatchedConfigFiles:new Map,allWatchedExtendedConfigFiles:new Map,allWatchedPackageJsonFiles:new Map,filesWatched:new Map,lastCachedPackageJsonLookups:new Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:M,watchDirectory:R,writeLog:H};return U}function uv(t,n){return dd(n,t.compilerHost.getCurrentDirectory(),t.compilerHost.getCanonicalFileName)}function cP(t,n){let{resolvedConfigFilePaths:a}=t,u=a.get(n);if(u!==void 0)return u;let m=uv(t,n);return a.set(n,m),m}function H0t(t){return!!t.options}function Ste(t,n){let a=t.configFileCache.get(n);return a&&H0t(a)?a:void 0}function TM(t,n,a){let{configFileCache:u}=t,m=u.get(a);if(m)return H0t(m)?m:void 0;Lm("SolutionBuilder::beforeConfigFileParsing");let g,{parseConfigFileHost:v,baseCompilerOptions:x,baseWatchOptions:k,extendedConfigCache:T,host:I}=t,A;return I.getParsedCommandLine?(A=I.getParsedCommandLine(n),A||(g=Th(j.File_0_not_found,n))):(v.onUnRecoverableConfigFileDiagnostic=M=>g=M,A=hK(n,x,v,T,k),v.onUnRecoverableConfigFileDiagnostic=Za),u.set(a,A||g),Lm("SolutionBuilder::afterConfigFileParsing"),Ub("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),A}function Wce(t,n){return o7e(w7(t.compilerHost.getCurrentDirectory(),n))}function e0e(t,n){let a=new Map,u=new Map,m=[],g,v;for(let k of n)x(k);return v?{buildOrder:g||F,circularDiagnostics:v}:g||F;function x(k,T){let I=cP(t,k);if(u.has(I))return;if(a.has(I)){T||(v||(v=[])).push(Th(j.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,m.join(`\r +`)));return}a.set(I,!0),m.push(k);let A=TM(t,k,I);if(A&&A.projectReferences)for(let M of A.projectReferences){let R=Wce(t,M.path);x(R,T||M.circular)}m.pop(),u.set(I,!0),(g||(g=[])).push(k)}}function sEe(t){return t.buildOrder||U0t(t)}function U0t(t){let n=e0e(t,t.rootNames.map(m=>Wce(t,m)));t.resolvedConfigFilePaths.clear();let a=new Set(nJ(n).map(m=>cP(t,m))),u={onDeleteValue:Za};return pN(t.configFileCache,a,u),pN(t.projectStatus,a,u),pN(t.builderPrograms,a,u),pN(t.diagnostics,a,u),pN(t.projectPendingBuild,a,u),pN(t.projectErrorsReported,a,u),pN(t.buildInfoCache,a,u),pN(t.outputTimeStamps,a,u),pN(t.lastCachedPackageJsonLookups,a,u),t.watch&&(pN(t.allWatchedConfigFiles,a,{onDeleteValue:GT}),t.allWatchedExtendedConfigFiles.forEach(m=>{m.projects.forEach(g=>{a.has(g)||m.projects.delete(g)}),m.close()}),pN(t.allWatchedWildcardDirectories,a,{onDeleteValue:m=>m.forEach(Dk)}),pN(t.allWatchedInputFiles,a,{onDeleteValue:m=>m.forEach(GT)}),pN(t.allWatchedPackageJsonFiles,a,{onDeleteValue:m=>m.forEach(GT)})),t.buildOrder=n}function HXe(t,n,a){let u=n&&Wce(t,n),m=sEe(t);if(pF(m))return m;if(u){let v=cP(t,u);if(_n(m,k=>cP(t,k)===v)===-1)return}let g=u?e0e(t,[u]):m;return Se.assert(!pF(g)),Se.assert(!a||u!==void 0),Se.assert(!a||g[g.length-1]===u),a?g.slice(0,g.length-1):g}function a7e(t){t.cache&&c7e(t);let{compilerHost:n,host:a}=t,u=t.readFileWithCache,m=n.getSourceFile,{originalReadFile:g,originalFileExists:v,originalDirectoryExists:x,originalCreateDirectory:k,originalWriteFile:T,getSourceFileWithCache:I,readFileWithCache:A}=u9(a,M=>uv(t,M),(...M)=>m.call(n,...M));t.readFileWithCache=A,n.getSourceFile=I,t.cache={originalReadFile:g,originalFileExists:v,originalDirectoryExists:x,originalCreateDirectory:k,originalWriteFile:T,originalReadFileWithCache:u,originalGetSourceFile:m}}function c7e(t){if(!t.cache)return;let{cache:n,host:a,compilerHost:u,extendedConfigCache:m,moduleResolutionCache:g,typeReferenceDirectiveResolutionCache:v,libraryResolutionCache:x}=t;a.readFile=n.originalReadFile,a.fileExists=n.originalFileExists,a.directoryExists=n.originalDirectoryExists,a.createDirectory=n.originalCreateDirectory,a.writeFile=n.originalWriteFile,u.getSourceFile=n.originalGetSourceFile,t.readFileWithCache=n.originalReadFileWithCache,m.clear(),g?.clear(),v?.clear(),x?.clear(),t.cache=void 0}function UXe(t,n){t.projectStatus.delete(n),t.diagnostics.delete(n)}function JXe({projectPendingBuild:t},n,a){let u=t.get(n);(u===void 0||ut.projectPendingBuild.set(cP(t,u),0)),n&&n.throwIfCancellationRequested()}var u7e=(t=>(t[t.Build=0]="Build",t[t.UpdateOutputFileStamps=1]="UpdateOutputFileStamps",t))(u7e||{});function J0t(t,n){return t.projectPendingBuild.delete(n),t.diagnostics.has(n)?1:0}function xBt(t,n,a,u,m){let g=!0;return{kind:1,project:n,projectPath:a,buildOrder:m,getCompilerOptions:()=>u.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{QXe(t,u,a),g=!1},done:()=>(g&&QXe(t,u,a),Lm("SolutionBuilder::Timestamps only updates"),J0t(t,a))}}function q0t(t,n,a,u,m,g,v){let x=0,k,T;return{kind:0,project:n,projectPath:a,buildOrder:v,getCompilerOptions:()=>m.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>A(ps),getProgram:()=>A($=>$.getProgramOrUndefined()),getSourceFile:$=>A(K=>K.getSourceFile($)),getSourceFiles:()=>M($=>$.getSourceFiles()),getOptionsDiagnostics:$=>M(K=>K.getOptionsDiagnostics($)),getGlobalDiagnostics:$=>M(K=>K.getGlobalDiagnostics($)),getConfigFileParsingDiagnostics:()=>M($=>$.getConfigFileParsingDiagnostics()),getSyntacticDiagnostics:($,K)=>M(re=>re.getSyntacticDiagnostics($,K)),getAllDependencies:$=>M(K=>K.getAllDependencies($)),getSemanticDiagnostics:($,K)=>M(re=>re.getSemanticDiagnostics($,K)),getSemanticDiagnosticsOfNextAffectedFile:($,K)=>A(re=>re.getSemanticDiagnosticsOfNextAffectedFile&&re.getSemanticDiagnosticsOfNextAffectedFile($,K)),emit:($,K,re,X,ne)=>$||X?A(se=>{var _e,ae;return se.emit($,K,re,X,ne||((ae=(_e=t.host).getCustomTransformers)==null?void 0:ae.call(_e,n)))}):(U(0,re),H(K,re,ne)),done:I};function I($,K,re){return U(3,$,K,re),Lm("SolutionBuilder::Projects built"),J0t(t,a)}function A($){return U(0),k&&$(k)}function M($){return A($)||F}function R(){var $,K,re;if(Se.assert(k===void 0),t.options.dry){Ik(t,j.A_non_dry_build_would_build_project_0,n),T=1,x=2;return}if(t.options.verbose&&Ik(t,j.Building_project_0,n),m.fileNames.length===0){xte(t,a,lO(m)),T=0,x=2;return}let{host:X,compilerHost:ne}=t;if(t.projectCompilerOptions=m.options,($=t.moduleResolutionCache)==null||$.update(m.options),(K=t.typeReferenceDirectiveResolutionCache)==null||K.update(m.options),k=X.createProgram(m.fileNames,m.options,ne,CBt(t,a,m),lO(m),m.projectReferences),t.watch){let se=(re=t.moduleResolutionCache)==null?void 0:re.getPackageJsonInfoCache().getInternalMap();t.lastCachedPackageJsonLookups.set(a,se&&new Set(tc(se.values(),_e=>t.host.realpath&&(CK(_e)||_e.directoryExists)?t.host.realpath(Ps(_e.packageDirectory,"package.json")):Ps(_e.packageDirectory,"package.json")))),t.builderPrograms.set(a,k)}x++}function H($,K,re){var X,ne,se;Se.assertIsDefined(k),Se.assert(x===1);let{host:_e,compilerHost:ae}=t,le=new Map,Ee=k.getCompilerOptions(),xe=_f(Ee),be,Le,{emitResult:fe,diagnostics:we}=jW(k,Ae=>_e.reportDiagnostic(Ae),t.write,void 0,(Ae,Ge,he,Oe,Re,$e)=>{var Ke;let qe=uv(t,Ae);if(le.set(uv(t,Ae),Ae),$e?.buildInfo){Le||(Le=p9(t.host));let _t=(Ke=k.hasChangedEmitSignature)==null?void 0:Ke.call(k),ft=n0e(t,Ae,a);ft?(ft.buildInfo=$e.buildInfo,ft.modifiedTime=Le,_t&&(ft.latestChangedDtsTime=Le)):t.buildInfoCache.set(a,{path:uv(t,Ae),buildInfo:$e.buildInfo,modifiedTime:Le,latestChangedDtsTime:_t?Le:void 0})}let rt=$e?.differsOnlyInMap?KB(t.host,Ae):void 0;($||ae.writeFile)(Ae,Ge,he,Oe,Re,$e),$e?.differsOnlyInMap?t.host.setModifiedTime(Ae,rt):!xe&&t.watch&&(be||(be=i0e(t,a))).set(qe,Le||(Le=p9(t.host)))},K,void 0,re||((ne=(X=t.host).getCustomTransformers)==null?void 0:ne.call(X,n)));return(!Ee.noEmitOnError||!we.length)&&(le.size||g.type!==8)&&G0t(t,m,a,j.Updating_unchanged_output_timestamps_of_project_0,le),t.projectErrorsReported.set(a,!0),T=(se=k.hasChangedEmitSignature)!=null&&se.call(k)?0:2,we.length?(t.diagnostics.set(a,we),t.projectStatus.set(a,{type:0,reason:"it had errors"}),T|=4):(t.diagnostics.delete(a),t.projectStatus.set(a,{type:1,oldestOutputFileName:c0(le.values())??k2e(m,!_e.useCaseSensitiveFileNames())})),$Xe(t,k),x=2,fe}function U($,K,re,X){for(;x<=$&&x<3;){let ne=x;switch(x){case 0:R();break;case 1:H(re,K,X);break;case 2:kBt(t,n,a,u,m,v,Se.checkDefined(T)),x++;break;case 3:default:}Se.assert(x>ne)}}}function qXe(t,n,a){if(!t.projectPendingBuild.size||pF(n))return;let{options:u,projectPendingBuild:m}=t;for(let g=0;g{let R=Se.checkDefined(t.filesWatched.get(x));Se.assert(t0e(R)),R.modifiedTime=M,R.callbacks.forEach(H=>H(I,A,M))},u,m,g,v);t.filesWatched.set(x,{callbacks:[a],watcher:T,modifiedTime:k})}return{close:()=>{let T=Se.checkDefined(t.filesWatched.get(x));Se.assert(t0e(T)),T.callbacks.length===1?(t.filesWatched.delete(x),Dk(T)):N$(T.callbacks,a)}}}function i0e(t,n){if(!t.watch)return;let a=t.outputTimeStamps.get(n);return a||t.outputTimeStamps.set(n,a=new Map),a}function n0e(t,n,a){let u=uv(t,n),m=t.buildInfoCache.get(a);return m?.path===u?m:void 0}function GXe(t,n,a,u){let m=uv(t,n),g=t.buildInfoCache.get(a);if(g!==void 0&&g.path===m)return g.buildInfo||void 0;let v=t.readFileWithCache(n),x=v?l9(n,v):void 0;return t.buildInfoCache.set(a,{path:m,buildInfo:x||!1,modifiedTime:u||PC}),x}function lEe(t,n,a,u){let m=aEe(t,n);if(ane&&(X=we,ne=Ae),_e.add(Ge)}let le;if($?(ae||(ae=$2e($,A,I)),le=Km(ae.roots,(we,Ae)=>_e.has(Ae)?void 0:Ae)):le=ee(Wge(U,A,I),we=>_e.has(we)?void 0:we),le)return{type:10,buildInfoFile:A,inputFile:le};if(!M){let we=vge(n,!I.useCaseSensitiveFileNames()),Ae=i0e(t,a);for(let Ge of we){if(Ge===A)continue;let he=uv(t,Ge),Oe=Ae?.get(he);if(Oe||(Oe=KB(t.host,Ge),Ae?.set(he,Oe)),Oe===PC)return{type:3,missingOutputFileName:Ge};if(OelEe(t,we,K,re));if(be)return be;let Le=t.lastCachedPackageJsonLookups.get(a),fe=Le&&N2(Le,we=>lEe(t,we,K,re));return fe||{type:Ee?2:se?15:1,newestInputFileTime:ne,newestInputFileName:X,oldestOutputFileName:re}}function KXe(t,n,a){return t.buildInfoCache.get(a).path===n.path}function XXe(t,n,a){if(n===void 0)return{type:0,reason:"config file deleted mid-build"};let u=t.projectStatus.get(a);if(u!==void 0)return u;Lm("SolutionBuilder::beforeUpToDateCheck");let m=$0t(t,n,a);return Lm("SolutionBuilder::afterUpToDateCheck"),Ub("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),t.projectStatus.set(a,m),m}function G0t(t,n,a,u,m){if(n.options.noEmit)return;let g,v=s9(n.options),x=_f(n.options);if(v&&x){m?.has(uv(t,v))||(t.options.verbose&&Ik(t,u,n.options.configFilePath),t.host.setModifiedTime(v,g=p9(t.host)),n0e(t,v,a).modifiedTime=g),t.outputTimeStamps.delete(a);return}let{host:k}=t,T=vge(n,!k.useCaseSensitiveFileNames()),I=i0e(t,a),A=I?new Set:void 0;if(!m||T.length!==m.size){let M=!!t.options.verbose;for(let R of T){let H=uv(t,R);m?.has(H)||(M&&(M=!1,Ik(t,u,n.options.configFilePath)),k.setModifiedTime(R,g||(g=p9(t.host))),R===v?n0e(t,v,a).modifiedTime=g:I&&(I.set(H,g),A.add(H)))}}I?.forEach((M,R)=>{!m?.has(R)&&!A.has(R)&&I.delete(R)})}function YXe(t,n,a){if(!n.composite)return;let u=Se.checkDefined(t.buildInfoCache.get(a));if(u.latestChangedDtsTime!==void 0)return u.latestChangedDtsTime||void 0;let m=u.buildInfo&&ute(u.buildInfo)&&u.buildInfo.latestChangedDtsFile?t.host.getModifiedTime(tu(u.buildInfo.latestChangedDtsFile,Cc(u.path))):void 0;return u.latestChangedDtsTime=m||!1,m}function QXe(t,n,a){if(t.options.dry)return Ik(t,j.A_non_dry_build_would_update_timestamps_for_output_of_project_0,n.options.configFilePath);G0t(t,n,a,j.Updating_output_timestamps_of_project_0),t.projectStatus.set(a,{type:1,oldestOutputFileName:k2e(n,!t.host.useCaseSensitiveFileNames())})}function kBt(t,n,a,u,m,g,v){if(!(t.options.stopBuildOnErrors&&v&4)&&m.options.composite)for(let x=u+1;xt.diagnostics.has(cP(t,T)))?k?2:1:0}function eYe(t,n,a){Lm("SolutionBuilder::beforeClean");let u=TBt(t,n,a);return Lm("SolutionBuilder::afterClean"),Ub("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),u}function TBt(t,n,a){let u=HXe(t,n,a);if(!u)return 3;if(pF(u))return YC(t,u.circularDiagnostics),4;let{options:m,host:g}=t,v=m.dry?[]:void 0;for(let x of u){let k=cP(t,x),T=TM(t,x,k);if(T===void 0){r0e(t,k);continue}let I=vge(T,!g.useCaseSensitiveFileNames());if(!I.length)continue;let A=new Set(T.fileNames.map(M=>uv(t,M)));for(let M of I)A.has(uv(t,M))||g.fileExists(M)&&(v?v.push(M):(g.deleteFile(M),_7e(t,k,0)))}return v&&Ik(t,j.A_non_dry_build_would_delete_the_following_files_Colon_0,v.map(x=>`\r + * ${x}`).join("")),0}function _7e(t,n,a){t.host.getParsedCommandLine&&a===1&&(a=2),a===2&&(t.configFileCache.delete(n),t.buildOrder=void 0),t.needsSummary=!0,UXe(t,n),JXe(t,n,a),a7e(t)}function uEe(t,n,a){t.reportFileChangeDetected=!0,_7e(t,n,a),p7e(t,250,!0)}function p7e(t,n,a){let{hostWithWatch:u}=t;!u.setTimeout||!u.clearTimeout||(t.timerToBuildInvalidatedProject&&u.clearTimeout(t.timerToBuildInvalidatedProject),t.timerToBuildInvalidatedProject=u.setTimeout(dEe,n,"timerToBuildInvalidatedProject",t,a))}function dEe(t,n,a){Lm("SolutionBuilder::beforeBuild");let u=K0t(n,a);Lm("SolutionBuilder::afterBuild"),Ub("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),u&&Cte(n,u)}function K0t(t,n){t.timerToBuildInvalidatedProject=void 0,t.reportFileChangeDetected&&(t.reportFileChangeDetected=!1,t.projectErrorsReported.clear(),gb(t,j.File_change_detected_Starting_incremental_compilation));let a=0,u=sEe(t),m=f7e(t,u,!1);if(m)for(m.done(),a++;t.projectPendingBuild.size;){if(t.timerToBuildInvalidatedProject)return;let g=qXe(t,u,!1);if(!g)break;if(g.kind!==1&&(n||a===5)){p7e(t,100,!1);return}d7e(t,g,u).done(),g.kind!==1&&a++}return c7e(t),u}function X0t(t,n,a,u){!t.watch||t.allWatchedConfigFiles.has(a)||t.allWatchedConfigFiles.set(a,cEe(t,n,()=>uEe(t,a,2),2e3,u?.watchOptions,Ty.ConfigFile,n))}function Y0t(t,n,a){D2e(n,a?.options,t.allWatchedExtendedConfigFiles,(u,m)=>cEe(t,u,()=>{var g;return(g=t.allWatchedExtendedConfigFiles.get(m))==null?void 0:g.projects.forEach(v=>uEe(t,v,2))},2e3,a?.watchOptions,Ty.ExtendedConfigFile),u=>uv(t,u))}function tYe(t,n,a,u){t.watch&&Sge(bte(t.allWatchedWildcardDirectories,a),u.wildcardDirectories,(m,g)=>t.watchDirectory(m,v=>{var x;xge({watchedDirPath:uv(t,m),fileOrDirectory:v,fileOrDirectoryPath:uv(t,v),configFileName:n,currentDirectory:t.compilerHost.getCurrentDirectory(),options:u.options,program:t.builderPrograms.get(a)||((x=Ste(t,a))==null?void 0:x.fileNames),useCaseSensitiveFileNames:t.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:k=>t.writeLog(k),toPath:k=>uv(t,k)})||uEe(t,a,1)},g,u?.watchOptions,Ty.WildcardDirectory,n))}function m7e(t,n,a,u){t.watch&&yk(bte(t.allWatchedInputFiles,a),new Set(u.fileNames),{createNewValue:m=>cEe(t,m,()=>uEe(t,a,0),250,u?.watchOptions,Ty.SourceFile,n),onDeleteValue:GT})}function h7e(t,n,a,u){!t.watch||!t.lastCachedPackageJsonLookups||yk(bte(t.allWatchedPackageJsonFiles,a),t.lastCachedPackageJsonLookups.get(a),{createNewValue:m=>cEe(t,m,()=>uEe(t,a,0),2e3,u?.watchOptions,Ty.PackageJson,n),onDeleteValue:GT})}function iYe(t,n){if(t.watchAllProjectsPending){Lm("SolutionBuilder::beforeWatcherCreation"),t.watchAllProjectsPending=!1;for(let a of nJ(n)){let u=cP(t,a),m=TM(t,a,u);X0t(t,a,u,m),Y0t(t,u,m),m&&(tYe(t,a,u,m),m7e(t,a,u,m),h7e(t,a,u,m))}Lm("SolutionBuilder::afterWatcherCreation"),Ub("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}function nYe(t){Zb(t.allWatchedConfigFiles,GT),Zb(t.allWatchedExtendedConfigFiles,Dk),Zb(t.allWatchedWildcardDirectories,n=>Zb(n,Dk)),Zb(t.allWatchedInputFiles,n=>Zb(n,GT)),Zb(t.allWatchedPackageJsonFiles,n=>Zb(n,GT))}function Q0t(t,n,a,u,m){let g=dI(t,n,a,u,m);return{build:(v,x,k,T)=>ZXe(g,v,x,k,T),clean:v=>eYe(g,v),buildReferences:(v,x,k,T)=>ZXe(g,v,x,k,T,!0),cleanReferences:v=>eYe(g,v,!0),getNextInvalidatedProject:v=>(l7e(g,v),f7e(g,sEe(g),!1)),getBuildOrder:()=>sEe(g),getUpToDateStatusOfProject:v=>{let x=Wce(g,v),k=cP(g,x);return XXe(g,TM(g,x,k),k)},invalidateProject:(v,x)=>_7e(g,v,x||0),close:()=>nYe(g)}}function hb(t,n){return lH(n,t.compilerHost.getCurrentDirectory(),t.compilerHost.getCanonicalFileName)}function Ik(t,n,...a){t.host.reportSolutionBuilderStatus(Th(n,...a))}function gb(t,n,...a){var u,m;(m=(u=t.hostWithWatch).onWatchStatusChange)==null||m.call(u,Th(n,...a),t.host.getNewLine(),t.baseCompilerOptions)}function YC({host:t},n){n.forEach(a=>t.reportDiagnostic(a))}function xte(t,n,a){YC(t,a),t.projectErrorsReported.set(n,!0),a.length&&t.diagnostics.set(n,a)}function r0e(t,n){xte(t,n,[t.configFileCache.get(n)])}function Cte(t,n){if(!t.needsSummary)return;t.needsSummary=!1;let a=t.watch||!!t.host.reportErrorSummary,{diagnostics:u}=t,m=0,g=[];pF(n)?(rYe(t,n.buildOrder),YC(t,n.circularDiagnostics),a&&(m+=pte(n.circularDiagnostics)),a&&(g=[...g,...$ge(n.circularDiagnostics)])):(n.forEach(v=>{let x=cP(t,v);t.projectErrorsReported.has(x)||YC(t,u.get(x)||F)}),a&&u.forEach(v=>m+=pte(v)),a&&u.forEach(v=>[...g,...$ge(v)])),t.watch?gb(t,Ace(m),m):t.host.reportErrorSummary&&t.host.reportErrorSummary(m,g)}function rYe(t,n){t.options.verbose&&Ik(t,j.Projects_in_this_build_Colon_0,n.map(a=>`\r + * `+hb(t,a)).join(""))}function Z0t(t,n,a){switch(a.type){case 5:return Ik(t,j.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,hb(t,n),hb(t,a.outOfDateOutputFileName),hb(t,a.newerInputFileName));case 6:return Ik(t,j.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,hb(t,n),hb(t,a.outOfDateOutputFileName),hb(t,a.newerProjectName));case 3:return Ik(t,j.Project_0_is_out_of_date_because_output_file_1_does_not_exist,hb(t,n),hb(t,a.missingOutputFileName));case 4:return Ik(t,j.Project_0_is_out_of_date_because_there_was_error_reading_file_1,hb(t,n),hb(t,a.fileName));case 7:return Ik(t,j.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,hb(t,n),hb(t,a.buildInfoFile));case 8:return Ik(t,j.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors,hb(t,n),hb(t,a.buildInfoFile));case 9:return Ik(t,j.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,hb(t,n),hb(t,a.buildInfoFile));case 10:return Ik(t,j.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,hb(t,n),hb(t,a.buildInfoFile),hb(t,a.inputFile));case 1:if(a.newestInputFileTime!==void 0)return Ik(t,j.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,hb(t,n),hb(t,a.newestInputFileName||""),hb(t,a.oldestOutputFileName||""));break;case 2:return Ik(t,j.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,hb(t,n));case 15:return Ik(t,j.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,hb(t,n));case 11:return Ik(t,j.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,hb(t,n),hb(t,a.upstreamProjectName));case 12:return Ik(t,a.upstreamProjectBlocked?j.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:j.Project_0_can_t_be_built_because_its_dependency_1_has_errors,hb(t,n),hb(t,a.upstreamProjectName));case 0:return Ik(t,j.Project_0_is_out_of_date_because_1,hb(t,n),a.reason);case 14:return Ik(t,j.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,hb(t,n),a.version,L);case 17:return Ik(t,j.Project_0_is_being_forcibly_rebuilt,hb(t,n));case 16:case 13:break;default:}}function fEe(t,n,a){t.options.verbose&&Z0t(t,n,a)}var oYe=(t=>(t[t.time=0]="time",t[t.count=1]="count",t[t.memory=2]="memory",t))(oYe||{});function g7e(t){let n=sYe();return ee(t.getSourceFiles(),a=>{let u=EBt(t,a),m=P6(a).length;n.set(u,n.get(u)+m)}),n}function sYe(){let t=new Map;return t.set("Library",0),t.set("Definitions",0),t.set("TypeScript",0),t.set("JavaScript",0),t.set("JSON",0),t.set("Other",0),t}function EBt(t,n){if(t.isSourceFileDefaultLibrary(n))return"Library";if(n.isDeclarationFile)return"Definitions";let a=n.path;return gg(a,Yse)?"TypeScript":gg(a,P5)?"JavaScript":Wh(a,".json")?"JSON":"Other"}function y7e(t,n,a){return kte(t,a)?_9(t,!0):n}function eyt(t){return!!t.writeOutputIsTTY&&t.writeOutputIsTTY()&&!t.getEnvironmentVariable("NO_COLOR")}function kte(t,n){return!n||typeof n.pretty>"u"?eyt(t):n.pretty}function aYe(t){return t.options.all?du(zS,(n,a)=>RQ(n.name,a.name)):Qn(zS.slice(),n=>!!n.showInSimplifiedHelpView)}function wte(t){t.write(bx(j.Version_0,L)+t.newLine)}function _Ee(t){if(!eyt(t))return{bold:I=>I,blue:I=>I,blueBackground:I=>I,brightWhite:I=>I};function a(I){return`\x1B[1m${I}\x1B[22m`}let u=t.getEnvironmentVariable("OS")&&t.getEnvironmentVariable("OS").toLowerCase().includes("windows"),m=t.getEnvironmentVariable("WT_SESSION"),g=t.getEnvironmentVariable("TERM_PROGRAM")&&t.getEnvironmentVariable("TERM_PROGRAM")==="vscode";function v(I){return u&&!m&&!g?T(I):`\x1B[94m${I}\x1B[39m`}let x=t.getEnvironmentVariable("COLORTERM")==="truecolor"||t.getEnvironmentVariable("TERM")==="xterm-256color";function k(I){return x?`\x1B[48;5;68m${I}\x1B[39;49m`:`\x1B[44m${I}\x1B[39;49m`}function T(I){return`\x1B[97m${I}\x1B[39m`}return{bold:a,blue:v,brightWhite:T,blueBackground:k}}function pEe(t){return`--${t.name}${t.shortName?`, -${t.shortName}`:""}`}function v7e(t,n,a,u){var m;let g=[],v=_Ee(t),x=pEe(n),k=H(n),T=typeof n.defaultValueDescription=="object"?bx(n.defaultValueDescription):A(n.defaultValueDescription,n.type==="list"||n.type==="listOrElement"?n.element.type:n.type),I=((m=t.getWidthOfTerminal)==null?void 0:m.call(t))??0;if(I>=80){let U="";n.description&&(U=bx(n.description)),g.push(...R(x,U,a,u,I,!0),t.newLine),M(k,n)&&(k&&g.push(...R(k.valueType,k.possibleValues,a,u,I,!1),t.newLine),T&&g.push(...R(bx(j.default_Colon),T,a,u,I,!1),t.newLine)),g.push(t.newLine)}else{if(g.push(v.blue(x),t.newLine),n.description){let U=bx(n.description);g.push(U)}if(g.push(t.newLine),M(k,n)){if(k&&g.push(`${k.valueType} ${k.possibleValues}`),T){k&&g.push(t.newLine);let U=bx(j.default_Colon);g.push(`${U} ${T}`)}g.push(t.newLine)}g.push(t.newLine)}return g;function A(U,$){return U!==void 0&&typeof $=="object"?tc($.entries()).filter(([,K])=>K===U).map(([K])=>K).join("/"):String(U)}function M(U,$){let K=["string"],re=[void 0,"false","n/a"],X=$.defaultValueDescription;return!($.category===j.Command_line_Options||dr(K,U?.possibleValues)&&dr(re,X))}function R(U,$,K,re,X,ne){let se=[],_e=!0,ae=$,le=X-re;for(;ae.length>0;){let Ee="";_e?(Ee=U.padStart(K),Ee=Ee.padEnd(re),Ee=ne?v.blue(Ee):Ee):Ee="".padStart(re);let xe=ae.substr(0,le);ae=ae.slice(le),se.push(`${Ee}${xe}`),_e=!1}return se}function H(U){if(U.type==="object")return;return{valueType:$(U),possibleValues:K(U)};function $(re){switch(Se.assert(re.type!=="listOrElement"),re.type){case"string":case"number":case"boolean":return bx(j.type_Colon);case"list":return bx(j.one_or_more_Colon);default:return bx(j.one_of_Colon)}}function K(re){let X;switch(re.type){case"string":case"number":case"boolean":X=re.type;break;case"list":case"listOrElement":X=K(re.element);break;case"object":X="";break;default:let ne={};return re.type.forEach((se,_e)=>{var ae;(ae=re.deprecatedKeys)!=null&&ae.has(_e)||(ne[se]||(ne[se]=[])).push(_e)}),Object.entries(ne).map(([,se])=>se.join("/")).join(", ")}return X}}}function cYe(t,n){let a=0;for(let v of n){let x=pEe(v).length;a=a>x?a:x}let u=a+2,m=u+2,g=[];for(let v of n){let x=v7e(t,v,u,m);g=[...g,...x]}return g[g.length-2]!==t.newLine&&g.push(t.newLine),g}function o0e(t,n,a,u,m,g){let v=[];if(v.push(_Ee(t).bold(n)+t.newLine+t.newLine),m&&v.push(m+t.newLine+t.newLine),!u)return v=[...v,...cYe(t,a)],g&&v.push(g+t.newLine+t.newLine),v;let x=new Map;for(let k of a){if(!k.category)continue;let T=bx(k.category),I=x.get(T)??[];I.push(k),x.set(T,I)}return x.forEach((k,T)=>{v.push(`### ${T}${t.newLine}${t.newLine}`),v=[...v,...cYe(t,k)]}),g&&v.push(g+t.newLine+t.newLine),v}function tyt(t,n){let a=_Ee(t),u=[...b7e(t,`${bx(j.tsc_Colon_The_TypeScript_Compiler)} - ${bx(j.Version_0,L)}`)];u.push(a.bold(bx(j.COMMON_COMMANDS))+t.newLine+t.newLine),v("tsc",j.Compiles_the_current_project_tsconfig_json_in_the_working_directory),v("tsc app.ts util.ts",j.Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options),v("tsc -b",j.Build_a_composite_project_in_the_working_directory),v("tsc --init",j.Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory),v("tsc -p ./path/to/tsconfig.json",j.Compiles_the_TypeScript_project_located_at_the_specified_path),v("tsc --help --all",j.An_expanded_version_of_this_information_showing_all_possible_compiler_options),v(["tsc --noEmit","tsc --target esnext"],j.Compiles_the_current_project_with_additional_settings);let m=n.filter(x=>x.isCommandLineOnly||x.category===j.Command_line_Options),g=n.filter(x=>!dr(m,x));u=[...u,...o0e(t,bx(j.COMMAND_LINE_FLAGS),m,!1,void 0,void 0),...o0e(t,bx(j.COMMON_COMPILER_OPTIONS),g,!1,void 0,sU(j.You_can_learn_about_all_of_the_compiler_options_at_0,"https://aka.ms/tsc"))];for(let x of u)t.write(x);function v(x,k){let T=typeof x=="string"?[x]:x;for(let I of T)u.push(" "+a.blue(I)+t.newLine);u.push(" "+bx(k)+t.newLine+t.newLine)}}function s0e(t,n,a,u){let m=[...b7e(t,`${bx(j.tsc_Colon_The_TypeScript_Compiler)} - ${bx(j.Version_0,L)}`)];m=[...m,...o0e(t,bx(j.ALL_COMPILER_OPTIONS),n,!0,void 0,sU(j.You_can_learn_about_all_of_the_compiler_options_at_0,"https://aka.ms/tsc"))],m=[...m,...o0e(t,bx(j.WATCH_OPTIONS),u,!1,bx(j.Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon))],m=[...m,...o0e(t,bx(j.BUILD_OPTIONS),a,!1,sU(j.Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0,"https://aka.ms/tsc-composite-builds"))];for(let g of m)t.write(g)}function iyt(t,n){let a=[...b7e(t,`${bx(j.tsc_Colon_The_TypeScript_Compiler)} - ${bx(j.Version_0,L)}`)];a=[...a,...o0e(t,bx(j.BUILD_OPTIONS),n,!1,sU(j.Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0,"https://aka.ms/tsc-composite-builds"))];for(let u of a)t.write(u)}function b7e(t,n){var a;let u=_Ee(t),m=[],g=((a=t.getWidthOfTerminal)==null?void 0:a.call(t))??0,v=5,x=u.blueBackground("".padStart(v)),k=u.blueBackground(u.brightWhite("TS ".padStart(v)));if(g>=n.length+v){let I=(g>120?120:g)-v;m.push(n.padEnd(I)+x+t.newLine),m.push("".padStart(I)+k+t.newLine)}else m.push(n+t.newLine),m.push(t.newLine);return m}function lYe(t,n){n.options.all?s0e(t,aYe(n),q2,mK):tyt(t,aYe(n))}function mEe(t,n,a){let u=_9(t);if(a.options.build)return u(Th(j.Option_build_must_be_the_first_command_line_argument)),t.exit(1);let m;if(a.options.locale&&y3(a.options.locale,t,a.errors),a.errors.length>0)return a.errors.forEach(u),t.exit(1);if(a.options.init)return syt(t,u,a.options,a.fileNames),t.exit(0);if(a.options.version)return wte(t),t.exit(0);if(a.options.help||a.options.all)return lYe(t,a),t.exit(0);if(a.options.watch&&a.options.listFilesOnly)return u(Th(j.Options_0_and_1_cannot_be_combined,"watch","listFilesOnly")),t.exit(1);if(a.options.project){if(a.fileNames.length!==0)return u(Th(j.Option_project_cannot_be_mixed_with_source_files_on_a_command_line)),t.exit(1);let x=Kd(a.options.project);if(!x||t.directoryExists(x)){if(m=Ps(x,"tsconfig.json"),!t.fileExists(m))return u(Th(j.Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0,a.options.project)),t.exit(1)}else if(m=x,!t.fileExists(m))return u(Th(j.The_specified_path_does_not_exist_Colon_0,a.options.project)),t.exit(1)}else if(a.fileNames.length===0){let x=Kd(t.getCurrentDirectory());m=vce(x,k=>t.fileExists(k))}if(a.fileNames.length===0&&!m)return a.options.showConfig?u(Th(j.Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0,Kd(t.getCurrentDirectory()))):(wte(t),lYe(t,a)),t.exit(1);let g=t.getCurrentDirectory(),v=Oee(a.options,x=>tu(x,g));if(m){let x=new Map,k=Nce(m,v,x,a.watchOptions,t,u);if(v.showConfig)return k.errors.length!==0?(u=y7e(t,u,k.options),k.errors.forEach(u),t.exit(1)):(t.write(JSON.stringify(hTe(k,m,t),null,4)+t.newLine),t.exit(0));if(u=y7e(t,u,k.options),AG(k.options))return hEe(t,u)?void 0:nyt(t,n,u,k,v,a.watchOptions,x);_f(k.options)?C7e(t,n,u,k):dYe(t,n,u,k)}else{if(v.showConfig)return t.write(JSON.stringify(hTe(a,Ps(g,"tsconfig.json"),t),null,4)+t.newLine),t.exit(0);if(u=y7e(t,u,v),AG(v))return hEe(t,u)?void 0:mYe(t,n,u,a.fileNames,v,a.watchOptions);_f(v)?C7e(t,n,u,{...a,options:v}):dYe(t,n,u,{...a,options:v})}}function S7e(t){if(t.length>0&&t[0].charCodeAt(0)===45){let n=t[0].slice(t[0].charCodeAt(1)===45?2:1).toLowerCase();return n==="build"||n==="b"}return!1}function uYe(t,n,a){if(S7e(a)){let{buildOptions:m,watchOptions:g,projects:v,errors:x}=x8e(a.slice(1));if(m.generateCpuProfile&&t.enableCPUProfiler)t.enableCPUProfiler(m.generateCpuProfile,()=>x7e(t,n,m,g,v,x));else return x7e(t,n,m,g,v,x)}let u=LU(a,m=>t.readFile(m));if(u.options.generateCpuProfile&&t.enableCPUProfiler)t.enableCPUProfiler(u.options.generateCpuProfile,()=>mEe(t,n,u));else return mEe(t,n,u)}function hEe(t,n){return!t.watchFile||!t.watchDirectory?(n(Th(j.The_current_host_does_not_support_the_0_option,"--watch")),t.exit(1),!0):!1}var a0e=2;function x7e(t,n,a,u,m,g){let v=y7e(t,_9(t),a);if(a.locale&&y3(a.locale,t,g),g.length>0)return g.forEach(v),t.exit(1);if(a.help||m.length===0)return wte(t),iyt(t,Iee),t.exit(0);if(!t.getModifiedTime||!t.setModifiedTime||a.clean&&!t.deleteFile)return v(Th(j.The_current_host_does_not_support_the_0_option,"--build")),t.exit(1);if(a.watch){if(hEe(t,v))return;let A=WXe(t,void 0,v,Zge(t,kte(t,a)),k7e(t,a));A.jsDocParsingMode=a0e;let M=ryt(t,a);fYe(t,n,A,M);let R=A.onWatchStatusChange,H=!1;A.onWatchStatusChange=($,K,re,X)=>{R?.($,K,re,X),H&&($.code===j.Found_0_errors_Watching_for_file_changes.code||$.code===j.Found_1_error_Watching_for_file_changes.code)&&w7e(U,M)};let U=VXe(A,m,a,u);return U.build(),w7e(U,M),H=!0,U}let x=rEe(t,void 0,v,Zge(t,kte(t,a)),zce(t,a));x.jsDocParsingMode=a0e;let k=ryt(t,a);fYe(t,n,x,k);let T=oEe(x,m,a),I=a.clean?T.clean():T.build();return w7e(T,k),q_e(),t.exit(I)}function zce(t,n){return kte(t,n)?(a,u)=>t.write(Gge(a,u,t.newLine,t)):void 0}function dYe(t,n,a,u){let{fileNames:m,options:g,projectReferences:v}=u,x=rte(g,void 0,t);x.jsDocParsingMode=a0e;let k=x.getCurrentDirectory(),T=U0(x.useCaseSensitiveFileNames());u9(x,R=>dd(R,k,T)),E7e(t,g,!1);let I={rootNames:m,options:g,projectReferences:v,host:x,configFileParsingDiagnostics:lO(u)},A=f9(I),M=tJ(A,a,R=>t.write(R+t.newLine),zce(t,g));return c0e(t,A,void 0),n(A),t.exit(M)}function C7e(t,n,a,u){let{options:m,fileNames:g,projectReferences:v}=u;E7e(t,m,!1);let x=Yge(m,t);x.jsDocParsingMode=a0e;let k=Rce({host:x,system:t,rootNames:g,options:m,configFileParsingDiagnostics:lO(u),projectReferences:v,reportDiagnostic:a,reportErrorSummary:zce(t,m),afterProgramEmitAndDiagnostics:T=>{c0e(t,T.getProgram(),void 0),n(T)}});return t.exit(k)}function fYe(t,n,a,u){_Ye(t,a,!0),a.afterProgramEmitAndDiagnostics=m=>{c0e(t,m.getProgram(),u),n(m)}}function _Ye(t,n,a){let u=n.createProgram;n.createProgram=(m,g,v,x,k,T)=>(Se.assert(m!==void 0||g===void 0&&!!x),g!==void 0&&E7e(t,g,a),u(m,g,v,x,k,T))}function pYe(t,n,a){a.jsDocParsingMode=a0e,_Ye(t,a,!1);let u=a.afterProgramCreate;a.afterProgramCreate=m=>{u(m),c0e(t,m.getProgram(),void 0),n(m)}}function k7e(t,n){return _te(t,kte(t,n))}function nyt(t,n,a,u,m,g,v){let x=Xge({configFileName:u.options.configFilePath,optionsToExtend:m,watchOptionsToExtend:g,system:t,reportDiagnostic:a,reportWatchStatus:k7e(t,u.options)});return pYe(t,n,x),x.configFileParsingResult=u,x.extendedConfigCache=v,jce(x)}function mYe(t,n,a,u,m,g){let v=vte({rootFiles:u,options:m,watchOptions:g,system:t,reportDiagnostic:a,reportWatchStatus:k7e(t,m)});return pYe(t,n,v),jce(v)}function ryt(t,n){if(t===hy&&n.extendedDiagnostics)return oH(),DBt()}function DBt(){let t;return{addAggregateStatistic:n,forEachAggregateStatistics:a,clear:u};function n(m){let g=t?.get(m.name);g?g.type===2?g.value=Math.max(g.value,m.value):g.value+=m.value:(t??(t=new Map)).set(m.name,m)}function a(m){t?.forEach(m)}function u(){t=void 0}}function w7e(t,n){if(!n)return;if(!JQ()){hy.write(j.Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found.message+` +`);return}let a=[];a.push({name:"Projects in scope",value:nJ(t.getBuildOrder()).length,type:1}),u("SolutionBuilder::Projects built"),u("SolutionBuilder::Timestamps only updates"),u("SolutionBuilder::Bundles updated"),n.forEachAggregateStatistics(g=>{g.name=`Aggregate ${g.name}`,a.push(g)}),J_e((g,v)=>{gEe(g)&&a.push({name:`${m(g)} time`,value:v,type:0})}),jh(),oH(),n.clear(),yEe(hy,a);function u(g){let v=u$e(g);v&&a.push({name:m(g),value:v,type:1})}function m(g){return g.replace("SolutionBuilder::","")}}function oyt(t,n){return t===hy&&(n.diagnostics||n.extendedDiagnostics)}function T7e(t,n){return t===hy&&n.generateTrace}function E7e(t,n,a){oyt(t,n)&&oH(t),T7e(t,n)&&L$(a?"build":"project",n.generateTrace,n.configFilePath)}function gEe(t){return xl(t,"SolutionBuilder::")}function c0e(t,n,a){var u;let m=n.getCompilerOptions();T7e(t,m)&&((u=us)==null||u.stopTracing());let g;if(oyt(t,m)){g=[];let T=t.getMemoryUsage?t.getMemoryUsage():-1;x("Files",n.getSourceFiles().length);let I=g7e(n);if(m.extendedDiagnostics)for(let[$,K]of I.entries())x("Lines of "+$,K);else x("Lines",ct(I.values(),($,K)=>$+K,0));x("Identifiers",n.getIdentifierCount()),x("Symbols",n.getSymbolCount()),x("Types",n.getTypeCount()),x("Instantiations",n.getInstantiationCount()),T>=0&&v({name:"Memory used",value:T,type:2},!0);let A=JQ(),M=A?rH("Program"):0,R=A?rH("Bind"):0,H=A?rH("Check"):0,U=A?rH("Emit"):0;if(m.extendedDiagnostics){let $=n.getRelationCacheSizes();x("Assignability cache size",$.assignable),x("Identity cache size",$.identity),x("Subtype cache size",$.subtype),x("Strict subtype cache size",$.strictSubtype),A&&J_e((K,re)=>{gEe(K)||k(`${K} time`,re,!0)})}else A&&(k("I/O read",rH("I/O Read"),!0),k("I/O write",rH("I/O Write"),!0),k("Parse time",M,!0),k("Bind time",R,!0),k("Check time",H,!0),k("Emit time",U,!0));A&&k("Total time",M+R+H+U,!1),yEe(t,g),A?a?(J_e($=>{gEe($)||d$e($)}),HQ($=>{gEe($)||UQ($)})):jh():t.write(j.Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found.message+` +`)}function v(T,I){g.push(T),I&&a?.addAggregateStatistic(T)}function x(T,I){v({name:T,value:I,type:1},!0)}function k(T,I,A){v({name:T,value:I,type:0},A)}}function yEe(t,n){let a=0,u=0;for(let m of n){m.name.length>a&&(a=m.name.length);let g=vEe(m);g.length>u&&(u=g.length)}for(let m of n)t.write(`${m.name}:`.padEnd(a+2)+vEe(m).toString().padStart(u)+t.newLine)}function vEe(t){switch(t.type){case 1:return""+t.value;case 0:return(t.value/1e3).toFixed(2)+"s";case 2:return Math.round(t.value/1e3)+"K";default:Se.assertNever(t.type)}}function syt(t,n,a,u){let m=t.getCurrentDirectory(),g=Kd(Ps(m,"tsconfig.json"));if(t.fileExists(g))n(Th(j.A_tsconfig_json_file_is_already_defined_at_Colon_0,g));else{t.writeFile(g,N8e(a,u,t.newLine));let v=[t.newLine,...b7e(t,"Created a new tsconfig.json with:")];v.push(Lee(a,t.newLine)+t.newLine+t.newLine),v.push("You can learn more at https://aka.ms/tsconfig"+t.newLine);for(let x of v)t.write(x)}}function D7e(t,n){let a=d0(t,"strictNullChecks");return{typeFromExpression:re,serializeTypeOfDeclaration:g,serializeReturnTypeForSignature:v,serializeTypeOfExpression:m};function u(he,Oe){return he!==void 0&&(!Oe||he&&we(he))?!0:void 0}function m(he,Oe,Re,$e){return re(he,Oe,!1,Re,$e)??H(he,Oe)}function g(he,Oe){switch(he.kind){case 171:return u(gm(he));case 169:return A(he,Oe);case 260:return I(he,Oe);case 172:return M(he,Oe);case 208:return R(he,Oe);case 277:return m(he.expression,Oe,void 0,!0);case 211:case 212:case 226:return u(gm(he))||R(he,Oe);case 303:return re(he.initializer,Oe)||R(he,Oe);default:Se.assertNever(he,`Node needs to be an inferrable node, found ${Se.formatSyntaxKind(he.kind)}`)}}function v(he,Oe){switch(he.kind){case 177:return T(he,Oe);case 174:case 262:case 180:case 173:case 179:case 176:case 178:case 181:case 184:case 185:case 218:case 219:case 317:case 323:return Ae(he,Oe);default:Se.assertNever(he,`Node needs to be an inferrable node, found ${Se.formatSyntaxKind(he.kind)}`)}}function x(he){if(he)return he.kind===177?WC(he):he.parameters.length>0?gm(he.parameters[0]):void 0}function k(he,Oe){let Re=x(he);return!Re&&he!==Oe.firstAccessor&&(Re=x(Oe.firstAccessor)),!Re&&Oe.secondAccessor&&he!==Oe.secondAccessor&&(Re=x(Oe.secondAccessor)),Re}function T(he,Oe){let Re=n.getAllAccessorDeclarations(he),$e=k(he,Re);return $e?u($e):Re.getAccessor?Ae(Re.getAccessor,Oe):!1}function I(he,Oe){let Re=gm(he);if(Re)return u(Re);let $e;return he.initializer&&(n.isExpandoFunctionDeclaration(he)||($e=re(he.initializer,Oe,void 0,void 0,kZ(he)))),$e??R(he,Oe)}function A(he,Oe){let Re=he.parent;if(Re.kind===178)return T(Re,Oe);let $e=gm(he),Ke=n.requiresAddingImplicitUndefined(he,Oe.enclosingDeclaration),qe;return $e?qe=u($e,Ke):he.initializer&&Ai(he.name)&&(qe=re(he.initializer,Oe,void 0,Ke)),qe??R(he,Oe)}function M(he,Oe){let Re=gm(he);if(Re)return u(Re);let $e;if(he.initializer){let Ke=mk(he);$e=re(he.initializer,Oe,void 0,void 0,Ke)}return $e??R(he,Oe)}function R(he,Oe){return Oe.tracker.reportInferenceFallback(he),!1}function H(he,Oe){return Oe.tracker.reportInferenceFallback(he),!1}function U(he,Oe){return Oe.tracker.reportInferenceFallback(he),!1}function $(he,Oe,Re){return he.kind===177?Ae(he,Re):(Re.tracker.reportInferenceFallback(he),!1)}function K(he,Oe,Re,$e){return Jx(Oe)?re(he,Re,!0,$e):($e&&!we(Oe)&&Re.tracker.reportInferenceFallback(Oe),u(Oe))}function re(he,Oe,Re=!1,$e=!1,Ke=!1){switch(he.kind){case 217:return iF(he)?K(he.expression,TU(he),Oe,$e):re(he.expression,Oe,Re,$e);case 80:if(n.isUndefinedIdentifierExpression(he))return!0;break;case 106:return!0;case 219:case 218:return X(he,Oe);case 216:case 234:let qe=he;return K(qe.expression,qe.type,Oe,$e);case 224:let rt=he;if(tM(rt)&&(rt.operand.kind===10||rt.operand.kind===9))return fe();break;case 9:return fe();case 228:if(!Re&&!Ke)return!0;break;case 15:case 11:return fe();case 10:return fe();case 112:case 97:return fe();case 209:return se(he,Oe,Re);case 210:return ae(he,Oe,Re);case 231:return H(he,Oe)}}function X(he,Oe){let Re=u(he.type)??Ae(he,Oe),$e=xe(he.typeParameters),Ke=he.parameters.every(qe=>Ee(qe,Oe));return Re&&$e&&Ke}function ne(he,Oe,Re){if(!Re)return Oe.tracker.reportInferenceFallback(he),!1;for(let $e of he.elements)if($e.kind===230)return Oe.tracker.reportInferenceFallback($e),!1;return!0}function se(he,Oe,Re){if(!ne(he,Oe,Re))return!1;let $e=!0;for(let Ke of he.elements)Se.assert(Ke.kind!==230),Ke.kind!==232&&($e=(re(Ke,Oe,Re)??H(Ke,Oe))&&$e);return!0}function _e(he,Oe){let Re=!0;for(let $e of he.properties){if($e.flags&262144){Re=!1;break}if($e.kind===304||$e.kind===305)Oe.tracker.reportInferenceFallback($e),Re=!1;else if($e.name.flags&262144){Re=!1;break}else if($e.name.kind===81)Re=!1;else if($e.name.kind===167){let Ke=$e.name.expression;!tM(Ke,!1)&&!n.isDefinitelyReferenceToGlobalSymbolObject(Ke)&&(Oe.tracker.reportInferenceFallback($e.name),Re=!1)}}return Re}function ae(he,Oe,Re){if(!_e(he,Oe))return!1;let $e=!0;for(let Ke of he.properties){Se.assert(!Q0(Ke)&&!H2(Ke));let qe=Ke.name;switch(Ke.kind){case 174:$e=!!be(Ke,qe,Oe)&&$e;break;case 303:$e=!!le(Ke,qe,Oe,Re)&&$e;break;case 178:case 177:$e=!!Le(Ke,qe,Oe)&&$e;break}}return $e}function le(he,Oe,Re,$e){return re(he.initializer,Re,$e)??R(he,Re)}function Ee(he,Oe){return A(he,Oe)}function xe(he){return he?.every(Oe=>u(Oe.constraint)&&u(Oe.default))??!0}function be(he,Oe,Re){let $e=Ae(he,Re),Ke=xe(he.typeParameters),qe=he.parameters.every(rt=>Ee(rt,Re));return $e&&Ke&&qe}function Le(he,Oe,Re){let $e=n.getAllAccessorDeclarations(he),Ke=$e.getAccessor&&x($e.getAccessor),qe=$e.setAccessor&&x($e.setAccessor);if(Ke!==void 0&&qe!==void 0){let rt=he.parameters.every(_t=>Ee(_t,Re));return oN(he)?rt&&u(Ke):rt}else if($e.firstAccessor===he){let rt=Ke??qe;return rt?u(rt):$(he,$e,Re)}return!1}function fe(){return!0}function we(he){return!a||Gv(he.kind)||he.kind===201||he.kind===184||he.kind===185||he.kind===188||he.kind===189||he.kind===187||he.kind===203||he.kind===197?!0:he.kind===196?we(he.type):he.kind===192||he.kind===193?he.types.every(we):!1}function Ae(he,Oe){let Re,$e=WC(he);return $e&&(Re=u($e)),!Re&&F2(he)&&(Re=Ge(he,Oe)),Re??U(he,Oe)}function Ge(he,Oe){let Re;if(he&&!Mm(he.body)){if(Gg(he)&3)return;let $e=he.body;$e&&qu($e)?Gb($e,Ke=>{if(!Re)Re=Ke.expression;else return Re=void 0,!0}):Re=$e}if(Re)return re(Re,Oe)}}var lP={};d(lP,{NameValidationResult:()=>uyt,discoverTypings:()=>IBt,isTypingUpToDate:()=>Ite,loadSafeList:()=>cyt,loadTypesMap:()=>lyt,nodeCoreModuleList:()=>yYe,nodeCoreModules:()=>vYe,nonRelativeModuleNameForTypingCache:()=>bYe,renderPackageNameValidationFailure:()=>NBt,validatePackageName:()=>fyt});var Vce="action::set",G2="action::invalidate",VK="action::packageInstalled",Tte="event::typesRegistry",Ete="event::beginInstallTypes",Hce="event::endInstallTypes",l0e="event::initializationFailed",HK="action::watchTypingLocations",u0e;(t=>{t.GlobalCacheLocation="--globalTypingsCacheLocation",t.LogFile="--logFile",t.EnableTelemetry="--enableTelemetry",t.TypingSafeListLocation="--typingSafeListLocation",t.TypesMapLocation="--typesMapLocation",t.NpmLocation="--npmLocation",t.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"})(u0e||(u0e={}));function Uce(t){return hy.args.includes(t)}function bEe(t){let n=hy.args.indexOf(t);return n>=0&&n`node:${t}`),yYe=[...DM,...ayt],vYe=new Set(yYe);function bYe(t){return vYe.has(t)?"node":t}function cyt(t,n){let a=Vae(n,u=>t.readFile(u));return new Map(Object.entries(a.config))}function lyt(t,n){var a;let u=Vae(n,m=>t.readFile(m));if((a=u.config)!=null&&a.simpleMap)return new Map(Object.entries(u.config.simpleMap))}function IBt(t,n,a,u,m,g,v,x,k,T){if(!v||!v.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};let I=new Map;a=Dc(a,ne=>{let se=Kd(ne);if(eL(se))return se});let A=[];v.include&&K(v.include,"Explicitly included types");let M=v.exclude||[];if(!T.types){let ne=new Set(a.map(Cc));ne.add(u),ne.forEach(se=>{re(se,"bower.json","bower_components",A),re(se,"package.json","node_modules",A)})}if(v.disableFilenameBasedTypeAcquisition||X(a),x){let ne=la(x.map(bYe),ud,Jg);K(ne,"Inferred typings from unresolved imports")}for(let ne of M)I.delete(ne)&&n&&n(`Typing for ${ne} is in exclude list, will be ignored.`);g.forEach((ne,se)=>{let _e=k.get(se);I.get(se)===!1&&_e!==void 0&&Ite(ne,_e)&&I.set(se,ne.typingLocation)});let R=[],H=[];I.forEach((ne,se)=>{ne?H.push(ne):R.push(se)});let U={cachedTypingPaths:H,newTypingNames:R,filesToWatch:A};return n&&n(`Finished typings discovery:${EM(U)}`),U;function $(ne){I.has(ne)||I.set(ne,!1)}function K(ne,se){n&&n(`${se}: ${JSON.stringify(ne)}`),ee(ne,$)}function re(ne,se,_e,ae){let le=Ps(ne,se),Ee,xe;t.fileExists(le)&&(ae.push(le),Ee=Vae(le,we=>t.readFile(we)).config,xe=za([Ee.dependencies,Ee.devDependencies,Ee.optionalDependencies,Ee.peerDependencies],Zy),K(xe,`Typing names in '${le}' dependencies`));let be=Ps(ne,_e);if(ae.push(be),!t.directoryExists(be))return;let Le=[],fe=xe?xe.map(we=>Ps(be,we,se)):t.readDirectory(be,[".json"],void 0,void 0,3).filter(we=>{if(sg(we)!==se)return!1;let Ae=Uv(Kd(we)),Ge=Ae[Ae.length-3][0]==="@";return Ge&&OS(Ae[Ae.length-4])===_e||!Ge&&OS(Ae[Ae.length-3])===_e});n&&n(`Searching for typing names in ${be}; all files: ${JSON.stringify(fe)}`);for(let we of fe){let Ae=Kd(we),he=Vae(Ae,Re=>t.readFile(Re)).config;if(!he.name)continue;let Oe=he.types||he.typings;if(Oe){let Re=tu(Oe,Cc(Ae));t.fileExists(Re)?(n&&n(` Package '${he.name}' provides its own types.`),I.set(he.name,Re)):n&&n(` Package '${he.name}' provides its own types but they are missing.`)}else Le.push(he.name)}K(Le," Found package names")}function X(ne){let se=Dc(ne,ae=>{if(!eL(ae))return;let le=Qx(OS(sg(ae))),Ee=D$(le);return m.get(Ee)});se.length&&K(se,"Inferred typings from file names"),En(ne,ae=>Wh(ae,".jsx"))&&(n&&n("Inferred 'react' typings due to presence of '.jsx' extension"),$("react"))}}var uyt=(t=>(t[t.Ok=0]="Ok",t[t.EmptyName=1]="EmptyName",t[t.NameTooLong=2]="NameTooLong",t[t.NameStartsWithDot=3]="NameStartsWithDot",t[t.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",t[t.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters",t))(uyt||{}),dyt=214;function fyt(t){return I7e(t,!0)}function I7e(t,n){if(!t)return 1;if(t.length>dyt)return 2;if(t.charCodeAt(0)===46)return 3;if(t.charCodeAt(0)===95)return 4;if(n){let a=/^@([^/]+)\/([^/]+)$/.exec(t);if(a){let u=I7e(a[1],!1);if(u!==0)return{name:a[1],isScopeName:!0,result:u};let m=I7e(a[2],!1);return m!==0?{name:a[2],isScopeName:!1,result:m}:0}}return encodeURIComponent(t)!==t?5:0}function NBt(t,n){return typeof t=="object"?N7e(n,t.result,t.name,t.isScopeName):N7e(n,t,n,!1)}function N7e(t,n,a,u){let m=u?"Scope":"Package";switch(n){case 1:return`'${t}':: ${m} name '${a}' cannot be empty`;case 2:return`'${t}':: ${m} name '${a}' should be less than ${dyt} characters`;case 3:return`'${t}':: ${m} name '${a}' cannot start with '.'`;case 4:return`'${t}':: ${m} name '${a}' cannot start with '_'`;case 5:return`'${t}':: ${m} name '${a}' contains non URI safe characters`;case 0:return Se.fail();default:Se.assertNever(n)}}var SEe;(t=>{class n{constructor(m){this.text=m}getText(m,g){return m===0&&g===this.text.length?this.text:this.text.substring(m,g)}getLength(){return this.text.length}getChangeRange(){}}function a(u){return new n(u)}t.fromString=a})(SEe||(SEe={}));var A7e=(t=>(t[t.Dependencies=1]="Dependencies",t[t.DevDependencies=2]="DevDependencies",t[t.PeerDependencies=4]="PeerDependencies",t[t.OptionalDependencies=8]="OptionalDependencies",t[t.All=15]="All",t))(A7e||{}),Jce=(t=>(t[t.Off=0]="Off",t[t.On=1]="On",t[t.Auto=2]="Auto",t))(Jce||{}),xEe=(t=>(t[t.Semantic=0]="Semantic",t[t.PartialSemantic=1]="PartialSemantic",t[t.Syntactic=2]="Syntactic",t))(xEe||{}),t2={},CEe=(t=>(t.Original="original",t.TwentyTwenty="2020",t))(CEe||{}),dT=(t=>(t.All="All",t.SortAndCombine="SortAndCombine",t.RemoveUnused="RemoveUnused",t))(dT||{}),d0e=(t=>(t[t.Invoked=1]="Invoked",t[t.TriggerCharacter=2]="TriggerCharacter",t[t.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",t))(d0e||{}),f0e=(t=>(t.Type="Type",t.Parameter="Parameter",t.Enum="Enum",t))(f0e||{}),_0e=(t=>(t.none="none",t.definition="definition",t.reference="reference",t.writtenReference="writtenReference",t))(_0e||{}),kEe=(t=>(t[t.None=0]="None",t[t.Block=1]="Block",t[t.Smart=2]="Smart",t))(kEe||{}),p0e=(t=>(t.Ignore="ignore",t.Insert="insert",t.Remove="remove",t))(p0e||{});function qce(t){return{indentSize:4,tabSize:4,newLineCharacter:t||` +`,convertTabsToSpaces:!0,indentStyle:2,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1,semicolons:"ignore",trimTrailingWhitespace:!0,indentSwitchCase:!0}}var wEe=qce(` +`),UK=(t=>(t[t.aliasName=0]="aliasName",t[t.className=1]="className",t[t.enumName=2]="enumName",t[t.fieldName=3]="fieldName",t[t.interfaceName=4]="interfaceName",t[t.keyword=5]="keyword",t[t.lineBreak=6]="lineBreak",t[t.numericLiteral=7]="numericLiteral",t[t.stringLiteral=8]="stringLiteral",t[t.localName=9]="localName",t[t.methodName=10]="methodName",t[t.moduleName=11]="moduleName",t[t.operator=12]="operator",t[t.parameterName=13]="parameterName",t[t.propertyName=14]="propertyName",t[t.punctuation=15]="punctuation",t[t.space=16]="space",t[t.text=17]="text",t[t.typeParameterName=18]="typeParameterName",t[t.enumMemberName=19]="enumMemberName",t[t.functionName=20]="functionName",t[t.regularExpressionLiteral=21]="regularExpressionLiteral",t[t.link=22]="link",t[t.linkName=23]="linkName",t[t.linkText=24]="linkText",t))(UK||{}),P7e=(t=>(t[t.None=0]="None",t[t.MayIncludeAutoImports=1]="MayIncludeAutoImports",t[t.IsImportStatementCompletion=2]="IsImportStatementCompletion",t[t.IsContinuation=4]="IsContinuation",t[t.ResolvedModuleSpecifiers=8]="ResolvedModuleSpecifiers",t[t.ResolvedModuleSpecifiersBeyondLimit=16]="ResolvedModuleSpecifiersBeyondLimit",t[t.MayIncludeMethodSnippets=32]="MayIncludeMethodSnippets",t))(P7e||{}),$ce=(t=>(t.Comment="comment",t.Region="region",t.Code="code",t.Imports="imports",t))($ce||{}),TEe=(t=>(t[t.JavaScript=0]="JavaScript",t[t.SourceMap=1]="SourceMap",t[t.Declaration=2]="Declaration",t))(TEe||{}),EEe=(t=>(t[t.None=0]="None",t[t.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",t[t.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",t[t.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",t[t.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",t[t.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",t[t.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition",t))(EEe||{}),DEe=(t=>(t[t.Punctuation=0]="Punctuation",t[t.Keyword=1]="Keyword",t[t.Operator=2]="Operator",t[t.Comment=3]="Comment",t[t.Whitespace=4]="Whitespace",t[t.Identifier=5]="Identifier",t[t.NumberLiteral=6]="NumberLiteral",t[t.BigIntLiteral=7]="BigIntLiteral",t[t.StringLiteral=8]="StringLiteral",t[t.RegExpLiteral=9]="RegExpLiteral",t))(DEe||{}),IEe=(t=>(t.unknown="",t.warning="warning",t.keyword="keyword",t.scriptElement="script",t.moduleElement="module",t.classElement="class",t.localClassElement="local class",t.interfaceElement="interface",t.typeElement="type",t.enumElement="enum",t.enumMemberElement="enum member",t.variableElement="var",t.localVariableElement="local var",t.variableUsingElement="using",t.variableAwaitUsingElement="await using",t.functionElement="function",t.localFunctionElement="local function",t.memberFunctionElement="method",t.memberGetAccessorElement="getter",t.memberSetAccessorElement="setter",t.memberVariableElement="property",t.memberAccessorVariableElement="accessor",t.constructorImplementationElement="constructor",t.callSignatureElement="call",t.indexSignatureElement="index",t.constructSignatureElement="construct",t.parameterElement="parameter",t.typeParameterElement="type parameter",t.primitiveType="primitive type",t.label="label",t.alias="alias",t.constElement="const",t.letElement="let",t.directory="directory",t.externalModuleName="external module name",t.jsxAttribute="JSX attribute",t.string="string",t.link="link",t.linkName="link name",t.linkText="link text",t))(IEe||{}),NEe=(t=>(t.none="",t.publicMemberModifier="public",t.privateMemberModifier="private",t.protectedMemberModifier="protected",t.exportedModifier="export",t.ambientModifier="declare",t.staticModifier="static",t.abstractModifier="abstract",t.optionalModifier="optional",t.deprecatedModifier="deprecated",t.dtsModifier=".d.ts",t.tsModifier=".ts",t.tsxModifier=".tsx",t.jsModifier=".js",t.jsxModifier=".jsx",t.jsonModifier=".json",t.dmtsModifier=".d.mts",t.mtsModifier=".mts",t.mjsModifier=".mjs",t.dctsModifier=".d.cts",t.ctsModifier=".cts",t.cjsModifier=".cjs",t))(NEe||{}),AEe=(t=>(t.comment="comment",t.identifier="identifier",t.keyword="keyword",t.numericLiteral="number",t.bigintLiteral="bigint",t.operator="operator",t.stringLiteral="string",t.whiteSpace="whitespace",t.text="text",t.punctuation="punctuation",t.className="class name",t.enumName="enum name",t.interfaceName="interface name",t.moduleName="module name",t.typeParameterName="type parameter name",t.typeAliasName="type alias name",t.parameterName="parameter name",t.docCommentTagName="doc comment tag name",t.jsxOpenTagName="jsx open tag name",t.jsxCloseTagName="jsx close tag name",t.jsxSelfClosingTagName="jsx self closing tag name",t.jsxAttribute="jsx attribute",t.jsxText="jsx text",t.jsxAttributeStringLiteralValue="jsx attribute string literal value",t))(AEe||{}),m0e=(t=>(t[t.comment=1]="comment",t[t.identifier=2]="identifier",t[t.keyword=3]="keyword",t[t.numericLiteral=4]="numericLiteral",t[t.operator=5]="operator",t[t.stringLiteral=6]="stringLiteral",t[t.regularExpressionLiteral=7]="regularExpressionLiteral",t[t.whiteSpace=8]="whiteSpace",t[t.text=9]="text",t[t.punctuation=10]="punctuation",t[t.className=11]="className",t[t.enumName=12]="enumName",t[t.interfaceName=13]="interfaceName",t[t.moduleName=14]="moduleName",t[t.typeParameterName=15]="typeParameterName",t[t.typeAliasName=16]="typeAliasName",t[t.parameterName=17]="parameterName",t[t.docCommentTagName=18]="docCommentTagName",t[t.jsxOpenTagName=19]="jsxOpenTagName",t[t.jsxCloseTagName=20]="jsxCloseTagName",t[t.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",t[t.jsxAttribute=22]="jsxAttribute",t[t.jsxText=23]="jsxText",t[t.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",t[t.bigintLiteral=25]="bigintLiteral",t))(m0e||{}),rS=LA(99,!0),h0e=(t=>(t[t.None=0]="None",t[t.Value=1]="Value",t[t.Type=2]="Type",t[t.Namespace=4]="Namespace",t[t.All=7]="All",t))(h0e||{});function D1(t){switch(t.kind){case 260:return Ys(t)&&Ake(t)?7:1;case 169:case 208:case 172:case 171:case 303:case 304:case 174:case 173:case 176:case 177:case 178:case 262:case 218:case 219:case 299:case 291:return 1;case 168:case 264:case 265:case 187:return 2;case 346:return t.name===void 0?3:2;case 306:case 263:return 3;case 267:return nb(t)||$2(t)===1?5:4;case 266:case 275:case 276:case 271:case 272:case 277:case 278:return 7;case 307:return 5}return 7}function m9(t){t=F7e(t);let n=t.parent;return t.kind===307?1:Bm(n)||X0(n)||Zg(n)||eg(n)||Ym(n)||pf(n)&&t===n.name?7:mF(t)?PEe(t):VT(t)?D1(n):tb(t)&&go(t,ow(F4,ib,hh))?7:LBt(t)?2:ABt(t)?4:Yp(n)?(Se.assert(tC(n.parent)),2):xk(n)?3:1}function PEe(t){let n=t.kind===166?t:tS(t.parent)&&t.parent.right===t?t.parent:void 0;return n&&n.parent.kind===271?7:4}function mF(t){for(;t.parent.kind===166;)t=t.parent;return y5(t.parent)&&t.parent.moduleReference===t}function ABt(t){return LEe(t)||PBt(t)}function LEe(t){let n=t,a=!0;if(n.parent.kind===166){for(;n.parent&&n.parent.kind===166;)n=n.parent;a=n.right===t}return n.parent.kind===183&&!a}function PBt(t){let n=t,a=!0;if(n.parent.kind===211){for(;n.parent&&n.parent.kind===211;)n=n.parent;a=n.name===t}if(!a&&n.parent.kind===233&&n.parent.parent.kind===298){let u=n.parent.parent.parent;return u.kind===263&&n.parent.parent.token===119||u.kind===264&&n.parent.parent.token===96}return!1}function LBt(t){switch(ZH(t)&&(t=t.parent),t.kind){case 110:return!ab(t);case 197:return!0}switch(t.parent.kind){case 183:return!0;case 205:return!t.parent.isTypeOf;case 233:return jA(t.parent)}return!1}function L7e(t,n=!1,a=!1){return v0e(t,Od,y0e,n,a)}function Gce(t,n=!1,a=!1){return v0e(t,sM,y0e,n,a)}function Kce(t,n=!1,a=!1){return v0e(t,WE,y0e,n,a)}function JK(t,n=!1,a=!1){return v0e(t,Kv,SYe,n,a)}function g0e(t,n=!1,a=!1){return v0e(t,Cy,y0e,n,a)}function OEe(t,n=!1,a=!1){return v0e(t,nv,O7e,n,a)}function y0e(t){return t.expression}function SYe(t){return t.tag}function O7e(t){return t.tagName}function v0e(t,n,a,u,m){let g=u?b0e(t):FEe(t);return m&&(g=ug(g)),!!g&&!!g.parent&&n(g.parent)&&a(g.parent)===g}function FEe(t){return WW(t)?t.parent:t}function b0e(t){return WW(t)||x0e(t)?t.parent:t}function qK(t,n){for(;t;){if(t.kind===256&&t.label.escapedText===n)return t.label;t=t.parent}}function Nte(t,n){return ba(t.expression)?t.expression.name.text===n:!1}function rJ(t){var n;return Ai(t)&&((n=ac(t.parent,oj))==null?void 0:n.label)===t}function $K(t){var n;return Ai(t)&&((n=ac(t.parent,dL))==null?void 0:n.label)===t}function GK(t){return $K(t)||rJ(t)}function Xce(t){var n;return((n=ac(t.parent,SH))==null?void 0:n.tagName)===t}function S0e(t){var n;return((n=ac(t.parent,tS))==null?void 0:n.right)===t}function WW(t){var n;return((n=ac(t.parent,ba))==null?void 0:n.name)===t}function x0e(t){var n;return((n=ac(t.parent,T_))==null?void 0:n.argumentExpression)===t}function zW(t){var n;return((n=ac(t.parent,Dh))==null?void 0:n.name)===t}function Yce(t){var n;return Ai(t)&&((n=ac(t.parent,iu))==null?void 0:n.name)===t}function Ate(t){switch(t.parent.kind){case 172:case 171:case 303:case 306:case 174:case 173:case 177:case 178:case 267:return Nu(t.parent)===t;case 212:return t.parent.argumentExpression===t;case 167:return!0;case 201:return t.parent.parent.kind===199;default:return!1}}function C0e(t){return WS(t.parent.parent)&&Sj(t.parent.parent)===t}function hF(t){for(ux(t)&&(t=t.parent.parent);;){if(t=t.parent,!t)return;switch(t.kind){case 307:case 174:case 173:case 262:case 218:case 177:case 178:case 263:case 264:case 266:case 267:return t}}}function IM(t){switch(t.kind){case 307:return Mg(t)?"module":"script";case 267:return"module";case 263:case 231:return"class";case 264:return"interface";case 265:case 338:case 346:return"type";case 266:return"enum";case 260:return n(t);case 208:return n(UT(t));case 219:case 262:case 218:return"function";case 177:return"getter";case 178:return"setter";case 174:case 173:return"method";case 303:let{initializer:a}=t;return iu(a)?"method":"property";case 172:case 171:case 304:case 305:return"property";case 181:return"index";case 180:return"construct";case 179:return"call";case 176:case 175:return"constructor";case 168:return"type parameter";case 306:return"enum member";case 169:return kc(t,31)?"property":"parameter";case 271:case 276:case 281:case 274:case 280:return"alias";case 226:let u=wh(t),{right:m}=t;switch(u){case 7:case 8:case 9:case 0:return"";case 1:case 2:let v=IM(m);return v===""?"const":v;case 3:return yd(m)?"method":"property";case 4:return"property";case 5:return yd(m)?"method":"property";case 6:return"local class";default:return""}case 80:return Ym(t.parent)?"alias":"";case 277:let g=IM(t.expression);return g===""?"const":g;default:return""}function n(a){return W7(a)?"const":p5(a)?"let":"var"}}function H4(t){switch(t.kind){case 110:return!0;case 80:return KH(t)&&t.parent.kind===169;default:return!1}}var VW=/^\/\/\/\s*=a.end}function HW(t,n,a){return t.pos<=n&&t.end>=a}function oJ(t,n,a){return UW(t.pos,t.end,n,a)}function sJ(t,n,a,u){return UW(t.getStart(n),t.end,a,u)}function UW(t,n,a,u){let m=Math.max(t,a),g=Math.min(n,u);return mu.kind===n)}function aJ(t){let n=jt(t.parent.getChildren(),a=>iC(a)&&bw(a,t));return Se.assert(!n||dr(n.getChildren(),t)),n}function Bp(t){return t.kind===90}function MEe(t){return t.kind===86}function _yt(t){return t.kind===100}function OBt(t){if(xf(t))return t.name;if(D0(t)){let n=t.modifiers&&jt(t.modifiers,Bp);if(n)return n}if(Qh(t)){let n=jt(t.getChildren(),MEe);if(n)return n}}function FBt(t){if(xf(t))return t.name;if(fp(t)){let n=jt(t.modifiers,Bp);if(n)return n}if(yd(t)){let n=jt(t.getChildren(),_yt);if(n)return n}}function MBt(t){let n;return go(t,a=>(Qa(a)&&(n=a),!tS(a.parent)&&!Qa(a.parent)&&!Xh(a.parent))),n}function REe(t,n){if(t.flags&16777216)return;let a=fle(t,n);if(a)return a;let u=MBt(t);return u&&n.getTypeAtLocation(u)}function RBt(t,n){if(!n)switch(t.kind){case 263:case 231:return OBt(t);case 262:case 218:return FBt(t);case 176:return t}if(xf(t))return t.name}function k0e(t,n){if(t.importClause){if(t.importClause.name&&t.importClause.namedBindings)return;if(t.importClause.name)return t.importClause.name;if(t.importClause.namedBindings){if(_p(t.importClause.namedBindings)){let a=vp(t.importClause.namedBindings.elements);return a?a.name:void 0}else if(ZE(t.importClause.namedBindings))return t.importClause.namedBindings.name}}if(!n)return t.moduleSpecifier}function pyt(t,n){if(t.exportClause){if(QT(t.exportClause))return vp(t.exportClause.elements)?t.exportClause.elements[0].name:void 0;if(vm(t.exportClause))return t.exportClause.name}if(!n)return t.moduleSpecifier}function myt(t){if(t.types.length===1)return t.types[0].expression}function xYe(t,n){let{parent:a}=t;if(jd(t)&&(n||t.kind!==90)?tD(a)&&dr(a.modifiers,t):t.kind===86?D0(a)||Qh(t):t.kind===100?fp(a)||yd(t):t.kind===120?ky(a):t.kind===94?Z8(a):t.kind===156?k1(a):t.kind===145||t.kind===144?Dh(a):t.kind===102?pf(a):t.kind===139?n_(a):t.kind===153&&zc(a)){let u=RBt(a,n);if(u)return u}if((t.kind===115||t.kind===87||t.kind===121)&&Xv(a)&&a.declarations.length===1){let u=a.declarations[0];if(Ai(u.name))return u.name}if(t.kind===156){if(Ym(a)&&a.isTypeOnly){let u=k0e(a.parent,n);if(u)return u}if(Qg(a)&&a.isTypeOnly){let u=pyt(a,n);if(u)return u}}if(t.kind===130){if(eg(a)&&a.propertyName||X0(a)&&a.propertyName||ZE(a)||vm(a))return a.name;if(Qg(a)&&a.exportClause&&vm(a.exportClause))return a.exportClause.name}if(t.kind===102&&Dd(a)){let u=k0e(a,n);if(u)return u}if(t.kind===95){if(Qg(a)){let u=pyt(a,n);if(u)return u}if(Bm(a))return ug(a.expression)}if(t.kind===149&&Zg(a))return a.expression;if(t.kind===161&&(Dd(a)||Qg(a))&&a.moduleSpecifier)return a.moduleSpecifier;if((t.kind===96||t.kind===119)&&KC(a)&&a.token===t.kind){let u=myt(a);if(u)return u}if(t.kind===96){if(Yp(a)&&a.constraint&&M_(a.constraint))return a.constraint.typeName;if(YE(a)&&M_(a.extendsType))return a.extendsType.typeName}if(t.kind===140&&Hy(a))return a.typeParameter.name;if(t.kind===103&&Yp(a)&&K8(a.parent))return a.name;if(t.kind===143&&yN(a)&&a.operator===143&&M_(a.type))return a.type.typeName;if(t.kind===148&&yN(a)&&a.operator===148&&$8(a.type)&&M_(a.type.elementType))return a.type.elementType.typeName;if(!n){if((t.kind===105&&sM(a)||t.kind===116&&rd(a)||t.kind===114&&Ip(a)||t.kind===135&&YT(a)||t.kind===127&&hae(a)||t.kind===91&&Ha(a))&&a.expression)return ug(a.expression);if((t.kind===103||t.kind===104)&&ms(a)&&a.operatorToken===t)return ug(a.right);if(t.kind===130&&SU(a)&&M_(a.type))return a.type.typeName;if(t.kind===103&&gae(a)||t.kind===165&&$u(a))return ug(a.expression)}return t}function F7e(t){return xYe(t,!1)}function w0e(t){return xYe(t,!0)}function VS(t,n){return h9(t,n,a=>Xp(a)||Gv(a.kind)||wl(a))}function h9(t,n,a){return XK(t,n,!1,a,!1)}function wc(t,n){return XK(t,n,!0,void 0,!1)}function XK(t,n,a,u,m){let g=t,v;e:for(;;){let k=g.getChildren(t),T=Zu(k,n,(I,A)=>A,(I,A)=>{let M=k[I].getEnd();if(Mn?1:x(k[I],R,M)?k[I-1]&&x(k[I-1])?1:0:u&&R===n&&k[I-1]&&k[I-1].getEnd()===n&&x(k[I-1])?1:-1});if(v)return v;if(T>=0&&k[T]){g=k[T];continue e}return g}function x(k,T,I){if(I??(I=k.getEnd()),In))return!1;if(na.getStart(t)&&n(g.pos<=t.pos&&g.end>t.end||g.pos===t.end)&&gL(g,a)?u(g):void 0)}}function p0(t,n,a,u){let m=g(a||n);return Se.assert(!(m&&AM(m))),m;function g(v){if(g9(v)&&v.kind!==1)return v;let x=v.getChildren(n),k=Zu(x,t,(I,A)=>A,(I,A)=>t=x[I-1].end?0:1:-1);if(k>=0&&x[k]){let I=x[k];if(t=t||!gL(I,n)||AM(I)){let R=M7e(x,k,n,v.kind);return R?!u&&Xoe(R)&&R.getChildren(n).length?g(R):ty(R,n):void 0}else return g(I)}Se.assert(a!==void 0||v.kind===307||v.kind===1||Xoe(v));let T=M7e(x,x.length,n,v.kind);return T&&ty(T,n)}}function g9(t){return A7(t)&&!AM(t)}function ty(t,n){if(g9(t))return t;let a=t.getChildren(n);if(a.length===0)return t;let u=M7e(a,a.length,n,t.kind);return u&&ty(u,n)}function M7e(t,n,a,u){for(let m=n-1;m>=0;m--){let g=t[m];if(AM(g))m===0&&(u===12||u===285)&&Se.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(gL(t[m],a))return t[m]}}function JW(t,n,a=p0(n,t)){if(a&&W6(a)){let u=a.getStart(t),m=a.getEnd();if(ua.getStart(t)}function tle(t,n){let a=wc(t,n);return!!(nW(a)||a.kind===19&&aT(a.parent)&&R_(a.parent.parent)||a.kind===30&&nv(a.parent)&&R_(a.parent.parent))}function Ote(t,n){function a(u){for(;u;)if(u.kind>=285&&u.kind<=294||u.kind===12||u.kind===30||u.kind===32||u.kind===80||u.kind===20||u.kind===19||u.kind===44)u=u.parent;else if(u.kind===284){if(n>u.getStart(t))return!0;u=u.parent}else return!1;return!1}return a(wc(t,n))}function ile(t,n,a){let u=Ef(t.kind),m=Ef(n),g=t.getFullStart(),v=a.text.lastIndexOf(m,g);if(v===-1)return;if(a.text.lastIndexOf(u,g-1)!!g.typeParameters&&g.typeParameters.length>=n)}function YK(t,n){if(n.text.lastIndexOf("<",t?t.pos:n.text.length)===-1)return;let a=t,u=0,m=0;for(;a;){switch(a.kind){case 30:if(a=p0(a.getFullStart(),n),a&&a.kind===29&&(a=p0(a.getFullStart(),n)),!a||!Ai(a))return;if(!u)return VT(a)?void 0:{called:a,nTypeArguments:m};u--;break;case 50:u=3;break;case 49:u=2;break;case 32:u++;break;case 20:if(a=ile(a,19,n),!a)return;break;case 22:if(a=ile(a,21,n),!a)return;break;case 24:if(a=ile(a,23,n),!a)return;break;case 28:m++;break;case 39:case 80:case 11:case 9:case 10:case 112:case 97:case 114:case 96:case 143:case 25:case 52:case 58:case 59:break;default:if(Qa(a))break;return}a=p0(a.getFullStart(),n)}}function U4(t,n,a){return Dy.getRangeOfEnclosingComment(t,n,void 0,a)}function D0e(t,n){let a=wc(t,n);return!!go(a,eD)}function gL(t,n){return t.kind===1?!!t.jsDoc:t.getWidth(n)!==0}function QK(t,n=0){let a=[],u=y1(t)?vpe(t)&~n:0;return u&2&&a.push("private"),u&4&&a.push("protected"),u&1&&a.push("public"),(u&256||Yf(t))&&a.push("static"),u&64&&a.push("abstract"),u&32&&a.push("export"),u&65536&&a.push("deprecated"),t.flags&33554432&&a.push("declare"),t.kind===277&&a.push("export"),a.length>0?a.join(","):""}function WEe(t){if(t.kind===183||t.kind===213)return t.typeArguments;if(iu(t)||t.kind===263||t.kind===264)return t.typeParameters}function qW(t){return t===2||t===3}function I0e(t){return!!(t===11||t===14||OA(t))}function N0e(t,n,a){return!!(n.flags&4)&&t.isEmptyAnonymousObjectType(a)}function A0e(t){if(!t.isIntersection())return!1;let{types:n,checker:a}=t;return n.length===2&&(N0e(a,n[0],n[1])||N0e(a,n[1],n[0]))}function nle(t,n,a){return OA(t.kind)&&t.getStart(a){let a=pp(n);return!t[a]&&(t[a]=!0)}}function PM(t){return t.getText(0,t.getLength())}function LM(t,n){let a="";for(let u=0;u!n.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(n)&&!!(n.externalModuleIndicator||n.commonJsModuleIndicator))}function Rte(t){return t.getSourceFiles().some(n=>!n.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(n)&&!!n.externalModuleIndicator)}function M0e(t){return!!t.module||h_(t)>=2||!!t.noEmit}function XW(t,n){return{fileExists:a=>t.fileExists(a),getCurrentDirectory:()=>n.getCurrentDirectory(),readFile:wu(n,n.readFile),useCaseSensitiveFileNames:wu(n,n.useCaseSensitiveFileNames),getSymlinkCache:wu(n,n.getSymlinkCache)||t.getSymlinkCache,getModuleSpecifierCache:wu(n,n.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var a;return(a=t.getModuleResolutionCache())==null?void 0:a.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:wu(n,n.getGlobalTypingsCacheLocation),redirectTargetsMap:t.redirectTargetsMap,getProjectReferenceRedirect:a=>t.getProjectReferenceRedirect(a),isSourceOfProjectReferenceRedirect:a=>t.isSourceOfProjectReferenceRedirect(a),getNearestAncestorDirectoryWithPackageJson:wu(n,n.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>t.getFileIncludeReasons(),getCommonSourceDirectory:()=>t.getCommonSourceDirectory(),getDefaultResolutionModeForFile:a=>t.getDefaultResolutionModeForFile(a),getModeForResolutionAtIndex:(a,u)=>t.getModeForResolutionAtIndex(a,u)}}function ole(t,n){return{...XW(t,n),getCommonSourceDirectory:()=>t.getCommonSourceDirectory()}}function OM(t){return t===2||t>=3&&t<=99||t===100}function vL(t,n,a,u,m){return Me.createImportDeclaration(void 0,t||n?Me.createImportClause(!!m,t,n&&n.length?Me.createNamedImports(n):void 0):void 0,typeof a=="string"?YW(a,u):a,void 0)}function YW(t,n){return Me.createStringLiteral(t,n===0)}var dO=(t=>(t[t.Single=0]="Single",t[t.Double=1]="Double",t))(dO||{});function uJ(t,n){return D3(t,n)?1:0}function Nk(t,n){if(n.quotePreference&&n.quotePreference!=="auto")return n.quotePreference==="single"?0:1;{let a=Yx(t)&&t.imports&&jt(t.imports,u=>Kf(u)&&!um(u.parent));return a?uJ(a,t):1}}function sle(t){switch(t){case 0:return"'";case 1:return'"';default:return Se.assertNever(t)}}function Ak(t){let n=Bte(t);return n===void 0?void 0:Ba(n)}function Bte(t){return t.escapedName!=="default"?t.escapedName:Je(t.declarations,n=>{let a=Nu(n);return a&&a.kind===80?a.escapedText:void 0})}function jte(t){return i_(t)&&(Zg(t.parent)||Dd(t.parent)||cT(t.parent)||es(t.parent,!1)&&t.parent.arguments[0]===t||Kx(t.parent)&&t.parent.arguments[0]===t)}function dJ(t){return Zd(t)&&fb(t.parent)&&Ai(t.name)&&!t.propertyName}function eX(t,n){let a=t.getTypeAtLocation(n.parent);return a&&t.getPropertyOfType(a,n.name.text)}function QW(t,n,a){if(t)for(;t.parent;){if(ul(t.parent)||!VEe(a,t.parent,n))return t;t=t.parent}}function VEe(t,n,a){return bke(t,n.getStart(a))&&n.getEnd()<=ag(t)}function FM(t,n){return tD(t)?jt(t.modifiers,a=>a.kind===n):void 0}function B7e(t,n,a,u,m){var g;let x=(ua(a)?a[0]:a).kind===243?lb:f5,k=Qn(n.statements,x),{comparer:T,isSorted:I}=P9.getOrganizeImportsStringComparerWithDetection(k,m),A=ua(a)?du(a,(M,R)=>P9.compareImportsOrRequireStatements(M,R,T)):[a];if(!k?.length){if(Yx(n))t.insertNodesAtTopOfFile(n,A,u);else for(let M of A)t.insertStatementsInNewFile(n.fileName,[M],(g=Gm(M))==null?void 0:g.getSourceFile());return}if(Se.assert(Yx(n)),k&&I)for(let M of A){let R=P9.getImportDeclarationInsertionIndex(k,M,T);if(R===0){let H=k[0]===n.statements[0]?{leadingTriviaOption:Gs.LeadingTriviaOption.Exclude}:{};t.insertNodeBefore(n,k[0],M,!1,H)}else{let H=k[R-1];t.insertNodeAfter(n,H,M)}}else{let M=Y_(k);M?t.insertNodesAfter(n,M,A):t.insertNodesAtTopOfFile(n,A,u)}}function ZW(t,n){return Se.assert(t.isTypeOnly),$d(t.getChildAt(0,n),zEe)}function ez(t,n){return!!t&&!!n&&t.start===n.start&&t.length===n.length}function ale(t,n,a){return(a?ud:rw)(t.fileName,n.fileName)&&ez(t.textSpan,n.textSpan)}function tz(t){return(n,a)=>ale(n,a,t)}function cle(t,n){if(t){for(let a=0;aFl(a)?!0:Zd(a)||fb(a)||QE(a)?!1:"quit")}var B0e=j7e();function j7e(){let t=Z$*10,n,a,u,m;I();let g=A=>x(A,17);return{displayParts:()=>{let A=n.length&&n[n.length-1].text;return m>t&&A&&A!=="..."&&(tN(A.charCodeAt(A.length-1))||n.push(Pk(" ",16)),n.push(Pk("...",15))),n},writeKeyword:A=>x(A,5),writeOperator:A=>x(A,12),writePunctuation:A=>x(A,15),writeTrailingSemicolon:A=>x(A,15),writeSpace:A=>x(A,16),writeStringLiteral:A=>x(A,8),writeParameter:A=>x(A,13),writeProperty:A=>x(A,14),writeLiteral:A=>x(A,8),writeSymbol:k,writeLine:T,write:g,writeComment:g,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:ld,getIndent:()=>u,increaseIndent:()=>{u++},decreaseIndent:()=>{u--},clear:I};function v(){if(!(m>t)&&a){let A=owe(u);A&&(m+=A.length,n.push(Pk(A,16))),a=!1}}function x(A,M){m>t||(v(),m+=A.length,n.push(Pk(A,M)))}function k(A,M){m>t||(v(),m+=A.length,n.push(CYe(A,M)))}function T(){m>t||(m+=1,n.push(zte()),a=!0)}function I(){n=[],a=!0,u=0,m=0}}function CYe(t,n){return Pk(t,a(n));function a(u){let m=u.flags;return m&3?Wte(u)?13:9:m&4||m&32768||m&65536?14:m&8?19:m&16?20:m&32?1:m&64?4:m&384?2:m&1536?11:m&8192?10:m&262144?18:m&524288||m&2097152?0:17}}function Pk(t,n){return{text:t,kind:UK[n]}}function dg(){return Pk(" ",16)}function Qm(t){return Pk(Ef(t),5)}function Bf(t){return Pk(Ef(t),15)}function sS(t){return Pk(Ef(t),12)}function yb(t){return Pk(t,13)}function tX(t){return Pk(t,14)}function j0e(t){let n=fH(t);return n===void 0?Sw(t):Qm(n)}function Sw(t){return Pk(t,17)}function W0e(t){return Pk(t,0)}function xw(t){return Pk(t,18)}function HEe(t){return Pk(t,24)}function kYe(t,n){return{text:t,kind:UK[23],target:{fileName:Vo(n).fileName,textSpan:Cx(n)}}}function z0e(t){return Pk(t,22)}function UEe(t,n){var a;let u=w1(t)?"link":tP(t)?"linkcode":"linkplain",m=[z0e(`{@${u} `)];if(!t.name)t.text&&m.push(HEe(t.text));else{let g=n?.getSymbolAtLocation(t.name),v=g&&n?JEe(g,n):void 0,x=wYe(t.text),k=_h(t.name)+t.text.slice(0,x),T=W7e(t.text.slice(x)),I=v?.valueDeclaration||((a=v?.declarations)==null?void 0:a[0]);if(I)m.push(kYe(k,I)),T&&m.push(HEe(T));else{let A=x===0||t.text.charCodeAt(x)===124&&k.charCodeAt(k.length-1)!==32?" ":"";m.push(HEe(k+A+T))}}return m.push(z0e("}")),m}function W7e(t){let n=0;if(t.charCodeAt(n++)===124){for(;n"&&a--,u++,!a)return u}return 0}var BBt=` +`;function fO(t,n){var a;return n?.newLineCharacter||((a=t.getNewLine)==null?void 0:a.call(t))||BBt}function zte(){return Pk(` +`,6)}function Cw(t){try{return t(B0e),B0e.displayParts()}finally{B0e.clear()}}function MM(t,n,a,u=0){return Cw(m=>{t.writeType(n,a,u|1024|16384,m)})}function TN(t,n,a,u,m=0){return Cw(g=>{t.writeSymbol(n,a,u,m|8,g)})}function iX(t,n,a,u=0){return u|=25632,Cw(m=>{t.writeSignature(n,a,u,void 0,m)})}function nX(t){return!!t.parent&&I2(t.parent)&&t.parent.propertyName===t}function ule(t,n){return Xse(t,n.getScriptKind&&n.getScriptKind(t))}function JEe(t,n){let a=t;for(;TYe(a)||m4(a)&&a.links.target;)m4(a)&&a.links.target?a=a.links.target:a=ym(a,n);return a}function TYe(t){return(t.flags&2097152)!==0}function V0e(t,n){return Nf(ym(t,n))}function H0e(t,n){for(;tN(t.charCodeAt(n));)n+=1;return n}function qEe(t,n){for(;n>-1&&_k(t.charCodeAt(n));)n-=1;return n+1}function mp(t,n=!0){let a=t&&U0e(t);return a&&!n&&Lk(a),G3(a,!1)}function Vte(t,n,a){let u=a(t);return u?Wo(u,t):u=U0e(t,a),u&&!n&&Lk(u),u}function U0e(t,n){let a=n?g=>Vte(g,!0,n):mp,m=Fo(t,a,void 0,n?g=>g&&rX(g,!0,n):g=>g&&g_(g),a);if(m===t){let g=Kf(t)?Wo(Me.createStringLiteralFromNode(t),t):mx(t)?Wo(Me.createNumericLiteral(t.text,t.numericLiteralFlags),t):Me.cloneNode(t);return Fn(g,t)}return m.parent=void 0,m}function g_(t,n=!0){if(t){let a=Me.createNodeArray(t.map(u=>mp(u,n)),t.hasTrailingComma);return Fn(a,t),a}return t}function rX(t,n,a){return Me.createNodeArray(t.map(u=>Vte(u,n,a)),t.hasTrailingComma)}function Lk(t){gF(t),J0e(t)}function gF(t){$Ee(t,1024,pJ)}function J0e(t){$Ee(t,2048,I5)}function Qv(t,n){let a=t.getSourceFile(),u=a.text;z7e(t,u)?Ute(t,n,a):iz(t,n,a),bL(t,n,a)}function z7e(t,n){let a=t.getFullStart(),u=t.getStart();for(let m=a;mn)}function mJ(t,n){let a=t;for(let u=1;!iG(n,a);u++)a=`${t}_${u}`;return a}function Hte(t,n,a,u){let m=0,g=-1;for(let{fileName:v,textChanges:x}of t){Se.assert(v===n);for(let k of x){let{span:T,newText:I}=k,A=dle(I,w4(a));if(A!==-1&&(g=T.start+m+A,!u))return g;m+=I.length-T.length}}return Se.assert(u),Se.assert(g>=0),g}function Ute(t,n,a,u,m){iZ(a.text,t.pos,hJ(n,a,u,m,If))}function bL(t,n,a,u,m){Mf(a.text,t.end,hJ(n,a,u,m,Zj))}function iz(t,n,a,u,m){Mf(a.text,t.pos,hJ(n,a,u,m,If))}function hJ(t,n,a,u,m){return(g,v,x,k)=>{x===3?(g+=2,v-=2):g+=2,m(t,a||x,n.text.slice(g,v),u!==void 0?u:k)}}function dle(t,n){if(xl(t,n))return 0;let a=t.indexOf(" "+n);return a===-1&&(a=t.indexOf("."+n)),a===-1&&(a=t.indexOf('"'+n)),a===-1?-1:a+1}function gJ(t){return ms(t)&&t.operatorToken.kind===28||Ld(t)||(SU(t)||ia(t))&&Ld(t.expression)}function fle(t,n,a){let u=uN(t.parent);switch(u.kind){case 214:return n.getContextualType(u,a);case 226:{let{left:m,operatorToken:g,right:v}=u;return oX(g.kind)?n.getTypeAtLocation(t===v?m:v):n.getContextualType(t,a)}case 296:return Jte(u,n);default:return n.getContextualType(t,a)}}function _le(t,n,a){let u=Nk(t,n),m=JSON.stringify(a);return u===0?`'${B2(m).replace(/'/g,()=>"\\'").replace(/\\"/g,'"')}'`:m}function oX(t){switch(t){case 37:case 35:case 38:case 36:return!0;default:return!1}}function ple(t){switch(t.kind){case 11:case 15:case 228:case 215:return!0;default:return!1}}function yJ(t){return!!t.getStringIndexType()||!!t.getNumberIndexType()}function Jte(t,n){return n.getTypeAtLocation(t.parent.parent.expression)}var q0e="anonymous function";function vJ(t,n,a,u){let m=a.getTypeChecker(),g=!0,v=()=>g=!1,x=m.typeToTypeNode(t,n,1,8,{trackSymbol:(k,T,I)=>(g=g&&m.isSymbolAccessible(k,T,I,!1).accessibility===0,!g),reportInaccessibleThisError:v,reportPrivateInBaseOfClassExpression:v,reportInaccessibleUniqueSymbolError:v,moduleResolverHost:ole(a,u)});return g?x:void 0}function $0e(t){return t===179||t===180||t===181||t===171||t===173}function GEe(t){return t===262||t===176||t===174||t===177||t===178}function qte(t){return t===267}function KEe(t){return t===243||t===244||t===246||t===251||t===252||t===253||t===257||t===259||t===172||t===265||t===272||t===271||t===278||t===270||t===277}var hyt=ow($0e,GEe,qte,KEe);function gyt(t,n){let a=t.getLastToken(n);if(a&&a.kind===27)return!1;if($0e(t.kind)){if(a&&a.kind===28)return!1}else if(qte(t.kind)){let x=Bu(t.getChildren(n));if(x&&vN(x))return!1}else if(GEe(t.kind)){let x=Bu(t.getChildren(n));if(x&&z7(x))return!1}else if(!KEe(t.kind))return!1;if(t.kind===246)return!0;let u=go(t,x=>!x.parent),m=NM(t,u,n);if(!m||m.kind===20)return!0;let g=n.getLineAndCharacterOfPosition(t.getEnd()).line,v=n.getLineAndCharacterOfPosition(m.getStart(n)).line;return g!==v}function sX(t,n,a){let u=go(n,m=>m.end!==t?"quit":hyt(m.kind));return!!u&&gyt(u,a)}function $te(t){let n=0,a=0,u=5;return _d(t,function m(g){if(KEe(g.kind)){let v=g.getLastToken(t);v?.kind===27?n++:a++}else if($0e(g.kind)){let v=g.getLastToken(t);if(v?.kind===27)n++;else if(v&&v.kind!==28){let x=Df(t,v.getStart(t)).line,k=Df(t,XD(t,v.end).start).line;x!==k&&a++}}return n+a>=u?!0:_d(g,m)}),n===0&&a<=1?!0:n/a>1/u}function XEe(t,n){return Xte(t,t.getDirectories,n)||[]}function Gte(t,n,a,u,m){return Xte(t,t.readDirectory,n,a,u,m)||F}function nz(t,n){return Xte(t,t.fileExists,n)}function aX(t,n){return Kte(()=>fN(n,t))||!1}function Kte(t){try{return t()}catch{return}}function Xte(t,n,...a){return Kte(()=>n&&n.apply(t,a))}function Yte(t,n,a){let u=[];return T2(t,m=>{if(m===a)return!0;let g=Ps(m,"package.json");nz(n,g)&&u.push(g)}),u}function mle(t,n){let a;return T2(t,u=>{if(u==="node_modules"||(a=vce(u,m=>nz(n,m),"package.json"),a))return!0}),a}function YEe(t,n){if(!n.fileExists)return[];let a=[];return T2(Cc(t),u=>{let m=Ps(u,"package.json");if(n.fileExists(m)){let g=hle(m,n);g&&a.push(g)}}),a}function hle(t,n){if(!n.readFile)return;let a=["dependencies","devDependencies","optionalDependencies","peerDependencies"],u=n.readFile(t)||"",m=jj(u),g={};if(m)for(let k of a){let T=m[k];if(!T)continue;let I=new Map;for(let A in T)I.set(A,T[A]);g[k]=I}let v=[[1,g.dependencies],[2,g.devDependencies],[8,g.optionalDependencies],[4,g.peerDependencies]];return{...g,parseable:!!m,fileName:t,get:x,has(k,T){return!!x(k,T)}};function x(k,T=15){for(let[I,A]of v)if(A&&T&I){let M=A.get(k);if(M!==void 0)return M}}}function bJ(t,n,a){let u=(a.getPackageJsonsVisibleToFile&&a.getPackageJsonsVisibleToFile(t.fileName)||YEe(t.fileName,a)).filter(H=>H.parseable),m,g,v;return{allowsImportingAmbientModule:k,getSourceFileInfo:T,allowsImportingSpecifier:I};function x(H){let U=R(H);for(let $ of u)if($.has(U)||$.has(Vhe(U)))return!0;return!1}function k(H,U){if(!u.length||!H.valueDeclaration)return!0;if(!g)g=new Map;else{let ne=g.get(H);if(ne!==void 0)return ne}let $=B2(H.getName());if(A($))return g.set(H,!0),!0;let K=H.valueDeclaration.getSourceFile(),re=M(K.fileName,U);if(typeof re>"u")return g.set(H,!0),!0;let X=x(re)||x($);return g.set(H,X),X}function T(H,U){if(!u.length)return{importable:!0,packageName:void 0};if(!v)v=new Map;else{let X=v.get(H);if(X!==void 0)return X}let $=M(H.fileName,U);if(!$){let X={importable:!0,packageName:$};return v.set(H,X),X}let re={importable:x($),packageName:$};return v.set(H,re),re}function I(H){return!u.length||A(H)||t_(H)||LC(H)?!0:x(H)}function A(H){return!!(Yx(t)&&$v(t)&&lP.nodeCoreModules.has(H)&&(m===void 0&&(m=gle(t)),m))}function M(H,U){if(!H.includes("node_modules"))return;let $=cF.getNodeModulesPackageName(a.getCompilationSettings(),t,H,U,n);if($&&!t_($)&&!LC($))return R($)}function R(H){let U=Uv(qee(H)).slice(1);return xl(U[0],"@")?`${U[0]}/${U[1]}`:U[0]}}function gle(t){return En(t.imports,({text:n})=>lP.nodeCoreModules.has(n))}function cX(t){return dr(Uv(t),"node_modules")}function lX(t){return t.file!==void 0&&t.start!==void 0&&t.length!==void 0}function yle(t,n){let a=Cx(t),u=Zu(n,a,ps,j_e);if(u>=0){let m=n[u];return Se.assertEqual(m.file,t.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),$d(m,lX)}}function Qte(t,n){var a;let u=Zu(n,t.start,v=>v.start,m_);for(u<0&&(u=~u);((a=n[u-1])==null?void 0:a.start)===t.start;)u--;let m=[],g=ag(t);for(;;){let v=ac(n[u],lX);if(!v||v.start>g)break;X3e(t,v)&&m.push(v),u++}return m}function b9({startPosition:t,endPosition:n}){return cg(t,n===void 0?t:n)}function G0e(t,n){let a=wc(t,n.start);return go(a,m=>m.getStart(t)ag(n)?"quit":An(m)&&ez(n,Cx(m,t)))}function K0e(t,n,a=ps){return t?ua(t)?a($i(t,n)):n(t,0):void 0}function S9(t){return ua(t)?of(t):t}function Zte(t,n,a){return t.escapedName==="export="||t.escapedName==="default"?vle(t)||eie(V7e(t),n,!!a):t.name}function vle(t){return Je(t.declarations,n=>{var a,u,m;return Bm(n)?(a=ac(ug(n.expression),Ai))==null?void 0:a.text:X0(n)&&n.symbol.flags===2097152?(u=ac(n.propertyName,Ai))==null?void 0:u.text:(m=ac(Nu(n),Ai))==null?void 0:m.text})}function V7e(t){var n;return Se.checkDefined(t.parent,`Symbol parent was undefined. Flags: ${Se.formatSymbolFlags(t.flags)}. Declarations: ${(n=t.declarations)==null?void 0:n.map(a=>{let u=Se.formatSyntaxKind(a.kind),m=Ys(a),{expression:g}=a;return(m?"[JS]":"")+u+(g?` (expression: ${Se.formatSyntaxKind(g.kind)})`:"")}).join(", ")}.`)}function eie(t,n,a){return SJ(Qx(B2(t.name)),n,a)}function SJ(t,n,a){let u=sg(eH(t,"/index")),m="",g=!0,v=u.charCodeAt(0);HD(v,n)?(m+=String.fromCharCode(v),a&&(m=m.toUpperCase())):g=!1;for(let x=1;xt.length)return!1;for(let m=0;m{if(lP.nodeCoreModules.has(u.text))return xl(u.text,"node:")})??n.usesUriStyleNodeCoreModules}function oz(t){return t===` +`?1:0}function RM(t){return ua(t)?KA(ed(t[0]),t.slice(1)):ed(t)}function iie({options:t},n){let a=!t.semicolons||t.semicolons==="ignore",u=t.semicolons==="remove"||a&&!$te(n);return{...t,semicolons:u?"remove":"ignore"}}function QEe(t){return t===2||t===3}function xJ(t,n){return t.isSourceFileFromExternalLibrary(n)||t.isSourceFileDefaultLibrary(n)}function dX(t,n){let a=new Set,u=new Set,m=new Set;for(let x of n)if(!fL(x)){let k=J_(x.expression);if(B6(k))switch(k.kind){case 15:case 11:a.add(k.text);break;case 9:u.add(parseInt(k.text));break;case 10:let T=Qd(xh(k.text,"n")?k.text.slice(0,-1):k.text);T&&m.add(z8(T));break}else{let T=t.getSymbolAtLocation(x.expression);if(T&&T.valueDeclaration&&pb(T.valueDeclaration)){let I=t.getConstantValue(T.valueDeclaration);I!==void 0&&g(I)}}}return{addValue:g,hasValue:v};function g(x){switch(typeof x){case"string":a.add(x);break;case"number":u.add(x)}}function v(x){switch(typeof x){case"string":return a.has(x);case"number":return u.has(x);case"object":return m.has(z8(x))}}}function nie(t,n,a,u){var m;let g=typeof t=="string"?t:t.fileName;if(!eL(g))return!1;let v=typeof t=="string"?n.getCompilerOptions():n.getCompilerOptionsForFile(t),x=b1(v),k=typeof t=="string"?{fileName:t,impliedNodeFormat:jK(dd(t,a.getCurrentDirectory(),E4(a)),(m=n.getPackageJsonInfoCache)==null?void 0:m.call(n),a,v)}:t,T=uO(k,v);if(T===99)return!1;if(T===1||v.verbatimModuleSyntax&&x===1)return!0;if(v.verbatimModuleSyntax&&UC(x))return!1;if(typeof t=="object"){if(t.commonJsModuleIndicator)return!0;if(t.externalModuleIndicator)return!1}return u}function yF(t){switch(t.kind){case 241:case 307:case 268:case 296:return!0;default:return!1}}function _O(t,n,a,u){var m;let g=Pge(t,(m=a.getPackageJsonInfoCache)==null?void 0:m.call(a),u,a.getCompilerOptions()),v,x;return typeof g=="object"&&(v=g.impliedNodeFormat,x=g.packageJsonScope),{path:dd(t,a.getCurrentDirectory(),a.getCanonicalFileName),fileName:t,externalModuleIndicator:n===99?!0:void 0,commonJsModuleIndicator:n===1?!0:void 0,impliedNodeFormat:v,packageJsonScope:x,statements:F,imports:F}}var ble=(t=>(t[t.Named=0]="Named",t[t.Default=1]="Default",t[t.Namespace=2]="Namespace",t[t.CommonJS=3]="CommonJS",t))(ble||{}),X0e=(t=>(t[t.Named=0]="Named",t[t.Default=1]="Default",t[t.ExportEquals=2]="ExportEquals",t[t.UMD=3]="UMD",t))(X0e||{});function sz(t){let n=1,a=Hb(),u=new Map,m=new Map,g,v={isUsableByFile:R=>R===g,isEmpty:()=>!a.size,clear:()=>{a.clear(),u.clear(),g=void 0},add:(R,H,U,$,K,re,X,ne)=>{R!==g&&(v.clear(),g=R);let se;if(K){let Ge=Kj(K.fileName);if(Ge){let{topLevelNodeModulesIndex:he,topLevelPackageNameIndex:Oe,packageRootIndex:Re}=Ge;if(se=xW(qee(K.fileName.substring(Oe+1,Re))),xl(R,K.path.substring(0,he))){let $e=m.get(se),Ke=K.fileName.substring(0,Oe+1);if($e){let qe=$e.indexOf(nP);he>qe&&m.set(se,Ke)}else m.set(se,Ke)}}}let ae=re===1&&E5(H)||H,le=re===0||xH(ae)?Ba(U):Z0e(ae,ne,void 0),Ee=typeof le=="string"?le:le[0],xe=typeof le=="string"?void 0:le[1],be=B2($.name),Le=n++,fe=ym(H,ne),we=H.flags&33554432?void 0:H,Ae=$.flags&33554432?void 0:$;(!we||!Ae)&&u.set(Le,[H,$]),a.add(k(Ee,H,l0(be)?void 0:be,ne),{id:Le,symbolTableKey:U,symbolName:Ee,capitalizedSymbolName:xe,moduleName:be,moduleFile:K,moduleFileName:K?.fileName,packageName:se,exportKind:re,targetFlags:fe.flags,isFromPackageJson:X,symbol:we,moduleSymbol:Ae})},get:(R,H)=>{if(R!==g)return;let U=a.get(H);return U?.map(x)},search:(R,H,U,$)=>{if(R===g)return Km(a,(K,re)=>{let{symbolName:X,ambientModuleName:ne}=T(re),se=H&&K[0].capitalizedSymbolName||X;if(U(se,K[0].targetFlags)){let ae=K.map(x).filter((le,Ee)=>M(le,K[Ee].packageName));if(ae.length){let le=$(ae,se,!!ne,re);if(le!==void 0)return le}}})},releaseSymbols:()=>{u.clear()},onFileChanged:(R,H,U)=>I(R)&&I(H)?!1:g&&g!==H.path||U&&gle(R)!==gle(H)||!ho(R.moduleAugmentations,H.moduleAugmentations)||!A(R,H)?(v.clear(),!0):(g=H.path,!1)};return Se.isDebugging&&Object.defineProperty(v,"__cache",{value:a}),v;function x(R){if(R.symbol&&R.moduleSymbol)return R;let{id:H,exportKind:U,targetFlags:$,isFromPackageJson:K,moduleFileName:re}=R,[X,ne]=u.get(H)||F;if(X&&ne)return{symbol:X,moduleSymbol:ne,moduleFileName:re,exportKind:U,targetFlags:$,isFromPackageJson:K};let se=(K?t.getPackageJsonAutoImportProvider():t.getCurrentProgram()).getTypeChecker(),_e=R.moduleSymbol||ne||Se.checkDefined(R.moduleFile?se.getMergedSymbol(R.moduleFile.symbol):se.tryFindAmbientModule(R.moduleName)),ae=R.symbol||X||Se.checkDefined(U===2?se.resolveExternalModuleSymbol(_e):se.tryGetMemberInModuleExportsAndProperties(Ba(R.symbolTableKey),_e),`Could not find symbol '${R.symbolName}' by key '${R.symbolTableKey}' in module ${_e.name}`);return u.set(H,[ae,_e]),{symbol:ae,moduleSymbol:_e,moduleFileName:re,exportKind:U,targetFlags:$,isFromPackageJson:K}}function k(R,H,U,$){let K=U||"";return`${R.length} ${Nf(ym(H,$))} ${R} ${K}`}function T(R){let H=R.indexOf(" "),U=R.indexOf(" ",H+1),$=parseInt(R.substring(0,H),10),K=R.substring(U+1),re=K.substring(0,$),X=K.substring($+1);return{symbolName:re,ambientModuleName:X===""?void 0:X}}function I(R){return!R.commonJsModuleIndicator&&!R.externalModuleIndicator&&!R.moduleAugmentations&&!R.ambientModuleNames}function A(R,H){if(!ho(R.ambientModuleNames,H.ambientModuleNames))return!1;let U=-1,$=-1;for(let K of H.ambientModuleNames){let re=X=>rb(X)&&X.name.text===K;if(U=_n(R.statements,re,U+1),$=_n(H.statements,re,$+1),R.statements[U]!==H.statements[$])return!1}return!0}function M(R,H){if(!H||!R.moduleFileName)return!0;let U=t.getGlobalTypingsCacheLocation();if(U&&xl(R.moduleFileName,U))return!0;let $=m.get(H);return!$||xl(R.moduleFileName,$)}}function rie(t,n,a,u,m,g,v){var x;if(n===a)return!1;let k=v?.get(n.path,a.path,u,{});if(k?.isBlockedByPackageJsonDependencies!==void 0)return!k.isBlockedByPackageJsonDependencies||!!k.packageName&&fX(n,k.packageName);let T=E4(g),I=(x=g.getGlobalTypingsCacheLocation)==null?void 0:x.call(g),A=!!cF.forEachFileNameOfModule(n.fileName,a.fileName,g,!1,M=>{let R=t.getSourceFile(M);return(R===a||!R)&&oie(n.fileName,M,T,I)});if(m){let M=A?m.getSourceFileInfo(a,g):void 0;return v?.setBlockedByPackageJsonDependencies(n.path,a.path,u,{},M?.packageName,!M?.importable),!!M?.importable||!!M?.packageName&&fX(n,M.packageName)}return A}function fX(t,n){return t.imports&&t.imports.some(a=>a.text===n||a.text.startsWith(n+"/"))}function oie(t,n,a,u){let m=T2(n,v=>sg(v)==="node_modules"?v:void 0),g=m&&Cc(a(m));return g===void 0||xl(a(t),g)||!!u&&xl(a(u),g)}function sie(t,n,a,u,m){var g,v;let x=TG(n),k=a.autoImportFileExcludePatterns&&U7e(a,x);J7e(t.getTypeChecker(),t.getSourceFiles(),k,n,(I,A)=>m(I,A,t,!1));let T=u&&((g=n.getPackageJsonAutoImportProvider)==null?void 0:g.call(n));if(T){let I=mm(),A=t.getTypeChecker();J7e(T.getTypeChecker(),T.getSourceFiles(),k,n,(M,R)=>{(R&&!t.getSourceFile(R.fileName)||!R&&!A.resolveName(M.name,void 0,1536,!1))&&m(M,R,T,!0)}),(v=n.log)==null||v.call(n,`forEachExternalModuleToImportFrom autoImportProvider: ${mm()-I}`)}}function U7e(t,n){return Dc(t.autoImportFileExcludePatterns,a=>{let u=xwe(a,"","exclude");return u?U3(u,n):void 0})}function J7e(t,n,a,u,m){var g;let v=a&&ZEe(a,u);for(let x of t.getAmbientModules())!x.name.includes("*")&&!(a&&((g=x.declarations)!=null&&g.every(k=>v(k.getSourceFile()))))&&m(x,void 0);for(let x of n)Jv(x)&&!v?.(x)&&m(t.getMergedSymbol(x.symbol),x)}function ZEe(t,n){var a;let u=(a=n.getSymlinkCache)==null?void 0:a.call(n).getSymlinkedDirectoriesByRealpath();return({fileName:m,path:g})=>{if(t.some(v=>v.test(m)))return!0;if(u?.size&&vM(m)){let v=Cc(m);return T2(Cc(g),x=>{let k=u.get(Fs(x));if(k)return k.some(T=>t.some(I=>I.test(m.replace(v,T))));v=Cc(v)})??!1}return!1}}function Y0e(t,n){return n.autoImportFileExcludePatterns?ZEe(U7e(n,TG(t)),t):()=>!1}function Q0e(t,n,a,u,m){var g,v,x,k,T;let I=mm();(g=n.getPackageJsonAutoImportProvider)==null||g.call(n);let A=((v=n.getCachedExportInfoMap)==null?void 0:v.call(n))||sz({getCurrentProgram:()=>a,getPackageJsonAutoImportProvider:()=>{var R;return(R=n.getPackageJsonAutoImportProvider)==null?void 0:R.call(n)},getGlobalTypingsCacheLocation:()=>{var R;return(R=n.getGlobalTypingsCacheLocation)==null?void 0:R.call(n)}});if(A.isUsableByFile(t.path))return(x=n.log)==null||x.call(n,"getExportInfoMap: cache hit"),A;(k=n.log)==null||k.call(n,"getExportInfoMap: cache miss or empty; calculating new results");let M=0;try{sie(a,n,u,!0,(R,H,U,$)=>{++M%100===0&&m?.throwIfCancellationRequested();let K=new Map,re=U.getTypeChecker(),X=aie(R,re);X&&EYe(X.symbol,re)&&A.add(t.path,X.symbol,X.exportKind===1?"default":"export=",R,H,X.exportKind,$,re),re.forEachExportAndPropertyOfModule(R,(ne,se)=>{ne!==X?.symbol&&EYe(ne,re)&&HC(K,se)&&A.add(t.path,ne,se,R,H,0,$,re)})})}catch(R){throw A.clear(),R}return(T=n.log)==null||T.call(n,`getExportInfoMap: done in ${mm()-I} ms`),A}function aie(t,n){let a=n.resolveExternalModuleSymbol(t);if(a!==t)return{symbol:a,exportKind:2};let u=n.tryGetMemberInModuleExports("default",t);if(u)return{symbol:u,exportKind:1}}function EYe(t,n){return!n.isUndefinedSymbol(t)&&!n.isUnknownSymbol(t)&&!ZD(t)&&!xse(t)}function Z0e(t,n,a){let u;return _X(t,n,a,(m,g)=>(u=g?[m,g]:m,!0)),Se.checkDefined(u)}function _X(t,n,a,u){let m,g=t,v=new Map;for(;g;){let x=vle(g);if(x){let k=u(x);if(k)return k}if(g.escapedName!=="default"&&g.escapedName!=="export="){let k=u(g.name);if(k)return k}if(m=ar(m,g),!HC(v,g))break;g=g.flags&2097152?n.getImmediateAliasedSymbol(g):void 0}for(let x of m??F)if(x.parent&&xH(x.parent)){let k=u(eie(x.parent,a,!1),eie(x.parent,a,!0));if(k)return k}}function DYe(){let t=LA(99,!1);function n(u,m,g){return WBt(a(u,m,g),u)}function a(u,m,g){let v=0,x=0,k=[],{prefix:T,pushTemplate:I}=HBt(m);u=T+u;let A=T.length;I&&k.push(16),t.setText(u);let M=0,R=[],H=0;do{v=t.scan(),x5(v)||(U(),x=v);let $=t.getTokenEnd();if(jBt(t.getTokenStart(),$,A,qBt(v),R),$>=u.length){let K=yyt(t,v,Y_(k));K!==void 0&&(M=K)}}while(v!==1);function U(){switch(v){case 44:case 69:!q7e[x]&&t.reScanSlashToken()===14&&(v=14);break;case 30:x===80&&H++;break;case 32:H>0&&H--;break;case 133:case 154:case 150:case 136:case 155:H>0&&!g&&(v=80);break;case 16:k.push(v);break;case 19:k.length>0&&k.push(v);break;case 20:if(k.length>0){let $=Y_(k);$===16?(v=t.reScanTemplateToken(!1),v===18?k.pop():Se.assertEqual(v,17,"Should have been a template middle.")):(Se.assertEqual($,19,"Should have been an open brace"),k.pop())}break;default:if(!Gv(v))break;(x===25||Gv(x)&&Gv(v)&&!VBt(x,v))&&(v=80)}}return{endOfLineState:M,spans:R}}return{getClassificationsForLine:n,getEncodedLexicalClassifications:a}}var q7e=Zo([80,11,9,10,14,110,46,47,22,24,20,112,97],t=>t,()=>!0);function yyt(t,n,a){switch(n){case 11:{if(!t.isUnterminated())return;let u=t.getTokenText(),m=u.length-1,g=0;for(;u.charCodeAt(m-g)===92;)g++;return g&1?u.charCodeAt(0)===34?3:2:void 0}case 3:return t.isUnterminated()?1:void 0;default:if(OA(n)){if(!t.isUnterminated())return;switch(n){case 18:return 5;case 15:return 4;default:return Se.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+n)}}return a===16?6:void 0}}function jBt(t,n,a,u,m){if(u===8)return;t===0&&a>0&&(t+=a);let g=n-t;g>0&&m.push(t-a,g,u)}function WBt(t,n){let a=[],u=t.spans,m=0;for(let v=0;v=0){let I=x-m;I>0&&a.push({length:I,classification:4})}a.push({length:k,classification:zBt(T)}),m=x+k}let g=n.length-m;return g>0&&a.push({length:g,classification:4}),{entries:a,finalLexState:t.endOfLineState}}function zBt(t){switch(t){case 1:return 3;case 3:return 1;case 4:return 6;case 25:return 7;case 5:return 2;case 6:return 8;case 8:return 4;case 10:return 0;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return 5;default:return}}function VBt(t,n){if(!P0e(t))return!0;switch(n){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}function HBt(t){switch(t){case 3:return{prefix:`"\\ +`};case 2:return{prefix:`'\\ +`};case 1:return{prefix:`/* +`};case 4:return{prefix:"`\n"};case 5:return{prefix:`} +`,pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return Se.assertNever(t)}}function UBt(t){switch(t){case 42:case 44:case 45:case 40:case 41:case 48:case 49:case 50:case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:case 35:case 36:case 37:case 38:case 51:case 53:case 52:case 56:case 57:case 75:case 74:case 79:case 71:case 72:case 73:case 65:case 66:case 67:case 69:case 70:case 64:case 28:case 61:case 76:case 77:case 78:return!0;default:return!1}}function JBt(t){switch(t){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}function qBt(t){if(Gv(t))return 3;if(UBt(t)||JBt(t))return 5;if(t>=19&&t<=79)return 10;switch(t){case 9:return 4;case 10:return 25;case 11:return 6;case 14:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 80:default:return OA(t)?6:2}}function IYe(t,n,a,u,m){return Syt(eye(t,n,a,u,m))}function vyt(t,n){switch(n){case 267:case 263:case 264:case 262:case 231:case 218:case 219:t.throwIfCancellationRequested()}}function eye(t,n,a,u,m){let g=[];return a.forEachChild(function x(k){if(!(!k||!oZ(m,k.pos,k.getFullWidth()))){if(vyt(n,k.kind),Ai(k)&&!Mm(k)&&u.has(k.escapedText)){let T=t.getSymbolAtLocation(k),I=T&&NYe(T,m9(k),t);I&&v(k.getStart(a),k.getEnd(),I)}k.forEachChild(x)}}),{spans:g,endOfLineState:0};function v(x,k,T){let I=k-x;Se.assert(I>0,`Classification had non-positive length of ${I}`),g.push(x),g.push(I),g.push(T)}}function NYe(t,n,a){let u=t.getFlags();if(u&2885600)return u&32?11:u&384?12:u&524288?16:u&1536?n&4||n&1&&$7e(t)?14:void 0:u&2097152?NYe(a.getAliasedSymbol(t),n,a):n&2?u&64?13:u&262144?15:void 0:void 0}function $7e(t){return En(t.declarations,n=>Dh(n)&&$2(n)===1)}function byt(t){switch(t){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function Syt(t){Se.assert(t.spans.length%3===0);let n=t.spans,a=[];for(let u=0;u])*)(\/>)?)?/m,le=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/g,Ee=n.text.substr(se,_e),xe=ae.exec(Ee);if(!xe||!xe[3]||!(xe[3]in KQ))return!1;let be=se;A(be,xe[1].length),be+=xe[1].length,k(be,xe[2].length,10),be+=xe[2].length,k(be,xe[3].length,21),be+=xe[3].length;let Le=xe[4],fe=be;for(;;){let Ae=le.exec(Le);if(!Ae)break;let Ge=be+Ae.index+Ae[1].length;Ge>fe&&(A(fe,Ge-fe),fe=Ge),k(fe,Ae[2].length,22),fe+=Ae[2].length,Ae[3].length&&(A(fe,Ae[3].length),fe+=Ae[3].length),k(fe,Ae[4].length,5),fe+=Ae[4].length,Ae[5].length&&(A(fe,Ae[5].length),fe+=Ae[5].length),k(fe,Ae[6].length,24),fe+=Ae[6].length}be+=xe[4].length,be>fe&&A(fe,be-fe),xe[5]&&(k(be,xe[5].length,10),be+=xe[5].length);let we=se+_e;return be=0),le>0){let Ee=_e||X(se.kind,se);Ee&&k(ae,le,Ee)}return!0}function re(se){switch(se.parent&&se.parent.kind){case 286:if(se.parent.tagName===se)return 19;break;case 287:if(se.parent.tagName===se)return 20;break;case 285:if(se.parent.tagName===se)return 21;break;case 291:if(se.parent.name===se)return 22;break}}function X(se,_e){if(Gv(se))return 3;if((se===30||se===32)&&_e&&WEe(_e.parent))return 10;if(MH(se)){if(_e){let ae=_e.parent;if(se===64&&(ae.kind===260||ae.kind===172||ae.kind===169||ae.kind===291)||ae.kind===226||ae.kind===224||ae.kind===225||ae.kind===227)return 5}return 10}else{if(se===9)return 4;if(se===10)return 25;if(se===11)return _e&&_e.parent.kind===291?24:6;if(se===14)return 6;if(OA(se))return 6;if(se===12)return 23;if(se===80){if(_e){switch(_e.parent.kind){case 263:return _e.parent.name===_e?11:void 0;case 168:return _e.parent.name===_e?15:void 0;case 264:return _e.parent.name===_e?13:void 0;case 266:return _e.parent.name===_e?12:void 0;case 267:return _e.parent.name===_e?14:void 0;case 169:return _e.parent.name===_e?JA(_e)?3:17:void 0}if(Jx(_e.parent))return 3}return 2}}}function ne(se){if(se&&q$(u,m,se.pos,se.getFullWidth())){vyt(t,se.kind);for(let _e of se.getChildren(n))K(_e)||ne(_e)}}}var Sle;(t=>{function n(be,Le,fe,we,Ae){let Ge=VS(fe,we);if(Ge.parent&&(Y0(Ge.parent)&&Ge.parent.tagName===Ge||I0(Ge.parent))){let{openingElement:he,closingElement:Oe}=Ge.parent.parent,Re=[he,Oe].map(({tagName:$e})=>a($e,fe));return[{fileName:fe.fileName,highlightSpans:Re}]}return u(we,Ge,be,Le,Ae)||m(Ge,fe)}t.getDocumentHighlights=n;function a(be,Le){return{fileName:Le.fileName,textSpan:Cx(be,Le),kind:"none"}}function u(be,Le,fe,we,Ae){let Ge=new Set(Ae.map($e=>$e.fileName)),he=Wm.getReferenceEntriesForNode(be,Le,fe,Ae,we,void 0,Ge);if(!he)return;let Oe=Ql(he.map(Wm.toHighlightSpan),$e=>$e.fileName,$e=>$e.span),Re=U0(fe.useCaseSensitiveFileNames());return tc(up(Oe.entries(),([$e,Ke])=>{if(!Ge.has($e)){if(!fe.redirectTargetsMap.has(dd($e,fe.getCurrentDirectory(),Re)))return;let qe=fe.getSourceFile($e);$e=jt(Ae,_t=>!!_t.redirectInfo&&_t.redirectInfo.redirectTarget===qe).fileName,Se.assert(Ge.has($e))}return{fileName:$e,highlightSpans:Ke}}))}function m(be,Le){let fe=g(be,Le);return fe&&[{fileName:Le.fileName,highlightSpans:fe}]}function g(be,Le){switch(be.kind){case 101:case 93:return aM(be.parent)?le(be.parent,Le):void 0;case 107:return we(be.parent,fm,ne);case 111:return we(be.parent,iO,X);case 113:case 85:case 98:let Ge=be.kind===85?be.parent.parent:be.parent;return we(Ge,Q8,re);case 109:return we(be.parent,hee,K);case 84:case 90:return fL(be.parent)||eP(be.parent)?we(be.parent.parent.parent,hee,K):void 0;case 83:case 88:return we(be.parent,oj,$);case 99:case 117:case 92:return we(be.parent,he=>v8(he,!0),U);case 137:return fe(yl,[137]);case 139:case 153:return fe(O_,[139,153]);case 135:return we(be.parent,YT,se);case 134:return Ae(se(be));case 127:return Ae(_e(be));case 103:case 147:return;default:return z6(be.kind)&&(y1(be.parent)||Zh(be.parent))?Ae(M(be.kind,be.parent)):void 0}function fe(Ge,he){return we(be.parent,Ge,Oe=>{var Re;return Dc((Re=ac(Oe,$x))==null?void 0:Re.symbol.declarations,$e=>Ge($e)?jt($e.getChildren(Le),Ke=>dr(he,Ke.kind)):void 0)})}function we(Ge,he,Oe){return he(Ge)?Ae(Oe(Ge,Le)):void 0}function Ae(Ge){return Ge&&Ge.map(he=>a(he,Le))}}function v(be){return iO(be)?[be]:Q8(be)?Pl(be.catchClause?v(be.catchClause):be.tryBlock&&v(be.tryBlock),be.finallyBlock&&v(be.finallyBlock)):iu(be)?void 0:T(be,v)}function x(be){let Le=be;for(;Le.parent;){let fe=Le.parent;if(z7(fe)||fe.kind===307)return fe;if(Q8(fe)&&fe.tryBlock===Le&&fe.catchClause)return Le;Le=fe}}function k(be){return oj(be)?[be]:iu(be)?void 0:T(be,k)}function T(be,Le){let fe=[];return be.forEachChild(we=>{let Ae=Le(we);Ae!==void 0&&fe.push(...LS(Ae))}),fe}function I(be,Le){let fe=A(Le);return!!fe&&fe===be}function A(be){return go(be,Le=>{switch(Le.kind){case 255:if(be.kind===251)return!1;case 248:case 249:case 250:case 247:case 246:return!be.label||xe(Le,be.label.escapedText);default:return iu(Le)&&"quit"}})}function M(be,Le){return Dc(R(Le,Vy(be)),fe=>FM(fe,be))}function R(be,Le){let fe=be.parent;switch(fe.kind){case 268:case 307:case 241:case 296:case 297:return Le&64&&D0(be)?[...be.members,be]:fe.statements;case 176:case 174:case 262:return[...fe.parameters,...bc(fe.parent)?fe.parent.members:[]];case 263:case 231:case 264:case 187:let we=fe.members;if(Le&15){let Ae=jt(fe.members,yl);if(Ae)return[...we,...Ae.parameters]}else if(Le&64)return[...we,fe];return we;default:return}}function H(be,Le,...fe){return Le&&dr(fe,Le.kind)?(be.push(Le),!0):!1}function U(be){let Le=[];if(H(Le,be.getFirstToken(),99,117,92)&&be.kind===246){let fe=be.getChildren();for(let we=fe.length-1;we>=0&&!H(Le,fe[we],117);we--);}return ee(k(be.statement),fe=>{I(be,fe)&&H(Le,fe.getFirstToken(),83,88)}),Le}function $(be){let Le=A(be);if(Le)switch(Le.kind){case 248:case 249:case 250:case 246:case 247:return U(Le);case 255:return K(Le)}}function K(be){let Le=[];return H(Le,be.getFirstToken(),109),ee(be.caseBlock.clauses,fe=>{H(Le,fe.getFirstToken(),84,90),ee(k(fe),we=>{I(be,we)&&H(Le,we.getFirstToken(),83)})}),Le}function re(be,Le){let fe=[];if(H(fe,be.getFirstToken(),113),be.catchClause&&H(fe,be.catchClause.getFirstToken(),85),be.finallyBlock){let we=Np(be,98,Le);H(fe,we,98)}return fe}function X(be,Le){let fe=x(be);if(!fe)return;let we=[];return ee(v(fe),Ae=>{we.push(Np(Ae,111,Le))}),z7(fe)&&Gb(fe,Ae=>{we.push(Np(Ae,107,Le))}),we}function ne(be,Le){let fe=BS(be);if(!fe)return;let we=[];return Gb($d(fe.body,qu),Ae=>{we.push(Np(Ae,107,Le))}),ee(v(fe.body),Ae=>{we.push(Np(Ae,111,Le))}),we}function se(be){let Le=BS(be);if(!Le)return;let fe=[];return Le.modifiers&&Le.modifiers.forEach(we=>{H(fe,we,134)}),_d(Le,we=>{ae(we,Ae=>{YT(Ae)&&H(fe,Ae.getFirstToken(),135)})}),fe}function _e(be){let Le=BS(be);if(!Le)return;let fe=[];return _d(Le,we=>{ae(we,Ae=>{hae(Ae)&&H(fe,Ae.getFirstToken(),127)})}),fe}function ae(be,Le){Le(be),!iu(be)&&!bc(be)&&!ky(be)&&!Dh(be)&&!k1(be)&&!Qa(be)&&_d(be,fe=>ae(fe,Le))}function le(be,Le){let fe=Ee(be,Le),we=[];for(let Ae=0;Ae=Ge.end;Re--)if(!_k(Le.text.charCodeAt(Re))){Oe=!1;break}if(Oe){we.push({fileName:Le.fileName,textSpan:cg(Ge.getStart(),he.end),kind:"reference"}),Ae++;continue}}we.push(a(fe[Ae],Le))}return we}function Ee(be,Le){let fe=[];for(;aM(be.parent)&&be.parent.elseStatement===be;)be=be.parent;for(;;){let we=be.getChildren(Le);H(fe,we[0],101);for(let Ae=we.length-1;Ae>=0&&!H(fe,we[Ae],93);Ae--);if(!be.elseStatement||!aM(be.elseStatement))break;be=be.elseStatement}return fe}function xe(be,Le){return!!go(be.parent,fe=>dL(fe)?fe.label.escapedText===Le:"quit")}})(Sle||(Sle={}));function pX(t){return!!t.sourceFile}function xle(t,n,a){return mX(t,n,a)}function mX(t,n="",a,u){let m=new Map,g=U0(!!t);function v(){let $=tc(m.keys()).filter(K=>K&&K.charAt(0)==="_").map(K=>{let re=m.get(K),X=[];return re.forEach((ne,se)=>{pX(ne)?X.push({name:se,scriptKind:ne.sourceFile.scriptKind,refCount:ne.languageServiceRefCount}):ne.forEach((_e,ae)=>X.push({name:se,scriptKind:ae,refCount:_e.languageServiceRefCount}))}),X.sort((ne,se)=>se.refCount-ne.refCount),{bucket:K,sourceFiles:X}});return JSON.stringify($,void 0,2)}function x($){return typeof $.getCompilationSettings=="function"?$.getCompilationSettings():$}function k($,K,re,X,ne,se){let _e=dd($,n,g),ae=tye(x(K));return T($,_e,K,ae,re,X,ne,se)}function T($,K,re,X,ne,se,_e,ae){return R($,K,re,X,ne,se,!0,_e,ae)}function I($,K,re,X,ne,se){let _e=dd($,n,g),ae=tye(x(K));return A($,_e,K,ae,re,X,ne,se)}function A($,K,re,X,ne,se,_e,ae){return R($,K,x(re),X,ne,se,!1,_e,ae)}function M($,K){let re=pX($)?$:$.get(Se.checkDefined(K,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return Se.assert(K===void 0||!re||re.sourceFile.scriptKind===K,`Script kind should match provided ScriptKind:${K} and sourceFile.scriptKind: ${re?.sourceFile.scriptKind}, !entry: ${!re}`),re}function R($,K,re,X,ne,se,_e,ae,le){var Ee,xe,be,Le;ae=Xse($,ae);let fe=x(re),we=re===fe?void 0:re,Ae=ae===6?100:h_(fe),Ge=typeof le=="object"?le:{languageVersion:Ae,impliedNodeFormat:we&&jK(K,(Le=(be=(xe=(Ee=we.getCompilerHost)==null?void 0:Ee.call(we))==null?void 0:xe.getModuleResolutionCache)==null?void 0:be.call(xe))==null?void 0:Le.getPackageJsonInfoCache(),we,fe),setExternalModuleIndicator:kme(fe),jsDocParsingMode:a};Ge.languageVersion=Ae,Se.assertEqual(a,Ge.jsDocParsingMode);let he=m.size,Oe=iye(X,Ge.impliedNodeFormat),Re=Hv(m,Oe,()=>new Map);if(us){m.size>he&&us.instant(us.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:fe.configFilePath,key:Oe});let rt=!ey(K)&&Km(m,(_t,ft)=>ft!==Oe&&_t.has(K)&&ft);rt&&us.instant(us.Phase.Session,"documentRegistryBucketOverlap",{path:K,key1:rt,key2:Oe})}let $e=Re.get(K),Ke=$e&&M($e,ae);if(!Ke&&u){let rt=u.getDocument(Oe,K);rt&&rt.scriptKind===ae&&rt.text===PM(ne)&&(Se.assert(_e),Ke={sourceFile:rt,languageServiceRefCount:0},qe())}if(Ke)Ke.sourceFile.version!==se&&(Ke.sourceFile=qDe(Ke.sourceFile,ne,se,ne.getChangeRange(Ke.sourceFile.scriptSnapshot)),u&&u.setDocument(Oe,K,Ke.sourceFile)),_e&&Ke.languageServiceRefCount++;else{let rt=JDe($,ne,Ge,se,!1,ae);u&&u.setDocument(Oe,K,rt),Ke={sourceFile:rt,languageServiceRefCount:1},qe()}return Se.assert(Ke.languageServiceRefCount!==0),Ke.sourceFile;function qe(){if(!$e)Re.set(K,Ke);else if(pX($e)){let rt=new Map;rt.set($e.sourceFile.scriptKind,$e),rt.set(ae,Ke),Re.set(K,rt)}else $e.set(ae,Ke)}}function H($,K,re,X){let ne=dd($,n,g),se=tye(K);return U(ne,se,re,X)}function U($,K,re,X){let ne=Se.checkDefined(m.get(iye(K,X))),se=ne.get($),_e=M(se,re);_e.languageServiceRefCount--,Se.assert(_e.languageServiceRefCount>=0),_e.languageServiceRefCount===0&&(pX(se)?ne.delete($):(se.delete(re),se.size===1&&ne.set($,Xe(se.values(),ps))))}return{acquireDocument:k,acquireDocumentWithKey:T,updateDocument:I,updateDocumentWithKey:A,releaseDocument:H,releaseDocumentWithKey:U,getKeyForCompilationSettings:tye,getDocumentRegistryBucketKeyWithMode:iye,reportStats:v,getBuckets:()=>m}}function tye(t){return V8e(t,Dee)}function iye(t,n){return n?`${t}|${n}`:t}function nye(t,n,a,u,m,g,v){let x=TG(u),k=U0(x),T=rye(n,a,k,v),I=rye(a,n,k,v);return Gs.ChangeTracker.with({host:u,formatContext:m,preferences:g},A=>{G7e(t,A,T,n,a,u.getCurrentDirectory(),x),$Bt(t,A,T,I,u,k)})}function rye(t,n,a,u){let m=a(t);return v=>{let x=u&&u.tryGetSourcePosition({fileName:v,pos:0}),k=g(x?x.fileName:v);return x?k===void 0?void 0:PYe(x.fileName,k,v,a):k};function g(v){if(a(v)===m)return n;let x=Nme(v,m,a);return x===void 0?void 0:n+"/"+x}}function PYe(t,n,a,u){let m=j$(t,n,u);return LYe(Cc(a),m)}function G7e(t,n,a,u,m,g,v){let{configFile:x}=t.getCompilerOptions();if(!x)return;let k=Cc(x.fileName),T=cG(x);if(!T)return;FYe(T,(R,H)=>{switch(H){case"files":case"include":case"exclude":{if(I(R)||H!=="include"||!Yg(R.initializer))return;let $=Dc(R.initializer.elements,re=>Kf(re)?re.text:void 0);if($.length===0)return;let K=Kse(k,[],$,v,g);U3(Se.checkDefined(K.includeFilePattern),v).test(u)&&!U3(Se.checkDefined(K.includeFilePattern),v).test(m)&&n.insertNodeAfter(x,Bu(R.initializer.elements),Me.createStringLiteral(M(m)));return}case"compilerOptions":FYe(R.initializer,(U,$)=>{let K=b8e($);Se.assert(K?.type!=="listOrElement"),K&&(K.isFilePath||K.type==="list"&&K.element.isFilePath)?I(U):$==="paths"&&FYe(U.initializer,re=>{if(Yg(re.initializer))for(let X of re.initializer.elements)A(X)})});return}});function I(R){let H=Yg(R.initializer)?R.initializer.elements:[R.initializer],U=!1;for(let $ of H)U=A($)||U;return U}function A(R){if(!Kf(R))return!1;let H=LYe(k,R.text),U=a(H);return U!==void 0?(n.replaceRangeWithText(x,OYe(R,x),M(U)),!0):!1}function M(R){return w2(k,R,!v)}}function $Bt(t,n,a,u,m,g){let v=t.getSourceFiles();for(let x of v){let k=a(x.fileName),T=k??x.fileName,I=Cc(T),A=u(x.fileName),M=A||x.fileName,R=Cc(M),H=k!==void 0||A!==void 0;XBt(x,n,U=>{if(!t_(U))return;let $=LYe(R,U),K=a($);return K===void 0?void 0:FE(w2(I,K,g))},U=>{let $=t.getTypeChecker().getSymbolAtLocation(U);if($?.declarations&&$.declarations.some(re=>nb(re)))return;let K=A!==void 0?K7e(U,TK(U.text,M,t.getCompilerOptions(),m),a,v):KBt($,U,x,t,m,a);return K!==void 0&&(K.updated||H&&t_(U.text))?cF.updateModuleSpecifier(t.getCompilerOptions(),x,T,K.newFileName,XW(t,m),U.text):void 0})}}function GBt(t,n){return Kd(Ps(t,n))}function LYe(t,n){return FE(GBt(t,n))}function KBt(t,n,a,u,m,g){if(t){let v=jt(t.declarations,ul).fileName,x=g(v);return x===void 0?{newFileName:v,updated:!1}:{newFileName:x,updated:!0}}else{let v=u.getModeForUsageLocation(a,n),x=m.resolveModuleNameLiterals||!m.resolveModuleNames?u.getResolvedModuleFromModuleSpecifier(n,a):m.getResolvedModuleWithFailedLookupLocationsFromCache&&m.getResolvedModuleWithFailedLookupLocationsFromCache(n.text,a.fileName,v);return K7e(n,x,g,u.getSourceFiles())}}function K7e(t,n,a,u){if(!n)return;if(n.resolvedModule){let k=x(n.resolvedModule.resolvedFileName);if(k)return k}let m=ee(n.failedLookupLocations,g)||t_(t.text)&&ee(n.failedLookupLocations,v);if(m)return m;return n.resolvedModule&&{newFileName:n.resolvedModule.resolvedFileName,updated:!1};function g(k){let T=a(k);return T&&jt(u,I=>I.fileName===T)?v(k):void 0}function v(k){return xh(k,"/package.json")?void 0:x(k)}function x(k){let T=a(k);return T&&{newFileName:T,updated:!0}}}function XBt(t,n,a,u){for(let m of t.referencedFiles||F){let g=a(m.fileName);g!==void 0&&g!==t.text.slice(m.pos,m.end)&&n.replaceRangeWithText(t,m,g)}for(let m of t.imports){let g=u(m);g!==void 0&&g!==m.text&&n.replaceRangeWithText(t,OYe(m,t),g)}}function OYe(t,n){return tT(t.getStart(n)+1,t.end-1)}function FYe(t,n){if(Ld(t))for(let a of t.properties)Ih(a)&&Kf(a.name)&&n(a,a.name.text)}var tDe=(t=>(t[t.exact=0]="exact",t[t.prefix=1]="prefix",t[t.substring=2]="substring",t[t.camelCase=3]="camelCase",t))(tDe||{});function hX(t,n){return{kind:t,isCaseSensitive:n}}function oye(t){let n=new Map,a=t.trim().split(".").map(u=>QBt(u.trim()));if(a.length===1&&a[0].totalTextChunk.text==="")return{getMatchForLastSegmentOfPattern:()=>hX(2,!0),getFullMatch:()=>hX(2,!0),patternContainsDots:!1};if(!a.some(u=>!u.subWordTextChunks.length))return{getFullMatch:(u,m)=>Cle(u,m,a,n),getMatchForLastSegmentOfPattern:u=>Y7e(u,Bu(a),n),patternContainsDots:a.length>1}}function Cle(t,n,a,u){if(!Y7e(n,Bu(a),u)||a.length-1>t.length)return;let g;for(let v=a.length-2,x=t.length-1;v>=0;v-=1,x-=1)g=MYe(g,Y7e(t[x],a[v],u));return g}function X7e(t,n){let a=n.get(t);return a||n.set(t,a=iDe(t)),a}function xyt(t,n,a){let u=cie(t,n.textLowerCase);if(u===0)return hX(n.text.length===t.length?0:1,xl(t,n.text));if(n.isLowerCase){if(u===-1)return;let m=X7e(t,a);for(let g of m)if(Q7e(t,g,n.text,!0))return hX(2,Q7e(t,g,n.text,!1));if(n.text.length0)return hX(2,!0);if(n.characterSpans.length>0){let m=X7e(t,a),g=Z7e(t,m,n,!1)?!0:Z7e(t,m,n,!0)?!1:void 0;if(g!==void 0)return hX(3,g)}}}function Y7e(t,n,a){if(iMe(n.totalTextChunk.text,g=>g!==32&&g!==42)){let g=xyt(t,n.totalTextChunk,a);if(g)return g}let u=n.subWordTextChunks,m;for(let g of u)m=MYe(m,xyt(t,g,a));return m}function MYe(t,n){return dCe([t,n],RYe)}function RYe(t,n){return t===void 0?1:n===void 0?-1:m_(t.kind,n.kind)||QI(!t.isCaseSensitive,!n.isCaseSensitive)}function Q7e(t,n,a,u,m={start:0,length:a.length}){return m.length<=n.length&&wyt(0,m.length,g=>YBt(a.charCodeAt(m.start+g),t.charCodeAt(n.start+g),u))}function YBt(t,n,a){return a?eMe(t)===eMe(n):t===n}function Z7e(t,n,a,u){let m=a.characterSpans,g=0,v=0,x,k;for(;;){if(v===m.length)return!0;if(g===n.length)return!1;let T=n[g],I=!1;for(;v=65&&t<=90)return!0;if(t<127||!yke(t,99))return!1;let n=String.fromCharCode(t);return n===n.toUpperCase()}function Cyt(t){if(t>=97&&t<=122)return!0;if(t<127||!yke(t,99))return!1;let n=String.fromCharCode(t);return n===n.toLowerCase()}function cie(t,n){let a=t.length-n.length;for(let u=0;u<=a;u++)if(iMe(n,(m,g)=>eMe(t.charCodeAt(g+u))===m))return u;return-1}function eMe(t){return t>=65&&t<=90?97+(t-65):t<127?t:String.fromCharCode(t).toLowerCase().charCodeAt(0)}function BYe(t){return t>=48&&t<=57}function jYe(t){return gX(t)||Cyt(t)||BYe(t)||t===95||t===36}function WYe(t){let n=[],a=0,u=0;for(let m=0;m0&&(n.push(zYe(t.substr(a,u))),u=0)}return u>0&&n.push(zYe(t.substr(a,u))),n}function zYe(t){let n=t.toLowerCase();return{text:t,textLowerCase:n,isLowerCase:t===n,characterSpans:VYe(t)}}function VYe(t){return tMe(t,!1)}function iDe(t){return tMe(t,!0)}function tMe(t,n){let a=[],u=0;for(let m=1;mnDe(u)&&u!==95,n,a)}function UYe(t,n,a){return n!==a&&n+1n(t.charCodeAt(m),m))}function JYe(t,n=!0,a=!1){let u={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},m=[],g,v,x,k=0,T=!1;function I(){return v=x,x=rS.scan(),x===19?k++:x===20&&k--,x}function A(){let se=rS.getTokenValue(),_e=rS.getTokenStart();return{fileName:se,pos:_e,end:_e+se.length}}function M(){g||(g=[]),g.push({ref:A(),depth:k})}function R(){m.push(A()),H()}function H(){k===0&&(T=!0)}function U(){let se=rS.getToken();return se===138?(se=I(),se===144&&(se=I(),se===11&&M()),!0):!1}function $(){if(v===25)return!1;let se=rS.getToken();if(se===102){if(se=I(),se===21){if(se=I(),se===11||se===15)return R(),!0}else{if(se===11)return R(),!0;if(se===156&&rS.lookAhead(()=>{let ae=rS.scan();return ae!==161&&(ae===42||ae===19||ae===80||Gv(ae))})&&(se=I()),se===80||Gv(se))if(se=I(),se===161){if(se=I(),se===11)return R(),!0}else if(se===64){if(re(!0))return!0}else if(se===28)se=I();else return!0;if(se===19){for(se=I();se!==20&&se!==1;)se=I();se===20&&(se=I(),se===161&&(se=I(),se===11&&R()))}else se===42&&(se=I(),se===130&&(se=I(),(se===80||Gv(se))&&(se=I(),se===161&&(se=I(),se===11&&R()))))}return!0}return!1}function K(){let se=rS.getToken();if(se===95){if(H(),se=I(),se===156&&rS.lookAhead(()=>{let ae=rS.scan();return ae===42||ae===19})&&(se=I()),se===19){for(se=I();se!==20&&se!==1;)se=I();se===20&&(se=I(),se===161&&(se=I(),se===11&&R()))}else if(se===42)se=I(),se===161&&(se=I(),se===11&&R());else if(se===102&&(se=I(),se===156&&rS.lookAhead(()=>{let ae=rS.scan();return ae===80||Gv(ae)})&&(se=I()),(se===80||Gv(se))&&(se=I(),se===64&&re(!0))))return!0;return!0}return!1}function re(se,_e=!1){let ae=se?I():rS.getToken();return ae===149?(ae=I(),ae===21&&(ae=I(),(ae===11||_e&&ae===15)&&R()),!0):!1}function X(){let se=rS.getToken();if(se===80&&rS.getTokenValue()==="define"){if(se=I(),se!==21)return!0;if(se=I(),se===11||se===15)if(se=I(),se===28)se=I();else return!0;if(se!==23)return!0;for(se=I();se!==24&&se!==1;)(se===11||se===15)&&R(),se=I();return!0}return!1}function ne(){for(rS.setText(t),I();rS.getToken()!==1;){if(rS.getToken()===16){let se=[rS.getToken()];e:for(;Z(se);){let _e=rS.scan();switch(_e){case 1:break e;case 102:$();break;case 16:se.push(_e);break;case 19:Z(se)&&se.push(_e);break;case 20:Z(se)&&(Y_(se)===16?rS.reScanTemplateToken(!1)===18&&se.pop():se.pop());break}}I()}U()||$()||K()||a&&(re(!1,!0)||X())||I()}rS.setText(void 0)}if(n&&ne(),hhe(u,t),iTe(u,Za),T){if(g)for(let se of g)m.push(se.ref);return{referencedFiles:u.referencedFiles,typeReferenceDirectives:u.typeReferenceDirectives,libReferenceDirectives:u.libReferenceDirectives,importedFiles:m,isLibFile:!!u.hasNoDefaultLib,ambientExternalModules:void 0}}else{let se;if(g)for(let _e of g)_e.depth===0?(se||(se=[]),se.push(_e.ref.fileName)):m.push(_e.ref);return{referencedFiles:u.referencedFiles,typeReferenceDirectives:u.typeReferenceDirectives,libReferenceDirectives:u.libReferenceDirectives,importedFiles:m,isLibFile:!!u.hasNoDefaultLib,ambientExternalModules:se}}}var nMe=/^data:(?:application\/json;charset=[uU][tT][fF]-8;base64,([A-Za-z0-9+/=]+)$)?/;function rMe(t){let n=U0(t.useCaseSensitiveFileNames()),a=t.getCurrentDirectory(),u=new Map,m=new Map;return{tryGetSourcePosition:x,tryGetGeneratedPosition:k,toLineColumnOffset:M,clearCache:R,documentPositionMappers:m};function g(H){return dd(H,a,n)}function v(H,U){let $=g(H),K=m.get($);if(K)return K;let re;if(t.getDocumentPositionMapper)re=t.getDocumentPositionMapper(H,U);else if(t.readFile){let X=A(H);re=X&&oMe({getSourceFileLike:A,getCanonicalFileName:n,log:ne=>t.log(ne)},H,iS(X.text,P6(X)),ne=>!t.fileExists||t.fileExists(ne)?t.readFile(ne):void 0)}return m.set($,re||mFe),re||mFe}function x(H){if(!ey(H.fileName)||!T(H.fileName))return;let $=v(H.fileName).getSourcePosition(H);return!$||$===H?void 0:x($)||$}function k(H){if(ey(H.fileName))return;let U=T(H.fileName);if(!U)return;let $=t.getProgram();if($.isSourceOfProjectReferenceRedirect(U.fileName))return;let re=$.getCompilerOptions().outFile,X=re?Qx(re)+".d.ts":JH(H.fileName,$.getCompilerOptions(),$);if(X===void 0)return;let ne=v(X,H.fileName).getGeneratedPosition(H);return ne===H?void 0:ne}function T(H){let U=t.getProgram();if(!U)return;let $=g(H),K=U.getSourceFileByPath($);return K&&K.resolvedPath===$?K:void 0}function I(H){let U=g(H),$=u.get(U);if($!==void 0)return $||void 0;if(!t.readFile||t.fileExists&&!t.fileExists(H)){u.set(U,!1);return}let K=t.readFile(H),re=K?aMe(K):!1;return u.set(U,re),re||void 0}function A(H){return t.getSourceFileLike?t.getSourceFileLike(H):T(H)||I(H)}function M(H,U){return A(H).getLineAndCharacterOfPosition(U)}function R(){u.clear(),m.clear()}}function oMe(t,n,a,u){let m=Gee(a);if(m){let x=nMe.exec(m);if(x){if(x[1]){let k=x[1];return sMe(t,cwe(hy,k),n)}m=void 0}}let g=[];m&&g.push(m),g.push(n+".map");let v=m&&tu(m,Cc(n));for(let x of g){let k=tu(x,Cc(n)),T=u(k,v);if(Yu(T))return sMe(t,T,k);if(T!==void 0)return T||void 0}}function sMe(t,n,a){let u=RKe(n);if(!(!u||!u.sources||!u.file||!u.mappings)&&!(u.sourcesContent&&u.sourcesContent.some(Yu)))return QTe(t,u,a)}function aMe(t,n){return{text:t,lineMap:n,getLineAndCharacterOfPosition(a){return Bd(P6(this),a)}}}var cMe=new Map;function lMe(t,n,a){var u;n.getSemanticDiagnostics(t,a);let m=[],g=n.getTypeChecker();!(n.getImpliedNodeFormatForEmit(t)===1||gg(t.fileName,[".cts",".cjs"]))&&t.commonJsModuleIndicator&&(Rte(n)||M0e(n.getCompilerOptions()))&&qYe(t)&&m.push(ws(tjt(t.commonJsModuleIndicator),j.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));let x=$v(t);if(cMe.clear(),k(t),cU(n.getCompilerOptions()))for(let T of t.imports){let I=pG(T),A=ZBt(I);if(!A)continue;let M=(u=n.getResolvedModuleFromModuleSpecifier(T,t))==null?void 0:u.resolvedModule,R=M&&n.getSourceFile(M.resolvedFileName);R&&R.externalModuleIndicator&&R.externalModuleIndicator!==!0&&Bm(R.externalModuleIndicator)&&R.externalModuleIndicator.isExportEquals&&m.push(ws(A,j.Import_may_be_converted_to_a_default_import))}return Ho(m,t.bindSuggestionDiagnostics),Ho(m,n.getSuggestionDiagnostics(t,a)),m.sort((T,I)=>T.start-I.start),m;function k(T){if(x)Eyt(T,g)&&m.push(ws($c(T.parent)?T.parent.name:T,j.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(Zh(T)&&T.parent===t&&T.declarationList.flags&2&&T.declarationList.declarations.length===1){let A=T.declarationList.declarations[0].initializer;A&&es(A,!0)&&m.push(ws(A,j.require_call_may_be_converted_to_an_import))}let I=vb.getJSDocTypedefNodes(T);for(let A of I)m.push(ws(A,j.JSDoc_typedef_may_be_converted_to_TypeScript_type));vb.parameterShouldGetTypeFromJSDoc(T)&&m.push(ws(T.name||T,j.JSDoc_types_may_be_moved_to_TypeScript_types))}aDe(T)&&Tyt(T,g,m),T.forEachChild(k)}}function qYe(t){return t.statements.some(n=>{switch(n.kind){case 243:return n.declarationList.declarations.some(a=>!!a.initializer&&es(rDe(a.initializer),!0));case 244:{let{expression:a}=n;if(!ms(a))return es(a,!0);let u=wh(a);return u===1||u===2}default:return!1}})}function rDe(t){return ba(t)?rDe(t.expression):t}function ZBt(t){switch(t.kind){case 272:let{importClause:n,moduleSpecifier:a}=t;return n&&!n.name&&n.namedBindings&&n.namedBindings.kind===274&&Kf(a)?n.namedBindings.name:void 0;case 271:return t.name;default:return}}function Tyt(t,n,a){ejt(t,n)&&!cMe.has(GYe(t))&&a.push(ws(!t.name&&$c(t.parent)&&Ai(t.parent.name)?t.parent.name:t,j.This_may_be_converted_to_an_async_function))}function ejt(t,n){return!BZ(t)&&t.body&&qu(t.body)&&dMe(t.body,n)&&uMe(t,n)}function uMe(t,n){let a=n.getSignatureFromDeclaration(t),u=a?n.getReturnTypeOfSignature(a):void 0;return!!u&&!!n.getPromisedTypeOfPromise(u)}function tjt(t){return ms(t)?t.left:t}function dMe(t,n){return!!Gb(t,a=>oDe(a,n))}function oDe(t,n){return fm(t)&&!!t.expression&&fMe(t.expression,n)}function fMe(t,n){if(!sye(t)||!sDe(t)||!t.arguments.every(u=>$Ye(u,n)))return!1;let a=t.expression.expression;for(;sye(a)||ba(a);)if(Od(a)){if(!sDe(a)||!a.arguments.every(u=>$Ye(u,n)))return!1;a=a.expression.expression}else a=a.expression;return!0}function sye(t){return Od(t)&&(Nte(t,"then")||Nte(t,"catch")||Nte(t,"finally"))}function sDe(t){let n=t.expression.name.text,a=n==="then"?2:n==="catch"||n==="finally"?1:0;return t.arguments.length>a?!1:t.arguments.lengthu.kind===106||Ai(u)&&u.text==="undefined")}function $Ye(t,n){switch(t.kind){case 262:case 218:if(Gg(t)&1)return!1;case 219:cMe.set(GYe(t),!0);case 106:return!0;case 80:case 211:{let u=n.getSymbolAtLocation(t);return u?n.isUndefinedSymbol(u)||En(ym(u,n).declarations,m=>iu(m)||yg(m)&&!!m.initializer&&iu(m.initializer)):!1}default:return!1}}function GYe(t){return`${t.pos.toString()}:${t.end.toString()}`}function Eyt(t,n){var a,u,m,g;if(yd(t)){if($c(t.parent)&&((a=t.symbol.members)!=null&&a.size))return!0;let v=n.getSymbolOfExpando(t,!1);return!!(v&&((u=v.exports)!=null&&u.size||(m=v.members)!=null&&m.size))}return fp(t)?!!((g=t.symbol.members)!=null&&g.size):!1}function aDe(t){switch(t.kind){case 262:case 174:case 218:case 219:return!0;default:return!1}}var ijt=new Set(["isolatedModules"]);function aye(t,n){return lye(t,n,!1)}function Dyt(t,n){return lye(t,n,!0)}var KYe=`/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number {} +interface Object {} +interface RegExp {} +interface String {} +interface Array { length: number; [n: number]: T; } +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +}`,cye="lib.d.ts",XYe;function lye(t,n,a){XYe??(XYe=AU(cye,KYe,{languageVersion:99}));let u=[],m=n.compilerOptions?cDe(n.compilerOptions,u):{},g=Eye();for(let U in g)bf(g,U)&&m[U]===void 0&&(m[U]=g[U]);for(let U of hW)m.verbatimModuleSyntax&&ijt.has(U.name)||(m[U.name]=U.transpileOptionValue);m.suppressOutputPathCheck=!0,m.allowNonTsExtensions=!0,a?(m.declaration=!0,m.emitDeclarationOnly=!0,m.isolatedDeclarations=!0):(m.declaration=!1,m.declarationMap=!1);let v=W2(m),x={getSourceFile:U=>U===Kd(k)?T:U===Kd(cye)?XYe:void 0,writeFile:(U,$)=>{Wh(U,".map")?(Se.assertEqual(A,void 0,"Unexpected multiple source map outputs, file:",U),A=$):(Se.assertEqual(I,void 0,"Unexpected multiple outputs, file:",U),I=$)},getDefaultLibFileName:()=>cye,useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:U=>U,getCurrentDirectory:()=>"",getNewLine:()=>v,fileExists:U=>U===k||!!a&&U===cye,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},k=n.fileName||(n.compilerOptions&&n.compilerOptions.jsx?"module.tsx":"module.ts"),T=AU(k,t,{languageVersion:h_(m),impliedNodeFormat:jK(dd(k,"",x.getCanonicalFileName),void 0,x,m),setExternalModuleIndicator:kme(m),jsDocParsingMode:n.jsDocParsingMode??0});n.moduleName&&(T.moduleName=n.moduleName),n.renamedDependencies&&(T.renamedDependencies=new Map(Object.entries(n.renamedDependencies)));let I,A,R=f9(a?[k,cye]:[k],m,x);n.reportDiagnostics&&(Ho(u,R.getSyntacticDiagnostics(T)),Ho(u,R.getOptionsDiagnostics()));let H=R.emit(void 0,void 0,void 0,a,n.transformers,a);return Ho(u,H.diagnostics),I===void 0?Se.fail("Output generation failed"):{outputText:I,diagnostics:u,sourceMapText:A}}function _Me(t,n,a,u,m){let g=aye(t,{compilerOptions:n,fileName:a,reportDiagnostics:!!u,moduleName:m});return Ho(u,g.diagnostics),g.outputText}var pMe;function cDe(t,n){pMe=pMe||Qn(zS,a=>typeof a.type=="object"&&!Km(a.type,u=>typeof u!="number")),t=ZK(t);for(let a of pMe){if(!bf(t,a.name))continue;let u=t[a.name];Yu(u)?t[a.name]=zae(a,u,n):Km(a.type,m=>m===u)||n.push(lTe(a))}return t}var lDe={};d(lDe,{getNavigateToItems:()=>uDe});function uDe(t,n,a,u,m,g,v){let x=oye(u);if(!x)return F;let k=[],T=t.length===1?t[0]:void 0;for(let I of t)a.throwIfCancellationRequested(),!(g&&I.isDeclarationFile)&&(mMe(I,!!v,T)||I.getNamedDeclarations().forEach((A,M)=>{Iyt(x,M,A,n,I.fileName,!!v,T,k)}));return k.sort(Pyt),(m===void 0?k:k.slice(0,m)).map(rjt)}function mMe(t,n,a){return t!==a&&n&&(cX(t.path)||t.hasNoDefaultLib)}function Iyt(t,n,a,u,m,g,v,x){let k=t.getMatchForLastSegmentOfPattern(n);if(k){for(let T of a)if(Nyt(T,u,g,v))if(t.patternContainsDots){let I=t.getFullMatch(QYe(T),n);I&&x.push({name:n,fileName:m,matchKind:I.kind,isCaseSensitive:I.isCaseSensitive,declaration:T})}else x.push({name:n,fileName:m,matchKind:k.kind,isCaseSensitive:k.isCaseSensitive,declaration:T})}}function Nyt(t,n,a,u){var m;switch(t.kind){case 273:case 276:case 271:let g=n.getSymbolAtLocation(t.name),v=n.getAliasedSymbol(g);return g.escapedName!==v.escapedName&&!((m=v.declarations)!=null&&m.every(x=>mMe(x.getSourceFile(),a,u)));default:return!0}}function njt(t,n){let a=Nu(t);return!!a&&(Ayt(a,n)||a.kind===167&&YYe(a.expression,n))}function YYe(t,n){return Ayt(t,n)||ba(t)&&(n.push(t.name.text),!0)&&YYe(t.expression,n)}function Ayt(t,n){return Xp(t)&&(n.push(jC(t)),!0)}function QYe(t){let n=[],a=Nu(t);if(a&&a.kind===167&&!YYe(a.expression,n))return F;n.shift();let u=hF(t);for(;u;){if(!njt(u,n))return F;u=hF(u)}return n.reverse(),n}function Pyt(t,n){return m_(t.matchKind,n.matchKind)||WQ(t.name,n.name)}function rjt(t){let n=t.declaration,a=hF(n),u=a&&Nu(a);return{name:t.name,kind:IM(n),kindModifiers:QK(n),matchKind:tDe[t.matchKind],isCaseSensitive:t.isCaseSensitive,fileName:t.fileName,textSpan:Cx(n),containerName:u?u.text:"",containerKind:u?IM(a):""}}var ZYe={};d(ZYe,{getNavigationBarItems:()=>yX,getNavigationTree:()=>yMe});var ojt=/\s+/g,dDe=150,hMe,lie,uie=[],EN,uye=[],nD,gMe=[];function yX(t,n){hMe=n,lie=t;try{return $i(Fyt(_De(t)),cjt)}finally{eQe()}}function yMe(t,n){hMe=n,lie=t;try{return TMe(_De(t))}finally{eQe()}}function eQe(){lie=void 0,hMe=void 0,uie=[],EN=void 0,gMe=[]}function dye(t){return die(t.getText(lie))}function fDe(t){return t.node.kind}function fye(t,n){t.children?t.children.push(n):t.children=[n]}function _De(t){Se.assert(!uie.length);let n={node:t,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};EN=n;for(let a of t.statements)CJ(a);return BM(),Se.assert(!EN&&!uie.length),n}function x9(t,n){fye(EN,vMe(t,n))}function vMe(t,n){return{node:t,name:n||(y1(t)||An(t)?Nu(t):void 0),additionalNodes:void 0,parent:EN,children:void 0,indent:EN.indent+1}}function C9(t){nD||(nD=new Map),nD.set(t,!0)}function bMe(t){for(let n=0;n0;u--){let m=a[u];k9(t,m)}return[a.length-1,a[0]]}function k9(t,n){let a=vMe(t,n);fye(EN,a),uie.push(EN),uye.push(nD),nD=void 0,EN=a}function BM(){EN.children&&(_ye(EN.children,EN),kMe(EN.children)),EN=uie.pop(),nD=uye.pop()}function K2(t,n,a){k9(t,a),CJ(n),BM()}function jM(t){t.initializer&&Byt(t.initializer)?(k9(t),_d(t.initializer,CJ),BM()):K2(t,t.initializer)}function vF(t){let n=Nu(t);if(n===void 0)return!1;if(f_(n)){let a=n.expression;return Dp(a)||mx(a)||Xb(a)}return!!n}function CJ(t){if(hMe.throwIfCancellationRequested(),!(!t||A7(t)))switch(t.kind){case 176:let n=t;K2(n,n.body);for(let v of n.parameters)OC(v,n)&&x9(v);break;case 174:case 177:case 178:case 173:vF(t)&&K2(t,t.body);break;case 172:vF(t)&&jM(t);break;case 171:vF(t)&&x9(t);break;case 273:let a=t;a.name&&x9(a.name);let{namedBindings:u}=a;if(u)if(u.kind===274)x9(u);else for(let v of u.elements)x9(v);break;case 304:K2(t,t.name);break;case 305:let{expression:m}=t;Ai(m)?x9(t,m):x9(t);break;case 208:case 303:case 260:{let v=t;Uu(v.name)?CJ(v.name):jM(v);break}case 262:let g=t.name;g&&Ai(g)&&C9(g.text),K2(t,t.body);break;case 219:case 218:K2(t,t.body);break;case 266:k9(t);for(let v of t.members)rQe(v)||x9(v);BM();break;case 263:case 231:case 264:k9(t);for(let v of t.members)CJ(v);BM();break;case 267:K2(t,nQe(t).body);break;case 277:{let v=t.expression,x=Ld(v)||Od(v)?v:Zc(v)||yd(v)?v.body:void 0;x?(k9(t),CJ(x),BM()):x9(t);break}case 281:case 271:case 181:case 179:case 180:case 265:x9(t);break;case 213:case 226:{let v=wh(t);switch(v){case 1:case 2:K2(t,t.right);return;case 6:case 3:{let x=t,k=x.left,T=v===3?k.expression:k,I=0,A;Ai(T.expression)?(C9(T.expression.text),A=T.expression):[I,A]=tQe(x,T.expression),v===6?Ld(x.right)&&x.right.properties.length>0&&(k9(x,A),_d(x.right,CJ),BM()):yd(x.right)||Zc(x.right)?K2(t,x.right,A):(k9(x,A),K2(t,x.right,k.name),BM()),bMe(I);return}case 7:case 9:{let x=t,k=v===7?x.arguments[0]:x.arguments[0].expression,T=x.arguments[1],[I,A]=tQe(t,k);k9(t,A),k9(t,Fn(Me.createIdentifier(T.text),T)),CJ(t.arguments[2]),BM(),BM(),bMe(I);return}case 5:{let x=t,k=x.left,T=k.expression;if(Ai(T)&&Yw(k)!=="prototype"&&nD&&nD.has(T.text)){yd(x.right)||Zc(x.right)?K2(t,x.right,T):gk(k)&&(k9(x,T),K2(x.left,x.right,LH(k)),BM());return}break}case 4:case 0:case 8:break;default:Se.assertNever(v)}}default:Gx(t)&&ee(t.jsDoc,v=>{ee(v.tags,x=>{ux(x)&&x9(x)})}),_d(t,CJ)}}function _ye(t,n){let a=new Map;ks(t,(u,m)=>{let g=u.name||Nu(u.node),v=g&&dye(g);if(!v)return!0;let x=a.get(v);if(!x)return a.set(v,u),!0;if(x instanceof Array){for(let k of x)if(kle(k,u,m,n))return!1;return x.push(u),!0}else{let k=x;return kle(k,u,m,n)?!1:(a.set(v,[k,u]),!0)}})}var bF={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1};function SMe(t,n,a,u){function m(x){return yd(x)||fp(x)||$c(x)}let g=ms(n.node)||Od(n.node)?wh(n.node):0,v=ms(t.node)||Od(t.node)?wh(t.node):0;if(bF[g]&&bF[v]||m(t.node)&&bF[g]||m(n.node)&&bF[v]||D0(t.node)&&xMe(t.node)&&bF[g]||D0(n.node)&&bF[v]||D0(t.node)&&xMe(t.node)&&m(n.node)||D0(n.node)&&m(t.node)&&xMe(t.node)){let x=t.additionalNodes&&Y_(t.additionalNodes)||t.node;if(!D0(t.node)&&!D0(n.node)||m(t.node)||m(n.node)){let T=m(t.node)?t.node:m(n.node)?n.node:void 0;if(T!==void 0){let I=Fn(Me.createConstructorDeclaration(void 0,[],void 0),T),A=vMe(I);A.indent=t.indent+1,A.children=t.node===T?t.children:n.children,t.children=t.node===T?Pl([A],n.children||[n]):Pl(t.children||[{...t}],[A])}else(t.children||n.children)&&(t.children=Pl(t.children||[{...t}],n.children||[n]),t.children&&(_ye(t.children,t),kMe(t.children)));x=t.node=Fn(Me.createClassDeclaration(void 0,t.name||Me.createIdentifier("__class__"),void 0,void 0,[]),t.node)}else t.children=Pl(t.children,n.children),t.children&&_ye(t.children,t);let k=n.node;return u.children[a-1].node.end===x.end?Fn(x,{pos:x.pos,end:k.end}):(t.additionalNodes||(t.additionalNodes=[]),t.additionalNodes.push(Fn(Me.createClassDeclaration(void 0,t.name||Me.createIdentifier("__class__"),void 0,void 0,[]),n.node))),!0}return g!==0}function kle(t,n,a,u){return SMe(t,n,a,u)?!0:sjt(t.node,n.node,u)?(Oyt(t,n),!0):!1}function sjt(t,n,a){if(t.kind!==n.kind||t.parent!==n.parent&&!(Lyt(t,a)&&Lyt(n,a)))return!1;switch(t.kind){case 172:case 174:case 177:case 178:return Xd(t)===Xd(n);case 267:return CMe(t,n)&&pDe(t)===pDe(n);default:return!0}}function xMe(t){return!!(t.flags&16)}function Lyt(t,n){let a=vN(t.parent)?t.parent.parent:t.parent;return a===n.node||dr(n.additionalNodes,a)}function CMe(t,n){return!t.body||!n.body?t.body===n.body:t.body.kind===n.body.kind&&(t.body.kind!==267||CMe(t.body,n.body))}function Oyt(t,n){t.additionalNodes=t.additionalNodes||[],t.additionalNodes.push(n.node),n.additionalNodes&&t.additionalNodes.push(...n.additionalNodes),t.children=Pl(t.children,n.children),t.children&&(_ye(t.children,t),kMe(t.children))}function kMe(t){t.sort(ajt)}function ajt(t,n){return WQ(wMe(t.node),wMe(n.node))||m_(fDe(t),fDe(n))}function wMe(t){if(t.kind===267)return Myt(t);let n=Nu(t);if(n&&C_(n)){let a=k5(n);return a&&Ba(a)}switch(t.kind){case 218:case 219:case 231:return IMe(t);default:return}}function iQe(t,n){if(t.kind===267)return die(Myt(t));if(n){let a=Ai(n)?n.text:T_(n)?`[${dye(n.argumentExpression)}]`:dye(n);if(a.length>0)return die(a)}switch(t.kind){case 307:let a=t;return Mg(a)?`"${w4(sg(Qx(Kd(a.fileName))))}"`:"";case 277:return Bm(t)&&t.isExportEquals?"export=":"default";case 219:case 262:case 218:case 263:case 231:return eT(t)&2048?"default":IMe(t);case 176:return"constructor";case 180:return"new()";case 179:return"()";case 181:return"[]";default:return""}}function Fyt(t){let n=[];function a(m){if(u(m)&&(n.push(m),m.children))for(let g of m.children)a(g)}return a(t),n;function u(m){if(m.children)return!0;switch(fDe(m)){case 263:case 231:case 266:case 264:case 267:case 307:case 265:case 346:case 338:return!0;case 219:case 262:case 218:return g(m);default:return!1}function g(v){if(!v.node.body)return!1;switch(fDe(v.parent)){case 268:case 307:case 174:case 176:return!0;default:return!1}}}}function TMe(t){return{text:iQe(t.node,t.name),kind:IM(t.node),kindModifiers:Ryt(t.node),spans:EMe(t),nameSpan:t.name&&DMe(t.name),childItems:$i(t.children,TMe)}}function cjt(t){return{text:iQe(t.node,t.name),kind:IM(t.node),kindModifiers:Ryt(t.node),spans:EMe(t),childItems:$i(t.children,n)||gMe,indent:t.indent,bolded:!1,grayed:!1};function n(a){return{text:iQe(a.node,a.name),kind:IM(a.node),kindModifiers:QK(a.node),spans:EMe(a),childItems:gMe,indent:0,bolded:!1,grayed:!1}}}function EMe(t){let n=[DMe(t.node)];if(t.additionalNodes)for(let a of t.additionalNodes)n.push(DMe(a));return n}function Myt(t){return nb(t)?_h(t.name):pDe(t)}function pDe(t){let n=[jC(t.name)];for(;t.body&&t.body.kind===267;)t=t.body,n.push(jC(t.name));return n.join(".")}function nQe(t){return t.body&&Dh(t.body)?nQe(t.body):t}function rQe(t){return!t.name||t.name.kind===167}function DMe(t){return t.kind===307?q4(t):Cx(t,lie)}function Ryt(t){return t.parent&&t.parent.kind===260&&(t=t.parent),QK(t)}function IMe(t){let{parent:n}=t;if(t.name&&kH(t.name)>0)return die(Gf(t.name));if($c(n))return die(Gf(n.name));if(ms(n)&&n.operatorToken.kind===64)return dye(n.left).replace(ojt,"");if(Ih(n))return dye(n.name);if(eT(t)&2048)return"default";if(bc(t))return"";if(Od(n)){let a=oQe(n.expression);if(a!==void 0){if(a=die(a),a.length>dDe)return`${a} callback`;let u=die(Dc(n.arguments,m=>i_(m)||y8(m)?m.getText(lie):void 0).join(", "));return`${a}(${u}) callback`}}return""}function oQe(t){if(Ai(t))return t.text;if(ba(t)){let n=oQe(t.expression),a=t.name.text;return n===void 0?a:`${n}.${a}`}else return}function Byt(t){switch(t.kind){case 219:case 218:case 231:return!0;default:return!1}}function die(t){return t=t.length>dDe?t.substring(0,dDe)+"...":t,t.replace(/\\?(?:\r?\n|[\r\u2028\u2029])/g,"")}var vX={};d(vX,{addExportsInOldFile:()=>zMe,addImportsForMovedSymbols:()=>bDe,addNewFileToTsconfig:()=>hQe,addOrRemoveBracesToArrowFunction:()=>kjt,addTargetFileImports:()=>xF,containsJsx:()=>TQe,convertArrowFunctionOrFunctionExpression:()=>fvt,convertParamsToDestructuredObject:()=>bvt,convertStringOrTemplateLiteral:()=>Vjt,convertToOptionalChainExpression:()=>$jt,createNewFileName:()=>SDe,doChangeNamedToNamespaceOrDefault:()=>uQe,extractSymbol:()=>Wvt,generateGetAccessorAndSetAccessor:()=>iZe,getApplicableRefactors:()=>sQe,getEditsForRefactor:()=>SL,getExistingLocals:()=>AQe,getIdentifierForNode:()=>G4,getNewStatementsAndRemoveFromOldFile:()=>WMe,getStatementsToMove:()=>fie,getUsageInfo:()=>xDe,inferFunctionReturnType:()=>nZe,isRefactorErrorInfo:()=>xL,refactorKindBeginsWith:()=>SF,registerRefactor:()=>fT});var bX=new Map;function fT(t,n){bX.set(t,n)}function sQe(t,n){return tc(Ya(bX.values(),a=>{var u;return t.cancellationToken&&t.cancellationToken.isCancellationRequested()||!((u=a.kinds)!=null&&u.some(m=>SF(m,t.kind)))?void 0:a.getAvailableActions(t,n)}))}function SL(t,n,a,u){let m=bX.get(n);return m&&m.getEditsForAction(t,a,u)}var aQe="Convert export",NMe={name:"Convert default export to named export",description:ed(j.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},pye={name:"Convert named export to default export",description:ed(j.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"};fT(aQe,{kinds:[NMe.kind,pye.kind],getAvailableActions:function(n){let a=mDe(n,n.triggerReason==="invoked");if(!a)return F;if(!xL(a)){let u=a.wasDefault?NMe:pye;return[{name:aQe,description:u.description,actions:[u]}]}return n.preferences.provideRefactorNotApplicableReason?[{name:aQe,description:ed(j.Convert_default_export_to_named_export),actions:[{...NMe,notApplicableReason:a.error},{...pye,notApplicableReason:a.error}]}]:F},getEditsForAction:function(n,a){Se.assert(a===NMe.name||a===pye.name,"Unexpected action name");let u=mDe(n);return Se.assert(u&&!xL(u),"Expected applicable refactor info"),{edits:Gs.ChangeTracker.with(n,g=>AMe(n.file,n.program,u,g,n.cancellationToken)),renameFilename:void 0,renameLocation:void 0}}});function mDe(t,n=!0){let{file:a,program:u}=t,m=b9(t),g=wc(a,m.start),v=g.parent&&eT(g.parent)&32&&n?g.parent:QW(g,a,m);if(!v||!ul(v.parent)&&!(vN(v.parent)&&nb(v.parent.parent)))return{error:ed(j.Could_not_find_export_statement)};let x=u.getTypeChecker(),k=lQe(v.parent,x),T=eT(v)||(Bm(v)&&!v.isExportEquals?2080:0),I=!!(T&2048);if(!(T&32)||!I&&k.exports.has("default"))return{error:ed(j.This_file_already_has_a_default_export)};let A=M=>Ai(M)&&x.getSymbolAtLocation(M)?void 0:{error:ed(j.Can_only_convert_named_export)};switch(v.kind){case 262:case 263:case 264:case 266:case 265:case 267:{let M=v;return M.name?A(M.name)||{exportNode:M,exportName:M.name,wasDefault:I,exportingModuleSymbol:k}:void 0}case 243:{let M=v;if(!(M.declarationList.flags&2)||M.declarationList.declarations.length!==1)return;let R=of(M.declarationList.declarations);return R.initializer?(Se.assert(!I,"Can't have a default flag here"),A(R.name)||{exportNode:M,exportName:R.name,wasDefault:I,exportingModuleSymbol:k}):void 0}case 277:{let M=v;return M.isExportEquals?void 0:A(M.expression)||{exportNode:M,exportName:M.expression,wasDefault:I,exportingModuleSymbol:k}}default:return}}function AMe(t,n,a,u,m){jyt(t,a,u,n.getTypeChecker()),ljt(n,a,u,m)}function jyt(t,{wasDefault:n,exportNode:a,exportName:u},m,g){if(n)if(Bm(a)&&!a.isExportEquals){let v=a.expression,x=Wyt(v.text,v.text);m.replaceNode(t,a,Me.createExportDeclaration(void 0,!1,Me.createNamedExports([x])))}else m.delete(t,Se.checkDefined(FM(a,90),"Should find a default keyword in modifier list"));else{let v=Se.checkDefined(FM(a,95),"Should find an export keyword in modifier list");switch(a.kind){case 262:case 263:case 264:m.insertNodeAfter(t,v,Me.createToken(90));break;case 243:let x=of(a.declarationList.declarations);if(!Wm.Core.isSymbolReferencedInFile(u,g,t)&&!x.type){m.replaceNode(t,a,Me.createExportDefault(Se.checkDefined(x.initializer,"Initializer was previously known to be present")));break}case 266:case 265:case 267:m.deleteModifier(t,v),m.insertNodeAfter(t,a,Me.createExportDefault(Me.createIdentifier(u.text)));break;default:Se.fail(`Unexpected exportNode kind ${a.kind}`)}}}function ljt(t,{wasDefault:n,exportName:a,exportingModuleSymbol:u},m,g){let v=t.getTypeChecker(),x=Se.checkDefined(v.getSymbolAtLocation(a),"Export name should resolve to a symbol");Wm.Core.eachExportReference(t.getSourceFiles(),v,g,x,u,a.text,n,k=>{if(a===k)return;let T=k.getSourceFile();n?ujt(T,k,m,a.text):djt(T,k,m)})}function ujt(t,n,a,u){let{parent:m}=n;switch(m.kind){case 211:a.replaceNode(t,n,Me.createIdentifier(u));break;case 276:case 281:{let v=m;a.replaceNode(t,v,cQe(u,v.name.text));break}case 273:{let v=m;Se.assert(v.name===n,"Import clause name should match provided ref");let x=cQe(u,n.text),{namedBindings:k}=v;if(!k)a.replaceNode(t,n,Me.createNamedImports([x]));else if(k.kind===274){a.deleteRange(t,{pos:n.getStart(t),end:k.getStart(t)});let T=Kf(v.parent.moduleSpecifier)?uJ(v.parent.moduleSpecifier,t):1,I=vL(void 0,[cQe(u,n.text)],v.parent.moduleSpecifier,T);a.insertNodeAfter(t,v.parent,I)}else a.delete(t,n),a.insertNodeAtEndOfList(t,k.elements,x);break}case 205:let g=m;a.replaceNode(t,m,Me.createImportTypeNode(g.argument,g.attributes,Me.createIdentifier(u),g.typeArguments,g.isTypeOf));break;default:Se.failBadSyntaxKind(m)}}function djt(t,n,a){let u=n.parent;switch(u.kind){case 211:a.replaceNode(t,n,Me.createIdentifier("default"));break;case 276:{let m=Me.createIdentifier(u.name.text);u.parent.elements.length===1?a.replaceNode(t,u.parent,m):(a.delete(t,u),a.insertNodeBefore(t,u.parent,m));break}case 281:{a.replaceNode(t,u,Wyt("default",u.name.text));break}default:Se.assertNever(u,`Unexpected parent kind ${u.kind}`)}}function cQe(t,n){return Me.createImportSpecifier(!1,t===n?void 0:Me.createIdentifier(t),Me.createIdentifier(n))}function Wyt(t,n){return Me.createExportSpecifier(!1,t===n?void 0:Me.createIdentifier(t),Me.createIdentifier(n))}function lQe(t,n){if(ul(t))return t.symbol;let a=t.parent.symbol;return a.valueDeclaration&&j7(a.valueDeclaration)?n.getMergedSymbol(a):a}var PMe="Convert import",LMe={0:{name:"Convert namespace import to named imports",description:ed(j.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:ed(j.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:ed(j.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}};fT(PMe,{kinds:k0(LMe).map(t=>t.kind),getAvailableActions:function(n){let a=OMe(n,n.triggerReason==="invoked");if(!a)return F;if(!xL(a)){let u=LMe[a.convertTo];return[{name:PMe,description:u.description,actions:[u]}]}return n.preferences.provideRefactorNotApplicableReason?k0(LMe).map(u=>({name:PMe,description:u.description,actions:[{...u,notApplicableReason:a.error}]})):F},getEditsForAction:function(n,a){Se.assert(En(k0(LMe),g=>g.name===a),"Unexpected action name");let u=OMe(n);return Se.assert(u&&!xL(u),"Expected applicable refactor info"),{edits:Gs.ChangeTracker.with(n,g=>zyt(n.file,n.program,g,u)),renameFilename:void 0,renameLocation:void 0}}});function OMe(t,n=!0){let{file:a}=t,u=b9(t),m=wc(a,u.start),g=n?go(m,ow(Dd,cT)):QW(m,a,u);if(g===void 0||!(Dd(g)||cT(g)))return{error:"Selection is not an import declaration."};let v=u.start+u.length,x=NM(g,g.parent,a);if(x&&v>x.getStart())return;let{importClause:k}=g;return k?k.namedBindings?k.namedBindings.kind===274?{convertTo:0,import:k.namedBindings}:hDe(t.program,k)?{convertTo:1,import:k.namedBindings}:{convertTo:2,import:k.namedBindings}:{error:ed(j.Could_not_find_namespace_import_or_named_imports)}:{error:ed(j.Could_not_find_import_clause)}}function hDe(t,n){return cU(t.getCompilerOptions())&&_jt(n.parent.moduleSpecifier,t.getTypeChecker())}function zyt(t,n,a,u){let m=n.getTypeChecker();u.convertTo===0?Vyt(t,m,a,u.import,cU(n.getCompilerOptions())):uQe(t,n,a,u.import,u.convertTo===1)}function Vyt(t,n,a,u,m){let g=!1,v=[],x=new Map;Wm.Core.eachSymbolReferenceInFile(u.name,n,t,A=>{if(!sj(A.parent))g=!0;else{let M=Hyt(A.parent).text;n.resolveName(M,A,-1,!0)&&x.set(M,!0),Se.assert(fjt(A.parent)===A,"Parent expression should match id"),v.push(A.parent)}});let k=new Map;for(let A of v){let M=Hyt(A).text,R=k.get(M);R===void 0&&k.set(M,R=x.has(M)?mJ(M,t):M),a.replaceNode(t,A,Me.createIdentifier(R))}let T=[];k.forEach((A,M)=>{T.push(Me.createImportSpecifier(!1,A===M?void 0:Me.createIdentifier(M),Me.createIdentifier(A)))});let I=u.parent.parent;if(g&&!m&&Dd(I))a.insertNodeAfter(t,I,dQe(I,void 0,T));else{let A=g?Me.createIdentifier(u.name.text):void 0;a.replaceNode(t,u.parent,Uyt(A,T))}}function Hyt(t){return ba(t)?t.name:t.right}function fjt(t){return ba(t)?t.expression:t.left}function uQe(t,n,a,u,m=hDe(n,u.parent)){let g=n.getTypeChecker(),v=u.parent.parent,{moduleSpecifier:x}=v,k=new Set;u.elements.forEach(H=>{let U=g.getSymbolAtLocation(H.name);U&&k.add(U)});let T=x&&Kf(x)?SJ(x.text,99):"module";function I(H){return!!Wm.Core.eachSymbolReferenceInFile(H.name,g,t,U=>{let $=g.resolveName(T,U,-1,!0);return $?k.has($)?X0(U.parent):!0:!1})}let M=u.elements.some(I)?mJ(T,t):T,R=new Set;for(let H of u.elements){let U=H.propertyName||H.name;Wm.Core.eachSymbolReferenceInFile(H.name,g,t,$=>{let K=U.kind===11?Me.createElementAccessExpression(Me.createIdentifier(M),Me.cloneNode(U)):Me.createPropertyAccessExpression(Me.createIdentifier(M),Me.cloneNode(U));Q0($.parent)?a.replaceNode(t,$.parent,Me.createPropertyAssignment($.text,K)):X0($.parent)?R.add(H):a.replaceNode(t,$,K)})}if(a.replaceNode(t,u,m?Me.createIdentifier(M):Me.createNamespaceImport(Me.createIdentifier(M))),R.size&&Dd(v)){let H=tc(R.values(),U=>Me.createImportSpecifier(U.isTypeOnly,U.propertyName&&Me.cloneNode(U.propertyName),Me.cloneNode(U.name)));a.insertNodeAfter(t,u.parent.parent,dQe(v,void 0,H))}}function _jt(t,n){let a=n.resolveExternalModuleName(t);if(!a)return!1;let u=n.resolveExternalModuleSymbol(a);return a!==u}function dQe(t,n,a){return Me.createImportDeclaration(void 0,Uyt(n,a),t.moduleSpecifier,void 0)}function Uyt(t,n){return Me.createImportClause(!1,t,n&&n.length?Me.createNamedImports(n):void 0)}var FMe="Extract type",gDe={name:"Extract to type alias",description:ed(j.Extract_to_type_alias),kind:"refactor.extract.type"},mye={name:"Extract to interface",description:ed(j.Extract_to_interface),kind:"refactor.extract.interface"},wle={name:"Extract to typedef",description:ed(j.Extract_to_typedef),kind:"refactor.extract.typedef"};fT(FMe,{kinds:[gDe.kind,mye.kind,wle.kind],getAvailableActions:function(n){let{info:a,affectedTextRange:u}=yDe(n,n.triggerReason==="invoked");return a?xL(a)?n.preferences.provideRefactorNotApplicableReason?[{name:FMe,description:ed(j.Extract_type),actions:[{...wle,notApplicableReason:a.error},{...gDe,notApplicableReason:a.error},{...mye,notApplicableReason:a.error}]}]:F:[{name:FMe,description:ed(j.Extract_type),actions:a.isJS?[wle]:ar([gDe],a.typeElements&&mye)}].map(g=>({...g,actions:g.actions.map(v=>({...v,range:u?{start:{line:Df(n.file,u.pos).line,offset:Df(n.file,u.pos).character},end:{line:Df(n.file,u.end).line,offset:Df(n.file,u.end).character}}:void 0}))})):F},getEditsForAction:function(n,a){let{file:u}=n,{info:m}=yDe(n);Se.assert(m&&!xL(m),"Expected to find a range to extract");let g=mJ("NewType",u),v=Gs.ChangeTracker.with(n,T=>{switch(a){case gDe.name:return Se.assert(!m.isJS,"Invalid actionName/JS combo"),cz(T,u,g,m);case wle.name:return Se.assert(m.isJS,"Invalid actionName/JS combo"),mjt(T,n,u,g,m);case mye.name:return Se.assert(!m.isJS&&!!m.typeElements,"Invalid actionName/JS combo"),pjt(T,u,g,m);default:Se.fail("Unexpected action name")}}),x=u.fileName,k=Hte(v,x,g,!1);return{edits:v,renameFilename:x,renameLocation:k}}});function yDe(t,n=!0){let{file:a,startPosition:u}=t,m=$v(a),g=Fte(b9(t)),v=g.pos===g.end&&n,x=MMe(a,u,g,v);if(!x||!Qa(x))return{info:{error:ed(j.Selection_is_not_a_valid_type_node)},affectedTextRange:void 0};let k=t.program.getTypeChecker(),T=hjt(x,m);if(T===void 0)return{info:{error:ed(j.No_type_could_be_extracted_from_this_type_node)},affectedTextRange:void 0};let I=_Qe(x,T);if(!Qa(I))return{info:{error:ed(j.Selection_is_not_a_valid_type_node)},affectedTextRange:void 0};let A=[];(gx(I.parent)||lL(I.parent))&&g.end>x.end&&Ho(A,I.parent.types.filter($=>sJ($,a,g.pos,g.end)));let M=A.length>1?A:I,{typeParameters:R,affectedTextRange:H}=RMe(k,M,T,a);if(!R)return{info:{error:ed(j.No_type_could_be_extracted_from_this_type_node)},affectedTextRange:void 0};let U=vDe(k,M);return{info:{isJS:m,selection:M,enclosingNode:T,typeParameters:R,typeElements:U},affectedTextRange:H}}function MMe(t,n,a,u){let m=[()=>wc(t,n),()=>h9(t,n,()=>!0)];for(let g of m){let v=g(),x=sJ(v,t,a.pos,a.end),k=go(v,T=>T.parent&&Qa(T)&&!az(a,T.parent,t)&&(u||x));if(k)return k}}function vDe(t,n){if(n){if(ua(n)){let a=[];for(let u of n){let m=vDe(t,u);if(!m)return;Ho(a,m)}return a}if(lL(n)){let a=[],u=new Map;for(let m of n.types){let g=vDe(t,m);if(!g||!g.every(v=>v.name&&HC(u,KW(v.name))))return;Ho(a,g)}return a}else{if(eO(n))return vDe(t,n.type);if(Im(n))return n.members}}}function az(t,n,a){return HW(t,fd(a.text,n.pos),n.end)}function RMe(t,n,a,u){let m=[],g=LS(n),v={pos:g[0].getStart(u),end:g[g.length-1].end};for(let k of g)if(x(k))return{typeParameters:void 0,affectedTextRange:void 0};return{typeParameters:m,affectedTextRange:v};function x(k){if(M_(k)){if(Ai(k.typeName)){let T=k.typeName,I=t.resolveName(T.text,T,262144,!0);for(let A of I?.declarations||F)if(Yp(A)&&A.getSourceFile()===u){if(A.name.escapedText===T.escapedText&&az(A,v,u))return!0;if(az(a,A,u)&&!az(v,A,u)){Xu(m,A);break}}}}else if(Hy(k)){let T=go(k,I=>YE(I)&&az(I.extendsType,k,u));if(!T||!az(v,T,u))return!0}else if(Sk(k)||uL(k)){let T=go(k.parent,iu);if(T&&T.type&&az(T.type,k,u)&&!az(v,T,u))return!0}else if(C1(k)){if(Ai(k.exprName)){let T=t.resolveName(k.exprName.text,k.exprName,111551,!1);if(T?.valueDeclaration&&az(a,T.valueDeclaration,u)&&!az(v,T.valueDeclaration,u))return!0}else if(JA(k.exprName.left)&&!az(v,k.parent,u))return!0}return u&&G8(k)&&Df(u,k.pos).line===Df(u,k.end).line&&De(k,1),_d(k,x)}}function cz(t,n,a,u){let{enclosingNode:m,typeParameters:g}=u,{firstTypeNode:v,lastTypeNode:x,newTypeNode:k}=fQe(u),T=Me.createTypeAliasDeclaration(void 0,a,g.map(I=>Me.updateTypeParameterDeclaration(I,I.modifiers,I.name,I.constraint,void 0)),k);t.insertNodeBefore(n,m,qme(T),!0),t.replaceNodeRange(n,v,x,Me.createTypeReferenceNode(a,g.map(I=>Me.createTypeReferenceNode(I.name,void 0))),{leadingTriviaOption:Gs.LeadingTriviaOption.Exclude,trailingTriviaOption:Gs.TrailingTriviaOption.ExcludeWhitespace})}function pjt(t,n,a,u){var m;let{enclosingNode:g,typeParameters:v,typeElements:x}=u,k=Me.createInterfaceDeclaration(void 0,a,v,void 0,x);Fn(k,(m=x[0])==null?void 0:m.parent),t.insertNodeBefore(n,g,qme(k),!0);let{firstTypeNode:T,lastTypeNode:I}=fQe(u);t.replaceNodeRange(n,T,I,Me.createTypeReferenceNode(a,v.map(A=>Me.createTypeReferenceNode(A.name,void 0))),{leadingTriviaOption:Gs.LeadingTriviaOption.Exclude,trailingTriviaOption:Gs.TrailingTriviaOption.ExcludeWhitespace})}function mjt(t,n,a,u,m){var g;LS(m.selection).forEach(H=>{De(H,7168)});let{enclosingNode:v,typeParameters:x}=m,{firstTypeNode:k,lastTypeNode:T,newTypeNode:I}=fQe(m),A=Me.createJSDocTypedefTag(Me.createIdentifier("typedef"),Me.createJSDocTypeExpression(I),Me.createIdentifier(u)),M=[];ee(x,H=>{let U=Ux(H),$=Me.createTypeParameterDeclaration(void 0,H.name),K=Me.createJSDocTemplateTag(Me.createIdentifier("template"),U&&$d(U,lv),[$]);M.push(K)});let R=Me.createJSDocComment(void 0,Me.createNodeArray(Pl(M,[A])));if(eD(v)){let H=v.getStart(a),U=fO(n.host,(g=n.formatContext)==null?void 0:g.options);t.insertNodeAt(a,v.getStart(a),R,{suffix:U+U+a.text.slice(qEe(a.text,H-1),H)})}else t.insertNodeBefore(a,v,R,!0);t.replaceNodeRange(a,k,T,Me.createTypeReferenceNode(u,x.map(H=>Me.createTypeReferenceNode(H.name,void 0))))}function fQe(t){return ua(t.selection)?{firstTypeNode:t.selection[0],lastTypeNode:t.selection[t.selection.length-1],newTypeNode:gx(t.selection[0].parent)?Me.createUnionTypeNode(t.selection):Me.createIntersectionTypeNode(t.selection)}:{firstTypeNode:t.selection,lastTypeNode:t.selection,newTypeNode:t.selection}}function hjt(t,n){return go(t,ll)||(n?go(t,eD):void 0)}function _Qe(t,n){return go(t,a=>a===n?"quit":!!(gx(a.parent)||lL(a.parent)))??t}var BMe="Move to file",pQe=ed(j.Move_to_file),hye={name:"Move to file",description:pQe,kind:"refactor.move.file"};fT(BMe,{kinds:[hye.kind],getAvailableActions:function(n,a){let u=n.file,m=fie(n);if(!a)return F;if(n.triggerReason==="implicit"&&n.endPosition!==void 0){let g=go(wc(u,n.startPosition),yF),v=go(wc(u,n.endPosition),yF);if(g&&!ul(g)&&v&&!ul(v))return F}if(n.preferences.allowTextChangesInNewFiles&&m){let g={start:{line:Df(u,m.all[0].getStart(u)).line,offset:Df(u,m.all[0].getStart(u)).character},end:{line:Df(u,Bu(m.all).end).line,offset:Df(u,Bu(m.all).end).character}};return[{name:BMe,description:pQe,actions:[{...hye,range:g}]}]}return n.preferences.provideRefactorNotApplicableReason?[{name:BMe,description:pQe,actions:[{...hye,notApplicableReason:ed(j.Selection_is_not_a_valid_statement_or_statements)}]}]:F},getEditsForAction:function(n,a,u){Se.assert(a===BMe,"Wrong refactor invoked");let m=Se.checkDefined(fie(n)),{host:g,program:v}=n;Se.assert(u,"No interactive refactor arguments available");let x=u.targetFile;return eL(x)||VG(x)?g.fileExists(x)&&v.getSourceFile(x)===void 0?jMe(ed(j.Cannot_move_statements_to_the_selected_file)):{edits:Gs.ChangeTracker.with(n,T=>mQe(n,n.file,u.targetFile,n.program,m,T,n.host,n.preferences)),renameFilename:void 0,renameLocation:void 0}:jMe(ed(j.Cannot_move_to_file_selected_file_is_invalid))}});function jMe(t){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:t}}function mQe(t,n,a,u,m,g,v,x){let k=u.getTypeChecker(),T=!v.fileExists(a),I=T?_O(a,n.externalModuleIndicator?99:n.commonJsModuleIndicator?1:void 0,u,v):Se.checkDefined(u.getSourceFile(a)),A=vb.createImportAdder(n,t.program,t.preferences,t.host),M=vb.createImportAdder(I,t.program,t.preferences,t.host);WMe(n,I,xDe(n,m.all,k,T?void 0:AQe(I,m.all,k)),g,m,u,v,x,M,A),T&&hQe(u,g,n.fileName,a,E4(v))}function WMe(t,n,a,u,m,g,v,x,k,T){let I=g.getTypeChecker(),A=zQ(t.statements,cw),M=!nie(n.fileName,g,v,!!t.commonJsModuleIndicator),R=Nk(t,x);bDe(a.oldFileImportsFromTargetFile,n.fileName,T,g),yQe(t,m.all,a.unusedImportsFromOldFile,T),T.writeFixes(u,R),gQe(t,m.ranges,u),Jyt(u,g,v,t,a.movedSymbols,n.fileName,R),zMe(t,a.targetFileImportsFromOldFile,u,M),xF(t,a.oldImportsNeededByTargetFile,a.targetFileImportsFromOldFile,I,g,k),!Yx(n)&&A.length&&u.insertStatementsInNewFile(n.fileName,A,t),k.writeFixes(u,R);let H=xQe(t,m.all,tc(a.oldFileImportsFromTargetFile.keys()),M);Yx(n)&&n.statements.length>0?svt(u,g,H,n,m):Yx(n)?u.insertNodesAtEndOfFile(n,H,!1):u.insertStatementsInNewFile(n.fileName,k.hasFixes()?[4,...H]:H,t)}function hQe(t,n,a,u,m){let g=t.getCompilerOptions().configFile;if(!g)return;let v=Kd(Ps(a,"..",u)),x=j$(g.fileName,v,m),k=g.statements[0]&&ac(g.statements[0].expression,Ld),T=k&&jt(k.properties,I=>Ih(I)&&Kf(I.name)&&I.name.text==="files");T&&Yg(T.initializer)&&n.insertNodeInListAfter(g,Bu(T.initializer.elements),Me.createStringLiteral(x),T.initializer.elements)}function gQe(t,n,a){for(let{first:u,afterLast:m}of n)a.deleteNodeRangeExcludingEnd(t,u,m)}function yQe(t,n,a,u){for(let m of t.statements)dr(n,m)||bQe(m,g=>{SQe(g,v=>{a.has(v.symbol)&&u.removeExistingImport(v)})})}function zMe(t,n,a,u){let m=GW();n.forEach((g,v)=>{if(v.declarations)for(let x of v.declarations){if(!UMe(x))continue;let k=Sjt(x);if(!k)continue;let T=tvt(x);m(T)&&ivt(t,T,k,a,u)}})}function Jyt(t,n,a,u,m,g,v){let x=n.getTypeChecker();for(let k of n.getSourceFiles())if(k!==u)for(let T of k.statements)bQe(T,I=>{if(x.getSymbolAtLocation(yjt(I))!==u.symbol)return;let A=$=>{let K=Zd($.parent)?eX(x,$.parent):ym(x.getSymbolAtLocation($),x);return!!K&&m.has(K)};vjt(k,I,t,A);let M=w7(Cc(tu(u.fileName,n.getCurrentDirectory())),g);if(s4(!n.useCaseSensitiveFileNames())(M,k.fileName)===0)return;let R=cF.getModuleSpecifier(n.getCompilerOptions(),k,k.fileName,M,XW(n,a)),H=Zyt(I,YW(R,v),A);H&&t.insertNodeAfter(k,T,H);let U=vQe(I);U&&qyt(t,k,x,m,R,U,I,v)})}function vQe(t){switch(t.kind){case 272:return t.importClause&&t.importClause.namedBindings&&t.importClause.namedBindings.kind===274?t.importClause.namedBindings.name:void 0;case 271:return t.name;case 260:return ac(t.name,Ai);default:return Se.assertNever(t,`Unexpected node kind ${t.kind}`)}}function qyt(t,n,a,u,m,g,v,x){let k=SJ(m,99),T=!1,I=[];if(Wm.Core.eachSymbolReferenceInFile(g,a,n,A=>{ba(A.parent)&&(T=T||!!a.resolveName(k,A,-1,!0),u.has(a.getSymbolAtLocation(A.parent.name))&&I.push(A))}),I.length){let A=T?mJ(k,n):k;for(let M of I)t.replaceNode(n,M,Me.createIdentifier(A));t.insertNodeAfter(n,v,gjt(v,k,m,x))}}function gjt(t,n,a,u){let m=Me.createIdentifier(n),g=YW(a,u);switch(t.kind){case 272:return Me.createImportDeclaration(void 0,Me.createImportClause(!1,void 0,Me.createNamespaceImport(m)),g,void 0);case 271:return Me.createImportEqualsDeclaration(void 0,!1,m,Me.createExternalModuleReference(g));case 260:return Me.createVariableDeclaration(m,void 0,void 0,$yt(g));default:return Se.assertNever(t,`Unexpected node kind ${t.kind}`)}}function $yt(t){return Me.createCallExpression(Me.createIdentifier("require"),void 0,[t])}function yjt(t){return t.kind===272?t.moduleSpecifier:t.kind===271?t.moduleReference.expression:t.initializer.arguments[0]}function bQe(t,n){if(Dd(t))Kf(t.moduleSpecifier)&&n(t);else if(pf(t))Zg(t.moduleReference)&&i_(t.moduleReference.expression)&&n(t);else if(Zh(t))for(let a of t.declarationList.declarations)a.initializer&&es(a.initializer,!0)&&n(a)}function SQe(t,n){var a,u,m,g,v;if(t.kind===272){if((a=t.importClause)!=null&&a.name&&n(t.importClause),((m=(u=t.importClause)==null?void 0:u.namedBindings)==null?void 0:m.kind)===274&&n(t.importClause.namedBindings),((v=(g=t.importClause)==null?void 0:g.namedBindings)==null?void 0:v.kind)===275)for(let x of t.importClause.namedBindings.elements)n(x)}else if(t.kind===271)n(t);else if(t.kind===260){if(t.name.kind===80)n(t);else if(t.name.kind===206)for(let x of t.name.elements)Ai(x.name)&&n(x)}}function bDe(t,n,a,u){for(let[m,g]of t){let v=Zte(m,h_(u.getCompilerOptions())),x=m.name==="default"&&m.parent?1:0;a.addImportForNonExistentExport(v,n,x,m.flags,g)}}function Gyt(t,n,a,u=2){return Me.createVariableStatement(void 0,Me.createVariableDeclarationList([Me.createVariableDeclaration(t,void 0,n,a)],u))}function xQe(t,n,a,u){return za(n,m=>{if(CQe(m)&&!Kyt(t,m,u)&&IQe(m,g=>{var v;return a.includes(Se.checkDefined((v=ac(g,$x))==null?void 0:v.symbol))})){let g=Xyt(mp(m),u);if(g)return g}return mp(m)})}function Kyt(t,n,a,u){var m;return a?!E0(n)&&kc(n,32)||!!(u&&t.symbol&&((m=t.symbol.exports)!=null&&m.has(u.escapedText))):!!t.symbol&&!!t.symbol.exports&&kQe(n).some(g=>t.symbol.exports.has(kh(g)))}function vjt(t,n,a,u){if(n.kind===272&&n.importClause){let{name:m,namedBindings:g}=n.importClause;if((!m||u(m))&&(!g||g.kind===275&&g.elements.length!==0&&g.elements.every(v=>u(v.name))))return a.delete(t,n)}SQe(n,m=>{m.name&&Ai(m.name)&&u(m.name)&&a.delete(t,m)})}function CQe(t){return Se.assert(ul(t.parent),"Node parent should be a SourceFile"),ovt(t)||Zh(t)}function Xyt(t,n){return n?[Yyt(t)]:bjt(t)}function Yyt(t){let n=tD(t)?Pl([Me.createModifier(95)],$g(t)):void 0;switch(t.kind){case 262:return Me.updateFunctionDeclaration(t,n,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);case 263:let a=_W(t)?v3(t):void 0;return Me.updateClassDeclaration(t,Pl(a,n),t.name,t.typeParameters,t.heritageClauses,t.members);case 243:return Me.updateVariableStatement(t,n,t.declarationList);case 267:return Me.updateModuleDeclaration(t,n,t.name,t.body);case 266:return Me.updateEnumDeclaration(t,n,t.name,t.members);case 265:return Me.updateTypeAliasDeclaration(t,n,t.name,t.typeParameters,t.type);case 264:return Me.updateInterfaceDeclaration(t,n,t.name,t.typeParameters,t.heritageClauses,t.members);case 271:return Me.updateImportEqualsDeclaration(t,n,t.isTypeOnly,t.name,t.moduleReference);case 244:return Se.fail();default:return Se.assertNever(t,`Unexpected declaration kind ${t.kind}`)}}function bjt(t){return[t,...kQe(t).map(Qyt)]}function Qyt(t){return Me.createExpressionStatement(Me.createBinaryExpression(Me.createPropertyAccessExpression(Me.createIdentifier("exports"),Me.createIdentifier(t)),64,Me.createIdentifier(t)))}function kQe(t){switch(t.kind){case 262:case 263:return[t.name.text];case 243:return Dc(t.declarationList.declarations,n=>Ai(n.name)?n.name.text:void 0);case 267:case 266:case 265:case 264:case 271:return F;case 244:return Se.fail("Can't export an ExpressionStatement");default:return Se.assertNever(t,`Unexpected decl kind ${t.kind}`)}}function Zyt(t,n,a){switch(t.kind){case 272:{let u=t.importClause;if(!u)return;let m=u.name&&a(u.name)?u.name:void 0,g=u.namedBindings&&wQe(u.namedBindings,a);return m||g?Me.createImportDeclaration(void 0,Me.createImportClause(u.isTypeOnly,m,g),mp(n),void 0):void 0}case 271:return a(t.name)?t:void 0;case 260:{let u=evt(t.name,a);return u?Gyt(u,t.type,$yt(n),t.parent.flags):void 0}default:return Se.assertNever(t,`Unexpected import kind ${t.kind}`)}}function wQe(t,n){if(t.kind===274)return n(t.name)?t:void 0;{let a=t.elements.filter(u=>n(u.name));return a.length?Me.createNamedImports(a):void 0}}function evt(t,n){switch(t.kind){case 80:return n(t)?t:void 0;case 207:return t;case 206:{let a=t.elements.filter(u=>u.propertyName||!Ai(u.name)||n(u.name));return a.length?Me.createObjectBindingPattern(a):void 0}}}function Sjt(t){return E0(t)?ac(t.expression.left.name,Ai):ac(t.name,Ai)}function tvt(t){switch(t.kind){case 260:return t.parent.parent;case 208:return tvt($d(t.parent.parent,n=>$c(n)||Zd(n)));default:return t}}function ivt(t,n,a,u,m){if(!Kyt(t,n,m,a))if(m)E0(n)||u.insertExportModifier(t,n);else{let g=kQe(n);g.length!==0&&u.insertNodesAfter(t,n,g.map(Qyt))}}function SDe(t,n,a,u){let m=n.getTypeChecker();if(u){let g=xDe(t,u.all,m),v=Cc(t.fileName),x=F5(t.fileName);return Ps(v,CDe(Cjt(g.oldFileImportsFromTargetFile,g.movedSymbols),x,v,a))+x}return""}function nvt(t){let{file:n}=t,a=Fte(b9(t)),{statements:u}=n,m=_n(u,T=>T.end>a.pos);if(m===-1)return;let g=u[m],v=NQe(n,g);v&&(m=v.start);let x=_n(u,T=>T.end>=a.end,m);x!==-1&&a.end<=u[x].getStart()&&x--;let k=NQe(n,u[x]);return k&&(x=k.end),{toMove:u.slice(m,x===-1?u.length:x+1),afterLast:x===-1?void 0:u[x+1]}}function fie(t){let n=nvt(t);if(n===void 0)return;let a=[],u=[],{toMove:m,afterLast:g}=n;return IE(m,gye,(v,x)=>{for(let k=v;k!!(n.transformFlags&2))}function gye(t){return!EQe(t)&&!cw(t)}function EQe(t){switch(t.kind){case 272:return!0;case 271:return!kc(t,32);case 243:return t.declarationList.declarations.every(n=>!!n.initializer&&es(n.initializer,!0));default:return!1}}function xDe(t,n,a,u=new Set,m){var g;let v=new Set,x=new Map,k=new Map,T=M(TQe(n));T&&x.set(T,[!1,ac((g=T.declarations)==null?void 0:g[0],R=>eg(R)||Ym(R)||ZE(R)||pf(R)||Zd(R)||$c(R))]);for(let R of n)IQe(R,H=>{v.add(Se.checkDefined(E0(H)?a.getSymbolAtLocation(H.expression.left):H.symbol,"Need a symbol here"))});let I=new Set;for(let R of n)DQe(R,a,m,(H,U)=>{if(!(!H.declarations||xjt(a,H))){if(u.has(ym(H,a))){I.add(H);return}for(let $ of H.declarations)if(VMe($)){let K=x.get(H);x.set(H,[(K===void 0||K)&&U,ac($,re=>eg(re)||Ym(re)||ZE(re)||pf(re)||Zd(re)||$c(re))])}else UMe($)&&rvt($)===t&&!v.has(H)&&k.set(H,U)}});for(let R of x.keys())I.add(R);let A=new Map;for(let R of t.statements)dr(n,R)||(T&&R.transformFlags&2&&I.delete(T),DQe(R,a,m,(H,U)=>{v.has(H)&&A.set(H,U),I.delete(H)}));return{movedSymbols:v,targetFileImportsFromOldFile:k,oldFileImportsFromTargetFile:A,oldImportsNeededByTargetFile:x,unusedImportsFromOldFile:I};function M(R){if(R===void 0)return;let H=a.getJsxNamespace(R),U=a.resolveName(H,R,1920,!0);return U&&En(U.declarations,VMe)?U:void 0}}function xjt(t,n){return!!t.resolveName(n.name,void 0,788968,!1)}function CDe(t,n,a,u){let m=t;for(let g=1;;g++){let v=Ps(a,m+n);if(!u.fileExists(v))return m;m=`${t}.${g}`}}function Cjt(t,n){return N2(t,Ak)||N2(n,Ak)||"newFile"}function DQe(t,n,a,u){t.forEachChild(function m(g){if(Ai(g)&&!VT(g)){if(a&&!bw(a,g))return;let v=n.getSymbolAtLocation(g);v&&u(v,q3(g))}else g.forEachChild(m)})}function IQe(t,n){switch(t.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return n(t);case 243:return Je(t.declarationList.declarations,a=>kDe(a.name,n));case 244:{let{expression:a}=t;return ms(a)&&wh(a)===1?n(t):void 0}}}function VMe(t){switch(t.kind){case 271:case 276:case 273:case 274:return!0;case 260:return HMe(t);case 208:return $c(t.parent.parent)&&HMe(t.parent.parent);default:return!1}}function HMe(t){return ul(t.parent.parent.parent)&&!!t.initializer&&es(t.initializer,!0)}function UMe(t){return ovt(t)&&ul(t.parent)||$c(t)&&ul(t.parent.parent.parent)}function rvt(t){return $c(t)?t.parent.parent.parent:t.parent}function kDe(t,n){switch(t.kind){case 80:return n($d(t.parent,a=>$c(a)||Zd(a)));case 207:case 206:return Je(t.elements,a=>Eh(a)?void 0:kDe(a.name,n));default:return Se.assertNever(t,`Unexpected name kind ${t.kind}`)}}function ovt(t){switch(t.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return!0;default:return!1}}function svt(t,n,a,u,m){var g;let v=new Set,x=(g=u.symbol)==null?void 0:g.exports;if(x){let T=n.getTypeChecker(),I=new Map;for(let A of m.all)CQe(A)&&kc(A,32)&&IQe(A,M=>{var R;let H=$x(M)?(R=x.get(M.symbol.escapedName))==null?void 0:R.declarations:void 0,U=Je(H,$=>Qg($)?$:X0($)?ac($.parent.parent,Qg):void 0);U&&U.moduleSpecifier&&I.set(U,(I.get(U)||new Set).add(M))});for(let[A,M]of tc(I))if(A.exportClause&&QT(A.exportClause)&&Z(A.exportClause.elements)){let R=A.exportClause.elements,H=Qn(R,U=>jt(ym(U.symbol,T).declarations,$=>UMe($)&&M.has($))===void 0);if(Z(H)===0){t.deleteNode(u,A),v.add(A);continue}Z(H)Qg(T)&&!!T.moduleSpecifier&&!v.has(T));k?t.insertNodesBefore(u,k,a,!0):t.insertNodesAfter(u,u.statements[u.statements.length-1],a)}function NQe(t,n){if(Rp(n)){let a=n.symbol.declarations;if(a===void 0||Z(a)<=1||!dr(a,n))return;let u=a[0],m=a[Z(a)-1],g=Dc(a,k=>Vo(k)===t&&ll(k)?k:void 0),v=_n(t.statements,k=>k.end>=m.end),x=_n(t.statements,k=>k.end>=u.end);return{toMove:g,start:x,end:v}}}function AQe(t,n,a){let u=new Set;for(let m of t.imports){let g=pG(m);if(Dd(g)&&g.importClause&&g.importClause.namedBindings&&_p(g.importClause.namedBindings))for(let v of g.importClause.namedBindings.elements){let x=a.getSymbolAtLocation(v.propertyName||v.name);x&&u.add(ym(x,a))}if(AH(g.parent)&&fb(g.parent.name))for(let v of g.parent.name.elements){let x=a.getSymbolAtLocation(v.propertyName||v.name);x&&u.add(ym(x,a))}}for(let m of n)DQe(m,a,void 0,g=>{let v=ym(g,a);v.valueDeclaration&&Vo(v.valueDeclaration).path===t.path&&u.add(v)});return u}function xL(t){return t.error!==void 0}function SF(t,n){return n?t.substr(0,n.length)===n:!0}function G4(t,n,a,u){return ba(t)&&!bc(n)&&!a.resolveName(t.name.text,t,111551,!1)&&!wl(t.name)&&!F6(t.name)?t.name.text:mJ(bc(n)?"newProperty":"newLocal",u)}function xF(t,n,a,u,m,g){n.forEach(([v,x],k)=>{var T;let I=ym(k,u);u.isUnknownSymbol(I)?g.addVerbatimImport(Se.checkDefined(x??go((T=k.declarations)==null?void 0:T[0],_j))):g.addImportFromExportedSymbol(I,v,x)}),bDe(a,t.fileName,g,m)}var Tle="Inline variable",wDe=ed(j.Inline_variable),Ele={name:Tle,description:wDe,kind:"refactor.inline.variable"};fT(Tle,{kinds:[Ele.kind],getAvailableActions(t){let{file:n,program:a,preferences:u,startPosition:m,triggerReason:g}=t,v=JMe(n,m,g==="invoked",a);return v?vX.isRefactorErrorInfo(v)?u.provideRefactorNotApplicableReason?[{name:Tle,description:wDe,actions:[{...Ele,notApplicableReason:v.error}]}]:F:[{name:Tle,description:wDe,actions:[Ele]}]:F},getEditsForAction(t,n){Se.assert(n===Tle,"Unexpected refactor invoked");let{file:a,program:u,startPosition:m}=t,g=JMe(a,m,!0,u);if(!g||vX.isRefactorErrorInfo(g))return;let{references:v,declaration:x,replacement:k}=g;return{edits:Gs.ChangeTracker.with(t,I=>{for(let A of v){let M=Kf(k)&&Ai(A)&&uN(A.parent);M&&Og(M)&&!Kv(M.parent.parent)?cvt(I,a,M,k):I.replaceNode(a,A,avt(A,k))}I.delete(a,x)})}}});function JMe(t,n,a,u){var m,g;let v=u.getTypeChecker(),x=VS(t,n),k=x.parent;if(Ai(x)){if(qZ(k)&&sG(k)&&Ai(k.name)){if(((m=v.getMergedSymbol(k.symbol).declarations)==null?void 0:m.length)!==1)return{error:ed(j.Variables_with_multiple_declarations_cannot_be_inlined)};if(qMe(k))return;let T=PQe(k,v,t);return T&&{references:T,declaration:k,replacement:k.initializer}}if(a){let T=v.resolveName(x.text,x,111551,!1);if(T=T&&v.getMergedSymbol(T),((g=T?.declarations)==null?void 0:g.length)!==1)return{error:ed(j.Variables_with_multiple_declarations_cannot_be_inlined)};let I=T.declarations[0];if(!qZ(I)||!sG(I)||!Ai(I.name)||qMe(I))return;let A=PQe(I,v,t);return A&&{references:A,declaration:I,replacement:I.initializer}}return{error:ed(j.Could_not_find_variable_to_inline)}}}function qMe(t){let n=$d(t.parent.parent,Zh);return En(n.modifiers,H5)}function PQe(t,n,a){let u=[],m=Wm.Core.eachSymbolReferenceInFile(t.name,n,a,g=>{if(Wm.isWriteAccessForReference(g)&&!Q0(g.parent)||X0(g.parent)||Bm(g.parent)||C1(g.parent)||Roe(t,g.pos))return!0;u.push(g)});return u.length===0||m?void 0:u}function avt(t,n){n=mp(n);let{parent:a}=t;return An(a)&&(Qb(n)LQe(n.file,n.program,u,g,n.host,n,n.preferences)),renameFilename:void 0,renameLocation:void 0}}});function LQe(t,n,a,u,m,g,v){let x=n.getTypeChecker(),k=xDe(t,a.all,x),T=SDe(t,n,m,a),I=_O(T,t.externalModuleIndicator?99:t.commonJsModuleIndicator?1:void 0,n,m),A=vb.createImportAdder(t,g.program,g.preferences,g.host),M=vb.createImportAdder(I,g.program,g.preferences,g.host);WMe(t,I,k,u,a,n,m,v,M,A),hQe(n,u,t.fileName,T,E4(m))}var kjt={},OQe="Convert overload list to single signature",$Me=ed(j.Convert_overload_list_to_single_signature),FQe={name:OQe,description:$Me,kind:"refactor.rewrite.function.overloadList"};fT(OQe,{kinds:[FQe.kind],getEditsForAction:wjt,getAvailableActions:lvt});function lvt(t){let{file:n,startPosition:a,program:u}=t;return MQe(n,a,u)?[{name:OQe,description:$Me,actions:[FQe]}]:F}function wjt(t){let{file:n,startPosition:a,program:u}=t,m=MQe(n,a,u);if(!m)return;let g=u.getTypeChecker(),v=m[m.length-1],x=v;switch(v.kind){case 173:{x=Me.updateMethodSignature(v,v.modifiers,v.name,v.questionToken,v.typeParameters,T(m),v.type);break}case 174:{x=Me.updateMethodDeclaration(v,v.modifiers,v.asteriskToken,v.name,v.questionToken,v.typeParameters,T(m),v.type,v.body);break}case 179:{x=Me.updateCallSignature(v,v.typeParameters,T(m),v.type);break}case 176:{x=Me.updateConstructorDeclaration(v,v.modifiers,T(m),v.body);break}case 180:{x=Me.updateConstructSignature(v,v.typeParameters,T(m),v.type);break}case 262:{x=Me.updateFunctionDeclaration(v,v.modifiers,v.asteriskToken,v.name,v.typeParameters,T(m),v.type,v.body);break}default:return Se.failBadSyntaxKind(v,"Unhandled signature kind in overload list conversion refactoring")}if(x===v)return;return{renameFilename:void 0,renameLocation:void 0,edits:Gs.ChangeTracker.with(t,M=>{M.replaceNodeRange(n,m[0],m[m.length-1],x)})};function T(M){let R=M[M.length-1];return Rp(R)&&R.body&&(M=M.slice(0,M.length-1)),Me.createNodeArray([Me.createParameterDeclaration(void 0,Me.createToken(26),"args",void 0,Me.createUnionTypeNode($i(M,I)))])}function I(M){let R=$i(M.parameters,A);return De(Me.createTupleTypeNode(R),En(R,H=>!!Z(aL(H)))?0:1)}function A(M){Se.assert(Ai(M.name));let R=Fn(Me.createNamedTupleMember(M.dotDotDotToken,M.name,M.questionToken,M.type||Me.createKeywordTypeNode(133)),M),H=M.symbol&&M.symbol.getDocumentationComment(g);if(H){let U=lz(H);U.length&&pw(R,[{text:`* +${U.split(` +`).map($=>` * ${$}`).join(` +`)} + `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return R}}function uvt(t){switch(t.kind){case 173:case 174:case 179:case 176:case 180:case 262:return!0}return!1}function MQe(t,n,a){let u=wc(t,n),m=go(u,uvt);if(!m||Rp(m)&&m.body&&xx(m.body,n))return;let g=a.getTypeChecker(),v=m.symbol;if(!v)return;let x=v.declarations;if(Z(x)<=1||!Yt(x,M=>Vo(M)===t)||!uvt(x[0]))return;let k=x[0].kind;if(!Yt(x,M=>M.kind===k))return;let T=x;if(En(T,M=>!!M.typeParameters||En(M.parameters,R=>!!R.modifiers||!Ai(R.name))))return;let I=Dc(T,M=>g.getSignatureFromDeclaration(M));if(Z(I)!==Z(x))return;let A=g.getReturnTypeOfSignature(I[0]);if(Yt(I,M=>g.getReturnTypeOfSignature(M)===A))return T}var GMe="Add or remove braces in an arrow function",KMe=ed(j.Add_or_remove_braces_in_an_arrow_function),DDe={name:"Add braces to arrow function",description:ed(j.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},_ie={name:"Remove braces from arrow function",description:ed(j.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"};fT(GMe,{kinds:[_ie.kind],getEditsForAction:Tjt,getAvailableActions:IDe});function IDe(t){let{file:n,startPosition:a,triggerReason:u}=t,m=dvt(n,a,u==="invoked");return m?xL(m)?t.preferences.provideRefactorNotApplicableReason?[{name:GMe,description:KMe,actions:[{...DDe,notApplicableReason:m.error},{..._ie,notApplicableReason:m.error}]}]:F:[{name:GMe,description:KMe,actions:[m.addBraces?DDe:_ie]}]:F}function Tjt(t,n){let{file:a,startPosition:u}=t,m=dvt(a,u);Se.assert(m&&!xL(m),"Expected applicable refactor info");let{expression:g,returnStatement:v,func:x}=m,k;if(n===DDe.name){let I=Me.createReturnStatement(g);k=Me.createBlock([I],!0),Ute(g,I,a,3,!0)}else if(n===_ie.name&&v){let I=g||Me.createVoidZero();k=gJ(I)?Me.createParenthesizedExpression(I):I,iz(v,k,a,3,!1),Ute(v,k,a,3,!1),bL(v,k,a,3,!1)}else Se.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:Gs.ChangeTracker.with(t,I=>{I.replaceNode(a,x.body,k)})}}function dvt(t,n,a=!0,u){let m=wc(t,n),g=BS(m);if(!g)return{error:ed(j.Could_not_find_a_containing_arrow_function)};if(!Zc(g))return{error:ed(j.Containing_function_is_not_an_arrow_function)};if(!(!bw(g,m)||bw(g.body,m)&&!a)){if(SF(DDe.kind,u)&&An(g.body))return{func:g,addBraces:!0,expression:g.body};if(SF(_ie.kind,u)&&qu(g.body)&&g.body.statements.length===1){let v=of(g.body.statements);if(fm(v)){let x=v.expression&&Ld(Va(v.expression,!1))?Me.createParenthesizedExpression(v.expression):v.expression;return{func:g,addBraces:!1,expression:x,returnStatement:v}}}}}var fvt={},_vt="Convert arrow function or function expression",pvt=ed(j.Convert_arrow_function_or_function_expression),NDe={name:"Convert to anonymous function",description:ed(j.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},SX={name:"Convert to named function",description:ed(j.Convert_to_named_function),kind:"refactor.rewrite.function.named"},xX={name:"Convert to arrow function",description:ed(j.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"};fT(_vt,{kinds:[NDe.kind,SX.kind,xX.kind],getEditsForAction:Ejt,getAvailableActions:ADe});function ADe(t){let{file:n,startPosition:a,program:u,kind:m}=t,g=RQe(n,a,u);if(!g)return F;let{selectedVariableDeclaration:v,func:x}=g,k=[],T=[];if(SF(SX.kind,m)){let I=v||Zc(x)&&$c(x.parent)?void 0:ed(j.Could_not_convert_to_named_function);I?T.push({...SX,notApplicableReason:I}):k.push(SX)}if(SF(NDe.kind,m)){let I=!v&&Zc(x)?void 0:ed(j.Could_not_convert_to_anonymous_function);I?T.push({...NDe,notApplicableReason:I}):k.push(NDe)}if(SF(xX.kind,m)){let I=yd(x)?void 0:ed(j.Could_not_convert_to_arrow_function);I?T.push({...xX,notApplicableReason:I}):k.push(xX)}return[{name:_vt,description:pvt,actions:k.length===0&&t.preferences.provideRefactorNotApplicableReason?T:k}]}function Ejt(t,n){let{file:a,startPosition:u,program:m}=t,g=RQe(a,u,m);if(!g)return;let{func:v}=g,x=[];switch(n){case NDe.name:x.push(...Ijt(t,v));break;case SX.name:let k=yvt(v);if(!k)return;x.push(...Njt(t,v,k));break;case xX.name:if(!yd(v))return;x.push(...Ajt(t,v));break;default:return Se.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:x}}function mvt(t){let n=!1;return t.forEachChild(function a(u){if(H4(u)){n=!0;return}!bc(u)&&!fp(u)&&!yd(u)&&_d(u,a)}),n}function RQe(t,n,a){let u=wc(t,n),m=a.getTypeChecker(),g=Djt(t,m,u.parent);if(g&&!mvt(g.body)&&!m.containsArgumentsReference(g))return{selectedVariableDeclaration:!0,func:g};let v=BS(u);if(v&&(yd(v)||Zc(v))&&!bw(v.body,u)&&!mvt(v.body)&&!m.containsArgumentsReference(v))return yd(v)&&vvt(t,m,v)?void 0:{selectedVariableDeclaration:!1,func:v}}function hvt(t){return $c(t)||Xv(t)&&t.declarations.length===1}function Djt(t,n,a){if(!hvt(a))return;let m=($c(a)?a:of(a.declarations)).initializer;if(m&&(Zc(m)||yd(m)&&!vvt(t,n,m)))return m}function gvt(t){if(An(t)){let n=Me.createReturnStatement(t),a=t.getSourceFile();return Fn(n,t),Lk(n),iz(t,n,a,void 0,!0),Me.createBlock([n],!0)}else return t}function yvt(t){let n=t.parent;if(!$c(n)||!sG(n))return;let a=n.parent,u=a.parent;if(!(!Xv(a)||!Zh(u)||!Ai(n.name)))return{variableDeclaration:n,variableDeclarationList:a,statement:u,name:n.name}}function Ijt(t,n){let{file:a}=t,u=gvt(n.body),m=Me.createFunctionExpression(n.modifiers,n.asteriskToken,void 0,n.typeParameters,n.parameters,n.type,u);return Gs.ChangeTracker.with(t,g=>g.replaceNode(a,n,m))}function Njt(t,n,a){let{file:u}=t,m=gvt(n.body),{variableDeclaration:g,variableDeclarationList:v,statement:x,name:k}=a;gF(x);let T=iv(g)&32|A_(n),I=Me.createModifiersFromModifierFlags(T),A=Me.createFunctionDeclaration(Z(I)?I:void 0,n.asteriskToken,k,n.typeParameters,n.parameters,n.type,m);return v.declarations.length===1?Gs.ChangeTracker.with(t,M=>M.replaceNode(u,x,A)):Gs.ChangeTracker.with(t,M=>{M.delete(u,g),M.insertNodeAfter(u,x,A)})}function Ajt(t,n){let{file:a}=t,m=n.body.statements[0],g;Pjt(n.body,m)?(g=m.expression,Lk(g),Qv(m,g)):g=n.body;let v=Me.createArrowFunction(n.modifiers,n.typeParameters,n.parameters,n.type,Me.createToken(39),g);return Gs.ChangeTracker.with(t,x=>x.replaceNode(a,n,v))}function Pjt(t,n){return t.statements.length===1&&fm(n)&&!!n.expression}function vvt(t,n,a){return!!a.name&&Wm.Core.isSymbolReferencedInFile(a.name,n,t)}var bvt={},XMe="Convert parameters to destructured object",YMe=1,Svt=ed(j.Convert_parameters_to_destructured_object),BQe={name:XMe,description:Svt,kind:"refactor.rewrite.parameters.toDestructured"};fT(XMe,{kinds:[BQe.kind],getEditsForAction:Ljt,getAvailableActions:xvt});function xvt(t){let{file:n,startPosition:a}=t;return $v(n)||!kvt(n,a,t.program.getTypeChecker())?F:[{name:XMe,description:Svt,actions:[BQe]}]}function Ljt(t,n){Se.assert(n===XMe,"Unexpected action name");let{file:a,startPosition:u,program:m,cancellationToken:g,host:v}=t,x=kvt(a,u,m.getTypeChecker());if(!x||!g)return;let k=Fjt(x,m,g);return k.valid?{renameFilename:void 0,renameLocation:void 0,edits:Gs.ChangeTracker.with(t,I=>Ojt(a,m,v,I,x,k))}:{edits:[]}}function Ojt(t,n,a,u,m,g){let v=g.signature,x=$i(Nvt(m,n,a),I=>mp(I));if(v){let I=$i(Nvt(v,n,a),A=>mp(A));T(v,I)}T(m,x);let k=tr(g.functionCalls,(I,A)=>m_(I.pos,A.pos));for(let I of k)if(I.arguments&&I.arguments.length){let A=mp(Wjt(m,I.arguments),!0);u.replaceNodeRange(Vo(I),of(I.arguments),Bu(I.arguments),A,{leadingTriviaOption:Gs.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Gs.TrailingTriviaOption.Include})}function T(I,A){u.replaceNodeRangeWithNodes(t,of(I.parameters),Bu(I.parameters),A,{joiner:", ",indentation:0,leadingTriviaOption:Gs.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Gs.TrailingTriviaOption.Include})}}function Fjt(t,n,a){let u=zjt(t),m=yl(t)?iRe(t):[],g=la([...u,...m],p8),v=n.getTypeChecker(),x=za(g,A=>Wm.getReferenceEntriesForNode(-1,A,n,n.getSourceFiles(),a)),k=T(x);return Yt(k.declarations,A=>dr(g,A))||(k.valid=!1),k;function T(A){let M={accessExpressions:[],typeUsages:[]},R={functionCalls:[],declarations:[],classReferences:M,valid:!0},H=$i(u,I),U=$i(m,I),$=yl(t),K=$i(u,re=>jQe(re,v));for(let re of A){if(re.kind===Wm.EntryKind.Span){R.valid=!1;continue}if(dr(K,I(re.node))){if(Rjt(re.node.parent)){R.signature=re.node.parent;continue}let ne=eRe(re);if(ne){R.functionCalls.push(ne);continue}}let X=jQe(re.node,v);if(X&&dr(K,X)){let ne=ZMe(re);if(ne){R.declarations.push(ne);continue}}if(dr(H,I(re.node))||Gce(re.node)){if(QMe(re))continue;let se=ZMe(re);if(se){R.declarations.push(se);continue}let _e=eRe(re);if(_e){R.functionCalls.push(_e);continue}}if($&&dr(U,I(re.node))){if(QMe(re))continue;let se=ZMe(re);if(se){R.declarations.push(se);continue}let _e=Cvt(re);if(_e){M.accessExpressions.push(_e);continue}if(D0(t.parent)){let ae=Mjt(re);if(ae){M.typeUsages.push(ae);continue}}}R.valid=!1}return R}function I(A){let M=v.getSymbolAtLocation(A);return M&&JEe(M,v)}}function jQe(t,n){let a=Dye(t);if(a){let u=n.getContextualTypeForObjectLiteralElement(a),m=u?.getSymbol();if(m&&!(Ag(m)&6))return m}}function QMe(t){let n=t.node;if(eg(n.parent)||Ym(n.parent)||pf(n.parent)||ZE(n.parent)||X0(n.parent)||Bm(n.parent))return n}function ZMe(t){if(y1(t.node.parent))return t.node}function eRe(t){if(t.node.parent){let n=t.node,a=n.parent;switch(a.kind){case 213:case 214:let u=ac(a,WE);if(u&&u.expression===n)return u;break;case 211:let m=ac(a,ba);if(m&&m.parent&&m.name===n){let v=ac(m.parent,WE);if(v&&v.expression===m)return v}break;case 212:let g=ac(a,T_);if(g&&g.parent&&g.argumentExpression===n){let v=ac(g.parent,WE);if(v&&v.expression===g)return v}break}}}function Cvt(t){if(t.node.parent){let n=t.node,a=n.parent;switch(a.kind){case 211:let u=ac(a,ba);if(u&&u.expression===n)return u;break;case 212:let m=ac(a,T_);if(m&&m.expression===n)return m;break}}}function Mjt(t){let n=t.node;if(m9(n)===2||Ose(n.parent))return n}function kvt(t,n,a){let u=h9(t,n),m=_se(u);if(!wvt(u)&&m&&Bjt(m,a)&&bw(m,u)&&!(m.body&&bw(m.body,u)))return m}function wvt(t){let n=go(t,gZ);if(n){let a=go(n,u=>!gZ(u));return!!a&&Rp(a)}return!1}function Rjt(t){return sT(t)&&(ky(t.parent)||Im(t.parent))}function Bjt(t,n){var a;if(!Tvt(t.parameters,n))return!1;switch(t.kind){case 262:return yye(t)&&PDe(t,n);case 174:if(Ld(t.parent)){let u=jQe(t.name,n);return((a=u?.declarations)==null?void 0:a.length)===1&&PDe(t,n)}return PDe(t,n);case 176:return D0(t.parent)?yye(t.parent)&&PDe(t,n):Evt(t.parent.parent)&&PDe(t,n);case 218:case 219:return Evt(t.parent)}return!1}function PDe(t,n){return!!t.body&&!n.isImplementationOfOverload(t)}function yye(t){return t.name?!0:!!FM(t,90)}function Tvt(t,n){return WQe(t)>=YMe&&Yt(t,a=>jjt(a,n))}function jjt(t,n){if(RS(t)){let a=n.getTypeAtLocation(t);if(!n.isArrayType(a)&&!n.isTupleType(a))return!1}return!t.modifiers&&Ai(t.name)}function Evt(t){return $c(t)&&W7(t)&&Ai(t.name)&&!t.type}function tRe(t){return t.length>0&&H4(t[0].name)}function WQe(t){return tRe(t)?t.length-1:t.length}function Dvt(t){return tRe(t)&&(t=Me.createNodeArray(t.slice(1),t.hasTrailingComma)),t}function Ivt(t,n){return Ai(n)&&jC(n)===t?Me.createShorthandPropertyAssignment(t):Me.createPropertyAssignment(t,n)}function Wjt(t,n){let a=Dvt(t.parameters),u=RS(Bu(a)),m=u?n.slice(0,a.length-1):n,g=$i(m,(x,k)=>{let T=LDe(a[k]),I=Ivt(T,x);return Lk(I.name),Ih(I)&&Lk(I.initializer),Qv(x,I),I});if(u&&n.length>=a.length){let x=n.slice(a.length-1),k=Me.createPropertyAssignment(LDe(Bu(a)),Me.createArrayLiteralExpression(x));g.push(k)}return Me.createObjectLiteralExpression(g,!1)}function Nvt(t,n,a){let u=n.getTypeChecker(),m=Dvt(t.parameters),g=$i(m,I),v=Me.createObjectBindingPattern(g),x=A(m),k;Yt(m,H)&&(k=Me.createObjectLiteralExpression());let T=Me.createParameterDeclaration(void 0,void 0,v,void 0,x,k);if(tRe(t.parameters)){let U=t.parameters[0],$=Me.createParameterDeclaration(void 0,void 0,U.name,void 0,U.type);return Lk($.name),Qv(U.name,$.name),U.type&&(Lk($.type),Qv(U.type,$.type)),Me.createNodeArray([$,T])}return Me.createNodeArray([T]);function I(U){let $=Me.createBindingElement(void 0,void 0,LDe(U),RS(U)&&H(U)?Me.createArrayLiteralExpression():U.initializer);return Lk($),U.initializer&&$.initializer&&Qv(U.initializer,$.initializer),$}function A(U){let $=$i(U,M);return gN(Me.createTypeLiteralNode($),1)}function M(U){let $=U.type;!$&&(U.initializer||RS(U))&&($=R(U));let K=Me.createPropertySignature(void 0,LDe(U),H(U)?Me.createToken(58):U.questionToken,$);return Lk(K),Qv(U.name,K.name),U.type&&K.type&&Qv(U.type,K.type),K}function R(U){let $=u.getTypeAtLocation(U);return vJ($,U,n,a)}function H(U){if(RS(U)){let $=u.getTypeAtLocation(U);return!u.isTupleType($)}return u.isOptionalParameter(U)}}function LDe(t){return jC(t.name)}function iRe(t){switch(t.parent.kind){case 263:let n=t.parent;return n.name?[n.name]:[Se.checkDefined(FM(n,90),"Nameless class declaration should be a default export")];case 231:let u=t.parent,m=t.parent.parent,g=u.name;return g?[g,m.name]:[m.name]}}function zjt(t){switch(t.kind){case 262:return t.name?[t.name]:[Se.checkDefined(FM(t,90),"Nameless function declaration should be a default export")];case 174:return[t.name];case 176:let a=Se.checkDefined(Np(t,137,t.getSourceFile()),"Constructor declaration should have constructor keyword");return t.parent.kind===231?[t.parent.parent.name,a]:[a];case 219:return[t.parent.name];case 218:return t.name?[t.name,t.parent.name]:[t.parent.name];default:return Se.assertNever(t,`Unexpected function declaration kind ${t.kind}`)}}var Vjt={},zQe="Convert to template string",ODe=ed(j.Convert_to_template_string),FDe={name:zQe,description:ODe,kind:"refactor.rewrite.string"};fT(zQe,{kinds:[FDe.kind],getEditsForAction:Pvt,getAvailableActions:VQe});function VQe(t){let{file:n,startPosition:a}=t,u=Avt(n,a),m=HQe(u),g=Kf(m),v={name:zQe,description:ODe,actions:[]};return g&&t.triggerReason!=="invoked"?F:ab(m)&&(g||ms(m)&&MDe(m).isValidConcatenation)?(v.actions.push(FDe),[v]):t.preferences.provideRefactorNotApplicableReason?(v.actions.push({...FDe,notApplicableReason:ed(j.Can_only_convert_string_concatenations_and_string_literals)}),[v]):F}function Avt(t,n){let a=wc(t,n),u=HQe(a);return!MDe(u).isValidConcatenation&&Tu(u.parent)&&ms(u.parent.parent)?u.parent.parent:a}function Pvt(t,n){let{file:a,startPosition:u}=t,m=Avt(a,u);switch(n){case ODe:return{edits:Hjt(t,m)};default:return Se.fail("invalid action")}}function Hjt(t,n){let a=HQe(n),u=t.file,m=Ovt(MDe(a),u),g=L6(u.text,a.end);if(g){let v=g[g.length-1],x={pos:g[0].pos,end:v.end};return Gs.ChangeTracker.with(t,k=>{k.deleteRange(u,x),k.replaceNode(u,a,m)})}else return Gs.ChangeTracker.with(t,v=>v.replaceNode(u,a,m))}function Ujt(t){return!(t.operatorToken.kind===64||t.operatorToken.kind===65)}function HQe(t){return go(t.parent,a=>{switch(a.kind){case 211:case 212:return!1;case 228:case 226:return!(ms(a.parent)&&Ujt(a.parent));default:return"quit"}})||t}function MDe(t){let n=v=>{if(!ms(v))return{nodes:[v],operators:[],validOperators:!0,hasString:Kf(v)||z5(v)};let{nodes:x,operators:k,hasString:T,validOperators:I}=n(v.left);if(!(T||Kf(v.right)||dm(v.right)))return{nodes:[v],operators:[],hasString:!1,validOperators:!0};let A=v.operatorToken.kind===40,M=I&&A;return x.push(v.right),k.push(v.operatorToken),{nodes:x,operators:k,hasString:!0,validOperators:M}},{nodes:a,operators:u,validOperators:m,hasString:g}=n(t);return{nodes:a,operators:u,isValidConcatenation:m&&g}}var UQe=(t,n)=>(a,u)=>{a(u,m)=>{for(;u.length>0;){let g=u.shift();bL(t[g],m,n,3,!1),a(g,m)}};function qjt(t){return t.replace(/\\.|[$`]/g,n=>n[0]==="\\"?n:"\\"+n)}function Lvt(t){let n=nM(t)||pee(t)?-2:-1;return _h(t).slice(1,n)}function JQe(t,n){let a=[],u="",m="";for(;t{Fvt(X);let se=ne===M.templateSpans.length-1,_e=X.literal.text+(se?H:""),ae=Lvt(X.literal)+(se?U:"");return Me.createTemplateSpan(X.expression,K&&se?Me.createTemplateTail(_e,ae):Me.createTemplateMiddle(_e,ae))});T.push(...re)}else{let re=K?Me.createTemplateTail(H,U):Me.createTemplateMiddle(H,U);m($,re),T.push(Me.createTemplateSpan(M,re))}}return Me.createTemplateExpression(I,T)}function Fvt(t){let n=t.getSourceFile();bL(t,t.expression,n,3,!1),iz(t.expression,t.expression,n,3,!1)}function Mvt(t){return Tu(t)&&(Fvt(t),t=t.expression),t}var $jt={},nRe="Convert to optional chain expression",vye=ed(j.Convert_to_optional_chain_expression),RDe={name:nRe,description:vye,kind:"refactor.rewrite.expression.optionalChain"};fT(nRe,{kinds:[RDe.kind],getEditsForAction:Gjt,getAvailableActions:qQe});function qQe(t){let n=BDe(t,t.triggerReason==="invoked");return n?xL(n)?t.preferences.provideRefactorNotApplicableReason?[{name:nRe,description:vye,actions:[{...RDe,notApplicableReason:n.error}]}]:F:[{name:nRe,description:vye,actions:[RDe]}]:F}function Gjt(t,n){let a=BDe(t);return Se.assert(a&&!xL(a),"Expected applicable refactor info"),{edits:Gs.ChangeTracker.with(t,m=>jvt(t.file,t.program.getTypeChecker(),m,a,n)),renameFilename:void 0,renameLocation:void 0}}function rRe(t){return ms(t)||Cp(t)}function oRe(t){return E0(t)||fm(t)||Zh(t)}function sRe(t){return rRe(t)||oRe(t)}function BDe(t,n=!0){let{file:a,program:u}=t,m=b9(t),g=m.length===0;if(g&&!n)return;let v=wc(a,m.start),x=ele(a,m.start+m.length),k=cg(v.pos,x&&x.end>=v.pos?x.getEnd():v.getEnd()),T=g?Xjt(v):Sye(v,k),I=T&&sRe(T)?Yjt(T):void 0;if(!I)return{error:ed(j.Could_not_find_convertible_access_expression)};let A=u.getTypeChecker();return Cp(I)?Rvt(I,A):Kjt(I)}function Rvt(t,n){let a=t.condition,u=GQe(t.whenTrue);if(!u||n.isNullableType(n.getTypeAtLocation(u)))return{error:ed(j.Could_not_find_convertible_access_expression)};if((ba(a)||Ai(a))&&aRe(a,u.expression))return{finalExpression:u,occurrences:[a],expression:t};if(ms(a)){let m=Bvt(u.expression,a);return m?{finalExpression:u,occurrences:m,expression:t}:{error:ed(j.Could_not_find_matching_access_expressions)}}}function Kjt(t){if(t.operatorToken.kind!==56)return{error:ed(j.Can_only_convert_logical_AND_access_chains)};let n=GQe(t.right);if(!n)return{error:ed(j.Could_not_find_convertible_access_expression)};let a=Bvt(n.expression,t.left);return a?{finalExpression:n,occurrences:a,expression:t}:{error:ed(j.Could_not_find_matching_access_expressions)}}function Bvt(t,n){let a=[];for(;ms(n)&&n.operatorToken.kind===56;){let m=aRe(J_(t),J_(n.right));if(!m)break;a.push(m),t=m,n=n.left}let u=aRe(t,n);return u&&a.push(u),a.length>0?a:void 0}function aRe(t,n){if(!(!Ai(n)&&!ba(n)&&!T_(n)))return $Qe(t,n)?n:void 0}function $Qe(t,n){for(;(Od(t)||ba(t)||T_(t))&&bye(t)!==bye(n);)t=t.expression;for(;ba(t)&&ba(n)||T_(t)&&T_(n);){if(bye(t)!==bye(n))return!1;t=t.expression,n=n.expression}return Ai(t)&&Ai(n)&&t.getText()===n.getText()}function bye(t){if(Ai(t)||Xb(t))return t.getText();if(ba(t))return bye(t.name);if(T_(t))return bye(t.argumentExpression)}function Sye(t,n){for(;t.parent;){if(sRe(t)&&n.length!==0&&t.end>=n.start+n.length)return t;t=t.parent}}function Xjt(t){for(;t.parent;){if(sRe(t)&&!sRe(t.parent))return t;t=t.parent}}function Yjt(t){if(rRe(t))return t;if(Zh(t)){let n=D8(t),a=n?.initializer;return a&&rRe(a)?a:void 0}return t.expression&&rRe(t.expression)?t.expression:void 0}function GQe(t){if(t=J_(t),ms(t))return GQe(t.left);if((ba(t)||T_(t)||Od(t))&&!By(t))return t}function cRe(t,n,a){if(ba(n)||T_(n)||Od(n)){let u=cRe(t,n.expression,a),m=a.length>0?a[a.length-1]:void 0,g=m?.getText()===n.expression.getText();if(g&&a.pop(),Od(n))return g?Me.createCallChain(u,Me.createToken(29),n.typeArguments,n.arguments):Me.createCallChain(u,n.questionDotToken,n.typeArguments,n.arguments);if(ba(n))return g?Me.createPropertyAccessChain(u,Me.createToken(29),n.name):Me.createPropertyAccessChain(u,n.questionDotToken,n.name);if(T_(n))return g?Me.createElementAccessChain(u,Me.createToken(29),n.argumentExpression):Me.createElementAccessChain(u,n.questionDotToken,n.argumentExpression)}return n}function jvt(t,n,a,u,m){let{finalExpression:g,occurrences:v,expression:x}=u,k=v[v.length-1],T=cRe(n,g,v);T&&(ba(T)||T_(T)||Od(T))&&(ms(x)?a.replaceNodeRange(t,k,g,T):Cp(x)&&a.replaceNode(t,x,Me.createBinaryExpression(T,Me.createToken(61),x.whenFalse)))}var Wvt={};d(Wvt,{Messages:()=>I1,RangeFacts:()=>N1,getRangeToExtract:()=>lRe,getRefactorActionsToExtractSymbol:()=>mie,getRefactorEditsToExtractSymbol:()=>KQe});var pie="Extract Symbol",WM={name:"Extract Constant",description:ed(j.Extract_constant),kind:"refactor.extract.constant"},zM={name:"Extract Function",description:ed(j.Extract_function),kind:"refactor.extract.function"};fT(pie,{kinds:[WM.kind,zM.kind],getEditsForAction:KQe,getAvailableActions:mie});function mie(t){let n=t.kind,a=lRe(t.file,b9(t),t.triggerReason==="invoked"),u=a.targetRange;if(u===void 0){if(!a.errors||a.errors.length===0||!t.preferences.provideRefactorNotApplicableReason)return F;let U=[];return SF(zM.kind,n)&&U.push({name:pie,description:zM.description,actions:[{...zM,notApplicableReason:H(a.errors)}]}),SF(WM.kind,n)&&U.push({name:pie,description:WM.description,actions:[{...WM,notApplicableReason:H(a.errors)}]}),U}let{affectedTextRange:m,extractions:g}=tWt(u,t);if(g===void 0)return F;let v=[],x=new Map,k,T=[],I=new Map,A,M=0;for(let{functionExtraction:U,constantExtraction:$}of g){if(SF(zM.kind,n)){let K=U.description;U.errors.length===0?x.has(K)||(x.set(K,!0),v.push({description:K,name:`function_scope_${M}`,kind:zM.kind,range:{start:{line:Df(t.file,m.pos).line,offset:Df(t.file,m.pos).character},end:{line:Df(t.file,m.end).line,offset:Df(t.file,m.end).character}}})):k||(k={description:K,name:`function_scope_${M}`,notApplicableReason:H(U.errors),kind:zM.kind})}if(SF(WM.kind,n)){let K=$.description;$.errors.length===0?I.has(K)||(I.set(K,!0),T.push({description:K,name:`constant_scope_${M}`,kind:WM.kind,range:{start:{line:Df(t.file,m.pos).line,offset:Df(t.file,m.pos).character},end:{line:Df(t.file,m.end).line,offset:Df(t.file,m.end).character}}})):A||(A={description:K,name:`constant_scope_${M}`,notApplicableReason:H($.errors),kind:WM.kind})}M++}let R=[];return v.length?R.push({name:pie,description:ed(j.Extract_function),actions:v}):t.preferences.provideRefactorNotApplicableReason&&k&&R.push({name:pie,description:ed(j.Extract_function),actions:[k]}),T.length?R.push({name:pie,description:ed(j.Extract_constant),actions:T}):t.preferences.provideRefactorNotApplicableReason&&A&&R.push({name:pie,description:ed(j.Extract_constant),actions:[A]}),R.length?R:F;function H(U){let $=U[0].messageText;return typeof $!="string"&&($=$.messageText),$}}function KQe(t,n){let u=lRe(t.file,b9(t)).targetRange,m=/^function_scope_(\d+)$/.exec(n);if(m){let v=+m[1];return Se.assert(isFinite(v),"Expected to parse a finite number from the function scope index"),Zjt(u,t,v)}let g=/^constant_scope_(\d+)$/.exec(n);if(g){let v=+g[1];return Se.assert(isFinite(v),"Expected to parse a finite number from the constant scope index"),eWt(u,t,v)}Se.fail("Unrecognized action name")}var I1;(t=>{function n(a){return{message:a,code:0,category:3,key:a}}t.cannotExtractRange=n("Cannot extract range."),t.cannotExtractImport=n("Cannot extract import statement."),t.cannotExtractSuper=n("Cannot extract super call."),t.cannotExtractJSDoc=n("Cannot extract JSDoc."),t.cannotExtractEmpty=n("Cannot extract empty range."),t.expressionExpected=n("expression expected."),t.uselessConstantType=n("No reason to extract constant of type."),t.statementOrExpressionExpected=n("Statement or expression expected."),t.cannotExtractRangeContainingConditionalBreakOrContinueStatements=n("Cannot extract range containing conditional break or continue statements."),t.cannotExtractRangeContainingConditionalReturnStatement=n("Cannot extract range containing conditional return statement."),t.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=n("Cannot extract range containing labeled break or continue with target outside of the range."),t.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=n("Cannot extract range containing writes to references located outside of the target range in generators."),t.typeWillNotBeVisibleInTheNewScope=n("Type will not visible in the new scope."),t.functionWillNotBeVisibleInTheNewScope=n("Function will not visible in the new scope."),t.cannotExtractIdentifier=n("Select more than a single identifier."),t.cannotExtractExportedEntity=n("Cannot extract exported declaration"),t.cannotWriteInExpression=n("Cannot write back side-effects when extracting an expression"),t.cannotExtractReadonlyPropertyInitializerOutsideConstructor=n("Cannot move initialization of read-only class property outside of the constructor"),t.cannotExtractAmbientBlock=n("Cannot extract code from ambient contexts"),t.cannotAccessVariablesFromNestedScopes=n("Cannot access variables from nested scopes"),t.cannotExtractToJSClass=n("Cannot extract constant to a class scope in JS"),t.cannotExtractToExpressionArrowFunction=n("Cannot extract constant to an arrow function without a block"),t.cannotExtractFunctionsContainingThisToMethod=n("Cannot extract functions containing this to method")})(I1||(I1={}));var N1=(t=>(t[t.None=0]="None",t[t.HasReturn=1]="HasReturn",t[t.IsGenerator=2]="IsGenerator",t[t.IsAsyncFunction=4]="IsAsyncFunction",t[t.UsesThis=8]="UsesThis",t[t.UsesThisInFunction=16]="UsesThisInFunction",t[t.InStaticRegion=32]="InStaticRegion",t))(N1||{});function lRe(t,n,a=!0){let{length:u}=n;if(u===0&&!a)return{errors:[k_(t,n.start,u,I1.cannotExtractEmpty)]};let m=u===0&&a,g=El(t,n.start),v=ele(t,ag(n)),x=g&&v&&a?XQe(g,v,t):n,k=m?vWt(g):QW(g,t,x),T=m?k:QW(v,t,x),I=0,A;if(!k||!T)return{errors:[k_(t,n.start,u,I1.cannotExtractRange)]};if(k.flags&16777216)return{errors:[k_(t,n.start,u,I1.cannotExtractJSDoc)]};if(k.parent!==T.parent)return{errors:[k_(t,n.start,u,I1.cannotExtractRange)]};if(k!==T){if(!yF(k.parent))return{errors:[k_(t,n.start,u,I1.cannotExtractRange)]};let re=[];for(let X of k.parent.statements){if(X===k||re.length){let ne=K(X);if(ne)return{errors:ne};re.push(X)}if(X===T)break}return re.length?{targetRange:{range:re,facts:I,thisNode:A}}:{errors:[k_(t,n.start,u,I1.cannotExtractRange)]}}if(fm(k)&&!k.expression)return{errors:[k_(t,n.start,u,I1.cannotExtractRange)]};let M=H(k),R=U(M)||K(M);if(R)return{errors:R};return{targetRange:{range:Qjt(M),facts:I,thisNode:A}};function H(re){if(fm(re)){if(re.expression)return re.expression}else if(Zh(re)||Xv(re)){let X=Zh(re)?re.declarationList.declarations:re.declarations,ne=0,se;for(let _e of X)_e.initializer&&(ne++,se=_e.initializer);if(ne===1)return se}else if($c(re)&&re.initializer)return re.initializer;return re}function U(re){if(Ai(E0(re)?re.expression:re))return[ws(re,I1.cannotExtractIdentifier)]}function $(re,X){let ne=re;for(;ne!==X;){if(ne.kind===172){Xd(ne)&&(I|=32);break}else if(ne.kind===169){BS(ne).kind===176&&(I|=32);break}else ne.kind===174&&Xd(ne)&&(I|=32);ne=ne.parent}}function K(re){let X;if((Ee=>{Ee[Ee.None=0]="None",Ee[Ee.Break=1]="Break",Ee[Ee.Continue=2]="Continue",Ee[Ee.Return=4]="Return"})(X||(X={})),Se.assert(re.pos<=re.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),Se.assert(!hN(re.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!ll(re)&&!(ab(re)&&zvt(re))&&!jDe(re))return[ws(re,I1.statementOrExpressionExpected)];if(re.flags&33554432)return[ws(re,I1.cannotExtractAmbientBlock)];let ne=vy(re);ne&&$(re,ne);let se,_e=4,ae;if(le(re),I&8){let Ee=Kb(re,!1,!1);(Ee.kind===262||Ee.kind===174&&Ee.parent.kind===210||Ee.kind===218)&&(I|=16)}return se;function le(Ee){if(se)return!0;if(y1(Ee)){let be=Ee.kind===260?Ee.parent.parent:Ee;if(kc(be,32))return(se||(se=[])).push(ws(Ee,I1.cannotExtractExportedEntity)),!0}switch(Ee.kind){case 272:return(se||(se=[])).push(ws(Ee,I1.cannotExtractImport)),!0;case 277:return(se||(se=[])).push(ws(Ee,I1.cannotExtractExportedEntity)),!0;case 108:if(Ee.parent.kind===213){let be=vy(Ee);if(be===void 0||be.pos=n.start+n.length)return(se||(se=[])).push(ws(Ee,I1.cannotExtractSuper)),!0}else I|=8,A=Ee;break;case 219:_d(Ee,function be(Le){if(H4(Le))I|=8,A=Ee;else{if(bc(Le)||iu(Le)&&!Zc(Le))return!1;_d(Le,be)}});case 263:case 262:ul(Ee.parent)&&Ee.parent.externalModuleIndicator===void 0&&(se||(se=[])).push(ws(Ee,I1.functionWillNotBeVisibleInTheNewScope));case 231:case 218:case 174:case 176:case 177:case 178:return!1}let xe=_e;switch(Ee.kind){case 245:_e&=-5;break;case 258:_e=0;break;case 241:Ee.parent&&Ee.parent.kind===258&&Ee.parent.finallyBlock===Ee&&(_e=4);break;case 297:case 296:_e|=1;break;default:v8(Ee,!1)&&(_e|=3);break}switch(Ee.kind){case 197:case 110:I|=8,A=Ee;break;case 256:{let be=Ee.label;(ae||(ae=[])).push(be.escapedText),_d(Ee,le),ae.pop();break}case 252:case 251:{let be=Ee.label;be?dr(ae,be.escapedText)||(se||(se=[])).push(ws(Ee,I1.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):_e&(Ee.kind===252?1:2)||(se||(se=[])).push(ws(Ee,I1.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 223:I|=4;break;case 229:I|=2;break;case 253:_e&4?I|=1:(se||(se=[])).push(ws(Ee,I1.cannotExtractRangeContainingConditionalReturnStatement));break;default:_d(Ee,le);break}_e=xe}}}function XQe(t,n,a){let u=t.getStart(a),m=n.getEnd();return a.text.charCodeAt(m)===59&&m++,{start:u,length:m-u}}function Qjt(t){if(ll(t))return[t];if(ab(t))return E0(t.parent)?[t.parent]:t;if(jDe(t))return t}function YQe(t){return Zc(t)?x3(t.body):Rp(t)||ul(t)||vN(t)||bc(t)}function QQe(t){let n=CL(t.range)?of(t.range):t.range;if(t.facts&8&&!(t.facts&16)){let u=vy(n);if(u){let m=go(n,Rp);return m?[m,u]:[u]}}let a=[];for(;;)if(n=n.parent,n.kind===169&&(n=go(n,u=>Rp(u)).parent),YQe(n)&&(a.push(n),n.kind===307))return a}function Zjt(t,n,a){let{scopes:u,readsAndWrites:{target:m,usagesPerScope:g,functionErrorsPerScope:v,exposedVariableDeclarations:x}}=ZQe(t,n);return Se.assert(!v[a].length,"The extraction went missing? How?"),n.cancellationToken.throwIfCancellationRequested(),sWt(m,u[a],g[a],x,t,n)}function eWt(t,n,a){let{scopes:u,readsAndWrites:{target:m,usagesPerScope:g,constantErrorsPerScope:v,exposedVariableDeclarations:x}}=ZQe(t,n);Se.assert(!v[a].length,"The extraction went missing? How?"),Se.assert(x.length===0,"Extract constant accepted a range containing a variable declaration?"),n.cancellationToken.throwIfCancellationRequested();let k=An(m)?m:m.statements[0].expression;return aWt(k,u[a],g[a],t.facts,n)}function tWt(t,n){let{scopes:a,affectedTextRange:u,readsAndWrites:{functionErrorsPerScope:m,constantErrorsPerScope:g}}=ZQe(t,n),v=a.map((x,k)=>{let T=eZe(x),I=iWt(x),A=Rp(x)?nWt(x):bc(x)?rWt(x):oWt(x),M,R;return A===1?(M=KA(ed(j.Extract_to_0_in_1_scope),[T,"global"]),R=KA(ed(j.Extract_to_0_in_1_scope),[I,"global"])):A===0?(M=KA(ed(j.Extract_to_0_in_1_scope),[T,"module"]),R=KA(ed(j.Extract_to_0_in_1_scope),[I,"module"])):(M=KA(ed(j.Extract_to_0_in_1),[T,A]),R=KA(ed(j.Extract_to_0_in_1),[I,A])),k===0&&!bc(x)&&(R=KA(ed(j.Extract_to_0_in_enclosing_scope),[I])),{functionExtraction:{description:M,errors:m[k]},constantExtraction:{description:R,errors:g[k]}}});return{affectedTextRange:u,extractions:v}}function ZQe(t,n){let{file:a}=n,u=QQe(t),m=CF(t,a),g=yWt(t,u,m,a,n.program.getTypeChecker(),n.cancellationToken);return{scopes:u,affectedTextRange:m,readsAndWrites:g}}function eZe(t){return Rp(t)?"inner function":bc(t)?"method":"function"}function iWt(t){return bc(t)?"readonly field":"constant"}function nWt(t){switch(t.kind){case 176:return"constructor";case 218:case 262:return t.name?`function '${t.name.text}'`:q0e;case 219:return"arrow function";case 174:return`method '${t.name.getText()}'`;case 177:return`'get ${t.name.getText()}'`;case 178:return`'set ${t.name.getText()}'`;default:Se.assertNever(t,`Unexpected scope kind ${t.kind}`)}}function rWt(t){return t.kind===263?t.name?`class '${t.name.text}'`:"anonymous class declaration":t.name?`class expression '${t.name.text}'`:"anonymous class expression"}function oWt(t){return t.kind===268?`namespace '${t.parent.name.getText()}'`:t.externalModuleIndicator?0:1}function sWt(t,n,{usages:a,typeParameterUsages:u,substitutions:m},g,v,x){let k=x.program.getTypeChecker(),T=h_(x.program.getCompilerOptions()),I=vb.createImportAdder(x.file,x.program,x.preferences,x.host),A=n.getSourceFile(),M=mJ(bc(n)?"newMethod":"newFunction",A),R=Ys(n),H=Me.createIdentifier(M),U,$=[],K=[],re;a.forEach((Ke,qe)=>{let rt;if(!R){let ft=k.getTypeOfSymbolAtLocation(Ke.symbol,Ke.node);ft=k.getBaseTypeOfLiteralType(ft),rt=vb.typeToAutoImportableTypeNode(k,I,ft,n,T,1,8)}let _t=Me.createParameterDeclaration(void 0,void 0,qe,void 0,rt);$.push(_t),Ke.usage===2&&(re||(re=[])).push(Ke),K.push(Me.createIdentifier(qe))});let X=tc(u.values(),Ke=>({type:Ke,declaration:lWt(Ke,x.startPosition)}));X.sort(uWt);let ne=X.length===0?void 0:Dc(X,({declaration:Ke})=>Ke),se=ne!==void 0?ne.map(Ke=>Me.createTypeReferenceNode(Ke.name,void 0)):void 0;if(An(t)&&!R){let Ke=k.getContextualType(t);U=k.typeToTypeNode(Ke,n,1,8)}let{body:_e,returnValueProperty:ae}=fWt(t,g,re,m,!!(v.facts&1));Lk(_e);let le,Ee=!!(v.facts&16);if(bc(n)){let Ke=R?[]:[Me.createModifier(123)];v.facts&32&&Ke.push(Me.createModifier(126)),v.facts&4&&Ke.push(Me.createModifier(134)),le=Me.createMethodDeclaration(Ke.length?Ke:void 0,v.facts&2?Me.createToken(42):void 0,H,void 0,ne,$,U,_e)}else Ee&&$.unshift(Me.createParameterDeclaration(void 0,void 0,"this",void 0,k.typeToTypeNode(k.getTypeAtLocation(v.thisNode),n,1,8),void 0)),le=Me.createFunctionDeclaration(v.facts&4?[Me.createToken(134)]:void 0,v.facts&2?Me.createToken(42):void 0,H,ne,$,U,_e);let xe=Gs.ChangeTracker.fromContext(x),be=(CL(v.range)?Bu(v.range):v.range).end,Le=mWt(be,n);Le?xe.insertNodeBefore(x.file,Le,le,!0):xe.insertNodeAtEndOfScope(x.file,n,le),I.writeFixes(xe);let fe=[],we=dWt(n,v,M);Ee&&K.unshift(Me.createIdentifier("this"));let Ae=Me.createCallExpression(Ee?Me.createPropertyAccessExpression(we,"call"):we,se,K);if(v.facts&2&&(Ae=Me.createYieldExpression(Me.createToken(42),Ae)),v.facts&4&&(Ae=Me.createAwaitExpression(Ae)),uRe(t)&&(Ae=Me.createJsxExpression(void 0,Ae)),g.length&&!re)if(Se.assert(!ae,"Expected no returnValueProperty"),Se.assert(!(v.facts&1),"Expected RangeFacts.HasReturn flag to be unset"),g.length===1){let Ke=g[0];fe.push(Me.createVariableStatement(void 0,Me.createVariableDeclarationList([Me.createVariableDeclaration(mp(Ke.name),void 0,mp(Ke.type),Ae)],Ke.parent.flags)))}else{let Ke=[],qe=[],rt=g[0].parent.flags,_t=!1;for(let mt of g){Ke.push(Me.createBindingElement(void 0,void 0,mp(mt.name)));let ut=k.typeToTypeNode(k.getBaseTypeOfLiteralType(k.getTypeAtLocation(mt)),n,1,8);qe.push(Me.createPropertySignature(void 0,mt.symbol.name,void 0,ut)),_t=_t||mt.type!==void 0,rt=rt&mt.parent.flags}let ft=_t?Me.createTypeLiteralNode(qe):void 0;ft&&De(ft,1),fe.push(Me.createVariableStatement(void 0,Me.createVariableDeclarationList([Me.createVariableDeclaration(Me.createObjectBindingPattern(Ke),void 0,ft,Ae)],rt)))}else if(g.length||re){if(g.length)for(let qe of g){let rt=qe.parent.flags;rt&2&&(rt=rt&-3|1),fe.push(Me.createVariableStatement(void 0,Me.createVariableDeclarationList([Me.createVariableDeclaration(qe.symbol.name,void 0,$e(qe.type))],rt)))}ae&&fe.push(Me.createVariableStatement(void 0,Me.createVariableDeclarationList([Me.createVariableDeclaration(ae,void 0,$e(U))],1)));let Ke=tZe(g,re);ae&&Ke.unshift(Me.createShorthandPropertyAssignment(ae)),Ke.length===1?(Se.assert(!ae,"Shouldn't have returnValueProperty here"),fe.push(Me.createExpressionStatement(Me.createAssignment(Ke[0].name,Ae))),v.facts&1&&fe.push(Me.createReturnStatement())):(fe.push(Me.createExpressionStatement(Me.createAssignment(Me.createObjectLiteralExpression(Ke),Ae))),ae&&fe.push(Me.createReturnStatement(Me.createIdentifier(ae))))}else v.facts&1?fe.push(Me.createReturnStatement(Ae)):CL(v.range)?fe.push(Me.createExpressionStatement(Ae)):fe.push(Ae);CL(v.range)?xe.replaceNodeRangeWithNodes(x.file,of(v.range),Bu(v.range),fe):xe.replaceNodeWithNodes(x.file,v.range,fe);let Ge=xe.getChanges(),Oe=(CL(v.range)?of(v.range):v.range).getSourceFile().fileName,Re=Hte(Ge,Oe,M,!1);return{renameFilename:Oe,renameLocation:Re,edits:Ge};function $e(Ke){if(Ke===void 0)return;let qe=mp(Ke),rt=qe;for(;eO(rt);)rt=rt.type;return gx(rt)&&jt(rt.types,_t=>_t.kind===157)?qe:Me.createUnionTypeNode([qe,Me.createKeywordTypeNode(157)])}}function aWt(t,n,{substitutions:a},u,m){let g=m.program.getTypeChecker(),v=n.getSourceFile(),x=G4(t,n,g,v),k=Ys(n),T=k||!g.isContextSensitive(t)?void 0:g.typeToTypeNode(g.getContextualType(t),n,1,8),I=_Wt(J_(t),a);({variableType:T,initializer:I}=U(T,I)),Lk(I);let A=Gs.ChangeTracker.fromContext(m);if(bc(n)){Se.assert(!k,"Cannot extract to a JS class");let $=[];$.push(Me.createModifier(123)),u&32&&$.push(Me.createModifier(126)),$.push(Me.createModifier(148));let K=Me.createPropertyDeclaration($,x,void 0,T,I),re=Me.createPropertyAccessExpression(u&32?Me.createIdentifier(n.name.getText()):Me.createThis(),Me.createIdentifier(x));uRe(t)&&(re=Me.createJsxExpression(void 0,re));let X=t.pos,ne=hWt(X,n);A.insertNodeBefore(m.file,ne,K,!0),A.replaceNode(m.file,t,re)}else{let $=Me.createVariableDeclaration(x,void 0,T,I),K=cWt(t,n);if(K){A.insertNodeBefore(m.file,K,$);let re=Me.createIdentifier(x);A.replaceNode(m.file,t,re)}else if(t.parent.kind===244&&n===go(t,YQe)){let re=Me.createVariableStatement(void 0,Me.createVariableDeclarationList([$],2));A.replaceNode(m.file,t.parent,re)}else{let re=Me.createVariableStatement(void 0,Me.createVariableDeclarationList([$],2)),X=gWt(t,n);if(X.pos===0?A.insertNodeAtTopOfFile(m.file,re,!1):A.insertNodeBefore(m.file,X,re,!1),t.parent.kind===244)A.delete(m.file,t.parent);else{let ne=Me.createIdentifier(x);uRe(t)&&(ne=Me.createJsxExpression(void 0,ne)),A.replaceNode(m.file,t,ne)}}}let M=A.getChanges(),R=t.getSourceFile().fileName,H=Hte(M,R,x,!0);return{renameFilename:R,renameLocation:H,edits:M};function U($,K){if($===void 0)return{variableType:$,initializer:K};if(!yd(K)&&!Zc(K)||K.typeParameters)return{variableType:$,initializer:K};let re=g.getTypeAtLocation(t),X=vp(g.getSignaturesOfType(re,0));if(!X)return{variableType:$,initializer:K};if(X.getTypeParameters())return{variableType:$,initializer:K};let ne=[],se=!1;for(let _e of K.parameters)if(_e.type)ne.push(_e);else{let ae=g.getTypeAtLocation(_e);ae===g.getAnyType()&&(se=!0),ne.push(Me.updateParameterDeclaration(_e,_e.modifiers,_e.dotDotDotToken,_e.name,_e.questionToken,_e.type||g.typeToTypeNode(ae,n,1,8),_e.initializer))}if(se)return{variableType:$,initializer:K};if($=void 0,Zc(K))K=Me.updateArrowFunction(K,tD(t)?$g(t):void 0,K.typeParameters,ne,K.type||g.typeToTypeNode(X.getReturnType(),n,1,8),K.equalsGreaterThanToken,K.body);else{if(X&&X.thisParameter){let _e=Ed(ne);if(!_e||Ai(_e.name)&&_e.name.escapedText!=="this"){let ae=g.getTypeOfSymbolAtLocation(X.thisParameter,t);ne.splice(0,0,Me.createParameterDeclaration(void 0,void 0,"this",void 0,g.typeToTypeNode(ae,n,1,8)))}}K=Me.updateFunctionExpression(K,tD(t)?$g(t):void 0,K.asteriskToken,K.name,K.typeParameters,ne,K.type||g.typeToTypeNode(X.getReturnType(),n,1),K.body)}return{variableType:$,initializer:K}}}function cWt(t,n){let a;for(;t!==void 0&&t!==n;){if($c(t)&&t.initializer===a&&Xv(t.parent)&&t.parent.declarations.length>1)return t;a=t,t=t.parent}}function lWt(t,n){let a,u=t.symbol;if(u&&u.declarations)for(let m of u.declarations)(a===void 0||m.pos0;if(qu(t)&&!g&&u.size===0)return{body:Me.createBlock(t.statements,!0),returnValueProperty:void 0};let v,x=!1,k=Me.createNodeArray(qu(t)?t.statements.slice(0):[ll(t)?t:Me.createReturnStatement(J_(t))]);if(g||u.size){let I=ts(k,T,ll).slice();if(g&&!m&&ll(t)){let A=tZe(n,a);A.length===1?I.push(Me.createReturnStatement(A[0].name)):I.push(Me.createReturnStatement(Me.createObjectLiteralExpression(A)))}return{body:Me.createBlock(I,!0),returnValueProperty:v}}else return{body:Me.createBlock(k,!0),returnValueProperty:void 0};function T(I){if(!x&&fm(I)&&g){let A=tZe(n,a);return I.expression&&(v||(v="__return"),A.unshift(Me.createPropertyAssignment(v,on(I.expression,T,An)))),A.length===1?Me.createReturnStatement(A[0].name):Me.createReturnStatement(Me.createObjectLiteralExpression(A))}else{let A=x;x=x||Rp(I)||bc(I);let M=u.get(pp(I).toString()),R=M?mp(M):Fo(I,T,void 0);return x=A,R}}}function _Wt(t,n){return n.size?a(t):t;function a(u){let m=n.get(pp(u).toString());return m?mp(m):Fo(u,a,void 0)}}function pWt(t){if(Rp(t)){let n=t.body;if(qu(n))return n.statements}else{if(vN(t)||ul(t))return t.statements;if(bc(t))return t.members;}return F}function mWt(t,n){return jt(pWt(n),a=>a.pos>=t&&Rp(a)&&!yl(a))}function hWt(t,n){let a=n.members;Se.assert(a.length>0,"Found no members");let u,m=!0;for(let g of a){if(g.pos>t)return u||a[0];if(m&&!vu(g)){if(u!==void 0)return g;m=!1}u=g}return u===void 0?Se.fail():u}function gWt(t,n){Se.assert(!bc(n));let a;for(let u=t;u!==n;u=u.parent)YQe(u)&&(a=u);for(let u=(a||t).parent;;u=u.parent){if(yF(u)){let m;for(let g of u.statements){if(g.pos>t.pos)break;m=g}return!m&&eP(u)?(Se.assert(hee(u.parent.parent),"Grandparent isn't a switch statement"),u.parent.parent):Se.checkDefined(m,"prevStatement failed to get set")}Se.assert(u!==n,"Didn't encounter a block-like before encountering scope")}}function tZe(t,n){let a=$i(t,m=>Me.createShorthandPropertyAssignment(m.symbol.name)),u=$i(n,m=>Me.createShorthandPropertyAssignment(m.symbol.name));return a===void 0?u:u===void 0?a:a.concat(u)}function CL(t){return ua(t)}function CF(t,n){return CL(t.range)?{pos:of(t.range).getStart(n),end:Bu(t.range).getEnd()}:t.range}function yWt(t,n,a,u,m,g){let v=new Map,x=[],k=[],T=[],I=[],A=[],M=new Map,R=[],H,U=CL(t.range)?t.range.length===1&&E0(t.range[0])?t.range[0].expression:void 0:t.range,$;if(U===void 0){let fe=t.range,we=of(fe).getStart(),Ae=Bu(fe).end;$=k_(u,we,Ae-we,I1.expressionExpected)}else m.getTypeAtLocation(U).flags&147456&&($=ws(U,I1.uselessConstantType));for(let fe of n){x.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),k.push(new Map),T.push([]);let we=[];$&&we.push($),bc(fe)&&Ys(fe)&&we.push(ws(fe,I1.cannotExtractToJSClass)),Zc(fe)&&!qu(fe.body)&&we.push(ws(fe,I1.cannotExtractToExpressionArrowFunction)),I.push(we)}let K=new Map,re=CL(t.range)?Me.createBlock(t.range):t.range,X=CL(t.range)?of(t.range):t.range,ne=se(X);if(ae(re),ne&&!CL(t.range)&&!_b(t.range)){let fe=m.getContextualType(t.range);_e(fe)}if(v.size>0){let fe=new Map,we=0;for(let Ae=X;Ae!==void 0&&we{x[we].typeParameterUsages.set(he,Ge)}),we++),sse(Ae))for(let Ge of h8(Ae)){let he=m.getTypeAtLocation(Ge);v.has(he.id.toString())&&fe.set(he.id.toString(),he)}Se.assert(we===n.length,"Should have iterated all scopes")}if(A.length){let fe=ose(n[0],n[0].parent)?n[0]:Xw(n[0]);_d(fe,xe)}for(let fe=0;fe0&&(we.usages.size>0||we.typeParameterUsages.size>0)){let he=CL(t.range)?t.range[0]:t.range;I[fe].push(ws(he,I1.cannotAccessVariablesFromNestedScopes))}t.facts&16&&bc(n[fe])&&T[fe].push(ws(t.thisNode,I1.cannotExtractFunctionsContainingThisToMethod));let Ae=!1,Ge;if(x[fe].usages.forEach(he=>{he.usage===2&&(Ae=!0,he.symbol.flags&106500&&he.symbol.valueDeclaration&&zC(he.symbol.valueDeclaration,8)&&(Ge=he.symbol.valueDeclaration))}),Se.assert(CL(t.range)||R.length===0,"No variable declarations expected if something was extracted"),Ae&&!CL(t.range)){let he=ws(t.range,I1.cannotWriteInExpression);T[fe].push(he),I[fe].push(he)}else if(Ge&&fe>0){let he=ws(Ge,I1.cannotExtractReadonlyPropertyInitializerOutsideConstructor);T[fe].push(he),I[fe].push(he)}else if(H){let he=ws(H,I1.cannotExtractExportedEntity);T[fe].push(he),I[fe].push(he)}}return{target:re,usagesPerScope:x,functionErrorsPerScope:T,constantErrorsPerScope:I,exposedVariableDeclarations:R};function se(fe){return!!go(fe,we=>sse(we)&&h8(we).length!==0)}function _e(fe){let we=m.getSymbolWalker(()=>(g.throwIfCancellationRequested(),!0)),{visitedTypes:Ae}=we.walkType(fe);for(let Ge of Ae)Ge.isTypeParameter()&&v.set(Ge.id.toString(),Ge)}function ae(fe,we=1){if(ne){let Ae=m.getTypeAtLocation(fe);_e(Ae)}if(y1(fe)&&fe.symbol&&A.push(fe),Kg(fe))ae(fe.left,2),ae(fe.right);else if(Dpe(fe))ae(fe.operand,2);else if(ba(fe)||T_(fe))_d(fe,ae);else if(Ai(fe)){if(!fe.parent||tS(fe.parent)&&fe!==fe.parent.left||ba(fe.parent)&&fe!==fe.parent.expression)return;le(fe,we,jA(fe))}else _d(fe,ae)}function le(fe,we,Ae){let Ge=Ee(fe,we,Ae);if(Ge)for(let he=0;he=we)return he;if(K.set(he,we),Oe){for(let Ke of x)Ke.usages.get(fe.text)&&Ke.usages.set(fe.text,{usage:we,symbol:Ge,node:fe});return he}let Re=Ge.getDeclarations(),$e=Re&&jt(Re,Ke=>Ke.getSourceFile()===u);if($e&&!HW(a,$e.getStart(),$e.end)){if(t.facts&2&&we===2){let Ke=ws(fe,I1.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(let qe of T)qe.push(Ke);for(let qe of I)qe.push(Ke)}for(let Ke=0;KeGe.symbol===we);if(Ae)if($c(Ae)){let Ge=Ae.symbol.id.toString();M.has(Ge)||(R.push(Ae),M.set(Ge,!0))}else H=H||Ae}_d(fe,xe)}function be(fe){return fe.parent&&Q0(fe.parent)&&fe.parent.name===fe?m.getShorthandAssignmentValueSymbol(fe.parent):m.getSymbolAtLocation(fe)}function Le(fe,we,Ae){if(!fe)return;let Ge=fe.getDeclarations();if(Ge&&Ge.some(Oe=>Oe.parent===we))return Me.createIdentifier(fe.name);let he=Le(fe.parent,we,Ae);if(he!==void 0)return Ae?Me.createQualifiedName(he,Me.createIdentifier(fe.name)):Me.createPropertyAccessExpression(he,fe.name)}}function vWt(t){return go(t,n=>n.parent&&zvt(n)&&!ms(n.parent))}function zvt(t){let{parent:n}=t;switch(n.kind){case 306:return!1}switch(t.kind){case 11:return n.kind!==272&&n.kind!==276;case 230:case 206:case 208:return!1;case 80:return n.kind!==208&&n.kind!==276&&n.kind!==281}return!0}function uRe(t){return jDe(t)||(R_(t)||mh(t)||$5(t))&&(R_(t.parent)||$5(t.parent))}function jDe(t){return Kf(t)&&t.parent&&_b(t.parent)}var iZe={},dRe="Generate 'get' and 'set' accessors",xye=ed(j.Generate_get_and_set_accessors),WDe={name:dRe,description:xye,kind:"refactor.rewrite.property.generateAccessors"};fT(dRe,{kinds:[WDe.kind],getEditsForAction:function(n,a){if(!n.endPosition)return;let u=vb.getAccessorConvertiblePropertyAtPosition(n.file,n.program,n.startPosition,n.endPosition);Se.assert(u&&!xL(u),"Expected applicable refactor info");let m=vb.generateAccessorFromProperty(n.file,n.program,n.startPosition,n.endPosition,n,a);if(!m)return;let g=n.file.fileName,v=u.renameAccessor?u.accessorName:u.fieldName,k=(Ai(v)?0:-1)+Hte(m,g,v.text,Fl(u.declaration));return{renameFilename:g,renameLocation:k,edits:m}},getAvailableActions(t){if(!t.endPosition)return F;let n=vb.getAccessorConvertiblePropertyAtPosition(t.file,t.program,t.startPosition,t.endPosition,t.triggerReason==="invoked");return n?xL(n)?t.preferences.provideRefactorNotApplicableReason?[{name:dRe,description:xye,actions:[{...WDe,notApplicableReason:n.error}]}]:F:[{name:dRe,description:xye,actions:[WDe]}]:F}});var nZe={},fRe="Infer function return type",Cye=ed(j.Infer_function_return_type),kye={name:fRe,description:Cye,kind:"refactor.rewrite.function.returnType"};fT(fRe,{kinds:[kye.kind],getEditsForAction:_Re,getAvailableActions:bWt});function _Re(t){let n=Vvt(t);if(n&&!xL(n))return{renameFilename:void 0,renameLocation:void 0,edits:Gs.ChangeTracker.with(t,u=>SWt(t.file,u,n.declaration,n.returnTypeNode))}}function bWt(t){let n=Vvt(t);return n?xL(n)?t.preferences.provideRefactorNotApplicableReason?[{name:fRe,description:Cye,actions:[{...kye,notApplicableReason:n.error}]}]:F:[{name:fRe,description:Cye,actions:[kye]}]:F}function SWt(t,n,a,u){let m=Np(a,22,t),g=Zc(a)&&m===void 0,v=g?of(a.parameters):m;v&&(g&&(n.insertNodeBefore(t,v,Me.createToken(21)),n.insertNodeAfter(t,v,Me.createToken(22))),n.insertNodeAt(t,v.end,u,{prefix:": "}))}function Vvt(t){if(Ys(t.file)||!SF(kye.kind,t.kind))return;let n=VS(t.file,t.startPosition),a=go(n,v=>qu(v)||v.parent&&Zc(v.parent)&&(v.kind===39||v.parent.body===v)?"quit":Hvt(v));if(!a||!a.body||a.type)return{error:ed(j.Return_type_must_be_inferred_from_a_function)};let u=t.program.getTypeChecker(),m;if(u.isImplementationOfOverload(a)){let v=u.getTypeAtLocation(a).getCallSignatures();v.length>1&&(m=u.getUnionType(Dc(v,x=>x.getReturnType())))}if(!m){let v=u.getSignatureFromDeclaration(a);if(v){let x=u.getTypePredicateOfSignature(v);if(x&&x.type){let k=u.typePredicateToTypePredicateNode(x,a,1,8);if(k)return{declaration:a,returnTypeNode:k}}else m=u.getReturnTypeOfSignature(v)}}if(!m)return{error:ed(j.Could_not_determine_function_return_type)};let g=u.typeToTypeNode(m,a,1,8);if(g)return{declaration:a,returnTypeNode:g}}function Hvt(t){switch(t.kind){case 262:case 218:case 219:case 174:return!0;default:return!1}}var Uvt=(t=>(t[t.typeOffset=8]="typeOffset",t[t.modifierMask=255]="modifierMask",t))(Uvt||{}),Jvt=(t=>(t[t.class=0]="class",t[t.enum=1]="enum",t[t.interface=2]="interface",t[t.namespace=3]="namespace",t[t.typeParameter=4]="typeParameter",t[t.type=5]="type",t[t.parameter=6]="parameter",t[t.variable=7]="variable",t[t.enumMember=8]="enumMember",t[t.property=9]="property",t[t.function=10]="function",t[t.member=11]="member",t))(Jvt||{}),rZe=(t=>(t[t.declaration=0]="declaration",t[t.static=1]="static",t[t.async=2]="async",t[t.readonly=3]="readonly",t[t.defaultLibrary=4]="defaultLibrary",t[t.local=5]="local",t))(rZe||{});function oZe(t,n,a,u){let m=pRe(t,n,a,u);Se.assert(m.spans.length%3===0);let g=m.spans,v=[];for(let x=0;x{m.push(v.getStart(n),v.getWidth(n),(x+1<<8)+k)},u),m}function sZe(t,n,a,u,m){let g=t.getTypeChecker(),v=!1;function x(k){switch(k.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 219:m.throwIfCancellationRequested()}if(!k||!oZ(a,k.pos,k.getFullWidth())||k.getFullWidth()===0)return;let T=v;if((R_(k)||mh(k))&&(v=!0),aT(k)&&(v=!1),Ai(k)&&!v&&!wWt(k)&&!GG(k.escapedText)){let I=g.getSymbolAtLocation(k);if(I){I.flags&2097152&&(I=g.getAliasedSymbol(I));let A=xWt(I,m9(k));if(A!==void 0){let M=0;k.parent&&(Zd(k.parent)||Xvt.get(k.parent.kind)===A)&&k.parent.name===k&&(M=1),A===6&&Kvt(k)&&(A=9),A=CWt(g,k,A);let R=I.valueDeclaration;if(R){let H=iv(R),U=d4(R);H&256&&(M|=2),H&1024&&(M|=4),A!==0&&A!==2&&(H&8||U&2||I.getFlags()&8)&&(M|=8),(A===7||A===10)&&kWt(R,n)&&(M|=32),t.isSourceFileDefaultLibrary(R.getSourceFile())&&(M|=16)}else I.declarations&&I.declarations.some(H=>t.isSourceFileDefaultLibrary(H.getSourceFile()))&&(M|=16);u(k,A,M)}}}_d(k,x),v=T}x(n)}function xWt(t,n){let a=t.getFlags();if(a&32)return 0;if(a&384)return 1;if(a&524288)return 5;if(a&64){if(n&2)return 2}else if(a&262144)return 4;let u=t.valueDeclaration||t.declarations&&t.declarations[0];return u&&Zd(u)&&(u=$vt(u)),u&&Xvt.get(u.kind)}function CWt(t,n,a){if(a===7||a===9||a===6){let u=t.getTypeAtLocation(n);if(u){let m=g=>g(u)||u.isUnion()&&u.types.some(g);if(a!==6&&m(g=>g.getConstructSignatures().length>0))return 0;if(m(g=>g.getCallSignatures().length>0)&&!m(g=>g.getProperties().length>0)||Gvt(n))return a===9?11:10}}return a}function kWt(t,n){return Zd(t)&&(t=$vt(t)),$c(t)?(!ul(t.parent.parent.parent)||eC(t.parent))&&t.getSourceFile()===n:fp(t)?!ul(t.parent)&&t.getSourceFile()===n:!1}function $vt(t){for(;;)if(Zd(t.parent.parent))t=t.parent.parent;else return t.parent.parent}function wWt(t){let n=t.parent;return n&&(Ym(n)||eg(n)||ZE(n))}function Gvt(t){for(;Kvt(t);)t=t.parent;return Od(t.parent)&&t.parent.expression===t}function Kvt(t){return tS(t.parent)&&t.parent.right===t||ba(t.parent)&&t.parent.name===t}var Xvt=new Map([[260,7],[169,6],[172,9],[267,3],[266,1],[306,8],[263,0],[174,11],[262,10],[218,10],[173,11],[177,9],[178,9],[171,9],[264,2],[265,5],[168,4],[303,9],[304,9]]),aZe="0.8";function cZe(t,n,a,u){let m=MT(t)?new mRe(t,n,a):t===80?new Qvt(80,n,a):t===81?new lZe(81,n,a):new hRe(t,n,a);return m.parent=u,m.flags=u.flags&101441536,m}var mRe=class{constructor(t,n,a){this.pos=n,this.end=a,this.kind=t,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}assertHasRealPosition(t){Se.assert(!hN(this.pos)&&!hN(this.end),t||"Node must have a real position for this operation")}getSourceFile(){return Vo(this)}getStart(t,n){return this.assertHasRealPosition(),J6(this,t,n)}getFullStart(){return this.assertHasRealPosition(),this.pos}getEnd(){return this.assertHasRealPosition(),this.end}getWidth(t){return this.assertHasRealPosition(),this.getEnd()-this.getStart(t)}getFullWidth(){return this.assertHasRealPosition(),this.end-this.pos}getLeadingTriviaWidth(t){return this.assertHasRealPosition(),this.getStart(t)-this.pos}getFullText(t){return this.assertHasRealPosition(),(t||this.getSourceFile()).text.substring(this.pos,this.end)}getText(t){return this.assertHasRealPosition(),t||(t=this.getSourceFile()),t.text.substring(this.getStart(t),this.getEnd())}getChildCount(t){return this.getChildren(t).length}getChildAt(t,n){return this.getChildren(n)[t]}getChildren(t=Vo(this)){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),$we(this,t)??Gwe(this,t,Yvt(this,t))}getFirstToken(t){this.assertHasRealPosition();let n=this.getChildren(t);if(!n.length)return;let a=jt(n,u=>u.kind<309||u.kind>351);return a.kind<166?a:a.getFirstToken(t)}getLastToken(t){this.assertHasRealPosition();let n=this.getChildren(t),a=Y_(n);if(a)return a.kind<166?a:a.getLastToken(t)}forEachChild(t,n){return _d(this,t,n)}};function Yvt(t,n){let a=[];if(Xoe(t))return t.forEachChild(v=>{a.push(v)}),a;rS.setText((n||t.getSourceFile()).text);let u=t.pos,m=v=>{Ile(a,u,v.pos,t),a.push(v),u=v.end},g=v=>{Ile(a,u,v.pos,t),a.push(TWt(v,t)),u=v.end};return ee(t.jsDoc,m),u=t.pos,t.forEachChild(m,g),Ile(a,u,t.end,t),rS.setText(void 0),a}function Ile(t,n,a,u){for(rS.resetTokenState(n);nn.tagName.text==="inheritDoc"||n.tagName.text==="inheritdoc")}function gRe(t,n){if(!t)return F;let a=N9.getJsDocTagsFromDeclarations(t,n);if(n&&(a.length===0||t.some(t1t))){let u=new Set;for(let m of t){let g=zDe(n,m,v=>{var x;if(!u.has(v))return u.add(v),m.kind===177||m.kind===178?v.getContextualJsDocTags(m,n):((x=v.declarations)==null?void 0:x.length)===1?v.getJsDocTags(n):void 0});g&&(a=[...g,...a])}}return a}function wye(t,n){if(!t)return F;let a=N9.getJsDocCommentsFromDeclarations(t,n);if(n&&(a.length===0||t.some(t1t))){let u=new Set;for(let m of t){let g=zDe(n,m,v=>{if(!u.has(v))return u.add(v),m.kind===177||m.kind===178?v.getContextualDocumentationComment(m,n):v.getDocumentationComment(n)});g&&(a=a.length===0?g.slice():g.concat(zte(),a))}}return a}function zDe(t,n,a){var u;let m=((u=n.parent)==null?void 0:u.kind)===176?n.parent.parent:n.parent;if(!m)return;let g=G0(n);return Je(FH(m),v=>{let x=t.getTypeAtLocation(v),k=g&&x.symbol?t.getTypeOfSymbol(x.symbol):x,T=t.getPropertyOfType(k,n.symbol.name);return T?a(T):void 0})}var VDe=class extends mRe{constructor(t,n,a){super(t,n,a)}update(t,n){return mhe(this,t,n)}getLineAndCharacterOfPosition(t){return Df(this,t)}getLineStarts(){return P6(this)}getPositionOfLineAndCharacter(t,n,a){return mpe(P6(this),t,n,this.text,a)}getLineEndOfPosition(t){let{line:n}=this.getLineAndCharacterOfPosition(t),a=this.getLineStarts(),u;n+1>=a.length&&(u=this.getEnd()),u||(u=a[n+1]-1);let m=this.getFullText();return m[u]===` +`&&m[u-1]==="\r"?u-1:u}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){let t=Hb();return this.forEachChild(m),t;function n(g){let v=u(g);v&&t.add(v,g)}function a(g){let v=t.get(g);return v||t.set(g,v=[]),v}function u(g){let v=bpe(g);return v&&(f_(v)&&ba(v.expression)?v.expression.name.text:C_(v)?KW(v):void 0)}function m(g){switch(g.kind){case 262:case 218:case 174:case 173:let v=g,x=u(v);if(x){let I=a(x),A=Y_(I);A&&v.parent===A.parent&&v.symbol===A.symbol?v.body&&!A.body&&(I[I.length-1]=v):I.push(v)}_d(g,m);break;case 263:case 231:case 264:case 265:case 266:case 267:case 271:case 281:case 276:case 273:case 274:case 177:case 178:case 187:n(g),_d(g,m);break;case 169:if(!kc(g,31))break;case 260:case 208:{let I=g;if(Uu(I.name)){_d(I.name,m);break}I.initializer&&m(I.initializer)}case 306:case 172:case 171:n(g);break;case 278:let k=g;k.exportClause&&(QT(k.exportClause)?ee(k.exportClause.elements,m):m(k.exportClause.name));break;case 272:let T=g.importClause;T&&(T.name&&n(T.name),T.namedBindings&&(T.namedBindings.kind===274?n(T.namedBindings):ee(T.namedBindings.elements,m)));break;case 226:wh(g)!==0&&n(g);default:_d(g,m)}}}},i1t=class{constructor(t,n,a){this.fileName=t,this.text=n,this.skipTrivia=a||(u=>u)}getLineAndCharacterOfPosition(t){return Df(this,t)}};function DWt(){return{getNodeConstructor:()=>mRe,getTokenConstructor:()=>hRe,getIdentifierConstructor:()=>Qvt,getPrivateIdentifierConstructor:()=>lZe,getSourceFileConstructor:()=>VDe,getSymbolConstructor:()=>EWt,getTypeConstructor:()=>Zvt,getSignatureConstructor:()=>e1t,getSourceMapSourceConstructor:()=>i1t}}function Tye(t){let n=!0;for(let u in t)if(bf(t,u)&&!n1t(u)){n=!1;break}if(n)return t;let a={};for(let u in t)if(bf(t,u)){let m=n1t(u)?u:u.charAt(0).toLowerCase()+u.substr(1);a[m]=t[u]}return a}function n1t(t){return!t.length||t.charAt(0)===t.charAt(0).toLowerCase()}function lz(t){return t?$i(t,n=>n.text).join(""):""}function Eye(){return{target:1,jsx:1}}function CX(){return vb.getSupportedErrorCodes()}var HDe=class{constructor(t){this.host=t}getCurrentSourceFile(t){var n,a,u,m,g,v,x,k;let T=this.host.getScriptSnapshot(t);if(!T)throw new Error("Could not find file: '"+t+"'.");let I=ule(t,this.host),A=this.host.getScriptVersion(t),M;if(this.currentFileName!==t){let R={languageVersion:99,impliedNodeFormat:jK(dd(t,this.host.getCurrentDirectory(),((u=(a=(n=this.host).getCompilerHost)==null?void 0:a.call(n))==null?void 0:u.getCanonicalFileName)||E4(this.host)),(k=(x=(v=(g=(m=this.host).getCompilerHost)==null?void 0:g.call(m))==null?void 0:v.getModuleResolutionCache)==null?void 0:x.call(v))==null?void 0:k.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:kme(this.host.getCompilationSettings()),jsDocParsingMode:0};M=JDe(t,T,R,A,!0,I)}else if(this.currentFileVersion!==A){let R=T.getChangeRange(this.currentFileScriptSnapshot);M=qDe(this.currentSourceFile,T,A,R)}return M&&(this.currentFileVersion=A,this.currentFileName=t,this.currentFileScriptSnapshot=T,this.currentSourceFile=M),this.currentSourceFile}};function UDe(t,n,a){t.version=a,t.scriptSnapshot=n}function JDe(t,n,a,u,m,g){let v=AU(t,PM(n),a,m,g);return UDe(v,n,u),v}function qDe(t,n,a,u,m){if(u&&a!==t.version){let v,x=u.span.start!==0?t.text.substr(0,u.span.start):"",k=ag(u.span)!==t.text.length?t.text.substr(ag(u.span)):"";if(u.newLength===0)v=x&&k?x+k:x||k;else{let I=n.getText(u.span.start,u.span.start+u.newLength);v=x&&k?x+I+k:x?x+I:I+k}let T=mhe(t,v,u,m);return UDe(T,n,a),T.nameTable=void 0,t!==T&&t.scriptSnapshot&&(t.scriptSnapshot.dispose&&t.scriptSnapshot.dispose(),t.scriptSnapshot=void 0),T}let g={languageVersion:t.languageVersion,impliedNodeFormat:t.impliedNodeFormat,setExternalModuleIndicator:t.setExternalModuleIndicator,jsDocParsingMode:t.jsDocParsingMode};return JDe(t.fileName,n,g,a,!0,t.scriptKind)}var $De={isCancellationRequested:uk,throwIfCancellationRequested:Za},yRe=class{constructor(t){this.cancellationToken=t}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var t;if(this.isCancellationRequested())throw(t=us)==null||t.instant(us.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new sH}},uZe=class{constructor(t,n=20){this.hostCancellationToken=t,this.throttleWaitMilliseconds=n,this.lastCancellationCheckTime=0}isCancellationRequested(){let t=mm();return Math.abs(t-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=t,this.hostCancellationToken.isCancellationRequested()):!1}throwIfCancellationRequested(){var t;if(this.isCancellationRequested())throw(t=us)==null||t.instant(us.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new sH}},r1t=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes","getPasteEdits"],dZe=[...r1t,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"];function vRe(t,n=xle(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory(),t.jsDocParsingMode),a){var u;let m;a===void 0?m=0:typeof a=="boolean"?m=a?2:0:m=a;let g=new HDe(t),v,x,k=0,T=t.getCancellationToken?new yRe(t.getCancellationToken()):$De,I=t.getCurrentDirectory();P$e((u=t.getLocalizedDiagnosticMessages)==null?void 0:u.bind(t));function A(Si){t.log&&t.log(Si)}let M=TG(t),R=U0(M),H=rMe({useCaseSensitiveFileNames:()=>M,getCurrentDirectory:()=>I,getProgram:re,fileExists:wu(t,t.fileExists),readFile:wu(t,t.readFile),getDocumentPositionMapper:wu(t,t.getDocumentPositionMapper),getSourceFileLike:wu(t,t.getSourceFileLike),log:A});function U(Si){let Ri=v.getSourceFile(Si);if(!Ri){let Cn=new Error(`Could not find source file: '${Si}'.`);throw Cn.ProgramFiles=v.getSourceFiles().map(cn=>cn.fileName),Cn}return Ri}function $(){t.updateFromProject&&!t.updateFromProjectInProgress?t.updateFromProject():K()}function K(){var Si,Ri,Cn;if(Se.assert(m!==2),t.getProjectVersion){let Aa=t.getProjectVersion();if(Aa){if(x===Aa&&!((Si=t.hasChangedAutomaticTypeDirectiveNames)!=null&&Si.call(t)))return;x=Aa}}let cn=t.getTypeRootsVersion?t.getTypeRootsVersion():0;k!==cn&&(A("TypeRoots version has changed; provide new program"),v=void 0,k=cn);let Pn=t.getScriptFileNames().slice(),Wi=t.getCompilationSettings()||Eye(),Kn=t.hasInvalidatedResolutions||uk,Ti=wu(t,t.hasInvalidatedLibResolutions)||uk,wr=wu(t,t.hasChangedAutomaticTypeDirectiveNames),Nr=(Ri=t.getProjectReferences)==null?void 0:Ri.call(t),Vr,ir={getSourceFile:Gd,getSourceFileByPath:Su,getCancellationToken:()=>T,getCanonicalFileName:R,useCaseSensitiveFileNames:()=>M,getNewLine:()=>W2(Wi),getDefaultLibFileName:Aa=>t.getDefaultLibFileName(Aa),writeFile:Za,getCurrentDirectory:()=>I,fileExists:Aa=>t.fileExists(Aa),readFile:Aa=>t.readFile&&t.readFile(Aa),getSymlinkCache:wu(t,t.getSymlinkCache),realpath:wu(t,t.realpath),directoryExists:Aa=>fN(Aa,t),getDirectories:Aa=>t.getDirectories?t.getDirectories(Aa):[],readDirectory:(Aa,gr,Wl,Vc,xu)=>(Se.checkDefined(t.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(Aa,gr,Wl,Vc,xu)),onReleaseOldSourceFile:ja,onReleaseParsedCommandLine:vl,hasInvalidatedResolutions:Kn,hasInvalidatedLibResolutions:Ti,hasChangedAutomaticTypeDirectiveNames:wr,trace:wu(t,t.trace),resolveModuleNames:wu(t,t.resolveModuleNames),getModuleResolutionCache:wu(t,t.getModuleResolutionCache),createHash:wu(t,t.createHash),resolveTypeReferenceDirectives:wu(t,t.resolveTypeReferenceDirectives),resolveModuleNameLiterals:wu(t,t.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:wu(t,t.resolveTypeReferenceDirectiveReferences),resolveLibrary:wu(t,t.resolveLibrary),useSourceOfProjectReferenceRedirect:wu(t,t.useSourceOfProjectReferenceRedirect),getParsedCommandLine:$l,jsDocParsingMode:t.jsDocParsingMode},Ts=ir.getSourceFile,{getSourceFileWithCache:pa}=u9(ir,Aa=>dd(Aa,I,R),(...Aa)=>Ts.call(ir,...Aa));ir.getSourceFile=pa,(Cn=t.setCompilerHost)==null||Cn.call(t,ir);let Nc={useCaseSensitiveFileNames:M,fileExists:Aa=>ir.fileExists(Aa),readFile:Aa=>ir.readFile(Aa),directoryExists:Aa=>ir.directoryExists(Aa),getDirectories:Aa=>ir.getDirectories(Aa),realpath:ir.realpath,readDirectory:(...Aa)=>ir.readDirectory(...Aa),trace:ir.trace,getCurrentDirectory:ir.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:Za},_a=n.getKeyForCompilationSettings(Wi),Fa=new Set;if(XU(v,Pn,Wi,(Aa,gr)=>t.getScriptVersion(gr),Aa=>ir.fileExists(Aa),Kn,Ti,wr,$l,Nr)){ir=void 0,Vr=void 0,Fa=void 0;return}v=f9({rootNames:Pn,options:Wi,host:ir,oldProgram:v,projectReferences:Nr}),ir=void 0,Vr=void 0,Fa=void 0,H.clearCache(),v.getTypeChecker();return;function $l(Aa){let gr=dd(Aa,I,R),Wl=Vr?.get(gr);if(Wl!==void 0)return Wl||void 0;let Vc=t.getParsedCommandLine?t.getParsedCommandLine(Aa):cc(Aa);return(Vr||(Vr=new Map)).set(gr,Vc||!1),Vc}function cc(Aa){let gr=Gd(Aa,100);if(gr)return gr.path=dd(Aa,I,R),gr.resolvedPath=gr.path,gr.originalFileName=gr.fileName,whe(gr,Nc,tu(Cc(Aa),I),void 0,tu(Aa,I))}function vl(Aa,gr,Wl){var Vc;t.getParsedCommandLine?(Vc=t.onReleaseParsedCommandLine)==null||Vc.call(t,Aa,gr,Wl):gr&&G_(gr.sourceFile,Wl)}function G_(Aa,gr){let Wl=n.getKeyForCompilationSettings(gr);n.releaseDocumentWithKey(Aa.resolvedPath,Wl,Aa.scriptKind,Aa.impliedNodeFormat)}function ja(Aa,gr,Wl,Vc){var xu;G_(Aa,gr),(xu=t.onReleaseOldSourceFile)==null||xu.call(t,Aa,gr,Wl,Vc)}function Gd(Aa,gr,Wl,Vc){return Su(Aa,dd(Aa,I,R),gr,Wl,Vc)}function Su(Aa,gr,Wl,Vc,xu){Se.assert(ir,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");let Ar=t.getScriptSnapshot(Aa);if(!Ar)return;let Hl=ule(Aa,t),Lf=t.getScriptVersion(Aa);if(!xu){let Rt=v&&v.getSourceFileByPath(gr);if(Rt){if(Hl===Rt.scriptKind||Fa.has(Rt.resolvedPath))return n.updateDocumentWithKey(Aa,gr,t,_a,Ar,Lf,Hl,Wl);n.releaseDocumentWithKey(Rt.resolvedPath,n.getKeyForCompilationSettings(v.getCompilerOptions()),Rt.scriptKind,Rt.impliedNodeFormat),Fa.add(Rt.resolvedPath)}}return n.acquireDocumentWithKey(Aa,gr,t,_a,Ar,Lf,Hl,Wl)}}function re(){if(m===2){Se.assert(v===void 0);return}return $(),v}function X(){var Si;return(Si=t.getPackageJsonAutoImportProvider)==null?void 0:Si.call(t)}function ne(Si,Ri){let Cn=v.getTypeChecker(),cn=Pn();if(!cn)return!1;for(let Kn of Si)for(let Ti of Kn.references){let wr=Wi(Ti);if(Se.assertIsDefined(wr),Ri.has(Ti)||Wm.isDeclarationOfSymbol(wr,cn)){Ri.add(Ti),Ti.isDefinition=!0;let Nr=lle(Ti,H,wu(t,t.fileExists));Nr&&Ri.add(Nr)}else Ti.isDefinition=!1}return!0;function Pn(){for(let Kn of Si)for(let Ti of Kn.references){if(Ri.has(Ti)){let Nr=Wi(Ti);return Se.assertIsDefined(Nr),Cn.getSymbolAtLocation(Nr)}let wr=lle(Ti,H,wu(t,t.fileExists));if(wr&&Ri.has(wr)){let Nr=Wi(wr);if(Nr)return Cn.getSymbolAtLocation(Nr)}}}function Wi(Kn){let Ti=v.getSourceFile(Kn.fileName);if(!Ti)return;let wr=VS(Ti,Kn.textSpan.start);return Wm.Core.getAdjustedNode(wr,{use:Wm.FindReferencesUse.References})}}function se(){if(v){let Si=n.getKeyForCompilationSettings(v.getCompilerOptions());ee(v.getSourceFiles(),Ri=>n.releaseDocumentWithKey(Ri.resolvedPath,Si,Ri.scriptKind,Ri.impliedNodeFormat)),v=void 0}}function _e(){se(),t=void 0}function ae(Si){return $(),v.getSyntacticDiagnostics(U(Si),T).slice()}function le(Si){$();let Ri=U(Si),Cn=v.getSemanticDiagnostics(Ri,T);if(!fw(v.getCompilerOptions()))return Cn.slice();let cn=v.getDeclarationDiagnostics(Ri,T);return[...Cn,...cn]}function Ee(Si,Ri){$();let Cn=U(Si),cn=v.getCompilerOptions();if(W8(Cn,cn,v)||!Z7(Cn,cn)||v.getCachedSemanticDiagnostics(Cn))return;let Pn=xe(Cn,Ri);if(!Pn)return;let Wi=ype(Pn.map(Ti=>cg(Ti.getFullStart(),Ti.getEnd())));return{diagnostics:v.getSemanticDiagnostics(Cn,T,Pn).slice(),spans:Wi}}function xe(Si,Ri){let Cn=[],cn=ype(Ri.map(Pn=>q4(Pn)));for(let Pn of cn){let Wi=be(Si,Pn);if(!Wi)return;Cn.push(...Wi)}if(Cn.length)return Cn}function be(Si,Ri){if(U$(Ri,Si))return;let Cn=ele(Si,ag(Ri))||Si,cn=go(Cn,Wi=>Ry(Wi,Ri)),Pn=[];if(Le(Ri,cn,Pn),Si.end===Ri.start+Ri.length&&Pn.push(Si.endOfFileToken),!En(Pn,ul))return Pn}function Le(Si,Ri,Cn){return fe(Ri,Si)?U$(Si,Ri)?(we(Ri,Cn),!0):yF(Ri)?Ae(Si,Ri,Cn):bc(Ri)?Ge(Si,Ri,Cn):(we(Ri,Cn),!0):!1}function fe(Si,Ri){let Cn=Ri.start+Ri.length;return Si.posRi.start}function we(Si,Ri){for(;Si.parent&&!Nwe(Si);)Si=Si.parent;Ri.push(Si)}function Ae(Si,Ri,Cn){let cn=[];return Ri.statements.filter(Wi=>Le(Si,Wi,cn)).length===Ri.statements.length?(we(Ri,Cn),!0):(Cn.push(...cn),!1)}function Ge(Si,Ri,Cn){var cn,Pn,Wi;let Kn=Nr=>Ske(Nr,Si);if((cn=Ri.modifiers)!=null&&cn.some(Kn)||Ri.name&&Kn(Ri.name)||(Pn=Ri.typeParameters)!=null&&Pn.some(Kn)||(Wi=Ri.heritageClauses)!=null&&Wi.some(Kn))return we(Ri,Cn),!0;let Ti=[];return Ri.members.filter(Nr=>Le(Si,Nr,Ti)).length===Ri.members.length?(we(Ri,Cn),!0):(Cn.push(...Ti),!1)}function he(Si){return $(),lMe(U(Si),v,T)}function Oe(){return $(),[...v.getOptionsDiagnostics(T),...v.getGlobalDiagnostics(T)]}function Re(Si,Ri,Cn=t2,cn){let Pn={...Cn,includeCompletionsForModuleExports:Cn.includeCompletionsForModuleExports||Cn.includeExternalModuleExports,includeCompletionsWithInsertText:Cn.includeCompletionsWithInsertText||Cn.includeInsertTextCompletions};return $(),IJ.getCompletionsAtPosition(t,v,A,U(Si),Ri,Pn,Cn.triggerCharacter,Cn.triggerKind,T,cn&&Dy.getFormatContext(cn,t),Cn.includeSymbol)}function $e(Si,Ri,Cn,cn,Pn,Wi=t2,Kn){return $(),IJ.getCompletionEntryDetails(v,A,U(Si),Ri,{name:Cn,source:Pn,data:Kn},t,cn&&Dy.getFormatContext(cn,t),Wi,T)}function Ke(Si,Ri,Cn,cn,Pn=t2){return $(),IJ.getCompletionEntrySymbol(v,A,U(Si),Ri,{name:Cn,source:cn},t,Pn)}function qe(Si,Ri){$();let Cn=U(Si),cn=VS(Cn,Ri);if(cn===Cn)return;let Pn=v.getTypeChecker(),Wi=_t(cn),Kn=Iye(Wi,Pn);if(!Kn||Pn.isUnknownSymbol(Kn)){let ir=ft(Cn,Wi,Ri)?Pn.getTypeAtLocation(Wi):void 0;return ir&&{kind:"",kindModifiers:"",textSpan:Cx(Wi,Cn),displayParts:Pn.runWithCancellationToken(T,Ts=>MM(Ts,ir,hF(Wi))),documentation:ir.symbol?ir.symbol.getDocumentationComment(Pn):void 0,tags:ir.symbol?ir.symbol.getJsDocTags(Pn):void 0}}let{symbolKind:Ti,displayParts:wr,documentation:Nr,tags:Vr}=Pn.runWithCancellationToken(T,ir=>mO.getSymbolDisplayPartsDocumentationAndSymbolKind(ir,Kn,Cn,hF(Wi),Wi));return{kind:Ti,kindModifiers:mO.getSymbolModifiers(Pn,Kn),textSpan:Cx(Wi,Cn),displayParts:wr,documentation:Nr,tags:Vr}}function rt(Si,Ri){return $(),UNe.pasteEditsProvider(U(Si.targetFile),Si.pastedText,Si.pasteLocations,Si.copiedFrom?{file:U(Si.copiedFrom.file),range:Si.copiedFrom.range}:void 0,t,Si.preferences,Dy.getFormatContext(Ri,t),T)}function _t(Si){return sM(Si.parent)&&Si.pos===Si.parent.pos?Si.parent.expression:YA(Si.parent)&&Si.pos===Si.parent.pos||b4(Si.parent)&&Si.parent.name===Si||vx(Si.parent)?Si.parent:Si}function ft(Si,Ri,Cn){switch(Ri.kind){case 80:return Ri.flags&16777216&&!Ys(Ri)&&(Ri.parent.kind===171&&Ri.parent.name===Ri||go(Ri,cn=>cn.kind===169))?!1:!GK(Ri)&&!Xce(Ri)&&!Jx(Ri.parent);case 211:case 166:return!U4(Si,Cn);case 110:case 197:case 108:case 202:return!0;case 236:return b4(Ri);default:return!1}}function mt(Si,Ri,Cn,cn){return $(),Cie.getDefinitionAtPosition(v,U(Si),Ri,Cn,cn)}function ut(Si,Ri){return $(),Cie.getDefinitionAndBoundSpan(v,U(Si),Ri)}function ht(Si,Ri){return $(),Cie.getTypeDefinitionAtPosition(v.getTypeChecker(),U(Si),Ri)}function Kt(Si,Ri){return $(),Wm.getImplementationsAtPosition(v,T,v.getSourceFiles(),U(Si),Ri)}function ni(Si,Ri,Cn){let cn=Kd(Si);Se.assert(Cn.some(Kn=>Kd(Kn)===cn)),$();let Pn=Dc(Cn,Kn=>v.getSourceFile(Kn)),Wi=U(Si);return Sle.getDocumentHighlights(v,T,Wi,Ri,Pn)}function Ut(Si,Ri,Cn,cn,Pn){$();let Wi=U(Si),Kn=w0e(VS(Wi,Ri));if(NNe.nodeIsEligibleForRename(Kn))if(Ai(Kn)&&(Y0(Kn.parent)||I0(Kn.parent))&&wG(Kn.escapedText)){let{openingElement:Ti,closingElement:wr}=Kn.parent.parent;return[Ti,wr].map(Nr=>{let Vr=Cx(Nr.tagName,Wi);return{fileName:Wi.fileName,textSpan:Vr,...Wm.toContextSpan(Vr,Wi,Nr.parent)}})}else{let Ti=Nk(Wi,Pn??t2),wr=typeof Pn=="boolean"?Pn:Pn?.providePrefixAndSuffixTextForRename;return wi(Kn,Ri,{findInStrings:Cn,findInComments:cn,providePrefixAndSuffixTextForRename:wr,use:Wm.FindReferencesUse.Rename},(Nr,Vr,ir)=>Wm.toRenameLocation(Nr,Vr,ir,wr||!1,Ti))}}function pi(Si,Ri){return $(),wi(VS(U(Si),Ri),Ri,{use:Wm.FindReferencesUse.References},Wm.toReferenceEntry)}function wi(Si,Ri,Cn,cn){$();let Pn=Cn&&Cn.use===Wm.FindReferencesUse.Rename?v.getSourceFiles().filter(Wi=>!v.isSourceFileDefaultLibrary(Wi)):v.getSourceFiles();return Wm.findReferenceOrRenameEntries(v,T,Pn,Si,Ri,Cn,cn)}function Bi(Si,Ri){return $(),Wm.findReferencedSymbols(v,T,v.getSourceFiles(),U(Si),Ri)}function Bn(Si){return $(),Wm.Core.getReferencesForFileName(Si,v,v.getSourceFiles()).map(Wm.toReferenceEntry)}function mr(Si,Ri,Cn,cn=!1,Pn=!1){$();let Wi=Cn?[U(Cn)]:v.getSourceFiles();return uDe(Wi,v.getTypeChecker(),T,Si,Ri,cn,Pn)}function Ei(Si,Ri,Cn){$();let cn=U(Si),Pn=t.getCustomTransformers&&t.getCustomTransformers();return ZU(v,cn,!!Ri,T,Pn,Cn)}function zn(Si,Ri,{triggerReason:Cn}=t2){$();let cn=U(Si);return ave.getSignatureHelpItems(v,cn,Ri,Cn,T)}function zr(Si){return g.getCurrentSourceFile(Si)}function xr(Si,Ri,Cn){let cn=g.getCurrentSourceFile(Si),Pn=VS(cn,Ri);if(Pn===cn)return;switch(Pn.kind){case 211:case 166:case 11:case 97:case 112:case 106:case 108:case 110:case 197:case 80:break;default:return}let Wi=Pn;for(;;)if(WW(Wi)||S0e(Wi))Wi=Wi.parent;else if(zW(Wi))if(Wi.parent.parent.kind===267&&Wi.parent.parent.body===Wi.parent)Wi=Wi.parent.parent.name;else break;else break;return cg(Wi.getStart(),Pn.getEnd())}function lo(Si,Ri){let Cn=g.getCurrentSourceFile(Si);return Nye.spanInSourceFileAtLocation(Cn,Ri)}function _r(Si){return yX(g.getCurrentSourceFile(Si),T)}function Hs(Si){return yMe(g.getCurrentSourceFile(Si),T)}function ai(Si,Ri,Cn){return $(),(Cn||"original")==="2020"?oZe(v,T,U(Si),Ri):IYe(v.getTypeChecker(),T,U(Si),v.getClassifiableNames(),Ri)}function mn(Si,Ri,Cn){return $(),(Cn||"original")==="original"?eye(v.getTypeChecker(),T,U(Si),v.getClassifiableNames(),Ri):pRe(v,T,U(Si),Ri)}function Nn(Si,Ri){return AYe(T,g.getCurrentSourceFile(Si),Ri)}function Gr(Si,Ri){return eDe(T,g.getCurrentSourceFile(Si),Ri)}function ci(Si){let Ri=g.getCurrentSourceFile(Si);return N9e.collectElements(Ri,T)}let gn=new Map(Object.entries({19:20,21:22,23:24,32:30}));gn.forEach((Si,Ri)=>gn.set(Si.toString(),Number(Ri)));function Sr(Si,Ri){let Cn=g.getCurrentSourceFile(Si),cn=h9(Cn,Ri),Pn=cn.getStart(Cn)===Ri?gn.get(cn.kind.toString()):void 0,Wi=Pn&&Np(cn.parent,Pn,Cn);return Wi?[Cx(cn,Cn),Cx(Wi,Cn)].sort((Kn,Ti)=>Kn.start-Ti.start):F}function vo(Si,Ri,Cn){let cn=mm(),Pn=Tye(Cn),Wi=g.getCurrentSourceFile(Si);A("getIndentationAtPosition: getCurrentSourceFile: "+(mm()-cn)),cn=mm();let Kn=Dy.SmartIndenter.getIndentation(Ri,Wi,Pn);return A("getIndentationAtPosition: computeIndentation : "+(mm()-cn)),Kn}function $o(Si,Ri,Cn,cn){let Pn=g.getCurrentSourceFile(Si);return Dy.formatSelection(Ri,Cn,Pn,Dy.getFormatContext(Tye(cn),t))}function Mn(Si,Ri){return Dy.formatDocument(g.getCurrentSourceFile(Si),Dy.getFormatContext(Tye(Ri),t))}function Qs(Si,Ri,Cn,cn){let Pn=g.getCurrentSourceFile(Si),Wi=Dy.getFormatContext(Tye(cn),t);if(!U4(Pn,Ri))switch(Cn){case"{":return Dy.formatOnOpeningCurly(Ri,Pn,Wi);case"}":return Dy.formatOnClosingCurly(Ri,Pn,Wi);case";":return Dy.formatOnSemicolon(Ri,Pn,Wi);case` +`:return Dy.formatOnEnter(Ri,Pn,Wi)}return[]}function Pi(Si,Ri,Cn,cn,Pn,Wi=t2){$();let Kn=U(Si),Ti=cg(Ri,Cn),wr=Dy.getFormatContext(Pn,t);return za(la(cn,p8,m_),Nr=>(T.throwIfCancellationRequested(),vb.getFixes({errorCode:Nr,sourceFile:Kn,span:Ti,program:v,host:t,cancellationToken:T,formatContext:wr,preferences:Wi})))}function qi(Si,Ri,Cn,cn=t2){$(),Se.assert(Si.type==="file");let Pn=U(Si.fileName),Wi=Dy.getFormatContext(Cn,t);return vb.getAllFixes({fixId:Ri,sourceFile:Pn,program:v,host:t,cancellationToken:T,formatContext:Wi,preferences:cn})}function lt(Si,Ri,Cn=t2){$(),Se.assert(Si.type==="file");let cn=U(Si.fileName);if(B7(cn))return F;let Pn=Dy.getFormatContext(Ri,t),Wi=Si.mode??(Si.skipDestructiveCodeActions?"SortAndCombine":"All");return P9.organizeImports(cn,Pn,t,v,Cn,Wi)}function Xi(Si,Ri,Cn,cn=t2){return nye(re(),Si,Ri,t,Dy.getFormatContext(Cn,t),cn,H)}function nt(Si,Ri){let Cn=typeof Si=="string"?Ri:Si;return ua(Cn)?Promise.all(Cn.map(cn=>Lt(cn))):Lt(Cn)}function Lt(Si){let Ri=Cn=>dd(Cn,I,R);return Se.assertEqual(Si.type,"install package"),t.installPackage?t.installPackage({fileName:Ri(Si.file),packageName:Si.packageName}):Promise.reject("Host does not implement `installPackage`")}function Pe(Si,Ri,Cn,cn){let Pn=cn?Dy.getFormatContext(cn,t).options:void 0;return N9.getDocCommentTemplateAtPosition(fO(t,Pn),g.getCurrentSourceFile(Si),Ri,Cn)}function St(Si,Ri,Cn){if(Cn===60)return!1;let cn=g.getCurrentSourceFile(Si);if(JW(cn,Ri))return!1;if(BEe(cn,Ri))return Cn===123;if(T0e(cn,Ri))return!1;switch(Cn){case 39:case 34:case 96:return!U4(cn,Ri)}return!0}function Ve(Si,Ri){let Cn=g.getCurrentSourceFile(Si),cn=p0(Ri,Cn);if(!cn)return;let Pn=cn.kind===32&&Y0(cn.parent)?cn.parent.parent:nW(cn)&&R_(cn.parent)?cn.parent:void 0;if(Pn&&hi(Pn))return{newText:``};let Wi=cn.kind===32&&cM(cn.parent)?cn.parent.parent:nW(cn)&&$5(cn.parent)?cn.parent:void 0;if(Wi&&Ie(Wi))return{newText:""}}function Tt(Si,Ri){let Cn=g.getCurrentSourceFile(Si),cn=p0(Ri,Cn);if(!cn||cn.parent.kind===307)return;let Pn="[a-zA-Z0-9:\\-\\._$]*";if($5(cn.parent.parent)){let Wi=cn.parent.parent.openingFragment,Kn=cn.parent.parent.closingFragment;if(B7(Wi)||B7(Kn))return;let Ti=Wi.getStart(Cn)+1,wr=Kn.getStart(Cn)+2;return Ri!==Ti&&Ri!==wr?void 0:{ranges:[{start:Ti,length:0},{start:wr,length:0}],wordPattern:Pn}}else{let Wi=go(cn.parent,pa=>!!(Y0(pa)||I0(pa)));if(!Wi)return;Se.assert(Y0(Wi)||I0(Wi),"tag should be opening or closing element");let Kn=Wi.parent.openingElement,Ti=Wi.parent.closingElement,wr=Kn.tagName.getStart(Cn),Nr=Kn.tagName.end,Vr=Ti.tagName.getStart(Cn),ir=Ti.tagName.end;return wr===Kn.getStart(Cn)||Vr===Ti.getStart(Cn)||Nr===Kn.getEnd()||ir===Ti.getEnd()||!(wr<=Ri&&Ri<=Nr||Vr<=Ri&&Ri<=ir)||Kn.tagName.getText(Cn)!==Ti.tagName.getText(Cn)?void 0:{ranges:[{start:wr,length:Nr-wr},{start:Vr,length:ir-Vr}],wordPattern:Pn}}}function dt(Si,Ri){return{lineStarts:Si.getLineStarts(),firstLine:Si.getLineAndCharacterOfPosition(Ri.pos).line,lastLine:Si.getLineAndCharacterOfPosition(Ri.end).line}}function Wt(Si,Ri,Cn){let cn=g.getCurrentSourceFile(Si),Pn=[],{lineStarts:Wi,firstLine:Kn,lastLine:Ti}=dt(cn,Ri),wr=Cn||!1,Nr=Number.MAX_VALUE,Vr=new Map,ir=new RegExp(/\S/),Ts=Ote(cn,Wi[Kn]),pa=Ts?"{/*":"//";for(let Nc=Kn;Nc<=Ti;Nc++){let _a=cn.text.substring(Wi[Nc],cn.getLineEndOfPosition(Wi[Nc])),Fa=ir.exec(_a);Fa&&(Nr=Math.min(Nr,Fa.index),Vr.set(Nc.toString(),Fa.index),_a.substr(Fa.index,pa.length)!==pa&&(wr=Cn===void 0||Cn))}for(let Nc=Kn;Nc<=Ti;Nc++){if(Kn!==Ti&&Wi[Nc]===Ri.end)continue;let _a=Vr.get(Nc.toString());_a!==void 0&&(Ts?Pn.push(...pt(Si,{pos:Wi[Nc]+Nr,end:cn.getLineEndOfPosition(Wi[Nc])},wr,Ts)):wr?Pn.push({newText:pa,span:{length:0,start:Wi[Nc]+Nr}}):cn.text.substr(Wi[Nc]+_a,pa.length)===pa&&Pn.push({newText:"",span:{length:pa.length,start:Wi[Nc]+_a}}))}return Pn}function pt(Si,Ri,Cn,cn){var Pn;let Wi=g.getCurrentSourceFile(Si),Kn=[],{text:Ti}=Wi,wr=!1,Nr=Cn||!1,Vr=[],{pos:ir}=Ri,Ts=cn!==void 0?cn:Ote(Wi,ir),pa=Ts?"{/*":"/*",Nc=Ts?"*/}":"*/",_a=Ts?"\\{\\/\\*":"\\/\\*",Fa=Ts?"\\*\\/\\}":"\\*\\/";for(;ir<=Ri.end;){let Pf=Ti.substr(ir,pa.length)===pa?pa.length:0,$l=U4(Wi,ir+Pf);if($l)Ts&&($l.pos--,$l.end++),Vr.push($l.pos),$l.kind===3&&Vr.push($l.end),wr=!0,ir=$l.end+1;else{let cc=Ti.substring(ir,Ri.end).search(`(${_a})|(${Fa})`);Nr=Cn!==void 0?Cn:Nr||!R0e(Ti,ir,cc===-1?Ri.end:ir+cc),ir=cc===-1?Ri.end+1:ir+cc+Nc.length}}if(Nr||!wr){((Pn=U4(Wi,Ri.pos))==null?void 0:Pn.kind)!==2&&Hn(Vr,Ri.pos,m_),Hn(Vr,Ri.end,m_);let Pf=Vr[0];Ti.substr(Pf,pa.length)!==pa&&Kn.push({newText:pa,span:{length:0,start:Pf}});for(let $l=1;$l0?Pf-Nc.length:0,cc=Ti.substr($l,Nc.length)===Nc?Nc.length:0;Kn.push({newText:"",span:{length:pa.length,start:Pf-cc}})}return Kn}function Gt(Si,Ri){let Cn=g.getCurrentSourceFile(Si),{firstLine:cn,lastLine:Pn}=dt(Cn,Ri);return cn===Pn&&Ri.pos!==Ri.end?pt(Si,Ri,!0):Wt(Si,Ri,!0)}function Mt(Si,Ri){let Cn=g.getCurrentSourceFile(Si),cn=[],{pos:Pn}=Ri,{end:Wi}=Ri;Pn===Wi&&(Wi+=Ote(Cn,Pn)?2:1);for(let Kn=Pn;Kn<=Wi;Kn++){let Ti=U4(Cn,Kn);if(Ti){switch(Ti.kind){case 2:cn.push(...Wt(Si,{end:Ti.end,pos:Ti.pos+1},!1));break;case 3:cn.push(...pt(Si,{end:Ti.end,pos:Ti.pos+1},!1))}Kn=Ti.end+1}}return cn}function hi({openingElement:Si,closingElement:Ri,parent:Cn}){return!Cg(Si.tagName,Ri.tagName)||R_(Cn)&&Cg(Si.tagName,Cn.openingElement.tagName)&&hi(Cn)}function Ie({closingFragment:Si,parent:Ri}){return!!(Si.flags&262144)||$5(Ri)&&Ie(Ri)}function Bt(Si,Ri,Cn){let cn=g.getCurrentSourceFile(Si),Pn=Dy.getRangeOfEnclosingComment(cn,Ri);return Pn&&(!Cn||Pn.kind===3)?q4(Pn):void 0}function ui(Si,Ri){$();let Cn=U(Si);T.throwIfCancellationRequested();let cn=Cn.text,Pn=[];if(Ri.length>0&&!wr(Cn.fileName)){let Nr=Kn(),Vr;for(;Vr=Nr.exec(cn);){T.throwIfCancellationRequested();let ir=3;Se.assert(Vr.length===Ri.length+ir);let Ts=Vr[1],pa=Vr.index+Ts.length;if(!U4(Cn,pa))continue;let Nc;for(let Fa=0;Fa"("+Wi($l.text)+")").join("|")+")",Nc=/(?:$|\*\/)/.source,_a=/(?:.*?)/.source,Fa="("+pa+_a+")",Pf=Ts+Fa+Nc;return new RegExp(Pf,"gim")}function Ti(Nr){return Nr>=97&&Nr<=122||Nr>=65&&Nr<=90||Nr>=48&&Nr<=57}function wr(Nr){return Nr.includes("/node_modules/")}}function Ue(Si,Ri,Cn){return $(),NNe.getRenameInfo(v,U(Si),Ri,Cn||{})}function Ce(Si,Ri,Cn,cn,Pn,Wi){let[Kn,Ti]=typeof Ri=="number"?[Ri,void 0]:[Ri.pos,Ri.end];return{file:Si,startPosition:Kn,endPosition:Ti,program:re(),host:t,formatContext:Dy.getFormatContext(cn,t),cancellationToken:T,preferences:Cn,triggerReason:Pn,kind:Wi}}function ye(Si,Ri,Cn){return{file:Si,program:re(),host:t,span:Ri,preferences:Cn,cancellationToken:T}}function vt(Si,Ri){return F9e.getSmartSelectionRange(Ri,g.getCurrentSourceFile(Si))}function pe(Si,Ri,Cn=t2,cn,Pn,Wi){$();let Kn=U(Si);return vX.getApplicableRefactors(Ce(Kn,Ri,Cn,t2,cn,Pn),Wi)}function at(Si,Ri,Cn=t2){$();let cn=U(Si),Pn=Se.checkDefined(v.getSourceFiles()),Wi=F5(Si),Kn=fie(Ce(cn,Ri,Cn,t2)),Ti=TQe(Kn?.all),wr=Dc(Pn,Nr=>{let Vr=F5(Nr.fileName);return!v?.isSourceFileFromExternalLibrary(cn)&&!(cn===U(Nr.fileName)||Wi===".ts"&&Vr===".d.ts"||Wi===".d.ts"&&xl(sg(Nr.fileName),"lib.")&&Vr===".d.ts")&&(Wi===Vr||(Wi===".tsx"&&Vr===".ts"||Wi===".jsx"&&Vr===".js")&&!Ti)?Nr.fileName:void 0});return{newFileName:SDe(cn,v,t,Kn),files:wr}}function We(Si,Ri,Cn,cn,Pn,Wi=t2,Kn){$();let Ti=U(Si);return vX.getEditsForRefactor(Ce(Ti,Cn,Wi,Ri),cn,Pn,Kn)}function si(Si,Ri){return Ri===0?{line:0,character:0}:H.toLineColumnOffset(Si,Ri)}function At(Si,Ri){$();let Cn=w9.resolveCallHierarchyDeclaration(v,VS(U(Si),Ri));return Cn&&K0e(Cn,cn=>w9.createCallHierarchyItem(v,cn))}function Ot(Si,Ri){$();let Cn=U(Si),cn=S9(w9.resolveCallHierarchyDeclaration(v,Ri===0?Cn:VS(Cn,Ri)));return cn?w9.getIncomingCalls(v,cn,T):[]}function Fi(Si,Ri){$();let Cn=U(Si),cn=S9(w9.resolveCallHierarchyDeclaration(v,Ri===0?Cn:VS(Cn,Ri)));return cn?w9.getOutgoingCalls(v,cn):[]}function Vn(Si,Ri,Cn=t2){$();let cn=U(Si);return SNe.provideInlayHints(ye(cn,Ri,Cn))}function In(Si,Ri,Cn,cn,Pn){return C9e.mapCode(g.getCurrentSourceFile(Si),Ri,Cn,t,Dy.getFormatContext(cn,t),Pn)}let dn={dispose:_e,cleanupSemanticCache:se,getSyntacticDiagnostics:ae,getSemanticDiagnostics:le,getRegionSemanticDiagnostics:Ee,getSuggestionDiagnostics:he,getCompilerOptionsDiagnostics:Oe,getSyntacticClassifications:Nn,getSemanticClassifications:ai,getEncodedSyntacticClassifications:Gr,getEncodedSemanticClassifications:mn,getCompletionsAtPosition:Re,getCompletionEntryDetails:$e,getCompletionEntrySymbol:Ke,getSignatureHelpItems:zn,getQuickInfoAtPosition:qe,getDefinitionAtPosition:mt,getDefinitionAndBoundSpan:ut,getImplementationAtPosition:Kt,getTypeDefinitionAtPosition:ht,getReferencesAtPosition:pi,findReferences:Bi,getFileReferences:Bn,getDocumentHighlights:ni,getNameOrDottedNameSpan:xr,getBreakpointStatementAtPosition:lo,getNavigateToItems:mr,getRenameInfo:Ue,getSmartSelectionRange:vt,findRenameLocations:Ut,getNavigationBarItems:_r,getNavigationTree:Hs,getOutliningSpans:ci,getTodoComments:ui,getBraceMatchingAtPosition:Sr,getIndentationAtPosition:vo,getFormattingEditsForRange:$o,getFormattingEditsForDocument:Mn,getFormattingEditsAfterKeystroke:Qs,getDocCommentTemplateAtPosition:Pe,isValidBraceCompletionAtPosition:St,getJsxClosingTagAtPosition:Ve,getLinkedEditingRangeAtPosition:Tt,getSpanOfEnclosingComment:Bt,getCodeFixesAtPosition:Pi,getCombinedCodeFix:qi,applyCodeActionCommand:nt,organizeImports:lt,getEditsForFileRename:Xi,getEmitOutput:Ei,getNonBoundSourceFile:zr,getProgram:re,getCurrentProgram:()=>v,getAutoImportProvider:X,updateIsDefinitionOfReferencedSymbols:ne,getApplicableRefactors:pe,getEditsForRefactor:We,getMoveToRefactoringFileSuggestions:at,toLineColumnOffset:si,getSourceMapper:()=>H,clearSourceMapperCache:()=>H.clearCache(),prepareCallHierarchy:At,provideCallHierarchyIncomingCalls:Ot,provideCallHierarchyOutgoingCalls:Fi,toggleLineComment:Wt,toggleMultilineComment:pt,commentSelection:Gt,uncommentSelection:Mt,provideInlayHints:Vn,getSupportedCodeFixes:CX,getPasteEdits:rt,mapCode:In};switch(m){case 0:break;case 1:r1t.forEach(Si=>dn[Si]=()=>{throw new Error(`LanguageService Operation: ${Si} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:dZe.forEach(Si=>dn[Si]=()=>{throw new Error(`LanguageService Operation: ${Si} not allowed in LanguageServiceMode.Syntactic`)});break;default:Se.assertNever(m)}return dn}function bRe(t){return t.nameTable||fZe(t),t.nameTable}function fZe(t){let n=t.nameTable=new Map;t.forEachChild(function a(u){if(Ai(u)&&!Xce(u)&&u.escapedText||Xb(u)&&SRe(u)){let m=dx(u);n.set(m,n.get(m)===void 0?u.pos:-1)}else if(wl(u)){let m=u.escapedText;n.set(m,n.get(m)===void 0?u.pos:-1)}if(_d(u,a),Gx(u))for(let m of u.jsDoc)_d(m,a)})}function SRe(t){return VT(t)||t.parent.kind===283||NWt(t)||SG(t)}function Dye(t){let n=IWt(t);return n&&(Ld(n.parent)||wk(n.parent))?n:void 0}function IWt(t){switch(t.kind){case 11:case 15:case 9:if(t.parent.kind===167)return cj(t.parent.parent)?t.parent.parent:void 0;case 80:return cj(t.parent)&&(t.parent.parent.kind===210||t.parent.parent.kind===292)&&t.parent.name===t?t.parent:void 0}}function Iye(t,n){let a=Dye(t);if(a){let u=n.getContextualType(a.parent),m=u&&GDe(a,n,u,!1);if(m&&m.length===1)return of(m)}return n.getSymbolAtLocation(t)}function GDe(t,n,a,u){let m=KW(t.name);if(!m)return F;if(!a.isUnion()){let x=a.getProperty(m);return x?[x]:F}let g=Ld(t.parent)||wk(t.parent)?Qn(a.types,x=>!n.isTypeInvalidDueToUnionDiscriminant(x,t.parent)):a.types,v=Dc(g,x=>x.getProperty(m));if(u&&(v.length===0||v.length===a.types.length)){let x=a.getProperty(m);if(x)return[x]}return!g.length&&!v.length?Dc(a.types,x=>x.getProperty(m)):la(v,p8)}function NWt(t){return t&&t.parent&&t.parent.kind===212&&t.parent.argumentExpression===t}function Ale(t){if(hy)return Ps(Cc(Kd(hy.getExecutingFilePath())),gpe(t));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}oU(DWt());function o1t(t,n,a){let u=[];a=cDe(a,u);let m=ua(t)?t:[t],g=pge(void 0,void 0,Me,a,m,n,!0);return g.diagnostics=Pl(g.diagnostics,u),g}var Nye={};d(Nye,{spanInSourceFileAtLocation:()=>s1t});function s1t(t,n){if(t.isDeclarationFile)return;let a=wc(t,n),u=t.getLineAndCharacterOfPosition(n).line;if(t.getLineAndCharacterOfPosition(a.getStart(t)).line>u){let A=p0(a.pos,t);if(!A||t.getLineAndCharacterOfPosition(A.getEnd()).line!==u)return;a=A}if(a.flags&33554432)return;return I(a);function m(A,M){let R=_W(A)?mi(A.modifiers,Cy):void 0,H=R?fd(t.text,R.end):A.getStart(t);return cg(H,(M||A).getEnd())}function g(A,M){return m(A,NM(M,M.parent,t))}function v(A,M){return A&&u===t.getLineAndCharacterOfPosition(A.getStart(t)).line?I(A):I(M)}function x(A,M,R){if(A){let H=A.indexOf(M);if(H>=0){let U=H,$=H+1;for(;U>0&&R(A[U-1]);)U--;for(;$0)return I(Oe.declarations[0])}else return I(he.initializer)}function se(he){if(he.initializer)return ne(he);if(he.condition)return m(he.condition);if(he.incrementor)return m(he.incrementor)}function _e(he){let Oe=ee(he.elements,Re=>Re.kind!==232?Re:void 0);return Oe?I(Oe):he.parent.kind===208?m(he.parent):M(he.parent)}function ae(he){Se.assert(he.kind!==207&&he.kind!==206);let Oe=he.kind===209?he.elements:he.properties,Re=ee(Oe,$e=>$e.kind!==232?$e:void 0);return Re?I(Re):m(he.parent.kind===226?he.parent:he)}function le(he){switch(he.parent.kind){case 266:let Oe=he.parent;return v(p0(he.pos,t,he.parent),Oe.members.length?Oe.members[0]:Oe.getLastToken(t));case 263:let Re=he.parent;return v(p0(he.pos,t,he.parent),Re.members.length?Re.members[0]:Re.getLastToken(t));case 269:return v(he.parent.parent,he.parent.clauses[0])}return I(he.parent)}function Ee(he){switch(he.parent.kind){case 268:if($2(he.parent.parent)!==1)return;case 266:case 263:return m(he);case 241:if(z7(he.parent))return m(he);case 299:return I(Y_(he.parent.statements));case 269:let Oe=he.parent,Re=Y_(Oe.clauses);return Re?I(Y_(Re.statements)):void 0;case 206:let $e=he.parent;return I(Y_($e.elements)||$e);default:if(J4(he.parent)){let Ke=he.parent;return m(Y_(Ke.properties)||Ke)}return I(he.parent)}}function xe(he){switch(he.parent.kind){case 207:let Oe=he.parent;return m(Y_(Oe.elements)||Oe);default:if(J4(he.parent)){let Re=he.parent;return m(Y_(Re.elements)||Re)}return I(he.parent)}}function be(he){return he.parent.kind===246||he.parent.kind===213||he.parent.kind===214?k(he):he.parent.kind===217?T(he):I(he.parent)}function Le(he){switch(he.parent.kind){case 218:case 262:case 219:case 174:case 173:case 177:case 178:case 176:case 247:case 246:case 248:case 250:case 213:case 214:case 217:return k(he);default:return I(he.parent)}}function fe(he){return iu(he.parent)||he.parent.kind===303||he.parent.kind===169?k(he):I(he.parent)}function we(he){return he.parent.kind===216?T(he):I(he.parent)}function Ae(he){return he.parent.kind===246?g(he,he.parent.expression):I(he.parent)}function Ge(he){return he.parent.kind===250?T(he):I(he.parent)}}}var w9={};d(w9,{createCallHierarchyItem:()=>Pye,getIncomingCalls:()=>LWt,getOutgoingCalls:()=>HWt,resolveCallHierarchyDeclaration:()=>hZe});function AWt(t){return(yd(t)||Qh(t))&&xf(t)}function kJ(t){return vu(t)||$c(t)}function Aye(t){return(yd(t)||Zc(t)||Qh(t))&&kJ(t.parent)&&t===t.parent.initializer&&Ai(t.parent.name)&&(!!(d4(t.parent)&2)||vu(t.parent))}function _Ze(t){return ul(t)||Dh(t)||fp(t)||yd(t)||D0(t)||Qh(t)||Yf(t)||Sg(t)||sT(t)||n_(t)||zc(t)}function VM(t){return ul(t)||Dh(t)&&Ai(t.name)||fp(t)||D0(t)||Yf(t)||Sg(t)||sT(t)||n_(t)||zc(t)||AWt(t)||Aye(t)}function pZe(t){return ul(t)?t:xf(t)?t.name:Aye(t)?t.parent.name:Se.checkDefined(t.modifiers&&jt(t.modifiers,kX))}function kX(t){return t.kind===90}function mZe(t,n){let a=pZe(n);return a&&t.getSymbolAtLocation(a)}function a1t(t,n){if(ul(n))return{text:n.fileName,pos:0,end:0};if((fp(n)||D0(n))&&!xf(n)){let m=n.modifiers&&jt(n.modifiers,kX);if(m)return{text:"default",pos:m.getStart(),end:m.getEnd()}}if(Yf(n)){let m=n.getSourceFile(),g=fd(m.text,JE(n).pos),v=g+6,x=t.getTypeChecker(),k=x.getSymbolAtLocation(n.parent);return{text:`${k?`${x.symbolToString(k,n.parent)} `:""}static {}`,pos:g,end:v}}let a=Aye(n)?n.parent.name:Se.checkDefined(Nu(n),"Expected call hierarchy item to have a name"),u=Ai(a)?Un(a):Xb(a)?a.text:f_(a)&&Xb(a.expression)?a.expression.text:void 0;if(u===void 0){let m=t.getTypeChecker(),g=m.getSymbolAtLocation(a);g&&(u=m.symbolToString(g,n))}if(u===void 0){let m=gce();u=SZ(g=>m.writeNode(4,n,n.getSourceFile(),g))}return{text:u,pos:a.getStart(),end:a.getEnd()}}function c1t(t){var n,a,u,m;if(Aye(t))return vu(t.parent)&&bc(t.parent.parent)?Qh(t.parent.parent)?(n=pH(t.parent.parent))==null?void 0:n.getText():(a=t.parent.parent.name)==null?void 0:a.getText():vN(t.parent.parent.parent.parent)&&Ai(t.parent.parent.parent.parent.parent.name)?t.parent.parent.parent.parent.parent.name.getText():void 0;switch(t.kind){case 177:case 178:case 174:return t.parent.kind===210?(u=pH(t.parent))==null?void 0:u.getText():(m=Nu(t.parent))==null?void 0:m.getText();case 262:case 263:case 267:if(vN(t.parent)&&Ai(t.parent.parent.name))return t.parent.parent.name.getText()}}function l1t(t,n){if(n.body)return n;if(yl(n))return eI(n.parent);if(fp(n)||Sg(n)){let a=mZe(t,n);return a&&a.valueDeclaration&&Rp(a.valueDeclaration)&&a.valueDeclaration.body?a.valueDeclaration:void 0}return n}function u1t(t,n){let a=mZe(t,n),u;if(a&&a.declarations){let m=On(a.declarations),g=$i(a.declarations,k=>({file:k.getSourceFile().fileName,pos:k.pos}));m.sort((k,T)=>Jg(g[k].file,g[T].file)||g[k].pos-g[T].pos);let v=$i(m,k=>a.declarations[k]),x;for(let k of v)VM(k)&&((!x||x.parent!==k.parent||x.end!==k.pos)&&(u=ar(u,k)),x=k)}return u}function KDe(t,n){return Yf(n)?n:Rp(n)?l1t(t,n)??u1t(t,n)??n:u1t(t,n)??n}function hZe(t,n){let a=t.getTypeChecker(),u=!1;for(;;){if(VM(n))return KDe(a,n);if(_Ze(n)){let m=go(n,VM);return m&&KDe(a,m)}if(VT(n)){if(VM(n.parent))return KDe(a,n.parent);if(_Ze(n.parent)){let m=go(n.parent,VM);return m&&KDe(a,m)}return kJ(n.parent)&&n.parent.initializer&&Aye(n.parent.initializer)?n.parent.initializer:void 0}if(yl(n))return VM(n.parent)?n.parent:void 0;if(n.kind===126&&Yf(n.parent)){n=n.parent;continue}if($c(n)&&n.initializer&&Aye(n.initializer))return n.initializer;if(!u){let m=a.getSymbolAtLocation(n);if(m&&(m.flags&2097152&&(m=a.getAliasedSymbol(m)),m.valueDeclaration)){u=!0,n=m.valueDeclaration;continue}}return}}function Pye(t,n){let a=n.getSourceFile(),u=a1t(t,n),m=c1t(n),g=IM(n),v=QK(n),x=cg(fd(a.text,n.getFullStart(),!1,!0),n.getEnd()),k=cg(u.pos,u.end);return{file:a.fileName,kind:g,kindModifiers:v,name:u.text,containerName:m,span:x,selectionSpan:k}}function d1t(t){return t!==void 0}function gZe(t){if(t.kind===Wm.EntryKind.Node){let{node:n}=t;if(Kce(n,!0,!0)||JK(n,!0,!0)||g0e(n,!0,!0)||OEe(n,!0,!0)||WW(n)||x0e(n)){let a=n.getSourceFile();return{declaration:go(n,VM)||a,range:oS(n,a)}}}}function f1t(t){return pp(t.declaration)}function PWt(t,n){return{from:t,fromSpans:n}}function _1t(t,n){return PWt(Pye(t,n[0].declaration),$i(n,a=>q4(a.range)))}function LWt(t,n,a){if(ul(n)||Dh(n)||Yf(n))return[];let u=pZe(n),m=Qn(Wm.findReferenceOrRenameEntries(t,a,t.getSourceFiles(),u,0,{use:Wm.FindReferencesUse.References},gZe),d1t);return m?Ks(m,f1t,g=>_1t(t,g)):[]}function OWt(t,n){function a(m){let g=Kv(m)?m.tag:nv(m)?m.tagName:cf(m)||Yf(m)?m:m.expression,v=hZe(t,g);if(v){let x=oS(g,m.getSourceFile());if(ua(v))for(let k of v)n.push({declaration:k,range:x});else n.push({declaration:v,range:x})}}function u(m){if(m&&!(m.flags&33554432)){if(VM(m)){if(bc(m))for(let g of m.members)g.name&&f_(g.name)&&u(g.name.expression);return}switch(m.kind){case 80:case 271:case 272:case 278:case 264:case 265:return;case 175:a(m);return;case 216:case 234:u(m.expression);return;case 260:case 169:u(m.name),u(m.initializer);return;case 213:a(m),u(m.expression),ee(m.arguments,u);return;case 214:a(m),u(m.expression),ee(m.arguments,u);return;case 215:a(m),u(m.tag),u(m.template);return;case 286:case 285:a(m),u(m.tagName),u(m.attributes);return;case 170:a(m),u(m.expression);return;case 211:case 212:a(m),_d(m,u);break;case 238:u(m.expression);return}jA(m)||_d(m,u)}}return u}function FWt(t,n){ee(t.statements,n)}function MWt(t,n){!kc(t,128)&&t.body&&vN(t.body)&&ee(t.body.statements,n)}function RWt(t,n,a){let u=l1t(t,n);u&&(ee(u.parameters,a),a(u.body))}function BWt(t,n){n(t.body)}function jWt(t,n){ee(t.modifiers,n);let a=K6(t);a&&n(a.expression);for(let u of t.members)tD(u)&&ee(u.modifiers,n),vu(u)?n(u.initializer):yl(u)&&u.body?(ee(u.parameters,n),n(u.body)):Yf(u)&&n(u)}function WWt(t,n){let a=[],u=OWt(t,a);switch(n.kind){case 307:FWt(n,u);break;case 267:MWt(n,u);break;case 262:case 218:case 219:case 174:case 177:case 178:RWt(t.getTypeChecker(),n,u);break;case 263:case 231:jWt(n,u);break;case 175:BWt(n,u);break;default:Se.assertNever(n)}return a}function zWt(t,n){return{to:t,fromSpans:n}}function VWt(t,n){return zWt(Pye(t,n[0].declaration),$i(n,a=>q4(a.range)))}function HWt(t,n){return n.flags&33554432||sT(n)?[]:Ks(WWt(t,n),f1t,a=>VWt(t,a))}var yZe={};d(yZe,{v2020:()=>p1t});var p1t={};d(p1t,{TokenEncodingConsts:()=>Uvt,TokenModifier:()=>rZe,TokenType:()=>Jvt,getEncodedSemanticClassifications:()=>pRe,getSemanticClassifications:()=>oZe});var vb={};d(vb,{PreserveOptionalFlags:()=>Lit,addNewNodeForMemberSymbol:()=>XIe,codeFixAll:()=>$_,createCodeFixAction:()=>Wd,createCodeFixActionMaybeFixAll:()=>oD,createCodeFixActionWithoutFixAll:()=>rD,createCombinedCodeActions:()=>wX,createFileTextChanges:()=>m1t,createImportAdder:()=>E9,createImportSpecifierResolver:()=>_z,createMissingMemberNodes:()=>EJ,createSignatureDeclarationFromCallExpression:()=>Oit,createSignatureDeclarationFromSignature:()=>Vye,createStubbedBody:()=>qle,eachDiagnostic:()=>wJ,findAncestorMatchingSpan:()=>Wit,generateAccessorFromProperty:()=>kbt,getAccessorConvertiblePropertyAtPosition:()=>Nbt,getAllFixes:()=>JWt,getAllSupers:()=>Vit,getFixes:()=>UWt,getImportCompletionAction:()=>Y1t,getImportKind:()=>a5e,getJSDocTypedefNodes:()=>$1t,getNoopSymbolTrackerWithResolver:()=>AX,getPromoteTypeOnlyCompletionAction:()=>Szt,getSupportedErrorCodes:()=>jf,importFixName:()=>uet,importSymbols:()=>mz,parameterShouldGetTypeFromJSDoc:()=>FZe,registerCodeFix:()=>Cf,setJsonCompilerOptionValue:()=>ZIe,setJsonCompilerOptionValues:()=>Jye,tryGetAutoImportableReferenceFromTypeNode:()=>DN,typePredicateToAutoImportableTypeNode:()=>Fit,typeToAutoImportableTypeNode:()=>Uye});var xRe=Hb(),bb=new Map;function rD(t,n,a){return zd(t,RM(a),n,void 0,void 0)}function Wd(t,n,a,u,m,g){return zd(t,RM(a),n,u,RM(m),g)}function oD(t,n,a,u,m,g){return zd(t,RM(a),n,u,m&&RM(m),g)}function zd(t,n,a,u,m,g){return{fixName:t,description:n,changes:a,fixId:u,fixAllDescription:m,commands:g?[g]:void 0}}function Cf(t){for(let n of t.errorCodes)XDe=void 0,xRe.add(String(n),t);if(t.fixIds)for(let n of t.fixIds)Se.assert(!bb.has(n)),bb.set(n,t)}var XDe;function jf(){return XDe??(XDe=tc(xRe.keys()))}function vZe(t,n){let{errorCodes:a}=t,u=0;for(let g of n)if(dr(a,g.code)&&u++,u>1)break;let m=u<2;return({fixId:g,fixAllDescription:v,...x})=>m?x:{...x,fixId:g,fixAllDescription:v}}function UWt(t){let n=jp(t),a=xRe.get(String(t.errorCode));return za(a,u=>$i(u.getCodeActions(t),vZe(u,n)))}function JWt(t){return bb.get($d(t.fixId,Yu)).getAllCodeActions(t)}function wX(t,n){return{changes:t,commands:n}}function m1t(t,n){return{fileName:t,textChanges:n}}function $_(t,n,a){let u=[],m=Gs.ChangeTracker.with(t,g=>wJ(t,n,v=>a(g,v,u)));return wX(m,u.length===0?void 0:u)}function wJ(t,n,a){for(let u of jp(t))dr(n,u.code)&&a(u)}function jp({program:t,sourceFile:n,cancellationToken:a}){let u=[...t.getSemanticDiagnostics(n,a),...t.getSyntacticDiagnostics(n,a),...lMe(n,t,a)];return fw(t.getCompilerOptions())&&u.push(...t.getDeclarationDiagnostics(n,a)),u}var uz="addConvertToUnknownForNonOverlappingTypes",bZe=[j.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code];Cf({errorCodes:bZe,getCodeActions:function(n){let a=SZe(n.sourceFile,n.span.start);if(a===void 0)return;let u=Gs.ChangeTracker.with(n,m=>CRe(m,n.sourceFile,a));return[Wd(uz,u,j.Add_unknown_conversion_for_non_overlapping_types,uz,j.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[uz],getAllCodeActions:t=>$_(t,bZe,(n,a)=>{let u=SZe(a.file,a.start);u&&CRe(n,a.file,u)})});function CRe(t,n,a){let u=SU(a)?Me.createAsExpression(a.expression,Me.createKeywordTypeNode(159)):Me.createTypeAssertion(Me.createKeywordTypeNode(159),a.expression);t.replaceNode(n,a.expression,u)}function SZe(t,n){if(!Ys(t))return go(wc(t,n),a=>SU(a)||A4(a))}Cf({errorCodes:[j.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,j.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,j.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions:function(n){let{sourceFile:a}=n,u=Gs.ChangeTracker.with(n,m=>{let g=Me.createExportDeclaration(void 0,!1,Me.createNamedExports([]),void 0);m.insertNodeAtEndOfScope(a,a,g)});return[rD("addEmptyExportDeclaration",u,j.Add_export_to_make_this_file_into_a_module)]}});var kRe="addMissingAsync",xZe=[j.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,j.Type_0_is_not_assignable_to_type_1.code,j.Type_0_is_not_comparable_to_type_1.code];Cf({fixIds:[kRe],errorCodes:xZe,getCodeActions:function(n){let{sourceFile:a,errorCode:u,cancellationToken:m,program:g,span:v}=n,x=jt(g.getTypeChecker().getDiagnostics(a,m),qWt(v,u)),k=x&&x.relatedInformation&&jt(x.relatedInformation,A=>A.code===j.Did_you_mean_to_mark_this_function_as_async.code),T=CZe(a,k);return T?[wRe(n,T,A=>Gs.ChangeTracker.with(n,A))]:void 0},getAllCodeActions:t=>{let{sourceFile:n}=t,a=new Set;return $_(t,xZe,(u,m)=>{let g=m.relatedInformation&&jt(m.relatedInformation,k=>k.code===j.Did_you_mean_to_mark_this_function_as_async.code),v=CZe(n,g);return v?wRe(t,v,k=>(k(u),[]),a):void 0})}});function wRe(t,n,a,u){let m=a(g=>h1t(g,t.sourceFile,n,u));return Wd(kRe,m,j.Add_async_modifier_to_containing_function,kRe,j.Add_all_missing_async_modifiers)}function h1t(t,n,a,u){if(u&&u.has(pp(a)))return;u?.add(pp(a));let m=Me.replaceModifiers(mp(a,!0),Me.createNodeArray(Me.createModifiersFromModifierFlags(eT(a)|1024)));t.replaceNode(n,a,m)}function CZe(t,n){if(!n)return;let a=wc(t,n.start);return go(a,m=>m.getStart(t)ag(n)?"quit":(Zc(m)||Sg(m)||yd(m)||fp(m))&&ez(n,Cx(m,t)))}function qWt(t,n){return({start:a,length:u,relatedInformation:m,code:g})=>k7(a)&&k7(u)&&ez({start:a,length:u},t)&&g===n&&!!m&&En(m,v=>v.code===j.Did_you_mean_to_mark_this_function_as_async.code)}var TRe="addMissingAwait",g1t=j.Property_0_does_not_exist_on_type_1.code,ERe=[j.This_expression_is_not_callable.code,j.This_expression_is_not_constructable.code],DRe=[j.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,j.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,j.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,j.Operator_0_cannot_be_applied_to_type_1.code,j.Operator_0_cannot_be_applied_to_types_1_and_2.code,j.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,j.This_condition_will_always_return_true_since_this_0_is_always_defined.code,j.Type_0_is_not_an_array_type.code,j.Type_0_is_not_an_array_type_or_a_string_type.code,j.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,j.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,j.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,j.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,j.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,j.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,g1t,...ERe];Cf({fixIds:[TRe],errorCodes:DRe,getCodeActions:function(n){let{sourceFile:a,errorCode:u,span:m,cancellationToken:g,program:v}=n,x=kZe(a,u,m,g,v);if(!x)return;let k=n.program.getTypeChecker(),T=I=>Gs.ChangeTracker.with(n,I);return no([IRe(n,x,u,k,T),wZe(n,x,u,k,T)])},getAllCodeActions:t=>{let{sourceFile:n,program:a,cancellationToken:u}=t,m=t.program.getTypeChecker(),g=new Set;return $_(t,DRe,(v,x)=>{let k=kZe(n,x.code,x,u,a);if(!k)return;let T=I=>(I(v),[]);return IRe(t,k,x.code,m,T,g)||wZe(t,k,x.code,m,T,g)})}});function kZe(t,n,a,u,m){let g=G0e(t,a);return g&&y1t(t,n,a,u,m)&&b1t(g)?g:void 0}function IRe(t,n,a,u,m,g){let{sourceFile:v,program:x,cancellationToken:k}=t,T=v1t(n,v,k,x,u);if(T){let I=m(A=>{ee(T.initializers,({expression:M})=>TZe(A,a,v,u,M,g)),g&&T.needsSecondPassForFixAll&&TZe(A,a,v,u,n,g)});return rD("addMissingAwaitToInitializer",I,T.initializers.length===1?[j.Add_await_to_initializer_for_0,T.initializers[0].declarationSymbol.name]:j.Add_await_to_initializers)}}function wZe(t,n,a,u,m,g){let v=m(x=>TZe(x,a,t.sourceFile,u,n,g));return Wd(TRe,v,j.Add_await,TRe,j.Fix_all_expressions_possibly_missing_await)}function y1t(t,n,a,u,m){let v=m.getTypeChecker().getDiagnostics(t,u);return En(v,({start:x,length:k,relatedInformation:T,code:I})=>k7(x)&&k7(k)&&ez({start:x,length:k},a)&&I===n&&!!T&&En(T,A=>A.code===j.Did_you_forget_to_use_await.code))}function v1t(t,n,a,u,m){let g=$Wt(t,m);if(!g)return;let v=g.isCompleteFix,x;for(let k of g.identifiers){let T=m.getSymbolAtLocation(k);if(!T)continue;let I=ac(T.valueDeclaration,$c),A=I&&ac(I.name,Ai),M=M2(I,243);if(!I||!M||I.type||!I.initializer||M.getSourceFile()!==n||kc(M,32)||!A||!b1t(I.initializer)){v=!1;continue}let R=u.getSemanticDiagnostics(n,a);if(Wm.Core.eachSymbolReferenceInFile(A,m,n,U=>k!==U&&!GWt(U,R,n,m))){v=!1;continue}(x||(x=[])).push({expression:I.initializer,declarationSymbol:T})}return x&&{initializers:x,needsSecondPassForFixAll:!v}}function $Wt(t,n){if(ba(t.parent)&&Ai(t.parent.expression))return{identifiers:[t.parent.expression],isCompleteFix:!0};if(Ai(t))return{identifiers:[t],isCompleteFix:!0};if(ms(t)){let a,u=!0;for(let m of[t.left,t.right]){let g=n.getTypeAtLocation(m);if(n.getPromisedTypeOfPromise(g)){if(!Ai(m)){u=!1;continue}(a||(a=[])).push(m)}}return a&&{identifiers:a,isCompleteFix:u}}}function GWt(t,n,a,u){let m=ba(t.parent)?t.parent.name:ms(t.parent)?t.parent:t,g=jt(n,v=>v.start===m.getStart(a)&&v.start+v.length===m.getEnd());return g&&dr(DRe,g.code)||u.getTypeAtLocation(m).flags&1}function b1t(t){return t.flags&65536||!!go(t,n=>n.parent&&Zc(n.parent)&&n.parent.body===n||qu(n)&&(n.parent.kind===262||n.parent.kind===218||n.parent.kind===219||n.parent.kind===174))}function TZe(t,n,a,u,m,g){if($u(m.parent)&&!m.parent.awaitModifier){let v=u.getTypeAtLocation(m),x=u.getAnyAsyncIterableType();if(x&&u.isTypeAssignableTo(v,x)){let k=m.parent;t.replaceNode(a,k,Me.updateForOfStatement(k,Me.createToken(135),k.initializer,k.expression,k.statement));return}}if(ms(m))for(let v of[m.left,m.right]){if(g&&Ai(v)){let T=u.getSymbolAtLocation(v);if(T&&g.has(Nf(T)))continue}let x=u.getTypeAtLocation(v),k=u.getPromisedTypeOfPromise(x)?Me.createAwaitExpression(v):v;t.replaceNode(a,v,k)}else if(n===g1t&&ba(m.parent)){if(g&&Ai(m.parent.expression)){let v=u.getSymbolAtLocation(m.parent.expression);if(v&&g.has(Nf(v)))return}t.replaceNode(a,m.parent.expression,Me.createParenthesizedExpression(Me.createAwaitExpression(m.parent.expression))),EZe(t,m.parent.expression,a)}else if(dr(ERe,n)&&WE(m.parent)){if(g&&Ai(m)){let v=u.getSymbolAtLocation(m);if(v&&g.has(Nf(v)))return}t.replaceNode(a,m,Me.createParenthesizedExpression(Me.createAwaitExpression(m))),EZe(t,m,a)}else{if(g&&$c(m.parent)&&Ai(m.parent.name)){let v=u.getSymbolAtLocation(m.parent.name);if(v&&!dc(g,Nf(v)))return}t.replaceNode(a,m,Me.createAwaitExpression(m))}}function EZe(t,n,a){let u=p0(n.pos,a);u&&sX(u.end,u.parent,a)&&t.insertText(a,n.getStart(a),";")}var YDe="addMissingConst",DZe=[j.Cannot_find_name_0.code,j.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code];Cf({errorCodes:DZe,getCodeActions:function(n){let a=Gs.ChangeTracker.with(n,u=>NRe(u,n.sourceFile,n.span.start,n.program));if(a.length>0)return[Wd(YDe,a,j.Add_const_to_unresolved_variable,YDe,j.Add_const_to_all_unresolved_variables)]},fixIds:[YDe],getAllCodeActions:t=>{let n=new Set;return $_(t,DZe,(a,u)=>NRe(a,u.file,u.start,t.program,n))}});function NRe(t,n,a,u,m){let g=wc(n,a),v=go(g,T=>Rn(T.parent)?T.parent.initializer===T:S1t(T)?!1:"quit");if(v)return QDe(t,v,n,m);let x=g.parent;if(ms(x)&&x.operatorToken.kind===64&&E0(x.parent))return QDe(t,g,n,m);if(Yg(x)){let T=u.getTypeChecker();return Yt(x.elements,I=>ARe(I,T))?QDe(t,x,n,m):void 0}let k=go(g,T=>E0(T.parent)?!0:KWt(T)?!1:"quit");if(k){let T=u.getTypeChecker();return x1t(k,T)?QDe(t,k,n,m):void 0}}function QDe(t,n,a,u){(!u||dc(u,n))&&t.insertModifierBefore(a,87,n)}function S1t(t){switch(t.kind){case 80:case 209:case 210:case 303:case 304:return!0;default:return!1}}function ARe(t,n){let a=Ai(t)?t:Kg(t,!0)&&Ai(t.left)?t.left:void 0;return!!a&&!n.getSymbolAtLocation(a)}function KWt(t){switch(t.kind){case 80:case 226:case 28:return!0;default:return!1}}function x1t(t,n){return ms(t)?t.operatorToken.kind===28?Yt([t.left,t.right],a=>x1t(a,n)):t.operatorToken.kind===64&&Ai(t.left)&&!n.getSymbolAtLocation(t.left):!1}var IZe="addMissingDeclareProperty",NZe=[j.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration.code];Cf({errorCodes:NZe,getCodeActions:function(n){let a=Gs.ChangeTracker.with(n,u=>PRe(u,n.sourceFile,n.span.start));if(a.length>0)return[Wd(IZe,a,j.Prefix_with_declare,IZe,j.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[IZe],getAllCodeActions:t=>{let n=new Set;return $_(t,NZe,(a,u)=>PRe(a,u.file,u.start,n))}});function PRe(t,n,a,u){let m=wc(n,a);if(!Ai(m))return;let g=m.parent;g.kind===172&&(!u||dc(u,g))&&t.insertModifierBefore(n,138,g)}var LRe="addMissingInvocationForDecorator",AZe=[j._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];Cf({errorCodes:AZe,getCodeActions:function(n){let a=Gs.ChangeTracker.with(n,u=>ORe(u,n.sourceFile,n.span.start));return[Wd(LRe,a,j.Call_decorator_expression,LRe,j.Add_to_all_uncalled_decorators)]},fixIds:[LRe],getAllCodeActions:t=>$_(t,AZe,(n,a)=>ORe(n,a.file,a.start))});function ORe(t,n,a){let u=wc(n,a),m=go(u,Cy);Se.assert(!!m,"Expected position to be owned by a decorator.");let g=Me.createCallExpression(m.expression,void 0,void 0);t.replaceNode(n,m.expression,g)}var FRe="addNameToNamelessParameter",PZe=[j.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];Cf({errorCodes:PZe,getCodeActions:function(n){let a=Gs.ChangeTracker.with(n,u=>MRe(u,n.sourceFile,n.span.start));return[Wd(FRe,a,j.Add_parameter_name,FRe,j.Add_names_to_all_parameters_without_names)]},fixIds:[FRe],getAllCodeActions:t=>$_(t,PZe,(n,a)=>MRe(n,a.file,a.start))});function MRe(t,n,a){let u=wc(n,a),m=u.parent;if(!Fl(m))return Se.fail("Tried to add a parameter name to a non-parameter: "+Se.formatSyntaxKind(u.kind));let g=m.parent.parameters.indexOf(m);Se.assert(!m.type,"Tried to add a parameter name to a parameter that already had one."),Se.assert(g>-1,"Parameter not found in parent parameter list.");let v=m.name.getEnd(),x=Me.createTypeReferenceNode(m.name,void 0),k=LZe(n,m);for(;k;)x=Me.createArrayTypeNode(x),v=k.getEnd(),k=LZe(n,k);let T=Me.createParameterDeclaration(m.modifiers,m.dotDotDotToken,"arg"+g,m.questionToken,m.dotDotDotToken&&!$8(x)?Me.createArrayTypeNode(x):x,m.initializer);t.replaceRange(n,tT(m.getStart(n),v),T)}function LZe(t,n){let a=NM(n.name,n.parent,t);if(a&&a.kind===23&&QE(a.parent)&&Fl(a.parent.parent))return a.parent.parent}var OZe="addOptionalPropertyUndefined",C1t=[j.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,j.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,j.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code];Cf({errorCodes:C1t,getCodeActions(t){let n=t.program.getTypeChecker(),a=k1t(t.sourceFile,t.span,n);if(!a.length)return;let u=Gs.ChangeTracker.with(t,m=>YWt(m,a));return[rD(OZe,u,j.Add_undefined_to_optional_property_type)]},fixIds:[OZe]});function k1t(t,n,a){var u,m;let g=w1t(G0e(t,n),a);if(!g)return F;let{source:v,target:x}=g,k=XWt(v,x,a)?a.getTypeAtLocation(x.expression):a.getTypeAtLocation(x);return(m=(u=k.symbol)==null?void 0:u.declarations)!=null&&m.some(T=>Vo(T).fileName.match(/\.d\.ts$/))?F:a.getExactOptionalProperties(k)}function XWt(t,n,a){return ba(n)&&!!a.getExactOptionalProperties(a.getTypeAtLocation(n.expression)).length&&a.getTypeAtLocation(t)===a.getUndefinedType()}function w1t(t,n){var a;if(t){if(ms(t.parent)&&t.parent.operatorToken.kind===64)return{source:t.parent.right,target:t.parent.left};if($c(t.parent)&&t.parent.initializer)return{source:t.parent.initializer,target:t.parent.name};if(Od(t.parent)){let u=n.getSymbolAtLocation(t.parent.expression);if(!u?.valueDeclaration||!Vh(u.valueDeclaration.kind)||!An(t))return;let m=t.parent.arguments.indexOf(t);if(m===-1)return;let g=u.valueDeclaration.parameters[m].name;if(Ai(g))return{source:t,target:g}}else if(Ih(t.parent)&&Ai(t.parent.name)||Q0(t.parent)){let u=w1t(t.parent.parent,n);if(!u)return;let m=n.getPropertyOfType(n.getTypeAtLocation(u.target),t.parent.name.text),g=(a=m?.declarations)==null?void 0:a[0];return g?{source:Ih(t.parent)?t.parent.initializer:t.parent.name,target:g}:void 0}}else return}function YWt(t,n){for(let a of n){let u=a.valueDeclaration;if(u&&(hx(u)||vu(u))&&u.type){let m=Me.createUnionTypeNode([...u.type.kind===192?u.type.types:[u.type],Me.createTypeReferenceNode("undefined")]);t.replaceNode(u.getSourceFile(),u.type,m)}}}var RRe="annotateWithTypeFromJSDoc",T1t=[j.JSDoc_types_may_be_moved_to_TypeScript_types.code];Cf({errorCodes:T1t,getCodeActions(t){let n=BRe(t.sourceFile,t.span.start);if(!n)return;let a=Gs.ChangeTracker.with(t,u=>RZe(u,t.sourceFile,n));return[Wd(RRe,a,j.Annotate_with_type_from_JSDoc,RRe,j.Annotate_everything_with_types_from_JSDoc)]},fixIds:[RRe],getAllCodeActions:t=>$_(t,T1t,(n,a)=>{let u=BRe(a.file,a.start);u&&RZe(n,a.file,u)})});function BRe(t,n){let a=wc(t,n);return ac(Fl(a.parent)?a.parent.parent:a.parent,FZe)}function FZe(t){return E1t(t)&&MZe(t)}function MZe(t){return Rp(t)?t.parameters.some(MZe)||!t.type&&!!dZ(t):!t.type&&!!M6(t)}function RZe(t,n,a){if(Rp(a)&&(dZ(a)||a.parameters.some(u=>!!M6(u)))){if(!a.typeParameters){let m=j3(a);m.length&&t.insertTypeParameters(n,a,m)}let u=Zc(a)&&!Np(a,21,n);u&&t.insertNodeBefore(n,of(a.parameters),Me.createToken(21));for(let m of a.parameters)if(!m.type){let g=M6(m);g&&t.tryInsertTypeAnnotation(n,m,on(g,T9,Qa))}if(u&&t.insertNodeAfter(n,Bu(a.parameters),Me.createToken(22)),!a.type){let m=dZ(a);m&&t.tryInsertTypeAnnotation(n,a,on(m,T9,Qa))}}else{let u=Se.checkDefined(M6(a),"A JSDocType for this declaration should exist");Se.assert(!a.type,"The JSDocType decl should have a type"),t.tryInsertTypeAnnotation(n,a,on(u,T9,Qa))}}function E1t(t){return Rp(t)||t.kind===260||t.kind===171||t.kind===172}function T9(t){switch(t.kind){case 312:case 313:return Me.createTypeReferenceNode("any",F);case 316:return dz(t);case 315:return T9(t.type);case 314:return ZWt(t);case 318:return ezt(t);case 317:return tzt(t);case 183:return nzt(t);case 322:return QWt(t);default:let n=Fo(t,T9,void 0);return De(n,1),n}}function QWt(t){let n=Me.createTypeLiteralNode($i(t.jsDocPropertyTags,a=>Me.createPropertySignature(void 0,Ai(a.name)?a.name:a.name.right,M5(a)?Me.createToken(58):void 0,a.typeExpression&&on(a.typeExpression.type,T9,Qa)||Me.createKeywordTypeNode(133))));return De(n,1),n}function dz(t){return Me.createUnionTypeNode([on(t.type,T9,Qa),Me.createTypeReferenceNode("undefined",F)])}function ZWt(t){return Me.createUnionTypeNode([on(t.type,T9,Qa),Me.createTypeReferenceNode("null",F)])}function ezt(t){return Me.createArrayTypeNode(on(t.type,T9,Qa))}function tzt(t){return Me.createFunctionTypeNode(F,t.parameters.map(izt),t.type??Me.createKeywordTypeNode(133))}function izt(t){let n=t.parent.parameters.indexOf(t),a=t.type.kind===318&&n===t.parent.parameters.length-1,u=t.name||(a?"rest":"arg"+n),m=a?Me.createToken(26):t.dotDotDotToken;return Me.createParameterDeclaration(t.modifiers,m,u,t.questionToken,on(t.type,T9,Qa),t.initializer)}function nzt(t){let n=t.typeName,a=t.typeArguments;if(Ai(t.typeName)){if(qpe(t))return rzt(t);let u=t.typeName.text;switch(t.typeName.text){case"String":case"Boolean":case"Object":case"Number":u=u.toLowerCase();break;case"array":case"date":case"promise":u=u[0].toUpperCase()+u.slice(1);break}n=Me.createIdentifier(u),(u==="Array"||u==="Promise")&&!t.typeArguments?a=Me.createNodeArray([Me.createTypeReferenceNode("any",F)]):a=ts(t.typeArguments,T9,Qa)}return Me.createTypeReferenceNode(n,a)}function rzt(t){let n=Me.createParameterDeclaration(void 0,void 0,t.typeArguments[0].kind===150?"n":"s",void 0,Me.createTypeReferenceNode(t.typeArguments[0].kind===150?"number":"string",[]),void 0),a=Me.createTypeLiteralNode([Me.createIndexSignature(void 0,[n],t.typeArguments[1])]);return De(a,1),a}var BZe="convertFunctionToEs6Class",D1t=[j.This_constructor_function_may_be_converted_to_a_class_declaration.code];Cf({errorCodes:D1t,getCodeActions(t){let n=Gs.ChangeTracker.with(t,a=>jRe(a,t.sourceFile,t.span.start,t.program.getTypeChecker(),t.preferences,t.program.getCompilerOptions()));return[Wd(BZe,n,j.Convert_function_to_an_ES2015_class,BZe,j.Convert_all_constructor_functions_to_classes)]},fixIds:[BZe],getAllCodeActions:t=>$_(t,D1t,(n,a)=>jRe(n,a.file,a.start,t.program.getTypeChecker(),t.preferences,t.program.getCompilerOptions()))});function jRe(t,n,a,u,m,g){let v=u.getSymbolAtLocation(wc(n,a));if(!v||!v.valueDeclaration||!(v.flags&19))return;let x=v.valueDeclaration;if(fp(x)||yd(x))t.replaceNode(n,x,I(x));else if($c(x)){let A=T(x);if(!A)return;let M=x.parent.parent;Xv(x.parent)&&x.parent.declarations.length>1?(t.delete(n,x),t.insertNodeAfter(n,M,A)):t.replaceNode(n,M,A)}function k(A){let M=[];return A.exports&&A.exports.forEach(U=>{if(U.name==="prototype"&&U.declarations){let $=U.declarations[0];if(U.declarations.length===1&&ba($)&&ms($.parent)&&$.parent.operatorToken.kind===64&&Ld($.parent.right)){let K=$.parent.right;H(K.symbol,void 0,M)}}else H(U,[Me.createToken(126)],M)}),A.members&&A.members.forEach((U,$)=>{var K,re,X,ne;if($==="constructor"&&U.valueDeclaration){let se=(ne=(X=(re=(K=A.exports)==null?void 0:K.get("prototype"))==null?void 0:re.declarations)==null?void 0:X[0])==null?void 0:ne.parent;se&&ms(se)&&Ld(se.right)&&En(se.right.properties,eIe)||t.delete(n,U.valueDeclaration.parent);return}H(U,void 0,M)}),M;function R(U,$){return cf(U)?ba(U)&&eIe(U)?!0:iu($):Yt(U.properties,K=>!!(Sg(K)||Hoe(K)||Ih(K)&&yd(K.initializer)&&K.name||eIe(K)))}function H(U,$,K){if(!(U.flags&8192)&&!(U.flags&4096))return;let re=U.valueDeclaration,X=re.parent,ne=X.right;if(!R(re,ne)||En(K,Ee=>{let xe=Nu(Ee);return!!(xe&&Ai(xe)&&Un(xe)===Bc(U))}))return;let se=X.parent&&X.parent.kind===244?X.parent:X;if(t.delete(n,se),!ne){K.push(Me.createPropertyDeclaration($,U.name,void 0,void 0,void 0));return}if(cf(re)&&(yd(ne)||Zc(ne))){let Ee=Nk(n,m),xe=WRe(re,g,Ee);xe&&_e(K,ne,xe);return}else if(Ld(ne)){ee(ne.properties,Ee=>{(Sg(Ee)||Hoe(Ee))&&K.push(Ee),Ih(Ee)&&yd(Ee.initializer)&&_e(K,Ee.initializer,Ee.name),eIe(Ee)});return}else{if($v(n)||!ba(re))return;let Ee=Me.createPropertyDeclaration($,re.name,void 0,void 0,ne);Ute(X.parent,Ee,n),K.push(Ee);return}function _e(Ee,xe,be){return yd(xe)?ae(Ee,xe,be):le(Ee,xe,be)}function ae(Ee,xe,be){let Le=Pl($,ZDe(xe,134)),fe=Me.createMethodDeclaration(Le,void 0,be,void 0,void 0,xe.parameters,void 0,xe.body);Ute(X,fe,n),Ee.push(fe)}function le(Ee,xe,be){let Le=xe.body,fe;Le.kind===241?fe=Le:fe=Me.createBlock([Me.createReturnStatement(Le)]);let we=Pl($,ZDe(xe,134)),Ae=Me.createMethodDeclaration(we,void 0,be,void 0,void 0,xe.parameters,void 0,fe);Ute(X,Ae,n),Ee.push(Ae)}}}function T(A){let M=A.initializer;if(!M||!yd(M)||!Ai(A.name))return;let R=k(A.symbol);M.body&&R.unshift(Me.createConstructorDeclaration(void 0,M.parameters,M.body));let H=ZDe(A.parent.parent,95);return Me.createClassDeclaration(H,A.name,void 0,void 0,R)}function I(A){let M=k(v);A.body&&M.unshift(Me.createConstructorDeclaration(void 0,A.parameters,A.body));let R=ZDe(A,95);return Me.createClassDeclaration(R,A.name,void 0,void 0,M)}}function ZDe(t,n){return tD(t)?Qn(t.modifiers,a=>a.kind===n):void 0}function eIe(t){return t.name?!!(Ai(t.name)&&t.name.text==="constructor"):!1}function WRe(t,n,a){if(ba(t))return t.name;let u=t.argumentExpression;if(mx(u))return u;if(i_(u))return Jb(u.text,h_(n))?Me.createIdentifier(u.text):z5(u)?Me.createStringLiteral(u.text,a===0):u}var Lye="convertToAsyncFunction",I1t=[j.This_may_be_converted_to_an_async_function.code],Oye=!0;Cf({errorCodes:I1t,getCodeActions(t){Oye=!0;let n=Gs.ChangeTracker.with(t,a=>jZe(a,t.sourceFile,t.span.start,t.program.getTypeChecker()));return Oye?[Wd(Lye,n,j.Convert_to_async_function,Lye,j.Convert_all_to_async_functions)]:[]},fixIds:[Lye],getAllCodeActions:t=>$_(t,I1t,(n,a)=>jZe(n,a.file,a.start,t.program.getTypeChecker()))});function jZe(t,n,a,u){let m=wc(n,a),g;if(Ai(m)&&$c(m.parent)&&m.parent.initializer&&Rp(m.parent.initializer)?g=m.parent.initializer:g=ac(BS(wc(n,a)),aDe),!g)return;let v=new Map,x=Ys(g),k=N1t(g,u),T=VRe(g,u,v);if(!uMe(T,u))return;let I=T.body&&qu(T.body)?zRe(T.body,u):F,A={checker:u,synthNamesMap:v,setOfExpressionsToReturn:k,isInJSFile:x};if(!I.length)return;let M=fd(n.text,JE(g).pos);t.insertModifierAt(n,M,134,{suffix:" "});for(let R of I)if(_d(R,function H(U){if(Od(U)){let $=kL(U,U,A,!1);if(EX())return!0;t.replaceNodeWithNodes(n,R,$)}else if(!iu(U)&&(_d(U,H),EX()))return!0}),EX())return}function zRe(t,n){let a=[];return Gb(t,u=>{oDe(u,n)&&a.push(u)}),a}function N1t(t,n){if(!t.body)return new Set;let a=new Set;return _d(t.body,function u(m){Fye(m,n,"then")?(a.add(pp(m)),ee(m.arguments,u)):Fye(m,n,"catch")||Fye(m,n,"finally")?(a.add(pp(m)),_d(m,u)):WZe(m,n)?a.add(pp(m)):_d(m,u)}),a}function Fye(t,n,a){if(!Od(t))return!1;let m=Nte(t,a)&&n.getTypeAtLocation(t);return!!(m&&n.getPromisedTypeOfPromise(m))}function A1t(t,n){return(Ls(t)&4)!==0&&t.target===n}function TX(t,n,a){if(t.expression.name.escapedText==="finally")return;let u=a.getTypeAtLocation(t.expression.expression);if(A1t(u,a.getPromiseType())||A1t(u,a.getPromiseLikeType()))if(t.expression.name.escapedText==="then"){if(n===C0(t.arguments,0))return C0(t.typeArguments,0);if(n===C0(t.arguments,1))return C0(t.typeArguments,1)}else return C0(t.typeArguments,0)}function WZe(t,n){return An(t)?!!n.getPromisedTypeOfPromise(n.getTypeAtLocation(t)):!1}function VRe(t,n,a){let u=new Map,m=Hb();return _d(t,function g(v){if(!Ai(v)){_d(v,g);return}let x=n.getSymbolAtLocation(v);if(x){let k=n.getTypeAtLocation(v),T=JRe(k,n),I=Nf(x).toString();if(T&&!Fl(v.parent)&&!Rp(v.parent)&&!a.has(I)){let A=Ed(T.parameters),M=A?.valueDeclaration&&Fl(A.valueDeclaration)&&ac(A.valueDeclaration.name,Ai)||Me.createUniqueName("result",16),R=zZe(M,m);a.set(I,R),m.add(M.text,x)}else if(v.parent&&(Fl(v.parent)||$c(v.parent)||Zd(v.parent))){let A=v.text,M=m.get(A);if(M&&M.some(R=>R!==x)){let R=zZe(v,m);u.set(I,R.identifier),a.set(I,R),m.add(A,x)}else{let R=mp(v);a.set(I,gie(R)),m.add(A,x)}}}}),Vte(t,!0,g=>{if(Zd(g)&&Ai(g.name)&&fb(g.parent)){let v=n.getSymbolAtLocation(g.name),x=v&&u.get(String(Nf(v)));if(x&&x.text!==(g.name||g.propertyName).getText())return Me.createBindingElement(g.dotDotDotToken,g.propertyName||g.name,x,g.initializer)}else if(Ai(g)){let v=n.getSymbolAtLocation(g),x=v&&u.get(String(Nf(v)));if(x)return Me.createIdentifier(x.text)}})}function zZe(t,n){let a=(n.get(t.text)||F).length,u=a===0?t:Me.createIdentifier(t.text+"_"+a);return gie(u)}function EX(){return!Oye}function HM(){return Oye=!1,F}function kL(t,n,a,u,m){if(Fye(n,a.checker,"then"))return ozt(n,C0(n.arguments,0),C0(n.arguments,1),a,u,m);if(Fye(n,a.checker,"catch"))return VZe(n,C0(n.arguments,0),a,u,m);if(Fye(n,a.checker,"finally"))return L1t(n,C0(n.arguments,0),a,u,m);if(ba(n))return kL(t,n.expression,a,u,m);let g=a.checker.getTypeAtLocation(n);return g&&a.checker.getPromisedTypeOfPromise(g)?(Se.assertNode(Gm(n).parent,ba),O1t(t,n,a,u,m)):HM()}function pO({checker:t},n){if(n.kind===106)return!0;if(Ai(n)&&!Tm(n)&&Un(n)==="undefined"){let a=t.getSymbolAtLocation(n);return!a||t.isUndefinedSymbol(a)}return!1}function hie(t){let n=Me.createUniqueName(t.identifier.text,16);return gie(n)}function tIe(t,n,a){let u;return a&&!fz(t,n)&&(Lle(a)?(u=a,n.synthNamesMap.forEach((m,g)=>{if(m.identifier.text===a.identifier.text){let v=hie(a);n.synthNamesMap.set(g,v)}})):u=gie(Me.createUniqueName("result",16),a.types),Ple(u)),u}function P1t(t,n,a,u,m){let g=[],v;if(u&&!fz(t,n)){v=mp(Ple(u));let x=u.types,k=n.checker.getUnionType(x,2),T=n.isInJSFile?void 0:n.checker.typeToTypeNode(k,void 0,void 0),I=[Me.createVariableDeclaration(v,void 0,T)],A=Me.createVariableStatement(void 0,Me.createVariableDeclarationList(I,1));g.push(A)}return g.push(a),m&&v&&qZe(m)&&g.push(Me.createVariableStatement(void 0,Me.createVariableDeclarationList([Me.createVariableDeclaration(mp(qRe(m)),void 0,void 0,v)],2))),g}function L1t(t,n,a,u,m){if(!n||pO(a,n))return kL(t,t.expression.expression,a,u,m);let g=tIe(t,a,m),v=kL(t,t.expression.expression,a,!0,g);if(EX())return HM();let x=Mye(n,u,void 0,void 0,t,a);if(EX())return HM();let k=Me.createBlock(v),T=Me.createBlock(x),I=Me.createTryStatement(k,void 0,T);return P1t(t,a,I,g,m)}function VZe(t,n,a,u,m){if(!n||pO(a,n))return kL(t,t.expression.expression,a,u,m);let g=M1t(n,a),v=tIe(t,a,m),x=kL(t,t.expression.expression,a,!0,v);if(EX())return HM();let k=Mye(n,u,v,g,t,a);if(EX())return HM();let T=Me.createBlock(x),I=Me.createCatchClause(g&&mp(iIe(g)),Me.createBlock(k)),A=Me.createTryStatement(T,I,void 0);return P1t(t,a,A,v,m)}function ozt(t,n,a,u,m,g){if(!n||pO(u,n))return VZe(t,a,u,m,g);if(a&&!pO(u,a))return HM();let v=M1t(n,u),x=kL(t.expression.expression,t.expression.expression,u,!0,v);if(EX())return HM();let k=Mye(n,m,g,v,t,u);return EX()?HM():Pl(x,k)}function O1t(t,n,a,u,m){if(fz(t,a)){let g=mp(n);return u&&(g=Me.createAwaitExpression(g)),[Me.createReturnStatement(g)]}return HRe(m,Me.createAwaitExpression(n),void 0)}function HRe(t,n,a){return!t||JZe(t)?[Me.createExpressionStatement(n)]:Lle(t)&&t.hasBeenDeclared?[Me.createExpressionStatement(Me.createAssignment(mp(DX(t)),n))]:[Me.createVariableStatement(void 0,Me.createVariableDeclarationList([Me.createVariableDeclaration(mp(iIe(t)),void 0,a,n)],2))]}function HZe(t,n){if(n&&t){let a=Me.createUniqueName("result",16);return[...HRe(gie(a),t,n),Me.createReturnStatement(a)]}return[Me.createReturnStatement(t)]}function Mye(t,n,a,u,m,g){var v;switch(t.kind){case 106:break;case 211:case 80:if(!u)break;let x=Me.createCallExpression(mp(t),void 0,Lle(u)?[DX(u)]:[]);if(fz(m,g))return HZe(x,TX(m,t,g.checker));let k=g.checker.getTypeAtLocation(t),T=g.checker.getSignaturesOfType(k,0);if(!T.length)return HM();let I=T[0].getReturnType(),A=HRe(a,Me.createAwaitExpression(x),TX(m,t,g.checker));return a&&a.types.push(g.checker.getAwaitedType(I)||I),A;case 218:case 219:{let M=t.body,R=(v=JRe(g.checker.getTypeAtLocation(t),g.checker))==null?void 0:v.getReturnType();if(qu(M)){let H=[],U=!1;for(let $ of M.statements)if(fm($))if(U=!0,oDe($,g.checker))H=H.concat(UZe(g,$,n,a));else{let K=R&&$.expression?URe(g.checker,R,$.expression):$.expression;H.push(...HZe(K,TX(m,t,g.checker)))}else{if(n&&Gb($,ql))return HM();H.push($)}return fz(m,g)?H.map($=>mp($)):F1t(H,a,g,U)}else{let H=fMe(M,g.checker)?UZe(g,Me.createReturnStatement(M),n,a):F;if(H.length>0)return H;if(R){let U=URe(g.checker,R,M);if(fz(m,g))return HZe(U,TX(m,t,g.checker));{let $=HRe(a,U,void 0);return a&&a.types.push(g.checker.getAwaitedType(R)||R),$}}else return HM()}}default:return HM()}return F}function URe(t,n,a){let u=mp(a);return t.getPromisedTypeOfPromise(n)?Me.createAwaitExpression(u):u}function JRe(t,n){let a=n.getSignaturesOfType(t,0);return Y_(a)}function F1t(t,n,a,u){let m=[];for(let g of t)if(fm(g)){if(g.expression){let v=WZe(g.expression,a.checker)?Me.createAwaitExpression(g.expression):g.expression;n===void 0?m.push(Me.createExpressionStatement(v)):Lle(n)&&n.hasBeenDeclared?m.push(Me.createExpressionStatement(Me.createAssignment(DX(n),v))):m.push(Me.createVariableStatement(void 0,Me.createVariableDeclarationList([Me.createVariableDeclaration(iIe(n),void 0,void 0,v)],2)))}}else m.push(mp(g));return!u&&n!==void 0&&m.push(Me.createVariableStatement(void 0,Me.createVariableDeclarationList([Me.createVariableDeclaration(iIe(n),void 0,void 0,Me.createIdentifier("undefined"))],2))),m}function UZe(t,n,a,u){let m=[];return _d(n,function g(v){if(Od(v)){let x=kL(v,v,t,a,u);if(m=m.concat(x),m.length>0)return}else iu(v)||_d(v,g)}),m}function M1t(t,n){let a=[],u;if(Rp(t)){if(t.parameters.length>0){let k=t.parameters[0].name;u=m(k)}}else Ai(t)?u=g(t):ba(t)&&Ai(t.name)&&(u=g(t.name));if(!u||"identifier"in u&&u.identifier.text==="undefined")return;return u;function m(k){if(Ai(k))return g(k);let T=za(k.elements,I=>Eh(I)?[]:[m(I.name)]);return R1t(k,T)}function g(k){let T=x(k),I=v(T);return I&&n.synthNamesMap.get(Nf(I).toString())||gie(k,a)}function v(k){var T;return((T=ac(k,$x))==null?void 0:T.symbol)??n.checker.getSymbolAtLocation(k)}function x(k){return k.original?k.original:k}}function JZe(t){return t?Lle(t)?!t.identifier.text:Yt(t.elements,JZe):!0}function gie(t,n=[]){return{kind:0,identifier:t,types:n,hasBeenDeclared:!1,hasBeenReferenced:!1}}function R1t(t,n=F,a=[]){return{kind:1,bindingPattern:t,elements:n,types:a}}function DX(t){return t.hasBeenReferenced=!0,t.identifier}function iIe(t){return Lle(t)?Ple(t):qRe(t)}function qRe(t){for(let n of t.elements)iIe(n);return t.bindingPattern}function Ple(t){return t.hasBeenDeclared=!0,t.identifier}function Lle(t){return t.kind===0}function qZe(t){return t.kind===1}function fz(t,n){return!!t.original&&n.setOfExpressionsToReturn.has(pp(t.original))}Cf({errorCodes:[j.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(t){let{sourceFile:n,program:a,preferences:u}=t,m=Gs.ChangeTracker.with(t,g=>{if(Rye(n,a.getTypeChecker(),g,h_(a.getCompilerOptions()),Nk(n,u)))for(let x of a.getSourceFiles())szt(x,n,a,g,Nk(x,u))});return[rD("convertToEsModule",m,j.Convert_to_ES_module)]}});function szt(t,n,a,u,m){var g;for(let v of t.imports){let x=(g=a.getResolvedModuleFromModuleSpecifier(v,t))==null?void 0:g.resolvedModule;if(!x||x.resolvedFileName!==n.fileName)continue;let k=pG(v);switch(k.kind){case 271:u.replaceNode(t,k,vL(k.name,void 0,v,m));break;case 213:es(k,!1)&&u.replaceNode(t,k,Me.createPropertyAccessExpression(mp(k),"default"));break}}}function Rye(t,n,a,u,m){let g={original:mzt(t),additional:new Set},v=azt(t,n,g);czt(t,v,a);let x=!1,k;for(let T of Qn(t.statements,Zh)){let I=$Ze(t,T,a,n,g,u,m);I&&eG(I,k??(k=new Map))}for(let T of Qn(t.statements,I=>!Zh(I))){let I=lzt(t,T,n,a,g,u,v,k,m);x=x||I}return k?.forEach((T,I)=>{a.replaceNode(t,I,T)}),x}function azt(t,n,a){let u=new Map;return B1t(t,m=>{let{text:g}=m.name;!u.has(g)&&(bse(m.name)||n.resolveName(g,m,111551,!0))&&u.set(g,$Re(`_${g}`,a))}),u}function czt(t,n,a){B1t(t,(u,m)=>{if(m)return;let{text:g}=u.name;a.replaceNode(t,u,Me.createIdentifier(n.get(g)||g))})}function B1t(t,n){t.forEachChild(function a(u){if(ba(u)&&xM(t,u.expression)&&Ai(u.name)){let{parent:m}=u;n(u,ms(m)&&m.left===u&&m.operatorToken.kind===64)}u.forEachChild(a)})}function lzt(t,n,a,u,m,g,v,x,k){switch(n.kind){case 243:return $Ze(t,n,u,a,m,g,k),!1;case 244:{let{expression:T}=n;switch(T.kind){case 213:return es(T,!0)&&u.replaceNode(t,n,vL(void 0,void 0,T.arguments[0],k)),!1;case 226:{let{operatorToken:I}=T;return I.kind===64&&j1t(t,a,T,u,v,x)}}}default:return!1}}function $Ze(t,n,a,u,m,g,v){let{declarationList:x}=n,k=!1,T=$i(x.declarations,I=>{let{name:A,initializer:M}=I;if(M){if(xM(t,M))return k=!0,TJ([]);if(es(M,!0))return k=!0,pzt(A,M.arguments[0],u,m,g,v);if(ba(M)&&es(M.expression,!0))return k=!0,uzt(A,M.name.text,M.expression.arguments[0],m,v)}return TJ([Me.createVariableStatement(void 0,Me.createVariableDeclarationList([I],x.flags))])});if(k){a.replaceNodeWithNodes(t,n,za(T,A=>A.newImports));let I;return ee(T,A=>{A.useSitesToUnqualify&&eG(A.useSitesToUnqualify,I??(I=new Map))}),I}}function uzt(t,n,a,u,m){switch(t.kind){case 206:case 207:{let g=$Re(n,u);return TJ([ZZe(g,n,a,m),rIe(void 0,t,Me.createIdentifier(g))])}case 80:return TJ([ZZe(t.text,n,a,m)]);default:return Se.assertNever(t,`Convert to ES module got invalid syntax form ${t.kind}`)}}function j1t(t,n,a,u,m,g){let{left:v,right:x}=a;if(!ba(v))return!1;if(xM(t,v))if(xM(t,x))u.delete(t,a.parent);else{let k=Ld(x)?dzt(x,g):es(x,!0)?_zt(x.arguments[0],n):void 0;return k?(u.replaceNodeWithNodes(t,a.parent,k[0]),k[1]):(u.replaceRangeWithText(t,tT(v.getStart(t),x.pos),"export default"),!0)}else xM(t,v.expression)&&fzt(t,a,u,m);return!1}function dzt(t,n){let a=Vb(t.properties,u=>{switch(u.kind){case 177:case 178:case 304:case 305:return;case 303:return Ai(u.name)?KZe(u.name.text,u.initializer,n):void 0;case 174:return Ai(u.name)?QZe(u.name.text,[Me.createToken(95)],u,n):void 0;default:Se.assertNever(u,`Convert to ES6 got invalid prop kind ${u.kind}`)}});return a&&[a,!1]}function fzt(t,n,a,u){let{text:m}=n.left.name,g=u.get(m);if(g!==void 0){let v=[rIe(void 0,g,n.right),GRe([Me.createExportSpecifier(!1,g,m)])];a.replaceNodeWithNodes(t,n.parent,v)}else z1t(n,t,a)}function _zt(t,n){let a=t.text,u=n.getSymbolAtLocation(t),m=u?u.exports:Y;return m.has("export=")?[[GZe(a)],!0]:m.has("default")?m.size>1?[[W1t(a),GZe(a)],!0]:[[GZe(a)],!0]:[[W1t(a)],!1]}function W1t(t){return GRe(void 0,t)}function GZe(t){return GRe([Me.createExportSpecifier(!1,void 0,"default")],t)}function z1t({left:t,right:n,parent:a},u,m){let g=t.name.text;if((yd(n)||Zc(n)||Qh(n))&&(!n.name||n.name.text===g)){m.replaceRange(u,{pos:t.getStart(u),end:n.getStart(u)},Me.createToken(95),{suffix:" "}),n.name||m.insertName(u,n,g);let v=Np(a,27,u);v&&m.delete(u,v)}else m.replaceNodeRangeWithNodes(u,t.expression,Np(t,25,u),[Me.createToken(95),Me.createToken(87)],{joiner:" ",suffix:" "})}function KZe(t,n,a){let u=[Me.createToken(95)];switch(n.kind){case 218:{let{name:g}=n;if(g&&g.text!==t)return m()}case 219:return QZe(t,u,n,a);case 231:return gzt(t,u,n,a);default:return m()}function m(){return rIe(u,Me.createIdentifier(t),XZe(n,a))}}function XZe(t,n){if(!n||!En(tc(n.keys()),u=>bw(t,u)))return t;return ua(t)?rX(t,!0,a):Vte(t,!0,a);function a(u){if(u.kind===211){let m=n.get(u);return n.delete(u),m}}}function pzt(t,n,a,u,m,g){switch(t.kind){case 206:{let v=Vb(t.elements,x=>x.dotDotDotToken||x.initializer||x.propertyName&&!Ai(x.propertyName)||!Ai(x.name)?void 0:V1t(x.propertyName&&x.propertyName.text,x.name.text));if(v)return TJ([vL(void 0,v,n,g)])}case 207:{let v=$Re(SJ(n.text,m),u);return TJ([vL(Me.createIdentifier(v),void 0,n,g),rIe(void 0,mp(t),Me.createIdentifier(v))])}case 80:return YZe(t,n,a,u,g);default:return Se.assertNever(t,`Convert to ES module got invalid name kind ${t.kind}`)}}function YZe(t,n,a,u,m){let g=a.getSymbolAtLocation(t),v=new Map,x=!1,k;for(let I of u.original.get(t.text)){if(a.getSymbolAtLocation(I)!==g||I===t)continue;let{parent:A}=I;if(ba(A)){let{name:{text:M}}=A;if(M==="default"){x=!0;let R=I.getText();(k??(k=new Map)).set(A,Me.createIdentifier(R))}else{Se.assert(A.expression===I,"Didn't expect expression === use");let R=v.get(M);R===void 0&&(R=$Re(M,u),v.set(M,R)),(k??(k=new Map)).set(A,Me.createIdentifier(R))}}else x=!0}let T=v.size===0?void 0:tc(Dl(v.entries(),([I,A])=>Me.createImportSpecifier(!1,I===A?void 0:Me.createIdentifier(I),Me.createIdentifier(A))));return T||(x=!0),TJ([vL(x?mp(t):void 0,T,n,m)],k)}function $Re(t,n){for(;n.original.has(t)||n.additional.has(t);)t=`_${t}`;return n.additional.add(t),t}function mzt(t){let n=Hb();return nIe(t,a=>n.add(a.text,a)),n}function nIe(t,n){Ai(t)&&hzt(t)&&n(t),t.forEachChild(a=>nIe(a,n))}function hzt(t){let{parent:n}=t;switch(n.kind){case 211:return n.name!==t;case 208:return n.propertyName!==t;case 276:return n.propertyName!==t;default:return!0}}function QZe(t,n,a,u){return Me.createFunctionDeclaration(Pl(n,g_(a.modifiers)),mp(a.asteriskToken),t,g_(a.typeParameters),g_(a.parameters),mp(a.type),Me.converters.convertToFunctionBlock(XZe(a.body,u)))}function gzt(t,n,a,u){return Me.createClassDeclaration(Pl(n,g_(a.modifiers)),t,g_(a.typeParameters),g_(a.heritageClauses),XZe(a.members,u))}function ZZe(t,n,a,u){return n==="default"?vL(Me.createIdentifier(t),void 0,a,u):vL(void 0,[V1t(n,t)],a,u)}function V1t(t,n){return Me.createImportSpecifier(!1,t!==void 0&&t!==n?Me.createIdentifier(t):void 0,Me.createIdentifier(n))}function rIe(t,n,a){return Me.createVariableStatement(t,Me.createVariableDeclarationList([Me.createVariableDeclaration(n,void 0,void 0,a)],2))}function GRe(t,n){return Me.createExportDeclaration(void 0,!1,t&&Me.createNamedExports(t),n===void 0?void 0:Me.createStringLiteral(n))}function TJ(t,n){return{newImports:t,useSitesToUnqualify:n}}var oIe="correctQualifiedNameToIndexedAccessType",yie=[j.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code];Cf({errorCodes:yie,getCodeActions(t){let n=KRe(t.sourceFile,t.span.start);if(!n)return;let a=Gs.ChangeTracker.with(t,m=>eet(m,t.sourceFile,n)),u=`${n.left.text}["${n.right.text}"]`;return[Wd(oIe,a,[j.Rewrite_as_the_indexed_access_type_0,u],oIe,j.Rewrite_all_as_indexed_access_types)]},fixIds:[oIe],getAllCodeActions:t=>$_(t,yie,(n,a)=>{let u=KRe(a.file,a.start);u&&eet(n,a.file,u)})});function KRe(t,n){let a=go(wc(t,n),tS);return Se.assert(!!a,"Expected position to be owned by a qualified name."),Ai(a.left)?a:void 0}function eet(t,n,a){let u=a.right.text,m=Me.createIndexedAccessTypeNode(Me.createTypeReferenceNode(a.left,void 0),Me.createLiteralTypeNode(Me.createStringLiteral(u)));t.replaceNode(n,a,m)}var XRe=[j.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],YRe="convertToTypeOnlyExport";Cf({errorCodes:XRe,getCodeActions:function(n){let a=Gs.ChangeTracker.with(n,u=>ZRe(u,QRe(n.span,n.sourceFile),n));if(a.length)return[Wd(YRe,a,j.Convert_to_type_only_export,YRe,j.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[YRe],getAllCodeActions:function(n){let a=new Map;return $_(n,XRe,(u,m)=>{let g=QRe(m,n.sourceFile);g&&HC(a,pp(g.parent.parent))&&ZRe(u,g,n)})}});function QRe(t,n){return ac(wc(n,t.start).parent,X0)}function ZRe(t,n,a){if(!n)return;let u=n.parent,m=u.parent,g=H1t(n,a);if(g.length===u.elements.length)t.insertModifierBefore(a.sourceFile,156,u);else{let v=Me.updateExportDeclaration(m,m.modifiers,!1,Me.updateNamedExports(u,Qn(u.elements,k=>!dr(g,k))),m.moduleSpecifier,void 0),x=Me.createExportDeclaration(void 0,!0,Me.createNamedExports(g),m.moduleSpecifier,void 0);t.replaceNode(a.sourceFile,m,v,{leadingTriviaOption:Gs.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Gs.TrailingTriviaOption.Exclude}),t.insertNodeAfter(a.sourceFile,m,x)}}function H1t(t,n){let a=t.parent;if(a.elements.length===1)return a.elements;let u=Qte(Cx(a),n.program.getSemanticDiagnostics(n.sourceFile,n.cancellationToken));return Qn(a.elements,m=>{var g;return m===t||((g=yle(m,u))==null?void 0:g.code)===XRe[0]})}var tet=[j._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code,j._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],e5e="convertToTypeOnlyImport";Cf({errorCodes:tet,getCodeActions:function(n){var a;let u=iet(n.sourceFile,n.span.start);if(u){let m=Gs.ChangeTracker.with(n,x=>Bye(x,n.sourceFile,u)),g=u.kind===276&&Dd(u.parent.parent.parent)&&sIe(u,n.sourceFile,n.program)?Gs.ChangeTracker.with(n,x=>Bye(x,n.sourceFile,u.parent.parent.parent)):void 0,v=Wd(e5e,m,u.kind===276?[j.Use_type_0,((a=u.propertyName)==null?void 0:a.text)??u.name.text]:j.Use_import_type,e5e,j.Fix_all_with_type_only_imports);return En(g)?[rD(e5e,g,j.Use_import_type),v]:[v]}},fixIds:[e5e],getAllCodeActions:function(n){let a=new Set;return $_(n,tet,(u,m)=>{let g=iet(m.file,m.start);g?.kind===272&&!a.has(g)?(Bye(u,m.file,g),a.add(g)):g?.kind===276&&Dd(g.parent.parent.parent)&&!a.has(g.parent.parent.parent)&&sIe(g,m.file,n.program)?(Bye(u,m.file,g.parent.parent.parent),a.add(g.parent.parent.parent)):g?.kind===276&&Bye(u,m.file,g)})}});function iet(t,n){let{parent:a}=wc(t,n);return eg(a)||Dd(a)&&a.importClause?a:void 0}function sIe(t,n,a){if(t.parent.parent.name)return!1;let u=t.parent.elements.filter(g=>!g.isTypeOnly);if(u.length===1)return!0;let m=a.getTypeChecker();for(let g of u)if(Wm.Core.eachSymbolReferenceInFile(g.name,m,n,x=>{let k=m.getSymbolAtLocation(x);return!!k&&m.symbolIsValue(k)||!q3(x)}))return!1;return!0}function Bye(t,n,a){var u;if(eg(a))t.replaceNode(n,a,Me.updateImportSpecifier(a,!0,a.propertyName,a.name));else{let m=a.importClause;if(m.name&&m.namedBindings)t.replaceNodeWithNodes(n,a,[Me.createImportDeclaration(g_(a.modifiers,!0),Me.createImportClause(!0,mp(m.name,!0),void 0),mp(a.moduleSpecifier,!0),mp(a.attributes,!0)),Me.createImportDeclaration(g_(a.modifiers,!0),Me.createImportClause(!0,void 0,mp(m.namedBindings,!0)),mp(a.moduleSpecifier,!0),mp(a.attributes,!0))]);else{let g=((u=m.namedBindings)==null?void 0:u.kind)===275?Me.updateNamedImports(m.namedBindings,$s(m.namedBindings.elements,x=>Me.updateImportSpecifier(x,!1,x.propertyName,x.name))):m.namedBindings,v=Me.updateImportDeclaration(a,a.modifiers,Me.updateImportClause(m,!0,m.name,g),a.moduleSpecifier,a.attributes);t.replaceNode(n,a,v)}}}var t5e="convertTypedefToType",jye=[j.JSDoc_typedef_may_be_converted_to_TypeScript_type.code];Cf({fixIds:[t5e],errorCodes:jye,getCodeActions(t){let n=fO(t.host,t.formatContext.options),a=wc(t.sourceFile,t.span.start);if(!a)return;let u=Gs.ChangeTracker.with(t,m=>i5e(m,a,t.sourceFile,n));if(u.length>0)return[Wd(t5e,u,j.Convert_typedef_to_TypeScript_type,t5e,j.Convert_all_typedef_to_TypeScript_types)]},getAllCodeActions:t=>$_(t,jye,(n,a)=>{let u=fO(t.host,t.formatContext.options),m=wc(a.file,a.start);m&&i5e(n,m,a.file,u,!0)})});function i5e(t,n,a,u,m=!1){if(!fM(n))return;let g=yzt(n);if(!g)return;let v=n.parent,{leftSibling:x,rightSibling:k}=U1t(n),T=v.getStart(),I="";!x&&v.comment&&(T=net(v,v.getStart(),n.getStart()),I=`${u} */${u}`),x&&(m&&fM(x)?(T=n.getStart(),I=""):(T=net(v,x.getStart(),n.getStart()),I=`${u} */${u}`));let A=v.getEnd(),M="";k&&(m&&fM(k)?(A=k.getStart(),M=`${u}${u}`):(A=k.getStart(),M=`${u}/**${u} * `)),t.replaceRange(a,{pos:T,end:A},g,{prefix:I,suffix:M})}function U1t(t){let n=t.parent,a=n.getChildCount()-1,u=n.getChildren().findIndex(v=>v.getStart()===t.getStart()&&v.getEnd()===t.getEnd()),m=u>0?n.getChildAt(u-1):void 0,g=u0;m--)if(!/[*/\s]/.test(u.substring(m-1,m)))return n+m;return a}function yzt(t){var n;let{typeExpression:a}=t;if(!a)return;let u=(n=t.name)==null?void 0:n.getText();if(u){if(a.kind===322)return J1t(u,a);if(a.kind===309)return vzt(u,a)}}function J1t(t,n){let a=q1t(n);if(En(a))return Me.createInterfaceDeclaration(void 0,t,void 0,void 0,a)}function vzt(t,n){let a=mp(n.type);if(a)return Me.createTypeAliasDeclaration(void 0,Me.createIdentifier(t),void 0,a)}function q1t(t){let n=t.jsDocPropertyTags;return En(n)?Dc(n,u=>{var m;let g=bzt(u),v=(m=u.typeExpression)==null?void 0:m.type,x=u.isBracketed,k;if(v&&G5(v)){let T=q1t(v);k=Me.createTypeLiteralNode(T)}else v&&(k=mp(v));if(k&&g){let T=x?Me.createToken(58):void 0;return Me.createPropertySignature(void 0,g,T,k)}}):void 0}function bzt(t){return t.name.kind===80?t.name.text:t.name.right.text}function $1t(t){return Gx(t)?za(t.jsDoc,n=>{var a;return(a=n.tags)==null?void 0:a.filter(u=>fM(u))}):[]}var ret="convertLiteralTypeToMappedType",G1t=[j._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code];Cf({errorCodes:G1t,getCodeActions:function(n){let{sourceFile:a,span:u}=n,m=n5e(a,u.start);if(!m)return;let{name:g,constraint:v}=m,x=Gs.ChangeTracker.with(n,k=>oet(k,a,m));return[Wd(ret,x,[j.Convert_0_to_1_in_0,v,g],ret,j.Convert_all_type_literals_to_mapped_type)]},fixIds:[ret],getAllCodeActions:t=>$_(t,G1t,(n,a)=>{let u=n5e(a.file,a.start);u&&oet(n,a.file,u)})});function n5e(t,n){let a=wc(t,n);if(Ai(a)){let u=$d(a.parent.parent,hx),m=a.getText(t);return{container:$d(u.parent,Im),typeNode:u.type,constraint:m,name:m==="K"?"P":"K"}}}function oet(t,n,{container:a,typeNode:u,constraint:m,name:g}){t.replaceNode(n,a,Me.createMappedTypeNode(void 0,Me.createTypeParameterDeclaration(void 0,g,Me.createTypeReferenceNode(m)),void 0,void 0,u,void 0))}var set=[j.Class_0_incorrectly_implements_interface_1.code,j.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],r5e="fixClassIncorrectlyImplementsInterface";Cf({errorCodes:set,getCodeActions(t){let{sourceFile:n,span:a}=t,u=aet(n,a.start);return Dc(F3(u),m=>{let g=Gs.ChangeTracker.with(t,v=>cet(t,m,n,u,v,t.preferences));return g.length===0?void 0:Wd(r5e,g,[j.Implement_interface_0,m.getText(n)],r5e,j.Implement_all_unimplemented_interfaces)})},fixIds:[r5e],getAllCodeActions(t){let n=new Map;return $_(t,set,(a,u)=>{let m=aet(u.file,u.start);if(HC(n,pp(m)))for(let g of F3(m))cet(t,g,u.file,m,a,t.preferences)})}});function aet(t,n){return Se.checkDefined(vy(wc(t,n)),"There should be a containing class")}function o5e(t){return!t.valueDeclaration||!(A_(t.valueDeclaration)&2)}function cet(t,n,a,u,m,g){let v=t.program.getTypeChecker(),x=K1t(u,v),k=v.getTypeAtLocation(n),I=v.getPropertiesOfType(k).filter(wv(o5e,$=>!x.has($.escapedName))),A=v.getTypeAtLocation(u),M=jt(u.members,$=>yl($));A.getNumberIndexType()||H(k,1),A.getStringIndexType()||H(k,0);let R=E9(a,t.program,g,t.host);EJ(u,I,a,t,g,R,$=>U(a,u,$)),R.writeFixes(m);function H($,K){let re=v.getIndexInfoOfType($,K);re&&U(a,u,v.indexInfoToIndexSignatureDeclaration(re,u,void 0,void 0,AX(t)))}function U($,K,re){M?m.insertNodeAfter($,M,re):m.insertMemberAtStart($,K,re)}}function K1t(t,n){let a=HE(t);if(!a)return Au();let u=n.getTypeAtLocation(a),m=n.getPropertiesOfType(u);return Au(m.filter(o5e))}var uet="import",X1t="fixMissingImport",det=[j.Cannot_find_name_0.code,j.Cannot_find_name_0_Did_you_mean_1.code,j.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,j.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,j.Cannot_find_namespace_0.code,j._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,j._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,j.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code,j._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code,j.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery.code,j.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later.code,j.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom.code,j.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig.code,j.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code,j.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig.code,j.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha.code,j.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode.code,j.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig.code,j.Cannot_find_namespace_0_Did_you_mean_1.code];Cf({errorCodes:det,getCodeActions(t){let{errorCode:n,preferences:a,sourceFile:u,span:m,program:g}=t,v=ibt(t,n,m.start,!0);if(v)return v.map(({fix:x,symbolName:k,errorIdentifierText:T})=>yet(t,u,k,x,k!==T,g,a))},fixIds:[X1t],getAllCodeActions:t=>{let{sourceFile:n,program:a,preferences:u,host:m,cancellationToken:g}=t,v=fet(n,a,!0,u,m,g);return wJ(t,det,x=>v.addImportFromDiagnostic(x,t)),wX(Gs.ChangeTracker.with(t,v.writeFixes))}});function E9(t,n,a,u,m){return fet(t,n,!1,a,u,m)}function fet(t,n,a,u,m,g){let v=n.getCompilerOptions(),x=[],k=[],T=new Map,I=new Set,A=new Set,M=new Map;return{addImportFromDiagnostic:U,addImportFromExportedSymbol:$,writeFixes:ne,hasFixes:_e,addImportForUnresolvedIdentifier:H,addImportForNonExistentExport:K,removeExistingImport:re,addVerbatimImport:R};function R(ae){A.add(ae)}function H(ae,le,Ee){let xe=rbt(ae,le,Ee);!xe||!xe.length||X(of(xe))}function U(ae,le){let Ee=ibt(le,ae.code,ae.start,a);!Ee||!Ee.length||X(of(Ee))}function $(ae,le,Ee){var xe,be;let Le=Se.checkDefined(ae.parent),fe=Zte(ae,h_(v)),we=n.getTypeChecker(),Ae=we.getMergedSymbol(ym(ae,we)),Ge=_et(t,Ae,fe,Le,!1,n,m,u,g);if(!Ge){Se.assert((xe=u.autoImportFileExcludePatterns)==null?void 0:xe.length);return}let he=lIe(t,n),Oe=Q1t(t,Ge,n,void 0,!!le,he,m,u);if(Oe){let Re=((be=ac(Ee?.name,Ai))==null?void 0:be.text)??fe;Ee&&L7(Ee)&&(Oe.kind===3||Oe.kind===2)&&Oe.addAsTypeOnly===1&&(Oe={...Oe,addAsTypeOnly:2}),X({fix:Oe,symbolName:Re??fe,errorIdentifierText:void 0})}}function K(ae,le,Ee,xe,be){let Le=n.getSourceFile(le),fe=lIe(t,n);if(Le&&Le.symbol){let{fixes:we}=Wye([{exportKind:Ee,isFromPackageJson:!1,moduleFileName:le,moduleSymbol:Le.symbol,targetFlags:xe}],void 0,be,fe,n,t,m,u);we.length&&X({fix:we[0],symbolName:ae,errorIdentifierText:ae})}else{let we=_O(le,99,n,m),Ae=cF.getLocalModuleSpecifierBetweenFileNames(t,le,v,XW(n,m),u),Ge=a5e(we,Ee,n),he=s5e(be,!0,void 0,xe,n.getTypeChecker(),v);X({fix:{kind:3,moduleSpecifierKind:"relative",moduleSpecifier:Ae,importKind:Ge,addAsTypeOnly:he,useRequire:fe},symbolName:ae,errorIdentifierText:ae})}}function re(ae){ae.kind===273&&Se.assertIsDefined(ae.name,"ImportClause should have a name if it's being removed"),I.add(ae)}function X(ae){var le,Ee;let{fix:xe,symbolName:be}=ae;switch(xe.kind){case 0:x.push(xe);break;case 1:k.push(xe);break;case 2:{let{importClauseOrBindingPattern:Ae,importKind:Ge,addAsTypeOnly:he}=xe,Oe=T.get(Ae);if(Oe||T.set(Ae,Oe={importClauseOrBindingPattern:Ae,defaultImport:void 0,namedImports:new Map}),Ge===0){let Re=Oe?.namedImports.get(be);Oe.namedImports.set(be,Le(Re,he))}else Se.assert(Oe.defaultImport===void 0||Oe.defaultImport.name===be,"(Add to Existing) Default import should be missing or match symbolName"),Oe.defaultImport={name:be,addAsTypeOnly:Le((le=Oe.defaultImport)==null?void 0:le.addAsTypeOnly,he)};break}case 3:{let{moduleSpecifier:Ae,importKind:Ge,useRequire:he,addAsTypeOnly:Oe}=xe,Re=fe(Ae,Ge,he,Oe);switch(Se.assert(Re.useRequire===he,"(Add new) Tried to add an `import` and a `require` for the same module"),Ge){case 1:Se.assert(Re.defaultImport===void 0||Re.defaultImport.name===be,"(Add new) Default import should be missing or match symbolName"),Re.defaultImport={name:be,addAsTypeOnly:Le((Ee=Re.defaultImport)==null?void 0:Ee.addAsTypeOnly,Oe)};break;case 0:let $e=(Re.namedImports||(Re.namedImports=new Map)).get(be);Re.namedImports.set(be,Le($e,Oe));break;case 3:if(v.verbatimModuleSyntax){let Ke=(Re.namedImports||(Re.namedImports=new Map)).get(be);Re.namedImports.set(be,Le(Ke,Oe))}else Se.assert(Re.namespaceLikeImport===void 0||Re.namespaceLikeImport.name===be,"Namespacelike import shoudl be missing or match symbolName"),Re.namespaceLikeImport={importKind:Ge,name:be,addAsTypeOnly:Oe};break;case 2:Se.assert(Re.namespaceLikeImport===void 0||Re.namespaceLikeImport.name===be,"Namespacelike import shoudl be missing or match symbolName"),Re.namespaceLikeImport={importKind:Ge,name:be,addAsTypeOnly:Oe};break}break}case 4:break;default:Se.assertNever(xe,`fix wasn't never - got kind ${xe.kind}`)}function Le(Ae,Ge){return Math.max(Ae??0,Ge)}function fe(Ae,Ge,he,Oe){let Re=we(Ae,!0),$e=we(Ae,!1),Ke=M.get(Re),qe=M.get($e),rt={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:he};return Ge===1&&Oe===2?Ke||(M.set(Re,rt),rt):Oe===1&&(Ke||qe)?Ke||qe:qe||(M.set($e,rt),rt)}function we(Ae,Ge){return`${Ge?1:0}|${Ae}`}}function ne(ae,le){var Ee,xe;let be;Yx(t)&&t.imports.length===0&&le!==void 0?be=le:be=Nk(t,u);for(let we of x)bet(ae,t,we);for(let we of k)xet(ae,t,we,be);let Le;if(I.size){Se.assert(Yx(t),"Cannot remove imports from a future source file");let we=new Set(Dc([...I],Re=>go(Re,Dd))),Ae=new Set(Dc([...I],Re=>go(Re,AH))),Ge=[...we].filter(Re=>{var $e,Ke,qe;return!T.has(Re.importClause)&&(!(($e=Re.importClause)!=null&&$e.name)||I.has(Re.importClause))&&(!ac((Ke=Re.importClause)==null?void 0:Ke.namedBindings,ZE)||I.has(Re.importClause.namedBindings))&&(!ac((qe=Re.importClause)==null?void 0:qe.namedBindings,_p)||Yt(Re.importClause.namedBindings.elements,rt=>I.has(rt)))}),he=[...Ae].filter(Re=>(Re.name.kind!==206||!T.has(Re.name))&&(Re.name.kind!==206||Yt(Re.name.elements,$e=>I.has($e)))),Oe=[...we].filter(Re=>{var $e,Ke;return(($e=Re.importClause)==null?void 0:$e.namedBindings)&&Ge.indexOf(Re)===-1&&!((Ke=T.get(Re.importClause))!=null&&Ke.namedImports)&&(Re.importClause.namedBindings.kind===274||Yt(Re.importClause.namedBindings.elements,qe=>I.has(qe)))});for(let Re of[...Ge,...he])ae.delete(t,Re);for(let Re of Oe)ae.replaceNode(t,Re.importClause,Me.updateImportClause(Re.importClause,Re.importClause.isTypeOnly,Re.importClause.name,void 0));for(let Re of I){let $e=go(Re,Dd);$e&&Ge.indexOf($e)===-1&&Oe.indexOf($e)===-1?Re.kind===273?ae.delete(t,Re.name):(Se.assert(Re.kind===276,"NamespaceImport should have been handled earlier"),(Ee=T.get($e.importClause))!=null&&Ee.namedImports?(Le??(Le=new Set)).add(Re):ae.delete(t,Re)):Re.kind===208?(xe=T.get(Re.parent))!=null&&xe.namedImports?(Le??(Le=new Set)).add(Re):ae.delete(t,Re):Re.kind===271&&ae.delete(t,Re)}}T.forEach(({importClauseOrBindingPattern:we,defaultImport:Ae,namedImports:Ge})=>{vet(ae,t,we,Ae,tc(Ge.entries(),([he,Oe])=>({addAsTypeOnly:Oe,name:he})),Le,u)});let fe;M.forEach(({useRequire:we,defaultImport:Ae,namedImports:Ge,namespaceLikeImport:he},Oe)=>{let Re=Oe.slice(2),Ke=(we?_Ie:f5e)(Re,be,Ae,Ge&&tc(Ge.entries(),([qe,rt])=>({addAsTypeOnly:rt,name:qe})),he,v,u);fe=pu(fe,Ke)}),fe=pu(fe,se()),fe&&B7e(ae,t,fe,!0,u)}function se(){if(!A.size)return;let ae=new Set(Dc([...A],Ee=>go(Ee,Dd))),le=new Set(Dc([...A],Ee=>go(Ee,lb)));return[...Dc([...A],Ee=>Ee.kind===271?mp(Ee,!0):void 0),...[...ae].map(Ee=>{var xe;return A.has(Ee)?mp(Ee,!0):mp(Me.updateImportDeclaration(Ee,Ee.modifiers,Ee.importClause&&Me.updateImportClause(Ee.importClause,Ee.importClause.isTypeOnly,A.has(Ee.importClause)?Ee.importClause.name:void 0,A.has(Ee.importClause.namedBindings)?Ee.importClause.namedBindings:(xe=ac(Ee.importClause.namedBindings,_p))!=null&&xe.elements.some(be=>A.has(be))?Me.updateNamedImports(Ee.importClause.namedBindings,Ee.importClause.namedBindings.elements.filter(be=>A.has(be))):void 0),Ee.moduleSpecifier,Ee.attributes),!0)}),...[...le].map(Ee=>A.has(Ee)?mp(Ee,!0):mp(Me.updateVariableStatement(Ee,Ee.modifiers,Me.updateVariableDeclarationList(Ee.declarationList,Dc(Ee.declarationList.declarations,xe=>A.has(xe)?xe:Me.updateVariableDeclaration(xe,xe.name.kind===206?Me.updateObjectBindingPattern(xe.name,xe.name.elements.filter(be=>A.has(be))):xe.name,xe.exclamationToken,xe.type,xe.initializer)))),!0))]}function _e(){return x.length>0||k.length>0||T.size>0||M.size>0||A.size>0||I.size>0}}function _z(t,n,a,u){let m=bJ(t,u,a),g=cIe(t,n);return{getModuleSpecifierForBestExportInfo:v};function v(x,k,T,I){let{fixes:A,computedWithoutCacheCount:M}=Wye(x,k,T,!1,n,t,a,u,g,I),R=met(A,t,n,m,a,u);return R&&{...R,computedWithoutCacheCount:M}}}function Y1t(t,n,a,u,m,g,v,x,k,T,I,A){let M;a?(M=Q0e(u,v,x,I,A).get(u.path,a),Se.assertIsDefined(M,"Some exportInfo should match the specified exportMapKey")):(M=ZQ(B2(n.name))?[ebt(t,m,n,x,v)]:_et(u,t,m,n,g,x,v,I,A),Se.assertIsDefined(M,"Some exportInfo should match the specified symbol / moduleSymbol"));let R=lIe(u,x),H=q3(wc(u,T)),U=Se.checkDefined(Q1t(u,M,x,T,H,R,v,I));return{moduleSpecifier:U.moduleSpecifier,codeAction:Z1t(yet({host:v,formatContext:k,preferences:I},u,m,U,!1,x,I))}}function Szt(t,n,a,u,m,g){let v=a.getCompilerOptions(),x=N6(c5e(t,a.getTypeChecker(),n,v)),k=cbt(t,n,x,a),T=x!==n.text;return k&&Z1t(yet({host:u,formatContext:m,preferences:g},t,x,k,T,a,g))}function Q1t(t,n,a,u,m,g,v,x){let k=bJ(t,x,v);return met(Wye(n,u,m,g,a,t,v,x).fixes,t,a,k,v,x)}function Z1t({description:t,changes:n,commands:a}){return{description:t,changes:n,commands:a}}function _et(t,n,a,u,m,g,v,x,k){let T=pet(g,v),I=x.autoImportFileExcludePatterns&&Y0e(v,x),A=g.getTypeChecker().getMergedSymbol(u),M=I&&A.declarations&&Kp(A,307),R=M&&I(M);return Q0e(t,v,g,x,k).search(t.path,m,H=>H===a,H=>{if(T(H[0].isFromPackageJson).getMergedSymbol(ym(H[0].symbol,T(H[0].isFromPackageJson)))===n&&(R||H.some(U=>U.moduleSymbol===u||U.symbol.parent===u)))return H})}function ebt(t,n,a,u,m){var g,v;let x=T(u.getTypeChecker(),!1);if(x)return x;let k=(v=(g=m.getPackageJsonAutoImportProvider)==null?void 0:g.call(m))==null?void 0:v.getTypeChecker();return Se.checkDefined(k&&T(k,!0),"Could not find symbol in specified module for code actions");function T(I,A){let M=aie(a,I);if(M&&ym(M.symbol,I)===t)return{symbol:M.symbol,moduleSymbol:a,moduleFileName:void 0,exportKind:M.exportKind,targetFlags:ym(t,I).flags,isFromPackageJson:A};let R=I.tryGetMemberInModuleExportsAndProperties(n,a);if(R&&ym(R,I)===t)return{symbol:R,moduleSymbol:a,moduleFileName:void 0,exportKind:0,targetFlags:ym(t,I).flags,isFromPackageJson:A}}}function Wye(t,n,a,u,m,g,v,x,k=Yx(g)?cIe(g,m):void 0,T){let I=m.getTypeChecker(),A=k?za(t,k.getImportsForExportInfo):F,M=n!==void 0&&xzt(A,n),R=Czt(A,a,I,m.getCompilerOptions());if(R)return{computedWithoutCacheCount:0,fixes:[...M?[M]:F,R]};let{fixes:H,computedWithoutCacheCount:U=0}=tbt(t,A,m,g,n,a,u,v,x,T);return{computedWithoutCacheCount:U,fixes:[...M?[M]:F,...H]}}function xzt(t,n){return Je(t,({declaration:a,importKind:u})=>{var m;if(u!==0)return;let g=aIe(a),v=g&&((m=J7(a))==null?void 0:m.text);if(v)return{kind:0,namespacePrefix:g,usagePosition:n,moduleSpecifierKind:void 0,moduleSpecifier:v}})}function aIe(t){var n,a,u;switch(t.kind){case 260:return(n=ac(t.name,Ai))==null?void 0:n.text;case 271:return t.name.text;case 351:case 272:return(u=ac((a=t.importClause)==null?void 0:a.namedBindings,ZE))==null?void 0:u.name.text;default:return Se.assertNever(t)}}function s5e(t,n,a,u,m,g){return t?a&&g.verbatimModuleSyntax&&(!(u&111551)||m.getTypeOnlyAliasDeclaration(a))?2:1:4}function Czt(t,n,a,u){let m;for(let v of t){let x=g(v);if(!x)continue;let k=L7(x.importClauseOrBindingPattern);if(x.addAsTypeOnly!==4&&k||x.addAsTypeOnly===4&&!k)return x;m??(m=x)}return m;function g({declaration:v,importKind:x,symbol:k,targetFlags:T}){if(x===3||x===2||v.kind===271)return;if(v.kind===260)return(x===0||x===1)&&v.name.kind===206?{kind:2,importClauseOrBindingPattern:v.name,importKind:x,moduleSpecifierKind:void 0,moduleSpecifier:v.initializer.arguments[0].text,addAsTypeOnly:4}:void 0;let{importClause:I}=v;if(!I||!i_(v.moduleSpecifier))return;let{name:A,namedBindings:M}=I;if(I.isTypeOnly&&!(x===0&&M))return;let R=s5e(n,!1,k,T,a,u);if(!(x===1&&(A||R===2&&M))&&!(x===0&&M?.kind===274))return{kind:2,importClauseOrBindingPattern:I,importKind:x,moduleSpecifierKind:void 0,moduleSpecifier:v.moduleSpecifier.text,addAsTypeOnly:R}}}function cIe(t,n){let a=n.getTypeChecker(),u;for(let m of t.imports){let g=pG(m);if(AH(g.parent)){let v=a.resolveExternalModuleName(m);v&&(u||(u=Hb())).add(Nf(v),g.parent)}else if(g.kind===272||g.kind===271||g.kind===351){let v=a.getSymbolAtLocation(m);v&&(u||(u=Hb())).add(Nf(v),g)}}return{getImportsForExportInfo:({moduleSymbol:m,exportKind:g,targetFlags:v,symbol:x})=>{let k=u?.get(Nf(m));if(!k||$v(t)&&!(v&111551)&&!Yt(k,cT))return F;let T=a5e(t,g,n);return k.map(I=>({declaration:I,importKind:T,symbol:x,targetFlags:v}))}}}function lIe(t,n){if(!eL(t.fileName))return!1;if(t.commonJsModuleIndicator&&!t.externalModuleIndicator)return!0;if(t.externalModuleIndicator&&!t.commonJsModuleIndicator)return!1;let a=n.getCompilerOptions();if(a.configFile)return b1(a)<5;if(_5e(t,n)===1)return!0;if(_5e(t,n)===99)return!1;for(let u of n.getSourceFiles())if(!(u===t||!$v(u)||n.isSourceFileFromExternalLibrary(u))){if(u.commonJsModuleIndicator&&!u.externalModuleIndicator)return!0;if(u.externalModuleIndicator&&!u.commonJsModuleIndicator)return!1}return!0}function pet(t,n){return l_(a=>a?n.getPackageJsonAutoImportProvider().getTypeChecker():t.getTypeChecker())}function uIe(t,n,a,u,m,g,v,x,k){let T=eL(n.fileName),I=t.getCompilerOptions(),A=XW(t,v),M=pet(t,v),R=S1(I),H=OM(R),U=k?re=>cF.tryGetModuleSpecifiersFromCache(re.moduleSymbol,n,A,x):(re,X)=>cF.getModuleSpecifiersWithCacheInfo(re.moduleSymbol,X,I,n,A,x,void 0,!0),$=0,K=za(g,(re,X)=>{let ne=M(re.isFromPackageJson),{computedWithoutCache:se,moduleSpecifiers:_e,kind:ae}=U(re,ne)??{},le=!!(re.targetFlags&111551),Ee=s5e(u,!0,re.symbol,re.targetFlags,ne,I);return $+=se?1:0,Dc(_e,xe=>{if(H&&vM(xe))return;if(!le&&T&&a!==void 0)return{kind:1,moduleSpecifierKind:ae,moduleSpecifier:xe,usagePosition:a,exportInfo:re,isReExport:X>0};let be=a5e(n,re.exportKind,t),Le;if(a!==void 0&&be===3&&re.exportKind===0){let fe=ne.resolveExternalModuleSymbol(re.moduleSymbol),we;fe!==re.moduleSymbol&&(we=_X(fe,ne,h_(I),ps)),we||(we=eie(re.moduleSymbol,h_(I),!1)),Le={namespacePrefix:we,usagePosition:a}}return{kind:3,moduleSpecifierKind:ae,moduleSpecifier:xe,importKind:be,useRequire:m,addAsTypeOnly:Ee,exportInfo:re,isReExport:X>0,qualification:Le}})});return{computedWithoutCacheCount:$,fixes:K}}function tbt(t,n,a,u,m,g,v,x,k,T){let I=Je(n,A=>kzt(A,g,v,a.getTypeChecker(),a.getCompilerOptions()));return I?{fixes:[I]}:uIe(a,u,m,g,v,t,x,k,T)}function kzt({declaration:t,importKind:n,symbol:a,targetFlags:u},m,g,v,x){var k;let T=(k=J7(t))==null?void 0:k.text;if(T){let I=g?4:s5e(m,!0,a,u,v,x);return{kind:3,moduleSpecifierKind:void 0,moduleSpecifier:T,importKind:n,addAsTypeOnly:I,useRequire:g}}}function ibt(t,n,a,u){let m=wc(t.sourceFile,a),g;if(n===j._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)g=Tzt(t,m);else if(Ai(m))if(n===j._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){let x=N6(c5e(t.sourceFile,t.program.getTypeChecker(),m,t.program.getCompilerOptions())),k=cbt(t.sourceFile,m,x,t.program);return k&&[{fix:k,symbolName:x,errorIdentifierText:m.text}]}else g=dIe(t,m,u);else return;let v=bJ(t.sourceFile,t.preferences,t.host);return g&&nbt(g,t.sourceFile,t.program,v,t.host,t.preferences)}function nbt(t,n,a,u,m,g){let v=x=>dd(x,m.getCurrentDirectory(),E4(m));return du(t,(x,k)=>QI(!!x.isJsxNamespaceFix,!!k.isJsxNamespaceFix)||m_(x.fix.kind,k.fix.kind)||obt(x.fix,k.fix,n,a,g,u.allowsImportingSpecifier,v))}function rbt(t,n,a){let u=dIe(t,n,a),m=bJ(t.sourceFile,t.preferences,t.host);return u&&nbt(u,t.sourceFile,t.program,m,t.host,t.preferences)}function met(t,n,a,u,m,g){if(En(t))return t[0].kind===0||t[0].kind===2?t[0]:t.reduce((v,x)=>obt(x,v,n,a,g,u.allowsImportingSpecifier,k=>dd(k,m.getCurrentDirectory(),E4(m)))===-1?x:v)}function obt(t,n,a,u,m,g,v){return t.kind!==0&&n.kind!==0?QI(n.moduleSpecifierKind!=="node_modules"||g(n.moduleSpecifier),t.moduleSpecifierKind!=="node_modules"||g(t.moduleSpecifier))||sbt(t,n,m)||abt(t.moduleSpecifier,n.moduleSpecifier,a,u)||QI(het(t,a.path,v),het(n,a.path,v))||O5(t.moduleSpecifier,n.moduleSpecifier):0}function sbt(t,n,a){return a.importModuleSpecifierPreference==="non-relative"||a.importModuleSpecifierPreference==="project-relative"?QI(t.moduleSpecifierKind==="relative",n.moduleSpecifierKind==="relative"):0}function het(t,n,a){var u;if(t.isReExport&&((u=t.exportInfo)!=null&&u.moduleFileName)&&wzt(t.exportInfo.moduleFileName)){let m=a(Cc(t.exportInfo.moduleFileName));return xl(n,m)}return!1}function wzt(t){return sg(t,[".js",".jsx",".d.ts",".ts",".tsx"],!0)==="index"}function abt(t,n,a,u){return xl(t,"node:")&&!xl(n,"node:")?rz(a,u)?-1:1:xl(n,"node:")&&!xl(t,"node:")?rz(a,u)?1:-1:0}function Tzt({sourceFile:t,program:n,host:a,preferences:u},m){let g=n.getTypeChecker(),v=Ezt(m,g);if(!v)return;let x=g.getAliasedSymbol(v),k=v.name,T=[{symbol:v,moduleSymbol:x,moduleFileName:void 0,exportKind:3,targetFlags:x.flags,isFromPackageJson:!1}],I=lIe(t,n);return Wye(T,void 0,!1,I,n,t,a,u).fixes.map(M=>{var R;return{fix:M,symbolName:k,errorIdentifierText:(R=ac(m,Ai))==null?void 0:R.text}})}function Ezt(t,n){let a=Ai(t)?n.getSymbolAtLocation(t):void 0;if(D5(a))return a;let{parent:u}=t;if(nv(u)&&u.tagName===t||cM(u)){let m=n.resolveName(n.getJsxNamespace(u),nv(u)?t:u,111551,!1);if(D5(m))return m}}function a5e(t,n,a,u){if(a.getCompilerOptions().verbatimModuleSyntax&&ubt(t,a)===1)return 3;switch(n){case 0:return 0;case 1:return 1;case 2:return Izt(t,a.getCompilerOptions(),!!u);case 3:return Dzt(t,a,!!u);default:return Se.assertNever(n)}}function Dzt(t,n,a){if(cU(n.getCompilerOptions()))return 1;let u=b1(n.getCompilerOptions());switch(u){case 2:case 1:case 3:return eL(t.fileName)&&(t.externalModuleIndicator||a)?2:3;case 4:case 5:case 6:case 7:case 99:case 0:case 200:return 2;case 100:case 199:return _5e(t,n)===99?2:3;default:return Se.assertNever(u,`Unexpected moduleKind ${u}`)}}function dIe({sourceFile:t,program:n,cancellationToken:a,host:u,preferences:m},g,v){let x=n.getTypeChecker(),k=n.getCompilerOptions();return za(c5e(t,x,g,k),T=>{if(T==="default")return;let I=q3(g),A=lIe(t,n),M=get(T,T8(g),m9(g),a,t,n,v,u,m);return tc(Ya(M.values(),R=>Wye(R,g.getStart(t),I,A,n,t,u,m).fixes),R=>({fix:R,symbolName:T,errorIdentifierText:g.text,isJsxNamespaceFix:T!==g.text}))})}function cbt(t,n,a,u){let m=u.getTypeChecker(),g=m.resolveName(a,n,111551,!0);if(!g)return;let v=m.getTypeOnlyAliasDeclaration(g);if(!(!v||Vo(v)!==t))return{kind:4,typeOnlyAliasDeclaration:v}}function c5e(t,n,a,u){let m=a.parent;if((nv(m)||I0(m))&&m.tagName===a&&QEe(u.jsx)){let g=n.getJsxNamespace(t);if(lbt(g,a,n))return!wG(a.text)&&!n.resolveName(a.text,a,111551,!1)?[a.text,g]:[g]}return[a.text]}function lbt(t,n,a){if(wG(n.text))return!0;let u=a.resolveName(t,n,111551,!0);return!u||En(u.declarations,j6)&&!(u.flags&111551)}function get(t,n,a,u,m,g,v,x,k){var T;let I=Hb(),A=bJ(m,k,x),M=(T=x.getModuleSpecifierCache)==null?void 0:T.call(x),R=l_(U=>XW(U?x.getPackageJsonAutoImportProvider():g,x));function H(U,$,K,re,X,ne){let se=R(ne);if($&&rie(X,m,$,k,A,se,M)||!$&&A.allowsImportingAmbientModule(U,se)||fX(m,B2(U.name))){let _e=X.getTypeChecker();I.add(V0e(K,_e).toString(),{symbol:K,moduleSymbol:U,moduleFileName:$?.fileName,exportKind:re,targetFlags:ym(K,_e).flags,isFromPackageJson:ne})}}return sie(g,x,k,v,(U,$,K,re)=>{let X=K.getTypeChecker();u.throwIfCancellationRequested();let ne=K.getCompilerOptions(),se=aie(U,X);se&&ket(X.getSymbolFlags(se.symbol),a)&&_X(se.symbol,X,h_(ne),(ae,le)=>(n?le??ae:ae)===t)&&H(U,$,se.symbol,se.exportKind,K,re);let _e=X.tryGetMemberInModuleExportsAndProperties(t,U);_e&&ket(X.getSymbolFlags(_e),a)&&H(U,$,_e,0,K,re)}),I}function Izt(t,n,a){let u=cU(n),m=eL(t.fileName);if(!m&&b1(n)>=5)return u?1:2;if(m)return t.externalModuleIndicator||a?u?1:2:3;for(let g of t.statements??F)if(pf(g)&&!Mm(g.moduleReference))return 3;return u?1:3}function yet(t,n,a,u,m,g,v){let x,k=Gs.ChangeTracker.with(t,T=>{x=Nzt(T,n,a,u,m,g,v)});return Wd(uet,k,x,X1t,j.Add_all_missing_imports)}function Nzt(t,n,a,u,m,g,v){let x=Nk(n,v);switch(u.kind){case 0:return bet(t,n,u),[j.Change_0_to_1,a,`${u.namespacePrefix}.${a}`];case 1:return xet(t,n,u,x),[j.Change_0_to_1,a,u5e(u.moduleSpecifier,x)+a];case 2:{let{importClauseOrBindingPattern:k,importKind:T,addAsTypeOnly:I,moduleSpecifier:A}=u;vet(t,n,k,T===1?{name:a,addAsTypeOnly:I}:void 0,T===0?[{name:a,addAsTypeOnly:I}]:F,void 0,v);let M=B2(A);return m?[j.Import_0_from_1,a,M]:[j.Update_import_from_0,M]}case 3:{let{importKind:k,moduleSpecifier:T,addAsTypeOnly:I,useRequire:A,qualification:M}=u,R=A?_Ie:f5e,H=k===1?{name:a,addAsTypeOnly:I}:void 0,U=k===0?[{name:a,addAsTypeOnly:I}]:void 0,$=k===2||k===3?{importKind:k,name:M?.namespacePrefix||a,addAsTypeOnly:I}:void 0;return B7e(t,n,R(T,x,H,U,$,g.getCompilerOptions(),v),!0,v),M&&bet(t,n,M),m?[j.Import_0_from_1,a,T]:[j.Add_import_from_0,T]}case 4:{let{typeOnlyAliasDeclaration:k}=u,T=Azt(t,k,g,n,v);return T.kind===276?[j.Remove_type_from_import_of_0_from_1,a,l5e(T.parent.parent)]:[j.Remove_type_from_import_declaration_from_0,l5e(T)]}default:return Se.assertNever(u,`Unexpected fix kind ${u.kind}`)}}function l5e(t){var n,a;return t.kind===271?((a=ac((n=ac(t.moduleReference,Zg))==null?void 0:n.expression,i_))==null?void 0:a.text)||t.moduleReference.getText():$d(t.parent.moduleSpecifier,Kf).text}function Azt(t,n,a,u,m){let g=a.getCompilerOptions(),v=g.verbatimModuleSyntax;switch(n.kind){case 276:if(n.isTypeOnly){if(n.parent.elements.length>1){let k=Me.updateImportSpecifier(n,!1,n.propertyName,n.name),{specifierComparer:T}=P9.getNamedImportSpecifierComparerWithDetection(n.parent.parent.parent,m,u),I=P9.getImportSpecifierInsertionIndex(n.parent.elements,k,T);if(I!==n.parent.elements.indexOf(n))return t.delete(u,n),t.insertImportSpecifierAtIndex(u,k,n.parent,I),n}return t.deleteRange(u,{pos:J6(n.getFirstToken()),end:J6(n.propertyName??n.name)}),n}else return Se.assert(n.parent.parent.isTypeOnly),x(n.parent.parent),n.parent.parent;case 273:return x(n),n;case 274:return x(n.parent),n.parent;case 271:return t.deleteRange(u,n.getChildAt(1)),n;default:Se.failBadSyntaxKind(n)}function x(k){var T;if(t.delete(u,ZW(k,u)),!g.allowImportingTsExtensions){let I=J7(k.parent),A=I&&((T=a.getResolvedModuleFromModuleSpecifier(I,u))==null?void 0:T.resolvedModule);if(A?.resolvedUsingTsExtension){let M=QB(I.text,hge(I.text,g));t.replaceNode(u,I,Me.createStringLiteral(M))}}if(v){let I=ac(k.namedBindings,_p);if(I&&I.elements.length>1){P9.getNamedImportSpecifierComparerWithDetection(k.parent,m,u).isSorted!==!1&&n.kind===276&&I.elements.indexOf(n)!==0&&(t.delete(u,n),t.insertImportSpecifierAtIndex(u,n,I,0));for(let M of I.elements)M!==n&&!M.isTypeOnly&&t.insertModifierBefore(u,156,M)}}}}function vet(t,n,a,u,m,g,v){var x;if(a.kind===206){if(g&&a.elements.some(A=>g.has(A))){t.replaceNode(n,a,Me.createObjectBindingPattern([...a.elements.filter(A=>!g.has(A)),...u?[Me.createBindingElement(void 0,"default",u.name)]:F,...m.map(A=>Me.createBindingElement(void 0,void 0,A.name))]));return}u&&I(a,u.name,"default");for(let A of m)I(a,A.name,void 0);return}let k=a.isTypeOnly&&En([u,...m],A=>A?.addAsTypeOnly===4),T=a.namedBindings&&((x=ac(a.namedBindings,_p))==null?void 0:x.elements);if(u&&(Se.assert(!a.name,"Cannot add a default import to an import clause that already has one"),t.insertNodeAt(n,a.getStart(n),Me.createIdentifier(u.name),{suffix:", "})),m.length){let{specifierComparer:A,isSorted:M}=P9.getNamedImportSpecifierComparerWithDetection(a.parent,v,n),R=du(m.map(H=>Me.createImportSpecifier((!a.isTypeOnly||k)&&fIe(H,v),void 0,Me.createIdentifier(H.name))),A);if(g)t.replaceNode(n,a.namedBindings,Me.updateNamedImports(a.namedBindings,du([...T.filter(H=>!g.has(H)),...R],A)));else if(T?.length&&M!==!1){let H=k&&T?Me.updateNamedImports(a.namedBindings,$s(T,U=>Me.updateImportSpecifier(U,!0,U.propertyName,U.name))).elements:T;for(let U of R){let $=P9.getImportSpecifierInsertionIndex(H,U,A);t.insertImportSpecifierAtIndex(n,U,a.namedBindings,$)}}else if(T?.length)for(let H of R)t.insertNodeInListAfter(n,Bu(T),H,T);else if(R.length){let H=Me.createNamedImports(R);a.namedBindings?t.replaceNode(n,a.namedBindings,H):t.insertNodeAfter(n,Se.checkDefined(a.name,"Import clause must have either named imports or a default import"),H)}}if(k&&(t.delete(n,ZW(a,n)),T))for(let A of T)t.insertModifierBefore(n,156,A);function I(A,M,R){let H=Me.createBindingElement(void 0,R,M);A.elements.length?t.insertNodeInListAfter(n,Bu(A.elements),H):t.replaceNode(n,A,Me.createObjectBindingPattern([H]))}}function bet(t,n,{namespacePrefix:a,usagePosition:u}){t.insertText(n,u,a+".")}function xet(t,n,{moduleSpecifier:a,usagePosition:u},m){t.insertText(n,u,u5e(a,m))}function u5e(t,n){let a=sle(n);return`import(${a}${t}${a}).`}function d5e({addAsTypeOnly:t}){return t===2}function fIe(t,n){return d5e(t)||!!n.preferTypeOnlyAutoImports&&t.addAsTypeOnly!==4}function f5e(t,n,a,u,m,g,v){let x=YW(t,n),k;if(a!==void 0||u?.length){let T=(!a||d5e(a))&&Yt(u,d5e)||(g.verbatimModuleSyntax||v.preferTypeOnlyAutoImports)&&a?.addAsTypeOnly!==4&&!En(u,I=>I.addAsTypeOnly===4);k=pu(k,vL(a&&Me.createIdentifier(a.name),u?.map(I=>Me.createImportSpecifier(!T&&fIe(I,v),void 0,Me.createIdentifier(I.name))),t,n,T))}if(m){let T=m.importKind===3?Me.createImportEqualsDeclaration(void 0,fIe(m,v),Me.createIdentifier(m.name),Me.createExternalModuleReference(x)):Me.createImportDeclaration(void 0,Me.createImportClause(fIe(m,v),void 0,Me.createNamespaceImport(Me.createIdentifier(m.name))),x,void 0);k=pu(k,T)}return Se.checkDefined(k)}function _Ie(t,n,a,u,m){let g=YW(t,n),v;if(a||u?.length){let x=u?.map(({name:T})=>Me.createBindingElement(void 0,void 0,T))||[];a&&x.unshift(Me.createBindingElement(void 0,"default",a.name));let k=Cet(Me.createObjectBindingPattern(x),g);v=pu(v,k)}if(m){let x=Cet(m.name,g);v=pu(v,x)}return Se.checkDefined(v)}function Cet(t,n){return Me.createVariableStatement(void 0,Me.createVariableDeclarationList([Me.createVariableDeclaration(typeof t=="string"?Me.createIdentifier(t):t,void 0,void 0,Me.createCallExpression(Me.createIdentifier("require"),void 0,[n]))],2))}function ket(t,n){return n===7?!0:n&1?!!(t&111551):n&2?!!(t&788968):n&4?!!(t&1920):!1}function _5e(t,n){return Yx(t)?n.getImpliedNodeFormatForEmit(t):uO(t,n.getCompilerOptions())}function ubt(t,n){return Yx(t)?n.getEmitModuleFormatOfFile(t):V4(t,n.getCompilerOptions())}var pIe="addMissingConstraint",wet=[j.Type_0_is_not_comparable_to_type_1.code,j.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,j.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,j.Type_0_is_not_assignable_to_type_1.code,j.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,j.Property_0_is_incompatible_with_index_signature.code,j.Property_0_in_type_1_is_not_assignable_to_type_2.code,j.Type_0_does_not_satisfy_the_constraint_1.code];Cf({errorCodes:wet,getCodeActions(t){let{sourceFile:n,span:a,program:u,preferences:m,host:g}=t,v=Tet(u,n,a);if(v===void 0)return;let x=Gs.ChangeTracker.with(t,k=>Eet(k,u,m,g,n,v));return[Wd(pIe,x,j.Add_extends_constraint,pIe,j.Add_extends_constraint_to_all_type_parameters)]},fixIds:[pIe],getAllCodeActions:t=>{let{program:n,preferences:a,host:u}=t,m=new Map;return wX(Gs.ChangeTracker.with(t,g=>{wJ(t,wet,v=>{let x=Tet(n,v.file,h1(v.start,v.length));if(x&&HC(m,pp(x.declaration)))return Eet(g,n,a,u,v.file,x)})}))}});function Tet(t,n,a){let u=jt(t.getSemanticDiagnostics(n),v=>v.start===a.start&&v.length===a.length);if(u===void 0||u.relatedInformation===void 0)return;let m=jt(u.relatedInformation,v=>v.code===j.This_type_parameter_might_need_an_extends_0_constraint.code);if(m===void 0||m.file===void 0||m.start===void 0||m.length===void 0)return;let g=Wit(m.file,h1(m.start,m.length));if(g!==void 0&&(Ai(g)&&Yp(g.parent)&&(g=g.parent),Yp(g))){if(K8(g.parent))return;let v=wc(n,a.start),x=t.getTypeChecker();return{constraint:Lzt(x,v)||Pzt(m.messageText),declaration:g,token:v}}}function Eet(t,n,a,u,m,g){let{declaration:v,constraint:x}=g,k=n.getTypeChecker();if(Yu(x))t.insertText(m,v.name.end,` extends ${x}`);else{let T=h_(n.getCompilerOptions()),I=AX({program:n,host:u}),A=E9(m,n,a,u),M=Uye(k,A,x,void 0,T,void 0,void 0,I);M&&(t.replaceNode(m,v,Me.updateTypeParameterDeclaration(v,void 0,v.name,M,v.default)),A.writeFixes(t))}}function Pzt(t){let[,n]=wN(t,` +`,0).match(/`extends (.*)`/)||[];return n}function Lzt(t,n){return Qa(n.parent)?t.getTypeArgumentConstraint(n.parent):(An(n)?t.getContextualType(n):void 0)||t.getTypeAtLocation(n)}var Det="fixOverrideModifier",pz="fixAddOverrideModifier",IX="fixRemoveOverrideModifier",Iet=[j.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,j.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,j.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,j.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,j.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,j.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,j.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,j.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,j.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],Net={[j.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:j.Add_override_modifier,fixId:pz,fixAllDescriptions:j.Add_all_missing_override_modifiers},[j.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:j.Add_override_modifier,fixId:pz,fixAllDescriptions:j.Add_all_missing_override_modifiers},[j.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:j.Remove_override_modifier,fixId:IX,fixAllDescriptions:j.Remove_all_unnecessary_override_modifiers},[j.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:j.Remove_override_modifier,fixId:IX,fixAllDescriptions:j.Remove_override_modifier},[j.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:j.Add_override_modifier,fixId:pz,fixAllDescriptions:j.Add_all_missing_override_modifiers},[j.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:j.Add_override_modifier,fixId:pz,fixAllDescriptions:j.Add_all_missing_override_modifiers},[j.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:j.Add_override_modifier,fixId:pz,fixAllDescriptions:j.Remove_all_unnecessary_override_modifiers},[j.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:j.Remove_override_modifier,fixId:IX,fixAllDescriptions:j.Remove_all_unnecessary_override_modifiers},[j.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:j.Remove_override_modifier,fixId:IX,fixAllDescriptions:j.Remove_all_unnecessary_override_modifiers}};Cf({errorCodes:Iet,getCodeActions:function(n){let{errorCode:a,span:u}=n,m=Net[a];if(!m)return F;let{descriptions:g,fixId:v,fixAllDescriptions:x}=m,k=Gs.ChangeTracker.with(n,T=>Aet(T,n,a,u.start));return[oD(Det,k,g,v,x)]},fixIds:[Det,pz,IX],getAllCodeActions:t=>$_(t,Iet,(n,a)=>{let{code:u,start:m}=a,g=Net[u];!g||g.fixId!==t.fixId||Aet(n,t,u,m)})});function Aet(t,n,a,u){switch(a){case j.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case j.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case j.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case j.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case j.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return Ozt(t,n.sourceFile,u);case j.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case j.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case j.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case j.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return Fzt(t,n.sourceFile,u);default:Se.fail("Unexpected error code: "+a)}}function Ozt(t,n,a){let u=Let(n,a);if($v(n)){t.addJSDocTags(n,u,[Me.createJSDocOverrideTag(Me.createIdentifier("override"))]);return}let m=u.modifiers||F,g=jt(m,oW),v=jt(m,Ni),x=jt(m,A=>P0e(A.kind)),k=mi(m,Cy),T=v?v.end:g?g.end:x?x.end:k?fd(n.text,k.end):u.getStart(n),I=x||g||v?{prefix:" "}:{suffix:" "};t.insertModifierAt(n,T,164,I)}function Fzt(t,n,a){let u=Let(n,a);if($v(n)){t.filterJSDocTags(n,u,voe(dM));return}let m=jt(u.modifiers,Il);Se.assertIsDefined(m),t.deleteModifier(n,m)}function Pet(t){switch(t.kind){case 176:case 172:case 174:case 177:case 178:return!0;case 169:return OC(t,t.parent);default:return!1}}function Let(t,n){let a=wc(t,n),u=go(a,m=>bc(m)?"quit":Pet(m));return Se.assert(u&&Pet(u)),u}var mIe="fixNoPropertyAccessFromIndexSignature",Oet=[j.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code];Cf({errorCodes:Oet,fixIds:[mIe],getCodeActions(t){let{sourceFile:n,span:a,preferences:u}=t,m=Met(n,a.start),g=Gs.ChangeTracker.with(t,v=>Fet(v,t.sourceFile,m,u));return[Wd(mIe,g,[j.Use_element_access_for_0,m.name.text],mIe,j.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:t=>$_(t,Oet,(n,a)=>Fet(n,a.file,Met(a.file,a.start),t.preferences))});function Fet(t,n,a,u){let m=Nk(n,u),g=Me.createStringLiteral(a.name.text,m===0);t.replaceNode(n,a,hH(a)?Me.createElementAccessChain(a.expression,a.questionDotToken,g):Me.createElementAccessExpression(a.expression,g))}function Met(t,n){return $d(wc(t,n).parent,ba)}var hIe="fixImplicitThis",Ret=[j.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];Cf({errorCodes:Ret,getCodeActions:function(n){let{sourceFile:a,program:u,span:m}=n,g,v=Gs.ChangeTracker.with(n,x=>{g=Bet(x,a,m.start,u.getTypeChecker())});return g?[Wd(hIe,v,g,hIe,j.Fix_all_implicit_this_errors)]:F},fixIds:[hIe],getAllCodeActions:t=>$_(t,Ret,(n,a)=>{Bet(n,a.file,a.start,t.program.getTypeChecker())})});function Bet(t,n,a,u){let m=wc(n,a);if(!H4(m))return;let g=Kb(m,!1,!1);if(!(!fp(g)&&!yd(g))&&!ul(Kb(g,!1,!1))){let v=Se.checkDefined(Np(g,100,n)),{name:x}=g,k=Se.checkDefined(g.body);return yd(g)?x&&Wm.Core.isSymbolReferencedInFile(x,u,n,k)?void 0:(t.delete(n,v),x&&t.delete(n,x),t.insertText(n,k.pos," =>"),[j.Convert_function_expression_0_to_arrow_function,x?x.text:q0e]):(t.replaceNode(n,v,Me.createToken(87)),t.insertText(n,x.end," = "),t.insertText(n,k.pos," =>"),[j.Convert_function_declaration_0_to_arrow_function,x.text])}}var gIe="fixImportNonExportedMember",jet=[j.Module_0_declares_1_locally_but_it_is_not_exported.code];Cf({errorCodes:jet,fixIds:[gIe],getCodeActions(t){let{sourceFile:n,span:a,program:u}=t,m=Wet(n,a.start,u);if(m===void 0)return;let g=Gs.ChangeTracker.with(t,v=>Mzt(v,u,m));return[Wd(gIe,g,[j.Export_0_from_module_1,m.exportName.node.text,m.moduleSpecifier],gIe,j.Export_all_referenced_locals)]},getAllCodeActions(t){let{program:n}=t;return wX(Gs.ChangeTracker.with(t,a=>{let u=new Map;wJ(t,jet,m=>{let g=Wet(m.file,m.start,n);if(g===void 0)return;let{exportName:v,node:x,moduleSourceFile:k}=g;if(Ole(k,v.isTypeOnly)===void 0&&pU(x))a.insertExportModifier(k,x);else{let T=u.get(k)||{typeOnlyExports:[],exports:[]};v.isTypeOnly?T.typeOnlyExports.push(v):T.exports.push(v),u.set(k,T)}}),u.forEach((m,g)=>{let v=Ole(g,!0);v&&v.isTypeOnly?(yIe(a,n,g,m.typeOnlyExports,v),yIe(a,n,g,m.exports,Ole(g,!1))):yIe(a,n,g,[...m.exports,...m.typeOnlyExports],v)})}))}});function Wet(t,n,a){var u,m;let g=wc(t,n);if(Ai(g)){let v=go(g,Dd);if(v===void 0)return;let x=Kf(v.moduleSpecifier)?v.moduleSpecifier:void 0;if(x===void 0)return;let k=(u=a.getResolvedModuleFromModuleSpecifier(x,t))==null?void 0:u.resolvedModule;if(k===void 0)return;let T=a.getSourceFile(k.resolvedFileName);if(T===void 0||xJ(a,T))return;let I=T.symbol,A=(m=ac(I.valueDeclaration,zE))==null?void 0:m.locals;if(A===void 0)return;let M=A.get(g.escapedText);if(M===void 0)return;let R=Rzt(M);return R===void 0?void 0:{exportName:{node:g,isTypeOnly:Xj(R)},node:R,moduleSourceFile:T,moduleSpecifier:x.text}}}function Mzt(t,n,{exportName:a,node:u,moduleSourceFile:m}){let g=Ole(m,a.isTypeOnly);g?zet(t,n,m,g,[a]):pU(u)?t.insertExportModifier(m,u):Vet(t,n,m,[a])}function yIe(t,n,a,u,m){Z(u)&&(m?zet(t,n,a,m,u):Vet(t,n,a,u))}function Ole(t,n){let a=u=>Qg(u)&&(n&&u.isTypeOnly||!u.isTypeOnly);return mi(t.statements,a)}function zet(t,n,a,u,m){let g=u.exportClause&&QT(u.exportClause)?u.exportClause.elements:Me.createNodeArray([]),v=!u.isTypeOnly&&!!($E(n.getCompilerOptions())||jt(g,x=>x.isTypeOnly));t.replaceNode(a,u,Me.updateExportDeclaration(u,u.modifiers,u.isTypeOnly,Me.createNamedExports(Me.createNodeArray([...g,...Het(m,v)],g.hasTrailingComma)),u.moduleSpecifier,u.attributes))}function Vet(t,n,a,u){t.insertNodeAtEndOfScope(a,a,Me.createExportDeclaration(void 0,!1,Me.createNamedExports(Het(u,$E(n.getCompilerOptions()))),void 0,void 0))}function Het(t,n){return Me.createNodeArray($i(t,a=>Me.createExportSpecifier(n&&a.isTypeOnly,void 0,a.node)))}function Rzt(t){if(t.valueDeclaration===void 0)return Ed(t.declarations);let n=t.valueDeclaration,a=$c(n)?ac(n.parent.parent,Zh):void 0;return a&&Z(a.declarationList.declarations)===1?a:n}var vIe="fixIncorrectNamedTupleSyntax",Bzt=[j.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,j.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code];Cf({errorCodes:Bzt,getCodeActions:function(n){let{sourceFile:a,span:u}=n,m=jzt(a,u.start),g=Gs.ChangeTracker.with(n,v=>Wzt(v,a,m));return[Wd(vIe,g,j.Move_labeled_tuple_element_modifiers_to_labels,vIe,j.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[vIe]});function jzt(t,n){let a=wc(t,n);return go(a,u=>u.kind===202)}function Wzt(t,n,a){if(!a)return;let u=a.type,m=!1,g=!1;for(;u.kind===190||u.kind===191||u.kind===196;)u.kind===190?m=!0:u.kind===191&&(g=!0),u=u.type;let v=Me.updateNamedTupleMember(a,a.dotDotDotToken||(g?Me.createToken(26):void 0),a.name,a.questionToken||(m?Me.createToken(58):void 0),u);v!==a&&t.replaceNode(n,a,v)}var Uet="fixSpelling",Jet=[j.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,j.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,j.Cannot_find_name_0_Did_you_mean_1.code,j.Could_not_find_name_0_Did_you_mean_1.code,j.Cannot_find_namespace_0_Did_you_mean_1.code,j.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,j.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,j._0_has_no_exported_member_named_1_Did_you_mean_2.code,j.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,j.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,j.No_overload_matches_this_call.code,j.Type_0_is_not_assignable_to_type_1.code];Cf({errorCodes:Jet,getCodeActions(t){let{sourceFile:n,errorCode:a}=t,u=qet(n,t.span.start,t,a);if(!u)return;let{node:m,suggestedSymbol:g}=u,v=h_(t.host.getCompilationSettings()),x=Gs.ChangeTracker.with(t,k=>$et(k,n,m,g,v));return[Wd("spelling",x,[j.Change_spelling_to_0,Bc(g)],Uet,j.Fix_all_detected_spelling_errors)]},fixIds:[Uet],getAllCodeActions:t=>$_(t,Jet,(n,a)=>{let u=qet(a.file,a.start,t,a.code),m=h_(t.host.getCompilationSettings());u&&$et(n,t.sourceFile,u.node,u.suggestedSymbol,m)})});function qet(t,n,a,u){let m=wc(t,n),g=m.parent;if((u===j.No_overload_matches_this_call.code||u===j.Type_0_is_not_assignable_to_type_1.code)&&!_b(g))return;let v=a.program.getTypeChecker(),x;if(ba(g)&&g.name===m){Se.assert(qD(m),"Expected an identifier for spelling (property access)");let k=v.getTypeAtLocation(g.expression);g.flags&64&&(k=v.getNonNullableType(k)),x=v.getSuggestedSymbolForNonexistentProperty(m,k)}else if(ms(g)&&g.operatorToken.kind===103&&g.left===m&&wl(m)){let k=v.getTypeAtLocation(g.right);x=v.getSuggestedSymbolForNonexistentProperty(m,k)}else if(tS(g)&&g.right===m){let k=v.getSymbolAtLocation(g.left);k&&k.flags&1536&&(x=v.getSuggestedSymbolForNonexistentModule(g.right,k))}else if(eg(g)&&g.name===m){Se.assertNode(m,Ai,"Expected an identifier for spelling (import)");let k=go(m,Dd),T=Vzt(a,k,t);T&&T.symbol&&(x=v.getSuggestedSymbolForNonexistentModule(m,T.symbol))}else if(_b(g)&&g.name===m){Se.assertNode(m,Ai,"Expected an identifier for JSX attribute");let k=go(m,nv),T=v.getContextualTypeForArgumentAtIndex(k,0);x=v.getSuggestedSymbolForNonexistentJSXAttribute(m,T)}else if(Ase(g)&&rl(g)&&g.name===m){let k=go(m,bc),T=k?HE(k):void 0,I=T?v.getTypeAtLocation(T):void 0;I&&(x=v.getSuggestedSymbolForNonexistentClassMember(_h(m),I))}else{let k=m9(m),T=_h(m);Se.assert(T!==void 0,"name should be defined"),x=v.getSuggestedSymbolForNonexistentSymbol(m,T,zzt(k))}return x===void 0?void 0:{node:m,suggestedSymbol:x}}function $et(t,n,a,u,m){let g=Bc(u);if(!Jb(g,m)&&ba(a.parent)){let v=u.valueDeclaration;v&&xf(v)&&wl(v.name)?t.replaceNode(n,a,Me.createIdentifier(g)):t.replaceNode(n,a.parent,Me.createElementAccessExpression(a.parent.expression,Me.createStringLiteral(g)))}else t.replaceNode(n,a,Me.createIdentifier(g))}function zzt(t){let n=0;return t&4&&(n|=1920),t&2&&(n|=788968),t&1&&(n|=111551),n}function Vzt(t,n,a){var u;if(!n||!i_(n.moduleSpecifier))return;let m=(u=t.program.getResolvedModuleFromModuleSpecifier(n.moduleSpecifier,a))==null?void 0:u.resolvedModule;if(m)return t.program.getSourceFile(m.resolvedFileName)}var bIe="returnValueCorrect",SIe="fixAddReturnStatement",xIe="fixRemoveBracesFromArrowFunctionBody",CIe="fixWrapTheBlockWithParen",Get=[j.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code,j.Type_0_is_not_assignable_to_type_1.code,j.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code];Cf({errorCodes:Get,fixIds:[SIe,xIe,CIe],getCodeActions:function(n){let{program:a,sourceFile:u,span:{start:m},errorCode:g}=n,v=Xet(a.getTypeChecker(),u,m,g);if(v)return v.kind===0?ar([Uzt(n,v.expression,v.statement)],Zc(v.declaration)?Jzt(n,v.declaration,v.expression,v.commentSource):void 0):[qzt(n,v.declaration,v.expression)]},getAllCodeActions:t=>$_(t,Get,(n,a)=>{let u=Xet(t.program.getTypeChecker(),a.file,a.start,a.code);if(u)switch(t.fixId){case SIe:Yet(n,a.file,u.expression,u.statement);break;case xIe:if(!Zc(u.declaration))return;Qet(n,a.file,u.declaration,u.expression,u.commentSource,!1);break;case CIe:if(!Zc(u.declaration))return;Zet(n,a.file,u.declaration,u.expression);break;default:Se.fail(JSON.stringify(t.fixId))}})});function Ket(t,n,a){let u=t.createSymbol(4,n.escapedText);u.links.type=t.getTypeAtLocation(a);let m=Au([u]);return t.createAnonymousType(void 0,m,[],[],[])}function kIe(t,n,a,u){if(!n.body||!qu(n.body)||Z(n.body.statements)!==1)return;let m=of(n.body.statements);if(E0(m)&&wIe(t,n,t.getTypeAtLocation(m.expression),a,u))return{declaration:n,kind:0,expression:m.expression,statement:m,commentSource:m.expression};if(dL(m)&&E0(m.statement)){let g=Me.createObjectLiteralExpression([Me.createPropertyAssignment(m.label,m.statement.expression)]),v=Ket(t,m.label,m.statement.expression);if(wIe(t,n,v,a,u))return Zc(n)?{declaration:n,kind:1,expression:g,statement:m,commentSource:m.statement.expression}:{declaration:n,kind:0,expression:g,statement:m,commentSource:m.statement.expression}}else if(qu(m)&&Z(m.statements)===1){let g=of(m.statements);if(dL(g)&&E0(g.statement)){let v=Me.createObjectLiteralExpression([Me.createPropertyAssignment(g.label,g.statement.expression)]),x=Ket(t,g.label,g.statement.expression);if(wIe(t,n,x,a,u))return{declaration:n,kind:0,expression:v,statement:m,commentSource:g}}}}function wIe(t,n,a,u,m){if(m){let g=t.getSignatureFromDeclaration(n);if(g){kc(n,1024)&&(a=t.createPromiseType(a));let v=t.createSignature(n,g.typeParameters,g.thisParameter,g.parameters,a,void 0,g.minArgumentCount,g.flags);a=t.createAnonymousType(void 0,Au(),[v],[],[])}else a=t.getAnyType()}return t.isTypeAssignableTo(a,u)}function Xet(t,n,a,u){let m=wc(n,a);if(!m.parent)return;let g=go(m.parent,Rp);switch(u){case j.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code:return!g||!g.body||!g.type||!bw(g.type,m)?void 0:kIe(t,g,t.getTypeFromTypeNode(g.type),!1);case j.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!g||!Od(g.parent)||!g.body)return;let v=g.parent.arguments.indexOf(g);if(v===-1)return;let x=t.getContextualTypeForArgumentAtIndex(g.parent,v);return x?kIe(t,g,x,!0):void 0;case j.Type_0_is_not_assignable_to_type_1.code:if(!VT(m)||!mj(m.parent)&&!_b(m.parent))return;let k=Hzt(m.parent);return!k||!Rp(k)||!k.body?void 0:kIe(t,k,t.getTypeAtLocation(m.parent),!0)}}function Hzt(t){switch(t.kind){case 260:case 169:case 208:case 172:case 303:return t.initializer;case 291:return t.initializer&&(aT(t.initializer)?t.initializer.expression:void 0);case 304:case 171:case 306:case 348:case 341:return}}function Yet(t,n,a,u){Lk(a);let m=$te(n);t.replaceNode(n,u,Me.createReturnStatement(a),{leadingTriviaOption:Gs.LeadingTriviaOption.Exclude,trailingTriviaOption:Gs.TrailingTriviaOption.Exclude,suffix:m?";":void 0})}function Qet(t,n,a,u,m,g){let v=g||gJ(u)?Me.createParenthesizedExpression(u):u;Lk(m),Qv(m,v),t.replaceNode(n,a.body,v)}function Zet(t,n,a,u){t.replaceNode(n,a.body,Me.createParenthesizedExpression(u))}function Uzt(t,n,a){let u=Gs.ChangeTracker.with(t,m=>Yet(m,t.sourceFile,n,a));return Wd(bIe,u,j.Add_a_return_statement,SIe,j.Add_all_missing_return_statement)}function Jzt(t,n,a,u){let m=Gs.ChangeTracker.with(t,g=>Qet(g,t.sourceFile,n,a,u,!1));return Wd(bIe,m,j.Remove_braces_from_arrow_function_body,xIe,j.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function qzt(t,n,a){let u=Gs.ChangeTracker.with(t,m=>Zet(m,t.sourceFile,n,a));return Wd(bIe,u,j.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,CIe,j.Wrap_all_object_literal_with_parentheses)}var r2="fixMissingMember",Fle="fixMissingProperties",Mle="fixMissingAttributes",Rle="fixMissingFunctionDeclaration",ett=[j.Property_0_does_not_exist_on_type_1.code,j.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,j.Property_0_is_missing_in_type_1_but_required_in_type_2.code,j.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,j.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,j.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,j.Cannot_find_name_0.code];Cf({errorCodes:ett,getCodeActions(t){let n=t.program.getTypeChecker(),a=ttt(t.sourceFile,t.span.start,t.errorCode,n,t.program);if(a){if(a.kind===3){let u=Gs.ChangeTracker.with(t,m=>dtt(m,t,a));return[Wd(Fle,u,j.Add_missing_properties,Fle,j.Add_all_missing_properties)]}if(a.kind===4){let u=Gs.ChangeTracker.with(t,m=>utt(m,t,a));return[Wd(Mle,u,j.Add_missing_attributes,Mle,j.Add_all_missing_attributes)]}if(a.kind===2||a.kind===5){let u=Gs.ChangeTracker.with(t,m=>ltt(m,t,a));return[Wd(Rle,u,[j.Add_missing_function_declaration_0,a.token.text],Rle,j.Add_all_missing_function_declarations)]}if(a.kind===1){let u=Gs.ChangeTracker.with(t,m=>ctt(m,t.program.getTypeChecker(),a));return[Wd(r2,u,[j.Add_missing_enum_member_0,a.token.text],r2,j.Add_all_missing_members)]}return Pl(Yzt(t,a),$zt(t,a))}},fixIds:[r2,Rle,Fle,Mle],getAllCodeActions:t=>{let{program:n,fixId:a}=t,u=n.getTypeChecker(),m=new Map,g=new Map;return wX(Gs.ChangeTracker.with(t,v=>{wJ(t,ett,x=>{let k=ttt(x.file,x.start,x.code,u,t.program);if(!(!k||!HC(m,pp(k.parentDeclaration)+"#"+(k.kind===3?k.identifier:k.token.text)))){if(a===Rle&&(k.kind===2||k.kind===5))ltt(v,t,k);else if(a===Fle&&k.kind===3)dtt(v,t,k);else if(a===Mle&&k.kind===4)utt(v,t,k);else if(k.kind===1&&ctt(v,u,k),k.kind===0){let{parentDeclaration:T,token:I}=k,A=Hv(g,T,()=>[]);A.some(M=>M.token.text===I.text)||A.push(k)}}}),g.forEach((x,k)=>{let T=Im(k)?void 0:Vit(k,u);for(let I of x){if(T?.some(K=>{let re=g.get(K);return!!re&&re.some(({token:X})=>X.text===I.token.text)}))continue;let{parentDeclaration:A,declSourceFile:M,modifierFlags:R,token:H,call:U,isJSFile:$}=I;if(U&&!wl(H))att(t,v,U,H,R&256,A,M);else if($&&!ky(A)&&!Im(A))itt(v,M,A,H,!!(R&256));else{let K=rtt(u,A,H);ott(v,M,A,H.text,K,R&256)}}})}))}});function ttt(t,n,a,u,m){var g;let v=wc(t,n),x=v.parent;if(a===j.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(!(v.kind===19&&Ld(x)&&Od(x.parent)))return;let R=_n(x.parent.arguments,K=>K===x);if(R<0)return;let H=u.getResolvedSignature(x.parent);if(!(H&&H.declaration&&H.parameters[R]))return;let U=H.parameters[R].valueDeclaration;if(!(U&&Fl(U)&&Ai(U.name)))return;let $=tc(u.getUnmatchedProperties(u.getTypeAtLocation(x),u.getParameterType(H,R),!1,!1));return Z($)?{kind:3,token:U.name,identifier:U.name.text,properties:$,parentDeclaration:x}:void 0}if(v.kind===19&&Ld(x)){let R=u.getContextualType(x)||u.getTypeAtLocation(x),H=tc(u.getUnmatchedProperties(u.getTypeAtLocation(x),R,!1,!1));return Z(H)?{kind:3,token:x,identifier:"",properties:H,parentDeclaration:x}:void 0}if(!qD(v))return;if(Ai(v)&&yg(x)&&x.initializer&&Ld(x.initializer)){let R=u.getContextualType(v)||u.getTypeAtLocation(v),H=tc(u.getUnmatchedProperties(u.getTypeAtLocation(x.initializer),R,!1,!1));return Z(H)?{kind:3,token:v,identifier:v.text,properties:H,parentDeclaration:x.initializer}:void 0}if(Ai(v)&&nv(v.parent)){let R=h_(m.getCompilerOptions()),H=Zzt(u,R,v.parent);return Z(H)?{kind:4,token:v,attributes:H,parentDeclaration:v.parent}:void 0}if(Ai(v)){let R=(g=u.getContextualType(v))==null?void 0:g.getNonNullableType();if(R&&Ls(R)&16){let H=Ed(u.getSignaturesOfType(R,0));return H===void 0?void 0:{kind:5,token:v,signature:H,sourceFile:t,parentDeclaration:ftt(v)}}if(Od(x)&&x.expression===v)return{kind:2,token:v,call:x,sourceFile:t,modifierFlags:0,parentDeclaration:ftt(v)}}if(!ba(x))return;let k=v9(u.getTypeAtLocation(x.expression)),T=k.symbol;if(!T||!T.declarations)return;if(Ai(v)&&Od(x.parent)){let R=jt(T.declarations,Dh),H=R?.getSourceFile();if(R&&H&&!xJ(m,H))return{kind:2,token:v,call:x.parent,sourceFile:H,modifierFlags:32,parentDeclaration:R};let U=jt(T.declarations,ul);if(t.commonJsModuleIndicator)return;if(U&&!xJ(m,U))return{kind:2,token:v,call:x.parent,sourceFile:U,modifierFlags:32,parentDeclaration:U}}let I=jt(T.declarations,bc);if(!I&&wl(v))return;let A=I||jt(T.declarations,R=>ky(R)||Im(R));if(A&&!xJ(m,A.getSourceFile())){let R=!Im(A)&&(k.target||k)!==u.getDeclaredTypeOfSymbol(T);if(R&&(wl(v)||ky(A)))return;let H=A.getSourceFile(),U=Im(A)?0:(R?256:0)|(tie(v.text)?2:0),$=$v(H),K=ac(x.parent,Od);return{kind:0,token:v,call:K,modifierFlags:U,parentDeclaration:A,declSourceFile:H,isJSFile:$}}let M=jt(T.declarations,Z8);if(M&&!(k.flags&1056)&&!wl(v)&&!xJ(m,M.getSourceFile()))return{kind:1,token:v,parentDeclaration:M}}function $zt(t,n){return n.isJSFile?Rl(Gzt(t,n)):Kzt(t,n)}function Gzt(t,{parentDeclaration:n,declSourceFile:a,modifierFlags:u,token:m}){if(ky(n)||Im(n))return;let g=Gs.ChangeTracker.with(t,x=>itt(x,a,n,m,!!(u&256)));if(g.length===0)return;let v=u&256?j.Initialize_static_property_0:wl(m)?j.Declare_a_private_field_named_0:j.Initialize_property_0_in_the_constructor;return Wd(r2,g,[v,m.text],r2,j.Add_all_missing_members)}function itt(t,n,a,u,m){let g=u.text;if(m){if(a.kind===231)return;let v=a.name.getText(),x=ntt(Me.createIdentifier(v),g);t.insertNodeAfter(n,a,x)}else if(wl(u)){let v=Me.createPropertyDeclaration(void 0,g,void 0,void 0,void 0),x=stt(a);x?t.insertNodeAfter(n,x,v):t.insertMemberAtStart(n,a,v)}else{let v=eI(a);if(!v)return;let x=ntt(Me.createThis(),g);t.insertNodeAtConstructorEnd(n,v,x)}}function ntt(t,n){return Me.createExpressionStatement(Me.createAssignment(Me.createPropertyAccessExpression(t,n),K4()))}function Kzt(t,{parentDeclaration:n,declSourceFile:a,modifierFlags:u,token:m}){let g=m.text,v=u&256,x=rtt(t.program.getTypeChecker(),n,m),k=I=>Gs.ChangeTracker.with(t,A=>ott(A,a,n,g,x,I)),T=[Wd(r2,k(u&256),[v?j.Declare_static_property_0:j.Declare_property_0,g],r2,j.Add_all_missing_members)];return v||wl(m)||(u&2&&T.unshift(rD(r2,k(2),[j.Declare_private_property_0,g])),T.push(Xzt(t,a,n,m.text,x))),T}function rtt(t,n,a){let u;if(a.parent.parent.kind===226){let m=a.parent.parent,g=a.parent===m.left?m.right:m.left,v=t.getWidenedType(t.getBaseTypeOfLiteralType(t.getTypeAtLocation(g)));u=t.typeToTypeNode(v,n,1,8)}else{let m=t.getContextualType(a.parent);u=m?t.typeToTypeNode(m,void 0,1,8):void 0}return u||Me.createKeywordTypeNode(133)}function ott(t,n,a,u,m,g){let v=g?Me.createNodeArray(Me.createModifiersFromModifierFlags(g)):void 0,x=bc(a)?Me.createPropertyDeclaration(v,u,void 0,m,void 0):Me.createPropertySignature(void 0,u,void 0,m),k=stt(a);k?t.insertNodeAfter(n,k,x):t.insertMemberAtStart(n,a,x)}function stt(t){let n;for(let a of t.members){if(!vu(a))break;n=a}return n}function Xzt(t,n,a,u,m){let g=Me.createKeywordTypeNode(154),v=Me.createParameterDeclaration(void 0,void 0,"x",void 0,g,void 0),x=Me.createIndexSignature(void 0,[v],m),k=Gs.ChangeTracker.with(t,T=>T.insertMemberAtStart(n,a,x));return rD(r2,k,[j.Add_index_signature_for_property_0,u])}function Yzt(t,n){let{parentDeclaration:a,declSourceFile:u,modifierFlags:m,token:g,call:v}=n;if(v===void 0)return;let x=g.text,k=I=>Gs.ChangeTracker.with(t,A=>att(t,A,v,g,I,a,u)),T=[Wd(r2,k(m&256),[m&256?j.Declare_static_method_0:j.Declare_method_0,x],r2,j.Add_all_missing_members)];return m&2&&T.unshift(rD(r2,k(2),[j.Declare_private_method_0,x])),T}function att(t,n,a,u,m,g,v){let x=E9(v,t.program,t.preferences,t.host),k=bc(g)?174:173,T=Oit(k,t,x,a,u,m,g),I=eVt(g,a);I?n.insertNodeAfter(v,I,T):n.insertMemberAtStart(v,g,T),x.writeFixes(n)}function ctt(t,n,{token:a,parentDeclaration:u}){let m=En(u.members,k=>{let T=n.getTypeAtLocation(k);return!!(T&&T.flags&402653316)}),g=u.getSourceFile(),v=Me.createEnumMember(a,m?Me.createStringLiteral(a.text):void 0),x=Y_(u.members);x?t.insertNodeInListAfter(g,x,v,u.members):t.insertMemberAtStart(g,u,v)}function ltt(t,n,a){let u=Nk(n.sourceFile,n.preferences),m=E9(n.sourceFile,n.program,n.preferences,n.host),g=a.kind===2?Oit(262,n,m,a.call,Un(a.token),a.modifierFlags,a.parentDeclaration):Vye(262,n,u,a.signature,qle(j.Function_not_implemented.message,u),a.token,void 0,void 0,void 0,m);g===void 0&&Se.fail("fixMissingFunctionDeclaration codefix got unexpected error."),fm(a.parentDeclaration)?t.insertNodeBefore(a.sourceFile,a.parentDeclaration,g,!0):t.insertNodeAtEndOfScope(a.sourceFile,a.parentDeclaration,g),m.writeFixes(t)}function utt(t,n,a){let u=E9(n.sourceFile,n.program,n.preferences,n.host),m=Nk(n.sourceFile,n.preferences),g=n.program.getTypeChecker(),v=a.parentDeclaration.attributes,x=En(v.properties,ZA),k=$i(a.attributes,A=>{let M=Ble(n,g,u,m,g.getTypeOfSymbol(A),a.parentDeclaration),R=Me.createIdentifier(A.name),H=Me.createJsxAttribute(R,Me.createJsxExpression(void 0,M));return dp(R,H),H}),T=Me.createJsxAttributes(x?[...k,...v.properties]:[...v.properties,...k]),I={prefix:v.pos===v.end?" ":void 0};t.replaceNode(n.sourceFile,v,T,I),u.writeFixes(t)}function dtt(t,n,a){let u=E9(n.sourceFile,n.program,n.preferences,n.host),m=Nk(n.sourceFile,n.preferences),g=h_(n.program.getCompilerOptions()),v=n.program.getTypeChecker(),x=$i(a.properties,T=>{let I=Ble(n,v,u,m,v.getTypeOfSymbol(T),a.parentDeclaration);return Me.createPropertyAssignment(tVt(T,g,m,v),I)}),k={leadingTriviaOption:Gs.LeadingTriviaOption.Exclude,trailingTriviaOption:Gs.TrailingTriviaOption.Exclude,indentation:a.indentation};t.replaceNode(n.sourceFile,a.parentDeclaration,Me.createObjectLiteralExpression([...a.parentDeclaration.properties,...x],!0),k),u.writeFixes(t)}function Ble(t,n,a,u,m,g){if(m.flags&3)return K4();if(m.flags&134217732)return Me.createStringLiteral("",u===0);if(m.flags&8)return Me.createNumericLiteral(0);if(m.flags&64)return Me.createBigIntLiteral("0n");if(m.flags&16)return Me.createFalse();if(m.flags&1056){let v=m.symbol.exports?c0(m.symbol.exports.values()):m.symbol,x=n.symbolToExpression(m.symbol.parent?m.symbol.parent:m.symbol,111551,void 0,64);return v===void 0||x===void 0?Me.createNumericLiteral(0):Me.createPropertyAccessExpression(x,n.symbolToString(v))}if(m.flags&256)return Me.createNumericLiteral(m.value);if(m.flags&2048)return Me.createBigIntLiteral(m.value);if(m.flags&128)return Me.createStringLiteral(m.value,u===0);if(m.flags&512)return m===n.getFalseType()||m===n.getFalseType(!0)?Me.createFalse():Me.createTrue();if(m.flags&65536)return Me.createNull();if(m.flags&1048576)return Je(m.types,x=>Ble(t,n,a,u,x,g))??K4();if(n.isArrayLikeType(m))return Me.createArrayLiteralExpression();if(Qzt(m)){let v=$i(n.getPropertiesOfType(m),x=>{let k=Ble(t,n,a,u,n.getTypeOfSymbol(x),g);return Me.createPropertyAssignment(x.name,k)});return Me.createObjectLiteralExpression(v,!0)}if(Ls(m)&16){if(jt(m.symbol.declarations||F,ow(xp,sT,Sg))===void 0)return K4();let x=n.getSignaturesOfType(m,0);return x===void 0?K4():Vye(218,t,u,x[0],qle(j.Function_not_implemented.message,u),void 0,void 0,void 0,g,a)??K4()}if(Ls(m)&1){let v=av(m.symbol);if(v===void 0||qA(v))return K4();let x=eI(v);return x&&Z(x.parameters)?K4():Me.createNewExpression(Me.createIdentifier(m.symbol.name),void 0,void 0)}return K4()}function K4(){return Me.createIdentifier("undefined")}function Qzt(t){return t.flags&524288&&(Ls(t)&128||t.symbol&&ac(vp(t.symbol.declarations),Im))}function Zzt(t,n,a){let u=t.getContextualType(a.attributes);if(u===void 0)return F;let m=u.getProperties();if(!Z(m))return F;let g=new Set;for(let v of a.attributes.properties)if(_b(v)&&g.add(Y3(v.name)),ZA(v)){let x=t.getTypeAtLocation(v.expression);for(let k of x.getProperties())g.add(k.escapedName)}return Qn(m,v=>Jb(v.name,n,1)&&!(v.flags&16777216||Ag(v)&48||g.has(v.escapedName)))}function eVt(t,n){if(Im(t))return;let a=go(n,u=>Sg(u)||yl(u));return a&&a.parent===t?a:void 0}function tVt(t,n,a,u){if(m4(t)){let m=u.symbolToNode(t,111551,void 0,void 0,1);if(m&&f_(m))return m}return nee(t.name,n,a===0,!1,!1)}function ftt(t){if(go(t,aT)){let n=go(t.parent,fm);if(n)return n}return Vo(t)}var TIe="addMissingNewOperator",_tt=[j.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code];Cf({errorCodes:_tt,getCodeActions(t){let{sourceFile:n,span:a}=t,u=Gs.ChangeTracker.with(t,m=>ptt(m,n,a));return[Wd(TIe,u,j.Add_missing_new_operator_to_call,TIe,j.Add_missing_new_operator_to_all_calls)]},fixIds:[TIe],getAllCodeActions:t=>$_(t,_tt,(n,a)=>ptt(n,t.sourceFile,a))});function ptt(t,n,a){let u=$d(iVt(n,a),Od),m=Me.createNewExpression(u.expression,u.typeArguments,u.arguments);t.replaceNode(n,u,m)}function iVt(t,n){let a=wc(t,n.start),u=ag(n);for(;a.endzle(x,t.program,t.preferences,t.host,u,m)),[Z(m)>1?j.Add_missing_parameters_to_0:j.Add_missing_parameter_to_0,a],jle,j.Add_all_missing_parameters)),Z(g)&&ar(v,Wd(Wle,Gs.ChangeTracker.with(t,x=>zle(x,t.program,t.preferences,t.host,u,g)),[Z(g)>1?j.Add_optional_parameters_to_0:j.Add_optional_parameter_to_0,a],Wle,j.Add_all_optional_parameters)),v},getAllCodeActions:t=>$_(t,mtt,(n,a)=>{let u=htt(t.sourceFile,t.program,a.start);if(u){let{declarations:m,newParameters:g,newOptionalParameters:v}=u;t.fixId===jle&&zle(n,t.program,t.preferences,t.host,m,g),t.fixId===Wle&&zle(n,t.program,t.preferences,t.host,m,v)}})});function htt(t,n,a){let u=wc(t,a),m=go(u,Od);if(m===void 0||Z(m.arguments)===0)return;let g=n.getTypeChecker(),v=g.getTypeAtLocation(m.expression),x=Qn(v.symbol.declarations,gtt);if(x===void 0)return;let k=Y_(x);if(k===void 0||k.body===void 0||xJ(n,k.getSourceFile()))return;let T=nVt(k);if(T===void 0)return;let I=[],A=[],M=Z(k.parameters),R=Z(m.arguments);if(M>R)return;let H=[k,...oVt(k,x)];for(let U=0,$=0,K=0;U{let k=Vo(x),T=E9(k,n,a,u);Z(x.parameters)?t.replaceNodeRangeWithNodes(k,of(x.parameters),Bu(x.parameters),ytt(T,v,x,g),{joiner:", ",indentation:0,leadingTriviaOption:Gs.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Gs.TrailingTriviaOption.Include}):ee(ytt(T,v,x,g),(I,A)=>{Z(x.parameters)===0&&A===0?t.insertNodeAt(k,x.parameters.end,I):t.insertNodeAtEndOfList(k,x.parameters,I)}),T.writeFixes(t)})}function gtt(t){switch(t.kind){case 262:case 218:case 174:case 219:return!0;default:return!1}}function ytt(t,n,a,u){let m=$i(a.parameters,g=>Me.createParameterDeclaration(g.modifiers,g.dotDotDotToken,g.name,g.questionToken,g.type,g.initializer));for(let{pos:g,declaration:v}of u){let x=g>0?m[g-1]:void 0;m.splice(g,0,Me.updateParameterDeclaration(v,v.modifiers,v.dotDotDotToken,v.name,x&&x.questionToken?Me.createToken(58):v.questionToken,cVt(t,v.type,n),v.initializer))}return m}function oVt(t,n){let a=[];for(let u of n)if(sVt(u)){if(Z(u.parameters)===Z(t.parameters)){a.push(u);continue}if(Z(u.parameters)>Z(t.parameters))return[]}return a}function sVt(t){return gtt(t)&&t.body===void 0}function vtt(t,n,a){return Me.createParameterDeclaration(void 0,void 0,t,a,n,void 0)}function aVt(t,n){return Z(t)&&En(t,a=>n$_(t,Stt,(n,a,u)=>{let m=Ctt(a.file,a.start);if(m!==void 0)switch(t.fixId){case EIe:{let g=ktt(m,t.host,a.code);g&&u.push(xtt(a.file.fileName,g));break}default:Se.fail(`Bad fixId: ${t.fixId}`)}})});function xtt(t,n){return{type:"install package",file:t,packageName:n}}function Ctt(t,n){let a=ac(wc(t,n),Kf);if(!a)return;let u=a.text,{packageName:m}=jhe(u);return l0(m)?void 0:m}function ktt(t,n,a){var u;return a===btt?lP.nodeCoreModules.has(t)?"@types/node":void 0:(u=n.isKnownTypesPackageName)!=null&&u.call(n,t)?Vhe(t):void 0}var wtt=[j.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,j.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2.code,j.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more.code,j.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code,j.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1.code,j.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more.code],DIe="fixClassDoesntImplementInheritedAbstractMember";Cf({errorCodes:wtt,getCodeActions:function(n){let{sourceFile:a,span:u}=n,m=Gs.ChangeTracker.with(n,g=>Ett(Ttt(a,u.start),a,n,g,n.preferences));return m.length===0?void 0:[Wd(DIe,m,j.Implement_inherited_abstract_class,DIe,j.Implement_all_inherited_abstract_classes)]},fixIds:[DIe],getAllCodeActions:function(n){let a=new Map;return $_(n,wtt,(u,m)=>{let g=Ttt(m.file,m.start);HC(a,pp(g))&&Ett(g,n.sourceFile,n,u,n.preferences)})}});function Ttt(t,n){let a=wc(t,n);return $d(a.parent,bc)}function Ett(t,n,a,u,m){let g=HE(t),v=a.program.getTypeChecker(),x=v.getTypeAtLocation(g),k=v.getPropertiesOfType(x).filter(uVt),T=E9(n,a.program,m,a.host);EJ(t,k,n,a,m,T,I=>u.insertMemberAtStart(n,t,I)),T.writeFixes(u)}function uVt(t){let n=eT(of(t.getDeclarations()));return!(n&2)&&!!(n&64)}var IIe="classSuperMustPrecedeThisAccess",Dtt=[j.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];Cf({errorCodes:Dtt,getCodeActions(t){let{sourceFile:n,span:a}=t,u=Ntt(n,a.start);if(!u)return;let{constructor:m,superCall:g}=u,v=Gs.ChangeTracker.with(t,x=>Itt(x,n,m,g));return[Wd(IIe,v,j.Make_super_call_the_first_statement_in_the_constructor,IIe,j.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[IIe],getAllCodeActions(t){let{sourceFile:n}=t,a=new Map;return $_(t,Dtt,(u,m)=>{let g=Ntt(m.file,m.start);if(!g)return;let{constructor:v,superCall:x}=g;HC(a,pp(v.parent))&&Itt(u,n,v,x)})}});function Itt(t,n,a,u){t.insertNodeAtConstructorStart(n,a,u),t.delete(n,u)}function Ntt(t,n){let a=wc(t,n);if(a.kind!==110)return;let u=BS(a),m=Att(u.body);return m&&!m.expression.arguments.some(g=>ba(g)&&g.expression===a)?{constructor:u,superCall:m}:void 0}function Att(t){return E0(t)&&m5(t.expression)?t:iu(t)?void 0:_d(t,Att)}var NIe="constructorForDerivedNeedSuperCall",Ptt=[j.Constructors_for_derived_classes_must_contain_a_super_call.code];Cf({errorCodes:Ptt,getCodeActions(t){let{sourceFile:n,span:a}=t,u=Ltt(n,a.start),m=Gs.ChangeTracker.with(t,g=>Ott(g,n,u));return[Wd(NIe,m,j.Add_missing_super_call,NIe,j.Add_all_missing_super_calls)]},fixIds:[NIe],getAllCodeActions:t=>$_(t,Ptt,(n,a)=>Ott(n,t.sourceFile,Ltt(a.file,a.start)))});function Ltt(t,n){let a=wc(t,n);return Se.assert(yl(a.parent),"token should be at the constructor declaration"),a.parent}function Ott(t,n,a){let u=Me.createExpressionStatement(Me.createCallExpression(Me.createSuper(),void 0,F));t.insertNodeAtConstructorStart(n,a,u)}var Ftt="fixEnableJsxFlag",Mtt=[j.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code];Cf({errorCodes:Mtt,getCodeActions:function(n){let{configFile:a}=n.program.getCompilerOptions();if(a===void 0)return;let u=Gs.ChangeTracker.with(n,m=>Rtt(m,a));return[rD(Ftt,u,j.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[Ftt],getAllCodeActions:t=>$_(t,Mtt,n=>{let{configFile:a}=t.program.getCompilerOptions();a!==void 0&&Rtt(n,a)})});function Rtt(t,n){ZIe(t,n,"jsx",Me.createStringLiteral("react"))}var AIe="fixNaNEquality",Btt=[j.This_condition_will_always_return_0.code];Cf({errorCodes:Btt,getCodeActions(t){let{sourceFile:n,span:a,program:u}=t,m=jtt(u,n,a);if(m===void 0)return;let{suggestion:g,expression:v,arg:x}=m,k=Gs.ChangeTracker.with(t,T=>Wtt(T,n,x,v));return[Wd(AIe,k,[j.Use_0,g],AIe,j.Use_Number_isNaN_in_all_conditions)]},fixIds:[AIe],getAllCodeActions:t=>$_(t,Btt,(n,a)=>{let u=jtt(t.program,a.file,h1(a.start,a.length));u&&Wtt(n,a.file,u.arg,u.expression)})});function jtt(t,n,a){let u=jt(t.getSemanticDiagnostics(n),v=>v.start===a.start&&v.length===a.length);if(u===void 0||u.relatedInformation===void 0)return;let m=jt(u.relatedInformation,v=>v.code===j.Did_you_mean_0.code);if(m===void 0||m.file===void 0||m.start===void 0||m.length===void 0)return;let g=Wit(m.file,h1(m.start,m.length));if(g!==void 0&&An(g)&&ms(g.parent))return{suggestion:dVt(m.messageText),expression:g.parent,arg:g}}function Wtt(t,n,a,u){let m=Me.createCallExpression(Me.createPropertyAccessExpression(Me.createIdentifier("Number"),Me.createIdentifier("isNaN")),void 0,[a]),g=u.operatorToken.kind;t.replaceNode(n,u,g===38||g===36?Me.createPrefixUnaryExpression(54,m):m)}function dVt(t){let[,n]=wN(t,` +`,0).match(/'(.*)'/)||[];return n}Cf({errorCodes:[j.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,j.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,j.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(n){let a=n.program.getCompilerOptions(),{configFile:u}=a;if(u===void 0)return;let m=[],g=b1(a);if(g>=5&&g<99){let T=Gs.ChangeTracker.with(n,I=>{ZIe(I,u,"module",Me.createStringLiteral("esnext"))});m.push(rD("fixModuleOption",T,[j.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}let x=h_(a);if(x<4||x>99){let T=Gs.ChangeTracker.with(n,I=>{if(!cG(u))return;let M=[["target",Me.createStringLiteral("es2017")]];g===1&&M.push(["module",Me.createStringLiteral("commonjs")]),Jye(I,u,M)});m.push(rD("fixTargetOption",T,[j.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return m.length?m:void 0}});var PIe="fixPropertyAssignment",ztt=[j.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code];Cf({errorCodes:ztt,fixIds:[PIe],getCodeActions(t){let{sourceFile:n,span:a}=t,u=Htt(n,a.start),m=Gs.ChangeTracker.with(t,g=>Vtt(g,t.sourceFile,u));return[Wd(PIe,m,[j.Change_0_to_1,"=",":"],PIe,[j.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:t=>$_(t,ztt,(n,a)=>Vtt(n,a.file,Htt(a.file,a.start)))});function Vtt(t,n,a){t.replaceNode(n,a,Me.createPropertyAssignment(a.name,a.objectAssignmentInitializer))}function Htt(t,n){return $d(wc(t,n).parent,Q0)}var LIe="extendsInterfaceBecomesImplements",Utt=[j.Cannot_extend_an_interface_0_Did_you_mean_implements.code];Cf({errorCodes:Utt,getCodeActions(t){let{sourceFile:n}=t,a=Jtt(n,t.span.start);if(!a)return;let{extendsToken:u,heritageClauses:m}=a,g=Gs.ChangeTracker.with(t,v=>qtt(v,n,u,m));return[Wd(LIe,g,j.Change_extends_to_implements,LIe,j.Change_all_extended_interfaces_to_implements)]},fixIds:[LIe],getAllCodeActions:t=>$_(t,Utt,(n,a)=>{let u=Jtt(a.file,a.start);u&&qtt(n,a.file,u.extendsToken,u.heritageClauses)})});function Jtt(t,n){let a=wc(t,n),u=vy(a).heritageClauses,m=u[0].getFirstToken();return m.kind===96?{extendsToken:m,heritageClauses:u}:void 0}function qtt(t,n,a,u){if(t.replaceNode(n,a,Me.createToken(119)),u.length===2&&u[0].token===96&&u[1].token===119){let m=u[1].getFirstToken(),g=m.getFullStart();t.replaceRange(n,{pos:g,end:g},Me.createToken(28));let v=n.text,x=m.end;for(;xXtt(m,n,a));return[Wd(OIe,u,[j.Add_0_to_unresolved_variable,a.className||"this"],OIe,j.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[OIe],getAllCodeActions:t=>$_(t,Gtt,(n,a)=>{let u=Ktt(a.file,a.start,a.code);u&&Xtt(n,t.sourceFile,u)})});function Ktt(t,n,a){let u=wc(t,n);if(Ai(u)||wl(u))return{node:u,className:a===$tt?vy(u).name.text:void 0}}function Xtt(t,n,{node:a,className:u}){Lk(a),t.replaceNode(n,a,Me.createPropertyAccessExpression(u?Me.createIdentifier(u):Me.createThis(),a))}var FIe="fixInvalidJsxCharacters_expression",Vle="fixInvalidJsxCharacters_htmlEntity",Ytt=[j.Unexpected_token_Did_you_mean_or_gt.code,j.Unexpected_token_Did_you_mean_or_rbrace.code];Cf({errorCodes:Ytt,fixIds:[FIe,Vle],getCodeActions(t){let{sourceFile:n,preferences:a,span:u}=t,m=Gs.ChangeTracker.with(t,v=>MIe(v,a,n,u.start,!1)),g=Gs.ChangeTracker.with(t,v=>MIe(v,a,n,u.start,!0));return[Wd(FIe,m,j.Wrap_invalid_character_in_an_expression_container,FIe,j.Wrap_all_invalid_characters_in_an_expression_container),Wd(Vle,g,j.Convert_invalid_character_to_its_html_entity_code,Vle,j.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions(t){return $_(t,Ytt,(n,a)=>MIe(n,t.preferences,a.file,a.start,t.fixId===Vle))}});var Qtt={">":">","}":"}"};function fVt(t){return bf(Qtt,t)}function MIe(t,n,a,u,m){let g=a.getText()[u];if(!fVt(g))return;let v=m?Qtt[g]:`{${_le(a,n,g)}}`;t.replaceRangeWithText(a,{pos:u,end:u+1},v)}var Hle="deleteUnmatchedParameter",Ztt="renameUnmatchedParameter",eit=[j.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code];Cf({fixIds:[Hle,Ztt],errorCodes:eit,getCodeActions:function(n){let{sourceFile:a,span:u}=n,m=[],g=tit(a,u.start);if(g)return ar(m,_Vt(n,g)),ar(m,pVt(n,g)),m},getAllCodeActions:function(n){let a=new Map;return wX(Gs.ChangeTracker.with(n,u=>{wJ(n,eit,({file:m,start:g})=>{let v=tit(m,g);v&&a.set(v.signature,ar(a.get(v.signature),v.jsDocParameterTag))}),a.forEach((m,g)=>{if(n.fixId===Hle){let v=new Set(m);u.filterJSDocTags(g.getSourceFile(),g,x=>!v.has(x))}})}))}});function _Vt(t,{name:n,jsDocHost:a,jsDocParameterTag:u}){let m=Gs.ChangeTracker.with(t,g=>g.filterJSDocTags(t.sourceFile,a,v=>v!==u));return Wd(Hle,m,[j.Delete_unused_param_tag_0,n.getText(t.sourceFile)],Hle,j.Delete_all_unused_param_tags)}function pVt(t,{name:n,jsDocHost:a,signature:u,jsDocParameterTag:m}){if(!Z(u.parameters))return;let g=t.sourceFile,v=S3(u),x=new Set;for(let A of v)hw(A)&&Ai(A.name)&&x.add(A.name.escapedText);let k=Je(u.parameters,A=>Ai(A.name)&&!x.has(A.name.escapedText)?A.name.getText(g):void 0);if(k===void 0)return;let T=Me.updateJSDocParameterTag(m,m.tagName,Me.createIdentifier(k),m.isBracketed,m.typeExpression,m.isNameFirst,m.comment),I=Gs.ChangeTracker.with(t,A=>A.replaceJSDocComment(g,a,$i(v,M=>M===m?T:M)));return rD(Ztt,I,[j.Rename_param_tag_name_0_to_1,n.getText(g),k])}function tit(t,n){let a=wc(t,n);if(a.parent&&hw(a.parent)&&Ai(a.parent.name)){let u=a.parent,m=L3(u),g=P3(u);if(m&&g)return{jsDocHost:m,signature:g,name:a.parent.name,jsDocParameterTag:u}}}var RIe="fixUnreferenceableDecoratorMetadata",mVt=[j.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code];Cf({errorCodes:mVt,getCodeActions:t=>{let n=hVt(t.sourceFile,t.program,t.span.start);if(!n)return;let a=Gs.ChangeTracker.with(t,g=>n.kind===276&&yVt(g,t.sourceFile,n,t.program)),u=Gs.ChangeTracker.with(t,g=>gVt(g,t.sourceFile,n,t.program)),m;return a.length&&(m=ar(m,rD(RIe,a,j.Convert_named_imports_to_namespace_import))),u.length&&(m=ar(m,rD(RIe,u,j.Use_import_type))),m},fixIds:[RIe]});function hVt(t,n,a){let u=ac(wc(t,a),Ai);if(!u||u.parent.kind!==183)return;let g=n.getTypeChecker().getSymbolAtLocation(u);return jt(g?.declarations||F,ow(Ym,eg,pf))}function gVt(t,n,a,u){if(a.kind===271){t.insertModifierBefore(n,156,a.name);return}let m=a.kind===273?a:a.parent.parent;if(m.name&&m.namedBindings)return;let g=u.getTypeChecker();FZ(m,x=>{if(ym(x.symbol,g).flags&111551)return!0})||t.insertModifierBefore(n,156,m)}function yVt(t,n,a,u){vX.doChangeNamedToNamespaceOrDefault(n,u,t,a.parent)}var NX="unusedIdentifier",BIe="unusedIdentifier_prefix",jIe="unusedIdentifier_delete",Ule="unusedIdentifier_deleteImports",WIe="unusedIdentifier_infer",iit=[j._0_is_declared_but_its_value_is_never_read.code,j._0_is_declared_but_never_used.code,j.Property_0_is_declared_but_its_value_is_never_read.code,j.All_imports_in_import_declaration_are_unused.code,j.All_destructured_elements_are_unused.code,j.All_variables_are_unused.code,j.All_type_parameters_are_unused.code];Cf({errorCodes:iit,getCodeActions(t){let{errorCode:n,sourceFile:a,program:u,cancellationToken:m}=t,g=u.getTypeChecker(),v=u.getSourceFiles(),x=wc(a,t.span.start);if(tC(x))return[UM(Gs.ChangeTracker.with(t,A=>A.delete(a,x)),j.Remove_template_tag)];if(x.kind===30){let A=Gs.ChangeTracker.with(t,M=>rit(M,a,x));return[UM(A,j.Remove_type_parameters)]}let k=oit(x);if(k){let A=Gs.ChangeTracker.with(t,M=>M.delete(a,k));return[Wd(NX,A,[j.Remove_import_from_0,Wse(k)],Ule,j.Delete_all_unused_imports)]}else if(zIe(x)){let A=Gs.ChangeTracker.with(t,M=>Jle(a,x,M,g,v,u,m,!1));if(A.length)return[Wd(NX,A,[j.Remove_unused_declaration_for_Colon_0,x.getText(a)],Ule,j.Delete_all_unused_imports)]}if(fb(x.parent)||QE(x.parent)){if(Fl(x.parent.parent)){let A=x.parent.elements,M=[A.length>1?j.Remove_unused_declarations_for_Colon_0:j.Remove_unused_declaration_for_Colon_0,$i(A,R=>R.getText(a)).join(", ")];return[UM(Gs.ChangeTracker.with(t,R=>vVt(R,a,x.parent)),M)]}return[UM(Gs.ChangeTracker.with(t,A=>bVt(t,A,a,x.parent)),j.Remove_unused_destructuring_declaration)]}if(sit(a,x))return[UM(Gs.ChangeTracker.with(t,A=>ait(A,a,x.parent)),j.Remove_variable_statement)];if(Ai(x)&&fp(x.parent))return[UM(Gs.ChangeTracker.with(t,A=>EVt(A,a,x.parent)),[j.Remove_unused_declaration_for_Colon_0,x.getText(a)])];let T=[];if(x.kind===140){let A=Gs.ChangeTracker.with(t,R=>nit(R,a,x)),M=$d(x.parent,Hy).typeParameter.name.text;T.push(Wd(NX,A,[j.Replace_infer_0_with_unknown,M],WIe,j.Replace_all_unused_infer_with_unknown))}else{let A=Gs.ChangeTracker.with(t,M=>Jle(a,x,M,g,v,u,m,!1));if(A.length){let M=f_(x.parent)?x.parent:x;T.push(UM(A,[j.Remove_unused_declaration_for_Colon_0,M.getText(a)]))}}let I=Gs.ChangeTracker.with(t,A=>cit(A,n,a,x));return I.length&&T.push(Wd(NX,I,[j.Prefix_0_with_an_underscore,x.getText(a)],BIe,j.Prefix_all_unused_declarations_with_where_possible)),T},fixIds:[BIe,jIe,Ule,WIe],getAllCodeActions:t=>{let{sourceFile:n,program:a,cancellationToken:u}=t,m=a.getTypeChecker(),g=a.getSourceFiles();return $_(t,iit,(v,x)=>{let k=wc(n,x.start);switch(t.fixId){case BIe:cit(v,x.code,n,k);break;case Ule:{let T=oit(k);T?v.delete(n,T):zIe(k)&&Jle(n,k,v,m,g,a,u,!0);break}case jIe:{if(k.kind===140||zIe(k))break;if(tC(k))v.delete(n,k);else if(k.kind===30)rit(v,n,k);else if(fb(k.parent)){if(k.parent.parent.initializer)break;(!Fl(k.parent.parent)||lit(k.parent.parent,m,g))&&v.delete(n,k.parent.parent)}else{if(QE(k.parent.parent)&&k.parent.parent.parent.initializer)break;sit(n,k)?ait(v,n,k.parent):Jle(n,k,v,m,g,a,u,!0)}break}case WIe:k.kind===140&&nit(v,n,k);break;default:Se.fail(JSON.stringify(t.fixId))}})}});function nit(t,n,a){t.replaceNode(n,a.parent,Me.createKeywordTypeNode(159))}function UM(t,n){return Wd(NX,t,n,jIe,j.Delete_all_unused_declarations)}function rit(t,n,a){t.delete(n,Se.checkDefined($d(a.parent,ase).typeParameters,"The type parameter to delete should exist"))}function zIe(t){return t.kind===102||t.kind===80&&(t.parent.kind===276||t.parent.kind===273)}function oit(t){return t.kind===102?ac(t.parent,Dd):void 0}function sit(t,n){return Xv(n.parent)&&of(n.parent.getChildren(t))===n}function ait(t,n,a){t.delete(n,a.parent.kind===243?a.parent:a)}function vVt(t,n,a){ee(a.elements,u=>t.delete(n,u))}function bVt(t,n,a,{parent:u}){if($c(u)&&u.initializer&&H6(u.initializer))if(Xv(u.parent)&&Z(u.parent.declarations)>1){let m=u.parent.parent,g=m.getStart(a),v=m.end;n.delete(a,u),n.insertNodeAt(a,v,u.initializer,{prefix:fO(t.host,t.formatContext.options)+a.text.slice(qEe(a.text,g-1),g),suffix:$te(a)?";":""})}else n.replaceNode(a,u.parent,u.initializer);else n.delete(a,u)}function cit(t,n,a,u){n!==j.Property_0_is_declared_but_its_value_is_never_read.code&&(u.kind===140&&(u=$d(u.parent,Hy).typeParameter.name),Ai(u)&&SVt(u)&&(t.replaceNode(a,u,Me.createIdentifier(`_${u.text}`)),Fl(u.parent)&&mu(u.parent).forEach(m=>{Ai(m.name)&&t.replaceNode(a,m.name,Me.createIdentifier(`_${m.name.text}`))})))}function SVt(t){switch(t.parent.kind){case 169:case 168:return!0;case 260:switch(t.parent.parent.parent.kind){case 250:case 249:return!0}}return!1}function Jle(t,n,a,u,m,g,v,x){xVt(n,a,t,u,m,g,v,x),Ai(n)&&Wm.Core.eachSymbolReferenceInFile(n,u,t,k=>{ba(k.parent)&&k.parent.name===k&&(k=k.parent),!x&&TVt(k)&&a.delete(t,k.parent.parent)})}function xVt(t,n,a,u,m,g,v,x){let{parent:k}=t;if(Fl(k))CVt(n,a,k,u,m,g,v,x);else if(!(x&&Ai(t)&&Wm.Core.isSymbolReferencedInFile(t,u,a))){let T=Ym(k)?t:f_(k)?k.parent:k;Se.assert(T!==a,"should not delete whole source file"),n.delete(a,T)}}function CVt(t,n,a,u,m,g,v,x=!1){if(kVt(u,n,a,m,g,v,x))if(a.modifiers&&a.modifiers.length>0&&(!Ai(a.name)||Wm.Core.isSymbolReferencedInFile(a.name,u,n)))for(let k of a.modifiers)jd(k)&&t.deleteModifier(n,k);else!a.initializer&&lit(a,u,m)&&t.delete(n,a)}function lit(t,n,a){let u=t.parent.parameters.indexOf(t);return!Wm.Core.someSignatureUsage(t.parent,a,n,(m,g)=>!g||g.arguments.length>u)}function kVt(t,n,a,u,m,g,v){let{parent:x}=a;switch(x.kind){case 174:case 176:let k=x.parameters.indexOf(a),T=Sg(x)?x.name:x,I=Wm.Core.getReferencedSymbolsForNode(x.pos,T,m,u,g);if(I){for(let A of I)for(let M of A.references)if(M.kind===Wm.EntryKind.Node){let R=aW(M.node)&&Od(M.node.parent)&&M.node.parent.arguments.length>k,H=ba(M.node.parent)&&aW(M.node.parent.expression)&&Od(M.node.parent.parent)&&M.node.parent.parent.arguments.length>k,U=(Sg(M.node.parent)||sT(M.node.parent))&&M.node.parent!==a.parent&&M.node.parent.parameters.length>k;if(R||H||U)return!1}}return!0;case 262:return x.name&&wVt(t,n,x.name)?uit(x,a,v):!0;case 218:case 219:return uit(x,a,v);case 178:return!1;case 177:return!0;default:return Se.failBadSyntaxKind(x)}}function wVt(t,n,a){return!!Wm.Core.eachSymbolReferenceInFile(a,t,n,u=>Ai(u)&&Od(u.parent)&&u.parent.arguments.includes(u))}function uit(t,n,a){let u=t.parameters,m=u.indexOf(n);return Se.assert(m!==-1,"The parameter should already be in the list"),a?u.slice(m+1).every(g=>Ai(g.name)&&!g.symbol.isReferenced):m===u.length-1}function TVt(t){return(ms(t.parent)&&t.parent.left===t||(mae(t.parent)||z2(t.parent))&&t.parent.operand===t)&&E0(t.parent.parent)}function EVt(t,n,a){let u=a.symbol.declarations;if(u)for(let m of u)t.delete(n,m)}var VIe="fixUnreachableCode",dit=[j.Unreachable_code_detected.code];Cf({errorCodes:dit,getCodeActions(t){if(t.program.getSyntacticDiagnostics(t.sourceFile,t.cancellationToken).length)return;let a=Gs.ChangeTracker.with(t,u=>fit(u,t.sourceFile,t.span.start,t.span.length,t.errorCode));return[Wd(VIe,a,j.Remove_unreachable_code,VIe,j.Remove_all_unreachable_code)]},fixIds:[VIe],getAllCodeActions:t=>$_(t,dit,(n,a)=>fit(n,a.file,a.start,a.length,a.code))});function fit(t,n,a,u,m){let g=wc(n,a),v=go(g,ll);if(v.getStart(n)!==g.getStart(n)){let k=JSON.stringify({statementKind:Se.formatSyntaxKind(v.kind),tokenKind:Se.formatSyntaxKind(g.kind),errorCode:m,start:a,length:u});Se.fail("Token and statement should start at the same point. "+k)}let x=(qu(v.parent)?v.parent:v).parent;if(!qu(v.parent)||v===of(v.parent.statements))switch(x.kind){case 245:if(x.elseStatement){if(qu(v.parent))break;t.replaceNode(n,v,Me.createBlock(F));return}case 247:case 248:t.delete(n,x);return}if(qu(v.parent)){let k=a+u,T=Se.checkDefined(DVt($j(v.parent.statements,v),I=>I.pospit(a,t.sourceFile,t.span.start));return[Wd(HIe,n,j.Remove_unused_label,HIe,j.Remove_all_unused_labels)]},fixIds:[HIe],getAllCodeActions:t=>$_(t,_it,(n,a)=>pit(n,a.file,a.start))});function pit(t,n,a){let u=wc(n,a),m=$d(u.parent,dL),g=u.getStart(n),v=m.statement.getStart(n),x=sv(g,v,n)?v:fd(n.text,Np(m,59,n).end,!0);t.deleteRange(n,{pos:g,end:x})}var mit="fixJSDocTypes_plain",UIe="fixJSDocTypes_nullable",hit=[j.JSDoc_types_can_only_be_used_inside_documentation_comments.code,j._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,j._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code];Cf({errorCodes:hit,getCodeActions(t){let{sourceFile:n}=t,a=t.program.getTypeChecker(),u=yit(n,t.span.start,a);if(!u)return;let{typeNode:m,type:g}=u,v=m.getText(n),x=[k(g,mit,j.Change_all_jsdoc_style_types_to_TypeScript)];return m.kind===314&&x.push(k(g,UIe,j.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),x;function k(T,I,A){let M=Gs.ChangeTracker.with(t,R=>git(R,n,m,T,a));return Wd("jdocTypes",M,[j.Change_0_to_1,v,a.typeToString(T)],I,A)}},fixIds:[mit,UIe],getAllCodeActions(t){let{fixId:n,program:a,sourceFile:u}=t,m=a.getTypeChecker();return $_(t,hit,(g,v)=>{let x=yit(v.file,v.start,m);if(!x)return;let{typeNode:k,type:T}=x,I=k.kind===314&&n===UIe?m.getNullableType(T,32768):T;git(g,u,k,I,m)})}});function git(t,n,a,u,m){t.replaceNode(n,a,m.typeToTypeNode(u,a,void 0))}function yit(t,n,a){let u=go(wc(t,n),IVt),m=u&&u.type;return m&&{typeNode:m,type:NVt(a,m)}}function IVt(t){switch(t.kind){case 234:case 179:case 180:case 262:case 177:case 181:case 200:case 174:case 173:case 169:case 172:case 171:case 178:case 265:case 216:case 260:return!0;default:return!1}}function NVt(t,n){if(SN(n)){let a=t.getTypeFromTypeNode(n.type);return a===t.getNeverType()||a===t.getVoidType()?a:t.getUnionType(ar([a,t.getUndefinedType()],n.postfix?void 0:t.getNullType()))}return t.getTypeFromTypeNode(n)}var JIe="fixMissingCallParentheses",vit=[j.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code];Cf({errorCodes:vit,fixIds:[JIe],getCodeActions(t){let{sourceFile:n,span:a}=t,u=Sit(n,a.start);if(!u)return;let m=Gs.ChangeTracker.with(t,g=>bit(g,t.sourceFile,u));return[Wd(JIe,m,j.Add_missing_call_parentheses,JIe,j.Add_all_missing_call_parentheses)]},getAllCodeActions:t=>$_(t,vit,(n,a)=>{let u=Sit(a.file,a.start);u&&bit(n,a.file,u)})});function bit(t,n,a){t.replaceNodeWithText(n,a,`${a.text}()`)}function Sit(t,n){let a=wc(t,n);if(ba(a.parent)){let u=a.parent;for(;ba(u.parent);)u=u.parent;return u.name}if(Ai(a))return a}var xit="fixMissingTypeAnnotationOnExports",qIe="add-annotation",$Ie="add-type-assertion",AVt="extract-expression",Cit=[j.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code,j.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code,j.At_least_one_accessor_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code,j.Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,j.Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,j.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,j.Expression_type_can_t_be_inferred_with_isolatedDeclarations.code,j.Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations.code,j.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations.code,j.Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations.code,j.Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations.code,j.Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations.code,j.Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations.code,j.Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations.code,j.Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations.code,j.Default_exports_can_t_be_inferred_with_isolatedDeclarations.code,j.Only_const_arrays_can_be_inferred_with_isolatedDeclarations.code,j.Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function.code,j.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_it_s_type_This_is_not_supported_with_isolatedDeclarations.code,j.Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations.code,j.Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit.code],PVt=new Set([177,174,172,262,218,219,260,169,277,263,206,207]),dbt=531469,vie=1;Cf({errorCodes:Cit,fixIds:[xit],getCodeActions(t){let n=[];return bie(qIe,n,t,0,a=>a.addTypeAnnotation(t.span)),bie(qIe,n,t,1,a=>a.addTypeAnnotation(t.span)),bie(qIe,n,t,2,a=>a.addTypeAnnotation(t.span)),bie($Ie,n,t,0,a=>a.addInlineAssertion(t.span)),bie($Ie,n,t,1,a=>a.addInlineAssertion(t.span)),bie($Ie,n,t,2,a=>a.addInlineAssertion(t.span)),bie(AVt,n,t,0,a=>a.extractAsVariable(t.span)),n},getAllCodeActions:t=>{let n=p5e(t,0,a=>{wJ(t,Cit,u=>{a.addTypeAnnotation(u)})});return wX(n.textChanges)}});function bie(t,n,a,u,m){let g=p5e(a,u,m);g.result&&g.textChanges.length&&n.push(Wd(t,g.textChanges,g.result,xit,j.Add_all_missing_type_annotations))}function p5e(t,n,a){let u={typeNode:void 0,mutatedTarget:!1},m=Gs.ChangeTracker.fromContext(t),g=t.sourceFile,v=t.program,x=v.getTypeChecker(),k=h_(v.getCompilerOptions()),T=E9(t.sourceFile,t.program,t.preferences,t.host),I=new Set,A=new Set,M=j4({preserveSourceNewlines:!1}),R=a({addTypeAnnotation:H,addInlineAssertion:X,extractAsVariable:ne});return T.writeFixes(m),{result:R,textChanges:m.getChanges()};function H(ht){t.cancellationToken.throwIfCancellationRequested();let Kt=wc(g,ht.start),ni=se(Kt);if(ni)return fp(ni)?U(ni):_e(ni);let Ut=mt(Kt);if(Ut)return _e(Ut)}function U(ht){var Kt;if(A?.has(ht))return;A?.add(ht);let ni=x.getTypeAtLocation(ht),Ut=x.getPropertiesOfType(ni);if(!ht.name||Ut.length===0)return;let pi=[];for(let Bn of Ut)Jb(Bn.name,h_(v.getCompilerOptions()))&&(Bn.valueDeclaration&&$c(Bn.valueDeclaration)||pi.push(Me.createVariableStatement([Me.createModifier(95)],Me.createVariableDeclarationList([Me.createVariableDeclaration(Bn.name,void 0,qe(x.getTypeOfSymbol(Bn),ht),void 0)]))));if(pi.length===0)return;let wi=[];(Kt=ht.modifiers)!=null&&Kt.some(Bn=>Bn.kind===95)&&wi.push(Me.createModifier(95)),wi.push(Me.createModifier(138));let Bi=Me.createModuleDeclaration(wi,ht.name,Me.createModuleBlock(pi),101441696);return m.insertNodeAfter(g,ht,Bi),[j.Annotate_types_of_properties_expando_function_in_a_namespace]}function $(ht){return!Dp(ht)&&!Od(ht)&&!Ld(ht)&&!Yg(ht)}function K(ht,Kt){return $(ht)&&(ht=Me.createParenthesizedExpression(ht)),Me.createAsExpression(ht,Kt)}function re(ht,Kt){return $(ht)&&(ht=Me.createParenthesizedExpression(ht)),Me.createAsExpression(Me.createSatisfiesExpression(ht,mp(Kt)),Kt)}function X(ht){t.cancellationToken.throwIfCancellationRequested();let Kt=wc(g,ht.start);if(se(Kt))return;let Ut=ut(Kt,ht);if(!Ut||F2(Ut)||F2(Ut.parent))return;let pi=An(Ut),wi=Q0(Ut);if(!wi&&y1(Ut)||go(Ut,Uu)||go(Ut,pb)||pi&&(go(Ut,KC)||go(Ut,Qa))||yx(Ut))return;let Bi=go(Ut,$c),Bn=Bi&&x.getTypeAtLocation(Bi);if(Bn&&Bn.flags&8192||!(pi||wi))return;let{typeNode:mr,mutatedTarget:Ei}=Ae(Ut,Bn);if(!(!mr||Ei))return wi?m.insertNodeAt(g,Ut.end,K(mp(Ut.name),mr),{prefix:": "}):pi?m.replaceNode(g,Ut,re(mp(Ut),mr)):Se.assertNever(Ut),[j.Add_satisfies_and_an_inline_type_assertion_with_0,ft(mr)]}function ne(ht){t.cancellationToken.throwIfCancellationRequested();let Kt=wc(g,ht.start),ni=ut(Kt,ht);if(!ni||F2(ni)||F2(ni.parent)||!An(ni))return;if(Yg(ni))return m.replaceNode(g,ni,K(ni,Me.createTypeReferenceNode("const"))),[j.Mark_array_literal_as_const];let pi=go(ni,Ih);if(pi){if(pi===ni.parent&&Dp(ni))return;let wi=Me.createUniqueName(G4(ni,g,x,g),16),Bi=ni,Bn=ni;if(yx(Bi)&&(Bi=uN(Bi.parent),$e(Bi.parent)?Bn=Bi=Bi.parent:Bn=K(Bi,Me.createTypeReferenceNode("const"))),Dp(Bi))return;let mr=Me.createVariableStatement(void 0,Me.createVariableDeclarationList([Me.createVariableDeclaration(wi,void 0,void 0,Bn)],2)),Ei=go(ni,ll);return m.insertNodeBefore(g,Ei,mr),m.replaceNode(g,Bi,Me.createAsExpression(Me.cloneNode(wi),Me.createTypeQueryNode(Me.cloneNode(wi)))),[j.Extract_to_variable_and_replace_with_0_as_typeof_0,ft(wi)]}}function se(ht){let Kt=go(ht,ni=>ll(ni)?"quit":B5(ni));if(Kt&&B5(Kt)){let ni=Kt;if(ms(ni)&&(ni=ni.left,!B5(ni)))return;let Ut=x.getTypeAtLocation(ni.expression);if(!Ut)return;let pi=x.getPropertiesOfType(Ut);if(En(pi,wi=>wi.valueDeclaration===Kt||wi.valueDeclaration===Kt.parent)){let wi=Ut.symbol.valueDeclaration;if(wi){if(H8(wi)&&$c(wi.parent))return wi.parent;if(fp(wi))return wi}}}}function _e(ht){if(!I?.has(ht))switch(I?.add(ht),ht.kind){case 169:case 172:case 260:return _t(ht);case 219:case 218:case 262:case 174:case 177:return ae(ht,g);case 277:return le(ht);case 263:return Ee(ht);case 206:case 207:return be(ht);default:throw new Error(`Cannot find a fix for the given node ${ht.kind}`)}}function ae(ht,Kt){if(ht.type)return;let{typeNode:ni}=Ae(ht);if(ni)return m.tryInsertTypeAnnotation(Kt,ht,ni),[j.Add_return_type_0,ft(ni)]}function le(ht){if(ht.isExportEquals)return;let{typeNode:Kt}=Ae(ht.expression);if(!Kt)return;let ni=Me.createUniqueName("_default");return m.replaceNodeWithNodes(g,ht,[Me.createVariableStatement(void 0,Me.createVariableDeclarationList([Me.createVariableDeclaration(ni,void 0,Kt,ht.expression)],2)),Me.updateExportAssignment(ht,ht?.modifiers,ni)]),[j.Extract_default_export_to_variable]}function Ee(ht){var Kt,ni;let Ut=(Kt=ht.heritageClauses)==null?void 0:Kt.find(zn=>zn.token===96),pi=Ut?.types[0];if(!pi)return;let{typeNode:wi}=Ae(pi.expression);if(!wi)return;let Bi=Me.createUniqueName(ht.name?ht.name.text+"Base":"Anonymous",16),Bn=Me.createVariableStatement(void 0,Me.createVariableDeclarationList([Me.createVariableDeclaration(Bi,void 0,wi,pi.expression)],2));m.insertNodeBefore(g,ht,Bn);let mr=L6(g.text,pi.end),Ei=((ni=mr?.[mr.length-1])==null?void 0:ni.end)??pi.end;return m.replaceRange(g,{pos:pi.getFullStart(),end:Ei},Bi,{prefix:" "}),[j.Extract_base_class_to_variable]}let xe;(ht=>{ht[ht.Text=0]="Text",ht[ht.Computed=1]="Computed",ht[ht.ArrayAccess=2]="ArrayAccess",ht[ht.Identifier=3]="Identifier"})(xe||(xe={}));function be(ht){var Kt;let ni=ht.parent,Ut=ht.parent.parent.parent;if(!ni.initializer)return;let pi,wi=[];if(Ai(ni.initializer))pi={expression:{kind:3,identifier:ni.initializer}};else{let mr=Me.createUniqueName("dest",16);pi={expression:{kind:3,identifier:mr}},wi.push(Me.createVariableStatement(void 0,Me.createVariableDeclarationList([Me.createVariableDeclaration(mr,void 0,void 0,ni.initializer)],2)))}let Bi=[];QE(ht)?Le(ht,Bi,pi):fe(ht,Bi,pi);let Bn=new Map;for(let mr of Bi){if(mr.element.propertyName&&f_(mr.element.propertyName)){let zn=mr.element.propertyName.expression,zr=Me.getGeneratedNameForNode(zn),xr=Me.createVariableDeclaration(zr,void 0,void 0,zn),lo=Me.createVariableDeclarationList([xr],2),_r=Me.createVariableStatement(void 0,lo);wi.push(_r),Bn.set(zn,zr)}let Ei=mr.element.name;if(QE(Ei))Le(Ei,Bi,mr);else if(fb(Ei))fe(Ei,Bi,mr);else{let{typeNode:zn}=Ae(Ei),zr=we(mr,Bn);if(mr.element.initializer){let lo=(Kt=mr.element)==null?void 0:Kt.propertyName,_r=Me.createUniqueName(lo&&Ai(lo)?lo.text:"temp",16);wi.push(Me.createVariableStatement(void 0,Me.createVariableDeclarationList([Me.createVariableDeclaration(_r,void 0,void 0,zr)],2))),zr=Me.createConditionalExpression(Me.createBinaryExpression(_r,Me.createToken(37),Me.createIdentifier("undefined")),Me.createToken(58),mr.element.initializer,Me.createToken(59),zr)}let xr=kc(Ut,32)?[Me.createToken(95)]:void 0;wi.push(Me.createVariableStatement(xr,Me.createVariableDeclarationList([Me.createVariableDeclaration(Ei,void 0,zn,zr)],2)))}}return Ut.declarationList.declarations.length>1&&wi.push(Me.updateVariableStatement(Ut,Ut.modifiers,Me.updateVariableDeclarationList(Ut.declarationList,Ut.declarationList.declarations.filter(mr=>mr!==ht.parent)))),m.replaceNodeWithNodes(g,Ut,wi),[j.Extract_binding_expressions_to_variable]}function Le(ht,Kt,ni){for(let Ut=0;Ut=0;--pi){let wi=ni[pi].expression;wi.kind===0?Ut=Me.createPropertyAccessChain(Ut,void 0,Me.createIdentifier(wi.text)):wi.kind===1?Ut=Me.createElementAccessExpression(Ut,Kt.get(wi.computed)):wi.kind===2&&(Ut=Me.createElementAccessExpression(Ut,wi.arrayIndex))}return Ut}function Ae(ht,Kt){if(n===1)return Ke(ht);let ni;if(F2(ht)){let wi=x.getSignatureFromDeclaration(ht);if(wi){let Bi=x.getTypePredicateOfSignature(wi);if(Bi)return Bi.type?{typeNode:rt(Bi,go(ht,y1)??g,pi(Bi.type)),mutatedTarget:!1}:u;ni=x.getReturnTypeOfSignature(wi)}}else ni=x.getTypeAtLocation(ht);if(!ni)return u;if(n===2){Kt&&(ni=Kt);let wi=x.getWidenedLiteralType(ni);if(x.isTypeAssignableTo(wi,ni))return u;ni=wi}let Ut=go(ht,y1)??g;return Fl(ht)&&x.requiresAddingImplicitUndefined(ht,Ut)&&(ni=x.getUnionType([x.getUndefinedType(),ni],0)),{typeNode:qe(ni,Ut,pi(ni)),mutatedTarget:!1};function pi(wi){return($c(ht)||vu(ht)&&kc(ht,264))&&wi.flags&8192?1048576:0}}function Ge(ht){return Me.createTypeQueryNode(mp(ht))}function he(ht,Kt="temp"){let ni=!!go(ht,$e);return ni?Re(ht,Kt,ni,Ut=>Ut.elements,yx,Me.createSpreadElement,Ut=>Me.createArrayLiteralExpression(Ut,!0),Ut=>Me.createTupleTypeNode(Ut.map(Me.createRestTypeNode))):u}function Oe(ht,Kt="temp"){let ni=!!go(ht,$e);return Re(ht,Kt,ni,Ut=>Ut.properties,H2,Me.createSpreadAssignment,Ut=>Me.createObjectLiteralExpression(Ut,!0),Me.createIntersectionTypeNode)}function Re(ht,Kt,ni,Ut,pi,wi,Bi,Bn){let mr=[],Ei=[],zn,zr=go(ht,ll);for(let _r of Ut(ht))pi(_r)?(lo(),Dp(_r.expression)?(mr.push(Ge(_r.expression)),Ei.push(_r)):xr(_r.expression)):(zn??(zn=[])).push(_r);if(Ei.length===0)return u;return lo(),m.replaceNode(g,ht,Bi(Ei)),{typeNode:Bn(mr),mutatedTarget:!0};function xr(_r){let Hs=Me.createUniqueName(Kt+"_Part"+(Ei.length+1),16),ai=ni?Me.createAsExpression(_r,Me.createTypeReferenceNode("const")):_r,mn=Me.createVariableStatement(void 0,Me.createVariableDeclarationList([Me.createVariableDeclaration(Hs,void 0,void 0,ai)],2));m.insertNodeBefore(g,zr,mn),mr.push(Ge(Hs)),Ei.push(wi(Hs))}function lo(){zn&&(xr(Bi(zn)),zn=void 0)}}function $e(ht){return gy(ht)&&Jx(ht.type)}function Ke(ht){if(Fl(ht))return u;if(Q0(ht))return{typeNode:Ge(ht.name),mutatedTarget:!1};if(Dp(ht))return{typeNode:Ge(ht),mutatedTarget:!1};if($e(ht))return Ke(ht.expression);if(Yg(ht)){let Kt=go(ht,$c),ni=Kt&&Ai(Kt.name)?Kt.name.text:void 0;return he(ht,ni)}if(Ld(ht)){let Kt=go(ht,$c),ni=Kt&&Ai(Kt.name)?Kt.name.text:void 0;return Oe(ht,ni)}if($c(ht)&&ht.initializer)return Ke(ht.initializer);if(Cp(ht)){let{typeNode:Kt,mutatedTarget:ni}=Ke(ht.whenTrue);if(!Kt)return u;let{typeNode:Ut,mutatedTarget:pi}=Ke(ht.whenFalse);return Ut?{typeNode:Me.createUnionTypeNode([Kt,Ut]),mutatedTarget:ni||pi}:u}return u}function qe(ht,Kt,ni=0){let Ut=!1,pi=Uye(x,T,ht,Kt,k,dbt|ni,vie,{moduleResolverHost:v,trackSymbol(){return!0},reportTruncationError(){Ut=!0}});return Ut?Me.createKeywordTypeNode(133):pi}function rt(ht,Kt,ni=0){let Ut=!1,pi=Fit(x,T,ht,Kt,k,dbt|ni,vie,{moduleResolverHost:v,trackSymbol(){return!0},reportTruncationError(){Ut=!0}});return Ut?Me.createKeywordTypeNode(133):pi}function _t(ht){let{typeNode:Kt}=Ae(ht);if(Kt)return ht.type?m.replaceNode(Vo(ht),ht.type,Kt):m.tryInsertTypeAnnotation(Vo(ht),ht,Kt),[j.Add_annotation_of_type_0,ft(Kt)]}function ft(ht){De(ht,1);let Kt=M.printNode(4,ht,g);return Kt.length>Z$?Kt.substring(0,Z$-3)+"...":(De(ht,0),Kt)}function mt(ht){return go(ht,Kt=>PVt.has(Kt.kind)&&(!fb(Kt)&&!QE(Kt)||$c(Kt.parent)))}function ut(ht,Kt){for(;ht&&ht.endwit(g,n,u));return[Wd(m5e,m,j.Add_async_modifier_to_containing_function,m5e,j.Add_all_missing_async_modifiers)]},fixIds:[m5e],getAllCodeActions:function(n){let a=new Map;return $_(n,fbt,(u,m)=>{let g=kit(m.file,m.start);!g||!HC(a,pp(g.insertBefore))||wit(u,n.sourceFile,g)})}});function _bt(t){if(t.type)return t.type;if($c(t.parent)&&t.parent.type&&xp(t.parent.type))return t.parent.type.type}function kit(t,n){let a=wc(t,n),u=BS(a);if(!u)return;let m;switch(u.kind){case 174:m=u.name;break;case 262:case 218:m=Np(u,100,t);break;case 219:let g=u.typeParameters?30:21;m=Np(u,g,t)||of(u.parameters);break;default:return}return m&&{insertBefore:m,returnType:_bt(u)}}function wit(t,n,{insertBefore:a,returnType:u}){if(u){let m=sb(u);(!m||m.kind!==80||m.text!=="Promise")&&t.replaceNode(n,u,Me.createTypeReferenceNode("Promise",Me.createNodeArray([u])))}t.insertModifierBefore(n,134,a)}var h5e=[j._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,j._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],g5e="fixPropertyOverrideAccessor";Cf({errorCodes:h5e,getCodeActions(t){let n=y5e(t.sourceFile,t.span.start,t.span.length,t.errorCode,t);if(n)return[Wd(g5e,n,j.Generate_get_and_set_accessors,g5e,j.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[g5e],getAllCodeActions:t=>$_(t,h5e,(n,a)=>{let u=y5e(a.file,a.start,a.length,a.code,t);if(u)for(let m of u)n.pushRaw(t.sourceFile,m)})});function y5e(t,n,a,u,m){let g,v;if(u===j._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)g=n,v=n+a;else if(u===j._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){let x=m.program.getTypeChecker(),k=wc(t,n).parent;Se.assert(O_(k),"error span of fixPropertyOverrideAccessor should only be on an accessor");let T=k.parent;Se.assert(bc(T),"erroneous accessors should only be inside classes");let I=vp(Vit(T,x));if(!I)return[];let A=Ba(k8(k.name)),M=x.getPropertyOfType(x.getTypeAtLocation(I),A);if(!M||!M.valueDeclaration)return[];g=M.valueDeclaration.pos,v=M.valueDeclaration.end,t=Vo(M.valueDeclaration)}else Se.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+u);return kbt(t,m.program,g,v,m,j.Generate_get_and_set_accessors.message)}var v5e="inferFromUsage",pbt=[j.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,j.Variable_0_implicitly_has_an_1_type.code,j.Parameter_0_implicitly_has_an_1_type.code,j.Rest_parameter_0_implicitly_has_an_any_type.code,j.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,j._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,j.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,j.Member_0_implicitly_has_an_1_type.code,j.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,j.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,j.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,j.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,j.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,j._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,j.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,j.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,j.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];Cf({errorCodes:pbt,getCodeActions(t){let{sourceFile:n,program:a,span:{start:u},errorCode:m,cancellationToken:g,host:v,preferences:x}=t,k=wc(n,u),T,I=Gs.ChangeTracker.with(t,M=>{T=Tit(M,n,k,m,a,g,ql,v,x)}),A=T&&Nu(T);return!A||I.length===0?void 0:[Wd(v5e,I,[LVt(m,k),_h(A)],v5e,j.Infer_all_types_from_usage)]},fixIds:[v5e],getAllCodeActions(t){let{sourceFile:n,program:a,cancellationToken:u,host:m,preferences:g}=t,v=GW();return $_(t,pbt,(x,k)=>{Tit(x,n,wc(k.file,k.start),k.code,a,u,v,m,g)})}});function LVt(t,n){switch(t){case j.Parameter_0_implicitly_has_an_1_type.code:case j.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return zc(BS(n))?j.Infer_type_of_0_from_usage:j.Infer_parameter_types_from_usage;case j.Rest_parameter_0_implicitly_has_an_any_type.code:case j.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return j.Infer_parameter_types_from_usage;case j.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return j.Infer_this_type_of_0_from_usage;default:return j.Infer_type_of_0_from_usage}}function mbt(t){switch(t){case j.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return j.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case j.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return j.Variable_0_implicitly_has_an_1_type.code;case j.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return j.Parameter_0_implicitly_has_an_1_type.code;case j.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return j.Rest_parameter_0_implicitly_has_an_any_type.code;case j.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return j.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case j._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return j._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case j.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return j.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case j.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return j.Member_0_implicitly_has_an_1_type.code}return t}function Tit(t,n,a,u,m,g,v,x,k){if(!$$(a.kind)&&a.kind!==80&&a.kind!==26&&a.kind!==110)return;let{parent:T}=a,I=E9(n,m,k,x);switch(u=mbt(u),u){case j.Member_0_implicitly_has_an_1_type.code:case j.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if($c(T)&&v(T)||vu(T)||hx(T))return hbt(t,I,n,T,m,x,g),I.writeFixes(t),T;if(ba(T)){let R=zye(T.name,m,g),H=vJ(R,T,m,x);if(H){let U=Me.createJSDocTypeTag(void 0,Me.createJSDocTypeExpression(H),void 0);t.addJSDocTags(n,$d(T.parent.parent,E0),[U])}return I.writeFixes(t),T}return;case j.Variable_0_implicitly_has_an_1_type.code:{let R=m.getTypeChecker().getSymbolAtLocation(a);return R&&R.valueDeclaration&&$c(R.valueDeclaration)&&v(R.valueDeclaration)?(hbt(t,I,Vo(R.valueDeclaration),R.valueDeclaration,m,x,g),I.writeFixes(t),R.valueDeclaration):void 0}}let A=BS(a);if(A===void 0)return;let M;switch(u){case j.Parameter_0_implicitly_has_an_1_type.code:if(zc(A)){GIe(t,I,n,A,m,x,g),M=A;break}case j.Rest_parameter_0_implicitly_has_an_any_type.code:if(v(A)){let R=$d(T,Fl);OVt(t,I,n,R,A,m,x,g),M=R}break;case j.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case j._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:n_(A)&&Ai(A.name)&&(b5e(t,I,n,A,zye(A.name,m,g),m,x),M=A);break;case j.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:zc(A)&&(GIe(t,I,n,A,m,x,g),M=A);break;case j.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:Gs.isThisTypeAnnotatable(A)&&v(A)&&(FVt(t,n,A,m,x,g),M=A);break;default:return Se.fail(String(u))}return I.writeFixes(t),M}function hbt(t,n,a,u,m,g,v){Ai(u.name)&&b5e(t,n,a,u,zye(u.name,m,v),m,g)}function OVt(t,n,a,u,m,g,v,x){if(!Ai(u.name))return;let k=vbt(m,a,g,x);if(Se.assert(m.parameters.length===k.length,"Parameter count and inference count should match"),Ys(m))S5e(t,a,k,g,v);else{let T=Zc(m)&&!Np(m,21,a);T&&t.insertNodeBefore(a,of(m.parameters),Me.createToken(21));for(let{declaration:I,type:A}of k)I&&!I.type&&!I.initializer&&b5e(t,n,a,I,A,g,v);T&&t.insertNodeAfter(a,Bu(m.parameters),Me.createToken(22))}}function FVt(t,n,a,u,m,g){let v=x5e(a,n,u,g);if(!v||!v.length)return;let x=KIe(u,v,g).thisParameter(),k=vJ(x,a,u,m);k&&(Ys(a)?gbt(t,n,a,k):t.tryInsertThisTypeAnnotation(n,a,k))}function gbt(t,n,a,u){t.addJSDocTags(n,a,[Me.createJSDocThisTag(void 0,Me.createJSDocTypeExpression(u))])}function GIe(t,n,a,u,m,g,v){let x=Ed(u.parameters);if(x&&Ai(u.name)&&Ai(x.name)){let k=zye(u.name,m,v);k===m.getTypeChecker().getAnyType()&&(k=zye(x.name,m,v)),Ys(u)?S5e(t,a,[{declaration:x,type:k}],m,g):b5e(t,n,a,x,k,m,g)}}function b5e(t,n,a,u,m,g,v){let x=vJ(m,u,g,v);if(x)if(Ys(a)&&u.kind!==171){let k=$c(u)?ac(u.parent.parent,Zh):u;if(!k)return;let T=Me.createJSDocTypeExpression(x),I=n_(u)?Me.createJSDocReturnTag(void 0,T,void 0):Me.createJSDocTypeTag(void 0,T,void 0);t.addJSDocTags(a,k,[I])}else ybt(x,u,a,t,n,h_(g.getCompilerOptions()))||t.tryInsertTypeAnnotation(a,u,x)}function ybt(t,n,a,u,m,g){let v=DN(t,g);return v&&u.tryInsertTypeAnnotation(a,n,v.typeNode)?(ee(v.symbols,x=>m.addImportFromExportedSymbol(x,!0)),!0):!1}function S5e(t,n,a,u,m){let g=a.length&&a[0].declaration.parent;if(!g)return;let v=Dc(a,x=>{let k=x.declaration;if(k.initializer||M6(k)||!Ai(k.name))return;let T=x.type&&vJ(x.type,k,u,m);if(T){let I=Me.cloneNode(k.name);return De(I,7168),{name:Me.cloneNode(k.name),param:k,isOptional:!!x.isOptional,typeNode:T}}});if(v.length)if(Zc(g)||yd(g)){let x=Zc(g)&&!Np(g,21,n);x&&t.insertNodeBefore(n,of(g.parameters),Me.createToken(21)),ee(v,({typeNode:k,param:T})=>{let I=Me.createJSDocTypeTag(void 0,Me.createJSDocTypeExpression(k)),A=Me.createJSDocComment(void 0,[I]);t.insertNodeAt(n,T.getStart(n),A,{suffix:" "})}),x&&t.insertNodeAfter(n,Bu(g.parameters),Me.createToken(22))}else{let x=$i(v,({name:k,typeNode:T,isOptional:I})=>Me.createJSDocParameterTag(void 0,k,!!I,Me.createJSDocTypeExpression(T),!1,void 0));t.addJSDocTags(n,g,x)}}function Sie(t,n,a){return Dc(Wm.getReferenceEntriesForNode(-1,t,n,n.getSourceFiles(),a),u=>u.kind!==Wm.EntryKind.Span?ac(u.node,Ai):void 0)}function zye(t,n,a){let u=Sie(t,n,a);return KIe(n,u,a).single()}function vbt(t,n,a,u){let m=x5e(t,n,a,u);return m&&KIe(a,m,u).parameters(t)||t.parameters.map(g=>({declaration:g,type:Ai(g.name)?zye(g.name,a,u):a.getTypeChecker().getAnyType()}))}function x5e(t,n,a,u){let m;switch(t.kind){case 176:m=Np(t,137,n);break;case 219:case 218:let g=t.parent;m=($c(g)||vu(g))&&Ai(g.name)?g.name:t.name;break;case 262:case 174:case 173:m=t.name;break}if(m)return Sie(m,a,u)}function KIe(t,n,a){let u=t.getTypeChecker(),m={string:()=>u.getStringType(),number:()=>u.getNumberType(),Array:qe=>u.createArrayType(qe),Promise:qe=>u.createPromiseType(qe)},g=[u.getStringType(),u.getNumberType(),u.createArrayType(u.getAnyType()),u.createPromiseType(u.getAnyType())];return{single:k,parameters:T,thisParameter:I};function v(){return{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}}function x(qe){let rt=new Map;for(let ft of qe)ft.properties&&ft.properties.forEach((mt,ut)=>{rt.has(ut)||rt.set(ut,[]),rt.get(ut).push(mt)});let _t=new Map;return rt.forEach((ft,mt)=>{_t.set(mt,x(ft))}),{isNumber:qe.some(ft=>ft.isNumber),isString:qe.some(ft=>ft.isString),isNumberOrString:qe.some(ft=>ft.isNumberOrString),candidateTypes:za(qe,ft=>ft.candidateTypes),properties:_t,calls:za(qe,ft=>ft.calls),constructs:za(qe,ft=>ft.constructs),numberIndex:ee(qe,ft=>ft.numberIndex),stringIndex:ee(qe,ft=>ft.stringIndex),candidateThisTypes:za(qe,ft=>ft.candidateThisTypes),inferredTypes:void 0}}function k(){return Ee(A(n))}function T(qe){if(n.length===0||!qe.parameters)return;let rt=v();for(let ft of n)a.throwIfCancellationRequested(),M(ft,rt);let _t=[...rt.constructs||[],...rt.calls||[]];return qe.parameters.map((ft,mt)=>{let ut=[],ht=RS(ft),Kt=!1;for(let Ut of _t)if(Ut.argumentTypes.length<=mt)Kt=Ys(qe),ut.push(u.getUndefinedType());else if(ht)for(let pi=mt;pi_t.every(mt=>!mt(ft)))}function le(qe){return Ee(be(qe))}function Ee(qe){if(!qe.length)return u.getAnyType();let rt=u.getUnionType([u.getStringType(),u.getNumberType()]),ft=ae(qe,[{high:ut=>ut===u.getStringType()||ut===u.getNumberType(),low:ut=>ut===rt},{high:ut=>!(ut.flags&16385),low:ut=>!!(ut.flags&16385)},{high:ut=>!(ut.flags&114689)&&!(Ls(ut)&16),low:ut=>!!(Ls(ut)&16)}]),mt=ft.filter(ut=>Ls(ut)&16);return mt.length&&(ft=ft.filter(ut=>!(Ls(ut)&16)),ft.push(xe(mt))),u.getWidenedType(u.getUnionType(ft.map(u.getBaseTypeOfLiteralType),2))}function xe(qe){if(qe.length===1)return qe[0];let rt=[],_t=[],ft=[],mt=[],ut=!1,ht=!1,Kt=Hb();for(let pi of qe){for(let Bn of u.getPropertiesOfType(pi))Kt.add(Bn.escapedName,Bn.valueDeclaration?u.getTypeOfSymbolAtLocation(Bn,Bn.valueDeclaration):u.getAnyType());rt.push(...u.getSignaturesOfType(pi,0)),_t.push(...u.getSignaturesOfType(pi,1));let wi=u.getIndexInfoOfType(pi,0);wi&&(ft.push(wi.type),ut=ut||wi.isReadonly);let Bi=u.getIndexInfoOfType(pi,1);Bi&&(mt.push(Bi.type),ht=ht||Bi.isReadonly)}let ni=C2(Kt,(pi,wi)=>{let Bi=wi.lengthu.getBaseTypeOfLiteralType(Kt)),ht=(ft=qe.calls)!=null&&ft.length?Le(qe):void 0;return ht&&ut?mt.push(u.getUnionType([ht,...ut],2)):(ht&&mt.push(ht),Z(ut)&&mt.push(...ut)),mt.push(...fe(qe)),mt}function Le(qe){let rt=new Map;qe.properties&&qe.properties.forEach((ut,ht)=>{let Kt=u.createSymbol(4,ht);Kt.links.type=le(ut),rt.set(ht,Kt)});let _t=qe.calls?[Re(qe.calls)]:[],ft=qe.constructs?[Re(qe.constructs)]:[],mt=qe.stringIndex?[u.createIndexInfo(u.getStringType(),le(qe.stringIndex),!1)]:[];return u.createAnonymousType(void 0,rt,_t,ft,mt)}function fe(qe){if(!qe.properties||!qe.properties.size)return[];let rt=g.filter(_t=>we(_t,qe));return 0Ae(_t,qe)):[]}function we(qe,rt){return rt.properties?!Km(rt.properties,(_t,ft)=>{let mt=u.getTypeOfPropertyOfType(qe,ft);return mt?_t.calls?!u.getSignaturesOfType(mt,0).length||!u.isTypeAssignableTo(mt,Oe(_t.calls)):!u.isTypeAssignableTo(mt,le(_t)):!0}):!1}function Ae(qe,rt){if(!(Ls(qe)&4)||!rt.properties)return qe;let _t=qe.target,ft=vp(_t.typeParameters);if(!ft)return qe;let mt=[];return rt.properties.forEach((ut,ht)=>{let Kt=u.getTypeOfPropertyOfType(_t,ht);Se.assert(!!Kt,"generic should have all the properties of its reference."),mt.push(...Ge(Kt,le(ut),ft))}),m[qe.symbol.escapedName](Ee(mt))}function Ge(qe,rt,_t){if(qe===_t)return[rt];if(qe.flags&3145728)return za(qe.types,ut=>Ge(ut,rt,_t));if(Ls(qe)&4&&Ls(rt)&4){let ut=u.getTypeArguments(qe),ht=u.getTypeArguments(rt),Kt=[];if(ut&&ht)for(let ni=0;nimt.argumentTypes.length));for(let mt=0;mt<_t;mt++){let ut=u.createSymbol(1,kh(`arg${mt}`));ut.links.type=Ee(qe.map(ht=>ht.argumentTypes[mt]||u.getUndefinedType())),qe.some(ht=>ht.argumentTypes[mt]===void 0)&&(ut.flags|=16777216),rt.push(ut)}let ft=le(x(qe.map(mt=>mt.return_)));return u.createSignature(void 0,void 0,void 0,rt,ft,void 0,_t,0)}function $e(qe,rt){rt&&!(rt.flags&1)&&!(rt.flags&131072)&&(qe.candidateTypes||(qe.candidateTypes=[])).push(rt)}function Ke(qe,rt){rt&&!(rt.flags&1)&&!(rt.flags&131072)&&(qe.candidateThisTypes||(qe.candidateThisTypes=[])).push(rt)}}var C5e="fixReturnTypeInAsyncFunction",Eit=[j.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code];Cf({errorCodes:Eit,fixIds:[C5e],getCodeActions:function(n){let{sourceFile:a,program:u,span:m}=n,g=u.getTypeChecker(),v=Dit(a,u.getTypeChecker(),m.start);if(!v)return;let{returnTypeNode:x,returnType:k,promisedTypeNode:T,promisedType:I}=v,A=Gs.ChangeTracker.with(n,M=>Iit(M,a,x,T));return[Wd(C5e,A,[j.Replace_0_with_Promise_1,g.typeToString(k),g.typeToString(I)],C5e,j.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:t=>$_(t,Eit,(n,a)=>{let u=Dit(a.file,t.program.getTypeChecker(),a.start);u&&Iit(n,a.file,u.returnTypeNode,u.promisedTypeNode)})});function Dit(t,n,a){if(Ys(t))return;let u=wc(t,a),m=go(u,Rp),g=m?.type;if(!g)return;let v=n.getTypeFromTypeNode(g),x=n.getAwaitedType(v)||n.getVoidType(),k=n.typeToTypeNode(x,g,void 0);if(k)return{returnTypeNode:g,returnType:v,promisedTypeNode:k,promisedType:x}}function Iit(t,n,a,u){t.replaceNode(n,a,Me.createTypeReferenceNode("Promise",[u]))}var Nit="disableJsDiagnostics",Ait="disableJsDiagnostics",Pit=Dc(Object.keys(j),t=>{let n=j[t];return n.category===1?n.code:void 0});Cf({errorCodes:Pit,getCodeActions:function(n){let{sourceFile:a,program:u,span:m,host:g,formatContext:v}=n;if(!Ys(a)||!HG(a,u.getCompilerOptions()))return;let x=a.checkJsDirective?"":fO(g,v.options),k=[rD(Nit,[m1t(a.fileName,[lJ(a.checkJsDirective?cg(a.checkJsDirective.pos,a.checkJsDirective.end):h1(0,0),`// @ts-nocheck${x}`)])],j.Disable_checking_for_this_file)];return Gs.isValidLocationToAddComment(a,m.start)&&k.unshift(Wd(Nit,Gs.ChangeTracker.with(n,T=>k5e(T,a,m.start)),j.Ignore_this_error_message,Ait,j.Add_ts_ignore_to_all_error_messages)),k},fixIds:[Ait],getAllCodeActions:t=>{let n=new Set;return $_(t,Pit,(a,u)=>{Gs.isValidLocationToAddComment(u.file,u.start)&&k5e(a,u.file,u.start,n)})}});function k5e(t,n,a,u){let{line:m}=Df(n,a);(!u||dc(u,m))&&t.insertCommentBeforeLine(n,m,a," @ts-ignore")}function EJ(t,n,a,u,m,g,v){let x=t.symbol.members;for(let k of n)x.has(k.escapedName)||XIe(k,t,a,u,m,g,v,void 0)}function AX(t){return{trackSymbol:()=>!1,moduleResolverHost:ole(t.program,t.host)}}var Lit=(t=>(t[t.Method=1]="Method",t[t.Property=2]="Property",t[t.All=3]="All",t))(Lit||{});function XIe(t,n,a,u,m,g,v,x,k=3,T=!1){let I=t.getDeclarations(),A=Ed(I),M=u.program.getTypeChecker(),R=h_(u.program.getCompilerOptions()),H=A?.kind??171,U=fe(t,A),$=A?A_(A):0,K=$&256;K|=$&1?1:$&4?4:0,A&&g1(A)&&(K|=512);let re=le(),X=M.getWidenedType(M.getTypeOfSymbolAtLocation(t,n)),ne=!!(t.flags&16777216),se=!!(n.flags&33554432)||T,_e=Nk(a,m);switch(H){case 171:case 172:let we=1;we|=_e===0?268435456:0;let Ae=M.typeToTypeNode(X,n,we,8,AX(u));if(g){let he=DN(Ae,R);he&&(Ae=he.typeNode,mz(g,he.symbols))}v(Me.createPropertyDeclaration(re,A?xe(U):t.getName(),ne&&k&2?Me.createToken(58):void 0,Ae,void 0));break;case 177:case 178:{Se.assertIsDefined(I);let he=M.typeToTypeNode(X,n,void 0,void 0,AX(u)),Oe=j2(I,A),Re=Oe.secondAccessor?[Oe.firstAccessor,Oe.secondAccessor]:[Oe.firstAccessor];if(g){let $e=DN(he,R);$e&&(he=$e.typeNode,mz(g,$e.symbols))}for(let $e of Re)if(n_($e))v(Me.createGetAccessorDeclaration(re,xe(U),F,Le(he),be(x,_e,se)));else{Se.assertNode($e,zc,"The counterpart to a getter should be a setter");let Ke=w5($e),qe=Ke&&Ai(Ke.name)?Un(Ke.name):void 0;v(Me.createSetAccessorDeclaration(re,xe(U),Rit(1,[qe],[Le(he)],1,!1),be(x,_e,se)))}break}case 173:case 174:Se.assertIsDefined(I);let Ge=X.isUnion()?za(X.types,he=>he.getCallSignatures()):X.getCallSignatures();if(!En(Ge))break;if(I.length===1){Se.assert(Ge.length===1,"One declaration implies one signature");let he=Ge[0];ae(_e,he,re,xe(U),be(x,_e,se));break}for(let he of Ge)he.declaration&&he.declaration.flags&33554432||ae(_e,he,re,xe(U));if(!se)if(I.length>Ge.length){let he=M.getSignatureFromDeclaration(I[I.length-1]);ae(_e,he,re,xe(U),be(x,_e))}else Se.assert(I.length===Ge.length,"Declarations and signatures should match count"),v(MVt(M,u,n,Ge,xe(U),ne&&!!(k&1),re,_e,x));break}function ae(we,Ae,Ge,he,Oe){let Re=Vye(174,u,we,Ae,Oe,he,Ge,ne&&!!(k&1),n,g);Re&&v(Re)}function le(){let we;return K&&(we=pu(we,Me.createModifiersFromModifierFlags(K))),Ee()&&(we=ar(we,Me.createToken(164))),we&&Me.createNodeArray(we)}function Ee(){return!!(u.program.getCompilerOptions().noImplicitOverride&&A&&qA(A))}function xe(we){return Ai(we)&&we.escapedText==="constructor"?Me.createComputedPropertyName(Me.createStringLiteral(Un(we),_e===0)):mp(we,!1)}function be(we,Ae,Ge){return Ge?void 0:mp(we,!1)||QIe(Ae)}function Le(we){return mp(we,!1)}function fe(we,Ae){if(Ag(we)&262144){let Ge=we.links.nameType;if(Ge&&px(Ge))return Me.createIdentifier(Ba(rT(Ge)))}return mp(Nu(Ae),!1)}}function Vye(t,n,a,u,m,g,v,x,k,T){let I=n.program,A=I.getTypeChecker(),M=h_(I.getCompilerOptions()),R=Ys(k),H=524545|(a===0?268435456:0),U=A.signatureToSignatureDeclaration(u,t,k,H,8,AX(n));if(!U)return;let $=R?void 0:U.typeParameters,K=U.parameters,re=R?void 0:mp(U.type);if(T){if($){let _e=$s($,ae=>{let le=ae.constraint,Ee=ae.default;if(le){let xe=DN(le,M);xe&&(le=xe.typeNode,mz(T,xe.symbols))}if(Ee){let xe=DN(Ee,M);xe&&(Ee=xe.typeNode,mz(T,xe.symbols))}return Me.updateTypeParameterDeclaration(ae,ae.modifiers,ae.name,le,Ee)});$!==_e&&($=Fn(Me.createNodeArray(_e,$.hasTrailingComma),$))}let se=$s(K,_e=>{let ae=R?void 0:_e.type;if(ae){let le=DN(ae,M);le&&(ae=le.typeNode,mz(T,le.symbols))}return Me.updateParameterDeclaration(_e,_e.modifiers,_e.dotDotDotToken,_e.name,R?void 0:_e.questionToken,ae,_e.initializer)});if(K!==se&&(K=Fn(Me.createNodeArray(se,K.hasTrailingComma),K)),re){let _e=DN(re,M);_e&&(re=_e.typeNode,mz(T,_e.symbols))}}let X=x?Me.createToken(58):void 0,ne=U.asteriskToken;if(yd(U))return Me.updateFunctionExpression(U,v,U.asteriskToken,ac(g,Ai),$,K,re,m??U.body);if(Zc(U))return Me.updateArrowFunction(U,v,$,K,re,U.equalsGreaterThanToken,m??U.body);if(Sg(U))return Me.updateMethodDeclaration(U,v,ne,g??Me.createIdentifier(""),X,$,K,re,m);if(fp(U))return Me.updateFunctionDeclaration(U,v,U.asteriskToken,ac(g,Ai),$,K,re,m??U.body)}function Oit(t,n,a,u,m,g,v){let x=Nk(n.sourceFile,n.preferences),k=h_(n.program.getCompilerOptions()),T=AX(n),I=n.program.getTypeChecker(),A=Ys(v),{typeArguments:M,arguments:R,parent:H}=u,U=A?void 0:I.getContextualType(u),$=$i(R,Ee=>Ai(Ee)?Ee.text:ba(Ee)&&Ai(Ee.name)?Ee.name.text:void 0),K=A?[]:$i(R,Ee=>I.getTypeAtLocation(Ee)),{argumentTypeNodes:re,argumentTypeParameters:X}=xbt(I,a,K,v,k,1,8,T),ne=g?Me.createNodeArray(Me.createModifiersFromModifierFlags(g)):void 0,se=hae(H)?Me.createToken(42):void 0,_e=A?void 0:bbt(I,X,M),ae=Rit(R.length,$,re,void 0,A),le=A||U===void 0?void 0:I.typeToTypeNode(U,v,void 0,void 0,T);switch(t){case 174:return Me.createMethodDeclaration(ne,se,m,void 0,_e,ae,le,QIe(x));case 173:return Me.createMethodSignature(ne,m,void 0,_e,ae,le===void 0?Me.createKeywordTypeNode(159):le);case 262:return Se.assert(typeof m=="string"||Ai(m),"Unexpected name"),Me.createFunctionDeclaration(ne,se,m,_e,ae,le,qle(j.Function_not_implemented.message,x));default:Se.fail("Unexpected kind")}}function bbt(t,n,a){let u=new Set(n.map(g=>g[0])),m=new Map(n);if(a){let g=a.filter(x=>!n.some(k=>{var T;return t.getTypeAtLocation(x)===((T=k[1])==null?void 0:T.argumentType)})),v=u.size+g.length;for(let x=0;u.size{var v;return Me.createTypeParameterDeclaration(void 0,g,(v=m.get(g))==null?void 0:v.constraint)})}function Hye(t){return 84+t<=90?String.fromCharCode(84+t):`T${t}`}function Uye(t,n,a,u,m,g,v,x){let k=t.typeToTypeNode(a,u,g,v,x);if(k&&Ck(k)){let T=DN(k,m);T&&(mz(n,T.symbols),k=T.typeNode)}return mp(k)}function Fit(t,n,a,u,m,g,v,x){let k=t.typePredicateToTypePredicateNode(a,u,g,v,x);if(k?.type&&Ck(k.type)){let T=DN(k.type,m);T&&(mz(n,T.symbols),k=Me.updateTypePredicateNode(k,k.assertsModifier,k.parameterName,T.typeNode))}return mp(k)}function Sbt(t){return t.isUnionOrIntersection()?t.types.some(Sbt):t.flags&262144}function xbt(t,n,a,u,m,g,v,x){let k=[],T=new Map;for(let I=0;I=u?Me.createToken(58):void 0,m?void 0:a?.[x]||Me.createKeywordTypeNode(159),void 0);g.push(I)}return g}function MVt(t,n,a,u,m,g,v,x,k){let T=u[0],I=u[0].minArgumentCount,A=!1;for(let U of u)I=Math.min(U.minArgumentCount,I),Wu(U)&&(A=!0),U.parameters.length>=T.parameters.length&&(!Wu(U)||Wu(T))&&(T=U);let M=T.parameters.length-(Wu(T)?1:0),R=T.parameters.map(U=>U.name),H=Rit(M,R,void 0,I,!1);if(A){let U=Me.createParameterDeclaration(void 0,Me.createToken(26),R[M]||"rest",M>=I?Me.createToken(58):void 0,Me.createArrayTypeNode(Me.createKeywordTypeNode(159)),void 0);H.push(U)}return YIe(v,m,g,void 0,H,Bit(u,t,n,a),x,k)}function Bit(t,n,a,u){if(Z(t)){let m=n.getUnionType($i(t,n.getReturnTypeOfSignature));return n.typeToTypeNode(m,u,1,8,AX(a))}}function YIe(t,n,a,u,m,g,v,x){return Me.createMethodDeclaration(t,void 0,n,a?Me.createToken(58):void 0,u,m,g,x||QIe(v))}function QIe(t){return qle(j.Method_not_implemented.message,t)}function qle(t,n){return Me.createBlock([Me.createThrowStatement(Me.createNewExpression(Me.createIdentifier("Error"),void 0,[Me.createStringLiteral(t,n===0)]))],!0)}function Jye(t,n,a){let u=cG(n);if(!u)return;let m=jit(u,"compilerOptions");if(m===void 0){t.insertNodeAtObjectStart(n,u,D9("compilerOptions",Me.createObjectLiteralExpression(a.map(([v,x])=>D9(v,x)),!0)));return}let g=m.initializer;if(Ld(g))for(let[v,x]of a){let k=jit(g,v);k===void 0?t.insertNodeAtObjectStart(n,g,D9(v,x)):t.replaceNode(n,k.initializer,x)}}function ZIe(t,n,a,u){Jye(t,n,[[a,u]])}function D9(t,n){return Me.createPropertyAssignment(Me.createStringLiteral(t),n)}function jit(t,n){return jt(t.properties,a=>Ih(a)&&!!a.name&&Kf(a.name)&&a.name.text===n)}function DN(t,n){let a,u=on(t,m,Qa);if(a&&u)return{typeNode:u,symbols:a};function m(g){if(Wy(g)&&g.qualifier){let v=fx(g.qualifier);if(!v.symbol)return Fo(g,m,void 0);let x=Zte(v.symbol,n),k=x!==v.text?w5e(g.qualifier,Me.createIdentifier(x)):g.qualifier;a=ar(a,v.symbol);let T=ts(g.typeArguments,m,Qa);return Me.createTypeReferenceNode(k,T)}return Fo(g,m,void 0)}}function w5e(t,n){return t.kind===80?n:Me.createQualifiedName(w5e(t.left,n),t.right)}function mz(t,n){n.forEach(a=>t.addImportFromExportedSymbol(a,!0))}function Wit(t,n){let a=ag(n),u=wc(t,n.start);for(;u.endg.replaceNode(n,a,u));return rD(Hit,m,[j.Replace_import_with_0,m[0].textChanges[0].newText])}Cf({errorCodes:[j.This_expression_is_not_callable.code,j.This_expression_is_not_constructable.code],getCodeActions:Fbt});function Fbt(t){let n=t.sourceFile,a=j.This_expression_is_not_callable.code===t.errorCode?213:214,u=go(wc(n,t.span.start),g=>g.kind===a);if(!u)return[];let m=u.expression;return T5e(t,m)}Cf({errorCodes:[j.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,j.Type_0_does_not_satisfy_the_constraint_1.code,j.Type_0_is_not_assignable_to_type_1.code,j.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,j.Type_predicate_0_is_not_assignable_to_1.code,j.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,j._0_index_type_1_is_not_assignable_to_2_index_type_3.code,j.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,j.Property_0_in_type_1_is_not_assignable_to_type_2.code,j.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,j.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:Uit});function Uit(t){let n=t.sourceFile,a=go(wc(n,t.span.start),u=>u.getStart()===t.span.start&&u.getEnd()===t.span.start+t.span.length);return a?T5e(t,a):[]}function T5e(t,n){let a=t.program.getTypeChecker().getTypeAtLocation(n);if(!(a.symbol&&m4(a.symbol)&&a.symbol.links.originatingImport))return[];let u=[],m=a.symbol.links.originatingImport;if(Kx(m)||Ho(u,VVt(t,m)),An(n)&&!(xf(n.parent)&&n.parent.name===n)){let g=t.sourceFile,v=Gs.ChangeTracker.with(t,x=>x.replaceNode(g,n,Me.createPropertyAccessExpression(n,"default"),{}));u.push(rD(Hit,v,j.Use_synthetic_default_member))}return u}var eNe="strictClassInitialization",tNe="addMissingPropertyDefiniteAssignmentAssertions",E5e="addMissingPropertyUndefinedType",D5e="addMissingPropertyInitializer",Mbt=[j.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];Cf({errorCodes:Mbt,getCodeActions:function(n){let a=Jit(n.sourceFile,n.span.start);if(!a)return;let u=[];return ar(u,UVt(n,a)),ar(u,HVt(n,a)),ar(u,Rbt(n,a)),u},fixIds:[tNe,E5e,D5e],getAllCodeActions:t=>$_(t,Mbt,(n,a)=>{let u=Jit(a.file,a.start);if(u)switch(t.fixId){case tNe:qit(n,a.file,u.prop);break;case E5e:$it(n,a.file,u);break;case D5e:let m=t.program.getTypeChecker(),g=I5e(m,u.prop);if(!g)return;Git(n,a.file,u.prop,g);break;default:Se.fail(JSON.stringify(t.fixId))}})});function Jit(t,n){let a=wc(t,n);if(Ai(a)&&vu(a.parent)){let u=gm(a.parent);if(u)return{type:u,prop:a.parent,isJs:Ys(a.parent)}}}function HVt(t,n){if(n.isJs)return;let a=Gs.ChangeTracker.with(t,u=>qit(u,t.sourceFile,n.prop));return Wd(eNe,a,[j.Add_definite_assignment_assertion_to_property_0,n.prop.getText()],tNe,j.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function qit(t,n,a){Lk(a);let u=Me.updatePropertyDeclaration(a,a.modifiers,a.name,Me.createToken(54),a.type,a.initializer);t.replaceNode(n,a,u)}function UVt(t,n){let a=Gs.ChangeTracker.with(t,u=>$it(u,t.sourceFile,n));return Wd(eNe,a,[j.Add_undefined_type_to_property_0,n.prop.name.getText()],E5e,j.Add_undefined_type_to_all_uninitialized_properties)}function $it(t,n,a){let u=Me.createKeywordTypeNode(157),m=gx(a.type)?a.type.types.concat(u):[a.type,u],g=Me.createUnionTypeNode(m);a.isJs?t.addJSDocTags(n,a.prop,[Me.createJSDocTypeTag(void 0,Me.createJSDocTypeExpression(g))]):t.replaceNode(n,a.type,g)}function Rbt(t,n){if(n.isJs)return;let a=t.program.getTypeChecker(),u=I5e(a,n.prop);if(!u)return;let m=Gs.ChangeTracker.with(t,g=>Git(g,t.sourceFile,n.prop,u));return Wd(eNe,m,[j.Add_initializer_to_property_0,n.prop.name.getText()],D5e,j.Add_initializers_to_all_uninitialized_properties)}function Git(t,n,a,u){Lk(a);let m=Me.updatePropertyDeclaration(a,a.modifiers,a.name,a.questionToken,a.type,u);t.replaceNode(n,a,m)}function I5e(t,n){return Kit(t,t.getTypeFromTypeNode(n.type))}function Kit(t,n){if(n.flags&512)return n===t.getFalseType()||n===t.getFalseType(!0)?Me.createFalse():Me.createTrue();if(n.isStringLiteral())return Me.createStringLiteral(n.value);if(n.isNumberLiteral())return Me.createNumericLiteral(n.value);if(n.flags&2048)return Me.createBigIntLiteral(n.value);if(n.isUnion())return Je(n.types,a=>Kit(t,a));if(n.isClass()){let a=av(n.symbol);if(!a||kc(a,64))return;let u=eI(a);return u&&u.parameters.length?void 0:Me.createNewExpression(Me.createIdentifier(n.symbol.name),void 0,void 0)}else if(t.isArrayLikeType(n))return Me.createArrayLiteralExpression()}var N5e="requireInTs",Xit=[j.require_call_may_be_converted_to_an_import.code];Cf({errorCodes:Xit,getCodeActions(t){let n=A5e(t.sourceFile,t.program,t.span.start,t.preferences);if(!n)return;let a=Gs.ChangeTracker.with(t,u=>Bbt(u,t.sourceFile,n));return[Wd(N5e,a,j.Convert_require_to_import,N5e,j.Convert_all_require_to_import)]},fixIds:[N5e],getAllCodeActions:t=>$_(t,Xit,(n,a)=>{let u=A5e(a.file,t.program,a.start,t.preferences);u&&Bbt(n,t.sourceFile,u)})});function Bbt(t,n,a){let{allowSyntheticDefaults:u,defaultImportName:m,namedImports:g,statement:v,moduleSpecifier:x}=a;t.replaceNode(n,v,m&&!u?Me.createImportEqualsDeclaration(void 0,!1,m,Me.createExternalModuleReference(x)):Me.createImportDeclaration(void 0,Me.createImportClause(!1,m,g),x,void 0))}function A5e(t,n,a,u){let{parent:m}=wc(t,a);es(m,!0)||Se.failBadSyntaxKind(m);let g=$d(m.parent,$c),v=Nk(t,u),x=ac(g.name,Ai),k=fb(g.name)?jbt(g.name):void 0;if(x||k){let T=of(m.arguments);return{allowSyntheticDefaults:cU(n.getCompilerOptions()),defaultImportName:x,namedImports:k,statement:$d(g.parent.parent,Zh),moduleSpecifier:z5(T)?Me.createStringLiteral(T.text,v===0):T}}}function jbt(t){let n=[];for(let a of t.elements){if(!Ai(a.name)||a.initializer)return;n.push(Me.createImportSpecifier(!1,ac(a.propertyName,Ai),a.name))}if(n.length)return Me.createNamedImports(n)}var P5e="useDefaultImport",Yit=[j.Import_may_be_converted_to_a_default_import.code];Cf({errorCodes:Yit,getCodeActions(t){let{sourceFile:n,span:{start:a}}=t,u=L5e(n,a);if(!u)return;let m=Gs.ChangeTracker.with(t,g=>Qit(g,n,u,t.preferences));return[Wd(P5e,m,j.Convert_to_default_import,P5e,j.Convert_all_to_default_imports)]},fixIds:[P5e],getAllCodeActions:t=>$_(t,Yit,(n,a)=>{let u=L5e(a.file,a.start);u&&Qit(n,a.file,u,t.preferences)})});function L5e(t,n){let a=wc(t,n);if(!Ai(a))return;let{parent:u}=a;if(pf(u)&&Zg(u.moduleReference))return{importNode:u,name:a,moduleSpecifier:u.moduleReference.expression};if(ZE(u)&&Dd(u.parent.parent)){let m=u.parent.parent;return{importNode:m,name:a,moduleSpecifier:m.moduleSpecifier}}}function Qit(t,n,a,u){t.replaceNode(n,a.importNode,vL(a.name,void 0,a.moduleSpecifier,Nk(n,u)))}var O5e="useBigintLiteral",Wbt=[j.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code];Cf({errorCodes:Wbt,getCodeActions:function(n){let a=Gs.ChangeTracker.with(n,u=>F5e(u,n.sourceFile,n.span));if(a.length>0)return[Wd(O5e,a,j.Convert_to_a_bigint_numeric_literal,O5e,j.Convert_all_to_bigint_numeric_literals)]},fixIds:[O5e],getAllCodeActions:t=>$_(t,Wbt,(n,a)=>F5e(n,a.file,a))});function F5e(t,n,a){let u=ac(wc(n,a.start),mx);if(!u)return;let m=u.getText(n)+"n";t.replaceNode(n,u,Me.createBigIntLiteral(m))}var zbt="fixAddModuleReferTypeMissingTypeof",M5e=zbt,Zit=[j.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];Cf({errorCodes:Zit,getCodeActions:function(n){let{sourceFile:a,span:u}=n,m=R5e(a,u.start),g=Gs.ChangeTracker.with(n,v=>ent(v,a,m));return[Wd(M5e,g,j.Add_missing_typeof,M5e,j.Add_missing_typeof)]},fixIds:[M5e],getAllCodeActions:t=>$_(t,Zit,(n,a)=>ent(n,t.sourceFile,R5e(a.file,a.start)))});function R5e(t,n){let a=wc(t,n);return Se.assert(a.kind===102,"This token should be an ImportKeyword"),Se.assert(a.parent.kind===205,"Token parent should be an ImportType"),a.parent}function ent(t,n,a){let u=Me.updateImportTypeNode(a,a.argument,a.attributes,a.qualifier,a.typeArguments,!0);t.replaceNode(n,a,u)}var B5e="wrapJsxInFragment",tnt=[j.JSX_expressions_must_have_one_parent_element.code];Cf({errorCodes:tnt,getCodeActions:function(n){let{sourceFile:a,span:u}=n,m=Vbt(a,u.start);if(!m)return;let g=Gs.ChangeTracker.with(n,v=>j5e(v,a,m));return[Wd(B5e,g,j.Wrap_in_JSX_fragment,B5e,j.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[B5e],getAllCodeActions:t=>$_(t,tnt,(n,a)=>{let u=Vbt(t.sourceFile,a.start);u&&j5e(n,t.sourceFile,u)})});function Vbt(t,n){let m=wc(t,n).parent.parent;if(!(!ms(m)&&(m=m.parent,!ms(m)))&&Mm(m.operatorToken))return m}function j5e(t,n,a){let u=Hbt(a);u&&t.replaceNode(n,a,Me.createJsxFragment(Me.createJsxOpeningFragment(),u,Me.createJsxJsxClosingFragment()))}function Hbt(t){let n=[],a=t;for(;;)if(ms(a)&&Mm(a.operatorToken)&&a.operatorToken.kind===28){if(n.push(a.left),hZ(a.right))return n.push(a.right),n;if(ms(a.right)){a=a.right;continue}else return}else return}var W5e="wrapDecoratorInParentheses",z5e=[j.Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator.code];Cf({errorCodes:z5e,getCodeActions:function(n){let a=Gs.ChangeTracker.with(n,u=>int(u,n.sourceFile,n.span.start));return[Wd(W5e,a,j.Wrap_in_parentheses,W5e,j.Wrap_all_invalid_decorator_expressions_in_parentheses)]},fixIds:[W5e],getAllCodeActions:t=>$_(t,z5e,(n,a)=>int(n,a.file,a.start))});function int(t,n,a){let u=wc(n,a),m=go(u,Cy);Se.assert(!!m,"Expected position to be owned by a decorator.");let g=Me.createParenthesizedExpression(m.expression);t.replaceNode(n,m.expression,g)}var V5e="fixConvertToMappedObjectType",Ubt=[j.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code];Cf({errorCodes:Ubt,getCodeActions:function(n){let{sourceFile:a,span:u}=n,m=nnt(a,u.start);if(!m)return;let g=Gs.ChangeTracker.with(n,x=>qbt(x,a,m)),v=Un(m.container.name);return[Wd(V5e,g,[j.Convert_0_to_mapped_object_type,v],V5e,[j.Convert_0_to_mapped_object_type,v])]},fixIds:[V5e],getAllCodeActions:t=>$_(t,Ubt,(n,a)=>{let u=nnt(a.file,a.start);u&&qbt(n,a.file,u)})});function nnt(t,n){let a=wc(t,n),u=ac(a.parent.parent,nu);if(!u)return;let m=ky(u.parent)?u.parent:ac(u.parent.parent,k1);if(m)return{indexSignature:u,container:m}}function Jbt(t,n){return Me.createTypeAliasDeclaration(t.modifiers,t.name,t.typeParameters,n)}function qbt(t,n,{indexSignature:a,container:u}){let g=(ky(u)?u.members:u.type.members).filter(I=>!nu(I)),v=of(a.parameters),x=Me.createTypeParameterDeclaration(void 0,$d(v.name,Ai),v.type),k=Me.createMappedTypeNode(QH(a)?Me.createModifier(148):void 0,x,void 0,a.questionToken,a.type,void 0),T=Me.createIntersectionTypeNode([...FH(u),k,...g.length?[Me.createTypeLiteralNode(g)]:F]);t.replaceNode(n,u,Jbt(u,T))}var H5e="removeAccidentalCallParentheses",$bt=[j.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code];Cf({errorCodes:$bt,getCodeActions(t){let n=go(wc(t.sourceFile,t.span.start),Od);if(!n)return;let a=Gs.ChangeTracker.with(t,u=>{u.deleteRange(t.sourceFile,{pos:n.expression.end,end:n.end})});return[rD(H5e,a,j.Remove_parentheses)]},fixIds:[H5e]});var U5e="removeUnnecessaryAwait",rnt=[j.await_has_no_effect_on_the_type_of_this_expression.code];Cf({errorCodes:rnt,getCodeActions:function(n){let a=Gs.ChangeTracker.with(n,u=>J5e(u,n.sourceFile,n.span));if(a.length>0)return[Wd(U5e,a,j.Remove_unnecessary_await,U5e,j.Remove_all_unnecessary_uses_of_await)]},fixIds:[U5e],getAllCodeActions:t=>$_(t,rnt,(n,a)=>J5e(n,a.file,a))});function J5e(t,n,a){let u=ac(wc(n,a.start),x=>x.kind===135),m=u&&ac(u.parent,YT);if(!m)return;let g=m;if(Tu(m.parent)){let x=Va(m.expression,!1);if(Ai(x)){let k=p0(m.parent.pos,n);k&&k.kind!==105&&(g=m.parent)}}t.replaceNode(n,g,m.expression)}var ont=[j.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],q5e="splitTypeOnlyImport";Cf({errorCodes:ont,fixIds:[q5e],getCodeActions:function(n){let a=Gs.ChangeTracker.with(n,u=>snt(u,$5e(n.sourceFile,n.span),n));if(a.length)return[Wd(q5e,a,j.Split_into_two_separate_import_declarations,q5e,j.Split_all_invalid_type_only_imports)]},getAllCodeActions:t=>$_(t,ont,(n,a)=>{snt(n,$5e(t.sourceFile,a),t)})});function $5e(t,n){return go(wc(t,n.start),Dd)}function snt(t,n,a){if(!n)return;let u=Se.checkDefined(n.importClause);t.replaceNode(a.sourceFile,n,Me.updateImportDeclaration(n,n.modifiers,Me.updateImportClause(u,u.isTypeOnly,u.name,void 0),n.moduleSpecifier,n.attributes)),t.insertNodeAfter(a.sourceFile,n,Me.createImportDeclaration(void 0,Me.updateImportClause(u,u.isTypeOnly,void 0,u.namedBindings),n.moduleSpecifier,n.attributes))}var G5e="fixConvertConstToLet",ant=[j.Cannot_assign_to_0_because_it_is_a_constant.code];Cf({errorCodes:ant,getCodeActions:function(n){let{sourceFile:a,span:u,program:m}=n,g=K5e(a,u.start,m);if(g===void 0)return;let v=Gs.ChangeTracker.with(n,x=>Gbt(x,a,g.token));return[oD(G5e,v,j.Convert_const_to_let,G5e,j.Convert_all_const_to_let)]},getAllCodeActions:t=>{let{program:n}=t,a=new Map;return wX(Gs.ChangeTracker.with(t,u=>{wJ(t,ant,m=>{let g=K5e(m.file,m.start,n);if(g&&HC(a,Nf(g.symbol)))return Gbt(u,m.file,g.token)})}))},fixIds:[G5e]});function K5e(t,n,a){var u;let g=a.getTypeChecker().getSymbolAtLocation(wc(t,n));if(g===void 0)return;let v=ac((u=g?.valueDeclaration)==null?void 0:u.parent,Xv);if(v===void 0)return;let x=Np(v,87,t);if(x!==void 0)return{symbol:g,token:x}}function Gbt(t,n,a){t.replaceNode(n,a,Me.createToken(121))}var X5e="fixExpectedComma",Kbt=j._0_expected.code,cnt=[Kbt];Cf({errorCodes:cnt,getCodeActions(t){let{sourceFile:n}=t,a=Xbt(n,t.span.start,t.errorCode);if(!a)return;let u=Gs.ChangeTracker.with(t,m=>lnt(m,n,a));return[Wd(X5e,u,[j.Change_0_to_1,";",","],X5e,[j.Change_0_to_1,";",","])]},fixIds:[X5e],getAllCodeActions:t=>$_(t,cnt,(n,a)=>{let u=Xbt(a.file,a.start,a.code);u&&lnt(n,t.sourceFile,u)})});function Xbt(t,n,a){let u=wc(t,n);return u.kind===27&&u.parent&&(Ld(u.parent)||Yg(u.parent))?{node:u}:void 0}function lnt(t,n,{node:a}){let u=Me.createToken(28);t.replaceNode(n,a,u)}var Ybt="addVoidToPromise",unt="addVoidToPromise",Qbt=[j.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,j.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code];Cf({errorCodes:Qbt,fixIds:[unt],getCodeActions(t){let n=Gs.ChangeTracker.with(t,a=>DJ(a,t.sourceFile,t.span,t.program));if(n.length>0)return[Wd(Ybt,n,j.Add_void_to_Promise_resolved_without_a_value,unt,j.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions(t){return $_(t,Qbt,(n,a)=>DJ(n,a.file,a,t.program,new Set))}});function DJ(t,n,a,u,m){let g=wc(n,a.start);if(!Ai(g)||!Od(g.parent)||g.parent.expression!==g||g.parent.arguments.length!==0)return;let v=u.getTypeChecker(),x=v.getSymbolAtLocation(g),k=x?.valueDeclaration;if(!k||!Fl(k)||!sM(k.parent.parent)||m?.has(k))return;m?.add(k);let T=dnt(k.parent.parent);if(En(T)){let I=T[0],A=!gx(I)&&!eO(I)&&eO(Me.createUnionTypeNode([I,Me.createKeywordTypeNode(116)]).types[0]);A&&t.insertText(n,I.pos,"("),t.insertText(n,I.end,A?") | void":" | void")}else{let I=v.getResolvedSignature(g.parent),A=I?.parameters[0],M=A&&v.getTypeOfSymbolAtLocation(A,k.parent.parent);Ys(k)?(!M||M.flags&3)&&(t.insertText(n,k.parent.parent.end,")"),t.insertText(n,fd(n.text,k.parent.parent.pos),"/** @type {Promise} */(")):(!M||M.flags&2)&&t.insertText(n,k.parent.parent.expression.end,"")}}function dnt(t){var n;if(Ys(t)){if(Tu(t.parent)){let a=(n=b3(t.parent))==null?void 0:n.typeExpression.type;if(a&&M_(a)&&Ai(a.typeName)&&Un(a.typeName)==="Promise")return a.typeArguments}}else return t.typeArguments}var IJ={};d(IJ,{CompletionKind:()=>ySt,CompletionSource:()=>Zbt,SortText:()=>aS,StringCompletions:()=>_9e,SymbolOriginInfoKind:()=>eSt,createCompletionDetails:()=>sNe,createCompletionDetailsForSymbol:()=>n9e,getCompletionEntriesFromSymbols:()=>bnt,getCompletionEntryDetails:()=>nHt,getCompletionEntrySymbol:()=>knt,getCompletionsAtPosition:()=>$Vt,getDefaultCommitCharacters:()=>hz,getPropertiesForObjectExpression:()=>l9e,moduleSpecifierResolutionCacheAttemptLimit:()=>fnt,moduleSpecifierResolutionLimit:()=>Sb});var Sb=100,fnt=1e3,aS={LocalDeclarationPriority:"10",LocationPriority:"11",OptionalMember:"12",MemberDeclaredBySpreadAssignment:"13",SuggestedClassMembers:"14",GlobalsOrKeywords:"15",AutoImportSuggestions:"16",ClassMemberSnippets:"17",JavascriptIdentifiers:"18",Deprecated(t){return"z"+t},ObjectLiteralProperty(t,n){return`${t}\0${n}\0`},SortBelow(t){return t+"1"}},Zbt=(t=>(t.ThisProperty="ThisProperty/",t.ClassMemberSnippet="ClassMemberSnippet/",t.TypeOnlyAlias="TypeOnlyAlias/",t.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",t.SwitchCases="SwitchCases/",t.ObjectLiteralMemberWithComma="ObjectLiteralMemberWithComma/",t))(Zbt||{}),eSt=(t=>(t[t.ThisType=1]="ThisType",t[t.SymbolMember=2]="SymbolMember",t[t.Export=4]="Export",t[t.Promise=8]="Promise",t[t.Nullable=16]="Nullable",t[t.ResolvedExport=32]="ResolvedExport",t[t.TypeOnlyAlias=64]="TypeOnlyAlias",t[t.ObjectLiteralMethod=128]="ObjectLiteralMethod",t[t.Ignore=256]="Ignore",t[t.ComputedPropertyName=512]="ComputedPropertyName",t[t.SymbolMemberNoExport=2]="SymbolMemberNoExport",t[t.SymbolMemberExport=6]="SymbolMemberExport",t))(eSt||{});function iNe(t){return!!(t.kind&1)}function $le(t){return!!(t.kind&2)}function nNe(t){return!!(t&&t.kind&4)}function Gle(t){return!!(t&&t.kind===32)}function JVt(t){return nNe(t)||Gle(t)||_nt(t)}function qVt(t){return(nNe(t)||Gle(t))&&!!t.isFromPackageJson}function tSt(t){return!!(t.kind&8)}function iSt(t){return!!(t.kind&16)}function nSt(t){return!!(t&&t.kind&64)}function Y5e(t){return!!(t&&t.kind&128)}function rSt(t){return!!(t&&t.kind&256)}function _nt(t){return!!(t&&t.kind&512)}function qye(t,n,a,u,m,g,v,x,k){var T,I,A,M;let R=mm(),H=v||Tme(u.getCompilerOptions())||((T=g.autoImportSpecifierExcludeRegexes)==null?void 0:T.length),U=!1,$=0,K=0,re=0,X=0,ne=k({tryResolve:_e,skippedAny:()=>U,resolvedAny:()=>K>0,resolvedBeyondLimit:()=>K>Sb}),se=X?` (${(re/X*100).toFixed(1)}% hit rate)`:"";return(I=n.log)==null||I.call(n,`${t}: resolved ${K} module specifiers, plus ${$} ambient and ${re} from cache${se}`),(A=n.log)==null||A.call(n,`${t}: response is ${U?"incomplete":"complete"}`),(M=n.log)==null||M.call(n,`${t}: ${mm()-R}`),ne;function _e(ae,le){if(le){let Le=a.getModuleSpecifierForBestExportInfo(ae,m,x);return Le&&$++,Le||"failed"}let Ee=H||g.allowIncompleteCompletions&&K{let H=Dc(k.entries,U=>{var $;if(!U.hasAction||!U.source||!U.data||pnt(U.data))return U;if(!Fnt(U.name,I))return;let{origin:K}=Se.checkDefined(wnt(U.name,U.data,u,m)),re=A.get(n.path,U.data.exportMapKey),X=re&&R.tryResolve(re,!l0(B2(K.moduleSymbol.name)));if(X==="skipped")return U;if(!X||X==="failed"){($=m.log)==null||$.call(m,`Unexpected failure resolving auto import for '${U.name}' from '${U.source}'`);return}let ne={...K,kind:32,moduleSpecifier:X.moduleSpecifier};return U.data=hSt(ne),U.source=i9e(ne),U.sourceDisplay=[Sw(ne.moduleSpecifier)],U});return R.skippedAny()||(k.isIncomplete=void 0),H});return k.entries=M,k.flags=(k.flags||0)|4,k.optionalReplacementSpan=mnt(T),k}function xie(t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:t,defaultCommitCharacters:hz(!1)}}function sSt(t,n,a,u,m,g){let v=wc(t,n);if(!SH(v)&&!eD(v))return[];let x=eD(v)?v:v.parent;if(!eD(x))return[];let k=x.parent;if(!iu(k))return[];let T=$v(t),I=m.includeCompletionsWithSnippetText||void 0,A=Tn(x.tags,M=>hw(M)&&M.getEnd()<=n);return Dc(k.parameters,M=>{if(!mu(M).length){if(Ai(M.name)){let R={tabstop:1},H=M.name.text,U=$ye(H,M.initializer,M.dotDotDotToken,T,!1,!1,a,u,m),$=I?$ye(H,M.initializer,M.dotDotDotToken,T,!1,!0,a,u,m,R):void 0;return g&&(U=U.slice(1),$&&($=$.slice(1))),{name:U,kind:"parameter",sortText:aS.LocationPriority,insertText:I?$:void 0,isSnippet:I}}else if(M.parent.parameters.indexOf(M)===A){let R=`param${A}`,H=aSt(R,M.name,M.initializer,M.dotDotDotToken,T,!1,a,u,m),U=I?aSt(R,M.name,M.initializer,M.dotDotDotToken,T,!0,a,u,m):void 0,$=H.join(W2(u)+"* "),K=U?.join(W2(u)+"* ");return g&&($=$.slice(1),K&&(K=K.slice(1))),{name:$,kind:"parameter",sortText:aS.LocationPriority,insertText:I?K:void 0,isSnippet:I}}}})}function aSt(t,n,a,u,m,g,v,x,k){if(!m)return[$ye(t,a,u,m,!1,g,v,x,k,{tabstop:1})];return T(t,n,a,u,{tabstop:1});function T(A,M,R,H,U){if(fb(M)&&!H){let K={tabstop:U.tabstop},re=$ye(A,R,H,m,!0,g,v,x,k,K),X=[];for(let ne of M.elements){let se=I(A,ne,K);if(se)X.push(...se);else{X=void 0;break}}if(X)return U.tabstop=K.tabstop,[re,...X]}return[$ye(A,R,H,m,!1,g,v,x,k,U)]}function I(A,M,R){if(!M.propertyName&&Ai(M.name)||Ai(M.name)){let H=M.propertyName?rG(M.propertyName):M.name.text;if(!H)return;let U=`${A}.${H}`;return[$ye(U,M.initializer,M.dotDotDotToken,m,!1,g,v,x,k,R)]}else if(M.propertyName){let H=rG(M.propertyName);return H&&T(`${A}.${H}`,M.name,M.initializer,M.dotDotDotToken,R)}}}function $ye(t,n,a,u,m,g,v,x,k,T){if(g&&Se.assertIsDefined(T),n&&(t=cSt(t,n)),g&&(t=_w(t)),u){let I="*";if(m)Se.assert(!a,"Cannot annotate a rest parameter with type 'Object'."),I="Object";else{if(n){let R=v.getTypeAtLocation(n.parent);if(!(R.flags&16385)){let H=n.getSourceFile(),$=Nk(H,k)===0?268435456:0,K=v.typeToTypeNode(R,go(n,iu),$);if(K){let re=g?oNe({removeComments:!0,module:x.module,moduleResolution:x.moduleResolution,target:x.target}):j4({removeComments:!0,module:x.module,moduleResolution:x.moduleResolution,target:x.target});De(K,1),I=re.printNode(4,K,H)}}}g&&I==="*"&&(I=`\${${T.tabstop++}:${I}}`)}let A=!m&&a?"...":"",M=g?`\${${T.tabstop++}}`:"";return`@param {${A}${I}} ${t} ${M}`}else{let I=g?`\${${T.tabstop++}}`:"";return`@param ${t} ${I}`}}function cSt(t,n){let a=n.getText().trim();return a.includes(` +`)||a.length>80?`[${t}]`:`[${t}=${a}]`}function GVt(t){return{name:Ef(t),kind:"keyword",kindModifiers:"",sortText:aS.GlobalsOrKeywords}}function lSt(t,n){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:n,entries:t.slice(),defaultCommitCharacters:hz(n)}}function uSt(t,n,a){return{kind:4,keywordCompletions:Xye(t,n),isNewIdentifierLocation:a}}function dSt(t){switch(t){case 156:return 8;default:Se.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}}function mnt(t){return t?.kind===80?Cx(t):void 0}function Q5e(t,n,a,u,m,g,v,x,k,T){let{symbols:I,contextToken:A,completionKind:M,isInSnippetScope:R,isNewIdentifierLocation:H,location:U,propertyAccessToConvert:$,keywordFilters:K,symbolToOriginInfoMap:re,recommendedCompletion:X,isJsxInitializer:ne,isTypeOnlyLocation:se,isJsxIdentifierExpected:_e,isRightOfOpenTag:ae,isRightOfDotOrQuestionDot:le,importStatementCompletion:Ee,insideJsDocTagTypeExpression:xe,symbolToSortTextMap:be,hasUnresolvedAutoImports:Le}=g,fe=g.literals,we=a.getTypeChecker();if(GZ(t.scriptKind)===1){let $e=KVt(U,t);if($e)return $e}let Ae=go(A,eP);if(Ae&&(Wwe(A)||G7(A,Ae.expression))){let $e=dX(we,Ae.parent.clauses);fe=fe.filter(Ke=>!$e.hasValue(Ke)),I.forEach((Ke,qe)=>{if(Ke.valueDeclaration&&pb(Ke.valueDeclaration)){let rt=we.getConstantValue(Ke.valueDeclaration);rt!==void 0&&$e.hasValue(rt)&&(re[qe]={kind:256})}})}let Ge=os(),he=rNe(t,u);if(he&&!H&&(!I||I.length===0)&&K===0)return;let Oe=bnt(I,Ge,void 0,A,U,k,t,n,a,h_(u),m,M,v,u,x,se,$,_e,ne,Ee,X,re,be,_e,ae,T);if(K!==0)for(let $e of Xye(K,!xe&&$v(t)))(se&&y9(fH($e.name))||!se&&uHt($e.name)||!Oe.has($e.name))&&(Oe.add($e.name),Hn(Ge,$e,Kle,void 0,!0));for(let $e of xSt(A,k))Oe.has($e.name)||(Oe.add($e.name),Hn(Ge,$e,Kle,void 0,!0));for(let $e of fe){let Ke=_St(t,v,$e);Oe.add(Ke.name),Hn(Ge,Ke,Kle,void 0,!0)}he||XVt(t,U.pos,Oe,h_(u),Ge);let Re;if(v.includeCompletionsWithInsertText&&A&&!ae&&!le&&(Re=go(A,Wc))){let $e=fSt(Re,t,v,u,n,a,x);$e&&Ge.push($e.entry)}return{flags:g.flags,isGlobalCompletion:R,isIncomplete:v.allowIncompleteCompletions&&Le?!0:void 0,isMemberCompletion:hnt(M),isNewIdentifierLocation:H,optionalReplacementSpan:mnt(U),entries:Ge,defaultCommitCharacters:hz(H)}}function rNe(t,n){return!$v(t)||!!HG(t,n)}function fSt(t,n,a,u,m,g,v){let x=t.clauses,k=g.getTypeChecker(),T=k.getTypeAtLocation(t.parent.expression);if(T&&T.isUnion()&&Yt(T.types,I=>I.isLiteral())){let I=dX(k,x),A=h_(u),M=Nk(n,a),R=vb.createImportAdder(n,g,a,m),H=[];for(let se of T.types)if(se.flags&1024){Se.assert(se.symbol,"An enum member type should have a symbol"),Se.assert(se.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");let _e=se.symbol.valueDeclaration&&k.getConstantValue(se.symbol.valueDeclaration);if(_e!==void 0){if(I.hasValue(_e))continue;I.addValue(_e)}let ae=vb.typeToAutoImportableTypeNode(k,R,se,t,A);if(!ae)return;let le=Z5e(ae,A,M);if(!le)return;H.push(le)}else if(!I.hasValue(se.value))switch(typeof se.value){case"object":H.push(se.value.negative?Me.createPrefixUnaryExpression(41,Me.createBigIntLiteral({negative:!1,base10Value:se.value.base10Value})):Me.createBigIntLiteral(se.value));break;case"number":H.push(se.value<0?Me.createPrefixUnaryExpression(41,Me.createNumericLiteral(-se.value)):Me.createNumericLiteral(se.value));break;case"string":H.push(Me.createStringLiteral(se.value,M===0));break}if(H.length===0)return;let U=$i(H,se=>Me.createCaseClause(se,[])),$=fO(m,v?.options),K=oNe({removeComments:!0,module:u.module,moduleResolution:u.moduleResolution,target:u.target,newLine:oz($)}),re=v?se=>K.printAndFormatNode(4,se,n,v):se=>K.printNode(4,se,n),X=$i(U,(se,_e)=>a.includeCompletionsWithSnippetText?`${re(se)}$${_e+1}`:`${re(se)}`).join($);return{entry:{name:`${K.printNode(4,U[0],n)} ...`,kind:"",sortText:aS.GlobalsOrKeywords,insertText:X,hasAction:R.hasFixes()||void 0,source:"SwitchCases/",isSnippet:a.includeCompletionsWithSnippetText?!0:void 0},importAdder:R}}}function Z5e(t,n,a){switch(t.kind){case 183:let u=t.typeName;return e9e(u,n,a);case 199:let m=Z5e(t.objectType,n,a),g=Z5e(t.indexType,n,a);return m&&g&&Me.createElementAccessExpression(m,g);case 201:let v=t.literal;switch(v.kind){case 11:return Me.createStringLiteral(v.text,a===0);case 9:return Me.createNumericLiteral(v.text,v.numericLiteralFlags)}return;case 196:let x=Z5e(t.type,n,a);return x&&(Ai(x)?x:Me.createParenthesizedExpression(x));case 186:return e9e(t.exprName,n,a);case 205:Se.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function e9e(t,n,a){if(Ai(t))return t;let u=Ba(t.right.escapedText);return Rme(u,n)?Me.createPropertyAccessExpression(e9e(t.left,n,a),u):Me.createElementAccessExpression(e9e(t.left,n,a),Me.createStringLiteral(u,a===0))}function hnt(t){switch(t){case 0:case 3:case 2:return!0;default:return!1}}function KVt(t,n){let a=go(t,u=>{switch(u.kind){case 287:return!0;case 44:case 32:case 80:case 211:return!1;default:return"quit"}});if(a){let u=!!Np(a,32,n),v=a.parent.openingElement.tagName.getText(n)+(u?"":">"),x=Cx(a.tagName),k={name:v,kind:"class",kindModifiers:void 0,sortText:aS.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:x,entries:[k],defaultCommitCharacters:hz(!1)}}}function XVt(t,n,a,u,m){bRe(t).forEach((g,v)=>{if(g===n)return;let x=Ba(v);!a.has(x)&&Jb(x,u)&&(a.add(x),Hn(m,{name:x,kind:"warning",kindModifiers:"",sortText:aS.JavascriptIdentifiers,isFromUncheckedFile:!0,commitCharacters:[]},Kle))})}function gnt(t,n,a){return typeof a=="object"?z8(a)+"n":Yu(a)?_le(t,n,a):JSON.stringify(a)}function _St(t,n,a){return{name:gnt(t,n,a),kind:"string",kindModifiers:"",sortText:aS.LocationPriority,commitCharacters:[]}}function YVt(t,n,a,u,m,g,v,x,k,T,I,A,M,R,H,U,$,K,re,X,ne,se,_e,ae){var le,Ee;let xe,be,Le=O0e(a,g),fe,we,Ae=i9e(A),Ge,he,Oe,Re=k.getTypeChecker(),$e=A&&iSt(A),Ke=A&&$le(A)||I;if(A&&iNe(A))xe=I?`this${$e?"?.":""}[${gSt(v,re,T)}]`:`this${$e?"?.":"."}${T}`;else if((Ke||$e)&&R){xe=Ke?I?`[${gSt(v,re,T)}]`:`[${T}]`:T,($e||R.questionDotToken)&&(xe=`?.${xe}`);let ft=Np(R,25,v)||Np(R,29,v);if(!ft)return;let mt=xl(T,R.name.text)?R.name.end:ft.end;Le=cg(ft.getStart(v),mt)}if(H&&(xe===void 0&&(xe=T),xe=`{${xe}}`,typeof H!="boolean"&&(Le=Cx(H,v))),A&&tSt(A)&&R){xe===void 0&&(xe=T);let ft=p0(R.pos,v),mt="";ft&&sX(ft.end,ft.parent,v)&&(mt=";"),mt+=`(await ${R.expression.getText()})`,xe=I?`${mt}${xe}`:`${mt}${$e?"?.":"."}${xe}`;let ht=ac(R.parent,YT)?R.parent:R.expression;Le=cg(ht.getStart(v),R.end)}if(Gle(A)&&(Ge=[Sw(A.moduleSpecifier)],U&&({insertText:xe,replacementSpan:Le}=vnt(T,U,A,$,v,k,re),we=re.includeCompletionsWithSnippetText?!0:void 0)),A?.kind===64&&(he=!0),X===0&&u&&((le=p0(u.pos,v,u))==null?void 0:le.kind)!==28&&(Sg(u.parent.parent)||n_(u.parent.parent)||zc(u.parent.parent)||H2(u.parent)||((Ee=go(u.parent,Ih))==null?void 0:Ee.getLastToken(v))===u||Q0(u.parent)&&Df(v,u.getEnd()).line!==Df(v,g).line)&&(Ae="ObjectLiteralMemberWithComma/",he=!0),re.includeCompletionsWithClassMemberSnippets&&re.includeCompletionsWithInsertText&&X===3&&ZVt(t,m,v)){let ft,mt=pSt(x,k,K,re,T,t,m,g,u,ne);if(mt)({insertText:xe,filterText:be,isSnippet:we,importAdder:ft}=mt),(ft?.hasFixes()||mt.eraseRange)&&(he=!0,Ae="ClassMemberSnippet/");else return}if(A&&Y5e(A)&&({insertText:xe,isSnippet:we,labelDetails:Oe}=A,re.useLabelDetailsInCompletionEntries||(T=T+Oe.detail,Oe=void 0),Ae="ObjectLiteralMethodSnippet/",n=aS.SortBelow(n)),se&&!_e&&re.includeCompletionsWithSnippetText&&re.jsxAttributeCompletionStyle&&re.jsxAttributeCompletionStyle!=="none"&&!(_b(m.parent)&&m.parent.initializer)){let ft=re.jsxAttributeCompletionStyle==="braces",mt=Re.getTypeOfSymbolAtLocation(t,m);re.jsxAttributeCompletionStyle==="auto"&&!(mt.flags&528)&&!(mt.flags&1048576&&jt(mt.types,ut=>!!(ut.flags&528)))&&(mt.flags&402653316||mt.flags&1048576&&Yt(mt.types,ut=>!!(ut.flags&402686084||A0e(ut)))?(xe=`${_w(T)}=${_le(v,re,"$1")}`,we=!0):ft=!0),ft&&(xe=`${_w(T)}={$1}`,we=!0)}if(xe!==void 0&&!re.includeCompletionsWithInsertText)return;(nNe(A)||Gle(A))&&(fe=hSt(A),he=!U);let qe=go(m,zj);if(qe){let ft=h_(x.getCompilationSettings());if(!Jb(T,ft))xe=JSON.stringify(T),qe.kind===275&&(xe+=" as "+QVt(T,ft));else if(qe.kind===275){let mt=fH(T);mt&&(mt===135||M3(mt))&&(xe=`${T} as ${T}_`)}}let rt=mO.getSymbolKind(Re,t,m),_t=rt==="warning"||rt==="string"?[]:void 0;return{name:T,kind:rt,kindModifiers:mO.getSymbolModifiers(Re,t),sortText:n,source:Ae,hasAction:he?!0:void 0,isRecommended:iHt(t,M,Re)||void 0,insertText:xe,filterText:be,replacementSpan:Le,sourceDisplay:Ge,labelDetails:Oe,isSnippet:we,isPackageJsonImport:qVt(A)||void 0,isImportStatementCompletion:!!U||void 0,data:fe,commitCharacters:_t,...ae?{symbol:t}:void 0}}function QVt(t,n){let a=!1,u="",m;for(let g=0;g=65536?2:1)m=t.codePointAt(g),m!==void 0&&(g===0?HD(m,n):UD(m,n))?(a&&(u+="_"),u+=String.fromCodePoint(m),a=!1):a=!0;return a&&(u+="_"),u||"_"}function ZVt(t,n,a){return Ys(n)?!1:!!(t.flags&106500)&&(bc(n)||n.parent&&n.parent.parent&&rl(n.parent)&&n===n.parent.name&&n.parent.getLastToken(a)===n.parent.name&&bc(n.parent.parent)||n.parent&&iC(n)&&bc(n.parent))}function pSt(t,n,a,u,m,g,v,x,k,T){let I=go(v,bc);if(!I)return;let A,M=m,R=m,H=n.getTypeChecker(),U=v.getSourceFile(),$=oNe({removeComments:!0,module:a.module,moduleResolution:a.moduleResolution,target:a.target,omitTrailingSemicolon:!1,newLine:oz(fO(t,T?.options))}),K=vb.createImportAdder(U,n,u,t),re;if(u.includeCompletionsWithSnippetText){A=!0;let Ee=Me.createEmptyStatement();re=Me.createBlock([Ee],!0),Jme(Ee,{kind:0,order:0})}else re=Me.createBlock([],!0);let X=0,{modifiers:ne,range:se,decorators:_e}=t9e(k,U,x),ae=ne&64&&I.modifierFlagsCache&64,le=[];if(vb.addNewNodeForMemberSymbol(g,I,U,{program:n,host:t},u,K,Ee=>{let xe=0;ae&&(xe|=64),rl(Ee)&&H.getMemberOverrideModifierStatus(I,Ee,g)===1&&(xe|=16),le.length||(X=Ee.modifierFlagsCache|xe),Ee=Me.replaceModifiers(Ee,X),le.push(Ee)},re,vb.PreserveOptionalFlags.Property,!!ae),le.length){let Ee=g.flags&8192,xe=X|16|1;Ee?xe|=1024:xe|=136;let be=ne&xe;if(ne&~xe)return;if(X&4&&be&1&&(X&=-5),be!==0&&!(be&1)&&(X&=-2),X|=be,le=le.map(fe=>Me.replaceModifiers(fe,X)),_e?.length){let fe=le[le.length-1];_W(fe)&&(le[le.length-1]=Me.replaceDecoratorsAndModifiers(fe,_e.concat($g(fe)||[])))}let Le=131073;T?M=$.printAndFormatSnippetList(Le,Me.createNodeArray(le),U,T):M=$.printSnippetList(Le,Me.createNodeArray(le),U)}return{insertText:M,filterText:R,isSnippet:A,importAdder:K,eraseRange:se}}function t9e(t,n,a){if(!t||Df(n,a).line>Df(n,t.getEnd()).line)return{modifiers:0};let u=0,m,g,v={pos:a,end:a};if(vu(t.parent)&&(g=mSt(t))){t.parent.modifiers&&(u|=tI(t.parent.modifiers)&98303,m=t.parent.modifiers.filter(Cy)||[],v.pos=Math.min(...t.parent.modifiers.map(k=>k.getStart(n))));let x=Vy(g);u&x||(u|=x,v.pos=Math.min(v.pos,t.getStart(n))),t.parent.name!==t&&(v.end=t.parent.name.getStart(n))}return{modifiers:u,decorators:m,range:v.posx.getSignaturesOfType(X,0).length>0);if(re.length===1)R=re[0];else return}if(x.getSignaturesOfType(R,0).length!==1)return;let U=x.typeToTypeNode(R,n,M,void 0,vb.getNoopSymbolTrackerWithResolver({program:u,host:m}));if(!U||!xp(U))return;let $;if(g.includeCompletionsWithSnippetText){let re=Me.createEmptyStatement();$=Me.createBlock([re],!0),Jme(re,{kind:0,order:0})}else $=Me.createBlock([],!0);let K=U.parameters.map(re=>Me.createParameterDeclaration(void 0,re.dotDotDotToken,re.name,void 0,void 0,re.initializer));return Me.createMethodDeclaration(void 0,void 0,T,void 0,void 0,K,void 0,$)}default:return}}function oNe(t){let n,a=Gs.createWriter(W2(t)),u=j4(t,a),m={...a,write:M=>g(M,()=>a.write(M)),nonEscapingWrite:a.write,writeLiteral:M=>g(M,()=>a.writeLiteral(M)),writeStringLiteral:M=>g(M,()=>a.writeStringLiteral(M)),writeSymbol:(M,R)=>g(M,()=>a.writeSymbol(M,R)),writeParameter:M=>g(M,()=>a.writeParameter(M)),writeComment:M=>g(M,()=>a.writeComment(M)),writeProperty:M=>g(M,()=>a.writeProperty(M))};return{printSnippetList:v,printAndFormatSnippetList:k,printNode:T,printAndFormatNode:A};function g(M,R){let H=_w(M);if(H!==M){let U=a.getTextPos();R();let $=a.getTextPos();n=ar(n||(n=[]),{newText:H,span:{start:U,length:$-U}})}else R()}function v(M,R,H){let U=x(M,R,H);return n?Gs.applyChanges(U,n):U}function x(M,R,H){return n=void 0,m.clear(),u.writeList(M,R,H,m),m.getText()}function k(M,R,H,U){let $={text:x(M,R,H),getLineAndCharacterOfPosition(ne){return Df(this,ne)}},K=iie(U,H),re=za(R,ne=>{let se=Gs.assignPositionsToNode(ne);return Dy.formatNodeGivenIndentation(se,$,H.languageVariant,0,0,{...U,options:K})}),X=n?du(Pl(re,n),(ne,se)=>j_e(ne.span,se.span)):re;return Gs.applyChanges($.text,X)}function T(M,R,H){let U=I(M,R,H);return n?Gs.applyChanges(U,n):U}function I(M,R,H){return n=void 0,m.clear(),u.writeNode(M,R,H,m),m.getText()}function A(M,R,H,U){let $={text:I(M,R,H),getLineAndCharacterOfPosition(se){return Df(this,se)}},K=iie(U,H),re=Gs.assignPositionsToNode(R),X=Dy.formatNodeGivenIndentation(re,$,H.languageVariant,0,0,{...U,options:K}),ne=n?du(Pl(X,n),(se,_e)=>j_e(se.span,_e.span)):X;return Gs.applyChanges($.text,ne)}}function hSt(t){let n=t.fileName?void 0:B2(t.moduleSymbol.name),a=t.isFromPackageJson?!0:void 0;return Gle(t)?{exportName:t.exportName,exportMapKey:t.exportMapKey,moduleSpecifier:t.moduleSpecifier,ambientModuleName:n,fileName:t.fileName,isPackageJsonImport:a}:{exportName:t.exportName,exportMapKey:t.exportMapKey,fileName:t.fileName,ambientModuleName:t.fileName?void 0:B2(t.moduleSymbol.name),isPackageJsonImport:t.isFromPackageJson?!0:void 0}}function ynt(t,n,a){let u=t.exportName==="default",m=!!t.isPackageJsonImport;return pnt(t)?{kind:32,exportName:t.exportName,exportMapKey:t.exportMapKey,moduleSpecifier:t.moduleSpecifier,symbolName:n,fileName:t.fileName,moduleSymbol:a,isDefaultExport:u,isFromPackageJson:m}:{kind:4,exportName:t.exportName,exportMapKey:t.exportMapKey,symbolName:n,fileName:t.fileName,moduleSymbol:a,isDefaultExport:u,isFromPackageJson:m}}function vnt(t,n,a,u,m,g,v){let x=n.replacementSpan,k=_w(_le(m,v,a.moduleSpecifier)),T=a.isDefaultExport?1:a.exportName==="export="?2:0,I=v.includeCompletionsWithSnippetText?"$1":"",A=vb.getImportKind(m,T,g,!0),M=n.couldBeTypeOnlyImportSpecifier,R=n.isTopLevelTypeOnly?` ${Ef(156)} `:" ",H=M?`${Ef(156)} `:"",U=u?";":"";switch(A){case 3:return{replacementSpan:x,insertText:`import${R}${_w(t)}${I} = require(${k})${U}`};case 1:return{replacementSpan:x,insertText:`import${R}${_w(t)}${I} from ${k}${U}`};case 2:return{replacementSpan:x,insertText:`import${R}* as ${_w(t)} from ${k}${U}`};case 0:return{replacementSpan:x,insertText:`import${R}{ ${H}${_w(t)}${I} } from ${k}${U}`}}}function gSt(t,n,a){return/^\d+$/.test(a)?a:_le(t,n,a)}function iHt(t,n,a){return t===n||!!(t.flags&1048576)&&a.getExportSymbolOfSymbol(t)===n}function i9e(t){if(nNe(t))return B2(t.moduleSymbol.name);if(Gle(t))return t.moduleSpecifier;if(t?.kind===1)return"ThisProperty/";if(t?.kind===64)return"TypeOnlyAlias/"}function bnt(t,n,a,u,m,g,v,x,k,T,I,A,M,R,H,U,$,K,re,X,ne,se,_e,ae,le,Ee=!1){let xe=mm(),be=DSt(u,m),Le=$te(v),fe=k.getTypeChecker(),we=new Map;for(let he=0;heut.getSourceFile()===m.getSourceFile()));we.set(Ke,mt),Hn(n,ft,Kle,void 0,!0)}return I("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(mm()-xe)),{has:he=>we.has(he),add:he=>we.set(he,!0)};function Ae(he,Oe){var Re;let $e=he.flags;if(!ul(m)){if(Bm(m.parent))return!0;if(ac(be,$c)&&he.valueDeclaration===be)return!1;let Ke=he.valueDeclaration??((Re=he.declarations)==null?void 0:Re[0]);if(be&&Ke&&(Yp(be)&&Yp(Ke)||Fl(be)&&Fl(Ke))){let rt=Ke.pos,_t=Fl(be)?be.parent.parameters:Hy(be.parent)?void 0:be.parent.typeParameters;if(rt>=be.pos&&_t&&rt<_t.end)return!1}let qe=ym(he,fe);if(v.externalModuleIndicator&&!R.allowUmdGlobalAccess&&Oe[Nf(he)]===aS.GlobalsOrKeywords&&(Oe[Nf(qe)]===aS.AutoImportSuggestions||Oe[Nf(qe)]===aS.LocationPriority))return!1;if($e|=R8(qe),mF(m))return!!($e&1920);if(U)return Ont(he,fe)}return!!($e&111551)}function Ge(he){var Oe;let Re=R8(ym(he,fe));return!(Re&111551)&&(!Ys((Oe=he.declarations)==null?void 0:Oe[0])||!!(Re&788968))}}function Snt(t){let n=xnt(t);if(n.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:n,defaultCommitCharacters:hz(!1)}}function xnt(t){let n=[],a=new Map,u=t;for(;u&&!iu(u);){if(dL(u)){let m=u.label.text;a.has(m)||(a.set(m,!0),n.push({name:m,kindModifiers:"",kind:"label",sortText:aS.LocationPriority}))}u=u.parent}return n}function Gye(t,n,a,u,m,g,v){if(m.source==="SwitchCases/")return{type:"cases"};if(m.data){let X=wnt(m.name,m.data,t,g);if(X){let{contextToken:ne,previousToken:se}=cNe(u,a);return{type:"symbol",symbol:X.symbol,location:VS(a,u),previousToken:se,contextToken:ne,isJsxInitializer:!1,isTypeOnlyLocation:!1,origin:X.origin}}}let x=t.getCompilerOptions(),k=aNe(t,n,a,x,u,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},m,g,void 0);if(!k)return{type:"none"};if(k.kind!==0)return{type:"request",request:k};let{symbols:T,literals:I,location:A,completionKind:M,symbolToOriginInfoMap:R,contextToken:H,previousToken:U,isJsxInitializer:$,isTypeOnlyLocation:K}=k,re=jt(I,X=>gnt(a,v,X)===m.name);return re!==void 0?{type:"literal",literal:re}:Je(T,(X,ne)=>{let se=R[ne],_e=lNe(X,h_(x),se,M,k.isJsxIdentifierExpected);return _e&&_e.name===m.name&&(m.source==="ClassMemberSnippet/"&&X.flags&106500||m.source==="ObjectLiteralMethodSnippet/"&&X.flags&8196||i9e(se)===m.source||m.source==="ObjectLiteralMemberWithComma/")?{type:"symbol",symbol:X,location:A,origin:se,contextToken:H,previousToken:U,isJsxInitializer:$,isTypeOnlyLocation:K}:void 0})||{type:"none"}}function nHt(t,n,a,u,m,g,v,x,k){let T=t.getTypeChecker(),I=t.getCompilerOptions(),{name:A,source:M,data:R}=m,{previousToken:H,contextToken:U}=cNe(u,a);if(JW(a,u,H))return _9e.getStringLiteralCompletionDetails(A,a,u,H,t,g,k,x);let $=Gye(t,n,a,u,m,g,x);switch($.type){case"request":{let{request:K}=$;switch(K.kind){case 1:return N9.getJSDocTagNameCompletionDetails(A);case 2:return N9.getJSDocTagCompletionDetails(A);case 3:return N9.getJSDocParameterNameCompletionDetails(A);case 4:return En(K.keywordCompletions,re=>re.name===A)?Cnt(A,"keyword",5):void 0;default:return Se.assertNever(K)}}case"symbol":{let{symbol:K,location:re,contextToken:X,origin:ne,previousToken:se}=$,{codeActions:_e,sourceDisplay:ae}=rHt(A,re,X,ne,K,t,g,I,a,u,se,v,x,R,M,k),le=_nt(ne)?ne.symbolName:K.name;return n9e(K,le,T,a,re,k,_e,ae)}case"literal":{let{literal:K}=$;return Cnt(gnt(a,x,K),"string",typeof K=="string"?8:7)}case"cases":{let K=fSt(U.parent,a,x,t.getCompilerOptions(),g,t,void 0);if(K?.importAdder.hasFixes()){let{entry:re,importAdder:X}=K,ne=Gs.ChangeTracker.with({host:g,formatContext:v,preferences:x},X.writeFixes);return{name:re.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:ne,description:RM([j.Includes_imports_of_types_referenced_by_0,A])}]}}return{name:A,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return Tnt().some(K=>K.name===A)?Cnt(A,"keyword",5):void 0;default:Se.assertNever($)}}function Cnt(t,n,a){return sNe(t,"",n,[Pk(t,a)])}function n9e(t,n,a,u,m,g,v,x){let{displayParts:k,documentation:T,symbolKind:I,tags:A}=a.runWithCancellationToken(g,M=>mO.getSymbolDisplayPartsDocumentationAndSymbolKind(M,t,u,m,m,7));return sNe(n,mO.getSymbolModifiers(a,t),I,k,T,A,v,x)}function sNe(t,n,a,u,m,g,v,x){return{name:t,kindModifiers:n,kind:a,displayParts:u,documentation:m,tags:g,codeActions:v,source:x,sourceDisplay:x}}function rHt(t,n,a,u,m,g,v,x,k,T,I,A,M,R,H,U){if(R?.moduleSpecifier&&I&&Nnt(a||I,k).replacementSpan)return{codeActions:void 0,sourceDisplay:[Sw(R.moduleSpecifier)]};if(H==="ClassMemberSnippet/"){let{importAdder:_e,eraseRange:ae}=pSt(v,g,x,M,t,m,n,T,a,A);if(_e?.hasFixes()||ae)return{sourceDisplay:void 0,codeActions:[{changes:Gs.ChangeTracker.with({host:v,formatContext:A,preferences:M},Ee=>{_e&&_e.writeFixes(Ee),ae&&Ee.deleteRange(k,ae)}),description:_e?.hasFixes()?RM([j.Includes_imports_of_types_referenced_by_0,t]):RM([j.Update_modifiers_of_0,t])}]}}if(nSt(u)){let _e=vb.getPromoteTypeOnlyCompletionAction(k,u.declaration.name,g,v,A,M);return Se.assertIsDefined(_e,"Expected to have a code action for promoting type-only alias"),{codeActions:[_e],sourceDisplay:void 0}}if(H==="ObjectLiteralMemberWithComma/"&&a){let _e=Gs.ChangeTracker.with({host:v,formatContext:A,preferences:M},ae=>ae.insertText(k,a.end,","));if(_e)return{sourceDisplay:void 0,codeActions:[{changes:_e,description:RM([j.Add_missing_comma_for_object_member_completion_0,t])}]}}if(!u||!(nNe(u)||Gle(u)))return{codeActions:void 0,sourceDisplay:void 0};let $=u.isFromPackageJson?v.getPackageJsonAutoImportProvider().getTypeChecker():g.getTypeChecker(),{moduleSymbol:K}=u,re=$.getMergedSymbol(ym(m.exportSymbol||m,$)),X=a?.kind===30&&nv(a.parent),{moduleSpecifier:ne,codeAction:se}=vb.getImportCompletionAction(re,K,R?.exportMapKey,k,t,X,v,g,A,I&&Ai(I)?I.getStart(k):T,M,U);return Se.assert(!R?.moduleSpecifier||ne===R.moduleSpecifier),{sourceDisplay:[Sw(ne)],codeActions:[se]}}function knt(t,n,a,u,m,g,v){let x=Gye(t,n,a,u,m,g,v);return x.type==="symbol"?x.symbol:void 0}var ySt=(t=>(t[t.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",t[t.Global=1]="Global",t[t.PropertyAccess=2]="PropertyAccess",t[t.MemberLike=3]="MemberLike",t[t.String=4]="String",t[t.None=5]="None",t))(ySt||{});function vSt(t,n,a){return Je(n&&(n.isUnion()?n.types:[n]),u=>{let m=u&&u.symbol;return m&&m.flags&424&&!vg(m)?Kye(m,t,a):void 0})}function oHt(t,n,a,u){let{parent:m}=t;switch(t.kind){case 80:return fle(t,u);case 64:switch(m.kind){case 260:return u.getContextualType(m.initializer);case 226:return u.getTypeAtLocation(m.left);case 291:return u.getContextualTypeForJsxAttribute(m);default:return}case 105:return u.getContextualType(m);case 84:let g=ac(m,eP);return g?Jte(g,u):void 0;case 19:return aT(m)&&!R_(m.parent)&&!$5(m.parent)?u.getContextualTypeForJsxAttribute(m.parent):void 0;default:let v=ave.getArgumentInfoForCompletions(t,n,a,u);return v?u.getContextualTypeForArgumentAtIndex(v.invocation,v.argumentIndex):oX(t.kind)&&ms(m)&&oX(m.operatorToken.kind)?u.getTypeAtLocation(m.left):u.getContextualType(t,4)||u.getContextualType(t)}}function Kye(t,n,a){let u=a.getAccessibleSymbolChain(t,n,-1,!1);return u?of(u):t.parent&&(bSt(t.parent)?t:Kye(t.parent,n,a))}function bSt(t){var n;return!!((n=t.declarations)!=null&&n.some(a=>a.kind===307))}function aNe(t,n,a,u,m,g,v,x,k,T){let I=t.getTypeChecker(),A=rNe(a,u),M=mm(),R=wc(a,m);n("getCompletionData: Get current token: "+(mm()-M)),M=mm();let H=U4(a,m,R);n("getCompletionData: Is inside comment: "+(mm()-M));let U=!1,$=!1,K=!1;if(H){if(D0e(a,m)){if(a.text.charCodeAt(m-1)===64)return{kind:1};{let Ot=oC(m,a);if(!/[^*|\s(/)]/.test(a.text.substring(Ot,m)))return{kind:2}}}let At=c9e(R,m);if(At){if(At.tagName.pos<=m&&m<=At.tagName.end)return{kind:1};if(cT(At))$=!0;else{let Ot=Bi(At);if(Ot&&(R=wc(a,m),(!R||!VT(R)&&(R.parent.kind!==348||R.parent.name!==R))&&(U=si(Ot))),!U&&hw(At)&&(Mm(At.name)||At.name.pos<=m&&m<=At.name.end))return{kind:3,tag:At}}}if(!U&&!$){n("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}M=mm();let re=!U&&!$&&$v(a),X=cNe(m,a),ne=X.previousToken,se=X.contextToken;n("getCompletionData: Get previous token: "+(mm()-M));let _e=R,ae,le=!1,Ee=!1,xe=!1,be=!1,Le=!1,fe=!1,we,Ae=VS(a,m),Ge=0,he=!1,Oe=0;if(se){let At=Nnt(se,a);if(At.keywordCompletion){if(At.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[GVt(At.keywordCompletion)],isNewIdentifierLocation:At.isNewIdentifierLocation};Ge=dSt(At.keywordCompletion)}if(At.replacementSpan&&g.includeCompletionsForImportStatements&&g.includeCompletionsWithInsertText&&(Oe|=2,we=At,he=At.isNewIdentifierLocation),!At.replacementSpan&&Qs(se))return n("Returning an empty list because completion was requested in an invalid position."),Ge?uSt(Ge,re,qi()):void 0;let Ot=se.parent;if(se.kind===25||se.kind===29)switch(le=se.kind===25,Ee=se.kind===29,Ot.kind){case 211:ae=Ot,_e=ae.expression;let Fi=rU(ae);if(Mm(Fi)||(Od(_e)||iu(_e))&&_e.end===se.pos&&_e.getChildCount(a)&&Bu(_e.getChildren(a)).kind!==22)return;break;case 166:_e=Ot.left;break;case 267:_e=Ot.name;break;case 205:_e=Ot;break;case 236:_e=Ot.getFirstToken(a),Se.assert(_e.kind===102||_e.kind===105);break;default:return}else if(!we){if(Ot&&Ot.kind===211&&(se=Ot,Ot=Ot.parent),R.parent===Ae)switch(R.kind){case 32:(R.parent.kind===284||R.parent.kind===286)&&(Ae=R);break;case 44:R.parent.kind===285&&(Ae=R);break}switch(Ot.kind){case 287:se.kind===44&&(be=!0,Ae=se);break;case 226:if(!Int(Ot))break;case 285:case 284:case 286:fe=!0,se.kind===30&&(xe=!0,Ae=se);break;case 294:case 293:(ne.kind===20||ne.kind===80&&ne.parent.kind===291)&&(fe=!0);break;case 291:if(Ot.initializer===ne&&ne.endXW(At?x.getPackageJsonAutoImportProvider():t,x));if(le||Ee)Bn();else if(xe)qe=I.getJsxIntrinsicTagNamesAt(Ae),Se.assertEachIsDefined(qe,"getJsxIntrinsicTagNames() should all be defined"),zr(),$e=1,Ge=0;else if(be){let At=se.parent.parent.openingElement.tagName,Ot=I.getSymbolAtLocation(At);Ot&&(qe=[Ot]),$e=1,Ge=0}else if(!zr())return Ge?uSt(Ge,re,he):void 0;n("getCompletionData: Semantic work: "+(mm()-Re));let Kt=ne&&oHt(ne,m,a,I),Ut=!ac(ne,i_)&&!fe?Dc(Kt&&(Kt.isUnion()?Kt.types:[Kt]),At=>At.isLiteral()&&!(At.flags&1024)?At.value:void 0):[],pi=ne&&Kt&&vSt(ne,Kt,I);return{kind:0,symbols:qe,completionKind:$e,isInSnippetScope:K,propertyAccessToConvert:ae,isNewIdentifierLocation:he,location:Ae,keywordFilters:Ge,literals:Ut,symbolToOriginInfoMap:_t,recommendedCompletion:pi,previousToken:ne,contextToken:se,isJsxInitializer:Le,insideJsDocTagTypeExpression:U,symbolToSortTextMap:ft,isTypeOnlyLocation:ut,isJsxIdentifierExpected:fe,isRightOfOpenTag:xe,isRightOfDotOrQuestionDot:le||Ee,importStatementCompletion:we,hasUnresolvedAutoImports:Ke,flags:Oe};function wi(At){switch(At.kind){case 341:case 348:case 342:case 344:case 346:case 349:case 350:return!0;case 345:return!!At.constraint;default:return!1}}function Bi(At){if(wi(At)){let Ot=tC(At)?At.constraint:At.typeExpression;return Ot&&Ot.kind===309?Ot:void 0}if(lM(At)||Tk(At))return At.class}function Bn(){$e=2;let At=Wy(_e),Ot=At&&!_e.isTypeOf||jA(_e.parent)||cJ(se,a,I),Fi=mF(_e);if(tb(_e)||At||ba(_e)){let Vn=Dh(_e.parent);Vn&&(he=!0);let In=I.getSymbolAtLocation(_e);if(In&&(In=ym(In,I),In.flags&1920)){let dn=I.getExportsOfModule(In);Se.assertEachIsDefined(dn,"getExportsOfModule() should all be defined");let Si=cn=>I.isValidPropertyAccess(At?_e:_e.parent,cn.name),Ri=cn=>Ont(cn,I),Cn=Vn?cn=>{var Pn;return!!(cn.flags&1920)&&!((Pn=cn.declarations)!=null&&Pn.every(Wi=>Wi.parent===_e.parent))}:Fi?cn=>Ri(cn)||Si(cn):Ot||U?Ri:Si;for(let cn of dn)Cn(cn)&&qe.push(cn);if(!Ot&&!U&&In.declarations&&In.declarations.some(cn=>cn.kind!==307&&cn.kind!==267&&cn.kind!==266)){let cn=I.getTypeOfSymbolAtLocation(In,_e).getNonOptionalType(),Pn=!1;if(cn.isNullableType()){let Wi=le&&!Ee&&g.includeAutomaticOptionalChainCompletions!==!1;(Wi||Ee)&&(cn=cn.getNonNullableType(),Wi&&(Pn=!0))}mr(cn,!!(_e.flags&65536),Pn)}return}}if(!Ot||GH(_e)){I.tryGetThisTypeAt(_e,!1);let Vn=I.getTypeAtLocation(_e).getNonOptionalType();if(Ot)mr(Vn.getNonNullableType(),!1,!1);else{let In=!1;if(Vn.isNullableType()){let dn=le&&!Ee&&g.includeAutomaticOptionalChainCompletions!==!1;(dn||Ee)&&(Vn=Vn.getNonNullableType(),dn&&(In=!0))}mr(Vn,!!(_e.flags&65536),In)}}}function mr(At,Ot,Fi){he=!!At.getStringIndexType(),Ee&&En(At.getCallSignatures())&&(he=!0);let Vn=_e.kind===205?_e:_e.parent;if(A)for(let In of At.getApparentProperties())I.isValidPropertyAccessForCompletions(Vn,At,In)&&Ei(In,!1,Fi);else qe.push(...Qn(Xle(At,I),In=>I.isValidPropertyAccessForCompletions(Vn,At,In)));if(Ot&&g.includeCompletionsWithInsertText){let In=I.getPromisedTypeOfPromise(At);if(In)for(let dn of In.getApparentProperties())I.isValidPropertyAccessForCompletions(Vn,In,dn)&&Ei(dn,!0,Fi)}}function Ei(At,Ot,Fi){var Vn;let In=Je(At.declarations,Cn=>ac(Nu(Cn),f_));if(In){let Cn=zn(In.expression),cn=Cn&&I.getSymbolAtLocation(Cn),Pn=cn&&Kye(cn,se,I),Wi=Pn&&Nf(Pn);if(Wi&&HC(mt,Wi)){let Kn=qe.length;qe.push(Pn);let Ti=Pn.parent;if(!Ti||!xH(Ti)||I.tryGetMemberInModuleExportsAndProperties(Pn.name,Ti)!==Pn)_t[Kn]={kind:Ri(2)};else{let wr=l0(B2(Ti.name))?(Vn=g4(Ti))==null?void 0:Vn.fileName:void 0,{moduleSpecifier:Nr}=(rt||(rt=vb.createImportSpecifierResolver(a,t,x,g))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:wr,isFromPackageJson:!1,moduleSymbol:Ti,symbol:Pn,targetFlags:ym(Pn,I).flags}],m,q3(Ae))||{};if(Nr){let Vr={kind:Ri(6),moduleSymbol:Ti,isDefaultExport:!1,symbolName:Pn.name,exportName:Pn.name,fileName:wr,moduleSpecifier:Nr};_t[Kn]=Vr}}}else if(g.includeCompletionsWithInsertText){if(Wi&&mt.has(Wi))return;Si(At),dn(At),qe.push(At)}}else Si(At),dn(At),qe.push(At);function dn(Cn){wSt(Cn)&&(ft[Nf(Cn)]=aS.LocalDeclarationPriority)}function Si(Cn){g.includeCompletionsWithInsertText&&(Ot&&HC(mt,Nf(Cn))?_t[qe.length]={kind:Ri(8)}:Fi&&(_t[qe.length]={kind:16}))}function Ri(Cn){return Fi?Cn|16:Cn}}function zn(At){return Ai(At)?At:ba(At)?zn(At.expression):void 0}function zr(){return(Xi()||nt()||_r()||Lt()||Pe()||St()||xr()||Ve()||lo()||(Hs(),1))===1}function xr(){return dt(se)?($e=5,he=!0,Ge=4,1):0}function lo(){let At=pt(se),Ot=At&&I.getContextualType(At.attributes);if(!Ot)return 0;let Fi=At&&I.getContextualType(At.attributes,4);return qe=Pl(qe,We(l9e(Ot,Fi,At.attributes,I),At.attributes.properties)),ye(),$e=3,he=!1,1}function _r(){return we?(he=!0,gn(),1):0}function Hs(){Ge=Wt(se)?5:1,$e=1,he=qi(),ne!==se&&Se.assert(!!ne,"Expected 'contextToken' to be defined when different from 'previousToken'.");let At=ne!==se?ne.getStart():m,Ot=Mn(se,At,a)||a;K=mn(Ot);let Fi=(ut?0:111551)|788968|1920|2097152,Vn=ne&&!q3(ne);qe=Pl(qe,I.getSymbolsInScope(Ot,Fi)),Se.assertEachIsDefined(qe,"getSymbolsInScope() should all be defined");for(let In=0;InSi.getSourceFile()===a)&&(ft[Nf(dn)]=aS.GlobalsOrKeywords),Vn&&!(dn.flags&111551)){let Si=dn.declarations&&jt(dn.declarations,L7);if(Si){let Ri={kind:64,declaration:Si};_t[In]=Ri}}}if(g.includeCompletionsWithInsertText&&Ot.kind!==307){let In=I.tryGetThisTypeAt(Ot,!1,bc(Ot.parent)?Ot:void 0);if(In&&!lHt(In,a,I))for(let dn of Xle(In,I))_t[qe.length]={kind:1},qe.push(dn),ft[Nf(dn)]=aS.SuggestedClassMembers}gn(),ut&&(Ge=se&&gy(se.parent)?6:7)}function ai(){var At;return we?!0:g.includeCompletionsForModuleExports?a.externalModuleIndicator||a.commonJsModuleIndicator||M0e(t.getCompilerOptions())?!0:((At=t.getSymlinkCache)==null?void 0:At.call(t).hasAnySymlinks())||!!t.getCompilerOptions().paths||F0e(t):!1}function mn(At){switch(At.kind){case 307:case 228:case 294:case 241:return!0;default:return ll(At)}}function Nn(){return U||$||!!we&&j6(Ae.parent)||!Gr(se)&&(cJ(se,a,I)||jA(Ae)||ci(se))}function Gr(At){return At&&(At.kind===114&&(At.parent.kind===186||Ip(At.parent))||At.kind===131&&At.parent.kind===182)}function ci(At){if(At){let Ot=At.parent.kind;switch(At.kind){case 59:return Ot===172||Ot===171||Ot===169||Ot===260||Vh(Ot);case 64:return Ot===265||Ot===168;case 130:return Ot===234;case 30:return Ot===183||Ot===216;case 96:return Ot===168;case 152:return Ot===238}}return!1}function gn(){var At,Ot;if(!ai()||(Se.assert(!v?.data,"Should not run 'collectAutoImports' when faster path is available via `data`"),v&&!v.source))return;Oe|=1;let Vn=ne===se&&we?"":ne&&Ai(ne)?ne.text.toLowerCase():"",In=(At=x.getModuleSpecifierCache)==null?void 0:At.call(x),dn=Q0e(a,x,t,g,T),Si=(Ot=x.getPackageJsonAutoImportProvider)==null?void 0:Ot.call(x),Ri=v?void 0:bJ(a,g,x);qye("collectAutoImports",x,rt||(rt=vb.createImportSpecifierResolver(a,t,x,g)),t,m,g,!!we,q3(Ae),cn=>{dn.search(a.path,xe,(Pn,Wi)=>{if(!Jb(Pn,h_(x.getCompilationSettings()))||!v&&ov(Pn)||!ut&&!we&&!(Wi&111551)||ut&&!(Wi&790504))return!1;let Kn=Pn.charCodeAt(0);return xe&&(Kn<65||Kn>90)?!1:v?!0:Fnt(Pn,Vn)},(Pn,Wi,Kn,Ti)=>{if(v&&!En(Pn,pa=>v.source===B2(pa.moduleSymbol.name))||(Pn=Qn(Pn,Cn),!Pn.length))return;let wr=cn.tryResolve(Pn,Kn)||{};if(wr==="failed")return;let Nr=Pn[0],Vr;wr!=="skipped"&&({exportInfo:Nr=Pn[0],moduleSpecifier:Vr}=wr);let ir=Nr.exportKind===1,Ts=ir&&E5(Se.checkDefined(Nr.symbol))||Se.checkDefined(Nr.symbol);Sr(Ts,{kind:Vr?32:4,moduleSpecifier:Vr,symbolName:Wi,exportMapKey:Ti,exportName:Nr.exportKind===2?"export=":Se.checkDefined(Nr.symbol).name,fileName:Nr.moduleFileName,isDefaultExport:ir,moduleSymbol:Nr.moduleSymbol,isFromPackageJson:Nr.isFromPackageJson})}),Ke=cn.skippedAny(),Oe|=cn.resolvedAny()?8:0,Oe|=cn.resolvedBeyondLimit()?16:0});function Cn(cn){let Pn=ac(cn.moduleSymbol.valueDeclaration,ul);if(!Pn){let Wi=B2(cn.moduleSymbol.name);return lP.nodeCoreModules.has(Wi)&&xl(Wi,"node:")!==rz(a,t)?!1:(Ri?.allowsImportingAmbientModule(cn.moduleSymbol,ht(cn.isFromPackageJson))??!0)||fX(a,Wi)}return rie(cn.isFromPackageJson?Si:t,a,Pn,g,Ri,ht(cn.isFromPackageJson),In)}}function Sr(At,Ot){let Fi=Nf(At);ft[Fi]!==aS.GlobalsOrKeywords&&(_t[qe.length]=Ot,ft[Fi]=we?aS.LocationPriority:aS.AutoImportSuggestions,qe.push(At))}function vo(At,Ot){Ys(Ae)||At.forEach(Fi=>{if(!$o(Fi))return;let Vn=lNe(Fi,h_(u),void 0,0,!1);if(!Vn)return;let{name:In}=Vn,dn=eHt(Fi,In,Ot,t,x,u,g,k);if(!dn)return;let Si={kind:128,...dn};Oe|=32,_t[qe.length]=Si,qe.push(Fi)})}function $o(At){return!!(At.flags&8196)}function Mn(At,Ot,Fi){let Vn=At;for(;Vn&&!Lte(Vn,Ot,Fi);)Vn=Vn.parent;return Vn}function Qs(At){let Ot=mm(),Fi=lt(At)||Mt(At)||Bt(At)||Pi(At)||ZG(At);return n("getCompletionsAtPosition: isCompletionListBlocker: "+(mm()-Ot)),Fi}function Pi(At){if(At.kind===12)return!0;if(At.kind===32&&At.parent){if(Ae===At.parent&&(Ae.kind===286||Ae.kind===285))return!1;if(At.parent.kind===286)return Ae.parent.kind!==286;if(At.parent.kind===287||At.parent.kind===285)return!!At.parent.parent&&At.parent.parent.kind===284}return!1}function qi(){if(se){let At=se.parent.kind,Ot=a9e(se);switch(Ot){case 28:return At===213||At===176||At===214||At===209||At===226||At===184||At===210;case 21:return At===213||At===176||At===214||At===217||At===196;case 23:return At===209||At===181||At===167;case 144:case 145:case 102:return!0;case 25:return At===267;case 19:return At===263||At===210;case 64:return At===260||At===226;case 16:return At===228;case 17:return At===239;case 134:return At===174||At===304;case 42:return At===174}if(uNe(Ot))return!0}return!1}function lt(At){return(Yme(At)||W6(At))&&(Pte(At,m)||m===At.end&&(!!At.isUnterminated||Yme(At)))}function Xi(){let At=CSt(se);if(!At)return 0;let Fi=(lL(At.parent)?At.parent:void 0)||At,Vn=kSt(Fi,I);if(!Vn)return 0;let In=I.getTypeFromTypeNode(Fi),dn=Xle(Vn,I),Si=Xle(In,I),Ri=new Set;return Si.forEach(Cn=>Ri.add(Cn.escapedName)),qe=Pl(qe,Qn(dn,Cn=>!Ri.has(Cn.escapedName))),$e=0,he=!0,1}function nt(){if(se?.kind===26)return 0;let At=qe.length,Ot=r9e(se,m,a);if(!Ot)return 0;$e=0;let Fi,Vn;if(Ot.kind===210){let In=TSt(Ot,I);if(In===void 0)return Ot.flags&67108864?2:0;let dn=I.getContextualType(Ot,4),Si=(dn||In).getStringIndexType(),Ri=(dn||In).getNumberIndexType();if(he=!!Si||!!Ri,Fi=l9e(In,dn,Ot,I),Vn=Ot.properties,Fi.length===0&&!Ri)return 0}else{Se.assert(Ot.kind===206),he=!1;let In=UT(Ot.parent);if(!mj(In))return Se.fail("Root declaration is not variable-like.");let dn=yg(In)||!!gm(In)||In.parent.parent.kind===250;if(!dn&&In.kind===169&&(An(In.parent)?dn=!!I.getContextualType(In.parent):(In.parent.kind===174||In.parent.kind===178)&&(dn=An(In.parent.parent)&&!!I.getContextualType(In.parent.parent))),dn){let Si=I.getTypeAtLocation(Ot);if(!Si)return 2;Fi=I.getPropertiesOfType(Si).filter(Ri=>I.isPropertyAccessible(Ot,!1,!1,Si,Ri)),Vn=Ot.elements}}if(Fi&&Fi.length>0){let In=Ue(Fi,Se.checkDefined(Vn));qe=Pl(qe,In),ye(),Ot.kind===210&&g.includeCompletionsWithObjectLiteralMethodSnippets&&g.includeCompletionsWithInsertText&&(pe(At),vo(In,Ot))}return 1}function Lt(){if(!se)return 0;let At=se.kind===19||se.kind===28?ac(se.parent,zj):$W(se)?ac(se.parent.parent,zj):void 0;if(!At)return 0;$W(se)||(Ge=8);let{moduleSpecifier:Ot}=At.kind===275?At.parent.parent:At.parent;if(!Ot)return he=!0,At.kind===275?2:0;let Fi=I.getSymbolAtLocation(Ot);if(!Fi)return he=!0,2;$e=3,he=!1;let Vn=I.getExportsAndPropertiesOfModule(Fi),In=new Set(At.elements.filter(Si=>!si(Si)).map(Si=>x8(Si.propertyName||Si.name))),dn=Vn.filter(Si=>Si.escapedName!=="default"&&!In.has(Si.escapedName));return qe=Pl(qe,dn),dn.length||(Ge=0),1}function Pe(){if(se===void 0)return 0;let At=se.kind===19||se.kind===28?ac(se.parent,GC):se.kind===59?ac(se.parent.parent,GC):void 0;if(At===void 0)return 0;let Ot=new Set(At.elements.map(hU));return qe=Qn(I.getTypeAtLocation(At).getApparentProperties(),Fi=>!Ot.has(Fi.escapedName)),1}function St(){var At;let Ot=se&&(se.kind===19||se.kind===28)?ac(se.parent,QT):void 0;if(!Ot)return 0;let Fi=go(Ot,ow(ul,Dh));return $e=5,he=!1,(At=Fi.locals)==null||At.forEach((Vn,In)=>{var dn,Si;qe.push(Vn),(Si=(dn=Fi.symbol)==null?void 0:dn.exports)!=null&&Si.has(In)&&(ft[Nf(Vn)]=aS.OptionalMember)}),1}function Ve(){let At=aHt(a,se,Ae,m);if(!At)return 0;if($e=3,he=!0,Ge=se.kind===42?0:bc(At)?2:3,!bc(At))return 1;let Ot=se.kind===27?se.parent.parent:se.parent,Fi=rl(Ot)?A_(Ot):0;if(se.kind===80&&!si(se))switch(se.getText()){case"private":Fi=Fi|2;break;case"static":Fi=Fi|256;break;case"override":Fi=Fi|16;break}if(Yf(Ot)&&(Fi|=256),!(Fi&2)){let Vn=bc(At)&&Fi&16?Rl(HE(At)):FH(At),In=za(Vn,dn=>{let Si=I.getTypeAtLocation(dn);return Fi&256?Si?.symbol&&I.getPropertiesOfType(I.getTypeOfSymbolAtLocation(Si.symbol,At)):Si&&I.getPropertiesOfType(Si)});qe=Pl(qe,at(In,At.members,Fi)),ee(qe,(dn,Si)=>{let Ri=dn?.valueDeclaration;if(Ri&&rl(Ri)&&Ri.name&&f_(Ri.name)){let Cn={kind:512,symbolName:I.symbolToString(dn)};_t[Si]=Cn}})}return 1}function Tt(At){return!!At.parent&&Fl(At.parent)&&yl(At.parent.parent)&&($$(At.kind)||VT(At))}function dt(At){if(At){let Ot=At.parent;switch(At.kind){case 21:case 28:return yl(At.parent)?At.parent:void 0;default:if(Tt(At))return Ot.parent}}}function Wt(At){if(At){let Ot,Fi=go(At.parent,Vn=>bc(Vn)?"quit":Rp(Vn)&&Ot===Vn.body?!0:(Ot=Vn,!1));return Fi&&Fi}}function pt(At){if(At){let Ot=At.parent;switch(At.kind){case 32:case 31:case 44:case 80:case 211:case 292:case 291:case 293:if(Ot&&(Ot.kind===285||Ot.kind===286)){if(At.kind===32){let Fi=p0(At.pos,a,void 0);if(!Ot.typeArguments||Fi&&Fi.kind===44)break}return Ot}else if(Ot.kind===291)return Ot.parent.parent;break;case 11:if(Ot&&(Ot.kind===291||Ot.kind===293))return Ot.parent.parent;break;case 20:if(Ot&&Ot.kind===294&&Ot.parent&&Ot.parent.kind===291)return Ot.parent.parent.parent;if(Ot&&Ot.kind===293)return Ot.parent.parent;break}}}function Gt(At,Ot){return a.getLineEndOfPosition(At.getEnd())=At.pos;case 25:return Fi===207;case 59:return Fi===208;case 23:return Fi===207;case 21:return Fi===299||Ie(Fi);case 19:return Fi===266;case 30:return Fi===263||Fi===231||Fi===264||Fi===265||Vh(Fi);case 126:return Fi===172&&!bc(Ot.parent);case 26:return Fi===169||!!Ot.parent&&Ot.parent.kind===207;case 125:case 123:case 124:return Fi===169&&!yl(Ot.parent);case 130:return Fi===276||Fi===281||Fi===274;case 139:case 153:return!u9e(At);case 80:{if(Fi===276&&At===Ot.name&&At.text==="type"||go(At.parent,$c)&&Gt(At,m))return!1;break}case 86:case 94:case 120:case 100:case 115:case 102:case 121:case 87:case 140:return!0;case 156:return Fi!==276;case 42:return iu(At.parent)&&!Sg(At.parent)}if(uNe(a9e(At))&&u9e(At)||Tt(At)&&(!Ai(At)||$$(a9e(At))||si(At)))return!1;switch(a9e(At)){case 128:case 86:case 87:case 138:case 94:case 100:case 120:case 121:case 123:case 124:case 125:case 126:case 115:return!0;case 134:return vu(At.parent)}if(go(At.parent,bc)&&At===ne&&hi(At,m))return!1;let In=M2(At.parent,172);if(In&&At!==ne&&bc(ne.parent.parent)&&m<=ne.end){if(hi(At,ne.end))return!1;if(At.kind!==64&&(n9(In)||Yoe(In)))return!0}return VT(At)&&!Q0(At.parent)&&!_b(At.parent)&&!((bc(At.parent)||ky(At.parent)||Yp(At.parent))&&(At!==ne||m>ne.end))}function hi(At,Ot){return At.kind!==64&&(At.kind===27||!sv(At.end,Ot,a))}function Ie(At){return Vh(At)&&At!==176}function Bt(At){if(At.kind===9){let Ot=At.getFullText();return Ot.charAt(Ot.length-1)==="."}return!1}function ui(At){return At.parent.kind===261&&!cJ(At,a,I)}function Ue(At,Ot){if(Ot.length===0)return At;let Fi=new Set,Vn=new Set;for(let dn of Ot){if(dn.kind!==303&&dn.kind!==304&&dn.kind!==208&&dn.kind!==174&&dn.kind!==177&&dn.kind!==178&&dn.kind!==305||si(dn))continue;let Si;if(H2(dn))Ce(dn,Fi);else if(Zd(dn)&&dn.propertyName)dn.propertyName.kind===80&&(Si=dn.propertyName.escapedText);else{let Ri=Nu(dn);Si=Ri&&Xp(Ri)?dx(Ri):void 0}Si!==void 0&&Vn.add(Si)}let In=At.filter(dn=>!Vn.has(dn.escapedName));return vt(Fi,In),In}function Ce(At,Ot){let Fi=At.expression,Vn=I.getSymbolAtLocation(Fi),In=Vn&&I.getTypeOfSymbolAtLocation(Vn,Fi),dn=In&&In.properties;dn&&dn.forEach(Si=>{Ot.add(Si.name)})}function ye(){qe.forEach(At=>{if(At.flags&16777216){let Ot=Nf(At);ft[Ot]=ft[Ot]??aS.OptionalMember}})}function vt(At,Ot){if(At.size!==0)for(let Fi of Ot)At.has(Fi.name)&&(ft[Nf(Fi)]=aS.MemberDeclaredBySpreadAssignment)}function pe(At){for(let Ot=At;Ot!Vn.has(In.escapedName)&&!!In.declarations&&!(nT(In)&2)&&!(In.valueDeclaration&&qb(In.valueDeclaration)))}function We(At,Ot){let Fi=new Set,Vn=new Set;for(let dn of Ot)si(dn)||(dn.kind===291?Fi.add(Y3(dn.name)):ZA(dn)&&Ce(dn,Vn));let In=At.filter(dn=>!Fi.has(dn.escapedName));return vt(Vn,In),In}function si(At){return At.getStart(a)<=m&&m<=At.getEnd()}}function r9e(t,n,a){var u;if(t){let{parent:m}=t;switch(t.kind){case 19:case 28:if(Ld(m)||fb(m))return m;break;case 42:return Sg(m)?ac(m.parent,Ld):void 0;case 134:return ac(m.parent,Ld);case 80:if(t.text==="async"&&Q0(t.parent))return t.parent.parent;{if(Ld(t.parent.parent)&&(H2(t.parent)||Q0(t.parent)&&Df(a,t.getEnd()).line!==Df(a,n).line))return t.parent.parent;let v=go(m,Ih);if(v?.getLastToken(a)===t&&Ld(v.parent))return v.parent}break;default:if((u=m.parent)!=null&&u.parent&&(Sg(m.parent)||n_(m.parent)||zc(m.parent))&&Ld(m.parent.parent))return m.parent.parent;if(H2(m)&&Ld(m.parent))return m.parent;let g=go(m,Ih);if(t.kind!==59&&g?.getLastToken(a)===t&&Ld(g.parent))return g.parent}}}function cNe(t,n){let a=p0(t,n);return a&&t<=a.end&&(qD(a)||Gv(a.kind))?{contextToken:p0(a.getFullStart(),n,void 0),previousToken:a}:{contextToken:a,previousToken:a}}function wnt(t,n,a,u){let m=n.isPackageJsonImport?u.getPackageJsonAutoImportProvider():a,g=m.getTypeChecker(),v=n.ambientModuleName?g.tryFindAmbientModule(n.ambientModuleName):n.fileName?g.getMergedSymbol(Se.checkDefined(m.getSourceFile(n.fileName)).symbol):void 0;if(!v)return;let x=n.exportName==="export="?g.resolveExternalModuleSymbol(v):g.tryGetMemberInModuleExportsAndProperties(n.exportName,v);return x?(x=n.exportName==="default"&&E5(x)||x,{symbol:x,origin:ynt(n,t,v)}):void 0}function lNe(t,n,a,u,m){if(rSt(a))return;let g=JVt(a)?a.symbolName:t.name;if(g===void 0||t.flags&1536&&xj(g.charCodeAt(0))||ZD(t))return;let v={name:g,needsConvertPropertyAccess:!1};if(Jb(g,n,m?1:0)||t.valueDeclaration&&qb(t.valueDeclaration))return v;if(t.flags&2097152)return{name:g,needsConvertPropertyAccess:!0};switch(u){case 3:return _nt(a)?{name:a.symbolName,needsConvertPropertyAccess:!1}:void 0;case 0:return{name:JSON.stringify(g),needsConvertPropertyAccess:!1};case 2:case 1:return g.charCodeAt(0)===32?void 0:{name:g,needsConvertPropertyAccess:!0};case 5:case 4:return v;default:Se.assertNever(u)}}var o9e=[],Tnt=H0(()=>{let t=[];for(let n=83;n<=165;n++)t.push({name:Ef(n),kind:"keyword",kindModifiers:"",sortText:aS.GlobalsOrKeywords});return t});function Xye(t,n){if(!n)return Ent(t);let a=t+8+1;return o9e[a]||(o9e[a]=Ent(t).filter(u=>!s9e(fH(u.name))))}function Ent(t){return o9e[t]||(o9e[t]=Tnt().filter(n=>{let a=fH(n.name);switch(t){case 0:return!1;case 1:return dNe(a)||a===138||a===144||a===156||a===145||a===128||y9(a)&&a!==157;case 5:return dNe(a);case 2:return uNe(a);case 3:return SSt(a);case 4:return $$(a);case 6:return y9(a)||a===87;case 7:return y9(a);case 8:return a===156;default:return Se.assertNever(t)}}))}function s9e(t){switch(t){case 128:case 133:case 163:case 136:case 138:case 94:case 162:case 119:case 140:case 120:case 142:case 143:case 144:case 145:case 146:case 150:case 151:case 164:case 123:case 124:case 125:case 148:case 154:case 155:case 156:case 158:case 159:return!0;default:return!1}}function SSt(t){return t===148}function uNe(t){switch(t){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return Om(t)}}function dNe(t){return t===134||t===135||t===160||t===130||t===152||t===156||!RH(t)&&!uNe(t)}function a9e(t){return Ai(t)?F6(t)??0:t.kind}function xSt(t,n){let a=[];if(t){let u=t.getSourceFile(),m=t.parent,g=u.getLineAndCharacterOfPosition(t.end).line,v=u.getLineAndCharacterOfPosition(n).line;(Dd(m)||Qg(m)&&m.moduleSpecifier)&&t===m.moduleSpecifier&&g===v&&a.push({name:Ef(132),kind:"keyword",kindModifiers:"",sortText:aS.GlobalsOrKeywords})}return a}function c9e(t,n){return go(t,a=>SH(a)&&xx(a,n)?!0:eD(a)?"quit":!1)}function l9e(t,n,a,u){let m=n&&n!==t,g=u.getUnionType(Qn(t.flags&1048576?t.types:[t],T=>!u.getPromisedTypeOfPromise(T))),v=m&&!(n.flags&3)?u.getUnionType([g,n]):g,x=sHt(v,a,u);return v.isClass()&&Dnt(x)?[]:m?Qn(x,k):x;function k(T){return Z(T.declarations)?En(T.declarations,I=>I.parent!==a):!0}}function sHt(t,n,a){return t.isUnion()?a.getAllPossiblePropertiesOfTypes(Qn(t.types,u=>!(u.flags&402784252||a.isArrayLikeType(u)||a.isTypeInvalidDueToUnionDiscriminant(u,n)||a.typeHasCallOrConstructSignatures(u)||u.isClass()&&Dnt(u.getApparentProperties())))):t.getApparentProperties()}function Dnt(t){return En(t,n=>!!(nT(n)&6))}function Xle(t,n){return t.isUnion()?Se.checkEachDefined(n.getAllPossiblePropertiesOfTypes(t.types),"getAllPossiblePropertiesOfTypes() should all be defined"):Se.checkEachDefined(t.getApparentProperties(),"getApparentProperties() should all be defined")}function aHt(t,n,a,u){switch(a.kind){case 352:return ac(a.parent,PG);case 1:let m=ac(Y_($d(a.parent,ul).statements),PG);if(m&&!Np(m,20,t))return m;break;case 81:if(ac(a.parent,vu))return go(a,bc);break;case 80:{if(F6(a)||vu(a.parent)&&a.parent.initializer===a)return;if(u9e(a))return go(a,PG)}}if(n){if(a.kind===137||Ai(n)&&vu(n.parent)&&bc(a))return go(n,bc);switch(n.kind){case 64:return;case 27:case 20:return u9e(a)&&a.parent.name===a?a.parent.parent:ac(a,PG);case 19:case 28:return ac(n.parent,PG);default:if(PG(a)){if(Df(t,n.getEnd()).line!==Df(t,u).line)return a;let m=bc(n.parent.parent)?uNe:SSt;return m(n.kind)||n.kind===42||Ai(n)&&m(F6(n)??0)?n.parent.parent:void 0}return}}}function CSt(t){if(!t)return;let n=t.parent;switch(t.kind){case 19:if(Im(n))return n;break;case 27:case 28:case 80:if(n.kind===171&&Im(n.parent))return n.parent;break}}function kSt(t,n){if(!t)return;if(Qa(t)&&Y$(t.parent))return n.getTypeArgumentConstraint(t);let a=kSt(t.parent,n);if(a)switch(t.kind){case 171:return n.getTypeOfPropertyOfContextualType(a,t.symbol.escapedName);case 193:case 187:case 192:return a}}function u9e(t){return t.parent&&Pc(t.parent)&&PG(t.parent.parent)}function cHt(t,n,a,u){switch(n){case".":case"@":return!0;case'"':case"'":case"`":return!!a&&ple(a)&&u===a.getStart(t)+1;case"#":return!!a&&wl(a)&&!!vy(a);case"<":return!!a&&a.kind===30&&(!ms(a.parent)||Int(a.parent));case"/":return!!a&&(i_(a)?!!wj(a):a.kind===44&&I0(a.parent));case" ":return!!a&&rM(a)&&a.parent.kind===307;default:return Se.assertNever(n)}}function Int({left:t}){return Mm(t)}function lHt(t,n,a){let u=a.resolveName("self",void 0,111551,!1);if(u&&a.getTypeOfSymbolAtLocation(u,n)===t)return!0;let m=a.resolveName("global",void 0,111551,!1);if(m&&a.getTypeOfSymbolAtLocation(m,n)===t)return!0;let g=a.resolveName("globalThis",void 0,111551,!1);return!!(g&&a.getTypeOfSymbolAtLocation(g,n)===t)}function wSt(t){return!!(t.valueDeclaration&&A_(t.valueDeclaration)&256&&bc(t.valueDeclaration.parent))}function TSt(t,n){let a=n.getContextualType(t);if(a)return a;let u=uN(t.parent);if(ms(u)&&u.operatorToken.kind===64&&t===u.left)return n.getTypeAtLocation(u);if(An(u))return n.getContextualType(u)}function Nnt(t,n){var a,u,m;let g,v=!1,x=k();return{isKeywordOnlyCompletion:v,keywordCompletion:g,isNewIdentifierLocation:!!(x||g===156),isTopLevelTypeOnly:!!((u=(a=ac(x,Dd))==null?void 0:a.importClause)!=null&&u.isTypeOnly)||!!((m=ac(x,pf))!=null&&m.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!x&&Pnt(x,t),replacementSpan:Ant(x)};function k(){let T=t.parent;if(pf(T)){let I=T.getLastToken(n);if(Ai(t)&&I!==t){g=161,v=!0;return}return g=t.kind===156?void 0:156,Lnt(T.moduleReference)?T:void 0}if(Pnt(T,t)&&d9e(T.parent))return T;if(_p(T)||ZE(T)){if(!T.parent.isTypeOnly&&(t.kind===19||t.kind===102||t.kind===28)&&(g=156),d9e(T))if(t.kind===20||t.kind===80)v=!0,g=161;else return T.parent.parent;return}if(Qg(T)&&t.kind===42||QT(T)&&t.kind===20){v=!0,g=161;return}if(rM(t)&&ul(T))return g=156,t;if(rM(t)&&Dd(T))return g=156,Lnt(T.moduleSpecifier)?T:void 0}}function Ant(t){var n;if(!t)return;let a=go(t,ow(Dd,pf,cT))??t,u=a.getSourceFile();if(F8(a,u))return Cx(a,u);Se.assert(a.kind!==102&&a.kind!==276);let m=a.kind===272||a.kind===351?ESt((n=a.importClause)==null?void 0:n.namedBindings)??a.moduleSpecifier:a.moduleReference,g={pos:a.getFirstToken().getStart(),end:m.pos};if(F8(g,u))return q4(g)}function ESt(t){var n;return jt((n=ac(t,_p))==null?void 0:n.elements,a=>{var u;return!a.propertyName&&ov(a.name.text)&&((u=p0(a.name.pos,t.getSourceFile(),t))==null?void 0:u.kind)!==28})}function Pnt(t,n){return eg(t)&&(t.isTypeOnly||n===t.name&&$W(n))}function d9e(t){if(!Lnt(t.parent.parent.moduleSpecifier)||t.parent.name)return!1;if(_p(t)){let n=ESt(t);return(n?t.elements.indexOf(n):t.elements.length)<2}return!0}function Lnt(t){var n;return Mm(t)?!0:!((n=ac(Zg(t)?t.expression:t,i_))!=null&&n.text)}function DSt(t,n){if(!t)return;let a=go(t,m=>z7(m)||ISt(m)||Uu(m)?"quit":(Fl(m)||Yp(m))&&!nu(m.parent)),u=go(n,m=>z7(m)||ISt(m)||Uu(m)?"quit":$c(m));return a||u}function ISt(t){return t.parent&&Zc(t.parent)&&(t.parent.body===t||t.kind===39)}function Ont(t,n,a=new Map){return u(t)||u(ym(t.exportSymbol||t,n));function u(m){return!!(m.flags&788968)||n.isUnknownSymbol(m)||!!(m.flags&1536)&&HC(a,Nf(m))&&n.getExportsOfModule(m).some(g=>Ont(g,n,a))}}function f9e(t,n){let a=ym(t,n).declarations;return!!Z(a)&&Yt(a,uX)}function Fnt(t,n){if(n.length===0)return!0;let a=!1,u,m=0,g=t.length;for(let v=0;vLSt,getStringLiteralCompletions:()=>ASt});var NSt={directory:0,script:1,"external module name":2};function Rnt(){let t=new Map;function n(a){let u=t.get(a.name);(!u||NSt[u.kind]({name:w4(R.value,A),kindModifiers:"",kind:"string",sortText:aS.LocationPriority,replacementSpan:O0e(n,k),commitCharacters:[]}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t.isNewIdentifier,optionalReplacementSpan:I,entries:M,defaultCommitCharacters:hz(t.isNewIdentifier)}}default:return Se.assertNever(t)}}function LSt(t,n,a,u,m,g,v,x){if(!u||!i_(u))return;let k=jnt(n,u,a,m,g,x);return k&&Bnt(t,u,k,n,m.getTypeChecker(),v)}function Bnt(t,n,a,u,m,g){switch(a.kind){case 0:{let v=jt(a.paths,x=>x.name===t);return v&&sNe(t,FSt(v.extension),v.kind,[Sw(t)])}case 1:{let v=jt(a.symbols,x=>x.name===t);return v&&n9e(v,v.name,m,u,n,g)}case 2:return jt(a.types,v=>v.value===t)?sNe(t,"","string",[Sw(t)]):void 0;default:return Se.assertNever(a)}}function OSt(t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:t.map(({name:m,kind:g,span:v,extension:x})=>({name:m,kind:g,kindModifiers:FSt(x),sortText:aS.LocationPriority,replacementSpan:v})),defaultCommitCharacters:hz(!0)}}function FSt(t){switch(t){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case".d.mts":return".d.mts";case".mjs":return".mjs";case".mts":return".mts";case".d.cts":return".d.cts";case".cjs":return".cjs";case".cts":return".cts";case".tsbuildinfo":return Se.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return Se.assertNever(t)}}function jnt(t,n,a,u,m,g){let v=u.getTypeChecker(),x=Wnt(n.parent);switch(x.kind){case 201:{let ne=Wnt(x.parent);return ne.kind===205?{kind:0,paths:BSt(t,n,u,m,g)}:k(ne)}case 303:return Ld(x.parent)&&x.name===n?MSt(v,x.parent):T()||T(0);case 212:{let{expression:ne,argumentExpression:se}=x;return n===J_(se)?m9e(v.getTypeAtLocation(ne)):void 0}case 213:case 214:case 291:if(!KSt(n)&&!Kx(x)){let ne=ave.getArgumentInfoForCompletions(x.kind===291?x.parent:n,a,t,v);return ne&&Yle(ne.invocation,n,ne,v)||T(0)}case 272:case 278:case 283:case 351:return{kind:0,paths:BSt(t,n,u,m,g)};case 296:let I=dX(v,x.parent.clauses),A=T();return A?{kind:2,types:A.types.filter(ne=>!I.hasValue(ne.value)),isNewIdentifier:!1}:void 0;case 276:case 281:let R=x;if(R.propertyName&&n!==R.propertyName)return;let H=R.parent,{moduleSpecifier:U}=H.kind===275?H.parent.parent:H.parent;if(!U)return;let $=v.getSymbolAtLocation(U);if(!$)return;let K=v.getExportsAndPropertiesOfModule($),re=new Set(H.elements.map(ne=>x8(ne.propertyName||ne.name)));return{kind:1,symbols:K.filter(ne=>ne.escapedName!=="default"&&!re.has(ne.escapedName)),hasIndexSignature:!1};default:return T()||T(0)}function k(I){switch(I.kind){case 233:case 183:{let R=go(x,H=>H.parent===I);return R?{kind:2,types:fNe(v.getTypeArgumentConstraint(R)),isNewIdentifier:!1}:void 0}case 199:let{indexType:A,objectType:M}=I;return xx(A,a)?m9e(v.getTypeFromTypeNode(M)):void 0;case 192:{let R=k(Wnt(I.parent));if(!R)return;let H=p9e(I,x);return R.kind===1?{kind:1,symbols:R.symbols.filter(U=>!dr(H,U.name)),hasIndexSignature:R.hasIndexSignature}:{kind:2,types:R.types.filter(U=>!dr(H,U.value)),isNewIdentifier:!1}}default:return}}function T(I=4){let A=fNe(fle(n,v,I));if(A.length)return{kind:2,types:A,isNewIdentifier:!1}}}function Wnt(t){switch(t.kind){case 196:return bG(t);case 217:return uN(t);default:return t}}function p9e(t,n){return Dc(t.types,a=>a!==n&&xk(a)&&Kf(a.literal)?a.literal.text:void 0)}function Yle(t,n,a,u){let m=!1,g=new Map,v=nv(t)?Se.checkDefined(go(n.parent,_b)):n,x=u.getCandidateSignaturesForStringLiteralCompletions(t,v),k=za(x,T=>{if(!Wu(T)&&a.argumentCount>T.parameters.length)return;let I=T.getTypeParameterAtPosition(a.argumentIndex);if(nv(t)){let A=u.getTypeOfPropertyOfType(I,Yj(v.name));A&&(I=A)}return m=m||!!(I.flags&4),fNe(I,g)});return Z(k)?{kind:2,types:k,isNewIdentifier:m}:void 0}function m9e(t){return t&&{kind:1,symbols:Qn(t.getApparentProperties(),n=>!(n.valueDeclaration&&qb(n.valueDeclaration))),hasIndexSignature:yJ(t)}}function MSt(t,n){let a=t.getContextualType(n);if(!a)return;let u=t.getContextualType(n,4);return{kind:1,symbols:l9e(a,u,n,t),hasIndexSignature:yJ(a)}}function fNe(t,n=new Map){return t?(t=v9(t),t.isUnion()?za(t.types,a=>fNe(a,n)):t.isStringLiteral()&&!(t.flags&1024)&&HC(n,t.value)?[t]:F):F}function Qle(t,n,a){return{name:t,kind:n,extension:a}}function _Ne(t){return Qle(t,"directory",void 0)}function RSt(t,n,a){let u=Jnt(t,n),m=t.length===0?void 0:h1(n,t.length);return a.map(({name:g,kind:v,extension:x})=>g.includes(uh)||g.includes(dke)?{name:g,kind:v,extension:x,span:m}:{name:g,kind:v,extension:x,span:u})}function BSt(t,n,a,u,m){return RSt(n.text,n.getStart(t)+1,dHt(t,n,a,u,m))}function dHt(t,n,a,u,m){let g=Ch(n.text),v=i_(n)?a.getModeForUsageLocation(t,n):void 0,x=t.path,k=Cc(x),T=a.getCompilerOptions(),I=a.getTypeChecker(),A=znt(T,1,t,I,m,v);return hHt(g)||!T.baseUrl&&!T.paths&&(LC(g)||_ke(g))?Yye(g,k,a,u,x,A):HSt(g,k,v,a,u,A)}function znt(t,n,a,u,m,g){return{extensionsToSearch:cr(jSt(t,u)),referenceKind:n,importingSourceFile:a,endingPreference:m?.importModuleSpecifierEnding,resolutionMode:g}}function Yye(t,n,a,u,m,g){let v=a.getCompilerOptions();return v.rootDirs?zSt(v.rootDirs,t,n,g,a,u,m):tc(Qye(t,n,g,a,u,!0,m).values())}function jSt(t,n){let a=n?Dc(n.getAmbientModules(),g=>{let v=g.name.slice(1,-1);if(!(!v.startsWith("*.")||v.includes("/")))return v.slice(1)}):[],u=[...qj(t),a],m=S1(t);return OM(m)?L5(t,u):u}function WSt(t,n,a,u){t=t.map(g=>Fs(Kd(LC(g)?g:Ps(n,g))));let m=Je(t,g=>Gp(g,a,n,u)?a.substr(g.length):void 0);return la([...t.map(g=>Ps(g,m)),a].map(g=>OE(g)),ud,Jg)}function zSt(t,n,a,u,m,g,v){let k=m.getCompilerOptions().project||g.getCurrentDirectory(),T=!(g.useCaseSensitiveFileNames&&g.useCaseSensitiveFileNames()),I=WSt(t,k,a,T);return la(za(I,A=>tc(Qye(n,A,u,m,g,!0,v).values())),(A,M)=>A.name===M.name&&A.kind===M.kind&&A.extension===M.extension)}function Qye(t,n,a,u,m,g,v,x=Rnt()){var k;t===void 0&&(t=""),t=Ch(t),h3(t)||(t=Cc(t)),t===""&&(t="."+uh),t=Fs(t);let T=w7(n,t),I=h3(T)?T:Cc(T);if(!g){let H=mle(I,m);if(H){let $=IG(H,m).typesVersions;if(typeof $=="object"){let K=(k=Lhe($))==null?void 0:k.paths;if(K){let re=Cc(H),X=T.slice(Fs(re).length);if(Hnt(x,X,re,a,u,m,K))return x}}}}let A=!(m.useCaseSensitiveFileNames&&m.useCaseSensitiveFileNames());if(!aX(m,I))return x;let M=Gte(m,I,a.extensionsToSearch,void 0,["./*"]);if(M)for(let H of M){if(H=Kd(H),v&&fk(H,v,n,A)===0)continue;let{name:U,extension:$}=Vnt(sg(H),u,a,!1);x.add(Qle(U,"script",$))}let R=XEe(m,I);if(R)for(let H of R){let U=sg(Kd(H));U!=="@types"&&x.add(_Ne(U))}return x}function Vnt(t,n,a,u){let m=cF.tryGetRealFileNameForNonJsDeclarationFileName(t);if(m)return{name:m,extension:Pg(m)};if(a.referenceKind===0)return{name:t,extension:Pg(t)};let g=cF.getModuleSpecifierPreferences({importModuleSpecifierEnding:a.endingPreference},n,n.getCompilerOptions(),a.importingSourceFile).getAllowedEndingsInPreferredOrder(a.resolutionMode);if(u&&(g=g.filter(x=>x!==0&&x!==1)),g[0]===3){if(gg(t,Pme))return{name:t,extension:Pg(t)};let x=cF.tryGetJSExtensionForFile(t,n.getCompilerOptions());return x?{name:J3(t,x),extension:x}:{name:t,extension:Pg(t)}}if(!u&&(g[0]===0||g[0]===1)&&gg(t,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:Qx(t),extension:Pg(t)};let v=cF.tryGetJSExtensionForFile(t,n.getCompilerOptions());return v?{name:J3(t,v),extension:v}:{name:t,extension:Pg(t)}}function Hnt(t,n,a,u,m,g,v){let x=T=>v[T],k=(T,I)=>{let A=dU(T),M=dU(I),R=typeof A=="object"?A.prefix.length:T.length,H=typeof M=="object"?M.prefix.length:I.length;return m_(H,R)};return VSt(t,!1,n,a,u,m,g,Zy(v),x,k)}function VSt(t,n,a,u,m,g,v,x,k,T){let I=[],A;for(let M of x){if(M===".")continue;let R=M.replace(/^\.\//,""),H=k(M);if(H){let U=dU(R);if(!U)continue;let $=typeof U=="object"&&pCe(U,a);$&&(A===void 0||T(M,A)===-1)&&(A=M,I=I.filter(re=>!re.matchedPattern)),(typeof U=="string"||A===void 0||T(M,A)!==1)&&I.push({matchedPattern:$,results:fHt(R,H,a,u,m,n&&$,g,v).map(({name:re,kind:X,extension:ne})=>Qle(re,X,ne))})}}return I.forEach(M=>M.results.forEach(R=>t.add(R))),A!==void 0}function HSt(t,n,a,u,m,g){let v=u.getTypeChecker(),x=u.getCompilerOptions(),{baseUrl:k,paths:T}=x,I=Rnt(),A=S1(x);if(k){let R=Kd(Ps(m.getCurrentDirectory(),k));Qye(t,R,g,u,m,!1,void 0,I)}if(T){let R=UA(x,m);Hnt(I,t,R,g,u,m,T)}let M=Unt(t);for(let R of _Ht(t,M,v))I.add(Qle(R,"external module name",void 0));if(GSt(m,u,n,M,g,I),OM(A)){let R=!1;if(M===void 0)for(let H of mHt(m,n)){let U=Qle(H,"external module name",void 0);I.has(U.name)||(R=!0,I.add(U))}if(!R){let H=U=>{let $=Ps(U,"node_modules");aX(m,$)&&Qye(t,$,g,u,m,!1,void 0,I)};if(M&&Tme(x)){let U=H;H=$=>{let K=Uv(t);K.shift();let re=K.shift();if(!re)return U($);if(xl(re,"@")){let se=K.shift();if(!se)return U($);re=Ps(re,se)}let X=Ps($,"node_modules",re),ne=Ps(X,"package.json");if(nz(m,ne)){let _e=IG(ne,m).exports;if(_e){if(typeof _e!="object"||_e===null)return;let ae=Zy(_e),le=K.join("/")+(K.length&&h3(t)?"/":""),Ee=yM(x,a);VSt(I,!0,le,X,g,u,m,ae,xe=>Rl(USt(_e[xe],Ee)),Uee);return}}return U($)}}T2(n,H)}}return tc(I.values())}function USt(t,n){if(typeof t=="string")return t;if(t&&typeof t=="object"&&!ua(t)){for(let a in t)if(a==="default"||n.includes(a)||EK(n,a)){let u=t[a];return USt(u,n)}}}function Unt(t){return h9e(t)?h3(t)?t:Cc(t):void 0}function fHt(t,n,a,u,m,g,v,x){if(!xh(t,"*"))return t.includes("*")?F:I(t,"script");let k=t.slice(0,t.length-1),T=ZR(a,k);if(T===void 0)return t[t.length-2]==="/"?I(k,"directory"):za(n,M=>{var R;return(R=JSt("",u,M,m,g,v,x))==null?void 0:R.map(({name:H,...U})=>({name:k+H,...U}))});return za(n,A=>JSt(T,u,A,m,g,v,x));function I(A,M){return xl(A,a)?[{name:OE(A),kind:M,extension:void 0}]:F}}function JSt(t,n,a,u,m,g,v){if(!v.readDirectory)return;let x=dU(a);if(x===void 0||Yu(x))return;let k=w7(x.prefix),T=h3(x.prefix)?k:Cc(k),I=h3(x.prefix)?"":sg(k),A=h9e(t),M=A?h3(t)?t:Cc(t):void 0,R=A?Ps(T,I+M):T,H=Kd(x.suffix),U=H&&jZ("_"+H),$=U?[J3(H,U),H]:[H],K=Kd(Ps(n,R)),re=A?K:Fs(K)+I,X=H?$.map(ae=>"**/*"+ae):["./*"],ne=Dc(Gte(v,K,u.extensionsToSearch,void 0,X),ae=>{let le=_e(ae);if(le){if(h9e(le))return _Ne(Uv($St(le))[1]);let{name:Ee,extension:xe}=Vnt(le,g,u,m);return Qle(Ee,"script",xe)}}),se=H?F:Dc(XEe(v,K),ae=>ae==="node_modules"?void 0:_Ne(ae));return[...ne,...se];function _e(ae){return Je($,le=>{let Ee=qSt(Kd(ae),re,le);return Ee===void 0?void 0:$St(Ee)})}}function qSt(t,n,a){return xl(t,n)&&xh(t,a)?t.slice(n.length,t.length-a.length):void 0}function $St(t){return t[0]===uh?t.slice(1):t}function _Ht(t,n,a){let m=a.getAmbientModules().map(g=>B2(g.name)).filter(g=>xl(g,t)&&!g.includes("*"));if(n!==void 0){let g=Fs(n);return m.map(v=>iH(v,g))}return m}function pHt(t,n,a,u){let m=a.getCompilerOptions(),g=wc(t,n),v=PA(t.text,g.pos),x=v&&jt(v,U=>n>=U.pos&&n<=U.end);if(!x)return;let k=t.text.slice(x.pos,n),T=jm.exec(k);if(!T)return;let[,I,A,M]=T,R=Cc(t.path),H=A==="path"?Qye(M,R,znt(m,0,t),a,u,!0,t.path):A==="types"?GSt(u,a,R,Unt(M),znt(m,1,t)):Se.fail();return RSt(M,x.pos+I.length,tc(H.values()))}function GSt(t,n,a,u,m,g=Rnt()){let v=n.getCompilerOptions(),x=new Map,k=Kte(()=>gM(v,t))||F;for(let I of k)T(I);for(let I of Yte(a,t)){let A=Ps(Cc(I),"node_modules/@types");T(A)}return g;function T(I){if(aX(t,I))for(let A of XEe(t,I)){let M=xW(A);if(!(v.types&&!dr(v.types,M)))if(u===void 0)x.has(M)||(g.add(Qle(M,"external module name",void 0)),x.set(M,!0));else{let R=Ps(I,A),H=Nme(u,M,E4(t));H!==void 0&&Qye(H,R,m,n,t,!1,void 0,g)}}}}function mHt(t,n){if(!t.readFile||!t.fileExists)return F;let a=[];for(let u of Yte(n,t)){let m=IG(u,t);for(let g of qnt){let v=m[g];if(v)for(let x in v)bf(v,x)&&!xl(x,"@types/")&&a.push(x)}}return a}function Jnt(t,n){let a=Math.max(t.lastIndexOf(uh),t.lastIndexOf(dke)),u=a!==-1?a+1:0,m=t.length-u;return m===0||Jb(t.substr(u,m),99)?void 0:h1(n+u,m)}function hHt(t){if(t&&t.length>=2&&t.charCodeAt(0)===46){let n=t.length>=3&&t.charCodeAt(1)===46?2:1,a=t.charCodeAt(n);return a===47||a===92}return!1}var jm=/^(\/\/\/\s*LJ,DefinitionKind:()=>ixt,EntryKind:()=>gz,ExportKind:()=>XSt,FindReferencesUse:()=>Qnt,ImportExport:()=>Gnt,createImportTracker:()=>$nt,findModuleReferences:()=>Knt,findReferenceOrRenameEntries:()=>hNe,findReferencedSymbols:()=>xHt,getContextNode:()=>NJ,getExportInfo:()=>Zye,getImplementationsAtPosition:()=>rxt,getImportOrExportSymbol:()=>g9e,getReferenceEntriesForNode:()=>Znt,isContextWithStartAndEndNode:()=>y9e,isDeclarationOfSymbol:()=>irt,isWriteAccessForReference:()=>PJ,toContextSpan:()=>Ynt,toHighlightSpan:()=>cxt,toReferenceEntry:()=>axt,toRenameLocation:()=>kHt});function $nt(t,n,a,u){let m=yHt(t,a,u);return(g,v,x)=>{let{directImports:k,indirectUsers:T}=gHt(t,n,m,v,a,u);return{indirectUsers:T,...YSt(k,g,v.exportKind,a,x)}}}var XSt=(t=>(t[t.Named=0]="Named",t[t.Default=1]="Default",t[t.ExportEquals=2]="ExportEquals",t))(XSt||{}),Gnt=(t=>(t[t.Import=0]="Import",t[t.Export=1]="Export",t))(Gnt||{});function gHt(t,n,a,{exportingModuleSymbol:u,exportKind:m},g,v){let x=GW(),k=GW(),T=[],I=!!u.globalExports,A=I?void 0:[];return R(u),{directImports:T,indirectUsers:M()};function M(){if(I)return t;if(u.declarations)for(let X of u.declarations)j7(X)&&n.has(X.getSourceFile().fileName)&&K(X);return A.map(Vo)}function R(X){let ne=re(X);if(ne){for(let se of ne)if(x(se))switch(v&&v.throwIfCancellationRequested(),se.kind){case 213:if(Kx(se)){H(se);break}if(!I){let ae=se.parent;if(m===2&&ae.kind===260){let{name:le}=ae;if(le.kind===80){T.push(le);break}}}break;case 80:break;case 271:$(se,se.name,kc(se,32),!1);break;case 272:case 351:T.push(se);let _e=se.importClause&&se.importClause.namedBindings;_e&&_e.kind===274?$(se,_e.name,!1,!0):!I&&N3(se)&&K(eve(se));break;case 278:se.exportClause?se.exportClause.kind===280?K(eve(se),!0):T.push(se):R(txt(se,g));break;case 205:!I&&se.isTypeOf&&!se.qualifier&&U(se)&&K(se.getSourceFile(),!0),T.push(se);break;default:Se.failBadSyntaxKind(se,"Unexpected import kind.")}}}function H(X){let ne=go(X,IN)||X.getSourceFile();K(ne,!!U(X,!0))}function U(X,ne=!1){return go(X,se=>ne&&IN(se)?"quit":tD(se)&&En(se.modifiers,H5))}function $(X,ne,se,_e){if(m===2)_e||T.push(X);else if(!I){let ae=eve(X);Se.assert(ae.kind===307||ae.kind===267),se||QSt(ae,ne,g)?K(ae,!0):K(ae)}}function K(X,ne=!1){if(Se.assert(!I),!k(X)||(A.push(X),!ne))return;let _e=g.getMergedSymbol(X.symbol);if(!_e)return;Se.assert(!!(_e.flags&1536));let ae=re(_e);if(ae)for(let le of ae)Ck(le)||K(eve(le),!0)}function re(X){return a.get(Nf(X).toString())}}function YSt(t,n,a,u,m){let g=[],v=[];function x(M,R){g.push([M,R])}if(t)for(let M of t)k(M);return{importSearches:g,singleReferences:v};function k(M){if(M.kind===271){mNe(M)&&T(M.name);return}if(M.kind===80){T(M);return}if(M.kind===205){if(M.qualifier){let U=fx(M.qualifier);U.escapedText===Bc(n)&&v.push(U)}else a===2&&v.push(M.argument.literal);return}if(M.moduleSpecifier.kind!==11)return;if(M.kind===278){M.exportClause&&QT(M.exportClause)&&I(M.exportClause);return}let{name:R,namedBindings:H}=M.importClause||{name:void 0,namedBindings:void 0};if(H)switch(H.kind){case 274:T(H.name);break;case 275:(a===0||a===1)&&I(H);break;default:Se.assertNever(H)}if(R&&(a===1||a===2)&&(!m||R.escapedText===Bte(n))){let U=u.getSymbolAtLocation(R);x(R,U)}}function T(M){a===2&&(!m||A(M.escapedText))&&x(M,u.getSymbolAtLocation(M))}function I(M){if(M)for(let R of M.elements){let{name:H,propertyName:U}=R;if(A(x8(U||H)))if(U)v.push(U),(!m||x8(H)===n.escapedName)&&x(H,u.getSymbolAtLocation(H));else{let $=R.kind===281&&R.propertyName?u.getExportSpecifierLocalTargetSymbol(R):u.getSymbolAtLocation(H);x(H,$)}}}function A(M){return M===n.escapedName||a!==0&&M==="default"}}function QSt(t,n,a){let u=a.getSymbolAtLocation(n);return!!ZSt(t,m=>{if(!Qg(m))return;let{exportClause:g,moduleSpecifier:v}=m;return!v&&g&&QT(g)&&g.elements.some(x=>a.getExportSpecifierLocalTargetSymbol(x)===u)})}function Knt(t,n,a){var u;let m=[],g=t.getTypeChecker();for(let v of n){let x=a.valueDeclaration;if(x?.kind===307){for(let k of v.referencedFiles)t.getSourceFileFromReference(v,k)===x&&m.push({kind:"reference",referencingFile:v,ref:k});for(let k of v.typeReferenceDirectives){let T=(u=t.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(k,v))==null?void 0:u.resolvedTypeReferenceDirective;T!==void 0&&T.resolvedFileName===x.fileName&&m.push({kind:"reference",referencingFile:v,ref:k})}}ext(v,(k,T)=>{g.getSymbolAtLocation(T)===a&&m.push(um(k)?{kind:"implicit",literal:T,referencingFile:v}:{kind:"import",literal:T})})}return m}function yHt(t,n,a){let u=new Map;for(let m of t)a&&a.throwIfCancellationRequested(),ext(m,(g,v)=>{let x=n.getSymbolAtLocation(v);if(x){let k=Nf(x).toString(),T=u.get(k);T||u.set(k,T=[]),T.push(g)}});return u}function ZSt(t,n){return ee(t.kind===307?t.statements:t.body.statements,a=>n(a)||IN(a)&&ee(a.body&&a.body.statements,n))}function ext(t,n){if(t.externalModuleIndicator||t.imports!==void 0)for(let a of t.imports)n(pG(a),a);else ZSt(t,a=>{switch(a.kind){case 278:case 272:{let u=a;u.moduleSpecifier&&Kf(u.moduleSpecifier)&&n(u,u.moduleSpecifier);break}case 271:{let u=a;mNe(u)&&n(u,u.moduleReference.expression);break}}})}function g9e(t,n,a,u){return u?m():m()||g();function m(){var k;let{parent:T}=t,I=T.parent;if(n.exportSymbol)return T.kind===211?(k=n.declarations)!=null&&k.some(R=>R===T)&&ms(I)?M(I,!1):void 0:v(n.exportSymbol,x(T));{let R=bHt(T,t);if(R&&kc(R,32))return pf(R)&&R.moduleReference===t?u?void 0:{kind:0,symbol:a.getSymbolAtLocation(R.name)}:v(n,x(R));if(vm(T))return v(n,0);if(Bm(T))return A(T);if(Bm(I))return A(I);if(ms(T))return M(T,!0);if(ms(I))return M(I,!0);if(fM(T)||gee(T))return v(n,0)}function A(R){if(!R.symbol.parent)return;let H=R.isExportEquals?2:1;return{kind:1,symbol:n,exportInfo:{exportingModuleSymbol:R.symbol.parent,exportKind:H}}}function M(R,H){let U;switch(wh(R)){case 1:U=0;break;case 2:U=2;break;default:return}let $=H?a.getSymbolAtLocation(mN($d(R.left,cf))):n;return $&&v($,U)}}function g(){if(!pNe(t))return;let T=a.getImmediateAliasedSymbol(n);if(!T||(T=Xnt(T,a),T.escapedName==="export="&&(T=vHt(T,a),T===void 0)))return;let I=Bte(T);if(I===void 0||I==="default"||I===n.escapedName)return{kind:0,symbol:T}}function v(k,T){let I=Zye(k,T,a);return I&&{kind:1,symbol:k,exportInfo:I}}function x(k){return kc(k,2048)?1:0}}function vHt(t,n){var a,u;if(t.flags&2097152)return n.getImmediateAliasedSymbol(t);let m=Se.checkDefined(t.valueDeclaration);if(Bm(m))return(a=ac(m.expression,$x))==null?void 0:a.symbol;if(ms(m))return(u=ac(m.right,$x))==null?void 0:u.symbol;if(ul(m))return m.symbol}function bHt(t,n){let a=$c(t)?t:Zd(t)?tj(t):void 0;return a?t.name!==n||eC(a.parent)?void 0:Zh(a.parent.parent)?a.parent.parent:void 0:t}function pNe(t){let{parent:n}=t;switch(n.kind){case 271:return n.name===t&&mNe(n);case 276:return!n.propertyName;case 273:case 274:return Se.assert(n.name===t),!0;case 208:return Ys(t)&&E3(n.parent.parent);default:return!1}}function Zye(t,n,a){let u=t.parent;if(!u)return;let m=a.getMergedSymbol(u);return xH(m)?{exportingModuleSymbol:m,exportKind:n}:void 0}function Xnt(t,n){if(t.declarations)for(let a of t.declarations){if(X0(a)&&!a.propertyName&&!a.parent.parent.moduleSpecifier)return n.getExportSpecifierLocalTargetSymbol(a)||t;if(ba(a)&&cN(a.expression)&&!wl(a.name))return n.getSymbolAtLocation(a);if(Q0(a)&&ms(a.parent.parent)&&wh(a.parent.parent)===2)return n.getExportSpecifierLocalTargetSymbol(a.name)}return t}function txt(t,n){return n.getMergedSymbol(eve(t).symbol)}function eve(t){if(t.kind===213||t.kind===351)return t.getSourceFile();let{parent:n}=t;return n.kind===307?n:(Se.assert(n.kind===268),$d(n.parent,IN))}function IN(t){return t.kind===267&&t.name.kind===11}function mNe(t){return t.moduleReference.kind===283&&t.moduleReference.expression.kind===11}var ixt=(t=>(t[t.Symbol=0]="Symbol",t[t.Label=1]="Label",t[t.Keyword=2]="Keyword",t[t.This=3]="This",t[t.String=4]="String",t[t.TripleSlashReference=5]="TripleSlashReference",t))(ixt||{}),gz=(t=>(t[t.Span=0]="Span",t[t.Node=1]="Node",t[t.StringLiteral=2]="StringLiteral",t[t.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",t[t.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal",t))(gz||{});function X4(t,n=1){return{kind:n,node:t.name||t,context:SHt(t)}}function y9e(t){return t&&t.kind===void 0}function SHt(t){if(y1(t))return NJ(t);if(t.parent){if(!y1(t.parent)&&!Bm(t.parent)){if(Ys(t)){let a=ms(t.parent)?t.parent:cf(t.parent)&&ms(t.parent.parent)&&t.parent.parent.left===t.parent?t.parent.parent:void 0;if(a&&wh(a)!==0)return NJ(a)}if(Y0(t.parent)||I0(t.parent))return t.parent.parent;if(mh(t.parent)||dL(t.parent)||oj(t.parent))return t.parent;if(i_(t)){let a=wj(t);if(a){let u=go(a,m=>y1(m)||ll(m)||SH(m));return y1(u)?NJ(u):u}}let n=go(t,f_);return n?NJ(n.parent):void 0}if(t.parent.name===t||yl(t.parent)||Bm(t.parent)||(I2(t.parent)||Zd(t.parent))&&t.parent.propertyName===t||t.kind===90&&kc(t.parent,2080))return NJ(t.parent)}}function NJ(t){if(t)switch(t.kind){case 260:return!Xv(t.parent)||t.parent.declarations.length!==1?t:Zh(t.parent.parent)?t.parent.parent:Rn(t.parent.parent)?NJ(t.parent.parent):t.parent;case 208:return NJ(t.parent.parent);case 276:return t.parent.parent.parent;case 281:case 274:return t.parent.parent;case 273:case 280:return t.parent;case 226:return E0(t.parent)?t.parent:t;case 250:case 249:return{start:t.initializer,end:t.expression};case 303:case 304:return J4(t.parent)?NJ(go(t.parent,n=>ms(n)||Rn(n))):t;case 255:return{start:jt(t.getChildren(t.getSourceFile()),n=>n.kind===109),end:t.caseBlock};default:return t}}function Ynt(t,n,a){if(!a)return;let u=y9e(a)?vNe(a.start,n,a.end):vNe(a,n);return u.start!==t.start||u.length!==t.length?{contextSpan:u}:void 0}var Qnt=(t=>(t[t.Other=0]="Other",t[t.References=1]="References",t[t.Rename=2]="Rename",t))(Qnt||{});function xHt(t,n,a,u,m){let g=VS(u,m),v={use:1},x=LJ.getReferencedSymbolsForNode(m,g,t,a,n,v),k=t.getTypeChecker(),T=LJ.getAdjustedNode(g,v),I=nxt(T)?k.getSymbolAtLocation(T):void 0;return!x||!x.length?void 0:Dc(x,({definition:A,references:M})=>A&&{definition:k.runWithCancellationToken(n,R=>CHt(A,R,g)),references:M.map(R=>wHt(R,I))})}function nxt(t){return t.kind===90||!!F_(t)||SG(t)||t.kind===137&&yl(t.parent)}function rxt(t,n,a,u,m){let g=VS(u,m),v,x=oxt(t,n,a,g,m);if(g.parent.kind===211||g.parent.kind===208||g.parent.kind===212||g.kind===108)v=x&&[...x];else if(x){let T=ZV(x),I=new Map;for(;!T.isEmpty();){let A=T.dequeue();if(!HC(I,pp(A.node)))continue;v=ar(v,A);let M=oxt(t,n,a,A.node,A.node.pos);M&&T.enqueue(...M)}}let k=t.getTypeChecker();return $i(v,T=>ert(T,k))}function oxt(t,n,a,u,m){if(u.kind===307)return;let g=t.getTypeChecker();if(u.parent.kind===304){let v=[];return LJ.getReferenceEntriesForShorthandPropertyAssignment(u,g,x=>v.push(X4(x))),v}else if(u.kind===108||Xx(u.parent)){let v=g.getSymbolAtLocation(u);return v.valueDeclaration&&[X4(v.valueDeclaration)]}else return Znt(m,u,t,a,n,{implementations:!0,use:1})}function hNe(t,n,a,u,m,g,v){return $i(sxt(LJ.getReferencedSymbolsForNode(m,u,t,a,n,g)),x=>v(x,u,t.getTypeChecker()))}function Znt(t,n,a,u,m,g={},v=new Set(u.map(x=>x.fileName))){return sxt(LJ.getReferencedSymbolsForNode(t,n,a,u,m,g,v))}function sxt(t){return t&&za(t,n=>n.references)}function CHt(t,n,a){let u=(()=>{switch(t.type){case 0:{let{symbol:I}=t,{displayParts:A,kind:M}=gNe(I,n,a),R=A.map($=>$.text).join(""),H=I.declarations&&Ed(I.declarations),U=H?Nu(H)||H:a;return{...tve(U),name:R,kind:M,displayParts:A,context:NJ(H)}}case 1:{let{node:I}=t;return{...tve(I),name:I.text,kind:"label",displayParts:[Pk(I.text,17)]}}case 2:{let{node:I}=t,A=Ef(I.kind);return{...tve(I),name:A,kind:"keyword",displayParts:[{text:A,kind:"keyword"}]}}case 3:{let{node:I}=t,A=n.getSymbolAtLocation(I),M=A&&mO.getSymbolDisplayPartsDocumentationAndSymbolKind(n,A,I.getSourceFile(),hF(I),I).displayParts||[Sw("this")];return{...tve(I),name:"this",kind:"var",displayParts:M}}case 4:{let{node:I}=t;return{...tve(I),name:I.text,kind:"var",displayParts:[Pk(_h(I),8)]}}case 5:return{textSpan:q4(t.reference),sourceFile:t.file,name:t.reference.fileName,kind:"string",displayParts:[Pk(`"${t.reference.fileName}"`,8)]};default:return Se.assertNever(t)}})(),{sourceFile:m,textSpan:g,name:v,kind:x,displayParts:k,context:T}=u;return{containerKind:"",containerName:"",fileName:m.fileName,kind:x,name:v,textSpan:g,displayParts:k,...Ynt(g,m,T)}}function tve(t){let n=t.getSourceFile();return{sourceFile:n,textSpan:vNe(f_(t)?t.expression:t,n)}}function gNe(t,n,a){let u=LJ.getIntersectingMeaningFromDeclarations(a,t),m=t.declarations&&Ed(t.declarations)||a,{displayParts:g,symbolKind:v}=mO.getSymbolDisplayPartsDocumentationAndSymbolKind(n,t,m.getSourceFile(),m,m,u);return{displayParts:g,kind:v}}function kHt(t,n,a,u,m){return{...v9e(t),...u&&yNe(t,n,a,m)}}function wHt(t,n){let a=axt(t);return n?{...a,isDefinition:t.kind!==0&&irt(t.node,n)}:a}function axt(t){let n=v9e(t);if(t.kind===0)return{...n,isWriteAccess:!1};let{kind:a,node:u}=t;return{...n,isWriteAccess:PJ(u),isInString:a===2?!0:void 0}}function v9e(t){if(t.kind===0)return{textSpan:t.textSpan,fileName:t.fileName};{let n=t.node.getSourceFile(),a=vNe(t.node,n);return{textSpan:a,fileName:n.fileName,...Ynt(a,n,t.context)}}}function yNe(t,n,a,u){if(t.kind!==0&&(Ai(n)||i_(n))){let{node:m,kind:g}=t,v=m.parent,x=n.text,k=Q0(v);if(k||dJ(v)&&v.name===m&&v.dotDotDotToken===void 0){let T={prefixText:x+": "},I={suffixText:": "+x};if(g===3)return T;if(g===4)return I;if(k){let A=v.parent;return Ld(A)&&ms(A.parent)&&cN(A.parent.left)?T:I}else return T}else if(eg(v)&&!v.propertyName){let T=X0(n.parent)?a.getExportSpecifierLocalTargetSymbol(n.parent):a.getSymbolAtLocation(n);return dr(T.declarations,v)?{prefixText:x+" as "}:t2}else if(X0(v)&&!v.propertyName)return n===t.node||a.getSymbolAtLocation(n)===a.getSymbolAtLocation(t.node)?{prefixText:x+" as "}:{suffixText:" as "+x}}if(t.kind!==0&&mx(t.node)&&cf(t.node.parent)){let m=sle(u);return{prefixText:m,suffixText:m}}return t2}function ert(t,n){let a=v9e(t);if(t.kind!==0){let{node:u}=t;return{...a,...trt(u,n)}}else return{...a,kind:"",displayParts:[]}}function trt(t,n){let a=n.getSymbolAtLocation(y1(t)&&t.name?t.name:t);return a?gNe(a,n,t):t.kind===210?{kind:"interface",displayParts:[Bf(21),Sw("object literal"),Bf(22)]}:t.kind===231?{kind:"local class",displayParts:[Bf(21),Sw("anonymous local class"),Bf(22)]}:{kind:IM(t),displayParts:[]}}function cxt(t){let n=v9e(t);if(t.kind===0)return{fileName:n.fileName,span:{textSpan:n.textSpan,kind:"reference"}};let a=PJ(t.node),u={textSpan:n.textSpan,kind:a?"writtenReference":"reference",isInString:t.kind===2?!0:void 0,...n.contextSpan&&{contextSpan:n.contextSpan}};return{fileName:n.fileName,span:u}}function vNe(t,n,a){let u=t.getStart(n),m=(a||t).getEnd();return i_(t)&&m-u>2&&(Se.assert(a===void 0),u+=1,m-=1),a?.kind===269&&(m=a.getFullStart()),cg(u,m)}function AJ(t){return t.kind===0?t.textSpan:vNe(t.node,t.node.getSourceFile())}function PJ(t){let n=F_(t);return!!n&&THt(n)||t.kind===90||Wj(t)}function irt(t,n){var a;if(!n)return!1;let u=F_(t)||(t.kind===90?t.parent:SG(t)||t.kind===137&&yl(t.parent)?t.parent.parent:void 0),m=u&&ms(u)?u.left:void 0;return!!(u&&((a=n.declarations)!=null&&a.some(g=>g===u||g===m)))}function THt(t){if(t.flags&33554432)return!0;switch(t.kind){case 226:case 208:case 263:case 231:case 90:case 266:case 306:case 281:case 273:case 271:case 276:case 264:case 338:case 346:case 291:case 267:case 270:case 274:case 280:case 169:case 304:case 265:case 168:return!0;case 303:return!J4(t.parent);case 262:case 218:case 176:case 174:case 177:case 178:return!!t.body;case 260:case 172:return!!t.initializer||eC(t.parent);case 173:case 171:case 348:case 341:return!1;default:return Se.failBadSyntaxKind(t)}}var LJ;(t=>{function n(nt,Lt,Pe,St,Ve,Tt={},dt=new Set(St.map(Wt=>Wt.fileName))){var Wt,pt;if(Lt=a(Lt,Tt),ul(Lt)){let Ue=Cie.getReferenceAtPosition(Lt,nt,Pe);if(!Ue?.file)return;let Ce=Pe.getTypeChecker().getMergedSymbol(Ue.file.symbol);if(Ce)return T(Pe,Ce,!1,St,dt);let ye=Pe.getFileIncludeReasons();return ye?[{definition:{type:5,reference:Ue.reference,file:Lt},references:m(Ue.file,ye,Pe)||F}]:void 0}if(!Tt.implementations){let Ue=A(Lt,St,Ve);if(Ue)return Ue}let Gt=Pe.getTypeChecker(),Mt=Gt.getSymbolAtLocation(yl(Lt)&&Lt.parent.name||Lt);if(!Mt){if(!Tt.implementations&&i_(Lt)){if(jte(Lt)){let Ue=Pe.getFileIncludeReasons(),Ce=(pt=(Wt=Pe.getResolvedModuleFromModuleSpecifier(Lt))==null?void 0:Wt.resolvedModule)==null?void 0:pt.resolvedFileName,ye=Ce?Pe.getSourceFile(Ce):void 0;if(ye)return[{definition:{type:4,node:Lt},references:m(ye,Ue,Pe)||F}]}return mn(Lt,St,Gt,Ve)}return}if(Mt.escapedName==="export=")return T(Pe,Mt.parent,!1,St,dt);let hi=v(Mt,Pe,St,Ve,Tt,dt);if(hi&&!(Mt.flags&33554432))return hi;let Ie=g(Lt,Mt,Gt),Bt=Ie&&v(Ie,Pe,St,Ve,Tt,dt),ui=M(Mt,Lt,St,dt,Gt,Ve,Tt);return x(Pe,hi,ui,Bt)}t.getReferencedSymbolsForNode=n;function a(nt,Lt){return Lt.use===1?nt=F7e(nt):Lt.use===2&&(nt=w0e(nt)),nt}t.getAdjustedNode=a;function u(nt,Lt,Pe,St=new Set(Pe.map(Ve=>Ve.fileName))){var Ve,Tt;let dt=(Ve=Lt.getSourceFile(nt))==null?void 0:Ve.symbol;if(dt)return((Tt=T(Lt,dt,!1,Pe,St)[0])==null?void 0:Tt.references)||F;let Wt=Lt.getFileIncludeReasons(),pt=Lt.getSourceFile(nt);return pt&&Wt&&m(pt,Wt,Lt)||F}t.getReferencesForFileName=u;function m(nt,Lt,Pe){let St,Ve=Lt.get(nt.path)||F;for(let Tt of Ve)if(z4(Tt)){let dt=Pe.getSourceFileByPath(Tt.file),Wt=FW(Pe,Tt);OW(Wt)&&(St=ar(St,{kind:0,fileName:dt.fileName,textSpan:q4(Wt)}))}return St}function g(nt,Lt,Pe){if(nt.parent&&wy(nt.parent)){let St=Pe.getAliasedSymbol(Lt),Ve=Pe.getMergedSymbol(St);if(St!==Ve)return Ve}}function v(nt,Lt,Pe,St,Ve,Tt){let dt=nt.flags&1536&&nt.declarations&&jt(nt.declarations,ul);if(!dt)return;let Wt=nt.exports.get("export="),pt=T(Lt,nt,!!Wt,Pe,Tt);if(!Wt||!Tt.has(dt.fileName))return pt;let Gt=Lt.getTypeChecker();return nt=ym(Wt,Gt),x(Lt,pt,M(nt,void 0,Pe,Tt,Gt,St,Ve))}function x(nt,...Lt){let Pe;for(let St of Lt)if(!(!St||!St.length)){if(!Pe){Pe=St;continue}for(let Ve of St){if(!Ve.definition||Ve.definition.type!==0){Pe.push(Ve);continue}let Tt=Ve.definition.symbol,dt=_n(Pe,pt=>!!pt.definition&&pt.definition.type===0&&pt.definition.symbol===Tt);if(dt===-1){Pe.push(Ve);continue}let Wt=Pe[dt];Pe[dt]={definition:Wt.definition,references:Wt.references.concat(Ve.references).sort((pt,Gt)=>{let Mt=k(nt,pt),hi=k(nt,Gt);if(Mt!==hi)return m_(Mt,hi);let Ie=AJ(pt),Bt=AJ(Gt);return Ie.start!==Bt.start?m_(Ie.start,Bt.start):m_(Ie.length,Bt.length)})}}}return Pe}function k(nt,Lt){let Pe=Lt.kind===0?nt.getSourceFile(Lt.fileName):Lt.node.getSourceFile();return nt.getSourceFiles().indexOf(Pe)}function T(nt,Lt,Pe,St,Ve){Se.assert(!!Lt.valueDeclaration);let Tt=Dc(Knt(nt,St,Lt),Wt=>{if(Wt.kind==="import"){let pt=Wt.literal.parent;if(xk(pt)){let Gt=$d(pt.parent,Ck);if(Pe&&!Gt.qualifier)return}return X4(Wt.literal)}else if(Wt.kind==="implicit"){let pt=Wt.literal.text!==R7&&NU(Wt.referencingFile,Gt=>Gt.transformFlags&2?R_(Gt)||mh(Gt)||$5(Gt)?Gt:void 0:"skip")||Wt.referencingFile.statements[0]||Wt.referencingFile;return X4(pt)}else return{kind:0,fileName:Wt.referencingFile.fileName,textSpan:q4(Wt.ref)}});if(Lt.declarations)for(let Wt of Lt.declarations)switch(Wt.kind){case 307:break;case 267:Ve.has(Wt.getSourceFile().fileName)&&Tt.push(X4(Wt.name));break;default:Se.assert(!!(Lt.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}let dt=Lt.exports.get("export=");if(dt?.declarations)for(let Wt of dt.declarations){let pt=Wt.getSourceFile();if(Ve.has(pt.fileName)){let Gt=ms(Wt)&&ba(Wt.left)?Wt.left.expression:Bm(Wt)?Se.checkDefined(Np(Wt,95,pt)):Nu(Wt)||Wt;Tt.push(X4(Gt))}}return Tt.length?[{definition:{type:0,symbol:Lt},references:Tt}]:F}function I(nt){return nt.kind===148&&yN(nt.parent)&&nt.parent.operator===148}function A(nt,Lt,Pe){if(y9(nt.kind))return nt.kind===116&&rd(nt.parent)||nt.kind===148&&!I(nt)?void 0:Re(Lt,nt.kind,Pe,nt.kind===148?I:void 0);if(b4(nt.parent)&&nt.parent.name===nt)return Oe(Lt,Pe);if(oW(nt)&&Yf(nt.parent))return[{definition:{type:2,node:nt},references:[X4(nt)]}];if(rJ(nt)){let St=qK(nt.parent,nt.text);return St&&Ge(St.parent,St)}else if($K(nt))return Ge(nt.parent,nt);if(H4(nt))return ai(nt,Lt,Pe);if(nt.kind===108)return _r(nt)}function M(nt,Lt,Pe,St,Ve,Tt,dt){let Wt=Lt&&U(nt,Lt,Ve,!Xi(dt))||nt,pt=Lt?$o(Lt,Wt):7,Gt=[],Mt=new re(Pe,St,Lt?H(Lt):0,Ve,Tt,pt,dt,Gt),hi=!Xi(dt)||!Wt.declarations?void 0:jt(Wt.declarations,X0);if(hi)ft(hi.name,Wt,hi,Mt.createSearch(Lt,nt,void 0),Mt,!0,!0);else if(Lt&&Lt.kind===90&&Wt.escapedName==="default"&&Wt.parent)ni(Lt,Wt,Mt),X(Lt,Wt,{exportingModuleSymbol:Wt.parent,exportKind:1},Mt);else{let Ie=Mt.createSearch(Lt,Wt,void 0,{allSearchSymbols:Lt?Gr(Wt,Lt,Ve,dt.use===2,!!dt.providePrefixAndSuffixTextForRename,!!dt.implementations):[Wt]});R(Wt,Mt,Ie)}return Gt}function R(nt,Lt,Pe){let St=Ee(nt);if(St)Ke(St,St.getSourceFile(),Pe,Lt,!(ul(St)&&!dr(Lt.sourceFiles,St)));else for(let Ve of Lt.sourceFiles)Lt.cancellationToken.throwIfCancellationRequested(),ae(Ve,Pe,Lt)}function H(nt){switch(nt.kind){case 176:case 137:return 1;case 80:if(bc(nt.parent))return Se.assert(nt.parent.name===nt),2;default:return 0}}function U(nt,Lt,Pe,St){let{parent:Ve}=Lt;return X0(Ve)&&St?mt(Lt,nt,Ve,Pe):Je(nt.declarations,Tt=>{if(!Tt.parent){if(nt.flags&33554432)return;Se.fail(`Unexpected symbol at ${Se.formatSyntaxKind(Lt.kind)}: ${Se.formatSymbol(nt)}`)}return Im(Tt.parent)&&gx(Tt.parent.parent)?Pe.getPropertyOfType(Pe.getTypeFromTypeNode(Tt.parent.parent),nt.name):void 0})}let $;(nt=>{nt[nt.None=0]="None",nt[nt.Constructor=1]="Constructor",nt[nt.Class=2]="Class"})($||($={}));function K(nt){if(!(nt.flags&33555968))return;let Lt=nt.declarations&&jt(nt.declarations,Pe=>!ul(Pe)&&!Dh(Pe));return Lt&&Lt.symbol}class re{constructor(Lt,Pe,St,Ve,Tt,dt,Wt,pt){this.sourceFiles=Lt,this.sourceFilesSet=Pe,this.specialSearchKind=St,this.checker=Ve,this.cancellationToken=Tt,this.searchMeaning=dt,this.options=Wt,this.result=pt,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=GW(),this.markSeenReExportRHS=GW(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(Lt){return this.sourceFilesSet.has(Lt.fileName)}getImportSearches(Lt,Pe){return this.importTracker||(this.importTracker=$nt(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(Lt,Pe,this.options.use===2)}createSearch(Lt,Pe,St,Ve={}){let{text:Tt=B2(Bc(E5(Pe)||K(Pe)||Pe)),allSearchSymbols:dt=[Pe]}=Ve,Wt=kh(Tt),pt=this.options.implementations&&Lt?lt(Lt,Pe,this.checker):void 0;return{symbol:Pe,comingFrom:St,text:Tt,escapedText:Wt,parents:pt,allSearchSymbols:dt,includes:Gt=>dr(dt,Gt)}}referenceAdder(Lt){let Pe=Nf(Lt),St=this.symbolIdToReferences[Pe];return St||(St=this.symbolIdToReferences[Pe]=[],this.result.push({definition:{type:0,symbol:Lt},references:St})),(Ve,Tt)=>St.push(X4(Ve,Tt))}addStringOrCommentReference(Lt,Pe){this.result.push({definition:void 0,references:[{kind:0,fileName:Lt,textSpan:Pe}]})}markSearchedSymbols(Lt,Pe){let St=pp(Lt),Ve=this.sourceFileToSeenSymbols[St]||(this.sourceFileToSeenSymbols[St]=new Set),Tt=!1;for(let dt of Pe)Tt=dc(Ve,Nf(dt))||Tt;return Tt}}function X(nt,Lt,Pe,St){let{importSearches:Ve,singleReferences:Tt,indirectUsers:dt}=St.getImportSearches(Lt,Pe);if(Tt.length){let Wt=St.referenceAdder(Lt);for(let pt of Tt)se(pt,St)&&Wt(pt)}for(let[Wt,pt]of Ve)$e(Wt.getSourceFile(),St.createSearch(Wt,pt,1),St);if(dt.length){let Wt;switch(Pe.exportKind){case 0:Wt=St.createSearch(nt,Lt,1);break;case 1:Wt=St.options.use===2?void 0:St.createSearch(nt,Lt,1,{text:"default"});break;case 2:break}if(Wt)for(let pt of dt)ae(pt,Wt,St)}}function ne(nt,Lt,Pe,St,Ve,Tt,dt,Wt){let pt=$nt(nt,new Set(nt.map(Ie=>Ie.fileName)),Lt,Pe),{importSearches:Gt,indirectUsers:Mt,singleReferences:hi}=pt(St,{exportKind:dt?1:0,exportingModuleSymbol:Ve},!1);for(let[Ie]of Gt)Wt(Ie);for(let Ie of hi)Ai(Ie)&&Ck(Ie.parent)&&Wt(Ie);for(let Ie of Mt)for(let Bt of we(Ie,dt?"default":Tt)){let ui=Lt.getSymbolAtLocation(Bt),Ue=En(ui?.declarations,Ce=>!!ac(Ce,Bm));Ai(Bt)&&!I2(Bt.parent)&&(ui===St||Ue)&&Wt(Bt)}}t.eachExportReference=ne;function se(nt,Lt){return qe(nt,Lt)?Lt.options.use!==2?!0:!Ai(nt)&&!I2(nt.parent)?!1:!(I2(nt.parent)&&MC(nt)):!1}function _e(nt,Lt){if(nt.declarations)for(let Pe of nt.declarations){let St=Pe.getSourceFile();$e(St,Lt.createSearch(Pe,nt,0),Lt,Lt.includesSourceFile(St))}}function ae(nt,Lt,Pe){bRe(nt).get(Lt.escapedText)!==void 0&&$e(nt,Lt,Pe)}function le(nt,Lt){return J4(nt.parent.parent)?Lt.getPropertySymbolOfDestructuringAssignment(nt):void 0}function Ee(nt){let{declarations:Lt,flags:Pe,parent:St,valueDeclaration:Ve}=nt;if(Ve&&(Ve.kind===218||Ve.kind===231))return Ve;if(!Lt)return;if(Pe&8196){let Wt=jt(Lt,pt=>zC(pt,2)||qb(pt));return Wt?M2(Wt,263):void 0}if(Lt.some(dJ))return;let Tt=St&&!(nt.flags&262144);if(Tt&&!(xH(St)&&!St.globalExports))return;let dt;for(let Wt of Lt){let pt=hF(Wt);if(dt&&dt!==pt||!pt||pt.kind===307&&!Jv(pt))return;if(dt=pt,yd(dt)){let Gt;for(;Gt=yG(dt);)dt=Gt}}return Tt?dt.getSourceFile():dt}function xe(nt,Lt,Pe,St=Pe){return be(nt,Lt,Pe,()=>!0,St)||!1}t.isSymbolReferencedInFile=xe;function be(nt,Lt,Pe,St,Ve=Pe){let Tt=OC(nt.parent,nt.parent.parent)?of(Lt.getSymbolsOfParameterPropertyDeclaration(nt.parent,nt.text)):Lt.getSymbolAtLocation(nt);if(Tt)for(let dt of we(Pe,Tt.name,Ve)){if(!Ai(dt)||dt===nt||dt.escapedText!==nt.escapedText)continue;let Wt=Lt.getSymbolAtLocation(dt);if(Wt===Tt||Lt.getShorthandAssignmentValueSymbol(dt.parent)===Tt||X0(dt.parent)&&mt(dt,Wt,dt.parent,Lt)===Tt){let pt=St(dt);if(pt)return pt}}}t.eachSymbolReferenceInFile=be;function Le(nt,Lt){return Qn(we(Lt,nt),Ve=>!!F_(Ve)).reduce((Ve,Tt)=>{let dt=St(Tt);return!En(Ve.declarationNames)||dt===Ve.depth?(Ve.declarationNames.push(Tt),Ve.depth=dt):dtMt===Ve)&&St(dt,pt))return!0}return!1}t.someSignatureUsage=fe;function we(nt,Lt,Pe=nt){return Dc(Ae(nt,Lt,Pe),St=>{let Ve=VS(nt,St);return Ve===nt?void 0:Ve})}function Ae(nt,Lt,Pe=nt){let St=[];if(!Lt||!Lt.length)return St;let Ve=nt.text,Tt=Ve.length,dt=Lt.length,Wt=Ve.indexOf(Lt,Pe.pos);for(;Wt>=0&&!(Wt>Pe.end);){let pt=Wt+dt;(Wt===0||!UD(Ve.charCodeAt(Wt-1),99))&&(pt===Tt||!UD(Ve.charCodeAt(pt),99))&&St.push(Wt),Wt=Ve.indexOf(Lt,Wt+dt+1)}return St}function Ge(nt,Lt){let Pe=nt.getSourceFile(),St=Lt.text,Ve=Dc(we(Pe,St,nt),Tt=>Tt===Lt||rJ(Tt)&&qK(Tt,St)===Lt?X4(Tt):void 0);return[{definition:{type:1,node:Lt},references:Ve}]}function he(nt,Lt){switch(nt.kind){case 81:if(hh(nt.parent))return!0;case 80:return nt.text.length===Lt.length;case 15:case 11:{let Pe=nt;return Pe.text.length===Lt.length&&(Ate(Pe)||zW(nt)||C0e(nt)||Od(nt.parent)&&I3(nt.parent)&&nt.parent.arguments[1]===nt||I2(nt.parent))}case 9:return Ate(nt)&&nt.text.length===Lt.length;case 90:return Lt.length===7;default:return!1}}function Oe(nt,Lt){let Pe=za(nt,St=>(Lt.throwIfCancellationRequested(),Dc(we(St,"meta",St),Ve=>{let Tt=Ve.parent;if(b4(Tt))return X4(Tt)})));return Pe.length?[{definition:{type:2,node:Pe[0].node},references:Pe}]:void 0}function Re(nt,Lt,Pe,St){let Ve=za(nt,Tt=>(Pe.throwIfCancellationRequested(),Dc(we(Tt,Ef(Lt),Tt),dt=>{if(dt.kind===Lt&&(!St||St(dt)))return X4(dt)})));return Ve.length?[{definition:{type:2,node:Ve[0].node},references:Ve}]:void 0}function $e(nt,Lt,Pe,St=!0){return Pe.cancellationToken.throwIfCancellationRequested(),Ke(nt,nt,Lt,Pe,St)}function Ke(nt,Lt,Pe,St,Ve){if(St.markSearchedSymbols(Lt,Pe.allSearchSymbols))for(let Tt of Ae(Lt,Pe.text,nt))rt(Lt,Tt,Pe,St,Ve)}function qe(nt,Lt){return!!(m9(nt)&Lt.searchMeaning)}function rt(nt,Lt,Pe,St,Ve){let Tt=VS(nt,Lt);if(!he(Tt,Pe.text)){!St.options.implementations&&(St.options.findInStrings&&JW(nt,Lt)||St.options.findInComments&&yL(nt,Lt))&&St.addStringOrCommentReference(nt.fileName,h1(Lt,Pe.text.length));return}if(!qe(Tt,St))return;let dt=St.checker.getSymbolAtLocation(Tt);if(!dt)return;let Wt=Tt.parent;if(eg(Wt)&&Wt.propertyName===Tt)return;if(X0(Wt)){Se.assert(Tt.kind===80||Tt.kind===11),ft(Tt,dt,Wt,Pe,St,Ve);return}if(vH(Wt)&&Wt.isNameFirst&&Wt.typeExpression&&G5(Wt.typeExpression.type)&&Wt.typeExpression.type.jsDocPropertyTags&&Z(Wt.typeExpression.type.jsDocPropertyTags)){_t(Wt.typeExpression.type.jsDocPropertyTags,Tt,Pe,St);return}let pt=vo(Pe,dt,Tt,St);if(!pt){Kt(dt,Pe,St);return}switch(St.specialSearchKind){case 0:Ve&&ni(Tt,pt,St);break;case 1:Ut(Tt,nt,Pe,St);break;case 2:pi(Tt,Pe,St);break;default:Se.assertNever(St.specialSearchKind)}Ys(Tt)&&Zd(Tt.parent)&&E3(Tt.parent.parent.parent)&&(dt=Tt.parent.symbol,!dt)||ht(Tt,dt,Pe,St)}function _t(nt,Lt,Pe,St){let Ve=St.referenceAdder(Pe.symbol);ni(Lt,Pe.symbol,St),ee(nt,Tt=>{tS(Tt.name)&&Ve(Tt.name.left)})}function ft(nt,Lt,Pe,St,Ve,Tt,dt){Se.assert(!dt||!!Ve.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");let{parent:Wt,propertyName:pt,name:Gt}=Pe,Mt=Wt.parent,hi=mt(nt,Lt,Pe,Ve.checker);if(!dt&&!St.includes(hi))return;if(pt?nt===pt?(Mt.moduleSpecifier||Ie(),Tt&&Ve.options.use!==2&&Ve.markSeenReExportRHS(Gt)&&ni(Gt,Se.checkDefined(Pe.symbol),Ve)):Ve.markSeenReExportRHS(nt)&&Ie():Ve.options.use===2&&MC(Gt)||Ie(),!Xi(Ve.options)||dt){let ui=MC(nt)||MC(Pe.name)?1:0,Ue=Se.checkDefined(Pe.symbol),Ce=Zye(Ue,ui,Ve.checker);Ce&&X(nt,Ue,Ce,Ve)}if(St.comingFrom!==1&&Mt.moduleSpecifier&&!pt&&!Xi(Ve.options)){let Bt=Ve.checker.getExportSpecifierLocalTargetSymbol(Pe);Bt&&_e(Bt,Ve)}function Ie(){Tt&&ni(nt,hi,Ve)}}function mt(nt,Lt,Pe,St){return ut(nt,Pe)&&St.getExportSpecifierLocalTargetSymbol(Pe)||Lt}function ut(nt,Lt){let{parent:Pe,propertyName:St,name:Ve}=Lt;return Se.assert(St===nt||Ve===nt),St?St===nt:!Pe.parent.moduleSpecifier}function ht(nt,Lt,Pe,St){let Ve=g9e(nt,Lt,St.checker,Pe.comingFrom===1);if(!Ve)return;let{symbol:Tt}=Ve;Ve.kind===0?Xi(St.options)||_e(Tt,St):X(nt,Tt,Ve.exportInfo,St)}function Kt({flags:nt,valueDeclaration:Lt},Pe,St){let Ve=St.checker.getShorthandAssignmentValueSymbol(Lt),Tt=Lt&&Nu(Lt);!(nt&33554432)&&Tt&&Pe.includes(Ve)&&ni(Tt,Ve,St)}function ni(nt,Lt,Pe){let{kind:St,symbol:Ve}="kind"in Lt?Lt:{kind:void 0,symbol:Lt};if(Pe.options.use===2&&nt.kind===90)return;let Tt=Pe.referenceAdder(Ve);Pe.options.implementations?zn(nt,Tt,Pe):Tt(nt,St)}function Ut(nt,Lt,Pe,St){Gce(nt)&&ni(nt,Pe.symbol,St);let Ve=()=>St.referenceAdder(Pe.symbol);if(bc(nt.parent))Se.assert(nt.kind===90||nt.parent.name===nt),wi(Pe.symbol,Lt,Ve());else{let Tt=qi(nt);Tt&&(Bn(Tt,Ve()),Ei(Tt,St))}}function pi(nt,Lt,Pe){ni(nt,Lt.symbol,Pe);let St=nt.parent;if(Pe.options.use===2||!bc(St))return;Se.assert(St.name===nt);let Ve=Pe.referenceAdder(Lt.symbol);for(let Tt of St.members)p4(Tt)&&Xd(Tt)&&Tt.body&&Tt.body.forEachChild(function dt(Wt){Wt.kind===110?Ve(Wt):!iu(Wt)&&!bc(Wt)&&Wt.forEachChild(dt)})}function wi(nt,Lt,Pe){let St=Bi(nt);if(St&&St.declarations)for(let Ve of St.declarations){let Tt=Np(Ve,137,Lt);Se.assert(Ve.kind===176&&!!Tt),Pe(Tt)}nt.exports&&nt.exports.forEach(Ve=>{let Tt=Ve.valueDeclaration;if(Tt&&Tt.kind===174){let dt=Tt.body;dt&&Pi(dt,110,Wt=>{Gce(Wt)&&Pe(Wt)})}})}function Bi(nt){return nt.members&&nt.members.get("__constructor")}function Bn(nt,Lt){let Pe=Bi(nt.symbol);if(Pe&&Pe.declarations)for(let St of Pe.declarations){Se.assert(St.kind===176);let Ve=St.body;Ve&&Pi(Ve,108,Tt=>{L7e(Tt)&&Lt(Tt)})}}function mr(nt){return!!Bi(nt.symbol)}function Ei(nt,Lt){if(mr(nt))return;let Pe=nt.symbol,St=Lt.createSearch(void 0,Pe,void 0);R(Pe,Lt,St)}function zn(nt,Lt,Pe){if(VT(nt)&&Mn(nt.parent)){Lt(nt);return}if(nt.kind!==80)return;nt.parent.kind===304&&Qs(nt,Pe.checker,Lt);let St=zr(nt);if(St){Lt(St);return}let Ve=go(nt,Wt=>!tS(Wt.parent)&&!Qa(Wt.parent)&&!Xh(Wt.parent)),Tt=Ve.parent;if(Yoe(Tt)&&Tt.type===Ve&&Pe.markSeenContainingTypeReference(Tt))if(yg(Tt))dt(Tt.initializer);else if(iu(Tt)&&Tt.body){let Wt=Tt.body;Wt.kind===241?Gb(Wt,pt=>{pt.expression&&dt(pt.expression)}):dt(Wt)}else gy(Tt)&&dt(Tt.expression);function dt(Wt){xr(Wt)&&Lt(Wt)}}function zr(nt){return Ai(nt)||ba(nt)?zr(nt.parent):$C(nt)?ac(nt.parent.parent,ow(bc,ky)):void 0}function xr(nt){switch(nt.kind){case 217:return xr(nt.expression);case 219:case 218:case 210:case 231:case 209:return!0;default:return!1}}function lo(nt,Lt,Pe,St){if(nt===Lt)return!0;let Ve=Nf(nt)+","+Nf(Lt),Tt=Pe.get(Ve);if(Tt!==void 0)return Tt;Pe.set(Ve,!1);let dt=!!nt.declarations&&nt.declarations.some(Wt=>FH(Wt).some(pt=>{let Gt=St.getTypeAtLocation(pt);return!!Gt&&!!Gt.symbol&&lo(Gt.symbol,Lt,Pe,St)}));return Pe.set(Ve,dt),dt}function _r(nt){let Lt=IZ(nt,!1);if(!Lt)return;let Pe=256;switch(Lt.kind){case 172:case 171:case 174:case 173:case 176:case 177:case 178:Pe&=eT(Lt),Lt=Lt.parent;break;default:return}let St=Lt.getSourceFile(),Ve=Dc(we(St,"super",Lt),Tt=>{if(Tt.kind!==108)return;let dt=IZ(Tt,!1);return dt&&Xd(dt)===!!Pe&&dt.parent.symbol===Lt.symbol?X4(Tt):void 0});return[{definition:{type:0,symbol:Lt.symbol},references:Ve}]}function Hs(nt){return nt.kind===80&&nt.parent.kind===169&&nt.parent.name===nt}function ai(nt,Lt,Pe){let St=Kb(nt,!1,!1),Ve=256;switch(St.kind){case 174:case 173:if(zT(St)){Ve&=eT(St),St=St.parent;break}case 172:case 171:case 176:case 177:case 178:Ve&=eT(St),St=St.parent;break;case 307:if(Mg(St)||Hs(nt))return;case 262:case 218:break;default:return}let Tt=za(St.kind===307?Lt:[St.getSourceFile()],Wt=>(Pe.throwIfCancellationRequested(),we(Wt,"this",ul(St)?Wt:St).filter(pt=>{if(!H4(pt))return!1;let Gt=Kb(pt,!1,!1);if(!$x(Gt))return!1;switch(St.kind){case 218:case 262:return St.symbol===Gt.symbol;case 174:case 173:return zT(St)&&St.symbol===Gt.symbol;case 231:case 263:case 210:return Gt.parent&&$x(Gt.parent)&&St.symbol===Gt.parent.symbol&&Xd(Gt)===!!Ve;case 307:return Gt.kind===307&&!Mg(Gt)&&!Hs(pt)}}))).map(Wt=>X4(Wt));return[{definition:{type:3,node:Je(Tt,Wt=>Fl(Wt.node.parent)?Wt.node:void 0)||nt},references:Tt}]}function mn(nt,Lt,Pe,St){let Ve=REe(nt,Pe),Tt=za(Lt,dt=>(St.throwIfCancellationRequested(),Dc(we(dt,nt.text),Wt=>{if(i_(Wt)&&Wt.text===nt.text)if(Ve){let pt=REe(Wt,Pe);if(Ve!==Pe.getStringType()&&(Ve===pt||Nn(Wt,Pe)))return X4(Wt,2)}else return z5(Wt)&&!F8(Wt,dt)?void 0:X4(Wt,2)})));return[{definition:{type:4,node:nt},references:Tt}]}function Nn(nt,Lt){if(hx(nt.parent))return Lt.getPropertyOfType(Lt.getTypeAtLocation(nt.parent.parent),nt.text)}function Gr(nt,Lt,Pe,St,Ve,Tt){let dt=[];return ci(nt,Lt,Pe,St,!(St&&Ve),(Wt,pt,Gt)=>{Gt&&Sr(nt)!==Sr(Gt)&&(Gt=void 0),dt.push(Gt||pt||Wt)},()=>!Tt),dt}function ci(nt,Lt,Pe,St,Ve,Tt,dt){let Wt=Dye(Lt);if(Wt){let ui=Pe.getShorthandAssignmentValueSymbol(Lt.parent);if(ui&&St)return Tt(ui,void 0,void 0,3);let Ue=Pe.getContextualType(Wt.parent),Ce=Ue&&Je(GDe(Wt,Pe,Ue,!0),at=>Ie(at,4));if(Ce)return Ce;let ye=le(Lt,Pe),vt=ye&&Tt(ye,void 0,void 0,4);if(vt)return vt;let pe=ui&&Tt(ui,void 0,void 0,3);if(pe)return pe}let pt=g(Lt,nt,Pe);if(pt){let ui=Tt(pt,void 0,void 0,1);if(ui)return ui}let Gt=Ie(nt);if(Gt)return Gt;if(nt.valueDeclaration&&OC(nt.valueDeclaration,nt.valueDeclaration.parent)){let ui=Pe.getSymbolsOfParameterPropertyDeclaration($d(nt.valueDeclaration,Fl),nt.name);return Se.assert(ui.length===2&&!!(ui[0].flags&1)&&!!(ui[1].flags&4)),Ie(nt.flags&1?ui[1]:ui[0])}let Mt=Kp(nt,281);if(!St||Mt&&!Mt.propertyName){let ui=Mt&&Pe.getExportSpecifierLocalTargetSymbol(Mt);if(ui){let Ue=Tt(ui,void 0,void 0,1);if(Ue)return Ue}}if(!St){let ui;return Ve?ui=dJ(Lt.parent)?eX(Pe,Lt.parent):void 0:ui=Bt(nt,Pe),ui&&Ie(ui,4)}if(Se.assert(St),Ve){let ui=Bt(nt,Pe);return ui&&Ie(ui,4)}function Ie(ui,Ue){return Je(Pe.getRootSymbols(ui),Ce=>Tt(ui,Ce,void 0,Ue)||(Ce.parent&&Ce.parent.flags&96&&dt(Ce)?gn(Ce.parent,Ce.name,Pe,ye=>Tt(ui,Ce,ye,Ue)):void 0))}function Bt(ui,Ue){let Ce=Kp(ui,208);if(Ce&&dJ(Ce))return eX(Ue,Ce)}}function gn(nt,Lt,Pe,St){let Ve=new Map;return Tt(nt);function Tt(dt){if(!(!(dt.flags&96)||!HC(Ve,Nf(dt))))return Je(dt.declarations,Wt=>Je(FH(Wt),pt=>{let Gt=Pe.getTypeAtLocation(pt),Mt=Gt&&Gt.symbol&&Pe.getPropertyOfType(Gt,Lt);return Gt&&Mt&&(Je(Pe.getRootSymbols(Mt),St)||Tt(Gt.symbol))}))}}function Sr(nt){return nt.valueDeclaration?!!(A_(nt.valueDeclaration)&256):!1}function vo(nt,Lt,Pe,St){let{checker:Ve}=St;return ci(Lt,Pe,Ve,!1,St.options.use!==2||!!St.options.providePrefixAndSuffixTextForRename,(Tt,dt,Wt,pt)=>(Wt&&Sr(Lt)!==Sr(Wt)&&(Wt=void 0),nt.includes(Wt||dt||Tt)?{symbol:dt&&!(Ag(Tt)&6)?dt:Tt,kind:pt}:void 0),Tt=>!(nt.parents&&!nt.parents.some(dt=>lo(Tt.parent,dt,St.inheritsFromCache,Ve))))}function $o(nt,Lt){let Pe=m9(nt),{declarations:St}=Lt;if(St){let Ve;do{Ve=Pe;for(let Tt of St){let dt=D1(Tt);dt&Pe&&(Pe|=dt)}}while(Pe!==Ve)}return Pe}t.getIntersectingMeaningFromDeclarations=$o;function Mn(nt){return nt.flags&33554432?!(ky(nt)||k1(nt)):mj(nt)?yg(nt):Rp(nt)?!!nt.body:bc(nt)||aj(nt)}function Qs(nt,Lt,Pe){let St=Lt.getSymbolAtLocation(nt),Ve=Lt.getShorthandAssignmentValueSymbol(St.valueDeclaration);if(Ve)for(let Tt of Ve.getDeclarations())D1(Tt)&1&&Pe(Tt)}t.getReferenceEntriesForShorthandPropertyAssignment=Qs;function Pi(nt,Lt,Pe){_d(nt,St=>{St.kind===Lt&&Pe(St),Pi(St,Lt,Pe)})}function qi(nt){return Lse(FEe(nt).parent)}function lt(nt,Lt,Pe){let St=WW(nt)?nt.parent:void 0,Ve=St&&Pe.getTypeAtLocation(St.expression),Tt=Dc(Ve&&(Ve.isUnionOrIntersection()?Ve.types:Ve.symbol===Lt.parent?void 0:[Ve]),dt=>dt.symbol&&dt.symbol.flags&96?dt.symbol:void 0);return Tt.length===0?void 0:Tt}function Xi(nt){return nt.use===2&&nt.providePrefixAndSuffixTextForRename}})(LJ||(LJ={}));var Cie={};d(Cie,{createDefinitionInfo:()=>OJ,getDefinitionAndBoundSpan:()=>NHt,getDefinitionAtPosition:()=>nrt,getReferenceAtPosition:()=>fxt,getTypeDefinitionAtPosition:()=>DHt});function nrt(t,n,a,u,m){var g;let v=fxt(n,a,t),x=v&&[b9e(v.reference.fileName,v.fileName,v.unverified)]||F;if(v?.file)return x;let k=VS(n,a);if(k===n)return;let{parent:T}=k,I=t.getTypeChecker();if(k.kind===164||Ai(k)&&dM(T)&&T.tagName===k)return dxt(I,k)||F;if(rJ(k)){let $=qK(k.parent,k.text);return $?[FX(I,$,"label",k.text,void 0)]:void 0}switch(k.kind){case 107:let $=go(k.parent,re=>Yf(re)?"quit":Rp(re));return $?[bNe(I,$)]:void 0;case 90:if(!fL(k.parent))break;case 84:let K=go(k.parent,hee);if(K)return[PHt(K,n)];break}if(k.kind===135){let $=go(k,re=>Rp(re));return $&&En($.modifiers,re=>re.kind===134)?[bNe(I,$)]:void 0}if(k.kind===127){let $=go(k,re=>Rp(re));return $&&$.asteriskToken?[bNe(I,$)]:void 0}if(oW(k)&&Yf(k.parent)){let $=k.parent.parent,{symbol:K,failedAliasResolution:re}=LX($,I,m),X=Qn($.members,Yf),ne=K?I.symbolToString(K,$):"",se=k.getSourceFile();return $i(X,_e=>{let{pos:ae}=JE(_e);return ae=fd(se.text,ae),FX(I,_e,"constructor","static {}",ne,!1,re,{start:ae,length:6})})}let{symbol:A,failedAliasResolution:M}=LX(k,I,m),R=k;if(u&&M){let $=ee([k,...A?.declarations||F],re=>go(re,zpe)),K=$&&J7($);K&&({symbol:A,failedAliasResolution:M}=LX(K,I,m),R=K)}if(!A&&jte(R)){let $=(g=t.getResolvedModuleFromModuleSpecifier(R,n))==null?void 0:g.resolvedModule;if($)return[{name:R.text,fileName:$.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:h1(0,0),failedAliasResolution:M,isAmbient:ey($.resolvedFileName),unverified:R!==k}]}if(!A)return Pl(x,Zle(k,I));if(u&&Yt(A.declarations,$=>$.getSourceFile().fileName===n.fileName))return;let H=OHt(I,k);if(H&&!(nv(k.parent)&&FHt(H))){let $=bNe(I,H,M),K=X=>X!==H;if(I.getRootSymbols(A).some(X=>lxt(X,H))){if(!yl(H))return[$];K=X=>X!==H&&(D0(X)||Qh(X))}let re=OX(I,A,k,M,K)||F;return k.kind===108?[$,...re]:[...re,$]}if(k.parent.kind===304){let $=I.getShorthandAssignmentValueSymbol(A.valueDeclaration),K=$?.declarations?$.declarations.map(re=>OJ(re,I,$,k,!1,M)):F;return Pl(K,uxt(I,k))}if(C_(k)&&Zd(T)&&fb(T.parent)&&k===(T.propertyName||T.name)){let $=KW(k),K=I.getTypeAtLocation(T.parent);return $===void 0?F:za(K.isUnion()?K.types:[K],re=>{let X=re.getProperty($);return X&&OX(I,X,k)})}let U=uxt(I,k);return Pl(x,U.length?U:OX(I,A,k,M))}function lxt(t,n){var a;return t===n.symbol||t===n.symbol.parent||Kg(n.parent)||!H6(n.parent)&&t===((a=ac(n.parent,$x))==null?void 0:a.symbol)}function uxt(t,n){let a=Dye(n);if(a){let u=a&&t.getContextualType(a.parent);if(u)return za(GDe(a,t,u,!1),m=>OX(t,m,n))}return F}function dxt(t,n){let a=go(n,rl);if(!(a&&a.name))return;let u=go(a,bc);if(!u)return;let m=HE(u);if(!m)return;let g=J_(m.expression),v=Qh(g)?g.symbol:t.getSymbolAtLocation(g);if(!v)return;let x=Ba(k8(a.name)),k=G0(a)?t.getPropertyOfType(t.getTypeOfSymbol(v),x):t.getPropertyOfType(t.getDeclaredTypeOfSymbol(v),x);if(k)return OX(t,k,n)}function fxt(t,n,a){var u,m;let g=nve(t.referencedFiles,n);if(g){let k=a.getSourceFileFromReference(t,g);return k&&{reference:g,fileName:k.fileName,file:k,unverified:!1}}let v=nve(t.typeReferenceDirectives,n);if(v){let k=(u=a.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(v,t))==null?void 0:u.resolvedTypeReferenceDirective,T=k&&a.getSourceFile(k.resolvedFileName);return T&&{reference:v,fileName:T.fileName,file:T,unverified:!1}}let x=nve(t.libReferenceDirectives,n);if(x){let k=a.getLibFileFromReference(x);return k&&{reference:x,fileName:k.fileName,file:k,unverified:!1}}if(t.imports.length||t.moduleAugmentations.length){let k=h9(t,n),T;if(jte(k)&&l0(k.text)&&(T=a.getResolvedModuleFromModuleSpecifier(k,t))){let I=(m=T.resolvedModule)==null?void 0:m.resolvedFileName,A=I||w7(Cc(t.fileName),k.text);return{file:a.getSourceFile(A),fileName:A,reference:{pos:k.getStart(),end:k.getEnd(),fileName:k.text},unverified:!I}}}}var _xt=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"]);function ive(t,n){let a=n.symbol.name;if(!_xt.has(a))return!1;let u=t.resolveName(a,void 0,788968,!1);return!!u&&u===n.target.symbol}function pxt(t,n){if(!n.aliasSymbol)return!1;let a=n.aliasSymbol.name;if(!_xt.has(a))return!1;let u=t.resolveName(a,void 0,788968,!1);return!!u&&u===n.aliasSymbol}function EHt(t,n,a,u){var m,g;if(Ls(n)&4&&ive(t,n))return PX(t.getTypeArguments(n)[0],t,a,u);if(pxt(t,n)&&n.aliasTypeArguments)return PX(n.aliasTypeArguments[0],t,a,u);if(Ls(n)&32&&n.target&&pxt(t,n.target)){let v=(g=(m=n.aliasSymbol)==null?void 0:m.declarations)==null?void 0:g[0];if(v&&k1(v)&&M_(v.type)&&v.type.typeArguments)return PX(t.getTypeAtLocation(v.type.typeArguments[0]),t,a,u)}return[]}function DHt(t,n,a){let u=VS(n,a);if(u===n)return;if(b4(u.parent)&&u.parent.name===u)return PX(t.getTypeAtLocation(u.parent),t,u.parent,!1);let{symbol:m,failedAliasResolution:g}=LX(u,t,!1);if(!m)return;let v=t.getTypeOfSymbolAtLocation(m,u),x=IHt(m,v,t),k=x&&PX(x,t,u,g),[T,I]=k&&k.length!==0?[x,k]:[v,PX(v,t,u,g)];return I.length?[...EHt(t,T,u,g),...I]:!(m.flags&111551)&&m.flags&788968?OX(t,ym(m,t),u,g):void 0}function PX(t,n,a,u){return za(t.isUnion()&&!(t.flags&32)?t.types:[t],m=>m.symbol&&OX(n,m.symbol,a,u))}function IHt(t,n,a){if(n.symbol===t||t.valueDeclaration&&n.symbol&&$c(t.valueDeclaration)&&t.valueDeclaration.initializer===n.symbol.valueDeclaration){let u=n.getCallSignatures();if(u.length===1)return a.getReturnTypeOfSignature(of(u))}}function NHt(t,n,a){let u=nrt(t,n,a);if(!u||u.length===0)return;let m=nve(n.referencedFiles,a)||nve(n.typeReferenceDirectives,a)||nve(n.libReferenceDirectives,a);if(m)return{definitions:u,textSpan:q4(m)};let g=VS(n,a),v=h1(g.getStart(),g.getWidth());return{definitions:u,textSpan:v}}function Zle(t,n){return Dc(n.getIndexInfosAtLocation(t),a=>a.declaration&&bNe(n,a.declaration))}function LX(t,n,a){let u=n.getSymbolAtLocation(t),m=!1;if(u?.declarations&&u.flags&2097152&&!a&&rrt(t,u.declarations[0])){let g=n.getAliasedSymbol(u);if(g.declarations)return{symbol:g};m=!0}return{symbol:u,failedAliasResolution:m}}function rrt(t,n){return t.kind!==80&&(t.kind!==11||!I2(t.parent))?!1:t.parent===n?!0:n.kind!==274}function AHt(t){if(!dG(t))return!1;let n=go(t,a=>Kg(a)?!0:dG(a)?!1:"quit");return!!n&&wh(n)===5}function OX(t,n,a,u,m){let g=m!==void 0?Qn(n.declarations,m):n.declarations,v=!m&&(T()||I());if(v)return v;let x=Qn(g,M=>!AHt(M)),k=En(x)?x:g;return $i(k,M=>OJ(M,t,n,a,!1,u));function T(){if(n.flags&32&&!(n.flags&19)&&(Gce(a)||a.kind===137)){let M=jt(g,bc);return M&&A(M.members,!0)}}function I(){return Kce(a)||Yce(a)?A(g,!1):void 0}function A(M,R){if(!M)return;let H=M.filter(R?yl:iu),U=H.filter($=>!!$.body);return H.length?U.length!==0?U.map($=>OJ($,t,n,a)):[OJ(Bu(H),t,n,a,!1,u)]:void 0}}function OJ(t,n,a,u,m,g){let v=n.symbolToString(a),x=mO.getSymbolKind(n,a,u),k=a.parent?n.symbolToString(a.parent,u):"";return FX(n,t,x,v,k,m,g)}function FX(t,n,a,u,m,g,v,x){let k=n.getSourceFile();if(!x){let T=Nu(n)||n;x=Cx(T,k)}return{fileName:k.fileName,textSpan:x,kind:a,name:u,containerKind:void 0,containerName:m,...Wm.toContextSpan(x,k,Wm.getContextNode(n)),isLocal:!ort(t,n),isAmbient:!!(n.flags&33554432),unverified:g,failedAliasResolution:v}}function PHt(t,n){let a=Wm.getContextNode(t),u=Cx(y9e(a)?a.start:a,n);return{fileName:n.fileName,textSpan:u,kind:"keyword",name:"switch",containerKind:void 0,containerName:"",...Wm.toContextSpan(u,n,a),isLocal:!0,isAmbient:!1,unverified:!1,failedAliasResolution:void 0}}function ort(t,n){if(t.isDeclarationVisible(n))return!0;if(!n.parent)return!1;if(yg(n.parent)&&n.parent.initializer===n)return ort(t,n.parent);switch(n.kind){case 172:case 177:case 178:case 174:if(zC(n,2))return!1;case 176:case 303:case 304:case 210:case 231:case 219:case 218:return ort(t,n.parent);default:return!1}}function bNe(t,n,a){return OJ(n,t,n.symbol,n,!1,a)}function nve(t,n){return jt(t,a=>Roe(a,n))}function b9e(t,n,a){return{fileName:n,textSpan:cg(0,0),kind:"script",name:t,containerName:void 0,containerKind:void 0,unverified:a}}function LHt(t){let n=go(t,u=>!WW(u)),a=n?.parent;return a&&H6(a)&&EH(a)===n?a:void 0}function OHt(t,n){let a=LHt(n),u=a&&t.getResolvedSignature(a);return ac(u&&u.declaration,m=>iu(m)&&!xp(m))}function FHt(t){switch(t.kind){case 176:case 185:case 179:case 180:return!0;default:return!1}}var SNe={};d(SNe,{provideInlayHints:()=>hxt});var MHt=t=>new RegExp(`^\\s?/\\*\\*?\\s?${t}\\s?\\*\\/\\s?$`);function I9(t){return t.includeInlayParameterNameHints==="literals"||t.includeInlayParameterNameHints==="all"}function mxt(t){return t.includeInlayParameterNameHints==="literals"}function S9e(t){return t.interactiveInlayHints===!0}function hxt(t){let{file:n,program:a,span:u,cancellationToken:m,preferences:g}=t,v=n.text,x=a.getCompilerOptions(),k=Nk(n,g),T=a.getTypeChecker(),I=[];return A(n),I;function A(Re){if(!(!Re||Re.getFullWidth()===0)){switch(Re.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 174:case 219:m.throwIfCancellationRequested()}if(oZ(u,Re.pos,Re.getFullWidth())&&!(Qa(Re)&&!$C(Re)))return g.includeInlayVariableTypeHints&&$c(Re)||g.includeInlayPropertyDeclarationTypeHints&&vu(Re)?re(Re):g.includeInlayEnumMemberValueHints&&pb(Re)?$(Re):I9(g)&&(Od(Re)||sM(Re))?X(Re):(g.includeInlayFunctionParameterTypeHints&&Rp(Re)&&iee(Re)&&Ee(Re),g.includeInlayFunctionLikeReturnTypeHints&&M(Re)&&ae(Re)),_d(Re,A)}}function M(Re){return Zc(Re)||yd(Re)||fp(Re)||Sg(Re)||n_(Re)}function R(Re,$e,Ke,qe){let rt=`${qe?"...":""}${Re}`,_t;S9e(g)?(_t=[Oe(rt,$e),{text:":"}],rt=""):rt+=":",I.push({text:rt,position:Ke,kind:"Parameter",whitespaceAfter:!0,displayParts:_t})}function H(Re,$e){I.push({text:typeof Re=="string"?`: ${Re}`:"",displayParts:typeof Re=="string"?void 0:[{text:": "},...Re],position:$e,kind:"Type",whitespaceBefore:!0})}function U(Re,$e){I.push({text:`= ${Re}`,position:$e,kind:"Enum",whitespaceBefore:!0})}function $(Re){if(Re.initializer)return;let $e=T.getConstantValue(Re);$e!==void 0&&U($e.toString(),Re.end)}function K(Re){return Re.symbol&&Re.symbol.flags&1536}function re(Re){if(Re.initializer===void 0&&!(vu(Re)&&!(T.getTypeAtLocation(Re).flags&1))||Uu(Re.name)||$c(Re)&&!he(Re)||gm(Re))return;let Ke=T.getTypeAtLocation(Re);if(K(Ke))return;let qe=fe(Ke);if(qe){let rt=typeof qe=="string"?qe:qe.map(ft=>ft.text).join("");if(g.includeInlayVariableTypeHintsWhenTypeMatchesName===!1&&rw(Re.name.getText(),rt))return;H(qe,Re.name.end)}}function X(Re){let $e=Re.arguments;if(!$e||!$e.length)return;let Ke=[],qe=T.getResolvedSignatureForSignatureHelp(Re,Ke);if(!qe||!Ke.length)return;let rt=0;for(let _t of $e){let ft=J_(_t);if(mxt(g)&&!_e(ft)){rt++;continue}let mt=0;if(yx(ft)){let ht=T.getTypeAtLocation(ft.expression);if(T.isTupleType(ht)){let{elementFlags:Kt,fixedLength:ni}=ht.target;if(ni===0)continue;let Ut=_n(Kt,wi=>!(wi&1));(Ut<0?ni:Ut)>0&&(mt=Ut<0?ni:Ut)}}let ut=T.getParameterIdentifierInfoAtPosition(qe,rt);if(rt=rt+(mt||1),ut){let{parameter:ht,parameterName:Kt,isRestParameter:ni}=ut;if(!(g.includeInlayParameterNameHintsWhenArgumentMatchesName||!ne(ft,Kt))&&!ni)continue;let pi=Ba(Kt);if(se(ft,pi))continue;R(pi,ht,_t.getStart(),ni)}}}function ne(Re,$e){return Ai(Re)?Re.text===$e:ba(Re)?Re.name.text===$e:!1}function se(Re,$e){if(!Jb($e,h_(x),GZ(n.scriptKind)))return!1;let Ke=PA(v,Re.pos);if(!Ke?.length)return!1;let qe=MHt($e);return En(Ke,rt=>qe.test(v.substring(rt.pos,rt.end)))}function _e(Re){switch(Re.kind){case 224:{let $e=Re.operand;return B6($e)||Ai($e)&&GG($e.escapedText)}case 112:case 97:case 106:case 15:case 228:return!0;case 80:{let $e=Re.escapedText;return Ge($e)||GG($e)}}return B6(Re)}function ae(Re){if(Zc(Re)&&!Np(Re,21,n)||WC(Re)||!Re.body)return;let Ke=T.getSignatureFromDeclaration(Re);if(!Ke)return;let qe=T.getTypePredicateOfSignature(Ke);if(qe?.type){let ft=we(qe);if(ft){H(ft,le(Re));return}}let rt=T.getReturnTypeOfSignature(Ke);if(K(rt))return;let _t=fe(rt);_t&&H(_t,le(Re))}function le(Re){let $e=Np(Re,22,n);return $e?$e.end:Re.parameters.end}function Ee(Re){let $e=T.getSignatureFromDeclaration(Re);if($e)for(let Ke=0;Ke{let rt=T.typeToTypeNode(Re,void 0,71286784);Se.assertIsDefined(rt,"should always get typenode"),Ke.writeNode(4,rt,n,qe)})}function Le(Re){let Ke=dF();return SZ(qe=>{let rt=T.typePredicateToTypePredicateNode(Re,void 0,71286784);Se.assertIsDefined(rt,"should always get typePredicateNode"),Ke.writeNode(4,rt,n,qe)})}function fe(Re){if(!S9e(g))return be(Re);let Ke=T.typeToTypeNode(Re,void 0,71286784);return Se.assertIsDefined(Ke,"should always get typeNode"),Ae(Ke)}function we(Re){if(!S9e(g))return Le(Re);let Ke=T.typePredicateToTypePredicateNode(Re,void 0,71286784);return Se.assertIsDefined(Ke,"should always get typenode"),Ae(Ke)}function Ae(Re){let $e=[];return Ke(Re),$e;function Ke(ft){var mt,ut;if(!ft)return;let ht=Ef(ft.kind);if(ht){$e.push({text:ht});return}if(B6(ft)){$e.push({text:_t(ft)});return}switch(ft.kind){case 80:Se.assertNode(ft,Ai);let Kt=Un(ft),ni=ft.symbol&&ft.symbol.declarations&&ft.symbol.declarations.length&&Nu(ft.symbol.declarations[0]);ni?$e.push(Oe(Kt,ni)):$e.push({text:Kt});break;case 166:Se.assertNode(ft,tS),Ke(ft.left),$e.push({text:"."}),Ke(ft.right);break;case 182:Se.assertNode(ft,Sk),ft.assertsModifier&&$e.push({text:"asserts "}),Ke(ft.parameterName),ft.type&&($e.push({text:" is "}),Ke(ft.type));break;case 183:Se.assertNode(ft,M_),Ke(ft.typeName),ft.typeArguments&&($e.push({text:"<"}),rt(ft.typeArguments,", "),$e.push({text:">"}));break;case 168:Se.assertNode(ft,Yp),ft.modifiers&&rt(ft.modifiers," "),Ke(ft.name),ft.constraint&&($e.push({text:" extends "}),Ke(ft.constraint)),ft.default&&($e.push({text:" = "}),Ke(ft.default));break;case 169:Se.assertNode(ft,Fl),ft.modifiers&&rt(ft.modifiers," "),ft.dotDotDotToken&&$e.push({text:"..."}),Ke(ft.name),ft.questionToken&&$e.push({text:"?"}),ft.type&&($e.push({text:": "}),Ke(ft.type));break;case 185:Se.assertNode(ft,Dm),$e.push({text:"new "}),qe(ft),$e.push({text:" => "}),Ke(ft.type);break;case 186:Se.assertNode(ft,C1),$e.push({text:"typeof "}),Ke(ft.exprName),ft.typeArguments&&($e.push({text:"<"}),rt(ft.typeArguments,", "),$e.push({text:">"}));break;case 187:Se.assertNode(ft,Im),$e.push({text:"{"}),ft.members.length&&($e.push({text:" "}),rt(ft.members,"; "),$e.push({text:" "})),$e.push({text:"}"});break;case 188:Se.assertNode(ft,$8),Ke(ft.elementType),$e.push({text:"[]"});break;case 189:Se.assertNode(ft,G8),$e.push({text:"["}),rt(ft.elements,", "),$e.push({text:"]"});break;case 202:Se.assertNode(ft,YA),ft.dotDotDotToken&&$e.push({text:"..."}),Ke(ft.name),ft.questionToken&&$e.push({text:"?"}),$e.push({text:": "}),Ke(ft.type);break;case 190:Se.assertNode(ft,oM),Ke(ft.type),$e.push({text:"?"});break;case 191:Se.assertNode(ft,qC),$e.push({text:"..."}),Ke(ft.type);break;case 192:Se.assertNode(ft,gx),rt(ft.types," | ");break;case 193:Se.assertNode(ft,lL),rt(ft.types," & ");break;case 194:Se.assertNode(ft,YE),Ke(ft.checkType),$e.push({text:" extends "}),Ke(ft.extendsType),$e.push({text:" ? "}),Ke(ft.trueType),$e.push({text:" : "}),Ke(ft.falseType);break;case 195:Se.assertNode(ft,Hy),$e.push({text:"infer "}),Ke(ft.typeParameter);break;case 196:Se.assertNode(ft,eO),$e.push({text:"("}),Ke(ft.type),$e.push({text:")"});break;case 198:Se.assertNode(ft,yN),$e.push({text:`${Ef(ft.operator)} `}),Ke(ft.type);break;case 199:Se.assertNode(ft,tO),Ke(ft.objectType),$e.push({text:"["}),Ke(ft.indexType),$e.push({text:"]"});break;case 200:Se.assertNode(ft,K8),$e.push({text:"{ "}),ft.readonlyToken&&(ft.readonlyToken.kind===40?$e.push({text:"+"}):ft.readonlyToken.kind===41&&$e.push({text:"-"}),$e.push({text:"readonly "})),$e.push({text:"["}),Ke(ft.typeParameter),ft.nameType&&($e.push({text:" as "}),Ke(ft.nameType)),$e.push({text:"]"}),ft.questionToken&&(ft.questionToken.kind===40?$e.push({text:"+"}):ft.questionToken.kind===41&&$e.push({text:"-"}),$e.push({text:"?"})),$e.push({text:": "}),ft.type&&Ke(ft.type),$e.push({text:"; }"});break;case 201:Se.assertNode(ft,xk),Ke(ft.literal);break;case 184:Se.assertNode(ft,xp),qe(ft),$e.push({text:" => "}),Ke(ft.type);break;case 205:Se.assertNode(ft,Ck),ft.isTypeOf&&$e.push({text:"typeof "}),$e.push({text:"import("}),Ke(ft.argument),ft.assertions&&($e.push({text:", { assert: "}),rt(ft.assertions.assertClause.elements,", "),$e.push({text:" }"})),$e.push({text:")"}),ft.qualifier&&($e.push({text:"."}),Ke(ft.qualifier)),ft.typeArguments&&($e.push({text:"<"}),rt(ft.typeArguments,", "),$e.push({text:">"}));break;case 171:Se.assertNode(ft,hx),(mt=ft.modifiers)!=null&&mt.length&&(rt(ft.modifiers," "),$e.push({text:" "})),Ke(ft.name),ft.questionToken&&$e.push({text:"?"}),ft.type&&($e.push({text:": "}),Ke(ft.type));break;case 181:Se.assertNode(ft,nu),$e.push({text:"["}),rt(ft.parameters,", "),$e.push({text:"]"}),ft.type&&($e.push({text:": "}),Ke(ft.type));break;case 173:Se.assertNode(ft,sT),(ut=ft.modifiers)!=null&&ut.length&&(rt(ft.modifiers," "),$e.push({text:" "})),Ke(ft.name),ft.questionToken&&$e.push({text:"?"}),qe(ft),ft.type&&($e.push({text:": "}),Ke(ft.type));break;case 179:Se.assertNode(ft,xg),qe(ft),ft.type&&($e.push({text:": "}),Ke(ft.type));break;case 207:Se.assertNode(ft,QE),$e.push({text:"["}),rt(ft.elements,", "),$e.push({text:"]"});break;case 206:Se.assertNode(ft,fb),$e.push({text:"{"}),ft.elements.length&&($e.push({text:" "}),rt(ft.elements,", "),$e.push({text:" "})),$e.push({text:"}"});break;case 208:Se.assertNode(ft,Zd),Ke(ft.name);break;case 224:Se.assertNode(ft,z2),$e.push({text:Ef(ft.operator)}),Ke(ft.operand);break;case 203:Se.assertNode(ft,J5),Ke(ft.head),ft.templateSpans.forEach(Ke);break;case 16:Se.assertNode(ft,nM),$e.push({text:_t(ft)});break;case 204:Se.assertNode(ft,X8),Ke(ft.type),Ke(ft.literal);break;case 17:Se.assertNode(ft,pee),$e.push({text:_t(ft)});break;case 18:Se.assertNode(ft,rW),$e.push({text:_t(ft)});break;case 197:Se.assertNode(ft,uL),$e.push({text:"this"});break;default:Se.failBadSyntaxKind(ft)}}function qe(ft){ft.typeParameters&&($e.push({text:"<"}),rt(ft.typeParameters,", "),$e.push({text:">"})),$e.push({text:"("}),rt(ft.parameters,", "),$e.push({text:")"})}function rt(ft,mt){ft.forEach((ut,ht)=>{ht>0&&$e.push({text:mt}),Ke(ut)})}function _t(ft){switch(ft.kind){case 11:return k===0?`'${w4(ft.text,39)}'`:`"${w4(ft.text,34)}"`;case 16:case 17:case 18:{let mt=ft.rawText??wse(w4(ft.text,96));switch(ft.kind){case 16:return"`"+mt+"${";case 17:return"}"+mt+"${";case 18:return"}"+mt+"`"}}}return ft.text}}function Ge(Re){return Re==="undefined"}function he(Re){if((k4(Re)||$c(Re)&&W7(Re))&&Re.initializer){let $e=J_(Re.initializer);return!(_e($e)||sM($e)||Ld($e)||gy($e))}return!0}function Oe(Re,$e){let Ke=$e.getSourceFile();return{text:Re,span:Cx($e,Ke),file:Ke.fileName}}}var N9={};d(N9,{getDocCommentTemplateAtPosition:()=>VHt,getJSDocParameterNameCompletionDetails:()=>zHt,getJSDocParameterNameCompletions:()=>WHt,getJSDocTagCompletionDetails:()=>Ext,getJSDocTagCompletions:()=>jHt,getJSDocTagNameCompletionDetails:()=>BHt,getJSDocTagNameCompletions:()=>RHt,getJsDocCommentsFromDeclarations:()=>bxt,getJsDocTagsFromDeclarations:()=>xxt});var gxt=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","import","inheritdoc","inner","instance","interface","kind","lends","license","link","linkcode","linkplain","listens","member","memberof","method","mixes","module","name","namespace","overload","override","package","param","private","prop","property","protected","public","readonly","requires","returns","satisfies","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"],yxt,vxt;function bxt(t,n){let a=[];return cle(t,u=>{for(let m of kie(u)){let g=eD(m)&&m.tags&&jt(m.tags,x=>x.kind===327&&(x.tagName.escapedText==="inheritDoc"||x.tagName.escapedText==="inheritdoc"));if(m.comment===void 0&&!g||eD(m)&&u.kind!==346&&u.kind!==338&&m.tags&&m.tags.some(x=>x.kind===346||x.kind===338)&&!m.tags.some(x=>x.kind===341||x.kind===342))continue;let v=m.comment?wie(m.comment,n):[];g&&g.comment&&(v=v.concat(wie(g.comment,n))),dr(a,v,Sxt)||a.push(v)}}),cr(Nt(a,[zte()]))}function Sxt(t,n){return ho(t,n,(a,u)=>a.kind===u.kind&&a.text===u.text)}function kie(t){switch(t.kind){case 341:case 348:return[t];case 338:case 346:return[t,t.parent];case 323:if(rK(t.parent))return[t.parent.parent];default:return S5(t)}}function xxt(t,n){let a=[];return cle(t,u=>{let m=S3(u);if(!(m.some(g=>g.kind===346||g.kind===338)&&!m.some(g=>g.kind===341||g.kind===342)))for(let g of m)a.push({name:g.tagName.text,text:wxt(g,n)}),a.push(...Cxt(kxt(g),n))}),a}function Cxt(t,n){return za(t,a=>Pl([{name:a.tagName.text,text:wxt(a,n)}],Cxt(kxt(a),n)))}function kxt(t){return vH(t)&&t.isNameFirst&&t.typeExpression&&G5(t.typeExpression.type)?t.typeExpression.type.jsDocPropertyTags:void 0}function wie(t,n){return typeof t=="string"?[Sw(t)]:za(t,a=>a.kind===321?[Sw(a.text)]:UEe(a,n))}function wxt(t,n){let{comment:a,kind:u}=t,m=Txt(u);switch(u){case 349:let x=t.typeExpression;return x?g(x):a===void 0?void 0:wie(a,n);case 329:return g(t.class);case 328:return g(t.class);case 345:let k=t,T=[];if(k.constraint&&T.push(Sw(k.constraint.getText())),Z(k.typeParameters)){Z(T)&&T.push(dg());let A=k.typeParameters[k.typeParameters.length-1];ee(k.typeParameters,M=>{T.push(m(M.getText())),A!==M&&T.push(Bf(28),dg())})}return a&&T.push(dg(),...wie(a,n)),T;case 344:case 350:return g(t.typeExpression);case 346:case 338:case 348:case 341:case 347:let{name:I}=t;return I?g(I):a===void 0?void 0:wie(a,n);default:return a===void 0?void 0:wie(a,n)}function g(x){return v(x.getText())}function v(x){return a?x.match(/^https?$/)?[Sw(x),...wie(a,n)]:[m(x),dg(),...wie(a,n)]:[Sw(x)]}}function Txt(t){switch(t){case 341:return yb;case 348:return tX;case 345:return xw;case 346:case 338:return W0e;default:return Sw}}function RHt(){return yxt||(yxt=$i(gxt,t=>({name:t,kind:"keyword",kindModifiers:"",sortText:IJ.SortText.LocationPriority})))}var BHt=Ext;function jHt(){return vxt||(vxt=$i(gxt,t=>({name:`@${t}`,kind:"keyword",kindModifiers:"",sortText:IJ.SortText.LocationPriority})))}function Ext(t){return{name:t,kind:"",kindModifiers:"",displayParts:[Sw(t)],documentation:F,tags:void 0,codeActions:void 0}}function WHt(t){if(!Ai(t.name))return F;let n=t.name.text,a=t.parent,u=a.parent;return iu(u)?Dc(u.parameters,m=>{if(!Ai(m.name))return;let g=m.name.text;if(!(a.tags.some(v=>v!==t&&hw(v)&&Ai(v.name)&&v.name.escapedText===g)||n!==void 0&&!xl(g,n)))return{name:g,kind:"parameter",kindModifiers:"",sortText:IJ.SortText.LocationPriority}}):[]}function zHt(t){return{name:t,kind:"parameter",kindModifiers:"",displayParts:[Sw(t)],documentation:F,tags:void 0,codeActions:void 0}}function VHt(t,n,a,u){let m=wc(n,a),g=go(m,eD);if(g&&(g.comment!==void 0||Z(g.tags)))return;let v=m.getStart(n);if(!g&&v0;if(U&&!re){let X=$+t+R+" * ",ne=v===a?t+R:"";return{newText:X+t+U+R+K+ne,caretOffset:X.length}}return{newText:$+K,caretOffset:3}}function srt(t,n){let{text:a}=t,u=oC(n,t),m=u;for(;m<=n&&_k(a.charCodeAt(m));m++);return a.slice(u,m)}function xNe(t,n,a,u){return t.map(({name:m,dotDotDotToken:g},v)=>{let x=m.kind===80?m.text:"param"+v;return`${a} * @param ${n?g?"{...any} ":"{any} ":""}${x}${u}`}).join("")}function HHt(t,n){return`${t} * @returns${n}`}function x9e(t,n){return af(t,a=>art(a,n))}function art(t,n){switch(t.kind){case 262:case 218:case 174:case 176:case 173:case 219:let a=t;return{commentOwner:t,parameters:a.parameters,hasReturn:CNe(a,n)};case 303:return art(t.initializer,n);case 263:case 264:case 266:case 306:case 265:return{commentOwner:t};case 171:{let m=t;return m.type&&xp(m.type)?{commentOwner:t,parameters:m.type.parameters,hasReturn:CNe(m.type,n)}:{commentOwner:t}}case 243:{let g=t.declarationList.declarations,v=g.length===1&&g[0].initializer?UHt(g[0].initializer):void 0;return v?{commentOwner:t,parameters:v.parameters,hasReturn:CNe(v,n)}:{commentOwner:t}}case 307:return"quit";case 267:return t.parent.kind===267?void 0:{commentOwner:t};case 244:return art(t.expression,n);case 226:{let m=t;return wh(m)===0?"quit":iu(m.right)?{commentOwner:t,parameters:m.right.parameters,hasReturn:CNe(m.right,n)}:{commentOwner:t}}case 172:let u=t.initializer;if(u&&(yd(u)||Zc(u)))return{commentOwner:t,parameters:u.parameters,hasReturn:CNe(u,n)}}}function CNe(t,n){return!!n?.generateReturnInDocTemplate&&(xp(t)||Zc(t)&&An(t.body)||Rp(t)&&t.body&&qu(t.body)&&!!Gb(t.body,a=>a))}function UHt(t){for(;t.kind===217;)t=t.expression;switch(t.kind){case 218:case 219:return t;case 231:return jt(t.members,yl)}}var C9e={};d(C9e,{mapCode:()=>JHt});function JHt(t,n,a,u,m,g){return Gs.ChangeTracker.with({host:u,formatContext:m,preferences:g},v=>{let x=n.map(T=>kNe(t,T)),k=a&&cr(a);for(let T of x)k9e(t,v,T,k)})}function kNe(t,n){let a=[{parse:()=>AU("__mapcode_content_nodes.ts",n,t.languageVersion,!0,t.scriptKind),body:g=>g.statements},{parse:()=>AU("__mapcode_class_content_nodes.ts",`class __class { +${n} +}`,t.languageVersion,!0,t.scriptKind),body:g=>g.statements[0].members}],u=[];for(let{parse:g,body:v}of a){let x=g(),k=v(x);if(k.length&&x.parseDiagnostics.length===0)return k;k.length&&u.push({sourceFile:x,body:k})}u.sort((g,v)=>g.sourceFile.parseDiagnostics.length-v.sourceFile.parseDiagnostics.length);let{body:m}=u[0];return m}function k9e(t,n,a,u){rl(a[0])||Xh(a[0])?Dxt(t,n,a,u):A9(t,n,a,u)}function Dxt(t,n,a,u){let m;if(!u||!u.length?m=jt(t.statements,ow(bc,ky)):m=ee(u,v=>go(wc(t,v.start),ow(bc,ky))),!m)return;let g=m.members.find(v=>a.some(x=>wNe(x,v)));if(g){let v=mi(m.members,x=>a.some(k=>wNe(k,x)));ee(a,eue),n.replaceNodeRangeWithNodes(t,g,v,a);return}ee(a,eue),n.insertNodesAfter(t,m.members[m.members.length-1],a)}function A9(t,n,a,u){if(!u?.length){n.insertNodesAtEndOfFile(t,a,!1);return}for(let g of u){let v=go(wc(t,g.start),x=>ow(qu,ul)(x)&&En(x.statements,k=>a.some(T=>wNe(T,k))));if(v){let x=v.statements.find(k=>a.some(T=>wNe(T,k)));if(x){let k=mi(v.statements,T=>a.some(I=>wNe(I,T)));ee(a,eue),n.replaceNodeRangeWithNodes(t,x,k,a);return}}}let m=t.statements;for(let g of u){let v=go(wc(t,g.start),qu);if(v){m=v.statements;break}}ee(a,eue),n.insertNodesAfter(t,m[m.length-1],a)}function wNe(t,n){var a,u,m,g,v,x;return t.kind!==n.kind?!1:t.kind===176?t.kind===n.kind:xf(t)&&xf(n)?t.name.getText()===n.name.getText():aM(t)&&aM(n)||xU(t)&&xU(n)?t.expression.getText()===n.expression.getText():QA(t)&&QA(n)?((a=t.initializer)==null?void 0:a.getText())===((u=n.initializer)==null?void 0:u.getText())&&((m=t.incrementor)==null?void 0:m.getText())===((g=n.incrementor)==null?void 0:g.getText())&&((v=t.condition)==null?void 0:v.getText())===((x=n.condition)==null?void 0:x.getText()):Rn(t)&&Rn(n)?t.expression.getText()===n.expression.getText()&&t.initializer.getText()===n.initializer.getText():dL(t)&&dL(n)?t.label.getText()===n.label.getText():t.getText()===n.getText()}function eue(t){w9e(t),t.parent=void 0}function w9e(t){t.pos=-1,t.end=-1,t.forEachChild(w9e)}var P9={};d(P9,{compareImportsOrRequireStatements:()=>sve,compareModuleSpecifiers:()=>nUt,getImportDeclarationInsertionIndex:()=>ZHt,getImportSpecifierInsertionIndex:()=>eUt,getNamedImportSpecifierComparerWithDetection:()=>QHt,getOrganizeImportsStringComparerWithDetection:()=>YHt,organizeImports:()=>qHt,testCoalesceExports:()=>iUt,testCoalesceImports:()=>tUt});function qHt(t,n,a,u,m,g){let v=Gs.ChangeTracker.fromContext({host:a,formatContext:n,preferences:m}),x=g==="SortAndCombine"||g==="All",k=x,T=g==="RemoveUnused"||g==="All",I=t.statements.filter(Dd),A=tue(t,I),{comparersToTest:M,typeOrdersToTest:R}=crt(m),H=M[0],U={moduleSpecifierComparer:typeof m.organizeImportsIgnoreCase=="boolean"?H:void 0,namedImportComparer:typeof m.organizeImportsIgnoreCase=="boolean"?H:void 0,typeOrder:m.organizeImportsTypeOrder};if(typeof m.organizeImportsIgnoreCase!="boolean"&&({comparer:U.moduleSpecifierComparer}=Oxt(A,M)),!U.typeOrder||typeof m.organizeImportsIgnoreCase!="boolean"){let X=D9e(I,M,R);if(X){let{namedImportComparer:ne,typeOrder:se}=X;U.namedImportComparer=U.namedImportComparer??ne,U.typeOrder=U.typeOrder??se}}A.forEach(X=>K(X,U)),g!=="RemoveUnused"&&Ixt(t).forEach(X=>re(X,U.namedImportComparer));for(let X of t.statements.filter(nb)){if(!X.body)continue;if(tue(t,X.body.statements.filter(Dd)).forEach(se=>K(se,U)),g!=="RemoveUnused"){let se=X.body.statements.filter(Qg);re(se,U.namedImportComparer)}}return v.getChanges();function $(X,ne){if(Z(X)===0)return;De(X[0],1024);let se=k?Ks(X,le=>FJ(le.moduleSpecifier)):[X],_e=x?du(se,(le,Ee)=>drt(le[0].moduleSpecifier,Ee[0].moduleSpecifier,U.moduleSpecifierComparer??H)):se,ae=za(_e,le=>FJ(le[0].moduleSpecifier)||le[0].moduleSpecifier===void 0?ne(le):le);if(ae.length===0)v.deleteNodes(t,X,{leadingTriviaOption:Gs.LeadingTriviaOption.Exclude,trailingTriviaOption:Gs.TrailingTriviaOption.Include},!0);else{let le={leadingTriviaOption:Gs.LeadingTriviaOption.Exclude,trailingTriviaOption:Gs.TrailingTriviaOption.Include,suffix:fO(a,n.options)};v.replaceNodeWithNodes(t,X[0],ae,le);let Ee=v.nodeHasTrailingComment(t,X[0],le);v.deleteNodes(t,X.slice(1),{trailingTriviaOption:Gs.TrailingTriviaOption.Include},Ee)}}function K(X,ne){let se=ne.moduleSpecifierComparer??H,_e=ne.namedImportComparer??H,ae=ne.typeOrder??"last",le=Eie({organizeImportsTypeOrder:ae},_e);$(X,xe=>(T&&(xe=Nxt(xe,t,u)),k&&(xe=T9e(xe,se,le,t)),x&&(xe=du(xe,(be,Le)=>sve(be,Le,se))),xe))}function re(X,ne){let se=Eie(m,ne);$(X,_e=>Axt(_e,se))}}function crt(t){return{comparersToTest:typeof t.organizeImportsIgnoreCase=="boolean"?[_rt(t,t.organizeImportsIgnoreCase)]:[_rt(t,!0),_rt(t,!1)],typeOrdersToTest:t.organizeImportsTypeOrder?[t.organizeImportsTypeOrder]:["last","inline","first"]}}function tue(t,n){let a=LA(t.languageVersion,!1,t.languageVariant),u=[],m=0;for(let g of n)u[m]&&$Ht(t,g,a)&&m++,u[m]||(u[m]=[]),u[m].push(g);return u}function $Ht(t,n,a){let u=n.getFullStart(),m=n.getStart();a.setText(t.text,u,m-u);let g=0;for(;a.getTokenStart()=2))return!0;return!1}function Ixt(t){let n=[],a=t.statements,u=Z(a),m=0,g=0;for(;mtue(t,v))}function Nxt(t,n,a){let u=a.getTypeChecker(),m=a.getCompilerOptions(),g=u.getJsxNamespace(n),v=u.getJsxFragmentFactory(n),x=!!(n.transformFlags&2),k=[];for(let I of t){let{importClause:A,moduleSpecifier:M}=I;if(!A){k.push(I);continue}let{name:R,namedBindings:H}=A;if(R&&!T(R)&&(R=void 0),H)if(ZE(H))T(H.name)||(H=void 0);else{let U=H.elements.filter($=>T($.name));U.length{if(v.attributes){let x=v.attributes.token+" ";for(let k of du(v.attributes.elements,(T,I)=>Jg(T.name.text,I.name.text)))x+=k.name.text+":",x+=i_(k.value)?`"${k.value.text}"`:k.value.getText()+" ";return x}return""}),g=[];for(let v in m){let x=m[v],{importWithoutClause:k,typeOnlyImports:T,regularImports:I}=lrt(x);k&&g.push(k);for(let A of[I,T]){let M=A===T,{defaultImports:R,namespaceImports:H,namedImports:U}=A;if(!M&&R.length===1&&H.length===1&&U.length===0){let le=R[0];g.push(Tie(le,le.importClause.name,H[0].importClause.namedBindings));continue}let $=du(H,(le,Ee)=>n(le.importClause.namedBindings.name.text,Ee.importClause.namedBindings.name.text));for(let le of $)g.push(Tie(le,void 0,le.importClause.namedBindings));let K=Ed(R),re=Ed(U),X=K??re;if(!X)continue;let ne,se=[];if(R.length===1)ne=R[0].importClause.name;else for(let le of R)se.push(Me.createImportSpecifier(!1,Me.createIdentifier("default"),le.importClause.name));se.push(...Pxt(U));let _e=Me.createNodeArray(du(se,a),re?.importClause.namedBindings.elements.hasTrailingComma),ae=_e.length===0?ne?void 0:Me.createNamedImports(F):re?Me.updateNamedImports(re.importClause.namedBindings,_e):Me.createNamedImports(_e);u&&ae&&re?.importClause.namedBindings&&!F8(re.importClause.namedBindings,u)&&De(ae,2),M&&ne&&ae?(g.push(Tie(X,ne,void 0)),g.push(Tie(re??X,void 0,ae))):g.push(Tie(X,ne,ae))}}return g}function Axt(t,n){if(t.length===0)return t;let{exportWithoutClause:a,namedExports:u,typeOnlyExports:m}=v(t),g=[];a&&g.push(a);for(let x of[u,m]){if(x.length===0)continue;let k=[];k.push(...za(x,A=>A.exportClause&&QT(A.exportClause)?A.exportClause.elements:F));let T=du(k,n),I=x[0];g.push(Me.updateExportDeclaration(I,I.modifiers,I.isTypeOnly,I.exportClause&&(QT(I.exportClause)?Me.updateNamedExports(I.exportClause,T):Me.updateNamespaceExport(I.exportClause,I.exportClause.name)),I.moduleSpecifier,I.attributes))}return g;function v(x){let k,T=[],I=[];for(let A of x)A.exportClause===void 0?k=k||A:A.isTypeOnly?I.push(A):T.push(A);return{exportWithoutClause:k,namedExports:T,typeOnlyExports:I}}}function Tie(t,n,a){return Me.updateImportDeclaration(t,t.modifiers,Me.updateImportClause(t.importClause,t.importClause.isTypeOnly,n,a),t.moduleSpecifier,t.attributes)}function urt(t,n,a,u){switch(u?.organizeImportsTypeOrder){case"first":return QI(n.isTypeOnly,t.isTypeOnly)||a(t.name.text,n.name.text);case"inline":return a(t.name.text,n.name.text);default:return QI(t.isTypeOnly,n.isTypeOnly)||a(t.name.text,n.name.text)}}function drt(t,n,a){let u=t===void 0?void 0:FJ(t),m=n===void 0?void 0:FJ(n);return QI(u===void 0,m===void 0)||QI(l0(u),l0(m))||a(u,m)}function GHt(t){return t.map(n=>FJ(E9e(n))||"")}function E9e(t){var n;switch(t.kind){case 271:return(n=ac(t.moduleReference,Zg))==null?void 0:n.expression;case 272:return t.moduleSpecifier;case 243:return t.declarationList.declarations[0].initializer.arguments[0]}}function frt(t,n){let a=Kf(n)&&n.text;return Yu(a)&&En(t.moduleAugmentations,u=>Kf(u)&&u.text===a)}function Pxt(t){return za(t,n=>$i(Lxt(n),a=>a.name&&a.propertyName&&x8(a.name)===x8(a.propertyName)?Me.updateImportSpecifier(a,a.isTypeOnly,void 0,a.name):a))}function Lxt(t){var n;return(n=t.importClause)!=null&&n.namedBindings&&_p(t.importClause.namedBindings)?t.importClause.namedBindings.elements:void 0}function Oxt(t,n){let a=[];return t.forEach(u=>{a.push(GHt(u))}),Fxt(a,n)}function D9e(t,n,a){let u=!1,m=t.filter(k=>{var T,I;let A=(I=ac((T=k.importClause)==null?void 0:T.namedBindings,_p))==null?void 0:I.elements;return A?.length?(!u&&A.some(M=>M.isTypeOnly)&&A.some(M=>!M.isTypeOnly)&&(u=!0),!0):!1});if(m.length===0)return;let g=m.map(k=>{var T,I;return(I=ac((T=k.importClause)==null?void 0:T.namedBindings,_p))==null?void 0:I.elements}).filter(k=>k!==void 0);if(!u||a.length===0){let k=Fxt(g.map(T=>T.map(I=>I.name.text)),n);return{namedImportComparer:k.comparer,typeOrder:a.length===1?a[0]:void 0,isSorted:k.isSorted}}let v={first:1/0,last:1/0,inline:1/0},x={first:n[0],last:n[0],inline:n[0]};for(let k of n){let T={first:0,last:0,inline:0};for(let I of g)for(let A of a)T[A]=(T[A]??0)+rve(I,(M,R)=>urt(M,R,k,{organizeImportsTypeOrder:A}));for(let I of a){let A=I;T[A]0&&a++;return a}function Fxt(t,n){let a,u=1/0;for(let m of n){let g=0;for(let v of t){if(v.length<=1)continue;let x=rve(v,m);g+=x}gurt(u,m,a,t)}function QHt(t,n,a){let{comparersToTest:u,typeOrdersToTest:m}=crt(n),g=D9e([t],u,m),v=Eie(n,u[0]),x;if(typeof n.organizeImportsIgnoreCase!="boolean"||!n.organizeImportsTypeOrder){if(g){let{namedImportComparer:k,typeOrder:T,isSorted:I}=g;x=I,v=Eie({organizeImportsTypeOrder:T},k)}else if(a){let k=D9e(a.statements.filter(Dd),u,m);if(k){let{namedImportComparer:T,typeOrder:I,isSorted:A}=k;x=A,v=Eie({organizeImportsTypeOrder:I},T)}}}return{specifierComparer:v,isSorted:x}}function ZHt(t,n,a){let u=Q_(t,n,ps,(m,g)=>sve(m,g,a));return u<0?~u:u}function eUt(t,n,a){let u=Q_(t,n,ps,a);return u<0?~u:u}function sve(t,n,a){return drt(E9e(t),E9e(n),a)||KHt(t,n)}function tUt(t,n,a,u){let m=TNe(n),g=Eie({organizeImportsTypeOrder:u?.organizeImportsTypeOrder},m);return T9e(t,m,g,a)}function iUt(t,n,a){return Axt(t,(m,g)=>urt(m,g,TNe(n),{organizeImportsTypeOrder:a?.organizeImportsTypeOrder??"last"}))}function nUt(t,n,a){let u=TNe(!!a);return drt(t,n,u)}var N9e={};d(N9e,{collectElements:()=>Mxt});function Mxt(t,n){let a=[];return prt(t,n,a),Rxt(t,a),a.sort((u,m)=>u.textSpan.start-m.textSpan.start),a}function prt(t,n,a){let u=40,m=0,g=[...t.statements,t.endOfFileToken],v=g.length;for(;m1&&u.push(JM(g,v,"comment"))}}function DNe(t,n,a,u){nW(t)||mrt(t.pos,n,a,u)}function JM(t,n,a){return MX(cg(t,n),a)}function rUt(t,n){switch(t.kind){case 241:if(iu(t.parent))return INe(t.parent,t,n);switch(t.parent.kind){case 246:case 249:case 250:case 248:case 245:case 247:case 254:case 299:return I(t.parent);case 258:let R=t.parent;if(R.tryBlock===t)return I(t.parent);if(R.finallyBlock===t){let H=Np(R,98,n);if(H)return I(H)}default:return MX(Cx(t,n),"code")}case 268:return I(t.parent);case 263:case 231:case 264:case 266:case 269:case 187:case 206:return I(t);case 189:return I(t,!1,!G8(t.parent),23);case 296:case 297:return A(t.statements);case 210:return T(t);case 209:return T(t,23);case 284:return g(t);case 288:return v(t);case 285:case 286:return x(t.attributes);case 228:case 15:return k(t);case 207:return I(t,!1,!Zd(t.parent),23);case 219:return m(t);case 213:return u(t);case 217:return M(t);case 275:case 279:case 300:return a(t)}function a(R){if(!R.elements.length)return;let H=Np(R,19,n),U=Np(R,20,n);if(!(!H||!U||sv(H.pos,U.pos,n)))return A9e(H,U,R,n,!1,!1)}function u(R){if(!R.arguments.length)return;let H=Np(R,21,n),U=Np(R,22,n);if(!(!H||!U||sv(H.pos,U.pos,n)))return A9e(H,U,R,n,!1,!0)}function m(R){if(qu(R.body)||Tu(R.body)||sv(R.body.getFullStart(),R.body.getEnd(),n))return;let H=cg(R.body.getFullStart(),R.body.getEnd());return MX(H,"code",Cx(R))}function g(R){let H=cg(R.openingElement.getStart(n),R.closingElement.getEnd()),U=R.openingElement.tagName.getText(n),$="<"+U+">...";return MX(H,"code",H,!1,$)}function v(R){let H=cg(R.openingFragment.getStart(n),R.closingFragment.getEnd());return MX(H,"code",H,!1,"<>...")}function x(R){if(R.properties.length!==0)return JM(R.getStart(n),R.getEnd(),"code")}function k(R){if(!(R.kind===15&&R.text.length===0))return JM(R.getStart(n),R.getEnd(),"code")}function T(R,H=19){return I(R,!1,!Yg(R.parent)&&!Od(R.parent),H)}function I(R,H=!1,U=!0,$=19,K=$===19?20:24){let re=Np(t,$,n),X=Np(t,K,n);return re&&X&&A9e(re,X,R,n,H,U)}function A(R){return R.length?MX(q4(R),"code"):void 0}function M(R){if(sv(R.getStart(),R.getEnd(),n))return;let H=cg(R.getStart(),R.getEnd());return MX(H,"code",Cx(R))}}function INe(t,n,a){let u=oUt(t,n,a),m=Np(n,20,a);return u&&m&&A9e(u,m,t,a,t.kind!==219)}function A9e(t,n,a,u,m=!1,g=!0){let v=cg(g?t.getFullStart():t.getStart(u),n.getEnd());return MX(v,"code",Cx(a,u),m)}function MX(t,n,a=t,u=!1,m="..."){return{textSpan:t,kind:n,hintSpan:a,bannerText:m,autoCollapse:u}}function oUt(t,n,a){if(M8(t.parameters,a)){let u=Np(t,21,a);if(u)return u}return Np(n,19,a)}var NNe={};d(NNe,{getRenameInfo:()=>jxt,nodeIsEligibleForRename:()=>Vxt});function jxt(t,n,a,u){let m=w0e(VS(n,a));if(Vxt(m)){let g=sUt(m,t.getTypeChecker(),n,t,u);if(g)return g}return L9e(j.You_cannot_rename_this_element)}function sUt(t,n,a,u,m){let g=n.getSymbolAtLocation(t);if(!g){if(i_(t)){let M=REe(t,n);if(M&&(M.flags&128||M.flags&1048576&&Yt(M.types,R=>!!(R.flags&128))))return Die(t.text,t.text,"string","",t,a)}else if(GK(t)){let M=_h(t);return Die(M,M,"label","",t,a)}return}let{declarations:v}=g;if(!v||v.length===0)return;if(v.some(M=>hrt(u,M)))return L9e(j.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(Ai(t)&&t.escapedText==="default"&&g.parent&&g.parent.flags&1536)return;if(i_(t)&&wj(t))return m.allowRenameOfImportPath?zxt(t,a,g):void 0;let x=P9e(a,g,n,m);if(x)return L9e(x);let k=mO.getSymbolKind(n,g,t),T=nX(t)||Xb(t)&&t.parent.kind===167?B2(jC(t)):void 0,I=T||n.symbolToString(g),A=T||n.getFullyQualifiedName(g);return Die(I,A,k,mO.getSymbolModifiers(n,g),t,a)}function hrt(t,n){let a=n.getSourceFile();return t.isSourceFileDefaultLibrary(a)&&Wh(a.fileName,".d.ts")}function P9e(t,n,a,u){if(!u.providePrefixAndSuffixTextForRename&&n.flags&2097152){let v=n.declarations&&jt(n.declarations,x=>eg(x));v&&!v.propertyName&&(n=a.getAliasedSymbol(n))}let{declarations:m}=n;if(!m)return;let g=Wxt(t.path);if(g===void 0)return En(m,v=>cX(v.getSourceFile().path))?j.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(let v of m){let x=Wxt(v.getSourceFile().path);if(x){let k=Math.min(g.length,x.length);for(let T=0;T<=k;T++)if(Jg(g[T],x[T])!==0)return j.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}function Wxt(t){let n=Uv(t),a=n.lastIndexOf("node_modules");if(a!==-1)return n.slice(0,a+2)}function zxt(t,n,a){if(!l0(t.text))return L9e(j.You_cannot_rename_a_module_via_a_global_import);let u=a.declarations&&jt(a.declarations,ul);if(!u)return;let m=xh(t.text,"/index")||xh(t.text,"/index.js")?void 0:fCe(Qx(u.fileName),"/index"),g=m===void 0?u.fileName:m,v=m===void 0?"module":"directory",x=t.text.lastIndexOf("/")+1,k=h1(t.getStart(n)+1+x,t.text.length-x);return{canRename:!0,fileToRename:g,kind:v,displayName:g,fullDisplayName:t.text,kindModifiers:"",triggerSpan:k}}function Die(t,n,a,u,m,g){return{canRename:!0,fileToRename:void 0,kind:a,displayName:t,fullDisplayName:n,kindModifiers:u,triggerSpan:aUt(m,g)}}function L9e(t){return{canRename:!1,localizedErrorMessage:ed(t)}}function aUt(t,n){let a=t.getStart(n),u=t.getWidth(n);return i_(t)&&(a+=1,u-=2),h1(a,u)}function Vxt(t){switch(t.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return Ate(t);default:return!1}}var ave={};d(ave,{getArgumentInfoForCompletions:()=>uUt,getSignatureHelpItems:()=>Hxt});function Hxt(t,n,a,u,m){let g=t.getTypeChecker(),v=ele(n,a);if(!v)return;let x=!!u&&u.kind==="characterTyped";if(x&&(JW(n,a,v)||U4(n,a)))return;let k=!!u&&u.kind==="invoked",T=ANe(v,a,n,g,k);if(!T)return;m.throwIfCancellationRequested();let I=cUt(T,g,n,v,x);return m.throwIfCancellationRequested(),I?g.runWithCancellationToken(m,A=>I.kind===0?eCt(I.candidates,I.resolvedSignature,T,n,A):yUt(I.symbol,T,n,A)):$v(n)?lUt(T,t,m):void 0}function cUt({invocation:t,argumentCount:n},a,u,m,g){switch(t.kind){case 0:{if(g&&!Uxt(m,t.node,u))return;let v=[],x=a.getResolvedSignatureForSignatureHelp(t.node,v,n);return v.length===0?void 0:{kind:0,candidates:v,resolvedSignature:x}}case 1:{let{called:v}=t;if(g&&!grt(m,u,Ai(v)?v.parent:v))return;let x=E0e(v,n,a);if(x.length!==0)return{kind:0,candidates:x,resolvedSignature:of(x)};let k=a.getSymbolAtLocation(v);return k&&{kind:1,symbol:k}}case 2:return{kind:0,candidates:[t.signature],resolvedSignature:t.signature};default:return Se.assertNever(t)}}function Uxt(t,n,a){if(!WE(n))return!1;let u=n.getChildren(a);switch(t.kind){case 21:return dr(u,t);case 28:{let m=aJ(t);return!!m&&dr(u,m)}case 30:return grt(t,a,n.expression);default:return!1}}function lUt(t,n,a){if(t.invocation.kind===2)return;let u=Qxt(t.invocation),m=ba(u)?u.name.text:void 0,g=n.getTypeChecker();return m===void 0?void 0:Je(n.getSourceFiles(),v=>Je(v.getNamedDeclarations().get(m),x=>{let k=x.symbol&&g.getTypeOfSymbolAtLocation(x.symbol,x),T=k&&k.getCallSignatures();if(T&&T.length)return g.runWithCancellationToken(a,I=>eCt(T,T[0],t,v,I,!0))}))}function grt(t,n,a){let u=t.getFullStart(),m=t.parent;for(;m;){let g=p0(u,n,m,!0);if(g)return bw(a,g);m=m.parent}return Se.fail("Could not find preceding token")}function uUt(t,n,a,u){let m=Jxt(t,n,a,u);return!m||m.isTypeParameterList||m.invocation.kind!==0?void 0:{invocation:m.invocation.node,argumentCount:m.argumentCount,argumentIndex:m.argumentIndex}}function yrt(t,n,a,u){let m=vrt(t,a,u);if(!m)return;let{list:g,argumentIndex:v}=m,x=hUt(u,g),k=Kxt(g,a);return{list:g,argumentIndex:v,argumentCount:x,argumentsSpan:k}}function vrt(t,n,a){if(t.kind===30||t.kind===21)return{list:Yxt(t.parent,t,n),argumentIndex:0};{let u=aJ(t);return u&&{list:u,argumentIndex:Srt(a,u,t)}}}function Jxt(t,n,a,u){let{parent:m}=t;if(WE(m)){let g=m,v=yrt(t,n,a,u);if(!v)return;let{list:x,argumentIndex:k,argumentCount:T,argumentsSpan:I}=v;return{isTypeParameterList:!!m.typeArguments&&m.typeArguments.pos===x.pos,invocation:{kind:0,node:g},argumentsSpan:I,argumentIndex:k,argumentCount:T}}else{if(z5(t)&&Kv(m))return nle(t,n,a)?xrt(m,0,a):void 0;if(nM(t)&&m.parent.kind===215){let g=m,v=g.parent;Se.assert(g.kind===228);let x=nle(t,n,a)?0:1;return xrt(v,x,a)}else if(Og(m)&&Kv(m.parent.parent)){let g=m,v=m.parent.parent;if(rW(t)&&!nle(t,n,a))return;let x=g.parent.templateSpans.indexOf(g),k=gUt(x,t,n,a);return xrt(v,k,a)}else if(nv(m)){let g=m.attributes.pos,v=fd(a.text,m.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:m},argumentsSpan:h1(g,v-g),argumentIndex:0,argumentCount:1}}else{let g=YK(t,a);if(g){let{called:v,nTypeArguments:x}=g,k={kind:1,called:v},T=cg(v.getStart(a),t.end);return{isTypeParameterList:!0,invocation:k,argumentsSpan:T,argumentIndex:x,argumentCount:x+1}}return}}}function dUt(t,n,a,u){return fUt(t,n,a,u)||Jxt(t,n,a,u)}function qxt(t){return ms(t.parent)?qxt(t.parent):t}function brt(t){return ms(t.left)?brt(t.left)+1:2}function fUt(t,n,a,u){let m=_Ut(t);if(m===void 0)return;let g=pUt(m,a,n,u);if(g===void 0)return;let{contextualType:v,argumentIndex:x,argumentCount:k,argumentsSpan:T}=g,I=v.getNonNullableType(),A=I.symbol;if(A===void 0)return;let M=Y_(I.getCallSignatures());return M===void 0?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:M,node:t,symbol:$xt(A)},argumentsSpan:T,argumentIndex:x,argumentCount:k}}function _Ut(t){switch(t.kind){case 21:case 28:return t;default:return go(t.parent,n=>Fl(n)?!0:Zd(n)||fb(n)||QE(n)?!1:"quit")}}function pUt(t,n,a,u){let{parent:m}=t;switch(m.kind){case 217:case 174:case 218:case 219:let g=yrt(t,a,n,u);if(!g)return;let{argumentIndex:v,argumentCount:x,argumentsSpan:k}=g,T=Sg(m)?u.getContextualTypeForObjectLiteralElement(m):u.getContextualType(m);return T&&{contextualType:T,argumentIndex:v,argumentCount:x,argumentsSpan:k};case 226:{let I=qxt(m),A=u.getContextualType(I),M=t.kind===21?0:brt(m)-1,R=brt(I);return A&&{contextualType:A,argumentIndex:M,argumentCount:R,argumentsSpan:Cx(m)}}default:return}}function $xt(t){return t.name==="__type"&&Je(t.declarations,n=>{var a;return xp(n)?(a=ac(n.parent,$x))==null?void 0:a.symbol:void 0})||t}function mUt(t,n){let a=n.getTypeAtLocation(t.expression);if(n.isTupleType(a)){let{elementFlags:u,fixedLength:m}=a.target;if(m===0)return 0;let g=_n(u,v=>!(v&1));return g<0?m:g}return 0}function Srt(t,n,a){return Gxt(t,n,a)}function hUt(t,n){return Gxt(t,n,void 0)}function Gxt(t,n,a){let u=n.getChildren(),m=0,g=!1;for(let v of u){if(a&&v===a)return!g&&v.kind===28&&m++,m;if(yx(v)){m+=mUt(v,t),g=!0;continue}if(v.kind!==28){m++,g=!0;continue}if(g){g=!1;continue}m++}return a?m:u.length&&Bu(u).kind===28?m+1:m}function gUt(t,n,a,u){return Se.assert(a>=n.getStart(),"Assumed 'position' could not occur before node."),wpe(n)?nle(n,a,u)?0:t+2:t+1}function xrt(t,n,a){let u=z5(t.template)?1:t.template.templateSpans.length+1;return n!==0&&Se.assertLessThan(n,u),{isTypeParameterList:!1,invocation:{kind:0,node:t},argumentsSpan:Xxt(t,a),argumentIndex:n,argumentCount:u}}function Kxt(t,n){let a=t.getFullStart(),u=fd(n.text,t.getEnd(),!1);return h1(a,u-a)}function Xxt(t,n){let a=t.template,u=a.getStart(),m=a.getEnd();return a.kind===228&&Bu(a.templateSpans).literal.getFullWidth()===0&&(m=fd(n.text,m,!1)),h1(u,m-u)}function ANe(t,n,a,u,m){for(let g=t;!ul(g)&&(m||!qu(g));g=g.parent){Se.assert(bw(g.parent,g),"Not a subspan",()=>`Child: ${Se.formatSyntaxKind(g.kind)}, parent: ${Se.formatSyntaxKind(g.parent.kind)}`);let v=dUt(g,n,a,u);if(v)return v}}function Yxt(t,n,a){let u=t.getChildren(a),m=u.indexOf(n);return Se.assert(m>=0&&u.length>m+1),u[m+1]}function Qxt(t){return t.kind===0?EH(t.node):t.called}function Zxt(t){return t.kind===0?t.node:t.kind===1?t.called:t.node}var cve=70246400;function eCt(t,n,{isTypeParameterList:a,argumentCount:u,argumentsSpan:m,invocation:g,argumentIndex:v},x,k,T){var I;let A=Zxt(g),M=g.kind===2?g.symbol:k.getSymbolAtLocation(Qxt(g))||T&&((I=n.declaration)==null?void 0:I.symbol),R=M?TN(k,M,T?x:void 0,void 0):F,H=$i(t,X=>bUt(X,R,a,k,A,x)),U=0,$=0;for(let X=0;X1)){let se=0;for(let _e of ne){if(_e.isVariadic||_e.parameters.length>=u){U=$+se;break}se++}}$+=ne.length}Se.assert(U!==-1);let K={items:Uc(H,ps),applicableSpan:m,selectedItemIndex:U,argumentIndex:v,argumentCount:u},re=K.items[U];if(re.isVariadic){let X=_n(re.parameters,ne=>!!ne.isRest);-1nCt(A,a,u,m,v)),k=t.getDocumentationComment(a),T=t.getJsDocTags(a);return{isVariadic:!1,prefixDisplayParts:[...g,Bf(30)],suffixDisplayParts:[Bf(32)],separatorDisplayParts:tCt,parameters:x,documentation:k,tags:T}}var tCt=[Bf(28),dg()];function bUt(t,n,a,u,m,g){let v=(a?O9e:SUt)(t,u,m,g);return $i(v,({isVariadic:x,parameters:k,prefix:T,suffix:I})=>{let A=[...n,...T],M=[...I,...iCt(t,m,u)],R=t.getDocumentationComment(u),H=t.getJsDocTags();return{isVariadic:x,prefixDisplayParts:A,suffixDisplayParts:M,separatorDisplayParts:tCt,parameters:k,documentation:R,tags:H}})}function iCt(t,n,a){return Cw(u=>{u.writePunctuation(":"),u.writeSpace(" ");let m=a.getTypePredicateOfSignature(t);m?a.writeTypePredicate(m,n,void 0,u):a.writeType(a.getReturnTypeOfSignature(t),n,void 0,u)})}function O9e(t,n,a,u){let m=(t.target||t).typeParameters,g=dF(),v=(m||F).map(k=>nCt(k,n,a,u,g)),x=t.thisParameter?[n.symbolToParameterDeclaration(t.thisParameter,a,cve)]:[];return n.getExpandedParameters(t).map(k=>{let T=Me.createNodeArray([...x,...$i(k,A=>n.symbolToParameterDeclaration(A,a,cve))]),I=Cw(A=>{g.writeList(2576,T,u,A)});return{isVariadic:!1,parameters:v,prefix:[Bf(30)],suffix:[Bf(32),...I]}})}function SUt(t,n,a,u){let m=dF(),g=Cw(k=>{if(t.typeParameters&&t.typeParameters.length){let T=Me.createNodeArray(t.typeParameters.map(I=>n.typeParameterToDeclaration(I,a,cve)));m.writeList(53776,T,u,k)}}),v=n.getExpandedParameters(t),x=n.hasEffectiveRestParameter(t)?v.length===1?k=>!0:k=>{var T;return!!(k.length&&((T=ac(k[k.length-1],m4))==null?void 0:T.links.checkFlags)&32768)}:k=>!1;return v.map(k=>({isVariadic:x(k),parameters:k.map(T=>xUt(T,n,a,u,m)),prefix:[...g,Bf(21)],suffix:[Bf(22)]}))}function xUt(t,n,a,u,m){let g=Cw(k=>{let T=n.symbolToParameterDeclaration(t,a,cve);m.writeNode(4,T,u,k)}),v=n.isOptionalParameter(t.valueDeclaration),x=m4(t)&&!!(t.links.checkFlags&32768);return{name:t.name,documentation:t.getDocumentationComment(n),displayParts:g,isOptional:v,isRest:x}}function nCt(t,n,a,u,m){let g=Cw(v=>{let x=n.typeParameterToDeclaration(t,a,cve);m.writeNode(4,x,u,v)});return{name:t.symbol.name,documentation:t.symbol.getDocumentationComment(n),displayParts:g,isOptional:!1,isRest:!1}}var F9e={};d(F9e,{getSmartSelectionRange:()=>lve});function lve(t,n){var a,u;let m={textSpan:cg(n.getFullStart(),n.getEnd())},g=n;e:for(;;){let k=CUt(g);if(!k.length)break;for(let T=0;Tt)break e;let R=vp(L6(n.text,A.end));if(R&&R.kind===2&&x(R.pos,R.end),M9e(n,t,A)){if(x3(A)&&Rp(g)&&!sv(A.getStart(n),A.getEnd(),n)&&v(A.getStart(n),A.getEnd()),qu(A)||Og(A)||nM(A)||rW(A)||I&&nM(I)||Xv(A)&&Zh(g)||iC(A)&&Xv(g)||$c(A)&&iC(g)&&k.length===1||lv(A)||U2(A)||G5(A)){g=A;break}if(Og(g)&&M&&P7(M)){let K=A.getFullStart()-2,re=M.getStart()+1;v(K,re)}let H=iC(A)&&rCt(I)&&oCt(M)&&!sv(I.getStart(),M.getStart(),n),U=H?I.getEnd():A.getStart(),$=H?M.getStart():sCt(n,A);if(Gx(A)&&((a=A.jsDoc)!=null&&a.length)&&v(of(A.jsDoc).getStart(),$),iC(A)){let K=A.getChildren()[0];K&&Gx(K)&&((u=K.jsDoc)!=null&&u.length)&&K.getStart()!==A.pos&&(U=Math.min(U,of(K.jsDoc).getStart()))}v(U,$),(Kf(A)||y8(A))&&v(U+1,$-1),g=A;break}if(T===k.length-1)break e}}return m;function v(k,T){if(k!==T){let I=cg(k,T);(!m||!ez(I,m.textSpan)&&sZ(I,t))&&(m={textSpan:I,...m&&{parent:m}})}}function x(k,T){v(k,T);let I=k;for(;n.text.charCodeAt(I)===47;)I++;v(I,T)}}function M9e(t,n,a){return Se.assert(a.pos<=n),nx===t.readonlyToken||x.kind===148||x===t.questionToken||x.kind===58),v=dve(g,({kind:x})=>x===23||x===168||x===24);return[a,NN(R9e(v,({kind:x})=>x===59)),m]}if(hx(t)){let a=dve(t.getChildren(),v=>v===t.name||dr(t.modifiers,v)),u=((n=a[0])==null?void 0:n.kind)===320?a[0]:void 0,m=u?a.slice(1):a,g=R9e(m,({kind:v})=>v===59);return u?[u,NN(g)]:g}if(Fl(t)){let a=dve(t.getChildren(),m=>m===t.dotDotDotToken||m===t.name),u=dve(a,m=>m===a[0]||m===t.questionToken);return R9e(u,({kind:m})=>m===64)}return Zd(t)?R9e(t.getChildren(),({kind:a})=>a===64):t.getChildren()}function dve(t,n){let a=[],u;for(let m of t)n(m)?(u=u||[],u.push(m)):(u&&(a.push(NN(u)),u=void 0),a.push(m));return u&&a.push(NN(u)),a}function R9e(t,n,a=!0){if(t.length<2)return t;let u=_n(t,n);if(u===-1)return t;let m=t.slice(0,u),g=t[u],v=Bu(t),x=a&&v.kind===27,k=t.slice(u+1,x?t.length-1:void 0),T=no([m.length?NN(m):void 0,g,k.length?NN(k):void 0]);return x?T.concat(v):T}function NN(t){return Se.assertGreaterThanOrEqual(t.length,1),KT(mL.createSyntaxList(t),t[0].pos,Bu(t).end)}function rCt(t){let n=t&&t.kind;return n===19||n===23||n===21||n===286}function oCt(t){let n=t&&t.kind;return n===20||n===24||n===22||n===287}function sCt(t,n){switch(n.kind){case 341:case 338:case 348:case 346:case 343:return t.getLineEndOfPosition(n.getStart());default:return n.getEnd()}}var mO={};d(mO,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>Trt,getSymbolKind:()=>Crt,getSymbolModifiers:()=>na});var aCt=70246400;function Crt(t,n,a){let u=cCt(t,n,a);if(u!=="")return u;let m=R8(n);return m&32?Kp(n,231)?"local class":"class":m&384?"enum":m&524288?"type":m&64?"interface":m&262144?"type parameter":m&8?"enum member":m&2097152?"alias":m&1536?"module":u}function cCt(t,n,a){let u=t.getRootSymbols(n);if(u.length===1&&of(u).flags&8192&&t.getTypeOfSymbolAtLocation(n,a).getNonNullableType().getCallSignatures().length!==0)return"method";if(t.isUndefinedSymbol(n))return"var";if(t.isArgumentsSymbol(n))return"local var";if(a.kind===110&&An(a)||L8(a))return"parameter";let m=R8(n);if(m&3)return Wte(n)?"parameter":n.valueDeclaration&&W7(n.valueDeclaration)?"const":n.valueDeclaration&&pj(n.valueDeclaration)?"using":n.valueDeclaration&&q6(n.valueDeclaration)?"await using":ee(n.declarations,p5)?"let":Ert(n)?"local var":"var";if(m&16)return Ert(n)?"local function":"function";if(m&32768)return"getter";if(m&65536)return"setter";if(m&8192)return"method";if(m&16384)return"constructor";if(m&131072)return"index";if(m&4){if(m&33554432&&n.links.checkFlags&6){let g=ee(t.getRootSymbols(n),v=>{if(v.getFlags()&98311)return"property"});return g||(t.getTypeOfSymbolAtLocation(n,a).getCallSignatures().length?"method":"property")}return"property"}return""}function krt(t){if(t.declarations&&t.declarations.length){let[n,...a]=t.declarations,u=Z(a)&&uX(n)&&En(a,g=>!uX(g))?65536:0,m=QK(n,u);if(m)return m.split(",")}return[]}function na(t,n){if(!n)return"";let a=new Set(krt(n));if(n.flags&2097152){let u=t.getAliasedSymbol(n);u!==n&&ee(krt(u),m=>{a.add(m)})}return n.flags&16777216&&a.add("optional"),a.size>0?tc(a.values()).join(","):""}function wrt(t,n,a,u,m,g,v,x){var k;let T=[],I=[],A=[],M=R8(n),R=v&1?cCt(t,n,m):"",H=!1,U=m.kind===110&&NZ(m)||L8(m),$,K,re=!1;if(m.kind===110&&!U)return{displayParts:[Qm(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(R!==""||M&32||M&2097152){if(R==="getter"||R==="setter"){let we=jt(n.declarations,Ae=>Ae.name===m);if(we)switch(we.kind){case 177:R="getter";break;case 178:R="setter";break;case 172:R="accessor";break;default:Se.assertNever(we)}else R="property"}let Le;if(g??(g=U?t.getTypeAtLocation(m):t.getTypeOfSymbolAtLocation(n,m)),m.parent&&m.parent.kind===211){let we=m.parent.name;(we===m||we&&we.getFullWidth()===0)&&(m=m.parent)}let fe;if(WE(m)?fe=m:(L7e(m)||Gce(m)||m.parent&&(nv(m.parent)||Kv(m.parent))&&iu(n.valueDeclaration))&&(fe=m.parent),fe){Le=t.getResolvedSignature(fe);let we=fe.kind===214||Od(fe)&&fe.expression.kind===108,Ae=we?g.getConstructSignatures():g.getCallSignatures();if(Le&&!dr(Ae,Le.target)&&!dr(Ae,Le)&&(Le=Ae.length?Ae[0]:void 0),Le){switch(we&&M&32?(R="constructor",le(g.symbol,R)):M&2097152?(R="alias",Ee(R),T.push(dg()),we&&(Le.flags&4&&(T.push(Qm(128)),T.push(dg())),T.push(Qm(105)),T.push(dg())),ae(n)):le(n,R),R){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":T.push(Bf(59)),T.push(dg()),!(Ls(g)&16)&&g.symbol&&(Ho(T,TN(t,g.symbol,u,void 0,5)),T.push(zte())),we&&(Le.flags&4&&(T.push(Qm(128)),T.push(dg())),T.push(Qm(105)),T.push(dg())),xe(Le,Ae,262144);break;default:xe(Le,Ae)}H=!0,re=Ae.length>1}}else if(Yce(m)&&!(M&98304)||m.kind===137&&m.parent.kind===176){let we=m.parent;if(n.declarations&&jt(n.declarations,Ge=>Ge===(m.kind===137?we.parent:we))){let Ge=we.kind===176?g.getNonNullableType().getConstructSignatures():g.getNonNullableType().getCallSignatures();t.isImplementationOfOverload(we)?Le=Ge[0]:Le=t.getSignatureFromDeclaration(we),we.kind===176?(R="constructor",le(g.symbol,R)):le(we.kind===179&&!(g.symbol.flags&2048||g.symbol.flags&4096)?g.symbol:n,R),Le&&xe(Le,Ge),H=!0,re=Ge.length>1}}}if(M&32&&!H&&!U&&(se(),Kp(n,231)?Ee("local class"):T.push(Qm(86)),T.push(dg()),ae(n),be(n,a)),M&64&&v&2&&(ne(),T.push(Qm(120)),T.push(dg()),ae(n),be(n,a)),M&524288&&v&2&&(ne(),T.push(Qm(156)),T.push(dg()),ae(n),be(n,a),T.push(dg()),T.push(sS(64)),T.push(dg()),Ho(T,MM(t,m.parent&&Jx(m.parent)?t.getTypeAtLocation(m.parent):t.getDeclaredTypeOfSymbol(n),u,8388608))),M&384&&(ne(),En(n.declarations,Le=>Z8(Le)&&jy(Le))&&(T.push(Qm(87)),T.push(dg())),T.push(Qm(94)),T.push(dg()),ae(n)),M&1536&&!U){ne();let Le=Kp(n,267),fe=Le&&Le.name&&Le.name.kind===80;T.push(Qm(fe?145:144)),T.push(dg()),ae(n)}if(M&262144&&v&2)if(ne(),T.push(Bf(21)),T.push(Sw("type parameter")),T.push(Bf(22)),T.push(dg()),ae(n),n.parent)_e(),ae(n.parent,u),be(n.parent,u);else{let Le=Kp(n,168);if(Le===void 0)return Se.fail();let fe=Le.parent;if(fe)if(iu(fe)){_e();let we=t.getSignatureFromDeclaration(fe);fe.kind===180?(T.push(Qm(105)),T.push(dg())):fe.kind!==179&&fe.name&&ae(fe.symbol),Ho(T,iX(t,we,a,32))}else k1(fe)&&(_e(),T.push(Qm(156)),T.push(dg()),ae(fe.symbol),be(fe.symbol,a))}if(M&8){R="enum member",le(n,"enum member");let Le=(k=n.declarations)==null?void 0:k[0];if(Le?.kind===306){let fe=t.getConstantValue(Le);fe!==void 0&&(T.push(dg()),T.push(sS(64)),T.push(dg()),T.push(Pk(Jke(fe),typeof fe=="number"?7:8)))}}if(n.flags&2097152){if(ne(),!H||I.length===0&&A.length===0){let Le=t.getAliasedSymbol(n);if(Le!==n&&Le.declarations&&Le.declarations.length>0){let fe=Le.declarations[0],we=Nu(fe);if(we&&!H){let Ae=xZ(fe)&&kc(fe,128),Ge=n.name!=="default"&&!Ae,he=wrt(t,Le,Vo(fe),u,we,g,v,Ge?n:Le);T.push(...he.displayParts),T.push(zte()),$=he.documentation,K=he.tags}else $=Le.getContextualDocumentationComment(fe,t),K=Le.getJsDocTags(t)}}if(n.declarations)switch(n.declarations[0].kind){case 270:T.push(Qm(95)),T.push(dg()),T.push(Qm(145));break;case 277:T.push(Qm(95)),T.push(dg()),T.push(Qm(n.declarations[0].isExportEquals?64:90));break;case 281:T.push(Qm(95));break;default:T.push(Qm(102))}T.push(dg()),ae(n),ee(n.declarations,Le=>{if(Le.kind===271){let fe=Le;if(WS(fe))T.push(dg()),T.push(sS(64)),T.push(dg()),T.push(Qm(149)),T.push(Bf(21)),T.push(Pk(_h(Sj(fe)),8)),T.push(Bf(22));else{let we=t.getSymbolAtLocation(fe.moduleReference);we&&(T.push(dg()),T.push(sS(64)),T.push(dg()),ae(we,u))}return!0}})}if(!H)if(R!==""){if(g){if(U?(ne(),T.push(Qm(110))):le(n,R),R==="property"||R==="accessor"||R==="getter"||R==="setter"||R==="JSX attribute"||M&3||R==="local var"||R==="index"||R==="using"||R==="await using"||U){if(T.push(Bf(59)),T.push(dg()),g.symbol&&g.symbol.flags&262144&&R!=="index"){let Le=Cw(fe=>{let we=t.typeParameterToDeclaration(g,u,aCt);X().writeNode(4,we,Vo(ju(u)),fe)});Ho(T,Le)}else Ho(T,MM(t,g,u));if(m4(n)&&n.links.target&&m4(n.links.target)&&n.links.target.links.tupleLabelDeclaration){let Le=n.links.target.links.tupleLabelDeclaration;Se.assertNode(Le.name,Ai),T.push(dg()),T.push(Bf(21)),T.push(Sw(Un(Le.name))),T.push(Bf(22))}}else if(M&16||M&8192||M&16384||M&131072||M&98304||R==="method"){let Le=g.getNonNullableType().getCallSignatures();Le.length&&(xe(Le[0],Le),re=Le.length>1)}}}else R=Crt(t,n,m);if(I.length===0&&!re&&(I=n.getContextualDocumentationComment(u,t)),I.length===0&&M&4&&n.parent&&n.declarations&&ee(n.parent.declarations,Le=>Le.kind===307))for(let Le of n.declarations){if(!Le.parent||Le.parent.kind!==226)continue;let fe=t.getSymbolAtLocation(Le.parent.right);if(fe&&(I=fe.getDocumentationComment(t),A=fe.getJsDocTags(t),I.length>0))break}if(I.length===0&&Ai(m)&&n.valueDeclaration&&Zd(n.valueDeclaration)){let Le=n.valueDeclaration,fe=Le.parent,we=Le.propertyName||Le.name;if(Ai(we)&&fb(fe)){let Ae=jC(we),Ge=t.getTypeAtLocation(fe);I=Je(Ge.isUnion()?Ge.types:[Ge],he=>{let Oe=he.getProperty(Ae);return Oe?Oe.getDocumentationComment(t):void 0})||F}}return A.length===0&&!re&&(A=n.getContextualJsDocTags(u,t)),I.length===0&&$&&(I=$),A.length===0&&K&&(A=K),{displayParts:T,documentation:I,symbolKind:R,tags:A.length===0?void 0:A};function X(){return dF()}function ne(){T.length&&T.push(zte()),se()}function se(){x&&(Ee("alias"),T.push(dg()))}function _e(){T.push(dg()),T.push(Qm(103)),T.push(dg())}function ae(Le,fe){let we;x&&Le===n&&(Le=x),R==="index"&&(we=t.getIndexInfosOfIndexSymbol(Le));let Ae=[];Le.flags&131072&&we?(Le.parent&&(Ae=TN(t,Le.parent)),Ae.push(Bf(23)),we.forEach((Ge,he)=>{Ae.push(...MM(t,Ge.keyType)),he!==we.length-1&&(Ae.push(dg()),Ae.push(Bf(52)),Ae.push(dg()))}),Ae.push(Bf(24))):Ae=TN(t,Le,fe||a,void 0,7),Ho(T,Ae),n.flags&16777216&&T.push(Bf(58))}function le(Le,fe){ne(),fe&&(Ee(fe),Le&&!En(Le.declarations,we=>Zc(we)||(yd(we)||Qh(we))&&!we.name)&&(T.push(dg()),ae(Le)))}function Ee(Le){switch(Le){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":T.push(j0e(Le));return;default:T.push(Bf(21)),T.push(j0e(Le)),T.push(Bf(22));return}}function xe(Le,fe,we=0){Ho(T,iX(t,Le,u,we|32)),fe.length>1&&(T.push(dg()),T.push(Bf(21)),T.push(sS(40)),T.push(Pk((fe.length-1).toString(),7)),T.push(dg()),T.push(Sw(fe.length===2?"overload":"overloads")),T.push(Bf(22))),I=Le.getDocumentationComment(t),A=Le.getJsDocTags(),fe.length>1&&I.length===0&&A.length===0&&(I=fe[0].getDocumentationComment(t),A=fe[0].getJsDocTags().filter(Ae=>Ae.name!=="deprecated"))}function be(Le,fe){let we=Cw(Ae=>{let Ge=t.symbolToTypeParameterDeclarations(Le,fe,aCt);X().writeList(53776,Ge,Vo(ju(fe)),Ae)});Ho(T,we)}}function Trt(t,n,a,u,m,g=m9(m),v){return wrt(t,n,a,u,m,void 0,g,v)}function Ert(t){return t.parent?!1:ee(t.declarations,n=>{if(n.kind===218)return!0;if(n.kind!==260&&n.kind!==262)return!1;for(let a=n.parent;!z7(a);a=a.parent)if(a.kind===307||a.kind===268)return!1;return!0})}var Gs={};d(Gs,{ChangeTracker:()=>kUt,LeadingTriviaOption:()=>iue,TrailingTriviaOption:()=>nue,applyChanges:()=>Frt,assignPositionsToNode:()=>PNe,createWriter:()=>V9e,deleteNode:()=>wL,isThisTypeAnnotatable:()=>Lrt,isValidLocationToAddComment:()=>oue});function Drt(t){let n=t.__pos;return Se.assert(typeof n=="number"),n}function B9e(t,n){Se.assert(typeof n=="number"),t.__pos=n}function Irt(t){let n=t.__end;return Se.assert(typeof n=="number"),n}function Nrt(t,n){Se.assert(typeof n=="number"),t.__end=n}var iue=(t=>(t[t.Exclude=0]="Exclude",t[t.IncludeAll=1]="IncludeAll",t[t.JSDoc=2]="JSDoc",t[t.StartLine=3]="StartLine",t))(iue||{}),nue=(t=>(t[t.Exclude=0]="Exclude",t[t.ExcludeWhitespace=1]="ExcludeWhitespace",t[t.Include=2]="Include",t))(nue||{});function yz(t,n){return fd(t,n,!1,!0)}function Art(t,n){let a=n;for(;a0?1:0,M=KD(Lj(t,T)+A,t);return M=yz(t.text,M),KD(Lj(t,M),t)}function Prt(t,n,a){let{end:u}=n,{trailingTriviaOption:m}=a;if(m===2){let g=L6(t.text,u);if(g){let v=Lj(t,n.end);for(let x of g){if(x.kind===2||Lj(t,x.pos)>v)break;if(Lj(t,x.end)>v)return fd(t.text,x.end,!0,!0)}}}}function Iie(t,n,a){var u;let{end:m}=n,{trailingTriviaOption:g}=a;if(g===0)return m;if(g===1){let k=Pl(L6(t.text,m),PA(t.text,m)),T=(u=k?.[k.length-1])==null?void 0:u.end;return T||m}let v=Prt(t,n,a);if(v)return v;let x=fd(t.text,m,!0);return x!==m&&(g===2||Ev(t.text.charCodeAt(x-1)))?x:m}function j9e(t,n){return!!n&&!!t.parent&&(n.kind===28||n.kind===27&&t.parent.kind===210)}function Lrt(t){return yd(t)||fp(t)}var kUt=class eYt{constructor(n,a){this.newLineCharacter=n,this.formatContext=a,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(n){return new eYt(fO(n.host,n.formatContext.options),n.formatContext)}static with(n,a){let u=eYt.fromContext(n);return a(u),u.getChanges()}pushRaw(n,a){Se.assertEqual(n.fileName,a.fileName);for(let u of a.textChanges)this.changes.push({kind:3,sourceFile:n,text:u.newText,range:Fte(u.span)})}deleteRange(n,a){this.changes.push({kind:0,sourceFile:n,range:a})}delete(n,a){this.deletedNodes.push({sourceFile:n,node:a})}deleteNode(n,a,u={leadingTriviaOption:1}){this.deleteRange(n,RX(n,a,a,u))}deleteNodes(n,a,u={leadingTriviaOption:1},m){for(let g of a){let v=MJ(n,g,u,m),x=Iie(n,g,u);this.deleteRange(n,{pos:v,end:x}),m=!!Prt(n,g,u)}}deleteModifier(n,a){this.deleteRange(n,{pos:a.getStart(n),end:fd(n.text,a.end,!0)})}deleteNodeRange(n,a,u,m={leadingTriviaOption:1}){let g=MJ(n,a,m),v=Iie(n,u,m);this.deleteRange(n,{pos:g,end:v})}deleteNodeRangeExcludingEnd(n,a,u,m={leadingTriviaOption:1}){let g=MJ(n,a,m),v=u===void 0?n.text.length:MJ(n,u,m);this.deleteRange(n,{pos:g,end:v})}replaceRange(n,a,u,m={}){this.changes.push({kind:1,sourceFile:n,range:a,options:m,node:u})}replaceNode(n,a,u,m=qM){this.replaceRange(n,RX(n,a,a,m),u,m)}replaceNodeRange(n,a,u,m,g=qM){this.replaceRange(n,RX(n,a,u,g),m,g)}replaceRangeWithNodes(n,a,u,m={}){this.changes.push({kind:2,sourceFile:n,range:a,options:m,nodes:u})}replaceNodeWithNodes(n,a,u,m=qM){this.replaceRangeWithNodes(n,RX(n,a,a,m),u,m)}replaceNodeWithText(n,a,u){this.replaceRangeWithText(n,RX(n,a,a,qM),u)}replaceNodeRangeWithNodes(n,a,u,m,g=qM){this.replaceRangeWithNodes(n,RX(n,a,u,g),m,g)}nodeHasTrailingComment(n,a,u=qM){return!!Prt(n,a,u)}nextCommaToken(n,a){let u=NM(a,a.parent,n);return u&&u.kind===28?u:void 0}replacePropertyAssignment(n,a,u){let m=this.nextCommaToken(n,a)?"":","+this.newLineCharacter;this.replaceNode(n,a,u,{suffix:m})}insertNodeAt(n,a,u,m={}){this.replaceRange(n,tT(a),u,m)}insertNodesAt(n,a,u,m={}){this.replaceRangeWithNodes(n,tT(a),u,m)}insertNodeAtTopOfFile(n,a,u){this.insertAtTopOfFile(n,a,u)}insertNodesAtTopOfFile(n,a,u){this.insertAtTopOfFile(n,a,u)}insertAtTopOfFile(n,a,u){let m=hO(n),g={prefix:m===0?void 0:this.newLineCharacter,suffix:(Ev(n.text.charCodeAt(m))?"":this.newLineCharacter)+(u?this.newLineCharacter:"")};ua(a)?this.insertNodesAt(n,m,a,g):this.insertNodeAt(n,m,a,g)}insertNodesAtEndOfFile(n,a,u){this.insertAtEndOfFile(n,a,u)}insertAtEndOfFile(n,a,u){let m=n.end+1,g={prefix:this.newLineCharacter,suffix:this.newLineCharacter+(u?this.newLineCharacter:"")};this.insertNodesAt(n,m,a,g)}insertStatementsInNewFile(n,a,u){this.newFileChanges||(this.newFileChanges=Hb()),this.newFileChanges.add(n,{oldFile:u,statements:a})}insertFirstParameter(n,a,u){let m=Ed(a);m?this.insertNodeBefore(n,m,u):this.insertNodeAt(n,a.pos,u)}insertNodeBefore(n,a,u,m=!1,g={}){this.insertNodeAt(n,MJ(n,a,g),u,this.getOptionsForInsertNodeBefore(a,u,m))}insertNodesBefore(n,a,u,m=!1,g={}){this.insertNodesAt(n,MJ(n,a,g),u,this.getOptionsForInsertNodeBefore(a,of(u),m))}insertModifierAt(n,a,u,m={}){this.insertNodeAt(n,a,Me.createToken(u),m)}insertModifierBefore(n,a,u){return this.insertModifierAt(n,u.getStart(n),a,{suffix:" "})}insertCommentBeforeLine(n,a,u,m){let g=KD(a,n),v=H0e(n.text,g),x=oue(n,v),k=h9(n,x?v:u),T=n.text.slice(g,v),I=`${x?"":this.newLineCharacter}//${m}${this.newLineCharacter}${T}`;this.insertText(n,k.getStart(n),I)}insertJsdocCommentBefore(n,a,u){let m=a.getStart(n);if(a.jsDoc)for(let x of a.jsDoc)this.deleteRange(n,{pos:oC(x.getStart(n),n),end:Iie(n,x,{})});let g=qEe(n.text,m-1),v=n.text.slice(g,m);this.insertNodeAt(n,m,u,{suffix:this.newLineCharacter+v})}createJSDocText(n,a){let u=za(a.jsDoc,g=>Yu(g.comment)?Me.createJSDocText(g.comment):g.comment),m=vp(a.jsDoc);return m&&sv(m.pos,m.end,n)&&Z(u)===0?void 0:Me.createNodeArray(Nt(u,Me.createJSDocText(` +`)))}replaceJSDocComment(n,a,u){this.insertJsdocCommentBefore(n,wUt(a),Me.createJSDocComment(this.createJSDocText(n,a),Me.createNodeArray(u)))}addJSDocTags(n,a,u){let m=Uc(a.jsDoc,v=>v.tags),g=u.filter(v=>!m.some((x,k)=>{let T=W9e(x,v);return T&&(m[k]=T),!!T}));this.replaceJSDocComment(n,a,[...m,...g])}filterJSDocTags(n,a,u){this.replaceJSDocComment(n,a,Qn(Uc(a.jsDoc,m=>m.tags),u))}replaceRangeWithText(n,a,u){this.changes.push({kind:3,sourceFile:n,range:a,text:u})}insertText(n,a,u){this.replaceRangeWithText(n,tT(a),u)}tryInsertTypeAnnotation(n,a,u){let m;if(iu(a)){if(m=Np(a,22,n),!m){if(!Zc(a))return!1;m=of(a.parameters)}}else m=(a.kind===260?a.exclamationToken:a.questionToken)??a.name;return this.insertNodeAt(n,m.end,u,{prefix:": "}),!0}tryInsertThisTypeAnnotation(n,a,u){let m=Np(a,21,n).getStart(n)+1,g=a.parameters.length?", ":"";this.insertNodeAt(n,m,u,{prefix:"this: ",suffix:g})}insertTypeParameters(n,a,u){let m=(Np(a,21,n)||of(a.parameters)).getStart(n);this.insertNodesAt(n,m,u,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(n,a,u){return ll(n)||rl(n)?{suffix:u?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:$c(n)?{suffix:", "}:Fl(n)?Fl(a)?{suffix:", "}:{}:Kf(n)&&Dd(n.parent)||_p(n)?{suffix:", "}:eg(n)?{suffix:","+(u?this.newLineCharacter:" ")}:Se.failBadSyntaxKind(n)}insertNodeAtConstructorStart(n,a,u){let m=Ed(a.body.statements);!m||!a.body.multiLine?this.replaceConstructorBody(n,a,[u,...a.body.statements]):this.insertNodeBefore(n,m,u)}insertNodeAtConstructorStartAfterSuperCall(n,a,u){let m=jt(a.body.statements,g=>E0(g)&&m5(g.expression));!m||!a.body.multiLine?this.replaceConstructorBody(n,a,[...a.body.statements,u]):this.insertNodeAfter(n,m,u)}insertNodeAtConstructorEnd(n,a,u){let m=Y_(a.body.statements);!m||!a.body.multiLine?this.replaceConstructorBody(n,a,[...a.body.statements,u]):this.insertNodeAfter(n,m,u)}replaceConstructorBody(n,a,u){this.replaceNode(n,a.body,Me.createBlock(u,!0))}insertNodeAtEndOfScope(n,a,u){let m=MJ(n,a.getLastToken(),{});this.insertNodeAt(n,m,u,{prefix:Ev(n.text.charCodeAt(a.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})}insertMemberAtStart(n,a,u){this.insertNodeAtStartWorker(n,a,u)}insertNodeAtObjectStart(n,a,u){this.insertNodeAtStartWorker(n,a,u)}insertNodeAtStartWorker(n,a,u){let m=this.guessIndentationFromExistingMembers(n,a)??this.computeIndentationForNewMember(n,a);this.insertNodeAt(n,z9e(a).pos,u,this.getInsertNodeAtStartInsertOptions(n,a,m))}guessIndentationFromExistingMembers(n,a){let u,m=a;for(let g of z9e(a)){if($T(m,g,n))return;let v=g.getStart(n),x=Dy.SmartIndenter.findFirstNonWhitespaceColumn(oC(v,n),v,n,this.formatContext.options);if(u===void 0)u=x;else if(x!==u)return;m=g}return u}computeIndentationForNewMember(n,a){let u=a.getStart(n);return Dy.SmartIndenter.findFirstNonWhitespaceColumn(oC(u,n),u,n,this.formatContext.options)+(this.formatContext.options.indentSize??4)}getInsertNodeAtStartInsertOptions(n,a,u){let g=z9e(a).length===0,v=HC(this.classesWithNodesInsertedAtStart,pp(a),{node:a,sourceFile:n}),x=Ld(a)&&(!qv(n)||!g),k=Ld(a)&&qv(n)&&g&&!v;return{indentation:u,prefix:(k?",":"")+this.newLineCharacter,suffix:x?",":ky(a)&&g?";":""}}insertNodeAfterComma(n,a,u){let m=this.insertNodeAfterWorker(n,this.nextCommaToken(n,a)||a,u);this.insertNodeAt(n,m,u,this.getInsertNodeAfterOptions(n,a))}insertNodeAfter(n,a,u){let m=this.insertNodeAfterWorker(n,a,u);this.insertNodeAt(n,m,u,this.getInsertNodeAfterOptions(n,a))}insertNodeAtEndOfList(n,a,u){this.insertNodeAt(n,a.end,u,{prefix:", "})}insertNodesAfter(n,a,u){let m=this.insertNodeAfterWorker(n,a,of(u));this.insertNodesAt(n,m,u,this.getInsertNodeAfterOptions(n,a))}insertNodeAfterWorker(n,a,u){return Ey(a,u)&&n.text.charCodeAt(a.end-1)!==59&&this.replaceRange(n,tT(a.end),Me.createToken(27)),Iie(n,a,{})}getInsertNodeAfterOptions(n,a){let u=this.getInsertNodeAfterOptionsWorker(a);return{...u,prefix:a.end===n.end&&ll(a)?u.prefix?` +${u.prefix}`:` +`:u.prefix}}getInsertNodeAfterOptionsWorker(n){switch(n.kind){case 263:case 267:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 260:case 11:case 80:return{prefix:", "};case 303:return{suffix:","+this.newLineCharacter};case 95:return{prefix:" "};case 169:return{};default:return Se.assert(ll(n)||Pc(n)),{suffix:this.newLineCharacter}}}insertName(n,a,u){if(Se.assert(!a.name),a.kind===219){let m=Np(a,39,n),g=Np(a,21,n);g?(this.insertNodesAt(n,g.getStart(n),[Me.createToken(100),Me.createIdentifier(u)],{joiner:" "}),wL(this,n,m)):(this.insertText(n,of(a.parameters).getStart(n),`function ${u}(`),this.replaceRange(n,m,Me.createToken(22))),a.body.kind!==241&&(this.insertNodesAt(n,a.body.getStart(n),[Me.createToken(19),Me.createToken(107)],{joiner:" ",suffix:" "}),this.insertNodesAt(n,a.body.end,[Me.createToken(27),Me.createToken(20)],{joiner:" "}))}else{let m=Np(a,a.kind===218?100:86,n).end;this.insertNodeAt(n,m,Me.createIdentifier(u),{prefix:" "})}}insertExportModifier(n,a){this.insertText(n,a.getStart(n),"export ")}insertImportSpecifierAtIndex(n,a,u,m){let g=u.elements[m-1];g?this.insertNodeInListAfter(n,g,a):this.insertNodeBefore(n,u.elements[0],a,!sv(u.elements[0].getStart(),u.parent.parent.getStart(),n))}insertNodeInListAfter(n,a,u,m=Dy.SmartIndenter.getContainingList(a,n)){if(!m){Se.fail("node is not a list element");return}let g=Rm(m,a);if(g<0)return;let v=a.getEnd();if(g!==m.length-1){let x=wc(n,a.end);if(x&&j9e(a,x)){let k=m[g+1],T=yz(n.text,k.getFullStart()),I=`${Ef(x.kind)}${n.text.substring(x.end,T)}`;this.insertNodesAt(n,T,[u],{suffix:I})}}else{let x=a.getStart(n),k=oC(x,n),T,I=!1;if(m.length===1)T=28;else{let A=p0(a.pos,n);T=j9e(a,A)?A.kind:28,I=oC(m[g-1].getStart(n),n)!==k}if((Art(n.text,a.end)||!sv(m.pos,m.end,n))&&(I=!0),I){this.replaceRange(n,tT(v),Me.createToken(T));let A=Dy.SmartIndenter.findFirstNonWhitespaceColumn(k,x,n,this.formatContext.options),M=fd(n.text,v,!0,!1);for(;M!==v&&Ev(n.text.charCodeAt(M-1));)M--;this.replaceRange(n,tT(M),u,{indentation:A,prefix:this.newLineCharacter})}else this.replaceRange(n,tT(v),u,{prefix:`${Ef(T)} `})}}parenthesizeExpression(n,a){this.replaceRange(n,ZZ(a),Me.createParenthesizedExpression(a))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach(({node:n,sourceFile:a})=>{let[u,m]=TUt(n,a);if(u!==void 0&&m!==void 0){let g=z9e(n).length===0,v=sv(u,m,a);g&&v&&u!==m-1&&this.deleteRange(a,tT(u,m-1)),v&&this.insertText(a,m-1,this.newLineCharacter)}})}finishDeleteDeclarations(){let n=new Set;for(let{sourceFile:a,node:u}of this.deletedNodes)this.deletedNodes.some(m=>m.sourceFile===a&&i2(m.node,u))||(ua(u)?this.deleteRange(a,fU(a,u)):H9e.deleteDeclaration(this,n,a,u));n.forEach(a=>{let u=a.getSourceFile(),m=Dy.SmartIndenter.getContainingList(a,u);if(a!==Bu(m))return;let g=Pr(m,v=>!n.has(v),m.length-2);g!==-1&&this.deleteRange(u,{pos:m[g].end,end:fve(u,m[g+1])})})}getChanges(n){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();let a=rue.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,n);return this.newFileChanges&&this.newFileChanges.forEach((u,m)=>{a.push(rue.newFileChanges(m,u,this.newLineCharacter,this.formatContext))}),a}createNewFile(n,a,u){this.insertStatementsInNewFile(a,u,n)}};function wUt(t){if(t.kind!==219)return t;let n=t.parent.kind===172?t.parent:t.parent.parent;return n.jsDoc=t.jsDoc,n}function W9e(t,n){if(t.kind===n.kind)switch(t.kind){case 341:{let a=t,u=n;return Ai(a.name)&&Ai(u.name)&&a.name.escapedText===u.name.escapedText?Me.createJSDocParameterTag(void 0,u.name,!1,u.typeExpression,u.isNameFirst,a.comment):void 0}case 342:return Me.createJSDocReturnTag(void 0,n.typeExpression,t.comment);case 344:return Me.createJSDocTypeTag(void 0,n.typeExpression,t.comment)}}function fve(t,n){return fd(t.text,MJ(t,n,{leadingTriviaOption:1}),!1,!0)}function Ort(t,n,a,u){let m=fve(t,u);if(a===void 0||sv(Iie(t,n,{}),m,t))return m;let g=p0(u.getStart(t),t);if(j9e(n,g)){let v=p0(n.getStart(t),t);if(j9e(a,v)){let x=fd(t.text,g.getEnd(),!0,!0);if(sv(v.getStart(t),g.getStart(t),t))return Ev(t.text.charCodeAt(x-1))?x-1:x;if(Ev(t.text.charCodeAt(x)))return x}}return m}function TUt(t,n){let a=Np(t,19,n),u=Np(t,20,n);return[a?.end,u?.end]}function z9e(t){return Ld(t)?t.properties:t.members}var rue;(t=>{function n(x,k,T,I){return Dc(Ks(x,A=>A.sourceFile.path),A=>{let M=A[0].sourceFile,R=du(A,(U,$)=>U.range.pos-$.range.pos||U.range.end-$.range.end);for(let U=0;U`${JSON.stringify(R[U].range)} and ${JSON.stringify(R[U+1].range)}`);let H=Dc(R,U=>{let $=q4(U.range),K=U.kind===1?Vo(Gm(U.node))??U.sourceFile:U.kind===2?Vo(Gm(U.nodes[0]))??U.sourceFile:U.sourceFile,re=m(U,K,M,k,T,I);if(!($.length===re.length&&H7e(K.text,re,$.start)))return lJ($,re)});return H.length>0?{fileName:M.fileName,textChanges:H}:void 0})}t.getTextChangesFromChanges=n;function a(x,k,T,I){let A=u(Jj(x),k,T,I);return{fileName:x,textChanges:[lJ(h1(0,0),A)],isNewFile:!0}}t.newFileChanges=a;function u(x,k,T,I){let A=za(k,H=>H.statements.map(U=>U===4?"":v(U,H.oldFile,T).text)).join(T),M=AU("any file name",A,{languageVersion:99,jsDocParsingMode:1},!0,x),R=Dy.formatDocument(M,I);return Frt(A,R)+T}t.newFileChangesWorker=u;function m(x,k,T,I,A,M){var R;if(x.kind===0)return"";if(x.kind===3)return x.text;let{options:H={},range:{pos:U}}=x,$=X=>g(X,k,T,U,H,I,A,M),K=x.kind===2?x.nodes.map(X=>eH($(X),I)).join(((R=x.options)==null?void 0:R.joiner)||I):$(x.node),re=H.indentation!==void 0||oC(U,k)===U?K:K.replace(/^\s+/,"");return(H.prefix||"")+re+(!H.suffix||xh(re,H.suffix)?"":H.suffix)}function g(x,k,T,I,{indentation:A,prefix:M,delta:R},H,U,$){let{node:K,text:re}=v(x,k,H);$&&$(K,re);let X=iie(U,k),ne=A!==void 0?A:Dy.SmartIndenter.getIndentation(I,T,X,M===H||oC(I,k)===I);R===void 0&&(R=Dy.SmartIndenter.shouldIndentChildNode(X,x)&&X.indentSize||0);let se={text:re,getLineAndCharacterOfPosition(ae){return Df(this,ae)}},_e=Dy.formatNodeGivenIndentation(K,se,k.languageVariant,ne,R,{...U,options:X});return Frt(re,_e)}function v(x,k,T){let I=V9e(T),A=oz(T);return j4({newLine:A,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},I).writeNode(4,x,k,I),{text:I.getText(),node:PNe(x)}}t.getNonformattedText=v})(rue||(rue={}));function Frt(t,n){for(let a=n.length-1;a>=0;a--){let{span:u,newText:m}=n[a];t=`${t.substring(0,u.start)}${m}${t.substring(ag(u))}`}return t}function lCt(t){return fd(t,0)===t.length}var EUt={...mge,factory:cee(mge.factory.flags|1,mge.factory.baseFactory)};function PNe(t){let n=Fo(t,PNe,EUt,DUt,PNe),a=um(n)?n:Object.create(n);return KT(a,Drt(t),Irt(t)),a}function DUt(t,n,a,u,m){let g=ts(t,n,a,u,m);if(!g)return g;Se.assert(t);let v=g===t?Me.createNodeArray(g.slice(0)):g;return KT(v,Drt(t),Irt(t)),v}function V9e(t){let n=0,a=ume(t),u=he=>{he&&B9e(he,n)},m=he=>{he&&Nrt(he,n)},g=he=>{he&&B9e(he,n)},v=he=>{he&&Nrt(he,n)},x=he=>{he&&B9e(he,n)},k=he=>{he&&Nrt(he,n)};function T(he,Oe){if(Oe||!lCt(he)){n=a.getTextPos();let Re=0;for(;tN(he.charCodeAt(he.length-Re-1));)Re++;n-=Re}}function I(he){a.write(he),T(he,!1)}function A(he){a.writeComment(he)}function M(he){a.writeKeyword(he),T(he,!1)}function R(he){a.writeOperator(he),T(he,!1)}function H(he){a.writePunctuation(he),T(he,!1)}function U(he){a.writeTrailingSemicolon(he),T(he,!1)}function $(he){a.writeParameter(he),T(he,!1)}function K(he){a.writeProperty(he),T(he,!1)}function re(he){a.writeSpace(he),T(he,!1)}function X(he){a.writeStringLiteral(he),T(he,!1)}function ne(he,Oe){a.writeSymbol(he,Oe),T(he,!1)}function se(he){a.writeLine(he)}function _e(){a.increaseIndent()}function ae(){a.decreaseIndent()}function le(){return a.getText()}function Ee(he){a.rawWrite(he),T(he,!1)}function xe(he){a.writeLiteral(he),T(he,!0)}function be(){return a.getTextPos()}function Le(){return a.getLine()}function fe(){return a.getColumn()}function we(){return a.getIndent()}function Ae(){return a.isAtStartOfLine()}function Ge(){a.clear(),n=0}return{onBeforeEmitNode:u,onAfterEmitNode:m,onBeforeEmitNodeArray:g,onAfterEmitNodeArray:v,onBeforeEmitToken:x,onAfterEmitToken:k,write:I,writeComment:A,writeKeyword:M,writeOperator:R,writePunctuation:H,writeTrailingSemicolon:U,writeParameter:$,writeProperty:K,writeSpace:re,writeStringLiteral:X,writeSymbol:ne,writeLine:se,increaseIndent:_e,decreaseIndent:ae,getText:le,rawWrite:Ee,writeLiteral:xe,getTextPos:be,getLine:Le,getColumn:fe,getIndent:we,isAtStartOfLine:Ae,hasTrailingComment:()=>a.hasTrailingComment(),hasTrailingWhitespace:()=>a.hasTrailingWhitespace(),clear:Ge}}function hO(t){let n;for(let T of t.statements)if(cw(T))n=T;else break;let a=0,u=t.text;if(n)return a=n.end,k(),a;let m=nZ(u);m!==void 0&&(a=m.length,k());let g=PA(u,a);if(!g)return a;let v,x;for(let T of g){if(T.kind===3){if(Rpe(u,T.pos)){v={range:T,pinnedOrTripleSlash:!0};continue}}else if(Vke(u,T.pos,T.end)){v={range:T,pinnedOrTripleSlash:!0};continue}if(v){if(v.pinnedOrTripleSlash)break;let I=t.getLineAndCharacterOfPosition(T.pos).line,A=t.getLineAndCharacterOfPosition(v.range.end).line;if(I>=A+2)break}if(t.statements.length){x===void 0&&(x=t.getLineAndCharacterOfPosition(t.statements[0].getStart()).line);let I=t.getLineAndCharacterOfPosition(T.end).line;if(x{function n(g,v,x,k){switch(k.kind){case 169:{let R=k.parent;Zc(R)&&R.parameters.length===1&&!Np(R,21,x)?g.replaceNodeWithText(x,k,"()"):_ve(g,v,x,k);break}case 272:case 271:let T=x.imports.length&&k===of(x.imports).parent||k===jt(x.statements,f5);wL(g,x,k,{leadingTriviaOption:T?0:Gx(k)?2:3});break;case 208:let I=k.parent;I.kind===207&&k!==Bu(I.elements)?wL(g,x,k):_ve(g,v,x,k);break;case 260:m(g,v,x,k);break;case 168:_ve(g,v,x,k);break;case 276:let M=k.parent;M.elements.length===1?u(g,x,M):_ve(g,v,x,k);break;case 274:u(g,x,k);break;case 27:wL(g,x,k,{trailingTriviaOption:0});break;case 100:wL(g,x,k,{leadingTriviaOption:0});break;case 263:case 262:wL(g,x,k,{leadingTriviaOption:Gx(k)?2:3});break;default:k.parent?Ym(k.parent)&&k.parent.name===k?a(g,x,k.parent):Od(k.parent)&&dr(k.parent.arguments,k)?_ve(g,v,x,k):wL(g,x,k):wL(g,x,k)}}t.deleteDeclaration=n;function a(g,v,x){if(!x.namedBindings)wL(g,v,x.parent);else{let k=x.name.getStart(v),T=wc(v,x.name.end);if(T&&T.kind===28){let I=fd(v.text,T.end,!1,!0);g.deleteRange(v,{pos:k,end:I})}else wL(g,v,x.name)}}function u(g,v,x){if(x.parent.name){let k=Se.checkDefined(wc(v,x.pos-1));g.deleteRange(v,{pos:k.getStart(v),end:x.end})}else{let k=M2(x,272);wL(g,v,k)}}function m(g,v,x,k){let{parent:T}=k;if(T.kind===299){g.deleteNodeRange(x,Np(T,21,x),Np(T,22,x));return}if(T.declarations.length!==1){_ve(g,v,x,k);return}let I=T.parent;switch(I.kind){case 250:case 249:g.replaceNode(x,k,Me.createObjectLiteralExpression());break;case 248:wL(g,x,T);break;case 243:wL(g,x,I,{leadingTriviaOption:Gx(I)?2:3});break;default:Se.assertNever(I)}}})(H9e||(H9e={}));function wL(t,n,a,u={leadingTriviaOption:1}){let m=MJ(n,a,u),g=Iie(n,a,u);t.deleteRange(n,{pos:m,end:g})}function _ve(t,n,a,u){let m=Se.checkDefined(Dy.SmartIndenter.getContainingList(u,a)),g=Rm(m,u);if(Se.assert(g!==-1),m.length===1){wL(t,a,u);return}Se.assert(!n.has(u),"Deleting a node twice"),n.add(u),t.deleteRange(a,{pos:fve(a,u),end:g===m.length-1?Iie(a,u,{}):Ort(a,u,m[g-1],m[g+1])})}var Dy={};d(Dy,{FormattingContext:()=>LNe,FormattingRequestKind:()=>U9e,RuleAction:()=>Nie,RuleFlags:()=>Mrt,SmartIndenter:()=>dP,anyContext:()=>fc,createTextRangeWithKind:()=>Z9e,formatDocument:()=>XUt,formatNodeGivenIndentation:()=>NCt,formatOnClosingCurly:()=>not,formatOnEnter:()=>GUt,formatOnOpeningCurly:()=>iot,formatOnSemicolon:()=>KUt,formatSelection:()=>YUt,getAllRules:()=>Rrt,getFormatContext:()=>UUt,getFormattingScanner:()=>J9e,getIndentationString:()=>aot,getRangeOfEnclosingComment:()=>lue});var U9e=(t=>(t[t.FormatDocument=0]="FormatDocument",t[t.FormatSelection=1]="FormatSelection",t[t.FormatOnEnter=2]="FormatOnEnter",t[t.FormatOnSemicolon=3]="FormatOnSemicolon",t[t.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",t[t.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace",t))(U9e||{}),LNe=class{constructor(t,n,a){this.sourceFile=t,this.formattingRequestKind=n,this.options=a}updateContext(t,n,a,u,m){this.currentTokenSpan=Se.checkDefined(t),this.currentTokenParent=Se.checkDefined(n),this.nextTokenSpan=Se.checkDefined(a),this.nextTokenParent=Se.checkDefined(u),this.contextNode=Se.checkDefined(m),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0}ContextNodeAllOnSameLine(){return this.contextNodeAllOnSameLine===void 0&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine}NextNodeAllOnSameLine(){return this.nextNodeAllOnSameLine===void 0&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine}TokensAreOnSameLine(){if(this.tokensAreOnSameLine===void 0){let t=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,n=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=t===n}return this.tokensAreOnSameLine}ContextNodeBlockIsOnOneLine(){return this.contextNodeBlockIsOnOneLine===void 0&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine}NextNodeBlockIsOnOneLine(){return this.nextNodeBlockIsOnOneLine===void 0&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine}NodeIsOnOneLine(t){let n=this.sourceFile.getLineAndCharacterOfPosition(t.getStart(this.sourceFile)).line,a=this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line;return n===a}BlockIsOnOneLine(t){let n=Np(t,19,this.sourceFile),a=Np(t,20,this.sourceFile);if(n&&a){let u=this.sourceFile.getLineAndCharacterOfPosition(n.getEnd()).line,m=this.sourceFile.getLineAndCharacterOfPosition(a.getStart(this.sourceFile)).line;return u===m}return!1}},uCt=LA(99,!1,0),dCt=LA(99,!1,1);function J9e(t,n,a,u,m){let g=n===1?dCt:uCt;g.setText(t),g.resetTokenState(a);let v=!0,x,k,T,I,A,M=m({advance:R,readTokenInfo:se,readEOFTokenRange:ae,isOnToken:le,isOnEOF:Ee,getCurrentLeadingTrivia:()=>x,lastTrailingTriviaWasNewLine:()=>v,skipToEndOf:be,skipToStartOf:Le,getTokenFullStart:()=>A?.token.pos??g.getTokenStart(),getStartPos:()=>A?.token.pos??g.getTokenStart()});return A=void 0,g.setText(void 0),M;function R(){A=void 0,g.getTokenFullStart()!==a?v=!!k&&Bu(k).kind===4:g.scan(),x=void 0,k=void 0;let we=g.getTokenFullStart();for(;we(t[t.None=0]="None",t[t.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",t[t.StopProcessingTokenActions=2]="StopProcessingTokenActions",t[t.InsertSpace=4]="InsertSpace",t[t.InsertNewLine=8]="InsertNewLine",t[t.DeleteSpace=16]="DeleteSpace",t[t.DeleteToken=32]="DeleteToken",t[t.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",t[t.StopAction=3]="StopAction",t[t.ModifySpaceAction=28]="ModifySpaceAction",t[t.ModifyTokenAction=96]="ModifyTokenAction",t))(Nie||{}),Mrt=(t=>(t[t.None=0]="None",t[t.CanDeleteNewLines=1]="CanDeleteNewLines",t))(Mrt||{});function Rrt(){let t=[];for(let _e=0;_e<=165;_e++)_e!==1&&t.push(_e);function n(..._e){return{tokens:t.filter(ae=>!_e.some(le=>le===ae)),isSpecific:!1}}let a={tokens:t,isSpecific:!1},u=kx([...t,3]),m=kx([...t,1]),g=AN(83,165),v=AN(30,79),x=[103,104,165,130,142,152],k=[46,47,55,54],T=[9,10,80,21,23,19,110,105],I=[80,21,110,105],A=[80,22,24,105],M=[80,21,110,105],R=[80,22,24,105],H=[2,3],U=[80,...Mte],$=u,K=kx([80,32,3,86,95,102]),re=kx([22,3,92,113,98,93,85]),X=[yc("IgnoreBeforeComment",a,H,fc,1),yc("IgnoreAfterLineComment",2,a,fc,1),yc("NotSpaceBeforeColon",a,59,[jl,FNe,fCt],16),yc("SpaceAfterColon",59,a,[jl,FNe,FUt],4),yc("NoSpaceBeforeQuestionMark",a,58,[jl,FNe,fCt],16),yc("SpaceAfterQuestionMarkInConditionalOperator",58,a,[jl,pCt],4),yc("NoSpaceAfterQuestionMark",58,a,[jl,jrt],16),yc("NoSpaceBeforeDot",a,[25,29],[jl,HUt],16),yc("NoSpaceAfterDot",[25,29],a,[jl],16),yc("NoSpaceBetweenImportParenInImportType",102,21,[jl,K9e],16),yc("NoSpaceAfterUnaryPrefixOperator",k,T,[jl,FNe],16),yc("NoSpaceAfterUnaryPreincrementOperator",46,I,[jl],16),yc("NoSpaceAfterUnaryPredecrementOperator",47,M,[jl],16),yc("NoSpaceBeforeUnaryPostincrementOperator",A,46,[jl,TCt],16),yc("NoSpaceBeforeUnaryPostdecrementOperator",R,47,[jl,TCt],16),yc("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[jl,$M],4),yc("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[jl,$M],4),yc("SpaceAfterAddWhenFollowedByPreincrement",40,46,[jl,$M],4),yc("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[jl,$M],4),yc("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[jl,$M],4),yc("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[jl,$M],4),yc("NoSpaceAfterCloseBrace",20,[28,27],[jl],16),yc("NewLineBeforeCloseBraceInBlockContext",u,20,[Vrt],8),yc("SpaceAfterCloseBrace",20,n(22),[jl,NUt],4),yc("SpaceBetweenCloseBraceAndElse",20,93,[jl],4),yc("SpaceBetweenCloseBraceAndWhile",20,117,[jl],4),yc("NoSpaceBetweenEmptyBraceBrackets",19,20,[jl,gCt],16),yc("SpaceAfterConditionalClosingParen",22,23,[BNe],4),yc("NoSpaceBetweenFunctionKeywordAndStar",100,42,[hve],16),yc("SpaceAfterStarInGeneratorDeclaration",42,80,[hve],4),yc("SpaceAfterFunctionInFuncDecl",100,a,[vz],4),yc("NewLineAfterOpenBraceInBlockContext",19,a,[Vrt],8),yc("SpaceAfterGetSetInMember",[139,153],80,[vz],4),yc("NoSpaceBetweenYieldKeywordAndStar",127,42,[jl,wCt],16),yc("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],a,[jl,wCt],4),yc("NoSpaceBetweenReturnAndSemicolon",107,27,[jl],16),yc("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],a,[jl],4),yc("SpaceAfterLetConstInVariableDeclaration",[121,87],a,[jl,RUt],4),yc("NoSpaceBeforeOpenParenInFuncCall",a,21,[jl,LUt,OUt],16),yc("SpaceBeforeBinaryKeywordOperator",a,x,[jl,$M],4),yc("SpaceAfterBinaryKeywordOperator",x,a,[jl,$M],4),yc("SpaceAfterVoidOperator",116,a,[jl,jUt],4),yc("SpaceBetweenAsyncAndOpenParen",134,21,[Jrt,jl],4),yc("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[jl],4),yc("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[jl],16),yc("SpaceBeforeJsxAttribute",a,80,[vCt,jl],4),yc("SpaceBeforeSlashInJsxOpeningElement",a,44,[SCt,jl],4),yc("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[SCt,jl],16),yc("NoSpaceBeforeEqualInJsxAttribute",a,64,[bCt,jl],16),yc("NoSpaceAfterEqualInJsxAttribute",64,a,[bCt,jl],16),yc("NoSpaceBeforeJsxNamespaceColon",80,59,[Grt],16),yc("NoSpaceAfterJsxNamespaceColon",59,80,[Grt],16),yc("NoSpaceAfterModuleImport",[144,149],21,[jl],16),yc("SpaceAfterCertainTypeScriptKeywords",[128,129,86,138,90,94,95,96,139,119,102,120,144,145,123,125,124,148,153,126,156,161,143,140],a,[jl],4),yc("SpaceBeforeCertainTypeScriptKeywords",a,[96,119,161],[jl],4),yc("SpaceAfterModuleName",11,19,[WNe],4),yc("SpaceBeforeArrow",a,39,[jl],4),yc("SpaceAfterArrow",39,a,[jl],4),yc("NoSpaceAfterEllipsis",26,80,[jl],16),yc("NoSpaceAfterOptionalParameters",58,[22,28],[jl,FNe],16),yc("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[jl,Xrt],16),yc("NoSpaceBeforeOpenAngularBracket",U,30,[jl,gve],16),yc("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[jl,gve],16),yc("NoSpaceAfterOpenAngularBracket",30,a,[jl,gve],16),yc("NoSpaceBeforeCloseAngularBracket",a,32,[jl,gve],16),yc("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[jl,gve,IUt,kCt],16),yc("SpaceBeforeAt",[22,80],60,[jl],4),yc("NoSpaceAfterAt",60,a,[jl],16),yc("SpaceAfterDecorator",a,[128,80,95,90,86,126,125,123,124,139,153,23,42],[MUt],4),yc("NoSpaceBeforeNonNullAssertionOperator",a,54,[jl,WUt],16),yc("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[jl,BUt],16),yc("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[jl],4)],ne=[yc("SpaceAfterConstructor",137,21,[_T("insertSpaceAfterConstructor"),jl],4),yc("NoSpaceAfterConstructor",137,21,[uP("insertSpaceAfterConstructor"),jl],16),yc("SpaceAfterComma",28,a,[_T("insertSpaceAfterCommaDelimiter"),jl,$rt,Bl,yCt],4),yc("NoSpaceAfterComma",28,a,[uP("insertSpaceAfterCommaDelimiter"),jl,$rt],16),yc("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[_T("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),vz],4),yc("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[uP("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),vz],16),yc("SpaceAfterKeywordInControl",g,21,[_T("insertSpaceAfterKeywordsInControlFlowStatements"),BNe],4),yc("NoSpaceAfterKeywordInControl",g,21,[uP("insertSpaceAfterKeywordsInControlFlowStatements"),BNe],16),yc("SpaceAfterOpenParen",21,a,[_T("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),jl],4),yc("SpaceBeforeCloseParen",a,22,[_T("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),jl],4),yc("SpaceBetweenOpenParens",21,21,[_T("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),jl],4),yc("NoSpaceBetweenParens",21,22,[jl],16),yc("NoSpaceAfterOpenParen",21,a,[uP("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),jl],16),yc("NoSpaceBeforeCloseParen",a,22,[uP("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),jl],16),yc("SpaceAfterOpenBracket",23,a,[_T("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),jl],4),yc("SpaceBeforeCloseBracket",a,24,[_T("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),jl],4),yc("NoSpaceBetweenBrackets",23,24,[jl],16),yc("NoSpaceAfterOpenBracket",23,a,[uP("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),jl],16),yc("NoSpaceBeforeCloseBracket",a,24,[uP("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),jl],16),yc("SpaceAfterOpenBrace",19,a,[pve("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),zrt],4),yc("SpaceBeforeCloseBrace",a,20,[pve("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),zrt],4),yc("NoSpaceBetweenEmptyBraceBrackets",19,20,[jl,gCt],16),yc("NoSpaceAfterOpenBrace",19,a,[ONe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),jl],16),yc("NoSpaceBeforeCloseBrace",a,20,[ONe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),jl],16),yc("SpaceBetweenEmptyBraceBrackets",19,20,[_T("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),yc("NoSpaceBetweenEmptyBraceBrackets",19,20,[ONe("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),jl],16),yc("SpaceAfterTemplateHeadAndMiddle",[16,17],a,[_T("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),qrt],4,1),yc("SpaceBeforeTemplateMiddleAndTail",a,[17,18],[_T("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),jl],4),yc("NoSpaceAfterTemplateHeadAndMiddle",[16,17],a,[uP("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),qrt],16,1),yc("NoSpaceBeforeTemplateMiddleAndTail",a,[17,18],[uP("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),jl],16),yc("SpaceAfterOpenBraceInJsxExpression",19,a,[_T("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),jl,jNe],4),yc("SpaceBeforeCloseBraceInJsxExpression",a,20,[_T("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),jl,jNe],4),yc("NoSpaceAfterOpenBraceInJsxExpression",19,a,[uP("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),jl,jNe],16),yc("NoSpaceBeforeCloseBraceInJsxExpression",a,20,[uP("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),jl,jNe],16),yc("SpaceAfterSemicolonInFor",27,a,[_T("insertSpaceAfterSemicolonInForStatements"),jl,G9e],4),yc("NoSpaceAfterSemicolonInFor",27,a,[uP("insertSpaceAfterSemicolonInForStatements"),jl,G9e],16),yc("SpaceBeforeBinaryOperator",a,v,[_T("insertSpaceBeforeAndAfterBinaryOperators"),jl,$M],4),yc("SpaceAfterBinaryOperator",v,a,[_T("insertSpaceBeforeAndAfterBinaryOperators"),jl,$M],4),yc("NoSpaceBeforeBinaryOperator",a,v,[uP("insertSpaceBeforeAndAfterBinaryOperators"),jl,$M],16),yc("NoSpaceAfterBinaryOperator",v,a,[uP("insertSpaceBeforeAndAfterBinaryOperators"),jl,$M],16),yc("SpaceBeforeOpenParenInFuncDecl",a,21,[_T("insertSpaceBeforeFunctionParenthesis"),jl,vz],4),yc("NoSpaceBeforeOpenParenInFuncDecl",a,21,[uP("insertSpaceBeforeFunctionParenthesis"),jl,vz],16),yc("NewLineBeforeOpenBraceInControl",re,19,[_T("placeOpenBraceOnNewLineForControlBlocks"),BNe,mve],8,1),yc("NewLineBeforeOpenBraceInFunction",$,19,[_T("placeOpenBraceOnNewLineForFunctions"),vz,mve],8,1),yc("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",K,19,[_T("placeOpenBraceOnNewLineForFunctions"),Urt,mve],8,1),yc("SpaceAfterTypeAssertion",32,a,[_T("insertSpaceAfterTypeAssertion"),jl,Yrt],4),yc("NoSpaceAfterTypeAssertion",32,a,[uP("insertSpaceAfterTypeAssertion"),jl,Yrt],16),yc("SpaceBeforeTypeAnnotation",a,[58,59],[_T("insertSpaceBeforeTypeAnnotation"),jl,MNe],4),yc("NoSpaceBeforeTypeAnnotation",a,[58,59],[uP("insertSpaceBeforeTypeAnnotation"),jl,MNe],16),yc("NoOptionalSemicolon",27,m,[$9e("semicolons","remove"),Qrt],32),yc("OptionalSemicolon",a,m,[$9e("semicolons","insert"),VUt],64)],se=[yc("NoSpaceBeforeSemicolon",a,27,[jl],16),yc("SpaceBeforeOpenBraceInControl",re,19,[gO("placeOpenBraceOnNewLineForControlBlocks"),BNe,X9e,Wrt],4,1),yc("SpaceBeforeOpenBraceInFunction",$,19,[gO("placeOpenBraceOnNewLineForFunctions"),vz,RNe,X9e,Wrt],4,1),yc("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",K,19,[gO("placeOpenBraceOnNewLineForFunctions"),Urt,X9e,Wrt],4,1),yc("NoSpaceBeforeComma",a,28,[jl],16),yc("NoSpaceBeforeOpenBracket",n(134,84),23,[jl],16),yc("NoSpaceAfterCloseBracket",24,a,[jl,Krt],16),yc("SpaceAfterSemicolon",27,a,[jl],4),yc("SpaceBetweenForAndAwaitKeyword",99,135,[jl],4),yc("SpaceBetweenDotDotDotAndTypeName",26,U,[jl],16),yc("SpaceBetweenStatements",[22,92,93,84],a,[jl,$rt,Brt],4),yc("SpaceAfterTryCatchFinally",[113,85,98],19,[jl],4)];return[...X,...ne,...se]}function yc(t,n,a,u,m,g=0){return{leftTokenRange:q9e(n),rightTokenRange:q9e(a),rule:{debugName:t,context:u,action:m,flags:g}}}function kx(t){return{tokens:t,isSpecific:!0}}function q9e(t){return typeof t=="number"?kx([t]):ua(t)?kx(t):t}function AN(t,n,a=[]){let u=[];for(let m=t;m<=n;m++)dr(a,m)||u.push(m);return kx(u)}function $9e(t,n){return a=>a.options&&a.options[t]===n}function _T(t){return n=>n.options&&bf(n.options,t)&&!!n.options[t]}function ONe(t){return n=>n.options&&bf(n.options,t)&&!n.options[t]}function uP(t){return n=>!n.options||!bf(n.options,t)||!n.options[t]}function gO(t){return n=>!n.options||!bf(n.options,t)||!n.options[t]||n.TokensAreOnSameLine()}function pve(t){return n=>!n.options||!bf(n.options,t)||!!n.options[t]}function G9e(t){return t.contextNode.kind===248}function Brt(t){return!G9e(t)}function $M(t){switch(t.contextNode.kind){case 226:return t.contextNode.operatorToken.kind!==28;case 227:case 194:case 234:case 281:case 276:case 182:case 192:case 193:case 238:return!0;case 208:case 265:case 271:case 277:case 260:case 169:case 306:case 172:case 171:return t.currentTokenSpan.kind===64||t.nextTokenSpan.kind===64;case 249:case 168:return t.currentTokenSpan.kind===103||t.nextTokenSpan.kind===103||t.currentTokenSpan.kind===64||t.nextTokenSpan.kind===64;case 250:return t.currentTokenSpan.kind===165||t.nextTokenSpan.kind===165}return!1}function FNe(t){return!$M(t)}function fCt(t){return!MNe(t)}function MNe(t){let n=t.contextNode.kind;return n===172||n===171||n===169||n===260||Vh(n)}function _Ct(t){return vu(t.contextNode)&&t.contextNode.questionToken}function jrt(t){return!_Ct(t)}function pCt(t){return t.contextNode.kind===227||t.contextNode.kind===194}function Wrt(t){return t.TokensAreOnSameLine()||RNe(t)}function zrt(t){return t.contextNode.kind===206||t.contextNode.kind===200||RJ(t)}function mve(t){return RNe(t)&&!(t.NextNodeAllOnSameLine()||t.NextNodeBlockIsOnOneLine())}function Vrt(t){return mCt(t)&&!(t.ContextNodeAllOnSameLine()||t.ContextNodeBlockIsOnOneLine())}function RJ(t){return mCt(t)&&(t.ContextNodeAllOnSameLine()||t.ContextNodeBlockIsOnOneLine())}function mCt(t){return Hrt(t.contextNode)}function RNe(t){return Hrt(t.nextTokenParent)}function Hrt(t){if(hCt(t))return!0;switch(t.kind){case 241:case 269:case 210:case 268:return!0}return!1}function vz(t){switch(t.contextNode.kind){case 262:case 174:case 173:case 177:case 178:case 179:case 218:case 176:case 219:case 264:return!0}return!1}function IUt(t){return!vz(t)}function hve(t){return t.contextNode.kind===262||t.contextNode.kind===218}function Urt(t){return hCt(t.contextNode)}function hCt(t){switch(t.kind){case 263:case 231:case 264:case 266:case 187:case 267:case 278:case 279:case 272:case 275:return!0}return!1}function NUt(t){switch(t.currentTokenParent.kind){case 263:case 267:case 266:case 299:case 268:case 255:return!0;case 241:{let n=t.currentTokenParent.parent;if(!n||n.kind!==219&&n.kind!==218)return!0}}return!1}function BNe(t){switch(t.contextNode.kind){case 245:case 255:case 248:case 249:case 250:case 247:case 258:case 246:case 254:case 299:return!0;default:return!1}}function gCt(t){return t.contextNode.kind===210}function AUt(t){return t.contextNode.kind===213}function PUt(t){return t.contextNode.kind===214}function LUt(t){return AUt(t)||PUt(t)}function OUt(t){return t.currentTokenSpan.kind!==28}function Bl(t){return t.nextTokenSpan.kind!==24}function yCt(t){return t.nextTokenSpan.kind!==22}function Jrt(t){return t.contextNode.kind===219}function K9e(t){return t.contextNode.kind===205}function jl(t){return t.TokensAreOnSameLine()&&t.contextNode.kind!==12}function qrt(t){return t.contextNode.kind!==12}function $rt(t){return t.contextNode.kind!==284&&t.contextNode.kind!==288}function jNe(t){return t.contextNode.kind===294||t.contextNode.kind===293}function vCt(t){return t.nextTokenParent.kind===291||t.nextTokenParent.kind===295&&t.nextTokenParent.parent.kind===291}function bCt(t){return t.contextNode.kind===291}function FUt(t){return t.nextTokenParent.kind!==295}function Grt(t){return t.nextTokenParent.kind===295}function SCt(t){return t.contextNode.kind===285}function Krt(t){return!vz(t)&&!RNe(t)}function MUt(t){return t.TokensAreOnSameLine()&&uw(t.contextNode)&&xCt(t.currentTokenParent)&&!xCt(t.nextTokenParent)}function xCt(t){for(;t&&An(t);)t=t.parent;return t&&t.kind===170}function RUt(t){return t.currentTokenParent.kind===261&&t.currentTokenParent.getStart(t.sourceFile)===t.currentTokenSpan.pos}function X9e(t){return t.formattingRequestKind!==2}function WNe(t){return t.contextNode.kind===267}function Xrt(t){return t.contextNode.kind===187}function BUt(t){return t.contextNode.kind===180}function CCt(t,n){if(t.kind!==30&&t.kind!==32)return!1;switch(n.kind){case 183:case 216:case 265:case 263:case 231:case 264:case 262:case 218:case 219:case 174:case 173:case 179:case 180:case 213:case 214:case 233:return!0;default:return!1}}function gve(t){return CCt(t.currentTokenSpan,t.currentTokenParent)||CCt(t.nextTokenSpan,t.nextTokenParent)}function Yrt(t){return t.contextNode.kind===216}function kCt(t){return!Yrt(t)}function jUt(t){return t.currentTokenSpan.kind===116&&t.currentTokenParent.kind===222}function wCt(t){return t.contextNode.kind===229&&t.contextNode.expression!==void 0}function WUt(t){return t.contextNode.kind===235}function TCt(t){return!zUt(t)}function zUt(t){switch(t.contextNode.kind){case 245:case 248:case 249:case 250:case 246:case 247:return!0;default:return!1}}function Qrt(t){let n=t.nextTokenSpan.kind,a=t.nextTokenSpan.pos;if(x5(n)){let g=t.nextTokenParent===t.currentTokenParent?NM(t.currentTokenParent,go(t.currentTokenParent,v=>!v.parent),t.sourceFile):t.nextTokenParent.getFirstToken(t.sourceFile);if(!g)return!0;n=g.kind,a=g.getStart(t.sourceFile)}let u=t.sourceFile.getLineAndCharacterOfPosition(t.currentTokenSpan.pos).line,m=t.sourceFile.getLineAndCharacterOfPosition(a).line;return u===m?n===20||n===1:n===240||n===27?!1:t.contextNode.kind===264||t.contextNode.kind===265?!hx(t.currentTokenParent)||!!t.currentTokenParent.type||n!==21:vu(t.currentTokenParent)?!t.currentTokenParent.initializer:t.currentTokenParent.kind!==248&&t.currentTokenParent.kind!==242&&t.currentTokenParent.kind!==240&&n!==23&&n!==21&&n!==40&&n!==41&&n!==44&&n!==14&&n!==28&&n!==228&&n!==16&&n!==15&&n!==25}function VUt(t){return sX(t.currentTokenSpan.end,t.currentTokenParent,t.sourceFile)}function HUt(t){return!ba(t.contextNode)||!mx(t.contextNode.expression)||t.contextNode.expression.getText().includes(".")}function UUt(t,n){return{options:t,getRules:ECt(),host:n}}var Zrt;function ECt(){return Zrt===void 0&&(Zrt=Y9e(Rrt())),Zrt}function sue(t){let n=0;return t&1&&(n|=28),t&2&&(n|=96),t&28&&(n|=28),t&96&&(n|=96),n}function Y9e(t){let n=eot(t);return a=>{let u=n[aue(a.currentTokenSpan.kind,a.nextTokenSpan.kind)];if(u){let m=[],g=0;for(let v of u){let x=~sue(g);v.action&x&&Yt(v.context,k=>k(a))&&(m.push(v),g|=v.action)}if(m.length)return m}}}function eot(t){let n=new Array(tot*tot),a=new Array(n.length);for(let u of t){let m=u.leftTokenRange.isSpecific&&u.rightTokenRange.isSpecific;for(let g of u.leftTokenRange.tokens)for(let v of u.rightTokenRange.tokens){let x=aue(g,v),k=n[x];k===void 0&&(k=n[x]=[]),JUt(k,u.rule,m,a,x)}}return n}function aue(t,n){return Se.assert(t<=165&&n<=165,"Must compute formatting context from tokens"),t*tot+n}var cue=5,Q9e=31,tot=166,BX=(t=>(t[t.StopRulesSpecific=0]="StopRulesSpecific",t[t.StopRulesAny=cue*1]="StopRulesAny",t[t.ContextRulesSpecific=cue*2]="ContextRulesSpecific",t[t.ContextRulesAny=cue*3]="ContextRulesAny",t[t.NoContextRulesSpecific=cue*4]="NoContextRulesSpecific",t[t.NoContextRulesAny=cue*5]="NoContextRulesAny",t))(BX||{});function JUt(t,n,a,u,m){let g=n.action&3?a?0:BX.StopRulesAny:n.context!==fc?a?BX.ContextRulesSpecific:BX.ContextRulesAny:a?BX.NoContextRulesSpecific:BX.NoContextRulesAny,v=u[m]||0;t.splice(qUt(v,g),0,n),u[m]=$Ut(v,g)}function qUt(t,n){let a=0;for(let u=0;u<=n;u+=cue)a+=t&Q9e,t>>=cue;return a}function $Ut(t,n){let a=(t>>n&Q9e)+1;return Se.assert((a&Q9e)===a,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),t&~(Q9e<Se.formatSyntaxKind(a)}),u}function GUt(t,n,a){let u=n.getLineAndCharacterOfPosition(t).line;if(u===0)return[];let m=Jo(u,n);for(;_k(n.text.charCodeAt(m));)m--;Ev(n.text.charCodeAt(m))&&m--;let g={pos:KD(u-1,n),end:m+1};return VNe(g,n,a,2)}function KUt(t,n,a){let u=rot(t,27,n);return ACt(oot(u),n,a,3)}function iot(t,n,a){let u=rot(t,19,n);if(!u)return[];let m=u.parent,g=oot(m),v={pos:oC(g.getStart(n),n),end:t};return VNe(v,n,a,4)}function not(t,n,a){let u=rot(t,20,n);return ACt(oot(u),n,a,5)}function XUt(t,n){let a={pos:0,end:t.text.length};return VNe(a,t,n,0)}function YUt(t,n,a,u){let m={pos:oC(t,a),end:n};return VNe(m,a,u,1)}function rot(t,n,a){let u=p0(t,a);return u&&u.kind===n&&t===u.getEnd()?u:void 0}function oot(t){let n=t;for(;n&&n.parent&&n.parent.end===t.end&&!QUt(n.parent,n);)n=n.parent;return n}function QUt(t,n){switch(t.kind){case 263:case 264:return bw(t.members,n);case 267:let a=t.body;return!!a&&a.kind===268&&bw(a.statements,n);case 307:case 241:case 268:return bw(t.statements,n);case 299:return bw(t.block.statements,n)}return!1}function ZUt(t,n){return a(n);function a(u){let m=_d(u,g=>KK(g.getStart(n),g.end,t)&&g);if(m){let g=a(m);if(g)return g}return u}}function DCt(t,n){if(!t.length)return m;let a=t.filter(g=>oJ(n,g.start,g.start+g.length)).sort((g,v)=>g.start-v.start);if(!a.length)return m;let u=0;return g=>{for(;;){if(u>=a.length)return!1;let v=a[u];if(g.end<=v.start)return!1;if(UW(g.pos,g.end,v.start,v.start+v.length))return!0;u++}};function m(){return!1}}function zNe(t,n,a){let u=t.getStart(a);if(u===n.pos&&t.end===n.end)return u;let m=p0(n.pos,a);return!m||m.end>=n.pos?t.pos:m.end}function ICt(t,n,a){let u=-1,m;for(;t;){let g=a.getLineAndCharacterOfPosition(t.getStart(a)).line;if(u!==-1&&g!==u)break;if(dP.shouldIndentChildNode(n,t,m,a))return n.indentSize;u=g,m=t,t=t.parent}return 0}function NCt(t,n,a,u,m,g){let v={pos:t.pos,end:t.end};return J9e(n.text,a,v.pos,v.end,x=>HNe(v,t,u,m,x,g,1,k=>!1,n))}function ACt(t,n,a,u){if(!t)return[];let m={pos:oC(t.getStart(n),n),end:t.end};return VNe(m,n,a,u)}function VNe(t,n,a,u){let m=ZUt(t,n);return J9e(n.text,n.languageVariant,zNe(m,t,n),t.end,g=>HNe(t,m,dP.getIndentationForNode(m,t,n,a.options),ICt(m,a.options,n),g,a,u,DCt(n.parseDiagnostics,t),n))}function HNe(t,n,a,u,m,{options:g,getRules:v,host:x},k,T,I){var A;let M=new LNe(I,k,g),R,H,U,$,K,re=-1,X=[];if(m.advance(),m.isOnToken()){let mt=I.getLineAndCharacterOfPosition(n.getStart(I)).line,ut=mt;uw(n)&&(ut=I.getLineAndCharacterOfPosition(Hke(n,I)).line),Ee(n,n,mt,ut,a,u)}let ne=m.getCurrentLeadingTrivia();if(ne){let mt=dP.nodeWillIndentChild(g,n,void 0,I,!1)?a+g.indentSize:a;xe(ne,mt,!0,ut=>{Le(ut,I.getLineAndCharacterOfPosition(ut.pos),n,n,void 0),we(ut.pos,mt,!1)}),g.trimTrailingWhitespace!==!1&&$e(ne)}if(H&&m.getTokenFullStart()>=t.end){let mt=m.isOnEOF()?m.readEOFTokenRange():m.isOnToken()?m.readTokenInfo(n).token:void 0;if(mt&&mt.pos===R){let ut=((A=p0(mt.end,I,n))==null?void 0:A.parent)||U;fe(mt,I.getLineAndCharacterOfPosition(mt.pos).line,ut,H,$,U,ut,void 0)}}return X;function se(mt,ut,ht,Kt,ni){if(oJ(Kt,mt,ut)||HW(Kt,mt,ut)){if(ni!==-1)return ni}else{let Ut=I.getLineAndCharacterOfPosition(mt).line,pi=oC(mt,I),wi=dP.findFirstNonWhitespaceColumn(pi,mt,I,g);if(Ut!==ht||mt===wi){let Bi=dP.getBaseIndentation(g);return Bi>wi?Bi:wi}}return-1}function _e(mt,ut,ht,Kt,ni,Ut){let pi=dP.shouldIndentChildNode(g,mt)?g.indentSize:0;return Ut===ut?{indentation:ut===K?re:ni.getIndentation(),delta:Math.min(g.indentSize,ni.getDelta(mt)+pi)}:ht===-1?mt.kind===21&&ut===K?{indentation:re,delta:ni.getDelta(mt)}:dP.childStartsOnTheSameLineWithElseInIfStatement(Kt,mt,ut,I)||dP.childIsUnindentedBranchOfConditionalExpression(Kt,mt,ut,I)||dP.argumentStartsOnSameLineAsPreviousArgument(Kt,mt,ut,I)?{indentation:ni.getIndentation(),delta:pi}:{indentation:ni.getIndentation()+ni.getDelta(mt),delta:pi}:{indentation:ht,delta:pi}}function ae(mt){if(tD(mt)){let ut=jt(mt.modifiers,jd,_n(mt.modifiers,Cy));if(ut)return ut.kind}switch(mt.kind){case 263:return 86;case 264:return 120;case 262:return 100;case 266:return 266;case 177:return 139;case 178:return 153;case 174:if(mt.asteriskToken)return 42;case 172:case 169:let ut=Nu(mt);if(ut)return ut.kind}}function le(mt,ut,ht,Kt){return{getIndentationForComment:(pi,wi,Bi)=>{switch(pi){case 20:case 24:case 22:return ht+Ut(Bi)}return wi!==-1?wi:ht},getIndentationForToken:(pi,wi,Bi,Bn)=>!Bn&&ni(pi,wi,Bi)?ht+Ut(Bi):ht,getIndentation:()=>ht,getDelta:Ut,recomputeIndentation:(pi,wi)=>{dP.shouldIndentChildNode(g,wi,mt,I)&&(ht+=pi?g.indentSize:-g.indentSize,Kt=dP.shouldIndentChildNode(g,mt)?g.indentSize:0)}};function ni(pi,wi,Bi){switch(wi){case 19:case 20:case 22:case 93:case 117:case 60:return!1;case 44:case 32:switch(Bi.kind){case 286:case 287:case 285:return!1}break;case 23:case 24:if(Bi.kind!==200)return!1;break}return ut!==pi&&!(uw(mt)&&wi===ae(mt))}function Ut(pi){return dP.nodeWillIndentChild(g,mt,pi,I,!0)?Kt:0}}function Ee(mt,ut,ht,Kt,ni,Ut){if(!oJ(t,mt.getStart(I),mt.getEnd()))return;let pi=le(mt,ht,ni,Ut),wi=ut;for(_d(mt,Ei=>{Bi(Ei,-1,mt,pi,ht,Kt,!1)},Ei=>{Bn(Ei,mt,ht,pi)});m.isOnToken()&&m.getTokenFullStart()Math.min(mt.end,t.end))break;mr(Ei,mt,pi,mt)}function Bi(Ei,zn,zr,xr,lo,_r,Hs,ai){if(Se.assert(!um(Ei)),Mm(Ei)||k3(zr,Ei))return zn;let mn=Ei.getStart(I),Nn=I.getLineAndCharacterOfPosition(mn).line,Gr=Nn;uw(Ei)&&(Gr=I.getLineAndCharacterOfPosition(Hke(Ei,I)).line);let ci=-1;if(Hs&&bw(t,zr)&&(ci=se(mn,Ei.end,lo,t,zn),ci!==-1&&(zn=ci)),!oJ(t,Ei.pos,Ei.end))return Ei.endt.end)return zn;if(vo.token.end>mn){vo.token.pos>mn&&m.skipToStartOf(Ei);break}mr(vo,mt,xr,mt)}if(!m.isOnToken()||m.getTokenFullStart()>=t.end)return zn;if(A7(Ei)){let vo=m.readTokenInfo(Ei);if(Ei.kind!==12)return Se.assert(vo.token.end===Ei.end,"Token end is child end"),mr(vo,mt,xr,Ei),zn}let gn=Ei.kind===170?Nn:_r,Sr=_e(Ei,Nn,ci,mt,xr,gn);return Ee(Ei,wi,Nn,Gr,Sr.indentation,Sr.delta),wi=mt,ai&&zr.kind===209&&zn===-1&&(zn=Sr.indentation),zn}function Bn(Ei,zn,zr,xr){Se.assert(f4(Ei)),Se.assert(!um(Ei));let lo=yve(zn,Ei),_r=xr,Hs=zr;if(!oJ(t,Ei.pos,Ei.end)){Ei.endEi.pos)break;if(Nn.token.kind===lo){Hs=I.getLineAndCharacterOfPosition(Nn.token.pos).line,mr(Nn,zn,xr,zn);let Gr;if(re!==-1)Gr=re;else{let ci=oC(Nn.token.pos,I);Gr=dP.findFirstNonWhitespaceColumn(ci,Nn.token.pos,I,g)}_r=le(zn,zr,Gr,g.indentSize)}else mr(Nn,zn,xr,zn)}let ai=-1;for(let Nn=0;Nnwe(Sr.pos,gn,!1))}Gr!==-1&&ci&&(we(Ei.token.pos,Gr,ai===1),K=Nn.line,re=Gr)}m.advance(),wi=zn}}function xe(mt,ut,ht,Kt){for(let ni of mt){let Ut=bw(t,ni);switch(ni.kind){case 3:Ut&&he(ni,ut,!ht),ht=!1;break;case 2:ht&&Ut&&Kt(ni),ht=!1;break;case 4:ht=!0;break}}return ht}function be(mt,ut,ht,Kt){for(let ni of mt)if(qW(ni.kind)&&bw(t,ni)){let Ut=I.getLineAndCharacterOfPosition(ni.pos);Le(ni,Ut,ut,ht,Kt)}}function Le(mt,ut,ht,Kt,ni){let Ut=T(mt),pi=0;if(!Ut)if(H)pi=fe(mt,ut.line,ht,H,$,U,Kt,ni);else{let wi=I.getLineAndCharacterOfPosition(t.pos);Oe(wi.line,ut.line)}return H=mt,R=mt.end,U=ht,$=ut.line,pi}function fe(mt,ut,ht,Kt,ni,Ut,pi,wi){M.updateContext(Kt,Ut,mt,ht,pi);let Bi=v(M),Bn=M.options.trimTrailingWhitespace!==!1,mr=0;return Bi?Te(Bi,Ei=>{if(mr=ft(Ei,Kt,ni,mt,ut),wi)switch(mr){case 2:ht.getStart(I)===mt.pos&&wi.recomputeIndentation(!1,pi);break;case 1:ht.getStart(I)===mt.pos&&wi.recomputeIndentation(!0,pi);break;default:Se.assert(mr===0)}Bn=Bn&&!(Ei.action&16)&&Ei.flags!==1}):Bn=Bn&&mt.kind!==1,ut!==ni&&Bn&&Oe(ni,ut,Kt),mr}function we(mt,ut,ht){let Kt=aot(ut,g);if(ht)rt(mt,0,Kt);else{let ni=I.getLineAndCharacterOfPosition(mt),Ut=KD(ni.line,I);(ut!==Ae(Ut,ni.character)||Ge(Kt,Ut))&&rt(Ut,ni.character,Kt)}}function Ae(mt,ut){let ht=0;for(let Kt=0;Kt0){let _r=aot(lo,g);rt(zr,xr.character,_r)}else qe(zr,xr.character)}}function Oe(mt,ut,ht){for(let Kt=mt;KtUt)continue;let pi=Re(ni,Ut);pi!==-1&&(Se.assert(pi===ni||!_k(I.text.charCodeAt(pi-1))),qe(pi,Ut+1-pi))}}function Re(mt,ut){let ht=ut;for(;ht>=mt&&_k(I.text.charCodeAt(ht));)ht--;return ht!==ut?ht+1:-1}function $e(mt){let ut=H?H.end:t.pos;for(let ht of mt)qW(ht.kind)&&(utPte(T,n)||n===T.end&&(T.kind===2||n===t.getFullWidth()))}function yve(t,n){switch(t.kind){case 176:case 262:case 218:case 174:case 173:case 219:case 179:case 180:case 184:case 185:case 177:case 178:if(t.typeParameters===n)return 30;if(t.parameters===n)return 21;break;case 213:case 214:if(t.typeArguments===n)return 30;if(t.arguments===n)return 21;break;case 263:case 231:case 264:case 265:if(t.typeParameters===n)return 30;break;case 183:case 215:case 186:case 233:case 205:if(t.typeArguments===n)return 30;break;case 187:return 19}return 0}function sot(t){switch(t){case 21:return 22;case 30:return 32;case 19:return 20}return 0}var sD,jX,vve;function aot(t,n){if((!sD||sD.tabSize!==n.tabSize||sD.indentSize!==n.indentSize)&&(sD={tabSize:n.tabSize,indentSize:n.indentSize},jX=vve=void 0),n.convertTabsToSpaces){let u,m=Math.floor(t/n.indentSize),g=t%n.indentSize;return vve||(vve=[]),vve[m]===void 0?(u=LM(" ",n.indentSize*m),vve[m]=u):u=vve[m],g?u+LM(" ",g):u}else{let u=Math.floor(t/n.tabSize),m=t-u*n.tabSize,g;return jX||(jX=[]),jX[u]===void 0?jX[u]=g=LM(" ",u):g=jX[u],m?g+LM(" ",m):g}}var dP;(t=>{let n;(he=>{he[he.Unknown=-1]="Unknown"})(n||(n={}));function a(he,Oe,Re,$e=!1){if(he>Oe.text.length)return x(Re);if(Re.indentStyle===0)return 0;let Ke=p0(he,Oe,void 0,!0),qe=lue(Oe,he,Ke||null);if(qe&&qe.kind===3)return u(Oe,he,Re,qe);if(!Ke)return x(Re);if(I0e(Ke.kind)&&Ke.getStart(Oe)<=he&&he=0),Ke<=qe)return Le(KD(qe,he),Oe,he,Re);let rt=KD(Ke,he),{column:_t,character:ft}=be(rt,Oe,he,Re);return _t===0?_t:he.text.charCodeAt(rt+ft)===42?_t-1:_t}function m(he,Oe,Re){let $e=Oe;for(;$e>0;){let qe=he.text.charCodeAt($e);if(!tN(qe))break;$e--}let Ke=oC($e,he);return Le(Ke,$e,he,Re)}function g(he,Oe,Re,$e,Ke,qe){let rt,_t=Re;for(;_t;){if(Lte(_t,Oe,he)&&Ae(qe,_t,rt,he,!0)){let mt=H(_t,he),ut=R(Re,_t,$e,he),ht=ut!==0?Ke&&ut===2?qe.indentSize:0:$e!==mt.line?qe.indentSize:0;return k(_t,mt,void 0,ht,he,!0,qe)}let ft=le(_t,he,qe,!0);if(ft!==-1)return ft;rt=_t,_t=_t.parent}return x(qe)}function v(he,Oe,Re,$e){let Ke=Re.getLineAndCharacterOfPosition(he.getStart(Re));return k(he,Ke,Oe,0,Re,!1,$e)}t.getIndentationForNode=v;function x(he){return he.baseIndentSize||0}t.getBaseIndentation=x;function k(he,Oe,Re,$e,Ke,qe,rt){var _t;let ft=he.parent;for(;ft;){let mt=!0;if(Re){let ni=he.getStart(Ke);mt=niRe.end}let ut=T(ft,he,Ke),ht=ut.line===Oe.line||$(ft,he,Oe.line,Ke);if(mt){let ni=(_t=X(he,Ke))==null?void 0:_t[0],Ut=!!ni&&H(ni,Ke).line>ut.line,pi=le(he,Ke,rt,Ut);if(pi!==-1||(pi=A(he,ft,Oe,ht,Ke,rt),pi!==-1))return pi+$e}Ae(rt,ft,he,Ke,qe)&&!ht&&($e+=rt.indentSize);let Kt=U(ft,he,Oe.line,Ke);he=ft,ft=he.parent,Oe=Kt?Ke.getLineAndCharacterOfPosition(he.getStart(Ke)):ut}return $e+x(rt)}function T(he,Oe,Re){let $e=X(Oe,Re),Ke=$e?$e.pos:he.getStart(Re);return Re.getLineAndCharacterOfPosition(Ke)}function I(he,Oe,Re){let $e=iD(he);return $e&&$e.listItemIndex>0?Ee($e.list.getChildren(),$e.listItemIndex-1,Oe,Re):-1}function A(he,Oe,Re,$e,Ke,qe){return(y1(he)||K$(he))&&(Oe.kind===307||!$e)?xe(Re,Ke,qe):-1}let M;(he=>{he[he.Unknown=0]="Unknown",he[he.OpenBrace=1]="OpenBrace",he[he.CloseBrace=2]="CloseBrace"})(M||(M={}));function R(he,Oe,Re,$e){let Ke=NM(he,Oe,$e);if(!Ke)return 0;if(Ke.kind===19)return 1;if(Ke.kind===20){let qe=H(Ke,$e).line;return Re===qe?2:0}return 0}function H(he,Oe){return Oe.getLineAndCharacterOfPosition(he.getStart(Oe))}function U(he,Oe,Re,$e){if(!(Od(he)&&dr(he.arguments,Oe)))return!1;let Ke=he.expression.getEnd();return Df($e,Ke).line===Re}t.isArgumentAndStartLineOverlapsExpressionBeingCalled=U;function $(he,Oe,Re,$e){if(he.kind===245&&he.elseStatement===Oe){let Ke=Np(he,93,$e);return Se.assert(Ke!==void 0),H(Ke,$e).line===Re}return!1}t.childStartsOnTheSameLineWithElseInIfStatement=$;function K(he,Oe,Re,$e){if(Cp(he)&&(Oe===he.whenTrue||Oe===he.whenFalse)){let Ke=Df($e,he.condition.end).line;if(Oe===he.whenTrue)return Re===Ke;{let qe=H(he.whenTrue,$e).line,rt=Df($e,he.whenTrue.end).line;return Ke===qe&&rt===Re}}return!1}t.childIsUnindentedBranchOfConditionalExpression=K;function re(he,Oe,Re,$e){if(WE(he)){if(!he.arguments)return!1;let Ke=jt(he.arguments,ft=>ft.pos===Oe.pos);if(!Ke)return!1;let qe=he.arguments.indexOf(Ke);if(qe===0)return!1;let rt=he.arguments[qe-1],_t=Df($e,rt.getEnd()).line;if(Re===_t)return!0}return!1}t.argumentStartsOnSameLineAsPreviousArgument=re;function X(he,Oe){return he.parent&&se(he.getStart(Oe),he.getEnd(),he.parent,Oe)}t.getContainingList=X;function ne(he,Oe,Re){return Oe&&se(he,he,Oe,Re)}function se(he,Oe,Re,$e){switch(Re.kind){case 183:return Ke(Re.typeArguments);case 210:return Ke(Re.properties);case 209:return Ke(Re.elements);case 187:return Ke(Re.members);case 262:case 218:case 219:case 174:case 173:case 179:case 176:case 185:case 180:return Ke(Re.typeParameters)||Ke(Re.parameters);case 177:return Ke(Re.parameters);case 263:case 231:case 264:case 265:case 345:return Ke(Re.typeParameters);case 214:case 213:return Ke(Re.typeArguments)||Ke(Re.arguments);case 261:return Ke(Re.declarations);case 275:case 279:return Ke(Re.elements);case 206:case 207:return Ke(Re.elements)}function Ke(qe){return qe&&HW(_e(Re,qe,$e),he,Oe)?qe:void 0}}function _e(he,Oe,Re){let $e=he.getChildren(Re);for(let Ke=1;Ke<$e.length-1;Ke++)if($e[Ke].pos===Oe.pos&&$e[Ke].end===Oe.end)return{pos:$e[Ke-1].end,end:$e[Ke+1].getStart(Re)};return Oe}function ae(he,Oe,Re){return he?xe(Oe.getLineAndCharacterOfPosition(he.pos),Oe,Re):-1}function le(he,Oe,Re,$e){if(he.parent&&he.parent.kind===261)return-1;let Ke=X(he,Oe);if(Ke){let qe=Ke.indexOf(he);if(qe!==-1){let rt=Ee(Ke,qe,Oe,Re);if(rt!==-1)return rt}return ae(Ke,Oe,Re)+($e?Re.indentSize:0)}return-1}function Ee(he,Oe,Re,$e){Se.assert(Oe>=0&&Oe=0;rt--){if(he[rt].kind===28)continue;if(Re.getLineAndCharacterOfPosition(he[rt].end).line!==qe.line)return xe(qe,Re,$e);qe=H(he[rt],Re)}return-1}function xe(he,Oe,Re){let $e=Oe.getPositionOfLineAndCharacter(he.line,0);return Le($e,$e+he.character,Oe,Re)}function be(he,Oe,Re,$e){let Ke=0,qe=0;for(let rt=he;rtPCt});var eJt="providePostPasteEdits";function PCt(t,n,a,u,m,g,v,x){return{edits:Gs.ChangeTracker.with({host:m,formatContext:v,preferences:g},T=>tJt(t,n,a,u,m,g,v,x,T)),fixId:eJt}}function tJt(t,n,a,u,m,g,v,x,k){let T;n.length!==a.length&&(T=n.length===1?n[0]:n.join(fO(v.host,v.options)));let I=[],A=t.text;for(let R=a.length-1;R>=0;R--){let{pos:H,end:U}=a[R];A=T?A.slice(0,H)+T+A.slice(U):A.slice(0,H)+n[R]+A.slice(U)}let M;Se.checkDefined(m.runWithTemporaryFileUpdate).call(m,t.fileName,A,(R,H,U)=>{if(M=vb.createImportAdder(U,R,g,m),u?.range){Se.assert(u.range.length===n.length),u.range.forEach(re=>{let X=u.file.statements,ne=_n(X,_e=>_e.end>re.pos);if(ne===-1)return;let se=_n(X,_e=>_e.end>=re.end,ne);se!==-1&&re.end<=X[se].getStart()&&se--,I.push(...X.slice(ne,se===-1?X.length:se+1))});let $=xDe(u.file,I,H.getTypeChecker(),AQe(U,I,H.getTypeChecker()),{pos:u.range[0].pos,end:u.range[u.range.length-1].end});Se.assertIsDefined(H);let K=!nie(t.fileName,H,m,!!u.file.commonJsModuleIndicator);zMe(u.file,$.targetFileImportsFromOldFile,k,K),xF(u.file,$.oldImportsNeededByTargetFile,$.targetFileImportsFromOldFile,H.getTypeChecker(),R,M)}else{let $={sourceFile:U,program:H,cancellationToken:x,host:m,preferences:g,formatContext:v},K=0;a.forEach((re,X)=>{let ne=re.end-re.pos,se=T??n[X],_e=re.pos+K,ae=_e+se.length,le={pos:_e,end:ae};K+=se.length-ne;let Ee=go(wc($.sourceFile,le.pos),xe=>bw(xe,le));Ee&&_d(Ee,function xe(be){if(Ai(be)&&xx(le,be.getStart(U))&&!R?.getTypeChecker().resolveName(be.text,be,-1,!1))return M.addImportForUnresolvedIdentifier($,be,!0);be.forEachChild(xe)})})}M.writeFixes(k,Nk(u?u.file:t,g))}),M.hasFixes()&&a.forEach((R,H)=>{k.replaceRangeWithText(t,{pos:R.pos,end:R.end},T??n[H])})}var cot={};d(cot,{ANONYMOUS:()=>q0e,AccessFlags:()=>WCe,AssertionLevel:()=>lCe,AssignmentDeclarationKind:()=>qCe,AssignmentKind:()=>$7,Associativity:()=>twe,BreakpointResolver:()=>Nye,BuilderFileEmit:()=>cte,BuilderProgramKind:()=>KFe,BuilderState:()=>uI,CallHierarchy:()=>w9,CharacterCodes:()=>tke,CheckFlags:()=>MCe,CheckMode:()=>$Te,ClassificationType:()=>m0e,ClassificationTypeNames:()=>AEe,CommentDirectiveType:()=>$_e,Comparison:()=>B,CompletionInfoFlags:()=>P7e,CompletionTriggerKind:()=>d0e,Completions:()=>IJ,ContainerFlags:()=>BTe,ContextFlags:()=>O$,Debug:()=>Se,DiagnosticCategory:()=>Doe,Diagnostics:()=>j,DocumentHighlights:()=>Sle,ElementFlags:()=>jCe,EmitFlags:()=>spe,EmitHint:()=>rke,EmitOnly:()=>G_e,EndOfLineState:()=>EEe,ExitStatus:()=>DCe,ExportKind:()=>X0e,Extension:()=>GQ,ExternalEmitHelpers:()=>nke,FileIncludeKind:()=>koe,FilePreprocessingDiagnosticsKind:()=>ECe,FileSystemEntryKind:()=>_$e,FileWatcherEventKind:()=>cke,FindAllReferences:()=>Wm,FlattenLevel:()=>yFe,FlowFlags:()=>Coe,ForegroundColorEscapeSequences:()=>P2e,FunctionFlags:()=>Sse,GeneratedIdentifierFlags:()=>Xs,GetLiteralTextFlags:()=>A2,GoToDefinition:()=>Cie,HighlightSpanKind:()=>_0e,IdentifierNameMap:()=>NK,ImportKind:()=>ble,ImportsNotUsedAsValues:()=>Ioe,IndentStyle:()=>kEe,IndexFlags:()=>tpe,IndexKind:()=>ipe,InferenceFlags:()=>UCe,InferencePriority:()=>HCe,InlayHintKind:()=>f0e,InlayHints:()=>SNe,InternalEmitFlags:()=>ape,InternalNodeBuilderFlags:()=>ACe,InternalSymbolName:()=>RCe,IntersectionFlags:()=>NCe,InvalidatedProjectKind:()=>u7e,JSDocParsingMode:()=>ake,JsDoc:()=>N9,JsTyping:()=>lP,JsxEmit:()=>YCe,JsxFlags:()=>kCe,JsxReferenceKind:()=>zCe,LanguageFeatureMinimumTarget:()=>ike,LanguageServiceMode:()=>xEe,LanguageVariant:()=>ZCe,LexicalEnvironmentFlags:()=>ske,ListFormat:()=>cpe,LogLevel:()=>j3e,MapCode:()=>C9e,MemberOverrideStatus:()=>ICe,ModifierFlags:()=>CCe,ModuleDetectionKind:()=>$Ce,ModuleInstanceState:()=>ice,ModuleKind:()=>$Q,ModuleResolutionKind:()=>aH,ModuleSpecifierEnding:()=>uU,NavigateTo:()=>lDe,NavigationBar:()=>ZYe,NewLineKind:()=>t5,NodeBuilderFlags:()=>K_e,NodeCheckFlags:()=>Q_e,NodeFactoryFlags:()=>sae,NodeFlags:()=>xCe,NodeResolutionFeatures:()=>J8e,ObjectFlags:()=>epe,OperationCanceledException:()=>sH,OperatorPrecedence:()=>P8,OrganizeImports:()=>P9,OrganizeImportsMode:()=>dT,OuterExpressionKinds:()=>oke,OutliningElementsCollector:()=>N9e,OutliningSpanKind:()=>$ce,OutputFileType:()=>TEe,PackageJsonAutoImportPreference:()=>Jce,PackageJsonDependencyGroup:()=>A7e,PatternMatchKind:()=>tDe,PollingInterval:()=>upe,PollingWatchKind:()=>XCe,PragmaKindFlags:()=>lpe,PredicateSemantics:()=>wCe,PrivateIdentifierKind:()=>Kme,ProcessLevel:()=>YKe,ProgramUpdateLevel:()=>kXe,QuotePreference:()=>dO,RegularExpressionFlags:()=>qQ,RelationComparisonResult:()=>xoe,Rename:()=>NNe,ScriptElementKind:()=>IEe,ScriptElementKindModifier:()=>NEe,ScriptKind:()=>cH,ScriptSnapshot:()=>SEe,ScriptTarget:()=>QCe,SemanticClassificationFormat:()=>CEe,SemanticMeaning:()=>h0e,SemicolonPreference:()=>p0e,SignatureCheckMode:()=>Xhe,SignatureFlags:()=>Eoe,SignatureHelp:()=>ave,SignatureInfo:()=>Oge,SignatureKind:()=>VCe,SmartSelectionRange:()=>F9e,SnippetKind:()=>ope,StatisticType:()=>oYe,StructureIsReused:()=>woe,SymbolAccessibility:()=>LCe,SymbolDisplay:()=>mO,SymbolDisplayPartKind:()=>UK,SymbolFlags:()=>Y_e,SymbolFormatFlags:()=>X_e,SyntaxKind:()=>SCe,Ternary:()=>JCe,ThrottledCancellationToken:()=>uZe,TokenClass:()=>DEe,TokenFlags:()=>TCe,TransformFlags:()=>rpe,TypeFacts:()=>Khe,TypeFlags:()=>Z_e,TypeFormatFlags:()=>PCe,TypeMapKind:()=>npe,TypePredicateKind:()=>OCe,TypeReferenceSerializationKind:()=>FCe,UnionReduction:()=>Toe,UpToDateStatusType:()=>BXe,VarianceFlags:()=>BCe,Version:()=>ve,VersionRange:()=>vCe,WatchDirectoryFlags:()=>eke,WatchDirectoryKind:()=>KCe,WatchFileKind:()=>GCe,WatchLogLevel:()=>N2e,WatchType:()=>Ty,accessPrivateIdentifier:()=>rge,addEmitFlags:()=>gN,addEmitHelper:()=>cL,addEmitHelpers:()=>bk,addInternalEmitFlags:()=>Na,addNodeFactoryPatcher:()=>GOe,addObjectAllocatorPatcher:()=>xme,addRange:()=>Ho,addRelatedInfo:()=>Pd,addSyntheticLeadingComment:()=>If,addSyntheticTrailingComment:()=>Zj,addToSeen:()=>HC,advancedAsyncSuperHelper:()=>_ee,affectsDeclarationPathOptionDeclarations:()=>Eee,affectsEmitOptionDeclarations:()=>g8e,allKeysStartWithDot:()=>ece,altDirectorySeparator:()=>dke,and:()=>wv,append:()=>ar,appendIfUnique:()=>oo,arrayFrom:()=>tc,arrayIsEqualTo:()=>ho,arrayIsHomogeneous:()=>eM,arrayOf:()=>r4,arrayReverseIterator:()=>Ws,arrayToMap:()=>I_,arrayToMultiMap:()=>Ql,arrayToNumericMap:()=>Zo,assertType:()=>mCe,assign:()=>o4,asyncSuperHelper:()=>fae,attachFileToDiagnostics:()=>OG,base64decode:()=>cwe,base64encode:()=>Mse,binarySearch:()=>Q_,binarySearchKey:()=>Zu,bindSourceFile:()=>jTe,breakIntoCharacterSpans:()=>VYe,breakIntoWordSpans:()=>iDe,buildLinkParts:()=>UEe,buildOpts:()=>Iee,buildOverload:()=>lot,bundlerModuleNameResolver:()=>q8e,canBeConvertedToAsync:()=>aDe,canEmitTsBuildInfo:()=>JU,canHaveDecorators:()=>_W,canHaveExportModifier:()=>pU,canHaveFlowNode:()=>vse,canHaveIllegalDecorators:()=>dK,canHaveIllegalModifiers:()=>oO,canHaveIllegalType:()=>Iae,canHaveIllegalTypeParameters:()=>mGe,canHaveJSDoc:()=>gG,canHaveLocals:()=>zE,canHaveModifiers:()=>tD,canHaveModuleSpecifier:()=>Zpe,canHaveSymbol:()=>$x,canIncludeBindAndCheckDiagnostics:()=>Z7,canJsonReportNoInputFiles:()=>FU,canProduceDiagnostics:()=>uge,canUsePropertyAccess:()=>Rme,canWatchAffectingLocation:()=>Y2e,canWatchAtTypes:()=>K2e,canWatchDirectoryOrFile:()=>Uge,cartesianProduct:()=>V_e,cast:()=>$d,chainBundle:()=>kN,chainDiagnosticMessages:()=>Zl,changeAnyExtension:()=>QB,changeCompilerHostLikeToUseCache:()=>u9,changeExtension:()=>J3,changeFullExtension:()=>yu,changesAffectModuleResolution:()=>uj,changesAffectingProgramStructure:()=>fh,characterCodeToRegularExpressionFlag:()=>Ooe,childIsDecorated:()=>vj,classElementOrClassElementParameterIsDecorated:()=>bj,classHasClassThisAssignment:()=>o9,classHasDeclaredOrExplicitlyAssignedName:()=>cge,classHasExplicitlyAssignedName:()=>r2e,classOrConstructorParameterIsDecorated:()=>aN,classicNameResolver:()=>gKe,classifier:()=>yZe,cleanExtendedConfigCache:()=>I2e,clear:()=>La,clearMap:()=>Zb,clearSharedExtendedConfigFileWatcher:()=>LFe,climbPastPropertyAccess:()=>FEe,clone:()=>Uw,cloneCompilerOptions:()=>ZK,closeFileWatcher:()=>GT,closeFileWatcherOf:()=>Dk,codefix:()=>vb,collapseTextChangeRangesAcrossMultipleVersions:()=>u0,collectExternalModuleInfo:()=>tge,combine:()=>pu,combinePaths:()=>Ps,commandLineOptionOfCustomType:()=>aTe,commentPragmas:()=>KQ,commonOptionsWithBuild:()=>rTe,compact:()=>no,compareBooleans:()=>QI,compareDataObjects:()=>nU,compareDiagnostics:()=>FG,compareEmitHelpers:()=>Rwe,compareNumberOfDirectorySeparators:()=>O5,comparePaths:()=>fk,comparePathsCaseInsensitive:()=>hm,comparePathsCaseSensitive:()=>pke,comparePatternKeys:()=>Uee,compareProperties:()=>p1,compareStringsCaseInsensitive:()=>RQ,compareStringsCaseInsensitiveEslintCompatible:()=>A6,compareStringsCaseSensitive:()=>Jg,compareStringsCaseSensitiveUI:()=>WQ,compareTextSpans:()=>j_e,compareValues:()=>m_,compilerOptionsAffectDeclarationPath:()=>H3,compilerOptionsAffectEmit:()=>Jse,compilerOptionsAffectSemanticDiagnostics:()=>RG,compilerOptionsDidYouMeanDiagnostics:()=>She,compilerOptionsIndicateEsModules:()=>M0e,computeCommonSourceDirectoryOfFilenames:()=>nte,computeLineAndCharacterOfPosition:()=>Bd,computeLineOfPosition:()=>l4,computeLineStarts:()=>E7,computePositionOfLineAndCharacter:()=>mpe,computeSignatureWithDiagnostics:()=>Tce,computeSuggestionDiagnostics:()=>lMe,computedOptions:()=>Sy,concatenate:()=>Pl,concatenateDiagnosticMessageChains:()=>Hse,consumesNodeCoreModules:()=>gle,contains:()=>dr,containsIgnoredPath:()=>V8,containsObjectRestOrSpread:()=>fW,containsParseError:()=>B7,containsPath:()=>Gp,convertCompilerOptionsForTelemetry:()=>SK,convertCompilerOptionsFromJson:()=>GGe,convertJsonOption:()=>vW,convertToBase64:()=>yme,convertToJson:()=>Jae,convertToObject:()=>D8e,convertToOptionsWithAbsolutePaths:()=>Oee,convertToRelativePath:()=>lH,convertToTSConfig:()=>hTe,convertTypeAcquisitionFromJson:()=>KGe,copyComments:()=>Qv,copyEntries:()=>eG,copyLeadingComments:()=>Ute,copyProperties:()=>PS,copyTrailingAsLeadingComments:()=>iz,copyTrailingComments:()=>bL,couldStartTrivia:()=>Sf,countWhere:()=>Tn,createAbstractBuilder:()=>Hge,createAccessorPropertyBackingField:()=>Pae,createAccessorPropertyGetRedirector:()=>CGe,createAccessorPropertySetRedirector:()=>Lae,createBaseNodeFactory:()=>rae,createBinaryExpressionTrampoline:()=>Qwe,createBuilderProgram:()=>Mge,createBuilderProgramUsingIncrementalBuildInfo:()=>jge,createBuilderStatusReporter:()=>Zge,createCacheableExportInfoMap:()=>sz,createCachedDirectoryStructureHost:()=>W4,createClassifier:()=>DYe,createCommentDirectivesMap:()=>RA,createCompilerDiagnostic:()=>Th,createCompilerDiagnosticForInvalidCustomType:()=>lTe,createCompilerDiagnosticFromMessageChain:()=>Vse,createCompilerHost:()=>wXe,createCompilerHostFromProgramHost:()=>gte,createCompilerHostWorker:()=>rte,createDetachedDiagnostic:()=>Vj,createDiagnosticCollection:()=>kse,createDiagnosticForFileFromMessageChain:()=>Vpe,createDiagnosticForNode:()=>ws,createDiagnosticForNodeArray:()=>ob,createDiagnosticForNodeArrayFromMessageChain:()=>BC,createDiagnosticForNodeFromMessageChain:()=>WT,createDiagnosticForNodeInSourceFile:()=>ss,createDiagnosticForRange:()=>Hpe,createDiagnosticMessageChainFromDiagnostic:()=>dse,createDiagnosticReporter:()=>_9,createDocumentPositionMapper:()=>QTe,createDocumentRegistry:()=>xle,createDocumentRegistryInternal:()=>mX,createEmitAndSemanticDiagnosticsBuilderProgram:()=>Vge,createEmitHelperFactory:()=>Mwe,createEmptyExports:()=>Cae,createEvaluator:()=>YG,createExpressionForJsxElement:()=>nhe,createExpressionForJsxFragment:()=>Kwe,createExpressionForObjectLiteralElementLike:()=>Xwe,createExpressionForPropertyName:()=>rhe,createExpressionFromEntityName:()=>rO,createExternalHelpersImportDeclarationIfNeeded:()=>EU,createFileDiagnostic:()=>k_,createFileDiagnosticFromMessageChain:()=>TH,createFlowNode:()=>rP,createForOfBindingStatement:()=>cK,createFutureSourceFile:()=>_O,createGetCanonicalFileName:()=>U0,createGetIsolatedDeclarationErrors:()=>b2e,createGetSourceFile:()=>Cge,createGetSymbolAccessibilityDiagnosticForNode:()=>lF,createGetSymbolAccessibilityDiagnosticForNodeName:()=>v2e,createGetSymbolWalker:()=>vKe,createIncrementalCompilerHost:()=>Yge,createIncrementalProgram:()=>Qge,createJsxFactoryExpression:()=>kae,createLanguageService:()=>vRe,createLanguageServiceSourceFile:()=>JDe,createMemberAccessForPropertyName:()=>XC,createModeAwareCache:()=>aI,createModeAwareCacheKey:()=>wK,createModeMismatchDetails:()=>MA,createModuleNotFoundChain:()=>yy,createModuleResolutionCache:()=>jU,createModuleResolutionLoader:()=>Ige,createModuleResolutionLoaderUsingGlobalCache:()=>qge,createModuleSpecifierResolutionHost:()=>XW,createMultiMap:()=>Hb,createNameResolver:()=>oT,createNodeConverters:()=>Wme,createNodeFactory:()=>cee,createOptionNameMap:()=>Wae,createOverload:()=>bve,createPackageJsonImportFilter:()=>bJ,createPackageJsonInfo:()=>hle,createParenthesizerRules:()=>xy,createPatternMatcher:()=>oye,createPrinter:()=>j4,createPrinterWithDefaults:()=>AFe,createPrinterWithRemoveComments:()=>dF,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>bge,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>gce,createProgram:()=>f9,createProgramHost:()=>tEe,createPropertyNameNodeForIdentifierOrLiteral:()=>nee,createQueue:()=>ZV,createRange:()=>tT,createRedirectedBuilderProgram:()=>G2e,createResolutionCache:()=>eEe,createRuntimeTypeSerializer:()=>a2e,createScanner:()=>LA,createSemanticDiagnosticsBuilderProgram:()=>zge,createSet:()=>yoe,createSolutionBuilder:()=>oEe,createSolutionBuilderHost:()=>rEe,createSolutionBuilderWithWatch:()=>VXe,createSolutionBuilderWithWatchHost:()=>WXe,createSortedArray:()=>os,createSourceFile:()=>AU,createSourceMapGenerator:()=>FKe,createSourceMapSource:()=>wa,createSuperAccessVariableStatement:()=>l2e,createSymbolTable:()=>Au,createSymlinkCache:()=>A5,createSyntacticTypeNodeBuilder:()=>D7e,createSystemWatchFunctions:()=>$3e,createTextChange:()=>lJ,createTextChangeFromStartLength:()=>$4,createTextChangeRange:()=>aZ,createTextRangeFromNode:()=>oS,createTextRangeFromSpan:()=>Fte,createTextSpan:()=>h1,createTextSpanFromBounds:()=>cg,createTextSpanFromNode:()=>Cx,createTextSpanFromRange:()=>q4,createTextSpanFromStringLiteralLikeContent:()=>rle,createTextWriter:()=>ume,createTokenRange:()=>tU,createTypeChecker:()=>Qhe,createTypeReferenceDirectiveResolutionCache:()=>Bee,createTypeReferenceResolutionLoader:()=>ote,createWatchCompilerHost:()=>r7e,createWatchCompilerHostOfConfigFile:()=>Xge,createWatchCompilerHostOfFilesAndCompilerOptions:()=>vte,createWatchFactory:()=>hte,createWatchHost:()=>Mce,createWatchProgram:()=>jce,createWatchStatusReporter:()=>_te,createWriteFileMeasuringIO:()=>kge,declarationNameToString:()=>Gf,decodeMappings:()=>Zhe,decodedTextSpanIntersectsWith:()=>q$,deduplicate:()=>la,defaultInitCompilerOptions:()=>vhe,defaultMaximumTruncationLength:()=>Z$,diagnosticCategoryName:()=>e5,diagnosticToString:()=>RM,diagnosticsEqualityComparer:()=>Q7,directoryProbablyExists:()=>fN,directorySeparator:()=>uh,displayPart:()=>Pk,displayPartsToString:()=>lz,disposeEmitNodes:()=>uee,documentSpansEqual:()=>ale,dumpTracingLegend:()=>q_e,elementAt:()=>C0,elideNodes:()=>xGe,emitDetachedComments:()=>w0,emitFiles:()=>T2e,emitFilesAndReportErrors:()=>jW,emitFilesAndReportErrorsAndGetExitStatus:()=>tJ,emitModuleKindIsNonNodeESM:()=>UC,emitNewLineBeforeLeadingCommentOfPosition:()=>fme,emitResolverSkipsTypeChecking:()=>w2e,emitSkippedWithNoDiagnostics:()=>BFe,emptyArray:()=>F,emptyFileSystemEntries:()=>UG,emptyMap:()=>Y,emptyOptions:()=>t2,endsWith:()=>xh,ensurePathIsNonModuleName:()=>FE,ensureScriptKind:()=>Xse,ensureTrailingDirectorySeparator:()=>Fs,entityNameToString:()=>$b,enumerateInsertsAndDeletes:()=>$B,equalOwnProperties:()=>k2,equateStringsCaseInsensitive:()=>rw,equateStringsCaseSensitive:()=>ud,equateValues:()=>p8,escapeJsxAttributeString:()=>rwe,escapeLeadingUnderscores:()=>kh,escapeNonAsciiString:()=>Ese,escapeSnippetText:()=>_w,escapeString:()=>w4,escapeTemplateSubstitution:()=>wse,evaluatorResult:()=>bg,every:()=>Yt,executeCommandLine:()=>uYe,expandPreOrPostfixIncrementOrDecrementExpression:()=>See,explainFiles:()=>Lce,explainIfFileIsRedirectAndImpliedFormat:()=>Oce,exportAssignmentIsAlias:()=>Nj,expressionResultIsUnused:()=>$G,extend:()=>nw,extensionFromPath:()=>F5,extensionIsTS:()=>eae,extensionsNotSupportingExtensionlessResolution:()=>zG,externalHelpersModuleNameText:()=>R7,factory:()=>Me,fileContainsPackageImport:()=>fX,fileExtensionIs:()=>Wh,fileExtensionIsOneOf:()=>gg,fileIncludeReasonToDiagnostics:()=>mte,fileShouldUseJavaScriptRequire:()=>nie,filter:()=>Qn,filterMutate:()=>ks,filterSemanticDiagnostics:()=>YU,find:()=>jt,findAncestor:()=>go,findBestPatternMatch:()=>tH,findChildOfKind:()=>Np,findComputedPropertyNameCacheAssignment:()=>dhe,findConfigFile:()=>vce,findConstructorDeclaration:()=>vk,findContainingList:()=>aJ,findDiagnosticForNode:()=>yle,findFirstNonJsxWhitespaceToken:()=>El,findIndex:()=>_n,findLast:()=>mi,findLastIndex:()=>Pr,findListItemInfo:()=>iD,findModifier:()=>FM,findNextToken:()=>NM,findPackageJson:()=>mle,findPackageJsons:()=>Yte,findPrecedingMatchingToken:()=>ile,findPrecedingToken:()=>p0,findSuperStatementIndexPath:()=>wW,findTokenOnLeftOfPosition:()=>ele,findUseStrictPrologue:()=>e8e,first:()=>of,firstDefined:()=>Je,firstDefinedIterator:()=>Xe,firstIterator:()=>AC,firstOrOnly:()=>S9,firstOrUndefined:()=>Ed,firstOrUndefinedIterator:()=>c0,fixupCompilerOptions:()=>cDe,flatMap:()=>za,flatMapIterator:()=>Ya,flatMapToMutable:()=>Uc,flatten:()=>cr,flattenCommaList:()=>Zwe,flattenDestructuringAssignment:()=>HU,flattenDestructuringBinding:()=>CM,flattenDiagnosticMessageText:()=>wN,forEach:()=>ee,forEachAncestor:()=>af,forEachAncestorDirectory:()=>T2,forEachChild:()=>_d,forEachChildRecursively:()=>NU,forEachEmittedFile:()=>x2e,forEachEnclosingBlockScopeContainer:()=>use,forEachEntry:()=>Km,forEachExternalModuleToImportFrom:()=>sie,forEachImportClauseDeclaration:()=>FZ,forEachKey:()=>N2,forEachLeadingCommentRange:()=>iZ,forEachNameInAccessChainWalkingLeft:()=>N4,forEachNameOfDefaultExport:()=>_X,forEachPropertyAssignment:()=>h5,forEachResolvedProjectReference:()=>j2e,forEachReturnStatement:()=>Gb,forEachRight:()=>Te,forEachTrailingCommentRange:()=>Mf,forEachTsConfigPropArray:()=>DZ,forEachUnique:()=>cle,forEachYieldExpression:()=>bOe,formatColorAndReset:()=>fF,formatDiagnostic:()=>bce,formatDiagnostics:()=>A2e,formatDiagnosticsWithColorAndContext:()=>F2e,formatGeneratedName:()=>rF,formatGeneratedNamePart:()=>wee,formatLocation:()=>Ege,formatMessage:()=>sU,formatStringFromArgs:()=>KA,formatting:()=>Dy,generateDjb2Hash:()=>F$,generateTSConfig:()=>N8e,getAdjustedReferenceLocation:()=>F7e,getAdjustedRenameLocation:()=>w0e,getAliasDeclarationFromName:()=>QD,getAllAccessorDeclarations:()=>j2,getAllDecoratorsOfClass:()=>Xee,getAllDecoratorsOfClassElement:()=>Yee,getAllJSDocTags:()=>R6,getAllJSDocTagsOfKind:()=>Voe,getAllKeys:()=>VD,getAllProjectOutputs:()=>vge,getAllSuperTypeNodes:()=>FH,getAllowJSCompilerOption:()=>T0,getAllowSyntheticDefaultImports:()=>cU,getAncestor:()=>M2,getAnyExtensionFromPath:()=>LE,getAreDeclarationMapsEnabled:()=>x1,getAssignedExpandoInitializer:()=>U7,getAssignedName:()=>pH,getAssignmentDeclarationKind:()=>wh,getAssignmentDeclarationPropertyAccessKind:()=>kj,getAssignmentTargetKind:()=>N8,getAutomaticTypeDirectiveNames:()=>Xae,getBaseFileName:()=>sg,getBinaryOperatorPrecedence:()=>CG,getBuildInfo:()=>l9,getBuildInfoFileVersionMap:()=>$2e,getBuildInfoText:()=>MK,getBuildOrderFromAnyBuildOrder:()=>nJ,getBuilderCreationParameters:()=>dte,getBuilderFileEmit:()=>nS,getCanonicalDiagnostic:()=>Kke,getCheckFlags:()=>Ag,getClassExtendsHeritageElement:()=>K6,getClassLikeDeclarationOfSymbol:()=>av,getCombinedLocalAndExportSymbolFlags:()=>R8,getCombinedModifierFlags:()=>iv,getCombinedNodeFlags:()=>d4,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>vpe,getCommentRange:()=>Nv,getCommonSourceDirectory:()=>uF,getCommonSourceDirectoryOfConfig:()=>c9,getCompilerOptionValue:()=>lU,getCompilerOptionsDiffValue:()=>Lee,getConditions:()=>yM,getConfigFileParsingDiagnostics:()=>lO,getConstantValue:()=>oI,getContainerFlags:()=>oP,getContainerNode:()=>hF,getContainingClass:()=>vy,getContainingClassExcludingClassDecorators:()=>zy,getContainingClassStaticBlock:()=>hk,getContainingFunction:()=>BS,getContainingFunctionDeclaration:()=>_se,getContainingFunctionOrClassStaticBlock:()=>pse,getContainingNodeArray:()=>rI,getContainingObjectLiteralElement:()=>Dye,getContextualTypeFromParent:()=>fle,getContextualTypeFromParentOrAncestorTypeNode:()=>REe,getDeclarationDiagnostics:()=>dge,getDeclarationEmitExtensionForPath:()=>jZ,getDeclarationEmitOutputFilePath:()=>UH,getDeclarationEmitOutputFilePathWorker:()=>JH,getDeclarationFileExtension:()=>N0,getDeclarationFromName:()=>F_,getDeclarationModifierFlagsFromSymbol:()=>nT,getDeclarationOfKind:()=>Kp,getDeclarationsOfKind:()=>Npe,getDeclaredExpandoInitializer:()=>v5,getDecorators:()=>v3,getDefaultCompilerOptions:()=>Eye,getDefaultFormatCodeSettings:()=>qce,getDefaultLibFileName:()=>gpe,getDefaultLibFilePath:()=>Ale,getDefaultLikeExportInfo:()=>aie,getDefaultLikeExportNameFromDeclaration:()=>vle,getDefaultResolutionModeForFileWorker:()=>WK,getDiagnosticText:()=>bx,getDiagnosticsWithinSpan:()=>Qte,getDirectoryPath:()=>Cc,getDirectoryToWatchFailedLookupLocation:()=>Jge,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>Dce,getDocumentPositionMapper:()=>oMe,getDocumentSpansEqualityComparer:()=>tz,getESModuleInterop:()=>GE,getEditsForFileRename:()=>nye,getEffectiveBaseTypeNode:()=>HE,getEffectiveConstraintOfTypeParameter:()=>Ux,getEffectiveContainerForJSDocTemplateTag:()=>tme,getEffectiveImplementsTypeNodes:()=>F3,getEffectiveInitializer:()=>hse,getEffectiveJSDocHost:()=>C4,getEffectiveModifierFlags:()=>A_,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Pse,getEffectiveModifierFlagsNoCache:()=>Mj,getEffectiveReturnTypeNode:()=>WC,getEffectiveSetAccessorTypeAnnotationNode:()=>W3,getEffectiveTypeAnnotationNode:()=>gm,getEffectiveTypeParameterDeclarations:()=>h8,getEffectiveTypeRoots:()=>gM,getElementOrPropertyAccessArgumentExpressionOrName:()=>_G,getElementOrPropertyAccessName:()=>Yw,getElementsOfBindingOrAssignmentPattern:()=>pL,getEmitDeclarations:()=>fw,getEmitFlags:()=>N_,getEmitHelpers:()=>gU,getEmitModuleDetectionKind:()=>wme,getEmitModuleFormatOfFileWorker:()=>V4,getEmitModuleKind:()=>b1,getEmitModuleResolutionKind:()=>S1,getEmitScriptTarget:()=>h_,getEmitStandardClassFields:()=>B8,getEnclosingBlockScopeContainer:()=>Xw,getEnclosingContainer:()=>lse,getEncodedSemanticClassifications:()=>eye,getEncodedSyntacticClassifications:()=>eDe,getEndLinePosition:()=>Jo,getEntityNameFromTypeNode:()=>sb,getEntrypointsFromPackageJsonInfo:()=>CN,getErrorCountForSummary:()=>pte,getErrorSpanForNode:()=>_5,getErrorSummaryText:()=>Gge,getEscapedTextOfIdentifierOrLiteral:()=>dx,getEscapedTextOfJsxAttributeName:()=>Y3,getEscapedTextOfJsxNamespacedName:()=>R5,getExpandoInitializer:()=>zA,getExportAssignmentExpression:()=>nme,getExportInfoMap:()=>Q0e,getExportNeedsImportStarHelper:()=>VKe,getExpressionAssociativity:()=>WH,getExpressionPrecedence:()=>Qb,getExternalHelpersModuleName:()=>wae,getExternalModuleImportEqualsDeclarationExpression:()=>Sj,getExternalModuleName:()=>Tj,getExternalModuleNameFromDeclaration:()=>HH,getExternalModuleNameFromPath:()=>EG,getExternalModuleNameLiteral:()=>_M,getExternalModuleRequireArgument:()=>PZ,getFallbackOptions:()=>RK,getFileEmitOutput:()=>ZU,getFileMatcherPatterns:()=>Kse,getFileNamesFromConfigSpecs:()=>MU,getFileWatcherEventKind:()=>Noe,getFilesInErrorForSummary:()=>$ge,getFirstConstructorWithBody:()=>eI,getFirstIdentifier:()=>fx,getFirstNonSpaceCharacterPosition:()=>H0e,getFirstProjectOutput:()=>k2e,getFixableErrorSpanExpression:()=>G0e,getFormatCodeSettingsForWriting:()=>iie,getFullWidth:()=>kH,getFunctionFlags:()=>Gg,getHeritageClause:()=>HT,getHostSignatureFromJSDoc:()=>P3,getIdentifierAutoGenerate:()=>XOe,getIdentifierGeneratedImportReference:()=>Gme,getIdentifierTypeArguments:()=>iW,getImmediatelyInvokedFunctionExpression:()=>w3,getImpliedNodeFormatForEmitWorker:()=>uO,getImpliedNodeFormatForFile:()=>jK,getImpliedNodeFormatForFileWorker:()=>Pge,getImportNeedsImportDefaultHelper:()=>hFe,getImportNeedsImportStarHelper:()=>ZTe,getIndentString:()=>owe,getInferredLibraryNameResolveFrom:()=>ste,getInitializedVariables:()=>NG,getInitializerOfBinaryExpression:()=>COe,getInitializerOfBindingOrAssignmentElement:()=>Av,getInterfaceBaseTypeNodes:()=>xG,getInternalEmitFlags:()=>RC,getInvokedExpression:()=>EH,getIsFileExcluded:()=>Y0e,getIsolatedModules:()=>$E,getJSDocAugmentsTag:()=>kke,getJSDocClassTag:()=>xpe,getJSDocCommentRanges:()=>wZ,getJSDocCommentsAndTags:()=>S5,getJSDocDeprecatedTag:()=>Ike,getJSDocDeprecatedTagNoCache:()=>Nke,getJSDocEnumTag:()=>Ake,getJSDocHost:()=>L3,getJSDocImplementsTags:()=>eOe,getJSDocOverloadTags:()=>kOe,getJSDocOverrideTagNoCache:()=>Dke,getJSDocParameterTags:()=>mu,getJSDocParameterTagsNoCache:()=>Woe,getJSDocPrivateTag:()=>iOe,getJSDocPrivateTagNoCache:()=>Tke,getJSDocProtectedTag:()=>Eke,getJSDocProtectedTagNoCache:()=>nOe,getJSDocPublicTag:()=>tOe,getJSDocPublicTagNoCache:()=>wke,getJSDocReadonlyTag:()=>rOe,getJSDocReadonlyTagNoCache:()=>oOe,getJSDocReturnTag:()=>Pke,getJSDocReturnType:()=>dZ,getJSDocRoot:()=>Ej,getJSDocSatisfiesExpressionType:()=>ree,getJSDocSatisfiesTag:()=>Cpe,getJSDocTags:()=>S3,getJSDocTemplateTag:()=>Lke,getJSDocThisTag:()=>zoe,getJSDocType:()=>M6,getJSDocTypeAliasName:()=>i8e,getJSDocTypeAssertionType:()=>TU,getJSDocTypeParameterDeclarations:()=>j3,getJSDocTypeParameterTags:()=>N7,getJSDocTypeParameterTagsNoCache:()=>Z3e,getJSDocTypeTag:()=>b3,getJSXImplicitImportBase:()=>jG,getJSXRuntimeImport:()=>qse,getJSXTransformEnabled:()=>BG,getKeyForCompilerOptions:()=>V8e,getLanguageVariant:()=>GZ,getLastChild:()=>I5,getLeadingCommentRanges:()=>PA,getLeadingCommentRangesOfNode:()=>gOe,getLeftmostAccessExpression:()=>rU,getLeftmostExpression:()=>Va,getLibraryNameFromLibFileName:()=>Cce,getLineAndCharacterOfPosition:()=>Df,getLineInfo:()=>iS,getLineOfLocalPosition:()=>Lj,getLineStartPositionForPosition:()=>oC,getLineStarts:()=>P6,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>bme,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>OOe,getLinesBetweenPositions:()=>Foe,getLinesBetweenRangeEndAndRangeStart:()=>dw,getLinesBetweenRangeEndPositions:()=>vme,getLiteralText:()=>Bpe,getLocalNameForExternalImport:()=>nF,getLocalSymbolForExportDefault:()=>E5,getLocaleSpecificMessage:()=>ed,getLocaleTimeString:()=>fte,getMappedContextSpan:()=>_J,getMappedDocumentSpan:()=>lle,getMappedLocation:()=>fJ,getMatchedFileSpec:()=>Fce,getMatchedIncludeSpec:()=>RW,getMeaningFromDeclaration:()=>D1,getMeaningFromLocation:()=>m9,getMembersOfDeclaration:()=>$6,getModeForFileReference:()=>Dge,getModeForResolutionAtIndex:()=>N0t,getModeForUsageLocation:()=>R2e,getModifiedTime:()=>KB,getModifiers:()=>$g,getModuleInstanceState:()=>$2,getModuleNameStringLiteralAt:()=>QU,getModuleSpecifierEndingPreference:()=>M$e,getModuleSpecifierResolverHost:()=>ole,getNameForExportedSymbol:()=>Zte,getNameFromImportAttribute:()=>hU,getNameFromIndexInfo:()=>Gke,getNameFromPropertyName:()=>KW,getNameOfAccessExpression:()=>mN,getNameOfCompilerOptionValue:()=>khe,getNameOfDeclaration:()=>Nu,getNameOfExpando:()=>xOe,getNameOfJSDocTypedef:()=>r5,getNameOfScriptTarget:()=>JC,getNameOrArgument:()=>LH,getNameTable:()=>bRe,getNamespaceDeclarationNode:()=>E8,getNewLineCharacter:()=>W2,getNewLineKind:()=>oz,getNewLineOrDefaultFromHost:()=>fO,getNewTargetContainer:()=>jS,getNextJSDocCommentLocation:()=>yG,getNodeChildren:()=>$we,getNodeForGeneratedName:()=>uhe,getNodeId:()=>pp,getNodeKind:()=>IM,getNodeModifiers:()=>QK,getNodeModulePathParts:()=>Kj,getNonAssignedNameOfDeclaration:()=>bpe,getNonAssignmentOperatorForCompoundAssignment:()=>VU,getNonAugmentationDeclaration:()=>C8,getNonDecoratorTokenPosOfNode:()=>Hke,getNonIncrementalBuildInfoRoots:()=>Wge,getNonModifierTokenPosOfNode:()=>l5,getNormalizedAbsolutePath:()=>tu,getNormalizedAbsolutePathWithoutRoot:()=>NA,getNormalizedPathComponents:()=>_pe,getObjectFlags:()=>Ls,getOperatorAssociativity:()=>Cse,getOperatorPrecedence:()=>JT,getOptionFromName:()=>b8e,getOptionsForLibraryResolution:()=>Yae,getOptionsNameMap:()=>gW,getOrCreateEmitNode:()=>Iv,getOrUpdate:()=>Hv,getOriginalNode:()=>Gm,getOriginalNodeId:()=>rC,getOutputDeclarationFileName:()=>PW,getOutputDeclarationFileNameWorker:()=>B4,getOutputExtension:()=>hge,getOutputFileNames:()=>C2e,getOutputJSFileNameWorker:()=>qU,getOutputPathsFor:()=>a9,getOwnEmitOutputFilePath:()=>Dse,getOwnKeys:()=>Zy,getOwnValues:()=>k0,getPackageJsonTypesVersionsPaths:()=>Lhe,getPackageNameFromTypesPackageName:()=>qee,getPackageScopeForPath:()=>Vee,getParameterSymbolFromJSDoc:()=>vG,getParentNodeInSpan:()=>QW,getParseTreeNode:()=>ju,getParsedCommandLineOfConfigFile:()=>hK,getPathComponents:()=>Uv,getPathFromPathComponents:()=>IA,getPathUpdater:()=>rye,getPathsBasePath:()=>UA,getPatternFromSpec:()=>zOe,getPendingEmitKindWithSeen:()=>V2e,getPositionOfLineAndCharacter:()=>ppe,getPossibleGenericSignatures:()=>E0e,getPossibleOriginalInputExtensionForExtension:()=>qH,getPossibleTypeArgumentsInfo:()=>YK,getPreEmitDiagnostics:()=>e2,getPrecedingNonSpaceCharacterPosition:()=>qEe,getPrivateIdentifier:()=>nge,getProperties:()=>TW,getProperty:()=>QV,getPropertyArrayElementValue:()=>Zke,getPropertyAssignmentAliasLikeExpression:()=>wOe,getPropertyNameForPropertyNameNode:()=>k5,getPropertyNameFromType:()=>rT,getPropertyNameOfBindingOrAssignmentElement:()=>Eae,getPropertySymbolFromBindingElement:()=>eX,getPropertySymbolsFromContextualType:()=>GDe,getQuoteFromPreference:()=>sle,getQuotePreference:()=>Nk,getRangesWhere:()=>IE,getRefactorContextSpan:()=>b9,getReferencedFileLocation:()=>FW,getRegexFromPattern:()=>U3,getRegularExpressionForWildcard:()=>Gse,getRegularExpressionsForWildcards:()=>XZ,getRelativePathFromDirectory:()=>w2,getRelativePathFromFile:()=>j$,getRelativePathToDirectoryOrUrl:()=>uH,getRenameLocation:()=>Hte,getReplacementSpanForContextToken:()=>O0e,getResolutionDiagnostic:()=>kce,getResolutionModeOverride:()=>LW,getResolveJsonModule:()=>Q6,getResolvePackageJsonExports:()=>Tme,getResolvePackageJsonImports:()=>mwe,getResolvedExternalModuleName:()=>Zw,getResolvedModuleFromResolution:()=>U6,getResolvedTypeReferenceDirectiveFromResolution:()=>Qoe,getRestIndicatorOfBindingOrAssignmentElement:()=>Tae,getRestParameterElementType:()=>Yke,getRightMostAssignedExpression:()=>S4,getRootDeclaration:()=>UT,getRootDirectoryOfResolutionCache:()=>Q2e,getRootLength:()=>q0,getScriptKind:()=>ule,getScriptKindFromFileName:()=>Jj,getScriptTargetFeatures:()=>u_,getSelectedEffectiveModifierFlags:()=>v1,getSelectedSyntacticModifierFlags:()=>Sc,getSemanticClassifications:()=>IYe,getSemanticJsxChildren:()=>Sp,getSetAccessorTypeAnnotationNode:()=>T5,getSetAccessorValueParameter:()=>w5,getSetExternalModuleIndicator:()=>kme,getShebang:()=>nZ,getSingleVariableOfVariableStatement:()=>D8,getSnapshotText:()=>PM,getSnippetElement:()=>fee,getSourceFileOfModule:()=>g4,getSourceFileOfNode:()=>Vo,getSourceFilePathInNewDir:()=>Ise,getSourceFileVersionAsHashFromText:()=>yte,getSourceFilesToEmit:()=>WZ,getSourceMapRange:()=>J8,getSourceMapper:()=>rMe,getSourceTextOfNodeFromSourceFile:()=>S8,getSpanOfTokenAtPosition:()=>XD,getSpellingSuggestion:()=>JB,getStartPositionOfLine:()=>KD,getStartPositionOfRange:()=>iT,getStartsOnNewLine:()=>W5,getStaticPropertiesAndClassStaticBlock:()=>cO,getStrictOptionValue:()=>d0,getStringComparer:()=>s4,getSubPatternFromSpec:()=>xwe,getSuperCallFromStatement:()=>Kee,getSuperContainer:()=>IZ,getSupportedCodeFixes:()=>CX,getSupportedExtensions:()=>qj,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>L5,getSwitchedType:()=>Jte,getSymbolId:()=>Nf,getSymbolNameForPrivateIdentifier:()=>BH,getSymbolTarget:()=>JEe,getSyntacticClassifications:()=>AYe,getSyntacticModifierFlags:()=>eT,getSyntacticModifierFlagsNoCache:()=>pme,getSynthesizedDeepClone:()=>mp,getSynthesizedDeepCloneWithReplacements:()=>Vte,getSynthesizedDeepClones:()=>g_,getSynthesizedDeepClonesWithReplacements:()=>rX,getSyntheticLeadingComments:()=>aL,getSyntheticTrailingComments:()=>cae,getTargetLabel:()=>qK,getTargetOfBindingOrAssignmentElement:()=>M4,getTemporaryModuleResolutionState:()=>e9,getTextOfConstantValue:()=>Jke,getTextOfIdentifierOrLiteral:()=>jC,getTextOfJSDocComment:()=>ij,getTextOfJsxAttributeName:()=>Yj,getTextOfJsxNamespacedName:()=>XG,getTextOfNode:()=>_h,getTextOfNodeFromSourceText:()=>nse,getTextOfPropertyName:()=>k8,getThisContainer:()=>Kb,getThisParameter:()=>R3,getTokenAtPosition:()=>wc,getTokenPosOfNode:()=>J6,getTokenSourceMapRange:()=>ub,getTouchingPropertyName:()=>VS,getTouchingToken:()=>h9,getTrailingCommentRanges:()=>L6,getTrailingSemicolonDeferringWriter:()=>DOe,getTransformers:()=>hXe,getTsBuildInfoEmitOutputFilePath:()=>s9,getTsConfigObjectLiteralExpression:()=>cG,getTsConfigPropArrayElementValue:()=>g5,getTypeAnnotationNode:()=>XH,getTypeArgumentOrTypeParameterList:()=>WEe,getTypeKeywordOfTypeOnlyImport:()=>ZW,getTypeNode:()=>tW,getTypeNodeIfAccessible:()=>vJ,getTypeParameterFromJsDoc:()=>I8,getTypeParameterOwner:()=>cZ,getTypesPackageName:()=>Vhe,getUILocale:()=>W_e,getUniqueName:()=>mJ,getUniqueSymbolId:()=>V0e,getUseDefineForClassFields:()=>KZ,getWatchErrorSummaryDiagnosticMessage:()=>Ace,getWatchFactory:()=>ite,group:()=>Ks,groupBy:()=>Ug,guessIndentation:()=>GD,handleNoEmitOptions:()=>jFe,handleWatchOptionsConfigDirTemplateSubstitution:()=>qae,hasAbstractModifier:()=>qA,hasAccessorModifier:()=>dN,hasAmbientModifier:()=>AOe,hasChangesInResolutions:()=>Lpe,hasContextSensitiveParameters:()=>iee,hasDecorators:()=>uw,hasDocComment:()=>D0e,hasDynamicName:()=>HA,hasEffectiveModifier:()=>zC,hasEffectiveModifiers:()=>NOe,hasEffectiveReadonlyModifier:()=>QH,hasExtension:()=>B$,hasImplementationTSFileExtension:()=>Twe,hasIndexSignature:()=>yJ,hasInferredType:()=>j$e,hasInitializer:()=>yg,hasInvalidEscape:()=>zH,hasJSDocNodes:()=>Gx,hasJSDocParameterTags:()=>mH,hasJSFileExtension:()=>eL,hasJsonModuleEmitEnabled:()=>nI,hasOnlyExpressionInitializer:()=>b8,hasOverrideModifier:()=>Ase,hasPossibleExternalModuleReference:()=>$ke,hasProperty:()=>bf,hasPropertyAccessExpressionWithName:()=>Nte,hasQuestionToken:()=>x4,hasRecordedExternalHelpers:()=>Cee,hasResolutionModeOverride:()=>jme,hasRestParameter:()=>yZ,hasScopeMarker:()=>lOe,hasStaticModifier:()=>G0,hasSyntacticModifier:()=>kc,hasSyntacticModifiers:()=>swe,hasTSFileExtension:()=>VG,hasTabstop:()=>K3,hasTrailingDirectorySeparator:()=>h3,hasType:()=>Yoe,hasTypeArguments:()=>q7,hasZeroOrOneAsteriskCharacter:()=>Dme,hostGetCanonicalFileName:()=>E4,hostUsesCaseSensitiveFileNames:()=>TG,idText:()=>Un,identifierIsThisKeyword:()=>KH,identifierToKeywordKind:()=>F6,identity:()=>ps,identitySourceMapConsumer:()=>mFe,ignoreSourceNewlines:()=>qme,ignoredPaths:()=>R$,importFromModuleSpecifier:()=>pG,importSyntaxAffectsModuleResolution:()=>ROe,indexOfAnyCharCode:()=>Rr,indexOfNode:()=>Rm,indicesOf:()=>On,inferredTypesContainingFile:()=>KU,injectClassNamedEvaluationHelperBlockIfMissing:()=>NW,injectClassThisAssignmentIfMissing:()=>GKe,insertImports:()=>B7e,insertSorted:()=>Hn,insertStatementAfterCustomPrologue:()=>fj,insertStatementAfterStandardPrologue:()=>tse,insertStatementsAfterCustomPrologue:()=>Mpe,insertStatementsAfterStandardPrologue:()=>rv,intersperse:()=>Nt,intrinsicTagNameToString:()=>see,introducesArgumentsExoticObject:()=>Qke,inverseJsxOptionMap:()=>pK,isAbstractConstructorSymbol:()=>vg,isAbstractModifier:()=>Ni,isAccessExpression:()=>cf,isAccessibilityModifier:()=>P0e,isAccessor:()=>O_,isAccessorModifier:()=>sW,isAliasableExpression:()=>Ij,isAmbientModule:()=>nb,isAmbientPropertyDeclaration:()=>d5,isAnyDirectorySeparator:()=>fke,isAnyImportOrBareOrAccessedRequire:()=>zpe,isAnyImportOrReExport:()=>wH,isAnyImportOrRequireStatement:()=>_j,isAnyImportSyntax:()=>f5,isAnySupportedFileExtension:()=>JOe,isApplicableVersionedTypesKey:()=>EK,isArgumentExpressionOfElementAccess:()=>x0e,isArray:()=>ua,isArrayBindingElement:()=>Em,isArrayBindingOrAssignmentElement:()=>a5,isArrayBindingOrAssignmentPattern:()=>gd,isArrayBindingPattern:()=>QE,isArrayLiteralExpression:()=>Yg,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>J4,isArrayTypeNode:()=>$8,isArrowFunction:()=>Zc,isAsExpression:()=>SU,isAssertClause:()=>eF,isAssertEntry:()=>f0,isAssertionExpression:()=>gy,isAssertsKeyword:()=>Z3,isAssignmentDeclaration:()=>dG,isAssignmentExpression:()=>Kg,isAssignmentOperator:()=>D4,isAssignmentPattern:()=>fZ,isAssignmentTarget:()=>O3,isAsteriskToken:()=>eK,isAsyncFunction:()=>BZ,isAsyncModifier:()=>U5,isAutoAccessorPropertyDeclaration:()=>g1,isAwaitExpression:()=>YT,isAwaitKeyword:()=>Zme,isBigIntLiteral:()=>ZG,isBinaryExpression:()=>ms,isBinaryLogicalOperator:()=>HZ,isBinaryOperatorToken:()=>che,isBindableObjectDefinePropertyCall:()=>I3,isBindableStaticAccessExpression:()=>gk,isBindableStaticElementAccessExpression:()=>Yh,isBindableStaticNameExpression:()=>lN,isBindingElement:()=>Zd,isBindingElementOfBareOrAccessedRequire:()=>LZ,isBindingName:()=>_4,isBindingOrAssignmentElement:()=>Joe,isBindingOrAssignmentPattern:()=>$D,isBindingPattern:()=>Uu,isBlock:()=>qu,isBlockLike:()=>yF,isBlockOrCatchScoped:()=>jpe,isBlockScope:()=>ose,isBlockScopedContainerTopLevel:()=>CZ,isBooleanLiteral:()=>sf,isBreakOrContinueStatement:()=>oj,isBreakStatement:()=>zwe,isBuild:()=>S7e,isBuildInfoFile:()=>IFe,isBuilderProgram:()=>Pce,isBundle:()=>nK,isCallChain:()=>E2,isCallExpression:()=>Od,isCallExpressionTarget:()=>L7e,isCallLikeExpression:()=>H6,isCallLikeOrFunctionLikeExpression:()=>Tpe,isCallOrNewExpression:()=>WE,isCallOrNewExpressionTarget:()=>Kce,isCallSignatureDeclaration:()=>xg,isCallToHelper:()=>QG,isCaseBlock:()=>Wc,isCaseClause:()=>eP,isCaseKeyword:()=>Wwe,isCaseOrDefaultClause:()=>fl,isCatchClause:()=>eC,isCatchClauseVariableDeclaration:()=>q_,isCatchClauseVariableDeclarationOrBindingElement:()=>Wpe,isCheckJsEnabledForFile:()=>HG,isCircularBuildOrder:()=>pF,isClassDeclaration:()=>D0,isClassElement:()=>rl,isClassExpression:()=>Qh,isClassInstanceProperty:()=>aOe,isClassLike:()=>bc,isClassMemberModifier:()=>Om,isClassNamedEvaluationHelperBlock:()=>PK,isClassOrTypeElement:()=>Pc,isClassStaticBlockDeclaration:()=>Yf,isClassThisAssignmentBlock:()=>uce,isColonToken:()=>Qme,isCommaExpression:()=>ohe,isCommaListExpression:()=>Lg,isCommaSequence:()=>lK,isCommaToken:()=>mee,isComment:()=>qW,isCommonJsExportPropertyAssignment:()=>fse,isCommonJsExportedExpression:()=>hj,isCompoundAssignment:()=>kW,isComputedNonLiteralName:()=>Ep,isComputedPropertyName:()=>f_,isConciseBody:()=>Rke,isConditionalExpression:()=>Cp,isConditionalTypeNode:()=>YE,isConstAssertion:()=>nae,isConstTypeReference:()=>Jx,isConstructSignatureDeclaration:()=>db,isConstructorDeclaration:()=>yl,isConstructorTypeNode:()=>Dm,isContextualKeyword:()=>RH,isContinueStatement:()=>Fg,isCustomPrologue:()=>sN,isDebuggerStatement:()=>yae,isDeclaration:()=>y1,isDeclarationBindingElement:()=>V6,isDeclarationFileName:()=>ey,isDeclarationName:()=>VT,isDeclarationNameOfEnumOrNamespace:()=>JZ,isDeclarationReadonly:()=>mk,isDeclarationStatement:()=>_Oe,isDeclarationWithTypeParameterChildren:()=>ase,isDeclarationWithTypeParameters:()=>sse,isDecorator:()=>Cy,isDecoratorTarget:()=>g0e,isDefaultClause:()=>fL,isDefaultImport:()=>N3,isDefaultModifier:()=>bU,isDefaultedExpandoInitializer:()=>fG,isDeleteExpression:()=>Ha,isDeleteTarget:()=>VA,isDeprecatedDeclaration:()=>uX,isDestructuringAssignment:()=>z3,isDiskPathRoot:()=>J0,isDoStatement:()=>the,isDocumentRegistryEntry:()=>pX,isDotDotDotToken:()=>eS,isDottedName:()=>Rj,isDynamicName:()=>C5,isEffectiveExternalModule:()=>u5,isEffectiveStrictModeSourceFile:()=>hOe,isElementAccessChain:()=>sOe,isElementAccessExpression:()=>T_,isEmittedFileOfProgram:()=>yce,isEmptyArrayLiteral:()=>VC,isEmptyBindingElement:()=>Boe,isEmptyBindingPattern:()=>lZ,isEmptyObjectLiteral:()=>nm,isEmptyStatement:()=>q5,isEmptyStringLiteral:()=>uG,isEntityName:()=>tb,isEntityNameExpression:()=>Dp,isEnumConst:()=>jy,isEnumDeclaration:()=>Z8,isEnumMember:()=>pb,isEqualityOperatorKind:()=>oX,isEqualsGreaterThanToken:()=>_ae,isExclamationToken:()=>q8,isExcludedFile:()=>F8e,isExclusivelyTypeOnlyImportOrExport:()=>M2e,isExpandoPropertyDeclaration:()=>B5,isExportAssignment:()=>Bm,isExportDeclaration:()=>Qg,isExportModifier:()=>H5,isExportName:()=>xee,isExportNamespaceAsDefaultDeclaration:()=>ise,isExportOrDefaultModifier:()=>lhe,isExportSpecifier:()=>X0,isExportsIdentifier:()=>PH,isExportsOrModuleExportsOrAlias:()=>xM,isExpression:()=>An,isExpressionNode:()=>ab,isExpressionOfExternalModuleImportEqualsDeclaration:()=>C0e,isExpressionOfOptionalChainRoot:()=>gH,isExpressionStatement:()=>E0,isExpressionWithTypeArguments:()=>$C,isExpressionWithTypeArgumentsInClassExtendsClause:()=>Ose,isExternalModule:()=>Mg,isExternalModuleAugmentation:()=>j7,isExternalModuleImportEqualsDeclaration:()=>WS,isExternalModuleIndicator:()=>pZ,isExternalModuleNameRelative:()=>l0,isExternalModuleReference:()=>Zg,isExternalModuleSymbol:()=>xH,isExternalOrCommonJsModule:()=>Jv,isFileLevelReservedGeneratedIdentifier:()=>s5,isFileLevelUniqueName:()=>iG,isFileProbablyExternalModule:()=>gw,isFirstDeclarationOfSymbolParameter:()=>Wte,isFixablePromiseHandler:()=>fMe,isForInOrOfStatement:()=>Rn,isForInStatement:()=>gae,isForInitializer:()=>BT,isForOfStatement:()=>$u,isForStatement:()=>QA,isFullSourceFile:()=>Yx,isFunctionBlock:()=>z7,isFunctionBody:()=>x3,isFunctionDeclaration:()=>fp,isFunctionExpression:()=>yd,isFunctionExpressionOrArrowFunction:()=>H8,isFunctionLike:()=>iu,isFunctionLikeDeclaration:()=>Rp,isFunctionLikeKind:()=>Vh,isFunctionLikeOrClassStaticBlockDeclaration:()=>g8,isFunctionOrConstructorTypeNode:()=>Mke,isFunctionOrModuleBlock:()=>F7,isFunctionSymbol:()=>OZ,isFunctionTypeNode:()=>xp,isGeneratedIdentifier:()=>Tm,isGeneratedPrivateIdentifier:()=>FA,isGetAccessor:()=>oN,isGetAccessorDeclaration:()=>n_,isGetOrSetAccessorDeclaration:()=>Hoe,isGlobalScopeAugmentation:()=>y4,isGlobalSourceFile:()=>w8,isGrammarError:()=>k3,isHeritageClause:()=>KC,isHoistedFunction:()=>P2,isHoistedVariableStatement:()=>oG,isIdentifier:()=>Ai,isIdentifierANonContextualKeyword:()=>bse,isIdentifierName:()=>K7,isIdentifierOrThisTypeNode:()=>she,isIdentifierPart:()=>UD,isIdentifierStart:()=>HD,isIdentifierText:()=>Jb,isIdentifierTypePredicate:()=>V7,isIdentifierTypeReference:()=>JG,isIfStatement:()=>aM,isIgnoredFileFromWildCardWatching:()=>xge,isImplicitGlob:()=>Ame,isImportAttribute:()=>iK,isImportAttributeName:()=>Fke,isImportAttributes:()=>GC,isImportCall:()=>Kx,isImportClause:()=>Ym,isImportDeclaration:()=>Dd,isImportEqualsDeclaration:()=>pf,isImportKeyword:()=>rM,isImportMeta:()=>b4,isImportOrExportSpecifier:()=>I2,isImportOrExportSpecifierName:()=>nX,isImportSpecifier:()=>eg,isImportTypeAssertionContainer:()=>V2,isImportTypeNode:()=>Ck,isImportableFile:()=>rie,isInComment:()=>U4,isInCompoundLikeAssignment:()=>ime,isInExpressionContext:()=>NZ,isInJSDoc:()=>cb,isInJSFile:()=>Ys,isInJSXText:()=>tle,isInJsonFile:()=>H7,isInNonReferenceComment:()=>yL,isInReferenceComment:()=>L0e,isInRightSideOfInternalImportEqualsDeclaration:()=>mF,isInString:()=>JW,isInTemplateString:()=>T0e,isInTopLevelContext:()=>lG,isInTypeQuery:()=>GH,isIncrementalBuildInfo:()=>ute,isIncrementalBundleEmitBuildInfo:()=>qFe,isIncrementalCompilation:()=>_f,isIndexSignatureDeclaration:()=>nu,isIndexedAccessTypeNode:()=>tO,isInferTypeNode:()=>Hy,isInfinityOrNaNString:()=>GG,isInitializedProperty:()=>n9,isInitializedVariable:()=>qZ,isInsideJsxElement:()=>Ote,isInsideJsxElementOrAttribute:()=>BEe,isInsideNodeModules:()=>cX,isInsideTemplateLiteral:()=>nle,isInstanceOfExpression:()=>GA,isInstantiatedModule:()=>Yhe,isInterfaceDeclaration:()=>ky,isInternalDeclaration:()=>Ipe,isInternalModuleImportEqualsDeclaration:()=>y5,isInternalName:()=>Ywe,isIntersectionTypeNode:()=>lL,isIntrinsicJsxName:()=>wG,isIterationStatement:()=>v8,isJSDoc:()=>eD,isJSDocAllType:()=>Cl,isJSDocAugmentsTag:()=>lM,isJSDocAuthorTag:()=>Hwe,isJSDocCallbackTag:()=>gee,isJSDocClassTag:()=>kU,isJSDocCommentContainingNode:()=>Xoe,isJSDocConstructSignature:()=>A3,isJSDocDeprecatedTag:()=>ihe,isJSDocEnumTag:()=>oK,isJSDocFunctionType:()=>CU,isJSDocImplementsTag:()=>Tk,isJSDocImportTag:()=>cT,isJSDocIndexSignature:()=>qpe,isJSDocLikeText:()=>Wn,isJSDocLink:()=>w1,isJSDocLinkCode:()=>tP,isJSDocLinkLike:()=>ib,isJSDocLinkPlain:()=>tF,isJSDocMemberName:()=>hh,isJSDocNameReference:()=>F4,isJSDocNamepathType:()=>lGe,isJSDocNamespaceBody:()=>dOe,isJSDocNode:()=>gZ,isJSDocNonNullableType:()=>uW,isJSDocNullableType:()=>SN,isJSDocOptionalParameter:()=>X3,isJSDocOptionalType:()=>nO,isJSDocOverloadTag:()=>rK,isJSDocOverrideTag:()=>dM,isJSDocParameterTag:()=>hw,isJSDocPrivateTag:()=>J2,isJSDocPropertyLikeTag:()=>vH,isJSDocPropertyTag:()=>vee,isJSDocProtectedTag:()=>uM,isJSDocPublicTag:()=>Uwe,isJSDocReadonlyTag:()=>iP,isJSDocReturnTag:()=>yee,isJSDocSatisfiesExpression:()=>mU,isJSDocSatisfiesTag:()=>sK,isJSDocSeeTag:()=>Jwe,isJSDocSignature:()=>U2,isJSDocTag:()=>SH,isJSDocTemplateTag:()=>tC,isJSDocThisTag:()=>Sae,isJSDocThrowsTag:()=>qwe,isJSDocTypeAlias:()=>ux,isJSDocTypeAssertion:()=>iF,isJSDocTypeExpression:()=>lv,isJSDocTypeLiteral:()=>G5,isJSDocTypeTag:()=>dW,isJSDocTypedefTag:()=>fM,isJSDocUnknownTag:()=>uGe,isJSDocUnknownType:()=>Vwe,isJSDocVariadicType:()=>bae,isJSXTagName:()=>T8,isJsonEqual:()=>eee,isJsonSourceFile:()=>qv,isJsxAttribute:()=>_b,isJsxAttributeLike:()=>Dv,isJsxAttributeName:()=>oee,isJsxAttributes:()=>wk,isJsxChild:()=>hZ,isJsxClosingElement:()=>I0,isJsxClosingFragment:()=>lW,isJsxElement:()=>R_,isJsxExpression:()=>aT,isJsxFragment:()=>$5,isJsxNamespacedName:()=>vx,isJsxOpeningElement:()=>Y0,isJsxOpeningFragment:()=>cM,isJsxOpeningLikeElement:()=>nv,isJsxOpeningLikeElementTagName:()=>OEe,isJsxSelfClosingElement:()=>mh,isJsxSpreadAttribute:()=>ZA,isJsxTagNameExpression:()=>X$,isJsxText:()=>nW,isJumpStatementTarget:()=>rJ,isKeyword:()=>Gv,isKeywordOrPunctuation:()=>Aj,isKnownSymbol:()=>ZD,isLabelName:()=>GK,isLabelOfLabeledStatement:()=>$K,isLabeledStatement:()=>dL,isLateVisibilityPaintedStatement:()=>cse,isLeftHandSideExpression:()=>MS,isLet:()=>p5,isLineBreak:()=>Ev,isLiteralComputedPropertyDeclarationName:()=>SG,isLiteralExpression:()=>B6,isLiteralExpressionOfObject:()=>Oke,isLiteralImportTypeNode:()=>Wy,isLiteralKind:()=>bH,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>Ate,isLiteralTypeLiteral:()=>M7,isLiteralTypeNode:()=>xk,isLocalName:()=>sI,isLogicalOperator:()=>X6,isLogicalOrCoalescingAssignmentExpression:()=>POe,isLogicalOrCoalescingAssignmentOperator:()=>UZ,isLogicalOrCoalescingBinaryExpression:()=>hme,isLogicalOrCoalescingBinaryOperator:()=>mme,isMappedTypeNode:()=>K8,isMemberName:()=>qD,isMetaProperty:()=>cW,isMethodDeclaration:()=>Sg,isMethodOrAccessor:()=>p4,isMethodSignature:()=>sT,isMinusToken:()=>V5,isMissingDeclaration:()=>O4,isMissingPackageJsonInfo:()=>kK,isModifier:()=>jd,isModifierKind:()=>z6,isModifierLike:()=>Fm,isModuleAugmentationExternal:()=>VE,isModuleBlock:()=>vN,isModuleBody:()=>C3,isModuleDeclaration:()=>Dh,isModuleExportName:()=>vae,isModuleExportsAccessExpression:()=>cN,isModuleIdentifier:()=>Xpe,isModuleName:()=>IU,isModuleOrEnumDeclaration:()=>aj,isModuleReference:()=>g$e,isModuleSpecifierLike:()=>jte,isModuleWithStringLiteralName:()=>xZ,isNameOfFunctionDeclaration:()=>Yce,isNameOfModuleDeclaration:()=>zW,isNamedDeclaration:()=>xf,isNamedEvaluation:()=>Yb,isNamedEvaluationSource:()=>Qw,isNamedExportBindings:()=>yH,isNamedExports:()=>QT,isNamedImportBindings:()=>mZ,isNamedImports:()=>_p,isNamedImportsOrExports:()=>zj,isNamedTupleMember:()=>YA,isNamespaceBody:()=>uOe,isNamespaceExport:()=>vm,isNamespaceExportDeclaration:()=>wy,isNamespaceImport:()=>ZE,isNamespaceReexportDeclaration:()=>NH,isNewExpression:()=>sM,isNewExpressionTarget:()=>Gce,isNoSubstitutionTemplateLiteral:()=>z5,isNodeArray:()=>f4,isNodeArrayMultiLine:()=>M8,isNodeDescendantOf:()=>G7,isNodeKind:()=>MT,isNodeLikeSystem:()=>VQ,isNodeModulesDirectory:()=>eN,isNodeWithPossibleHoistedDeclaration:()=>A8,isNonContextualKeyword:()=>M3,isNonGlobalAmbientModule:()=>rb,isNonNullAccess:()=>iae,isNonNullChain:()=>rj,isNonNullExpression:()=>P4,isNonStaticMethodOrAccessorWithPrivateName:()=>cce,isNotEmittedStatement:()=>bN,isNullishCoalesce:()=>Uoe,isNumber:()=>k7,isNumericLiteral:()=>mx,isNumericLiteralName:()=>nL,isObjectBindingElementWithoutPropertyName:()=>dJ,isObjectBindingOrAssignmentElement:()=>_Z,isObjectBindingOrAssignmentPattern:()=>Yc,isObjectBindingPattern:()=>fb,isObjectLiteralElement:()=>cj,isObjectLiteralElementLike:()=>FC,isObjectLiteralExpression:()=>Ld,isObjectLiteralMethod:()=>zT,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>EZ,isObjectTypeDeclaration:()=>PG,isOmittedExpression:()=>Eh,isOptionalChain:()=>By,isOptionalChainRoot:()=>D2,isOptionalDeclaration:()=>XT,isOptionalJSDocPropertyLikeTag:()=>M5,isOptionalTypeNode:()=>oM,isOuterExpression:()=>xN,isOutermostOptionalChain:()=>nj,isOverrideModifier:()=>Il,isPackageJsonInfo:()=>CK,isPackedArrayLiteral:()=>Mme,isParameter:()=>Fl,isParameterPropertyDeclaration:()=>OC,isParameterPropertyModifier:()=>$$,isParenthesizedExpression:()=>Tu,isParenthesizedTypeNode:()=>eO,isParseTreeNode:()=>joe,isPartOfParameterDeclaration:()=>k4,isPartOfTypeNode:()=>jA,isPartOfTypeQuery:()=>AZ,isPartiallyEmittedExpression:()=>mw,isPatternMatch:()=>pCe,isPinnedComment:()=>Rpe,isPlainJsFile:()=>tG,isPlusToken:()=>Xf,isPossiblyTypeArgumentPosition:()=>cJ,isPostfixUnaryExpression:()=>mae,isPrefixUnaryExpression:()=>z2,isPrimitiveLiteralValue:()=>tM,isPrivateIdentifier:()=>wl,isPrivateIdentifierClassElementDeclaration:()=>qb,isPrivateIdentifierPropertyAccessExpression:()=>iN,isPrivateIdentifierSymbol:()=>xse,isProgramUptoDate:()=>XU,isPrologueDirective:()=>cw,isPropertyAccessChain:()=>hH,isPropertyAccessEntityNameExpression:()=>Bj,isPropertyAccessExpression:()=>ba,isPropertyAccessOrQualifiedName:()=>sj,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>qoe,isPropertyAssignment:()=>Ih,isPropertyDeclaration:()=>vu,isPropertyName:()=>C_,isPropertyNameLiteral:()=>Xp,isPropertySignature:()=>hx,isPrototypeAccess:()=>Y6,isPrototypePropertyAssignment:()=>Qpe,isPunctuation:()=>MH,isPushOrUnshiftIdentifier:()=>ewe,isQualifiedName:()=>tS,isQuestionDotToken:()=>tK,isQuestionOrExclamationToken:()=>Nae,isQuestionOrPlusOrMinusToken:()=>n8e,isQuestionToken:()=>XE,isReadonlyKeyword:()=>pae,isReadonlyKeywordOrPlusOrMinusToken:()=>Aae,isRecognizedTripleSlashComment:()=>Vke,isReferenceFileLocation:()=>OW,isReferencedFile:()=>z4,isRegularExpressionLiteral:()=>Yme,isRequireCall:()=>es,isRequireVariableStatement:()=>lb,isRestParameter:()=>RS,isRestTypeNode:()=>qC,isReturnStatement:()=>fm,isReturnStatementWithFixablePromiseHandler:()=>oDe,isRightSideOfAccessExpression:()=>by,isRightSideOfInstanceofExpression:()=>Fse,isRightSideOfPropertyAccess:()=>WW,isRightSideOfQualifiedName:()=>S0e,isRightSideOfQualifiedNameOrPropertyAccess:()=>ZH,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>LOe,isRootedDiskPath:()=>LC,isSameEntityName:()=>G6,isSatisfiesExpression:()=>ia,isSemicolonClassElement:()=>L4,isSetAccessor:()=>Gw,isSetAccessorDeclaration:()=>zc,isShiftOperatorOrHigher:()=>ahe,isShorthandAmbientModuleSymbol:()=>nG,isShorthandPropertyAssignment:()=>Q0,isSideEffectImport:()=>j5,isSignedNumericLiteral:()=>rme,isSimpleCopiableExpression:()=>Sx,isSimpleInlineableExpression:()=>cI,isSimpleParameterList:()=>oge,isSingleOrDoubleQuote:()=>xj,isSourceElement:()=>Nwe,isSourceFile:()=>ul,isSourceFileFromLibrary:()=>xJ,isSourceFileJS:()=>$v,isSourceFileNotJson:()=>WA,isSourceMapping:()=>ege,isSpecialPropertyDeclaration:()=>yse,isSpreadAssignment:()=>H2,isSpreadElement:()=>yx,isStatement:()=>ll,isStatementButNotDeclaration:()=>K$,isStatementOrBlock:()=>rN,isStatementWithLocals:()=>Ope,isStatic:()=>Xd,isStaticModifier:()=>oW,isString:()=>Yu,isStringANonContextualKeyword:()=>ov,isStringAndEmptyAnonymousObjectIntersection:()=>A0e,isStringDoubleQuoted:()=>D3,isStringLiteral:()=>Kf,isStringLiteralLike:()=>i_,isStringLiteralOrJsxExpression:()=>jke,isStringLiteralOrTemplate:()=>ple,isStringOrNumericLiteralLike:()=>Xb,isStringOrRegularExpressionOrTemplateLiteral:()=>I0e,isStringTextContainingNode:()=>W6,isSuperCall:()=>m5,isSuperKeyword:()=>aW,isSuperProperty:()=>Xx,isSupportedSourceFileName:()=>Qse,isSwitchStatement:()=>hee,isSyntaxList:()=>iC,isSyntheticExpression:()=>ehe,isSyntheticReference:()=>kk,isTagName:()=>Xce,isTaggedTemplateExpression:()=>Kv,isTaggedTemplateTag:()=>JK,isTemplateExpression:()=>dm,isTemplateHead:()=>nM,isTemplateLiteral:()=>y8,isTemplateLiteralKind:()=>OA,isTemplateLiteralToken:()=>wpe,isTemplateLiteralTypeNode:()=>J5,isTemplateLiteralTypeSpan:()=>X8,isTemplateMiddle:()=>pee,isTemplateMiddleOrTemplateTail:()=>P7,isTemplateSpan:()=>Og,isTemplateTail:()=>rW,isTextWhiteSpaceLike:()=>R0e,isThis:()=>H4,isThisContainerOrFunctionBlock:()=>mse,isThisIdentifier:()=>JA,isThisInTypeQuery:()=>L8,isThisInitializedDeclaration:()=>T3,isThisInitializedObjectBindingExpression:()=>SOe,isThisProperty:()=>gj,isThisTypeNode:()=>uL,isThisTypeParameter:()=>KG,isThisTypePredicate:()=>L2,isThrowStatement:()=>iO,isToken:()=>A7,isTokenKind:()=>RT,isTraceEnabled:()=>sF,isTransientSymbol:()=>m4,isTrivia:()=>x5,isTryStatement:()=>Q8,isTupleTypeNode:()=>G8,isTypeAlias:()=>MZ,isTypeAliasDeclaration:()=>k1,isTypeAssertionExpression:()=>A4,isTypeDeclaration:()=>Xj,isTypeElement:()=>Xh,isTypeKeyword:()=>y9,isTypeKeywordTokenOrIdentifier:()=>$W,isTypeLiteralNode:()=>Im,isTypeNode:()=>Qa,isTypeNodeKind:()=>zse,isTypeOfExpression:()=>Ip,isTypeOnlyExportDeclaration:()=>O7,isTypeOnlyImportDeclaration:()=>L7,isTypeOnlyImportOrExportDeclaration:()=>j6,isTypeOperatorNode:()=>yN,isTypeParameterDeclaration:()=>Yp,isTypePredicateNode:()=>Sk,isTypeQueryNode:()=>C1,isTypeReferenceNode:()=>M_,isTypeReferenceType:()=>Y$,isTypeUsableAsPropertyName:()=>px,isUMDExportSymbol:()=>D5,isUnaryExpression:()=>Epe,isUnaryExpressionWithWrite:()=>Dpe,isUnicodeIdentifierStart:()=>yke,isUnionTypeNode:()=>gx,isUrl:()=>_ke,isValidBigIntString:()=>tee,isValidESSymbolDeclaration:()=>aG,isValidTypeOnlyAliasUseSite:()=>q3,isValueSignatureDeclaration:()=>F2,isVarAwaitUsing:()=>q6,isVarConst:()=>W7,isVarConstLike:()=>kZ,isVarUsing:()=>pj,isVariableDeclaration:()=>$c,isVariableDeclarationInVariableStatement:()=>sG,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>E3,isVariableDeclarationInitializedToRequire:()=>AH,isVariableDeclarationList:()=>Xv,isVariableLike:()=>mj,isVariableLikeOrAccessor:()=>Jpe,isVariableStatement:()=>Zh,isVoidExpression:()=>rd,isWatchSet:()=>AG,isWhileStatement:()=>xU,isWhiteSpaceLike:()=>tN,isWhiteSpaceSingleLine:()=>_k,isWithStatement:()=>Y8,isWriteAccess:()=>Wj,isWriteOnlyAccess:()=>Bse,isYieldExpression:()=>hae,jsxModeNeedsExplicitImport:()=>QEe,keywordPart:()=>Qm,last:()=>Bu,lastOrUndefined:()=>Y_,length:()=>Z,libMap:()=>p8e,libs:()=>Rae,lineBreakPart:()=>zte,loadModuleFromGlobalCache:()=>X8e,loadWithModeAwareCache:()=>kM,makeIdentifierFromModuleName:()=>v$e,makeImport:()=>vL,makeStringLiteral:()=>YW,mangleScopedPackageName:()=>Jee,map:()=>$i,mapAllOrFail:()=>Vb,mapDefined:()=>Dc,mapDefinedIterator:()=>up,mapEntries:()=>C2,mapIterator:()=>Dl,mapOneOrMany:()=>K0e,mapToDisplayParts:()=>Cw,matchFiles:()=>Cwe,matchPatternOrExact:()=>tL,matchedText:()=>z_e,matchesExclude:()=>Gae,maxBy:()=>uCe,maybeBind:()=>wu,maybeSetLocalizedDiagnosticMessages:()=>P$e,memoize:()=>H0,memoizeOne:()=>l_,min:()=>dCe,minAndMax:()=>KE,missingFileModifiedTime:()=>PC,modifierToFlag:()=>Vy,modifiersToFlags:()=>tI,moduleExportNameIsDefault:()=>MC,moduleExportNameTextEscaped:()=>x8,moduleExportNameTextUnescaped:()=>Kw,moduleOptionDeclaration:()=>h8e,moduleResolutionIsEqualTo:()=>Wke,moduleResolutionNameAndModeGetter:()=>GU,moduleResolutionOptionDeclarations:()=>oTe,moduleResolutionSupportsPackageJsonExportsAndImports:()=>Uj,moduleResolutionUsesNodeModules:()=>OM,moduleSpecifierToValidIdentifier:()=>SJ,moduleSpecifiers:()=>cF,moduleSymbolToValidIdentifier:()=>eie,moveEmitHelpers:()=>eW,moveRangeEnd:()=>uwe,moveRangePastDecorators:()=>I4,moveRangePastModifiers:()=>JE,moveRangePos:()=>O8,moveSyntheticComments:()=>lae,mutateMap:()=>yk,mutateMapSkippingNewValues:()=>pN,needsParentheses:()=>gJ,needsScopeMarker:()=>Koe,newCaseClauseTracker:()=>dX,newPrivateEnvironment:()=>Qee,noEmitNotification:()=>ete,noEmitSubstitution:()=>FK,noTransformers:()=>mXe,noTruncationMaximumTruncationLength:()=>bp,nodeCanBeDecorated:()=>DH,nodeHasName:()=>ta,nodeIsDecorated:()=>IH,nodeIsMissing:()=>Mm,nodeIsPresent:()=>jT,nodeIsSynthesized:()=>um,nodeModuleNameResolver:()=>SW,nodeModulesPathPart:()=>nP,nodeNextJsonConfigResolver:()=>$8e,nodeOrChildIsDecorated:()=>yj,nodeOverlapsWithStartEnd:()=>sJ,nodePosToString:()=>ngt,nodeSeenTracker:()=>GW,nodeStartsNewLexicalEnvironment:()=>ome,noop:()=>Za,noopFileWatcher:()=>iJ,normalizePath:()=>Kd,normalizeSlashes:()=>Ch,normalizeSpans:()=>ype,not:()=>voe,notImplemented:()=>ld,notImplementedResolver:()=>hce,nullNodeConverters:()=>aee,nullParenthesizerRules:()=>Pwe,nullTransformationContext:()=>mge,objectAllocator:()=>xd,operatorPart:()=>sS,optionDeclarations:()=>zS,optionMapToObject:()=>gK,optionsAffectingProgramStructure:()=>yhe,optionsForBuild:()=>q2,optionsForWatch:()=>mK,optionsHaveChanges:()=>CH,or:()=>ow,orderedRemoveItem:()=>I$,orderedRemoveItemAt:()=>Jw,packageIdToPackageName:()=>dj,packageIdToString:()=>h4,parameterIsThisKeyword:()=>B3,parameterNamePart:()=>yb,parseBaseNodeFactory:()=>kGe,parseBigInt:()=>Qd,parseBuildCommand:()=>x8e,parseCommandLine:()=>LU,parseCommandLineWorker:()=>Aee,parseConfigFileTextToJson:()=>Pee,parseConfigFileWithSystem:()=>Nce,parseConfigHostFromCompilerHostLike:()=>z2e,parseCustomTypeOption:()=>zae,parseIsolatedEntityName:()=>sO,parseIsolatedJSDocComment:()=>PU,parseJSDocTypeExpressionForTests:()=>Pgt,parseJsonConfigFileContent:()=>zgt,parseJsonSourceFileConfigFileContent:()=>whe,parseJsonText:()=>Mae,parseListTypeOption:()=>OGe,parseNodeFactory:()=>mL,parseNodeModuleFromPath:()=>Mhe,parsePackageName:()=>jhe,parsePseudoBigInt:()=>_U,parseValidBigInt:()=>Ome,pasteEdits:()=>UNe,patchWriteFileEnsuringDirectory:()=>YQ,pathContainsNodeModules:()=>vM,pathIsAbsolute:()=>QQ,pathIsBareSpecifier:()=>ZQ,pathIsRelative:()=>t_,patternText:()=>_Ce,performIncrementalCompilation:()=>Rce,performance:()=>l$e,positionBelongsToNode:()=>Lte,positionIsASICandidate:()=>sX,positionIsSynthesized:()=>hN,positionsAreOnSameLine:()=>sv,preProcessFile:()=>JYe,probablyUsesSemicolons:()=>$te,processCommentPragmas:()=>hhe,processPragmasIntoFields:()=>iTe,processTaggedTemplateExpression:()=>bFe,programContainsEsModules:()=>Rte,programContainsModules:()=>F0e,projectReferenceIsEqualTo:()=>Ape,propertyNamePart:()=>tX,pseudoBigIntToString:()=>z8,punctuationPart:()=>Bf,pushIfUnique:()=>Xu,quote:()=>_le,quotePreferenceFromString:()=>uJ,rangeContainsPosition:()=>xx,rangeContainsPositionExclusive:()=>Pte,rangeContainsRange:()=>bw,rangeContainsRangeExclusive:()=>i2,rangeContainsStartEnd:()=>HW,rangeEndIsOnSameLineAsRangeStart:()=>_N,rangeEndPositionsAreOnSameLine:()=>D$e,rangeEquals:()=>lm,rangeIsOnSingleLine:()=>F8,rangeOfNode:()=>ZZ,rangeOfTypeParameters:()=>fU,rangeOverlapsWithStartEnd:()=>oJ,rangeStartIsOnSameLineAsRangeEnd:()=>I$e,rangeStartPositionsAreOnSameLine:()=>$T,readBuilderProgram:()=>Bce,readConfigFile:()=>Vae,readJson:()=>IG,readJsonConfigFile:()=>fTe,readJsonOrUndefined:()=>Rse,reduceEachLeadingCommentRange:()=>hpe,reduceEachTrailingCommentRange:()=>z$,reduceLeft:()=>$m,reduceLeftIterator:()=>ct,reducePathComponents:()=>gc,refactor:()=>vX,regExpEscape:()=>jOe,regularExpressionFlagToCharacterCode:()=>igt,relativeComplement:()=>ea,removeAllComments:()=>Hme,removeEmitHelper:()=>dee,removeExtension:()=>j8,removeFileExtension:()=>Qx,removeIgnoredPath:()=>Ece,removeMinAndVersionNumbers:()=>D$,removePrefix:()=>iH,removeSuffix:()=>eH,removeTrailingDirectorySeparator:()=>OE,repeatString:()=>LM,replaceElement:()=>m3,replaceFirstStar:()=>rL,resolutionExtensionIsTSOrJson:()=>QZ,resolveConfigFileProjectName:()=>o7e,resolveJSModule:()=>uKe,resolveLibrary:()=>DTe,resolveModuleName:()=>TK,resolveModuleNameFromCache:()=>lKe,resolvePackageNameToPackageJson:()=>z8e,resolvePath:()=>w7,resolveProjectReferencePath:()=>MW,resolveTripleslashReference:()=>BK,resolveTypeReferenceDirective:()=>rKe,resolvingEmptyArray:()=>vZ,returnFalse:()=>uk,returnNoopFileWatcher:()=>_0,returnTrue:()=>ql,returnUndefined:()=>FT,returnsPromise:()=>uMe,sameFlatMap:()=>Xl,sameMap:()=>$s,sameMapping:()=>uFe,scanTokenAtPosition:()=>Xke,scanner:()=>rS,semanticDiagnosticsOptionDeclarations:()=>Bae,serializeCompilerOptions:()=>gTe,server:()=>RCt,servicesVersion:()=>aZe,setCommentRange:()=>Xg,setConfigFileInOptions:()=>bTe,setConstantValue:()=>K0,setEmitFlags:()=>De,setGetSourceFileAsHashVersioned:()=>Kge,setIdentifierAutoGenerate:()=>yU,setIdentifierGeneratedImportReference:()=>$me,setIdentifierTypeArguments:()=>Zx,setInternalEmitFlags:()=>aae,setLocalizedDiagnosticMessages:()=>A$e,setNodeChildren:()=>Gwe,setNodeFlags:()=>R$e,setObjectAllocator:()=>oU,setOriginalNode:()=>Wo,setParent:()=>dp,setParentRecursive:()=>G3,setPrivateIdentifier:()=>r9,setSnippetElement:()=>Jme,setSourceMapRange:()=>w_,setStackTraceLimit:()=>V3e,setStartsOnNewLine:()=>Vs,setSyntheticLeadingComments:()=>pw,setSyntheticTrailingComments:()=>Qj,setSys:()=>Xht,setSysLog:()=>f$e,setTextRange:()=>Fn,setTextRangeEnd:()=>Gj,setTextRangePos:()=>qG,setTextRangePosEnd:()=>KT,setTextRangePosWidth:()=>$3,setTokenSourceMapRange:()=>Ume,setTypeNode:()=>Fwe,setUILocale:()=>jQ,setValueDeclaration:()=>YD,shouldAllowImportingTsExtension:()=>DK,shouldPreserveConstEnums:()=>ph,shouldUseUriStyleNodeCoreModules:()=>rz,showModuleSpecifier:()=>Wse,signatureHasRestParameter:()=>Wu,signatureToDisplayParts:()=>iX,single:()=>N6,singleElementArray:()=>Rl,singleIterator:()=>Qy,singleOrMany:()=>Hu,singleOrUndefined:()=>vp,skipAlias:()=>ym,skipConstraint:()=>v9,skipOuterExpressions:()=>ug,skipParentheses:()=>J_,skipPartiallyEmittedExpressions:()=>dh,skipTrivia:()=>fd,skipTypeChecking:()=>W8,skipTypeCheckingIgnoringNoCheck:()=>qOe,skipTypeParentheses:()=>RZ,skipWhile:()=>sw,sliceAfter:()=>$j,some:()=>En,sortAndDeduplicate:()=>tr,sortAndDeduplicateDiagnostics:()=>qw,sourceFileAffectingCompilerOptions:()=>Dee,sourceFileMayBeEmitted:()=>Pj,sourceMapCommentRegExp:()=>lFe,sourceMapCommentRegExpDontCareLineStart:()=>MKe,spacePart:()=>dg,spanMap:()=>$f,startEndContainsRange:()=>KK,startEndOverlapsWithStartEnd:()=>UW,startOnNewLine:()=>T1,startTracing:()=>L$,startsWith:()=>xl,startsWithDirectory:()=>T7,startsWithUnderscore:()=>tie,startsWithUseStrict:()=>pGe,stringContainsAt:()=>H7e,stringToToken:()=>fH,stripQuotes:()=>B2,supportedDeclarationExtensions:()=>wwe,supportedJSExtensionsFlat:()=>P5,supportedLocaleDirectories:()=>Cke,supportedTSExtensionsFlat:()=>Yse,supportedTSImplementationExtensions:()=>Pme,suppressLeadingAndTrailingTrivia:()=>Lk,suppressLeadingTrivia:()=>gF,suppressTrailingTrivia:()=>J0e,symbolEscapedNameNoDefault:()=>Bte,symbolName:()=>Bc,symbolNameNoDefault:()=>Ak,symbolToDisplayParts:()=>TN,sys:()=>hy,sysLog:()=>Aoe,tagNamesAreEquivalent:()=>Cg,takeWhile:()=>zQ,targetOptionDeclaration:()=>m8e,testFormatSettings:()=>wEe,textChangeRangeIsUnchanged:()=>xke,textChangeRangeNewSpan:()=>n5,textChanges:()=>Gs,textOrKeywordPart:()=>j0e,textPart:()=>Sw,textRangeContainsPositionInclusive:()=>Roe,textRangeContainsTextSpan:()=>Ry,textRangeIntersectsWithTextSpan:()=>Ske,textSpanContainsPosition:()=>bke,textSpanContainsTextRange:()=>U$,textSpanContainsTextSpan:()=>X3e,textSpanEnd:()=>ag,textSpanIntersection:()=>Y3e,textSpanIntersectsWith:()=>oZ,textSpanIntersectsWithPosition:()=>sZ,textSpanIntersectsWithTextSpan:()=>qg,textSpanIsEmpty:()=>H$,textSpanOverlap:()=>rZ,textSpanOverlapsWith:()=>J$,textSpansEqual:()=>ez,textToKeywordObj:()=>ZB,timestamp:()=>mm,toArray:()=>LS,toBuilderFileEmit:()=>q2e,toBuilderStateFileInfoForMultiEmit:()=>J2e,toEditorSettings:()=>Tye,toFileNameLowerCase:()=>OS,toPath:()=>dd,toProgramEmitPending:()=>Bge,toSorted:()=>du,tokenIsIdentifierOrKeyword:()=>FS,tokenIsIdentifierOrKeywordOrGreaterThan:()=>ME,tokenToString:()=>Ef,trace:()=>su,tracing:()=>us,tracingEnabled:()=>Soe,transferSourceFileChildren:()=>xae,transform:()=>o1t,transformClassFields:()=>tXe,transformDeclarations:()=>pce,transformECMAScriptModule:()=>wFe,transformES2015:()=>m2e,transformES2016:()=>kFe,transformES2017:()=>sXe,transformES2018:()=>aXe,transformES2019:()=>cXe,transformES2020:()=>lXe,transformES2021:()=>OK,transformESDecorators:()=>oXe,transformESNext:()=>u2e,transformGenerators:()=>h2e,transformImpliedNodeFormatDependentModule:()=>y2e,transformJsx:()=>p2e,transformLegacyDecorators:()=>c2e,transformModule:()=>_ce,transformNamedEvaluation:()=>mb,transformNodes:()=>pge,transformSystemModule:()=>g2e,transformTypeScript:()=>eXe,transpile:()=>_Me,transpileDeclaration:()=>Dyt,transpileModule:()=>aye,transpileOptionValueCompilerOptions:()=>hW,tryAddToSet:()=>dc,tryAndIgnoreErrors:()=>Kte,tryCast:()=>ac,tryDirectoryExists:()=>aX,tryExtractTSExtension:()=>eU,tryFileExists:()=>nz,tryGetClassExtendingExpressionWithTypeArguments:()=>Lse,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>UE,tryGetDirectories:()=>XEe,tryGetExtensionFromPath:()=>Pg,tryGetImportFromModuleSpecifier:()=>wj,tryGetJSDocSatisfiesTypeNode:()=>Bme,tryGetModuleNameFromFile:()=>kee,tryGetModuleSpecifierFromDeclaration:()=>J7,tryGetNativePerformanceHooks:()=>c$e,tryGetPropertyAccessOrIdentifierToString:()=>iI,tryGetPropertyNameOfBindingOrAssignmentElement:()=>Dae,tryGetSourceMappingURL:()=>Gee,tryGetTextOfPropertyName:()=>rG,tryParseJson:()=>jj,tryParsePattern:()=>dU,tryParsePatterns:()=>Zse,tryParseRawSourceMap:()=>RKe,tryReadDirectory:()=>Gte,tryReadFile:()=>OU,tryRemoveDirectoryPrefix:()=>Nme,tryRemoveExtension:()=>XA,tryRemovePrefix:()=>ZR,tryRemoveSuffix:()=>fCe,typeAcquisitionDeclarations:()=>jae,typeAliasNamePart:()=>W0e,typeDirectiveIsEqualTo:()=>Ppe,typeKeywords:()=>Mte,typeParameterNamePart:()=>xw,typeToDisplayParts:()=>MM,unchangedPollThresholds:()=>XB,unchangedTextChangeRange:()=>tv,unescapeLeadingUnderscores:()=>Ba,unmangleScopedPackageName:()=>xW,unorderedRemoveItem:()=>N$,unreachableCodeIsError:()=>Hj,unsetNodeChildren:()=>bee,unusedLabelIsError:()=>Eme,unwrapInnermostStatementOfLabel:()=>TZ,unwrapParenthesizedExpression:()=>Awe,updateErrorForNoInputFiles:()=>Ihe,updateLanguageServiceSourceFile:()=>qDe,updateMissingFilePathsWatch:()=>OFe,updateResolutionField:()=>BU,updateSharedExtendedConfigFileWatcher:()=>D2e,updateSourceFile:()=>mhe,updateWatchingWildcardDirectories:()=>Sge,usingSingleLineStringWriter:()=>SZ,utf16EncodeAsString:()=>ej,validateLocaleAndSetLanguage:()=>y3,version:()=>L,versionMajorMinor:()=>N,visitArray:()=>oce,visitCommaListElements:()=>sce,visitEachChild:()=>Fo,visitFunctionBody:()=>Po,visitIterationBody:()=>E1,visitLexicalEnvironment:()=>YTe,visitNode:()=>on,visitNodes:()=>ts,visitParameterList:()=>Af,walkUpBindingElementsAndPatterns:()=>tj,walkUpOuterExpressions:()=>t8e,walkUpParenthesizedExpressions:()=>uN,walkUpParenthesizedTypes:()=>bG,walkUpParenthesizedTypesAndGetParentAndChild:()=>Dj,whitespaceOrMapCommentRegExp:()=>Ek,writeCommentRange:()=>YH,writeFile:()=>Nse,writeFileEnsuringDirectories:()=>zZ,zipWith:()=>Ct});var iJt=!0,LCt;function nJt(){return LCt??(LCt=new ve(L))}function OCt(t,n,a,u,m){let g=n?"DeprecationError: ":"DeprecationWarning: ";return g+=`'${t}' `,g+=u?`has been deprecated since v${u}`:"is deprecated",g+=n?" and can no longer be used.":a?` and will no longer be usable after v${a}.`:".",g+=m?` ${KA(m,[t])}`:"",g}function rJt(t,n,a,u){let m=OCt(t,!0,n,a,u);return()=>{throw new TypeError(m)}}function eBe(t,n,a,u){let m=!1;return()=>{iJt&&!m&&(Se.log.warn(OCt(t,!1,n,a,u)),m=!0)}}function oJt(t,n={}){let a=typeof n.typeScriptVersion=="string"?new ve(n.typeScriptVersion):n.typeScriptVersion??nJt(),u=typeof n.errorAfter=="string"?new ve(n.errorAfter):n.errorAfter,m=typeof n.warnAfter=="string"?new ve(n.warnAfter):n.warnAfter,g=typeof n.since=="string"?new ve(n.since):n.since??m,v=n.error||u&&a.compareTo(u)>=0,x=!m||a.compareTo(m)>=0;return v?rJt(t,u,g,n.message):x?eBe(t,u,g,n.message):Za}function FCt(t,n){return function(){return t(),n.apply(this,arguments)}}function MCt(t,n){let a=oJt(n?.name??Se.getFunctionName(t),n);return FCt(a,t)}function bve(t,n,a,u){if(Object.defineProperty(g,"name",{...Object.getOwnPropertyDescriptor(g,"name"),value:t}),u)for(let v of Object.keys(u)){let x=+v;!isNaN(x)&&bf(n,`${x}`)&&(n[x]=MCt(n[x],{...u[x],name:t}))}let m=sJt(n,a);return g;function g(...v){let x=m(v),k=x!==void 0?n[x]:void 0;if(typeof k=="function")return k(...v);throw new TypeError("Invalid arguments")}}function sJt(t,n){return a=>{for(let u=0;bf(t,`${u}`)&&bf(n,`${u}`);u++){let m=n[u];if(m(a))return u}}}function lot(t){return{overload:n=>({bind:a=>({finish:()=>bve(t,n,a),deprecate:u=>({finish:()=>bve(t,n,a,u)})})})}}var RCt={};d(RCt,{ActionInvalidate:()=>G2,ActionPackageInstalled:()=>VK,ActionSet:()=>Vce,ActionWatchTypingLocations:()=>HK,Arguments:()=>u0e,AutoImportProviderProject:()=>tAe,AuxiliaryProject:()=>ZNe,CharRangeSection:()=>Fve,CloseFileWatcherEvent:()=>iAe,CommandNames:()=>CBe,ConfigFileDiagEvent:()=>mue,ConfiguredProject:()=>Tve,ConfiguredProjectLoadKind:()=>Lve,CreateDirectoryWatcherEvent:()=>yue,CreateFileWatcherEvent:()=>gue,Errors:()=>TL,EventBeginInstallTypes:()=>Ete,EventEndInstallTypes:()=>Hce,EventInitializationFailed:()=>l0e,EventTypesRegistry:()=>Tte,ExternalProject:()=>bz,GcTimer:()=>KNe,InferredProject:()=>QNe,LargeFileReferencedEvent:()=>pue,LineIndex:()=>kue,LineLeaf:()=>i,LineNode:()=>HX,LogLevel:()=>Y4,Msg:()=>Aie,OpenFileInfoTelemetryEvent:()=>Dve,Project:()=>zX,ProjectInfoTelemetryEvent:()=>Eve,ProjectKind:()=>kve,ProjectLanguageServiceStateEvent:()=>hue,ProjectLoadingFinishEvent:()=>_ue,ProjectLoadingStartEvent:()=>fue,ProjectService:()=>aAe,ProjectsUpdatedInBackgroundEvent:()=>Mie,ScriptInfo:()=>Cve,ScriptVersionCache:()=>zie,Session:()=>GCt,TextStorage:()=>vot,ThrottledOperations:()=>GNe,TypingsInstallerAdapter:()=>p,allFilesAreJsOrDts:()=>Lie,allRootFilesAreJsOrDts:()=>Pie,asNormalizedPath:()=>rBe,convertCompilerOptions:()=>zJ,convertFormatOptions:()=>L9,convertScriptKindName:()=>Nve,convertTypeAcquisition:()=>Ive,convertUserPreferences:()=>Ave,convertWatchOptions:()=>Rie,countEachFileTypes:()=>wve,createInstallTypingsRequest:()=>nBe,createModuleSpecifierCache:()=>Rot,createNormalizedPathMap:()=>oBe,createPackageJsonCache:()=>SBe,createSortedArray:()=>sBe,emptyArray:()=>Cd,findArgument:()=>bEe,formatDiagnosticToProtocol:()=>jie,formatMessage:()=>Bot,getBaseConfigFileName:()=>XNe,getLocationInNewDocument:()=>Uot,hasArgument:()=>Uce,hasNoTypeScriptSource:()=>Sot,indent:()=>Dte,isBackgroundProject:()=>jJ,isConfigFile:()=>cAe,isConfiguredProject:()=>PN,isDynamicFileName:()=>xve,isExternalProject:()=>Sz,isInferredProject:()=>aD,isInferredProjectName:()=>JNe,isProjectDeferredClose:()=>Oie,makeAutoImportProviderProjectName:()=>$Ne,makeAuxiliaryProjectName:()=>Sve,makeInferredProjectName:()=>qNe,maxFileSize:()=>Fie,maxProgramSizeForNonTsFiles:()=>due,normalizedPathToPath:()=>BJ,nowString:()=>hYe,nullCancellationToken:()=>zCt,nullTypingsInstaller:()=>Pve,protocol:()=>aBe,stringifyIndented:()=>EM,toEvent:()=>jot,toNormalizedPath:()=>Zm,tryConvertScriptKindName:()=>vue,typingsInstaller:()=>tBe,updateProjectIfDirty:()=>o2});var tBe={};d(tBe,{TypingsInstaller:()=>fot,getNpmCommandForInstallation:()=>Iy,installNpmPackages:()=>dot,typingsName:()=>iBe});var aJt={isEnabled:()=>!1,writeLine:Za};function uot(t,n,a,u){try{let m=TK(n,Ps(t,"index.d.ts"),{moduleResolution:2},a);return m.resolvedModule&&m.resolvedModule.resolvedFileName}catch(m){u.isEnabled()&&u.writeLine(`Failed to resolve ${n} in folder '${t}': ${m.message}`);return}}function dot(t,n,a,u){let m=!1;for(let g=a.length;g>0;){let v=Iy(t,n,a,g);g=v.remaining,m=u(v.command)||m}return m}function Iy(t,n,a,u){let m=a.length-u,g,v=u;for(;g=`${t} install --ignore-scripts ${(v===a.length?a:a.slice(m,m+v)).join(" ")} --save-dev --user-agent="typesInstaller/${n}"`,!(g.length<8e3);)v=v-Math.floor(v/2);return{command:g,remaining:u-v}}var fot=class{constructor(t,n,a,u,m,g=aJt){this.installTypingHost=t,this.globalCachePath=n,this.safeListPath=a,this.typesMapLocation=u,this.throttleLimit=m,this.log=g,this.packageNameToTypingLocation=new Map,this.missingTypingsSet=new Set,this.knownCachesSet=new Set,this.projectWatchers=new Map,this.pendingRunRequests=[],this.installRunCount=1,this.inFlightRequestCount=0,this.latestDistTag="latest",this.log.isEnabled()&&this.log.writeLine(`Global cache location '${n}', safe file path '${a}', types map path ${u}`),this.processCacheLocation(this.globalCachePath)}handleRequest(t){switch(t.kind){case"discover":this.install(t);break;case"closeProject":this.closeProject(t);break;case"typesRegistry":{let n={};this.typesRegistry.forEach((u,m)=>{n[m]=u});let a={kind:Tte,typesRegistry:n};this.sendResponse(a);break}case"installPackage":{this.installPackage(t);break}default:Se.assertNever(t)}}closeProject(t){this.closeWatchers(t.projectName)}closeWatchers(t){if(this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${t}'`),!this.projectWatchers.get(t)){this.log.isEnabled()&&this.log.writeLine(`No watchers are registered for project '${t}'`);return}this.projectWatchers.delete(t),this.sendResponse({kind:HK,projectName:t,files:[]}),this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${t}' - done.`)}install(t){this.log.isEnabled()&&this.log.writeLine(`Got install request${EM(t)}`),t.cachePath&&(this.log.isEnabled()&&this.log.writeLine(`Request specifies cache path '${t.cachePath}', loading cached information...`),this.processCacheLocation(t.cachePath)),this.safeList===void 0&&this.initializeSafeList();let n=lP.discoverTypings(this.installTypingHost,this.log.isEnabled()?a=>this.log.writeLine(a):void 0,t.fileNames,t.projectRootPath,this.safeList,this.packageNameToTypingLocation,t.typeAcquisition,t.unresolvedImports,this.typesRegistry,t.compilerOptions);this.watchFiles(t.projectName,n.filesToWatch),n.newTypingNames.length?this.installTypings(t,t.cachePath||this.globalCachePath,n.cachedTypingPaths,n.newTypingNames):(this.sendResponse(this.createSetTypings(t,n.cachedTypingPaths)),this.log.isEnabled()&&this.log.writeLine("No new typings were requested as a result of typings discovery"))}installPackage(t){let{fileName:n,packageName:a,projectName:u,projectRootPath:m,id:g}=t,v=T2(Cc(n),x=>{if(this.installTypingHost.fileExists(Ps(x,"package.json")))return x})||m;if(v)this.installWorker(-1,[a],v,x=>{let k=x?`Package ${a} installed.`:`There was an error installing ${a}.`,T={kind:VK,projectName:u,id:g,success:x,message:k};this.sendResponse(T)});else{let x={kind:VK,projectName:u,id:g,success:!1,message:"Could not determine a project root path."};this.sendResponse(x)}}initializeSafeList(){if(this.typesMapLocation){let t=lP.loadTypesMap(this.installTypingHost,this.typesMapLocation);if(t){this.log.writeLine(`Loaded safelist from types map file '${this.typesMapLocation}'`),this.safeList=t;return}this.log.writeLine(`Failed to load safelist from types map file '${this.typesMapLocation}'`)}this.safeList=lP.loadSafeList(this.installTypingHost,this.safeListPath)}processCacheLocation(t){if(this.log.isEnabled()&&this.log.writeLine(`Processing cache location '${t}'`),this.knownCachesSet.has(t)){this.log.isEnabled()&&this.log.writeLine("Cache location was already processed...");return}let n=Ps(t,"package.json"),a=Ps(t,"package-lock.json");if(this.log.isEnabled()&&this.log.writeLine(`Trying to find '${n}'...`),this.installTypingHost.fileExists(n)&&this.installTypingHost.fileExists(a)){let u=JSON.parse(this.installTypingHost.readFile(n)),m=JSON.parse(this.installTypingHost.readFile(a));if(this.log.isEnabled()&&(this.log.writeLine(`Loaded content of '${n}':${EM(u)}`),this.log.writeLine(`Loaded content of '${a}':${EM(m)}`)),u.devDependencies&&m.dependencies)for(let g in u.devDependencies){if(!bf(m.dependencies,g))continue;let v=sg(g);if(!v)continue;let x=uot(t,v,this.installTypingHost,this.log);if(!x){this.missingTypingsSet.add(v);continue}let k=this.packageNameToTypingLocation.get(v);if(k){if(k.typingLocation===x)continue;this.log.isEnabled()&&this.log.writeLine(`New typing for package ${v} from '${x}' conflicts with existing typing file '${k}'`)}this.log.isEnabled()&&this.log.writeLine(`Adding entry into typings cache: '${v}' => '${x}'`);let T=QV(m.dependencies,g),I=T&&T.version;if(!I)continue;let A={typingLocation:x,version:new ve(I)};this.packageNameToTypingLocation.set(v,A)}}this.log.isEnabled()&&this.log.writeLine(`Finished processing cache location '${t}'`),this.knownCachesSet.add(t)}filterTypings(t){return Dc(t,n=>{let a=Jee(n);if(this.missingTypingsSet.has(a)){this.log.isEnabled()&&this.log.writeLine(`'${n}':: '${a}' is in missingTypingsSet - skipping...`);return}let u=lP.validatePackageName(n);if(u!==lP.NameValidationResult.Ok){this.missingTypingsSet.add(a),this.log.isEnabled()&&this.log.writeLine(lP.renderPackageNameValidationFailure(u,n));return}if(!this.typesRegistry.has(a)){this.log.isEnabled()&&this.log.writeLine(`'${n}':: Entry for package '${a}' does not exist in local types registry - skipping...`);return}if(this.packageNameToTypingLocation.get(a)&&lP.isTypingUpToDate(this.packageNameToTypingLocation.get(a),this.typesRegistry.get(a))){this.log.isEnabled()&&this.log.writeLine(`'${n}':: '${a}' already has an up-to-date typing - skipping...`);return}return a})}ensurePackageDirectoryExists(t){let n=Ps(t,"package.json");this.log.isEnabled()&&this.log.writeLine(`Npm config file: ${n}`),this.installTypingHost.fileExists(n)||(this.log.isEnabled()&&this.log.writeLine(`Npm config file: '${n}' is missing, creating new one...`),this.ensureDirectoryExists(t,this.installTypingHost),this.installTypingHost.writeFile(n,'{ "private": true }'))}installTypings(t,n,a,u){this.log.isEnabled()&&this.log.writeLine(`Installing typings ${JSON.stringify(u)}`);let m=this.filterTypings(u);if(m.length===0){this.log.isEnabled()&&this.log.writeLine("All typings are known to be missing or invalid - no need to install more typings"),this.sendResponse(this.createSetTypings(t,a));return}this.ensurePackageDirectoryExists(n);let g=this.installRunCount;this.installRunCount++,this.sendResponse({kind:Ete,eventId:g,typingsInstallerVersion:L,projectName:t.projectName});let v=m.map(iBe);this.installTypingsAsync(g,v,n,x=>{try{if(!x){this.log.isEnabled()&&this.log.writeLine(`install request failed, marking packages as missing to prevent repeated requests: ${JSON.stringify(m)}`);for(let T of m)this.missingTypingsSet.add(T);return}this.log.isEnabled()&&this.log.writeLine(`Installed typings ${JSON.stringify(v)}`);let k=[];for(let T of m){let I=uot(n,T,this.installTypingHost,this.log);if(!I){this.missingTypingsSet.add(T);continue}let A=this.typesRegistry.get(T),M=new ve(A[`ts${N}`]||A[this.latestDistTag]),R={typingLocation:I,version:M};this.packageNameToTypingLocation.set(T,R),k.push(I)}this.log.isEnabled()&&this.log.writeLine(`Installed typing files ${JSON.stringify(k)}`),this.sendResponse(this.createSetTypings(t,a.concat(k)))}finally{let k={kind:Hce,eventId:g,projectName:t.projectName,packagesToInstall:v,installSuccess:x,typingsInstallerVersion:L};this.sendResponse(k)}})}ensureDirectoryExists(t,n){let a=Cc(t);n.directoryExists(a)||this.ensureDirectoryExists(a,n),n.directoryExists(t)||n.createDirectory(t)}watchFiles(t,n){if(!n.length){this.closeWatchers(t);return}let a=this.projectWatchers.get(t),u=new Set(n);!a||N2(u,m=>!a.has(m))||N2(a,m=>!u.has(m))?(this.projectWatchers.set(t,u),this.sendResponse({kind:HK,projectName:t,files:n})):this.sendResponse({kind:HK,projectName:t,files:void 0})}createSetTypings(t,n){return{projectName:t.projectName,typeAcquisition:t.typeAcquisition,compilerOptions:t.compilerOptions,typings:n,unresolvedImports:t.unresolvedImports,kind:Vce}}installTypingsAsync(t,n,a,u){this.pendingRunRequests.unshift({requestId:t,packageNames:n,cwd:a,onRequestCompleted:u}),this.executeWithThrottling()}executeWithThrottling(){for(;this.inFlightRequestCount{this.inFlightRequestCount--,t.onRequestCompleted(n),this.executeWithThrottling()})}}};function iBe(t){return`@types/${t}@ts${N}`}var Y4=(t=>(t[t.terse=0]="terse",t[t.normal=1]="normal",t[t.requestTime=2]="requestTime",t[t.verbose=3]="verbose",t))(Y4||{}),Cd=sBe(),Aie=(t=>(t.Err="Err",t.Info="Info",t.Perf="Perf",t))(Aie||{});function nBe(t,n,a,u){return{projectName:t.getProjectName(),fileNames:t.getFileNames(!0,!0).concat(t.getExcludedFiles()),compilerOptions:t.getCompilationSettings(),typeAcquisition:n,unresolvedImports:a,projectRootPath:t.getCurrentDirectory(),cachePath:u,kind:"discover"}}var TL;(t=>{function n(){throw new Error("No Project.")}t.ThrowNoProject=n;function a(){throw new Error("The project's language service is disabled.")}t.ThrowProjectLanguageServiceDisabled=a;function u(m,g){throw new Error(`Project '${g.getProjectName()}' does not contain document '${m}'`)}t.ThrowProjectDoesNotContainDocument=u})(TL||(TL={}));function Zm(t){return Kd(t)}function BJ(t,n,a){let u=LC(t)?t:tu(t,n);return a(u)}function rBe(t){return t}function oBe(){let t=new Map;return{get(n){return t.get(n)},set(n,a){t.set(n,a)},contains(n){return t.has(n)},remove(n){t.delete(n)}}}function JNe(t){return/dev\/null\/inferredProject\d+\*/.test(t)}function qNe(t){return`/dev/null/inferredProject${t}*`}function $Ne(t){return`/dev/null/autoImportProviderProject${t}*`}function Sve(t){return`/dev/null/auxiliaryProject${t}*`}function sBe(){return[]}var GNe=class Bhi{constructor(n,a){this.host=n,this.pendingTimeouts=new Map,this.logger=a.hasLevel(3)?a:void 0}schedule(n,a,u){let m=this.pendingTimeouts.get(n);m&&this.host.clearTimeout(m),this.pendingTimeouts.set(n,this.host.setTimeout(Bhi.run,a,n,this,u)),this.logger&&this.logger.info(`Scheduled: ${n}${m?", Cancelled earlier one":""}`)}cancel(n){let a=this.pendingTimeouts.get(n);return a?(this.host.clearTimeout(a),this.pendingTimeouts.delete(n)):!1}static run(n,a,u){a.pendingTimeouts.delete(n),a.logger&&a.logger.info(`Running: ${n}`),u()}},KNe=class jhi{constructor(n,a,u){this.host=n,this.delay=a,this.logger=u}scheduleCollect(){!this.host.gc||this.timerId!==void 0||(this.timerId=this.host.setTimeout(jhi.run,this.delay,this))}static run(n){n.timerId=void 0;let a=n.logger.hasLevel(2),u=a&&n.host.getMemoryUsage();if(n.host.gc(),a){let m=n.host.getMemoryUsage();n.logger.perftrc(`GC::before ${u}, after ${m}`)}}};function XNe(t){let n=sg(t);return n==="tsconfig.json"||n==="jsconfig.json"?n:void 0}var aBe={};d(aBe,{ClassificationType:()=>m0e,CommandTypes:()=>cBe,CompletionTriggerKind:()=>d0e,IndentStyle:()=>hot,JsxEmit:()=>got,ModuleKind:()=>yot,ModuleResolutionKind:()=>lBe,NewLineKind:()=>uue,OrganizeImportsMode:()=>dT,PollingWatchKind:()=>mot,ScriptTarget:()=>uBe,SemicolonPreference:()=>p0e,WatchDirectoryKind:()=>pot,WatchFileKind:()=>_ot});var cBe=(t=>(t.JsxClosingTag="jsxClosingTag",t.LinkedEditingRange="linkedEditingRange",t.Brace="brace",t.BraceFull="brace-full",t.BraceCompletion="braceCompletion",t.GetSpanOfEnclosingComment="getSpanOfEnclosingComment",t.Change="change",t.Close="close",t.Completions="completions",t.CompletionInfo="completionInfo",t.CompletionsFull="completions-full",t.CompletionDetails="completionEntryDetails",t.CompletionDetailsFull="completionEntryDetails-full",t.CompileOnSaveAffectedFileList="compileOnSaveAffectedFileList",t.CompileOnSaveEmitFile="compileOnSaveEmitFile",t.Configure="configure",t.Definition="definition",t.DefinitionFull="definition-full",t.DefinitionAndBoundSpan="definitionAndBoundSpan",t.DefinitionAndBoundSpanFull="definitionAndBoundSpan-full",t.Implementation="implementation",t.ImplementationFull="implementation-full",t.EmitOutput="emit-output",t.Exit="exit",t.FileReferences="fileReferences",t.FileReferencesFull="fileReferences-full",t.Format="format",t.Formatonkey="formatonkey",t.FormatFull="format-full",t.FormatonkeyFull="formatonkey-full",t.FormatRangeFull="formatRange-full",t.Geterr="geterr",t.GeterrForProject="geterrForProject",t.SemanticDiagnosticsSync="semanticDiagnosticsSync",t.SyntacticDiagnosticsSync="syntacticDiagnosticsSync",t.SuggestionDiagnosticsSync="suggestionDiagnosticsSync",t.NavBar="navbar",t.NavBarFull="navbar-full",t.Navto="navto",t.NavtoFull="navto-full",t.NavTree="navtree",t.NavTreeFull="navtree-full",t.DocumentHighlights="documentHighlights",t.DocumentHighlightsFull="documentHighlights-full",t.Open="open",t.Quickinfo="quickinfo",t.QuickinfoFull="quickinfo-full",t.References="references",t.ReferencesFull="references-full",t.Reload="reload",t.Rename="rename",t.RenameInfoFull="rename-full",t.RenameLocationsFull="renameLocations-full",t.Saveto="saveto",t.SignatureHelp="signatureHelp",t.SignatureHelpFull="signatureHelp-full",t.FindSourceDefinition="findSourceDefinition",t.Status="status",t.TypeDefinition="typeDefinition",t.ProjectInfo="projectInfo",t.ReloadProjects="reloadProjects",t.Unknown="unknown",t.OpenExternalProject="openExternalProject",t.OpenExternalProjects="openExternalProjects",t.CloseExternalProject="closeExternalProject",t.SynchronizeProjectList="synchronizeProjectList",t.ApplyChangedToOpenFiles="applyChangedToOpenFiles",t.UpdateOpen="updateOpen",t.EncodedSyntacticClassificationsFull="encodedSyntacticClassifications-full",t.EncodedSemanticClassificationsFull="encodedSemanticClassifications-full",t.Cleanup="cleanup",t.GetOutliningSpans="getOutliningSpans",t.GetOutliningSpansFull="outliningSpans",t.TodoComments="todoComments",t.Indentation="indentation",t.DocCommentTemplate="docCommentTemplate",t.CompilerOptionsDiagnosticsFull="compilerOptionsDiagnostics-full",t.NameOrDottedNameSpan="nameOrDottedNameSpan",t.BreakpointStatement="breakpointStatement",t.CompilerOptionsForInferredProjects="compilerOptionsForInferredProjects",t.GetCodeFixes="getCodeFixes",t.GetCodeFixesFull="getCodeFixes-full",t.GetCombinedCodeFix="getCombinedCodeFix",t.GetCombinedCodeFixFull="getCombinedCodeFix-full",t.ApplyCodeActionCommand="applyCodeActionCommand",t.GetSupportedCodeFixes="getSupportedCodeFixes",t.GetApplicableRefactors="getApplicableRefactors",t.GetEditsForRefactor="getEditsForRefactor",t.GetMoveToRefactoringFileSuggestions="getMoveToRefactoringFileSuggestions",t.GetPasteEdits="getPasteEdits",t.GetEditsForRefactorFull="getEditsForRefactor-full",t.OrganizeImports="organizeImports",t.OrganizeImportsFull="organizeImports-full",t.GetEditsForFileRename="getEditsForFileRename",t.GetEditsForFileRenameFull="getEditsForFileRename-full",t.ConfigurePlugin="configurePlugin",t.SelectionRange="selectionRange",t.SelectionRangeFull="selectionRange-full",t.ToggleLineComment="toggleLineComment",t.ToggleLineCommentFull="toggleLineComment-full",t.ToggleMultilineComment="toggleMultilineComment",t.ToggleMultilineCommentFull="toggleMultilineComment-full",t.CommentSelection="commentSelection",t.CommentSelectionFull="commentSelection-full",t.UncommentSelection="uncommentSelection",t.UncommentSelectionFull="uncommentSelection-full",t.PrepareCallHierarchy="prepareCallHierarchy",t.ProvideCallHierarchyIncomingCalls="provideCallHierarchyIncomingCalls",t.ProvideCallHierarchyOutgoingCalls="provideCallHierarchyOutgoingCalls",t.ProvideInlayHints="provideInlayHints",t.WatchChange="watchChange",t.MapCode="mapCode",t))(cBe||{}),_ot=(t=>(t.FixedPollingInterval="FixedPollingInterval",t.PriorityPollingInterval="PriorityPollingInterval",t.DynamicPriorityPolling="DynamicPriorityPolling",t.FixedChunkSizePolling="FixedChunkSizePolling",t.UseFsEvents="UseFsEvents",t.UseFsEventsOnParentDirectory="UseFsEventsOnParentDirectory",t))(_ot||{}),pot=(t=>(t.UseFsEvents="UseFsEvents",t.FixedPollingInterval="FixedPollingInterval",t.DynamicPriorityPolling="DynamicPriorityPolling",t.FixedChunkSizePolling="FixedChunkSizePolling",t))(pot||{}),mot=(t=>(t.FixedInterval="FixedInterval",t.PriorityInterval="PriorityInterval",t.DynamicPriority="DynamicPriority",t.FixedChunkSize="FixedChunkSize",t))(mot||{}),hot=(t=>(t.None="None",t.Block="Block",t.Smart="Smart",t))(hot||{}),got=(t=>(t.None="none",t.Preserve="preserve",t.ReactNative="react-native",t.React="react",t.ReactJSX="react-jsx",t.ReactJSXDev="react-jsxdev",t))(got||{}),yot=(t=>(t.None="none",t.CommonJS="commonjs",t.AMD="amd",t.UMD="umd",t.System="system",t.ES6="es6",t.ES2015="es2015",t.ES2020="es2020",t.ES2022="es2022",t.ESNext="esnext",t.Node16="node16",t.NodeNext="nodenext",t.Preserve="preserve",t))(yot||{}),lBe=(t=>(t.Classic="classic",t.Node="node",t.NodeJs="node",t.Node10="node10",t.Node16="node16",t.NodeNext="nodenext",t.Bundler="bundler",t))(lBe||{}),uue=(t=>(t.Crlf="Crlf",t.Lf="Lf",t))(uue||{}),uBe=(t=>(t.ES3="es3",t.ES5="es5",t.ES6="es6",t.ES2015="es2015",t.ES2016="es2016",t.ES2017="es2017",t.ES2018="es2018",t.ES2019="es2019",t.ES2020="es2020",t.ES2021="es2021",t.ES2022="es2022",t.ES2023="es2023",t.ESNext="esnext",t.JSON="json",t.Latest="esnext",t))(uBe||{}),vot=class{constructor(t,n,a){this.host=t,this.info=n,this.isOpen=!1,this.ownFileText=!1,this.pendingReloadFromDisk=!1,this.version=a||0}getVersion(){return this.svc?`SVC-${this.version}-${this.svc.getSnapshotVersion()}`:`Text-${this.version}`}hasScriptVersionCache_TestOnly(){return this.svc!==void 0}resetSourceMapInfo(){this.info.sourceFileLike=void 0,this.info.closeSourceMapFileWatcher(),this.info.sourceMapFilePath=void 0,this.info.declarationInfoPath=void 0,this.info.sourceInfos=void 0,this.info.documentPositionMapper=void 0}useText(t){this.svc=void 0,this.text=t,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo(),this.version++}edit(t,n,a){this.switchToScriptVersionCache().edit(t,n-t,a),this.ownFileText=!1,this.text=void 0,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo()}reload(t){return Se.assert(t!==void 0),this.pendingReloadFromDisk=!1,!this.text&&this.svc&&(this.text=PM(this.svc.getSnapshot())),this.text!==t?(this.useText(t),this.ownFileText=!1,!0):!1}reloadWithFileText(t){let{text:n,fileSize:a}=t||!this.info.isDynamicOrHasMixedContent()?this.getFileTextAndSize(t):{text:"",fileSize:void 0},u=this.reload(n);return this.fileSize=a,this.ownFileText=!t||t===this.info.fileName,this.ownFileText&&this.info.mTime===PC.getTime()&&(this.info.mTime=(this.host.getModifiedTime(this.info.fileName)||PC).getTime()),u}scheduleReloadIfNeeded(){return!this.pendingReloadFromDisk&&!this.ownFileText?this.pendingReloadFromDisk=!0:!1}delayReloadFromFileIntoText(){this.pendingReloadFromDisk=!0}getTelemetryFileSize(){return this.fileSize?this.fileSize:this.text?this.text.length:this.svc?this.svc.getSnapshot().getLength():this.getSnapshot().getLength()}getSnapshot(){var t;return((t=this.tryUseScriptVersionCache())==null?void 0:t.getSnapshot())||(this.textSnapshot??(this.textSnapshot=SEe.fromString(Se.checkDefined(this.text))))}getAbsolutePositionAndLineText(t){let n=this.tryUseScriptVersionCache();if(n)return n.getAbsolutePositionAndLineText(t);let a=this.getLineMap();return t<=a.length?{absolutePosition:a[t-1],lineText:this.text.substring(a[t-1],a[t])}:{absolutePosition:this.text.length,lineText:void 0}}lineToTextSpan(t){let n=this.tryUseScriptVersionCache();if(n)return n.lineToTextSpan(t);let a=this.getLineMap(),u=a[t],m=t+1n===void 0?n=this.host.readFile(a)||"":n;if(!VG(this.info.fileName)){let m=this.host.getFileSize?this.host.getFileSize(a):u().length;if(m>Fie)return Se.assert(!!this.info.containingProjects.length),this.info.containingProjects[0].projectService.logger.info(`Skipped loading contents of large file ${a} for info ${this.info.fileName}: fileSize: ${m}`),this.info.containingProjects[0].projectService.sendLargeFileReferencedEvent(a,m),{text:"",fileSize:m}}return{text:u()}}switchToScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&(this.svc=zie.fromString(this.getOrLoadText()),this.textSnapshot=void 0,this.version++),this.svc}tryUseScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&this.getOrLoadText(),this.isOpen?(!this.svc&&!this.textSnapshot&&(this.svc=zie.fromString(Se.checkDefined(this.text)),this.textSnapshot=void 0),this.svc):this.svc}getOrLoadText(){return(this.text===void 0||this.pendingReloadFromDisk)&&(Se.assert(!this.svc||this.pendingReloadFromDisk,"ScriptVersionCache should not be set when reloading from disk"),this.reloadWithFileText()),this.text}getLineMap(){return Se.assert(!this.svc,"ScriptVersionCache should not be set"),this.lineMap||(this.lineMap=E7(Se.checkDefined(this.text)))}getLineInfo(){let t=this.tryUseScriptVersionCache();if(t)return{getLineCount:()=>t.getLineCount(),getLineText:a=>t.getAbsolutePositionAndLineText(a+1).lineText};let n=this.getLineMap();return iS(this.text,n)}};function xve(t){return t[0]==="^"||(t.includes("walkThroughSnippet:/")||t.includes("untitled:/"))&&sg(t)[0]==="^"||t.includes(":^")&&!t.includes(uh)}var Cve=class{constructor(t,n,a,u,m,g){this.host=t,this.fileName=n,this.scriptKind=a,this.hasMixedContent=u,this.path=m,this.containingProjects=[],this.isDynamic=xve(n),this.textStorage=new vot(t,this,g),(u||this.isDynamic)&&(this.realpath=this.path),this.scriptKind=a||Jj(n)}isDynamicOrHasMixedContent(){return this.hasMixedContent||this.isDynamic}isScriptOpen(){return this.textStorage.isOpen}open(t){this.textStorage.isOpen=!0,t!==void 0&&this.textStorage.reload(t)&&this.markContainingProjectsAsDirty()}close(t=!0){this.textStorage.isOpen=!1,t&&this.textStorage.scheduleReloadIfNeeded()&&this.markContainingProjectsAsDirty()}getSnapshot(){return this.textStorage.getSnapshot()}ensureRealPath(){if(this.realpath===void 0&&(this.realpath=this.path,this.host.realpath)){Se.assert(!!this.containingProjects.length);let t=this.containingProjects[0],n=this.host.realpath(this.path);n&&(this.realpath=t.toPath(n),this.realpath!==this.path&&t.projectService.realpathToScriptInfos.add(this.realpath,this))}}getRealpathIfDifferent(){return this.realpath&&this.realpath!==this.path?this.realpath:void 0}isSymlink(){return this.realpath&&this.realpath!==this.path}getFormatCodeSettings(){return this.formatSettings}getPreferences(){return this.preferences}attachToProject(t){let n=!this.isAttached(t);return n&&(this.containingProjects.push(t),t.getCompilerOptions().preserveSymlinks||this.ensureRealPath(),t.onFileAddedOrRemoved(this.isSymlink())),n}isAttached(t){switch(this.containingProjects.length){case 0:return!1;case 1:return this.containingProjects[0]===t;case 2:return this.containingProjects[0]===t||this.containingProjects[1]===t;default:return dr(this.containingProjects,t)}}detachFromProject(t){switch(this.containingProjects.length){case 0:return;case 1:this.containingProjects[0]===t&&(t.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;case 2:this.containingProjects[0]===t?(t.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects[0]=this.containingProjects.pop()):this.containingProjects[1]===t&&(t.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;default:I$(this.containingProjects,t)&&t.onFileAddedOrRemoved(this.isSymlink());break}}detachAllProjects(){for(let t of this.containingProjects){PN(t)&&t.getCachedDirectoryStructureHost().addOrDeleteFile(this.fileName,this.path,2);let n=t.getRootFilesMap().get(this.path);t.removeFile(this,!1,!1),t.onFileAddedOrRemoved(this.isSymlink()),n&&!aD(t)&&t.addMissingFileRoot(n.fileName)}La(this.containingProjects)}getDefaultProject(){switch(this.containingProjects.length){case 0:return TL.ThrowNoProject();case 1:return Oie(this.containingProjects[0])||jJ(this.containingProjects[0])?TL.ThrowNoProject():this.containingProjects[0];default:let t,n,a,u;for(let m=0;m!t.isOrphan())}isContainedByBackgroundProject(){return En(this.containingProjects,jJ)}lineToTextSpan(t){return this.textStorage.lineToTextSpan(t)}lineOffsetToPosition(t,n,a){return this.textStorage.lineOffsetToPosition(t,n,a)}positionToLineOffset(t){BCt(t);let n=this.textStorage.positionToLineOffset(t);return cJt(n),n}isJavaScript(){return this.scriptKind===1||this.scriptKind===2}closeSourceMapFileWatcher(){this.sourceMapFilePath&&!Yu(this.sourceMapFilePath)&&(Dk(this.sourceMapFilePath),this.sourceMapFilePath=void 0)}};function BCt(t){Se.assert(typeof t=="number",`Expected position ${t} to be a number.`),Se.assert(t>=0,"Expected position to be non-negative.")}function cJt(t){Se.assert(typeof t.line=="number",`Expected line ${t.line} to be a number.`),Se.assert(typeof t.offset=="number",`Expected offset ${t.offset} to be a number.`),Se.assert(t.line>0,`Expected line to be non-${t.line===0?"zero":"negative"}`),Se.assert(t.offset>0,`Expected offset to be non-${t.offset===0?"zero":"negative"}`)}var kve=(t=>(t[t.Inferred=0]="Inferred",t[t.Configured=1]="Configured",t[t.External=2]="External",t[t.AutoImportProvider=3]="AutoImportProvider",t[t.Auxiliary=4]="Auxiliary",t))(kve||{});function wve(t,n=!1){let a={js:0,jsSize:0,jsx:0,jsxSize:0,ts:0,tsSize:0,tsx:0,tsxSize:0,dts:0,dtsSize:0,deferred:0,deferredSize:0};for(let u of t){let m=n?u.textStorage.getTelemetryFileSize():0;switch(u.scriptKind){case 1:a.js+=1,a.jsSize+=m;break;case 2:a.jsx+=1,a.jsxSize+=m;break;case 3:ey(u.fileName)?(a.dts+=1,a.dtsSize+=m):(a.ts+=1,a.tsSize+=m);break;case 4:a.tsx+=1,a.tsxSize+=m;break;case 7:a.deferred+=1,a.deferredSize+=m;break}}return a}function bot(t){let n=wve(t.getScriptInfos());return n.js>0&&n.ts===0&&n.tsx===0}function Pie(t){let n=wve(t.getRootScriptInfos());return n.ts===0&&n.tsx===0}function Lie(t){let n=wve(t.getScriptInfos());return n.ts===0&&n.tsx===0}function Sot(t){return!t.some(n=>Wh(n,".ts")&&!ey(n)||Wh(n,".tsx"))}function YNe(t){return t.generatedFilePath!==void 0}function dBe(t,n){if(t===n||(t||Cd).length===0&&(n||Cd).length===0)return!0;let a=new Map,u=0;for(let m of t)a.get(m)!==!0&&(a.set(m,!0),u++);for(let m of n){let g=a.get(m);if(g===void 0)return!1;g===!0&&(a.set(m,!1),u--)}return u===0}function xot(t,n){return t.enable!==n.enable||!dBe(t.include,n.include)||!dBe(t.exclude,n.exclude)}function Cot(t,n){return T0(t)!==T0(n)}function WX(t,n){return t===n?!1:!ho(t,n)}var zX=class Whi{constructor(n,a,u,m,g,v,x,k,T,I,A){switch(this.projectKind=a,this.projectService=u,this.documentRegistry=m,this.compilerOptions=x,this.compileOnSaveEnabled=k,this.watchOptions=T,this.rootFilesMap=new Map,this.plugins=[],this.cachedUnresolvedImportsPerFile=new Map,this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1,this.lastReportedVersion=0,this.projectProgramVersion=0,this.projectStateVersion=0,this.isInitialLoadPending=uk,this.dirty=!1,this.typingFiles=Cd,this.moduleSpecifierCache=Rot(this),this.createHash=wu(this.projectService.host,this.projectService.host.createHash),this.globalCacheResolutionModuleName=lP.nonRelativeModuleNameForTypingCache,this.updateFromProjectInProgress=!1,this.projectName=n,this.directoryStructureHost=I,this.currentDirectory=this.projectService.getNormalizedAbsolutePath(A),this.getCanonicalFileName=this.projectService.toCanonicalFileName,this.jsDocParsingMode=this.projectService.jsDocParsingMode,this.cancellationToken=new uZe(this.projectService.cancellationToken,this.projectService.throttleWaitMilliseconds),this.compilerOptions?(g||T0(this.compilerOptions)||this.projectService.hasDeferredExtension())&&(this.compilerOptions.allowNonTsExtensions=!0):(this.compilerOptions=Eye(),this.compilerOptions.allowNonTsExtensions=!0,this.compilerOptions.allowJs=!0),u.serverMode){case 0:this.languageServiceEnabled=!0;break;case 1:this.languageServiceEnabled=!0,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;case 2:this.languageServiceEnabled=!1,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;default:Se.assertNever(u.serverMode)}this.setInternalCompilerOptionsForEmittingJsFiles();let M=this.projectService.host;this.projectService.logger.loggingEnabled()?this.trace=R=>this.writeLog(R):M.trace&&(this.trace=R=>M.trace(R)),this.realpath=wu(M,M.realpath),this.preferNonRecursiveWatch=this.projectService.canUseWatchEvents||M.preferNonRecursiveWatch,this.resolutionCache=eEe(this,this.currentDirectory,!0),this.languageService=vRe(this,this.documentRegistry,this.projectService.serverMode),v&&this.disableLanguageService(v),this.markAsDirty(),jJ(this)||(this.projectService.pendingEnsureProjectForOpenFiles=!0),this.projectService.onProjectCreation(this)}getResolvedProjectReferenceToRedirect(n){}isNonTsProject(){return o2(this),Lie(this)}isJsOnlyProject(){return o2(this),bot(this)}static resolveModule(n,a,u,m){return Whi.importServicePluginSync({name:n},[a],u,m).resolvedModule}static importServicePluginSync(n,a,u,m){Se.assertIsDefined(u.require);let g,v;for(let x of a){let k=Ch(u.resolvePath(Ps(x,"node_modules")));m(`Loading ${n.name} from ${x} (resolved to ${k})`);let T=u.require(k,n.name);if(!T.error){v=T.module;break}let I=T.error.stack||T.error.message||JSON.stringify(T.error);(g??(g=[])).push(`Failed to load module '${n.name}' from ${k}: ${I}`)}return{pluginConfigEntry:n,resolvedModule:v,errorLogs:g}}static async importServicePluginAsync(n,a,u,m){Se.assertIsDefined(u.importPlugin);let g,v;for(let x of a){let k=Ps(x,"node_modules");m(`Dynamically importing ${n.name} from ${x} (resolved to ${k})`);let T;try{T=await u.importPlugin(k,n.name)}catch(A){T={module:void 0,error:A}}if(!T.error){v=T.module;break}let I=T.error.stack||T.error.message||JSON.stringify(T.error);(g??(g=[])).push(`Failed to dynamically import module '${n.name}' from ${k}: ${I}`)}return{pluginConfigEntry:n,resolvedModule:v,errorLogs:g}}isKnownTypesPackageName(n){return this.projectService.typingsInstaller.isKnownTypesPackageName(n)}installPackage(n){return this.projectService.typingsInstaller.installPackage({...n,projectName:this.projectName,projectRootPath:this.toPath(this.currentDirectory)})}getGlobalTypingsCacheLocation(){return this.getGlobalCache()}getSymlinkCache(){return this.symlinks||(this.symlinks=A5(this.getCurrentDirectory(),this.getCanonicalFileName)),this.program&&!this.symlinks.hasProcessedResolutions()&&this.symlinks.setSymlinksFromResolutions(this.program.forEachResolvedModule,this.program.forEachResolvedTypeReferenceDirective,this.program.getAutomaticTypeDirectiveResolutions()),this.symlinks}getCompilationSettings(){return this.compilerOptions}getCompilerOptions(){return this.getCompilationSettings()}getNewLine(){return this.projectService.host.newLine}getProjectVersion(){return this.projectStateVersion.toString()}getProjectReferences(){}getScriptFileNames(){if(!this.rootFilesMap.size)return F;let n;return this.rootFilesMap.forEach(a=>{(this.languageServiceEnabled||a.info&&a.info.isScriptOpen())&&(n||(n=[])).push(a.fileName)}),Ho(n,this.typingFiles)||F}getOrCreateScriptInfoAndAttachToProject(n){let a=this.projectService.getOrCreateScriptInfoNotOpenedByClient(n,this.currentDirectory,this.directoryStructureHost,!1);if(a){let u=this.rootFilesMap.get(a.path);u&&u.info!==a&&(u.info=a),a.attachToProject(this)}return a}getScriptKind(n){let a=this.projectService.getScriptInfoForPath(this.toPath(n));return a&&a.scriptKind}getScriptVersion(n){let a=this.projectService.getOrCreateScriptInfoNotOpenedByClient(n,this.currentDirectory,this.directoryStructureHost,!1);return a&&a.getLatestVersion()}getScriptSnapshot(n){let a=this.getOrCreateScriptInfoAndAttachToProject(n);if(a)return a.getSnapshot()}getCancellationToken(){return this.cancellationToken}getCurrentDirectory(){return this.currentDirectory}getDefaultLibFileName(){let n=Cc(Kd(this.projectService.getExecutingFilePath()));return Ps(n,gpe(this.compilerOptions))}useCaseSensitiveFileNames(){return this.projectService.host.useCaseSensitiveFileNames}readDirectory(n,a,u,m,g){return this.directoryStructureHost.readDirectory(n,a,u,m,g)}readFile(n){return this.projectService.host.readFile(n)}writeFile(n,a){return this.projectService.host.writeFile(n,a)}fileExists(n){let a=this.toPath(n);return!!this.projectService.getScriptInfoForPath(a)||!this.isWatchedMissingFile(a)&&this.directoryStructureHost.fileExists(n)}resolveModuleNameLiterals(n,a,u,m,g,v){return this.resolutionCache.resolveModuleNameLiterals(n,a,u,m,g,v)}getModuleResolutionCache(){return this.resolutionCache.getModuleResolutionCache()}resolveTypeReferenceDirectiveReferences(n,a,u,m,g,v){return this.resolutionCache.resolveTypeReferenceDirectiveReferences(n,a,u,m,g,v)}resolveLibrary(n,a,u,m){return this.resolutionCache.resolveLibrary(n,a,u,m)}directoryExists(n){return this.directoryStructureHost.directoryExists(n)}getDirectories(n){return this.directoryStructureHost.getDirectories(n)}getCachedDirectoryStructureHost(){}toPath(n){return dd(n,this.currentDirectory,this.projectService.toCanonicalFileName)}watchDirectoryOfFailedLookupLocation(n,a,u){return this.projectService.watchFactory.watchDirectory(n,a,u,this.projectService.getWatchOptions(this),Ty.FailedLookupLocations,this)}watchAffectingFileLocation(n,a){return this.projectService.watchFactory.watchFile(n,a,2e3,this.projectService.getWatchOptions(this),Ty.AffectingFileLocation,this)}clearInvalidateResolutionOfFailedLookupTimer(){return this.projectService.throttledOperations.cancel(`${this.getProjectName()}FailedLookupInvalidation`)}scheduleInvalidateResolutionsOfFailedLookupLocations(){this.projectService.throttledOperations.schedule(`${this.getProjectName()}FailedLookupInvalidation`,1e3,()=>{this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)})}invalidateResolutionsOfFailedLookupLocations(){this.clearInvalidateResolutionOfFailedLookupTimer()&&this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&(this.markAsDirty(),this.projectService.delayEnsureProjectForOpenFiles())}onInvalidatedResolution(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}watchTypeRootsDirectory(n,a,u){return this.projectService.watchFactory.watchDirectory(n,a,u,this.projectService.getWatchOptions(this),Ty.TypeRoots,this)}hasChangedAutomaticTypeDirectiveNames(){return this.resolutionCache.hasChangedAutomaticTypeDirectiveNames()}onChangedAutomaticTypeDirectiveNames(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}getGlobalCache(){return this.getTypeAcquisition().enable?this.projectService.typingsInstaller.globalTypingsCacheLocation:void 0}fileIsOpen(n){return this.projectService.openFiles.has(n)}writeLog(n){this.projectService.logger.info(n)}log(n){this.writeLog(n)}error(n){this.projectService.logger.msg(n,"Err")}setInternalCompilerOptionsForEmittingJsFiles(){(this.projectKind===0||this.projectKind===2)&&(this.compilerOptions.noEmitForJsFiles=!0)}getGlobalProjectErrors(){return Qn(this.projectErrors,n=>!n.file)||Cd}getAllProjectErrors(){return this.projectErrors||Cd}setProjectErrors(n){this.projectErrors=n}getLanguageService(n=!0){return n&&o2(this),this.languageService}getSourceMapper(){return this.getLanguageService().getSourceMapper()}clearSourceMapperCache(){this.languageService.clearSourceMapperCache()}getDocumentPositionMapper(n,a){return this.projectService.getDocumentPositionMapper(this,n,a)}getSourceFileLike(n){return this.projectService.getSourceFileLike(n,this)}shouldEmitFile(n){return n&&!n.isDynamicOrHasMixedContent()&&!this.program.isSourceOfProjectReferenceRedirect(n.path)}getCompileOnSaveAffectedFileList(n){return this.languageServiceEnabled?(o2(this),this.builderState=uI.create(this.program,this.builderState,!0),Dc(uI.getFilesAffectedBy(this.builderState,this.program,n.path,this.cancellationToken,this.projectService.host),a=>this.shouldEmitFile(this.projectService.getScriptInfoForPath(a.path))?a.fileName:void 0)):[]}emitFile(n,a){if(!this.languageServiceEnabled||!this.shouldEmitFile(n))return{emitSkipped:!0,diagnostics:Cd};let{emitSkipped:u,diagnostics:m,outputFiles:g}=this.getLanguageService().getEmitOutput(n.fileName);if(!u){for(let v of g){let x=tu(v.name,this.currentDirectory);a(x,v.text,v.writeByteOrderMark)}if(this.builderState&&fw(this.compilerOptions)){let v=g.filter(x=>ey(x.name));if(v.length===1){let x=this.program.getSourceFile(n.fileName),k=this.projectService.host.createHash?this.projectService.host.createHash(v[0].text):F$(v[0].text);uI.updateSignatureOfFile(this.builderState,k,x.resolvedPath)}}}return{emitSkipped:u,diagnostics:m}}enableLanguageService(){this.languageServiceEnabled||this.projectService.serverMode===2||(this.languageServiceEnabled=!0,this.lastFileExceededProgramSize=void 0,this.projectService.onUpdateLanguageServiceStateForProject(this,!0))}cleanupProgram(){if(this.program){for(let n of this.program.getSourceFiles())this.detachScriptInfoIfNotRoot(n.fileName);this.program.forEachResolvedProjectReference(n=>this.detachScriptInfoFromProject(n.sourceFile.fileName)),this.program=void 0}}disableLanguageService(n){this.languageServiceEnabled&&(Se.assert(this.projectService.serverMode!==2),this.languageService.cleanupSemanticCache(),this.languageServiceEnabled=!1,this.cleanupProgram(),this.lastFileExceededProgramSize=n,this.builderState=void 0,this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.resolutionCache.closeTypeRootsWatch(),this.clearGeneratedFileWatch(),this.projectService.verifyDocumentRegistry(),this.projectService.onUpdateLanguageServiceStateForProject(this,!1))}getProjectName(){return this.projectName}removeLocalTypingsFromTypeAcquisition(n){return!n.enable||!n.include?n:{...n,include:this.removeExistingTypings(n.include)}}getExternalFiles(n){return du(za(this.plugins,a=>{if(typeof a.module.getExternalFiles=="function")try{return a.module.getExternalFiles(this,n||0)}catch(u){this.projectService.logger.info(`A plugin threw an exception in getExternalFiles: ${u}`),u.stack&&this.projectService.logger.info(u.stack)}}))}getSourceFile(n){if(this.program)return this.program.getSourceFileByPath(n)}getSourceFileOrConfigFile(n){let a=this.program.getCompilerOptions();return n===a.configFilePath?a.configFile:this.getSourceFile(n)}close(){var n;this.typingsCache&&this.projectService.typingsInstaller.onProjectClosed(this),this.typingsCache=void 0,this.closeWatchingTypingLocations(),this.cleanupProgram(),ee(this.externalFiles,a=>this.detachScriptInfoIfNotRoot(a)),this.rootFilesMap.forEach(a=>{var u;return(u=a.info)==null?void 0:u.detachFromProject(this)}),this.projectService.pendingEnsureProjectForOpenFiles=!0,this.rootFilesMap=void 0,this.externalFiles=void 0,this.program=void 0,this.builderState=void 0,this.resolutionCache.clear(),this.resolutionCache=void 0,this.cachedUnresolvedImportsPerFile=void 0,(n=this.packageJsonWatches)==null||n.forEach(a=>{a.projects.delete(this),a.close()}),this.packageJsonWatches=void 0,this.moduleSpecifierCache.clear(),this.moduleSpecifierCache=void 0,this.directoryStructureHost=void 0,this.exportMapCache=void 0,this.projectErrors=void 0,this.plugins.length=0,this.missingFilesMap&&(Zb(this.missingFilesMap,GT),this.missingFilesMap=void 0),this.clearGeneratedFileWatch(),this.clearInvalidateResolutionOfFailedLookupTimer(),this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.noDtsResolutionProject&&this.noDtsResolutionProject.close(),this.noDtsResolutionProject=void 0,this.languageService.dispose(),this.languageService=void 0}detachScriptInfoIfNotRoot(n){let a=this.projectService.getScriptInfo(n);a&&!this.isRoot(a)&&a.detachFromProject(this)}isClosed(){return this.rootFilesMap===void 0}hasRoots(){var n;return!!((n=this.rootFilesMap)!=null&&n.size)}isOrphan(){return!1}getRootFiles(){return this.rootFilesMap&&tc(up(this.rootFilesMap.values(),n=>{var a;return(a=n.info)==null?void 0:a.fileName}))}getRootFilesMap(){return this.rootFilesMap}getRootScriptInfos(){return tc(up(this.rootFilesMap.values(),n=>n.info))}getScriptInfos(){return this.languageServiceEnabled?$i(this.program.getSourceFiles(),n=>{let a=this.projectService.getScriptInfoForPath(n.resolvedPath);return Se.assert(!!a,"getScriptInfo",()=>`scriptInfo for a file '${n.fileName}' Path: '${n.path}' / '${n.resolvedPath}' is missing.`),a}):this.getRootScriptInfos()}getExcludedFiles(){return Cd}getFileNames(n,a){if(!this.program)return[];if(!this.languageServiceEnabled){let m=this.getRootFiles();if(this.compilerOptions){let g=Ale(this.compilerOptions);g&&(m||(m=[])).push(g)}return m}let u=[];for(let m of this.program.getSourceFiles())n&&this.program.isSourceFileFromExternalLibrary(m)||u.push(m.fileName);if(!a){let m=this.program.getCompilerOptions().configFile;if(m&&(u.push(m.fileName),m.extendedSourceFiles))for(let g of m.extendedSourceFiles)u.push(g)}return u}getFileNamesWithRedirectInfo(n){return this.getFileNames().map(a=>({fileName:a,isSourceOfProjectReferenceRedirect:n&&this.isSourceOfProjectReferenceRedirect(a)}))}hasConfigFile(n){if(this.program&&this.languageServiceEnabled){let a=this.program.getCompilerOptions().configFile;if(a){if(n===a.fileName)return!0;if(a.extendedSourceFiles){for(let u of a.extendedSourceFiles)if(n===u)return!0}}}return!1}containsScriptInfo(n){if(this.isRoot(n))return!0;if(!this.program)return!1;let a=this.program.getSourceFileByPath(n.path);return!!a&&a.resolvedPath===n.path}containsFile(n,a){let u=this.projectService.getScriptInfoForNormalizedPath(n);return u&&(u.isScriptOpen()||!a)?this.containsScriptInfo(u):!1}isRoot(n){var a,u;return((u=(a=this.rootFilesMap)==null?void 0:a.get(n.path))==null?void 0:u.info)===n}addRoot(n,a){Se.assert(!this.isRoot(n)),this.rootFilesMap.set(n.path,{fileName:a||n.fileName,info:n}),n.attachToProject(this),this.markAsDirty()}addMissingFileRoot(n){let a=this.projectService.toPath(n);this.rootFilesMap.set(a,{fileName:n}),this.markAsDirty()}removeFile(n,a,u){this.isRoot(n)&&this.removeRoot(n),a?this.resolutionCache.removeResolutionsOfFile(n.path):this.resolutionCache.invalidateResolutionOfFile(n.path),this.cachedUnresolvedImportsPerFile.delete(n.path),u&&n.detachFromProject(this),this.markAsDirty()}registerFileUpdate(n){(this.updatedFileNames||(this.updatedFileNames=new Set)).add(n)}markFileAsDirty(n){this.markAsDirty(),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.changedFilesForExportMapCache||(this.changedFilesForExportMapCache=new Set)).add(n)}markAsDirty(){this.dirty||(this.projectStateVersion++,this.dirty=!0)}markAutoImportProviderAsDirty(){var n;this.autoImportProviderHost||(this.autoImportProviderHost=void 0),(n=this.autoImportProviderHost)==null||n.markAsDirty()}onAutoImportProviderSettingsChanged(){var n;this.autoImportProviderHost===!1?this.autoImportProviderHost=void 0:(n=this.autoImportProviderHost)==null||n.markAsDirty()}onPackageJsonChange(){this.moduleSpecifierCache.clear(),this.autoImportProviderHost&&this.autoImportProviderHost.markAsDirty()}onFileAddedOrRemoved(n){this.hasAddedorRemovedFiles=!0,n&&(this.hasAddedOrRemovedSymlinks=!0)}onDiscoveredSymlink(){this.hasAddedOrRemovedSymlinks=!0}onReleaseOldSourceFile(n,a,u,m){(!m||n.resolvedPath===n.path&&m.resolvedPath!==n.path)&&this.detachScriptInfoFromProject(n.fileName,u)}updateFromProject(){o2(this)}updateGraph(){var n,a;(n=us)==null||n.push(us.Phase.Session,"updateGraph",{name:this.projectName,kind:kve[this.projectKind]}),this.resolutionCache.startRecordingFilesWithChangedResolutions();let u=this.updateGraphWorker(),m=this.hasAddedorRemovedFiles;this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1;let g=this.resolutionCache.finishRecordingFilesWithChangedResolutions()||Cd;for(let x of g)this.cachedUnresolvedImportsPerFile.delete(x);this.languageServiceEnabled&&this.projectService.serverMode===0&&!this.isOrphan()?((u||g.length)&&(this.lastCachedUnresolvedImportsList=lJt(this.program,this.cachedUnresolvedImportsPerFile)),this.enqueueInstallTypingsForProject(m)):this.lastCachedUnresolvedImportsList=void 0;let v=this.projectProgramVersion===0&&u;return u&&this.projectProgramVersion++,m&&this.markAutoImportProviderAsDirty(),v&&this.getPackageJsonAutoImportProvider(),(a=us)==null||a.pop(),!u}enqueueInstallTypingsForProject(n){let a=this.getTypeAcquisition();if(!a||!a.enable||this.projectService.typingsInstaller===Pve)return;let u=this.typingsCache;(n||!u||xot(a,u.typeAcquisition)||Cot(this.getCompilationSettings(),u.compilerOptions)||WX(this.lastCachedUnresolvedImportsList,u.unresolvedImports))&&(this.typingsCache={compilerOptions:this.getCompilationSettings(),typeAcquisition:a,unresolvedImports:this.lastCachedUnresolvedImportsList},this.projectService.typingsInstaller.enqueueInstallTypingsRequest(this,a,this.lastCachedUnresolvedImportsList))}updateTypingFiles(n,a,u,m){this.typingsCache={compilerOptions:n,typeAcquisition:a,unresolvedImports:u};let g=!a||!a.enable?Cd:du(m);$B(g,this.typingFiles,s4(!this.useCaseSensitiveFileNames()),Za,v=>this.detachScriptInfoFromProject(v))&&(this.typingFiles=g,this.resolutionCache.setFilesWithInvalidatedNonRelativeUnresolvedImports(this.cachedUnresolvedImportsPerFile),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}closeWatchingTypingLocations(){this.typingWatchers&&Zb(this.typingWatchers,GT),this.typingWatchers=void 0}onTypingInstallerWatchInvoke(){this.typingWatchers.isInvoked=!0,this.projectService.updateTypingsForProject({projectName:this.getProjectName(),kind:G2})}watchTypingLocations(n){if(!n){this.typingWatchers.isInvoked=!1;return}if(!n.length){this.closeWatchingTypingLocations();return}let a=new Map(this.typingWatchers);this.typingWatchers||(this.typingWatchers=new Map),this.typingWatchers.isInvoked=!1;let u=(m,g)=>{let v=this.toPath(m);a.delete(v),this.typingWatchers.has(v)||this.typingWatchers.set(v,g==="FileWatcher"?this.projectService.watchFactory.watchFile(m,()=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):this.onTypingInstallerWatchInvoke(),2e3,this.projectService.getWatchOptions(this),Ty.TypingInstallerLocationFile,this):this.projectService.watchFactory.watchDirectory(m,x=>{if(this.typingWatchers.isInvoked)return this.writeLog("TypingWatchers already invoked");if(!Wh(x,".json"))return this.writeLog("Ignoring files that are not *.json");if(fk(x,Ps(this.projectService.typingsInstaller.globalTypingsCacheLocation,"package.json"),!this.useCaseSensitiveFileNames()))return this.writeLog("Ignoring package.json change at global typings location");this.onTypingInstallerWatchInvoke()},1,this.projectService.getWatchOptions(this),Ty.TypingInstallerLocationDirectory,this))};for(let m of n){let g=sg(m);if(g==="package.json"||g==="bower.json"){u(m,"FileWatcher");continue}if(Gp(this.currentDirectory,m,this.currentDirectory,!this.useCaseSensitiveFileNames())){let v=m.indexOf(uh,this.currentDirectory.length+1);u(v!==-1?m.substr(0,v):m,"DirectoryWatcher");continue}if(Gp(this.projectService.typingsInstaller.globalTypingsCacheLocation,m,this.currentDirectory,!this.useCaseSensitiveFileNames())){u(this.projectService.typingsInstaller.globalTypingsCacheLocation,"DirectoryWatcher");continue}u(m,"DirectoryWatcher")}a.forEach((m,g)=>{m.close(),this.typingWatchers.delete(g)})}getCurrentProgram(){return this.program}removeExistingTypings(n){if(!n.length)return n;let a=Xae(this.getCompilerOptions(),this.directoryStructureHost);return Qn(n,u=>!a.includes(u))}updateGraphWorker(){var n,a;let u=this.languageService.getCurrentProgram();Se.assert(u===this.program),Se.assert(!this.isClosed(),"Called update graph worker of closed project"),this.writeLog(`Starting updateGraphWorker: Project: ${this.getProjectName()}`);let m=mm(),{hasInvalidatedResolutions:g,hasInvalidatedLibResolutions:v}=this.resolutionCache.createHasInvalidatedResolutions(uk,uk);this.hasInvalidatedResolutions=g,this.hasInvalidatedLibResolutions=v,this.resolutionCache.startCachingPerDirectoryResolution(),this.dirty=!1,this.updateFromProjectInProgress=!0,this.program=this.languageService.getProgram(),this.updateFromProjectInProgress=!1,(n=us)==null||n.push(us.Phase.Session,"finishCachingPerDirectoryResolution"),this.resolutionCache.finishCachingPerDirectoryResolution(this.program,u),(a=us)==null||a.pop(),Se.assert(u===void 0||this.program!==void 0);let x=!1;if(this.program&&(!u||this.program!==u&&this.program.structureIsReused!==2)){if(x=!0,this.rootFilesMap.forEach((I,A)=>{var M;let R=this.program.getSourceFileByPath(A),H=I.info;!R||((M=I.info)==null?void 0:M.path)===R.resolvedPath||(I.info=this.projectService.getScriptInfo(R.fileName),Se.assert(I.info.isAttached(this)),H?.detachFromProject(this))}),OFe(this.program,this.missingFilesMap||(this.missingFilesMap=new Map),(I,A)=>this.addMissingFileWatcher(I,A)),this.generatedFilesMap){let I=this.compilerOptions.outFile;YNe(this.generatedFilesMap)?(!I||!this.isValidGeneratedFileWatcher(Qx(I)+".d.ts",this.generatedFilesMap))&&this.clearGeneratedFileWatch():I?this.clearGeneratedFileWatch():this.generatedFilesMap.forEach((A,M)=>{let R=this.program.getSourceFileByPath(M);(!R||R.resolvedPath!==M||!this.isValidGeneratedFileWatcher(JH(R.fileName,this.compilerOptions,this.program),A))&&(Dk(A),this.generatedFilesMap.delete(M))})}this.languageServiceEnabled&&this.projectService.serverMode===0&&this.resolutionCache.updateTypeRootsWatch()}this.projectService.verifyProgram(this),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.exportMapCache.releaseSymbols(),this.hasAddedorRemovedFiles||u&&!this.program.structureIsReused?this.exportMapCache.clear():this.changedFilesForExportMapCache&&u&&this.program&&N2(this.changedFilesForExportMapCache,I=>{let A=u.getSourceFileByPath(I),M=this.program.getSourceFileByPath(I);return!A||!M?(this.exportMapCache.clear(),!0):this.exportMapCache.onFileChanged(A,M,!!this.getTypeAcquisition().enable)})),this.changedFilesForExportMapCache&&this.changedFilesForExportMapCache.clear(),(this.hasAddedOrRemovedSymlinks||this.program&&!this.program.structureIsReused&&this.getCompilerOptions().preserveSymlinks)&&(this.symlinks=void 0,this.moduleSpecifierCache.clear());let k=this.externalFiles||Cd;this.externalFiles=this.getExternalFiles(),$B(this.externalFiles,k,s4(!this.useCaseSensitiveFileNames()),I=>{let A=this.projectService.getOrCreateScriptInfoNotOpenedByClient(I,this.currentDirectory,this.directoryStructureHost,!1);A?.attachToProject(this)},I=>this.detachScriptInfoFromProject(I));let T=mm()-m;return this.sendPerformanceEvent("UpdateGraph",T),this.writeLog(`Finishing updateGraphWorker: Project: ${this.getProjectName()} projectStateVersion: ${this.projectStateVersion} projectProgramVersion: ${this.projectProgramVersion} structureChanged: ${x}${this.program?` structureIsReused:: ${woe[this.program.structureIsReused]}`:""} Elapsed: ${T}ms`),this.projectService.logger.isTestLogger?this.program!==u?this.print(!0,this.hasAddedorRemovedFiles,!0):this.writeLog("Same program as before"):this.hasAddedorRemovedFiles?this.print(!0,!0,!1):this.program!==u&&this.writeLog("Different program with same set of files"),this.projectService.verifyDocumentRegistry(),x}sendPerformanceEvent(n,a){this.projectService.sendPerformanceEvent(n,a)}detachScriptInfoFromProject(n,a){let u=this.projectService.getScriptInfo(n);u&&(u.detachFromProject(this),a||this.resolutionCache.removeResolutionsOfFile(u.path))}addMissingFileWatcher(n,a){var u;if(PN(this)){let g=this.projectService.configFileExistenceInfoCache.get(n);if((u=g?.config)!=null&&u.projects.has(this.canonicalConfigFilePath))return iJ}let m=this.projectService.watchFactory.watchFile(tu(a,this.currentDirectory),(g,v)=>{PN(this)&&this.getCachedDirectoryStructureHost().addOrDeleteFile(g,n,v),v===0&&this.missingFilesMap.has(n)&&(this.missingFilesMap.delete(n),m.close(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))},500,this.projectService.getWatchOptions(this),Ty.MissingFile,this);return m}isWatchedMissingFile(n){return!!this.missingFilesMap&&this.missingFilesMap.has(n)}addGeneratedFileWatch(n,a){if(this.compilerOptions.outFile)this.generatedFilesMap||(this.generatedFilesMap=this.createGeneratedFileWatcher(n));else{let u=this.toPath(a);if(this.generatedFilesMap){if(YNe(this.generatedFilesMap)){Se.fail(`${this.projectName} Expected to not have --out watcher for generated file with options: ${JSON.stringify(this.compilerOptions)}`);return}if(this.generatedFilesMap.has(u))return}else this.generatedFilesMap=new Map;this.generatedFilesMap.set(u,this.createGeneratedFileWatcher(n))}}createGeneratedFileWatcher(n){return{generatedFilePath:this.toPath(n),watcher:this.projectService.watchFactory.watchFile(n,()=>{this.clearSourceMapperCache(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)},2e3,this.projectService.getWatchOptions(this),Ty.MissingGeneratedFile,this)}}isValidGeneratedFileWatcher(n,a){return this.toPath(n)===a.generatedFilePath}clearGeneratedFileWatch(){this.generatedFilesMap&&(YNe(this.generatedFilesMap)?Dk(this.generatedFilesMap):Zb(this.generatedFilesMap,Dk),this.generatedFilesMap=void 0)}getScriptInfoForNormalizedPath(n){let a=this.projectService.getScriptInfoForPath(this.toPath(n));return a&&!a.isAttached(this)?TL.ThrowProjectDoesNotContainDocument(n,this):a}getScriptInfo(n){return this.projectService.getScriptInfo(n)}filesToString(n){return this.filesToStringWorker(n,!0,!1)}filesToStringWorker(n,a,u){if(this.isInitialLoadPending())return` Files (0) InitialLoadPending +`;if(!this.program)return` Files (0) NoProgram +`;let m=this.program.getSourceFiles(),g=` Files (${m.length}) +`;if(n){for(let v of m)g+=` ${v.fileName}${u?` ${v.version} ${JSON.stringify(v.text)}`:""} +`;a&&(g+=` + +`,Lce(this.program,v=>g+=` ${v} +`))}return g}print(n,a,u){var m;this.writeLog(`Project '${this.projectName}' (${kve[this.projectKind]})`),this.writeLog(this.filesToStringWorker(n&&this.projectService.logger.hasLevel(3),a&&this.projectService.logger.hasLevel(3),u&&this.projectService.logger.hasLevel(3))),this.writeLog("-----------------------------------------------"),this.autoImportProviderHost&&this.autoImportProviderHost.print(!1,!1,!1),(m=this.noDtsResolutionProject)==null||m.print(!1,!1,!1)}setCompilerOptions(n){var a;if(n){n.allowNonTsExtensions=!0;let u=this.compilerOptions;this.compilerOptions=n,this.setInternalCompilerOptionsForEmittingJsFiles(),(a=this.noDtsResolutionProject)==null||a.setCompilerOptions(this.getCompilerOptionsForNoDtsResolutionProject()),uj(u,n)&&(this.cachedUnresolvedImportsPerFile.clear(),this.lastCachedUnresolvedImportsList=void 0,this.resolutionCache.onChangesAffectModuleResolution(),this.moduleSpecifierCache.clear()),this.markAsDirty()}}setWatchOptions(n){this.watchOptions=n}getWatchOptions(){return this.watchOptions}setTypeAcquisition(n){n&&(this.typeAcquisition=this.removeLocalTypingsFromTypeAcquisition(n))}getTypeAcquisition(){return this.typeAcquisition||{}}getChangesSinceVersion(n,a){var u,m;let g=a?k=>tc(k.entries(),([T,I])=>({fileName:T,isSourceOfProjectReferenceRedirect:I})):k=>tc(k.keys());this.isInitialLoadPending()||o2(this);let v={projectName:this.getProjectName(),version:this.projectProgramVersion,isInferred:aD(this),options:this.getCompilationSettings(),languageServiceDisabled:!this.languageServiceEnabled,lastFileExceededProgramSize:this.lastFileExceededProgramSize},x=this.updatedFileNames;if(this.updatedFileNames=void 0,this.lastReportedFileNames&&n===this.lastReportedVersion){if(this.projectProgramVersion===this.lastReportedVersion&&!x)return{info:v,projectErrors:this.getGlobalProjectErrors()};let k=this.lastReportedFileNames,T=((u=this.externalFiles)==null?void 0:u.map(U=>({fileName:Zm(U),isSourceOfProjectReferenceRedirect:!1})))||Cd,I=I_(this.getFileNamesWithRedirectInfo(!!a).concat(T),U=>U.fileName,U=>U.isSourceOfProjectReferenceRedirect),A=new Map,M=new Map,R=x?tc(x.keys()):[],H=[];return Km(I,(U,$)=>{k.has($)?a&&U!==k.get($)&&H.push({fileName:$,isSourceOfProjectReferenceRedirect:U}):A.set($,U)}),Km(k,(U,$)=>{I.has($)||M.set($,U)}),this.lastReportedFileNames=I,this.lastReportedVersion=this.projectProgramVersion,{info:v,changes:{added:g(A),removed:g(M),updated:a?R.map(U=>({fileName:U,isSourceOfProjectReferenceRedirect:this.isSourceOfProjectReferenceRedirect(U)})):R,updatedRedirects:a?H:void 0},projectErrors:this.getGlobalProjectErrors()}}else{let k=this.getFileNamesWithRedirectInfo(!!a),T=((m=this.externalFiles)==null?void 0:m.map(A=>({fileName:Zm(A),isSourceOfProjectReferenceRedirect:!1})))||Cd,I=k.concat(T);return this.lastReportedFileNames=I_(I,A=>A.fileName,A=>A.isSourceOfProjectReferenceRedirect),this.lastReportedVersion=this.projectProgramVersion,{info:v,files:a?I:I.map(A=>A.fileName),projectErrors:this.getGlobalProjectErrors()}}}removeRoot(n){this.rootFilesMap.delete(n.path)}isSourceOfProjectReferenceRedirect(n){return!!this.program&&this.program.isSourceOfProjectReferenceRedirect(n)}getGlobalPluginSearchPaths(){return[...this.projectService.pluginProbeLocations,Ps(this.projectService.getExecutingFilePath(),"../../..")]}enableGlobalPlugins(n){if(!this.projectService.globalPlugins.length)return;let a=this.projectService.host;if(!a.require&&!a.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}let u=this.getGlobalPluginSearchPaths();for(let m of this.projectService.globalPlugins)m&&(n.plugins&&n.plugins.some(g=>g.name===m)||(this.projectService.logger.info(`Loading global plugin ${m}`),this.enablePlugin({name:m,global:!0},u)))}enablePlugin(n,a){this.projectService.requestEnablePlugin(this,n,a)}enableProxy(n,a){try{if(typeof n!="function"){this.projectService.logger.info(`Skipped loading plugin ${a.name} because it did not expose a proper factory function`);return}let u={config:a,project:this,languageService:this.languageService,languageServiceHost:this,serverHost:this.projectService.host,session:this.projectService.session},m=n({typescript:cot}),g=m.create(u);for(let v of Object.keys(this.languageService))v in g||(this.projectService.logger.info(`Plugin activation warning: Missing proxied method ${v} in created LS. Patching.`),g[v]=this.languageService[v]);this.projectService.logger.info("Plugin validation succeeded"),this.languageService=g,this.plugins.push({name:a.name,module:m})}catch(u){this.projectService.logger.info(`Plugin activation failed: ${u}`)}}onPluginConfigurationChanged(n,a){this.plugins.filter(u=>u.name===n).forEach(u=>{u.module.onConfigurationChanged&&u.module.onConfigurationChanged(a)})}refreshDiagnostics(){this.projectService.sendProjectsUpdatedInBackgroundEvent()}getPackageJsonsVisibleToFile(n,a){return this.projectService.serverMode!==0?Cd:this.projectService.getPackageJsonsVisibleToFile(n,this,a)}getNearestAncestorDirectoryWithPackageJson(n){return this.projectService.getNearestAncestorDirectoryWithPackageJson(n)}getPackageJsonsForAutoImport(n){return this.getPackageJsonsVisibleToFile(Ps(this.currentDirectory,KU),n)}getPackageJsonCache(){return this.projectService.packageJsonCache}getCachedExportInfoMap(){return this.exportMapCache||(this.exportMapCache=sz(this))}clearCachedExportInfoMap(){var n;(n=this.exportMapCache)==null||n.clear()}getModuleSpecifierCache(){return this.moduleSpecifierCache}includePackageJsonAutoImports(){return this.projectService.includePackageJsonAutoImports()===0||!this.languageServiceEnabled||cX(this.currentDirectory)||!this.isDefaultProjectForOpenFiles()?0:this.projectService.includePackageJsonAutoImports()}getHostForAutoImportProvider(){var n,a;return this.program?{fileExists:this.program.fileExists,directoryExists:this.program.directoryExists,realpath:this.program.realpath||((n=this.projectService.host.realpath)==null?void 0:n.bind(this.projectService.host)),getCurrentDirectory:this.getCurrentDirectory.bind(this),readFile:this.projectService.host.readFile.bind(this.projectService.host),getDirectories:this.projectService.host.getDirectories.bind(this.projectService.host),trace:(a=this.projectService.host.trace)==null?void 0:a.bind(this.projectService.host),useCaseSensitiveFileNames:this.program.useCaseSensitiveFileNames(),readDirectory:this.projectService.host.readDirectory.bind(this.projectService.host)}:this.projectService.host}getPackageJsonAutoImportProvider(){var n,a,u;if(this.autoImportProviderHost===!1)return;if(this.projectService.serverMode!==0){this.autoImportProviderHost=!1;return}if(this.autoImportProviderHost){if(o2(this.autoImportProviderHost),this.autoImportProviderHost.isEmpty()){this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0;return}return this.autoImportProviderHost.getCurrentProgram()}let m=this.includePackageJsonAutoImports();if(m){(n=us)==null||n.push(us.Phase.Session,"getPackageJsonAutoImportProvider");let g=mm();if(this.autoImportProviderHost=tAe.create(m,this,this.getHostForAutoImportProvider(),this.documentRegistry),this.autoImportProviderHost)return o2(this.autoImportProviderHost),this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider",mm()-g),(a=us)==null||a.pop(),this.autoImportProviderHost.getCurrentProgram();(u=us)==null||u.pop()}}isDefaultProjectForOpenFiles(){return!!Km(this.projectService.openFiles,(n,a)=>this.projectService.tryGetDefaultProjectForFile(this.projectService.getScriptInfoForPath(a))===this)}watchNodeModulesForPackageJsonChanges(n){return this.projectService.watchPackageJsonsInNodeModules(n,this)}getIncompleteCompletionsCache(){return this.projectService.getIncompleteCompletionsCache()}getNoDtsResolutionProject(n){return Se.assert(this.projectService.serverMode===0),this.noDtsResolutionProject||(this.noDtsResolutionProject=new ZNe(this.projectService,this.documentRegistry,this.getCompilerOptionsForNoDtsResolutionProject(),this.currentDirectory)),this.noDtsResolutionProject.rootFile!==n&&(this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this.noDtsResolutionProject,[n]),this.noDtsResolutionProject.rootFile=n),this.noDtsResolutionProject}runWithTemporaryFileUpdate(n,a,u){var m,g,v,x;let k=this.program,T=Se.checkDefined((m=this.program)==null?void 0:m.getSourceFile(n),"Expected file to be part of program"),I=Se.checkDefined(T.getFullText());(g=this.getScriptInfo(n))==null||g.editContent(0,I.length,a),this.updateGraph();try{u(this.program,k,(v=this.program)==null?void 0:v.getSourceFile(n))}finally{(x=this.getScriptInfo(n))==null||x.editContent(0,a.length,I)}}getCompilerOptionsForNoDtsResolutionProject(){return{...this.getCompilerOptions(),noDtsResolution:!0,allowJs:!0,maxNodeModuleJsDepth:3,diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:F,lib:F,noLib:!0}}};function lJt(t,n){var a,u;let m=t.getSourceFiles();(a=us)==null||a.push(us.Phase.Session,"getUnresolvedImports",{count:m.length});let g=t.getTypeChecker().getAmbientModules().map(x=>B2(x.getName())),v=tr(za(m,x=>kot(t,x,g,n)));return(u=us)==null||u.pop(),v}function kot(t,n,a,u){return Hv(u,n.path,()=>{let m;return t.forEachResolvedModule(({resolvedModule:g},v)=>{(!g||!QZ(g.extension))&&!l0(v)&&!a.some(x=>x===v)&&(m=ar(m,jhe(v).packageName))},n),m||Cd})}var QNe=class extends zX{constructor(t,n,a,u,m,g,v){super(t.newInferredProjectName(),0,t,n,void 0,void 0,a,!1,u,t.host,g),this._isJsInferredProject=!1,this.typeAcquisition=v,this.projectRootPath=m&&t.toCanonicalFileName(m),!m&&!t.useSingleInferredProject&&(this.canonicalCurrentDirectory=t.toCanonicalFileName(this.currentDirectory)),this.enableGlobalPlugins(this.getCompilerOptions())}toggleJsInferredProject(t){t!==this._isJsInferredProject&&(this._isJsInferredProject=t,this.setCompilerOptions())}setCompilerOptions(t){if(!t&&!this.getCompilationSettings())return;let n=ZK(t||this.getCompilationSettings());this._isJsInferredProject&&typeof n.maxNodeModuleJsDepth!="number"?n.maxNodeModuleJsDepth=2:this._isJsInferredProject||(n.maxNodeModuleJsDepth=void 0),n.allowJs=!0,super.setCompilerOptions(n)}addRoot(t){Se.assert(t.isScriptOpen()),this.projectService.startWatchingConfigFilesForInferredProjectRoot(t),!this._isJsInferredProject&&t.isJavaScript()?this.toggleJsInferredProject(!0):this.isOrphan()&&this._isJsInferredProject&&!t.isJavaScript()&&this.toggleJsInferredProject(!1),super.addRoot(t)}removeRoot(t){this.projectService.stopWatchingConfigFilesForScriptInfo(t),super.removeRoot(t),!this.isOrphan()&&this._isJsInferredProject&&t.isJavaScript()&&Yt(this.getRootScriptInfos(),n=>!n.isJavaScript())&&this.toggleJsInferredProject(!1)}isOrphan(){return!this.hasRoots()}isProjectWithSingleRoot(){return!this.projectRootPath&&!this.projectService.useSingleInferredProject||this.getRootScriptInfos().length===1}close(){ee(this.getRootScriptInfos(),t=>this.projectService.stopWatchingConfigFilesForScriptInfo(t)),super.close()}getTypeAcquisition(){return this.typeAcquisition||{enable:Pie(this),include:F,exclude:F}}},ZNe=class extends zX{constructor(t,n,a,u){super(t.newAuxiliaryProjectName(),4,t,n,!1,void 0,a,!1,void 0,t.host,u)}isOrphan(){return!0}scheduleInvalidateResolutionsOfFailedLookupLocations(){}},eAe=class tYt extends zX{constructor(n,a,u,m){super(n.projectService.newAutoImportProviderProjectName(),3,n.projectService,u,!1,void 0,m,!1,n.getWatchOptions(),n.projectService.host,n.currentDirectory),this.hostProject=n,this.rootFileNames=a,this.useSourceOfProjectReferenceRedirect=wu(this.hostProject,this.hostProject.useSourceOfProjectReferenceRedirect),this.getParsedCommandLine=wu(this.hostProject,this.hostProject.getParsedCommandLine)}static getRootFileNames(n,a,u,m){var g,v;if(!n)return F;let x=a.getCurrentProgram();if(!x)return F;let k=mm(),T,I,A=Ps(a.currentDirectory,KU),M=a.getPackageJsonsForAutoImport(Ps(a.currentDirectory,A));for(let ne of M)(g=ne.dependencies)==null||g.forEach((se,_e)=>K(_e)),(v=ne.peerDependencies)==null||v.forEach((se,_e)=>K(_e));let R=0;if(T){let ne=a.getSymlinkCache();for(let se of tc(T.keys())){if(n===2&&R>this.maxDependencies)return a.log(`AutoImportProviderProject: attempted to add more than ${this.maxDependencies} dependencies. Aborting.`),F;let _e=z8e(se,a.currentDirectory,m,u,x.getModuleResolutionCache());if(_e){let le=re(_e,x,ne);if(le){R+=$(le);continue}}if(!ee([a.currentDirectory,a.getGlobalTypingsCacheLocation()],le=>{if(le){let Ee=z8e(`@types/${se}`,le,m,u,x.getModuleResolutionCache());if(Ee){let xe=re(Ee,x,ne);return R+=$(xe),!0}}})&&_e&&m.allowJs&&m.maxNodeModuleJsDepth){let le=re(_e,x,ne,!0);R+=$(le)}}}let H=x.getResolvedProjectReferences(),U=0;return H?.length&&a.projectService.getHostPreferences().includeCompletionsForModuleExports&&H.forEach(ne=>{if(ne?.commandLine.options.outFile)U+=$(X([J3(ne.commandLine.options.outFile,".d.ts")]));else if(ne){let se=H0(()=>c9(ne.commandLine,!a.useCaseSensitiveFileNames()));U+=$(X(Dc(ne.commandLine.fileNames,_e=>!ey(_e)&&!Wh(_e,".json")&&!x.getSourceFile(_e)?PW(_e,ne.commandLine,!a.useCaseSensitiveFileNames(),se):void 0)))}}),I?.size&&a.log(`AutoImportProviderProject: found ${I.size} root files in ${R} dependencies ${U} referenced projects in ${mm()-k} ms`),I?tc(I.values()):F;function $(ne){return ne?.length?(I??(I=new Set),ne.forEach(se=>I.add(se)),1):0}function K(ne){xl(ne,"@types/")||(T||(T=new Set)).add(ne)}function re(ne,se,_e,ae){var le;let Ee=CN(ne,m,u,se.getModuleResolutionCache(),ae);if(Ee){let xe=(le=u.realpath)==null?void 0:le.call(u,ne.packageDirectory),be=xe?a.toPath(xe):void 0,Le=be&&be!==a.toPath(ne.packageDirectory);return Le&&_e.setSymlinkedDirectory(ne.packageDirectory,{real:Fs(xe),realPath:Fs(be)}),X(Ee,Le?fe=>fe.replace(ne.packageDirectory,xe):void 0)}}function X(ne,se){return Dc(ne,_e=>{let ae=se?se(_e):_e;if(!x.getSourceFile(ae)&&!(se&&x.getSourceFile(_e)))return ae})}}static create(n,a,u,m){if(n===0)return;let g={...a.getCompilerOptions(),...this.compilerOptionsOverrides},v=this.getRootFileNames(n,a,u,g);if(v.length)return new tYt(a,v,m,g)}isEmpty(){return!En(this.rootFileNames)}isOrphan(){return!0}updateGraph(){let n=this.rootFileNames;n||(n=tYt.getRootFileNames(this.hostProject.includePackageJsonAutoImports(),this.hostProject,this.hostProject.getHostForAutoImportProvider(),this.getCompilationSettings())),this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this,n),this.rootFileNames=n;let a=this.getCurrentProgram(),u=super.updateGraph();return a&&a!==this.getCurrentProgram()&&this.hostProject.clearCachedExportInfoMap(),u}scheduleInvalidateResolutionsOfFailedLookupLocations(){}hasRoots(){var n;return!!((n=this.rootFileNames)!=null&&n.length)}markAsDirty(){this.rootFileNames=void 0,super.markAsDirty()}getScriptFileNames(){return this.rootFileNames||F}getLanguageService(){throw new Error("AutoImportProviderProject language service should never be used. To get the program, use `project.getCurrentProgram()`.")}onAutoImportProviderSettingsChanged(){throw new Error("AutoImportProviderProject is an auto import provider; use `markAsDirty()` instead.")}onPackageJsonChange(){throw new Error("package.json changes should be notified on an AutoImportProvider's host project")}getHostForAutoImportProvider(){throw new Error("AutoImportProviderProject cannot provide its own host; use `hostProject.getModuleResolutionHostForAutomImportProvider()` instead.")}getProjectReferences(){return this.hostProject.getProjectReferences()}includePackageJsonAutoImports(){return 0}getSymlinkCache(){return this.hostProject.getSymlinkCache()}getModuleResolutionCache(){var n;return(n=this.hostProject.getCurrentProgram())==null?void 0:n.getModuleResolutionCache()}};eAe.maxDependencies=10,eAe.compilerOptionsOverrides={diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:F,lib:F,noLib:!0};var tAe=eAe,Tve=class extends zX{constructor(t,n,a,u,m,g){super(t,1,a,u,!1,void 0,{},!1,void 0,m,Cc(t)),this.canonicalConfigFilePath=n,this.openFileWatchTriggered=new Map,this.canConfigFileJsonReportNoInputFiles=!1,this.isInitialLoadPending=ql,this.sendLoadingProjectFinish=!1,this.pendingUpdateLevel=2,this.pendingUpdateReason=g}setCompilerHost(t){this.compilerHost=t}getCompilerHost(){return this.compilerHost}useSourceOfProjectReferenceRedirect(){return this.languageServiceEnabled}getParsedCommandLine(t){let n=Kd(t),a=this.projectService.toCanonicalFileName(n),u=this.projectService.configFileExistenceInfoCache.get(a);return u||this.projectService.configFileExistenceInfoCache.set(a,u={exists:this.projectService.host.fileExists(n)}),this.projectService.ensureParsedConfigUptoDate(n,a,u,this),this.languageServiceEnabled&&this.projectService.serverMode===0&&this.projectService.watchWildcards(n,u,this),u.exists?u.config.parsedCommandLine:void 0}onReleaseParsedCommandLine(t){this.releaseParsedConfig(this.projectService.toCanonicalFileName(Kd(t)))}releaseParsedConfig(t){this.projectService.stopWatchingWildCards(t,this),this.projectService.releaseParsedConfig(t,this)}updateGraph(){if(this.deferredClose)return!1;let t=this.dirty;this.isInitialLoadPending=uk;let n=this.pendingUpdateLevel;this.pendingUpdateLevel=0;let a;switch(n){case 1:this.openFileWatchTriggered.clear(),a=this.projectService.reloadFileNamesOfConfiguredProject(this);break;case 2:this.openFileWatchTriggered.clear();let u=Se.checkDefined(this.pendingUpdateReason);this.projectService.reloadConfiguredProject(this,u),a=!0;break;default:a=super.updateGraph()}return this.compilerHost=void 0,this.projectService.sendProjectLoadingFinishEvent(this),this.projectService.sendProjectTelemetry(this),n===2||a&&(!t||!this.triggerFileForConfigFileDiag||this.getCurrentProgram().structureIsReused===2)?this.triggerFileForConfigFileDiag=void 0:this.triggerFileForConfigFileDiag||this.projectService.sendConfigFileDiagEvent(this,void 0,!1),a}getCachedDirectoryStructureHost(){return this.directoryStructureHost}getConfigFilePath(){return this.getProjectName()}getProjectReferences(){return this.projectReferences}updateReferences(t){this.projectReferences=t,this.potentialProjectReferences=void 0}setPotentialProjectReference(t){Se.assert(this.isInitialLoadPending()),(this.potentialProjectReferences||(this.potentialProjectReferences=new Set)).add(t)}getResolvedProjectReferenceToRedirect(t){let n=this.getCurrentProgram();return n&&n.getResolvedProjectReferenceToRedirect(t)}forEachResolvedProjectReference(t){var n;return(n=this.getCurrentProgram())==null?void 0:n.forEachResolvedProjectReference(t)}enablePluginsWithOptions(t){var n;if(this.plugins.length=0,!((n=t.plugins)!=null&&n.length)&&!this.projectService.globalPlugins.length)return;let a=this.projectService.host;if(!a.require&&!a.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}let u=this.getGlobalPluginSearchPaths();if(this.projectService.allowLocalPluginLoads){let m=Cc(this.canonicalConfigFilePath);this.projectService.logger.info(`Local plugin loading enabled; adding ${m} to search paths`),u.unshift(m)}if(t.plugins)for(let m of t.plugins)this.enablePlugin(m,u);return this.enableGlobalPlugins(t)}getGlobalProjectErrors(){return Qn(this.projectErrors,t=>!t.file)||Cd}getAllProjectErrors(){return this.projectErrors||Cd}setProjectErrors(t){this.projectErrors=t}close(){this.projectService.configFileExistenceInfoCache.forEach((t,n)=>this.releaseParsedConfig(n)),this.projectErrors=void 0,this.openFileWatchTriggered.clear(),this.compilerHost=void 0,super.close()}markAsDirty(){this.deferredClose||super.markAsDirty()}isSolution(){return this.getRootFilesMap().size===0&&!this.canConfigFileJsonReportNoInputFiles}isOrphan(){return!!this.deferredClose}getEffectiveTypeRoots(){return gM(this.getCompilationSettings(),this)||[]}updateErrorOnNoInputFiles(t){Ihe(t,this.getConfigFilePath(),this.getCompilerOptions().configFile.configFileSpecs,this.projectErrors,this.canConfigFileJsonReportNoInputFiles)}},bz=class extends zX{constructor(t,n,a,u,m,g,v,x){super(t,2,n,a,!0,m,u,g,x,n.host,Cc(v||Ch(t))),this.externalProjectName=t,this.compileOnSaveEnabled=g,this.excludedFiles=[],this.enableGlobalPlugins(this.getCompilerOptions())}updateGraph(){let t=super.updateGraph();return this.projectService.sendProjectTelemetry(this),t}getExcludedFiles(){return this.excludedFiles}};function aD(t){return t.projectKind===0}function PN(t){return t.projectKind===1}function Sz(t){return t.projectKind===2}function jJ(t){return t.projectKind===3||t.projectKind===4}function Oie(t){return PN(t)&&!!t.deferredClose}var due=20*1024*1024,Fie=4*1024*1024,Mie="projectsUpdatedInBackground",fue="projectLoadingStart",_ue="projectLoadingFinish",pue="largeFileReferenced",mue="configFileDiag",hue="projectLanguageServiceState",Eve="projectInfo",Dve="openFileInfo",gue="createFileWatcher",yue="createDirectoryWatcher",iAe="closeFileWatcher",wot="*ensureProjectForOpenFiles*";function jCt(t){let n=new Map;for(let a of t)if(typeof a.type=="object"){let u=a.type;u.forEach(m=>{Se.assert(typeof m=="number")}),n.set(a.name,u)}return n}var uJt=jCt(zS),dJt=jCt(mK),Tot=new Map(Object.entries({none:0,block:1,smart:2})),WJ={jquery:{match:/jquery(-[\d.]+)?(\.intellisense)?(\.min)?\.js$/i,types:["jquery"]},WinJS:{match:/^(.*\/winjs-[.\d]+)\/js\/base\.js$/i,exclude:[["^",1,"/.*"]],types:["winjs"]},Kendo:{match:/^(.*\/kendo(-ui)?)\/kendo\.all(\.min)?\.js$/i,exclude:[["^",1,"/.*"]],types:["kendo-ui"]},"Office Nuget":{match:/^(.*\/office\/1)\/excel-\d+\.debug\.js$/i,exclude:[["^",1,"/.*"]],types:["office"]},References:{match:/^(.*\/_references\.js)$/i,exclude:[["^",1,"$"]]}};function L9(t){return Yu(t.indentStyle)&&(t.indentStyle=Tot.get(t.indentStyle.toLowerCase()),Se.assert(t.indentStyle!==void 0)),t}function zJ(t){return uJt.forEach((n,a)=>{let u=t[a];Yu(u)&&(t[a]=n.get(u.toLowerCase()))}),t}function Rie(t,n){let a,u;return mK.forEach(m=>{let g=t[m.name];if(g===void 0)return;let v=dJt.get(m.name);(a||(a={}))[m.name]=v?Yu(g)?v.get(g.toLowerCase()):g:vW(m,g,n||"",u||(u=[]))}),a&&{watchOptions:a,errors:u}}function Ive(t){let n;return jae.forEach(a=>{let u=t[a.name];u!==void 0&&((n||(n={}))[a.name]=u)}),n}function vue(t){return Yu(t)?Nve(t):t}function Nve(t){switch(t){case"JS":return 1;case"JSX":return 2;case"TS":return 3;case"TSX":return 4;default:return 0}}function Ave(t){let{lazyConfiguredProjectsFromExternalProject:n,...a}=t;return a}var bue={getFileName:t=>t,getScriptKind:(t,n)=>{let a;if(n){let u=LE(t);u&&En(n,m=>m.extension===u?(a=m.scriptKind,!0):!1)}return a},hasMixedContent:(t,n)=>En(n,a=>a.isMixedContent&&Wh(t,a.extension))},nAe={getFileName:t=>t.fileName,getScriptKind:t=>vue(t.scriptKind),hasMixedContent:t=>!!t.hasMixedContent};function fBe(t,n){for(let a of n)if(a.getProjectName()===t)return a}var Pve={isKnownTypesPackageName:uk,installPackage:ld,enqueueInstallTypingsRequest:Za,attach:Za,onProjectClosed:Za,globalTypingsCacheLocation:void 0},Eot={close:Za};function rAe(t,n){if(!(!n||_Be(t)))return n.get(t.path)}function Dot(t){return!!t.containingProjects}function _Be(t){return!!t.configFileInfo}var Lve=(t=>(t[t.Find=0]="Find",t[t.Create=1]="Create",t[t.Reload=2]="Reload",t))(Lve||{});function Iot(t,n,a,u,m,g,v,x){for(;;){if(!n.isInitialLoadPending()&&(!n.getCompilerOptions().composite||n.getCompilerOptions().disableSolutionSearching))return;let k=n.projectService.getConfigFileNameForFile({fileName:n.getConfigFilePath(),path:t.path,configFileInfo:!0},u===0);if(!k)return;let T=n.projectService.findCreateOrReloadConfiguredProject(k,u,m,g,void 0,v,!0,x);if(!T)return;T.project.isInitialLoadPending()&&n.getCompilerOptions().composite&&T.project.setPotentialProjectReference(n.canonicalConfigFilePath);let I=a(T.project);if(I)return I;n=T.project}}function Not(t,n,a,u,m,g,v,x){var k;let T=(k=t.getCurrentProgram())==null?void 0:k.getResolvedProjectReferences();if(!T)return;let I=n?t.getResolvedProjectReferenceToRedirect(n):void 0;if(I){let R=Zm(I.sourceFile.fileName),H=t.projectService.findConfiguredProjectByProjectName(R,g);if(H){let U=M(H);if(U)return U}else if(u!==0){let U=Aot(T,t.getCompilerOptions(),($,K)=>I===$?A($,K):void 0,u,t.projectService);if(U)return U}}return Aot(T,t.getCompilerOptions(),(R,H)=>I!==R?A(R,H):void 0,u,t.projectService);function A(R,H){let U=t.projectService.findCreateOrReloadConfiguredProject(Zm(R.sourceFile.fileName),H,m,g,v,x);return U&&(H===u?a(U.project,U.sentConfigFileDiag):M(U.project))}function M(R){let H=!1;switch(u){case 1:H=oAe(R,v);break;case 2:H=R.projectService.reloadConfiguredProjectClearingSemanticCache(R,m,x);break;case 0:break;default:Se.assertNever(u)}let U=a(R,H);if(U)return U}}function Aot(t,n,a,u,m,g){let v=n.disableReferencedProjectLoad?0:u;return ee(t,x=>{if(!x)return;let k=Zm(x.sourceFile.fileName),T=m.toCanonicalFileName(k),I=g?.get(T);if(I!==void 0&&I>=v)return;let A=a(x,v);return A||((g||(g=new Map)).set(T,v),x.references&&Aot(x.references,x.commandLine.options,a,v,m,g))})}function pBe(t,n){return t.potentialProjectReferences&&N2(t.potentialProjectReferences,n)}function WCt(t,n,a,u){return t.getCurrentProgram()?t.forEachResolvedProjectReference(n):t.isInitialLoadPending()?pBe(t,u):ee(t.getProjectReferences(),a)}function Pot(t,n,a){let u=a&&t.projectService.configuredProjects.get(a);return u&&n(u)}function Lot(t,n){return WCt(t,a=>Pot(t,n,a.sourceFile.path),a=>Pot(t,n,t.toPath(MW(a))),a=>Pot(t,n,a))}function X2(t,n){return`${Yu(n)?`Config: ${n} `:n?`Project: ${n.getProjectName()} `:""}WatchType: ${t}`}function mBe(t){return!t.isScriptOpen()&&t.mTime!==void 0}function o2(t){return t.invalidateResolutionsOfFailedLookupLocations(),t.dirty&&!t.updateGraph()}function Oot(t,n,a){if(!a&&(t.invalidateResolutionsOfFailedLookupLocations(),!t.dirty))return!1;t.triggerFileForConfigFileDiag=n;let u=t.pendingUpdateLevel;if(t.updateGraph(),!t.triggerFileForConfigFileDiag&&!a)return u===2;let m=t.projectService.sendConfigFileDiagEvent(t,n,a);return t.triggerFileForConfigFileDiag=void 0,m}function oAe(t,n){if(n){if(Oot(t,n,!1))return!0}else o2(t);return!1}function hBe(t){return`Creating possible configured project for ${t.fileName} to open`}function Ove(t){return`User requested reload projects: ${t}`}function sAe(t){PN(t)&&(t.projectOptions=!0)}function Fot(t){let n=1;return()=>t(n++)}function gBe(){return{idToCallbacks:new Map,pathToId:new Map}}function yBe(t,n){return!!n&&!!t.eventHandler&&!!t.session}function fJt(t,n){if(!yBe(t,n))return;let a=gBe(),u=gBe(),m=gBe(),g=1;return t.session.addProtocolHandler("watchChange",R=>(T(R.arguments),{responseRequired:!1})),{watchFile:v,watchDirectory:x,getCurrentDirectory:()=>t.host.getCurrentDirectory(),useCaseSensitiveFileNames:t.host.useCaseSensitiveFileNames};function v(R,H){return k(a,R,H,U=>({eventName:gue,data:{id:U,path:R}}))}function x(R,H,U){return k(U?m:u,R,H,$=>({eventName:yue,data:{id:$,path:R,recursive:!!U,ignoreUpdate:R.endsWith("/node_modules")?void 0:!0}}))}function k({pathToId:R,idToCallbacks:H},U,$,K){let re=t.toPath(U),X=R.get(re);X||R.set(re,X=g++);let ne=H.get(X);return ne||(H.set(X,ne=new Set),t.eventHandler(K(X))),ne.add($),{close(){let se=H.get(X);se?.delete($)&&(se.size||(H.delete(X),R.delete(re),t.eventHandler({eventName:iAe,data:{id:X}})))}}}function T(R){ua(R)?R.forEach(I):I(R)}function I({id:R,created:H,deleted:U,updated:$}){A(R,H,0),A(R,U,2),A(R,$,1)}function A(R,H,U){H?.length&&(M(a,R,H,($,K)=>$(K,U)),M(u,R,H,($,K)=>$(K)),M(m,R,H,($,K)=>$(K)))}function M(R,H,U,$){var K;(K=R.idToCallbacks.get(H))==null||K.forEach(re=>{U.forEach(X=>$(re,Ch(X)))})}}var vBe=class iYt{constructor(n){this.filenameToScriptInfo=new Map,this.nodeModulesWatchers=new Map,this.filenameToScriptInfoVersion=new Map,this.allJsFilesForOpenFileTelemetry=new Map,this.externalProjectToConfiguredProjectMap=new Map,this.externalProjects=[],this.inferredProjects=[],this.configuredProjects=new Map,this.newInferredProjectName=Fot(qNe),this.newAutoImportProviderProjectName=Fot($Ne),this.newAuxiliaryProjectName=Fot(Sve),this.openFiles=new Map,this.configFileForOpenFiles=new Map,this.rootOfInferredProjects=new Set,this.openFilesWithNonRootedDiskPath=new Map,this.compilerOptionsForInferredProjectsPerProjectRoot=new Map,this.watchOptionsForInferredProjectsPerProjectRoot=new Map,this.typeAcquisitionForInferredProjectsPerProjectRoot=new Map,this.projectToSizeMap=new Map,this.configFileExistenceInfoCache=new Map,this.safelist=WJ,this.legacySafelist=new Map,this.pendingProjectUpdates=new Map,this.pendingEnsureProjectForOpenFiles=!1,this.seenProjects=new Map,this.sharedExtendedConfigFileWatchers=new Map,this.extendedConfigCache=new Map,this.baseline=Za,this.verifyDocumentRegistry=Za,this.verifyProgram=Za,this.onProjectCreation=Za;var a;this.host=n.host,this.logger=n.logger,this.cancellationToken=n.cancellationToken,this.useSingleInferredProject=n.useSingleInferredProject,this.useInferredProjectPerProjectRoot=n.useInferredProjectPerProjectRoot,this.typingsInstaller=n.typingsInstaller||Pve,this.throttleWaitMilliseconds=n.throttleWaitMilliseconds,this.eventHandler=n.eventHandler,this.suppressDiagnosticEvents=n.suppressDiagnosticEvents,this.globalPlugins=n.globalPlugins||Cd,this.pluginProbeLocations=n.pluginProbeLocations||Cd,this.allowLocalPluginLoads=!!n.allowLocalPluginLoads,this.typesMapLocation=n.typesMapLocation===void 0?Ps(Cc(this.getExecutingFilePath()),"typesMap.json"):n.typesMapLocation,this.session=n.session,this.jsDocParsingMode=n.jsDocParsingMode,n.serverMode!==void 0?this.serverMode=n.serverMode:this.serverMode=0,this.host.realpath&&(this.realpathToScriptInfos=Hb()),this.currentDirectory=Zm(this.host.getCurrentDirectory()),this.toCanonicalFileName=U0(this.host.useCaseSensitiveFileNames),this.globalCacheLocationDirectoryPath=this.typingsInstaller.globalTypingsCacheLocation?Fs(this.toPath(this.typingsInstaller.globalTypingsCacheLocation)):void 0,this.throttledOperations=new GNe(this.host,this.logger),this.typesMapLocation?this.loadTypesMap():this.logger.info("No types map provided; using the default"),this.typingsInstaller.attach(this),this.hostConfiguration={formatCodeOptions:qce(this.host.newLine),preferences:t2,hostInfo:"Unknown host",extraFileExtensions:[]},this.documentRegistry=mX(this.host.useCaseSensitiveFileNames,this.currentDirectory,this.jsDocParsingMode,this);let u=this.logger.hasLevel(3)?2:this.logger.loggingEnabled()?1:0,m=u!==0?g=>this.logger.info(g):Za;this.packageJsonCache=SBe(this),this.watchFactory=this.serverMode!==0?{watchFile:_0,watchDirectory:_0}:ite(fJt(this,n.canUseWatchEvents)||this.host,u,m,X2),this.canUseWatchEvents=yBe(this,n.canUseWatchEvents),(a=n.incrementalVerifier)==null||a.call(n,this)}toPath(n){return dd(n,this.currentDirectory,this.toCanonicalFileName)}getExecutingFilePath(){return this.getNormalizedAbsolutePath(this.host.getExecutingFilePath())}getNormalizedAbsolutePath(n){return tu(n,this.host.getCurrentDirectory())}setDocument(n,a,u){let m=Se.checkDefined(this.getScriptInfoForPath(a));m.cacheSourceFile={key:n,sourceFile:u}}getDocument(n,a){let u=this.getScriptInfoForPath(a);return u&&u.cacheSourceFile&&u.cacheSourceFile.key===n?u.cacheSourceFile.sourceFile:void 0}ensureInferredProjectsUpToDate_TestOnly(){this.ensureProjectStructuresUptoDate()}getCompilerOptionsForInferredProjects(){return this.compilerOptionsForInferredProjects}onUpdateLanguageServiceStateForProject(n,a){if(!this.eventHandler)return;let u={eventName:hue,data:{project:n,languageServiceEnabled:a}};this.eventHandler(u)}loadTypesMap(){try{let n=this.host.readFile(this.typesMapLocation);if(n===void 0){this.logger.info(`Provided types map file "${this.typesMapLocation}" doesn't exist`);return}let a=JSON.parse(n);for(let u of Object.keys(a.typesMap))a.typesMap[u].match=new RegExp(a.typesMap[u].match,"i");this.safelist=a.typesMap;for(let u in a.simpleMap)bf(a.simpleMap,u)&&this.legacySafelist.set(u,a.simpleMap[u].toLowerCase())}catch(n){this.logger.info(`Error loading types map: ${n}`),this.safelist=WJ,this.legacySafelist.clear()}}updateTypingsForProject(n){let a=this.findProject(n.projectName);if(a)switch(n.kind){case Vce:a.updateTypingFiles(n.compilerOptions,n.typeAcquisition,n.unresolvedImports,n.typings);return;case G2:a.enqueueInstallTypingsForProject(!0);return}}watchTypingLocations(n){var a;(a=this.findProject(n.projectName))==null||a.watchTypingLocations(n.files)}delayEnsureProjectForOpenFiles(){this.openFiles.size&&(this.pendingEnsureProjectForOpenFiles=!0,this.throttledOperations.schedule(wot,2500,()=>{this.pendingProjectUpdates.size!==0?this.delayEnsureProjectForOpenFiles():this.pendingEnsureProjectForOpenFiles&&(this.ensureProjectForOpenFiles(),this.sendProjectsUpdatedInBackgroundEvent())}))}delayUpdateProjectGraph(n){if(Oie(n)||(n.markAsDirty(),jJ(n)))return;let a=n.getProjectName();this.pendingProjectUpdates.set(a,n),this.throttledOperations.schedule(a,250,()=>{this.pendingProjectUpdates.delete(a)&&o2(n)})}hasPendingProjectUpdate(n){return this.pendingProjectUpdates.has(n.getProjectName())}sendProjectsUpdatedInBackgroundEvent(){if(!this.eventHandler)return;let n={eventName:Mie,data:{openFiles:tc(this.openFiles.keys(),a=>this.getScriptInfoForPath(a).fileName)}};this.eventHandler(n)}sendLargeFileReferencedEvent(n,a){if(!this.eventHandler)return;let u={eventName:pue,data:{file:n,fileSize:a,maxFileSize:Fie}};this.eventHandler(u)}sendProjectLoadingStartEvent(n,a){if(!this.eventHandler)return;n.sendLoadingProjectFinish=!0;let u={eventName:fue,data:{project:n,reason:a}};this.eventHandler(u)}sendProjectLoadingFinishEvent(n){if(!this.eventHandler||!n.sendLoadingProjectFinish)return;n.sendLoadingProjectFinish=!1;let a={eventName:_ue,data:{project:n}};this.eventHandler(a)}sendPerformanceEvent(n,a){this.performanceEventHandler&&this.performanceEventHandler({kind:n,durationMs:a})}delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(n){this.delayUpdateProjectGraph(n),this.delayEnsureProjectForOpenFiles()}delayUpdateProjectGraphs(n,a){if(n.length){for(let u of n)a&&u.clearSourceMapperCache(),this.delayUpdateProjectGraph(u);this.delayEnsureProjectForOpenFiles()}}setCompilerOptionsForInferredProjects(n,a){Se.assert(a===void 0||this.useInferredProjectPerProjectRoot,"Setting compiler options per project root path is only supported when useInferredProjectPerProjectRoot is enabled");let u=zJ(n),m=Rie(n,a),g=Ive(n);u.allowNonTsExtensions=!0;let v=a&&this.toCanonicalFileName(a);v?(this.compilerOptionsForInferredProjectsPerProjectRoot.set(v,u),this.watchOptionsForInferredProjectsPerProjectRoot.set(v,m||!1),this.typeAcquisitionForInferredProjectsPerProjectRoot.set(v,g)):(this.compilerOptionsForInferredProjects=u,this.watchOptionsForInferredProjects=m,this.typeAcquisitionForInferredProjects=g);for(let x of this.inferredProjects)(v?x.projectRootPath===v:!x.projectRootPath||!this.compilerOptionsForInferredProjectsPerProjectRoot.has(x.projectRootPath))&&(x.setCompilerOptions(u),x.setTypeAcquisition(g),x.setWatchOptions(m?.watchOptions),x.setProjectErrors(m?.errors),x.compileOnSaveEnabled=u.compileOnSave,x.markAsDirty(),this.delayUpdateProjectGraph(x));this.delayEnsureProjectForOpenFiles()}findProject(n){if(n!==void 0)return JNe(n)?fBe(n,this.inferredProjects):this.findExternalProjectByProjectName(n)||this.findConfiguredProjectByProjectName(Zm(n))}forEachProject(n){this.externalProjects.forEach(n),this.configuredProjects.forEach(n),this.inferredProjects.forEach(n)}forEachEnabledProject(n){this.forEachProject(a=>{!a.isOrphan()&&a.languageServiceEnabled&&n(a)})}getDefaultProjectForFile(n,a){return a?this.ensureDefaultProjectForFile(n):this.tryGetDefaultProjectForFile(n)}tryGetDefaultProjectForFile(n){let a=Yu(n)?this.getScriptInfoForNormalizedPath(n):n;return a&&!a.isOrphan()?a.getDefaultProject():void 0}tryGetDefaultProjectForEnsuringConfiguredProjectForFile(n){var a;let u=Yu(n)?this.getScriptInfoForNormalizedPath(n):n;if(u)return(a=this.pendingOpenFileProjectUpdates)!=null&&a.delete(u.path)&&(this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(u,1),u.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(u,this.openFiles.get(u.path))),this.tryGetDefaultProjectForFile(u)}ensureDefaultProjectForFile(n){return this.tryGetDefaultProjectForEnsuringConfiguredProjectForFile(n)||this.doEnsureDefaultProjectForFile(n)}doEnsureDefaultProjectForFile(n){this.ensureProjectStructuresUptoDate();let a=Yu(n)?this.getScriptInfoForNormalizedPath(n):n;return a?a.getDefaultProject():(this.logErrorForScriptInfoNotFound(Yu(n)?n:n.fileName),TL.ThrowNoProject())}getScriptInfoEnsuringProjectsUptoDate(n){return this.ensureProjectStructuresUptoDate(),this.getScriptInfo(n)}ensureProjectStructuresUptoDate(){let n=this.pendingEnsureProjectForOpenFiles;this.pendingProjectUpdates.clear();let a=u=>{n=o2(u)||n};this.externalProjects.forEach(a),this.configuredProjects.forEach(a),this.inferredProjects.forEach(a),n&&this.ensureProjectForOpenFiles()}getFormatCodeOptions(n){let a=this.getScriptInfoForNormalizedPath(n);return a&&a.getFormatCodeSettings()||this.hostConfiguration.formatCodeOptions}getPreferences(n){let a=this.getScriptInfoForNormalizedPath(n);return{...this.hostConfiguration.preferences,...a&&a.getPreferences()}}getHostFormatCodeOptions(){return this.hostConfiguration.formatCodeOptions}getHostPreferences(){return this.hostConfiguration.preferences}onSourceFileChanged(n,a){Se.assert(!n.isScriptOpen()),a===2?this.handleDeletedFile(n,!0):(n.deferredDelete&&(n.deferredDelete=void 0),n.delayReloadNonMixedContentFile(),this.delayUpdateProjectGraphs(n.containingProjects,!1),this.handleSourceMapProjects(n))}handleSourceMapProjects(n){if(n.sourceMapFilePath)if(Yu(n.sourceMapFilePath)){let a=this.getScriptInfoForPath(n.sourceMapFilePath);this.delayUpdateSourceInfoProjects(a?.sourceInfos)}else this.delayUpdateSourceInfoProjects(n.sourceMapFilePath.sourceInfos);this.delayUpdateSourceInfoProjects(n.sourceInfos),n.declarationInfoPath&&this.delayUpdateProjectsOfScriptInfoPath(n.declarationInfoPath)}delayUpdateSourceInfoProjects(n){n&&n.forEach((a,u)=>this.delayUpdateProjectsOfScriptInfoPath(u))}delayUpdateProjectsOfScriptInfoPath(n){let a=this.getScriptInfoForPath(n);a&&this.delayUpdateProjectGraphs(a.containingProjects,!0)}handleDeletedFile(n,a){Se.assert(!n.isScriptOpen()),this.delayUpdateProjectGraphs(n.containingProjects,!1),this.handleSourceMapProjects(n),n.detachAllProjects(),a?(n.delayReloadNonMixedContentFile(),n.deferredDelete=!0):this.deleteScriptInfo(n)}watchWildcardDirectory(n,a,u,m){let g=this.watchFactory.watchDirectory(n,x=>this.onWildCardDirectoryWatcherInvoke(n,u,m,v,x),a,this.getWatchOptionsFromProjectWatchOptions(m.parsedCommandLine.watchOptions,Cc(u)),Ty.WildcardDirectory,u),v={packageJsonWatches:void 0,close(){var x;g&&(g.close(),g=void 0,(x=v.packageJsonWatches)==null||x.forEach(k=>{k.projects.delete(v),k.close()}),v.packageJsonWatches=void 0)}};return v}onWildCardDirectoryWatcherInvoke(n,a,u,m,g){let v=this.toPath(g),x=u.cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(g,v);if(sg(v)==="package.json"&&!cX(v)&&(x&&x.fileExists||!x&&this.host.fileExists(g))){let T=this.getNormalizedAbsolutePath(g);this.logger.info(`Config: ${a} Detected new package.json: ${T}`),this.packageJsonCache.addOrUpdate(T,v),this.watchPackageJsonFile(T,v,m)}x?.fileExists||this.sendSourceFileChange(v);let k=this.findConfiguredProjectByProjectName(a);xge({watchedDirPath:this.toPath(n),fileOrDirectory:g,fileOrDirectoryPath:v,configFileName:a,extraFileExtensions:this.hostConfiguration.extraFileExtensions,currentDirectory:this.currentDirectory,options:u.parsedCommandLine.options,program:k?.getCurrentProgram()||u.parsedCommandLine.fileNames,useCaseSensitiveFileNames:this.host.useCaseSensitiveFileNames,writeLog:T=>this.logger.info(T),toPath:T=>this.toPath(T),getScriptKind:k?T=>k.getScriptKind(T):void 0})||(u.updateLevel!==2&&(u.updateLevel=1),u.projects.forEach((T,I)=>{var A;if(!T)return;let M=this.getConfiguredProjectByCanonicalConfigFilePath(I);if(!M)return;if(k!==M&&this.getHostPreferences().includeCompletionsForModuleExports){let H=this.toPath(a);jt((A=M.getCurrentProgram())==null?void 0:A.getResolvedProjectReferences(),U=>U?.sourceFile.path===H)&&M.markAutoImportProviderAsDirty()}let R=k===M?1:0;if(!(M.pendingUpdateLevel>R))if(this.openFiles.has(v))if(Se.checkDefined(this.getScriptInfoForPath(v)).isAttached(M)){let U=Math.max(R,M.openFileWatchTriggered.get(v)||0);M.openFileWatchTriggered.set(v,U)}else M.pendingUpdateLevel=R,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(M);else M.pendingUpdateLevel=R,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(M)}))}delayUpdateProjectsFromParsedConfigOnConfigFileChange(n,a){let u=this.configFileExistenceInfoCache.get(n);if(!u?.config)return!1;let m=!1;return u.config.updateLevel=2,u.config.projects.forEach((g,v)=>{var x;let k=this.getConfiguredProjectByCanonicalConfigFilePath(v);if(k)if(m=!0,v===n){if(k.isInitialLoadPending())return;k.pendingUpdateLevel=2,k.pendingUpdateReason=a,this.delayUpdateProjectGraph(k),k.markAutoImportProviderAsDirty()}else{let T=this.toPath(n);k.resolutionCache.removeResolutionsFromProjectReferenceRedirects(T),this.delayUpdateProjectGraph(k),this.getHostPreferences().includeCompletionsForModuleExports&&jt((x=k.getCurrentProgram())==null?void 0:x.getResolvedProjectReferences(),I=>I?.sourceFile.path===T)&&k.markAutoImportProviderAsDirty()}}),m}onConfigFileChanged(n,a,u){let m=this.configFileExistenceInfoCache.get(a),g=this.getConfiguredProjectByCanonicalConfigFilePath(a),v=g?.deferredClose;u===2?(m.exists=!1,g&&(g.deferredClose=!0)):(m.exists=!0,v&&(g.deferredClose=void 0,g.markAsDirty())),this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(a,"Change in config file detected");let x=new Set(g?[g]:void 0);this.openFiles.forEach((k,T)=>{var I,A;let M=this.configFileForOpenFiles.get(T);if(!((I=m.openFilesImpactedByConfigFile)!=null&&I.has(T)))return;this.configFileForOpenFiles.delete(T);let R=this.getScriptInfoForPath(T),H=this.getConfigFileNameForFile(R,!1);if(!H)return;let U=this.findConfiguredProjectByProjectName(H)??this.createConfiguredProject(H,`Change in config file ${n} detected, ${hBe(R)}`);(A=this.pendingOpenFileProjectUpdates)!=null&&A.has(T)||(this.pendingOpenFileProjectUpdates??(this.pendingOpenFileProjectUpdates=new Map)).set(T,M),dc(x,U)&&U.isInitialLoadPending()&&this.delayUpdateProjectGraph(U)}),this.delayEnsureProjectForOpenFiles()}removeProject(n){switch(this.logger.info("`remove Project::"),n.print(!0,!0,!1),n.close(),Se.shouldAssert(1)&&this.filenameToScriptInfo.forEach(a=>Se.assert(!a.isAttached(n),"Found script Info still attached to project",()=>`${n.projectName}: ScriptInfos still attached: ${JSON.stringify(tc(up(this.filenameToScriptInfo.values(),u=>u.isAttached(n)?{fileName:u.fileName,projects:u.containingProjects.map(m=>m.projectName),hasMixedContent:u.hasMixedContent}:void 0)),void 0," ")}`)),this.pendingProjectUpdates.delete(n.getProjectName()),n.projectKind){case 2:N$(this.externalProjects,n),this.projectToSizeMap.delete(n.getProjectName());break;case 1:this.configuredProjects.delete(n.canonicalConfigFilePath),this.projectToSizeMap.delete(n.canonicalConfigFilePath);break;case 0:N$(this.inferredProjects,n);break}}assignOrphanScriptInfoToInferredProject(n,a){Se.assert(n.isOrphan());let u=this.getOrCreateInferredProjectForProjectRootPathIfEnabled(n,a)||this.getOrCreateSingleInferredProjectIfEnabled()||this.getOrCreateSingleInferredWithoutProjectRoot(n.isDynamic?a||this.currentDirectory:Cc(LC(n.fileName)?n.fileName:tu(n.fileName,a?this.getNormalizedAbsolutePath(a):this.currentDirectory)));if(u.addRoot(n),n.containingProjects[0]!==u&&(I$(n.containingProjects,u),n.containingProjects.unshift(u)),u.updateGraph(),!this.useSingleInferredProject&&!u.projectRootPath)for(let m of this.inferredProjects){if(m===u||m.isOrphan())continue;let g=m.getRootScriptInfos();Se.assert(g.length===1||!!m.projectRootPath),g.length===1&&ee(g[0].containingProjects,v=>v!==g[0].containingProjects[0]&&!v.isOrphan())&&m.removeFile(g[0],!0,!0)}return u}assignOrphanScriptInfosToInferredProject(){this.openFiles.forEach((n,a)=>{let u=this.getScriptInfoForPath(a);u.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(u,n)})}closeOpenFile(n,a){var u;let m=n.isDynamic?!1:this.host.fileExists(n.fileName);n.close(m),this.stopWatchingConfigFilesForScriptInfo(n);let g=this.toCanonicalFileName(n.fileName);this.openFilesWithNonRootedDiskPath.get(g)===n&&this.openFilesWithNonRootedDiskPath.delete(g);let v=!1;for(let x of n.containingProjects){if(PN(x)){n.hasMixedContent&&n.registerFileUpdate();let k=x.openFileWatchTriggered.get(n.path);k!==void 0&&(x.openFileWatchTriggered.delete(n.path),x.pendingUpdateLevelthis.onConfigFileChanged(n,a,T),2e3,this.getWatchOptionsFromProjectWatchOptions((g=(m=v?.config)==null?void 0:m.parsedCommandLine)==null?void 0:g.watchOptions,Cc(n)),Ty.ConfigFile,u));let x=v.config.projects;x.set(u.canonicalConfigFilePath,x.get(u.canonicalConfigFilePath)||!1)}releaseParsedConfig(n,a){var u,m,g;let v=this.configFileExistenceInfoCache.get(n);(u=v.config)!=null&&u.projects.delete(a.canonicalConfigFilePath)&&((m=v.config)!=null&&m.projects.size||(v.config=void 0,LFe(n,this.sharedExtendedConfigFileWatchers),Se.checkDefined(v.watcher),(g=v.openFilesImpactedByConfigFile)!=null&&g.size?v.inferredProjectRoots?Uge(Uv(Cc(n)))||(v.watcher.close(),v.watcher=Eot):(v.watcher.close(),v.watcher=void 0):(v.watcher.close(),this.configFileExistenceInfoCache.delete(n))))}stopWatchingConfigFilesForScriptInfo(n){if(this.serverMode!==0)return;let a=this.rootOfInferredProjects.delete(n),u=n.isScriptOpen();u&&!a||this.forEachConfigFileLocation(n,m=>{var g,v,x;let k=this.configFileExistenceInfoCache.get(m);if(k){if(u){if(!((g=k?.openFilesImpactedByConfigFile)!=null&&g.has(n.path)))return}else if(!((v=k.openFilesImpactedByConfigFile)!=null&&v.delete(n.path)))return;a&&(k.inferredProjectRoots--,k.watcher&&!k.config&&!k.inferredProjectRoots&&(k.watcher.close(),k.watcher=void 0)),!((x=k.openFilesImpactedByConfigFile)!=null&&x.size)&&!k.config&&(Se.assert(!k.watcher),this.configFileExistenceInfoCache.delete(m))}})}startWatchingConfigFilesForInferredProjectRoot(n){this.serverMode===0&&(Se.assert(n.isScriptOpen()),this.rootOfInferredProjects.add(n),this.forEachConfigFileLocation(n,(a,u)=>{let m=this.configFileExistenceInfoCache.get(a);m?m.inferredProjectRoots=(m.inferredProjectRoots??0)+1:(m={exists:this.host.fileExists(u),inferredProjectRoots:1},this.configFileExistenceInfoCache.set(a,m)),(m.openFilesImpactedByConfigFile??(m.openFilesImpactedByConfigFile=new Set)).add(n.path),m.watcher||(m.watcher=Uge(Uv(Cc(a)))?this.watchFactory.watchFile(u,(g,v)=>this.onConfigFileChanged(u,a,v),2e3,this.hostConfiguration.watchOptions,Ty.ConfigFileForInferredRoot):Eot)}))}forEachConfigFileLocation(n,a){if(this.serverMode!==0)return;Se.assert(!Dot(n)||this.openFiles.has(n.path));let u=this.openFiles.get(n.path);if(Se.checkDefined(this.getScriptInfo(n.path)).isDynamic)return;let g=Cc(n.fileName),v=()=>Gp(u,g,this.currentDirectory,!this.host.useCaseSensitiveFileNames),x=!u||!v(),k=!_Be(n);do{if(k){let I=BJ(g,this.currentDirectory,this.toCanonicalFileName),A=Ps(g,"tsconfig.json"),M=a(Ps(I,"tsconfig.json"),A);if(M)return A;let R=Ps(g,"jsconfig.json");if(M=a(Ps(I,"jsconfig.json"),R),M)return R;if(eN(I))break}let T=Cc(g);if(T===g)break;g=T,k=!0}while(x||v())}findDefaultConfiguredProject(n){var a;return n.isScriptOpen()?(a=this.tryFindDefaultConfiguredProjectForOpenScriptInfo(n,0))==null?void 0:a.defaultProject:void 0}getConfigFileNameForFileFromCache(n,a){if(a){let u=rAe(n,this.pendingOpenFileProjectUpdates);if(u!==void 0)return u}return rAe(n,this.configFileForOpenFiles)}setConfigFileNameForFileInCache(n,a){this.openFiles.has(n.path)&&(_Be(n)||this.configFileForOpenFiles.set(n.path,a||!1))}getConfigFileNameForFile(n,a){let u=this.getConfigFileNameForFileFromCache(n,a);if(u!==void 0)return u||void 0;if(a)return;let m=this.forEachConfigFileLocation(n,(g,v)=>this.configFileExists(v,g,n));return this.logger.info(`getConfigFileNameForFile:: File: ${n.fileName} ProjectRootPath: ${this.openFiles.get(n.path)}:: Result: ${m}`),this.setConfigFileNameForFileInCache(n,m),m}printProjects(){this.logger.hasLevel(1)&&(this.logger.startGroup(),this.externalProjects.forEach(bBe),this.configuredProjects.forEach(bBe),this.inferredProjects.forEach(bBe),this.logger.info("Open files: "),this.openFiles.forEach((n,a)=>{let u=this.getScriptInfoForPath(a);this.logger.info(` FileName: ${u.fileName} ProjectRootPath: ${n}`),this.logger.info(` Projects: ${u.containingProjects.map(m=>m.getProjectName())}`)}),this.logger.endGroup())}findConfiguredProjectByProjectName(n,a){let u=this.toCanonicalFileName(n),m=this.getConfiguredProjectByCanonicalConfigFilePath(u);return a?m:m?.deferredClose?void 0:m}getConfiguredProjectByCanonicalConfigFilePath(n){return this.configuredProjects.get(n)}findExternalProjectByProjectName(n){return fBe(n,this.externalProjects)}getFilenameForExceededTotalSizeLimitForNonTsFiles(n,a,u,m){if(a&&a.disableSizeLimit||!this.host.getFileSize)return;let g=due;this.projectToSizeMap.set(n,0),this.projectToSizeMap.forEach(x=>g-=x||0);let v=0;for(let x of u){let k=m.getFileName(x);if(!VG(k)&&(v+=this.host.getFileSize(k),v>due||v>g)){let T=u.map(I=>m.getFileName(I)).filter(I=>!VG(I)).map(I=>({name:I,size:this.host.getFileSize(I)})).sort((I,A)=>A.size-I.size).slice(0,5);return this.logger.info(`Non TS file size exceeded limit (${v}). Largest files: ${T.map(I=>`${I.name}:${I.size}`).join(", ")}`),k}}this.projectToSizeMap.set(n,v)}createExternalProject(n,a,u,m,g){let v=zJ(u),x=Rie(u,Cc(Ch(n))),k=new bz(n,this,this.documentRegistry,v,this.getFilenameForExceededTotalSizeLimitForNonTsFiles(n,v,a,nAe),u.compileOnSave===void 0?!0:u.compileOnSave,void 0,x?.watchOptions);return k.setProjectErrors(x?.errors),k.excludedFiles=g,this.addFilesToNonInferredProject(k,a,nAe,m),this.externalProjects.push(k),k}sendProjectTelemetry(n){if(this.seenProjects.has(n.projectName)){sAe(n);return}if(this.seenProjects.set(n.projectName,!0),!this.eventHandler||!this.host.createSHA256Hash){sAe(n);return}let a=PN(n)?n.projectOptions:void 0;sAe(n);let u={projectId:this.host.createSHA256Hash(n.projectName),fileStats:wve(n.getScriptInfos(),!0),compilerOptions:SK(n.getCompilationSettings()),typeAcquisition:g(n.getTypeAcquisition()),extends:a&&a.configHasExtendsProperty,files:a&&a.configHasFilesProperty,include:a&&a.configHasIncludeProperty,exclude:a&&a.configHasExcludeProperty,compileOnSave:n.compileOnSaveEnabled,configFileName:m(),projectType:n instanceof bz?"external":"configured",languageServiceEnabled:n.languageServiceEnabled,version:L};this.eventHandler({eventName:Eve,data:u});function m(){return PN(n)&&XNe(n.getConfigFilePath())||"other"}function g({enable:v,include:x,exclude:k}){return{enable:v,include:x!==void 0&&x.length!==0,exclude:k!==void 0&&k.length!==0}}}addFilesToNonInferredProject(n,a,u,m){this.updateNonInferredProjectFiles(n,a,u),n.setTypeAcquisition(m),n.markAsDirty()}createConfiguredProject(n,a){var u;(u=us)==null||u.instant(us.Phase.Session,"createConfiguredProject",{configFilePath:n}),this.logger.info(`Creating configuration project ${n}`);let m=this.toCanonicalFileName(n),g=this.configFileExistenceInfoCache.get(m);g?g.exists=!0:this.configFileExistenceInfoCache.set(m,g={exists:!0}),g.config||(g.config={cachedDirectoryStructureHost:W4(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),projects:new Map,updateLevel:2});let v=new Tve(n,m,this,this.documentRegistry,g.config.cachedDirectoryStructureHost,a);return Se.assert(!this.configuredProjects.has(m)),this.configuredProjects.set(m,v),this.createConfigFileWatcherForParsedConfig(n,m,v),v}loadConfiguredProject(n,a){var u,m;(u=us)==null||u.push(us.Phase.Session,"loadConfiguredProject",{configFilePath:n.canonicalConfigFilePath}),this.sendProjectLoadingStartEvent(n,a);let g=Kd(n.getConfigFilePath()),v=this.ensureParsedConfigUptoDate(g,n.canonicalConfigFilePath,this.configFileExistenceInfoCache.get(n.canonicalConfigFilePath),n),x=v.config.parsedCommandLine;Se.assert(!!x.fileNames);let k=x.options;n.projectOptions||(n.projectOptions={configHasExtendsProperty:x.raw.extends!==void 0,configHasFilesProperty:x.raw.files!==void 0,configHasIncludeProperty:x.raw.include!==void 0,configHasExcludeProperty:x.raw.exclude!==void 0}),n.canConfigFileJsonReportNoInputFiles=FU(x.raw),n.setProjectErrors(x.options.configFile.parseDiagnostics),n.updateReferences(x.projectReferences);let T=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(n.canonicalConfigFilePath,k,x.fileNames,bue);T?(n.disableLanguageService(T),this.configFileExistenceInfoCache.forEach((A,M)=>this.stopWatchingWildCards(M,n))):(n.setCompilerOptions(k),n.setWatchOptions(x.watchOptions),n.enableLanguageService(),this.watchWildcards(g,v,n)),n.enablePluginsWithOptions(k);let I=x.fileNames.concat(n.getExternalFiles(2));this.updateRootAndOptionsOfNonInferredProject(n,I,bue,k,x.typeAcquisition,x.compileOnSave,x.watchOptions),(m=us)==null||m.pop()}ensureParsedConfigUptoDate(n,a,u,m){var g,v,x;if(u.config){if(!u.config.updateLevel)return u;if(u.config.updateLevel===1)return this.reloadFileNamesOfParsedConfig(n,u.config),u}let k=((g=u.config)==null?void 0:g.cachedDirectoryStructureHost)||W4(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),T=OU(n,U=>this.host.readFile(U)),I=Mae(n,Yu(T)?T:""),A=I.parseDiagnostics;Yu(T)||A.push(T);let M=Cc(n),R=whe(I,k,M,void 0,n,void 0,this.hostConfiguration.extraFileExtensions,this.extendedConfigCache);R.errors.length&&A.push(...R.errors),this.logger.info(`Config: ${n} : ${JSON.stringify({rootNames:R.fileNames,options:R.options,watchOptions:R.watchOptions,projectReferences:R.projectReferences},void 0," ")}`);let H=(v=u.config)==null?void 0:v.parsedCommandLine;return u.config?(u.config.parsedCommandLine=R,u.config.watchedDirectoriesStale=!0,u.config.updateLevel=void 0):u.config={parsedCommandLine:R,cachedDirectoryStructureHost:k,projects:new Map},!H&&!eee(this.getWatchOptionsFromProjectWatchOptions(void 0,M),this.getWatchOptionsFromProjectWatchOptions(R.watchOptions,M))&&((x=u.watcher)==null||x.close(),u.watcher=void 0),this.createConfigFileWatcherForParsedConfig(n,a,m),D2e(a,R.options,this.sharedExtendedConfigFileWatchers,(U,$)=>this.watchFactory.watchFile(U,()=>{var K;I2e(this.extendedConfigCache,$,X=>this.toPath(X));let re=!1;(K=this.sharedExtendedConfigFileWatchers.get($))==null||K.projects.forEach(X=>{re=this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(X,`Change in extended config file ${U} detected`)||re}),re&&this.delayEnsureProjectForOpenFiles()},2e3,this.hostConfiguration.watchOptions,Ty.ExtendedConfigFile,n),U=>this.toPath(U)),u}watchWildcards(n,{exists:a,config:u},m){if(u.projects.set(m.canonicalConfigFilePath,!0),a){if(u.watchedDirectories&&!u.watchedDirectoriesStale)return;u.watchedDirectoriesStale=!1,Sge(u.watchedDirectories||(u.watchedDirectories=new Map),u.parsedCommandLine.wildcardDirectories,(g,v)=>this.watchWildcardDirectory(g,v,n,u))}else{if(u.watchedDirectoriesStale=!1,!u.watchedDirectories)return;Zb(u.watchedDirectories,Dk),u.watchedDirectories=void 0}}stopWatchingWildCards(n,a){let u=this.configFileExistenceInfoCache.get(n);!u.config||!u.config.projects.get(a.canonicalConfigFilePath)||(u.config.projects.set(a.canonicalConfigFilePath,!1),!Km(u.config.projects,ps)&&(u.config.watchedDirectories&&(Zb(u.config.watchedDirectories,Dk),u.config.watchedDirectories=void 0),u.config.watchedDirectoriesStale=void 0))}updateNonInferredProjectFiles(n,a,u){var m;let g=n.getRootFilesMap(),v=new Map;for(let x of a){let k=u.getFileName(x),T=Zm(k),I=xve(T),A;if(!I&&!n.fileExists(k)){A=BJ(T,this.currentDirectory,this.toCanonicalFileName);let M=g.get(A);M?(((m=M.info)==null?void 0:m.path)===A&&(n.removeFile(M.info,!1,!0),M.info=void 0),M.fileName=T):g.set(A,{fileName:T})}else{let M=u.getScriptKind(x,this.hostConfiguration.extraFileExtensions),R=u.hasMixedContent(x,this.hostConfiguration.extraFileExtensions),H=Se.checkDefined(this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(T,n.currentDirectory,M,R,n.directoryStructureHost,!1));A=H.path;let U=g.get(A);!U||U.info!==H?(n.addRoot(H,T),H.isScriptOpen()&&this.removeRootOfInferredProjectIfNowPartOfOtherProject(H)):U.fileName=T}v.set(A,!0)}g.size>v.size&&g.forEach((x,k)=>{v.has(k)||(x.info?n.removeFile(x.info,n.fileExists(x.info.fileName),!0):g.delete(k))})}updateRootAndOptionsOfNonInferredProject(n,a,u,m,g,v,x){n.setCompilerOptions(m),n.setWatchOptions(x),v!==void 0&&(n.compileOnSaveEnabled=v),this.addFilesToNonInferredProject(n,a,u,g)}reloadFileNamesOfConfiguredProject(n){let a=this.reloadFileNamesOfParsedConfig(n.getConfigFilePath(),this.configFileExistenceInfoCache.get(n.canonicalConfigFilePath).config);return n.updateErrorOnNoInputFiles(a),this.updateNonInferredProjectFiles(n,a.concat(n.getExternalFiles(1)),bue),n.markAsDirty(),n.updateGraph()}reloadFileNamesOfParsedConfig(n,a){if(a.updateLevel===void 0)return a.parsedCommandLine.fileNames;Se.assert(a.updateLevel===1);let u=a.parsedCommandLine.options.configFile.configFileSpecs,m=MU(u,Cc(n),a.parsedCommandLine.options,a.cachedDirectoryStructureHost,this.hostConfiguration.extraFileExtensions);return a.parsedCommandLine={...a.parsedCommandLine,fileNames:m},m}setFileNamesOfAutpImportProviderOrAuxillaryProject(n,a){this.updateNonInferredProjectFiles(n,a,bue)}reloadConfiguredProjectClearingSemanticCache(n,a,u){return dc(u,n)?(this.clearSemanticCache(n),this.reloadConfiguredProject(n,Ove(a)),!0):!1}reloadConfiguredProject(n,a){n.isInitialLoadPending=uk,n.pendingUpdateReason=void 0,n.pendingUpdateLevel=0,n.getCachedDirectoryStructureHost().clearCache(),this.loadConfiguredProject(n,a),Oot(n,n.triggerFileForConfigFileDiag??n.getConfigFilePath(),!0)}clearSemanticCache(n){n.originalConfiguredProjects=void 0,n.resolutionCache.clear(),n.getLanguageService(!1).cleanupSemanticCache(),n.cleanupProgram(),n.markAsDirty()}sendConfigFileDiagEvent(n,a,u){if(!this.eventHandler||this.suppressDiagnosticEvents)return!1;let m=n.getLanguageService().getCompilerOptionsDiagnostics();return m.push(...n.getAllProjectErrors()),!u&&m.length===(n.configDiagDiagnosticsReported??0)?!1:(n.configDiagDiagnosticsReported=m.length,this.eventHandler({eventName:mue,data:{configFileName:n.getConfigFilePath(),diagnostics:m,triggerFile:a??n.getConfigFilePath()}}),!0)}getOrCreateInferredProjectForProjectRootPathIfEnabled(n,a){if(!this.useInferredProjectPerProjectRoot||n.isDynamic&&a===void 0)return;if(a){let m=this.toCanonicalFileName(a);for(let g of this.inferredProjects)if(g.projectRootPath===m)return g;return this.createInferredProject(a,!1,a)}let u;for(let m of this.inferredProjects)m.projectRootPath&&Gp(m.projectRootPath,n.path,this.host.getCurrentDirectory(),!this.host.useCaseSensitiveFileNames)&&(u&&u.projectRootPath.length>m.projectRootPath.length||(u=m));return u}getOrCreateSingleInferredProjectIfEnabled(){if(this.useSingleInferredProject)return this.inferredProjects.length>0&&this.inferredProjects[0].projectRootPath===void 0?this.inferredProjects[0]:this.createInferredProject("",!0)}getOrCreateSingleInferredWithoutProjectRoot(n){Se.assert(!this.useSingleInferredProject);let a=this.toCanonicalFileName(this.getNormalizedAbsolutePath(n));for(let u of this.inferredProjects)if(!u.projectRootPath&&u.isOrphan()&&u.canonicalCurrentDirectory===a)return u;return this.createInferredProject(n)}createInferredProject(n,a,u){let m=u&&this.compilerOptionsForInferredProjectsPerProjectRoot.get(u)||this.compilerOptionsForInferredProjects,g,v;u&&(g=this.watchOptionsForInferredProjectsPerProjectRoot.get(u),v=this.typeAcquisitionForInferredProjectsPerProjectRoot.get(u)),g===void 0&&(g=this.watchOptionsForInferredProjects),v===void 0&&(v=this.typeAcquisitionForInferredProjects),g=g||void 0;let x=new QNe(this,this.documentRegistry,m,g?.watchOptions,u,n,v);return x.setProjectErrors(g?.errors),a?this.inferredProjects.unshift(x):this.inferredProjects.push(x),x}getOrCreateScriptInfoNotOpenedByClient(n,a,u,m){return this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(Zm(n),a,void 0,void 0,u,m)}getScriptInfo(n){return this.getScriptInfoForNormalizedPath(Zm(n))}getScriptInfoOrConfig(n){let a=Zm(n),u=this.getScriptInfoForNormalizedPath(a);if(u)return u;let m=this.configuredProjects.get(this.toPath(n));return m&&m.getCompilerOptions().configFile}logErrorForScriptInfoNotFound(n){let a=tc(up(this.filenameToScriptInfo.entries(),u=>u[1].deferredDelete?void 0:u),([u,m])=>({path:u,fileName:m.fileName}));this.logger.msg(`Could not find file ${JSON.stringify(n)}. +All files are: ${JSON.stringify(a)}`,"Err")}getSymlinkedProjects(n){let a;if(this.realpathToScriptInfos){let m=n.getRealpathIfDifferent();m&&ee(this.realpathToScriptInfos.get(m),u),ee(this.realpathToScriptInfos.get(n.path),u)}return a;function u(m){if(m!==n)for(let g of m.containingProjects)g.languageServiceEnabled&&!g.isOrphan()&&!g.getCompilerOptions().preserveSymlinks&&!n.isAttached(g)&&(a?Km(a,(v,x)=>x===m.path?!1:dr(v,g))||a.add(m.path,g):(a=Hb(),a.add(m.path,g)))}}watchClosedScriptInfo(n){if(Se.assert(!n.fileWatcher),!n.isDynamicOrHasMixedContent()&&(!this.globalCacheLocationDirectoryPath||!xl(n.path,this.globalCacheLocationDirectoryPath))){let a=n.fileName.indexOf("/node_modules/");!this.host.getModifiedTime||a===-1?n.fileWatcher=this.watchFactory.watchFile(n.fileName,(u,m)=>this.onSourceFileChanged(n,m),500,this.hostConfiguration.watchOptions,Ty.ClosedScriptInfo):(n.mTime=this.getModifiedTime(n),n.fileWatcher=this.watchClosedScriptInfoInNodeModules(n.fileName.substring(0,a)))}}createNodeModulesWatcher(n,a){let u=this.watchFactory.watchDirectory(n,g=>{var v;let x=Ece(this.toPath(g));if(!x)return;let k=sg(x);if((v=m.affectedModuleSpecifierCacheProjects)!=null&&v.size&&(k==="package.json"||k==="node_modules")&&m.affectedModuleSpecifierCacheProjects.forEach(T=>{var I;(I=T.getModuleSpecifierCache())==null||I.clear()}),m.refreshScriptInfoRefCount)if(a===x)this.refreshScriptInfosInDirectory(a);else{let T=this.filenameToScriptInfo.get(x);T?mBe(T)&&this.refreshScriptInfo(T):B$(x)||this.refreshScriptInfosInDirectory(x)}},1,this.hostConfiguration.watchOptions,Ty.NodeModules),m={refreshScriptInfoRefCount:0,affectedModuleSpecifierCacheProjects:void 0,close:()=>{var g;u&&!m.refreshScriptInfoRefCount&&!((g=m.affectedModuleSpecifierCacheProjects)!=null&&g.size)&&(u.close(),u=void 0,this.nodeModulesWatchers.delete(a))}};return this.nodeModulesWatchers.set(a,m),m}watchPackageJsonsInNodeModules(n,a){var u;let m=this.toPath(n),g=this.nodeModulesWatchers.get(m)||this.createNodeModulesWatcher(n,m);return Se.assert(!((u=g.affectedModuleSpecifierCacheProjects)!=null&&u.has(a))),(g.affectedModuleSpecifierCacheProjects||(g.affectedModuleSpecifierCacheProjects=new Set)).add(a),{close:()=>{var v;(v=g.affectedModuleSpecifierCacheProjects)==null||v.delete(a),g.close()}}}watchClosedScriptInfoInNodeModules(n){let a=n+"/node_modules",u=this.toPath(a),m=this.nodeModulesWatchers.get(u)||this.createNodeModulesWatcher(a,u);return m.refreshScriptInfoRefCount++,{close:()=>{m.refreshScriptInfoRefCount--,m.close()}}}getModifiedTime(n){return(this.host.getModifiedTime(n.fileName)||PC).getTime()}refreshScriptInfo(n){let a=this.getModifiedTime(n);if(a!==n.mTime){let u=Noe(n.mTime,a);n.mTime=a,this.onSourceFileChanged(n,u)}}refreshScriptInfosInDirectory(n){n=n+uh,this.filenameToScriptInfo.forEach(a=>{mBe(a)&&xl(a.path,n)&&this.refreshScriptInfo(a)})}stopWatchingScriptInfo(n){n.fileWatcher&&(n.fileWatcher.close(),n.fileWatcher=void 0)}getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(n,a,u,m,g,v){if(LC(n)||xve(n))return this.getOrCreateScriptInfoWorker(n,a,!1,void 0,u,!!m,g,v);let x=this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(n));if(x)return x}getOrCreateScriptInfoForNormalizedPath(n,a,u,m,g,v){return this.getOrCreateScriptInfoWorker(n,this.currentDirectory,a,u,m,!!g,v,!1)}getOrCreateScriptInfoWorker(n,a,u,m,g,v,x,k){Se.assert(m===void 0||u,"ScriptInfo needs to be opened by client to be able to set its user defined content");let T=BJ(n,a,this.toCanonicalFileName),I=this.filenameToScriptInfo.get(T);if(I){if(I.deferredDelete){if(Se.assert(!I.isDynamic),!u&&!(x||this.host).fileExists(n))return k?I:void 0;I.deferredDelete=void 0}}else{let A=xve(n);if(Se.assert(LC(n)||A||u,"",()=>`${JSON.stringify({fileName:n,currentDirectory:a,hostCurrentDirectory:this.currentDirectory,openKeys:tc(this.openFilesWithNonRootedDiskPath.keys())})} +Script info with non-dynamic relative file name can only be open script info or in context of host currentDirectory`),Se.assert(!LC(n)||this.currentDirectory===a||!this.openFilesWithNonRootedDiskPath.has(this.toCanonicalFileName(n)),"",()=>`${JSON.stringify({fileName:n,currentDirectory:a,hostCurrentDirectory:this.currentDirectory,openKeys:tc(this.openFilesWithNonRootedDiskPath.keys())})} +Open script files with non rooted disk path opened with current directory context cannot have same canonical names`),Se.assert(!A||this.currentDirectory===a||this.useInferredProjectPerProjectRoot,"",()=>`${JSON.stringify({fileName:n,currentDirectory:a,hostCurrentDirectory:this.currentDirectory,openKeys:tc(this.openFilesWithNonRootedDiskPath.keys())})} +Dynamic files must always be opened with service's current directory or service should support inferred project per projectRootPath.`),!u&&!A&&!(x||this.host).fileExists(n))return;I=new Cve(this.host,n,g,v,T,this.filenameToScriptInfoVersion.get(T)),this.filenameToScriptInfo.set(I.path,I),this.filenameToScriptInfoVersion.delete(I.path),u?!LC(n)&&(!A||this.currentDirectory!==a)&&this.openFilesWithNonRootedDiskPath.set(this.toCanonicalFileName(n),I):this.watchClosedScriptInfo(I)}return u&&(this.stopWatchingScriptInfo(I),I.open(m),v&&I.registerFileUpdate()),I}getScriptInfoForNormalizedPath(n){return!LC(n)&&this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(n))||this.getScriptInfoForPath(BJ(n,this.currentDirectory,this.toCanonicalFileName))}getScriptInfoForPath(n){let a=this.filenameToScriptInfo.get(n);return!a||!a.deferredDelete?a:void 0}getDocumentPositionMapper(n,a,u){let m=this.getOrCreateScriptInfoNotOpenedByClient(a,n.currentDirectory,this.host,!1);if(!m){u&&n.addGeneratedFileWatch(a,u);return}if(m.getSnapshot(),Yu(m.sourceMapFilePath)){let T=this.getScriptInfoForPath(m.sourceMapFilePath);if(T&&(T.getSnapshot(),T.documentPositionMapper!==void 0))return T.sourceInfos=this.addSourceInfoToSourceMap(u,n,T.sourceInfos),T.documentPositionMapper?T.documentPositionMapper:void 0;m.sourceMapFilePath=void 0}else if(m.sourceMapFilePath){m.sourceMapFilePath.sourceInfos=this.addSourceInfoToSourceMap(u,n,m.sourceMapFilePath.sourceInfos);return}else if(m.sourceMapFilePath!==void 0)return;let g,v=(T,I)=>{let A=this.getOrCreateScriptInfoNotOpenedByClient(T,n.currentDirectory,this.host,!0);if(g=A||I,!A||A.deferredDelete)return;let M=A.getSnapshot();return A.documentPositionMapper!==void 0?A.documentPositionMapper:PM(M)},x=n.projectName,k=oMe({getCanonicalFileName:this.toCanonicalFileName,log:T=>this.logger.info(T),getSourceFileLike:T=>this.getSourceFileLike(T,x,m)},m.fileName,m.textStorage.getLineInfo(),v);return v=void 0,g?Yu(g)?m.sourceMapFilePath={watcher:this.addMissingSourceMapFile(n.currentDirectory===this.currentDirectory?g:tu(g,n.currentDirectory),m.path),sourceInfos:this.addSourceInfoToSourceMap(u,n)}:(m.sourceMapFilePath=g.path,g.declarationInfoPath=m.path,g.deferredDelete||(g.documentPositionMapper=k||!1),g.sourceInfos=this.addSourceInfoToSourceMap(u,n,g.sourceInfos)):m.sourceMapFilePath=!1,k}addSourceInfoToSourceMap(n,a,u){if(n){let m=this.getOrCreateScriptInfoNotOpenedByClient(n,a.currentDirectory,a.directoryStructureHost,!1);(u||(u=new Set)).add(m.path)}return u}addMissingSourceMapFile(n,a){return this.watchFactory.watchFile(n,()=>{let m=this.getScriptInfoForPath(a);m&&m.sourceMapFilePath&&!Yu(m.sourceMapFilePath)&&(this.delayUpdateProjectGraphs(m.containingProjects,!0),this.delayUpdateSourceInfoProjects(m.sourceMapFilePath.sourceInfos),m.closeSourceMapFileWatcher())},2e3,this.hostConfiguration.watchOptions,Ty.MissingSourceMapFile)}getSourceFileLike(n,a,u){let m=a.projectName?a:this.findProject(a);if(m){let v=m.toPath(n),x=m.getSourceFile(v);if(x&&x.resolvedPath===v)return x}let g=this.getOrCreateScriptInfoNotOpenedByClient(n,(m||this).currentDirectory,m?m.directoryStructureHost:this.host,!1);if(g){if(u&&Yu(u.sourceMapFilePath)&&g!==u){let v=this.getScriptInfoForPath(u.sourceMapFilePath);v&&(v.sourceInfos??(v.sourceInfos=new Set)).add(g.path)}return g.cacheSourceFile?g.cacheSourceFile.sourceFile:(g.sourceFileLike||(g.sourceFileLike={get text(){return Se.fail("shouldnt need text"),""},getLineAndCharacterOfPosition:v=>{let x=g.positionToLineOffset(v);return{line:x.line-1,character:x.offset-1}},getPositionOfLineAndCharacter:(v,x,k)=>g.lineOffsetToPosition(v+1,x+1,k)}),g.sourceFileLike)}}setPerformanceEventHandler(n){this.performanceEventHandler=n}setHostConfiguration(n){var a;if(n.file){let u=this.getScriptInfoForNormalizedPath(Zm(n.file));u&&(u.setOptions(L9(n.formatOptions),n.preferences),this.logger.info(`Host configuration update for file ${n.file}`))}else{if(n.hostInfo!==void 0&&(this.hostConfiguration.hostInfo=n.hostInfo,this.logger.info(`Host information ${n.hostInfo}`)),n.formatOptions&&(this.hostConfiguration.formatCodeOptions={...this.hostConfiguration.formatCodeOptions,...L9(n.formatOptions)},this.logger.info("Format host information updated")),n.preferences){let{lazyConfiguredProjectsFromExternalProject:u,includePackageJsonAutoImports:m,includeCompletionsForModuleExports:g}=this.hostConfiguration.preferences;this.hostConfiguration.preferences={...this.hostConfiguration.preferences,...n.preferences},u&&!this.hostConfiguration.preferences.lazyConfiguredProjectsFromExternalProject&&this.externalProjectToConfiguredProjectMap.forEach(v=>v.forEach(x=>{!x.deferredClose&&!x.isClosed()&&x.pendingUpdateLevel===2&&!this.hasPendingProjectUpdate(x)&&x.updateGraph()})),(m!==n.preferences.includePackageJsonAutoImports||!!g!=!!n.preferences.includeCompletionsForModuleExports)&&this.forEachProject(v=>{v.onAutoImportProviderSettingsChanged()})}if(n.extraFileExtensions&&(this.hostConfiguration.extraFileExtensions=n.extraFileExtensions,this.reloadProjects(),this.logger.info("Host file extension mappings updated")),n.watchOptions){let u=(a=Rie(n.watchOptions))==null?void 0:a.watchOptions,m=qae(u,this.currentDirectory);this.hostConfiguration.watchOptions=m,this.hostConfiguration.beforeSubstitution=m===u?void 0:u,this.logger.info(`Host watch options changed to ${JSON.stringify(this.hostConfiguration.watchOptions)}, it will be take effect for next watches.`)}}}getWatchOptions(n){return this.getWatchOptionsFromProjectWatchOptions(n.getWatchOptions(),n.getCurrentDirectory())}getWatchOptionsFromProjectWatchOptions(n,a){let u=this.hostConfiguration.beforeSubstitution?qae(this.hostConfiguration.beforeSubstitution,a):this.hostConfiguration.watchOptions;return n&&u?{...u,...n}:n||u}closeLog(){this.logger.close()}sendSourceFileChange(n){this.filenameToScriptInfo.forEach(a=>{if(this.openFiles.has(a.path)||!a.fileWatcher)return;let u=H0(()=>this.host.fileExists(a.fileName)?a.deferredDelete?0:1:2);if(n){if(mBe(a)||!a.path.startsWith(n)||u()===2&&a.deferredDelete)return;this.logger.info(`Invoking sourceFileChange on ${a.fileName}:: ${u()}`)}this.onSourceFileChanged(a,u())})}reloadProjects(){this.logger.info("reload projects."),this.sendSourceFileChange(void 0),this.pendingProjectUpdates.forEach((u,m)=>{this.throttledOperations.cancel(m),this.pendingProjectUpdates.delete(m)}),this.throttledOperations.cancel(wot),this.pendingOpenFileProjectUpdates=void 0,this.pendingEnsureProjectForOpenFiles=!1,this.configFileExistenceInfoCache.forEach(u=>{u.config&&(u.config.updateLevel=2)}),this.configFileForOpenFiles.clear(),this.externalProjects.forEach(u=>{this.clearSemanticCache(u),u.updateGraph()});let n=new Set,a=new Set;this.externalProjectToConfiguredProjectMap.forEach((u,m)=>{let g=`Reloading configured project in external project: ${m}`;u.forEach(v=>{this.getHostPreferences().lazyConfiguredProjectsFromExternalProject?(v.isInitialLoadPending()||(this.clearSemanticCache(v),v.pendingUpdateLevel=2,v.pendingUpdateReason=Ove(g)),a.add(v)):this.reloadConfiguredProjectClearingSemanticCache(v,g,n)})}),this.openFiles.forEach((u,m)=>{let g=this.getScriptInfoForPath(m);jt(g.containingProjects,Sz)||this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(g,2,n,a)}),a.forEach(u=>n.add(u)),this.inferredProjects.forEach(u=>this.clearSemanticCache(u)),this.ensureProjectForOpenFiles(),this.cleanupProjectsAndScriptInfos(n,new Set(this.openFiles.keys()),new Set(this.externalProjectToConfiguredProjectMap.keys())),this.logger.info("After reloading projects.."),this.printProjects()}removeRootOfInferredProjectIfNowPartOfOtherProject(n){Se.assert(n.containingProjects.length>0);let a=n.containingProjects[0];!a.isOrphan()&&aD(a)&&a.isRoot(n)&&ee(n.containingProjects,u=>u!==a&&!u.isOrphan())&&a.removeFile(n,!0,!0)}ensureProjectForOpenFiles(){this.logger.info("Before ensureProjectForOpenFiles:"),this.printProjects();let n=this.pendingOpenFileProjectUpdates;this.pendingOpenFileProjectUpdates=void 0,n?.forEach((a,u)=>this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(this.getScriptInfoForPath(u),1)),this.openFiles.forEach((a,u)=>{let m=this.getScriptInfoForPath(u);m.isOrphan()?this.assignOrphanScriptInfoToInferredProject(m,a):this.removeRootOfInferredProjectIfNowPartOfOtherProject(m)}),this.pendingEnsureProjectForOpenFiles=!1,this.inferredProjects.forEach(o2),this.logger.info("After ensureProjectForOpenFiles:"),this.printProjects()}openClientFile(n,a,u,m){return this.openClientFileWithNormalizedPath(Zm(n),a,u,!1,m?Zm(m):void 0)}getOriginalLocationEnsuringConfiguredProject(n,a){let u=n.isSourceOfProjectReferenceRedirect(a.fileName),m=u?a:n.getSourceMapper().tryGetSourcePosition(a);if(!m)return;let{fileName:g}=m,v=this.getScriptInfo(g);if(!v&&!this.host.fileExists(g))return;let x={fileName:Zm(g),path:this.toPath(g)},k=this.getConfigFileNameForFile(x,!1);if(!k)return;let T=this.findConfiguredProjectByProjectName(k);if(!T){if(n.getCompilerOptions().disableReferencedProjectLoad)return u?a:v?.containingProjects.length?m:a;T=this.createConfiguredProject(k,`Creating project for original file: ${x.fileName}${a!==m?" for location: "+a.fileName:""}`)}o2(T);let I=R=>{let H=this.getScriptInfo(g);return H&&R.containsScriptInfo(H)&&!R.isSourceOfProjectReferenceRedirect(H.path)};if(T.isSolution()||!I(T)){if(T=Not(T,g,R=>I(R)?R:void 0,1,`Creating project referenced in solution ${T.projectName} to find possible configured project for original file: ${x.fileName}${a!==m?" for location: "+a.fileName:""}`),!T)return;if(T===n)return m}M(T);let A=this.getScriptInfo(g);if(!A||!A.containingProjects.length)return;return A.containingProjects.forEach(R=>{PN(R)&&M(R)}),m;function M(R){(n.originalConfiguredProjects??(n.originalConfiguredProjects=new Set)).add(R.canonicalConfigFilePath)}}fileExists(n){return!!this.getScriptInfoForNormalizedPath(n)||this.host.fileExists(n)}findExternalProjectContainingOpenScriptInfo(n){return jt(this.externalProjects,a=>(o2(a),a.containsScriptInfo(n)))}getOrCreateOpenScriptInfo(n,a,u,m,g){let v=this.getOrCreateScriptInfoWorker(n,g?this.getNormalizedAbsolutePath(g):this.currentDirectory,!0,a,u,!!m,void 0,!0);return this.openFiles.set(v.path,g),v}assignProjectToOpenedScriptInfo(n){let a,u,m=this.findExternalProjectContainingOpenScriptInfo(n),g,v;if(!m&&this.serverMode===0){let x=this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(n,1);x&&(g=x.seenProjects,v=x.sentConfigDiag,x.defaultProject&&(a=x.defaultProject.getConfigFilePath(),u=x.defaultProject.getAllProjectErrors()))}return n.containingProjects.forEach(o2),n.isOrphan()&&(g?.forEach(x=>{v.has(x)||this.sendConfigFileDiagEvent(x,n.fileName,!0)}),Se.assert(this.openFiles.has(n.path)),this.assignOrphanScriptInfoToInferredProject(n,this.openFiles.get(n.path))),Se.assert(!n.isOrphan()),{configFileName:a,configFileErrors:u,retainProjects:g}}findCreateOrReloadConfiguredProject(n,a,u,m,g,v,x,k){let T=this.findConfiguredProjectByProjectName(n,m),I=!1;switch(a){case 0:if(!T)return;break;case 1:T??(T=this.createConfiguredProject(n,u)),I=!x&&oAe(T,g);break;case 2:T??(T=this.createConfiguredProject(n,Ove(u))),I=!k&&this.reloadConfiguredProjectClearingSemanticCache(T,u,v),k&&!k.has(T)&&!v.has(T)&&(T.pendingUpdateLevel=2,T.pendingUpdateReason=Ove(u),k.add(T));break;default:Se.assertNever(a)}return{project:T,sentConfigFileDiag:I}}tryFindDefaultConfiguredProjectForOpenScriptInfo(n,a,u,m){let g=this.getConfigFileNameForFile(n,a===0);if(!g)return;let v=this.findCreateOrReloadConfiguredProject(g,a,hBe(n),u,n.fileName,m);if(!v)return;let x=new Set,k=new Set(v.sentConfigFileDiag?[v.project]:void 0),T,I;return A(v.project),{defaultProject:T??I,sentConfigDiag:k,seenProjects:x};function A(H){return M(H)?T:R(H)}function M(H){if(!dc(x,H))return;let U=H.containsScriptInfo(n);if(U&&!H.isSourceOfProjectReferenceRedirect(n.path))return T=H;I??(I=U?H:void 0)}function R(H){return Not(H,n.path,(U,$)=>($&&k.add(U),M(U)),a,`Creating project referenced in solution ${H.projectName} to find possible configured project for ${n.fileName} to open`,u,n.fileName,m)}}tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(n,a,u,m){let g=a===0,v=this.tryFindDefaultConfiguredProjectForOpenScriptInfo(n,a,g,u);if(!v)return;let{defaultProject:x,seenProjects:k}=v;return x&&Iot(n,x,T=>{k.add(T)},a,`Creating project possibly referencing default composite project ${x.getProjectName()} of open file ${n.fileName}`,g,u,m),v}loadAncestorProjectTree(n){n??(n=new Set(up(this.configuredProjects.entries(),([m,g])=>g.isInitialLoadPending()?void 0:m)));let a=new Set,u=tc(this.configuredProjects.values());for(let m of u)pBe(m,g=>n.has(g))&&o2(m),this.ensureProjectChildren(m,n,a)}ensureProjectChildren(n,a,u){var m;if(!dc(u,n.canonicalConfigFilePath)||n.getCompilerOptions().disableReferencedProjectLoad)return;let g=(m=n.getCurrentProgram())==null?void 0:m.getResolvedProjectReferences();if(g)for(let v of g){if(!v)continue;let x=j2e(v.references,I=>a.has(I.sourceFile.path)?I:void 0);if(!x)continue;let k=Zm(v.sourceFile.fileName),T=this.findConfiguredProjectByProjectName(k)??this.createConfiguredProject(k,`Creating project referenced by : ${n.projectName} as it references project ${x.sourceFile.fileName}`);o2(T),this.ensureProjectChildren(T,a,u)}}cleanupConfiguredProjects(n,a,u){this.getOrphanConfiguredProjects(n,u,a).forEach(m=>this.removeProject(m))}cleanupProjectsAndScriptInfos(n,a,u){this.cleanupConfiguredProjects(n,u,a);for(let m of this.inferredProjects.slice())m.isOrphan()&&this.removeProject(m);this.removeOrphanScriptInfos()}tryInvokeWildCardDirectories(n){this.configFileExistenceInfoCache.forEach((a,u)=>{var m,g;!((m=a.config)!=null&&m.parsedCommandLine)||dr(a.config.parsedCommandLine.fileNames,n.fileName,this.host.useCaseSensitiveFileNames?ud:rw)||(g=a.config.watchedDirectories)==null||g.forEach((v,x)=>{Gp(x,n.fileName,!this.host.useCaseSensitiveFileNames)&&(this.logger.info(`Invoking ${u}:: wildcard for open scriptInfo:: ${n.fileName}`),this.onWildCardDirectoryWatcherInvoke(x,u,a.config,v.watcher,n.fileName))})})}openClientFileWithNormalizedPath(n,a,u,m,g){let v=this.getScriptInfoForPath(BJ(n,g?this.getNormalizedAbsolutePath(g):this.currentDirectory,this.toCanonicalFileName)),x=this.getOrCreateOpenScriptInfo(n,a,u,m,g);!v&&x&&!x.isDynamic&&this.tryInvokeWildCardDirectories(x);let{retainProjects:k,...T}=this.assignProjectToOpenedScriptInfo(x);return this.cleanupProjectsAndScriptInfos(k,new Set([x.path]),void 0),this.telemetryOnOpenFile(x),this.printProjects(),T}getOrphanConfiguredProjects(n,a,u){let m=new Set(this.configuredProjects.values()),g=T=>{T.originalConfiguredProjects&&(PN(T)||!T.isOrphan())&&T.originalConfiguredProjects.forEach((I,A)=>{let M=this.getConfiguredProjectByCanonicalConfigFilePath(A);return M&&k(M)})};return n?.forEach(k),this.inferredProjects.forEach(g),this.externalProjects.forEach(g),this.externalProjectToConfiguredProjectMap.forEach((T,I)=>{u?.has(I)||T.forEach(k)}),this.openFiles.forEach((T,I)=>{if(a?.has(I))return;let A=this.getScriptInfoForPath(I);if(jt(A.containingProjects,Sz))return;let M=this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(A,0);M?.defaultProject&&M?.seenProjects.forEach(k)}),this.configuredProjects.forEach(T=>{m.has(T)&&(x(T)||Lot(T,v))&&k(T)}),m;function v(T){return!m.has(T)||x(T)}function x(T){var I,A;return(T.deferredClose||T.projectService.hasPendingProjectUpdate(T))&&!!((A=(I=T.projectService.configFileExistenceInfoCache.get(T.canonicalConfigFilePath))==null?void 0:I.openFilesImpactedByConfigFile)!=null&&A.size)}function k(T){m.delete(T)&&(g(T),Lot(T,k))}}removeOrphanScriptInfos(){let n=new Map(this.filenameToScriptInfo);this.filenameToScriptInfo.forEach(a=>{if(!a.deferredDelete){if(!a.isScriptOpen()&&a.isOrphan()&&!a.isContainedByBackgroundProject()){if(!a.sourceMapFilePath)return;let u;if(Yu(a.sourceMapFilePath)){let m=this.filenameToScriptInfo.get(a.sourceMapFilePath);u=m?.sourceInfos}else u=a.sourceMapFilePath.sourceInfos;if(!u||!N2(u,m=>{let g=this.getScriptInfoForPath(m);return!!g&&(g.isScriptOpen()||!g.isOrphan())}))return}if(n.delete(a.path),a.sourceMapFilePath){let u;if(Yu(a.sourceMapFilePath)){let m=this.filenameToScriptInfo.get(a.sourceMapFilePath);m?.deferredDelete?a.sourceMapFilePath={watcher:this.addMissingSourceMapFile(m.fileName,a.path),sourceInfos:m.sourceInfos}:n.delete(a.sourceMapFilePath),u=m?.sourceInfos}else u=a.sourceMapFilePath.sourceInfos;u&&u.forEach((m,g)=>n.delete(g))}}}),n.forEach(a=>this.deleteScriptInfo(a))}telemetryOnOpenFile(n){if(this.serverMode!==0||!this.eventHandler||!n.isJavaScript()||!HC(this.allJsFilesForOpenFileTelemetry,n.path))return;let a=this.ensureDefaultProjectForFile(n);if(!a.languageServiceEnabled)return;let u=a.getSourceFile(n.path),m=!!u&&!!u.checkJsDirective;this.eventHandler({eventName:Dve,data:{info:{checkJs:m}}})}closeClientFile(n,a){let u=this.getScriptInfoForNormalizedPath(Zm(n)),m=u?this.closeOpenFile(u,a):!1;return a||this.printProjects(),m}collectChanges(n,a,u,m){for(let g of a){let v=jt(n,x=>x.projectName===g.getProjectName());m.push(g.getChangesSinceVersion(v&&v.version,u))}}synchronizeProjectList(n,a){let u=[];return this.collectChanges(n,this.externalProjects,a,u),this.collectChanges(n,up(this.configuredProjects.values(),m=>m.deferredClose?void 0:m),a,u),this.collectChanges(n,this.inferredProjects,a,u),u}applyChangesInOpenFiles(n,a,u){let m,g,v=!1;if(n)for(let k of n){(m??(m=[])).push(this.getScriptInfoForPath(BJ(Zm(k.fileName),k.projectRootPath?this.getNormalizedAbsolutePath(k.projectRootPath):this.currentDirectory,this.toCanonicalFileName)));let T=this.getOrCreateOpenScriptInfo(Zm(k.fileName),k.content,vue(k.scriptKind),k.hasMixedContent,k.projectRootPath?Zm(k.projectRootPath):void 0);(g||(g=[])).push(T)}if(a)for(let k of a){let T=this.getScriptInfo(k.fileName);Se.assert(!!T),this.applyChangesToFile(T,k.changes)}if(u)for(let k of u)v=this.closeClientFile(k,!0)||v;let x;ee(m,(k,T)=>!k&&g[T]&&!g[T].isDynamic?this.tryInvokeWildCardDirectories(g[T]):void 0),g?.forEach(k=>{var T;return(T=this.assignProjectToOpenedScriptInfo(k).retainProjects)==null?void 0:T.forEach(I=>(x??(x=new Set)).add(I))}),v&&this.assignOrphanScriptInfosToInferredProject(),g?(this.cleanupProjectsAndScriptInfos(x,new Set(g.map(k=>k.path)),void 0),g.forEach(k=>this.telemetryOnOpenFile(k)),this.printProjects()):Z(u)&&this.printProjects()}applyChangesToFile(n,a){for(let u of a)n.editContent(u.span.start,u.span.start+u.span.length,u.newText)}closeExternalProject(n,a){let u=Zm(n);if(this.externalProjectToConfiguredProjectMap.get(u))this.externalProjectToConfiguredProjectMap.delete(u);else{let g=this.findExternalProjectByProjectName(n);g&&this.removeProject(g)}a&&(this.cleanupConfiguredProjects(),this.printProjects())}openExternalProjects(n){let a=new Set(this.externalProjects.map(u=>u.getProjectName()));this.externalProjectToConfiguredProjectMap.forEach((u,m)=>a.add(m));for(let u of n)this.openExternalProject(u,!1),a.delete(u.projectFileName);a.forEach(u=>this.closeExternalProject(u,!1)),this.cleanupConfiguredProjects(),this.printProjects()}static escapeFilenameForRegex(n){return n.replace(this.filenameEscapeRegexp,"\\$&")}resetSafeList(){this.safelist=WJ}applySafeList(n){let a=n.typeAcquisition;Se.assert(!!a,"proj.typeAcquisition should be set by now");let u=this.applySafeListWorker(n,n.rootFiles,a);return u?.excludedFiles??[]}applySafeListWorker(n,a,u){if(u.enable===!1||u.disableFilenameBasedTypeAcquisition)return;let m=u.include||(u.include=[]),g=[],v=a.map(A=>Ch(A.fileName));for(let A of Object.keys(this.safelist)){let M=this.safelist[A];for(let R of v)if(M.match.test(R)){if(this.logger.info(`Excluding files based on rule ${A} matching file '${R}'`),M.types)for(let H of M.types)m.includes(H)||m.push(H);if(M.exclude)for(let H of M.exclude){let U=R.replace(M.match,(...$)=>H.map(K=>typeof K=="number"?Yu($[K])?iYt.escapeFilenameForRegex($[K]):(this.logger.info(`Incorrect RegExp specification in safelist rule ${A} - not enough groups`),"\\*"):K).join(""));g.includes(U)||g.push(U)}else{let H=iYt.escapeFilenameForRegex(R);g.includes(H)||g.push(H)}}}let x=g.map(A=>new RegExp(A,"i")),k,T;for(let A=0;AM.test(v[A])))I(A);else{if(u.enable){let M=sg(OS(v[A]));if(Wh(M,"js")){let R=Qx(M),H=D$(R),U=this.legacySafelist.get(H);if(U!==void 0){this.logger.info(`Excluded '${v[A]}' because it matched ${H} from the legacy safelist`),I(A),m.includes(U)||m.push(U);continue}}}/^.+[.-]min\.js$/.test(v[A])?I(A):k?.push(a[A])}return T?{rootFiles:k,excludedFiles:T}:void 0;function I(A){T||(Se.assert(!k),k=a.slice(0,A),T=[]),T.push(v[A])}}openExternalProject(n,a){let u=this.findExternalProjectByProjectName(n.projectFileName),m,g=[];for(let v of n.rootFiles){let x=Zm(v.fileName);if(XNe(x)){if(this.serverMode===0&&this.host.fileExists(x)){let k=this.findConfiguredProjectByProjectName(x);k||(k=this.createConfiguredProject(x,`Creating configured project in external project: ${n.projectFileName}`),this.getHostPreferences().lazyConfiguredProjectsFromExternalProject||k.updateGraph()),(m??(m=new Set)).add(k),Se.assert(!k.isClosed())}}else g.push(v)}if(m)this.externalProjectToConfiguredProjectMap.set(n.projectFileName,m),u&&this.removeProject(u);else{this.externalProjectToConfiguredProjectMap.delete(n.projectFileName);let v=n.typeAcquisition||{};v.include=v.include||[],v.exclude=v.exclude||[],v.enable===void 0&&(v.enable=Sot(g.map(T=>T.fileName)));let x=this.applySafeListWorker(n,g,v),k=x?.excludedFiles??[];if(g=x?.rootFiles??g,u){u.excludedFiles=k;let T=zJ(n.options),I=Rie(n.options,u.getCurrentDirectory()),A=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(n.projectFileName,T,g,nAe);A?u.disableLanguageService(A):u.enableLanguageService(),u.setProjectErrors(I?.errors),this.updateRootAndOptionsOfNonInferredProject(u,g,nAe,T,v,n.options.compileOnSave,I?.watchOptions),u.updateGraph()}else this.createExternalProject(n.projectFileName,g,n.options,v,k).updateGraph()}a&&(this.cleanupConfiguredProjects(m,new Set(n.projectFileName)),this.printProjects())}hasDeferredExtension(){for(let n of this.hostConfiguration.extraFileExtensions)if(n.scriptKind===7)return!0;return!1}requestEnablePlugin(n,a,u){if(!this.host.importPlugin&&!this.host.require){this.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}if(this.logger.info(`Enabling plugin ${a.name} from candidate paths: ${u.join(",")}`),!a.name||l0(a.name)||/[\\/]\.\.?(?:$|[\\/])/.test(a.name)){this.logger.info(`Skipped loading plugin ${a.name||JSON.stringify(a)} because only package name is allowed plugin name`);return}if(this.host.importPlugin){let m=zX.importServicePluginAsync(a,u,this.host,v=>this.logger.info(v));this.pendingPluginEnablements??(this.pendingPluginEnablements=new Map);let g=this.pendingPluginEnablements.get(n);g||this.pendingPluginEnablements.set(n,g=[]),g.push(m);return}this.endEnablePlugin(n,zX.importServicePluginSync(a,u,this.host,m=>this.logger.info(m)))}endEnablePlugin(n,{pluginConfigEntry:a,resolvedModule:u,errorLogs:m}){var g;if(u){let v=(g=this.currentPluginConfigOverrides)==null?void 0:g.get(a.name);if(v){let x=a.name;a=v,a.name=x}n.enableProxy(u,a)}else ee(m,v=>this.logger.info(v)),this.logger.info(`Couldn't find ${a.name}`)}hasNewPluginEnablementRequests(){return!!this.pendingPluginEnablements}hasPendingPluginEnablements(){return!!this.currentPluginEnablementPromise}async waitForPendingPlugins(){for(;this.currentPluginEnablementPromise;)await this.currentPluginEnablementPromise}enableRequestedPlugins(){this.pendingPluginEnablements&&this.enableRequestedPluginsAsync()}async enableRequestedPluginsAsync(){if(this.currentPluginEnablementPromise&&await this.waitForPendingPlugins(),!this.pendingPluginEnablements)return;let n=tc(this.pendingPluginEnablements.entries());this.pendingPluginEnablements=void 0,this.currentPluginEnablementPromise=this.enableRequestedPluginsWorker(n),await this.currentPluginEnablementPromise}async enableRequestedPluginsWorker(n){Se.assert(this.currentPluginEnablementPromise===void 0);let a=!1;await Promise.all($i(n,async([u,m])=>{let g=await Promise.all(m);if(u.isClosed()||Oie(u)){this.logger.info(`Cancelling plugin enabling for ${u.getProjectName()} as it is ${u.isClosed()?"closed":"deferred close"}`);return}a=!0;for(let v of g)this.endEnablePlugin(u,v);this.delayUpdateProjectGraph(u)})),this.currentPluginEnablementPromise=void 0,a&&this.sendProjectsUpdatedInBackgroundEvent()}configurePlugin(n){this.forEachEnabledProject(a=>a.onPluginConfigurationChanged(n.pluginName,n.configuration)),this.currentPluginConfigOverrides=this.currentPluginConfigOverrides||new Map,this.currentPluginConfigOverrides.set(n.pluginName,n.configuration)}getPackageJsonsVisibleToFile(n,a,u){let m=this.packageJsonCache,g=u&&this.toPath(u),v=[],x=k=>{switch(m.directoryHasPackageJson(k)){case 3:return m.searchDirectoryAndAncestors(k),x(k);case-1:let T=Ps(k,"package.json");this.watchPackageJsonFile(T,this.toPath(T),a);let I=m.getInDirectory(k);I&&v.push(I)}if(g&&g===k)return!0};return T2(Cc(n),x),v}getNearestAncestorDirectoryWithPackageJson(n){return T2(n,a=>{switch(this.packageJsonCache.directoryHasPackageJson(a)){case-1:return a;case 0:return;case 3:return this.host.fileExists(Ps(a,"package.json"))?a:void 0}})}watchPackageJsonFile(n,a,u){Se.assert(u!==void 0);let m=(this.packageJsonFilesMap??(this.packageJsonFilesMap=new Map)).get(a);if(!m){let g=this.watchFactory.watchFile(n,(v,x)=>{switch(x){case 0:case 1:this.packageJsonCache.addOrUpdate(v,a),this.onPackageJsonChange(m);break;case 2:this.packageJsonCache.delete(a),this.onPackageJsonChange(m),m.projects.clear(),m.close()}},250,this.hostConfiguration.watchOptions,Ty.PackageJson);m={projects:new Set,close:()=>{var v;m.projects.size||!g||(g.close(),g=void 0,(v=this.packageJsonFilesMap)==null||v.delete(a),this.packageJsonCache.invalidate(a))}},this.packageJsonFilesMap.set(a,m)}m.projects.add(u),(u.packageJsonWatches??(u.packageJsonWatches=new Set)).add(m)}onPackageJsonChange(n){n.projects.forEach(a=>{var u;return(u=a.onPackageJsonChange)==null?void 0:u.call(a)})}includePackageJsonAutoImports(){switch(this.hostConfiguration.preferences.includePackageJsonAutoImports){case"on":return 1;case"off":return 0;default:return 2}}getIncompleteCompletionsCache(){return this.incompleteCompletionsCache||(this.incompleteCompletionsCache=Mot())}};vBe.filenameEscapeRegexp=/[-/\\^$*+?.()|[\]{}]/g;var aAe=vBe;function Mot(){let t;return{get(){return t},set(n){t=n},clear(){t=void 0}}}function cAe(t){return t.kind!==void 0}function bBe(t){t.print(!1,!1,!1)}function Rot(t){let n,a,u,m={get(k,T,I,A){if(!(!a||u!==v(k,I,A)))return a.get(T)},set(k,T,I,A,M,R,H){if(g(k,I,A).set(T,x(M,R,H,void 0,!1)),H){for(let U of R)if(U.isInNodeModules){let $=U.path.substring(0,U.path.indexOf(nP)+nP.length-1),K=t.toPath($);n?.has(K)||(n||(n=new Map)).set(K,t.watchNodeModulesForPackageJsonChanges($))}}},setModulePaths(k,T,I,A,M){let R=g(k,I,A),H=R.get(T);H?H.modulePaths=M:R.set(T,x(void 0,M,void 0,void 0,void 0))},setBlockedByPackageJsonDependencies(k,T,I,A,M,R){let H=g(k,I,A),U=H.get(T);U?(U.isBlockedByPackageJsonDependencies=R,U.packageName=M):H.set(T,x(void 0,void 0,void 0,M,R))},clear(){n?.forEach(GT),a?.clear(),n?.clear(),u=void 0},count(){return a?a.size:0}};return Se.isDebugging&&Object.defineProperty(m,"__cache",{get:()=>a}),m;function g(k,T,I){let A=v(k,T,I);return a&&u!==A&&m.clear(),u=A,a||(a=new Map)}function v(k,T,I){return`${k},${T.importModuleSpecifierEnding},${T.importModuleSpecifierPreference},${I.overrideImportMode}`}function x(k,T,I,A,M){return{kind:k,modulePaths:T,moduleSpecifiers:I,packageName:A,isBlockedByPackageJsonDependencies:M}}}function SBe(t){let n=new Map,a=new Map;return{addOrUpdate:u,invalidate:m,delete:v=>{n.delete(v),a.set(Cc(v),!0)},getInDirectory:v=>n.get(t.toPath(Ps(v,"package.json")))||void 0,directoryHasPackageJson:v=>g(t.toPath(v)),searchDirectoryAndAncestors:v=>{T2(v,x=>{let k=t.toPath(x);if(g(k)!==3)return!0;let T=Ps(x,"package.json");nz(t,T)?u(T,Ps(k,"package.json")):a.set(k,!0)})}};function u(v,x){let k=Se.checkDefined(hle(v,t.host));n.set(x,k),a.delete(Cc(x))}function m(v){n.delete(v),a.delete(Cc(v))}function g(v){return n.has(Ps(v,"package.json"))?-1:a.has(v)?0:3}}var zCt={isCancellationRequested:()=>!1,setRequest:()=>{},resetRequest:()=>{}};function VCt(t){let n=t[0],a=t[1];return(1e9*n+a)/1e6}function lAe(t,n){if((aD(t)||Sz(t))&&t.isJsOnlyProject()){let a=t.getScriptInfoForNormalizedPath(n);return a&&!a.isJavaScript()}return!1}function Bie(t){return fw(t)||!!t.emitDecoratorMetadata}function Sue(t,n,a){let u=n.getScriptInfoForNormalizedPath(t);return{start:u.positionToLineOffset(a.start),end:u.positionToLineOffset(a.start+a.length),text:wN(a.messageText,` +`),code:a.code,category:e5(a),reportsUnnecessary:a.reportsUnnecessary,reportsDeprecated:a.reportsDeprecated,source:a.source,relatedInformation:$i(a.relatedInformation,xBe)}}function xBe(t){return t.file?{span:{start:VX(Df(t.file,t.start)),end:VX(Df(t.file,t.start+t.length)),file:t.file.fileName},message:wN(t.messageText,` +`),category:e5(t),code:t.code}:{message:wN(t.messageText,` +`),category:e5(t),code:t.code}}function VX(t){return{line:t.line+1,offset:t.character+1}}function jie(t,n){let a=t.file&&VX(Df(t.file,t.start)),u=t.file&&VX(Df(t.file,t.start+t.length)),m=wN(t.messageText,` +`),{code:g,source:v}=t,x=e5(t),k={start:a,end:u,text:m,code:g,category:x,reportsUnnecessary:t.reportsUnnecessary,reportsDeprecated:t.reportsDeprecated,source:v,relatedInformation:$i(t.relatedInformation,xBe)};return n?{...k,fileName:t.file&&t.file.fileName}:k}function _Jt(t,n){return t.every(a=>ag(a.span){this.immediateId=void 0,this.operationHost.executeWithRequestId(a,()=>this.executeAction(n),this.performanceData)},t))}delay(t,n,a){let u=this.requestId;Se.assert(u===this.operationHost.getCurrentRequestId(),"delay: incorrect request id"),this.setTimerHandle(this.operationHost.getServerHost().setTimeout(()=>{this.timerHandle=void 0,this.operationHost.executeWithRequestId(u,()=>this.executeAction(a),this.performanceData)},n,t))}executeAction(t){var n,a,u,m,g,v;let x=!1;try{this.operationHost.isCancellationRequested()?(x=!0,(n=us)==null||n.instant(us.Phase.Session,"stepCanceled",{seq:this.requestId,early:!0})):((a=us)==null||a.push(us.Phase.Session,"stepAction",{seq:this.requestId}),t(this),(u=us)==null||u.pop())}catch(k){(m=us)==null||m.popAll(),x=!0,k instanceof sH?(g=us)==null||g.instant(us.Phase.Session,"stepCanceled",{seq:this.requestId}):((v=us)==null||v.instant(us.Phase.Session,"stepError",{seq:this.requestId,message:k.message}),this.operationHost.logError(k,`delayed processing of request ${this.requestId}`))}this.performanceData=this.operationHost.getPerformanceData(),(x||!this.hasPendingWork())&&this.complete()}setTimerHandle(t){this.timerHandle!==void 0&&this.operationHost.getServerHost().clearTimeout(this.timerHandle),this.timerHandle=t}setImmediateId(t){this.immediateId!==void 0&&this.operationHost.getServerHost().clearImmediate(this.immediateId),this.immediateId=t}hasPendingWork(){return!!this.timerHandle||!!this.immediateId}};function jot(t,n){return{seq:0,type:"event",event:t,body:n}}function pJt(t,n,a,u){let m=Uc(ua(a)?a:a.projects,g=>u(g,t));return!ua(a)&&a.symLinkedProjects&&a.symLinkedProjects.forEach((g,v)=>{let x=n(v);m.push(...za(g,k=>u(k,x)))}),la(m,p8)}function wBe(t){return yoe(({textSpan:n})=>n.start+100003*n.length,tz(t))}function Wot(t,n,a,u,m,g,v){let x=UCt(t,n,a,!0,(I,A)=>I.getLanguageService().findRenameLocations(A.fileName,A.pos,u,m,g),(I,A)=>A(Cue(I)));if(ua(x))return x;let k=[],T=wBe(v);return x.forEach((I,A)=>{for(let M of I)!T.has(M)&&!dAe(Cue(M),A)&&(k.push(M),T.add(M))}),k}function HCt(t,n,a){let u=t.getLanguageService().getDefinitionAtPosition(n.fileName,n.pos,!1,a),m=u&&Ed(u);return m&&!m.isLocal?{fileName:m.fileName,pos:m.textSpan.start}:void 0}function mJt(t,n,a,u,m){var g,v;let x=UCt(t,n,a,!1,(A,M)=>(m.info(`Finding references to ${M.fileName} position ${M.pos} in project ${A.getProjectName()}`),A.getLanguageService().findReferences(M.fileName,M.pos)),(A,M)=>{M(Cue(A.definition));for(let R of A.references)M(Cue(R))});if(ua(x))return x;let k=x.get(n);if(((v=(g=k?.[0])==null?void 0:g.references[0])==null?void 0:v.isDefinition)===void 0)x.forEach(A=>{for(let M of A)for(let R of M.references)delete R.isDefinition});else{let A=wBe(u);for(let R of k)for(let H of R.references)if(H.isDefinition){A.add(H);break}let M=new Set;for(;;){let R=!1;if(x.forEach((H,U)=>{if(M.has(U))return;U.getLanguageService().updateIsDefinitionOfReferencedSymbols(H,A)&&(M.add(U),R=!0)}),!R)break}x.forEach((R,H)=>{if(!M.has(H))for(let U of R)for(let $ of U.references)$.isDefinition=!1})}let T=[],I=wBe(u);return x.forEach((A,M)=>{for(let R of A){let H=dAe(Cue(R.definition),M),U=H===void 0?R.definition:{...R.definition,textSpan:h1(H.pos,R.definition.textSpan.length),fileName:H.fileName,contextSpan:$Ct(R.definition,M)},$=jt(T,K=>ale(K.definition,U,u));$||($={definition:U,references:[]},T.push($));for(let K of R.references)!I.has(K)&&!dAe(Cue(K),M)&&(I.add(K),$.references.push(K))}}),T.filter(A=>A.references.length!==0)}function TBe(t,n,a){for(let u of ua(t)?t:t.projects)a(u,n);!ua(t)&&t.symLinkedProjects&&t.symLinkedProjects.forEach((u,m)=>{for(let g of u)a(g,m)})}function UCt(t,n,a,u,m,g){let v=new Map,x=ZV();x.enqueue({project:n,location:a}),TBe(t,a.fileName,(U,$)=>{let K={fileName:$,pos:a.pos};x.enqueue({project:U,location:K})});let k=n.projectService,T=n.getCancellationToken(),I=HCt(n,a,u),A=H0(()=>n.isSourceOfProjectReferenceRedirect(I.fileName)?I:n.getLanguageService().getSourceMapper().tryGetGeneratedPosition(I)),M=H0(()=>n.isSourceOfProjectReferenceRedirect(I.fileName)?I:n.getLanguageService().getSourceMapper().tryGetSourcePosition(I)),R=new Set;e:for(;!x.isEmpty();){for(;!x.isEmpty();){if(T.isCancellationRequested())break e;let{project:U,location:$}=x.dequeue();if(v.has(U)||uAe(U,$)||(o2(U),!U.containsFile(Zm($.fileName))))continue;let K=H(U,$);v.set(U,K??Cd),R.add(JCt(U))}I&&(k.loadAncestorProjectTree(R),k.forEachEnabledProject(U=>{if(T.isCancellationRequested()||v.has(U))return;let $=xue(I,U,A,M);$&&x.enqueue({project:U,location:$})}))}if(v.size===1)return AC(v.values());return v;function H(U,$){let K=m(U,$);if(K){for(let re of K)g(re,X=>{let ne=k.getOriginalLocationEnsuringConfiguredProject(U,X);if(!ne)return;let se=k.getScriptInfo(ne.fileName);for(let ae of se.containingProjects)!ae.isOrphan()&&!v.has(ae)&&x.enqueue({project:ae,location:ne});let _e=k.getSymlinkedProjects(se);_e&&_e.forEach((ae,le)=>{for(let Ee of ae)!Ee.isOrphan()&&!v.has(Ee)&&x.enqueue({project:Ee,location:{fileName:le,pos:ne.pos}})})});return K}}}function xue(t,n,a,u){if(n.containsFile(Zm(t.fileName))&&!uAe(n,t))return t;let m=a();if(m&&n.containsFile(Zm(m.fileName)))return m;let g=u();return g&&n.containsFile(Zm(g.fileName))?g:void 0}function uAe(t,n){if(!n)return!1;let a=t.getLanguageService().getProgram();if(!a)return!1;let u=a.getSourceFile(n.fileName);return!!u&&u.resolvedPath!==u.path&&u.resolvedPath!==t.toPath(n.fileName)}function JCt(t){return PN(t)?t.canonicalConfigFilePath:t.getProjectName()}function Cue({fileName:t,textSpan:n}){return{fileName:t,pos:n.start}}function dAe(t,n){return fJ(t,n.getSourceMapper(),a=>n.projectService.fileExists(a))}function qCt(t,n){return lle(t,n.getSourceMapper(),a=>n.projectService.fileExists(a))}function $Ct(t,n){return _J(t,n.getSourceMapper(),a=>n.projectService.fileExists(a))}var fP=["openExternalProject","openExternalProjects","closeExternalProject","synchronizeProjectList","emit-output","compileOnSaveAffectedFileList","compileOnSaveEmitFile","compilerOptionsDiagnostics-full","encodedSemanticClassifications-full","semanticDiagnosticsSync","suggestionDiagnosticsSync","geterrForProject","reload","reloadProjects","getCodeFixes","getCodeFixes-full","getCombinedCodeFix","getCombinedCodeFix-full","applyCodeActionCommand","getSupportedCodeFixes","getApplicableRefactors","getMoveToRefactoringFileSuggestions","getEditsForRefactor","getEditsForRefactor-full","organizeImports","organizeImports-full","getEditsForFileRename","getEditsForFileRename-full","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","getPasteEdits"],zot=[...fP,"definition","definition-full","definitionAndBoundSpan","definitionAndBoundSpan-full","typeDefinition","implementation","implementation-full","references","references-full","rename","renameLocations-full","rename-full","quickinfo","quickinfo-full","completionInfo","completions","completions-full","completionEntryDetails","completionEntryDetails-full","signatureHelp","signatureHelp-full","navto","navto-full","documentHighlights","documentHighlights-full"],GCt=class UEt{constructor(n){this.changeSeq=0,this.regionDiagLineCountThreshold=500,this.handlers=new Map(Object.entries({status:()=>{let g={version:L};return this.requiredResponse(g)},openExternalProject:g=>(this.projectService.openExternalProject(g.arguments,!0),this.requiredResponse(!0)),openExternalProjects:g=>(this.projectService.openExternalProjects(g.arguments.projects),this.requiredResponse(!0)),closeExternalProject:g=>(this.projectService.closeExternalProject(g.arguments.projectFileName,!0),this.requiredResponse(!0)),synchronizeProjectList:g=>{let v=this.projectService.synchronizeProjectList(g.arguments.knownProjects,g.arguments.includeProjectReferenceRedirectInfo);if(!v.some(k=>k.projectErrors&&k.projectErrors.length!==0))return this.requiredResponse(v);let x=$i(v,k=>!k.projectErrors||k.projectErrors.length===0?k:{info:k.info,changes:k.changes,files:k.files,projectErrors:this.convertToDiagnosticsWithLinePosition(k.projectErrors,void 0)});return this.requiredResponse(x)},updateOpen:g=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(g.arguments.openFiles&&Dl(g.arguments.openFiles,v=>({fileName:v.file,content:v.fileContent,scriptKind:v.scriptKindName,projectRootPath:v.projectRootPath})),g.arguments.changedFiles&&Dl(g.arguments.changedFiles,v=>({fileName:v.fileName,changes:up(Ws(v.textChanges),x=>{let k=Se.checkDefined(this.projectService.getScriptInfo(v.fileName)),T=k.lineOffsetToPosition(x.start.line,x.start.offset),I=k.lineOffsetToPosition(x.end.line,x.end.offset);return T>=0?{span:{start:T,length:I-T},newText:x.newText}:void 0})})),g.arguments.closedFiles),this.requiredResponse(!0)),applyChangedToOpenFiles:g=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(g.arguments.openFiles,g.arguments.changedFiles&&Dl(g.arguments.changedFiles,v=>({fileName:v.fileName,changes:Ws(v.changes)})),g.arguments.closedFiles),this.requiredResponse(!0)),exit:()=>(this.exit(),this.notRequired(void 0)),definition:g=>this.requiredResponse(this.getDefinition(g.arguments,!0)),"definition-full":g=>this.requiredResponse(this.getDefinition(g.arguments,!1)),definitionAndBoundSpan:g=>this.requiredResponse(this.getDefinitionAndBoundSpan(g.arguments,!0)),"definitionAndBoundSpan-full":g=>this.requiredResponse(this.getDefinitionAndBoundSpan(g.arguments,!1)),findSourceDefinition:g=>this.requiredResponse(this.findSourceDefinition(g.arguments)),"emit-output":g=>this.requiredResponse(this.getEmitOutput(g.arguments)),typeDefinition:g=>this.requiredResponse(this.getTypeDefinition(g.arguments)),implementation:g=>this.requiredResponse(this.getImplementation(g.arguments,!0)),"implementation-full":g=>this.requiredResponse(this.getImplementation(g.arguments,!1)),references:g=>this.requiredResponse(this.getReferences(g.arguments,!0)),"references-full":g=>this.requiredResponse(this.getReferences(g.arguments,!1)),rename:g=>this.requiredResponse(this.getRenameLocations(g.arguments,!0)),"renameLocations-full":g=>this.requiredResponse(this.getRenameLocations(g.arguments,!1)),"rename-full":g=>this.requiredResponse(this.getRenameInfo(g.arguments)),open:g=>(this.openClientFile(Zm(g.arguments.file),g.arguments.fileContent,Nve(g.arguments.scriptKindName),g.arguments.projectRootPath?Zm(g.arguments.projectRootPath):void 0),this.notRequired(g)),quickinfo:g=>this.requiredResponse(this.getQuickInfoWorker(g.arguments,!0)),"quickinfo-full":g=>this.requiredResponse(this.getQuickInfoWorker(g.arguments,!1)),getOutliningSpans:g=>this.requiredResponse(this.getOutliningSpans(g.arguments,!0)),outliningSpans:g=>this.requiredResponse(this.getOutliningSpans(g.arguments,!1)),todoComments:g=>this.requiredResponse(this.getTodoComments(g.arguments)),indentation:g=>this.requiredResponse(this.getIndentation(g.arguments)),nameOrDottedNameSpan:g=>this.requiredResponse(this.getNameOrDottedNameSpan(g.arguments)),breakpointStatement:g=>this.requiredResponse(this.getBreakpointStatement(g.arguments)),braceCompletion:g=>this.requiredResponse(this.isValidBraceCompletion(g.arguments)),docCommentTemplate:g=>this.requiredResponse(this.getDocCommentTemplate(g.arguments)),getSpanOfEnclosingComment:g=>this.requiredResponse(this.getSpanOfEnclosingComment(g.arguments)),fileReferences:g=>this.requiredResponse(this.getFileReferences(g.arguments,!0)),"fileReferences-full":g=>this.requiredResponse(this.getFileReferences(g.arguments,!1)),format:g=>this.requiredResponse(this.getFormattingEditsForRange(g.arguments)),formatonkey:g=>this.requiredResponse(this.getFormattingEditsAfterKeystroke(g.arguments)),"format-full":g=>this.requiredResponse(this.getFormattingEditsForDocumentFull(g.arguments)),"formatonkey-full":g=>this.requiredResponse(this.getFormattingEditsAfterKeystrokeFull(g.arguments)),"formatRange-full":g=>this.requiredResponse(this.getFormattingEditsForRangeFull(g.arguments)),completionInfo:g=>this.requiredResponse(this.getCompletions(g.arguments,"completionInfo")),completions:g=>this.requiredResponse(this.getCompletions(g.arguments,"completions")),"completions-full":g=>this.requiredResponse(this.getCompletions(g.arguments,"completions-full")),completionEntryDetails:g=>this.requiredResponse(this.getCompletionEntryDetails(g.arguments,!1)),"completionEntryDetails-full":g=>this.requiredResponse(this.getCompletionEntryDetails(g.arguments,!0)),compileOnSaveAffectedFileList:g=>this.requiredResponse(this.getCompileOnSaveAffectedFileList(g.arguments)),compileOnSaveEmitFile:g=>this.requiredResponse(this.emitFile(g.arguments)),signatureHelp:g=>this.requiredResponse(this.getSignatureHelpItems(g.arguments,!0)),"signatureHelp-full":g=>this.requiredResponse(this.getSignatureHelpItems(g.arguments,!1)),"compilerOptionsDiagnostics-full":g=>this.requiredResponse(this.getCompilerOptionsDiagnostics(g.arguments)),"encodedSyntacticClassifications-full":g=>this.requiredResponse(this.getEncodedSyntacticClassifications(g.arguments)),"encodedSemanticClassifications-full":g=>this.requiredResponse(this.getEncodedSemanticClassifications(g.arguments)),cleanup:()=>(this.cleanup(),this.requiredResponse(!0)),semanticDiagnosticsSync:g=>this.requiredResponse(this.getSemanticDiagnosticsSync(g.arguments)),syntacticDiagnosticsSync:g=>this.requiredResponse(this.getSyntacticDiagnosticsSync(g.arguments)),suggestionDiagnosticsSync:g=>this.requiredResponse(this.getSuggestionDiagnosticsSync(g.arguments)),geterr:g=>(this.errorCheck.startNew(v=>this.getDiagnostics(v,g.arguments.delay,g.arguments.files)),this.notRequired(void 0)),geterrForProject:g=>(this.errorCheck.startNew(v=>this.getDiagnosticsForProject(v,g.arguments.delay,g.arguments.file)),this.notRequired(void 0)),change:g=>(this.change(g.arguments),this.notRequired(g)),configure:g=>(this.projectService.setHostConfiguration(g.arguments),this.notRequired(g)),reload:g=>(this.reload(g.arguments),this.requiredResponse({reloadFinished:!0})),saveto:g=>{let v=g.arguments;return this.saveToTmp(v.file,v.tmpfile),this.notRequired(g)},close:g=>{let v=g.arguments;return this.closeClientFile(v.file),this.notRequired(g)},navto:g=>this.requiredResponse(this.getNavigateToItems(g.arguments,!0)),"navto-full":g=>this.requiredResponse(this.getNavigateToItems(g.arguments,!1)),brace:g=>this.requiredResponse(this.getBraceMatching(g.arguments,!0)),"brace-full":g=>this.requiredResponse(this.getBraceMatching(g.arguments,!1)),navbar:g=>this.requiredResponse(this.getNavigationBarItems(g.arguments,!0)),"navbar-full":g=>this.requiredResponse(this.getNavigationBarItems(g.arguments,!1)),navtree:g=>this.requiredResponse(this.getNavigationTree(g.arguments,!0)),"navtree-full":g=>this.requiredResponse(this.getNavigationTree(g.arguments,!1)),documentHighlights:g=>this.requiredResponse(this.getDocumentHighlights(g.arguments,!0)),"documentHighlights-full":g=>this.requiredResponse(this.getDocumentHighlights(g.arguments,!1)),compilerOptionsForInferredProjects:g=>(this.setCompilerOptionsForInferredProjects(g.arguments),this.requiredResponse(!0)),projectInfo:g=>this.requiredResponse(this.getProjectInfo(g.arguments)),reloadProjects:g=>(this.projectService.reloadProjects(),this.notRequired(g)),jsxClosingTag:g=>this.requiredResponse(this.getJsxClosingTag(g.arguments)),linkedEditingRange:g=>this.requiredResponse(this.getLinkedEditingRange(g.arguments)),getCodeFixes:g=>this.requiredResponse(this.getCodeFixes(g.arguments,!0)),"getCodeFixes-full":g=>this.requiredResponse(this.getCodeFixes(g.arguments,!1)),getCombinedCodeFix:g=>this.requiredResponse(this.getCombinedCodeFix(g.arguments,!0)),"getCombinedCodeFix-full":g=>this.requiredResponse(this.getCombinedCodeFix(g.arguments,!1)),applyCodeActionCommand:g=>this.requiredResponse(this.applyCodeActionCommand(g.arguments)),getSupportedCodeFixes:g=>this.requiredResponse(this.getSupportedCodeFixes(g.arguments)),getApplicableRefactors:g=>this.requiredResponse(this.getApplicableRefactors(g.arguments)),getEditsForRefactor:g=>this.requiredResponse(this.getEditsForRefactor(g.arguments,!0)),getMoveToRefactoringFileSuggestions:g=>this.requiredResponse(this.getMoveToRefactoringFileSuggestions(g.arguments)),getPasteEdits:g=>this.requiredResponse(this.getPasteEdits(g.arguments)),"getEditsForRefactor-full":g=>this.requiredResponse(this.getEditsForRefactor(g.arguments,!1)),organizeImports:g=>this.requiredResponse(this.organizeImports(g.arguments,!0)),"organizeImports-full":g=>this.requiredResponse(this.organizeImports(g.arguments,!1)),getEditsForFileRename:g=>this.requiredResponse(this.getEditsForFileRename(g.arguments,!0)),"getEditsForFileRename-full":g=>this.requiredResponse(this.getEditsForFileRename(g.arguments,!1)),configurePlugin:g=>(this.configurePlugin(g.arguments),this.notRequired(g)),selectionRange:g=>this.requiredResponse(this.getSmartSelectionRange(g.arguments,!0)),"selectionRange-full":g=>this.requiredResponse(this.getSmartSelectionRange(g.arguments,!1)),prepareCallHierarchy:g=>this.requiredResponse(this.prepareCallHierarchy(g.arguments)),provideCallHierarchyIncomingCalls:g=>this.requiredResponse(this.provideCallHierarchyIncomingCalls(g.arguments)),provideCallHierarchyOutgoingCalls:g=>this.requiredResponse(this.provideCallHierarchyOutgoingCalls(g.arguments)),toggleLineComment:g=>this.requiredResponse(this.toggleLineComment(g.arguments,!0)),"toggleLineComment-full":g=>this.requiredResponse(this.toggleLineComment(g.arguments,!1)),toggleMultilineComment:g=>this.requiredResponse(this.toggleMultilineComment(g.arguments,!0)),"toggleMultilineComment-full":g=>this.requiredResponse(this.toggleMultilineComment(g.arguments,!1)),commentSelection:g=>this.requiredResponse(this.commentSelection(g.arguments,!0)),"commentSelection-full":g=>this.requiredResponse(this.commentSelection(g.arguments,!1)),uncommentSelection:g=>this.requiredResponse(this.uncommentSelection(g.arguments,!0)),"uncommentSelection-full":g=>this.requiredResponse(this.uncommentSelection(g.arguments,!1)),provideInlayHints:g=>this.requiredResponse(this.provideInlayHints(g.arguments)),mapCode:g=>this.requiredResponse(this.mapCode(g.arguments))})),this.host=n.host,this.cancellationToken=n.cancellationToken,this.typingsInstaller=n.typingsInstaller||Pve,this.byteLength=n.byteLength,this.hrtime=n.hrtime,this.logger=n.logger,this.canUseEvents=n.canUseEvents,this.suppressDiagnosticEvents=n.suppressDiagnosticEvents,this.noGetErrOnBackgroundUpdate=n.noGetErrOnBackgroundUpdate;let{throttleWaitMilliseconds:a}=n;this.eventHandler=this.canUseEvents?n.eventHandler||(g=>this.defaultEventHandler(g)):void 0;let u={executeWithRequestId:(g,v,x)=>this.executeWithRequestId(g,v,x),getCurrentRequestId:()=>this.currentRequestId,getPerformanceData:()=>this.performanceData,getServerHost:()=>this.host,logError:(g,v)=>this.logError(g,v),sendRequestCompletedEvent:(g,v)=>this.sendRequestCompletedEvent(g,v),isCancellationRequested:()=>this.cancellationToken.isCancellationRequested()};this.errorCheck=new kBe(u);let m={host:this.host,logger:this.logger,cancellationToken:this.cancellationToken,useSingleInferredProject:n.useSingleInferredProject,useInferredProjectPerProjectRoot:n.useInferredProjectPerProjectRoot,typingsInstaller:this.typingsInstaller,throttleWaitMilliseconds:a,eventHandler:this.eventHandler,suppressDiagnosticEvents:this.suppressDiagnosticEvents,globalPlugins:n.globalPlugins,pluginProbeLocations:n.pluginProbeLocations,allowLocalPluginLoads:n.allowLocalPluginLoads,typesMapLocation:n.typesMapLocation,serverMode:n.serverMode,session:this,canUseWatchEvents:n.canUseWatchEvents,incrementalVerifier:n.incrementalVerifier};switch(this.projectService=new aAe(m),this.projectService.setPerformanceEventHandler(this.performanceEventHandler.bind(this)),this.gcTimer=new KNe(this.host,7e3,this.logger),this.projectService.serverMode){case 0:break;case 1:fP.forEach(g=>this.handlers.set(g,v=>{throw new Error(`Request: ${v.command} not allowed in LanguageServiceMode.PartialSemantic`)}));break;case 2:zot.forEach(g=>this.handlers.set(g,v=>{throw new Error(`Request: ${v.command} not allowed in LanguageServiceMode.Syntactic`)}));break;default:Se.assertNever(this.projectService.serverMode)}}sendRequestCompletedEvent(n,a){this.event({request_seq:n,performanceData:a&&Vot(a)},"requestCompleted")}addPerformanceData(n,a){this.performanceData||(this.performanceData={}),this.performanceData[n]=(this.performanceData[n]??0)+a}addDiagnosticsPerformanceData(n,a,u){var m,g;this.performanceData||(this.performanceData={});let v=(m=this.performanceData.diagnosticsDuration)==null?void 0:m.get(n);v||((g=this.performanceData).diagnosticsDuration??(g.diagnosticsDuration=new Map)).set(n,v={}),v[a]=u}performanceEventHandler(n){switch(n.kind){case"UpdateGraph":this.addPerformanceData("updateGraphDurationMs",n.durationMs);break;case"CreatePackageJsonAutoImportProvider":this.addPerformanceData("createAutoImportProviderProgramDurationMs",n.durationMs);break}}defaultEventHandler(n){switch(n.eventName){case Mie:this.projectsUpdatedInBackgroundEvent(n.data.openFiles);break;case fue:this.event({projectName:n.data.project.getProjectName(),reason:n.data.reason},n.eventName);break;case _ue:this.event({projectName:n.data.project.getProjectName()},n.eventName);break;case pue:case gue:case yue:case iAe:this.event(n.data,n.eventName);break;case mue:this.event({triggerFile:n.data.triggerFile,configFile:n.data.configFileName,diagnostics:$i(n.data.diagnostics,a=>jie(a,!0))},n.eventName);break;case hue:{this.event({projectName:n.data.project.getProjectName(),languageServiceEnabled:n.data.languageServiceEnabled},n.eventName);break}case Eve:{this.event({telemetryEventName:n.eventName,payload:n.data},"telemetry");break}}}projectsUpdatedInBackgroundEvent(n){this.projectService.logger.info(`got projects updated in background ${n}`),n.length&&(!this.suppressDiagnosticEvents&&!this.noGetErrOnBackgroundUpdate&&(this.projectService.logger.info(`Queueing diagnostics update for ${n}`),this.errorCheck.startNew(a=>this.updateErrorCheck(a,n,100,!0))),this.event({openFiles:n},Mie))}logError(n,a){this.logErrorWorker(n,a)}logErrorWorker(n,a,u){let m="Exception on executing command "+a;if(n.message&&(m+=`: +`+Dte(n.message),n.stack&&(m+=` +`+Dte(n.stack))),this.logger.hasLevel(3)){if(u)try{let{file:g,project:v}=this.getFileAndProject(u),x=v.getScriptInfoForNormalizedPath(g);if(x){let k=PM(x.getSnapshot());m+=` + +File text of ${u.file}:${Dte(k)} +`}}catch{}if(n.ProgramFiles){m+=` + +Program files: ${JSON.stringify(n.ProgramFiles)} +`,m+=` + +Projects:: +`;let g=0,v=x=>{m+=` +Project '${x.projectName}' (${kve[x.projectKind]}) ${g} +`,m+=x.filesToString(!0),m+=` +----------------------------------------------- +`,g++};this.projectService.externalProjects.forEach(v),this.projectService.configuredProjects.forEach(v),this.projectService.inferredProjects.forEach(v)}}this.logger.msg(m,"Err")}send(n){if(n.type==="event"&&!this.canUseEvents){this.logger.hasLevel(3)&&this.logger.info(`Session does not support events: ignored event: ${EM(n)}`);return}this.writeMessage(n)}writeMessage(n){let a=Bot(n,this.logger,this.byteLength,this.host.newLine);this.host.write(a)}event(n,a){this.send(jot(a,n))}doOutput(n,a,u,m,g,v){let x={seq:0,type:"response",command:a,request_seq:u,success:m,performanceData:g&&Vot(g)};if(m){let k;if(ua(n))x.body=n,k=n.metadata,delete n.metadata;else if(typeof n=="object")if(n.metadata){let{metadata:T,...I}=n;x.body=I,k=T}else x.body=n;else x.body=n;k&&(x.metadata=k)}else Se.assert(n===void 0);v&&(x.message=v),this.send(x)}semanticCheck(n,a){var u,m;let g=mm();(u=us)==null||u.push(us.Phase.Session,"semanticCheck",{file:n,configFilePath:a.canonicalConfigFilePath});let v=lAe(a,n)?Cd:a.getLanguageService().getSemanticDiagnostics(n).filter(x=>!!x.file);this.sendDiagnosticsEvent(n,a,v,"semanticDiag",g),(m=us)==null||m.pop()}syntacticCheck(n,a){var u,m;let g=mm();(u=us)==null||u.push(us.Phase.Session,"syntacticCheck",{file:n,configFilePath:a.canonicalConfigFilePath}),this.sendDiagnosticsEvent(n,a,a.getLanguageService().getSyntacticDiagnostics(n),"syntaxDiag",g),(m=us)==null||m.pop()}suggestionCheck(n,a){var u,m;let g=mm();(u=us)==null||u.push(us.Phase.Session,"suggestionCheck",{file:n,configFilePath:a.canonicalConfigFilePath}),this.sendDiagnosticsEvent(n,a,a.getLanguageService().getSuggestionDiagnostics(n),"suggestionDiag",g),(m=us)==null||m.pop()}regionSemanticCheck(n,a,u){var m,g,v;let x=mm();(m=us)==null||m.push(us.Phase.Session,"regionSemanticCheck",{file:n,configFilePath:a.canonicalConfigFilePath});let k;if(!this.shouldDoRegionCheck(n)||!(k=a.getLanguageService().getRegionSemanticDiagnostics(n,u))){(g=us)==null||g.pop();return}this.sendDiagnosticsEvent(n,a,k.diagnostics,"regionSemanticDiag",x,k.spans),(v=us)==null||v.pop()}shouldDoRegionCheck(n){var a;let u=(a=this.projectService.getScriptInfoForNormalizedPath(n))==null?void 0:a.textStorage.getLineInfo().getLineCount();return!!(u&&u>=this.regionDiagLineCountThreshold)}sendDiagnosticsEvent(n,a,u,m,g,v){try{let x=Se.checkDefined(a.getScriptInfo(n)),k=mm()-g,T={file:n,diagnostics:u.map(I=>Sue(n,a,I)),spans:v?.map(I=>_P(I,x))};this.event(T,m),this.addDiagnosticsPerformanceData(n,m,k)}catch(x){this.logError(x,m)}}updateErrorCheck(n,a,u,m=!0){if(a.length===0)return;Se.assert(!this.suppressDiagnosticEvents);let g=this.changeSeq,v=Math.min(u,200),x=0,k=()=>{if(x++,a.length>x)return n.delay("checkOne",v,I)},T=(A,M)=>{if(this.semanticCheck(A,M),this.changeSeq===g){if(this.getPreferences(A).disableSuggestions)return k();n.immediate("suggestionCheck",()=>{this.suggestionCheck(A,M),k()})}},I=()=>{if(this.changeSeq!==g)return;let A,M=a[x];if(Yu(M)?M=this.toPendingErrorCheck(M):"ranges"in M&&(A=M.ranges,M=this.toPendingErrorCheck(M.file)),!M)return k();let{fileName:R,project:H}=M;if(o2(H),!!H.containsFile(R,m)&&(this.syntacticCheck(R,H),this.changeSeq===g)){if(H.projectService.serverMode!==0)return k();if(A)return n.immediate("regionSemanticCheck",()=>{let U=this.projectService.getScriptInfoForNormalizedPath(R);U&&this.regionSemanticCheck(R,H,A.map($=>this.getRange({file:R,...$},U))),this.changeSeq===g&&n.immediate("semanticCheck",()=>T(R,H))});n.immediate("semanticCheck",()=>T(R,H))}};a.length>x&&this.changeSeq===g&&n.delay("checkOne",u,I)}cleanProjects(n,a){if(a){this.logger.info(`cleaning ${n}`);for(let u of a)u.getLanguageService(!1).cleanupSemanticCache(),u.cleanupProgram()}}cleanup(){this.cleanProjects("inferred projects",this.projectService.inferredProjects),this.cleanProjects("configured projects",tc(this.projectService.configuredProjects.values())),this.cleanProjects("external projects",this.projectService.externalProjects),this.host.gc&&(this.logger.info("host.gc()"),this.host.gc())}getEncodedSyntacticClassifications(n){let{file:a,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(n);return u.getEncodedSyntacticClassifications(a,n)}getEncodedSemanticClassifications(n){let{file:a,project:u}=this.getFileAndProject(n),m=n.format==="2020"?"2020":"original";return u.getLanguageService().getEncodedSemanticClassifications(a,n,m)}getProject(n){return n===void 0?void 0:this.projectService.findProject(n)}getConfigFileAndProject(n){let a=this.getProject(n.projectFileName),u=Zm(n.file);return{configFile:a&&a.hasConfigFile(u)?u:void 0,project:a}}getConfigFileDiagnostics(n,a,u){let m=a.getAllProjectErrors(),g=a.getLanguageService().getCompilerOptionsDiagnostics(),v=Qn(Pl(m,g),x=>!!x.file&&x.file.fileName===n);return u?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(v):$i(v,x=>jie(x,!1))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(n){return n.map(a=>({message:wN(a.messageText,this.host.newLine),start:a.start,length:a.length,category:e5(a),code:a.code,source:a.source,startLocation:a.file&&VX(Df(a.file,a.start)),endLocation:a.file&&VX(Df(a.file,a.start+a.length)),reportsUnnecessary:a.reportsUnnecessary,reportsDeprecated:a.reportsDeprecated,relatedInformation:$i(a.relatedInformation,xBe)}))}getCompilerOptionsDiagnostics(n){let a=this.getProject(n.projectFileName);return this.convertToDiagnosticsWithLinePosition(Qn(a.getLanguageService().getCompilerOptionsDiagnostics(),u=>!u.file),void 0)}convertToDiagnosticsWithLinePosition(n,a){return n.map(u=>({message:wN(u.messageText,this.host.newLine),start:u.start,length:u.length,category:e5(u),code:u.code,source:u.source,startLocation:a&&a.positionToLineOffset(u.start),endLocation:a&&a.positionToLineOffset(u.start+u.length),reportsUnnecessary:u.reportsUnnecessary,reportsDeprecated:u.reportsDeprecated,relatedInformation:$i(u.relatedInformation,xBe)}))}getDiagnosticsWorker(n,a,u,m){let{project:g,file:v}=this.getFileAndProject(n);if(a&&lAe(g,v))return Cd;let x=g.getScriptInfoForNormalizedPath(v),k=u(g,v);return m?this.convertToDiagnosticsWithLinePosition(k,x):k.map(T=>Sue(v,g,T))}getDefinition(n,a){let{file:u,project:m}=this.getFileAndProject(n),g=this.getPositionInFile(n,u),v=this.mapDefinitionInfoLocations(m.getLanguageService().getDefinitionAtPosition(u,g)||Cd,m);return a?this.mapDefinitionInfo(v,m):v.map(UEt.mapToOriginalLocation)}mapDefinitionInfoLocations(n,a){return n.map(u=>{let m=qCt(u,a);return m?{...m,containerKind:u.containerKind,containerName:u.containerName,kind:u.kind,name:u.name,failedAliasResolution:u.failedAliasResolution,...u.unverified&&{unverified:u.unverified}}:u})}getDefinitionAndBoundSpan(n,a){let{file:u,project:m}=this.getFileAndProject(n),g=this.getPositionInFile(n,u),v=Se.checkDefined(m.getScriptInfo(u)),x=m.getLanguageService().getDefinitionAndBoundSpan(u,g);if(!x||!x.definitions)return{definitions:Cd,textSpan:void 0};let k=this.mapDefinitionInfoLocations(x.definitions,m),{textSpan:T}=x;return a?{definitions:this.mapDefinitionInfo(k,m),textSpan:_P(T,v)}:{definitions:k.map(UEt.mapToOriginalLocation),textSpan:T}}findSourceDefinition(n){var a;let{file:u,project:m}=this.getFileAndProject(n),g=this.getPositionInFile(n,u),v=m.getLanguageService().getDefinitionAtPosition(u,g),x=this.mapDefinitionInfoLocations(v||Cd,m).slice();if(this.projectService.serverMode===0&&(!En(x,R=>Zm(R.fileName)!==u&&!R.isAmbient)||En(x,R=>!!R.failedAliasResolution))){let R=yoe(K=>K.textSpan.start,tz(this.host.useCaseSensitiveFileNames));x?.forEach(K=>R.add(K));let H=m.getNoDtsResolutionProject(u),U=H.getLanguageService(),$=(a=U.getDefinitionAtPosition(u,g,!0,!1))==null?void 0:a.filter(K=>Zm(K.fileName)!==u);if(En($))for(let K of $){if(K.unverified){let re=A(K,m.getLanguageService().getProgram(),U.getProgram());if(En(re)){for(let X of re)R.add(X);continue}}R.add(K)}else{let K=x.filter(re=>Zm(re.fileName)!==u&&re.isAmbient);for(let re of En(K)?K:I()){let X=T(re.fileName,u,H);if(!X)continue;let ne=this.projectService.getOrCreateScriptInfoNotOpenedByClient(X,H.currentDirectory,H.directoryStructureHost,!1);if(!ne)continue;H.containsScriptInfo(ne)||(H.addRoot(ne),H.updateGraph());let se=U.getProgram(),_e=Se.checkDefined(se.getSourceFile(X));for(let ae of M(re.name,_e,se))R.add(ae)}}x=tc(R.values())}return x=x.filter(R=>!R.isAmbient&&!R.failedAliasResolution),this.mapDefinitionInfo(x,m);function T(R,H,U){var $,K,re;let X=Kj(R);if(X&&R.lastIndexOf(nP)===X.topLevelNodeModulesIndex){let ne=R.substring(0,X.packageRootIndex),se=($=m.getModuleResolutionCache())==null?void 0:$.getPackageJsonInfoCache(),_e=m.getCompilationSettings(),ae=Vee(tu(ne,m.getCurrentDirectory()),e9(se,m,_e));if(!ae)return;let le=CN(ae,{moduleResolution:2},m,m.getModuleResolutionCache()),Ee=R.substring(X.topLevelPackageNameIndex+1,X.packageRootIndex),xe=qee(xW(Ee)),be=m.toPath(R);if(le&&En(le,Le=>m.toPath(Le)===be))return(K=U.resolutionCache.resolveSingleModuleNameWithoutWatching(xe,H).resolvedModule)==null?void 0:K.resolvedFileName;{let Le=R.substring(X.packageRootIndex+1),fe=`${xe}/${Qx(Le)}`;return(re=U.resolutionCache.resolveSingleModuleNameWithoutWatching(fe,H).resolvedModule)==null?void 0:re.resolvedFileName}}}function I(){let R=m.getLanguageService(),H=R.getProgram(),U=VS(H.getSourceFile(u),g);return(i_(U)||Ai(U))&&cf(U.parent)&&N4(U,$=>{var K;if($===U)return;let re=(K=R.getDefinitionAtPosition(u,$.getStart(),!0,!1))==null?void 0:K.filter(X=>Zm(X.fileName)!==u&&X.isAmbient).map(X=>({fileName:X.fileName,name:jC(U)}));if(En(re))return re})||Cd}function A(R,H,U){var $;let K=U.getSourceFile(R.fileName);if(!K)return;let re=VS(H.getSourceFile(u),g),X=H.getTypeChecker().getSymbolAtLocation(re),ne=X&&Kp(X,276);if(!ne)return;let se=(($=ne.propertyName)==null?void 0:$.text)||ne.name.text;return M(se,K,U)}function M(R,H,U){let $=Wm.Core.getTopMostDeclarationNamesInFile(R,H);return Dc($,K=>{let re=U.getTypeChecker().getSymbolAtLocation(K),X=F_(K);if(re&&X)return Cie.createDefinitionInfo(X,U.getTypeChecker(),re,X,!0)})}}getEmitOutput(n){let{file:a,project:u}=this.getFileAndProject(n);if(!u.shouldEmitFile(u.getScriptInfo(a)))return{emitSkipped:!0,outputFiles:[],diagnostics:[]};let m=u.getLanguageService().getEmitOutput(a);return n.richResponse?{...m,diagnostics:n.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(m.diagnostics):m.diagnostics.map(g=>jie(g,!0))}:m}mapJSDocTagInfo(n,a,u){return n?n.map(m=>{var g;return{...m,text:u?this.mapDisplayParts(m.text,a):(g=m.text)==null?void 0:g.map(v=>v.text).join("")}}):[]}mapDisplayParts(n,a){return n?n.map(u=>u.kind!=="linkName"?u:{...u,target:this.toFileSpan(u.target.fileName,u.target.textSpan,a)}):[]}mapSignatureHelpItems(n,a,u){return n.map(m=>({...m,documentation:this.mapDisplayParts(m.documentation,a),parameters:m.parameters.map(g=>({...g,documentation:this.mapDisplayParts(g.documentation,a)})),tags:this.mapJSDocTagInfo(m.tags,a,u)}))}mapDefinitionInfo(n,a){return n.map(u=>({...this.toFileSpanWithContext(u.fileName,u.textSpan,u.contextSpan,a),...u.unverified&&{unverified:u.unverified}}))}static mapToOriginalLocation(n){return n.originalFileName?(Se.assert(n.originalTextSpan!==void 0,"originalTextSpan should be present if originalFileName is"),{...n,fileName:n.originalFileName,textSpan:n.originalTextSpan,targetFileName:n.fileName,targetTextSpan:n.textSpan,contextSpan:n.originalContextSpan,targetContextSpan:n.contextSpan}):n}toFileSpan(n,a,u){let m=u.getLanguageService(),g=m.toLineColumnOffset(n,a.start),v=m.toLineColumnOffset(n,ag(a));return{file:n,start:{line:g.line+1,offset:g.character+1},end:{line:v.line+1,offset:v.character+1}}}toFileSpanWithContext(n,a,u,m){let g=this.toFileSpan(n,a,m),v=u&&this.toFileSpan(n,u,m);return v?{...g,contextStart:v.start,contextEnd:v.end}:g}getTypeDefinition(n){let{file:a,project:u}=this.getFileAndProject(n),m=this.getPositionInFile(n,a),g=this.mapDefinitionInfoLocations(u.getLanguageService().getTypeDefinitionAtPosition(a,m)||Cd,u);return this.mapDefinitionInfo(g,u)}mapImplementationLocations(n,a){return n.map(u=>{let m=qCt(u,a);return m?{...m,kind:u.kind,displayParts:u.displayParts}:u})}getImplementation(n,a){let{file:u,project:m}=this.getFileAndProject(n),g=this.getPositionInFile(n,u),v=this.mapImplementationLocations(m.getLanguageService().getImplementationAtPosition(u,g)||Cd,m);return a?v.map(({fileName:x,textSpan:k,contextSpan:T})=>this.toFileSpanWithContext(x,k,T,m)):v.map(UEt.mapToOriginalLocation)}getSyntacticDiagnosticsSync(n){let{configFile:a}=this.getConfigFileAndProject(n);return a?Cd:this.getDiagnosticsWorker(n,!1,(u,m)=>u.getLanguageService().getSyntacticDiagnostics(m),!!n.includeLinePosition)}getSemanticDiagnosticsSync(n){let{configFile:a,project:u}=this.getConfigFileAndProject(n);return a?this.getConfigFileDiagnostics(a,u,!!n.includeLinePosition):this.getDiagnosticsWorker(n,!0,(m,g)=>m.getLanguageService().getSemanticDiagnostics(g).filter(v=>!!v.file),!!n.includeLinePosition)}getSuggestionDiagnosticsSync(n){let{configFile:a}=this.getConfigFileAndProject(n);return a?Cd:this.getDiagnosticsWorker(n,!0,(u,m)=>u.getLanguageService().getSuggestionDiagnostics(m),!!n.includeLinePosition)}getJsxClosingTag(n){let{file:a,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(n),m=this.getPositionInFile(n,a),g=u.getJsxClosingTagAtPosition(a,m);return g===void 0?void 0:{newText:g.newText,caretOffset:0}}getLinkedEditingRange(n){let{file:a,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(n),m=this.getPositionInFile(n,a),g=u.getLinkedEditingRangeAtPosition(a,m),v=this.projectService.getScriptInfoForNormalizedPath(a);if(!(v===void 0||g===void 0))return gJt(g,v)}getDocumentHighlights(n,a){let{file:u,project:m}=this.getFileAndProject(n),g=this.getPositionInFile(n,u),v=m.getLanguageService().getDocumentHighlights(u,g,n.filesToSearch);return v?a?v.map(({fileName:x,highlightSpans:k})=>{let T=m.getScriptInfo(x);return{file:x,highlightSpans:k.map(({textSpan:I,kind:A,contextSpan:M})=>({...Hot(I,M,T),kind:A}))}}):v:Cd}provideInlayHints(n){let{file:a,project:u}=this.getFileAndProject(n),m=this.projectService.getScriptInfoForNormalizedPath(a);return u.getLanguageService().provideInlayHints(a,n,this.getPreferences(a)).map(v=>{let{position:x,displayParts:k}=v;return{...v,position:m.positionToLineOffset(x),displayParts:k?.map(({text:T,span:I,file:A})=>{if(I){Se.assertIsDefined(A,"Target file should be defined together with its span.");let M=this.projectService.getScriptInfo(A);return{text:T,span:{start:M.positionToLineOffset(I.start),end:M.positionToLineOffset(I.start+I.length),file:A}}}else return{text:T}})}})}mapCode(n){var a;let u=this.getHostFormatOptions(),m=this.getHostPreferences(),{file:g,languageService:v}=this.getFileAndLanguageServiceForSyntacticOperation(n),x=this.projectService.getScriptInfoForNormalizedPath(g),k=(a=n.mapping.focusLocations)==null?void 0:a.map(I=>I.map(A=>{let M=x.lineOffsetToPosition(A.start.line,A.start.offset),R=x.lineOffsetToPosition(A.end.line,A.end.offset);return{start:M,length:R-M}})),T=v.mapCode(g,n.mapping.contents,k,u,m);return this.mapTextChangesToCodeEdits(T)}setCompilerOptionsForInferredProjects(n){this.projectService.setCompilerOptionsForInferredProjects(n.options,n.projectRootPath)}getProjectInfo(n){return this.getProjectInfoWorker(n.file,n.projectFileName,n.needFileNameList,!1)}getProjectInfoWorker(n,a,u,m){let{project:g}=this.getFileAndProjectWorker(n,a);return o2(g),{configFileName:g.getProjectName(),languageServiceDisabled:!g.languageServiceEnabled,fileNames:u?g.getFileNames(!1,m):void 0}}getRenameInfo(n){let{file:a,project:u}=this.getFileAndProject(n),m=this.getPositionInFile(n,a),g=this.getPreferences(a);return u.getLanguageService().getRenameInfo(a,m,g)}getProjects(n,a,u){let m,g;if(n.projectFileName){let v=this.getProject(n.projectFileName);v&&(m=[v])}else{let v=a?this.projectService.getScriptInfoEnsuringProjectsUptoDate(n.file):this.projectService.getScriptInfo(n.file);if(v)a||this.projectService.ensureDefaultProjectForFile(v);else return u?Cd:(this.projectService.logErrorForScriptInfoNotFound(n.file),TL.ThrowNoProject());m=v.containingProjects,g=this.projectService.getSymlinkedProjects(v)}return m=Qn(m,v=>v.languageServiceEnabled&&!v.isOrphan()),!u&&(!m||!m.length)&&!g?(this.projectService.logErrorForScriptInfoNotFound(n.file??n.projectFileName),TL.ThrowNoProject()):g?{projects:m,symLinkedProjects:g}:m}getDefaultProject(n){if(n.projectFileName){let u=this.getProject(n.projectFileName);if(u)return u;if(!n.file)return TL.ThrowNoProject()}return this.projectService.getScriptInfo(n.file).getDefaultProject()}getRenameLocations(n,a){let u=Zm(n.file),m=this.getPositionInFile(n,u),g=this.getProjects(n),v=this.getDefaultProject(n),x=this.getPreferences(u),k=this.mapRenameInfo(v.getLanguageService().getRenameInfo(u,m,x),Se.checkDefined(this.projectService.getScriptInfo(u)));if(!k.canRename)return a?{info:k,locs:[]}:[];let T=Wot(g,v,{fileName:n.file,pos:m},!!n.findInStrings,!!n.findInComments,x,this.host.useCaseSensitiveFileNames);return a?{info:k,locs:this.toSpanGroups(T)}:T}mapRenameInfo(n,a){if(n.canRename){let{canRename:u,fileToRename:m,displayName:g,fullDisplayName:v,kind:x,kindModifiers:k,triggerSpan:T}=n;return{canRename:u,fileToRename:m,displayName:g,fullDisplayName:v,kind:x,kindModifiers:k,triggerSpan:_P(T,a)}}else return n}toSpanGroups(n){let a=new Map;for(let{fileName:u,textSpan:m,contextSpan:g,originalContextSpan:v,originalTextSpan:x,originalFileName:k,...T}of n){let I=a.get(u);I||a.set(u,I={file:u,locs:[]});let A=Se.checkDefined(this.projectService.getScriptInfo(u));I.locs.push({...Hot(m,g,A),...T})}return tc(a.values())}getReferences(n,a){let u=Zm(n.file),m=this.getProjects(n),g=this.getPositionInFile(n,u),v=mJt(m,this.getDefaultProject(n),{fileName:n.file,pos:g},this.host.useCaseSensitiveFileNames,this.logger);if(!a)return v;let x=this.getPreferences(u),k=this.getDefaultProject(n),T=k.getScriptInfoForNormalizedPath(u),I=k.getLanguageService().getQuickInfoAtPosition(u,g),A=I?lz(I.displayParts):"",M=I&&I.textSpan,R=M?T.positionToLineOffset(M.start).offset:0,H=M?T.getSnapshot().getText(M.start,ag(M)):"";return{refs:za(v,$=>$.references.map(K=>DBe(this.projectService,K,x))),symbolName:H,symbolStartOffset:R,symbolDisplayString:A}}getFileReferences(n,a){let u=this.getProjects(n),m=n.file,g=this.getPreferences(Zm(m)),v=[],x=wBe(this.host.useCaseSensitiveFileNames);return TBe(u,void 0,T=>{if(T.getCancellationToken().isCancellationRequested())return;let I=T.getLanguageService().getFileReferences(m);if(I)for(let A of I)x.has(A)||(v.push(A),x.add(A))}),a?{refs:v.map(T=>DBe(this.projectService,T,g)),symbolName:`"${n.file}"`}:v}openClientFile(n,a,u,m){this.projectService.openClientFileWithNormalizedPath(n,a,u,!1,m)}getPosition(n,a){return n.position!==void 0?n.position:a.lineOffsetToPosition(n.line,n.offset)}getPositionInFile(n,a){let u=this.projectService.getScriptInfoForNormalizedPath(a);return this.getPosition(n,u)}getFileAndProject(n){return this.getFileAndProjectWorker(n.file,n.projectFileName)}getFileAndLanguageServiceForSyntacticOperation(n){let{file:a,project:u}=this.getFileAndProject(n);return{file:a,languageService:u.getLanguageService(!1)}}getFileAndProjectWorker(n,a){let u=Zm(n),m=this.getProject(a)||this.projectService.ensureDefaultProjectForFile(u);return{file:u,project:m}}getOutliningSpans(n,a){let{file:u,languageService:m}=this.getFileAndLanguageServiceForSyntacticOperation(n),g=m.getOutliningSpans(u);if(a){let v=this.projectService.getScriptInfoForNormalizedPath(u);return g.map(x=>({textSpan:_P(x.textSpan,v),hintSpan:_P(x.hintSpan,v),bannerText:x.bannerText,autoCollapse:x.autoCollapse,kind:x.kind}))}else return g}getTodoComments(n){let{file:a,project:u}=this.getFileAndProject(n);return u.getLanguageService().getTodoComments(a,n.descriptors)}getDocCommentTemplate(n){let{file:a,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(n),m=this.getPositionInFile(n,a);return u.getDocCommentTemplateAtPosition(a,m,this.getPreferences(a),this.getFormatOptions(a))}getSpanOfEnclosingComment(n){let{file:a,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(n),m=n.onlyMultiLine,g=this.getPositionInFile(n,a);return u.getSpanOfEnclosingComment(a,g,m)}getIndentation(n){let{file:a,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(n),m=this.getPositionInFile(n,a),g=n.options?L9(n.options):this.getFormatOptions(a),v=u.getIndentationAtPosition(a,m,g);return{position:m,indentation:v}}getBreakpointStatement(n){let{file:a,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(n),m=this.getPositionInFile(n,a);return u.getBreakpointStatementAtPosition(a,m)}getNameOrDottedNameSpan(n){let{file:a,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(n),m=this.getPositionInFile(n,a);return u.getNameOrDottedNameSpan(a,m,m)}isValidBraceCompletion(n){let{file:a,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(n),m=this.getPositionInFile(n,a);return u.isValidBraceCompletionAtPosition(a,m,n.openingBrace.charCodeAt(0))}getQuickInfoWorker(n,a){let{file:u,project:m}=this.getFileAndProject(n),g=this.projectService.getScriptInfoForNormalizedPath(u),v=m.getLanguageService().getQuickInfoAtPosition(u,this.getPosition(n,g));if(!v)return;let x=!!this.getPreferences(u).displayPartsForJSDoc;if(a){let k=lz(v.displayParts);return{kind:v.kind,kindModifiers:v.kindModifiers,start:g.positionToLineOffset(v.textSpan.start),end:g.positionToLineOffset(ag(v.textSpan)),displayString:k,documentation:x?this.mapDisplayParts(v.documentation,m):lz(v.documentation),tags:this.mapJSDocTagInfo(v.tags,m,x)}}else return x?v:{...v,tags:this.mapJSDocTagInfo(v.tags,m,!1)}}getFormattingEditsForRange(n){let{file:a,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(n),m=this.projectService.getScriptInfoForNormalizedPath(a),g=m.lineOffsetToPosition(n.line,n.offset),v=m.lineOffsetToPosition(n.endLine,n.endOffset),x=u.getFormattingEditsForRange(a,g,v,this.getFormatOptions(a));if(x)return x.map(k=>this.convertTextChangeToCodeEdit(k,m))}getFormattingEditsForRangeFull(n){let{file:a,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(n),m=n.options?L9(n.options):this.getFormatOptions(a);return u.getFormattingEditsForRange(a,n.position,n.endPosition,m)}getFormattingEditsForDocumentFull(n){let{file:a,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(n),m=n.options?L9(n.options):this.getFormatOptions(a);return u.getFormattingEditsForDocument(a,m)}getFormattingEditsAfterKeystrokeFull(n){let{file:a,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(n),m=n.options?L9(n.options):this.getFormatOptions(a);return u.getFormattingEditsAfterKeystroke(a,n.position,n.key,m)}getFormattingEditsAfterKeystroke(n){let{file:a,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(n),m=this.projectService.getScriptInfoForNormalizedPath(a),g=m.lineOffsetToPosition(n.line,n.offset),v=this.getFormatOptions(a),x=u.getFormattingEditsAfterKeystroke(a,g,n.key,v);if(n.key===` +`&&(!x||x.length===0||_Jt(x,g))){let{lineText:k,absolutePosition:T}=m.textStorage.getAbsolutePositionAndLineText(n.line);if(k&&k.search("\\S")<0){let I=u.getIndentationAtPosition(a,g,v),A=0,M,R;for(M=0,R=k.length;M({start:m.positionToLineOffset(k.span.start),end:m.positionToLineOffset(ag(k.span)),newText:k.newText?k.newText:""}))}getCompletions(n,a){let{file:u,project:m}=this.getFileAndProject(n),g=this.projectService.getScriptInfoForNormalizedPath(u),v=this.getPosition(n,g),x=m.getLanguageService().getCompletionsAtPosition(u,v,{...Ave(this.getPreferences(u)),triggerCharacter:n.triggerCharacter,triggerKind:n.triggerKind,includeExternalModuleExports:n.includeExternalModuleExports,includeInsertTextCompletions:n.includeInsertTextCompletions},m.projectService.getFormatCodeOptions(u));if(x===void 0)return;if(a==="completions-full")return x;let k=n.prefix||"",T=Dc(x.entries,A=>{if(x.isMemberCompletion||xl(A.name.toLowerCase(),k.toLowerCase())){let M=A.replacementSpan?_P(A.replacementSpan,g):void 0;return{...A,replacementSpan:M,hasAction:A.hasAction||void 0,symbol:void 0}}});return a==="completions"?(x.metadata&&(T.metadata=x.metadata),T):{...x,optionalReplacementSpan:x.optionalReplacementSpan&&_P(x.optionalReplacementSpan,g),entries:T}}getCompletionEntryDetails(n,a){let{file:u,project:m}=this.getFileAndProject(n),g=this.projectService.getScriptInfoForNormalizedPath(u),v=this.getPosition(n,g),x=m.projectService.getFormatCodeOptions(u),k=!!this.getPreferences(u).displayPartsForJSDoc,T=Dc(n.entryNames,I=>{let{name:A,source:M,data:R}=typeof I=="string"?{name:I,source:void 0,data:void 0}:I;return m.getLanguageService().getCompletionEntryDetails(u,v,A,x,M,this.getPreferences(u),R?$d(R,bJt):void 0)});return a?k?T:T.map(I=>({...I,tags:this.mapJSDocTagInfo(I.tags,m,!1)})):T.map(I=>({...I,codeActions:$i(I.codeActions,A=>this.mapCodeAction(A)),documentation:this.mapDisplayParts(I.documentation,m),tags:this.mapJSDocTagInfo(I.tags,m,k)}))}getCompileOnSaveAffectedFileList(n){let a=this.getProjects(n,!0,!0),u=this.projectService.getScriptInfo(n.file);return u?pJt(u,m=>this.projectService.getScriptInfoForPath(m),a,(m,g)=>{if(!m.compileOnSaveEnabled||!m.languageServiceEnabled||m.isOrphan())return;let v=m.getCompilationSettings();if(!(v.noEmit||ey(g.fileName)&&!Bie(v)))return{projectFileName:m.getProjectName(),fileNames:m.getCompileOnSaveAffectedFileList(g),projectUsesOutFile:!!v.outFile}}):Cd}emitFile(n){let{file:a,project:u}=this.getFileAndProject(n);if(u||TL.ThrowNoProject(),!u.languageServiceEnabled)return n.richResponse?{emitSkipped:!0,diagnostics:[]}:!1;let m=u.getScriptInfo(a),{emitSkipped:g,diagnostics:v}=u.emitFile(m,(x,k,T)=>this.host.writeFile(x,k,T));return n.richResponse?{emitSkipped:g,diagnostics:n.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(v):v.map(x=>jie(x,!0))}:!g}getSignatureHelpItems(n,a){let{file:u,project:m}=this.getFileAndProject(n),g=this.projectService.getScriptInfoForNormalizedPath(u),v=this.getPosition(n,g),x=m.getLanguageService().getSignatureHelpItems(u,v,n),k=!!this.getPreferences(u).displayPartsForJSDoc;if(x&&a){let T=x.applicableSpan;return{...x,applicableSpan:{start:g.positionToLineOffset(T.start),end:g.positionToLineOffset(T.start+T.length)},items:this.mapSignatureHelpItems(x.items,m,k)}}else return k||!x?x:{...x,items:x.items.map(T=>({...T,tags:this.mapJSDocTagInfo(T.tags,m,!1)}))}}toPendingErrorCheck(n){let a=Zm(n),u=this.projectService.tryGetDefaultProjectForFile(a);return u&&{fileName:a,project:u}}getDiagnostics(n,a,u){this.suppressDiagnosticEvents||u.length>0&&this.updateErrorCheck(n,u,a)}change(n){let a=this.projectService.getScriptInfo(n.file);Se.assert(!!a),a.textStorage.switchToScriptVersionCache();let u=a.lineOffsetToPosition(n.line,n.offset),m=a.lineOffsetToPosition(n.endLine,n.endOffset);u>=0&&(this.changeSeq++,this.projectService.applyChangesToFile(a,Qy({span:{start:u,length:m-u},newText:n.insertString})))}reload(n){let a=Zm(n.file),u=n.tmpfile===void 0?void 0:Zm(n.tmpfile),m=this.projectService.getScriptInfoForNormalizedPath(a);m&&(this.changeSeq++,m.reloadFromFile(u))}saveToTmp(n,a){let u=this.projectService.getScriptInfo(n);u&&u.saveTo(a)}closeClientFile(n){if(!n)return;let a=Kd(n);this.projectService.closeClientFile(a)}mapLocationNavigationBarItems(n,a){return $i(n,u=>({text:u.text,kind:u.kind,kindModifiers:u.kindModifiers,spans:u.spans.map(m=>_P(m,a)),childItems:this.mapLocationNavigationBarItems(u.childItems,a),indent:u.indent}))}getNavigationBarItems(n,a){let{file:u,languageService:m}=this.getFileAndLanguageServiceForSyntacticOperation(n),g=m.getNavigationBarItems(u);return g?a?this.mapLocationNavigationBarItems(g,this.projectService.getScriptInfoForNormalizedPath(u)):g:void 0}toLocationNavigationTree(n,a){return{text:n.text,kind:n.kind,kindModifiers:n.kindModifiers,spans:n.spans.map(u=>_P(u,a)),nameSpan:n.nameSpan&&_P(n.nameSpan,a),childItems:$i(n.childItems,u=>this.toLocationNavigationTree(u,a))}}getNavigationTree(n,a){let{file:u,languageService:m}=this.getFileAndLanguageServiceForSyntacticOperation(n),g=m.getNavigationTree(u);return g?a?this.toLocationNavigationTree(g,this.projectService.getScriptInfoForNormalizedPath(u)):g:void 0}getNavigateToItems(n,a){let u=this.getFullNavigateToItems(n);return a?za(u,({project:m,navigateToItems:g})=>g.map(v=>{let x=m.getScriptInfo(v.fileName),k={name:v.name,kind:v.kind,kindModifiers:v.kindModifiers,isCaseSensitive:v.isCaseSensitive,matchKind:v.matchKind,file:v.fileName,start:x.positionToLineOffset(v.textSpan.start),end:x.positionToLineOffset(ag(v.textSpan))};return v.kindModifiers&&v.kindModifiers!==""&&(k.kindModifiers=v.kindModifiers),v.containerName&&v.containerName.length>0&&(k.containerName=v.containerName),v.containerKind&&v.containerKind.length>0&&(k.containerKind=v.containerKind),k})):za(u,({navigateToItems:m})=>m)}getFullNavigateToItems(n){let{currentFileOnly:a,searchValue:u,maxResultCount:m,projectFileName:g}=n;if(a){Se.assertIsDefined(n.file);let{file:M,project:R}=this.getFileAndProject(n);return[{project:R,navigateToItems:R.getLanguageService().getNavigateToItems(u,m,M)}]}let v=this.getHostPreferences(),x=[],k=new Map;if(!n.file&&!g)this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(M=>T(M));else{let M=this.getProjects(n);TBe(M,void 0,R=>T(R))}return x;function T(M){let R=M.getLanguageService().getNavigateToItems(u,m,void 0,M.isNonTsProject(),v.excludeLibrarySymbolsInNavTo),H=Qn(R,U=>I(U)&&!dAe(Cue(U),M));H.length&&x.push({project:M,navigateToItems:H})}function I(M){let R=M.name;if(!k.has(R))return k.set(R,[M]),!0;let H=k.get(R);for(let U of H)if(A(U,M))return!1;return H.push(M),!0}function A(M,R){return M===R?!0:!M||!R?!1:M.containerKind===R.containerKind&&M.containerName===R.containerName&&M.fileName===R.fileName&&M.isCaseSensitive===R.isCaseSensitive&&M.kind===R.kind&&M.kindModifiers===R.kindModifiers&&M.matchKind===R.matchKind&&M.name===R.name&&M.textSpan.start===R.textSpan.start&&M.textSpan.length===R.textSpan.length}}getSupportedCodeFixes(n){if(!n)return CX();if(n.file){let{file:u,project:m}=this.getFileAndProject(n);return m.getLanguageService().getSupportedCodeFixes(u)}let a=this.getProject(n.projectFileName);return a||TL.ThrowNoProject(),a.getLanguageService().getSupportedCodeFixes()}isLocation(n){return n.line!==void 0}extractPositionOrRange(n,a){let u,m;return this.isLocation(n)?u=g(n):m=this.getRange(n,a),Se.checkDefined(u===void 0?m:u);function g(v){return v.position!==void 0?v.position:a.lineOffsetToPosition(v.line,v.offset)}}getRange(n,a){let{startPosition:u,endPosition:m}=this.getStartAndEndPosition(n,a);return{pos:u,end:m}}getApplicableRefactors(n){let{file:a,project:u}=this.getFileAndProject(n),m=u.getScriptInfoForNormalizedPath(a);return u.getLanguageService().getApplicableRefactors(a,this.extractPositionOrRange(n,m),this.getPreferences(a),n.triggerReason,n.kind,n.includeInteractiveActions).map(v=>({...v,actions:v.actions.map(x=>({...x,range:x.range?{start:VX({line:x.range.start.line,character:x.range.start.offset}),end:VX({line:x.range.end.line,character:x.range.end.offset})}:void 0}))}))}getEditsForRefactor(n,a){let{file:u,project:m}=this.getFileAndProject(n),g=m.getScriptInfoForNormalizedPath(u),v=m.getLanguageService().getEditsForRefactor(u,this.getFormatOptions(u),this.extractPositionOrRange(n,g),n.refactor,n.action,this.getPreferences(u),n.interactiveRefactorArguments);if(v===void 0)return{edits:[]};if(a){let{renameFilename:x,renameLocation:k,edits:T}=v,I;if(x!==void 0&&k!==void 0){let A=m.getScriptInfoForNormalizedPath(Zm(x));I=Uot(PM(A.getSnapshot()),x,k,T)}return{renameLocation:I,renameFilename:x,edits:this.mapTextChangesToCodeEdits(T),notApplicableReason:v.notApplicableReason}}return v}getMoveToRefactoringFileSuggestions(n){let{file:a,project:u}=this.getFileAndProject(n),m=u.getScriptInfoForNormalizedPath(a);return u.getLanguageService().getMoveToRefactoringFileSuggestions(a,this.extractPositionOrRange(n,m),this.getPreferences(a))}getPasteEdits(n){let{file:a,project:u}=this.getFileAndProject(n),m=n.copiedFrom?{file:n.copiedFrom.file,range:n.copiedFrom.spans.map(v=>this.getRange({file:n.copiedFrom.file,startLine:v.start.line,startOffset:v.start.offset,endLine:v.end.line,endOffset:v.end.offset},u.getScriptInfoForNormalizedPath(Zm(n.copiedFrom.file))))}:void 0,g=u.getLanguageService().getPasteEdits({targetFile:a,pastedText:n.pastedText,pasteLocations:n.pasteLocations.map(v=>this.getRange({file:a,startLine:v.start.line,startOffset:v.start.offset,endLine:v.end.line,endOffset:v.end.offset},u.getScriptInfoForNormalizedPath(a))),copiedFrom:m,preferences:this.getPreferences(a)},this.getFormatOptions(a));return g&&this.mapPasteEditsAction(g)}organizeImports(n,a){Se.assert(n.scope.type==="file");let{file:u,project:m}=this.getFileAndProject(n.scope.args),g=m.getLanguageService().organizeImports({fileName:u,mode:n.mode??(n.skipDestructiveCodeActions?"SortAndCombine":void 0),type:"file"},this.getFormatOptions(u),this.getPreferences(u));return a?this.mapTextChangesToCodeEdits(g):g}getEditsForFileRename(n,a){let u=Zm(n.oldFilePath),m=Zm(n.newFilePath),g=this.getHostFormatOptions(),v=this.getHostPreferences(),x=new Set,k=[];return this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(T=>{let I=T.getLanguageService().getEditsForFileRename(u,m,g,v),A=[];for(let M of I)x.has(M.fileName)||(k.push(M),A.push(M.fileName));for(let M of A)x.add(M)}),a?k.map(T=>this.mapTextChangeToCodeEdit(T)):k}getCodeFixes(n,a){let{file:u,project:m}=this.getFileAndProject(n),g=m.getScriptInfoForNormalizedPath(u),{startPosition:v,endPosition:x}=this.getStartAndEndPosition(n,g),k;try{k=m.getLanguageService().getCodeFixesAtPosition(u,v,x,n.errorCodes,this.getFormatOptions(u),this.getPreferences(u))}catch(T){let I=m.getLanguageService(),A=[...I.getSyntacticDiagnostics(u),...I.getSemanticDiagnostics(u),...I.getSuggestionDiagnostics(u)].map(R=>q$(v,x-v,R.start,R.length)&&R.code),M=n.errorCodes.find(R=>!A.includes(R));throw M!==void 0&&(T.message=`BADCLIENT: Bad error code, ${M} not found in range ${v}..${x} (found: ${A.join(", ")}); could have caused this error: +${T.message}`),T}return a?k.map(T=>this.mapCodeFixAction(T)):k}getCombinedCodeFix({scope:n,fixId:a},u){Se.assert(n.type==="file");let{file:m,project:g}=this.getFileAndProject(n.args),v=g.getLanguageService().getCombinedCodeFix({type:"file",fileName:m},a,this.getFormatOptions(m),this.getPreferences(m));return u?{changes:this.mapTextChangesToCodeEdits(v.changes),commands:v.commands}:v}applyCodeActionCommand(n){let a=n.command;for(let u of LS(a)){let{file:m,project:g}=this.getFileAndProject(u);g.getLanguageService().applyCodeActionCommand(u,this.getFormatOptions(m)).then(v=>{},v=>{})}return{}}getStartAndEndPosition(n,a){let u,m;return n.startPosition!==void 0?u=n.startPosition:(u=a.lineOffsetToPosition(n.startLine,n.startOffset),n.startPosition=u),n.endPosition!==void 0?m=n.endPosition:(m=a.lineOffsetToPosition(n.endLine,n.endOffset),n.endPosition=m),{startPosition:u,endPosition:m}}mapCodeAction({description:n,changes:a,commands:u}){return{description:n,changes:this.mapTextChangesToCodeEdits(a),commands:u}}mapCodeFixAction({fixName:n,description:a,changes:u,commands:m,fixId:g,fixAllDescription:v}){return{fixName:n,description:a,changes:this.mapTextChangesToCodeEdits(u),commands:m,fixId:g,fixAllDescription:v}}mapPasteEditsAction({edits:n,fixId:a}){return{edits:this.mapTextChangesToCodeEdits(n),fixId:a}}mapTextChangesToCodeEdits(n){return n.map(a=>this.mapTextChangeToCodeEdit(a))}mapTextChangeToCodeEdit(n){let a=this.projectService.getScriptInfoOrConfig(n.fileName);return!!n.isNewFile==!!a&&(a||this.projectService.logErrorForScriptInfoNotFound(n.fileName),Se.fail("Expected isNewFile for (only) new files. "+JSON.stringify({isNewFile:!!n.isNewFile,hasScriptInfo:!!a}))),a?{fileName:n.fileName,textChanges:n.textChanges.map(u=>hJt(u,a))}:yJt(n)}convertTextChangeToCodeEdit(n,a){return{start:a.positionToLineOffset(n.span.start),end:a.positionToLineOffset(n.span.start+n.span.length),newText:n.newText?n.newText:""}}getBraceMatching(n,a){let{file:u,languageService:m}=this.getFileAndLanguageServiceForSyntacticOperation(n),g=this.projectService.getScriptInfoForNormalizedPath(u),v=this.getPosition(n,g),x=m.getBraceMatchingAtPosition(u,v);return x?a?x.map(k=>_P(k,g)):x:void 0}getDiagnosticsForProject(n,a,u){if(this.suppressDiagnosticEvents)return;let{fileNames:m,languageServiceDisabled:g}=this.getProjectInfoWorker(u,void 0,!0,!0);if(g)return;let v=m.filter(U=>!U.includes("lib.d.ts"));if(v.length===0)return;let x=[],k=[],T=[],I=[],A=Zm(u),M=this.projectService.ensureDefaultProjectForFile(A);for(let U of v)this.getCanonicalFileName(U)===this.getCanonicalFileName(u)?x.push(U):this.projectService.getScriptInfo(U).isScriptOpen()?k.push(U):ey(U)?I.push(U):T.push(U);let H=[...x,...k,...T,...I].map(U=>({fileName:U,project:M}));this.updateErrorCheck(n,H,a,!1)}configurePlugin(n){this.projectService.configurePlugin(n)}getSmartSelectionRange(n,a){let{locations:u}=n,{file:m,languageService:g}=this.getFileAndLanguageServiceForSyntacticOperation(n),v=Se.checkDefined(this.projectService.getScriptInfo(m));return $i(u,x=>{let k=this.getPosition(x,v),T=g.getSmartSelectionRange(m,k);return a?this.mapSelectionRange(T,v):T})}toggleLineComment(n,a){let{file:u,languageService:m}=this.getFileAndLanguageServiceForSyntacticOperation(n),g=this.projectService.getScriptInfo(u),v=this.getRange(n,g),x=m.toggleLineComment(u,v);if(a){let k=this.projectService.getScriptInfoForNormalizedPath(u);return x.map(T=>this.convertTextChangeToCodeEdit(T,k))}return x}toggleMultilineComment(n,a){let{file:u,languageService:m}=this.getFileAndLanguageServiceForSyntacticOperation(n),g=this.projectService.getScriptInfoForNormalizedPath(u),v=this.getRange(n,g),x=m.toggleMultilineComment(u,v);if(a){let k=this.projectService.getScriptInfoForNormalizedPath(u);return x.map(T=>this.convertTextChangeToCodeEdit(T,k))}return x}commentSelection(n,a){let{file:u,languageService:m}=this.getFileAndLanguageServiceForSyntacticOperation(n),g=this.projectService.getScriptInfoForNormalizedPath(u),v=this.getRange(n,g),x=m.commentSelection(u,v);if(a){let k=this.projectService.getScriptInfoForNormalizedPath(u);return x.map(T=>this.convertTextChangeToCodeEdit(T,k))}return x}uncommentSelection(n,a){let{file:u,languageService:m}=this.getFileAndLanguageServiceForSyntacticOperation(n),g=this.projectService.getScriptInfoForNormalizedPath(u),v=this.getRange(n,g),x=m.uncommentSelection(u,v);if(a){let k=this.projectService.getScriptInfoForNormalizedPath(u);return x.map(T=>this.convertTextChangeToCodeEdit(T,k))}return x}mapSelectionRange(n,a){let u={textSpan:_P(n.textSpan,a)};return n.parent&&(u.parent=this.mapSelectionRange(n.parent,a)),u}getScriptInfoFromProjectService(n){let a=Zm(n),u=this.projectService.getScriptInfoForNormalizedPath(a);return u||(this.projectService.logErrorForScriptInfoNotFound(a),TL.ThrowNoProject())}toProtocolCallHierarchyItem(n){let a=this.getScriptInfoFromProjectService(n.file);return{name:n.name,kind:n.kind,kindModifiers:n.kindModifiers,file:n.file,containerName:n.containerName,span:_P(n.span,a),selectionSpan:_P(n.selectionSpan,a)}}toProtocolCallHierarchyIncomingCall(n){let a=this.getScriptInfoFromProjectService(n.from.file);return{from:this.toProtocolCallHierarchyItem(n.from),fromSpans:n.fromSpans.map(u=>_P(u,a))}}toProtocolCallHierarchyOutgoingCall(n,a){return{to:this.toProtocolCallHierarchyItem(n.to),fromSpans:n.fromSpans.map(u=>_P(u,a))}}prepareCallHierarchy(n){let{file:a,project:u}=this.getFileAndProject(n),m=this.projectService.getScriptInfoForNormalizedPath(a);if(m){let g=this.getPosition(n,m),v=u.getLanguageService().prepareCallHierarchy(a,g);return v&&K0e(v,x=>this.toProtocolCallHierarchyItem(x))}}provideCallHierarchyIncomingCalls(n){let{file:a,project:u}=this.getFileAndProject(n),m=this.getScriptInfoFromProjectService(a);return u.getLanguageService().provideCallHierarchyIncomingCalls(a,this.getPosition(n,m)).map(v=>this.toProtocolCallHierarchyIncomingCall(v))}provideCallHierarchyOutgoingCalls(n){let{file:a,project:u}=this.getFileAndProject(n),m=this.getScriptInfoFromProjectService(a);return u.getLanguageService().provideCallHierarchyOutgoingCalls(a,this.getPosition(n,m)).map(v=>this.toProtocolCallHierarchyOutgoingCall(v,m))}getCanonicalFileName(n){let a=this.host.useCaseSensitiveFileNames?n:OS(n);return Kd(a)}exit(){}notRequired(n){return n&&this.doOutput(void 0,n.command,n.seq,!0,this.performanceData),{responseRequired:!1,performanceData:this.performanceData}}requiredResponse(n){return{response:n,responseRequired:!0,performanceData:this.performanceData}}addProtocolHandler(n,a){if(this.handlers.has(n))throw new Error(`Protocol handler already exists for command "${n}"`);this.handlers.set(n,a)}setCurrentRequest(n){Se.assert(this.currentRequestId===void 0),this.currentRequestId=n,this.cancellationToken.setRequest(n)}resetCurrentRequest(n){Se.assert(this.currentRequestId===n),this.currentRequestId=void 0,this.cancellationToken.resetRequest(n)}executeWithRequestId(n,a,u){let m=this.performanceData;try{return this.performanceData=u,this.setCurrentRequest(n),a()}finally{this.resetCurrentRequest(n),this.performanceData=m}}executeCommand(n){let a=this.handlers.get(n.command);if(a){let u=this.executeWithRequestId(n.seq,()=>a(n),void 0);return this.projectService.enableRequestedPlugins(),u}else return this.logger.msg(`Unrecognized JSON command:${EM(n)}`,"Err"),this.doOutput(void 0,"unknown",n.seq,!1,void 0,`Unrecognized JSON command: ${n.command}`),{responseRequired:!1}}onMessage(n){var a,u,m,g,v,x,k;this.gcTimer.scheduleCollect();let T,I=this.performanceData;this.logger.hasLevel(2)&&(T=this.hrtime(),this.logger.hasLevel(3)&&this.logger.info(`request:${Dte(this.toStringMessage(n))}`));let A,M;try{A=this.parseMessage(n),M=A.arguments&&A.arguments.file?A.arguments:void 0,(a=us)==null||a.instant(us.Phase.Session,"request",{seq:A.seq,command:A.command}),(u=us)==null||u.push(us.Phase.Session,"executeCommand",{seq:A.seq,command:A.command},!0);let{response:R,responseRequired:H,performanceData:U}=this.executeCommand(A);if((m=us)==null||m.pop(),this.logger.hasLevel(2)){let $=VCt(this.hrtime(T)).toFixed(4);H?this.logger.perftrc(`${A.seq}::${A.command}: elapsed time (in milliseconds) ${$}`):this.logger.perftrc(`${A.seq}::${A.command}: async elapsed time (in milliseconds) ${$}`)}(g=us)==null||g.instant(us.Phase.Session,"response",{seq:A.seq,command:A.command,success:!!R}),R?this.doOutput(R,A.command,A.seq,!0,U):H&&this.doOutput(void 0,A.command,A.seq,!1,U,"No content available.")}catch(R){if((v=us)==null||v.popAll(),R instanceof sH){(x=us)==null||x.instant(us.Phase.Session,"commandCanceled",{seq:A?.seq,command:A?.command}),this.doOutput({canceled:!0},A.command,A.seq,!0,this.performanceData);return}this.logErrorWorker(R,this.toStringMessage(n),M),(k=us)==null||k.instant(us.Phase.Session,"commandError",{seq:A?.seq,command:A?.command,message:R.message}),this.doOutput(void 0,A?A.command:"unknown",A?A.seq:0,!1,this.performanceData,"Error processing request. "+R.message+` +`+R.stack)}finally{this.performanceData=I}}parseMessage(n){return JSON.parse(n)}toStringMessage(n){return n}getFormatOptions(n){return this.projectService.getFormatCodeOptions(n)}getPreferences(n){return this.projectService.getPreferences(n)}getHostFormatOptions(){return this.projectService.getHostFormatCodeOptions()}getHostPreferences(){return this.projectService.getHostPreferences()}};function Vot(t){let n=t.diagnosticsDuration&&tc(t.diagnosticsDuration,([a,u])=>({...u,file:a}));return{...t,diagnosticsDuration:n}}function _P(t,n){return{start:n.positionToLineOffset(t.start),end:n.positionToLineOffset(ag(t))}}function Hot(t,n,a){let u=_P(t,a),m=n&&_P(n,a);return m?{...u,contextStart:m.start,contextEnd:m.end}:u}function hJt(t,n){return{start:EBe(n,t.span.start),end:EBe(n,ag(t.span)),newText:t.newText}}function EBe(t,n){return cAe(t)?KCt(t.getLineAndCharacterOfPosition(n)):t.positionToLineOffset(n)}function gJt(t,n){let a=t.ranges.map(u=>({start:n.positionToLineOffset(u.start),end:n.positionToLineOffset(u.start+u.length)}));return t.wordPattern?{ranges:a,wordPattern:t.wordPattern}:{ranges:a}}function KCt(t){return{line:t.line+1,offset:t.character+1}}function yJt(t){Se.assert(t.textChanges.length===1);let n=of(t.textChanges);return Se.assert(n.span.start===0&&n.span.length===0),{fileName:t.fileName,textChanges:[{start:{line:0,offset:0},end:{line:0,offset:0},newText:n.newText}]}}function Uot(t,n,a,u){let m=Wie(t,n,u),{line:g,character:v}=Bd(E7(m),a);return{line:g+1,offset:v+1}}function Wie(t,n,a){for(let{fileName:u,textChanges:m}of a)if(u===n)for(let g=m.length-1;g>=0;g--){let{newText:v,span:{start:x,length:k}}=m[g];t=t.slice(0,x)+v+t.slice(x+k)}return t}function DBe(t,{fileName:n,textSpan:a,contextSpan:u,isWriteAccess:m,isDefinition:g},{disableLineTextInReferences:v}){let x=Se.checkDefined(t.getScriptInfo(n)),k=Hot(a,u,x),T=v?void 0:vJt(x,k);return{file:n,...k,lineText:T,isWriteAccess:m,isDefinition:g}}function vJt(t,n){let a=t.lineToTextSpan(n.start.line-1);return t.getSnapshot().getText(a.start,ag(a)).replace(/\r|\n/g,"")}function bJt(t){return t===void 0||t&&typeof t=="object"&&typeof t.exportName=="string"&&(t.fileName===void 0||typeof t.fileName=="string")&&(t.ambientModuleName===void 0||typeof t.ambientModuleName=="string"&&(t.isPackageJsonImport===void 0||typeof t.isPackageJsonImport=="boolean"))}var xz=4,Fve=(t=>(t[t.PreStart=0]="PreStart",t[t.Start=1]="Start",t[t.Entire=2]="Entire",t[t.Mid=3]="Mid",t[t.End=4]="End",t[t.PostEnd=5]="PostEnd",t))(Fve||{}),XCt=class{constructor(){this.goSubtree=!0,this.lineIndex=new kue,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new HX,this.startPath=[this.lineIndex.root],this.stack=[this.lineIndex.root]}get done(){return!1}insertLines(t,n){n&&(this.trailingText=""),t?t=this.initialText+t+this.trailingText:t=this.initialText+this.trailingText;let u=kue.linesFromText(t).lines;u.length>1&&u[u.length-1]===""&&u.pop();let m,g;for(let x=this.endBranch.length-1;x>=0;x--)this.endBranch[x].updateCounts(),this.endBranch[x].charCount()===0&&(g=this.endBranch[x],x>0?m=this.endBranch[x-1]:m=this.branchNode);g&&m.remove(g);let v=this.startPath[this.startPath.length-1];if(u.length>0)if(v.text=u[0],u.length>1){let x=new Array(u.length-1),k=v;for(let A=1;A=0;){let A=this.startPath[T];x=A.insertAt(k,x),T--,k=A}let I=x.length;for(;I>0;){let A=new HX;A.add(this.lineIndex.root),x=A.insertAt(this.lineIndex.root,x),I=x.length,this.lineIndex.root=A}this.lineIndex.root.updateCounts()}else for(let x=this.startPath.length-2;x>=0;x--)this.startPath[x].updateCounts();else{this.startPath[this.startPath.length-2].remove(v);for(let k=this.startPath.length-2;k>=0;k--)this.startPath[k].updateCounts()}return this.lineIndex}post(t,n,a){a===this.lineCollectionAtBranch&&(this.state=4),this.stack.pop()}pre(t,n,a,u,m){let g=this.stack[this.stack.length-1];this.state===2&&m===1&&(this.state=1,this.branchNode=g,this.lineCollectionAtBranch=a);let v;function x(k){return k.isLeaf()?new i(""):new HX}switch(m){case 0:this.goSubtree=!1,this.state!==4&&g.add(a);break;case 1:this.state===4?this.goSubtree=!1:(v=x(a),g.add(v),this.startPath.push(v));break;case 2:this.state!==4?(v=x(a),g.add(v),this.startPath.push(v)):a.isLeaf()||(v=x(a),g.add(v),this.endBranch.push(v));break;case 3:this.goSubtree=!1;break;case 4:this.state!==4?this.goSubtree=!1:a.isLeaf()||(v=x(a),g.add(v),this.endBranch.push(v));break;case 5:this.goSubtree=!1,this.state!==1&&g.add(a);break}this.goSubtree&&this.stack.push(v)}leaf(t,n,a){this.state===1?this.initialText=a.text.substring(0,t):this.state===2?(this.initialText=a.text.substring(0,t),this.trailingText=a.text.substring(t+n)):this.trailingText=a.text.substring(t+n)}},Mve=class{constructor(t,n,a){this.pos=t,this.deleteLen=n,this.insertedText=a}getTextChangeRange(){return aZ(h1(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},Cz=class kne{constructor(){this.changes=[],this.versions=new Array(kne.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(n){if(!(nthis.currentVersion))return n%kne.maxVersions}currentVersionToIndex(){return this.currentVersion%kne.maxVersions}edit(n,a,u){this.changes.push(new Mve(n,a,u)),(this.changes.length>kne.changeNumberThreshold||a>kne.changeLengthThreshold||u&&u.length>kne.changeLengthThreshold)&&this.getSnapshot()}getSnapshot(){return this._getSnapshot()}_getSnapshot(){let n=this.versions[this.currentVersionToIndex()];if(this.changes.length>0){let a=n.index;for(let u of this.changes)a=a.edit(u.pos,u.deleteLen,u.insertedText);n=new Jot(this.currentVersion+1,this,a,this.changes),this.currentVersion=n.version,this.versions[this.currentVersionToIndex()]=n,this.changes=[],this.currentVersion-this.minVersion>=kne.maxVersions&&(this.minVersion=this.currentVersion-kne.maxVersions+1)}return n}getSnapshotVersion(){return this._getSnapshot().version}getAbsolutePositionAndLineText(n){return this._getSnapshot().index.lineNumberToInfo(n)}lineOffsetToPosition(n,a){return this._getSnapshot().index.absolutePositionOfStartOfLine(n)+(a-1)}positionToLineOffset(n){return this._getSnapshot().index.positionToLineOffset(n)}lineToTextSpan(n){let a=this._getSnapshot().index,{lineText:u,absolutePosition:m}=a.lineNumberToInfo(n+1),g=u!==void 0?u.length:a.absolutePositionOfStartOfLine(n+2)-m;return h1(m,g)}getTextChangesBetweenVersions(n,a){if(n=this.minVersion){let u=[];for(let m=n+1;m<=a;m++){let g=this.versions[this.versionToIndex(m)];for(let v of g.changesSincePreviousVersion)u.push(v.getTextChangeRange())}return u0(u)}else return;else return tv}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(n){let a=new kne,u=new Jot(0,a,new kue);a.versions[a.currentVersion]=u;let m=kue.linesFromText(n);return u.index.load(m.lines),a}};Cz.changeNumberThreshold=8,Cz.changeLengthThreshold=256,Cz.maxVersions=8;var zie=Cz,Jot=class zhi{constructor(n,a,u,m=Cd){this.version=n,this.cache=a,this.index=u,this.changesSincePreviousVersion=m}getText(n,a){return this.index.getText(n,a-n)}getLength(){return this.index.getLength()}getChangeRange(n){if(n instanceof zhi&&this.cache===n.cache)return this.version<=n.version?tv:this.cache.getTextChangesBetweenVersions(n.version,this.version)}},kue=class nYt{constructor(){this.checkEdits=!1}absolutePositionOfStartOfLine(n){return this.lineNumberToInfo(n).absolutePosition}positionToLineOffset(n){let{oneBasedLine:a,zeroBasedColumn:u}=this.root.charOffsetToLineInfo(1,n);return{line:a,offset:u+1}}positionToColumnAndLineText(n){return this.root.charOffsetToLineInfo(1,n)}getLineCount(){return this.root.lineCount()}lineNumberToInfo(n){let a=this.getLineCount();if(n<=a){let{position:u,leaf:m}=this.root.lineNumberToInfo(n,0);return{absolutePosition:u,lineText:m&&m.text}}else return{absolutePosition:this.root.charCount(),lineText:void 0}}load(n){if(n.length>0){let a=[];for(let u=0;u0&&n{u=u.concat(v.text.substring(m,m+g))}}),u}getLength(){return this.root.charCount()}every(n,a,u){u||(u=this.root.charCount());let m={goSubtree:!0,done:!1,leaf(g,v,x){n(x,g,v)||(this.done=!0)}};return this.walk(a,u-a,m),!m.done}edit(n,a,u){if(this.root.charCount()===0)return Se.assert(a===0),u!==void 0?(this.load(nYt.linesFromText(u).lines),this):void 0;{let m;if(this.checkEdits){let x=this.getText(0,this.root.charCount());m=x.slice(0,n)+u+x.slice(n+a)}let g=new XCt,v=!1;if(n>=this.root.charCount()){n=this.root.charCount()-1;let x=this.getText(n,1);u?u=x+u:u=x,a=0,v=!0}else if(a>0){let x=n+a,{zeroBasedColumn:k,lineText:T}=this.positionToColumnAndLineText(x);k===0&&(a+=T.length,u=u?u+T:T)}if(this.root.walk(n,a,g),g.insertLines(u,v),this.checkEdits){let x=g.lineIndex.getText(0,g.lineIndex.getLength());Se.assert(m===x,"buffer edit mismatch")}return g.lineIndex}}static buildTreeFromBottom(n){if(n.length0?u[m]=g:u.pop(),{lines:u,lineMap:a}}},HX=class rYt{constructor(n=[]){this.children=n,this.totalChars=0,this.totalLines=0,n.length&&this.updateCounts()}isLeaf(){return!1}updateCounts(){this.totalChars=0,this.totalLines=0;for(let n of this.children)this.totalChars+=n.charCount(),this.totalLines+=n.lineCount()}execWalk(n,a,u,m,g){return u.pre&&u.pre(n,a,this.children[m],this,g),u.goSubtree?(this.children[m].walk(n,a,u),u.post&&u.post(n,a,this.children[m],this,g)):u.goSubtree=!0,u.done}skipChild(n,a,u,m,g){m.pre&&!m.done&&(m.pre(n,a,this.children[u],this,g),m.goSubtree=!0)}walk(n,a,u){let m=0,g=this.children[m].charCount(),v=n;for(;v>=g;)this.skipChild(v,a,m,u,0),v-=g,m++,g=this.children[m].charCount();if(v+a<=g){if(this.execWalk(v,a,u,m,2))return}else{if(this.execWalk(v,g-v,u,m,1))return;let x=a-(g-v);for(m++,g=this.children[m].charCount();x>g;){if(this.execWalk(0,g,u,m,3))return;x-=g,m++,g=this.children[m].charCount()}if(x>0&&this.execWalk(0,x,u,m,4))return}if(u.pre){let x=this.children.length;if(ma)return g.isLeaf()?{oneBasedLine:n,zeroBasedColumn:a,lineText:g.text}:g.charOffsetToLineInfo(n,a);a-=g.charCount(),n+=g.lineCount()}let u=this.lineCount();if(u===0)return{oneBasedLine:1,zeroBasedColumn:0,lineText:void 0};let m=Se.checkDefined(this.lineNumberToInfo(u,0).leaf);return{oneBasedLine:u,zeroBasedColumn:m.charCount(),lineText:void 0}}lineNumberToInfo(n,a){for(let u of this.children){let m=u.lineCount();if(m>=n)return u.isLeaf()?{position:a,leaf:u}:u.lineNumberToInfo(n,a);n-=m,a+=u.charCount()}return{position:a,leaf:void 0}}splitAfter(n){let a,u=this.children.length;n++;let m=n;if(n=0;M--)k[M].children.length===0&&k.pop()}v&&k.push(v),this.updateCounts();for(let I=0;I{(this.packageInstalledPromise??(this.packageInstalledPromise=new Map)).set(this.packageInstallId,{resolve:m,reject:g})});return this.installer.send(a),u}attach(n){this.projectService=n,this.installer=this.createInstallerProcess()}onProjectClosed(n){this.installer.send({projectName:n.getProjectName(),kind:"closeProject"})}enqueueInstallTypingsRequest(n,a,u){let m=nBe(n,a,u);this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling throttled operation:${EM(m)}`),this.activeRequestCount0?this.activeRequestCount--:Se.fail("TIAdapter:: Received too many responses");!this.requestQueue.isEmpty();){let m=this.requestQueue.dequeue();if(this.requestMap.get(m.projectName)===m){this.requestMap.delete(m.projectName),this.scheduleRequest(m);break}this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Skipping defunct request for: ${m.projectName}`)}this.projectService.updateTypingsForProject(n),this.event(n,"setTypings");break}case HK:this.projectService.watchTypingLocations(n);break;default:}}scheduleRequest(n){this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling request for: ${n.projectName}`),this.activeRequestCount++,this.host.setTimeout(()=>{this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Sending request:${EM(n)}`),this.installer.send(n)},Vhi.requestDelayMillis,`${n.projectName}::${n.kind}`)}};s.requestDelayMillis=100;var p=s,y={};d(y,{ActionInvalidate:()=>G2,ActionPackageInstalled:()=>VK,ActionSet:()=>Vce,ActionWatchTypingLocations:()=>HK,Arguments:()=>u0e,AutoImportProviderProject:()=>tAe,AuxiliaryProject:()=>ZNe,CharRangeSection:()=>Fve,CloseFileWatcherEvent:()=>iAe,CommandNames:()=>CBe,ConfigFileDiagEvent:()=>mue,ConfiguredProject:()=>Tve,ConfiguredProjectLoadKind:()=>Lve,CreateDirectoryWatcherEvent:()=>yue,CreateFileWatcherEvent:()=>gue,Errors:()=>TL,EventBeginInstallTypes:()=>Ete,EventEndInstallTypes:()=>Hce,EventInitializationFailed:()=>l0e,EventTypesRegistry:()=>Tte,ExternalProject:()=>bz,GcTimer:()=>KNe,InferredProject:()=>QNe,LargeFileReferencedEvent:()=>pue,LineIndex:()=>kue,LineLeaf:()=>i,LineNode:()=>HX,LogLevel:()=>Y4,Msg:()=>Aie,OpenFileInfoTelemetryEvent:()=>Dve,Project:()=>zX,ProjectInfoTelemetryEvent:()=>Eve,ProjectKind:()=>kve,ProjectLanguageServiceStateEvent:()=>hue,ProjectLoadingFinishEvent:()=>_ue,ProjectLoadingStartEvent:()=>fue,ProjectService:()=>aAe,ProjectsUpdatedInBackgroundEvent:()=>Mie,ScriptInfo:()=>Cve,ScriptVersionCache:()=>zie,Session:()=>GCt,TextStorage:()=>vot,ThrottledOperations:()=>GNe,TypingsInstallerAdapter:()=>p,allFilesAreJsOrDts:()=>Lie,allRootFilesAreJsOrDts:()=>Pie,asNormalizedPath:()=>rBe,convertCompilerOptions:()=>zJ,convertFormatOptions:()=>L9,convertScriptKindName:()=>Nve,convertTypeAcquisition:()=>Ive,convertUserPreferences:()=>Ave,convertWatchOptions:()=>Rie,countEachFileTypes:()=>wve,createInstallTypingsRequest:()=>nBe,createModuleSpecifierCache:()=>Rot,createNormalizedPathMap:()=>oBe,createPackageJsonCache:()=>SBe,createSortedArray:()=>sBe,emptyArray:()=>Cd,findArgument:()=>bEe,formatDiagnosticToProtocol:()=>jie,formatMessage:()=>Bot,getBaseConfigFileName:()=>XNe,getLocationInNewDocument:()=>Uot,hasArgument:()=>Uce,hasNoTypeScriptSource:()=>Sot,indent:()=>Dte,isBackgroundProject:()=>jJ,isConfigFile:()=>cAe,isConfiguredProject:()=>PN,isDynamicFileName:()=>xve,isExternalProject:()=>Sz,isInferredProject:()=>aD,isInferredProjectName:()=>JNe,isProjectDeferredClose:()=>Oie,makeAutoImportProviderProjectName:()=>$Ne,makeAuxiliaryProjectName:()=>Sve,makeInferredProjectName:()=>qNe,maxFileSize:()=>Fie,maxProgramSizeForNonTsFiles:()=>due,normalizedPathToPath:()=>BJ,nowString:()=>hYe,nullCancellationToken:()=>zCt,nullTypingsInstaller:()=>Pve,protocol:()=>aBe,stringifyIndented:()=>EM,toEvent:()=>jot,toNormalizedPath:()=>Zm,tryConvertScriptKindName:()=>vue,typingsInstaller:()=>tBe,updateProjectIfDirty:()=>o2}),typeof console<"u"&&(Se.loggingHost={log(t,n){switch(t){case 1:return console.error(n);case 2:return console.warn(n);case 3:return console.log(n);case 4:return console.log(n)}}})})({get exports(){return Fhi},set exports(l){Fhi=l,typeof JEt<"u"&&JEt.exports&&(JEt.exports=l)}})});function fB(l,e=0){return l[l.length-(1+e)]}function Xhi(l){if(l.length===0)throw new Error("Invalid tail call");return[l.slice(0,l.length-1),l[l.length-1]]}function Jm(l,e,r=(o,c)=>o===c){if(l===e)return!0;if(!l||!e||l.length!==e.length)return!1;for(let o=0,c=l.length;or(l[o],e))}function lMi(l,e){let r=0,o=l-1;for(;r<=o;){let c=(r+o)/2|0,d=e(c);if(d<0)r=c+1;else if(d>0)o=c-1;else return c}return-(r+1)}function YEt(l,e,r){if(l=l|0,l>=e.length)throw new TypeError("invalid index");let o=e[Math.floor(e.length*Math.random())],c=[],d=[],h=[];for(let b of e){let w=r(b,o);w<0?c.push(b):w>0?d.push(b):h.push(b)}return l!!e)}function lYt(l){let e=0;for(let r=0;r0}function GF(l,e=r=>r){let r=new Set;return l.filter(o=>{let c=e(o);return r.has(c)?!1:(r.add(c),!0)})}function Bze(l,e){return l.length>0?l[0]:e}function FP(l,e){let r=typeof e=="number"?l:0;typeof e=="number"?r=l:(r=0,e=l);let o=[];if(r<=e)for(let c=r;ce;c--)o.push(c);return o}function Nbe(l,e,r){let o=l.slice(0,e),c=l.slice(e);return o.concat(r,c)}function tDt(l,e){let r=l.indexOf(e);r>-1&&(l.splice(r,1),l.unshift(e))}function Blt(l,e){let r=l.indexOf(e);r>-1&&(l.splice(r,1),l.push(e))}function jlt(l,e){for(let r of e)l.push(r)}function jze(l){return Array.isArray(l)?l:[l]}function uMi(l,e,r){let o=Zhi(l,e),c=l.length,d=r.length;l.length=c+d;for(let h=c-1;h>=o;h--)l[h+d]=l[h];for(let h=0;he(l(r),l(o))}function egi(...l){return(e,r)=>{for(let o of l){let c=o(e,r);if(!Rlt.isNeitherLessOrGreaterThan(c))return c}return Rlt.neitherLessOrGreaterThan}}function iDt(l){return(e,r)=>-l(e,r)}var Rlt,XL,tgi,KL,MY,QEt,sd=ti(()=>{(function(l){function e(d){return d<0}l.isLessThan=e;function r(d){return d<=0}l.isLessThanOrEqual=r;function o(d){return d>0}l.isGreaterThan=o;function c(d){return d===0}l.isNeitherLessOrGreaterThan=c,l.greaterThan=1,l.lessThan=-1,l.neitherLessOrGreaterThan=0})(Rlt||(Rlt={}));XL=(l,e)=>l-e,tgi=(l,e)=>XL(l?1:0,e?1:0);KL=class{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 r=this.firstIdx;for(;r=0&&e(this.items[r]);)r--;let o=r===this.lastIdx?null:this.items.slice(r+1,this.lastIdx+1);return this.lastIdx=r,o}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){let e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){let r=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,r}},MY=class l{constructor(e){this.iterate=e}toArray(){let e=[];return this.iterate(r=>(e.push(r),!0)),e}filter(e){return new l(r=>this.iterate(o=>e(o)?r(o):!0))}map(e){return new l(r=>this.iterate(o=>r(e(o))))}findLast(e){let r;return this.iterate(o=>(e(o)&&(r=o),!0)),r}findLastMaxBy(e){let r,o=!0;return this.iterate(c=>((o||Rlt.isGreaterThan(e(c,r)))&&(o=!1,r=c),!0)),r}};MY.empty=new MY(l=>{});QEt=class l{constructor(e){this._indexMap=e}static createSortPermutation(e,r){let o=Array.from(e.keys()).sort((c,d)=>r(e[c],e[d]));return new l(o)}apply(e){return e.map((r,o)=>e[this._indexMap[o]])}inverse(){let e=this._indexMap.slice();for(let r=0;r"u"}function vR(l){return!v6(l)}function v6(l){return OI(l)||l===null}function P_(l,e){if(!l)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function Nq(l){if(v6(l))throw new Error("Assertion Failed: argument is undefined or null");return l}function Abe(l){return typeof l=="function"}function ngi(l,e){let r=Math.min(l.length,e.length);for(let o=0;o{});function Aq(l){if(!l||typeof l!="object"||l instanceof RegExp)return l;let e=Array.isArray(l)?[]:{};return Object.entries(l).forEach(([r,o])=>{e[r]=o&&typeof o=="object"?Aq(o):o}),e}function rgi(l){if(!l||typeof l!="object")return l;let e=[l];for(;e.length>0;){let r=e.shift();Object.freeze(r);for(let o in r)if(ogi.call(r,o)){let c=r[o];typeof c=="object"&&!Object.isFrozen(c)&&!igi(c)&&e.push(c)}}return l}function rDt(l,e){return fYt(l,e,new Set)}function fYt(l,e,r){if(v6(l))return l;let o=e(l);if(typeof o<"u")return o;if(Array.isArray(l)){let c=[];for(let d of l)c.push(fYt(d,e,r));return c}if(wT(l)){if(r.has(l))throw new Error("Cannot clone recursive data-structure");r.add(l);let c={};for(let d in l)ogi.call(l,d)&&(c[d]=fYt(l[d],e,r));return r.delete(l),c}return l}function N4e(l,e,r=!0){return wT(l)?(wT(e)&&Object.keys(e).forEach(o=>{o in l?r&&(wT(l[o])&&wT(e[o])?N4e(l[o],e[o],r):l[o]=e[o]):l[o]=e[o]}),l):e}function FI(l,e){if(l===e)return!0;if(l==null||e===null||e===void 0||typeof l!=typeof e||typeof l!="object"||Array.isArray(l)!==Array.isArray(e))return!1;let r,o;if(Array.isArray(l)){if(l.length!==e.length)return!1;for(r=0;rfunction(){let d=Array.prototype.slice.call(arguments,0);return e(c,d)},o={};for(let c of l)o[c]=r(c);return o}var ogi,YL=ti(()=>{Fh();ogi=Object.prototype.hasOwnProperty});function agi(l,e){let r;return e.length===0?r=l:r=l.replace(/\{(\d+)\}/g,(o,c)=>{let d=c[0],h=e[d],b=o;return typeof h=="string"?b=h:(typeof h=="number"||typeof h=="boolean"||h===void 0||h===null)&&(b=String(h)),b}),_Mi&&(r="\uFF3B"+r.replace(/[aouei]/g,"$&$&")+"\uFF3D"),r}function ce(l,e,...r){return agi(e,r)}function Sd(l,e,...r){let o=agi(e,r);return{value:o,original:o}}var _Mi,ya=ti(()=>{_Mi=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0});function lDt(){if(!ugi){ugi=!0;let l=new Uint8Array(2);l[0]=1,l[1]=2,lgi=new Uint16Array(l.buffer)[0]===513}return lgi}var _Yt,pYt,zze,zlt,Vlt,Wlt,pMi,dgi,hYt,mMi,gYt,hMi,fgi,oDt,sDt,cgi,gMi,RY,rfe,BO,_gi,yMi,mYt,Bv,md,kS,KF,pB,vMi,pgi,b6,aDt,Ene,mgi,bMi,cDt,gE,lgi,ugi,yYt,hgi,ggi,ygi,vgi,X_=ti(()=>{ya();zze="en",zlt=!1,Vlt=!1,Wlt=!1,pMi=!1,dgi=!1,hYt=!1,mMi=!1,gYt=!1,hMi=!1,fgi=!1,sDt=zze,cgi=zze,rfe=globalThis;typeof rfe.vscode<"u"&&typeof rfe.vscode.process<"u"?BO=rfe.vscode.process:typeof process<"u"&&typeof((_Yt=process==null?void 0:process.versions)===null||_Yt===void 0?void 0:_Yt.node)=="string"&&(BO=process);_gi=typeof((pYt=BO?.versions)===null||pYt===void 0?void 0:pYt.electron)=="string",yMi=_gi&&BO?.type==="renderer";if(typeof BO=="object"){zlt=BO.platform==="win32",Vlt=BO.platform==="darwin",Wlt=BO.platform==="linux",pMi=Wlt&&!!BO.env.SNAP&&!!BO.env.SNAP_REVISION,mMi=_gi,hMi=!!BO.env.CI||!!BO.env.BUILD_ARTIFACTSTAGINGDIRECTORY,oDt=zze,sDt=zze;let l=BO.env.VSCODE_NLS_CONFIG;if(l)try{let e=JSON.parse(l),r=e.availableLanguages["*"];oDt=e.locale,cgi=e.osLocale,sDt=r||zze,gMi=e._translationsConfigFile}catch{}dgi=!0}else typeof navigator=="object"&&!yMi?(RY=navigator.userAgent,zlt=RY.indexOf("Windows")>=0,Vlt=RY.indexOf("Macintosh")>=0,gYt=(RY.indexOf("Macintosh")>=0||RY.indexOf("iPad")>=0||RY.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Wlt=RY.indexOf("Linux")>=0,fgi=RY?.indexOf("Mobi")>=0,hYt=!0,oDt=(ce({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),void 0)||zze,sDt=oDt,cgi=navigator.language):console.error("Unable to resolve platform.");mYt=0;Vlt?mYt=1:zlt?mYt=3:Wlt&&(mYt=2);Bv=zlt,md=Vlt,kS=Wlt,KF=dgi,pB=hYt,vMi=hYt&&typeof rfe.importScripts=="function",pgi=vMi?rfe.origin:void 0,b6=gYt,aDt=fgi,Ene=RY,mgi=sDt,bMi=typeof rfe.postMessage=="function"&&!rfe.importScripts,cDt=(()=>{if(bMi){let l=[];rfe.addEventListener("message",r=>{if(r.data&&r.data.vscodeScheduleAsyncWork)for(let o=0,c=l.length;o{let o=++e;l.push({id:o,callback:r}),rfe.postMessage({vscodeScheduleAsyncWork:o},"*")}}return l=>setTimeout(l)})(),gE=Vlt||gYt?2:zlt?1:3,lgi=!0,ugi=!1;yYt=!!(Ene&&Ene.indexOf("Chrome")>=0),hgi=!!(Ene&&Ene.indexOf("Firefox")>=0),ggi=!!(!yYt&&Ene&&Ene.indexOf("Safari")>=0),ygi=!!(Ene&&Ene.indexOf("Edg/")>=0),vgi=!!(Ene&&Ene.indexOf("Android")>=0)});var ID,Hlt=ti(()=>{ID={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}}});var S_,QL=ti(()=>{(function(l){function e(ct){return ct&&typeof ct=="object"&&typeof ct[Symbol.iterator]=="function"}l.is=e;let r=Object.freeze([]);function o(){return r}l.empty=o;function*c(ct){yield ct}l.single=c;function d(ct){return e(ct)?ct:c(ct)}l.wrap=d;function h(ct){return ct||r}l.from=h;function*b(ct){for(let Ct=ct.length-1;Ct>=0;Ct--)yield ct[Ct]}l.reverse=b;function w(ct){return!ct||ct[Symbol.iterator]().next().done===!0}l.isEmpty=w;function N(ct){return ct[Symbol.iterator]().next().value}l.first=N;function L(ct,Ct){for(let Nt of ct)if(Ct(Nt))return!0;return!1}l.some=L;function B(ct,Ct){for(let Nt of ct)if(Ct(Nt))return Nt}l.find=B;function*F(ct,Ct){for(let Nt of ct)Ct(Nt)&&(yield Nt)}l.filter=F;function*Y(ct,Ct){let Nt=0;for(let Yt of ct)yield Ct(Yt,Nt++)}l.map=Y;function*Z(...ct){for(let Ct of ct)yield*Ct}l.concat=Z;function ee(ct,Ct,Nt){let Yt=Nt;for(let jt of ct)Yt=Ct(Yt,jt);return Yt}l.reduce=ee;function*Te(ct,Ct,Nt=ct.length){for(Ct<0&&(Ct+=ct.length),Nt<0?Nt+=ct.length:Nt>ct.length&&(Nt=ct.length);Ct{Mw=class l{constructor(e){this.element=e,this.next=l.Undefined,this.prev=l.Undefined}};Mw.Undefined=new Mw(void 0);QS=class{constructor(){this._first=Mw.Undefined,this._last=Mw.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Mw.Undefined}clear(){let e=this._first;for(;e!==Mw.Undefined;){let r=e.next;e.prev=Mw.Undefined,e.next=Mw.Undefined,e=r}this._first=Mw.Undefined,this._last=Mw.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,r){let o=new Mw(e);if(this._first===Mw.Undefined)this._first=o,this._last=o;else if(r){let d=this._last;this._last=o,o.prev=d,d.next=o}else{let d=this._first;this._first=o,o.next=d,d.prev=o}this._size+=1;let c=!1;return()=>{c||(c=!0,this._remove(o))}}shift(){if(this._first!==Mw.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Mw.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Mw.Undefined&&e.next!==Mw.Undefined){let r=e.prev;r.next=e.next,e.next.prev=r}else e.prev===Mw.Undefined&&e.next===Mw.Undefined?(this._first=Mw.Undefined,this._last=Mw.Undefined):e.next===Mw.Undefined?(this._last=this._last.prev,this._last.next=Mw.Undefined):e.prev===Mw.Undefined&&(this._first=this._first.next,this._first.prev=Mw.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Mw.Undefined;)yield e.element,e=e.next}}});function SMi(l=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(let r of vYt)l.indexOf(r)>=0||(e+="\\"+r);return e+="\\s]+)",new RegExp(e,"g")}function Jlt(l){let e=Ult;if(l&&l instanceof RegExp)if(l.global)e=l;else{let r="g";l.ignoreCase&&(r+="i"),l.multiline&&(r+="m"),l.unicode&&(r+="u"),e=new RegExp(l.source,r)}return e.lastIndex=0,e}function Pbe(l,e,r,o,c){if(e=Jlt(e),c||(c=S_.first(bgi)),r.length>c.maxLen){let N=l-c.maxLen/2;return N<0?N=0:o+=N,r=r.substring(N,l+c.maxLen/2),Pbe(l,e,r,o,c)}let d=Date.now(),h=l-1-o,b=-1,w=null;for(let N=1;!(Date.now()-d>=c.timeBudget);N++){let L=h-c.windowSize*N;e.lastIndex=Math.max(0,L);let B=xMi(e,r,h,b);if(!B&&w||(w=B,L<=0))break;b=L}if(w){let N={word:w[0],startColumn:o+1+w.index,endColumn:o+1+w.index+w[0].length};return e.lastIndex=0,N}return null}function xMi(l,e,r,o){let c;for(;c=l.exec(e);){let d=c.index||0;if(d<=r&&l.lastIndex>=r)return c;if(o>0&&d>o)return null}return null}var vYt,Ult,bgi,Vze=ti(()=>{QL();mB();vYt="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";Ult=SMi();bgi=new QS;bgi.unshift({maxLen:1e3,windowSize:15,timeBudget:150})});function uDt(l,e){if(typeof l!="object"||typeof e!="object"||!l||!e)return new Lbe(e,l!==e);if(Array.isArray(l)||Array.isArray(e)){let o=Array.isArray(l)&&Array.isArray(e)&&Jm(l,e);return new Lbe(e,!o)}let r=!1;for(let o in e)if(e.hasOwnProperty(o)){let c=uDt(l[o],e[o]);c.didChange&&(l[o]=c.newValue,r=!0)}return new Lbe(l,r)}function gu(l,e){return typeof l>"u"?e:l==="false"?!1:!!l}function Mbe(l,e,r,o){if(typeof l>"u")return e;let c=parseInt(l,10);return isNaN(c)?e:(c=Math.max(r,c),c=Math.min(o,c),c|0)}function xgi(l,e,r,o){if(typeof l>"u")return e;let c=hB.float(l,e);return hB.clamp(c,r,o)}function EC(l,e,r,o){return typeof l!="string"?e:o&&l in o?o[l]:r.indexOf(l)===-1?e:l}function CMi(l){switch(l){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}function kMi(l){switch(l){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}function wMi(l){switch(l){case"line":return ND.Line;case"block":return ND.Block;case"underline":return ND.Underline;case"line-thin":return ND.LineThin;case"block-outline":return ND.BlockOutline;case"underline-thin":return ND.UnderlineThin}}function TMi(l){return l==="ctrlCmd"?md?"metaKey":"ctrlKey":"altKey"}function L4e(l){let e=l.get(98);return e==="editable"?l.get(91):e!=="on"}function Sgi(l,e){if(typeof l!="string")return e;switch(l){case"hidden":return 2;case"visible":return 3;default:return 1}}function Uze(l,e,r){let o=r.indexOf(l);return o===-1?e:r[o]}function $a(l){return Rbe[l.id]=l,l}var BY,Jze,qlt,H1,Lbe,P4e,Obe,ah,jv,hB,jO,ZS,Hze,bYt,SYt,ND,xYt,CYt,kYt,SR,Fbe,wYt,TYt,qze,EYt,DYt,$lt,IYt,aV,NYt,AYt,PYt,LYt,OYt,FYt,MYt,RYt,BYt,jYt,WYt,zYt,VYt,HYt,bR,WO,UYt,JYt,qYt,$Yt,GYt,KYt,XYt,YYt,QYt,ZYt,eQt,tQt,EMi,DMi,IMi,sA,Rbe,XF,TT=ti(()=>{sd();YL();X_();Hlt();Vze();ya();BY=8,Jze=class{constructor(e){this._values=e}hasChanged(e){return this._values[e]}},qlt=class{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}},H1=class{constructor(e,r,o,c){this.id=e,this.name=r,this.defaultValue=o,this.schema=c}applyUpdate(e,r){return uDt(e,r)}compute(e,r,o){return o}},Lbe=class{constructor(e,r){this.newValue=e,this.didChange=r}};P4e=class{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,r){return uDt(e,r)}validate(e){return this.defaultValue}},Obe=class{constructor(e,r,o,c){this.id=e,this.name=r,this.defaultValue=o,this.schema=c}applyUpdate(e,r){return uDt(e,r)}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,r,o){return o}};ah=class extends Obe{constructor(e,r,o,c=void 0){typeof c<"u"&&(c.type="boolean",c.default=o),super(e,r,o,c)}validate(e){return gu(e,this.defaultValue)}};jv=class l extends Obe{static clampedInt(e,r,o,c){return Mbe(e,r,o,c)}constructor(e,r,o,c,d,h=void 0){typeof h<"u"&&(h.type="integer",h.default=o,h.minimum=c,h.maximum=d),super(e,r,o,h),this.minimum=c,this.maximum=d}validate(e){return l.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}};hB=class l extends Obe{static clamp(e,r,o){return eo?o:e}static float(e,r){if(typeof e=="number")return e;if(typeof e>"u")return r;let o=parseFloat(e);return isNaN(o)?r:o}constructor(e,r,o,c,d){typeof d<"u"&&(d.type="number",d.default=o),super(e,r,o,d),this.validationFn=c}validate(e){return this.validationFn(l.float(e,this.defaultValue))}},jO=class l extends Obe{static string(e,r){return typeof e!="string"?r:e}constructor(e,r,o,c=void 0){typeof c<"u"&&(c.type="string",c.default=o),super(e,r,o,c)}validate(e){return l.string(e,this.defaultValue)}};ZS=class extends Obe{constructor(e,r,o,c,d=void 0){typeof d<"u"&&(d.type="string",d.enum=c,d.default=o),super(e,r,o,d),this._allowedValues=c}validate(e){return EC(e,this.defaultValue,this._allowedValues)}},Hze=class extends H1{constructor(e,r,o,c,d,h,b=void 0){typeof b<"u"&&(b.type="string",b.enum=d,b.default=c),super(e,r,o,b),this._allowedValues=d,this._convert=h}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}};bYt=class extends H1{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[ce("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached."),ce("accessibilitySupport.on","Optimize for usage with a Screen Reader."),ce("accessibilitySupport.off","Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:ce("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,r,o){return o===0?e.accessibilitySupport:o}},SYt=class extends H1{constructor(){let e={insertSpace:!0,ignoreEmptyLines:!0};super(23,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:ce("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:ce("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;let r=e;return{insertSpace:gu(r.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:gu(r.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}};(function(l){l[l.Line=1]="Line",l[l.Block=2]="Block",l[l.Underline=3]="Underline",l[l.LineThin=4]="LineThin",l[l.BlockOutline=5]="BlockOutline",l[l.UnderlineThin=6]="UnderlineThin"})(ND||(ND={}));xYt=class extends P4e{constructor(){super(142)}compute(e,r,o){let c=["monaco-editor"];return r.get(39)&&c.push(r.get(39)),e.extraEditorClassName&&c.push(e.extraEditorClassName),r.get(74)==="default"?c.push("mouse-default"):r.get(74)==="copy"&&c.push("mouse-copy"),r.get(111)&&c.push("showUnused"),r.get(140)&&c.push("showDeprecated"),c.join(" ")}},CYt=class extends ah{constructor(){super(37,"emptySelectionClipboard",!0,{description:ce("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,r,o){return o&&e.emptySelectionClipboard}},kYt=class extends H1{constructor(){let 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:ce("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:[ce("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),ce("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),ce("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:ce("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:[ce("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),ce("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),ce("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:ce("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:ce("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:md},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:ce("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:ce("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||typeof e!="object")return this.defaultValue;let r=e;return{cursorMoveOnType:gu(r.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":EC(r.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":EC(r.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:gu(r.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:gu(r.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:gu(r.loop,this.defaultValue.loop)}}},SR=class l extends H1{constructor(){super(51,"fontLigatures",l.OFF,{anyOf:[{type:"boolean",description:ce("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:ce("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:ce("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 typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"||e.length===0?l.OFF:e==="true"?l.ON:e:e?l.ON:l.OFF}};SR.OFF='"liga" off, "calt" off';SR.ON='"liga" on, "calt" on';Fbe=class l extends H1{constructor(){super(54,"fontVariations",l.OFF,{anyOf:[{type:"boolean",description:ce("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:ce("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:ce("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 typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?l.OFF:e==="true"?l.TRANSLATE:e:e?l.TRANSLATE:l.OFF}compute(e,r,o){return e.fontInfo.fontVariationSettings}};Fbe.OFF="normal";Fbe.TRANSLATE="translate";wYt=class extends P4e{constructor(){super(50)}compute(e,r,o){return e.fontInfo}},TYt=class extends Obe{constructor(){super(52,"fontSize",sA.fontSize,{type:"number",minimum:6,maximum:100,default:sA.fontSize,description:ce("fontSize","Controls the font size in pixels.")})}validate(e){let r=hB.float(e,this.defaultValue);return r===0?sA.fontSize:hB.clamp(r,6,100)}compute(e,r,o){return e.fontInfo.fontSize}},qze=class l extends H1{constructor(){super(53,"fontWeight",sA.fontWeight,{anyOf:[{type:"number",minimum:l.MINIMUM_VALUE,maximum:l.MAXIMUM_VALUE,errorMessage:ce("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:l.SUGGESTION_VALUES}],default:sA.fontWeight,description:ce("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(jv.clampedInt(e,sA.fontWeight,l.MINIMUM_VALUE,l.MAXIMUM_VALUE))}};qze.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"];qze.MINIMUM_VALUE=1;qze.MAXIMUM_VALUE=1e3;EYt=class extends H1{constructor(){let e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},r={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[ce("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),ce("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),ce("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},o=["","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:ce("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:ce("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist."),...r},"editor.gotoLocation.multipleTypeDefinitions":{description:ce("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist."),...r},"editor.gotoLocation.multipleDeclarations":{description:ce("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist."),...r},"editor.gotoLocation.multipleImplementations":{description:ce("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist."),...r},"editor.gotoLocation.multipleReferences":{description:ce("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist."),...r},"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:o,description:ce("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:o,description:ce("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:o,description:ce("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:o,description:ce("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:o,description:ce("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var r,o,c,d,h;if(!e||typeof e!="object")return this.defaultValue;let b=e;return{multiple:EC(b.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(r=b.multipleDefinitions)!==null&&r!==void 0?r:EC(b.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(o=b.multipleTypeDefinitions)!==null&&o!==void 0?o:EC(b.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(c=b.multipleDeclarations)!==null&&c!==void 0?c:EC(b.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(d=b.multipleImplementations)!==null&&d!==void 0?d:EC(b.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(h=b.multipleReferences)!==null&&h!==void 0?h:EC(b.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:jO.string(b.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:jO.string(b.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:jO.string(b.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:jO.string(b.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:jO.string(b.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}},DYt=class extends H1{constructor(){let e={enabled:!0,delay:300,hidingDelay:300,sticky:!0,above:!0};super(60,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:ce("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:ce("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:ce("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:ce("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:ce("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;let r=e;return{enabled:gu(r.enabled,this.defaultValue.enabled),delay:jv.clampedInt(r.delay,this.defaultValue.delay,0,1e4),sticky:gu(r.sticky,this.defaultValue.sticky),hidingDelay:jv.clampedInt(r.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:gu(r.above,this.defaultValue.above)}}},$lt=class l extends P4e{constructor(){super(145)}compute(e,r,o){return l.computeLayout(r,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio,glyphMarginDecorationLaneCount:e.glyphMarginDecorationLaneCount})}static computeContainedMinimapLineCount(e){let r=e.height/e.lineHeight,o=Math.floor(e.paddingTop/e.lineHeight),c=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(c=Math.max(c,r-1));let d=(o+e.viewLineCount+c)/(e.pixelRatio*e.height),h=Math.floor(e.viewLineCount/d);return{typicalViewportLineCount:r,extraLinesBeforeFirstLine:o,extraLinesBeyondLastLine:c,desiredRatio:d,minimapLineCount:h}}static _computeMinimapLayout(e,r){let o=e.outerWidth,c=e.outerHeight,d=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(d*c),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:c};let h=r.stableMinimapLayoutInput,b=h&&e.outerHeight===h.outerHeight&&e.lineHeight===h.lineHeight&&e.typicalHalfwidthCharacterWidth===h.typicalHalfwidthCharacterWidth&&e.pixelRatio===h.pixelRatio&&e.scrollBeyondLastLine===h.scrollBeyondLastLine&&e.paddingTop===h.paddingTop&&e.paddingBottom===h.paddingBottom&&e.minimap.enabled===h.minimap.enabled&&e.minimap.side===h.minimap.side&&e.minimap.size===h.minimap.size&&e.minimap.showSlider===h.minimap.showSlider&&e.minimap.renderCharacters===h.minimap.renderCharacters&&e.minimap.maxColumn===h.minimap.maxColumn&&e.minimap.scale===h.minimap.scale&&e.verticalScrollbarWidth===h.verticalScrollbarWidth&&e.isViewportWrapping===h.isViewportWrapping,w=e.lineHeight,N=e.typicalHalfwidthCharacterWidth,L=e.scrollBeyondLastLine,B=e.minimap.renderCharacters,F=d>=2?Math.round(e.minimap.scale*2):e.minimap.scale,Y=e.minimap.maxColumn,Z=e.minimap.size,ee=e.minimap.side,Te=e.verticalScrollbarWidth,Je=e.viewLineCount,Xe=e.remainingWidth,ct=e.isViewportWrapping,Ct=B?2:3,Nt=Math.floor(d*c),Yt=Nt/d,jt=!1,mi=!1,_n=Ct*F,Pr=F/d,dr=1;if(Z==="fill"||Z==="fit"){let{typicalViewportLineCount:Dl,extraLinesBeforeFirstLine:$s,extraLinesBeyondLastLine:cr,desiredRatio:za,minimapLineCount:Uc}=l.computeContainedMinimapLineCount({viewLineCount:Je,scrollBeyondLastLine:L,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:c,lineHeight:w,pixelRatio:d});if(Je/Uc>1)jt=!0,mi=!0,F=1,_n=1,Pr=F/d;else{let Xl=!1,Vb=F+1;if(Z==="fit"){let Dc=Math.ceil(($s+Je+cr)*_n);ct&&b&&Xe<=r.stableFitRemainingWidth?(Xl=!0,Vb=r.stableFitMaxMinimapScale):Xl=Dc>Nt}if(Z==="fill"||Xl){jt=!0;let Dc=F;_n=Math.min(w*d,Math.max(1,Math.floor(1/za))),ct&&b&&Xe<=r.stableFitRemainingWidth&&(Vb=r.stableFitMaxMinimapScale),F=Math.min(Vb,Math.max(1,Math.floor(_n/Ct))),F>Dc&&(dr=Math.min(2,F/Dc)),Pr=F/d/dr,Nt=Math.ceil(Math.max(Dl,$s+Je+cr)*_n),ct?(r.stableMinimapLayoutInput=e,r.stableFitRemainingWidth=Xe,r.stableFitMaxMinimapScale=F):(r.stableMinimapLayoutInput=null,r.stableFitRemainingWidth=0)}}}let Rr=Math.floor(Y*Pr),Tn=Math.min(Rr,Math.max(0,Math.floor((Xe-Te-2)*Pr/(N+Pr)))+BY),Qn=Math.floor(d*Tn),ks=Qn/d;Qn=Math.floor(Qn*dr);let La=B?1:2,$i=ee==="left"?0:o-Tn-Te;return{renderMinimap:La,minimapLeft:$i,minimapWidth:Tn,minimapHeightIsEditorHeight:jt,minimapIsSampling:mi,minimapScale:F,minimapLineHeight:_n,minimapCanvasInnerWidth:Qn,minimapCanvasInnerHeight:Nt,minimapCanvasOuterWidth:ks,minimapCanvasOuterHeight:Yt}}static computeLayout(e,r){let o=r.outerWidth|0,c=r.outerHeight|0,d=r.lineHeight|0,h=r.lineNumbersDigitCount|0,b=r.typicalHalfwidthCharacterWidth,w=r.maxDigitWidth,N=r.pixelRatio,L=r.viewLineCount,B=e.get(137),F=B==="inherit"?e.get(136):B,Y=F==="inherit"?e.get(132):F,Z=e.get(135),ee=r.isDominatedByLongLines,Te=e.get(57),Je=e.get(68).renderType!==0,Xe=e.get(69),ct=e.get(105),Ct=e.get(84),Nt=e.get(73),Yt=e.get(103),jt=Yt.verticalScrollbarSize,mi=Yt.verticalHasArrows,_n=Yt.arrowSize,Pr=Yt.horizontalScrollbarSize,dr=e.get(43),Rr=e.get(110)!=="never",Tn=e.get(66);dr&&Rr&&(Tn+=16);let Qn=0;if(Je){let Hv=Math.max(h,Xe);Qn=Math.round(Hv*w)}let ks=0;Te&&(ks=d*r.glyphMarginDecorationLaneCount);let La=0,$i=La+ks,Dl=$i+Qn,$s=Dl+Tn,cr=o-ks-Qn-Tn,za=!1,Uc=!1,Ya=-1;F==="inherit"&&ee?(za=!0,Uc=!0):Y==="on"||Y==="bounded"?Uc=!0:Y==="wordWrapColumn"&&(Ya=Z);let Xl=l._computeMinimapLayout({outerWidth:o,outerHeight:c,lineHeight:d,typicalHalfwidthCharacterWidth:b,pixelRatio:N,scrollBeyondLastLine:ct,paddingTop:Ct.top,paddingBottom:Ct.bottom,minimap:Nt,verticalScrollbarWidth:jt,viewLineCount:L,remainingWidth:cr,isViewportWrapping:Uc},r.memory||new qlt);Xl.renderMinimap!==0&&Xl.minimapLeft===0&&(La+=Xl.minimapWidth,$i+=Xl.minimapWidth,Dl+=Xl.minimapWidth,$s+=Xl.minimapWidth);let Vb=cr-Xl.minimapWidth,Dc=Math.max(1,Math.floor((Vb-jt-2)/b)),up=mi?_n:0;return Uc&&(Ya=Math.max(1,Dc),Y==="bounded"&&(Ya=Math.min(Ya,Z))),{width:o,height:c,glyphMarginLeft:La,glyphMarginWidth:ks,glyphMarginDecorationLaneCount:r.glyphMarginDecorationLaneCount,lineNumbersLeft:$i,lineNumbersWidth:Qn,decorationsLeft:Dl,decorationsWidth:Tn,contentLeft:$s,contentWidth:Vb,minimap:Xl,viewportColumn:Dc,isWordWrapMinified:za,isViewportWrapping:Uc,wrappingColumn:Ya,verticalScrollbarWidth:jt,horizontalScrollbarHeight:Pr,overviewRuler:{top:up,width:jt,height:c-2*up,right:0}}}},IYt=class extends H1{constructor(){super(139,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[ce("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."),ce("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:ce("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 EC(e,"simple",["simple","advanced"])}compute(e,r,o){return r.get(2)===2?"advanced":o}};(function(l){l.Off="off",l.OnCode="onCode",l.On="on"})(aV||(aV={}));NYt=class extends H1{constructor(){let e={enabled:aV.On};super(65,"lightbulb",e,{"editor.lightbulb.enabled":{type:"string",tags:["experimental"],enum:[aV.Off,aV.OnCode,aV.On],default:e.enabled,enumDescriptions:[ce("editor.lightbulb.enabled.off","Disable the code action menu."),ce("editor.lightbulb.enabled.onCode","Show the code action menu when the cursor is on lines with code."),ce("editor.lightbulb.enabled.on","Show the code action menu when the cursor is on lines with code or on empty lines.")],description:ce("enabled","Enables the Code Action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:EC(e.enabled,this.defaultValue.enabled,[aV.Off,aV.OnCode,aV.On])}}},AYt=class extends H1{constructor(){let e={enabled:!0,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(115,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:ce("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:ce("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:ce("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:ce("editor.stickyScroll.scrollWithEditor","Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;let r=e;return{enabled:gu(r.enabled,this.defaultValue.enabled),maxLineCount:jv.clampedInt(r.maxLineCount,this.defaultValue.maxLineCount,1,20),defaultModel:EC(r.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:gu(r.scrollWithEditor,this.defaultValue.scrollWithEditor)}}},PYt=class extends H1{constructor(){let e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(141,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:ce("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[ce("editor.inlayHints.on","Inlay hints are enabled"),ce("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",md?"Ctrl+Option":"Ctrl+Alt"),ce("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",md?"Ctrl+Option":"Ctrl+Alt"),ce("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:ce("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:ce("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:ce("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;let r=e;return typeof r.enabled=="boolean"&&(r.enabled=r.enabled?"on":"off"),{enabled:EC(r.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:jv.clampedInt(r.fontSize,this.defaultValue.fontSize,0,100),fontFamily:jO.string(r.fontFamily,this.defaultValue.fontFamily),padding:gu(r.padding,this.defaultValue.padding)}}},LYt=class extends H1{constructor(){super(66,"lineDecorationsWidth",10)}validate(e){return typeof e=="string"&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):jv.clampedInt(e,this.defaultValue,0,1e3)}compute(e,r,o){return o<0?jv.clampedInt(-o*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):o}},OYt=class extends hB{constructor(){super(67,"lineHeight",sA.lineHeight,e=>hB.clamp(e,0,150),{markdownDescription:ce("lineHeight",`Controls the line height. + - Use 0 to automatically compute the line height from the font size. + - Values between 0 and 8 will be used as a multiplier with the font size. + - Values greater than or equal to 8 will be used as effective values.`)})}compute(e,r,o){return e.fontInfo.lineHeight}},FYt=class extends H1{constructor(){let 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:ce("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:ce("minimap.autohide","Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[ce("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),ce("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),ce("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:ce("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:ce("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:ce("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:ce("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:ce("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:ce("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:ce("minimap.showRegionSectionHeaders","Controls whether named regions are shown as section headers in the minimap.")},"editor.minimap.showMarkSectionHeaders":{type:"boolean",default:e.showMarkSectionHeaders,description:ce("minimap.showMarkSectionHeaders","Controls whether MARK: comments are shown as section headers in the minimap.")},"editor.minimap.sectionHeaderFontSize":{type:"number",default:e.sectionHeaderFontSize,description:ce("minimap.sectionHeaderFontSize","Controls the font size of section headers in the minimap.")},"editor.minimap.sectionHeaderLetterSpacing":{type:"number",default:e.sectionHeaderLetterSpacing,description:ce("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){var r,o;if(!e||typeof e!="object")return this.defaultValue;let c=e;return{enabled:gu(c.enabled,this.defaultValue.enabled),autohide:gu(c.autohide,this.defaultValue.autohide),size:EC(c.size,this.defaultValue.size,["proportional","fill","fit"]),side:EC(c.side,this.defaultValue.side,["right","left"]),showSlider:EC(c.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:gu(c.renderCharacters,this.defaultValue.renderCharacters),scale:jv.clampedInt(c.scale,1,1,3),maxColumn:jv.clampedInt(c.maxColumn,this.defaultValue.maxColumn,1,1e4),showRegionSectionHeaders:gu(c.showRegionSectionHeaders,this.defaultValue.showRegionSectionHeaders),showMarkSectionHeaders:gu(c.showMarkSectionHeaders,this.defaultValue.showMarkSectionHeaders),sectionHeaderFontSize:hB.clamp((r=c.sectionHeaderFontSize)!==null&&r!==void 0?r:this.defaultValue.sectionHeaderFontSize,4,32),sectionHeaderLetterSpacing:hB.clamp((o=c.sectionHeaderLetterSpacing)!==null&&o!==void 0?o:this.defaultValue.sectionHeaderLetterSpacing,0,5)}}};MYt=class extends H1{constructor(){super(84,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:ce("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:ce("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;let r=e;return{top:jv.clampedInt(r.top,0,0,1e3),bottom:jv.clampedInt(r.bottom,0,0,1e3)}}},RYt=class extends H1{constructor(){let e={enabled:!0,cycle:!0};super(86,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:ce("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:ce("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;let r=e;return{enabled:gu(r.enabled,this.defaultValue.enabled),cycle:gu(r.cycle,this.defaultValue.cycle)}}},BYt=class extends P4e{constructor(){super(143)}compute(e,r,o){return e.pixelRatio}},jYt=class extends H1{constructor(){let e={other:"on",comments:"off",strings:"off"},r=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[ce("on","Quick suggestions show inside the suggest widget"),ce("inline","Quick suggestions show as ghost text"),ce("off","Quick suggestions are disabled")]}];super(89,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:r,default:e.strings,description:ce("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{anyOf:r,default:e.comments,description:ce("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{anyOf:r,default:e.other,description:ce("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:ce("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(typeof e=="boolean"){let N=e?"on":"off";return{comments:N,strings:N,other:N}}if(!e||typeof e!="object")return this.defaultValue;let{other:r,comments:o,strings:c}=e,d=["on","inline","off"],h,b,w;return typeof r=="boolean"?h=r?"on":"off":h=EC(r,this.defaultValue.other,d),typeof o=="boolean"?b=o?"on":"off":b=EC(o,this.defaultValue.comments,d),typeof c=="boolean"?w=c?"on":"off":w=EC(c,this.defaultValue.strings,d),{other:h,comments:b,strings:w}}},WYt=class extends H1{constructor(){super(68,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[ce("lineNumbers.off","Line numbers are not rendered."),ce("lineNumbers.on","Line numbers are rendered as absolute number."),ce("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),ce("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:ce("lineNumbers","Controls the display of line numbers.")})}validate(e){let r=this.defaultValue.renderType,o=this.defaultValue.renderFn;return typeof e<"u"&&(typeof e=="function"?(r=4,o=e):e==="interval"?r=3:e==="relative"?r=2:e==="on"?r=1:r=0),{renderType:r,renderFn:o}}};zYt=class extends H1{constructor(){let e=[],r={type:"number",description:ce("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(102,"rulers",e,{type:"array",items:{anyOf:[r,{type:["object"],properties:{column:r,color:{type:"string",description:ce("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:ce("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)){let r=[];for(let o of e)if(typeof o=="number")r.push({column:jv.clampedInt(o,0,0,1e4),color:null});else if(o&&typeof o=="object"){let c=o;r.push({column:jv.clampedInt(c.column,0,0,1e4),color:c.color})}return r.sort((o,c)=>o.column-c.column),r}return this.defaultValue}},VYt=class extends H1{constructor(){super(92,"readOnlyMessage",void 0)}validate(e){return!e||typeof e!="object"?this.defaultValue:e}};HYt=class extends H1{constructor(){let e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1,ignoreHorizontalScrollbarInContentHeight:!1};super(103,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[ce("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),ce("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),ce("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:ce("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[ce("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),ce("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),ce("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:ce("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:ce("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:ce("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:ce("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")},"editor.scrollbar.ignoreHorizontalScrollbarInContentHeight":{type:"boolean",default:e.ignoreHorizontalScrollbarInContentHeight,description:ce("scrollbar.ignoreHorizontalScrollbarInContentHeight","When set, the horizontal scrollbar will not increase the size of the editor's content.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;let r=e,o=jv.clampedInt(r.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),c=jv.clampedInt(r.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:jv.clampedInt(r.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:Sgi(r.vertical,this.defaultValue.vertical),horizontal:Sgi(r.horizontal,this.defaultValue.horizontal),useShadows:gu(r.useShadows,this.defaultValue.useShadows),verticalHasArrows:gu(r.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:gu(r.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:gu(r.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:gu(r.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:o,horizontalSliderSize:jv.clampedInt(r.horizontalSliderSize,o,0,1e3),verticalScrollbarSize:c,verticalSliderSize:jv.clampedInt(r.verticalSliderSize,c,0,1e3),scrollByPage:gu(r.scrollByPage,this.defaultValue.scrollByPage),ignoreHorizontalScrollbarInContentHeight:gu(r.ignoreHorizontalScrollbarInContentHeight,this.defaultValue.ignoreHorizontalScrollbarInContentHeight)}}},bR="inUntrustedWorkspace",WO={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"},UYt=class extends H1{constructor(){let e={nonBasicASCII:bR,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:bR,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(125,"unicodeHighlight",e,{[WO.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,bR],default:e.nonBasicASCII,description:ce("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.")},[WO.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:ce("unicodeHighlight.invisibleCharacters","Controls whether characters that just reserve space or have no width at all are highlighted.")},[WO.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:ce("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.")},[WO.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,bR],default:e.includeComments,description:ce("unicodeHighlight.includeComments","Controls whether characters in comments should also be subject to Unicode highlighting.")},[WO.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,bR],default:e.includeStrings,description:ce("unicodeHighlight.includeStrings","Controls whether characters in strings should also be subject to Unicode highlighting.")},[WO.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:ce("unicodeHighlight.allowedCharacters","Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[WO.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:ce("unicodeHighlight.allowedLocales","Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,r){let o=!1;r.allowedCharacters&&e&&(FI(e.allowedCharacters,r.allowedCharacters)||(e={...e,allowedCharacters:r.allowedCharacters},o=!0)),r.allowedLocales&&e&&(FI(e.allowedLocales,r.allowedLocales)||(e={...e,allowedLocales:r.allowedLocales},o=!0));let c=super.applyUpdate(e,r);return o?new Lbe(c.newValue,!0):c}validate(e){if(!e||typeof e!="object")return this.defaultValue;let r=e;return{nonBasicASCII:Uze(r.nonBasicASCII,bR,[!0,!1,bR]),invisibleCharacters:gu(r.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:gu(r.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:Uze(r.includeComments,bR,[!0,!1,bR]),includeStrings:Uze(r.includeStrings,bR,[!0,!1,bR]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(e,r){if(typeof e!="object"||!e)return r;let o={};for(let[c,d]of Object.entries(e))d===!0&&(o[c]=!0);return o}},JYt=class extends H1{constructor(){let 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:ce("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:[ce("inlineSuggest.showToolbar.always","Show the inline suggestion toolbar whenever an inline suggestion is shown."),ce("inlineSuggest.showToolbar.onHover","Show the inline suggestion toolbar when hovering over an inline suggestion."),ce("inlineSuggest.showToolbar.never","Never show the inline suggestion toolbar.")],description:ce("inlineSuggest.showToolbar","Controls when to show the inline suggestion toolbar.")},"editor.inlineSuggest.suppressSuggestions":{type:"boolean",default:e.suppressSuggestions,description:ce("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:ce("inlineSuggest.fontFamily","Controls the font family of the inline suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;let r=e;return{enabled:gu(r.enabled,this.defaultValue.enabled),mode:EC(r.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:EC(r.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),suppressSuggestions:gu(r.suppressSuggestions,this.defaultValue.suppressSuggestions),keepOnBlur:gu(r.keepOnBlur,this.defaultValue.keepOnBlur),fontFamily:jO.string(r.fontFamily,this.defaultValue.fontFamily)}}},qYt=class extends H1{constructor(){let e={enabled:!1,showToolbar:"onHover",fontFamily:"default",keepOnBlur:!1,backgroundColoring:!1};super(63,"experimentalInlineEdit",e,{"editor.experimentalInlineEdit.enabled":{type:"boolean",default:e.enabled,description:ce("inlineEdit.enabled","Controls whether to show inline edits in the editor.")},"editor.experimentalInlineEdit.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[ce("inlineEdit.showToolbar.always","Show the inline edit toolbar whenever an inline suggestion is shown."),ce("inlineEdit.showToolbar.onHover","Show the inline edit toolbar when hovering over an inline suggestion."),ce("inlineEdit.showToolbar.never","Never show the inline edit toolbar.")],description:ce("inlineEdit.showToolbar","Controls when to show the inline edit toolbar.")},"editor.experimentalInlineEdit.fontFamily":{type:"string",default:e.fontFamily,description:ce("inlineEdit.fontFamily","Controls the font family of the inline edit.")},"editor.experimentalInlineEdit.backgroundColoring":{type:"boolean",default:e.backgroundColoring,description:ce("inlineEdit.backgroundColoring","Controls whether to color the background of inline edits.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;let r=e;return{enabled:gu(r.enabled,this.defaultValue.enabled),showToolbar:EC(r.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),fontFamily:jO.string(r.fontFamily,this.defaultValue.fontFamily),keepOnBlur:gu(r.keepOnBlur,this.defaultValue.keepOnBlur),backgroundColoring:gu(r.backgroundColoring,this.defaultValue.backgroundColoring)}}},$Yt=class extends H1{constructor(){let e={enabled:ID.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:ID.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(15,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:ce("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:ce("bracketPairColorization.independentColorPoolPerBracketType","Controls whether each bracket type has its own independent color pool.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;let r=e;return{enabled:gu(r.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:gu(r.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}},GYt=class extends H1{constructor(){let 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:[ce("editor.guides.bracketPairs.true","Enables bracket pair guides."),ce("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),ce("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:ce("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[ce("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),ce("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),ce("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:ce("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:ce("editor.guides.highlightActiveBracketPair","Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:ce("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[ce("editor.guides.highlightActiveIndentation.true","Highlights the active indent guide."),ce("editor.guides.highlightActiveIndentation.always","Highlights the active indent guide even if bracket guides are highlighted."),ce("editor.guides.highlightActiveIndentation.false","Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:ce("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;let r=e;return{bracketPairs:Uze(r.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:Uze(r.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:gu(r.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:gu(r.indentation,this.defaultValue.indentation),highlightActiveIndentation:Uze(r.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}};KYt=class extends H1{constructor(){let e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!1,localityBonus:!1,shareSuggestSelections:!1,selectionMode:"always",showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,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(118,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[ce("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),ce("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:ce("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:ce("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:ce("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:ce("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:[ce("suggest.insertMode.always","Always select a suggestion when automatically triggering IntelliSense."),ce("suggest.insertMode.never","Never select a suggestion when automatically triggering IntelliSense."),ce("suggest.insertMode.whenTriggerCharacter","Select a suggestion only when triggering IntelliSense from a trigger character."),ce("suggest.insertMode.whenQuickSuggestion","Select a suggestion only when triggering IntelliSense as you type.")],default:e.selectionMode,markdownDescription:ce("suggest.selectionMode","Controls whether a suggestion is selected when the widget shows. Note that this only applies to automatically triggered suggestions (`#editor.quickSuggestions#` and `#editor.suggestOnTriggerCharacters#`) and that a suggestion is always selected when explicitly invoked, e.g via `Ctrl+Space`.")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:ce("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:ce("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:ce("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:ce("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:ce("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:ce("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:ce("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:ce("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:ce("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:ce("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:ce("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:ce("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:ce("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:ce("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:ce("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:ce("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:ce("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:ce("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:ce("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:ce("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:ce("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:ce("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:ce("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:ce("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:ce("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:ce("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:ce("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:ce("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:ce("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:ce("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:ce("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:ce("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:ce("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:ce("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:ce("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:ce("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:ce("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;let r=e;return{insertMode:EC(r.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:gu(r.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:gu(r.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:gu(r.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:gu(r.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:EC(r.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:gu(r.showIcons,this.defaultValue.showIcons),showStatusBar:gu(r.showStatusBar,this.defaultValue.showStatusBar),preview:gu(r.preview,this.defaultValue.preview),previewMode:EC(r.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:gu(r.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:gu(r.showMethods,this.defaultValue.showMethods),showFunctions:gu(r.showFunctions,this.defaultValue.showFunctions),showConstructors:gu(r.showConstructors,this.defaultValue.showConstructors),showDeprecated:gu(r.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:gu(r.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:gu(r.showFields,this.defaultValue.showFields),showVariables:gu(r.showVariables,this.defaultValue.showVariables),showClasses:gu(r.showClasses,this.defaultValue.showClasses),showStructs:gu(r.showStructs,this.defaultValue.showStructs),showInterfaces:gu(r.showInterfaces,this.defaultValue.showInterfaces),showModules:gu(r.showModules,this.defaultValue.showModules),showProperties:gu(r.showProperties,this.defaultValue.showProperties),showEvents:gu(r.showEvents,this.defaultValue.showEvents),showOperators:gu(r.showOperators,this.defaultValue.showOperators),showUnits:gu(r.showUnits,this.defaultValue.showUnits),showValues:gu(r.showValues,this.defaultValue.showValues),showConstants:gu(r.showConstants,this.defaultValue.showConstants),showEnums:gu(r.showEnums,this.defaultValue.showEnums),showEnumMembers:gu(r.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:gu(r.showKeywords,this.defaultValue.showKeywords),showWords:gu(r.showWords,this.defaultValue.showWords),showColors:gu(r.showColors,this.defaultValue.showColors),showFiles:gu(r.showFiles,this.defaultValue.showFiles),showReferences:gu(r.showReferences,this.defaultValue.showReferences),showFolders:gu(r.showFolders,this.defaultValue.showFolders),showTypeParameters:gu(r.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:gu(r.showSnippets,this.defaultValue.showSnippets),showUsers:gu(r.showUsers,this.defaultValue.showUsers),showIssues:gu(r.showIssues,this.defaultValue.showIssues)}}},XYt=class extends H1{constructor(){super(113,"smartSelect",{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:ce("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"},"editor.smartSelect.selectSubwords":{description:ce("selectSubwords","Whether subwords (like 'foo' in 'fooBar' or 'foo_bar') should be selected."),default:!0,type:"boolean"}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{selectLeadingAndTrailingWhitespace:gu(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace),selectSubwords:gu(e.selectSubwords,this.defaultValue.selectSubwords)}}},YYt=class extends H1{constructor(){let e=[];super(130,"wordSegmenterLocales",e,{anyOf:[{description:ce("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:ce("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(typeof e=="string"&&(e=[e]),Array.isArray(e)){let r=[];for(let o of e)if(typeof o=="string")try{Intl.Segmenter.supportedLocalesOf(o).length>0&&r.push(o)}catch{}return r}return this.defaultValue}},QYt=class extends H1{constructor(){super(138,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[ce("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),ce("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),ce("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),ce("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:ce("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,r,o){return r.get(2)===2?0:o}},ZYt=class extends P4e{constructor(){super(146)}compute(e,r,o){let c=r.get(145);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:c.isWordWrapMinified,isViewportWrapping:c.isViewportWrapping,wrappingColumn:c.wrappingColumn}}},eQt=class extends H1{constructor(){let e={enabled:!0,showDropSelector:"afterDrop"};super(36,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:ce("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:ce("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:[ce("dropIntoEditor.showDropSelector.afterDrop","Show the drop selector widget after a file is dropped into the editor."),ce("dropIntoEditor.showDropSelector.never","Never show the drop selector widget. Instead the default drop provider is always used.")],default:"afterDrop"}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;let r=e;return{enabled:gu(r.enabled,this.defaultValue.enabled),showDropSelector:EC(r.showDropSelector,this.defaultValue.showDropSelector,["afterDrop","never"])}}},tQt=class extends H1{constructor(){let e={enabled:!0,showPasteSelector:"afterPaste"};super(85,"pasteAs",e,{"editor.pasteAs.enabled":{type:"boolean",default:e.enabled,markdownDescription:ce("pasteAs.enabled","Controls whether you can paste content in different ways.")},"editor.pasteAs.showPasteSelector":{type:"string",markdownDescription:ce("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:[ce("pasteAs.showPasteSelector.afterPaste","Show the paste selector widget after content is pasted into the editor."),ce("pasteAs.showPasteSelector.never","Never show the paste selector widget. Instead the default pasting behavior is always used.")],default:"afterPaste"}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;let r=e;return{enabled:gu(r.enabled,this.defaultValue.enabled),showPasteSelector:EC(r.showPasteSelector,this.defaultValue.showPasteSelector,["afterPaste","never"])}}},EMi="Consolas, 'Courier New', monospace",DMi="Menlo, Monaco, 'Courier New', monospace",IMi="'Droid Sans Mono', 'monospace', monospace",sA={fontFamily:md?DMi:kS?IMi:EMi,fontWeight:"normal",fontSize:md?12:14,lineHeight:0,letterSpacing:0},Rbe=[];XF={acceptSuggestionOnCommitCharacter:$a(new ah(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:ce("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:$a(new ZS(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",ce("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:ce("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:$a(new bYt),accessibilityPageSize:$a(new jv(3,"accessibilityPageSize",10,1,1073741824,{description:ce("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:$a(new jO(4,"ariaLabel",ce("editorViewAccessibleLabel","Editor content"))),ariaRequired:$a(new ah(5,"ariaRequired",!1,void 0)),screenReaderAnnounceInlineSuggestion:$a(new ah(8,"screenReaderAnnounceInlineSuggestion",!0,{description:ce("screenReaderAnnounceInlineSuggestion","Control whether inline suggestions are announced by a screen reader."),tags:["accessibility"]})),autoClosingBrackets:$a(new ZS(6,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",ce("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),ce("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:ce("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingComments:$a(new ZS(7,"autoClosingComments","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",ce("editor.autoClosingComments.languageDefined","Use language configurations to determine when to autoclose comments."),ce("editor.autoClosingComments.beforeWhitespace","Autoclose comments only when the cursor is to the left of whitespace."),""],description:ce("autoClosingComments","Controls whether the editor should automatically close comments after the user adds an opening comment.")})),autoClosingDelete:$a(new ZS(9,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",ce("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:ce("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:$a(new ZS(10,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",ce("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:ce("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:$a(new ZS(11,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",ce("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),ce("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:ce("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:$a(new Hze(12,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],CMi,{enumDescriptions:[ce("editor.autoIndent.none","The editor will not insert indentation automatically."),ce("editor.autoIndent.keep","The editor will keep the current line's indentation."),ce("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),ce("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),ce("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:ce("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:$a(new ah(13,"automaticLayout",!1)),autoSurround:$a(new ZS(14,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[ce("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),ce("editor.autoSurround.quotes","Surround with quotes but not brackets."),ce("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:ce("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:$a(new $Yt),bracketPairGuides:$a(new GYt),stickyTabStops:$a(new ah(116,"stickyTabStops",!1,{description:ce("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:$a(new ah(17,"codeLens",!0,{description:ce("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:$a(new jO(18,"codeLensFontFamily","",{description:ce("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:$a(new jv(19,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:ce("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),colorDecorators:$a(new ah(20,"colorDecorators",!0,{description:ce("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),colorDecoratorActivatedOn:$a(new ZS(148,"colorDecoratorsActivatedOn","clickAndHover",["clickAndHover","hover","click"],{enumDescriptions:[ce("editor.colorDecoratorActivatedOn.clickAndHover","Make the color picker appear both on click and hover of the color decorator"),ce("editor.colorDecoratorActivatedOn.hover","Make the color picker appear on hover of the color decorator"),ce("editor.colorDecoratorActivatedOn.click","Make the color picker appear on click of the color decorator")],description:ce("colorDecoratorActivatedOn","Controls the condition to make a color picker appear from a color decorator")})),colorDecoratorsLimit:$a(new jv(21,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:ce("colorDecoratorsLimit","Controls the max number of color decorators that can be rendered in an editor at once.")})),columnSelection:$a(new ah(22,"columnSelection",!1,{description:ce("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:$a(new SYt),contextmenu:$a(new ah(24,"contextmenu",!0)),copyWithSyntaxHighlighting:$a(new ah(25,"copyWithSyntaxHighlighting",!0,{description:ce("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:$a(new Hze(26,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],kMi,{description:ce("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:$a(new ZS(27,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[ce("cursorSmoothCaretAnimation.off","Smooth caret animation is disabled."),ce("cursorSmoothCaretAnimation.explicit","Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),ce("cursorSmoothCaretAnimation.on","Smooth caret animation is always enabled.")],description:ce("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:$a(new Hze(28,"cursorStyle",ND.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],wMi,{description:ce("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:$a(new jv(29,"cursorSurroundingLines",0,0,1073741824,{description:ce("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:$a(new ZS(30,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[ce("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),ce("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],markdownDescription:ce("cursorSurroundingLinesStyle","Controls when `#editor.cursorSurroundingLines#` should be enforced.")})),cursorWidth:$a(new jv(31,"cursorWidth",0,0,1073741824,{markdownDescription:ce("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:$a(new ah(32,"disableLayerHinting",!1)),disableMonospaceOptimizations:$a(new ah(33,"disableMonospaceOptimizations",!1)),domReadOnly:$a(new ah(34,"domReadOnly",!1)),dragAndDrop:$a(new ah(35,"dragAndDrop",!0,{description:ce("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:$a(new CYt),dropIntoEditor:$a(new eQt),stickyScroll:$a(new AYt),experimentalWhitespaceRendering:$a(new ZS(38,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[ce("experimentalWhitespaceRendering.svg","Use a new rendering method with svgs."),ce("experimentalWhitespaceRendering.font","Use a new rendering method with font characters."),ce("experimentalWhitespaceRendering.off","Use the stable rendering method.")],description:ce("experimentalWhitespaceRendering","Controls whether whitespace is rendered with a new, experimental method.")})),extraEditorClassName:$a(new jO(39,"extraEditorClassName","")),fastScrollSensitivity:$a(new hB(40,"fastScrollSensitivity",5,l=>l<=0?5:l,{markdownDescription:ce("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:$a(new kYt),fixedOverflowWidgets:$a(new ah(42,"fixedOverflowWidgets",!1)),folding:$a(new ah(43,"folding",!0,{description:ce("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:$a(new ZS(44,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[ce("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),ce("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:ce("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:$a(new ah(45,"foldingHighlight",!0,{description:ce("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:$a(new ah(46,"foldingImportsByDefault",!1,{description:ce("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:$a(new jv(47,"foldingMaximumRegions",5e3,10,65e3,{description:ce("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:$a(new ah(48,"unfoldOnClickAfterEndOfLine",!1,{description:ce("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:$a(new jO(49,"fontFamily",sA.fontFamily,{description:ce("fontFamily","Controls the font family.")})),fontInfo:$a(new wYt),fontLigatures2:$a(new SR),fontSize:$a(new TYt),fontWeight:$a(new qze),fontVariations:$a(new Fbe),formatOnPaste:$a(new ah(55,"formatOnPaste",!1,{description:ce("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:$a(new ah(56,"formatOnType",!1,{description:ce("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:$a(new ah(57,"glyphMargin",!0,{description:ce("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:$a(new EYt),hideCursorInOverviewRuler:$a(new ah(59,"hideCursorInOverviewRuler",!1,{description:ce("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:$a(new DYt),inDiffEditor:$a(new ah(61,"inDiffEditor",!1)),letterSpacing:$a(new hB(64,"letterSpacing",sA.letterSpacing,l=>hB.clamp(l,-5,20),{description:ce("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:$a(new NYt),lineDecorationsWidth:$a(new LYt),lineHeight:$a(new OYt),lineNumbers:$a(new WYt),lineNumbersMinChars:$a(new jv(69,"lineNumbersMinChars",5,1,300)),linkedEditing:$a(new ah(70,"linkedEditing",!1,{description:ce("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),links:$a(new ah(71,"links",!0,{description:ce("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:$a(new ZS(72,"matchBrackets","always",["always","near","never"],{description:ce("matchBrackets","Highlight matching brackets.")})),minimap:$a(new FYt),mouseStyle:$a(new ZS(74,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:$a(new hB(75,"mouseWheelScrollSensitivity",1,l=>l===0?1:l,{markdownDescription:ce("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:$a(new ah(76,"mouseWheelZoom",!1,{markdownDescription:md?ce("mouseWheelZoom.mac","Zoom the font of the editor when using mouse wheel and holding `Cmd`."):ce("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:$a(new ah(77,"multiCursorMergeOverlapping",!0,{description:ce("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:$a(new Hze(78,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],TMi,{markdownEnumDescriptions:[ce("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),ce("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:ce({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:$a(new ZS(79,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[ce("multiCursorPaste.spread","Each cursor pastes a single line of the text."),ce("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:ce("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),multiCursorLimit:$a(new jv(80,"multiCursorLimit",1e4,1,1e5,{markdownDescription:ce("multiCursorLimit","Controls the max number of cursors that can be in an active editor at once.")})),occurrencesHighlight:$a(new ZS(81,"occurrencesHighlight","singleFile",["off","singleFile","multiFile"],{markdownEnumDescriptions:[ce("occurrencesHighlight.off","Does not highlight occurrences."),ce("occurrencesHighlight.singleFile","Highlights occurrences only in the current file."),ce("occurrencesHighlight.multiFile","Experimental: Highlights occurrences across all valid open files.")],markdownDescription:ce("occurrencesHighlight","Controls whether occurrences should be highlighted across open files.")})),overviewRulerBorder:$a(new ah(82,"overviewRulerBorder",!0,{description:ce("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:$a(new jv(83,"overviewRulerLanes",3,0,3)),padding:$a(new MYt),pasteAs:$a(new tQt),parameterHints:$a(new RYt),peekWidgetDefaultFocus:$a(new ZS(87,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[ce("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),ce("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:ce("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:$a(new ah(88,"definitionLinkOpensInPeek",!1,{description:ce("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:$a(new jYt),quickSuggestionsDelay:$a(new jv(90,"quickSuggestionsDelay",10,0,1073741824,{description:ce("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:$a(new ah(91,"readOnly",!1)),readOnlyMessage:$a(new VYt),renameOnType:$a(new ah(93,"renameOnType",!1,{description:ce("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:ce("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:$a(new ah(94,"renderControlCharacters",!0,{description:ce("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:$a(new ZS(95,"renderFinalNewline",kS?"dimmed":"on",["off","on","dimmed"],{description:ce("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:$a(new ZS(96,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",ce("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:ce("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:$a(new ah(97,"renderLineHighlightOnlyWhenFocus",!1,{description:ce("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:$a(new ZS(98,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:$a(new ZS(99,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",ce("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),ce("renderWhitespace.selection","Render whitespace characters only on selected text."),ce("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:ce("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:$a(new jv(100,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:$a(new ah(101,"roundedSelection",!0,{description:ce("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:$a(new zYt),scrollbar:$a(new HYt),scrollBeyondLastColumn:$a(new jv(104,"scrollBeyondLastColumn",4,0,1073741824,{description:ce("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:$a(new ah(105,"scrollBeyondLastLine",!0,{description:ce("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:$a(new ah(106,"scrollPredominantAxis",!0,{description:ce("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:$a(new ah(107,"selectionClipboard",!0,{description:ce("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:kS})),selectionHighlight:$a(new ah(108,"selectionHighlight",!0,{description:ce("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:$a(new ah(109,"selectOnLineNumbers",!0)),showFoldingControls:$a(new ZS(110,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[ce("showFoldingControls.always","Always show the folding controls."),ce("showFoldingControls.never","Never show the folding controls and reduce the gutter size."),ce("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:ce("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:$a(new ah(111,"showUnused",!0,{description:ce("showUnused","Controls fading out of unused code.")})),showDeprecated:$a(new ah(140,"showDeprecated",!0,{description:ce("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:$a(new PYt),snippetSuggestions:$a(new ZS(112,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[ce("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),ce("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),ce("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),ce("snippetSuggestions.none","Do not show snippet suggestions.")],description:ce("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:$a(new XYt),smoothScrolling:$a(new ah(114,"smoothScrolling",!1,{description:ce("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:$a(new jv(117,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:$a(new KYt),inlineSuggest:$a(new JYt),inlineEdit:$a(new qYt),inlineCompletionsAccessibilityVerbose:$a(new ah(149,"inlineCompletionsAccessibilityVerbose",!1,{description:ce("inlineCompletionsAccessibilityVerbose","Controls whether the accessibility hint should be provided to screen reader users when an inline completion is shown.")})),suggestFontSize:$a(new jv(119,"suggestFontSize",0,0,1e3,{markdownDescription:ce("suggestFontSize","Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:$a(new jv(120,"suggestLineHeight",0,0,1e3,{markdownDescription:ce("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:$a(new ah(121,"suggestOnTriggerCharacters",!0,{description:ce("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:$a(new ZS(122,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[ce("suggestSelection.first","Always select the first suggestion."),ce("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),ce("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:ce("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:$a(new ZS(123,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[ce("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),ce("tabCompletion.off","Disable tab completions."),ce("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:ce("tabCompletion","Enables tab completions.")})),tabIndex:$a(new jv(124,"tabIndex",0,-1,1073741824)),unicodeHighlight:$a(new UYt),unusualLineTerminators:$a(new ZS(126,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[ce("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),ce("unusualLineTerminators.off","Unusual line terminators are ignored."),ce("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:ce("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:$a(new ah(127,"useShadowDOM",!0)),useTabStops:$a(new ah(128,"useTabStops",!0,{description:ce("useTabStops","Spaces and tabs are inserted and deleted in alignment with tab stops.")})),wordBreak:$a(new ZS(129,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[ce("wordBreak.normal","Use the default line break rule."),ce("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:ce("wordBreak","Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),wordSegmenterLocales:$a(new YYt),wordSeparators:$a(new jO(131,"wordSeparators",vYt,{description:ce("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:$a(new ZS(132,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[ce("wordWrap.off","Lines will never wrap."),ce("wordWrap.on","Lines will wrap at the viewport width."),ce({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),ce({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:ce({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:$a(new jO(133,"wordWrapBreakAfterCharacters"," })]?|/&.,;\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:$a(new jO(134,"wordWrapBreakBeforeCharacters","([{\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B\uFF62\xA3\xA5\uFF04\uFFE1\uFFE5+\uFF0B")),wordWrapColumn:$a(new jv(135,"wordWrapColumn",80,1,1073741824,{markdownDescription:ce({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:$a(new ZS(136,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:$a(new ZS(137,"wordWrapOverride2","inherit",["off","on","inherit"])),editorClassName:$a(new xYt),defaultColorDecorators:$a(new ah(147,"defaultColorDecorators",!1,{markdownDescription:ce("defaultColorDecorators","Controls whether inline color decorations should be shown using the default document color provider")})),pixelRatio:$a(new BYt),tabFocusMode:$a(new ah(144,"tabFocusMode",!1,{markdownDescription:ce("tabFocusMode","Controls whether the editor receives tabs or defers them to the workbench for navigation.")})),layoutInfo:$a(new $lt),wrappingInfo:$a(new ZYt),wrappingIndent:$a(new QYt),wrappingStrategy:$a(new IYt)}});function dl(l){MI(l)||Cgi.onUnexpectedError(l)}function ch(l){MI(l)||Cgi.onUnexpectedExternalError(l)}function nQt(l){if(l instanceof Error){let{name:e,message:r}=l,o=l.stacktrace||l.stack;return{$isError:!0,name:e,message:r,stack:o,noTelemetry:Glt.isErrorNoTelemetry(l)}}return l}function MI(l){return l instanceof ZL?!0:l instanceof Error&&l.name===dDt&&l.message===dDt}function kgi(){let l=new Error(dDt);return l.name=l.message,l}function aA(l){return l?new Error(`Illegal argument: ${l}`):new Error("Illegal argument")}function $ze(l){return l?new Error(`Illegal state: ${l}`):new Error("Illegal state")}var iQt,Cgi,dDt,ZL,fDt,Glt,Hp,Du=ti(()=>{iQt=class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?Glt.isErrorNoTelemetry(e)?new Glt(e.message+` + +`+e.stack):new Error(e.message+` + +`+e.stack):e},0)}}emit(e){this.listeners.forEach(r=>{r(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}},Cgi=new iQt;dDt="Canceled";ZL=class extends Error{constructor(){super(dDt),this.name=this.message}};fDt=class extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}},Glt=class l extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof l)return e;let r=new l;return r.message=e.message,r.stack=e.stack,r}static isErrorNoTelemetry(e){return e.name==="CodeExpectedError"}},Hp=class l extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,l.prototype)}}});function xR(l,e){let r=this,o=!1,c;return function(){if(o)return c;if(o=!0,e)try{c=l.apply(r,arguments)}finally{e()}else c=l.apply(r,arguments);return c}}var Bbe=ti(()=>{});function AMi(l){CR=l}function O4e(l){return CR?.trackDisposable(l),l}function F4e(l){CR?.markAsDisposed(l)}function _Dt(l,e){CR?.setParent(l,e)}function PMi(l,e){if(CR)for(let r of l)CR.setParent(r,e)}function Wbe(l){return CR?.markAsSingleton(l),l}function zbe(l){return typeof l=="object"&&l!==null&&typeof l.dispose=="function"&&l.dispose.length===0}function Fp(l){if(S_.is(l)){let e=[];for(let r of l)if(r)try{r.dispose()}catch(o){e.push(o)}if(e.length===1)throw e[0];if(e.length>1)throw new AggregateError(e,"Encountered errors while disposing of store");return Array.isArray(l)?[]:l}else if(l)return l.dispose(),l}function cA(...l){let e=Ma(()=>Fp(l));return PMi(l,e),e}function Ma(l){let e=O4e({dispose:xR(()=>{F4e(e),l()})});return e}var NMi,CR,Fr,tn,zg,pDt,mDt,jbe,co=ti(()=>{Bbe();QL();NMi=!1,CR=null;if(NMi){let l="__is_disposable_tracked__";AMi(new class{trackDisposable(e){let r=new Error("Potentially leaked disposable").stack;setTimeout(()=>{e[l]||console.log(r)},3e3)}setParent(e,r){if(e&&e!==tn.None)try{e[l]=!0}catch{}}markAsDisposed(e){if(e&&e!==tn.None)try{e[l]=!0}catch{}}markAsSingleton(e){}})}Fr=class l{constructor(){this._toDispose=new Set,this._isDisposed=!1,O4e(this)}dispose(){this._isDisposed||(F4e(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{Fp(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 _Dt(e,this),this._isDisposed?l.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),_Dt(e,null))}};Fr.DISABLE_DISPOSED_WARNING=!1;tn=class{constructor(){this._store=new Fr,O4e(this),_Dt(this._store,this)}dispose(){F4e(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}};tn.None=Object.freeze({dispose(){}});zg=class{constructor(){this._isDisposed=!1,O4e(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){var r;this._isDisposed||e===this._value||((r=this._value)===null||r===void 0||r.dispose(),e&&_Dt(e,this),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,F4e(this),(e=this._value)===null||e===void 0||e.dispose(),this._value=void 0}},pDt=class{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter===0&&this._disposable.dispose(),this}},mDt=class{constructor(e){this.object=e}dispose(){}},jbe=class{constructor(){this._store=new Map,this._isDisposed=!1,O4e(this)}dispose(){F4e(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{Fp(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,r,o=!1){var c;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),o||(c=this._store.get(e))===null||c===void 0||c.dispose(),this._store.set(e,r)}deleteAndDispose(e){var r;(r=this._store.get(e))===null||r===void 0||r.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}});var LMi,vv,zO=ti(()=>{LMi=globalThis.performance&&typeof globalThis.performance.now=="function",vv=class l{static create(e){return new l(e)}constructor(e){this._now=LMi&&e===!1?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 this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}}});var OMi,Tgi,FMi,gs,Xlt,Egi,rQt,Ylt,oQt,sQt,Gze,MMi,RMi,Klt,wn,Dgi,hDt,cV,Kze,gDt,yDt,Dne,Qlt,xc=ti(()=>{Du();Bbe();co();mB();zO();OMi=!1,Tgi=!1,FMi=!1;(function(l){l.None=()=>tn.None;function e(Rr){if(FMi){let{onDidAddListener:Tn}=Rr,Qn=Ylt.create(),ks=0;Rr.onDidAddListener=()=>{++ks===2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),Qn.print()),Tn?.()}}}function r(Rr,Tn){return F(Rr,()=>{},0,void 0,!0,void 0,Tn)}l.defer=r;function o(Rr){return(Tn,Qn=null,ks)=>{let La=!1,$i;return $i=Rr(Dl=>{if(!La)return $i?$i.dispose():La=!0,Tn.call(Qn,Dl)},null,ks),La&&$i.dispose(),$i}}l.once=o;function c(Rr,Tn,Qn){return L((ks,La=null,$i)=>Rr(Dl=>ks.call(La,Tn(Dl)),null,$i),Qn)}l.map=c;function d(Rr,Tn,Qn){return L((ks,La=null,$i)=>Rr(Dl=>{Tn(Dl),ks.call(La,Dl)},null,$i),Qn)}l.forEach=d;function h(Rr,Tn,Qn){return L((ks,La=null,$i)=>Rr(Dl=>Tn(Dl)&&ks.call(La,Dl),null,$i),Qn)}l.filter=h;function b(Rr){return Rr}l.signal=b;function w(...Rr){return(Tn,Qn=null,ks)=>{let La=cA(...Rr.map($i=>$i(Dl=>Tn.call(Qn,Dl))));return B(La,ks)}}l.any=w;function N(Rr,Tn,Qn,ks){let La=Qn;return c(Rr,$i=>(La=Tn(La,$i),La),ks)}l.reduce=N;function L(Rr,Tn){let Qn,ks={onWillAddFirstListener(){Qn=Rr(La.fire,La)},onDidRemoveLastListener(){Qn?.dispose()}};Tn||e(ks);let La=new wn(ks);return Tn?.add(La),La.event}function B(Rr,Tn){return Tn instanceof Array?Tn.push(Rr):Tn&&Tn.add(Rr),Rr}function F(Rr,Tn,Qn=100,ks=!1,La=!1,$i,Dl){let $s,cr,za,Uc=0,Ya,Xl={leakWarningThreshold:$i,onWillAddFirstListener(){$s=Rr(Dc=>{Uc++,cr=Tn(cr,Dc),ks&&!za&&(Vb.fire(cr),cr=void 0),Ya=()=>{let up=cr;cr=void 0,za=void 0,(!ks||Uc>1)&&Vb.fire(up),Uc=0},typeof Qn=="number"?(clearTimeout(za),za=setTimeout(Ya,Qn)):za===void 0&&(za=0,queueMicrotask(Ya))})},onWillRemoveListener(){La&&Uc>0&&Ya?.()},onDidRemoveLastListener(){Ya=void 0,$s.dispose()}};Dl||e(Xl);let Vb=new wn(Xl);return Dl?.add(Vb),Vb.event}l.debounce=F;function Y(Rr,Tn=0,Qn){return l.debounce(Rr,(ks,La)=>ks?(ks.push(La),ks):[La],Tn,void 0,!0,void 0,Qn)}l.accumulate=Y;function Z(Rr,Tn=(ks,La)=>ks===La,Qn){let ks=!0,La;return h(Rr,$i=>{let Dl=ks||!Tn($i,La);return ks=!1,La=$i,Dl},Qn)}l.latch=Z;function ee(Rr,Tn,Qn){return[l.filter(Rr,Tn,Qn),l.filter(Rr,ks=>!Tn(ks),Qn)]}l.split=ee;function Te(Rr,Tn=!1,Qn=[],ks){let La=Qn.slice(),$i=Rr(cr=>{La?La.push(cr):$s.fire(cr)});ks&&ks.add($i);let Dl=()=>{La?.forEach(cr=>$s.fire(cr)),La=null},$s=new wn({onWillAddFirstListener(){$i||($i=Rr(cr=>$s.fire(cr)),ks&&ks.add($i))},onDidAddFirstListener(){La&&(Tn?setTimeout(Dl):Dl())},onDidRemoveLastListener(){$i&&$i.dispose(),$i=null}});return ks&&ks.add($s),$s.event}l.buffer=Te;function Je(Rr,Tn){return(ks,La,$i)=>{let Dl=Tn(new ct);return Rr(function($s){let cr=Dl.evaluate($s);cr!==Xe&&ks.call(La,cr)},void 0,$i)}}l.chain=Je;let Xe=Symbol("HaltChainable");class ct{constructor(){this.steps=[]}map(Tn){return this.steps.push(Tn),this}forEach(Tn){return this.steps.push(Qn=>(Tn(Qn),Qn)),this}filter(Tn){return this.steps.push(Qn=>Tn(Qn)?Qn:Xe),this}reduce(Tn,Qn){let ks=Qn;return this.steps.push(La=>(ks=Tn(ks,La),ks)),this}latch(Tn=(Qn,ks)=>Qn===ks){let Qn=!0,ks;return this.steps.push(La=>{let $i=Qn||!Tn(La,ks);return Qn=!1,ks=La,$i?La:Xe}),this}evaluate(Tn){for(let Qn of this.steps)if(Tn=Qn(Tn),Tn===Xe)break;return Tn}}function Ct(Rr,Tn,Qn=ks=>ks){let ks=(...$s)=>Dl.fire(Qn(...$s)),La=()=>Rr.on(Tn,ks),$i=()=>Rr.removeListener(Tn,ks),Dl=new wn({onWillAddFirstListener:La,onDidRemoveLastListener:$i});return Dl.event}l.fromNodeEventEmitter=Ct;function Nt(Rr,Tn,Qn=ks=>ks){let ks=(...$s)=>Dl.fire(Qn(...$s)),La=()=>Rr.addEventListener(Tn,ks),$i=()=>Rr.removeEventListener(Tn,ks),Dl=new wn({onWillAddFirstListener:La,onDidRemoveLastListener:$i});return Dl.event}l.fromDOMEventEmitter=Nt;function Yt(Rr){return new Promise(Tn=>o(Rr)(Tn))}l.toPromise=Yt;function jt(Rr){let Tn=new wn;return Rr.then(Qn=>{Tn.fire(Qn)},()=>{Tn.fire(void 0)}).finally(()=>{Tn.dispose()}),Tn.event}l.fromPromise=jt;function mi(Rr,Tn,Qn){return Tn(Qn),Rr(ks=>Tn(ks))}l.runAndSubscribe=mi;class _n{constructor(Tn,Qn){this._observable=Tn,this._counter=0,this._hasChanged=!1;let ks={onWillAddFirstListener:()=>{Tn.addObserver(this)},onDidRemoveLastListener:()=>{Tn.removeObserver(this)}};Qn||e(ks),this.emitter=new wn(ks),Qn&&Qn.add(this.emitter)}beginUpdate(Tn){this._counter++}handlePossibleChange(Tn){}handleChange(Tn,Qn){this._hasChanged=!0}endUpdate(Tn){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function Pr(Rr,Tn){return new _n(Rr,Tn).emitter.event}l.fromObservable=Pr;function dr(Rr){return(Tn,Qn,ks)=>{let La=0,$i=!1,Dl={beginUpdate(){La++},endUpdate(){La--,La===0&&(Rr.reportChanges(),$i&&($i=!1,Tn.call(Qn)))},handlePossibleChange(){},handleChange(){$i=!0}};Rr.addObserver(Dl),Rr.reportChanges();let $s={dispose(){Rr.removeObserver(Dl)}};return ks instanceof Fr?ks.add($s):Array.isArray(ks)&&ks.push($s),$s}}l.fromObservableLight=dr})(gs||(gs={}));Xlt=class l{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 vv,this.listenerCount=e}stop(){if(this._stopWatch){let e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}};Xlt.all=new Set;Xlt._idPool=0;Egi=-1,rQt=class{constructor(e,r,o=Math.random().toString(18).slice(2,5)){this._errorHandler=e,this.threshold=r,this.name=o,this._warnCountdown=0}dispose(){var e;(e=this._stacks)===null||e===void 0||e.clear()}check(e,r){let o=this.threshold;if(o<=0||r{let d=this._stacks.get(e.value)||0;this._stacks.set(e.value,d-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,r=0;for(let[o,c]of this._stacks)(!e||r{if(l instanceof Gze)e(l);else for(let r=0;r{typeof l=="string"&&(console.warn("[LEAKING LISTENER] GC'ed a listener that was NOT yet disposed. This is where is was created:"),console.warn(l))}):void 0,wn=class{constructor(e){var r,o,c,d,h,b;this._size=0,this._options=e,this._leakageMon=Egi>0||!((r=this._options)===null||r===void 0)&&r.leakWarningThreshold?new rQt((o=e?.onListenerError)!==null&&o!==void 0?o:dl,(d=(c=this._options)===null||c===void 0?void 0:c.leakWarningThreshold)!==null&&d!==void 0?d:Egi):void 0,this._perfMon=!((h=this._options)===null||h===void 0)&&h._profName?new Xlt(this._options._profName):void 0,this._deliveryQueue=(b=this._options)===null||b===void 0?void 0:b.deliveryQueue}dispose(){var e,r,o,c;if(!this._disposed){if(this._disposed=!0,((e=this._deliveryQueue)===null||e===void 0?void 0:e.current)===this&&this._deliveryQueue.reset(),this._listeners){if(Tgi){let d=this._listeners;queueMicrotask(()=>{RMi(d,h=>{var b;return(b=h.stack)===null||b===void 0?void 0:b.print()})})}this._listeners=void 0,this._size=0}(o=(r=this._options)===null||r===void 0?void 0:r.onDidRemoveLastListener)===null||o===void 0||o.call(r),(c=this._leakageMon)===null||c===void 0||c.dispose()}}get event(){var e;return(e=this._event)!==null&&e!==void 0||(this._event=(r,o,c)=>{var d,h,b,w,N,L,B;if(this._leakageMon&&this._size>this._leakageMon.threshold**2){let Te=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(Te);let Je=(d=this._leakageMon.getMostFrequentStack())!==null&&d!==void 0?d:["UNKNOWN stack",-1],Xe=new sQt(`${Te}. HINT: Stack shows most frequent listener (${Je[1]}-times)`,Je[0]);return(((h=this._options)===null||h===void 0?void 0:h.onListenerError)||dl)(Xe),tn.None}if(this._disposed)return tn.None;o&&(r=r.bind(o));let F=new Gze(r),Y,Z;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(F.stack=Ylt.create(),Y=this._leakageMon.check(F.stack,this._size+1)),Tgi&&(F.stack=Z??Ylt.create()),this._listeners?this._listeners instanceof Gze?((B=this._deliveryQueue)!==null&&B!==void 0||(this._deliveryQueue=new hDt),this._listeners=[this._listeners,F]):this._listeners.push(F):((w=(b=this._options)===null||b===void 0?void 0:b.onWillAddFirstListener)===null||w===void 0||w.call(b,this),this._listeners=F,(L=(N=this._options)===null||N===void 0?void 0:N.onDidAddFirstListener)===null||L===void 0||L.call(N,this)),this._size++;let ee=Ma(()=>{Klt?.unregister(ee),Y?.(),this._removeListener(F)});if(c instanceof Fr?c.add(ee):Array.isArray(c)&&c.push(ee),Klt){let Te=new Error().stack.split(` +`).slice(2).join(` +`).trim();Klt.register(ee,Te,ee)}return ee}),this._event}_removeListener(e){var r,o,c,d;if((o=(r=this._options)===null||r===void 0?void 0:r.onWillRemoveListener)===null||o===void 0||o.call(r,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(d=(c=this._options)===null||c===void 0?void 0:c.onDidRemoveLastListener)===null||d===void 0||d.call(c,this),this._size=0;return}let h=this._listeners,b=h.indexOf(e);if(b===-1)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--,h[b]=void 0;let w=this._deliveryQueue.current===this;if(this._size*MMi<=h.length){let N=0;for(let L=0;L0}},Dgi=()=>new hDt,hDt=class{constructor(){this.i=-1,this.end=0}enqueue(e,r,o){this.i=0,this.end=o,this.current=e,this.value=r}reset(){this.i=this.end,this.current=void 0,this.value=void 0}},cV=class extends wn{constructor(e){super(e),this._isPaused=0,this._eventQueue=new QS,this._mergeFn=e?.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){if(this._eventQueue.size>0){let e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(e){this._size&&(this._isPaused!==0?this._eventQueue.push(e):super.fire(e))}},Kze=class extends cV{constructor(e){var r;super(e),this._delay=(r=e.delay)!==null&&r!==void 0?r:100}fire(e){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(e)}},gDt=class extends wn{constructor(e){super(e),this._queuedEvents=[],this._mergeFn=e?.merge}fire(e){this.hasListeners()&&(this._queuedEvents.push(e),this._queuedEvents.length===1&&queueMicrotask(()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach(r=>super.fire(r)),this._queuedEvents=[]}))}},yDt=class{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new wn({onWillAddFirstListener:()=>this.onFirstListenerAdd(),onDidRemoveLastListener:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(e){let r={event:e,listener:null};return this.events.push(r),this.hasListeners&&this.hook(r),Ma(xR(()=>{this.hasListeners&&this.unhook(r);let c=this.events.indexOf(r);this.events.splice(c,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(r=>this.emitter.fire(r))}unhook(e){var r;(r=e.listener)===null||r===void 0||r.dispose(),e.listener=null}dispose(){var e;this.emitter.dispose();for(let r of this.events)(e=r.listener)===null||e===void 0||e.dispose();this.events=[]}},Dne=class{constructor(){this.data=[]}wrapEvent(e,r,o){return(c,d,h)=>e(b=>{var w;let N=this.data[this.data.length-1];if(!r){N?N.buffers.push(()=>c.call(d,b)):c.call(d,b);return}let L=N;if(!L){c.call(d,r(o,b));return}(w=L.items)!==null&&w!==void 0||(L.items=[]),L.items.push(b),L.buffers.length===0&&N.buffers.push(()=>{var B;(B=L.reducedResult)!==null&&B!==void 0||(L.reducedResult=o?L.items.reduce(r,o):L.items.reduce(r)),c.call(d,L.reducedResult)})},void 0,h)}bufferEvents(e){let r={buffers:new Array};this.data.push(r);let o=e();return this.data.pop(),r.buffers.forEach(c=>c()),o}},Qlt=class{constructor(){this.listening=!1,this.inputEvent=gs.None,this.inputEventListener=tn.None,this.emitter=new wn({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()}}});function aQt(l){let e=new Up;return l.add({dispose(){e.cancel()}}),e.token}var Igi,Nd,Xze,Up,Sh=ti(()=>{xc();Igi=Object.freeze(function(l,e){let r=setTimeout(l.bind(e),0);return{dispose(){clearTimeout(r)}}});(function(l){function e(r){return r===l.None||r===l.Cancelled||r instanceof Xze?!0:!r||typeof r!="object"?!1:typeof r.isCancellationRequested=="boolean"&&typeof r.onCancellationRequested=="function"}l.isCancellationToken=e,l.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:gs.None}),l.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Igi})})(Nd||(Nd={}));Xze=class{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?Igi:(this._emitter||(this._emitter=new wn),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}},Up=class{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 Xze),this._token}cancel(){this._token?this._token instanceof Xze&&this._token.cancel():this._token=Nd.Cancelled}dispose(e=!1){var r;e&&this.cancel(),(r=this._parentListener)===null||r===void 0||r.dispose(),this._token?this._token instanceof Xze&&this._token.dispose():this._token=Nd.None}}});function U1(l,e){let r=(e&65535)<<16>>>0;return(l|r)>>>0}var Zlt,vDt,cQt,lQt,dQt,jMi,WMi,zMi,VMi,bDt,uQt,Pq,gB=ti(()=>{Zlt=class{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,r){this._keyCodeToStr[e]=r,this._strToKeyCode[r.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}},vDt=new Zlt,cQt=new Zlt,lQt=new Zlt,dQt=new Array(230),jMi={},WMi=[],zMi=Object.create(null),VMi=Object.create(null),bDt=[],uQt=[];for(let l=0;l<=193;l++)bDt[l]=-1;for(let l=0;l<=132;l++)uQt[l]=-1;(function(){let l="",e=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",l,l],[1,1,"Hyper",0,l,0,l,l,l],[1,2,"Super",0,l,0,l,l,l],[1,3,"Fn",0,l,0,l,l,l],[1,4,"FnLock",0,l,0,l,l,l],[1,5,"Suspend",0,l,0,l,l,l],[1,6,"Resume",0,l,0,l,l,l],[1,7,"Turbo",0,l,0,l,l,l],[1,8,"Sleep",0,l,0,"VK_SLEEP",l,l],[1,9,"WakeUp",0,l,0,l,l,l],[0,10,"KeyA",31,"A",65,"VK_A",l,l],[0,11,"KeyB",32,"B",66,"VK_B",l,l],[0,12,"KeyC",33,"C",67,"VK_C",l,l],[0,13,"KeyD",34,"D",68,"VK_D",l,l],[0,14,"KeyE",35,"E",69,"VK_E",l,l],[0,15,"KeyF",36,"F",70,"VK_F",l,l],[0,16,"KeyG",37,"G",71,"VK_G",l,l],[0,17,"KeyH",38,"H",72,"VK_H",l,l],[0,18,"KeyI",39,"I",73,"VK_I",l,l],[0,19,"KeyJ",40,"J",74,"VK_J",l,l],[0,20,"KeyK",41,"K",75,"VK_K",l,l],[0,21,"KeyL",42,"L",76,"VK_L",l,l],[0,22,"KeyM",43,"M",77,"VK_M",l,l],[0,23,"KeyN",44,"N",78,"VK_N",l,l],[0,24,"KeyO",45,"O",79,"VK_O",l,l],[0,25,"KeyP",46,"P",80,"VK_P",l,l],[0,26,"KeyQ",47,"Q",81,"VK_Q",l,l],[0,27,"KeyR",48,"R",82,"VK_R",l,l],[0,28,"KeyS",49,"S",83,"VK_S",l,l],[0,29,"KeyT",50,"T",84,"VK_T",l,l],[0,30,"KeyU",51,"U",85,"VK_U",l,l],[0,31,"KeyV",52,"V",86,"VK_V",l,l],[0,32,"KeyW",53,"W",87,"VK_W",l,l],[0,33,"KeyX",54,"X",88,"VK_X",l,l],[0,34,"KeyY",55,"Y",89,"VK_Y",l,l],[0,35,"KeyZ",56,"Z",90,"VK_Z",l,l],[0,36,"Digit1",22,"1",49,"VK_1",l,l],[0,37,"Digit2",23,"2",50,"VK_2",l,l],[0,38,"Digit3",24,"3",51,"VK_3",l,l],[0,39,"Digit4",25,"4",52,"VK_4",l,l],[0,40,"Digit5",26,"5",53,"VK_5",l,l],[0,41,"Digit6",27,"6",54,"VK_6",l,l],[0,42,"Digit7",28,"7",55,"VK_7",l,l],[0,43,"Digit8",29,"8",56,"VK_8",l,l],[0,44,"Digit9",30,"9",57,"VK_9",l,l],[0,45,"Digit0",21,"0",48,"VK_0",l,l],[1,46,"Enter",3,"Enter",13,"VK_RETURN",l,l],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",l,l],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",l,l],[1,49,"Tab",2,"Tab",9,"VK_TAB",l,l],[1,50,"Space",10,"Space",32,"VK_SPACE",l,l],[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,l,0,l,l,l],[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",l,l],[1,64,"F1",59,"F1",112,"VK_F1",l,l],[1,65,"F2",60,"F2",113,"VK_F2",l,l],[1,66,"F3",61,"F3",114,"VK_F3",l,l],[1,67,"F4",62,"F4",115,"VK_F4",l,l],[1,68,"F5",63,"F5",116,"VK_F5",l,l],[1,69,"F6",64,"F6",117,"VK_F6",l,l],[1,70,"F7",65,"F7",118,"VK_F7",l,l],[1,71,"F8",66,"F8",119,"VK_F8",l,l],[1,72,"F9",67,"F9",120,"VK_F9",l,l],[1,73,"F10",68,"F10",121,"VK_F10",l,l],[1,74,"F11",69,"F11",122,"VK_F11",l,l],[1,75,"F12",70,"F12",123,"VK_F12",l,l],[1,76,"PrintScreen",0,l,0,l,l,l],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",l,l],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",l,l],[1,79,"Insert",19,"Insert",45,"VK_INSERT",l,l],[1,80,"Home",14,"Home",36,"VK_HOME",l,l],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",l,l],[1,82,"Delete",20,"Delete",46,"VK_DELETE",l,l],[1,83,"End",13,"End",35,"VK_END",l,l],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",l,l],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",l],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",l],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",l],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",l],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",l,l],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",l,l],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",l,l],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",l,l],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",l,l],[1,94,"NumpadEnter",3,l,0,l,l,l],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",l,l],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",l,l],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",l,l],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",l,l],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",l,l],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",l,l],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",l,l],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",l,l],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",l,l],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",l,l],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",l,l],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",l,l],[1,107,"ContextMenu",58,"ContextMenu",93,l,l,l],[1,108,"Power",0,l,0,l,l,l],[1,109,"NumpadEqual",0,l,0,l,l,l],[1,110,"F13",71,"F13",124,"VK_F13",l,l],[1,111,"F14",72,"F14",125,"VK_F14",l,l],[1,112,"F15",73,"F15",126,"VK_F15",l,l],[1,113,"F16",74,"F16",127,"VK_F16",l,l],[1,114,"F17",75,"F17",128,"VK_F17",l,l],[1,115,"F18",76,"F18",129,"VK_F18",l,l],[1,116,"F19",77,"F19",130,"VK_F19",l,l],[1,117,"F20",78,"F20",131,"VK_F20",l,l],[1,118,"F21",79,"F21",132,"VK_F21",l,l],[1,119,"F22",80,"F22",133,"VK_F22",l,l],[1,120,"F23",81,"F23",134,"VK_F23",l,l],[1,121,"F24",82,"F24",135,"VK_F24",l,l],[1,122,"Open",0,l,0,l,l,l],[1,123,"Help",0,l,0,l,l,l],[1,124,"Select",0,l,0,l,l,l],[1,125,"Again",0,l,0,l,l,l],[1,126,"Undo",0,l,0,l,l,l],[1,127,"Cut",0,l,0,l,l,l],[1,128,"Copy",0,l,0,l,l,l],[1,129,"Paste",0,l,0,l,l,l],[1,130,"Find",0,l,0,l,l,l],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",l,l],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",l,l],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",l,l],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",l,l],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",l,l],[1,136,"KanaMode",0,l,0,l,l,l],[0,137,"IntlYen",0,l,0,l,l,l],[1,138,"Convert",0,l,0,l,l,l],[1,139,"NonConvert",0,l,0,l,l,l],[1,140,"Lang1",0,l,0,l,l,l],[1,141,"Lang2",0,l,0,l,l,l],[1,142,"Lang3",0,l,0,l,l,l],[1,143,"Lang4",0,l,0,l,l,l],[1,144,"Lang5",0,l,0,l,l,l],[1,145,"Abort",0,l,0,l,l,l],[1,146,"Props",0,l,0,l,l,l],[1,147,"NumpadParenLeft",0,l,0,l,l,l],[1,148,"NumpadParenRight",0,l,0,l,l,l],[1,149,"NumpadBackspace",0,l,0,l,l,l],[1,150,"NumpadMemoryStore",0,l,0,l,l,l],[1,151,"NumpadMemoryRecall",0,l,0,l,l,l],[1,152,"NumpadMemoryClear",0,l,0,l,l,l],[1,153,"NumpadMemoryAdd",0,l,0,l,l,l],[1,154,"NumpadMemorySubtract",0,l,0,l,l,l],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",l,l],[1,156,"NumpadClearEntry",0,l,0,l,l,l],[1,0,l,5,"Ctrl",17,"VK_CONTROL",l,l],[1,0,l,4,"Shift",16,"VK_SHIFT",l,l],[1,0,l,6,"Alt",18,"VK_MENU",l,l],[1,0,l,57,"Meta",91,"VK_COMMAND",l,l],[1,157,"ControlLeft",5,l,0,"VK_LCONTROL",l,l],[1,158,"ShiftLeft",4,l,0,"VK_LSHIFT",l,l],[1,159,"AltLeft",6,l,0,"VK_LMENU",l,l],[1,160,"MetaLeft",57,l,0,"VK_LWIN",l,l],[1,161,"ControlRight",5,l,0,"VK_RCONTROL",l,l],[1,162,"ShiftRight",4,l,0,"VK_RSHIFT",l,l],[1,163,"AltRight",6,l,0,"VK_RMENU",l,l],[1,164,"MetaRight",57,l,0,"VK_RWIN",l,l],[1,165,"BrightnessUp",0,l,0,l,l,l],[1,166,"BrightnessDown",0,l,0,l,l,l],[1,167,"MediaPlay",0,l,0,l,l,l],[1,168,"MediaRecord",0,l,0,l,l,l],[1,169,"MediaFastForward",0,l,0,l,l,l],[1,170,"MediaRewind",0,l,0,l,l,l],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",l,l],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",l,l],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",l,l],[1,174,"Eject",0,l,0,l,l,l],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",l,l],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",l,l],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",l,l],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",l,l],[1,179,"LaunchApp1",0,l,0,"VK_MEDIA_LAUNCH_APP1",l,l],[1,180,"SelectTask",0,l,0,l,l,l],[1,181,"LaunchScreenSaver",0,l,0,l,l,l],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",l,l],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",l,l],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",l,l],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",l,l],[1,186,"BrowserStop",0,l,0,"VK_BROWSER_STOP",l,l],[1,187,"BrowserRefresh",0,l,0,"VK_BROWSER_REFRESH",l,l],[1,188,"BrowserFavorites",0,l,0,"VK_BROWSER_FAVORITES",l,l],[1,189,"ZoomToggle",0,l,0,l,l,l],[1,190,"MailReply",0,l,0,l,l,l],[1,191,"MailForward",0,l,0,l,l,l],[1,192,"MailSend",0,l,0,l,l,l],[1,0,l,114,"KeyInComposition",229,l,l,l],[1,0,l,116,"ABNT_C2",194,"VK_ABNT_C2",l,l],[1,0,l,96,"OEM_8",223,"VK_OEM_8",l,l],[1,0,l,0,l,0,"VK_KANA",l,l],[1,0,l,0,l,0,"VK_HANGUL",l,l],[1,0,l,0,l,0,"VK_JUNJA",l,l],[1,0,l,0,l,0,"VK_FINAL",l,l],[1,0,l,0,l,0,"VK_HANJA",l,l],[1,0,l,0,l,0,"VK_KANJI",l,l],[1,0,l,0,l,0,"VK_CONVERT",l,l],[1,0,l,0,l,0,"VK_NONCONVERT",l,l],[1,0,l,0,l,0,"VK_ACCEPT",l,l],[1,0,l,0,l,0,"VK_MODECHANGE",l,l],[1,0,l,0,l,0,"VK_SELECT",l,l],[1,0,l,0,l,0,"VK_PRINT",l,l],[1,0,l,0,l,0,"VK_EXECUTE",l,l],[1,0,l,0,l,0,"VK_SNAPSHOT",l,l],[1,0,l,0,l,0,"VK_HELP",l,l],[1,0,l,0,l,0,"VK_APPS",l,l],[1,0,l,0,l,0,"VK_PROCESSKEY",l,l],[1,0,l,0,l,0,"VK_PACKET",l,l],[1,0,l,0,l,0,"VK_DBE_SBCSCHAR",l,l],[1,0,l,0,l,0,"VK_DBE_DBCSCHAR",l,l],[1,0,l,0,l,0,"VK_ATTN",l,l],[1,0,l,0,l,0,"VK_CRSEL",l,l],[1,0,l,0,l,0,"VK_EXSEL",l,l],[1,0,l,0,l,0,"VK_EREOF",l,l],[1,0,l,0,l,0,"VK_PLAY",l,l],[1,0,l,0,l,0,"VK_ZOOM",l,l],[1,0,l,0,l,0,"VK_NONAME",l,l],[1,0,l,0,l,0,"VK_PA1",l,l],[1,0,l,0,l,0,"VK_OEM_CLEAR",l,l]],r=[],o=[];for(let c of e){let[d,h,b,w,N,L,B,F,Y]=c;if(o[h]||(o[h]=!0,WMi[h]=b,zMi[b]=h,VMi[b.toLowerCase()]=h,d&&(bDt[h]=w,w!==0&&w!==3&&w!==5&&w!==4&&w!==6&&w!==57&&(uQt[w]=h))),!r[w]){if(r[w]=!0,!N)throw new Error(`String representation missing for key code ${w} around scan code ${b}`);vDt.define(w,N),cQt.define(w,F||N),lQt.define(w,Y||F||N)}L&&(dQt[L]=w),B&&(jMi[B]=w)}uQt[3]=46})();(function(l){function e(b){return vDt.keyCodeToStr(b)}l.toString=e;function r(b){return vDt.strToKeyCode(b)}l.fromString=r;function o(b){return cQt.keyCodeToStr(b)}l.toUserSettingsUS=o;function c(b){return lQt.keyCodeToStr(b)}l.toUserSettingsGeneral=c;function d(b){return cQt.strToKeyCode(b)||lQt.strToKeyCode(b)}l.fromUserSettings=d;function h(b){if(b>=98&&b<=113)return null;switch(b){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return vDt.keyCodeToStr(b)}l.toElectronAccelerator=h})(Pq||(Pq={}))});var Yze,fQt,eut,tut,Ngi,_Qt=ti(()=>{X_();fQt=globalThis.vscode;if(typeof fQt<"u"&&typeof fQt.process<"u"){let l=fQt.process;Yze={get platform(){return l.platform},get arch(){return l.arch},get env(){return l.env},cwd(){return l.cwd()}}}else typeof process<"u"?Yze={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:Yze={get platform(){return Bv?"win32":md?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};eut=Yze.cwd,tut=Yze.env,Ngi=Yze.platform});function KMi(l,e){if(l===null||typeof l!="object")throw new SDt(e,"Object",l)}function RI(l,e){if(typeof l!="string")throw new SDt(e,"string",l)}function ly(l){return l===e3||l===yB}function pQt(l){return l===e3}function Hbe(l){return l>=UMi&&l<=qMi||l>=JMi&&l<=$Mi}function xDt(l,e,r,o){let c="",d=0,h=-1,b=0,w=0;for(let N=0;N<=l.length;++N){if(N2){let L=c.lastIndexOf(r);L===-1?(c="",d=0):(c=c.slice(0,L),d=c.length-1-c.lastIndexOf(r)),h=N,b=0;continue}else if(c.length!==0){c="",d=0,h=N,b=0;continue}}e&&(c+=c.length>0?`${r}..`:"..",d=2)}else c.length>0?c+=`${r}${l.slice(h+1,N)}`:c=l.slice(h+1,N),d=N-h-1;h=N,b=0}else w===Ube&&b!==-1?++b:b=-1}return c}function Agi(l,e){KMi(e,"pathObject");let r=e.dir||e.root,o=e.base||`${e.name||""}${e.ext||""}`;return r?r===e.root?`${r}${o}`:`${r}${l}${o}`:o}var UMi,JMi,qMi,$Mi,Ube,e3,yB,Vbe,GMi,SDt,Jbe,YF,XMi,ex,CDt,Pgi,Lgi,kDt,Lq,Ogi,kR,jY=ti(()=>{_Qt();UMi=65,JMi=97,qMi=90,$Mi=122,Ube=46,e3=47,yB=92,Vbe=58,GMi=63,SDt=class extends Error{constructor(e,r,o){let c;typeof r=="string"&&r.indexOf("not ")===0?(c="must not be",r=r.replace(/^not /,"")):c="must be";let d=e.indexOf(".")!==-1?"property":"argument",h=`The "${e}" ${d} ${c} of type ${r}`;h+=`. Received type ${typeof o}`,super(h),this.code="ERR_INVALID_ARG_TYPE"}};Jbe=Ngi==="win32";YF={resolve(...l){let e="",r="",o=!1;for(let c=l.length-1;c>=-1;c--){let d;if(c>=0){if(d=l[c],RI(d,"path"),d.length===0)continue}else e.length===0?d=eut():(d=tut[`=${e}`]||eut(),(d===void 0||d.slice(0,2).toLowerCase()!==e.toLowerCase()&&d.charCodeAt(2)===yB)&&(d=`${e}\\`));let h=d.length,b=0,w="",N=!1,L=d.charCodeAt(0);if(h===1)ly(L)&&(b=1,N=!0);else if(ly(L))if(N=!0,ly(d.charCodeAt(1))){let B=2,F=B;for(;B2&&ly(d.charCodeAt(2))&&(N=!0,b=3));if(w.length>0)if(e.length>0){if(w.toLowerCase()!==e.toLowerCase())continue}else e=w;if(o){if(e.length>0)break}else if(r=`${d.slice(b)}\\${r}`,o=N,N&&e.length>0)break}return r=xDt(r,!o,"\\",ly),o?`${e}\\${r}`:`${e}${r}`||"."},normalize(l){RI(l,"path");let e=l.length;if(e===0)return".";let r=0,o,c=!1,d=l.charCodeAt(0);if(e===1)return pQt(d)?"\\":l;if(ly(d))if(c=!0,ly(l.charCodeAt(1))){let b=2,w=b;for(;b2&&ly(l.charCodeAt(2))&&(c=!0,r=3));let h=r0&&ly(l.charCodeAt(e-1))&&(h+="\\"),o===void 0?c?`\\${h}`:h:c?`${o}\\${h}`:`${o}${h}`},isAbsolute(l){RI(l,"path");let e=l.length;if(e===0)return!1;let r=l.charCodeAt(0);return ly(r)||e>2&&Hbe(r)&&l.charCodeAt(1)===Vbe&&ly(l.charCodeAt(2))},join(...l){if(l.length===0)return".";let e,r;for(let d=0;d0&&(e===void 0?e=r=h:e+=`\\${h}`)}if(e===void 0)return".";let o=!0,c=0;if(typeof r=="string"&&ly(r.charCodeAt(0))){++c;let d=r.length;d>1&&ly(r.charCodeAt(1))&&(++c,d>2&&(ly(r.charCodeAt(2))?++c:o=!1))}if(o){for(;c=2&&(e=`\\${e.slice(c)}`)}return YF.normalize(e)},relative(l,e){if(RI(l,"from"),RI(e,"to"),l===e)return"";let r=YF.resolve(l),o=YF.resolve(e);if(r===o||(l=r.toLowerCase(),e=o.toLowerCase(),l===e))return"";let c=0;for(;cc&&l.charCodeAt(d-1)===yB;)d--;let h=d-c,b=0;for(;bb&&e.charCodeAt(w-1)===yB;)w--;let N=w-b,L=hL){if(e.charCodeAt(b+F)===yB)return o.slice(b+F+1);if(F===2)return o.slice(b+F)}h>L&&(l.charCodeAt(c+F)===yB?B=F:F===2&&(B=3)),B===-1&&(B=0)}let Y="";for(F=c+B+1;F<=d;++F)(F===d||l.charCodeAt(F)===yB)&&(Y+=Y.length===0?"..":"\\..");return b+=B,Y.length>0?`${Y}${o.slice(b,w)}`:(o.charCodeAt(b)===yB&&++b,o.slice(b,w))},toNamespacedPath(l){if(typeof l!="string"||l.length===0)return l;let e=YF.resolve(l);if(e.length<=2)return l;if(e.charCodeAt(0)===yB){if(e.charCodeAt(1)===yB){let r=e.charCodeAt(2);if(r!==GMi&&r!==Ube)return`\\\\?\\UNC\\${e.slice(2)}`}}else if(Hbe(e.charCodeAt(0))&&e.charCodeAt(1)===Vbe&&e.charCodeAt(2)===yB)return`\\\\?\\${e}`;return l},dirname(l){RI(l,"path");let e=l.length;if(e===0)return".";let r=-1,o=0,c=l.charCodeAt(0);if(e===1)return ly(c)?l:".";if(ly(c)){if(r=o=1,ly(l.charCodeAt(1))){let b=2,w=b;for(;b2&&ly(l.charCodeAt(2))?3:2,o=r);let d=-1,h=!0;for(let b=e-1;b>=o;--b)if(ly(l.charCodeAt(b))){if(!h){d=b;break}}else h=!1;if(d===-1){if(r===-1)return".";d=r}return l.slice(0,d)},basename(l,e){e!==void 0&&RI(e,"ext"),RI(l,"path");let r=0,o=-1,c=!0,d;if(l.length>=2&&Hbe(l.charCodeAt(0))&&l.charCodeAt(1)===Vbe&&(r=2),e!==void 0&&e.length>0&&e.length<=l.length){if(e===l)return"";let h=e.length-1,b=-1;for(d=l.length-1;d>=r;--d){let w=l.charCodeAt(d);if(ly(w)){if(!c){r=d+1;break}}else b===-1&&(c=!1,b=d+1),h>=0&&(w===e.charCodeAt(h)?--h===-1&&(o=d):(h=-1,o=b))}return r===o?o=b:o===-1&&(o=l.length),l.slice(r,o)}for(d=l.length-1;d>=r;--d)if(ly(l.charCodeAt(d))){if(!c){r=d+1;break}}else o===-1&&(c=!1,o=d+1);return o===-1?"":l.slice(r,o)},extname(l){RI(l,"path");let e=0,r=-1,o=0,c=-1,d=!0,h=0;l.length>=2&&l.charCodeAt(1)===Vbe&&Hbe(l.charCodeAt(0))&&(e=o=2);for(let b=l.length-1;b>=e;--b){let w=l.charCodeAt(b);if(ly(w)){if(!d){o=b+1;break}continue}c===-1&&(d=!1,c=b+1),w===Ube?r===-1?r=b:h!==1&&(h=1):r!==-1&&(h=-1)}return r===-1||c===-1||h===0||h===1&&r===c-1&&r===o+1?"":l.slice(r,c)},format:Agi.bind(null,"\\"),parse(l){RI(l,"path");let e={root:"",dir:"",base:"",ext:"",name:""};if(l.length===0)return e;let r=l.length,o=0,c=l.charCodeAt(0);if(r===1)return ly(c)?(e.root=e.dir=l,e):(e.base=e.name=l,e);if(ly(c)){if(o=1,ly(l.charCodeAt(1))){let B=2,F=B;for(;B0&&(e.root=l.slice(0,o));let d=-1,h=o,b=-1,w=!0,N=l.length-1,L=0;for(;N>=o;--N){if(c=l.charCodeAt(N),ly(c)){if(!w){h=N+1;break}continue}b===-1&&(w=!1,b=N+1),c===Ube?d===-1?d=N:L!==1&&(L=1):d!==-1&&(L=-1)}return b!==-1&&(d===-1||L===0||L===1&&d===b-1&&d===h+1?e.base=e.name=l.slice(h,b):(e.name=l.slice(h,d),e.base=l.slice(h,b),e.ext=l.slice(d,b))),h>0&&h!==o?e.dir=l.slice(0,h-1):e.dir=e.root,e},sep:"\\",delimiter:";",win32:null,posix:null},XMi=(()=>{if(Jbe){let l=/\\/g;return()=>{let e=eut().replace(l,"/");return e.slice(e.indexOf("/"))}}return()=>eut()})(),ex={resolve(...l){let e="",r=!1;for(let o=l.length-1;o>=-1&&!r;o--){let c=o>=0?l[o]:XMi();RI(c,"path"),c.length!==0&&(e=`${c}/${e}`,r=c.charCodeAt(0)===e3)}return e=xDt(e,!r,"/",pQt),r?`/${e}`:e.length>0?e:"."},normalize(l){if(RI(l,"path"),l.length===0)return".";let e=l.charCodeAt(0)===e3,r=l.charCodeAt(l.length-1)===e3;return l=xDt(l,!e,"/",pQt),l.length===0?e?"/":r?"./":".":(r&&(l+="/"),e?`/${l}`:l)},isAbsolute(l){return RI(l,"path"),l.length>0&&l.charCodeAt(0)===e3},join(...l){if(l.length===0)return".";let e;for(let r=0;r0&&(e===void 0?e=o:e+=`/${o}`)}return e===void 0?".":ex.normalize(e)},relative(l,e){if(RI(l,"from"),RI(e,"to"),l===e||(l=ex.resolve(l),e=ex.resolve(e),l===e))return"";let r=1,o=l.length,c=o-r,d=1,h=e.length-d,b=cb){if(e.charCodeAt(d+N)===e3)return e.slice(d+N+1);if(N===0)return e.slice(d+N)}else c>b&&(l.charCodeAt(r+N)===e3?w=N:N===0&&(w=0));let L="";for(N=r+w+1;N<=o;++N)(N===o||l.charCodeAt(N)===e3)&&(L+=L.length===0?"..":"/..");return`${L}${e.slice(d+w)}`},toNamespacedPath(l){return l},dirname(l){if(RI(l,"path"),l.length===0)return".";let e=l.charCodeAt(0)===e3,r=-1,o=!0;for(let c=l.length-1;c>=1;--c)if(l.charCodeAt(c)===e3){if(!o){r=c;break}}else o=!1;return r===-1?e?"/":".":e&&r===1?"//":l.slice(0,r)},basename(l,e){e!==void 0&&RI(e,"ext"),RI(l,"path");let r=0,o=-1,c=!0,d;if(e!==void 0&&e.length>0&&e.length<=l.length){if(e===l)return"";let h=e.length-1,b=-1;for(d=l.length-1;d>=0;--d){let w=l.charCodeAt(d);if(w===e3){if(!c){r=d+1;break}}else b===-1&&(c=!1,b=d+1),h>=0&&(w===e.charCodeAt(h)?--h===-1&&(o=d):(h=-1,o=b))}return r===o?o=b:o===-1&&(o=l.length),l.slice(r,o)}for(d=l.length-1;d>=0;--d)if(l.charCodeAt(d)===e3){if(!c){r=d+1;break}}else o===-1&&(c=!1,o=d+1);return o===-1?"":l.slice(r,o)},extname(l){RI(l,"path");let e=-1,r=0,o=-1,c=!0,d=0;for(let h=l.length-1;h>=0;--h){let b=l.charCodeAt(h);if(b===e3){if(!c){r=h+1;break}continue}o===-1&&(c=!1,o=h+1),b===Ube?e===-1?e=h:d!==1&&(d=1):e!==-1&&(d=-1)}return e===-1||o===-1||d===0||d===1&&e===o-1&&e===r+1?"":l.slice(e,o)},format:Agi.bind(null,"/"),parse(l){RI(l,"path");let e={root:"",dir:"",base:"",ext:"",name:""};if(l.length===0)return e;let r=l.charCodeAt(0)===e3,o;r?(e.root="/",o=1):o=0;let c=-1,d=0,h=-1,b=!0,w=l.length-1,N=0;for(;w>=o;--w){let L=l.charCodeAt(w);if(L===e3){if(!b){d=w+1;break}continue}h===-1&&(b=!1,h=w+1),L===Ube?c===-1?c=w:N!==1&&(N=1):c!==-1&&(N=-1)}if(h!==-1){let L=d===0&&r?1:d;c===-1||N===0||N===1&&c===h-1&&c===d+1?e.base=e.name=l.slice(L,h):(e.name=l.slice(L,c),e.base=l.slice(L,h),e.ext=l.slice(c,h))}return d>0?e.dir=l.slice(0,d-1):r&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};ex.win32=YF.win32=YF;ex.posix=YF.posix=ex;CDt=Jbe?YF.normalize:ex.normalize,Pgi=Jbe?YF.resolve:ex.resolve,Lgi=Jbe?YF.relative:ex.relative,kDt=Jbe?YF.dirname:ex.dirname,Lq=Jbe?YF.basename:ex.basename,Ogi=Jbe?YF.extname:ex.extname,kR=Jbe?YF.sep:ex.sep});function eRi(l,e){if(!l.scheme&&e)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${l.authority}", path: "${l.path}", query: "${l.query}", fragment: "${l.fragment}"}`);if(l.scheme&&!YMi.test(l.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(l.path){if(l.authority){if(!QMi.test(l.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(ZMi.test(l.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function tRi(l,e){return!l&&!e?"file":l}function iRi(l,e){switch(l){case"https":case"http":case"file":e?e[0]!==WY&&(e=WY+e):e=WY;break}return e}function Fgi(l,e,r){let o,c=-1;for(let d=0;d=97&&h<=122||h>=65&&h<=90||h>=48&&h<=57||h===45||h===46||h===95||h===126||e&&h===47||r&&h===91||r&&h===93||r&&h===58)c!==-1&&(o+=encodeURIComponent(l.substring(c,d)),c=-1),o!==void 0&&(o+=l.charAt(d));else{o===void 0&&(o=l.substr(0,d));let b=Bgi[h];b!==void 0?(c!==-1&&(o+=encodeURIComponent(l.substring(c,d)),c=-1),o+=b):c===-1&&(c=d)}}return c!==-1&&(o+=encodeURIComponent(l.substring(c))),o!==void 0?o:l}function rRi(l){let e;for(let r=0;r1&&l.scheme==="file"?r=`//${l.authority}${l.path}`:l.path.charCodeAt(0)===47&&(l.path.charCodeAt(1)>=65&&l.path.charCodeAt(1)<=90||l.path.charCodeAt(1)>=97&&l.path.charCodeAt(1)<=122)&&l.path.charCodeAt(2)===58?e?r=l.path.substr(1):r=l.path[1].toLowerCase()+l.path.substr(2):r=l.path,Bv&&(r=r.replace(/\//g,"\\")),r}function mQt(l,e){let r=e?rRi:Fgi,o="",{scheme:c,authority:d,path:h,query:b,fragment:w}=l;if(c&&(o+=c,o+=":"),(d||c==="file")&&(o+=WY,o+=WY),d){let N=d.indexOf("@");if(N!==-1){let L=d.substr(0,N);d=d.substr(N+1),N=L.lastIndexOf(":"),N===-1?o+=r(L,!1,!1):(o+=r(L.substr(0,N),!1,!1),o+=":",o+=r(L.substr(N+1),!1,!0)),o+="@"}d=d.toLowerCase(),N=d.lastIndexOf(":"),N===-1?o+=r(d,!1,!0):(o+=r(d.substr(0,N),!1,!0),o+=d.substr(N))}if(h){if(h.length>=3&&h.charCodeAt(0)===47&&h.charCodeAt(2)===58){let N=h.charCodeAt(1);N>=65&&N<=90&&(h=`/${String.fromCharCode(N+32)}:${h.substr(3)}`)}else if(h.length>=2&&h.charCodeAt(1)===58){let N=h.charCodeAt(0);N>=65&&N<=90&&(h=`${String.fromCharCode(N+32)}:${h.substr(2)}`)}o+=r(h,!0,!1)}return b&&(o+="?",o+=r(b,!1,!1)),w&&(o+="#",o+=e?w:Fgi(w,!1,!1)),o}function jgi(l){try{return decodeURIComponent(l)}catch{return l.length>3?l.substr(0,3)+jgi(l.substr(3)):l}}function TDt(l){return l.match(Mgi)?l.replace(Mgi,e=>jgi(e)):l}var YMi,QMi,ZMi,Rw,WY,nRi,qc,Rgi,qbe,Bgi,Mgi,s0=ti(()=>{jY();X_();YMi=/^\w[\w\d+.-]*$/,QMi=/^\//,ZMi=/^\/\//;Rw="",WY="/",nRi=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,qc=class l{static isUri(e){return e instanceof l?!0:e?typeof e.authority=="string"&&typeof e.fragment=="string"&&typeof e.path=="string"&&typeof e.query=="string"&&typeof e.scheme=="string"&&typeof e.fsPath=="string"&&typeof e.with=="function"&&typeof e.toString=="function":!1}constructor(e,r,o,c,d,h=!1){typeof e=="object"?(this.scheme=e.scheme||Rw,this.authority=e.authority||Rw,this.path=e.path||Rw,this.query=e.query||Rw,this.fragment=e.fragment||Rw):(this.scheme=tRi(e,h),this.authority=r||Rw,this.path=iRi(this.scheme,o||Rw),this.query=c||Rw,this.fragment=d||Rw,eRi(this,h))}get fsPath(){return iut(this,!1)}with(e){if(!e)return this;let{scheme:r,authority:o,path:c,query:d,fragment:h}=e;return r===void 0?r=this.scheme:r===null&&(r=Rw),o===void 0?o=this.authority:o===null&&(o=Rw),c===void 0?c=this.path:c===null&&(c=Rw),d===void 0?d=this.query:d===null&&(d=Rw),h===void 0?h=this.fragment:h===null&&(h=Rw),r===this.scheme&&o===this.authority&&c===this.path&&d===this.query&&h===this.fragment?this:new qbe(r,o,c,d,h)}static parse(e,r=!1){let o=nRi.exec(e);return o?new qbe(o[2]||Rw,TDt(o[4]||Rw),TDt(o[5]||Rw),TDt(o[7]||Rw),TDt(o[9]||Rw),r):new qbe(Rw,Rw,Rw,Rw,Rw)}static file(e){let r=Rw;if(Bv&&(e=e.replace(/\\/g,WY)),e[0]===WY&&e[1]===WY){let o=e.indexOf(WY,2);o===-1?(r=e.substring(2),e=WY):(r=e.substring(2,o),e=e.substring(o)||WY)}return new qbe("file",r,e,Rw,Rw)}static from(e,r){return new qbe(e.scheme,e.authority,e.path,e.query,e.fragment,r)}static joinPath(e,...r){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let o;return Bv&&e.scheme==="file"?o=l.file(YF.join(iut(e,!0),...r)).path:o=ex.join(e.path,...r),e.with({path:o})}toString(e=!1){return mQt(this,e)}toJSON(){return this}static revive(e){var r,o;if(e){if(e instanceof l)return e;{let c=new qbe(e);return c._formatted=(r=e.external)!==null&&r!==void 0?r:null,c._fsPath=e._sep===Rgi&&(o=e.fsPath)!==null&&o!==void 0?o:null,c}}else return e}},Rgi=Bv?1:void 0,qbe=class extends qc{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=iut(this,!1)),this._fsPath}toString(e=!1){return e?mQt(this,!0):(this._formatted||(this._formatted=mQt(this,!1)),this._formatted)}toJSON(){let e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=Rgi),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}},Bgi={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"};Mgi=/(%[0-9A-Za-z][0-9A-Za-z])+/g});var qn,Iu=ti(()=>{qn=class l{constructor(e,r){this.lineNumber=e,this.column=r}with(e=this.lineNumber,r=this.column){return e===this.lineNumber&&r===this.column?this:new l(e,r)}delta(e=0,r=0){return this.with(this.lineNumber+e,this.column+r)}equals(e){return l.equals(this,e)}static equals(e,r){return!e&&!r?!0:!!e&&!!r&&e.lineNumber===r.lineNumber&&e.column===r.column}isBefore(e){return l.isBefore(this,e)}static isBefore(e,r){return e.lineNumber{Iu();Zt=class l{constructor(e,r,o,c){e>o||e===o&&r>c?(this.startLineNumber=o,this.startColumn=c,this.endLineNumber=e,this.endColumn=r):(this.startLineNumber=e,this.startColumn=r,this.endLineNumber=o,this.endColumn=c)}isEmpty(){return l.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return l.containsPosition(this,e)}static containsPosition(e,r){return!(r.lineNumbere.endLineNumber||r.lineNumber===e.startLineNumber&&r.columne.endColumn)}static strictContainsPosition(e,r){return!(r.lineNumbere.endLineNumber||r.lineNumber===e.startLineNumber&&r.column<=e.startColumn||r.lineNumber===e.endLineNumber&&r.column>=e.endColumn)}containsRange(e){return l.containsRange(this,e)}static containsRange(e,r){return!(r.startLineNumbere.endLineNumber||r.endLineNumber>e.endLineNumber||r.startLineNumber===e.startLineNumber&&r.startColumne.endColumn)}strictContainsRange(e){return l.strictContainsRange(this,e)}static strictContainsRange(e,r){return!(r.startLineNumbere.endLineNumber||r.endLineNumber>e.endLineNumber||r.startLineNumber===e.startLineNumber&&r.startColumn<=e.startColumn||r.endLineNumber===e.endLineNumber&&r.endColumn>=e.endColumn)}plusRange(e){return l.plusRange(this,e)}static plusRange(e,r){let o,c,d,h;return r.startLineNumbere.endLineNumber?(d=r.endLineNumber,h=r.endColumn):r.endLineNumber===e.endLineNumber?(d=r.endLineNumber,h=Math.max(r.endColumn,e.endColumn)):(d=e.endLineNumber,h=e.endColumn),new l(o,c,d,h)}intersectRanges(e){return l.intersectRanges(this,e)}static intersectRanges(e,r){let o=e.startLineNumber,c=e.startColumn,d=e.endLineNumber,h=e.endColumn,b=r.startLineNumber,w=r.startColumn,N=r.endLineNumber,L=r.endColumn;return oN?(d=N,h=L):d===N&&(h=Math.min(h,L)),o>d||o===d&&c>h?null:new l(o,c,d,h)}equalsRange(e){return l.equalsRange(this,e)}static equalsRange(e,r){return!e&&!r?!0:!!e&&!!r&&e.startLineNumber===r.startLineNumber&&e.startColumn===r.startColumn&&e.endLineNumber===r.endLineNumber&&e.endColumn===r.endColumn}getEndPosition(){return l.getEndPosition(this)}static getEndPosition(e){return new qn(e.endLineNumber,e.endColumn)}getStartPosition(){return l.getStartPosition(this)}static getStartPosition(e){return new qn(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,r){return new l(this.startLineNumber,this.startColumn,e,r)}setStartPosition(e,r){return new l(e,r,this.endLineNumber,this.endColumn)}collapseToStart(){return l.collapseToStart(this)}static collapseToStart(e){return new l(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return l.collapseToEnd(this)}static collapseToEnd(e){return new l(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new l(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,r=e){return new l(e.lineNumber,e.column,r.lineNumber,r.column)}static lift(e){return e?new l(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&typeof e.startLineNumber=="number"&&typeof e.startColumn=="number"&&typeof e.endLineNumber=="number"&&typeof e.endColumn=="number"}static areIntersectingOrTouching(e,r){return!(e.endLineNumbere.startLineNumber}toJSON(){return this}}});var ic,j0=ti(()=>{Iu();Xa();ic=class l extends Zt{constructor(e,r,o,c){super(e,r,o,c),this.selectionStartLineNumber=e,this.selectionStartColumn=r,this.positionLineNumber=o,this.positionColumn=c}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return l.selectionsEqual(this,e)}static selectionsEqual(e,r){return e.selectionStartLineNumber===r.selectionStartLineNumber&&e.selectionStartColumn===r.selectionStartColumn&&e.positionLineNumber===r.positionLineNumber&&e.positionColumn===r.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,r){return this.getDirection()===0?new l(this.startLineNumber,this.startColumn,e,r):new l(e,r,this.startLineNumber,this.startColumn)}getPosition(){return new qn(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new qn(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,r){return this.getDirection()===0?new l(e,r,this.endLineNumber,this.endColumn):new l(this.endLineNumber,this.endColumn,e,r)}static fromPositions(e,r=e){return new l(e.lineNumber,e.column,r.lineNumber,r.column)}static fromRange(e,r){return r===0?new l(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new l(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new l(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,r){if(e&&!r||!e&&r)return!1;if(!e&&!r)return!0;if(e.length!==r.length)return!1;for(let o=0,c=e.length;o{Fh();hQt=Object.create(null)});var Wgi,zgi=ti(()=>{nut();Wgi={add:fi("add",6e4),plus:fi("plus",6e4),gistNew:fi("gist-new",6e4),repoCreate:fi("repo-create",6e4),lightbulb:fi("lightbulb",60001),lightBulb:fi("light-bulb",60001),repo:fi("repo",60002),repoDelete:fi("repo-delete",60002),gistFork:fi("gist-fork",60003),repoForked:fi("repo-forked",60003),gitPullRequest:fi("git-pull-request",60004),gitPullRequestAbandoned:fi("git-pull-request-abandoned",60004),recordKeys:fi("record-keys",60005),keyboard:fi("keyboard",60005),tag:fi("tag",60006),gitPullRequestLabel:fi("git-pull-request-label",60006),tagAdd:fi("tag-add",60006),tagRemove:fi("tag-remove",60006),person:fi("person",60007),personFollow:fi("person-follow",60007),personOutline:fi("person-outline",60007),personFilled:fi("person-filled",60007),gitBranch:fi("git-branch",60008),gitBranchCreate:fi("git-branch-create",60008),gitBranchDelete:fi("git-branch-delete",60008),sourceControl:fi("source-control",60008),mirror:fi("mirror",60009),mirrorPublic:fi("mirror-public",60009),star:fi("star",60010),starAdd:fi("star-add",60010),starDelete:fi("star-delete",60010),starEmpty:fi("star-empty",60010),comment:fi("comment",60011),commentAdd:fi("comment-add",60011),alert:fi("alert",60012),warning:fi("warning",60012),search:fi("search",60013),searchSave:fi("search-save",60013),logOut:fi("log-out",60014),signOut:fi("sign-out",60014),logIn:fi("log-in",60015),signIn:fi("sign-in",60015),eye:fi("eye",60016),eyeUnwatch:fi("eye-unwatch",60016),eyeWatch:fi("eye-watch",60016),circleFilled:fi("circle-filled",60017),primitiveDot:fi("primitive-dot",60017),closeDirty:fi("close-dirty",60017),debugBreakpoint:fi("debug-breakpoint",60017),debugBreakpointDisabled:fi("debug-breakpoint-disabled",60017),debugHint:fi("debug-hint",60017),terminalDecorationSuccess:fi("terminal-decoration-success",60017),primitiveSquare:fi("primitive-square",60018),edit:fi("edit",60019),pencil:fi("pencil",60019),info:fi("info",60020),issueOpened:fi("issue-opened",60020),gistPrivate:fi("gist-private",60021),gitForkPrivate:fi("git-fork-private",60021),lock:fi("lock",60021),mirrorPrivate:fi("mirror-private",60021),close:fi("close",60022),removeClose:fi("remove-close",60022),x:fi("x",60022),repoSync:fi("repo-sync",60023),sync:fi("sync",60023),clone:fi("clone",60024),desktopDownload:fi("desktop-download",60024),beaker:fi("beaker",60025),microscope:fi("microscope",60025),vm:fi("vm",60026),deviceDesktop:fi("device-desktop",60026),file:fi("file",60027),fileText:fi("file-text",60027),more:fi("more",60028),ellipsis:fi("ellipsis",60028),kebabHorizontal:fi("kebab-horizontal",60028),mailReply:fi("mail-reply",60029),reply:fi("reply",60029),organization:fi("organization",60030),organizationFilled:fi("organization-filled",60030),organizationOutline:fi("organization-outline",60030),newFile:fi("new-file",60031),fileAdd:fi("file-add",60031),newFolder:fi("new-folder",60032),fileDirectoryCreate:fi("file-directory-create",60032),trash:fi("trash",60033),trashcan:fi("trashcan",60033),history:fi("history",60034),clock:fi("clock",60034),folder:fi("folder",60035),fileDirectory:fi("file-directory",60035),symbolFolder:fi("symbol-folder",60035),logoGithub:fi("logo-github",60036),markGithub:fi("mark-github",60036),github:fi("github",60036),terminal:fi("terminal",60037),console:fi("console",60037),repl:fi("repl",60037),zap:fi("zap",60038),symbolEvent:fi("symbol-event",60038),error:fi("error",60039),stop:fi("stop",60039),variable:fi("variable",60040),symbolVariable:fi("symbol-variable",60040),array:fi("array",60042),symbolArray:fi("symbol-array",60042),symbolModule:fi("symbol-module",60043),symbolPackage:fi("symbol-package",60043),symbolNamespace:fi("symbol-namespace",60043),symbolObject:fi("symbol-object",60043),symbolMethod:fi("symbol-method",60044),symbolFunction:fi("symbol-function",60044),symbolConstructor:fi("symbol-constructor",60044),symbolBoolean:fi("symbol-boolean",60047),symbolNull:fi("symbol-null",60047),symbolNumeric:fi("symbol-numeric",60048),symbolNumber:fi("symbol-number",60048),symbolStructure:fi("symbol-structure",60049),symbolStruct:fi("symbol-struct",60049),symbolParameter:fi("symbol-parameter",60050),symbolTypeParameter:fi("symbol-type-parameter",60050),symbolKey:fi("symbol-key",60051),symbolText:fi("symbol-text",60051),symbolReference:fi("symbol-reference",60052),goToFile:fi("go-to-file",60052),symbolEnum:fi("symbol-enum",60053),symbolValue:fi("symbol-value",60053),symbolRuler:fi("symbol-ruler",60054),symbolUnit:fi("symbol-unit",60054),activateBreakpoints:fi("activate-breakpoints",60055),archive:fi("archive",60056),arrowBoth:fi("arrow-both",60057),arrowDown:fi("arrow-down",60058),arrowLeft:fi("arrow-left",60059),arrowRight:fi("arrow-right",60060),arrowSmallDown:fi("arrow-small-down",60061),arrowSmallLeft:fi("arrow-small-left",60062),arrowSmallRight:fi("arrow-small-right",60063),arrowSmallUp:fi("arrow-small-up",60064),arrowUp:fi("arrow-up",60065),bell:fi("bell",60066),bold:fi("bold",60067),book:fi("book",60068),bookmark:fi("bookmark",60069),debugBreakpointConditionalUnverified:fi("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:fi("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:fi("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:fi("debug-breakpoint-data-unverified",60072),debugBreakpointData:fi("debug-breakpoint-data",60073),debugBreakpointDataDisabled:fi("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:fi("debug-breakpoint-log-unverified",60074),debugBreakpointLog:fi("debug-breakpoint-log",60075),debugBreakpointLogDisabled:fi("debug-breakpoint-log-disabled",60075),briefcase:fi("briefcase",60076),broadcast:fi("broadcast",60077),browser:fi("browser",60078),bug:fi("bug",60079),calendar:fi("calendar",60080),caseSensitive:fi("case-sensitive",60081),check:fi("check",60082),checklist:fi("checklist",60083),chevronDown:fi("chevron-down",60084),chevronLeft:fi("chevron-left",60085),chevronRight:fi("chevron-right",60086),chevronUp:fi("chevron-up",60087),chromeClose:fi("chrome-close",60088),chromeMaximize:fi("chrome-maximize",60089),chromeMinimize:fi("chrome-minimize",60090),chromeRestore:fi("chrome-restore",60091),circleOutline:fi("circle-outline",60092),circle:fi("circle",60092),debugBreakpointUnverified:fi("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:fi("terminal-decoration-incomplete",60092),circleSlash:fi("circle-slash",60093),circuitBoard:fi("circuit-board",60094),clearAll:fi("clear-all",60095),clippy:fi("clippy",60096),closeAll:fi("close-all",60097),cloudDownload:fi("cloud-download",60098),cloudUpload:fi("cloud-upload",60099),code:fi("code",60100),collapseAll:fi("collapse-all",60101),colorMode:fi("color-mode",60102),commentDiscussion:fi("comment-discussion",60103),creditCard:fi("credit-card",60105),dash:fi("dash",60108),dashboard:fi("dashboard",60109),database:fi("database",60110),debugContinue:fi("debug-continue",60111),debugDisconnect:fi("debug-disconnect",60112),debugPause:fi("debug-pause",60113),debugRestart:fi("debug-restart",60114),debugStart:fi("debug-start",60115),debugStepInto:fi("debug-step-into",60116),debugStepOut:fi("debug-step-out",60117),debugStepOver:fi("debug-step-over",60118),debugStop:fi("debug-stop",60119),debug:fi("debug",60120),deviceCameraVideo:fi("device-camera-video",60121),deviceCamera:fi("device-camera",60122),deviceMobile:fi("device-mobile",60123),diffAdded:fi("diff-added",60124),diffIgnored:fi("diff-ignored",60125),diffModified:fi("diff-modified",60126),diffRemoved:fi("diff-removed",60127),diffRenamed:fi("diff-renamed",60128),diff:fi("diff",60129),diffSidebyside:fi("diff-sidebyside",60129),discard:fi("discard",60130),editorLayout:fi("editor-layout",60131),emptyWindow:fi("empty-window",60132),exclude:fi("exclude",60133),extensions:fi("extensions",60134),eyeClosed:fi("eye-closed",60135),fileBinary:fi("file-binary",60136),fileCode:fi("file-code",60137),fileMedia:fi("file-media",60138),filePdf:fi("file-pdf",60139),fileSubmodule:fi("file-submodule",60140),fileSymlinkDirectory:fi("file-symlink-directory",60141),fileSymlinkFile:fi("file-symlink-file",60142),fileZip:fi("file-zip",60143),files:fi("files",60144),filter:fi("filter",60145),flame:fi("flame",60146),foldDown:fi("fold-down",60147),foldUp:fi("fold-up",60148),fold:fi("fold",60149),folderActive:fi("folder-active",60150),folderOpened:fi("folder-opened",60151),gear:fi("gear",60152),gift:fi("gift",60153),gistSecret:fi("gist-secret",60154),gist:fi("gist",60155),gitCommit:fi("git-commit",60156),gitCompare:fi("git-compare",60157),compareChanges:fi("compare-changes",60157),gitMerge:fi("git-merge",60158),githubAction:fi("github-action",60159),githubAlt:fi("github-alt",60160),globe:fi("globe",60161),grabber:fi("grabber",60162),graph:fi("graph",60163),gripper:fi("gripper",60164),heart:fi("heart",60165),home:fi("home",60166),horizontalRule:fi("horizontal-rule",60167),hubot:fi("hubot",60168),inbox:fi("inbox",60169),issueReopened:fi("issue-reopened",60171),issues:fi("issues",60172),italic:fi("italic",60173),jersey:fi("jersey",60174),json:fi("json",60175),kebabVertical:fi("kebab-vertical",60176),key:fi("key",60177),law:fi("law",60178),lightbulbAutofix:fi("lightbulb-autofix",60179),linkExternal:fi("link-external",60180),link:fi("link",60181),listOrdered:fi("list-ordered",60182),listUnordered:fi("list-unordered",60183),liveShare:fi("live-share",60184),loading:fi("loading",60185),location:fi("location",60186),mailRead:fi("mail-read",60187),mail:fi("mail",60188),markdown:fi("markdown",60189),megaphone:fi("megaphone",60190),mention:fi("mention",60191),milestone:fi("milestone",60192),gitPullRequestMilestone:fi("git-pull-request-milestone",60192),mortarBoard:fi("mortar-board",60193),move:fi("move",60194),multipleWindows:fi("multiple-windows",60195),mute:fi("mute",60196),noNewline:fi("no-newline",60197),note:fi("note",60198),octoface:fi("octoface",60199),openPreview:fi("open-preview",60200),package:fi("package",60201),paintcan:fi("paintcan",60202),pin:fi("pin",60203),play:fi("play",60204),run:fi("run",60204),plug:fi("plug",60205),preserveCase:fi("preserve-case",60206),preview:fi("preview",60207),project:fi("project",60208),pulse:fi("pulse",60209),question:fi("question",60210),quote:fi("quote",60211),radioTower:fi("radio-tower",60212),reactions:fi("reactions",60213),references:fi("references",60214),refresh:fi("refresh",60215),regex:fi("regex",60216),remoteExplorer:fi("remote-explorer",60217),remote:fi("remote",60218),remove:fi("remove",60219),replaceAll:fi("replace-all",60220),replace:fi("replace",60221),repoClone:fi("repo-clone",60222),repoForcePush:fi("repo-force-push",60223),repoPull:fi("repo-pull",60224),repoPush:fi("repo-push",60225),report:fi("report",60226),requestChanges:fi("request-changes",60227),rocket:fi("rocket",60228),rootFolderOpened:fi("root-folder-opened",60229),rootFolder:fi("root-folder",60230),rss:fi("rss",60231),ruby:fi("ruby",60232),saveAll:fi("save-all",60233),saveAs:fi("save-as",60234),save:fi("save",60235),screenFull:fi("screen-full",60236),screenNormal:fi("screen-normal",60237),searchStop:fi("search-stop",60238),server:fi("server",60240),settingsGear:fi("settings-gear",60241),settings:fi("settings",60242),shield:fi("shield",60243),smiley:fi("smiley",60244),sortPrecedence:fi("sort-precedence",60245),splitHorizontal:fi("split-horizontal",60246),splitVertical:fi("split-vertical",60247),squirrel:fi("squirrel",60248),starFull:fi("star-full",60249),starHalf:fi("star-half",60250),symbolClass:fi("symbol-class",60251),symbolColor:fi("symbol-color",60252),symbolConstant:fi("symbol-constant",60253),symbolEnumMember:fi("symbol-enum-member",60254),symbolField:fi("symbol-field",60255),symbolFile:fi("symbol-file",60256),symbolInterface:fi("symbol-interface",60257),symbolKeyword:fi("symbol-keyword",60258),symbolMisc:fi("symbol-misc",60259),symbolOperator:fi("symbol-operator",60260),symbolProperty:fi("symbol-property",60261),wrench:fi("wrench",60261),wrenchSubaction:fi("wrench-subaction",60261),symbolSnippet:fi("symbol-snippet",60262),tasklist:fi("tasklist",60263),telescope:fi("telescope",60264),textSize:fi("text-size",60265),threeBars:fi("three-bars",60266),thumbsdown:fi("thumbsdown",60267),thumbsup:fi("thumbsup",60268),tools:fi("tools",60269),triangleDown:fi("triangle-down",60270),triangleLeft:fi("triangle-left",60271),triangleRight:fi("triangle-right",60272),triangleUp:fi("triangle-up",60273),twitter:fi("twitter",60274),unfold:fi("unfold",60275),unlock:fi("unlock",60276),unmute:fi("unmute",60277),unverified:fi("unverified",60278),verified:fi("verified",60279),versions:fi("versions",60280),vmActive:fi("vm-active",60281),vmOutline:fi("vm-outline",60282),vmRunning:fi("vm-running",60283),watch:fi("watch",60284),whitespace:fi("whitespace",60285),wholeWord:fi("whole-word",60286),window:fi("window",60287),wordWrap:fi("word-wrap",60288),zoomIn:fi("zoom-in",60289),zoomOut:fi("zoom-out",60290),listFilter:fi("list-filter",60291),listFlat:fi("list-flat",60292),listSelection:fi("list-selection",60293),selection:fi("selection",60293),listTree:fi("list-tree",60294),debugBreakpointFunctionUnverified:fi("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:fi("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:fi("debug-breakpoint-function-disabled",60296),debugStackframeActive:fi("debug-stackframe-active",60297),circleSmallFilled:fi("circle-small-filled",60298),debugStackframeDot:fi("debug-stackframe-dot",60298),terminalDecorationMark:fi("terminal-decoration-mark",60298),debugStackframe:fi("debug-stackframe",60299),debugStackframeFocused:fi("debug-stackframe-focused",60299),debugBreakpointUnsupported:fi("debug-breakpoint-unsupported",60300),symbolString:fi("symbol-string",60301),debugReverseContinue:fi("debug-reverse-continue",60302),debugStepBack:fi("debug-step-back",60303),debugRestartFrame:fi("debug-restart-frame",60304),debugAlt:fi("debug-alt",60305),callIncoming:fi("call-incoming",60306),callOutgoing:fi("call-outgoing",60307),menu:fi("menu",60308),expandAll:fi("expand-all",60309),feedback:fi("feedback",60310),gitPullRequestReviewer:fi("git-pull-request-reviewer",60310),groupByRefType:fi("group-by-ref-type",60311),ungroupByRefType:fi("ungroup-by-ref-type",60312),account:fi("account",60313),gitPullRequestAssignee:fi("git-pull-request-assignee",60313),bellDot:fi("bell-dot",60314),debugConsole:fi("debug-console",60315),library:fi("library",60316),output:fi("output",60317),runAll:fi("run-all",60318),syncIgnored:fi("sync-ignored",60319),pinned:fi("pinned",60320),githubInverted:fi("github-inverted",60321),serverProcess:fi("server-process",60322),serverEnvironment:fi("server-environment",60323),pass:fi("pass",60324),issueClosed:fi("issue-closed",60324),stopCircle:fi("stop-circle",60325),playCircle:fi("play-circle",60326),record:fi("record",60327),debugAltSmall:fi("debug-alt-small",60328),vmConnect:fi("vm-connect",60329),cloud:fi("cloud",60330),merge:fi("merge",60331),export:fi("export",60332),graphLeft:fi("graph-left",60333),magnet:fi("magnet",60334),notebook:fi("notebook",60335),redo:fi("redo",60336),checkAll:fi("check-all",60337),pinnedDirty:fi("pinned-dirty",60338),passFilled:fi("pass-filled",60339),circleLargeFilled:fi("circle-large-filled",60340),circleLarge:fi("circle-large",60341),circleLargeOutline:fi("circle-large-outline",60341),combine:fi("combine",60342),gather:fi("gather",60342),table:fi("table",60343),variableGroup:fi("variable-group",60344),typeHierarchy:fi("type-hierarchy",60345),typeHierarchySub:fi("type-hierarchy-sub",60346),typeHierarchySuper:fi("type-hierarchy-super",60347),gitPullRequestCreate:fi("git-pull-request-create",60348),runAbove:fi("run-above",60349),runBelow:fi("run-below",60350),notebookTemplate:fi("notebook-template",60351),debugRerun:fi("debug-rerun",60352),workspaceTrusted:fi("workspace-trusted",60353),workspaceUntrusted:fi("workspace-untrusted",60354),workspaceUnknown:fi("workspace-unknown",60355),terminalCmd:fi("terminal-cmd",60356),terminalDebian:fi("terminal-debian",60357),terminalLinux:fi("terminal-linux",60358),terminalPowershell:fi("terminal-powershell",60359),terminalTmux:fi("terminal-tmux",60360),terminalUbuntu:fi("terminal-ubuntu",60361),terminalBash:fi("terminal-bash",60362),arrowSwap:fi("arrow-swap",60363),copy:fi("copy",60364),personAdd:fi("person-add",60365),filterFilled:fi("filter-filled",60366),wand:fi("wand",60367),debugLineByLine:fi("debug-line-by-line",60368),inspect:fi("inspect",60369),layers:fi("layers",60370),layersDot:fi("layers-dot",60371),layersActive:fi("layers-active",60372),compass:fi("compass",60373),compassDot:fi("compass-dot",60374),compassActive:fi("compass-active",60375),azure:fi("azure",60376),issueDraft:fi("issue-draft",60377),gitPullRequestClosed:fi("git-pull-request-closed",60378),gitPullRequestDraft:fi("git-pull-request-draft",60379),debugAll:fi("debug-all",60380),debugCoverage:fi("debug-coverage",60381),runErrors:fi("run-errors",60382),folderLibrary:fi("folder-library",60383),debugContinueSmall:fi("debug-continue-small",60384),beakerStop:fi("beaker-stop",60385),graphLine:fi("graph-line",60386),graphScatter:fi("graph-scatter",60387),pieChart:fi("pie-chart",60388),bracket:fi("bracket",60175),bracketDot:fi("bracket-dot",60389),bracketError:fi("bracket-error",60390),lockSmall:fi("lock-small",60391),azureDevops:fi("azure-devops",60392),verifiedFilled:fi("verified-filled",60393),newline:fi("newline",60394),layout:fi("layout",60395),layoutActivitybarLeft:fi("layout-activitybar-left",60396),layoutActivitybarRight:fi("layout-activitybar-right",60397),layoutPanelLeft:fi("layout-panel-left",60398),layoutPanelCenter:fi("layout-panel-center",60399),layoutPanelJustify:fi("layout-panel-justify",60400),layoutPanelRight:fi("layout-panel-right",60401),layoutPanel:fi("layout-panel",60402),layoutSidebarLeft:fi("layout-sidebar-left",60403),layoutSidebarRight:fi("layout-sidebar-right",60404),layoutStatusbar:fi("layout-statusbar",60405),layoutMenubar:fi("layout-menubar",60406),layoutCentered:fi("layout-centered",60407),target:fi("target",60408),indent:fi("indent",60409),recordSmall:fi("record-small",60410),errorSmall:fi("error-small",60411),terminalDecorationError:fi("terminal-decoration-error",60411),arrowCircleDown:fi("arrow-circle-down",60412),arrowCircleLeft:fi("arrow-circle-left",60413),arrowCircleRight:fi("arrow-circle-right",60414),arrowCircleUp:fi("arrow-circle-up",60415),layoutSidebarRightOff:fi("layout-sidebar-right-off",60416),layoutPanelOff:fi("layout-panel-off",60417),layoutSidebarLeftOff:fi("layout-sidebar-left-off",60418),blank:fi("blank",60419),heartFilled:fi("heart-filled",60420),map:fi("map",60421),mapHorizontal:fi("map-horizontal",60421),foldHorizontal:fi("fold-horizontal",60421),mapFilled:fi("map-filled",60422),mapHorizontalFilled:fi("map-horizontal-filled",60422),foldHorizontalFilled:fi("fold-horizontal-filled",60422),circleSmall:fi("circle-small",60423),bellSlash:fi("bell-slash",60424),bellSlashDot:fi("bell-slash-dot",60425),commentUnresolved:fi("comment-unresolved",60426),gitPullRequestGoToChanges:fi("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:fi("git-pull-request-new-changes",60428),searchFuzzy:fi("search-fuzzy",60429),commentDraft:fi("comment-draft",60430),send:fi("send",60431),sparkle:fi("sparkle",60432),insert:fi("insert",60433),mic:fi("mic",60434),thumbsdownFilled:fi("thumbsdown-filled",60435),thumbsupFilled:fi("thumbsup-filled",60436),coffee:fi("coffee",60437),snake:fi("snake",60438),game:fi("game",60439),vr:fi("vr",60440),chip:fi("chip",60441),piano:fi("piano",60442),music:fi("music",60443),micFilled:fi("mic-filled",60444),repoFetch:fi("repo-fetch",60445),copilot:fi("copilot",60446),lightbulbSparkle:fi("lightbulb-sparkle",60447),robot:fi("robot",60448),sparkleFilled:fi("sparkle-filled",60449),diffSingle:fi("diff-single",60450),diffMultiple:fi("diff-multiple",60451),surroundWith:fi("surround-with",60452),share:fi("share",60453),gitStash:fi("git-stash",60454),gitStashApply:fi("git-stash-apply",60455),gitStashPop:fi("git-stash-pop",60456),vscode:fi("vscode",60457),vscodeInsiders:fi("vscode-insiders",60458),codeOss:fi("code-oss",60459),runCoverage:fi("run-coverage",60460),runAllCoverage:fi("run-all-coverage",60461),coverage:fi("coverage",60462),githubProject:fi("github-project",60463),mapVertical:fi("map-vertical",60464),foldVertical:fi("fold-vertical",60464),mapVerticalFilled:fi("map-vertical-filled",60465),foldVerticalFilled:fi("fold-vertical-filled",60465),goToSearch:fi("go-to-search",60466),percentage:fi("percentage",60467),sortPercentage:fi("sort-percentage",60467),attach:fi("attach",60468)}});var sRi,_s,uy=ti(()=>{nut();zgi();sRi={dialogError:fi("dialog-error","error"),dialogWarning:fi("dialog-warning","warning"),dialogInfo:fi("dialog-info","info"),dialogClose:fi("dialog-close","close"),treeItemExpanded:fi("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:fi("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:fi("tree-filter-on-type-off","list-selection"),treeFilterClear:fi("tree-filter-clear","close"),treeItemLoading:fi("tree-item-loading","loading"),menuSelection:fi("menu-selection","check"),menuSubmenu:fi("menu-submenu","chevron-right"),menuBarMore:fi("menubar-more","more"),scrollbarButtonLeft:fi("scrollbar-button-left","triangle-left"),scrollbarButtonRight:fi("scrollbar-button-right","triangle-right"),scrollbarButtonUp:fi("scrollbar-button-up","triangle-up"),scrollbarButtonDown:fi("scrollbar-button-down","triangle-down"),toolBarMore:fi("toolbar-more","more"),quickInputBack:fi("quick-input-back","arrow-left"),dropDownButton:fi("drop-down-button",60084),symbolCustomColor:fi("symbol-customcolor",60252),exportIcon:fi("export",60332),workspaceUnspecified:fi("workspace-unspecified",60355),newLine:fi("newline",60394),thumbsDownFilled:fi("thumbsdown-filled",60435),thumbsUpFilled:fi("thumbsup-filled",60436),gitFetch:fi("git-fetch",60445),lightbulbSparkleAutofix:fi("lightbulb-sparkle-autofix",60447),debugBreakpointPending:fi("debug-breakpoint-pending",60377)},_s={...Wgi,...sRi}});var DDt,gQt,Vgi=ti(()=>{xc();co();DDt=class{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new wn,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,r){return this._tokenizationSupports.set(e,r),this.handleChange([e]),Ma(()=>{this._tokenizationSupports.get(e)===r&&(this._tokenizationSupports.delete(e),this.handleChange([e]))})}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,r){var o;(o=this._factories.get(e))===null||o===void 0||o.dispose();let c=new gQt(this,e,r);return this._factories.set(e,c),Ma(()=>{let d=this._factories.get(e);!d||d!==c||(this._factories.delete(e),d.dispose())})}async getOrCreate(e){let r=this.get(e);if(r)return r;let o=this._factories.get(e);return!o||o.isResolved?null:(await o.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;let o=this._factories.get(e);return!!(!o||o.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}},gQt=class extends tn{get isResolved(){return this._isResolved}constructor(e,r,o){super(),this._registry=e,this._languageId=r,this._factory=o,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(){let e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}}});function Hgi(l){return l&&qc.isUri(l.uri)&&Zt.isIRange(l.range)&&(Zt.isIRange(l.originSelectionRange)||Zt.isIRange(l.targetSelectionRange))}function Ugi(l,e){return ce("symbolAriaLabel","{0} ({1})",l,aRi[e])}var zY,$be,ofe,VO,M4e,Oq,Qze,R4e,lV,B4e,aRi,Zze,QF,IDt,j4e,NDt,rut,ADt,a0,out,dy=ti(()=>{uy();s0();Xa();Vgi();ya();zY=class{constructor(e,r,o){this.offset=e,this.type=r,this.language=o,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}},$be=class{constructor(e,r){this.tokens=e,this.endState=r,this._tokenizationResultBrand=void 0}},ofe=class{constructor(e,r){this.tokens=e,this.endState=r,this._encodedTokenizationResultBrand=void 0}};(function(l){l[l.Increase=0]="Increase",l[l.Decrease=1]="Decrease"})(VO||(VO={}));(function(l){let e=new Map;e.set(0,_s.symbolMethod),e.set(1,_s.symbolFunction),e.set(2,_s.symbolConstructor),e.set(3,_s.symbolField),e.set(4,_s.symbolVariable),e.set(5,_s.symbolClass),e.set(6,_s.symbolStruct),e.set(7,_s.symbolInterface),e.set(8,_s.symbolModule),e.set(9,_s.symbolProperty),e.set(10,_s.symbolEvent),e.set(11,_s.symbolOperator),e.set(12,_s.symbolUnit),e.set(13,_s.symbolValue),e.set(15,_s.symbolEnum),e.set(14,_s.symbolConstant),e.set(15,_s.symbolEnum),e.set(16,_s.symbolEnumMember),e.set(17,_s.symbolKeyword),e.set(27,_s.symbolSnippet),e.set(18,_s.symbolText),e.set(19,_s.symbolColor),e.set(20,_s.symbolFile),e.set(21,_s.symbolReference),e.set(22,_s.symbolCustomColor),e.set(23,_s.symbolFolder),e.set(24,_s.symbolTypeParameter),e.set(25,_s.account),e.set(26,_s.issues);function r(d){let h=e.get(d);return h||(console.info("No codicon found for CompletionItemKind "+d),h=_s.symbolProperty),h}l.toIcon=r;let o=new Map;o.set("method",0),o.set("function",1),o.set("constructor",2),o.set("field",3),o.set("variable",4),o.set("class",5),o.set("struct",6),o.set("interface",7),o.set("module",8),o.set("property",9),o.set("event",10),o.set("operator",11),o.set("unit",12),o.set("value",13),o.set("constant",14),o.set("enum",15),o.set("enum-member",16),o.set("enumMember",16),o.set("keyword",17),o.set("snippet",27),o.set("text",18),o.set("color",19),o.set("file",20),o.set("reference",21),o.set("customcolor",22),o.set("folder",23),o.set("type-parameter",24),o.set("typeParameter",24),o.set("account",25),o.set("issue",26);function c(d,h){let b=o.get(d);return typeof b>"u"&&!h&&(b=9),b}l.fromString=c})(M4e||(M4e={}));(function(l){l[l.Automatic=0]="Automatic",l[l.Explicit=1]="Explicit"})(Oq||(Oq={}));Qze=class{constructor(e,r,o,c){this.range=e,this.text=r,this.completionKind=o,this.isSnippetText=c}equals(e){return Zt.lift(this.range).equalsRange(e.range)&&this.text===e.text&&this.completionKind===e.completionKind&&this.isSnippetText===e.isSnippetText}};(function(l){l[l.Automatic=0]="Automatic",l[l.PasteAs=1]="PasteAs"})(R4e||(R4e={}));(function(l){l[l.Invoke=1]="Invoke",l[l.TriggerCharacter=2]="TriggerCharacter",l[l.ContentChange=3]="ContentChange"})(lV||(lV={}));(function(l){l[l.Text=0]="Text",l[l.Read=1]="Read",l[l.Write=2]="Write"})(B4e||(B4e={}));aRi={17:ce("Array","array"),16:ce("Boolean","boolean"),4:ce("Class","class"),13:ce("Constant","constant"),8:ce("Constructor","constructor"),9:ce("Enum","enumeration"),21:ce("EnumMember","enumeration member"),23:ce("Event","event"),7:ce("Field","field"),0:ce("File","file"),11:ce("Function","function"),10:ce("Interface","interface"),19:ce("Key","key"),5:ce("Method","method"),1:ce("Module","module"),2:ce("Namespace","namespace"),20:ce("Null","null"),15:ce("Number","number"),18:ce("Object","object"),24:ce("Operator","operator"),3:ce("Package","package"),6:ce("Property","property"),14:ce("String","string"),22:ce("Struct","struct"),25:ce("TypeParameter","type parameter"),12:ce("Variable","variable")};(function(l){let e=new Map;e.set(0,_s.symbolFile),e.set(1,_s.symbolModule),e.set(2,_s.symbolNamespace),e.set(3,_s.symbolPackage),e.set(4,_s.symbolClass),e.set(5,_s.symbolMethod),e.set(6,_s.symbolProperty),e.set(7,_s.symbolField),e.set(8,_s.symbolConstructor),e.set(9,_s.symbolEnum),e.set(10,_s.symbolInterface),e.set(11,_s.symbolFunction),e.set(12,_s.symbolVariable),e.set(13,_s.symbolConstant),e.set(14,_s.symbolString),e.set(15,_s.symbolNumber),e.set(16,_s.symbolBoolean),e.set(17,_s.symbolArray),e.set(18,_s.symbolObject),e.set(19,_s.symbolKey),e.set(20,_s.symbolNull),e.set(21,_s.symbolEnumMember),e.set(22,_s.symbolStruct),e.set(23,_s.symbolEvent),e.set(24,_s.symbolOperator),e.set(25,_s.symbolTypeParameter);function r(o){let c=e.get(o);return c||(console.info("No codicon found for SymbolKind "+o),c=_s.symbolProperty),c}l.toIcon=r})(Zze||(Zze={}));QF=class l{static fromValue(e){switch(e){case"comment":return l.Comment;case"imports":return l.Imports;case"region":return l.Region}return new l(e)}constructor(e){this.value=e}};QF.Comment=new QF("comment");QF.Imports=new QF("imports");QF.Region=new QF("region");(function(l){l[l.AIGenerated=1]="AIGenerated"})(IDt||(IDt={}));(function(l){l[l.Invoke=0]="Invoke",l[l.Automatic=1]="Automatic"})(j4e||(j4e={}));(function(l){function e(r){return!r||typeof r!="object"?!1:typeof r.id=="string"&&typeof r.title=="string"}l.is=e})(NDt||(NDt={}));(function(l){l[l.Type=1]="Type",l[l.Parameter=2]="Parameter"})(rut||(rut={}));ADt=class{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}},a0=new DDt;(function(l){l[l.Invoke=0]="Invoke",l[l.Automatic=1]="Automatic"})(out||(out={}))});var PDt,LDt,ODt,FDt,MDt,RDt,BDt,jDt,WDt,zDt,VDt,HDt,UDt,JDt,qDt,$Dt,GDt,KDt,XDt,YDt,QDt,ZDt,eIt,tIt,iIt,nIt,rIt,oIt,sIt,aIt,cIt,lIt,uIt,dIt,fIt,_It,pIt,mIt,hIt,gIt,yIt,vIt,bIt,SIt,xIt,CIt,kIt=ti(()=>{(function(l){l[l.Unknown=0]="Unknown",l[l.Disabled=1]="Disabled",l[l.Enabled=2]="Enabled"})(PDt||(PDt={}));(function(l){l[l.Invoke=1]="Invoke",l[l.Auto=2]="Auto"})(LDt||(LDt={}));(function(l){l[l.None=0]="None",l[l.KeepWhitespace=1]="KeepWhitespace",l[l.InsertAsSnippet=4]="InsertAsSnippet"})(ODt||(ODt={}));(function(l){l[l.Method=0]="Method",l[l.Function=1]="Function",l[l.Constructor=2]="Constructor",l[l.Field=3]="Field",l[l.Variable=4]="Variable",l[l.Class=5]="Class",l[l.Struct=6]="Struct",l[l.Interface=7]="Interface",l[l.Module=8]="Module",l[l.Property=9]="Property",l[l.Event=10]="Event",l[l.Operator=11]="Operator",l[l.Unit=12]="Unit",l[l.Value=13]="Value",l[l.Constant=14]="Constant",l[l.Enum=15]="Enum",l[l.EnumMember=16]="EnumMember",l[l.Keyword=17]="Keyword",l[l.Text=18]="Text",l[l.Color=19]="Color",l[l.File=20]="File",l[l.Reference=21]="Reference",l[l.Customcolor=22]="Customcolor",l[l.Folder=23]="Folder",l[l.TypeParameter=24]="TypeParameter",l[l.User=25]="User",l[l.Issue=26]="Issue",l[l.Snippet=27]="Snippet"})(FDt||(FDt={}));(function(l){l[l.Deprecated=1]="Deprecated"})(MDt||(MDt={}));(function(l){l[l.Invoke=0]="Invoke",l[l.TriggerCharacter=1]="TriggerCharacter",l[l.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(RDt||(RDt={}));(function(l){l[l.EXACT=0]="EXACT",l[l.ABOVE=1]="ABOVE",l[l.BELOW=2]="BELOW"})(BDt||(BDt={}));(function(l){l[l.NotSet=0]="NotSet",l[l.ContentFlush=1]="ContentFlush",l[l.RecoverFromMarkers=2]="RecoverFromMarkers",l[l.Explicit=3]="Explicit",l[l.Paste=4]="Paste",l[l.Undo=5]="Undo",l[l.Redo=6]="Redo"})(jDt||(jDt={}));(function(l){l[l.LF=1]="LF",l[l.CRLF=2]="CRLF"})(WDt||(WDt={}));(function(l){l[l.Text=0]="Text",l[l.Read=1]="Read",l[l.Write=2]="Write"})(zDt||(zDt={}));(function(l){l[l.None=0]="None",l[l.Keep=1]="Keep",l[l.Brackets=2]="Brackets",l[l.Advanced=3]="Advanced",l[l.Full=4]="Full"})(VDt||(VDt={}));(function(l){l[l.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",l[l.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",l[l.accessibilitySupport=2]="accessibilitySupport",l[l.accessibilityPageSize=3]="accessibilityPageSize",l[l.ariaLabel=4]="ariaLabel",l[l.ariaRequired=5]="ariaRequired",l[l.autoClosingBrackets=6]="autoClosingBrackets",l[l.autoClosingComments=7]="autoClosingComments",l[l.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",l[l.autoClosingDelete=9]="autoClosingDelete",l[l.autoClosingOvertype=10]="autoClosingOvertype",l[l.autoClosingQuotes=11]="autoClosingQuotes",l[l.autoIndent=12]="autoIndent",l[l.automaticLayout=13]="automaticLayout",l[l.autoSurround=14]="autoSurround",l[l.bracketPairColorization=15]="bracketPairColorization",l[l.guides=16]="guides",l[l.codeLens=17]="codeLens",l[l.codeLensFontFamily=18]="codeLensFontFamily",l[l.codeLensFontSize=19]="codeLensFontSize",l[l.colorDecorators=20]="colorDecorators",l[l.colorDecoratorsLimit=21]="colorDecoratorsLimit",l[l.columnSelection=22]="columnSelection",l[l.comments=23]="comments",l[l.contextmenu=24]="contextmenu",l[l.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",l[l.cursorBlinking=26]="cursorBlinking",l[l.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",l[l.cursorStyle=28]="cursorStyle",l[l.cursorSurroundingLines=29]="cursorSurroundingLines",l[l.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",l[l.cursorWidth=31]="cursorWidth",l[l.disableLayerHinting=32]="disableLayerHinting",l[l.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",l[l.domReadOnly=34]="domReadOnly",l[l.dragAndDrop=35]="dragAndDrop",l[l.dropIntoEditor=36]="dropIntoEditor",l[l.emptySelectionClipboard=37]="emptySelectionClipboard",l[l.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",l[l.extraEditorClassName=39]="extraEditorClassName",l[l.fastScrollSensitivity=40]="fastScrollSensitivity",l[l.find=41]="find",l[l.fixedOverflowWidgets=42]="fixedOverflowWidgets",l[l.folding=43]="folding",l[l.foldingStrategy=44]="foldingStrategy",l[l.foldingHighlight=45]="foldingHighlight",l[l.foldingImportsByDefault=46]="foldingImportsByDefault",l[l.foldingMaximumRegions=47]="foldingMaximumRegions",l[l.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",l[l.fontFamily=49]="fontFamily",l[l.fontInfo=50]="fontInfo",l[l.fontLigatures=51]="fontLigatures",l[l.fontSize=52]="fontSize",l[l.fontWeight=53]="fontWeight",l[l.fontVariations=54]="fontVariations",l[l.formatOnPaste=55]="formatOnPaste",l[l.formatOnType=56]="formatOnType",l[l.glyphMargin=57]="glyphMargin",l[l.gotoLocation=58]="gotoLocation",l[l.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",l[l.hover=60]="hover",l[l.inDiffEditor=61]="inDiffEditor",l[l.inlineSuggest=62]="inlineSuggest",l[l.inlineEdit=63]="inlineEdit",l[l.letterSpacing=64]="letterSpacing",l[l.lightbulb=65]="lightbulb",l[l.lineDecorationsWidth=66]="lineDecorationsWidth",l[l.lineHeight=67]="lineHeight",l[l.lineNumbers=68]="lineNumbers",l[l.lineNumbersMinChars=69]="lineNumbersMinChars",l[l.linkedEditing=70]="linkedEditing",l[l.links=71]="links",l[l.matchBrackets=72]="matchBrackets",l[l.minimap=73]="minimap",l[l.mouseStyle=74]="mouseStyle",l[l.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",l[l.mouseWheelZoom=76]="mouseWheelZoom",l[l.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",l[l.multiCursorModifier=78]="multiCursorModifier",l[l.multiCursorPaste=79]="multiCursorPaste",l[l.multiCursorLimit=80]="multiCursorLimit",l[l.occurrencesHighlight=81]="occurrencesHighlight",l[l.overviewRulerBorder=82]="overviewRulerBorder",l[l.overviewRulerLanes=83]="overviewRulerLanes",l[l.padding=84]="padding",l[l.pasteAs=85]="pasteAs",l[l.parameterHints=86]="parameterHints",l[l.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",l[l.definitionLinkOpensInPeek=88]="definitionLinkOpensInPeek",l[l.quickSuggestions=89]="quickSuggestions",l[l.quickSuggestionsDelay=90]="quickSuggestionsDelay",l[l.readOnly=91]="readOnly",l[l.readOnlyMessage=92]="readOnlyMessage",l[l.renameOnType=93]="renameOnType",l[l.renderControlCharacters=94]="renderControlCharacters",l[l.renderFinalNewline=95]="renderFinalNewline",l[l.renderLineHighlight=96]="renderLineHighlight",l[l.renderLineHighlightOnlyWhenFocus=97]="renderLineHighlightOnlyWhenFocus",l[l.renderValidationDecorations=98]="renderValidationDecorations",l[l.renderWhitespace=99]="renderWhitespace",l[l.revealHorizontalRightPadding=100]="revealHorizontalRightPadding",l[l.roundedSelection=101]="roundedSelection",l[l.rulers=102]="rulers",l[l.scrollbar=103]="scrollbar",l[l.scrollBeyondLastColumn=104]="scrollBeyondLastColumn",l[l.scrollBeyondLastLine=105]="scrollBeyondLastLine",l[l.scrollPredominantAxis=106]="scrollPredominantAxis",l[l.selectionClipboard=107]="selectionClipboard",l[l.selectionHighlight=108]="selectionHighlight",l[l.selectOnLineNumbers=109]="selectOnLineNumbers",l[l.showFoldingControls=110]="showFoldingControls",l[l.showUnused=111]="showUnused",l[l.snippetSuggestions=112]="snippetSuggestions",l[l.smartSelect=113]="smartSelect",l[l.smoothScrolling=114]="smoothScrolling",l[l.stickyScroll=115]="stickyScroll",l[l.stickyTabStops=116]="stickyTabStops",l[l.stopRenderingLineAfter=117]="stopRenderingLineAfter",l[l.suggest=118]="suggest",l[l.suggestFontSize=119]="suggestFontSize",l[l.suggestLineHeight=120]="suggestLineHeight",l[l.suggestOnTriggerCharacters=121]="suggestOnTriggerCharacters",l[l.suggestSelection=122]="suggestSelection",l[l.tabCompletion=123]="tabCompletion",l[l.tabIndex=124]="tabIndex",l[l.unicodeHighlighting=125]="unicodeHighlighting",l[l.unusualLineTerminators=126]="unusualLineTerminators",l[l.useShadowDOM=127]="useShadowDOM",l[l.useTabStops=128]="useTabStops",l[l.wordBreak=129]="wordBreak",l[l.wordSegmenterLocales=130]="wordSegmenterLocales",l[l.wordSeparators=131]="wordSeparators",l[l.wordWrap=132]="wordWrap",l[l.wordWrapBreakAfterCharacters=133]="wordWrapBreakAfterCharacters",l[l.wordWrapBreakBeforeCharacters=134]="wordWrapBreakBeforeCharacters",l[l.wordWrapColumn=135]="wordWrapColumn",l[l.wordWrapOverride1=136]="wordWrapOverride1",l[l.wordWrapOverride2=137]="wordWrapOverride2",l[l.wrappingIndent=138]="wrappingIndent",l[l.wrappingStrategy=139]="wrappingStrategy",l[l.showDeprecated=140]="showDeprecated",l[l.inlayHints=141]="inlayHints",l[l.editorClassName=142]="editorClassName",l[l.pixelRatio=143]="pixelRatio",l[l.tabFocusMode=144]="tabFocusMode",l[l.layoutInfo=145]="layoutInfo",l[l.wrappingInfo=146]="wrappingInfo",l[l.defaultColorDecorators=147]="defaultColorDecorators",l[l.colorDecoratorsActivatedOn=148]="colorDecoratorsActivatedOn",l[l.inlineCompletionsAccessibilityVerbose=149]="inlineCompletionsAccessibilityVerbose"})(HDt||(HDt={}));(function(l){l[l.TextDefined=0]="TextDefined",l[l.LF=1]="LF",l[l.CRLF=2]="CRLF"})(UDt||(UDt={}));(function(l){l[l.LF=0]="LF",l[l.CRLF=1]="CRLF"})(JDt||(JDt={}));(function(l){l[l.Left=1]="Left",l[l.Center=2]="Center",l[l.Right=3]="Right"})(qDt||(qDt={}));(function(l){l[l.Increase=0]="Increase",l[l.Decrease=1]="Decrease"})($Dt||($Dt={}));(function(l){l[l.None=0]="None",l[l.Indent=1]="Indent",l[l.IndentOutdent=2]="IndentOutdent",l[l.Outdent=3]="Outdent"})(GDt||(GDt={}));(function(l){l[l.Both=0]="Both",l[l.Right=1]="Right",l[l.Left=2]="Left",l[l.None=3]="None"})(KDt||(KDt={}));(function(l){l[l.Type=1]="Type",l[l.Parameter=2]="Parameter"})(XDt||(XDt={}));(function(l){l[l.Automatic=0]="Automatic",l[l.Explicit=1]="Explicit"})(YDt||(YDt={}));(function(l){l[l.Invoke=0]="Invoke",l[l.Automatic=1]="Automatic"})(QDt||(QDt={}));(function(l){l[l.DependsOnKbLayout=-1]="DependsOnKbLayout",l[l.Unknown=0]="Unknown",l[l.Backspace=1]="Backspace",l[l.Tab=2]="Tab",l[l.Enter=3]="Enter",l[l.Shift=4]="Shift",l[l.Ctrl=5]="Ctrl",l[l.Alt=6]="Alt",l[l.PauseBreak=7]="PauseBreak",l[l.CapsLock=8]="CapsLock",l[l.Escape=9]="Escape",l[l.Space=10]="Space",l[l.PageUp=11]="PageUp",l[l.PageDown=12]="PageDown",l[l.End=13]="End",l[l.Home=14]="Home",l[l.LeftArrow=15]="LeftArrow",l[l.UpArrow=16]="UpArrow",l[l.RightArrow=17]="RightArrow",l[l.DownArrow=18]="DownArrow",l[l.Insert=19]="Insert",l[l.Delete=20]="Delete",l[l.Digit0=21]="Digit0",l[l.Digit1=22]="Digit1",l[l.Digit2=23]="Digit2",l[l.Digit3=24]="Digit3",l[l.Digit4=25]="Digit4",l[l.Digit5=26]="Digit5",l[l.Digit6=27]="Digit6",l[l.Digit7=28]="Digit7",l[l.Digit8=29]="Digit8",l[l.Digit9=30]="Digit9",l[l.KeyA=31]="KeyA",l[l.KeyB=32]="KeyB",l[l.KeyC=33]="KeyC",l[l.KeyD=34]="KeyD",l[l.KeyE=35]="KeyE",l[l.KeyF=36]="KeyF",l[l.KeyG=37]="KeyG",l[l.KeyH=38]="KeyH",l[l.KeyI=39]="KeyI",l[l.KeyJ=40]="KeyJ",l[l.KeyK=41]="KeyK",l[l.KeyL=42]="KeyL",l[l.KeyM=43]="KeyM",l[l.KeyN=44]="KeyN",l[l.KeyO=45]="KeyO",l[l.KeyP=46]="KeyP",l[l.KeyQ=47]="KeyQ",l[l.KeyR=48]="KeyR",l[l.KeyS=49]="KeyS",l[l.KeyT=50]="KeyT",l[l.KeyU=51]="KeyU",l[l.KeyV=52]="KeyV",l[l.KeyW=53]="KeyW",l[l.KeyX=54]="KeyX",l[l.KeyY=55]="KeyY",l[l.KeyZ=56]="KeyZ",l[l.Meta=57]="Meta",l[l.ContextMenu=58]="ContextMenu",l[l.F1=59]="F1",l[l.F2=60]="F2",l[l.F3=61]="F3",l[l.F4=62]="F4",l[l.F5=63]="F5",l[l.F6=64]="F6",l[l.F7=65]="F7",l[l.F8=66]="F8",l[l.F9=67]="F9",l[l.F10=68]="F10",l[l.F11=69]="F11",l[l.F12=70]="F12",l[l.F13=71]="F13",l[l.F14=72]="F14",l[l.F15=73]="F15",l[l.F16=74]="F16",l[l.F17=75]="F17",l[l.F18=76]="F18",l[l.F19=77]="F19",l[l.F20=78]="F20",l[l.F21=79]="F21",l[l.F22=80]="F22",l[l.F23=81]="F23",l[l.F24=82]="F24",l[l.NumLock=83]="NumLock",l[l.ScrollLock=84]="ScrollLock",l[l.Semicolon=85]="Semicolon",l[l.Equal=86]="Equal",l[l.Comma=87]="Comma",l[l.Minus=88]="Minus",l[l.Period=89]="Period",l[l.Slash=90]="Slash",l[l.Backquote=91]="Backquote",l[l.BracketLeft=92]="BracketLeft",l[l.Backslash=93]="Backslash",l[l.BracketRight=94]="BracketRight",l[l.Quote=95]="Quote",l[l.OEM_8=96]="OEM_8",l[l.IntlBackslash=97]="IntlBackslash",l[l.Numpad0=98]="Numpad0",l[l.Numpad1=99]="Numpad1",l[l.Numpad2=100]="Numpad2",l[l.Numpad3=101]="Numpad3",l[l.Numpad4=102]="Numpad4",l[l.Numpad5=103]="Numpad5",l[l.Numpad6=104]="Numpad6",l[l.Numpad7=105]="Numpad7",l[l.Numpad8=106]="Numpad8",l[l.Numpad9=107]="Numpad9",l[l.NumpadMultiply=108]="NumpadMultiply",l[l.NumpadAdd=109]="NumpadAdd",l[l.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",l[l.NumpadSubtract=111]="NumpadSubtract",l[l.NumpadDecimal=112]="NumpadDecimal",l[l.NumpadDivide=113]="NumpadDivide",l[l.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",l[l.ABNT_C1=115]="ABNT_C1",l[l.ABNT_C2=116]="ABNT_C2",l[l.AudioVolumeMute=117]="AudioVolumeMute",l[l.AudioVolumeUp=118]="AudioVolumeUp",l[l.AudioVolumeDown=119]="AudioVolumeDown",l[l.BrowserSearch=120]="BrowserSearch",l[l.BrowserHome=121]="BrowserHome",l[l.BrowserBack=122]="BrowserBack",l[l.BrowserForward=123]="BrowserForward",l[l.MediaTrackNext=124]="MediaTrackNext",l[l.MediaTrackPrevious=125]="MediaTrackPrevious",l[l.MediaStop=126]="MediaStop",l[l.MediaPlayPause=127]="MediaPlayPause",l[l.LaunchMediaPlayer=128]="LaunchMediaPlayer",l[l.LaunchMail=129]="LaunchMail",l[l.LaunchApp2=130]="LaunchApp2",l[l.Clear=131]="Clear",l[l.MAX_VALUE=132]="MAX_VALUE"})(ZDt||(ZDt={}));(function(l){l[l.Hint=1]="Hint",l[l.Info=2]="Info",l[l.Warning=4]="Warning",l[l.Error=8]="Error"})(eIt||(eIt={}));(function(l){l[l.Unnecessary=1]="Unnecessary",l[l.Deprecated=2]="Deprecated"})(tIt||(tIt={}));(function(l){l[l.Inline=1]="Inline",l[l.Gutter=2]="Gutter"})(iIt||(iIt={}));(function(l){l[l.Normal=1]="Normal",l[l.Underlined=2]="Underlined"})(nIt||(nIt={}));(function(l){l[l.UNKNOWN=0]="UNKNOWN",l[l.TEXTAREA=1]="TEXTAREA",l[l.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",l[l.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",l[l.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",l[l.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",l[l.CONTENT_TEXT=6]="CONTENT_TEXT",l[l.CONTENT_EMPTY=7]="CONTENT_EMPTY",l[l.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",l[l.CONTENT_WIDGET=9]="CONTENT_WIDGET",l[l.OVERVIEW_RULER=10]="OVERVIEW_RULER",l[l.SCROLLBAR=11]="SCROLLBAR",l[l.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",l[l.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(rIt||(rIt={}));(function(l){l[l.AIGenerated=1]="AIGenerated"})(oIt||(oIt={}));(function(l){l[l.Invoke=0]="Invoke",l[l.Automatic=1]="Automatic"})(sIt||(sIt={}));(function(l){l[l.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",l[l.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",l[l.TOP_CENTER=2]="TOP_CENTER"})(aIt||(aIt={}));(function(l){l[l.Left=1]="Left",l[l.Center=2]="Center",l[l.Right=4]="Right",l[l.Full=7]="Full"})(cIt||(cIt={}));(function(l){l[l.Word=0]="Word",l[l.Line=1]="Line",l[l.Suggest=2]="Suggest"})(lIt||(lIt={}));(function(l){l[l.Left=0]="Left",l[l.Right=1]="Right",l[l.None=2]="None",l[l.LeftOfInjectedText=3]="LeftOfInjectedText",l[l.RightOfInjectedText=4]="RightOfInjectedText"})(uIt||(uIt={}));(function(l){l[l.Off=0]="Off",l[l.On=1]="On",l[l.Relative=2]="Relative",l[l.Interval=3]="Interval",l[l.Custom=4]="Custom"})(dIt||(dIt={}));(function(l){l[l.None=0]="None",l[l.Text=1]="Text",l[l.Blocks=2]="Blocks"})(fIt||(fIt={}));(function(l){l[l.Smooth=0]="Smooth",l[l.Immediate=1]="Immediate"})(_It||(_It={}));(function(l){l[l.Auto=1]="Auto",l[l.Hidden=2]="Hidden",l[l.Visible=3]="Visible"})(pIt||(pIt={}));(function(l){l[l.LTR=0]="LTR",l[l.RTL=1]="RTL"})(mIt||(mIt={}));(function(l){l.Off="off",l.OnCode="onCode",l.On="on"})(hIt||(hIt={}));(function(l){l[l.Invoke=1]="Invoke",l[l.TriggerCharacter=2]="TriggerCharacter",l[l.ContentChange=3]="ContentChange"})(gIt||(gIt={}));(function(l){l[l.File=0]="File",l[l.Module=1]="Module",l[l.Namespace=2]="Namespace",l[l.Package=3]="Package",l[l.Class=4]="Class",l[l.Method=5]="Method",l[l.Property=6]="Property",l[l.Field=7]="Field",l[l.Constructor=8]="Constructor",l[l.Enum=9]="Enum",l[l.Interface=10]="Interface",l[l.Function=11]="Function",l[l.Variable=12]="Variable",l[l.Constant=13]="Constant",l[l.String=14]="String",l[l.Number=15]="Number",l[l.Boolean=16]="Boolean",l[l.Array=17]="Array",l[l.Object=18]="Object",l[l.Key=19]="Key",l[l.Null=20]="Null",l[l.EnumMember=21]="EnumMember",l[l.Struct=22]="Struct",l[l.Event=23]="Event",l[l.Operator=24]="Operator",l[l.TypeParameter=25]="TypeParameter"})(yIt||(yIt={}));(function(l){l[l.Deprecated=1]="Deprecated"})(vIt||(vIt={}));(function(l){l[l.Hidden=0]="Hidden",l[l.Blink=1]="Blink",l[l.Smooth=2]="Smooth",l[l.Phase=3]="Phase",l[l.Expand=4]="Expand",l[l.Solid=5]="Solid"})(bIt||(bIt={}));(function(l){l[l.Line=1]="Line",l[l.Block=2]="Block",l[l.Underline=3]="Underline",l[l.LineThin=4]="LineThin",l[l.BlockOutline=5]="BlockOutline",l[l.UnderlineThin=6]="UnderlineThin"})(SIt||(SIt={}));(function(l){l[l.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",l[l.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",l[l.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",l[l.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(xIt||(xIt={}));(function(l){l[l.None=0]="None",l[l.Same=1]="Same",l[l.Indent=2]="Indent",l[l.DeepIndent=3]="DeepIndent"})(CIt||(CIt={}))});function wIt(){return{editor:void 0,languages:void 0,CancellationTokenSource:Up,Emitter:wn,KeyCode:ZDt,KeyMod:z4e,Position:qn,Range:Zt,Selection:ic,SelectionDirection:mIt,MarkerSeverity:eIt,MarkerTag:tIt,Uri:qc,Token:zY}}var z4e,vQt=ti(()=>{Sh();xc();gB();s0();Iu();Xa();j0();dy();kIt();z4e=class{static chord(e,r){return U1(e,r)}};z4e.CtrlCmd=2048;z4e.Shift=1024;z4e.Alt=512;z4e.WinCtrl=256});function Jgi(l,e){let r=l;typeof r.vscodeWindowId!="number"&&Object.defineProperty(r,"vscodeWindowId",{get:()=>e})}var em,S6=ti(()=>{em=window});function qgi(l){return l}var TIt,sut,bQt=ti(()=>{TIt=class{constructor(e,r){this.lastCache=void 0,this.lastArgKey=void 0,typeof e=="function"?(this._fn=e,this._computeKey=qgi):(this._fn=r,this._computeKey=e.getCacheKey)}get(e){let r=this._computeKey(e);return this.lastArgKey!==r&&(this.lastArgKey=r,this.lastCache=this._fn(e)),this.lastCache}},sut=class{get cachedValues(){return this._map}constructor(e,r){this._map=new Map,this._map2=new Map,typeof e=="function"?(this._fn=e,this._computeKey=qgi):(this._fn=r,this._computeKey=e.getCacheKey)}get(e){let r=this._computeKey(e);if(this._map2.has(r))return this._map2.get(r);let o=this._fn(e);return this._map.set(e,o),this._map2.set(r,o),o}}});var Bw,VY=ti(()=>{Bw=class{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}}});function EIt(l){return!l||typeof l!="string"?!0:l.trim().length===0}function uV(l,...e){return e.length===0?l:l.replace(cRi,function(r,o){let c=parseInt(o,10);return isNaN(c)||c<0||c>=e.length?r:e[c]})}function Ggi(l){return l.replace(/[<>"'&]/g,e=>{switch(e){case"<":return"<";case">":return">";case'"':return""";case"'":return"'";case"&":return"&"}return e})}function Gbe(l){return l.replace(/[<>&]/g,function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}})}function yE(l){return l.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function Kgi(l,e=" "){let r=sfe(l,e);return xQt(r,e)}function sfe(l,e){if(!l||!e)return l;let r=e.length;if(r===0||l.length===0)return l;let o=0;for(;l.indexOf(e,o)===o;)o=o+r;return l.substring(o)}function xQt(l,e){if(!l||!e)return l;let r=e.length,o=l.length;if(r===0||o===0)return l;let c=o,d=-1;for(;d=l.lastIndexOf(e,c-1),!(d===-1||d+r!==c);){if(d===0)return"";c=d}return l.substring(0,c)}function Xgi(l){return l.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function Ygi(l){return l.replace(/\*/g,"")}function DIt(l,e,r={}){if(!l)throw new Error("Cannot create regex from empty string");e||(l=yE(l)),r.wholeWord&&(/\B/.test(l.charAt(0))||(l="\\b"+l),/\B/.test(l.charAt(l.length-1))||(l=l+"\\b"));let o="";return r.global&&(o+="g"),r.matchCase||(o+="i"),r.multiline&&(o+="m"),r.unicode&&(o+="u"),new RegExp(l,o)}function Qgi(l){return l.source==="^"||l.source==="^$"||l.source==="$"||l.source==="^\\s*$"?!1:!!(l.exec("")&&l.lastIndex===0)}function x6(l){return l.split(/\r\n|\r|\n/)}function Zgi(l){var e;let r=[],o=l.split(/(\r\n|\r|\n)/);for(let c=0;c=0;r--){let o=l.charCodeAt(r);if(o!==32&&o!==9)return r}return-1}function Kbe(l,e){return le?1:0}function IIt(l,e,r=0,o=l.length,c=0,d=e.length){for(;rN)return 1}let h=o-r,b=d-c;return hb?1:0}function lut(l,e){return tVe(l,e,0,l.length,0,e.length)}function tVe(l,e,r=0,o=l.length,c=0,d=e.length){for(;r=128||N>=128)return IIt(l.toLowerCase(),e.toLowerCase(),r,o,c,d);Ine(w)&&(w-=32),Ine(N)&&(N-=32);let L=w-N;if(L!==0)return L}let h=o-r,b=d-c;return hb?1:0}function uut(l){return l>=48&&l<=57}function Ine(l){return l>=97&&l<=122}function dV(l){return l>=65&&l<=90}function afe(l,e){return l.length===e.length&&tVe(l,e)===0}function iVe(l,e){let r=e.length;return e.length>l.length?!1:tVe(l,e,0,r)===0}function wR(l,e){let r=Math.min(l.length,e.length),o;for(o=0;o1){let o=l.charCodeAt(e-2);if(TS(o))return NIt(o,r)}return r}function dut(l,e){return new V4e(l,e).nextGraphemeLength()}function CQt(l,e){return new V4e(l,e).prevGraphemeLength()}function e0i(l,e){e>0&&Pne(l.charCodeAt(e))&&e--;let r=e+dut(l,e);return[r-CQt(l,r),r]}function uRi(){return/(?:[\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])/}function HY(l){return SQt||(SQt=uRi()),SQt.test(l)}function Lne(l){return dRi.test(l)}function AIt(l){return kQt.test(l)}function fV(l){return l>=11904&&l<=55215||l>=63744&&l<=64255||l>=65281&&l<=65374}function fut(l){return l>=127462&&l<=127487||l===8986||l===8987||l===9200||l===9203||l>=9728&&l<=10175||l===11088||l===11093||l>=127744&&l<=128591||l>=128640&&l<=128764||l>=128992&&l<=129008||l>=129280&&l<=129535||l>=129648&&l<=129782}function rVe(l){return!!(l&&l.length>0&&l.charCodeAt(0)===65279)}function i0i(l,e=!1){return l?(e&&(l=l.replace(/\\./g,"")),l.toLowerCase()!==l):!1}function PIt(l){return l=l%(2*26),l<26?String.fromCharCode(97+l):String.fromCharCode(65+l-26)}function $gi(l,e){return l===0?e!==5&&e!==7:l===2&&e===3?!1:l===4||l===2||l===3||e===4||e===2||e===3?!0:!(l===8&&(e===8||e===9||e===11||e===12)||(l===11||l===9)&&(e===9||e===10)||(l===12||l===10)&&e===10||e===5||e===13||e===7||l===1||l===13&&e===14||l===6&&e===6)}function fRi(){return 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]")}function n0i(l,e){if(l===0)return 0;let r=_Ri(l,e);if(r!==void 0)return r;let o=new aut(e,l);return o.prevCodePoint(),o.offset}function _Ri(l,e){let r=new aut(e,l),o=r.prevCodePoint();for(;pRi(o)||o===65039||o===8419;){if(r.offset===0)return;o=r.prevCodePoint()}if(!fut(o))return;let c=r.offset;return c>0&&r.prevCodePoint()===8205&&(c=r.offset),c}function pRi(l){return 127995<=l&&l<=127999}var eVe,cRi,aut,V4e,SQt,dRi,kQt,t0i,cut,LIt,Nne,Ane,Mu=ti(()=>{bQt();VY();cRi=/{(\d+)}/g;aut=class{get offset(){return this._offset}constructor(e,r=0){this._str=e,this._len=e.length,this._offset=r}setOffset(e){this._offset=e}prevCodePoint(){let e=lRi(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){let e=nVe(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}},V4e=class{get offset(){return this._iterator.offset}constructor(e,r=0){this._iterator=new aut(e,r)}nextGraphemeLength(){let e=cut.getInstance(),r=this._iterator,o=r.offset,c=e.getGraphemeBreakType(r.nextCodePoint());for(;!r.eol();){let d=r.offset,h=e.getGraphemeBreakType(r.nextCodePoint());if($gi(c,h)){r.setOffset(d);break}c=h}return r.offset-o}prevGraphemeLength(){let e=cut.getInstance(),r=this._iterator,o=r.offset,c=e.getGraphemeBreakType(r.prevCodePoint());for(;r.offset>0;){let d=r.offset,h=e.getGraphemeBreakType(r.prevCodePoint());if($gi(h,c)){r.setOffset(d);break}c=h}return o-r.offset}eol(){return this._iterator.eol()}};dRi=/^[\t\n\r\x20-\x7E]*$/;kQt=/[\u2028\u2029]/;t0i="\uFEFF";cut=class l{static getInstance(){return l._INSTANCE||(l._INSTANCE=new l),l._INSTANCE}constructor(){this._data=fRi()}getGraphemeBreakType(e){if(e<32)return e===10?3:e===13?2:4;if(e<127)return 0;let r=this._data,o=r.length/3,c=1;for(;c<=o;)if(er[3*c+1])c=2*c+1;else return r[3*c+2];return 0}};cut._INSTANCE=null;LIt="\xA0",Nne=class{static getInstance(e){return eVe.cache.get(Array.from(e))}static getLocales(){return eVe._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())}};eVe=Nne;Nne.ambiguousCharacterData=new Bw(()=>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]}'));Nne.cache=new TIt({getCacheKey:JSON.stringify},l=>{function e(N){let L=new Map;for(let B=0;B!N.startsWith("_")&&N in c);d.length===0&&(d=["_default"]);let h;for(let N of d){let L=e(c[N]);h=o(h,L)}let b=e(c._common),w=r(b,h);return new eVe(w)});Nne._locales=new Bw(()=>Object.keys(eVe.ambiguousCharacterData.value).filter(l=>!l.startsWith("_")));Ane=class l{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 getData(){return this._data||(this._data=new Set(l.getRawData())),this._data}static isInvisibleCharacter(e){return l.getData().has(e)}static get codePoints(){return l.getData()}};Ane._data=void 0});var r0i=ti(()=>{});function wQt(l,e,r){typeof e=="string"&&(e=l.matchMedia(e)),e.addEventListener("change",r)}function o0i(l){return _ut.INSTANCE.getZoomFactor(l)}function s0i(){return OIt}var _ut,oVe,AD,UY,Xbe,TR,FIt,Arn,TQt,OIt,ZF=ti(()=>{S6();_ut=class{constructor(){this.mapWindowIdToZoomFactor=new Map}getZoomFactor(e){var r;return(r=this.mapWindowIdToZoomFactor.get(this.getWindowId(e)))!==null&&r!==void 0?r:1}getWindowId(e){return e.vscodeWindowId}};_ut.INSTANCE=new _ut;oVe=navigator.userAgent,AD=oVe.indexOf("Firefox")>=0,UY=oVe.indexOf("AppleWebKit")>=0,Xbe=oVe.indexOf("Chrome")>=0,TR=!Xbe&&oVe.indexOf("Safari")>=0,FIt=!Xbe&&!TR&&UY,Arn=oVe.indexOf("Electron/")>=0,TQt=oVe.indexOf("Android")>=0,OIt=!1;if(typeof em.matchMedia=="function"){let l=em.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),e=em.matchMedia("(display-mode: fullscreen)");OIt=l.matches,wQt(em,l,({matches:r})=>{OIt&&e.matches||(OIt=r)})}});var sVe,MIt=ti(()=>{ZF();S6();X_();sVe={clipboard:{writeText:KF||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:KF||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:KF||s0i()?0:navigator.keyboard||TR?1:2,touch:"ontouchstart"in em||navigator.maxTouchPoints>0,pointerEvents:em.PointerEvent&&("ontouchstart"in em||navigator.maxTouchPoints>0)}});function mut(l,e){if(typeof l=="number"){if(l===0)return null;let r=(l&65535)>>>0,o=(l&4294901760)>>>16;return o!==0?new put([RIt(r,e),RIt(o,e)]):new put([RIt(r,e)])}else{let r=[];for(let o=0;o{Du();_V=class l{constructor(e,r,o,c,d){this.ctrlKey=e,this.shiftKey=r,this.altKey=o,this.metaKey=c,this.keyCode=d}equals(e){return e instanceof l&&this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode}isModifierKey(){return this.keyCode===0||this.keyCode===5||this.keyCode===57||this.keyCode===6||this.keyCode===4}isDuplicateModifierCase(){return this.ctrlKey&&this.keyCode===5||this.shiftKey&&this.keyCode===4||this.altKey&&this.keyCode===6||this.metaKey&&this.keyCode===57}},put=class{constructor(e){if(e.length===0)throw aA("chords");this.chords=e}},BIt=class{constructor(e,r,o,c,d,h){this.ctrlKey=e,this.shiftKey=r,this.altKey=o,this.metaKey=c,this.keyLabel=d,this.keyAriaLabel=h}},jIt=class{}});function mRi(l){if(l.charCode){let r=String.fromCharCode(l.charCode).toUpperCase();return Pq.fromString(r)}let e=l.keyCode;if(e===3)return 7;if(AD)switch(e){case 59:return 85;case 60:if(kS)return 97;break;case 61:return 86;case 107:return 109;case 109:return 111;case 173:return 88;case 224:if(md)return 57;break}else if(UY){if(md&&e===93)return 57;if(!md&&e===92)return 57}return dQt[e]||0}var hRi,gRi,yRi,vRi,Jp,lA=ti(()=>{ZF();gB();U4e();X_();hRi=md?256:2048,gRi=512,yRi=1024,vRi=md?2048:256,Jp=class{constructor(e){var r;this._standardKeyboardEventBrand=!0;let o=e;this.browserEvent=o,this.target=o.target,this.ctrlKey=o.ctrlKey,this.shiftKey=o.shiftKey,this.altKey=o.altKey,this.metaKey=o.metaKey,this.altGraphKey=(r=o.getModifierState)===null||r===void 0?void 0:r.call(o,"AltGraph"),this.keyCode=mRi(o),this.code=o.code,this.ctrlKey=this.ctrlKey||this.keyCode===5,this.altKey=this.altKey||this.keyCode===6,this.shiftKey=this.shiftKey||this.keyCode===4,this.metaKey=this.metaKey||this.keyCode===57,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;this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode);let r=0;return this.ctrlKey&&(r|=hRi),this.altKey&&(r|=gRi),this.shiftKey&&(r|=yRi),this.metaKey&&(r|=vRi),r|=e,r}_computeKeyCodeChord(){let e=0;return this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode),new _V(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}}});function bRi(l){if(!l.parent||l.parent===l)return null;try{let e=l.location,r=l.parent.location;if(e.origin!=="null"&&r.origin!=="null"&&e.origin!==r.origin)return null}catch{return null}return l.parent}var a0i,WIt,c0i=ti(()=>{a0i=new WeakMap;WIt=class{static getSameOriginWindowChain(e){let r=a0i.get(e);if(!r){r=[],a0i.set(e,r);let o=e,c;do c=bRi(o),c?r.push({window:new WeakRef(o),iframeElement:o.frameElement||null}):r.push({window:new WeakRef(o),iframeElement:null}),o=c;while(o)}return r.slice(0)}static getPositionOfChildWindowRelativeToAncestorWindow(e,r){var o,c;if(!r||e===r)return{top:0,left:0};let d=0,h=0,b=this.getSameOriginWindowChain(e);for(let w of b){let N=w.window.deref();if(d+=(o=N?.scrollY)!==null&&o!==void 0?o:0,h+=(c=N?.scrollX)!==null&&c!==void 0?c:0,N===r||!w.iframeElement)break;let L=w.iframeElement.getBoundingClientRect();d+=L.top,h+=L.left}return{top:d,left:h}}}});var PD,pV,vB=ti(()=>{ZF();c0i();X_();PD=class{constructor(e,r){this.timestamp=Date.now(),this.browserEvent=r,this.leftButton=r.button===0,this.middleButton=r.button===1,this.rightButton=r.button===2,this.buttons=r.buttons,this.target=r.target,this.detail=r.detail||1,r.type==="dblclick"&&(this.detail=2),this.ctrlKey=r.ctrlKey,this.shiftKey=r.shiftKey,this.altKey=r.altKey,this.metaKey=r.metaKey,typeof r.pageX=="number"?(this.posx=r.pageX,this.posy=r.pageY):(this.posx=r.clientX+this.target.ownerDocument.body.scrollLeft+this.target.ownerDocument.documentElement.scrollLeft,this.posy=r.clientY+this.target.ownerDocument.body.scrollTop+this.target.ownerDocument.documentElement.scrollTop);let o=WIt.getPositionOfChildWindowRelativeToAncestorWindow(e,r.view);this.posx-=o.left,this.posy-=o.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}},pV=class{constructor(e,r=0,o=0){var c;this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=o,this.deltaX=r;let d=!1;if(Xbe){let h=navigator.userAgent.match(/Chrome\/(\d+)/);d=(h?parseInt(h[1]):123)<=122}if(e){let h=e,b=e,w=((c=e.view)===null||c===void 0?void 0:c.devicePixelRatio)||1;if(typeof h.wheelDeltaY<"u")d?this.deltaY=h.wheelDeltaY/(120*w):this.deltaY=h.wheelDeltaY/120;else if(typeof b.VERTICAL_AXIS<"u"&&b.axis===b.VERTICAL_AXIS)this.deltaY=-b.detail/3;else if(e.type==="wheel"){let N=e;N.deltaMode===N.DOM_DELTA_LINE?AD&&!md?this.deltaY=-e.deltaY/3:this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40}if(typeof h.wheelDeltaX<"u")TR&&Bv?this.deltaX=-(h.wheelDeltaX/120):d?this.deltaX=h.wheelDeltaX/(120*w):this.deltaX=h.wheelDeltaX/120;else if(typeof b.HORIZONTAL_AXIS<"u"&&b.axis===b.HORIZONTAL_AXIS)this.deltaX=-e.detail/3;else if(e.type==="wheel"){let N=e;N.deltaMode===N.DOM_DELTA_LINE?AD&&!md?this.deltaX=-e.deltaX/3:this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40}this.deltaY===0&&this.deltaX===0&&e.wheelDelta&&(d?this.deltaY=e.wheelDelta/(120*w):this.deltaY=e.wheelDelta/120)}}preventDefault(){var e;(e=this.browserEvent)===null||e===void 0||e.preventDefault()}stopPropagation(){var e;(e=this.browserEvent)===null||e===void 0||e.stopPropagation()}}});var zIt,EQt=ti(()=>{zIt=Symbol("MicrotaskDelay")});function UIt(l){return!!l&&typeof l.then=="function"}function fy(l){let e=new Up,r=l(e.token),o=new Promise((c,d)=>{let h=e.token.onCancellationRequested(()=>{h.dispose(),d(new ZL)});Promise.resolve(r).then(b=>{h.dispose(),e.dispose(),c(b)},b=>{h.dispose(),e.dispose(),d(b)})});return new class{cancel(){e.cancel(),e.dispose()}then(c,d){return o.then(c,d)}catch(c){return this.then(void 0,c)}finally(c){return o.finally(c)}}}function One(l,e,r){return new Promise((o,c)=>{let d=e.onCancellationRequested(()=>{d.dispose(),o(r)});l.then(o,c).finally(()=>d.dispose())})}function HO(l,e){return e?new Promise((r,o)=>{let c=setTimeout(()=>{d.dispose(),r()},l),d=e.onCancellationRequested(()=>{clearTimeout(c),d.dispose(),o(new ZL)})}):fy(r=>HO(l,r))}function bB(l,e=0,r){let o=setTimeout(()=>{l(),r&&c.dispose()},e),c=Ma(()=>{clearTimeout(o),r?.deleteAndLeak(c)});return r?.add(c),c}function gut(l,e=o=>!!o,r=null){let o=0,c=l.length,d=()=>{if(o>=c)return Promise.resolve(r);let h=l[o++];return Promise.resolve(h()).then(w=>e(w)?Promise.resolve(w):d())};return d()}function l0i(l){let e=new Up,r=l(e.token);return new IQt(e,async o=>{let c=e.token.onCancellationRequested(()=>{c.dispose(),e.dispose(),o.reject(new ZL)});try{for await(let d of r){if(e.token.isCancellationRequested)return;o.emitOne(d)}c.dispose(),e.dispose()}catch(d){c.dispose(),e.dispose(),o.reject(d)}})}var DQt,SRi,xRi,vE,cVe,ET,Ybe,p_,NQt,aVe,hut,VIt,Fq,HIt,uA,IQt,Ud=ti(()=>{Sh();Du();xc();co();X_();EQt();DQt=class{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){let r=()=>{if(this.queuedPromise=null,this.isDisposed)return;let o=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,o};this.queuedPromise=new Promise(o=>{this.activePromise.then(r,r).then(o)})}return new Promise((r,o)=>{this.queuedPromise.then(r,o)})}return this.activePromise=e(),new Promise((r,o)=>{this.activePromise.then(c=>{this.activePromise=null,r(c)},c=>{this.activePromise=null,o(c)})})}dispose(){this.isDisposed=!0}},SRi=(l,e)=>{let r=!0,o=setTimeout(()=>{r=!1,e()},l);return{isTriggered:()=>r,dispose:()=>{clearTimeout(o),r=!1}}},xRi=l=>{let e=!0;return queueMicrotask(()=>{e&&(e=!1,l())}),{isTriggered:()=>e,dispose:()=>{e=!1}}},vE=class{constructor(e){this.defaultDelay=e,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(e,r=this.defaultDelay){this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((c,d)=>{this.doResolve=c,this.doReject=d}).then(()=>{if(this.completionPromise=null,this.doResolve=null,this.task){let c=this.task;return this.task=null,c()}}));let o=()=>{var c;this.deferred=null,(c=this.doResolve)===null||c===void 0||c.call(this,null)};return this.deferred=r===zIt?xRi(o):SRi(r,o),this.completionPromise}isTriggered(){var e;return!!(!((e=this.deferred)===null||e===void 0)&&e.isTriggered())}cancel(){var e;this.cancelTimeout(),this.completionPromise&&((e=this.doReject)===null||e===void 0||e.call(this,new ZL),this.completionPromise=null)}cancelTimeout(){var e;(e=this.deferred)===null||e===void 0||e.dispose(),this.deferred=null}dispose(){this.cancel()}},cVe=class{constructor(e){this.delayer=new vE(e),this.throttler=new DQt}trigger(e,r){return this.delayer.trigger(()=>this.throttler.queue(e),r)}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose(),this.throttler.dispose()}};ET=class{constructor(e,r){this._isDisposed=!1,this._token=-1,typeof e=="function"&&typeof r=="number"&&this.setIfNotSet(e,r)}dispose(){this.cancel(),this._isDisposed=!0}cancel(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,r){if(this._isDisposed)throw new Hp("Calling 'cancelAndSet' on a disposed TimeoutTimer");this.cancel(),this._token=setTimeout(()=>{this._token=-1,e()},r)}setIfNotSet(e,r){if(this._isDisposed)throw new Hp("Calling 'setIfNotSet' on a disposed TimeoutTimer");this._token===-1&&(this._token=setTimeout(()=>{this._token=-1,e()},r))}},Ybe=class{constructor(){this.disposable=void 0,this.isDisposed=!1}cancel(){var e;(e=this.disposable)===null||e===void 0||e.dispose(),this.disposable=void 0}cancelAndSet(e,r,o=globalThis){if(this.isDisposed)throw new Hp("Calling 'cancelAndSet' on a disposed IntervalTimer");this.cancel();let c=o.setInterval(()=>{e()},r);this.disposable=Ma(()=>{o.clearInterval(c),this.disposable=void 0})}dispose(){this.cancel(),this.isDisposed=!0}},p_=class{constructor(e,r){this.timeoutToken=-1,this.runner=e,this.timeout=r,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 this.timeoutToken!==-1}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){var e;(e=this.runner)===null||e===void 0||e.call(this)}};(function(){typeof globalThis.requestIdleCallback!="function"||typeof globalThis.cancelIdleCallback!="function"?aVe=(l,e)=>{cDt(()=>{if(r)return;let o=Date.now()+15;e(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,o-Date.now())}}))});let r=!1;return{dispose(){r||(r=!0)}}}:aVe=(l,e,r)=>{let o=l.requestIdleCallback(e,typeof r=="number"?{timeout:r}:void 0),c=!1;return{dispose(){c||(c=!0,l.cancelIdleCallback(o))}}},NQt=l=>aVe(globalThis,l)})();hut=class{constructor(e,r){this._didRun=!1,this._executor=()=>{try{this._value=r()}catch(o){this._error=o}finally{this._didRun=!0}},this._handle=aVe(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}},VIt=class extends hut{constructor(e){super(globalThis,e)}},Fq=class{get isRejected(){var e;return((e=this.outcome)===null||e===void 0?void 0:e.outcome)===1}get isSettled(){return!!this.outcome}constructor(){this.p=new Promise((e,r)=>{this.completeCallback=e,this.errorCallback=r})}complete(e){return new Promise(r=>{this.completeCallback(e),this.outcome={outcome:0,value:e},r()})}error(e){return new Promise(r=>{this.errorCallback(e),this.outcome={outcome:1,value:e},r()})}cancel(){return this.error(new ZL)}};(function(l){async function e(o){let c,d=await Promise.all(o.map(h=>h.then(b=>b,b=>{c||(c=b)})));if(typeof c<"u")throw c;return d}l.settled=e;function r(o){return new Promise(async(c,d)=>{try{await o(c,d)}catch(h){d(h)}})}l.withAsyncBody=r})(HIt||(HIt={}));uA=class l{static fromArray(e){return new l(r=>{r.emitMany(e)})}static fromPromise(e){return new l(async r=>{r.emitMany(await e)})}static fromPromises(e){return new l(async r=>{await Promise.all(e.map(async o=>r.emitOne(await o)))})}static merge(e){return new l(async r=>{await Promise.all(e.map(async o=>{for await(let c of o)r.emitOne(c)}))})}constructor(e,r){this._state=0,this._results=[],this._error=null,this._onReturn=r,this._onStateChanged=new wn,queueMicrotask(async()=>{let o={emitOne:c=>this.emitOne(c),emitMany:c=>this.emitMany(c),reject:c=>this.reject(c)};try{await Promise.resolve(e(o)),this.resolve()}catch(c){this.reject(c)}finally{o.emitOne=void 0,o.emitMany=void 0,o.reject=void 0}})}[Symbol.asyncIterator](){let e=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(e{var r;return(r=this._onReturn)===null||r===void 0||r.call(this),{done:!0,value:void 0}}}}static map(e,r){return new l(async o=>{for await(let c of e)o.emitOne(r(c))})}map(e){return l.map(this,e)}static filter(e,r){return new l(async o=>{for await(let c of e)r(c)&&o.emitOne(c)})}filter(e){return l.filter(this,e)}static coalesce(e){return l.filter(e,r=>!!r)}coalesce(){return l.coalesce(this)}static async toPromise(e){let r=[];for await(let o of e)r.push(o);return r}toPromise(){return l.toPromise(this)}emitOne(e){this._state===0&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){this._state===0&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(e){this._state===0&&(this._state=2,this._error=e,this._onStateChanged.fire())}};uA.EMPTY=uA.fromArray([]);IQt=class extends uA{constructor(e,r){super(r),this._source=e}cancel(){this._source.cancel()}}});function Mq(l){return function(e){for(var r=arguments.length,o=new Array(r>1?r-1:0),c=1;c0&&arguments[0]!==void 0?arguments[0]:zRi(),e=I_=>b0i(I_);if(e.version="3.0.5",e.removed=[],!l||!l.document||l.document.nodeType!==9)return e.isSupported=!1,e;let r=l.document,o=r.currentScript,{document:c}=l,{DocumentFragment:d,HTMLTemplateElement:h,Node:b,Element:w,NodeFilter:N,NamedNodeMap:L=l.NamedNodeMap||l.MozNamedAttrMap,HTMLFormElement:B,DOMParser:F,trustedTypes:Y}=l,Z=w.prototype,ee=JIt(Z,"cloneNode"),Te=JIt(Z,"nextSibling"),Je=JIt(Z,"childNodes"),Xe=JIt(Z,"parentNode");if(typeof h=="function"){let I_=c.createElement("template");I_.content&&I_.content.ownerDocument&&(c=I_.content.ownerDocument)}let ct,Ct="",{implementation:Nt,createNodeIterator:Yt,createDocumentFragment:jt,getElementsByTagName:mi}=c,{importNode:_n}=r,Pr={};e.isSupported=typeof g0i=="function"&&typeof Xe=="function"&&Nt&&Nt.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:dr,ERB_EXPR:Rr,TMPLIT_EXPR:Tn,DATA_ATTR:Qn,ARIA_ATTR:ks,IS_SCRIPT_OR_DATA:La,ATTR_WHITESPACE:$i}=h0i,{IS_ALLOWED_URI:Dl}=h0i,$s=null,cr=Fy({},[...f0i,...PQt,...LQt,...OQt,..._0i]),za=null,Uc=Fy({},[...p0i,...FQt,...m0i,...qIt]),Ya=Object.seal(Object.create(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}})),Xl=null,Vb=null,Dc=!0,up=!0,Hv=!1,dc=!0,Qy=!1,$f=!1,C2=!1,En=!1,IE=!1,Pl=!1,lk=!1,On=!0,E$=!1,uu="user-content-",la=!0,rs=!1,os={},Hn=null,tr=Fy({},["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"]),ho=null,no=Fy({},["audio","video","img","source","image","track"]),ea=null,ar=Fy({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),pu="http://www.w3.org/1998/Math/MathML",Yl="http://www.w3.org/2000/svg",Ho="http://www.w3.org/1999/xhtml",Xu=Ho,oo=!1,Bh=null,du=Fy({},[pu,Yl,Ho],AQt),Ws,lm=["application/xhtml+xml","text/html"],C0="text/html",Ed,c0=null,of=c.createElement("form"),AC=function(Zo){return Zo instanceof RegExp||Zo instanceof Function},Y_=function(Zo){if(!(c0&&c0===Zo)){if((!Zo||typeof Zo!="object")&&(Zo={}),Zo=lVe(Zo),Ws=lm.indexOf(Zo.PARSER_MEDIA_TYPE)===-1?Ws=C0:Ws=Zo.PARSER_MEDIA_TYPE,Ed=Ws==="application/xhtml+xml"?AQt:$It,$s="ALLOWED_TAGS"in Zo?Fy({},Zo.ALLOWED_TAGS,Ed):cr,za="ALLOWED_ATTR"in Zo?Fy({},Zo.ALLOWED_ATTR,Ed):Uc,Bh="ALLOWED_NAMESPACES"in Zo?Fy({},Zo.ALLOWED_NAMESPACES,AQt):du,ea="ADD_URI_SAFE_ATTR"in Zo?Fy(lVe(ar),Zo.ADD_URI_SAFE_ATTR,Ed):ar,ho="ADD_DATA_URI_TAGS"in Zo?Fy(lVe(no),Zo.ADD_DATA_URI_TAGS,Ed):no,Hn="FORBID_CONTENTS"in Zo?Fy({},Zo.FORBID_CONTENTS,Ed):tr,Xl="FORBID_TAGS"in Zo?Fy({},Zo.FORBID_TAGS,Ed):{},Vb="FORBID_ATTR"in Zo?Fy({},Zo.FORBID_ATTR,Ed):{},os="USE_PROFILES"in Zo?Zo.USE_PROFILES:!1,Dc=Zo.ALLOW_ARIA_ATTR!==!1,up=Zo.ALLOW_DATA_ATTR!==!1,Hv=Zo.ALLOW_UNKNOWN_PROTOCOLS||!1,dc=Zo.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Qy=Zo.SAFE_FOR_TEMPLATES||!1,$f=Zo.WHOLE_DOCUMENT||!1,IE=Zo.RETURN_DOM||!1,Pl=Zo.RETURN_DOM_FRAGMENT||!1,lk=Zo.RETURN_TRUSTED_TYPE||!1,En=Zo.FORCE_BODY||!1,On=Zo.SANITIZE_DOM!==!1,E$=Zo.SANITIZE_NAMED_PROPS||!1,la=Zo.KEEP_CONTENT!==!1,rs=Zo.IN_PLACE||!1,Dl=Zo.ALLOWED_URI_REGEXP||y0i,Xu=Zo.NAMESPACE||Ho,Ya=Zo.CUSTOM_ELEMENT_HANDLING||{},Zo.CUSTOM_ELEMENT_HANDLING&&AC(Zo.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ya.tagNameCheck=Zo.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Zo.CUSTOM_ELEMENT_HANDLING&&AC(Zo.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ya.attributeNameCheck=Zo.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Zo.CUSTOM_ELEMENT_HANDLING&&typeof Zo.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Ya.allowCustomizedBuiltInElements=Zo.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Qy&&(up=!1),Pl&&(IE=!0),os&&($s=Fy({},[..._0i]),za=[],os.html===!0&&(Fy($s,f0i),Fy(za,p0i)),os.svg===!0&&(Fy($s,PQt),Fy(za,FQt),Fy(za,qIt)),os.svgFilters===!0&&(Fy($s,LQt),Fy(za,FQt),Fy(za,qIt)),os.mathMl===!0&&(Fy($s,OQt),Fy(za,m0i),Fy(za,qIt))),Zo.ADD_TAGS&&($s===cr&&($s=lVe($s)),Fy($s,Zo.ADD_TAGS,Ed)),Zo.ADD_ATTR&&(za===Uc&&(za=lVe(za)),Fy(za,Zo.ADD_ATTR,Ed)),Zo.ADD_URI_SAFE_ATTR&&Fy(ea,Zo.ADD_URI_SAFE_ATTR,Ed),Zo.FORBID_CONTENTS&&(Hn===tr&&(Hn=lVe(Hn)),Fy(Hn,Zo.FORBID_CONTENTS,Ed)),la&&($s["#text"]=!0),$f&&Fy($s,["html","head","body"]),$s.table&&(Fy($s,["tbody"]),delete Xl.tbody),Zo.TRUSTED_TYPES_POLICY){if(typeof Zo.TRUSTED_TYPES_POLICY.createHTML!="function")throw vut('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Zo.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw vut('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ct=Zo.TRUSTED_TYPES_POLICY,Ct=ct.createHTML("")}else ct===void 0&&(ct=VRi(Y,o)),ct!==null&&typeof Ct=="string"&&(Ct=ct.createHTML(""));ER&&ER(Zo),c0=Zo}},Bu=Fy({},["mi","mo","mn","ms","mtext"]),vp=Fy({},["foreignobject","desc","title","annotation-xml"]),N6=Fy({},["title","style","font","a","script"]),Hu=Fy({},PQt);Fy(Hu,LQt),Fy(Hu,PRi);let m3=Fy({},OQt);Fy(m3,LRi);let Q_=function(Zo){let Ql=Xe(Zo);(!Ql||!Ql.tagName)&&(Ql={namespaceURI:Xu,tagName:"template"});let Ks=$It(Zo.tagName),Ug=$It(Ql.tagName);return Bh[Zo.namespaceURI]?Zo.namespaceURI===Yl?Ql.namespaceURI===Ho?Ks==="svg":Ql.namespaceURI===pu?Ks==="svg"&&(Ug==="annotation-xml"||Bu[Ug]):!!Hu[Ks]:Zo.namespaceURI===pu?Ql.namespaceURI===Ho?Ks==="math":Ql.namespaceURI===Yl?Ks==="math"&&vp[Ug]:!!m3[Ks]:Zo.namespaceURI===Ho?Ql.namespaceURI===Yl&&!vp[Ug]||Ql.namespaceURI===pu&&!Bu[Ug]?!1:!m3[Ks]&&(N6[Ks]||!Hu[Ks]):!!(Ws==="application/xhtml+xml"&&Bh[Zo.namespaceURI]):!1},Zu=function(Zo){yut(e.removed,{element:Zo});try{Zo.parentNode.removeChild(Zo)}catch{Zo.remove()}},$m=function(Zo,Ql){try{yut(e.removed,{attribute:Ql.getAttributeNode(Zo),from:Ql})}catch{yut(e.removed,{attribute:null,from:Ql})}if(Ql.removeAttribute(Zo),Zo==="is"&&!za[Zo])if(IE||Pl)try{Zu(Ql)}catch{}else try{Ql.setAttribute(Zo,"")}catch{}},NE=function(Zo){let Ql,Ks;if(En)Zo=""+Zo;else{let nw=DRi(Zo,/^[\r\n\t ]+/);Ks=nw&&nw[0]}Ws==="application/xhtml+xml"&&Xu===Ho&&(Zo=''+Zo+"");let Ug=ct?ct.createHTML(Zo):Zo;if(Xu===Ho)try{Ql=new F().parseFromString(Ug,Ws)}catch{}if(!Ql||!Ql.documentElement){Ql=Nt.createDocument(Xu,"template",null);try{Ql.documentElement.innerHTML=oo?Ct:Ug}catch{}}let Uw=Ql.body||Ql.documentElement;return Zo&&Ks&&Uw.insertBefore(c.createTextNode(Ks),Uw.childNodes[0]||null),Xu===Ho?mi.call(Ql,$f?"html":"body")[0]:$f?Ql.documentElement:Uw},bf=function(Zo){return Yt.call(Zo.ownerDocument||Zo,Zo,N.SHOW_ELEMENT|N.SHOW_COMMENT|N.SHOW_TEXT,null,!1)},QV=function(Zo){return Zo instanceof B&&(typeof Zo.nodeName!="string"||typeof Zo.textContent!="string"||typeof Zo.removeChild!="function"||!(Zo.attributes instanceof L)||typeof Zo.removeAttribute!="function"||typeof Zo.setAttribute!="function"||typeof Zo.namespaceURI!="string"||typeof Zo.insertBefore!="function"||typeof Zo.hasChildNodes!="function")},Zy=function(Zo){return typeof b=="object"?Zo instanceof b:Zo&&typeof Zo=="object"&&typeof Zo.nodeType=="number"&&typeof Zo.nodeName=="string"},VD=function(Zo,Ql,Ks){Pr[Zo]&&ERi(Pr[Zo],Ug=>{Ug.call(e,Ql,Ks,c0)})},k0=function(Zo){let Ql;if(VD("beforeSanitizeElements",Zo,null),QV(Zo))return Zu(Zo),!0;let Ks=Ed(Zo.nodeName);if(VD("uponSanitizeElement",Zo,{tagName:Ks,allowedTags:$s}),Zo.hasChildNodes()&&!Zy(Zo.firstElementChild)&&(!Zy(Zo.content)||!Zy(Zo.content.firstElementChild))&&mV(/<[/\w]/g,Zo.innerHTML)&&mV(/<[/\w]/g,Zo.textContent))return Zu(Zo),!0;if(!$s[Ks]||Xl[Ks]){if(!Xl[Ks]&&tc(Ks)&&(Ya.tagNameCheck instanceof RegExp&&mV(Ya.tagNameCheck,Ks)||Ya.tagNameCheck instanceof Function&&Ya.tagNameCheck(Ks)))return!1;if(la&&!Hn[Ks]){let Ug=Xe(Zo)||Zo.parentNode,Uw=Je(Zo)||Zo.childNodes;if(Uw&&Ug){let nw=Uw.length;for(let PS=nw-1;PS>=0;--PS)Ug.insertBefore(ee(Uw[PS],!0),Te(Zo))}}return Zu(Zo),!0}return Zo instanceof w&&!Q_(Zo)||(Ks==="noscript"||Ks==="noembed"||Ks==="noframes")&&mV(/<\/no(script|embed|frames)/i,Zo.innerHTML)?(Zu(Zo),!0):(Qy&&Zo.nodeType===3&&(Ql=Zo.textContent,Ql=JY(Ql,dr," "),Ql=JY(Ql,Rr," "),Ql=JY(Ql,Tn," "),Zo.textContent!==Ql&&(yut(e.removed,{element:Zo.cloneNode()}),Zo.textContent=Ql)),VD("afterSanitizeElements",Zo,null),!1)},r4=function(Zo,Ql,Ks){if(On&&(Ql==="id"||Ql==="name")&&(Ks in c||Ks in of))return!1;if(!(up&&!Vb[Ql]&&mV(Qn,Ql))){if(!(Dc&&mV(ks,Ql))){if(!za[Ql]||Vb[Ql]){if(!(tc(Zo)&&(Ya.tagNameCheck instanceof RegExp&&mV(Ya.tagNameCheck,Zo)||Ya.tagNameCheck instanceof Function&&Ya.tagNameCheck(Zo))&&(Ya.attributeNameCheck instanceof RegExp&&mV(Ya.attributeNameCheck,Ql)||Ya.attributeNameCheck instanceof Function&&Ya.attributeNameCheck(Ql))||Ql==="is"&&Ya.allowCustomizedBuiltInElements&&(Ya.tagNameCheck instanceof RegExp&&mV(Ya.tagNameCheck,Ks)||Ya.tagNameCheck instanceof Function&&Ya.tagNameCheck(Ks))))return!1}else if(!ea[Ql]){if(!mV(Dl,JY(Ks,$i,""))){if(!((Ql==="src"||Ql==="xlink:href"||Ql==="href")&&Zo!=="script"&&IRi(Ks,"data:")===0&&ho[Zo])){if(!(Hv&&!mV(La,JY(Ks,$i,"")))){if(Ks)return!1}}}}}}return!0},tc=function(Zo){return Zo.indexOf("-")>0},o4=function(Zo){let Ql,Ks,Ug,Uw;VD("beforeSanitizeAttributes",Zo,null);let{attributes:nw}=Zo;if(!nw)return;let PS={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:za};for(Uw=nw.length;Uw--;){Ql=nw[Uw];let{name:wu,namespaceURI:Hb}=Ql;if(Ks=wu==="value"?Ql.value:NRi(Ql.value),Ug=Ed(wu),PS.attrName=Ug,PS.attrValue=Ks,PS.keepAttr=!0,PS.forceKeepAttr=void 0,VD("uponSanitizeAttribute",Zo,PS),Ks=PS.attrValue,PS.forceKeepAttr||($m(wu,Zo),!PS.keepAttr))continue;if(!dc&&mV(/\/>/i,Ks)){$m(wu,Zo);continue}Qy&&(Ks=JY(Ks,dr," "),Ks=JY(Ks,Rr," "),Ks=JY(Ks,Tn," "));let goe=Ed(Zo.nodeName);if(r4(goe,Ug,Ks)){if(E$&&(Ug==="id"||Ug==="name")&&($m(wu,Zo),Ks=uu+Ks),ct&&typeof Y=="object"&&typeof Y.getAttributeType=="function"&&!Hb)switch(Y.getAttributeType(goe,Ug)){case"TrustedHTML":{Ks=ct.createHTML(Ks);break}case"TrustedScriptURL":{Ks=ct.createScriptURL(Ks);break}}try{Hb?Zo.setAttributeNS(Hb,wu,Ks):Zo.setAttribute(wu,Ks),d0i(e.removed)}catch{}}}VD("afterSanitizeAttributes",Zo,null)},k2=function I_(Zo){let Ql,Ks=bf(Zo);for(VD("beforeSanitizeShadowDOM",Zo,null);Ql=Ks.nextNode();)VD("uponSanitizeShadowNode",Ql,null),!k0(Ql)&&(Ql.content instanceof d&&I_(Ql.content),o4(Ql));VD("afterSanitizeShadowDOM",Zo,null)};return e.sanitize=function(I_){let Zo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ql,Ks,Ug,Uw;if(oo=!I_,oo&&(I_=""),typeof I_!="string"&&!Zy(I_))if(typeof I_.toString=="function"){if(I_=I_.toString(),typeof I_!="string")throw vut("dirty is not a string, aborting")}else throw vut("toString is not a function");if(!e.isSupported)return I_;if(C2||Y_(Zo),e.removed=[],typeof I_=="string"&&(rs=!1),rs){if(I_.nodeName){let wu=Ed(I_.nodeName);if(!$s[wu]||Xl[wu])throw vut("root node is forbidden and cannot be sanitized in-place")}}else if(I_ instanceof b)Ql=NE(""),Ks=Ql.ownerDocument.importNode(I_,!0),Ks.nodeType===1&&Ks.nodeName==="BODY"||Ks.nodeName==="HTML"?Ql=Ks:Ql.appendChild(Ks);else{if(!IE&&!Qy&&!$f&&I_.indexOf("<")===-1)return ct&&lk?ct.createHTML(I_):I_;if(Ql=NE(I_),!Ql)return IE?null:lk?Ct:""}Ql&&En&&Zu(Ql.firstChild);let nw=bf(rs?I_:Ql);for(;Ug=nw.nextNode();)k0(Ug)||(Ug.content instanceof d&&k2(Ug.content),o4(Ug));if(rs)return I_;if(IE){if(Pl)for(Uw=jt.call(Ql.ownerDocument);Ql.firstChild;)Uw.appendChild(Ql.firstChild);else Uw=Ql;return(za.shadowroot||za.shadowrootmode)&&(Uw=_n.call(r,Uw,!0)),Uw}let PS=$f?Ql.outerHTML:Ql.innerHTML;return $f&&$s["!doctype"]&&Ql.ownerDocument&&Ql.ownerDocument.doctype&&Ql.ownerDocument.doctype.name&&mV(v0i,Ql.ownerDocument.doctype.name)&&(PS=" +`+PS),Qy&&(PS=JY(PS,dr," "),PS=JY(PS,Rr," "),PS=JY(PS,Tn," ")),ct&&lk?ct.createHTML(PS):PS},e.setConfig=function(I_){Y_(I_),C2=!0},e.clearConfig=function(){c0=null,C2=!1},e.isValidAttribute=function(I_,Zo,Ql){c0||Y_({});let Ks=Ed(I_),Ug=Ed(Zo);return r4(Ks,Ug,Ql)},e.addHook=function(I_,Zo){typeof Zo=="function"&&(Pr[I_]=Pr[I_]||[],yut(Pr[I_],Zo))},e.removeHook=function(I_){if(Pr[I_])return d0i(Pr[I_])},e.removeHooks=function(I_){Pr[I_]&&(Pr[I_]=[])},e.removeAllHooks=function(){Pr={}},e}var g0i,u0i,CRi,kRi,wRi,ER,qY,TRi,MQt,RQt,ERi,d0i,yut,$It,AQt,DRi,JY,IRi,NRi,mV,vut,f0i,PQt,LQt,PRi,OQt,LRi,_0i,p0i,FQt,m0i,qIt,ORi,FRi,MRi,RRi,BRi,y0i,jRi,WRi,v0i,h0i,zRi,VRi,Fne,Yrn,Qrn,GIt,Zrn,eon,ton,KIt,XIt,ion,non,YIt=ti(()=>{({entries:g0i,setPrototypeOf:u0i,isFrozen:CRi,getPrototypeOf:kRi,getOwnPropertyDescriptor:wRi}=Object),{freeze:ER,seal:qY,create:TRi}=Object,{apply:MQt,construct:RQt}=typeof Reflect<"u"&&Reflect;MQt||(MQt=function(e,r,o){return e.apply(r,o)});ER||(ER=function(e){return e});qY||(qY=function(e){return e});RQt||(RQt=function(e,r){return new e(...r)});ERi=Mq(Array.prototype.forEach),d0i=Mq(Array.prototype.pop),yut=Mq(Array.prototype.push),$It=Mq(String.prototype.toLowerCase),AQt=Mq(String.prototype.toString),DRi=Mq(String.prototype.match),JY=Mq(String.prototype.replace),IRi=Mq(String.prototype.indexOf),NRi=Mq(String.prototype.trim),mV=Mq(RegExp.prototype.test),vut=ARi(TypeError);f0i=ER(["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"]),PQt=ER(["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"]),LQt=ER(["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"]),PRi=ER(["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"]),OQt=ER(["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"]),LRi=ER(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),_0i=ER(["#text"]),p0i=ER(["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","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","xmlns","slot"]),FQt=ER(["accent-height","accumulate","additive","alignment-baseline","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","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","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","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","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"]),m0i=ER(["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"]),qIt=ER(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ORi=qY(/\{\{[\w\W]*|[\w\W]*\}\}/gm),FRi=qY(/<%[\w\W]*|[\w\W]*%>/gm),MRi=qY(/\${[\w\W]*}/gm),RRi=qY(/^data-[\-\w.\u00B7-\uFFFF]/),BRi=qY(/^aria-[\-\w]+$/),y0i=qY(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),jRi=qY(/^(?:\w+script|data):/i),WRi=qY(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),v0i=qY(/^html$/i),h0i=Object.freeze({__proto__:null,MUSTACHE_EXPR:ORi,ERB_EXPR:FRi,TMPLIT_EXPR:MRi,DATA_ATTR:RRi,ARIA_ATTR:BRi,IS_ALLOWED_URI:y0i,IS_SCRIPT_OR_DATA:jRi,ATTR_WHITESPACE:WRi,DOCTYPE_NAME:v0i}),zRi=()=>typeof window>"u"?null:window,VRi=function(e,r){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let o=null,c="data-tt-policy-suffix";r&&r.hasAttribute(c)&&(o=r.getAttribute(c));let d="dompurify"+(o?"#"+o:"");try{return e.createPolicy(d,{createHTML(h){return h},createScriptURL(h){return h}})}catch{return console.warn("TrustedTypes policy "+d+" could not be created."),null}};Fne=b0i(),Yrn=Fne.version,Qrn=Fne.isSupported,GIt=Fne.sanitize,Zrn=Fne.setConfig,eon=Fne.clearConfig,ton=Fne.isValidAttribute,KIt=Fne.addHook,XIt=Fne.removeHook,ion=Fne.removeHooks,non=Fne.removeAllHooks});function but(l,e){return qc.isUri(l)?afe(l.scheme,e):iVe(l,e+":")}function Sut(l,...e){return e.some(r=>but(l,r))}var Vu,HRi,BQt,jQt,URi,QIt,ZIt,x0i,RP=ti(()=>{Du();X_();Mu();s0();jY();(function(l){l.inMemory="inmemory",l.vscode="vscode",l.internal="private",l.walkThrough="walkThrough",l.walkThroughSnippet="walkThroughSnippet",l.http="http",l.https="https",l.file="file",l.mailto="mailto",l.untitled="untitled",l.data="data",l.command="command",l.vscodeRemote="vscode-remote",l.vscodeRemoteResource="vscode-remote-resource",l.vscodeManagedRemoteResource="vscode-managed-remote-resource",l.vscodeUserData="vscode-userdata",l.vscodeCustomEditor="vscode-custom-editor",l.vscodeNotebookCell="vscode-notebook-cell",l.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",l.vscodeNotebookCellOutput="vscode-notebook-cell-output",l.vscodeInteractiveInput="vscode-interactive-input",l.vscodeSettings="vscode-settings",l.vscodeWorkspaceTrust="vscode-workspace-trust",l.vscodeTerminal="vscode-terminal",l.vscodeChatCodeBlock="vscode-chat-code-block",l.vscodeCopilotBackingChatCodeBlock="vscode-copilot-chat-code-block",l.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",l.vscodeChatSesssion="vscode-chat-editor",l.webviewPanel="webview-panel",l.vscodeWebview="vscode-webview",l.extension="extension",l.vscodeFileResource="vscode-file",l.tmp="tmp",l.vsls="vsls",l.vscodeSourceControl="vscode-scm",l.commentsInput="comment",l.codeSetting="code-setting"})(Vu||(Vu={}));HRi="tkn",BQt=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 ex.join(this._serverRootPath,Vu.vscodeRemoteResource)}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(b){return dl(b),e}let r=e.authority,o=this._hosts[r];o&&o.indexOf(":")!==-1&&o.indexOf("[")===-1&&(o=`[${o}]`);let c=this._ports[r],d=this._connectionTokens[r],h=`path=${encodeURIComponent(e.path)}`;return typeof d=="string"&&(h+=`&${HRi}=${encodeURIComponent(d)}`),qc.from({scheme:pB?this._preferredWebSchema:Vu.vscodeRemoteResource,authority:`${o}:${c}`,path:this._remoteResourcesPath,query:h})}},jQt=new BQt,URi="vscode-app",QIt=class l{uriToBrowserUri(e){return e.scheme===Vu.vscodeRemote?jQt.rewrite(e):e.scheme===Vu.file&&(KF||pgi===`${Vu.vscodeFileResource}://${l.FALLBACK_AUTHORITY}`)?e.with({scheme:Vu.vscodeFileResource,authority:e.authority||l.FALLBACK_AUTHORITY,query:null,fragment:null}):e}};QIt.FALLBACK_AUTHORITY=URi;ZIt=new QIt;(function(l){let e=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"}]]);l.CoopAndCoep=Object.freeze(e.get("3"));let r="vscode-coi";function o(d){let h;typeof d=="string"?h=new URL(d).searchParams:d instanceof URL?h=d.searchParams:qc.isUri(d)&&(h=new URL(d.toString(!0)).searchParams);let b=h?.get(r);if(b)return e.get(b)}l.getHeadersFromQuery=o;function c(d,h,b){if(!globalThis.crossOriginIsolated)return;let w=h&&b?"3":b?"2":"1";d instanceof URLSearchParams?d.set(r,w):d[r]=w}l.addSearchParam=c})(x0i||(x0i={}))});function Qbe(l){return kut(l,0)}function kut(l,e){switch(typeof l){case"object":return l===null?lfe(349,e):Array.isArray(l)?qRi(l,e):$Ri(l,e);case"string":return eNt(l,e);case"boolean":return JRi(l,e);case"number":return lfe(l,e);case"undefined":return lfe(937,e);default:return lfe(617,e)}}function lfe(l,e){return(e<<5)-e+l|0}function JRi(l,e){return lfe(l?433:863,e)}function eNt(l,e){e=lfe(149417,e);for(let r=0,o=l.length;rkut(o,r),e)}function $Ri(l,e){return e=lfe(181387,e),Object.keys(l).sort().reduce((r,o)=>(r=eNt(o,r),kut(l[o],r)),e)}function WQt(l,e,r=32){let o=r-e,c=~((1<>>o)>>>0}function C0i(l,e=0,r=l.byteLength,o=0){for(let c=0;cr.toString(16).padStart(2,"0")).join(""):GRi((l>>>0).toString(16),e/4)}var Cut,Zbe=ti(()=>{Mu();Cut=class l{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){let r=e.length;if(r===0)return;let o=this._buff,c=this._buffLen,d=this._leftoverHighSurrogate,h,b;for(d!==0?(h=d,b=-1,d=0):(h=e.charCodeAt(0),b=0);;){let w=h;if(TS(h))if(b+1>>6,e[r++]=128|(o&63)>>>0):o<65536?(e[r++]=224|(o&61440)>>>12,e[r++]=128|(o&4032)>>>6,e[r++]=128|(o&63)>>>0):(e[r++]=240|(o&1835008)>>>18,e[r++]=128|(o&258048)>>>12,e[r++]=128|(o&4032)>>>6,e[r++]=128|(o&63)>>>0),r>=64&&(this._step(),r-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),r}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()),xut(this._h0)+xut(this._h1)+xut(this._h2)+xut(this._h3)+xut(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,C0i(this._buff,this._buffLen),this._buffLen>56&&(this._step(),C0i(this._buff));let e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){let e=l._bigBlock32,r=this._buffDV;for(let B=0;B<64;B+=4)e.setUint32(B,r.getUint32(B,!1),!1);for(let B=64;B<320;B+=4)e.setUint32(B,WQt(e.getUint32(B-12,!1)^e.getUint32(B-32,!1)^e.getUint32(B-56,!1)^e.getUint32(B-64,!1),1),!1);let o=this._h0,c=this._h1,d=this._h2,h=this._h3,b=this._h4,w,N,L;for(let B=0;B<80;B++)B<20?(w=c&d|~c&h,N=1518500249):B<40?(w=c^d^h,N=1859775393):B<60?(w=c&d|c&h|d&h,N=2400959708):(w=c^d^h,N=3395469782),L=WQt(o,5)+w+b+N+e.getUint32(B*4,!1)&4294967295,b=h,h=d,d=WQt(c,30),c=o,o=L;this._h0=this._h0+o&4294967295,this._h1=this._h1+c&4294967295,this._h2=this._h2+d&4294967295,this._h3=this._h3+h&4294967295,this._h4=this._h4+b&4294967295}};Cut._bigBlock32=new DataView(new ArrayBuffer(320))});function DS(l){for(;l.firstChild;)l.firstChild.remove()}function Jr(l,e,r,o){return new VQt(l,e,r,o)}function D0i(l,e){return function(r){return e(new PD(l,r))}}function XRi(l){return function(e){return l(new Jp(e))}}function YRi(l,e,r){return Jr(l,b6&&sVe.pointerEvents?ls.POINTER_DOWN:ls.MOUSE_DOWN,e,r)}function q4e(l,e,r){return aVe(l,e,r)}function Eut(l){return Gc(l).getComputedStyle(l,null)}function t7(l,e){let r=Gc(l),o=r.document;if(l!==o.body)return new qm(l.clientWidth,l.clientHeight);if(b6&&r?.visualViewport)return new qm(r.visualViewport.width,r.visualViewport.height);if(r?.innerWidth&&r.innerHeight)return new qm(r.innerWidth,r.innerHeight);if(o.body&&o.body.clientWidth&&o.body.clientHeight)return new qm(o.body.clientWidth,o.body.clientHeight);if(o.documentElement&&o.documentElement.clientWidth&&o.documentElement.clientHeight)return new qm(o.documentElement.clientWidth,o.documentElement.clientHeight);if(e)return t7(e);throw new Error("Unable to figure out browser width and height")}function iNt(l){let e=l.offsetParent,r=l.offsetTop,o=l.offsetLeft;for(;(l=l.parentNode)!==null&&l!==l.ownerDocument.body&&l!==l.ownerDocument.documentElement;){r-=l.scrollTop;let c=P0i(l)?null:Eut(l);c&&(o-=c.direction!=="rtl"?l.scrollLeft:-l.scrollLeft),l===e&&(o+=e7.getBorderLeftWidth(l),r+=e7.getBorderTopWidth(l),r+=l.offsetTop,o+=l.offsetLeft,e=l.offsetParent)}return{left:o,top:r}}function N0i(l,e,r){typeof e=="number"&&(l.style.width=`${e}px`),typeof r=="number"&&(l.style.height=`${r}px`)}function _g(l){let e=l.getBoundingClientRect(),r=Gc(l);return{left:e.left+r.scrollX,top:e.top+r.scrollY,width:e.width,height:e.height}}function nNt(l){let e=l,r=1;do{let o=Eut(e).zoom;o!=null&&o!=="1"&&(r*=o),e=e.parentElement}while(e!==null&&e!==e.ownerDocument.documentElement);return r}function dA(l){let e=e7.getMarginLeft(l)+e7.getMarginRight(l);return l.offsetWidth+e}function rNt(l){let e=e7.getBorderLeftWidth(l)+e7.getBorderRightWidth(l),r=e7.getPaddingLeft(l)+e7.getPaddingRight(l);return l.offsetWidth-e-r}function A0i(l){let e=e7.getBorderTopWidth(l)+e7.getBorderBottomWidth(l),r=e7.getPaddingTop(l)+e7.getPaddingBottom(l);return l.offsetHeight-e-r}function hV(l){let e=e7.getMarginTop(l)+e7.getMarginBottom(l);return l.offsetHeight+e}function ES(l,e){return!!e?.contains(l)}function QRi(l,e,r){for(;l&&l.nodeType===l.ELEMENT_NODE;){if(l.classList.contains(e))return l;if(r){if(typeof r=="string"){if(l.classList.contains(r))return null}else if(l===r)return null}l=l.parentNode}return null}function oNt(l,e,r){return!!QRi(l,e,r)}function P0i(l){return l&&!!l.host&&!!l.mode}function $4e(l){return!!$Y(l)}function $Y(l){for(var e;l.parentNode;){if(l===((e=l.ownerDocument)===null||e===void 0?void 0:e.body))return null;l=l.parentNode}return P0i(l)?l:null}function DC(){let l=dfe().activeElement;for(;l?.shadowRoot;)l=l.shadowRoot.activeElement;return l}function G4e(l){return DC()===l}function sNt(l){return ES(DC(),l)}function dfe(){var l;return KRi()<=1?em.document:(l=Array.from(w0i()).map(({window:r})=>r.document).find(r=>r.hasFocus()))!==null&&l!==void 0?l:em.document}function _Ve(){var l,e;return(e=(l=dfe().defaultView)===null||l===void 0?void 0:l.window)!==null&&e!==void 0?e:em}function aNt(){return new HQt}function bE(l=em.document.head,e,r){let o=document.createElement("style");if(o.type="text/css",o.media="screen",e?.(o),l.appendChild(o),r&&r.add(Ma(()=>l.removeChild(o))),l===em.document.head){let c=new Set;qQt.set(o,c);for(let{window:d,disposables:h}of w0i()){if(d===em)continue;let b=h.add(ZRi(o,c,d));r?.add(b)}}return o}function ZRi(l,e,r){var o,c;let d=new Fr,h=l.cloneNode(!0);r.document.head.appendChild(h),d.add(Ma(()=>r.document.head.removeChild(h)));for(let b of O0i(l))(o=h.sheet)===null||o===void 0||o.insertRule(b.cssText,(c=h.sheet)===null||c===void 0?void 0:c.cssRules.length);return d.add(e5i.observe(l,d,{childList:!0})(()=>{h.textContent=l.textContent})),e.add(h),d.add(Ma(()=>e.delete(h))),d}function L0i(){return zQt||(zQt=bE()),zQt}function O0i(l){var e,r;return!((e=l?.sheet)===null||e===void 0)&&e.rules?l.sheet.rules:!((r=l?.sheet)===null||r===void 0)&&r.cssRules?l.sheet.cssRules:[]}function pVe(l,e,r=L0i()){var o,c;if(!(!r||!e)){(o=r.sheet)===null||o===void 0||o.insertRule(`${l} {${e}}`,0);for(let d of(c=qQt.get(r))!==null&&c!==void 0?c:[])pVe(l,e,d)}}function cNt(l,e=L0i()){var r,o;if(!e)return;let c=O0i(e),d=[];for(let h=0;h=0;h--)(r=e.sheet)===null||r===void 0||r.deleteRule(d[h]);for(let h of(o=qQt.get(e))!==null&&o!==void 0?o:[])cNt(l,h)}function t5i(l){return typeof l.selectorText=="string"}function Wv(l){return l instanceof HTMLElement||l instanceof Gc(l).HTMLElement}function $Qt(l){return l instanceof HTMLAnchorElement||l instanceof Gc(l).HTMLAnchorElement}function mVe(l){return l instanceof MouseEvent||l instanceof Gc(l).MouseEvent}function GY(l){return l instanceof KeyboardEvent||l instanceof Gc(l).KeyboardEvent}function F0i(l){let e=l;return!!(e&&typeof e.preventDefault=="function"&&typeof e.stopPropagation=="function")}function M0i(l){let e=[];for(let r=0;l&&l.nodeType===l.ELEMENT_NODE;r++)e[r]=l.scrollTop,l=l.parentNode;return e}function R0i(l,e){for(let r=0;l&&l.nodeType===l.ELEMENT_NODE;r++)l.scrollTop!==e[r]&&(l.scrollTop=e[r]),l=l.parentNode}function BP(l){return new UQt(l)}function B0i(l,e){return l.after(e),e}function Ro(l,...e){if(l.append(...e),e.length===1&&typeof e[0]!="string")return e[0]}function hVe(l,e){return l.insertBefore(e,l.firstChild),e}function IS(l,...e){l.innerText="",Ro(l,...e)}function j0i(l,e,r,...o){let c=i5i.exec(e);if(!c)throw new Error("Bad use of emmet");let d=c[1]||"div",h;return l!==Tut.HTML?h=document.createElementNS(l,d):h=document.createElement(d),c[3]&&(h.id=c[3]),c[4]&&(h.className=c[4].replace(/\./g," ").trim()),r&&Object.entries(r).forEach(([b,w])=>{typeof w>"u"||(/^on\w+$/.test(b)?h[b]=w:b==="selected"?w&&h.setAttribute(b,"true"):h.setAttribute(b,w))}),h.append(...o),h}function qo(l,e,...r){return j0i(Tut.HTML,l,e,...r)}function W0i(l,...e){l?BI(...e):OD(...e)}function BI(...l){for(let e of l)e.style.display="",e.removeAttribute("aria-hidden")}function OD(...l){for(let e of l)e.style.display="none",e.setAttribute("aria-hidden","true")}function GQt(l,e){let r=l.devicePixelRatio*e;return Math.max(1,Math.floor(r))/l.devicePixelRatio}function lNt(l){em.open(l,"_blank","noopener")}function z0i(l,e){let r=()=>{e(),o=LD(l,r)},o=LD(l,r);return Ma(()=>o.dispose())}function SB(l){return l?`url('${ZIt.uriToBrowserUri(l).toString(!0).replace(/'/g,"%27")}')`:"url('')"}function uNt(l){return`'${l.replace(/'/g,"%27")}'`}function gV(l,e){if(l!==void 0){let r=l.match(/^\s*var\((.+)\)$/);if(r){let o=r[1].split(",",2);return o.length===2&&(e=gV(o[1].trim(),e)),`var(${o[0]}, ${e})`}return l}return e}function V0i(l,e=!1){let r=document.createElement("a");return KIt("afterSanitizeAttributes",o=>{for(let c of["href","src"])if(o.hasAttribute(c)){let d=o.getAttribute(c);if(c==="href"&&d.startsWith("#"))continue;if(r.href=d,!l.includes(r.protocol.replace(/:$/,""))){if(e&&c==="src"&&r.href.startsWith("data:"))continue;o.removeAttribute(c)}}}),Ma(()=>{XIt("afterSanitizeAttributes")})}function qp(l,...e){let r,o;Array.isArray(e[0])?(r={},o=e[0]):(r=e[0]||{},o=e[1]);let c=n5i.exec(l);if(!c||!c.groups)throw new Error("Bad use of h");let d=c.groups.tag||"div",h=document.createElement(d);c.groups.id&&(h.id=c.groups.id);let b=[];if(c.groups.class)for(let N of c.groups.class.split("."))N!==""&&b.push(N);if(r.className!==void 0)for(let N of r.className.split("."))N!==""&&b.push(N);b.length>0&&(h.className=b.join(" "));let w={};if(c.groups.name&&(w[c.groups.name]=h),o)for(let N of o)Wv(N)?h.appendChild(N):typeof N=="string"?h.append(N):"root"in N&&(Object.assign(w,N),h.appendChild(N.root));for(let[N,L]of Object.entries(r))if(N!=="className")if(N==="style")for(let[B,F]of Object.entries(L))h.style.setProperty(k0i(B),typeof F=="number"?F+"px":""+F);else N==="tabIndex"?h.tabIndex=L:h.setAttribute(k0i(N),L.toString());return w.root=h,w}function k0i(l){return l.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}var gon,Gc,yon,w0i,KRi,uVe,JQt,von,J4e,T0i,E0i,VQt,qh,I0i,dVe,fVe,LD,eSe,wut,e7,qm,qQt,HQt,e5i,zQt,ls,D_,UQt,i5i,Tut,H0i,bon,ufe,tNt,n5i,nc=ti(()=>{ZF();MIt();lA();vB();Ud();Du();xc();YIt();co();RP();X_();Zbe();S6();({registerWindow:gon,getWindow:Gc,getDocument:yon,getWindows:w0i,getWindowsCount:KRi,getWindowId:uVe,getWindowById:JQt,hasWindow:von,onDidRegisterWindow:J4e,onWillUnregisterWindow:T0i,onDidUnregisterWindow:E0i}=function(){let l=new Map;Jgi(em,1);let e={window:em,disposables:new Fr};l.set(em.vscodeWindowId,e);let r=new wn,o=new wn,c=new wn;function d(h,b){let w=typeof h=="number"?l.get(h):void 0;return w??(b?e:void 0)}return{onDidRegisterWindow:r.event,onWillUnregisterWindow:c.event,onDidUnregisterWindow:o.event,registerWindow(h){if(l.has(h.vscodeWindowId))return tn.None;let b=new Fr,w={window:h,disposables:b.add(new Fr)};return l.set(h.vscodeWindowId,w),b.add(Ma(()=>{l.delete(h.vscodeWindowId),o.fire(h)})),b.add(Jr(h,ls.BEFORE_UNLOAD,()=>{c.fire(h)})),r.fire(w),b},getWindows(){return l.values()},getWindowsCount(){return l.size},getWindowId(h){return h.vscodeWindowId},hasWindow(h){return l.has(h)},getWindowById:d,getWindow(h){var b;let w=h;if(!((b=w?.ownerDocument)===null||b===void 0)&&b.defaultView)return w.ownerDocument.defaultView.window;let N=h;return N?.view?N.view.window:em},getDocument(h){return Gc(h).document}}}());VQt=class{constructor(e,r,o,c){this._node=e,this._type=r,this._handler=o,this._options=c||!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)}};qh=function(e,r,o,c){let d=o;return r==="click"||r==="mousedown"||r==="contextmenu"?d=D0i(Gc(e),o):(r==="keydown"||r==="keypress"||r==="keyup")&&(d=XRi(o)),Jr(e,r,d,c)},I0i=function(e,r,o){let c=D0i(Gc(e),r);return YRi(e,c,o)};dVe=class extends hut{constructor(e,r){super(e,r)}},eSe=class extends Ybe{constructor(e){super(),this.defaultTarget=e&&Gc(e)}cancelAndSet(e,r,o){return super.cancelAndSet(e,r,o??this.defaultTarget)}},wut=class{constructor(e,r=0){this._runner=e,this.priority=r,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(e){dl(e)}}static sort(e,r){return r.priority-e.priority}};(function(){let l=new Map,e=new Map,r=new Map,o=new Map,c=d=>{var h;r.set(d,!1);let b=(h=l.get(d))!==null&&h!==void 0?h:[];for(e.set(d,b),l.set(d,[]),o.set(d,!0);b.length>0;)b.sort(wut.sort),b.shift().execute();o.set(d,!1)};LD=(d,h,b=0)=>{let w=uVe(d),N=new wut(h,b),L=l.get(w);return L||(L=[],l.set(w,L)),L.push(N),r.get(w)||(r.set(w,!0),d.requestAnimationFrame(()=>c(w))),N},fVe=(d,h,b)=>{let w=uVe(d);if(o.get(w)){let N=new wut(h,b),L=e.get(w);return L||(L=[],e.set(w,L)),L.push(N),N}else return LD(d,h,b)}})();e7=class l{static convertToPixels(e,r){return parseFloat(r)||0}static getDimension(e,r,o){let c=Eut(e),d=c?c.getPropertyValue(r):"0";return l.convertToPixels(e,d)}static getBorderLeftWidth(e){return l.getDimension(e,"border-left-width","borderLeftWidth")}static getBorderRightWidth(e){return l.getDimension(e,"border-right-width","borderRightWidth")}static getBorderTopWidth(e){return l.getDimension(e,"border-top-width","borderTopWidth")}static getBorderBottomWidth(e){return l.getDimension(e,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(e){return l.getDimension(e,"padding-left","paddingLeft")}static getPaddingRight(e){return l.getDimension(e,"padding-right","paddingRight")}static getPaddingTop(e){return l.getDimension(e,"padding-top","paddingTop")}static getPaddingBottom(e){return l.getDimension(e,"padding-bottom","paddingBottom")}static getMarginLeft(e){return l.getDimension(e,"margin-left","marginLeft")}static getMarginTop(e){return l.getDimension(e,"margin-top","marginTop")}static getMarginRight(e){return l.getDimension(e,"margin-right","marginRight")}static getMarginBottom(e){return l.getDimension(e,"margin-bottom","marginBottom")}},qm=class l{constructor(e,r){this.width=e,this.height=r}with(e=this.width,r=this.height){return e!==this.width||r!==this.height?new l(e,r):this}static is(e){return typeof e=="object"&&typeof e.height=="number"&&typeof e.width=="number"}static lift(e){return e instanceof l?e:new l(e.width,e.height)}static equals(e,r){return e===r?!0:!e||!r?!1:e.width===r.width&&e.height===r.height}};qm.None=new qm(0,0);qQt=new Map;HQt=class{constructor(){this._currentCssStyle="",this._styleSheet=void 0}setStyle(e){e!==this._currentCssStyle&&(this._currentCssStyle=e,this._styleSheet?this._styleSheet.innerText=e:this._styleSheet=bE(em.document.head,r=>r.innerText=e))}dispose(){this._styleSheet&&(this._styleSheet.remove(),this._styleSheet=void 0)}};e5i=new class{constructor(){this.mutationObservers=new Map}observe(l,e,r){let o=this.mutationObservers.get(l);o||(o=new Map,this.mutationObservers.set(l,o));let c=Qbe(r),d=o.get(c);if(d)d.users+=1;else{let h=new wn,b=new MutationObserver(N=>h.fire(N));b.observe(l,r);let w=d={users:1,observer:b,onDidMutate:h.event};e.add(Ma(()=>{w.users-=1,w.users===0&&(h.dispose(),b.disconnect(),o?.delete(c),o?.size===0&&this.mutationObservers.delete(l))})),o.set(c,d)}return d.onDidMutate}},zQt=null;ls={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:UY?"webkitAnimationStart":"animationstart",ANIMATION_END:UY?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:UY?"webkitAnimationIteration":"animationiteration"};D_={stop:(l,e)=>(l.preventDefault(),e&&l.stopPropagation(),l)};UQt=class l extends tn{static hasFocusWithin(e){if(Wv(e)){let r=$Y(e),o=r?r.activeElement:e.ownerDocument.activeElement;return ES(o,e)}else{let r=e;return ES(r.document.activeElement,r.document)}}constructor(e){super(),this._onDidFocus=this._register(new wn),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new wn),this.onDidBlur=this._onDidBlur.event;let r=l.hasFocusWithin(e),o=!1,c=()=>{o=!1,r||(r=!0,this._onDidFocus.fire())},d=()=>{r&&(o=!0,(Wv(e)?Gc(e):e).setTimeout(()=>{o&&(o=!1,r=!1,this._onDidBlur.fire())},0))};this._refreshStateHandler=()=>{l.hasFocusWithin(e)!==r&&(r?d():c())},this._register(Jr(e,ls.FOCUS,c,!0)),this._register(Jr(e,ls.BLUR,d,!0)),Wv(e)&&(this._register(Jr(e,ls.FOCUS_IN,()=>this._refreshStateHandler())),this._register(Jr(e,ls.FOCUS_OUT,()=>this._refreshStateHandler())))}};i5i=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;(function(l){l.HTML="http://www.w3.org/1999/xhtml",l.SVG="http://www.w3.org/2000/svg"})(Tut||(Tut={}));qo.SVG=function(l,e,...r){return j0i(Tut.SVG,l,e,...r)};jQt.setPreferredWebSchema(/^https:/.test(em.location.href)?"https":"http");H0i=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"]),bon=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}),ufe=class l extends wn{constructor(){super(),this._subscriptions=new Fr,this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(gs.runAndSubscribe(J4e,({window:e,disposables:r})=>this.registerListeners(e,r),{window:em,disposables:this._subscriptions}))}registerListeners(e,r){r.add(Jr(e,"keydown",o=>{if(o.defaultPrevented)return;let c=new Jp(o);if(!(c.keyCode===6&&o.repeat)){if(o.altKey&&!this._keyStatus.altKey)this._keyStatus.lastKeyPressed="alt";else if(o.ctrlKey&&!this._keyStatus.ctrlKey)this._keyStatus.lastKeyPressed="ctrl";else if(o.metaKey&&!this._keyStatus.metaKey)this._keyStatus.lastKeyPressed="meta";else if(o.shiftKey&&!this._keyStatus.shiftKey)this._keyStatus.lastKeyPressed="shift";else if(c.keyCode!==6)this._keyStatus.lastKeyPressed=void 0;else return;this._keyStatus.altKey=o.altKey,this._keyStatus.ctrlKey=o.ctrlKey,this._keyStatus.metaKey=o.metaKey,this._keyStatus.shiftKey=o.shiftKey,this._keyStatus.lastKeyPressed&&(this._keyStatus.event=o,this.fire(this._keyStatus))}},!0)),r.add(Jr(e,"keyup",o=>{o.defaultPrevented||(!o.altKey&&this._keyStatus.altKey?this._keyStatus.lastKeyReleased="alt":!o.ctrlKey&&this._keyStatus.ctrlKey?this._keyStatus.lastKeyReleased="ctrl":!o.metaKey&&this._keyStatus.metaKey?this._keyStatus.lastKeyReleased="meta":!o.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=o.altKey,this._keyStatus.ctrlKey=o.ctrlKey,this._keyStatus.metaKey=o.metaKey,this._keyStatus.shiftKey=o.shiftKey,this._keyStatus.lastKeyReleased&&(this._keyStatus.event=o,this.fire(this._keyStatus)))},!0)),r.add(Jr(e.document.body,"mousedown",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),r.add(Jr(e.document.body,"mouseup",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),r.add(Jr(e.document.body,"mousemove",o=>{o.buttons&&(this._keyStatus.lastKeyPressed=void 0)},!0)),r.add(Jr(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 l.instance||(l.instance=new l),l.instance}dispose(){super.dispose(),this._subscriptions.dispose()}},tNt=class extends tn{constructor(e,r){super(),this.element=e,this.callbacks=r,this.counter=0,this.dragStartTime=0,this.registerListeners()}registerListeners(){this.callbacks.onDragStart&&this._register(Jr(this.element,ls.DRAG_START,e=>{var r,o;(o=(r=this.callbacks).onDragStart)===null||o===void 0||o.call(r,e)})),this.callbacks.onDrag&&this._register(Jr(this.element,ls.DRAG,e=>{var r,o;(o=(r=this.callbacks).onDrag)===null||o===void 0||o.call(r,e)})),this._register(Jr(this.element,ls.DRAG_ENTER,e=>{var r,o;this.counter++,this.dragStartTime=e.timeStamp,(o=(r=this.callbacks).onDragEnter)===null||o===void 0||o.call(r,e)})),this._register(Jr(this.element,ls.DRAG_OVER,e=>{var r,o;e.preventDefault(),(o=(r=this.callbacks).onDragOver)===null||o===void 0||o.call(r,e,e.timeStamp-this.dragStartTime)})),this._register(Jr(this.element,ls.DRAG_LEAVE,e=>{var r,o;this.counter--,this.counter===0&&(this.dragStartTime=0,(o=(r=this.callbacks).onDragLeave)===null||o===void 0||o.call(r,e))})),this._register(Jr(this.element,ls.DRAG_END,e=>{var r,o;this.counter=0,this.dragStartTime=0,(o=(r=this.callbacks).onDragEnd)===null||o===void 0||o.call(r,e)})),this._register(Jr(this.element,ls.DROP,e=>{var r,o;this.counter=0,this.dragStartTime=0,(o=(r=this.callbacks).onDrop)===null||o===void 0||o.call(r,e)}))}},n5i=/(?[\w\-]+)?(?:#(?[\w\-]+))?(?(?:\.(?:[\w\-]+))*)(?:@(?(?:[\w\_])+))?/});var KQt,XQt,YQt,tSe,dNt=ti(()=>{nc();xc();co();KQt=class extends tn{constructor(e){super(),this._onDidChange=this._register(new wn),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(e,!0),this._mediaQueryList=null,this._handleChange(e,!1)}_handleChange(e,r){var o;(o=this._mediaQueryList)===null||o===void 0||o.removeEventListener("change",this._listener),this._mediaQueryList=e.matchMedia(`(resolution: ${e.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),r&&this._onDidChange.fire()}},XQt=class extends tn{get value(){return this._value}constructor(e){super(),this._onDidChange=this._register(new wn),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio(e);let r=this._register(new KQt(e));this._register(r.onDidChange(()=>{this._value=this._getPixelRatio(e),this._onDidChange.fire(this._value)}))}_getPixelRatio(e){let r=document.createElement("canvas").getContext("2d"),o=e.devicePixelRatio||1,c=r.webkitBackingStorePixelRatio||r.mozBackingStorePixelRatio||r.msBackingStorePixelRatio||r.oBackingStorePixelRatio||r.backingStorePixelRatio||1;return o/c}},YQt=class{constructor(){this.mapWindowIdToPixelRatioMonitor=new Map}_getOrCreatePixelRatioMonitor(e){let r=uVe(e),o=this.mapWindowIdToPixelRatioMonitor.get(r);return o||(o=Wbe(new XQt(e)),this.mapWindowIdToPixelRatioMonitor.set(r,o),Wbe(gs.once(E0i)(({vscodeWindowId:c})=>{c===r&&(o?.dispose(),this.mapWindowIdToPixelRatioMonitor.delete(r))}))),o}getInstance(e){return this._getOrCreatePixelRatioMonitor(e)}},tSe=new YQt});function KY(l){return typeof l=="number"?`${l}px`:l}function V_(l){return new Dut(l)}var Dut,SE=ti(()=>{Dut=class{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){let r=KY(e);this._maxWidth!==r&&(this._maxWidth=r,this.domNode.style.maxWidth=this._maxWidth)}setWidth(e){let r=KY(e);this._width!==r&&(this._width=r,this.domNode.style.width=this._width)}setHeight(e){let r=KY(e);this._height!==r&&(this._height=r,this.domNode.style.height=this._height)}setTop(e){let r=KY(e);this._top!==r&&(this._top=r,this.domNode.style.top=this._top)}setLeft(e){let r=KY(e);this._left!==r&&(this._left=r,this.domNode.style.left=this._left)}setBottom(e){let r=KY(e);this._bottom!==r&&(this._bottom=r,this.domNode.style.bottom=this._bottom)}setRight(e){let r=KY(e);this._right!==r&&(this._right=r,this.domNode.style.right=this._right)}setPaddingLeft(e){let r=KY(e);this._paddingLeft!==r&&(this._paddingLeft=r,this.domNode.style.paddingLeft=this._paddingLeft)}setFontFamily(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(e){let r=KY(e);this._fontSize!==r&&(this._fontSize=r,this.domNode.style.fontSize=this._fontSize)}setFontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.domNode.style.fontStyle=this._fontStyle)}setFontFeatureSettings(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setFontVariationSettings(e){this._fontVariationSettings!==e&&(this._fontVariationSettings=e,this.domNode.style.fontVariationSettings=this._fontVariationSettings)}setTextDecoration(e){this._textDecoration!==e&&(this._textDecoration=e,this.domNode.style.textDecoration=this._textDecoration)}setLineHeight(e){let r=KY(e);this._lineHeight!==r&&(this._lineHeight=r,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(e){let r=KY(e);this._letterSpacing!==r&&(this._letterSpacing=r,this.domNode.style.letterSpacing=this._letterSpacing)}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}toggleClassName(e,r){this.domNode.classList.toggle(e,r),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,r){this.domNode.setAttribute(e,r)}removeAttribute(e){this.domNode.removeAttribute(e)}appendChild(e){this.domNode.appendChild(e.domNode)}removeChild(e){this.domNode.removeChild(e.domNode)}}});function Bb(l,e){l instanceof Dut?(l.setFontFamily(e.getMassagedFontFamily()),l.setFontWeight(e.fontWeight),l.setFontSize(e.fontSize),l.setFontFeatureSettings(e.fontFeatureSettings),l.setFontVariationSettings(e.fontVariationSettings),l.setLineHeight(e.lineHeight),l.setLetterSpacing(e.letterSpacing)):(l.style.fontFamily=e.getMassagedFontFamily(),l.style.fontWeight=e.fontWeight,l.style.fontSize=e.fontSize+"px",l.style.fontFeatureSettings=e.fontFeatureSettings,l.style.fontVariationSettings=e.fontVariationSettings,l.style.lineHeight=e.lineHeight+"px",l.style.letterSpacing=e.letterSpacing+"px")}var xB=ti(()=>{SE()});function U0i(l,e,r){new QQt(e,r).read(l)}var fNt,QQt,J0i=ti(()=>{xB();fNt=class{constructor(e,r){this.chr=e,this.type=r,this.width=0}fulfill(e){this.width=e}},QQt=class l{constructor(e,r){this._bareFontInfo=e,this._requests=r,this._container=null,this._testElements=null}read(e){this._createDomElements(),e.document.body.appendChild(this._container),this._readFromDomElements(),e.document.body.removeChild(this._container),this._container=null,this._testElements=null}_createDomElements(){let e=document.createElement("div");e.style.position="absolute",e.style.top="-50000px",e.style.width="50000px";let r=document.createElement("div");Bb(r,this._bareFontInfo),e.appendChild(r);let o=document.createElement("div");Bb(o,this._bareFontInfo),o.style.fontWeight="bold",e.appendChild(o);let c=document.createElement("div");Bb(c,this._bareFontInfo),c.style.fontStyle="italic",e.appendChild(c);let d=[];for(let h of this._requests){let b;h.type===0&&(b=r),h.type===2&&(b=o),h.type===1&&(b=c),b.appendChild(document.createElement("br"));let w=document.createElement("span");l._render(w,h),b.appendChild(w),d.push(w)}this._container=e,this._testElements=d}static _render(e,r){if(r.chr===" "){let o="\xA0";for(let c=0;c<8;c++)o+=o;e.innerText=o}else{let o=r.chr;for(let c=0;c<8;c++)o+=o;e.textContent=o}}_readFromDomElements(){for(let e=0,r=this._requests.length;e{xc();t3=new class{constructor(){this._zoomLevel=0,this._onDidChangeZoomLevel=new wn,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}getZoomLevel(){return this._zoomLevel}setZoomLevel(l){l=Math.min(Math.max(-5,l),20),this._zoomLevel!==l&&(this._zoomLevel=l,this._onDidChangeZoomLevel.fire(this._zoomLevel))}}});var o5i,ZQt,K4e,s5i,X4e,_Nt=ti(()=>{X_();TT();gVe();o5i=md?1.5:1.35,ZQt=8,K4e=class l{static createFromValidatedSettings(e,r,o){let c=e.get(49),d=e.get(53),h=e.get(52),b=e.get(51),w=e.get(54),N=e.get(67),L=e.get(64);return l._create(c,d,h,b,w,N,L,r,o)}static _create(e,r,o,c,d,h,b,w,N){h===0?h=o5i*o:h{nc();dNt();xc();co();J0i();TT();_Nt();eZt=class extends tn{constructor(){super(...arguments),this._cache=new Map,this._evictUntrustedReadingsTimeout=-1,this._onDidChange=this._register(new wn),this.onDidChange=this._onDidChange.event}dispose(){this._evictUntrustedReadingsTimeout!==-1&&(clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),super.dispose()}clearAllFontInfos(){this._cache.clear(),this._onDidChange.fire()}_ensureCache(e){let r=uVe(e),o=this._cache.get(r);return o||(o=new tZt,this._cache.set(r,o)),o}_writeToCache(e,r,o){this._ensureCache(e).put(r,o),!o.isTrusted&&this._evictUntrustedReadingsTimeout===-1&&(this._evictUntrustedReadingsTimeout=e.setTimeout(()=>{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings(e)},5e3))}_evictUntrustedReadings(e){let r=this._ensureCache(e),o=r.getValues(),c=!1;for(let d of o)d.isTrusted||(c=!0,r.remove(d));c&&this._onDidChange.fire()}readFontInfo(e,r){let o=this._ensureCache(e);if(!o.has(r)){let c=this._actualReadFontInfo(e,r);(c.typicalHalfwidthCharacterWidth<=2||c.typicalFullwidthCharacterWidth<=2||c.spaceWidth<=2||c.maxDigitWidth<=2)&&(c=new X4e({pixelRatio:tSe.getInstance(e).value,fontFamily:c.fontFamily,fontWeight:c.fontWeight,fontSize:c.fontSize,fontFeatureSettings:c.fontFeatureSettings,fontVariationSettings:c.fontVariationSettings,lineHeight:c.lineHeight,letterSpacing:c.letterSpacing,isMonospace:c.isMonospace,typicalHalfwidthCharacterWidth:Math.max(c.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(c.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:c.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(c.spaceWidth,5),middotWidth:Math.max(c.middotWidth,5),wsmiddotWidth:Math.max(c.wsmiddotWidth,5),maxDigitWidth:Math.max(c.maxDigitWidth,5)},!1)),this._writeToCache(e,r,c)}return o.get(r)}_createRequest(e,r,o,c){let d=new fNt(e,r);return o.push(d),c?.push(d),d}_actualReadFontInfo(e,r){let o=[],c=[],d=this._createRequest("n",0,o,c),h=this._createRequest("\uFF4D",0,o,null),b=this._createRequest(" ",0,o,c),w=this._createRequest("0",0,o,c),N=this._createRequest("1",0,o,c),L=this._createRequest("2",0,o,c),B=this._createRequest("3",0,o,c),F=this._createRequest("4",0,o,c),Y=this._createRequest("5",0,o,c),Z=this._createRequest("6",0,o,c),ee=this._createRequest("7",0,o,c),Te=this._createRequest("8",0,o,c),Je=this._createRequest("9",0,o,c),Xe=this._createRequest("\u2192",0,o,c),ct=this._createRequest("\uFFEB",0,o,null),Ct=this._createRequest("\xB7",0,o,c),Nt=this._createRequest("\u2E31",0,o,null),Yt="|/-_ilm%";for(let dr=0,Rr=Yt.length;dr.001){mi=!1;break}}let Pr=!0;return mi&&ct.width!==_n&&(Pr=!1),ct.width>Xe.width&&(Pr=!1),new X4e({pixelRatio:tSe.getInstance(e).value,fontFamily:r.fontFamily,fontWeight:r.fontWeight,fontSize:r.fontSize,fontFeatureSettings:r.fontFeatureSettings,fontVariationSettings:r.fontVariationSettings,lineHeight:r.lineHeight,letterSpacing:r.letterSpacing,isMonospace:mi,typicalHalfwidthCharacterWidth:d.width,typicalFullwidthCharacterWidth:h.width,canUseHalfwidthRightwardsArrow:Pr,spaceWidth:b.width,middotWidth:Ct.width,wsmiddotWidth:Nt.width,maxDigitWidth:jt},!0)}},tZt=class{constructor(){this._keys=Object.create(null),this._values=Object.create(null)}has(e){let r=e.getId();return!!this._values[r]}get(e){let r=e.getId();return this._values[r]}put(e,r){let o=e.getId();this._keys[o]=e,this._values[o]=r}remove(e){let r=e.getId();delete this._keys[r],delete this._values[r]}getValues(){return Object.keys(this._keys).map(e=>this._values[e])}},Iut=new eZt});function a5i(l,e,r){e[Rq.DI_TARGET]===e?e[Rq.DI_DEPENDENCIES].push({id:l,index:r}):(e[Rq.DI_DEPENDENCIES]=[{id:l,index:r}],e[Rq.DI_TARGET]=e)}function Ml(l){if(Rq.serviceIds.has(l))return Rq.serviceIds.get(l);let e=function(r,o,c){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");a5i(e,r,c)};return e.toString=()=>l,Rq.serviceIds.set(l,e),e}var Rq,Pa,bl=ti(()=>{(function(l){l.serviceIds=new Map,l.DI_TARGET="$di$target",l.DI_DEPENDENCIES="$di$dependencies";function e(r){return r[l.DI_DEPENDENCIES]||[]}l.getServiceDependencies=e})(Rq||(Rq={}));Pa=Ml("instantiationService")});var nf,IC=ti(()=>{bl();nf=Ml("codeEditorService")});var Mh,C6=ti(()=>{bl();Mh=Ml("modelService")});var ak,CB=ti(()=>{bl();ak=Ml("textModelService")});function Mne(l){var e,r;return{id:l.id,label:l.label,tooltip:(e=l.tooltip)!==null&&e!==void 0?e:l.label,class:l.class,enabled:(r=l.enabled)!==null&&r!==void 0?r:!0,checked:l.checked,run:async(...o)=>l.run(...o)}}var jw,DR,J1,yV,Nut,xE=ti(()=>{xc();co();ya();jw=class extends tn{constructor(e,r="",o="",c=!0,d){super(),this._onDidChange=this._register(new wn),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=e,this._label=r,this._cssClass=o,this._enabled=c,this._actionCallback=d}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,r){this._actionCallback&&await this._actionCallback(e)}},DR=class extends tn{constructor(){super(...arguments),this._onWillRun=this._register(new wn),this.onWillRun=this._onWillRun.event,this._onDidRun=this._register(new wn),this.onDidRun=this._onDidRun.event}async run(e,r){if(!e.enabled)return;this._onWillRun.fire({action:e});let o;try{await this.runAction(e,r)}catch(c){o=c}this._onDidRun.fire({action:e,error:o})}async runAction(e,r){await e.run(r)}},J1=class l{constructor(){this.id=l.ID,this.label="",this.tooltip="",this.class="separator",this.enabled=!1,this.checked=!1}static join(...e){let r=[];for(let o of e)o.length&&(r.length?r=[...r,new l,...o]:r=o);return r}async run(){}};J1.ID="vs.actions.separator";yV=class{get actions(){return this._actions}constructor(e,r,o,c){this.tooltip="",this.enabled=!0,this.checked=void 0,this.id=e,this.label=r,this.class=c,this._actions=o}async run(){}},Nut=class l extends jw{constructor(){super(l.ID,ce("submenu.empty","(empty)"),void 0,!1)}};Nut.ID="vs.actions.empty"});var nZt,sl,bv=ti(()=>{uy();(function(l){function e(r){return r&&typeof r=="object"&&typeof r.id=="string"}l.isThemeColor=e})(nZt||(nZt={}));(function(l){l.iconNameSegment="[A-Za-z0-9]+",l.iconNameExpression="[A-Za-z0-9-]+",l.iconModifierExpression="~[A-Za-z]+",l.iconNameCharacter="[A-Za-z0-9~-]";let e=new RegExp(`^(${l.iconNameExpression})(${l.iconModifierExpression})?$`);function r(F){let Y=e.exec(F.id);if(!Y)return r(_s.error);let[,Z,ee]=Y,Te=["codicon","codicon-"+Z];return ee&&Te.push("codicon-modifier-"+ee.substring(1)),Te}l.asClassNameArray=r;function o(F){return r(F).join(" ")}l.asClassName=o;function c(F){return"."+r(F).join(".")}l.asCSSSelector=c;function d(F){return F&&typeof F=="object"&&typeof F.id=="string"&&(typeof F.color>"u"||nZt.isThemeColor(F.color))}l.isThemeIcon=d;let h=new RegExp(`^\\$\\((${l.iconNameExpression}(?:${l.iconModifierExpression})?)\\)$`);function b(F){let Y=h.exec(F);if(!Y)return;let[,Z]=Y;return{id:Z}}l.fromString=b;function w(F){return{id:F}}l.fromId=w;function N(F,Y){let Z=F.id,ee=Z.lastIndexOf("~");return ee!==-1&&(Z=Z.substring(0,ee)),Y&&(Z=`${Z}~${Y}`),{id:Z}}l.modify=N;function L(F){let Y=F.id.lastIndexOf("~");if(Y!==-1)return F.id.substring(Y+1)}l.getModifier=L;function B(F,Y){var Z,ee;return F.id===Y.id&&((Z=F.color)===null||Z===void 0?void 0:Z.id)===((ee=Y.color)===null||ee===void 0?void 0:ee.id)}l.isEqual=B})(sl||(sl={}))});var Mp,df,W0=ti(()=>{xc();QL();co();mB();Fh();bl();Mp=Ml("commandService"),df=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new wn,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(l,e){if(!l)throw new Error("invalid command");if(typeof l=="string"){if(!e)throw new Error("invalid command");return this.registerCommand({id:l,handler:e})}if(l.metadata&&Array.isArray(l.metadata.args)){let h=[];for(let w of l.metadata.args)h.push(w.constraint);let b=l.handler;l.handler=function(w,...N){return ngi(N,h),b(w,...N)}}let{id:r}=l,o=this._commands.get(r);o||(o=new QS,this._commands.set(r,o));let c=o.unshift(l),d=Ma(()=>{c();let h=this._commands.get(r);h?.isEmpty()&&this._commands.delete(r)});return this._onDidRegisterCommand.fire(r),d}registerCommandAlias(l,e){return df.registerCommand(l,(r,...o)=>r.get(Mp).executeCommand(e,...o))}getCommand(l){let e=this._commands.get(l);if(!(!e||e.isEmpty()))return S_.first(e)}getCommands(){let l=new Map;for(let e of this._commands.keys()){let r=this.getCommand(e);r&&l.set(e,r)}return l}};df.registerCommand("noop",()=>{})});function rZt(...l){switch(l.length){case 1:return ce("contextkey.scanner.hint.didYouMean1","Did you mean {0}?",l[0]);case 2:return ce("contextkey.scanner.hint.didYouMean2","Did you mean {0} or {1}?",l[0],l[1]);case 3:return ce("contextkey.scanner.hint.didYouMean3","Did you mean {0}, {1} or {2}?",l[0],l[1],l[2]);default:return}}var c5i,l5i,Rne,q0i=ti(()=>{Du();ya();c5i=ce("contextkey.scanner.hint.didYouForgetToOpenOrCloseQuote","Did you forget to open or close the quote?"),l5i=ce("contextkey.scanner.hint.didYouForgetToEscapeSlash","Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'."),Rne=class l{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:return">=";case 8:return">=";case 9:return"=~";case 10: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 17:return e.lexeme;case 18:return e.lexeme;case 19:return e.lexeme;case 20:return"EOF";default:throw $ze(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();)switch(this._start=this._current,this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){let r=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:r})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){let r=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:r})}else this._match(126)?this._addToken(9):this._error(rZt("==","=~"));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(rZt("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(rZt("||"));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?!1:(this._current++,!0)}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){let r=this._start,o=this._input.substring(this._start,this._current),c={type:19,offset:this._start,lexeme:o};this._errors.push({offset:r,lexeme:o,additionalInfo:e}),this._tokens.push(c)}_string(){this.stringRe.lastIndex=this._start;let e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;let r=this._input.substring(this._start,this._current),o=l._keywords.get(r);o?this._addToken(o):this._tokens.push({type:17,lexeme:r,offset:this._start})}}_quotedString(){for(;this._peek()!==39&&!this._isAtEnd();)this._advance();if(this._isAtEnd()){this._error(c5i);return}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,r=!1,o=!1;for(;;){if(e>=this._input.length){this._current=e,this._error(l5i);return}let d=this._input.charCodeAt(e);if(r)r=!1;else if(d===47&&!o){e++;break}else d===91?o=!0:d===92?r=!0:d===93&&(o=!1);e++}for(;e=this._input.length}};Rne._regexFlags=new Set(["i","g","s","m","y","u"].map(l=>l.charCodeAt(0)));Rne._keywords=new Map([["not",14],["in",13],["false",12],["true",11]])});function X0i(l,e){let r=l?l.substituteConstants():void 0,o=e?e.substituteConstants():void 0;return!r&&!o?!0:!r||!o?!1:r.equals(o)}function Aut(l,e){return l.cmp(e)}function kNt(l,e){if(typeof l=="string"){let r=parseFloat(l);isNaN(r)||(l=r)}return typeof l=="string"||typeof l=="number"?e(l):w6.INSTANCE}function Y0i(l){let e=null;for(let r=0,o=l.length;re?1:0}function e6e(l,e,r,o){return lr?1:eo?1:0}function CNt(l,e){if(l.type===0||e.type===1)return!0;if(l.type===9)return e.type===9?G0i(l.expr,e.expr):!1;if(e.type===9){for(let r of e.expr)if(CNt(l,r))return!0;return!1}if(l.type===6){if(e.type===6)return G0i(e.expr,l.expr);for(let r of l.expr)if(CNt(r,e))return!0;return!1}return l.equals(e)}function G0i(l,e){let r=0,o=0;for(;r{X_();Mu();q0i();bl();ya();k6=new Map;k6.set("false",!1);k6.set("true",!0);k6.set("isMac",md);k6.set("isLinux",kS);k6.set("isWindows",Bv);k6.set("isWeb",pB);k6.set("isMacNative",md&&!pB);k6.set("isEdge",ygi);k6.set("isFirefox",hgi);k6.set("isChrome",yYt);k6.set("isSafari",ggi);u5i=Object.prototype.hasOwnProperty,d5i={regexParsingWithErrorRecovery:!0},f5i=ce("contextkey.parser.error.emptyString","Empty context key expression"),_5i=ce("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."),p5i=ce("contextkey.parser.error.noInAfterNot","'in' after 'not'."),$0i=ce("contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),m5i=ce("contextkey.parser.error.unexpectedToken","Unexpected token"),h5i=ce("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),g5i=ce("contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),y5i=ce("contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?"),pNt=class l{constructor(e=d5i){this._config=e,this._scanner=new Rne,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(e===""){this._parsingErrors.push({message:f5i,offset:0,lexeme:"",additionalInfo:_5i});return}this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{let r=this._expr();if(!this._isAtEnd()){let o=this._peek(),c=o.type===17?h5i:void 0;throw this._parsingErrors.push({message:m5i,offset:o.offset,lexeme:Rne.getLexeme(o),additionalInfo:c}),l._parseError}return r}catch(r){if(r!==l._parseError)throw r;return}}_expr(){return this._or()}_or(){let e=[this._and()];for(;this._matchOne(16);){let r=this._and();e.push(r)}return e.length===1?e[0]:Ao.or(...e)}_and(){let e=[this._term()];for(;this._matchOne(15);){let r=this._term();e.push(r)}return e.length===1?e[0]:Ao.and(...e)}_term(){if(this._matchOne(2)){let e=this._peek();switch(e.type){case 11:return this._advance(),w6.INSTANCE;case 12:return this._advance(),i3.INSTANCE;case 0:{this._advance();let r=this._expr();return this._consume(1,$0i),r?.negate()}case 17:return this._advance(),Z4e.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){let e=this._peek();switch(e.type){case 11:return this._advance(),Ao.true();case 12:return this._advance(),Ao.false();case 0:{this._advance();let r=this._expr();return this._consume(1,$0i),r}case 17:{let r=e.lexeme;if(this._advance(),this._matchOne(9)){let c=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),c.type!==10)throw this._errExpectedButGot("REGEX",c);let d=c.lexeme,h=d.lastIndexOf("/"),b=h===d.length-1?void 0:this._removeFlagsGY(d.substring(h+1)),w;try{w=new RegExp(d.substring(1,h),b)}catch{throw this._errExpectedButGot("REGEX",c)}return Put.create(r,w)}switch(c.type){case 10:case 19:{let d=[c.lexeme];this._advance();let h=this._peek(),b=0;for(let F=0;F=0){let N=d.slice(b+1,w),L=d[w+1]==="i"?"i":"";try{h=new RegExp(N,L)}catch{throw this._errExpectedButGot("REGEX",c)}}}if(h===null)throw this._errExpectedButGot("REGEX",c);return Put.create(r,h)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,p5i);let c=this._value();return Ao.notIn(r,c)}switch(this._peek().type){case 3:{this._advance();let c=this._value();if(this._previous().type===18)return Ao.equals(r,c);switch(c){case"true":return Ao.has(r);case"false":return Ao.not(r);default:return Ao.equals(r,c)}}case 4:{this._advance();let c=this._value();if(this._previous().type===18)return Ao.notEquals(r,c);switch(c){case"true":return Ao.not(r);case"false":return Ao.has(r);default:return Ao.notEquals(r,c)}}case 5:return this._advance(),bNt.create(r,this._value());case 6:return this._advance(),SNt.create(r,this._value());case 7:return this._advance(),yNt.create(r,this._value());case 8:return this._advance(),vNt.create(r,this._value());case 13:return this._advance(),Ao.in(r,this._value());default:return Ao.has(r)}}case 20:throw this._parsingErrors.push({message:g5i,offset:e.offset,lexeme:"",additionalInfo:y5i}),l._parseError;default:throw this._errExpectedButGot(`true | false | KEY + | KEY '=~' REGEX + | KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value`,this._peek())}}_value(){let e=this._peek();switch(e.type){case 17:case 18:return this._advance(),e.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(e){return e.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(e){return this._check(e)?(this._advance(),!0):!1}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(e,r){if(this._check(e))return this._advance();throw this._errExpectedButGot(r,this._peek())}_errExpectedButGot(e,r,o){let c=ce("contextkey.parser.error.expectedButGot",`Expected: {0} +Received: '{1}'.`,e,Rne.getLexeme(r)),d=r.offset,h=Rne.getLexeme(r);return this._parsingErrors.push({message:c,offset:d,lexeme:h,additionalInfo:o}),l._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return this._peek().type===20}};pNt._parseError=new Error;Ao=class{static false(){return w6.INSTANCE}static true(){return i3.INSTANCE}static has(e){return Y4e.create(e)}static equals(e,r){return Q4e.create(e,r)}static notEquals(e,r){return gNt.create(e,r)}static regex(e,r){return Put.create(e,r)}static in(e,r){return mNt.create(e,r)}static notIn(e,r){return hNt.create(e,r)}static not(e){return Z4e.create(e)}static and(...e){return xNt.create(e,null,!0)}static or(...e){return Lut.create(e,null,!0)}static deserialize(e){return e==null?void 0:this._parser.parse(e)}};Ao._parser=new pNt({regexParsingWithErrorRecovery:!1});w6=class{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 i3.INSTANCE}};w6.INSTANCE=new w6;i3=class{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 w6.INSTANCE}};i3.INSTANCE=new i3;Y4e=class l{static create(e,r=null){let o=k6.get(e);return typeof o=="boolean"?o?i3.INSTANCE:w6.INSTANCE:new l(e,r)}constructor(e,r){this.key=e,this.negated=r,this.type=2}cmp(e){return e.type!==this.type?this.type-e.type:Q0i(this.key,e.key)}equals(e){return e.type===this.type?this.key===e.key:!1}substituteConstants(){let e=k6.get(this.key);return typeof e=="boolean"?e?i3.INSTANCE:w6.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=Z4e.create(this.key,this)),this.negated}},Q4e=class l{static create(e,r,o=null){if(typeof r=="boolean")return r?Y4e.create(e,o):Z4e.create(e,o);let c=k6.get(e);return typeof c=="boolean"?r===(c?"true":"false")?i3.INSTANCE:w6.INSTANCE:new l(e,r,o)}constructor(e,r,o){this.key=e,this.value=r,this.negated=o,this.type=4}cmp(e){return e.type!==this.type?this.type-e.type:e6e(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){let e=k6.get(this.key);if(typeof e=="boolean"){let r=e?"true":"false";return this.value===r?i3.INSTANCE:w6.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=gNt.create(this.key,this.value,this)),this.negated}},mNt=class l{static create(e,r){return new l(e,r)}constructor(e,r){this.key=e,this.valueKey=r,this.type=10,this.negated=null}cmp(e){return e.type!==this.type?this.type-e.type:e6e(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type?this.key===e.key&&this.valueKey===e.valueKey:!1}substituteConstants(){return this}evaluate(e){let r=e.getValue(this.valueKey),o=e.getValue(this.key);return Array.isArray(r)?r.includes(o):typeof o=="string"&&typeof r=="object"&&r!==null?u5i.call(r,o):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=hNt.create(this.key,this.valueKey)),this.negated}},hNt=class l{static create(e,r){return new l(e,r)}constructor(e,r){this.key=e,this.valueKey=r,this.type=11,this._negated=mNt.create(e,r)}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):!1}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}},gNt=class l{static create(e,r,o=null){if(typeof r=="boolean")return r?Z4e.create(e,o):Y4e.create(e,o);let c=k6.get(e);return typeof c=="boolean"?r===(c?"true":"false")?w6.INSTANCE:i3.INSTANCE:new l(e,r,o)}constructor(e,r,o){this.key=e,this.value=r,this.negated=o,this.type=5}cmp(e){return e.type!==this.type?this.type-e.type:e6e(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){let e=k6.get(this.key);if(typeof e=="boolean"){let r=e?"true":"false";return this.value===r?w6.INSTANCE:i3.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=Q4e.create(this.key,this.value,this)),this.negated}},Z4e=class l{static create(e,r=null){let o=k6.get(e);return typeof o=="boolean"?o?w6.INSTANCE:i3.INSTANCE:new l(e,r)}constructor(e,r){this.key=e,this.negated=r,this.type=3}cmp(e){return e.type!==this.type?this.type-e.type:Q0i(this.key,e.key)}equals(e){return e.type===this.type?this.key===e.key:!1}substituteConstants(){let e=k6.get(this.key);return typeof e=="boolean"?e?w6.INSTANCE:i3.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Y4e.create(this.key,this)),this.negated}};yNt=class l{static create(e,r,o=null){return kNt(r,c=>new l(e,c,o))}constructor(e,r,o){this.key=e,this.value=r,this.negated=o,this.type=12}cmp(e){return e.type!==this.type?this.type-e.type:e6e(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=SNt.create(this.key,this.value,this)),this.negated}},vNt=class l{static create(e,r,o=null){return kNt(r,c=>new l(e,c,o))}constructor(e,r,o){this.key=e,this.value=r,this.negated=o,this.type=13}cmp(e){return e.type!==this.type?this.type-e.type:e6e(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=bNt.create(this.key,this.value,this)),this.negated}},bNt=class l{static create(e,r,o=null){return kNt(r,c=>new l(e,c,o))}constructor(e,r,o){this.key=e,this.value=r,this.negated=o,this.type=14}cmp(e){return e.type!==this.type?this.type-e.type:e6e(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))new l(e,c,o))}constructor(e,r,o){this.key=e,this.value=r,this.negated=o,this.type=15}cmp(e){return e.type!==this.type?this.type-e.type:e6e(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=yNt.create(this.key,this.value,this)),this.negated}},Put=class l{static create(e,r){return new l(e,r)}constructor(e,r){this.key=e,this.regexp=r,this.type=7,this.negated=null}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.keye.key)return 1;let r=this.regexp?this.regexp.source:"",o=e.regexp?e.regexp.source:"";return ro?1:0}equals(e){if(e.type===this.type){let r=this.regexp?this.regexp.source:"",o=e.regexp?e.regexp.source:"";return this.key===e.key&&r===o}return!1}substituteConstants(){return this}evaluate(e){let r=e.getValue(this.key);return this.regexp?this.regexp.test(r):!1}serialize(){let e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=oZt.create(this)),this.negated}},oZt=class l{static create(e){return new l(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):!1}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}negate(){return this._actual}};xNt=class l{static create(e,r,o){return l._normalizeArr(e,r,o)}constructor(e,r){this.expr=e,this.negated=r,this.type=6}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.lengthe.expr.length)return 1;for(let r=0,o=this.expr.length;r1;){let h=c[c.length-1];if(h.type!==9)break;c.pop();let b=c.pop(),w=c.length===0,N=Lut.create(h.expr.map(L=>l.create([L,b],null,o)),null,w);N&&(c.push(N),c.sort(Aut))}if(c.length===1)return c[0];if(o){for(let h=0;he.serialize()).join(" && ")}keys(){let e=[];for(let r of this.expr)e.push(...r.keys());return e}negate(){if(!this.negated){let e=[];for(let r of this.expr)e.push(r.negate());this.negated=Lut.create(e,this,!0)}return this.negated}},Lut=class l{static create(e,r,o){return l._normalizeArr(e,r,o)}constructor(e,r){this.expr=e,this.negated=r,this.type=9}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.lengthe.expr.length)return 1;for(let r=0,o=this.expr.length;re.serialize()).join(" || ")}keys(){let e=[];for(let r of this.expr)e.push(...r.keys());return e}negate(){if(!this.negated){let e=[];for(let r of this.expr)e.push(r.negate());for(;e.length>1;){let r=e.shift(),o=e.shift(),c=[];for(let d of K0i(r))for(let h of K0i(o))c.push(xNt.create([d,h],null,!1));e.unshift(l.create(c,null,!1))}this.negated=l.create(e,this,!0)}return this.negated}},va=class l extends Y4e{static all(){return l._info.values()}constructor(e,r,o){super(e,null),this._defaultValue=r,typeof o=="object"?l._info.push({...o,key:e}):o!==!0&&l._info.push({key:e,description:o,type:r!=null?typeof r: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 Q4e.create(this.key,e)}};va._info=[];Ec=Ml("contextKeyService")});function wNt(l,e){if(!l)throw new Error(e?`Assertion failed (${e})`:"Assertion Failed")}function iSe(l,e="Unreachable"){throw new Error(e)}function sZt(l){l||dl(new Hp("Soft Assertion Failed"))}function Bq(l){if(!l()){debugger;l(),dl(new Hp("Assertion Failed"))}}function yVe(l,e){let r=0;for(;r{Du()});var aZt,pm,DT=ti(()=>{jq();Fh();aZt=class{constructor(){this.data=new Map}add(e,r){wNt(Fw(e)),wNt(wT(r)),wNt(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,r)}as(e){return this.data.get(e)||null}},pm=new aZt});function S5i(l,e){if(l.weight1!==e.weight1)return l.weight1-e.weight1;if(l.command&&e.command){if(l.commande.command)return 1}return l.weight2-e.weight2}var cZt,g2,b5i,ffe=ti(()=>{U4e();X_();W0();DT();co();mB();cZt=class l{constructor(){this._coreKeybindings=new QS,this._extensionKeybindings=[],this._cachedMergedKeybindings=null}static bindToCurrentPlatform(e){if(gE===1){if(e&&e.win)return e.win}else if(gE===2){if(e&&e.mac)return e.mac}else if(e&&e.linux)return e.linux;return e}registerKeybindingRule(e){let r=l.bindToCurrentPlatform(e),o=new Fr;if(r&&r.primary){let c=mut(r.primary,gE);c&&o.add(this._registerDefaultKeybinding(c,e.id,e.args,e.weight,0,e.when))}if(r&&Array.isArray(r.secondary))for(let c=0,d=r.secondary.length;c{b(),this._cachedMergedKeybindings=null})}getDefaultKeybindings(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=Array.from(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(S5i)),this._cachedMergedKeybindings.slice(0)}},g2=new cZt,b5i={EditorModes:"platform.keybindingsRegistry"};pm.add(b5i.EditorModes,g2)});function rSe(l){return l.command!==void 0}function eyi(l){return l.submenu!==void 0}function Vg(l){let e=[],r=new l,{f1:o,menu:c,keybinding:d,...h}=r.desc;if(df.getCommand(h.id))throw new Error(`Cannot register two commands with the same id: ${h.id}`);if(e.push(df.registerCommand({id:h.id,handler:(b,...w)=>r.run(b,...w),metadata:h.metadata})),Array.isArray(c))for(let b of c)e.push(Bx.appendMenuItem(b.id,{command:{...h,precondition:b.precondition===null?void 0:h.precondition},...b}));else c&&e.push(Bx.appendMenuItem(c.id,{command:{...h,precondition:c.precondition===null?void 0:h.precondition},...c}));if(o&&(e.push(Bx.appendMenuItem(Mi.CommandPalette,{command:h,when:h.precondition})),e.push(Bx.addCommand(h))),Array.isArray(d))for(let b of d)e.push(g2.registerKeybindingRule({...b,id:h.id,when:h.precondition?Ao.and(h.precondition,b.when):b.when}));else d&&e.push(g2.registerKeybindingRule({...d,id:h.id,when:h.precondition?Ao.and(h.precondition,d.when):d.when}));return{dispose(){Fp(e)}}}var x5i,Z0i,ENt,Mi,CE,nSe,Bx,Wq,jI,IT,My=ti(()=>{xE();bv();xc();co();mB();W0();hd();bl();ffe();x5i=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},Z0i=function(l,e){return function(r,o){e(r,o,l)}};Mi=class l{constructor(e){if(l._instances.has(e))throw new TypeError(`MenuId with identifier '${e}' already exists. Use MenuId.for(ident) or a unique identifier`);l._instances.set(e,this),this.id=e}};Mi._instances=new Map;Mi.CommandPalette=new Mi("CommandPalette");Mi.DebugBreakpointsContext=new Mi("DebugBreakpointsContext");Mi.DebugCallStackContext=new Mi("DebugCallStackContext");Mi.DebugConsoleContext=new Mi("DebugConsoleContext");Mi.DebugVariablesContext=new Mi("DebugVariablesContext");Mi.NotebookVariablesContext=new Mi("NotebookVariablesContext");Mi.DebugHoverContext=new Mi("DebugHoverContext");Mi.DebugWatchContext=new Mi("DebugWatchContext");Mi.DebugToolBar=new Mi("DebugToolBar");Mi.DebugToolBarStop=new Mi("DebugToolBarStop");Mi.EditorContext=new Mi("EditorContext");Mi.SimpleEditorContext=new Mi("SimpleEditorContext");Mi.EditorContent=new Mi("EditorContent");Mi.EditorLineNumberContext=new Mi("EditorLineNumberContext");Mi.EditorContextCopy=new Mi("EditorContextCopy");Mi.EditorContextPeek=new Mi("EditorContextPeek");Mi.EditorContextShare=new Mi("EditorContextShare");Mi.EditorTitle=new Mi("EditorTitle");Mi.EditorTitleRun=new Mi("EditorTitleRun");Mi.EditorTitleContext=new Mi("EditorTitleContext");Mi.EditorTitleContextShare=new Mi("EditorTitleContextShare");Mi.EmptyEditorGroup=new Mi("EmptyEditorGroup");Mi.EmptyEditorGroupContext=new Mi("EmptyEditorGroupContext");Mi.EditorTabsBarContext=new Mi("EditorTabsBarContext");Mi.EditorTabsBarShowTabsSubmenu=new Mi("EditorTabsBarShowTabsSubmenu");Mi.EditorTabsBarShowTabsZenModeSubmenu=new Mi("EditorTabsBarShowTabsZenModeSubmenu");Mi.EditorActionsPositionSubmenu=new Mi("EditorActionsPositionSubmenu");Mi.ExplorerContext=new Mi("ExplorerContext");Mi.ExplorerContextShare=new Mi("ExplorerContextShare");Mi.ExtensionContext=new Mi("ExtensionContext");Mi.GlobalActivity=new Mi("GlobalActivity");Mi.CommandCenter=new Mi("CommandCenter");Mi.CommandCenterCenter=new Mi("CommandCenterCenter");Mi.LayoutControlMenuSubmenu=new Mi("LayoutControlMenuSubmenu");Mi.LayoutControlMenu=new Mi("LayoutControlMenu");Mi.MenubarMainMenu=new Mi("MenubarMainMenu");Mi.MenubarAppearanceMenu=new Mi("MenubarAppearanceMenu");Mi.MenubarDebugMenu=new Mi("MenubarDebugMenu");Mi.MenubarEditMenu=new Mi("MenubarEditMenu");Mi.MenubarCopy=new Mi("MenubarCopy");Mi.MenubarFileMenu=new Mi("MenubarFileMenu");Mi.MenubarGoMenu=new Mi("MenubarGoMenu");Mi.MenubarHelpMenu=new Mi("MenubarHelpMenu");Mi.MenubarLayoutMenu=new Mi("MenubarLayoutMenu");Mi.MenubarNewBreakpointMenu=new Mi("MenubarNewBreakpointMenu");Mi.PanelAlignmentMenu=new Mi("PanelAlignmentMenu");Mi.PanelPositionMenu=new Mi("PanelPositionMenu");Mi.ActivityBarPositionMenu=new Mi("ActivityBarPositionMenu");Mi.MenubarPreferencesMenu=new Mi("MenubarPreferencesMenu");Mi.MenubarRecentMenu=new Mi("MenubarRecentMenu");Mi.MenubarSelectionMenu=new Mi("MenubarSelectionMenu");Mi.MenubarShare=new Mi("MenubarShare");Mi.MenubarSwitchEditorMenu=new Mi("MenubarSwitchEditorMenu");Mi.MenubarSwitchGroupMenu=new Mi("MenubarSwitchGroupMenu");Mi.MenubarTerminalMenu=new Mi("MenubarTerminalMenu");Mi.MenubarViewMenu=new Mi("MenubarViewMenu");Mi.MenubarHomeMenu=new Mi("MenubarHomeMenu");Mi.OpenEditorsContext=new Mi("OpenEditorsContext");Mi.OpenEditorsContextShare=new Mi("OpenEditorsContextShare");Mi.ProblemsPanelContext=new Mi("ProblemsPanelContext");Mi.SCMInputBox=new Mi("SCMInputBox");Mi.SCMChangesSeparator=new Mi("SCMChangesSeparator");Mi.SCMIncomingChanges=new Mi("SCMIncomingChanges");Mi.SCMIncomingChangesContext=new Mi("SCMIncomingChangesContext");Mi.SCMIncomingChangesSetting=new Mi("SCMIncomingChangesSetting");Mi.SCMOutgoingChanges=new Mi("SCMOutgoingChanges");Mi.SCMOutgoingChangesContext=new Mi("SCMOutgoingChangesContext");Mi.SCMOutgoingChangesSetting=new Mi("SCMOutgoingChangesSetting");Mi.SCMIncomingChangesAllChangesContext=new Mi("SCMIncomingChangesAllChangesContext");Mi.SCMIncomingChangesHistoryItemContext=new Mi("SCMIncomingChangesHistoryItemContext");Mi.SCMOutgoingChangesAllChangesContext=new Mi("SCMOutgoingChangesAllChangesContext");Mi.SCMOutgoingChangesHistoryItemContext=new Mi("SCMOutgoingChangesHistoryItemContext");Mi.SCMChangeContext=new Mi("SCMChangeContext");Mi.SCMResourceContext=new Mi("SCMResourceContext");Mi.SCMResourceContextShare=new Mi("SCMResourceContextShare");Mi.SCMResourceFolderContext=new Mi("SCMResourceFolderContext");Mi.SCMResourceGroupContext=new Mi("SCMResourceGroupContext");Mi.SCMSourceControl=new Mi("SCMSourceControl");Mi.SCMSourceControlInline=new Mi("SCMSourceControlInline");Mi.SCMSourceControlTitle=new Mi("SCMSourceControlTitle");Mi.SCMTitle=new Mi("SCMTitle");Mi.SearchContext=new Mi("SearchContext");Mi.SearchActionMenu=new Mi("SearchActionContext");Mi.StatusBarWindowIndicatorMenu=new Mi("StatusBarWindowIndicatorMenu");Mi.StatusBarRemoteIndicatorMenu=new Mi("StatusBarRemoteIndicatorMenu");Mi.StickyScrollContext=new Mi("StickyScrollContext");Mi.TestItem=new Mi("TestItem");Mi.TestItemGutter=new Mi("TestItemGutter");Mi.TestMessageContext=new Mi("TestMessageContext");Mi.TestMessageContent=new Mi("TestMessageContent");Mi.TestPeekElement=new Mi("TestPeekElement");Mi.TestPeekTitle=new Mi("TestPeekTitle");Mi.TouchBarContext=new Mi("TouchBarContext");Mi.TitleBarContext=new Mi("TitleBarContext");Mi.TitleBarTitleContext=new Mi("TitleBarTitleContext");Mi.TunnelContext=new Mi("TunnelContext");Mi.TunnelPrivacy=new Mi("TunnelPrivacy");Mi.TunnelProtocol=new Mi("TunnelProtocol");Mi.TunnelPortInline=new Mi("TunnelInline");Mi.TunnelTitle=new Mi("TunnelTitle");Mi.TunnelLocalAddressInline=new Mi("TunnelLocalAddressInline");Mi.TunnelOriginInline=new Mi("TunnelOriginInline");Mi.ViewItemContext=new Mi("ViewItemContext");Mi.ViewContainerTitle=new Mi("ViewContainerTitle");Mi.ViewContainerTitleContext=new Mi("ViewContainerTitleContext");Mi.ViewTitle=new Mi("ViewTitle");Mi.ViewTitleContext=new Mi("ViewTitleContext");Mi.CommentEditorActions=new Mi("CommentEditorActions");Mi.CommentThreadTitle=new Mi("CommentThreadTitle");Mi.CommentThreadActions=new Mi("CommentThreadActions");Mi.CommentThreadAdditionalActions=new Mi("CommentThreadAdditionalActions");Mi.CommentThreadTitleContext=new Mi("CommentThreadTitleContext");Mi.CommentThreadCommentContext=new Mi("CommentThreadCommentContext");Mi.CommentTitle=new Mi("CommentTitle");Mi.CommentActions=new Mi("CommentActions");Mi.CommentsViewThreadActions=new Mi("CommentsViewThreadActions");Mi.InteractiveToolbar=new Mi("InteractiveToolbar");Mi.InteractiveCellTitle=new Mi("InteractiveCellTitle");Mi.InteractiveCellDelete=new Mi("InteractiveCellDelete");Mi.InteractiveCellExecute=new Mi("InteractiveCellExecute");Mi.InteractiveInputExecute=new Mi("InteractiveInputExecute");Mi.IssueReporter=new Mi("IssueReporter");Mi.NotebookToolbar=new Mi("NotebookToolbar");Mi.NotebookStickyScrollContext=new Mi("NotebookStickyScrollContext");Mi.NotebookCellTitle=new Mi("NotebookCellTitle");Mi.NotebookCellDelete=new Mi("NotebookCellDelete");Mi.NotebookCellInsert=new Mi("NotebookCellInsert");Mi.NotebookCellBetween=new Mi("NotebookCellBetween");Mi.NotebookCellListTop=new Mi("NotebookCellTop");Mi.NotebookCellExecute=new Mi("NotebookCellExecute");Mi.NotebookCellExecuteGoTo=new Mi("NotebookCellExecuteGoTo");Mi.NotebookCellExecutePrimary=new Mi("NotebookCellExecutePrimary");Mi.NotebookDiffCellInputTitle=new Mi("NotebookDiffCellInputTitle");Mi.NotebookDiffCellMetadataTitle=new Mi("NotebookDiffCellMetadataTitle");Mi.NotebookDiffCellOutputsTitle=new Mi("NotebookDiffCellOutputsTitle");Mi.NotebookOutputToolbar=new Mi("NotebookOutputToolbar");Mi.NotebookOutlineFilter=new Mi("NotebookOutlineFilter");Mi.NotebookOutlineActionMenu=new Mi("NotebookOutlineActionMenu");Mi.NotebookEditorLayoutConfigure=new Mi("NotebookEditorLayoutConfigure");Mi.NotebookKernelSource=new Mi("NotebookKernelSource");Mi.BulkEditTitle=new Mi("BulkEditTitle");Mi.BulkEditContext=new Mi("BulkEditContext");Mi.TimelineItemContext=new Mi("TimelineItemContext");Mi.TimelineTitle=new Mi("TimelineTitle");Mi.TimelineTitleContext=new Mi("TimelineTitleContext");Mi.TimelineFilterSubMenu=new Mi("TimelineFilterSubMenu");Mi.AccountsContext=new Mi("AccountsContext");Mi.SidebarTitle=new Mi("SidebarTitle");Mi.PanelTitle=new Mi("PanelTitle");Mi.AuxiliaryBarTitle=new Mi("AuxiliaryBarTitle");Mi.AuxiliaryBarHeader=new Mi("AuxiliaryBarHeader");Mi.TerminalInstanceContext=new Mi("TerminalInstanceContext");Mi.TerminalEditorInstanceContext=new Mi("TerminalEditorInstanceContext");Mi.TerminalNewDropdownContext=new Mi("TerminalNewDropdownContext");Mi.TerminalTabContext=new Mi("TerminalTabContext");Mi.TerminalTabEmptyAreaContext=new Mi("TerminalTabEmptyAreaContext");Mi.TerminalStickyScrollContext=new Mi("TerminalStickyScrollContext");Mi.WebviewContext=new Mi("WebviewContext");Mi.InlineCompletionsActions=new Mi("InlineCompletionsActions");Mi.InlineEditActions=new Mi("InlineEditActions");Mi.NewFile=new Mi("NewFile");Mi.MergeInput1Toolbar=new Mi("MergeToolbar1Toolbar");Mi.MergeInput2Toolbar=new Mi("MergeToolbar2Toolbar");Mi.MergeBaseToolbar=new Mi("MergeBaseToolbar");Mi.MergeInputResultToolbar=new Mi("MergeToolbarResultToolbar");Mi.InlineSuggestionToolbar=new Mi("InlineSuggestionToolbar");Mi.InlineEditToolbar=new Mi("InlineEditToolbar");Mi.ChatContext=new Mi("ChatContext");Mi.ChatCodeBlock=new Mi("ChatCodeblock");Mi.ChatCompareBlock=new Mi("ChatCompareBlock");Mi.ChatMessageTitle=new Mi("ChatMessageTitle");Mi.ChatExecute=new Mi("ChatExecute");Mi.ChatExecuteSecondary=new Mi("ChatExecuteSecondary");Mi.ChatInputSide=new Mi("ChatInputSide");Mi.AccessibleView=new Mi("AccessibleView");Mi.MultiDiffEditorFileToolbar=new Mi("MultiDiffEditorFileToolbar");Mi.DiffEditorHunkToolbar=new Mi("DiffEditorHunkToolbar");Mi.DiffEditorSelectionToolbar=new Mi("DiffEditorSelectionToolbar");CE=Ml("menuService"),nSe=class l{static for(e){let r=this._all.get(e);return r||(r=new l(e),this._all.set(e,r)),r}static merge(e){let r=new Set;for(let o of e)o instanceof l&&r.add(o.id);return r}constructor(e){this.id=e,this.has=r=>r===e}};nSe._all=new Map;Bx=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new gDt({merge:nSe.merge}),this.onDidChangeMenu=this._onDidChangeMenu.event}addCommand(l){return this._commands.set(l.id,l),this._onDidChangeMenu.fire(nSe.for(Mi.CommandPalette)),Ma(()=>{this._commands.delete(l.id)&&this._onDidChangeMenu.fire(nSe.for(Mi.CommandPalette))})}getCommand(l){return this._commands.get(l)}getCommands(){let l=new Map;return this._commands.forEach((e,r)=>l.set(r,e)),l}appendMenuItem(l,e){let r=this._menuItems.get(l);r||(r=new QS,this._menuItems.set(l,r));let o=r.push(e);return this._onDidChangeMenu.fire(nSe.for(l)),Ma(()=>{o(),this._onDidChangeMenu.fire(nSe.for(l))})}appendMenuItems(l){let e=new Fr;for(let{id:r,item:o}of l)e.add(this.appendMenuItem(r,o));return e}getMenuItems(l){let e;return this._menuItems.has(l)?e=[...this._menuItems.get(l)]:e=[],l===Mi.CommandPalette&&this._appendImplicitItems(e),e}_appendImplicitItems(l){let e=new Set;for(let r of l)rSe(r)&&(e.add(r.command.id),r.alt&&e.add(r.alt.id));this._commands.forEach((r,o)=>{e.has(o)||l.push({command:r})})}},Wq=class extends yV{constructor(e,r,o){super(`submenuitem.${e.submenu.id}`,typeof e.title=="string"?e.title:e.title.value,o,"submenu"),this.item=e,this.hideActions=r}},jI=ENt=class{static label(e,r){return r?.renderShortTitle&&e.shortTitle?typeof e.shortTitle=="string"?e.shortTitle:e.shortTitle.value:typeof e.title=="string"?e.title:e.title.value}constructor(e,r,o,c,d,h,b){var w,N;this.hideActions=c,this.menuKeybinding=d,this._commandService=b,this.id=e.id,this.label=ENt.label(e,o),this.tooltip=(N=typeof e.tooltip=="string"?e.tooltip:(w=e.tooltip)===null||w===void 0?void 0:w.value)!==null&&N!==void 0?N:"",this.enabled=!e.precondition||h.contextMatchesRules(e.precondition),this.checked=void 0;let L;if(e.toggled){let B=e.toggled.condition?e.toggled:{condition:e.toggled};this.checked=h.contextMatchesRules(B.condition),this.checked&&B.tooltip&&(this.tooltip=typeof B.tooltip=="string"?B.tooltip:B.tooltip.value),this.checked&&sl.isThemeIcon(B.icon)&&(L=B.icon),this.checked&&B.title&&(this.label=typeof B.title=="string"?B.title:B.title.value)}L||(L=sl.isThemeIcon(e.icon)?e.icon:void 0),this.item=e,this.alt=r?new ENt(r,void 0,o,c,void 0,h,b):void 0,this._options=o,this.class=L&&sl.asClassName(L)}run(...e){var r,o;let c=[];return!((r=this._options)===null||r===void 0)&&r.arg&&(c=[...c,this._options.arg]),!((o=this._options)===null||o===void 0)&&o.shouldForwardArgs&&(c=[...c,...e]),this._commandService.executeCommand(this.id,...c)}};jI=ENt=x5i([Z0i(5,Ec),Z0i(6,Mp)],jI);IT=class{constructor(e){this.desc=e}}});var zv,n3=ti(()=>{bl();zv=Ml("telemetryService")});function C5i(l){switch(l){case fA.Trace:return"trace";case fA.Debug:return"debug";case fA.Info:return"info";case fA.Warning:return"warn";case fA.Error:return"error";case fA.Off:return"off"}}var jb,fA,tyi,DNt,INt,NNt,Jsn,UO=ti(()=>{xc();co();hd();bl();jb=Ml("logService");(function(l){l[l.Off=0]="Off",l[l.Trace=1]="Trace",l[l.Debug=2]="Debug",l[l.Info=3]="Info",l[l.Warning=4]="Warning",l[l.Error=5]="Error"})(fA||(fA={}));tyi=fA.Info,DNt=class extends tn{constructor(){super(...arguments),this.level=tyi,this._onDidChangeLogLevel=this._register(new wn),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!==fA.Off&&this.level<=e}},INt=class extends DNt{constructor(e=tyi,r=!0){super(),this.useColors=r,this.setLevel(e)}trace(e,...r){this.checkLogLevel(fA.Trace)&&(this.useColors?console.log("%cTRACE","color: #888",e,...r):console.log(e,...r))}debug(e,...r){this.checkLogLevel(fA.Debug)&&(this.useColors?console.log("%cDEBUG","background: #eee; color: #888",e,...r):console.log(e,...r))}info(e,...r){this.checkLogLevel(fA.Info)&&(this.useColors?console.log("%c INFO","color: #33f",e,...r):console.log(e,...r))}warn(e,...r){this.checkLogLevel(fA.Warning)&&(this.useColors?console.log("%c WARN","color: #993",e,...r):console.log(e,...r))}error(e,...r){this.checkLogLevel(fA.Error)&&(this.useColors?console.log("%c ERR","color: #f33",e,...r):console.error(e,...r))}},NNt=class extends DNt{constructor(e){super(),this.loggers=e,e.length&&this.setLevel(e[0].getLevel())}setLevel(e){for(let r of this.loggers)r.setLevel(e);super.setLevel(e)}trace(e,...r){for(let o of this.loggers)o.trace(e,...r)}debug(e,...r){for(let o of this.loggers)o.debug(e,...r)}info(e,...r){for(let o of this.loggers)o.info(e,...r)}warn(e,...r){for(let o of this.loggers)o.warn(e,...r)}error(e,...r){for(let o of this.loggers)o.error(e,...r)}dispose(){for(let e of this.loggers)e.dispose();super.dispose()}};Jsn=new va("logLevel",C5i(fA.Info))});function NR(l,e){df.registerCommand(l,function(r,...o){let c=r.get(Pa),[d,h]=o;P_(qc.isUri(d)),P_(qn.isIPosition(h));let b=r.get(Mh).getModel(d);if(b){let w=qn.lift(h);return c.invokeFunction(e,b,w,...o.slice(2))}return r.get(ak).createModelReference(d).then(w=>new Promise((N,L)=>{try{let B=c.invokeFunction(e,w.object.textEditorModel,qn.lift(h),o.slice(2));N(B)}catch(B){L(B)}}).finally(()=>{w.dispose()}))})}function Ra(l){return IR.INSTANCE.registerEditorCommand(l),l}function Qo(l){let e=new l;return IR.INSTANCE.registerEditorAction(e),e}function lZt(l){return IR.INSTANCE.registerEditorAction(l),l}function iyi(l){IR.INSTANCE.registerEditorAction(l)}function ku(l,e,r){IR.INSTANCE.registerEditorContribution(l,e,r)}function Fut(l){return l.register(),l}var t6e,_fe,ANt,Xy,Ca,Out,JO,oSe,k5i,IR,uZt,dZt,nyi,vf=ti(()=>{ya();s0();IC();Iu();C6();CB();My();W0();hd();bl();ffe();DT();n3();Fh();UO();nc();t6e=class{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){let e=Array.isArray(this._kbOpts)?this._kbOpts:[this._kbOpts];for(let r of e){let o=r.kbExpr;this.precondition&&(o?o=Ao.and(o,this.precondition):o=this.precondition);let c={id:this.id,weight:r.weight,args:r.args,when:o,primary:r.primary,secondary:r.secondary,win:r.win,linux:r.linux,mac:r.mac};g2.registerKeybindingRule(c)}}df.registerCommand({id:this.id,handler:(e,r)=>this.runCommand(e,r),metadata:this.metadata})}_registerMenuItem(e){Bx.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})}},_fe=class extends t6e{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,r,o,c){return this._implementations.push({priority:e,name:r,implementation:o,when:c}),this._implementations.sort((d,h)=>h.priority-d.priority),{dispose:()=>{for(let d=0;d{if(b.get(Ec).contextMatchesRules(o??void 0))return c(b,h,r)})}runCommand(e,r){return l.runEditorCommand(e,r,this.precondition,(o,c,d)=>this.runEditorCommand(o,c,d))}},Ca=class l extends Xy{static convertOptions(e){let r;Array.isArray(e.menuOpts)?r=e.menuOpts:e.menuOpts?r=[e.menuOpts]:r=[];function o(c){return c.menuId||(c.menuId=Mi.EditorContext),c.title||(c.title=e.label),c.when=Ao.and(e.precondition,c.when),c}return Array.isArray(e.contextMenuOpts)?r.push(...e.contextMenuOpts.map(o)):e.contextMenuOpts&&r.push(o(e.contextMenuOpts)),e.menuOpts=r,e}constructor(e){super(l.convertOptions(e)),this.label=e.label,this.alias=e.alias}runEditorCommand(e,r,o){return this.reportTelemetry(e,r),this.run(e,r,o||{})}reportTelemetry(e,r){e.get(zv).publicLog2("editorActionInvoked",{name:this.label,id:this.id})}},Out=class extends Ca{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,r){return this._implementations.push([e,r]),this._implementations.sort((o,c)=>c[0]-o[0]),{dispose:()=>{for(let o=0;o{var h,b;let w=d.get(Ec),N=d.get(jb);if(!w.contextMatchesRules((h=this.desc.precondition)!==null&&h!==void 0?h:void 0)){N.debug("[EditorAction2] NOT running command because its precondition is FALSE",this.desc.id,(b=this.desc.precondition)===null||b===void 0?void 0:b.serialize());return}return this.runEditorCommand(d,c,...r)})}};(function(l){function e(h){return IR.INSTANCE.getEditorCommand(h)}l.getEditorCommand=e;function r(){return IR.INSTANCE.getEditorActions()}l.getEditorActions=r;function o(){return IR.INSTANCE.getEditorContributions()}l.getEditorContributions=o;function c(h){return IR.INSTANCE.getEditorContributions().filter(b=>h.indexOf(b.id)>=0)}l.getSomeEditorContributions=c;function d(){return IR.INSTANCE.getDiffEditorContributions()}l.getDiffEditorContributions=d})(oSe||(oSe={}));k5i={EditorCommonContributions:"editor.contributions"},IR=class{constructor(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}registerEditorContribution(e,r,o){this.editorContributions.push({id:e,ctor:r,instantiation:o})}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}};IR.INSTANCE=new IR;pm.add(k5i.EditorCommonContributions,IR.INSTANCE);uZt=Fut(new _fe({id:"undo",precondition:void 0,kbOpts:{weight:0,primary:2104},menuOpts:[{menuId:Mi.MenubarEditMenu,group:"1_do",title:ce({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1},{menuId:Mi.CommandPalette,group:"",title:ce("undo","Undo"),order:1}]}));Fut(new ANt(uZt,{id:"default:undo",precondition:void 0}));dZt=Fut(new _fe({id:"redo",precondition:void 0,kbOpts:{weight:0,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:[{menuId:Mi.MenubarEditMenu,group:"1_do",title:ce({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2},{menuId:Mi.CommandPalette,group:"",title:ce("redo","Redo"),order:1}]}));Fut(new ANt(dZt,{id:"default:redo",precondition:void 0}));nyi=Fut(new _fe({id:"editor.action.selectAll",precondition:void 0,kbOpts:{weight:0,kbExpr:null,primary:2079},menuOpts:[{menuId:Mi.MenubarSelectionMenu,group:"1_basic",title:ce({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1},{menuId:Mi.CommandPalette,group:"",title:ce("selectAll","Select All"),order:1}]}))});function Mut(l){pB&&(ryi||(ryi=!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(l.message))}function oyi(l){return l[0]==="o"&&l[1]==="n"&&dV(l.charCodeAt(2))}function syi(l){return/^onDynamic/.test(l)&&dV(l.charCodeAt(9))}function T5i(l,e,r){let o=h=>function(){let b=Array.prototype.slice.call(arguments,0);return e(h,b)},c=h=>function(b){return r(h,b)},d={};for(let h of l){if(syi(h)){d[h]=c(h);continue}if(oyi(h)){d[h]=r(h,void 0);continue}d[h]=o(h)}return d}var w5i,ryi,fZt,PNt,_Zt,pZt,mZt,hZt,LNt,gZt=ti(()=>{Du();xc();co();YL();X_();Mu();w5i="$initialize",ryi=!1;fZt=class{constructor(e,r,o,c){this.vsWorker=e,this.req=r,this.method=o,this.args=c,this.type=0}},PNt=class{constructor(e,r,o,c){this.vsWorker=e,this.seq=r,this.res=o,this.err=c,this.type=1}},_Zt=class{constructor(e,r,o,c){this.vsWorker=e,this.req=r,this.eventName=o,this.arg=c,this.type=2}},pZt=class{constructor(e,r,o){this.vsWorker=e,this.req=r,this.event=o,this.type=3}},mZt=class{constructor(e,r){this.vsWorker=e,this.req=r,this.type=4}},hZt=class{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,r){let o=String(++this._lastSentReq);return new Promise((c,d)=>{this._pendingReplies[o]={resolve:c,reject:d},this._send(new fZt(this._workerId,o,e,r))})}listen(e,r){let o=null,c=new wn({onWillAddFirstListener:()=>{o=String(++this._lastSentReq),this._pendingEmitters.set(o,c),this._send(new _Zt(this._workerId,o,e,r))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(o),this._send(new mZt(this._workerId,o)),o=null}});return c.event}handleMessage(e){!e||!e.vsWorker||this._workerId!==-1&&e.vsWorker!==this._workerId||this._handleMessage(e)}_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]){console.warn("Got reply to unknown seq");return}let r=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let o=e.err;e.err.$isError&&(o=new Error,o.name=e.err.name,o.message=e.err.message,o.stack=e.err.stack),r.reject(o);return}r.resolve(e.res)}_handleRequestMessage(e){let r=e.req;this._handler.handleMessage(e.method,e.args).then(c=>{this._send(new PNt(this._workerId,r,c,void 0))},c=>{c.detail instanceof Error&&(c.detail=nQt(c.detail)),this._send(new PNt(this._workerId,r,void 0,nQt(c)))})}_handleSubscribeEventMessage(e){let r=e.req,o=this._handler.handleEvent(e.eventName,e.arg)(c=>{this._send(new pZt(this._workerId,r,c))});this._pendingEvents.set(r,o)}_handleEventMessage(e){if(!this._pendingEmitters.has(e.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(e.req).fire(e.event)}_handleUnsubscribeEventMessage(e){if(!this._pendingEvents.has(e.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)}_send(e){let r=[];if(e.type===0)for(let o=0;o{this._protocol.handleMessage(L)},L=>{c?.(L)})),this._protocol=new hZt({sendMessage:(L,B)=>{this._worker.postMessage(L,B)},handleMessage:(L,B)=>{if(typeof o[L]!="function")return Promise.reject(new Error("Missing method "+L+" on main thread host."));try{return Promise.resolve(o[L].apply(o,B))}catch(F){return Promise.reject(F)}},handleEvent:(L,B)=>{if(syi(L)){let F=o[L].call(o,B);if(typeof F!="function")throw new Error(`Missing dynamic event ${L} on main thread host.`);return F}if(oyi(L)){let F=o[L];if(typeof F!="function")throw new Error(`Missing event ${L} on main thread host.`);return F}throw new Error(`Malformed event name ${L}`)}}),this._protocol.setWorkerId(this._worker.getId());let d=null,h=globalThis.require;typeof h<"u"&&typeof h.getConfig=="function"?d=h.getConfig():typeof globalThis.requirejs<"u"&&(d=globalThis.requirejs.s.contexts._.config);let b=Wze(o);this._onModuleLoaded=this._protocol.sendMessage(w5i,[this._worker.getId(),JSON.parse(JSON.stringify(d)),r,b]);let w=(L,B)=>this._request(L,B),N=(L,B)=>this._protocol.listen(L,B);this._lazyProxy=new Promise((L,B)=>{c=B,this._onModuleLoaded.then(F=>{L(T5i(F,w,N))},F=>{B(F),this._onError("Worker failed to load "+r,F)})})}getProxyObject(){return this._lazyProxy}_request(e,r){return new Promise((o,c)=>{this._onModuleLoaded.then(()=>{this._protocol.sendMessage(e,r).then(o,c)},c)})}_onError(e,r){console.error(e),console.info(r)}}});function r3(l,e){var r;let o=globalThis.MonacoEnvironment;if(o?.createTrustedTypesPolicy)try{return o.createTrustedTypesPolicy(l,e)}catch(c){dl(c);return}try{return(r=em.trustedTypes)===null||r===void 0?void 0:r.createPolicy(l,e)}catch(c){dl(c);return}}var Bne=ti(()=>{S6();Du()});function E5i(l){let e=globalThis.MonacoEnvironment;if(e){if(typeof e.getWorker=="function")return e.getWorker("workerMain.js",l);if(typeof e.getWorkerUrl=="function"){let r=e.getWorkerUrl("workerMain.js",l);return new Worker(ayi?ayi.createScriptURL(r):r,{name:l})}}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}function D5i(l){return typeof l.then=="function"}var ayi,yZt,Rut,cyi=ti(()=>{Bne();Du();gZt();co();ayi=r3("defaultWorkerFactory",{createScriptURL:l=>l});yZt=class extends tn{constructor(e,r,o,c,d){super(),this.id=r,this.label=o;let h=E5i(o);D5i(h)?this.worker=h:this.worker=Promise.resolve(h),this.postMessage(e,[]),this.worker.then(b=>{b.onmessage=function(w){c(w.data)},b.onmessageerror=d,typeof b.addEventListener=="function"&&b.addEventListener("error",d)}),this._register(Ma(()=>{var b;(b=this.worker)===null||b===void 0||b.then(w=>{w.onmessage=null,w.onmessageerror=null,w.removeEventListener("error",d),w.terminate()}),this.worker=null}))}getId(){return this.id}postMessage(e,r){var o;(o=this.worker)===null||o===void 0||o.then(c=>{try{c.postMessage(e,r)}catch(d){dl(d),dl(new Error(`FAILED to post message to '${this.label}'-worker`,{cause:d}))}})}},Rut=class l{constructor(e){this._label=e,this._webWorkerFailedBeforeError=!1}create(e,r,o){let c=++l.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new yZt(e,c,this._label||"anonymous"+c,r,d=>{Mut(d),this._webWorkerFailedBeforeError=d,o(d)})}};Rut.LAST_WORKER_ID=0});function But(l,e,r){l.has(e)?l.get(e).push(r):l.set(e,[r])}var jx,vVe,ONt,sSe=ti(()=>{(function(l){l[l.None=0]="None",l[l.Indent=1]="Indent",l[l.IndentOutdent=2]="IndentOutdent",l[l.Outdent=3]="Outdent"})(jx||(jx={}));vVe=class{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 r=0,o=e.notIn.length;r{sSe();bVe=class l{constructor(e){if(e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map(r=>new vVe(r)):e.brackets?this._autoClosingPairs=e.brackets.map(r=>new vVe({open:r[0],close:r[1]})):this._autoClosingPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){let r=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new vVe({open:r.open,close:r.close||""}))}this._autoCloseBeforeForQuotes=typeof e.autoCloseBefore=="string"?e.autoCloseBefore:l.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES,this._autoCloseBeforeForBrackets=typeof e.autoCloseBefore=="string"?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}};bVe.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES=`;:.,=}])> + `;bVe.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS=`'"\`;:.,=}])> + `});function jne(l,e){let r=l.getCount(),o=l.findTokenIndexAtOffset(e),c=l.getLanguageId(o),d=o;for(;d+10&&l.getLanguageId(h-1)===c;)h--;return new vZt(l,c,h,d+1,l.getStartOffset(h),l.getEndOffset(d))}function zq(l){return(l&3)!==0}var vZt,SVe=ti(()=>{vZt=class{constructor(e,r,o,c,d,h){this._scopedLineTokensBrand=void 0,this._actual=e,this.languageId=r,this._firstTokenIndex=o,this._lastTokenIndex=c,this.firstCharOffset=d,this._lastCharOffset=h,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 dyi(l,e){return l[e+0]<<0>>>0|l[e+1]<<8>>>0}function fyi(l,e,r){l[r+0]=e&255,e=e>>>8,l[r+1]=e&255}function vV(l,e){return l[e]*2**24+l[e+1]*2**16+l[e+2]*2**8+l[e+3]}function bV(l,e,r){l[r+3]=e,e=e>>>8,l[r+2]=e,e=e>>>8,l[r+1]=e,e=e>>>8,l[r]=e}function SZt(l,e){return l[e]}function xZt(l,e,r){l[r]=e}var uyi,Ian,bZt,xVe,CVe=ti(()=>{VY();uyi=typeof Buffer<"u",Ian=new Bw(()=>new Uint8Array(256)),xVe=class l{static wrap(e){return uyi&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new l(e)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return uyi?this.buffer.toString():(bZt||(bZt=new TextDecoder),bZt.decode(this.buffer))}}});function _yi(){return kZt||(kZt=new TextDecoder("UTF-16LE")),kZt}function I5i(){return wZt||(wZt=new TextDecoder("UTF-16BE")),wZt}function EZt(){return TZt||(TZt=lDt()?_yi():I5i()),TZt}function pyi(l,e,r){let o=new Uint16Array(l.buffer,e,r);return r>0&&(o[0]===65279||o[0]===65534)?N5i(l,e,r):_yi().decode(o)}function N5i(l,e,r){let o=[],c=0;for(let d=0;d{Mu();X_();CVe();kB=class{constructor(e){this._capacity=e|0,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}reset(){this._completedStrings=null,this._bufferLength=0}build(){return this._completedStrings!==null?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()}_buildBuffer(){if(this._bufferLength===0)return"";let e=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return EZt().decode(e)}_flushBuffer(){let e=this._buildBuffer();this._bufferLength=0,this._completedStrings===null?this._completedStrings=[e]:this._completedStrings[this._completedStrings.length]=e}appendCharCode(e){let r=this._capacity-this._bufferLength;r<=1&&(r===0||TS(e))&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendASCIICharCode(e){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendString(e){let r=e.length;if(this._bufferLength+r>=this._capacity){this._flushBuffer(),this._completedStrings[this._completedStrings.length]=e;return}for(let o=0;o[h[0].toLowerCase(),h[1].toLowerCase()]);let r=[];for(let h=0;h{let[w,N]=h,[L,B]=b;return w===L||w===B||N===L||N===B},c=(h,b)=>{let w=Math.min(h,b),N=Math.max(h,b);for(let L=0;L0&&d.push({open:b,close:w})}return d}function myi(l,e,r,o){for(let c=0,d=e.length;c=0&&o.push(b);for(let b of h.close)b.indexOf(l)>=0&&o.push(b)}}function hyi(l,e){return l.length-e.length}function MNt(l){if(l.length<=1)return l;let e=[],r=new Set;for(let o of l)r.has(o)||(e.push(o),r.add(o));return e}function L5i(l,e,r,o){let c=[];c=c.concat(l),c=c.concat(e);for(let d=0,h=c.length;d{Mu();pfe();Xa();DZt=class l{constructor(e,r,o,c,d,h){this._richEditBracketBrand=void 0,this.languageId=e,this.index=r,this.open=o,this.close=c,this.forwardRegex=d,this.reversedRegex=h,this._openSet=l._toSet(this.open),this._closeSet=l._toSet(this.close)}isOpen(e){return this._openSet.has(e)}isClose(e){return this._closeSet.has(e)}static _toSet(e){let r=new Set;for(let o of e)r.add(o);return r}};FNt=class{constructor(e,r){this._richEditBracketsBrand=void 0;let o=P5i(r);this.brackets=o.map((c,d)=>new DZt(e,d,c.open,c.close,L5i(c.open,c.close,o,d),O5i(c.open,c.close,o,d))),this.forwardRegex=F5i(this.brackets),this.reversedRegex=M5i(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(let c of this.brackets){for(let d of c.open)this.textIsBracket[d]=c,this.textIsOpenBracket[d]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,d.length);for(let d of c.close)this.textIsBracket[d]=c,this.textIsOpenBracket[d]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,d.length)}}};IZt=function(){function l(o){let c=new Uint16Array(o.length),d=0;for(let h=o.length-1;h>=0;h--)c[d++]=o.charCodeAt(h);return EZt().decode(c)}let e=null,r=null;return function(c){return e!==c&&(e=c,r=l(e)),r}}(),i7=class{static _findPrevBracketInText(e,r,o,c){let d=o.match(e);if(!d)return null;let h=o.length-(d.index||0),b=d[0].length,w=c+h;return new Zt(r,w-b+1,r,w+1)}static findPrevBracketInRange(e,r,o,c,d){let b=IZt(o).substring(o.length-d,o.length-c);return this._findPrevBracketInText(e,r,b,c)}static findNextBracketInText(e,r,o,c){let d=o.match(e);if(!d)return null;let h=d.index||0,b=d[0].length;if(b===0)return null;let w=c+h;return new Zt(r,w+1,r,w+1+b)}static findNextBracketInRange(e,r,o,c,d){let h=o.substring(c,d);return this.findNextBracketInText(e,r,h,c)}}});var RNt,gyi=ti(()=>{sd();SVe();jut();RNt=class{constructor(e){this._richEditBrackets=e}getElectricCharacters(){let e=[];if(this._richEditBrackets)for(let r of this._richEditBrackets.brackets)for(let o of r.close){let c=o.charAt(o.length-1);e.push(c)}return GF(e)}onElectricCharacter(e,r,o){if(!this._richEditBrackets||this._richEditBrackets.brackets.length===0)return null;let c=r.findTokenIndexAtOffset(o-1);if(zq(r.getStandardTokenType(c)))return null;let d=this._richEditBrackets.reversedRegex,h=r.getLineContent().substring(0,o-1)+e,b=i7.findPrevBracketInRange(d,1,h,0,h.length);if(!b)return null;let w=h.substring(b.startColumn-1,b.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[w])return null;let L=r.getActualLineContentBefore(b.startColumn-1);return/^\s*$/.test(L)?{matchOpenBracket:w}:null}}});function BNt(l){return l.global&&(l.lastIndex=0),!0}var jNt,yyi=ti(()=>{jNt=class{constructor(e){this._indentationRules=e}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&BNt(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(e))}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&BNt(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(e))}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&BNt(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(e))}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&BNt(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(e))}getIndentMetadata(e){let r=0;return this.shouldIncrease(e)&&(r+=1),this.shouldDecrease(e)&&(r+=2),this.shouldIndentNextLine(e)&&(r+=4),this.shouldIgnore(e)&&(r+=8),r}}});var WNt,vyi=ti(()=>{Du();Mu();sSe();WNt=class l{constructor(e){e=e||{},e.brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach(r=>{let o=l._createOpenBracketRegExp(r[0]),c=l._createCloseBracketRegExp(r[1]);o&&c&&this._brackets.push({open:r[0],openRegExp:o,close:r[1],closeRegExp:c})}),this._regExpRules=e.onEnterRules||[]}onEnter(e,r,o,c){if(e>=3)for(let d=0,h=this._regExpRules.length;dN.reg?(N.reg.lastIndex=0,N.reg.test(N.text)):!0))return b.action}if(e>=2&&o.length>0&&c.length>0)for(let d=0,h=this._brackets.length;d=2&&o.length>0){for(let d=0,h=this._brackets.length;d"u"?r:d}function xyi(l){return l.replace(/[\[\]]/g,"")}var _u,_y=ti(()=>{bl();_u=Ml("configurationService")});var km,FD=ti(()=>{bl();km=Ml("languageService")});var AR,VNt=ti(()=>{AR=class{constructor(e,r=[],o=!1){this.ctor=e,this.staticArguments=r,this.supportsDelayedInstantiation=o}}});function e_(l,e,r){e instanceof AR||(e=new AR(e,[],!!r)),Cyi.push([l,e])}function PZt(){return Cyi}var Cyi,_A=ti(()=>{VNt();Cyi=[]});var l1,aSe=ti(()=>{l1=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"})});function B5i(l){return l.length>0&&l.charAt(l.length-1)==="#"?l.substring(0,l.length-1):l}var i6e,LZt,j5i,HNt=ti(()=>{xc();DT();i6e={JSONContribution:"base.contributions.json"};LZt=class{constructor(){this._onDidChangeSchema=new wn,this.schemasById={}}registerSchema(e,r){this.schemasById[B5i(e)]=r,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}},j5i=new LZt;pm.add(i6e.JSONContribution,j5i)});function zut(l){let e=[];if(mfe.test(l)){let r=wyi.exec(l);for(;r?.length;){let o=r[1].trim();o&&e.push(o),r=wyi.exec(l)}}return GF(e)}function W5i(l){switch(Array.isArray(l)?l[0]:l){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}function z5i(l,e){var r,o,c,d;return l.trim()?mfe.test(l)?ce("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",l):JNt.getConfigurationProperties()[l]!==void 0?ce("config.property.duplicate","Cannot register '{0}'. This property is already registered.",l):!((r=e.policy)===null||r===void 0)&&r.name&&JNt.getPolicyConfigurations().get((o=e.policy)===null||o===void 0?void 0:o.name)!==void 0?ce("config.policy.duplicate","Cannot register '{0}'. The associated policy {1} is already registered with {2}.",l,(c=e.policy)===null||c===void 0?void 0:c.name,JNt.getPolicyConfigurations().get((d=e.policy)===null||d===void 0?void 0:d.name)):null:ce("config.property.empty","Cannot register an empty property")}var jP,OZt,FZt,MZt,RZt,BZt,UNt,Wut,kyi,jZt,Tyi,wyi,n6e,mfe,JNt,Wne=ti(()=>{sd();xc();Fh();ya();_y();HNt();DT();jP={Configuration:"base.contributions.configuration"},OZt={properties:{},patternProperties:{}},FZt={properties:{},patternProperties:{}},MZt={properties:{},patternProperties:{}},RZt={properties:{},patternProperties:{}},BZt={properties:{},patternProperties:{}},UNt={properties:{},patternProperties:{}},Wut="vscode://schemas/settings/resourceLanguage",kyi=pm.as(i6e.JSONContribution),jZt=class{constructor(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new wn,this._onDidUpdateConfiguration=new wn,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:ce("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={},kyi.registerSchema(Wut,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e,r=!0){this.registerConfigurations([e],r)}registerConfigurations(e,r=!0){let o=new Set;this.doRegisterConfigurations(e,r,o),kyi.registerSchema(Wut,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:o})}registerDefaultConfigurations(e){let r=new Set;this.doRegisterDefaultConfigurations(e,r),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:r,defaultsOverrides:!0})}doRegisterDefaultConfigurations(e,r){var o;let c=[];for(let{overrides:d,source:h}of e)for(let b in d)if(r.add(b),mfe.test(b)){let w=this.configurationDefaultsOverrides.get(b),N=(o=w?.valuesSources)!==null&&o!==void 0?o:new Map;if(h)for(let Y of Object.keys(d[b]))N.set(Y,h);let L={...w?.value||{},...d[b]};this.configurationDefaultsOverrides.set(b,{source:h,value:L,valuesSources:N});let B=xyi(b),F={type:"object",default:L,description:ce("defaultLanguageConfiguration.description","Configure settings to be overridden for the {0} language.",B),$ref:Wut,defaultDefaultValue:L,source:Fw(h)?void 0:h,defaultValueSource:h};c.push(...zut(b)),this.configurationProperties[b]=F,this.defaultLanguageConfigurationOverridesNode.properties[b]=F}else{this.configurationDefaultsOverrides.set(b,{value:d[b],source:h});let w=this.configurationProperties[b];w&&(this.updatePropertyDefaultValue(b,w),this.updateSchema(b,w))}this.doRegisterOverrideIdentifiers(c)}registerOverrideIdentifiers(e){this.doRegisterOverrideIdentifiers(e),this._onDidSchemaChange.fire()}doRegisterOverrideIdentifiers(e){for(let r of e)this.overrideIdentifiers.add(r);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,r,o){e.forEach(c=>{this.validateAndRegisterProperties(c,r,c.extensionInfo,c.restrictedProperties,void 0,o),this.configurationContributors.push(c),this.registerJSONConfiguration(c)})}validateAndRegisterProperties(e,r=!0,o,c,d=3,h){var b;d=v6(e.scope)?d:e.scope;let w=e.properties;if(w)for(let L in w){let B=w[L];if(r&&z5i(L,B)){delete w[L];continue}if(B.source=o,B.defaultDefaultValue=w[L].default,this.updatePropertyDefaultValue(L,B),mfe.test(L)?B.scope=void 0:(B.scope=v6(B.scope)?d:B.scope,B.restricted=v6(B.restricted)?!!c?.includes(L):B.restricted),w[L].hasOwnProperty("included")&&!w[L].included){this.excludedConfigurationProperties[L]=w[L],delete w[L];continue}else this.configurationProperties[L]=w[L],!((b=w[L].policy)===null||b===void 0)&&b.name&&this.policyConfigurations.set(w[L].policy.name,L);!w[L].deprecationMessage&&w[L].markdownDeprecationMessage&&(w[L].deprecationMessage=w[L].markdownDeprecationMessage),h.add(L)}let N=e.allOf;if(N)for(let L of N)this.validateAndRegisterProperties(L,r,o,c,d,h)}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}registerJSONConfiguration(e){let r=o=>{let c=o.properties;if(c)for(let h in c)this.updateSchema(h,c[h]);let d=o.allOf;d?.forEach(r)};r(e)}updateSchema(e,r){switch(OZt.properties[e]=r,r.scope){case 1:FZt.properties[e]=r;break;case 2:MZt.properties[e]=r;break;case 6:RZt.properties[e]=r;break;case 3:BZt.properties[e]=r;break;case 4:UNt.properties[e]=r;break;case 5:UNt.properties[e]=r,this.resourceLanguageSettingsSchema.properties[e]=r;break}}updateOverridePropertyPatternKey(){for(let e of this.overrideIdentifiers.values()){let r=`[${e}]`,o={type:"object",description:ce("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:ce("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:Wut};this.updatePropertyDefaultValue(r,o),OZt.properties[r]=o,FZt.properties[r]=o,MZt.properties[r]=o,RZt.properties[r]=o,BZt.properties[r]=o,UNt.properties[r]=o}}registerOverridePropertyPatternKey(){let e={type:"object",description:ce("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:ce("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:Wut};OZt.patternProperties[n6e]=e,FZt.patternProperties[n6e]=e,MZt.patternProperties[n6e]=e,RZt.patternProperties[n6e]=e,BZt.patternProperties[n6e]=e,UNt.patternProperties[n6e]=e,this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,r){let o=this.configurationDefaultsOverrides.get(e),c=o?.value,d=o?.source;OI(c)&&(c=r.defaultDefaultValue,d=void 0),OI(c)&&(c=W5i(r.type)),r.default=c,r.defaultValueSource=d}},Tyi="\\[([^\\]]+)\\]",wyi=new RegExp(Tyi,"g"),n6e=`^(${Tyi})+$`,mfe=new RegExp(n6e);JNt=new jZt;pm.add(jP.Configuration,JNt)});var V5i,WZt,cSe,y2,H5i,SV=ti(()=>{ya();xc();DT();aSe();Wne();V5i={ModesRegistry:"editor.modesRegistry"},WZt=class{constructor(){this._onDidChangeLanguages=new wn,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[]}registerLanguage(e){return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let r=0,o=this._languages.length;re!==""&&r!=="")}var qNt,$Nt,zZt,VZt,Dyi=ti(()=>{bQt();jut();qNt=class{constructor(e,r){this.languageId=e;let o=r.brackets?Eyi(r.brackets):[],c=new sut(b=>{let w=new Set;return{info:new zZt(this,b,w),closing:w}}),d=new sut(b=>{let w=new Set,N=new Set;return{info:new VZt(this,b,w,N),opening:w,openingColorized:N}});for(let[b,w]of o){let N=c.get(b),L=d.get(w);N.closing.add(L.info),L.opening.add(N.info)}let h=r.colorizedBracketPairs?Eyi(r.colorizedBracketPairs):o.filter(b=>!(b[0]==="<"&&b[1]===">"));for(let[b,w]of h){let N=c.get(b),L=d.get(w);N.closing.add(L.info),L.openingColorized.add(N.info),L.opening.add(N.info)}this._openingBrackets=new Map([...c.cachedValues].map(([b,w])=>[b,w.info])),this._closingBrackets=new Map([...d.cachedValues].map(([b,w])=>[b,w.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){let r=Array.from([...this._openingBrackets.keys(),...this._closingBrackets.keys()]);return kVe(r,e)}};$Nt=class{constructor(e,r){this.config=e,this.bracketText=r}get languageId(){return this.config.languageId}},zZt=class extends $Nt{constructor(e,r,o){super(e,r),this.openedBrackets=o,this.isOpeningBracket=!0}},VZt=class extends $Nt{constructor(e,r,o,c){super(e,r),this.openingBrackets=o,this.openingColorizedBrackets=c,this.isOpeningBracket=!1}closes(e){return e.config!==this.config?!1:this.openingBrackets.has(e)}closesColorized(e){return e.config!==this.config?!1:this.openingColorizedBrackets.has(e)}getOpeningBrackets(){return[...this.openingBrackets]}}});function J5i(l,e,r,o){let c=e.getLanguageConfiguration(l);if(!c){if(!o.isRegisteredLanguageId(l))return new wVe(l,{});c=new wVe(l,{})}let d=q5i(c.languageId,r),h=Ayi([c.underlyingConfig,d]);return new wVe(c.languageId,h)}function q5i(l,e){let r=e.getValue(UZt.brackets,{overrideIdentifier:l}),o=e.getValue(UZt.colorizedBracketPairs,{overrideIdentifier:l});return{brackets:Nyi(r),colorizedBracketPairs:Nyi(o)}}function Nyi(l){if(Array.isArray(l))return l.map(e=>{if(!(!Array.isArray(e)||e.length!==2))return[e[0],e[1]]}).filter(e=>!!e)}function XNt(l,e,r){let o=l.getLineContent(e),c=rg(o);return c.length>r-1&&(c=c.substring(0,r-1)),c}function Ayi(l){let e={comments:void 0,brackets:void 0,wordPattern:void 0,indentationRules:void 0,onEnterRules:void 0,autoClosingPairs:void 0,surroundingPairs:void 0,autoCloseBefore:void 0,folding:void 0,colorizedBracketPairs:void 0,__electricCharacterSupport:void 0};for(let r of l)e={comments:r.comments||e.comments,brackets:r.brackets||e.brackets,wordPattern:r.wordPattern||e.wordPattern,indentationRules:r.indentationRules||e.indentationRules,onEnterRules:r.onEnterRules||e.onEnterRules,autoClosingPairs:r.autoClosingPairs||e.autoClosingPairs,surroundingPairs:r.surroundingPairs||e.surroundingPairs,autoCloseBefore:r.autoCloseBefore||e.autoCloseBefore,folding:r.folding||e.folding,colorizedBracketPairs:r.colorizedBracketPairs||e.colorizedBracketPairs,__electricCharacterSupport:r.__electricCharacterSupport||e.__electricCharacterSupport};return e}var U5i,Iyi,Vut,cp,HZt,UZt,JZt,GNt,KNt,qZt,wVe,ix=ti(()=>{xc();co();Mu();Vze();sSe();lyi();gyi();yyi();vyi();jut();bl();_y();FD();_A();SV();Dyi();U5i=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},Iyi=function(l,e){return function(r,o){e(r,o,l)}},Vut=class{constructor(e){this.languageId=e}affects(e){return this.languageId?this.languageId===e:!0}},cp=Ml("languageConfigurationService"),HZt=class extends tn{constructor(e,r){super(),this.configurationService=e,this.languageService=r,this._registry=this._register(new qZt),this.onDidChangeEmitter=this._register(new wn),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map;let o=new Set(Object.values(UZt));this._register(this.configurationService.onDidChangeConfiguration(c=>{let d=c.change.keys.some(b=>o.has(b)),h=c.change.overrides.filter(([b,w])=>w.some(N=>o.has(N))).map(([b])=>b);if(d)this.configurations.clear(),this.onDidChangeEmitter.fire(new Vut(void 0));else for(let b of h)this.languageService.isRegisteredLanguageId(b)&&(this.configurations.delete(b),this.onDidChangeEmitter.fire(new Vut(b)))})),this._register(this._registry.onDidChange(c=>{this.configurations.delete(c.languageId),this.onDidChangeEmitter.fire(new Vut(c.languageId))}))}register(e,r,o){return this._registry.register(e,r,o)}getLanguageConfiguration(e){let r=this.configurations.get(e);return r||(r=J5i(e,this._registry,this.configurationService,this.languageService),this.configurations.set(e,r)),r}};HZt=U5i([Iyi(0,_u),Iyi(1,km)],HZt);UZt={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};JZt=class{constructor(e){this.languageId=e,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(e,r){let o=new GNt(e,r,++this._order);return this._entries.push(o),this._resolved=null,Ma(()=>{for(let c=0;ce.configuration)))}};GNt=class{constructor(e,r,o){this.configuration=e,this.priority=r,this.order=o}static cmp(e,r){return e.priority===r.priority?e.order-r.order:e.priority-r.priority}},KNt=class{constructor(e){this.languageId=e}},qZt=class extends tn{constructor(){super(),this._entries=new Map,this._onDidChange=this._register(new wn),this.onDidChange=this._onDidChange.event,this._register(this.register(y2,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0))}register(e,r,o=0){let c=this._entries.get(e);c||(c=new JZt(e),this._entries.set(e,c));let d=c.register(r,o);return this._onDidChange.fire(new KNt(e)),Ma(()=>{d.dispose(),this._onDidChange.fire(new KNt(e))})}getLanguageConfiguration(e){let r=this._entries.get(e);return r?.getResolvedConfiguration()||null}},wVe=class l{constructor(e,r){this.languageId=e,this.underlyingConfig=r,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new WNt(this.underlyingConfig):null,this.comments=l._handleComments(this.underlyingConfig),this.characterPair=new bVe(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||Ult,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new jNt(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{},this.bracketsNew=new qNt(e,this.underlyingConfig)}getWordDefinition(){return Jlt(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new FNt(this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new RNt(this.brackets)),this._electricCharacter}onEnter(e,r,o,c){return this._onEnterSupport?this._onEnterSupport.onEnter(e,r,o,c):null}getAutoClosingPairs(){return new ONt(this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(e){return this.characterPair.getAutoCloseBeforeSet(e)}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static _handleComments(e){let r=e.comments;if(!r)return null;let o={};if(r.lineComment&&(o.lineCommentToken=r.lineComment),r.blockComment){let[c,d]=r.blockComment;o.blockCommentStartToken=c,o.blockCommentEndToken=d}return o}};e_(cp,HZt,1)});var XY,Pyi=ti(()=>{XY=class{constructor(e,r,o,c){this.originalStart=e,this.originalLength=r,this.modifiedStart=o,this.modifiedLength=c}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}});function Lyi(l,e,r){return new hfe(new YNt(l),new YNt(e)).ComputeDiff(r).changes}var YNt,lSe,uSe,QNt,hfe,Hut=ti(()=>{Pyi();Zbe();YNt=class{constructor(e){this.source=e}getElements(){let e=this.source,r=new Int32Array(e.length);for(let o=0,c=e.length;o0||this.m_modifiedCount>0)&&this.m_changes.push(new XY(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,r){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,r),this.m_originalCount++}AddModifiedElement(e,r){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,r),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}},hfe=class l{constructor(e,r,o=null){this.ContinueProcessingPredicate=o,this._originalSequence=e,this._modifiedSequence=r;let[c,d,h]=l._getElements(e),[b,w,N]=l._getElements(r);this._hasStrings=h&&N,this._originalStringElements=c,this._originalElementsOrHash=d,this._modifiedStringElements=b,this._modifiedElementsOrHash=w,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&typeof e[0]=="string"}static _getElements(e){let r=e.getElements();if(l._isStringArray(r)){let o=new Int32Array(r.length);for(let c=0,d=r.length;c=e&&c>=o&&this.ElementsAreEqual(r,c);)r--,c--;if(e>r||o>c){let B;return o<=c?(lSe.Assert(e===r+1,"originalStart should only be one more than originalEnd"),B=[new XY(e,0,o,c-o+1)]):e<=r?(lSe.Assert(o===c+1,"modifiedStart should only be one more than modifiedEnd"),B=[new XY(e,r-e+1,o,0)]):(lSe.Assert(e===r+1,"originalStart should only be one more than originalEnd"),lSe.Assert(o===c+1,"modifiedStart should only be one more than modifiedEnd"),B=[]),B}let h=[0],b=[0],w=this.ComputeRecursionPoint(e,r,o,c,h,b,d),N=h[0],L=b[0];if(w!==null)return w;if(!d[0]){let B=this.ComputeDiffRecursive(e,N,o,L,d),F=[];return d[0]?F=[new XY(N+1,r-(N+1)+1,L+1,c-(L+1)+1)]:F=this.ComputeDiffRecursive(N+1,r,L+1,c,d),this.ConcatenateChanges(B,F)}return[new XY(e,r-e+1,o,c-o+1)]}WALKTRACE(e,r,o,c,d,h,b,w,N,L,B,F,Y,Z,ee,Te,Je,Xe){let ct=null,Ct=null,Nt=new QNt,Yt=r,jt=o,mi=Y[0]-Te[0]-c,_n=-1073741824,Pr=this.m_forwardHistory.length-1;do{let dr=mi+e;dr===Yt||dr=0&&(N=this.m_forwardHistory[Pr],e=N[0],Yt=1,jt=N.length-1)}while(--Pr>=-1);if(ct=Nt.getReverseChanges(),Xe[0]){let dr=Y[0]+1,Rr=Te[0]+1;if(ct!==null&&ct.length>0){let Tn=ct[ct.length-1];dr=Math.max(dr,Tn.getOriginalEnd()),Rr=Math.max(Rr,Tn.getModifiedEnd())}Ct=[new XY(dr,F-dr+1,Rr,ee-Rr+1)]}else{Nt=new QNt,Yt=h,jt=b,mi=Y[0]-Te[0]-w,_n=1073741824,Pr=Je?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{let dr=mi+d;dr===Yt||dr=L[dr+1]?(B=L[dr+1]-1,Z=B-mi-w,B>_n&&Nt.MarkNextChange(),_n=B+1,Nt.AddOriginalElement(B+1,Z+1),mi=dr+1-d):(B=L[dr-1],Z=B-mi-w,B>_n&&Nt.MarkNextChange(),_n=B,Nt.AddModifiedElement(B+1,Z+1),mi=dr-1-d),Pr>=0&&(L=this.m_reverseHistory[Pr],d=L[0],Yt=1,jt=L.length-1)}while(--Pr>=-1);Ct=Nt.getChanges()}return this.ConcatenateChanges(ct,Ct)}ComputeRecursionPoint(e,r,o,c,d,h,b){let w=0,N=0,L=0,B=0,F=0,Y=0;e--,o--,d[0]=0,h[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];let Z=r-e+(c-o),ee=Z+1,Te=new Int32Array(ee),Je=new Int32Array(ee),Xe=c-o,ct=r-e,Ct=e-o,Nt=r-c,jt=(ct-Xe)%2===0;Te[Xe]=e,Je[ct]=r,b[0]=!1;for(let mi=1;mi<=Z/2+1;mi++){let _n=0,Pr=0;L=this.ClipDiagonalBound(Xe-mi,mi,Xe,ee),B=this.ClipDiagonalBound(Xe+mi,mi,Xe,ee);for(let Rr=L;Rr<=B;Rr+=2){Rr===L||Rr_n+Pr&&(_n=w,Pr=N),!jt&&Math.abs(Rr-ct)<=mi-1&&w>=Je[Rr])return d[0]=w,h[0]=N,Tn<=Je[Rr]&&mi<=1448?this.WALKTRACE(Xe,L,B,Ct,ct,F,Y,Nt,Te,Je,w,r,d,N,c,h,jt,b):null}let dr=(_n-e+(Pr-o)-mi)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(_n,dr))return b[0]=!0,d[0]=_n,h[0]=Pr,dr>0&&mi<=1448?this.WALKTRACE(Xe,L,B,Ct,ct,F,Y,Nt,Te,Je,w,r,d,N,c,h,jt,b):(e++,o++,[new XY(e,r-e+1,o,c-o+1)]);F=this.ClipDiagonalBound(ct-mi,mi,ct,ee),Y=this.ClipDiagonalBound(ct+mi,mi,ct,ee);for(let Rr=F;Rr<=Y;Rr+=2){Rr===F||Rr=Je[Rr+1]?w=Je[Rr+1]-1:w=Je[Rr-1],N=w-(Rr-ct)-Nt;let Tn=w;for(;w>e&&N>o&&this.ElementsAreEqual(w,N);)w--,N--;if(Je[Rr]=w,jt&&Math.abs(Rr-Xe)<=mi&&w<=Te[Rr])return d[0]=w,h[0]=N,Tn>=Te[Rr]&&mi<=1448?this.WALKTRACE(Xe,L,B,Ct,ct,F,Y,Nt,Te,Je,w,r,d,N,c,h,jt,b):null}if(mi<=1447){let Rr=new Int32Array(B-L+2);Rr[0]=Xe-L+1,uSe.Copy2(Te,L,Rr,1,B-L+1),this.m_forwardHistory.push(Rr),Rr=new Int32Array(Y-F+2),Rr[0]=ct-F+1,uSe.Copy2(Je,F,Rr,1,Y-F+1),this.m_reverseHistory.push(Rr)}}return this.WALKTRACE(Xe,L,B,Ct,ct,F,Y,Nt,Te,Je,w,r,d,N,c,h,jt,b)}PrettifyChanges(e){for(let r=0;r0,b=o.modifiedLength>0;for(;o.originalStart+o.originalLength=0;r--){let o=e[r],c=0,d=0;if(r>0){let B=e[r-1];c=B.originalStart+B.originalLength,d=B.modifiedStart+B.modifiedLength}let h=o.originalLength>0,b=o.modifiedLength>0,w=0,N=this._boundaryScore(o.originalStart,o.originalLength,o.modifiedStart,o.modifiedLength);for(let B=1;;B++){let F=o.originalStart-B,Y=o.modifiedStart-B;if(FN&&(N=ee,w=B)}o.originalStart-=w,o.modifiedStart-=w;let L=[null];if(r>0&&this.ChangesOverlap(e[r-1],e[r],L)){e[r-1]=L[0],e.splice(r,1),r++;continue}}if(this._hasStrings)for(let r=1,o=e.length;r0&&Y>w&&(w=Y,N=B,L=F)}return w>0?[N,L]:null}_contiguousSequenceScore(e,r,o){let c=0;for(let d=0;d=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,r){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(r>0){let o=e+r;if(this._OriginalIsBoundary(o-1)||this._OriginalIsBoundary(o))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,r){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(r>0){let o=e+r;if(this._ModifiedIsBoundary(o-1)||this._ModifiedIsBoundary(o))return!0}return!1}_boundaryScore(e,r,o,c){let d=this._OriginalRegionIsBoundary(e,r)?1:0,h=this._ModifiedRegionIsBoundary(o,c)?1:0;return d+h}ConcatenateChanges(e,r){let o=[];if(e.length===0||r.length===0)return r.length>0?r:e;if(this.ChangesOverlap(e[e.length-1],r[0],o)){let c=new Array(e.length+r.length-1);return uSe.Copy(e,0,c,0,e.length-1),c[e.length-1]=o[0],uSe.Copy(r,1,c,e.length,r.length-1),c}else{let c=new Array(e.length+r.length);return uSe.Copy(e,0,c,0,e.length),uSe.Copy(r,0,c,e.length,r.length),c}}ChangesOverlap(e,r,o){if(lSe.Assert(e.originalStart<=r.originalStart,"Left change is not less than or equal to right change"),lSe.Assert(e.modifiedStart<=r.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=r.originalStart||e.modifiedStart+e.modifiedLength>=r.modifiedStart){let c=e.originalStart,d=e.originalLength,h=e.modifiedStart,b=e.modifiedLength;return e.originalStart+e.originalLength>=r.originalStart&&(d=r.originalStart+r.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=r.modifiedStart&&(b=r.modifiedStart+r.modifiedLength-e.modifiedStart),o[0]=new XY(c,d,h,b),!0}else return o[0]=null,!1}ClipDiagonalBound(e,r,o,c){if(e>=0&&e255?255:l|0}function o6e(l){return l<0?0:l>4294967295?4294967295:l|0}var Uut=ti(()=>{});var ZNt,eAt,tAt,$Zt=ti(()=>{sd();Uut();ZNt=class{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,r){e=o6e(e);let o=this.values,c=this.prefixSum,d=r.length;return d===0?!1:(this.values=new Uint32Array(o.length+d),this.values.set(o.subarray(0,e),0),this.values.set(o.subarray(e),e+d),this.values.set(r,e),e-1=0&&this.prefixSum.set(c.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,r){return e=o6e(e),r=o6e(r),this.values[e]===r?!1:(this.values[e]=r,e-1=o.length)return!1;let d=o.length-e;return r>=d&&(r=d),r===0?!1:(this.values=new Uint32Array(o.length-r),this.values.set(o.subarray(0,e),0),this.values.set(o.subarray(e+r),e),this.prefixSum=new Uint32Array(this.values.length),e-1=0&&this.prefixSum.set(c.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=o6e(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let r=this.prefixSumValidIndex[0]+1;r===0&&(this.prefixSum[0]=this.values[0],r++),e>=this.values.length&&(e=this.values.length-1);for(let o=r;o<=e;o++)this.prefixSum[o]=this.prefixSum[o-1]+this.values[o];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let r=0,o=this.values.length-1,c=0,d=0,h=0;for(;r<=o;)if(c=r+(o-r)/2|0,d=this.prefixSum[c],h=d-this.values[c],e=d)r=c+1;else break;return new tAt(c,e-h)}},eAt=class{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(),e===0?0:this._prefixSum[e-1]}getIndexOf(e){this._ensureValid();let r=this._indexBySum[e],o=r>0?this._prefixSum[r-1]:0;return new tAt(r,e-o)}removeValues(e,r){this._values.splice(e,r),this._invalidate(e)}insertValues(e,r){this._values=Nbe(this._values,e,r),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,r=this._values.length;e0?this._prefixSum[e-1]:0;this._prefixSum[e]=c+o;for(let d=0;d{Mu();Iu();$Zt();iAt=class{constructor(e,r,o,c){this._uri=e,this._lines=r,this._eol=o,this._versionId=c,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);let r=e.changes;for(let o of r)this._acceptDeleteRange(o.range),this._acceptInsertText(new qn(o.range.startLineNumber,o.range.startColumn),o.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){let e=this._eol.length,r=this._lines.length,o=new Uint32Array(r);for(let c=0;c{Uut();gfe=class l{constructor(e){let r=r6e(e);this._defaultValue=r,this._asciiMap=l._createAsciiMap(r),this._map=new Map}static _createAsciiMap(e){let r=new Uint8Array(256);return r.fill(e),r}set(e,r){let o=r6e(r);e>=0&&e<256?this._asciiMap[e]=o:this._map.set(e,o)}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()}},yfe=class{constructor(){this._actual=new gfe(0)}add(e){this._actual.set(e,1)}has(e){return this._actual.get(e)===1}clear(){return this._actual.clear()}}});function $5i(){return GZt===null&&(GZt=new XZt([[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]])),GZt}function G5i(){if(Jut===null){Jut=new gfe(0);let l=` <>'"\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 r=0;r{s6e();KZt=class{constructor(e,r,o){let c=new Uint8Array(e*r);for(let d=0,h=e*r;dr&&(r=w),b>o&&(o=b),N>o&&(o=N)}r++,o++;let c=new KZt(o,r,0);for(let d=0,h=e.length;d=this._maxCharCode?0:this._states.get(e,r)}},GZt=null;Jut=null;YZt=class l{static _createLink(e,r,o,c,d){let h=d-1;do{let b=r.charCodeAt(h);if(e.get(b)!==2)break;h--}while(h>c);if(c>0){let b=r.charCodeAt(c-1),w=r.charCodeAt(h);(b===40&&w===41||b===91&&w===93||b===123&&w===125)&&h--}return{range:{startLineNumber:o,startColumn:c+1,endLineNumber:o,endColumn:h+2},url:r.substring(c,h+1)}}static computeLinks(e,r=$5i()){let o=G5i(),c=[];for(let d=1,h=e.getLineCount();d<=h;d++){let b=e.getLineContent(d),w=b.length,N=0,L=0,B=0,F=1,Y=!1,Z=!1,ee=!1,Te=!1;for(;N{TVe=class{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(e,r,o,c,d){if(e&&r){let h=this.doNavigateValueSet(r,d);if(h)return{range:e,value:h}}if(o&&c){let h=this.doNavigateValueSet(c,d);if(h)return{range:o,value:h}}return null}doNavigateValueSet(e,r){let o=this.numberReplace(e,r);return o!==null?o:this.textReplace(e,r)}numberReplace(e,r){let o=Math.pow(10,e.length-(e.lastIndexOf(".")+1)),c=Number(e),d=parseFloat(e);return!isNaN(c)&&!isNaN(d)&&c===d?c===0&&!r?null:(c=Math.floor(c*o),c+=r?o:-o,String(c/o)):null}textReplace(e,r){return this.valueSetsReplace(this._defaultValueSet,e,r)}valueSetsReplace(e,r,o){let c=null;for(let d=0,h=e.length;c===null&&d=0?(c+=o?1:-1,c<0?c=e.length-1:c%=e.length,e[c]):null}};TVe.INSTANCE=new TVe});function K5i(l){return Array.isArray(l)}var Byi,jyi,QZt,nx,ZZt,eei,WI,nAt,dSe,pA=ti(()=>{QZt=class{constructor(e,r){this.uri=e,this.value=r}};nx=class l{constructor(e,r){if(this[Byi]="ResourceMap",e instanceof l)this.map=new Map(e.map),this.toKey=r??l.defaultToKey;else if(K5i(e)){this.map=new Map,this.toKey=r??l.defaultToKey;for(let[o,c]of e)this.set(o,c)}else this.map=new Map,this.toKey=e??l.defaultToKey}set(e,r){return this.map.set(this.toKey(e),new QZt(e,r)),this}get(e){var r;return(r=this.map.get(this.toKey(e)))===null||r===void 0?void 0:r.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,r){typeof r<"u"&&(e=e.bind(r));for(let[o,c]of this.map)e(c.value,c.uri,this)}*values(){for(let e of this.map.values())yield e.value}*keys(){for(let e of this.map.values())yield e.uri}*entries(){for(let e of this.map.values())yield[e.uri,e.value]}*[(Byi=Symbol.toStringTag,Symbol.iterator)](){for(let[,e]of this.map)yield[e.uri,e.value]}};nx.defaultToKey=l=>l.toString();ZZt=class{constructor(){this[jyi]="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(){var e;return(e=this._head)===null||e===void 0?void 0:e.value}get last(){var e;return(e=this._tail)===null||e===void 0?void 0:e.value}has(e){return this._map.has(e)}get(e,r=0){let o=this._map.get(e);if(o)return r!==0&&this.touch(o,r),o.value}set(e,r,o=0){let c=this._map.get(e);if(c)c.value=r,o!==0&&this.touch(c,o);else{switch(c={key:e,value:r,next:void 0,previous:void 0},o){case 0:this.addItemLast(c);break;case 1:this.addItemFirst(c);break;case 2:this.addItemLast(c);break;default:this.addItemLast(c);break}this._map.set(e,c),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){let r=this._map.get(e);if(r)return this._map.delete(e),this.removeItem(r),this._size--,r.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");let e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,r){let o=this._state,c=this._head;for(;c;){if(r?e.bind(r)(c.value,c.key,this):e(c.value,c.key,this),this._state!==o)throw new Error("LinkedMap got modified during iteration.");c=c.next}}keys(){let e=this,r=this._state,o=this._head,c={[Symbol.iterator](){return c},next(){if(e._state!==r)throw new Error("LinkedMap got modified during iteration.");if(o){let d={value:o.key,done:!1};return o=o.next,d}else return{value:void 0,done:!0}}};return c}values(){let e=this,r=this._state,o=this._head,c={[Symbol.iterator](){return c},next(){if(e._state!==r)throw new Error("LinkedMap got modified during iteration.");if(o){let d={value:o.value,done:!1};return o=o.next,d}else return{value:void 0,done:!0}}};return c}entries(){let e=this,r=this._state,o=this._head,c={[Symbol.iterator](){return c},next(){if(e._state!==r)throw new Error("LinkedMap got modified during iteration.");if(o){let d={value:[o.key,o.value],done:!1};return o=o.next,d}else return{value:void 0,done:!0}}};return c}[(jyi=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let r=this._head,o=this.size;for(;r&&o>e;)this._map.delete(r.key),r=r.next,o--;this._head=r,this._size=o,r&&(r.previous=void 0),this._state++}trimNew(e){if(e>=this.size)return;if(e===0){this.clear();return}let r=this._tail,o=this.size;for(;r&&o>e;)this._map.delete(r.key),r=r.previous,o--;this._tail=r,this._size=o,r&&(r.next=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");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{let r=e.next,o=e.previous;if(!r||!o)throw new Error("Invalid list");r.previous=o,o.next=r}e.next=void 0,e.previous=void 0,this._state++}touch(e,r){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(r!==1&&r!==2)){if(r===1){if(e===this._head)return;let o=e.next,c=e.previous;e===this._tail?(c.next=void 0,this._tail=c):(o.previous=c,c.next=o),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(r===2){if(e===this._tail)return;let o=e.next,c=e.previous;e===this._head?(o.previous=void 0,this._head=o):(o.previous=c,c.next=o),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){let e=[];return this.forEach((r,o)=>{e.push([o,r])}),e}fromJSON(e){this.clear();for(let[r,o]of e)this.set(r,o)}},eei=class extends ZZt{constructor(e,r=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,r),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,r=2){return super.get(e,r)}peek(e){return super.get(e,0)}set(e,r){return super.set(e,r,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}},WI=class extends eei{constructor(e,r=1){super(e,r)}trim(e){this.trimOld(e)}set(e,r){return super.set(e,r),this.checkTrim(),this}},nAt=class{constructor(e){if(this._m1=new Map,this._m2=new Map,e)for(let[r,o]of e)this.set(r,o)}clear(){this._m1.clear(),this._m2.clear()}set(e,r){this._m1.set(e,r),this._m2.set(r,e)}get(e){return this._m1.get(e)}getKey(e){return this._m2.get(e)}delete(e){let r=this._m1.get(e);return r===void 0?!1:(this._m1.delete(e),this._m2.delete(r),!0)}keys(){return this._m1.keys()}values(){return this._m1.values()}},dSe=class{constructor(){this.map=new Map}add(e,r){let o=this.map.get(e);o||(o=new Set,this.map.set(e,o)),o.add(r)}delete(e,r){let o=this.map.get(e);o&&(o.delete(r),o.size===0&&this.map.delete(e))}forEach(e,r){let o=this.map.get(e);o&&o.forEach(r)}get(e){let r=this.map.get(e);return r||new Set}}});function o3(l,e){let r=`${l}/${e.join(",")}`,o=Wyi.get(r);return o||(o=new tei(l,e),Wyi.set(r,o)),o}var tei,Wyi,EVe=ti(()=>{pA();s6e();tei=class extends gfe{constructor(e,r){super(0),this._segmenter=null,this._cachedLine=null,this._cachedSegments=[],this.intlSegmenterLocales=r,this.intlSegmenterLocales.length>0?this._segmenter=new Intl.Segmenter(this.intlSegmenterLocales,{granularity:"word"}):this._segmenter=null;for(let o=0,c=e.length;or)break;o=c}return o}findNextIntlWordAtOrAfterOffset(e,r){for(let o of this._getIntlSegmenterWordsOnLine(e))if(!(o.index{YL();(function(l){l[l.Left=1]="Left",l[l.Center=2]="Center",l[l.Right=4]="Right",l[l.Full=7]="Full"})(mA||(mA={}));(function(l){l[l.Left=1]="Left",l[l.Center=2]="Center",l[l.Right=3]="Right"})(n7||(n7={}));(function(l){l[l.Both=0]="Both",l[l.Right=1]="Right",l[l.Left=2]="Left",l[l.None=3]="None"})(r7||(r7={}));fSe=class{get originalIndentSize(){return this._indentSizeIsTabSize?"tabSize":this.indentSize}constructor(e){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,e.tabSize|0),e.indentSize==="tabSize"?(this.indentSize=this.tabSize,this._indentSizeIsTabSize=!0):(this.indentSize=Math.max(1,e.indentSize|0),this._indentSizeIsTabSize=!1),this.insertSpaces=!!e.insertSpaces,this.defaultEOL=e.defaultEOL|0,this.trimAutoWhitespace=!!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&&FI(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}}},zne=class{constructor(e,r){this._findMatchBrand=void 0,this.range=e,this.matches=r}};DVe=class{constructor(e,r,o,c,d,h){this.identifier=e,this.range=r,this.text=o,this.forceMoveMarkers=c,this.isAutoWhitespaceEdit=d,this._isTracked=h}},rAt=class{constructor(e,r,o){this.regex=e,this.wordSeparators=r,this.simpleSearch=o}},oAt=class{constructor(e,r,o){this.reverseEdits=e,this.changes=r,this.trimAutoWhitespaceLineNumbers=o}}});function Q5i(l){if(!l||l.length===0)return!1;for(let e=0,r=l.length;e=r)break;let c=l.charCodeAt(e);if(c===110||c===114||c===87)return!0}}return!1}function _Se(l,e,r){if(!r)return new zne(l,null);let o=[];for(let c=0,d=e.length;c0){let h=e.charCodeAt(o);if(l.get(h)!==0)return!0}return!1}function e9i(l,e,r,o,c){if(o+c===r)return!0;let d=e.charCodeAt(o+c);if(l.get(d)!==0||d===13||d===10)return!0;if(c>0){let h=e.charCodeAt(o+c-1);if(l.get(h)!==0)return!0}return!1}function cAt(l,e,r,o,c){return Z5i(l,e,r,o,c)&&e9i(l,e,r,o,c)}var Y5i,YY,aAt,a6e,Vne,qut=ti(()=>{Mu();EVe();Iu();Xa();MD();Y5i=999,YY=class{constructor(e,r,o,c){this.searchString=e,this.isRegex=r,this.matchCase=o,this.wordSeparators=c}parseSearchRequest(){if(this.searchString==="")return null;let e;this.isRegex?e=Q5i(this.searchString):e=this.searchString.indexOf(` +`)>=0;let r=null;try{r=DIt(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch{return null}if(!r)return null;let o=!this.isRegex&&!e;return o&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(o=this.matchCase),new rAt(r,this.wordSeparators?o3(this.wordSeparators,[]):null,o?this.searchString:null)}};aAt=class{constructor(e){let r=[],o=0;for(let c=0,d=e.length;c>0);r[d]>=e?c=d-1:r[d+1]>=e?(o=d,c=d):o=d+1}return o+1}},a6e=class{static findMatches(e,r,o,c,d){let h=r.parseSearchRequest();return h?h.regex.multiline?this._doFindMatchesMultiline(e,o,new Vne(h.wordSeparators,h.regex),c,d):this._doFindMatchesLineByLine(e,o,h,c,d):[]}static _getMultilineMatchRange(e,r,o,c,d,h){let b,w=0;c?(w=c.findLineFeedCountBeforeOffset(d),b=r+d+w):b=r+d;let N;if(c){let Y=c.findLineFeedCountBeforeOffset(d+h.length)-w;N=b+h.length+Y}else N=b+h.length;let L=e.getPositionAt(b),B=e.getPositionAt(N);return new Zt(L.lineNumber,L.column,B.lineNumber,B.column)}static _doFindMatchesMultiline(e,r,o,c,d){let h=e.getOffsetAt(r.getStartPosition()),b=e.getValueInRange(r,1),w=e.getEOL()===`\r +`?new aAt(b):null,N=[],L=0,B;for(o.reset(0);B=o.next(b);)if(N[L++]=_Se(this._getMultilineMatchRange(e,h,b,w,B.index,B[0]),B,c),L>=d)return N;return N}static _doFindMatchesLineByLine(e,r,o,c,d){let h=[],b=0;if(r.startLineNumber===r.endLineNumber){let N=e.getLineContent(r.startLineNumber).substring(r.startColumn-1,r.endColumn-1);return b=this._findMatchesInLine(o,N,r.startLineNumber,r.startColumn-1,b,h,c,d),h}let w=e.getLineContent(r.startLineNumber).substring(r.startColumn-1);b=this._findMatchesInLine(o,w,r.startLineNumber,r.startColumn-1,b,h,c,d);for(let N=r.startLineNumber+1;N=w))return d;return d}let L=new Vne(e.wordSeparators,e.regex),B;L.reset(0);do if(B=L.next(r),B&&(h[d++]=_Se(new Zt(o,B.index+1+c,o,B.index+1+B[0].length+c),B,b),d>=w))return d;while(B);return d}static findNextMatch(e,r,o,c){let d=r.parseSearchRequest();if(!d)return null;let h=new Vne(d.wordSeparators,d.regex);return d.regex.multiline?this._doFindNextMatchMultiline(e,o,h,c):this._doFindNextMatchLineByLine(e,o,h,c)}static _doFindNextMatchMultiline(e,r,o,c){let d=new qn(r.lineNumber,1),h=e.getOffsetAt(d),b=e.getLineCount(),w=e.getValueInRange(new Zt(d.lineNumber,d.column,b,e.getLineMaxColumn(b)),1),N=e.getEOL()===`\r +`?new aAt(w):null;o.reset(r.column-1);let L=o.next(w);return L?_Se(this._getMultilineMatchRange(e,h,w,N,L.index,L[0]),L,c):r.lineNumber!==1||r.column!==1?this._doFindNextMatchMultiline(e,new qn(1,1),o,c):null}static _doFindNextMatchLineByLine(e,r,o,c){let d=e.getLineCount(),h=r.lineNumber,b=e.getLineContent(h),w=this._findFirstMatchInLine(o,b,h,r.column,c);if(w)return w;for(let N=1;N<=d;N++){let L=(h+N-1)%d,B=e.getLineContent(L+1),F=this._findFirstMatchInLine(o,B,L+1,1,c);if(F)return F}return null}static _findFirstMatchInLine(e,r,o,c,d){e.reset(c-1);let h=e.next(r);return h?_Se(new Zt(o,h.index+1,o,h.index+1+h[0].length),h,d):null}static findPreviousMatch(e,r,o,c){let d=r.parseSearchRequest();if(!d)return null;let h=new Vne(d.wordSeparators,d.regex);return d.regex.multiline?this._doFindPreviousMatchMultiline(e,o,h,c):this._doFindPreviousMatchLineByLine(e,o,h,c)}static _doFindPreviousMatchMultiline(e,r,o,c){let d=this._doFindMatchesMultiline(e,new Zt(1,1,r.lineNumber,r.column),o,c,10*Y5i);if(d.length>0)return d[d.length-1];let h=e.getLineCount();return r.lineNumber!==h||r.column!==e.getLineMaxColumn(h)?this._doFindPreviousMatchMultiline(e,new qn(h,e.getLineMaxColumn(h)),o,c):null}static _doFindPreviousMatchLineByLine(e,r,o,c){let d=e.getLineCount(),h=r.lineNumber,b=e.getLineContent(h).substring(0,r.column-1),w=this._findLastMatchInLine(o,b,h,c);if(w)return w;for(let N=1;N<=d;N++){let L=(d+h-N-1)%d,B=e.getLineContent(L+1),F=this._findLastMatchInLine(o,B,L+1,c);if(F)return F}return null}static _findLastMatchInLine(e,r,o,c){let d=null,h;for(e.reset(0);h=e.next(r);)d=_Se(new Zt(o,h.index+1,o,h.index+1+h[0].length),h,c);return d}};Vne=class{constructor(e,r){this._wordSeparators=e,this._searchRegex=r,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){let r=e.length,o;do{if(this._prevMatchStartIndex+this._prevMatchLength===r||(o=this._searchRegex.exec(e),!o))return null;let c=o.index,d=o[0].length;if(c===this._prevMatchStartIndex&&d===this._prevMatchLength){if(d===0){nVe(e,r,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=c,this._prevMatchLength=d,!this._wordSeparators||cAt(this._wordSeparators,e,r,c,d))return o}while(o);return null}}});function t9i(l,e){return`[${yE(l.map(o=>String.fromCodePoint(o)).join(""))}]`}function Vyi(l){return l===" "||l===` +`||l===" "}var c6e,lAt,iei=ti(()=>{Xa();qut();Mu();jq();Vze();c6e=class{static computeUnicodeHighlights(e,r,o){let c=o?o.startLineNumber:1,d=o?o.endLineNumber:e.getLineCount(),h=new lAt(r),b=h.getCandidateCodePoints(),w;b==="allNonBasicAscii"?w=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):w=new RegExp(`${t9i(Array.from(b))}`,"g");let N=new Vne(null,w),L=[],B=!1,F,Y=0,Z=0,ee=0;e:for(let Te=c,Je=d;Te<=Je;Te++){let Xe=e.getLineContent(Te),ct=Xe.length;N.reset(0);do if(F=N.next(Xe),F){let Ct=F.index,Nt=F.index+F[0].length;if(Ct>0){let _n=Xe.charCodeAt(Ct-1);TS(_n)&&Ct--}if(Nt+1=1e3){B=!0;break e}L.push(new Zt(Te,Ct+1,Te,Nt+1))}}while(F)}return{ranges:L,hasMore:B,ambiguousCharacterCount:Y,invisibleCharacterCount:Z,nonBasicAsciiCharacterCount:ee}}static computeUnicodeHighlightReason(e,r){let o=new lAt(r);switch(o.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{let d=e.codePointAt(0),h=o.ambiguousCharacters.getPrimaryConfusable(d),b=Nne.getLocales().filter(w=>!Nne.getInstance(new Set([...r.allowedLocales,w])).isAmbiguous(d));return{kind:0,confusableWith:String.fromCodePoint(h),notAmbiguousInLocales:b}}case 1:return{kind:2}}}};lAt=class{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=Nne.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";let e=new Set;if(this.options.invisibleCharacters)for(let r of Ane.codePoints)Vyi(String.fromCodePoint(r))||e.add(r);if(this.options.ambiguousCharacters)for(let r of this.ambiguousCharacters.getConfusableCodePoints())e.add(r);for(let r of this.allowedCodePoints)e.delete(r);return e}shouldHighlightNonBasicASCII(e,r){let o=e.codePointAt(0);if(this.allowedCodePoints.has(o))return 0;if(this.options.nonBasicASCII)return 1;let c=!1,d=!1;if(r)for(let h of r){let b=h.codePointAt(0),w=Lne(h);c=c||w,!w&&!this.ambiguousCharacters.isAmbiguous(b)&&!Ane.isInvisibleCharacter(b)&&(d=!0)}return!c&&d?0:this.options.invisibleCharacters&&!Vyi(e)&&Ane.isInvisibleCharacter(o)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(o)?3:0}}});var pSe,IVe,uAt=ti(()=>{pSe=class{constructor(e,r,o){this.changes=e,this.moves=r,this.hitTimeout=o}},IVe=class{constructor(e,r){this.lineRangeMapping=e,this.changes=r}}});var x_,dAt,o7=ti(()=>{Du();x_=class l{static addRange(e,r){let o=0;for(;or))return new l(e,r)}static ofLength(e){return new l(0,e)}static ofStartAndLength(e,r){return new l(e,e+r)}constructor(e,r){if(this.start=e,this.endExclusive=r,e>r)throw new Hp(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new l(this.start+e,this.endExclusive+e)}deltaStart(e){return new l(this.start+e,this.endExclusive)}deltaEnd(e){return new l(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=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 Hp(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new Hp(`Invalid clipping range: ${this.toString()}`);return e=this.endExclusive?this.start+(e-this.start)%this.length:e}forEach(e){for(let r=this.start;re.toString()).join(", ")}intersectsStrict(e){let r=0;for(;re+r.length,0)}}});function vfe(l,e){let r=i9i(l,e);if(r!==-1)return l[r]}function i9i(l,e,r=l.length-1){for(let o=r;o>=0;o--){let c=l[o];if(e(c))return o}return-1}function bfe(l,e){let r=l6e(l,e);return r===-1?void 0:l[r]}function l6e(l,e,r=0,o=l.length){let c=r,d=o;for(;c0&&(r=c)}return r}function Uyi(l,e){if(l.length===0)return;let r=l[0];for(let o=1;o=0&&(r=c)}return r}function Jyi(l,e){return $ut(l,(r,o)=>-e(r,o))}function qyi(l,e){if(l.length===0)return-1;let r=0;for(let o=1;o0&&(r=o)}return r}function $yi(l,e){for(let r of l){let o=e(r);if(o!==void 0)return o}}var NVe,PR=ti(()=>{NVe=class l{constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(l.assertInvariants){if(this._prevFindLastPredicate){for(let o of this._array)if(this._prevFindLastPredicate(o)&&!e(o))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=e}let r=l6e(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=r+1,r===-1?void 0:this._array[r]}};NVe.assertInvariants=!1});var Rd,xV,qO=ti(()=>{Du();o7();Xa();PR();Rd=class l{static fromRangeInclusive(e){return new l(e.startLineNumber,e.endLineNumber+1)}static joinMany(e){if(e.length===0)return[];let r=new xV(e[0].slice());for(let o=1;or)throw new Hp(`startLineNumber ${e} cannot be after endLineNumberExclusive ${r}`);this.startLineNumber=e,this.endLineNumberExclusive=r}contains(e){return this.startLineNumber<=e&&ec.endLineNumberExclusive>=e.startLineNumber),o=l6e(this._normalizedRanges,c=>c.startLineNumber<=e.endLineNumberExclusive)+1;if(r===o)this._normalizedRanges.splice(r,0,e);else if(r===o-1){let c=this._normalizedRanges[r];this._normalizedRanges[r]=c.join(e)}else{let c=this._normalizedRanges[r].join(this._normalizedRanges[o-1]).join(e);this._normalizedRanges.splice(r,o-r,c)}}contains(e){let r=bfe(this._normalizedRanges,o=>o.startLineNumber<=e);return!!r&&r.endLineNumberExclusive>e}intersects(e){let r=bfe(this._normalizedRanges,o=>o.startLineNumbere.startLineNumber}getUnion(e){if(this._normalizedRanges.length===0)return e;if(e._normalizedRanges.length===0)return this;let r=[],o=0,c=0,d=null;for(;o=h.startLineNumber?d=new Rd(d.startLineNumber,Math.max(d.endLineNumberExclusive,h.endLineNumberExclusive)):(r.push(d),d=h)}return d!==null&&r.push(d),new l(r)}subtractFrom(e){let r=mSe(this._normalizedRanges,h=>h.endLineNumberExclusive>=e.startLineNumber),o=l6e(this._normalizedRanges,h=>h.startLineNumber<=e.endLineNumberExclusive)+1;if(r===o)return new l([e]);let c=[],d=e.startLineNumber;for(let h=r;hd&&c.push(new Rd(d,b.startLineNumber)),d=b.endLineNumberExclusive}return de.toString()).join(", ")}getIntersection(e){let r=[],o=0,c=0;for(;or.delta(e)))}}});var zI,Sfe=ti(()=>{Iu();Xa();zI=class l{static betweenPositions(e,r){return e.lineNumber===r.lineNumber?new l(0,r.column-e.column):new l(r.lineNumber-e.lineNumber,r.column-1)}static ofRange(e){return l.betweenPositions(e.getStartPosition(),e.getEndPosition())}static ofText(e){let r=0,o=0;for(let c of e)c===` +`?(r++,o=0):o++;return new l(r,o)}constructor(e,r){this.lineCount=e,this.columnCount=r}isGreaterThanOrEqualTo(e){return this.lineCount!==e.lineCount?this.lineCount>e.lineCount:this.columnCount>=e.columnCount}createRange(e){return this.lineCount===0?new Zt(e.lineNumber,e.column,e.lineNumber,e.column+this.columnCount):new Zt(e.lineNumber,e.column,e.lineNumber+this.lineCount,this.columnCount+1)}addToPosition(e){return this.lineCount===0?new qn(e.lineNumber,e.column+this.columnCount):new qn(e.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}};zI.zero=new zI(0,0)});var fAt,Gyi=ti(()=>{o7();Sfe();fAt=class{constructor(e){this.text=e,this.lineStartOffsetByLineIdx=[],this.lineStartOffsetByLineIdx.push(0);for(let r=0;r{jq();Du();Iu();Gyi();Xa();Sfe();hSe=class{constructor(e){this.edits=e,Bq(()=>yVe(e,(r,o)=>r.range.getEndPosition().isBeforeOrEqual(o.range.getStartPosition())))}apply(e){let r="",o=new qn(1,1);for(let d of this.edits){let h=d.range,b=h.getStartPosition(),w=h.getEndPosition(),N=Kyi(o,b);N.isEmpty()||(r+=e.getValueOfRange(N)),r+=d.text,o=w}let c=Kyi(o,e.endPositionExclusive);return c.isEmpty()||(r+=e.getValueOfRange(c)),r}applyToString(e){let r=new nei(e);return this.apply(r)}getNewRanges(){let e=[],r=0,o=0,c=0;for(let d of this.edits){let h=zI.ofText(d.text),b=qn.lift({lineNumber:d.range.startLineNumber+o,column:d.range.startColumn+(d.range.startLineNumber===r?c:0)}),w=h.createRange(b);e.push(w),o=w.endLineNumber-d.range.endLineNumber,c=w.endColumn-d.range.endColumn,r=d.range.endLineNumber}return e}},$O=class{constructor(e,r){this.range=e,this.text=r}};Gut=class{get endPositionExclusive(){return this.length.addToPosition(new qn(1,1))}},nei=class extends Gut{constructor(e){super(),this.value=e,this._t=new fAt(this.value)}getValueOfRange(e){return this._t.getOffsetRange(e).substring(this.value)}get length(){return this._t.textLength}}});var s3,a3,s7,Hne=ti(()=>{Du();qO();Xa();xfe();s3=class l{static inverse(e,r,o){let c=[],d=1,h=1;for(let w of e){let N=new l(new Rd(d,w.original.startLineNumber),new Rd(h,w.modified.startLineNumber));N.modified.isEmpty||c.push(N),d=w.original.endLineNumberExclusive,h=w.modified.endLineNumberExclusive}let b=new l(new Rd(d,r+1),new Rd(h,o+1));return b.modified.isEmpty||c.push(b),c}static clip(e,r,o){let c=[];for(let d of e){let h=d.original.intersect(r),b=d.modified.intersect(o);h&&!h.isEmpty&&b&&!b.isEmpty&&c.push(new l(h,b))}return c}constructor(e,r){this.original=e,this.modified=r}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(){let e=this.original.toInclusiveRange(),r=this.modified.toInclusiveRange();if(e&&r)return new s7(e,r);if(this.original.startLineNumber===1||this.modified.startLineNumber===1){if(!(this.modified.startLineNumber===1&&this.original.startLineNumber===1))throw new Hp("not a valid diff");return new s7(new Zt(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new Zt(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}else return new s7(new Zt(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new Zt(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}},a3=class l extends s3{static fromRangeMappings(e){let r=Rd.join(e.map(c=>Rd.fromRangeInclusive(c.originalRange))),o=Rd.join(e.map(c=>Rd.fromRangeInclusive(c.modifiedRange)));return new l(r,o,e)}constructor(e,r,o){super(e,r),this.innerChanges=o}flip(){var e;return new l(this.modified,this.original,(e=this.innerChanges)===null||e===void 0?void 0:e.map(r=>r.flip()))}withInnerChangesFromLineRanges(){return new l(this.original,this.modified,[this.toRangeMapping()])}},s7=class l{constructor(e,r){this.originalRange=e,this.modifiedRange=r}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new l(this.modifiedRange,this.originalRange)}toTextEdit(e){let r=e.getValueOfRange(this.modifiedRange);return new $O(this.originalRange,r)}}});function Yyi(l,e,r,o){return new hfe(l,e,r).ComputeDiff(o)}function r9i(l){if(l.length<=1)return l;let e=[l[0]],r=e[0];for(let o=1,c=l.length;o!0;let e=Date.now();return()=>Date.now()-e{Hut();uAt();Hne();Mu();Xa();jq();qO();n9i=3,_At=class{computeDiff(e,r,o){var c;let h=new oei(e,r,{maxComputationTime:o.maxComputationTimeMs,shouldIgnoreTrimWhitespace:o.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),b=[],w=null;for(let N of h.changes){let L;N.originalEndLineNumber===0?L=new Rd(N.originalStartLineNumber+1,N.originalStartLineNumber+1):L=new Rd(N.originalStartLineNumber,N.originalEndLineNumber+1);let B;N.modifiedEndLineNumber===0?B=new Rd(N.modifiedStartLineNumber+1,N.modifiedStartLineNumber+1):B=new Rd(N.modifiedStartLineNumber,N.modifiedEndLineNumber+1);let F=new a3(L,B,(c=N.charChanges)===null||c===void 0?void 0:c.map(Y=>new s7(new Zt(Y.originalStartLineNumber,Y.originalStartColumn,Y.originalEndLineNumber,Y.originalEndColumn),new Zt(Y.modifiedStartLineNumber,Y.modifiedStartColumn,Y.modifiedEndLineNumber,Y.modifiedEndColumn))));w&&(w.modified.endLineNumberExclusive===F.modified.startLineNumber||w.original.endLineNumberExclusive===F.original.startLineNumber)&&(F=new a3(w.original.join(F.original),w.modified.join(F.modified),w.innerChanges&&F.innerChanges?w.innerChanges.concat(F.innerChanges):void 0),b.pop()),b.push(F),w=F}return Bq(()=>yVe(b,(N,L)=>L.original.startLineNumber-N.original.endLineNumberExclusive===L.modified.startLineNumber-N.modified.endLineNumberExclusive&&N.original.endLineNumberExclusive(e===10?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[r]},${this._columns[r]})`).join(", ")+"]"}_assertIndex(e,r){if(e<0||e>=r.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 e===-1?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),this._charCodes[e]===10?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 e===-1?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),this._charCodes[e]===10?1:this._columns[e]+1)}},AVe=class l{constructor(e,r,o,c,d,h,b,w){this.originalStartLineNumber=e,this.originalStartColumn=r,this.originalEndLineNumber=o,this.originalEndColumn=c,this.modifiedStartLineNumber=d,this.modifiedStartColumn=h,this.modifiedEndLineNumber=b,this.modifiedEndColumn=w}static createFromDiffChange(e,r,o){let c=r.getStartLineNumber(e.originalStart),d=r.getStartColumn(e.originalStart),h=r.getEndLineNumber(e.originalStart+e.originalLength-1),b=r.getEndColumn(e.originalStart+e.originalLength-1),w=o.getStartLineNumber(e.modifiedStart),N=o.getStartColumn(e.modifiedStart),L=o.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),B=o.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new l(c,d,h,b,w,N,L,B)}};Kut=class l{constructor(e,r,o,c,d){this.originalStartLineNumber=e,this.originalEndLineNumber=r,this.modifiedStartLineNumber=o,this.modifiedEndLineNumber=c,this.charChanges=d}static createFromDiffResult(e,r,o,c,d,h,b){let w,N,L,B,F;if(r.originalLength===0?(w=o.getStartLineNumber(r.originalStart)-1,N=0):(w=o.getStartLineNumber(r.originalStart),N=o.getEndLineNumber(r.originalStart+r.originalLength-1)),r.modifiedLength===0?(L=c.getStartLineNumber(r.modifiedStart)-1,B=0):(L=c.getStartLineNumber(r.modifiedStart),B=c.getEndLineNumber(r.modifiedStart+r.modifiedLength-1)),h&&r.originalLength>0&&r.originalLength<20&&r.modifiedLength>0&&r.modifiedLength<20&&d()){let Y=o.createCharSequence(e,r.originalStart,r.originalStart+r.originalLength-1),Z=c.createCharSequence(e,r.modifiedStart,r.modifiedStart+r.modifiedLength-1);if(Y.getElements().length>0&&Z.getElements().length>0){let ee=Yyi(Y,Z,d,!0).changes;b&&(ee=r9i(ee)),F=[];for(let Te=0,Je=ee.length;Te1&&ee>1;){let Te=F.charCodeAt(Z-2),Je=Y.charCodeAt(ee-2);if(Te!==Je)break;Z--,ee--}(Z>1||ee>1)&&this._pushTrimWhitespaceCharChange(c,d+1,1,Z,h+1,1,ee)}{let Z=aei(F,1),ee=aei(Y,1),Te=F.length+1,Je=Y.length+1;for(;Z{sd();Du();o7();Une=class l{static trivial(e,r){return new l([new hA(x_.ofLength(e.length),x_.ofLength(r.length))],!1)}static trivialTimedOut(e,r){return new l([new hA(x_.ofLength(e.length),x_.ofLength(r.length))],!0)}constructor(e,r){this.diffs=e,this.hitTimeout=r}},hA=class l{static invert(e,r){let o=[];return ZEt(e,(c,d)=>{o.push(l.fromOffsetPairs(c?c.getEndExclusives():wB.zero,d?d.getStarts():new wB(r,(c?c.seq2Range.endExclusive-c.seq1Range.endExclusive:0)+r)))}),o}static fromOffsetPairs(e,r){return new l(new x_(e.offset1,r.offset1),new x_(e.offset2,r.offset2))}constructor(e,r){this.seq1Range=e,this.seq2Range=r}swap(){return new l(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new l(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return e===0?this:new l(this.seq1Range.delta(e),this.seq2Range.delta(e))}deltaStart(e){return e===0?this:new l(this.seq1Range.deltaStart(e),this.seq2Range.deltaStart(e))}deltaEnd(e){return e===0?this:new l(this.seq1Range.deltaEnd(e),this.seq2Range.deltaEnd(e))}intersect(e){let r=this.seq1Range.intersect(e.seq1Range),o=this.seq2Range.intersect(e.seq2Range);if(!(!r||!o))return new l(r,o)}getStarts(){return new wB(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new wB(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}},wB=class l{constructor(e,r){this.offset1=e,this.offset2=r}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(e){return e===0?this:new l(this.offset1+e,this.offset2+e)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}};wB.zero=new wB(0,0);wB.max=new wB(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);Jne=class{isValid(){return!0}};Jne.instance=new Jne;mAt=class{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new Hp("timeout must be positive")}isValid(){if(!(Date.now()-this.startTime{LVe=class{constructor(e,r){this.width=e,this.height=r,this.array=[],this.array=new Array(e*r)}get(e,r){return this.array[e+r*this.width]}set(e,r,o){this.array[e+r*this.width]=o}};OVe=class l{static getKey(e){let r=this.chrKeys.get(e);return r===void 0&&(r=this.chrKeys.size,this.chrKeys.set(e,r)),r}constructor(e,r,o){this.range=e,this.lines=r,this.source=o,this.histogram=[];let c=0;for(let d=e.startLineNumber-1;d{o7();PVe();hAt();gAt=class{compute(e,r,o=Jne.instance,c){if(e.length===0||r.length===0)return Une.trivial(e,r);let d=new LVe(e.length,r.length),h=new LVe(e.length,r.length),b=new LVe(e.length,r.length);for(let Z=0;Z0&&ee>0&&h.get(Z-1,ee-1)===3&&(Xe+=b.get(Z-1,ee-1)),Xe+=c?c(Z,ee):1):Xe=-1;let ct=Math.max(Te,Je,Xe);if(ct===Xe){let Ct=Z>0&&ee>0?b.get(Z-1,ee-1):0;b.set(Z,ee,Ct+1),h.set(Z,ee,3)}else ct===Te?(b.set(Z,ee,0),h.set(Z,ee,1)):ct===Je&&(b.set(Z,ee,0),h.set(Z,ee,2));d.set(Z,ee,ct)}let w=[],N=e.length,L=r.length;function B(Z,ee){(Z+1!==N||ee+1!==L)&&w.push(new hA(new x_(Z+1,N),new x_(ee+1,L))),N=Z,L=ee}let F=e.length-1,Y=r.length-1;for(;F>=0&&Y>=0;)h.get(F,Y)===3?(B(F,Y),F--,Y--):h.get(F,Y)===1?F--:Y--;return B(-1,-1),w.reverse(),new Une(w,!1)}}});var FVe,yAt,cei,lei,uei=ti(()=>{o7();PVe();FVe=class{compute(e,r,o=Jne.instance){if(e.length===0||r.length===0)return Une.trivial(e,r);let c=e,d=r;function h(ee,Te){for(;eec.length||Nt>d.length)continue;let Yt=h(Ct,Nt);w.set(L,Yt);let jt=Ct===Xe?N.get(L+1):N.get(L-1);if(N.set(L,Yt!==Ct?new yAt(jt,Ct,Nt,Yt-Ct):jt),w.get(L)===c.length&&w.get(L)-L===d.length)break e}}let B=N.get(L),F=[],Y=c.length,Z=d.length;for(;;){let ee=B?B.x+B.length:0,Te=B?B.y+B.length:0;if((ee!==Y||Te!==Z)&&F.push(new hA(new x_(ee,Y),new x_(Te,Z))),!B)break;Y=B.x,Z=B.y,B=B.prev}return F.reverse(),new Une(F,!1)}},yAt=class{constructor(e,r,o,c){this.prev=e,this.x=r,this.y=o,this.length=c}},cei=class{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,r){if(e<0){if(e=-e-1,e>=this.negativeArr.length){let o=this.negativeArr;this.negativeArr=new Int32Array(o.length*2),this.negativeArr.set(o)}this.negativeArr[e]=r}else{if(e>=this.positiveArr.length){let o=this.positiveArr;this.positiveArr=new Int32Array(o.length*2),this.positiveArr.set(o)}this.positiveArr[e]=r}}},lei=class{constructor(){this.positiveArr=[],this.negativeArr=[]}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,r){e<0?(e=-e-1,this.negativeArr[e]=r):this.positiveArr[e]=r}}});function dei(l){return l>=97&&l<=122||l>=65&&l<=90||l>=48&&l<=57}function evi(l){return o9i[l]}function tvi(l){return l===10?8:l===13?7:Xut(l)?6:l>=97&&l<=122?0:l>=65&&l<=90?1:l>=48&&l<=57?2:l===-1?3:l===44||l===59?5:4}var gSe,o9i,fei=ti(()=>{PR();o7();Iu();Xa();hAt();gSe=class{constructor(e,r,o){this.lines=e,this.considerWhitespaceChanges=o,this.elements=[],this.firstCharOffsetByLine=[],this.additionalOffsetByLine=[];let c=!1;r.start>0&&r.endExclusive>=e.length&&(r=new x_(r.start-1,r.endExclusive),c=!0),this.lineRange=r,this.firstCharOffsetByLine[0]=0;for(let d=this.lineRange.start;dString.fromCharCode(r)).join("")}getElement(e){return this.elements[e]}get length(){return this.elements.length}getBoundaryScore(e){let r=tvi(e>0?this.elements[e-1]:-1),o=tvi(eo<=e);return new qn(this.lineRange.start+r+1,e-this.firstCharOffsetByLine[r]+this.additionalOffsetByLine[r]+1)}translateRange(e){return Zt.fromPositions(this.translateOffset(e.start),this.translateOffset(e.endExclusive))}findWordContaining(e){if(e<0||e>=this.elements.length||!dei(this.elements[e]))return;let r=e;for(;r>0&&dei(this.elements[r-1]);)r--;let o=e;for(;oh<=e.start))!==null&&r!==void 0?r:0,d=(o=Hyi(this.firstCharOffsetByLine,h=>e.endExclusive<=h))!==null&&o!==void 0?o:this.elements.length;return new x_(c,d)}};o9i={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10}});function nvi(l,e,r,o,c,d){let{moves:h,excludedChanges:b}=a9i(l,e,r,d);if(!d.isValid())return[];let w=l.filter(L=>!b.has(L)),N=c9i(w,o,c,e,r,d);return jlt(h,N),h=l9i(h),h=h.filter(L=>{let B=L.original.toOffsetRange().slice(e).map(Y=>Y.trim());return B.join(` +`).length>=15&&s9i(B,Y=>Y.length>=2)>=2}),h=u9i(l,h),h}function s9i(l,e){let r=0;for(let o of l)e(o)&&r++;return r}function a9i(l,e,r,o){let c=[],d=l.filter(w=>w.modified.isEmpty&&w.original.length>=3).map(w=>new OVe(w.original,e,w)),h=new Set(l.filter(w=>w.original.isEmpty&&w.modified.length>=3).map(w=>new OVe(w.modified,r,w))),b=new Set;for(let w of d){let N=-1,L;for(let B of h){let F=w.computeSimilarity(B);F>N&&(N=F,L=B)}if(N>.9&&L&&(h.delete(L),c.push(new s3(w.range,L.range)),b.add(w.source),b.add(L.source)),!o.isValid())return{moves:c,excludedChanges:b}}return{moves:c,excludedChanges:b}}function c9i(l,e,r,o,c,d){let h=[],b=new dSe;for(let F of l)for(let Y=F.original.startLineNumber;YF.modified.startLineNumber,XL));for(let F of l){let Y=[];for(let Z=F.modified.startLineNumber;Z{for(let Ct of Y)if(Ct.originalLineRange.endLineNumberExclusive+1===Xe.endLineNumberExclusive&&Ct.modifiedLineRange.endLineNumberExclusive+1===Te.endLineNumberExclusive){Ct.originalLineRange=new Rd(Ct.originalLineRange.startLineNumber,Xe.endLineNumberExclusive),Ct.modifiedLineRange=new Rd(Ct.modifiedLineRange.startLineNumber,Te.endLineNumberExclusive),Je.push(Ct);return}let ct={modifiedLineRange:Te,originalLineRange:Xe};w.push(ct),Je.push(ct)}),Y=Je}if(!d.isValid())return[]}w.sort(iDt(hE(F=>F.modifiedLineRange.length,XL)));let N=new xV,L=new xV;for(let F of w){let Y=F.modifiedLineRange.startLineNumber-F.originalLineRange.startLineNumber,Z=N.subtractFrom(F.modifiedLineRange),ee=L.subtractFrom(F.originalLineRange).getWithDelta(Y),Te=Z.getIntersection(ee);for(let Je of Te.ranges){if(Je.length<3)continue;let Xe=Je,ct=Je.delta(-Y);h.push(new s3(ct,Xe)),N.addRange(Xe),L.addRange(ct)}}h.sort(hE(F=>F.original.startLineNumber,XL));let B=new NVe(l);for(let F=0;FYt.original.startLineNumber<=Y.original.startLineNumber),ee=bfe(l,Yt=>Yt.modified.startLineNumber<=Y.modified.startLineNumber),Te=Math.max(Y.original.startLineNumber-Z.original.startLineNumber,Y.modified.startLineNumber-ee.modified.startLineNumber),Je=B.findLastMonotonous(Yt=>Yt.original.startLineNumberYt.modified.startLineNumbero.length||jt>c.length||N.contains(jt)||L.contains(Yt)||!ivi(o[Yt-1],c[jt-1],d))break}Ct>0&&(L.addRange(new Rd(Y.original.startLineNumber-Ct,Y.original.startLineNumber)),N.addRange(new Rd(Y.modified.startLineNumber-Ct,Y.modified.startLineNumber)));let Nt;for(Nt=0;Nto.length||jt>c.length||N.contains(jt)||L.contains(Yt)||!ivi(o[Yt-1],c[jt-1],d))break}Nt>0&&(L.addRange(new Rd(Y.original.endLineNumberExclusive,Y.original.endLineNumberExclusive+Nt)),N.addRange(new Rd(Y.modified.endLineNumberExclusive,Y.modified.endLineNumberExclusive+Nt))),(Ct>0||Nt>0)&&(h[F]=new s3(new Rd(Y.original.startLineNumber-Ct,Y.original.endLineNumberExclusive+Nt),new Rd(Y.modified.startLineNumber-Ct,Y.modified.endLineNumberExclusive+Nt)))}return h}function ivi(l,e,r){if(l.trim()===e.trim())return!0;if(l.length>300&&e.length>300)return!1;let c=new FVe().compute(new gSe([l],new x_(0,1),!1),new gSe([e],new x_(0,1),!1),r),d=0,h=hA.invert(c.diffs,l.length);for(let L of h)L.seq1Range.forEach(B=>{Xut(l.charCodeAt(B))||d++});function b(L){let B=0;for(let F=0;Fe.length?l:e);return d/w>.6&&w>10}function l9i(l){if(l.length===0)return l;l.sort(hE(r=>r.original.startLineNumber,XL));let e=[l[0]];for(let r=1;r=0&&h>=0&&d+h<=2){e[e.length-1]=o.join(c);continue}e.push(c)}return e}function u9i(l,e){let r=new NVe(l);return e=e.filter(o=>{let c=r.findLastMonotonous(b=>b.original.startLineNumberb.modified.startLineNumber{PVe();Hne();sd();PR();pA();qO();o7();fei();hAt();uei()});function Yut(l,e,r){let o=r;return o=ovi(l,e,o),o=ovi(l,e,o),o=d9i(l,e,o),o}function ovi(l,e,r){if(r.length===0)return r;let o=[];o.push(r[0]);for(let d=1;d0&&(b=b.delta(N))}c.push(b)}return o.length>0&&c.push(o[o.length-1]),c}function d9i(l,e,r){if(!l.getBoundaryScore||!e.getBoundaryScore)return r;for(let o=0;o0?r[o-1]:void 0,d=r[o],h=o+1=o.start&&l.seq2Range.start-h>=c.start&&r.isStronglyEqual(l.seq2Range.start-h,l.seq2Range.endExclusive-h)&&h<100;)h++;h--;let b=0;for(;l.seq1Range.start+bN&&(N=Z,w=L)}return l.delta(w)}function avi(l,e,r){let o=[];for(let c of r){let d=o[o.length-1];if(!d){o.push(c);continue}c.seq1Range.start-d.seq1Range.endExclusive<=2||c.seq2Range.start-d.seq2Range.endExclusive<=2?o[o.length-1]=new hA(d.seq1Range.join(c.seq1Range),d.seq2Range.join(c.seq2Range)):o.push(c)}return o}function cvi(l,e,r){let o=hA.invert(r,l.length),c=[],d=new wB(0,0);function h(w,N){if(w.offset10;){let Te=o[0];if(!(Te.seq1Range.intersects(F.seq1Range)||Te.seq2Range.intersects(F.seq2Range)))break;let Xe=l.findWordContaining(Te.seq1Range.start),ct=e.findWordContaining(Te.seq2Range.start),Ct=new hA(Xe,ct),Nt=Ct.intersect(Te);if(Z+=Nt.seq1Range.length,ee+=Nt.seq2Range.length,F=F.join(Ct),F.seq1Range.endExclusive>=Te.seq1Range.endExclusive)o.shift();else break}Z+ee<(F.seq1Range.length+F.seq2Range.length)*2/3&&c.push(F),d=F.getEndExclusives()}for(;o.length>0;){let w=o.shift();w.seq1Range.isEmpty||(h(w.getStarts(),w),h(w.getEndExclusives().delta(-1),w))}return f9i(r,c)}function f9i(l,e){let r=[];for(;l.length>0||e.length>0;){let o=l[0],c=e[0],d;o&&(!c||o.seq1Range.start0&&r[r.length-1].seq1Range.endExclusive>=d.seq1Range.start?r[r.length-1]=r[r.length-1].join(d):r.push(d)}return r}function lvi(l,e,r){let o=r;if(o.length===0)return o;let c=0,d;do{d=!1;let h=[o[0]];for(let b=1;b5||Y.seq1Range.length+Y.seq2Range.length>5)},w=o[b],N=h[h.length-1];L(N,w)?(d=!0,h[h.length-1]=h[h.length-1].join(w)):h.push(w)}o=h}while(c++<10&&d);return o}function uvi(l,e,r){let o=r;if(o.length===0)return o;let c=0,d;do{d=!1;let b=[o[0]];for(let w=1;w5||ee.length>500)return!1;let Je=l.getText(ee).trim();if(Je.length>20||Je.split(/\r\n|\r|\n/).length>1)return!1;let Xe=l.countLinesIn(Y.seq1Range),ct=Y.seq1Range.length,Ct=e.countLinesIn(Y.seq2Range),Nt=Y.seq2Range.length,Yt=l.countLinesIn(Z.seq1Range),jt=Z.seq1Range.length,mi=e.countLinesIn(Z.seq2Range),_n=Z.seq2Range.length,Pr=2*40+50;function dr(Rr){return Math.min(Rr,Pr)}return Math.pow(Math.pow(dr(Xe*40+ct),1.5)+Math.pow(dr(Ct*40+Nt),1.5),1.5)+Math.pow(Math.pow(dr(Yt*40+jt),1.5)+Math.pow(dr(mi*40+_n),1.5),1.5)>(Pr**1.5)**1.5*1.3},N=o[w],L=b[b.length-1];B(L,N)?(d=!0,b[b.length-1]=b[b.length-1].join(N)):b.push(N)}o=b}while(c++<10&&d);let h=[];return Qhi(o,(b,w,N)=>{let L=w;function B(Je){return Je.length>0&&Je.trim().length<=3&&w.seq1Range.length+w.seq2Range.length>100}let F=l.extendToFullLines(w.seq1Range),Y=l.getText(new x_(F.start,w.seq1Range.start));B(Y)&&(L=L.deltaStart(-Y.length));let Z=l.getText(new x_(w.seq1Range.endExclusive,F.endExclusive));B(Z)&&(L=L.deltaEnd(Z.length));let ee=hA.fromOffsetPairs(b?b.getEndExclusives():wB.zero,N?N.getStarts():wB.max),Te=L.intersect(ee);h.length>0&&Te.getStarts().equals(h[h.length-1].getEndExclusives())?h[h.length-1]=h[h.length-1].join(Te):h.push(Te)}),h}var _ei=ti(()=>{sd();o7();PVe()});function dvi(l){let e=0;for(;e{Qut=class{constructor(e,r){this.trimmedHash=e,this.lines=r}getElement(e){return this.trimmedHash[e]}get length(){return this.trimmedHash.length}getBoundaryScore(e){let r=e===0?0:dvi(this.lines[e-1]),o=e===this.lines.length?0:dvi(this.lines[e]);return 1e3-(r+o)}getText(e){return this.lines.slice(e.start,e.endExclusive).join(` +`)}isStronglyEqual(e,r){return this.lines[e]===this.lines[r]}}});function _vi(l,e,r,o=!1){let c=[];for(let d of Rze(l.map(h=>_9i(h,e,r)),(h,b)=>h.original.overlapOrTouch(b.original)||h.modified.overlapOrTouch(b.modified))){let h=d[0],b=d[d.length-1];c.push(new a3(h.original.join(b.original),h.modified.join(b.modified),d.map(w=>w.innerChanges[0])))}return Bq(()=>!o&&c.length>0&&(c[0].modified.startLineNumber!==c[0].original.startLineNumber||r.length-c[c.length-1].modified.endLineNumberExclusive!==e.length-c[c.length-1].original.endLineNumberExclusive)?!1:yVe(c,(d,h)=>h.original.startLineNumber-d.original.endLineNumberExclusive===h.modified.startLineNumber-d.modified.endLineNumberExclusive&&d.original.endLineNumberExclusive=r[l.modifiedRange.startLineNumber-1].length&&l.originalRange.startColumn-1>=e[l.originalRange.startLineNumber-1].length&&l.originalRange.startLineNumber<=l.originalRange.endLineNumber+c&&l.modifiedRange.startLineNumber<=l.modifiedRange.endLineNumber+c&&(o=1);let d=new Rd(l.originalRange.startLineNumber+o,l.originalRange.endLineNumber+1+c),h=new Rd(l.modifiedRange.startLineNumber+o,l.modifiedRange.endLineNumber+1+c);return new a3(d,h,[l])}var MVe,pei=ti(()=>{sd();jq();qO();o7();Xa();PVe();Zyi();uei();rvi();_ei();fvi();fei();uAt();Hne();MVe=class{constructor(){this.dynamicProgrammingDiffing=new gAt,this.myersDiffingAlgorithm=new FVe}computeDiff(e,r,o){if(e.length<=1&&Jm(e,r,(Nt,Yt)=>Nt===Yt))return new pSe([],[],!1);if(e.length===1&&e[0].length===0||r.length===1&&r[0].length===0)return new pSe([new a3(new Rd(1,e.length+1),new Rd(1,r.length+1),[new s7(new Zt(1,1,e.length,e[e.length-1].length+1),new Zt(1,1,r.length,r[r.length-1].length+1))])],[],!1);let c=o.maxComputationTimeMs===0?Jne.instance:new mAt(o.maxComputationTimeMs),d=!o.ignoreTrimWhitespace,h=new Map;function b(Nt){let Yt=h.get(Nt);return Yt===void 0&&(Yt=h.size,h.set(Nt,Yt)),Yt}let w=e.map(Nt=>b(Nt.trim())),N=r.map(Nt=>b(Nt.trim())),L=new Qut(w,e),B=new Qut(N,r),F=L.length+B.length<1700?this.dynamicProgrammingDiffing.compute(L,B,c,(Nt,Yt)=>e[Nt]===r[Yt]?r[Yt].length===0?.1:1+Math.log(1+r[Yt].length):.99):this.myersDiffingAlgorithm.compute(L,B,c),Y=F.diffs,Z=F.hitTimeout;Y=Yut(L,B,Y),Y=lvi(L,B,Y);let ee=[],Te=Nt=>{if(d)for(let Yt=0;YtNt.seq1Range.start-Je===Nt.seq2Range.start-Xe);let Yt=Nt.seq1Range.start-Je;Te(Yt),Je=Nt.seq1Range.endExclusive,Xe=Nt.seq2Range.endExclusive;let jt=this.refineDiff(e,r,Nt,c,d);jt.hitTimeout&&(Z=!0);for(let mi of jt.mappings)ee.push(mi)}Te(e.length-Je);let ct=_vi(ee,e,r),Ct=[];return o.computeMoves&&(Ct=this.computeMoves(ct,e,r,w,N,c,d)),Bq(()=>{function Nt(jt,mi){if(jt.lineNumber<1||jt.lineNumber>mi.length)return!1;let _n=mi[jt.lineNumber-1];return!(jt.column<1||jt.column>_n.length+1)}function Yt(jt,mi){return!(jt.startLineNumber<1||jt.startLineNumber>mi.length+1||jt.endLineNumberExclusive<1||jt.endLineNumberExclusive>mi.length+1)}for(let jt of ct){if(!jt.innerChanges)return!1;for(let mi of jt.innerChanges)if(!(Nt(mi.modifiedRange.getStartPosition(),r)&&Nt(mi.modifiedRange.getEndPosition(),r)&&Nt(mi.originalRange.getStartPosition(),e)&&Nt(mi.originalRange.getEndPosition(),e)))return!1;if(!Yt(jt.modified,r)||!Yt(jt.original,e))return!1}return!0}),new pSe(ct,Ct,Z)}computeMoves(e,r,o,c,d,h,b){return nvi(e,r,o,c,d,h).map(L=>{let B=this.refineDiff(r,o,new hA(L.original.toOffsetRange(),L.modified.toOffsetRange()),h,b),F=_vi(B.mappings,r,o,!0);return new IVe(L,F)})}refineDiff(e,r,o,c,d){let h=new gSe(e,o.seq1Range,d),b=new gSe(r,o.seq2Range,d),w=h.length+b.length<500?this.dynamicProgrammingDiffing.compute(h,b,c):this.myersDiffingAlgorithm.compute(h,b,c),N=w.diffs;return N=Yut(h,b,N),N=cvi(h,b,N),N=avi(h,b,N),N=uvi(h,b,N),{mappings:N.map(B=>new s7(h.translateRange(B.seq1Range),b.translateRange(B.seq2Range))),hitTimeout:w.hitTimeout}}}});var mei,pvi=ti(()=>{Qyi();pei();mei={getLegacy:()=>new _At,getDefault:()=>new MVe}});function ySe(l,e){let r=Math.pow(10,e);return Math.round(l*r)/r}var lp,qne,QY,po,rx=ti(()=>{lp=class{constructor(e,r,o,c=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,e))|0,this.g=Math.min(255,Math.max(0,r))|0,this.b=Math.min(255,Math.max(0,o))|0,this.a=ySe(Math.max(Math.min(1,c),0),3)}static equals(e,r){return e.r===r.r&&e.g===r.g&&e.b===r.b&&e.a===r.a}},qne=class l{constructor(e,r,o,c){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,e),0)|0,this.s=ySe(Math.max(Math.min(1,r),0),3),this.l=ySe(Math.max(Math.min(1,o),0),3),this.a=ySe(Math.max(Math.min(1,c),0),3)}static equals(e,r){return e.h===r.h&&e.s===r.s&&e.l===r.l&&e.a===r.a}static fromRGBA(e){let r=e.r/255,o=e.g/255,c=e.b/255,d=e.a,h=Math.max(r,o,c),b=Math.min(r,o,c),w=0,N=0,L=(b+h)/2,B=h-b;if(B>0){switch(N=Math.min(L<=.5?B/(2*L):B/(2-2*L),1),h){case r:w=(o-c)/B+(o1&&(o-=1),o<1/6?e+(r-e)*6*o:o<1/2?r:o<2/3?e+(r-e)*(2/3-o)*6:e}static toRGBA(e){let r=e.h/360,{s:o,l:c,a:d}=e,h,b,w;if(o===0)h=b=w=c;else{let N=c<.5?c*(1+o):c+o-c*o,L=2*c-N;h=l._hue2rgb(L,N,r+1/3),b=l._hue2rgb(L,N,r),w=l._hue2rgb(L,N,r-1/3)}return new lp(Math.round(h*255),Math.round(b*255),Math.round(w*255),d)}},QY=class l{constructor(e,r,o,c){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,e),0)|0,this.s=ySe(Math.max(Math.min(1,r),0),3),this.v=ySe(Math.max(Math.min(1,o),0),3),this.a=ySe(Math.max(Math.min(1,c),0),3)}static equals(e,r){return e.h===r.h&&e.s===r.s&&e.v===r.v&&e.a===r.a}static fromRGBA(e){let r=e.r/255,o=e.g/255,c=e.b/255,d=Math.max(r,o,c),h=Math.min(r,o,c),b=d-h,w=d===0?0:b/d,N;return b===0?N=0:d===r?N=((o-c)/b%6+6)%6:d===o?N=(c-r)/b+2:N=(r-o)/b+4,new l(Math.round(N*60),w,d,e.a)}static toRGBA(e){let{h:r,s:o,v:c,a:d}=e,h=c*o,b=h*(1-Math.abs(r/60%2-1)),w=c-h,[N,L,B]=[0,0,0];return r<60?(N=h,L=b):r<120?(N=b,L=h):r<180?(L=h,B=b):r<240?(L=b,B=h):r<300?(N=b,B=h):r<=360&&(N=h,B=b),N=Math.round((N+w)*255),L=Math.round((L+w)*255),B=Math.round((B+w)*255),new lp(N,L,B,d)}},po=class l{static fromHex(e){return l.Format.CSS.parseHex(e)||l.red}static equals(e,r){return!e&&!r?!0:!e||!r?!1:e.equals(r)}get hsla(){return this._hsla?this._hsla:qne.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:QY.fromRGBA(this.rgba)}constructor(e){if(e)if(e instanceof lp)this.rgba=e;else if(e instanceof qne)this._hsla=e,this.rgba=qne.toRGBA(e);else if(e instanceof QY)this._hsva=e,this.rgba=QY.toRGBA(e);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(e){return!!e&&lp.equals(this.rgba,e.rgba)&&qne.equals(this.hsla,e.hsla)&&QY.equals(this.hsva,e.hsva)}getRelativeLuminance(){let e=l._relativeLuminanceForComponent(this.rgba.r),r=l._relativeLuminanceForComponent(this.rgba.g),o=l._relativeLuminanceForComponent(this.rgba.b),c=.2126*e+.7152*r+.0722*o;return ySe(c,4)}static _relativeLuminanceForComponent(e){let r=e/255;return r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(e){let r=this.getRelativeLuminance(),o=e.getRelativeLuminance();return r>o}isDarkerThan(e){let r=this.getRelativeLuminance(),o=e.getRelativeLuminance();return r0)for(let c of o){let d=c.filter(N=>N!==void 0),h=d[1],b=d[2];if(!b)continue;let w;if(h==="rgb"){let N=/^\(\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;w=mvi(Zut(l,c),edt(b,N),!1)}else if(h==="rgba"){let N=/^\(\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;w=mvi(Zut(l,c),edt(b,N),!0)}else if(h==="hsl"){let N=/^\(\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;w=hvi(Zut(l,c),edt(b,N),!1)}else if(h==="hsla"){let N=/^\(\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;w=hvi(Zut(l,c),edt(b,N),!0)}else h==="#"&&(w=p9i(Zut(l,c),h+b));w&&e.push(w)}return e}function yvi(l){return!l||typeof l.getValue!="function"||typeof l.positionAt!="function"?[]:m9i(l)}var vvi=ti(()=>{rx()});function Svi(l,e){var r;let o=[];if(e.findRegionSectionHeaders&&(!((r=e.foldingRules)===null||r===void 0)&&r.markers)){let c=g9i(l,e);o=o.concat(c)}if(e.findMarkSectionHeaders){let c=y9i(l);o=o.concat(c)}return o}function g9i(l,e){let r=[],o=l.getLineCount();for(let c=1;c<=o;c++){let d=l.getLineContent(c),h=d.match(e.foldingRules.markers.start);if(h){let b={startLineNumber:c,startColumn:h[0].length+1,endLineNumber:c,endColumn:d.length+1};if(b.endColumn>b.startColumn){let w={range:b,...xvi(d.substring(h[0].length)),shouldBeInComments:!1};(w.text||w.hasSeparatorLine)&&r.push(w)}}}return r}function y9i(l){let e=[],r=l.getLineCount();for(let o=1;o<=r;o++){let c=l.getLineContent(o);v9i(c,o,e)}return e}function v9i(l,e,r){bvi.lastIndex=0;let o=bvi.exec(l);if(o){let c=o.indices[1][0]+1,d=o.indices[1][1]+1,h={startLineNumber:e,startColumn:c,endLineNumber:e,endColumn:d};if(h.endColumn>h.startColumn){let b={range:h,...xvi(o[1]),shouldBeInComments:!0};(b.text||b.hasSeparatorLine)&&r.push(b)}}}function xvi(l){l=l.trim();let e=l.startsWith("-");return l=l.replace(h9i,""),{text:l,hasSeparatorLine:e}}var bvi,h9i,Cvi=ti(()=>{bvi=new RegExp("\\bMARK:\\s*(.*)$","d"),h9i=/^-+|-+$/g});var gei,u6e,kvi=ti(()=>{Hut();s0();Iu();Xa();Oyi();Vze();Myi();Ryi();vQt();zO();iei();pvi();YL();vvi();Cvi();gei=class extends iAt{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){let r=[];for(let o=0;othis._lines.length)r=this._lines.length,o=this._lines[r-1].length+1,c=!0;else{let d=this._lines[r-1].length+1;o<1?(o=1,c=!0):o>d&&(o=d,c=!0)}return c?{lineNumber:r,column:o}:e}},u6e=class l{constructor(e,r){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=r,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){let e=[];return Object.keys(this._models).forEach(r=>e.push(this._models[r])),e}acceptNewModel(e){this._models[e.url]=new gei(qc.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,r){if(!this._models[e])return;this._models[e].onEvents(r)}acceptRemovedModel(e){this._models[e]&&delete this._models[e]}async computeUnicodeHighlights(e,r,o){let c=this._getModel(e);return c?c6e.computeUnicodeHighlights(c,r,o):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async findSectionHeaders(e,r){let o=this._getModel(e);return o?Svi(o,r):[]}async computeDiff(e,r,o,c){let d=this._getModel(e),h=this._getModel(r);return!d||!h?null:l.computeDiff(d,h,o,c)}static computeDiff(e,r,o,c){let d=c==="advanced"?mei.getDefault():mei.getLegacy(),h=e.getLinesContent(),b=r.getLinesContent(),w=d.computeDiff(h,b,o),N=w.changes.length>0?!1:this._modelsAreIdentical(e,r);function L(B){return B.map(F=>{var Y;return[F.original.startLineNumber,F.original.endLineNumberExclusive,F.modified.startLineNumber,F.modified.endLineNumberExclusive,(Y=F.innerChanges)===null||Y===void 0?void 0:Y.map(Z=>[Z.originalRange.startLineNumber,Z.originalRange.startColumn,Z.originalRange.endLineNumber,Z.originalRange.endColumn,Z.modifiedRange.startLineNumber,Z.modifiedRange.startColumn,Z.modifiedRange.endLineNumber,Z.modifiedRange.endColumn])]})}return{identical:N,quitEarly:w.hitTimeout,changes:L(w.changes),moves:w.moves.map(B=>[B.lineRangeMapping.original.startLineNumber,B.lineRangeMapping.original.endLineNumberExclusive,B.lineRangeMapping.modified.startLineNumber,B.lineRangeMapping.modified.endLineNumberExclusive,L(B.changes)])}}static _modelsAreIdentical(e,r){let o=e.getLineCount(),c=r.getLineCount();if(o!==c)return!1;for(let d=1;d<=o;d++){let h=e.getLineContent(d),b=r.getLineContent(d);if(h!==b)return!1}return!0}async computeMoreMinimalEdits(e,r,o){let c=this._getModel(e);if(!c)return r;let d=[],h;r=r.slice(0).sort((w,N)=>{if(w.range&&N.range)return Zt.compareRangesUsingStarts(w.range,N.range);let L=w.range?0:1,B=N.range?0:1;return L-B});let b=0;for(let w=1;wl._diffLimit){d.push({range:w,text:N});continue}let F=Lyi(B,N,o),Y=c.offsetAt(Zt.lift(w).getStartPosition());for(let Z of F){let ee=c.positionAt(Y+Z.originalStart),Te=c.positionAt(Y+Z.originalStart+Z.originalLength),Je={text:N.substr(Z.modifiedStart,Z.modifiedLength),range:{startLineNumber:ee.lineNumber,startColumn:ee.column,endLineNumber:Te.lineNumber,endColumn:Te.column}};c.getValueInRange(Je.range)!==Je.text&&d.push(Je)}}return typeof h=="number"&&d.push({eol:h,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),d}async computeLinks(e){let r=this._getModel(e);return r?Fyi(r):null}async computeDefaultDocumentColors(e){let r=this._getModel(e);return r?yvi(r):null}async textualSuggest(e,r,o,c){let d=new vv,h=new RegExp(o,c),b=new Set;e:for(let w of e){let N=this._getModel(w);if(N){for(let L of N.words(h))if(!(L===r||!isNaN(Number(L)))&&(b.add(L),b.size>l._suggestionsLimit))break e}}return{words:Array.from(b),duration:d.elapsed()}}async computeWordRanges(e,r,o,c){let d=this._getModel(e);if(!d)return Object.create(null);let h=new RegExp(o,c),b=Object.create(null);for(let w=r.startLineNumber;wthis._host.fhr(b,w)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(h,r),Promise.resolve(Wze(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,r){if(!this._foreignModule||typeof this._foreignModule[e]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,r))}catch(o){return Promise.reject(o)}}};u6e._diffLimit=1e5;u6e._suggestionsLimit=1e4;typeof importScripts=="function"&&(globalThis.monaco=wIt())});var RVe,vAt,tdt=ti(()=>{bl();RVe=Ml("textResourceConfigurationService"),vAt=Ml("textResourcePropertiesService")});var xa,wm=ti(()=>{bl();xa=Ml("ILanguageFeaturesService")});function d6e(l,e){let r=l.getModel(e);return!(!r||r.isTooLargeForSyncing())}var b9i,idt,wvi,Tvi,bAt,yei,vei,bei,SAt,ndt,f6e,xAt=ti(()=>{Ud();co();gZt();cyi();Xa();ix();kvi();C6();tdt();sd();UO();zO();Du();wm();uAt();Hne();qO();S6();nc();b9i=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},idt=function(l,e){return function(r,o){e(r,o,l)}},wvi=60*1e3,Tvi=5*60*1e3;bAt=class extends tn{constructor(e,r,o,c,d){super(),this._modelService=e,this._workerManager=this._register(new vei(this._modelService,c)),this._logService=o,this._register(d.linkProvider.register({language:"*",hasAccessToAllModels:!0},{provideLinks:(h,b)=>d6e(this._modelService,h.uri)?this._workerManager.withWorker().then(w=>w.computeLinks(h.uri)).then(w=>w&&{links:w}):Promise.resolve({links:[]})})),this._register(d.completionProvider.register("*",new yei(this._workerManager,r,this._modelService,c)))}dispose(){super.dispose()}canComputeUnicodeHighlights(e){return d6e(this._modelService,e)}computedUnicodeHighlights(e,r,o){return this._workerManager.withWorker().then(c=>c.computedUnicodeHighlights(e,r,o))}async computeDiff(e,r,o,c){let d=await this._workerManager.withWorker().then(w=>w.computeDiff(e,r,o,c));if(!d)return null;return{identical:d.identical,quitEarly:d.quitEarly,changes:b(d.changes),moves:d.moves.map(w=>new IVe(new s3(new Rd(w[0],w[1]),new Rd(w[2],w[3])),b(w[4])))};function b(w){return w.map(N=>{var L;return new a3(new Rd(N[0],N[1]),new Rd(N[2],N[3]),(L=N[4])===null||L===void 0?void 0:L.map(B=>new s7(new Zt(B[0],B[1],B[2],B[3]),new Zt(B[4],B[5],B[6],B[7]))))})}}computeMoreMinimalEdits(e,r,o=!1){if(CS(r)){if(!d6e(this._modelService,e))return Promise.resolve(r);let c=vv.create(),d=this._workerManager.withWorker().then(h=>h.computeMoreMinimalEdits(e,r,o));return d.finally(()=>this._logService.trace("FORMAT#computeMoreMinimalEdits",e.toString(!0),c.elapsed())),Promise.race([d,HO(1e3).then(()=>r)])}else return Promise.resolve(void 0)}canNavigateValueSet(e){return d6e(this._modelService,e)}navigateValueSet(e,r,o){return this._workerManager.withWorker().then(c=>c.navigateValueSet(e,r,o))}canComputeWordRanges(e){return d6e(this._modelService,e)}computeWordRanges(e,r){return this._workerManager.withWorker().then(o=>o.computeWordRanges(e,r))}findSectionHeaders(e,r){return this._workerManager.withWorker().then(o=>o.findSectionHeaders(e,r))}};bAt=b9i([idt(0,Mh),idt(1,RVe),idt(2,jb),idt(3,cp),idt(4,xa)],bAt);yei=class{constructor(e,r,o,c){this.languageConfigurationService=c,this._debugDisplayName="wordbasedCompletions",this._workerManager=e,this._configurationService=r,this._modelService=o}async provideCompletionItems(e,r){let o=this._configurationService.getValue(e.uri,r,"editor");if(o.wordBasedSuggestions==="off")return;let c=[];if(o.wordBasedSuggestions==="currentDocument")d6e(this._modelService,e.uri)&&c.push(e.uri);else for(let B of this._modelService.getModels())d6e(this._modelService,B.uri)&&(B===e?c.unshift(B.uri):(o.wordBasedSuggestions==="allDocuments"||B.getLanguageId()===e.getLanguageId())&&c.push(B.uri));if(c.length===0)return;let d=this.languageConfigurationService.getLanguageConfiguration(e.getLanguageId()).getWordDefinition(),h=e.getWordAtPosition(r),b=h?new Zt(r.lineNumber,h.startColumn,r.lineNumber,h.endColumn):Zt.fromPositions(r),w=b.setEndPosition(r.lineNumber,r.column),L=await(await this._workerManager.withWorker()).textualSuggest(c,h?.word,d);if(L)return{duration:L.duration,suggestions:L.words.map(B=>({kind:18,label:B,insertText:B,range:{insert:w,replace:b}}))}}},vei=class extends tn{constructor(e,r){super(),this.languageConfigurationService=r,this._modelService=e,this._editorWorkerClient=null,this._lastWorkerUsedTime=new Date().getTime(),this._register(new eSe).cancelAndSet(()=>this._checkStopIdleWorker(),Math.round(Tvi/2),em),this._register(this._modelService.onModelRemoved(c=>this._checkStopEmptyWorker()))}dispose(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),super.dispose()}_checkStopEmptyWorker(){if(!this._editorWorkerClient)return;this._modelService.getModels().length===0&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}_checkStopIdleWorker(){if(!this._editorWorkerClient)return;new Date().getTime()-this._lastWorkerUsedTime>Tvi&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}withWorker(){return this._lastWorkerUsedTime=new Date().getTime(),this._editorWorkerClient||(this._editorWorkerClient=new f6e(this._modelService,!1,"editorWorkerService",this.languageConfigurationService)),Promise.resolve(this._editorWorkerClient)}},bei=class extends tn{constructor(e,r,o){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=e,this._modelService=r,!o){let c=new Ybe;c.cancelAndSet(()=>this._checkStopModelSync(),Math.round(wvi/2)),this._register(c)}}dispose(){for(let e in this._syncedModels)Fp(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(e,r){for(let o of e){let c=o.toString();this._syncedModels[c]||this._beginModelSync(o,r),this._syncedModels[c]&&(this._syncedModelsLastUsedTime[c]=new Date().getTime())}}_checkStopModelSync(){let e=new Date().getTime(),r=[];for(let o in this._syncedModelsLastUsedTime)e-this._syncedModelsLastUsedTime[o]>wvi&&r.push(o);for(let o of r)this._stopModelSync(o)}_beginModelSync(e,r){let o=this._modelService.getModel(e);if(!o||!r&&o.isTooLargeForSyncing())return;let c=e.toString();this._proxy.acceptNewModel({url:o.uri.toString(),lines:o.getLinesContent(),EOL:o.getEOL(),versionId:o.getVersionId()});let d=new Fr;d.add(o.onDidChangeContent(h=>{this._proxy.acceptModelChanged(c.toString(),h)})),d.add(o.onWillDispose(()=>{this._stopModelSync(c)})),d.add(Ma(()=>{this._proxy.acceptRemovedModel(c)})),this._syncedModels[c]=d}_stopModelSync(e){let r=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],Fp(r)}},SAt=class{constructor(e){this._instance=e,this._proxyObj=Promise.resolve(this._instance)}dispose(){this._instance.dispose()}getProxyObject(){return this._proxyObj}},ndt=class{constructor(e){this._workerClient=e}fhr(e,r){return this._workerClient.fhr(e,r)}},f6e=class extends tn{constructor(e,r,o,c){super(),this.languageConfigurationService=c,this._disposed=!1,this._modelService=e,this._keepIdleModels=r,this._workerFactory=new Rut(o),this._worker=null,this._modelManager=null}fhr(e,r){throw new Error("Not implemented!")}_getOrCreateWorker(){if(!this._worker)try{this._worker=this._register(new LNt(this._workerFactory,"vs/editor/common/services/editorSimpleWorker",new ndt(this)))}catch(e){Mut(e),this._worker=new SAt(new u6e(new ndt(this),null))}return this._worker}_getProxy(){return this._getOrCreateWorker().getProxyObject().then(void 0,e=>(Mut(e),this._worker=new SAt(new u6e(new ndt(this),null)),this._getOrCreateWorker().getProxyObject()))}_getOrCreateModelManager(e){return this._modelManager||(this._modelManager=this._register(new bei(e,this._modelService,this._keepIdleModels))),this._modelManager}async _withSyncedResources(e,r=!1){return this._disposed?Promise.reject(kgi()):this._getProxy().then(o=>(this._getOrCreateModelManager(o).ensureSyncedResources(e,r),o))}computedUnicodeHighlights(e,r,o){return this._withSyncedResources([e]).then(c=>c.computeUnicodeHighlights(e.toString(),r,o))}computeDiff(e,r,o,c){return this._withSyncedResources([e,r],!0).then(d=>d.computeDiff(e.toString(),r.toString(),o,c))}computeMoreMinimalEdits(e,r,o){return this._withSyncedResources([e]).then(c=>c.computeMoreMinimalEdits(e.toString(),r,o))}computeLinks(e){return this._withSyncedResources([e]).then(r=>r.computeLinks(e.toString()))}computeDefaultDocumentColors(e){return this._withSyncedResources([e]).then(r=>r.computeDefaultDocumentColors(e.toString()))}async textualSuggest(e,r,o){let c=await this._withSyncedResources(e),d=o.source,h=o.flags;return c.textualSuggest(e.map(b=>b.toString()),r,d,h)}computeWordRanges(e,r){return this._withSyncedResources([e]).then(o=>{let c=this._modelService.getModel(e);if(!c)return Promise.resolve(null);let d=this.languageConfigurationService.getLanguageConfiguration(c.getLanguageId()).getWordDefinition(),h=d.source,b=d.flags;return o.computeWordRanges(e.toString(),r,h,b)})}navigateValueSet(e,r,o){return this._withSyncedResources([e]).then(c=>{let d=this._modelService.getModel(e);if(!d)return null;let h=this.languageConfigurationService.getLanguageConfiguration(d.getLanguageId()).getWordDefinition(),b=h.source,w=h.flags;return c.navigateValueSet(e.toString(),r,o,b,w)})}findSectionHeaders(e,r){return this._withSyncedResources([e]).then(o=>o.findSectionHeaders(e.toString(),r))}dispose(){super.dispose(),this._disposed=!0}}});function Evi(l,e,r){return new Sei(l,e,r)}var Sei,Dvi=ti(()=>{YL();xAt();Sei=class extends f6e{constructor(e,r,o){super(e,o.keepIdleModels||!1,o.label,r),this._foreignModuleId=o.moduleId,this._foreignModuleCreateData=o.createData||null,this._foreignModuleHost=o.host||null,this._foreignProxy=null}fhr(e,r){if(!this._foreignModuleHost||typeof this._foreignModuleHost[e]!="function")return Promise.reject(new Error("Missing method "+e+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[e].apply(this._foreignModuleHost,r))}catch(o){return Promise.reject(o)}}_getForeignProxy(){return this._foreignProxy||(this._foreignProxy=this._getProxy().then(e=>{let r=this._foreignModuleHost?Wze(this._foreignModuleHost):[];return e.loadForeignModule(this._foreignModuleId,this._foreignModuleCreateData,r).then(o=>{this._foreignModuleCreateData=null;let c=(b,w)=>e.fmr(b,w),d=(b,w)=>function(){let N=Array.prototype.slice.call(arguments,0);return w(b,N)},h={};for(let b of o)h[b]=d(b,c);return h})})),this._foreignProxy}getProxy(){return this._getForeignProxy()}withSyncedResources(e){return this._withSyncedResources(e).then(r=>this.getProxy())}}});var Cfe,rdt=ti(()=>{Cfe={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"}});function BVe(l,e){return new $be([new zY(0,"",l)],e)}function vSe(l,e){let r=new Uint32Array(2);return r[0]=0,r[1]=(l<<0|0|0|32768|2<<24)>>>0,new ofe(r,e===null?$ne:e)}var $ne,jVe=ti(()=>{dy();$ne=new class{clone(){return this}equals(l){return this===l}}});var Qk,_6e=ti(()=>{Qk=class{static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static getClassNameFromMetadata(e){let o="mtk"+this.getForeground(e),c=this.getFontStyle(e);return c&1&&(o+=" mtki"),c&2&&(o+=" mtkb"),c&4&&(o+=" mtku"),c&8&&(o+=" mtks"),o}static getInlineStyleFromMetadata(e,r){let o=this.getForeground(e),c=this.getFontStyle(e),d=`color: ${r[o]};`;c&1&&(d+="font-style: italic;"),c&2&&(d+="font-weight: bold;");let h="";return c&4&&(h+=" underline"),c&8&&(h+=" line-through"),h&&(d+=`text-decoration:${h};`),d}static getPresentationFromMetadata(e){let r=this.getForeground(e),o=this.getFontStyle(e);return{foreground:r,italic:!!(o&1),bold:!!(o&2),underline:!!(o&4),strikethrough:!!(o&8)}}}});function Nvi(l,e){let r=e.lineNumber;if(!l.tokenization.isCheapToTokenize(r))return;l.tokenization.forceTokenization(r);let o=l.tokenization.getLineTokens(r),c=o.findTokenIndexAtOffset(e.column-1);return o.getStandardTokenType(c)}var Wx,xei,Vq=ti(()=>{_6e();Wx=class l{static createEmpty(e,r){let o=l.defaultTokenMetadata,c=new Uint32Array(2);return c[0]=e.length,c[1]=o,new l(c,e,r)}static createFromTextAndMetadata(e,r){let o=0,c="",d=new Array;for(let{text:h,metadata:b}of e)d.push(o+h.length,b),o+=h.length,c+=h;return new l(new Uint32Array(d),c,r)}constructor(e,r,o){this._lineTokensBrand=void 0,this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=r,this.languageIdCodec=o}equals(e){return e instanceof l?this.slicedEquals(e,0,this._tokensCount):!1}slicedEquals(e,r,o){if(this._text!==e._text||this._tokensCount!==e._tokensCount)return!1;let c=r<<1,d=c+(o<<1);for(let h=c;h0?this._tokens[e-1<<1]:0}getMetadata(e){return this._tokens[(e<<1)+1]}getLanguageId(e){let r=this._tokens[(e<<1)+1],o=Qk.getLanguageId(r);return this.languageIdCodec.decodeLanguageId(o)}getStandardTokenType(e){let r=this._tokens[(e<<1)+1];return Qk.getTokenType(r)}getForeground(e){let r=this._tokens[(e<<1)+1];return Qk.getForeground(r)}getClassName(e){let r=this._tokens[(e<<1)+1];return Qk.getClassNameFromMetadata(r)}getInlineStyle(e,r){let o=this._tokens[(e<<1)+1];return Qk.getInlineStyleFromMetadata(o,r)}getPresentation(e){let r=this._tokens[(e<<1)+1];return Qk.getPresentationFromMetadata(r)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(e){return l.findIndexInTokensArray(this._tokens,e)}inflate(){return this}sliceAndInflate(e,r,o){return new xei(this,e,r,o)}static convertToEndOffset(e,r){let c=(e.length>>>1)-1;for(let d=0;d>>1)-1;for(;or&&(c=d)}return o}withInserted(e){if(e.length===0)return this;let r=0,o=0,c="",d=new Array,h=0;for(;;){let b=rh){c+=this._text.substring(h,w.offset);let N=this._tokens[(r<<1)+1];d.push(c.length,N),h=w.offset}c+=w.text,d.push(c.length,w.tokenMetadata),o++}else break}return new l(new Uint32Array(d),c,this.languageIdCodec)}getTokenText(e){let r=this.getStartOffset(e),o=this.getEndOffset(e);return this._text.substring(r,o)}forEach(e){let r=this.getCount();for(let o=0;o>>0;xei=class l{constructor(e,r,o,c){this._source=e,this._startOffset=r,this._endOffset=o,this._deltaOffset=c,this._firstTokenIndex=e.findTokenIndexAtOffset(r),this.languageIdCodec=e.languageIdCodec,this._tokensCount=0;for(let d=this._firstTokenIndex,h=e.getCount();d=o);d++)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 l?this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount):!1}getCount(){return this._tokensCount}getStandardTokenType(e){return this._source.getStandardTokenType(this._firstTokenIndex+e)}getForeground(e){return this._source.getForeground(this._firstTokenIndex+e)}getEndOffset(e){let r=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,r)-this._startOffset+this._deltaOffset}getClassName(e){return this._source.getClassName(this._firstTokenIndex+e)}getInlineStyle(e,r){return this._source.getInlineStyle(this._firstTokenIndex+e,r)}getPresentation(e){return this._source.getPresentation(this._firstTokenIndex+e)}findTokenIndexAtOffset(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}getTokenText(e){let r=this._firstTokenIndex+e,o=this._source.getStartOffset(r),c=this._source.getEndOffset(r),d=this._source.getTokenText(r);return othis._endOffset&&(d=d.substring(0,d.length-(c-this._endOffset))),d}forEach(e){for(let r=0;r{Mu();WP=class l{constructor(e,r,o,c){this.startColumn=e,this.endColumn=r,this.className=o,this.type=c,this._lineDecorationBrand=void 0}static _equals(e,r){return e.startColumn===r.startColumn&&e.endColumn===r.endColumn&&e.className===r.className&&e.type===r.type}static equalsArr(e,r){let o=e.length,c=r.length;if(o!==c)return!1;for(let d=0;d=d||(b[w++]=new l(Math.max(1,N.startColumn-c+1),Math.min(h+1,N.endColumn-c+1),N.className,N.type));return b}static filter(e,r,o,c){if(e.length===0)return[];let d=[],h=0;for(let b=0,w=e.length;br||L.isEmpty()&&(N.type===0||N.type===3))continue;let B=L.startLineNumber===r?L.startColumn:o,F=L.endLineNumber===r?L.endColumn:c;d[h++]=new l(B,F,N.inlineClassName,N.type)}return d}static _typeCompare(e,r){let o=[2,0,1,3];return o[e]-o[r]}static compare(e,r){if(e.startColumn!==r.startColumn)return e.startColumn-r.startColumn;if(e.endColumn!==r.endColumn)return e.endColumn-r.endColumn;let o=l._typeCompare(e.type,r.type);return o!==0?o:e.className!==r.className?e.className0&&this.stopOffsets[0]0&&r=e){this.stopOffsets.splice(c,0,e),this.classNames.splice(c,0,r),this.metadata.splice(c,0,o);break}this.count++}},kAt=class{static normalize(e,r){if(r.length===0)return[];let o=[],c=new Cei,d=0;for(let h=0,b=r.length;h1){let ee=e.charCodeAt(N-2);TS(ee)&&N--}if(L>1){let ee=e.charCodeAt(L-2);TS(ee)&&L--}let Y=N-1,Z=L-2;d=c.consumeLowerThan(Y,d,o),c.count===0&&(d=Y),c.insert(Z,B,F)}return c.consumeLowerThan(1073741824,d,o),o}}});var v2,Avi=ti(()=>{v2=class{constructor(e,r,o,c){this.endIndex=e,this.type=r,this.metadata=o,this.containsRTL=c,this._linePartBrand=void 0}isWhitespace(){return!!(this.metadata&1)}isPseudoAfter(){return!!(this.metadata&4)}}});function kfe(l,e){if(l.lineContent.length===0){if(l.lineDecorations.length>0){e.appendString("");let r=0,o=0,c=0;for(let h of l.lineDecorations)(h.type===1||h.type===2)&&(e.appendString(''),h.type===1&&(c|=1,r++),h.type===2&&(c|=2,o++));e.appendString("");let d=new sdt(1,r+o);return d.setColumnInfo(1,r,0,0),new adt(d,!1,c)}return e.appendString(""),new adt(new sdt(0,0),!1,0)}return E9i(S9i(l),e)}function zVe(l){let e=new kB(1e4),r=kfe(l,e);return new kei(r.characterMapping,e.build(),r.containsRTL,r.containsForeignElements)}function S9i(l){let e=l.lineContent,r,o,c;l.stopRenderingLineAfter!==-1&&l.stopRenderingLineAfter0){for(let b=0,w=l.lineDecorations.length;b0&&(d[h++]=new v2(o,"",0,!1));let b=o;for(let w=0,N=r.getCount();w=c){let Y=e?HY(l.substring(b,c)):!1;d[h++]=new v2(c,B,0,Y);break}let F=e?HY(l.substring(b,L)):!1;d[h++]=new v2(L,B,0,F),b=L}return d}function C9i(l,e,r){let o=0,c=[],d=0;if(r)for(let h=0,b=e.length;h=50&&(c[d++]=new v2(Y+1,L,B,F),Z=Y+1,Y=-1);Z!==N&&(c[d++]=new v2(N,L,B,F))}else c[d++]=w;o=N}else for(let h=0,b=e.length;h50){let B=w.type,F=w.metadata,Y=w.containsRTL,Z=Math.ceil(L/50);for(let ee=1;ee=8234&&l<=8238||l>=8294&&l<=8297||l>=8206&&l<=8207||l===1564}function k9i(l,e){let r=[],o=new v2(0,"",0,!1),c=0;for(let d of e){let h=d.endIndex;for(;co.endIndex&&(o=new v2(c,d.type,d.metadata,d.containsRTL),r.push(o)),o=new v2(c+1,"mtkcontrol",d.metadata,!1),r.push(o))}c>o.endIndex&&(o=new v2(h,d.type,d.metadata,d.containsRTL),r.push(o))}return r}function w9i(l,e,r,o){let c=l.continuesWithWrappedLine,d=l.fauxIndentLength,h=l.tabSize,b=l.startVisibleColumn,w=l.useMonospaceOptimizations,N=l.selectionsOnLine,L=l.renderWhitespace===1,B=l.renderWhitespace===3,F=l.renderSpaceWidth!==l.spaceWidth,Y=[],Z=0,ee=0,Te=o[ee].type,Je=o[ee].containsRTL,Xe=o[ee].endIndex,ct=o.length,Ct=!1,Nt=tx(e),Yt;Nt===-1?(Ct=!0,Nt=r,Yt=r):Yt=MP(e);let jt=!1,mi=0,_n=N&&N[mi],Pr=b%h;for(let Rr=d;Rr=_n.endOffset&&(mi++,_n=N&&N[mi]);let Qn;if(RrYt)Qn=!0;else if(Tn===9)Qn=!0;else if(Tn===32)if(L)if(jt)Qn=!0;else{let ks=Rr+1Rr),Qn&&B&&(Qn=Ct||Rr>Yt),Qn&&Je&&Rr>=Nt&&Rr<=Yt&&(Qn=!1),jt){if(!Qn||!w&&Pr>=h){if(F){let ks=Z>0?Y[Z-1].endIndex:d;for(let La=ks+1;La<=Rr;La++)Y[Z++]=new v2(La,"mtkw",1,!1)}else Y[Z++]=new v2(Rr,"mtkw",1,!1);Pr=Pr%h}}else(Rr===Xe||Qn&&Rr>d)&&(Y[Z++]=new v2(Rr,Te,0,Je),Pr=Pr%h);for(Tn===9?Pr=h:fV(Tn)?Pr+=2:Pr++,jt=Qn;Rr===Xe&&(ee++,ee0?e.charCodeAt(r-1):0,Tn=r>1?e.charCodeAt(r-2):0;Rr===32&&Tn!==32&&Tn!==9||(dr=!0)}else dr=!0;if(dr)if(F){let Rr=Z>0?Y[Z-1].endIndex:d;for(let Tn=Rr+1;Tn<=r;Tn++)Y[Z++]=new v2(Tn,"mtkw",1,!1)}else Y[Z++]=new v2(r,"mtkw",1,!1);else Y[Z++]=new v2(r,Te,0,Je);return Y}function T9i(l,e,r,o){o.sort(WP.compare);let c=kAt.normalize(l,o),d=c.length,h=0,b=[],w=0,N=0;for(let B=0,F=r.length;BN&&(N=Xe.startOffset,b[w++]=new v2(N,ee,Te,Je)),Xe.endOffset+1<=Z)N=Xe.endOffset+1,b[w++]=new v2(N,ee+" "+Xe.className,Te|Xe.metadata,Je),h++;else{N=Z,b[w++]=new v2(N,ee+" "+Xe.className,Te|Xe.metadata,Je);break}}Z>N&&(N=Z,b[w++]=new v2(N,ee,Te,Je))}let L=r[r.length-1].endIndex;if(h'):e.appendString("");for(let _n=0,Pr=N.length;_n=L&&(cr+=Uc)}}for(La&&(e.appendString(' style="width:'),e.appendString(String(Z*Dl)),e.appendString('px"')),e.appendASCIICharCode(62);Ct1?e.appendCharCode(8594):e.appendCharCode(65515);for(let Uc=2;Uc<=za;Uc++)e.appendCharCode(160)}else cr=2,za=1,e.appendCharCode(ee),e.appendCharCode(8204);Yt+=cr,jt+=za,Ct>=L&&(Nt+=za)}}else for(e.appendASCIICharCode(62);Ct=L&&(Nt+=cr)}$i?mi++:mi=0,Ct>=h&&!ct&&dr.isPseudoAfter()&&(ct=!0,Xe.setColumnInfo(Ct+1,_n,Yt,jt)),e.appendString("")}return ct||Xe.setColumnInfo(h+1,N.length-1,Yt,jt),b&&(e.appendString(''),e.appendString(ce("showMore","Show more ({0})",I9i(w))),e.appendString("")),e.appendString(""),new adt(Xe,Y,c)}function D9i(l){return l.toString(16).toUpperCase().padStart(4,"0")}function I9i(l){return l<1024?ce("overflow.chars","{0} chars",l):l<1024*1024?`${(l/1024).toFixed(1)} KB`:`${(l/1024/1024).toFixed(1)} MB`}var WVe,a7,odt,sdt,adt,kei,wei,bSe=ti(()=>{ya();Mu();pfe();p6e();Avi();WVe=class{constructor(e,r){this.startOffset=e,this.endOffset=r}equals(e){return this.startOffset===e.startOffset&&this.endOffset===e.endOffset}},a7=class{constructor(e,r,o,c,d,h,b,w,N,L,B,F,Y,Z,ee,Te,Je,Xe,ct){this.useMonospaceOptimizations=e,this.canUseHalfwidthRightwardsArrow=r,this.lineContent=o,this.continuesWithWrappedLine=c,this.isBasicASCII=d,this.containsRTL=h,this.fauxIndentLength=b,this.lineTokens=w,this.lineDecorations=N.sort(WP.compare),this.tabSize=L,this.startVisibleColumn=B,this.spaceWidth=F,this.stopRenderingLineAfter=ee,this.renderWhitespace=Te==="all"?4:Te==="boundary"?1:Te==="selection"?2:Te==="trailing"?3:0,this.renderControlCharacters=Je,this.fontLigatures=Xe,this.selectionsOnLine=ct&&ct.sort((Yt,jt)=>Yt.startOffset>>16}static getCharIndex(e){return(e&65535)>>>0}constructor(e,r){this.length=e,this._data=new Uint32Array(this.length),this._horizontalOffset=new Uint32Array(this.length)}setColumnInfo(e,r,o,c){let d=(r<<16|o<<0)>>>0;this._data[e-1]=d,this._horizontalOffset[e-1]=c}getHorizontalOffset(e){return this._horizontalOffset.length===0?0:this._horizontalOffset[e-1]}charOffsetToPartData(e){return this.length===0?0:e<0?this._data[0]:e>=this.length?this._data[this.length-1]:this._data[e]}getDomPosition(e){let r=this.charOffsetToPartData(e-1),o=l.getPartIndex(r),c=l.getCharIndex(r);return new odt(o,c)}getColumn(e,r){return this.partDataToCharOffset(e.partIndex,r,e.charIndex)+1}partDataToCharOffset(e,r,o){if(this.length===0)return 0;let c=(e<<16|o<<0)>>>0,d=0,h=this.length-1;for(;d+1>>1,Te=this._data[ee];if(Te===c)return ee;Te>c?h=ee:d=ee}if(d===h)return d;let b=this._data[d],w=this._data[h];if(b===c)return d;if(w===c)return h;let N=l.getPartIndex(b),L=l.getCharIndex(b),B=l.getPartIndex(w),F;N!==B?F=r:F=l.getCharIndex(w);let Y=o-L,Z=F-o;return Y<=Z?d:h}},adt=class{constructor(e,r,o){this._renderLineOutputBrand=void 0,this.characterMapping=e,this.containsRTL=r,this.containsForeignElements=o}};kei=class{constructor(e,r,o,c){this.characterMapping=e,this.html=r,this.containsRTL=o,this.containsForeignElements=c}};wei=class{constructor(e,r,o,c,d,h,b,w,N,L,B,F,Y,Z,ee,Te){this.fontIsMonospace=e,this.canUseHalfwidthRightwardsArrow=r,this.lineContent=o,this.len=c,this.isOverflowing=d,this.overflowingCharCount=h,this.parts=b,this.containsForeignElements=w,this.fauxIndentLength=N,this.tabSize=L,this.startVisibleColumn=B,this.containsRTL=F,this.spaceWidth=Y,this.renderSpaceCharCode=Z,this.renderWhitespace=ee,this.renderControlCharacters=Te}}});var cdt,wAt,m6e,GO,wfe,TAt,VVe,h6e,Hq=ti(()=>{sd();Mu();Xa();cdt=class{constructor(e,r,o,c){this._viewportBrand=void 0,this.top=e|0,this.left=r|0,this.width=o|0,this.height=c|0}},wAt=class{constructor(e,r){this.tabSize=e,this.data=r}},m6e=class{constructor(e,r,o,c,d,h,b){this._viewLineDataBrand=void 0,this.content=e,this.continuesWithWrappedLine=r,this.minColumn=o,this.maxColumn=c,this.startVisibleColumn=d,this.tokens=h,this.inlineDecorations=b}},GO=class l{constructor(e,r,o,c,d,h,b,w,N,L){this.minColumn=e,this.maxColumn=r,this.content=o,this.continuesWithWrappedLine=c,this.isBasicASCII=l.isBasicASCII(o,h),this.containsRTL=l.containsRTL(o,this.isBasicASCII,d),this.tokens=b,this.inlineDecorations=w,this.tabSize=N,this.startVisibleColumn=L}static isBasicASCII(e,r){return r?Lne(e):!0}static containsRTL(e,r,o){return!r&&o?HY(e):!1}},wfe=class{constructor(e,r,o){this.range=e,this.inlineClassName=r,this.type=o}},TAt=class{constructor(e,r,o,c){this.startOffset=e,this.endOffset=r,this.inlineClassName=o,this.inlineClassNameAffectsLetterSpacing=c}toInlineDecoration(e){return new wfe(new Zt(e,this.startOffset+1,e,this.endOffset+1),this.inlineClassName,this.inlineClassNameAffectsLetterSpacing?3:0)}},VVe=class{constructor(e,r){this._viewModelDecorationBrand=void 0,this.range=e,this.options=r}},h6e=class l{constructor(e,r,o){this.color=e,this.zIndex=r,this.data=o}static compareByRenderingProps(e,r){return e.zIndex===r.zIndex?e.colorr.color?1:0:e.zIndex-r.zIndex}static equals(e,r){return e.color===r.color&&e.zIndex===r.zIndex&&Jm(e.data,r.data)}static equalsArr(e,r){return Jm(e,r,l.equals)}}});function N9i(l){return Array.isArray(l)}function Lvi(l){return!N9i(l)}function Tei(l){return typeof l=="string"}function Eei(l){return!Tei(l)}function SSe(l){return!l}function ZY(l,e){return l.ignoreCase&&e?e.toLowerCase():e}function Dei(l){return l.replace(/[&<>'"_]/g,"-")}function Ovi(l,e){console.log(`${l.languageId}: ${e}`)}function u1(l,e){return new Error(`${l.languageId}: ${e}`)}function Gne(l,e,r,o,c){let d=/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,h=null;return e.replace(d,function(b,w,N,L,B,F,Y,Z,ee){return SSe(N)?SSe(L)?!SSe(B)&&B0;){let o=l.tokenizer[r];if(o)return o;let c=r.lastIndexOf(".");c<0?r=null:r=r.substr(0,c)}return null}function Mvi(l,e){let r=e;for(;r&&r.length>0;){if(l.stateNames[r])return!0;let c=r.lastIndexOf(".");c<0?r=null:r=r.substr(0,c)}return!1}var Iei=ti(()=>{});function L9i(l,e){if(!e)return null;e=ZY(l,e);let r=l.brackets;for(let o of r){if(o.open===e)return{token:o.token,bracketType:1};if(o.close===e)return{token:o.token,bracketType:-1}}return null}var A9i,P9i,Nei,Bvi,g6e,UVe,HVe,Kne,udt,Aei,Pei,y6e,Lei=ti(()=>{co();dy();jVe();Iei();_y();A9i=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},P9i=function(l,e){return function(r,o){e(r,o,l)}},Bvi=5,g6e=class{static create(e,r){return this._INSTANCE.create(e,r)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,r){if(e!==null&&e.depth>=this._maxCacheDepth)return new UVe(e,r);let o=UVe.getStackElementId(e);o.length>0&&(o+="|"),o+=r;let c=this._entries[o];return c||(c=new UVe(e,r),this._entries[o]=c,c)}};g6e._INSTANCE=new g6e(Bvi);UVe=class l{constructor(e,r){this.parent=e,this.state=r,this.depth=(this.parent?this.parent.depth:0)+1}static getStackElementId(e){let r="";for(;e!==null;)r.length>0&&(r+="|"),r+=e.state,e=e.parent;return r}static _equals(e,r){for(;e!==null&&r!==null;){if(e===r)return!0;if(e.state!==r.state)return!1;e=e.parent,r=r.parent}return e===null&&r===null}equals(e){return l._equals(this,e)}push(e){return g6e.create(this,e)}pop(){return this.parent}popall(){let e=this;for(;e.parent;)e=e.parent;return e}switchTo(e){return g6e.create(this.parent,e)}},HVe=class l{constructor(e,r){this.languageId=e,this.state=r}equals(e){return this.languageId===e.languageId&&this.state.equals(e.state)}clone(){return this.state.clone()===this.state?this:new l(this.languageId,this.state)}},Kne=class{static create(e,r){return this._INSTANCE.create(e,r)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,r){if(r!==null)return new udt(e,r);if(e!==null&&e.depth>=this._maxCacheDepth)return new udt(e,r);let o=UVe.getStackElementId(e),c=this._entries[o];return c||(c=new udt(e,null),this._entries[o]=c,c)}};Kne._INSTANCE=new Kne(Bvi);udt=class l{constructor(e,r){this.stack=e,this.embeddedLanguageData=r}clone(){return(this.embeddedLanguageData?this.embeddedLanguageData.clone():null)===this.embeddedLanguageData?this:Kne.create(this.stack,this.embeddedLanguageData)}equals(e){return!(e instanceof l)||!this.stack.equals(e.stack)?!1:this.embeddedLanguageData===null&&e.embeddedLanguageData===null?!0:this.embeddedLanguageData===null||e.embeddedLanguageData===null?!1:this.embeddedLanguageData.equals(e.embeddedLanguageData)}},Aei=class{constructor(){this._tokens=[],this._languageId=null,this._lastTokenType=null,this._lastTokenLanguage=null}enterLanguage(e){this._languageId=e}emit(e,r){this._lastTokenType===r&&this._lastTokenLanguage===this._languageId||(this._lastTokenType=r,this._lastTokenLanguage=this._languageId,this._tokens.push(new zY(e,r,this._languageId)))}nestedLanguageTokenize(e,r,o,c){let d=o.languageId,h=o.state,b=a0.get(d);if(!b)return this.enterLanguage(d),this.emit(c,""),h;let w=b.tokenize(e,r,h);if(c!==0)for(let N of w.tokens)this._tokens.push(new zY(N.offset+c,N.type,N.language));else this._tokens=this._tokens.concat(w.tokens);return this._lastTokenType=null,this._lastTokenLanguage=null,this._languageId=null,w.endState}finalize(e){return new $be(this._tokens,e)}},Pei=class l{constructor(e,r){this._languageService=e,this._theme=r,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}enterLanguage(e){this._currentLanguageId=this._languageService.languageIdCodec.encodeLanguageId(e)}emit(e,r){let o=this._theme.match(this._currentLanguageId,r)|1024;this._lastTokenMetadata!==o&&(this._lastTokenMetadata=o,this._tokens.push(e),this._tokens.push(o))}static _merge(e,r,o){let c=e!==null?e.length:0,d=r.length,h=o!==null?o.length:0;if(c===0&&d===0&&h===0)return new Uint32Array(0);if(c===0&&d===0)return o;if(d===0&&h===0)return e;let b=new Uint32Array(c+d+h);e!==null&&b.set(e);for(let w=0;w{if(h)return;let w=!1;for(let N=0,L=b.changedLanguages.length;N{b.affectsConfiguration("editor.maxTokenizationLineLength")&&(this._maxTokenizationLineLength=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:this._languageId}))}))}getLoadStatus(){let e=[];for(let r in this._embeddedLanguages){let o=a0.get(r);if(o){if(o instanceof Nei){let c=o.getLoadStatus();c.loaded===!1&&e.push(c.promise)}continue}a0.isResolved(r)||e.push(a0.getOrCreate(r))}return e.length===0?{loaded:!0}:{loaded:!1,promise:Promise.all(e).then(r=>{})}}getInitialState(){let e=g6e.create(null,this._lexer.start);return Kne.create(e,null)}tokenize(e,r,o){if(e.length>=this._maxTokenizationLineLength)return BVe(this._languageId,o);let c=new Aei,d=this._tokenize(e,r,o,c);return c.finalize(d)}tokenizeEncoded(e,r,o){if(e.length>=this._maxTokenizationLineLength)return vSe(this._languageService.languageIdCodec.encodeLanguageId(this._languageId),o);let c=new Pei(this._languageService,this._standaloneThemeService.getColorTheme().tokenTheme),d=this._tokenize(e,r,o,c);return c.finalize(d)}_tokenize(e,r,o,c){return o.embeddedLanguageData?this._nestedTokenize(e,r,o,0,c):this._myTokenize(e,r,o,0,c)}_findLeavingNestedLanguageOffset(e,r){let o=this._lexer.tokenizer[r.stack.state];if(!o&&(o=ldt(this._lexer,r.stack.state),!o))throw u1(this._lexer,"tokenizer state is not defined: "+r.stack.state);let c=-1,d=!1;for(let h of o){if(!Eei(h.action)||h.action.nextEmbedded!=="@pop")continue;d=!0;let b=h.resolveRegex(r.stack.state),w=b.source;if(w.substr(0,4)==="^(?:"&&w.substr(w.length-1,1)===")"){let L=(b.ignoreCase?"i":"")+(b.unicode?"u":"");b=new RegExp(w.substr(4,w.length-5),L)}let N=e.search(b);N===-1||N!==0&&h.matchOnlyAtLineStart||(c===-1||N0&&d.nestedLanguageTokenize(b,!1,o.embeddedLanguageData,c);let w=e.substring(h);return this._myTokenize(w,r,o,c+h,d)}_safeRuleName(e){return e?e.name:"(unknown)"}_myTokenize(e,r,o,c,d){d.enterLanguage(this._languageId);let h=e.length,b=r&&this._lexer.includeLF?e+` +`:e,w=b.length,N=o.embeddedLanguageData,L=o.stack,B=0,F=null,Y=!0;for(;Y||B=w)break;Y=!1;let _n=this._lexer.tokenizer[Je];if(!_n&&(_n=ldt(this._lexer,Je),!_n))throw u1(this._lexer,"tokenizer state is not defined: "+Je);let Pr=b.substr(B);for(let dr of _n)if((B===0||!dr.matchOnlyAtLineStart)&&(Xe=Pr.match(dr.resolveRegex(Je)),Xe)){ct=Xe[0],Ct=dr.action;break}}if(Xe||(Xe=[""],ct=""),Ct||(B=this._lexer.maxStack)throw u1(this._lexer,"maximum tokenizer stack size reached: ["+L.state+","+L.parent.state+",...]");L=L.push(Je)}else if(Ct.next==="@pop"){if(L.depth<=1)throw u1(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(Nt));L=L.pop()}else if(Ct.next==="@popall")L=L.popall();else{let _n=Gne(this._lexer,Ct.next,ct,Xe,Je);if(_n[0]==="@"&&(_n=_n.substr(1)),ldt(this._lexer,_n))L=L.push(_n);else throw u1(this._lexer,"trying to set a next state '"+_n+"' that is undefined in rule: "+this._safeRuleName(Nt))}}Ct.log&&typeof Ct.log=="string"&&Ovi(this._lexer,this._lexer.languageId+": "+Gne(this._lexer,Ct.log,ct,Xe,Je))}if(jt===null)throw u1(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(Nt));let mi=_n=>{let Pr=this._languageService.getLanguageIdByLanguageName(_n)||this._languageService.getLanguageIdByMimeType(_n)||_n,dr=this._getNestedEmbeddedLanguageData(Pr);if(B0)throw u1(this._lexer,"groups cannot be nested: "+this._safeRuleName(Nt));if(Xe.length!==jt.length+1)throw u1(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(Nt));let _n=0;for(let Pr=1;Pr{let h=()=>{let b=F9i(l,e,r,o);if(r instanceof y6e){let w=r.getLoadStatus();if(w.loaded===!1){w.promise.then(h,d);return}}c(b)};h()})}function jvi(l,e,r){let o=[],d=new Uint32Array(2);d[0]=0,d[1]=33587200;for(let h=0,b=l.length;h")}return o.join("")}function F9i(l,e,r,o){let c=[],d=r.getInitialState();for(let h=0,b=l.length;h"),d=N.endState}return c.join("")}var Oei,JVe,Wvi=ti(()=>{Bne();Mu();dy();Vq();bSe();Hq();Lei();Oei=r3("standaloneColorizer",{createHTML:l=>l}),JVe=class{static colorizeElement(e,r,o,c){c=c||{};let d=c.theme||"vs",h=c.mimeType||o.getAttribute("lang")||o.getAttribute("data-lang");if(!h)return console.error("Mode not detected"),Promise.resolve();let b=r.getLanguageIdByMimeType(h)||h;e.setTheme(d);let w=o.firstChild?o.firstChild.nodeValue:"";o.className+=" "+d;let N=L=>{var B;let F=(B=Oei?.createHTML(L))!==null&&B!==void 0?B:L;o.innerHTML=F};return this.colorize(r,w||"",b,c).then(N,L=>console.error(L))}static async colorize(e,r,o,c){let d=e.languageIdCodec,h=4;c&&typeof c.tabSize=="number"&&(h=c.tabSize),rVe(r)&&(r=r.substr(1));let b=x6(r);if(!e.isRegisteredLanguageId(o))return jvi(b,h,d);let w=await a0.getOrCreate(o);return w?O9i(b,h,w,d):jvi(b,h,d)}static colorizeLine(e,r,o,c,d=4){let h=GO.isBasicASCII(e,r),b=GO.containsRTL(e,h,o);return zVe(new a7(!1,!0,e,!1,h,b,0,c,[],d,0,0,0,0,-1,"none",!1,!1,null)).html}static colorizeModelLine(e,r,o=4){let c=e.getLineContent(r);e.tokenization.forceTokenization(r);let h=e.tokenization.getLineTokens(r).inflate();return this.colorizeLine(c,e.mightContainNonBasicASCII(),e.mightContainRTL(),h,o)}}});var zvi=ti(()=>{});function Hvi(l){v6e=document.createElement("div"),v6e.className="monaco-aria-container";let e=()=>{let o=document.createElement("div");return o.className="monaco-alert",o.setAttribute("role","alert"),o.setAttribute("aria-atomic","true"),v6e.appendChild(o),o};EAt=e(),Fei=e();let r=()=>{let o=document.createElement("div");return o.className="monaco-status",o.setAttribute("aria-live","polite"),o.setAttribute("aria-atomic","true"),v6e.appendChild(o),o};DAt=r(),Mei=r(),l.appendChild(v6e)}function Zk(l){v6e&&(EAt.textContent!==l?(DS(Fei),IAt(EAt,l)):(DS(EAt),IAt(Fei,l)))}function c3(l){v6e&&(DAt.textContent!==l?(DS(Mei),IAt(DAt,l)):(DS(DAt),IAt(Mei,l)))}function IAt(l,e){DS(l),e.length>Vvi&&(e=e.substr(0,Vvi)),l.textContent=e,l.style.visibility="hidden",l.style.visibility="visible"}var Vvi,v6e,EAt,Fei,DAt,Mei,gA=ti(()=>{nc();zvi();Vvi=2e4});var qVe,NAt=ti(()=>{bl();qVe=Ml("markerDecorationsService")});var M9i,R9i,fdt,Uvi=ti(()=>{NAt();vf();M9i=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},R9i=function(l,e){return function(r,o){e(r,o,l)}},fdt=class{constructor(e,r){}dispose(){}};fdt.ID="editor.contrib.markerDecorations";fdt=M9i([R9i(1,qVe)],fdt);ku(fdt.ID,fdt,0)});var Jvi=ti(()=>{});var $Ve,Rei=ti(()=>{co();xc();nc();$Ve=class extends tn{constructor(e,r){super(),this._onDidChange=this._register(new wn),this.onDidChange=this._onDidChange.event,this._referenceDomElement=e,this._width=-1,this._height=-1,this._resizeObserver=null,this.measureReferenceDomElement(!1,r)}dispose(){this.stopObserving(),super.dispose()}getWidth(){return this._width}getHeight(){return this._height}startObserving(){if(!this._resizeObserver&&this._referenceDomElement){let e=null,r=()=>{e?this.observe({width:e.width,height:e.height}):this.observe()},o=!1,c=!1,d=()=>{if(o&&!c)try{o=!1,c=!0,r()}finally{LD(Gc(this._referenceDomElement),()=>{c=!1,d()})}};this._resizeObserver=new ResizeObserver(h=>{h&&h[0]&&h[0].contentRect?e={width:h[0].contentRect.width,height:h[0].contentRect.height}:e=null,o=!0,d()}),this._resizeObserver.observe(this._referenceDomElement)}}stopObserving(){this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null)}observe(e){this.measureReferenceDomElement(!0,e)}measureReferenceDomElement(e,r){let o=0,c=0;r?(o=r.width,c=r.height):this._referenceDomElement&&(o=this._referenceDomElement.clientWidth,c=this._referenceDomElement.clientHeight),o=Math.max(5,o),c=Math.max(5,c),(this._width!==o||this._height!==c)&&(this._width=o,this._height=c,e&&this._onDidChange.fire())}}});function eQ(l,e){GVe.items.push(new GVe(l,e))}function LR(l,e){eQ(l,(r,o,c)=>{if(typeof r<"u"){for(let[d,h]of e)if(r===d){c(l,h);return}}})}function qvi(l){GVe.items.forEach(e=>e.apply(l))}var GVe,B9i,$vi=ti(()=>{GVe=class l{constructor(e,r){this.key=e,this.migrate=r}apply(e){let r=l._read(e,this.key),o=d=>l._read(e,d),c=(d,h)=>l._write(e,d,h);this.migrate(r,o,c)}static _read(e,r){if(typeof e>"u")return;let o=r.indexOf(".");if(o>=0){let c=r.substring(0,o);return this._read(e[c],r.substring(o+1))}return e[r]}static _write(e,r,o){let c=r.indexOf(".");if(c>=0){let d=r.substring(0,c);e[d]=e[d]||{},this._write(e[d],r.substring(c+1),o);return}e[r]=o}};GVe.items=[];LR("wordWrap",[[!0,"on"],[!1,"off"]]);LR("lineNumbers",[[!0,"on"],[!1,"off"]]);LR("cursorBlinking",[["visible","solid"]]);LR("renderWhitespace",[[!0,"boundary"],[!1,"none"]]);LR("renderLineHighlight",[[!0,"line"],[!1,"none"]]);LR("acceptSuggestionOnEnter",[[!0,"on"],[!1,"off"]]);LR("tabCompletion",[[!1,"off"],[!0,"onlySnippets"]]);LR("hover",[[!0,{enabled:!0}],[!1,{enabled:!1}]]);LR("parameterHints",[[!0,{enabled:!0}],[!1,{enabled:!1}]]);LR("autoIndent",[[!1,"advanced"],[!0,"full"]]);LR("matchBrackets",[[!0,"always"],[!1,"never"]]);LR("renderFinalNewline",[[!0,"on"],[!1,"off"]]);LR("cursorSmoothCaretAnimation",[[!0,"on"],[!1,"off"]]);LR("occurrencesHighlight",[[!0,"singleFile"],[!1,"off"]]);LR("wordBasedSuggestions",[[!0,"matchingDocuments"],[!1,"off"]]);eQ("autoClosingBrackets",(l,e,r)=>{l===!1&&(r("autoClosingBrackets","never"),typeof e("autoClosingQuotes")>"u"&&r("autoClosingQuotes","never"),typeof e("autoSurround")>"u"&&r("autoSurround","never"))});eQ("renderIndentGuides",(l,e,r)=>{typeof l<"u"&&(r("renderIndentGuides",void 0),typeof e("guides.indentation")>"u"&&r("guides.indentation",!!l))});eQ("highlightActiveIndentGuide",(l,e,r)=>{typeof l<"u"&&(r("highlightActiveIndentGuide",void 0),typeof e("guides.highlightActiveIndentation")>"u"&&r("guides.highlightActiveIndentation",!!l))});B9i={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"};eQ("suggest.filteredTypes",(l,e,r)=>{if(l&&typeof l=="object"){for(let o of Object.entries(B9i))l[o[0]]===!1&&typeof e(`suggest.${o[1]}`)>"u"&&r(`suggest.${o[1]}`,!1);r("suggest.filteredTypes",void 0)}});eQ("quickSuggestions",(l,e,r)=>{if(typeof l=="boolean"){let o=l?"on":"off";r("quickSuggestions",{comments:o,strings:o,other:o})}});eQ("experimental.stickyScroll.enabled",(l,e,r)=>{typeof l=="boolean"&&(r("experimental.stickyScroll.enabled",void 0),typeof e("stickyScroll.enabled")>"u"&&r("stickyScroll.enabled",l))});eQ("experimental.stickyScroll.maxLineCount",(l,e,r)=>{typeof l=="number"&&(r("experimental.stickyScroll.maxLineCount",void 0),typeof e("stickyScroll.maxLineCount")>"u"&&r("stickyScroll.maxLineCount",l))});eQ("codeActionsOnSave",(l,e,r)=>{if(l&&typeof l=="object"){let o=!1,c={};for(let d of Object.entries(l))typeof d[1]=="boolean"?(o=!0,c[d[0]]=d[1]?"explicit":"never"):c[d[0]]=d[1];o&&r("codeActionsOnSave",c)}});eQ("codeActionWidget.includeNearbyQuickfixes",(l,e,r)=>{typeof l=="boolean"&&(r("codeActionWidget.includeNearbyQuickfixes",void 0),typeof e("codeActionWidget.includeNearbyQuickFixes")>"u"&&r("codeActionWidget.includeNearbyQuickFixes",l))});eQ("lightbulb.enabled",(l,e,r)=>{typeof l=="boolean"&&r("lightbulb.enabled",l?void 0:"off")})});var Bei,Tfe,AAt=ti(()=>{xc();Bei=class{constructor(){this._tabFocus=!1,this._onDidChangeTabFocus=new wn,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}getTabFocusMode(){return this._tabFocus}setTabFocusMode(e){this._tabFocus=e,this._onDidChangeTabFocus.fire(this._tabFocus)}},Tfe=new Bei});var ck,b6e,KO=ti(()=>{hd();bl();ck=Ml("accessibilityService"),b6e=new va("accessibilityModeEnabled",!1)});function z9i(l){let e=0;for(;l;)l=Math.floor(l/10),e++;return e||1}function V9i(){let l="";return!TR&&!FIt&&(l+="no-user-select "),TR&&(l+="no-minimap-shadow ",l+="enable-user-select "),md&&(l+="mac "),l}function Gvi(l){let e=Aq(l);return qvi(e),e}var j9i,W9i,PAt,jei,Wei,S6e,Kvi=ti(()=>{ZF();sd();xc();co();YL();X_();Rei();iZt();$vi();AAt();TT();gVe();_Nt();KO();nc();dNt();j9i=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},W9i=function(l,e){return function(r,o){e(r,o,l)}},PAt=class extends tn{constructor(e,r,o,c,d){super(),this._accessibilityService=d,this._onDidChange=this._register(new wn),this.onDidChange=this._onDidChange.event,this._onDidChangeFast=this._register(new wn),this.onDidChangeFast=this._onDidChangeFast.event,this._isDominatedByLongLines=!1,this._viewLineCount=1,this._lineNumbersDigitCount=1,this._reservedHeight=0,this._glyphMarginDecorationLaneCount=1,this._computeOptionsMemory=new qlt,this.isSimpleWidget=e,this.contextMenuId=r,this._containerObserver=this._register(new $Ve(c,o.dimension)),this._targetWindowId=Gc(c).vscodeWindowId,this._rawOptions=Gvi(o),this._validatedOptions=S6e.validateOptions(this._rawOptions),this.options=this._computeOptions(),this.options.get(13)&&this._containerObserver.startObserving(),this._register(t3.onDidChangeZoomLevel(()=>this._recomputeOptions())),this._register(Tfe.onDidChangeTabFocus(()=>this._recomputeOptions())),this._register(this._containerObserver.onDidChange(()=>this._recomputeOptions())),this._register(Iut.onDidChange(()=>this._recomputeOptions())),this._register(tSe.getInstance(Gc(c)).onDidChange(()=>this._recomputeOptions())),this._register(this._accessibilityService.onDidChangeScreenReaderOptimized(()=>this._recomputeOptions()))}_recomputeOptions(){let e=this._computeOptions(),r=S6e.checkEquals(this.options,e);r!==null&&(this.options=e,this._onDidChangeFast.fire(r),this._onDidChange.fire(r))}_computeOptions(){let e=this._readEnvConfiguration(),r=K4e.createFromValidatedSettings(this._validatedOptions,e.pixelRatio,this.isSimpleWidget),o=this._readFontInfo(r),c={memory:this._computeOptionsMemory,outerWidth:e.outerWidth,outerHeight:e.outerHeight-this._reservedHeight,fontInfo:o,extraEditorClassName:e.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,viewLineCount:this._viewLineCount,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:e.emptySelectionClipboard,pixelRatio:e.pixelRatio,tabFocusMode:Tfe.getTabFocusMode(),accessibilitySupport:e.accessibilitySupport,glyphMarginDecorationLaneCount:this._glyphMarginDecorationLaneCount};return S6e.computeOptions(this._validatedOptions,c)}_readEnvConfiguration(){return{extraEditorClassName:V9i(),outerWidth:this._containerObserver.getWidth(),outerHeight:this._containerObserver.getHeight(),emptySelectionClipboard:UY||AD,pixelRatio:tSe.getInstance(JQt(this._targetWindowId,!0).window).value,accessibilitySupport:this._accessibilityService.isScreenReaderOptimized()?2:this._accessibilityService.getAccessibilitySupport()}}_readFontInfo(e){return Iut.readFontInfo(JQt(this._targetWindowId,!0).window,e)}getRawOptions(){return this._rawOptions}updateOptions(e){let r=Gvi(e);S6e.applyUpdate(this._rawOptions,r)&&(this._validatedOptions=S6e.validateOptions(this._rawOptions),this._recomputeOptions())}observeContainer(e){this._containerObserver.observe(e)}setIsDominatedByLongLines(e){this._isDominatedByLongLines!==e&&(this._isDominatedByLongLines=e,this._recomputeOptions())}setModelLineCount(e){let r=z9i(e);this._lineNumbersDigitCount!==r&&(this._lineNumbersDigitCount=r,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())}};PAt=j9i([W9i(4,ck)],PAt);jei=class{constructor(){this._values=[]}_read(e){return this._values[e]}get(e){return this._values[e]}_write(e,r){this._values[e]=r}},Wei=class{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,r){this._values[e]=r}},S6e=class l{static validateOptions(e){let r=new jei;for(let o of Rbe){let c=o.name==="_never_"?void 0:e[o.name];r._write(o.id,o.validate(c))}return r}static computeOptions(e,r){let o=new Wei;for(let c of Rbe)o._write(c.id,c.compute(r,o,e._read(c.id)));return o}static _deepEquals(e,r){if(typeof e!="object"||typeof r!="object"||!e||!r)return e===r;if(Array.isArray(e)||Array.isArray(r))return Array.isArray(e)&&Array.isArray(r)?Jm(e,r):!1;if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let o in e)if(!l._deepEquals(e[o],r[o]))return!1;return!0}static checkEquals(e,r){let o=[],c=!1;for(let d of Rbe){let h=!l._deepEquals(e._read(d.id),r._read(d.id));o[d.id]=h,h&&(c=!0)}return c?new Jze(o):null}static applyUpdate(e,r){let o=!1;for(let c of Rbe)if(r.hasOwnProperty(c.name)){let d=c.applyUpdate(e[c.name],r[c.name]);e[c.name]=d.newValue,o=o||d.didChange}return o}}});var Xne,zei=ti(()=>{(function(l){let e={total:0,min:Number.MAX_VALUE,max:0},r={...e},o={...e},c={...e},d=0,h={keydown:0,input:0,render:0};function b(){Je(),performance.mark("inputlatency/start"),performance.mark("keydown/start"),h.keydown=1,queueMicrotask(w)}l.onKeyDown=b;function w(){h.keydown===1&&(performance.mark("keydown/end"),h.keydown=2)}function N(){performance.mark("input/start"),h.input=1,Te()}l.onBeforeInput=N;function L(){h.input===0&&N(),queueMicrotask(B)}l.onInput=L;function B(){h.input===1&&(performance.mark("input/end"),h.input=2)}function F(){Je()}l.onKeyUp=F;function Y(){Je()}l.onSelectionChange=Y;function Z(){h.keydown===2&&h.input===2&&h.render===0&&(performance.mark("render/start"),h.render=1,queueMicrotask(ee),Te())}l.onRenderStart=Z;function ee(){h.render===1&&(performance.mark("render/end"),h.render=2)}function Te(){setTimeout(Je)}function Je(){h.keydown===2&&h.input===2&&h.render===2&&(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"),Xe("keydown",e),Xe("input",r),Xe("render",o),Xe("inputlatency",c),d++,ct())}function Xe(jt,mi){let _n=performance.getEntriesByName(jt)[0].duration;mi.total+=_n,mi.min=Math.min(mi.min,_n),mi.max=Math.max(mi.max,_n)}function ct(){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"),h.keydown=0,h.input=0,h.render=0}function Ct(){if(d===0)return;let jt={keydown:Nt(e),input:Nt(r),render:Nt(o),total:Nt(c),sampleCount:d};return Yt(e),Yt(r),Yt(o),Yt(c),d=0,jt}l.getAndClearMeasurements=Ct;function Nt(jt){return{average:jt.total/d,max:jt.max,min:jt.min}}function Yt(jt){jt.total=0,jt.min=Number.MAX_VALUE,jt.max=0}})(Xne||(Xne={}))});var CV,KVe=ti(()=>{nc();co();CV=class{constructor(){this._hooks=new Fr,this._pointerMoveCallback=null,this._onStopCallback=null}dispose(){this.stopMonitoring(!1),this._hooks.dispose()}stopMonitoring(e,r){if(!this.isMonitoring())return;this._hooks.clear(),this._pointerMoveCallback=null;let o=this._onStopCallback;this._onStopCallback=null,e&&o&&o(r)}isMonitoring(){return!!this._pointerMoveCallback}startMonitoring(e,r,o,c,d){this.isMonitoring()&&this.stopMonitoring(!1),this._pointerMoveCallback=c,this._onStopCallback=d;let h=e;try{e.setPointerCapture(r),this._hooks.add(Ma(()=>{try{e.releasePointerCapture(r)}catch{}}))}catch{h=Gc(e)}this._hooks.add(Jr(h,ls.POINTER_MOVE,b=>{if(b.buttons!==o){this.stopMonitoring(!0);return}b.preventDefault(),this._pointerMoveCallback(b)})),this._hooks.add(Jr(h,ls.POINTER_UP,b=>this.stopMonitoring(!0)))}}});function LAt(l){return`--vscode-${l.replace(/\./g,"-")}`}function Xc(l){return`var(${LAt(l)})`}function Yvi(l,e){return`var(${LAt(l)}, ${e})`}function hn(l,e,r,o,c){return OAt.registerColor(l,e,r,o,c)}function H9i(l,e){var r,o,c,d;switch(l.op){case 0:return(r=tQ(l.value,e))===null||r===void 0?void 0:r.darken(l.factor);case 1:return(o=tQ(l.value,e))===null||o===void 0?void 0:o.lighten(l.factor);case 2:return(c=tQ(l.value,e))===null||c===void 0?void 0:c.transparent(l.factor);case 3:{let h=tQ(l.background,e);return h?(d=tQ(l.value,e))===null||d===void 0?void 0:d.makeOpaque(h):tQ(l.value,e)}case 4:for(let h of l.values){let b=tQ(h,e);if(b)return b}return;case 6:return tQ(e.defines(l.if)?l.then:l.else,e);case 5:{let h=tQ(l.value,e);if(!h)return;let b=tQ(l.background,e);return b?h.isDarkerThan(b)?po.getLighterColor(h,b,l.factor).transparent(l.transparency):po.getDarkerColor(h,b,l.factor).transparent(l.transparency):h.transparent(l.factor*l.transparency)}default:throw iSe(l)}}function Yne(l,e){return{op:0,value:l,factor:e}}function TB(l,e){return{op:1,value:l,factor:e}}function eu(l,e){return{op:2,value:l,factor:e}}function x6e(...l){return{op:4,values:l}}function Qvi(l,e,r){return{op:6,if:l,then:e,else:r}}function Uei(l,e,r,o){return{op:5,value:l,background:e,factor:r,transparency:o}}function tQ(l,e){if(l!==null){if(typeof l=="string")return l[0]==="#"?po.fromHex(l):e.getColor(l);if(l instanceof po)return l;if(typeof l=="object")return H9i(l,e)}}var Hei,Vei,OAt,Zvi,e1i,Xvi,Uq=ti(()=>{jq();Ud();rx();xc();HNt();DT();Hei={ColorContribution:"base.contributions.colors"},Vei=class{constructor(){this._onDidChangeSchema=new wn,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(e,r,o,c=!1,d){let h={id:e,description:o,defaults:r,needsTransparency:c,deprecationMessage:d};this.colorsById[e]=h;let b={type:"string",description:o,format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return d&&(b.deprecationMessage=d),c&&(b.pattern="^#(?:(?[0-9a-fA-f]{3}[0-9a-eA-E])|(?:[0-9a-fA-F]{6}(?:(?![fF]{2})(?:[0-9a-fA-F]{2}))))?$",b.patternErrorMessage="This color must be transparent or it will obscure content"),this.colorSchema.properties[e]=b,this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(o),this._onDidChangeSchema.fire(),e}getColors(){return Object.keys(this.colorsById).map(e=>this.colorsById[e])}resolveDefaultColor(e,r){let o=this.colorsById[e];if(o&&o.defaults){let c=o.defaults[r.type];return tQ(c,r)}}getColorSchema(){return this.colorSchema}toString(){let e=(r,o)=>{let c=r.indexOf(".")===-1?0:1,d=o.indexOf(".")===-1?0:1;return c!==d?c-d:r.localeCompare(o)};return Object.keys(this.colorsById).sort(e).map(r=>`- \`${r}\`: ${this.colorsById[r].description}`).join(` +`)}},OAt=new Vei;pm.add(Hei.ColorContribution,OAt);Zvi="vscode://schemas/workbench-colors",e1i=pm.as(i6e.JSONContribution);e1i.registerSchema(Zvi,OAt.getColorSchema());Xvi=new p_(()=>e1i.notifySchemaChanged(Zvi),200);OAt.onDidChangeSchema(()=>{Xvi.isScheduled()||Xvi.schedule()})});var Ga,Kfn,Xfn,Yfn,kV,XO,ip,S0,Qfn,t1i,Zfn,e_n,t_n,i_n,n_n,r_n,o_n,Efe=ti(()=>{ya();rx();Uq();Ga=hn("foreground",{dark:"#CCCCCC",light:"#616161",hcDark:"#FFFFFF",hcLight:"#292929"},ce("foreground","Overall foreground color. This color is only used if not overridden by a component.")),Kfn=hn("disabledForeground",{dark:"#CCCCCC80",light:"#61616180",hcDark:"#A5A5A5",hcLight:"#7F7F7F"},ce("disabledForeground","Overall foreground for disabled elements. This color is only used if not overridden by a component.")),Xfn=hn("errorForeground",{dark:"#F48771",light:"#A1260D",hcDark:"#F48771",hcLight:"#B5200D"},ce("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),Yfn=hn("descriptionForeground",{light:"#717171",dark:eu(Ga,.7),hcDark:eu(Ga,.7),hcLight:eu(Ga,.7)},ce("descriptionForeground","Foreground color for description text providing additional information, for example for a label.")),kV=hn("icon.foreground",{dark:"#C5C5C5",light:"#424242",hcDark:"#FFFFFF",hcLight:"#292929"},ce("iconForeground","The default color for icons in the workbench.")),XO=hn("focusBorder",{dark:"#007FD4",light:"#0090F1",hcDark:"#F38518",hcLight:"#006BBD"},ce("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),ip=hn("contrastBorder",{light:null,dark:null,hcDark:"#6FC3DF",hcLight:"#0F4A85"},ce("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),S0=hn("contrastActiveBorder",{light:null,dark:null,hcDark:XO,hcLight:XO},ce("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),Qfn=hn("selection.background",{light:null,dark:null,hcDark:null,hcLight:null},ce("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.")),t1i=hn("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},ce("textLinkForeground","Foreground color for links in text.")),Zfn=hn("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},ce("textLinkActiveForeground","Foreground color for links in text when clicked on and on mouse hover.")),e_n=hn("textSeparator.foreground",{light:"#0000002e",dark:"#ffffff2e",hcDark:po.black,hcLight:"#292929"},ce("textSeparatorForeground","Color for text separators.")),t_n=hn("textPreformat.foreground",{light:"#A31515",dark:"#D7BA7D",hcDark:"#000000",hcLight:"#FFFFFF"},ce("textPreformatForeground","Foreground color for preformatted text segments.")),i_n=hn("textPreformat.background",{light:"#0000001A",dark:"#FFFFFF1A",hcDark:"#FFFFFF",hcLight:"#09345f"},ce("textPreformatBackground","Background color for preformatted text segments.")),n_n=hn("textBlockQuote.background",{light:"#f2f2f2",dark:"#222222",hcDark:null,hcLight:"#F2F2F2"},ce("textBlockQuoteBackground","Background color for block quotes in text.")),r_n=hn("textBlockQuote.border",{light:"#007acc80",dark:"#007acc80",hcDark:po.white,hcLight:"#292929"},ce("textBlockQuoteBorder","Border color for block quotes in text.")),o_n=hn("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hcDark:po.black,hcLight:"#F2F2F2"},ce("textCodeBlockBackground","Background color for code blocks in text."))});var u_n,XVe,i1i,C6e,k6e,w6e,T6e,n1i,FAt=ti(()=>{ya();rx();Uq();Efe();u_n=hn("sash.hoverBorder",{dark:XO,light:XO,hcDark:XO,hcLight:XO},ce("sashActiveBorder","Border color of active sashes.")),XVe=hn("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hcDark:po.black,hcLight:"#0F4A85"},ce("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count.")),i1i=hn("badge.foreground",{dark:po.white,light:"#333",hcDark:po.white,hcLight:po.white},ce("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),C6e=hn("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hcDark:null,hcLight:null},ce("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),k6e=hn("scrollbarSlider.background",{dark:po.fromHex("#797979").transparent(.4),light:po.fromHex("#646464").transparent(.4),hcDark:eu(ip,.6),hcLight:eu(ip,.4)},ce("scrollbarSliderBackground","Scrollbar slider background color.")),w6e=hn("scrollbarSlider.hoverBackground",{dark:po.fromHex("#646464").transparent(.7),light:po.fromHex("#646464").transparent(.7),hcDark:eu(ip,.8),hcLight:eu(ip,.8)},ce("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),T6e=hn("scrollbarSlider.activeBackground",{dark:po.fromHex("#BFBFBF").transparent(.4),light:po.fromHex("#000000").transparent(.6),hcDark:ip,hcLight:ip},ce("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),n1i=hn("progressBar.background",{dark:po.fromHex("#0E70C0"),light:po.fromHex("#0E70C0"),hcDark:ip,hcLight:ip},ce("progressBarBackground","Background color of the progress bar that can show for long running operations."))});var NT,YO,h_n,g_n,y_n,v_n,Wb,iQ,nQ,b_n,S_n,wV,c1i,pdt,RD,xSe,x_n,VI,CSe,l1i,C_n,u1i,Dfe,d1i,Jei,mdt,k_n,w_n,f1i,TV,_1i,T_n,E_n,qq,p1i,D_n,_dt,I_n,jAt,N_n,Qne,Zne,m1i,h1i,g1i,y1i,MAt,A_n,P_n,L_n,O_n,F_n,M_n,RAt,BAt,v1i,b1i,R_n,B_n,j_n,W_n,S1i,x1i,z_n,V_n,H_n,U_n,J_n,q_n,$_n,EV,WAt,r1i,G_n,K_n,C1i,k1i,qei,w1i,X_n,T1i,o1i,s1i,a1i,Jq,eHe,YVe,Y_n,QVe,Q_n,ZVe,Z_n,tHe,epn,tpn,ipn,zAt,iHe,E1i,D1i,I1i,kSe=ti(()=>{ya();rx();Uq();Efe();FAt();NT=hn("editor.background",{light:"#ffffff",dark:"#1E1E1E",hcDark:po.black,hcLight:po.white},ce("editorBackground","Editor background color.")),YO=hn("editor.foreground",{light:"#333333",dark:"#BBBBBB",hcDark:po.white,hcLight:Ga},ce("editorForeground","Editor default foreground color.")),h_n=hn("editorStickyScroll.background",{light:NT,dark:NT,hcDark:NT,hcLight:NT},ce("editorStickyScrollBackground","Background color of sticky scroll in the editor")),g_n=hn("editorStickyScrollHover.background",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:po.fromHex("#0F4A85").transparent(.1)},ce("editorStickyScrollHoverBackground","Background color of sticky scroll on hover in the editor")),y_n=hn("editorStickyScroll.border",{dark:null,light:null,hcDark:ip,hcLight:ip},ce("editorStickyScrollBorder","Border color of sticky scroll in the editor")),v_n=hn("editorStickyScroll.shadow",{dark:C6e,light:C6e,hcDark:C6e,hcLight:C6e},ce("editorStickyScrollShadow"," Shadow color of sticky scroll in the editor")),Wb=hn("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hcDark:"#0C141F",hcLight:po.white},ce("editorWidgetBackground","Background color of editor widgets, such as find/replace.")),iQ=hn("editorWidget.foreground",{dark:Ga,light:Ga,hcDark:Ga,hcLight:Ga},ce("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),nQ=hn("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hcDark:ip,hcLight:ip},ce("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.")),b_n=hn("editorWidget.resizeBorder",{light:null,dark:null,hcDark:null,hcLight:null},ce("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.")),S_n=hn("editorError.background",{dark:null,light:null,hcDark:null,hcLight:null},ce("editorError.background","Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),wV=hn("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hcDark:"#F48771",hcLight:"#B5200D"},ce("editorError.foreground","Foreground color of error squigglies in the editor.")),c1i=hn("editorError.border",{dark:null,light:null,hcDark:po.fromHex("#E47777").transparent(.8),hcLight:"#B5200D"},ce("errorBorder","If set, color of double underlines for errors in the editor.")),pdt=hn("editorWarning.background",{dark:null,light:null,hcDark:null,hcLight:null},ce("editorWarning.background","Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),RD=hn("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hcDark:"#FFD370",hcLight:"#895503"},ce("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),xSe=hn("editorWarning.border",{dark:null,light:null,hcDark:po.fromHex("#FFCC00").transparent(.8),hcLight:po.fromHex("#FFCC00").transparent(.8)},ce("warningBorder","If set, color of double underlines for warnings in the editor.")),x_n=hn("editorInfo.background",{dark:null,light:null,hcDark:null,hcLight:null},ce("editorInfo.background","Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),VI=hn("editorInfo.foreground",{dark:"#3794FF",light:"#1a85ff",hcDark:"#3794FF",hcLight:"#1a85ff"},ce("editorInfo.foreground","Foreground color of info squigglies in the editor.")),CSe=hn("editorInfo.border",{dark:null,light:null,hcDark:po.fromHex("#3794FF").transparent(.8),hcLight:"#292929"},ce("infoBorder","If set, color of double underlines for infos in the editor.")),l1i=hn("editorHint.foreground",{dark:po.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hcDark:null,hcLight:null},ce("editorHint.foreground","Foreground color of hint squigglies in the editor.")),C_n=hn("editorHint.border",{dark:null,light:null,hcDark:po.fromHex("#eeeeee").transparent(.8),hcLight:"#292929"},ce("hintBorder","If set, color of double underlines for hints in the editor.")),u1i=hn("editorLink.activeForeground",{dark:"#4E94CE",light:po.blue,hcDark:po.cyan,hcLight:"#292929"},ce("activeLinkForeground","Color of active links.")),Dfe=hn("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hcDark:"#f3f518",hcLight:"#0F4A85"},ce("editorSelectionBackground","Color of the editor selection.")),d1i=hn("editor.selectionForeground",{light:null,dark:null,hcDark:"#000000",hcLight:po.white},ce("editorSelectionForeground","Color of the selected text for high contrast.")),Jei=hn("editor.inactiveSelectionBackground",{light:eu(Dfe,.5),dark:eu(Dfe,.5),hcDark:eu(Dfe,.7),hcLight:eu(Dfe,.5)},ce("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),mdt=hn("editor.selectionHighlightBackground",{light:Uei(Dfe,NT,.3,.6),dark:Uei(Dfe,NT,.3,.6),hcDark:null,hcLight:null},ce("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),k_n=hn("editor.selectionHighlightBorder",{light:null,dark:null,hcDark:S0,hcLight:S0},ce("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),w_n=hn("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hcDark:null,hcLight:null},ce("editorFindMatch","Color of the current search match.")),f1i=hn("editor.findMatchForeground",{light:null,dark:null,hcDark:null,hcLight:null},ce("editorFindMatchForeground","Text color of the current search match.")),TV=hn("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hcDark:null,hcLight:null},ce("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),_1i=hn("editor.findMatchHighlightForeground",{light:null,dark:null,hcDark:null,hcLight:null},ce("findMatchHighlightForeground","Foreground color of the other search matches."),!0),T_n=hn("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hcDark:null,hcLight:null},ce("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),E_n=hn("editor.findMatchBorder",{light:null,dark:null,hcDark:S0,hcLight:S0},ce("editorFindMatchBorder","Border color of the current search match.")),qq=hn("editor.findMatchHighlightBorder",{light:null,dark:null,hcDark:S0,hcLight:S0},ce("findMatchHighlightBorder","Border color of the other search matches.")),p1i=hn("editor.findRangeHighlightBorder",{dark:null,light:null,hcDark:eu(S0,.4),hcLight:eu(S0,.4)},ce("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),D_n=hn("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hcDark:"#ADD6FF26",hcLight:null},ce("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),_dt=hn("editorHoverWidget.background",{light:Wb,dark:Wb,hcDark:Wb,hcLight:Wb},ce("hoverBackground","Background color of the editor hover.")),I_n=hn("editorHoverWidget.foreground",{light:iQ,dark:iQ,hcDark:iQ,hcLight:iQ},ce("hoverForeground","Foreground color of the editor hover.")),jAt=hn("editorHoverWidget.border",{light:nQ,dark:nQ,hcDark:nQ,hcLight:nQ},ce("hoverBorder","Border color of the editor hover.")),N_n=hn("editorHoverWidget.statusBarBackground",{dark:TB(_dt,.2),light:Yne(_dt,.05),hcDark:Wb,hcLight:Wb},ce("statusBarBackground","Background color of the editor hover status bar.")),Qne=hn("editorInlayHint.foreground",{dark:"#969696",light:"#969696",hcDark:po.white,hcLight:po.black},ce("editorInlayHintForeground","Foreground color of inline hints")),Zne=hn("editorInlayHint.background",{dark:eu(XVe,.1),light:eu(XVe,.1),hcDark:eu(po.white,.1),hcLight:eu(XVe,.1)},ce("editorInlayHintBackground","Background color of inline hints")),m1i=hn("editorInlayHint.typeForeground",{dark:Qne,light:Qne,hcDark:Qne,hcLight:Qne},ce("editorInlayHintForegroundTypes","Foreground color of inline hints for types")),h1i=hn("editorInlayHint.typeBackground",{dark:Zne,light:Zne,hcDark:Zne,hcLight:Zne},ce("editorInlayHintBackgroundTypes","Background color of inline hints for types")),g1i=hn("editorInlayHint.parameterForeground",{dark:Qne,light:Qne,hcDark:Qne,hcLight:Qne},ce("editorInlayHintForegroundParameter","Foreground color of inline hints for parameters")),y1i=hn("editorInlayHint.parameterBackground",{dark:Zne,light:Zne,hcDark:Zne,hcLight:Zne},ce("editorInlayHintBackgroundParameter","Background color of inline hints for parameters")),MAt=hn("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hcDark:"#FFCC00",hcLight:"#007ACC"},ce("editorLightBulbForeground","The color used for the lightbulb actions icon.")),A_n=hn("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},ce("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),P_n=hn("editorLightBulbAi.foreground",{dark:MAt,light:MAt,hcDark:MAt,hcLight:MAt},ce("editorLightBulbAiForeground","The color used for the lightbulb AI icon.")),L_n=hn("editor.snippetTabstopHighlightBackground",{dark:new po(new lp(124,124,124,.3)),light:new po(new lp(10,50,100,.2)),hcDark:new po(new lp(124,124,124,.3)),hcLight:new po(new lp(10,50,100,.2))},ce("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),O_n=hn("editor.snippetTabstopHighlightBorder",{dark:null,light:null,hcDark:null,hcLight:null},ce("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),F_n=hn("editor.snippetFinalTabstopHighlightBackground",{dark:null,light:null,hcDark:null,hcLight:null},ce("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),M_n=hn("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new po(new lp(10,50,100,.5)),hcDark:"#525252",hcLight:"#292929"},ce("snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet.")),RAt=new po(new lp(155,185,85,.2)),BAt=new po(new lp(255,0,0,.2)),v1i=hn("diffEditor.insertedTextBackground",{dark:"#9ccc2c33",light:"#9ccc2c40",hcDark:null,hcLight:null},ce("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),b1i=hn("diffEditor.removedTextBackground",{dark:"#ff000033",light:"#ff000033",hcDark:null,hcLight:null},ce("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),R_n=hn("diffEditor.insertedLineBackground",{dark:RAt,light:RAt,hcDark:null,hcLight:null},ce("diffEditorInsertedLines","Background color for lines that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),B_n=hn("diffEditor.removedLineBackground",{dark:BAt,light:BAt,hcDark:null,hcLight:null},ce("diffEditorRemovedLines","Background color for lines that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),j_n=hn("diffEditorGutter.insertedLineBackground",{dark:null,light:null,hcDark:null,hcLight:null},ce("diffEditorInsertedLineGutter","Background color for the margin where lines got inserted.")),W_n=hn("diffEditorGutter.removedLineBackground",{dark:null,light:null,hcDark:null,hcLight:null},ce("diffEditorRemovedLineGutter","Background color for the margin where lines got removed.")),S1i=hn("diffEditorOverview.insertedForeground",{dark:null,light:null,hcDark:null,hcLight:null},ce("diffEditorOverviewInserted","Diff overview ruler foreground for inserted content.")),x1i=hn("diffEditorOverview.removedForeground",{dark:null,light:null,hcDark:null,hcLight:null},ce("diffEditorOverviewRemoved","Diff overview ruler foreground for removed content.")),z_n=hn("diffEditor.insertedTextBorder",{dark:null,light:null,hcDark:"#33ff2eff",hcLight:"#374E06"},ce("diffEditorInsertedOutline","Outline color for the text that got inserted.")),V_n=hn("diffEditor.removedTextBorder",{dark:null,light:null,hcDark:"#FF008F",hcLight:"#AD0707"},ce("diffEditorRemovedOutline","Outline color for text that got removed.")),H_n=hn("diffEditor.border",{dark:null,light:null,hcDark:ip,hcLight:ip},ce("diffEditorBorder","Border color between the two text editors.")),U_n=hn("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hcDark:null,hcLight:null},ce("diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),J_n=hn("diffEditor.unchangedRegionBackground",{dark:"sideBar.background",light:"sideBar.background",hcDark:"sideBar.background",hcLight:"sideBar.background"},ce("diffEditor.unchangedRegionBackground","The background color of unchanged blocks in the diff editor.")),q_n=hn("diffEditor.unchangedRegionForeground",{dark:"foreground",light:"foreground",hcDark:"foreground",hcLight:"foreground"},ce("diffEditor.unchangedRegionForeground","The foreground color of unchanged blocks in the diff editor.")),$_n=hn("diffEditor.unchangedCodeBackground",{dark:"#74747429",light:"#b8b8b829",hcDark:null,hcLight:null},ce("diffEditor.unchangedCodeBackground","The background color of unchanged code in the diff editor.")),EV=hn("widget.shadow",{dark:eu(po.black,.36),light:eu(po.black,.16),hcDark:null,hcLight:null},ce("widgetShadow","Shadow color of widgets such as find/replace inside the editor.")),WAt=hn("widget.border",{dark:null,light:null,hcDark:ip,hcLight:ip},ce("widgetBorder","Border color of widgets such as find/replace inside the editor.")),r1i=hn("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hcDark:null,hcLight:null},ce("toolbarHoverBackground","Toolbar background when hovering over actions using the mouse")),G_n=hn("toolbar.hoverOutline",{dark:null,light:null,hcDark:S0,hcLight:S0},ce("toolbarHoverOutline","Toolbar outline when hovering over actions using the mouse")),K_n=hn("toolbar.activeBackground",{dark:TB(r1i,.1),light:Yne(r1i,.1),hcDark:null,hcLight:null},ce("toolbarActiveBackground","Toolbar background when holding the mouse over actions")),C1i=hn("breadcrumb.foreground",{light:eu(Ga,.8),dark:eu(Ga,.8),hcDark:eu(Ga,.8),hcLight:eu(Ga,.8)},ce("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),k1i=hn("breadcrumb.background",{light:NT,dark:NT,hcDark:NT,hcLight:NT},ce("breadcrumbsBackground","Background color of breadcrumb items.")),qei=hn("breadcrumb.focusForeground",{light:Yne(Ga,.2),dark:TB(Ga,.1),hcDark:TB(Ga,.1),hcLight:TB(Ga,.1)},ce("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),w1i=hn("breadcrumb.activeSelectionForeground",{light:Yne(Ga,.2),dark:TB(Ga,.1),hcDark:TB(Ga,.1),hcLight:TB(Ga,.1)},ce("breadcrumbsSelectedForeground","Color of selected breadcrumb items.")),X_n=hn("breadcrumbPicker.background",{light:Wb,dark:Wb,hcDark:Wb,hcLight:Wb},ce("breadcrumbsSelectedBackground","Background color of breadcrumb item picker.")),T1i=.5,o1i=po.fromHex("#40C8AE").transparent(T1i),s1i=po.fromHex("#40A6FF").transparent(T1i),a1i=po.fromHex("#606060").transparent(.4),Jq=.4,eHe=1,YVe=hn("merge.currentHeaderBackground",{dark:o1i,light:o1i,hcDark:null,hcLight:null},ce("mergeCurrentHeaderBackground","Current header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),Y_n=hn("merge.currentContentBackground",{dark:eu(YVe,Jq),light:eu(YVe,Jq),hcDark:eu(YVe,Jq),hcLight:eu(YVe,Jq)},ce("mergeCurrentContentBackground","Current content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),QVe=hn("merge.incomingHeaderBackground",{dark:s1i,light:s1i,hcDark:null,hcLight:null},ce("mergeIncomingHeaderBackground","Incoming header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),Q_n=hn("merge.incomingContentBackground",{dark:eu(QVe,Jq),light:eu(QVe,Jq),hcDark:eu(QVe,Jq),hcLight:eu(QVe,Jq)},ce("mergeIncomingContentBackground","Incoming content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),ZVe=hn("merge.commonHeaderBackground",{dark:a1i,light:a1i,hcDark:null,hcLight:null},ce("mergeCommonHeaderBackground","Common ancestor header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),Z_n=hn("merge.commonContentBackground",{dark:eu(ZVe,Jq),light:eu(ZVe,Jq),hcDark:eu(ZVe,Jq),hcLight:eu(ZVe,Jq)},ce("mergeCommonContentBackground","Common ancestor content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),tHe=hn("merge.border",{dark:null,light:null,hcDark:"#C3DF6F",hcLight:"#007ACC"},ce("mergeBorder","Border color on headers and the splitter in inline merge-conflicts.")),epn=hn("editorOverviewRuler.currentContentForeground",{dark:eu(YVe,eHe),light:eu(YVe,eHe),hcDark:tHe,hcLight:tHe},ce("overviewRulerCurrentContentForeground","Current overview ruler foreground for inline merge-conflicts.")),tpn=hn("editorOverviewRuler.incomingContentForeground",{dark:eu(QVe,eHe),light:eu(QVe,eHe),hcDark:tHe,hcLight:tHe},ce("overviewRulerIncomingContentForeground","Incoming overview ruler foreground for inline merge-conflicts.")),ipn=hn("editorOverviewRuler.commonContentForeground",{dark:eu(ZVe,eHe),light:eu(ZVe,eHe),hcDark:tHe,hcLight:tHe},ce("overviewRulerCommonContentForeground","Common ancestor overview ruler foreground for inline merge-conflicts.")),zAt=hn("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hcDark:"#AB5A00",hcLight:""},ce("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),iHe=hn("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hcDark:"#A0A0A0CC",hcLight:"#A0A0A0CC"},ce("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),E1i=hn("problemsErrorIcon.foreground",{dark:wV,light:wV,hcDark:wV,hcLight:wV},ce("problemsErrorIconForeground","The color used for the problems error icon.")),D1i=hn("problemsWarningIcon.foreground",{dark:RD,light:RD,hcDark:RD,hcLight:RD},ce("problemsWarningIconForeground","The color used for the problems warning icon.")),I1i=hn("problemsInfoIcon.foreground",{dark:VI,light:VI,hcDark:VI,hcLight:VI},ce("problemsInfoIconForeground","The color used for the problems info icon."))});var wSe,hdt,$ei,N1i,A1i,P1i,L1i,O1i,cpn,lpn,upn,Gei=ti(()=>{ya();rx();Uq();kSe();FAt();wSe=hn("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hcDark:"#AB5A00",hcLight:"#0F4A85"},ce("minimapFindMatchHighlight","Minimap marker color for find matches."),!0),hdt=hn("minimap.selectionOccurrenceHighlight",{light:"#c9c9c9",dark:"#676767",hcDark:"#ffffff",hcLight:"#0F4A85"},ce("minimapSelectionOccurrenceHighlight","Minimap marker color for repeating editor selections."),!0),$ei=hn("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hcDark:"#ffffff",hcLight:"#0F4A85"},ce("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),N1i=hn("minimap.infoHighlight",{dark:VI,light:VI,hcDark:CSe,hcLight:CSe},ce("minimapInfo","Minimap marker color for infos.")),A1i=hn("minimap.warningHighlight",{dark:RD,light:RD,hcDark:xSe,hcLight:xSe},ce("overviewRuleWarning","Minimap marker color for warnings.")),P1i=hn("minimap.errorHighlight",{dark:new po(new lp(255,18,18,.7)),light:new po(new lp(255,18,18,.7)),hcDark:new po(new lp(255,50,50,1)),hcLight:"#B5200D"},ce("minimapError","Minimap marker color for errors.")),L1i=hn("minimap.background",{dark:null,light:null,hcDark:null,hcLight:null},ce("minimapBackground","Minimap background color.")),O1i=hn("minimap.foregroundOpacity",{dark:po.fromHex("#000f"),light:po.fromHex("#000f"),hcDark:po.fromHex("#000f"),hcLight:po.fromHex("#000f")},ce("minimapForegroundOpacity",'Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.')),cpn=hn("minimapSlider.background",{light:eu(k6e,.5),dark:eu(k6e,.5),hcDark:eu(k6e,.5),hcLight:eu(k6e,.5)},ce("minimapSliderBackground","Minimap slider background color.")),lpn=hn("minimapSlider.hoverBackground",{light:eu(w6e,.5),dark:eu(w6e,.5),hcDark:eu(w6e,.5),hcLight:eu(w6e,.5)},ce("minimapSliderHoverBackground","Minimap slider background color when hovering.")),upn=hn("minimapSlider.activeBackground",{light:eu(T6e,.5),dark:eu(T6e,.5),hcDark:eu(T6e,.5),hcLight:eu(T6e,.5)},ce("minimapSliderActiveBackground","Minimap slider background color when clicked on."))});var hpn,gpn,ypn,vpn,bpn,Spn,xpn,Cpn,F1i=ti(()=>{ya();Uq();Efe();kSe();Gei();hpn=hn("charts.foreground",{dark:Ga,light:Ga,hcDark:Ga,hcLight:Ga},ce("chartsForeground","The foreground color used in charts.")),gpn=hn("charts.lines",{dark:eu(Ga,.5),light:eu(Ga,.5),hcDark:eu(Ga,.5),hcLight:eu(Ga,.5)},ce("chartsLines","The color used for horizontal lines in charts.")),ypn=hn("charts.red",{dark:wV,light:wV,hcDark:wV,hcLight:wV},ce("chartsRed","The red color used in chart visualizations.")),vpn=hn("charts.blue",{dark:VI,light:VI,hcDark:VI,hcLight:VI},ce("chartsBlue","The blue color used in chart visualizations.")),bpn=hn("charts.yellow",{dark:RD,light:RD,hcDark:RD,hcLight:RD},ce("chartsYellow","The yellow color used in chart visualizations.")),Spn=hn("charts.orange",{dark:wSe,light:wSe,hcDark:wSe,hcLight:wSe},ce("chartsOrange","The orange color used in chart visualizations.")),xpn=hn("charts.green",{dark:"#89D185",light:"#388A34",hcDark:"#89D185",hcLight:"#374e06"},ce("chartsGreen","The green color used in chart visualizations.")),Cpn=hn("charts.purple",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},ce("chartsPurple","The purple color used in chart visualizations."))});var gdt,HAt,UAt,oHe,Ipn,oQ,sHe,Npn,M1i,R1i,B1i,j1i,W1i,z1i,V1i,H1i,U1i,$q,J1i,rQ,TSe,nHe,q1i,rHe,$1i,G1i,K1i,VAt,X1i,Y1i,Apn,Q1i,Z1i,Ppn,ebi,tbi,ibi,nbi,Kei=ti(()=>{ya();rx();Uq();Efe();kSe();gdt=hn("input.background",{dark:"#3C3C3C",light:po.white,hcDark:po.black,hcLight:po.white},ce("inputBoxBackground","Input box background.")),HAt=hn("input.foreground",{dark:Ga,light:Ga,hcDark:Ga,hcLight:Ga},ce("inputBoxForeground","Input box foreground.")),UAt=hn("input.border",{dark:null,light:null,hcDark:ip,hcLight:ip},ce("inputBoxBorder","Input box border.")),oHe=hn("inputOption.activeBorder",{dark:"#007ACC",light:"#007ACC",hcDark:ip,hcLight:ip},ce("inputBoxActiveOptionBorder","Border color of activated options in input fields.")),Ipn=hn("inputOption.hoverBackground",{dark:"#5a5d5e80",light:"#b8b8b850",hcDark:null,hcLight:null},ce("inputOption.hoverBackground","Background color of activated options in input fields.")),oQ=hn("inputOption.activeBackground",{dark:eu(XO,.4),light:eu(XO,.2),hcDark:po.transparent,hcLight:po.transparent},ce("inputOption.activeBackground","Background hover color of options in input fields.")),sHe=hn("inputOption.activeForeground",{dark:po.white,light:po.black,hcDark:Ga,hcLight:Ga},ce("inputOption.activeForeground","Foreground color of activated options in input fields.")),Npn=hn("input.placeholderForeground",{light:eu(Ga,.5),dark:eu(Ga,.5),hcDark:eu(Ga,.7),hcLight:eu(Ga,.7)},ce("inputPlaceholderForeground","Input box foreground color for placeholder text.")),M1i=hn("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hcDark:po.black,hcLight:po.white},ce("inputValidationInfoBackground","Input validation background color for information severity.")),R1i=hn("inputValidation.infoForeground",{dark:null,light:null,hcDark:null,hcLight:Ga},ce("inputValidationInfoForeground","Input validation foreground color for information severity.")),B1i=hn("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hcDark:ip,hcLight:ip},ce("inputValidationInfoBorder","Input validation border color for information severity.")),j1i=hn("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hcDark:po.black,hcLight:po.white},ce("inputValidationWarningBackground","Input validation background color for warning severity.")),W1i=hn("inputValidation.warningForeground",{dark:null,light:null,hcDark:null,hcLight:Ga},ce("inputValidationWarningForeground","Input validation foreground color for warning severity.")),z1i=hn("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hcDark:ip,hcLight:ip},ce("inputValidationWarningBorder","Input validation border color for warning severity.")),V1i=hn("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hcDark:po.black,hcLight:po.white},ce("inputValidationErrorBackground","Input validation background color for error severity.")),H1i=hn("inputValidation.errorForeground",{dark:null,light:null,hcDark:null,hcLight:Ga},ce("inputValidationErrorForeground","Input validation foreground color for error severity.")),U1i=hn("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hcDark:ip,hcLight:ip},ce("inputValidationErrorBorder","Input validation border color for error severity.")),$q=hn("dropdown.background",{dark:"#3C3C3C",light:po.white,hcDark:po.black,hcLight:po.white},ce("dropdownBackground","Dropdown background.")),J1i=hn("dropdown.listBackground",{dark:null,light:null,hcDark:po.black,hcLight:po.white},ce("dropdownListBackground","Dropdown list background.")),rQ=hn("dropdown.foreground",{dark:"#F0F0F0",light:Ga,hcDark:po.white,hcLight:Ga},ce("dropdownForeground","Dropdown foreground.")),TSe=hn("dropdown.border",{dark:$q,light:"#CECECE",hcDark:ip,hcLight:ip},ce("dropdownBorder","Dropdown border.")),nHe=hn("button.foreground",{dark:po.white,light:po.white,hcDark:po.white,hcLight:po.white},ce("buttonForeground","Button foreground color.")),q1i=hn("button.separator",{dark:eu(nHe,.4),light:eu(nHe,.4),hcDark:eu(nHe,.4),hcLight:eu(nHe,.4)},ce("buttonSeparator","Button separator color.")),rHe=hn("button.background",{dark:"#0E639C",light:"#007ACC",hcDark:null,hcLight:"#0F4A85"},ce("buttonBackground","Button background color.")),$1i=hn("button.hoverBackground",{dark:TB(rHe,.2),light:Yne(rHe,.2),hcDark:rHe,hcLight:rHe},ce("buttonHoverBackground","Button background color when hovering.")),G1i=hn("button.border",{dark:ip,light:ip,hcDark:ip,hcLight:ip},ce("buttonBorder","Button border color.")),K1i=hn("button.secondaryForeground",{dark:po.white,light:po.white,hcDark:po.white,hcLight:Ga},ce("buttonSecondaryForeground","Secondary button foreground color.")),VAt=hn("button.secondaryBackground",{dark:"#3A3D41",light:"#5F6A79",hcDark:null,hcLight:po.white},ce("buttonSecondaryBackground","Secondary button background color.")),X1i=hn("button.secondaryHoverBackground",{dark:TB(VAt,.2),light:Yne(VAt,.2),hcDark:null,hcLight:null},ce("buttonSecondaryHoverBackground","Secondary button background color when hovering.")),Y1i=hn("checkbox.background",{dark:$q,light:$q,hcDark:$q,hcLight:$q},ce("checkbox.background","Background color of checkbox widget.")),Apn=hn("checkbox.selectBackground",{dark:Wb,light:Wb,hcDark:Wb,hcLight:Wb},ce("checkbox.select.background","Background color of checkbox widget when the element it's in is selected.")),Q1i=hn("checkbox.foreground",{dark:rQ,light:rQ,hcDark:rQ,hcLight:rQ},ce("checkbox.foreground","Foreground color of checkbox widget.")),Z1i=hn("checkbox.border",{dark:TSe,light:TSe,hcDark:TSe,hcLight:TSe},ce("checkbox.border","Border color of checkbox widget.")),Ppn=hn("checkbox.selectBorder",{dark:kV,light:kV,hcDark:kV,hcLight:kV},ce("checkbox.select.border","Border color of checkbox widget when the element it's in is selected.")),ebi=hn("keybindingLabel.background",{dark:new po(new lp(128,128,128,.17)),light:new po(new lp(221,221,221,.4)),hcDark:po.transparent,hcLight:po.transparent},ce("keybindingLabelBackground","Keybinding label background color. The keybinding label is used to represent a keyboard shortcut.")),tbi=hn("keybindingLabel.foreground",{dark:po.fromHex("#CCCCCC"),light:po.fromHex("#555555"),hcDark:po.white,hcLight:Ga},ce("keybindingLabelForeground","Keybinding label foreground color. The keybinding label is used to represent a keyboard shortcut.")),ibi=hn("keybindingLabel.border",{dark:new po(new lp(51,51,51,.6)),light:new po(new lp(204,204,204,.4)),hcDark:new po(new lp(111,195,223)),hcLight:ip},ce("keybindingLabelBorder","Keybinding label border color. The keybinding label is used to represent a keyboard shortcut.")),nbi=hn("keybindingLabel.bottomBorder",{dark:new po(new lp(68,68,68,.6)),light:new po(new lp(187,187,187,.4)),hcDark:new po(new lp(111,195,223)),hcLight:Ga},ce("keybindingLabelBottomBorder","Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut."))});var rbi,obi,sbi,abi,Gq,DV,E6e,cbi,lbi,ubi,dbi,fbi,Xei,Yei,_bi,pbi,EB,ydt,Bpn,jpn,Wpn,mbi,hbi,gbi,ybi,zpn,Vpn,Hpn,aHe,vbi,bbi,Sbi,JAt=ti(()=>{ya();rx();Uq();Efe();kSe();rbi=hn("list.focusBackground",{dark:null,light:null,hcDark:null,hcLight:null},ce("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.")),obi=hn("list.focusForeground",{dark:null,light:null,hcDark:null,hcLight:null},ce("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.")),sbi=hn("list.focusOutline",{dark:XO,light:XO,hcDark:S0,hcLight:S0},ce("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.")),abi=hn("list.focusAndSelectionOutline",{dark:null,light:null,hcDark:null,hcLight:null},ce("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.")),Gq=hn("list.activeSelectionBackground",{dark:"#04395E",light:"#0060C0",hcDark:null,hcLight:po.fromHex("#0F4A85").transparent(.1)},ce("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.")),DV=hn("list.activeSelectionForeground",{dark:po.white,light:po.white,hcDark:null,hcLight:null},ce("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.")),E6e=hn("list.activeSelectionIconForeground",{dark:null,light:null,hcDark:null,hcLight:null},ce("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.")),cbi=hn("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hcDark:null,hcLight:po.fromHex("#0F4A85").transparent(.1)},ce("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.")),lbi=hn("list.inactiveSelectionForeground",{dark:null,light:null,hcDark:null,hcLight:null},ce("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.")),ubi=hn("list.inactiveSelectionIconForeground",{dark:null,light:null,hcDark:null,hcLight:null},ce("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.")),dbi=hn("list.inactiveFocusBackground",{dark:null,light:null,hcDark:null,hcLight:null},ce("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.")),fbi=hn("list.inactiveFocusOutline",{dark:null,light:null,hcDark:null,hcLight:null},ce("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.")),Xei=hn("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:po.white.transparent(.1),hcLight:po.fromHex("#0F4A85").transparent(.1)},ce("listHoverBackground","List/Tree background when hovering over items using the mouse.")),Yei=hn("list.hoverForeground",{dark:null,light:null,hcDark:null,hcLight:null},ce("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),_bi=hn("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hcDark:null,hcLight:null},ce("listDropBackground","List/Tree drag and drop background when moving items over other items when using the mouse.")),pbi=hn("list.dropBetweenBackground",{dark:kV,light:kV,hcDark:null,hcLight:null},ce("listDropBetweenBackground","List/Tree drag and drop border color when moving items between items when using the mouse.")),EB=hn("list.highlightForeground",{dark:"#2AAAFF",light:"#0066BF",hcDark:XO,hcLight:XO},ce("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),ydt=hn("list.focusHighlightForeground",{dark:EB,light:Qvi(Gq,EB,"#BBE7FF"),hcDark:EB,hcLight:EB},ce("listFocusHighlightForeground","List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree.")),Bpn=hn("list.invalidItemForeground",{dark:"#B89500",light:"#B89500",hcDark:"#B89500",hcLight:"#B5200D"},ce("invalidItemForeground","List/Tree foreground color for invalid items, for example an unresolved root in explorer.")),jpn=hn("list.errorForeground",{dark:"#F88070",light:"#B01011",hcDark:null,hcLight:null},ce("listErrorForeground","Foreground color of list items containing errors.")),Wpn=hn("list.warningForeground",{dark:"#CCA700",light:"#855F00",hcDark:null,hcLight:null},ce("listWarningForeground","Foreground color of list items containing warnings.")),mbi=hn("listFilterWidget.background",{light:Yne(Wb,0),dark:TB(Wb,0),hcDark:Wb,hcLight:Wb},ce("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),hbi=hn("listFilterWidget.outline",{dark:po.transparent,light:po.transparent,hcDark:"#f38518",hcLight:"#007ACC"},ce("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),gbi=hn("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hcDark:ip,hcLight:ip},ce("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),ybi=hn("listFilterWidget.shadow",{dark:EV,light:EV,hcDark:EV,hcLight:EV},ce("listFilterWidgetShadow","Shadow color of the type filter widget in lists and trees.")),zpn=hn("list.filterMatchBackground",{dark:TV,light:TV,hcDark:null,hcLight:null},ce("listFilterMatchHighlight","Background color of the filtered match.")),Vpn=hn("list.filterMatchBorder",{dark:qq,light:qq,hcDark:ip,hcLight:S0},ce("listFilterMatchHighlightBorder","Border color of the filtered match.")),Hpn=hn("list.deemphasizedForeground",{dark:"#8C8C8C",light:"#8E8E90",hcDark:"#A7A8A9",hcLight:"#666666"},ce("listDeemphasizedForeground","List/Tree foreground color for items that are deemphasized.")),aHe=hn("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hcDark:"#a9a9a9",hcLight:"#a5a5a5"},ce("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),vbi=hn("tree.inactiveIndentGuidesStroke",{dark:eu(aHe,.4),light:eu(aHe,.4),hcDark:eu(aHe,.4),hcLight:eu(aHe,.4)},ce("treeInactiveIndentGuidesStroke","Tree stroke color for the indentation guides that are not active.")),bbi=hn("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hcDark:null,hcLight:null},ce("tableColumnsBorder","Table border color between columns.")),Sbi=hn("tree.tableOddRowsBackground",{dark:eu(Ga,.04),light:eu(Ga,.04),hcDark:null,hcLight:null},ce("tableOddRowsBackgroundColor","Background color for odd table rows."))});var xbi,Cbi,kbi,wbi,Tbi,Ebi,Dbi,Ibi=ti(()=>{ya();Uq();Efe();Kei();JAt();xbi=hn("menu.border",{dark:null,light:null,hcDark:ip,hcLight:ip},ce("menuBorder","Border color of menus.")),Cbi=hn("menu.foreground",{dark:rQ,light:rQ,hcDark:rQ,hcLight:rQ},ce("menuForeground","Foreground color of menu items.")),kbi=hn("menu.background",{dark:$q,light:$q,hcDark:$q,hcLight:$q},ce("menuBackground","Background color of menu items.")),wbi=hn("menu.selectionForeground",{dark:DV,light:DV,hcDark:DV,hcLight:DV},ce("menuSelectionForeground","Foreground color of the selected menu item in menus.")),Tbi=hn("menu.selectionBackground",{dark:Gq,light:Gq,hcDark:Gq,hcLight:Gq},ce("menuSelectionBackground","Background color of the selected menu item in menus.")),Ebi=hn("menu.selectionBorder",{dark:null,light:null,hcDark:S0,hcLight:S0},ce("menuSelectionBorder","Border color of the selected menu item in menus.")),Dbi=hn("menu.separatorBackground",{dark:"#606060",light:"#D4D4D4",hcDark:ip,hcLight:ip},ce("menuSeparatorBackground","Color of a separator menu item in menus."))});var Qei,Abi,Pbi,qAt,Lbi,Nbi,Kq,Ife,Xq,Obi=ti(()=>{ya();rx();Uq();kSe();JAt();Qei=hn("quickInput.background",{dark:Wb,light:Wb,hcDark:Wb,hcLight:Wb},ce("pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),Abi=hn("quickInput.foreground",{dark:iQ,light:iQ,hcDark:iQ,hcLight:iQ},ce("pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),Pbi=hn("quickInputTitle.background",{dark:new po(new lp(255,255,255,.105)),light:new po(new lp(0,0,0,.06)),hcDark:"#000000",hcLight:po.white},ce("pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),qAt=hn("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hcDark:po.white,hcLight:"#0F4A85"},ce("pickerGroupForeground","Quick picker color for grouping labels.")),Lbi=hn("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hcDark:po.white,hcLight:"#0F4A85"},ce("pickerGroupBorder","Quick picker color for grouping borders.")),Nbi=hn("quickInput.list.focusBackground",{dark:null,light:null,hcDark:null,hcLight:null},"",void 0,ce("quickInput.list.focusBackground deprecation","Please use quickInputList.focusBackground instead")),Kq=hn("quickInputList.focusForeground",{dark:DV,light:DV,hcDark:DV,hcLight:DV},ce("quickInput.listFocusForeground","Quick picker foreground color for the focused item.")),Ife=hn("quickInputList.focusIconForeground",{dark:E6e,light:E6e,hcDark:E6e,hcLight:E6e},ce("quickInput.listFocusIconForeground","Quick picker icon foreground color for the focused item.")),Xq=hn("quickInputList.focusBackground",{dark:x6e(Nbi,Gq),light:x6e(Nbi,Gq),hcDark:null,hcLight:null},ce("quickInput.listFocusBackground","Quick picker background color for the focused item."))});var rmn,omn,smn,Fbi=ti(()=>{ya();Uq();Efe();kSe();rmn=hn("search.resultsInfoForeground",{light:Ga,dark:eu(Ga,.65),hcDark:Ga,hcLight:Ga},ce("search.resultsInfoForeground","Color of the text in the search viewlet's completion message.")),omn=hn("searchEditor.findMatchBackground",{light:eu(TV,.66),dark:eu(TV,.66),hcDark:TV,hcLight:TV},ce("searchEditor.queryMatch","Color of the Search Editor query matches.")),smn=hn("searchEditor.findMatchBorder",{light:eu(qq,.66),dark:eu(qq,.66),hcDark:qq,hcLight:qq},ce("searchEditor.editorFindMatchBorder","Border color of the Search Editor query matches."))});var q1=ti(()=>{Uq();Efe();F1i();kSe();Kei();JAt();Ibi();Gei();FAt();Obi();Fbi()});function XAt(l){let e=_g(l);return new Zei(e.left,e.top,e.width,e.height)}function YAt(l,e,r){let o=e.width/l.offsetWidth,c=e.height/l.offsetHeight,d=(r.x-e.x)/o,h=(r.y-e.y)/c;return new eti(d,h)}function J9i(l){return l.replace(/(^[A-Z])/,([e])=>e.toLowerCase()).replace(/([A-Z])/g,([e])=>`-${e.toLowerCase()}`)}var ESe,vdt,Zei,eti,Yq,$At,GAt,KAt,D6e,tti,cHe=ti(()=>{nc();KVe();vB();Ud();co();q1();ESe=class{constructor(e,r){this.x=e,this.y=r,this._pageCoordinatesBrand=void 0}toClientCoordinates(e){return new vdt(this.x-e.scrollX,this.y-e.scrollY)}},vdt=class{constructor(e,r){this.clientX=e,this.clientY=r,this._clientCoordinatesBrand=void 0}toPageCoordinates(e){return new ESe(this.clientX+e.scrollX,this.clientY+e.scrollY)}},Zei=class{constructor(e,r,o,c){this.x=e,this.y=r,this.width=o,this.height=c,this._editorPagePositionBrand=void 0}},eti=class{constructor(e,r){this.x=e,this.y=r,this._positionRelativeToEditorBrand=void 0}};Yq=class extends PD{constructor(e,r,o){super(Gc(o),e),this._editorMouseEventBrand=void 0,this.isFromPointerCapture=r,this.pos=new ESe(this.posx,this.posy),this.editorPos=XAt(o),this.relativePos=YAt(o,this.editorPos,this.pos)}},$At=class{constructor(e){this._editorViewDomNode=e}_create(e){return new Yq(e,!1,this._editorViewDomNode)}onContextMenu(e,r){return Jr(e,"contextmenu",o=>{r(this._create(o))})}onMouseUp(e,r){return Jr(e,"mouseup",o=>{r(this._create(o))})}onMouseDown(e,r){return Jr(e,ls.MOUSE_DOWN,o=>{r(this._create(o))})}onPointerDown(e,r){return Jr(e,ls.POINTER_DOWN,o=>{r(this._create(o),o.pointerId)})}onMouseLeave(e,r){return Jr(e,ls.MOUSE_LEAVE,o=>{r(this._create(o))})}onMouseMove(e,r){return Jr(e,"mousemove",o=>r(this._create(o)))}},GAt=class{constructor(e){this._editorViewDomNode=e}_create(e){return new Yq(e,!1,this._editorViewDomNode)}onPointerUp(e,r){return Jr(e,"pointerup",o=>{r(this._create(o))})}onPointerDown(e,r){return Jr(e,ls.POINTER_DOWN,o=>{r(this._create(o),o.pointerId)})}onPointerLeave(e,r){return Jr(e,ls.POINTER_LEAVE,o=>{r(this._create(o))})}onPointerMove(e,r){return Jr(e,"pointermove",o=>r(this._create(o)))}},KAt=class extends tn{constructor(e){super(),this._editorViewDomNode=e,this._globalPointerMoveMonitor=this._register(new CV),this._keydownListener=null}startMonitoring(e,r,o,c,d){this._keydownListener=qh(e.ownerDocument,"keydown",h=>{h.toKeyCodeChord().isModifierKey()||this._globalPointerMoveMonitor.stopMonitoring(!0,h.browserEvent)},!0),this._globalPointerMoveMonitor.startMonitoring(e,r,o,h=>{c(new Yq(h,!0,this._editorViewDomNode))},h=>{this._keydownListener.dispose(),d(h)})}stopMonitoring(){this._globalPointerMoveMonitor.stopMonitoring(!0)}},D6e=class l{constructor(e){this._editor=e,this._instanceId=++l._idPool,this._counter=0,this._rules=new Map,this._garbageCollectionScheduler=new p_(()=>this.garbageCollect(),1e3)}createClassNameRef(e){let r=this.getOrCreateRule(e);return r.increaseRefCount(),{className:r.className,dispose:()=>{r.decreaseRefCount(),this._garbageCollectionScheduler.schedule()}}}getOrCreateRule(e){let r=this.computeUniqueKey(e),o=this._rules.get(r);if(!o){let c=this._counter++;o=new tti(r,`dyn-rule-${this._instanceId}-${c}`,$4e(this._editor.getContainerDomNode())?this._editor.getContainerDomNode():void 0,e),this._rules.set(r,o)}return o}computeUniqueKey(e){return JSON.stringify(e)}garbageCollect(){for(let e of this._rules.values())e.hasReferences()||(this._rules.delete(e.key),e.dispose())}};D6e._idPool=0;tti=class{constructor(e,r,o,c){this.key=e,this.className=r,this.properties=c,this._referenceCount=0,this._styleElementDisposables=new Fr,this._styleElement=bE(o,void 0,this._styleElementDisposables),this._styleElement.textContent=this.getCssText(this.className,this.properties)}getCssText(e,r){let o=`.${e} {`;for(let c in r){let d=r[c],h;typeof d=="object"?h=Xc(d.id):h=d;let b=J9i(c);o+=` + ${b}: ${h};`}return o+=` +}`,o}dispose(){this._styleElementDisposables.dispose(),this._styleElement=void 0}increaseRefCount(){this._referenceCount++}decreaseRefCount(){this._referenceCount--}hasReferences(){return this._referenceCount>0}}});var Qq,lHe=ti(()=>{co();Qq=class extends tn{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 r=!1;for(let o=0,c=e.length;o{lHe();ox=class extends Qq{constructor(e){super(),this._context=e,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}},yA=class{static write(e,r){e.setAttribute("data-mprt",String(r))}static read(e){let r=e.getAttribute("data-mprt");return r===null?0:parseInt(r,10)}static collect(e,r){let o=[],c=0;for(;e&&e!==e.ownerDocument.body&&e!==r;)e.nodeType===e.ELEMENT_NODE&&(o[c++]=this.read(e)),e=e.parentElement;let d=new Uint8Array(c);for(let h=0;h{iti=class{constructor(e,r){this._restrictedRenderingContextBrand=void 0,this._viewLayout=e,this.viewportData=r,this.scrollWidth=this._viewLayout.getScrollWidth(),this.scrollHeight=this._viewLayout.getScrollHeight(),this.visibleRange=this.viewportData.visibleRange,this.bigNumbersDelta=this.viewportData.bigNumbersDelta;let o=this._viewLayout.getCurrentViewport();this.scrollTop=o.top,this.scrollLeft=o.left,this.viewportWidth=o.width,this.viewportHeight=o.height}getScrolledTopFromAbsoluteTop(e){return e-this.scrollTop}getVerticalOffsetForLineNumber(e,r){return this._viewLayout.getVerticalOffsetForLineNumber(e,r)}getVerticalOffsetAfterLineNumber(e,r){return this._viewLayout.getVerticalOffsetAfterLineNumber(e,r)}getDecorationsInViewport(){return this.viewportData.getDecorationsInViewport()}},QAt=class extends iti{constructor(e,r,o){super(e,r),this._renderingContextBrand=void 0,this._viewLines=o}linesVisibleRangesForRange(e,r){return this._viewLines.linesVisibleRangesForRange(e,r)}visibleRangeForPosition(e){return this._viewLines.visibleRangeForPosition(e)}},ZAt=class{constructor(e,r,o,c){this.outsideRenderedLine=e,this.lineNumber=r,this.ranges=o,this.continuesOnNextLine=c}},uHe=class l{static from(e){let r=new Array(e.length);for(let o=0,c=e.length;o{dHe();I6e=class{static _createRange(){return this._handyReadyRange||(this._handyReadyRange=document.createRange()),this._handyReadyRange}static _detachRange(e,r){e.selectNodeContents(r)}static _readClientRects(e,r,o,c,d){let h=this._createRange();try{return h.setStart(e,r),h.setEnd(o,c),h.getClientRects()}catch{return null}finally{this._detachRange(h,d)}}static _mergeAdjacentRanges(e){if(e.length===1)return e;e.sort(sQ.compare);let r=[],o=0,c=e[0];for(let d=1,h=e.length;d=b.left?c.width=Math.max(c.width,b.left+b.width-c.left):(r[o++]=c,c=b)}return r[o++]=c,r}static _createHorizontalRangesFromClientRects(e,r,o){if(!e||e.length===0)return null;let c=[];for(let d=0,h=e.length;dw)return null;if(r=Math.min(w,Math.max(0,r)),c=Math.min(w,Math.max(0,c)),r===c&&o===d&&o===0&&!e.children[r].firstChild){let F=e.children[r].getClientRects();return h.markDidDomLayout(),this._createHorizontalRangesFromClientRects(F,h.clientRectDeltaLeft,h.clientRectScale)}r!==c&&c>0&&d===0&&(c--,d=1073741824);let N=e.children[r].firstChild,L=e.children[c].firstChild;if((!N||!L)&&(!N&&o===0&&r>0&&(N=e.children[r-1].firstChild,o=1073741824),!L&&d===0&&c>0&&(L=e.children[c-1].firstChild,d=1073741824)),!N||!L)return null;o=Math.min(N.textContent.length,Math.max(0,o)),d=Math.min(L.textContent.length,Math.max(0,d));let B=this._readClientRects(N,o,L,d,h.endNode);return h.markDidDomLayout(),this._createHorizontalRangesFromClientRects(B,h.clientRectDeltaLeft,h.clientRectScale)}}});function T6(l){return l===OR.HIGH_CONTRAST_DARK||l===OR.HIGH_CONTRAST_LIGHT}function ere(l){return l===OR.DARK||l===OR.HIGH_CONTRAST_DARK}var OR,Zq=ti(()=>{(function(l){l.DARK="dark",l.LIGHT="light",l.HIGH_CONTRAST_DARK="hcDark",l.HIGH_CONTRAST_LIGHT="hcLight"})(OR||(OR={}))});function $9i(l,e,r,o,c){return new nti(l,e,r,o,c)}function G9i(l,e,r,o,c){return new tPt(l,e,r,o,c)}function iPt(l,e,r){let o=e.textContent.length,c=-1;for(;e;)e=e.previousSibling,c++;return l.getColumn(new odt(c,r),o)}var q9i,_He,Sdt,e$,fHe,tPt,nti,Rbi,nPt=ti(()=>{ZF();SE();X_();Mbi();dHe();p6e();bSe();Zq();TT();q9i=function(){return KF?!0:!(kS||AD||TR)}(),_He=!0,Sdt=class{constructor(e,r){this.themeType=r;let o=e.options,c=o.get(50);o.get(38)==="off"?this.renderWhitespace=o.get(99):this.renderWhitespace="none",this.renderControlCharacters=o.get(94),this.spaceWidth=c.spaceWidth,this.middotWidth=c.middotWidth,this.wsmiddotWidth=c.wsmiddotWidth,this.useMonospaceOptimizations=c.isMonospace&&!o.get(33),this.canUseHalfwidthRightwardsArrow=c.canUseHalfwidthRightwardsArrow,this.lineHeight=o.get(67),this.stopRenderingLineAfter=o.get(117),this.fontLigatures=o.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}},e$=class l{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)this._renderedViewLine.domNode=V_(e);else throw new Error("I have no rendered view line to set the dom node to...")}onContentChanged(){this._isMaybeInvalid=!0}onTokensChanged(){this._isMaybeInvalid=!0}onDecorationsChanged(){this._isMaybeInvalid=!0}onOptionsChanged(e){this._isMaybeInvalid=!0,this._options=e}onSelectionChanged(){return T6(this._options.themeType)||this._options.renderWhitespace==="selection"?(this._isMaybeInvalid=!0,!0):!1}renderLine(e,r,o,c,d){if(this._isMaybeInvalid===!1)return!1;this._isMaybeInvalid=!1;let h=c.getViewLineRenderingData(e),b=this._options,w=WP.filter(h.inlineDecorations,e,h.minColumn,h.maxColumn),N=null;if(T6(b.themeType)||this._options.renderWhitespace==="selection"){let Y=c.selections;for(let Z of Y){if(Z.endLineNumbere)continue;let ee=Z.startLineNumber===e?Z.startColumn:h.minColumn,Te=Z.endLineNumber===e?Z.endColumn:h.maxColumn;ee');let B=kfe(L,d);d.appendString("");let F=null;return _He&&q9i&&h.isBasicASCII&&b.useMonospaceOptimizations&&B.containsForeignElements===0&&(F=new fHe(this._renderedViewLine?this._renderedViewLine.domNode:null,L,B.characterMapping)),F||(F=Rbi(this._renderedViewLine?this._renderedViewLine.domNode:null,L,B.characterMapping,B.containsRTL,B.containsForeignElements)),this._renderedViewLine=F,!0}layoutLine(e,r,o){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(r),this._renderedViewLine.domNode.setHeight(o))}getWidth(e){return this._renderedViewLine?this._renderedViewLine.getWidth(e):0}getWidthIsFast(){return this._renderedViewLine?this._renderedViewLine.getWidthIsFast():!0}needsMonospaceFontCheck(){return this._renderedViewLine?this._renderedViewLine instanceof fHe:!1}monospaceAssumptionsAreValid(){return this._renderedViewLine&&this._renderedViewLine instanceof fHe?this._renderedViewLine.monospaceAssumptionsAreValid():_He}onMonospaceAssumptionsInvalidated(){this._renderedViewLine&&this._renderedViewLine instanceof fHe&&(this._renderedViewLine=this._renderedViewLine.toSlowRenderedLine())}getVisibleRangesForRange(e,r,o,c){if(!this._renderedViewLine)return null;r=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,r)),o=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,o));let d=this._renderedViewLine.input.stopRenderingLineAfter;if(d!==-1&&r>d+1&&o>d+1)return new bdt(!0,[new sQ(this.getWidth(c),0)]);d!==-1&&r>d+1&&(r=d+1),d!==-1&&o>d+1&&(o=d+1);let h=this._renderedViewLine.getVisibleRangesForRange(e,r,o,c);return h&&h.length>0?new bdt(!1,h):null}getColumnOfNodeOffset(e,r){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(e,r):1}};e$.CLASS_NAME="view-line";fHe=class{constructor(e,r,o){this._cachedWidth=-1,this.domNode=e,this.input=r;let c=Math.floor(r.lineContent.length/300);if(c>0){this._keyColumnPixelOffsetCache=new Float32Array(c);for(let d=0;d=2&&(console.warn("monospace assumptions have been violated, therefore disabling monospace optimizations!"),_He=!1)}return _He}toSlowRenderedLine(){return Rbi(this.domNode,this.input,this._characterMapping,!1,0)}getVisibleRangesForRange(e,r,o,c){let d=this._getColumnPixelOffset(e,r,c),h=this._getColumnPixelOffset(e,o,c);return[new sQ(d,h-d)]}_getColumnPixelOffset(e,r,o){if(r<=300){let N=this._characterMapping.getHorizontalOffset(r);return this._charWidth*N}let c=Math.floor((r-1)/300)-1,d=(c+1)*300+1,h=-1;if(this._keyColumnPixelOffsetCache&&(h=this._keyColumnPixelOffsetCache[c],h===-1&&(h=this._actualReadPixelOffset(e,d,o),this._keyColumnPixelOffsetCache[c]=h)),h===-1){let N=this._characterMapping.getHorizontalOffset(r);return this._charWidth*N}let b=this._characterMapping.getHorizontalOffset(d),w=this._characterMapping.getHorizontalOffset(r);return h+this._charWidth*(w-b)}_getReadingTarget(e){return e.domNode.firstChild}_actualReadPixelOffset(e,r,o){if(!this.domNode)return-1;let c=this._characterMapping.getDomPosition(r),d=I6e.readHorizontalRanges(this._getReadingTarget(this.domNode),c.partIndex,c.charIndex,c.partIndex,c.charIndex,o);return!d||d.length===0?-1:d[0].left}getColumnOfNodeOffset(e,r){return iPt(this._characterMapping,e,r)}},tPt=class{constructor(e,r,o,c,d){if(this.domNode=e,this.input=r,this._characterMapping=o,this._isWhitespaceOnly=/^\s*$/.test(r.lineContent),this._containsForeignElements=d,this._cachedWidth=-1,this._pixelOffsetCache=null,!c||this._characterMapping.length===0){this._pixelOffsetCache=new Float32Array(Math.max(2,this._characterMapping.length+1));for(let h=0,b=this._characterMapping.length;h<=b;h++)this._pixelOffsetCache[h]=-1}}_getReadingTarget(e){return e.domNode.firstChild}getWidth(e){return this.domNode?(this._cachedWidth===-1&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth,e?.markDidDomLayout()),this._cachedWidth):0}getWidthIsFast(){return this._cachedWidth!==-1}getVisibleRangesForRange(e,r,o,c){if(!this.domNode)return null;if(this._pixelOffsetCache!==null){let d=this._readPixelOffset(this.domNode,e,r,c);if(d===-1)return null;let h=this._readPixelOffset(this.domNode,e,o,c);return h===-1?null:[new sQ(d,h-d)]}return this._readVisibleRangesForRange(this.domNode,e,r,o,c)}_readVisibleRangesForRange(e,r,o,c,d){if(o===c){let h=this._readPixelOffset(e,r,o,d);return h===-1?null:[new sQ(h,0)]}else return this._readRawVisibleRangesForRange(e,o,c,d)}_readPixelOffset(e,r,o,c){if(this._characterMapping.length===0){if(this._containsForeignElements===0||this._containsForeignElements===2)return 0;if(this._containsForeignElements===1)return this.getWidth(c);let d=this._getReadingTarget(e);return d.firstChild?(c.markDidDomLayout(),d.firstChild.offsetWidth):0}if(this._pixelOffsetCache!==null){let d=this._pixelOffsetCache[o];if(d!==-1)return d;let h=this._actualReadPixelOffset(e,r,o,c);return this._pixelOffsetCache[o]=h,h}return this._actualReadPixelOffset(e,r,o,c)}_actualReadPixelOffset(e,r,o,c){if(this._characterMapping.length===0){let w=I6e.readHorizontalRanges(this._getReadingTarget(e),0,0,0,0,c);return!w||w.length===0?-1:w[0].left}if(o===this._characterMapping.length&&this._isWhitespaceOnly&&this._containsForeignElements===0)return this.getWidth(c);let d=this._characterMapping.getDomPosition(o),h=I6e.readHorizontalRanges(this._getReadingTarget(e),d.partIndex,d.charIndex,d.partIndex,d.charIndex,c);if(!h||h.length===0)return-1;let b=h[0].left;if(this.input.isBasicASCII){let w=this._characterMapping.getHorizontalOffset(o),N=Math.round(this.input.spaceWidth*w);if(Math.abs(N-b)<=1)return N}return b}_readRawVisibleRangesForRange(e,r,o,c){if(r===1&&o===this._characterMapping.length)return[new sQ(0,this.getWidth(c))];let d=this._characterMapping.getDomPosition(r),h=this._characterMapping.getDomPosition(o);return I6e.readHorizontalRanges(this._getReadingTarget(e),d.partIndex,d.charIndex,h.partIndex,h.charIndex,c)}getColumnOfNodeOffset(e,r){return iPt(this._characterMapping,e,r)}},nti=class extends tPt{_readVisibleRangesForRange(e,r,o,c,d){let h=super._readVisibleRangesForRange(e,r,o,c,d);if(!h||h.length===0||o===c||o===1&&c===this._characterMapping.length)return h;if(!this.input.containsRTL){let b=this._readPixelOffset(e,r,c,d);if(b!==-1){let w=h[h.length-1];w.left{Mu();$1=class l{static _nextVisibleColumn(e,r,o){return e===9?l.nextRenderTabStop(r,o):fV(e)||fut(e)?r+2:r+1}static visibleColumnFromColumn(e,r,o){let c=Math.min(r-1,e.length),d=e.substring(0,c),h=new V4e(d),b=0;for(;!h.eol();){let w=nVe(d,c,h.offset);h.nextGraphemeLength(),b=this._nextVisibleColumn(w,b,o)}return b}static columnFromVisibleColumn(e,r,o){if(r<=0)return 1;let c=e.length,d=new V4e(e),h=0,b=1;for(;!d.eol();){let w=nVe(e,c,d.offset);d.nextGraphemeLength();let N=this._nextVisibleColumn(w,h,o),L=d.offset+1;if(N>=r){let B=r-h;return N-r{t$();N6e=class l{static whitespaceVisibleColumn(e,r,o){let c=e.length,d=0,h=-1,b=-1;for(let w=0;wd.left+d.width)Te=Z.length;else{let Xe=sPt.getInstance();for(let ct=0;ct{cHe();l3();nPt();Iu();Xa();t$();nc();rti();VY();tre=class{constructor(e=null){this.hitTarget=e,this.type=0}},rPt=class{get hitTarget(){return this.spanNode}constructor(e,r,o){this.position=e,this.spanNode=r,this.injectedText=o,this.type=1}};(function(l){function e(r,o,c){let d=r.getPositionFromDOMInfo(o,c);return d?new rPt(d,o,null):new tre(o)}l.createFromDOMInfo=e})(A6e||(A6e={}));oPt=class{constructor(e,r){this.lastViewCursorsRenderData=e,this.lastTextareaPosition=r}},vA=class{static _deduceRage(e,r=null){return!r&&e?new Zt(e.lineNumber,e.column,e.lineNumber,e.column):r??null}static createUnknown(e,r,o){return{type:0,element:e,mouseColumn:r,position:o,range:this._deduceRage(o)}}static createTextarea(e,r){return{type:1,element:e,mouseColumn:r,position:null,range:null}}static createMargin(e,r,o,c,d,h){return{type:e,element:r,mouseColumn:o,position:c,range:d,detail:h}}static createViewZone(e,r,o,c,d){return{type:e,element:r,mouseColumn:o,position:c,range:this._deduceRage(c),detail:d}}static createContentText(e,r,o,c,d){return{type:6,element:e,mouseColumn:r,position:o,range:this._deduceRage(o,c),detail:d}}static createContentEmpty(e,r,o,c){return{type:7,element:e,mouseColumn:r,position:o,range:this._deduceRage(o),detail:c}}static createContentWidget(e,r,o){return{type:9,element:e,mouseColumn:r,position:null,range:null,detail:o}}static createScrollbar(e,r,o){return{type:11,element:e,mouseColumn:r,position:o,range:this._deduceRage(o)}}static createOverlayWidget(e,r,o){return{type:12,element:e,mouseColumn:r,position:null,range:null,detail:o}}static createOutsideEditor(e,r,o,c){return{type:13,element:null,mouseColumn:e,position:r,range:this._deduceRage(r),outsidePosition:o,outsideDistance:c}}static _typeToString(e){return e===1?"TEXTAREA":e===2?"GUTTER_GLYPH_MARGIN":e===3?"GUTTER_LINE_NUMBERS":e===4?"GUTTER_LINE_DECORATIONS":e===5?"GUTTER_VIEW_ZONE":e===6?"CONTENT_TEXT":e===7?"CONTENT_EMPTY":e===8?"CONTENT_VIEW_ZONE":e===9?"CONTENT_WIDGET":e===10?"OVERVIEW_RULER":e===11?"SCROLLBAR":e===12?"OVERLAY_WIDGET":"UNKNOWN"}static toString(e){return this._typeToString(e.type)+": "+e.position+" - "+e.range+" - "+JSON.stringify(e.detail)}},E6=class{static isTextArea(e){return e.length===2&&e[0]===3&&e[1]===7}static isChildOfViewLines(e){return e.length>=4&&e[0]===3&&e[3]===8}static isStrictChildOfViewLines(e){return e.length>4&&e[0]===3&&e[3]===8}static isChildOfScrollableElement(e){return e.length>=2&&e[0]===3&&e[1]===6}static isChildOfMinimap(e){return e.length>=2&&e[0]===3&&e[1]===9}static isChildOfContentWidgets(e){return e.length>=4&&e[0]===3&&e[3]===1}static isChildOfOverflowGuard(e){return e.length>=1&&e[0]===3}static isChildOfOverflowingContentWidgets(e){return e.length>=1&&e[0]===2}static isChildOfOverlayWidgets(e){return e.length>=2&&e[0]===3&&e[1]===4}static isChildOfOverflowingOverlayWidgets(e){return e.length>=1&&e[0]===5}},pHe=class l{constructor(e,r,o){this.viewModel=e.viewModel;let c=e.configuration.options;this.layoutInfo=c.get(145),this.viewDomNode=r.viewDomNode,this.lineHeight=c.get(67),this.stickyTabStops=c.get(116),this.typicalHalfwidthCharacterWidth=c.get(50).typicalHalfwidthCharacterWidth,this.lastRenderData=o,this._context=e,this._viewHelper=r}getZoneAtCoord(e){return l.getZoneAtCoord(this._context,e)}static getZoneAtCoord(e,r){let o=e.viewLayout.getWhitespaceAtVerticalOffset(r);if(o){let c=o.verticalOffset+o.height/2,d=e.viewModel.getLineCount(),h=null,b,w=null;return o.afterLineNumber!==d&&(w=new qn(o.afterLineNumber+1,1)),o.afterLineNumber>0&&(h=new qn(o.afterLineNumber,e.viewModel.getLineMaxColumn(o.afterLineNumber))),w===null?b=h:h===null?b=w:r=e.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,mHe._getMouseColumn(this.mouseContentHorizontalOffset,e.typicalHalfwidthCharacterWidth))}},ati=class extends sti{get target(){return this._useHitTestTarget?this.hitTestResult.value.hitTarget:this._eventTarget}get targetPath(){return this._targetPathCacheElement!==this.target&&(this._targetPathCacheElement=this.target,this._targetPathCacheValue=yA.collect(this.target,this._ctx.viewDomNode)),this._targetPathCacheValue}constructor(e,r,o,c,d){super(e,r,o,c),this.hitTestResult=new Bw(()=>mHe.doHitTest(this._ctx,this)),this._targetPathCacheElement=null,this._targetPathCacheValue=new Uint8Array(0),this._ctx=e,this._eventTarget=d;let h=!!this._eventTarget;this._useHitTestTarget=!h}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} + target: ${this.target?this.target.outerHTML:null}`}get wouldBenefitFromHitTestTargetSwitch(){return!this._useHitTestTarget&&this.hitTestResult.value.hitTarget!==null&&this.target!==this.hitTestResult.value.hitTarget}switchToHitTestTarget(){this._useHitTestTarget=!0}_getMouseColumn(e=null){return e&&e.columnh.contentLeft+h.width)continue;let b=e.getVerticalOffsetForLineNumber(h.position.lineNumber);if(b<=d&&d<=b+h.height)return r.fulfillContentText(h.position,null,{mightBeForeignElement:!1,injectedText:null})}}return null}static _hitTestViewZone(e,r){let o=e.getZoneAtCoord(r.mouseVerticalOffset);if(o){let c=r.isInContentArea?8:5;return r.fulfillViewZone(c,o.position,o)}return null}static _hitTestTextArea(e,r){return E6.isTextArea(r.targetPath)?e.lastRenderData.lastTextareaPosition?r.fulfillContentText(e.lastRenderData.lastTextareaPosition,null,{mightBeForeignElement:!1,injectedText:null}):r.fulfillTextarea():null}static _hitTestMargin(e,r){if(r.isInMarginArea){let o=e.getFullLineRangeAtCoord(r.mouseVerticalOffset),c=o.range.getStartPosition(),d=Math.abs(r.relativePos.x),h={isAfterLines:o.isAfterLines,glyphMarginLeft:e.layoutInfo.glyphMarginLeft,glyphMarginWidth:e.layoutInfo.glyphMarginWidth,lineNumbersWidth:e.layoutInfo.lineNumbersWidth,offsetX:d};if(d-=e.layoutInfo.glyphMarginLeft,d<=e.layoutInfo.glyphMarginWidth){let b=e.viewModel.coordinatesConverter.convertViewPositionToModelPosition(o.range.getStartPosition()),w=e.viewModel.glyphLanes.getLanesAtLine(b.lineNumber);return h.glyphMarginLane=w[Math.floor(d/e.lineHeight)],r.fulfillMargin(2,c,o.range,h)}return d-=e.layoutInfo.glyphMarginWidth,d<=e.layoutInfo.lineNumbersWidth?r.fulfillMargin(3,c,o.range,h):(d-=e.layoutInfo.lineNumbersWidth,r.fulfillMargin(4,c,o.range,h))}return null}static _hitTestViewLines(e,r){if(!E6.isChildOfViewLines(r.targetPath))return null;if(e.isInTopPadding(r.mouseVerticalOffset))return r.fulfillContentEmpty(new qn(1,1),Bbi);if(e.isAfterLines(r.mouseVerticalOffset)||e.isInBottomPadding(r.mouseVerticalOffset)){let c=e.viewModel.getLineCount(),d=e.viewModel.getLineMaxColumn(c);return r.fulfillContentEmpty(new qn(c,d),Bbi)}if(E6.isStrictChildOfViewLines(r.targetPath)){let c=e.getLineNumberAtVerticalOffset(r.mouseVerticalOffset);if(e.viewModel.getLineLength(c)===0){let h=e.getLineWidth(c),b=oti(r.mouseContentHorizontalOffset-h);return r.fulfillContentEmpty(new qn(c,1),b)}let d=e.getLineWidth(c);if(r.mouseContentHorizontalOffset>=d){let h=oti(r.mouseContentHorizontalOffset-d),b=new qn(c,e.viewModel.getLineMaxColumn(c));return r.fulfillContentEmpty(b,h)}}let o=r.hitTestResult.value;return o.type===1?l.createMouseTargetFromHitTestPosition(e,r,o.spanNode,o.position,o.injectedText):r.wouldBenefitFromHitTestTargetSwitch?(r.switchToHitTestTarget(),this._createMouseTarget(e,r)):r.fulfillUnknown()}static _hitTestMinimap(e,r){if(E6.isChildOfMinimap(r.targetPath)){let o=e.getLineNumberAtVerticalOffset(r.mouseVerticalOffset),c=e.viewModel.getLineMaxColumn(o);return r.fulfillScrollbar(new qn(o,c))}return null}static _hitTestScrollbarSlider(e,r){if(E6.isChildOfScrollableElement(r.targetPath)&&r.target&&r.target.nodeType===1){let o=r.target.className;if(o&&/\b(slider|scrollbar)\b/.test(o)){let c=e.getLineNumberAtVerticalOffset(r.mouseVerticalOffset),d=e.viewModel.getLineMaxColumn(c);return r.fulfillScrollbar(new qn(c,d))}}return null}static _hitTestScrollbar(e,r){if(E6.isChildOfScrollableElement(r.targetPath)){let o=e.getLineNumberAtVerticalOffset(r.mouseVerticalOffset),c=e.viewModel.getLineMaxColumn(o);return r.fulfillScrollbar(new qn(o,c))}return null}getMouseColumn(e){let r=this._context.configuration.options,o=r.get(145),c=this._context.viewLayout.getCurrentScrollLeft()+e.x-o.contentLeft;return l._getMouseColumn(c,r.get(50).typicalHalfwidthCharacterWidth)}static _getMouseColumn(e,r){return e<0?1:Math.round(e/r)+1}static createMouseTargetFromHitTestPosition(e,r,o,c,d){let h=c.lineNumber,b=c.column,w=e.getLineWidth(h);if(r.mouseContentHorizontalOffset>w){let Je=oti(r.mouseContentHorizontalOffset-w);return r.fulfillContentEmpty(c,Je)}let N=e.visibleRangeForPosition(h,b);if(!N)return r.fulfillUnknown(c);let L=N.left;if(Math.abs(r.mouseContentHorizontalOffset-L)<1)return r.fulfillContentText(c,null,{mightBeForeignElement:!!d,injectedText:d});let B=[];if(B.push({offset:N.left,column:b}),b>1){let Je=e.visibleRangeForPosition(h,b-1);Je&&B.push({offset:Je.left,column:b-1})}let F=e.viewModel.getLineMaxColumn(h);if(bJe.offset-Xe.offset);let Y=r.pos.toClientCoordinates(Gc(e.viewDomNode)),Z=o.getBoundingClientRect(),ee=Z.left<=Y.clientX&&Y.clientX<=Z.right,Te=null;for(let Je=1;Jed)){let b=Math.floor((c+d)/2),w=r.pos.y+(b-r.mouseVerticalOffset);w<=r.editorPos.y&&(w=r.editorPos.y+1),w>=r.editorPos.y+r.editorPos.height&&(w=r.editorPos.y+r.editorPos.height-1);let N=new ESe(r.pos.x,w),L=this._actualDoHitTestWithCaretRangeFromPoint(e,N.toClientCoordinates(Gc(e.viewDomNode)));if(L.type===1)return L}return this._actualDoHitTestWithCaretRangeFromPoint(e,r.pos.toClientCoordinates(Gc(e.viewDomNode)))}static _actualDoHitTestWithCaretRangeFromPoint(e,r){let o=$Y(e.viewDomNode),c;if(o?typeof o.caretRangeFromPoint>"u"?c=K9i(o,r.clientX,r.clientY):c=o.caretRangeFromPoint(r.clientX,r.clientY):c=e.viewDomNode.ownerDocument.caretRangeFromPoint(r.clientX,r.clientY),!c||!c.startContainer)return new tre;let d=c.startContainer;if(d.nodeType===d.TEXT_NODE){let h=d.parentNode,b=h?h.parentNode:null,w=b?b.parentNode:null;return(w&&w.nodeType===w.ELEMENT_NODE?w.className:null)===e$.CLASS_NAME?A6e.createFromDOMInfo(e,h,c.startOffset):new tre(d.parentNode)}else if(d.nodeType===d.ELEMENT_NODE){let h=d.parentNode,b=h?h.parentNode:null;return(b&&b.nodeType===b.ELEMENT_NODE?b.className:null)===e$.CLASS_NAME?A6e.createFromDOMInfo(e,d,d.textContent.length):new tre(d)}return new tre}static _doHitTestWithCaretPositionFromPoint(e,r){let o=e.viewDomNode.ownerDocument.caretPositionFromPoint(r.clientX,r.clientY);if(o.offsetNode.nodeType===o.offsetNode.TEXT_NODE){let c=o.offsetNode.parentNode,d=c?c.parentNode:null,h=d?d.parentNode:null;return(h&&h.nodeType===h.ELEMENT_NODE?h.className:null)===e$.CLASS_NAME?A6e.createFromDOMInfo(e,o.offsetNode.parentNode,o.offset):new tre(o.offsetNode.parentNode)}if(o.offsetNode.nodeType===o.offsetNode.ELEMENT_NODE){let c=o.offsetNode.parentNode,d=c&&c.nodeType===c.ELEMENT_NODE?c.className:null,h=c?c.parentNode:null,b=h&&h.nodeType===h.ELEMENT_NODE?h.className:null;if(d===e$.CLASS_NAME){let w=o.offsetNode.childNodes[Math.min(o.offset,o.offsetNode.childNodes.length-1)];if(w)return A6e.createFromDOMInfo(e,w,0)}else if(b===e$.CLASS_NAME)return A6e.createFromDOMInfo(e,o.offsetNode,0)}return new tre(o.offsetNode)}static _snapToSoftTabBoundary(e,r){let o=r.getLineContent(e.lineNumber),{tabSize:c}=r.model.getOptions(),d=N6e.atomicPosition(o,e.column-1,c,2);return d!==-1?new qn(e.lineNumber,d+1):e}static doHitTest(e,r){let o=new tre;if(typeof e.viewDomNode.ownerDocument.caretRangeFromPoint=="function"?o=this._doHitTestWithCaretRangeFromPoint(e,r):e.viewDomNode.ownerDocument.caretPositionFromPoint&&(o=this._doHitTestWithCaretPositionFromPoint(e,r.pos.toClientCoordinates(Gc(e.viewDomNode)))),o.type===1){let c=e.viewModel.getInjectedTextAt(o.position),d=e.viewModel.normalizePosition(o.position,2);(c||!d.equals(o.position))&&(o=new rPt(d,o.spanNode,c))}return o}};sPt=class l{static getInstance(){return l._INSTANCE||(l._INSTANCE=new l),l._INSTANCE}constructor(){this._cache={},this._canvas=document.createElement("canvas")}getCharWidth(e,r){let o=e+r;if(this._cache[o])return this._cache[o];let c=this._canvas.getContext("2d");c.font=r;let h=c.measureText(e).width;return this._cache[o]=h,h}};sPt._INSTANCE=null});function G1(l,e,r){let o=null,c=null;if(typeof r.value=="function"?(o="value",c=r.value,c.length!==0&&console.warn("Memoize should only be used in functions with zero parameters")):typeof r.get=="function"&&(o="get",c=r.get),!c)throw new Error("not supported");let d=`$memoize$${e}`;r[o]=function(...h){return this.hasOwnProperty(d)||Object.defineProperty(this,d,{configurable:!1,enumerable:!1,writable:!1,value:c.apply(this,h)}),this[d]}}var DSe=ti(()=>{});var X9i,pg,d1,FR=ti(()=>{nc();S6();sd();DSe();xc();co();mB();X9i=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d};(function(l){l.Tap="-monaco-gesturetap",l.Change="-monaco-gesturechange",l.Start="-monaco-gesturestart",l.End="-monaco-gesturesend",l.Contextmenu="-monaco-gesturecontextmenu"})(pg||(pg={}));d1=class l extends tn{constructor(){super(),this.dispatched=!1,this.targets=new QS,this.ignoreTargets=new QS,this.activeTouches={},this.handle=null,this._lastSetTapCountTime=0,this._register(gs.runAndSubscribe(J4e,({window:e,disposables:r})=>{r.add(Jr(e.document,"touchstart",o=>this.onTouchStart(o),{passive:!1})),r.add(Jr(e.document,"touchend",o=>this.onTouchEnd(e,o))),r.add(Jr(e.document,"touchmove",o=>this.onTouchMove(o),{passive:!1}))},{window:em,disposables:this._store}))}static addTarget(e){if(!l.isTouchDevice())return tn.None;l.INSTANCE||(l.INSTANCE=Wbe(new l));let r=l.INSTANCE.targets.push(e);return Ma(r)}static ignoreTarget(e){if(!l.isTouchDevice())return tn.None;l.INSTANCE||(l.INSTANCE=Wbe(new l));let r=l.INSTANCE.ignoreTargets.push(e);return Ma(r)}static isTouchDevice(){return"ontouchstart"in em||navigator.maxTouchPoints>0}dispose(){this.handle&&(this.handle.dispose(),this.handle=null),super.dispose()}onTouchStart(e){let r=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(let o=0,c=e.targetTouches.length;o=l.HOLD_DELAY&&Math.abs(w.initialPageX-fB(w.rollingPageX))<30&&Math.abs(w.initialPageY-fB(w.rollingPageY))<30){let L=this.newGestureEvent(pg.Contextmenu,w.initialTarget);L.pageX=fB(w.rollingPageX),L.pageY=fB(w.rollingPageY),this.dispatchEvent(L)}else if(c===1){let L=fB(w.rollingPageX),B=fB(w.rollingPageY),F=fB(w.rollingTimestamps)-w.rollingTimestamps[0],Y=L-w.rollingPageX[0],Z=B-w.rollingPageY[0],ee=[...this.targets].filter(Te=>w.initialTarget instanceof Node&&Te.contains(w.initialTarget));this.inertia(e,ee,o,Math.abs(Y)/F,Y>0?1:-1,L,Math.abs(Z)/F,Z>0?1:-1,B)}this.dispatchEvent(this.newGestureEvent(pg.End,w.initialTarget)),delete this.activeTouches[b.identifier]}this.dispatched&&(r.preventDefault(),r.stopPropagation(),this.dispatched=!1)}newGestureEvent(e,r){let o=document.createEvent("CustomEvent");return o.initEvent(e,!1,!0),o.initialTarget=r,o.tapCount=0,o}dispatchEvent(e){if(e.type===pg.Tap){let r=new Date().getTime(),o=0;r-this._lastSetTapCountTime>l.CLEAR_TAP_COUNT_TIME?o=1:o=2,this._lastSetTapCountTime=r,e.tapCount=o}else(e.type===pg.Change||e.type===pg.Contextmenu)&&(this._lastSetTapCountTime=0);if(e.initialTarget instanceof Node){for(let o of this.ignoreTargets)if(o.contains(e.initialTarget))return;let r=[];for(let o of this.targets)if(o.contains(e.initialTarget)){let c=0,d=e.initialTarget;for(;d&&d!==o;)c++,d=d.parentElement;r.push([c,o])}r.sort((o,c)=>o[0]-c[0]);for(let[o,c]of r)c.dispatchEvent(e),this.dispatched=!0}}inertia(e,r,o,c,d,h,b,w,N){this.handle=LD(e,()=>{let L=Date.now(),B=L-o,F=0,Y=0,Z=!0;c+=l.SCROLL_FRICTION*B,b+=l.SCROLL_FRICTION*B,c>0&&(Z=!1,F=d*c*B),b>0&&(Z=!1,Y=w*b*B);let ee=this.newGestureEvent(pg.Change);ee.translationX=F,ee.translationY=Y,r.forEach(Te=>Te.dispatchEvent(ee)),Z||this.inertia(e,r,L,c,d,h+F,b,w,N+Y)})}onTouchMove(e){let r=Date.now();for(let o=0,c=e.changedTouches.length;o3&&(h.rollingPageX.shift(),h.rollingPageY.shift(),h.rollingTimestamps.shift()),h.rollingPageX.push(d.pageX),h.rollingPageY.push(d.pageY),h.rollingTimestamps.push(r)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}};d1.SCROLL_FRICTION=-.005;d1.HOLD_DELAY=700;d1.CLEAR_TAP_COUNT_TIME=400;X9i([G1],d1,"isTouchDevice",null)});var ew,IV=ti(()=>{nc();lA();vB();FR();co();ew=class extends tn{onclick(e,r){this._register(Jr(e,ls.CLICK,o=>r(new PD(Gc(e),o))))}onmousedown(e,r){this._register(Jr(e,ls.MOUSE_DOWN,o=>r(new PD(Gc(e),o))))}onmouseover(e,r){this._register(Jr(e,ls.MOUSE_OVER,o=>r(new PD(Gc(e),o))))}onmouseleave(e,r){this._register(Jr(e,ls.MOUSE_LEAVE,o=>r(new PD(Gc(e),o))))}onkeydown(e,r){this._register(Jr(e,ls.KEY_DOWN,o=>r(new Jp(o))))}onkeyup(e,r){this._register(Jr(e,ls.KEY_UP,o=>r(new Jp(o))))}oninput(e,r){this._register(Jr(e,ls.INPUT,r))}onblur(e,r){this._register(Jr(e,ls.BLUR,r))}onfocus(e,r){this._register(Jr(e,ls.FOCUS,r))}ignoreGesture(e){return d1.ignoreTarget(e)}}});var ISe,aPt,cPt=ti(()=>{KVe();IV();Ud();bv();nc();ISe=11,aPt=class extends ew{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",typeof e.top<"u"&&(this.bgDomNode.style.top="0px"),typeof e.left<"u"&&(this.bgDomNode.style.left="0px"),typeof e.bottom<"u"&&(this.bgDomNode.style.bottom="0px"),typeof e.right<"u"&&(this.bgDomNode.style.right="0px"),this.domNode=document.createElement("div"),this.domNode.className=e.className,this.domNode.classList.add(...sl.asClassNameArray(e.icon)),this.domNode.style.position="absolute",this.domNode.style.width=ISe+"px",this.domNode.style.height=ISe+"px",typeof e.top<"u"&&(this.domNode.style.top=e.top+"px"),typeof e.left<"u"&&(this.domNode.style.left=e.left+"px"),typeof e.bottom<"u"&&(this.domNode.style.bottom=e.bottom+"px"),typeof e.right<"u"&&(this.domNode.style.right=e.right+"px"),this._pointerMoveMonitor=this._register(new CV),this._register(qh(this.bgDomNode,ls.POINTER_DOWN,r=>this._arrowPointerDown(r))),this._register(qh(this.domNode,ls.POINTER_DOWN,r=>this._arrowPointerDown(r))),this._pointerdownRepeatTimer=this._register(new eSe),this._pointerdownScheduleRepeatTimer=this._register(new ET)}_arrowPointerDown(e){if(!e.target||!(e.target instanceof Element))return;let r=()=>{this._pointerdownRepeatTimer.cancelAndSet(()=>this._onActivate(),1e3/24,Gc(e))};this._onActivate(),this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancelAndSet(r,200),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,o=>{},()=>{this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancel()}),e.preventDefault()}}});var lPt,jbi=ti(()=>{Ud();co();lPt=class extends tn{constructor(e,r,o){super(),this._visibility=e,this._visibleClassName=r,this._invisibleClassName=o,this._domNode=null,this._isVisible=!1,this._isNeeded=!1,this._rawShouldBeVisible=!1,this._shouldBeVisible=!1,this._revealTimer=this._register(new ET)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this._updateShouldBeVisible())}setShouldBeVisible(e){this._rawShouldBeVisible=e,this._updateShouldBeVisible()}_applyVisibilitySetting(){return this._visibility===2?!1:this._visibility===3?!0:this._rawShouldBeVisible}_updateShouldBeVisible(){let 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(){if(!this._isNeeded){this._hide(!1);return}this._shouldBeVisible?this._reveal():this._hide(!0)}_reveal(){this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet(()=>{var e;(e=this._domNode)===null||e===void 0||e.setClassName(this._visibleClassName)},0))}_hide(e){var r;this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,(r=this._domNode)===null||r===void 0||r.setClassName(this._invisibleClassName+(e?" fade":"")))}}});var Y9i,hHe,lti=ti(()=>{nc();SE();KVe();cPt();jbi();IV();X_();Y9i=140,hHe=class extends ew{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 lPt(e.visibility,"visible scrollbar "+e.extraScrollbarClassName,"invisible scrollbar "+e.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._pointerMoveMonitor=this._register(new CV),this._shouldRender=!0,this.domNode=V_(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(Jr(this.domNode.domNode,ls.POINTER_DOWN,r=>this._domNodePointerDown(r)))}_createArrow(e){let r=this._register(new aPt(e));this.domNode.domNode.appendChild(r.bgDomNode),this.domNode.domNode.appendChild(r.domNode)}_createSlider(e,r,o,c){this.slider=V_(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(e),this.slider.setLeft(r),typeof o=="number"&&this.slider.setWidth(o),typeof c=="number"&&this.slider.setHeight(c),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this._register(Jr(this.slider.domNode,ls.POINTER_DOWN,d=>{d.button===0&&(d.preventDefault(),this._sliderPointerDown(d))})),this.onclick(this.slider.domNode,d=>{d.leftButton&&d.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){let r=this.domNode.domNode.getClientRects()[0].top,o=r+this._scrollbarState.getSliderPosition(),c=r+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),d=this._sliderPointerPosition(e);o<=d&&d<=c?e.button===0&&(e.preventDefault(),this._sliderPointerDown(e)):this._onPointerDown(e)}_onPointerDown(e){let r,o;if(e.target===this.domNode.domNode&&typeof e.offsetX=="number"&&typeof e.offsetY=="number")r=e.offsetX,o=e.offsetY;else{let d=_g(this.domNode.domNode);r=e.pageX-d.left,o=e.pageY-d.top}let c=this._pointerDownRelativePosition(r,o);this._setDesiredScrollPositionNow(this._scrollByPage?this._scrollbarState.getDesiredScrollPositionFromOffsetPaged(c):this._scrollbarState.getDesiredScrollPositionFromOffset(c)),e.button===0&&(e.preventDefault(),this._sliderPointerDown(e))}_sliderPointerDown(e){if(!e.target||!(e.target instanceof Element))return;let r=this._sliderPointerPosition(e),o=this._sliderOrthogonalPointerPosition(e),c=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,d=>{let h=this._sliderOrthogonalPointerPosition(d),b=Math.abs(h-o);if(Bv&&b>Y9i){this._setDesiredScrollPositionNow(c.getScrollPosition());return}let N=this._sliderPointerPosition(d)-r;this._setDesiredScrollPositionNow(c.getDesiredScrollPositionFromDelta(N))},()=>{this.slider.toggleClassName("active",!1),this._host.onDragEnd()}),this._host.onDragStart()}_setDesiredScrollPositionNow(e){let r={};this.writeScrollPosition(r,e),this._scrollable.setScrollPositionNow(r)}updateScrollbarSize(e){this._updateScrollbarSize(e),this._scrollbarState.setScrollbarSize(e),this._shouldRender=!0,this._lazyRender||this.render()}isNeeded(){return this._scrollbarState.isNeeded()}}});var NSe,uPt=ti(()=>{NSe=class l{constructor(e,r,o,c,d,h){this._scrollbarSize=Math.round(r),this._oppositeScrollbarSize=Math.round(o),this._arrowSize=Math.round(e),this._visibleSize=c,this._scrollSize=d,this._scrollPosition=h,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new l(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}setVisibleSize(e){let r=Math.round(e);return this._visibleSize!==r?(this._visibleSize=r,this._refreshComputedValues(),!0):!1}setScrollSize(e){let r=Math.round(e);return this._scrollSize!==r?(this._scrollSize=r,this._refreshComputedValues(),!0):!1}setScrollPosition(e){let r=Math.round(e);return this._scrollPosition!==r?(this._scrollPosition=r,this._refreshComputedValues(),!0):!1}setScrollbarSize(e){this._scrollbarSize=Math.round(e)}setOppositeScrollbarSize(e){this._oppositeScrollbarSize=Math.round(e)}static _computeValues(e,r,o,c,d){let h=Math.max(0,o-e),b=Math.max(0,h-2*r),w=c>0&&c>o;if(!w)return{computedAvailableSize:Math.round(h),computedIsNeeded:w,computedSliderSize:Math.round(b),computedSliderRatio:0,computedSliderPosition:0};let N=Math.round(Math.max(20,Math.floor(o*b/c))),L=(b-N)/(c-o),B=d*L;return{computedAvailableSize:Math.round(h),computedIsNeeded:w,computedSliderSize:Math.round(N),computedSliderRatio:L,computedSliderPosition:Math.round(B)}}_refreshComputedValues(){let e=l._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;let r=e-this._arrowSize-this._computedSliderSize/2;return Math.round(r/this._computedSliderRatio)}getDesiredScrollPositionFromOffsetPaged(e){if(!this._computedIsNeeded)return 0;let r=e-this._arrowSize,o=this._scrollPosition;return r{vB();lti();cPt();uPt();uy();dPt=class extends hHe{constructor(e,r,o){let c=e.getScrollDimensions(),d=e.getCurrentScrollPosition();if(super({lazyRender:r.lazyRender,host:o,scrollbarState:new NSe(r.horizontalHasArrows?r.arrowSize:0,r.horizontal===2?0:r.horizontalScrollbarSize,r.vertical===2?0:r.verticalScrollbarSize,c.width,c.scrollWidth,d.scrollLeft),visibility:r.horizontal,extraScrollbarClassName:"horizontal",scrollable:e,scrollByPage:r.scrollByPage}),r.horizontalHasArrows){let h=(r.arrowSize-ISe)/2,b=(r.horizontalScrollbarSize-ISe)/2;this._createArrow({className:"scra",icon:_s.scrollbarButtonLeft,top:b,left:h,bottom:void 0,right:void 0,bgWidth:r.arrowSize,bgHeight:r.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new pV(null,1,0))}),this._createArrow({className:"scra",icon:_s.scrollbarButtonRight,top:b,left:void 0,bottom:void 0,right:h,bgWidth:r.arrowSize,bgHeight:r.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new pV(null,-1,0))})}this._createSlider(Math.floor((r.horizontalScrollbarSize-r.horizontalSliderSize)/2),0,void 0,r.horizontalSliderSize)}_updateSlider(e,r){this.slider.setWidth(e),this.slider.setLeft(r)}_renderDomNode(e,r){this.domNode.setWidth(e),this.domNode.setHeight(r),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,r){return e}_sliderPointerPosition(e){return e.pageX}_sliderOrthogonalPointerPosition(e){return e.pageY}_updateScrollbarSize(e){this.slider.setHeight(e)}writeScrollPosition(e,r){e.scrollLeft=r}updateOptions(e){this.updateScrollbarSize(e.horizontal===2?0:e.horizontalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(e.vertical===2?0:e.verticalScrollbarSize),this._visibilityController.setVisibility(e.horizontal),this._scrollByPage=e.scrollByPage}}});var fPt,zbi=ti(()=>{vB();lti();cPt();uPt();uy();fPt=class extends hHe{constructor(e,r,o){let c=e.getScrollDimensions(),d=e.getCurrentScrollPosition();if(super({lazyRender:r.lazyRender,host:o,scrollbarState:new NSe(r.verticalHasArrows?r.arrowSize:0,r.vertical===2?0:r.verticalScrollbarSize,0,c.height,c.scrollHeight,d.scrollTop),visibility:r.vertical,extraScrollbarClassName:"vertical",scrollable:e,scrollByPage:r.scrollByPage}),r.verticalHasArrows){let h=(r.arrowSize-ISe)/2,b=(r.verticalScrollbarSize-ISe)/2;this._createArrow({className:"scra",icon:_s.scrollbarButtonUp,top:h,left:b,bottom:void 0,right:void 0,bgWidth:r.verticalScrollbarSize,bgHeight:r.arrowSize,onActivate:()=>this._host.onMouseWheel(new pV(null,0,1))}),this._createArrow({className:"scra",icon:_s.scrollbarButtonDown,top:void 0,left:b,bottom:h,right:void 0,bgWidth:r.verticalScrollbarSize,bgHeight:r.arrowSize,onActivate:()=>this._host.onMouseWheel(new pV(null,0,-1))})}this._createSlider(0,Math.floor((r.verticalScrollbarSize-r.verticalSliderSize)/2),r.verticalSliderSize,void 0)}_updateSlider(e,r){this.slider.setHeight(e),this.slider.setTop(r)}_renderDomNode(e,r){this.domNode.setWidth(r),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,r){return r}_sliderPointerPosition(e){return e.pageY}_sliderOrthogonalPointerPosition(e){return e.pageX}_updateScrollbarSize(e){this.slider.setWidth(e)}writeScrollPosition(e,r){e.scrollTop=r}updateOptions(e){this.updateScrollbarSize(e.vertical===2?0:e.verticalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(0),this._visibilityController.setVisibility(e.vertical),this._scrollByPage=e.scrollByPage}}});function uti(l,e){let r=e-l;return function(o){return l+r*eBi(o)}}function Q9i(l,e,r){return function(o){return o{xc();co();dti=class l{constructor(e,r,o,c,d,h,b){this._forceIntegerValues=e,this._scrollStateBrand=void 0,this._forceIntegerValues&&(r=r|0,o=o|0,c=c|0,d=d|0,h=h|0,b=b|0),this.rawScrollLeft=c,this.rawScrollTop=b,r<0&&(r=0),c+r>o&&(c=o-r),c<0&&(c=0),d<0&&(d=0),b+d>h&&(b=h-d),b<0&&(b=0),this.width=r,this.scrollWidth=o,this.scrollLeft=c,this.height=d,this.scrollHeight=h,this.scrollTop=b}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,r){return new l(this._forceIntegerValues,typeof e.width<"u"?e.width:this.width,typeof e.scrollWidth<"u"?e.scrollWidth:this.scrollWidth,r?this.rawScrollLeft:this.scrollLeft,typeof e.height<"u"?e.height:this.height,typeof e.scrollHeight<"u"?e.scrollHeight:this.scrollHeight,r?this.rawScrollTop:this.scrollTop)}withScrollPosition(e){return new l(this._forceIntegerValues,this.width,this.scrollWidth,typeof e.scrollLeft<"u"?e.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,typeof e.scrollTop<"u"?e.scrollTop:this.rawScrollTop)}createScrollEvent(e,r){let o=this.width!==e.width,c=this.scrollWidth!==e.scrollWidth,d=this.scrollLeft!==e.scrollLeft,h=this.height!==e.height,b=this.scrollHeight!==e.scrollHeight,w=this.scrollTop!==e.scrollTop;return{inSmoothScrolling:r,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:o,scrollWidthChanged:c,scrollLeftChanged:d,heightChanged:h,scrollHeightChanged:b,scrollTopChanged:w}}},NV=class extends tn{constructor(e){super(),this._scrollableBrand=void 0,this._onScroll=this._register(new wn),this.onScroll=this._onScroll.event,this._smoothScrollDuration=e.smoothScrollDuration,this._scheduleAtNextAnimationFrame=e.scheduleAtNextAnimationFrame,this._state=new dti(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,r){var o;let c=this._state.withScrollDimensions(e,r);this._setState(c,!!this._smoothScrolling),(o=this._smoothScrolling)===null||o===void 0||o.acceptScrollDimensions(this._state)}getFutureScrollPosition(){return this._smoothScrolling?this._smoothScrolling.to:this._state}getCurrentScrollPosition(){return this._state}setScrollPositionNow(e){let r=this._state.withScrollPosition(e);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(r,!1)}setScrollPositionSmooth(e,r){if(this._smoothScrollDuration===0)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:typeof e.scrollLeft>"u"?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:typeof e.scrollTop>"u"?this._smoothScrolling.to.scrollTop:e.scrollTop};let o=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===o.scrollLeft&&this._smoothScrolling.to.scrollTop===o.scrollTop)return;let c;r?c=new pPt(this._smoothScrolling.from,o,this._smoothScrolling.startTime,this._smoothScrolling.duration):c=this._smoothScrolling.combine(this._state,o,this._smoothScrollDuration),this._smoothScrolling.dispose(),this._smoothScrolling=c}else{let o=this._state.withScrollPosition(e);this._smoothScrolling=pPt.start(this._state,o,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}hasPendingScrollAnimation(){return!!this._smoothScrolling}_performSmoothScrolling(){if(!this._smoothScrolling)return;let e=this._smoothScrolling.tick(),r=this._state.withScrollPosition(e);if(this._setState(r,!0),!!this._smoothScrolling){if(e.isDone){this._smoothScrolling.dispose(),this._smoothScrolling=null;return}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}}_setState(e,r){let o=this._state;o.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(o,r)))}},_Pt=class{constructor(e,r,o){this.scrollLeft=e,this.scrollTop=r,this.isDone=o}};pPt=class l{constructor(e,r,o,c){this.from=e,this.to=r,this.duration=c,this.startTime=o,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,r,o){if(Math.abs(e-r)>2.5*o){let d,h;return e{});function iBi(l){let e={lazyRender:typeof l.lazyRender<"u"?l.lazyRender:!1,className:typeof l.className<"u"?l.className:"",useShadows:typeof l.useShadows<"u"?l.useShadows:!0,handleMouseWheel:typeof l.handleMouseWheel<"u"?l.handleMouseWheel:!0,flipAxes:typeof l.flipAxes<"u"?l.flipAxes:!1,consumeMouseWheelIfScrollbarIsNeeded:typeof l.consumeMouseWheelIfScrollbarIsNeeded<"u"?l.consumeMouseWheelIfScrollbarIsNeeded:!1,alwaysConsumeMouseWheel:typeof l.alwaysConsumeMouseWheel<"u"?l.alwaysConsumeMouseWheel:!1,scrollYToX:typeof l.scrollYToX<"u"?l.scrollYToX:!1,mouseWheelScrollSensitivity:typeof l.mouseWheelScrollSensitivity<"u"?l.mouseWheelScrollSensitivity:1,fastScrollSensitivity:typeof l.fastScrollSensitivity<"u"?l.fastScrollSensitivity:5,scrollPredominantAxis:typeof l.scrollPredominantAxis<"u"?l.scrollPredominantAxis:!0,mouseWheelSmoothScroll:typeof l.mouseWheelSmoothScroll<"u"?l.mouseWheelSmoothScroll:!0,arrowSize:typeof l.arrowSize<"u"?l.arrowSize:11,listenOnDomNode:typeof l.listenOnDomNode<"u"?l.listenOnDomNode:null,horizontal:typeof l.horizontal<"u"?l.horizontal:1,horizontalScrollbarSize:typeof l.horizontalScrollbarSize<"u"?l.horizontalScrollbarSize:10,horizontalSliderSize:typeof l.horizontalSliderSize<"u"?l.horizontalSliderSize:0,horizontalHasArrows:typeof l.horizontalHasArrows<"u"?l.horizontalHasArrows:!1,vertical:typeof l.vertical<"u"?l.vertical:1,verticalScrollbarSize:typeof l.verticalScrollbarSize<"u"?l.verticalScrollbarSize:10,verticalHasArrows:typeof l.verticalHasArrows<"u"?l.verticalHasArrows:!1,verticalSliderSize:typeof l.verticalSliderSize<"u"?l.verticalSliderSize:0,scrollByPage:typeof l.scrollByPage<"u"?l.scrollByPage:!1};return e.horizontalSliderSize=typeof l.horizontalSliderSize<"u"?l.horizontalSliderSize:e.horizontalScrollbarSize,e.verticalSliderSize=typeof l.verticalSliderSize<"u"?l.verticalSliderSize:e.verticalScrollbarSize,md&&(e.className+=" mac"),e}var tBi,Hbi,Ubi,fti,P6e,xdt,yHe,ire,i$,AV=ti(()=>{ZF();nc();SE();vB();Wbi();zbi();IV();Ud();xc();co();X_();gHe();Vbi();tBi=500,Hbi=50,Ubi=!0,fti=class{constructor(e,r,o){this.timestamp=e,this.deltaX=r,this.deltaY=o,this.score=0}},P6e=class{constructor(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}isPhysicalMouseWheel(){if(this._front===-1&&this._rear===-1)return!1;let e=1,r=0,o=1,c=this._rear;do{let d=c===this._front?e:Math.pow(2,-o);if(e-=d,r+=this._memory[c].score*d,c===this._front)break;c=(this._capacity+c-1)%this._capacity,o++}while(!0);return r<=.5}acceptStandardWheelEvent(e){if(Xbe){let r=Gc(e.browserEvent),o=o0i(r);this.accept(Date.now(),e.deltaX*o,e.deltaY*o)}else this.accept(Date.now(),e.deltaX,e.deltaY)}accept(e,r,o){let c=null,d=new fti(e,r,o);this._front===-1&&this._rear===-1?(this._memory[0]=d,this._front=0,this._rear=0):(c=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]=d),d.score=this._computeScore(d,c)}_computeScore(e,r){if(Math.abs(e.deltaX)>0&&Math.abs(e.deltaY)>0)return 1;let o=.5;if((!this._isAlmostInt(e.deltaX)||!this._isAlmostInt(e.deltaY))&&(o+=.25),r){let c=Math.abs(e.deltaX),d=Math.abs(e.deltaY),h=Math.abs(r.deltaX),b=Math.abs(r.deltaY),w=Math.max(Math.min(c,h),1),N=Math.max(Math.min(d,b),1),L=Math.max(c,h),B=Math.max(d,b);L%w===0&&B%N===0&&(o-=.5)}return Math.min(Math.max(o,0),1)}_isAlmostInt(e){return Math.abs(Math.round(e)-e)<.01}};P6e.INSTANCE=new P6e;xdt=class extends ew{get options(){return this._options}constructor(e,r,o){super(),this._onScroll=this._register(new wn),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new wn),e.style.overflow="hidden",this._options=iBi(r),this._scrollable=o,this._register(this._scrollable.onScroll(d=>{this._onWillScroll.fire(d),this._onDidScroll(d),this._onScroll.fire(d)}));let c={onMouseWheel:d=>this._onMouseWheel(d),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()};this._verticalScrollbar=this._register(new fPt(this._scrollable,this._options,c)),this._horizontalScrollbar=this._register(new dPt(this._scrollable,this._options,c)),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=V_(document.createElement("div")),this._leftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=V_(document.createElement("div")),this._topShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=V_(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,d=>this._onMouseOver(d)),this.onmouseleave(this._listenOnDomNode,d=>this._onMouseLeave(d)),this._hideTimeout=this._register(new ET),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}dispose(){this._mouseWheelToDispose=Fp(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,md&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className}updateOptions(e){typeof e.handleMouseWheel<"u"&&(this._options.handleMouseWheel=e.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),typeof e.mouseWheelScrollSensitivity<"u"&&(this._options.mouseWheelScrollSensitivity=e.mouseWheelScrollSensitivity),typeof e.fastScrollSensitivity<"u"&&(this._options.fastScrollSensitivity=e.fastScrollSensitivity),typeof e.scrollPredominantAxis<"u"&&(this._options.scrollPredominantAxis=e.scrollPredominantAxis),typeof e.horizontal<"u"&&(this._options.horizontal=e.horizontal),typeof e.vertical<"u"&&(this._options.vertical=e.vertical),typeof e.horizontalScrollbarSize<"u"&&(this._options.horizontalScrollbarSize=e.horizontalScrollbarSize),typeof e.verticalScrollbarSize<"u"&&(this._options.verticalScrollbarSize=e.verticalScrollbarSize),typeof e.scrollByPage<"u"&&(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 pV(e))}_setListeningToMouseWheel(e){if(this._mouseWheelToDispose.length>0!==e&&(this._mouseWheelToDispose=Fp(this._mouseWheelToDispose),e)){let o=c=>{this._onMouseWheel(new pV(c))};this._mouseWheelToDispose.push(Jr(this._listenOnDomNode,ls.MOUSE_WHEEL,o,{passive:!1}))}}_onMouseWheel(e){var r;if(!((r=e.browserEvent)===null||r===void 0)&&r.defaultPrevented)return;let o=P6e.INSTANCE;Ubi&&o.acceptStandardWheelEvent(e);let c=!1;if(e.deltaY||e.deltaX){let h=e.deltaY*this._options.mouseWheelScrollSensitivity,b=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(this._options.scrollYToX&&b+h===0?b=h=0:Math.abs(h)>=Math.abs(b)?b=0:h=0),this._options.flipAxes&&([h,b]=[b,h]);let w=!md&&e.browserEvent&&e.browserEvent.shiftKey;(this._options.scrollYToX||w)&&!b&&(b=h,h=0),e.browserEvent&&e.browserEvent.altKey&&(b=b*this._options.fastScrollSensitivity,h=h*this._options.fastScrollSensitivity);let N=this._scrollable.getFutureScrollPosition(),L={};if(h){let B=Hbi*h,F=N.scrollTop-(B<0?Math.floor(B):Math.ceil(B));this._verticalScrollbar.writeScrollPosition(L,F)}if(b){let B=Hbi*b,F=N.scrollLeft-(B<0?Math.floor(B):Math.ceil(B));this._horizontalScrollbar.writeScrollPosition(L,F)}L=this._scrollable.validateScrollPosition(L),(N.scrollLeft!==L.scrollLeft||N.scrollTop!==L.scrollTop)&&(Ubi&&this._options.mouseWheelSmoothScroll&&o.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(L):this._scrollable.setScrollPositionNow(L),c=!0)}let d=c;!d&&this._options.alwaysConsumeMouseWheel&&(d=!0),!d&&this._options.consumeMouseWheelIfScrollbarIsNeeded&&(this._verticalScrollbar.isNeeded()||this._horizontalScrollbar.isNeeded())&&(d=!0),d&&(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)){let e=this._scrollable.getCurrentScrollPosition(),r=e.scrollTop>0,o=e.scrollLeft>0,c=o?" left":"",d=r?" top":"",h=o||r?" top-left-corner":"";this._leftShadowDomNode.setClassName(`shadow${c}`),this._topShadowDomNode.setClassName(`shadow${d}`),this._topLeftShadowDomNode.setClassName(`shadow${h}${d}${c}`)}}_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(),tBi)}},yHe=class extends xdt{constructor(e,r){r=r||{},r.mouseWheelSmoothScroll=!1;let o=new NV({forceIntegerValues:!0,smoothScrollDuration:0,scheduleAtNextAnimationFrame:c=>LD(Gc(e),c)});super(e,r,o),this._register(o)}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}},ire=class extends xdt{constructor(e,r,o){super(e,r,o)}setScrollPosition(e){e.reuseAnimation?this._scrollable.setScrollPositionSmooth(e,e.reuseAnimation):this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}},i$=class extends xdt{constructor(e,r){r=r||{},r.mouseWheelSmoothScroll=!1;let o=new NV({forceIntegerValues:!1,smoothScrollDuration:0,scheduleAtNextAnimationFrame:c=>LD(Gc(e),c)});super(e,r,o),this._register(o),this._element=e,this._register(this.onScroll(c=>{c.scrollTopChanged&&(this._element.scrollTop=c.scrollTop),c.scrollLeftChanged&&(this._element.scrollLeft=c.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})}}});var vHe,_ti,pti,mti,mPt,Jbi=ti(()=>{nc();vB();co();X_();cti();cHe();gVe();Iu();j0();lHe();AV();vHe=class extends Qq{constructor(e,r,o){super(),this._mouseLeaveMonitor=null,this._context=e,this.viewController=r,this.viewHelper=o,this.mouseTargetFactory=new mHe(this._context,o),this._mouseDownOperation=this._register(new _ti(this._context,this.viewController,this.viewHelper,this.mouseTargetFactory,(h,b)=>this._createMouseTarget(h,b),h=>this._getMouseColumn(h))),this.lastMouseLeaveTime=-1,this._height=this._context.configuration.options.get(145).height;let c=new $At(this.viewHelper.viewDomNode);this._register(c.onContextMenu(this.viewHelper.viewDomNode,h=>this._onContextMenu(h,!0))),this._register(c.onMouseMove(this.viewHelper.viewDomNode,h=>{this._onMouseMove(h),this._mouseLeaveMonitor||(this._mouseLeaveMonitor=Jr(this.viewHelper.viewDomNode.ownerDocument,"mousemove",b=>{this.viewHelper.viewDomNode.contains(b.target)||this._onMouseLeave(new Yq(b,!1,this.viewHelper.viewDomNode))}))})),this._register(c.onMouseUp(this.viewHelper.viewDomNode,h=>this._onMouseUp(h))),this._register(c.onMouseLeave(this.viewHelper.viewDomNode,h=>this._onMouseLeave(h)));let d=0;this._register(c.onPointerDown(this.viewHelper.viewDomNode,(h,b)=>{d=b})),this._register(Jr(this.viewHelper.viewDomNode,ls.POINTER_UP,h=>{this._mouseDownOperation.onPointerUp()})),this._register(c.onMouseDown(this.viewHelper.viewDomNode,h=>this._onMouseDown(h,d))),this._setupMouseWheelZoomListener(),this._context.addEventHandler(this)}_setupMouseWheelZoomListener(){let e=P6e.INSTANCE,r=0,o=t3.getZoomLevel(),c=!1,d=0,h=w=>{if(this.viewController.emitMouseWheel(w),!this._context.configuration.options.get(76))return;let N=new pV(w);if(e.acceptStandardWheelEvent(N),e.isPhysicalMouseWheel()){if(b(w)){let L=t3.getZoomLevel(),B=N.deltaY>0?1:-1;t3.setZoomLevel(L+B),N.preventDefault(),N.stopPropagation()}}else Date.now()-r>50&&(o=t3.getZoomLevel(),c=b(w),d=0),r=Date.now(),d+=N.deltaY,c&&(t3.setZoomLevel(o+d/5),N.preventDefault(),N.stopPropagation())};this._register(Jr(this.viewHelper.viewDomNode,ls.MOUSE_WHEEL,h,{capture:!0,passive:!1}));function b(w){return md?(w.metaKey||w.ctrlKey)&&!w.shiftKey&&!w.altKey:w.ctrlKey&&!w.metaKey&&!w.shiftKey&&!w.altKey}}dispose(){this._context.removeEventHandler(this),this._mouseLeaveMonitor&&(this._mouseLeaveMonitor.dispose(),this._mouseLeaveMonitor=null),super.dispose()}onConfigurationChanged(e){if(e.hasChanged(145)){let r=this._context.configuration.options.get(145).height;this._height!==r&&(this._height=r,this._mouseDownOperation.onHeightChanged())}return!1}onCursorStateChanged(e){return this._mouseDownOperation.onCursorStateChanged(e),!1}onFocusChanged(e){return!1}getTargetAtClientPoint(e,r){let c=new vdt(e,r).toPageCoordinates(Gc(this.viewHelper.viewDomNode)),d=XAt(this.viewHelper.viewDomNode);if(c.yd.y+d.height||c.xd.x+d.width)return null;let h=YAt(this.viewHelper.viewDomNode,d,c);return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),d,c,h,null)}_createMouseTarget(e,r){let o=e.target;if(!this.viewHelper.viewDomNode.contains(o)){let c=$Y(this.viewHelper.viewDomNode);c&&(o=c.elementsFromPoint(e.posx,e.posy).find(d=>this.viewHelper.viewDomNode.contains(d)))}return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),e.editorPos,e.pos,e.relativePos,r?o:null)}_getMouseColumn(e){return this.mouseTargetFactory.getMouseColumn(e.relativePos)}_onContextMenu(e,r){this.viewController.emitContextMenu({event:e,target:this._createMouseTarget(e,r)})}_onMouseMove(e){this.mouseTargetFactory.mouseTargetIsWidget(e)||e.preventDefault(),!(this._mouseDownOperation.isActive()||e.timestamp{e.preventDefault(),this.viewHelper.focusTextArea()};if(L&&(c||h&&b))B(),this._mouseDownOperation.start(o.type,e,r);else if(d)e.preventDefault();else if(w){let F=o.detail;L&&this.viewHelper.shouldSuppressMouseDownOnViewZone(F.viewZoneId)&&(B(),this._mouseDownOperation.start(o.type,e,r),e.preventDefault())}else N&&this.viewHelper.shouldSuppressMouseDownOnWidget(o.detail)&&(B(),e.preventDefault());this.viewController.emitMouseDown({event:e,target:o})}},_ti=class extends tn{constructor(e,r,o,c,d,h){super(),this._context=e,this._viewController=r,this._viewHelper=o,this._mouseTargetFactory=c,this._createMouseTarget=d,this._getMouseColumn=h,this._mouseMoveMonitor=this._register(new KAt(this._viewHelper.viewDomNode)),this._topBottomDragScrolling=this._register(new pti(this._context,this._viewHelper,this._mouseTargetFactory,(b,w,N)=>this._dispatchMouse(b,w,N))),this._mouseState=new mPt,this._currentSelection=new ic(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);let r=this._findMousePosition(e,!1);r&&(this._mouseState.isDragAndDrop?this._viewController.emitMouseDrag({event:e,target:r}):r.type===13&&(r.outsidePosition==="above"||r.outsidePosition==="below")?this._topBottomDragScrolling.start(r,e):(this._topBottomDragScrolling.stop(),this._dispatchMouse(r,!0,1)))}start(e,r,o){this._lastMouseEvent=r,this._mouseState.setStartedOnLineNumbers(e===3),this._mouseState.setStartButtons(r),this._mouseState.setModifiers(r);let c=this._findMousePosition(r,!0);if(!c||!c.position)return;this._mouseState.trySetCount(r.detail,c.position),r.detail=this._mouseState.count;let d=this._context.configuration.options;if(!d.get(91)&&d.get(35)&&!d.get(22)&&!this._mouseState.altKey&&r.detail<2&&!this._isActive&&!this._currentSelection.isEmpty()&&c.type===6&&c.position&&this._currentSelection.containsPosition(c.position)){this._mouseState.isDragAndDrop=!0,this._isActive=!0,this._mouseMoveMonitor.startMonitoring(this._viewHelper.viewLinesDomNode,o,r.buttons,h=>this._onMouseDownThenMove(h),h=>{let b=this._findMousePosition(this._lastMouseEvent,!1);GY(h)?this._viewController.emitMouseDropCanceled():this._viewController.emitMouseDrop({event:this._lastMouseEvent,target:b?this._createMouseTarget(this._lastMouseEvent,!0):null}),this._stop()});return}this._mouseState.isDragAndDrop=!1,this._dispatchMouse(c,r.shiftKey,1),this._isActive||(this._isActive=!0,this._mouseMoveMonitor.startMonitoring(this._viewHelper.viewLinesDomNode,o,r.buttons,h=>this._onMouseDownThenMove(h),()=>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){let r=e.editorPos,o=this._context.viewModel,c=this._context.viewLayout,d=this._getMouseColumn(e);if(e.posyr.y+r.height){let b=e.posy-r.y-r.height,w=c.getCurrentScrollTop()+e.relativePos.y,N=pHe.getZoneAtCoord(this._context,w);if(N){let B=this._helpPositionJumpOverViewZone(N);if(B)return vA.createOutsideEditor(d,B,"below",b)}let L=c.getLineNumberAtVerticalOffset(w);return vA.createOutsideEditor(d,new qn(L,o.getLineMaxColumn(L)),"below",b)}let h=c.getLineNumberAtVerticalOffset(c.getCurrentScrollTop()+e.relativePos.y);if(e.posxr.x+r.width){let b=e.posx-r.x-r.width;return vA.createOutsideEditor(d,new qn(h,o.getLineMaxColumn(h)),"right",b)}return null}_findMousePosition(e,r){let o=this._getPositionOutsideEditor(e);if(o)return o;let c=this._createMouseTarget(e,r);if(!c.position)return null;if(c.type===8||c.type===5){let h=this._helpPositionJumpOverViewZone(c.detail);if(h)return vA.createViewZone(c.type,c.element,c.mouseColumn,h,c.detail)}return c}_helpPositionJumpOverViewZone(e){let r=new qn(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),o=e.positionBefore,c=e.positionAfter;return o&&c?o.isBefore(r)?o:c:null}_dispatchMouse(e,r,o){e.position&&this._viewController.dispatchMouse({position:e.position,mouseColumn:e.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,revealType:o,inSelectionMode:r,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:e.type===6&&e.detail.injectedText!==null})}},pti=class extends tn{constructor(e,r,o,c){super(),this._context=e,this._viewHelper=r,this._mouseTargetFactory=o,this._dispatchMouse=c,this._operation=null}dispose(){super.dispose(),this.stop()}start(e,r){this._operation?this._operation.setPosition(e,r):this._operation=new mti(this._context,this._viewHelper,this._mouseTargetFactory,this._dispatchMouse,e,r)}stop(){this._operation&&(this._operation.dispose(),this._operation=null)}},mti=class extends tn{constructor(e,r,o,c,d,h){super(),this._context=e,this._viewHelper=r,this._mouseTargetFactory=o,this._dispatchMouse=c,this._position=d,this._mouseEvent=h,this._lastTime=Date.now(),this._animationFrameDisposable=LD(Gc(h.browserEvent),()=>this._execute())}dispose(){this._animationFrameDisposable.dispose(),super.dispose()}setPosition(e,r){this._position=e,this._mouseEvent=r}_tick(){let e=Date.now(),r=e-this._lastTime;return this._lastTime=e,r}_getScrollSpeed(){let e=this._context.configuration.options.get(67),r=this._context.configuration.options.get(145).height/e,o=this._position.outsideDistance/e;return o<=1.5?Math.max(30,r*(1+o)):o<=3?Math.max(60,r*(2+o)):Math.max(200,r*(7+o))}_execute(){let e=this._context.configuration.options.get(67),r=this._getScrollSpeed(),o=this._tick(),c=r*(o/1e3)*e,d=this._position.outsidePosition==="above"?-c:c;this._context.viewModel.viewLayout.deltaScrollNow(0,d),this._viewHelper.renderNow();let h=this._context.viewLayout.getLinesViewportData(),b=this._position.outsidePosition==="above"?h.startLineNumber:h.endLineNumber,w;{let N=XAt(this._viewHelper.viewDomNode),L=this._context.configuration.options.get(145).horizontalScrollbarHeight,B=new ESe(this._mouseEvent.pos.x,N.y+N.height-L-.1),F=YAt(this._viewHelper.viewDomNode,N,B);w=this._mouseTargetFactory.createMouseTarget(this._viewHelper.getLastRenderData(),N,B,F,null)}(!w.position||w.position.lineNumber!==b)&&(this._position.outsidePosition==="above"?w=vA.createOutsideEditor(this._position.mouseColumn,new qn(b,1),"above",this._position.outsideDistance):w=vA.createOutsideEditor(this._position.mouseColumn,new qn(b,this._context.viewModel.getLineMaxColumn(b)),"below",this._position.outsideDistance)),this._dispatchMouse(w,!0,2),this._animationFrameDisposable=LD(Gc(w.element),()=>this._execute())}},mPt=class l{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,r){let o=new Date().getTime();o-this._lastSetMouseDownCountTime>l.CLEAR_MOUSE_DOWN_COUNT_TIME&&(e=1),this._lastSetMouseDownCountTime=o,e>this._lastMouseDownCount+1&&(e=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(r)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=r,this._lastMouseDownCount=Math.min(e,this._lastMouseDownPositionEqualCount)}};mPt.CLEAR_MOUSE_DOWN_COUNT_TIME=400});var L_,n$=ti(()=>{xc();L_=class{get event(){return this.emitter.event}constructor(e,r,o){let c=d=>this.emitter.fire(d);this.emitter=new wn({onWillAddFirstListener:()=>e.addEventListener(r,c,o),onDidRemoveLastListener:()=>e.removeEventListener(r,c,o)})}dispose(){this.emitter.dispose()}}});var MR,HI,hPt,hti=ti(()=>{Mu();Xa();MR=!1,HI=class l{constructor(e,r,o,c,d){this.value=e,this.selectionStart=r,this.selectionEnd=o,this.selection=c,this.newlineCountBeforeSelection=d}toString(){return`[ <${this.value}>, selectionStart: ${this.selectionStart}, selectionEnd: ${this.selectionEnd}]`}static readFromTextArea(e,r){let o=e.getValue(),c=e.getSelectionStart(),d=e.getSelectionEnd(),h;if(r){let b=o.substring(0,c),w=r.value.substring(0,r.selectionStart);b===w&&(h=r.newlineCountBeforeSelection)}return new l(o,c,d,null,h)}collapseSelection(){return this.selectionStart===this.value.length?this:new l(this.value,this.value.length,this.value.length,null,void 0)}writeToTextArea(e,r,o){MR&&console.log(`writeToTextArea ${e}: ${this.toString()}`),r.setValue(e,this.value),o&&r.setSelectionRange(e,this.selectionStart,this.selectionEnd)}deduceEditorPosition(e){var r,o,c,d,h,b,w,N;if(e<=this.selectionStart){let F=this.value.substring(e,this.selectionStart);return this._finishDeduceEditorPosition((o=(r=this.selection)===null||r===void 0?void 0:r.getStartPosition())!==null&&o!==void 0?o:null,F,-1)}if(e>=this.selectionEnd){let F=this.value.substring(this.selectionEnd,e);return this._finishDeduceEditorPosition((d=(c=this.selection)===null||c===void 0?void 0:c.getEndPosition())!==null&&d!==void 0?d:null,F,1)}let L=this.value.substring(this.selectionStart,e);if(L.indexOf("\u2026")===-1)return this._finishDeduceEditorPosition((b=(h=this.selection)===null||h===void 0?void 0:h.getStartPosition())!==null&&b!==void 0?b:null,L,1);let B=this.value.substring(e,this.selectionEnd);return this._finishDeduceEditorPosition((N=(w=this.selection)===null||w===void 0?void 0:w.getEndPosition())!==null&&N!==void 0?N:null,B,-1)}_finishDeduceEditorPosition(e,r,o){let c=0,d=-1;for(;(d=r.indexOf(` +`,d+1))!==-1;)c++;return[e,o*r.length,c]}static deduceInput(e,r,o){if(!e)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};MR&&(console.log("------------------------deduceInput"),console.log(`PREVIOUS STATE: ${e.toString()}`),console.log(`CURRENT STATE: ${r.toString()}`));let c=Math.min(wR(e.value,r.value),e.selectionStart,r.selectionStart),d=Math.min(H4e(e.value,r.value),e.value.length-e.selectionEnd,r.value.length-r.selectionEnd),h=e.value.substring(c,e.value.length-d),b=r.value.substring(c,r.value.length-d),w=e.selectionStart-c,N=e.selectionEnd-c,L=r.selectionStart-c,B=r.selectionEnd-c;if(MR&&(console.log(`AFTER DIFFING PREVIOUS STATE: <${h}>, selectionStart: ${w}, selectionEnd: ${N}`),console.log(`AFTER DIFFING CURRENT STATE: <${b}>, selectionStart: ${L}, selectionEnd: ${B}`)),L===B){let Y=e.selectionStart-c;return MR&&console.log(`REMOVE PREVIOUS: ${Y} chars`),{text:b,replacePrevCharCnt:Y,replaceNextCharCnt:0,positionDelta:0}}let F=N-w;return{text:b,replacePrevCharCnt:F,replaceNextCharCnt:0,positionDelta:0}}static deduceAndroidCompositionInput(e,r){if(!e)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};if(MR&&(console.log("------------------------deduceAndroidCompositionInput"),console.log(`PREVIOUS STATE: ${e.toString()}`),console.log(`CURRENT STATE: ${r.toString()}`)),e.value===r.value)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:r.selectionEnd-e.selectionEnd};let o=Math.min(wR(e.value,r.value),e.selectionEnd),c=Math.min(H4e(e.value,r.value),e.value.length-e.selectionEnd),d=e.value.substring(o,e.value.length-c),h=r.value.substring(o,r.value.length-c),b=e.selectionStart-o,w=e.selectionEnd-o,N=r.selectionStart-o,L=r.selectionEnd-o;return MR&&(console.log(`AFTER DIFFING PREVIOUS STATE: <${d}>, selectionStart: ${b}, selectionEnd: ${w}`),console.log(`AFTER DIFFING CURRENT STATE: <${h}>, selectionStart: ${N}, selectionEnd: ${L}`)),{text:h,replacePrevCharCnt:w,replaceNextCharCnt:d.length-w,positionDelta:L-h.length}}};HI.EMPTY=new HI("",0,0,null,void 0);hPt=class l{static _getPageOfLine(e,r){return Math.floor((e-1)/r)}static _getRangeForPage(e,r){let o=e*r,c=o+1,d=o+r;return new Zt(c,1,d+1,1)}static fromEditorSelection(e,r,o,c){let h=l._getPageOfLine(r.startLineNumber,o),b=l._getRangeForPage(h,o),w=l._getPageOfLine(r.endLineNumber,o),N=l._getRangeForPage(w,o),L=b.intersectRanges(new Zt(1,1,r.startLineNumber,r.startColumn));if(c&&e.getValueLengthInRange(L,1)>500){let Je=e.modifyPosition(L.getEndPosition(),-500);L=Zt.fromPositions(Je,L.getEndPosition())}let B=e.getValueInRange(L,1),F=e.getLineCount(),Y=e.getLineMaxColumn(F),Z=N.intersectRanges(new Zt(r.endLineNumber,r.endColumn,F,Y));if(c&&e.getValueLengthInRange(Z,1)>500){let Je=e.modifyPosition(Z.getStartPosition(),500);Z=Zt.fromPositions(Z.getStartPosition(),Je)}let ee=e.getValueInRange(Z,1),Te;if(h===w||h+1===w)Te=e.getValueInRange(r,1);else{let Je=b.intersectRanges(r),Xe=N.intersectRanges(r);Te=e.getValueInRange(Je,1)+"\u2026"+e.getValueInRange(Xe,1)}return c&&Te.length>2*500&&(Te=Te.substring(0,500)+"\u2026"+Te.substring(Te.length-500,Te.length)),new HI(B+Te+ee,B.length,B.length+Te.length,r,L.endLineNumber-L.startLineNumber)}}});var nBi,qbi,Cdt,kdt,ASe,gti,gPt,yPt,vPt,wdt=ti(()=>{ZF();nc();n$();lA();zei();Ud();xc();co();aSe();Mu();hti();j0();KO();UO();nBi=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},qbi=function(l,e){return function(r,o){e(r,o,l)}};(function(l){l.Tap="-monaco-textarea-synthetic-tap"})(Cdt||(Cdt={}));kdt={forceCopyWithSyntaxHighlighting:!1},ASe=class{constructor(){this._lastState=null}set(e,r){this._lastState={lastCopiedValue:e,data:r}}get(e){return this._lastState&&this._lastState.lastCopiedValue===e?this._lastState.data:(this._lastState=null,null)}};ASe.INSTANCE=new ASe;gti=class{constructor(){this._lastTypeTextLength=0}handleCompositionUpdate(e){e=e||"";let r={text:e,replacePrevCharCnt:this._lastTypeTextLength,replaceNextCharCnt:0,positionDelta:0};return this._lastTypeTextLength=e.length,r}},gPt=class extends tn{get textAreaState(){return this._textAreaState}constructor(e,r,o,c,d,h){super(),this._host=e,this._textArea=r,this._OS=o,this._browser=c,this._accessibilityService=d,this._logService=h,this._onFocus=this._register(new wn),this.onFocus=this._onFocus.event,this._onBlur=this._register(new wn),this.onBlur=this._onBlur.event,this._onKeyDown=this._register(new wn),this.onKeyDown=this._onKeyDown.event,this._onKeyUp=this._register(new wn),this.onKeyUp=this._onKeyUp.event,this._onCut=this._register(new wn),this.onCut=this._onCut.event,this._onPaste=this._register(new wn),this.onPaste=this._onPaste.event,this._onType=this._register(new wn),this.onType=this._onType.event,this._onCompositionStart=this._register(new wn),this.onCompositionStart=this._onCompositionStart.event,this._onCompositionUpdate=this._register(new wn),this.onCompositionUpdate=this._onCompositionUpdate.event,this._onCompositionEnd=this._register(new wn),this.onCompositionEnd=this._onCompositionEnd.event,this._onSelectionChangeRequest=this._register(new wn),this.onSelectionChangeRequest=this._onSelectionChangeRequest.event,this._asyncFocusGainWriteScreenReaderContent=this._register(new zg),this._asyncTriggerCut=this._register(new p_(()=>this._onCut.fire(),0)),this._textAreaState=HI.EMPTY,this._selectionChangeListener=null,this._accessibilityService.isScreenReaderOptimized()&&this.writeNativeTextAreaContent("ctor"),this._register(gs.runAndSubscribe(this._accessibilityService.onDidChangeScreenReaderOptimized,()=>{this._accessibilityService.isScreenReaderOptimized()&&!this._asyncFocusGainWriteScreenReaderContent.value?this._asyncFocusGainWriteScreenReaderContent.value=this._register(new p_(()=>this.writeNativeTextAreaContent("asyncFocusGain"),0)):this._asyncFocusGainWriteScreenReaderContent.clear()})),this._hasFocus=!1,this._currentComposition=null;let b=null;this._register(this._textArea.onKeyDown(w=>{let N=new Jp(w);(N.keyCode===114||this._currentComposition&&N.keyCode===1)&&N.stopPropagation(),N.equals(9)&&N.preventDefault(),b=N,this._onKeyDown.fire(N)})),this._register(this._textArea.onKeyUp(w=>{let N=new Jp(w);this._onKeyUp.fire(N)})),this._register(this._textArea.onCompositionStart(w=>{MR&&console.log("[compositionstart]",w);let N=new gti;if(this._currentComposition){this._currentComposition=N;return}if(this._currentComposition=N,this._OS===2&&b&&b.equals(114)&&this._textAreaState.selectionStart===this._textAreaState.selectionEnd&&this._textAreaState.selectionStart>0&&this._textAreaState.value.substr(this._textAreaState.selectionStart-1,1)===w.data&&(b.code==="ArrowRight"||b.code==="ArrowLeft")){MR&&console.log("[compositionstart] Handling long press case on macOS + arrow key",w),N.handleCompositionUpdate("x"),this._onCompositionStart.fire({data:w.data});return}if(this._browser.isAndroid){this._onCompositionStart.fire({data:w.data});return}this._onCompositionStart.fire({data:w.data})})),this._register(this._textArea.onCompositionUpdate(w=>{MR&&console.log("[compositionupdate]",w);let N=this._currentComposition;if(!N)return;if(this._browser.isAndroid){let B=HI.readFromTextArea(this._textArea,this._textAreaState),F=HI.deduceAndroidCompositionInput(this._textAreaState,B);this._textAreaState=B,this._onType.fire(F),this._onCompositionUpdate.fire(w);return}let L=N.handleCompositionUpdate(w.data);this._textAreaState=HI.readFromTextArea(this._textArea,this._textAreaState),this._onType.fire(L),this._onCompositionUpdate.fire(w)})),this._register(this._textArea.onCompositionEnd(w=>{MR&&console.log("[compositionend]",w);let N=this._currentComposition;if(!N)return;if(this._currentComposition=null,this._browser.isAndroid){let B=HI.readFromTextArea(this._textArea,this._textAreaState),F=HI.deduceAndroidCompositionInput(this._textAreaState,B);this._textAreaState=B,this._onType.fire(F),this._onCompositionEnd.fire();return}let L=N.handleCompositionUpdate(w.data);this._textAreaState=HI.readFromTextArea(this._textArea,this._textAreaState),this._onType.fire(L),this._onCompositionEnd.fire()})),this._register(this._textArea.onInput(w=>{if(MR&&console.log("[input]",w),this._textArea.setIgnoreSelectionChangeTime("received input event"),this._currentComposition)return;let N=HI.readFromTextArea(this._textArea,this._textAreaState),L=HI.deduceInput(this._textAreaState,N,this._OS===2);L.replacePrevCharCnt===0&&L.text.length===1&&(TS(L.text.charCodeAt(0))||L.text.charCodeAt(0)===127)||(this._textAreaState=N,(L.text!==""||L.replacePrevCharCnt!==0||L.replaceNextCharCnt!==0||L.positionDelta!==0)&&this._onType.fire(L))})),this._register(this._textArea.onCut(w=>{this._textArea.setIgnoreSelectionChangeTime("received cut event"),this._ensureClipboardGetsEditorSelection(w),this._asyncTriggerCut.schedule()})),this._register(this._textArea.onCopy(w=>{this._ensureClipboardGetsEditorSelection(w)})),this._register(this._textArea.onPaste(w=>{if(this._textArea.setIgnoreSelectionChangeTime("received paste event"),w.preventDefault(),!w.clipboardData)return;let[N,L]=yPt.getTextData(w.clipboardData);N&&(L=L||ASe.INSTANCE.get(N),this._onPaste.fire({text:N,metadata:L}))})),this._register(this._textArea.onFocus(()=>{let w=this._hasFocus;this._setHasFocus(!0),this._accessibilityService.isScreenReaderOptimized()&&this._browser.isSafari&&!w&&this._hasFocus&&(this._asyncFocusGainWriteScreenReaderContent.value||(this._asyncFocusGainWriteScreenReaderContent.value=new p_(()=>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 Jr(this._textArea.ownerDocument,"selectionchange",r=>{if(Xne.onSelectionChange(),!this._hasFocus||this._currentComposition||!this._browser.isChrome)return;let o=Date.now(),c=o-e;if(e=o,c<5)return;let d=o-this._textArea.getIgnoreSelectionChangeTime();if(this._textArea.resetSelectionChangeTime(),d<100||!this._textAreaState.selection)return;let h=this._textArea.getValue();if(this._textAreaState.value!==h)return;let b=this._textArea.getSelectionStart(),w=this._textArea.getSelectionEnd();if(this._textAreaState.selectionStart===b&&this._textAreaState.selectionEnd===w)return;let N=this._textAreaState.deduceEditorPosition(b),L=this._host.deduceModelPosition(N[0],N[1],N[2]),B=this._textAreaState.deduceEditorPosition(w),F=this._host.deduceModelPosition(B[0],B[1],B[2]),Y=new ic(L.lineNumber,L.column,F.lineNumber,F.column);this._onSelectionChangeRequest.fire(Y)})}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,r){this._hasFocus||(r=r.collapseSelection()),r.writeToTextArea(e,this._textArea,this._hasFocus),this._textAreaState=r}writeNativeTextAreaContent(e){!this._accessibilityService.isScreenReaderOptimized()&&e==="render"||this._currentComposition||(this._logService.trace(`writeTextAreaState(reason: ${e})`),this._setAndWriteTextAreaState(e,this._host.getScreenReaderContent()))}_ensureClipboardGetsEditorSelection(e){let r=this._host.getDataToCopy(),o={version:1,isFromEmptySelection:r.isFromEmptySelection,multicursorText:r.multicursorText,mode:r.mode};ASe.INSTANCE.set(this._browser.isFirefox?r.text.replace(/\r\n/g,` +`):r.text,o),e.preventDefault(),e.clipboardData&&yPt.setTextData(e.clipboardData,r.text,r.html,o)}};gPt=nBi([qbi(4,ck),qbi(5,jb)],gPt);yPt={getTextData(l){let e=l.getData(l1.text),r=null,o=l.getData("vscode-editor-data");if(typeof o=="string")try{r=JSON.parse(o),r.version!==1&&(r=null)}catch{}return e.length===0&&r===null&&l.files.length>0?[Array.prototype.slice.call(l.files,0).map(d=>d.name).join(` +`),null]:[e,r]},setTextData(l,e,r,o){l.setData(l1.text,e),typeof r=="string"&&l.setData("text/html",r),l.setData("vscode-editor-data",JSON.stringify(o))}},vPt=class extends tn{get ownerDocument(){return this._actual.ownerDocument}constructor(e){super(),this._actual=e,this.onKeyDown=this._register(new L_(this._actual,"keydown")).event,this.onKeyUp=this._register(new L_(this._actual,"keyup")).event,this.onCompositionStart=this._register(new L_(this._actual,"compositionstart")).event,this.onCompositionUpdate=this._register(new L_(this._actual,"compositionupdate")).event,this.onCompositionEnd=this._register(new L_(this._actual,"compositionend")).event,this.onBeforeInput=this._register(new L_(this._actual,"beforeinput")).event,this.onInput=this._register(new L_(this._actual,"input")).event,this.onCut=this._register(new L_(this._actual,"cut")).event,this.onCopy=this._register(new L_(this._actual,"copy")).event,this.onPaste=this._register(new L_(this._actual,"paste")).event,this.onFocus=this._register(new L_(this._actual,"focus")).event,this.onBlur=this._register(new L_(this._actual,"blur")).event,this._onSyntheticTap=this._register(new wn),this.onSyntheticTap=this._onSyntheticTap.event,this._ignoreSelectionChangeTime=0,this._register(this.onKeyDown(()=>Xne.onKeyDown())),this._register(this.onBeforeInput(()=>Xne.onBeforeInput())),this._register(this.onInput(()=>Xne.onInput())),this._register(this.onKeyUp(()=>Xne.onKeyUp())),this._register(Jr(this._actual,Cdt.Tap,()=>this._onSyntheticTap.fire()))}hasFocus(){let e=$Y(this._actual);return e?e.activeElement===this._actual:this._actual.isConnected?DC()===this._actual:!1}setIgnoreSelectionChangeTime(e){this._ignoreSelectionChangeTime=Date.now()}getIgnoreSelectionChangeTime(){return this._ignoreSelectionChangeTime}resetSelectionChangeTime(){this._ignoreSelectionChangeTime=0}getValue(){return this._actual.value}setValue(e,r){let o=this._actual;o.value!==r&&(this.setIgnoreSelectionChangeTime("setValue"),o.value=r)}getSelectionStart(){return this._actual.selectionDirection==="backward"?this._actual.selectionEnd:this._actual.selectionStart}getSelectionEnd(){return this._actual.selectionDirection==="backward"?this._actual.selectionStart:this._actual.selectionEnd}setSelectionRange(e,r,o){let c=this._actual,d=null,h=$Y(c);h?d=h.activeElement:d=DC();let b=Gc(d),w=d===c,N=c.selectionStart,L=c.selectionEnd;if(w&&N===r&&L===o){AD&&b.parent!==b&&c.focus();return}if(w){this.setIgnoreSelectionChangeTime("setSelectionRange"),c.setSelectionRange(r,o),AD&&b.parent!==b&&c.focus();return}try{let B=M0i(c);this.setIgnoreSelectionChangeTime("setSelectionRange"),c.focus(),c.setSelectionRange(r,o),R0i(c,B)}catch{}}}});var yti,vti,bPt,$bi=ti(()=>{MIt();nc();FR();S6();co();X_();Jbi();wdt();cHe();yti=class extends vHe{constructor(e,r,o){super(e,r,o),this._register(d1.addTarget(this.viewHelper.linesContentDomNode)),this._register(Jr(this.viewHelper.linesContentDomNode,pg.Tap,d=>this.onTap(d))),this._register(Jr(this.viewHelper.linesContentDomNode,pg.Change,d=>this.onChange(d))),this._register(Jr(this.viewHelper.linesContentDomNode,pg.Contextmenu,d=>this._onContextMenu(new Yq(d,!1,this.viewHelper.viewDomNode),!1))),this._lastPointerType="mouse",this._register(Jr(this.viewHelper.linesContentDomNode,"pointerdown",d=>{let h=d.pointerType;if(h==="mouse"){this._lastPointerType="mouse";return}else h==="touch"?this._lastPointerType="touch":this._lastPointerType="pen"}));let c=new GAt(this.viewHelper.viewDomNode);this._register(c.onPointerMove(this.viewHelper.viewDomNode,d=>this._onMouseMove(d))),this._register(c.onPointerUp(this.viewHelper.viewDomNode,d=>this._onMouseUp(d))),this._register(c.onPointerLeave(this.viewHelper.viewDomNode,d=>this._onMouseLeave(d))),this._register(c.onPointerDown(this.viewHelper.viewDomNode,(d,h)=>this._onMouseDown(d,h)))}onTap(e){!e.initialTarget||!this.viewHelper.linesContentDomNode.contains(e.initialTarget)||(e.preventDefault(),this.viewHelper.focusTextArea(),this._dispatchGesture(e,!1))}onChange(e){this._lastPointerType==="touch"&&this._context.viewModel.viewLayout.deltaScrollNow(-e.translationX,-e.translationY),this._lastPointerType==="pen"&&this._dispatchGesture(e,!0)}_dispatchGesture(e,r){let o=this._createMouseTarget(new Yq(e,!1,this.viewHelper.viewDomNode),!1);o.position&&this.viewController.dispatchMouse({position:o.position,mouseColumn:o.position.column,startedOnLineNumbers:!1,revealType:1,mouseDownCount:e.tapCount,inSelectionMode:r,altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,leftButton:!1,middleButton:!1,onInjectedText:o.type===6&&o.detail.injectedText!==null})}_onMouseDown(e,r){e.browserEvent.pointerType!=="touch"&&super._onMouseDown(e,r)}},vti=class extends vHe{constructor(e,r,o){super(e,r,o),this._register(d1.addTarget(this.viewHelper.linesContentDomNode)),this._register(Jr(this.viewHelper.linesContentDomNode,pg.Tap,c=>this.onTap(c))),this._register(Jr(this.viewHelper.linesContentDomNode,pg.Change,c=>this.onChange(c))),this._register(Jr(this.viewHelper.linesContentDomNode,pg.Contextmenu,c=>this._onContextMenu(new Yq(c,!1,this.viewHelper.viewDomNode),!1)))}onTap(e){e.preventDefault(),this.viewHelper.focusTextArea();let r=this._createMouseTarget(new Yq(e,!1,this.viewHelper.viewDomNode),!1);if(r.position){let o=document.createEvent("CustomEvent");o.initEvent(Cdt.Tap,!1,!0),this.viewHelper.dispatchTextAreaEvent(o),this.viewController.moveTo(r.position,1)}}onChange(e){this._context.viewModel.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)}},bPt=class extends tn{constructor(e,r,o){super(),(b6||vgi&&aDt)&&sVe.pointerEvents?this.handler=this._register(new yti(e,r,o)):em.TouchEvent?this.handler=this._register(new vti(e,r,o)):this.handler=this._register(new vHe(e,r,o))}getTargetAtClientPoint(e,r){return this.handler.getTargetAtClientPoint(e,r)}}});var Gbi=ti(()=>{});var Kbi=ti(()=>{});var c7,PSe=ti(()=>{lHe();c7=class extends Qq{}});function Sv(l){return{id:l}}function Tdt(l){switch(l){case OR.DARK:return"vs-dark";case OR.HIGH_CONTRAST_DARK:return"hc-black";case OR.HIGH_CONTRAST_LIGHT:return"hc-light";default:return"vs"}}function AT(l){return Xbi.onColorThemeChange(l)}var Hg,Sti,bti,Xbi,SPt,x0=ti(()=>{xc();co();bl();DT();Zq();Hg=Ml("themeService");Sti={ThemingContribution:"base.contributions.theming"},bti=class{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new wn}onColorThemeChange(e){return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),Ma(()=>{let r=this.themingParticipants.indexOf(e);this.themingParticipants.splice(r,1)})}getThemingParticipants(){return this.themingParticipants}},Xbi=new bti;pm.add(Sti.ThemingContribution,Xbi);SPt=class extends tn{constructor(e){super(),this.themeService=e,this.theme=e.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(r=>this.onThemeChange(r)))}onThemeChange(e){this.theme=e,this.updateStyles()}updateStyles(){}}});var xti,Cti,Xgn,Ygn,Qgn,Zgn,r$,nre,TPt,Ybi,EPt,Qbi,rre,Zbi,xPt,CPt,L6e,eSi,tSi,iSi,nSi,rSi,O6e,oSi,sSi,aSi,cSi,lSi,kPt,e0n,uSi,t0n,i0n,n0n,r0n,dSi,fSi,o0n,s0n,_Si,a0n,c0n,l0n,wPt,DPt,pSi,mSi,hSi,IPt,NPt,APt,PPt,LPt,OPt,gSi,ySi,vSi,bSi,SSi,xSi,CSi,kSi,wSi,TSi,ESi,DSi,ISi,u0n,d0n,PV=ti(()=>{ya();rx();q1();x0();xti=hn("editor.lineHighlightBackground",{dark:null,light:null,hcDark:null,hcLight:null},ce("lineHighlight","Background color for the highlight of line at the cursor position.")),Cti=hn("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hcDark:"#f38518",hcLight:ip},ce("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),Xgn=hn("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hcDark:null,hcLight:null},ce("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),Ygn=hn("editor.rangeHighlightBorder",{dark:null,light:null,hcDark:S0,hcLight:S0},ce("rangeHighlightBorder","Background color of the border around highlighted ranges.")),Qgn=hn("editor.symbolHighlightBackground",{dark:TV,light:TV,hcDark:null,hcLight:null},ce("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),Zgn=hn("editor.symbolHighlightBorder",{dark:null,light:null,hcDark:S0,hcLight:S0},ce("symbolHighlightBorder","Background color of the border around highlighted symbols.")),r$=hn("editorCursor.foreground",{dark:"#AEAFAD",light:po.black,hcDark:po.white,hcLight:"#0F4A85"},ce("caret","Color of the editor cursor.")),nre=hn("editorCursor.background",null,ce("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),TPt=hn("editorMultiCursor.primary.foreground",{dark:r$,light:r$,hcDark:r$,hcLight:r$},ce("editorMultiCursorPrimaryForeground","Color of the primary editor cursor when multiple cursors are present.")),Ybi=hn("editorMultiCursor.primary.background",{dark:nre,light:nre,hcDark:nre,hcLight:nre},ce("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.")),EPt=hn("editorMultiCursor.secondary.foreground",{dark:r$,light:r$,hcDark:r$,hcLight:r$},ce("editorMultiCursorSecondaryForeground","Color of secondary editor cursors when multiple cursors are present.")),Qbi=hn("editorMultiCursor.secondary.background",{dark:nre,light:nre,hcDark:nre,hcLight:nre},ce("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.")),rre=hn("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hcDark:"#e3e4e229",hcLight:"#CCCCCC"},ce("editorWhitespaces","Color of whitespace characters in the editor.")),Zbi=hn("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hcDark:po.white,hcLight:"#292929"},ce("editorLineNumbers","Color of editor line numbers.")),xPt=hn("editorIndentGuide.background",{dark:rre,light:rre,hcDark:rre,hcLight:rre},ce("editorIndentGuides","Color of the editor indentation guides."),!1,ce("deprecatedEditorIndentGuides","'editorIndentGuide.background' is deprecated. Use 'editorIndentGuide.background1' instead.")),CPt=hn("editorIndentGuide.activeBackground",{dark:rre,light:rre,hcDark:rre,hcLight:rre},ce("editorActiveIndentGuide","Color of the active editor indentation guides."),!1,ce("deprecatedEditorActiveIndentGuide","'editorIndentGuide.activeBackground' is deprecated. Use 'editorIndentGuide.activeBackground1' instead.")),L6e=hn("editorIndentGuide.background1",{dark:xPt,light:xPt,hcDark:xPt,hcLight:xPt},ce("editorIndentGuides1","Color of the editor indentation guides (1).")),eSi=hn("editorIndentGuide.background2",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},ce("editorIndentGuides2","Color of the editor indentation guides (2).")),tSi=hn("editorIndentGuide.background3",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},ce("editorIndentGuides3","Color of the editor indentation guides (3).")),iSi=hn("editorIndentGuide.background4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},ce("editorIndentGuides4","Color of the editor indentation guides (4).")),nSi=hn("editorIndentGuide.background5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},ce("editorIndentGuides5","Color of the editor indentation guides (5).")),rSi=hn("editorIndentGuide.background6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},ce("editorIndentGuides6","Color of the editor indentation guides (6).")),O6e=hn("editorIndentGuide.activeBackground1",{dark:CPt,light:CPt,hcDark:CPt,hcLight:CPt},ce("editorActiveIndentGuide1","Color of the active editor indentation guides (1).")),oSi=hn("editorIndentGuide.activeBackground2",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},ce("editorActiveIndentGuide2","Color of the active editor indentation guides (2).")),sSi=hn("editorIndentGuide.activeBackground3",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},ce("editorActiveIndentGuide3","Color of the active editor indentation guides (3).")),aSi=hn("editorIndentGuide.activeBackground4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},ce("editorActiveIndentGuide4","Color of the active editor indentation guides (4).")),cSi=hn("editorIndentGuide.activeBackground5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},ce("editorActiveIndentGuide5","Color of the active editor indentation guides (5).")),lSi=hn("editorIndentGuide.activeBackground6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},ce("editorActiveIndentGuide6","Color of the active editor indentation guides (6).")),kPt=hn("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hcDark:S0,hcLight:S0},ce("editorActiveLineNumber","Color of editor active line number"),!1,ce("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead.")),e0n=hn("editorLineNumber.activeForeground",{dark:kPt,light:kPt,hcDark:kPt,hcLight:kPt},ce("editorActiveLineNumber","Color of editor active line number")),uSi=hn("editorLineNumber.dimmedForeground",{dark:null,light:null,hcDark:null,hcLight:null},ce("editorDimmedLineNumber","Color of the final editor line when editor.renderFinalNewline is set to dimmed.")),t0n=hn("editorRuler.foreground",{dark:"#5A5A5A",light:po.lightgrey,hcDark:po.white,hcLight:"#292929"},ce("editorRuler","Color of the editor rulers.")),i0n=hn("editorCodeLens.foreground",{dark:"#999999",light:"#919191",hcDark:"#999999",hcLight:"#292929"},ce("editorCodeLensForeground","Foreground color of editor CodeLens")),n0n=hn("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hcDark:"#0064001a",hcLight:"#0000"},ce("editorBracketMatchBackground","Background color behind matching brackets")),r0n=hn("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hcDark:ip,hcLight:ip},ce("editorBracketMatchBorder","Color for matching brackets boxes")),dSi=hn("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hcDark:"#7f7f7f4d",hcLight:"#666666"},ce("editorOverviewRulerBorder","Color of the overview ruler border.")),fSi=hn("editorOverviewRuler.background",null,ce("editorOverviewRulerBackground","Background color of the editor overview ruler.")),o0n=hn("editorGutter.background",{dark:NT,light:NT,hcDark:NT,hcLight:NT},ce("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),s0n=hn("editorUnnecessaryCode.border",{dark:null,light:null,hcDark:po.fromHex("#fff").transparent(.8),hcLight:ip},ce("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),_Si=hn("editorUnnecessaryCode.opacity",{dark:po.fromHex("#000a"),light:po.fromHex("#0007"),hcDark:null,hcLight:null},ce("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.`)),a0n=hn("editorGhostText.border",{dark:null,light:null,hcDark:po.fromHex("#fff").transparent(.8),hcLight:po.fromHex("#292929").transparent(.8)},ce("editorGhostTextBorder","Border color of ghost text in the editor.")),c0n=hn("editorGhostText.foreground",{dark:po.fromHex("#ffffff56"),light:po.fromHex("#0007"),hcDark:null,hcLight:null},ce("editorGhostTextForeground","Foreground color of the ghost text in the editor.")),l0n=hn("editorGhostText.background",{dark:null,light:null,hcDark:null,hcLight:null},ce("editorGhostTextBackground","Background color of the ghost text in the editor.")),wPt=new po(new lp(0,122,204,.6)),DPt=hn("editorOverviewRuler.rangeHighlightForeground",{dark:wPt,light:wPt,hcDark:wPt,hcLight:wPt},ce("overviewRulerRangeHighlight","Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."),!0),pSi=hn("editorOverviewRuler.errorForeground",{dark:new po(new lp(255,18,18,.7)),light:new po(new lp(255,18,18,.7)),hcDark:new po(new lp(255,50,50,1)),hcLight:"#B5200D"},ce("overviewRuleError","Overview ruler marker color for errors.")),mSi=hn("editorOverviewRuler.warningForeground",{dark:RD,light:RD,hcDark:xSe,hcLight:xSe},ce("overviewRuleWarning","Overview ruler marker color for warnings.")),hSi=hn("editorOverviewRuler.infoForeground",{dark:VI,light:VI,hcDark:CSe,hcLight:CSe},ce("overviewRuleInfo","Overview ruler marker color for infos.")),IPt=hn("editorBracketHighlight.foreground1",{dark:"#FFD700",light:"#0431FAFF",hcDark:"#FFD700",hcLight:"#0431FAFF"},ce("editorBracketHighlightForeground1","Foreground color of brackets (1). Requires enabling bracket pair colorization.")),NPt=hn("editorBracketHighlight.foreground2",{dark:"#DA70D6",light:"#319331FF",hcDark:"#DA70D6",hcLight:"#319331FF"},ce("editorBracketHighlightForeground2","Foreground color of brackets (2). Requires enabling bracket pair colorization.")),APt=hn("editorBracketHighlight.foreground3",{dark:"#179FFF",light:"#7B3814FF",hcDark:"#87CEFA",hcLight:"#7B3814FF"},ce("editorBracketHighlightForeground3","Foreground color of brackets (3). Requires enabling bracket pair colorization.")),PPt=hn("editorBracketHighlight.foreground4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},ce("editorBracketHighlightForeground4","Foreground color of brackets (4). Requires enabling bracket pair colorization.")),LPt=hn("editorBracketHighlight.foreground5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},ce("editorBracketHighlightForeground5","Foreground color of brackets (5). Requires enabling bracket pair colorization.")),OPt=hn("editorBracketHighlight.foreground6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},ce("editorBracketHighlightForeground6","Foreground color of brackets (6). Requires enabling bracket pair colorization.")),gSi=hn("editorBracketHighlight.unexpectedBracket.foreground",{dark:new po(new lp(255,18,18,.8)),light:new po(new lp(255,18,18,.8)),hcDark:new po(new lp(255,50,50,1)),hcLight:""},ce("editorBracketHighlightUnexpectedBracketForeground","Foreground color of unexpected brackets.")),ySi=hn("editorBracketPairGuide.background1",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},ce("editorBracketPairGuide.background1","Background color of inactive bracket pair guides (1). Requires enabling bracket pair guides.")),vSi=hn("editorBracketPairGuide.background2",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},ce("editorBracketPairGuide.background2","Background color of inactive bracket pair guides (2). Requires enabling bracket pair guides.")),bSi=hn("editorBracketPairGuide.background3",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},ce("editorBracketPairGuide.background3","Background color of inactive bracket pair guides (3). Requires enabling bracket pair guides.")),SSi=hn("editorBracketPairGuide.background4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},ce("editorBracketPairGuide.background4","Background color of inactive bracket pair guides (4). Requires enabling bracket pair guides.")),xSi=hn("editorBracketPairGuide.background5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},ce("editorBracketPairGuide.background5","Background color of inactive bracket pair guides (5). Requires enabling bracket pair guides.")),CSi=hn("editorBracketPairGuide.background6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},ce("editorBracketPairGuide.background6","Background color of inactive bracket pair guides (6). Requires enabling bracket pair guides.")),kSi=hn("editorBracketPairGuide.activeBackground1",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},ce("editorBracketPairGuide.activeBackground1","Background color of active bracket pair guides (1). Requires enabling bracket pair guides.")),wSi=hn("editorBracketPairGuide.activeBackground2",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},ce("editorBracketPairGuide.activeBackground2","Background color of active bracket pair guides (2). Requires enabling bracket pair guides.")),TSi=hn("editorBracketPairGuide.activeBackground3",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},ce("editorBracketPairGuide.activeBackground3","Background color of active bracket pair guides (3). Requires enabling bracket pair guides.")),ESi=hn("editorBracketPairGuide.activeBackground4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},ce("editorBracketPairGuide.activeBackground4","Background color of active bracket pair guides (4). Requires enabling bracket pair guides.")),DSi=hn("editorBracketPairGuide.activeBackground5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},ce("editorBracketPairGuide.activeBackground5","Background color of active bracket pair guides (5). Requires enabling bracket pair guides.")),ISi=hn("editorBracketPairGuide.activeBackground6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},ce("editorBracketPairGuide.activeBackground6","Background color of active bracket pair guides (6). Requires enabling bracket pair guides.")),u0n=hn("editorUnicodeHighlight.border",{dark:RD,light:RD,hcDark:RD,hcLight:RD},ce("editorUnicodeHighlight.border","Border color used to highlight unicode characters.")),d0n=hn("editorUnicodeHighlight.background",{dark:pdt,light:pdt,hcDark:pdt,hcLight:pdt},ce("editorUnicodeHighlight.background","Background color used to highlight unicode characters."));AT((l,e)=>{let r=l.getColor(NT),o=l.getColor(xti),c=o&&!o.isTransparent()?o:r;c&&e.addRule(`.monaco-editor .inputarea.ime-input { background-color: ${c}; }`)})});var F6e,kti=ti(()=>{Kbi();X_();PSe();Iu();Xa();x0();PV();F6e=class l extends c7{constructor(e){super(),this._context=e,this._readConfig(),this._lastCursorModelPosition=new qn(1,1),this._renderResult=null,this._activeLineNumber=1,this._context.addEventHandler(this)}_readConfig(){let e=this._context.configuration.options;this._lineHeight=e.get(67);let r=e.get(68);this._renderLineNumbers=r.renderType,this._renderCustomLineNumbers=r.renderFn,this._renderFinalNewline=e.get(95);let o=e.get(145);this._lineNumbersLeft=o.lineNumbersLeft,this._lineNumbersWidth=o.lineNumbersWidth}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){return this._readConfig(),!0}onCursorStateChanged(e){let r=e.selections[0].getPosition();this._lastCursorModelPosition=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(r);let o=!1;return this._activeLineNumber!==r.lineNumber&&(this._activeLineNumber=r.lineNumber,o=!0),(this._renderLineNumbers===2||this._renderLineNumbers===3)&&(o=!0),o}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){let r=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new qn(e,1));if(r.column!==1)return"";let o=r.lineNumber;if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(o);if(this._renderLineNumbers===2){let c=Math.abs(this._lastCursorModelPosition.lineNumber-o);return c===0?''+o+"":String(c)}if(this._renderLineNumbers===3){if(this._lastCursorModelPosition.lineNumber===o||o%10===0)return String(o);let c=this._context.viewModel.getLineCount();return o===c?String(o):""}return String(o)}prepareRender(e){if(this._renderLineNumbers===0){this._renderResult=null;return}let r=kS?this._lineHeight%2===0?" lh-even":" lh-odd":"",o=e.visibleRange.startLineNumber,c=e.visibleRange.endLineNumber,d=this._context.viewModel.getDecorationsInViewport(e.visibleRange).filter(N=>!!N.options.lineNumberClassName);d.sort((N,L)=>Zt.compareRangesUsingEnds(N.range,L.range));let h=0,b=this._context.viewModel.getLineCount(),w=[];for(let N=o;N<=c;N++){let L=N-o,B=this._getLineRenderLineNumber(N),F="";for(;h${B}`}this._renderResult=w}render(e,r){if(!this._renderResult)return"";let o=r-e;return o<0||o>=this._renderResult.length?"":this._renderResult[o]}};F6e.CLASS_NAME="line-numbers";AT((l,e)=>{let r=l.getColor(Zbi),o=l.getColor(uSi);o?e.addRule(`.monaco-editor .line-numbers.dimmed-line-number { color: ${o}; }`):r&&e.addRule(`.monaco-editor .line-numbers.dimmed-line-number { color: ${r.transparent(.4)}; }`)})});var NSi=ti(()=>{});var LSe,wti=ti(()=>{NSi();SE();l3();LSe=class l extends ox{constructor(e){super(e);let r=this._context.configuration.options,o=r.get(145);this._canUseLayerHinting=!r.get(32),this._contentLeft=o.contentLeft,this._glyphMarginLeft=o.glyphMarginLeft,this._glyphMarginWidth=o.glyphMarginWidth,this._domNode=V_(document.createElement("div")),this._domNode.setClassName(l.OUTER_CLASS_NAME),this._domNode.setPosition("absolute"),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._glyphMarginBackgroundDomNode=V_(document.createElement("div")),this._glyphMarginBackgroundDomNode.setClassName(l.CLASS_NAME),this._domNode.appendChild(this._glyphMarginBackgroundDomNode)}dispose(){super.dispose()}getDomNode(){return this._domNode}onConfigurationChanged(e){let r=this._context.configuration.options,o=r.get(145);return this._canUseLayerHinting=!r.get(32),this._contentLeft=o.contentLeft,this._glyphMarginLeft=o.glyphMarginLeft,this._glyphMarginWidth=o.glyphMarginWidth,!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollTopChanged}prepareRender(e){}render(e){this._domNode.setLayerHinting(this._canUseLayerHinting),this._domNode.setContain("strict");let r=e.scrollTop-e.bigNumbersDelta;this._domNode.setTop(-r);let o=Math.min(e.scrollHeight,1e6);this._domNode.setHeight(o),this._domNode.setWidth(this._contentLeft),this._glyphMarginBackgroundDomNode.setLeft(this._glyphMarginLeft),this._glyphMarginBackgroundDomNode.setWidth(this._glyphMarginWidth),this._glyphMarginBackgroundDomNode.setHeight(o)}};LSe.CLASS_NAME="glyph-margin";LSe.OUTER_CLASS_NAME="margin"});var ASi=ti(()=>{});var Nfe,FPt=ti(()=>{ASi();Nfe="monaco-mouse-cursor-text"});var Tti,M6e,Eti=ti(()=>{xc();Tti=class{constructor(){this._onDidChange=new wn,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()}},M6e=new Tti});var Jd,f1=ti(()=>{bl();Jd=Ml("keybindingService")});function oBi(l,e,r,o){if(e.length===0)return 0;let c=l.createElement("div");c.style.position="absolute",c.style.top="-50000px",c.style.width="50000px";let d=l.createElement("span");Bb(d,r),d.style.whiteSpace="pre",d.style.tabSize=`${o*r.spaceWidth}px`,d.append(e),c.appendChild(d),l.body.appendChild(c);let h=d.offsetWidth;return l.body.removeChild(c),h}var rBi,PSi,Iti,Dti,MPt,LSi=ti(()=>{Gbi();ya();ZF();SE();X_();Mu();xB();wdt();hti();l3();kti();wti();TT();EVe();Iu();Xa();j0();FPt();dy();rx();Eti();f1();bl();rBi=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},PSi=function(l,e){return function(r,o){e(r,o,l)}},Iti=class{constructor(e,r,o,c,d){this._context=e,this.modelLineNumber=r,this.distanceToModelLineStart=o,this.widthOfHiddenLineTextBefore=c,this.distanceToModelLineEnd=d,this._visibleTextAreaBrand=void 0,this.startPosition=null,this.endPosition=null,this.visibleTextareaStart=null,this.visibleTextareaEnd=null,this._previousPresentation=null}prepareRender(e){let r=new qn(this.modelLineNumber,this.distanceToModelLineStart+1),o=new qn(this.modelLineNumber,this._context.viewModel.model.getLineMaxColumn(this.modelLineNumber)-this.distanceToModelLineEnd);this.startPosition=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(r),this.endPosition=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(o),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||(e?this._previousPresentation=e:this._previousPresentation={foreground:1,italic:!1,bold:!1,underline:!1,strikethrough:!1}),this._previousPresentation}},Dti=AD,MPt=class extends ox{constructor(e,r,o,c,d){super(e),this._keybindingService=c,this._instantiationService=d,this._primaryCursorPosition=new qn(1,1),this._primaryCursorVisibleRange=null,this._viewController=r,this._visibleRangeProvider=o,this._scrollLeft=0,this._scrollTop=0;let h=this._context.configuration.options,b=h.get(145);this._setAccessibilityOptions(h),this._contentLeft=b.contentLeft,this._contentWidth=b.contentWidth,this._contentHeight=b.height,this._fontInfo=h.get(50),this._lineHeight=h.get(67),this._emptySelectionClipboard=h.get(37),this._copyWithSyntaxHighlighting=h.get(25),this._visibleTextArea=null,this._selections=[new ic(1,1,1,1)],this._modelSelections=[new ic(1,1,1,1)],this._lastRenderPosition=null,this.textArea=V_(document.createElement("textarea")),yA.write(this.textArea,7),this.textArea.setClassName(`inputarea ${Nfe}`),this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off");let{tabSize:w}=this._context.viewModel.model.getOptions();this.textArea.domNode.style.tabSize=`${w*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(h)),this.textArea.setAttribute("aria-required",h.get(5)?"true":"false"),this.textArea.setAttribute("tabindex",String(h.get(124))),this.textArea.setAttribute("role","textbox"),this.textArea.setAttribute("aria-roledescription",ce("editor","editor")),this.textArea.setAttribute("aria-multiline","true"),this.textArea.setAttribute("aria-autocomplete",h.get(91)?"none":"both"),this._ensureReadOnlyAttribute(),this.textAreaCover=V_(document.createElement("div")),this.textAreaCover.setPosition("absolute");let N={getLineCount:()=>this._context.viewModel.getLineCount(),getLineMaxColumn:F=>this._context.viewModel.getLineMaxColumn(F),getValueInRange:(F,Y)=>this._context.viewModel.getValueInRange(F,Y),getValueLengthInRange:(F,Y)=>this._context.viewModel.getValueLengthInRange(F,Y),modifyPosition:(F,Y)=>this._context.viewModel.modifyPosition(F,Y)},L={getDataToCopy:()=>{let F=this._context.viewModel.getPlainTextToCopy(this._modelSelections,this._emptySelectionClipboard,Bv),Y=this._context.viewModel.model.getEOL(),Z=this._emptySelectionClipboard&&this._modelSelections.length===1&&this._modelSelections[0].isEmpty(),ee=Array.isArray(F)?F:null,Te=Array.isArray(F)?F.join(Y):F,Je,Xe=null;if(kdt.forceCopyWithSyntaxHighlighting||this._copyWithSyntaxHighlighting&&Te.length<65536){let ct=this._context.viewModel.getRichTextToCopy(this._modelSelections,this._emptySelectionClipboard);ct&&(Je=ct.html,Xe=ct.mode)}return{isFromEmptySelection:Z,multicursorText:ee,text:Te,html:Je,mode:Xe}},getScreenReaderContent:()=>{if(this._accessibilitySupport===1){let F=this._selections[0];if(md&&F.isEmpty()){let Z=F.getStartPosition(),ee=this._getWordBeforePosition(Z);if(ee.length===0&&(ee=this._getCharacterBeforePosition(Z)),ee.length>0)return new HI(ee,ee.length,ee.length,Zt.fromPositions(Z),0)}if(md&&!F.isEmpty()&&N.getValueLengthInRange(F,0)<500){let Z=N.getValueInRange(F,0);return new HI(Z,0,Z.length,F,0)}if(TR&&!F.isEmpty()){let Z="vscode-placeholder";return new HI(Z,0,Z.length,null,void 0)}return HI.EMPTY}if(TQt){let F=this._selections[0];if(F.isEmpty()){let Y=F.getStartPosition(),[Z,ee]=this._getAndroidWordAtPosition(Y);if(Z.length>0)return new HI(Z,ee,ee,Zt.fromPositions(Y),0)}return HI.EMPTY}return hPt.fromEditorSelection(N,this._selections[0],this._accessibilityPageSize,this._accessibilitySupport===0)},deduceModelPosition:(F,Y,Z)=>this._context.viewModel.deduceModelPositionRelativeToViewPosition(F,Y,Z)},B=this._register(new vPt(this.textArea.domNode));this._textAreaInput=this._register(this._instantiationService.createInstance(gPt,L,B,gE,{isAndroid:TQt,isChrome:Xbe,isFirefox:AD,isSafari:TR})),this._register(this._textAreaInput.onKeyDown(F=>{this._viewController.emitKeyDown(F)})),this._register(this._textAreaInput.onKeyUp(F=>{this._viewController.emitKeyUp(F)})),this._register(this._textAreaInput.onPaste(F=>{let Y=!1,Z=null,ee=null;F.metadata&&(Y=this._emptySelectionClipboard&&!!F.metadata.isFromEmptySelection,Z=typeof F.metadata.multicursorText<"u"?F.metadata.multicursorText:null,ee=F.metadata.mode),this._viewController.paste(F.text,Y,Z,ee)})),this._register(this._textAreaInput.onCut(()=>{this._viewController.cut()})),this._register(this._textAreaInput.onType(F=>{F.replacePrevCharCnt||F.replaceNextCharCnt||F.positionDelta?(MR&&console.log(` => compositionType: <<${F.text}>>, ${F.replacePrevCharCnt}, ${F.replaceNextCharCnt}, ${F.positionDelta}`),this._viewController.compositionType(F.text,F.replacePrevCharCnt,F.replaceNextCharCnt,F.positionDelta)):(MR&&console.log(` => type: <<${F.text}>>`),this._viewController.type(F.text))})),this._register(this._textAreaInput.onSelectionChangeRequest(F=>{this._viewController.setSelection(F)})),this._register(this._textAreaInput.onCompositionStart(F=>{let Y=this.textArea.domNode,Z=this._modelSelections[0],{distanceToModelLineStart:ee,widthOfHiddenTextBefore:Te}=(()=>{let Xe=Y.value.substring(0,Math.min(Y.selectionStart,Y.selectionEnd)),ct=Xe.lastIndexOf(` +`),Ct=Xe.substring(ct+1),Nt=Ct.lastIndexOf(" "),Yt=Ct.length-Nt-1,jt=Z.getStartPosition(),mi=Math.min(jt.column-1,Yt),_n=jt.column-1-mi,Pr=Ct.substring(0,Ct.length-mi),{tabSize:dr}=this._context.viewModel.model.getOptions(),Rr=oBi(this.textArea.domNode.ownerDocument,Pr,this._fontInfo,dr);return{distanceToModelLineStart:_n,widthOfHiddenTextBefore:Rr}})(),{distanceToModelLineEnd:Je}=(()=>{let Xe=Y.value.substring(Math.max(Y.selectionStart,Y.selectionEnd)),ct=Xe.indexOf(` +`),Ct=ct===-1?Xe:Xe.substring(0,ct),Nt=Ct.indexOf(" "),Yt=Nt===-1?Ct.length:Ct.length-Nt-1,jt=Z.getEndPosition(),mi=Math.min(this._context.viewModel.model.getLineMaxColumn(jt.lineNumber)-jt.column,Yt);return{distanceToModelLineEnd:this._context.viewModel.model.getLineMaxColumn(jt.lineNumber)-jt.column-mi}})();this._context.viewModel.revealRange("keyboard",!0,Zt.fromPositions(this._selections[0].getStartPosition()),0,1),this._visibleTextArea=new Iti(this._context,Z.startLineNumber,ee,Te,Je),this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off"),this._visibleTextArea.prepareRender(this._visibleRangeProvider),this._render(),this.textArea.setClassName(`inputarea ${Nfe} ime-input`),this._viewController.compositionStart(),this._context.viewModel.onCompositionStart()})),this._register(this._textAreaInput.onCompositionUpdate(F=>{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 ${Nfe}`),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(M6e.onDidChange(()=>{this._ensureReadOnlyAttribute()}))}writeScreenReaderContent(e){this._textAreaInput.writeNativeTextAreaContent(e)}dispose(){super.dispose()}_getAndroidWordAtPosition(e){let r='`~!@#$%^&*()-=+[{]}\\|;:",.<>/?',o=this._context.viewModel.getLineContent(e.lineNumber),c=o3(r,[]),d=!0,h=e.column,b=!0,w=e.column,N=0;for(;N<50&&(d||b);){if(d&&h<=1&&(d=!1),d){let L=o.charCodeAt(h-2);c.get(L)!==0?d=!1:h--}if(b&&w>o.length&&(b=!1),b){let L=o.charCodeAt(w-1);c.get(L)!==0?b=!1:w++}N++}return[o.substring(h-1,w-1),e.column-h]}_getWordBeforePosition(e){let r=this._context.viewModel.getLineContent(e.lineNumber),o=o3(this._context.configuration.options.get(131),[]),c=e.column,d=0;for(;c>1;){let h=r.charCodeAt(c-2);if(o.get(h)!==0||d>50)return r.substring(c-1,e.column-1);d++,c--}return r.substring(0,e.column-1)}_getCharacterBeforePosition(e){if(e.column>1){let o=this._context.viewModel.getLineContent(e.lineNumber).charAt(e.column-2);if(!TS(o.charCodeAt(0)))return o}return""}_getAriaLabel(e){var r,o,c;if(e.get(2)===1){let h=(r=this._keybindingService.lookupKeybinding("editor.action.toggleScreenReaderAccessibilityMode"))===null||r===void 0?void 0:r.getAriaLabel(),b=(o=this._keybindingService.lookupKeybinding("workbench.action.showCommands"))===null||o===void 0?void 0:o.getAriaLabel(),w=(c=this._keybindingService.lookupKeybinding("workbench.action.openGlobalKeybindings"))===null||c===void 0?void 0:c.getAriaLabel(),N=ce("accessibilityModeOff","The editor is not accessible at this time.");return h?ce("accessibilityOffAriaLabel","{0} To enable screen reader optimized mode, use {1}",N,h):b?ce("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.",N,b):w?ce("accessibilityOffAriaLabelNoKbs","{0} Please assign a keybinding for the command Toggle Screen Reader Accessibility Mode by accessing the keybindings editor with {1} and run it.",N,w):N}return e.get(4)}_setAccessibilityOptions(e){this._accessibilitySupport=e.get(2);let r=e.get(3);this._accessibilitySupport===2&&r===XF.accessibilityPageSize.defaultValue?this._accessibilityPageSize=500:this._accessibilityPageSize=r;let c=e.get(145).wrappingColumn;if(c!==-1&&this._accessibilitySupport!==1){let d=e.get(50);this._textAreaWrapping=!0,this._textAreaWidth=Math.round(c*d.typicalHalfwidthCharacterWidth)}else this._textAreaWrapping=!1,this._textAreaWidth=Dti?0:1}onConfigurationChanged(e){let r=this._context.configuration.options,o=r.get(145);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.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off");let{tabSize:c}=this._context.viewModel.model.getOptions();return this.textArea.domNode.style.tabSize=`${c*this._fontInfo.spaceWidth}px`,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(124))),(e.hasChanged(34)||e.hasChanged(91))&&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(){let e=this._context.configuration.options;!M6e.enabled||e.get(34)&&e.get(91)?this.textArea.setAttribute("readonly","true"):this.textArea.removeAttribute("readonly")}prepareRender(e){var r;this._primaryCursorPosition=new qn(this._selections[0].positionLineNumber,this._selections[0].positionColumn),this._primaryCursorVisibleRange=e.visibleRangeForPosition(this._primaryCursorPosition),(r=this._visibleTextArea)===null||r===void 0||r.prepareRender(e)}render(e){this._textAreaInput.writeNativeTextAreaContent("render"),this._render()}_render(){var e;if(this._visibleTextArea){let c=this._visibleTextArea.visibleTextareaStart,d=this._visibleTextArea.visibleTextareaEnd,h=this._visibleTextArea.startPosition,b=this._visibleTextArea.endPosition;if(h&&b&&c&&d&&d.left>=this._scrollLeft&&c.left<=this._scrollLeft+this._contentWidth){let w=this._context.viewLayout.getVerticalOffsetForLineNumber(this._primaryCursorPosition.lineNumber)-this._scrollTop,N=this._newlinecount(this.textArea.domNode.value.substr(0,this.textArea.domNode.selectionStart)),L=this._visibleTextArea.widthOfHiddenLineTextBefore,B=this._contentLeft+c.left-this._scrollLeft,F=d.left-c.left+1;if(Bthis._contentWidth&&(F=this._contentWidth);let Y=this._context.viewModel.getViewLineData(h.lineNumber),Z=Y.tokens.findTokenIndexAtOffset(h.column-1),ee=Y.tokens.findTokenIndexAtOffset(b.column-1),Te=Z===ee,Je=this._visibleTextArea.definePresentation(Te?Y.tokens.getPresentation(Z):null);this.textArea.domNode.scrollTop=N*this._lineHeight,this.textArea.domNode.scrollLeft=L,this._doRender({lastRenderPosition:null,top:w,left:B,width:F,height:this._lineHeight,useCover:!1,color:(a0.getColorMap()||[])[Je.foreground],italic:Je.italic,bold:Je.bold,underline:Je.underline,strikethrough:Je.strikethrough})}return}if(!this._primaryCursorVisibleRange){this._renderAtTopLeft();return}let r=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(rthis._contentLeft+this._contentWidth){this._renderAtTopLeft();return}let o=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;if(o<0||o>this._contentHeight){this._renderAtTopLeft();return}if(md||this._accessibilitySupport===2){this._doRender({lastRenderPosition:this._primaryCursorPosition,top:o,left:this._textAreaWrapping?this._contentLeft:r,width:this._textAreaWidth,height:this._lineHeight,useCover:!1}),this.textArea.domNode.scrollLeft=this._primaryCursorVisibleRange.left;let c=(e=this._textAreaInput.textAreaState.newlineCountBeforeSelection)!==null&&e!==void 0?e:this._newlinecount(this.textArea.domNode.value.substr(0,this.textArea.domNode.selectionStart));this.textArea.domNode.scrollTop=c*this._lineHeight;return}this._doRender({lastRenderPosition:this._primaryCursorPosition,top:o,left:this._textAreaWrapping?this._contentLeft:r,width:this._textAreaWidth,height:Dti?0:1,useCover:!1})}_newlinecount(e){let r=0,o=-1;do{if(o=e.indexOf(` +`,o+1),o===-1)break;r++}while(!0);return r}_renderAtTopLeft(){this._doRender({lastRenderPosition:null,top:0,left:0,width:this._textAreaWidth,height:Dti?0:1,useCover:!0})}_doRender(e){this._lastRenderPosition=e.lastRenderPosition;let r=this.textArea,o=this.textAreaCover;Bb(r,this._fontInfo),r.setTop(e.top),r.setLeft(e.left),r.setWidth(e.width),r.setHeight(e.height),r.setColor(e.color?po.Format.CSS.formatHex(e.color):""),r.setFontStyle(e.italic?"italic":""),e.bold&&r.setFontWeight("bold"),r.setTextDecoration(`${e.underline?" underline":""}${e.strikethrough?" line-through":""}`),o.setTop(e.useCover?e.top:0),o.setLeft(e.useCover?e.left:0),o.setWidth(e.useCover?e.width:0),o.setHeight(e.useCover?e.height:0);let c=this._context.configuration.options;c.get(57)?o.setClassName("monaco-editor-background textAreaCover "+LSe.OUTER_CLASS_NAME):c.get(68).renderType!==0?o.setClassName("monaco-editor-background textAreaCover "+F6e.CLASS_NAME):o.setClassName("monaco-editor-background textAreaCover")}};MPt=rBi([PSi(3,Jd),PSi(4,Pa)],MPt)});function sBi(l,e,r){let o=0;for(let d=0;d{Mu();t$()});function ore(l){return l==="'"||l==='"'||l==="`"}var aBi,cBi,lBi,Afe,tm,Nti,Ati,kE,bA,LV=ti(()=>{Iu();Xa();j0();SVe();t$();RPt();aBi=()=>!0,cBi=()=>!1,lBi=l=>l===" "||l===" ",Afe=class{static shouldRecreate(e){return e.hasChanged(145)||e.hasChanged(131)||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(128)||e.hasChanged(50)||e.hasChanged(91)||e.hasChanged(130)}constructor(e,r,o,c){var d;this.languageConfigurationService=c,this._cursorMoveConfigurationBrand=void 0,this._languageId=e;let h=o.options,b=h.get(145),w=h.get(50);this.readOnly=h.get(91),this.tabSize=r.tabSize,this.indentSize=r.indentSize,this.insertSpaces=r.insertSpaces,this.stickyTabStops=h.get(116),this.lineHeight=w.lineHeight,this.typicalHalfwidthCharacterWidth=w.typicalHalfwidthCharacterWidth,this.pageSize=Math.max(1,Math.floor(b.height/this.lineHeight)-2),this.useTabStops=h.get(128),this.wordSeparators=h.get(131),this.emptySelectionClipboard=h.get(37),this.copyWithSyntaxHighlighting=h.get(25),this.multiCursorMergeOverlapping=h.get(77),this.multiCursorPaste=h.get(79),this.multiCursorLimit=h.get(80),this.autoClosingBrackets=h.get(6),this.autoClosingComments=h.get(7),this.autoClosingQuotes=h.get(11),this.autoClosingDelete=h.get(9),this.autoClosingOvertype=h.get(10),this.autoSurround=h.get(14),this.autoIndent=h.get(12),this.wordSegmenterLocales=h.get(130),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();let N=this.languageConfigurationService.getLanguageConfiguration(e).getSurroundingPairs();if(N)for(let B of N)this.surroundingPairs[B.open]=B.close;let L=this.languageConfigurationService.getLanguageConfiguration(e).comments;this.blockCommentStartToken=(d=L?.blockCommentStartToken)!==null&&d!==void 0?d:null}get electricChars(){var e;if(!this._electricChars){this._electricChars={};let r=(e=this.languageConfigurationService.getLanguageConfiguration(this._languageId).electricCharacter)===null||e===void 0?void 0:e.getElectricCharacters();if(r)for(let o of r)this._electricChars[o]=!0}return this._electricChars}onElectricCharacter(e,r,o){let c=jne(r,o-1),d=this.languageConfigurationService.getLanguageConfiguration(c.languageId).electricCharacter;return d?d.onElectricCharacter(e,c,o-c.firstCharOffset):null}normalizeIndentation(e){return bHe(e,this.indentSize,this.insertSpaces)}_getShouldAutoClose(e,r,o){switch(r){case"beforeWhitespace":return lBi;case"languageDefined":return this._getLanguageDefinedShouldAutoClose(e,o);case"always":return aBi;case"never":return cBi}}_getLanguageDefinedShouldAutoClose(e,r){let o=this.languageConfigurationService.getLanguageConfiguration(e).getAutoCloseBeforeSet(r);return c=>o.indexOf(c)!==-1}visibleColumnFromColumn(e,r){return $1.visibleColumnFromColumn(e.getLineContent(r.lineNumber),r.column,this.tabSize)}columnFromVisibleColumn(e,r,o){let c=$1.columnFromVisibleColumn(e.getLineContent(r),o,this.tabSize),d=e.getLineMinColumn(r);if(ch?h:c}},tm=class l{static fromModelState(e){return new Nti(e)}static fromViewState(e){return new Ati(e)}static fromModelSelection(e){let r=ic.liftSelection(e),o=new kE(Zt.fromPositions(r.getSelectionStart()),0,0,r.getPosition(),0);return l.fromModelState(o)}static fromModelSelections(e){let r=[];for(let o=0,c=e.length;o{LV();Iu();Xa();OSe=class l{static columnSelect(e,r,o,c,d,h){let b=Math.abs(d-o)+1,w=o>d,N=c>h,L=ch||Jec||Te0&&c--,l.columnSelect(e,r,o.fromViewLineNumber,o.fromViewVisualColumn,o.toViewLineNumber,c)}static columnSelectRight(e,r,o){let c=0,d=Math.min(o.fromViewLineNumber,o.toViewLineNumber),h=Math.max(o.fromViewLineNumber,o.toViewLineNumber);for(let w=d;w<=h;w++){let N=r.getLineMaxColumn(w),L=e.visibleColumnFromColumn(r,new qn(w,N));c=Math.max(c,L)}let b=o.toViewVisualColumn;return b{j0();tw=class{constructor(e,r,o=!1){this._range=e,this._text=r,this.insertsAutoWhitespace=o}getEditOperations(e,r){r.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,r){let c=r.getInverseEditOperations()[0].range;return ic.fromPositions(c.getEndPosition())}},BPt=class{constructor(e,r){this._range=e,this._text=r}getEditOperations(e,r){r.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,r){let c=r.getInverseEditOperations()[0].range;return ic.fromRange(c,0)}},R6e=class{constructor(e,r,o=!1){this._range=e,this._text=r,this.insertsAutoWhitespace=o}getEditOperations(e,r){r.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,r){let c=r.getInverseEditOperations()[0].range;return ic.fromPositions(c.getStartPosition())}},B6e=class{constructor(e,r,o,c,d=!1){this._range=e,this._text=r,this._columnDeltaOffset=c,this._lineNumberDeltaOffset=o,this.insertsAutoWhitespace=d}getEditOperations(e,r){r.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,r){let c=r.getInverseEditOperations()[0].range;return ic.fromPositions(c.getEndPosition().delta(this._lineNumberDeltaOffset,this._columnDeltaOffset))}},FSe=class{constructor(e,r,o,c=!1){this._range=e,this._text=r,this._initialSelection=o,this._forceMoveMarkers=c,this._selectionId=null}getEditOperations(e,r){r.addTrackedEditOperation(this._range,this._text,this._forceMoveMarkers),this._selectionId=r.trackSelection(this._initialSelection)}computeCursorState(e,r){return r.getTrackedSelection(this._selectionId)}}});var Edt,sx,jPt=ti(()=>{Mu();t$();Iu();Xa();rti();LV();Edt=class{constructor(e,r,o){this._cursorPositionBrand=void 0,this.lineNumber=e,this.column=r,this.leftoverVisibleColumns=o}},sx=class l{static leftPosition(e,r){if(r.column>e.getLineMinColumn(r.lineNumber))return r.delta(void 0,-CQt(e.getLineContent(r.lineNumber),r.column-1));if(r.lineNumber>1){let o=r.lineNumber-1;return new qn(o,e.getLineMaxColumn(o))}else return r}static leftPositionAtomicSoftTabs(e,r,o){if(r.column<=e.getLineIndentColumn(r.lineNumber)){let c=e.getLineMinColumn(r.lineNumber),d=e.getLineContent(r.lineNumber),h=N6e.atomicPosition(d,r.column-1,o,0);if(h!==-1&&h+1>=c)return new qn(r.lineNumber,h+1)}return this.leftPosition(e,r)}static left(e,r,o){let c=e.stickyTabStops?l.leftPositionAtomicSoftTabs(r,o,e.tabSize):l.leftPosition(r,o);return new Edt(c.lineNumber,c.column,0)}static moveLeft(e,r,o,c,d){let h,b;if(o.hasSelection()&&!c)h=o.selection.startLineNumber,b=o.selection.startColumn;else{let w=o.position.delta(void 0,-(d-1)),N=r.normalizePosition(l.clipPositionColumn(w,r),0),L=l.left(e,r,N);h=L.lineNumber,b=L.column}return o.move(c,h,b,0)}static clipPositionColumn(e,r){return new qn(e.lineNumber,l.clipRange(e.column,r.getLineMinColumn(e.lineNumber),r.getLineMaxColumn(e.lineNumber)))}static clipRange(e,r,o){return eo?o:e}static rightPosition(e,r,o){return oL?(o=L,b?c=r.getLineMaxColumn(o):c=Math.min(r.getLineMaxColumn(o),c)):c=e.columnFromVisibleColumn(r,o,N),Y?d=0:d=N-$1.visibleColumnFromColumn(r.getLineContent(o),c,e.tabSize),w!==void 0){let Z=new qn(o,c),ee=r.normalizePosition(Z,w);d=d+(c-ee.column),o=ee.lineNumber,c=ee.column}return new Edt(o,c,d)}static down(e,r,o,c,d,h,b){return this.vertical(e,r,o,c,d,o+h,b,4)}static moveDown(e,r,o,c,d){let h,b;o.hasSelection()&&!c?(h=o.selection.endLineNumber,b=o.selection.endColumn):(h=o.position.lineNumber,b=o.position.column);let w=0,N;do if(N=l.down(e,r,h+w,b,o.leftoverVisibleColumns,d,!0),r.normalizePosition(new qn(N.lineNumber,N.column),2).lineNumber>h)break;while(w++<10&&h+w1&&this._isBlankLine(r,d);)d--;for(;d>1&&!this._isBlankLine(r,d);)d--;return o.move(c,d,r.getLineMinColumn(d),0)}static moveToNextBlankLine(e,r,o,c){let d=r.getLineCount(),h=o.position.lineNumber;for(;h{Mu();j6e();LV();t$();jPt();Xa();Iu();Pfe=class l{static deleteRight(e,r,o,c){let d=[],h=e!==3;for(let b=0,w=c.length;b=F.length+1)return!1;let Y=F.charAt(B.column-2),Z=c.get(Y);if(!Z)return!1;if(ore(Y)){if(o==="never")return!1}else if(r==="never")return!1;let ee=F.charAt(B.column-1),Te=!1;for(let Je of Z)Je.open===Y&&Je.close===ee&&(Te=!0);if(!Te)return!1;if(e==="auto"){let Je=!1;for(let Xe=0,ct=b.length;Xe1){let d=r.getLineContent(c.lineNumber),h=tx(d),b=h===-1?d.length+1:h+1;if(c.column<=b){let w=o.visibleColumnFromColumn(r,c),N=$1.prevIndentTabStop(w,o.indentSize),L=o.columnFromVisibleColumn(r,c.lineNumber,N);return new Zt(c.lineNumber,L,c.lineNumber,c.column)}}return Zt.fromPositions(l.getPositionAfterDeleteLeft(c,r),c)}static getPositionAfterDeleteLeft(e,r){if(e.column>1){let o=n0i(e.column-1,r.getLineContent(e.lineNumber));return e.with(void 0,o+1)}else if(e.lineNumber>1){let o=e.lineNumber-1;return new qn(o,r.getLineMaxColumn(o))}else return e}static cut(e,r,o){let c=[],d=null;o.sort((h,b)=>qn.compare(h.getStartPosition(),b.getEndPosition()));for(let h=0,b=o.length;h1&&d?.endLineNumber!==N.lineNumber?(L=N.lineNumber-1,B=r.getLineMaxColumn(N.lineNumber-1),F=N.lineNumber,Y=r.getLineMaxColumn(N.lineNumber)):(L=N.lineNumber,B=1,F=N.lineNumber,Y=r.getLineMaxColumn(N.lineNumber));let Z=new Zt(L,B,F,Y);d=Z,Z.isEmpty()?c[h]=null:c[h]=new tw(Z,"")}else c[h]=null;else c[h]=new tw(w,"")}return new bA(0,c,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}}});function zPt(l){return l.filter(e=>!!e)}var b2,W6e,Ddt=ti(()=>{Mu();LV();WPt();EVe();Iu();Xa();b2=class l{static _createWord(e,r,o,c,d){return{start:c,end:d,wordType:r,nextCharClass:o}}static _createIntlWord(e,r){return{start:e.index,end:e.index+e.segment.length,wordType:1,nextCharClass:r}}static _findPreviousWordOnLine(e,r,o){let c=r.getLineContent(o.lineNumber);return this._doFindPreviousWordOnLine(c,e,o)}static _doFindPreviousWordOnLine(e,r,o){let c=0,d=r.findPrevIntlWordBeforeOrAtOffset(e,o.column-2);for(let h=o.column-2;h>=0;h--){let b=e.charCodeAt(h),w=r.get(b);if(d&&h===d.index)return this._createIntlWord(d,w);if(w===0){if(c===2)return this._createWord(e,c,w,h+1,this._findEndOfWord(e,r,c,h+1));c=1}else if(w===2){if(c===1)return this._createWord(e,c,w,h+1,this._findEndOfWord(e,r,c,h+1));c=2}else if(w===1&&c!==0)return this._createWord(e,c,w,h+1,this._findEndOfWord(e,r,c,h+1))}return c!==0?this._createWord(e,c,1,0,this._findEndOfWord(e,r,c,0)):null}static _findEndOfWord(e,r,o,c){let d=r.findNextIntlWordAtOrAfterOffset(e,c),h=e.length;for(let b=c;b=0;h--){let b=e.charCodeAt(h),w=r.get(b);if(d&&h===d.index)return h;if(w===1||o===1&&w===2||o===2&&w===0)return h+1}return 0}static moveWordLeft(e,r,o,c){let d=o.lineNumber,h=o.column;h===1&&d>1&&(d=d-1,h=r.getLineMaxColumn(d));let b=l._findPreviousWordOnLine(e,r,new qn(d,h));if(c===0)return new qn(d,b?b.start+1:1);if(c===1)return b&&b.wordType===2&&b.end-b.start===1&&b.nextCharClass===0&&(b=l._findPreviousWordOnLine(e,r,new qn(d,b.start+1))),new qn(d,b?b.start+1:1);if(c===3){for(;b&&b.wordType===2;)b=l._findPreviousWordOnLine(e,r,new qn(d,b.start+1));return new qn(d,b?b.start+1:1)}return b&&h<=b.end+1&&(b=l._findPreviousWordOnLine(e,r,new qn(d,b.start+1))),new qn(d,b?b.end+1:1)}static _moveWordPartLeft(e,r){let o=r.lineNumber,c=e.getLineMaxColumn(o);if(r.column===1)return o>1?new qn(o-1,e.getLineMaxColumn(o-1)):r;let d=e.getLineContent(o);for(let h=r.column-1;h>1;h--){let b=d.charCodeAt(h-2),w=d.charCodeAt(h-1);if(b===95&&w!==95)return new qn(o,h);if(b===45&&w!==45)return new qn(o,h);if((Ine(b)||uut(b))&&dV(w))return new qn(o,h);if(dV(b)&&dV(w)&&h+1=w.start+1&&(w=l._findNextWordOnLine(e,r,new qn(d,w.end+1))),w?h=w.start+1:h=r.getLineMaxColumn(d);return new qn(d,h)}static _moveWordPartRight(e,r){let o=r.lineNumber,c=e.getLineMaxColumn(o);if(r.column===c)return o1?N=1:(w--,N=c.getLineMaxColumn(w)):(L&&N<=L.end+1&&(L=l._findPreviousWordOnLine(o,c,new qn(w,L.start+1))),L?N=L.end+1:N>1?N=1:(w--,N=c.getLineMaxColumn(w))),new Zt(w,N,b.lineNumber,b.column)}static deleteInsideWord(e,r,o){if(!o.isEmpty())return o;let c=new qn(o.positionLineNumber,o.positionColumn),d=this._deleteInsideWordWhitespace(r,c);return d||this._deleteInsideWordDetermineDeleteRange(e,r,c)}static _charAtIsWhitespace(e,r){let o=e.charCodeAt(r);return o===32||o===9}static _deleteInsideWordWhitespace(e,r){let o=e.getLineContent(r.lineNumber),c=o.length;if(c===0)return null;let d=Math.max(r.column-2,0);if(!this._charAtIsWhitespace(o,d))return null;let h=Math.min(r.column-1,c-1);if(!this._charAtIsWhitespace(o,h))return null;for(;d>0&&this._charAtIsWhitespace(o,d-1);)d--;for(;h+11?new Zt(o.lineNumber-1,r.getLineMaxColumn(o.lineNumber-1),o.lineNumber,1):o.lineNumberB.start+1<=o.column&&o.column<=B.end+1,b=(B,F)=>(B=Math.min(B,o.column),F=Math.max(F,o.column),new Zt(o.lineNumber,B,o.lineNumber,F)),w=B=>{let F=B.start+1,Y=B.end+1,Z=!1;for(;Y-11&&this._charAtIsWhitespace(c,F-2);)F--;return b(F,Y)},N=l._findPreviousWordOnLine(e,r,o);if(N&&h(N))return w(N);let L=l._findNextWordOnLine(e,r,o);return L&&h(L)?w(L):N&&L?b(N.end+1,L.start+1):N?b(N.start+1,N.end+1):L?b(L.start+1,L.end+1):b(1,d+1)}static _deleteWordPartLeft(e,r){if(!r.isEmpty())return r;let o=r.getPosition(),c=l._moveWordPartLeft(e,o);return new Zt(o.lineNumber,o.column,c.lineNumber,c.column)}static _findFirstNonWhitespaceChar(e,r){let o=e.length;for(let c=r;c=F.start+1&&(F=l._findNextWordOnLine(o,c,new qn(w,F.end+1))),F?N=F.start+1:N{Fh();LV();jPt();Ddt();Iu();Xa();PT=class{static addCursorDown(e,r,o){let c=[],d=0;for(let h=0,b=r.length;hN&&(L=N,B=e.model.getLineMaxColumn(L)),tm.fromModelState(new kE(new Zt(h.lineNumber,1,L,B),2,0,new qn(L,B),0))}let w=r.modelState.selectionStart.getStartPosition().lineNumber;if(h.lineNumberw){let N=e.getLineCount(),L=b.lineNumber+1,B=1;return L>N&&(L=N,B=e.getLineMaxColumn(L)),tm.fromViewState(r.viewState.move(!0,L,B,0))}else{let N=r.modelState.selectionStart.getEndPosition();return tm.fromModelState(r.modelState.move(!0,N.lineNumber,N.column,0))}}static word(e,r,o,c){let d=e.model.validatePosition(c);return tm.fromModelState(b2.word(e.cursorConfig,e.model,r.modelState,o,d))}static cancelSelection(e,r){if(!r.modelState.hasSelection())return new tm(r.modelState,r.viewState);let o=r.viewState.position.lineNumber,c=r.viewState.position.column;return tm.fromViewState(new kE(new Zt(o,c,o,c),0,0,new qn(o,c),0))}static moveTo(e,r,o,c,d){if(o){if(r.modelState.selectionStartKind===1)return this.word(e,r,o,c);if(r.modelState.selectionStartKind===2)return this.line(e,r,o,c,d)}let h=e.model.validatePosition(c),b=d?e.coordinatesConverter.validateViewPosition(new qn(d.lineNumber,d.column),h):e.coordinatesConverter.convertModelPositionToViewPosition(h);return tm.fromViewState(r.viewState.move(o,b.lineNumber,b.column,0))}static simpleMove(e,r,o,c,d,h){switch(o){case 0:return h===4?this._moveHalfLineLeft(e,r,c):this._moveLeft(e,r,c,d);case 1:return h===4?this._moveHalfLineRight(e,r,c):this._moveRight(e,r,c,d);case 2:return h===2?this._moveUpByViewLines(e,r,c,d):this._moveUpByModelLines(e,r,c,d);case 3:return h===2?this._moveDownByViewLines(e,r,c,d):this._moveDownByModelLines(e,r,c,d);case 4:return h===2?r.map(b=>tm.fromViewState(sx.moveToPrevBlankLine(e.cursorConfig,e,b.viewState,c))):r.map(b=>tm.fromModelState(sx.moveToPrevBlankLine(e.cursorConfig,e.model,b.modelState,c)));case 5:return h===2?r.map(b=>tm.fromViewState(sx.moveToNextBlankLine(e.cursorConfig,e,b.viewState,c))):r.map(b=>tm.fromModelState(sx.moveToNextBlankLine(e.cursorConfig,e.model,b.modelState,c)));case 6:return this._moveToViewMinColumn(e,r,c);case 7:return this._moveToViewFirstNonWhitespaceColumn(e,r,c);case 8:return this._moveToViewCenterColumn(e,r,c);case 9:return this._moveToViewMaxColumn(e,r,c);case 10:return this._moveToViewLastNonWhitespaceColumn(e,r,c);default:return null}}static viewportMove(e,r,o,c,d){let h=e.getCompletelyVisibleViewRange(),b=e.coordinatesConverter.convertViewRangeToModelRange(h);switch(o){case 11:{let w=this._firstLineNumberInRange(e.model,b,d),N=e.model.getLineFirstNonWhitespaceColumn(w);return[this._moveToModelPosition(e,r[0],c,w,N)]}case 13:{let w=this._lastLineNumberInRange(e.model,b,d),N=e.model.getLineFirstNonWhitespaceColumn(w);return[this._moveToModelPosition(e,r[0],c,w,N)]}case 12:{let w=Math.round((b.startLineNumber+b.endLineNumber)/2),N=e.model.getLineFirstNonWhitespaceColumn(w);return[this._moveToModelPosition(e,r[0],c,w,N)]}case 14:{let w=[];for(let N=0,L=r.length;No.endLineNumber-1?h=o.endLineNumber-1:dtm.fromViewState(sx.moveLeft(e.cursorConfig,e,d.viewState,o,c)))}static _moveHalfLineLeft(e,r,o){let c=[];for(let d=0,h=r.length;dtm.fromViewState(sx.moveRight(e.cursorConfig,e,d.viewState,o,c)))}static _moveHalfLineRight(e,r,o){let c=[];for(let d=0,h=r.length;d{Mu();SVe();Vq();z6e=class{constructor(e,r,o){this._indentRulesSupport=r,this._indentationLineProcessor=new HPt(e,o)}shouldIncrease(e,r){let o=this._indentationLineProcessor.getProcessedLine(e,r);return this._indentRulesSupport.shouldIncrease(o)}shouldDecrease(e,r){let o=this._indentationLineProcessor.getProcessedLine(e,r);return this._indentRulesSupport.shouldDecrease(o)}shouldIgnore(e,r){let o=this._indentationLineProcessor.getProcessedLine(e,r);return this._indentRulesSupport.shouldIgnore(o)}shouldIndentNextLine(e,r){let o=this._indentationLineProcessor.getProcessedLine(e,r);return this._indentRulesSupport.shouldIndentNextLine(o)}},V6e=class{constructor(e,r){this.model=e,this.indentationLineProcessor=new HPt(e,r)}getProcessedTokenContextAroundRange(e){let r=this._getProcessedTokensBeforeRange(e),o=this._getProcessedTokensAfterRange(e),c=this._getProcessedPreviousLineTokens(e);return{beforeRangeProcessedTokens:r,afterRangeProcessedTokens:o,previousLineProcessedTokens:c}}_getProcessedTokensBeforeRange(e){this.model.tokenization.forceTokenization(e.startLineNumber);let r=this.model.tokenization.getLineTokens(e.startLineNumber),o=jne(r,e.startColumn-1),c;if(UPt(this.model,e.getStartPosition())){let h=e.startColumn-1-o.firstCharOffset,b=o.firstCharOffset,w=b+h;c=r.sliceAndInflate(b,w,0)}else{let h=e.startColumn-1;c=r.sliceAndInflate(0,h,0)}return this.indentationLineProcessor.getProcessedTokens(c)}_getProcessedTokensAfterRange(e){let r=e.isEmpty()?e.getStartPosition():e.getEndPosition();this.model.tokenization.forceTokenization(r.lineNumber);let o=this.model.tokenization.getLineTokens(r.lineNumber),c=jne(o,r.column-1),d=r.column-1-c.firstCharOffset,h=c.firstCharOffset+d,b=c.firstCharOffset+c.getLineLength(),w=o.sliceAndInflate(h,b,0);return this.indentationLineProcessor.getProcessedTokens(w)}_getProcessedPreviousLineTokens(e){let r=Y=>{this.model.tokenization.forceTokenization(Y);let Z=this.model.tokenization.getLineTokens(Y),ee=this.model.getLineMaxColumn(Y)-1;return jne(Z,ee)};this.model.tokenization.forceTokenization(e.startLineNumber);let o=this.model.tokenization.getLineTokens(e.startLineNumber),c=jne(o,e.startColumn-1),d=Wx.createEmpty("",c.languageIdCodec),h=e.startLineNumber-1;if(h===0||!(c.firstCharOffset===0))return d;let N=r(h);if(!(c.languageId===N.languageId))return d;let B=N.toIViewLineTokens();return this.indentationLineProcessor.getProcessedTokens(B)}},HPt=class{constructor(e,r){this.model=e,this.languageConfigurationService=r}getProcessedLine(e,r){var o,c;let d=(w,N)=>{let L=rg(w);return N+w.substring(L.length)};(c=(o=this.model.tokenization).forceTokenization)===null||c===void 0||c.call(o,e);let h=this.model.tokenization.getLineTokens(e),b=this.getProcessedTokens(h).getLineContent();return r!==void 0&&(b=d(b,r)),b}getProcessedTokens(e){let r=w=>w===2||w===3||w===1,o=e.getLanguageId(0),d=this.languageConfigurationService.getLanguageConfiguration(o).bracketsNew.getBracketRegExp({global:!0}),h=[];return e.forEach(w=>{let N=e.getStandardTokenType(w),L=e.getTokenText(w);r(N)&&(L=L.replace(d,""));let B=e.getMetadata(w);h.push({text:L,metadata:B})}),Wx.createFromTextAndMetadata(h,e.languageIdCodec)}}});function Lfe(l,e,r,o){e.tokenization.forceTokenization(r.startLineNumber);let c=e.getLanguageIdAtPosition(r.startLineNumber,r.startColumn),d=o.getLanguageConfiguration(c);if(!d)return null;let b=new V6e(e,o).getProcessedTokenContextAroundRange(r),w=b.previousLineProcessedTokens.getLineContent(),N=b.beforeRangeProcessedTokens.getLineContent(),L=b.afterRangeProcessedTokens.getLineContent(),B=d.onEnter(l,w,N,L);if(!B)return null;let F=B.indentAction,Y=B.appendText,Z=B.removeText||0;Y?F===jx.Indent&&(Y=" "+Y):F===jx.Indent||F===jx.IndentOutdent?Y=" ":Y="";let ee=XNt(e,r.startLineNumber,r.startColumn);return Z&&(ee=ee.substring(0,ee.length-Z)),{indentAction:F,appendText:Y,removeText:Z,indentation:ee}}var qPt=ti(()=>{sSe();ix();JPt()});function H6e(l,e){if(e<=0)return"";Pti[l]||(Pti[l]=["",l]);let r=Pti[l];for(let o=r.length;o<=e;o++)r[o]=r[o-1]+l;return r[e]}var uBi,dBi,$Pt,Pti,QO,Ndt=ti(()=>{Mu();t$();Xa();j0();qPt();ix();uBi=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},dBi=function(l,e){return function(r,o){e(r,o,l)}},Pti=Object.create(null);QO=$Pt=class{static unshiftIndent(e,r,o,c,d){let h=$1.visibleColumnFromColumn(e,r,o);if(d){let b=H6e(" ",c),N=$1.prevIndentTabStop(h,c)/c;return H6e(b,N)}else{let b=" ",N=$1.prevRenderTabStop(h,o)/o;return H6e(b,N)}}static shiftIndent(e,r,o,c,d){let h=$1.visibleColumnFromColumn(e,r,o);if(d){let b=H6e(" ",c),N=$1.nextIndentTabStop(h,c)/c;return H6e(b,N)}else{let b=" ",N=$1.nextRenderTabStop(h,o)/o;return H6e(b,N)}}constructor(e,r,o){this._languageConfigurationService=o,this._opts=r,this._selection=e,this._selectionId=null,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}_addEditOperation(e,r,o){this._useLastEditRangeForCursorEndPosition?e.addTrackedEditOperation(r,o):e.addEditOperation(r,o)}getEditOperations(e,r){let o=this._selection.startLineNumber,c=this._selection.endLineNumber;this._selection.endColumn===1&&o!==c&&(c=c-1);let{tabSize:d,indentSize:h,insertSpaces:b}=this._opts,w=o===c;if(this._opts.useTabStops){this._selection.isEmpty()&&/^\s*$/.test(e.getLineContent(o))&&(this._useLastEditRangeForCursorEndPosition=!0);let N=0,L=0;for(let B=o;B<=c;B++,N=L){L=0;let F=e.getLineContent(B),Y=tx(F);if(this._opts.isUnshift&&(F.length===0||Y===0)||!w&&!this._opts.isUnshift&&F.length===0)continue;if(Y===-1&&(Y=F.length),B>1&&$1.visibleColumnFromColumn(F,Y+1,d)%h!==0&&e.tokenization.isCheapToTokenize(B-1)){let Te=Lfe(this._opts.autoIndent,e,new Zt(B-1,e.getLineMaxColumn(B-1),B-1,e.getLineMaxColumn(B-1)),this._languageConfigurationService);if(Te){if(L=N,Te.appendText)for(let Je=0,Xe=Te.appendText.length;Je{Xa();j0();GPt=class{constructor(e,r,o){this._range=e,this._charBeforeSelection=r,this._charAfterSelection=o}getEditOperations(e,r){r.addTrackedEditOperation(new Zt(this._range.startLineNumber,this._range.startColumn,this._range.startLineNumber,this._range.startColumn),this._charBeforeSelection),r.addTrackedEditOperation(new Zt(this._range.endLineNumber,this._range.endColumn,this._range.endLineNumber,this._range.endColumn),this._charAfterSelection)}computeCursorState(e,r){let o=r.getInverseEditOperations(),c=o[0].range,d=o[1].range;return new ic(c.endLineNumber,c.endColumn,d.endLineNumber,d.endColumn-this._charAfterSelection.length)}},KPt=class{constructor(e,r,o){this._position=e,this._text=r,this._charAfter=o}getEditOperations(e,r){r.addTrackedEditOperation(new Zt(this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column),this._text+this._charAfter)}computeCursorState(e,r){let c=r.getInverseEditOperations()[0].range;return new ic(c.endLineNumber,c.startColumn,c.endLineNumber,c.endColumn-this._charAfter.length)}}});function fBi(l,e,r){let o=l.tokenization.getLanguageIdAtPosition(e,0);if(e>1){let c,d=-1;for(c=e-1;c>=1;c--){if(l.tokenization.getLanguageIdAtPosition(c,0)!==o)return d;let h=l.getLineContent(c);if(r.shouldIgnore(c)||/^\s+$/.test(h)||h===""){d=c;continue}return c}}return-1}function Adt(l,e,r,o=!0,c){if(l<4)return null;let d=c.getLanguageConfiguration(e.tokenization.getLanguageId()).indentRulesSupport;if(!d)return null;let h=new z6e(e,d,c);if(r<=1)return{indentation:"",action:null};for(let w=r-1;w>0&&e.getLineContent(w)==="";w--)if(w===1)return{indentation:"",action:null};let b=fBi(e,r,h);if(b<0)return null;if(b<1)return{indentation:"",action:null};if(h.shouldIncrease(b)||h.shouldIndentNextLine(b)){let w=e.getLineContent(b);return{indentation:rg(w),action:jx.Indent,line:b}}else if(h.shouldDecrease(b)){let w=e.getLineContent(b);return{indentation:rg(w),action:null,line:b}}else{if(b===1)return{indentation:rg(e.getLineContent(b)),action:null,line:b};let w=b-1,N=d.getIndentMetadata(e.getLineContent(w));if(!(N&3)&&N&4){let L=0;for(let B=w-1;B>0;B--)if(!h.shouldIndentNextLine(B)){L=B;break}return{indentation:rg(e.getLineContent(L+1)),action:null,line:L+1}}if(o)return{indentation:rg(e.getLineContent(b)),action:null,line:b};for(let L=b;L>0;L--){if(h.shouldIncrease(L))return{indentation:rg(e.getLineContent(L)),action:jx.Indent,line:L};if(h.shouldIndentNextLine(L)){let B=0;for(let F=L-1;F>0;F--)if(!h.shouldIndentNextLine(L)){B=F;break}return{indentation:rg(e.getLineContent(B+1)),action:null,line:B+1}}else if(h.shouldDecrease(L))return{indentation:rg(e.getLineContent(L)),action:null,line:L}}return{indentation:rg(e.getLineContent(1)),action:null,line:1}}}function U6e(l,e,r,o,c,d){if(l<4)return null;let h=d.getLanguageConfiguration(r);if(!h)return null;let b=d.getLanguageConfiguration(r).indentRulesSupport;if(!b)return null;let w=new z6e(e,b,d),N=Adt(l,e,o,void 0,d);if(N){let L=N.line;if(L!==void 0){let B=!0;for(let F=L;Fl.getLineCount()?null:o.getIndentMetadata(l.getLineContent(e))}function _Bi(l,e,r){return{tokenization:{getLineTokens:c=>c===e?r:l.tokenization.getLineTokens(c),getLanguageId:()=>l.getLanguageId(),getLanguageIdAtPosition:(c,d)=>l.getLanguageIdAtPosition(c,d)},getLineContent:c=>c===e?r.getLineContent():l.getLineContent(c)}}var YPt=ti(()=>{Mu();sSe();JPt()});function Lti(l,e){return l===" "?e===5||e===6?6:5:4}function QPt(l,e){return jSi(l)&&!jSi(e)?!0:l===5?!1:BSi(l)!==BSi(e)}function BSi(l){return l===6||l===5?"space":l}function jSi(l){return l===4||l===5||l===6}var l7,Pdt,ZPt,e4t=ti(()=>{Du();Mu();j6e();Ndt();FSi();LV();EVe();Xa();Iu();sSe();ix();SVe();YPt();qPt();l7=class l{static indent(e,r,o){if(r===null||o===null)return[];let c=[];for(let d=0,h=o.length;d1){let b;for(b=o-1;b>=1;b--){let L=r.getLineContent(b);if(MP(L)>=0)break}if(b<1)return null;let w=r.getLineMaxColumn(b),N=Lfe(e.autoIndent,r,new Zt(b,w,b,w),e.languageConfigurationService);N&&(d=N.indentation+N.appendText)}return c&&(c===jx.Indent&&(d=l.shiftIndent(e,d)),c===jx.Outdent&&(d=l.unshiftIndent(e,d)),d=e.normalizeIndentation(d)),d||null}static _replaceJumpToNextIndent(e,r,o,c){let d="",h=o.getStartPosition();if(e.insertSpaces){let b=e.visibleColumnFromColumn(r,h),w=e.indentSize,N=w-b%w;for(let L=0;Lthis._compositionType(o,L,d,h,b,w));return new bA(4,N,{shouldPushStackElementBefore:QPt(e,4),shouldPushStackElementAfter:!1})}static _compositionType(e,r,o,c,d,h){if(!r.isEmpty())return null;let b=r.getPosition(),w=Math.max(1,b.column-c),N=Math.min(e.getLineMaxColumn(b.lineNumber),b.column+d),L=new Zt(b.lineNumber,w,b.lineNumber,N);return e.getValueInRange(L)===o&&h===0?null:new B6e(L,o,0,h)}static _typeCommand(e,r,o){return o?new R6e(e,r,!0):new tw(e,r,!0)}static _enter(e,r,o,c){if(e.autoIndent===0)return l._typeCommand(c,` +`,o);if(!r.tokenization.isCheapToTokenize(c.getStartPosition().lineNumber)||e.autoIndent===1){let w=r.getLineContent(c.startLineNumber),N=rg(w).substring(0,c.startColumn-1);return l._typeCommand(c,` +`+e.normalizeIndentation(N),o)}let d=Lfe(e.autoIndent,r,c,e.languageConfigurationService);if(d){if(d.indentAction===jx.None)return l._typeCommand(c,` +`+e.normalizeIndentation(d.indentation+d.appendText),o);if(d.indentAction===jx.Indent)return l._typeCommand(c,` +`+e.normalizeIndentation(d.indentation+d.appendText),o);if(d.indentAction===jx.IndentOutdent){let w=e.normalizeIndentation(d.indentation),N=e.normalizeIndentation(d.indentation+d.appendText),L=` +`+N+` +`+w;return o?new R6e(c,L,!0):new B6e(c,L,-1,N.length-w.length,!0)}else if(d.indentAction===jx.Outdent){let w=l.unshiftIndent(e,d.indentation);return l._typeCommand(c,` +`+e.normalizeIndentation(w+d.appendText),o)}}let h=r.getLineContent(c.startLineNumber),b=rg(h).substring(0,c.startColumn-1);if(e.autoIndent>=4){let w=MSi(e.autoIndent,r,c,{unshiftIndent:N=>l.unshiftIndent(e,N),shiftIndent:N=>l.shiftIndent(e,N),normalizeIndentation:N=>e.normalizeIndentation(N)},e.languageConfigurationService);if(w){let N=e.visibleColumnFromColumn(r,c.getEndPosition()),L=c.endColumn,B=r.getLineContent(c.endLineNumber),F=tx(B);if(F>=0?c=c.setEndPosition(c.endLineNumber,Math.max(c.endColumn,F+1)):c=c.setEndPosition(c.endLineNumber,r.getLineMaxColumn(c.endLineNumber)),o)return new R6e(c,` +`+e.normalizeIndentation(w.afterEnter),!0);{let Y=0;return L<=F+1&&(e.insertSpaces||(N=Math.ceil(N/e.indentSize)),Y=Math.min(N+1-e.normalizeIndentation(w.afterEnter).length-1,0)),new B6e(c,` +`+e.normalizeIndentation(w.afterEnter),0,Y,!0)}}}return l._typeCommand(c,` +`+e.normalizeIndentation(b),o)}static _isAutoIndentType(e,r,o){if(e.autoIndent<4)return!1;for(let c=0,d=o.length;cl.shiftIndent(e,b),unshiftIndent:b=>l.unshiftIndent(e,b)},e.languageConfigurationService);if(h===null)return null;if(h!==e.normalizeIndentation(d)){let b=r.getLineFirstNonWhitespaceColumn(o.startLineNumber);return b===0?l._typeCommand(new Zt(o.startLineNumber,1,o.endLineNumber,o.endColumn),e.normalizeIndentation(h)+c,!1):l._typeCommand(new Zt(o.startLineNumber,1,o.endLineNumber,o.endColumn),e.normalizeIndentation(h)+r.getLineContent(o.startLineNumber).substring(b-1,o.startColumn-1)+c,!1)}return null}static _isAutoClosingOvertype(e,r,o,c,d){if(e.autoClosingOvertype==="never"||!e.autoClosingPairs.autoClosingPairsCloseSingleChar.has(d))return!1;for(let h=0,b=o.length;h2?L.charCodeAt(N.column-2):0)===92&&F)return!1;if(e.autoClosingOvertype==="auto"){let Z=!1;for(let ee=0,Te=c.length;eer.startsWith(w.open)),b=d.some(w=>r.startsWith(w.close));return!h&&b}static _findAutoClosingPairOpen(e,r,o,c){let d=e.autoClosingPairs.autoClosingPairsOpenByEnd.get(c);if(!d)return null;let h=null;for(let b of d)if(h===null||b.open.length>h.open.length){let w=!0;for(let N of o)if(r.getValueInRange(new Zt(N.lineNumber,N.column-b.open.length+1,N.lineNumber,N.column))+c!==b.open){w=!1;break}w&&(h=b)}return h}static _findContainedAutoClosingPair(e,r){if(r.open.length<=1)return null;let o=r.close.charAt(r.close.length-1),c=e.autoClosingPairs.autoClosingPairsCloseByEnd.get(o)||[],d=null;for(let h of c)h.open!==r.open&&r.open.includes(h.open)&&r.close.endsWith(h.close)&&(!d||h.open.length>d.open.length)&&(d=h);return d}static _getAutoClosingPairClose(e,r,o,c,d){for(let Z of o)if(!Z.isEmpty())return null;let h=o.map(Z=>{let ee=Z.getPosition();return d?{lineNumber:ee.lineNumber,beforeColumn:ee.column-c.length,afterColumn:ee.column}:{lineNumber:ee.lineNumber,beforeColumn:ee.column,afterColumn:ee.column}}),b=this._findAutoClosingPairOpen(e,r,h.map(Z=>new qn(Z.lineNumber,Z.beforeColumn)),c);if(!b)return null;let w,N;if(ore(c)?(w=e.autoClosingQuotes,N=e.shouldAutoCloseBefore.quote):(e.blockCommentStartToken?b.open.includes(e.blockCommentStartToken):!1)?(w=e.autoClosingComments,N=e.shouldAutoCloseBefore.comment):(w=e.autoClosingBrackets,N=e.shouldAutoCloseBefore.bracket),w==="never")return null;let B=this._findContainedAutoClosingPair(e,b),F=B?B.close:"",Y=!0;for(let Z of h){let{lineNumber:ee,beforeColumn:Te,afterColumn:Je}=Z,Xe=r.getLineContent(ee),ct=Xe.substring(0,Te-1),Ct=Xe.substring(Je-1);if(Ct.startsWith(F)||(Y=!1),Ct.length>0){let mi=Ct.charAt(0);if(!l._isBeforeClosingBrace(e,Ct)&&!N(mi))return null}if(b.open.length===1&&(c==="'"||c==='"')&&w!=="always"){let mi=o3(e.wordSeparators,[]);if(ct.length>0){let _n=ct.charCodeAt(ct.length-1);if(mi.get(_n)===0)return null}}if(!r.tokenization.isCheapToTokenize(ee))return null;r.tokenization.forceTokenization(ee);let Nt=r.tokenization.getLineTokens(ee),Yt=jne(Nt,Te-1);if(!b.shouldAutoClose(Yt,Te-Yt.firstCharOffset))return null;let jt=b.findNeutralCharacter();if(jt){let mi=r.tokenization.getTokenTypeIfInsertingCharacter(ee,Te,jt);if(!b.isOK(mi))return null}}return Y?b.close.substring(0,b.close.length-F.length):b.close}static _runAutoClosingOpenCharType(e,r,o,c,d,h,b){let w=[];for(let N=0,L=c.length;Nnew tw(new Zt(F.positionLineNumber,F.positionColumn,F.positionLineNumber,F.positionColumn+1),"",!1));return new bA(4,B,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}let L=this._getAutoClosingPairClose(r,o,d,w,!0);return L!==null?this._runAutoClosingOpenCharType(e,r,o,d,w,!0,L):null}static typeWithInterceptors(e,r,o,c,d,h,b){if(!e&&b===` +`){let L=[];for(let B=0,F=d.length;B{ya();hd();(function(l){l.editorSimpleInput=new va("editorSimpleInput",!1,!0),l.editorTextFocus=new va("editorTextFocus",!1,ce("editorTextFocus","Whether the editor text has focus (cursor is blinking)")),l.focus=new va("editorFocus",!1,ce("editorFocus","Whether the editor or an editor widget has focus (e.g. focus is in the find widget)")),l.textInputFocus=new va("textInputFocus",!1,ce("textInputFocus","Whether an editor or a rich text input has focus (cursor is blinking)")),l.readOnly=new va("editorReadonly",!1,ce("editorReadonly","Whether the editor is read-only")),l.inDiffEditor=new va("inDiffEditor",!1,ce("inDiffEditor","Whether the context is a diff editor")),l.isEmbeddedDiffEditor=new va("isEmbeddedDiffEditor",!1,ce("isEmbeddedDiffEditor","Whether the context is an embedded diff editor")),l.inMultiDiffEditor=new va("inMultiDiffEditor",!1,ce("inMultiDiffEditor","Whether the context is a multi diff editor")),l.multiDiffEditorAllCollapsed=new va("multiDiffEditorAllCollapsed",void 0,ce("multiDiffEditorAllCollapsed","Whether all files in multi diff editor are collapsed")),l.hasChanges=new va("diffEditorHasChanges",!1,ce("diffEditorHasChanges","Whether the diff editor has changes")),l.comparingMovedCode=new va("comparingMovedCode",!1,ce("comparingMovedCode","Whether a moved code block is selected for comparison")),l.accessibleDiffViewerVisible=new va("accessibleDiffViewerVisible",!1,ce("accessibleDiffViewerVisible","Whether the accessible diff viewer is visible")),l.diffEditorRenderSideBySideInlineBreakpointReached=new va("diffEditorRenderSideBySideInlineBreakpointReached",!1,ce("diffEditorRenderSideBySideInlineBreakpointReached","Whether the diff editor render side by side inline breakpoint is reached")),l.diffEditorInlineMode=new va("diffEditorInlineMode",!1,ce("diffEditorInlineMode","Whether inline mode is active")),l.diffEditorOriginalWritable=new va("diffEditorOriginalWritable",!1,ce("diffEditorOriginalWritable","Whether modified is writable in the diff editor")),l.diffEditorModifiedWritable=new va("diffEditorModifiedWritable",!1,ce("diffEditorModifiedWritable","Whether modified is writable in the diff editor")),l.diffEditorOriginalUri=new va("diffEditorOriginalUri","",ce("diffEditorOriginalUri","The uri of the original document")),l.diffEditorModifiedUri=new va("diffEditorModifiedUri","",ce("diffEditorModifiedUri","The uri of the modified document")),l.columnSelection=new va("editorColumnSelection",!1,ce("editorColumnSelection","Whether `editor.columnSelection` is enabled")),l.writable=l.readOnly.toNegated(),l.hasNonEmptySelection=new va("editorHasSelection",!1,ce("editorHasSelection","Whether the editor has text selected")),l.hasOnlyEmptySelection=l.hasNonEmptySelection.toNegated(),l.hasMultipleSelections=new va("editorHasMultipleSelections",!1,ce("editorHasMultipleSelections","Whether the editor has multiple selections")),l.hasSingleSelection=l.hasMultipleSelections.toNegated(),l.tabMovesFocus=new va("editorTabMovesFocus",!1,ce("editorTabMovesFocus","Whether `Tab` will move focus out of the editor")),l.tabDoesNotMoveFocus=l.tabMovesFocus.toNegated(),l.isInEmbeddedEditor=new va("isInEmbeddedEditor",!1,!0),l.canUndo=new va("canUndo",!1,!0),l.canRedo=new va("canRedo",!1,!0),l.hoverVisible=new va("editorHoverVisible",!1,ce("editorHoverVisible","Whether the editor hover is visible")),l.hoverFocused=new va("editorHoverFocused",!1,ce("editorHoverFocused","Whether the editor hover is focused")),l.stickyScrollFocused=new va("stickyScrollFocused",!1,ce("stickyScrollFocused","Whether the sticky scroll is focused")),l.stickyScrollVisible=new va("stickyScrollVisible",!1,ce("stickyScrollVisible","Whether the sticky scroll is visible")),l.standaloneColorPickerVisible=new va("standaloneColorPickerVisible",!1,ce("standaloneColorPickerVisible","Whether the standalone color picker is visible")),l.standaloneColorPickerFocused=new va("standaloneColorPickerFocused",!1,ce("standaloneColorPickerFocused","Whether the standalone color picker is focused")),l.inCompositeEditor=new va("inCompositeEditor",void 0,ce("inCompositeEditor","Whether the editor is part of a larger editor (e.g. notebooks)")),l.notInCompositeEditor=l.inCompositeEditor.toNegated(),l.languageId=new va("editorLangId","",ce("editorLangId","The language identifier of the editor")),l.hasCompletionItemProvider=new va("editorHasCompletionItemProvider",!1,ce("editorHasCompletionItemProvider","Whether the editor has a completion item provider")),l.hasCodeActionsProvider=new va("editorHasCodeActionsProvider",!1,ce("editorHasCodeActionsProvider","Whether the editor has a code actions provider")),l.hasCodeLensProvider=new va("editorHasCodeLensProvider",!1,ce("editorHasCodeLensProvider","Whether the editor has a code lens provider")),l.hasDefinitionProvider=new va("editorHasDefinitionProvider",!1,ce("editorHasDefinitionProvider","Whether the editor has a definition provider")),l.hasDeclarationProvider=new va("editorHasDeclarationProvider",!1,ce("editorHasDeclarationProvider","Whether the editor has a declaration provider")),l.hasImplementationProvider=new va("editorHasImplementationProvider",!1,ce("editorHasImplementationProvider","Whether the editor has an implementation provider")),l.hasTypeDefinitionProvider=new va("editorHasTypeDefinitionProvider",!1,ce("editorHasTypeDefinitionProvider","Whether the editor has a type definition provider")),l.hasHoverProvider=new va("editorHasHoverProvider",!1,ce("editorHasHoverProvider","Whether the editor has a hover provider")),l.hasDocumentHighlightProvider=new va("editorHasDocumentHighlightProvider",!1,ce("editorHasDocumentHighlightProvider","Whether the editor has a document highlight provider")),l.hasDocumentSymbolProvider=new va("editorHasDocumentSymbolProvider",!1,ce("editorHasDocumentSymbolProvider","Whether the editor has a document symbol provider")),l.hasReferenceProvider=new va("editorHasReferenceProvider",!1,ce("editorHasReferenceProvider","Whether the editor has a reference provider")),l.hasRenameProvider=new va("editorHasRenameProvider",!1,ce("editorHasRenameProvider","Whether the editor has a rename provider")),l.hasSignatureHelpProvider=new va("editorHasSignatureHelpProvider",!1,ce("editorHasSignatureHelpProvider","Whether the editor has a signature help provider")),l.hasInlayHintsProvider=new va("editorHasInlayHintsProvider",!1,ce("editorHasInlayHintsProvider","Whether the editor has an inline hints provider")),l.hasDocumentFormattingProvider=new va("editorHasDocumentFormattingProvider",!1,ce("editorHasDocumentFormattingProvider","Whether the editor has a document formatting provider")),l.hasDocumentSelectionFormattingProvider=new va("editorHasDocumentSelectionFormattingProvider",!1,ce("editorHasDocumentSelectionFormattingProvider","Whether the editor has a document selection formatting provider")),l.hasMultipleDocumentFormattingProvider=new va("editorHasMultipleDocumentFormattingProvider",!1,ce("editorHasMultipleDocumentFormattingProvider","Whether the editor has multiple document formatting providers")),l.hasMultipleDocumentSelectionFormattingProvider=new va("editorHasMultipleDocumentSelectionFormattingProvider",!1,ce("editorHasMultipleDocumentSelectionFormattingProvider","Whether the editor has multiple document selection formatting providers"))})(Qi||(Qi={}))});function xHe(l,e){g2.registerKeybindingRule({id:l,primary:e,when:pBi,weight:Ng+1})}function WSi(l){return l.register(),l}function J6e(l,e){WSi(new t4t("default:"+l,l)),WSi(new t4t(l,l,e))}var Ng,zx,zP,SHe,Ldt,BD,pBi,MSe,t4t,Odt=ti(()=>{ya();ZF();Fh();gA();vf();IC();OSi();LV();WPt();VPt();e4t();Iu();Xa();$h();hd();ffe();nc();Ng=0,zx=class extends Xy{runEditorCommand(e,r,o){let c=r._getViewModel();c&&this.runCoreEditorCommand(c,o||{})}};(function(l){let e=function(o){if(!wT(o))return!1;let c=o;return!(!Fw(c.to)||!OI(c.by)&&!Fw(c.by)||!OI(c.value)&&!_B(c.value)||!OI(c.revealCursor)&&!nDt(c.revealCursor))};l.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 * 'to': A mandatory direction value.\n ```\n 'up', 'down'\n ```\n * 'by': Unit to move. Default is computed based on 'to' value.\n ```\n 'line', 'wrappedLine', 'page', 'halfPage', 'editor'\n ```\n * 'value': Number of units to move. Default is '1'.\n * 'revealCursor': If 'true' reveals the cursor if it is outside view port.\n ",constraint:e,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"}}}}]},l.RawDirection={Up:"up",Right:"right",Down:"down",Left:"left"},l.RawUnit={Line:"line",WrappedLine:"wrappedLine",Page:"page",HalfPage:"halfPage",Editor:"editor",Column:"column"};function r(o){let c;switch(o.to){case l.RawDirection.Up:c=1;break;case l.RawDirection.Right:c=2;break;case l.RawDirection.Down:c=3;break;case l.RawDirection.Left:c=4;break;default:return null}let d;switch(o.by){case l.RawUnit.Line:d=1;break;case l.RawUnit.WrappedLine:d=2;break;case l.RawUnit.Page:d=3;break;case l.RawUnit.HalfPage:d=4;break;case l.RawUnit.Editor:d=5;break;case l.RawUnit.Column:d=6;break;default:d=2}let h=Math.floor(o.value||1),b=!!o.revealCursor;return{direction:c,unit:d,value:h,revealCursor:b,select:!!o.select}}l.parse=r})(zP||(zP={}));(function(l){let e=function(r){if(!wT(r))return!1;let o=r;return!(!_B(o.lineNumber)&&!Fw(o.lineNumber)||!OI(o.at)&&!Fw(o.at))};l.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 * 'lineNumber': A mandatory line number value.\n * 'at': Logical position at which line has to be revealed.\n ```\n 'top', 'center', 'bottom'\n ```\n ",constraint:e,schema:{type:"object",required:["lineNumber"],properties:{lineNumber:{type:["number","string"]},at:{type:"string",enum:["top","center","bottom"]}}}}]},l.RawAtArgument={Top:"top",Center:"center",Bottom:"bottom"}})(SHe||(SHe={}));Ldt=class{constructor(e){e.addImplementation(1e4,"code-editor",(r,o)=>{let c=r.get(nf).getFocusedCodeEditor();return c&&c.hasTextFocus()?this._runEditorCommand(r,c,o):!1}),e.addImplementation(1e3,"generic-dom-input-textarea",(r,o)=>{let c=DC();return c&&["input","textarea"].indexOf(c.tagName.toLowerCase())>=0?(this.runDOMCommand(c),!0):!1}),e.addImplementation(0,"generic-dom",(r,o)=>{let c=r.get(nf).getActiveCodeEditor();return c?(c.focus(),this._runEditorCommand(r,c,o)):!1})}_runEditorCommand(e,r,o){let c=this.runEditorCommand(e,r,o);return c||!0}};(function(l){class e extends zx{constructor(Xe){super(Xe),this._inSelectionMode=Xe.inSelectionMode}runCoreEditorCommand(Xe,ct){if(!ct.position)return;Xe.model.pushStackElement(),Xe.setCursorStates(ct.source,3,[PT.moveTo(Xe,Xe.getPrimaryCursorState(),this._inSelectionMode,ct.position,ct.viewPosition)])&&ct.revealType!==2&&Xe.revealAllCursors(ct.source,!0,!0)}}l.MoveTo=Ra(new e({id:"_moveTo",inSelectionMode:!1,precondition:void 0})),l.MoveToSelect=Ra(new e({id:"_moveToSelect",inSelectionMode:!0,precondition:void 0}));class r extends zx{runCoreEditorCommand(Xe,ct){Xe.model.pushStackElement();let Ct=this._getColumnSelectResult(Xe,Xe.getPrimaryCursorState(),Xe.getCursorColumnSelectData(),ct);Ct!==null&&(Xe.setCursorStates(ct.source,3,Ct.viewStates.map(Nt=>tm.fromViewState(Nt))),Xe.setCursorColumnSelectData({isReal:!0,fromViewLineNumber:Ct.fromLineNumber,fromViewVisualColumn:Ct.fromVisualColumn,toViewLineNumber:Ct.toLineNumber,toViewVisualColumn:Ct.toVisualColumn}),Ct.reversed?Xe.revealTopMostCursor(ct.source):Xe.revealBottomMostCursor(ct.source))}}l.ColumnSelect=Ra(new class extends r{constructor(){super({id:"columnSelect",precondition:void 0})}_getColumnSelectResult(Je,Xe,ct,Ct){if(typeof Ct.position>"u"||typeof Ct.viewPosition>"u"||typeof Ct.mouseColumn>"u")return null;let Nt=Je.model.validatePosition(Ct.position),Yt=Je.coordinatesConverter.validateViewPosition(new qn(Ct.viewPosition.lineNumber,Ct.viewPosition.column),Nt),jt=Ct.doColumnSelect?ct.fromViewLineNumber:Yt.lineNumber,mi=Ct.doColumnSelect?ct.fromViewVisualColumn:Ct.mouseColumn-1;return OSe.columnSelect(Je.cursorConfig,Je,jt,mi,Yt.lineNumber,Ct.mouseColumn-1)}}),l.CursorColumnSelectLeft=Ra(new class extends r{constructor(){super({id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:Ng,kbExpr:Qi.textInputFocus,primary:3599,linux:{primary:0}}})}_getColumnSelectResult(Je,Xe,ct,Ct){return OSe.columnSelectLeft(Je.cursorConfig,Je,ct)}}),l.CursorColumnSelectRight=Ra(new class extends r{constructor(){super({id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:Ng,kbExpr:Qi.textInputFocus,primary:3601,linux:{primary:0}}})}_getColumnSelectResult(Je,Xe,ct,Ct){return OSe.columnSelectRight(Je.cursorConfig,Je,ct)}});class o extends r{constructor(Xe){super(Xe),this._isPaged=Xe.isPaged}_getColumnSelectResult(Xe,ct,Ct,Nt){return OSe.columnSelectUp(Xe.cursorConfig,Xe,Ct,this._isPaged)}}l.CursorColumnSelectUp=Ra(new o({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:Ng,kbExpr:Qi.textInputFocus,primary:3600,linux:{primary:0}}})),l.CursorColumnSelectPageUp=Ra(new o({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:Ng,kbExpr:Qi.textInputFocus,primary:3595,linux:{primary:0}}}));class c extends r{constructor(Xe){super(Xe),this._isPaged=Xe.isPaged}_getColumnSelectResult(Xe,ct,Ct,Nt){return OSe.columnSelectDown(Xe.cursorConfig,Xe,Ct,this._isPaged)}}l.CursorColumnSelectDown=Ra(new c({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:Ng,kbExpr:Qi.textInputFocus,primary:3602,linux:{primary:0}}})),l.CursorColumnSelectPageDown=Ra(new c({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:Ng,kbExpr:Qi.textInputFocus,primary:3596,linux:{primary:0}}}));class d extends zx{constructor(){super({id:"cursorMove",precondition:void 0,metadata:Idt.metadata})}runCoreEditorCommand(Xe,ct){let Ct=Idt.parse(ct);Ct&&this._runCursorMove(Xe,ct.source,Ct)}_runCursorMove(Xe,ct,Ct){Xe.model.pushStackElement(),Xe.setCursorStates(ct,3,d._move(Xe,Xe.getCursorStates(),Ct)),Xe.revealAllCursors(ct,!0)}static _move(Xe,ct,Ct){let Nt=Ct.select,Yt=Ct.value;switch(Ct.direction){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:return PT.simpleMove(Xe,ct,Ct.direction,Nt,Yt,Ct.unit);case 11:case 13:case 12:case 14:return PT.viewportMove(Xe,ct,Ct.direction,Nt,Yt);default:return null}}}l.CursorMoveImpl=d,l.CursorMove=Ra(new d);class h extends zx{constructor(Xe){super(Xe),this._staticArgs=Xe.args}runCoreEditorCommand(Xe,ct){let Ct=this._staticArgs;this._staticArgs.value===-1&&(Ct={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:ct.pageSize||Xe.cursorConfig.pageSize}),Xe.model.pushStackElement(),Xe.setCursorStates(ct.source,3,PT.simpleMove(Xe,Xe.getCursorStates(),Ct.direction,Ct.select,Ct.value,Ct.unit)),Xe.revealAllCursors(ct.source,!0)}}l.CursorLeft=Ra(new h({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:Ng,kbExpr:Qi.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),l.CursorLeftSelect=Ra(new h({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:Ng,kbExpr:Qi.textInputFocus,primary:1039}})),l.CursorRight=Ra(new h({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:Ng,kbExpr:Qi.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),l.CursorRightSelect=Ra(new h({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:Ng,kbExpr:Qi.textInputFocus,primary:1041}})),l.CursorUp=Ra(new h({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:Ng,kbExpr:Qi.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),l.CursorUpSelect=Ra(new h({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:Ng,kbExpr:Qi.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),l.CursorPageUp=Ra(new h({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:Ng,kbExpr:Qi.textInputFocus,primary:11}})),l.CursorPageUpSelect=Ra(new h({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:Ng,kbExpr:Qi.textInputFocus,primary:1035}})),l.CursorDown=Ra(new h({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:Ng,kbExpr:Qi.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),l.CursorDownSelect=Ra(new h({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:Ng,kbExpr:Qi.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),l.CursorPageDown=Ra(new h({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:Ng,kbExpr:Qi.textInputFocus,primary:12}})),l.CursorPageDownSelect=Ra(new h({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:Ng,kbExpr:Qi.textInputFocus,primary:1036}})),l.CreateCursor=Ra(new class extends zx{constructor(){super({id:"createCursor",precondition:void 0})}runCoreEditorCommand(Je,Xe){if(!Xe.position)return;let ct;Xe.wholeLine?ct=PT.line(Je,Je.getPrimaryCursorState(),!1,Xe.position,Xe.viewPosition):ct=PT.moveTo(Je,Je.getPrimaryCursorState(),!1,Xe.position,Xe.viewPosition);let Ct=Je.getCursorStates();if(Ct.length>1){let Nt=ct.modelState?ct.modelState.position:null,Yt=ct.viewState?ct.viewState.position:null;for(let jt=0,mi=Ct.length;jtYt&&(Nt=Yt);let jt=new Zt(Nt,1,Nt,Je.model.getLineMaxColumn(Nt)),mi=0;if(ct.at)switch(ct.at){case SHe.RawAtArgument.Top:mi=3;break;case SHe.RawAtArgument.Center:mi=1;break;case SHe.RawAtArgument.Bottom:mi=4;break;default:break}let _n=Je.coordinatesConverter.convertModelRangeToViewRange(jt);Je.revealRange(Xe.source,!1,_n,mi,0)}}),l.SelectAll=new class extends Ldt{constructor(){super(nyi)}runDOMCommand(Je){AD&&(Je.focus(),Je.select()),Je.ownerDocument.execCommand("selectAll")}runEditorCommand(Je,Xe,ct){let Ct=Xe._getViewModel();Ct&&this.runCoreEditorCommand(Ct,ct)}runCoreEditorCommand(Je,Xe){Je.model.pushStackElement(),Je.setCursorStates("keyboard",3,[PT.selectAll(Je,Je.getPrimaryCursorState())])}},l.SetSelection=Ra(new class extends zx{constructor(){super({id:"setSelection",precondition:void 0})}runCoreEditorCommand(Je,Xe){Xe.selection&&(Je.model.pushStackElement(),Je.setCursorStates(Xe.source,3,[tm.fromModelSelection(Xe.selection)]))}})})(BD||(BD={}));pBi=Ao.and(Qi.textInputFocus,Qi.columnSelection);xHe(BD.CursorColumnSelectLeft.id,1039);xHe(BD.CursorColumnSelectRight.id,1041);xHe(BD.CursorColumnSelectUp.id,1040);xHe(BD.CursorColumnSelectPageUp.id,1035);xHe(BD.CursorColumnSelectDown.id,1042);xHe(BD.CursorColumnSelectPageDown.id,1036);(function(l){class e extends Xy{runEditorCommand(o,c,d){let h=c._getViewModel();h&&this.runCoreEditingCommand(c,h,d||{})}}l.CoreEditingCommand=e,l.LineBreakInsert=Ra(new class extends e{constructor(){super({id:"lineBreakInsert",precondition:Qi.writable,kbOpts:{weight:Ng,kbExpr:Qi.textInputFocus,primary:0,mac:{primary:301}}})}runCoreEditingCommand(r,o,c){r.pushUndoStop(),r.executeCommands(this.id,l7.lineBreakInsert(o.cursorConfig,o.model,o.getCursorStates().map(d=>d.modelState.selection)))}}),l.Outdent=Ra(new class extends e{constructor(){super({id:"outdent",precondition:Qi.writable,kbOpts:{weight:Ng,kbExpr:Ao.and(Qi.editorTextFocus,Qi.tabDoesNotMoveFocus),primary:1026}})}runCoreEditingCommand(r,o,c){r.pushUndoStop(),r.executeCommands(this.id,l7.outdent(o.cursorConfig,o.model,o.getCursorStates().map(d=>d.modelState.selection))),r.pushUndoStop()}}),l.Tab=Ra(new class extends e{constructor(){super({id:"tab",precondition:Qi.writable,kbOpts:{weight:Ng,kbExpr:Ao.and(Qi.editorTextFocus,Qi.tabDoesNotMoveFocus),primary:2}})}runCoreEditingCommand(r,o,c){r.pushUndoStop(),r.executeCommands(this.id,l7.tab(o.cursorConfig,o.model,o.getCursorStates().map(d=>d.modelState.selection))),r.pushUndoStop()}}),l.DeleteLeft=Ra(new class extends e{constructor(){super({id:"deleteLeft",precondition:void 0,kbOpts:{weight:Ng,kbExpr:Qi.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})}runCoreEditingCommand(r,o,c){let[d,h]=Pfe.deleteLeft(o.getPrevEditOperationType(),o.cursorConfig,o.model,o.getCursorStates().map(b=>b.modelState.selection),o.getCursorAutoClosedCharacters());d&&r.pushUndoStop(),r.executeCommands(this.id,h),o.setPrevEditOperationType(2)}}),l.DeleteRight=Ra(new class extends e{constructor(){super({id:"deleteRight",precondition:void 0,kbOpts:{weight:Ng,kbExpr:Qi.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})}runCoreEditingCommand(r,o,c){let[d,h]=Pfe.deleteRight(o.getPrevEditOperationType(),o.cursorConfig,o.model,o.getCursorStates().map(b=>b.modelState.selection));d&&r.pushUndoStop(),r.executeCommands(this.id,h),o.setPrevEditOperationType(3)}}),l.Undo=new class extends Ldt{constructor(){super(uZt)}runDOMCommand(r){r.ownerDocument.execCommand("undo")}runEditorCommand(r,o,c){if(!(!o.hasModel()||o.getOption(91)===!0))return o.getModel().undo()}},l.Redo=new class extends Ldt{constructor(){super(dZt)}runDOMCommand(r){r.ownerDocument.execCommand("redo")}runEditorCommand(r,o,c){if(!(!o.hasModel()||o.getOption(91)===!0))return o.getModel().redo()}}})(MSe||(MSe={}));t4t=class extends t6e{constructor(e,r,o){super({id:e,precondition:void 0,metadata:o}),this._handlerId=r}runCommand(e,r){let o=e.get(nf).getFocusedCodeEditor();o&&o.trigger("keyboard",this._handlerId,r)}};J6e("type",{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]});J6e("replacePreviousChar");J6e("compositionType");J6e("compositionStart");J6e("compositionEnd");J6e("paste");J6e("cut")});var i4t,zSi=ti(()=>{Odt();Iu();X_();i4t=class{constructor(e,r,o,c){this.configuration=e,this.viewModel=r,this.userInputEvents=o,this.commandDelegate=c}paste(e,r,o,c){this.commandDelegate.paste(e,r,o,c)}type(e){this.commandDelegate.type(e)}compositionType(e,r,o,c){this.commandDelegate.compositionType(e,r,o,c)}compositionStart(){this.commandDelegate.startComposition()}compositionEnd(){this.commandDelegate.endComposition()}cut(){this.commandDelegate.cut()}setSelection(e){BD.SetSelection.runCoreEditorCommand(this.viewModel,{source:"keyboard",selection:e})}_validateViewColumn(e){let r=this.viewModel.getLineMinColumn(e.lineNumber);return e.column=4?this._selectAll():e.mouseDownCount===3?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):e.mouseDownCount===2?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?this._columnSelect(e.position,e.mouseColumn,!0):c?this._columnSelect(e.position,e.mouseColumn,!0):this._moveToSelect(e.position,e.revealType):this.moveTo(e.position,e.revealType)}_usualArgs(e,r){return e=this._validateViewColumn(e),{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,revealType:r}}moveTo(e,r){BD.MoveTo.runCoreEditorCommand(this.viewModel,this._usualArgs(e,r))}_moveToSelect(e,r){BD.MoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,r))}_columnSelect(e,r,o){e=this._validateViewColumn(e),BD.ColumnSelect.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,mouseColumn:r,doColumnSelect:o})}_createCursor(e,r){e=this._validateViewColumn(e),BD.CreateCursor.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,wholeLine:r})}_lastCursorMoveToSelect(e,r){BD.LastCursorMoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,r))}_wordSelect(e,r){BD.WordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,r))}_wordSelectDrag(e,r){BD.WordSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e,r))}_lastCursorWordSelect(e,r){BD.LastCursorWordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,r))}_lineSelect(e,r){BD.LineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,r))}_lineSelectDrag(e,r){BD.LineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e,r))}_lastCursorLineSelect(e,r){BD.LastCursorLineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,r))}_lastCursorLineSelectDrag(e,r){BD.LastCursorLineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e,r))}_selectAll(){BD.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 Fdt,CHe,Mdt,n4t=ti(()=>{SE();Bne();Du();pfe();Fdt=class{constructor(e){this._createLine=e,this._set(1,[])}flush(){this._set(1,[])}_set(e,r){this._lines=r,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){let r=e-this._rendLineNumberStart;if(r<0||r>=this._lines.length)throw new Hp("Illegal value for lineNumber");return this._lines[r]}onLinesDeleted(e,r){if(this.getCount()===0)return null;let o=this.getStartLineNumber(),c=this.getEndLineNumber();if(rc)return null;let d=0,h=0;for(let w=o;w<=c;w++){let N=w-this._rendLineNumberStart;e<=w&&w<=r&&(h===0?(d=N,h=1):h++)}if(e=c&&b<=d&&(this._lines[b-this._rendLineNumberStart].onContentChanged(),h=!0);return h}onLinesInserted(e,r){if(this.getCount()===0)return null;let o=r-e+1,c=this.getStartLineNumber(),d=this.getEndLineNumber();if(e<=c)return this._rendLineNumberStart+=o,null;if(e>d)return null;if(o+e>d)return this._lines.splice(e-this._rendLineNumberStart,d-e+1);let h=[];for(let B=0;Bo)continue;let w=Math.max(r,b.fromLineNumber),N=Math.min(o,b.toLineNumber);for(let L=w;L<=N;L++){let B=L-this._rendLineNumberStart;this._lines[B].onTokensChanged(),c=!0}}return c}},CHe=class{constructor(e){this._host=e,this.domNode=this._createDomNode(),this._linesCollection=new Fdt(()=>this._host.createVisibleLine())}_createDomNode(){let e=V_(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(145)}onFlushed(e){return this._linesCollection.flush(),!0}onLinesChanged(e){return this._linesCollection.onLinesChanged(e.fromLineNumber,e.count)}onLinesDeleted(e){let r=this._linesCollection.onLinesDeleted(e.fromLineNumber,e.toLineNumber);if(r)for(let o=0,c=r.length;or){let h=r,b=Math.min(o,d.rendLineNumberStart-1);h<=b&&(this._insertLinesBefore(d,h,b,c,r),d.linesLength+=b-h+1)}else if(d.rendLineNumberStart0&&(this._removeLinesBefore(d,h),d.linesLength-=h)}if(d.rendLineNumberStart=r,d.rendLineNumberStart+d.linesLength-1o){let h=Math.max(0,o-d.rendLineNumberStart+1),w=d.linesLength-1-h+1;w>0&&(this._removeLinesAfter(d,w),d.linesLength-=w)}return this._finishRendering(d,!1,c),d}_renderUntouchedLines(e,r,o,c,d){let h=e.rendLineNumberStart,b=e.lines;for(let w=r;w<=o;w++){let N=h+w;b[w].layoutLine(N,c[N-d],this.viewportData.lineHeight)}}_insertLinesBefore(e,r,o,c,d){let h=[],b=0;for(let w=r;w<=o;w++)h[b++]=this.host.createVisibleLine();e.lines=h.concat(e.lines)}_removeLinesBefore(e,r){for(let o=0;o=0;b--){let w=e.lines[b];c[b]&&(w.setDomNode(h),h=h.previousSibling)}}_finishRenderingInvalidLines(e,r,o){let c=document.createElement("div");l._ttPolicy&&(r=l._ttPolicy.createHTML(r)),c.innerHTML=r;for(let d=0;dl});Mdt._sb=new kB(1e5)});var r4t,Oti,o4t,s4t,VSi=ti(()=>{SE();xB();n4t();l3();r4t=class extends ox{constructor(e){super(e),this._visibleLines=new CHe(this),this.domNode=this._visibleLines.domNode;let o=this._context.configuration.options.get(50);Bb(this.domNode,o),this._dynamicOverlays=[],this._isFocused=!1,this.domNode.setClassName("view-overlays")}shouldRender(){if(super.shouldRender())return!0;for(let e=0,r=this._dynamicOverlays.length;eo.shouldRender());for(let o=0,c=r.length;o'),d.appendString(h),d.appendString(""),!0)}layoutLine(e,r,o){this._domNode&&(this._domNode.setTop(r),this._domNode.setHeight(o))}},o4t=class extends r4t{constructor(e){super(e);let o=this._context.configuration.options.get(145);this._contentWidth=o.contentWidth,this.domNode.setHeight(0)}onConfigurationChanged(e){let o=this._context.configuration.options.get(145);return this._contentWidth=o.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))}},s4t=class extends r4t{constructor(e){super(e);let r=this._context.configuration.options,o=r.get(145);this._contentLeft=o.contentLeft,this.domNode.setClassName("margin-view-overlays"),this.domNode.setWidth(1),Bb(this.domNode,r.get(50))}onConfigurationChanged(e){let r=this._context.configuration.options;Bb(this.domNode,r.get(50));let o=r.get(145);return this._contentLeft=o.contentLeft,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollHeightChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e);let r=Math.min(e.scrollHeight,1e6);this.domNode.setHeight(r),this.domNode.setWidth(this._contentLeft)}}});var kHe,Fti=ti(()=>{Iu();kHe=class l{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){var r;(r=this.onKeyDown)===null||r===void 0||r.call(this,e)}emitKeyUp(e){var r;(r=this.onKeyUp)===null||r===void 0||r.call(this,e)}emitContextMenu(e){var r;(r=this.onContextMenu)===null||r===void 0||r.call(this,this._convertViewToModelMouseEvent(e))}emitMouseMove(e){var r;(r=this.onMouseMove)===null||r===void 0||r.call(this,this._convertViewToModelMouseEvent(e))}emitMouseLeave(e){var r;(r=this.onMouseLeave)===null||r===void 0||r.call(this,this._convertViewToModelMouseEvent(e))}emitMouseDown(e){var r;(r=this.onMouseDown)===null||r===void 0||r.call(this,this._convertViewToModelMouseEvent(e))}emitMouseUp(e){var r;(r=this.onMouseUp)===null||r===void 0||r.call(this,this._convertViewToModelMouseEvent(e))}emitMouseDrag(e){var r;(r=this.onMouseDrag)===null||r===void 0||r.call(this,this._convertViewToModelMouseEvent(e))}emitMouseDrop(e){var r;(r=this.onMouseDrop)===null||r===void 0||r.call(this,this._convertViewToModelMouseEvent(e))}emitMouseDropCanceled(){var e;(e=this.onMouseDropCanceled)===null||e===void 0||e.call(this)}emitMouseWheel(e){var r;(r=this.onMouseWheel)===null||r===void 0||r.call(this,e)}_convertViewToModelMouseEvent(e){return e.target?{event:e.event,target:this._convertViewToModelMouseTarget(e.target)}:e}_convertViewToModelMouseTarget(e){return l.convertViewToModelMouseTarget(e,this._coordinatesConverter)}static convertViewToModelMouseTarget(e,r){let o={...e};return o.position&&(o.position=r.convertViewPositionToModelPosition(o.position)),o.range&&(o.range=r.convertViewRangeToModelRange(o.range)),(o.type===5||o.type===8)&&(o.detail=this.convertViewToModelViewZoneData(o.detail,r)),o}static convertViewToModelViewZoneData(e,r){return{viewZoneId:e.viewZoneId,positionBefore:e.positionBefore?r.convertViewPositionToModelPosition(e.positionBefore):e.positionBefore,positionAfter:e.positionAfter?r.convertViewPositionToModelPosition(e.positionAfter):e.positionAfter,position:r.convertViewPositionToModelPosition(e.position),afterLineNumber:r.convertViewPositionToModelPosition(new qn(e.afterLineNumber,1)).lineNumber}}}});var HSi=ti(()=>{});var a4t,USi=ti(()=>{SE();HSi();l3();a4t=class extends ox{constructor(e){super(e),this.blocks=[],this.contentWidth=-1,this.contentLeft=0,this.domNode=V_(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,o=this._context.configuration.options.get(145),c=o.contentWidth-o.verticalScrollbarWidth;this.contentWidth!==c&&(this.contentWidth=c,e=!0);let d=o.contentLeft;return this.contentLeft!==d&&(this.contentLeft=d,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){var r;let o=0,c=e.getDecorationsInViewport();for(let d of c){if(!d.options.blockClassName)continue;let h=this.blocks[o];h||(h=this.blocks[o]=V_(document.createElement("div")),this.domNode.appendChild(h));let b,w;d.options.blockIsAfterEnd?(b=e.getVerticalOffsetAfterLineNumber(d.range.endLineNumber,!1),w=e.getVerticalOffsetAfterLineNumber(d.range.endLineNumber,!0)):(b=e.getVerticalOffsetForLineNumber(d.range.startLineNumber,!0),w=d.range.isEmpty()&&!d.options.blockDoesNotCollapse?e.getVerticalOffsetForLineNumber(d.range.startLineNumber,!1):e.getVerticalOffsetAfterLineNumber(d.range.endLineNumber,!0));let[N,L,B,F]=(r=d.options.blockPadding)!==null&&r!==void 0?r:[0,0,0,0];h.setClassName("blockDecorations-block "+d.options.blockClassName),h.setLeft(this.contentLeft-F),h.setWidth(this.contentWidth+F+L),h.setTop(b-e.scrollTop-N),h.setHeight(w-b+N+B),o++}for(let d=o;d{nc();SE();l3();c4t=class extends ox{constructor(e,r){super(e),this._viewDomNode=r,this._widgets={},this.domNode=V_(document.createElement("div")),yA.write(this.domNode,1),this.domNode.setClassName("contentWidgets"),this.domNode.setPosition("absolute"),this.domNode.setTop(0),this.overflowingContentWidgetsDomNode=V_(document.createElement("div")),yA.write(this.overflowingContentWidgetsDomNode,2),this.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets")}dispose(){super.dispose(),this._widgets={}}onConfigurationChanged(e){let r=Object.keys(this._widgets);for(let o of r)this._widgets[o].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(){let e=Object.keys(this._widgets);for(let r of e)this._widgets[r].updateAnchorViewPosition()}addWidget(e){let r=new Rti(this._context,this._viewDomNode,e);this._widgets[r.id]=r,r.allowEditorOverflow?this.overflowingContentWidgetsDomNode.appendChild(r.domNode):this.domNode.appendChild(r.domNode),this.setShouldRender()}setWidgetPosition(e,r,o,c,d){this._widgets[e.getId()].setPosition(r,o,c,d),this.setShouldRender()}removeWidget(e){let r=e.getId();if(this._widgets.hasOwnProperty(r)){let o=this._widgets[r];delete this._widgets[r];let c=o.domNode.domNode;c.parentNode.removeChild(c),c.removeAttribute("monaco-visible-content-widget"),this.setShouldRender()}}shouldSuppressMouseDownOnWidget(e){return this._widgets.hasOwnProperty(e)?this._widgets[e].suppressMouseDown:!1}onBeforeRender(e){let r=Object.keys(this._widgets);for(let o of r)this._widgets[o].onBeforeRender(e)}prepareRender(e){let r=Object.keys(this._widgets);for(let o of r)this._widgets[o].prepareRender(e)}render(e){let r=Object.keys(this._widgets);for(let o of r)this._widgets[o].render(e)}},Rti=class{constructor(e,r,o){this._primaryAnchor=new q6e(null,null),this._secondaryAnchor=new q6e(null,null),this._context=e,this._viewDomNode=r,this._actual=o,this.domNode=V_(this._actual.getDomNode()),this.id=this._actual.getId(),this.allowEditorOverflow=this._actual.allowEditorOverflow||!1,this.suppressMouseDown=this._actual.suppressMouseDown||!1;let c=this._context.configuration.options,d=c.get(145);this._fixedOverflowWidgets=c.get(42),this._contentWidth=d.contentWidth,this._contentLeft=d.contentLeft,this._lineHeight=c.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){let r=this._context.configuration.options;if(this._lineHeight=r.get(67),e.hasChanged(145)){let o=r.get(145);this._contentLeft=o.contentLeft,this._contentWidth=o.contentWidth,this._maxWidth=this._getMaxWidth()}}updateAnchorViewPosition(){this._setPosition(this._affinity,this._primaryAnchor.modelPosition,this._secondaryAnchor.modelPosition)}_setPosition(e,r,o){this._affinity=e,this._primaryAnchor=c(r,this._context.viewModel,this._affinity),this._secondaryAnchor=c(o,this._context.viewModel,this._affinity);function c(d,h,b){if(!d)return new q6e(null,null);let w=h.model.validatePosition(d);if(h.coordinatesConverter.modelPositionIsVisible(w)){let N=h.coordinatesConverter.convertModelPositionToViewPosition(w,b??void 0);return new q6e(d,N)}return new q6e(d,null)}}_getMaxWidth(){let e=this.domNode.domNode.ownerDocument,r=e.defaultView;return this.allowEditorOverflow?r?.innerWidth||e.documentElement.offsetWidth||e.body.offsetWidth:this._contentWidth}setPosition(e,r,o,c){this._setPosition(c,e,r),this._preference=o,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,r,o,c){let d=e.top,h=d,b=e.top+e.height,w=c.viewportHeight-b,N=d-o,L=h>=o,B=b,F=w>=o,Y=e.left;return Y+r>c.scrollLeft+c.viewportWidth&&(Y=c.scrollLeft+c.viewportWidth-r),YN){let Y=F-(N-c);F-=Y,o-=Y}if(F=Je,Ct=Y+o<=Z.height-Xe;return this._fixedOverflowWidgets?{fitsAbove:ct,aboveTop:Math.max(F,Je),fitsBelow:Ct,belowTop:Y,left:Te}:{fitsAbove:ct,aboveTop:b,fitsBelow:Ct,belowTop:w,left:ee}}_prepareRenderWidgetAtExactPositionOverflowing(e){return new $6e(e.top,e.left+this._contentLeft)}_getAnchorsCoordinates(e){var r,o;let c=b(this._primaryAnchor.viewPosition,this._affinity,this._lineHeight),d=((r=this._secondaryAnchor.viewPosition)===null||r===void 0?void 0:r.lineNumber)===((o=this._primaryAnchor.viewPosition)===null||o===void 0?void 0:o.lineNumber)?this._secondaryAnchor.viewPosition:null,h=b(d,this._affinity,this._lineHeight);return{primary:c,secondary:h};function b(w,N,L){if(!w)return null;let B=e.visibleRangeForPosition(w);if(!B)return null;let F=w.column===1&&N===3?0:B.left,Y=e.getVerticalOffsetForLineNumber(w.lineNumber)-e.scrollTop;return new l4t(Y,F,L)}}_reduceAnchorCoordinates(e,r,o){if(!r)return e;let c=this._context.configuration.options.get(50),d=r.left;return de.endLineNumber||this.domNode.setMaxWidth(this._maxWidth)}prepareRender(e){this._renderData=this._prepareRenderWidget(e)}render(e){var r;if(!this._renderData||this._renderData.kind==="offViewport"){this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,((r=this._renderData)===null||r===void 0?void 0:r.kind)==="offViewport"&&this._renderData.preserveFocus?this.domNode.setTop(-1e3):this.domNode.setVisibility("hidden")),typeof this._actual.afterRender=="function"&&Mti(this._actual.afterRender,this._actual,null);return}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),typeof this._actual.afterRender=="function"&&Mti(this._actual.afterRender,this._actual,this._renderData.position)}},q6e=class{constructor(e,r){this.modelPosition=e,this.viewPosition=r}},$6e=class{constructor(e,r){this.top=e,this.left=r,this._coordinateBrand=void 0}},l4t=class{constructor(e,r,o){this.top=e,this.left=r,this.height=o,this._anchorCoordinateBrand=void 0}}});var qSi=ti(()=>{});var u4t,d4t,f4t,$Si=ti(()=>{qSi();PSe();PV();sd();x0();j0();Zq();Iu();u4t=class extends c7{constructor(e){super(),this._context=e;let r=this._context.configuration.options,o=r.get(145);this._renderLineHighlight=r.get(96),this._renderLineHighlightOnlyWhenFocus=r.get(97),this._wordWrap=o.isViewportWrapping,this._contentLeft=o.contentLeft,this._contentWidth=o.contentWidth,this._selectionIsEmpty=!0,this._focused=!1,this._cursorLineNumbers=[1],this._selections=[new ic(1,1,1,1)],this._renderData=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}_readFromSelections(){let e=!1,r=new Set;for(let d of this._selections)r.add(d.positionLineNumber);let o=Array.from(r);o.sort((d,h)=>d-h),Jm(this._cursorLineNumbers,o)||(this._cursorLineNumbers=o,e=!0);let c=this._selections.every(d=>d.isEmpty());return this._selectionIsEmpty!==c&&(this._selectionIsEmpty=c,e=!0),e}onThemeChanged(e){return this._readFromSelections()}onConfigurationChanged(e){let r=this._context.configuration.options,o=r.get(145);return this._renderLineHighlight=r.get(96),this._renderLineHighlightOnlyWhenFocus=r.get(97),this._wordWrap=o.isViewportWrapping,this._contentLeft=o.contentLeft,this._contentWidth=o.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):!1}prepareRender(e){if(!this._shouldRenderThis()){this._renderData=null;return}let r=e.visibleRange.startLineNumber,o=e.visibleRange.endLineNumber,c=[];for(let h=r;h<=o;h++){let b=h-r;c[b]=""}if(this._wordWrap){let h=this._renderOne(e,!1);for(let b of this._cursorLineNumbers){let w=this._context.viewModel.coordinatesConverter,N=w.convertViewPositionToModelPosition(new qn(b,1)).lineNumber,L=w.convertModelPositionToViewPosition(new qn(N,1)).lineNumber,B=w.convertModelPositionToViewPosition(new qn(N,this._context.viewModel.model.getLineMaxColumn(N))).lineNumber,F=Math.max(L,r),Y=Math.min(B,o);for(let Z=F;Z<=Y;Z++){let ee=Z-r;c[ee]=h}}}let d=this._renderOne(e,!0);for(let h of this._cursorLineNumbers){if(ho)continue;let b=h-r;c[b]=d}this._renderData=c}render(e,r){if(!this._renderData)return"";let o=r-e;return o>=this._renderData.length?"":this._renderData[o]}_shouldRenderInMargin(){return(this._renderLineHighlight==="gutter"||this._renderLineHighlight==="all")&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}_shouldRenderInContent(){return(this._renderLineHighlight==="line"||this._renderLineHighlight==="all")&&this._selectionIsEmpty&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}},d4t=class extends u4t{_renderOne(e,r){return`
`}_shouldRenderThis(){return this._shouldRenderInContent()}_shouldRenderOther(){return this._shouldRenderInMargin()}},f4t=class extends u4t{_renderOne(e,r){return`
`}_shouldRenderThis(){return!0}_shouldRenderOther(){return this._shouldRenderInContent()}};AT((l,e)=>{let r=l.getColor(xti);if(r&&(e.addRule(`.monaco-editor .view-overlays .current-line { background-color: ${r}; }`),e.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { background-color: ${r}; border: none; }`)),!r||r.isTransparent()||l.defines(Cti)){let o=l.getColor(Cti);o&&(e.addRule(`.monaco-editor .view-overlays .current-line-exact { border: 2px solid ${o}; }`),e.addRule(`.monaco-editor .margin-view-overlays .current-line-exact-margin { border: 2px solid ${o}; }`),T6(l.type)&&(e.addRule(".monaco-editor .view-overlays .current-line-exact { border-width: 1px; }"),e.addRule(".monaco-editor .margin-view-overlays .current-line-exact-margin { border-width: 1px; }")))}})});var GSi=ti(()=>{});var _4t,KSi=ti(()=>{GSi();PSe();dHe();Xa();_4t=class extends c7{constructor(e){super(),this._context=e;let r=this._context.configuration.options;this._typicalHalfwidthCharacterWidth=r.get(50).typicalHalfwidthCharacterWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){let r=this._context.configuration.options;return this._typicalHalfwidthCharacterWidth=r.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){let r=e.getDecorationsInViewport(),o=[],c=0;for(let w=0,N=r.length;w{if(w.options.zIndexN.options.zIndex)return 1;let L=w.options.className,B=N.options.className;return LB?1:Zt.compareRangesUsingStarts(w.range,N.range)});let d=e.visibleRange.startLineNumber,h=e.visibleRange.endLineNumber,b=[];for(let w=d;w<=h;w++){let N=w-d;b[N]=""}this._renderWholeLineDecorations(e,o,b),this._renderNormalDecorations(e,o,b),this._renderResult=b}_renderWholeLineDecorations(e,r,o){let c=e.visibleRange.startLineNumber,d=e.visibleRange.endLineNumber;for(let h=0,b=r.length;h',L=Math.max(w.range.startLineNumber,c),B=Math.min(w.range.endLineNumber,d);for(let F=L;F<=B;F++){let Y=F-c;o[Y]+=N}}}_renderNormalDecorations(e,r,o){var c;let d=e.visibleRange.startLineNumber,h=null,b=!1,w=null,N=!1;for(let L=0,B=r.length;L';b[F]+=Je}}}render(e,r){if(!this._renderResult)return"";let o=r-e;return o<0||o>=this._renderResult.length?"":this._renderResult[o]}}});var p4t,XSi=ti(()=>{nc();SE();AV();l3();x0();p4t=class extends ox{constructor(e,r,o,c){super(e);let d=this._context.configuration.options,h=d.get(103),b=d.get(75),w=d.get(40),N=d.get(106),L={listenOnDomNode:o.domNode,className:"editor-scrollable "+Tdt(e.theme.type),useShadows:!1,lazyRender:!0,vertical:h.vertical,horizontal:h.horizontal,verticalHasArrows:h.verticalHasArrows,horizontalHasArrows:h.horizontalHasArrows,verticalScrollbarSize:h.verticalScrollbarSize,verticalSliderSize:h.verticalSliderSize,horizontalScrollbarSize:h.horizontalScrollbarSize,horizontalSliderSize:h.horizontalSliderSize,handleMouseWheel:h.handleMouseWheel,alwaysConsumeMouseWheel:h.alwaysConsumeMouseWheel,arrowSize:h.arrowSize,mouseWheelScrollSensitivity:b,fastScrollSensitivity:w,scrollPredominantAxis:N,scrollByPage:h.scrollByPage};this.scrollbar=this._register(new ire(r.domNode,L,this._context.viewLayout.getScrollable())),yA.write(this.scrollbar.getDomNode(),6),this.scrollbarDomNode=V_(this.scrollbar.getDomNode()),this.scrollbarDomNode.setPosition("absolute"),this._setLayout();let B=(F,Y,Z)=>{let ee={};if(Y){let Te=F.scrollTop;Te&&(ee.scrollTop=this._context.viewLayout.getCurrentScrollTop()+Te,F.scrollTop=0)}if(Z){let Te=F.scrollLeft;Te&&(ee.scrollLeft=this._context.viewLayout.getCurrentScrollLeft()+Te,F.scrollLeft=0)}this._context.viewModel.viewLayout.setScrollPosition(ee,1)};this._register(Jr(o.domNode,"scroll",F=>B(o.domNode,!0,!0))),this._register(Jr(r.domNode,"scroll",F=>B(r.domNode,!0,!1))),this._register(Jr(c.domNode,"scroll",F=>B(c.domNode,!0,!1))),this._register(Jr(this.scrollbarDomNode.domNode,"scroll",F=>B(this.scrollbarDomNode.domNode,!0,!1)))}dispose(){super.dispose()}_setLayout(){let e=this._context.configuration.options,r=e.get(145);this.scrollbarDomNode.setLeft(r.contentLeft),e.get(73).side==="right"?this.scrollbarDomNode.setWidth(r.contentWidth+r.minimap.minimapWidth):this.scrollbarDomNode.setWidth(r.contentWidth),this.scrollbarDomNode.setHeight(r.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(103)||e.hasChanged(75)||e.hasChanged(40)){let r=this._context.configuration.options,o=r.get(103),c=r.get(75),d=r.get(40),h=r.get(106),b={vertical:o.vertical,horizontal:o.horizontal,verticalScrollbarSize:o.verticalScrollbarSize,horizontalScrollbarSize:o.horizontalScrollbarSize,scrollByPage:o.scrollByPage,handleMouseWheel:o.handleMouseWheel,mouseWheelScrollSensitivity:c,fastScrollSensitivity:d,scrollPredominantAxis:h};this.scrollbar.updateOptions(b)}return e.hasChanged(145)&&this._setLayout(),!0}onScrollChanged(e){return!0}onThemeChanged(e){return this.scrollbar.updateClassName("editor-scrollable "+Tdt(this._context.theme.type)),!0}prepareRender(e){}render(e){this.scrollbar.renderNow()}}});var YSi=ti(()=>{});var G6e,Bti,jti,wHe,m4t,Wti,zti,Vti,h4t=ti(()=>{SE();sd();YSi();PSe();l3();Iu();Xa();MD();G6e=class{constructor(e,r,o,c,d){this.startLineNumber=e,this.endLineNumber=r,this.className=o,this.tooltip=c,this._decorationToRenderBrand=void 0,this.zIndex=d??0}},Bti=class{constructor(e,r,o){this.className=e,this.zIndex=r,this.tooltip=o}},jti=class{constructor(){this.decorations=[]}add(e){this.decorations.push(e)}getDecorations(){return this.decorations}},wHe=class extends c7{_render(e,r,o){let c=[];for(let b=e;b<=r;b++){let w=b-e;c[w]=new jti}if(o.length===0)return c;o.sort((b,w)=>b.className===w.className?b.startLineNumber===w.startLineNumber?b.endLineNumber-w.endLineNumber:b.startLineNumber-w.startLineNumber:b.classNamec)continue;let N=Math.max(b,o),L=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new qn(N,0)),B=this._context.viewModel.glyphLanes.getLanesAtLine(L.lineNumber).indexOf(d.preference.lane);r.push(new zti(N,B,d.preference.zIndex,d))}}_collectSortedGlyphRenderRequests(e){let r=[];return this._collectDecorationBasedGlyphRenderRequest(e,r),this._collectWidgetBasedGlyphRenderRequest(e,r),r.sort((o,c)=>o.lineNumber===c.lineNumber?o.laneIndex===c.laneIndex?o.zIndex===c.zIndex?c.type===o.type?o.type===0&&c.type===0?o.className0;){let c=r.peek();if(!c)break;let d=r.takeWhile(b=>b.lineNumber===c.lineNumber&&b.laneIndex===c.laneIndex);if(!d||d.length===0)break;let h=d[0];if(h.type===0){let b=[];for(let w of d){if(w.zIndex!==h.zIndex||w.type!==h.type)break;(b.length===0||b[b.length-1]!==w.className)&&b.push(w.className)}o.push(h.accept(b.join(" ")))}else h.widget.renderInfo={lineNumber:h.lineNumber,laneIndex:h.laneIndex}}this._decorationGlyphsToRender=o}render(e){if(!this._glyphMargin){for(let o of Object.values(this._widgets))o.domNode.setDisplay("none");for(;this._managedDomNodes.length>0;){let o=this._managedDomNodes.pop();o?.domNode.remove()}return}let r=Math.round(this._glyphMarginWidth/this._glyphMarginDecorationLaneCount);for(let o of Object.values(this._widgets))if(!o.renderInfo)o.domNode.setDisplay("none");else{let c=e.viewportData.relativeVerticalOffset[o.renderInfo.lineNumber-e.viewportData.startLineNumber],d=this._glyphMarginLeft+o.renderInfo.laneIndex*this._lineHeight;o.domNode.setDisplay("block"),o.domNode.setTop(c),o.domNode.setLeft(d),o.domNode.setWidth(r),o.domNode.setHeight(this._lineHeight)}for(let o=0;othis._decorationGlyphsToRender.length;){let o=this._managedDomNodes.pop();o?.domNode.remove()}}},Wti=class{constructor(e,r,o,c){this.lineNumber=e,this.laneIndex=r,this.zIndex=o,this.className=c,this.type=0}accept(e){return new Vti(this.lineNumber,this.laneIndex,e)}},zti=class{constructor(e,r,o,c){this.lineNumber=e,this.laneIndex=r,this.zIndex=o,this.widget=c,this.type=1}},Vti=class{constructor(e,r,o){this.lineNumber=e,this.laneIndex=r,this.combinedClassName=o}}});var QSi=ti(()=>{});var THe,Hti=ti(()=>{co();THe=class extends tn{constructor(){super(...arguments),this._isDisposed=!1}dispose(){super.dispose(),this._isDisposed=!0}assertNotDisposed(){if(this._isDisposed)throw new Error("TextModelPart is disposed!")}}});function K6e(l,e){let r=0,o=0,c=l.length;for(;o{});var Ofe,o$,Ffe,y4t=ti(()=>{(function(l){l[l.Disabled=0]="Disabled",l[l.EnabledForActive=1]="EnabledForActive",l[l.Enabled=2]="Enabled"})(Ofe||(Ofe={}));o$=class{constructor(e,r,o,c,d,h){if(this.visibleColumn=e,this.column=r,this.className=o,this.horizontalLine=c,this.forWrappedLinesAfterColumn=d,this.forWrappedLinesBeforeOrAtColumn=h,e!==-1==(r!==-1))throw new Error}},Ffe=class{constructor(e,r){this.top=e,this.endColumn=r}}});var v4t,Rdt,Uti=ti(()=>{PR();Mu();t$();Xa();Hti();g4t();y4t();Du();v4t=class extends THe{constructor(e,r){super(),this.textModel=e,this.languageConfigurationService=r}getLanguageConfiguration(e){return this.languageConfigurationService.getLanguageConfiguration(e)}_computeIndentLevel(e){return K6e(this.textModel.getLineContent(e+1),this.textModel.getOptions().tabSize)}getActiveIndentGuide(e,r,o){this.assertNotDisposed();let c=this.textModel.getLineCount();if(e<1||e>c)throw new Hp("Illegal value for lineNumber");let d=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,h=!!(d&&d.offSide),b=-2,w=-1,N=-2,L=-1,B=jt=>{if(b!==-1&&(b===-2||b>jt-1)){b=-1,w=-1;for(let mi=jt-2;mi>=0;mi--){let _n=this._computeIndentLevel(mi);if(_n>=0){b=mi,w=_n;break}}}if(N===-2){N=-1,L=-1;for(let mi=jt;mi=0){N=mi,L=_n;break}}}},F=-2,Y=-1,Z=-2,ee=-1,Te=jt=>{if(F===-2){F=-1,Y=-1;for(let mi=jt-2;mi>=0;mi--){let _n=this._computeIndentLevel(mi);if(_n>=0){F=mi,Y=_n;break}}}if(Z!==-1&&(Z===-2||Z=0){Z=mi,ee=_n;break}}}},Je=0,Xe=!0,ct=0,Ct=!0,Nt=0,Yt=0;for(let jt=0;Xe||Ct;jt++){let mi=e-jt,_n=e+jt;jt>1&&(mi<1||mi1&&(_n>c||_n>o)&&(Ct=!1),jt>5e4&&(Xe=!1,Ct=!1);let Pr=-1;if(Xe&&mi>=1){let Rr=this._computeIndentLevel(mi-1);Rr>=0?(N=mi-1,L=Rr,Pr=Math.ceil(Rr/this.textModel.getOptions().indentSize)):(B(mi),Pr=this._getIndentLevelForWhitespaceLine(h,w,L))}let dr=-1;if(Ct&&_n<=c){let Rr=this._computeIndentLevel(_n-1);Rr>=0?(F=_n-1,Y=Rr,dr=Math.ceil(Rr/this.textModel.getOptions().indentSize)):(Te(_n),dr=this._getIndentLevelForWhitespaceLine(h,Y,ee))}if(jt===0){Yt=Pr;continue}if(jt===1){if(_n<=c&&dr>=0&&Yt+1===dr){Xe=!1,Je=_n,ct=_n,Nt=dr;continue}if(mi>=1&&Pr>=0&&Pr-1===Yt){Ct=!1,Je=mi,ct=mi,Nt=Pr;continue}if(Je=e,ct=e,Nt=Yt,Nt===0)return{startLineNumber:Je,endLineNumber:ct,indent:Nt}}Xe&&(Pr>=Nt?Je=mi:Xe=!1),Ct&&(dr>=Nt?ct=_n:Ct=!1)}return{startLineNumber:Je,endLineNumber:ct,indent:Nt}}getLinesBracketGuides(e,r,o,c){var d;let h=[];for(let F=e;F<=r;F++)h.push([]);let b=!0,w=this.textModel.bracketPairs.getBracketPairsInRangeWithMinIndentation(new Zt(e,1,r,this.textModel.getLineMaxColumn(r))).toArray(),N;if(o&&w.length>0){let F=(e<=o.lineNumber&&o.lineNumber<=r?w:this.textModel.bracketPairs.getBracketPairsInRange(Zt.fromPositions(o)).toArray()).filter(Y=>Zt.strictContainsPosition(Y.range,o));N=(d=vfe(F,Y=>b||Y.range.startLineNumber!==Y.range.endLineNumber))===null||d===void 0?void 0:d.range}let L=this.textModel.getOptions().bracketPairColorizationOptions.independentColorPoolPerBracketType,B=new Rdt;for(let F of w){if(!F.closingBracketRange)continue;let Y=N&&F.range.equalsRange(N);if(!Y&&!c.includeInactive)continue;let Z=B.getInlineClassName(F.nestingLevel,F.nestingLevelOfEqualBracketType,L)+(c.highlightActive&&Y?" "+B.activeClassName:""),ee=F.openingBracketRange.getStartPosition(),Te=F.closingBracketRange.getStartPosition(),Je=c.horizontalGuides===Ofe.Enabled||c.horizontalGuides===Ofe.EnabledForActive&&Y;if(F.range.startLineNumber===F.range.endLineNumber){b&&Je&&h[F.range.startLineNumber-e].push(new o$(-1,F.openingBracketRange.getEndPosition().column,Z,new Ffe(!1,Te.column),-1,-1));continue}let Xe=this.getVisibleColumnFromPosition(Te),ct=this.getVisibleColumnFromPosition(F.openingBracketRange.getStartPosition()),Ct=Math.min(ct,Xe,F.minVisibleColumnIndentation+1),Nt=!1;tx(this.textModel.getLineContent(F.closingBracketRange.startLineNumber))=e&&ct>Ct&&h[ee.lineNumber-e].push(new o$(Ct,-1,Z,new Ffe(!1,ee.column),-1,-1)),Te.lineNumber<=r&&Xe>Ct&&h[Te.lineNumber-e].push(new o$(Ct,-1,Z,new Ffe(!Nt,Te.column),-1,-1)))}for(let F of h)F.sort((Y,Z)=>Y.visibleColumn-Z.visibleColumn);return h}getVisibleColumnFromPosition(e){return $1.visibleColumnFromColumn(this.textModel.getLineContent(e.lineNumber),e.column,this.textModel.getOptions().tabSize)+1}getLinesIndentGuides(e,r){this.assertNotDisposed();let o=this.textModel.getLineCount();if(e<1||e>o)throw new Error("Illegal value for startLineNumber");if(r<1||r>o)throw new Error("Illegal value for endLineNumber");let c=this.textModel.getOptions(),d=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,h=!!(d&&d.offSide),b=new Array(r-e+1),w=-2,N=-1,L=-2,B=-1;for(let F=e;F<=r;F++){let Y=F-e,Z=this._computeIndentLevel(F-1);if(Z>=0){w=F-1,N=Z,b[Y]=Math.ceil(Z/c.indentSize);continue}if(w===-2){w=-1,N=-1;for(let ee=F-2;ee>=0;ee--){let Te=this._computeIndentLevel(ee);if(Te>=0){w=ee,N=Te;break}}}if(L!==-1&&(L===-2||L=0){L=ee,B=Te;break}}}b[Y]=this._getIndentLevelForWhitespaceLine(h,N,B)}return b}_getIndentLevelForWhitespaceLine(e,r,o){let c=this.textModel.getOptions();return r===-1||o===-1?0:r{QSi();PSe();PV();x0();Iu();sd();Fh();Uti();y4t();b4t=class extends c7{constructor(e){super(),this._context=e,this._primaryPosition=null;let r=this._context.configuration.options,o=r.get(146),c=r.get(50);this._spaceWidth=c.spaceWidth,this._maxIndentLeft=o.wrappingColumn===-1?-1:o.wrappingColumn*c.typicalHalfwidthCharacterWidth,this._bracketPairGuideOptions=r.get(16),this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){let r=this._context.configuration.options,o=r.get(146),c=r.get(50);return this._spaceWidth=c.spaceWidth,this._maxIndentLeft=o.wrappingColumn===-1?-1:o.wrappingColumn*c.typicalHalfwidthCharacterWidth,this._bracketPairGuideOptions=r.get(16),!0}onCursorStateChanged(e){var r;let c=e.selections[0].getPosition();return!((r=this._primaryPosition)===null||r===void 0)&&r.equals(c)?!1:(this._primaryPosition=c,!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){var r,o,c,d;if(!this._bracketPairGuideOptions.indentation&&this._bracketPairGuideOptions.bracketPairs===!1){this._renderResult=null;return}let h=e.visibleRange.startLineNumber,b=e.visibleRange.endLineNumber,w=e.scrollWidth,N=this._primaryPosition,L=this.getGuidesByLine(h,Math.min(b+1,this._context.viewModel.getLineCount()),N),B=[];for(let F=h;F<=b;F++){let Y=F-h,Z=L[Y],ee="",Te=(o=(r=e.visibleRangeForPosition(new qn(F,1)))===null||r===void 0?void 0:r.left)!==null&&o!==void 0?o:0;for(let Je of Z){let Xe=Je.column===-1?Te+(Je.visibleColumn-1)*this._spaceWidth:e.visibleRangeForPosition(new qn(F,Je.column)).left;if(Xe>w||this._maxIndentLeft>0&&Xe>this._maxIndentLeft)break;let ct=Je.horizontalLine?Je.horizontalLine.top?"horizontal-top":"horizontal-bottom":"vertical",Ct=Je.horizontalLine?((d=(c=e.visibleRangeForPosition(new qn(F,Je.horizontalLine.endColumn)))===null||c===void 0?void 0:c.left)!==null&&d!==void 0?d:Xe+this._spaceWidth)-Xe:this._spaceWidth;ee+=`
`}B[Y]=ee}this._renderResult=B}getGuidesByLine(e,r,o){let c=this._bracketPairGuideOptions.bracketPairs!==!1?this._context.viewModel.getBracketGuidesInRangeByLine(e,r,o,{highlightActive:this._bracketPairGuideOptions.highlightActiveBracketPair,horizontalGuides:this._bracketPairGuideOptions.bracketPairsHorizontal===!0?Ofe.Enabled:this._bracketPairGuideOptions.bracketPairsHorizontal==="active"?Ofe.EnabledForActive:Ofe.Disabled,includeInactive:this._bracketPairGuideOptions.bracketPairs===!0}):null,d=this._bracketPairGuideOptions.indentation?this._context.viewModel.getLinesIndentGuides(e,r):null,h=0,b=0,w=0;if(this._bracketPairGuideOptions.highlightActiveIndentation!==!1&&o){let B=this._context.viewModel.getActiveIndentGuide(o.lineNumber,e,r);h=B.startLineNumber,b=B.endLineNumber,w=B.indent}let{indentSize:N}=this._context.viewModel.model.getOptions(),L=[];for(let B=e;B<=r;B++){let F=new Array;L.push(F);let Y=c?c[B-e]:[],Z=new KL(Y),ee=d?d[B-e]:0;for(let Te=1;Te<=ee;Te++){let Je=(Te-1)*N+1,Xe=(this._bracketPairGuideOptions.highlightActiveIndentation==="always"||Y.length===0)&&h<=B&&B<=b&&Te===w;F.push(...Z.takeWhile(Ct=>Ct.visibleColumn!0)||[])}return L}render(e,r){if(!this._renderResult)return"";let o=r-e;return o<0||o>=this._renderResult.length?"":this._renderResult[o]}};AT((l,e)=>{let r=[{bracketColor:IPt,guideColor:ySi,guideColorActive:kSi},{bracketColor:NPt,guideColor:vSi,guideColorActive:wSi},{bracketColor:APt,guideColor:bSi,guideColorActive:TSi},{bracketColor:PPt,guideColor:SSi,guideColorActive:ESi},{bracketColor:LPt,guideColor:xSi,guideColorActive:DSi},{bracketColor:OPt,guideColor:CSi,guideColorActive:ISi}],o=new Rdt,c=[{indentColor:L6e,indentColorActive:O6e},{indentColor:eSi,indentColorActive:oSi},{indentColor:tSi,indentColorActive:sSi},{indentColor:iSi,indentColorActive:aSi},{indentColor:nSi,indentColorActive:cSi},{indentColor:rSi,indentColorActive:lSi}],d=r.map(b=>{var w,N;let L=l.getColor(b.bracketColor),B=l.getColor(b.guideColor),F=l.getColor(b.guideColorActive),Y=EHe((w=EHe(B))!==null&&w!==void 0?w:L?.transparent(.3)),Z=EHe((N=EHe(F))!==null&&N!==void 0?N:L);if(!(!Y||!Z))return{guideColor:Y,guideColorActive:Z}}).filter(vR),h=c.map(b=>{let w=l.getColor(b.indentColor),N=l.getColor(b.indentColorActive),L=EHe(w),B=EHe(N);if(!(!L||!B))return{indentColor:L,indentColorActive:B}}).filter(vR);if(d.length>0){for(let b=0;b<30;b++){let w=d[b%d.length];e.addRule(`.monaco-editor .${o.getInlineClassNameOfLevel(b).replace(/ /g,".")} { --guide-color: ${w.guideColor}; --guide-color-active: ${w.guideColorActive}; }`)}e.addRule(".monaco-editor .vertical { box-shadow: 1px 0 0 0 var(--guide-color) inset; }"),e.addRule(".monaco-editor .horizontal-top { border-top: 1px solid var(--guide-color); }"),e.addRule(".monaco-editor .horizontal-bottom { border-bottom: 1px solid var(--guide-color); }"),e.addRule(`.monaco-editor .vertical.${o.activeClassName} { box-shadow: 1px 0 0 0 var(--guide-color-active) inset; }`),e.addRule(`.monaco-editor .horizontal-top.${o.activeClassName} { border-top: 1px solid var(--guide-color-active); }`),e.addRule(`.monaco-editor .horizontal-bottom.${o.activeClassName} { border-bottom: 1px solid var(--guide-color-active); }`)}if(h.length>0){for(let b=0;b<30;b++){let w=h[b%h.length];e.addRule(`.monaco-editor .lines-content .core-guide-indent.lvl-${b} { --indent-color: ${w.indentColor}; --indent-color-active: ${w.indentColorActive}; }`)}e.addRule(".monaco-editor .lines-content .core-guide-indent { box-shadow: 1px 0 0 0 var(--indent-color) inset; }"),e.addRule(".monaco-editor .lines-content .core-guide-indent.indent-active { box-shadow: 1px 0 0 0 var(--indent-color-active) inset; }")}})});var exi=ti(()=>{});var DHe,txi=ti(()=>{DHe=class{get didDomLayout(){return this._didDomLayout}readClientRect(){if(!this._clientRectRead){this._clientRectRead=!0;let 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,r){this._domNode=e,this.endNode=r,this._didDomLayout=!1,this._clientRectDeltaLeft=0,this._clientRectScale=1,this._clientRectRead=!1}markDidDomLayout(){this._didDomLayout=!0}}});var Jti,qti,$ti,Bdt,ixi=ti(()=>{FPt();Ud();X_();exi();xB();dHe();n4t();l3();txi();nPt();Iu();Xa();Jti=class{constructor(){this._currentVisibleRange=new Zt(1,1,1,1)}getCurrentVisibleRange(){return this._currentVisibleRange}setCurrentVisibleRange(e){this._currentVisibleRange=e}},qti=class{constructor(e,r,o,c,d,h,b){this.minimalReveal=e,this.lineNumber=r,this.startColumn=o,this.endColumn=c,this.startScrollTop=d,this.stopScrollTop=h,this.scrollType=b,this.type="range",this.minLineNumber=r,this.maxLineNumber=r}},$ti=class{constructor(e,r,o,c,d){this.minimalReveal=e,this.selections=r,this.startScrollTop=o,this.stopScrollTop=c,this.scrollType=d,this.type="selections";let h=r[0].startLineNumber,b=r[0].endLineNumber;for(let w=1,N=r.length;w{this._updateLineWidthsSlow()},200),this._asyncCheckMonospaceFontAssumptions=new p_(()=>{this._checkMonospaceFontAssumptions()},2e3),this._lastRenderedData=new Jti,this._horizontalRevealRequest=null,this._stickyScrollEnabled=c.get(115).enabled,this._maxNumberStickyLines=c.get(115).maxLineCount}dispose(){this._asyncUpdateLineWidths.dispose(),this._asyncCheckMonospaceFontAssumptions.dispose(),super.dispose()}getDomNode(){return this.domNode}createVisibleLine(){return new e$(this._viewLineOptions)}onConfigurationChanged(e){this._visibleLines.onConfigurationChanged(e),e.hasChanged(146)&&(this._maxLineWidth=0);let r=this._context.configuration.options,o=r.get(50),c=r.get(146);return this._lineHeight=r.get(67),this._typicalHalfwidthCharacterWidth=o.typicalHalfwidthCharacterWidth,this._isViewportWrapping=c.isViewportWrapping,this._revealHorizontalRightPadding=r.get(100),this._cursorSurroundingLines=r.get(29),this._cursorSurroundingLinesStyle=r.get(30),this._canUseLayerHinting=!r.get(32),this._stickyScrollEnabled=r.get(115).enabled,this._maxNumberStickyLines=r.get(115).maxLineCount,Bb(this.domNode,o),this._onOptionsMaybeChanged(),e.hasChanged(145)&&(this._maxLineWidth=0),!0}_onOptionsMaybeChanged(){let e=this._context.configuration,r=new Sdt(e,this._context.theme.type);if(!this._viewLineOptions.equals(r)){this._viewLineOptions=r;let o=this._visibleLines.getStartLineNumber(),c=this._visibleLines.getEndLineNumber();for(let d=o;d<=c;d++)this._visibleLines.getVisibleLine(d).onOptionsChanged(this._viewLineOptions);return!0}return!1}onCursorStateChanged(e){let r=this._visibleLines.getStartLineNumber(),o=this._visibleLines.getEndLineNumber(),c=!1;for(let d=r;d<=o;d++)c=this._visibleLines.getVisibleLine(d).onSelectionChanged()||c;return c}onDecorationsChanged(e){{let r=this._visibleLines.getStartLineNumber(),o=this._visibleLines.getEndLineNumber();for(let c=r;c<=o;c++)this._visibleLines.getVisibleLine(c).onDecorationsChanged()}return!0}onFlushed(e){let r=this._visibleLines.onFlushed(e);return this._maxLineWidth=0,r}onLinesChanged(e){return this._visibleLines.onLinesChanged(e)}onLinesDeleted(e){return this._visibleLines.onLinesDeleted(e)}onLinesInserted(e){return this._visibleLines.onLinesInserted(e)}onRevealRangeRequest(e){let r=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),e.source,e.minimalReveal,e.range,e.selections,e.verticalType);if(r===-1)return!1;let o=this._context.viewLayout.validateScrollPosition({scrollTop:r});e.revealHorizontal?e.range&&e.range.startLineNumber!==e.range.endLineNumber?o={scrollTop:o.scrollTop,scrollLeft:0}:e.range?this._horizontalRevealRequest=new qti(e.minimalReveal,e.range.startLineNumber,e.range.startColumn,e.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),o.scrollTop,e.scrollType):e.selections&&e.selections.length>0&&(this._horizontalRevealRequest=new $ti(e.minimalReveal,e.selections,this._context.viewLayout.getCurrentScrollTop(),o.scrollTop,e.scrollType)):this._horizontalRevealRequest=null;let d=Math.abs(this._context.viewLayout.getCurrentScrollTop()-o.scrollTop)<=this._lineHeight?1:e.scrollType;return this._context.viewModel.viewLayout.setScrollPosition(o,d),!0}onScrollChanged(e){if(this._horizontalRevealRequest&&e.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&e.scrollTopChanged){let r=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),o=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(e.scrollTopo)&&(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,r){let o=this._getViewLineDomNode(e);if(o===null)return null;let c=this._getLineNumberFor(o);if(c===-1||c<1||c>this._context.viewModel.getLineCount())return null;if(this._context.viewModel.getLineMaxColumn(c)===1)return new qn(c,1);let d=this._visibleLines.getStartLineNumber(),h=this._visibleLines.getEndLineNumber();if(ch)return null;let b=this._visibleLines.getVisibleLine(c).getColumnOfNodeOffset(e,r),w=this._context.viewModel.getLineMinColumn(c);return bo)return-1;let c=new DHe(this.domNode.domNode,this._textRangeRestingSpot),d=this._visibleLines.getVisibleLine(e).getWidth(c);return this._updateLineWidthsSlowIfDomDidLayout(c),d}linesVisibleRangesForRange(e,r){if(this.shouldRender())return null;let o=e.endLineNumber,c=Zt.intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange());if(!c)return null;let d=[],h=0,b=new DHe(this.domNode.domNode,this._textRangeRestingSpot),w=0;r&&(w=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new qn(c.startLineNumber,1)).lineNumber);let N=this._visibleLines.getStartLineNumber(),L=this._visibleLines.getEndLineNumber();for(let B=c.startLineNumber;B<=c.endLineNumber;B++){if(BL)continue;let F=B===c.startLineNumber?c.startColumn:1,Y=B!==c.endLineNumber,Z=Y?this._context.viewModel.getLineMaxColumn(B):c.endColumn,ee=this._visibleLines.getVisibleLine(B).getVisibleRangesForRange(B,F,Z,b);if(ee){if(r&&Bthis._visibleLines.getEndLineNumber())return null;let c=new DHe(this.domNode.domNode,this._textRangeRestingSpot),d=this._visibleLines.getVisibleLine(e).getVisibleRangesForRange(e,r,o,c);return this._updateLineWidthsSlowIfDomDidLayout(c),d}visibleRangeForPosition(e){let r=this._visibleRangesForLineRange(e.lineNumber,e.column,e.column);return r?new ePt(r.outsideRenderedLine,r.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){let r=this._visibleLines.getStartLineNumber(),o=this._visibleLines.getEndLineNumber(),c=1,d=!0;for(let h=r;h<=o;h++){let b=this._visibleLines.getVisibleLine(h);if(e&&!b.getWidthIsFast()){d=!1;continue}c=Math.max(c,b.getWidth(null))}return d&&r===1&&o===this._context.viewModel.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(c),d}_checkMonospaceFontAssumptions(){let e=-1,r=-1,o=this._visibleLines.getStartLineNumber(),c=this._visibleLines.getEndLineNumber();for(let d=o;d<=c;d++){let h=this._visibleLines.getVisibleLine(d);if(h.needsMonospaceFontCheck()){let b=h.getWidth(null);b>r&&(r=b,e=d)}}if(e!==-1&&!this._visibleLines.getVisibleLine(e).monospaceAssumptionsAreValid())for(let d=o;d<=c;d++)this._visibleLines.getVisibleLine(d).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){let o=this._horizontalRevealRequest;if(e.startLineNumber<=o.minLineNumber&&o.maxLineNumber<=e.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();let c=this._computeScrollLeftToReveal(o);c&&(this._isViewportWrapping||this._ensureMaxLineWidth(c.maxHorizontalOffset),this._context.viewModel.viewLayout.setScrollPosition({scrollLeft:c.scrollLeft},o.scrollType))}}if(this._updateLineWidthsFast()?this._asyncUpdateLineWidths.cancel():this._asyncUpdateLineWidths.schedule(),kS&&!this._asyncCheckMonospaceFontAssumptions.isScheduled()){let o=this._visibleLines.getStartLineNumber(),c=this._visibleLines.getEndLineNumber();for(let d=o;d<=c;d++)if(this._visibleLines.getVisibleLine(d).needsMonospaceFontCheck()){this._asyncCheckMonospaceFontAssumptions.schedule();break}}this._linesContent.setLayerHinting(this._canUseLayerHinting),this._linesContent.setContain("strict");let r=this._context.viewLayout.getCurrentScrollTop()-e.bigNumbersDelta;this._linesContent.setTop(-r),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())}_ensureMaxLineWidth(e){let r=Math.ceil(e);this._maxLineWidth0){let Je=d[0].startLineNumber,Xe=d[0].endLineNumber;for(let ct=1,Ct=d.length;ctw){if(!L)return-1;Te=B}else if(h===5||h===6)if(h===6&&b<=B&&F<=N)Te=b;else{let Je=Math.max(5*this._lineHeight,w*.2),Xe=B-Je,ct=F-w;Te=Math.max(ct,Xe)}else if(h===1||h===2)if(h===2&&b<=B&&F<=N)Te=b;else{let Je=(B+F)/2;Te=Math.max(0,Je-w/2)}else Te=this._computeMinimumScrolling(b,N,B,F,h===3,h===4);return Te}_computeScrollLeftToReveal(e){let r=this._context.viewLayout.getCurrentViewport(),o=this._context.configuration.options.get(145),c=r.left,d=c+r.width-o.verticalScrollbarWidth,h=1073741824,b=0;if(e.type==="range"){let N=this._visibleRangesForLineRange(e.lineNumber,e.startColumn,e.endColumn);if(!N)return null;for(let L of N.ranges)h=Math.min(h,Math.round(L.left)),b=Math.max(b,Math.round(L.left+L.width))}else for(let N of e.selections){if(N.startLineNumber!==N.endLineNumber)return null;let L=this._visibleRangesForLineRange(N.startLineNumber,N.startColumn,N.endColumn);if(!L)return null;for(let B of L.ranges)h=Math.min(h,Math.round(B.left)),b=Math.max(b,Math.round(B.left+B.width))}return e.minimalReveal||(h=Math.max(0,h-l.HORIZONTAL_EXTRA_PX),b+=this._revealHorizontalRightPadding),e.type==="selections"&&b-h>r.width?null:{scrollLeft:this._computeMinimumScrolling(c,d,h,b),maxHorizontalOffset:b}}_computeMinimumScrolling(e,r,o,c,d,h){e=e|0,r=r|0,o=o|0,c=c|0,d=!!d,h=!!h;let b=r-e;if(c-or)return Math.max(0,c-b)}else return o;return e}};Bdt.HORIZONTAL_EXTRA_PX=30});var nxi=ti(()=>{});var S4t,rxi=ti(()=>{nxi();h4t();S4t=class extends wHe{constructor(e){super(),this._context=e;let o=this._context.configuration.options.get(145);this._decorationsLeft=o.decorationsLeft,this._decorationsWidth=o.decorationsWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){let o=this._context.configuration.options.get(145);return this._decorationsLeft=o.decorationsLeft,this._decorationsWidth=o.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){var r,o;let c=e.getDecorationsInViewport(),d=[],h=0;for(let b=0,w=c.length;b',w=[];for(let N=r;N<=o;N++){let L=N-r,B=c[L].getDecorations(),F="";for(let Y of B){let Z='
{});var x4t,sxi=ti(()=>{oxi();h4t();x4t=class extends wHe{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){let r=e.getDecorationsInViewport(),o=[],c=0;for(let d=0,h=r.length;d
';d[b]=N}this._renderResult=d}render(e,r){return this._renderResult?this._renderResult[r-e]:""}}});var axi=ti(()=>{});var OV,Gti=ti(()=>{OV=class l{constructor(e,r,o,c){this._rgba8Brand=void 0,this.r=l._clamp(e),this.g=l._clamp(r),this.b=l._clamp(o),this.a=l._clamp(c)}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:e|0}};OV.Empty=new OV(0,0,0,0)});var X6e,Kti=ti(()=>{xc();co();Gti();dy();X6e=class l extends tn{static getInstance(){return this._INSTANCE||(this._INSTANCE=Wbe(new l)),this._INSTANCE}constructor(){super(),this._onDidChange=new wn,this.onDidChange=this._onDidChange.event,this._updateColorMap(),this._register(a0.onDidChange(e=>{e.changedColorMap&&this._updateColorMap()}))}_updateColorMap(){let e=a0.getColorMap();if(!e){this._colors=[OV.Empty],this._backgroundIsLight=!0;return}this._colors=[OV.Empty];for(let o=1;o=.5,this._onDidChange.fire(void 0)}getColor(e){return(e<1||e>=this._colors.length)&&(e=2),this._colors[e]}backgroundIsLight(){return this._backgroundIsLight}};X6e._INSTANCE=null});var cxi,lxi,Xti=ti(()=>{cxi=(()=>{let l=[];for(let e=32;e<=126;e++)l.push(e);return l.push(65533),l})(),lxi=(l,e)=>(l-=32,l<0||l>96?e<=2?(l+96)%96:95:l)});var jdt,uxi=ti(()=>{Xti();Uut();jdt=class l{constructor(e,r){this.scale=r,this._minimapCharRendererBrand=void 0,this.charDataNormal=l.soften(e,12/15),this.charDataLight=l.soften(e,50/60)}static soften(e,r){let o=new Uint8ClampedArray(e.length);for(let c=0,d=e.length;ce.width||o+Z>e.height){console.warn("bad render request outside image data");return}let ee=L?this.charDataLight:this.charDataNormal,Te=lxi(c,N),Je=e.width*4,Xe=b.r,ct=b.g,Ct=b.b,Nt=d.r-Xe,Yt=d.g-ct,jt=d.b-Ct,mi=Math.max(h,w),_n=e.data,Pr=Te*F*Y,dr=o*Je+r*4;for(let Rr=0;Rre.width||o+B>e.height){console.warn("bad render request outside image data");return}let F=e.width*4,Y=.5*(d/255),Z=h.r,ee=h.g,Te=h.b,Je=c.r-Z,Xe=c.g-ee,ct=c.b-Te,Ct=Z+Je*Y,Nt=ee+Xe*Y,Yt=Te+ct*Y,jt=Math.max(d,b),mi=e.data,_n=o*F+r*4;for(let Pr=0;Pr{Bbe();dxi={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},fxi=l=>{let e=new Uint8ClampedArray(l.length/2);for(let r=0;r>1]=dxi[l[r]]<<4|dxi[l[r+1]]&15;return e},Yti={1:xR(()=>fxi("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792")),2:xR(()=>fxi("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126"))}});var C4t,pxi=ti(()=>{uxi();Xti();_xi();Uut();C4t=class l{static create(e,r){if(this.lastCreated&&e===this.lastCreated.scale&&r===this.lastFontFamily)return this.lastCreated;let o;return Yti[e]?o=new jdt(Yti[e](),e):o=l.createFromSampleData(l.createSampleData(r).data,e),this.lastFontFamily=r,this.lastCreated=o,o}static createSampleData(e){let r=document.createElement("canvas"),o=r.getContext("2d");r.style.height="16px",r.height=16,r.width=96*10,r.style.width=96*10+"px",o.fillStyle="#ffffff",o.font=`bold 16px ${e}`,o.textBaseline="middle";let c=0;for(let d of cxi)o.fillText(String.fromCharCode(d),c,16/2),c+=10;return o.getImageData(0,0,96*10,16)}static createFromSampleData(e,r){if(e.length!==61440)throw new Error("Unexpected source in MinimapCharRenderer");let c=l._downsample(e,r);return new jdt(c,r)}static _downsampleChar(e,r,o,c,d){let h=1*d,b=2*d,w=c,N=0;for(let L=0;L0){let N=255/w;for(let L=0;L{X_();mxi=Bv?'"Segoe WPC", "Segoe UI", sans-serif':md?"-apple-system, BlinkMacSystemFont, sans-serif":'system-ui, "Ubuntu", "Droid Sans", sans-serif'});var mBi,hBi,k4t,Qti,IHe,w4t,Zti,T4t,E4t,eii,D4t,gxi=ti(()=>{axi();nc();SE();KVe();co();X_();Mu();n4t();l3();TT();Xa();Gti();Kti();Hq();q1();j0();FR();pxi();Bbe();pA();hxi();mBi=140,hBi=2,k4t=class l{constructor(e,r,o){let c=e.options,d=c.get(143),h=c.get(145),b=h.minimap,w=c.get(50),N=c.get(73);this.renderMinimap=b.renderMinimap,this.size=N.size,this.minimapHeightIsEditorHeight=b.minimapHeightIsEditorHeight,this.scrollBeyondLastLine=c.get(105),this.paddingTop=c.get(84).top,this.paddingBottom=c.get(84).bottom,this.showSlider=N.showSlider,this.autohide=N.autohide,this.pixelRatio=d,this.typicalHalfwidthCharacterWidth=w.typicalHalfwidthCharacterWidth,this.lineHeight=c.get(67),this.minimapLeft=b.minimapLeft,this.minimapWidth=b.minimapWidth,this.minimapHeight=h.height,this.canvasInnerWidth=b.minimapCanvasInnerWidth,this.canvasInnerHeight=b.minimapCanvasInnerHeight,this.canvasOuterWidth=b.minimapCanvasOuterWidth,this.canvasOuterHeight=b.minimapCanvasOuterHeight,this.isSampling=b.minimapIsSampling,this.editorHeight=h.height,this.fontScale=b.minimapScale,this.minimapLineHeight=b.minimapLineHeight,this.minimapCharWidth=1*this.fontScale,this.sectionHeaderFontFamily=mxi,this.sectionHeaderFontSize=N.sectionHeaderFontSize*d,this.sectionHeaderLetterSpacing=N.sectionHeaderLetterSpacing,this.sectionHeaderFontColor=l._getSectionHeaderColor(r,o.getColor(1)),this.charRenderer=xR(()=>C4t.create(this.fontScale,w.fontFamily)),this.defaultBackgroundColor=o.getColor(2),this.backgroundColor=l._getMinimapBackground(r,this.defaultBackgroundColor),this.foregroundAlpha=l._getMinimapForegroundOpacity(r)}static _getMinimapBackground(e,r){let o=e.getColor(L1i);return o?new OV(o.rgba.r,o.rgba.g,o.rgba.b,Math.round(255*o.rgba.a)):r}static _getMinimapForegroundOpacity(e){let r=e.getColor(O1i);return r?OV._clamp(Math.round(255*r.rgba.a)):255}static _getSectionHeaderColor(e,r){let o=e.getColor(YO);return o?new OV(o.rgba.r,o.rgba.g,o.rgba.b,Math.round(255*o.rgba.a)):r}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}},Qti=class l{constructor(e,r,o,c,d,h,b,w,N){this.scrollTop=e,this.scrollHeight=r,this.sliderNeeded=o,this._computedSliderRatio=c,this.sliderTop=d,this.sliderHeight=h,this.topPaddingLineCount=b,this.startLineNumber=w,this.endLineNumber=N}getDesiredScrollTopFromDelta(e){return Math.round(this.scrollTop+e/this._computedSliderRatio)}getDesiredScrollTopFromTouchLocation(e){return Math.round((e-this.sliderHeight/2)/this._computedSliderRatio)}intersectWithViewport(e){let r=Math.max(this.startLineNumber,e.startLineNumber),o=Math.min(this.endLineNumber,e.endLineNumber);return r>o?null:[r,o]}getYForLineNumber(e,r){return+(e-this.startLineNumber+this.topPaddingLineCount)*r}static create(e,r,o,c,d,h,b,w,N,L,B){let F=e.pixelRatio,Y=e.minimapLineHeight,Z=Math.floor(e.canvasInnerHeight/Y),ee=e.lineHeight;if(e.minimapHeightIsEditorHeight){let Yt=w*e.lineHeight+e.paddingTop+e.paddingBottom;e.scrollBeyondLastLine&&(Yt+=Math.max(0,d-e.lineHeight-e.paddingBottom));let jt=Math.max(1,Math.floor(d*d/Yt)),mi=Math.max(0,e.minimapHeight-jt),_n=mi/(L-d),Pr=N*_n,dr=mi>0,Rr=Math.floor(e.canvasInnerHeight/e.minimapLineHeight),Tn=Math.floor(e.paddingTop/e.lineHeight);return new l(N,L,dr,_n,Pr,jt,Tn,1,Math.min(b,Rr))}let Te;if(h&&o!==b){let Yt=o-r+1;Te=Math.floor(Yt*Y/F)}else{let Yt=d/ee;Te=Math.floor(Yt*Y/F)}let Je=Math.floor(e.paddingTop/ee),Xe=Math.floor(e.paddingBottom/ee);if(e.scrollBeyondLastLine){let Yt=d/ee;Xe=Math.max(Xe,Yt-1)}let ct;if(Xe>0){let Yt=d/ee;ct=(Je+b+Xe-Yt-1)*Y/F}else ct=Math.max(0,(Je+b)*Y/F-Te);ct=Math.min(e.minimapHeight-Te,ct);let Ct=ct/(L-d),Nt=N*Ct;if(Z>=Je+b+Xe){let Yt=ct>0;return new l(N,L,Yt,Ct,Nt,Te,Je,1,b)}else{let Yt;r>1?Yt=r+Je:Yt=Math.max(1,N/ee);let jt,mi=Math.max(1,Math.floor(Yt-Nt*F/Y));miN&&(mi=Math.min(mi,B.startLineNumber),jt=Math.max(jt,B.topPaddingLineCount)),B.scrollTop=e.paddingTop?dr=(r-mi+jt+Pr)*Y/F:dr=N/e.paddingTop*(jt+Pr)*Y/F,new l(N,L,!0,Ct,dr,Te,jt,mi,_n)}}},IHe=class{constructor(e){this.dy=e}onContentChanged(){this.dy=-1}onTokensChanged(){this.dy=-1}};IHe.INVALID=new IHe(-1);w4t=class{constructor(e,r,o){this.renderedLayout=e,this._imageData=r,this._renderedLines=new Fdt(()=>IHe.INVALID),this._renderedLines._set(e.startLineNumber,o)}linesEquals(e){if(!this.scrollEquals(e))return!1;let o=this._renderedLines._get().lines;for(let c=0,d=o.length;c1){for(let Je=0,Xe=c-1;Je0&&this.minimapLines[o-1]>=e;)o--;let c=this.modelLineToMinimapLine(r)-1;for(;c+1r)return null}return[o+1,c+1]}decorationLineRangeToMinimapLineRange(e,r){let o=this.modelLineToMinimapLine(e),c=this.modelLineToMinimapLine(r);return e!==r&&c===o&&(c===this.minimapLines.length?o>1&&o--:c++),[o,c]}onLinesDeleted(e){let r=e.toLineNumber-e.fromLineNumber+1,o=this.minimapLines.length,c=0;for(let d=this.minimapLines.length-1;d>=0&&!(this.minimapLines[d]=0&&!(this.minimapLines[o]0,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight,viewportStartLineNumber:r,viewportEndLineNumber:o,viewportStartLineNumberVerticalOffset:e.getVerticalOffsetForLineNumber(r),scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,viewportWidth:e.viewportWidth,viewportHeight:e.viewportHeight};this._actual.render(c)}_recreateLineSampling(){this._minimapSelections=null;let e=!!this._samplingState,[r,o]=T4t.compute(this.options,this._context.viewModel.getLineCount(),this._samplingState);if(this._samplingState=r,e&&this._samplingState)for(let c of o)switch(c.type){case"deleted":this._actual.onLinesDeleted(c.deleteFromLineNumber,c.deleteToLineNumber);break;case"inserted":this._actual.onLinesInserted(c.insertFromLineNumber,c.insertToLineNumber);break;case"flush":this._actual.onFlushed();break}}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,r,o){if(this._samplingState){let c=[];for(let d=0,h=r-e+1;d{var d;return!(!((d=c.options.minimap)===null||d===void 0)&&d.sectionHeaderStyle)});if(this._samplingState){let c=[];for(let d of o){if(!d.options.minimap)continue;let h=d.range,b=this._samplingState.modelLineToMinimapLine(h.startLineNumber),w=this._samplingState.modelLineToMinimapLine(h.endLineNumber);c.push(new VVe(new Zt(b,h.startColumn,w,h.endColumn),d.options))}return c}return o}getSectionHeaderDecorationsInViewport(e,r){let o=this.options.minimapLineHeight,d=this.options.sectionHeaderFontSize/o;return e=Math.floor(Math.max(1,e-d)),this._getMinimapDecorationsInViewport(e,r).filter(h=>{var b;return!!(!((b=h.options.minimap)===null||b===void 0)&&b.sectionHeaderStyle)})}_getMinimapDecorationsInViewport(e,r){let o;if(this._samplingState){let c=this._samplingState.minimapLines[e-1],d=this._samplingState.minimapLines[r-1];o=new Zt(c,1,d,this._context.viewModel.getLineMaxColumn(d))}else o=new Zt(e,1,r,this._context.viewModel.getLineMaxColumn(r));return this._context.viewModel.getMinimapDecorationsInRange(o)}getSectionHeaderText(e,r){var o;let c=(o=e.options.minimap)===null||o===void 0?void 0:o.sectionHeaderText;if(!c)return null;let d=this._sectionHeaderCache.get(c);if(d)return d;let h=r(c);return this._sectionHeaderCache.set(c,h),h}getOptions(){return this._context.viewModel.model.getOptions()}revealLineNumber(e){this._samplingState&&(e=this._samplingState.minimapLines[e-1]),this._context.viewModel.revealRange("mouse",!1,new Zt(e,1,e,1),1,0)}setScrollTop(e){this._context.viewModel.viewLayout.setScrollPosition({scrollTop:e},1)}},eii=class l extends tn{constructor(e,r){super(),this._renderDecorations=!1,this._gestureInProgress=!1,this._theme=e,this._model=r,this._lastRenderData=null,this._buffers=null,this._selectionColor=this._theme.getColor($ei),this._domNode=V_(document.createElement("div")),yA.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=V_(document.createElement("div")),this._shadow.setClassName("minimap-shadow-hidden"),this._domNode.appendChild(this._shadow),this._canvas=V_(document.createElement("canvas")),this._canvas.setPosition("absolute"),this._canvas.setLeft(0),this._domNode.appendChild(this._canvas),this._decorationsCanvas=V_(document.createElement("canvas")),this._decorationsCanvas.setPosition("absolute"),this._decorationsCanvas.setClassName("minimap-decorations-layer"),this._decorationsCanvas.setLeft(0),this._domNode.appendChild(this._decorationsCanvas),this._slider=V_(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=V_(document.createElement("div")),this._sliderHorizontal.setPosition("absolute"),this._sliderHorizontal.setClassName("minimap-slider-horizontal"),this._slider.appendChild(this._sliderHorizontal),this._applyLayout(),this._pointerDownListener=qh(this._domNode.domNode,ls.POINTER_DOWN,o=>{if(o.preventDefault(),this._model.options.renderMinimap===0||!this._lastRenderData)return;if(this._model.options.size!=="proportional"){if(o.button===0&&this._lastRenderData){let N=_g(this._slider.domNode),L=N.top+N.height/2;this._startSliderDragging(o,L,this._lastRenderData.renderedLayout)}return}let d=this._model.options.minimapLineHeight,h=this._model.options.canvasInnerHeight/this._model.options.canvasOuterHeight*o.offsetY,w=Math.floor(h/d)+this._lastRenderData.renderedLayout.startLineNumber-this._lastRenderData.renderedLayout.topPaddingLineCount;w=Math.min(w,this._model.getLineCount()),this._model.revealLineNumber(w)}),this._sliderPointerMoveMonitor=new CV,this._sliderPointerDownListener=qh(this._slider.domNode,ls.POINTER_DOWN,o=>{o.preventDefault(),o.stopPropagation(),o.button===0&&this._lastRenderData&&this._startSliderDragging(o,o.pageY,this._lastRenderData.renderedLayout)}),this._gestureDisposable=d1.addTarget(this._domNode.domNode),this._sliderTouchStartListener=Jr(this._domNode.domNode,pg.Start,o=>{o.preventDefault(),o.stopPropagation(),this._lastRenderData&&(this._slider.toggleClassName("active",!0),this._gestureInProgress=!0,this.scrollDueToTouchEvent(o))},{passive:!1}),this._sliderTouchMoveListener=Jr(this._domNode.domNode,pg.Change,o=>{o.preventDefault(),o.stopPropagation(),this._lastRenderData&&this._gestureInProgress&&this.scrollDueToTouchEvent(o)},{passive:!1}),this._sliderTouchEndListener=qh(this._domNode.domNode,pg.End,o=>{o.preventDefault(),o.stopPropagation(),this._gestureInProgress=!1,this._slider.toggleClassName("active",!1)})}_startSliderDragging(e,r,o){if(!e.target||!(e.target instanceof Element))return;let c=e.pageX;this._slider.toggleClassName("active",!0);let d=(h,b)=>{let w=_g(this._domNode.domNode),N=Math.min(Math.abs(b-c),Math.abs(b-w.left),Math.abs(b-w.left-w.width));if(Bv&&N>mBi){this._model.setScrollTop(o.scrollTop);return}let L=h-r;this._model.setScrollTop(o.getDesiredScrollTopFromDelta(L))};e.pageY!==r&&d(e.pageY,c),this._sliderPointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,h=>d(h.pageY,h.pageX),()=>{this._slider.toggleClassName("active",!1)})}scrollDueToTouchEvent(e){let r=this._domNode.domNode.getBoundingClientRect().top,o=this._lastRenderData.renderedLayout.getDesiredScrollTopFromTouchLocation(e.pageY-r);this._model.setScrollTop(o)}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(){let e=["minimap"];return this._model.options.showSlider==="always"?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 Zti(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,r){return this._lastRenderData?this._lastRenderData.onLinesChanged(e,r):!1}onLinesDeleted(e,r){var o;return(o=this._lastRenderData)===null||o===void 0||o.onLinesDeleted(e,r),!0}onLinesInserted(e,r){var o;return(o=this._lastRenderData)===null||o===void 0||o.onLinesInserted(e,r),!0}onScrollChanged(){return this._renderDecorations=!0,!0}onThemeChanged(){return this._selectionColor=this._theme.getColor($ei),this._renderDecorations=!0,!0}onTokensChanged(e){return this._lastRenderData?this._lastRenderData.onTokensChanged(e):!1}onTokensColorsChanged(){return this._lastRenderData=null,this._buffers=null,!0}onZonesChanged(){return this._lastRenderData=null,!0}render(e){if(this._model.options.renderMinimap===0){this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),this._sliderHorizontal.setHeight(0);return}e.scrollLeft+e.viewportWidth>=e.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");let o=Qti.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(o.sliderNeeded?"block":"none"),this._slider.setTop(o.sliderTop),this._slider.setHeight(o.sliderHeight),this._sliderHorizontal.setLeft(0),this._sliderHorizontal.setWidth(this._model.options.minimapWidth),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(o.sliderHeight),this.renderDecorations(o),this._lastRenderData=this.renderLines(o)}renderDecorations(e){if(this._renderDecorations){this._renderDecorations=!1;let r=this._model.getSelections();r.sort(Zt.compareRangesUsingStarts);let o=this._model.getMinimapDecorationsInViewport(e.startLineNumber,e.endLineNumber);o.sort((F,Y)=>(F.options.zIndex||0)-(Y.options.zIndex||0));let{canvasInnerWidth:c,canvasInnerHeight:d}=this._model.options,h=this._model.options.minimapLineHeight,b=this._model.options.minimapCharWidth,w=this._model.getOptions().tabSize,N=this._decorationsCanvas.domNode.getContext("2d");N.clearRect(0,0,c,d);let L=new D4t(e.startLineNumber,e.endLineNumber,!1);this._renderSelectionLineHighlights(N,r,L,e,h),this._renderDecorationsLineHighlights(N,o,L,e,h);let B=new D4t(e.startLineNumber,e.endLineNumber,null);this._renderSelectionsHighlights(N,r,B,e,h,w,b,c),this._renderDecorationsHighlights(N,o,B,e,h,w,b,c),this._renderSectionHeaders(e)}}_renderSelectionLineHighlights(e,r,o,c,d){if(!this._selectionColor||this._selectionColor.isTransparent())return;e.fillStyle=this._selectionColor.transparent(.5).toString();let h=0,b=0;for(let w of r){let N=c.intersectWithViewport(w);if(!N)continue;let[L,B]=N;for(let Z=L;Z<=B;Z++)o.set(Z,!0);let F=c.getYForLineNumber(L,d),Y=c.getYForLineNumber(B,d);b>=F||(b>h&&e.fillRect(BY,h,e.canvas.width,b-h),h=F),b=Y}b>h&&e.fillRect(BY,h,e.canvas.width,b-h)}_renderDecorationsLineHighlights(e,r,o,c,d){let h=new Map;for(let b=r.length-1;b>=0;b--){let w=r[b],N=w.options.minimap;if(!N||N.position!==1)continue;let L=c.intersectWithViewport(w.range);if(!L)continue;let[B,F]=L,Y=N.getColor(this._theme.value);if(!Y||Y.isTransparent())continue;let Z=h.get(Y.toString());Z||(Z=Y.transparent(.5).toString(),h.set(Y.toString(),Z)),e.fillStyle=Z;for(let ee=B;ee<=F;ee++){if(o.has(ee))continue;o.set(ee,!0);let Te=c.getYForLineNumber(B,d);e.fillRect(BY,Te,e.canvas.width,d)}}}_renderSelectionsHighlights(e,r,o,c,d,h,b,w){if(!(!this._selectionColor||this._selectionColor.isTransparent()))for(let N of r){let L=c.intersectWithViewport(N);if(!L)continue;let[B,F]=L;for(let Y=B;Y<=F;Y++)this.renderDecorationOnLine(e,o,N,this._selectionColor,c,Y,d,d,h,b,w)}}_renderDecorationsHighlights(e,r,o,c,d,h,b,w){for(let N of r){let L=N.options.minimap;if(!L)continue;let B=c.intersectWithViewport(N.range);if(!B)continue;let[F,Y]=B,Z=L.getColor(this._theme.value);if(!(!Z||Z.isTransparent()))for(let ee=F;ee<=Y;ee++)switch(L.position){case 1:this.renderDecorationOnLine(e,o,N.range,Z,c,ee,d,d,h,b,w);continue;case 2:{let Te=c.getYForLineNumber(ee,d);this.renderDecoration(e,Z,2,Te,hBi,d);continue}}}}renderDecorationOnLine(e,r,o,c,d,h,b,w,N,L,B){let F=d.getYForLineNumber(h,w);if(F+b<0||F>this._model.options.canvasInnerHeight)return;let{startLineNumber:Y,endLineNumber:Z}=o,ee=Y===h?o.startColumn:1,Te=Z===h?o.endColumn:this._model.getLineMaxColumn(h),Je=this.getXOffsetForPosition(r,h,ee,N,L,B),Xe=this.getXOffsetForPosition(r,h,Te,N,L,B);this.renderDecoration(e,c,Je,F,Xe-Je,b)}getXOffsetForPosition(e,r,o,c,d,h){if(o===1)return BY;if((o-1)*d>=h)return h;let w=e.get(r);if(!w){let N=this._model.getLineContent(r);w=[BY];let L=BY;for(let B=1;B=h){w[B]=h;break}w[B]=Z,L=Z}e.set(r,w)}return o-1Te.range.startLineNumber-Je.range.startLineNumber);let ee=l._fitSectionHeader.bind(null,Y,b-BY);for(let Te of Z){let Je=e.getYForLineNumber(Te.range.startLineNumber,o)+c,Xe=Je-c,ct=Xe+2,Ct=this._model.getSectionHeaderText(Te,ee);l._renderSectionLabel(Y,Ct,((r=Te.options.minimap)===null||r===void 0?void 0:r.sectionHeaderStyle)===2,N,B,b,Xe,h,Je,ct)}}static _fitSectionHeader(e,r,o){if(!o)return o;let c="\u2026",d=e.measureText(o).width,h=e.measureText(c).width;if(d<=r||d<=h)return o;let b=o.length,w=d/o.length,N=Math.floor((r-h)/w)-1,L=Math.ceil(N/2);for(;L>0&&/\s/.test(o[L-1]);)--L;return o.substring(0,L)+c+o.substring(b-(N-L))}static _renderSectionLabel(e,r,o,c,d,h,b,w,N,L){r&&(e.fillStyle=c,e.fillRect(0,b,h,w),e.fillStyle=d,e.fillText(r,BY,N)),o&&(e.beginPath(),e.moveTo(0,L),e.lineTo(h,L),e.closePath(),e.stroke())}renderLines(e){let r=e.startLineNumber,o=e.endLineNumber,c=this._model.options.minimapLineHeight;if(this._lastRenderData&&this._lastRenderData.linesEquals(e)){let ks=this._lastRenderData._get();return new w4t(e,ks.imageData,ks.lines)}let d=this._getBuffer();if(!d)return null;let[h,b,w]=l._renderUntouchedLines(d,e.topPaddingLineCount,r,o,c,this._lastRenderData),N=this._model.getMinimapLinesRenderingData(r,o,w),L=this._model.getOptions().tabSize,B=this._model.options.defaultBackgroundColor,F=this._model.options.backgroundColor,Y=this._model.options.foregroundAlpha,Z=this._model.tokensColorTracker,ee=Z.backgroundIsLight(),Te=this._model.options.renderMinimap,Je=this._model.options.charRenderer(),Xe=this._model.options.fontScale,ct=this._model.options.minimapCharWidth,Nt=(Te===1?2:3)*Xe,Yt=c>Nt?Math.floor((c-Nt)/2):0,jt=F.a/255,mi=new OV(Math.round((F.r-B.r)*jt+B.r),Math.round((F.g-B.g)*jt+B.g),Math.round((F.b-B.b)*jt+B.b),255),_n=e.topPaddingLineCount*c,Pr=[];for(let ks=0,La=o-r+1;ks=0&&drXe)return;let Rr=Te.charCodeAt(Nt);if(Rr===9){let Tn=F-(Nt+Yt)%F;Yt+=Tn-1,Ct+=Tn*h}else if(Rr===32)Ct+=h;else{let Tn=fV(Rr)?2:1;for(let Qn=0;QnXe)return}}}}},D4t=class{constructor(e,r,o){this._startLineNumber=e,this._endLineNumber=r,this._defaultValue=o,this._values=[];for(let c=0,d=this._endLineNumber-this._startLineNumber+1;cthis._endLineNumber||(this._values[e-this._startLineNumber]=r)}get(e){return ethis._endLineNumber?this._defaultValue:this._values[e-this._startLineNumber]}}});var yxi=ti(()=>{});var I4t,vxi=ti(()=>{yxi();SE();l3();nc();I4t=class extends ox{constructor(e,r){super(e),this._viewDomNode=r;let c=this._context.configuration.options.get(145);this._widgets={},this._verticalScrollbarWidth=c.verticalScrollbarWidth,this._minimapWidth=c.minimap.minimapWidth,this._horizontalScrollbarHeight=c.horizontalScrollbarHeight,this._editorHeight=c.height,this._editorWidth=c.width,this._viewDomNodeRect={top:0,left:0,width:0,height:0},this._domNode=V_(document.createElement("div")),yA.write(this._domNode,4),this._domNode.setClassName("overlayWidgets"),this.overflowingOverlayWidgetsDomNode=V_(document.createElement("div")),yA.write(this.overflowingOverlayWidgetsDomNode,5),this.overflowingOverlayWidgetsDomNode.setClassName("overflowingOverlayWidgets")}dispose(){super.dispose(),this._widgets={}}getDomNode(){return this._domNode}onConfigurationChanged(e){let o=this._context.configuration.options.get(145);return this._verticalScrollbarWidth=o.verticalScrollbarWidth,this._minimapWidth=o.minimap.minimapWidth,this._horizontalScrollbarHeight=o.horizontalScrollbarHeight,this._editorHeight=o.height,this._editorWidth=o.width,!0}addWidget(e){let r=V_(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:null,domNode:r},r.setPosition("absolute"),r.setAttribute("widgetId",e.getId()),e.allowEditorOverflow?this.overflowingOverlayWidgetsDomNode.appendChild(r):this._domNode.appendChild(r),this.setShouldRender(),this._updateMaxMinWidth()}setWidgetPosition(e,r){let o=this._widgets[e.getId()],c=r?r.preference:null,d=r?.stackOridinal;return o.preference===c&&o.stack===d?(this._updateMaxMinWidth(),!1):(o.preference=c,o.stack=d,this.setShouldRender(),this._updateMaxMinWidth(),!0)}removeWidget(e){let r=e.getId();if(this._widgets.hasOwnProperty(r)){let c=this._widgets[r].domNode.domNode;delete this._widgets[r],c.remove(),this.setShouldRender(),this._updateMaxMinWidth()}}_updateMaxMinWidth(){var e,r;let o=0,c=Object.keys(this._widgets);for(let d=0,h=c.length;d0);r.sort((c,d)=>(this._widgets[c].stack||0)-(this._widgets[d].stack||0));for(let c=0,d=r.length;c{SE();rx();l3();Iu();dy();PV();Hq();sd();tii=class{constructor(e,r){let o=e.options;this.lineHeight=o.get(67),this.pixelRatio=o.get(143),this.overviewRulerLanes=o.get(83),this.renderBorder=o.get(82);let c=r.getColor(dSi);this.borderColor=c?c.toString():null,this.hideCursor=o.get(59);let d=r.getColor(r$);this.cursorColorSingle=d?d.transparent(.7).toString():null;let h=r.getColor(TPt);this.cursorColorPrimary=h?h.transparent(.7).toString():null;let b=r.getColor(EPt);this.cursorColorSecondary=b?b.transparent(.7).toString():null,this.themeType=r.type;let w=o.get(73),N=w.enabled,L=w.side,B=r.getColor(fSi),F=a0.getDefaultBackground();B?this.backgroundColor=B:N&&L==="right"?this.backgroundColor=F:this.backgroundColor=null;let Z=o.get(145).overviewRuler;this.top=Z.top,this.right=Z.right,this.domWidth=Z.width,this.domHeight=Z.height,this.overviewRulerLanes===0?(this.canvasWidth=0,this.canvasHeight=0):(this.canvasWidth=this.domWidth*this.pixelRatio|0,this.canvasHeight=this.domHeight*this.pixelRatio|0);let[ee,Te]=this._initLanes(1,this.canvasWidth,this.overviewRulerLanes);this.x=ee,this.w=Te}_initLanes(e,r,o){let c=r-e;if(o>=3){let d=Math.floor(c/3),h=Math.floor(c/3),b=c-d-h,w=e,N=w+d,L=w+d+b;return[[0,w,N,w,L,w,N,w],[0,d,b,d+b,h,d+b+h,b+h,d+b+h]]}else if(o===2){let d=Math.floor(c/2),h=c-d,b=e,w=b+d;return[[0,b,b,b,w,b,b,b],[0,d,d,d,h,d+h,d+h,d+h]]}else{let d=e,h=c;return[[0,d,d,d,d,d,d,d],[0,h,h,h,h,h,h,h]]}}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&&po.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}},N4t=class extends ox{constructor(e){super(e),this._actualShouldRender=0,this._renderedDecorations=[],this._renderedCursorPositions=[],this._domNode=V_(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=a0.onDidChange(r=>{r.changedColorMap&&this._updateSettings(!0)}),this._cursorPositions=[{position:new qn(1,1),color:this._settings.cursorColorSingle}]}dispose(){super.dispose(),this._tokensColorTrackerListener.dispose()}_updateSettings(e){let r=new tii(this._context.configuration,this._context.theme);return this._settings&&this._settings.equals(r)?!1:(this._settings=r,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():!1}onCursorStateChanged(e){this._cursorPositions=[];for(let r=0,o=e.selections.length;r1&&(c=r===0?this._settings.cursorColorPrimary:this._settings.cursorColorSecondary),this._cursorPositions.push({position:e.selections[r].getPosition(),color:c})}return this._cursorPositions.sort((r,o)=>qn.compare(r.position,o.position)),this._markRenderingIsMaybeNeeded()}onDecorationsChanged(e){return e.affectsOverviewRuler?this._markRenderingIsMaybeNeeded():!1}onFlushed(e){return this._markRenderingIsNeeded()}onScrollChanged(e){return e.scrollHeightChanged?this._markRenderingIsNeeded():!1}onZonesChanged(e){return this._markRenderingIsNeeded()}onThemeChanged(e){return this._updateSettings(!1)?this._markRenderingIsNeeded():!1}getDomNode(){return this._domNode.domNode}prepareRender(e){}render(e){this._render(),this._actualShouldRender=0}_render(){let e=this._settings.backgroundColor;if(this._settings.overviewRulerLanes===0){this._domNode.setBackgroundColor(e?po.Format.CSS.formatHexA(e):""),this._domNode.setDisplay("none");return}let r=this._context.viewModel.getAllOverviewRulerDecorations(this._context.theme);if(r.sort(h6e.compareByRenderingProps),this._actualShouldRender===1&&!h6e.equalsArr(this._renderedDecorations,r)&&(this._actualShouldRender=2),this._actualShouldRender===1&&!Jm(this._renderedCursorPositions,this._cursorPositions,(Z,ee)=>Z.position.lineNumber===ee.position.lineNumber&&Z.color===ee.color)&&(this._actualShouldRender=2),this._actualShouldRender===1)return;this._renderedDecorations=r,this._renderedCursorPositions=this._cursorPositions,this._domNode.setDisplay("block");let o=this._settings.canvasWidth,c=this._settings.canvasHeight,d=this._settings.lineHeight,h=this._context.viewLayout,b=this._context.viewLayout.getScrollHeight(),w=c/b,N=6*this._settings.pixelRatio|0,L=N/2|0,B=this._domNode.domNode.getContext("2d");e?e.isOpaque()?(B.fillStyle=po.Format.CSS.formatHexA(e),B.fillRect(0,0,o,c)):(B.clearRect(0,0,o,c),B.fillStyle=po.Format.CSS.formatHexA(e),B.fillRect(0,0,o,c)):B.clearRect(0,0,o,c);let F=this._settings.x,Y=this._settings.w;for(let Z of r){let ee=Z.color,Te=Z.data;B.fillStyle=ee;let Je=0,Xe=0,ct=0;for(let Ct=0,Nt=Te.length/3;Ctc&&(Rr=c-L),_n=Rr-L,Pr=Rr+L}_n>ct+1||Yt!==Je?(Ct!==0&&B.fillRect(F[Je],Xe,Y[Je],ct-Xe),Je=Yt,Xe=_n,ct=Pr):Pr>ct&&(ct=Pr)}B.fillRect(F[Je],Xe,Y[Je],ct-Xe)}if(!this._settings.hideCursor){let Z=2*this._settings.pixelRatio|0,ee=Z/2|0,Te=this._settings.x[7],Je=this._settings.w[7],Xe=-100,ct=-100,Ct=null;for(let Nt=0,Yt=this._cursorPositions.length;Ntc&&(_n=c-ee);let Pr=_n-ee,dr=Pr+Z;Pr>ct+1||jt!==Ct?(Nt!==0&&Ct&&B.fillRect(Te,Xe,Je,ct-Xe),Xe=Pr,ct=dr):dr>ct&&(ct=dr),Ct=jt,B.fillStyle=jt}Ct&&B.fillRect(Te,Xe,Je,ct-Xe)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(B.beginPath(),B.lineWidth=1,B.strokeStyle=this._settings.borderColor,B.moveTo(0,0),B.lineTo(0,c),B.stroke(),B.moveTo(0,0),B.lineTo(o,0),B.stroke())}}});var A4t,Wdt,P4t,iii=ti(()=>{A4t=class{constructor(e,r,o){this._colorZoneBrand=void 0,this.from=e|0,this.to=r|0,this.colorId=o|0}static compare(e,r){return e.colorId===r.colorId?e.from===r.from?e.to-r.to:e.from-r.from:e.colorId-r.colorId}},Wdt=class{constructor(e,r,o,c){this._overviewRulerZoneBrand=void 0,this.startLineNumber=e,this.endLineNumber=r,this.heightInLines=o,this.color=c,this._colorZone=null}static compare(e,r){return e.color===r.color?e.startLineNumber===r.startLineNumber?e.heightInLines===r.heightInLines?e.endLineNumber-r.endLineNumber:e.heightInLines-r.heightInLines:e.startLineNumber-r.startLineNumber:e.coloro&&(ee=o-Te);let Je=L.color,Xe=this._color2Id[Je];Xe||(Xe=++this._lastAssignedId,this._color2Id[Je]=Xe,this._id2Color[Xe]=Je);let ct=new A4t(ee-Te,ee+Te,Xe);L.setColorZone(ct),b.push(ct)}return this._colorZonesInvalid=!1,b.sort(A4t.compare),b}}});var L4t,Sxi=ti(()=>{SE();iii();lHe();L4t=class extends Qq{constructor(e,r){super(),this._context=e;let o=this._context.configuration.options;this._domNode=V_(document.createElement("canvas")),this._domNode.setClassName(r),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._zoneManager=new P4t(c=>this._context.viewLayout.getVerticalOffsetForLineNumber(c)),this._zoneManager.setDOMWidth(0),this._zoneManager.setDOMHeight(0),this._zoneManager.setOuterHeight(this._context.viewLayout.getScrollHeight()),this._zoneManager.setLineHeight(o.get(67)),this._zoneManager.setPixelRatio(o.get(143)),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onConfigurationChanged(e){let r=this._context.configuration.options;return e.hasChanged(67)&&(this._zoneManager.setLineHeight(r.get(67)),this._render()),e.hasChanged(143)&&(this._zoneManager.setPixelRatio(r.get(143)),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 r=!1;r=this._zoneManager.setDOMWidth(e.width)||r,r=this._zoneManager.setDOMHeight(e.height)||r,r&&(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(this._zoneManager.getOuterHeight()===0)return!1;let e=this._zoneManager.getCanvasWidth(),r=this._zoneManager.getCanvasHeight(),o=this._zoneManager.resolveColorZones(),c=this._zoneManager.getId2Color(),d=this._domNode.domNode.getContext("2d");return d.clearRect(0,0,e,r),o.length>0&&this._renderOneLane(d,o,c,e),!0}_renderOneLane(e,r,o,c){let d=0,h=0,b=0;for(let w of r){let N=w.colorId,L=w.from,B=w.to;N!==d?(e.fillRect(0,h,c,b-h),d=N,e.fillStyle=o[d],h=L,b=B):b>=L?b=Math.max(b,B):(e.fillRect(0,h,c,b-h),h=L,b=B)}e.fillRect(0,h,c,b-h)}}});var xxi=ti(()=>{});var O4t,Cxi=ti(()=>{xxi();SE();l3();O4t=class extends ox{constructor(e){super(e),this.domNode=V_(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.domNode.setClassName("view-rulers"),this._renderedRulers=[];let r=this._context.configuration.options;this._rulers=r.get(102),this._typicalHalfwidthCharacterWidth=r.get(50).typicalHalfwidthCharacterWidth}dispose(){super.dispose()}onConfigurationChanged(e){let r=this._context.configuration.options;return this._rulers=r.get(102),this._typicalHalfwidthCharacterWidth=r.get(50).typicalHalfwidthCharacterWidth,!0}onScrollChanged(e){return e.scrollHeightChanged}prepareRender(e){}_ensureRulersCount(){let e=this._renderedRulers.length,r=this._rulers.length;if(e===r)return;if(e0;){let b=V_(document.createElement("div"));b.setClassName("view-ruler"),b.setWidth(d),this.domNode.appendChild(b),this._renderedRulers.push(b),h--}return}let o=e-r;for(;o>0;){let c=this._renderedRulers.pop();this.domNode.removeChild(c),o--}}render(e){this._ensureRulersCount();for(let r=0,o=this._rulers.length;r{});var F4t,wxi=ti(()=>{kxi();SE();l3();F4t=class extends ox{constructor(e){super(e),this._scrollTop=0,this._width=0,this._updateWidth(),this._shouldShow=!1;let o=this._context.configuration.options.get(103);this._useShadows=o.useShadows,this._domNode=V_(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true")}dispose(){super.dispose()}_updateShouldShow(){let e=this._useShadows&&this._scrollTop>0;return this._shouldShow!==e?(this._shouldShow=e,!0):!1}getDomNode(){return this._domNode}_updateWidth(){let r=this._context.configuration.options.get(145);r.minimap.renderMinimap===0||r.minimap.minimapWidth>0&&r.minimap.minimapLeft===0?this._width=r.width:this._width=r.width-r.verticalScrollbarWidth}onConfigurationChanged(e){let o=this._context.configuration.options.get(103);return this._useShadows=o.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":"")}}});var Txi=ti(()=>{});function gBi(l){return new nii(l)}function yBi(l){return new rii(l.lineNumber,l.ranges.map(gBi))}function M4t(l){return l<0?-l:l}var nii,rii,aQ,Exi=ti(()=>{Txi();PSe();q1();x0();nii=class{constructor(e){this.left=e.left,this.width=e.width,this.startStyle=null,this.endStyle=null}},rii=class{constructor(e,r){this.lineNumber=e,this.ranges=r}};aQ=class l extends c7{constructor(e){super(),this._previousFrameVisibleRangesWithStyle=[],this._context=e;let r=this._context.configuration.options;this._roundedSelection=r.get(101),this._typicalHalfwidthCharacterWidth=r.get(50).typicalHalfwidthCharacterWidth,this._selections=[],this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){let r=this._context.configuration.options;return this._roundedSelection=r.get(101),this._typicalHalfwidthCharacterWidth=r.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 r=0,o=e.length;r1)return!0;return!1}_enrichVisibleRangesWithStyle(e,r,o){let c=this._typicalHalfwidthCharacterWidth/4,d=null,h=null;if(o&&o.length>0&&r.length>0){let b=r[0].lineNumber;if(b===e.startLineNumber)for(let N=0;!d&&N=0;N--)o[N].lineNumber===w&&(h=o[N].ranges[0]);d&&!d.startStyle&&(d=null),h&&!h.startStyle&&(h=null)}for(let b=0,w=r.length;b0){let Z=r[b-1].ranges[0].left,ee=r[b-1].ranges[0].left+r[b-1].ranges[0].width;M4t(L-Z)Z&&(F.top=1),M4t(B-ee)'}_actualRenderOneSelection(e,r,o,c){if(c.length===0)return;let d=!!c[0].ranges[0].startStyle,h=c[0].lineNumber,b=c[c.length-1].lineNumber;for(let w=0,N=c.length;w1,N)}this._previousFrameVisibleRangesWithStyle=d,this._renderResult=r.map(([h,b])=>h+b)}render(e,r){if(!this._renderResult)return"";let o=r-e;return o<0||o>=this._renderResult.length?"":this._renderResult[o]}};aQ.SELECTION_CLASS_NAME="selected-text";aQ.SELECTION_TOP_LEFT="top-left-radius";aQ.SELECTION_BOTTOM_LEFT="bottom-left-radius";aQ.SELECTION_TOP_RIGHT="top-right-radius";aQ.SELECTION_BOTTOM_RIGHT="bottom-right-radius";aQ.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background";aQ.ROUNDED_PIECE_WIDTH=10;AT((l,e)=>{let r=l.getColor(d1i);r&&!r.isTransparent()&&e.addRule(`.monaco-editor .view-line span.inline-selected-text { color: ${r}; }`)})});var Dxi=ti(()=>{});var R4t,sre,zdt,Ixi=ti(()=>{nc();SE();Mu();xB();TT();Iu();Xa();FPt();R4t=class{constructor(e,r,o,c,d,h,b){this.top=e,this.left=r,this.paddingLeft=o,this.width=c,this.height=d,this.textContent=h,this.textContentClassName=b}};(function(l){l[l.Single=0]="Single",l[l.MultiPrimary=1]="MultiPrimary",l[l.MultiSecondary=2]="MultiSecondary"})(sre||(sre={}));zdt=class{constructor(e,r){this._context=e;let o=this._context.configuration.options,c=o.get(50);this._cursorStyle=o.get(28),this._lineHeight=o.get(67),this._typicalHalfwidthCharacterWidth=c.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(o.get(31),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=V_(document.createElement("div")),this._domNode.setClassName(`cursor ${Nfe}`),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),Bb(this._domNode,c),this._domNode.setDisplay("none"),this._position=new qn(1,1),this._pluralityClass="",this.setPlurality(r),this._lastRenderedContent="",this._renderData=null}getDomNode(){return this._domNode}getPosition(){return this._position}setPlurality(e){switch(e){default:case sre.Single:this._pluralityClass="";break;case sre.MultiPrimary:this._pluralityClass="cursor-primary";break;case sre.MultiSecondary:this._pluralityClass="cursor-secondary";break}}show(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)}hide(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)}onConfigurationChanged(e){let r=this._context.configuration.options,o=r.get(50);return this._cursorStyle=r.get(28),this._lineHeight=r.get(67),this._typicalHalfwidthCharacterWidth=o.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(r.get(31),this._typicalHalfwidthCharacterWidth),Bb(this._domNode,o),!0}onCursorPositionChanged(e,r){return r?this._domNode.domNode.style.transitionProperty="none":this._domNode.domNode.style.transitionProperty="",this._position=e,!0}_getGraphemeAwarePosition(){let{lineNumber:e,column:r}=this._position,o=this._context.viewModel.getLineContent(e),[c,d]=e0i(o,r-1);return[new qn(e,c+1),o.substring(c,d)]}_prepareRender(e){let r="",o="",[c,d]=this._getGraphemeAwarePosition();if(this._cursorStyle===ND.Line||this._cursorStyle===ND.LineThin){let F=e.visibleRangeForPosition(c);if(!F||F.outsideRenderedLine)return null;let Y=Gc(this._domNode.domNode),Z;this._cursorStyle===ND.Line?(Z=GQt(Y,this._lineCursorWidth>0?this._lineCursorWidth:2),Z>2&&(r=d,o=this._getTokenClassName(c))):Z=GQt(Y,1);let ee=F.left,Te=0;Z>=2&&ee>=1&&(Te=1,ee-=Te);let Je=e.getVerticalOffsetForLineNumber(c.lineNumber)-e.bigNumbersDelta;return new R4t(Je,ee,Te,Z,this._lineHeight,r,o)}let h=e.linesVisibleRangesForRange(new Zt(c.lineNumber,c.column,c.lineNumber,c.column+d.length),!1);if(!h||h.length===0)return null;let b=h[0];if(b.outsideRenderedLine||b.ranges.length===0)return null;let w=b.ranges[0],N=d===" "?this._typicalHalfwidthCharacterWidth:w.width<1?this._typicalHalfwidthCharacterWidth:w.width;this._cursorStyle===ND.Block&&(r=d,o=this._getTokenClassName(c));let L=e.getVerticalOffsetForLineNumber(c.lineNumber)-e.bigNumbersDelta,B=this._lineHeight;return(this._cursorStyle===ND.Underline||this._cursorStyle===ND.UnderlineThin)&&(L+=this._lineHeight-2,B=2),new R4t(L,w.left,0,N,B,r,o)}_getTokenClassName(e){let r=this._context.viewModel.getViewLineData(e.lineNumber),o=r.tokens.findTokenIndexAtOffset(e.column-1);return r.tokens.getClassName(o)}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} ${Nfe} ${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)}}});var Vdt,Nxi=ti(()=>{Dxi();SE();Ud();l3();Ixi();TT();PV();x0();Zq();nc();Vdt=class l extends ox{constructor(e){super(e);let r=this._context.configuration.options;this._readOnly=r.get(91),this._cursorBlinking=r.get(26),this._cursorStyle=r.get(28),this._cursorSmoothCaretAnimation=r.get(27),this._selectionIsEmpty=!0,this._isComposingInput=!1,this._isVisible=!1,this._primaryCursor=new zdt(this._context,sre.Single),this._secondaryCursors=[],this._renderData=[],this._domNode=V_(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 ET,this._cursorFlatBlinkInterval=new eSe,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){let r=this._context.configuration.options;this._readOnly=r.get(91),this._cursorBlinking=r.get(26),this._cursorStyle=r.get(28),this._cursorSmoothCaretAnimation=r.get(27),this._updateBlinking(),this._updateDomClassName(),this._primaryCursor.onConfigurationChanged(e);for(let o=0,c=this._secondaryCursors.length;or.length){let d=this._secondaryCursors.length-r.length;for(let h=0;h{for(let c=0,d=e.ranges.length;c{this._isVisible?this._hide():this._show()},l.BLINK_INTERVAL,Gc(this._domNode.domNode)):this._startCursorBlinkAnimation.setIfNotSet(()=>{this._blinkingEnabled=!0,this._updateDomClassName()},l.BLINK_INTERVAL))}_updateDomClassName(){this._domNode.setClassName(this._getClassName())}_getClassName(){let e="cursors-layer";switch(this._selectionIsEmpty||(e+=" has-selection"),this._cursorStyle){case ND.Line:e+=" cursor-line-style";break;case ND.Block:e+=" cursor-block-style";break;case ND.Underline:e+=" cursor-underline-style";break;case ND.LineThin:e+=" cursor-line-thin-style";break;case ND.BlockOutline:e+=" cursor-block-outline-style";break;case ND.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;case 5:e+=" cursor-solid";break;default:e+=" cursor-solid"}else e+=" cursor-solid";return(this._cursorSmoothCaretAnimation==="on"||this._cursorSmoothCaretAnimation==="explicit")&&(e+=" cursor-smooth-caret-animation"),e}_show(){this._primaryCursor.show();for(let e=0,r=this._secondaryCursors.length;e{let r=[{class:".cursor",foreground:r$,background:nre},{class:".cursor-primary",foreground:TPt,background:Ybi},{class:".cursor-secondary",foreground:EPt,background:Qbi}];for(let o of r){let c=l.getColor(o.foreground);if(c){let d=l.getColor(o.background);d||(d=c.opposite()),e.addRule(`.monaco-editor .cursors-layer ${o.class} { background-color: ${c}; border-color: ${c}; color: ${d}; }`),T6(l.type)&&e.addRule(`.monaco-editor .cursors-layer.has-selection ${o.class} { border-left: 1px solid ${d}; border-right: 1px solid ${d}; }`)}}})});function vBi(l,e){try{return l(e)}catch(r){dl(r)}}var oii,B4t,Axi=ti(()=>{SE();Du();l3();Iu();oii=()=>{throw new Error("Invalid change accessor")},B4t=class extends ox{constructor(e){super(e);let r=this._context.configuration.options,o=r.get(145);this._lineHeight=r.get(67),this._contentWidth=o.contentWidth,this._contentLeft=o.contentLeft,this.domNode=V_(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=V_(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(){let e=this._context.viewLayout.getWhitespaces(),r=new Map;for(let c of e)r.set(c.id,c);let o=!1;return this._context.viewModel.changeWhitespace(c=>{let d=Object.keys(this._zones);for(let h=0,b=d.length;h{let c={addZone:d=>(r=!0,this._addZone(o,d)),removeZone:d=>{d&&(r=this._removeZone(o,d)||r)},layoutZone:d=>{d&&(r=this._layoutZone(o,d)||r)}};vBi(e,c),c.addZone=oii,c.removeZone=oii,c.layoutZone=oii}),r}_addZone(e,r){let o=this._computeWhitespaceProps(r),d={whitespaceId:e.insertWhitespace(o.afterViewLineNumber,this._getZoneOrdinal(r),o.heightInPx,o.minWidthInPx),delegate:r,isInHiddenArea:o.isInHiddenArea,isVisible:!1,domNode:V_(r.domNode),marginDomNode:r.marginDomNode?V_(r.marginDomNode):null};return this._safeCallOnComputedHeight(d.delegate,o.heightInPx),d.domNode.setPosition("absolute"),d.domNode.domNode.style.width="100%",d.domNode.setDisplay("none"),d.domNode.setAttribute("monaco-view-zone",d.whitespaceId),this.domNode.appendChild(d.domNode),d.marginDomNode&&(d.marginDomNode.setPosition("absolute"),d.marginDomNode.domNode.style.width="100%",d.marginDomNode.setDisplay("none"),d.marginDomNode.setAttribute("monaco-view-zone",d.whitespaceId),this.marginDomNode.appendChild(d.marginDomNode)),this._zones[d.whitespaceId]=d,this.setShouldRender(),d.whitespaceId}_removeZone(e,r){if(this._zones.hasOwnProperty(r)){let o=this._zones[r];return delete this._zones[r],e.removeWhitespace(o.whitespaceId),o.domNode.removeAttribute("monaco-visible-view-zone"),o.domNode.removeAttribute("monaco-view-zone"),o.domNode.domNode.parentNode.removeChild(o.domNode.domNode),o.marginDomNode&&(o.marginDomNode.removeAttribute("monaco-visible-view-zone"),o.marginDomNode.removeAttribute("monaco-view-zone"),o.marginDomNode.domNode.parentNode.removeChild(o.marginDomNode.domNode)),this.setShouldRender(),!0}return!1}_layoutZone(e,r){if(this._zones.hasOwnProperty(r)){let o=this._zones[r],c=this._computeWhitespaceProps(o.delegate);return o.isInHiddenArea=c.isInHiddenArea,e.changeOneWhitespace(o.whitespaceId,c.afterViewLineNumber,c.heightInPx),this._safeCallOnComputedHeight(o.delegate,c.heightInPx),this.setShouldRender(),!0}return!1}shouldSuppressMouseDownOnViewZone(e){return this._zones.hasOwnProperty(e)?!!this._zones[e].delegate.suppressMouseDown:!1}_heightInPixels(e){return typeof e.heightInPx=="number"?e.heightInPx:typeof e.heightInLines=="number"?this._lineHeight*e.heightInLines:this._lineHeight}_minWidthInPixels(e){return typeof e.minWidthInPx=="number"?e.minWidthInPx:0}_safeCallOnComputedHeight(e,r){if(typeof e.onComputedHeight=="function")try{e.onComputedHeight(r)}catch(o){dl(o)}}_safeCallOnDomNodeTop(e,r){if(typeof e.onDomNodeTop=="function")try{e.onDomNodeTop(r)}catch(o){dl(o)}}prepareRender(e){}render(e){let r=e.viewportData.whitespaceViewportData,o={},c=!1;for(let h of r)this._zones[h.id].isInHiddenArea||(o[h.id]=h,c=!0);let d=Object.keys(this._zones);for(let h=0,b=d.length;h{});var j4t,W4t,Lxi=ti(()=>{Pxi();PSe();Mu();bSe();Iu();PV();j4t=class extends c7{constructor(e){super(),this._context=e,this._options=new W4t(this._context.configuration),this._selection=[],this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){let r=new W4t(this._context.configuration);return this._options.equals(r)?e.hasChanged(145):(this._options=r,!0)}onCursorStateChanged(e){return this._selection=e.selections,this._options.renderWhitespace==="selection"}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(this._options.renderWhitespace==="none"){this._renderResult=null;return}let r=e.visibleRange.startLineNumber,c=e.visibleRange.endLineNumber-r+1,d=new Array(c);for(let b=0;bb)continue;let Y=F.startLineNumber===b?F.startColumn:N.minColumn,Z=F.endLineNumber===b?F.endColumn:N.maxColumn;Y=Pr.endOffset&&(_n++,Pr=o&&o[_n]),Tn!==9&&Tn!==32||F&&!Yt&&Rr<=mi)continue;if(B&&Rr>=jt&&Rr<=mi&&Tn===32){let ks=Rr-1>=0?b.charCodeAt(Rr-1):0,La=Rr+1=0?b.charCodeAt(Rr-1):0;if(Tn===32&&ks!==32&&ks!==9)continue}if(o&&(!Pr||Pr.startOffset>Rr||Pr.endOffset<=Rr))continue;let Qn=e.visibleRangeForPosition(new qn(r,Rr+1));Qn&&(h?(dr=Math.max(dr,Qn.left),Tn===9?Nt+=this._renderArrow(Y,Te,Qn.left):Nt+=``):Tn===9?Nt+=`
${Ct?"\uFFEB":"\u2192"}
`:Nt+=`
${String.fromCharCode(ct)}
`)}return h?(dr=Math.round(dr+Te),``+Nt+""):Nt}_renderArrow(e,r,o){let c=r/7,d=r,h=e/2,b=o,w={x:0,y:c/2},N={x:100/125*d,y:w.y},L={x:N.x-.2*N.x,y:N.y+.2*N.x},B={x:L.x+.1*N.x,y:L.y+.1*N.x},F={x:B.x+.35*N.x,y:B.y-.35*N.x},Y={x:F.x,y:-F.y},Z={x:B.x,y:-B.y},ee={x:L.x,y:-L.y},Te={x:N.x,y:-N.y},Je={x:w.x,y:-w.y};return``}render(e,r){if(!this._renderResult)return"";let o=r-e;return o<0||o>=this._renderResult.length?"":this._renderResult[o]}},W4t=class{constructor(e){let r=e.options,o=r.get(50),c=r.get(38);c==="off"?(this.renderWhitespace="none",this.renderWithSVG=!1):c==="svg"?(this.renderWhitespace=r.get(99),this.renderWithSVG=!0):(this.renderWhitespace=r.get(99),this.renderWithSVG=!1),this.spaceWidth=o.spaceWidth,this.middotWidth=o.middotWidth,this.wsmiddotWidth=o.wsmiddotWidth,this.canUseHalfwidthRightwardsArrow=o.canUseHalfwidthRightwardsArrow,this.lineHeight=r.get(67),this.stopRenderingLineAfter=r.get(117)}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}}});var z4t,Oxi=ti(()=>{Xa();z4t=class{constructor(e,r,o,c){this.selections=e,this.startLineNumber=r.startLineNumber|0,this.endLineNumber=r.endLineNumber|0,this.relativeVerticalOffset=r.relativeVerticalOffset,this.bigNumbersDelta=r.bigNumbersDelta|0,this.lineHeight=r.lineHeight|0,this.whitespaceViewportData=o,this._model=c,this.visibleRange=new Zt(r.startLineNumber,this._model.getLineMinColumn(r.startLineNumber),r.endLineNumber,this._model.getLineMaxColumn(r.endLineNumber))}getViewLineRenderingData(e){return this._model.getViewportViewLineRenderingData(this.visibleRange,e)}getDecorationsInViewport(){return this._model.getDecorationsInViewport(this.visibleRange)}}});var V4t,Fxi=ti(()=>{V4t=class{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)}}});var H4t,Mxi=ti(()=>{Fxi();H4t=class{constructor(e,r,o){this.configuration=e,this.theme=new V4t(r),this.viewModel=o,this.viewLayout=o.viewLayout}addEventHandler(e){this.viewModel.addViewEventHandler(e)}removeEventHandler(e){this.viewModel.removeViewEventHandler(e)}}});function RSe(l){try{return l()}catch(e){return dl(e),null}}var bBi,SBi,U4t,Hdt,Rxi=ti(()=>{nc();SE();zei();Du();cti();$bi();LSi();dHe();zSi();VSi();l3();Fti();USi();JSi();$Si();KSi();XSi();h4t();ZSi();kti();ixi();rxi();wti();sxi();gxi();vxi();bxi();Sxi();Cxi();wxi();Exi();Nxi();Axi();Lxi();Iu();Xa();j0();MD();lHe();Oxi();Mxi();bl();x0();bBi=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},SBi=function(l,e){return function(r,o){e(r,o,l)}},U4t=class extends Qq{constructor(e,r,o,c,d,h,b){super(),this._instantiationService=b,this._shouldRecomputeGlyphMarginLanes=!1,this._selections=[new ic(1,1,1,1)],this._renderAnimationFrame=null;let w=new i4t(r,c,d,e);this._context=new H4t(r,o,c),this._context.addEventHandler(this),this._viewParts=[],this._textAreaHandler=this._instantiationService.createInstance(MPt,this._context,w,this._createTextAreaHandlerHelper()),this._viewParts.push(this._textAreaHandler),this._linesContent=V_(document.createElement("div")),this._linesContent.setClassName("lines-content monaco-editor-background"),this._linesContent.setPosition("absolute"),this.domNode=V_(document.createElement("div")),this.domNode.setClassName(this._getEditorClassName()),this.domNode.setAttribute("role","code"),this._overflowGuardContainer=V_(document.createElement("div")),yA.write(this._overflowGuardContainer,3),this._overflowGuardContainer.setClassName("overflow-guard"),this._scrollbar=new p4t(this._context,this._linesContent,this.domNode,this._overflowGuardContainer),this._viewParts.push(this._scrollbar),this._viewLines=new Bdt(this._context,this._linesContent),this._viewZones=new B4t(this._context),this._viewParts.push(this._viewZones);let N=new N4t(this._context);this._viewParts.push(N);let L=new F4t(this._context);this._viewParts.push(L);let B=new o4t(this._context);this._viewParts.push(B),B.addDynamicOverlay(new d4t(this._context)),B.addDynamicOverlay(new aQ(this._context)),B.addDynamicOverlay(new b4t(this._context)),B.addDynamicOverlay(new _4t(this._context)),B.addDynamicOverlay(new j4t(this._context));let F=new s4t(this._context);this._viewParts.push(F),F.addDynamicOverlay(new f4t(this._context)),F.addDynamicOverlay(new x4t(this._context)),F.addDynamicOverlay(new S4t(this._context)),F.addDynamicOverlay(new F6e(this._context)),this._glyphMarginWidgets=new m4t(this._context),this._viewParts.push(this._glyphMarginWidgets);let Y=new LSe(this._context);Y.getDomNode().appendChild(this._viewZones.marginDomNode),Y.getDomNode().appendChild(F.getDomNode()),Y.getDomNode().appendChild(this._glyphMarginWidgets.domNode),this._viewParts.push(Y),this._contentWidgets=new c4t(this._context,this.domNode),this._viewParts.push(this._contentWidgets),this._viewCursors=new Vdt(this._context),this._viewParts.push(this._viewCursors),this._overlayWidgets=new I4t(this._context,this.domNode),this._viewParts.push(this._overlayWidgets);let Z=new O4t(this._context);this._viewParts.push(Z);let ee=new a4t(this._context);this._viewParts.push(ee);let Te=new E4t(this._context);if(this._viewParts.push(Te),N){let Je=this._scrollbar.getOverviewRulerLayoutInfo();Je.parent.insertBefore(N.getDomNode(),Je.insertBefore)}this._linesContent.appendChild(B.getDomNode()),this._linesContent.appendChild(Z.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(Y.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(Te.getDomNode()),this._overflowGuardContainer.appendChild(ee.domNode),this.domNode.appendChild(this._overflowGuardContainer),h?(h.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode.domNode),h.appendChild(this._overlayWidgets.overflowingOverlayWidgetsDomNode.domNode)):(this.domNode.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode),this.domNode.appendChild(this._overlayWidgets.overflowingOverlayWidgetsDomNode)),this._applyLayout(),this._pointerHandler=this._register(new bPt(this._context,w,this._createPointerHandlerHelper()))}_computeGlyphMarginLanes(){let e=this._context.viewModel.model,r=this._context.viewModel.glyphLanes,o=[],c=0;o=o.concat(e.getAllMarginDecorations().map(d=>{var h,b,w;let N=(b=(h=d.options.glyphMargin)===null||h===void 0?void 0:h.position)!==null&&b!==void 0?b:n7.Center;return c=Math.max(c,d.range.endLineNumber),{range:d.range,lane:N,persist:(w=d.options.glyphMargin)===null||w===void 0?void 0:w.persistLane}})),o=o.concat(this._glyphMarginWidgets.getWidgets().map(d=>{let h=e.validateRange(d.preference.range);return c=Math.max(c,h.endLineNumber),{range:h,lane:d.preference.lane}})),o.sort((d,h)=>Zt.compareRangesUsingStarts(d.range,h.range)),r.reset(c);for(let d of o)r.push(d.lane,d.range,d.persist);return r}_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:()=>{let e=this._viewCursors.getLastRenderData()||[],r=this._textAreaHandler.getLastRenderData();return new oPt(e,r)},renderNow:()=>{this.render(!0,!1)},shouldSuppressMouseDownOnViewZone:e=>this._viewZones.shouldSuppressMouseDownOnViewZone(e),shouldSuppressMouseDownOnWidget:e=>this._contentWidgets.shouldSuppressMouseDownOnWidget(e),getPositionFromDOMInfo:(e,r)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getPositionFromDOMInfo(e,r)),visibleRangeForPosition:(e,r)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(new qn(e,r))),getLineWidth:e=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getLineWidth(e))}}_createTextAreaHandlerHelper(){return{visibleRangeForPosition:e=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(e))}}_applyLayout(){let r=this._context.configuration.options.get(145);this.domNode.setWidth(r.width),this.domNode.setHeight(r.height),this._overflowGuardContainer.setWidth(r.width),this._overflowGuardContainer.setHeight(r.height),this._linesContent.setWidth(16777216),this._linesContent.setHeight(16777216)}_getEditorClassName(){let e=this._textAreaHandler.isFocused()?" focused":"";return this._context.configuration.options.get(142)+" "+Tdt(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(){this._renderAnimationFrame!==null&&(this._renderAnimationFrame.dispose(),this._renderAnimationFrame=null),this._contentWidgets.overflowingContentWidgetsDomNode.domNode.remove(),this._context.removeEventHandler(this),this._viewLines.dispose();for(let e of this._viewParts)e.dispose();super.dispose()}_scheduleRender(){if(this._store.isDisposed)throw new Hp;if(this._renderAnimationFrame===null){let e=this._createCoordinatedRendering();this._renderAnimationFrame=Hdt.INSTANCE.scheduleCoordinatedRendering({window:Gc(this.domNode.domNode),prepareRenderText:()=>{if(this._store.isDisposed)throw new Hp;try{return e.prepareRenderText()}finally{this._renderAnimationFrame=null}},renderText:()=>{if(this._store.isDisposed)throw new Hp;return e.renderText()},prepareRender:(r,o)=>{if(this._store.isDisposed)throw new Hp;return e.prepareRender(r,o)},render:(r,o)=>{if(this._store.isDisposed)throw new Hp;return e.render(r,o)}})}}_flushAccumulatedAndRenderNow(){let e=this._createCoordinatedRendering();RSe(()=>e.prepareRenderText());let r=RSe(()=>e.renderText());if(r){let[o,c]=r;RSe(()=>e.prepareRender(o,c)),RSe(()=>e.render(o,c))}}_getViewPartsToRender(){let e=[],r=0;for(let o of this._viewParts)o.shouldRender()&&(e[r++]=o);return e}_createCoordinatedRendering(){return{prepareRenderText:()=>{if(this._shouldRecomputeGlyphMarginLanes){this._shouldRecomputeGlyphMarginLanes=!1;let e=this._computeGlyphMarginLanes();this._context.configuration.setGlyphMarginDecorationLaneCount(e.requiredLanes)}Xne.onRenderStart()},renderText:()=>{if(!this.domNode.domNode.isConnected)return null;let e=this._getViewPartsToRender();if(!this._viewLines.shouldRender()&&e.length===0)return null;let r=this._context.viewLayout.getLinesViewportData();this._context.viewModel.setViewport(r.startLineNumber,r.endLineNumber,r.centeredLineNumber);let o=new z4t(this._selections,r,this._context.viewLayout.getWhitespaceViewportData(),this._context.viewModel);return this._contentWidgets.shouldRender()&&this._contentWidgets.onBeforeRender(o),this._viewLines.shouldRender()&&(this._viewLines.renderText(o),this._viewLines.onDidRender(),e=this._getViewPartsToRender()),[e,new QAt(this._context.viewLayout,o,this._viewLines)]},prepareRender:(e,r)=>{for(let o of e)o.prepareRender(r)},render:(e,r)=>{for(let o of e)o.render(r),o.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,r){let o=this._context.viewModel.model.validatePosition({lineNumber:e,column:r}),c=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(o);this._flushAccumulatedAndRenderNow();let d=this._viewLines.visibleRangeForPosition(new qn(c.lineNumber,c.column));return d?d.left:-1}getTargetAtClientPoint(e,r){let o=this._pointerHandler.getTargetAtClientPoint(e,r);return o?kHe.convertViewToModelMouseTarget(o,this._context.viewModel.coordinatesConverter):null}createOverviewRuler(e){return new L4t(this._context,e)}change(e){this._viewZones.changeViewZones(e),this._scheduleRender()}render(e,r){if(r){this._viewLines.forceShouldRender();for(let o of this._viewParts)o.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){var r,o,c,d,h,b,w,N;this._contentWidgets.setWidgetPosition(e.widget,(o=(r=e.position)===null||r===void 0?void 0:r.position)!==null&&o!==void 0?o:null,(d=(c=e.position)===null||c===void 0?void 0:c.secondaryPosition)!==null&&d!==void 0?d:null,(b=(h=e.position)===null||h===void 0?void 0:h.preference)!==null&&b!==void 0?b:null,(N=(w=e.position)===null||w===void 0?void 0:w.positionAffinity)!==null&&N!==void 0?N: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){let r=e.position;this._glyphMarginWidgets.setWidgetPosition(e.widget,r)&&(this._shouldRecomputeGlyphMarginLanes=!0,this._scheduleRender())}removeGlyphMarginWidget(e){this._glyphMarginWidgets.removeWidget(e.widget),this._shouldRecomputeGlyphMarginLanes=!0,this._scheduleRender()}};U4t=bBi([SBi(6,Pa)],U4t);Hdt=class{constructor(){this._coordinatedRenderings=[],this._animationFrameRunners=new Map}scheduleCoordinatedRendering(e){return this._coordinatedRenderings.push(e),this._scheduleRender(e.window),{dispose:()=>{let r=this._coordinatedRenderings.indexOf(e);if(r!==-1&&(this._coordinatedRenderings.splice(r,1),this._coordinatedRenderings.length===0)){for(let[o,c]of this._animationFrameRunners)c.dispose();this._animationFrameRunners.clear()}}}}_scheduleRender(e){if(!this._animationFrameRunners.has(e)){let r=()=>{this._animationFrameRunners.delete(e),this._onRenderScheduled()};this._animationFrameRunners.set(e,fVe(e,r,100))}}_onRenderScheduled(){let e=this._coordinatedRenderings.slice(0);this._coordinatedRenderings=[];for(let o of e)RSe(()=>o.prepareRenderText());let r=[];for(let o=0,c=e.length;od.renderText())}for(let o=0,c=e.length;od.prepareRender(b,w))}for(let o=0,c=e.length;od.render(b,w))}}};Hdt.INSTANCE=new Hdt});function Bxi(l){return l==null?!0:l===r7.Right||l===r7.Both}function jxi(l){return l==null?!0:l===r7.Left||l===r7.Both}var Mfe,NHe,sii=ti(()=>{jq();Iu();MD();Mfe=class{constructor(e,r,o,c,d){this.injectionOffsets=e,this.injectionOptions=r,this.breakOffsets=o,this.breakOffsetsVisibleColumn=c,this.wrappedTextIndentLength=d}getOutputLineCount(){return this.breakOffsets.length}getMinOutputOffset(e){return e>0?this.wrappedTextIndentLength:0}getLineLength(e){let r=e>0?this.breakOffsets[e-1]:0,c=this.breakOffsets[e]-r;return e>0&&(c+=this.wrappedTextIndentLength),c}getMaxOutputOffset(e){return this.getLineLength(e)}translateToInputOffset(e,r){e>0&&(r=Math.max(0,r-this.wrappedTextIndentLength));let c=e===0?r:this.breakOffsets[e-1]+r;if(this.injectionOffsets!==null)for(let d=0;dthis.injectionOffsets[d];d++)c0?this.breakOffsets[d-1]:0,r===0)if(e<=h)c=d-1;else if(e>w)o=d+1;else break;else if(e=w)o=d+1;else break}let b=e-h;return d>0&&(b+=this.wrappedTextIndentLength),new NHe(d,b)}normalizeOutputPosition(e,r,o){if(this.injectionOffsets!==null){let c=this.outputPositionToOffsetInInputWithInjections(e,r),d=this.normalizeOffsetInInputWithInjectionsAroundInjections(c,o);if(d!==c)return this.offsetInInputWithInjectionsToOutputPosition(d,o)}if(o===0){if(e>0&&r===this.getMinOutputOffset(e))return new NHe(e-1,this.getMaxOutputOffset(e-1))}else if(o===1){let c=this.getOutputLineCount()-1;if(e0&&(r=Math.max(0,r-this.wrappedTextIndentLength)),(e>0?this.breakOffsets[e-1]:0)+r}normalizeOffsetInInputWithInjectionsAroundInjections(e,r){let o=this.getInjectedTextAtOffset(e);if(!o)return e;if(r===2){if(e===o.offsetInInputWithInjections+o.length&&Bxi(this.injectionOptions[o.injectedTextIndex].cursorStops))return o.offsetInInputWithInjections+o.length;{let c=o.offsetInInputWithInjections;if(jxi(this.injectionOptions[o.injectedTextIndex].cursorStops))return c;let d=o.injectedTextIndex-1;for(;d>=0&&this.injectionOffsets[d]===this.injectionOffsets[o.injectedTextIndex]&&!(Bxi(this.injectionOptions[d].cursorStops)||(c-=this.injectionOptions[d].content.length,jxi(this.injectionOptions[d].cursorStops)));)d--;return c}}else if(r===1||r===4){let c=o.offsetInInputWithInjections+o.length,d=o.injectedTextIndex;for(;d+1=0&&this.injectionOffsets[d-1]===this.injectionOffsets[d];)c-=this.injectionOptions[d-1].content.length,d--;return c}iSe(r)}getInjectedText(e,r){let o=this.outputPositionToOffsetInInputWithInjections(e,r),c=this.getInjectedTextAtOffset(o);return c?{options:this.injectionOptions[c.injectedTextIndex]}:null}getInjectedTextAtOffset(e){let r=this.injectionOffsets,o=this.injectionOptions;if(r!==null){let c=0;for(let d=0;de)break;if(e<=w)return{injectedTextIndex:d,offsetInInputWithInjections:b,length:h};c+=h}}}};NHe=class{constructor(e,r){this.outputLineIndex=e,this.outputOffset=r}toString(){return`${this.outputLineIndex}:${this.outputOffset}`}toPosition(e){return new qn(e+this.outputLineIndex,this.outputOffset+1)}}});var J4t,RR,Udt,q4t,$4t,G4t,Y6e,AHe,BSe,jSe=ti(()=>{J4t=class{constructor(){this.changeType=1}},RR=class l{static applyInjectedText(e,r){if(!r||r.length===0)return e;let o="",c=0;for(let d of r)o+=e.substring(c,d.column-1),c=d.column-1,o+=d.options.content;return o+=e.substring(c),o}static fromDecorations(e){let r=[];for(let o of e)o.options.before&&o.options.before.content.length>0&&r.push(new l(o.ownerId,o.range.startLineNumber,o.range.startColumn,o.options.before,0)),o.options.after&&o.options.after.content.length>0&&r.push(new l(o.ownerId,o.range.endLineNumber,o.range.endColumn,o.options.after,1));return r.sort((o,c)=>o.lineNumber===c.lineNumber?o.column===c.column?o.order-c.order:o.column-c.column:o.lineNumber-c.lineNumber),r}constructor(e,r,o,c,d){this.ownerId=e,this.lineNumber=r,this.column=o,this.options=c,this.order=d}},Udt=class{constructor(e,r,o){this.changeType=2,this.lineNumber=e,this.detail=r,this.injectedText=o}},q4t=class{constructor(e,r){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=r}},$4t=class{constructor(e,r,o,c){this.changeType=4,this.injectedTexts=c,this.fromLineNumber=e,this.toLineNumber=r,this.detail=o}},G4t=class{constructor(){this.changeType=5}},Y6e=class l{constructor(e,r,o,c){this.changes=e,this.versionId=r,this.isUndoing=o,this.isRedoing=c,this.resultingSelection=null}containsEvent(e){for(let r=0,o=this.changes.length;rks.options),Qn=dr.map(ks=>ks.column-1);return new Mfe(Qn,Tn,[Rr.length],[],0)}else return null}if(c===-1){let Pr=[];for(let dr=0,Rr=e.length;drL?(Rr=0,Tn=0):Qn=L-$i}let ks=dr.substr(Rr),La=kBi(ks,Tn,o,Qn,ee,Y);Te[Pr]=Rr,Je[Pr]=Tn,Xe[Pr]=ks,ct[Pr]=La[0],Ct[Pr]=La[1]}let Nt=ee.build(),Yt=(w=aii?.createHTML(Nt))!==null&&w!==void 0?w:Nt;Z.innerHTML=Yt,Z.style.position="absolute",Z.style.top="10000",h==="keepAll"?(Z.style.wordBreak="keep-all",Z.style.overflowWrap="anywhere"):(Z.style.wordBreak="inherit",Z.style.overflowWrap="break-word"),l.document.body.appendChild(Z);let jt=document.createRange(),mi=Array.prototype.slice.call(Z.children,0),_n=[];for(let Pr=0;Prcr.options),Dl=$s.map(cr=>cr.column-1)):($i=null,Dl=null),_n[Pr]=new Mfe(Dl,$i,Rr,La,Qn)}return l.document.body.removeChild(Z),_n}function kBi(l,e,r,o,c,d){if(d!==0){let F=String(d);c.appendString('
');let h=l.length,b=e,w=0,N=[],L=[],B=0");for(let F=0;F"),N[F]=w,L[F]=b;let Y=B;B=F+1"),N[l.length]=w,L[l.length]=b,c.appendString("
"),[N,L]}function wBi(l,e,r,o){if(r.length<=1)return null;let c=Array.prototype.slice.call(e.children,0),d=[];try{lii(l,c,o,0,null,r.length-1,null,d)}catch(h){return console.log(h),null}return d.length===0?null:(d.push(r.length),d)}function lii(l,e,r,o,c,d,h,b){if(o===d||(c=c||cii(l,e,r[o],r[o+1]),h=h||cii(l,e,r[d],r[d+1]),Math.abs(c[0].top-h[0].top)<=.1))return;if(o+1===d){b.push(d);return}let w=o+(d-o)/2|0,N=cii(l,e,r[w],r[w+1]);lii(l,e,r,o,c,w,N,b),lii(l,e,r,w,N,d,h,b)}function cii(l,e,r,o){return l.setStart(e[r/16384|0].firstChild,r%16384),l.setEnd(e[o/16384|0].firstChild,o%16384),l.getClientRects()}var aii,K4t,Wxi=ti(()=>{Bne();Mu();Fh();xB();pfe();sii();jSe();aii=r3("domLineBreaksComputer",{createHTML:l=>l}),K4t=class l{static create(e){return new l(new WeakRef(e))}constructor(e){this.targetWindow=e}createLineBreaksComputer(e,r,o,c,d){let h=[],b=[];return{addRequest:(w,N,L)=>{h.push(w),b.push(N)},finalize:()=>CBi(Nq(this.targetWindow.deref()),h,e,r,o,c,d,b)}}}});var X4t,zxi=ti(()=>{nc();Du();co();X4t=class extends tn{constructor(){super(),this._editor=null,this._instantiationService=null,this._instances=this._register(new jbe),this._pending=new Map,this._finishedInstantiation=[],this._finishedInstantiation[0]=!1,this._finishedInstantiation[1]=!1,this._finishedInstantiation[2]=!1,this._finishedInstantiation[3]=!1}initialize(e,r,o){this._editor=e,this._instantiationService=o;for(let c of r){if(this._pending.has(c.id)){dl(new Error(`Cannot have two contributions with the same id ${c.id}`));continue}this._pending.set(c.id,c)}this._instantiateSome(0),this._register(q4e(Gc(this._editor.getDomNode()),()=>{this._instantiateSome(1)})),this._register(q4e(Gc(this._editor.getDomNode()),()=>{this._instantiateSome(2)})),this._register(q4e(Gc(this._editor.getDomNode()),()=>{this._instantiateSome(3)},5e3))}saveViewState(){let e={};for(let[r,o]of this._instances)typeof o.saveViewState=="function"&&(e[r]=o.saveViewState());return e}restoreViewState(e){for(let[r,o]of this._instances)typeof o.restoreViewState=="function"&&o.restoreViewState(e[r])}get(e){return this._instantiateById(e),this._instances.get(e)||null}onBeforeInteractionEvent(){this._instantiateSome(2)}onAfterModelAttached(){var e;return q4e(Gc((e=this._editor)===null||e===void 0?void 0:e.getDomNode()),()=>{this._instantiateSome(1)},50)}_instantiateSome(e){if(this._finishedInstantiation[e])return;this._finishedInstantiation[e]=!0;let r=this._findPendingContributionsByInstantiation(e);for(let o of r)this._instantiateById(o.id)}_findPendingContributionsByInstantiation(e){let r=[];for(let[,o]of this._pending)o.instantiation===e&&r.push(o);return r}_instantiateById(e){let r=this._pending.get(e);if(r){if(this._pending.delete(e),!this._instantiationService||!this._editor)throw new Error("Cannot instantiate contributions before being initialized!");try{let o=this._instantiationService.createInstance(r.ctor,this._editor);this._instances.set(r.id,o),typeof o.restoreViewState=="function"&&r.instantiation!==0&&console.warn(`Editor contribution '${r.id}' should be eager instantiated because it uses saveViewState / restoreViewState.`)}catch(o){dl(o)}}}}});var PHe,uii=ti(()=>{PHe=class{constructor(e,r,o,c,d,h,b){this.id=e,this.label=r,this.alias=o,this.metadata=c,this._precondition=d,this._run=h,this._contextKeyService=b}isSupported(){return this._contextKeyService.contextMatchesRules(this._precondition)}run(e){return this.isSupported()?this._run(e):Promise.resolve(void 0)}}});function DB(l){let e=0,r=0,o=0,c=0;for(let d=0,h=l.length;d{});var Jdt,dii,Y4t,Vxi=ti(()=>{Jdt=class{constructor(e,r,o,c){this.range=e,this.nestingLevel=r,this.nestingLevelOfEqualBracketType=o,this.isInvalid=c}},dii=class{constructor(e,r,o,c,d,h){this.range=e,this.openingBracketRange=r,this.closingBracketRange=o,this.nestingLevel=c,this.nestingLevelOfEqualBracketType=d,this.bracketPairNode=h}get openingBracketInfo(){return this.bracketPairNode.openingBracket.bracketInfo}},Y4t=class extends dii{constructor(e,r,o,c,d,h,b){super(e,r,o,c,d,h),this.minVisibleColumnIndentation=b}}});function Hxi(l,e,r,o){return l!==r?Vx(r-l,o):Vx(0,o-e)}function LHe(l){return l===0}function Vx(l,e){return l*IB+e}function ZO(l){let e=l,r=Math.floor(e/IB),o=e-r*IB;return new zI(r,o)}function Uxi(l){return Math.floor(l/IB)}function Vv(l,e){let r=l+e;return e>=IB&&(r=r-l%IB),r}function Jxi(l,e){return l.reduce((r,o)=>Vv(r,e(o)),jD)}function fii(l,e){return l===e}function Z6e(l,e){let r=l,o=e;if(o-r<=0)return jD;let d=Math.floor(r/IB),h=Math.floor(o/IB),b=o-h*IB;if(d===h){let w=r-d*IB;return Vx(0,b-w)}else return Vx(h-d,b)}function Rfe(l,e){return l=e}function zSe(l){return Vx(l.lineNumber-1,l.column-1)}function VSe(l,e){let r=l,o=Math.floor(r/IB),c=r-o*IB,d=e,h=Math.floor(d/IB),b=d-h*IB;return new Zt(o+1,c+1,h+1,b+1)}function qxi(l){let e=x6(l);return Vx(e.length-1,e[e.length-1].length)}var jD,IB,are=ti(()=>{Mu();Xa();Sfe();jD=0;IB=2**26});var s$,Q4t,_ii,qdt=ti(()=>{Xa();are();s$=class l{static fromModelContentChanges(e){return e.map(o=>{let c=Zt.lift(o.range);return new l(zSe(c.getStartPosition()),zSe(c.getEndPosition()),qxi(o.text))}).reverse()}constructor(e,r,o){this.startOffset=e,this.endOffset=r,this.newLength=o}toString(){return`[${ZO(this.startOffset)}...${ZO(this.endOffset)}) -> ${ZO(this.newLength)}`}},Q4t=class{constructor(e){this.nextEditIdx=0,this.deltaOldToNewLineCount=0,this.deltaOldToNewColumnCount=0,this.deltaLineIdxInOld=-1,this.edits=e.map(r=>_ii.from(r))}getOffsetBeforeChange(e){return this.adjustNextEdit(e),this.translateCurToOld(e)}getDistanceToNextChange(e){this.adjustNextEdit(e);let r=this.edits[this.nextEditIdx],o=r?this.translateOldToCur(r.offsetObj):null;return o===null?null:Z6e(e,o)}translateOldToCur(e){return e.lineCount===this.deltaLineIdxInOld?Vx(e.lineCount+this.deltaOldToNewLineCount,e.columnCount+this.deltaOldToNewColumnCount):Vx(e.lineCount+this.deltaOldToNewLineCount,e.columnCount)}translateCurToOld(e){let r=ZO(e);return r.lineCount-this.deltaOldToNewLineCount===this.deltaLineIdxInOld?Vx(r.lineCount-this.deltaOldToNewLineCount,r.columnCount-this.deltaOldToNewColumnCount):Vx(r.lineCount-this.deltaOldToNewLineCount,r.columnCount)}adjustNextEdit(e){for(;this.nextEditIdx{Z4t=[],UI=class l{static create(e,r){if(e<=128&&r.length===0){let o=l.cache[e];return o||(o=new l(e,r),l.cache[e]=o),o}return new l(e,r)}static getEmpty(){return this.empty}constructor(e,r){this.items=e,this.additionalItems=r}add(e,r){let o=r.getKey(e),c=o>>5;if(c===0){let h=1<{Du();t$();are();eLe();$dt=class{get length(){return this._length}constructor(e){this._length=e}},Gdt=class l extends $dt{static create(e,r,o){let c=e.length;return r&&(c=Vv(c,r.length)),o&&(c=Vv(c,o.length)),new l(c,e,r,o,r?r.missingOpeningBracketIds:UI.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(){let e=[];return e.push(this.openingBracket),this.child&&e.push(this.child),this.closingBracket&&e.push(this.closingBracket),e}constructor(e,r,o,c,d){super(e),this.openingBracket=r,this.child=o,this.closingBracket=c,this.missingOpeningBracketIds=d}canBeReused(e){return!(this.closingBracket===null||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,r){return this.child?this.child.computeMinIndentation(Vv(e,this.openingBracket.length),r):Number.MAX_SAFE_INTEGER}},NB=class extends $dt{static create23(e,r,o,c=!1){let d=e.length,h=e.missingOpeningBracketIds;if(e.listHeight!==r.listHeight)throw new Error("Invalid list heights");if(d=Vv(d,r.length),h=h.merge(r.missingOpeningBracketIds),o){if(e.listHeight!==o.listHeight)throw new Error("Invalid list heights");d=Vv(d,o.length),h=h.merge(o.missingOpeningBracketIds)}return c?new mii(d,e.listHeight+1,e,r,o,h):new Kdt(d,e.listHeight+1,e,r,o,h)}static getEmpty(){return new hii(jD,0,[],UI.getEmpty())}get kind(){return 4}get missingOpeningBracketIds(){return this._missingOpeningBracketIds}constructor(e,r,o){super(e),this.listHeight=r,this._missingOpeningBracketIds=o,this.cachedMinIndentation=-1}throwIfImmutable(){}makeLastElementMutable(){this.throwIfImmutable();let e=this.childrenLength;if(e===0)return;let r=this.getChild(e-1),o=r.kind===4?r.toMutable():r;return r!==o&&this.setChild(e-1,o),o}makeFirstElementMutable(){if(this.throwIfImmutable(),this.childrenLength===0)return;let r=this.getChild(0),o=r.kind===4?r.toMutable():r;return r!==o&&this.setChild(0,o),o}canBeReused(e){if(e.intersects(this.missingOpeningBracketIds)||this.childrenLength===0)return!1;let r=this;for(;r.kind===4;){let o=r.childrenLength;if(o===0)throw new Hp;r=r.getChild(o-1)}return r.canBeReused(e)}handleChildrenChanged(){this.throwIfImmutable();let e=this.childrenLength,r=this.getChild(0).length,o=this.getChild(0).missingOpeningBracketIds;for(let c=1;c{Du();_6e();Qdt();are();eLe();lQ=class{constructor(e,r,o,c,d){this.length=e,this.kind=r,this.bracketId=o,this.bracketIds=c,this.astNode=d}},MHe=class{constructor(e,r){this.textModel=e,this.bracketTokens=r,this.reader=new gii(this.textModel,this.bracketTokens),this._offset=jD,this.didPeek=!1,this.peeked=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}get offset(){return this._offset}get length(){return Vx(this.textBufferLineCount-1,this.textBufferLastLineLength)}skip(e){this.didPeek=!1,this._offset=Vv(this._offset,e);let r=ZO(this._offset);this.reader.setPosition(r.lineCount,r.columnCount)}read(){let e;return this.peeked?(this.didPeek=!1,e=this.peeked):e=this.reader.read(),e&&(this._offset=Vv(this._offset,e.length)),e}peek(){return this.didPeek||(this.peeked=this.reader.read(),this.didPeek=!0),this.peeked}},gii=class{constructor(e,r){this.textModel=e,this.bracketTokens=r,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,r){e===this.lineIdx?(this.lineCharOffset=r,this.line!==null&&(this.lineTokenOffset=this.lineCharOffset===0?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset))):(this.lineIdx=e,this.lineCharOffset=r,this.line=null),this.peekedToken=null}read(){if(this.peekedToken){let d=this.peekedToken;return this.peekedToken=null,this.lineCharOffset+=d.length,d}if(this.lineIdx>this.textBufferLineCount-1||this.lineIdx===this.textBufferLineCount-1&&this.lineCharOffset>=this.textBufferLastLineLength)return null;this.line===null&&(this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.line=this.lineTokens.getLineContent(),this.lineTokenOffset=this.lineCharOffset===0?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset));let e=this.lineIdx,r=this.lineCharOffset,o=0;for(;;){let d=this.lineTokens,h=d.getCount(),b=null;if(this.lineTokenOffset1e3))break;if(o>1500)break}let c=Hxi(e,r,this.lineIdx,this.lineCharOffset);return new lQ(c,0,-1,UI.getEmpty(),new cQ(c))}},i6t=class{constructor(e,r){this.text=e,this._offset=jD,this.idx=0;let o=r.getRegExpStr(),c=o?new RegExp(o+`| +`,"gi"):null,d=[],h,b=0,w=0,N=0,L=0,B=[];for(let Z=0;Z<60;Z++)B.push(new lQ(Vx(0,Z),0,-1,UI.getEmpty(),new cQ(Vx(0,Z))));let F=[];for(let Z=0;Z<60;Z++)F.push(new lQ(Vx(1,Z),0,-1,UI.getEmpty(),new cQ(Vx(1,Z))));if(c)for(c.lastIndex=0;(h=c.exec(e))!==null;){let Z=h.index,ee=h[0];if(ee===` +`)b++,w=Z+1;else{if(N!==Z){let Te;if(L===b){let Je=Z-N;if(Je{Mu();Qdt();are();eLe();n6t();yii=class l{static createFromLanguage(e,r){function o(d){return r.getKey(`${d.languageId}:::${d.bracketText}`)}let c=new Map;for(let d of e.bracketsNew.openingBrackets){let h=Vx(0,d.bracketText.length),b=o(d),w=UI.getEmpty().add(b,pii);c.set(d.bracketText,new lQ(h,1,b,w,Ydt.create(h,d,w)))}for(let d of e.bracketsNew.closingBrackets){let h=Vx(0,d.bracketText.length),b=UI.getEmpty(),w=d.getOpeningBrackets();for(let N of w)b=b.add(o(N),pii);c.set(d.bracketText,new lQ(h,2,o(w[0]),b,Ydt.create(h,d,b)))}return new l(c)}constructor(e){this.map=e,this.hasRegExp=!1,this._regExpGlobal=null}getRegExpStr(){if(this.isEmpty)return null;{let e=[...this.map.keys()];return e.sort(),e.reverse(),e.map(r=>DBi(r)).join("|")}}get regExpGlobal(){if(!this.hasRegExp){let 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(let[r,o]of this.map)if(o.kind===2&&o.bracketIds.intersects(e))return r}get isEmpty(){return this.map.size===0}};RHe=class{constructor(e,r){this.denseKeyProvider=e,this.getLanguageConfiguration=r,this.languageIdToBracketTokens=new Map}didLanguageChange(e){return this.languageIdToBracketTokens.has(e)}getSingleLanguageBracketTokens(e){let r=this.languageIdToBracketTokens.get(e);return r||(r=yii.createFromLanguage(this.getLanguageConfiguration(e),this.denseKeyProvider),this.languageIdToBracketTokens.set(e,r)),r}}});function Gxi(l){if(l.length===0)return null;if(l.length===1)return l[0];let e=0;function r(){if(e>=l.length)return null;let h=e,b=l[h].listHeight;for(e++;e=2?Sii(h===0&&e===l.length?l:l.slice(h,e),!1):l[h]}let o=r(),c=r();if(!c)return o;for(let h=r();h;h=r())$xi(o,c)<=$xi(c,h)?(o=bii(o,c),c=h):c=bii(c,h);return bii(o,c)}function Sii(l,e=!1){if(l.length===0)return null;if(l.length===1)return l[0];let r=l.length;for(;r>3;){let o=r>>1;for(let c=0;c=3?l[2]:null,e)}function $xi(l,e){return Math.abs(l.listHeight-e.listHeight)}function bii(l,e){return l.listHeight===e.listHeight?NB.create23(l,e,null,!1):l.listHeight>e.listHeight?IBi(l,e):NBi(e,l)}function IBi(l,e){l=l.toMutable();let r=l,o=[],c;for(;;){if(e.listHeight===r.listHeight){c=e;break}if(r.kind!==4)throw new Error("unexpected");o.push(r),r=r.makeLastElementMutable()}for(let d=o.length-1;d>=0;d--){let h=o[d];c?h.childrenLength>=3?c=NB.create23(h.unappendChild(),c,null,!1):(h.appendChildOfSameHeight(c),c=void 0):h.handleChildrenChanged()}return c?NB.create23(l,c,null,!1):l}function NBi(l,e){l=l.toMutable();let r=l,o=[];for(;e.listHeight!==r.listHeight;){if(r.kind!==4)throw new Error("unexpected");o.push(r),r=r.makeFirstElementMutable()}let c=e;for(let d=o.length-1;d>=0;d--){let h=o[d];c?h.childrenLength>=3?c=NB.create23(c,h.unprependChild(),null,!1):(h.prependChildOfSameHeight(c),c=void 0):h.handleChildrenChanged()}return c?NB.create23(c,l,null,!1):l}var Kxi=ti(()=>{Qdt()});function xii(l,e=-1){for(;;){if(e++,e>=l.childrenLength)return-1;if(l.getChild(e))return e}}function Zdt(l){return l.length>0?l[l.length-1]:void 0}var r6t,Xxi=ti(()=>{are();r6t=class{constructor(e){this.lastOffset=jD,this.nextNodes=[e],this.offsets=[jD],this.idxs=[]}readLongestNodeAt(e,r){if(Rfe(e,this.lastOffset))throw new Error("Invalid offset");for(this.lastOffset=e;;){let o=Zdt(this.nextNodes);if(!o)return;let c=Zdt(this.offsets);if(Rfe(e,c))return;if(Rfe(c,e))if(Vv(c,o.length)<=e)this.nextNodeAfterCurrent();else{let d=xii(o);d!==-1?(this.nextNodes.push(o.getChild(d)),this.offsets.push(c),this.idxs.push(d)):this.nextNodeAfterCurrent()}else{if(r(o))return this.nextNodeAfterCurrent(),o;{let d=xii(o);if(d===-1){this.nextNodeAfterCurrent();return}else this.nextNodes.push(o.getChild(d)),this.offsets.push(c),this.idxs.push(d)}}}}nextNodeAfterCurrent(){for(;;){let e=Zdt(this.offsets),r=Zdt(this.nextNodes);if(this.nextNodes.pop(),this.offsets.pop(),this.idxs.length===0)break;let o=Zdt(this.nextNodes),c=xii(o,this.idxs[this.idxs.length-1]);if(c!==-1){this.nextNodes.push(o.getChild(c)),this.offsets.push(Vv(e,r.length)),this.idxs[this.idxs.length-1]=c;break}else this.idxs.pop()}}}});function eft(l,e,r,o){return new Cii(l,e,r,o).parseDocument()}var Cii,kii=ti(()=>{Qdt();qdt();eLe();are();Kxi();Xxi();Cii=class{constructor(e,r,o,c){if(this.tokenizer=e,this.createImmutableLists=c,this._itemsConstructed=0,this._itemsFromCache=0,o&&c)throw new Error("Not supported");this.oldNodeReader=o?new r6t(o):void 0,this.positionMapper=new Q4t(r)}parseDocument(){this._itemsConstructed=0,this._itemsFromCache=0;let e=this.parseList(UI.getEmpty(),0);return e||(e=NB.getEmpty()),e}parseList(e,r){let o=[];for(;;){let d=this.tryReadChildFromCache(e);if(!d){let h=this.tokenizer.peek();if(!h||h.kind===2&&h.bracketIds.intersects(e))break;d=this.parseChild(e,r+1)}d.kind===4&&d.childrenLength===0||o.push(d)}return this.oldNodeReader?Gxi(o):Sii(o,this.createImmutableLists)}tryReadChildFromCache(e){if(this.oldNodeReader){let r=this.positionMapper.getDistanceToNextChange(this.tokenizer.offset);if(r===null||!LHe(r)){let o=this.oldNodeReader.readLongestNodeAt(this.positionMapper.getOffsetBeforeChange(this.tokenizer.offset),c=>r!==null&&!Rfe(c.length,r)?!1:c.canBeReused(e));if(o)return this._itemsFromCache++,this.tokenizer.skip(o.length),o}}}parseChild(e,r){this._itemsConstructed++;let o=this.tokenizer.read();switch(o.kind){case 2:return new t6t(o.bracketIds,o.length);case 0:return o.astNode;case 1:{if(r>300)return new cQ(o.length);let c=e.merge(o.bracketIds),d=this.parseList(c,r+1),h=this.tokenizer.peek();return h&&h.kind===2&&(h.bracketId===o.bracketId||h.bracketIds.intersects(o.bracketIds))?(this.tokenizer.read(),Gdt.create(o.astNode,d,h.astNode)):Gdt.create(o.astNode,d,null)}default:throw new Error("unexpected")}}}});function BHe(l,e){if(l.length===0)return e;if(e.length===0)return l;let r=new KL(Yxi(l)),o=Yxi(e);o.push({modified:!1,lengthBefore:void 0,lengthAfter:void 0});let c=r.dequeue();function d(N){if(N===void 0){let B=r.takeWhile(F=>!0)||[];return c&&B.unshift(c),B}let L=[];for(;c&&!LHe(N);){let[B,F]=c.splitAt(N);L.push(B),N=Z6e(B.lengthAfter,N),c=F??r.dequeue()}return LHe(N)||L.push(new tft(!1,N,N)),L}let h=[];function b(N,L,B){if(h.length>0&&fii(h[h.length-1].endOffset,N)){let F=h[h.length-1];h[h.length-1]=new s$(F.startOffset,L,Vv(F.newLength,B))}else h.push({startOffset:N,endOffset:L,newLength:B})}let w=jD;for(let N of o){let L=d(N.lengthBefore);if(N.modified){let B=Jxi(L,Y=>Y.lengthBefore),F=Vv(w,B);b(w,F,N.lengthAfter),w=F}else for(let B of L){let F=w;w=Vv(w,B.lengthBefore),B.modified&&b(F,w,B.lengthAfter)}}return h}function Yxi(l){let e=[],r=jD;for(let o of l){let c=Z6e(r,o.startOffset);LHe(c)||e.push(new tft(!1,c,c));let d=Z6e(o.startOffset,o.endOffset);e.push(new tft(!0,d,o.newLength)),r=o.endOffset}return e}var tft,wii=ti(()=>{sd();qdt();are();tft=class l{constructor(e,r,o){this.modified=e,this.lengthBefore=r,this.lengthAfter=o}splitAt(e){let r=Z6e(e,this.lengthAfter);return fii(r,jD)?[this,void 0]:this.modified?[new l(this.modified,this.lengthBefore,e),new l(this.modified,jD,r)]:[new l(this.modified,e,e),new l(this.modified,r,r)]}toString(){return`${this.modified?"M":"U"}:${ZO(this.lengthBefore)} -> ${ZO(this.lengthAfter)}`}}});function Qxi(l,e,r,o){if(l.kind===4||l.kind===2){let c=[];for(let d of l.children)r=Vv(e,d.length),c.push({nodeOffsetStart:e,nodeOffsetEnd:r}),e=r;for(let d=c.length-1;d>=0;d--){let{nodeOffsetStart:h,nodeOffsetEnd:b}=c[d];if(Rfe(h,o)){let w=Qxi(l.children[d],h,b,o);if(w)return w}}return null}else{if(l.kind===3)return null;if(l.kind===1){let c=VSe(e,r);return{bracketInfo:l.bracketInfo,range:c}}}return null}function Zxi(l,e,r,o){if(l.kind===4||l.kind===2){for(let c of l.children){if(r=Vv(e,c.length),Rfe(o,r)){let d=Zxi(c,e,r,o);if(d)return d}e=r}return null}else{if(l.kind===3)return null;if(l.kind===1){let c=VSe(e,r);return{bracketInfo:l.bracketInfo,range:c}}}return null}function Tii(l,e,r,o,c,d,h,b,w,N,L=!1){if(h>200)return!0;e:for(;;)switch(l.kind){case 4:{let B=l.childrenLength;for(let F=0;F200)return!0;let N=!0;if(l.kind===2){let L=0;if(b){let Y=b.get(l.openingBracket.text);Y===void 0&&(Y=0),L=Y,Y++,b.set(l.openingBracket.text,Y)}let B=Vv(e,l.openingBracket.length),F=-1;if(d.includeMinIndentation&&(F=l.computeMinIndentation(e,d.textModel)),N=d.push(new Y4t(VSe(e,r),VSe(e,B),l.closingBracket?VSe(Vv(B,((w=l.child)===null||w===void 0?void 0:w.length)||jD),r):void 0,h,L,l,F)),e=B,N&&l.child){let Y=l.child;if(r=Vv(e,Y.length),WSe(e,c)&&OHe(r,o)&&(N=Dii(Y,e,r,o,c,d,h+1,b),!N))return!1}b?.set(l.openingBracket.text,L)}else{let L=e;for(let B of l.children){let F=L;if(L=Vv(L,B.length),WSe(F,c)&&WSe(o,L)&&(N=Dii(B,F,L,o,c,d,h,b),!N))return!1}}return N}var o6t,Eii,eCi=ti(()=>{xc();co();Vxi();qdt();vii();are();kii();eLe();n6t();sd();wii();o6t=class extends tn{didLanguageChange(e){return this.brackets.didLanguageChange(e)}constructor(e,r){if(super(),this.textModel=e,this.getLanguageConfiguration=r,this.didChangeEmitter=new wn,this.denseKeyProvider=new FHe,this.brackets=new RHe(this.denseKeyProvider,this.getLanguageConfiguration),this.onDidChange=this.didChangeEmitter.event,this.queuedTextEditsForInitialAstWithoutTokens=[],this.queuedTextEdits=[],e.tokenization.hasTokens)e.tokenization.backgroundTokenizationState===2?(this.initialAstWithoutTokens=void 0,this.astWithTokens=this.parseDocumentFromTextBuffer([],void 0,!1)):(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer([],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens);else{let o=this.brackets.getSingleLanguageBracketTokens(this.textModel.getLanguageId()),c=new i6t(this.textModel.getValue(),o);this.initialAstWithoutTokens=eft(c,[],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens}}handleDidChangeBackgroundTokenizationState(){if(this.textModel.tokenization.backgroundTokenizationState===2){let e=this.initialAstWithoutTokens===void 0;this.initialAstWithoutTokens=void 0,e||this.didChangeEmitter.fire()}}handleDidChangeTokens({ranges:e}){let r=e.map(o=>new s$(Vx(o.fromLineNumber-1,0),Vx(o.toLineNumber,0),Vx(o.toLineNumber-o.fromLineNumber+1,0)));this.handleEdits(r,!0),this.initialAstWithoutTokens||this.didChangeEmitter.fire()}handleContentChanged(e){let r=s$.fromModelContentChanges(e.changes);this.handleEdits(r,!1)}handleEdits(e,r){let o=BHe(this.queuedTextEdits,e);this.queuedTextEdits=o,this.initialAstWithoutTokens&&!r&&(this.queuedTextEditsForInitialAstWithoutTokens=BHe(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,r,o){let d=r,h=new MHe(this.textModel,this.brackets);return eft(h,e,d,o)}getBracketsInRange(e,r){this.flushQueue();let o=Vx(e.startLineNumber-1,e.startColumn-1),c=Vx(e.endLineNumber-1,e.endColumn-1);return new MY(d=>{let h=this.initialAstWithoutTokens||this.astWithTokens;Tii(h,jD,h.length,o,c,d,0,0,new Map,r)})}getBracketPairsInRange(e,r){this.flushQueue();let o=zSe(e.getStartPosition()),c=zSe(e.getEndPosition());return new MY(d=>{let h=this.initialAstWithoutTokens||this.astWithTokens,b=new Eii(d,r,this.textModel);Dii(h,jD,h.length,o,c,b,0,new Map)})}getFirstBracketAfter(e){this.flushQueue();let r=this.initialAstWithoutTokens||this.astWithTokens;return Zxi(r,jD,r.length,zSe(e))}getFirstBracketBefore(e){this.flushQueue();let r=this.initialAstWithoutTokens||this.astWithTokens;return Qxi(r,jD,r.length,zSe(e))}};Eii=class{constructor(e,r,o){this.push=e,this.includeMinIndentation=r,this.textModel=o}}});function ABi(l,e){return{object:l,dispose:()=>e?.dispose()}}function Iii(l){if(typeof l>"u")return()=>!0;{let e=Date.now();return()=>Date.now()-e<=l}}function s6t(l){return l instanceof uQ?null:l}var a6t,uQ,tCi=ti(()=>{sd();xc();co();Xa();SVe();jut();eCi();a6t=class extends tn{get canBuildAST(){return this.textModel.getValueLength()<=5e6}constructor(e,r){super(),this.textModel=e,this.languageConfigurationService=r,this.bracketPairsTree=this._register(new zg),this.onDidChangeEmitter=new wn,this.onDidChange=this.onDidChangeEmitter.event,this.bracketsRequested=!1,this._register(this.languageConfigurationService.onDidChange(o=>{var c;(!o.languageId||!((c=this.bracketPairsTree.value)===null||c===void 0)&&c.object.didLanguageChange(o.languageId))&&(this.bracketPairsTree.clear(),this.updateBracketPairsTree())}))}handleDidChangeOptions(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeLanguage(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeContent(e){var r;(r=this.bracketPairsTree.value)===null||r===void 0||r.object.handleContentChanged(e)}handleDidChangeBackgroundTokenizationState(){var e;(e=this.bracketPairsTree.value)===null||e===void 0||e.object.handleDidChangeBackgroundTokenizationState()}handleDidChangeTokens(e){var r;(r=this.bracketPairsTree.value)===null||r===void 0||r.object.handleDidChangeTokens(e)}updateBracketPairsTree(){if(this.bracketsRequested&&this.canBuildAST){if(!this.bracketPairsTree.value){let e=new Fr;this.bracketPairsTree.value=ABi(e.add(new o6t(this.textModel,r=>this.languageConfigurationService.getLanguageConfiguration(r))),e),e.add(this.bracketPairsTree.value.object.onDidChange(r=>this.onDidChangeEmitter.fire(r))),this.onDidChangeEmitter.fire()}}else this.bracketPairsTree.value&&(this.bracketPairsTree.clear(),this.onDidChangeEmitter.fire())}getBracketPairsInRange(e){var r;return this.bracketsRequested=!0,this.updateBracketPairsTree(),((r=this.bracketPairsTree.value)===null||r===void 0?void 0:r.object.getBracketPairsInRange(e,!1))||MY.empty}getBracketPairsInRangeWithMinIndentation(e){var r;return this.bracketsRequested=!0,this.updateBracketPairsTree(),((r=this.bracketPairsTree.value)===null||r===void 0?void 0:r.object.getBracketPairsInRange(e,!0))||MY.empty}getBracketsInRange(e,r=!1){var o;return this.bracketsRequested=!0,this.updateBracketPairsTree(),((o=this.bracketPairsTree.value)===null||o===void 0?void 0:o.object.getBracketsInRange(e,r))||MY.empty}findMatchingBracketUp(e,r,o){let c=this.textModel.validatePosition(r),d=this.textModel.getLanguageIdAtPosition(c.lineNumber,c.column);if(this.canBuildAST){let h=this.languageConfigurationService.getLanguageConfiguration(d).bracketsNew.getClosingBracketInfo(e);if(!h)return null;let b=this.getBracketPairsInRange(Zt.fromPositions(r,r)).findLast(w=>h.closes(w.openingBracketInfo));return b?b.openingBracketRange:null}else{let h=e.toLowerCase(),b=this.languageConfigurationService.getLanguageConfiguration(d).brackets;if(!b)return null;let w=b.textIsBracket[h];return w?s6t(this._findMatchingBracketUp(w,c,Iii(o))):null}}matchBracket(e,r){if(this.canBuildAST){let o=this.getBracketPairsInRange(Zt.fromPositions(e,e)).filter(c=>c.closingBracketRange!==void 0&&(c.openingBracketRange.containsPosition(e)||c.closingBracketRange.containsPosition(e))).findLastMaxBy(hE(c=>c.openingBracketRange.containsPosition(e)?c.openingBracketRange:c.closingBracketRange,Zt.compareRangesUsingStarts));return o?[o.openingBracketRange,o.closingBracketRange]:null}else{let o=Iii(r);return this._matchBracket(this.textModel.validatePosition(e),o)}}_establishBracketSearchOffsets(e,r,o,c){let d=r.getCount(),h=r.getLanguageId(c),b=Math.max(0,e.column-1-o.maxBracketLength);for(let N=c-1;N>=0;N--){let L=r.getEndOffset(N);if(L<=b)break;if(zq(r.getStandardTokenType(N))||r.getLanguageId(N)!==h){b=L;break}}let w=Math.min(r.getLineContent().length,e.column-1+o.maxBracketLength);for(let N=c+1;N=w)break;if(zq(r.getStandardTokenType(N))||r.getLanguageId(N)!==h){w=L;break}}return{searchStartOffset:b,searchEndOffset:w}}_matchBracket(e,r){let o=e.lineNumber,c=this.textModel.tokenization.getLineTokens(o),d=this.textModel.getLineContent(o),h=c.findTokenIndexAtOffset(e.column-1);if(h<0)return null;let b=this.languageConfigurationService.getLanguageConfiguration(c.getLanguageId(h)).brackets;if(b&&!zq(c.getStandardTokenType(h))){let{searchStartOffset:w,searchEndOffset:N}=this._establishBracketSearchOffsets(e,c,b,h),L=null;for(;;){let B=i7.findNextBracketInRange(b.forwardRegex,o,d,w,N);if(!B)break;if(B.startColumn<=e.column&&e.column<=B.endColumn){let F=d.substring(B.startColumn-1,B.endColumn-1).toLowerCase(),Y=this._matchFoundBracket(B,b.textIsBracket[F],b.textIsOpenBracket[F],r);if(Y){if(Y instanceof uQ)return null;L=Y}}w=B.endColumn-1}if(L)return L}if(h>0&&c.getStartOffset(h)===e.column-1){let w=h-1,N=this.languageConfigurationService.getLanguageConfiguration(c.getLanguageId(w)).brackets;if(N&&!zq(c.getStandardTokenType(w))){let{searchStartOffset:L,searchEndOffset:B}=this._establishBracketSearchOffsets(e,c,N,w),F=i7.findPrevBracketInRange(N.reversedRegex,o,d,L,B);if(F&&F.startColumn<=e.column&&e.column<=F.endColumn){let Y=d.substring(F.startColumn-1,F.endColumn-1).toLowerCase(),Z=this._matchFoundBracket(F,N.textIsBracket[Y],N.textIsOpenBracket[Y],r);if(Z)return Z instanceof uQ?null:Z}}}return null}_matchFoundBracket(e,r,o,c){if(!r)return null;let d=o?this._findMatchingBracketDown(r,e.getEndPosition(),c):this._findMatchingBracketUp(r,e.getStartPosition(),c);return d?d instanceof uQ?d:[e,d]:null}_findMatchingBracketUp(e,r,o){let c=e.languageId,d=e.reversedRegex,h=-1,b=0,w=(N,L,B,F)=>{for(;;){if(o&&++b%100===0&&!o())return uQ.INSTANCE;let Y=i7.findPrevBracketInRange(d,N,L,B,F);if(!Y)break;let Z=L.substring(Y.startColumn-1,Y.endColumn-1).toLowerCase();if(e.isOpen(Z)?h++:e.isClose(Z)&&h--,h===0)return Y;F=Y.startColumn-1}return null};for(let N=r.lineNumber;N>=1;N--){let L=this.textModel.tokenization.getLineTokens(N),B=L.getCount(),F=this.textModel.getLineContent(N),Y=B-1,Z=F.length,ee=F.length;N===r.lineNumber&&(Y=L.findTokenIndexAtOffset(r.column-1),Z=r.column-1,ee=r.column-1);let Te=!0;for(;Y>=0;Y--){let Je=L.getLanguageId(Y)===c&&!zq(L.getStandardTokenType(Y));if(Je)Te?Z=L.getStartOffset(Y):(Z=L.getStartOffset(Y),ee=L.getEndOffset(Y));else if(Te&&Z!==ee){let Xe=w(N,F,Z,ee);if(Xe)return Xe}Te=Je}if(Te&&Z!==ee){let Je=w(N,F,Z,ee);if(Je)return Je}}return null}_findMatchingBracketDown(e,r,o){let c=e.languageId,d=e.forwardRegex,h=1,b=0,w=(L,B,F,Y)=>{for(;;){if(o&&++b%100===0&&!o())return uQ.INSTANCE;let Z=i7.findNextBracketInRange(d,L,B,F,Y);if(!Z)break;let ee=B.substring(Z.startColumn-1,Z.endColumn-1).toLowerCase();if(e.isOpen(ee)?h++:e.isClose(ee)&&h--,h===0)return Z;F=Z.endColumn-1}return null},N=this.textModel.getLineCount();for(let L=r.lineNumber;L<=N;L++){let B=this.textModel.tokenization.getLineTokens(L),F=B.getCount(),Y=this.textModel.getLineContent(L),Z=0,ee=0,Te=0;L===r.lineNumber&&(Z=B.findTokenIndexAtOffset(r.column-1),ee=r.column-1,Te=r.column-1);let Je=!0;for(;Z=1;b--){let w=this.textModel.tokenization.getLineTokens(b),N=w.getCount(),L=this.textModel.getLineContent(b),B=N-1,F=L.length,Y=L.length;if(b===o.lineNumber){B=w.findTokenIndexAtOffset(o.column-1),F=o.column-1,Y=o.column-1;let ee=w.getLanguageId(B);c!==ee&&(c=ee,d=this.languageConfigurationService.getLanguageConfiguration(c).brackets,h=this.languageConfigurationService.getLanguageConfiguration(c).bracketsNew)}let Z=!0;for(;B>=0;B--){let ee=w.getLanguageId(B);if(c!==ee){if(d&&h&&Z&&F!==Y){let Je=i7.findPrevBracketInRange(d.reversedRegex,b,L,F,Y);if(Je)return this._toFoundBracket(h,Je);Z=!1}c=ee,d=this.languageConfigurationService.getLanguageConfiguration(c).brackets,h=this.languageConfigurationService.getLanguageConfiguration(c).bracketsNew}let Te=!!d&&!zq(w.getStandardTokenType(B));if(Te)Z?F=w.getStartOffset(B):(F=w.getStartOffset(B),Y=w.getEndOffset(B));else if(h&&d&&Z&&F!==Y){let Je=i7.findPrevBracketInRange(d.reversedRegex,b,L,F,Y);if(Je)return this._toFoundBracket(h,Je)}Z=Te}if(h&&d&&Z&&F!==Y){let ee=i7.findPrevBracketInRange(d.reversedRegex,b,L,F,Y);if(ee)return this._toFoundBracket(h,ee)}}return null}findNextBracket(e){var r;let o=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),((r=this.bracketPairsTree.value)===null||r===void 0?void 0:r.object.getFirstBracketAfter(o))||null;let c=this.textModel.getLineCount(),d=null,h=null,b=null;for(let w=o.lineNumber;w<=c;w++){let N=this.textModel.tokenization.getLineTokens(w),L=N.getCount(),B=this.textModel.getLineContent(w),F=0,Y=0,Z=0;if(w===o.lineNumber){F=N.findTokenIndexAtOffset(o.column-1),Y=o.column-1,Z=o.column-1;let Te=N.getLanguageId(F);d!==Te&&(d=Te,h=this.languageConfigurationService.getLanguageConfiguration(d).brackets,b=this.languageConfigurationService.getLanguageConfiguration(d).bracketsNew)}let ee=!0;for(;Fee.closingBracketRange!==void 0&&ee.range.strictContainsRange(Y));return Z?[Z.openingBracketRange,Z.closingBracketRange]:null}let c=Iii(r),d=this.textModel.getLineCount(),h=new Map,b=[],w=(Y,Z)=>{if(!h.has(Y)){let ee=[];for(let Te=0,Je=Z?Z.brackets.length:0;Te{for(;;){if(c&&++N%100===0&&!c())return uQ.INSTANCE;let Xe=i7.findNextBracketInRange(Y.forwardRegex,Z,ee,Te,Je);if(!Xe)break;let ct=ee.substring(Xe.startColumn-1,Xe.endColumn-1).toLowerCase(),Ct=Y.textIsBracket[ct];if(Ct&&(Ct.isOpen(ct)?b[Ct.index]++:Ct.isClose(ct)&&b[Ct.index]--,b[Ct.index]===-1))return this._matchFoundBracket(Xe,Ct,!1,c);Te=Xe.endColumn-1}return null},B=null,F=null;for(let Y=o.lineNumber;Y<=d;Y++){let Z=this.textModel.tokenization.getLineTokens(Y),ee=Z.getCount(),Te=this.textModel.getLineContent(Y),Je=0,Xe=0,ct=0;if(Y===o.lineNumber){Je=Z.findTokenIndexAtOffset(o.column-1),Xe=o.column-1,ct=o.column-1;let Nt=Z.getLanguageId(Je);B!==Nt&&(B=Nt,F=this.languageConfigurationService.getLanguageConfiguration(B).brackets,w(B,F))}let Ct=!0;for(;Je{xc();co();Xa();PV();x0();c6t=class extends tn{constructor(e){super(),this.textModel=e,this.colorProvider=new l6t,this.onDidChangeEmitter=new wn,this.onDidChange=this.onDidChangeEmitter.event,this.colorizationOptions=e.getOptions().bracketPairColorizationOptions,this._register(e.bracketPairs.onDidChange(r=>{this.onDidChangeEmitter.fire()}))}handleDidChangeOptions(e){this.colorizationOptions=this.textModel.getOptions().bracketPairColorizationOptions}getDecorationsInRange(e,r,o,c){return c?[]:r===void 0?[]:this.colorizationOptions.enabled?this.textModel.bracketPairs.getBracketsInRange(e,!0).map(h=>({id:`bracket${h.range.toString()}-${h.nestingLevel}`,options:{description:"BracketPairColorization",inlineClassName:this.colorProvider.getInlineClassName(h,this.colorizationOptions.independentColorPoolPerBracketType)},ownerId:0,range:h.range})).toArray():[]}getAllDecorations(e,r){return e===void 0?[]:this.colorizationOptions.enabled?this.getDecorationsInRange(new Zt(1,1,this.textModel.getLineCount(),1),e,r):[]}},l6t=class{constructor(){this.unexpectedClosingBracketClassName="unexpected-closing-bracket"}getInlineClassName(e,r){return e.isInvalid?this.unexpectedClosingBracketClassName:this.getInlineClassNameOfLevel(r?e.nestingLevelOfEqualBracketType:e.nestingLevel)}getInlineClassNameOfLevel(e){return`bracket-highlighting-${e%30}`}};AT((l,e)=>{let r=[IPt,NPt,APt,PPt,LPt,OPt],o=new l6t;e.addRule(`.monaco-editor .${o.unexpectedClosingBracketClassName} { color: ${l.getColor(gSi)}; }`);let c=r.map(d=>l.getColor(d)).filter(d=>!!d).filter(d=>!d.isTransparent());for(let d=0;d<30;d++){let h=c[d%c.length];e.addRule(`.monaco-editor .${o.getInlineClassNameOfLevel(d)} { color: ${h}; }`)}})});function u6t(l){return l.replace(/\n/g,"\\n").replace(/\r/g,"\\r")}function nCi(l,e){return l===null||l.length===0?e:new Nii(l,e).compress()}var AB,Nii,Aii=ti(()=>{CVe();pfe();AB=class l{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,r,o,c){this.oldPosition=e,this.oldText=r,this.newPosition=o,this.newText=c}toString(){return this.oldText.length===0?`(insert@${this.oldPosition} "${u6t(this.newText)}")`:this.newText.length===0?`(delete@${this.oldPosition} "${u6t(this.oldText)}")`:`(replace@${this.oldPosition} "${u6t(this.oldText)}" with "${u6t(this.newText)}")`}static _writeStringSize(e){return 4+2*e.length}static _writeString(e,r,o){let c=r.length;bV(e,c,o),o+=4;for(let d=0;dl.length)return!1;if(r){if(!iVe(l,e))return!1;if(e.length===l.length)return!0;let d=e.length;return e.charAt(e.length-1)===o&&d--,l.charAt(d)===o}return e.charAt(e.length-1)!==o&&(e+=o),l.indexOf(e)===0}function oCi(l){return l>=65&&l<=90||l>=97&&l<=122}function sCi(l,e=Bv){return e?oCi(l.charCodeAt(0))&&l.charCodeAt(1)===58:!1}var d6t=ti(()=>{jY();X_();Mu()});function dQ(l){return iut(l,!0)}var nft,K1,$wn,Gwn,jHe,Kwn,Xwn,lCi,SA,uCi,USe,dCi,fCi,_Ci,Oii,Ywn,aCi,cCi,Qwn,Zwn,cre,VP=ti(()=>{d6t();RP();jY();X_();Mu();s0();nft=class{constructor(e){this._ignorePathCasing=e}compare(e,r,o=!1){return e===r?0:Kbe(this.getComparisonKey(e,o),this.getComparisonKey(r,o))}isEqual(e,r,o=!1){return e===r?!0:!e||!r?!1:this.getComparisonKey(e,o)===this.getComparisonKey(r,o)}getComparisonKey(e,r=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:r?null:void 0}).toString()}isEqualOrParent(e,r,o=!1){if(e.scheme===r.scheme){if(e.scheme===Vu.file)return ift(dQ(e),dQ(r),this._ignorePathCasing(e))&&e.query===r.query&&(o||e.fragment===r.fragment);if(aCi(e.authority,r.authority))return ift(e.path,r.path,this._ignorePathCasing(e),"/")&&e.query===r.query&&(o||e.fragment===r.fragment)}return!1}joinPath(e,...r){return qc.joinPath(e,...r)}basenameOrAuthority(e){return SA(e)||e.authority}basename(e){return ex.basename(e.path)}extname(e){return ex.extname(e.path)}dirname(e){if(e.path.length===0)return e;let r;return e.scheme===Vu.file?r=qc.file(kDt(dQ(e))).path:(r=ex.dirname(e.path),e.authority&&r.length&&r.charCodeAt(0)!==47&&(console.error(`dirname("${e.toString})) resulted in a relative path`),r="/")),e.with({path:r})}normalizePath(e){if(!e.path.length)return e;let r;return e.scheme===Vu.file?r=qc.file(CDt(dQ(e))).path:r=ex.normalize(e.path),e.with({path:r})}relativePath(e,r){if(e.scheme!==r.scheme||!aCi(e.authority,r.authority))return;if(e.scheme===Vu.file){let d=Lgi(dQ(e),dQ(r));return Bv?Pii(d):d}let o=e.path||"/",c=r.path||"/";if(this._ignorePathCasing(e)){let d=0;for(let h=Math.min(o.length,c.length);dLii(o).length&&o[o.length-1]===r}else{let o=e.path;return o.length>1&&o.charCodeAt(o.length-1)===47&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,r=kR){return cCi(e,r)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,r=kR){let o=!1;if(e.scheme===Vu.file){let c=dQ(e);o=c!==void 0&&c.length===Lii(c).length&&c[c.length-1]===r}else{r="/";let c=e.path;o=c.length===1&&c.charCodeAt(c.length-1)===47}return!o&&!cCi(e,r)?e.with({path:e.path+"/"}):e}},K1=new nft(()=>!1),$wn=new nft(l=>l.scheme===Vu.file?!kS:!0),Gwn=new nft(l=>!0),jHe=K1.isEqual.bind(K1),Kwn=K1.isEqualOrParent.bind(K1),Xwn=K1.getComparisonKey.bind(K1),lCi=K1.basenameOrAuthority.bind(K1),SA=K1.basename.bind(K1),uCi=K1.extname.bind(K1),USe=K1.dirname.bind(K1),dCi=K1.joinPath.bind(K1),fCi=K1.normalizePath.bind(K1),_Ci=K1.relativePath.bind(K1),Oii=K1.resolvePath.bind(K1),Ywn=K1.isAbsolutePath.bind(K1),aCi=K1.isEqualAuthority.bind(K1),cCi=K1.hasTrailingPathSeparator.bind(K1),Qwn=K1.removeTrailingPathSeparator.bind(K1),Zwn=K1.addTrailingPathSeparator.bind(K1);(function(l){l.META_DATA_LABEL="label",l.META_DATA_DESCRIPTION="description",l.META_DATA_SIZE="size",l.META_DATA_MIME="mime";function e(r){let o=new Map;r.path.substring(r.path.indexOf(";")+1,r.path.lastIndexOf(";")).split(";").forEach(h=>{let[b,w]=h.split(":");b&&w&&o.set(b,w)});let d=r.path.substring(0,r.path.indexOf(";"));return d&&o.set(l.META_DATA_MIME,d),o}l.parseMetaData=e})(cre||(cre={}))});function WHe(l){return l.toString()}function Mii(l){return l.getEOL()===` +`?0:1}function lre(l){return l?l instanceof f6t||l instanceof Fii:!1}var BR,f6t,Fii,_6t,Rii=ti(()=>{ya();Du();j0();s0();Aii();CVe();VP();BR=class l{static create(e,r){let o=e.getAlternativeVersionId(),c=Mii(e);return new l(o,o,c,c,r,r,[])}constructor(e,r,o,c,d,h,b){this.beforeVersionId=e,this.afterVersionId=r,this.beforeEOL=o,this.afterEOL=c,this.beforeCursorState=d,this.afterCursorState=h,this.changes=b}append(e,r,o,c,d){r.length>0&&(this.changes=nCi(this.changes,r)),this.afterEOL=o,this.afterVersionId=c,this.afterCursorState=d}static _writeSelectionsSize(e){return 4+4*4*(e?e.length:0)}static _writeSelections(e,r,o){if(bV(e,r?r.length:0,o),o+=4,r)for(let c of r)bV(e,c.selectionStartLineNumber,o),o+=4,bV(e,c.selectionStartColumn,o),o+=4,bV(e,c.positionLineNumber,o),o+=4,bV(e,c.positionColumn,o),o+=4;return o}static _readSelections(e,r,o){let c=vV(e,r);r+=4;for(let d=0;dr.toString()).join(", ")}matchesResource(e){return(qc.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 BR}append(e,r,o,c,d){this._data instanceof BR&&this._data.append(e,r,o,c,d)}close(){this._data instanceof BR&&(this._data=this._data.serialize())}open(){this._data instanceof BR||(this._data=BR.deserialize(this._data))}undo(){if(qc.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof BR&&(this._data=this._data.serialize());let e=BR.deserialize(this._data);this.model._applyUndo(e.changes,e.beforeEOL,e.beforeVersionId,e.beforeCursorState)}redo(){if(qc.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof BR&&(this._data=this._data.serialize());let e=BR.deserialize(this._data);this.model._applyRedo(e.changes,e.afterEOL,e.afterVersionId,e.afterCursorState)}heapSize(){return this._data instanceof BR&&(this._data=this._data.serialize()),this._data.byteLength+168}},Fii=class{get resources(){return this._editStackElementsArr.map(e=>e.resource)}constructor(e,r,o){this.label=e,this.code=r,this.type=1,this._isOpen=!0,this._editStackElementsArr=o.slice(0),this._editStackElementsMap=new Map;for(let c of this._editStackElementsArr){let d=WHe(c.resource);this._editStackElementsMap.set(d,c)}this._delegate=null}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}matchesResource(e){let r=WHe(e);return this._editStackElementsMap.has(r)}setModel(e){let r=WHe(qc.isUri(e)?e:e.uri);this._editStackElementsMap.has(r)&&this._editStackElementsMap.get(r).setModel(e)}canAppend(e){if(!this._isOpen)return!1;let r=WHe(e.uri);return this._editStackElementsMap.has(r)?this._editStackElementsMap.get(r).canAppend(e):!1}append(e,r,o,c,d){let h=WHe(e.uri);this._editStackElementsMap.get(h).append(e,r,o,c,d)}close(){this._isOpen=!1}open(){}undo(){this._isOpen=!1;for(let e of this._editStackElementsArr)e.undo()}redo(){for(let e of this._editStackElementsArr)e.redo()}heapSize(e){let r=WHe(e);return this._editStackElementsMap.has(r)?this._editStackElementsMap.get(r).heapSize():0}split(){return this._editStackElementsArr}toString(){let e=[];for(let r of this._editStackElementsArr)e.push(`${SA(r.resource)}: ${r}`);return`{${e.join(", ")}}`}};_6t=class l{constructor(e,r){this._model=e,this._undoRedoService=r}pushStackElement(){let e=this._undoRedoService.getLastElement(this._model.uri);lre(e)&&e.close()}popStackElement(){let e=this._undoRedoService.getLastElement(this._model.uri);lre(e)&&e.open()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(e,r){let o=this._undoRedoService.getLastElement(this._model.uri);if(lre(o)&&o.canAppend(this._model))return o;let c=new f6t(ce("edit","Typing"),"undoredo.textBufferEdit",this._model,e);return this._undoRedoService.pushElement(c,r),c}pushEOL(e){let r=this._getOrCreateEditStackElement(null,void 0);this._model.setEOL(e),r.append(this._model,[],Mii(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(e,r,o,c){let d=this._getOrCreateEditStackElement(e,c),h=this._model.applyEdits(r,!0),b=l._computeCursorState(o,h),w=h.map((N,L)=>({index:L,textChange:N.textChange}));return w.sort((N,L)=>N.textChange.oldPosition===L.textChange.oldPosition?N.index-L.index:N.textChange.oldPosition-L.textChange.oldPosition),d.append(this._model,w.map(N=>N.textChange),Mii(this._model),this._model.getAlternativeVersionId(),b),b}static _computeCursorState(e,r){try{return e?e(r):null}catch(o){return dl(o),null}}}});function OBi(l,e,r,o,c){c.spacesDiff=0,c.looksLikeAlignment=!1;let d;for(d=0;d0&&b>0||w>0&&N>0)return;let L=Math.abs(b-N),B=Math.abs(h-w);if(L===0){c.spacesDiff=B,B>0&&0<=w-1&&w-10?c++:Ct>1&&d++,OBi(h,b,Te,ct,B),B.looksLikeAlignment&&!(r&&e===B.spacesDiff)))continue;let Yt=B.spacesDiff;Yt<=N&&L[Yt]++,h=Te,b=ct}let F=r;c!==d&&(F=c{let Te=L[ee];Te>Z&&(Z=Te,Y=ee)}),Y===4&&L[4]>0&&L[2]>0&&L[2]>=L[4]/2&&(Y=2)}return{insertSpaces:F,tabSize:Y}}var Bii,pCi=ti(()=>{Bii=class{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}});function u7(l){return(l.metadata&1)>>>0}function zb(l,e){l.metadata=l.metadata&254|e<<0}function HP(l){return(l.metadata&2)>>>1===1}function X1(l,e){l.metadata=l.metadata&253|(e?1:0)<<1}function SCi(l){return(l.metadata&4)>>>2===1}function mCi(l,e){l.metadata=l.metadata&251|(e?1:0)<<2}function xCi(l){return(l.metadata&64)>>>6===1}function hCi(l,e){l.metadata=l.metadata&191|(e?1:0)<<6}function FBi(l){return(l.metadata&24)>>>3}function gCi(l,e){l.metadata=l.metadata&231|e<<3}function MBi(l){return(l.metadata&32)>>>5===1}function yCi(l,e){l.metadata=l.metadata&223|(e?1:0)<<5}function RBi(l){let e=l.root,r=0;for(;e!==cm;){if(e.left!==cm&&!HP(e.left)){e=e.left;continue}if(e.right!==cm&&!HP(e.right)){r+=e.delta,e=e.right;continue}e.start=r+e.start,e.end=r+e.end,e.delta=0,Bfe(e),X1(e,!0),X1(e.left,!1),X1(e.right,!1),e===e.parent.right&&(r-=e.parent.delta),e=e.parent}X1(l.root,!1)}function zHe(l,e,r,o){return lr||o===1?!1:o===2?!0:e}function BBi(l,e,r,o,c){let d=FBi(l),h=d===0||d===2,b=d===1||d===2,w=r-e,N=o,L=Math.min(w,N),B=l.start,F=!1,Y=l.end,Z=!1;e<=B&&Y<=r&&MBi(l)&&(l.start=e,F=!0,l.end=e,Z=!0);{let Te=c?1:w>0?2:0;!F&&zHe(B,h,e,Te)&&(F=!0),!Z&&zHe(Y,b,e,Te)&&(Z=!0)}if(L>0&&!c){let Te=w>N?2:0;!F&&zHe(B,h,e+L,Te)&&(F=!0),!Z&&zHe(Y,b,e+L,Te)&&(Z=!0)}{let Te=c?1:0;!F&&zHe(B,h,r,Te)&&(l.start=e+N,F=!0),!Z&&zHe(Y,b,r,Te)&&(l.end=e+N,Z=!0)}let ee=N-w;F||(l.start=Math.max(0,B+ee)),Z||(l.end=Math.max(0,Y+ee)),l.start>l.end&&(l.end=l.start)}function jBi(l,e,r){let o=l.root,c=0,d=0,h=0,b=0,w=[],N=0;for(;o!==cm;){if(HP(o)){X1(o.left,!1),X1(o.right,!1),o===o.parent.right&&(c-=o.parent.delta),o=o.parent;continue}if(!HP(o.left)){if(d=c+o.maxEnd,dr){X1(o,!0);continue}if(b=c+o.end,b>=e&&(o.setCachedOffsets(h,b,0),w[N++]=o),X1(o,!0),o.right!==cm&&!HP(o.right)){c+=o.delta,o=o.right;continue}}return X1(l.root,!1),w}function WBi(l,e,r,o){let c=l.root,d=0,h=0,b=0,w=o-(r-e);for(;c!==cm;){if(HP(c)){X1(c.left,!1),X1(c.right,!1),c===c.parent.right&&(d-=c.parent.delta),Bfe(c),c=c.parent;continue}if(!HP(c.left)){if(h=d+c.maxEnd,hr){c.start+=w,c.end+=w,c.delta+=w,(c.delta<-1073741824||c.delta>1073741824)&&(l.requestNormalizeDelta=!0),X1(c,!0);continue}if(X1(c,!0),c.right!==cm&&!HP(c.right)){d+=c.delta,c=c.right;continue}}X1(l.root,!1)}function zBi(l,e){let r=l.root,o=[],c=0;for(;r!==cm;){if(HP(r)){X1(r.left,!1),X1(r.right,!1),r=r.parent;continue}if(r.left!==cm&&!HP(r.left)){r=r.left;continue}if(r.ownerId===e&&(o[c++]=r),X1(r,!0),r.right!==cm&&!HP(r.right)){r=r.right;continue}}return X1(l.root,!1),o}function VBi(l){let e=l.root,r=[],o=0;for(;e!==cm;){if(HP(e)){X1(e.left,!1),X1(e.right,!1),e=e.parent;continue}if(e.left!==cm&&!HP(e.left)){e=e.left;continue}if(e.right!==cm&&!HP(e.right)){e=e.right;continue}r[o++]=e,X1(e,!0)}return X1(l.root,!1),r}function HBi(l,e,r,o,c){let d=l.root,h=0,b=0,w=0,N=[],L=0;for(;d!==cm;){if(HP(d)){X1(d.left,!1),X1(d.right,!1),d===d.parent.right&&(h-=d.parent.delta),d=d.parent;continue}if(d.left!==cm&&!HP(d.left)){d=d.left;continue}b=h+d.start,w=h+d.end,d.setCachedOffsets(b,w,o);let B=!0;if(e&&d.ownerId&&d.ownerId!==e&&(B=!1),r&&SCi(d)&&(B=!1),c&&!xCi(d)&&(B=!1),B&&(N[L++]=d),X1(d,!0),d.right!==cm&&!HP(d.right)){h+=d.delta,d=d.right;continue}}return X1(l.root,!1),N}function UBi(l,e,r,o,c,d,h){let b=l.root,w=0,N=0,L=0,B=0,F=[],Y=0;for(;b!==cm;){if(HP(b)){X1(b.left,!1),X1(b.right,!1),b===b.parent.right&&(w-=b.parent.delta),b=b.parent;continue}if(!HP(b.left)){if(N=w+b.maxEnd,Nr){X1(b,!0);continue}if(B=w+b.end,B>=e){b.setCachedOffsets(L,B,d);let Z=!0;o&&b.ownerId&&b.ownerId!==o&&(Z=!1),c&&SCi(b)&&(Z=!1),h&&!xCi(b)&&(Z=!1),Z&&(F[Y++]=b)}if(X1(b,!0),b.right!==cm&&!HP(b.right)){w+=b.delta,b=b.right;continue}}return X1(l.root,!1),F}function vCi(l,e){if(l.root===cm)return e.parent=cm,e.left=cm,e.right=cm,zb(e,0),l.root=e,l.root;JBi(l,e),JSe(e.parent);let r=e;for(;r!==l.root&&u7(r.parent)===1;)if(r.parent===r.parent.parent.left){let o=r.parent.parent.right;u7(o)===1?(zb(r.parent,0),zb(o,0),zb(r.parent.parent,1),r=r.parent.parent):(r===r.parent.right&&(r=r.parent,rft(l,r)),zb(r.parent,0),zb(r.parent.parent,1),oft(l,r.parent.parent))}else{let o=r.parent.parent.left;u7(o)===1?(zb(r.parent,0),zb(o,0),zb(r.parent.parent,1),r=r.parent.parent):(r===r.parent.left&&(r=r.parent,oft(l,r)),zb(r.parent,0),zb(r.parent.parent,1),rft(l,r.parent.parent))}return zb(l.root,0),e}function JBi(l,e){let r=0,o=l.root,c=e.start,d=e.end;for(;;)if($Bi(c,d,o.start+r,o.end+r)<0)if(o.left===cm){e.start-=r,e.end-=r,e.maxEnd-=r,o.left=e;break}else o=o.left;else if(o.right===cm){e.start-=r+o.delta,e.end-=r+o.delta,e.maxEnd-=r+o.delta,o.right=e;break}else r+=o.delta,o=o.right;e.parent=o,e.left=cm,e.right=cm,zb(e,1)}function bCi(l,e){let r,o;if(e.left===cm?(r=e.right,o=e,r.delta+=e.delta,(r.delta<-1073741824||r.delta>1073741824)&&(l.requestNormalizeDelta=!0),r.start+=e.delta,r.end+=e.delta):e.right===cm?(r=e.left,o=e):(o=qBi(e.right),r=o.right,r.start+=o.delta,r.end+=o.delta,r.delta+=o.delta,(r.delta<-1073741824||r.delta>1073741824)&&(l.requestNormalizeDelta=!0),o.start+=e.delta,o.end+=e.delta,o.delta=e.delta,(o.delta<-1073741824||o.delta>1073741824)&&(l.requestNormalizeDelta=!0)),o===l.root){l.root=r,zb(r,0),e.detach(),Wii(),Bfe(r),l.root.parent=cm;return}let c=u7(o)===1;if(o===o.parent.left?o.parent.left=r:o.parent.right=r,o===e?r.parent=o.parent:(o.parent===e?r.parent=o:r.parent=o.parent,o.left=e.left,o.right=e.right,o.parent=e.parent,zb(o,u7(e)),e===l.root?l.root=o:e===e.parent.left?e.parent.left=o:e.parent.right=o,o.left!==cm&&(o.left.parent=o),o.right!==cm&&(o.right.parent=o)),e.detach(),c){JSe(r.parent),o!==e&&(JSe(o),JSe(o.parent)),Wii();return}JSe(r),JSe(r.parent),o!==e&&(JSe(o),JSe(o.parent));let d;for(;r!==l.root&&u7(r)===0;)r===r.parent.left?(d=r.parent.right,u7(d)===1&&(zb(d,0),zb(r.parent,1),rft(l,r.parent),d=r.parent.right),u7(d.left)===0&&u7(d.right)===0?(zb(d,1),r=r.parent):(u7(d.right)===0&&(zb(d.left,0),zb(d,1),oft(l,d),d=r.parent.right),zb(d,u7(r.parent)),zb(r.parent,0),zb(d.right,0),rft(l,r.parent),r=l.root)):(d=r.parent.left,u7(d)===1&&(zb(d,0),zb(r.parent,1),oft(l,r.parent),d=r.parent.left),u7(d.left)===0&&u7(d.right)===0?(zb(d,1),r=r.parent):(u7(d.left)===0&&(zb(d.right,0),zb(d,1),rft(l,d),d=r.parent.left),zb(d,u7(r.parent)),zb(r.parent,0),zb(d.left,0),oft(l,r.parent),r=l.root));zb(r,0),Wii()}function qBi(l){for(;l.left!==cm;)l=l.left;return l}function Wii(){cm.parent=cm,cm.delta=0,cm.start=0,cm.end=0}function rft(l,e){let r=e.right;r.delta+=e.delta,(r.delta<-1073741824||r.delta>1073741824)&&(l.requestNormalizeDelta=!0),r.start+=e.delta,r.end+=e.delta,e.right=r.left,r.left!==cm&&(r.left.parent=e),r.parent=e.parent,e.parent===cm?l.root=r:e===e.parent.left?e.parent.left=r:e.parent.right=r,r.left=e,e.parent=r,Bfe(e),Bfe(r)}function oft(l,e){let r=e.left;e.delta-=r.delta,(e.delta<-1073741824||e.delta>1073741824)&&(l.requestNormalizeDelta=!0),e.start-=r.delta,e.end-=r.delta,e.left=r.right,r.right!==cm&&(r.right.parent=e),r.parent=e.parent,e.parent===cm?l.root=r:e===e.parent.right?e.parent.right=r:e.parent.left=r,r.right=e,e.parent=r,Bfe(e),Bfe(r)}function CCi(l){let e=l.end;if(l.left!==cm){let r=l.left.maxEnd;r>e&&(e=r)}if(l.right!==cm){let r=l.right.maxEnd+l.delta;r>e&&(e=r)}return e}function Bfe(l){l.maxEnd=CCi(l)}function JSe(l){for(;l!==cm;){let e=CCi(l);if(l.maxEnd===e)return;l.maxEnd=e,l=l.parent}}function $Bi(l,e,r,o){return l===r?e-o:l-r}var sft,cm,VHe,kCi=ti(()=>{sft=class{constructor(e,r,o){this.metadata=0,this.parent=this,this.left=this,this.right=this,zb(this,1),this.start=r,this.end=o,this.delta=0,this.maxEnd=o,this.id=e,this.ownerId=0,this.options=null,mCi(this,!1),hCi(this,!1),gCi(this,1),yCi(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=r,this.cachedAbsoluteEnd=o,this.range=null,X1(this,!1)}reset(e,r,o,c){this.start=r,this.end=o,this.maxEnd=o,this.cachedVersionId=e,this.cachedAbsoluteStart=r,this.cachedAbsoluteEnd=o,this.range=c}setOptions(e){this.options=e;let r=this.options.className;mCi(this,r==="squiggly-error"||r==="squiggly-warning"||r==="squiggly-info"),hCi(this,this.options.glyphMarginClassName!==null),gCi(this,this.options.stickiness),yCi(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(e,r,o){this.cachedVersionId!==o&&(this.range=null),this.cachedVersionId=o,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=r}detach(){this.parent=null,this.left=null,this.right=null}},cm=new sft(null,0,0);cm.parent=cm;cm.left=cm;cm.right=cm;zb(cm,0);VHe=class{constructor(){this.root=cm,this.requestNormalizeDelta=!1}intervalSearch(e,r,o,c,d,h){return this.root===cm?[]:UBi(this,e,r,o,c,d,h)}search(e,r,o,c){return this.root===cm?[]:HBi(this,e,r,o,c)}collectNodesFromOwner(e){return zBi(this,e)}collectNodesPostOrder(){return VBi(this)}insert(e){vCi(this,e),this._normalizeDeltaIfNecessary()}delete(e){bCi(this,e),this._normalizeDeltaIfNecessary()}resolveNode(e,r){let o=e,c=0;for(;e!==this.root;)e===e.parent.right&&(c+=e.parent.delta),e=e.parent;let d=o.start+c,h=o.end+c;o.setCachedOffsets(d,h,r)}acceptReplace(e,r,o,c){let d=jBi(this,e,e+r);for(let h=0,b=d.length;h{HHe=class{constructor(e,r){this.piece=e,this.color=r,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==H_)return p6t(this.right);let e=this;for(;e.parent!==H_&&e.parent.left!==e;)e=e.parent;return e.parent===H_?H_:e.parent}prev(){if(this.left!==H_)return Vii(this.left);let e=this;for(;e.parent!==H_&&e.parent.right!==e;)e=e.parent;return e.parent===H_?H_:e.parent}detach(){this.parent=null,this.left=null,this.right=null}},H_=new HHe(null,0);H_.parent=H_;H_.left=H_;H_.right=H_;H_.color=0});function TCi(l){let e;return l[l.length-1]<65536?e=new Uint16Array(l.length):e=new Uint32Array(l.length),e.set(l,0),e}function dre(l,e=!0){let r=[0],o=1;for(let c=0,d=l.length;c126)&&(h=!1)}let b=new qii(TCi(l),o,c,d,h);return l.length=0,b}var jfe,qii,e8,fre,$ii,Gii,m6t,Kii=ti(()=>{Iu();Xa();MD();wCi();qut();jfe=65535;qii=class{constructor(e,r,o,c,d){this.lineStarts=e,this.cr=r,this.lf=o,this.crlf=c,this.isBasicASCII=d}};e8=class{constructor(e,r,o,c,d){this.bufferIndex=e,this.start=r,this.end=o,this.lineFeedCnt=c,this.length=d}},fre=class{constructor(e,r){this.buffer=e,this.lineStarts=r}},$ii=class{constructor(e,r){this._pieces=[],this._tree=e,this._BOM=r,this._index=0,e.root!==H_&&e.iterate(e.root,o=>(o!==H_&&this._pieces.push(o.piece),!0))}read(){return this._pieces.length===0?this._index===0?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:this._index===0?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}},Gii=class{constructor(e){this._limit=e,this._cache=[]}get(e){for(let r=this._cache.length-1;r>=0;r--){let o=this._cache[r];if(o.nodeStartOffset<=e&&o.nodeStartOffset+o.node.piece.length>=e)return o}return null}get2(e){for(let r=this._cache.length-1;r>=0;r--){let o=this._cache[r];if(o.nodeStartLineNumber&&o.nodeStartLineNumber=e)return o}return null}set(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)}validate(e){let r=!1,o=this._cache;for(let c=0;c=e){o[c]=null,r=!0;continue}}if(r){let c=[];for(let d of o)d!==null&&c.push(d);this._cache=c}}},m6t=class{constructor(e,r,o){this.create(e,r,o)}create(e,r,o){this._buffers=[new fre("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=H_,this._lineCnt=1,this._length=0,this._EOL=r,this._EOLLength=r.length,this._EOLNormalized=o;let c=null;for(let d=0,h=e.length;d0){e[d].lineStarts||(e[d].lineStarts=dre(e[d].buffer));let b=new e8(d+1,{line:0,column:0},{line:e[d].lineStarts.length-1,column:e[d].buffer.length-e[d].lineStarts[e[d].lineStarts.length-1]},e[d].lineStarts.length-1,e[d].buffer.length);this._buffers.push(e[d]),c=this.rbInsertRight(c,b)}this._searchCache=new Gii(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(e){let r=jfe,o=r-Math.floor(r/3),c=o*2,d="",h=0,b=[];if(this.iterate(this.root,w=>{let N=this.getNodeContent(w),L=N.length;if(h<=o||h+L0){let w=d.replace(/\r\n|\r|\n/g,e);b.push(new fre(w,dre(w)))}this.create(b,e,!0)}getEOL(){return this._EOL}setEOL(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)}createSnapshot(e){return new $ii(this,e)}getOffsetAt(e,r){let o=0,c=this.root;for(;c!==H_;)if(c.left!==H_&&c.lf_left+1>=e)c=c.left;else if(c.lf_left+c.piece.lineFeedCnt+1>=e){o+=c.size_left;let d=this.getAccumulatedValue(c,e-c.lf_left-2);return o+=d+r-1}else e-=c.lf_left+c.piece.lineFeedCnt,o+=c.size_left+c.piece.length,c=c.right;return o}getPositionAt(e){e=Math.floor(e),e=Math.max(0,e);let r=this.root,o=0,c=e;for(;r!==H_;)if(r.size_left!==0&&r.size_left>=e)r=r.left;else if(r.size_left+r.piece.length>=e){let d=this.getIndexOf(r,e-r.size_left);if(o+=r.lf_left+d.index,d.index===0){let h=this.getOffsetAt(o+1,1),b=c-h;return new qn(o+1,b+1)}return new qn(o+1,d.remainder+1)}else if(e-=r.size_left+r.piece.length,o+=r.lf_left+r.piece.lineFeedCnt,r.right===H_){let d=this.getOffsetAt(o+1,1),h=c-e-d;return new qn(o+1,h+1)}else r=r.right;return new qn(1,1)}getValueInRange(e,r){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";let o=this.nodeAt2(e.startLineNumber,e.startColumn),c=this.nodeAt2(e.endLineNumber,e.endColumn),d=this.getValueInRange2(o,c);return r?r!==this._EOL||!this._EOLNormalized?d.replace(/\r\n|\r|\n/g,r):r===this.getEOL()&&this._EOLNormalized?d:d.replace(/\r\n|\r|\n/g,r):d}getValueInRange2(e,r){if(e.node===r.node){let b=e.node,w=this._buffers[b.piece.bufferIndex].buffer,N=this.offsetInBuffer(b.piece.bufferIndex,b.piece.start);return w.substring(N+e.remainder,N+r.remainder)}let o=e.node,c=this._buffers[o.piece.bufferIndex].buffer,d=this.offsetInBuffer(o.piece.bufferIndex,o.piece.start),h=c.substring(d+e.remainder,d+o.piece.length);for(o=o.next();o!==H_;){let b=this._buffers[o.piece.bufferIndex].buffer,w=this.offsetInBuffer(o.piece.bufferIndex,o.piece.start);if(o===r.node){h+=b.substring(w,w+r.remainder);break}else h+=b.substr(w,o.piece.length);o=o.next()}return h}getLinesContent(){let e=[],r=0,o="",c=!1;return this.iterate(this.root,d=>{if(d===H_)return!0;let h=d.piece,b=h.length;if(b===0)return!0;let w=this._buffers[h.bufferIndex].buffer,N=this._buffers[h.bufferIndex].lineStarts,L=h.start.line,B=h.end.line,F=N[L]+h.start.column;if(c&&(w.charCodeAt(F)===10&&(F++,b--),e[r++]=o,o="",c=!1,b===0))return!0;if(L===B)return!this._EOLNormalized&&w.charCodeAt(F+b-1)===13?(c=!0,o+=w.substr(F,b-1)):o+=w.substr(F,b),!0;o+=this._EOLNormalized?w.substring(F,Math.max(F,N[L+1]-this._EOLLength)):w.substring(F,N[L+1]).replace(/(\r\n|\r|\n)$/,""),e[r++]=o;for(let Y=L+1;YCt+Z,r.reset(0)):(Xe=F.buffer,ct=Ct=>Ct,r.reset(Z));do if(Te=r.next(Xe),Te){if(ct(Te.index)>=ee)return L;this.positionInBuffer(e,ct(Te.index)-Y,Je);let Ct=this.getLineFeedCnt(e.piece.bufferIndex,d,Je),Nt=Je.line===d.line?Je.column-d.column+c:Je.column+1,Yt=Nt+Te[0].length;if(B[L++]=_Se(new Zt(o+Ct,Nt,o+Ct,Yt),Te,w),ct(Te.index)+Te[0].length>=ee||L>=N)return L}while(Te);return L}findMatchesLineByLine(e,r,o,c){let d=[],h=0,b=new Vne(r.wordSeparators,r.regex),w=this.nodeAt2(e.startLineNumber,e.startColumn);if(w===null)return[];let N=this.nodeAt2(e.endLineNumber,e.endColumn);if(N===null)return[];let L=this.positionInBuffer(w.node,w.remainder),B=this.positionInBuffer(N.node,N.remainder);if(w.node===N.node)return this.findMatchesInNode(w.node,b,e.startLineNumber,e.startColumn,L,B,r,o,c,h,d),d;let F=e.startLineNumber,Y=w.node;for(;Y!==N.node;){let ee=this.getLineFeedCnt(Y.piece.bufferIndex,L,Y.piece.end);if(ee>=1){let Je=this._buffers[Y.piece.bufferIndex].lineStarts,Xe=this.offsetInBuffer(Y.piece.bufferIndex,Y.piece.start),ct=Je[L.line+ee],Ct=F===e.startLineNumber?e.startColumn:1;if(h=this.findMatchesInNode(Y,b,F,Ct,L,this.positionInBuffer(Y,ct-Xe),r,o,c,h,d),h>=c)return d;F+=ee}let Te=F===e.startLineNumber?e.startColumn-1:0;if(F===e.endLineNumber){let Je=this.getLineContent(F).substring(Te,e.endColumn-1);return h=this._findMatchesInLine(r,b,Je,e.endLineNumber,Te,h,d,o,c),d}if(h=this._findMatchesInLine(r,b,this.getLineContent(F).substr(Te),F,Te,h,d,o,c),h>=c)return d;F++,w=this.nodeAt2(F,1),Y=w.node,L=this.positionInBuffer(w.node,w.remainder)}if(F===e.endLineNumber){let ee=F===e.startLineNumber?e.startColumn-1:0,Te=this.getLineContent(F).substring(ee,e.endColumn-1);return h=this._findMatchesInLine(r,b,Te,e.endLineNumber,ee,h,d,o,c),d}let Z=F===e.startLineNumber?e.startColumn:1;return h=this.findMatchesInNode(N.node,b,F,Z,L,B,r,o,c,h,d),d}_findMatchesInLine(e,r,o,c,d,h,b,w,N){let L=e.wordSeparators;if(!w&&e.simpleSearch){let F=e.simpleSearch,Y=F.length,Z=o.length,ee=-Y;for(;(ee=o.indexOf(F,ee+Y))!==-1;)if((!L||cAt(L,o,Z,ee,Y))&&(b[h++]=new zne(new Zt(c,ee+1+d,c,ee+1+Y+d),null),h>=N))return h;return h}let B;r.reset(0);do if(B=r.next(o),B&&(b[h++]=_Se(new Zt(c,B.index+1+d,c,B.index+1+B[0].length+d),B,w),h>=N))return h;while(B);return h}insert(e,r,o=!1){if(this._EOLNormalized=this._EOLNormalized&&o,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==H_){let{node:c,remainder:d,nodeStartOffset:h}=this.nodeAt(e),b=c.piece,w=b.bufferIndex,N=this.positionInBuffer(c,d);if(c.piece.bufferIndex===0&&b.end.line===this._lastChangeBufferPos.line&&b.end.column===this._lastChangeBufferPos.column&&h+b.length===e&&r.lengthe){let L=[],B=new e8(b.bufferIndex,N,b.end,this.getLineFeedCnt(b.bufferIndex,N,b.end),this.offsetInBuffer(w,b.end)-this.offsetInBuffer(w,N));if(this.shouldCheckCRLF()&&this.endWithCR(r)&&this.nodeCharCodeAt(c,d)===10){let ee={line:B.start.line+1,column:0};B=new e8(B.bufferIndex,ee,B.end,this.getLineFeedCnt(B.bufferIndex,ee,B.end),B.length-1),r+=` +`}if(this.shouldCheckCRLF()&&this.startWithLF(r))if(this.nodeCharCodeAt(c,d-1)===13){let ee=this.positionInBuffer(c,d-1);this.deleteNodeTail(c,ee),r="\r"+r,c.piece.length===0&&L.push(c)}else this.deleteNodeTail(c,N);else this.deleteNodeTail(c,N);let F=this.createNewPieces(r);B.length>0&&this.rbInsertRight(c,B);let Y=c;for(let Z=0;Z=0;h--)d=this.rbInsertLeft(d,c[h]);this.validateCRLFWithPrevNode(d),this.deleteNodes(o)}insertContentToNodeRight(e,r){this.adjustCarriageReturnFromNext(e,r)&&(e+=` +`);let o=this.createNewPieces(e),c=this.rbInsertRight(r,o[0]),d=c;for(let h=1;h=F)N=B+1;else break;return o?(o.line=B,o.column=w-Y,null):{line:B,column:w-Y}}getLineFeedCnt(e,r,o){if(o.column===0)return o.line-r.line;let c=this._buffers[e].lineStarts;if(o.line===c.length-1)return o.line-r.line;let d=c[o.line+1],h=c[o.line]+o.column;if(d>h+1)return o.line-r.line;let b=h-1;return this._buffers[e].buffer.charCodeAt(b)===13?o.line-r.line+1:o.line-r.line}offsetInBuffer(e,r){return this._buffers[e].lineStarts[r.line]+r.column}deleteNodes(e){for(let r=0;rjfe){let L=[];for(;e.length>jfe;){let F=e.charCodeAt(jfe-1),Y;F===13||F>=55296&&F<=56319?(Y=e.substring(0,jfe-1),e=e.substring(jfe-1)):(Y=e.substring(0,jfe),e=e.substring(jfe));let Z=dre(Y);L.push(new e8(this._buffers.length,{line:0,column:0},{line:Z.length-1,column:Y.length-Z[Z.length-1]},Z.length-1,Y.length)),this._buffers.push(new fre(Y,Z))}let B=dre(e);return L.push(new e8(this._buffers.length,{line:0,column:0},{line:B.length-1,column:e.length-B[B.length-1]},B.length-1,e.length)),this._buffers.push(new fre(e,B)),L}let r=this._buffers[0].buffer.length,o=dre(e,!1),c=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===r&&r!==0&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},c=this._lastChangeBufferPos;for(let L=0;L=e-1)o=o.left;else if(o.lf_left+o.piece.lineFeedCnt>e-1){let w=this.getAccumulatedValue(o,e-o.lf_left-2),N=this.getAccumulatedValue(o,e-o.lf_left-1),L=this._buffers[o.piece.bufferIndex].buffer,B=this.offsetInBuffer(o.piece.bufferIndex,o.piece.start);return h+=o.size_left,this._searchCache.set({node:o,nodeStartOffset:h,nodeStartLineNumber:b-(e-1-o.lf_left)}),L.substring(B+w,B+N-r)}else if(o.lf_left+o.piece.lineFeedCnt===e-1){let w=this.getAccumulatedValue(o,e-o.lf_left-2),N=this._buffers[o.piece.bufferIndex].buffer,L=this.offsetInBuffer(o.piece.bufferIndex,o.piece.start);c=N.substring(L+w,L+o.piece.length);break}else e-=o.lf_left+o.piece.lineFeedCnt,h+=o.size_left+o.piece.length,o=o.right}for(o=o.next();o!==H_;){let h=this._buffers[o.piece.bufferIndex].buffer;if(o.piece.lineFeedCnt>0){let b=this.getAccumulatedValue(o,0),w=this.offsetInBuffer(o.piece.bufferIndex,o.piece.start);return c+=h.substring(w,w+b-r),c}else{let b=this.offsetInBuffer(o.piece.bufferIndex,o.piece.start);c+=h.substr(b,o.piece.length)}o=o.next()}return c}computeBufferMetadata(){let e=this.root,r=1,o=0;for(;e!==H_;)r+=e.lf_left+e.piece.lineFeedCnt,o+=e.size_left+e.piece.length,e=e.right;this._lineCnt=r,this._length=o,this._searchCache.validate(this._length)}getIndexOf(e,r){let o=e.piece,c=this.positionInBuffer(e,r),d=c.line-o.start.line;if(this.offsetInBuffer(o.bufferIndex,o.end)-this.offsetInBuffer(o.bufferIndex,o.start)===r){let h=this.getLineFeedCnt(e.piece.bufferIndex,o.start,c);if(h!==d)return{index:h,remainder:0}}return{index:d,remainder:c.column}}getAccumulatedValue(e,r){if(r<0)return 0;let o=e.piece,c=this._buffers[o.bufferIndex].lineStarts,d=o.start.line+r+1;return d>o.end.line?c[o.end.line]+o.end.column-c[o.start.line]-o.start.column:c[d]-c[o.start.line]-o.start.column}deleteNodeTail(e,r){let o=e.piece,c=o.lineFeedCnt,d=this.offsetInBuffer(o.bufferIndex,o.end),h=r,b=this.offsetInBuffer(o.bufferIndex,h),w=this.getLineFeedCnt(o.bufferIndex,o.start,h),N=w-c,L=b-d,B=o.length+L;e.piece=new e8(o.bufferIndex,o.start,h,w,B),ure(this,e,L,N)}deleteNodeHead(e,r){let o=e.piece,c=o.lineFeedCnt,d=this.offsetInBuffer(o.bufferIndex,o.start),h=r,b=this.getLineFeedCnt(o.bufferIndex,h,o.end),w=this.offsetInBuffer(o.bufferIndex,h),N=b-c,L=d-w,B=o.length+L;e.piece=new e8(o.bufferIndex,h,o.end,b,B),ure(this,e,L,N)}shrinkNode(e,r,o){let c=e.piece,d=c.start,h=c.end,b=c.length,w=c.lineFeedCnt,N=r,L=this.getLineFeedCnt(c.bufferIndex,c.start,N),B=this.offsetInBuffer(c.bufferIndex,r)-this.offsetInBuffer(c.bufferIndex,d);e.piece=new e8(c.bufferIndex,c.start,N,L,B),ure(this,e,B-b,L-w);let F=new e8(c.bufferIndex,o,h,this.getLineFeedCnt(c.bufferIndex,o,h),this.offsetInBuffer(c.bufferIndex,h)-this.offsetInBuffer(c.bufferIndex,o)),Y=this.rbInsertRight(e,F);this.validateCRLFWithPrevNode(Y)}appendToNode(e,r){this.adjustCarriageReturnFromNext(r,e)&&(r+=` +`);let o=this.shouldCheckCRLF()&&this.startWithLF(r)&&this.endWithCR(e),c=this._buffers[0].buffer.length;this._buffers[0].buffer+=r;let d=dre(r,!1);for(let Y=0;Ye)r=r.left;else if(r.size_left+r.piece.length>=e){c+=r.size_left;let d={node:r,remainder:e-r.size_left,nodeStartOffset:c};return this._searchCache.set(d),d}else e-=r.size_left+r.piece.length,c+=r.size_left+r.piece.length,r=r.right;return null}nodeAt2(e,r){let o=this.root,c=0;for(;o!==H_;)if(o.left!==H_&&o.lf_left>=e-1)o=o.left;else if(o.lf_left+o.piece.lineFeedCnt>e-1){let d=this.getAccumulatedValue(o,e-o.lf_left-2),h=this.getAccumulatedValue(o,e-o.lf_left-1);return c+=o.size_left,{node:o,remainder:Math.min(d+r-1,h),nodeStartOffset:c}}else if(o.lf_left+o.piece.lineFeedCnt===e-1){let d=this.getAccumulatedValue(o,e-o.lf_left-2);if(d+r-1<=o.piece.length)return{node:o,remainder:d+r-1,nodeStartOffset:c};r-=o.piece.length-d;break}else e-=o.lf_left+o.piece.lineFeedCnt,c+=o.size_left+o.piece.length,o=o.right;for(o=o.next();o!==H_;){if(o.piece.lineFeedCnt>0){let d=this.getAccumulatedValue(o,0),h=this.offsetOfNode(o);return{node:o,remainder:Math.min(r-1,d),nodeStartOffset:h}}else if(o.piece.length>=r-1){let d=this.offsetOfNode(o);return{node:o,remainder:r-1,nodeStartOffset:d}}else r-=o.piece.length;o=o.next()}return null}nodeCharCodeAt(e,r){if(e.piece.lineFeedCnt<1)return-1;let o=this._buffers[e.piece.bufferIndex],c=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+r;return o.buffer.charCodeAt(c)}offsetOfNode(e){if(!e)return 0;let r=e.size_left;for(;e!==this.root;)e.parent.right===e&&(r+=e.parent.size_left+e.parent.piece.length),e=e.parent;return r}shouldCheckCRLF(){return!(this._EOLNormalized&&this._EOL===` +`)}startWithLF(e){if(typeof e=="string")return e.charCodeAt(0)===10;if(e===H_||e.piece.lineFeedCnt===0)return!1;let r=e.piece,o=this._buffers[r.bufferIndex].lineStarts,c=r.start.line,d=o[c]+r.start.column;return c===o.length-1||o[c+1]>d+1?!1:this._buffers[r.bufferIndex].buffer.charCodeAt(d)===10}endWithCR(e){return typeof e=="string"?e.charCodeAt(e.length-1)===13:e===H_||e.piece.lineFeedCnt===0?!1:this.nodeCharCodeAt(e,e.piece.length-1)===13}validateCRLFWithPrevNode(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){let r=e.prev();this.endWithCR(r)&&this.fixCRLF(r,e)}}validateCRLFWithNextNode(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){let r=e.next();this.startWithLF(r)&&this.fixCRLF(e,r)}}fixCRLF(e,r){let o=[],c=this._buffers[e.piece.bufferIndex].lineStarts,d;e.piece.end.column===0?d={line:e.piece.end.line-1,column:c[e.piece.end.line]-c[e.piece.end.line-1]-1}:d={line:e.piece.end.line,column:e.piece.end.column-1};let h=e.piece.length-1,b=e.piece.lineFeedCnt-1;e.piece=new e8(e.piece.bufferIndex,e.piece.start,d,b,h),ure(this,e,-1,-1),e.piece.length===0&&o.push(e);let w={line:r.piece.start.line+1,column:0},N=r.piece.length-1,L=this.getLineFeedCnt(r.piece.bufferIndex,w,r.piece.end);r.piece=new e8(r.piece.bufferIndex,w,r.piece.end,L,N),ure(this,r,-1,-1),r.piece.length===0&&o.push(r);let B=this.createNewPieces(`\r +`);this.rbInsertRight(e,B[0]);for(let F=0;F{xc();Mu();Xa();MD();Kii();Q6e();Aii();co();UHe=class l extends tn{constructor(e,r,o,c,d,h,b){super(),this._onDidChangeContent=this._register(new wn),this._BOM=r,this._mightContainNonBasicASCII=!h,this._mightContainRTL=c,this._mightContainUnusualLineTerminators=d,this._pieceTree=new m6t(e,o,b)}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,r){return this._pieceTree.getOffsetAt(e,r)}getPositionAt(e){return this._pieceTree.getPositionAt(e)}getRangeAt(e,r){let o=e+r,c=this.getPositionAt(e),d=this.getPositionAt(o);return new Zt(c.lineNumber,c.column,d.lineNumber,d.column)}getValueInRange(e,r=0){if(e.isEmpty())return"";let o=this._getEndOfLine(r);return this._pieceTree.getValueInRange(e,o)}getValueLengthInRange(e,r=0){if(e.isEmpty())return 0;if(e.startLineNumber===e.endLineNumber)return e.endColumn-e.startColumn;let o=this.getOffsetAt(e.startLineNumber,e.startColumn),c=this.getOffsetAt(e.endLineNumber,e.endColumn),d=0,h=this._getEndOfLine(r),b=this.getEOL();if(h.length!==b.length){let w=h.length-b.length,N=e.endLineNumber-e.startLineNumber;d=w*N}return c-o+d}getCharacterCountInRange(e,r=0){if(this._mightContainNonBasicASCII){let o=0,c=e.startLineNumber,d=e.endLineNumber;for(let h=c;h<=d;h++){let b=this.getLineContent(h),w=h===c?e.startColumn-1:0,N=h===d?e.endColumn-1:b.length;for(let L=w;LTe.sortIndex-Je.sortIndex)}this._mightContainRTL=c,this._mightContainUnusualLineTerminators=d,this._mightContainNonBasicASCII=h;let Y=this._doApplyEdits(w),Z=null;if(r&&B.length>0){B.sort((ee,Te)=>Te.lineNumber-ee.lineNumber),Z=[];for(let ee=0,Te=B.length;ee0&&B[ee-1].lineNumber===Je)continue;let Xe=B[ee].oldContent,ct=this.getLineContent(Je);ct.length===0||ct===Xe||tx(ct)!==-1||Z.push(Je)}}return this._onDidChangeContent.fire(),new oAt(F,Y,Z)}_reduceOperations(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]}_toSingleEditOperation(e){let r=!1,o=e[0].range,c=e[e.length-1].range,d=new Zt(o.startLineNumber,o.startColumn,c.endLineNumber,c.endColumn),h=o.startLineNumber,b=o.startColumn,w=[];for(let Y=0,Z=e.length;Y0&&w.push(ee.text),h=Te.endLineNumber,b=Te.endColumn}let N=w.join(""),[L,B,F]=DB(N);return{sortIndex:0,identifier:e[0].identifier,range:d,rangeOffset:this.getOffsetAt(d.startLineNumber,d.startColumn),rangeLength:this.getValueLengthInRange(d,0),text:N,eolCount:L,firstLineLength:B,lastLineLength:F,forceMoveMarkers:r,isAutoWhitespaceEdit:!1}}_doApplyEdits(e){e.sort(l._sortOpsDescending);let r=[];for(let o=0;o0){let F=w.eolCount+1;F===1?B=new Zt(N,L,N,L+w.firstLineLength):B=new Zt(N,L,N+F-1,w.lastLineLength+1)}else B=new Zt(N,L,N,L);o=B.endLineNumber,c=B.endColumn,r.push(B),d=w}return r}static _sortOpsAscending(e,r){let o=Zt.compareRangesUsingEnds(e.range,r.range);return o===0?e.sortIndex-r.sortIndex:o}static _sortOpsDescending(e,r){let o=Zt.compareRangesUsingEnds(e.range,r.range);return o===0?r.sortIndex-e.sortIndex:-o}}});var Yii,dft,DCi=ti(()=>{Mu();Kii();Xii();Yii=class{constructor(e,r,o,c,d,h,b,w,N){this._chunks=e,this._bom=r,this._cr=o,this._lf=c,this._crlf=d,this._containsRTL=h,this._containsUnusualLineTerminators=b,this._isBasicASCII=w,this._normalizeEOL=N}_getEOL(e){let r=this._cr+this._lf+this._crlf,o=this._cr+this._crlf;return r===0?e===1?` +`:`\r +`:o>r/2?`\r +`:` +`}create(e){let r=this._getEOL(e),o=this._chunks;if(this._normalizeEOL&&(r===`\r +`&&(this._cr>0||this._lf>0)||r===` +`&&(this._cr>0||this._crlf>0)))for(let d=0,h=o.length;d=55296&&r<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=r):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=r)}_acceptChunk1(e,r){!r&&e.length===0||(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))}_acceptChunk2(e){let r=ECi(this._tmpLineStarts,e);this.chunks.push(new fre(e,r.lineStarts)),this.cr+=r.cr,this.lf+=r.lf,this.crlf+=r.crlf,r.isBasicASCII||(this.isBasicASCII=!1,this.containsRTL||(this.containsRTL=HY(e)),this.containsUnusualLineTerminators||(this.containsUnusualLineTerminators=AIt(e)))}finish(e=!0){return this._finish(),new Yii(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,e)}_finish(){if(this.chunks.length===0&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;let e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);let r=dre(e.buffer);e.lineStarts=r,this._previousChar===13&&this.cr++}}}});function GBi(l,e){let r=[];for(let o=0;o{sd();h6t=class{constructor(e){this._default=e,this._store=[]}get(e){return e=this._store.length;)this._store[this._store.length]=this._default;this._store[e]=r}replace(e,r,o){if(e>=this._store.length)return;if(r===0){this.insert(e,o);return}else if(o===0){this.delete(e,r);return}let c=this._store.slice(0,e),d=this._store.slice(e+r),h=GBi(o,this._default);this._store=c.concat(h,d)}delete(e,r){r===0||e>=this._store.length||this._store.splice(e,r)}insert(e,r){if(r===0||e>=this._store.length)return;let o=[];for(let c=0;c{g6t=class{get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._startLineNumber+this._tokens.length-1}constructor(e,r){this._startLineNumber=e,this._tokens=r}getLineTokens(e){return this._tokens[e-this._startLineNumber]}appendLineTokens(e){this._tokens.push(e)}}});var tLe,Qii=ti(()=>{NCi();tLe=class{constructor(){this._tokens=[]}add(e,r){if(this._tokens.length>0){let o=this._tokens[this._tokens.length-1];if(o.endLineNumber+1===e){o.appendLineTokens(r);return}}this._tokens.push(new g6t(e,[r]))}finalize(){return this._tokens}}});function fft(l,e,r,o,c,d){let h=null;if(r)try{h=r.tokenizeEncoded(o,c,d.clone())}catch(b){dl(b)}return h||(h=vSe(l.encodeLanguageId(e),d)),Wx.convertToEndOffset(h.tokens,o.length),h}var Zii,y6t,JHe,eni,tni,v6t,ACi=ti(()=>{Ud();Du();X_();zO();Q6e();qO();o7();jVe();ICi();Qii();Vq();Zii=class{constructor(e,r){this.tokenizationSupport=r,this.initialState=this.tokenizationSupport.getInitialState(),this.store=new JHe(e)}getStartState(e){return this.store.getStartState(e,this.initialState)}getFirstInvalidLine(){return this.store.getFirstInvalidLine(this.initialState)}},y6t=class extends Zii{constructor(e,r,o,c){super(e,r),this._textModel=o,this._languageIdCodec=c}updateTokensUntilLine(e,r){let o=this._textModel.getLanguageId();for(;;){let c=this.getFirstInvalidLine();if(!c||c.lineNumber>r)break;let d=this._textModel.getLineContent(c.lineNumber),h=fft(this._languageIdCodec,o,this.tokenizationSupport,d,!0,c.startState);e.add(c.lineNumber,h.tokens),this.store.setEndState(c.lineNumber,h.endState)}}getTokenTypeIfInsertingCharacter(e,r){let o=this.getStartState(e.lineNumber);if(!o)return 0;let c=this._textModel.getLanguageId(),d=this._textModel.getLineContent(e.lineNumber),h=d.substring(0,e.column-1)+r+d.substring(e.column-1),b=fft(this._languageIdCodec,c,this.tokenizationSupport,h,!0,o),w=new Wx(b.tokens,h,this._languageIdCodec);if(w.getCount()===0)return 0;let N=w.findTokenIndexAtOffset(e.column-1);return w.getStandardTokenType(N)}tokenizeLineWithEdit(e,r,o){let c=e.lineNumber,d=e.column,h=this.getStartState(c);if(!h)return null;let b=this._textModel.getLineContent(c),w=b.substring(0,d-1)+o+b.substring(d-1+r),N=this._textModel.getLanguageIdAtPosition(c,0),L=fft(this._languageIdCodec,N,this.tokenizationSupport,w,!0,h);return new Wx(L.tokens,w,this._languageIdCodec)}hasAccurateTokensForLine(e){let r=this.store.getFirstInvalidEndStateLineNumberOrMax();return e1&&b>=1;b--){let w=this._textModel.getLineFirstNonWhitespaceColumn(b);if(w!==0&&w0&&o>0&&(o--,r--),this._lineEndStates.replace(e.startLineNumber,o,r)}},tni=class{constructor(){this._ranges=[]}get min(){return this._ranges.length===0?null:this._ranges[0].start}delete(e){let r=this._ranges.findIndex(o=>o.contains(e));if(r!==-1){let o=this._ranges[r];o.start===e?o.endExclusive===e+1?this._ranges.splice(r,1):this._ranges[r]=new x_(e+1,o.endExclusive):o.endExclusive===e+1?this._ranges[r]=new x_(o.start,e):this._ranges.splice(r,1,new x_(o.start,e),new x_(e+1,o.endExclusive))}}addRange(e){x_.addRange(e,this._ranges)}addRangeAndResize(e,r){let o=0;for(;!(o>=this._ranges.length||e.start<=this._ranges[o].endExclusive);)o++;let c=o;for(;!(c>=this._ranges.length||e.endExclusivee.toString()).join(" + ")}};v6t=class{constructor(e,r){this._tokenizerWithStateStore=e,this._backgroundTokenStore=r,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,NQt(e=>{this._isScheduled=!1,this._backgroundTokenizeWithDeadline(e)}))}_backgroundTokenizeWithDeadline(e){let r=Date.now()+e.timeRemaining(),o=()=>{this._isDisposed||!this._tokenizerWithStateStore._textModel.isAttachedToEditor()||!this._hasLinesToTokenize()||(this._backgroundTokenizeForAtLeast1ms(),Date.now()1||this._tokenizeOneInvalidLine(r)>=e)break;while(this._hasLinesToTokenize());this._backgroundTokenStore.setTokens(r.finalize()),this.checkFinished()}_hasLinesToTokenize(){return this._tokenizerWithStateStore?!this._tokenizerWithStateStore.store.allStatesValid():!1}_tokenizeOneInvalidLine(e){var r;let o=(r=this._tokenizerWithStateStore)===null||r===void 0?void 0:r.getFirstInvalidLine();return o?(this._tokenizerWithStateStore.updateTokensUntilLine(e,o.lineNumber),o.lineNumber):this._tokenizerWithStateStore._textModel.getLineCount()+1}checkFinished(){this._isDisposed||this._tokenizerWithStateStore.store.allStatesValid()&&this._backgroundTokenStore.backgroundTokenizationFinished()}requestTokens(e,r){this._tokenizerWithStateStore.store.invalidateEndStateRange(new Rd(e,r))}}});function pre(l){return l instanceof Uint32Array?l:new Uint32Array(l)}var _re,mre,PCi=ti(()=>{Vq();_re=new Uint32Array(0).buffer,mre=class l{static deleteBeginning(e,r){return e===null||e===_re?e:l.delete(e,0,r)}static deleteEnding(e,r){if(e===null||e===_re)return e;let o=pre(e),c=o[o.length-2];return l.delete(e,r,c)}static delete(e,r,o){if(e===null||e===_re||r===o)return e;let c=pre(e),d=c.length>>>1;if(r===0&&c[c.length-2]===o)return _re;let h=Wx.findIndexInTokensArray(c,r),b=h>0?c[h-1<<1]:0,w=c[h<<1];if(oL&&(c[N++]=Z,c[N++]=c[(Y<<1)+1],L=Z)}if(N===c.length)return e;let F=new Uint32Array(N);return F.set(c.subarray(0,N),0),F.buffer}static append(e,r){if(r===_re)return e;if(e===_re)return r;if(e===null)return e;if(r===null)return null;let o=pre(e),c=pre(r),d=c.length>>>1,h=new Uint32Array(o.length+c.length);h.set(o,0);let b=o.length,w=o[o.length-2];for(let N=0;N>>1,h=Wx.findIndexInTokensArray(c,r);h>0&&c[h-1<<1]===r&&h--;for(let b=h;b>>0}var _ft,OCi=ti(()=>{sd();Iu();PCi();Vq();_6e();_ft=class l{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,r,o){let c=null;if(r1&&(d=Qk.getLanguageId(c[1])!==e),!d)return _re}if(!c||c.length===0){let d=new Uint32Array(2);return d[0]=r,d[1]=LCi(e),d.buffer}return c[c.length-2]=r,c.byteOffset===0&&c.byteLength===c.buffer.byteLength?c.buffer:c}_ensureLine(e){for(;e>=this._len;)this._lineTokens[this._len]=null,this._len++}_deleteLines(e,r){r!==0&&(e+r>this._len&&(r=this._len-e),this._lineTokens.splice(e,r),this._len-=r)}_insertLines(e,r){if(r===0)return;let o=[];for(let c=0;c=this._len)return;if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;this._lineTokens[r]=mre.delete(this._lineTokens[r],e.startColumn-1,e.endColumn-1);return}this._lineTokens[r]=mre.deleteEnding(this._lineTokens[r],e.startColumn-1);let o=e.endLineNumber-1,c=null;o=this._len)){if(r===0){this._lineTokens[c]=mre.insert(this._lineTokens[c],e.column-1,o);return}this._lineTokens[c]=mre.deleteEnding(this._lineTokens[c],e.column-1),this._lineTokens[c]=mre.insert(this._lineTokens[c],e.column-1,o),this._insertLines(e.lineNumber,r)}}setMultilineTokens(e,r){if(e.length===0)return{changes:[]};let o=[];for(let c=0,d=e.length;c{sd();Vq();b6t=class l{constructor(e){this._pieces=[],this._isComplete=!1,this._languageIdCodec=e}flush(){this._pieces=[],this._isComplete=!1}isEmpty(){return this._pieces.length===0}set(e,r){this._pieces=e||[],this._isComplete=r}setPartial(e,r){let o=e;if(r.length>0){let d=r[0].getRange(),h=r[r.length-1].getRange();if(!d||!h)return e;o=e.plusRange(d).plusRange(h)}let c=null;for(let d=0,h=this._pieces.length;do.endLineNumber){c=c||{index:d};break}if(b.removeTokens(o),b.isEmpty()){this._pieces.splice(d,1),d--,h--;continue}if(b.endLineNumbero.endLineNumber){c=c||{index:d};continue}let[w,N]=b.split(o);if(w.isEmpty()){c=c||{index:d};continue}N.isEmpty()||(this._pieces.splice(d,1,w,N),d++,h++,c=c||{index:d})}return c=c||{index:this._pieces.length},r.length>0&&(this._pieces=Nbe(this._pieces,c.index,r)),o}isComplete(){return this._isComplete}addSparseTokens(e,r){if(r.getLineContent().length===0)return r;let o=this._pieces;if(o.length===0)return r;let c=l._findFirstPieceWithLine(o,e),d=o[c].getLineTokens(e);if(!d)return r;let h=r.getCount(),b=d.getCount(),w=0,N=[],L=0,B=0,F=(Y,Z)=>{Y!==B&&(B=Y,N[L++]=Y,N[L++]=Z)};for(let Y=0;Y>>0,Xe=~Je>>>0;for(;wr)c=d-1;else{for(;d>o&&e[d-1].startLineNumber<=r&&r<=e[d-1].endLineNumber;)d--;return d}}return o}acceptEdit(e,r,o,c,d){for(let h of this._pieces)h.acceptEdit(e,r,o,c,d)}}});var S6t,ini,nni,MCi=ti(()=>{sd();Ud();Du();xc();co();Q6e();qO();Iu();Vze();dy();Hti();ACi();Qii();OCi();FCi();S6t=class l extends THe{constructor(e,r,o,c,d,h){super(),this._languageService=e,this._languageConfigurationService=r,this._textModel=o,this._bracketPairsTextModelPart=c,this._languageId=d,this._attachedViews=h,this._semanticTokens=new b6t(this._languageService.languageIdCodec),this._onDidChangeLanguage=this._register(new wn),this.onDidChangeLanguage=this._onDidChangeLanguage.event,this._onDidChangeLanguageConfiguration=this._register(new wn),this.onDidChangeLanguageConfiguration=this._onDidChangeLanguageConfiguration.event,this._onDidChangeTokens=this._register(new wn),this.onDidChangeTokens=this._onDidChangeTokens.event,this.grammarTokens=this._register(new ini(this._languageService.languageIdCodec,this._textModel,()=>this._languageId,this._attachedViews)),this._register(this._languageConfigurationService.onDidChange(b=>{b.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})})),this._register(this.grammarTokens.onDidChangeTokens(b=>{this._emitModelTokensChangedEvent(b)})),this._register(this.grammarTokens.onDidChangeBackgroundTokenizationState(b=>{this._bracketPairsTextModelPart.handleDidChangeBackgroundTokenizationState()}))}handleDidChangeContent(e){if(e.isFlush)this._semanticTokens.flush();else if(!e.isEolChange)for(let r of e.changes){let[o,c,d]=DB(r.text);this._semanticTokens.acceptEdit(r.range,o,c,d,r.text.length>0?r.text.charCodeAt(0):0)}this.grammarTokens.handleDidChangeContent(e)}handleDidChangeAttached(){this.grammarTokens.handleDidChangeAttached()}getLineTokens(e){this.validateLineNumber(e);let r=this.grammarTokens.getLineTokens(e);return this._semanticTokens.addSparseTokens(e,r)}_emitModelTokensChangedEvent(e){this._textModel._isDisposing()||(this._bracketPairsTextModelPart.handleDidChangeTokens(e),this._onDidChangeTokens.fire(e))}validateLineNumber(e){if(e<1||e>this._textModel.getLineCount())throw new Hp("Illegal value for lineNumber")}get hasTokens(){return this.grammarTokens.hasTokens}resetTokenization(){this.grammarTokens.resetTokenization()}get backgroundTokenizationState(){return this.grammarTokens.backgroundTokenizationState}forceTokenization(e){this.validateLineNumber(e),this.grammarTokens.forceTokenization(e)}hasAccurateTokensForLine(e){return this.validateLineNumber(e),this.grammarTokens.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return this.validateLineNumber(e),this.grammarTokens.isCheapToTokenize(e)}tokenizeIfCheap(e){this.validateLineNumber(e),this.grammarTokens.tokenizeIfCheap(e)}getTokenTypeIfInsertingCharacter(e,r,o){return this.grammarTokens.getTokenTypeIfInsertingCharacter(e,r,o)}tokenizeLineWithEdit(e,r,o){return this.grammarTokens.tokenizeLineWithEdit(e,r,o)}setSemanticTokens(e,r){this._semanticTokens.set(e,r),this._emitModelTokensChangedEvent({semanticTokensApplied:e!==null,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]})}hasCompleteSemanticTokens(){return this._semanticTokens.isComplete()}hasSomeSemanticTokens(){return!this._semanticTokens.isEmpty()}setPartialSemanticTokens(e,r){if(this.hasCompleteSemanticTokens())return;let o=this._textModel.validateRange(this._semanticTokens.setPartial(e,r));this._emitModelTokensChangedEvent({semanticTokensApplied:!0,ranges:[{fromLineNumber:o.startLineNumber,toLineNumber:o.endLineNumber}]})}getWordAtPosition(e){this.assertNotDisposed();let r=this._textModel.validatePosition(e),o=this._textModel.getLineContent(r.lineNumber),c=this.getLineTokens(r.lineNumber),d=c.findTokenIndexAtOffset(r.column-1),[h,b]=l._findLanguageBoundaries(c,d),w=Pbe(r.column,this.getLanguageConfiguration(c.getLanguageId(d)).getWordDefinition(),o.substring(h,b),h);if(w&&w.startColumn<=e.column&&e.column<=w.endColumn)return w;if(d>0&&h===r.column-1){let[N,L]=l._findLanguageBoundaries(c,d-1),B=Pbe(r.column,this.getLanguageConfiguration(c.getLanguageId(d-1)).getWordDefinition(),o.substring(N,L),N);if(B&&B.startColumn<=e.column&&e.column<=B.endColumn)return B}return null}getLanguageConfiguration(e){return this._languageConfigurationService.getLanguageConfiguration(e)}static _findLanguageBoundaries(e,r){let o=e.getLanguageId(r),c=0;for(let h=r;h>=0&&e.getLanguageId(h)===o;h--)c=e.getStartOffset(h);let d=e.getLineContent().length;for(let h=r,b=e.getCount();h{let h=this.getLanguageId();d.changedLanguages.indexOf(h)!==-1&&this.resetTokenization()})),this.resetTokenization(),this._register(c.onDidChangeVisibleRanges(({view:d,state:h})=>{if(h){let b=this._attachedViewStates.get(d);b||(b=new nni(()=>this.refreshRanges(b.lineRanges)),this._attachedViewStates.set(d,b)),b.handleStateChange(h)}else this._attachedViewStates.deleteAndDispose(d)}))}resetTokenization(e=!0){var r;this._tokens.flush(),(r=this._debugBackgroundTokens)===null||r===void 0||r.flush(),this._debugBackgroundStates&&(this._debugBackgroundStates=new JHe(this._textModel.getLineCount())),e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]});let o=()=>{if(this._textModel.isTooLargeForTokenization())return[null,null];let h=a0.get(this.getLanguageId());if(!h)return[null,null];let b;try{b=h.getInitialState()}catch(w){return dl(w),[null,null]}return[h,b]},[c,d]=o();if(c&&d?this._tokenizer=new y6t(this._textModel.getLineCount(),c,this._textModel,this._languageIdCodec):this._tokenizer=null,this._backgroundTokenizer.clear(),this._defaultBackgroundTokenizer=null,this._tokenizer){let h={setTokens:b=>{this.setTokens(b)},backgroundTokenizationFinished:()=>{if(this._backgroundTokenizationState===2)return;let b=2;this._backgroundTokenizationState=b,this._onDidChangeBackgroundTokenizationState.fire()},setEndState:(b,w)=>{var N;if(!this._tokenizer)return;let L=this._tokenizer.store.getFirstInvalidEndStateLineNumber();L!==null&&b>=L&&((N=this._tokenizer)===null||N===void 0||N.store.setEndState(b,w))}};c&&c.createBackgroundTokenizer&&!c.backgroundTokenizerShouldOnlyVerifyTokens&&(this._backgroundTokenizer.value=c.createBackgroundTokenizer(this._textModel,h)),!this._backgroundTokenizer.value&&!this._textModel.isTooLargeForTokenization()&&(this._backgroundTokenizer.value=this._defaultBackgroundTokenizer=new v6t(this._tokenizer,h),this._defaultBackgroundTokenizer.handleChanges()),c?.backgroundTokenizerShouldOnlyVerifyTokens&&c.createBackgroundTokenizer?(this._debugBackgroundTokens=new _ft(this._languageIdCodec),this._debugBackgroundStates=new JHe(this._textModel.getLineCount()),this._debugBackgroundTokenizer.clear(),this._debugBackgroundTokenizer.value=c.createBackgroundTokenizer(this._textModel,{setTokens:b=>{var w;(w=this._debugBackgroundTokens)===null||w===void 0||w.setMultilineTokens(b,this._textModel)},backgroundTokenizationFinished(){},setEndState:(b,w)=>{var N;(N=this._debugBackgroundStates)===null||N===void 0||N.setEndState(b,w)}})):(this._debugBackgroundTokens=void 0,this._debugBackgroundStates=void 0,this._debugBackgroundTokenizer.value=void 0)}this.refreshAllVisibleLineTokens()}handleDidChangeAttached(){var e;(e=this._defaultBackgroundTokenizer)===null||e===void 0||e.handleChanges()}handleDidChangeContent(e){var r,o,c;if(e.isFlush)this.resetTokenization(!1);else if(!e.isEolChange){for(let d of e.changes){let[h,b]=DB(d.text);this._tokens.acceptEdit(d.range,h,b),(r=this._debugBackgroundTokens)===null||r===void 0||r.acceptEdit(d.range,h,b)}(o=this._debugBackgroundStates)===null||o===void 0||o.acceptChanges(e.changes),this._tokenizer&&this._tokenizer.store.acceptChanges(e.changes),(c=this._defaultBackgroundTokenizer)===null||c===void 0||c.handleChanges()}}setTokens(e){let{changes:r}=this._tokens.setMultilineTokens(e,this._textModel);return r.length>0&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:r}),{changes:r}}refreshAllVisibleLineTokens(){let e=Rd.joinMany([...this._attachedViewStates].map(([r,o])=>o.lineRanges));this.refreshRanges(e)}refreshRanges(e){for(let r of e)this.refreshRange(r.startLineNumber,r.endLineNumberExclusive-1)}refreshRange(e,r){var o,c;if(!this._tokenizer)return;e=Math.max(1,Math.min(this._textModel.getLineCount(),e)),r=Math.min(this._textModel.getLineCount(),r);let d=new tLe,{heuristicTokens:h}=this._tokenizer.tokenizeHeuristically(d,e,r),b=this.setTokens(d.finalize());if(h)for(let w of b.changes)(o=this._backgroundTokenizer.value)===null||o===void 0||o.requestTokens(w.fromLineNumber,w.toLineNumber+1);(c=this._defaultBackgroundTokenizer)===null||c===void 0||c.checkFinished()}forceTokenization(e){var r,o;let c=new tLe;(r=this._tokenizer)===null||r===void 0||r.updateTokensUntilLine(c,e),this.setTokens(c.finalize()),(o=this._defaultBackgroundTokenizer)===null||o===void 0||o.checkFinished()}hasAccurateTokensForLine(e){return this._tokenizer?this._tokenizer.hasAccurateTokensForLine(e):!0}isCheapToTokenize(e){return this._tokenizer?this._tokenizer.isCheapToTokenize(e):!0}tokenizeIfCheap(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)}getLineTokens(e){var r;let o=this._textModel.getLineContent(e),c=this._tokens.getTokens(this._textModel.getLanguageId(),e-1,o);if(this._debugBackgroundTokens&&this._debugBackgroundStates&&this._tokenizer&&this._debugBackgroundStates.getFirstInvalidEndStateLineNumberOrMax()>e&&this._tokenizer.store.getFirstInvalidEndStateLineNumberOrMax()>e){let d=this._debugBackgroundTokens.getTokens(this._textModel.getLanguageId(),e-1,o);!c.equals(d)&&(!((r=this._debugBackgroundTokenizer.value)===null||r===void 0)&&r.reportMismatchingTokens)&&this._debugBackgroundTokenizer.value.reportMismatchingTokens(e)}return c}getTokenTypeIfInsertingCharacter(e,r,o){if(!this._tokenizer)return 0;let c=this._textModel.validatePosition(new qn(e,r));return this.forceTokenization(c.lineNumber),this._tokenizer.getTokenTypeIfInsertingCharacter(c,o)}tokenizeLineWithEdit(e,r,o){if(!this._tokenizer)return null;let c=this._textModel.validatePosition(e);return this.forceTokenization(c.lineNumber),this._tokenizer.tokenizeLineWithEdit(c,r,o)}get hasTokens(){return this._tokens.hasTokens}},nni=class extends tn{get lineRanges(){return this._lineRanges}constructor(e){super(),this._refreshTokens=e,this.runner=this._register(new p_(()=>this.update(),50)),this._computedLineRanges=[],this._lineRanges=[]}update(){Jm(this._computedLineRanges,this._lineRanges,(e,r)=>e.equals(r))||(this._computedLineRanges=this._lineRanges,this._refreshTokens())}handleStateChange(e){this._lineRanges=e.visibleLineRanges,e.stabilized?(this.runner.cancel(),this.update()):this.runner.schedule()}}});var qSe,pft,iLe,fQ,mft=ti(()=>{bl();qSe=Ml("undoRedoService"),pft=class{constructor(e,r){this.resource=e,this.elements=r}},iLe=class l{constructor(){this.id=l._ID++,this.order=1}nextOrder(){return this.id===0?0:this.order++}};iLe._ID=0;iLe.None=new iLe;fQ=class l{constructor(){this.id=l._ID++,this.order=1}nextOrder(){return this.id===0?0:this.order++}};fQ._ID=0;fQ.None=new fQ});function XBi(l){let e=new dft;return e.acceptChunk(l),e.finish()}function YBi(l){let e=new dft,r;for(;typeof(r=l.read())=="string";)e.acceptChunk(r);return e.finish()}function RCi(l,e){let r;return typeof l=="string"?r=XBi(l):zyi(l)?r=YBi(l):r=l,r.create(e)}function eji(l){let e=0;for(let r of l)if(r===" "||r===" ")e++;else break;return e}function oni(l){return!!(l.options.overviewRuler&&l.options.overviewRuler.color)}function tji(l){return!!l.after||!!l.before}function C6t(l){return!!l.options.after||!!l.options.before}function hre(l){return l.replace(/[^a-z0-9\-_]/gi," ")}function jCi(l){return l instanceof id?l:id.createDynamic(l)}var KBi,rni,nLe,x6t,QBi,ZBi,sni,hft,a$,k6t,w6t,ani,cni,lni,gre,id,BCi,uni,dni,fni,_ni,Ww=ti(()=>{sd();rx();Du();xc();co();Mu();s0();Q6e();RPt();qO();Iu();Xa();j0();Hlt();FD();ix();MD();tCi();iCi();Rii();Uti();pCi();kCi();Xii();DCi();qut();MCi();jSe();mft();KBi=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},rni=function(l,e){return function(r,o){e(r,o,l)}};x6t=0,QBi=999,ZBi=1e4,sni=class{constructor(e){this._source=e,this._eos=!1}read(){if(this._eos)return null;let e=[],r=0,o=0;do{let c=this._source.read();if(c===null)return this._eos=!0,r===0?null:e.join("");if(c.length>0&&(e[r++]=c,o+=c.length),o>=64*1024)return e.join("")}while(!0)}},hft=()=>{throw new Error("Invalid change accessor")},a$=nLe=class extends tn{static resolveOptions(e,r){if(r.detectIndentation){let o=jii(e,r.tabSize,r.insertSpaces);return new fSe({tabSize:o.tabSize,indentSize:"tabSize",insertSpaces:o.insertSpaces,trimAutoWhitespace:r.trimAutoWhitespace,defaultEOL:r.defaultEOL,bracketPairColorizationOptions:r.bracketPairColorizationOptions})}return new fSe(r)}get onDidChangeLanguage(){return this._tokenizationTextModelPart.onDidChangeLanguage}get onDidChangeLanguageConfiguration(){return this._tokenizationTextModelPart.onDidChangeLanguageConfiguration}get onDidChangeTokens(){return this._tokenizationTextModelPart.onDidChangeTokens}onDidChangeContent(e){return this._eventEmitter.slowEvent(r=>e(r.contentChangedEvent))}onDidChangeContentOrInjectedText(e){return cA(this._eventEmitter.fastEvent(r=>e(r)),this._onDidChangeInjectedText.event(r=>e(r)))}_isDisposing(){return this.__isDisposing}get tokenization(){return this._tokenizationTextModelPart}get bracketPairs(){return this._bracketPairs}get guides(){return this._guidesTextModelPart}constructor(e,r,o,c=null,d,h,b){super(),this._undoRedoService=d,this._languageService=h,this._languageConfigurationService=b,this._onWillDispose=this._register(new wn),this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new uni(Y=>this.handleBeforeFireDecorationsChangedEvent(Y))),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeOptions=this._register(new wn),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new wn),this.onDidChangeAttached=this._onDidChangeAttached.event,this._onDidChangeInjectedText=this._register(new wn),this._eventEmitter=this._register(new dni),this._languageSelectionListener=this._register(new zg),this._deltaDecorationCallCnt=0,this._attachedViews=new fni,x6t++,this.id="$model"+x6t,this.isForSimpleWidget=o.isForSimpleWidget,typeof c>"u"||c===null?this._associatedResource=qc.parse("inmemory://model/"+x6t):this._associatedResource=c,this._attachedEditorCount=0;let{textBuffer:w,disposable:N}=RCi(e,o.defaultEOL);this._buffer=w,this._bufferDisposable=N,this._options=nLe.resolveOptions(this._buffer,o);let L=typeof r=="string"?r:r.languageId;typeof r!="string"&&(this._languageSelectionListener.value=r.onDidChange(()=>this._setLanguage(r.languageId))),this._bracketPairs=this._register(new a6t(this,this._languageConfigurationService)),this._guidesTextModelPart=this._register(new v4t(this,this._languageConfigurationService)),this._decorationProvider=this._register(new c6t(this)),this._tokenizationTextModelPart=new S6t(this._languageService,this._languageConfigurationService,this,this._bracketPairs,L,this._attachedViews);let B=this._buffer.getLineCount(),F=this._buffer.getValueLengthInRange(new Zt(1,1,B,this._buffer.getLineLength(B)+1),0);o.largeFileOptimizations?(this._isTooLargeForTokenization=F>nLe.LARGE_FILE_SIZE_THRESHOLD||B>nLe.LARGE_FILE_LINE_COUNT_THRESHOLD,this._isTooLargeForHeapOperation=F>nLe.LARGE_FILE_HEAP_OPERATION_THRESHOLD):(this._isTooLargeForTokenization=!1,this._isTooLargeForHeapOperation=!1),this._isTooLargeForSyncing=F>nLe._MODEL_SYNC_LIMIT,this._versionId=1,this._alternativeVersionId=1,this._initialUndoRedoSnapshot=null,this._isDisposed=!1,this.__isDisposing=!1,this._instanceId=PIt(x6t),this._lastDecorationId=0,this._decorations=Object.create(null),this._decorationsTree=new k6t,this._commandManager=new _6t(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(L)}dispose(){this.__isDisposing=!0,this._onWillDispose.fire(),this._tokenizationTextModelPart.dispose(),this._isDisposed=!0,super.dispose(),this._bufferDisposable.dispose(),this.__isDisposing=!1;let e=new UHe([],"",` +`,!1,!1,!0,!0);e.dispose(),this._buffer=e,this._bufferDisposable=tn.None}_assertNotDisposed(){if(this._isDisposed)throw new Error("Model is disposed!")}_emitContentChangedEvent(e,r){this.__isDisposing||(this._tokenizationTextModelPart.handleDidChangeContent(r),this._bracketPairs.handleDidChangeContent(r),this._eventEmitter.fire(new BSe(e,r)))}setValue(e){if(this._assertNotDisposed(),e==null)throw aA();let{textBuffer:r,disposable:o}=RCi(e,this._options.defaultEOL);this._setValueFromTextBuffer(r,o)}_createContentChanged2(e,r,o,c,d,h,b,w){return{changes:[{range:e,rangeOffset:r,rangeLength:o,text:c}],eol:this._buffer.getEOL(),isEolChange:w,versionId:this.getVersionId(),isUndoing:d,isRedoing:h,isFlush:b}}_setValueFromTextBuffer(e,r){this._assertNotDisposed();let o=this.getFullModelRange(),c=this.getValueLengthInRange(o),d=this.getLineCount(),h=this.getLineMaxColumn(d);this._buffer=e,this._bufferDisposable.dispose(),this._bufferDisposable=r,this._increaseVersionId(),this._decorations=Object.create(null),this._decorationsTree=new k6t,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new Y6e([new J4t],this._versionId,!1,!1),this._createContentChanged2(new Zt(1,1,d,h),0,c,this.getValue(),!1,!1,!0,!1))}setEOL(e){this._assertNotDisposed();let r=e===1?`\r +`:` +`;if(this._buffer.getEOL()===r)return;let o=this.getFullModelRange(),c=this.getValueLengthInRange(o),d=this.getLineCount(),h=this.getLineMaxColumn(d);this._onBeforeEOLChange(),this._buffer.setEOL(r),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new Y6e([new G4t],this._versionId,!1,!1),this._createContentChanged2(new Zt(1,1,d,h),0,c,this.getValue(),!1,!1,!1,!0))}_onBeforeEOLChange(){this._decorationsTree.ensureAllNodesHaveRanges(this)}_onAfterEOLChange(){let e=this.getVersionId(),r=this._decorationsTree.collectNodesPostOrder();for(let o=0,c=r.length;o0}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,r=0,o=this._buffer.getLineCount();for(let c=1;c<=o;c++){let d=this._buffer.getLineLength(c);d>=ZBi?r+=d:e+=d}return r>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();let r=typeof e.tabSize<"u"?e.tabSize:this._options.tabSize,o=typeof e.indentSize<"u"?e.indentSize:this._options.originalIndentSize,c=typeof e.insertSpaces<"u"?e.insertSpaces:this._options.insertSpaces,d=typeof e.trimAutoWhitespace<"u"?e.trimAutoWhitespace:this._options.trimAutoWhitespace,h=typeof e.bracketColorizationOptions<"u"?e.bracketColorizationOptions:this._options.bracketPairColorizationOptions,b=new fSe({tabSize:r,indentSize:o,insertSpaces:c,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:d,bracketPairColorizationOptions:h});if(this._options.equals(b))return;let w=this._options.createChangeEvent(b);this._options=b,this._bracketPairs.handleDidChangeOptions(w),this._decorationProvider.handleDidChangeOptions(w),this._onDidChangeOptions.fire(w)}detectIndentation(e,r){this._assertNotDisposed();let o=jii(this._buffer,r,e);this.updateOptions({insertSpaces:o.insertSpaces,tabSize:o.tabSize,indentSize:o.tabSize})}normalizeIndentation(e){return this._assertNotDisposed(),bHe(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){let r=this.findMatches(kQt.source,!1,!0,!1,null,!1,1073741824);this._buffer.resetMightContainUnusualLineTerminators(),this.pushEditOperations(e,r.map(o=>({range:o.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();let r=this._validatePosition(e.lineNumber,e.column,0);return this._buffer.getOffsetAt(r.lineNumber,r.column)}getPositionAt(e){this._assertNotDisposed();let r=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(r)}_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,r=!1){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new Hp("Operation would exceed heap memory limits");let o=this.getFullModelRange(),c=this.getValueInRange(o,e);return r?this._buffer.getBOM()+c:c}createSnapshot(e=!1){return new sni(this._buffer.createSnapshot(e))}getValueLength(e,r=!1){this._assertNotDisposed();let o=this.getFullModelRange(),c=this.getValueLengthInRange(o,e);return r?this._buffer.getBOM().length+c:c}getValueInRange(e,r=0){return this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),r)}getValueLengthInRange(e,r=0){return this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),r)}getCharacterCountInRange(e,r=0){return this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(e),r)}getLineCount(){return this._assertNotDisposed(),this._buffer.getLineCount()}getLineContent(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Hp("Illegal value for lineNumber");return this._buffer.getLineContent(e)}getLineLength(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Hp("Illegal value for lineNumber");return this._buffer.getLineLength(e)}getLinesContent(){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new Hp("Operation would exceed heap memory limits");return this._buffer.getLinesContent()}getEOL(){return this._assertNotDisposed(),this._buffer.getEOL()}getEndOfLineSequence(){return this._assertNotDisposed(),this._buffer.getEOL()===` +`?0:1}getLineMinColumn(e){return this._assertNotDisposed(),1}getLineMaxColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Hp("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1}getLineFirstNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Hp("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)}getLineLastNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Hp("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)}_validateRangeRelaxedNoAllocations(e){let r=this._buffer.getLineCount(),o=e.startLineNumber,c=e.startColumn,d=Math.floor(typeof o=="number"&&!isNaN(o)?o:1),h=Math.floor(typeof c=="number"&&!isNaN(c)?c:1);if(d<1)d=1,h=1;else if(d>r)d=r,h=this.getLineMaxColumn(d);else if(h<=1)h=1;else{let B=this.getLineMaxColumn(d);h>=B&&(h=B)}let b=e.endLineNumber,w=e.endColumn,N=Math.floor(typeof b=="number"&&!isNaN(b)?b:1),L=Math.floor(typeof w=="number"&&!isNaN(w)?w:1);if(N<1)N=1,L=1;else if(N>r)N=r,L=this.getLineMaxColumn(N);else if(L<=1)L=1;else{let B=this.getLineMaxColumn(N);L>=B&&(L=B)}return o===d&&c===h&&b===N&&w===L&&e instanceof Zt&&!(e instanceof ic)?e:new Zt(d,h,N,L)}_isValidPosition(e,r,o){if(typeof e!="number"||typeof r!="number"||isNaN(e)||isNaN(r)||e<1||r<1||(e|0)!==e||(r|0)!==r)return!1;let c=this._buffer.getLineCount();if(e>c)return!1;if(r===1)return!0;let d=this.getLineMaxColumn(e);if(r>d)return!1;if(o===1){let h=this._buffer.getLineCharCode(e,r-2);if(TS(h))return!1}return!0}_validatePosition(e,r,o){let c=Math.floor(typeof e=="number"&&!isNaN(e)?e:1),d=Math.floor(typeof r=="number"&&!isNaN(r)?r:1),h=this._buffer.getLineCount();if(c<1)return new qn(1,1);if(c>h)return new qn(h,this.getLineMaxColumn(h));if(d<=1)return new qn(c,1);let b=this.getLineMaxColumn(c);if(d>=b)return new qn(c,b);if(o===1){let w=this._buffer.getLineCharCode(c,d-2);if(TS(w))return new qn(c,d-1)}return new qn(c,d)}validatePosition(e){return this._assertNotDisposed(),e instanceof qn&&this._isValidPosition(e.lineNumber,e.column,1)?e:this._validatePosition(e.lineNumber,e.column,1)}_isValidRange(e,r){let o=e.startLineNumber,c=e.startColumn,d=e.endLineNumber,h=e.endColumn;if(!this._isValidPosition(o,c,0)||!this._isValidPosition(d,h,0))return!1;if(r===1){let b=c>1?this._buffer.getLineCharCode(o,c-2):0,w=h>1&&h<=this._buffer.getLineLength(d)?this._buffer.getLineCharCode(d,h-2):0,N=TS(b),L=TS(w);return!N&&!L}return!0}validateRange(e){if(this._assertNotDisposed(),e instanceof Zt&&!(e instanceof ic)&&this._isValidRange(e,1))return e;let o=this._validatePosition(e.startLineNumber,e.startColumn,0),c=this._validatePosition(e.endLineNumber,e.endColumn,0),d=o.lineNumber,h=o.column,b=c.lineNumber,w=c.column;{let N=h>1?this._buffer.getLineCharCode(d,h-2):0,L=w>1&&w<=this._buffer.getLineLength(b)?this._buffer.getLineCharCode(b,w-2):0,B=TS(N),F=TS(L);return!B&&!F?new Zt(d,h,b,w):d===b&&h===w?new Zt(d,h-1,b,w-1):B&&F?new Zt(d,h-1,b,w+1):B?new Zt(d,h-1,b,w):new Zt(d,h,b,w+1)}return new Zt(d,h,b,w)}modifyPosition(e,r){this._assertNotDisposed();let o=this.getOffsetAt(e)+r;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,o)))}getFullModelRange(){this._assertNotDisposed();let e=this.getLineCount();return new Zt(1,1,e,this.getLineMaxColumn(e))}findMatchesLineByLine(e,r,o,c){return this._buffer.findMatchesLineByLine(e,r,o,c)}findMatches(e,r,o,c,d,h,b=QBi){this._assertNotDisposed();let w=null;r!==null&&(Array.isArray(r)||(r=[r]),r.every(B=>Zt.isIRange(B))&&(w=r.map(B=>this.validateRange(B)))),w===null&&(w=[this.getFullModelRange()]),w=w.sort((B,F)=>B.startLineNumber-F.startLineNumber||B.startColumn-F.startColumn);let N=[];N.push(w.reduce((B,F)=>Zt.areIntersecting(B,F)?B.plusRange(F):(N.push(B),F)));let L;if(!o&&e.indexOf(` +`)<0){let F=new YY(e,o,c,d).parseSearchRequest();if(!F)return[];L=Y=>this.findMatchesLineByLine(Y,F,h,b)}else L=B=>a6e.findMatches(this,new YY(e,o,c,d),B,h,b);return N.map(L).reduce((B,F)=>B.concat(F),[])}findNextMatch(e,r,o,c,d,h){this._assertNotDisposed();let b=this.validatePosition(r);if(!o&&e.indexOf(` +`)<0){let N=new YY(e,o,c,d).parseSearchRequest();if(!N)return null;let L=this.getLineCount(),B=new Zt(b.lineNumber,b.column,L,this.getLineMaxColumn(L)),F=this.findMatchesLineByLine(B,N,h,1);return a6e.findNextMatch(this,new YY(e,o,c,d),b,h),F.length>0||(B=new Zt(1,1,b.lineNumber,this.getLineMaxColumn(b.lineNumber)),F=this.findMatchesLineByLine(B,N,h,1),F.length>0)?F[0]:null}return a6e.findNextMatch(this,new YY(e,o,c,d),b,h)}findPreviousMatch(e,r,o,c,d,h){this._assertNotDisposed();let b=this.validatePosition(r);return a6e.findPreviousMatch(this,new YY(e,o,c,d),b,h)}pushStackElement(){this._commandManager.pushStackElement()}popStackElement(){this._commandManager.popStackElement()}pushEOL(e){if((this.getEOL()===` +`?0:1)!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._initialUndoRedoSnapshot===null&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_validateEditOperation(e){return e instanceof DVe?e:new DVe(e.identifier||null,this.validateRange(e.range),e.text,e.forceMoveMarkers||!1,e.isAutoWhitespaceEdit||!1,e._isTracked||!1)}_validateEditOperations(e){let r=[];for(let o=0,c=e.length;o({range:this.validateRange(b.range),text:b.text})),h=!0;if(e)for(let b=0,w=e.length;bN.endLineNumber,ee=N.startLineNumber>Y.endLineNumber;if(!Z&&!ee){L=!0;break}}if(!L){h=!1;break}}if(h)for(let b=0,w=this._trimAutoWhitespaceLines.length;bZ.endLineNumber)&&!(N===Z.startLineNumber&&Z.startColumn===L&&Z.isEmpty()&&ee&&ee.length>0&&ee.charAt(0)===` +`)&&!(N===Z.startLineNumber&&Z.startColumn===1&&Z.isEmpty()&&ee&&ee.length>0&&ee.charAt(ee.length-1)===` +`)){B=!1;break}}if(B){let F=new Zt(N,1,N,L);r.push(new DVe(null,F,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return this._initialUndoRedoSnapshot===null&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(e,r,o,c)}_applyUndo(e,r,o,c){let d=e.map(h=>{let b=this.getPositionAt(h.newPosition),w=this.getPositionAt(h.newEnd);return{range:new Zt(b.lineNumber,b.column,w.lineNumber,w.column),text:h.oldText}});this._applyUndoRedoEdits(d,r,!0,!1,o,c)}_applyRedo(e,r,o,c){let d=e.map(h=>{let b=this.getPositionAt(h.oldPosition),w=this.getPositionAt(h.oldEnd);return{range:new Zt(b.lineNumber,b.column,w.lineNumber,w.column),text:h.newText}});this._applyUndoRedoEdits(d,r,!1,!0,o,c)}_applyUndoRedoEdits(e,r,o,c,d,h){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=o,this._isRedoing=c,this.applyEdits(e,!1),this.setEOL(r),this._overwriteAlternativeVersionId(d)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(h),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(e,r=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();let o=this._validateEditOperations(e);return this._doApplyEdits(o,r)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(e,r){let o=this._buffer.getLineCount(),c=this._buffer.applyEdits(e,this._options.trimAutoWhitespace,r),d=this._buffer.getLineCount(),h=c.changes;if(this._trimAutoWhitespaceLines=c.trimAutoWhitespaceLineNumbers,h.length!==0){for(let N=0,L=h.length;N=0;_n--){let Pr=Y+_n,dr=ct+_n;mi.takeFromEndWhile(Tn=>Tn.lineNumber>dr);let Rr=mi.takeFromEndWhile(Tn=>Tn.lineNumber===dr);b.push(new Udt(Pr,this.getLineContent(dr),Rr))}if(Je$i.lineNumber$i.lineNumber===La)}b.push(new $4t(Pr+1,Y+Te,Qn,Tn))}w+=Xe}this._emitContentChangedEvent(new Y6e(b,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:h,eol:this._buffer.getEOL(),isEolChange:!1,versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return c.reverseEdits===null?void 0:c.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(e===null||e.size===0)return;let o=Array.from(e).map(c=>new Udt(c,this.getLineContent(c),this._getInjectedTextInLine(c)));this._onDidChangeInjectedText.fire(new AHe(o))}changeDecorations(e,r=0){this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(r,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(e,r){let o={addDecoration:(d,h)=>this._deltaDecorationsImpl(e,[],[{range:d,options:h}])[0],changeDecoration:(d,h)=>{this._changeDecorationImpl(d,h)},changeDecorationOptions:(d,h)=>{this._changeDecorationOptionsImpl(d,jCi(h))},removeDecoration:d=>{this._deltaDecorationsImpl(e,[d],[])},deltaDecorations:(d,h)=>d.length===0&&h.length===0?[]:this._deltaDecorationsImpl(e,d,h)},c=null;try{c=r(o)}catch(d){dl(d)}return o.addDecoration=hft,o.changeDecoration=hft,o.changeDecorationOptions=hft,o.removeDecoration=hft,o.deltaDecorations=hft,c}deltaDecorations(e,r,o=0){if(this._assertNotDisposed(),e||(e=[]),e.length===0&&r.length===0)return[];try{return this._deltaDecorationCallCnt++,this._deltaDecorationCallCnt>1&&(console.warn("Invoking deltaDecorations recursively could lead to leaking decorations."),dl(new Error("Invoking deltaDecorations recursively could lead to leaking decorations."))),this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(o,e,r)}finally{this._onDidChangeDecorations.endDeferredEmit(),this._deltaDecorationCallCnt--}}_getTrackedRange(e){return this.getDecorationRange(e)}_setTrackedRange(e,r,o){let c=e?this._decorations[e]:null;if(!c)return r?this._deltaDecorationsImpl(0,[],[{range:r,options:BCi[o]}],!0)[0]:null;if(!r)return this._decorationsTree.delete(c),delete this._decorations[c.id],null;let d=this._validateRangeRelaxedNoAllocations(r),h=this._buffer.getOffsetAt(d.startLineNumber,d.startColumn),b=this._buffer.getOffsetAt(d.endLineNumber,d.endColumn);return this._decorationsTree.delete(c),c.reset(this.getVersionId(),h,b,d),c.setOptions(BCi[o]),this._decorationsTree.insert(c),c.id}removeAllDecorationsWithOwnerId(e){if(this._isDisposed)return;let r=this._decorationsTree.collectNodesFromOwner(e);for(let o=0,c=r.length;othis.getLineCount()?[]:this.getLinesDecorations(e,e,r,o)}getLinesDecorations(e,r,o=0,c=!1,d=!1){let h=this.getLineCount(),b=Math.min(h,Math.max(1,e)),w=Math.min(h,Math.max(1,r)),N=this.getLineMaxColumn(w),L=new Zt(b,1,w,N),B=this._getDecorationsInRange(L,o,c,d);return jlt(B,this._decorationProvider.getDecorationsInRange(L,o,c)),B}getDecorationsInRange(e,r=0,o=!1,c=!1,d=!1){let h=this.validateRange(e),b=this._getDecorationsInRange(h,r,o,d);return jlt(b,this._decorationProvider.getDecorationsInRange(h,r,o,c)),b}getOverviewRulerDecorations(e=0,r=!1){return this._decorationsTree.getAll(this,e,r,!0,!1)}getInjectedTextDecorations(e=0){return this._decorationsTree.getAllInjectedText(this,e)}_getInjectedTextInLine(e){let r=this._buffer.getOffsetAt(e,1),o=r+this._buffer.getLineLength(e),c=this._decorationsTree.getInjectedTextInInterval(this,r,o,0);return RR.fromDecorations(c).filter(d=>d.lineNumber===e)}getAllDecorations(e=0,r=!1){let o=this._decorationsTree.getAll(this,e,r,!1,!1);return o=o.concat(this._decorationProvider.getAllDecorations(e,r)),o}getAllMarginDecorations(e=0){return this._decorationsTree.getAll(this,e,!1,!1,!0)}_getDecorationsInRange(e,r,o,c){let d=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),h=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn);return this._decorationsTree.getAllInInterval(this,d,h,r,o,c)}getRangeAt(e,r){return this._buffer.getRangeAt(e,r-e)}_changeDecorationImpl(e,r){let o=this._decorations[e];if(!o)return;if(o.options.after){let b=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(b.endLineNumber)}if(o.options.before){let b=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(b.startLineNumber)}let c=this._validateRangeRelaxedNoAllocations(r),d=this._buffer.getOffsetAt(c.startLineNumber,c.startColumn),h=this._buffer.getOffsetAt(c.endLineNumber,c.endColumn);this._decorationsTree.delete(o),o.reset(this.getVersionId(),d,h,c),this._decorationsTree.insert(o),this._onDidChangeDecorations.checkAffectedAndFire(o.options),o.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(c.endLineNumber),o.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(c.startLineNumber)}_changeDecorationOptionsImpl(e,r){let o=this._decorations[e];if(!o)return;let c=!!(o.options.overviewRuler&&o.options.overviewRuler.color),d=!!(r.overviewRuler&&r.overviewRuler.color);if(this._onDidChangeDecorations.checkAffectedAndFire(o.options),this._onDidChangeDecorations.checkAffectedAndFire(r),o.options.after||r.after){let w=this._decorationsTree.getNodeRange(this,o);this._onDidChangeDecorations.recordLineAffectedByInjectedText(w.endLineNumber)}if(o.options.before||r.before){let w=this._decorationsTree.getNodeRange(this,o);this._onDidChangeDecorations.recordLineAffectedByInjectedText(w.startLineNumber)}let h=c!==d,b=tji(r)!==C6t(o);h||b?(this._decorationsTree.delete(o),o.setOptions(r),this._decorationsTree.insert(o)):o.setOptions(r)}_deltaDecorationsImpl(e,r,o,c=!1){let d=this.getVersionId(),h=r.length,b=0,w=o.length,N=0;this._onDidChangeDecorations.beginDeferredEmit();try{let L=new Array(w);for(;bthis._setLanguage(e.languageId,r)),this._setLanguage(e.languageId,r))}_setLanguage(e,r){this.tokenization.setLanguageId(e,r),this._languageService.requestRichLanguageFeatures(e)}getLanguageIdAtPosition(e,r){return this.tokenization.getLanguageIdAtPosition(e,r)}getWordAtPosition(e){return this._tokenizationTextModelPart.getWordAtPosition(e)}getWordUntilPosition(e){return this._tokenizationTextModelPart.getWordUntilPosition(e)}normalizePosition(e,r){return e}getLineIndentColumn(e){return eji(this.getLineContent(e))+1}};a$._MODEL_SYNC_LIMIT=50*1024*1024;a$.LARGE_FILE_SIZE_THRESHOLD=20*1024*1024;a$.LARGE_FILE_LINE_COUNT_THRESHOLD=300*1e3;a$.LARGE_FILE_HEAP_OPERATION_THRESHOLD=256*1024*1024;a$.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:ID.tabSize,indentSize:ID.indentSize,insertSpaces:ID.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:ID.trimAutoWhitespace,largeFileOptimizations:ID.largeFileOptimizations,bracketPairColorizationOptions:ID.bracketPairColorizationOptions};a$=nLe=KBi([rni(4,qSe),rni(5,km),rni(6,cp)],a$);k6t=class{constructor(){this._decorationsTree0=new VHe,this._decorationsTree1=new VHe,this._injectedTextDecorationsTree=new VHe}ensureAllNodesHaveRanges(e){this.getAll(e,0,!1,!1,!1)}_ensureNodesHaveRanges(e,r){for(let o of r)o.range===null&&(o.range=e.getRangeAt(o.cachedAbsoluteStart,o.cachedAbsoluteEnd));return r}getAllInInterval(e,r,o,c,d,h){let b=e.getVersionId(),w=this._intervalSearch(r,o,c,d,b,h);return this._ensureNodesHaveRanges(e,w)}_intervalSearch(e,r,o,c,d,h){let b=this._decorationsTree0.intervalSearch(e,r,o,c,d,h),w=this._decorationsTree1.intervalSearch(e,r,o,c,d,h),N=this._injectedTextDecorationsTree.intervalSearch(e,r,o,c,d,h);return b.concat(w).concat(N)}getInjectedTextInInterval(e,r,o,c){let d=e.getVersionId(),h=this._injectedTextDecorationsTree.intervalSearch(r,o,c,!1,d,!1);return this._ensureNodesHaveRanges(e,h).filter(b=>b.options.showIfCollapsed||!b.range.isEmpty())}getAllInjectedText(e,r){let o=e.getVersionId(),c=this._injectedTextDecorationsTree.search(r,!1,o,!1);return this._ensureNodesHaveRanges(e,c).filter(d=>d.options.showIfCollapsed||!d.range.isEmpty())}getAll(e,r,o,c,d){let h=e.getVersionId(),b=this._search(r,o,c,h,d);return this._ensureNodesHaveRanges(e,b)}_search(e,r,o,c,d){if(o)return this._decorationsTree1.search(e,r,c,d);{let h=this._decorationsTree0.search(e,r,c,d),b=this._decorationsTree1.search(e,r,c,d),w=this._injectedTextDecorationsTree.search(e,r,c,d);return h.concat(b).concat(w)}}collectNodesFromOwner(e){let r=this._decorationsTree0.collectNodesFromOwner(e),o=this._decorationsTree1.collectNodesFromOwner(e),c=this._injectedTextDecorationsTree.collectNodesFromOwner(e);return r.concat(o).concat(c)}collectNodesPostOrder(){let e=this._decorationsTree0.collectNodesPostOrder(),r=this._decorationsTree1.collectNodesPostOrder(),o=this._injectedTextDecorationsTree.collectNodesPostOrder();return e.concat(r).concat(o)}insert(e){C6t(e)?this._injectedTextDecorationsTree.insert(e):oni(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)}delete(e){C6t(e)?this._injectedTextDecorationsTree.delete(e):oni(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)}getNodeRange(e,r){let o=e.getVersionId();return r.cachedVersionId!==o&&this._resolveNode(r,o),r.range===null&&(r.range=e.getRangeAt(r.cachedAbsoluteStart,r.cachedAbsoluteEnd)),r.range}_resolveNode(e,r){C6t(e)?this._injectedTextDecorationsTree.resolveNode(e,r):oni(e)?this._decorationsTree1.resolveNode(e,r):this._decorationsTree0.resolveNode(e,r)}acceptReplace(e,r,o,c){this._decorationsTree0.acceptReplace(e,r,o,c),this._decorationsTree1.acceptReplace(e,r,o,c),this._injectedTextDecorationsTree.acceptReplace(e,r,o,c)}};w6t=class{constructor(e){this.color=e.color||"",this.darkColor=e.darkColor||""}},ani=class extends w6t{constructor(e){super(e),this._resolvedColor=null,this.position=typeof e.position=="number"?e.position:mA.Center}getColor(e){return this._resolvedColor||(e.type!=="light"&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=null}_resolveColor(e,r){if(typeof e=="string")return e;let o=e?r.getColor(e.id):null;return o?o.toString():""}},cni=class{constructor(e){var r;this.position=(r=e?.position)!==null&&r!==void 0?r:n7.Center,this.persistLane=e?.persistLane}},lni=class extends w6t{constructor(e){var r,o;super(e),this.position=e.position,this.sectionHeaderStyle=(r=e.sectionHeaderStyle)!==null&&r!==void 0?r:null,this.sectionHeaderText=(o=e.sectionHeaderText)!==null&&o!==void 0?o:null}getColor(e){return this._resolvedColor||(e.type!=="light"&&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,r){return typeof e=="string"?po.fromHex(e):r.getColor(e.id)}},gre=class l{static from(e){return e instanceof l?e:new l(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}},id=class l{static register(e){return new l(e)}static createDynamic(e){return new l(e)}constructor(e){var r,o,c,d,h,b;this.description=e.description,this.blockClassName=e.blockClassName?hre(e.blockClassName):null,this.blockDoesNotCollapse=(r=e.blockDoesNotCollapse)!==null&&r!==void 0?r:null,this.blockIsAfterEnd=(o=e.blockIsAfterEnd)!==null&&o!==void 0?o:null,this.blockPadding=(c=e.blockPadding)!==null&&c!==void 0?c:null,this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?hre(e.className):null,this.shouldFillLineOnLineBreak=(d=e.shouldFillLineOnLineBreak)!==null&&d!==void 0?d: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 ani(e.overviewRuler):null,this.minimap=e.minimap?new lni(e.minimap):null,this.glyphMargin=e.glyphMarginClassName?new cni(e.glyphMargin):null,this.glyphMarginClassName=e.glyphMarginClassName?hre(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?hre(e.linesDecorationsClassName):null,this.lineNumberClassName=e.lineNumberClassName?hre(e.lineNumberClassName):null,this.linesDecorationsTooltip=e.linesDecorationsTooltip?Ggi(e.linesDecorationsTooltip):null,this.firstLineDecorationClassName=e.firstLineDecorationClassName?hre(e.firstLineDecorationClassName):null,this.marginClassName=e.marginClassName?hre(e.marginClassName):null,this.inlineClassName=e.inlineClassName?hre(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?hre(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?hre(e.afterContentClassName):null,this.after=e.after?gre.from(e.after):null,this.before=e.before?gre.from(e.before):null,this.hideInCommentTokens=(h=e.hideInCommentTokens)!==null&&h!==void 0?h:!1,this.hideInStringTokens=(b=e.hideInStringTokens)!==null&&b!==void 0?b:!1}};id.EMPTY=id.register({description:"empty"});BCi=[id.register({description:"tracked-range-always-grows-when-typing-at-edges",stickiness:0}),id.register({description:"tracked-range-never-grows-when-typing-at-edges",stickiness:1}),id.register({description:"tracked-range-grows-only-when-typing-before",stickiness:2}),id.register({description:"tracked-range-grows-only-when-typing-after",stickiness:3})];uni=class extends tn{constructor(e){super(),this.handleBeforeFire=e,this._actual=this._register(new wn),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(){var e;this._deferredCnt--,this._deferredCnt===0&&(this._shouldFireDeferred&&this.doFire(),(e=this._affectedInjectedTextLines)===null||e===void 0||e.clear(),this._affectedInjectedTextLines=null)}recordLineAffectedByInjectedText(e){this._affectedInjectedTextLines||(this._affectedInjectedTextLines=new Set),this._affectedInjectedTextLines.add(e)}checkAffectedAndFire(e){var r,o;this._affectsMinimap||(this._affectsMinimap=!!(!((r=e.minimap)===null||r===void 0)&&r.position)),this._affectsOverviewRuler||(this._affectsOverviewRuler=!!(!((o=e.overviewRuler)===null||o===void 0)&&o.color)),this._affectsGlyphMargin||(this._affectsGlyphMargin=!!e.glyphMarginClassName),this._affectsLineNumber||(this._affectsLineNumber=!!e.lineNumberClassName),this.tryFire()}fire(){this._affectsMinimap=!0,this._affectsOverviewRuler=!0,this._affectsGlyphMargin=!0,this.tryFire()}tryFire(){this._deferredCnt===0?this.doFire():this._shouldFireDeferred=!0}doFire(){this.handleBeforeFire(this._affectedInjectedTextLines);let 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)}},dni=class extends tn{constructor(){super(),this._fastEmitter=this._register(new wn),this.fastEvent=this._fastEmitter.event,this._slowEmitter=this._register(new wn),this.slowEvent=this._slowEmitter.event,this._deferredCnt=0,this._deferredEvent=null}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(e=null){if(this._deferredCnt--,this._deferredCnt===0&&this._deferredEvent!==null){this._deferredEvent.rawContentChangedEvent.resultingSelection=e;let r=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(r),this._slowEmitter.fire(r)}}fire(e){if(this._deferredCnt>0){this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e;return}this._fastEmitter.fire(e),this._slowEmitter.fire(e)}},fni=class{constructor(){this._onDidChangeVisibleRanges=new wn,this.onDidChangeVisibleRanges=this._onDidChangeVisibleRanges.event,this._views=new Set}attachView(){let e=new _ni(r=>{this._onDidChangeVisibleRanges.fire({view:e,state:r})});return this._views.add(e),e}detachView(e){this._views.delete(e),this._onDidChangeVisibleRanges.fire({view:e,state:void 0})}},_ni=class{constructor(e){this.handleStateChange=e}setVisibleLines(e,r){let o=e.map(c=>new Rd(c.startLineNumber,c.endLineNumber+1));this.handleStateChange({visibleLineRanges:o,stabilized:r})}}});function iji(l,e,r,o,c,d,h,b){if(c===-1)return null;let w=r.length;if(w<=1)return null;let N=b==="keepAll",L=e.breakOffsets,B=e.breakOffsetsVisibleColumn,F=zCi(r,o,c,d,h),Y=c-F,Z=mni,ee=hni,Te=0,Je=0,Xe=0,ct=c,Ct=L.length,Nt=0;if(Nt>=0){let Yt=Math.abs(B[Nt]-ct);for(;Nt+1=Yt)break;Yt=jt,Nt++}}for(;NtYt&&(Yt=Je,jt=Xe);let mi=0,_n=0,Pr=0,dr=0;if(jt<=ct){let Tn=jt,Qn=Yt===0?0:r.charCodeAt(Yt-1),ks=Yt===0?0:l.get(Qn),La=!0;for(let $i=Yt;$iJe&&gni(Qn,ks,$s,cr,N)&&(mi=Dl,_n=Tn),Tn+=za,Tn>ct){Dl>Je?(Pr=Dl,dr=Tn-za):(Pr=$i+1,dr=Tn),Tn-_n>Y&&(mi=0),La=!1;break}Qn=$s,ks=cr}if(La){Te>0&&(Z[Te]=L[L.length-1],ee[Te]=B[L.length-1],Te++);break}}if(mi===0){let Tn=jt,Qn=r.charCodeAt(Yt),ks=l.get(Qn),La=!1;for(let $i=Yt-1;$i>=Je;$i--){let Dl=$i+1,$s=r.charCodeAt($i);if($s===9){La=!0;break}let cr,za;if(Pne($s)?($i--,cr=0,za=2):(cr=l.get($s),za=fV($s)?d:1),Tn<=ct){if(Pr===0&&(Pr=Dl,dr=Tn),Tn<=ct-Y)break;if(gni($s,cr,Qn,ks,N)){mi=Dl,_n=Tn;break}}Tn-=za,Qn=$s,ks=cr}if(mi!==0){let $i=Y-(dr-_n);if($i<=o){let Dl=r.charCodeAt(Pr),$s;TS(Dl)?$s=2:$s=gft(Dl,dr,o,d),$i-$s<0&&(mi=0)}}if(La){Nt--;continue}}if(mi===0&&(mi=Pr,_n=dr),mi<=Je){let Tn=r.charCodeAt(Je);TS(Tn)?(mi=Je+2,_n=Xe+2):(mi=Je+1,_n=Xe+gft(Tn,Xe,o,d))}for(Je=mi,Z[Te]=mi,Xe=_n,ee[Te]=_n,Te++,ct=_n+Y;Nt<0||Nt=Rr)break;Rr=Tn,Nt++}}return Te===0?null:(Z.length=Te,ee.length=Te,mni=e.breakOffsets,hni=e.breakOffsetsVisibleColumn,e.breakOffsets=Z,e.breakOffsetsVisibleColumn=ee,e.wrappedTextIndentLength=F,e)}function nji(l,e,r,o,c,d,h,b){let w=RR.applyInjectedText(e,r),N,L;if(r&&r.length>0?(N=r.map(_n=>_n.options),L=r.map(_n=>_n.column-1)):(N=null,L=null),c===-1)return N?new Mfe(L,N,[w.length],[],0):null;let B=w.length;if(B<=1)return N?new Mfe(L,N,[w.length],[],0):null;let F=b==="keepAll",Y=zCi(w,o,c,d,h),Z=c-Y,ee=[],Te=[],Je=0,Xe=0,ct=0,Ct=c,Nt=w.charCodeAt(0),Yt=l.get(Nt),jt=gft(Nt,0,o,d),mi=1;TS(Nt)&&(jt+=1,Nt=w.charCodeAt(1),Yt=l.get(Nt),mi++);for(let _n=mi;_nCt&&((Xe===0||jt-ct>Z)&&(Xe=Pr,ct=jt-Tn),ee[Je]=Xe,Te[Je]=ct,Je++,Ct=ct+Z,Xe=0),Nt=dr,Yt=Rr}return Je===0&&(!r||r.length===0)?null:(ee[Je]=B,Te[Je]=jt,new Mfe(L,N,ee,Te,Y))}function gft(l,e,r,o){return l===9?r-e%r:fV(l)||l<32?o:1}function WCi(l,e){return e-l%e}function gni(l,e,r,o,c){return r!==32&&(e===2&&o!==2||e!==1&&o===1||!c&&e===3&&o!==2||!c&&o===3&&e!==1)}function zCi(l,e,r,o,c){let d=0;if(c!==0){let h=tx(l);if(h!==-1){for(let w=0;wr&&(d=0)}}return d}var T6t,pni,mni,hni,VCi=ti(()=>{Mu();s6e();jSe();sii();T6t=class l{static create(e){return new l(e.get(134),e.get(133))}constructor(e,r){this.classifier=new pni(e,r)}createLineBreaksComputer(e,r,o,c,d){let h=[],b=[],w=[];return{addRequest:(N,L,B)=>{h.push(N),b.push(L),w.push(B)},finalize:()=>{let N=e.typicalFullwidthCharacterWidth/e.typicalHalfwidthCharacterWidth,L=[];for(let B=0,F=h.length;B=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}},mni=[],hni=[]});var yft,HCi=ti(()=>{LV();Iu();Xa();j0();yft=class l{constructor(e){this._selTrackedRange=null,this._trackSelection=!0,this._setState(e,new kE(new Zt(1,1,1,1),0,0,new qn(1,1),0),new kE(new Zt(1,1,1,1),0,0,new qn(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 tm(this.modelState,this.viewState)}readSelectionFromMarkers(e){let r=e.model._getTrackedRange(this._selTrackedRange);return this.modelState.selection.isEmpty()&&!r.isEmpty()?ic.fromRange(r.collapseToEnd(),this.modelState.selection.getDirection()):ic.fromRange(r,this.modelState.selection.getDirection())}ensureValidState(e){this._setState(e,this.modelState,this.viewState)}setState(e,r,o){this._setState(e,r,o)}static _validatePositionWithCache(e,r,o,c){return r.equals(o)?c:e.normalizePosition(r,2)}static _validateViewState(e,r){let o=r.position,c=r.selectionStart.getStartPosition(),d=r.selectionStart.getEndPosition(),h=e.normalizePosition(o,2),b=this._validatePositionWithCache(e,c,o,h),w=this._validatePositionWithCache(e,d,c,b);return o.equals(h)&&c.equals(b)&&d.equals(w)?r:new kE(Zt.fromPositions(b,w),r.selectionStartKind,r.selectionStartLeftoverVisibleColumns+c.column-b.column,h,r.leftoverVisibleColumns+o.column-h.column)}_setState(e,r,o){if(o&&(o=l._validateViewState(e.viewModel,o)),r){let c=e.model.validateRange(r.selectionStart),d=r.selectionStart.equalsRange(c)?r.selectionStartLeftoverVisibleColumns:0,h=e.model.validatePosition(r.position),b=r.position.equals(h)?r.leftoverVisibleColumns:0;r=new kE(c,r.selectionStartKind,d,h,b)}else{if(!o)return;let c=e.model.validateRange(e.coordinatesConverter.convertViewRangeToModelRange(o.selectionStart)),d=e.model.validatePosition(e.coordinatesConverter.convertViewPositionToModelPosition(o.position));r=new kE(c,o.selectionStartKind,o.selectionStartLeftoverVisibleColumns,d,o.leftoverVisibleColumns)}if(o){let c=e.coordinatesConverter.validateViewRange(o.selectionStart,r.selectionStart),d=e.coordinatesConverter.validateViewPosition(o.position,r.position);o=new kE(c,r.selectionStartKind,r.selectionStartLeftoverVisibleColumns,d,r.leftoverVisibleColumns)}else{let c=e.coordinatesConverter.convertModelPositionToViewPosition(new qn(r.selectionStart.startLineNumber,r.selectionStart.startColumn)),d=e.coordinatesConverter.convertModelPositionToViewPosition(new qn(r.selectionStart.endLineNumber,r.selectionStart.endColumn)),h=new Zt(c.lineNumber,c.column,d.lineNumber,d.column),b=e.coordinatesConverter.convertModelPositionToViewPosition(r.position);o=new kE(h,r.selectionStartKind,r.selectionStartLeftoverVisibleColumns,b,r.leftoverVisibleColumns)}this.modelState=r,this.viewState=o,this._updateTrackedRange(e)}}});var vft,UCi=ti(()=>{sd();PR();LV();HCi();Iu();Xa();j0();vft=class{constructor(e){this.context=e,this.cursors=[new yft(e)],this.lastAddedCursorIndex=0}dispose(){for(let e of this.cursors)e.dispose(this.context)}startTrackingSelections(){for(let e of this.cursors)e.startTrackingSelection(this.context)}stopTrackingSelections(){for(let e of this.cursors)e.stopTrackingSelection(this.context)}updateContext(e){this.context=e}ensureValidState(){for(let 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 Jyi(this.cursors,hE(e=>e.viewState.position,qn.compare)).viewState.position}getBottomMostViewPosition(){return Uyi(this.cursors,hE(e=>e.viewState.position,qn.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(tm.fromModelSelections(e))}getPrimaryCursor(){return this.cursors[0].asCursorState()}setStates(e){e!==null&&(this.cursors[0].setState(this.context,e[0].modelState,e[0].viewState),this._setSecondaryStates(e.slice(1)))}_setSecondaryStates(e){let r=this.cursors.length-1,o=e.length;if(ro){let c=r-o;for(let d=0;d=e+1&&this.lastAddedCursorIndex--,this.cursors[e+1].dispose(this.context),this.cursors.splice(e+1,1)}normalize(){if(this.cursors.length===1)return;let e=this.cursors.slice(0),r=[];for(let o=0,c=e.length;oo.selection,Zt.compareRangesUsingStarts));for(let o=0;oB&&ee.index--;e.splice(B,1),r.splice(L,1),this._removeSecondaryCursor(B-1),o--}}}}});var bft,JCi=ti(()=>{bft=class{constructor(e,r,o,c){this._cursorContextBrand=void 0,this.model=e,this.viewModel=r,this.coordinatesConverter=o,this.cursorConfig=c}}});var E6t,D6t,I6t,N6t,yre,rLe,A6t,P6t,oLe,Sft,qHe,$He,Wfe,L6t,O6t,F6t,M6t,R6t,B6t=ti(()=>{E6t=class{constructor(){this.type=0}},D6t=class{constructor(){this.type=1}},I6t=class{constructor(e){this.type=2,this._source=e}hasChanged(e){return this._source.hasChanged(e)}},N6t=class{constructor(e,r,o){this.selections=e,this.modelSelections=r,this.reason=o,this.type=3}},yre=class{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)}},rLe=class{constructor(){this.type=5}},A6t=class{constructor(e){this.type=6,this.isFocused=e}},P6t=class{constructor(){this.type=7}},oLe=class{constructor(){this.type=8}},Sft=class{constructor(e,r){this.fromLineNumber=e,this.count=r,this.type=9}},qHe=class{constructor(e,r){this.type=10,this.fromLineNumber=e,this.toLineNumber=r}},$He=class{constructor(e,r){this.type=11,this.fromLineNumber=e,this.toLineNumber=r}},Wfe=class{constructor(e,r,o,c,d,h,b){this.source=e,this.minimalReveal=r,this.range=o,this.selections=c,this.verticalType=d,this.revealHorizontal=h,this.scrollType=b,this.type=12}},L6t=class{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}},O6t=class{constructor(e){this.theme=e,this.type=14}},F6t=class{constructor(e){this.type=15,this.ranges=e}},M6t=class{constructor(){this.type=16}},R6t=class{constructor(){this.type=17}}});var j6t,yni,W6t,z6t,V6t,H6t,U6t,J6t,q6t,$6t,G6t,K6t,X6t,Y6t,Q6t,Z6t=ti(()=>{xc();co();j6t=class extends tn{constructor(){super(),this._onEvent=this._register(new wn),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 r=0,o=this._outgoingEvents.length;r0;){if(this._collector||this._isConsumingViewEventQueue)return;let e=this._outgoingEvents.shift();e.isNoOp()||this._onEvent.fire(e)}}addViewEventHandler(e){for(let r=0,o=this._eventHandlers.length;r0&&this._emitMany(r)}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;){let e=this._viewEventQueue;this._viewEventQueue=null;let r=this._eventHandlers.slice(0);for(let o of r)o.handleEvents(e)}}},yni=class{constructor(){this.viewEvents=[],this.outgoingEvents=[]}emitViewEvent(e){this.viewEvents.push(e)}emitOutgoingEvent(e){this.outgoingEvents.push(e)}},W6t=class l{constructor(e,r,o,c){this.kind=0,this._oldContentWidth=e,this._oldContentHeight=r,this.contentWidth=o,this.contentHeight=c,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 l(this._oldContentWidth,this._oldContentHeight,e.contentWidth,e.contentHeight)}},z6t=class l{constructor(e,r){this.kind=1,this.oldHasFocus=e,this.hasFocus=r}isNoOp(){return this.oldHasFocus===this.hasFocus}attemptToMerge(e){return e.kind!==this.kind?null:new l(this.oldHasFocus,e.hasFocus)}},V6t=class l{constructor(e,r,o,c,d,h,b,w){this.kind=2,this._oldScrollWidth=e,this._oldScrollLeft=r,this._oldScrollHeight=o,this._oldScrollTop=c,this.scrollWidth=d,this.scrollLeft=h,this.scrollHeight=b,this.scrollTop=w,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 l(this._oldScrollWidth,this._oldScrollLeft,this._oldScrollHeight,this._oldScrollTop,e.scrollWidth,e.scrollLeft,e.scrollHeight,e.scrollTop)}},H6t=class{constructor(){this.kind=3}isNoOp(){return!1}attemptToMerge(e){return e.kind!==this.kind?null:this}},U6t=class{constructor(){this.kind=4}isNoOp(){return!1}attemptToMerge(e){return e.kind!==this.kind?null:this}},J6t=class l{constructor(e,r,o,c,d,h,b){this.kind=6,this.oldSelections=e,this.selections=r,this.oldModelVersionId=o,this.modelVersionId=c,this.source=d,this.reason=h,this.reachedMaxCursorCount=b}static _selectionsAreEqual(e,r){if(!e&&!r)return!0;if(!e||!r)return!1;let o=e.length,c=r.length;if(o!==c)return!1;for(let d=0;d{Du();Mu();UCi();LV();JCi();WPt();e4t();Xa();j0();jSe();B6t();co();Z6t();eLt=class extends tn{constructor(e,r,o,c){super(),this._model=e,this._knownModelVersionId=this._model.getVersionId(),this._viewModel=r,this._coordinatesConverter=o,this.context=new bft(this._model,this._viewModel,this._coordinatesConverter,c),this._cursors=new vft(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=Fp(this._autoClosedActions),super.dispose()}updateConfiguration(e){this.context=new bft(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){let e=this._cursors.getSelections();for(let r=0;rh&&(c=c.slice(0,h),d=!0);let b=xft.from(this._model,this);return this._cursors.setStates(c),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,r,o,b,d)}setCursorColumnSelectData(e){this._columnSelectData=e}revealAll(e,r,o,c,d,h){let b=this._cursors.getViewPositions(),w=null,N=null;b.length>1?N=this._cursors.getViewSelections():w=Zt.fromPositions(b[0],b[0]),e.emitViewEvent(new Wfe(r,o,w,N,c,d,h))}revealPrimary(e,r,o,c,d,h){let w=[this._cursors.getPrimaryCursor().viewState.selection];e.emitViewEvent(new Wfe(r,o,null,w,c,d,h))}saveState(){let e=[],r=this._cursors.getSelections();for(let o=0,c=r.length;o0){let d=tm.fromModelSelections(o.resultingSelection);this.setStates(e,"modelChange",o.isUndoing?5:o.isRedoing?6:2,d)&&this.revealAll(e,"modelChange",!1,0,!0,0)}else{let d=this._cursors.readSelectionFromMarkers();this.setStates(e,"modelChange",2,tm.fromModelSelections(d))}}}getSelection(){return this._cursors.getPrimaryCursor().modelState.selection}getTopMostViewPosition(){return this._cursors.getTopMostViewPosition()}getBottomMostViewPosition(){return this._cursors.getBottomMostViewPosition()}getCursorColumnSelectData(){if(this._columnSelectData)return this._columnSelectData;let e=this._cursors.getPrimaryCursor(),r=e.viewState.selectionStart.getStartPosition(),o=e.viewState.position;return{isReal:!1,fromViewLineNumber:r.lineNumber,fromViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,r),toViewLineNumber:o.lineNumber,toViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,o)}}getSelections(){return this._cursors.getSelections()}setSelections(e,r,o,c){this.setStates(e,r,c,tm.fromModelSelections(o))}getPrevEditOperationType(){return this._prevEditOperationType}setPrevEditOperationType(e){this._prevEditOperationType=e}_pushAutoClosedAction(e,r){let o=[],c=[];for(let b=0,w=e.length;b0&&this._pushAutoClosedAction(o,c),this._prevEditOperationType=e.type}e.shouldPushStackElementAfter&&this._model.pushStackElement()}_interpretCommandResult(e){(!e||e.length===0)&&(e=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(e),this._cursors.normalize()}_emitStateChangedIfNecessary(e,r,o,c,d){let h=xft.from(this._model,this);if(h.equals(c))return!1;let b=this._cursors.getSelections(),w=this._cursors.getViewSelections();if(e.emitViewEvent(new N6t(w,b,o)),!c||c.cursorState.length!==h.cursorState.length||h.cursorState.some((N,L)=>!N.modelState.equals(c.cursorState[L].modelState))){let N=c?c.cursorState.map(B=>B.modelState.selection):null,L=c?c.modelVersionId:0;e.emitOutgoingEvent(new J6t(N,b,L,h.modelVersionId,r||"keyboard",o,d))}return!0}_findAutoClosingPairs(e){if(!e.length)return null;let r=[];for(let o=0,c=e.length;o=0)return null;let h=d.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!h)return null;let b=h[1],w=this.context.cursorConfig.autoClosingPairs.autoClosingPairsCloseSingleChar.get(b);if(!w||w.length!==1)return null;let N=w[0].open,L=d.text.length-h[2].length-1,B=d.text.lastIndexOf(N,L-1);if(B===-1)return null;r.push([B,L])}return r}executeEdits(e,r,o,c){let d=null;r==="snippet"&&(d=this._findAutoClosingPairs(o)),d&&(o[0]._isTracked=!0);let h=[],b=[],w=this._model.pushEditOperations(this.getSelections(),o,N=>{if(d)for(let B=0,F=d.length;B0&&this._pushAutoClosedAction(h,b)}_executeEdit(e,r,o,c=0){if(this.context.cursorConfig.readOnly)return;let d=xft.from(this._model,this);this._cursors.stopTrackingSelections(),this._isHandling=!0;try{this._cursors.ensureValidState(),e()}catch(h){dl(h)}this._isHandling=!1,this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(r,o,c,d,!1)&&this.revealAll(r,o,!1,0,!0,0)}getAutoClosedCharacters(){return tLt.getAllAutoClosedCharacters(this._autoClosedActions)}startComposition(e){this._compositionState=new Sni(this._model,this.getSelections())}endComposition(e,r){let o=this._compositionState?this._compositionState.deduceOutcome(this._model,this.getSelections()):null;this._compositionState=null,this._executeEdit(()=>{r==="keyboard"&&this._executeEditOperation(l7.compositionEndWithInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,o,this.getSelections(),this.getAutoClosedCharacters()))},e,r)}type(e,r,o){this._executeEdit(()=>{if(o==="keyboard"){let c=r.length,d=0;for(;d{let N=w.getPosition();return new ic(N.lineNumber,N.column+d,N.lineNumber,N.column+d)});this.setSelections(e,h,b,0)}return}this._executeEdit(()=>{this._executeEditOperation(l7.compositionType(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),r,o,c,d))},e,h)}paste(e,r,o,c,d){this._executeEdit(()=>{this._executeEditOperation(l7.paste(this.context.cursorConfig,this._model,this.getSelections(),r,o,c||[]))},e,d,4)}cut(e,r){this._executeEdit(()=>{this._executeEditOperation(Pfe.cut(this.context.cursorConfig,this._model,this.getSelections()))},e,r)}executeCommand(e,r,o){this._executeEdit(()=>{this._cursors.killSecondaryCursors(),this._executeEditOperation(new bA(0,[r],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},e,o)}executeCommands(e,r,o){this._executeEdit(()=>{this._executeEditOperation(new bA(0,r,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},e,o)}},xft=class l{static from(e,r){return new l(e.getVersionId(),r.getCursorStates())}constructor(e,r){this.modelVersionId=e,this.cursorState=r}equals(e){if(!e||this.modelVersionId!==e.modelVersionId||this.cursorState.length!==e.cursorState.length)return!1;for(let r=0,o=this.cursorState.length;r=r.length||!r[o].strictContainsRange(e[o]))return!1;return!0}},vni=class{static executeCommands(e,r,o){let c={model:e,selectionsBefore:r,trackedRanges:[],trackedRangesDirection:[]},d=this._innerExecuteCommands(c,o);for(let h=0,b=c.trackedRanges.length;h0&&(h[0]._isTracked=!0);let b=e.model.pushEditOperations(e.selectionsBefore,h,N=>{let L=[];for(let Y=0;YY.identifier.minor-Z.identifier.minor,F=[];for(let Y=0;Y0?(L[Y].sort(B),F[Y]=r[Y].computeCursorState(e.model,{getInverseEditOperations:()=>L[Y],getTrackedSelection:Z=>{let ee=parseInt(Z,10),Te=e.model._getTrackedRange(e.trackedRanges[ee]);return e.trackedRangesDirection[ee]===0?new ic(Te.startLineNumber,Te.startColumn,Te.endLineNumber,Te.endColumn):new ic(Te.endLineNumber,Te.endColumn,Te.startLineNumber,Te.startColumn)}})):F[Y]=e.selectionsBefore[Y];return F});b||(b=e.selectionsBefore);let w=[];for(let N in d)d.hasOwnProperty(N)&&w.push(parseInt(N,10));w.sort((N,L)=>L-N);for(let N of w)b.splice(N,1);return b}static _arrayIsEmpty(e){for(let r=0,o=e.length;r{Zt.isEmpty(B)&&F===""||c.push({identifier:{major:r,minor:d++},range:B,text:F,forceMoveMarkers:Y,isAutoWhitespaceEdit:o.insertsAutoWhitespace})},b=!1,L={addEditOperation:h,addTrackedEditOperation:(B,F,Y)=>{b=!0,h(B,F,Y)},trackSelection:(B,F)=>{let Y=ic.liftSelection(B),Z;if(Y.isEmpty())if(typeof F=="boolean")F?Z=2:Z=3;else{let Je=e.model.getLineMaxColumn(Y.startLineNumber);Y.startColumn===Je?Z=2:Z=3}else Z=1;let ee=e.trackedRanges.length,Te=e.model._setTrackedRange(null,Y,Z);return e.trackedRanges[ee]=Te,e.trackedRangesDirection[ee]=Y.getDirection(),ee.toString()}};try{o.getEditOperations(e.model,L)}catch(B){return dl(B),{operations:[],hadTrackedEditOperation:!1}}return{operations:c,hadTrackedEditOperation:b}}static _getLoserCursorMap(e){e=e.slice(0),e.sort((o,c)=>-Zt.compareRangesUsingEnds(o.range,c.range));let r={};for(let o=1;od.identifier.major?h=c.identifier.major:h=d.identifier.major,r[h.toString()]=!0;for(let b=0;b0&&o--}}return r}},bni=class{constructor(e,r,o){this.text=e,this.startSelection=r,this.endSelection=o}},Sni=class l{static _capture(e,r){let o=[];for(let c of r){if(c.startLineNumber!==c.endLineNumber)return null;o.push(new bni(e.getLineContent(c.startLineNumber),c.startColumn-1,c.endColumn-1))}return o}constructor(e,r){this._original=l._capture(e,r)}deduceOutcome(e,r){if(!this._original)return null;let o=l._capture(e,r);if(!o||this._original.length!==o.length)return null;let c=[];for(let d=0,h=this._original.length;d0;)h&&L?(Z+=" ",L=!1):(Z+=" ",L=!0),Te--;break}case 60:Z+="<",L=!1;break;case 62:Z+=">",L=!1;break;case 38:Z+="&",L=!1;break;case 0:Z+="�",L=!1;break;case 65279:case 8232:case 8233:case 133:Z+="\uFFFD",L=!1;break;case 13:Z+="​",L=!1;break;case 32:h&&L?(Z+=" ",L=!1):(Z+=" ",L=!0);break;default:Z+=String.fromCharCode(ee),L=!1}}if(b+=`${Z}`,Y>c||w>=c)break}return b+="",b}function KCi(l,e,r){let o='
',c=x6(l),d=r.getInitialState();for(let h=0,b=c.length;h0&&(o+="
");let N=r.tokenizeEncoded(w,!0,d);Wx.convertToEndOffset(N.tokens,w.length);let B=new Wx(N.tokens,w,e).inflate(),F=0;for(let Y=0,Z=B.getCount();Y${Gbe(w.substring(F,Te))}`,F=Te}d=N.endState}return o+="
",o}var GCi,xni=ti(()=>{Mu();Vq();dy();jVe();GCi={getInitialState:()=>$ne,tokenizeEncoded:(l,e,r)=>vSe(0,r)}});var Cni,kni,Cft,QCi=ti(()=>{Mu();Cni=class{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;let r=this._inserts,o=this._changes,c=this._removes;this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[],e._commitPendingChanges(r,o,c)}},kni=class{constructor(e,r,o,c,d){this.id=e,this.afterLineNumber=r,this.ordinal=o,this.height=c,this.minWidth=d,this.prefixSum=0}},Cft=class l{constructor(e,r,o,c){this._instanceId=PIt(++l.INSTANCE_COUNT),this._pendingChanges=new Cni,this._lastWhitespaceId=0,this._arr=[],this._prefixSumValidIndex=-1,this._minWidth=-1,this._lineCount=e,this._lineHeight=r,this._paddingTop=o,this._paddingBottom=c}static findInsertionIndex(e,r,o){let c=0,d=e.length;for(;c>>1;r===e[h].afterLineNumber?o{r=!0,c=c|0,d=d|0,h=h|0,b=b|0;let w=this._instanceId+ ++this._lastWhitespaceId;return this._pendingChanges.insert(new kni(w,c,d,h,b)),w},changeOneWhitespace:(c,d,h)=>{r=!0,d=d|0,h=h|0,this._pendingChanges.change({id:c,newAfterLineNumber:d,newHeight:h})},removeWhitespace:c=>{r=!0,this._pendingChanges.remove({id:c})}})}finally{this._pendingChanges.commit(this)}return r}_commitPendingChanges(e,r,o){if((e.length>0||o.length>0)&&(this._minWidth=-1),e.length+r.length+o.length<=1){for(let w of e)this._insertWhitespace(w);for(let w of r)this._changeOneWhitespace(w.id,w.newAfterLineNumber,w.newHeight);for(let w of o){let N=this._findWhitespaceIndex(w.id);N!==-1&&this._removeWhitespace(N)}return}let c=new Set;for(let w of o)c.add(w.id);let d=new Map;for(let w of r)d.set(w.id,w);let h=w=>{let N=[];for(let L of w)if(!c.has(L.id)){if(d.has(L.id)){let B=d.get(L.id);L.afterLineNumber=B.newAfterLineNumber,L.height=B.newHeight}N.push(L)}return N},b=h(this._arr).concat(h(e));b.sort((w,N)=>w.afterLineNumber===N.afterLineNumber?w.ordinal-N.ordinal:w.afterLineNumber-N.afterLineNumber),this._arr=b,this._prefixSumValidIndex=-1}_checkPendingChanges(){this._pendingChanges.mustCommit()&&this._pendingChanges.commit(this)}_insertWhitespace(e){let r=l.findInsertionIndex(this._arr,e.afterLineNumber,e.ordinal);this._arr.splice(r,0,e),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,r-1)}_findWhitespaceIndex(e){let r=this._arr;for(let o=0,c=r.length;or&&(this._arr[o].afterLineNumber-=r-e+1)}}onLinesInserted(e,r){this._checkPendingChanges(),e=e|0,r=r|0,this._lineCount+=r-e+1;for(let o=0,c=this._arr.length;o=r.length||r[b+1].afterLineNumber>=e)return b;o=b+1|0}else c=b-1|0}return-1}_findFirstWhitespaceAfterLineNumber(e){e=e|0;let o=this._findLastWhitespaceBeforeLineNumber(e)+1;return o1?o=this._lineHeight*(e-1):o=0;let c=this.getWhitespaceAccumulatedHeightBeforeLineNumber(e-(r?1:0));return o+c+this._paddingTop}getVerticalOffsetAfterLineNumber(e,r=!1){this._checkPendingChanges(),e=e|0;let o=this._lineHeight*e,c=this.getWhitespaceAccumulatedHeightBeforeLineNumber(e+(r?1:0));return o+c+this._paddingTop}getWhitespaceMinWidth(){if(this._checkPendingChanges(),this._minWidth===-1){let e=0;for(let r=0,o=this._arr.length;rr}isInTopPadding(e){return this._paddingTop===0?!1:(this._checkPendingChanges(),e=r-this._paddingBottom}getLineNumberAtOrAfterVerticalOffset(e){if(this._checkPendingChanges(),e=e|0,e<0)return 1;let r=this._lineCount|0,o=this._lineHeight,c=1,d=r;for(;c=b+o)c=h+1;else{if(e>=b)return h;d=h}}return c>r?r:c}getLinesViewportData(e,r){this._checkPendingChanges(),e=e|0,r=r|0;let o=this._lineHeight,c=this.getLineNumberAtOrAfterVerticalOffset(e)|0,d=this.getVerticalOffsetForLineNumber(c)|0,h=this._lineCount|0,b=this.getFirstWhitespaceIndexAfterLineNumber(c)|0,w=this.getWhitespacesCount()|0,N,L;b===-1?(b=w,L=h+1,N=0):(L=this.getAfterLineNumberForWhitespaceIndex(b)|0,N=this.getHeightForWhitespaceIndex(b)|0);let B=d,F=B,Y=5e5,Z=0;d>=Y&&(Z=Math.floor(d/Y)*Y,Z=Math.floor(Z/o)*o,F-=Z);let ee=[],Te=e+(r-e)/2,Je=-1;for(let Nt=c;Nt<=h;Nt++){if(Je===-1){let Yt=B,jt=B+o;(Yt<=Te&&TeTe)&&(Je=Nt)}for(B+=o,ee[Nt-c]=F,F+=o;L===Nt;)F+=N,B+=N,b++,b>=w?L=h+1:(L=this.getAfterLineNumberForWhitespaceIndex(b)|0,N=this.getHeightForWhitespaceIndex(b)|0);if(B>=r){h=Nt;break}}Je===-1&&(Je=h);let Xe=this.getVerticalOffsetForLineNumber(h)|0,ct=c,Ct=h;return ctr&&Ct--,{bigNumbersDelta:Z,startLineNumber:c,endLineNumber:h,relativeVerticalOffset:ee,centeredLineNumber:Je,completelyVisibleStartLineNumber:ct,completelyVisibleEndLineNumber:Ct,lineHeight:this._lineHeight}}getVerticalOffsetForWhitespaceIndex(e){this._checkPendingChanges(),e=e|0;let r=this.getAfterLineNumberForWhitespaceIndex(e),o;r>=1?o=this._lineHeight*r:o=0;let c;return e>0?c=this.getWhitespacesAccumulatedHeight(e-1):c=0,o+c+this._paddingTop}getWhitespaceIndexAtOrAfterVerticallOffset(e){this._checkPendingChanges(),e=e|0;let r=0,o=this.getWhitespacesCount()-1;if(o<0)return-1;let c=this.getVerticalOffsetForWhitespaceIndex(o),d=this.getHeightForWhitespaceIndex(o);if(e>=c+d)return-1;for(;r=b+w)r=h+1;else{if(e>=b)return h;o=h}}return r}getWhitespaceAtVerticalOffset(e){this._checkPendingChanges(),e=e|0;let r=this.getWhitespaceIndexAtOrAfterVerticallOffset(e);if(r<0||r>=this.getWhitespacesCount())return null;let o=this.getVerticalOffsetForWhitespaceIndex(r);if(o>e)return null;let c=this.getHeightForWhitespaceIndex(r),d=this.getIdForWhitespaceIndex(r),h=this.getAfterLineNumberForWhitespaceIndex(r);return{id:d,afterLineNumber:h,verticalOffset:o,height:c}}getWhitespaceViewportData(e,r){this._checkPendingChanges(),e=e|0,r=r|0;let o=this.getWhitespaceIndexAtOrAfterVerticallOffset(e),c=this.getWhitespacesCount()-1;if(o<0)return[];let d=[];for(let h=o;h<=c;h++){let b=this.getVerticalOffsetForWhitespaceIndex(h),w=this.getHeightForWhitespaceIndex(h);if(b>=r)break;d.push({id:this.getIdForWhitespaceIndex(h),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(h),verticalOffset:b,height:w})}return d}getWhitespaces(){return this._checkPendingChanges(),this._arr.slice(0)}getWhitespacesCount(){return this._checkPendingChanges(),this._arr.length}getIdForWhitespaceIndex(e){return this._checkPendingChanges(),e=e|0,this._arr[e].id}getAfterLineNumberForWhitespaceIndex(e){return this._checkPendingChanges(),e=e|0,this._arr[e].afterLineNumber}getHeightForWhitespaceIndex(e){return this._checkPendingChanges(),e=e|0,this._arr[e].height}};Cft.INSTANCE_COUNT=0});var rji,sLe,wni,iLt,ZCi=ti(()=>{xc();co();gHe();QCi();Hq();Z6t();rji=125,sLe=class{constructor(e,r,o,c){e=e|0,r=r|0,o=o|0,c=c|0,e<0&&(e=0),r<0&&(r=0),o<0&&(o=0),c<0&&(c=0),this.width=e,this.contentWidth=r,this.scrollWidth=Math.max(e,r),this.height=o,this.contentHeight=c,this.scrollHeight=Math.max(o,c)}equals(e){return this.width===e.width&&this.contentWidth===e.contentWidth&&this.height===e.height&&this.contentHeight===e.contentHeight}},wni=class extends tn{constructor(e,r){super(),this._onDidContentSizeChange=this._register(new wn),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._dimensions=new sLe(0,0,0,0),this._scrollable=this._register(new NV({forceIntegerValues:!0,smoothScrollDuration:e,scheduleAtNextAnimationFrame:r})),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;let r=this._dimensions;this._dimensions=e,this._scrollable.setScrollDimensions({width:e.width,scrollWidth:e.scrollWidth,height:e.height,scrollHeight:e.scrollHeight},!0);let o=r.contentWidth!==e.contentWidth,c=r.contentHeight!==e.contentHeight;(o||c)&&this._onDidContentSizeChange.fire(new W6t(r.contentWidth,r.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()}},iLt=class extends tn{constructor(e,r,o){super(),this._configuration=e;let c=this._configuration.options,d=c.get(145),h=c.get(84);this._linesLayout=new Cft(r,c.get(67),h.top,h.bottom),this._maxLineWidth=0,this._overlayWidgetsMinWidth=0,this._scrollable=this._register(new wni(0,o)),this._configureSmoothScrollDuration(),this._scrollable.setScrollDimensions(new sLe(d.contentWidth,0,d.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(114)?rji:0)}onConfigurationChanged(e){let r=this._configuration.options;if(e.hasChanged(67)&&this._linesLayout.setLineHeight(r.get(67)),e.hasChanged(84)){let o=r.get(84);this._linesLayout.setPadding(o.top,o.bottom)}if(e.hasChanged(145)){let o=r.get(145),c=o.contentWidth,d=o.height,h=this._scrollable.getScrollDimensions(),b=h.contentWidth;this._scrollable.setScrollDimensions(new sLe(c,h.contentWidth,d,this._getContentHeight(c,d,b)))}else this._updateHeight();e.hasChanged(114)&&this._configureSmoothScrollDuration()}onFlushed(e){this._linesLayout.onFlushed(e)}onLinesDeleted(e,r){this._linesLayout.onLinesDeleted(e,r)}onLinesInserted(e,r){this._linesLayout.onLinesInserted(e,r)}_getHorizontalScrollbarHeight(e,r){let c=this._configuration.options.get(103);return c.horizontal===2||e>=r?0:c.horizontalScrollbarSize}_getContentHeight(e,r,o){let c=this._configuration.options,d=this._linesLayout.getLinesTotalHeight();return c.get(105)?d+=Math.max(0,r-c.get(67)-c.get(84).bottom):c.get(103).ignoreHorizontalScrollbarInContentHeight||(d+=this._getHorizontalScrollbarHeight(e,o)),d}_updateHeight(){let e=this._scrollable.getScrollDimensions(),r=e.width,o=e.height,c=e.contentWidth;this._scrollable.setScrollDimensions(new sLe(r,e.contentWidth,o,this._getContentHeight(r,o,c)))}getCurrentViewport(){let e=this._scrollable.getScrollDimensions(),r=this._scrollable.getCurrentScrollPosition();return new cdt(r.scrollTop,r.scrollLeft,e.width,e.height)}getFutureViewport(){let e=this._scrollable.getScrollDimensions(),r=this._scrollable.getFutureScrollPosition();return new cdt(r.scrollTop,r.scrollLeft,e.width,e.height)}_computeContentWidth(){let e=this._configuration.options,r=this._maxLineWidth,o=e.get(146),c=e.get(50),d=e.get(145);if(o.isViewportWrapping){let h=e.get(73);return r>d.contentWidth+c.typicalHalfwidthCharacterWidth&&h.enabled&&h.side==="right"?r+d.verticalScrollbarWidth:r}else{let h=e.get(104)*c.typicalHalfwidthCharacterWidth,b=this._linesLayout.getWhitespaceMinWidth();return Math.max(r+h+d.verticalScrollbarWidth,b,this._overlayWidgetsMinWidth)}}setMaxLineWidth(e){this._maxLineWidth=e,this._updateContentWidth()}setOverlayWidgetsMinWidth(e){this._overlayWidgetsMinWidth=e,this._updateContentWidth()}_updateContentWidth(){let e=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new sLe(e.width,this._computeContentWidth(),e.height,e.contentHeight)),this._updateHeight()}saveState(){let e=this._scrollable.getFutureScrollPosition(),r=e.scrollTop,o=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(r),c=this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(o);return{scrollTop:r,scrollTopWithoutViewZones:r-c,scrollLeft:e.scrollLeft}}changeWhitespace(e){let r=this._linesLayout.changeWhitespace(e);return r&&this.onHeightMaybeChanged(),r}getVerticalOffsetForLineNumber(e,r=!1){return this._linesLayout.getVerticalOffsetForLineNumber(e,r)}getVerticalOffsetAfterLineNumber(e,r=!1){return this._linesLayout.getVerticalOffsetAfterLineNumber(e,r)}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(){let e=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(e.top,e.top+e.height)}getLinesViewportDataAtScrollTop(e){let r=this._scrollable.getScrollDimensions();return e+r.height>r.scrollHeight&&(e=r.scrollHeight-r.height),e<0&&(e=0),this._linesLayout.getLinesViewportData(e,e+r.height)}getWhitespaceViewportData(){let 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,r){r===1?this._scrollable.setScrollPositionNow(e):this._scrollable.setScrollPositionSmooth(e)}hasPendingScrollAnimation(){return this._scrollable.hasPendingScrollAnimation()}deltaScrollNow(e,r){let o=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:o.scrollLeft+e,scrollTop:o.scrollTop+r})}}});function rLt(l,e){return!(e.options.hideInCommentTokens&&oLt(l,e)||e.options.hideInStringTokens&&sLt(l,e))}function oLt(l,e){return eki(l,e.range,r=>r===1)}function sLt(l,e){return eki(l,e.range,r=>r===2)}function eki(l,e,r){for(let o=e.startLineNumber;o<=e.endLineNumber;o++){let c=l.tokenization.getLineTokens(o),d=o===e.startLineNumber,h=o===e.endLineNumber,b=d?c.findTokenIndexAtOffset(e.startColumn-1):0;for(;be.endColumn-1);){if(!r(c.getStandardTokenType(b)))return!1;b++}}return!0}var nLt,Tni=ti(()=>{Iu();Xa();Hq();TT();nLt=class{constructor(e,r,o,c,d){this.editorId=e,this.model=r,this.configuration=o,this._linesCollection=c,this._coordinatesConverter=d,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){let r=e.id,o=this._decorationsCache[r];if(!o){let c=e.range,d=e.options,h;if(d.isWholeLine){let b=this._coordinatesConverter.convertModelPositionToViewPosition(new qn(c.startLineNumber,1),0,!1,!0),w=this._coordinatesConverter.convertModelPositionToViewPosition(new qn(c.endLineNumber,this.model.getLineMaxColumn(c.endLineNumber)),1);h=new Zt(b.lineNumber,b.column,w.lineNumber,w.column)}else h=this._coordinatesConverter.convertModelRangeToViewRange(c,1);o=new VVe(h,d),this._decorationsCache[r]=o}return o}getMinimapDecorationsInRange(e){return this._getDecorationsInRange(e,!0,!1).decorations}getDecorationsViewportData(e){let r=this._cachedModelDecorationsResolver!==null;return r=r&&e.equalsRange(this._cachedModelDecorationsResolverViewRange),r||(this._cachedModelDecorationsResolver=this._getDecorationsInRange(e,!1,!1),this._cachedModelDecorationsResolverViewRange=e),this._cachedModelDecorationsResolver}getInlineDecorationsOnLine(e,r=!1,o=!1){let c=new Zt(e,this._linesCollection.getViewLineMinColumn(e),e,this._linesCollection.getViewLineMaxColumn(e));return this._getDecorationsInRange(c,r,o).inlineDecorations[0]}_getDecorationsInRange(e,r,o){let c=this._linesCollection.getDecorationsInRange(e,this.editorId,L4e(this.configuration.options),r,o),d=e.startLineNumber,h=e.endLineNumber,b=[],w=0,N=[];for(let L=d;L<=h;L++)N[L-d]=[];for(let L=0,B=c.length;L=Eni.length)for(let e=1;e<=l;e++)Eni[e]=oji(e);return Eni[l]}function oji(l){return new Array(l+1).join(" ")}var Dni,GHe,KHe,Eni,iki=ti(()=>{Vq();Iu();jSe();Hq();Dni=class{constructor(e,r){this._projectionData=e,this._isVisible=r}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,r,o){this._assertVisible();let c=o>0?this._projectionData.breakOffsets[o-1]:0,d=this._projectionData.breakOffsets[o],h;if(this._projectionData.injectionOffsets!==null){let b=this._projectionData.injectionOffsets.map((N,L)=>new RR(0,0,N+1,this._projectionData.injectionOptions[L],0));h=RR.applyInjectedText(e.getLineContent(r),b).substring(c,d)}else h=e.getValueInRange({startLineNumber:r,startColumn:c+1,endLineNumber:r,endColumn:d+1});return o>0&&(h=tki(this._projectionData.wrappedTextIndentLength)+h),h}getViewLineLength(e,r,o){return this._assertVisible(),this._projectionData.getLineLength(o)}getViewLineMinColumn(e,r,o){return this._assertVisible(),this._projectionData.getMinOutputOffset(o)+1}getViewLineMaxColumn(e,r,o){return this._assertVisible(),this._projectionData.getMaxOutputOffset(o)+1}getViewLineData(e,r,o){let c=new Array;return this.getViewLinesData(e,r,o,1,0,[!0],c),c[0]}getViewLinesData(e,r,o,c,d,h,b){this._assertVisible();let w=this._projectionData,N=w.injectionOffsets,L=w.injectionOptions,B=null;if(N){B=[];let Y=0,Z=0;for(let ee=0;ee0?w.breakOffsets[ee-1]:0,Xe=w.breakOffsets[ee];for(;ZXe)break;if(Je0?w.wrappedTextIndentLength:0,mi=jt+Math.max(Ct-Je,0),_n=jt+Math.min(Nt-Je,Xe-Je);mi!==_n&&Te.push(new TAt(mi,_n,Yt.inlineClassName,Yt.inlineClassNameAffectsLetterSpacing))}}if(Nt<=Xe)Y+=ct,Z++;else break}}}let F;N?F=e.tokenization.getLineTokens(r).withInserted(N.map((Y,Z)=>({offset:Y,text:L[Z].content,tokenMetadata:Wx.defaultTokenMetadata}))):F=e.tokenization.getLineTokens(r);for(let Y=o;Y0?c.wrappedTextIndentLength:0,h=o>0?c.breakOffsets[o-1]:0,b=c.breakOffsets[o],w=e.sliceAndInflate(h,b,d),N=w.getLineContent();o>0&&(N=tki(c.wrappedTextIndentLength)+N);let L=this._projectionData.getMinOutputOffset(o)+1,B=N.length+1,F=o+1c+1?(r.push(new Zt(o,1,c,1)),o=b.startLineNumber,c=b.endLineNumber):b.endLineNumber>c&&(c=b.endLineNumber)}return r.push(new Zt(o,1,c,1)),r}var cLt,lLt,uLt,Ini,dLt,Nni,nki=ti(()=>{sd();Iu();Xa();y4t();Ww();jSe();B6t();iki();$Zt();Hq();cLt=class{constructor(e,r,o,c,d,h,b,w,N,L){this._editorId=e,this.model=r,this._validModelVersionId=-1,this._domLineBreaksComputerFactory=o,this._monospaceLineBreaksComputerFactory=c,this.fontInfo=d,this.tabSize=h,this.wrappingStrategy=b,this.wrappingColumn=w,this.wrappingIndent=N,this.wordBreak=L,this._constructLines(!0,null)}dispose(){this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[])}createCoordinatesConverter(){return new Ini(this)}_constructLines(e,r){this.modelLineProjections=[],e&&(this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[]));let o=this.model.getLinesContent(),c=this.model.getInjectedTextDecorations(this._editorId),d=o.length,h=this.createLineBreaksComputer(),b=new KL(RR.fromDecorations(c));for(let ee=0;eeJe.lineNumber===ee+1);h.addRequest(o[ee],Te,r?r[ee]:null)}let w=h.finalize(),N=[],L=this.hiddenAreasDecorationIds.map(ee=>this.model.getDecorationRange(ee)).sort(Zt.compareRangesUsingStarts),B=1,F=0,Y=-1,Z=Y+1=B&&Te<=F,Xe=aLt(w[ee],!Je);N[ee]=Xe.getViewLineCount(),this.modelLineProjections[ee]=Xe}this._validModelVersionId=this.model.getVersionId(),this.projectedModelLineLineCounts=new eAt(N)}getHiddenAreas(){return this.hiddenAreasDecorationIds.map(e=>this.model.getDecorationRange(e))}setHiddenAreas(e){let r=e.map(F=>this.model.validateRange(F)),o=sji(r),c=this.hiddenAreasDecorationIds.map(F=>this.model.getDecorationRange(F)).sort(Zt.compareRangesUsingStarts);if(o.length===c.length){let F=!1;for(let Y=0;Y({range:F,options:id.EMPTY}));this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,d);let h=o,b=1,w=0,N=-1,L=N+1=b&&Y<=w?this.modelLineProjections[F].isVisible()&&(this.modelLineProjections[F]=this.modelLineProjections[F].setVisible(!1),Z=!0):(B=!0,this.modelLineProjections[F].isVisible()||(this.modelLineProjections[F]=this.modelLineProjections[F].setVisible(!0),Z=!0)),Z){let ee=this.modelLineProjections[F].getViewLineCount();this.projectedModelLineLineCounts.setValue(F,ee)}}return B||this.setHiddenAreas([]),!0}modelPositionIsVisible(e,r){return e<1||e>this.modelLineProjections.length?!1: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?!1:(this.tabSize=e,this._constructLines(!1,null),!0)}setWrappingSettings(e,r,o,c,d){let h=this.fontInfo.equals(e),b=this.wrappingStrategy===r,w=this.wrappingColumn===o,N=this.wrappingIndent===c,L=this.wordBreak===d;if(h&&b&&w&&N&&L)return!1;let B=h&&b&&!w&&N&&L;this.fontInfo=e,this.wrappingStrategy=r,this.wrappingColumn=o,this.wrappingIndent=c,this.wordBreak=d;let F=null;if(B){F=[];for(let Y=0,Z=this.modelLineProjections.length;Y2&&!this.modelLineProjections[r-2].isVisible(),h=r===1?1:this.projectedModelLineLineCounts.getPrefixSum(r-1)+1,b=0,w=[],N=[];for(let L=0,B=c.length;Lw?(L=this.projectedModelLineLineCounts.getPrefixSum(r-1)+1,B=L+w-1,Z=B+1,ee=Z+(d-w)-1,N=!0):dr?r:e|0}getActiveIndentGuide(e,r,o){e=this._toValidViewLineNumber(e),r=this._toValidViewLineNumber(r),o=this._toValidViewLineNumber(o);let c=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),d=this.convertViewPositionToModelPosition(r,this.getViewLineMinColumn(r)),h=this.convertViewPositionToModelPosition(o,this.getViewLineMinColumn(o)),b=this.model.guides.getActiveIndentGuide(c.lineNumber,d.lineNumber,h.lineNumber),w=this.convertModelPositionToViewPosition(b.startLineNumber,1),N=this.convertModelPositionToViewPosition(b.endLineNumber,this.model.getLineMaxColumn(b.endLineNumber));return{startLineNumber:w.lineNumber,endLineNumber:N.lineNumber,indent:b.indent}}getViewLineInfo(e){e=this._toValidViewLineNumber(e);let r=this.projectedModelLineLineCounts.getIndexOf(e-1),o=r.index,c=r.remainder;return new lLt(o+1,c)}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){let r=this.modelLineProjections[e.modelLineNumber-1],o=r.getViewLineMinColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx),c=r.getModelColumnOfViewPosition(e.modelLineWrappedLineIdx,o);return new qn(e.modelLineNumber,c)}getModelEndPositionOfViewLine(e){let r=this.modelLineProjections[e.modelLineNumber-1],o=r.getViewLineMaxColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx),c=r.getModelColumnOfViewPosition(e.modelLineWrappedLineIdx,o);return new qn(e.modelLineNumber,c)}getViewLineInfosGroupedByModelRanges(e,r){let o=this.getViewLineInfo(e),c=this.getViewLineInfo(r),d=new Array,h=this.getModelStartPositionOfViewLine(o),b=new Array;for(let w=o.modelLineNumber;w<=c.modelLineNumber;w++){let N=this.modelLineProjections[w-1];if(N.isVisible()){let L=w===o.modelLineNumber?o.modelLineWrappedLineIdx:0,B=w===c.modelLineNumber?c.modelLineWrappedLineIdx+1:N.getViewLineCount();for(let F=L;F{if(Y.forWrappedLinesAfterColumn!==-1&&this.modelLineProjections[L.modelLineNumber-1].getViewPositionOfModelPosition(0,Y.forWrappedLinesAfterColumn).lineNumber>=L.modelLineWrappedLineIdx||Y.forWrappedLinesBeforeOrAtColumn!==-1&&this.modelLineProjections[L.modelLineNumber-1].getViewPositionOfModelPosition(0,Y.forWrappedLinesBeforeOrAtColumn).lineNumberL.modelLineWrappedLineIdx)return}let ee=this.convertModelPositionToViewPosition(L.modelLineNumber,Y.horizontalLine.endColumn),Te=this.modelLineProjections[L.modelLineNumber-1].getViewPositionOfModelPosition(0,Y.horizontalLine.endColumn);return Te.lineNumber===L.modelLineWrappedLineIdx?new o$(Y.visibleColumn,Z,Y.className,new Ffe(Y.horizontalLine.top,ee.column),-1,-1):Te.lineNumber!!Y))}}return h}getViewLinesIndentGuides(e,r){e=this._toValidViewLineNumber(e),r=this._toValidViewLineNumber(r);let o=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),c=this.convertViewPositionToModelPosition(r,this.getViewLineMaxColumn(r)),d=[],h=[],b=[],w=o.lineNumber-1,N=c.lineNumber-1,L=null;for(let Z=w;Z<=N;Z++){let ee=this.modelLineProjections[Z];if(ee.isVisible()){let Te=ee.getViewLineNumberOfModelPosition(0,Z===w?o.column:1),Je=ee.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(Z+1)),Xe=Je-Te+1,ct=0;Xe>1&&ee.getViewLineMinColumn(this.model,Z+1,Je)===1&&(ct=Te===0?1:2),h.push(Xe),b.push(ct),L===null&&(L=new qn(Z+1,0))}else L!==null&&(d=d.concat(this.model.guides.getLinesIndentGuides(L.lineNumber,Z)),L=null)}L!==null&&(d=d.concat(this.model.guides.getLinesIndentGuides(L.lineNumber,c.lineNumber)),L=null);let B=r-e+1,F=new Array(B),Y=0;for(let Z=0,ee=d.length;Zr&&(Z=!0,Y=r-d+1),B.getViewLinesData(this.model,N+1,F,Y,d-e,o,w),d+=Y,Z)break}return w}validateViewPosition(e,r,o){e=this._toValidViewLineNumber(e);let c=this.projectedModelLineLineCounts.getIndexOf(e-1),d=c.index,h=c.remainder,b=this.modelLineProjections[d],w=b.getViewLineMinColumn(this.model,d+1,h),N=b.getViewLineMaxColumn(this.model,d+1,h);rN&&(r=N);let L=b.getModelColumnOfViewPosition(h,r);return this.model.validatePosition(new qn(d+1,L)).equals(o)?new qn(e,r):this.convertModelPositionToViewPosition(o.lineNumber,o.column)}validateViewRange(e,r){let o=this.validateViewPosition(e.startLineNumber,e.startColumn,r.getStartPosition()),c=this.validateViewPosition(e.endLineNumber,e.endColumn,r.getEndPosition());return new Zt(o.lineNumber,o.column,c.lineNumber,c.column)}convertViewPositionToModelPosition(e,r){let o=this.getViewLineInfo(e),c=this.modelLineProjections[o.modelLineNumber-1].getModelColumnOfViewPosition(o.modelLineWrappedLineIdx,r);return this.model.validatePosition(new qn(o.modelLineNumber,c))}convertViewRangeToModelRange(e){let r=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),o=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);return new Zt(r.lineNumber,r.column,o.lineNumber,o.column)}convertModelPositionToViewPosition(e,r,o=2,c=!1,d=!1){let h=this.model.validatePosition(new qn(e,r)),b=h.lineNumber,w=h.column,N=b-1,L=!1;if(d)for(;N0&&!this.modelLineProjections[N].isVisible();)N--,L=!0;if(N===0&&!this.modelLineProjections[N].isVisible())return new qn(c?0:1,1);let B=1+this.projectedModelLineLineCounts.getPrefixSum(N),F;return L?d?F=this.modelLineProjections[N].getViewPositionOfModelPosition(B,1,o):F=this.modelLineProjections[N].getViewPositionOfModelPosition(B,this.model.getLineMaxColumn(N+1),o):F=this.modelLineProjections[b-1].getViewPositionOfModelPosition(B,w,o),F}convertModelRangeToViewRange(e,r=0){if(e.isEmpty()){let o=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,r);return Zt.fromPositions(o)}else{let o=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,1),c=this.convertModelPositionToViewPosition(e.endLineNumber,e.endColumn,0);return new Zt(o.lineNumber,o.column,c.lineNumber,c.column)}}getViewLineNumberOfModelPosition(e,r){let o=e-1;if(this.modelLineProjections[o].isVisible()){let d=1+this.projectedModelLineLineCounts.getPrefixSum(o);return this.modelLineProjections[o].getViewLineNumberOfModelPosition(d,r)}for(;o>0&&!this.modelLineProjections[o].isVisible();)o--;if(o===0&&!this.modelLineProjections[o].isVisible())return 1;let c=1+this.projectedModelLineLineCounts.getPrefixSum(o);return this.modelLineProjections[o].getViewLineNumberOfModelPosition(c,this.model.getLineMaxColumn(o+1))}getDecorationsInRange(e,r,o,c,d){let h=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),b=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);if(b.lineNumber-h.lineNumber<=e.endLineNumber-e.startLineNumber)return this.model.getDecorationsInRange(new Zt(h.lineNumber,1,b.lineNumber,b.column),r,o,c,d);let w=[],N=h.lineNumber-1,L=b.lineNumber-1,B=null;for(let ee=N;ee<=L;ee++)if(this.modelLineProjections[ee].isVisible())B===null&&(B=new qn(ee+1,ee===N?h.column:1));else if(B!==null){let Je=this.model.getLineMaxColumn(ee);w=w.concat(this.model.getDecorationsInRange(new Zt(B.lineNumber,B.column,ee,Je),r,o,c)),B=null}B!==null&&(w=w.concat(this.model.getDecorationsInRange(new Zt(B.lineNumber,B.column,b.lineNumber,b.column),r,o,c)),B=null),w.sort((ee,Te)=>{let Je=Zt.compareRangesUsingStarts(ee.range,Te.range);return Je===0?ee.idTe.id?1:0:Je});let F=[],Y=0,Z=null;for(let ee of w){let Te=ee.id;Z!==Te&&(Z=Te,F[Y++]=ee)}return F}getInjectedTextAt(e){let r=this.getViewLineInfo(e.lineNumber);return this.modelLineProjections[r.modelLineNumber-1].getInjectedTextAt(r.modelLineWrappedLineIdx,e.column)}normalizePosition(e,r){let o=this.getViewLineInfo(e.lineNumber);return this.modelLineProjections[o.modelLineNumber-1].normalizePosition(o.modelLineWrappedLineIdx,e,r)}getLineIndentColumn(e){let r=this.getViewLineInfo(e);return r.modelLineWrappedLineIdx===0?this.model.getLineIndentColumn(r.modelLineNumber):0}};lLt=class{constructor(e,r){this.modelLineNumber=e,this.modelLineWrappedLineIdx=r}},uLt=class{constructor(e,r){this.modelRange=e,this.viewLines=r}},Ini=class{constructor(e){this._lines=e}convertViewPositionToModelPosition(e){return this._lines.convertViewPositionToModelPosition(e.lineNumber,e.column)}convertViewRangeToModelRange(e){return this._lines.convertViewRangeToModelRange(e)}validateViewPosition(e,r){return this._lines.validateViewPosition(e.lineNumber,e.column,r)}validateViewRange(e,r){return this._lines.validateViewRange(e,r)}convertModelPositionToViewPosition(e,r,o,c){return this._lines.convertModelPositionToViewPosition(e.lineNumber,e.column,r,o,c)}convertModelRangeToViewRange(e,r){return this._lines.convertModelRangeToViewRange(e,r)}modelPositionIsVisible(e){return this._lines.modelPositionIsVisible(e.lineNumber,e.column)}getModelLineViewLineCount(e){return this._lines.getModelLineViewLineCount(e)}getViewLineNumberOfModelPosition(e,r){return this._lines.getViewLineNumberOfModelPosition(e,r)}},dLt=class{constructor(e){this.model=e}dispose(){}createCoordinatesConverter(){return new Nni(this)}getHiddenAreas(){return[]}setHiddenAreas(e){return!1}setTabSize(e){return!1}setWrappingSettings(e,r,o,c){return!1}createLineBreaksComputer(){let e=[];return{addRequest:(r,o,c)=>{e.push(null)},finalize:()=>e}}onModelFlushed(){}onModelLinesDeleted(e,r,o){return new qHe(r,o)}onModelLinesInserted(e,r,o,c){return new $He(r,o)}onModelLineChanged(e,r,o){return[!1,new Sft(r,1),null,null]}acceptVersionId(e){}getViewLineCount(){return this.model.getLineCount()}getActiveIndentGuide(e,r,o){return{startLineNumber:e,endLineNumber:e,indent:0}}getViewLinesBracketGuides(e,r,o){return new Array(r-e+1).fill([])}getViewLinesIndentGuides(e,r){let o=r-e+1,c=new Array(o);for(let d=0;dr)}getModelLineViewLineCount(e){return 1}getViewLineNumberOfModelPosition(e,r){return e}}});var aLe,fLt,rki=ti(()=>{MD();aLe=n7.Right,fLt=class{constructor(e){this.persist=0,this._requiredLanes=1,this.lanes=new Uint8Array(Math.ceil((e+1)*aLe/8))}reset(e){let r=Math.ceil((e+1)*aLe/8);this.lanes.length>>3]|=1<>>3]&1<>>3]&1<{sd();Ud();rx();co();X_();Mu();TT();$Ci();LV();Iu();Xa();jSe();dy();SV();xni();B6t();ZCi();Kti();Hq();Tni();Z6t();nki();rki();aji=!0,_Lt=class extends tn{constructor(e,r,o,c,d,h,b,w,N){if(super(),this.languageConfigurationService=b,this._themeService=w,this._attachedView=N,this.hiddenAreasModel=new Lni,this.previousHiddenAreas=[],this._editorId=e,this._configuration=r,this.model=o,this._eventDispatcher=new j6t,this.onEvent=this._eventDispatcher.onEvent,this.cursorConfig=new Afe(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._updateConfigurationViewLineCount=this._register(new p_(()=>this._updateConfigurationViewLineCountNow(),0)),this._hasFocus=!1,this._viewportStart=Ani.create(this.model),this.glyphLanes=new fLt(0),aji&&this.model.isTooLargeForTokenization())this._lines=new dLt(this.model);else{let L=this._configuration.options,B=L.get(50),F=L.get(139),Y=L.get(146),Z=L.get(138),ee=L.get(129);this._lines=new cLt(this._editorId,this.model,c,d,B,this.model.getOptions().tabSize,F,Y.wrappingColumn,Z,ee)}this.coordinatesConverter=this._lines.createCoordinatesConverter(),this._cursor=this._register(new eLt(o,this,this.coordinatesConverter,this.cursorConfig)),this.viewLayout=this._register(new iLt(this._configuration,this.getLineCount(),h)),this._register(this.viewLayout.onDidScroll(L=>{L.scrollTopChanged&&this._handleVisibleLinesChanged(),L.scrollTopChanged&&this._viewportStart.invalidate(),this._eventDispatcher.emitSingleViewEvent(new L6t(L)),this._eventDispatcher.emitOutgoingEvent(new V6t(L.oldScrollWidth,L.oldScrollLeft,L.oldScrollHeight,L.oldScrollTop,L.scrollWidth,L.scrollLeft,L.scrollHeight,L.scrollTop))})),this._register(this.viewLayout.onDidContentSizeChange(L=>{this._eventDispatcher.emitOutgoingEvent(L)})),this._decorations=new nLt(this._editorId,this.model,this._configuration,this._lines,this.coordinatesConverter),this._registerModelEvents(),this._register(this._configuration.onDidChangeFast(L=>{try{let B=this._eventDispatcher.beginEmitViewEvents();this._onConfigurationChanged(B,L)}finally{this._eventDispatcher.endEmitViewEvents()}})),this._register(X6e.getInstance().onDidChange(()=>{this._eventDispatcher.emitSingleViewEvent(new M6t)})),this._register(this._themeService.onDidColorThemeChange(L=>{this._invalidateDecorationsColorCache(),this._eventDispatcher.emitSingleViewEvent(new O6t(L))})),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(){let e=this.viewLayout.getLinesViewportData(),r=new Zt(e.startLineNumber,this.getLineMinColumn(e.startLineNumber),e.endLineNumber,this.getLineMaxColumn(e.endLineNumber));return this._toModelVisibleRanges(r)}visibleLinesStabilized(){let e=this.getModelVisibleRanges();this._attachedView.setVisibleLines(e,!0)}_handleVisibleLinesChanged(){let e=this.getModelVisibleRanges();this._attachedView.setVisibleLines(e,!1)}setHasFocus(e){this._hasFocus=e,this._cursor.setHasFocus(e),this._eventDispatcher.emitSingleViewEvent(new A6t(e)),this._eventDispatcher.emitOutgoingEvent(new z6t(!e,e))}onCompositionStart(){this._eventDispatcher.emitSingleViewEvent(new E6t)}onCompositionEnd(){this._eventDispatcher.emitSingleViewEvent(new D6t)}_captureStableViewport(){if(this._viewportStart.isValid&&this.viewLayout.getCurrentScrollTop()>0){let e=new qn(this._viewportStart.viewLineNumber,this.getLineMinColumn(this._viewportStart.viewLineNumber)),r=this.coordinatesConverter.convertViewPositionToModelPosition(e);return new pLt(r,this._viewportStart.startLineDelta)}return new pLt(null,0)}_onConfigurationChanged(e,r){let o=this._captureStableViewport(),c=this._configuration.options,d=c.get(50),h=c.get(139),b=c.get(146),w=c.get(138),N=c.get(129);this._lines.setWrappingSettings(d,h,b.wrappingColumn,w,N)&&(e.emitViewEvent(new rLe),e.emitViewEvent(new oLe),e.emitViewEvent(new yre(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this._updateConfigurationViewLineCount.schedule()),r.hasChanged(91)&&(this._decorations.reset(),e.emitViewEvent(new yre(null))),r.hasChanged(98)&&(this._decorations.reset(),e.emitViewEvent(new yre(null))),e.emitViewEvent(new I6t(r)),this.viewLayout.onConfigurationChanged(r),o.recoverViewportStart(this.coordinatesConverter,this.viewLayout),Afe.shouldRecreate(r)&&(this.cursorConfig=new Afe(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig))}_registerModelEvents(){this._register(this.model.onDidChangeContentOrInjectedText(e=>{try{let o=this._eventDispatcher.beginEmitViewEvents(),c=!1,d=!1,h=e instanceof BSe?e.rawContentChangedEvent.changes:e.changes,b=e instanceof BSe?e.rawContentChangedEvent.versionId:null,w=this._lines.createLineBreaksComputer();for(let B of h)switch(B.changeType){case 4:{for(let F=0;F!ee.ownerId||ee.ownerId===this._editorId)),w.addRequest(Y,Z,null)}break}case 2:{let F=null;B.injectedText&&(F=B.injectedText.filter(Y=>!Y.ownerId||Y.ownerId===this._editorId)),w.addRequest(B.detail,F,null);break}}let N=w.finalize(),L=new KL(N);for(let B of h)switch(B.changeType){case 1:{this._lines.onModelFlushed(),o.emitViewEvent(new rLe),this._decorations.reset(),this.viewLayout.onFlushed(this.getLineCount()),c=!0;break}case 3:{let F=this._lines.onModelLinesDeleted(b,B.fromLineNumber,B.toLineNumber);F!==null&&(o.emitViewEvent(F),this.viewLayout.onLinesDeleted(F.fromLineNumber,F.toLineNumber)),c=!0;break}case 4:{let F=L.takeCount(B.detail.length),Y=this._lines.onModelLinesInserted(b,B.fromLineNumber,B.toLineNumber,F);Y!==null&&(o.emitViewEvent(Y),this.viewLayout.onLinesInserted(Y.fromLineNumber,Y.toLineNumber)),c=!0;break}case 2:{let F=L.dequeue(),[Y,Z,ee,Te]=this._lines.onModelLineChanged(b,B.lineNumber,F);d=Y,Z&&o.emitViewEvent(Z),ee&&(o.emitViewEvent(ee),this.viewLayout.onLinesInserted(ee.fromLineNumber,ee.toLineNumber)),Te&&(o.emitViewEvent(Te),this.viewLayout.onLinesDeleted(Te.fromLineNumber,Te.toLineNumber));break}case 5:break}b!==null&&this._lines.acceptVersionId(b),this.viewLayout.onHeightMaybeChanged(),!c&&d&&(o.emitViewEvent(new oLe),o.emitViewEvent(new yre(null)),this._cursor.onLineMappingChanged(o),this._decorations.onLineMappingChanged())}finally{this._eventDispatcher.endEmitViewEvents()}let r=this._viewportStart.isValid;if(this._viewportStart.invalidate(),this._configuration.setModelLineCount(this.model.getLineCount()),this._updateConfigurationViewLineCountNow(),!this._hasFocus&&this.model.getAttachedEditorCount()>=2&&r){let o=this.model._getTrackedRange(this._viewportStart.modelTrackedRange);if(o){let c=this.coordinatesConverter.convertModelPositionToViewPosition(o.getStartPosition()),d=this.viewLayout.getVerticalOffsetForLineNumber(c.lineNumber);this.viewLayout.setScrollPosition({scrollTop:d+this._viewportStart.startLineDelta},1)}}try{let o=this._eventDispatcher.beginEmitViewEvents();e instanceof BSe&&o.emitOutgoingEvent(new X6t(e.contentChangedEvent)),this._cursor.onModelContentChanged(o,e)}finally{this._eventDispatcher.endEmitViewEvents()}this._handleVisibleLinesChanged()})),this._register(this.model.onDidChangeTokens(e=>{let r=[];for(let o=0,c=e.ranges.length;o{this._eventDispatcher.emitSingleViewEvent(new P6t),this.cursorConfig=new Afe(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new K6t(e))})),this._register(this.model.onDidChangeLanguage(e=>{this.cursorConfig=new Afe(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new G6t(e))})),this._register(this.model.onDidChangeOptions(e=>{if(this._lines.setTabSize(this.model.getOptions().tabSize)){try{let r=this._eventDispatcher.beginEmitViewEvents();r.emitViewEvent(new rLe),r.emitViewEvent(new oLe),r.emitViewEvent(new yre(null)),this._cursor.onLineMappingChanged(r),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule()}this.cursorConfig=new Afe(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new Y6t(e))})),this._register(this.model.onDidChangeDecorations(e=>{this._decorations.onModelDecorationsChanged(),this._eventDispatcher.emitSingleViewEvent(new yre(e)),this._eventDispatcher.emitOutgoingEvent(new $6t(e))}))}setHiddenAreas(e,r){var o;this.hiddenAreasModel.setHiddenAreas(r,e);let c=this.hiddenAreasModel.getMergedRanges();if(c===this.previousHiddenAreas)return;this.previousHiddenAreas=c;let d=this._captureStableViewport(),h=!1;try{let b=this._eventDispatcher.beginEmitViewEvents();h=this._lines.setHiddenAreas(c),h&&(b.emitViewEvent(new rLe),b.emitViewEvent(new oLe),b.emitViewEvent(new yre(null)),this._cursor.onLineMappingChanged(b),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.onHeightMaybeChanged());let w=(o=d.viewportStartModelPosition)===null||o===void 0?void 0:o.lineNumber;w&&c.some(L=>L.startLineNumber<=w&&w<=L.endLineNumber)||d.recoverViewportStart(this.coordinatesConverter,this.viewLayout)}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule(),h&&this._eventDispatcher.emitOutgoingEvent(new U6t)}getVisibleRangesPlusViewportAboveBelow(){let e=this._configuration.options.get(145),r=this._configuration.options.get(67),o=Math.max(20,Math.round(e.height/r)),c=this.viewLayout.getLinesViewportData(),d=Math.max(1,c.completelyVisibleStartLineNumber-o),h=Math.min(this.getLineCount(),c.completelyVisibleEndLineNumber+o);return this._toModelVisibleRanges(new Zt(d,this.getLineMinColumn(d),h,this.getLineMaxColumn(h)))}getVisibleRanges(){let e=this.getCompletelyVisibleViewRange();return this._toModelVisibleRanges(e)}getHiddenAreas(){return this._lines.getHiddenAreas()}_toModelVisibleRanges(e){let r=this.coordinatesConverter.convertViewRangeToModelRange(e),o=this._lines.getHiddenAreas();if(o.length===0)return[r];let c=[],d=0,h=r.startLineNumber,b=r.startColumn,w=r.endLineNumber,N=r.endColumn;for(let L=0,B=o.length;Lw||(h"u")return this._reduceRestoreStateCompatibility(e);let r=this.model.validatePosition(e.firstPosition),o=this.coordinatesConverter.convertModelPositionToViewPosition(r),c=this.viewLayout.getVerticalOffsetForLineNumber(o.lineNumber)-e.firstPositionDeltaTop;return{scrollLeft:e.scrollLeft,scrollTop:c}}_reduceRestoreStateCompatibility(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTopWithoutViewZones}}getTabSize(){return this.model.getOptions().tabSize}getLineCount(){return this._lines.getViewLineCount()}setViewport(e,r,o){this._viewportStart.update(this,e)}getActiveIndentGuide(e,r,o){return this._lines.getActiveIndentGuide(e,r,o)}getLinesIndentGuides(e,r){return this._lines.getViewLinesIndentGuides(e,r)}getBracketGuidesInRangeByLine(e,r,o,c){return this._lines.getViewLinesBracketGuides(e,r,o,c)}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){let r=tx(this.getLineContent(e));return r===-1?0:r+1}getLineLastNonWhitespaceColumn(e){let r=MP(this.getLineContent(e));return r===-1?0:r+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,r){let c=this._decorations.getDecorationsViewportData(e).inlineDecorations[r-e.startLineNumber];return this._getViewLineRenderingData(r,c)}getViewLineRenderingData(e){let r=this._decorations.getInlineDecorationsOnLine(e);return this._getViewLineRenderingData(e,r)}_getViewLineRenderingData(e,r){let o=this.model.mightContainRTL(),c=this.model.mightContainNonBasicASCII(),d=this.getTabSize(),h=this._lines.getViewLineData(e);return h.inlineDecorations&&(r=[...r,...h.inlineDecorations.map(b=>b.toInlineDecoration(e))]),new GO(h.minColumn,h.maxColumn,h.content,h.continuesWithWrappedLine,o,c,h.tokens,r,d,h.startVisibleColumn)}getViewLineData(e){return this._lines.getViewLineData(e)}getMinimapLinesRenderingData(e,r,o){let c=this._lines.getViewLinesData(e,r,o);return new wAt(this.getTabSize(),c)}getAllOverviewRulerDecorations(e){let r=this.model.getOverviewRulerDecorations(this._editorId,L4e(this._configuration.options)),o=new Pni;for(let c of r){let d=c.options,h=d.overviewRuler;if(!h)continue;let b=h.position;if(b===0)continue;let w=h.getColor(e.value),N=this.coordinatesConverter.getViewLineNumberOfModelPosition(c.range.startLineNumber,c.range.startColumn),L=this.coordinatesConverter.getViewLineNumberOfModelPosition(c.range.endLineNumber,c.range.endColumn);o.accept(w,d.zIndex,N,L,b)}return o.asArray}_invalidateDecorationsColorCache(){let e=this.model.getOverviewRulerDecorations();for(let r of e){let o=r.options.overviewRuler;o?.invalidateCachedColor();let c=r.options.minimap;c?.invalidateCachedColor()}}getValueInRange(e,r){let o=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueInRange(o,r)}getValueLengthInRange(e,r){let o=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueLengthInRange(o,r)}modifyPosition(e,r){let o=this.coordinatesConverter.convertViewPositionToModelPosition(e),c=this.model.modifyPosition(o,r);return this.coordinatesConverter.convertModelPositionToViewPosition(c)}deduceModelPositionRelativeToViewPosition(e,r,o){let c=this.coordinatesConverter.convertViewPositionToModelPosition(e);this.model.getEOL().length===2&&(r<0?r-=o:r+=o);let h=this.model.getOffsetAt(c)+r;return this.model.getPositionAt(h)}getPlainTextToCopy(e,r,o){let c=o?`\r +`:this.model.getEOL();e=e.slice(0),e.sort(Zt.compareRangesUsingStarts);let d=!1,h=!1;for(let w of e)w.isEmpty()?d=!0:h=!0;if(!h){if(!r)return"";let w=e.map(L=>L.startLineNumber),N="";for(let L=0;L0&&w[L-1]===w[L]||(N+=this.model.getLineContent(w[L])+c);return N}if(d&&r){let w=[],N=0;for(let L of e){let B=L.startLineNumber;L.isEmpty()?B!==N&&w.push(this.model.getLineContent(B)):w.push(this.model.getValueInRange(L,o?2:0)),N=B}return w.length===1?w[0]:w}let b=[];for(let w of e)w.isEmpty()||b.push(this.model.getValueInRange(w,o?2:0));return b.length===1?b[0]:b}getRichTextToCopy(e,r){let o=this.model.getLanguageId();if(o===y2||e.length!==1)return null;let c=e[0];if(c.isEmpty()){if(!r)return null;let L=c.startLineNumber;c=new Zt(L,this.model.getLineMinColumn(L),L,this.model.getLineMaxColumn(L))}let d=this._configuration.options.get(50),h=this._getColorMap(),w=/[:;\\\/<>]/.test(d.fontFamily)||d.fontFamily===sA.fontFamily,N;return w?N=sA.fontFamily:(N=d.fontFamily,N=N.replace(/"/g,"'"),/[,']/.test(N)||/[+ ]/.test(N)&&(N=`'${N}'`),N=`${N}, ${sA.fontFamily}`),{mode:o,html:`
`+this._getHTMLToCopy(c,h)+"
"}}_getHTMLToCopy(e,r){let o=e.startLineNumber,c=e.startColumn,d=e.endLineNumber,h=e.endColumn,b=this.getTabSize(),w="";for(let N=o;N<=d;N++){let L=this.model.tokenization.getLineTokens(N),B=L.getLineContent(),F=N===o?c-1:0,Y=N===d?h-1:B.length;B===""?w+="
":w+=YCi(B,L.inflate(),r,F,Y,b,Bv)}return w}_getColorMap(){let e=a0.getColorMap(),r=["#000000"];if(e)for(let o=1,c=e.length;othis._cursor.setStates(c,e,r,o))}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,r,o=0){this._withViewEventsCollector(c=>this._cursor.setSelections(c,e,r,o))}saveCursorState(){return this._cursor.saveState()}restoreCursorState(e){this._withViewEventsCollector(r=>this._cursor.restoreState(r,e))}_executeCursorEdit(e){if(this._cursor.context.cursorConfig.readOnly){this._eventDispatcher.emitOutgoingEvent(new q6t);return}this._withViewEventsCollector(e)}executeEdits(e,r,o){this._executeCursorEdit(c=>this._cursor.executeEdits(c,e,r,o))}startComposition(){this._executeCursorEdit(e=>this._cursor.startComposition(e))}endComposition(e){this._executeCursorEdit(r=>this._cursor.endComposition(r,e))}type(e,r){this._executeCursorEdit(o=>this._cursor.type(o,e,r))}compositionType(e,r,o,c,d){this._executeCursorEdit(h=>this._cursor.compositionType(h,e,r,o,c,d))}paste(e,r,o,c){this._executeCursorEdit(d=>this._cursor.paste(d,e,r,o,c))}cut(e){this._executeCursorEdit(r=>this._cursor.cut(r,e))}executeCommand(e,r){this._executeCursorEdit(o=>this._cursor.executeCommand(o,e,r))}executeCommands(e,r){this._executeCursorEdit(o=>this._cursor.executeCommands(o,e,r))}revealAllCursors(e,r,o=!1){this._withViewEventsCollector(c=>this._cursor.revealAll(c,e,o,0,r,0))}revealPrimaryCursor(e,r,o=!1){this._withViewEventsCollector(c=>this._cursor.revealPrimary(c,e,o,0,r,0))}revealTopMostCursor(e){let r=this._cursor.getTopMostViewPosition(),o=new Zt(r.lineNumber,r.column,r.lineNumber,r.column);this._withViewEventsCollector(c=>c.emitViewEvent(new Wfe(e,!1,o,null,0,!0,0)))}revealBottomMostCursor(e){let r=this._cursor.getBottomMostViewPosition(),o=new Zt(r.lineNumber,r.column,r.lineNumber,r.column);this._withViewEventsCollector(c=>c.emitViewEvent(new Wfe(e,!1,o,null,0,!0,0)))}revealRange(e,r,o,c,d){this._withViewEventsCollector(h=>h.emitViewEvent(new Wfe(e,!1,o,null,c,r,d)))}changeWhitespace(e){this.viewLayout.changeWhitespace(e)&&(this._eventDispatcher.emitSingleViewEvent(new R6t),this._eventDispatcher.emitOutgoingEvent(new H6t))}_withViewEventsCollector(e){try{let r=this._eventDispatcher.beginEmitViewEvents();return e(r)}finally{this._eventDispatcher.endEmitViewEvents()}}batchEvents(e){this._withViewEventsCollector(()=>{e()})}normalizePosition(e,r){return this._lines.normalizePosition(e,r)}getLineIndentColumn(e){return this._lines.getLineIndentColumn(e)}},Ani=class l{static create(e){let r=e._setTrackedRange(null,new Zt(1,1,1,1),1);return new l(e,1,!1,r,0)}get viewLineNumber(){return this._viewLineNumber}get isValid(){return this._isValid}get modelTrackedRange(){return this._modelTrackedRange}get startLineDelta(){return this._startLineDelta}constructor(e,r,o,c,d){this._model=e,this._viewLineNumber=r,this._isValid=o,this._modelTrackedRange=c,this._startLineDelta=d}dispose(){this._model._setTrackedRange(this._modelTrackedRange,null,1)}update(e,r){let o=e.coordinatesConverter.convertViewPositionToModelPosition(new qn(r,e.getLineMinColumn(r))),c=e.model._setTrackedRange(this._modelTrackedRange,new Zt(o.lineNumber,o.column,o.lineNumber,o.column),1),d=e.viewLayout.getVerticalOffsetForLineNumber(r),h=e.viewLayout.getCurrentScrollTop();this._viewLineNumber=r,this._isValid=!0,this._modelTrackedRange=c,this._startLineDelta=h-d}invalidate(){this._isValid=!1}},Pni=class{constructor(){this._asMap=Object.create(null),this.asArray=[]}accept(e,r,o,c,d){let h=this._asMap[e];if(h){let b=h.data,w=b[b.length-3],N=b[b.length-1];if(w===d&&N+1>=o){c>N&&(b[b.length-1]=c);return}b.push(d,o,c)}else{let b=new h6e(e,r,[d,o,c]);this._asMap[e]=b,this.asArray.push(b)}}},Lni=class{constructor(){this.hiddenAreas=new Map,this.shouldRecompute=!1,this.ranges=[]}setHiddenAreas(e,r){let o=this.hiddenAreas.get(e);o&&oki(o,r)||(this.hiddenAreas.set(e,r),this.shouldRecompute=!0)}getMergedRanges(){if(!this.shouldRecompute)return this.ranges;this.shouldRecompute=!1;let e=Array.from(this.hiddenAreas.values()).reduce((r,o)=>cji(r,o),[]);return oki(this.ranges,e)?this.ranges:(this.ranges=e,this.ranges)}};pLt=class{constructor(e,r){this.viewportStartModelPosition=e,this.startLineDelta=r}recoverViewportStart(e,r){if(!this.viewportStartModelPosition)return;let o=e.convertModelPositionToViewPosition(this.viewportStartModelPosition),c=r.getVerticalOffsetForLineNumber(o.lineNumber);r.setScrollPosition({scrollTop:c+this.startLineDelta},1)}}});var c$,XHe=ti(()=>{c$=class{constructor(...e){this._entries=new Map;for(let[r,o]of e)this.set(r,o)}set(e,r){let o=this._entries.get(e);return this._entries.set(e,r),o}get(e){return this._entries.get(e)}}});var kft,_1,zfe=ti(()=>{Mu();(function(l){l[l.Ignore=0]="Ignore",l[l.Info=1]="Info",l[l.Warning=2]="Warning",l[l.Error=3]="Error"})(kft||(kft={}));(function(l){let e="error",r="warning",o="warn",c="info",d="ignore";function h(w){return w?afe(e,w)?l.Error:afe(r,w)||afe(o,w)?l.Warning:afe(c,w)?l.Info:l.Ignore:l.Ignore}l.fromValue=h;function b(w){switch(w){case l.Error:return e;case l.Warning:return r;case l.Info:return c;default:return d}}l.toString=b})(kft||(kft={}));_1=kft});var $Se,og,mLt,xA=ti(()=>{zfe();bl();$Se=_1,og=Ml("notificationService"),mLt=class{}});function Oni(l){return dji+encodeURIComponent(l.toString())+fji}function mji(l){return _ji+encodeURIComponent(l.toString())+pji}var lji,Vfe,cLe,Hfe,uji,Fni,hLt,UP,Mni,Rni,Bni,jni,dji,fji,_ji,pji,wft=ti(()=>{Uvi();nc();Du();xc();co();RP();Jvi();xB();Kvi();AAt();vf();IC();Rxi();Wxi();Fti();zxi();TT();t$();PV();Iu();Xa();j0();Ddt();uii();rdt();$h();ix();Ww();wm();VCi();ski();ya();KO();W0();hd();bl();XHe();xA();q1();x0();My();lji=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},Vfe=function(l,e){return function(r,o){e(r,o,l)}},Hfe=cLe=class extends tn{get isSimpleWidget(){return this._configuration.isSimpleWidget}get contextMenuId(){return this._configuration.contextMenuId}constructor(e,r,o,c,d,h,b,w,N,L,B,F){var Y,Z;super(),this.languageConfigurationService=B,this._deliveryQueue=Dgi(),this._contributions=this._register(new X4t),this._onDidDispose=this._register(new wn),this.onDidDispose=this._onDidDispose.event,this._onDidChangeModelContent=this._register(new wn({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelContent=this._onDidChangeModelContent.event,this._onDidChangeModelLanguage=this._register(new wn({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelLanguage=this._onDidChangeModelLanguage.event,this._onDidChangeModelLanguageConfiguration=this._register(new wn({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelLanguageConfiguration=this._onDidChangeModelLanguageConfiguration.event,this._onDidChangeModelOptions=this._register(new wn({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelOptions=this._onDidChangeModelOptions.event,this._onDidChangeModelDecorations=this._register(new wn({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelDecorations=this._onDidChangeModelDecorations.event,this._onDidChangeModelTokens=this._register(new wn({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelTokens=this._onDidChangeModelTokens.event,this._onDidChangeConfiguration=this._register(new wn({deliveryQueue:this._deliveryQueue})),this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._onWillChangeModel=this._register(new wn({deliveryQueue:this._deliveryQueue})),this.onWillChangeModel=this._onWillChangeModel.event,this._onDidChangeModel=this._register(new wn({deliveryQueue:this._deliveryQueue})),this.onDidChangeModel=this._onDidChangeModel.event,this._onDidChangeCursorPosition=this._register(new wn({deliveryQueue:this._deliveryQueue})),this.onDidChangeCursorPosition=this._onDidChangeCursorPosition.event,this._onDidChangeCursorSelection=this._register(new wn({deliveryQueue:this._deliveryQueue})),this.onDidChangeCursorSelection=this._onDidChangeCursorSelection.event,this._onDidAttemptReadOnlyEdit=this._register(new UP(this._contributions,this._deliveryQueue)),this.onDidAttemptReadOnlyEdit=this._onDidAttemptReadOnlyEdit.event,this._onDidLayoutChange=this._register(new wn({deliveryQueue:this._deliveryQueue})),this.onDidLayoutChange=this._onDidLayoutChange.event,this._editorTextFocus=this._register(new hLt({deliveryQueue:this._deliveryQueue})),this.onDidFocusEditorText=this._editorTextFocus.onDidChangeToTrue,this.onDidBlurEditorText=this._editorTextFocus.onDidChangeToFalse,this._editorWidgetFocus=this._register(new hLt({deliveryQueue:this._deliveryQueue})),this.onDidFocusEditorWidget=this._editorWidgetFocus.onDidChangeToTrue,this.onDidBlurEditorWidget=this._editorWidgetFocus.onDidChangeToFalse,this._onWillType=this._register(new UP(this._contributions,this._deliveryQueue)),this.onWillType=this._onWillType.event,this._onDidType=this._register(new UP(this._contributions,this._deliveryQueue)),this.onDidType=this._onDidType.event,this._onDidCompositionStart=this._register(new UP(this._contributions,this._deliveryQueue)),this.onDidCompositionStart=this._onDidCompositionStart.event,this._onDidCompositionEnd=this._register(new UP(this._contributions,this._deliveryQueue)),this.onDidCompositionEnd=this._onDidCompositionEnd.event,this._onDidPaste=this._register(new UP(this._contributions,this._deliveryQueue)),this.onDidPaste=this._onDidPaste.event,this._onMouseUp=this._register(new UP(this._contributions,this._deliveryQueue)),this.onMouseUp=this._onMouseUp.event,this._onMouseDown=this._register(new UP(this._contributions,this._deliveryQueue)),this.onMouseDown=this._onMouseDown.event,this._onMouseDrag=this._register(new UP(this._contributions,this._deliveryQueue)),this.onMouseDrag=this._onMouseDrag.event,this._onMouseDrop=this._register(new UP(this._contributions,this._deliveryQueue)),this.onMouseDrop=this._onMouseDrop.event,this._onMouseDropCanceled=this._register(new UP(this._contributions,this._deliveryQueue)),this.onMouseDropCanceled=this._onMouseDropCanceled.event,this._onDropIntoEditor=this._register(new UP(this._contributions,this._deliveryQueue)),this.onDropIntoEditor=this._onDropIntoEditor.event,this._onContextMenu=this._register(new UP(this._contributions,this._deliveryQueue)),this.onContextMenu=this._onContextMenu.event,this._onMouseMove=this._register(new UP(this._contributions,this._deliveryQueue)),this.onMouseMove=this._onMouseMove.event,this._onMouseLeave=this._register(new UP(this._contributions,this._deliveryQueue)),this.onMouseLeave=this._onMouseLeave.event,this._onMouseWheel=this._register(new UP(this._contributions,this._deliveryQueue)),this.onMouseWheel=this._onMouseWheel.event,this._onKeyUp=this._register(new UP(this._contributions,this._deliveryQueue)),this.onKeyUp=this._onKeyUp.event,this._onKeyDown=this._register(new UP(this._contributions,this._deliveryQueue)),this.onKeyDown=this._onKeyDown.event,this._onDidContentSizeChange=this._register(new wn({deliveryQueue:this._deliveryQueue})),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._onDidScrollChange=this._register(new wn({deliveryQueue:this._deliveryQueue})),this.onDidScrollChange=this._onDidScrollChange.event,this._onDidChangeViewZones=this._register(new wn({deliveryQueue:this._deliveryQueue})),this.onDidChangeViewZones=this._onDidChangeViewZones.event,this._onDidChangeHiddenAreas=this._register(new wn({deliveryQueue:this._deliveryQueue})),this.onDidChangeHiddenAreas=this._onDidChangeHiddenAreas.event,this._updateCounter=0,this._onBeginUpdate=this._register(new wn),this.onBeginUpdate=this._onBeginUpdate.event,this._onEndUpdate=this._register(new wn),this.onEndUpdate=this._onEndUpdate.event,this._actions=new Map,this._bannerDomNode=null,this._dropIntoEditorDecorations=this.createDecorationsCollection(),d.willCreateCodeEditor();let ee={...r};this._domElement=e,this._overflowWidgetsDomNode=ee.overflowWidgetsDomNode,delete ee.overflowWidgetsDomNode,this._id=++uji,this._decorationTypeKeysToIds={},this._decorationTypeSubtypes={},this._telemetryData=o.telemetryData,this._configuration=this._register(this._createConfiguration(o.isSimpleWidget||!1,(Y=o.contextMenuId)!==null&&Y!==void 0?Y:o.isSimpleWidget?Mi.SimpleEditorContext:Mi.EditorContext,ee,L)),this._register(this._configuration.onDidChange(Xe=>{this._onDidChangeConfiguration.fire(Xe);let ct=this._configuration.options;if(Xe.hasChanged(145)){let Ct=ct.get(145);this._onDidLayoutChange.fire(Ct)}})),this._contextKeyService=this._register(b.createScoped(this._domElement)),this._notificationService=N,this._codeEditorService=d,this._commandService=h,this._themeService=w,this._register(new Mni(this,this._contextKeyService)),this._register(new Rni(this,this._contextKeyService,F)),this._instantiationService=this._register(c.createChild(new c$([Ec,this._contextKeyService]))),this._modelData=null,this._focusTracker=new Bni(e,this._overflowWidgetsDomNode),this._register(this._focusTracker.onChange(()=>{this._editorWidgetFocus.setValue(this._focusTracker.hasFocus())})),this._contentWidgets={},this._overlayWidgets={},this._glyphMarginWidgets={};let Te;Array.isArray(o.contributions)?Te=o.contributions:Te=oSe.getEditorContributions(),this._contributions.initialize(this,Te,this._instantiationService);for(let Xe of oSe.getEditorActions()){if(this._actions.has(Xe.id)){dl(new Error(`Cannot have two actions with the same id ${Xe.id}`));continue}let ct=new PHe(Xe.id,Xe.label,Xe.alias,Xe.metadata,(Z=Xe.precondition)!==null&&Z!==void 0?Z:void 0,Ct=>this._instantiationService.invokeFunction(Nt=>Promise.resolve(Xe.runEditorCommand(Nt,this,Ct))),this._contextKeyService);this._actions.set(ct.id,ct)}let Je=()=>!this._configuration.options.get(91)&&this._configuration.options.get(36).enabled;this._register(new tNt(this._domElement,{onDragOver:Xe=>{if(!Je())return;let ct=this.getTargetAtClientPoint(Xe.clientX,Xe.clientY);ct?.position&&this.showDropIndicatorAt(ct.position)},onDrop:async Xe=>{if(!Je()||(this.removeDropIndicator(),!Xe.dataTransfer))return;let ct=this.getTargetAtClientPoint(Xe.clientX,Xe.clientY);ct?.position&&this._onDropIntoEditor.fire({position:ct.position,event:Xe})},onDragLeave:()=>{this.removeDropIndicator()},onDragEnd:()=>{this.removeDropIndicator()}})),this._codeEditorService.addCodeEditor(this)}writeScreenReaderContent(e){var r;(r=this._modelData)===null||r===void 0||r.view.writeScreenReaderContent(e)}_createConfiguration(e,r,o,c){return new PAt(e,r,o,this._domElement,c)}getId(){return this.getEditorType()+":"+this._id}getEditorType(){return Cfe.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?b2.getWordAtPosition(this._modelData.model,this._configuration.options.get(131),this._configuration.options.get(130),e):null}getValue(e=null){if(!this._modelData)return"";let r=!!(e&&e.preserveBOM),o=0;return e&&e.lineEnding&&e.lineEnding===` +`?o=1:e&&e.lineEnding&&e.lineEnding===`\r +`&&(o=2),this._modelData.model.getValue(o,r)}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){var r;try{this._beginUpdate();let o=e;if(this._modelData===null&&o===null||this._modelData&&this._modelData.model===o)return;let c={oldModelUrl:((r=this._modelData)===null||r===void 0?void 0:r.model.uri)||null,newModelUrl:o?.uri||null};this._onWillChangeModel.fire(c);let d=this.hasTextFocus(),h=this._detachModel();this._attachModel(o),d&&this.hasModel()&&this.focus(),this._removeDecorationTypes(),this._onDidChangeModel.fire(c),this._postDetachModelCleanup(h),this._contributionsDisposable=this._contributions.onAfterModelAttached()}finally{this._endUpdate()}}_removeDecorationTypes(){if(this._decorationTypeKeysToIds={},this._decorationTypeSubtypes){for(let e in this._decorationTypeSubtypes){let r=this._decorationTypeSubtypes[e];for(let o in r)this._removeDecorationType(e+"-"+o)}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,r,o,c){let d=e.model.validatePosition({lineNumber:r,column:o}),h=e.viewModel.coordinatesConverter.convertModelPositionToViewPosition(d);return e.viewModel.viewLayout.getVerticalOffsetAfterLineNumber(h.lineNumber,c)}getTopForLineNumber(e,r=!1){return this._modelData?cLe._getVerticalOffsetForPosition(this._modelData,e,1,r):-1}getTopForPosition(e,r){return this._modelData?cLe._getVerticalOffsetForPosition(this._modelData,e,r,!1):-1}static _getVerticalOffsetForPosition(e,r,o,c=!1){let d=e.model.validatePosition({lineNumber:r,column:o}),h=e.viewModel.coordinatesConverter.convertModelPositionToViewPosition(d);return e.viewModel.viewLayout.getVerticalOffsetForLineNumber(h.lineNumber,c)}getBottomForLineNumber(e,r=!1){return this._modelData?cLe._getVerticalOffsetAfterPosition(this._modelData,e,1,r):-1}setHiddenAreas(e,r){var o;(o=this._modelData)===null||o===void 0||o.viewModel.setHiddenAreas(e.map(c=>Zt.lift(c)),r)}getVisibleColumnFromPosition(e){if(!this._modelData)return e.column;let r=this._modelData.model.validatePosition(e),o=this._modelData.model.getOptions().tabSize;return $1.visibleColumnFromColumn(this._modelData.model.getLineContent(r.lineNumber),r.column,o)+1}getPosition(){return this._modelData?this._modelData.viewModel.getPosition():null}setPosition(e,r="api"){if(this._modelData){if(!qn.isIPosition(e))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections(r,[{selectionStartLineNumber:e.lineNumber,selectionStartColumn:e.column,positionLineNumber:e.lineNumber,positionColumn:e.column}])}}_sendRevealRange(e,r,o,c){if(!this._modelData)return;if(!Zt.isIRange(e))throw new Error("Invalid arguments");let d=this._modelData.model.validateRange(e),h=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(d);this._modelData.viewModel.revealRange("api",o,h,r,c)}revealLine(e,r=0){this._revealLine(e,0,r)}revealLineInCenter(e,r=0){this._revealLine(e,1,r)}revealLineInCenterIfOutsideViewport(e,r=0){this._revealLine(e,2,r)}revealLineNearTop(e,r=0){this._revealLine(e,5,r)}_revealLine(e,r,o){if(typeof e!="number")throw new Error("Invalid arguments");this._sendRevealRange(new Zt(e,1,e,1),r,!1,o)}revealPosition(e,r=0){this._revealPosition(e,0,!0,r)}revealPositionInCenter(e,r=0){this._revealPosition(e,1,!0,r)}revealPositionInCenterIfOutsideViewport(e,r=0){this._revealPosition(e,2,!0,r)}revealPositionNearTop(e,r=0){this._revealPosition(e,5,!0,r)}_revealPosition(e,r,o,c){if(!qn.isIPosition(e))throw new Error("Invalid arguments");this._sendRevealRange(new Zt(e.lineNumber,e.column,e.lineNumber,e.column),r,o,c)}getSelection(){return this._modelData?this._modelData.viewModel.getSelection():null}getSelections(){return this._modelData?this._modelData.viewModel.getSelections():null}setSelection(e,r="api"){let o=ic.isISelection(e),c=Zt.isIRange(e);if(!o&&!c)throw new Error("Invalid arguments");if(o)this._setSelectionImpl(e,r);else if(c){let d={selectionStartLineNumber:e.startLineNumber,selectionStartColumn:e.startColumn,positionLineNumber:e.endLineNumber,positionColumn:e.endColumn};this._setSelectionImpl(d,r)}}_setSelectionImpl(e,r){if(!this._modelData)return;let o=new ic(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn);this._modelData.viewModel.setSelections(r,[o])}revealLines(e,r,o=0){this._revealLines(e,r,0,o)}revealLinesInCenter(e,r,o=0){this._revealLines(e,r,1,o)}revealLinesInCenterIfOutsideViewport(e,r,o=0){this._revealLines(e,r,2,o)}revealLinesNearTop(e,r,o=0){this._revealLines(e,r,5,o)}_revealLines(e,r,o,c){if(typeof e!="number"||typeof r!="number")throw new Error("Invalid arguments");this._sendRevealRange(new Zt(e,1,r,1),o,!1,c)}revealRange(e,r=0,o=!1,c=!0){this._revealRange(e,o?1:0,c,r)}revealRangeInCenter(e,r=0){this._revealRange(e,1,!0,r)}revealRangeInCenterIfOutsideViewport(e,r=0){this._revealRange(e,2,!0,r)}revealRangeNearTop(e,r=0){this._revealRange(e,5,!0,r)}revealRangeNearTopIfOutsideViewport(e,r=0){this._revealRange(e,6,!0,r)}revealRangeAtTop(e,r=0){this._revealRange(e,3,!0,r)}_revealRange(e,r,o,c){if(!Zt.isIRange(e))throw new Error("Invalid arguments");this._sendRevealRange(Zt.lift(e),r,o,c)}setSelections(e,r="api",o=0){if(this._modelData){if(!e||e.length===0)throw new Error("Invalid arguments");for(let c=0,d=e.length;c0&&this._modelData.viewModel.restoreCursorState(o):this._modelData.viewModel.restoreCursorState([o]),this._contributions.restoreViewState(r.contributionsState||{});let c=this._modelData.viewModel.reduceRestoreState(r.viewState);this._modelData.view.restoreState(c)}}handleInitialized(){var e;(e=this._getViewModel())===null||e===void 0||e.visibleLinesStabilized()}getContribution(e){return this._contributions.get(e)}getActions(){return Array.from(this._actions.values())}getSupportedActions(){let e=this.getActions();return e=e.filter(r=>r.isSupported()),e}getAction(e){return this._actions.get(e)||null}trigger(e,r,o){o=o||{};try{switch(this._beginUpdate(),r){case"compositionStart":this._startComposition();return;case"compositionEnd":this._endComposition(e);return;case"type":{let d=o;this._type(e,d.text||"");return}case"replacePreviousChar":{let d=o;this._compositionType(e,d.text||"",d.replaceCharCnt||0,0,0);return}case"compositionType":{let d=o;this._compositionType(e,d.text||"",d.replacePrevCharCnt||0,d.replaceNextCharCnt||0,d.positionDelta||0);return}case"paste":{let d=o;this._paste(e,d.text||"",d.pasteOnNewLine||!1,d.multicursorText||null,d.mode||null,d.clipboardEvent);return}case"cut":this._cut(e);return}let c=this.getAction(r);if(c){Promise.resolve(c.run(o)).then(void 0,dl);return}if(!this._modelData||this._triggerEditorCommand(e,r,o))return;this._triggerCommand(r,o)}finally{this._endUpdate()}}_triggerCommand(e,r){this._commandService.executeCommand(e,r)}_startComposition(){this._modelData&&(this._modelData.viewModel.startComposition(),this._onDidCompositionStart.fire())}_endComposition(e){this._modelData&&(this._modelData.viewModel.endComposition(e),this._onDidCompositionEnd.fire())}_type(e,r){!this._modelData||r.length===0||(e==="keyboard"&&this._onWillType.fire(r),this._modelData.viewModel.type(r,e),e==="keyboard"&&this._onDidType.fire(r))}_compositionType(e,r,o,c,d){this._modelData&&this._modelData.viewModel.compositionType(r,o,c,d,e)}_paste(e,r,o,c,d,h){if(!this._modelData)return;let b=this._modelData.viewModel,w=b.getSelection().getStartPosition();b.paste(r,o,c,e);let N=b.getSelection().getStartPosition();e==="keyboard"&&this._onDidPaste.fire({clipboardEvent:h,range:new Zt(w.lineNumber,w.column,N.lineNumber,N.column),languageId:d})}_cut(e){this._modelData&&this._modelData.viewModel.cut(e)}_triggerEditorCommand(e,r,o){let c=oSe.getEditorCommand(r);return c?(o=o||{},o.source=e,this._instantiationService.invokeFunction(d=>{Promise.resolve(c.runEditorCommand(d,this,o)).then(void 0,dl)}),!0):!1}_getViewModel(){return this._modelData?this._modelData.viewModel:null}pushUndoStop(){return!this._modelData||this._configuration.options.get(91)?!1:(this._modelData.model.pushStackElement(),!0)}popUndoStop(){return!this._modelData||this._configuration.options.get(91)?!1:(this._modelData.model.popStackElement(),!0)}executeEdits(e,r,o){if(!this._modelData||this._configuration.options.get(91))return!1;let c;return o?Array.isArray(o)?c=()=>o:c=o:c=()=>null,this._modelData.viewModel.executeEdits(e,r,c),!0}executeCommand(e,r){this._modelData&&this._modelData.viewModel.executeCommand(r,e)}executeCommands(e,r){this._modelData&&this._modelData.viewModel.executeCommands(r,e)}createDecorationsCollection(e){return new jni(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,L4e(this._configuration.options)):null}getDecorationsInRange(e){return this._modelData?this._modelData.model.getDecorationsInRange(e,this._id,L4e(this._configuration.options)):null}deltaDecorations(e,r){return this._modelData?e.length===0&&r.length===0?e:this._modelData.model.deltaDecorations(e,r,this._id):[]}removeDecorations(e){!this._modelData||e.length===0||this._modelData.model.changeDecorations(r=>{r.deltaDecorations(e,[])})}removeDecorationsByType(e){let r=this._decorationTypeKeysToIds[e];r&&this.changeDecorations(o=>o.deltaDecorations(r,[])),this._decorationTypeKeysToIds.hasOwnProperty(e)&&delete this._decorationTypeKeysToIds[e],this._decorationTypeSubtypes.hasOwnProperty(e)&&delete this._decorationTypeSubtypes[e]}getLayoutInfo(){return this._configuration.options.get(145)}createOverviewRuler(e){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.createOverviewRuler(e)}getContainerDomNode(){return this._domElement}getDomNode(){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.domNode.domNode}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,r=!1){this._configuration.observeContainer(e),r||this.render()}focus(){!this._modelData||!this._modelData.hasRealView||this._modelData.view.focus()}hasTextFocus(){return!this._modelData||!this._modelData.hasRealView?!1:this._modelData.view.isFocused()}hasWidgetFocus(){return this._focusTracker&&this._focusTracker.hasFocus()}addContentWidget(e){let r={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()]=r,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addContentWidget(r)}layoutContentWidget(e){let r=e.getId();if(this._contentWidgets.hasOwnProperty(r)){let o=this._contentWidgets[r];o.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutContentWidget(o)}}removeContentWidget(e){let r=e.getId();if(this._contentWidgets.hasOwnProperty(r)){let o=this._contentWidgets[r];delete this._contentWidgets[r],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeContentWidget(o)}}addOverlayWidget(e){let r={widget:e,position:e.getPosition()};this._overlayWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting an overlay widget with the same id."),this._overlayWidgets[e.getId()]=r,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addOverlayWidget(r)}layoutOverlayWidget(e){let r=e.getId();if(this._overlayWidgets.hasOwnProperty(r)){let o=this._overlayWidgets[r];o.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutOverlayWidget(o)}}removeOverlayWidget(e){let r=e.getId();if(this._overlayWidgets.hasOwnProperty(r)){let o=this._overlayWidgets[r];delete this._overlayWidgets[r],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeOverlayWidget(o)}}addGlyphMarginWidget(e){let r={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()]=r,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addGlyphMarginWidget(r)}layoutGlyphMarginWidget(e){let r=e.getId();if(this._glyphMarginWidgets.hasOwnProperty(r)){let o=this._glyphMarginWidgets[r];o.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutGlyphMarginWidget(o)}}removeGlyphMarginWidget(e){let r=e.getId();if(this._glyphMarginWidgets.hasOwnProperty(r)){let o=this._glyphMarginWidgets[r];delete this._glyphMarginWidgets[r],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeGlyphMarginWidget(o)}}changeViewZones(e){!this._modelData||!this._modelData.hasRealView||this._modelData.view.change(e)}getTargetAtClientPoint(e,r){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.getTargetAtClientPoint(e,r)}getScrolledVisiblePosition(e){if(!this._modelData||!this._modelData.hasRealView)return null;let r=this._modelData.model.validatePosition(e),o=this._configuration.options,c=o.get(145),d=cLe._getVerticalOffsetForPosition(this._modelData,r.lineNumber,r.column)-this.getScrollTop(),h=this._modelData.view.getOffsetForColumn(r.lineNumber,r.column)+c.glyphMarginWidth+c.lineNumbersWidth+c.decorationsWidth-this.getScrollLeft();return{top:d,left:h,height:o.get(67)}}getOffsetForColumn(e,r){return!this._modelData||!this._modelData.hasRealView?-1:this._modelData.view.getOffsetForColumn(e,r)}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){Bb(e,this._configuration.options.get(50))}setBanner(e,r){this._bannerDomNode&&this._domElement.contains(this._bannerDomNode)&&this._domElement.removeChild(this._bannerDomNode),this._bannerDomNode=e,this._configuration.setReservedHeight(e?r:0),this._bannerDomNode&&this._domElement.prepend(this._bannerDomNode)}_attachModel(e){if(!e){this._modelData=null;return}let r=[];this._domElement.setAttribute("data-mode-id",e.getLanguageId()),this._configuration.setIsDominatedByLongLines(e.isDominatedByLongLines()),this._configuration.setModelLineCount(e.getLineCount());let o=e.onBeforeAttached(),c=new _Lt(this._id,this._configuration,e,K4t.create(Gc(this._domElement)),T6t.create(this._configuration.options),b=>LD(Gc(this._domElement),b),this.languageConfigurationService,this._themeService,o);r.push(e.onWillDispose(()=>this.setModel(null))),r.push(c.onEvent(b=>{switch(b.kind){case 0:this._onDidContentSizeChange.fire(b);break;case 1:this._editorTextFocus.setValue(b.hasFocus);break;case 2:this._onDidScrollChange.fire(b);break;case 3:this._onDidChangeViewZones.fire();break;case 4:this._onDidChangeHiddenAreas.fire();break;case 5:this._onDidAttemptReadOnlyEdit.fire();break;case 6:{if(b.reachedMaxCursorCount){let B=this.getOption(80),F=ce("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.",B);this._notificationService.prompt($Se.Warning,F,[{label:"Find and Replace",run:()=>{this._commandService.executeCommand("editor.action.startFindReplaceAction")}},{label:ce("goToSetting","Increase Multi Cursor Limit"),run:()=>{this._commandService.executeCommand("workbench.action.openSettings2",{query:"editor.multiCursorLimit"})}}])}let w=[];for(let B=0,F=b.selections.length;B{this._paste("keyboard",d,h,b,w)},type:d=>{this._type("keyboard",d)},compositionType:(d,h,b,w)=>{this._compositionType("keyboard",d,h,b,w)},startComposition:()=>{this._startComposition()},endComposition:()=>{this._endComposition("keyboard")},cut:()=>{this._cut("keyboard")}}:r={paste:(d,h,b,w)=>{let N={text:d,pasteOnNewLine:h,multicursorText:b,mode:w};this._commandService.executeCommand("paste",N)},type:d=>{let h={text:d};this._commandService.executeCommand("type",h)},compositionType:(d,h,b,w)=>{if(b||w){let N={text:d,replacePrevCharCnt:h,replaceNextCharCnt:b,positionDelta:w};this._commandService.executeCommand("compositionType",N)}else{let N={text:d,replaceCharCnt:h};this._commandService.executeCommand("replacePreviousChar",N)}},startComposition:()=>{this._commandService.executeCommand("compositionStart",{})},endComposition:()=>{this._commandService.executeCommand("compositionEnd",{})},cut:()=>{this._commandService.executeCommand("cut",{})}};let o=new kHe(e.coordinatesConverter);return o.onKeyDown=d=>this._onKeyDown.fire(d),o.onKeyUp=d=>this._onKeyUp.fire(d),o.onContextMenu=d=>this._onContextMenu.fire(d),o.onMouseMove=d=>this._onMouseMove.fire(d),o.onMouseLeave=d=>this._onMouseLeave.fire(d),o.onMouseDown=d=>this._onMouseDown.fire(d),o.onMouseUp=d=>this._onMouseUp.fire(d),o.onMouseDrag=d=>this._onMouseDrag.fire(d),o.onMouseDrop=d=>this._onMouseDrop.fire(d),o.onMouseDropCanceled=d=>this._onMouseDropCanceled.fire(d),o.onMouseWheel=d=>this._onMouseWheel.fire(d),[new U4t(r,this._configuration,this._themeService.getColorTheme(),e,o,this._overflowWidgetsDomNode,this._instantiationService),!0]}_postDetachModelCleanup(e){e?.removeAllDecorationsWithOwnerId(this._id)}_detachModel(){var e;if((e=this._contributionsDisposable)===null||e===void 0||e.dispose(),this._contributionsDisposable=void 0,!this._modelData)return null;let r=this._modelData.model,o=this._modelData.hasRealView?this._modelData.view.domNode.domNode:null;return this._modelData.dispose(),this._modelData=null,this._domElement.removeAttribute("data-mode-id"),o&&this._domElement.contains(o)&&this._domElement.removeChild(o),this._bannerDomNode&&this._domElement.contains(this._bannerDomNode)&&this._domElement.removeChild(this._bannerDomNode),r}_removeDecorationType(e){this._codeEditorService.removeDecorationType(e)}hasModel(){return this._modelData!==null}showDropIndicatorAt(e){let r=[{range:new Zt(e.lineNumber,e.column,e.lineNumber,e.column),options:cLe.dropIntoEditorDecorationOptions}];this._dropIntoEditorDecorations.set(r),this.revealPosition(e,1)}removeDropIndicator(){this._dropIntoEditorDecorations.clear()}setContextValue(e,r){this._contextKeyService.createKey(e,r)}_beginUpdate(){this._updateCounter++,this._updateCounter===1&&this._onBeginUpdate.fire()}_endUpdate(){this._updateCounter--,this._updateCounter===0&&this._onEndUpdate.fire()}};Hfe.dropIntoEditorDecorationOptions=id.register({description:"workbench-dnd-target",className:"dnd-target"});Hfe=cLe=lji([Vfe(3,Pa),Vfe(4,nf),Vfe(5,Mp),Vfe(6,Ec),Vfe(7,Hg),Vfe(8,og),Vfe(9,ck),Vfe(10,cp),Vfe(11,xa)],Hfe);uji=0,Fni=class{constructor(e,r,o,c,d,h){this.model=e,this.viewModel=r,this.view=o,this.hasRealView=c,this.listenersToRemove=d,this.attachedView=h}dispose(){Fp(this.listenersToRemove),this.model.onBeforeDetached(this.attachedView),this.hasRealView&&this.view.dispose(),this.viewModel.dispose()}},hLt=class extends tn{constructor(e){super(),this._emitterOptions=e,this._onDidChangeToTrue=this._register(new wn(this._emitterOptions)),this.onDidChangeToTrue=this._onDidChangeToTrue.event,this._onDidChangeToFalse=this._register(new wn(this._emitterOptions)),this.onDidChangeToFalse=this._onDidChangeToFalse.event,this._value=0}setValue(e){let r=e?2:1;this._value!==r&&(this._value=r,this._value===2?this._onDidChangeToTrue.fire():this._value===1&&this._onDidChangeToFalse.fire())}},UP=class extends wn{constructor(e,r){super({deliveryQueue:r}),this._contributions=e}fire(e){this._contributions.onBeforeInteractionEvent(),super.fire(e)}},Mni=class extends tn{constructor(e,r){super(),this._editor=e,r.createKey("editorId",e.getId()),this._editorSimpleInput=Qi.editorSimpleInput.bindTo(r),this._editorFocus=Qi.focus.bindTo(r),this._textInputFocus=Qi.textInputFocus.bindTo(r),this._editorTextFocus=Qi.editorTextFocus.bindTo(r),this._tabMovesFocus=Qi.tabMovesFocus.bindTo(r),this._editorReadonly=Qi.readOnly.bindTo(r),this._inDiffEditor=Qi.inDiffEditor.bindTo(r),this._editorColumnSelection=Qi.columnSelection.bindTo(r),this._hasMultipleSelections=Qi.hasMultipleSelections.bindTo(r),this._hasNonEmptySelection=Qi.hasNonEmptySelection.bindTo(r),this._canUndo=Qi.canUndo.bindTo(r),this._canRedo=Qi.canRedo.bindTo(r),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(Tfe.onDidChangeTabFocus(o=>this._tabMovesFocus.set(o))),this._updateFromConfig(),this._updateFromSelection(),this._updateFromFocus(),this._updateFromModel(),this._editorSimpleInput.set(this._editor.isSimpleWidget)}_updateFromConfig(){let e=this._editor.getOptions();this._tabMovesFocus.set(Tfe.getTabFocusMode()),this._editorReadonly.set(e.get(91)),this._inDiffEditor.set(e.get(61)),this._editorColumnSelection.set(e.get(22))}_updateFromSelection(){let e=this._editor.getSelections();e?(this._hasMultipleSelections.set(e.length>1),this._hasNonEmptySelection.set(e.some(r=>!r.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(){let e=this._editor.getModel();this._canUndo.set(!!(e&&e.canUndo())),this._canRedo.set(!!(e&&e.canRedo()))}},Rni=class extends tn{constructor(e,r,o){super(),this._editor=e,this._contextKeyService=r,this._languageFeaturesService=o,this._langId=Qi.languageId.bindTo(r),this._hasCompletionItemProvider=Qi.hasCompletionItemProvider.bindTo(r),this._hasCodeActionsProvider=Qi.hasCodeActionsProvider.bindTo(r),this._hasCodeLensProvider=Qi.hasCodeLensProvider.bindTo(r),this._hasDefinitionProvider=Qi.hasDefinitionProvider.bindTo(r),this._hasDeclarationProvider=Qi.hasDeclarationProvider.bindTo(r),this._hasImplementationProvider=Qi.hasImplementationProvider.bindTo(r),this._hasTypeDefinitionProvider=Qi.hasTypeDefinitionProvider.bindTo(r),this._hasHoverProvider=Qi.hasHoverProvider.bindTo(r),this._hasDocumentHighlightProvider=Qi.hasDocumentHighlightProvider.bindTo(r),this._hasDocumentSymbolProvider=Qi.hasDocumentSymbolProvider.bindTo(r),this._hasReferenceProvider=Qi.hasReferenceProvider.bindTo(r),this._hasRenameProvider=Qi.hasRenameProvider.bindTo(r),this._hasSignatureHelpProvider=Qi.hasSignatureHelpProvider.bindTo(r),this._hasInlayHintsProvider=Qi.hasInlayHintsProvider.bindTo(r),this._hasDocumentFormattingProvider=Qi.hasDocumentFormattingProvider.bindTo(r),this._hasDocumentSelectionFormattingProvider=Qi.hasDocumentSelectionFormattingProvider.bindTo(r),this._hasMultipleDocumentFormattingProvider=Qi.hasMultipleDocumentFormattingProvider.bindTo(r),this._hasMultipleDocumentSelectionFormattingProvider=Qi.hasMultipleDocumentSelectionFormattingProvider.bindTo(r),this._isInEmbeddedEditor=Qi.isInEmbeddedEditor.bindTo(r);let c=()=>this._update();this._register(e.onDidChangeModel(c)),this._register(e.onDidChangeModelLanguage(c)),this._register(o.completionProvider.onDidChange(c)),this._register(o.codeActionProvider.onDidChange(c)),this._register(o.codeLensProvider.onDidChange(c)),this._register(o.definitionProvider.onDidChange(c)),this._register(o.declarationProvider.onDidChange(c)),this._register(o.implementationProvider.onDidChange(c)),this._register(o.typeDefinitionProvider.onDidChange(c)),this._register(o.hoverProvider.onDidChange(c)),this._register(o.documentHighlightProvider.onDidChange(c)),this._register(o.documentSymbolProvider.onDidChange(c)),this._register(o.referenceProvider.onDidChange(c)),this._register(o.renameProvider.onDidChange(c)),this._register(o.documentFormattingEditProvider.onDidChange(c)),this._register(o.documentRangeFormattingEditProvider.onDidChange(c)),this._register(o.signatureHelpProvider.onDidChange(c)),this._register(o.inlayHintsProvider.onDidChange(c)),c()}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(){let e=this._editor.getModel();if(!e){this.reset();return}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===Vu.walkThroughSnippet||e.uri.scheme===Vu.vscodeChatCodeBlock)})}},Bni=class extends tn{constructor(e,r){super(),this._onChange=this._register(new wn),this.onChange=this._onChange.event,this._hadFocus=void 0,this._hasDomElementFocus=!1,this._domFocusTracker=this._register(BP(e)),this._overflowWidgetsDomNodeHasFocus=!1,this._register(this._domFocusTracker.onDidFocus(()=>{this._hasDomElementFocus=!0,this._update()})),this._register(this._domFocusTracker.onDidBlur(()=>{this._hasDomElementFocus=!1,this._update()})),r&&(this._overflowWidgetsDomNode=this._register(BP(r)),this._register(this._overflowWidgetsDomNode.onDidFocus(()=>{this._overflowWidgetsDomNodeHasFocus=!0,this._update()})),this._register(this._overflowWidgetsDomNode.onDidBlur(()=>{this._overflowWidgetsDomNodeHasFocus=!1,this._update()})))}_update(){let e=this._hasDomElementFocus||this._overflowWidgetsDomNodeHasFocus;this._hadFocus!==e&&(this._hadFocus=e,this._onChange.fire(void 0))}hasFocus(){var e;return(e=this._hadFocus)!==null&&e!==void 0?e:!1}},jni=class{get length(){return this._decorationIds.length}constructor(e,r){this._editor=e,this._decorationIds=[],this._isChangingDecorations=!1,Array.isArray(r)&&r.length>0&&this.set(r)}onDidChange(e,r,o){return this._editor.onDidChangeModelDecorations(c=>{this._isChangingDecorations||e.call(r,c)},o)}getRange(e){return!this._editor.hasModel()||e>=this._decorationIds.length?null:this._editor.getModel().getDecorationRange(this._decorationIds[e])}getRanges(){if(!this._editor.hasModel())return[];let e=this._editor.getModel(),r=[];for(let o of this._decorationIds){let c=e.getDecorationRange(o);c&&r.push(c)}return r}has(e){return this._decorationIds.includes(e.id)}clear(){this._decorationIds.length!==0&&this.set([])}set(e){try{this._isChangingDecorations=!0,this._editor.changeDecorations(r=>{this._decorationIds=r.deltaDecorations(this._decorationIds,e)})}finally{this._isChangingDecorations=!1}return this._decorationIds}append(e){let r=[];try{this._isChangingDecorations=!0,this._editor.changeDecorations(o=>{r=o.deltaDecorations([],e),this._decorationIds=this._decorationIds.concat(r)})}finally{this._isChangingDecorations=!1}return r}},dji=encodeURIComponent("");_ji=encodeURIComponent('');AT((l,e)=>{let r=l.getColor(wV);r&&e.addRule(`.monaco-editor .squiggly-error { background: url("data:image/svg+xml,${Oni(r)}") repeat-x bottom left; }`);let o=l.getColor(RD);o&&e.addRule(`.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,${Oni(o)}") repeat-x bottom left; }`);let c=l.getColor(VI);c&&e.addRule(`.monaco-editor .squiggly-info { background: url("data:image/svg+xml,${Oni(c)}") repeat-x bottom left; }`);let d=l.getColor(l1i);d&&e.addRule(`.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,${mji(d)}") no-repeat bottom left; }`);let h=l.getColor(_Si);h&&e.addRule(`.monaco-editor.showUnused .squiggly-inline-unnecessary { opacity: ${h.rgba.a}; }`)})});var hji,gji,gLt,aki=ti(()=>{xc();co();mB();x0();hji=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},gji=function(l,e){return function(r,o){e(r,o,l)}},gLt=class extends tn{constructor(e){super(),this._themeService=e,this._onWillCreateCodeEditor=this._register(new wn),this._onCodeEditorAdd=this._register(new wn),this.onCodeEditorAdd=this._onCodeEditorAdd.event,this._onCodeEditorRemove=this._register(new wn),this.onCodeEditorRemove=this._onCodeEditorRemove.event,this._onWillCreateDiffEditor=this._register(new wn),this._onDiffEditorAdd=this._register(new wn),this.onDiffEditorAdd=this._onDiffEditorAdd.event,this._onDiffEditorRemove=this._register(new wn),this.onDiffEditorRemove=this._onDiffEditorRemove.event,this._decorationOptionProviders=new Map,this._codeEditorOpenHandlers=new QS,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,r=this.listCodeEditors();for(let o of r){if(o.hasTextFocus())return o;o.hasWidgetFocus()&&(e=o)}return e}removeDecorationType(e){let r=this._decorationOptionProviders.get(e);r&&(r.refCount--,r.refCount<=0&&(this._decorationOptionProviders.delete(e),r.dispose(),this.listCodeEditors().forEach(o=>o.removeDecorationsByType(e))))}setModelProperty(e,r,o){let c=e.toString(),d;this._modelProperties.has(c)?d=this._modelProperties.get(c):(d=new Map,this._modelProperties.set(c,d)),d.set(r,o)}getModelProperty(e,r){let o=e.toString();if(this._modelProperties.has(o))return this._modelProperties.get(o).get(r)}async openCodeEditor(e,r,o){for(let c of this._codeEditorOpenHandlers){let d=await c(e,r,o);if(d!==null)return d}return null}registerCodeEditorOpenHandler(e){let r=this._codeEditorOpenHandlers.unshift(e);return Ma(r)}};gLt=hji([gji(0,Hg)],gLt)});var yji,cki,Tft,Wni=ti(()=>{nc();RP();aki();IC();hd();_A();x0();yji=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},cki=function(l,e){return function(r,o){e(r,o,l)}},Tft=class extends gLt{constructor(e,r){super(r),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(o,c,d)=>c?this.doOpenEditor(c,o):null))}_checkContextKey(){let e=!1;for(let r of this.listCodeEditors())if(!r.isSimpleWidget){e=!0;break}this._editorIsOpen.set(e)}setActiveCodeEditor(e){this._activeCodeEditor=e}getActiveCodeEditor(){return this._activeCodeEditor}doOpenEditor(e,r){if(!this.findModel(e,r.resource)){if(r.resource){let d=r.resource.scheme;if(d===Vu.http||d===Vu.https)return lNt(r.resource.toString()),e}return null}let c=r.options?r.options.selection:null;if(c)if(typeof c.endLineNumber=="number"&&typeof c.endColumn=="number")e.setSelection(c),e.revealRangeInCenter(c,1);else{let d={lineNumber:c.startLineNumber,column:c.startColumn};e.setPosition(d),e.revealPositionInCenter(d,1)}return e}findModel(e,r){let o=e.getModel();return o&&o.uri.toString()!==r.toString()?null:o}};Tft=yji([cki(0,Ec),cki(1,Hg)],Tft);e_(nf,Tft,0)});var d7,Ufe=ti(()=>{bl();d7=Ml("layoutService")});var lki,uki,yLt,vLt,zni=ti(()=>{nc();S6();sd();xc();IC();_A();Ufe();lki=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},uki=function(l,e){return function(r,o){e(r,o,l)}},yLt=class{get mainContainer(){var e,r;return(r=(e=Bze(this._codeEditorService.listCodeEditors()))===null||e===void 0?void 0:e.getContainerDomNode())!==null&&r!==void 0?r:em.document.body}get activeContainer(){var e,r;let o=(e=this._codeEditorService.getFocusedCodeEditor())!==null&&e!==void 0?e:this._codeEditorService.getActiveCodeEditor();return(r=o?.getContainerDomNode())!==null&&r!==void 0?r:this.mainContainer}get mainContainerDimension(){return t7(this.mainContainer)}get activeContainerDimension(){return t7(this.activeContainer)}get containers(){return oA(this._codeEditorService.listCodeEditors().map(e=>e.getContainerDomNode()))}getContainer(){return this.activeContainer}whenContainerStylesLoaded(){}focus(){var e;(e=this._codeEditorService.getFocusedCodeEditor())===null||e===void 0||e.focus()}constructor(e){this._codeEditorService=e,this.onDidLayoutMainContainer=gs.None,this.onDidLayoutActiveContainer=gs.None,this.onDidLayoutContainer=gs.None,this.onDidChangeActiveContainer=gs.None,this.onDidAddContainer=gs.None,this.mainContainerOffset={top:0,quickPickTop:0},this.activeContainerOffset={top:0,quickPickTop:0}}};yLt=lki([uki(0,nf)],yLt);vLt=class extends yLt{get mainContainer(){return this._container}constructor(e,r){super(r),this._container=e}};vLt=lki([uki(1,nf)],vLt);e_(d7,yLt,1)});var vre,YHe=ti(()=>{bl();vre=Ml("dialogService")});function bLt(l){return l.scheme===Vu.file?l.fsPath:l.path}var vji,dki,QHe,fki,ZHe,SLt,xLt,Vni,CLt,Eft,_ki,Hni,eUe,pki=ti(()=>{Du();co();RP();zfe();ya();YHe();_A();xA();mft();vji=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},dki=function(l,e){return function(r,o){e(r,o,l)}},QHe=!1;fki=0,ZHe=class{constructor(e,r,o,c,d,h,b){this.id=++fki,this.type=0,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabel=r,this.strResource=o,this.resourceLabels=[this.resourceLabel],this.strResources=[this.strResource],this.groupId=c,this.groupOrder=d,this.sourceId=h,this.sourceOrder=b,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}`}},SLt=class{constructor(e,r){this.resourceLabel=e,this.reason=r}},xLt=class{constructor(){this.elements=new Map}createMessage(){let e=[],r=[];for(let[,c]of this.elements)(c.reason===0?e:r).push(c.resourceLabel);let o=[];return e.length>0&&o.push(ce({key:"externalRemoval",comment:["{0} is a list of filenames"]},"The following files have been closed and modified on disk: {0}.",e.join(", "))),r.length>0&&o.push(ce({key:"noParallelUniverses",comment:["{0} is a list of filenames"]},"The following files have been modified in an incompatible way: {0}.",r.join(", "))),o.join(` +`)}get size(){return this.elements.size}has(e){return this.elements.has(e)}set(e,r){this.elements.set(e,r)}delete(e){return this.elements.delete(e)}},Vni=class{constructor(e,r,o,c,d,h,b){this.id=++fki,this.type=1,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabels=r,this.strResources=o,this.groupId=c,this.groupOrder=d,this.sourceId=h,this.sourceOrder=b,this.removedResources=null,this.invalidatedResources=null}canSplit(){return typeof this.actual.split=="function"}removeResource(e,r,o){this.removedResources||(this.removedResources=new xLt),this.removedResources.has(r)||this.removedResources.set(r,new SLt(e,o))}setValid(e,r,o){o?this.invalidatedResources&&(this.invalidatedResources.delete(r),this.invalidatedResources.size===0&&(this.invalidatedResources=null)):(this.invalidatedResources||(this.invalidatedResources=new xLt),this.invalidatedResources.has(r)||this.invalidatedResources.set(r,new SLt(e,0)))}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.invalidatedResources?"INVALID":" VALID"}] ${this.actual.constructor.name} - ${this.actual}`}},CLt=class{constructor(e,r){this.resourceLabel=e,this.strResource=r,this._past=[],this._future=[],this.locked=!1,this.versionId=1}dispose(){for(let e of this._past)e.type===1&&e.removeResource(this.resourceLabel,this.strResource,0);for(let e of this._future)e.type===1&&e.removeResource(this.resourceLabel,this.strResource,0);this.versionId++}toString(){let e=[];e.push(`* ${this.strResource}:`);for(let r=0;r=0;r--)e.push(` * [REDO] ${this._future[r]}`);return e.join(` +`)}flushAllElements(){this._past=[],this._future=[],this.versionId++}_setElementValidFlag(e,r){e.type===1?e.setValid(this.resourceLabel,this.strResource,r):e.setValid(r)}setElementsValidFlag(e,r){for(let o of this._past)r(o.actual)&&this._setElementValidFlag(o,e);for(let o of this._future)r(o.actual)&&this._setElementValidFlag(o,e)}pushElement(e){for(let r of this._future)r.type===1&&r.removeResource(this.resourceLabel,this.strResource,1);this._future=[],this._past.push(e),this.versionId++}createSnapshot(e){let r=[];for(let o=0,c=this._past.length;o=0;o--)r.push(this._future[o].id);return new pft(e,r)}restoreSnapshot(e){let r=e.elements.length,o=!0,c=0,d=-1;for(let b=0,w=this._past.length;b=r||N.id!==e.elements[c])&&(o=!1,d=0),!o&&N.type===1&&N.removeResource(this.resourceLabel,this.strResource,0)}let h=-1;for(let b=this._future.length-1;b>=0;b--,c++){let w=this._future[b];o&&(c>=r||w.id!==e.elements[c])&&(o=!1,h=b),!o&&w.type===1&&w.removeResource(this.resourceLabel,this.strResource,0)}d!==-1&&(this._past=this._past.slice(0,d)),h!==-1&&(this._future=this._future.slice(h+1)),this.versionId++}getElements(){let e=[],r=[];for(let o of this._past)e.push(o.actual);for(let o of this._future)r.push(o.actual);return{past:e,future:r}}getClosestPastElement(){return this._past.length===0?null:this._past[this._past.length-1]}getSecondClosestPastElement(){return this._past.length<2?null:this._past[this._past.length-2]}getClosestFutureElement(){return this._future.length===0?null:this._future[this._future.length-1]}hasPastElements(){return this._past.length>0}hasFutureElements(){return this._future.length>0}splitPastWorkspaceElement(e,r){for(let o=this._past.length-1;o>=0;o--)if(this._past[o]===e){r.has(this.strResource)?this._past[o]=r.get(this.strResource):this._past.splice(o,1);break}this.versionId++}splitFutureWorkspaceElement(e,r){for(let o=this._future.length-1;o>=0;o--)if(this._future[o]===e){r.has(this.strResource)?this._future[o]=r.get(this.strResource):this._future.splice(o,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++}},Eft=class{constructor(e){this.editStacks=e,this._versionIds=[];for(let r=0,o=this.editStacks.length;rr.sourceOrder)&&(r=h,o=c)}return[r,o]}canUndo(e){if(e instanceof fQ){let[,o]=this._findClosestUndoElementWithSource(e.id);return!!o}let r=this.getUriComparisonKey(e);return this._editStacks.has(r)?this._editStacks.get(r).hasPastElements():!1}_onError(e,r){dl(e);for(let o of r.strResources)this.removeElements(o);this._notificationService.error(e)}_acquireLocks(e){for(let r of e.editStacks)if(r.locked)throw new Error("Cannot acquire edit stack lock");for(let r of e.editStacks)r.locked=!0;return()=>{for(let r of e.editStacks)r.locked=!1}}_safeInvokeWithLocks(e,r,o,c,d){let h=this._acquireLocks(o),b;try{b=r()}catch(w){return h(),c.dispose(),this._onError(w,e)}return b?b.then(()=>(h(),c.dispose(),d()),w=>(h(),c.dispose(),this._onError(w,e))):(h(),c.dispose(),d())}async _invokeWorkspacePrepare(e){if(typeof e.actual.prepareUndoRedo>"u")return tn.None;let r=e.actual.prepareUndoRedo();return typeof r>"u"?tn.None:r}_invokeResourcePrepare(e,r){if(e.actual.type!==1||typeof e.actual.prepareUndoRedo>"u")return r(tn.None);let o=e.actual.prepareUndoRedo();return o?zbe(o)?r(o):o.then(c=>r(c)):r(tn.None)}_getAffectedEditStacks(e){let r=[];for(let o of e.strResources)r.push(this._editStacks.get(o)||_ki);return new Eft(r)}_tryToSplitAndUndo(e,r,o,c){if(r.canSplit())return this._splitPastWorkspaceElement(r,o),this._notificationService.warn(c),new eUe(this._undo(e,0,!0));for(let d of r.strResources)this.removeElements(d);return this._notificationService.warn(c),new eUe}_checkWorkspaceUndo(e,r,o,c){if(r.removedResources)return this._tryToSplitAndUndo(e,r,r.removedResources,ce({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",r.label,r.removedResources.createMessage()));if(c&&r.invalidatedResources)return this._tryToSplitAndUndo(e,r,r.invalidatedResources,ce({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",r.label,r.invalidatedResources.createMessage()));let d=[];for(let b of o.editStacks)b.getClosestPastElement()!==r&&d.push(b.resourceLabel);if(d.length>0)return this._tryToSplitAndUndo(e,r,null,ce({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}",r.label,d.join(", ")));let h=[];for(let b of o.editStacks)b.locked&&h.push(b.resourceLabel);return h.length>0?this._tryToSplitAndUndo(e,r,null,ce({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}",r.label,h.join(", "))):o.isValid()?null:this._tryToSplitAndUndo(e,r,null,ce({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",r.label))}_workspaceUndo(e,r,o){let c=this._getAffectedEditStacks(r),d=this._checkWorkspaceUndo(e,r,c,!1);return d?d.returnValue:this._confirmAndExecuteWorkspaceUndo(e,r,c,o)}_isPartOfUndoGroup(e){if(!e.groupId)return!1;for(let[,r]of this._editStacks){let o=r.getClosestPastElement();if(o){if(o===e){let c=r.getSecondClosestPastElement();if(c&&c.groupId===e.groupId)return!0}if(o.groupId===e.groupId)return!0}}return!1}async _confirmAndExecuteWorkspaceUndo(e,r,o,c){if(r.canSplit()&&!this._isPartOfUndoGroup(r)){let b;(function(L){L[L.All=0]="All",L[L.This=1]="This",L[L.Cancel=2]="Cancel"})(b||(b={}));let{result:w}=await this._dialogService.prompt({type:_1.Info,message:ce("confirmWorkspace","Would you like to undo '{0}' across all files?",r.label),buttons:[{label:ce({key:"ok",comment:["{0} denotes a number that is > 1, && denotes a mnemonic"]},"&&Undo in {0} Files",o.editStacks.length),run:()=>b.All},{label:ce({key:"nok",comment:["&& denotes a mnemonic"]},"Undo this &&File"),run:()=>b.This}],cancelButton:{run:()=>b.Cancel}});if(w===b.Cancel)return;if(w===b.This)return this._splitPastWorkspaceElement(r,null),this._undo(e,0,!0);let N=this._checkWorkspaceUndo(e,r,o,!1);if(N)return N.returnValue;c=!0}let d;try{d=await this._invokeWorkspacePrepare(r)}catch(b){return this._onError(b,r)}let h=this._checkWorkspaceUndo(e,r,o,!0);if(h)return d.dispose(),h.returnValue;for(let b of o.editStacks)b.moveBackward(r);return this._safeInvokeWithLocks(r,()=>r.actual.undo(),o,d,()=>this._continueUndoInGroup(r.groupId,c))}_resourceUndo(e,r,o){if(!r.isValid){e.flushAllElements();return}if(e.locked){let c=ce({key:"cannotResourceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not undo '{0}' because there is already an undo or redo operation running.",r.label);this._notificationService.warn(c);return}return this._invokeResourcePrepare(r,c=>(e.moveBackward(r),this._safeInvokeWithLocks(r,()=>r.actual.undo(),new Eft([e]),c,()=>this._continueUndoInGroup(r.groupId,o))))}_findClosestUndoElementInGroup(e){if(!e)return[null,null];let r=null,o=null;for(let[c,d]of this._editStacks){let h=d.getClosestPastElement();h&&h.groupId===e&&(!r||h.groupOrder>r.groupOrder)&&(r=h,o=c)}return[r,o]}_continueUndoInGroup(e,r){if(!e)return;let[,o]=this._findClosestUndoElementInGroup(e);if(o)return this._undo(o,0,r)}undo(e){if(e instanceof fQ){let[,r]=this._findClosestUndoElementWithSource(e.id);return r?this._undo(r,e.id,!1):void 0}return typeof e=="string"?this._undo(e,0,!1):this._undo(this.getUriComparisonKey(e),0,!1)}_undo(e,r=0,o){if(!this._editStacks.has(e))return;let c=this._editStacks.get(e),d=c.getClosestPastElement();if(!d)return;if(d.groupId){let[b,w]=this._findClosestUndoElementInGroup(d.groupId);if(d!==b&&w)return this._undo(w,r,o)}if((d.sourceId!==r||d.confirmBeforeUndo)&&!o)return this._confirmAndContinueUndo(e,r,d);try{return d.type===1?this._workspaceUndo(e,d,o):this._resourceUndo(c,d,o)}finally{QHe&&this._print("undo")}}async _confirmAndContinueUndo(e,r,o){if((await this._dialogService.confirm({message:ce("confirmDifferentSource","Would you like to undo '{0}'?",o.label),primaryButton:ce({key:"confirmDifferentSource.yes",comment:["&& denotes a mnemonic"]},"&&Yes"),cancelButton:ce("confirmDifferentSource.no","No")})).confirmed)return this._undo(e,r,!0)}_findClosestRedoElementWithSource(e){if(!e)return[null,null];let r=null,o=null;for(let[c,d]of this._editStacks){let h=d.getClosestFutureElement();h&&h.sourceId===e&&(!r||h.sourceOrder0)return this._tryToSplitAndRedo(e,r,null,ce({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}",r.label,d.join(", ")));let h=[];for(let b of o.editStacks)b.locked&&h.push(b.resourceLabel);return h.length>0?this._tryToSplitAndRedo(e,r,null,ce({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}",r.label,h.join(", "))):o.isValid()?null:this._tryToSplitAndRedo(e,r,null,ce({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",r.label))}_workspaceRedo(e,r){let o=this._getAffectedEditStacks(r),c=this._checkWorkspaceRedo(e,r,o,!1);return c?c.returnValue:this._executeWorkspaceRedo(e,r,o)}async _executeWorkspaceRedo(e,r,o){let c;try{c=await this._invokeWorkspacePrepare(r)}catch(h){return this._onError(h,r)}let d=this._checkWorkspaceRedo(e,r,o,!0);if(d)return c.dispose(),d.returnValue;for(let h of o.editStacks)h.moveForward(r);return this._safeInvokeWithLocks(r,()=>r.actual.redo(),o,c,()=>this._continueRedoInGroup(r.groupId))}_resourceRedo(e,r){if(!r.isValid){e.flushAllElements();return}if(e.locked){let o=ce({key:"cannotResourceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not redo '{0}' because there is already an undo or redo operation running.",r.label);this._notificationService.warn(o);return}return this._invokeResourcePrepare(r,o=>(e.moveForward(r),this._safeInvokeWithLocks(r,()=>r.actual.redo(),new Eft([e]),o,()=>this._continueRedoInGroup(r.groupId))))}_findClosestRedoElementInGroup(e){if(!e)return[null,null];let r=null,o=null;for(let[c,d]of this._editStacks){let h=d.getClosestFutureElement();h&&h.groupId===e&&(!r||h.groupOrder{Dft=class{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}},kLt=class{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){let r=this._values[this._index];return this._values[this._index]=e,this._index=(this._index+1)%this._values.length,this._sum-=r,this._sum+=e,this._n{bl();tUe=Ml("environmentService")});var bji,mki,wE,TLt,Uni,Jni,qni,FV=ti(()=>{Zbe();pA();lLe();wLt();_A();bl();UO();RP();bji=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},mki=function(l,e){return function(r,o){e(r,o,l)}},wE=Ml("ILanguageFeatureDebounceService");(function(l){let e=new WeakMap,r=0;function o(c){let d=e.get(c);return d===void 0&&(d=++r,e.set(c,d)),d}l.of=o})(TLt||(TLt={}));Uni=class{constructor(e){this._default=e}get(e){return this._default}update(e,r){return this._default}default(){return this._default}},Jni=class{constructor(e,r,o,c,d,h){this._logService=e,this._name=r,this._registry=o,this._default=c,this._min=d,this._max=h,this._cache=new WI(50,.7)}_key(e){return e.id+this._registry.all(e).reduce((r,o)=>kut(TLt.of(o),r),0)}get(e){let r=this._key(e),o=this._cache.get(r);return o?WD(o.value,this._min,this._max):this.default()}update(e,r){let o=this._key(e),c=this._cache.get(o);c||(c=new kLt(6),this._cache.set(o,c));let d=WD(c.update(r),this._min,this._max);return but(e.uri,"output")||this._logService.trace(`[DEBOUNCE: ${this._name}] for ${e.uri.toString()} is ${d}ms`),d}_overall(){let e=new Dft;for(let[,r]of this._cache)e.update(r.value);return e.value}default(){let e=this._overall()|0||this._default;return WD(e,this._min,this._max)}},qni=class{constructor(e,r){this._logService=e,this._data=new Map,this._isDev=r.isExtensionDevelopment||!r.isBuilt}for(e,r,o){var c,d,h;let b=(c=o?.min)!==null&&c!==void 0?c:50,w=(d=o?.max)!==null&&d!==void 0?d:b**2,N=(h=o?.key)!==null&&h!==void 0?h:void 0,L=`${TLt.of(e)},${b}${N?","+N:""}`,B=this._data.get(L);return B||(this._isDev?(this._logService.debug(`[DEBOUNCE: ${r}] is disabled in developed mode`),B=new Uni(b*1.5)):B=new Jni(this._logService,r,e,this._overallAverage()|0||b*1.5,b,w),this._data.set(L,B)),B}_overallAverage(){let e=new Dft;for(let r of this._data.values())e.update(r.default());return e.value}};qni=bji([mki(0,jb),mki(1,tUe)],qni);e_(wE,qni,1)});var ELt,$ni,DLt,hki=ti(()=>{Iu();Xa();Q6e();ELt=class l{static create(e,r){return new l(e,new $ni(r))}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._endLineNumber}constructor(e,r){this._startLineNumber=e,this._tokens=r,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(){let e=this._tokens.getRange();return e&&new Zt(this._startLineNumber+e.startLineNumber,e.startColumn,this._startLineNumber+e.endLineNumber,e.endColumn)}removeTokens(e){let r=e.startLineNumber-this._startLineNumber,o=e.endLineNumber-this._startLineNumber;this._startLineNumber+=this._tokens.removeTokens(r,e.startColumn-1,o,e.endColumn-1),this._updateEndLineNumber()}split(e){let r=e.startLineNumber-this._startLineNumber,o=e.endLineNumber-this._startLineNumber,[c,d,h]=this._tokens.split(r,e.startColumn-1,o,e.endColumn-1);return[new l(this._startLineNumber,c),new l(this._startLineNumber+h,d)]}applyEdit(e,r){let[o,c,d]=DB(r);this.acceptEdit(e,o,c,d,r.length>0?r.charCodeAt(0):0)}acceptEdit(e,r,o,c,d){this._acceptDeleteRange(e),this._acceptInsertText(new qn(e.startLineNumber,e.startColumn),r,o,c,d),this._updateEndLineNumber()}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return;let r=e.startLineNumber-this._startLineNumber,o=e.endLineNumber-this._startLineNumber;if(o<0){let d=o-r;this._startLineNumber-=d;return}let c=this._tokens.getMaxDeltaLine();if(!(r>=c+1)){if(r<0&&o>=c+1){this._startLineNumber=0,this._tokens.clear();return}if(r<0){let d=-r;this._startLineNumber-=d,this._tokens.acceptDeleteRange(e.startColumn-1,0,0,o,e.endColumn-1)}else this._tokens.acceptDeleteRange(0,r,e.startColumn-1,o,e.endColumn-1)}}_acceptInsertText(e,r,o,c,d){if(r===0&&o===0)return;let h=e.lineNumber-this._startLineNumber;if(h<0){this._startLineNumber+=r;return}let b=this._tokens.getMaxDeltaLine();h>=b+1||this._tokens.acceptInsertText(h,e.column-1,r,o,c,d)}},$ni=class l{constructor(e){this._tokens=e,this._tokenCount=e.length/4}toString(e){let r=[];for(let o=0;oe)o=c-1;else{let h=c;for(;h>r&&this._getDeltaLine(h-1)===e;)h--;let b=c;for(;be||F===e&&Z>=r)&&(Fe||Z===e&&Te>=r){if(Zd?ee-=d-o:ee=o;else if(Y===r&&Z===o)if(Y===c&&ee>d)ee-=d-o;else{L=!0;continue}else if(Yd)Y=r,Z=o,ee=Z+(ee-d);else{L=!0;continue}else if(Y>c){if(w===0&&!L){N=b;break}Y-=w}else if(Y===c&&Z>=d)e&&Y===0&&(Z+=e,ee+=e),Y-=w,Z-=d-o,ee-=d-o;else throw new Error("Not possible!");let Je=4*N;h[Je]=Y,h[Je+1]=Z,h[Je+2]=ee,h[Je+3]=Te,N++}this._tokenCount=N}acceptInsertText(e,r,o,c,d,h){let b=o===0&&c===1&&(h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122),w=this._tokens,N=this._tokenCount;for(let L=0;LL&&o[5*Xe]===0;)Xe--;if(Xe-1===L){let ct=B;for(;ct+1Yt)e.warnOverlappingSemanticTokens(Nt,Yt+1);else{let dr=e.getMetadata(_n,Pr,r);dr!==2147483647&&(Z===0&&(Z=Nt),F[Y]=Nt-Z,F[Y+1]=Yt,F[Y+2]=mi,F[Y+3]=dr,Y+=4,ee=Nt,Te=mi)}w=Nt,N=Yt,b++}Y!==F.length&&(F=F.subarray(0,Y));let Je=ELt.create(Z,F);h.push(Je)}return h}var Sji,Gni,ILt,Kni,NLt,PLt=ti(()=>{_6e();x0();UO();hki();FD();Sji=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},Gni=function(l,e){return function(r,o){e(r,o,l)}},ILt=class{constructor(e,r,o,c){this._legend=e,this._themeService=r,this._languageService=o,this._logService=c,this._hasWarnedOverlappingTokens=!1,this._hasWarnedInvalidLengthTokens=!1,this._hasWarnedInvalidEditStart=!1,this._hashTable=new NLt}getMetadata(e,r,o){let c=this._languageService.languageIdCodec.encodeLanguageId(o),d=this._hashTable.get(e,r,c),h;if(d)h=d.metadata,this._logService.getLevel()===fA.Trace&&this._logService.trace(`SemanticTokensProviderStyling [CACHED] ${e} / ${r}: foreground ${Qk.getForeground(h)}, fontStyle ${Qk.getFontStyle(h).toString(2)}`);else{let b=this._legend.tokenTypes[e],w=[];if(b){let N=r;for(let B=0;N>0&&B>1;N>0&&this._logService.getLevel()===fA.Trace&&(this._logService.trace(`SemanticTokensProviderStyling: unknown token modifier index: ${r.toString(2)} for legend: ${JSON.stringify(this._legend.tokenModifiers)}`),w.push("not-in-legend"));let L=this._themeService.getColorTheme().getTokenStyleMetadata(b,w,o);if(typeof L>"u")h=2147483647;else{if(h=0,typeof L.italic<"u"){let B=(L.italic?1:0)<<11;h|=B|1}if(typeof L.bold<"u"){let B=(L.bold?2:0)<<11;h|=B|2}if(typeof L.underline<"u"){let B=(L.underline?4:0)<<11;h|=B|4}if(typeof L.strikethrough<"u"){let B=(L.strikethrough?8:0)<<11;h|=B|8}if(L.foreground){let B=L.foreground<<15;h|=B|16}h===0&&(h=2147483647)}}else this._logService.getLevel()===fA.Trace&&this._logService.trace(`SemanticTokensProviderStyling: unknown token type index: ${e} for legend: ${JSON.stringify(this._legend.tokenTypes)}`),h=2147483647,b="not-in-legend";this._hashTable.add(e,r,c,h),this._logService.getLevel()===fA.Trace&&this._logService.trace(`SemanticTokensProviderStyling ${e} (${b}) / ${r} (${w.join(" ")}): foreground ${Qk.getForeground(h)}, fontStyle ${Qk.getFontStyle(h).toString(2)}`)}return h}warnOverlappingSemanticTokens(e,r){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0,this._logService.warn(`Overlapping semantic tokens detected at lineNumber ${e}, column ${r}`))}warnInvalidLengthSemanticTokens(e,r){this._hasWarnedInvalidLengthTokens||(this._hasWarnedInvalidLengthTokens=!0,this._logService.warn(`Semantic token with invalid length detected at lineNumber ${e}, column ${r}`))}warnInvalidEditStart(e,r,o,c,d){this._hasWarnedInvalidEditStart||(this._hasWarnedInvalidEditStart=!0,this._logService.warn(`Invalid semantic tokens edit detected (previousResultId: ${e}, resultId: ${r}) at edit #${o}: The provided start offset ${c} is outside the previous data (length ${d}).`))}};ILt=Sji([Gni(1,Hg),Gni(2,km),Gni(3,jb)],ILt);Kni=class{constructor(e,r,o,c){this.tokenTypeIndex=e,this.tokenModifierSet=r,this.languageId=o,this.metadata=c,this.next=null}},NLt=class l{constructor(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=l._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1=this._growCount){let d=this._elements;this._currentLengthIndex++,this._currentLength=l._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1{bl();uLe=Ml("semanticTokensStylingService")});var xji,Xni,Yni,gki=ti(()=>{co();FD();x0();UO();PLt();LLt();_A();xji=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},Xni=function(l,e){return function(r,o){e(r,o,l)}},Yni=class extends tn{constructor(e,r,o){super(),this._themeService=e,this._logService=r,this._languageService=o,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 ILt(e.getLegend(),this._themeService,this._languageService,this._logService)),this._caches.get(e)}};Yni=xji([Xni(0,Hg),Xni(1,jb),Xni(2,km)],Yni);e_(uLe,Yni,1)});function vki(l,e){switch(l){case 0:return"";case 1:return`${MLt}*?`;default:return`(?:${FLt}|${MLt}+${FLt}${e?`|${FLt}${MLt}+`:""})*?`}}function bki(l,e){if(!l)return[];let r=[],o=!1,c=!1,d="";for(let h of l){switch(h){case e:if(!o&&!c){r.push(d),d="";continue}break;case"{":o=!0;break;case"}":o=!1;break;case"[":c=!0;break;case"]":c=!1;break}d+=h}return d&&r.push(d),r}function wki(l){if(!l)return"";let e="",r=bki(l,yki);if(r.every(o=>o===OLt))e=".*";else{let o=!1;r.forEach((c,d)=>{if(c===OLt){if(o)return;e+=vki(2,d===r.length-1)}else{let h=!1,b="",w=!1,N="";for(let L of c){if(L!=="}"&&h){b+=L;continue}if(w&&(L!=="]"||!N)){let B;L==="-"?B=L:(L==="^"||L==="!")&&!N?B="^":L===yki?B="":B=yE(L),N+=B;continue}switch(L){case"{":h=!0;continue;case"[":w=!0;continue;case"}":{let F=`(?:${bki(b,",").map(Y=>wki(Y)).join("|")})`;e+=F,h=!1,b="";break}case"]":{e+="["+N+"]",w=!1,N="";break}case"?":e+=MLt;continue;case"*":e+=vki(1);continue;default:e+=yE(L)}}dZni(b,e)).filter(b=>b!==bre),l),o=r.length;if(!o)return bre;if(o===1)return r[0];let c=function(b,w){for(let N=0,L=r.length;N!!b.allBasenames);d&&(c.allBasenames=d.allBasenames);let h=r.reduce((b,w)=>w.allPaths?b.concat(w.allPaths):b,[]);return h.length&&(c.allPaths=h),c}function kki(l,e,r){let o=kR===ex.sep,c=o?l:l.replace(Cji,kR),d=kR+c,h=ex.sep+l,b;return r?b=function(w,N){return typeof w=="string"&&(w===c||w.endsWith(d)||!o&&(w===l||w.endsWith(h)))?e:null}:b=function(w,N){return typeof w=="string"&&(w===c||!o&&w===l)?e:null},b.allPaths=[(r?"*/":"./")+l],b}function Lji(l){try{let e=new RegExp(`^${wki(l)}$`);return function(r){return e.lastIndex=0,typeof r=="string"&&e.test(r)?l:null}}catch{return bre}}function Tki(l,e,r){return!l||typeof e!="string"?!1:eri(l)(e,void 0,r)}function eri(l,e={}){if(!l)return xki;if(typeof l=="string"||Oji(l)){let r=Zni(l,e);if(r===bre)return xki;let o=function(c,d){return!!r(c,d)};return r.allBasenames&&(o.allBasenames=r.allBasenames),r.allPaths&&(o.allPaths=r.allPaths),o}return Fji(l,e)}function Oji(l){let e=l;return e?typeof e.base=="string"&&typeof e.pattern=="string":!1}function Fji(l,e){let r=Eki(Object.getOwnPropertyNames(l).map(b=>Mji(b,l[b],e)).filter(b=>b!==bre)),o=r.length;if(!o)return bre;if(!r.some(b=>!!b.requiresSiblings)){if(o===1)return r[0];let b=function(L,B){let F;for(let Y=0,Z=r.length;Y{for(let Y of F){let Z=await Y;if(typeof Z=="string")return Z}return null})():null},w=r.find(L=>!!L.allBasenames);w&&(b.allBasenames=w.allBasenames);let N=r.reduce((L,B)=>B.allPaths?L.concat(B.allPaths):L,[]);return N.length&&(b.allPaths=N),b}let c=function(b,w,N){let L,B;for(let F=0,Y=r.length;F{for(let F of B){let Y=await F;if(typeof Y=="string")return Y}return null})():null},d=r.find(b=>!!b.allBasenames);d&&(c.allBasenames=d.allBasenames);let h=r.reduce((b,w)=>w.allPaths?b.concat(w.allPaths):b,[]);return h.length&&(c.allPaths=h),c}function Mji(l,e,r){if(e===!1)return bre;let o=Zni(l,r);if(o===bre)return bre;if(typeof e=="boolean")return o;if(e){let c=e.when;if(typeof c=="string"){let d=(h,b,w,N)=>{if(!N||!o(h,b))return null;let L=c.replace("$(basename)",()=>w),B=N(L);return UIt(B)?B.then(F=>F?l:null):B?l:null};return d.requiresSiblings=!0,d}}return o}function Eki(l,e){let r=l.filter(b=>!!b.basenames);if(r.length<2)return l;let o=r.reduce((b,w)=>{let N=w.basenames;return N?b.concat(N):b},[]),c;if(e){c=[];for(let b=0,w=o.length;b{let N=w.patterns;return N?b.concat(N):b},[]);let d=function(b,w){if(typeof b!="string")return null;if(!w){let L;for(L=b.length;L>0;L--){let B=b.charCodeAt(L-1);if(B===47||B===92)break}w=b.substr(L)}let N=o.indexOf(w);return N!==-1?c[N]:null};d.basenames=o,d.patterns=c,d.allBasenames=o;let h=l.filter(b=>!b.basenames);return h.push(d),h}var OLt,yki,FLt,MLt,Cji,kji,wji,Tji,Eji,Dji,Iji,Ski,xki,bre,tri=ti(()=>{Ud();d6t();pA();jY();X_();Mu();OLt="**",yki="/",FLt="[/\\\\]",MLt="[^/\\\\]",Cji=/\//g;kji=/^\*\*\/\*\.[\w\.-]+$/,wji=/^\*\*\/([\w\.-]+)\/?$/,Tji=/^{\*\*\/\*?[\w\.-]+\/?(,\*\*\/\*?[\w\.-]+\/?)*}$/,Eji=/^{\*\*\/\*?[\w\.-]+(\/(\*\*)?)?(,\*\*\/\*?[\w\.-]+(\/(\*\*)?)?)*}$/,Dji=/^\*\*((\/[\w\.-]+)+)\/?$/,Iji=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,Ski=new WI(1e4),xki=function(){return!1},bre=function(){return null}});function Ift(l,e,r,o,c,d){if(Array.isArray(l)){let h=0;for(let b of l){let w=Ift(b,e,r,o,c,d);if(w===10)return w;w>h&&(h=w)}return h}else{if(typeof l=="string")return o?l==="*"?5:l===r?10:0:0;if(l){let{language:h,pattern:b,scheme:w,hasAccessToAllModels:N,notebookType:L}=l;if(!o&&!N)return 0;L&&c&&(e=c);let B=0;if(w)if(w===e.scheme)B=10;else if(w==="*")B=5;else return 0;if(h)if(h===r)B=10;else if(h==="*")B=Math.max(B,5);else return 0;if(L)if(L===d)B=10;else if(L==="*"&&d!==void 0)B=Math.max(B,5);else return 0;if(b){let F;if(typeof b=="string"?F=b:F={...b,base:CDt(b.base)},F===e.fsPath||Tki(F,e.fsPath))B=10;else return 0}return B}else return 0}}var iri=ti(()=>{tri();jY()});function Dki(l){return typeof l=="string"?!1:Array.isArray(l)?l.every(Dki):!!l.exclusive}function Nft(l){return typeof l=="string"?!1:Array.isArray(l)?l.some(Nft):!!l.isBuiltin}var RLt,NS,Iki=ti(()=>{xc();co();MD();iri();RLt=class{constructor(e,r,o,c){this.uri=e,this.languageId=r,this.notebookUri=o,this.notebookType=c}equals(e){var r,o;return this.notebookType===e.notebookType&&this.languageId===e.languageId&&this.uri.toString()===e.uri.toString()&&((r=this.notebookUri)===null||r===void 0?void 0:r.toString())===((o=e.notebookUri)===null||o===void 0?void 0:o.toString())}},NS=class l{constructor(e){this._notebookInfoResolver=e,this._clock=0,this._entries=[],this._onDidChange=new wn,this.onDidChange=this._onDidChange.event}register(e,r){let o={selector:e,provider:r,_score:-1,_time:this._clock++};return this._entries.push(o),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),Ma(()=>{if(o){let c=this._entries.indexOf(o);c>=0&&(this._entries.splice(c,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),o=void 0)}})}has(e){return this.all(e).length>0}all(e){if(!e)return[];this._updateScores(e);let r=[];for(let o of this._entries)o._score>0&&r.push(o.provider);return r}ordered(e){let r=[];return this._orderedForEach(e,o=>r.push(o.provider)),r}orderedGroups(e){let r=[],o,c;return this._orderedForEach(e,d=>{o&&c===d._score?o.push(d.provider):(c=d._score,o=[d.provider],r.push(o))}),r}_orderedForEach(e,r){this._updateScores(e);for(let o of this._entries)o._score>0&&r(o)}_updateScores(e){var r,o;let c=(r=this._notebookInfoResolver)===null||r===void 0?void 0:r.call(this,e.uri),d=c?new RLt(e.uri,e.getLanguageId(),c.uri,c.type):new RLt(e.uri,e.getLanguageId(),void 0,void 0);if(!(!((o=this._lastCandidate)===null||o===void 0)&&o.equals(d))){this._lastCandidate=d;for(let h of this._entries)if(h._score=Ift(h.selector,d.uri,d.languageId,sAt(e),d.notebookUri,d.notebookType),Dki(h.selector)&&h._score>0){for(let b of this._entries)b._score=0;h._score=1e3;break}this._entries.sort(l._compareByScoreAndTime)}}static _compareByScoreAndTime(e,r){return e._scorer._score?-1:Nft(e.selector)&&!Nft(r.selector)?1:!Nft(e.selector)&&Nft(r.selector)?-1:e._timer._time?-1:0}}});var nri,Nki=ti(()=>{Iki();wm();_A();nri=class{constructor(){this.referenceProvider=new NS(this._score.bind(this)),this.renameProvider=new NS(this._score.bind(this)),this.newSymbolNamesProvider=new NS(this._score.bind(this)),this.codeActionProvider=new NS(this._score.bind(this)),this.definitionProvider=new NS(this._score.bind(this)),this.typeDefinitionProvider=new NS(this._score.bind(this)),this.declarationProvider=new NS(this._score.bind(this)),this.implementationProvider=new NS(this._score.bind(this)),this.documentSymbolProvider=new NS(this._score.bind(this)),this.inlayHintsProvider=new NS(this._score.bind(this)),this.colorProvider=new NS(this._score.bind(this)),this.codeLensProvider=new NS(this._score.bind(this)),this.documentFormattingEditProvider=new NS(this._score.bind(this)),this.documentRangeFormattingEditProvider=new NS(this._score.bind(this)),this.onTypeFormattingEditProvider=new NS(this._score.bind(this)),this.signatureHelpProvider=new NS(this._score.bind(this)),this.hoverProvider=new NS(this._score.bind(this)),this.documentHighlightProvider=new NS(this._score.bind(this)),this.multiDocumentHighlightProvider=new NS(this._score.bind(this)),this.selectionRangeProvider=new NS(this._score.bind(this)),this.foldingRangeProvider=new NS(this._score.bind(this)),this.linkProvider=new NS(this._score.bind(this)),this.inlineCompletionsProvider=new NS(this._score.bind(this)),this.inlineEditProvider=new NS(this._score.bind(this)),this.completionProvider=new NS(this._score.bind(this)),this.linkedEditingRangeProvider=new NS(this._score.bind(this)),this.documentRangeSemanticTokensProvider=new NS(this._score.bind(this)),this.documentSemanticTokensProvider=new NS(this._score.bind(this)),this.documentDropEditProvider=new NS(this._score.bind(this)),this.documentPasteEditProvider=new NS(this._score.bind(this))}_score(e){var r;return(r=this._notebookTypeResolver)===null||r===void 0?void 0:r.call(this,e)}};e_(xa,nri,1)});var Rji,Aki,t8,Sre,Jfe=ti(()=>{bl();co();_y();nc();Rji=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},Aki=function(l,e){return function(r,o){e(r,o,l)}},t8=Ml("hoverService"),Sre=class extends tn{get delay(){return this.isInstantlyHovering()?0:this._delay}constructor(e,r,o={},c,d){super(),this.placement=e,this.instantHover=r,this.overrideOptions=o,this.configurationService=c,this.hoverService=d,this.lastHoverHideTime=0,this.timeLimit=200,this.hoverDisposables=this._register(new Fr),this._delay=this.configurationService.getValue("workbench.hover.delay"),this._register(this.configurationService.onDidChangeConfiguration(h=>{h.affectsConfiguration("workbench.hover.delay")&&(this._delay=this.configurationService.getValue("workbench.hover.delay"))}))}showHover(e,r){let o=typeof this.overrideOptions=="function"?this.overrideOptions(e,r):this.overrideOptions;this.hoverDisposables.clear();let c=Wv(e.target)?[e.target]:e.target.targetElements;for(let h of c)this.hoverDisposables.add(qh(h,"keydown",b=>{b.equals(9)&&this.hoverService.hideHover()}));let d=Wv(e.content)?void 0:e.content.toString();return this.hoverService.showHover({...e,...o,persistence:{hideOnKeyDown:!0,...o.persistence},id:d,appearance:{...e.appearance,compact:!0,skipFadeInAnimation:this.isInstantlyHovering(),...o.appearance}},r)}isInstantlyHovering(){return this.instantHover&&Date.now()-this.lastHoverHideTime{bl();i8=Ml("contextViewService"),zw=Ml("contextMenuService")});var Pki=ti(()=>{});var Lki=ti(()=>{});function jLt(l,e){return l&&e?ce("acessibleViewHint","Inspect this in the accessible view with {0}.",e):l?ce("acessibleViewHintNoKbOpen","Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding."):""}var BLt,GSe,iUe,Aft,Pft,nUe=ti(()=>{nc();lA();AV();co();Lki();ya();BLt=qo,GSe=class extends tn{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 i$(this.contentsDomNode,{consumeMouseWheelIfScrollbarIsNeeded:!0})),this.containerDomNode.appendChild(this.scrollbar.getDomNode())}onContentsChanged(){this.scrollbar.scanDomNode()}},iUe=class l extends tn{static render(e,r,o){return new l(e,r,o)}constructor(e,r,o){super(),this.actionContainer=Ro(e,BLt("div.action-container")),this.actionContainer.setAttribute("tabindex","0"),this.action=Ro(this.actionContainer,BLt("a.action")),this.action.setAttribute("role","button"),r.iconClass&&Ro(this.action,BLt(`span.icon.${r.iconClass}`));let c=Ro(this.action,BLt("span"));c.textContent=o?`${r.label} (${o})`:r.label,this._store.add(new Aft(this.actionContainer,r.run)),this._store.add(new Pft(this.actionContainer,r.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"))}};Aft=class extends tn{constructor(e,r){super(),this._register(Jr(e,ls.CLICK,o=>{o.stopPropagation(),o.preventDefault(),r(e)}))}},Pft=class extends tn{constructor(e,r,o){super(),this._register(Jr(e,ls.KEY_DOWN,c=>{let d=new Jp(c);o.some(h=>d.equals(h))&&(c.stopPropagation(),c.preventDefault(),r(e))}))}}});function Oki(l){let e,r=/^L?(\d+)(?:,(\d+))?(-L?(\d+)(?:,(\d+))?)?/.exec(l.fragment);return r&&(e={startLineNumber:parseInt(r[1]),startColumn:r[2]?parseInt(r[2]):1,endLineNumber:r[4]?parseInt(r[4]):void 0,endColumn:r[4]?r[5]?parseInt(r[5]):1:void 0},l=l.with({fragment:""})),{selection:e,uri:l}}var NC,n8=ti(()=>{bl();NC=Ml("openerService")});function Fki(l,e={}){let r=WLt(e);return r.textContent=l,r}function Mki(l,e={}){let r=WLt(e);return Rki(r,Bji(l,!!e.renderCodeSegments),e.actionHandler,e.renderCodeSegments),r}function WLt(l){let e=l.inline?"span":"div",r=document.createElement(e);return l.className&&(r.className=l.className),r}function Rki(l,e,r,o){let c;if(e.type===2)c=document.createTextNode(e.content||"");else if(e.type===3)c=document.createElement("b");else if(e.type===4)c=document.createElement("i");else if(e.type===7&&o)c=document.createElement("code");else if(e.type===5&&r){let d=document.createElement("a");r.disposables.add(qh(d,"click",h=>{r.callback(String(e.index),h)})),c=d}else e.type===8?c=document.createElement("br"):e.type===1&&(c=l);c&&l!==c&&l.appendChild(c),c&&Array.isArray(e.children)&&e.children.forEach(d=>{Rki(c,d,r,o)})}function Bji(l,e){let r={type:1,children:[]},o=0,c=r,d=[],h=new rri(l);for(;!h.eos();){let b=h.next(),w=b==="\\"&&ori(h.peek(),e)!==0;if(w&&(b=h.next()),!w&&jji(b,e)&&b===h.peek()){h.advance(),c.type===2&&(c=d.pop());let N=ori(b,e);if(c.type===N||c.type===5&&N===6)c=d.pop();else{let L={type:N,children:[]};N===5&&(L.index=o,o++),c.children.push(L),d.push(c),c=L}}else if(b===` +`)c.type===2&&(c=d.pop()),c.children.push({type:8});else if(c.type!==2){let N={type:2,content:b};c.children.push(N),d.push(c),c=N}else c.content+=b}return c.type===2&&(c=d.pop()),d.length,r}function jji(l,e){return ori(l,e)!==0}function ori(l,e){switch(l){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;case"`":return e?7:0;default:return 0}}var rri,sri=ti(()=>{nc();rri=class{constructor(e){this.source=e,this.index=0}eos(){return this.index>=this.source.length}next(){let e=this.peek();return this.advance(),e}peek(){return this.source[this.index]}advance(){this.index++}}});function PB(l){let e=new Array,r,o=0,c=0;for(;(r=Wji.exec(l))!==null;){c=r.index||0,o{nc();bv();Wji=new RegExp(`(\\\\)?\\$\\((${sl.iconNameExpression}(?:${sl.iconModifierExpression})?)\\)`,"g")});function Bki(l){let e=zji(l);if(e&&e.length>0)return new Uint32Array(e)}function zji(l){if(LB=0,Cre(l,ari,4352),LB>0||(Cre(l,cri,4449),LB>0)||(Cre(l,lri,4520),LB>0)||(Cre(l,dLe,12593),LB))return KSe.subarray(0,LB);if(l>=44032&&l<=55203){let e=l-44032,r=e%588,o=Math.floor(e/588),c=Math.floor(r/28),d=r%28-1;if(o=0&&(d0)return KSe.subarray(0,LB)}}function Cre(l,e,r){l>=r&&l>8&&(KSe[LB++]=l>>8&255),l>>16&&(KSe[LB++]=l>>16&255))}var LB,KSe,ari,cri,lri,dLe,jki=ti(()=>{LB=0,KSe=new Uint32Array(10);ari=new Uint8Array([114,82,115,101,69,102,97,113,81,116,84,100,119,87,99,122,120,118,103]),cri=new Uint16Array([107,111,105,79,106,112,117,80,104,27496,28520,27752,121,110,27246,28782,27758,98,109,27757,108]),lri=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]),dLe=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])});function ULt(...l){return function(e,r){for(let o=0,c=l.length;o0?[{start:0,end:e.length}]:[]:null}function hri(l,e){let r=e.toLowerCase().indexOf(l.toLowerCase());return r===-1?null:[{start:r,end:r+l.length}]}function gri(l,e){return fri(l.toLowerCase(),e.toLowerCase(),0,0)}function fri(l,e,r,o){if(r===l.length)return[];if(o===e.length)return null;if(l[r]===e[o]){let c=null;return(c=fri(l,e,r+1,o+1))?bri({start:o,end:o+1},c):null}return fri(l,e,r,o+1)}function yri(l){return 97<=l&&l<=122}function JLt(l){return 65<=l&&l<=90}function vri(l){return 48<=l&&l<=57}function Jki(l){return l===32||l===9||l===10||l===13}function HLt(l){return Jki(l)||qki.has(l)}function Wki(l,e){return l===e||HLt(l)&&HLt(e)}function zki(l){if(uri.has(l))return uri.get(l);let e,r=Bki(l);return r&&(e=r),uri.set(l,e),e}function $ki(l){return yri(l)||JLt(l)||vri(l)}function bri(l,e){return e.length===0?e=[l]:l.end===e[0].start?e[0].start=l.start:e.unshift(l),e}function Gki(l,e){for(let r=e;r0&&!$ki(l.charCodeAt(r-1)))return r}return l.length}function _ri(l,e,r,o){if(r===l.length)return[];if(o===e.length)return null;if(l[r]!==e[o].toLowerCase())return null;{let c=null,d=o+1;for(c=_ri(l,e,r+1,o+1);!c&&(d=Gki(e,d)).6}function Jji(l){let{upperPercent:e,lowerPercent:r,alphaPercent:o,numericPercent:c}=l;return r>.2&&e<.8&&o>.6&&c<.2}function qji(l){let e=0,r=0,o=0,c=0;for(let d=0;d60&&(e=e.substring(0,60));let r=Hji(e);if(!Jji(r)){if(!Uji(r))return null;e=e.toLowerCase()}let o=null,c=0;for(l=l.toLowerCase();c0&&HLt(l.charCodeAt(r-1)))return r;return l.length}function Sri(l,e,r=!1){if(typeof l!="string"||typeof e!="string")return null;let o=Vki.get(l);o||(o=new RegExp(Xgi(l),"i"),Vki.set(l,o));let c=o.exec(e);return c?[{start:c.index,end:c.index+c[0].length}]:r?Gji(l,e):$ji(l,e)}function Qki(l,e){let r=wre(l,l.toLowerCase(),0,e,e.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return r?ZSe(r):null}function Zki(l,e,r,o,c,d){let h=Math.min(13,l.length);for(;r"u")return[];let e=[],r=l[1];for(let o=l.length-1;o>1;o--){let c=l[o]+r,d=e[e.length-1];d&&d.end===c?d.end=c+1:e.push({start:c,end:c+1})}return e}function xri(){let l=[],e=[];for(let r=0;r<=YSe;r++)e[r]=0;for(let r=0;r<=YSe;r++)l.push(e.slice(0));return l}function ewi(l){let e=[];for(let r=0;r<=l;r++)e[r]=0;return e}function dri(l,e,r,o,c){function d(b,w,N=" "){for(;b.lengthd(b,3)).join("|")} +`;for(let b=0;b<=r;b++)b===0?h+=" |":h+=`${e[b-1]}|`,h+=l[b].slice(0,c+1).map(w=>d(w.toString(),3)).join("|")+` +`;return h}function Xji(l,e,r,o){l=l.substr(e),r=r.substr(o),console.log(dri(XSe,l,l.length,r,r.length)),console.log(dri(Lft,l,l.length,r,r.length)),console.log(dri(kre,l,l.length,r,r.length))}function zLt(l,e){if(e<0||e>=l.length)return!1;let r=l.codePointAt(e);switch(r){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!!fut(r)}}function Hki(l,e){if(e<0||e>=l.length)return!1;switch(l.charCodeAt(e)){case 32:case 9:return!0;default:return!1}}function VLt(l,e,r){return e[l]!==r[l]}function Yji(l,e,r,o,c,d,h=!1){for(;eYSe?YSe:l.length,w=o.length>YSe?YSe:o.length;if(r>=b||d>=w||b-r>w-d||!Yji(e,r,b,c,d,w,!0))return;Qji(b,w,r,d,e,c);let N=1,L=1,B=r,F=d,Y=[!1];for(N=1,B=r;BXe,_n=mi?XSe[N][L-1]+(kre[N][L-1]>0?-5:0):0,Pr=F>Xe+1&&kre[N][L-1]>0,dr=Pr?XSe[N][L-2]+(kre[N][L-2]>0?-5:0):0;if(Pr&&(!mi||dr>=_n)&&(!Yt||dr>=jt))XSe[N][L]=dr,Lft[N][L]=3,kre[N][L]=0;else if(mi&&(!Yt||_n>=jt))XSe[N][L]=_n,Lft[N][L]=2,kre[N][L]=0;else if(Yt)XSe[N][L]=jt,Lft[N][L]=1,kre[N][L]=kre[N-1][L-1]+1;else throw new Error("not possible")}}if(Kji&&Xji(l,r,o,d),!Y[0]&&!h.firstMatchCanBeWeak)return;N--,L--;let Z=[XSe[N][L],d],ee=0,Te=0;for(;N>=1;){let Xe=L;do{let ct=Lft[N][Xe];if(ct===3)Xe=Xe-2;else if(ct===2)Xe=Xe-1;else break}while(Xe>=1);ee>1&&e[r+N-1]===c[d+L-1]&&!VLt(Xe+d-1,o,c)&&ee+1>kre[N][Xe]&&(Xe=L),Xe===L?ee++:ee=1,Te||(Te=Xe),N--,L=Xe-1,Z.push(L)}w-d===b&&h.boostFullMatch&&(Z[0]+=2);let Je=Te-b;return Z[0]-=Je,Z}function Qji(l,e,r,o,c,d){let h=l-1,b=e-1;for(;h>=r&&b>=o;)c[h]===d[b]&&(mri[h]=b,h--),b--}function Zji(l,e,r,o,c,d,h,b,w,N,L){if(e[r]!==d[h])return Number.MIN_SAFE_INTEGER;let B=1,F=!1;return h===r-o?B=l[r]===c[h]?7:5:VLt(h,c,d)&&(h===0||!VLt(h-1,c,d))?(B=l[r]===c[h]?7:5,F=!0):zLt(d,h)&&(h===0||!zLt(d,h-1))?B=5:(zLt(d,h-1)||Hki(d,h-1))&&(B=5,F=!0),B>1&&r===o&&(L[0]=!0),F||(F=VLt(h,c,d)||zLt(d,h-1)||Hki(d,h-1)),r===o?h>w&&(B-=F?3:5):N?B+=F?2:0:B+=F?0:1,h+1===b&&(B-=F?3:5),B}function iwi(l,e,r,o,c,d,h){return eWi(l,e,r,o,c,d,!0,h)}function eWi(l,e,r,o,c,d,h,b){let w=wre(l,e,r,o,c,d,b);if(w&&!h)return w;if(l.length>=3){let N=Math.min(7,l.length-1);for(let L=r+1;Lw[0])&&(w=F))}}}return w}function tWi(l,e){if(e+1>=l.length)return;let r=l[e],o=l[e+1];if(r!==o)return l.slice(0,e)+o+r+l.slice(e+2)}var wAn,fLe,qki,uri,$ji,Gji,Vki,YSe,twi,mri,kre,XSe,Lft,Kji,f7,QSe,MV=ti(()=>{pA();jki();Mu();wAn=Uki.bind(void 0,!1),fLe=Uki.bind(void 0,!0);qki=new Set;"()[]{}<>`'\"-/;:,.?!".split("").forEach(l=>qki.add(l.charCodeAt(0)));uri=new Map;$ji=ULt(fLe,Kki,hri),Gji=ULt(fLe,Kki,gri),Vki=new WI(1e4);YSe=128;twi=ewi(2*YSe),mri=ewi(2*YSe),kre=xri(),XSe=xri(),Lft=xri(),Kji=!1;(function(l){l.Default=[-100,0];function e(r){return!r||r.length===2&&r[0]===-100&&r[1]===0}l.isDefault=e})(f7||(f7={}));QSe=class{constructor(e,r){this.firstMatchCanBeWeak=e,this.boostFullMatch=r}};QSe.default={boostFullMatch:!0,firstMatchCanBeWeak:!1}});function nwi(l){return l.replace(nWi,(e,r)=>r?e:`\\${e}`)}function rwi(l){return l.replace(rWi,e=>`\\${e}`)}function rUe(l){return l.indexOf(iWi)===-1?l:l.replace(oWi,(e,r,o,c)=>o?e:r||c||"")}function owi(l){return l?l.replace(/\$\((.*?)\)/g,(e,r)=>` ${r} `).trim():""}function oUe(l){Cri.lastIndex=0;let e="",r=[],o=0;for(;;){let c=Cri.lastIndex,d=Cri.exec(l),h=l.substring(c,d?.index);if(h.length>0){e+=h;for(let b=0;b{MV();Mu();bv();iWi="$(",kri=new RegExp(`\\$\\(${sl.iconNameExpression}(?:${sl.iconModifierExpression})?\\)`,"g"),nWi=new RegExp(`(\\\\)?${kri.source}`,"g");rWi=new RegExp(`\\\\${kri.source}`,"g");oWi=new RegExp(`(\\s)?(\\\\)?${kri.source}(\\s)?`,"g");Cri=new RegExp(`\\$\\(${sl.iconNameCharacter}+\\)`,"g")});function $fe(l){return _7(l)?!l.value:Array.isArray(l)?l.every($fe):!0}function _7(l){return l instanceof Hx?!0:l&&typeof l=="object"?typeof l.value=="string"&&(typeof l.isTrusted=="boolean"||typeof l.isTrusted=="object"||l.isTrusted===void 0)&&(typeof l.supportThemeIcons=="boolean"||l.supportThemeIcons===void 0):!1}function swi(l,e){return l===e?!0:!l||!e?!1:l.value===e.value&&l.isTrusted===e.isTrusted&&l.supportThemeIcons===e.supportThemeIcons&&l.supportHtml===e.supportHtml&&(l.baseUri===e.baseUri||!!l.baseUri&&!!e.baseUri&&jHe(qc.from(l.baseUri),qc.from(e.baseUri)))}function sWi(l){return l.replace(/[\\`*_{}[\]()#+\-!~]/g,"\\$&")}function aWi(l,e){var r,o;let c=(o=(r=l.match(/^`+/gm))===null||r===void 0?void 0:r.reduce((h,b)=>h.length>b.length?h:b).length)!==null&&o!==void 0?o:0,d=c>=3?c+1:3;return[`${"`".repeat(d)}${e}`,l,`${"`".repeat(d)}`].join(` +`)}function Oft(l){return l.replace(/"/g,""")}function $Lt(l){return l&&l.replace(/\\([\\`*_{}[\]()#+\-.!~])/g,"$1")}function awi(l){let e=[],r=l.split("|").map(c=>c.trim());l=r[0];let o=r[1];if(o){let c=/height=(\d+)/.exec(o),d=/width=(\d+)/.exec(o),h=c?c[1]:"",b=d?d[1]:"",w=isFinite(parseInt(b)),N=isFinite(parseInt(h));w&&e.push(`width="${b}"`),N&&e.push(`height="${h}"`)}return{href:l,dimensions:e}}var Hx,d3=ti(()=>{Du();_Le();VP();Mu();s0();Hx=class{constructor(e="",r=!1){var o,c,d;if(this.value=e,typeof this.value!="string")throw aA("value");typeof r=="boolean"?(this.isTrusted=r,this.supportThemeIcons=!1,this.supportHtml=!1):(this.isTrusted=(o=r.isTrusted)!==null&&o!==void 0?o:void 0,this.supportThemeIcons=(c=r.supportThemeIcons)!==null&&c!==void 0?c:!1,this.supportHtml=(d=r.supportHtml)!==null&&d!==void 0?d:!1)}appendText(e,r=0){return this.value+=sWi(this.supportThemeIcons?nwi(e):e).replace(/([ \t]+)/g,(o,c)=>" ".repeat(c.length)).replace(/\>/gm,"\\>").replace(/\n/g,r===1?`\\ +`:` + +`),this}appendMarkdown(e){return this.value+=e,this}appendCodeblock(e,r){return this.value+=` +${aWi(r,e)} +`,this}appendLink(e,r,o){return this.value+="[",this.value+=this._escape(r,"]"),this.value+="](",this.value+=this._escape(String(e),")"),o&&(this.value+=` "${this._escape(this._escape(o,'"'),")")}"`),this.value+=")",this}_escape(e,r){let o=new RegExp(yE(r),"g");return e.replace(o,(c,d)=>e.charAt(d-1)!=="\\"?`\\${c}`:c)}}});var pLe,Fft,Mft=ti(()=>{pLe=class{constructor(e){this._prefix=e,this._lastId=0}nextId(){return this._prefix+ ++this._lastId}},Fft=new pLe("id#")});var r8,BAn,jAn,WAn,zAn,VAn,HAn,UAn,JAn,l$,qAn,$An,GAn,KAn,XAn,YAn,QAn,cwi=ti(()=>{r8={};(function(){function l(e,r){r(r8)}l.amd=!0,function(e,r){typeof l=="function"&&l.amd?l(["exports"],r):typeof exports=="object"&&typeof module<"u"?r(exports):(e=typeof globalThis<"u"?globalThis:e||self,r(e.marked={}))}(this,function(e){"use strict";function r(la,rs){for(var os=0;osla.length)&&(rs=la.length);for(var os=0,Hn=new Array(rs);os=la.length?{done:!0}:{done:!1,value:la[Hn++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}e.defaults=b();function w(la){e.defaults=la}var N=/[&<>"']/,L=/[&<>"']/g,B=/[<>"']|&(?!#?\w+;)/,F=/[<>"']|&(?!#?\w+;)/g,Y={"&":"&","<":"<",">":">",'"':""","'":"'"},Z=function(rs){return Y[rs]};function ee(la,rs){if(rs){if(N.test(la))return la.replace(L,Z)}else if(B.test(la))return la.replace(F,Z);return la}var Te=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function Je(la){return la.replace(Te,function(rs,os){return os=os.toLowerCase(),os==="colon"?":":os.charAt(0)==="#"?os.charAt(1)==="x"?String.fromCharCode(parseInt(os.substring(2),16)):String.fromCharCode(+os.substring(1)):""})}var Xe=/(^|[^\[])\^/g;function ct(la,rs){la=typeof la=="string"?la:la.source,rs=rs||"";var os={replace:function(tr,ho){return ho=ho.source||ho,ho=ho.replace(Xe,"$1"),la=la.replace(tr,ho),os},getRegex:function(){return new RegExp(la,rs)}};return os}var Ct=/[^\w:]/g,Nt=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Yt(la,rs,os){if(la){var Hn;try{Hn=decodeURIComponent(Je(os)).replace(Ct,"").toLowerCase()}catch{return null}if(Hn.indexOf("javascript:")===0||Hn.indexOf("vbscript:")===0||Hn.indexOf("data:")===0)return null}rs&&!Nt.test(os)&&(os=dr(rs,os));try{os=encodeURI(os).replace(/%25/g,"%")}catch{return null}return os}var jt={},mi=/^[^:]+:\/*[^/]*$/,_n=/^([^:]+:)[\s\S]*$/,Pr=/^([^:]+:\/*[^/]*)[\s\S]*$/;function dr(la,rs){jt[" "+la]||(mi.test(la)?jt[" "+la]=la+"/":jt[" "+la]=ks(la,"/",!0)),la=jt[" "+la];var os=la.indexOf(":")===-1;return rs.substring(0,2)==="//"?os?rs:la.replace(_n,"$1")+rs:rs.charAt(0)==="/"?os?rs:la.replace(Pr,"$1")+rs:la+rs}var Rr={exec:function(){}};function Tn(la){for(var rs=1,os,Hn;rs=0&&ea[pu]==="\\";)ar=!ar;return ar?"|":" |"}),Hn=os.split(/ \|/),tr=0;if(Hn[0].trim()||Hn.shift(),Hn.length>0&&!Hn[Hn.length-1].trim()&&Hn.pop(),Hn.length>rs)Hn.splice(rs);else for(;Hn.length1;)rs&1&&(os+=la),rs>>=1,la+=la;return os+la}function $s(la,rs,os,Hn){var tr=rs.href,ho=rs.title?ee(rs.title):null,no=la[1].replace(/\\([\[\]])/g,"$1");if(la[0].charAt(0)!=="!"){Hn.state.inLink=!0;var ea={type:"link",raw:os,href:tr,title:ho,text:no,tokens:Hn.inlineTokens(no)};return Hn.state.inLink=!1,ea}return{type:"image",raw:os,href:tr,title:ho,text:ee(no)}}function cr(la,rs){var os=la.match(/^(\s+)(?:```)/);if(os===null)return rs;var Hn=os[1];return rs.split(` +`).map(function(tr){var ho=tr.match(/^\s+/);if(ho===null)return tr;var no=ho[0];return no.length>=Hn.length?tr.slice(Hn.length):tr}).join(` +`)}var za=function(){function la(os){this.options=os||e.defaults}var rs=la.prototype;return rs.space=function(Hn){var tr=this.rules.block.newline.exec(Hn);if(tr&&tr[0].length>0)return{type:"space",raw:tr[0]}},rs.code=function(Hn){var tr=this.rules.block.code.exec(Hn);if(tr){var ho=tr[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:tr[0],codeBlockStyle:"indented",text:this.options.pedantic?ho:ks(ho,` +`)}}},rs.fences=function(Hn){var tr=this.rules.block.fences.exec(Hn);if(tr){var ho=tr[0],no=cr(ho,tr[3]||"");return{type:"code",raw:ho,lang:tr[2]?tr[2].trim():tr[2],text:no}}},rs.heading=function(Hn){var tr=this.rules.block.heading.exec(Hn);if(tr){var ho=tr[2].trim();if(/#$/.test(ho)){var no=ks(ho,"#");(this.options.pedantic||!no||/ $/.test(no))&&(ho=no.trim())}return{type:"heading",raw:tr[0],depth:tr[1].length,text:ho,tokens:this.lexer.inline(ho)}}},rs.hr=function(Hn){var tr=this.rules.block.hr.exec(Hn);if(tr)return{type:"hr",raw:tr[0]}},rs.blockquote=function(Hn){var tr=this.rules.block.blockquote.exec(Hn);if(tr){var ho=tr[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:tr[0],tokens:this.lexer.blockTokens(ho,[]),text:ho}}},rs.list=function(Hn){var tr=this.rules.block.list.exec(Hn);if(tr){var ho,no,ea,ar,pu,Yl,Ho,Xu,oo,Bh,du,Ws,lm=tr[1].trim(),C0=lm.length>1,Ed={type:"list",raw:"",ordered:C0,start:C0?+lm.slice(0,-1):"",loose:!1,items:[]};lm=C0?"\\d{1,9}\\"+lm.slice(-1):"\\"+lm,this.options.pedantic&&(lm=C0?lm:"[*+-]");for(var c0=new RegExp("^( {0,3}"+lm+")((?:[ ][^\\n]*)?(?:\\n|$))");Hn&&(Ws=!1,!(!(tr=c0.exec(Hn))||this.rules.block.hr.test(Hn)));){if(ho=tr[0],Hn=Hn.substring(ho.length),Xu=tr[2].split(` +`,1)[0],oo=Hn.split(` +`,1)[0],this.options.pedantic?(ar=2,du=Xu.trimLeft()):(ar=tr[2].search(/[^ ]/),ar=ar>4?1:ar,du=Xu.slice(ar),ar+=tr[1].length),Yl=!1,!Xu&&/^ *$/.test(oo)&&(ho+=oo+` +`,Hn=Hn.substring(oo.length+1),Ws=!0),!Ws)for(var of=new RegExp("^ {0,"+Math.min(3,ar-1)+"}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))"),AC=new RegExp("^ {0,"+Math.min(3,ar-1)+"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)"),Y_=new RegExp("^ {0,"+Math.min(3,ar-1)+"}(?:```|~~~)"),Bu=new RegExp("^ {0,"+Math.min(3,ar-1)+"}#");Hn&&(Bh=Hn.split(` +`,1)[0],Xu=Bh,this.options.pedantic&&(Xu=Xu.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(Y_.test(Xu)||Bu.test(Xu)||of.test(Xu)||AC.test(Hn)));){if(Xu.search(/[^ ]/)>=ar||!Xu.trim())du+=` +`+Xu.slice(ar);else if(!Yl)du+=` +`+Xu;else break;!Yl&&!Xu.trim()&&(Yl=!0),ho+=Bh+` +`,Hn=Hn.substring(Bh.length+1)}Ed.loose||(Ho?Ed.loose=!0:/\n *\n *$/.test(ho)&&(Ho=!0)),this.options.gfm&&(no=/^\[[ xX]\] /.exec(du),no&&(ea=no[0]!=="[ ] ",du=du.replace(/^\[[ xX]\] +/,""))),Ed.items.push({type:"list_item",raw:ho,task:!!no,checked:ea,loose:!1,text:du}),Ed.raw+=ho}Ed.items[Ed.items.length-1].raw=ho.trimRight(),Ed.items[Ed.items.length-1].text=du.trimRight(),Ed.raw=Ed.raw.trimRight();var vp=Ed.items.length;for(pu=0;pu1)return!0}return!1});!Ed.loose&&N6.length&&Hu&&(Ed.loose=!0,Ed.items[pu].loose=!0)}return Ed}},rs.html=function(Hn){var tr=this.rules.block.html.exec(Hn);if(tr){var ho={type:"html",raw:tr[0],pre:!this.options.sanitizer&&(tr[1]==="pre"||tr[1]==="script"||tr[1]==="style"),text:tr[0]};if(this.options.sanitize){var no=this.options.sanitizer?this.options.sanitizer(tr[0]):ee(tr[0]);ho.type="paragraph",ho.text=no,ho.tokens=this.lexer.inline(no)}return ho}},rs.def=function(Hn){var tr=this.rules.block.def.exec(Hn);if(tr){tr[3]&&(tr[3]=tr[3].substring(1,tr[3].length-1));var ho=tr[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:ho,raw:tr[0],href:tr[2],title:tr[3]}}},rs.table=function(Hn){var tr=this.rules.block.table.exec(Hn);if(tr){var ho={type:"table",header:Qn(tr[1]).map(function(Ho){return{text:Ho}}),align:tr[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:tr[3]&&tr[3].trim()?tr[3].replace(/\n[ \t]*$/,"").split(` +`):[]};if(ho.header.length===ho.align.length){ho.raw=tr[0];var no=ho.align.length,ea,ar,pu,Yl;for(ea=0;ea/i.test(tr[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(tr[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(tr[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:tr[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(tr[0]):ee(tr[0]):tr[0]}},rs.link=function(Hn){var tr=this.rules.inline.link.exec(Hn);if(tr){var ho=tr[2].trim();if(!this.options.pedantic&&/^$/.test(ho))return;var no=ks(ho.slice(0,-1),"\\");if((ho.length-no.length)%2===0)return}else{var ea=La(tr[2],"()");if(ea>-1){var ar=tr[0].indexOf("!")===0?5:4,pu=ar+tr[1].length+ea;tr[2]=tr[2].substring(0,ea),tr[0]=tr[0].substring(0,pu).trim(),tr[3]=""}}var Yl=tr[2],Ho="";if(this.options.pedantic){var Xu=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Yl);Xu&&(Yl=Xu[1],Ho=Xu[3])}else Ho=tr[3]?tr[3].slice(1,-1):"";return Yl=Yl.trim(),/^$/.test(ho)?Yl=Yl.slice(1):Yl=Yl.slice(1,-1)),$s(tr,{href:Yl&&Yl.replace(this.rules.inline._escapes,"$1"),title:Ho&&Ho.replace(this.rules.inline._escapes,"$1")},tr[0],this.lexer)}},rs.reflink=function(Hn,tr){var ho;if((ho=this.rules.inline.reflink.exec(Hn))||(ho=this.rules.inline.nolink.exec(Hn))){var no=(ho[2]||ho[1]).replace(/\s+/g," ");if(no=tr[no.toLowerCase()],!no||!no.href){var ea=ho[0].charAt(0);return{type:"text",raw:ea,text:ea}}return $s(ho,no,ho[0],this.lexer)}},rs.emStrong=function(Hn,tr,ho){ho===void 0&&(ho="");var no=this.rules.inline.emStrong.lDelim.exec(Hn);if(no&&!(no[3]&&ho.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var ea=no[1]||no[2]||"";if(!ea||ea&&(ho===""||this.rules.inline.punctuation.exec(ho))){var ar=no[0].length-1,pu,Yl,Ho=ar,Xu=0,oo=no[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(oo.lastIndex=0,tr=tr.slice(-1*Hn.length+ar);(no=oo.exec(tr))!=null;)if(pu=no[1]||no[2]||no[3]||no[4]||no[5]||no[6],!!pu){if(Yl=pu.length,no[3]||no[4]){Ho+=Yl;continue}else if((no[5]||no[6])&&ar%3&&!((ar+Yl)%3)){Xu+=Yl;continue}if(Ho-=Yl,!(Ho>0)){if(Yl=Math.min(Yl,Yl+Ho+Xu),Math.min(ar,Yl)%2){var Bh=Hn.slice(1,ar+no.index+Yl);return{type:"em",raw:Hn.slice(0,ar+no.index+Yl+1),text:Bh,tokens:this.lexer.inlineTokens(Bh)}}var du=Hn.slice(2,ar+no.index+Yl-1);return{type:"strong",raw:Hn.slice(0,ar+no.index+Yl+1),text:du,tokens:this.lexer.inlineTokens(du)}}}}}},rs.codespan=function(Hn){var tr=this.rules.inline.code.exec(Hn);if(tr){var ho=tr[2].replace(/\n/g," "),no=/[^ ]/.test(ho),ea=/^ /.test(ho)&&/ $/.test(ho);return no&&ea&&(ho=ho.substring(1,ho.length-1)),ho=ee(ho,!0),{type:"codespan",raw:tr[0],text:ho}}},rs.br=function(Hn){var tr=this.rules.inline.br.exec(Hn);if(tr)return{type:"br",raw:tr[0]}},rs.del=function(Hn){var tr=this.rules.inline.del.exec(Hn);if(tr)return{type:"del",raw:tr[0],text:tr[2],tokens:this.lexer.inlineTokens(tr[2])}},rs.autolink=function(Hn,tr){var ho=this.rules.inline.autolink.exec(Hn);if(ho){var no,ea;return ho[2]==="@"?(no=ee(this.options.mangle?tr(ho[1]):ho[1]),ea="mailto:"+no):(no=ee(ho[1]),ea=no),{type:"link",raw:ho[0],text:no,href:ea,tokens:[{type:"text",raw:no,text:no}]}}},rs.url=function(Hn,tr){var ho;if(ho=this.rules.inline.url.exec(Hn)){var no,ea;if(ho[2]==="@")no=ee(this.options.mangle?tr(ho[0]):ho[0]),ea="mailto:"+no;else{var ar;do ar=ho[0],ho[0]=this.rules.inline._backpedal.exec(ho[0])[0];while(ar!==ho[0]);no=ee(ho[0]),ho[1]==="www."?ea="http://"+no:ea=no}return{type:"link",raw:ho[0],text:no,href:ea,tokens:[{type:"text",raw:no,text:no}]}}},rs.inlineText=function(Hn,tr){var ho=this.rules.inline.text.exec(Hn);if(ho){var no;return this.lexer.state.inRawBlock?no=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ho[0]):ee(ho[0]):ho[0]:no=ee(this.options.smartypants?tr(ho[0]):ho[0]),{type:"text",raw:ho[0],text:no}}},la}(),Uc={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Rr,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};Uc._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Uc._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,Uc.def=ct(Uc.def).replace("label",Uc._label).replace("title",Uc._title).getRegex(),Uc.bullet=/(?:[*+-]|\d{1,9}[.)])/,Uc.listItemStart=ct(/^( *)(bull) */).replace("bull",Uc.bullet).getRegex(),Uc.list=ct(Uc.list).replace(/bull/g,Uc.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Uc.def.source+")").getRegex(),Uc._tag="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|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Uc._comment=/|$)/,Uc.html=ct(Uc.html,"i").replace("comment",Uc._comment).replace("tag",Uc._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Uc.paragraph=ct(Uc._paragraph).replace("hr",Uc.hr).replace("heading"," {0,3}#{1,6} ").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",")|<(?:script|pre|style|textarea|!--)").replace("tag",Uc._tag).getRegex(),Uc.blockquote=ct(Uc.blockquote).replace("paragraph",Uc.paragraph).getRegex(),Uc.normal=Tn({},Uc),Uc.gfm=Tn({},Uc.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Uc.gfm.table=ct(Uc.gfm.table).replace("hr",Uc.hr).replace("heading"," {0,3}#{1,6} ").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",")|<(?:script|pre|style|textarea|!--)").replace("tag",Uc._tag).getRegex(),Uc.gfm.paragraph=ct(Uc._paragraph).replace("hr",Uc.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Uc.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Uc._tag).getRegex(),Uc.pedantic=Tn({},Uc.normal,{html:ct(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Uc._comment).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:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Rr,paragraph:ct(Uc.normal._paragraph).replace("hr",Uc.hr).replace("heading",` *#{1,6} *[^ +]`).replace("lheading",Uc.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var Ya={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Rr,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[^*]+(?=[^*])|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Rr,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",Ya.punctuation=ct(Ya.punctuation).replace(/punctuation/g,Ya._punctuation).getRegex(),Ya.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,Ya.escapedEmSt=/\\\*|\\_/g,Ya._comment=ct(Uc._comment).replace("(?:-->|$)","-->").getRegex(),Ya.emStrong.lDelim=ct(Ya.emStrong.lDelim).replace(/punct/g,Ya._punctuation).getRegex(),Ya.emStrong.rDelimAst=ct(Ya.emStrong.rDelimAst,"g").replace(/punct/g,Ya._punctuation).getRegex(),Ya.emStrong.rDelimUnd=ct(Ya.emStrong.rDelimUnd,"g").replace(/punct/g,Ya._punctuation).getRegex(),Ya._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Ya._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Ya._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])?)+(?![-_])/,Ya.autolink=ct(Ya.autolink).replace("scheme",Ya._scheme).replace("email",Ya._email).getRegex(),Ya._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Ya.tag=ct(Ya.tag).replace("comment",Ya._comment).replace("attribute",Ya._attribute).getRegex(),Ya._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Ya._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Ya._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Ya.link=ct(Ya.link).replace("label",Ya._label).replace("href",Ya._href).replace("title",Ya._title).getRegex(),Ya.reflink=ct(Ya.reflink).replace("label",Ya._label).replace("ref",Uc._label).getRegex(),Ya.nolink=ct(Ya.nolink).replace("ref",Uc._label).getRegex(),Ya.reflinkSearch=ct(Ya.reflinkSearch,"g").replace("reflink",Ya.reflink).replace("nolink",Ya.nolink).getRegex(),Ya.normal=Tn({},Ya),Ya.pedantic=Tn({},Ya.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:ct(/^!?\[(label)\]\((.*?)\)/).replace("label",Ya._label).getRegex(),reflink:ct(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ya._label).getRegex()}),Ya.gfm=Tn({},Ya.normal,{escape:ct(Ya.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\.5&&(Hn="x"+Hn.toString(16)),rs+="&#"+Hn+";";return rs}var Dc=function(){function la(os){this.tokens=[],this.tokens.links=Object.create(null),this.options=os||e.defaults,this.options.tokenizer=this.options.tokenizer||new za,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var Hn={block:Uc.normal,inline:Ya.normal};this.options.pedantic?(Hn.block=Uc.pedantic,Hn.inline=Ya.pedantic):this.options.gfm&&(Hn.block=Uc.gfm,this.options.breaks?Hn.inline=Ya.breaks:Hn.inline=Ya.gfm),this.tokenizer.rules=Hn}la.lex=function(Hn,tr){var ho=new la(tr);return ho.lex(Hn)},la.lexInline=function(Hn,tr){var ho=new la(tr);return ho.inlineTokens(Hn)};var rs=la.prototype;return rs.lex=function(Hn){Hn=Hn.replace(/\r\n|\r/g,` +`),this.blockTokens(Hn,this.tokens);for(var tr;tr=this.inlineQueue.shift();)this.inlineTokens(tr.src,tr.tokens);return this.tokens},rs.blockTokens=function(Hn,tr){var ho=this;tr===void 0&&(tr=[]),this.options.pedantic?Hn=Hn.replace(/\t/g," ").replace(/^ +$/gm,""):Hn=Hn.replace(/^( *)(\t+)/gm,function(Ho,Xu,oo){return Xu+" ".repeat(oo.length)});for(var no,ea,ar,pu;Hn;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(function(Ho){return(no=Ho.call({lexer:ho},Hn,tr))?(Hn=Hn.substring(no.raw.length),tr.push(no),!0):!1}))){if(no=this.tokenizer.space(Hn)){Hn=Hn.substring(no.raw.length),no.raw.length===1&&tr.length>0?tr[tr.length-1].raw+=` +`:tr.push(no);continue}if(no=this.tokenizer.code(Hn)){Hn=Hn.substring(no.raw.length),ea=tr[tr.length-1],ea&&(ea.type==="paragraph"||ea.type==="text")?(ea.raw+=` +`+no.raw,ea.text+=` +`+no.text,this.inlineQueue[this.inlineQueue.length-1].src=ea.text):tr.push(no);continue}if(no=this.tokenizer.fences(Hn)){Hn=Hn.substring(no.raw.length),tr.push(no);continue}if(no=this.tokenizer.heading(Hn)){Hn=Hn.substring(no.raw.length),tr.push(no);continue}if(no=this.tokenizer.hr(Hn)){Hn=Hn.substring(no.raw.length),tr.push(no);continue}if(no=this.tokenizer.blockquote(Hn)){Hn=Hn.substring(no.raw.length),tr.push(no);continue}if(no=this.tokenizer.list(Hn)){Hn=Hn.substring(no.raw.length),tr.push(no);continue}if(no=this.tokenizer.html(Hn)){Hn=Hn.substring(no.raw.length),tr.push(no);continue}if(no=this.tokenizer.def(Hn)){Hn=Hn.substring(no.raw.length),ea=tr[tr.length-1],ea&&(ea.type==="paragraph"||ea.type==="text")?(ea.raw+=` +`+no.raw,ea.text+=` +`+no.raw,this.inlineQueue[this.inlineQueue.length-1].src=ea.text):this.tokens.links[no.tag]||(this.tokens.links[no.tag]={href:no.href,title:no.title});continue}if(no=this.tokenizer.table(Hn)){Hn=Hn.substring(no.raw.length),tr.push(no);continue}if(no=this.tokenizer.lheading(Hn)){Hn=Hn.substring(no.raw.length),tr.push(no);continue}if(ar=Hn,this.options.extensions&&this.options.extensions.startBlock&&function(){var Ho=1/0,Xu=Hn.slice(1),oo=void 0;ho.options.extensions.startBlock.forEach(function(Bh){oo=Bh.call({lexer:this},Xu),typeof oo=="number"&&oo>=0&&(Ho=Math.min(Ho,oo))}),Ho<1/0&&Ho>=0&&(ar=Hn.substring(0,Ho+1))}(),this.state.top&&(no=this.tokenizer.paragraph(ar))){ea=tr[tr.length-1],pu&&ea.type==="paragraph"?(ea.raw+=` +`+no.raw,ea.text+=` +`+no.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=ea.text):tr.push(no),pu=ar.length!==Hn.length,Hn=Hn.substring(no.raw.length);continue}if(no=this.tokenizer.text(Hn)){Hn=Hn.substring(no.raw.length),ea=tr[tr.length-1],ea&&ea.type==="text"?(ea.raw+=` +`+no.raw,ea.text+=` +`+no.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=ea.text):tr.push(no);continue}if(Hn){var Yl="Infinite loop on byte: "+Hn.charCodeAt(0);if(this.options.silent){console.error(Yl);break}else throw new Error(Yl)}}return this.state.top=!0,tr},rs.inline=function(Hn,tr){return tr===void 0&&(tr=[]),this.inlineQueue.push({src:Hn,tokens:tr}),tr},rs.inlineTokens=function(Hn,tr){var ho=this;tr===void 0&&(tr=[]);var no,ea,ar,pu=Hn,Yl,Ho,Xu;if(this.tokens.links){var oo=Object.keys(this.tokens.links);if(oo.length>0)for(;(Yl=this.tokenizer.rules.inline.reflinkSearch.exec(pu))!=null;)oo.includes(Yl[0].slice(Yl[0].lastIndexOf("[")+1,-1))&&(pu=pu.slice(0,Yl.index)+"["+Dl("a",Yl[0].length-2)+"]"+pu.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Yl=this.tokenizer.rules.inline.blockSkip.exec(pu))!=null;)pu=pu.slice(0,Yl.index)+"["+Dl("a",Yl[0].length-2)+"]"+pu.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(Yl=this.tokenizer.rules.inline.escapedEmSt.exec(pu))!=null;)pu=pu.slice(0,Yl.index)+"++"+pu.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;Hn;)if(Ho||(Xu=""),Ho=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(function(du){return(no=du.call({lexer:ho},Hn,tr))?(Hn=Hn.substring(no.raw.length),tr.push(no),!0):!1}))){if(no=this.tokenizer.escape(Hn)){Hn=Hn.substring(no.raw.length),tr.push(no);continue}if(no=this.tokenizer.tag(Hn)){Hn=Hn.substring(no.raw.length),ea=tr[tr.length-1],ea&&no.type==="text"&&ea.type==="text"?(ea.raw+=no.raw,ea.text+=no.text):tr.push(no);continue}if(no=this.tokenizer.link(Hn)){Hn=Hn.substring(no.raw.length),tr.push(no);continue}if(no=this.tokenizer.reflink(Hn,this.tokens.links)){Hn=Hn.substring(no.raw.length),ea=tr[tr.length-1],ea&&no.type==="text"&&ea.type==="text"?(ea.raw+=no.raw,ea.text+=no.text):tr.push(no);continue}if(no=this.tokenizer.emStrong(Hn,pu,Xu)){Hn=Hn.substring(no.raw.length),tr.push(no);continue}if(no=this.tokenizer.codespan(Hn)){Hn=Hn.substring(no.raw.length),tr.push(no);continue}if(no=this.tokenizer.br(Hn)){Hn=Hn.substring(no.raw.length),tr.push(no);continue}if(no=this.tokenizer.del(Hn)){Hn=Hn.substring(no.raw.length),tr.push(no);continue}if(no=this.tokenizer.autolink(Hn,Vb)){Hn=Hn.substring(no.raw.length),tr.push(no);continue}if(!this.state.inLink&&(no=this.tokenizer.url(Hn,Vb))){Hn=Hn.substring(no.raw.length),tr.push(no);continue}if(ar=Hn,this.options.extensions&&this.options.extensions.startInline&&function(){var du=1/0,Ws=Hn.slice(1),lm=void 0;ho.options.extensions.startInline.forEach(function(C0){lm=C0.call({lexer:this},Ws),typeof lm=="number"&&lm>=0&&(du=Math.min(du,lm))}),du<1/0&&du>=0&&(ar=Hn.substring(0,du+1))}(),no=this.tokenizer.inlineText(ar,Xl)){Hn=Hn.substring(no.raw.length),no.raw.slice(-1)!=="_"&&(Xu=no.raw.slice(-1)),Ho=!0,ea=tr[tr.length-1],ea&&ea.type==="text"?(ea.raw+=no.raw,ea.text+=no.text):tr.push(no);continue}if(Hn){var Bh="Infinite loop on byte: "+Hn.charCodeAt(0);if(this.options.silent){console.error(Bh);break}else throw new Error(Bh)}}return tr},o(la,null,[{key:"rules",get:function(){return{block:Uc,inline:Ya}}}]),la}(),up=function(){function la(os){this.options=os||e.defaults}var rs=la.prototype;return rs.code=function(Hn,tr,ho){var no=(tr||"").match(/\S*/)[0];if(this.options.highlight){var ea=this.options.highlight(Hn,no);ea!=null&&ea!==Hn&&(ho=!0,Hn=ea)}return Hn=Hn.replace(/\n$/,"")+` +`,no?'
'+(ho?Hn:ee(Hn,!0))+`
+`:"
"+(ho?Hn:ee(Hn,!0))+`
+`},rs.blockquote=function(Hn){return`
+`+Hn+`
+`},rs.html=function(Hn){return Hn},rs.heading=function(Hn,tr,ho,no){if(this.options.headerIds){var ea=this.options.headerPrefix+no.slug(ho);return"'+Hn+" +`}return""+Hn+" +`},rs.hr=function(){return this.options.xhtml?`
+`:`
+`},rs.list=function(Hn,tr,ho){var no=tr?"ol":"ul",ea=tr&&ho!==1?' start="'+ho+'"':"";return"<"+no+ea+`> +`+Hn+" +`},rs.listitem=function(Hn){return"
  • "+Hn+`
  • +`},rs.checkbox=function(Hn){return" "},rs.paragraph=function(Hn){return"

    "+Hn+`

    +`},rs.table=function(Hn,tr){return tr&&(tr=""+tr+""),` + +`+Hn+` +`+tr+`
    +`},rs.tablerow=function(Hn){return` +`+Hn+` +`},rs.tablecell=function(Hn,tr){var ho=tr.header?"th":"td",no=tr.align?"<"+ho+' align="'+tr.align+'">':"<"+ho+">";return no+Hn+(" +`)},rs.strong=function(Hn){return""+Hn+""},rs.em=function(Hn){return""+Hn+""},rs.codespan=function(Hn){return""+Hn+""},rs.br=function(){return this.options.xhtml?"
    ":"
    "},rs.del=function(Hn){return""+Hn+""},rs.link=function(Hn,tr,ho){if(Hn=Yt(this.options.sanitize,this.options.baseUrl,Hn),Hn===null)return ho;var no='",no},rs.image=function(Hn,tr,ho){if(Hn=Yt(this.options.sanitize,this.options.baseUrl,Hn),Hn===null)return ho;var no=''+ho+'":">",no},rs.text=function(Hn){return Hn},la}(),Hv=function(){function la(){}var rs=la.prototype;return rs.strong=function(Hn){return Hn},rs.em=function(Hn){return Hn},rs.codespan=function(Hn){return Hn},rs.del=function(Hn){return Hn},rs.html=function(Hn){return Hn},rs.text=function(Hn){return Hn},rs.link=function(Hn,tr,ho){return""+ho},rs.image=function(Hn,tr,ho){return""+ho},rs.br=function(){return""},la}(),dc=function(){function la(){this.seen={}}var rs=la.prototype;return rs.serialize=function(Hn){return Hn.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},rs.getNextSafeSlug=function(Hn,tr){var ho=Hn,no=0;if(this.seen.hasOwnProperty(ho)){no=this.seen[Hn];do no++,ho=Hn+"-"+no;while(this.seen.hasOwnProperty(ho))}return tr||(this.seen[Hn]=no,this.seen[ho]=0),ho},rs.slug=function(Hn,tr){tr===void 0&&(tr={});var ho=this.serialize(Hn);return this.getNextSafeSlug(ho,tr.dryrun)},la}(),Qy=function(){function la(os){this.options=os||e.defaults,this.options.renderer=this.options.renderer||new up,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Hv,this.slugger=new dc}la.parse=function(Hn,tr){var ho=new la(tr);return ho.parse(Hn)},la.parseInline=function(Hn,tr){var ho=new la(tr);return ho.parseInline(Hn)};var rs=la.prototype;return rs.parse=function(Hn,tr){tr===void 0&&(tr=!0);var ho="",no,ea,ar,pu,Yl,Ho,Xu,oo,Bh,du,Ws,lm,C0,Ed,c0,of,AC,Y_,Bu,vp=Hn.length;for(no=0;no0&&c0.tokens[0].type==="paragraph"?(c0.tokens[0].text=Y_+" "+c0.tokens[0].text,c0.tokens[0].tokens&&c0.tokens[0].tokens.length>0&&c0.tokens[0].tokens[0].type==="text"&&(c0.tokens[0].tokens[0].text=Y_+" "+c0.tokens[0].tokens[0].text)):c0.tokens.unshift({type:"text",text:Y_}):Ed+=Y_),Ed+=this.parse(c0.tokens,C0),Bh+=this.renderer.listitem(Ed,AC,of);ho+=this.renderer.list(Bh,Ws,lm);continue}case"html":{ho+=this.renderer.html(du.text);continue}case"paragraph":{ho+=this.renderer.paragraph(this.parseInline(du.tokens));continue}case"text":{for(Bh=du.tokens?this.parseInline(du.tokens):du.text;no+1"u"||la===null)throw new Error("marked(): input parameter is undefined or null");if(typeof la!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(la)+", string expected");if(typeof rs=="function"&&(os=rs,rs=null),rs=Tn({},$f.defaults,rs||{}),$i(rs),os){var Hn=rs.highlight,tr;try{tr=Dc.lex(la,rs)}catch(pu){return os(pu)}var ho=function(Yl){var Ho;if(!Yl)try{rs.walkTokens&&$f.walkTokens(tr,rs.walkTokens),Ho=Qy.parse(tr,rs)}catch(Xu){Yl=Xu}return rs.highlight=Hn,Yl?os(Yl):os(null,Ho)};if(!Hn||Hn.length<3||(delete rs.highlight,!tr.length))return ho();var no=0;$f.walkTokens(tr,function(pu){pu.type==="code"&&(no++,setTimeout(function(){Hn(pu.text,pu.lang,function(Yl,Ho){if(Yl)return ho(Yl);Ho!=null&&Ho!==pu.text&&(pu.text=Ho,pu.escaped=!0),no--,no===0&&ho()})},0))}),no===0&&ho();return}function ea(pu){if(pu.message+=` +Please report this to https://github.com/markedjs/marked.`,rs.silent)return"

    An error occurred:

    "+ee(pu.message+"",!0)+"
    ";throw pu}try{var ar=Dc.lex(la,rs);if(rs.walkTokens){if(rs.async)return Promise.all($f.walkTokens(ar,rs.walkTokens)).then(function(){return Qy.parse(ar,rs)}).catch(ea);$f.walkTokens(ar,rs.walkTokens)}return Qy.parse(ar,rs)}catch(pu){ea(pu)}}$f.options=$f.setOptions=function(la){return Tn($f.defaults,la),w($f.defaults),$f},$f.getDefaults=b,$f.defaults=e.defaults,$f.use=function(){for(var la=arguments.length,rs=new Array(la),os=0;os"u"||la===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof la!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(la)+", string expected");rs=Tn({},$f.defaults,rs||{}),$i(rs);try{var os=Dc.lexInline(la,rs);return rs.walkTokens&&$f.walkTokens(os,rs.walkTokens),Qy.parseInline(os,rs)}catch(Hn){if(Hn.message+=` +Please report this to https://github.com/markedjs/marked.`,rs.silent)return"

    An error occurred:

    "+ee(Hn.message+"",!0)+"
    ";throw Hn}},$f.Parser=Qy,$f.parser=Qy.parse,$f.Renderer=up,$f.TextRenderer=Hv,$f.Lexer=Dc,$f.lexer=Dc.lex,$f.Tokenizer=za,$f.Slugger=dc,$f.parse=$f;var C2=$f.options,En=$f.setOptions,IE=$f.use,Pl=$f.walkTokens,lk=$f.parseInline,On=$f,E$=Qy.parse,uu=Dc.lex;e.Lexer=Dc,e.Parser=Qy,e.Renderer=up,e.Slugger=dc,e.TextRenderer=Hv,e.Tokenizer=za,e.getDefaults=b,e.lexer=uu,e.marked=$f,e.options=C2,e.parse=On,e.parseInline=lk,e.parser=E$,e.setOptions=En,e.use=IE,e.walkTokens=Pl,Object.defineProperty(e,"__esModule",{value:!0})})})();BAn=r8.Lexer||exports.Lexer,jAn=r8.Parser||exports.Parser,WAn=r8.Renderer||exports.Renderer,zAn=r8.Slugger||exports.Slugger,VAn=r8.TextRenderer||exports.TextRenderer,HAn=r8.Tokenizer||exports.Tokenizer,UAn=r8.getDefaults||exports.getDefaults,JAn=r8.lexer||exports.lexer,l$=r8.marked||exports.marked,qAn=r8.options||exports.options,$An=r8.parse||exports.parse,GAn=r8.parseInline||exports.parseInline,KAn=r8.parser||exports.parser,XAn=r8.setOptions||exports.setOptions,YAn=r8.use||exports.use,QAn=r8.walkTokens||exports.walkTokens});function lwi(l){return JSON.stringify(l,cWi)}function Rft(l){let e=JSON.parse(l);return e=wri(e),e}function cWi(l,e){return e instanceof RegExp?{$mid:2,source:e.source,flags:e.flags}:e}function wri(l,e=0){if(!l||e>200)return l;if(typeof l=="object"){switch(l.$mid){case 1:return qc.revive(l);case 2:return new RegExp(l.source,l.flags);case 17:return new Date(l.source)}if(l instanceof xVe||l instanceof Uint8Array)return l;if(Array.isArray(l))for(let r=0;r{CVe();s0()});function exe(l,e={},r={}){var o,c;let d=new Fr,h=!1,b=WLt(e),w=function(Je){let Xe;try{Xe=Rft(decodeURIComponent(Je))}catch{}return Xe?(Xe=rDt(Xe,ct=>{if(l.uris&&l.uris[ct])return qc.revive(l.uris[ct])}),encodeURIComponent(JSON.stringify(Xe))):Je},N=function(Je,Xe){let ct=l.uris&&l.uris[Je],Ct=qc.revive(ct);return Xe?Je.startsWith(Vu.data+":")?Je:(Ct||(Ct=qc.parse(Je)),ZIt.uriToBrowserUri(Ct).toString(!0)):!Ct||qc.parse(Je).toString()===Ct.toString()?Je:(Ct.query&&(Ct=Ct.with({query:w(Ct.query)})),Ct.toString())},L=new l$.Renderer;L.image=Tri.image,L.link=Tri.link,L.paragraph=Tri.paragraph;let B=[],F=[];if(e.codeBlockRendererSync?L.code=(Je,Xe)=>{let ct=Fft.nextId(),Ct=e.codeBlockRendererSync(uwi(Xe),Je);return F.push([ct,Ct]),`
    ${Gbe(Je)}
    `}:e.codeBlockRenderer&&(L.code=(Je,Xe)=>{let ct=Fft.nextId(),Ct=e.codeBlockRenderer(uwi(Xe),Je);return B.push(Ct.then(Nt=>[ct,Nt])),`
    ${Gbe(Je)}
    `}),e.actionHandler){let Je=function(Ct){let Nt=Ct.target;if(!(Nt.tagName!=="A"&&(Nt=Nt.parentElement,!Nt||Nt.tagName!=="A")))try{let Yt=Nt.dataset.href;Yt&&(l.baseUri&&(Yt=Eri(qc.from(l.baseUri),Yt)),e.actionHandler.callback(Yt,Ct))}catch(Yt){dl(Yt)}finally{Ct.preventDefault()}},Xe=e.actionHandler.disposables.add(new L_(b,"click")),ct=e.actionHandler.disposables.add(new L_(b,"auxclick"));e.actionHandler.disposables.add(gs.any(Xe.event,ct.event)(Ct=>{let Nt=new PD(Gc(b),Ct);!Nt.leftButton&&!Nt.middleButton||Je(Nt)})),e.actionHandler.disposables.add(Jr(b,"keydown",Ct=>{let Nt=new Jp(Ct);!Nt.equals(10)&&!Nt.equals(3)||Je(Nt)}))}l.supportHtml||(r.sanitizer=Je=>{var Xe;return!((Xe=e.sanitizerOptions)===null||Xe===void 0)&&Xe.replaceWithPlaintext?Gbe(Je):(l.isTrusted?Je.match(/^(]+>)|(<\/\s*span>)$/):void 0)?Je:""},r.sanitize=!0,r.silent=!0),r.renderer=L;let Y=(o=l.value)!==null&&o!==void 0?o:"";Y.length>1e5&&(Y=`${Y.substr(0,1e5)}\u2026`),l.supportThemeIcons&&(Y=rwi(Y));let Z;if(e.fillInIncompleteTokens){let Je={...l$.defaults,...r},Xe=l$.lexer(Y,Je),ct=bWi(Xe);Z=l$.parser(ct,Je)}else Z=l$.parse(Y,r);l.supportThemeIcons&&(Z=PB(Z).map(Xe=>typeof Xe=="string"?Xe:Xe.outerHTML).join(""));let Te=new DOMParser().parseFromString(Dri({isTrusted:l.isTrusted,...e.sanitizerOptions},Z),"text/html");if(Te.body.querySelectorAll("img, audio, video, source").forEach(Je=>{let Xe=Je.getAttribute("src");if(Xe){let ct=Xe;try{l.baseUri&&(ct=Eri(qc.from(l.baseUri),ct))}catch{}if(Je.setAttribute("src",N(ct,!0)),e.remoteImageIsAllowed){let Ct=qc.parse(ct);Ct.scheme!==Vu.file&&Ct.scheme!==Vu.data&&!e.remoteImageIsAllowed(Ct)&&Je.replaceWith(qo("",void 0,Je.outerHTML))}}}),Te.body.querySelectorAll("a").forEach(Je=>{let Xe=Je.getAttribute("href");if(Je.setAttribute("href",""),!Xe||/^data:|javascript:/i.test(Xe)||/^command:/i.test(Xe)&&!l.isTrusted||/^command:(\/\/\/)?_workbench\.downloadResource/i.test(Xe))Je.replaceWith(...Je.childNodes);else{let ct=N(Xe,!1);l.baseUri&&(ct=Eri(qc.from(l.baseUri),Xe)),Je.dataset.href=ct}}),b.innerHTML=Dri({isTrusted:l.isTrusted,...e.sanitizerOptions},Te.body.innerHTML),B.length>0)Promise.all(B).then(Je=>{var Xe,ct;if(h)return;let Ct=new Map(Je),Nt=b.querySelectorAll("div[data-code]");for(let Yt of Nt){let jt=Ct.get((Xe=Yt.dataset.code)!==null&&Xe!==void 0?Xe:"");jt&&IS(Yt,jt)}(ct=e.asyncRenderCallback)===null||ct===void 0||ct.call(e)});else if(F.length>0){let Je=new Map(F),Xe=b.querySelectorAll("div[data-code]");for(let ct of Xe){let Ct=Je.get((c=ct.dataset.code)!==null&&c!==void 0?c:"");Ct&&IS(ct,Ct)}}if(e.asyncRenderCallback)for(let Je of b.getElementsByTagName("img")){let Xe=d.add(Jr(Je,"load",()=>{Xe.dispose(),e.asyncRenderCallback()}))}return{element:b,dispose:()=>{h=!0,d.dispose()}}}function uwi(l){if(!l)return"";let e=l.split(/[\s+|:|,|\{|\?]/,1);return e.length?e[0]:l}function Eri(l,e){return/^\w[\w\d+.-]*:/.test(e)?e:l.path.endsWith("/")?Oii(l,e).toString():Oii(USe(l),e).toString()}function Dri(l,e){let{config:r,allowedSchemes:o}=dWi(l),c=new Fr;c.add(dwi("uponSanitizeAttribute",(d,h)=>{var b;if(h.attrName==="style"||h.attrName==="class"){if(d.tagName==="SPAN"){if(h.attrName==="style"){h.keepAttr=/^(color\:(#[0-9a-fA-F]+|var\(--vscode(-[a-zA-Z]+)+\));)?(background-color\:(#[0-9a-fA-F]+|var\(--vscode(-[a-zA-Z]+)+\));)?$/.test(h.attrValue);return}else if(h.attrName==="class"){h.keepAttr=/^codicon codicon-[a-z\-]+( codicon-modifier-[a-z\-]+)?$/.test(h.attrValue);return}}h.keepAttr=!1;return}else if(d.tagName==="INPUT"&&((b=d.attributes.getNamedItem("type"))===null||b===void 0?void 0:b.value)==="checkbox"){if(h.attrName==="type"&&h.attrValue==="checkbox"||h.attrName==="disabled"||h.attrName==="checked"){h.keepAttr=!0;return}h.keepAttr=!1}})),c.add(dwi("uponSanitizeElement",(d,h)=>{var b,w;if(h.tagName==="input"&&(((b=d.attributes.getNamedItem("type"))===null||b===void 0?void 0:b.value)==="checkbox"?d.setAttribute("disabled",""):l.replaceWithPlaintext||(w=d.parentElement)===null||w===void 0||w.removeChild(d)),l.replaceWithPlaintext&&!h.allowedTags[h.tagName]&&h.tagName!=="body"&&d.parentElement){let N,L;if(h.tagName==="#comment")N=``;else{let Z=lWi.includes(h.tagName),ee=d.attributes.length?" "+Array.from(d.attributes).map(Te=>`${Te.name}="${Te.value}"`).join(" "):"";N=`<${h.tagName}${ee}>`,Z||(L=``)}let B=document.createDocumentFragment(),F=d.parentElement.ownerDocument.createTextNode(N);B.appendChild(F);let Y=L?d.parentElement.ownerDocument.createTextNode(L):void 0;for(;d.firstChild;)B.appendChild(d.firstChild);Y&&B.appendChild(Y),d.parentElement.replaceChild(B,d)}})),c.add(V0i(o));try{return GIt(e,{...r,RETURN_TRUSTED_TYPE:!0})}finally{c.dispose()}}function dWi(l){var e;let r=[Vu.http,Vu.https,Vu.mailto,Vu.data,Vu.file,Vu.vscodeFileResource,Vu.vscodeRemote,Vu.vscodeRemoteResource];return l.isTrusted&&r.push(Vu.command),{config:{ALLOWED_TAGS:(e=l.allowedTags)!==null&&e!==void 0?e:[...H0i],ALLOWED_ATTR:uWi,ALLOW_UNKNOWN_PROTOCOLS:!0},allowedSchemes:r}}function fwi(l){return typeof l=="string"?l:fWi(l)}function fWi(l,e){var r;let o=(r=l.value)!==null&&r!==void 0?r:"";o.length>1e5&&(o=`${o.substr(0,1e5)}\u2026`);let c=l$.parse(o,{renderer:e?mWi.value:pWi.value}).replace(/&(#\d+|[a-zA-Z]+);/g,d=>{var h;return(h=_Wi.get(d))!==null&&h!==void 0?h:d});return Dri({isTrusted:!1},c).toString()}function _wi(){let l=new l$.Renderer;return l.code=e=>e,l.blockquote=e=>e,l.html=e=>"",l.heading=(e,r,o)=>e+` +`,l.hr=()=>"",l.list=(e,r)=>e,l.listitem=e=>e+` +`,l.paragraph=e=>e+` +`,l.table=(e,r)=>e+r+` +`,l.tablerow=e=>e,l.tablecell=(e,r)=>e+" ",l.strong=e=>e,l.em=e=>e,l.codespan=e=>e,l.br=()=>` +`,l.del=e=>e,l.image=(e,r,o)=>"",l.text=e=>e,l.link=(e,r,o)=>o,l}function Bft(l){let e="";return l.forEach(r=>{e+=r.raw}),e}function pwi(l){var e,r;if(l.tokens)for(let o=l.tokens.length-1;o>=0;o--){let c=l.tokens[o];if(c.type==="text"){let d=c.raw.split(` +`),h=d[d.length-1];if(h.includes("`"))return CWi(l);if(h.includes("**"))return IWi(l);if(h.match(/\*\w/))return kWi(l);if(h.match(/(^|\s)__\w/))return NWi(l);if(h.match(/(^|\s)_\w/))return wWi(l);if(hWi(h)||gWi(h)&&l.tokens.slice(0,o).some(b=>b.type==="text"&&b.raw.match(/\[[^\]]*$/))){let b=l.tokens.slice(o+1);return((e=b[0])===null||e===void 0?void 0:e.type)==="link"&&((r=b[1])===null||r===void 0?void 0:r.type)==="text"&&b[1].raw.match(/^ *"[^"]*$/)||h.match(/^[^"]* +"[^"]*$/)?EWi(l):TWi(l)}else if(h.match(/(^|\s)\[\w*/))return DWi(l)}}}function hWi(l){return!!l.match(/(^|\s)\[.*\]\(\w*/)}function gWi(l){return!!l.match(/^[^\[]*\]\([^\)]*$/)}function yWi(l){var e;let r=l.items[l.items.length-1],o=r.tokens?r.tokens[r.tokens.length-1]:void 0,c;if(o?.type==="text"&&!("inRawBlock"in r)&&(c=pwi(o)),!c||c.type!=="paragraph")return;let d=Bft(l.items.slice(0,-1)),h=(e=r.raw.match(/^(\s*(-|\d+\.) +)/))===null||e===void 0?void 0:e[0];if(!h)return;let b=h+Bft(r.tokens.slice(0,-1))+c.raw,w=l$.lexer(d+b)[0];if(w.type==="list")return w}function bWi(l){for(let e=0;e"u"&&h.match(/^\s*\|/)){let b=h.match(/(\|[^\|]+)(?=\||$)/g);b&&(o=b.length)}else if(typeof o=="number")if(h.match(/^\s*\|/)){if(d!==r.length-1)return;c=!0}else return}if(typeof o=="number"&&o>0){let d=c?r.slice(0,-1).join(` +`):e,h=!!d.match(/\|\s*$/),b=d+(h?"":"|")+` +|${" --- |".repeat(o)}`;return l$.lexer(b)}}function dwi(l,e){return KIt(l,e),Ma(()=>XIt(l))}var Tri,lWi,uWi,_Wi,pWi,mWi,vWi,jft=ti(()=>{nc();YIt();n$();sri();lA();vB();qfe();Du();xc();d3();_Le();Mft();VY();co();cwi();GLt();RP();YL();VP();Mu();s0();Tri=Object.freeze({image:(l,e,r)=>{let o=[],c=[];return l&&({href:l,dimensions:o}=awi(l),c.push(`src="${Oft(l)}"`)),r&&c.push(`alt="${Oft(r)}"`),e&&c.push(`title="${Oft(e)}"`),o.length&&(c=c.concat(o)),""},paragraph:l=>`

    ${l}

    `,link:(l,e,r)=>typeof l!="string"?"":(l===r&&(r=$Lt(r)),e=typeof e=="string"?Oft($Lt(e)):"",l=$Lt(l),l=l.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),`
    ${r}`)});lWi=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];uWi=["align","autoplay","alt","checked","class","controls","data-code","data-href","disabled","draggable","height","href","loop","muted","playsinline","poster","src","style","target","title","type","width","start"];_Wi=new Map([[""",'"'],[" "," "],["&","&"],["'","'"],["<","<"],[">",">"]]);pWi=new Bw(l=>_wi()),mWi=new Bw(()=>{let l=_wi();return l.code=e=>"\n```"+e+"```\n",l});vWi=3});var mwi=ti(()=>{});async function Wft(l,e,r){try{return await l.open(e,{fromUserGesture:!0,allowContributedOpeners:!0,allowCommands:LWi(r)})}catch(o){return dl(o),!1}}function LWi(l){return l===!0?!0:l&&Array.isArray(l.enabledCommands)?l.enabledCommands:!1}var PWi,hwi,Iri,o8,Gfe=ti(()=>{jft();Bne();Du();xc();co();mwi();xB();FD();SV();xni();n8();PWi=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},hwi=function(l,e){return function(r,o){e(r,o,l)}},o8=Iri=class{constructor(e,r,o){this._options=e,this._languageService=r,this._openerService=o,this._onDidRenderAsync=new wn,this.onDidRenderAsync=this._onDidRenderAsync.event}dispose(){this._onDidRenderAsync.dispose()}render(e,r,o){if(!e)return{element:document.createElement("span"),dispose:()=>{}};let c=new Fr,d=c.add(exe(e,{...this._getRenderOptions(e,c),...r},o));return d.element.classList.add("rendered-markdown"),{element:d.element,dispose:()=>c.dispose()}}_getRenderOptions(e,r){return{codeBlockRenderer:async(o,c)=>{var d,h,b;let w;o?w=this._languageService.getLanguageIdByLanguageName(o):this._options.editor&&(w=(d=this._options.editor.getModel())===null||d===void 0?void 0:d.getLanguageId()),w||(w=y2);let N=await XCi(this._languageService,c,w),L=document.createElement("span");if(L.innerHTML=(b=(h=Iri._ttpTokenizer)===null||h===void 0?void 0:h.createHTML(N))!==null&&b!==void 0?b:N,this._options.editor){let B=this._options.editor.getOption(50);Bb(L,B)}else this._options.codeBlockFontFamily&&(L.style.fontFamily=this._options.codeBlockFontFamily);return this._options.codeBlockFontSize!==void 0&&(L.style.fontSize=this._options.codeBlockFontSize),L},asyncRenderCallback:()=>this._onDidRenderAsync.fire(),actionHandler:{callback:o=>Wft(this._openerService,o,e.isTrusted),disposables:r}}}};o8._ttpTokenizer=r3("tokenizeToString",{createHTML(l){return l}});o8=Iri=PWi([hwi(1,km),hwi(2,NC)],o8)});var OWi,zft,Tre,KLt,XLt,Nri,gwi=ti(()=>{Pki();co();xc();nc();f1();_y();TT();nUe();IV();n8();bl();Gfe();d3();ya();X_();KO();gA();OWi=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},zft=function(l,e){return function(r,o){e(r,o,l)}},Tre=qo,KLt=class extends ew{get _targetWindow(){return Gc(this._target.targetElements[0])}get _targetDocumentElement(){return Gc(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 this._hoverPosition===2?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,r,o,c,d,h){var b,w,N,L,B,F,Y,Z;super(),this._keybindingService=r,this._configurationService=o,this._openerService=c,this._instantiationService=d,this._accessibilityService=h,this._messageListeners=new Fr,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 wn),this._onRequestLayout=this._register(new wn),this._linkHandler=e.linkHandler||(Ct=>Wft(this._openerService,Ct,_7(e.content)?e.content.isTrusted:void 0)),this._target="targetElements"in e.target?e.target:new Nri(e.target),this._hoverPointer=!((b=e.appearance)===null||b===void 0)&&b.showPointer?Tre("div.workbench-hover-pointer"):void 0,this._hover=this._register(new GSe),this._hover.containerDomNode.classList.add("workbench-hover","fadeIn"),!((w=e.appearance)===null||w===void 0)&&w.compact&&this._hover.containerDomNode.classList.add("workbench-hover","compact"),!((N=e.appearance)===null||N===void 0)&&N.skipFadeInAnimation&&this._hover.containerDomNode.classList.add("skip-fade-in"),e.additionalClasses&&this._hover.containerDomNode.classList.add(...e.additionalClasses),!((L=e.position)===null||L===void 0)&&L.forcePosition&&(this._forcePosition=!0),e.trapFocus&&(this._enableFocusTraps=!0),this._hoverPosition=(F=(B=e.position)===null||B===void 0?void 0:B.hoverPosition)!==null&&F!==void 0?F:3,this.onmousedown(this._hover.containerDomNode,Ct=>Ct.stopPropagation()),this.onkeydown(this._hover.containerDomNode,Ct=>{Ct.equals(9)&&this.dispose()}),this._register(Jr(this._targetWindow,"blur",()=>this.dispose()));let ee=Tre("div.hover-row.markdown-hover"),Te=Tre("div.hover-contents");if(typeof e.content=="string")Te.textContent=e.content,Te.style.whiteSpace="pre-wrap";else if(Wv(e.content))Te.appendChild(e.content),Te.classList.add("html-hover-contents");else{let Ct=e.content,Nt=this._instantiationService.createInstance(o8,{codeBlockFontFamily:this._configurationService.getValue("editor").fontFamily||sA.fontFamily}),{element:Yt}=Nt.render(Ct,{actionHandler:{callback:jt=>this._linkHandler(jt),disposables:this._messageListeners},asyncRenderCallback:()=>{Te.classList.add("code-hover-contents"),this.layout(),this._onRequestLayout.fire()}});Te.appendChild(Yt)}if(ee.appendChild(Te),this._hover.contentsDomNode.appendChild(ee),e.actions&&e.actions.length>0){let Ct=Tre("div.hover-row.status-bar"),Nt=Tre("div.actions");e.actions.forEach(Yt=>{let jt=this._keybindingService.lookupKeybinding(Yt.commandId),mi=jt?jt.getLabel():null;iUe.render(Nt,{label:Yt.label,commandId:Yt.commandId,run:_n=>{Yt.run(_n),this.dispose()},iconClass:Yt.iconClass},mi)}),Ct.appendChild(Nt),this._hover.containerDomNode.appendChild(Ct)}this._hoverContainer=Tre("div.workbench-hover-container"),this._hoverPointer&&this._hoverContainer.appendChild(this._hoverPointer),this._hoverContainer.appendChild(this._hover.containerDomNode);let Je;if(e.actions&&e.actions.length>0?Je=!1:((Y=e.persistence)===null||Y===void 0?void 0:Y.hideOnHover)===void 0?Je=typeof e.content=="string"||_7(e.content)&&!e.content.value.includes("](")&&!e.content.value.includes(""):Je=e.persistence.hideOnHover,Je&&(!((Z=e.appearance)===null||Z===void 0)&&Z.showHoverHint)){let Ct=Tre("div.hover-row.status-bar"),Nt=Tre("div.info");Nt.textContent=ce("hoverhint","Hold {0} key to mouse over",md?"Option":"Alt"),Ct.appendChild(Nt),this._hover.containerDomNode.appendChild(Ct)}let Xe=[...this._target.targetElements];Je||Xe.push(this._hoverContainer);let ct=this._register(new XLt(Xe));if(this._register(ct.onMouseOut(()=>{this._isLocked||this.dispose()})),Je){let Ct=[...this._target.targetElements,this._hoverContainer];this._lockMouseTracker=this._register(new XLt(Ct)),this._register(this._lockMouseTracker.onMouseOut(()=>{this._isLocked||this.dispose()}))}else this._lockMouseTracker=ct}addFocusTrap(){if(!this._enableFocusTraps||this._addedFocusTrap)return;this._addedFocusTrap=!0;let e=this._hover.containerDomNode,r=this.findLastFocusableChild(this._hover.containerDomNode);if(r){let o=hVe(this._hoverContainer,Tre("div")),c=Ro(this._hoverContainer,Tre("div"));o.tabIndex=0,c.tabIndex=0,this._register(Jr(c,"focus",d=>{e.focus(),d.preventDefault()})),this._register(Jr(o,"focus",d=>{r.focus(),d.preventDefault()}))}}findLastFocusableChild(e){if(e.hasChildNodes())for(let r=0;r=0)return d}let c=this.findLastFocusableChild(o);if(c)return c}}render(e){var r;e.appendChild(this._hoverContainer);let c=this._hoverContainer.contains(this._hoverContainer.ownerDocument.activeElement)&&jLt(this._configurationService.getValue("accessibility.verbosity.hover")===!0&&this._accessibilityService.isScreenReaderOptimized(),(r=this._keybindingService.lookupKeybinding("editor.action.accessibleView"))===null||r===void 0?void 0:r.getAriaLabel());c&&c3(c),this.layout(),this.addFocusTrap()}layout(){this._hover.containerDomNode.classList.remove("right-aligned"),this._hover.contentsDomNode.style.maxHeight="";let e=L=>{let B=nNt(L),F=L.getBoundingClientRect();return{top:F.top*B,bottom:F.bottom*B,right:F.right*B,left:F.left*B}},r=this._target.targetElements.map(L=>e(L)),{top:o,right:c,bottom:d,left:h}=r[0],b=c-h,w=d-o,N={top:o,right:c,bottom:d,left:h,width:b,height:w,center:{x:h+b/2,y:o+w/2}};if(this.adjustHorizontalHoverPosition(N),this.adjustVerticalHoverPosition(N),this.adjustHoverMaxHeight(N),this._hoverContainer.style.padding="",this._hoverContainer.style.margin="",this._hoverPointer){switch(this._hoverPosition){case 1:N.left+=3,N.right+=3,this._hoverContainer.style.paddingLeft="3px",this._hoverContainer.style.marginLeft="-3px";break;case 0:N.left-=3,N.right-=3,this._hoverContainer.style.paddingRight="3px",this._hoverContainer.style.marginRight="-3px";break;case 2:N.top+=3,N.bottom+=3,this._hoverContainer.style.paddingTop="3px",this._hoverContainer.style.marginTop="-3px";break;case 3:N.top-=3,N.bottom-=3,this._hoverContainer.style.paddingBottom="3px",this._hoverContainer.style.marginBottom="-3px";break}N.center.x=N.left+b/2,N.center.y=N.top+w/2}this.computeXCordinate(N),this.computeYCordinate(N),this._hoverPointer&&(this._hoverPointer.classList.remove("top"),this._hoverPointer.classList.remove("left"),this._hoverPointer.classList.remove("right"),this._hoverPointer.classList.remove("bottom"),this.setHoverPointerPosition(N)),this._hover.onContentsChanged()}computeXCordinate(e){let r=this._hover.containerDomNode.clientWidth+2;this._target.x!==void 0?this._x=this._target.x:this._hoverPosition===1?this._x=e.right:this._hoverPosition===0?this._x=e.left-r:(this._hoverPointer?this._x=e.center.x-this._hover.containerDomNode.clientWidth/2:this._x=e.left,this._x+r>=this._targetDocumentElement.clientWidth&&(this._hover.containerDomNode.classList.add("right-aligned"),this._x=Math.max(this._targetDocumentElement.clientWidth-r-2,this._targetDocumentElement.clientLeft))),this._xthis._targetWindow.innerHeight&&(this._y=e.bottom)}adjustHorizontalHoverPosition(e){if(this._target.x!==void 0)return;let r=this._hoverPointer?3:0;if(this._forcePosition){let o=r+2;this._hoverPosition===1?this._hover.containerDomNode.style.maxWidth=`${this._targetDocumentElement.clientWidth-e.right-o}px`:this._hoverPosition===0&&(this._hover.containerDomNode.style.maxWidth=`${e.left-o}px`);return}this._hoverPosition===1?this._targetDocumentElement.clientWidth-e.right=this._hover.containerDomNode.clientWidth+r?this._hoverPosition=0:this._hoverPosition=2):this._hoverPosition===0&&(e.left=this._hover.containerDomNode.clientWidth+r?this._hoverPosition=1:this._hoverPosition=2),e.left-this._hover.containerDomNode.clientWidth-r<=this._targetDocumentElement.clientLeft&&(this._hoverPosition=1))}adjustVerticalHoverPosition(e){if(this._target.y!==void 0||this._forcePosition)return;let r=this._hoverPointer?3:0;this._hoverPosition===3?e.top-this._hover.containerDomNode.clientHeight-r<0&&(this._hoverPosition=2):this._hoverPosition===2&&e.bottom+this._hover.containerDomNode.clientHeight+r>this._targetWindow.innerHeight&&(this._hoverPosition=3)}adjustHoverMaxHeight(e){let r=this._targetWindow.innerHeight/2;if(this._forcePosition){let o=(this._hoverPointer?3:0)+2;this._hoverPosition===3?r=Math.min(r,e.top-o):this._hoverPosition===2&&(r=Math.min(r,this._targetWindow.innerHeight-e.bottom-o))}if(this._hover.containerDomNode.style.maxHeight=`${r}px`,this._hover.contentsDomNode.clientHeighte.height?this._hoverPointer.style.top=`${e.center.y-(this._y-r)-3}px`:this._hoverPointer.style.top=`${Math.round(r/2)-3}px`;break}case 3:case 2:{this._hoverPointer.classList.add(this._hoverPosition===3?"bottom":"top");let r=this._hover.containerDomNode.clientWidth,o=Math.round(r/2)-3,c=this._x+o;(ce.right)&&(o=e.center.x-this._x-3),this._hoverPointer.style.left=`${o}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}};KLt=OWi([zft(1,Jd),zft(2,_u),zft(3,NC),zft(4,Pa),zft(5,ck)],KLt);XLt=class extends ew{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 wn),this._elements.forEach(r=>this.onmouseover(r,()=>this._onTargetMouseOver(r))),this._elements.forEach(r=>this.onmouseleave(r,()=>this._onTargetMouseLeave(r)))}_onTargetMouseOver(e){this._isMouseIn=!0,this._clearEvaluateMouseStateTimeout(e)}_onTargetMouseLeave(e){this._isMouseIn=!1,this._evaluateMouseState(e)}_evaluateMouseState(e){this._clearEvaluateMouseStateTimeout(e),this._mouseTimeout=Gc(e).setTimeout(()=>this._fireIfMouseOutside(),0)}_clearEvaluateMouseStateTimeout(e){this._mouseTimeout&&(Gc(e).clearTimeout(this._mouseTimeout),this._mouseTimeout=void 0)}_fireIfMouseOutside(){this._isMouseIn||this._onMouseOut.fire()}},Nri=class{constructor(e){this._element=e,this.targetElements=[this._element]}dispose(){}}});var zD,Vft=ti(()=>{(function(l){function e(d,h){if(d.start>=h.end||h.start>=d.end)return{start:0,end:0};let b=Math.max(d.start,h.start),w=Math.min(d.end,h.end);return w-b<=0?{start:0,end:0}:{start:b,end:w}}l.intersect=e;function r(d){return d.end-d.start<=0}l.isEmpty=r;function o(d,h){return!r(e(d,h))}l.intersects=o;function c(d,h){let b=[],w={start:d.start,end:Math.min(h.start,d.end)},N={start:Math.max(h.end,d.start),end:d.end};return r(w)||b.push(w),r(N)||b.push(N),b}l.relativeComplement=c})(zD||(zD={}))});var ywi=ti(()=>{});function FWi(l){let e=l;return!!e&&typeof e.x=="number"&&typeof e.y=="number"}function mLe(l,e,r){let o=r.mode===ixe.ALIGN?r.offset:r.offset+r.size,c=r.mode===ixe.ALIGN?r.offset+r.size:r.offset;return r.position===0?e<=l-o?o:e<=c?c-e:Math.max(l-e,0):e<=c?c-e:e<=l-o?o:0}var ixe,sUe,MWi,Ari=ti(()=>{MIt();nc();co();X_();Vft();ywi();(function(l){l[l.AVOID=0]="AVOID",l[l.ALIGN=1]="ALIGN"})(ixe||(ixe={}));sUe=class l extends tn{constructor(e,r){super(),this.container=null,this.useFixedPosition=!1,this.useShadowDOM=!1,this.delegate=null,this.toDisposeOnClean=tn.None,this.toDisposeOnSetContainer=tn.None,this.shadowRoot=null,this.shadowRootHostElement=null,this.view=qo(".context-view"),OD(this.view),this.setContainer(e,r),this._register(Ma(()=>this.setContainer(null,1)))}setContainer(e,r){var o;this.useFixedPosition=r!==1;let c=this.useShadowDOM;if(this.useShadowDOM=r===3,!(e===this.container&&c===this.useShadowDOM)&&(this.container&&(this.toDisposeOnSetContainer.dispose(),this.shadowRoot?(this.shadowRoot.removeChild(this.view),this.shadowRoot=null,(o=this.shadowRootHostElement)===null||o===void 0||o.remove(),this.shadowRootHostElement=null):this.container.removeChild(this.view),this.container=null),e)){if(this.container=e,this.useShadowDOM){this.shadowRootHostElement=qo(".shadow-root-host"),this.container.appendChild(this.shadowRootHostElement),this.shadowRoot=this.shadowRootHostElement.attachShadow({mode:"open"});let h=document.createElement("style");h.textContent=MWi,this.shadowRoot.appendChild(h),this.shadowRoot.appendChild(this.view),this.shadowRoot.appendChild(qo("slot"))}else this.container.appendChild(this.view);let d=new Fr;l.BUBBLE_UP_EVENTS.forEach(h=>{d.add(qh(this.container,h,b=>{this.onDOMEvent(b,!1)}))}),l.BUBBLE_DOWN_EVENTS.forEach(h=>{d.add(qh(this.container,h,b=>{this.onDOMEvent(b,!0)},!0))}),this.toDisposeOnSetContainer=d}}show(e){var r,o,c;this.isVisible()&&this.hide(),DS(this.view),this.view.className="context-view monaco-component",this.view.style.top="0px",this.view.style.left="0px",this.view.style.zIndex=`${2575+((r=e.layer)!==null&&r!==void 0?r:0)}`,this.view.style.position=this.useFixedPosition?"fixed":"absolute",BI(this.view),this.toDisposeOnClean=e.render(this.view)||tn.None,this.delegate=e,this.doLayout(),(c=(o=this.delegate).focus)===null||c===void 0||c.call(o)}getViewElement(){return this.view}layout(){var e,r;if(this.isVisible()){if(this.delegate.canRelayout===!1&&!(b6&&sVe.pointerEvents)){this.hide();return}(r=(e=this.delegate)===null||e===void 0?void 0:e.layout)===null||r===void 0||r.call(e),this.doLayout()}}doLayout(){if(!this.isVisible())return;let e=this.delegate.getAnchor(),r;if(Wv(e)){let F=_g(e),Y=nNt(e);r={top:F.top*Y,left:F.left*Y,width:F.width*Y,height:F.height*Y}}else FWi(e)?r={top:e.y,left:e.x,width:e.width||1,height:e.height||2}:r={top:e.posy,left:e.posx,width:2,height:2};let o=dA(this.view),c=hV(this.view),d=this.delegate.anchorPosition||0,h=this.delegate.anchorAlignment||0,b=this.delegate.anchorAxisAlignment||0,w,N,L=_Ve();if(b===0){let F={offset:r.top-L.pageYOffset,size:r.height,position:d===0?0:1},Y={offset:r.left,size:r.width,position:h===0?0:1,mode:ixe.ALIGN};w=mLe(L.innerHeight,c,F)+L.pageYOffset,zD.intersects({start:w,end:w+c},{start:F.offset,end:F.offset+F.size})&&(Y.mode=ixe.AVOID),N=mLe(L.innerWidth,o,Y)}else{let F={offset:r.left,size:r.width,position:h===0?0:1},Y={offset:r.top,size:r.height,position:d===0?0:1,mode:ixe.ALIGN};N=mLe(L.innerWidth,o,F),zD.intersects({start:N,end:N+o},{start:F.offset,end:F.offset+F.size})&&(Y.mode=ixe.AVOID),w=mLe(L.innerHeight,c,Y)+L.pageYOffset}this.view.classList.remove("top","bottom","left","right"),this.view.classList.add(d===0?"bottom":"top"),this.view.classList.add(h===0?"left":"right"),this.view.classList.toggle("fixed",this.useFixedPosition);let B=_g(this.container);this.view.style.top=`${w-(this.useFixedPosition?_g(this.view).top:B.top)}px`,this.view.style.left=`${N-(this.useFixedPosition?_g(this.view).left:B.left)}px`,this.view.style.width="initial"}hide(e){let r=this.delegate;this.delegate=null,r?.onHide&&r.onHide(e),this.toDisposeOnClean.dispose(),OD(this.view)}isVisible(){return!!this.delegate}onDOMEvent(e,r){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(e,Gc(e).document.activeElement):r&&!ES(e.target,this.container)&&this.hide())}dispose(){this.hide(),super.dispose()}};sUe.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"];sUe.BUBBLE_DOWN_EVENTS=["click"];MWi=` + :host { + all: initial; /* 1st rule so subsequent properties are reset. */ + } + + .codicon[class*='codicon-'] { + font: normal normal normal 16px/1 codicon; + display: inline-block; + text-decoration: none; + text-rendering: auto; + text-align: center; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + user-select: none; + -webkit-user-select: none; + -ms-user-select: none; + } + + :host { + font-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", system-ui, "Ubuntu", "Droid Sans", sans-serif; + } + + :host-context(.mac) { font-family: -apple-system, BlinkMacSystemFont, sans-serif; } + :host-context(.mac:lang(zh-Hans)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif; } + :host-context(.mac:lang(zh-Hant)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", sans-serif; } + :host-context(.mac:lang(ja)) { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic Pro", sans-serif; } + :host-context(.mac:lang(ko)) { font-family: -apple-system, BlinkMacSystemFont, "Nanum Gothic", "Apple SD Gothic Neo", "AppleGothic", sans-serif; } + + :host-context(.windows) { font-family: "Segoe WPC", "Segoe UI", sans-serif; } + :host-context(.windows:lang(zh-Hans)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft YaHei", sans-serif; } + :host-context(.windows:lang(zh-Hant)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft Jhenghei", sans-serif; } + :host-context(.windows:lang(ja)) { font-family: "Segoe WPC", "Segoe UI", "Yu Gothic UI", "Meiryo UI", sans-serif; } + :host-context(.windows:lang(ko)) { font-family: "Segoe WPC", "Segoe UI", "Malgun Gothic", "Dotom", sans-serif; } + + :host-context(.linux) { font-family: system-ui, "Ubuntu", "Droid Sans", sans-serif; } + :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; } + :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; } + :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; } + :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; } +`});var RWi,BWi,Hft,YLt,Pri=ti(()=>{Ari();co();Ufe();nc();RWi=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},BWi=function(l,e){return function(r,o){e(r,o,l)}},Hft=class extends tn{constructor(e){super(),this.layoutService=e,this.contextView=this._register(new sUe(this.layoutService.mainContainer,1)),this.layout(),this._register(e.onDidLayoutContainer(()=>this.layout()))}showContextView(e,r,o){let c;r?r===this.layoutService.getContainer(Gc(r))?c=1:o?c=3:c=2:c=1,this.contextView.setContainer(r??this.layoutService.activeContainer,c),this.contextView.show(e);let d={close:()=>{this.openContextView===d&&this.hideContextView()}};return this.openContextView=d,d}layout(){this.contextView.layout()}hideContextView(e){this.contextView.hide(e),this.openContextView=void 0}};Hft=RWi([BWi(0,d7)],Hft);YLt=class extends Hft{getContextViewElement(){return this.contextView.getViewElement()}}});var QLt,vwi=ti(()=>{nc();Sh();d3();Fh();ya();QLt=class{constructor(e,r,o){this.hoverDelegate=e,this.target=r,this.fadeInAnimation=o}async update(e,r,o){var c;if(this._cancellationTokenSource&&(this._cancellationTokenSource.dispose(!0),this._cancellationTokenSource=void 0),this.isDisposed)return;let d;if(e===void 0||Fw(e)||Wv(e))d=e;else if(!Abe(e.markdown))d=(c=e.markdown)!==null&&c!==void 0?c:e.markdownNotSupportedFallback;else{this._hoverWidget||this.show(ce("iconLabel.loading","Loading..."),r,o),this._cancellationTokenSource=new Up;let h=this._cancellationTokenSource.token;if(d=await e.markdown(h),d===void 0&&(d=e.markdownNotSupportedFallback),this.isDisposed||h.isCancellationRequested)return}this.show(d,r,o)}show(e,r,o){let c=this._hoverWidget;if(this.hasContent(e)){let d={content:e,target:this.target,appearance:{showPointer:this.hoverDelegate.placement==="element",skipFadeInAnimation:!this.fadeInAnimation||!!c},position:{hoverPosition:2},...o};this._hoverWidget=this.hoverDelegate.showHover(d,r)}c?.dispose()}hasContent(e){return e?_7(e)?!!e.value:!0:!1}get isDisposed(){var e;return(e=this._hoverWidget)===null||e===void 0?void 0:e.isDisposed}dispose(){var e,r;(e=this._hoverWidget)===null||e===void 0||e.dispose(),(r=this._cancellationTokenSource)===null||r===void 0||r.dispose(!0),this._cancellationTokenSource=void 0}}});function bwi(l){var e;if(l!==void 0)return(e=l?.id)!==null&&e!==void 0?e:l}function Swi(l,e){for(e=e??Gc(l).document.body;!l.hasAttribute("custom-hover")&&l!==e;)l=l.parentElement;return l}var jWi,Uft,Lri,Ori,xwi=ti(()=>{_A();x0();q1();Jfe();u3();bl();gwi();co();nc();f1();lA();KO();Ufe();S6();Pri();vwi();Ud();jWi=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},Uft=function(l,e){return function(r,o){e(r,o,l)}},Lri=class extends tn{constructor(e,r,o,c,d){super(),this._instantiationService=e,this._keybindingService=o,this._layoutService=c,this._accessibilityService=d,this._existingHovers=new Map,r.onDidShowContextMenu(()=>this.hideHover()),this._contextViewHandler=this._register(new Hft(this._layoutService))}showHover(e,r,o){var c,d,h,b;if(bwi(this._currentHoverOptions)===bwi(e)||this._currentHover&&(!((d=(c=this._currentHoverOptions)===null||c===void 0?void 0:c.persistence)===null||d===void 0)&&d.sticky))return;this._currentHoverOptions=e,this._lastHoverOptions=e;let w=e.trapFocus||this._accessibilityService.isScreenReaderOptimized(),N=DC();o||(w&&N?N.classList.contains("monaco-hover")||(this._lastFocusedElementBeforeOpen=N):this._lastFocusedElementBeforeOpen=void 0);let L=new Fr,B=this._instantiationService.createInstance(KLt,e);if(!((h=e.persistence)===null||h===void 0)&&h.sticky&&(B.isLocked=!0),B.onDispose(()=>{var F,Y;((F=this._currentHover)===null||F===void 0?void 0:F.domNode)&&sNt(this._currentHover.domNode)&&((Y=this._lastFocusedElementBeforeOpen)===null||Y===void 0||Y.focus()),this._currentHoverOptions===e&&(this._currentHoverOptions=void 0),L.dispose()},void 0,L),!e.container){let F=Wv(e.target)?e.target:e.target.targetElements[0];e.container=this._layoutService.getContainer(Gc(F))}if(this._contextViewHandler.showContextView(new Ori(B,r),e.container),B.onRequestLayout(()=>this._contextViewHandler.layout(),void 0,L),!((b=e.persistence)===null||b===void 0)&&b.sticky)L.add(Jr(Gc(e.container).document,ls.MOUSE_DOWN,F=>{ES(F.target,B.domNode)||this.doHideHover()}));else{if("targetElements"in e.target)for(let Y of e.target.targetElements)L.add(Jr(Y,ls.CLICK,()=>this.hideHover()));else L.add(Jr(e.target,ls.CLICK,()=>this.hideHover()));let F=DC();if(F){let Y=Gc(F).document;L.add(Jr(F,ls.KEY_DOWN,Z=>{var ee;return this._keyDown(Z,B,!!(!((ee=e.persistence)===null||ee===void 0)&&ee.hideOnKeyDown))})),L.add(Jr(Y,ls.KEY_DOWN,Z=>{var ee;return this._keyDown(Z,B,!!(!((ee=e.persistence)===null||ee===void 0)&&ee.hideOnKeyDown))})),L.add(Jr(F,ls.KEY_UP,Z=>this._keyUp(Z,B))),L.add(Jr(Y,ls.KEY_UP,Z=>this._keyUp(Z,B)))}}if("IntersectionObserver"in em){let F=new IntersectionObserver(Z=>this._intersectionChange(Z,B),{threshold:0}),Y="targetElements"in e.target?e.target.targetElements[0]:e.target;F.observe(Y),L.add(Ma(()=>F.disconnect()))}return this._currentHover=B,B}hideHover(){var e;!((e=this._currentHover)===null||e===void 0)&&e.isLocked||!this._currentHoverOptions||this.doHideHover()}doHideHover(){this._currentHover=void 0,this._currentHoverOptions=void 0,this._contextViewHandler.hideContextView()}_intersectionChange(e,r){e[e.length-1].isIntersecting||r.dispose()}showAndFocusLastHover(){this._lastHoverOptions&&this.showHover(this._lastHoverOptions,!0,!0)}_keyDown(e,r,o){var c,d;if(e.key==="Alt"){r.isLocked=!0;return}let h=new Jp(e);this._keybindingService.resolveKeyboardEvent(h).getSingleModifierDispatchChords().some(w=>!!w)||this._keybindingService.softDispatch(h,h.target).kind!==0||o&&(!(!((c=this._currentHoverOptions)===null||c===void 0)&&c.trapFocus)||e.key!=="Tab")&&(this.hideHover(),(d=this._lastFocusedElementBeforeOpen)===null||d===void 0||d.focus())}_keyUp(e,r){var o;e.key==="Alt"&&(r.isLocked=!1,r.isMouseIn||(this.hideHover(),(o=this._lastFocusedElementBeforeOpen)===null||o===void 0||o.focus()))}setupUpdatableHover(e,r,o,c){r.setAttribute("custom-hover","true"),r.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:",r.title),r.title="");let d,h,b=(ct,Ct)=>{var Nt;let Yt=h!==void 0;ct&&(h?.dispose(),h=void 0),Ct&&(d?.dispose(),d=void 0),Yt&&((Nt=e.onDidHideHover)===null||Nt===void 0||Nt.call(e),h=void 0)},w=(ct,Ct,Nt,Yt)=>new ET(async()=>{(!h||h.isDisposed)&&(h=new QLt(e,Nt||r,ct>0),await h.update(typeof o=="function"?o():o,Ct,{...c,trapFocus:Yt}))},ct),N=!1,L=Jr(r,ls.MOUSE_DOWN,()=>{N=!0,b(!0,!0)},!0),B=Jr(r,ls.MOUSE_UP,()=>{N=!1},!0),F=Jr(r,ls.MOUSE_LEAVE,ct=>{N=!1,b(!1,ct.fromElement===r)},!0),Y=ct=>{if(d)return;let Ct=new Fr,Nt={targetElements:[r],dispose:()=>{}};if(e.placement===void 0||e.placement==="mouse"){let Yt=jt=>{Nt.x=jt.x+10,Wv(jt.target)&&Swi(jt.target,r)!==r&&b(!0,!0)};Ct.add(Jr(r,ls.MOUSE_MOVE,Yt,!0))}d=Ct,!(Wv(ct.target)&&Swi(ct.target,r)!==r)&&Ct.add(w(e.delay,!1,Nt))},Z=Jr(r,ls.MOUSE_OVER,Y,!0),ee=()=>{if(N||d)return;let ct={targetElements:[r],dispose:()=>{}},Ct=new Fr,Nt=()=>b(!0,!0);Ct.add(Jr(r,ls.BLUR,Nt,!0)),Ct.add(w(e.delay,!1,ct)),d=Ct},Te,Je=r.tagName.toLowerCase();Je!=="input"&&Je!=="textarea"&&(Te=Jr(r,ls.FOCUS,ee,!0));let Xe={show:ct=>{b(!1,!0),w(0,ct,void 0,ct)},hide:()=>{b(!0,!0)},update:async(ct,Ct)=>{o=ct,await h?.update(o,void 0,Ct)},dispose:()=>{this._existingHovers.delete(r),Z.dispose(),F.dispose(),L.dispose(),B.dispose(),Te?.dispose(),b(!0,!0)}};return this._existingHovers.set(r,Xe),Xe}triggerUpdatableHover(e){let r=this._existingHovers.get(e);r&&r.show(!0)}dispose(){this._existingHovers.forEach(e=>e.dispose()),super.dispose()}};Lri=jWi([Uft(0,Pa),Uft(1,zw),Uft(2,Jd),Uft(3,d7),Uft(4,ck)],Lri);Ori=class{get anchorPosition(){return this._hover.anchor}constructor(e,r=!1){this._hover=e,this._focus=r,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()}};e_(t8,Lri,1);AT((l,e)=>{let r=l.getColor(jAt);r&&(e.addRule(`.monaco-workbench .workbench-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${r.transparent(.5)}; }`),e.addRule(`.monaco-workbench .workbench-hover hr { border-top: 1px solid ${r.transparent(.5)}; }`))})});var Ere,aUe,nxe,ZLt,hLe=ti(()=>{bl();s0();Fh();Ere=Ml("IWorkspaceEditService"),aUe=class{constructor(e){this.metadata=e}static convert(e){return e.edits.map(r=>{if(nxe.is(r))return nxe.lift(r);if(ZLt.is(r))return ZLt.lift(r);throw new Error("Unsupported edit")})}},nxe=class l extends aUe{static is(e){return e instanceof l?!0:wT(e)&&qc.isUri(e.resource)&&wT(e.textEdit)}static lift(e){return e instanceof l?e:new l(e.resource,e.textEdit,e.versionId,e.metadata)}constructor(e,r,o=void 0,c){super(c),this.resource=e,this.textEdit=r,this.versionId=o}},ZLt=class l extends aUe{static is(e){return e instanceof l?!0:wT(e)&&(!!e.newResource||!!e.oldResource)}static lift(e){return e instanceof l?e:new l(e.oldResource,e.newResource,e.options,e.metadata)}constructor(e,r,o={},c){super(c),this.oldResource=e,this.newResource=r,this.options=o}}});var CA,Fri=ti(()=>{CA={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},hideUnchangedRegions:{enabled:!1,contextLineCount:3,minimumLineCount:3,revealLineCount:20},isInEmbeddedEditor:!1,onlyShowAccessibleDiffViewer:!1,renderSideBySideInlineBreakpoint:900,useInlineViewWhenSpaceIsLimited:!0}});function WWi(l){return typeof l.type<"u"||typeof l.anyOf<"u"}function Cwi(){return e3t===null&&(e3t=Object.create(null),Object.keys(t3t.properties).forEach(l=>{e3t[l]=!0})),e3t}function kwi(l){return Cwi()[`editor.${l}`]||!1}function wwi(l){return Cwi()[`diffEditor.${l}`]||!1}var cUe,t3t,e3t,zWi,i3t=ti(()=>{Fri();TT();Hlt();ya();Wne();DT();cUe=Object.freeze({id:"editor",order:5,type:"object",title:ce("editorConfigurationTitle","Editor"),scope:5}),t3t={...cUe,properties:{"editor.tabSize":{type:"number",default:ID.tabSize,minimum:1,markdownDescription:ce("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:ce("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:ID.insertSpaces,markdownDescription:ce("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:ID.detectIndentation,markdownDescription:ce("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:ID.trimAutoWhitespace,description:ce("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.largeFileOptimizations":{type:"boolean",default:ID.largeFileOptimizations,description:ce("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"editor.wordBasedSuggestions":{enum:["off","currentDocument","matchingDocuments","allDocuments"],default:"matchingDocuments",enumDescriptions:[ce("wordBasedSuggestions.off","Turn off Word Based Suggestions."),ce("wordBasedSuggestions.currentDocument","Only suggest words from the active document."),ce("wordBasedSuggestions.matchingDocuments","Suggest words from all open documents of the same language."),ce("wordBasedSuggestions.allDocuments","Suggest words from all open documents.")],description:ce("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:[ce("semanticHighlighting.true","Semantic highlighting enabled for all color themes."),ce("semanticHighlighting.false","Semantic highlighting disabled for all color themes."),ce("semanticHighlighting.configuredByTheme","Semantic highlighting is configured by the current color theme's `semanticHighlighting` setting.")],default:"configuredByTheme",description:ce("semanticHighlighting.enabled","Controls whether the semanticHighlighting is shown for the languages that support it.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:ce("stablePeek","Keep peek editors open even when double-clicking their content or when hitting `Escape`.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:ce("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"editor.experimental.asyncTokenization":{type:"boolean",default:!1,description:ce("editor.experimental.asyncTokenization","Controls whether the tokenization should happen asynchronously on a web worker."),tags:["experimental"]},"editor.experimental.asyncTokenizationLogging":{type:"boolean",default:!1,description:ce("editor.experimental.asyncTokenizationLogging","Controls whether async tokenization should be logged. For debugging only.")},"editor.experimental.asyncTokenizationVerification":{type:"boolean",default:!1,description:ce("editor.experimental.asyncTokenizationVerification","Controls whether async tokenization should be verified against legacy background tokenization. Might slow down tokenization. For debugging only."),tags:["experimental"]},"editor.language.brackets":{type:["array","null"],default:null,description:ce("schema.brackets","Defines the bracket symbols that increase or decrease the indentation."),items:{type:"array",items:[{type:"string",description:ce("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:ce("schema.closeBracket","The closing bracket character or string sequence.")}]}},"editor.language.colorizedBracketPairs":{type:["array","null"],default:null,description:ce("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:ce("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:ce("schema.closeBracket","The closing bracket character or string sequence.")}]}},"diffEditor.maxComputationTime":{type:"number",default:CA.maxComputationTime,description:ce("maxComputationTime","Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout.")},"diffEditor.maxFileSize":{type:"number",default:CA.maxFileSize,description:ce("maxFileSize","Maximum file size in MB for which to compute diffs. Use 0 for no limit.")},"diffEditor.renderSideBySide":{type:"boolean",default:CA.renderSideBySide,description:ce("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.renderSideBySideInlineBreakpoint":{type:"number",default:CA.renderSideBySideInlineBreakpoint,description:ce("renderSideBySideInlineBreakpoint","If the diff editor width is smaller than this value, the inline view is used.")},"diffEditor.useInlineViewWhenSpaceIsLimited":{type:"boolean",default:CA.useInlineViewWhenSpaceIsLimited,description:ce("useInlineViewWhenSpaceIsLimited","If enabled and the editor width is too small, the inline view is used.")},"diffEditor.renderMarginRevertIcon":{type:"boolean",default:CA.renderMarginRevertIcon,description:ce("renderMarginRevertIcon","When enabled, the diff editor shows arrows in its glyph margin to revert changes.")},"diffEditor.renderGutterMenu":{type:"boolean",default:CA.renderGutterMenu,description:ce("renderGutterMenu","When enabled, the diff editor shows a special gutter for revert and stage actions.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:CA.ignoreTrimWhitespace,description:ce("ignoreTrimWhitespace","When enabled, the diff editor ignores changes in leading or trailing whitespace.")},"diffEditor.renderIndicators":{type:"boolean",default:CA.renderIndicators,description:ce("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")},"diffEditor.codeLens":{type:"boolean",default:CA.diffCodeLens,description:ce("codeLens","Controls whether the editor shows CodeLens.")},"diffEditor.wordWrap":{type:"string",enum:["off","on","inherit"],default:CA.diffWordWrap,markdownEnumDescriptions:[ce("wordWrap.off","Lines will never wrap."),ce("wordWrap.on","Lines will wrap at the viewport width."),ce("wordWrap.inherit","Lines will wrap according to the {0} setting.","`#editor.wordWrap#`")]},"diffEditor.diffAlgorithm":{type:"string",enum:["legacy","advanced"],default:CA.diffAlgorithm,markdownEnumDescriptions:[ce("diffAlgorithm.legacy","Uses the legacy diffing algorithm."),ce("diffAlgorithm.advanced","Uses the advanced diffing algorithm.")],tags:["experimental"]},"diffEditor.hideUnchangedRegions.enabled":{type:"boolean",default:CA.hideUnchangedRegions.enabled,markdownDescription:ce("hideUnchangedRegions.enabled","Controls whether the diff editor shows unchanged regions.")},"diffEditor.hideUnchangedRegions.revealLineCount":{type:"integer",default:CA.hideUnchangedRegions.revealLineCount,markdownDescription:ce("hideUnchangedRegions.revealLineCount","Controls how many lines are used for unchanged regions."),minimum:1},"diffEditor.hideUnchangedRegions.minimumLineCount":{type:"integer",default:CA.hideUnchangedRegions.minimumLineCount,markdownDescription:ce("hideUnchangedRegions.minimumLineCount","Controls how many lines are used as a minimum for unchanged regions."),minimum:1},"diffEditor.hideUnchangedRegions.contextLineCount":{type:"integer",default:CA.hideUnchangedRegions.contextLineCount,markdownDescription:ce("hideUnchangedRegions.contextLineCount","Controls how many lines are used as context when comparing unchanged regions."),minimum:1},"diffEditor.experimental.showMoves":{type:"boolean",default:CA.experimental.showMoves,markdownDescription:ce("showMoves","Controls whether the diff editor should show detected code moves.")},"diffEditor.experimental.showEmptyDecorations":{type:"boolean",default:CA.experimental.showEmptyDecorations,description:ce("showEmptyDecorations","Controls whether the diff editor shows empty decorations to see where characters got inserted or deleted.")}}};for(let l of Rbe){let e=l.schema;if(typeof e<"u")if(WWi(e))t3t.properties[`editor.${l.name}`]=e;else for(let r in e)Object.hasOwnProperty.call(e,r)&&(t3t.properties[r]=e[r])}e3t=null;zWi=pm.as(jP.Configuration);zWi.registerConfiguration(t3t)});var mg,OB=ti(()=>{Xa();mg=class{static insert(e,r){return{range:new Zt(e.lineNumber,e.column,e.lineNumber,e.column),text:r,forceMoveMarkers:!0}}static delete(e){return{range:e,text:null}}static replace(e,r){return{range:e,text:r}}static replaceMove(e,r){return{range:e,text:r,forceMoveMarkers:!0}}}});function n3t(l){return Object.isFrozen(l)?l:rgi(l)}var f3,Mri,Rri,Jft,r3t,Bri=ti(()=>{sd();pA();YL();Fh();s0();_y();Wne();DT();f3=class l{static createEmptyModel(e){return new l({},[],[],void 0,e)}constructor(e,r,o,c,d){this._contents=e,this._keys=r,this._overrides=o,this.raw=c,this.logService=d,this.overrideConfigurations=new Map}get rawConfiguration(){var e;if(!this._rawConfiguration)if(!((e=this.raw)===null||e===void 0)&&e.length){let r=this.raw.map(o=>{if(o instanceof l)return o;let c=new Mri("",this.logService);return c.parseRaw(o),c.configurationModel});this._rawConfiguration=r.reduce((o,c)=>c===o?c:o.merge(c),r[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 this._keys.length===0&&Object.keys(this._contents).length===0&&this._overrides.length===0}getValue(e){return e?AZt(this.contents,e):this.contents}inspect(e,r){let o=this;return{get value(){return n3t(o.rawConfiguration.getValue(e))},get override(){return r?n3t(o.rawConfiguration.getOverrideValue(e,r)):void 0},get merged(){return n3t(r?o.rawConfiguration.override(r).getValue(e):o.rawConfiguration.getValue(e))},get overrides(){let c=[];for(let{contents:d,identifiers:h,keys:b}of o.rawConfiguration.overrides){let w=new l(d,b,[],void 0,o.logService).getValue(e);w!==void 0&&c.push({identifiers:h,value:w})}return c.length?n3t(c):void 0}}}getOverrideValue(e,r){let o=this.getContentsForOverrideIdentifer(r);return o?e?AZt(o,e):o:void 0}override(e){let r=this.overrideConfigurations.get(e);return r||(r=this.createOverrideConfigurationModel(e),this.overrideConfigurations.set(e,r)),r}merge(...e){var r,o;let c=Aq(this.contents),d=Aq(this.overrides),h=[...this.keys],b=!((r=this.raw)===null||r===void 0)&&r.length?[...this.raw]:[this];for(let w of e)if(b.push(...!((o=w.raw)===null||o===void 0)&&o.length?w.raw:[w]),!w.isEmpty()){this.mergeContents(c,w.contents);for(let N of w.overrides){let[L]=d.filter(B=>Jm(B.identifiers,N.identifiers));L?(this.mergeContents(L.contents,N.contents),L.keys.push(...N.keys),L.keys=GF(L.keys)):d.push(Aq(N))}for(let N of w.keys)h.indexOf(N)===-1&&h.push(N)}return new l(c,h,d,b.every(w=>w instanceof l)?void 0:b,this.logService)}createOverrideConfigurationModel(e){let r=this.getContentsForOverrideIdentifer(e);if(!r||typeof r!="object"||!Object.keys(r).length)return this;let o={};for(let c of GF([...Object.keys(this.contents),...Object.keys(r)])){let d=this.contents[c],h=r[c];h&&(typeof d=="object"&&typeof h=="object"?(d=Aq(d),this.mergeContents(d,h)):d=h),o[c]=d}return new l(o,this.keys,this.overrides,void 0,this.logService)}mergeContents(e,r){for(let o of Object.keys(r)){if(o in e&&wT(e[o])&&wT(r[o])){this.mergeContents(e[o],r[o]);continue}e[o]=Aq(r[o])}}getContentsForOverrideIdentifer(e){let r=null,o=null,c=d=>{d&&(o?this.mergeContents(o,d):o=Aq(d))};for(let d of this.overrides)d.identifiers.length===1&&d.identifiers[0]===e?r=d.contents:d.identifiers.includes(e)&&c(d.contents);return c(r),o}toJSON(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}}addValue(e,r){this.updateValue(e,r,!0)}setValue(e,r){this.updateValue(e,r,!1)}removeValue(e){let r=this.keys.indexOf(e);r!==-1&&(this.keys.splice(r,1),byi(this.contents,e),mfe.test(e)&&this.overrides.splice(this.overrides.findIndex(o=>Jm(o.identifiers,zut(e))),1))}updateValue(e,r,o){NZt(this.contents,e,r,c=>this.logService.error(c)),o=o||this.keys.indexOf(e)===-1,o&&this.keys.push(e),mfe.test(e)&&this.overrides.push({identifiers:zut(e),keys:Object.keys(this.contents[e]),contents:zNt(this.contents[e],c=>this.logService.error(c))})}},Mri=class{constructor(e,r){this._name=e,this.logService=r,this._raw=null,this._configurationModel=null,this._restrictedConfigurations=[]}get configurationModel(){return this._configurationModel||f3.createEmptyModel(this.logService)}parseRaw(e,r){this._raw=e;let{contents:o,keys:c,overrides:d,restricted:h,hasExcludedProperties:b}=this.doParseRaw(e,r);this._configurationModel=new f3(o,c,d,b?[e]:void 0,this.logService),this._restrictedConfigurations=h||[]}doParseRaw(e,r){let o=pm.as(jP.Configuration).getConfigurationProperties(),c=this.filter(e,o,!0,r);e=c.raw;let d=zNt(e,w=>this.logService.error(`Conflict in settings file ${this._name}: ${w}`)),h=Object.keys(e),b=this.toOverrides(e,w=>this.logService.error(`Conflict in settings file ${this._name}: ${w}`));return{contents:d,keys:h,overrides:b,restricted:c.restricted,hasExcludedProperties:c.hasExcludedProperties}}filter(e,r,o,c){var d,h,b;let w=!1;if(!c?.scopes&&!c?.skipRestricted&&!(!((d=c?.exclude)===null||d===void 0)&&d.length))return{raw:e,restricted:[],hasExcludedProperties:w};let N={},L=[];for(let B in e)if(mfe.test(B)&&o){let F=this.filter(e[B],r,!1,c);N[B]=F.raw,w=w||F.hasExcludedProperties,L.push(...F.restricted)}else{let F=r[B],Y=F?typeof F.scope<"u"?F.scope:3:void 0;F?.restricted&&L.push(B),!(!((h=c.exclude)===null||h===void 0)&&h.includes(B))&&(!((b=c.include)===null||b===void 0)&&b.includes(B)||(Y===void 0||c.scopes===void 0||c.scopes.includes(Y))&&!(c.skipRestricted&&F?.restricted))?N[B]=e[B]:w=!0}return{raw:N,restricted:L,hasExcludedProperties:w}}toOverrides(e,r){let o=[];for(let c of Object.keys(e))if(mfe.test(c)){let d={};for(let h in e[c])d[h]=e[c][h];o.push({identifiers:zut(c),keys:Object.keys(d),contents:zNt(d,r)})}return o}},Rri=class{constructor(e,r,o,c,d,h,b,w,N,L,B,F,Y){this.key=e,this.overrides=r,this._value=o,this.overrideIdentifiers=c,this.defaultConfiguration=d,this.policyConfiguration=h,this.applicationConfiguration=b,this.userConfiguration=w,this.localUserConfiguration=N,this.remoteUserConfiguration=L,this.workspaceConfiguration=B,this.folderConfigurationModel=F,this.memoryConfigurationModel=Y}toInspectValue(e){return e?.value!==void 0||e?.override!==void 0||e?.overrides!==void 0?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)}},Jft=class l{constructor(e,r,o,c,d,h,b,w,N,L){this._defaultConfiguration=e,this._policyConfiguration=r,this._applicationConfiguration=o,this._localUserConfiguration=c,this._remoteUserConfiguration=d,this._workspaceConfiguration=h,this._folderConfigurations=b,this._memoryConfiguration=w,this._memoryConfigurationByResource=N,this.logService=L,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new nx,this._userConfiguration=null}getValue(e,r,o){return this.getConsolidatedConfigurationModel(e,r,o).getValue(e)}updateValue(e,r,o={}){let c;o.resource?(c=this._memoryConfigurationByResource.get(o.resource),c||(c=f3.createEmptyModel(this.logService),this._memoryConfigurationByResource.set(o.resource,c))):c=this._memoryConfiguration,r===void 0?c.removeValue(e):c.setValue(e,r),o.resource||(this._workspaceConsolidatedConfiguration=null)}inspect(e,r,o){let c=this.getConsolidatedConfigurationModel(e,r,o),d=this.getFolderConfigurationModelForResource(r.resource,o),h=r.resource?this._memoryConfigurationByResource.get(r.resource)||this._memoryConfiguration:this._memoryConfiguration,b=new Set;for(let w of c.overrides)for(let N of w.identifiers)c.getOverrideValue(e,N)!==void 0&&b.add(N);return new Rri(e,r,c.getValue(e),b.size?[...b]:void 0,this._defaultConfiguration,this._policyConfiguration.isEmpty()?void 0:this._policyConfiguration,this.applicationConfiguration.isEmpty()?void 0:this.applicationConfiguration,this.userConfiguration,this.localUserConfiguration,this.remoteUserConfiguration,o?this._workspaceConfiguration:void 0,d||void 0,h)}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,r,o){let c=this.getConsolidatedConfigurationModelForResource(r,o);return r.overrideIdentifier&&(c=c.override(r.overrideIdentifier)),!this._policyConfiguration.isEmpty()&&this._policyConfiguration.getValue(e)!==void 0&&(c=c.merge(this._policyConfiguration)),c}getConsolidatedConfigurationModelForResource({resource:e},r){let o=this.getWorkspaceConsolidatedConfiguration();if(r&&e){let c=r.getFolder(e);c&&(o=this.getFolderConsolidatedConfiguration(c.uri)||o);let d=this._memoryConfigurationByResource.get(e);d&&(o=o.merge(d))}return o}getWorkspaceConsolidatedConfiguration(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this.applicationConfiguration,this.userConfiguration,this._workspaceConfiguration,this._memoryConfiguration)),this._workspaceConsolidatedConfiguration}getFolderConsolidatedConfiguration(e){let r=this._foldersConsolidatedConfigurations.get(e);if(!r){let o=this.getWorkspaceConsolidatedConfiguration(),c=this._folderConfigurations.get(e);c?(r=o.merge(c),this._foldersConsolidatedConfigurations.set(e,r)):r=o}return r}getFolderConfigurationModelForResource(e,r){if(r&&e){let o=r.getFolder(e);if(o)return this._folderConfigurations.get(o.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,r)=>{let{contents:o,overrides:c,keys:d}=this._folderConfigurations.get(r);return e.push([r,{contents:o,overrides:c,keys:d}]),e},[])}}static parse(e,r){let o=this.parseConfigurationModel(e.defaults,r),c=this.parseConfigurationModel(e.policy,r),d=this.parseConfigurationModel(e.application,r),h=this.parseConfigurationModel(e.user,r),b=this.parseConfigurationModel(e.workspace,r),w=e.folders.reduce((N,L)=>(N.set(qc.revive(L[0]),this.parseConfigurationModel(L[1],r)),N),new nx);return new l(o,c,d,h,f3.createEmptyModel(r),b,w,f3.createEmptyModel(r),new nx,r)}static parseConfigurationModel(e,r){return new f3(e.contents,e.keys,e.overrides,void 0,r)}},r3t=class{constructor(e,r,o,c,d){this.change=e,this.previous=r,this.currentConfiguraiton=o,this.currentWorkspace=c,this.logService=d,this._marker=` +`,this._markerCode1=this._marker.charCodeAt(0),this._markerCode2=46,this.affectedKeys=new Set,this._previousConfiguration=void 0;for(let h of e.keys)this.affectedKeys.add(h);for(let[,h]of e.overrides)for(let b of h)this.affectedKeys.add(b);this._affectsConfigStr=this._marker;for(let h of this.affectedKeys)this._affectsConfigStr+=h+this._marker}get previousConfiguration(){return!this._previousConfiguration&&this.previous&&(this._previousConfiguration=Jft.parse(this.previous.data,this.logService)),this._previousConfiguration}affectsConfiguration(e,r){var o;let c=this._marker+e,d=this._affectsConfigStr.indexOf(c);if(d<0)return!1;let h=d+c.length;if(h>=this._affectsConfigStr.length)return!1;let b=this._affectsConfigStr.charCodeAt(h);if(b!==this._markerCode1&&b!==this._markerCode2)return!1;if(r){let w=this.previousConfiguration?this.previousConfiguration.getValue(e,r,(o=this.previous)===null||o===void 0?void 0:o.workspace):void 0,N=this.currentConfiguraiton.getValue(e,r,this.currentWorkspace);return!FI(w,N)}return!0}}});function HWi(l,e,r){return{kind:2,commandId:l,commandArgs:e,isBubble:r}}function Twi(l){return l?`${l.serialize()}`:"no when condition"}function Ewi(l){return l.extensionId?l.isBuiltinExtension?`built-in extension ${l.extensionId}`:`user extension ${l.extensionId}`:l.isDefault?"built-in":"user"}var qft,VWi,o3t,jri=ti(()=>{hd();qft={kind:0},VWi={kind:1};o3t=class l{constructor(e,r,o){var c;this._log=o,this._defaultKeybindings=e,this._defaultBoundCommands=new Map;for(let d of e){let h=d.command;h&&h.charAt(0)!=="-"&&this._defaultBoundCommands.set(h,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=l.handleRemovals([].concat(e).concat(r));for(let d=0,h=this._keybindings.length;d"u"){this._map.set(e,[r]),this._addToLookupMap(r);return}for(let c=o.length-1;c>=0;c--){let d=o[c];if(d.command===r.command)continue;let h=!0;for(let b=1;b"u"?(r=[e],this._lookupMap.set(e.command,r)):r.push(e)}_removeFromLookupMap(e){if(!e.command)return;let r=this._lookupMap.get(e.command);if(!(typeof r>"u")){for(let o=0,c=r.length;o"u"||o.length===0)return null;if(o.length===1)return o[0];for(let c=o.length-1;c>=0;c--){let d=o[c];if(r.contextMatchesRules(d.when))return d}return o[o.length-1]}resolve(e,r,o){let c=[...r,o];this._log(`| Resolving ${c}`);let d=this._map.get(c[0]);if(d===void 0)return this._log("\\ No keybinding entries."),qft;let h=null;if(c.length<2)h=d;else{h=[];for(let w=0,N=d.length;wL.chords.length)continue;let B=!0;for(let F=1;F=0;o--){let c=r[o];if(l._contextMatchesRules(e,c.when))return c}return null}static _contextMatchesRules(e,r){return r?r.evaluate(e):!0}}});var UWi,s3t,rxe,Dwi=ti(()=>{Ud();Du();xc();Eti();co();ya();jri();UWi=/^(cursor|delete|undo|redo|tab|editor\.action\.clipboard)/,s3t=class extends tn{get onDidUpdateKeybindings(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:gs.None}get inChordMode(){return this._currentChords.length>0}constructor(e,r,o,c,d){super(),this._contextKeyService=e,this._commandService=r,this._telemetryService=o,this._notificationService=c,this._logService=d,this._onDidUpdateKeybindings=this._register(new wn),this._currentChords=[],this._currentChordChecker=new Ybe,this._currentChordStatusMessage=null,this._ignoreSingleModifiers=rxe.EMPTY,this._currentSingleModifier=null,this._currentSingleModifierClearTimeout=new ET,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,r){let o=this._getResolver().lookupPrimaryKeybinding(e,r||this._contextKeyService);if(o)return o.resolvedKeybinding}dispatchEvent(e,r){return this._dispatch(e,r)}softDispatch(e,r){this._log("/ Soft dispatching keyboard event");let o=this.resolveKeyboardEvent(e);if(o.hasMultipleChords())return console.warn("keyboard event should not be mapped to multiple chords"),qft;let[c]=o.getDispatchChords();if(c===null)return this._log("\\ Keyboard event cannot be dispatched"),qft;let d=this._contextKeyService.getContext(r),h=this._currentChords.map(({keypress:b})=>b);return this._getResolver().resolve(d,h,c)}_scheduleLeaveChordMode(){let e=Date.now();this._currentChordChecker.cancelAndSet(()=>{if(!this._documentHasFocus()){this._leaveChordMode();return}Date.now()-e>5e3&&this._leaveChordMode()},500)}_expectAnotherChord(e,r){switch(this._currentChords.push({keypress:e,label:r}),this._currentChords.length){case 0:throw $ze("impossible");case 1:this._currentChordStatusMessage=this._notificationService.status(ce("first.chord","({0}) was pressed. Waiting for second key of chord...",r));break;default:{let o=this._currentChords.map(({label:c})=>c).join(", ");this._currentChordStatusMessage=this._notificationService.status(ce("next.chord","({0}) was pressed. Waiting for next key of chord...",o))}}this._scheduleLeaveChordMode(),M6e.enabled&&M6e.disable()}_leaveChordMode(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChords=[],M6e.enable()}_dispatch(e,r){return this._doDispatch(this.resolveKeyboardEvent(e),r,!1)}_singleModifierDispatch(e,r){let o=this.resolveKeyboardEvent(e),[c]=o.getSingleModifierDispatchChords();if(c)return this._ignoreSingleModifiers.has(c)?(this._log(`+ Ignoring single modifier ${c} due to it being pressed together with other keys.`),this._ignoreSingleModifiers=rxe.EMPTY,this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1):(this._ignoreSingleModifiers=rxe.EMPTY,this._currentSingleModifier===null?(this._log(`+ Storing single modifier for possible chord ${c}.`),this._currentSingleModifier=c,this._currentSingleModifierClearTimeout.cancelAndSet(()=>{this._log("+ Clearing single modifier due to 300ms elapsed."),this._currentSingleModifier=null},300),!1):c===this._currentSingleModifier?(this._log(`/ Dispatching single modifier chord ${c} ${c}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,this._doDispatch(o,r,!0)):(this._log(`+ Clearing single modifier due to modifier mismatch: ${this._currentSingleModifier} ${c}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1));let[d]=o.getChords();return this._ignoreSingleModifiers=new rxe(d),this._currentSingleModifier!==null&&this._log("+ Clearing single modifier due to other key up."),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1}_doDispatch(e,r,o=!1){var c;let d=!1;if(e.hasMultipleChords())return console.warn("Unexpected keyboard event mapped to multiple chords"),!1;let h=null,b=null;if(o){let[B]=e.getSingleModifierDispatchChords();h=B,b=B?[B]:[]}else[h]=e.getDispatchChords(),b=this._currentChords.map(({keypress:B})=>B);if(h===null)return this._log("\\ Keyboard event cannot be dispatched in keydown phase."),d;let w=this._contextKeyService.getContext(r),N=e.getLabel(),L=this._getResolver().resolve(w,b,h);switch(L.kind){case 0:{if(this._logService.trace("KeybindingService#dispatch",N,"[ No matching keybinding ]"),this.inChordMode){let B=this._currentChords.map(({label:F})=>F).join(", ");this._log(`+ Leaving multi-chord mode: Nothing bound to "${B}, ${N}".`),this._notificationService.status(ce("missing.chord","The key combination ({0}, {1}) is not a command.",B,N),{hideAfter:10*1e3}),this._leaveChordMode(),d=!0}return d}case 1:return this._logService.trace("KeybindingService#dispatch",N,"[ Several keybindings match - more chords needed ]"),d=!0,this._expectAnotherChord(h,N),this._log(this._currentChords.length===1?"+ Entering multi-chord mode...":"+ Continuing multi-chord mode..."),d;case 2:{if(this._logService.trace("KeybindingService#dispatch",N,`[ Will dispatch command ${L.commandId} ]`),L.commandId===null||L.commandId===""){if(this.inChordMode){let B=this._currentChords.map(({label:F})=>F).join(", ");this._log(`+ Leaving chord mode: Nothing bound to "${B}, ${N}".`),this._notificationService.status(ce("missing.chord","The key combination ({0}, {1}) is not a command.",B,N),{hideAfter:10*1e3}),this._leaveChordMode(),d=!0}}else{this.inChordMode&&this._leaveChordMode(),L.isBubble||(d=!0),this._log(`+ Invoking command ${L.commandId}.`),this._currentlyDispatchingCommandId=L.commandId;try{typeof L.commandArgs>"u"?this._commandService.executeCommand(L.commandId).then(void 0,B=>this._notificationService.warn(B)):this._commandService.executeCommand(L.commandId,L.commandArgs).then(void 0,B=>this._notificationService.warn(B))}finally{this._currentlyDispatchingCommandId=null}UWi.test(L.commandId)||this._telemetryService.publicLog2("workbenchActionExecuted",{id:L.commandId,from:"keybinding",detail:(c=e.getUserSettingsLabel())!==null&&c!==void 0?c:void 0})}return d}}}mightProducePrintableCharacter(e){return e.ctrlKey||e.metaKey?!1:e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30}},rxe=class{constructor(e){this._ctrlKey=e?e.ctrlKey:!1,this._shiftKey=e?e.shiftKey:!1,this._altKey=e?e.altKey:!1,this._metaKey=e?e.metaKey:!1}has(e){switch(e){case"ctrl":return this._ctrlKey;case"shift":return this._shiftKey;case"alt":return this._altKey;case"meta":return this._metaKey}}};rxe.EMPTY=new rxe(null)});function a3t(l){let e=[];for(let r=0,o=l.length;r{$ft=class{constructor(e,r,o,c,d,h,b){this._resolvedKeybindingItemBrand=void 0,this.resolvedKeybinding=e,this.chords=e?a3t(e.getDispatchChords()):[],e&&this.chords.length===0&&(this.chords=a3t(e.getSingleModifierDispatchChords())),this.bubble=r?r.charCodeAt(0)===94:!1,this.command=this.bubble?r.substr(1):r,this.commandArgs=o,this.when=c,this.isDefault=d,this.extensionId=h,this.isBuiltinExtension=b}}});function JWi(l,e,r){if(e===null)return"";let o=[];return l.ctrlKey&&o.push(r.ctrlKey),l.shiftKey&&o.push(r.shiftKey),l.altKey&&o.push(r.altKey),l.metaKey&&o.push(r.metaKey),e!==""&&o.push(e),o.join(r.separator)}var lUe,uUe,Iwi,Nwi,Awi,c3t=ti(()=>{ya();lUe=class{constructor(e,r,o=r){this.modifierLabels=[null],this.modifierLabels[2]=e,this.modifierLabels[1]=r,this.modifierLabels[3]=o}toLabel(e,r,o){if(r.length===0)return null;let c=[];for(let d=0,h=r.length;d{Du();c3t();U4e();l3t=class extends jIt{constructor(e,r){if(super(),r.length===0)throw aA("chords");this._os=e,this._chords=r}getLabel(){return uUe.toLabel(this._os,this._chords,e=>this._getLabel(e))}getAriaLabel(){return Iwi.toLabel(this._os,this._chords,e=>this._getAriaLabel(e))}getElectronAccelerator(){return this._chords.length>1||this._chords[0].isDuplicateModifierCase()?null:Nwi.toLabel(this._os,this._chords,e=>this._getElectronAccelerator(e))}getUserSettingsLabel(){return Awi.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 BIt(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))}}});var Gft,Lwi=ti(()=>{gB();U4e();Pwi();Wri();Gft=class l extends l3t{constructor(e,r){super(r,e)}_keyCodeToUILabel(e){if(this._os===2)switch(e){case 15:return"\u2190";case 16:return"\u2191";case 17:return"\u2192";case 18:return"\u2193"}return Pq.toString(e)}_getLabel(e){return e.isDuplicateModifierCase()?"":this._keyCodeToUILabel(e.keyCode)}_getAriaLabel(e){return e.isDuplicateModifierCase()?"":Pq.toString(e.keyCode)}_getElectronAccelerator(e){return Pq.toElectronAccelerator(e.keyCode)}_getUserSettingsLabel(e){if(e.isDuplicateModifierCase())return"";let r=Pq.toUserSettingsUS(e.keyCode);return r&&r.toLowerCase()}_getChordDispatch(e){return l.getDispatchStr(e)}static getDispatchStr(e){if(e.isModifierKey())return null;let r="";return e.ctrlKey&&(r+="ctrl+"),e.shiftKey&&(r+="shift+"),e.altKey&&(r+="alt+"),e.metaKey&&(r+="meta+"),r+=Pq.toString(e.keyCode),r}_getSingleModifierChordDispatch(e){return e.keyCode===5&&!e.shiftKey&&!e.altKey&&!e.metaKey?"ctrl":e.keyCode===4&&!e.ctrlKey&&!e.altKey&&!e.metaKey?"shift":e.keyCode===6&&!e.ctrlKey&&!e.shiftKey&&!e.metaKey?"alt":e.keyCode===57&&!e.ctrlKey&&!e.shiftKey&&!e.altKey?"meta":null}static _scanCodeToKeyCode(e){let r=bDt[e];if(r!==-1)return r;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 _V)return e;let r=this._scanCodeToKeyCode(e.scanCode);return r===0?null:new _V(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,r)}static resolveKeybinding(e,r){let o=a3t(e.chords.map(c=>this._toKeyCodeChord(c)));return o.length>0?[new l(o,r)]:[]}}});var _Q,dUe=ti(()=>{bl();_Q=Ml("labelService")});var u3t,I6n,jR,WR,u$=ti(()=>{bl();u3t=Ml("progressService"),I6n=Object.freeze({total(){},worked(){},done(){}}),jR=class{constructor(e){this.callback=e}report(e){this._value=e,this.callback(this._value)}};jR.None=Object.freeze({report(){}});WR=Ml("editorProgressService")});var zri,Vri,Hri,Uri,fUe,gLe,d3t=ti(()=>{Mu();zri=class{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=0;r--,this._valueLen--){let o=this._value.charCodeAt(r);if(!(o===47||this._splitOnBackslash&&o===92))break}return this.next()}hasNext(){return this._to!1,r=()=>!1){return new l(new Uri(e,r))}static forStrings(){return new l(new zri)}static forConfigKeys(){return new l(new Vri)}constructor(e){this._iter=e}clear(){this._root=void 0}set(e,r){let o=this._iter.reset(e),c;this._root||(this._root=new fUe,this._root.segment=o.value());let d=[];for(c=this._root;;){let b=o.cmp(c.segment);if(b>0)c.left||(c.left=new fUe,c.left.segment=o.value()),d.push([-1,c]),c=c.left;else if(b<0)c.right||(c.right=new fUe,c.right.segment=o.value()),d.push([1,c]),c=c.right;else if(o.hasNext())o.next(),c.mid||(c.mid=new fUe,c.mid.segment=o.value()),d.push([0,c]),c=c.mid;else break}let h=c.value;c.value=r,c.key=e;for(let b=d.length-1;b>=0;b--){let w=d[b][1];w.updateHeight();let N=w.balanceFactor();if(N<-1||N>1){let L=d[b][0],B=d[b+1][0];if(L===1&&B===1)d[b][1]=w.rotateLeft();else if(L===-1&&B===-1)d[b][1]=w.rotateRight();else if(L===1&&B===-1)w.right=d[b+1][1]=d[b+1][1].rotateRight(),d[b][1]=w.rotateLeft();else if(L===-1&&B===1)w.left=d[b+1][1]=d[b+1][1].rotateLeft(),d[b][1]=w.rotateRight();else throw new Error;if(b>0)switch(d[b-1][0]){case-1:d[b-1][1].left=d[b][1];break;case 1:d[b-1][1].right=d[b][1];break;case 0:d[b-1][1].mid=d[b][1];break}else this._root=d[0][1]}}return h}get(e){var r;return(r=this._getNode(e))===null||r===void 0?void 0:r.value}_getNode(e){let r=this._iter.reset(e),o=this._root;for(;o;){let c=r.cmp(o.segment);if(c>0)o=o.left;else if(c<0)o=o.right;else if(r.hasNext())r.next(),o=o.mid;else break}return o}has(e){let r=this._getNode(e);return!(r?.value===void 0&&r?.mid===void 0)}delete(e){return this._delete(e,!1)}deleteSuperstr(e){return this._delete(e,!0)}_delete(e,r){var o;let c=this._iter.reset(e),d=[],h=this._root;for(;h;){let b=c.cmp(h.segment);if(b>0)d.push([-1,h]),h=h.left;else if(b<0)d.push([1,h]),h=h.right;else if(c.hasNext())c.next(),d.push([0,h]),h=h.mid;else break}if(h){if(r?(h.left=void 0,h.mid=void 0,h.right=void 0,h.height=1):(h.key=void 0,h.value=void 0),!h.mid&&!h.value)if(h.left&&h.right){let b=this._min(h.right);if(b.key){let{key:w,value:N,segment:L}=b;this._delete(b.key,!1),h.key=w,h.value=N,h.segment=L}}else{let b=(o=h.left)!==null&&o!==void 0?o:h.right;if(d.length>0){let[w,N]=d[d.length-1];switch(w){case-1:N.left=b;break;case 0:N.mid=b;break;case 1:N.right=b;break}}else this._root=b}for(let b=d.length-1;b>=0;b--){let w=d[b][1];w.updateHeight();let N=w.balanceFactor();if(N>1?(w.right.balanceFactor()>=0||(w.right=w.right.rotateRight()),d[b][1]=w.rotateLeft()):N<-1&&(w.left.balanceFactor()<=0||(w.left=w.left.rotateLeft()),d[b][1]=w.rotateRight()),b>0)switch(d[b-1][0]){case-1:d[b-1][1].left=d[b][1];break;case 1:d[b-1][1].right=d[b][1];break;case 0:d[b-1][1].mid=d[b][1];break}else this._root=d[0][1]}}}_min(e){for(;e.left;)e=e.left;return e}findSubstr(e){let r=this._iter.reset(e),o=this._root,c;for(;o;){let d=r.cmp(o.segment);if(d>0)o=o.left;else if(d<0)o=o.right;else if(r.hasNext())r.next(),c=o.value||c,o=o.mid;else break}return o&&o.value||c}findSuperstr(e){return this._findSuperstrOrElement(e,!1)}_findSuperstrOrElement(e,r){let o=this._iter.reset(e),c=this._root;for(;c;){let d=o.cmp(c.segment);if(d>0)c=c.left;else if(d<0)c=c.right;else if(o.hasNext())o.next(),c=c.mid;else return c.mid?this._entries(c.mid):r?c.value:void 0}}forEach(e){for(let[r,o]of this)e(o,r)}*[Symbol.iterator](){yield*this._entries(this._root)}_entries(e){let r=[];return this._dfsEntries(e,r),r[Symbol.iterator]()}_dfsEntries(e,r){e&&(e.left&&this._dfsEntries(e.left,r),e.value&&r.push([e.key,e.value]),e.mid&&this._dfsEntries(e.mid,r),e.right&&this._dfsEntries(e.right,r))}}});function _3t(l){let e=l;return typeof e?.id=="string"&&qc.isUri(e.uri)}function Owi(l){let e=l;return typeof e?.id=="string"&&!_3t(l)&&!GWi(l)}function Fwi(l,e){if(typeof l=="string"||typeof l>"u")return typeof l=="string"?{id:Lq(l)}:e?qWi:$Wi;let r=l;return r.configuration?{id:r.id,configPath:r.configuration}:r.folders.length===1?{id:r.id,uri:r.folders[0].uri}:{id:r.id}}function GWi(l){let e=l;return typeof e?.id=="string"&&qc.isUri(e.configPath)}function Mwi(l){return l.id===Jri}var pQ,qWi,$Wi,f3t,p3t,B6n,Jri,_Ue=ti(()=>{ya();jY();d3t();s0();bl();pQ=Ml("contextService");qWi={id:"ext-dev"},$Wi={id:"empty-window"};f3t=class{constructor(e,r){this.raw=r,this.uri=e.uri,this.index=e.index,this.name=e.name}toJSON(){return{uri:this.uri,name:this.name,index:this.index}}},p3t="code-workspace",B6n=[{name:ce("codeWorkspace","Code Workspace"),extensions:[p3t]}],Jri="4064f6ec-cb38-4ad0-af64-ee6467e63c82"});var m3t,Kft,h3t,Xft,pUe,Yft,g3t,y3t,Dre=ti(()=>{ya();(function(l){l.inspectTokensAction=ce("inspectTokens","Developer: Inspect Tokens")})(m3t||(m3t={}));(function(l){l.gotoLineActionLabel=ce("gotoLineActionLabel","Go to Line/Column...")})(Kft||(Kft={}));(function(l){l.helpQuickAccessActionLabel=ce("helpQuickAccess","Show all Quick Access Providers")})(h3t||(h3t={}));(function(l){l.quickCommandActionLabel=ce("quickCommandActionLabel","Command Palette"),l.quickCommandHelp=ce("quickCommandActionHelp","Show And Run Commands")})(Xft||(Xft={}));(function(l){l.quickOutlineActionLabel=ce("quickOutlineActionLabel","Go to Symbol..."),l.quickOutlineByCategoryActionLabel=ce("quickOutlineByCategoryActionLabel","Go to Symbol by Category...")})(pUe||(pUe={}));(function(l){l.editorViewAccessibleLabel=ce("editorViewAccessibleLabel","Editor content"),l.accessibilityHelpMessage=ce("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options.")})(Yft||(Yft={}));(function(l){l.toggleHighContrast=ce("toggleHighContrast","Toggle High Contrast Theme")})(g3t||(g3t={}));(function(l){l.bulkEditServiceSummary=ce("bulkEditServiceSummary","Made {0} edits in {1} files")})(y3t||(y3t={}))});var v3t,qri=ti(()=>{bl();v3t=Ml("workspaceTrustManagementService")});function Qft(l,e=!1){KWi(l,!1,e)}function KWi(l,e,r){let o=XWi(l,e);mUe.push(o),o.userConfigured?Bwi.push(o):$ri.push(o),r&&!o.userConfigured&&mUe.forEach(c=>{c.mime===o.mime||c.userConfigured||(o.extension&&c.extension===o.extension&&console.warn(`Overwriting extension <<${o.extension}>> to now point to mime <<${o.mime}>>`),o.filename&&c.filename===o.filename&&console.warn(`Overwriting filename <<${o.filename}>> to now point to mime <<${o.mime}>>`),o.filepattern&&c.filepattern===o.filepattern&&console.warn(`Overwriting filepattern <<${o.filepattern}>> to now point to mime <<${o.mime}>>`),o.firstline&&c.firstline===o.firstline&&console.warn(`Overwriting firstline <<${o.firstline}>> to now point to mime <<${o.mime}>>`))})}function XWi(l,e){return{id:l.id,mime:l.mime,filename:l.filename,extension:l.extension,filepattern:l.filepattern,firstline:l.firstline,userConfigured:e,filenameLowercase:l.filename?l.filename.toLowerCase():void 0,extensionLowercase:l.extension?l.extension.toLowerCase():void 0,filepatternLowercase:l.filepattern?eri(l.filepattern.toLowerCase()):void 0,filepatternOnPath:l.filepattern?l.filepattern.indexOf(ex.sep)>=0:!1}}function jwi(){mUe=mUe.filter(l=>l.userConfigured),$ri=[]}function Wwi(l,e){return YWi(l,e).map(r=>r.id)}function YWi(l,e){let r;if(l)switch(l.scheme){case Vu.file:r=l.fsPath;break;case Vu.data:{r=cre.parseMetaData(l).get(cre.META_DATA_LABEL);break}case Vu.vscodeNotebookCell:r=void 0;break;default:r=l.path}if(!r)return[{id:"unknown",mime:l1.unknown}];r=r.toLowerCase();let o=Lq(r),c=Rwi(r,o,Bwi);if(c)return[c,{id:y2,mime:l1.text}];let d=Rwi(r,o,$ri);if(d)return[d,{id:y2,mime:l1.text}];if(e){let h=QWi(e);if(h)return[h,{id:y2,mime:l1.text}]}return[{id:"unknown",mime:l1.unknown}]}function Rwi(l,e,r){var o;let c,d,h;for(let b=r.length-1;b>=0;b--){let w=r[b];if(e===w.filenameLowercase){c=w;break}if(w.filepattern&&(!d||w.filepattern.length>d.filepattern.length)){let N=w.filepatternOnPath?l:e;!((o=w.filepatternLowercase)===null||o===void 0)&&o.call(w,N)&&(d=w)}w.extension&&(!h||w.extension.length>h.extension.length)&&e.endsWith(w.extensionLowercase)&&(h=w)}if(c)return c;if(d)return d;if(h)return h}function QWi(l){if(rVe(l)&&(l=l.substr(1)),l.length>0)for(let e=mUe.length-1;e>=0;e--){let r=mUe[e];if(!r.firstline)continue;let o=l.match(r.firstline);if(o&&o.length>0)return r}}var mUe,$ri,Bwi,zwi=ti(()=>{tri();aSe();RP();jY();VP();Mu();SV();mUe=[],$ri=[],Bwi=[]});var b3t,Vwi,Gri,Zft,Hwi=ti(()=>{xc();co();Mu();zwi();SV();Wne();DT();b3t=Object.prototype.hasOwnProperty,Vwi="vs.editor.nullLanguage",Gri=class{constructor(){this._languageIdToLanguage=[],this._languageToLanguageId=new Map,this._register(Vwi,0),this._register(y2,1),this._nextLanguageId=2}_register(e,r){this._languageIdToLanguage[r]=e,this._languageToLanguageId.set(e,r)}register(e){if(this._languageToLanguageId.has(e))return;let r=this._nextLanguageId++;this._register(e,r)}encodeLanguageId(e){return this._languageToLanguageId.get(e)||0}decodeLanguageId(e){return this._languageIdToLanguage[e]||Vwi}},Zft=class l extends tn{constructor(e=!0,r=!1){super(),this._onDidChange=this._register(new wn),this.onDidChange=this._onDidChange.event,l.instanceCount++,this._warnOnOverwrite=r,this.languageIdCodec=new Gri,this._dynamicLanguages=[],this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},e&&(this._initializeFromRegistry(),this._register(cSe.onDidChangeLanguages(o=>{this._initializeFromRegistry()})))}dispose(){l.instanceCount--,super.dispose()}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},jwi();let e=[].concat(cSe.getLanguages()).concat(this._dynamicLanguages);this._registerLanguages(e)}_registerLanguages(e){for(let r of e)this._registerLanguage(r);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach(r=>{let o=this._languages[r];o.name&&(this._nameMap[o.name]=o.identifier),o.aliases.forEach(c=>{this._lowercaseNameMap[c.toLowerCase()]=o.identifier}),o.mimetypes.forEach(c=>{this._mimeTypesMap[c]=o.identifier})}),pm.as(jP.Configuration).registerOverrideIdentifiers(this.getRegisteredLanguageIds()),this._onDidChange.fire()}_registerLanguage(e){let r=e.id,o;b3t.call(this._languages,r)?o=this._languages[r]:(this.languageIdCodec.register(r),o={identifier:r,name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[],icons:[]},this._languages[r]=o),this._mergeLanguage(o,e)}_mergeLanguage(e,r){let o=r.id,c=null;if(Array.isArray(r.mimetypes)&&r.mimetypes.length>0&&(e.mimetypes.push(...r.mimetypes),c=r.mimetypes[0]),c||(c=`text/x-${o}`,e.mimetypes.push(c)),Array.isArray(r.extensions)){r.configuration?e.extensions=r.extensions.concat(e.extensions):e.extensions=e.extensions.concat(r.extensions);for(let b of r.extensions)Qft({id:o,mime:c,extension:b},this._warnOnOverwrite)}if(Array.isArray(r.filenames))for(let b of r.filenames)Qft({id:o,mime:c,filename:b},this._warnOnOverwrite),e.filenames.push(b);if(Array.isArray(r.filenamePatterns))for(let b of r.filenamePatterns)Qft({id:o,mime:c,filepattern:b},this._warnOnOverwrite);if(typeof r.firstLine=="string"&&r.firstLine.length>0){let b=r.firstLine;b.charAt(0)!=="^"&&(b="^"+b);try{let w=new RegExp(b);Qgi(w)||Qft({id:o,mime:c,firstline:w},this._warnOnOverwrite)}catch(w){console.warn(`[${r.id}]: Invalid regular expression \`${b}\`: `,w)}}e.aliases.push(o);let d=null;if(typeof r.aliases<"u"&&Array.isArray(r.aliases)&&(r.aliases.length===0?d=[null]:d=r.aliases),d!==null)for(let b of d)!b||b.length===0||e.aliases.push(b);let h=d!==null&&d.length>0;if(!(h&&d[0]===null)){let b=(h?d[0]:null)||o;(h||!e.name)&&(e.name=b)}r.configuration&&e.configurationFiles.push(r.configuration),r.icon&&e.icons.push(r.icon)}isRegisteredLanguageId(e){return e?b3t.call(this._languages,e):!1}getRegisteredLanguageIds(){return Object.keys(this._languages)}getLanguageIdByLanguageName(e){let r=e.toLowerCase();return b3t.call(this._lowercaseNameMap,r)?this._lowercaseNameMap[r]:null}getLanguageIdByMimeType(e){return e&&b3t.call(this._mimeTypesMap,e)?this._mimeTypesMap[e]:null}guessLanguageIdByFilepathOrFirstLine(e,r){return!e&&!r?[]:Wwi(e,r)}};Zft.instanceCount=0});var e_t,S3t,Uwi=ti(()=>{xc();co();Hwi();sd();dy();SV();e_t=class l extends tn{constructor(e=!1){super(),this._onDidRequestBasicLanguageFeatures=this._register(new wn),this.onDidRequestBasicLanguageFeatures=this._onDidRequestBasicLanguageFeatures.event,this._onDidRequestRichLanguageFeatures=this._register(new wn),this.onDidRequestRichLanguageFeatures=this._onDidRequestRichLanguageFeatures.event,this._onDidChange=this._register(new wn({leakWarningThreshold:200})),this.onDidChange=this._onDidChange.event,this._requestedBasicLanguages=new Set,this._requestedRichLanguages=new Set,l.instanceCount++,this._registry=this._register(new Zft(!0,e)),this.languageIdCodec=this._registry.languageIdCodec,this._register(this._registry.onDidChange(()=>this._onDidChange.fire()))}dispose(){l.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,r){let o=this._registry.guessLanguageIdByFilepathOrFirstLine(e,r);return Bze(o,null)}createById(e){return new S3t(this.onDidChange,()=>this._createAndGetLanguageIdentifier(e))}createByFilepathOrFirstLine(e,r){return new S3t(this.onDidChange,()=>{let o=this.guessLanguageIdByFilepathOrFirstLine(e,r);return this._createAndGetLanguageIdentifier(o)})}_createAndGetLanguageIdentifier(e){return(!e||!this.isRegisteredLanguageId(e))&&(e=y2),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),a0.getOrCreate(e),this._onDidRequestRichLanguageFeatures.fire(e))}};e_t.instanceCount=0;S3t=class{constructor(e,r){this._onDidChangeLanguages=e,this._selector=r,this._listener=null,this._emitter=null,this.languageId=this._selector()}_dispose(){this._listener&&(this._listener.dispose(),this._listener=null),this._emitter&&(this._emitter.dispose(),this._emitter=null)}get onDidChange(){return this._listener||(this._listener=this._onDidChangeLanguages(()=>this._evaluate())),this._emitter||(this._emitter=new wn({onDidRemoveLastListener:()=>{this._dispose()}})),this._emitter.event}_evaluate(){var e;let r=this._selector();r!==this.languageId&&(this.languageId=r,(e=this._emitter)===null||e===void 0||e.fire(this.languageId))}}});var oxe,x3t=ti(()=>{aSe();oxe={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:l1.text,INTERNAL_URI_LIST:"application/vnd.code.uri-list"}});function Jwi(l){C3t=l}function AS(l){return l==="element"?tzi.value:ezi.value}function d$(){return C3t("element",!0)}var ZWi,C3t,ezi,tzi,JI=ti(()=>{VY();ZWi=()=>({get delay(){return-1},dispose:()=>{},showHover:()=>{}}),C3t=ZWi,ezi=new Bw(()=>C3t("mouse",!1)),tzi=new Bw(()=>C3t("element",!1))});function $wi(l){qwi=l}function qI(){return qwi}var qwi,RV=ti(()=>{qwi={showHover:()=>{},hideHover:()=>{},showAndFocusLastHover:()=>{},setupUpdatableHover:()=>null,triggerUpdatableHover:()=>{}}});var k3t,Gwi=ti(()=>{k3t=class{constructor(e){this.spliceables=e}splice(e,r,o){this.spliceables.forEach(c=>c.splice(e,r,o))}}});var Kri=ti(()=>{});var Ire,Kwi=ti(()=>{Ire=class extends Error{constructor(e,r){super(`ListError [${e}] ${r}`)}}});function Xwi(l,e){let r=[];for(let o of e){if(l.start>=o.range.end)continue;if(l.ende.concat(r),[]))}var w3t,Ywi=ti(()=>{Vft();w3t=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,r,o=[]){let c=o.length-r,d=Xwi({start:0,end:e},this.groups),h=Xwi({start:e+r,end:Number.POSITIVE_INFINITY},this.groups).map(w=>({range:T3t(w.range,c),size:w.size})),b=o.map((w,N)=>({range:{start:e+N,end:e+N+1},size:w.size}));this.groups=nzi(d,b,h),this._size=this._paddingTop+this.groups.reduce((w,N)=>w+N.size*(N.range.end-N.range.start),0)}get count(){let 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{nc();E3t=class{constructor(e){this.renderers=e,this.cache=new Map,this.transactionNodesPendingRemoval=new Set,this.inTransaction=!1}alloc(e){let r=this.getTemplateCache(e).pop(),o=!1;if(r)o=this.transactionNodesPendingRemoval.has(r.domNode),o&&this.transactionNodesPendingRemoval.delete(r.domNode);else{let c=qo(".monaco-list-row"),h=this.getRenderer(e).renderTemplate(c);r={domNode:c,templateId:e,templateData:h}}return{row:r,isReusingConnectedDomNode:o}}release(e){e&&this.releaseRow(e)}transact(e){if(this.inTransaction)throw new Error("Already in transaction");this.inTransaction=!0;try{e()}finally{for(let r of this.transactionNodesPendingRemoval)this.doRemoveNode(r);this.transactionNodesPendingRemoval.clear(),this.inTransaction=!1}}releaseRow(e){let{domNode:r,templateId:o}=e;r&&(this.inTransaction?this.transactionNodesPendingRemoval.add(r):this.doRemoveNode(r)),this.getTemplateCache(o).push(e)}doRemoveNode(e){e.classList.remove("scrolling"),rzi(e)}getTemplateCache(e){let r=this.cache.get(e);return r||(r=[],this.cache.set(e,r)),r}dispose(){this.cache.forEach((e,r)=>{for(let o of e)this.getRenderer(r).disposeTemplate(o.templateData),o.templateData=null}),this.cache.clear(),this.transactionNodesPendingRemoval.clear()}getRenderer(e){let r=this.renderers.get(e);if(!r)throw new Error(`No renderer found for ${e}`);return r}}});function ozi(l,e){return Array.isArray(l)&&Array.isArray(e)?Jm(l,e):l===e}var Xfe,yLe,Nre,Kfe,Xri,Yri,Qri,FB,D3t=ti(()=>{x3t();nc();n$();FR();AV();sd();Ud();DSe();xc();co();Vft();gHe();Ywi();Qwi();Du();lLe();Xfe=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},yLe={CurrentDragAndDropData:void 0},Nre={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,setRowHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements(l){return[l]},getDragURI(){return null},onDragStart(){},onDragOver(){return!1},drop(){},dispose(){}},horizontalScrolling:!1,transformOptimization:!0,alwaysConsumeMouseWheel:!0},Kfe=class{constructor(e){this.elements=e}update(){}getData(){return this.elements}},Xri=class{constructor(e){this.elements=e}update(){}getData(){return this.elements}},Yri=class{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 r=0;rc,e?.getPosInSet?this.getPosInSet=e.getPosInSet.bind(e):this.getPosInSet=(r,o)=>o+1,e?.getRole?this.getRole=e.getRole.bind(e):this.getRole=r=>"listitem",e?.isChecked?this.isChecked=e.isChecked.bind(e):this.isChecked=r=>{}}},FB=class l{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(let r of this.items)this.measureItemWidth(r);this.updateScrollWidth(),this.scrollableElement.setScrollDimensions({width:rNt(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,r,o,c=Nre){var d,h,b,w,N,L,B,F,Y,Z,ee,Te,Je;if(this.virtualDelegate=r,this.domId=`list_id_${++l.InstanceCount}`,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new vE(50),this.splicing=!1,this.dragOverAnimationStopDisposable=tn.None,this.dragOverMouseY=0,this.canDrop=!1,this.currentDragFeedbackDisposable=tn.None,this.onDragLeaveTimeout=tn.None,this.disposables=new Fr,this._onDidChangeContentHeight=new wn,this._onDidChangeContentWidth=new wn,this.onDidChangeContentHeight=gs.latch(this._onDidChangeContentHeight.event,void 0,this.disposables),this._horizontalScrolling=!1,c.horizontalScrolling&&c.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");this.items=[],this.itemId=0,this.rangeMap=this.createRangeMap((d=c.paddingTop)!==null&&d!==void 0?d:0);for(let ct of o)this.renderers.set(ct.templateId,ct);this.cache=this.disposables.add(new E3t(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",typeof c.mouseSupport=="boolean"?c.mouseSupport:!0),this._horizontalScrolling=(h=c.horizontalScrolling)!==null&&h!==void 0?h:Nre.horizontalScrolling,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this.paddingBottom=typeof c.paddingBottom>"u"?0:c.paddingBottom,this.accessibilityProvider=new Qri(c.accessibilityProvider),this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows",((b=c.transformOptimization)!==null&&b!==void 0?b:Nre.transformOptimization)&&(this.rowsContainer.style.transform="translate3d(0px, 0px, 0px)",this.rowsContainer.style.overflow="hidden",this.rowsContainer.style.contain="strict"),this.disposables.add(d1.addTarget(this.rowsContainer)),this.scrollable=this.disposables.add(new NV({forceIntegerValues:!0,smoothScrollDuration:(w=c.smoothScrolling)!==null&&w!==void 0&&w?125:0,scheduleAtNextAnimationFrame:ct=>LD(Gc(this.domNode),ct)})),this.scrollableElement=this.disposables.add(new ire(this.rowsContainer,{alwaysConsumeMouseWheel:(N=c.alwaysConsumeMouseWheel)!==null&&N!==void 0?N:Nre.alwaysConsumeMouseWheel,horizontal:1,vertical:(L=c.verticalScrollMode)!==null&&L!==void 0?L:Nre.verticalScrollMode,useShadows:(B=c.useShadows)!==null&&B!==void 0?B:Nre.useShadows,mouseWheelScrollSensitivity:c.mouseWheelScrollSensitivity,fastScrollSensitivity:c.fastScrollSensitivity,scrollByPage:c.scrollByPage},this.scrollable)),this.domNode.appendChild(this.scrollableElement.getDomNode()),e.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),this.disposables.add(Jr(this.rowsContainer,pg.Change,ct=>this.onTouchChange(ct))),this.disposables.add(Jr(this.scrollableElement.getDomNode(),"scroll",ct=>ct.target.scrollTop=0)),this.disposables.add(Jr(this.domNode,"dragover",ct=>this.onDragOver(this.toDragEvent(ct)))),this.disposables.add(Jr(this.domNode,"drop",ct=>this.onDrop(this.toDragEvent(ct)))),this.disposables.add(Jr(this.domNode,"dragleave",ct=>this.onDragLeave(this.toDragEvent(ct)))),this.disposables.add(Jr(this.domNode,"dragend",ct=>this.onDragEnd(ct))),this.setRowLineHeight=(F=c.setRowLineHeight)!==null&&F!==void 0?F:Nre.setRowLineHeight,this.setRowHeight=(Y=c.setRowHeight)!==null&&Y!==void 0?Y:Nre.setRowHeight,this.supportDynamicHeights=(Z=c.supportDynamicHeights)!==null&&Z!==void 0?Z:Nre.supportDynamicHeights,this.dnd=(ee=c.dnd)!==null&&ee!==void 0?ee:this.disposables.add(Nre.dnd),this.layout((Te=c.initialSize)===null||Te===void 0?void 0:Te.height,(Je=c.initialSize)===null||Je===void 0?void 0:Je.width)}updateOptions(e){e.paddingBottom!==void 0&&(this.paddingBottom=e.paddingBottom,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),e.smoothScrolling!==void 0&&this.scrollable.setSmoothScrollDuration(e.smoothScrolling?125:0),e.horizontalScrolling!==void 0&&(this.horizontalScrolling=e.horizontalScrolling);let r;if(e.scrollByPage!==void 0&&(r={...r??{},scrollByPage:e.scrollByPage}),e.mouseWheelScrollSensitivity!==void 0&&(r={...r??{},mouseWheelScrollSensitivity:e.mouseWheelScrollSensitivity}),e.fastScrollSensitivity!==void 0&&(r={...r??{},fastScrollSensitivity:e.fastScrollSensitivity}),r&&this.scrollableElement.updateOptions(r),e.paddingTop!==void 0&&e.paddingTop!==this.rangeMap.paddingTop){let o=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),c=e.paddingTop-this.rangeMap.paddingTop;this.rangeMap.paddingTop=e.paddingTop,this.render(o,Math.max(0,this.lastRenderTop+c),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 w3t(e)}splice(e,r,o=[]){if(this.splicing)throw new Error("Can't run recursive splices.");this.splicing=!0;try{return this._splice(e,r,o)}finally{this.splicing=!1,this._onDidChangeContentHeight.fire(this.contentHeight)}}_splice(e,r,o=[]){let c=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),d={start:e,end:e+r},h=zD.intersect(c,d),b=new Map;for(let Nt=h.end-1;Nt>=h.start;Nt--){let Yt=this.items[Nt];if(Yt.dragStartDisposable.dispose(),Yt.checkedDisposable.dispose(),Yt.row){let jt=b.get(Yt.templateId);jt||(jt=[],b.set(Yt.templateId,jt));let mi=this.renderers.get(Yt.templateId);mi&&mi.disposeElement&&mi.disposeElement(Yt.element,Nt,Yt.row.templateData,Yt.size),jt.unshift(Yt.row)}Yt.row=null,Yt.stale=!0}let w={start:e+r,end:this.items.length},N=zD.intersect(w,c),L=zD.relativeComplement(w,c),B=o.map(Nt=>({id:String(this.itemId++),element:Nt,templateId:this.virtualDelegate.getTemplateId(Nt),size:this.virtualDelegate.getHeight(Nt),width:void 0,hasDynamicHeight:!!this.virtualDelegate.hasDynamicHeight&&this.virtualDelegate.hasDynamicHeight(Nt),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:tn.None,checkedDisposable:tn.None,stale:!1})),F;e===0&&r>=this.items.length?(this.rangeMap=this.createRangeMap(this.rangeMap.paddingTop),this.rangeMap.splice(0,0,B),F=this.items,this.items=B):(this.rangeMap.splice(e,r,B),F=this.items.splice(e,r,...B));let Y=o.length-r,Z=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),ee=T3t(N,Y),Te=zD.intersect(Z,ee);for(let Nt=Te.start;NtT3t(Nt,Y)),Ct=[{start:e,end:e+o.length},...Xe].map(Nt=>zD.intersect(Z,Nt)).reverse();for(let Nt of Ct)for(let Yt=Nt.end-1;Yt>=Nt.start;Yt--){let jt=this.items[Yt],mi=b.get(jt.templateId),_n=mi?.pop();this.insertItemInDOM(Yt,_n)}for(let Nt of b.values())for(let Yt of Nt)this.cache.release(Yt);return this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),F.map(Nt=>Nt.element)}eventuallyUpdateScrollDimensions(){this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=`${this._scrollHeight}px`,this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=LD(Gc(this.domNode),()=>{this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight}),this.updateScrollWidth(),this.scrollableElementUpdateDisposable=null}))}eventuallyUpdateScrollWidth(){if(!this.horizontalScrolling){this.scrollableElementWidthDelayer.cancel();return}this.scrollableElementWidthDelayer.trigger(()=>this.updateScrollWidth())}updateScrollWidth(){if(!this.horizontalScrolling)return;let e=0;for(let r of this.items)typeof r.width<"u"&&(e=Math.max(e,r.width));this.scrollWidth=e,this.scrollableElement.setScrollDimensions({scrollWidth:e===0?0:e+10}),this._onDidChangeContentWidth.fire(this.scrollWidth)}rerender(){if(this.supportDynamicHeights){for(let 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(r=>r.element===e)}domElement(e){let r=this.items[e].row;return r&&r.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,r){let o={height:typeof e=="number"?e:A0i(this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,o.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(o),typeof r<"u"&&(this.renderWidth=r,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight)),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:typeof r=="number"?r:rNt(this.domNode)})}render(e,r,o,c,d,h=!1){let b=this.getRenderRange(r,o),w=zD.relativeComplement(b,e).reverse(),N=zD.relativeComplement(e,b);if(h){let L=zD.intersect(e,b);for(let B=L.start;B{for(let L of N)for(let B=L.start;B=L.start;B--)this.insertItemInDOM(B)}),c!==void 0&&(this.rowsContainer.style.left=`-${c}px`),this.rowsContainer.style.top=`-${r}px`,this.horizontalScrolling&&d!==void 0&&(this.rowsContainer.style.width=`${Math.max(d,this.renderWidth)}px`),this.lastRenderTop=r,this.lastRenderHeight=o}insertItemInDOM(e,r){var o,c,d;let h=this.items[e];if(!h.row)if(r)h.row=r,h.stale=!0;else{let B=this.cache.alloc(h.templateId);h.row=B.row,h.stale||(h.stale=B.isReusingConnectedDomNode)}let b=this.accessibilityProvider.getRole(h.element)||"listitem";h.row.domNode.setAttribute("role",b);let w=this.accessibilityProvider.isChecked(h.element);if(typeof w=="boolean")h.row.domNode.setAttribute("aria-checked",String(!!w));else if(w){let B=F=>h.row.domNode.setAttribute("aria-checked",String(!!F));B(w.value),h.checkedDisposable=w.onDidChange(()=>B(w.value))}if(h.stale||!h.row.domNode.parentElement){let B=(d=(c=(o=this.items.at(e+1))===null||o===void 0?void 0:o.row)===null||c===void 0?void 0:c.domNode)!==null&&d!==void 0?d:null;(h.row.domNode.parentElement!==this.rowsContainer||h.row.domNode.nextElementSibling!==B)&&this.rowsContainer.insertBefore(h.row.domNode,B),h.stale=!1}this.updateItemInDOM(h,e);let N=this.renderers.get(h.templateId);if(!N)throw new Error(`No renderer found for template id ${h.templateId}`);N?.renderElement(h.element,e,h.row.templateData,h.size);let L=this.dnd.getDragURI(h.element);h.dragStartDisposable.dispose(),h.row.domNode.draggable=!!L,L&&(h.dragStartDisposable=Jr(h.row.domNode,"dragstart",B=>this.onDragStart(h.element,L,B))),this.horizontalScrolling&&(this.measureItemWidth(h),this.eventuallyUpdateScrollWidth())}measureItemWidth(e){if(!e.row||!e.row.domNode)return;e.row.domNode.style.width="fit-content",e.width=rNt(e.row.domNode);let r=Gc(e.row.domNode).getComputedStyle(e.row.domNode);r.paddingLeft&&(e.width+=parseFloat(r.paddingLeft)),r.paddingRight&&(e.width+=parseFloat(r.paddingRight)),e.row.domNode.style.width=""}updateItemInDOM(e,r){e.row.domNode.style.top=`${this.elementTop(r)}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",`${r}`),e.row.domNode.setAttribute("data-last-element",r===this.length-1?"true":"false"),e.row.domNode.setAttribute("data-parity",r%2===0?"even":"odd"),e.row.domNode.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(e.element,r,this.length))),e.row.domNode.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(e.element,r))),e.row.domNode.setAttribute("id",this.getElementDomId(r)),e.row.domNode.classList.toggle("drop-target",e.dropTarget)}removeItemFromDOM(e){let r=this.items[e];if(r.dragStartDisposable.dispose(),r.checkedDisposable.dispose(),r.row){let o=this.renderers.get(r.templateId);o&&o.disposeElement&&o.disposeElement(r.element,e,r.row.templateData,r.size),this.cache.release(r.row),r.row=null}this.horizontalScrolling&&this.eventuallyUpdateScrollWidth()}getScrollTop(){return this.scrollableElement.getScrollPosition().scrollTop}setScrollTop(e,r){this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),this.scrollableElement.setScrollPosition({scrollTop:e,reuseAnimation:r})}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 gs.map(this.disposables.add(new L_(this.domNode,"click")).event,e=>this.toMouseEvent(e),this.disposables)}get onMouseDblClick(){return gs.map(this.disposables.add(new L_(this.domNode,"dblclick")).event,e=>this.toMouseEvent(e),this.disposables)}get onMouseMiddleClick(){return gs.filter(gs.map(this.disposables.add(new L_(this.domNode,"auxclick")).event,e=>this.toMouseEvent(e),this.disposables),e=>e.browserEvent.button===1,this.disposables)}get onMouseDown(){return gs.map(this.disposables.add(new L_(this.domNode,"mousedown")).event,e=>this.toMouseEvent(e),this.disposables)}get onMouseOver(){return gs.map(this.disposables.add(new L_(this.domNode,"mouseover")).event,e=>this.toMouseEvent(e),this.disposables)}get onMouseOut(){return gs.map(this.disposables.add(new L_(this.domNode,"mouseout")).event,e=>this.toMouseEvent(e),this.disposables)}get onContextMenu(){return gs.any(gs.map(this.disposables.add(new L_(this.domNode,"contextmenu")).event,e=>this.toMouseEvent(e),this.disposables),gs.map(this.disposables.add(new L_(this.domNode,pg.Contextmenu)).event,e=>this.toGestureEvent(e),this.disposables))}get onTouchStart(){return gs.map(this.disposables.add(new L_(this.domNode,"touchstart")).event,e=>this.toTouchEvent(e),this.disposables)}get onTap(){return gs.map(this.disposables.add(new L_(this.rowsContainer,pg.Tap)).event,e=>this.toGestureEvent(e),this.disposables)}toMouseEvent(e){let r=this.getItemIndexFromEventTarget(e.target||null),o=typeof r>"u"?void 0:this.items[r],c=o&&o.element;return{browserEvent:e,index:r,element:c}}toTouchEvent(e){let r=this.getItemIndexFromEventTarget(e.target||null),o=typeof r>"u"?void 0:this.items[r],c=o&&o.element;return{browserEvent:e,index:r,element:c}}toGestureEvent(e){let r=this.getItemIndexFromEventTarget(e.initialTarget||null),o=typeof r>"u"?void 0:this.items[r],c=o&&o.element;return{browserEvent:e,index:r,element:c}}toDragEvent(e){let r=this.getItemIndexFromEventTarget(e.target||null),o=typeof r>"u"?void 0:this.items[r],c=o&&o.element,d=this.getTargetSector(e,r);return{browserEvent:e,index:r,element:c,sector:d}}onScroll(e){try{let r=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight);this.render(r,e.scrollTop,e.height,e.scrollLeft,e.scrollWidth),this.supportDynamicHeights&&this._rerender(e.scrollTop,e.height,e.inSmoothScrolling)}catch(r){throw console.error("Got bad scroll event:",e),r}}onTouchChange(e){e.preventDefault(),e.stopPropagation(),this.scrollTop-=e.translationY}onDragStart(e,r,o){var c,d;if(!o.dataTransfer)return;let h=this.dnd.getDragElements(e);if(o.dataTransfer.effectAllowed="copyMove",o.dataTransfer.setData(oxe.TEXT,r),o.dataTransfer.setDragImage){let b;this.dnd.getDragLabel&&(b=this.dnd.getDragLabel(h,o)),typeof b>"u"&&(b=String(h.length));let w=qo(".monaco-drag-image");w.textContent=b;let L=(B=>{for(;B&&!B.classList.contains("monaco-workbench");)B=B.parentElement;return B||this.domNode.ownerDocument})(this.domNode);L.appendChild(w),o.dataTransfer.setDragImage(w,-10,-10),setTimeout(()=>L.removeChild(w),0)}this.domNode.classList.add("dragging"),this.currentDragData=new Kfe(h),yLe.CurrentDragAndDropData=new Xri(h),(d=(c=this.dnd).onDragStart)===null||d===void 0||d.call(c,this.currentDragData,o)}onDragOver(e){var r,o;if(e.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),yLe.CurrentDragAndDropData&&yLe.CurrentDragAndDropData.getData()==="vscode-ui"||(this.setupDragAndDropScrollTopAnimation(e.browserEvent),!e.browserEvent.dataTransfer))return!1;if(!this.currentDragData)if(yLe.CurrentDragAndDropData)this.currentDragData=yLe.CurrentDragAndDropData;else{if(!e.browserEvent.dataTransfer.types)return!1;this.currentDragData=new Yri}let c=this.dnd.onDragOver(this.currentDragData,e.element,e.index,e.sector,e.browserEvent);if(this.canDrop=typeof c=="boolean"?c:c.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;e.browserEvent.dataTransfer.dropEffect=typeof c!="boolean"&&((r=c.effect)===null||r===void 0?void 0:r.type)===0?"copy":"move";let d;typeof c!="boolean"&&c.feedback?d=c.feedback:typeof e.index>"u"?d=[-1]:d=[e.index],d=GF(d).filter(b=>b>=-1&&bb-w),d=d[0]===-1?[-1]:d;let h=typeof c!="boolean"&&c.effect&&c.effect.position?c.effect.position:"drop-target";if(ozi(this.currentDragFeedback,d)&&this.currentDragFeedbackPosition===h)return!0;if(this.currentDragFeedback=d,this.currentDragFeedbackPosition=h,this.currentDragFeedbackDisposable.dispose(),d[0]===-1)this.domNode.classList.add(h),this.rowsContainer.classList.add(h),this.currentDragFeedbackDisposable=Ma(()=>{this.domNode.classList.remove(h),this.rowsContainer.classList.remove(h)});else{if(d.length>1&&h!=="drop-target")throw new Error("Can't use multiple feedbacks with position different than 'over'");h==="drop-target-after"&&d[0]{var b;for(let w of d){let N=this.items[w];N.dropTarget=!1,(b=N.row)===null||b===void 0||b.domNode.classList.remove(h)}})}return!0}onDragLeave(e){var r,o;this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=bB(()=>this.clearDragOverFeedback(),100,this.disposables),this.currentDragData&&((o=(r=this.dnd).onDragLeave)===null||o===void 0||o.call(r,this.currentDragData,e.element,e.index,e.browserEvent))}onDrop(e){if(!this.canDrop)return;let r=this.currentDragData;this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.domNode.classList.remove("dragging"),this.currentDragData=void 0,yLe.CurrentDragAndDropData=void 0,!(!r||!e.browserEvent.dataTransfer)&&(e.browserEvent.preventDefault(),r.update(e.browserEvent.dataTransfer),this.dnd.drop(r,e.element,e.index,e.sector,e.browserEvent))}onDragEnd(e){var r,o;this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.domNode.classList.remove("dragging"),this.currentDragData=void 0,yLe.CurrentDragAndDropData=void 0,(o=(r=this.dnd).onDragEnd)===null||o===void 0||o.call(r,e)}clearDragOverFeedback(){this.currentDragFeedback=void 0,this.currentDragFeedbackPosition=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=tn.None}setupDragAndDropScrollTopAnimation(e){if(!this.dragOverAnimationDisposable){let r=iNt(this.domNode).top;this.dragOverAnimationDisposable=z0i(Gc(this.domNode),this.animateDragAndDropScrollTop.bind(this,r))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=bB(()=>{this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)},1e3,this.disposables),this.dragOverMouseY=e.pageY}animateDragAndDropScrollTop(e){if(this.dragOverMouseY===void 0)return;let r=this.dragOverMouseY-e,o=this.renderHeight-35;r<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(r-35))):r>o&&(this.scrollTop+=Math.min(14,Math.floor(.3*(r-o))))}teardownDragAndDropScrollTopAnimation(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}getTargetSector(e,r){if(r===void 0)return;let o=e.offsetY/this.items[r].size,c=Math.floor(o/.25);return WD(c,0,3)}getItemIndexFromEventTarget(e){let r=this.scrollableElement.getDomNode(),o=e;for(;Wv(o)&&o!==this.rowsContainer&&r.contains(o);){let c=o.getAttribute("data-index");if(c){let d=Number(c);if(!isNaN(d))return d}o=o.parentElement}}getRenderRange(e,r){return{start:this.rangeMap.indexAt(e),end:this.rangeMap.indexAfter(e+r-1)}}_rerender(e,r,o){let c=this.getRenderRange(e,r),d,h;e===this.elementTop(c.start)?(d=c.start,h=0):c.end-c.start>1&&(d=c.start+1,h=this.elementTop(d)-e);let b=0;for(;;){let w=this.getRenderRange(e,r),N=!1;for(let L=w.start;L=F.start;Y--)this.insertItemInDOM(Y);for(let F=w.start;FJm(e,r,l)}function I3t(){return(l,e)=>l.equals(e)}function Zwi(l,e,r){return!l||!e?l===e:r(l,e)}var BV,hUe=ti(()=>{sd();BV=(l,e)=>l===e});function szi(l,e){var r;let o=Zri.get(l);if(o)return o;let c=azi(l,e);if(c){let d=(r=eTi.get(c))!==null&&r!==void 0?r:0;d++,eTi.set(c,d);let h=d===1?c:`${c}#${d}`;return Zri.set(l,h),h}}function azi(l,e){let r=Zri.get(l);if(r)return r;let o=e.owner?lzi(e.owner)+".":"",c,d=e.debugNameSource;if(d!==void 0)if(typeof d=="function"){if(c=d(),c!==void 0)return o+c}else return o+d;let h=e.referenceFn;if(h!==void 0&&(c=gUe(h),c!==void 0))return o+c;if(e.owner!==void 0){let b=czi(e.owner,l);if(b!==void 0)return o+b}}function czi(l,e){for(let r in l)if(l[r]===e)return r}function lzi(l){var e;let r=iTi.get(l);if(r)return r;let o=uzi(l),c=(e=tTi.get(o))!==null&&e!==void 0?e:0;c++,tTi.set(o,c);let d=c===1?o:`${o}#${c}`;return iTi.set(l,d),d}function uzi(l){let e=l.constructor;return e?e.name:"Object"}function gUe(l){let e=l.toString(),o=/\/\*\*\s*@description\s*([^*]*)\*\//.exec(e),c=o?o[1]:void 0;return c?.trim()}var $I,eTi,Zri,tTi,iTi,i_t=ti(()=>{$I=class{constructor(e,r,o){this.owner=e,this.debugNameSource=r,this.referenceFn=o}getDebugName(e){return szi(e,this)}},eTi=new Map,Zri=new WeakMap;tTi=new Map,iTi=new WeakMap});function rTi(l){nTi=l}function MB(){return nTi}function dzi(l){let e=new Array,r=[],o="";function c(h){if("length"in h)for(let b of h)b&&c(b);else"text"in h?(o+=`%c${h.text}`,e.push(h.style),h.data&&r.push(...h.data)):"data"in h&&r.push(...h.data)}c(l);let d=[o,...e];return d.push(...r),d}function yUe(l){return mQ(l,{color:"black"})}function n_t(l){return mQ(mzi(`${l}: `,10),{color:"black",bold:!0})}function mQ(l,e={color:"black"}){function r(c){return Object.entries(c).reduce((d,[h,b])=>`${d}${h}:${b};`,"")}let o={color:e.color};return e.strikeThrough&&(o["text-decoration"]="line-through"),e.bold&&(o["font-weight"]="bold"),{text:l,style:r(o)}}function r_t(l,e){switch(typeof l){case"number":return""+l;case"string":return l.length+2<=e?`"${l}"`:`"${l.substr(0,e-7)}"+...`;case"boolean":return l?"true":"false";case"undefined":return"undefined";case"object":return l===null?"null":Array.isArray(l)?fzi(l,e):_zi(l,e);case"symbol":return l.toString();case"function":return`[[Function${l.name?" "+l.name:""}]]`;default:return""+l}}function fzi(l,e){let r="[ ",o=!0;for(let c of l){if(o||(r+=", "),r.length-5>e){r+="...";break}o=!1,r+=`${r_t(c,e-r.length)}`}return r+=" ]",r}function _zi(l,e){let r="{ ",o=!0;for(let[c,d]of Object.entries(l)){if(o||(r+=", "),r.length-5>e){r+="...";break}o=!1,r+=`${c}: ${r_t(d,e-r.length)}`}return r+=" }",r}function pzi(l,e){let r="";for(let o=1;o<=e;o++)r+=l;return r}function mzi(l,e){for(;l.length{N3t=class{constructor(){this.indentation=0,this.changedObservablesSets=new WeakMap}textToConsoleArgs(e){return dzi([yUe(pzi("| ",this.indentation)),e])}formatInfo(e){return e.hadValue?e.didChange?[yUe(" "),mQ(r_t(e.oldValue,70),{color:"red",strikeThrough:!0}),yUe(" "),mQ(r_t(e.newValue,60),{color:"green"})]:[yUe(" (unchanged)")]:[yUe(" "),mQ(r_t(e.newValue,60),{color:"green"}),yUe(" (initial)")]}handleObservableChanged(e,r){console.log(...this.textToConsoleArgs([n_t("observable value changed"),mQ(e.debugName,{color:"BlueViolet"}),...this.formatInfo(r)]))}formatChanges(e){if(e.size!==0)return mQ(" (changed deps: "+[...e].map(r=>r.debugName).join(", ")+")",{color:"gray"})}handleDerivedCreated(e){let r=e.handleChange;this.changedObservablesSets.set(e,new Set),e.handleChange=(o,c)=>(this.changedObservablesSets.get(e).add(o),r.apply(e,[o,c]))}handleDerivedRecomputed(e,r){let o=this.changedObservablesSets.get(e);console.log(...this.textToConsoleArgs([n_t("derived recomputed"),mQ(e.debugName,{color:"BlueViolet"}),...this.formatInfo(r),this.formatChanges(o),{data:[{fn:e._computeFn}]}])),o.clear()}handleFromEventObservableTriggered(e,r){console.log(...this.textToConsoleArgs([n_t("observable from event triggered"),mQ(e.debugName,{color:"BlueViolet"}),...this.formatInfo(r),{data:[{fn:e._getValue}]}]))}handleAutorunCreated(e){let r=e.handleChange;this.changedObservablesSets.set(e,new Set),e.handleChange=(o,c)=>(this.changedObservablesSets.get(e).add(o),r.apply(e,[o,c]))}handleAutorunTriggered(e){let r=this.changedObservablesSets.get(e);console.log(...this.textToConsoleArgs([n_t("autorun"),mQ(e.debugName,{color:"BlueViolet"}),this.formatChanges(r),{data:[{fn:e._runFn}]}])),r.clear(),this.indentation++}handleAutorunFinished(e){this.indentation--}handleBeginTransaction(e){let r=e.getDebugName();r===void 0&&(r=""),console.log(...this.textToConsoleArgs([n_t("transaction"),mQ(r,{color:"BlueViolet"}),{data:[{fn:e._fn}]}])),this.indentation++}handleEndTransaction(){this.indentation--}}});function sTi(l){oTi=l}function aTi(l){hzi=l}function lTi(l){cTi=l}function Pm(l,e){let r=new bUe(l,e);try{l(r)}finally{r.finish()}}function SUe(l){if(A3t)l(A3t);else{let e=new bUe(l,void 0);A3t=e;try{l(e)}finally{e.finish(),A3t=void 0}}}async function uTi(l,e){let r=new bUe(l,e);try{await l(r)}finally{r.finish()}}function Are(l,e,r){l?e(l):Pm(e,r)}function Jf(l,e){let r;return typeof l=="string"?r=new $I(void 0,l,void 0):r=new $I(l,void 0,void 0),new s_t(r,e,BV)}function dTi(l,e){var r;return new s_t(new $I(l.owner,l.debugName,void 0),e,(r=l.equalsFn)!==null&&r!==void 0?r:BV)}function Pre(l,e){let r;return typeof l=="string"?r=new $I(void 0,l,void 0):r=new $I(l,void 0,void 0),new eoi(r,e,BV)}var oTi,hzi,cTi,o_t,Yfe,A3t,bUe,s_t,eoi,sxe=ti(()=>{hUe();i_t();vUe();o_t=class{get TChange(){return null}reportChanges(){this.get()}read(e){return e?e.readObservable(this):this.get()}map(e,r){let o=r===void 0?void 0:e,c=r===void 0?e:r;return cTi({owner:o,debugName:()=>{let d=gUe(c);if(d!==void 0)return d;let b=/^\s*\(?\s*([a-zA-Z_$][a-zA-Z_$0-9]*)\s*\)?\s*=>\s*\1(?:\??)\.([a-zA-Z_$][a-zA-Z_$0-9]*)\s*$/.exec(c.toString());if(b)return`${this.debugName}.${b[2]}`;if(!o)return`${this.debugName} (mapped)`},debugReferenceFn:c},d=>c(this.read(d),d))}recomputeInitiallyAndOnChange(e,r){return e.add(oTi(this,r)),this}},Yfe=class extends o_t{constructor(){super(...arguments),this.observers=new Set}addObserver(e){let r=this.observers.size;this.observers.add(e),r===0&&this.onFirstObserverAdded()}removeObserver(e){this.observers.delete(e)&&this.observers.size===0&&this.onLastObserverRemoved()}onFirstObserverAdded(){}onLastObserverRemoved(){}};bUe=class{constructor(e,r){var o;this._fn=e,this._getDebugName=r,this.updatingObservers=[],(o=MB())===null||o===void 0||o.handleBeginTransaction(this)}getDebugName(){return this._getDebugName?this._getDebugName():gUe(this._fn)}updateObserver(e,r){this.updatingObservers.push({observer:e,observable:r}),e.beginUpdate(r)}finish(){var e;let r=this.updatingObservers;for(let o=0;o{},()=>`Setting ${this.debugName}`));try{let h=this._value;this._setValue(e),(c=MB())===null||c===void 0||c.handleObservableChanged(this,{oldValue:h,newValue:e,change:o,didChange:!0,hadValue:!0});for(let b of this.observers)r.updateObserver(b,this),b.handleChange(this,o)}finally{d&&d.finish()}}toString(){return`${this.debugName}: ${this._value}`}_setValue(e){this._value=e}};eoi=class extends s_t{_setValue(e){this._value!==e&&(this._value&&this._value.dispose(),this._value=e)}dispose(){var e;(e=this._value)===null||e===void 0||e.dispose()}}});function Ru(l,e){return e!==void 0?new Qfe(new $I(l,void 0,e),e,void 0,void 0,void 0,BV):new Qfe(new $I(void 0,void 0,l),l,void 0,void 0,void 0,BV)}function P3t(l,e,r){return new toi(new $I(l,void 0,e),e,void 0,void 0,void 0,BV,r)}function RB(l,e){var r;return new Qfe(new $I(l.owner,l.debugName,l.debugReferenceFn),e,void 0,void 0,l.onLastObserverRemoved,(r=l.equalsFn)!==null&&r!==void 0?r:BV)}function ioi(l,e){var r;return new Qfe(new $I(l.owner,l.debugName,void 0),e,l.createEmptyChangeSummary,l.handleChange,void 0,(r=l.equalityComparer)!==null&&r!==void 0?r:BV)}function zR(l,e){let r,o;e===void 0?(r=l,o=void 0):(o=l,r=e);let c=new Fr;return new Qfe(new $I(o,void 0,r),d=>(c.clear(),r(d,c)),void 0,void 0,()=>c.dispose(),BV)}function jV(l,e){let r,o;e===void 0?(r=l,o=void 0):(o=l,r=e);let c=new Fr;return new Qfe(new $I(o,void 0,r),d=>{c.clear();let h=r(d);return h&&c.add(h),h},void 0,void 0,()=>c.dispose(),BV)}var Qfe,toi,axe=ti(()=>{jq();hUe();co();sxe();i_t();vUe();lTi(RB);Qfe=class extends Yfe{get debugName(){var e;return(e=this._debugNameData.getDebugName(this))!==null&&e!==void 0?e:"(anonymous)"}constructor(e,r,o,c,d=void 0,h){var b,w;super(),this._debugNameData=e,this._computeFn=r,this.createChangeSummary=o,this._handleChange=c,this._handleLastObserverRemoved=d,this._equalityComparator=h,this.state=0,this.value=void 0,this.updateCount=0,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=void 0,this.changeSummary=(b=this.createChangeSummary)===null||b===void 0?void 0:b.call(this),(w=MB())===null||w===void 0||w.handleDerivedCreated(this)}onLastObserverRemoved(){var e;this.state=0,this.value=void 0;for(let r of this.dependencies)r.removeObserver(this);this.dependencies.clear(),(e=this._handleLastObserverRemoved)===null||e===void 0||e.call(this)}get(){var e;if(this.observers.size===0){let r=this._computeFn(this,(e=this.createChangeSummary)===null||e===void 0?void 0:e.call(this));return this.onLastObserverRemoved(),r}else{do{if(this.state===1){for(let r of this.dependencies)if(r.reportChanges(),this.state===2)break}this.state===1&&(this.state=3),this._recomputeIfNeeded()}while(this.state!==3);return this.value}}_recomputeIfNeeded(){var e,r;if(this.state===3)return;let o=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=o;let c=this.state!==0,d=this.value;this.state=3;let h=this.changeSummary;this.changeSummary=(e=this.createChangeSummary)===null||e===void 0?void 0:e.call(this);try{this.value=this._computeFn(this,h)}finally{for(let w of this.dependenciesToBeRemoved)w.removeObserver(this);this.dependenciesToBeRemoved.clear()}let b=c&&!this._equalityComparator(d,this.value);if((r=MB())===null||r===void 0||r.handleDerivedRecomputed(this,{oldValue:d,newValue:this.value,change:void 0,didChange:b,hadValue:c}),b)for(let w of this.observers)w.handleChange(this,void 0)}toString(){return`LazyDerived<${this.debugName}>`}beginUpdate(e){this.updateCount++;let r=this.updateCount===1;if(this.state===3&&(this.state=1,!r))for(let o of this.observers)o.handlePossibleChange(this);if(r)for(let o of this.observers)o.beginUpdate(this)}endUpdate(e){if(this.updateCount--,this.updateCount===0){let r=[...this.observers];for(let o of r)o.endUpdate(this)}Bq(()=>this.updateCount>=0)}handlePossibleChange(e){if(this.state===3&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){this.state=1;for(let r of this.observers)r.handlePossibleChange(this)}}handleChange(e,r){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){let o=this._handleChange?this._handleChange({changedObservable:e,change:r,didChange:d=>d===e},this.changeSummary):!0,c=this.state===3;if(o&&(this.state===1||c)&&(this.state=2,c))for(let d of this.observers)d.handlePossibleChange(this)}}readObservable(e){e.addObserver(this);let r=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),r}addObserver(e){let r=!this.observers.has(e)&&this.updateCount>0;super.addObserver(e),r&&e.beginUpdate(this)}removeObserver(e){let r=this.observers.has(e)&&this.updateCount>0;super.removeObserver(e),r&&e.endUpdate(this)}},toi=class extends Qfe{constructor(e,r,o,c,d=void 0,h,b){super(e,r,o,c,d,h),this.set=b}}});function ad(l){return new xUe(new $I(void 0,void 0,l),l,void 0,void 0)}function cxe(l,e){var r;return new xUe(new $I(l.owner,l.debugName,(r=l.debugReferenceFn)!==null&&r!==void 0?r:e),e,void 0,void 0)}function Lre(l,e){var r;return new xUe(new $I(l.owner,l.debugName,(r=l.debugReferenceFn)!==null&&r!==void 0?r:e),e,l.createEmptyChangeSummary,l.handleChange)}function LT(l){let e=new Fr,r=cxe({owner:void 0,debugName:void 0,debugReferenceFn:l},o=>{e.clear(),l(o,e)});return Ma(()=>{r.dispose(),e.dispose()})}var xUe,noi=ti(()=>{jq();co();i_t();vUe();xUe=class{get debugName(){var e;return(e=this._debugNameData.getDebugName(this))!==null&&e!==void 0?e:"(anonymous)"}constructor(e,r,o,c){var d,h;this._debugNameData=e,this._runFn=r,this.createChangeSummary=o,this._handleChange=c,this.state=2,this.updateCount=0,this.disposed=!1,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=(d=this.createChangeSummary)===null||d===void 0?void 0:d.call(this),(h=MB())===null||h===void 0||h.handleAutorunCreated(this),this._runIfNeeded(),O4e(this)}dispose(){this.disposed=!0;for(let e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),F4e(this)}_runIfNeeded(){var e,r,o;if(this.state===3)return;let c=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=c,this.state=3;let d=this.disposed;try{if(!d){(e=MB())===null||e===void 0||e.handleAutorunTriggered(this);let h=this.changeSummary;this.changeSummary=(r=this.createChangeSummary)===null||r===void 0?void 0:r.call(this),this._runFn(this,h)}}finally{d||(o=MB())===null||o===void 0||o.handleAutorunFinished(this);for(let h of this.dependenciesToBeRemoved)h.removeObserver(this);this.dependenciesToBeRemoved.clear()}}toString(){return`Autorun<${this.debugName}>`}beginUpdate(){this.state===3&&(this.state=1),this.updateCount++}endUpdate(){if(this.updateCount===1)do{if(this.state===1){this.state=3;for(let e of this.dependencies)if(e.reportChanges(),this.state===2)break}this._runIfNeeded()}while(this.state!==3);this.updateCount--,Bq(()=>this.updateCount>=0)}handlePossibleChange(e){this.state===3&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)&&(this.state=1)}handleChange(e,r){this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)&&(!this._handleChange||this._handleChange({changedObservable:e,change:r,didChange:c=>c===e},this.changeSummary))&&(this.state=2)}readObservable(e){if(this.disposed)return e.get();e.addObserver(this);let r=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),r}};(function(l){l.Observer=xUe})(ad||(ad={}))});function D6(l){return new roi(l)}function $p(l,e){return new vLe(l,e)}function iw(l,e){return new ooi(l,e)}function Zfe(l){return typeof l=="string"?new L3t(l):new L3t(void 0,l)}function fTi(l){let e=new O3t(!1,void 0);return l.addObserver(e),Ma(()=>{l.removeObserver(e)})}function Ore(l,e){let r=new O3t(!0,e);return l.addObserver(r),e?e(l.get()):l.reportChanges(),Ma(()=>{l.removeObserver(r)})}function soi(l,e){let r;return Ru(l,c=>(r=e(c,r),r))}function _Ti(l,e,r,o){let c=new F3t(r,o);return RB({debugReferenceFn:r,owner:l,onLastObserverRemoved:()=>{c.dispose(),c=new F3t(r)}},h=>(c.setItems(e.read(h)),c.getItems()))}var roi,vLe,ooi,L3t,O3t,F3t,aoi=ti(()=>{xc();co();sxe();i_t();axe();vUe();roi=class extends o_t{constructor(e){super(),this.value=e}get debugName(){return this.toString()}get(){return this.value}addObserver(e){}removeObserver(e){}toString(){return`Const: ${this.value}`}};vLe=class l extends Yfe{constructor(e,r){super(),this.event=e,this._getValue=r,this.hasValue=!1,this.handleEvent=o=>{var c;let d=this._getValue(o),h=this.value,b=!this.hasValue||h!==d,w=!1;b&&(this.value=d,this.hasValue&&(w=!0,Are(l.globalTransaction,N=>{var L;(L=MB())===null||L===void 0||L.handleFromEventObservableTriggered(this,{oldValue:h,newValue:d,change:void 0,didChange:b,hadValue:this.hasValue});for(let B of this.observers)N.updateObserver(B,this),B.handleChange(this,void 0)},()=>{let N=this.getDebugName();return"Event fired"+(N?`: ${N}`:"")})),this.hasValue=!0),w||(c=MB())===null||c===void 0||c.handleFromEventObservableTriggered(this,{oldValue:h,newValue:d,change:void 0,didChange:b,hadValue:this.hasValue})}}getDebugName(){return gUe(this._getValue)}get debugName(){let e=this.getDebugName();return"From Event"+(e?`: ${e}`:"")}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0,this.hasValue=!1,this.value=void 0}get(){return this.subscription?(this.hasValue||this.handleEvent(void 0),this.value):this._getValue(void 0)}};(function(l){l.Observer=vLe;function e(r,o){let c=!1;vLe.globalTransaction===void 0&&(vLe.globalTransaction=r,c=!0);try{o()}finally{c&&(vLe.globalTransaction=void 0)}}l.batchEventsGlobally=e})($p||($p={}));ooi=class extends Yfe{constructor(e,r){super(),this.debugName=e,this.event=r,this.handleEvent=()=>{Pm(o=>{for(let c of this.observers)o.updateObserver(c,this),c.handleChange(this,void 0)},()=>this.debugName)}}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0}get(){}};L3t=class extends Yfe{get debugName(){var e;return(e=new $I(this._owner,this._debugName,void 0).getDebugName(this))!==null&&e!==void 0?e:"Observable Signal"}constructor(e,r){super(),this._debugName=e,this._owner=r}trigger(e,r){if(!e){Pm(o=>{this.trigger(o,r)},()=>`Trigger signal ${this.debugName}`);return}for(let o of this.observers)e.updateObserver(o,this),o.handleChange(this,r)}get(){}};aTi(fTi);sTi(Ore);O3t=class{constructor(e,r){this._forceRecompute=e,this._handleValue=r,this._counter=0}beginUpdate(e){this._counter++}endUpdate(e){this._counter--,this._counter===0&&this._forceRecompute&&(this._handleValue?this._handleValue(e.get()):e.reportChanges())}handlePossibleChange(e){}handleChange(e,r){}};F3t=class{constructor(e,r){this._map=e,this._keySelector=r,this._cache=new Map,this._items=[]}dispose(){this._cache.forEach(e=>e.store.dispose()),this._cache.clear()}setItems(e){let r=[],o=new Set(this._cache.keys());for(let c of e){let d=this._keySelector?this._keySelector(c):c,h=this._cache.get(d);if(h)o.delete(d);else{let b=new Fr;h={out:this._map(c,b),store:b},this._cache.set(d,h)}r.push(h.out)}for(let c of o)this._cache.get(c).store.dispose(),this._cache.delete(c);this._items=r}getItems(){return this._items}}});function a_t(l,e,r,o){return e||(e=c=>c!=null),new Promise((c,d)=>{let h=!0,b=!1,w=l.map(L=>({isFinished:e(L),error:r?r(L):!1,state:L})),N=ad(L=>{let{isFinished:B,error:F,state:Y}=w.read(L);(B||F)&&(h?b=!0:N.dispose(),F?d(F===!0?Y:F):c(Y))});if(o){let L=o.onCancellationRequested(()=>{N.dispose(),L.dispose(),d(new ZL)});if(o.isCancellationRequested){N.dispose(),L.dispose(),d(new ZL);return}}h=!1,b&&N.dispose()})}var pTi=ti(()=>{noi();Du()});var gzi,xv=ti(()=>{sxe();axe();noi();aoi();pTi();vUe();gzi=!1;gzi&&rTi(new N3t)});function e_e(l){return l.tagName==="INPUT"||l.tagName==="TEXTAREA"}function d_t(l,e){return l.classList.contains(e)?!0:l.classList.contains("monaco-list")||!l.parentElement?!1:d_t(l.parentElement,e)}function CUe(l){return d_t(l,"monaco-editor")}function gTi(l){return d_t(l,"monaco-custom-toggle")}function yTi(l){return d_t(l,"action-item")}function TUe(l){return d_t(l,"monaco-tree-sticky-row")}function EUe(l){return l.classList.contains("monaco-tree-sticky-container")}function hoi(l){return l.tagName==="A"&&l.classList.contains("monaco-button")||l.tagName==="DIV"&&l.classList.contains("monaco-button-dropdown")?!0:l.classList.contains("monaco-list")||!l.parentElement?!1:hoi(l.parentElement)}function goi(l){return md?l.browserEvent.metaKey:l.browserEvent.ctrlKey}function yoi(l){return l.browserEvent.shiftKey}function vzi(l){return mVe(l)&&l.button===2}function Szi(l,e){let r=l.indexOf(e);if(r===-1)return[];let o=[],c=r-1;for(;c>=0&&l[c]===e-(r-c);)o.push(l[c--]);for(o.reverse(),c=r;c=l.length)r.push(e[c++]);else if(c>=e.length)r.push(l[o++]);else if(l[o]===e[c]){r.push(l[o]),o++,c++;continue}else l[o]=l.length)r.push(e[c++]);else if(c>=e.length)r.push(l[o++]);else if(l[o]===e[c]){o++,c++;continue}else l[o]{nc();n$();lA();FR();gA();Gwi();sd();Ud();rx();DSe();xc();MV();co();lLe();X_();Fh();Kri();Kwi();D3t();vB();xv();lxe=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},coi=class{constructor(e){this.trait=e,this.renderedElements=[]}get templateId(){return`template:${this.trait.name}`}renderTemplate(e){return e}renderElement(e,r,o){let c=this.renderedElements.findIndex(d=>d.templateData===o);if(c>=0){let d=this.renderedElements[c];this.trait.unrender(o),d.index=r}else{let d={index:r,templateData:o};this.renderedElements.push(d)}this.trait.renderIndex(r,o)}splice(e,r,o){let c=[];for(let d of this.renderedElements)d.index=e+r&&c.push({index:d.index+o-r,templateData:d.templateData});this.renderedElements=c}renderIndexes(e){for(let{index:r,templateData:o}of this.renderedElements)e.indexOf(r)>-1&&this.trait.renderIndex(r,o)}disposeTemplate(e){let r=this.renderedElements.findIndex(o=>o.templateData===e);r<0||this.renderedElements.splice(r,1)}},wUe=class{get name(){return this._trait}get renderer(){return new coi(this)}constructor(e){this._trait=e,this.indexes=[],this.sortedIndexes=[],this._onChange=new wn,this.onChange=this._onChange.event}splice(e,r,o){let c=o.length-r,d=e+r,h=[],b=0;for(;b=d;)h.push(this.sortedIndexes[b++]+c);this.renderer.splice(e,r,o.length),this._set(h,h)}renderIndex(e,r){r.classList.toggle(this._trait,this.contains(e))}unrender(e){e.classList.remove(this._trait)}set(e,r){return this._set(e,[...e].sort(hTi),r)}_set(e,r,o){let c=this.indexes,d=this.sortedIndexes;this.indexes=e,this.sortedIndexes=r;let h=foi(d,e);return this.renderer.renderIndexes(h),this._onChange.fire({indexes:e,browserEvent:o}),c}get(){return this.indexes}contains(e){return nfe(this.sortedIndexes,e,hTi)>=0}dispose(){Fp(this._onChange)}};lxe([G1],wUe.prototype,"renderer",null);loi=class extends wUe{constructor(e){super("selected"),this.setAriaSelected=e}renderIndex(e,r){super.renderIndex(e,r),this.setAriaSelected&&(this.contains(e)?r.setAttribute("aria-selected","true"):r.setAttribute("aria-selected","false"))}},c_t=class{constructor(e,r,o){this.trait=e,this.view=r,this.identityProvider=o}splice(e,r,o){if(!this.identityProvider)return this.trait.splice(e,r,new Array(o.length).fill(!1));let c=this.trait.get().map(b=>this.identityProvider.getId(this.view.element(b)).toString());if(c.length===0)return this.trait.splice(e,r,new Array(o.length).fill(!1));let d=new Set(c),h=o.map(b=>d.has(this.identityProvider.getId(b).toString()));this.trait.splice(e,r,h)}};M3t=class{get onKeyDown(){return gs.chain(this.disposables.add(new L_(this.view.domNode,"keydown")).event,e=>e.filter(r=>!e_e(r.target)).map(r=>new Jp(r)))}constructor(e,r,o){this.list=e,this.view=r,this.disposables=new Fr,this.multipleSelectionDisposables=new Fr,this.multipleSelectionSupport=o.multipleSelectionSupport,this.disposables.add(this.onKeyDown(c=>{switch(c.keyCode){case 3:return this.onEnter(c);case 16:return this.onUpArrow(c);case 18:return this.onDownArrow(c);case 11:return this.onPageUpArrow(c);case 12:return this.onPageDownArrow(c);case 9:return this.onEscape(c);case 31:this.multipleSelectionSupport&&(md?c.metaKey:c.ctrlKey)&&this.onCtrlA(c)}}))}updateOptions(e){e.multipleSelectionSupport!==void 0&&(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);let r=this.list.getFocus()[0];this.list.setAnchor(r),this.list.reveal(r),this.view.domNode.focus()}onDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNext(1,!1,e.browserEvent);let r=this.list.getFocus()[0];this.list.setAnchor(r),this.list.reveal(r),this.view.domNode.focus()}onPageUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPreviousPage(e.browserEvent);let r=this.list.getFocus()[0];this.list.setAnchor(r),this.list.reveal(r),this.view.domNode.focus()}onPageDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNextPage(e.browserEvent);let r=this.list.getFocus()[0];this.list.setAnchor(r),this.list.reveal(r),this.view.domNode.focus()}onCtrlA(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(FP(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()}};lxe([G1],M3t.prototype,"onKeyDown",null);(function(l){l[l.Automatic=0]="Automatic",l[l.Trigger=1]="Trigger"})(hQ||(hQ={}));(function(l){l[l.Idle=0]="Idle",l[l.Typing=1]="Typing"})(kUe||(kUe={}));yzi=new class{mightProducePrintableCharacter(l){return l.ctrlKey||l.metaKey||l.altKey?!1:l.keyCode>=31&&l.keyCode<=56||l.keyCode>=21&&l.keyCode<=30||l.keyCode>=98&&l.keyCode<=107||l.keyCode>=85&&l.keyCode<=95}},uoi=class{constructor(e,r,o,c,d){this.list=e,this.view=r,this.keyboardNavigationLabelProvider=o,this.keyboardNavigationEventFilter=c,this.delegate=d,this.enabled=!1,this.state=kUe.Idle,this.mode=hQ.Automatic,this.triggered=!1,this.previouslyFocused=-1,this.enabledDisposables=new Fr,this.disposables=new Fr,this.updateOptions(e.options)}updateOptions(e){var r,o;!((r=e.typeNavigationEnabled)!==null&&r!==void 0)||r?this.enable():this.disable(),this.mode=(o=e.typeNavigationMode)!==null&&o!==void 0?o:hQ.Automatic}enable(){if(this.enabled)return;let e=!1,r=gs.chain(this.enabledDisposables.add(new L_(this.view.domNode,"keydown")).event,d=>d.filter(h=>!e_e(h.target)).filter(()=>this.mode===hQ.Automatic||this.triggered).map(h=>new Jp(h)).filter(h=>e||this.keyboardNavigationEventFilter(h)).filter(h=>this.delegate.mightProducePrintableCharacter(h)).forEach(h=>D_.stop(h,!0)).map(h=>h.browserEvent.key)),o=gs.debounce(r,()=>null,800,void 0,void 0,void 0,this.enabledDisposables);gs.reduce(gs.any(r,o),(d,h)=>h===null?null:(d||"")+h,void 0,this.enabledDisposables)(this.onInput,this,this.enabledDisposables),o(this.onClear,this,this.enabledDisposables),r(()=>e=!0,void 0,this.enabledDisposables),o(()=>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(){var e;let r=this.list.getFocus();if(r.length>0&&r[0]===this.previouslyFocused){let o=(e=this.list.options.accessibilityProvider)===null||e===void 0?void 0:e.getAriaLabel(this.list.element(r[0]));typeof o=="string"?Zk(o):o&&Zk(o.get())}this.previouslyFocused=-1}onInput(e){if(!e){this.state=kUe.Idle,this.triggered=!1;return}let r=this.list.getFocus(),o=r.length>0?r[0]:0,c=this.state===kUe.Idle?1:0;this.state=kUe.Typing;for(let d=0;d1&&N.length===1){this.previouslyFocused=o,this.list.setFocus([h]),this.list.reveal(h);return}}}else if(typeof w>"u"||fLe(e,w)){this.previouslyFocused=o,this.list.setFocus([h]),this.list.reveal(h);return}}}dispose(){this.disable(),this.enabledDisposables.dispose(),this.disposables.dispose()}},doi=class{constructor(e,r){this.list=e,this.view=r,this.disposables=new Fr;let o=gs.chain(this.disposables.add(new L_(r.domNode,"keydown")).event,d=>d.filter(h=>!e_e(h.target)).map(h=>new Jp(h)));gs.chain(o,d=>d.filter(h=>h.keyCode===2&&!h.ctrlKey&&!h.metaKey&&!h.shiftKey&&!h.altKey))(this.onTab,this,this.disposables)}onTab(e){if(e.target!==this.view.domNode)return;let r=this.list.getFocus();if(r.length===0)return;let o=this.view.domElement(r[0]);if(!o)return;let c=o.querySelector("[tabIndex]");if(!c||!Wv(c)||c.tabIndex===-1)return;let d=Gc(c).getComputedStyle(c);d.visibility==="hidden"||d.display==="none"||(e.preventDefault(),e.stopPropagation(),c.focus())}dispose(){this.disposables.dispose()}};mTi={isSelectionSingleChangeEvent:goi,isSelectionRangeChangeEvent:yoi},l_t=class{constructor(e){this.list=e,this.disposables=new Fr,this._onPointer=new wn,this.onPointer=this._onPointer.event,e.options.multipleSelectionSupport!==!1&&(this.multipleSelectionController=this.list.options.multipleSelectionController||mTi),this.mouseSupport=typeof e.options.mouseSupport>"u"||!!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(d1.addTarget(e.getHTMLElement()))),gs.any(e.onMouseClick,e.onMouseMiddleClick,e.onTap)(this.onViewPointer,this,this.disposables)}updateOptions(e){e.multipleSelectionSupport!==void 0&&(this.multipleSelectionController=void 0,e.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||mTi))}isSelectionSingleChangeEvent(e){return this.multipleSelectionController?this.multipleSelectionController.isSelectionSingleChangeEvent(e):!1}isSelectionRangeChangeEvent(e){return this.multipleSelectionController?this.multipleSelectionController.isSelectionRangeChangeEvent(e):!1}isSelectionChangeEvent(e){return this.isSelectionSingleChangeEvent(e)||this.isSelectionRangeChangeEvent(e)}onMouseDown(e){CUe(e.browserEvent.target)||DC()!==e.browserEvent.target&&this.list.domFocus()}onContextMenu(e){if(e_e(e.browserEvent.target)||CUe(e.browserEvent.target))return;let r=typeof e.index>"u"?[]:[e.index];this.list.setFocus(r,e.browserEvent)}onViewPointer(e){if(!this.mouseSupport||e_e(e.browserEvent.target)||CUe(e.browserEvent.target)||e.browserEvent.isHandledByList)return;e.browserEvent.isHandledByList=!0;let r=e.index;if(typeof r>"u"){this.list.setFocus([],e.browserEvent),this.list.setSelection([],e.browserEvent),this.list.setAnchor(void 0);return}if(this.isSelectionChangeEvent(e))return this.changeSelection(e);this.list.setFocus([r],e.browserEvent),this.list.setAnchor(r),vzi(e.browserEvent)||this.list.setSelection([r],e.browserEvent),this._onPointer.fire(e)}onDoubleClick(e){if(e_e(e.browserEvent.target)||CUe(e.browserEvent.target)||this.isSelectionChangeEvent(e)||e.browserEvent.isHandledByList)return;e.browserEvent.isHandledByList=!0;let r=this.list.getFocus();this.list.setSelection(r,e.browserEvent)}changeSelection(e){let r=e.index,o=this.list.getAnchor();if(this.isSelectionRangeChangeEvent(e)){if(typeof o>"u"){let L=this.list.getFocus()[0];o=L??r,this.list.setAnchor(o)}let c=Math.min(o,r),d=Math.max(o,r),h=FP(c,d+1),b=this.list.getSelection(),w=Szi(foi(b,[o]),o);if(w.length===0)return;let N=foi(h,xzi(b,w));this.list.setSelection(N,e.browserEvent),this.list.setFocus([r],e.browserEvent)}else if(this.isSelectionSingleChangeEvent(e)){let c=this.list.getSelection(),d=c.filter(h=>h!==r);this.list.setFocus([r]),this.list.setAnchor(r),c.length===d.length?this.list.setSelection([...d,r],e.browserEvent):this.list.setSelection(d,e.browserEvent)}}dispose(){this.disposables.dispose()}},u_t=class{constructor(e,r){this.styleElement=e,this.selectorSuffix=r}style(e){var r,o;let c=this.selectorSuffix&&`.${this.selectorSuffix}`,d=[];e.listBackground&&d.push(`.monaco-list${c} .monaco-list-rows { background: ${e.listBackground}; }`),e.listFocusBackground&&(d.push(`.monaco-list${c}:focus .monaco-list-row.focused { background-color: ${e.listFocusBackground}; }`),d.push(`.monaco-list${c}:focus .monaco-list-row.focused:hover { background-color: ${e.listFocusBackground}; }`)),e.listFocusForeground&&d.push(`.monaco-list${c}:focus .monaco-list-row.focused { color: ${e.listFocusForeground}; }`),e.listActiveSelectionBackground&&(d.push(`.monaco-list${c}:focus .monaco-list-row.selected { background-color: ${e.listActiveSelectionBackground}; }`),d.push(`.monaco-list${c}:focus .monaco-list-row.selected:hover { background-color: ${e.listActiveSelectionBackground}; }`)),e.listActiveSelectionForeground&&d.push(`.monaco-list${c}:focus .monaco-list-row.selected { color: ${e.listActiveSelectionForeground}; }`),e.listActiveSelectionIconForeground&&d.push(`.monaco-list${c}:focus .monaco-list-row.selected .codicon { color: ${e.listActiveSelectionIconForeground}; }`),e.listFocusAndSelectionBackground&&d.push(` + .monaco-drag-image, + .monaco-list${c}:focus .monaco-list-row.selected.focused { background-color: ${e.listFocusAndSelectionBackground}; } + `),e.listFocusAndSelectionForeground&&d.push(` + .monaco-drag-image, + .monaco-list${c}:focus .monaco-list-row.selected.focused { color: ${e.listFocusAndSelectionForeground}; } + `),e.listInactiveFocusForeground&&(d.push(`.monaco-list${c} .monaco-list-row.focused { color: ${e.listInactiveFocusForeground}; }`),d.push(`.monaco-list${c} .monaco-list-row.focused:hover { color: ${e.listInactiveFocusForeground}; }`)),e.listInactiveSelectionIconForeground&&d.push(`.monaco-list${c} .monaco-list-row.focused .codicon { color: ${e.listInactiveSelectionIconForeground}; }`),e.listInactiveFocusBackground&&(d.push(`.monaco-list${c} .monaco-list-row.focused { background-color: ${e.listInactiveFocusBackground}; }`),d.push(`.monaco-list${c} .monaco-list-row.focused:hover { background-color: ${e.listInactiveFocusBackground}; }`)),e.listInactiveSelectionBackground&&(d.push(`.monaco-list${c} .monaco-list-row.selected { background-color: ${e.listInactiveSelectionBackground}; }`),d.push(`.monaco-list${c} .monaco-list-row.selected:hover { background-color: ${e.listInactiveSelectionBackground}; }`)),e.listInactiveSelectionForeground&&d.push(`.monaco-list${c} .monaco-list-row.selected { color: ${e.listInactiveSelectionForeground}; }`),e.listHoverBackground&&d.push(`.monaco-list${c}:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused) { background-color: ${e.listHoverBackground}; }`),e.listHoverForeground&&d.push(`.monaco-list${c}:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused) { color: ${e.listHoverForeground}; }`);let h=gV(e.listFocusAndSelectionOutline,gV(e.listSelectionOutline,(r=e.listFocusOutline)!==null&&r!==void 0?r:""));h&&d.push(`.monaco-list${c}:focus .monaco-list-row.focused.selected { outline: 1px solid ${h}; outline-offset: -1px;}`),e.listFocusOutline&&d.push(` + .monaco-drag-image, + .monaco-list${c}:focus .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; } + .monaco-workbench.context-menu-visible .monaco-list${c}.last-focused .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; } + `);let b=gV(e.listSelectionOutline,(o=e.listInactiveFocusOutline)!==null&&o!==void 0?o:"");b&&d.push(`.monaco-list${c} .monaco-list-row.focused.selected { outline: 1px dotted ${b}; outline-offset: -1px; }`),e.listSelectionOutline&&d.push(`.monaco-list${c} .monaco-list-row.selected { outline: 1px dotted ${e.listSelectionOutline}; outline-offset: -1px; }`),e.listInactiveFocusOutline&&d.push(`.monaco-list${c} .monaco-list-row.focused { outline: 1px dotted ${e.listInactiveFocusOutline}; outline-offset: -1px; }`),e.listHoverOutline&&d.push(`.monaco-list${c} .monaco-list-row:hover { outline: 1px dashed ${e.listHoverOutline}; outline-offset: -1px; }`),e.listDropOverBackground&&d.push(` + .monaco-list${c}.drop-target, + .monaco-list${c} .monaco-list-rows.drop-target, + .monaco-list${c} .monaco-list-row.drop-target { background-color: ${e.listDropOverBackground} !important; color: inherit !important; } + `),e.listDropBetweenBackground&&(d.push(` + .monaco-list${c} .monaco-list-rows.drop-target-before .monaco-list-row:first-child::before, + .monaco-list${c} .monaco-list-row.drop-target-before::before { + content: ""; position: absolute; top: 0px; left: 0px; width: 100%; height: 1px; + background-color: ${e.listDropBetweenBackground}; + }`),d.push(` + .monaco-list${c} .monaco-list-rows.drop-target-after .monaco-list-row:last-child::after, + .monaco-list${c} .monaco-list-row.drop-target-after::after { + content: ""; position: absolute; bottom: 0px; left: 0px; width: 100%; height: 1px; + background-color: ${e.listDropBetweenBackground}; + }`)),e.tableColumnsBorder&&d.push(` + .monaco-table > .monaco-split-view2, + .monaco-table > .monaco-split-view2 .monaco-sash.vertical::before, + .monaco-workbench:not(.reduce-motion) .monaco-table:hover > .monaco-split-view2, + .monaco-workbench:not(.reduce-motion) .monaco-table:hover > .monaco-split-view2 .monaco-sash.vertical::before { + border-color: ${e.tableColumnsBorder}; + } + + .monaco-workbench:not(.reduce-motion) .monaco-table > .monaco-split-view2, + .monaco-workbench:not(.reduce-motion) .monaco-table > .monaco-split-view2 .monaco-sash.vertical::before { + border-color: transparent; + } + `),e.tableOddRowsBackgroundColor&&d.push(` + .monaco-table .monaco-list-row[data-parity=odd]:not(.focused):not(.selected):not(:hover) .monaco-table-tr, + .monaco-table .monaco-list:not(:focus) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr, + .monaco-table .monaco-list:not(.focused) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr { + background-color: ${e.tableOddRowsBackgroundColor}; + } + `),this.styleElement.textContent=d.join(` +`)}},vTi={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:po.fromHex("#a9a9a9").transparent(.4).toString(),tableColumnsBorder:po.fromHex("#cccccc").transparent(.2).toString(),tableOddRowsBackgroundColor:po.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},bzi={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI(){return null},onDragStart(){},onDragOver(){return!1},drop(){},dispose(){}}};hTi=(l,e)=>l-e,_oi=class{constructor(e,r){this._templateId=e,this.renderers=r}get templateId(){return this._templateId}renderTemplate(e){return this.renderers.map(r=>r.renderTemplate(e))}renderElement(e,r,o,c){let d=0;for(let h of this.renderers)h.renderElement(e,r,o[d++],c)}disposeElement(e,r,o,c){var d;let h=0;for(let b of this.renderers)(d=b.disposeElement)===null||d===void 0||d.call(b,e,r,o[h],c),h+=1}disposeTemplate(e){let r=0;for(let o of this.renderers)o.disposeTemplate(e[r++])}},poi=class{constructor(e){this.accessibilityProvider=e,this.templateId="a18n"}renderTemplate(e){return{container:e,disposables:new Fr}}renderElement(e,r,o){let c=this.accessibilityProvider.getAriaLabel(e),d=c&&typeof c!="string"?c:D6(c);o.disposables.add(ad(b=>{this.setAriaLabel(b.readObservable(d),o.container)}));let h=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(e);typeof h=="number"?o.container.setAttribute("aria-level",`${h}`):o.container.removeAttribute("aria-level")}setAriaLabel(e,r){e?r.setAttribute("aria-label",e):r.removeAttribute("aria-label")}disposeElement(e,r,o,c){o.disposables.clear()}disposeTemplate(e){e.disposables.dispose()}},moi=class{constructor(e,r){this.list=e,this.dnd=r}getDragElements(e){let r=this.list.getSelectedElements();return r.indexOf(e)>-1?r:[e]}getDragURI(e){return this.dnd.getDragURI(e)}getDragLabel(e,r){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e,r)}onDragStart(e,r){var o,c;(c=(o=this.dnd).onDragStart)===null||c===void 0||c.call(o,e,r)}onDragOver(e,r,o,c,d){return this.dnd.onDragOver(e,r,o,c,d)}onDragLeave(e,r,o,c){var d,h;(h=(d=this.dnd).onDragLeave)===null||h===void 0||h.call(d,e,r,o,c)}onDragEnd(e){var r,o;(o=(r=this.dnd).onDragEnd)===null||o===void 0||o.call(r,e)}drop(e,r,o,c,d){this.dnd.drop(e,r,o,c,d)}dispose(){this.dnd.dispose()}},TE=class{get onDidChangeFocus(){return gs.map(this.eventBufferer.wrapEvent(this.focus.onChange),e=>this.toListEvent(e),this.disposables)}get onDidChangeSelection(){return gs.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,r=gs.chain(this.disposables.add(new L_(this.view.domNode,"keydown")).event,d=>d.map(h=>new Jp(h)).filter(h=>e=h.keyCode===58||h.shiftKey&&h.keyCode===68).map(h=>D_.stop(h,!0)).filter(()=>!1)),o=gs.chain(this.disposables.add(new L_(this.view.domNode,"keyup")).event,d=>d.forEach(()=>e=!1).map(h=>new Jp(h)).filter(h=>h.keyCode===58||h.shiftKey&&h.keyCode===68).map(h=>D_.stop(h,!0)).map(({browserEvent:h})=>{let b=this.getFocus(),w=b.length?b[0]:void 0,N=typeof w<"u"?this.view.element(w):void 0,L=typeof w<"u"?this.view.domElement(w):this.view.domNode;return{index:w,element:N,anchor:L,browserEvent:h}})),c=gs.chain(this.view.onContextMenu,d=>d.filter(h=>!e).map(({element:h,index:b,browserEvent:w})=>({element:h,index:b,anchor:new PD(Gc(this.view.domNode),w),browserEvent:w})));return gs.any(r,o,c)}get onKeyDown(){return this.disposables.add(new L_(this.view.domNode,"keydown")).event}get onDidFocus(){return gs.signal(this.disposables.add(new L_(this.view.domNode,"focus",!0)).event)}get onDidBlur(){return gs.signal(this.disposables.add(new L_(this.view.domNode,"blur",!0)).event)}constructor(e,r,o,c,d=bzi){var h,b,w,N;this.user=e,this._options=d,this.focus=new wUe("focused"),this.anchor=new wUe("anchor"),this.eventBufferer=new Dne,this._ariaLabel="",this.disposables=new Fr,this._onDidDispose=new wn,this.onDidDispose=this._onDidDispose.event;let L=this._options.accessibilityProvider&&this._options.accessibilityProvider.getWidgetRole?(h=this._options.accessibilityProvider)===null||h===void 0?void 0:h.getWidgetRole():"list";this.selection=new loi(L!=="listbox");let B=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=d.accessibilityProvider,this.accessibilityProvider&&(B.push(new poi(this.accessibilityProvider)),(w=(b=this.accessibilityProvider).onDidChangeActiveDescendant)===null||w===void 0||w.call(b,this.onDidChangeActiveDescendant,this,this.disposables)),c=c.map(Y=>new _oi(Y.templateId,[...B,Y]));let F={...d,dnd:d.dnd&&new moi(this,d.dnd)};if(this.view=this.createListView(r,o,c,F),this.view.domNode.setAttribute("role",L),d.styleController)this.styleController=d.styleController(this.view.domId);else{let Y=bE(this.view.domNode);this.styleController=new u_t(Y,this.view.domId)}if(this.spliceable=new k3t([new c_t(this.focus,this.view,d.identityProvider),new c_t(this.selection,this.view,d.identityProvider),new c_t(this.anchor,this.view,d.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 doi(this,this.view)),(typeof d.keyboardSupport!="boolean"||d.keyboardSupport)&&(this.keyboardController=new M3t(this,this.view,d),this.disposables.add(this.keyboardController)),d.keyboardNavigationLabelProvider){let Y=d.keyboardNavigationDelegate||yzi;this.typeNavigationController=new uoi(this,this.view,d.keyboardNavigationLabelProvider,(N=d.keyboardNavigationEventFilter)!==null&&N!==void 0?N:()=>!0,Y),this.disposables.add(this.typeNavigationController)}this.mouseController=this.createMouseController(d),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()),this._options.multipleSelectionSupport!==!1&&this.view.domNode.setAttribute("aria-multiselectable","true")}createListView(e,r,o,c){return new FB(e,r,o,c)}createMouseController(e){return new l_t(this)}updateOptions(e={}){var r,o;this._options={...this._options,...e},(r=this.typeNavigationController)===null||r===void 0||r.updateOptions(this._options),this._options.multipleSelectionController!==void 0&&(this._options.multipleSelectionSupport?this.view.domNode.setAttribute("aria-multiselectable","true"):this.view.domNode.removeAttribute("aria-multiselectable")),this.mouseController.updateOptions(e),(o=this.keyboardController)===null||o===void 0||o.updateOptions(e),this.view.updateOptions(e)}get options(){return this._options}splice(e,r,o=[]){if(e<0||e>this.view.length)throw new Ire(this.user,`Invalid start index: ${e}`);if(r<0)throw new Ire(this.user,`Invalid delete count: ${r}`);r===0&&o.length===0||this.eventBufferer.bufferEvents(()=>this.spliceable.splice(e,r,o))}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,r){this.view.layout(e,r)}setSelection(e,r){for(let o of e)if(o<0||o>=this.length)throw new Ire(this.user,`Invalid index ${o}`);this.selection.set(e,r)}getSelection(){return this.selection.get()}getSelectedElements(){return this.getSelection().map(e=>this.view.element(e))}setAnchor(e){if(typeof e>"u"){this.anchor.set([]);return}if(e<0||e>=this.length)throw new Ire(this.user,`Invalid index ${e}`);this.anchor.set([e])}getAnchor(){return Bze(this.anchor.get(),void 0)}getAnchorElement(){let e=this.getAnchor();return typeof e>"u"?void 0:this.element(e)}setFocus(e,r){for(let o of e)if(o<0||o>=this.length)throw new Ire(this.user,`Invalid index ${o}`);this.focus.set(e,r)}focusNext(e=1,r=!1,o,c){if(this.length===0)return;let d=this.focus.get(),h=this.findNextIndex(d.length>0?d[0]+e:0,r,c);h>-1&&this.setFocus([h],o)}focusPrevious(e=1,r=!1,o,c){if(this.length===0)return;let d=this.focus.get(),h=this.findPreviousIndex(d.length>0?d[0]-e:0,r,c);h>-1&&this.setFocus([h],o)}async focusNextPage(e,r){let o=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);o=o===0?0:o-1;let c=this.getFocus()[0];if(c!==o&&(c===void 0||o>c)){let d=this.findPreviousIndex(o,!1,r);d>-1&&c!==d?this.setFocus([d],e):this.setFocus([o],e)}else{let d=this.view.getScrollTop(),h=d+this.view.renderHeight;o>c&&(h-=this.view.elementHeight(o)),this.view.setScrollTop(h),this.view.getScrollTop()!==d&&(this.setFocus([]),await HO(0),await this.focusNextPage(e,r))}}async focusPreviousPage(e,r,o=()=>0){let c,d=o(),h=this.view.getScrollTop()+d;h===0?c=this.view.indexAt(h):c=this.view.indexAfter(h-1);let b=this.getFocus()[0];if(b!==c&&(b===void 0||b>=c)){let w=this.findNextIndex(c,!1,r);w>-1&&b!==w?this.setFocus([w],e):this.setFocus([c],e)}else{let w=h;this.view.setScrollTop(h-this.view.renderHeight-d),this.view.getScrollTop()+o()!==w&&(this.setFocus([]),await HO(0),await this.focusPreviousPage(e,r,o))}}focusLast(e,r){if(this.length===0)return;let o=this.findPreviousIndex(this.length-1,!1,r);o>-1&&this.setFocus([o],e)}focusFirst(e,r){this.focusNth(0,e,r)}focusNth(e,r,o){if(this.length===0)return;let c=this.findNextIndex(e,!1,o);c>-1&&this.setFocus([c],r)}findNextIndex(e,r=!1,o){for(let c=0;c=this.length&&!r)return-1;if(e=e%this.length,!o||o(this.element(e)))return e;e++}return-1}findPreviousIndex(e,r=!1,o){for(let c=0;cthis.view.element(e))}reveal(e,r,o=0){if(e<0||e>=this.length)throw new Ire(this.user,`Invalid index ${e}`);let c=this.view.getScrollTop(),d=this.view.elementTop(e),h=this.view.elementHeight(e);if(_B(r)){let b=h-this.view.renderHeight+o;this.view.setScrollTop(b*WD(r,0,1)+d-o)}else{let b=d+h,w=c+this.view.renderHeight;d=w||(d=w&&h>=this.view.renderHeight?this.view.setScrollTop(d-o):b>=w&&this.view.setScrollTop(b-this.view.renderHeight))}}getRelativeTop(e,r=0){if(e<0||e>=this.length)throw new Ire(this.user,`Invalid index ${e}`);let o=this.view.getScrollTop(),c=this.view.elementTop(e),d=this.view.elementHeight(e);if(co+this.view.renderHeight)return null;let h=d-this.view.renderHeight+r;return Math.abs((o+r-c)/h)}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:r}){return{indexes:e,elements:e.map(o=>this.view.element(o)),browserEvent:r}}_onFocusChange(){let e=this.focus.get();this.view.domNode.classList.toggle("element-focused",e.length>0),this.onDidChangeActiveDescendant()}onDidChangeActiveDescendant(){var e;let r=this.focus.get();if(r.length>0){let o;!((e=this.accessibilityProvider)===null||e===void 0)&&e.getActiveDescendantId&&(o=this.accessibilityProvider.getActiveDescendantId(this.view.element(r[0]))),this.view.domNode.setAttribute("aria-activedescendant",o||this.view.getElementDomId(r[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")}_onSelectionChange(){let e=this.selection.get();this.view.domNode.classList.toggle("selection-none",e.length===0),this.view.domNode.classList.toggle("selection-single",e.length===1),this.view.domNode.classList.toggle("selection-multiple",e.length>1)}dispose(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidDispose.dispose()}};lxe([G1],TE.prototype,"onDidChangeFocus",null);lxe([G1],TE.prototype,"onDidChangeSelection",null);lxe([G1],TE.prototype,"onContextMenu",null);lxe([G1],TE.prototype,"onKeyDown",null);lxe([G1],TE.prototype,"onDidFocus",null);lxe([G1],TE.prototype,"onDidBlur",null)});var bTi=ti(()=>{});var bLe,STi,voi,SLe,xTi=ti(()=>{nc();n$();lA();jft();RV();JI();t_e();sd();xc();gB();co();X_();bTi();ya();bLe=qo,STi="selectOption.entry.template",voi=class{get templateId(){return STi}renderTemplate(e){let r=Object.create(null);return r.root=e,r.text=Ro(e,bLe(".option-text")),r.detail=Ro(e,bLe(".option-detail")),r.decoratorRight=Ro(e,bLe(".option-decorator-right")),r}renderElement(e,r,o){let c=o,d=e.text,h=e.detail,b=e.decoratorRight,w=e.isDisabled;c.text.textContent=d,c.detail.textContent=h||"",c.decoratorRight.innerText=b||"",w?c.root.classList.add("option-disabled"):c.root.classList.remove("option-disabled")}disposeTemplate(e){}},SLe=class l extends tn{constructor(e,r,o,c,d){super(),this.options=[],this._currentSelection=0,this._hasDetails=!1,this._skipLayout=!1,this._sticky=!1,this._isVisible=!1,this.styles=c,this.selectBoxOptions=d||Object.create(null),typeof this.selectBoxOptions.minBottomMargin!="number"?this.selectBoxOptions.minBottomMargin=l.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",typeof this.selectBoxOptions.ariaLabel=="string"&&this.selectElement.setAttribute("aria-label",this.selectBoxOptions.ariaLabel),typeof this.selectBoxOptions.ariaDescription=="string"&&this.selectElement.setAttribute("aria-description",this.selectBoxOptions.ariaDescription),this._onDidSelect=new wn,this._register(this._onDidSelect),this.registerListeners(),this.constructSelectDropDown(o),this.selected=r||0,e&&this.setOptions(e,r),this.initStyleSheet()}setTitle(e){!this._hover&&e?this._hover=this._register(qI().setupUpdatableHover(AS("mouse"),this.selectElement,e)):this._hover&&this._hover.update(e)}getHeight(){return 22}getTemplateId(){return STi}constructSelectDropDown(e){this.contextViewProvider=e,this.selectDropDownContainer=qo(".monaco-select-box-dropdown-container"),this.selectDropDownContainer.classList.add("monaco-select-box-dropdown-padding"),this.selectionDetailsPane=Ro(this.selectDropDownContainer,bLe(".select-box-details-pane"));let r=Ro(this.selectDropDownContainer,bLe(".select-box-dropdown-container-width-control")),o=Ro(r,bLe(".width-control-div"));this.widthControlElement=document.createElement("span"),this.widthControlElement.className="option-text-width-control",Ro(o,this.widthControlElement),this._dropDownPosition=0,this.styleElement=bE(this.selectDropDownContainer),this.selectDropDownContainer.setAttribute("draggable","true"),this._register(Jr(this.selectDropDownContainer,ls.DRAG_START,c=>{D_.stop(c,!0)}))}registerListeners(){this._register(qh(this.selectElement,"change",r=>{this.selected=r.target.selectedIndex,this._onDidSelect.fire({index:r.target.selectedIndex,selected:r.target.value}),this.options[this.selected]&&this.options[this.selected].text&&this.setTitle(this.options[this.selected].text)})),this._register(Jr(this.selectElement,ls.CLICK,r=>{D_.stop(r),this._isVisible?this.hideSelectDropDown(!0):this.showSelectDropDown()})),this._register(Jr(this.selectElement,ls.MOUSE_DOWN,r=>{D_.stop(r)}));let e;this._register(Jr(this.selectElement,"touchstart",r=>{e=this._isVisible})),this._register(Jr(this.selectElement,"touchend",r=>{D_.stop(r),e?this.hideSelectDropDown(!0):this.showSelectDropDown()})),this._register(Jr(this.selectElement,ls.KEY_DOWN,r=>{let o=new Jp(r),c=!1;md?(o.keyCode===18||o.keyCode===16||o.keyCode===10||o.keyCode===3)&&(c=!0):(o.keyCode===18&&o.altKey||o.keyCode===16&&o.altKey||o.keyCode===10||o.keyCode===3)&&(c=!0),c&&(this.showSelectDropDown(),D_.stop(r,!0))}))}get onDidSelect(){return this._onDidSelect.event}setOptions(e,r){Jm(this.options,e)||(this.options=e,this.selectElement.options.length=0,this._hasDetails=!1,this._cachedMaxDetailsHeight=void 0,this.options.forEach((o,c)=>{this.selectElement.add(this.createOption(o.text,c,o.isDisabled)),typeof o.description=="string"&&(this._hasDetails=!0)})),r!==void 0&&(this.select(r),this._currentSelection=this.selected)}setOptionsList(){var e;(e=this.selectList)===null||e===void 0||e.splice(0,this.selectList.length,this.options)}select(e){e>=0&&ethis.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(){let 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(` +`)}styleSelectElement(){var e,r,o;let c=(e=this.styles.selectBackground)!==null&&e!==void 0?e:"",d=(r=this.styles.selectForeground)!==null&&r!==void 0?r:"",h=(o=this.styles.selectBorder)!==null&&o!==void 0?o:"";this.selectElement.style.backgroundColor=c,this.selectElement.style.color=d,this.selectElement.style.borderColor=h}styleList(){var e,r;let o=(e=this.styles.selectBackground)!==null&&e!==void 0?e:"",c=gV(this.styles.selectListBackground,o);this.selectDropDownListContainer.style.backgroundColor=c,this.selectionDetailsPane.style.backgroundColor=c;let d=(r=this.styles.focusBorder)!==null&&r!==void 0?r:"";this.selectDropDownContainer.style.outlineColor=d,this.selectDropDownContainer.style.outlineOffset="-1px",this.selectList.style(this.styles)}createOption(e,r,o){let c=document.createElement("option");return c.value=e,c.text=e,c.disabled=!!o,c}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,r){return e.appendChild(this.selectDropDownContainer),this.layoutSelectDropDown(r),{dispose:()=>{try{e.removeChild(this.selectDropDownContainer)}catch{}}}}measureMaxDetailsHeight(){let e=0;return this.options.forEach((r,o)=>{this.updateDetail(o),this.selectionDetailsPane.offsetHeight>e&&(e=this.selectionDetailsPane.offsetHeight)}),e}layoutSelectDropDown(e){if(this._skipLayout)return!1;if(this.selectList){this.selectDropDownContainer.classList.add("visible");let r=Gc(this.selectElement),o=_g(this.selectElement),c=Gc(this.selectElement).getComputedStyle(this.selectElement),d=parseFloat(c.getPropertyValue("--dropdown-padding-top"))+parseFloat(c.getPropertyValue("--dropdown-padding-bottom")),h=r.innerHeight-o.top-o.height-(this.selectBoxOptions.minBottomMargin||0),b=o.top-l.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN,w=this.selectElement.offsetWidth,N=this.setWidthControlElement(this.widthControlElement),L=Math.max(N,Math.round(w)).toString()+"px";this.selectDropDownContainer.style.width=L,this.selectList.getHTMLElement().style.height="",this.selectList.layout();let B=this.selectList.contentHeight;this._hasDetails&&this._cachedMaxDetailsHeight===void 0&&(this._cachedMaxDetailsHeight=this.measureMaxDetailsHeight());let F=this._hasDetails?this._cachedMaxDetailsHeight:0,Y=B+d+F,Z=Math.floor((h-d-F)/this.getHeight()),ee=Math.floor((b-d-F)/this.getHeight());if(e)return o.top+o.height>r.innerHeight-22||o.topZ&&this.options.length>Z?(this._dropDownPosition=1,this.selectDropDownContainer.removeChild(this.selectDropDownListContainer),this.selectDropDownContainer.removeChild(this.selectionDetailsPane),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.selectDropDownContainer.removeChild(this.selectDropDownListContainer),this.selectDropDownContainer.removeChild(this.selectionDetailsPane),this.selectDropDownContainer.appendChild(this.selectDropDownListContainer),this.selectDropDownContainer.appendChild(this.selectionDetailsPane),this.selectionDetailsPane.classList.remove("border-bottom"),this.selectionDetailsPane.classList.add("border-top")),!0);if(o.top+o.height>r.innerHeight-22||o.toph&&(B=Z*this.getHeight())}else Y>b&&(B=ee*this.getHeight());return this.selectList.layout(B),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=B+d+"px",this.selectDropDownContainer.style.height=""):this.selectDropDownContainer.style.height=B+d+"px",this.updateDetail(this.selected),this.selectDropDownContainer.style.width=L,this.selectDropDownListContainer.setAttribute("tabindex","0"),this.selectElement.classList.add("synthetic-focus"),this.selectDropDownContainer.classList.add("synthetic-focus"),!0}else return!1}setWidthControlElement(e){let r=0;if(e){let o=0,c=0;this.options.forEach((d,h)=>{let b=d.detail?d.detail.length:0,w=d.decoratorRight?d.decoratorRight.length:0,N=d.text.length+b+w;N>c&&(o=h,c=N)}),e.textContent=this.options[o].text+(this.options[o].decoratorRight?this.options[o].decoratorRight+" ":""),r=dA(e)}return r}createSelectList(e){if(this.selectList)return;this.selectDropDownListContainer=Ro(e,bLe(".select-box-dropdown-list-container")),this.listRenderer=new voi,this.selectList=new TE("SelectBoxCustom",this.selectDropDownListContainer,this,[this.listRenderer],{useShadows:!1,verticalScrollMode:3,keyboardSupport:!1,mouseSupport:!1,accessibilityProvider:{getAriaLabel:c=>{let d=c.text;return c.detail&&(d+=`. ${c.detail}`),c.decoratorRight&&(d+=`. ${c.decoratorRight}`),c.description&&(d+=`. ${c.description}`),d},getWidgetAriaLabel:()=>ce({key:"selectBox",comment:["Behave like native select dropdown element."]},"Select Box"),getRole:()=>md?"":"option",getWidgetRole:()=>"listbox"}}),this.selectBoxOptions.ariaLabel&&(this.selectList.ariaLabel=this.selectBoxOptions.ariaLabel);let r=this._register(new L_(this.selectDropDownListContainer,"keydown")),o=gs.chain(r.event,c=>c.filter(()=>this.selectList.length>0).map(d=>new Jp(d)));this._register(gs.chain(o,c=>c.filter(d=>d.keyCode===3))(this.onEnter,this)),this._register(gs.chain(o,c=>c.filter(d=>d.keyCode===2))(this.onEnter,this)),this._register(gs.chain(o,c=>c.filter(d=>d.keyCode===9))(this.onEscape,this)),this._register(gs.chain(o,c=>c.filter(d=>d.keyCode===16))(this.onUpArrow,this)),this._register(gs.chain(o,c=>c.filter(d=>d.keyCode===18))(this.onDownArrow,this)),this._register(gs.chain(o,c=>c.filter(d=>d.keyCode===12))(this.onPageDown,this)),this._register(gs.chain(o,c=>c.filter(d=>d.keyCode===11))(this.onPageUp,this)),this._register(gs.chain(o,c=>c.filter(d=>d.keyCode===14))(this.onHome,this)),this._register(gs.chain(o,c=>c.filter(d=>d.keyCode===13))(this.onEnd,this)),this._register(gs.chain(o,c=>c.filter(d=>d.keyCode>=21&&d.keyCode<=56||d.keyCode>=85&&d.keyCode<=113))(this.onCharacter,this)),this._register(Jr(this.selectList.getHTMLElement(),ls.POINTER_UP,c=>this.onPointerUp(c))),this._register(this.selectList.onMouseOver(c=>typeof c.index<"u"&&this.selectList.setFocus([c.index]))),this._register(this.selectList.onDidChangeFocus(c=>this.onListFocus(c))),this._register(Jr(this.selectDropDownContainer,ls.FOCUS_OUT,c=>{!this._isVisible||ES(c.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;D_.stop(e);let r=e.target;if(!r||r.classList.contains("slider"))return;let o=r.closest(".monaco-list-row");if(!o)return;let c=Number(o.getAttribute("data-index")),d=o.classList.contains("option-disabled");c>=0&&c{for(let h=0;hthis.selected+2)this.selected+=2;else{if(r)return;this.selected++}this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0])}}onUpArrow(e){this.selected>0&&(D_.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){D_.stop(e),this.selectList.focusPreviousPage(),setTimeout(()=>{this.selected=this.selectList.getFocus()[0],this.options[this.selected].isDisabled&&this.selected{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){D_.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){D_.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){let r=Pq.toString(e.keyCode),o=-1;for(let c=0;c{nc();FR();sd();xc();co();X_();R3t=class extends tn{constructor(e,r,o,c){super(),this.selected=0,this.selectBoxOptions=c||Object.create(null),this.options=[],this.selectElement=document.createElement("select"),this.selectElement.className="monaco-select-box",typeof this.selectBoxOptions.ariaLabel=="string"&&this.selectElement.setAttribute("aria-label",this.selectBoxOptions.ariaLabel),typeof this.selectBoxOptions.ariaDescription=="string"&&this.selectElement.setAttribute("aria-description",this.selectBoxOptions.ariaDescription),this._onDidSelect=this._register(new wn),this.styles=o,this.registerListeners(),this.setOptions(e,r)}registerListeners(){this._register(d1.addTarget(this.selectElement)),[pg.Tap].forEach(e=>{this._register(Jr(this.selectElement,e,r=>{this.selectElement.focus()}))}),this._register(qh(this.selectElement,"click",e=>{D_.stop(e,!0)})),this._register(qh(this.selectElement,"change",e=>{this.selectElement.title=e.target.value,this._onDidSelect.fire({index:e.target.selectedIndex,selected:e.target.value})})),this._register(qh(this.selectElement,"keydown",e=>{let r=!1;md?(e.keyCode===18||e.keyCode===16||e.keyCode===10)&&(r=!0):(e.keyCode===18&&e.altKey||e.keyCode===10||e.keyCode===3)&&(r=!0),r&&e.stopPropagation()}))}get onDidSelect(){return this._onDidSelect.event}setOptions(e,r){(!this.options||!Jm(this.options,e))&&(this.options=e,this.selectElement.options.length=0,this.options.forEach((o,c)=>{this.selectElement.add(this.createOption(o.text,c,o.isDisabled))})),r!==void 0&&this.select(r)}select(e){this.options.length===0?this.selected=0:e>=0&&ethis.options.length-1?this.select(this.options.length-1):this.selected<0&&(this.selected=0),this.selectElement.selectedIndex=this.selected,this.selected{});var B3t,wTi=ti(()=>{xTi();CTi();IV();X_();kTi();B3t=class extends ew{constructor(e,r,o,c,d){super(),md&&!d?.useCustomDrawn?this.selectBoxDelegate=new R3t(e,r,c,d):this.selectBoxDelegate=new SLe(e,r,o,c,d),this._register(this.selectBoxDelegate)}get onDidSelect(){return this.selectBoxDelegate.onDidSelect}setOptions(e,r){this.selectBoxDelegate.setOptions(e,r)}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 boi=ti(()=>{});var s8,WV,j3t,xLe=ti(()=>{ZF();x3t();nc();FR();JI();wTi();xE();co();X_();Fh();boi();ya();RV();s8=class extends tn{get action(){return this._action}constructor(e,r,o={}){super(),this.options=o,this._context=e||this,this._action=r,r instanceof jw&&this._register(r.onDidChange(c=>{this.element&&this.handleActionChangeEvent(c)}))}handleActionChangeEvent(e){e.enabled!==void 0&&this.updateEnabled(),e.checked!==void 0&&this.updateChecked(),e.class!==void 0&&this.updateClass(),e.label!==void 0&&(this.updateLabel(),this.updateTooltip()),e.tooltip!==void 0&&this.updateTooltip()}get actionRunner(){return this._actionRunner||(this._actionRunner=this._register(new DR)),this._actionRunner}set actionRunner(e){this._actionRunner=e}isEnabled(){return this._action.enabled}setActionContext(e){this._context=e}render(e){let r=this.element=e;this._register(d1.addTarget(e));let o=this.options&&this.options.draggable;o&&(e.draggable=!0,AD&&this._register(Jr(e,ls.DRAG_START,c=>{var d;return(d=c.dataTransfer)===null||d===void 0?void 0:d.setData(oxe.TEXT,this._action.label)}))),this._register(Jr(r,pg.Tap,c=>this.onClick(c,!0))),this._register(Jr(r,ls.MOUSE_DOWN,c=>{o||D_.stop(c,!0),this._action.enabled&&c.button===0&&r.classList.add("active")})),md&&this._register(Jr(r,ls.CONTEXT_MENU,c=>{c.button===0&&c.ctrlKey===!0&&this.onClick(c)})),this._register(Jr(r,ls.CLICK,c=>{D_.stop(c,!0),this.options&&this.options.isMenu||this.onClick(c)})),this._register(Jr(r,ls.DBLCLICK,c=>{D_.stop(c,!0)})),[ls.MOUSE_UP,ls.MOUSE_OUT].forEach(c=>{this._register(Jr(r,c,d=>{D_.stop(d),r.classList.remove("active")}))})}onClick(e,r=!1){var o;D_.stop(e,!0);let c=v6(this._context)?!((o=this.options)===null||o===void 0)&&o.useEventAsContext?e:{preserveFocus:r}:this._context;this.actionRunner.run(this._action,c)}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(){var e,r,o;if(!this.element)return;let c=(e=this.getTooltip())!==null&&e!==void 0?e:"";if(this.updateAriaLabel(),!((r=this.options.hoverDelegate)===null||r===void 0)&&r.showNativeHover)this.element.title=c;else if(!this.customHover&&c!==""){let d=(o=this.options.hoverDelegate)!==null&&o!==void 0?o:AS("element");this.customHover=this._store.add(qI().setupUpdatableHover(d,this.element,c))}else this.customHover&&this.customHover.update(c)}updateAriaLabel(){var e;if(this.element){let r=(e=this.getTooltip())!==null&&e!==void 0?e:"";this.element.setAttribute("aria-label",r)}}updateClass(){}updateChecked(){}dispose(){this.element&&(this.element.remove(),this.element=void 0),this._context=void 0,super.dispose()}},WV=class extends s8{constructor(e,r,o){super(e,r,o),this.options=o,this.options.icon=o.icon!==void 0?o.icon:!1,this.options.label=o.label!==void 0?o.label:!0,this.cssClass=""}render(e){super.render(e),P_(this.element);let r=document.createElement("a");if(r.classList.add("action-label"),r.setAttribute("role",this.getDefaultAriaRole()),this.label=r,this.element.appendChild(r),this.options.label&&this.options.keybinding){let o=document.createElement("span");o.classList.add("keybinding"),o.textContent=this.options.keybinding,this.element.appendChild(o)}this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()}getDefaultAriaRole(){return this._action.id===J1.ID?"presentation":this.options.isMenu?"menuitem":"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=ce({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),e??void 0}updateClass(){var e;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()):(e=this.label)===null||e===void 0||e.classList.remove("codicon")}updateEnabled(){var e,r;this.action.enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),this.label.classList.remove("disabled")),(e=this.element)===null||e===void 0||e.classList.remove("disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),this.label.classList.add("disabled")),(r=this.element)===null||r===void 0||r.classList.add("disabled"))}updateAriaLabel(){var e;if(this.label){let r=(e=this.getTooltip())!==null&&e!==void 0?e:"";this.label.setAttribute("aria-label",r)}}updateChecked(){this.label&&(this.action.checked!==void 0?(this.label.classList.toggle("checked",this.action.checked),this.label.setAttribute("aria-checked",this.action.checked?"true":"false"),this.label.setAttribute("role","checkbox")):(this.label.classList.remove("checked"),this.label.removeAttribute("aria-checked"),this.label.setAttribute("role",this.getDefaultAriaRole())))}},j3t=class extends s8{constructor(e,r,o,c,d,h,b){super(e,r),this.selectBox=new B3t(o,c,d,h,b),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,r){this.actionRunner.run(this._action,this.getActionContext(e,r))}getActionContext(e,r){return e}setFocusable(e){this.selectBox.setFocusable(e)}focus(){var e;(e=this.selectBox)===null||e===void 0||e.focus()}blur(){var e;(e=this.selectBox)===null||e===void 0||e.blur()}render(e){this.selectBox.render(e)}}});var Soi=ti(()=>{});var xoi,W3t,TTi=ti(()=>{nc();lA();FR();xE();xc();Soi();xoi=class extends DR{constructor(e,r){super(),this._onDidChangeVisibility=this._register(new wn),this.onDidChangeVisibility=this._onDidChangeVisibility.event,this._element=Ro(e,qo(".monaco-dropdown")),this._label=Ro(this._element,qo(".dropdown-label"));let o=r.labelRenderer;o||(o=d=>(d.textContent=r.label||"",null));for(let d of[ls.CLICK,ls.MOUSE_DOWN,pg.Tap])this._register(Jr(this.element,d,h=>D_.stop(h,!0)));for(let d of[ls.MOUSE_DOWN,pg.Tap])this._register(Jr(this._label,d,h=>{mVe(h)&&(h.detail>1||h.button!==0)||(this.visible?this.hide():this.show())}));this._register(Jr(this._label,ls.KEY_UP,d=>{let h=new Jp(d);(h.equals(3)||h.equals(10))&&(D_.stop(d,!0),this.visible?this.hide():this.show())}));let c=o(this._label);c&&this._register(c),this._register(d1.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)}},W3t=class extends xoi{constructor(e,r){super(e,r),this._options=r,this._actions=[],this.actions=r.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,r)=>this.menuOptions&&this.menuOptions.actionViewItemProvider?this.menuOptions.actionViewItemProvider(e,r):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 uxe,Coi=ti(()=>{nc();xLe();TTi();xc();Soi();JI();RV();uxe=class extends s8{constructor(e,r,o,c=Object.create(null)){super(null,e,c),this.actionItem=null,this._onDidChangeVisibility=this._register(new wn),this.onDidChangeVisibility=this._onDidChangeVisibility.event,this.menuActionsOrProvider=r,this.contextMenuProvider=o,this.options=c,this.options.actionRunner&&(this.actionRunner=this.options.actionRunner)}render(e){this.actionItem=e;let r=d=>{var h;this.element=Ro(d,qo("a.action-label"));let b=[];return typeof this.options.classNames=="string"?b=this.options.classNames.split(/\s+/g).filter(w=>!!w):this.options.classNames&&(b=this.options.classNames),b.find(w=>w==="icon")||b.push("codicon"),this.element.classList.add(...b),this.element.setAttribute("role","button"),this.element.setAttribute("aria-haspopup","true"),this.element.setAttribute("aria-expanded","false"),this._action.label&&this._register(qI().setupUpdatableHover((h=this.options.hoverDelegate)!==null&&h!==void 0?h:AS("mouse"),this.element,this._action.label)),this.element.ariaLabel=this._action.label||"",null},o=Array.isArray(this.menuActionsOrProvider),c={contextMenuProvider:this.contextMenuProvider,labelRenderer:r,menuAsChild:this.options.menuAsChild,actions:o?this.menuActionsOrProvider:void 0,actionProvider:o?void 0:this.menuActionsOrProvider,skipTelemetry:this.options.skipTelemetry};if(this.dropdownMenu=this._register(new W3t(e,c)),this._register(this.dropdownMenu.onDidChangeVisibility(d=>{var h;(h=this.element)===null||h===void 0||h.setAttribute("aria-expanded",`${d}`),this._onDidChangeVisibility.fire(d)})),this.dropdownMenu.menuOptions={actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,getKeyBinding:this.options.keybindingProvider,context:this._context},this.options.anchorAlignmentProvider){let d=this;this.dropdownMenu.menuOptions={...this.dropdownMenu.menuOptions,get anchorAlignment(){return d.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(){var e;(e=this.dropdownMenu)===null||e===void 0||e.show()}updateEnabled(){var e,r;let o=!this.action.enabled;(e=this.actionItem)===null||e===void 0||e.classList.toggle("disabled",o),(r=this.element)===null||r===void 0||r.classList.toggle("disabled",o)}}});var ETi=ti(()=>{});function DTi(l){return l&&typeof l=="object"&&typeof l.original=="string"&&typeof l.value=="string"}function ITi(l){return l?l.condition!==void 0:!1}var koi=ti(()=>{});var CLe,DUe,kLe,IUe,NTi=ti(()=>{Ud();xc();co();GLt();Fh();(function(l){l[l.STORAGE_DOES_NOT_EXIST=0]="STORAGE_DOES_NOT_EXIST",l[l.STORAGE_IN_MEMORY=1]="STORAGE_IN_MEMORY"})(CLe||(CLe={}));(function(l){l[l.None=0]="None",l[l.Initialized=1]="Initialized",l[l.Closed=2]="Closed"})(DUe||(DUe={}));kLe=class l extends tn{constructor(e,r=Object.create(null)){super(),this.database=e,this.options=r,this._onDidChangeStorage=this._register(new cV),this.onDidChangeStorage=this._onDidChangeStorage.event,this.state=DUe.None,this.cache=new Map,this.flushDelayer=this._register(new cVe(l.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){var r,o;this._onDidChangeStorage.pause();try{(r=e.changed)===null||r===void 0||r.forEach((c,d)=>this.acceptExternal(d,c)),(o=e.deleted)===null||o===void 0||o.forEach(c=>this.acceptExternal(c,void 0))}finally{this._onDidChangeStorage.resume()}}acceptExternal(e,r){if(this.state===DUe.Closed)return;let o=!1;v6(r)?o=this.cache.delete(e):this.cache.get(e)!==r&&(this.cache.set(e,r),o=!0),o&&this._onDidChangeStorage.fire({key:e,external:!0})}get(e,r){let o=this.cache.get(e);return v6(o)?r:o}getBoolean(e,r){let o=this.get(e);return v6(o)?r:o==="true"}getNumber(e,r){let o=this.get(e);return v6(o)?r:parseInt(o,10)}async set(e,r,o=!1){if(this.state===DUe.Closed)return;if(v6(r))return this.delete(e,o);let c=wT(r)||Array.isArray(r)?lwi(r):String(r);if(this.cache.get(e)!==c)return this.cache.set(e,c),this.pendingInserts.set(e,c),this.pendingDeletes.delete(e),this._onDidChangeStorage.fire({key:e,external:o}),this.doFlush()}async delete(e,r=!1){if(!(this.state===DUe.Closed||!this.cache.delete(e)))return this.pendingDeletes.has(e)||this.pendingDeletes.add(e),this.pendingInserts.delete(e),this._onDidChangeStorage.fire({key:e,external:r}),this.doFlush()}get hasPending(){return this.pendingInserts.size>0||this.pendingDeletes.size>0}async flushPending(){if(!this.hasPending)return;let e={insert:this.pendingInserts,delete:this.pendingDeletes};return this.pendingDeletes=new Set,this.pendingInserts=new Map,this.database.updateItems(e).finally(()=>{var r;if(!this.hasPending)for(;this.whenFlushedCallbacks.length;)(r=this.whenFlushedCallbacks.pop())===null||r===void 0||r()})}async doFlush(e){return this.options.hint===CLe.STORAGE_IN_MEMORY?this.flushPending():this.flushDelayer.trigger(()=>this.flushPending(),e)}};kLe.DEFAULT_FLUSH_DELAY=100;IUe=class{constructor(){this.onDidChangeItemsExternal=gs.None,this.items=new Map}async updateItems(e){var r,o;(r=e.insert)===null||r===void 0||r.forEach((c,d)=>this.items.set(d,c)),(o=e.delete)===null||o===void 0||o.forEach(c=>this.items.delete(c))}}});function Czi(l){let e=l.get(z3t);if(e)try{return JSON.parse(e)}catch{}return Object.create(null)}var z3t,GI,dxe,V3t,H3t,gQ=ti(()=>{xc();co();Fh();NTi();bl();z3t="__$__targetStorageMarker",GI=Ml("storageService");(function(l){l[l.NONE=0]="NONE",l[l.SHUTDOWN=1]="SHUTDOWN"})(dxe||(dxe={}));V3t=class l extends tn{constructor(e={flushInterval:l.DEFAULT_FLUSH_INTERVAL}){super(),this.options=e,this._onDidChangeValue=this._register(new cV),this._onDidChangeTarget=this._register(new cV),this._onWillSaveState=this._register(new wn),this.onWillSaveState=this._onWillSaveState.event,this._workspaceKeyTargets=void 0,this._profileKeyTargets=void 0,this._applicationKeyTargets=void 0}onDidChangeValue(e,r,o){return gs.filter(this._onDidChangeValue.event,c=>c.scope===e&&(r===void 0||c.key===r),o)}emitDidChangeValue(e,r){let{key:o,external:c}=r;if(o===z3t){switch(e){case-1:this._applicationKeyTargets=void 0;break;case 0:this._profileKeyTargets=void 0;break;case 1:this._workspaceKeyTargets=void 0;break}this._onDidChangeTarget.fire({scope:e})}else this._onDidChangeValue.fire({scope:e,key:o,target:this.getKeyTargets(e)[o],external:c})}get(e,r,o){var c;return(c=this.getStorage(r))===null||c===void 0?void 0:c.get(e,o)}getBoolean(e,r,o){var c;return(c=this.getStorage(r))===null||c===void 0?void 0:c.getBoolean(e,o)}getNumber(e,r,o){var c;return(c=this.getStorage(r))===null||c===void 0?void 0:c.getNumber(e,o)}store(e,r,o,c,d=!1){if(v6(r)){this.remove(e,o,d);return}this.withPausedEmitters(()=>{var h;this.updateKeyTarget(e,o,c),(h=this.getStorage(o))===null||h===void 0||h.set(e,r,d)})}remove(e,r,o=!1){this.withPausedEmitters(()=>{var c;this.updateKeyTarget(e,r,void 0),(c=this.getStorage(r))===null||c===void 0||c.delete(e,o)})}withPausedEmitters(e){this._onDidChangeValue.pause(),this._onDidChangeTarget.pause();try{e()}finally{this._onDidChangeValue.resume(),this._onDidChangeTarget.resume()}}updateKeyTarget(e,r,o,c=!1){var d,h;let b=this.getKeyTargets(r);typeof o=="number"?b[e]!==o&&(b[e]=o,(d=this.getStorage(r))===null||d===void 0||d.set(z3t,JSON.stringify(b),c)):typeof b[e]=="number"&&(delete b[e],(h=this.getStorage(r))===null||h===void 0||h.set(z3t,JSON.stringify(b),c))}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){let r=this.getStorage(e);return r?Czi(r):Object.create(null)}};V3t.DEFAULT_FLUSH_INTERVAL=60*1e3;H3t=class extends V3t{constructor(){super(),this.applicationStorage=this._register(new kLe(new IUe,{hint:CLe.STORAGE_IN_MEMORY})),this.profileStorage=this._register(new kLe(new IUe,{hint:CLe.STORAGE_IN_MEMORY})),this.workspaceStorage=this._register(new kLe(new IUe,{hint:CLe.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}}}});function kzi(l,e){let r={...e};for(let o in l){let c=l[o];r[o]=c!==void 0?Xc(c):void 0}return r}function yQ(l){return kzi(l,i_e)}var ATi,PTi,LTi,NUe,p8n,m8n,AUe,OTi,U3t,h8n,i_e,FTi,MTi,Fre=ti(()=>{q1();rx();ATi={keybindingLabelBackground:Xc(ebi),keybindingLabelForeground:Xc(tbi),keybindingLabelBorder:Xc(ibi),keybindingLabelBottomBorder:Xc(nbi),keybindingLabelShadow:Xc(EV)},PTi={buttonForeground:Xc(nHe),buttonSeparator:Xc(q1i),buttonBackground:Xc(rHe),buttonHoverBackground:Xc($1i),buttonSecondaryForeground:Xc(K1i),buttonSecondaryBackground:Xc(VAt),buttonSecondaryHoverBackground:Xc(X1i),buttonBorder:Xc(G1i)},LTi={progressBarBackground:Xc(n1i)},NUe={inputActiveOptionBorder:Xc(oHe),inputActiveOptionForeground:Xc(sHe),inputActiveOptionBackground:Xc(oQ)},p8n={checkboxBackground:Xc(Y1i),checkboxBorder:Xc(Z1i),checkboxForeground:Xc(Q1i)},m8n={dialogBackground:Xc(Wb),dialogForeground:Xc(iQ),dialogShadow:Xc(EV),dialogBorder:Xc(ip),errorIconForeground:Xc(E1i),warningIconForeground:Xc(D1i),infoIconForeground:Xc(I1i),textLinkForeground:Xc(t1i)},AUe={inputBackground:Xc(gdt),inputForeground:Xc(HAt),inputBorder:Xc(UAt),inputValidationInfoBorder:Xc(B1i),inputValidationInfoBackground:Xc(M1i),inputValidationInfoForeground:Xc(R1i),inputValidationWarningBorder:Xc(z1i),inputValidationWarningBackground:Xc(j1i),inputValidationWarningForeground:Xc(W1i),inputValidationErrorBorder:Xc(U1i),inputValidationErrorBackground:Xc(V1i),inputValidationErrorForeground:Xc(H1i)},OTi={listFilterWidgetBackground:Xc(mbi),listFilterWidgetOutline:Xc(hbi),listFilterWidgetNoMatchesOutline:Xc(gbi),listFilterWidgetShadow:Xc(ybi),inputBoxStyles:AUe,toggleStyles:NUe},U3t={badgeBackground:Xc(XVe),badgeForeground:Xc(i1i),badgeBorder:Xc(ip)},h8n={breadcrumbsBackground:Xc(k1i),breadcrumbsForeground:Xc(C1i),breadcrumbsHoverForeground:Xc(qei),breadcrumbsFocusForeground:Xc(qei),breadcrumbsFocusAndSelectionForeground:Xc(w1i)},i_e={listBackground:void 0,listInactiveFocusForeground:void 0,listFocusBackground:Xc(rbi),listFocusForeground:Xc(obi),listFocusOutline:Xc(sbi),listActiveSelectionBackground:Xc(Gq),listActiveSelectionForeground:Xc(DV),listActiveSelectionIconForeground:Xc(E6e),listFocusAndSelectionOutline:Xc(abi),listFocusAndSelectionBackground:Xc(Gq),listFocusAndSelectionForeground:Xc(DV),listInactiveSelectionBackground:Xc(cbi),listInactiveSelectionIconForeground:Xc(ubi),listInactiveSelectionForeground:Xc(lbi),listInactiveFocusBackground:Xc(dbi),listInactiveFocusOutline:Xc(fbi),listHoverBackground:Xc(Xei),listHoverForeground:Xc(Yei),listDropOverBackground:Xc(_bi),listDropBetweenBackground:Xc(pbi),listSelectionOutline:Xc(S0),listHoverOutline:Xc(S0),treeIndentGuidesStroke:Xc(aHe),treeInactiveIndentGuidesStroke:Xc(vbi),treeStickyScrollBackground:void 0,treeStickyScrollBorder:void 0,treeStickyScrollShadow:void 0,tableColumnsBorder:Xc(bbi),tableOddRowsBackgroundColor:Xc(Sbi)};FTi={selectBackground:Xc($q),selectListBackground:Xc(J1i),selectForeground:Xc(rQ),decoratorRightForeground:Xc(qAt),selectBorder:Xc(TSe),focusBorder:Xc(XO),listFocusBackground:Xc(Xq),listInactiveSelectionIconForeground:Xc(Ife),listFocusForeground:Xc(Kq),listFocusOutline:Yvi(S0,po.transparent.toString()),listHoverBackground:Xc(Xei),listHoverForeground:Xc(Yei),listHoverOutline:Xc(S0),selectListBorder:Xc(nQ),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},MTi={shadowColor:Xc(EV),borderColor:Xc(xbi),foregroundColor:Xc(Cbi),backgroundColor:Xc(kbi),selectionForegroundColor:Xc(wbi),selectionBackgroundColor:Xc(Tbi),selectionBorderColor:Xc(Ebi),separatorColor:Xc(Dbi),scrollbarShadow:Xc(C6e),scrollbarSliderBackground:Xc(k6e),scrollbarSliderHoverBackground:Xc(w6e),scrollbarSliderActiveBackground:Xc(T6e)}});function RTi(l,e,r,o){let c=l.getActions(e),d=ufe.getInstance(),h=d.keyStatus.altKey||(Bv||kS)&&d.keyStatus.shiftKey;BTi(c,r,h,o?b=>b===o:b=>b==="navigation")}function fxe(l,e,r,o,c,d){let h=l.getActions(e);BTi(h,r,!1,typeof o=="string"?w=>w===o:o,c,d)}function BTi(l,e,r,o=h=>h==="navigation",c=()=>!1,d=!1){let h,b;Array.isArray(e)?(h=e,b=e):(h=e.primary,b=e.secondary);let w=new Set;for(let[N,L]of l){let B;o(N)?(B=h,B.length>0&&d&&B.push(new J1)):(B=b,B.length>0&&B.push(new J1));for(let F of L){r&&(F=F instanceof jI&&F.alt?F.alt:F);let Y=B.push(F);F instanceof yV&&w.add({group:N,action:F,index:Y-1})}}for(let{group:N,action:L,index:B}of w){let F=o(N)?h:b,Y=L.actions;c(L,N,F.length)&&F.splice(B,1,...Y)}}function q3t(l,e,r){return e instanceof jI?l.createInstance(vQ,e,r):e instanceof Wq?e.item.isSelection?l.createInstance(Eoi,e):e.item.rememberDefaultAction?l.createInstance(Toi,e,{...r,persistLastActionId:!0}):l.createInstance(woi,e,r):void 0}var J3t,p7,vQ,woi,Toi,Eoi,n_e=ti(()=>{nc();lA();xLe();Coi();xE();c3t();co();X_();ETi();ya();My();koi();hd();u3();bl();f1();xA();gQ();x0();bv();Zq();Fh();q1();Fre();KO();J3t=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},p7=function(l,e){return function(r,o){e(r,o,l)}};vQ=class extends WV{constructor(e,r,o,c,d,h,b,w){super(void 0,e,{icon:!!(e.class||e.item.icon),label:!e.class&&!e.item.icon,draggable:r?.draggable,keybinding:r?.keybinding,hoverDelegate:r?.hoverDelegate}),this._keybindingService=o,this._notificationService=c,this._contextKeyService=d,this._themeService=h,this._contextMenuService=b,this._accessibilityService=w,this._wantsAltCommand=!1,this._itemClassDispose=this._register(new zg),this._altKey=ufe.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(r){this._notificationService.error(r)}}render(e){if(super.render(e),e.classList.add("menu-entry"),this.options.icon&&this._updateItemClass(this._menuItemAction.item),this._menuItemAction.alt){let r=!1,o=()=>{var c;let d=!!(!((c=this._menuItemAction.alt)===null||c===void 0)&&c.enabled)&&(!this._accessibilityService.isMotionReduced()||r)&&(this._altKey.keyStatus.altKey||this._altKey.keyStatus.shiftKey&&r);d!==this._wantsAltCommand&&(this._wantsAltCommand=d,this.updateLabel(),this.updateTooltip(),this.updateClass())};this._register(this._altKey.event(o)),this._register(Jr(e,"mouseleave",c=>{r=!1,o()})),this._register(Jr(e,"mouseenter",c=>{r=!0,o()})),o()}}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this._commandAction.label)}getTooltip(){var e;let r=this._keybindingService.lookupKeybinding(this._commandAction.id,this._contextKeyService),o=r&&r.getLabel(),c=this._commandAction.tooltip||this._commandAction.label,d=o?ce("titleAndKb","{0} ({1})",c,o):c;if(!this._wantsAltCommand&&(!((e=this._menuItemAction.alt)===null||e===void 0)&&e.enabled)){let h=this._menuItemAction.alt.tooltip||this._menuItemAction.alt.label,b=this._keybindingService.lookupKeybinding(this._menuItemAction.alt.id,this._contextKeyService),w=b&&b.getLabel(),N=w?ce("titleAndKb","{0} ({1})",h,w):h;d=ce("titleAndKbAndAlt",`{0} +[{1}] {2}`,d,uUe.modifierLabels[gE].altKey,N)}return d}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;let{element:r,label:o}=this;if(!r||!o)return;let c=this._commandAction.checked&&ITi(e.toggled)&&e.toggled.icon?e.toggled.icon:e.icon;if(c)if(sl.isThemeIcon(c)){let d=sl.asClassNameArray(c);o.classList.add(...d),this._itemClassDispose.value=Ma(()=>{o.classList.remove(...d)})}else o.style.backgroundImage=ere(this._themeService.getColorTheme().type)?SB(c.dark):SB(c.light),o.classList.add("icon"),this._itemClassDispose.value=cA(Ma(()=>{o.style.backgroundImage="",o.classList.remove("icon")}),this._themeService.onDidColorThemeChange(()=>{this.updateClass()}))}};vQ=J3t([p7(2,Jd),p7(3,og),p7(4,Ec),p7(5,Hg),p7(6,zw),p7(7,ck)],vQ);woi=class extends uxe{constructor(e,r,o,c,d){var h,b,w;let N={...r,menuAsChild:(h=r?.menuAsChild)!==null&&h!==void 0?h:!1,classNames:(b=r?.classNames)!==null&&b!==void 0?b:sl.isThemeIcon(e.item.icon)?sl.asClassName(e.item.icon):void 0,keybindingProvider:(w=r?.keybindingProvider)!==null&&w!==void 0?w:L=>o.lookupKeybinding(L.id)};super(e,{getActions:()=>e.actions},c,N),this._keybindingService=o,this._contextMenuService=c,this._themeService=d}render(e){super.render(e),P_(this.element),e.classList.add("menu-entry");let r=this._action,{icon:o}=r.item;if(o&&!sl.isThemeIcon(o)){this.element.classList.add("icon");let c=()=>{this.element&&(this.element.style.backgroundImage=ere(this._themeService.getColorTheme().type)?SB(o.dark):SB(o.light))};c(),this._register(this._themeService.onDidColorThemeChange(()=>{c()}))}}};woi=J3t([p7(2,Jd),p7(3,zw),p7(4,Hg)],woi);Toi=class extends s8{constructor(e,r,o,c,d,h,b,w){var N,L,B;super(null,e),this._keybindingService=o,this._notificationService=c,this._contextMenuService=d,this._menuService=h,this._instaService=b,this._storageService=w,this._container=null,this._options=r,this._storageKey=`${e.item.submenu.id}_lastActionId`;let F,Y=r?.persistLastActionId?w.get(this._storageKey,1):void 0;Y&&(F=e.actions.find(ee=>Y===ee.id)),F||(F=e.actions[0]),this._defaultAction=this._instaService.createInstance(vQ,F,{keybinding:this._getDefaultActionKeybindingLabel(F)});let Z={keybindingProvider:ee=>this._keybindingService.lookupKeybinding(ee.id),...r,menuAsChild:(N=r?.menuAsChild)!==null&&N!==void 0?N:!0,classNames:(L=r?.classNames)!==null&&L!==void 0?L:["codicon","codicon-chevron-down"],actionRunner:(B=r?.actionRunner)!==null&&B!==void 0?B:new DR};this._dropdown=new uxe(e,e.actions,this._contextMenuService,Z),this._register(this._dropdown.actionRunner.onDidRun(ee=>{ee.action instanceof jI&&this.update(ee.action)}))}update(e){var r;!((r=this._options)===null||r===void 0)&&r.persistLastActionId&&this._storageService.store(this._storageKey,e.id,1,1),this._defaultAction.dispose(),this._defaultAction=this._instaService.createInstance(vQ,e,{keybinding:this._getDefaultActionKeybindingLabel(e)}),this._defaultAction.actionRunner=new class extends DR{async runAction(o,c){await o.run(void 0)}},this._container&&this._defaultAction.render(hVe(this._container,qo(".action-container")))}_getDefaultActionKeybindingLabel(e){var r;let o;if(!((r=this._options)===null||r===void 0)&&r.renderKeybindingWithDefaultActionLabel){let c=this._keybindingService.lookupKeybinding(e.id);c&&(o=`(${c.getLabel()})`)}return o}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");let r=qo(".action-container");this._defaultAction.render(Ro(this._container,r)),this._register(Jr(r,ls.KEY_DOWN,c=>{let d=new Jp(c);d.equals(17)&&(this._defaultAction.element.tabIndex=-1,this._dropdown.focus(),d.stopPropagation())}));let o=qo(".dropdown-action-container");this._dropdown.render(Ro(this._container,o)),this._register(Jr(o,ls.KEY_DOWN,c=>{var d;let h=new Jp(c);h.equals(15)&&(this._defaultAction.element.tabIndex=0,this._dropdown.setFocusable(!1),(d=this._defaultAction.element)===null||d===void 0||d.focus(),h.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()}};Toi=J3t([p7(2,Jd),p7(3,og),p7(4,zw),p7(5,CE),p7(6,Pa),p7(7,GI)],Toi);Eoi=class extends j3t{constructor(e,r){super(null,e,e.actions.map(o=>({text:o.id===J1.ID?"\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500":o.label,isDisabled:!o.enabled})),0,r,FTi,{ariaLabel:e.tooltip,optionsAsChildren:!0}),this.select(Math.max(0,e.actions.findIndex(o=>o.checked)))}render(e){super.render(e),e.style.borderColor=Xc(TSe)}runAction(e,r){let o=this.action.actions[r];o&&this.actionRunner.run(o)}};Eoi=J3t([p7(1,i8)],Eoi)});var Vw,zV=ti(()=>{nc();lA();xLe();JI();xE();xc();co();Fh();boi();Vw=class extends tn{constructor(e,r={}){var o,c,d,h,b,w,N;super(),this._actionRunnerDisposables=this._register(new Fr),this.viewItemDisposables=this._register(new jbe),this.triggerKeyDown=!1,this.focusable=!0,this._onDidBlur=this._register(new wn),this.onDidBlur=this._onDidBlur.event,this._onDidCancel=this._register(new wn({onWillAddFirstListener:()=>this.cancelHasListener=!0})),this.onDidCancel=this._onDidCancel.event,this.cancelHasListener=!1,this._onDidRun=this._register(new wn),this.onDidRun=this._onDidRun.event,this._onWillRun=this._register(new wn),this.onWillRun=this._onWillRun.event,this.options=r,this._context=(o=r.context)!==null&&o!==void 0?o:null,this._orientation=(c=this.options.orientation)!==null&&c!==void 0?c:0,this._triggerKeys={keyDown:(h=(d=this.options.triggerKeys)===null||d===void 0?void 0:d.keyDown)!==null&&h!==void 0?h:!1,keys:(w=(b=this.options.triggerKeys)===null||b===void 0?void 0:b.keys)!==null&&w!==void 0?w:[3,10]},this._hoverDelegate=(N=r.hoverDelegate)!==null&&N!==void 0?N:this._register(d$()),this.options.actionRunner?this._actionRunner=this.options.actionRunner:(this._actionRunner=new DR,this._actionRunnerDisposables.add(this._actionRunner)),this._actionRunnerDisposables.add(this._actionRunner.onDidRun(F=>this._onDidRun.fire(F))),this._actionRunnerDisposables.add(this._actionRunner.onWillRun(F=>this._onWillRun.fire(F))),this.viewItems=[],this.focusedItem=void 0,this.domNode=document.createElement("div"),this.domNode.className="monaco-action-bar";let L,B;switch(this._orientation){case 0:L=[15],B=[17];break;case 1:L=[16],B=[18],this.domNode.className+=" vertical";break}this._register(Jr(this.domNode,ls.KEY_DOWN,F=>{let Y=new Jp(F),Z=!0,ee=typeof this.focusedItem=="number"?this.viewItems[this.focusedItem]:void 0;L&&(Y.equals(L[0])||Y.equals(L[1]))?Z=this.focusPrevious():B&&(Y.equals(B[0])||Y.equals(B[1]))?Z=this.focusNext():Y.equals(9)&&this.cancelHasListener?this._onDidCancel.fire():Y.equals(14)?Z=this.focusFirst():Y.equals(13)?Z=this.focusLast():Y.equals(2)&&ee instanceof s8&&ee.trapsArrowNavigation?Z=this.focusNext():this.isTriggerKeyEvent(Y)?this._triggerKeys.keyDown?this.doTrigger(Y):this.triggerKeyDown=!0:Z=!1,Z&&(Y.preventDefault(),Y.stopPropagation())})),this._register(Jr(this.domNode,ls.KEY_UP,F=>{let Y=new Jp(F);this.isTriggerKeyEvent(Y)?(!this._triggerKeys.keyDown&&this.triggerKeyDown&&(this.triggerKeyDown=!1,this.doTrigger(Y)),Y.preventDefault(),Y.stopPropagation()):(Y.equals(2)||Y.equals(1026)||Y.equals(16)||Y.equals(18)||Y.equals(15)||Y.equals(17))&&this.updateFocusedItem()})),this.focusTracker=this._register(BP(this.domNode)),this._register(this.focusTracker.onDidBlur(()=>{(DC()===this.domNode||!ES(DC(),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){let r=this.viewItems.find(o=>o instanceof s8&&o.isEnabled());r instanceof s8&&r.setFocusable(!0)}else this.viewItems.forEach(r=>{r instanceof s8&&r.setFocusable(!1)})}isTriggerKeyEvent(e){let r=!1;return this._triggerKeys.keys.forEach(o=>{r=r||e.equals(o)}),r}updateFocusedItem(){var e,r;for(let o=0;or.setActionContext(e))}get actionRunner(){return this._actionRunner}set actionRunner(e){this._actionRunner=e,this._actionRunnerDisposables.clear(),this._actionRunnerDisposables.add(this._actionRunner.onDidRun(r=>this._onDidRun.fire(r))),this._actionRunnerDisposables.add(this._actionRunner.onWillRun(r=>this._onWillRun.fire(r))),this.viewItems.forEach(r=>r.actionRunner=e)}getContainer(){return this.domNode}getAction(e){var r;if(typeof e=="number")return(r=this.viewItems[e])===null||r===void 0?void 0:r.action;if(Wv(e)){for(;e.parentElement!==this.actionsList;){if(!e.parentElement)return;e=e.parentElement}for(let o=0;o{let h=document.createElement("li");h.className="action-item",h.setAttribute("role","presentation");let b,w={hoverDelegate:this._hoverDelegate,...r};this.options.actionViewItemProvider&&(b=this.options.actionViewItemProvider(d,w)),b||(b=new WV(this.context,d,w)),this.options.allowContextMenu||this.viewItemDisposables.set(b,Jr(h,ls.CONTEXT_MENU,N=>{D_.stop(N,!0)})),b.actionRunner=this._actionRunner,b.setActionContext(this.context),b.render(h),this.focusable&&b instanceof s8&&this.viewItems.length===0&&b.setFocusable(!0),c===null||c<0||c>=this.actionsList.children.length?(this.actionsList.appendChild(h),this.viewItems.push(b)):(this.actionsList.insertBefore(h,this.actionsList.children[c]),this.viewItems.splice(c,0,b),c++)}),typeof this.focusedItem=="number"&&this.focus(this.focusedItem),this.refreshRole()}clear(){this.isEmpty()||(this.viewItems=Fp(this.viewItems),this.viewItemDisposables.clearAndDisposeAll(),DS(this.actionsList),this.refreshRole())}length(){return this.viewItems.length}isEmpty(){return this.viewItems.length===0}focus(e){let r=!1,o;if(e===void 0?r=!0:typeof e=="number"?o=e:typeof e=="boolean"&&(r=e),r&&typeof this.focusedItem>"u"){let c=this.viewItems.findIndex(d=>d.isEnabled());this.focusedItem=c===-1?void 0:c,this.updateFocus(void 0,void 0,!0)}else o!==void 0&&(this.focusedItem=o),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){if(typeof this.focusedItem>"u")this.focusedItem=this.viewItems.length-1;else if(this.viewItems.length<=1)return!1;let r=this.focusedItem,o;do{if(!e&&this.options.preventLoopNavigation&&this.focusedItem+1>=this.viewItems.length)return this.focusedItem=r,!1;this.focusedItem=(this.focusedItem+1)%this.viewItems.length,o=this.viewItems[this.focusedItem]}while(this.focusedItem!==r&&(this.options.focusOnlyEnabledItems&&!o.isEnabled()||o.action.id===J1.ID));return this.updateFocus(),!0}focusPrevious(e){if(typeof this.focusedItem>"u")this.focusedItem=0;else if(this.viewItems.length<=1)return!1;let r=this.focusedItem,o;do{if(this.focusedItem=this.focusedItem-1,this.focusedItem<0){if(!e&&this.options.preventLoopNavigation)return this.focusedItem=r,!1;this.focusedItem=this.viewItems.length-1}o=this.viewItems[this.focusedItem]}while(this.focusedItem!==r&&(this.options.focusOnlyEnabledItems&&!o.isEnabled()||o.action.id===J1.ID));return this.updateFocus(!0),!0}updateFocus(e,r,o=!1){var c,d;typeof this.focusedItem>"u"&&this.actionsList.focus({preventScroll:r}),this.previouslyFocusedItem!==void 0&&this.previouslyFocusedItem!==this.focusedItem&&((c=this.viewItems[this.previouslyFocusedItem])===null||c===void 0||c.blur());let h=this.focusedItem!==void 0?this.viewItems[this.focusedItem]:void 0;if(h){let b=!0;Abe(h.focus)||(b=!1),this.options.focusOnlyEnabledItems&&Abe(h.isEnabled)&&!h.isEnabled()&&(b=!1),h.action.id===J1.ID&&(b=!1),b?(o||this.previouslyFocusedItem!==this.focusedItem)&&(h.focus(e),this.previouslyFocusedItem=this.focusedItem):(this.actionsList.focus({preventScroll:r}),this.previouslyFocusedItem=void 0),b&&((d=h.showHover)===null||d===void 0||d.call(h))}}doTrigger(e){if(typeof this.focusedItem>"u")return;let r=this.viewItems[this.focusedItem];if(r instanceof s8){let o=r._context===null||r._context===void 0?e:r._context;this.run(r._action,o)}}async run(e,r){await this._actionRunner.run(e,r)}dispose(){this._context=void 0,this.viewItems=Fp(this.viewItems),this.getContainer().remove(),super.dispose()}}});function wzi(l){let e=Ioi,r=e.exec(l);if(!r)return l;let o=!r[1];return l.replace(e,o?"$2$3":"").trim()}function jTi(l){let e=EDt()[l.id];return`.codicon-${l.id}:before { content: '\\${e.toString(16)}'; }`}function Tzi(l,e){let r=` +.monaco-menu { + font-size: 13px; + border-radius: 5px; + min-width: 160px; +} + +${jTi(_s.menuSelection)} +${jTi(_s.menuSubmenu)} + +.monaco-menu .monaco-action-bar { + text-align: right; + overflow: hidden; + white-space: nowrap; +} + +.monaco-menu .monaco-action-bar .actions-container { + display: flex; + margin: 0 auto; + padding: 0; + width: 100%; + justify-content: flex-end; +} + +.monaco-menu .monaco-action-bar.vertical .actions-container { + display: inline-block; +} + +.monaco-menu .monaco-action-bar.reverse .actions-container { + flex-direction: row-reverse; +} + +.monaco-menu .monaco-action-bar .action-item { + cursor: pointer; + display: inline-block; + transition: transform 50ms ease; + position: relative; /* DO NOT REMOVE - this is the key to preventing the ghosting icon bug in Chrome 42 */ +} + +.monaco-menu .monaco-action-bar .action-item.disabled { + cursor: default; +} + +.monaco-menu .monaco-action-bar .action-item .icon, +.monaco-menu .monaco-action-bar .action-item .codicon { + display: inline-block; +} + +.monaco-menu .monaco-action-bar .action-item .codicon { + display: flex; + align-items: center; +} + +.monaco-menu .monaco-action-bar .action-label { + font-size: 11px; + margin-right: 4px; +} + +.monaco-menu .monaco-action-bar .action-item.disabled .action-label, +.monaco-menu .monaco-action-bar .action-item.disabled .action-label:hover { + color: var(--vscode-disabledForeground); +} + +/* Vertical actions */ + +.monaco-menu .monaco-action-bar.vertical { + text-align: left; +} + +.monaco-menu .monaco-action-bar.vertical .action-item { + display: block; +} + +.monaco-menu .monaco-action-bar.vertical .action-label.separator { + display: block; + border-bottom: 1px solid var(--vscode-menu-separatorBackground); + padding-top: 1px; + padding: 30px; +} + +.monaco-menu .secondary-actions .monaco-action-bar .action-label { + margin-left: 6px; +} + +/* Action Items */ +.monaco-menu .monaco-action-bar .action-item.select-container { + overflow: hidden; /* somehow the dropdown overflows its container, we prevent it here to not push */ + flex: 1; + max-width: 170px; + min-width: 60px; + display: flex; + align-items: center; + justify-content: center; + margin-right: 10px; +} + +.monaco-menu .monaco-action-bar.vertical { + margin-left: 0; + overflow: visible; +} + +.monaco-menu .monaco-action-bar.vertical .actions-container { + display: block; +} + +.monaco-menu .monaco-action-bar.vertical .action-item { + padding: 0; + transform: none; + display: flex; +} + +.monaco-menu .monaco-action-bar.vertical .action-item.active { + transform: none; +} + +.monaco-menu .monaco-action-bar.vertical .action-menu-item { + flex: 1 1 auto; + display: flex; + height: 2em; + align-items: center; + position: relative; + margin: 0 4px; + border-radius: 4px; +} + +.monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .keybinding, +.monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .keybinding { + opacity: unset; +} + +.monaco-menu .monaco-action-bar.vertical .action-label { + flex: 1 1 auto; + text-decoration: none; + padding: 0 1em; + background: none; + font-size: 12px; + line-height: 1; +} + +.monaco-menu .monaco-action-bar.vertical .keybinding, +.monaco-menu .monaco-action-bar.vertical .submenu-indicator { + display: inline-block; + flex: 2 1 auto; + padding: 0 1em; + text-align: right; + font-size: 12px; + line-height: 1; +} + +.monaco-menu .monaco-action-bar.vertical .submenu-indicator { + height: 100%; +} + +.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon { + font-size: 16px !important; + display: flex; + align-items: center; +} + +.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon::before { + margin-left: auto; + margin-right: -20px; +} + +.monaco-menu .monaco-action-bar.vertical .action-item.disabled .keybinding, +.monaco-menu .monaco-action-bar.vertical .action-item.disabled .submenu-indicator { + opacity: 0.4; +} + +.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator) { + display: inline-block; + box-sizing: border-box; + margin: 0; +} + +.monaco-menu .monaco-action-bar.vertical .action-item { + position: static; + overflow: visible; +} + +.monaco-menu .monaco-action-bar.vertical .action-item .monaco-submenu { + position: absolute; +} + +.monaco-menu .monaco-action-bar.vertical .action-label.separator { + width: 100%; + height: 0px !important; + opacity: 1; +} + +.monaco-menu .monaco-action-bar.vertical .action-label.separator.text { + padding: 0.7em 1em 0.1em 1em; + font-weight: bold; + opacity: 1; +} + +.monaco-menu .monaco-action-bar.vertical .action-label:hover { + color: inherit; +} + +.monaco-menu .monaco-action-bar.vertical .menu-item-check { + position: absolute; + visibility: hidden; + width: 1em; + height: 100%; +} + +.monaco-menu .monaco-action-bar.vertical .action-menu-item.checked .menu-item-check { + visibility: visible; + display: flex; + align-items: center; + justify-content: center; +} + +/* Context Menu */ + +.context-view.monaco-menu-container { + outline: 0; + border: none; + animation: fadeIn 0.083s linear; + -webkit-app-region: no-drag; +} + +.context-view.monaco-menu-container :focus, +.context-view.monaco-menu-container .monaco-action-bar.vertical:focus, +.context-view.monaco-menu-container .monaco-action-bar.vertical :focus { + outline: 0; +} + +.hc-black .context-view.monaco-menu-container, +.hc-light .context-view.monaco-menu-container, +:host-context(.hc-black) .context-view.monaco-menu-container, +:host-context(.hc-light) .context-view.monaco-menu-container { + box-shadow: none; +} + +.hc-black .monaco-menu .monaco-action-bar.vertical .action-item.focused, +.hc-light .monaco-menu .monaco-action-bar.vertical .action-item.focused, +:host-context(.hc-black) .monaco-menu .monaco-action-bar.vertical .action-item.focused, +:host-context(.hc-light) .monaco-menu .monaco-action-bar.vertical .action-item.focused { + background: none; +} + +/* Vertical Action Bar Styles */ + +.monaco-menu .monaco-action-bar.vertical { + padding: 4px 0; +} + +.monaco-menu .monaco-action-bar.vertical .action-menu-item { + height: 2em; +} + +.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator), +.monaco-menu .monaco-action-bar.vertical .keybinding { + font-size: inherit; + padding: 0 2em; + max-height: 100%; +} + +.monaco-menu .monaco-action-bar.vertical .menu-item-check { + font-size: inherit; + width: 2em; +} + +.monaco-menu .monaco-action-bar.vertical .action-label.separator { + font-size: inherit; + margin: 5px 0 !important; + padding: 0; + border-radius: 0; +} + +.linux .monaco-menu .monaco-action-bar.vertical .action-label.separator, +:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .action-label.separator { + margin-left: 0; + margin-right: 0; +} + +.monaco-menu .monaco-action-bar.vertical .submenu-indicator { + font-size: 60%; + padding: 0 1.8em; +} + +.linux .monaco-menu .monaco-action-bar.vertical .submenu-indicator, +:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .submenu-indicator { + height: 100%; + mask-size: 10px 10px; + -webkit-mask-size: 10px 10px; +} + +.monaco-menu .action-item { + cursor: default; +}`;if(e){r+=` + /* Arrows */ + .monaco-scrollable-element > .scrollbar > .scra { + cursor: pointer; + font-size: 11px !important; + } + + .monaco-scrollable-element > .visible { + opacity: 1; + + /* Background rule added for IE9 - to allow clicks on dom node */ + background:rgba(0,0,0,0); + + transition: opacity 100ms linear; + } + .monaco-scrollable-element > .invisible { + opacity: 0; + pointer-events: none; + } + .monaco-scrollable-element > .invisible.fade { + transition: opacity 800ms linear; + } + + /* Scrollable Content Inset Shadow */ + .monaco-scrollable-element > .shadow { + position: absolute; + display: none; + } + .monaco-scrollable-element > .shadow.top { + display: block; + top: 0; + left: 3px; + height: 3px; + width: 100%; + } + .monaco-scrollable-element > .shadow.left { + display: block; + top: 3px; + left: 0; + height: 100%; + width: 3px; + } + .monaco-scrollable-element > .shadow.top-left-corner { + display: block; + top: 0; + left: 0; + height: 3px; + width: 3px; + } + `;let o=l.scrollbarShadow;o&&(r+=` + .monaco-scrollable-element > .shadow.top { + box-shadow: ${o} 0 6px 6px -6px inset; + } + + .monaco-scrollable-element > .shadow.left { + box-shadow: ${o} 6px 0 6px -6px inset; + } + + .monaco-scrollable-element > .shadow.top.left { + box-shadow: ${o} 6px 6px 6px -6px inset; + } + `);let c=l.scrollbarSliderBackground;c&&(r+=` + .monaco-scrollable-element > .scrollbar > .slider { + background: ${c}; + } + `);let d=l.scrollbarSliderHoverBackground;d&&(r+=` + .monaco-scrollable-element > .scrollbar > .slider:hover { + background: ${d}; + } + `);let h=l.scrollbarSliderActiveBackground;h&&(r+=` + .monaco-scrollable-element > .scrollbar > .slider.active { + background: ${h}; + } + `)}return r}var Ioi,Doi,$3t,Noi,f_t,G3t,K3t,X3t,WTi=ti(()=>{ZF();FR();nc();lA();vB();zV();xLe();Ari();AV();xE();Ud();uy();nut();bv();_Le();co();X_();Mu();Ioi=/\(&([^\s&])\)|(^|[^&])&([^\s&])/,Doi=/(&)?(&)([^\s&])/g;(function(l){l[l.Right=0]="Right",l[l.Left=1]="Left"})($3t||($3t={}));(function(l){l[l.Above=0]="Above",l[l.Below=1]="Below"})(Noi||(Noi={}));f_t=class l extends Vw{constructor(e,r,o,c){e.classList.add("monaco-menu-container"),e.setAttribute("role","presentation");let d=document.createElement("div");d.classList.add("monaco-menu"),d.setAttribute("role","presentation"),super(d,{orientation:1,actionViewItemProvider:N=>this.doGetActionViewItem(N,o,h),context:o.context,actionRunner:o.actionRunner,ariaLabel:o.ariaLabel,ariaRole:"menu",focusOnlyEnabledItems:!0,triggerKeys:{keys:[3,...md||kS?[10]:[]],keyDown:!0}}),this.menuStyles=c,this.menuElement=d,this.actionsList.tabIndex=0,this.initializeOrUpdateStyleSheet(e,c),this._register(d1.addTarget(d)),this._register(Jr(d,ls.KEY_DOWN,N=>{new Jp(N).equals(2)&&N.preventDefault()})),o.enableMnemonics&&this._register(Jr(d,ls.KEY_DOWN,N=>{let L=N.key.toLocaleLowerCase();if(this.mnemonics.has(L)){D_.stop(N,!0);let B=this.mnemonics.get(L);if(B.length===1&&(B[0]instanceof K3t&&B[0].container&&this.focusItemByElement(B[0].container),B[0].onClick(N)),B.length>1){let F=B.shift();F&&F.container&&(this.focusItemByElement(F.container),B.push(F)),this.mnemonics.set(L,B)}}})),kS&&this._register(Jr(d,ls.KEY_DOWN,N=>{let L=new Jp(N);L.equals(14)||L.equals(11)?(this.focusedItem=this.viewItems.length-1,this.focusNext(),D_.stop(N,!0)):(L.equals(13)||L.equals(12))&&(this.focusedItem=0,this.focusPrevious(),D_.stop(N,!0))})),this._register(Jr(this.domNode,ls.MOUSE_OUT,N=>{let L=N.relatedTarget;ES(L,this.domNode)||(this.focusedItem=void 0,this.updateFocus(),N.stopPropagation())})),this._register(Jr(this.actionsList,ls.MOUSE_OVER,N=>{let L=N.target;if(!(!L||!ES(L,this.actionsList)||L===this.actionsList)){for(;L.parentElement!==this.actionsList&&L.parentElement!==null;)L=L.parentElement;if(L.classList.contains("action-item")){let B=this.focusedItem;this.setFocusedItem(L),B!==this.focusedItem&&this.updateFocus()}}})),this._register(d1.addTarget(this.actionsList)),this._register(Jr(this.actionsList,pg.Tap,N=>{let L=N.initialTarget;if(!(!L||!ES(L,this.actionsList)||L===this.actionsList)){for(;L.parentElement!==this.actionsList&&L.parentElement!==null;)L=L.parentElement;if(L.classList.contains("action-item")){let B=this.focusedItem;this.setFocusedItem(L),B!==this.focusedItem&&this.updateFocus()}}}));let h={parent:this};this.mnemonics=new Map,this.scrollableElement=this._register(new i$(d,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));let b=this.scrollableElement.getDomNode();b.style.position="",this.styleScrollElement(b,c),this._register(Jr(d,pg.Change,N=>{D_.stop(N,!0);let L=this.scrollableElement.getScrollPosition().scrollTop;this.scrollableElement.setScrollPosition({scrollTop:L-N.translationY})})),this._register(Jr(b,ls.MOUSE_UP,N=>{N.preventDefault()}));let w=Gc(e);d.style.maxHeight=`${Math.max(10,w.innerHeight-e.getBoundingClientRect().top-35)}px`,r=r.filter((N,L)=>{var B;return!((B=o.submenuIds)===null||B===void 0)&&B.has(N.id)?(console.warn(`Found submenu cycle: ${N.id}`),!1):!(N instanceof J1&&(L===r.length-1||L===0||r[L-1]instanceof J1))}),this.push(r,{icon:!0,label:!0,isMenu:!0}),e.appendChild(this.scrollableElement.getDomNode()),this.scrollableElement.scanDomNode(),this.viewItems.filter(N=>!(N instanceof X3t)).forEach((N,L,B)=>{N.updatePositionInSet(L+1,B.length)})}initializeOrUpdateStyleSheet(e,r){this.styleSheet||($4e(e)?this.styleSheet=bE(e):(l.globalStyleSheet||(l.globalStyleSheet=bE()),this.styleSheet=l.globalStyleSheet)),this.styleSheet.textContent=Tzi(r,$4e(e))}styleScrollElement(e,r){var o,c;let d=(o=r.foregroundColor)!==null&&o!==void 0?o:"",h=(c=r.backgroundColor)!==null&&c!==void 0?c:"",b=r.borderColor?`1px solid ${r.borderColor}`:"",w="5px",N=r.shadowColor?`0 2px 8px ${r.shadowColor}`:"";e.style.outline=b,e.style.borderRadius=w,e.style.color=d,e.style.backgroundColor=h,e.style.boxShadow=N}getContainer(){return this.scrollableElement.getDomNode()}get onScroll(){return this.scrollableElement.onScroll}focusItemByElement(e){let r=this.focusedItem;this.setFocusedItem(e),r!==this.focusedItem&&this.updateFocus()}setFocusedItem(e){for(let r=0;r{this.element&&(this._register(Jr(this.element,ls.MOUSE_UP,d=>{if(D_.stop(d,!0),AD){if(new PD(Gc(this.element),d).rightButton)return;this.onClick(d)}else setTimeout(()=>{this.onClick(d)},0)})),this._register(Jr(this.element,ls.CONTEXT_MENU,d=>{D_.stop(d,!0)})))},100),this._register(this.runOnceToEnableMouseUp)}render(e){super.render(e),this.element&&(this.container=e,this.item=Ro(this.element,qo("a.action-menu-item")),this._action.id===J1.ID?this.item.setAttribute("role","presentation"):(this.item.setAttribute("role","menuitem"),this.mnemonic&&this.item.setAttribute("aria-keyshortcuts",`${this.mnemonic}`)),this.check=Ro(this.item,qo("span.menu-item-check"+sl.asCSSSelector(_s.menuSelection))),this.check.setAttribute("role","none"),this.label=Ro(this.item,qo("span.action-label")),this.options.label&&this.options.keybinding&&(Ro(this.item,qo("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(){var e;super.focus(),(e=this.item)===null||e===void 0||e.focus(),this.applyStyle()}updatePositionInSet(e,r){this.item&&(this.item.setAttribute("aria-posinset",`${e}`),this.item.setAttribute("aria-setsize",`${r}`))}updateLabel(){var e;if(this.label&&this.options.label){DS(this.label);let r=rUe(this.action.label);if(r){let o=wzi(r);this.options.enableMnemonics||(r=o),this.label.setAttribute("aria-label",o.replace(/&&/g,"&"));let c=Ioi.exec(r);if(c){r=Gbe(r),Doi.lastIndex=0;let d=Doi.exec(r);for(;d&&d[1];)d=Doi.exec(r);let h=b=>b.replace(/&&/g,"&");d?this.label.append(sfe(h(r.substr(0,d.index))," "),qo("u",{"aria-hidden":"true"},d[3]),xQt(h(r.substr(d.index+d[0].length))," ")):this.label.innerText=h(r).trim(),(e=this.item)===null||e===void 0||e.setAttribute("aria-keyshortcuts",(c[1]?c[1]:c[3]).toLocaleLowerCase())}else this.label.innerText=r.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;let e=this.action.checked;this.item.classList.toggle("checked",!!e),e!==void 0?(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(){let e=this.element&&this.element.classList.contains("focused"),r=e&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor,o=e&&this.menuStyle.selectionBackgroundColor?this.menuStyle.selectionBackgroundColor:void 0,c=e&&this.menuStyle.selectionBorderColor?`1px solid ${this.menuStyle.selectionBorderColor}`:"",d=e&&this.menuStyle.selectionBorderColor?"-1px":"";this.item&&(this.item.style.color=r??"",this.item.style.backgroundColor=o??"",this.item.style.outline=c,this.item.style.outlineOffset=d),this.check&&(this.check.style.color=r??"")}},K3t=class extends G3t{constructor(e,r,o,c,d){super(e,e,c,d),this.submenuActions=r,this.parentData=o,this.submenuOptions=c,this.mysubmenu=null,this.submenuDisposables=this._register(new Fr),this.mouseOver=!1,this.expandDirection=c&&c.expandDirection!==void 0?c.expandDirection:{horizontal:$3t.Right,vertical:Noi.Below},this.showScheduler=new p_(()=>{this.mouseOver&&(this.cleanupExistingSubmenu(!1),this.createSubmenu(!1))},250),this.hideScheduler=new p_(()=>{this.element&&!ES(DC(),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=Ro(this.item,qo("span.submenu-indicator"+sl.asCSSSelector(_s.menuSubmenu))),this.submenuIndicator.setAttribute("aria-hidden","true")),this._register(Jr(this.element,ls.KEY_UP,r=>{let o=new Jp(r);(o.equals(17)||o.equals(3))&&(D_.stop(r,!0),this.createSubmenu(!0))})),this._register(Jr(this.element,ls.KEY_DOWN,r=>{let o=new Jp(r);DC()===this.item&&(o.equals(17)||o.equals(3))&&D_.stop(r,!0)})),this._register(Jr(this.element,ls.MOUSE_OVER,r=>{this.mouseOver||(this.mouseOver=!0,this.showScheduler.schedule())})),this._register(Jr(this.element,ls.MOUSE_LEAVE,r=>{this.mouseOver=!1})),this._register(Jr(this.element,ls.FOCUS_OUT,r=>{this.element&&!ES(DC(),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){D_.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,r,o,c){let d={top:0,left:0};return d.left=mLe(e.width,r.width,{position:c.horizontal===$3t.Right?0:1,offset:o.left,size:o.width}),d.left>=o.left&&d.left{new Jp(L).equals(15)&&(D_.stop(L,!0),this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0))})),this.submenuDisposables.add(Jr(this.submenuContainer,ls.KEY_DOWN,L=>{new Jp(L).equals(15)&&D_.stop(L,!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){var r;this.item&&((r=this.item)===null||r===void 0||r.setAttribute("aria-expanded",e))}applyStyle(){super.applyStyle();let r=this.element&&this.element.classList.contains("focused")&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor;this.submenuIndicator&&(this.submenuIndicator.style.color=r??"")}dispose(){super.dispose(),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),this.submenuContainer&&(this.submenuContainer=void 0)}},X3t=class extends WV{constructor(e,r,o,c){super(e,r,o),this.menuStyles=c}render(e){super.render(e),this.label&&(this.label.style.borderBottomColor=this.menuStyles.separatorColor?`${this.menuStyles.separatorColor}`:"")}}});var Y3t,zTi=ti(()=>{nc();vB();WTi();xE();Du();co();Fre();Y3t=class{constructor(e,r,o,c){this.contextViewService=e,this.telemetryService=r,this.notificationService=o,this.keybindingService=c,this.focusToReturn=null,this.lastContainer=null,this.block=null,this.blockDisposable=null,this.options={blockMouse:!0}}configure(e){this.options=e}showContextMenu(e){let r=e.getActions();if(!r.length)return;this.focusToReturn=DC();let o,c=Wv(e.domForShadowRoot)?e.domForShadowRoot:void 0;this.contextViewService.showContextView({getAnchor:()=>e.getAnchor(),canRelayout:!1,anchorAlignment:e.anchorAlignment,anchorAxisAlignment:e.anchorAxisAlignment,render:d=>{var h;this.lastContainer=d;let b=e.getMenuClassName?e.getMenuClassName():"";b&&(d.className+=" "+b),this.options.blockMouse&&(this.block=d.appendChild(qo(".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",(h=this.blockDisposable)===null||h===void 0||h.dispose(),this.blockDisposable=Jr(this.block,ls.MOUSE_DOWN,B=>B.stopPropagation()));let w=new Fr,N=e.actionRunner||new DR;N.onWillRun(B=>this.onActionRun(B,!e.skipTelemetry),this,w),N.onDidRun(this.onDidActionRun,this,w),o=new f_t(d,r,{actionViewItemProvider:e.getActionViewItem,context:e.getActionsContext?e.getActionsContext():null,actionRunner:N,getKeyBinding:e.getKeyBinding?e.getKeyBinding:B=>this.keybindingService.lookupKeybinding(B.id)},MTi),o.onDidCancel(()=>this.contextViewService.hideContextView(!0),null,w),o.onDidBlur(()=>this.contextViewService.hideContextView(!0),null,w);let L=Gc(d);return w.add(Jr(L,ls.BLUR,()=>this.contextViewService.hideContextView(!0))),w.add(Jr(L,ls.MOUSE_DOWN,B=>{if(B.defaultPrevented)return;let F=new PD(L,B),Y=F.target;if(!F.rightButton){for(;Y;){if(Y===d)return;Y=Y.parentElement}this.contextViewService.hideContextView(!0)}})),cA(w,o)},focus:()=>{o?.focus(!!e.autoSelectFirstItem)},onHide:d=>{var h,b,w;(h=e.onHide)===null||h===void 0||h.call(e,!!d),this.block&&(this.block.remove(),this.block=null),(b=this.blockDisposable)===null||b===void 0||b.dispose(),this.blockDisposable=null,this.lastContainer&&(DC()===this.lastContainer||ES(DC(),this.lastContainer))&&((w=this.focusToReturn)===null||w===void 0||w.focus()),this.lastContainer=null}},c,!!c)}onActionRun(e,r){r&&this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.action.id,from:"contextMenu"}),this.contextViewService.hideContextView(!1)}onDidActionRun(e){e.error&&!MI(e.error)&&this.notificationService.error(e.error)}}});var Ezi,PUe,Q3t,Aoi,VTi=ti(()=>{nc();xE();xc();co();n_e();My();hd();f1();xA();n3();zTi();u3();Ezi=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},PUe=function(l,e){return function(r,o){e(r,o,l)}},Q3t=class extends tn{get contextMenuHandler(){return this._contextMenuHandler||(this._contextMenuHandler=new Y3t(this.contextViewService,this.telemetryService,this.notificationService,this.keybindingService)),this._contextMenuHandler}constructor(e,r,o,c,d,h){super(),this.telemetryService=e,this.notificationService=r,this.contextViewService=o,this.keybindingService=c,this.menuService=d,this.contextKeyService=h,this._contextMenuHandler=void 0,this._onDidShowContextMenu=this._store.add(new wn),this.onDidShowContextMenu=this._onDidShowContextMenu.event,this._onDidHideContextMenu=this._store.add(new wn)}configure(e){this.contextMenuHandler.configure(e)}showContextMenu(e){e=Aoi.transform(e,this.menuService,this.contextKeyService),this.contextMenuHandler.showContextMenu({...e,onHide:r=>{var o;(o=e.onHide)===null||o===void 0||o.call(e,r),this._onDidHideContextMenu.fire()}}),ufe.getInstance().resetKeyStatus(),this._onDidShowContextMenu.fire()}};Q3t=Ezi([PUe(0,zv),PUe(1,og),PUe(2,i8),PUe(3,Jd),PUe(4,CE),PUe(5,Ec)],Q3t);(function(l){function e(o){return o&&o.menuId instanceof Mi}function r(o,c,d){if(!e(o))return o;let{menuId:h,menuActionOptions:b,contextKeyService:w}=o;return{...o,getActions:()=>{let N=[];if(h){let L=c.createMenu(h,w??d);RTi(L,b,N),L.dispose()}return o.getActions?J1.join(o.getActions(),N):N}}}l.transform=r})(Aoi||(Aoi={}))});var __t,HTi=ti(()=>{(function(l){l[l.API=0]="API",l[l.USER=1]="USER"})(__t||(__t={}))});var Ooi,Z3t,Poi,Loi,eOt,UTi=ti(()=>{nc();S6();Sh();mB();pA();GLt();RP();VP();s0();IC();W0();HTi();n8();Ooi=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},Z3t=function(l,e){return function(r,o){e(r,o,l)}},Poi=class{constructor(e){this._commandService=e}async open(e,r){if(!but(e,Vu.command))return!1;if(!r?.allowCommands||(typeof e=="string"&&(e=qc.parse(e)),Array.isArray(r.allowCommands)&&!r.allowCommands.includes(e.path)))return!0;let o=[];try{o=Rft(decodeURIComponent(e.query))}catch{try{o=Rft(e.query)}catch{}}return Array.isArray(o)||(o=[o]),await this._commandService.executeCommand(e.path,...o),!0}};Poi=Ooi([Z3t(0,Mp)],Poi);Loi=class{constructor(e){this._editorService=e}async open(e,r){typeof e=="string"&&(e=qc.parse(e));let{selection:o,uri:c}=Oki(e);return e=c,e.scheme===Vu.file&&(e=fCi(e)),await this._editorService.openCodeEditor({resource:e,options:{selection:o,source:r?.fromUserGesture?__t.USER:__t.API,...r?.editorOptions}},this._editorService.getFocusedCodeEditor(),r?.openToSide),!0}};Loi=Ooi([Z3t(0,nf)],Loi);eOt=class{constructor(e,r){this._openers=new QS,this._validators=new QS,this._resolvers=new QS,this._resolvedUriTargets=new nx(o=>o.with({path:null,fragment:null,query:null}).toString()),this._externalOpeners=new QS,this._defaultExternalOpener={openExternal:async o=>(Sut(o,Vu.http,Vu.https)?lNt(o):em.location.href=o,!0)},this._openers.push({open:async(o,c)=>c?.openExternal||Sut(o,Vu.mailto,Vu.http,Vu.https,Vu.vsls)?(await this._doOpenExternal(o,c),!0):!1}),this._openers.push(new Poi(r)),this._openers.push(new Loi(e))}registerOpener(e){return{dispose:this._openers.unshift(e)}}async open(e,r){var o;let c=typeof e=="string"?qc.parse(e):e,d=(o=this._resolvedUriTargets.get(c))!==null&&o!==void 0?o:e;for(let h of this._validators)if(!await h.shouldOpen(d,r))return!1;for(let h of this._openers)if(await h.open(e,r))return!0;return!1}async resolveExternalUri(e,r){for(let o of this._resolvers)try{let c=await o.resolveExternalUri(e,r);if(c)return this._resolvedUriTargets.has(c.resolved)||this._resolvedUriTargets.set(c.resolved,e),c}catch{}throw new Error("Could not resolve external URI: "+e.toString())}async _doOpenExternal(e,r){let o=typeof e=="string"?qc.parse(e):e,c;try{c=(await this.resolveExternalUri(o,r)).resolved}catch{c=o}let d;if(typeof e=="string"&&o.toString()===c.toString()?d=e:d=encodeURI(c.toString(!0)),r?.allowContributedOpeners){let h=typeof r?.allowContributedOpeners=="string"?r?.allowContributedOpeners:void 0;for(let b of this._externalOpeners)if(await b.openExternal(d,{sourceUri:o,preferredOpenerId:h},Nd.None))return!0}return this._defaultExternalOpener.openExternal(d,{sourceUri:o},Nd.None)}dispose(){this._validators.clear()}};eOt=Ooi([Z3t(0,nf),Z3t(1,Mp)],eOt)});var kA,r_e=ti(()=>{bl();kA=Ml("editorWorkerService")});var Y1,p_t,m7,Mre=ti(()=>{zfe();ya();bl();(function(l){l[l.Hint=1]="Hint",l[l.Info=2]="Info",l[l.Warning=4]="Warning",l[l.Error=8]="Error"})(Y1||(Y1={}));(function(l){function e(h,b){return b-h}l.compare=e;let r=Object.create(null);r[l.Error]=ce("sev.error","Error"),r[l.Warning]=ce("sev.warning","Warning"),r[l.Info]=ce("sev.info","Info");function o(h){return r[h]||""}l.toString=o;function c(h){switch(h){case _1.Error:return l.Error;case _1.Warning:return l.Warning;case _1.Info:return l.Info;case _1.Ignore:return l.Hint}}l.fromSeverity=c;function d(h){switch(h){case l.Error:return _1.Error;case l.Warning:return _1.Warning;case l.Info:return _1.Info;case l.Hint:return _1.Ignore}}l.toSeverity=d})(Y1||(Y1={}));(function(l){let e="";function r(c){return o(c,!0)}l.makeKey=r;function o(c,d){let h=[e];return c.source?h.push(c.source.replace("\xA6","\\\xA6")):h.push(e),c.code?typeof c.code=="string"?h.push(c.code.replace("\xA6","\\\xA6")):h.push(c.code.value.replace("\xA6","\\\xA6")):h.push(e),c.severity!==void 0&&c.severity!==null?h.push(Y1.toString(c.severity)):h.push(e),c.message&&d?h.push(c.message.replace("\xA6","\\\xA6")):h.push(e),c.startLineNumber!==void 0&&c.startLineNumber!==null?h.push(c.startLineNumber.toString()):h.push(e),c.startColumn!==void 0&&c.startColumn!==null?h.push(c.startColumn.toString()):h.push(e),c.endLineNumber!==void 0&&c.endLineNumber!==null?h.push(c.endLineNumber.toString()):h.push(e),c.endColumn!==void 0&&c.endColumn!==null?h.push(c.endColumn.toString()):h.push(e),h.push(e),h.join("\xA6")}l.makeKeyOptionalMessage=o})(p_t||(p_t={}));m7=Ml("markerService")});function JTi(l,e){let r=[],o=[];for(let c of l)e.has(c)||r.push(c);for(let c of e)l.has(c)||o.push(c);return{removed:r,added:o}}function qTi(l,e){let r=new Set;for(let o of e)l.has(o)&&r.add(o);return r}var Foi=ti(()=>{});var Dzi,$Ti,tOt,Moi,GTi=ti(()=>{Mre();co();MD();x0();PV();C6();Xa();RP();xc();q1();pA();Foi();Dzi=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},$Ti=function(l,e){return function(r,o){e(r,o,l)}},tOt=class extends tn{constructor(e,r){super(),this._markerService=r,this._onDidChangeMarker=this._register(new wn),this._markerDecorations=new nx,e.getModels().forEach(o=>this._onModelAdded(o)),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,r){let o=this._markerDecorations.get(e);return o&&o.getMarker(r)||null}_handleMarkerChange(e){e.forEach(r=>{let o=this._markerDecorations.get(r);o&&this._updateDecorations(o)})}_onModelAdded(e){let r=new Moi(e);this._markerDecorations.set(e.uri,r),this._updateDecorations(r)}_onModelRemoved(e){var r;let o=this._markerDecorations.get(e.uri);o&&(o.dispose(),this._markerDecorations.delete(e.uri)),(e.uri.scheme===Vu.inMemory||e.uri.scheme===Vu.internal||e.uri.scheme===Vu.vscode)&&((r=this._markerService)===null||r===void 0||r.read({resource:e.uri}).map(c=>c.owner).forEach(c=>this._markerService.remove(c,[e.uri])))}_updateDecorations(e){let r=this._markerService.read({resource:e.model.uri,take:500});e.update(r)&&this._onDidChangeMarker.fire(e.model)}};tOt=Dzi([$Ti(0,Mh),$Ti(1,m7)],tOt);Moi=class extends tn{constructor(e){super(),this.model=e,this._map=new nAt,this._register(Ma(()=>{this.model.deltaDecorations([...this._map.values()],[]),this._map.clear()}))}update(e){let{added:r,removed:o}=JTi(new Set(this._map.keys()),new Set(e));if(r.length===0&&o.length===0)return!1;let c=o.map(b=>this._map.get(b)),d=r.map(b=>({range:this._createDecorationRange(this.model,b),options:this._createDecorationOption(b)})),h=this.model.deltaDecorations(c,d);for(let b of o)this._map.delete(b);for(let b=0;b=c)return o;let d=e.getWordAtPosition(o.getStartPosition());d&&(o=new Zt(o.startLineNumber,d.startColumn,o.endLineNumber,d.endColumn))}else if(r.endColumn===Number.MAX_VALUE&&r.startColumn===1&&o.startLineNumber===o.endLineNumber){let c=e.getLineFirstNonWhitespaceColumn(r.startLineNumber);c=0:!1}}});function wLe(l){return l.toString()}var Izi,m_t,LUe,Roi,Nzi,Boi,h_t,iOt,KTi=ti(()=>{xc();co();X_();Ww();Hlt();SV();FD();tdt();_y();mft();Zbe();Rii();RP();YL();ix();Izi=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},m_t=function(l,e){return function(r,o){e(r,o,l)}};Roi=class{constructor(e,r,o){this.model=e,this._modelEventListeners=new Fr,this.model=e,this._modelEventListeners.add(e.onWillDispose(()=>r(e))),this._modelEventListeners.add(e.onDidChangeLanguage(c=>o(e,c)))}dispose(){this._modelEventListeners.dispose()}},Nzi=kS||md?1:2,Boi=class{constructor(e,r,o,c,d,h,b,w){this.uri=e,this.initialUndoRedoSnapshot=r,this.time=o,this.sharesUndoRedoStack=c,this.heapSize=d,this.sha1=h,this.versionId=b,this.alternativeVersionId=w}},h_t=LUe=class extends tn{constructor(e,r,o,c,d){super(),this._configurationService=e,this._resourcePropertiesService=r,this._undoRedoService=o,this._languageService=c,this._languageConfigurationService=d,this._onModelAdded=this._register(new wn),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new wn),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new wn),this.onModelLanguageChanged=this._onModelModeChanged.event,this._modelCreationOptionsByLanguageAndResource=Object.create(null),this._models={},this._disposedModels=new Map,this._disposedModelsHeapSize=0,this._register(this._configurationService.onDidChangeConfiguration(h=>this._updateModelOptions(h))),this._updateModelOptions(void 0)}static _readModelOptions(e,r){var o;let c=ID.tabSize;if(e.editor&&typeof e.editor.tabSize<"u"){let Y=parseInt(e.editor.tabSize,10);isNaN(Y)||(c=Y),c<1&&(c=1)}let d="tabSize";if(e.editor&&typeof e.editor.indentSize<"u"&&e.editor.indentSize!=="tabSize"){let Y=parseInt(e.editor.indentSize,10);isNaN(Y)||(d=Math.max(Y,1))}let h=ID.insertSpaces;e.editor&&typeof e.editor.insertSpaces<"u"&&(h=e.editor.insertSpaces==="false"?!1:!!e.editor.insertSpaces);let b=Nzi,w=e.eol;w===`\r +`?b=2:w===` +`&&(b=1);let N=ID.trimAutoWhitespace;e.editor&&typeof e.editor.trimAutoWhitespace<"u"&&(N=e.editor.trimAutoWhitespace==="false"?!1:!!e.editor.trimAutoWhitespace);let L=ID.detectIndentation;e.editor&&typeof e.editor.detectIndentation<"u"&&(L=e.editor.detectIndentation==="false"?!1:!!e.editor.detectIndentation);let B=ID.largeFileOptimizations;e.editor&&typeof e.editor.largeFileOptimizations<"u"&&(B=e.editor.largeFileOptimizations==="false"?!1:!!e.editor.largeFileOptimizations);let F=ID.bracketPairColorizationOptions;return!((o=e.editor)===null||o===void 0)&&o.bracketPairColorization&&typeof e.editor.bracketPairColorization=="object"&&(F={enabled:!!e.editor.bracketPairColorization.enabled,independentColorPoolPerBracketType:!!e.editor.bracketPairColorization.independentColorPoolPerBracketType}),{isForSimpleWidget:r,tabSize:c,indentSize:d,insertSpaces:h,detectIndentation:L,defaultEOL:b,trimAutoWhitespace:N,largeFileOptimizations:B,bracketPairColorizationOptions:F}}_getEOL(e,r){if(e)return this._resourcePropertiesService.getEOL(e,r);let o=this._configurationService.getValue("files.eol",{overrideIdentifier:r});return o&&typeof o=="string"&&o!=="auto"?o:gE===3||gE===2?` +`:`\r +`}_shouldRestoreUndoStack(){let e=this._configurationService.getValue("files.restoreUndoStack");return typeof e=="boolean"?e:!0}getCreationOptions(e,r,o){let c=typeof e=="string"?e:e.languageId,d=this._modelCreationOptionsByLanguageAndResource[c+r];if(!d){let h=this._configurationService.getValue("editor",{overrideIdentifier:c,resource:r}),b=this._getEOL(r,c);d=LUe._readModelOptions({editor:h,eol:b},o),this._modelCreationOptionsByLanguageAndResource[c+r]=d}return d}_updateModelOptions(e){let r=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);let o=Object.keys(this._models);for(let c=0,d=o.length;ce){let r=[];for(this._disposedModels.forEach(o=>{o.sharesUndoRedoStack||r.push(o)}),r.sort((o,c)=>o.time-c.time);r.length>0&&this._disposedModelsHeapSize>e;){let o=r.shift();this._removeDisposedModel(o.uri),o.initialUndoRedoSnapshot!==null&&this._undoRedoService.restoreSnapshot(o.initialUndoRedoSnapshot)}}}_createModelData(e,r,o,c){let d=this.getCreationOptions(r,o,c),h=new a$(e,r,d,o,this._undoRedoService,this._languageService,this._languageConfigurationService);if(o&&this._disposedModels.has(wLe(o))){let N=this._removeDisposedModel(o),L=this._undoRedoService.getElements(o),B=this._getSHA1Computer(),F=B.canComputeSHA1(h)?B.computeSHA1(h)===N.sha1:!1;if(F||N.sharesUndoRedoStack){for(let Y of L.past)lre(Y)&&Y.matchesResource(o)&&Y.setModel(h);for(let Y of L.future)lre(Y)&&Y.matchesResource(o)&&Y.setModel(h);this._undoRedoService.setElementsValidFlag(o,!0,Y=>lre(Y)&&Y.matchesResource(o)),F&&(h._overwriteVersionId(N.versionId),h._overwriteAlternativeVersionId(N.alternativeVersionId),h._overwriteInitialUndoRedoSnapshot(N.initialUndoRedoSnapshot))}else N.initialUndoRedoSnapshot!==null&&this._undoRedoService.restoreSnapshot(N.initialUndoRedoSnapshot)}let b=wLe(h.uri);if(this._models[b])throw new Error("ModelService: Cannot add model because it already exists!");let w=new Roi(h,N=>this._onWillDispose(N),(N,L)=>this._onDidChangeLanguage(N,L));return this._models[b]=w,w}createModel(e,r,o,c=!1){let d;return r?d=this._createModelData(e,r,o,c):d=this._createModelData(e,y2,o,c),this._onModelAdded.fire(d.model),d.model}getModels(){let e=[],r=Object.keys(this._models);for(let o=0,c=r.length;o0||N.future.length>0){for(let L of N.past)lre(L)&&L.matchesResource(e.uri)&&(d=!0,h+=L.heapSize(e.uri),L.setModel(e.uri));for(let L of N.future)lre(L)&&L.matchesResource(e.uri)&&(d=!0,h+=L.heapSize(e.uri),L.setModel(e.uri))}}let b=LUe.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK,w=this._getSHA1Computer();if(d)if(!c&&(h>b||!w.canComputeSHA1(e))){let N=o.model.getInitialUndoRedoSnapshot();N!==null&&this._undoRedoService.restoreSnapshot(N)}else this._ensureDisposedModelsHeapSize(b-h),this._undoRedoService.setElementsValidFlag(e.uri,!1,N=>lre(N)&&N.matchesResource(e.uri)),this._insertDisposedModel(new Boi(e.uri,o.model.getInitialUndoRedoSnapshot(),Date.now(),c,h,w.computeSHA1(e),e.getVersionId(),e.getAlternativeVersionId()));else if(!c){let N=o.model.getInitialUndoRedoSnapshot();N!==null&&this._undoRedoService.restoreSnapshot(N)}delete this._models[r],o.dispose(),delete this._modelCreationOptionsByLanguageAndResource[e.getLanguageId()+e.uri],this._onModelRemoved.fire(e)}_onDidChangeLanguage(e,r){let o=r.oldLanguage,c=e.getLanguageId(),d=this.getCreationOptions(o,e.uri,e.isForSimpleWidget),h=this.getCreationOptions(c,e.uri,e.isForSimpleWidget);LUe._setModelOptionsForModel(e,h,d),this._onModelModeChanged.fire({model:e,oldLanguageId:o})}_getSHA1Computer(){return new iOt}};h_t.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=20*1024*1024;h_t=LUe=Izi([m_t(0,_u),m_t(1,vAt),m_t(2,qSe),m_t(3,km),m_t(4,cp)],h_t);iOt=class l{canComputeSHA1(e){return e.getValueLength()<=l.MAX_MODEL_SIZE}computeSHA1(e){let r=new Cut,o=e.createSnapshot(),c;for(;c=o.read();)r.update(c);return r.digest()}};iOt.MAX_MODEL_SIZE=10*1024*1024});var XTi=ti(()=>{});var nOt,VV,joi,TLe=ti(()=>{sd();co();DT();(function(l){l[l.PRESERVE=0]="PRESERVE",l[l.LAST=1]="LAST"})(nOt||(nOt={}));VV={Quickaccess:"workbench.contributions.quickaccess"},joi=class{constructor(){this.providers=[],this.defaultProvider=void 0}registerQuickAccessProvider(e){return e.prefix.length===0?this.defaultProvider=e:this.providers.push(e),this.providers.sort((r,o)=>o.prefix.length-r.prefix.length),Ma(()=>{this.providers.splice(this.providers.indexOf(e),1),this.defaultProvider===e&&(this.defaultProvider=void 0)})}getQuickAccessProviders(){return oA([this.defaultProvider,...this.providers])}getQuickAccessProvider(e){return e&&this.providers.find(o=>e.startsWith(o.prefix))||void 0||this.defaultProvider}};pm.add(VV.Quickaccess,new joi)});var YTi,_xe,BB,Cv,Woi,X7n,S2,a8=ti(()=>{bl();YTi={ctrlCmd:!1,alt:!1};(function(l){l[l.Blur=1]="Blur",l[l.Gesture=2]="Gesture",l[l.Other=3]="Other"})(_xe||(_xe={}));(function(l){l[l.NONE=0]="NONE",l[l.FIRST=1]="FIRST",l[l.SECOND=2]="SECOND",l[l.LAST=3]="LAST"})(BB||(BB={}));(function(l){l[l.First=1]="First",l[l.Second=2]="Second",l[l.Last=3]="Last",l[l.Next=4]="Next",l[l.Previous=5]="Previous",l[l.NextPage=6]="NextPage",l[l.PreviousPage=7]="PreviousPage",l[l.NextSeparator=8]="NextSeparator",l[l.PreviousSeparator=9]="PreviousSeparator"})(Cv||(Cv={}));Woi=class{constructor(e){this.options=e}},X7n=new Woi,S2=Ml("quickInputService")});var Azi,QTi,rOt,ZTi=ti(()=>{Ud();Sh();xc();co();bl();TLe();a8();DT();Azi=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},QTi=function(l,e){return function(r,o){e(r,o,l)}},rOt=class extends tn{constructor(e,r){super(),this.quickInputService=e,this.instantiationService=r,this.registry=pm.as(VV.Quickaccess),this.mapProviderToDescriptor=new Map,this.lastAcceptedPickerValues=new Map,this.visibleQuickAccess=void 0}show(e="",r){this.doShowOrPick(e,!1,r)}doShowOrPick(e,r,o){var c,d,h,b;let[w,N]=this.getOrInstantiateProvider(e,o?.enabledProviderPrefixes),L=this.visibleQuickAccess,B=L?.descriptor;if(L&&N&&B===N){e!==N.prefix&&!o?.preserveValue&&(L.picker.value=e),this.adjustValueSelection(L.picker,N,o);return}if(N&&!o?.preserveValue){let Xe;if(L&&B&&B!==N){let ct=L.value.substr(B.prefix.length);ct&&(Xe=`${N.prefix}${ct}`)}if(!Xe){let ct=w?.defaultFilterValue;ct===nOt.LAST?Xe=this.lastAcceptedPickerValues.get(N):typeof ct=="string"&&(Xe=`${N.prefix}${ct}`)}typeof Xe=="string"&&(e=Xe)}let F=(c=L?.picker)===null||c===void 0?void 0:c.valueSelection,Y=(d=L?.picker)===null||d===void 0?void 0:d.value,Z=new Fr,ee=Z.add(this.quickInputService.createQuickPick());ee.value=e,this.adjustValueSelection(ee,N,o),ee.placeholder=(h=o?.placeholder)!==null&&h!==void 0?h:N?.placeholder,ee.quickNavigate=o?.quickNavigateConfiguration,ee.hideInput=!!ee.quickNavigate&&!L,(typeof o?.itemActivation=="number"||o?.quickNavigateConfiguration)&&(ee.itemActivation=(b=o?.itemActivation)!==null&&b!==void 0?b:BB.SECOND),ee.contextKey=N?.contextKey,ee.filterValue=Xe=>Xe.substring(N?N.prefix.length:0);let Te;r&&(Te=new Fq,Z.add(gs.once(ee.onWillAccept)(Xe=>{Xe.veto(),ee.hide()}))),Z.add(this.registerPickerListeners(ee,w,N,e,o));let Je=Z.add(new Up);if(w&&Z.add(w.provide(ee,Je.token,o?.providerOptions)),gs.once(ee.onDidHide)(()=>{ee.selectedItems.length===0&&Je.cancel(),Z.dispose(),Te?.complete(ee.selectedItems.slice(0))}),ee.show(),F&&Y===e&&(ee.valueSelection=F),r)return Te?.p}adjustValueSelection(e,r,o){var c;let d;o?.preserveValue?d=[e.value.length,e.value.length]:d=[(c=r?.prefix.length)!==null&&c!==void 0?c:0,e.value.length],e.valueSelection=d}registerPickerListeners(e,r,o,c,d){let h=new Fr,b=this.visibleQuickAccess={picker:e,descriptor:o,value:c};return h.add(Ma(()=>{b===this.visibleQuickAccess&&(this.visibleQuickAccess=void 0)})),h.add(e.onDidChangeValue(w=>{let[N]=this.getOrInstantiateProvider(w,d?.enabledProviderPrefixes);N!==r?this.show(w,{enabledProviderPrefixes:d?.enabledProviderPrefixes,preserveValue:!0,providerOptions:d?.providerOptions}):b.value=w})),o&&h.add(e.onDidAccept(()=>{this.lastAcceptedPickerValues.set(o,e.value)})),h}getOrInstantiateProvider(e,r){let o=this.registry.getQuickAccessProvider(e);if(!o||r&&!r?.includes(o.prefix))return[void 0,void 0];let c=this.mapProviderToDescriptor.get(o);return c||(c=this.instantiationService.createInstance(o.ctor),this.mapProviderToDescriptor.set(o,c)),[c,o]}};rOt=Azi([QTi(0,S2),QTi(1,Pa)],rOt)});var e2i=ti(()=>{});var HV,OUe=ti(()=>{IV();bv();xc();e2i();JI();RV();HV=class extends ew{constructor(e){var r;super(),this._onChange=this._register(new wn),this.onChange=this._onChange.event,this._onKeyDown=this._register(new wn),this.onKeyDown=this._onKeyDown.event,this._opts=e,this._checked=this._opts.isChecked;let o=["monaco-custom-toggle"];this._opts.icon&&(this._icon=this._opts.icon,o.push(...sl.asClassNameArray(this._icon))),this._opts.actionClassName&&o.push(...this._opts.actionClassName.split(" ")),this._checked&&o.push("checked"),this.domNode=document.createElement("div"),this._hover=this._register(qI().setupUpdatableHover((r=e.hoverDelegate)!==null&&r!==void 0?r:AS("mouse"),this.domNode,this._opts.title)),this.domNode.classList.add(...o),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,c=>{this.enabled&&(this.checked=!this._checked,this._onChange.fire(!1),c.preventDefault())}),this._register(this.ignoreGesture(this.domNode)),this.onkeydown(this.domNode,c=>{if(c.keyCode===10||c.keyCode===3){this.checked=!this._checked,this._onChange.fire(!0),c.preventDefault(),c.stopPropagation();return}this._onKeyDown.fire(c)})}get enabled(){return this.domNode.getAttribute("aria-disabled")!=="true"}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))}}});var oOt=ti(()=>{});function t2i(l){let e=[],r=0,o;for(;o=Lzi.exec(l);){o.index-r>0&&e.push(l.substring(r,o.index));let[,c,d,,h]=o;h?e.push({label:c,href:d,title:h}):e.push({label:c,href:d}),r=o.index+o[0].length}return r{DSe();Pzi=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},sOt=class{constructor(e){this.nodes=e}toString(){return this.nodes.map(e=>typeof e=="string"?e:e.label).join("")}};Pzi([G1],sOt.prototype,"toString",null);Lzi=/\[([^\]]+)\]\(((?:https?:\/\/|command:|file:)[^\)\s]+)(?: (["'])(.+?)(\3))?\)/gi});function Fzi(l){if(!l)return;let e,r=l.dark.toString();return zoi[r]?e=zoi[r]:(e=Ozi.nextId(),pVe(`.${e}, .hc-light .${e}`,`background-image: ${SB(l.light||l.dark)}`),pVe(`.vs-dark .${e}, .hc-black .${e}`,`background-image: ${SB(l.dark)}`),zoi[r]=e),e}function FUe(l,e,r){let o=l.iconClass||Fzi(l.iconPath);return l.alwaysVisible&&(o=o?`${o} always-visible`:"always-visible"),{id:e,label:"",tooltip:l.tooltip||"",class:o,enabled:!0,run:r}}function n2i(l,e,r){IS(e);let o=t2i(l),c=0;for(let d of o.nodes)if(typeof d=="string")e.append(...PB(d));else{let h=d.title;!h&&d.href.startsWith("command:")?h=ce("executeCommand","Click to execute command '{0}'",d.href.substring(8)):h||(h=d.href);let b=qo("a",{href:d.href,title:h,tabIndex:c++},d.label);b.style.textDecoration="underline";let w=Y=>{F0i(Y)&&D_.stop(Y,!0),r.callback(d.href)},N=r.disposables.add(new L_(b,ls.CLICK)).event,L=r.disposables.add(new L_(b,ls.KEY_DOWN)).event,B=gs.chain(L,Y=>Y.filter(Z=>{let ee=new Jp(Z);return ee.equals(10)||ee.equals(3)}));r.disposables.add(d1.addTarget(b));let F=r.disposables.add(new L_(b,pg.Tap)).event;gs.any(N,F,B)(w,null,r.disposables),e.appendChild(b)}}var zoi,Ozi,Voi=ti(()=>{nc();n$();xc();lA();FR();qfe();Mft();i2i();oOt();ya();zoi={},Ozi=new pLe("quick-input-button-icon-")});var Mzi,r2i,o2i,s2i,a2i,Hoi,c2i,l2i,u2i,d2i,aOt,g_t,MUe,cOt,lOt,uOt=ti(()=>{nc();lA();OUe();sd();Ud();uy();xc();co();X_();zfe();bv();oOt();ya();a8();Voi();_y();Jfe();a8();hd();Mzi=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},r2i=function(l,e){return function(r,o){e(r,o,l)}},o2i="inQuickInput",s2i=new va(o2i,!1,ce("inQuickInput","Whether keyboard focus is inside the quick input control")),a2i=Ao.has(o2i),Hoi="quickInputType",c2i=new va(Hoi,void 0,ce("quickInputType","The type of the currently visible quick input")),l2i="cursorAtEndOfQuickInputBox",u2i=new va(l2i,!1,ce("cursorAtEndOfQuickInputBox","Whether the cursor in the quick input is at the end of the input box")),d2i=Ao.has(l2i),aOt={iconClass:sl.asClassName(_s.quickInputBack),tooltip:ce("quickInput.back","Back"),handle:-1},g_t=class l extends tn{constructor(e){super(),this.ui=e,this._widgetUpdated=!1,this.visible=!1,this._enabled=!0,this._busy=!1,this._ignoreFocusOut=!1,this._buttons=[],this.buttonsUpdated=!1,this._toggles=[],this.togglesUpdated=!1,this.noValidationMessage=l.noPromptMessage,this._severity=_1.Ignore,this.onDidTriggerButtonEmitter=this._register(new wn),this.onDidHideEmitter=this._register(new wn),this.onWillHideEmitter=this._register(new wn),this.onDisposeEmitter=this._register(new wn),this.visibleDisposables=this._register(new Fr),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){let r=this._ignoreFocusOut!==e&&!b6;this._ignoreFocusOut=e&&!b6,r&&this.update()}get buttons(){return this._buttons}set buttons(e){this._buttons=e,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=>{this.buttons.indexOf(e)!==-1&&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=_xe.Other){this.visible=!1,this.visibleDisposables.clear(),this.onDidHideEmitter.fire({reason:e})}willHide(e=_xe.Other){this.onWillHideEmitter.fire({reason:e})}update(){var e,r;if(!this.visible)return;let o=this.getTitle();o&&this.ui.title.textContent!==o?this.ui.title.textContent=o:!o&&this.ui.title.innerHTML!==" "&&(this.ui.title.innerText="\xA0");let c=this.getDescription();if(this.ui.description1.textContent!==c&&(this.ui.description1.textContent=c),this.ui.description2.textContent!==c&&(this.ui.description2.textContent=c),this._widgetUpdated&&(this._widgetUpdated=!1,this._widget?IS(this.ui.widget,this._widget):IS(this.ui.widget)),this.busy&&!this.busyDelay&&(this.busyDelay=new ET,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();let h=this.buttons.filter(w=>w===aOt).map((w,N)=>FUe(w,`id-${N}`,async()=>this.onDidTriggerButtonEmitter.fire(w)));this.ui.leftActionBar.push(h,{icon:!0,label:!1}),this.ui.rightActionBar.clear();let b=this.buttons.filter(w=>w!==aOt).map((w,N)=>FUe(w,`id-${N}`,async()=>this.onDidTriggerButtonEmitter.fire(w)));this.ui.rightActionBar.push(b,{icon:!0,label:!1})}if(this.togglesUpdated){this.togglesUpdated=!1;let h=(r=(e=this.toggles)===null||e===void 0?void 0:e.filter(b=>b instanceof HV))!==null&&r!==void 0?r:[];this.ui.inputBox.toggles=h}this.ui.ignoreFocusOut=this.ignoreFocusOut,this.ui.setEnabled(this.enabled),this.ui.setContextKey(this.contextKey);let d=this.validationMessage||this.noValidationMessage;this._lastValidationMessage!==d&&(this._lastValidationMessage=d,IS(this.ui.message),n2i(d,this.ui.message,{callback:h=>{this.ui.linkOpenerDelegate(h)},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?ce("quickInput.steps","{0}/{1}",this.step,this.totalSteps):this.step?String(this.step):""}showMessageDecoration(e){if(this.ui.inputBox.showDecoration(e),e!==_1.Ignore){let r=this.ui.inputBox.stylesForType(e);this.ui.message.style.color=r.foreground?`${r.foreground}`:"",this.ui.message.style.backgroundColor=r.background?`${r.background}`:"",this.ui.message.style.border=r.border?`1px solid ${r.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()}};g_t.noPromptMessage=ce("inputModeEntry","Press 'Enter' to confirm your input or 'Escape' to cancel");MUe=class l extends g_t{constructor(){super(...arguments),this._value="",this.onDidChangeValueEmitter=this._register(new wn),this.onWillAcceptEmitter=this._register(new wn),this.onDidAcceptEmitter=this._register(new wn),this.onDidCustomEmitter=this._register(new wn),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=BB.FIRST,this._activeItems=[],this.activeItemsUpdated=!1,this.activeItemsToConfirm=[],this.onDidChangeActiveEmitter=this._register(new wn),this._selectedItems=[],this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=[],this.onDidChangeSelectionEmitter=this._register(new wn),this.onDidTriggerItemButtonEmitter=this._register(new wn),this.onDidTriggerSeparatorButtonEmitter=this._register(new wn),this.valueSelectionUpdated=!0,this._ok="default",this._customButton=!1,this._focusEventBufferer=new Dne,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}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,r){this._value!==e&&(this._value=e,r||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?YTi:this.ui.keyMods}get valueSelection(){let e=this.ui.inputBox.getSelection();if(e)return[e.start,e.end]}set valueSelection(e){this._valueSelection=e,this.valueSelectionUpdated=!0,this.update()}get customButton(){return this._customButton}set customButton(e){this._customButton=e,this.update()}get customLabel(){return this._customButtonLabel}set customLabel(e){this._customButtonLabel=e,this.update()}get customHover(){return this._customButtonHover}set customHover(e){this._customButtonHover=e,this.update()}get 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(Cv.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,r)=>r)(e=>{this.activeItemsUpdated||this.activeItemsToConfirm!==this._activeItems&&Jm(e,this._activeItems,(r,o)=>r===o)||(this._activeItems=e,this.onDidChangeActiveEmitter.fire(e))})),this.visibleDisposables.add(this.ui.list.onDidChangeSelection(({items:e,event:r})=>{if(this.canSelectMany){e.length&&this.ui.list.setSelectedElements([]);return}this.selectedItemsToConfirm!==this._selectedItems&&Jm(e,this._selectedItems,(o,c)=>o===c)||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e),e.length&&this.handleAccept(mVe(r)&&r.button===1))})),this.visibleDisposables.add(this.ui.list.onChangedCheckedElements(e=>{this.canSelectMany&&(this.selectedItemsToConfirm!==this._selectedItems&&Jm(e,this._selectedItems,(r,o)=>r===o)||(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 r=!1;this.onWillAcceptEmitter.fire({veto:()=>r=!0}),r||this.onDidAcceptEmitter.fire({inBackground:e})}registerQuickNavigation(){return Jr(this.ui.container,ls.KEY_UP,e=>{if(this.canSelectMany||!this._quickNavigate)return;let r=new Jp(e),o=r.keyCode;this._quickNavigate.keybindings.some(h=>{let b=h.getChords();return b.length>1?!1:b[0].shiftKey&&o===4?!(r.ctrlKey||r.altKey||r.metaKey):!!(b[0].altKey&&o===6||b[0].ctrlKey&&o===5||b[0].metaKey&&o===57)})&&(this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!1)),this._quickNavigate=void 0)})}update(){if(!this.visible)return;let e=this.keepScrollPosition?this.scrollTop:0,r=!!this.description,o={title:!!this.title||!!this.step||!!this.buttons.length,description:r,checkAll:this.canSelectMany&&!this._hideCheckAll,checkBox:this.canSelectMany,inputBox:!this._hideInput,progressBar:!this._hideInput||r,visibleCount:!0,count:this.canSelectMany&&!this._hideCountBadge,ok:this.ok==="default"?this.canSelectMany:this.ok,list:!0,message:!!this.validationMessage,customButton:this.customButton};this.ui.setVisibilities(o),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 c=this.ariaLabel;!c&&o.inputBox&&(c=this.placeholder||l.DEFAULT_ARIA_LABEL,this.title&&(c+=` - ${this.title}`)),this.ui.list.ariaLabel!==c&&(this.ui.list.ariaLabel=c??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.ui.checkAll.checked=this.ui.list.getAllVisibleChecked(),this.ui.visibleCount.setCount(this.ui.list.getVisibleCount()),this.ui.count.setCount(this.ui.list.getCheckedCount()),this._itemActivation){case BB.NONE:this._itemActivation=BB.FIRST;break;case BB.SECOND:this.ui.list.focus(Cv.Second),this._itemActivation=BB.FIRST;break;case BB.LAST:this.ui.list.focus(Cv.Last),this._itemActivation=BB.FIRST;break;default:this.trySelectFirst();break}})),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||"",o.inputBox||(this.ui.list.domFocus(),this.canSelectMany&&this.ui.list.focus(Cv.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))}};MUe.DEFAULT_ARIA_LABEL=ce("quickInputBox.ariaLabel","Type to narrow down results.");cOt=class extends g_t{constructor(){super(...arguments),this._value="",this.valueSelectionUpdated=!0,this._password=!1,this.onDidValueChangeEmitter=this._register(new wn),this.onDidAcceptEmitter=this._register(new wn),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");let e={title:!!this.title||!!this.step||!!this.buttons.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)}},lOt=class extends Sre{constructor(e,r){super("element",!1,o=>this.getOverrideOptions(o),e,r)}getOverrideOptions(e){var r;let o=(Wv(e.content)?(r=e.content.textContent)!==null&&r!==void 0?r:"":typeof e.content=="string"?e.content:e.content.value).includes(` +`);return{persistence:{hideOnKeyDown:!1},appearance:{showHoverHint:o,skipFadeInAnimation:!0}}}};lOt=Mzi([r2i(0,_u),r2i(1,t8)],lOt)});var f2i=ti(()=>{});var _Rn,o_e,dOt=ti(()=>{nc();YIt();lA();jft();FR();JI();qfe();rx();xc();d3();co();bv();f2i();RV();_Rn={buttonBackground:"#0E639C",buttonHoverBackground:"#006BB3",buttonSeparator:po.white.toString(),buttonForeground:po.white.toString(),buttonBorder:void 0,buttonSecondaryBackground:void 0,buttonSecondaryForeground:void 0,buttonSecondaryHoverBackground:void 0},o_e=class extends tn{get onDidClick(){return this._onDidClick.event}constructor(e,r){super(),this._label="",this._onDidClick=this._register(new wn),this._onDidEscape=this._register(new wn),this.options=r,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",!!r.secondary);let o=r.secondary?r.buttonSecondaryBackground:r.buttonBackground,c=r.secondary?r.buttonSecondaryForeground:r.buttonForeground;this._element.style.color=c||"",this._element.style.backgroundColor=o||"",r.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")),typeof r.title=="string"&&this.setTitle(r.title),typeof r.ariaLabel=="string"&&this._element.setAttribute("aria-label",r.ariaLabel),e.appendChild(this._element),this._register(d1.addTarget(this._element)),[ls.CLICK,pg.Tap].forEach(d=>{this._register(Jr(this._element,d,h=>{if(!this.enabled){D_.stop(h);return}this._onDidClick.fire(h)}))}),this._register(Jr(this._element,ls.KEY_DOWN,d=>{let h=new Jp(d),b=!1;this.enabled&&(h.equals(3)||h.equals(10))?(this._onDidClick.fire(d),b=!0):h.equals(9)&&(this._onDidEscape.fire(d),this._element.blur(),b=!0),b&&D_.stop(h,!0)})),this._register(Jr(this._element,ls.MOUSE_OVER,d=>{this._element.classList.contains("disabled")||this.updateBackground(!0)})),this._register(Jr(this._element,ls.MOUSE_OUT,d=>{this.updateBackground(!1)})),this.focusTracker=this._register(BP(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){let r=[];for(let o of PB(e))if(typeof o=="string"){if(o=o.trim(),o==="")continue;let c=document.createElement("span");c.textContent=o,r.push(c)}else r.push(o);return r}updateBackground(e){let r;this.options.secondary?r=e?this.options.buttonSecondaryHoverBackground:this.options.buttonSecondaryBackground:r=e?this.options.buttonHoverBackground:this.options.buttonBackground,r&&(this._element.style.backgroundColor=r)}get element(){return this._element}set label(e){var r;if(this._label===e||_7(this._label)&&_7(e)&&swi(this._label,e))return;this._element.classList.add("monaco-text-button");let o=this.options.supportShortLabel?this._labelElement:this._element;if(_7(e)){let d=exe(e,{inline:!0});d.dispose();let h=(r=d.element.querySelector("p"))===null||r===void 0?void 0:r.innerHTML;if(h){let b=GIt(h,{ADD_TAGS:["b","i","u","code","span"],ALLOWED_ATTR:["class"],RETURN_TRUSTED_TYPE:!0});o.innerHTML=b}else IS(o)}else this.options.supportIcons?IS(o,...this.getContentElements(e)):o.textContent=e;let c="";typeof this.options.title=="string"?c=this.options.title:this.options.title&&(c=fwi(e)),this.setTitle(c),typeof this.options.ariaLabel=="string"?this._element.setAttribute("aria-label",this.options.ariaLabel):this.options.ariaLabel&&this._element.setAttribute("aria-label",c),this._label=e}get label(){return this._label}set icon(e){this._element.classList.add(...sl.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){var r;!this._hover&&e!==""?this._hover=this._register(qI().setupUpdatableHover((r=this.options.hoverDelegate)!==null&&r!==void 0?r:AS("mouse"),this._element,e)):this._hover&&this._hover.update(e)}}});var _2i=ti(()=>{});var ELe,Uoi=ti(()=>{nc();Mu();_2i();ELe=class{constructor(e,r,o){this.options=r,this.styles=o,this.count=0,this.element=Ro(e,qo(".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(){var e,r;this.element.textContent=uV(this.countFormat,this.count),this.element.title=uV(this.titleFormat,this.count),this.element.style.backgroundColor=(e=this.styles.badgeBackground)!==null&&e!==void 0?e:"",this.element.style.color=(r=this.styles.badgeForeground)!==null&&r!==void 0?r:"",this.styles.badgeBorder&&(this.element.style.border=`1px solid ${this.styles.badgeBorder}`)}}});var p2i=ti(()=>{});var m2i,h2i,Joi,qoi,g2i,y_t,y2i=ti(()=>{nc();Ud();co();p2i();m2i="done",h2i="active",Joi="infinite",qoi="infinite-long-running",g2i="discrete",y_t=class l extends tn{constructor(e,r){super(),this.progressSignal=this._register(new zg),this.workedVal=0,this.showDelayedScheduler=this._register(new p_(()=>BI(this.element),0)),this.longRunningScheduler=this._register(new p_(()=>this.infiniteLongRunning(),l.LONG_RUNNING_INFINITE_THRESHOLD)),this.create(e,r)}create(e,r){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=r?.progressBarBackground||"#0E70C0",this.element.appendChild(this.bit)}off(){this.bit.style.width="inherit",this.bit.style.opacity="1",this.element.classList.remove(h2i,Joi,qoi,g2i),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(m2i),this.element.classList.contains(Joi)?(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(g2i,m2i,qoi),this.element.classList.add(h2i,Joi),this.longRunningScheduler.schedule(),this}infiniteLongRunning(){this.element.classList.add(qoi)}getContainer(){return this.element}};y_t.LONG_RUNNING_INFINITE_THRESHOLD=1e4});var Rzi,Bzi,jzi,RUe,BUe,jUe,$oi=ti(()=>{JI();OUe();uy();ya();Rzi=ce("caseDescription","Match Case"),Bzi=ce("wordsDescription","Match Whole Word"),jzi=ce("regexDescription","Use Regular Expression"),RUe=class extends HV{constructor(e){var r;super({icon:_s.caseSensitive,title:Rzi+e.appendTitle,isChecked:e.isChecked,hoverDelegate:(r=e.hoverDelegate)!==null&&r!==void 0?r:AS("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}},BUe=class extends HV{constructor(e){var r;super({icon:_s.wholeWord,title:Bzi+e.appendTitle,isChecked:e.isChecked,hoverDelegate:(r=e.hoverDelegate)!==null&&r!==void 0?r:AS("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}},jUe=class extends HV{constructor(e){var r;super({icon:_s.regex,title:jzi+e.appendTitle,isChecked:e.isChecked,hoverDelegate:(r=e.hoverDelegate)!==null&&r!==void 0?r:AS("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}});var fOt,v2i=ti(()=>{fOt=class{constructor(e,r=0,o=e.length,c=r-1){this.items=e,this.start=r,this.end=o,this.index=c}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()}}});var _Ot,b2i=ti(()=>{v2i();_Ot=class{constructor(e=[],r=10){this._initialize(e),this._limit=r,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 this._currentPosition()!==0?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 this._navigator.current()===null}has(e){return this._history.has(e)}_onChange(){this._reduceToLimit();let e=this._elements;this._navigator=new fOt(e,0,e.length,e.length)}_reduceToLimit(){let e=this._elements;e.length>this._limit&&this._initialize(e.slice(e.length-this._limit))}_currentPosition(){let e=this._navigator.current();return e?this._elements.indexOf(e):-1}_initialize(e){this._history=new Set;for(let r of e)this._history.add(r)}get _elements(){let e=[];return this._history.forEach(r=>e.push(r)),e}}});var S2i=ti(()=>{});var v_t,Goi,WUe,pOt=ti(()=>{nc();n$();sri();zV();gA();RV();JI();AV();IV();xc();b2i();YL();S2i();ya();v_t=qo,Goi=class extends ew{constructor(e,r,o){var c;super(),this.state="idle",this.maxHeight=Number.POSITIVE_INFINITY,this._onDidChange=this._register(new wn),this.onDidChange=this._onDidChange.event,this._onDidHeightChange=this._register(new wn),this.onDidHeightChange=this._onDidHeightChange.event,this.contextViewProvider=r,this.options=o,this.message=null,this.placeholder=this.options.placeholder||"",this.tooltip=(c=this.options.tooltip)!==null&&c!==void 0?c:this.placeholder||"",this.ariaLabel=this.options.ariaLabel||"",this.options.validationOptions&&(this.validation=this.options.validationOptions.validation),this.element=Ro(e,v_t(".monaco-inputbox.idle"));let d=this.options.flexibleHeight?"textarea":"input",h=Ro(this.element,v_t(".ibwrapper"));if(this.input=Ro(h,v_t(d+".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=typeof this.options.flexibleMaxHeight=="number"?this.options.flexibleMaxHeight:Number.POSITIVE_INFINITY,this.mirror=Ro(h,v_t("div.mirror")),this.mirror.innerText="\xA0",this.scrollableElement=new yHe(this.element,{vertical:1}),this.options.flexibleWidth&&(this.input.setAttribute("wrap","off"),this.mirror.style.whiteSpace="pre",this.mirror.style.wordWrap="initial"),Ro(e,this.scrollableElement.getDomNode()),this._register(this.scrollableElement),this._register(this.scrollableElement.onScroll(N=>this.input.scrollTop=N.scrollTop));let b=this._register(new L_(e.ownerDocument,"selectionchange")),w=gs.filter(b.event,()=>{let N=e.ownerDocument.getSelection();return N?.anchorNode===h});this._register(w(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 Vw(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(qI().setupUpdatableHover(AS("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 typeof this.cachedHeight=="number"?this.cachedHeight:hV(this.element)}focus(){this.input.focus()}blur(){this.input.blur()}hasFocus(){return G4e(this.input)}select(e=null){this.input.select(),e&&(this.input.setSelectionRange(e.start,e.end),e.end===this.input.value.length&&(this.input.scrollLeft=this.input.scrollWidth))}isSelectionAtEnd(){return this.input.selectionEnd===this.input.value.length&&this.input.selectionStart===this.input.selectionEnd}getSelection(){var e;let r=this.input.selectionStart;if(r===null)return null;let o=(e=this.input.selectionEnd)!==null&&e!==void 0?e:r;return{start:r,end:o}}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(typeof this.cachedContentHeight!="number"||typeof this.cachedHeight!="number"||!this.scrollableElement)return;let e=this.cachedContentHeight,r=this.cachedHeight,o=this.input.scrollTop;this.scrollableElement.setScrollDimensions({scrollHeight:e,height:r}),this.scrollableElement.setScrollPosition({scrollTop:o})}showMessage(e,r){if(this.state==="open"&&FI(this.message,e))return;this.message=e,this.element.classList.remove("idle"),this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add(this.classForType(e.type));let o=this.stylesForType(this.message.type);this.element.style.border=`1px solid ${gV(o.border,"transparent")}`,this.message.content&&(this.hasFocus()||r)&&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){let r=this.options.inputBoxStyles;switch(e){case 1:return{border:r.inputValidationInfoBorder,background:r.inputValidationInfoBackground,foreground:r.inputValidationInfoForeground};case 2:return{border:r.inputValidationWarningBorder,background:r.inputValidationWarningBackground,foreground:r.inputValidationWarningForeground};default:return{border:r.inputValidationErrorBorder,background:r.inputValidationErrorBackground,foreground:r.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,r=()=>e.style.width=dA(this.element)+"px";this.contextViewProvider.showContextView({getAnchor:()=>this.element,anchorAlignment:1,render:c=>{var d,h;if(!this.message)return null;e=Ro(c,v_t(".monaco-inputbox-container")),r();let b={inline:!0,className:"monaco-inputbox-message"},w=this.message.formatContent?Mki(this.message.content,b):Fki(this.message.content,b);w.classList.add(this.classForType(this.message.type));let N=this.stylesForType(this.message.type);return w.style.backgroundColor=(d=N.background)!==null&&d!==void 0?d:"",w.style.color=(h=N.foreground)!==null&&h!==void 0?h:"",w.style.border=N.border?`1px solid ${N.border}`:"",Ro(e,w),null},onHide:()=>{this.state="closed"},layout:r});let o;this.message.type===3?o=ce("alertErrorMessage","Error: {0}",this.message.content):this.message.type===2?o=ce("alertWarningMessage","Warning: {0}",this.message.content):o=ce("alertInfoMessage","Info: {0}",this.message.content),Zk(o),this.state="open"}_hideMessage(){this.contextViewProvider&&(this.state==="open"&&this.contextViewProvider.hideContextView(),this.state="idle")}onValueChange(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),this.input.classList.toggle("empty",!this.value),this.state==="open"&&this.contextViewProvider&&this.contextViewProvider.layout()}updateMirror(){if(!this.mirror)return;let e=this.value,o=e.charCodeAt(e.length-1)===10?" ":"";(e+o).replace(/\u000c/g,"")?this.mirror.textContent=e+o:this.mirror.innerText="\xA0",this.layout()}applyStyles(){var e,r,o;let c=this.options.inputBoxStyles,d=(e=c.inputBackground)!==null&&e!==void 0?e:"",h=(r=c.inputForeground)!==null&&r!==void 0?r:"",b=(o=c.inputBorder)!==null&&o!==void 0?o:"";this.element.style.backgroundColor=d,this.element.style.color=h,this.input.style.backgroundColor="inherit",this.input.style.color=h,this.element.style.border=`1px solid ${gV(b,"transparent")}`}layout(){if(!this.mirror)return;let e=this.cachedContentHeight;this.cachedContentHeight=hV(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){let r=this.inputElement,o=r.selectionStart,c=r.selectionEnd,d=r.value;o!==null&&c!==null&&(this.value=d.substr(0,o)+e+d.substr(c),r.setSelectionRange(o+1,o+1),this.layout())}dispose(){var e;this._hideMessage(),this.message=null,(e=this.actionbar)===null||e===void 0||e.dispose(),super.dispose()}},WUe=class extends Goi{constructor(e,r,o){let c=ce({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"),d=ce({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,r,o),this._onDidFocus=this._register(new wn),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new wn),this.onDidBlur=this._onDidBlur.event,this.history=new _Ot(o.history,100);let h=()=>{if(o.showHistoryHint&&o.showHistoryHint()&&!this.placeholder.endsWith(c)&&!this.placeholder.endsWith(d)&&this.history.getHistory().length){let b=this.placeholder.endsWith(")")?c:d,w=this.placeholder+b;o.showPlaceholderOnFocus&&!G4e(this.input)?this.placeholder=w:this.setPlaceHolder(w)}};this.observer=new MutationObserver((b,w)=>{b.forEach(N=>{N.target.textContent||h()})}),this.observer.observe(this.input,{attributeFilter:["class"]}),this.onfocus(this.input,()=>h()),this.onblur(this.input,()=>{let b=w=>{if(this.placeholder.endsWith(w)){let N=this.placeholder.slice(0,this.placeholder.length-w.length);return o.showPlaceholderOnFocus?this.placeholder=N:this.setPlaceHolder(N),!0}else return!1};b(d)||b(c)})}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??"",c3(this.value?this.value:ce("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,c3(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()}}});var Koi=ti(()=>{});var Wzi,DLe,mOt=ti(()=>{nc();$oi();pOt();IV();xc();Koi();ya();co();JI();Wzi=ce("defaultLabel","input"),DLe=class extends ew{constructor(e,r,o){super(),this.fixFocusOnOptionClickEnabled=!0,this.imeSessionInProgress=!1,this.additionalTogglesDisposables=this._register(new zg),this.additionalToggles=[],this._onDidOptionChange=this._register(new wn),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new wn),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new wn),this.onMouseDown=this._onMouseDown.event,this._onInput=this._register(new wn),this._onKeyUp=this._register(new wn),this._onCaseSensitiveKeyDown=this._register(new wn),this.onCaseSensitiveKeyDown=this._onCaseSensitiveKeyDown.event,this._onRegexKeyDown=this._register(new wn),this.onRegexKeyDown=this._onRegexKeyDown.event,this._lastHighlightFindOptions=0,this.placeholder=o.placeholder||"",this.validation=o.validation,this.label=o.label||Wzi,this.showCommonFindToggles=!!o.showCommonFindToggles;let c=o.appendCaseSensitiveLabel||"",d=o.appendWholeWordsLabel||"",h=o.appendRegexLabel||"",b=o.history||[],w=!!o.flexibleHeight,N=!!o.flexibleWidth,L=o.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new WUe(this.domNode,r,{placeholder:this.placeholder||"",ariaLabel:this.label||"",validationOptions:{validation:this.validation},history:b,showHistoryHint:o.showHistoryHint,flexibleHeight:w,flexibleWidth:N,flexibleMaxHeight:L,inputBoxStyles:o.inputBoxStyles}));let B=this._register(d$());if(this.showCommonFindToggles){this.regex=this._register(new jUe({appendTitle:h,isChecked:!1,hoverDelegate:B,...o.toggleStyles})),this._register(this.regex.onChange(Y=>{this._onDidOptionChange.fire(Y),!Y&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.regex.onKeyDown(Y=>{this._onRegexKeyDown.fire(Y)})),this.wholeWords=this._register(new BUe({appendTitle:d,isChecked:!1,hoverDelegate:B,...o.toggleStyles})),this._register(this.wholeWords.onChange(Y=>{this._onDidOptionChange.fire(Y),!Y&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this.caseSensitive=this._register(new RUe({appendTitle:c,isChecked:!1,hoverDelegate:B,...o.toggleStyles})),this._register(this.caseSensitive.onChange(Y=>{this._onDidOptionChange.fire(Y),!Y&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.caseSensitive.onKeyDown(Y=>{this._onCaseSensitiveKeyDown.fire(Y)}));let F=[this.caseSensitive.domNode,this.wholeWords.domNode,this.regex.domNode];this.onkeydown(this.domNode,Y=>{if(Y.equals(15)||Y.equals(17)||Y.equals(9)){let Z=F.indexOf(this.domNode.ownerDocument.activeElement);if(Z>=0){let ee=-1;Y.equals(17)?ee=(Z+1)%F.length:Y.equals(15)&&(Z===0?ee=F.length-1:ee=Z-1),Y.equals(9)?(F[Z].blur(),this.inputBox.focus()):ee>=0&&F[ee].focus(),D_.stop(Y,!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(o?.additionalToggles),this.controls&&this.domNode.appendChild(this.controls),e?.appendChild(this.domNode),this._register(Jr(this.inputBox.inputElement,"compositionstart",F=>{this.imeSessionInProgress=!0})),this._register(Jr(this.inputBox.inputElement,"compositionend",F=>{this.imeSessionInProgress=!1,this._onInput.fire()})),this.onkeydown(this.inputBox.inputElement,F=>this._onKeyDown.fire(F)),this.onkeyup(this.inputBox.inputElement,F=>this._onKeyUp.fire(F)),this.oninput(this.inputBox.inputElement,F=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,F=>this._onMouseDown.fire(F))}get onDidChange(){return this.inputBox.onDidChange}layout(e){this.inputBox.layout(),this.updateInputBoxPadding(e.collapsedFindWidget)}enable(){var e,r,o;this.domNode.classList.remove("disabled"),this.inputBox.enable(),(e=this.regex)===null||e===void 0||e.enable(),(r=this.wholeWords)===null||r===void 0||r.enable(),(o=this.caseSensitive)===null||o===void 0||o.enable();for(let c of this.additionalToggles)c.enable()}disable(){var e,r,o;this.domNode.classList.add("disabled"),this.inputBox.disable(),(e=this.regex)===null||e===void 0||e.disable(),(r=this.wholeWords)===null||r===void 0||r.disable(),(o=this.caseSensitive)===null||o===void 0||o.disable();for(let c of this.additionalToggles)c.disable()}setFocusInputOnOptionClick(e){this.fixFocusOnOptionClickEnabled=e}setEnabled(e){e?this.enable():this.disable()}setAdditionalToggles(e){for(let r of this.additionalToggles)r.domNode.remove();this.additionalToggles=[],this.additionalTogglesDisposables.value=new Fr;for(let r of e??[])this.additionalTogglesDisposables.value.add(r),this.controls.appendChild(r.domNode),this.additionalTogglesDisposables.value.add(r.onChange(o=>{this._onDidOptionChange.fire(o),!o&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus()})),this.additionalToggles.push(r);this.additionalToggles.length>0&&(this.controls.style.display=""),this.updateInputBoxPadding()}updateInputBoxPadding(e=!1){var r,o,c,d,h,b;e?this.inputBox.paddingRight=0:this.inputBox.paddingRight=((o=(r=this.caseSensitive)===null||r===void 0?void 0:r.width())!==null&&o!==void 0?o:0)+((d=(c=this.wholeWords)===null||c===void 0?void 0:c.width())!==null&&d!==void 0?d:0)+((b=(h=this.regex)===null||h===void 0?void 0:h.width())!==null&&b!==void 0?b:0)+this.additionalToggles.reduce((w,N)=>w+N.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(){var e,r;return(r=(e=this.caseSensitive)===null||e===void 0?void 0:e.checked)!==null&&r!==void 0?r:!1}setCaseSensitive(e){this.caseSensitive&&(this.caseSensitive.checked=e)}getWholeWords(){var e,r;return(r=(e=this.wholeWords)===null||e===void 0?void 0:e.checked)!==null&&r!==void 0?r:!1}setWholeWords(e){this.wholeWords&&(this.wholeWords.checked=e)}getRegex(){var e,r;return(r=(e=this.regex)===null||e===void 0?void 0:e.checked)!==null&&r!==void 0?r:!1}setRegex(e){this.regex&&(this.regex.checked=e,this.validate())}focusOnCaseSensitive(){var e;(e=this.caseSensitive)===null||e===void 0||e.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()}}});var zzi,hOt,x2i=ti(()=>{nc();mOt();co();zfe();oOt();zzi=qo,hOt=class extends tn{constructor(e,r,o){super(),this.parent=e,this.onKeyDown=d=>qh(this.findInput.inputBox.inputElement,ls.KEY_DOWN,d),this.onDidChange=d=>this.findInput.onDidChange(d),this.container=Ro(this.parent,zzi(".quick-input-box")),this.findInput=this._register(new DLe(this.container,void 0,{label:"",inputBoxStyles:r,toggleStyles:o}));let c=this.findInput.inputBox.inputElement;c.role="combobox",c.ariaHasPopup="menu",c.ariaAutoComplete="list",c.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 this.findInput.inputBox.inputElement.type==="password"}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,r){this.findInput.inputBox.inputElement.setAttribute(e,r)}showDecoration(e){e===_1.Ignore?this.findInput.clearMessage():this.findInput.showMessage({type:e===_1.Info?1:e===_1.Warning?2:3,content:""})}stylesForType(e){return this.findInput.inputBox.stylesForType(e===_1.Info?1:e===_1.Warning?2:3)}setFocus(){this.findInput.focus()}layout(){this.findInput.inputBox.layout()}}});function Vzi(l,e){return{...e,accessibilityProvider:e.accessibilityProvider&&new Yoi(l,e.accessibilityProvider)}}var Xoi,Yoi,gOt,C2i=ti(()=>{sd();Sh();xc();co();Kri();t_e();Xoi=class{get templateId(){return this.renderer.templateId}constructor(e,r){this.renderer=e,this.modelProvider=r}renderTemplate(e){return{data:this.renderer.renderTemplate(e),disposable:tn.None}}renderElement(e,r,o,c){var d;if((d=o.disposable)===null||d===void 0||d.dispose(),!o.data)return;let h=this.modelProvider();if(h.isResolved(e))return this.renderer.renderElement(h.get(e),e,o.data,c);let b=new Up,w=h.resolve(e,b.token);o.disposable={dispose:()=>b.cancel()},this.renderer.renderPlaceholder(e,o.data),w.then(N=>this.renderer.renderElement(N,e,o.data,c))}disposeTemplate(e){e.disposable&&(e.disposable.dispose(),e.disposable=void 0),e.data&&(this.renderer.disposeTemplate(e.data),e.data=void 0)}},Yoi=class{constructor(e,r){this.modelProvider=e,this.accessibilityProvider=r}getWidgetAriaLabel(){return this.accessibilityProvider.getWidgetAriaLabel()}getAriaLabel(e){let r=this.modelProvider();return r.isResolved(e)?this.accessibilityProvider.getAriaLabel(r.get(e)):null}};gOt=class{constructor(e,r,o,c,d={}){let h=()=>this.model,b=c.map(w=>new Xoi(w,h));this.list=new TE(e,r,o,b,Vzi(h,d))}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 gs.map(this.list.onMouseDblClick,({element:e,index:r,browserEvent:o})=>({element:e===void 0?void 0:this._model.get(e),index:r,browserEvent:o}))}get onPointer(){return gs.map(this.list.onPointer,({element:e,index:r,browserEvent:o})=>({element:e===void 0?void 0:this._model.get(e),index:r,browserEvent:o}))}get onDidChangeSelection(){return gs.map(this.list.onDidChangeSelection,({elements:e,indexes:r,browserEvent:o})=>({elements:e.map(c=>this._model.get(c)),indexes:r,browserEvent:o}))}get model(){return this._model}set model(e){this._model=e,this.list.splice(0,this.list.length,FP(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 k2i=ti(()=>{});var VUe,Hzi,b_t,Uzi,Jzi,qzi,$zi,S_t,x_t,zUe,w2i,h7,HUe=ti(()=>{nc();n$();FR();Ud();DSe();xc();co();X_();k2i();VUe=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},Hzi=!1;(function(l){l.North="north",l.South="south",l.East="east",l.West="west"})(b_t||(b_t={}));Uzi=4,Jzi=new wn,qzi=300,$zi=new wn,S_t=class{constructor(e){this.el=e,this.disposables=new Fr}get onPointerMove(){return this.disposables.add(new L_(Gc(this.el),"mousemove")).event}get onPointerUp(){return this.disposables.add(new L_(Gc(this.el),"mouseup")).event}dispose(){this.disposables.dispose()}};VUe([G1],S_t.prototype,"onPointerMove",null);VUe([G1],S_t.prototype,"onPointerUp",null);x_t=class{get onPointerMove(){return this.disposables.add(new L_(this.el,pg.Change)).event}get onPointerUp(){return this.disposables.add(new L_(this.el,pg.End)).event}constructor(e){this.el=e,this.disposables=new Fr}dispose(){this.disposables.dispose()}};VUe([G1],x_t.prototype,"onPointerMove",null);VUe([G1],x_t.prototype,"onPointerUp",null);zUe=class{get onPointerMove(){return this.factory.onPointerMove}get onPointerUp(){return this.factory.onPointerUp}constructor(e){this.factory=e}dispose(){}};VUe([G1],zUe.prototype,"onPointerMove",null);VUe([G1],zUe.prototype,"onPointerUp",null);w2i="pointer-events-disabled",h7=class l extends tn{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",e===0),this.el.classList.toggle("minimum",e===1),this.el.classList.toggle("maximum",e===2),this._state=e,this.onDidEnablementChange.fire(e))}set orthogonalStartSash(e){if(this._orthogonalStartSash!==e){if(this.orthogonalStartDragHandleDisposables.clear(),this.orthogonalStartSashDisposables.clear(),e){let r=o=>{this.orthogonalStartDragHandleDisposables.clear(),o!==0&&(this._orthogonalStartDragHandle=Ro(this.el,qo(".orthogonal-drag-handle.start")),this.orthogonalStartDragHandleDisposables.add(Ma(()=>this._orthogonalStartDragHandle.remove())),this.orthogonalStartDragHandleDisposables.add(new L_(this._orthogonalStartDragHandle,"mouseenter")).event(()=>l.onMouseEnter(e),void 0,this.orthogonalStartDragHandleDisposables),this.orthogonalStartDragHandleDisposables.add(new L_(this._orthogonalStartDragHandle,"mouseleave")).event(()=>l.onMouseLeave(e),void 0,this.orthogonalStartDragHandleDisposables))};this.orthogonalStartSashDisposables.add(e.onDidEnablementChange.event(r,this)),r(e.state)}this._orthogonalStartSash=e}}set orthogonalEndSash(e){if(this._orthogonalEndSash!==e){if(this.orthogonalEndDragHandleDisposables.clear(),this.orthogonalEndSashDisposables.clear(),e){let r=o=>{this.orthogonalEndDragHandleDisposables.clear(),o!==0&&(this._orthogonalEndDragHandle=Ro(this.el,qo(".orthogonal-drag-handle.end")),this.orthogonalEndDragHandleDisposables.add(Ma(()=>this._orthogonalEndDragHandle.remove())),this.orthogonalEndDragHandleDisposables.add(new L_(this._orthogonalEndDragHandle,"mouseenter")).event(()=>l.onMouseEnter(e),void 0,this.orthogonalEndDragHandleDisposables),this.orthogonalEndDragHandleDisposables.add(new L_(this._orthogonalEndDragHandle,"mouseleave")).event(()=>l.onMouseLeave(e),void 0,this.orthogonalEndDragHandleDisposables))};this.orthogonalEndSashDisposables.add(e.onDidEnablementChange.event(r,this)),r(e.state)}this._orthogonalEndSash=e}}constructor(e,r,o){super(),this.hoverDelay=qzi,this.hoverDelayer=this._register(new vE(this.hoverDelay)),this._state=3,this.onDidEnablementChange=this._register(new wn),this._onDidStart=this._register(new wn),this._onDidChange=this._register(new wn),this._onDidReset=this._register(new wn),this._onDidEnd=this._register(new wn),this.orthogonalStartSashDisposables=this._register(new Fr),this.orthogonalStartDragHandleDisposables=this._register(new Fr),this.orthogonalEndSashDisposables=this._register(new Fr),this.orthogonalEndDragHandleDisposables=this._register(new Fr),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=Ro(e,qo(".monaco-sash")),o.orthogonalEdge&&this.el.classList.add(`orthogonal-edge-${o.orthogonalEdge}`),md&&this.el.classList.add("mac");let c=this._register(new L_(this.el,"mousedown")).event;this._register(c(B=>this.onPointerStart(B,new S_t(e)),this));let d=this._register(new L_(this.el,"dblclick")).event;this._register(d(this.onPointerDoublePress,this));let h=this._register(new L_(this.el,"mouseenter")).event;this._register(h(()=>l.onMouseEnter(this)));let b=this._register(new L_(this.el,"mouseleave")).event;this._register(b(()=>l.onMouseLeave(this))),this._register(d1.addTarget(this.el));let w=this._register(new L_(this.el,pg.Start)).event;this._register(w(B=>this.onPointerStart(B,new x_t(this.el)),this));let N=this._register(new L_(this.el,pg.Tap)).event,L;this._register(N(B=>{if(L){clearTimeout(L),L=void 0,this.onPointerDoublePress(B);return}clearTimeout(L),L=setTimeout(()=>L=void 0,250)},this)),typeof o.size=="number"?(this.size=o.size,o.orientation===0?this.el.style.width=`${this.size}px`:this.el.style.height=`${this.size}px`):(this.size=Uzi,this._register(Jzi.event(B=>{this.size=B,this.layout()}))),this._register($zi.event(B=>this.hoverDelay=B)),this.layoutProvider=r,this.orthogonalStartSash=o.orthogonalStartSash,this.orthogonalEndSash=o.orthogonalEndSash,this.orientation=o.orientation||0,this.orientation===1?(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",Hzi),this.layout()}onPointerStart(e,r){D_.stop(e);let o=!1;if(!e.__orthogonalSashEvent){let Z=this.getOrthogonalSash(e);Z&&(o=!0,e.__orthogonalSashEvent=!0,Z.onPointerStart(e,new zUe(r)))}if(this.linkedSash&&!e.__linkedSashEvent&&(e.__linkedSashEvent=!0,this.linkedSash.onPointerStart(e,new zUe(r))),!this.state)return;let c=this.el.ownerDocument.getElementsByTagName("iframe");for(let Z of c)Z.classList.add(w2i);let d=e.pageX,h=e.pageY,b=e.altKey,w={startX:d,currentX:d,startY:h,currentY:h,altKey:b};this.el.classList.add("active"),this._onDidStart.fire(w);let N=bE(this.el),L=()=>{let Z="";o?Z="all-scroll":this.orientation===1?this.state===1?Z="s-resize":this.state===2?Z="n-resize":Z=md?"row-resize":"ns-resize":this.state===1?Z="e-resize":this.state===2?Z="w-resize":Z=md?"col-resize":"ew-resize",N.textContent=`* { cursor: ${Z} !important; }`},B=new Fr;L(),o||this.onDidEnablementChange.event(L,null,B);let F=Z=>{D_.stop(Z,!1);let ee={startX:d,currentX:Z.pageX,startY:h,currentY:Z.pageY,altKey:b};this._onDidChange.fire(ee)},Y=Z=>{D_.stop(Z,!1),this.el.removeChild(N),this.el.classList.remove("active"),this._onDidEnd.fire(),B.dispose();for(let ee of c)ee.classList.remove(w2i)};r.onPointerMove(F,null,B),r.onPointerUp(Y,null,B),B.add(r)}onPointerDoublePress(e){let r=this.getOrthogonalSash(e);r&&r._onDidReset.fire(),this.linkedSash&&this.linkedSash._onDidReset.fire(),this._onDidReset.fire()}static onMouseEnter(e,r=!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,()=>{}),!r&&e.linkedSash&&l.onMouseEnter(e.linkedSash,!0)}static onMouseLeave(e,r=!1){e.hoverDelayer.cancel(),e.el.classList.remove("hover"),!r&&e.linkedSash&&l.onMouseLeave(e.linkedSash,!0)}clearSashHoverState(){l.onMouseLeave(this)}layout(){if(this.orientation===0){let e=this.layoutProvider;this.el.style.left=e.getVerticalSashLeft(this)-this.size/2+"px",e.getVerticalSashTop&&(this.el.style.top=e.getVerticalSashTop(this)+"px"),e.getVerticalSashHeight&&(this.el.style.height=e.getVerticalSashHeight(this)+"px")}else{let e=this.layoutProvider;this.el.style.top=e.getHorizontalSashTop(this)-this.size/2+"px",e.getHorizontalSashLeft&&(this.el.style.left=e.getHorizontalSashLeft(this)+"px"),e.getHorizontalSashWidth&&(this.el.style.width=e.getHorizontalSashWidth(this)+"px")}}getOrthogonalSash(e){var r;let o=(r=e.initialTarget)!==null&&r!==void 0?r:e.target;if(!(!o||!Wv(o))&&o.classList.contains("orthogonal-drag-handle"))return o.classList.contains("start")?this.orthogonalStartSash:this.orthogonalEndSash}dispose(){super.dispose(),this.el.remove()}}});var T2i=ti(()=>{});var Gzi,yOt,Qoi,Zoi,s_e,C_t,UUe,esi=ti(()=>{nc();n$();HUe();AV();sd();rx();xc();co();lLe();gHe();Fh();T2i();Gzi={separatorBorder:po.transparent},yOt=class{set size(e){this._size=e}get size(){return this._size}get visible(){return typeof this._cachedVisibleSize>"u"}setVisible(e,r){var o,c;if(e!==this.visible){e?(this.size=WD(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize=typeof r=="number"?r:this.size,this.size=0),this.container.classList.toggle("visible",e);try{(c=(o=this.view).setVisible)===null||c===void 0||c.call(o,e)}catch(d){console.error("Splitview: Failed to set visible view"),console.error(d)}}}get minimumSize(){return this.visible?this.view.minimumSize:0}get viewMinimumSize(){return this.view.minimumSize}get maximumSize(){return this.visible?this.view.maximumSize:0}get viewMaximumSize(){return this.view.maximumSize}get priority(){return this.view.priority}get proportionalLayout(){var e;return(e=this.view.proportionalLayout)!==null&&e!==void 0?e:!0}get snap(){return!!this.view.snap}set enabled(e){this.container.style.pointerEvents=e?"":"none"}constructor(e,r,o,c){this.container=e,this.view=r,this.disposable=c,this._cachedVisibleSize=void 0,typeof o=="number"?(this._size=o,this._cachedVisibleSize=void 0,e.classList.add("visible")):(this._size=0,this._cachedVisibleSize=o.cachedVisibleSize)}layout(e,r){this.layoutContainer(e);try{this.view.layout(this.size,e,r)}catch(o){console.error("Splitview: Failed to layout view"),console.error(o)}}dispose(){this.disposable.dispose()}},Qoi=class extends yOt{layoutContainer(e){this.container.style.top=`${e}px`,this.container.style.height=`${this.size}px`}},Zoi=class extends yOt{layoutContainer(e){this.container.style.left=`${e}px`,this.container.style.width=`${this.size}px`}};(function(l){l[l.Idle=0]="Idle",l[l.Busy=1]="Busy"})(s_e||(s_e={}));(function(l){l.Distribute={type:"distribute"};function e(c){return{type:"split",index:c}}l.Split=e;function r(c){return{type:"auto",index:c}}l.Auto=r;function o(c){return{type:"invisible",cachedVisibleSize:c}}l.Invisible=o})(C_t||(C_t={}));UUe=class extends tn{get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}get startSnappingEnabled(){return this._startSnappingEnabled}get endSnappingEnabled(){return this._endSnappingEnabled}set orthogonalStartSash(e){for(let r of this.sashItems)r.sash.orthogonalStartSash=e;this._orthogonalStartSash=e}set orthogonalEndSash(e){for(let r of this.sashItems)r.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,r={}){var o,c,d,h,b;super(),this.size=0,this._contentSize=0,this.proportions=void 0,this.viewItems=[],this.sashItems=[],this.state=s_e.Idle,this._onDidSashChange=this._register(new wn),this._onDidSashReset=this._register(new wn),this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this.onDidSashChange=this._onDidSashChange.event,this.onDidSashReset=this._onDidSashReset.event,this.orientation=(o=r.orientation)!==null&&o!==void 0?o:0,this.inverseAltBehavior=(c=r.inverseAltBehavior)!==null&&c!==void 0?c:!1,this.proportionalLayout=(d=r.proportionalLayout)!==null&&d!==void 0?d:!0,this.getSashOrthogonalSize=r.getSashOrthogonalSize,this.el=document.createElement("div"),this.el.classList.add("monaco-split-view2"),this.el.classList.add(this.orientation===0?"vertical":"horizontal"),e.appendChild(this.el),this.sashContainer=Ro(this.el,qo(".sash-container")),this.viewContainer=qo(".split-view-container"),this.scrollable=this._register(new NV({forceIntegerValues:!0,smoothScrollDuration:125,scheduleAtNextAnimationFrame:N=>LD(Gc(this.el),N)})),this.scrollableElement=this._register(new ire(this.viewContainer,{vertical:this.orientation===0?(h=r.scrollbarVisibility)!==null&&h!==void 0?h:1:2,horizontal:this.orientation===1?(b=r.scrollbarVisibility)!==null&&b!==void 0?b:1:2},this.scrollable));let w=this._register(new L_(this.viewContainer,"scroll")).event;this._register(w(N=>{let L=this.scrollableElement.getScrollPosition(),B=Math.abs(this.viewContainer.scrollLeft-L.scrollLeft)<=1?void 0:this.viewContainer.scrollLeft,F=Math.abs(this.viewContainer.scrollTop-L.scrollTop)<=1?void 0:this.viewContainer.scrollTop;(B!==void 0||F!==void 0)&&this.scrollableElement.setScrollPosition({scrollLeft:B,scrollTop:F})})),this.onDidScroll=this.scrollableElement.onScroll,this._register(this.onDidScroll(N=>{N.scrollTopChanged&&(this.viewContainer.scrollTop=N.scrollTop),N.scrollLeftChanged&&(this.viewContainer.scrollLeft=N.scrollLeft)})),Ro(this.el,this.scrollableElement.getDomNode()),this.style(r.styles||Gzi),r.descriptor&&(this.size=r.descriptor.size,r.descriptor.views.forEach((N,L)=>{let B=OI(N.visible)||N.visible?N.size:{type:"invisible",cachedVisibleSize:N.size},F=N.view;this.doAddView(F,B,L,!0)}),this._contentSize=this.viewItems.reduce((N,L)=>N+L.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,r,o=this.viewItems.length,c){this.doAddView(e,r,o,c)}layout(e,r){let o=Math.max(this.size,this._contentSize);if(this.size=e,this.layoutContext=r,this.proportions){let c=0;for(let d=0;d0&&(h.size=WD(Math.round(b*e/c),h.minimumSize,h.maximumSize))}}else{let c=FP(this.viewItems.length),d=c.filter(b=>this.viewItems[b].priority===1),h=c.filter(b=>this.viewItems[b].priority===2);this.resize(this.viewItems.length-1,e-o,void 0,d,h)}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:r,alt:o}){for(let b of this.viewItems)b.enabled=!1;let c=this.sashItems.findIndex(b=>b.sash===e),d=cA(Jr(this.el.ownerDocument.body,"keydown",b=>h(this.sashDragState.current,b.altKey)),Jr(this.el.ownerDocument.body,"keyup",()=>h(this.sashDragState.current,!1))),h=(b,w)=>{let N=this.viewItems.map(Z=>Z.size),L=Number.NEGATIVE_INFINITY,B=Number.POSITIVE_INFINITY;if(this.inverseAltBehavior&&(w=!w),w)if(c===this.sashItems.length-1){let ee=this.viewItems[c];L=(ee.minimumSize-ee.size)/2,B=(ee.maximumSize-ee.size)/2}else{let ee=this.viewItems[c+1];L=(ee.size-ee.maximumSize)/2,B=(ee.size-ee.minimumSize)/2}let F,Y;if(!w){let Z=FP(c,-1),ee=FP(c+1,this.viewItems.length),Te=Z.reduce((mi,_n)=>mi+(this.viewItems[_n].minimumSize-N[_n]),0),Je=Z.reduce((mi,_n)=>mi+(this.viewItems[_n].viewMaximumSize-N[_n]),0),Xe=ee.length===0?Number.POSITIVE_INFINITY:ee.reduce((mi,_n)=>mi+(N[_n]-this.viewItems[_n].minimumSize),0),ct=ee.length===0?Number.NEGATIVE_INFINITY:ee.reduce((mi,_n)=>mi+(N[_n]-this.viewItems[_n].viewMaximumSize),0),Ct=Math.max(Te,ct),Nt=Math.min(Xe,Je),Yt=this.findFirstSnapIndex(Z),jt=this.findFirstSnapIndex(ee);if(typeof Yt=="number"){let mi=this.viewItems[Yt],_n=Math.floor(mi.viewMinimumSize/2);F={index:Yt,limitDelta:mi.visible?Ct-_n:Ct+_n,size:mi.size}}if(typeof jt=="number"){let mi=this.viewItems[jt],_n=Math.floor(mi.viewMinimumSize/2);Y={index:jt,limitDelta:mi.visible?Nt+_n:Nt-_n,size:mi.size}}}this.sashDragState={start:b,current:b,index:c,sizes:N,minDelta:L,maxDelta:B,alt:w,snapBefore:F,snapAfter:Y,disposable:d}};h(r,o)}onSashChange({current:e}){let{index:r,start:o,sizes:c,alt:d,minDelta:h,maxDelta:b,snapBefore:w,snapAfter:N}=this.sashDragState;this.sashDragState.current=e;let L=e-o,B=this.resize(r,L,c,void 0,void 0,h,b,w,N);if(d){let F=r===this.sashItems.length-1,Y=this.viewItems.map(ct=>ct.size),Z=F?r:r+1,ee=this.viewItems[Z],Te=ee.size-ee.maximumSize,Je=ee.size-ee.minimumSize,Xe=F?r-1:r+1;this.resize(Xe,-B,Y,void 0,void 0,Te,Je)}this.distributeEmptySpace(),this.layoutViews()}onSashEnd(e){this._onDidSashChange.fire(e),this.sashDragState.disposable.dispose(),this.saveProportions();for(let r of this.viewItems)r.enabled=!0}onViewChange(e,r){let o=this.viewItems.indexOf(e);o<0||o>=this.viewItems.length||(r=typeof r=="number"?r:e.size,r=WD(r,e.minimumSize,e.maximumSize),this.inverseAltBehavior&&o>0?(this.resize(o-1,Math.floor((e.size-r)/2)),this.distributeEmptySpace(),this.layoutViews()):(e.size=r,this.relayout([o],void 0)))}resizeView(e,r){if(!(e<0||e>=this.viewItems.length)){if(this.state!==s_e.Idle)throw new Error("Cant modify splitview");this.state=s_e.Busy;try{let o=FP(this.viewItems.length).filter(b=>b!==e),c=[...o.filter(b=>this.viewItems[b].priority===1),e],d=o.filter(b=>this.viewItems[b].priority===2),h=this.viewItems[e];r=Math.round(r),r=WD(r,h.minimumSize,Math.min(h.maximumSize,this.size)),h.size=r,this.relayout(c,d)}finally{this.state=s_e.Idle}}}distributeViewSizes(){let e=[],r=0;for(let b of this.viewItems)b.maximumSize-b.minimumSize>0&&(e.push(b),r+=b.size);let o=Math.floor(r/e.length);for(let b of e)b.size=WD(o,b.minimumSize,b.maximumSize);let c=FP(this.viewItems.length),d=c.filter(b=>this.viewItems[b].priority===1),h=c.filter(b=>this.viewItems[b].priority===2);this.relayout(d,h)}getViewSize(e){return e<0||e>=this.viewItems.length?-1:this.viewItems[e].size}doAddView(e,r,o=this.viewItems.length,c){if(this.state!==s_e.Idle)throw new Error("Cant modify splitview");this.state=s_e.Busy;try{let d=qo(".split-view-view");o===this.viewItems.length?this.viewContainer.appendChild(d):this.viewContainer.insertBefore(d,this.viewContainer.children.item(o));let h=e.onDidChange(F=>this.onViewChange(L,F)),b=Ma(()=>this.viewContainer.removeChild(d)),w=cA(h,b),N;typeof r=="number"?N=r:(r.type==="auto"&&(this.areViewsDistributed()?r={type:"distribute"}:r={type:"split",index:r.index}),r.type==="split"?N=this.getViewSize(r.index)/2:r.type==="invisible"?N={cachedVisibleSize:r.cachedVisibleSize}:N=e.minimumSize);let L=this.orientation===0?new Qoi(d,e,N,w):new Zoi(d,e,N,w);if(this.viewItems.splice(o,0,L),this.viewItems.length>1){let F={orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash},Y=this.orientation===0?new h7(this.sashContainer,{getHorizontalSashTop:mi=>this.getSashPosition(mi),getHorizontalSashWidth:this.getSashOrthogonalSize},{...F,orientation:1}):new h7(this.sashContainer,{getVerticalSashLeft:mi=>this.getSashPosition(mi),getVerticalSashHeight:this.getSashOrthogonalSize},{...F,orientation:0}),Z=this.orientation===0?mi=>({sash:Y,start:mi.startY,current:mi.currentY,alt:mi.altKey}):mi=>({sash:Y,start:mi.startX,current:mi.currentX,alt:mi.altKey}),Te=gs.map(Y.onDidStart,Z)(this.onSashStart,this),Xe=gs.map(Y.onDidChange,Z)(this.onSashChange,this),Ct=gs.map(Y.onDidEnd,()=>this.sashItems.findIndex(mi=>mi.sash===Y))(this.onSashEnd,this),Nt=Y.onDidReset(()=>{let mi=this.sashItems.findIndex(Tn=>Tn.sash===Y),_n=FP(mi,-1),Pr=FP(mi+1,this.viewItems.length),dr=this.findFirstSnapIndex(_n),Rr=this.findFirstSnapIndex(Pr);typeof dr=="number"&&!this.viewItems[dr].visible||typeof Rr=="number"&&!this.viewItems[Rr].visible||this._onDidSashReset.fire(mi)}),Yt=cA(Te,Xe,Ct,Nt,Y),jt={sash:Y,disposable:Yt};this.sashItems.splice(o-1,0,jt)}d.appendChild(e.element);let B;typeof r!="number"&&r.type==="split"&&(B=[r.index]),c||this.relayout([o],B),!c&&typeof r!="number"&&r.type==="distribute"&&this.distributeViewSizes()}finally{this.state=s_e.Idle}}relayout(e,r){let o=this.viewItems.reduce((c,d)=>c+d.size,0);this.resize(this.viewItems.length-1,this.size-o,void 0,e,r),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}resize(e,r,o=this.viewItems.map(L=>L.size),c,d,h=Number.NEGATIVE_INFINITY,b=Number.POSITIVE_INFINITY,w,N){if(e<0||e>=this.viewItems.length)return 0;let L=FP(e,-1),B=FP(e+1,this.viewItems.length);if(d)for(let jt of d)tDt(L,jt),tDt(B,jt);if(c)for(let jt of c)Blt(L,jt),Blt(B,jt);let F=L.map(jt=>this.viewItems[jt]),Y=L.map(jt=>o[jt]),Z=B.map(jt=>this.viewItems[jt]),ee=B.map(jt=>o[jt]),Te=L.reduce((jt,mi)=>jt+(this.viewItems[mi].minimumSize-o[mi]),0),Je=L.reduce((jt,mi)=>jt+(this.viewItems[mi].maximumSize-o[mi]),0),Xe=B.length===0?Number.POSITIVE_INFINITY:B.reduce((jt,mi)=>jt+(o[mi]-this.viewItems[mi].minimumSize),0),ct=B.length===0?Number.NEGATIVE_INFINITY:B.reduce((jt,mi)=>jt+(o[mi]-this.viewItems[mi].maximumSize),0),Ct=Math.max(Te,ct,h),Nt=Math.min(Xe,Je,b),Yt=!1;if(w){let jt=this.viewItems[w.index],mi=r>=w.limitDelta;Yt=mi!==jt.visible,jt.setVisible(mi,w.size)}if(!Yt&&N){let jt=this.viewItems[N.index],mi=rb+w.size,0),o=this.size-r,c=FP(this.viewItems.length-1,-1),d=c.filter(b=>this.viewItems[b].priority===1),h=c.filter(b=>this.viewItems[b].priority===2);for(let b of h)tDt(c,b);for(let b of d)Blt(c,b);typeof e=="number"&&Blt(c,e);for(let b=0;o!==0&&br+o.size,0);let e=0;for(let r of this.viewItems)r.layout(e,this.layoutContext),e+=r.size;this.sashItems.forEach(r=>r.sash.layout()),this.updateSashEnablement(),this.updateScrollableElement()}updateScrollableElement(){this.orientation===0?this.scrollableElement.setScrollDimensions({height:this.size,scrollHeight:this._contentSize}):this.scrollableElement.setScrollDimensions({width:this.size,scrollWidth:this._contentSize})}updateSashEnablement(){let e=!1,r=this.viewItems.map(w=>e=w.size-w.minimumSize>0||e);e=!1;let o=this.viewItems.map(w=>e=w.maximumSize-w.size>0||e),c=[...this.viewItems].reverse();e=!1;let d=c.map(w=>e=w.size-w.minimumSize>0||e).reverse();e=!1;let h=c.map(w=>e=w.maximumSize-w.size>0||e).reverse(),b=0;for(let w=0;w0||this.startSnappingEnabled)?N.state=1:Xe&&r[w]&&(b0)return;if(!o.visible&&o.snap)return r}}areViewsDistributed(){let e,r;for(let o of this.viewItems)if(e=e===void 0?o.size:Math.min(e,o.size),r=r===void 0?o.size:Math.max(r,o.size),r-e>2)return!1;return!0}dispose(){var e;(e=this.sashDragState)===null||e===void 0||e.disposable.dispose(),Fp(this.viewItems),this.viewItems=[],this.sashItems.forEach(r=>r.disposable.dispose()),this.sashItems=[],super.dispose()}}});var E2i=ti(()=>{});function Kzi(l){return{getHeight(e){return l.getHeight(e)},getTemplateId(){return k_t.TemplateId}}}var k_t,tsi,w_t,D2i=ti(()=>{nc();RV();JI();t_e();esi();xc();co();E2i();k_t=class l{constructor(e,r,o){this.columns=e,this.getColumnSize=o,this.templateId=l.TemplateId,this.renderedTemplates=new Set;let c=new Map(r.map(d=>[d.templateId,d]));this.renderers=[];for(let d of e){let h=c.get(d.templateId);if(!h)throw new Error(`Table cell renderer for template id ${d.templateId} not found.`);this.renderers.push(h)}}renderTemplate(e){let r=Ro(e,qo(".monaco-table-tr")),o=[],c=[];for(let h=0;hthis.disposables.add(new tsi(L,B))),w={size:b.reduce((L,B)=>L+B.column.weight,0),views:b.map(L=>({size:L.column.weight,view:L}))};this.splitview=this.disposables.add(new UUe(this.domNode,{orientation:1,scrollbarVisibility:2,getSashOrthogonalSize:()=>this.cachedHeight,descriptor:w})),this.splitview.el.style.height=`${o.headerRowHeight}px`,this.splitview.el.style.lineHeight=`${o.headerRowHeight}px`;let N=new k_t(c,d,L=>this.splitview.getViewSize(L));this.list=this.disposables.add(new TE(e,this.domNode,Kzi(o),[N],h)),gs.any(...b.map(L=>L.onDidLayout))(([L,B])=>N.layoutColumn(L,B),null,this.disposables),this.splitview.onDidSashReset(L=>{let B=c.reduce((Y,Z)=>Y+Z.weight,0),F=c[L].weight/B*this.cachedWidth;this.splitview.resizeView(L,F)},null,this.disposables),this.styleElement=bE(this.domNode),this.style(vTi)}updateOptions(e){this.list.updateOptions(e)}splice(e,r,o=[]){this.list.splice(e,r,o)}getHTMLElement(){return this.domNode}style(e){let r=[];r.push(`.monaco-table.${this.domId} > .monaco-split-view2 .monaco-sash.vertical::before { + top: ${this.virtualDelegate.headerRowHeight+1}px; + height: calc(100% - ${this.virtualDelegate.headerRowHeight}px); + }`),this.styleElement.textContent=r.join(` +`),this.list.style(e)}getSelectedElements(){return this.list.getSelectedElements()}getSelection(){return this.list.getSelection()}getFocus(){return this.list.getFocus()}dispose(){this.disposables.dispose()}};w_t.InstanceCount=0});var g7,pxe,JP,ILe,JUe=ti(()=>{(function(l){l[l.Expanded=0]="Expanded",l[l.Collapsed=1]="Collapsed",l[l.PreserveOrExpanded=2]="PreserveOrExpanded",l[l.PreserveOrCollapsed=3]="PreserveOrCollapsed"})(g7||(g7={}));(function(l){l[l.Unknown=0]="Unknown",l[l.Twistie=1]="Twistie",l[l.Element=2]="Element",l[l.Filter=3]="Filter"})(pxe||(pxe={}));JP=class extends Error{constructor(e,r){super(`TreeError [${e}] ${r}`)}},ILe=class{constructor(e){this.fn=e,this._map=new WeakMap}map(e){let r=this._map.get(e);return r||(r=this.fn(e),this._map.set(e,r)),r}}});function T_t(l){return typeof l=="object"&&"visibility"in l&&"data"in l}function NLe(l){switch(l){case!0:return 1;case!1:return 0;default:return l}}function isi(l){return typeof l.collapsible=="boolean"}var vOt,bOt=ti(()=>{JUe();sd();Ud();EQt();Hut();xc();QL();vOt=class{constructor(e,r,o,c={}){var d;this.user=e,this.list=r,this.rootRef=[],this.eventBufferer=new Dne,this._onDidChangeCollapseState=new wn,this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new wn,this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new wn,this.onDidSplice=this._onDidSplice.event,this.refilterDelayer=new vE(zIt),this.collapseByDefault=typeof c.collapseByDefault>"u"?!1:c.collapseByDefault,this.allowNonCollapsibleParents=(d=c.allowNonCollapsibleParents)!==null&&d!==void 0?d:!1,this.filter=c.filter,this.autoExpandSingleChildren=typeof c.autoExpandSingleChildren>"u"?!1:c.autoExpandSingleChildren,this.root={parent:void 0,element:o,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visibility:1,visible:!0,filterData:void 0}}splice(e,r,o=S_.empty(),c={}){if(e.length===0)throw new JP(this.user,"Invalid tree location");c.diffIdentityProvider?this.spliceSmart(c.diffIdentityProvider,e,r,o,c):this.spliceSimple(e,r,o,c)}spliceSmart(e,r,o,c,d,h){var b;c===void 0&&(c=S_.empty()),h===void 0&&(h=(b=d.diffDepth)!==null&&b!==void 0?b:0);let{parentNode:w}=this.getParentNodeWithListIndex(r);if(!w.lastDiffIds)return this.spliceSimple(r,o,c,d);let N=[...c],L=r[r.length-1],B=new hfe({getElements:()=>w.lastDiffIds},{getElements:()=>[...w.children.slice(0,L),...N,...w.children.slice(L+o)].map(Te=>e.getId(Te.element).toString())}).ComputeDiff(!1);if(B.quitEarly)return w.lastDiffIds=void 0,this.spliceSimple(r,o,N,d);let F=r.slice(0,-1),Y=(Te,Je,Xe)=>{if(h>0)for(let ct=0;ctXe.originalStart-Je.originalStart))Y(Z,ee,Z-(Te.originalStart+Te.originalLength)),Z=Te.originalStart,ee=Te.modifiedStart-L,this.spliceSimple([...F,Z],Te.originalLength,S_.slice(N,ee,ee+Te.modifiedLength),d);Y(Z,ee,Z)}spliceSimple(e,r,o=S_.empty(),{onDidCreateNode:c,onDidDeleteNode:d,diffIdentityProvider:h}){let{parentNode:b,listIndex:w,revealed:N,visible:L}=this.getParentNodeWithListIndex(e),B=[],F=S_.map(o,Nt=>this.createTreeNode(Nt,b,b.visible?1:0,N,B,c)),Y=e[e.length-1],Z=0;for(let Nt=Y;Nt>=0&&Nth.getId(Nt.element).toString())):b.lastDiffIds=b.children.map(Nt=>h.getId(Nt.element).toString()):b.lastDiffIds=void 0;let ct=0;for(let Nt of Xe)Nt.visible&&ct++;if(ct!==0)for(let Nt=Y+ee.length;NtYt+(jt.visible?jt.renderNodeCount:0),0);this._updateAncestorsRenderNodeCount(b,Je-Nt),this.list.splice(w,Nt,B)}if(Xe.length>0&&d){let Nt=Yt=>{d(Yt),Yt.children.forEach(Nt)};Xe.forEach(Nt)}this._onDidSplice.fire({insertedNodes:ee,deletedNodes:Xe});let Ct=b;for(;Ct;){if(Ct.visibility===2){this.refilterDelayer.trigger(()=>this.refilter());break}Ct=Ct.parent}}rerender(e){if(e.length===0)throw new JP(this.user,"Invalid tree location");let{node:r,listIndex:o,revealed:c}=this.getTreeNodeWithListIndex(e);r.visible&&c&&this.list.splice(o,1,[r])}has(e){return this.hasTreeNode(e)}getListIndex(e){let{listIndex:r,visible:o,revealed:c}=this.getTreeNodeWithListIndex(e);return o&&c?r:-1}getListRenderCount(e){return this.getTreeNode(e).renderNodeCount}isCollapsible(e){return this.getTreeNode(e).collapsible}setCollapsible(e,r){let o=this.getTreeNode(e);typeof r>"u"&&(r=!o.collapsible);let c={collapsible:r};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(e,c))}isCollapsed(e){return this.getTreeNode(e).collapsed}setCollapsed(e,r,o){let c=this.getTreeNode(e);typeof r>"u"&&(r=!c.collapsed);let d={collapsed:r,recursive:o||!1};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(e,d))}_setCollapseState(e,r){let{node:o,listIndex:c,revealed:d}=this.getTreeNodeWithListIndex(e),h=this._setListNodeCollapseState(o,c,d,r);if(o!==this.root&&this.autoExpandSingleChildren&&h&&!isi(r)&&o.collapsible&&!o.collapsed&&!r.recursive){let b=-1;for(let w=0;w-1){b=-1;break}else b=w;b>-1&&this._setCollapseState([...e,b],r)}return h}_setListNodeCollapseState(e,r,o,c){let d=this._setNodeCollapseState(e,c,!1);if(!o||!e.visible||!d)return d;let h=e.renderNodeCount,b=this.updateNodeAfterCollapseChange(e),w=h-(r===-1?0:1);return this.list.splice(r+1,w,b.slice(1)),d}_setNodeCollapseState(e,r,o){let c;if(e===this.root?c=!1:(isi(r)?(c=e.collapsible!==r.collapsible,e.collapsible=r.collapsible):e.collapsible?(c=e.collapsed!==r.collapsed,e.collapsed=r.collapsed):c=!1,c&&this._onDidChangeCollapseState.fire({node:e,deep:o})),!isi(r)&&r.recursive)for(let d of e.children)c=this._setNodeCollapseState(d,r,!0)||c;return c}expandTo(e){this.eventBufferer.bufferEvents(()=>{let r=this.getTreeNode(e);for(;r.parent;)r=r.parent,e=e.slice(0,e.length-1),r.collapsed&&this._setCollapseState(e,{collapsed:!1,recursive:!1})})}refilter(){let e=this.root.renderNodeCount,r=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,e,r),this.refilterDelayer.cancel()}createTreeNode(e,r,o,c,d,h){let b={parent:r,element:e.element,children:[],depth:r.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:typeof e.collapsible=="boolean"?e.collapsible:typeof e.collapsed<"u",collapsed:typeof e.collapsed>"u"?this.collapseByDefault:e.collapsed,renderNodeCount:1,visibility:1,visible:!0,filterData:void 0},w=this._filterNode(b,o);b.visibility=w,c&&d.push(b);let N=e.children||S_.empty(),L=c&&w!==0&&!b.collapsed,B=0,F=1;for(let Y of N){let Z=this.createTreeNode(Y,b,w,L,d,h);b.children.push(Z),F+=Z.renderNodeCount,Z.visible&&(Z.visibleChildIndex=B++)}return this.allowNonCollapsibleParents||(b.collapsible=b.collapsible||b.children.length>0),b.visibleChildrenCount=B,b.visible=w===2?B>0:w===1,b.visible?b.collapsed||(b.renderNodeCount=F):(b.renderNodeCount=0,c&&d.pop()),h?.(b),b}updateNodeAfterCollapseChange(e){let r=e.renderNodeCount,o=[];return this._updateNodeAfterCollapseChange(e,o),this._updateAncestorsRenderNodeCount(e.parent,o.length-r),o}_updateNodeAfterCollapseChange(e,r){if(e.visible===!1)return 0;if(r.push(e),e.renderNodeCount=1,!e.collapsed)for(let o of e.children)e.renderNodeCount+=this._updateNodeAfterCollapseChange(o,r);return this._onDidChangeRenderNodeCount.fire(e),e.renderNodeCount}updateNodeAfterFilterChange(e){let r=e.renderNodeCount,o=[];return this._updateNodeAfterFilterChange(e,e.visible?1:0,o),this._updateAncestorsRenderNodeCount(e.parent,o.length-r),o}_updateNodeAfterFilterChange(e,r,o,c=!0){let d;if(e!==this.root){if(d=this._filterNode(e,r),d===0)return e.visible=!1,e.renderNodeCount=0,!1;c&&o.push(e)}let h=o.length;e.renderNodeCount=e===this.root?0:1;let b=!1;if(!e.collapsed||d!==0){let w=0;for(let N of e.children)b=this._updateNodeAfterFilterChange(N,d,o,c&&!e.collapsed)||b,N.visible&&(N.visibleChildIndex=w++);e.visibleChildrenCount=w}else e.visibleChildrenCount=0;return e!==this.root&&(e.visible=d===2?b:d===1,e.visibility=d),e.visible?e.collapsed||(e.renderNodeCount+=o.length-h):(e.renderNodeCount=0,c&&o.pop()),this._onDidChangeRenderNodeCount.fire(e),e.visible}_updateAncestorsRenderNodeCount(e,r){if(r!==0)for(;e;)e.renderNodeCount+=r,this._onDidChangeRenderNodeCount.fire(e),e=e.parent}_filterNode(e,r){let o=this.filter?this.filter.filter(e.element,r):1;return typeof o=="boolean"?(e.filterData=void 0,o?1:0):T_t(o)?(e.filterData=o.data,NLe(o.visibility)):(e.filterData=void 0,NLe(o))}hasTreeNode(e,r=this.root){if(!e||e.length===0)return!0;let[o,...c]=e;return o<0||o>r.children.length?!1:this.hasTreeNode(c,r.children[o])}getTreeNode(e,r=this.root){if(!e||e.length===0)return r;let[o,...c]=e;if(o<0||o>r.children.length)throw new JP(this.user,"Invalid tree location");return this.getTreeNode(c,r.children[o])}getTreeNodeWithListIndex(e){if(e.length===0)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};let{parentNode:r,listIndex:o,revealed:c,visible:d}=this.getParentNodeWithListIndex(e),h=e[e.length-1];if(h<0||h>r.children.length)throw new JP(this.user,"Invalid tree location");let b=r.children[h];return{node:b,listIndex:o,revealed:c,visible:d&&b.visible}}getParentNodeWithListIndex(e,r=this.root,o=0,c=!0,d=!0){let[h,...b]=e;if(h<0||h>r.children.length)throw new JP(this.user,"Invalid tree location");for(let w=0;w{});function nsi(l){return l instanceof Kfe?new rsi(l):l}function Xzi(l,e){return e&&{...e,identityProvider:e.identityProvider&&{getId(r){return e.identityProvider.getId(r.element)}},dnd:e.dnd&&new osi(l,e.dnd),multipleSelectionController:e.multipleSelectionController&&{isSelectionSingleChangeEvent(r){return e.multipleSelectionController.isSelectionSingleChangeEvent({...r,element:r.element})},isSelectionRangeChangeEvent(r){return e.multipleSelectionController.isSelectionRangeChangeEvent({...r,element:r.element})}},accessibilityProvider:e.accessibilityProvider&&{...e.accessibilityProvider,getSetSize(r){let o=l(),c=o.getNodeLocation(r),d=o.getParentNodeLocation(c);return o.getNode(d).visibleChildrenCount},getPosInSet(r){return r.visibleChildIndex+1},isChecked:e.accessibilityProvider&&e.accessibilityProvider.isChecked?r=>e.accessibilityProvider.isChecked(r.element):void 0,getRole:e.accessibilityProvider&&e.accessibilityProvider.getRole?r=>e.accessibilityProvider.getRole(r.element):()=>"treeitem",getAriaLabel(r){return e.accessibilityProvider.getAriaLabel(r.element)},getWidgetAriaLabel(){return e.accessibilityProvider.getWidgetAriaLabel()},getWidgetRole:e.accessibilityProvider&&e.accessibilityProvider.getWidgetRole?()=>e.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:e.accessibilityProvider&&e.accessibilityProvider.getAriaLevel?r=>e.accessibilityProvider.getAriaLevel(r.element):r=>r.depth,getActiveDescendantId:e.accessibilityProvider.getActiveDescendantId&&(r=>e.accessibilityProvider.getActiveDescendantId(r.element))},keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&{...e.keyboardNavigationLabelProvider,getKeyboardNavigationLabel(r){return e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(r.element)}}}}function Yzi(l,e){return l.position===e.position&&N2i(l,e)}function N2i(l,e){return l.node.element===e.node.element&&l.startIndex===e.startIndex&&l.height===e.height&&l.endIndex===e.endIndex}function SOt(l){let e=pxe.Unknown;return oNt(l.browserEvent.target,"monaco-tl-twistie","monaco-tl-row")?e=pxe.Twistie:oNt(l.browserEvent.target,"monaco-tl-contents","monaco-tl-row")?e=pxe.Element:oNt(l.browserEvent.target,"monaco-tree-type-filter","monaco-list")&&(e=pxe.Filter),{browserEvent:l.browserEvent,element:l.element?l.element.element:null,target:e}}function Qzi(l){let e=EUe(l.browserEvent.target);return{element:l.element?l.element.element:null,browserEvent:l.browserEvent,anchor:l.anchor,isStickyScroll:e}}function xOt(l,e){e(l),l.children.forEach(r=>xOt(r,e))}var rsi,osi,qUe,ALe,ssi,COt,asi,Rre,mxe,csi,lsi,usi,kOt,dsi,fsi,E_t,_si,psi,$Ue,GUe=ti(()=>{nc();n$();lA();zV();mOt();pOt();D3t();t_e();OUe();bOt();JUe();xE();sd();Ud();uy();bv();pA();xc();MV();co();lLe();Fh();I2i();ya();JI();xv();rsi=class extends Kfe{constructor(e){super(e.elements.map(r=>r.element)),this.data=e}};osi=class{constructor(e,r){this.modelProvider=e,this.dnd=r,this.autoExpandDisposable=tn.None,this.disposables=new Fr}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,r){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map(o=>o.element),r)}onDragStart(e,r){var o,c;(c=(o=this.dnd).onDragStart)===null||c===void 0||c.call(o,nsi(e),r)}onDragOver(e,r,o,c,d,h=!0){let b=this.dnd.onDragOver(nsi(e),r&&r.element,o,c,d),w=this.autoExpandNode!==r;if(w&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=r),typeof r>"u")return b;if(w&&typeof b!="boolean"&&b.autoExpand&&(this.autoExpandDisposable=bB(()=>{let Y=this.modelProvider(),Z=Y.getNodeLocation(r);Y.isCollapsed(Z)&&Y.setCollapsed(Z,!1),this.autoExpandNode=void 0},500,this.disposables)),typeof b=="boolean"||!b.accept||typeof b.bubble>"u"||b.feedback){if(!h){let Y=typeof b=="boolean"?b:b.accept,Z=typeof b=="boolean"?void 0:b.effect;return{accept:Y,effect:Z,feedback:[o]}}return b}if(b.bubble===1){let Y=this.modelProvider(),Z=Y.getNodeLocation(r),ee=Y.getParentNodeLocation(Z),Te=Y.getNode(ee),Je=ee&&Y.getListIndex(ee);return this.onDragOver(e,Te,Je,c,d,!1)}let N=this.modelProvider(),L=N.getNodeLocation(r),B=N.getListIndex(L),F=N.getListRenderCount(L);return{...b,feedback:FP(B,B+F)}}drop(e,r,o,c,d){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(nsi(e),r&&r.element,o,c,d)}onDragEnd(e){var r,o;(o=(r=this.dnd).onDragEnd)===null||o===void 0||o.call(r,e)}dispose(){this.disposables.dispose(),this.dnd.dispose()}};qUe=class{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,r){var o,c;(c=(o=this.delegate).setDynamicHeight)===null||c===void 0||c.call(o,e.element,r)}};(function(l){l.None="none",l.OnHover="onHover",l.Always="always"})(ALe||(ALe={}));ssi=class{get elements(){return this._elements}constructor(e,r=[]){this._elements=r,this.disposables=new Fr,this.onDidChange=gs.forEach(e,o=>this._elements=o,this.disposables)}dispose(){this.disposables.dispose()}},COt=class l{constructor(e,r,o,c,d,h={}){var b;this.renderer=e,this.modelProvider=r,this.activeNodes=c,this.renderedIndentGuides=d,this.renderedElements=new Map,this.renderedNodes=new Map,this.indent=l.DefaultIndent,this.hideTwistiesOfChildlessElements=!1,this.shouldRenderIndentGuides=!1,this.activeIndentNodes=new Set,this.indentGuidesDisposable=tn.None,this.disposables=new Fr,this.templateId=e.templateId,this.updateOptions(h),gs.map(o,w=>w.node)(this.onDidChangeNodeTwistieState,this,this.disposables),(b=e.onDidChangeTwistieState)===null||b===void 0||b.call(e,this.onDidChangeTwistieState,this,this.disposables)}updateOptions(e={}){if(typeof e.indent<"u"){let r=WD(e.indent,0,40);if(r!==this.indent){this.indent=r;for(let[o,c]of this.renderedNodes)this.renderTreeElement(o,c)}}if(typeof e.renderIndentGuides<"u"){let r=e.renderIndentGuides!==ALe.None;if(r!==this.shouldRenderIndentGuides){this.shouldRenderIndentGuides=r;for(let[o,c]of this.renderedNodes)this._renderIndentGuides(o,c);if(this.indentGuidesDisposable.dispose(),r){let o=new Fr;this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,o),this.indentGuidesDisposable=o,this._onDidChangeActiveNodes(this.activeNodes.elements)}}}typeof e.hideTwistiesOfChildlessElements<"u"&&(this.hideTwistiesOfChildlessElements=e.hideTwistiesOfChildlessElements)}renderTemplate(e){let r=Ro(e,qo(".monaco-tl-row")),o=Ro(r,qo(".monaco-tl-indent")),c=Ro(r,qo(".monaco-tl-twistie")),d=Ro(r,qo(".monaco-tl-contents")),h=this.renderer.renderTemplate(d);return{container:e,indent:o,twistie:c,indentGuidesDisposable:tn.None,templateData:h}}renderElement(e,r,o,c){this.renderedNodes.set(e,o),this.renderedElements.set(e.element,e),this.renderTreeElement(e,o),this.renderer.renderElement(e,r,o.templateData,c)}disposeElement(e,r,o,c){var d,h;o.indentGuidesDisposable.dispose(),(h=(d=this.renderer).disposeElement)===null||h===void 0||h.call(d,e,r,o.templateData,c),typeof c=="number"&&(this.renderedNodes.delete(e),this.renderedElements.delete(e.element))}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}onDidChangeTwistieState(e){let r=this.renderedElements.get(e);r&&this.onDidChangeNodeTwistieState(r)}onDidChangeNodeTwistieState(e){let r=this.renderedNodes.get(e);r&&(this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderTreeElement(e,r))}renderTreeElement(e,r){let o=l.DefaultIndent+(e.depth-1)*this.indent;r.twistie.style.paddingLeft=`${o}px`,r.indent.style.width=`${o+this.indent-16}px`,e.collapsible?r.container.setAttribute("aria-expanded",String(!e.collapsed)):r.container.removeAttribute("aria-expanded"),r.twistie.classList.remove(...sl.asClassNameArray(_s.treeItemExpanded));let c=!1;this.renderer.renderTwistie&&(c=this.renderer.renderTwistie(e.element,r.twistie)),e.collapsible&&(!this.hideTwistiesOfChildlessElements||e.visibleChildrenCount>0)?(c||r.twistie.classList.add(...sl.asClassNameArray(_s.treeItemExpanded)),r.twistie.classList.add("collapsible"),r.twistie.classList.toggle("collapsed",e.collapsed)):r.twistie.classList.remove("collapsible","collapsed"),this._renderIndentGuides(e,r)}_renderIndentGuides(e,r){if(DS(r.indent),r.indentGuidesDisposable.dispose(),!this.shouldRenderIndentGuides)return;let o=new Fr,c=this.modelProvider();for(;;){let d=c.getNodeLocation(e),h=c.getParentNodeLocation(d);if(!h)break;let b=c.getNode(h),w=qo(".indent-guide",{style:`width: ${this.indent}px`});this.activeIndentNodes.has(b)&&w.classList.add("active"),r.indent.childElementCount===0?r.indent.appendChild(w):r.indent.insertBefore(w,r.indent.firstElementChild),this.renderedIndentGuides.add(b,w),o.add(Ma(()=>this.renderedIndentGuides.delete(b,w))),e=b}r.indentGuidesDisposable=o}_onDidChangeActiveNodes(e){if(!this.shouldRenderIndentGuides)return;let r=new Set,o=this.modelProvider();e.forEach(c=>{let d=o.getNodeLocation(c);try{let h=o.getParentNodeLocation(d);c.collapsible&&c.children.length>0&&!c.collapsed?r.add(c):h&&r.add(o.getNode(h))}catch{}}),this.activeIndentNodes.forEach(c=>{r.has(c)||this.renderedIndentGuides.forEach(c,d=>d.classList.remove("active"))}),r.forEach(c=>{this.activeIndentNodes.has(c)||this.renderedIndentGuides.forEach(c,d=>d.classList.add("active"))}),this.activeIndentNodes=r}dispose(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),Fp(this.disposables)}};COt.DefaultIndent=8;asi=class{get totalCount(){return this._totalCount}get matchCount(){return this._matchCount}constructor(e,r,o){this.tree=e,this.keyboardNavigationLabelProvider=r,this._filter=o,this._totalCount=0,this._matchCount=0,this._pattern="",this._lowercasePattern="",this.disposables=new Fr,e.onWillRefilter(this.reset,this,this.disposables)}filter(e,r){let o=1;if(this._filter){let h=this._filter.filter(e,r);if(typeof h=="boolean"?o=h?1:0:T_t(h)?o=NLe(h.visibility):o=h,o===0)return!1}if(this._totalCount++,!this._pattern)return this._matchCount++,{data:f7.Default,visibility:o};let c=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e),d=Array.isArray(c)?c:[c];for(let h of d){let b=h&&h.toString();if(typeof b>"u")return{data:f7.Default,visibility:o};let w;if(this.tree.findMatchType===mxe.Contiguous){let N=b.toLowerCase().indexOf(this._lowercasePattern);if(N>-1){w=[Number.MAX_SAFE_INTEGER,0];for(let L=this._lowercasePattern.length;L>0;L--)w.push(N+L-1)}}else w=wre(this._pattern,this._lowercasePattern,0,b,b.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});if(w)return this._matchCount++,d.length===1?{data:w,visibility:o}:{data:{label:b,score:w},visibility:o}}return this.tree.findMode===Rre.Filter?typeof this.tree.options.defaultFindVisibility=="number"?this.tree.options.defaultFindVisibility:this.tree.options.defaultFindVisibility?this.tree.options.defaultFindVisibility(e):2:{data:f7.Default,visibility:o}}reset(){this._totalCount=0,this._matchCount=0}dispose(){Fp(this.disposables)}};(function(l){l[l.Highlight=0]="Highlight",l[l.Filter=1]="Filter"})(Rre||(Rre={}));(function(l){l[l.Fuzzy=0]="Fuzzy",l[l.Contiguous=1]="Contiguous"})(mxe||(mxe={}));csi=class{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,r,o,c,d,h={}){var b,w;this.tree=e,this.view=o,this.filter=c,this.contextViewProvider=d,this.options=h,this._pattern="",this.width=0,this._onDidChangeMode=new wn,this.onDidChangeMode=this._onDidChangeMode.event,this._onDidChangeMatchType=new wn,this.onDidChangeMatchType=this._onDidChangeMatchType.event,this._onDidChangePattern=new wn,this._onDidChangeOpenState=new wn,this.onDidChangeOpenState=this._onDidChangeOpenState.event,this.enabledDisposables=new Fr,this.disposables=new Fr,this._mode=(b=e.options.defaultFindMode)!==null&&b!==void 0?b:Rre.Highlight,this._matchType=(w=e.options.defaultFindMatchType)!==null&&w!==void 0?w:mxe.Fuzzy,r.onDidSplice(this.onDidSpliceModel,this,this.disposables)}updateOptions(e={}){e.defaultFindMode!==void 0&&(this.mode=e.defaultFindMode),e.defaultFindMatchType!==void 0&&(this.matchType=e.defaultFindMatchType)}onDidSpliceModel(){!this.widget||this.pattern.length===0||(this.tree.refilter(),this.render())}render(){var e,r,o,c;let d=this.filter.totalCount>0&&this.filter.matchCount===0;this.pattern&&d?!((e=this.tree.options.showNotFoundMessage)!==null&&e!==void 0)||e?(r=this.widget)===null||r===void 0||r.showMessage({type:2,content:ce("not found","No elements found.")}):(o=this.widget)===null||o===void 0||o.showMessage({type:2}):(c=this.widget)===null||c===void 0||c.clearMessage()}shouldAllowFocus(e){return!this.widget||!this.pattern||this.filter.totalCount>0&&this.filter.matchCount<=1?!0:!f7.isDefault(e.filterData)}layout(e){var r;this.width=e,(r=this.widget)===null||r===void 0||r.layout(e)}dispose(){this._history=void 0,this._onDidChangePattern.dispose(),this.enabledDisposables.dispose(),this.disposables.dispose()}};lsi=class{constructor(e=[]){this.stickyNodes=e}get count(){return this.stickyNodes.length}equal(e){return Jm(this.stickyNodes,e.stickyNodes,Yzi)}lastNodePartiallyVisible(){if(this.count===0)return!1;let e=this.stickyNodes[this.count-1];if(this.count===1)return e.position!==0;let r=this.stickyNodes[this.count-2];return r.position+r.height!==e.position}animationStateChanged(e){if(!Jm(this.stickyNodes,e.stickyNodes,N2i)||this.count===0)return!1;let r=this.stickyNodes[this.count-1],o=e.stickyNodes[e.count-1];return r.position!==o.position}},usi=class{constrainStickyScrollNodes(e,r,o){for(let c=0;co||c>=r)return e.slice(0,c)}return e}},kOt=class extends tn{constructor(e,r,o,c,d,h={}){var b;super(),this.tree=e,this.model=r,this.view=o,this.treeDelegate=d,this.maxWidgetViewRatio=.4;let w=this.validateStickySettings(h);this.stickyScrollMaxItemCount=w.stickyScrollMaxItemCount,this.stickyScrollDelegate=(b=h.stickyScrollDelegate)!==null&&b!==void 0?b:new usi,this._widget=this._register(new dsi(o.getScrollableElement(),o,e,c,d,h.accessibilityProvider)),this.onDidChangeHasFocus=this._widget.onDidChangeHasFocus,this.onContextMenu=this._widget.onContextMenu,this._register(o.onDidScroll(()=>this.update())),this._register(o.onDidChangeContentHeight(()=>this.update())),this._register(e.onDidChangeCollapseState(()=>this.update())),this.update()}get height(){return this._widget.height}getNodeAtHeight(e){let r;if(e===0?r=this.view.firstVisibleIndex:r=this.view.indexAt(e+this.view.scrollTop),!(r<0||r>=this.view.length))return this.view.element(r)}update(){let e=this.getNodeAtHeight(0);if(!e||this.tree.scrollTop===0){this._widget.setState(void 0);return}let r=this.findStickyState(e);this._widget.setState(r)}findStickyState(e){let r=[],o=e,c=0,d=this.getNextStickyNode(o,void 0,c);for(;d&&(r.push(d),c+=d.height,!(r.length<=this.stickyScrollMaxItemCount&&(o=this.getNextVisibleNode(d),!o)));)d=this.getNextStickyNode(o,d.node,c);let h=this.constrainStickyNodes(r);return h.length?new lsi(h):void 0}getNextVisibleNode(e){return this.getNodeAtHeight(e.position+e.height)}getNextStickyNode(e,r,o){let c=this.getAncestorUnderPrevious(e,r);if(c&&!(c===e&&(!this.nodeIsUncollapsedParent(e)||this.nodeTopAlignsWithStickyNodesBottom(e,o))))return this.createStickyScrollNode(c,o)}nodeTopAlignsWithStickyNodesBottom(e,r){let o=this.getNodeIndex(e),c=this.view.getElementTop(o),d=r;return this.view.scrollTop===c-d}createStickyScrollNode(e,r){let o=this.treeDelegate.getHeight(e),{startIndex:c,endIndex:d}=this.getNodeRange(e),h=this.calculateStickyNodePosition(d,r,o);return{node:e,position:h,height:o,startIndex:c,endIndex:d}}getAncestorUnderPrevious(e,r=void 0){let o=e,c=this.getParentNode(o);for(;c;){if(c===r)return o;o=c,c=this.getParentNode(o)}if(r===void 0)return o}calculateStickyNodePosition(e,r,o){let c=this.view.getRelativeTop(e);if(c===null&&this.view.firstVisibleIndex===e&&e+1w&&r<=w?w-o:r}constrainStickyNodes(e){if(e.length===0)return[];let r=this.view.renderHeight*this.maxWidgetViewRatio,o=e[e.length-1];if(e.length<=this.stickyScrollMaxItemCount&&o.position+o.height<=r)return e;let c=this.stickyScrollDelegate.constrainStickyScrollNodes(e,this.stickyScrollMaxItemCount,r);if(!c.length)return[];let d=c[c.length-1];if(c.length>this.stickyScrollMaxItemCount||d.position+d.height>r)throw new Error("stickyScrollDelegate violates constraints");return c}getParentNode(e){let r=this.model.getNodeLocation(e),o=this.model.getParentNodeLocation(r);return o?this.model.getNode(o):void 0}nodeIsUncollapsedParent(e){let r=this.model.getNodeLocation(e);return this.model.getListRenderCount(r)>1}getNodeIndex(e){let r=this.model.getNodeLocation(e);return this.model.getListIndex(r)}getNodeRange(e){let r=this.model.getNodeLocation(e),o=this.model.getListIndex(r);if(o<0)throw new Error("Node not found in tree");let c=this.model.getListRenderCount(r),d=o+c-1;return{startIndex:o,endIndex:d}}nodePositionTopBelowWidget(e){let r=[],o=this.getParentNode(e);for(;o;)r.push(o),o=this.getParentNode(o);let c=0;for(let d=0;d0,o=!!e&&e.count>0;if(!r&&!o||r&&o&&this._previousState.equal(e))return;if(r!==o&&this.setVisible(o),!o){this._previousState=void 0,this._previousElements=[],this._previousStateDisposables.clear();return}let c=e.stickyNodes[e.count-1];if(this._previousState&&e.animationStateChanged(this._previousState))this._previousElements[this._previousState.count-1].style.top=`${c.position}px`;else{this._previousStateDisposables.clear();let d=Array(e.count);for(let h=e.count-1;h>=0;h--){let b=e.stickyNodes[h],{element:w,disposable:N}=this.createElement(b,h,e.count);d[h]=w,this._rootDomNode.appendChild(w),this._previousStateDisposables.add(N)}this.stickyScrollFocus.updateElements(d,e),this._previousElements=d}this._previousState=e,this._rootDomNode.style.height=`${c.position+c.height}px`}createElement(e,r,o){let c=e.startIndex,d=document.createElement("div");d.style.top=`${e.position}px`,this.tree.options.setRowHeight!==!1&&(d.style.height=`${e.height}px`),this.tree.options.setRowLineHeight!==!1&&(d.style.lineHeight=`${e.height}px`),d.classList.add("monaco-tree-sticky-row"),d.classList.add("monaco-list-row"),d.setAttribute("data-index",`${c}`),d.setAttribute("data-parity",c%2===0?"even":"odd"),d.setAttribute("id",this.view.getElementID(c));let h=this.setAccessibilityAttributes(d,e.node.element,r,o),b=this.treeDelegate.getTemplateId(e.node),w=this.treeRenderers.find(F=>F.templateId===b);if(!w)throw new Error(`No renderer found for template id ${b}`);let N=e.node;N===this.tree.getNode(this.tree.getNodeLocation(e.node))&&(N=new Proxy(e.node,{}));let L=w.renderTemplate(d);w.renderElement(N,e.startIndex,L,e.height);let B=Ma(()=>{h.dispose(),w.disposeElement(N,e.startIndex,L,e.height),w.disposeTemplate(L),d.remove()});return{element:d,disposable:B}}setAccessibilityAttributes(e,r,o,c){var d;if(!this.accessibilityProvider)return tn.None;this.accessibilityProvider.getSetSize&&e.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(r,o,c))),this.accessibilityProvider.getPosInSet&&e.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(r,o))),this.accessibilityProvider.getRole&&e.setAttribute("role",(d=this.accessibilityProvider.getRole(r))!==null&&d!==void 0?d:"treeitem");let h=this.accessibilityProvider.getAriaLabel(r),b=h&&typeof h!="string"?h:D6(h),w=ad(L=>{let B=L.readObservable(b);B?e.setAttribute("aria-label",B):e.removeAttribute("aria-label")});typeof h=="string"||h&&e.setAttribute("aria-label",h.get());let N=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(r);return typeof N=="number"&&e.setAttribute("aria-level",`${N}`),e.setAttribute("aria-selected",String(!1)),w}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()}},fsi=class extends tn{get domHasFocus(){return this._domHasFocus}set domHasFocus(e){e!==this._domHasFocus&&(this._onDidChangeHasFocus.fire(e),this._domHasFocus=e)}constructor(e,r){super(),this.container=e,this.view=r,this.focusedIndex=-1,this.elements=[],this._onDidChangeHasFocus=new wn,this.onDidChangeHasFocus=this._onDidChangeHasFocus.event,this._onContextMenu=new wn,this.onContextMenu=this._onContextMenu.event,this._domHasFocus=!1,this.container.addEventListener("focus",()=>this.onFocus()),this.container.addEventListener("blur",()=>this.onBlur()),this._register(this.view.onDidFocus(()=>this.toggleStickyScrollFocused(!1))),this._register(this.view.onKeyDown(o=>this.onKeyDown(o))),this._register(this.view.onMouseDown(o=>this.onMouseDown(o))),this._register(this.view.onContextMenu(o=>this.handleContextMenu(o)))}handleContextMenu(e){let r=e.browserEvent.target;if(!EUe(r)&&!TUe(r)){this.focusedLast()&&this.view.domFocus();return}if(!GY(e.browserEvent)){if(!this.state)throw new Error("Context menu should not be triggered when state is undefined");let h=this.state.stickyNodes.findIndex(b=>{var w;return b.node.element===((w=e.element)===null||w===void 0?void 0:w.element)});if(h===-1)throw new Error("Context menu should not be triggered when element is not in sticky scroll widget");this.container.focus(),this.setFocus(h);return}if(!this.state||this.focusedIndex<0)throw new Error("Context menu key should not be triggered when focus is not in sticky scroll widget");let c=this.state.stickyNodes[this.focusedIndex].node.element,d=this.elements[this.focusedIndex];this._onContextMenu.fire({element:c,anchor:d,browserEvent:e.browserEvent,isStickyScroll:!0})}onKeyDown(e){if(this.domHasFocus&&this.state){if(e.key==="ArrowUp")this.setFocusedElement(Math.max(0,this.focusedIndex-1)),e.preventDefault(),e.stopPropagation();else if(e.key==="ArrowDown"||e.key==="ArrowRight"){if(this.focusedIndex>=this.state.count-1){let r=this.state.stickyNodes[this.state.count-1].startIndex+1;this.view.domFocus(),this.view.setFocus([r]),this.scrollNodeUnderWidget(r,this.state)}else this.setFocusedElement(this.focusedIndex+1);e.preventDefault(),e.stopPropagation()}}}onMouseDown(e){let r=e.browserEvent.target;!EUe(r)&&!TUe(r)||(e.browserEvent.preventDefault(),e.browserEvent.stopPropagation())}updateElements(e,r){if(r&&r.count===0)throw new Error("Sticky scroll state must be undefined when there are no sticky nodes");if(r&&r.count!==e.length)throw new Error("Sticky scroll focus received illigel state");let o=this.focusedIndex;if(this.removeFocus(),this.elements=e,this.state=r,r){let c=WD(o,0,r.count-1);this.setFocus(c)}else this.domHasFocus&&this.view.domFocus();this.container.tabIndex=r?0:-1}setFocusedElement(e){let r=this.state;if(!r)throw new Error("Cannot set focus when state is undefined");if(this.setFocus(e),!(e1?r.stickyNodes[r.count-2]:void 0,d=this.view.getElementTop(e),h=c?c.position+c.height+o.height:o.height;this.view.scrollTop=d-h}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"):!1}removeFocus(){this.focusedIndex!==-1&&(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");let r=this.focusedIndex;r>=0&&this.toggleElementFocus(this.elements[r],!1),e>=0&&this.toggleElementFocus(this.elements[e],!0),this.focusedIndex=e}toggleElementFocus(e,r){this.toggleElementActiveFocus(e,r&&this.domHasFocus),this.toggleElementPassiveFocus(e,r)}toggleCurrentElementActiveFocus(e){this.focusedIndex!==-1&&this.toggleElementActiveFocus(this.elements[this.focusedIndex],e)}toggleElementActiveFocus(e,r){e.classList.toggle("focused",r)}toggleElementPassiveFocus(e,r){e.classList.toggle("passive-focused",r)}toggleStickyScrollFocused(e){this.view.getHTMLElement().classList.toggle("sticky-scroll-focused",e)}onFocus(){if(!this.state||this.elements.length===0)throw new Error("Cannot focus when state is undefined or elements are empty");this.domHasFocus=!0,this.toggleStickyScrollFocused(!0),this.toggleCurrentElementActiveFocus(!0),this.focusedIndex===-1&&this.setFocus(0)}onBlur(){this.domHasFocus=!1,this.toggleCurrentElementActiveFocus(!1)}dispose(){this.toggleStickyScrollFocused(!1),this._onDidChangeHasFocus.fire(!1),super.dispose()}};E_t=class{get nodeSet(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet}constructor(e,r){this.getFirstViewElementWithTrait=e,this.identityProvider=r,this.nodes=[],this._onDidChange=new wn,this.onDidChange=this._onDidChange.event}set(e,r){!r?.__forceEvent&&Jm(this.nodes,e)||this._set(e,!1,r)}_set(e,r,o){if(this.nodes=[...e],this.elements=void 0,this._nodeSet=void 0,!r){let c=this;this._onDidChange.fire({get elements(){return c.get()},browserEvent:o})}}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:r}){if(!this.identityProvider){let w=this.createNodeSet(),N=L=>w.delete(L);r.forEach(L=>xOt(L,N)),this.set([...w.values()]);return}let o=new Set,c=w=>o.add(this.identityProvider.getId(w.element).toString());r.forEach(w=>xOt(w,c));let d=new Map,h=w=>d.set(this.identityProvider.getId(w.element).toString(),w);e.forEach(w=>xOt(w,h));let b=[];for(let w of this.nodes){let N=this.identityProvider.getId(w.element).toString();if(!o.has(N))b.push(w);else{let B=d.get(N);B&&B.visible&&b.push(B)}}if(this.nodes.length>0&&b.length===0){let w=this.getFirstViewElementWithTrait();w&&b.push(w)}this._set(b,!0)}createNodeSet(){let e=new Set;for(let r of this.nodes)e.add(r);return e}},_si=class extends l_t{constructor(e,r,o){super(e),this.tree=r,this.stickyScrollProvider=o}onViewPointer(e){if(hoi(e.browserEvent.target)||e_e(e.browserEvent.target)||CUe(e.browserEvent.target)||e.browserEvent.isHandledByList)return;let r=e.element;if(!r)return super.onViewPointer(e);if(this.isSelectionRangeChangeEvent(e)||this.isSelectionSingleChangeEvent(e))return super.onViewPointer(e);let o=e.browserEvent.target,c=o.classList.contains("monaco-tl-twistie")||o.classList.contains("monaco-icon-label")&&o.classList.contains("folder-icon")&&e.browserEvent.offsetX<16,d=TUe(e.browserEvent.target),h=!1;if(d?h=!0:typeof this.tree.expandOnlyOnTwistieClick=="function"?h=this.tree.expandOnlyOnTwistieClick(r.element):h=!!this.tree.expandOnlyOnTwistieClick,d)this.handleStickyScrollMouseEvent(e,r);else{if(h&&!c&&e.browserEvent.detail!==2)return super.onViewPointer(e);if(!this.tree.expandOnDoubleClick&&e.browserEvent.detail===2)return super.onViewPointer(e)}if(r.collapsible&&(!d||c)){let b=this.tree.getNodeLocation(r),w=e.browserEvent.altKey;if(this.tree.setFocus([b]),this.tree.toggleCollapsed(b,w),c){e.browserEvent.isHandledByList=!0;return}}d||super.onViewPointer(e)}handleStickyScrollMouseEvent(e,r){if(gTi(e.browserEvent.target)||yTi(e.browserEvent.target))return;let o=this.stickyScrollProvider();if(!o)throw new Error("Sticky scroll controller not found");let c=this.list.indexOf(r),d=this.list.getElementTop(c),h=o.nodePositionTopBelowWidget(r);this.tree.scrollTop=d-h,this.list.domFocus(),this.list.setFocus([c]),this.list.setSelection([c])}onDoubleClick(e){e.browserEvent.target.classList.contains("monaco-tl-twistie")||!this.tree.expandOnDoubleClick||e.browserEvent.isHandledByList||super.onDoubleClick(e)}onMouseDown(e){let r=e.browserEvent.target;if(!EUe(r)&&!TUe(r)){super.onMouseDown(e);return}}onContextMenu(e){let r=e.browserEvent.target;if(!EUe(r)&&!TUe(r)){super.onContextMenu(e);return}}},psi=class extends TE{constructor(e,r,o,c,d,h,b,w){super(e,r,o,c,w),this.focusTrait=d,this.selectionTrait=h,this.anchorTrait=b}createMouseController(e){return new _si(this,e.tree,e.stickyScrollProvider)}splice(e,r,o=[]){if(super.splice(e,r,o),o.length===0)return;let c=[],d=[],h;o.forEach((b,w)=>{this.focusTrait.has(b)&&c.push(e+w),this.selectionTrait.has(b)&&d.push(e+w),this.anchorTrait.has(b)&&(h=e+w)}),c.length>0&&super.setFocus(GF([...super.getFocus(),...c])),d.length>0&&super.setSelection(GF([...super.getSelection(),...d])),typeof h=="number"&&super.setAnchor(h)}setFocus(e,r,o=!1){super.setFocus(e,r),o||this.focusTrait.set(e.map(c=>this.element(c)),r)}setSelection(e,r,o=!1){super.setSelection(e,r),o||this.selectionTrait.set(e.map(c=>this.element(c)),r)}setAnchor(e,r=!1){super.setAnchor(e),r||(typeof e>"u"?this.anchorTrait.set([]):this.anchorTrait.set([this.element(e)]))}},$Ue=class{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 gs.filter(gs.map(this.view.onMouseDblClick,SOt),e=>e.target!==pxe.Filter)}get onMouseOver(){return gs.map(this.view.onMouseOver,SOt)}get onMouseOut(){return gs.map(this.view.onMouseOut,SOt)}get onContextMenu(){var e,r;return gs.any(gs.filter(gs.map(this.view.onContextMenu,Qzi),o=>!o.isStickyScroll),(r=(e=this.stickyScrollController)===null||e===void 0?void 0:e.onContextMenu)!==null&&r!==void 0?r:gs.None)}get onPointer(){return gs.map(this.view.onPointer,SOt)}get onKeyDown(){return this.view.onKeyDown}get onDidFocus(){return this.view.onDidFocus}get onDidChangeModel(){return gs.signal(this.model.onDidSplice)}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get findMode(){var e,r;return(r=(e=this.findController)===null||e===void 0?void 0:e.mode)!==null&&r!==void 0?r:Rre.Highlight}set findMode(e){this.findController&&(this.findController.mode=e)}get findMatchType(){var e,r;return(r=(e=this.findController)===null||e===void 0?void 0:e.matchType)!==null&&r!==void 0?r:mxe.Fuzzy}set findMatchType(e){this.findController&&(this.findController.matchType=e)}get expandOnDoubleClick(){return typeof this._options.expandOnDoubleClick>"u"?!0:this._options.expandOnDoubleClick}get expandOnlyOnTwistieClick(){return typeof this._options.expandOnlyOnTwistieClick>"u"?!0:this._options.expandOnlyOnTwistieClick}get onDidDispose(){return this.view.onDidDispose}constructor(e,r,o,c,d={}){var h;this._user=e,this._options=d,this.eventBufferer=new Dne,this.onDidChangeFindOpenState=gs.None,this.onDidChangeStickyScrollFocused=gs.None,this.disposables=new Fr,this._onWillRefilter=new wn,this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new wn,this.treeDelegate=new qUe(o);let b=new Qlt,w=new Qlt,N=this.disposables.add(new ssi(w.event)),L=new dSe;this.renderers=c.map(ee=>new COt(ee,()=>this.model,b.event,N,L,d));for(let ee of this.renderers)this.disposables.add(ee);let B;d.keyboardNavigationLabelProvider&&(B=new asi(this,d.keyboardNavigationLabelProvider,d.filter),d={...d,filter:B},this.disposables.add(B)),this.focus=new E_t(()=>this.view.getFocusedElements()[0],d.identityProvider),this.selection=new E_t(()=>this.view.getSelectedElements()[0],d.identityProvider),this.anchor=new E_t(()=>this.view.getAnchorElement(),d.identityProvider),this.view=new psi(e,r,this.treeDelegate,this.renderers,this.focus,this.selection,this.anchor,{...Xzi(()=>this.model,d),tree:this,stickyScrollProvider:()=>this.stickyScrollController}),this.model=this.createModel(e,this.view,d),b.input=this.model.onDidChangeCollapseState;let F=gs.forEach(this.model.onDidSplice,ee=>{this.eventBufferer.bufferEvents(()=>{this.focus.onDidModelSplice(ee),this.selection.onDidModelSplice(ee)})},this.disposables);F(()=>null,null,this.disposables);let Y=this.disposables.add(new wn),Z=this.disposables.add(new vE(0));if(this.disposables.add(gs.any(F,this.focus.onDidChange,this.selection.onDidChange)(()=>{Z.trigger(()=>{let ee=new Set;for(let Te of this.focus.getNodes())ee.add(Te);for(let Te of this.selection.getNodes())ee.add(Te);Y.fire([...ee.values()])})})),w.input=Y.event,d.keyboardSupport!==!1){let ee=gs.chain(this.view.onKeyDown,Te=>Te.filter(Je=>!e_e(Je.target)).map(Je=>new Jp(Je)));gs.chain(ee,Te=>Te.filter(Je=>Je.keyCode===15))(this.onLeftArrow,this,this.disposables),gs.chain(ee,Te=>Te.filter(Je=>Je.keyCode===17))(this.onRightArrow,this,this.disposables),gs.chain(ee,Te=>Te.filter(Je=>Je.keyCode===10))(this.onSpace,this,this.disposables)}if((!((h=d.findWidgetEnabled)!==null&&h!==void 0)||h)&&d.keyboardNavigationLabelProvider&&d.contextViewProvider){let ee=this.options.findWidgetStyles?{styles:this.options.findWidgetStyles}:void 0;this.findController=new csi(this,this.model,this.view,B,d.contextViewProvider,ee),this.focusNavigationFilter=Te=>this.findController.shouldAllowFocus(Te),this.onDidChangeFindOpenState=this.findController.onDidChangeOpenState,this.disposables.add(this.findController),this.onDidChangeFindMode=this.findController.onDidChangeMode,this.onDidChangeFindMatchType=this.findController.onDidChangeMatchType}else this.onDidChangeFindMode=gs.None,this.onDidChangeFindMatchType=gs.None;d.enableStickyScroll&&(this.stickyScrollController=new kOt(this,this.model,this.view,this.renderers,this.treeDelegate,d),this.onDidChangeStickyScrollFocused=this.stickyScrollController.onDidChangeHasFocus),this.styleElement=bE(this.view.getHTMLElement()),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===ALe.Always)}updateOptions(e={}){var r;this._options={...this._options,...e};for(let o of this.renderers)o.updateOptions(e);this.view.updateOptions(this._options),(r=this.findController)===null||r===void 0||r.updateOptions(e),this.updateStickyScroll(e),this._onDidUpdateOptions.fire(this._options),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===ALe.Always)}get options(){return this._options}updateStickyScroll(e){var r;!this.stickyScrollController&&this._options.enableStickyScroll?(this.stickyScrollController=new kOt(this,this.model,this.view,this.renderers,this.treeDelegate,this._options),this.onDidChangeStickyScrollFocused=this.stickyScrollController.onDidChangeHasFocus):this.stickyScrollController&&!this._options.enableStickyScroll&&(this.onDidChangeStickyScrollFocused=gs.None,this.stickyScrollController.dispose(),this.stickyScrollController=void 0),(r=this.stickyScrollController)===null||r===void 0||r.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(){var e;!((e=this.stickyScrollController)===null||e===void 0)&&e.focusedLast()?this.stickyScrollController.domFocus():this.view.domFocus()}layout(e,r){var o;this.view.layout(e,r),_B(r)&&((o=this.findController)===null||o===void 0||o.layout(r))}style(e){var r,o;let c=`.${this.view.domId}`,d=[];e.treeIndentGuidesStroke&&(d.push(`.monaco-list${c}:hover .monaco-tl-indent > .indent-guide, .monaco-list${c}.always .monaco-tl-indent > .indent-guide { border-color: ${e.treeInactiveIndentGuidesStroke}; }`),d.push(`.monaco-list${c} .monaco-tl-indent > .indent-guide.active { border-color: ${e.treeIndentGuidesStroke}; }`));let h=(r=e.treeStickyScrollBackground)!==null&&r!==void 0?r:e.listBackground;h&&(d.push(`.monaco-list${c} .monaco-scrollable-element .monaco-tree-sticky-container { background-color: ${h}; }`),d.push(`.monaco-list${c} .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-row { background-color: ${h}; }`)),e.treeStickyScrollBorder&&d.push(`.monaco-list${c} .monaco-scrollable-element .monaco-tree-sticky-container { border-bottom: 1px solid ${e.treeStickyScrollBorder}; }`),e.treeStickyScrollShadow&&d.push(`.monaco-list${c} .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&&(d.push(`.monaco-list${c}.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container:focus .monaco-list-row.focused { color: ${e.listFocusForeground}; }`),d.push(`.monaco-list${c}:not(.sticky-scroll-focused) .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.focused { color: inherit; }`));let b=gV(e.listFocusAndSelectionOutline,gV(e.listSelectionOutline,(o=e.listFocusOutline)!==null&&o!==void 0?o:""));b&&(d.push(`.monaco-list${c}.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container:focus .monaco-list-row.focused.selected { outline: 1px solid ${b}; outline-offset: -1px;}`),d.push(`.monaco-list${c}:not(.sticky-scroll-focused) .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.focused.selected { outline: inherit;}`)),e.listFocusOutline&&(d.push(`.monaco-list${c}.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container:focus .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }`),d.push(`.monaco-list${c}:not(.sticky-scroll-focused) .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.focused { outline: inherit; }`),d.push(`.monaco-workbench.context-menu-visible .monaco-list${c}.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; }`),d.push(`.monaco-workbench.context-menu-visible .monaco-list${c}.last-focused.sticky-scroll-focused .monaco-list-rows .monaco-list-row.focused { outline: inherit; }`),d.push(`.monaco-workbench.context-menu-visible .monaco-list${c}.last-focused:not(.sticky-scroll-focused) .monaco-tree-sticky-container .monaco-list-rows .monaco-list-row.focused { outline: inherit; }`)),this.styleElement.textContent=d.join(` +`),this.view.style(e)}getParentElement(e){let r=this.model.getParentNodeLocation(e);return this.model.getNode(r).element}getFirstElementChild(e){return this.model.getFirstElementChild(e)}getNode(e){return this.model.getNode(e)}getNodeLocation(e){return this.model.getNodeLocation(e)}collapse(e,r=!1){return this.model.setCollapsed(e,!0,r)}expand(e,r=!1){return this.model.setCollapsed(e,!1,r)}toggleCollapsed(e,r=!1){return this.model.setCollapsed(e,void 0,r)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,r){return this.model.setCollapsible(e,r)}isCollapsed(e){return this.model.isCollapsed(e)}refilter(){this._onWillRefilter.fire(void 0),this.model.refilter()}setSelection(e,r){this.eventBufferer.bufferEvents(()=>{let o=e.map(d=>this.model.getNode(d));this.selection.set(o,r);let c=e.map(d=>this.model.getListIndex(d)).filter(d=>d>-1);this.view.setSelection(c,r,!0)})}getSelection(){return this.selection.get()}setFocus(e,r){this.eventBufferer.bufferEvents(()=>{let o=e.map(d=>this.model.getNode(d));this.focus.set(o,r);let c=e.map(d=>this.model.getListIndex(d)).filter(d=>d>-1);this.view.setFocus(c,r,!0)})}focusNext(e=1,r=!1,o,c=GY(o)&&o.altKey?void 0:this.focusNavigationFilter){this.view.focusNext(e,r,o,c)}focusPrevious(e=1,r=!1,o,c=GY(o)&&o.altKey?void 0:this.focusNavigationFilter){this.view.focusPrevious(e,r,o,c)}focusNextPage(e,r=GY(e)&&e.altKey?void 0:this.focusNavigationFilter){return this.view.focusNextPage(e,r)}focusPreviousPage(e,r=GY(e)&&e.altKey?void 0:this.focusNavigationFilter){return this.view.focusPreviousPage(e,r,()=>{var o,c;return(c=(o=this.stickyScrollController)===null||o===void 0?void 0:o.height)!==null&&c!==void 0?c:0})}focusFirst(e,r=GY(e)&&e.altKey?void 0:this.focusNavigationFilter){this.view.focusFirst(e,r)}getFocus(){return this.focus.get()}reveal(e,r){this.model.expandTo(e);let o=this.model.getListIndex(e);if(o!==-1)if(!this.stickyScrollController)this.view.reveal(o,r);else{let c=this.stickyScrollController.nodePositionTopBelowWidget(this.getNode(e));this.view.reveal(o,r,c)}}onLeftArrow(e){e.preventDefault(),e.stopPropagation();let r=this.view.getFocusedElements();if(r.length===0)return;let o=r[0],c=this.model.getNodeLocation(o);if(!this.model.setCollapsed(c,!0)){let h=this.model.getParentNodeLocation(c);if(!h)return;let b=this.model.getListIndex(h);this.view.reveal(b),this.view.setFocus([b])}}onRightArrow(e){e.preventDefault(),e.stopPropagation();let r=this.view.getFocusedElements();if(r.length===0)return;let o=r[0],c=this.model.getNodeLocation(o);if(!this.model.setCollapsed(c,!1)){if(!o.children.some(w=>w.visible))return;let[h]=this.view.getFocus(),b=h+1;this.view.reveal(b),this.view.setFocus([b])}}onSpace(e){e.preventDefault(),e.stopPropagation();let r=this.view.getFocusedElements();if(r.length===0)return;let o=r[0],c=this.model.getNodeLocation(o),d=e.browserEvent.altKey;this.model.setCollapsed(c,void 0,d)}dispose(){var e;Fp(this.disposables),(e=this.stickyScrollController)===null||e===void 0||e.dispose(),this.view.dispose()}}});var hxe,wOt=ti(()=>{bOt();JUe();QL();hxe=class{constructor(e,r,o={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new vOt(e,r,null,o),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,o.sorter&&(this.sorter={compare(c,d){return o.sorter.compare(c.element,d.element)}}),this.identityProvider=o.identityProvider}setChildren(e,r=S_.empty(),o={}){let c=this.getElementLocation(e);this._setChildren(c,this.preserveCollapseState(r),o)}_setChildren(e,r=S_.empty(),o){let c=new Set,d=new Set,h=w=>{var N;if(w.element===null)return;let L=w;if(c.add(L.element),this.nodes.set(L.element,L),this.identityProvider){let B=this.identityProvider.getId(L.element).toString();d.add(B),this.nodesByIdentity.set(B,L)}(N=o.onDidCreateNode)===null||N===void 0||N.call(o,L)},b=w=>{var N;if(w.element===null)return;let L=w;if(c.has(L.element)||this.nodes.delete(L.element),this.identityProvider){let B=this.identityProvider.getId(L.element).toString();d.has(B)||this.nodesByIdentity.delete(B)}(N=o.onDidDeleteNode)===null||N===void 0||N.call(o,L)};this.model.splice([...e,0],Number.MAX_VALUE,r,{...o,onDidCreateNode:h,onDidDeleteNode:b})}preserveCollapseState(e=S_.empty()){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),S_.map(e,r=>{let o=this.nodes.get(r.element);if(!o&&this.identityProvider){let h=this.identityProvider.getId(r.element).toString();o=this.nodesByIdentity.get(h)}if(!o){let h;return typeof r.collapsed>"u"?h=void 0:r.collapsed===g7.Collapsed||r.collapsed===g7.PreserveOrCollapsed?h=!0:r.collapsed===g7.Expanded||r.collapsed===g7.PreserveOrExpanded?h=!1:h=!!r.collapsed,{...r,children:this.preserveCollapseState(r.children),collapsed:h}}let c=typeof r.collapsible=="boolean"?r.collapsible:o.collapsible,d;return typeof r.collapsed>"u"||r.collapsed===g7.PreserveOrCollapsed||r.collapsed===g7.PreserveOrExpanded?d=o.collapsed:r.collapsed===g7.Collapsed?d=!0:r.collapsed===g7.Expanded?d=!1:d=!!r.collapsed,{...r,collapsible:c,collapsed:d,children:this.preserveCollapseState(r.children)}})}rerender(e){let r=this.getElementLocation(e);this.model.rerender(r)}getFirstElementChild(e=null){let r=this.getElementLocation(e);return this.model.getFirstElementChild(r)}has(e){return this.nodes.has(e)}getListIndex(e){let r=this.getElementLocation(e);return this.model.getListIndex(r)}getListRenderCount(e){let r=this.getElementLocation(e);return this.model.getListRenderCount(r)}isCollapsible(e){let r=this.getElementLocation(e);return this.model.isCollapsible(r)}setCollapsible(e,r){let o=this.getElementLocation(e);return this.model.setCollapsible(o,r)}isCollapsed(e){let r=this.getElementLocation(e);return this.model.isCollapsed(r)}setCollapsed(e,r,o){let c=this.getElementLocation(e);return this.model.setCollapsed(c,r,o)}expandTo(e){let r=this.getElementLocation(e);this.model.expandTo(r)}refilter(){this.model.refilter()}getNode(e=null){if(e===null)return this.model.getNode(this.model.rootRef);let r=this.nodes.get(e);if(!r)throw new JP(this.user,`Tree element not found: ${e}`);return r}getNodeLocation(e){return e.element}getParentNodeLocation(e){if(e===null)throw new JP(this.user,"Invalid getParentNodeLocation call");let r=this.nodes.get(e);if(!r)throw new JP(this.user,`Tree element not found: ${e}`);let o=this.model.getNodeLocation(r),c=this.model.getParentNodeLocation(o);return this.model.getNode(c).element}getElementLocation(e){if(e===null)return[];let r=this.nodes.get(e);if(!r)throw new JP(this.user,`Tree element not found: ${e}`);return this.model.getNodeLocation(r)}}});function TOt(l){let e=[l.element],r=l.incompressible||!1;return{element:{elements:e,incompressible:r},children:S_.map(S_.from(l.children),TOt),collapsible:l.collapsible,collapsed:l.collapsed}}function EOt(l){let e=[l.element],r=l.incompressible||!1,o,c;for(;[c,o]=S_.consume(S_.from(l.children),2),!(c.length!==1||c[0].incompressible);)l=c[0],e.push(l.element);return{element:{elements:e,incompressible:r},children:S_.map(S_.concat(c,o),EOt),collapsible:l.collapsible,collapsed:l.collapsed}}function msi(l,e=0){let r;return emsi(o,0)),e===0&&l.element.incompressible?{element:l.element.elements[e],children:r,incompressible:!0,collapsible:l.collapsible,collapsed:l.collapsed}:{element:l.element.elements[e],children:r,collapsible:l.collapsible,collapsed:l.collapsed}}function A2i(l){return msi(l,0)}function P2i(l,e,r){return l.element===e?{...l,children:r}:{...l,children:S_.map(S_.from(l.children),o=>P2i(o,e,r))}}function tVi(l,e){return{splice(r,o,c){e.splice(r,o,c.map(d=>l.map(d)))},updateElementHeight(r,o){e.updateElementHeight(r,o)}}}function iVi(l,e){return{...e,identityProvider:e.identityProvider&&{getId(r){return e.identityProvider.getId(l(r))}},sorter:e.sorter&&{compare(r,o){return e.sorter.compare(r.elements[0],o.elements[0])}},filter:e.filter&&{filter(r,o){return e.filter.filter(l(r),o)}}}}var Zzi,hsi,eVi,gsi,DOt,L2i=ti(()=>{wOt();JUe();sd();xc();QL();Zzi=l=>({getId(e){return e.elements.map(r=>l.getId(r).toString()).join("\0")}}),hsi=class{get onDidSplice(){return this.model.onDidSplice}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get onDidChangeRenderNodeCount(){return this.model.onDidChangeRenderNodeCount}constructor(e,r,o={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.model=new hxe(e,r,o),this.enabled=typeof o.compressionEnabled>"u"?!0:o.compressionEnabled,this.identityProvider=o.identityProvider}setChildren(e,r=S_.empty(),o){let c=o.diffIdentityProvider&&Zzi(o.diffIdentityProvider);if(e===null){let Z=S_.map(r,this.enabled?EOt:TOt);this._setChildren(null,Z,{diffIdentityProvider:c,diffDepth:1/0});return}let d=this.nodes.get(e);if(!d)throw new JP(this.user,"Unknown compressed tree node");let h=this.model.getNode(d),b=this.model.getParentNodeLocation(d),w=this.model.getNode(b),N=A2i(h),L=P2i(N,e,r),B=(this.enabled?EOt:TOt)(L),F=o.diffIdentityProvider?(Z,ee)=>o.diffIdentityProvider.getId(Z)===o.diffIdentityProvider.getId(ee):void 0;if(Jm(B.element.elements,h.element.elements,F)){this._setChildren(d,B.children||S_.empty(),{diffIdentityProvider:c,diffDepth:1});return}let Y=w.children.map(Z=>Z===h?B:Z);this._setChildren(w.element,Y,{diffIdentityProvider:c,diffDepth:h.depth-w.depth})}isCompressionEnabled(){return this.enabled}setCompressionEnabled(e){if(e===this.enabled)return;this.enabled=e;let o=this.model.getNode().children,c=S_.map(o,A2i),d=S_.map(c,e?EOt:TOt);this._setChildren(null,d,{diffIdentityProvider:this.identityProvider,diffDepth:1/0})}_setChildren(e,r,o){let c=new Set,d=b=>{for(let w of b.element.elements)c.add(w),this.nodes.set(w,b.element)},h=b=>{for(let w of b.element.elements)c.has(w)||this.nodes.delete(w)};this.model.setChildren(e,r,{...o,onDidCreateNode:d,onDidDeleteNode:h})}has(e){return this.nodes.has(e)}getListIndex(e){let r=this.getCompressedNode(e);return this.model.getListIndex(r)}getListRenderCount(e){let r=this.getCompressedNode(e);return this.model.getListRenderCount(r)}getNode(e){if(typeof e>"u")return this.model.getNode();let r=this.getCompressedNode(e);return this.model.getNode(r)}getNodeLocation(e){let r=this.model.getNodeLocation(e);return r===null?null:r.elements[r.elements.length-1]}getParentNodeLocation(e){let r=this.getCompressedNode(e),o=this.model.getParentNodeLocation(r);return o===null?null:o.elements[o.elements.length-1]}getFirstElementChild(e){let r=this.getCompressedNode(e);return this.model.getFirstElementChild(r)}isCollapsible(e){let r=this.getCompressedNode(e);return this.model.isCollapsible(r)}setCollapsible(e,r){let o=this.getCompressedNode(e);return this.model.setCollapsible(o,r)}isCollapsed(e){let r=this.getCompressedNode(e);return this.model.isCollapsed(r)}setCollapsed(e,r,o){let c=this.getCompressedNode(e);return this.model.setCollapsed(c,r,o)}expandTo(e){let r=this.getCompressedNode(e);this.model.expandTo(r)}rerender(e){let r=this.getCompressedNode(e);this.model.rerender(r)}refilter(){this.model.refilter()}getCompressedNode(e){if(e===null)return null;let r=this.nodes.get(e);if(!r)throw new JP(this.user,`Tree element not found: ${e}`);return r}},eVi=l=>l[l.length-1],gsi=class l{get element(){return this.node.element===null?null:this.unwrapper(this.node.element)}get children(){return this.node.children.map(e=>new l(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,r){this.unwrapper=e,this.node=r}};DOt=class{get onDidSplice(){return gs.map(this.model.onDidSplice,({insertedNodes:e,deletedNodes:r})=>({insertedNodes:e.map(o=>this.nodeMapper.map(o)),deletedNodes:r.map(o=>this.nodeMapper.map(o))}))}get onDidChangeCollapseState(){return gs.map(this.model.onDidChangeCollapseState,({node:e,deep:r})=>({node:this.nodeMapper.map(e),deep:r}))}get onDidChangeRenderNodeCount(){return gs.map(this.model.onDidChangeRenderNodeCount,e=>this.nodeMapper.map(e))}constructor(e,r,o={}){this.rootRef=null,this.elementMapper=o.elementMapper||eVi;let c=d=>this.elementMapper(d.elements);this.nodeMapper=new ILe(d=>new gsi(c,d)),this.model=new hsi(e,tVi(this.nodeMapper,r),iVi(c,o))}setChildren(e,r=S_.empty(),o={}){this.model.setChildren(e,r,o)}isCompressionEnabled(){return this.model.isCompressionEnabled()}setCompressionEnabled(e){this.model.setCompressionEnabled(e)}has(e){return this.model.has(e)}getListIndex(e){return this.model.getListIndex(e)}getListRenderCount(e){return this.model.getListRenderCount(e)}getNode(e){return this.nodeMapper.map(this.model.getNode(e))}getNodeLocation(e){return e.element}getParentNodeLocation(e){return this.model.getParentNodeLocation(e)}getFirstElementChild(e){let r=this.model.getFirstElementChild(e);return r===null||typeof r>"u"?r:this.elementMapper(r.elements)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,r){return this.model.setCollapsible(e,r)}isCollapsed(e){return this.model.isCollapsed(e)}setCollapsed(e,r,o){return this.model.setCollapsed(e,r,o)}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)}}});function rVi(l,e){return e&&{...e,keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel(r){let o;try{o=l().getCompressedTreeNode(r)}catch{return e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(r)}return o.element.elements.length===1?e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(r):e.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(o.element.elements)}}}}var nVi,PLe,IOt,ysi,KUe,vsi=ti(()=>{GUe();L2i();wOt();DSe();QL();nVi=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},PLe=class extends $Ue{get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}constructor(e,r,o,c,d={}){super(e,r,o,c,d),this.user=e}setChildren(e,r=S_.empty(),o){this.model.setChildren(e,r,o)}rerender(e){if(e===void 0){this.view.rerender();return}this.model.rerender(e)}hasElement(e){return this.model.has(e)}createModel(e,r,o){return new hxe(e,r,o)}},IOt=class{get compressedTreeNodeProvider(){return this._compressedTreeNodeProvider()}constructor(e,r,o){this._compressedTreeNodeProvider=e,this.stickyScrollDelegate=r,this.renderer=o,this.templateId=o.templateId,o.onDidChangeTwistieState&&(this.onDidChangeTwistieState=o.onDidChangeTwistieState)}renderTemplate(e){return{compressedTreeNode:void 0,data:this.renderer.renderTemplate(e)}}renderElement(e,r,o,c){let d=this.stickyScrollDelegate.getCompressedNode(e);d||(d=this.compressedTreeNodeProvider.getCompressedTreeNode(e.element)),d.element.elements.length===1?(o.compressedTreeNode=void 0,this.renderer.renderElement(e,r,o.data,c)):(o.compressedTreeNode=d,this.renderer.renderCompressedElements(d,r,o.data,c))}disposeElement(e,r,o,c){var d,h,b,w;o.compressedTreeNode?(h=(d=this.renderer).disposeCompressedElements)===null||h===void 0||h.call(d,o.compressedTreeNode,r,o.data,c):(w=(b=this.renderer).disposeElement)===null||w===void 0||w.call(b,e,r,o.data,c)}disposeTemplate(e){this.renderer.disposeTemplate(e.data)}renderTwistie(e,r){return this.renderer.renderTwistie?this.renderer.renderTwistie(e,r):!1}};nVi([G1],IOt.prototype,"compressedTreeNodeProvider",null);ysi=class{constructor(e){this.modelProvider=e,this.compressedStickyNodes=new Map}getCompressedNode(e){return this.compressedStickyNodes.get(e)}constrainStickyScrollNodes(e,r,o){if(this.compressedStickyNodes.clear(),e.length===0)return[];for(let c=0;co||c>=r-1&&rthis,b=new ysi(()=>this.model),w=c.map(N=>new IOt(h,b,N));super(e,r,o,w,{...rVi(h,d),stickyScrollDelegate:b})}setChildren(e,r=S_.empty(),o){this.model.setChildren(e,r,o)}createModel(e,r,o){return new DOt(e,r,o)}updateOptions(e={}){super.updateOptions(e),typeof e.compressionEnabled<"u"&&this.model.setCompressionEnabled(e.compressionEnabled)}getCompressedTreeNode(e=null){return this.model.getCompressedTreeNode(e)}}});function bsi(l){return{...l,children:[],refreshPromise:void 0,stale:!0,slow:!1,forceExpanded:!1}}function xsi(l,e){return e.parent?e.parent===l?!0:xsi(l,e.parent):!1}function oVi(l,e){return l===e||xsi(l,e)||xsi(e,l)}function O2i(l){return{browserEvent:l.browserEvent,elements:l.elements.map(e=>e.element)}}function F2i(l){return{browserEvent:l.browserEvent,element:l.element&&l.element.element,target:l.target}}function Ssi(l){return l instanceof Kfe?new wsi(l):l}function M2i(l){return l&&{...l,collapseByDefault:!0,identityProvider:l.identityProvider&&{getId(e){return l.identityProvider.getId(e.element)}},dnd:l.dnd&&new Tsi(l.dnd),multipleSelectionController:l.multipleSelectionController&&{isSelectionSingleChangeEvent(e){return l.multipleSelectionController.isSelectionSingleChangeEvent({...e,element:e.element})},isSelectionRangeChangeEvent(e){return l.multipleSelectionController.isSelectionRangeChangeEvent({...e,element:e.element})}},accessibilityProvider:l.accessibilityProvider&&{...l.accessibilityProvider,getPosInSet:void 0,getSetSize:void 0,getRole:l.accessibilityProvider.getRole?e=>l.accessibilityProvider.getRole(e.element):()=>"treeitem",isChecked:l.accessibilityProvider.isChecked?e=>{var r;return!!(!((r=l.accessibilityProvider)===null||r===void 0)&&r.isChecked(e.element))}:void 0,getAriaLabel(e){return l.accessibilityProvider.getAriaLabel(e.element)},getWidgetAriaLabel(){return l.accessibilityProvider.getWidgetAriaLabel()},getWidgetRole:l.accessibilityProvider.getWidgetRole?()=>l.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:l.accessibilityProvider.getAriaLevel&&(e=>l.accessibilityProvider.getAriaLevel(e.element)),getActiveDescendantId:l.accessibilityProvider.getActiveDescendantId&&(e=>l.accessibilityProvider.getActiveDescendantId(e.element))},filter:l.filter&&{filter(e,r){return l.filter.filter(e.element,r)}},keyboardNavigationLabelProvider:l.keyboardNavigationLabelProvider&&{...l.keyboardNavigationLabelProvider,getKeyboardNavigationLabel(e){return l.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e.element)}},sorter:void 0,expandOnlyOnTwistieClick:typeof l.expandOnlyOnTwistieClick>"u"?void 0:typeof l.expandOnlyOnTwistieClick!="function"?l.expandOnlyOnTwistieClick:e=>l.expandOnlyOnTwistieClick(e.element),defaultFindVisibility:e=>e.hasChildren&&e.stale?1:typeof l.defaultFindVisibility=="number"?l.defaultFindVisibility:typeof l.defaultFindVisibility>"u"?2:l.defaultFindVisibility(e.element)}}function Esi(l,e){e(l),l.children.forEach(r=>Esi(r,e))}function sVi(l){let e=l&&M2i(l);return e&&{...e,keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&{...e.keyboardNavigationLabelProvider,getCompressedNodeKeyboardNavigationLabel(r){return l.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(r.map(o=>o.element))}}}}function aVi(l){return typeof l=="boolean"?l?1:0:T_t(l)?NLe(l.visibility):NLe(l)}var Csi,ksi,wsi,Tsi,D_t,Dsi,Isi,NOt,R2i=ti(()=>{D3t();GUe();bOt();vsi();JUe();Ud();uy();bv();Du();xc();QL();co();Fh();Csi=class l{get element(){return this.node.element.element}get children(){return this.node.children.map(e=>new l(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}},ksi=class{constructor(e,r,o){this.renderer=e,this.nodeMapper=r,this.onDidChangeTwistieState=o,this.renderedNodes=new Map,this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,r,o,c){this.renderer.renderElement(this.nodeMapper.map(e),r,o.templateData,c)}renderTwistie(e,r){return e.slow?(r.classList.add(...sl.asClassNameArray(_s.treeItemLoading)),!0):(r.classList.remove(...sl.asClassNameArray(_s.treeItemLoading)),!1)}disposeElement(e,r,o,c){var d,h;(h=(d=this.renderer).disposeElement)===null||h===void 0||h.call(d,this.nodeMapper.map(e),r,o.templateData,c)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear()}};wsi=class extends Kfe{constructor(e){super(e.elements.map(r=>r.element)),this.data=e}};Tsi=class{constructor(e){this.dnd=e}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,r){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map(o=>o.element),r)}onDragStart(e,r){var o,c;(c=(o=this.dnd).onDragStart)===null||c===void 0||c.call(o,Ssi(e),r)}onDragOver(e,r,o,c,d,h=!0){return this.dnd.onDragOver(Ssi(e),r&&r.element,o,c,d)}drop(e,r,o,c,d){this.dnd.drop(Ssi(e),r&&r.element,o,c,d)}onDragEnd(e){var r,o;(o=(r=this.dnd).onDragEnd)===null||o===void 0||o.call(r,e)}dispose(){this.dnd.dispose()}};D_t=class{get onDidScroll(){return this.tree.onDidScroll}get onDidChangeFocus(){return gs.map(this.tree.onDidChangeFocus,O2i)}get onDidChangeSelection(){return gs.map(this.tree.onDidChangeSelection,O2i)}get onMouseDblClick(){return gs.map(this.tree.onMouseDblClick,F2i)}get onPointer(){return gs.map(this.tree.onPointer,F2i)}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,r,o,c,d,h={}){this.user=e,this.dataSource=d,this.nodes=new Map,this.subTreeRefreshPromises=new Map,this.refreshPromises=new Map,this._onDidRender=new wn,this._onDidChangeNodeSlowState=new wn,this.nodeMapper=new ILe(b=>new Csi(b)),this.disposables=new Fr,this.identityProvider=h.identityProvider,this.autoExpandSingleChildren=typeof h.autoExpandSingleChildren>"u"?!1:h.autoExpandSingleChildren,this.sorter=h.sorter,this.getDefaultCollapseState=b=>h.collapseByDefault?h.collapseByDefault(b)?g7.PreserveOrCollapsed:g7.PreserveOrExpanded:void 0,this.tree=this.createTree(e,r,o,c,h),this.onDidChangeFindMode=this.tree.onDidChangeFindMode,this.onDidChangeFindMatchType=this.tree.onDidChangeFindMatchType,this.root=bsi({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,r,o,c,d){let h=new qUe(o),b=c.map(N=>new ksi(N,this.nodeMapper,this._onDidChangeNodeSlowState.event)),w=M2i(d)||{};return new PLe(e,r,h,b,w)}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,r){this.tree.layout(e,r)}style(e){this.tree.style(e)}getInput(){return this.root.element}async setInput(e,r){this.refreshPromises.forEach(c=>c.cancel()),this.refreshPromises.clear(),this.root.element=e;let o=r&&{viewState:r,focus:[],selection:[]};await this._updateChildren(e,!0,!1,o),o&&(this.tree.setFocus(o.focus),this.tree.setSelection(o.selection)),r&&typeof r.scrollTop=="number"&&(this.scrollTop=r.scrollTop)}async _updateChildren(e=this.root.element,r=!0,o=!1,c,d){if(typeof this.root.element>"u")throw new JP(this.user,"Tree input not set");this.root.refreshPromise&&(await this.root.refreshPromise,await gs.toPromise(this._onDidRender.event));let h=this.getDataNode(e);if(await this.refreshAndRenderNode(h,r,c,d),o)try{this.tree.rerender(h)}catch{}}rerender(e){if(e===void 0||e===this.root.element){this.tree.rerender();return}let r=this.getDataNode(e);this.tree.rerender(r)}getNode(e=this.root.element){let r=this.getDataNode(e),o=this.tree.getNode(r===this.root?null:r);return this.nodeMapper.map(o)}collapse(e,r=!1){let o=this.getDataNode(e);return this.tree.collapse(o===this.root?null:o,r)}async expand(e,r=!1){if(typeof this.root.element>"u")throw new JP(this.user,"Tree input not set");this.root.refreshPromise&&(await this.root.refreshPromise,await gs.toPromise(this._onDidRender.event));let o=this.getDataNode(e);if(this.tree.hasElement(o)&&!this.tree.isCollapsible(o)||(o.refreshPromise&&(await this.root.refreshPromise,await gs.toPromise(this._onDidRender.event)),o!==this.root&&!o.refreshPromise&&!this.tree.isCollapsed(o)))return!1;let c=this.tree.expand(o===this.root?null:o,r);return o.refreshPromise&&(await this.root.refreshPromise,await gs.toPromise(this._onDidRender.event)),c}setSelection(e,r){let o=e.map(c=>this.getDataNode(c));this.tree.setSelection(o,r)}getSelection(){return this.tree.getSelection().map(r=>r.element)}setFocus(e,r){let o=e.map(c=>this.getDataNode(c));this.tree.setFocus(o,r)}getFocus(){return this.tree.getFocus().map(r=>r.element)}reveal(e,r){this.tree.reveal(this.getDataNode(e),r)}getParentElement(e){let r=this.tree.getParentElement(this.getDataNode(e));return r&&r.element}getFirstElementChild(e=this.root.element){let r=this.getDataNode(e),o=this.tree.getFirstElementChild(r===this.root?null:r);return o&&o.element}getDataNode(e){let r=this.nodes.get(e===this.root.element?null:e);if(!r)throw new JP(this.user,`Data tree node not found: ${e}`);return r}async refreshAndRenderNode(e,r,o,c){await this.refreshNode(e,r,o),!this.disposables.isDisposed&&this.render(e,o,c)}async refreshNode(e,r,o){let c;if(this.subTreeRefreshPromises.forEach((d,h)=>{!c&&oVi(h,e)&&(c=d.then(()=>this.refreshNode(e,r,o)))}),c)return c;if(e!==this.root&&this.tree.getNode(e).collapsed){e.hasChildren=!!this.dataSource.hasChildren(e.element),e.stale=!0,this.setChildren(e,[],r,o);return}return this.doRefreshSubTree(e,r,o)}async doRefreshSubTree(e,r,o){let c;e.refreshPromise=new Promise(d=>c=d),this.subTreeRefreshPromises.set(e,e.refreshPromise),e.refreshPromise.finally(()=>{e.refreshPromise=void 0,this.subTreeRefreshPromises.delete(e)});try{let d=await this.doRefreshNode(e,r,o);e.stale=!1,await HIt.settled(d.map(h=>this.doRefreshSubTree(h,r,o)))}finally{c()}}async doRefreshNode(e,r,o){e.hasChildren=!!this.dataSource.hasChildren(e.element);let c;if(!e.hasChildren)c=Promise.resolve(S_.empty());else{let d=this.doGetChildren(e);if(dYt(d))c=Promise.resolve(d);else{let h=HO(800);h.then(()=>{e.slow=!0,this._onDidChangeNodeSlowState.fire(e)},b=>null),c=d.finally(()=>h.cancel())}}try{let d=await c;return this.setChildren(e,d,r,o)}catch(d){if(e!==this.root&&this.tree.hasElement(e)&&this.tree.collapse(e),MI(d))return[];throw d}finally{e.slow&&(e.slow=!1,this._onDidChangeNodeSlowState.fire(e))}}doGetChildren(e){let r=this.refreshPromises.get(e);if(r)return r;let o=this.dataSource.getChildren(e.element);return dYt(o)?this.processChildren(o):(r=fy(async()=>this.processChildren(await o)),this.refreshPromises.set(e,r),r.finally(()=>{this.refreshPromises.delete(e)}))}_onDidChangeCollapseState({node:e,deep:r}){e.element!==null&&!e.collapsed&&e.element.stale&&(r?this.collapse(e.element.element):this.refreshAndRenderNode(e.element,!1).catch(dl))}setChildren(e,r,o,c){let d=[...r];if(e.children.length===0&&d.length===0)return[];let h=new Map,b=new Map;for(let L of e.children)h.set(L.element,L),this.identityProvider&&b.set(L.id,{node:L,collapsed:this.tree.hasElement(L)&&this.tree.isCollapsed(L)});let w=[],N=d.map(L=>{let B=!!this.dataSource.hasChildren(L);if(!this.identityProvider){let ee=bsi({element:L,parent:e,hasChildren:B,defaultCollapseState:this.getDefaultCollapseState(L)});return B&&ee.defaultCollapseState===g7.PreserveOrExpanded&&w.push(ee),ee}let F=this.identityProvider.getId(L).toString(),Y=b.get(F);if(Y){let ee=Y.node;return h.delete(ee.element),this.nodes.delete(ee.element),this.nodes.set(L,ee),ee.element=L,ee.hasChildren=B,o?Y.collapsed?(ee.children.forEach(Te=>Esi(Te,Je=>this.nodes.delete(Je.element))),ee.children.splice(0,ee.children.length),ee.stale=!0):w.push(ee):B&&!Y.collapsed&&w.push(ee),ee}let Z=bsi({element:L,parent:e,id:F,hasChildren:B,defaultCollapseState:this.getDefaultCollapseState(L)});return c&&c.viewState.focus&&c.viewState.focus.indexOf(F)>-1&&c.focus.push(Z),c&&c.viewState.selection&&c.viewState.selection.indexOf(F)>-1&&c.selection.push(Z),(c&&c.viewState.expanded&&c.viewState.expanded.indexOf(F)>-1||B&&Z.defaultCollapseState===g7.PreserveOrExpanded)&&w.push(Z),Z});for(let L of h.values())Esi(L,B=>this.nodes.delete(B.element));for(let L of N)this.nodes.set(L.element,L);return e.children.splice(0,e.children.length,...N),e!==this.root&&this.autoExpandSingleChildren&&N.length===1&&w.length===0&&(N[0].forceExpanded=!0,w.push(N[0])),w}render(e,r,o){let c=e.children.map(h=>this.asTreeElement(h,r)),d=o&&{...o,diffIdentityProvider:o.diffIdentityProvider&&{getId(h){return o.diffIdentityProvider.getId(h.element)}}};this.tree.setChildren(e===this.root?null:e,c,d),e!==this.root&&this.tree.setCollapsible(e,e.hasChildren),this._onDidRender.fire()}asTreeElement(e,r){if(e.stale)return{element:e,collapsible:e.hasChildren,collapsed:!0};let o;return r&&r.viewState.expanded&&e.id&&r.viewState.expanded.indexOf(e.id)>-1?o=!1:e.forceExpanded?(o=!1,e.forceExpanded=!1):o=e.defaultCollapseState,{element:e,children:e.hasChildren?S_.map(e.children,c=>this.asTreeElement(c,r)):[],collapsible:e.hasChildren,collapsed:o}}processChildren(e){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),e}dispose(){this.disposables.dispose(),this.tree.dispose()}},Dsi=class l{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 l(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}},Isi=class{constructor(e,r,o,c){this.renderer=e,this.nodeMapper=r,this.compressibleNodeMapperProvider=o,this.onDidChangeTwistieState=c,this.renderedNodes=new Map,this.disposables=[],this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,r,o,c){this.renderer.renderElement(this.nodeMapper.map(e),r,o.templateData,c)}renderCompressedElements(e,r,o,c){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(e),r,o.templateData,c)}renderTwistie(e,r){return e.slow?(r.classList.add(...sl.asClassNameArray(_s.treeItemLoading)),!0):(r.classList.remove(...sl.asClassNameArray(_s.treeItemLoading)),!1)}disposeElement(e,r,o,c){var d,h;(h=(d=this.renderer).disposeElement)===null||h===void 0||h.call(d,this.nodeMapper.map(e),r,o.templateData,c)}disposeCompressedElements(e,r,o,c){var d,h;(h=(d=this.renderer).disposeCompressedElements)===null||h===void 0||h.call(d,this.compressibleNodeMapperProvider().map(e),r,o.templateData,c)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear(),this.disposables=Fp(this.disposables)}};NOt=class extends D_t{constructor(e,r,o,c,d,h,b={}){super(e,r,o,d,h,b),this.compressionDelegate=c,this.compressibleNodeMapper=new ILe(w=>new Dsi(w)),this.filter=b.filter}createTree(e,r,o,c,d){let h=new qUe(o),b=c.map(N=>new Isi(N,this.nodeMapper,()=>this.compressibleNodeMapper,this._onDidChangeNodeSlowState.event)),w=sVi(d)||{};return new KUe(e,r,h,b,w)}asTreeElement(e,r){return{incompressible:this.compressionDelegate.isIncompressible(e.element),...super.asTreeElement(e,r)}}updateOptions(e={}){this.tree.updateOptions(e)}render(e,r,o){if(!this.identityProvider)return super.render(e,r);let c=Y=>this.identityProvider.getId(Y).toString(),d=Y=>{let Z=new Set;for(let ee of Y){let Te=this.tree.getCompressedTreeNode(ee===this.root?null:ee);if(Te.element)for(let Je of Te.element.elements)Z.add(c(Je.element))}return Z},h=d(this.tree.getSelection()),b=d(this.tree.getFocus());super.render(e,r,o);let w=this.getSelection(),N=!1,L=this.getFocus(),B=!1,F=Y=>{let Z=Y.element;if(Z)for(let ee=0;ee{let o=this.filter.filter(r,1),c=aVi(o);if(c===2)throw new Error("Recursive tree visibility not supported in async data compressed trees");return c===1})),super.processChildren(e)}}});var AOt,B2i=ti(()=>{GUe();wOt();AOt=class extends $Ue{constructor(e,r,o,c,d,h={}){super(e,r,o,c,h),this.user=e,this.dataSource=d,this.identityProvider=h.identityProvider}createModel(e,r,o){return new hxe(e,r,o)}}});var xBn,CBn,I_t,Nsi,kBn,wBn,TBn,EBn,DBn,Asi,POt,XUe=ti(()=>{X_();ya();hd();xBn=new va("isMac",md,ce("isMac","Whether the operating system is macOS")),CBn=new va("isLinux",kS,ce("isLinux","Whether the operating system is Linux")),I_t=new va("isWindows",Bv,ce("isWindows","Whether the operating system is Windows")),Nsi=new va("isWeb",pB,ce("isWeb","Whether the platform is a web browser")),kBn=new va("isMacNative",md&&!pB,ce("isMacNative","Whether the operating system is macOS on a non-browser platform")),wBn=new va("isIOS",b6,ce("isIOS","Whether the operating system is iOS")),TBn=new va("isMobile",aDt,ce("isMobile","Whether the platform is a mobile web browser")),EBn=new va("isDevelopment",!1,!0),DBn=new va("productQualityType","",ce("productQualityType","Quality type of VS Code")),Asi="inputFocus",POt=new va(Asi,!1,ce("inputFocus","Whether keyboard focus is inside an input box"))});function $Ot(l,e){let r=l.createScoped(e.getHTMLElement());return J2i.bindTo(r),r}function GOt(l,e){let r=N_t.bindTo(l),o=()=>{let c=e.scrollTop===0,d=e.scrollHeight-e.renderHeight-e.scrollTop<1;c&&d?r.set("both"):c?r.set("top"):d?r.set("bottom"):r.set("none")};return o(),e.onDidScroll(o)}function Wre(l){return l.getValue(OLe)==="alt"}function KOt(l,e){var r;let o=l.get(_u),c=l.get(Jd),d=new Fr;return[{...e,keyboardNavigationDelegate:{mightProducePrintableCharacter(b){return c.mightProducePrintableCharacter(b)}},smoothScrolling:!!o.getValue(SQ),mouseWheelScrollSensitivity:o.getValue(Bre),fastScrollSensitivity:o.getValue(jre),multipleSelectionController:(r=e.multipleSelectionController)!==null&&r!==void 0?r:d.add(new Psi(o)),keyboardNavigationEventFilter:fVi(c),scrollByPage:!!o.getValue(bQ)},d]}function fVi(l){let e=!1;return r=>{if(r.toKeyCodeChord().isModifierKey())return!1;if(e)return e=!1,!1;let o=l.softDispatch(r,r.target);return o.kind===1?(e=!0,!1):(e=!1,o.kind===0)}}function K2i(l){let e=l.getValue(jsi);if(e==="highlight")return Rre.Highlight;if(e==="filter")return Rre.Filter;let r=l.getValue(FOt);if(r==="simple"||r==="highlight")return Rre.Highlight;if(r==="filter")return Rre.Filter}function X2i(l){let e=l.getValue(zsi);if(e==="fuzzy")return mxe.Fuzzy;if(e==="contiguous")return mxe.Contiguous}function L_t(l,e){var r;let o=l.get(_u),c=l.get(i8),d=l.get(Ec),h=l.get(Pa),b=()=>{let Y=d.getContextKeyValue($2i);if(Y==="automatic")return hQ.Automatic;if(Y==="trigger")return hQ.Trigger;if(d.getContextKeyValue(G2i)===!1)return hQ.Trigger;let ee=o.getValue(Wsi);if(ee==="automatic")return hQ.Automatic;if(ee==="trigger")return hQ.Trigger},w=e.horizontalScrolling!==void 0?e.horizontalScrolling:!!o.getValue(UV),[N,L]=h.invokeFunction(KOt,e),B=e.paddingBottom,F=e.renderIndentGuides!==void 0?e.renderIndentGuides:o.getValue(MOt);return{getTypeNavigationMode:b,disposable:L,options:{keyboardSupport:!1,...N,indent:typeof o.getValue(A_t)=="number"?o.getValue(A_t):void 0,renderIndentGuides:F,smoothScrolling:!!o.getValue(SQ),defaultFindMode:K2i(o),defaultFindMatchType:X2i(o),horizontalScrolling:w,scrollByPage:!!o.getValue(bQ),paddingBottom:B,hideTwistiesOfChildlessElements:e.hideTwistiesOfChildlessElements,expandOnlyOnTwistieClick:(r=e.expandOnlyOnTwistieClick)!==null&&r!==void 0?r:o.getValue(ROt)==="doubleClick",contextViewProvider:c,findWidgetStyles:OTi,enableStickyScroll:!!o.getValue(BOt),stickyScrollMaxItemCount:Number(o.getValue(jOt))}}}var a_e,Q1,VR,OOt,N_t,XBn,YBn,J2i,q2i,HOt,Fsi,Msi,Rsi,Bsi,UOt,cVi,JOt,lVi,qOt,uVi,dVi,$2i,G2i,OLe,LOt,UV,jsi,Wsi,FOt,bQ,zsi,A_t,MOt,SQ,Bre,jre,ROt,BOt,jOt,Psi,j2i,W2i,z2i,P_t,WOt,Lsi,Osi,zOt,V2i,H2i,VOt,U2i,LLe,_Vi,O_t=ti(()=>{nc();C2i();t_e();D2i();GUe();R2i();B2i();vsi();xc();co();ya();_y();Wne();hd();XUe();u3();bl();f1();DT();Fre();a_e=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},Q1=function(l,e){return function(r,o){e(r,o,l)}},VR=Ml("listService"),OOt=class{get lastFocusedList(){return this._lastFocusedWidget}constructor(){this.disposables=new Fr,this.lists=[],this._lastFocusedWidget=void 0,this._hasCreatedStyleController=!1}setLastFocusedList(e){var r,o;e!==this._lastFocusedWidget&&((r=this._lastFocusedWidget)===null||r===void 0||r.getHTMLElement().classList.remove("last-focused"),this._lastFocusedWidget=e,(o=this._lastFocusedWidget)===null||o===void 0||o.getHTMLElement().classList.add("last-focused"))}register(e,r){if(this._hasCreatedStyleController||(this._hasCreatedStyleController=!0,new u_t(bE(),"").style(i_e)),this.lists.some(c=>c.widget===e))throw new Error("Cannot register the same widget multiple times");let o={widget:e,extraContextKeys:r};return this.lists.push(o),G4e(e.getHTMLElement())&&this.setLastFocusedList(e),cA(e.onDidFocus(()=>this.setLastFocusedList(e)),Ma(()=>this.lists.splice(this.lists.indexOf(o),1)),e.onDidDispose(()=>{this.lists=this.lists.filter(c=>c!==o),this._lastFocusedWidget===e&&this.setLastFocusedList(void 0)}))}dispose(){this.disposables.dispose()}},N_t=new va("listScrollAtBoundary","none"),XBn=Ao.or(N_t.isEqualTo("top"),N_t.isEqualTo("both")),YBn=Ao.or(N_t.isEqualTo("bottom"),N_t.isEqualTo("both")),J2i=new va("listFocus",!0),q2i=new va("treestickyScrollFocused",!1),HOt=new va("listSupportsMultiselect",!0),Fsi=Ao.and(J2i,Ao.not(Asi),q2i.negate()),Msi=new va("listHasSelectionOrFocus",!1),Rsi=new va("listDoubleSelection",!1),Bsi=new va("listMultiSelection",!1),UOt=new va("listSelectionNavigation",!1),cVi=new va("listSupportsFind",!0),JOt=new va("treeElementCanCollapse",!1),lVi=new va("treeElementHasParent",!1),qOt=new va("treeElementCanExpand",!1),uVi=new va("treeElementHasChild",!1),dVi=new va("treeFindOpen",!1),$2i="listTypeNavigationMode",G2i="listAutomaticKeyboardNavigation";OLe="workbench.list.multiSelectModifier",LOt="workbench.list.openMode",UV="workbench.list.horizontalScrolling",jsi="workbench.list.defaultFindMode",Wsi="workbench.list.typeNavigationMode",FOt="workbench.list.keyboardNavigation",bQ="workbench.list.scrollByPage",zsi="workbench.list.defaultFindMatchType",A_t="workbench.tree.indent",MOt="workbench.tree.renderIndentGuides",SQ="workbench.list.smoothScrolling",Bre="workbench.list.mouseWheelScrollSensitivity",jre="workbench.list.fastScrollSensitivity",ROt="workbench.tree.expandMode",BOt="workbench.tree.enableStickyScroll",jOt="workbench.tree.stickyScrollMaxItemCount";Psi=class extends tn{constructor(e){super(),this.configurationService=e,this.useAltAsMultipleSelectionModifier=Wre(e),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(e=>{e.affectsConfiguration(OLe)&&(this.useAltAsMultipleSelectionModifier=Wre(this.configurationService))}))}isSelectionSingleChangeEvent(e){return this.useAltAsMultipleSelectionModifier?e.browserEvent.altKey:goi(e)}isSelectionRangeChangeEvent(e){return yoi(e)}};j2i=class extends TE{constructor(e,r,o,c,d,h,b,w,N){let L=typeof d.horizontalScrolling<"u"?d.horizontalScrolling:!!w.getValue(UV),[B,F]=N.invokeFunction(KOt,d);super(e,r,o,c,{keyboardSupport:!1,...B,horizontalScrolling:L}),this.disposables.add(F),this.contextKeyService=$Ot(h,this),this.disposables.add(GOt(this.contextKeyService,this)),this.listSupportsMultiSelect=HOt.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(d.multipleSelectionSupport!==!1),UOt.bindTo(this.contextKeyService).set(!!d.selectionNavigation),this.listHasSelectionOrFocus=Msi.bindTo(this.contextKeyService),this.listDoubleSelection=Rsi.bindTo(this.contextKeyService),this.listMultiSelection=Bsi.bindTo(this.contextKeyService),this.horizontalScrolling=d.horizontalScrolling,this._useAltAsMultipleSelectionModifier=Wre(w),this.disposables.add(this.contextKeyService),this.disposables.add(b.register(this)),this.updateStyles(d.overrideStyles),this.disposables.add(this.onDidChangeSelection(()=>{let Z=this.getSelection(),ee=this.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.listHasSelectionOrFocus.set(Z.length>0||ee.length>0),this.listMultiSelection.set(Z.length>1),this.listDoubleSelection.set(Z.length===2)})})),this.disposables.add(this.onDidChangeFocus(()=>{let Z=this.getSelection(),ee=this.getFocus();this.listHasSelectionOrFocus.set(Z.length>0||ee.length>0)})),this.disposables.add(w.onDidChangeConfiguration(Z=>{Z.affectsConfiguration(OLe)&&(this._useAltAsMultipleSelectionModifier=Wre(w));let ee={};if(Z.affectsConfiguration(UV)&&this.horizontalScrolling===void 0){let Te=!!w.getValue(UV);ee={...ee,horizontalScrolling:Te}}if(Z.affectsConfiguration(bQ)){let Te=!!w.getValue(bQ);ee={...ee,scrollByPage:Te}}if(Z.affectsConfiguration(SQ)){let Te=!!w.getValue(SQ);ee={...ee,smoothScrolling:Te}}if(Z.affectsConfiguration(Bre)){let Te=w.getValue(Bre);ee={...ee,mouseWheelScrollSensitivity:Te}}if(Z.affectsConfiguration(jre)){let Te=w.getValue(jre);ee={...ee,fastScrollSensitivity:Te}}Object.keys(ee).length>0&&this.updateOptions(ee)})),this.navigator=new WOt(this,{configurationService:w,...d}),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),e.overrideStyles!==void 0&&this.updateStyles(e.overrideStyles),e.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){this.style(e?yQ(e):i_e)}};j2i=a_e([Q1(5,Ec),Q1(6,VR),Q1(7,_u),Q1(8,Pa)],j2i);W2i=class extends gOt{constructor(e,r,o,c,d,h,b,w,N){let L=typeof d.horizontalScrolling<"u"?d.horizontalScrolling:!!w.getValue(UV),[B,F]=N.invokeFunction(KOt,d);super(e,r,o,c,{keyboardSupport:!1,...B,horizontalScrolling:L}),this.disposables=new Fr,this.disposables.add(F),this.contextKeyService=$Ot(h,this),this.disposables.add(GOt(this.contextKeyService,this.widget)),this.horizontalScrolling=d.horizontalScrolling,this.listSupportsMultiSelect=HOt.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(d.multipleSelectionSupport!==!1),UOt.bindTo(this.contextKeyService).set(!!d.selectionNavigation),this._useAltAsMultipleSelectionModifier=Wre(w),this.disposables.add(this.contextKeyService),this.disposables.add(b.register(this)),this.updateStyles(d.overrideStyles),this.disposables.add(w.onDidChangeConfiguration(Z=>{Z.affectsConfiguration(OLe)&&(this._useAltAsMultipleSelectionModifier=Wre(w));let ee={};if(Z.affectsConfiguration(UV)&&this.horizontalScrolling===void 0){let Te=!!w.getValue(UV);ee={...ee,horizontalScrolling:Te}}if(Z.affectsConfiguration(bQ)){let Te=!!w.getValue(bQ);ee={...ee,scrollByPage:Te}}if(Z.affectsConfiguration(SQ)){let Te=!!w.getValue(SQ);ee={...ee,smoothScrolling:Te}}if(Z.affectsConfiguration(Bre)){let Te=w.getValue(Bre);ee={...ee,mouseWheelScrollSensitivity:Te}}if(Z.affectsConfiguration(jre)){let Te=w.getValue(jre);ee={...ee,fastScrollSensitivity:Te}}Object.keys(ee).length>0&&this.updateOptions(ee)})),this.navigator=new WOt(this,{configurationService:w,...d}),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),e.overrideStyles!==void 0&&this.updateStyles(e.overrideStyles),e.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){this.style(e?yQ(e):i_e)}dispose(){this.disposables.dispose(),super.dispose()}};W2i=a_e([Q1(5,Ec),Q1(6,VR),Q1(7,_u),Q1(8,Pa)],W2i);z2i=class extends w_t{constructor(e,r,o,c,d,h,b,w,N,L){let B=typeof h.horizontalScrolling<"u"?h.horizontalScrolling:!!N.getValue(UV),[F,Y]=L.invokeFunction(KOt,h);super(e,r,o,c,d,{keyboardSupport:!1,...F,horizontalScrolling:B}),this.disposables.add(Y),this.contextKeyService=$Ot(b,this),this.disposables.add(GOt(this.contextKeyService,this)),this.listSupportsMultiSelect=HOt.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(h.multipleSelectionSupport!==!1),UOt.bindTo(this.contextKeyService).set(!!h.selectionNavigation),this.listHasSelectionOrFocus=Msi.bindTo(this.contextKeyService),this.listDoubleSelection=Rsi.bindTo(this.contextKeyService),this.listMultiSelection=Bsi.bindTo(this.contextKeyService),this.horizontalScrolling=h.horizontalScrolling,this._useAltAsMultipleSelectionModifier=Wre(N),this.disposables.add(this.contextKeyService),this.disposables.add(w.register(this)),this.updateStyles(h.overrideStyles),this.disposables.add(this.onDidChangeSelection(()=>{let ee=this.getSelection(),Te=this.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.listHasSelectionOrFocus.set(ee.length>0||Te.length>0),this.listMultiSelection.set(ee.length>1),this.listDoubleSelection.set(ee.length===2)})})),this.disposables.add(this.onDidChangeFocus(()=>{let ee=this.getSelection(),Te=this.getFocus();this.listHasSelectionOrFocus.set(ee.length>0||Te.length>0)})),this.disposables.add(N.onDidChangeConfiguration(ee=>{ee.affectsConfiguration(OLe)&&(this._useAltAsMultipleSelectionModifier=Wre(N));let Te={};if(ee.affectsConfiguration(UV)&&this.horizontalScrolling===void 0){let Je=!!N.getValue(UV);Te={...Te,horizontalScrolling:Je}}if(ee.affectsConfiguration(bQ)){let Je=!!N.getValue(bQ);Te={...Te,scrollByPage:Je}}if(ee.affectsConfiguration(SQ)){let Je=!!N.getValue(SQ);Te={...Te,smoothScrolling:Je}}if(ee.affectsConfiguration(Bre)){let Je=N.getValue(Bre);Te={...Te,mouseWheelScrollSensitivity:Je}}if(ee.affectsConfiguration(jre)){let Je=N.getValue(jre);Te={...Te,fastScrollSensitivity:Je}}Object.keys(Te).length>0&&this.updateOptions(Te)})),this.navigator=new Lsi(this,{configurationService:N,...h}),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),e.overrideStyles!==void 0&&this.updateStyles(e.overrideStyles),e.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){this.style(e?yQ(e):i_e)}dispose(){this.disposables.dispose(),super.dispose()}};z2i=a_e([Q1(6,Ec),Q1(7,VR),Q1(8,_u),Q1(9,Pa)],z2i);P_t=class extends tn{constructor(e,r){var o;super(),this.widget=e,this._onDidOpen=this._register(new wn),this.onDidOpen=this._onDidOpen.event,this._register(gs.filter(this.widget.onDidChangeSelection,c=>GY(c.browserEvent))(c=>this.onSelectionFromKeyboard(c))),this._register(this.widget.onPointer(c=>this.onPointer(c.element,c.browserEvent))),this._register(this.widget.onMouseDblClick(c=>this.onMouseDblClick(c.element,c.browserEvent))),typeof r?.openOnSingleClick!="boolean"&&r?.configurationService?(this.openOnSingleClick=r?.configurationService.getValue(LOt)!=="doubleClick",this._register(r?.configurationService.onDidChangeConfiguration(c=>{c.affectsConfiguration(LOt)&&(this.openOnSingleClick=r?.configurationService.getValue(LOt)!=="doubleClick")}))):this.openOnSingleClick=(o=r?.openOnSingleClick)!==null&&o!==void 0?o:!0}onSelectionFromKeyboard(e){if(e.elements.length!==1)return;let r=e.browserEvent,o=typeof r.preserveFocus=="boolean"?r.preserveFocus:!0,c=typeof r.pinned=="boolean"?r.pinned:!o;this._open(this.getSelectedElement(),o,c,!1,e.browserEvent)}onPointer(e,r){if(!this.openOnSingleClick||r.detail===2)return;let c=r.button===1,d=!0,h=c,b=r.ctrlKey||r.metaKey||r.altKey;this._open(e,d,h,b,r)}onMouseDblClick(e,r){if(!r)return;let o=r.target;if(o.classList.contains("monaco-tl-twistie")||o.classList.contains("monaco-icon-label")&&o.classList.contains("folder-icon")&&r.offsetX<16)return;let d=!1,h=!0,b=r.ctrlKey||r.metaKey||r.altKey;this._open(e,d,h,b,r)}_open(e,r,o,c,d){e&&this._onDidOpen.fire({editorOptions:{preserveFocus:r,pinned:o,revealIfVisible:!0},sideBySide:c,element:e,browserEvent:d})}},WOt=class extends P_t{constructor(e,r){super(e,r),this.widget=e}getSelectedElement(){return this.widget.getSelectedElements()[0]}},Lsi=class extends P_t{constructor(e,r){super(e,r)}getSelectedElement(){return this.widget.getSelectedElements()[0]}},Osi=class extends P_t{constructor(e,r){super(e,r)}getSelectedElement(){var e;return(e=this.widget.getSelection()[0])!==null&&e!==void 0?e:void 0}};zOt=class extends PLe{constructor(e,r,o,c,d,h,b,w,N){let{options:L,getTypeNavigationMode:B,disposable:F}=h.invokeFunction(L_t,d);super(e,r,o,c,L),this.disposables.add(F),this.internals=new LLe(this,d,B,d.overrideStyles,b,w,N),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};zOt=a_e([Q1(5,Pa),Q1(6,Ec),Q1(7,VR),Q1(8,_u)],zOt);V2i=class extends KUe{constructor(e,r,o,c,d,h,b,w,N){let{options:L,getTypeNavigationMode:B,disposable:F}=h.invokeFunction(L_t,d);super(e,r,o,c,L),this.disposables.add(F),this.internals=new LLe(this,d,B,d.overrideStyles,b,w,N),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};V2i=a_e([Q1(5,Pa),Q1(6,Ec),Q1(7,VR),Q1(8,_u)],V2i);H2i=class extends AOt{constructor(e,r,o,c,d,h,b,w,N,L){let{options:B,getTypeNavigationMode:F,disposable:Y}=b.invokeFunction(L_t,h);super(e,r,o,c,d,B),this.disposables.add(Y),this.internals=new LLe(this,h,F,h.overrideStyles,w,N,L),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles!==void 0&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};H2i=a_e([Q1(6,Pa),Q1(7,Ec),Q1(8,VR),Q1(9,_u)],H2i);VOt=class extends D_t{get onDidOpen(){return this.internals.onDidOpen}constructor(e,r,o,c,d,h,b,w,N,L){let{options:B,getTypeNavigationMode:F,disposable:Y}=b.invokeFunction(L_t,h);super(e,r,o,c,d,B),this.disposables.add(Y),this.internals=new LLe(this,h,F,h.overrideStyles,w,N,L),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};VOt=a_e([Q1(6,Pa),Q1(7,Ec),Q1(8,VR),Q1(9,_u)],VOt);U2i=class extends NOt{constructor(e,r,o,c,d,h,b,w,N,L,B){let{options:F,getTypeNavigationMode:Y,disposable:Z}=w.invokeFunction(L_t,b);super(e,r,o,c,d,h,F),this.disposables.add(Z),this.internals=new LLe(this,b,Y,b.overrideStyles,N,L,B),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};U2i=a_e([Q1(7,Pa),Q1(8,Ec),Q1(9,VR),Q1(10,_u)],U2i);LLe=class{get onDidOpen(){return this.navigator.onDidOpen}constructor(e,r,o,c,d,h,b){var w;this.tree=e,this.disposables=[],this.contextKeyService=$Ot(d,e),this.disposables.push(GOt(this.contextKeyService,e)),this.listSupportsMultiSelect=HOt.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(r.multipleSelectionSupport!==!1),UOt.bindTo(this.contextKeyService).set(!!r.selectionNavigation),this.listSupportFindWidget=cVi.bindTo(this.contextKeyService),this.listSupportFindWidget.set((w=r.findWidgetEnabled)!==null&&w!==void 0?w:!0),this.hasSelectionOrFocus=Msi.bindTo(this.contextKeyService),this.hasDoubleSelection=Rsi.bindTo(this.contextKeyService),this.hasMultiSelection=Bsi.bindTo(this.contextKeyService),this.treeElementCanCollapse=JOt.bindTo(this.contextKeyService),this.treeElementHasParent=lVi.bindTo(this.contextKeyService),this.treeElementCanExpand=qOt.bindTo(this.contextKeyService),this.treeElementHasChild=uVi.bindTo(this.contextKeyService),this.treeFindOpen=dVi.bindTo(this.contextKeyService),this.treeStickyScrollFocused=q2i.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=Wre(b),this.updateStyleOverrides(c);let L=()=>{let F=e.getFocus()[0];if(!F)return;let Y=e.getNode(F);this.treeElementCanCollapse.set(Y.collapsible&&!Y.collapsed),this.treeElementHasParent.set(!!e.getParentElement(F)),this.treeElementCanExpand.set(Y.collapsible&&Y.collapsed),this.treeElementHasChild.set(!!e.getFirstElementChild(F))},B=new Set;B.add($2i),B.add(G2i),this.disposables.push(this.contextKeyService,h.register(e),e.onDidChangeSelection(()=>{let F=e.getSelection(),Y=e.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.hasSelectionOrFocus.set(F.length>0||Y.length>0),this.hasMultiSelection.set(F.length>1),this.hasDoubleSelection.set(F.length===2)})}),e.onDidChangeFocus(()=>{let F=e.getSelection(),Y=e.getFocus();this.hasSelectionOrFocus.set(F.length>0||Y.length>0),L()}),e.onDidChangeCollapseState(L),e.onDidChangeModel(L),e.onDidChangeFindOpenState(F=>this.treeFindOpen.set(F)),e.onDidChangeStickyScrollFocused(F=>this.treeStickyScrollFocused.set(F)),b.onDidChangeConfiguration(F=>{let Y={};if(F.affectsConfiguration(OLe)&&(this._useAltAsMultipleSelectionModifier=Wre(b)),F.affectsConfiguration(A_t)){let Z=b.getValue(A_t);Y={...Y,indent:Z}}if(F.affectsConfiguration(MOt)&&r.renderIndentGuides===void 0){let Z=b.getValue(MOt);Y={...Y,renderIndentGuides:Z}}if(F.affectsConfiguration(SQ)){let Z=!!b.getValue(SQ);Y={...Y,smoothScrolling:Z}}if(F.affectsConfiguration(jsi)||F.affectsConfiguration(FOt)){let Z=K2i(b);Y={...Y,defaultFindMode:Z}}if(F.affectsConfiguration(Wsi)||F.affectsConfiguration(FOt)){let Z=o();Y={...Y,typeNavigationMode:Z}}if(F.affectsConfiguration(zsi)){let Z=X2i(b);Y={...Y,defaultFindMatchType:Z}}if(F.affectsConfiguration(UV)&&r.horizontalScrolling===void 0){let Z=!!b.getValue(UV);Y={...Y,horizontalScrolling:Z}}if(F.affectsConfiguration(bQ)){let Z=!!b.getValue(bQ);Y={...Y,scrollByPage:Z}}if(F.affectsConfiguration(ROt)&&r.expandOnlyOnTwistieClick===void 0&&(Y={...Y,expandOnlyOnTwistieClick:b.getValue(ROt)==="doubleClick"}),F.affectsConfiguration(BOt)){let Z=b.getValue(BOt);Y={...Y,enableStickyScroll:Z}}if(F.affectsConfiguration(jOt)){let Z=Math.max(1,b.getValue(jOt));Y={...Y,stickyScrollMaxItemCount:Z}}if(F.affectsConfiguration(Bre)){let Z=b.getValue(Bre);Y={...Y,mouseWheelScrollSensitivity:Z}}if(F.affectsConfiguration(jre)){let Z=b.getValue(jre);Y={...Y,fastScrollSensitivity:Z}}Object.keys(Y).length>0&&e.updateOptions(Y)}),this.contextKeyService.onDidChangeContext(F=>{F.affectsSome(B)&&e.updateOptions({typeNavigationMode:o()})})),this.navigator=new Osi(e,{configurationService:b,...r}),this.disposables.push(this.navigator)}updateOptions(e){e.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyleOverrides(e){this.tree.style(e?yQ(e):i_e)}dispose(){this.disposables=Fp(this.disposables)}};LLe=a_e([Q1(4,Ec),Q1(5,VR),Q1(6,_u)],LLe);_Vi=pm.as(jP.Configuration);_Vi.registerConfiguration({id:"workbench",order:7,title:ce("workbenchConfigurationTitle","Workbench"),type:"object",properties:{[OLe]:{type:"string",enum:["ctrlCmd","alt"],markdownEnumDescriptions:[ce("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),ce("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:ce({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.")},[LOt]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:ce({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.")},[UV]:{type:"boolean",default:!1,description:ce("horizontalScrolling setting","Controls whether lists and trees support horizontal scrolling in the workbench. Warning: turning on this setting has a performance implication.")},[bQ]:{type:"boolean",default:!1,description:ce("list.scrollByPage","Controls whether clicks in the scrollbar scroll page by page.")},[A_t]:{type:"number",default:8,minimum:4,maximum:40,description:ce("tree indent setting","Controls tree indentation in pixels.")},[MOt]:{type:"string",enum:["none","onHover","always"],default:"onHover",description:ce("render tree indent guides","Controls whether the tree should render indent guides.")},[SQ]:{type:"boolean",default:!1,description:ce("list smoothScrolling setting","Controls whether lists and trees have smooth scrolling.")},[Bre]:{type:"number",default:1,markdownDescription:ce("Mouse Wheel Scroll Sensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")},[jre]:{type:"number",default:5,markdownDescription:ce("Fast Scroll Sensitivity","Scrolling speed multiplier when pressing `Alt`.")},[jsi]:{type:"string",enum:["highlight","filter"],enumDescriptions:[ce("defaultFindModeSettingKey.highlight","Highlight elements when searching. Further up and down navigation will traverse only the highlighted elements."),ce("defaultFindModeSettingKey.filter","Filter elements when searching.")],default:"highlight",description:ce("defaultFindModeSettingKey","Controls the default find mode for lists and trees in the workbench.")},[FOt]:{type:"string",enum:["simple","highlight","filter"],enumDescriptions:[ce("keyboardNavigationSettingKey.simple","Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),ce("keyboardNavigationSettingKey.highlight","Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),ce("keyboardNavigationSettingKey.filter","Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")],default:"highlight",description:ce("keyboardNavigationSettingKey","Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter."),deprecated:!0,deprecationMessage:ce("keyboardNavigationSettingKeyDeprecated","Please use 'workbench.list.defaultFindMode' and 'workbench.list.typeNavigationMode' instead.")},[zsi]:{type:"string",enum:["fuzzy","contiguous"],enumDescriptions:[ce("defaultFindMatchTypeSettingKey.fuzzy","Use fuzzy matching when searching."),ce("defaultFindMatchTypeSettingKey.contiguous","Use contiguous matching when searching.")],default:"fuzzy",description:ce("defaultFindMatchTypeSettingKey","Controls the type of matching used when searching lists and trees in the workbench.")},[ROt]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:ce("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.")},[BOt]:{type:"boolean",default:!0,description:ce("sticky scroll","Controls whether sticky scrolling is enabled in trees.")},[jOt]:{type:"number",minimum:1,default:7,markdownDescription:ce("sticky scroll maximum items","Controls the number of sticky elements displayed in the tree when `#workbench.tree.enableStickyScroll#` is enabled.")},[Wsi]:{type:"string",enum:["automatic","trigger"],default:"automatic",markdownDescription:ce("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.")}}})});var Y2i=ti(()=>{});var zre,Vsi=ti(()=>{nc();RV();JI();qfe();co();YL();zre=class l extends tn{constructor(e,r){var o;super(),this.options=r,this.text="",this.title="",this.highlights=[],this.didEverRender=!1,this.supportIcons=(o=r?.supportIcons)!==null&&o!==void 0?o:!1,this.domNode=Ro(e,qo("span.monaco-highlighted-label"))}get element(){return this.domNode}set(e,r=[],o="",c){e||(e=""),c&&(e=l.escapeNewLines(e,r)),!(this.didEverRender&&this.text===e&&this.title===o&&FI(this.highlights,r))&&(this.text=e,this.title=o,this.highlights=r,this.render())}render(){var e,r,o,c;let d=[],h=0;for(let b of this.highlights){if(b.end===b.start)continue;if(h{c=d===`\r +`?-1:0,h+=o;for(let b of r)b.end<=h||(b.start>=h&&(b.start+=c),b.end>=h&&(b.end+=c));return o+=c,"\u23CE"})}}});function pVi(l,e,r){if(!r)return;let o=0;return l.map(c=>{let d={start:o,end:o+c.length},h=r.map(b=>zD.intersect(d,b)).filter(b=>!zD.isEmpty(b)).map(({start:b,end:w})=>({start:b-o,end:w-o}));return o=d.end+e.length,h})}var FLe,c_e,Hsi,Usi,XOt=ti(()=>{Y2i();nc();Vsi();co();YL();Vft();JI();RV();Fh();_Le();FLe=class{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 className(e){this.disposed||e===this._className||(this._className=e,this._element.className=e)}set empty(e){this.disposed||e===this._empty||(this._empty=e,this._element.style.marginLeft=e?"0":"")}dispose(){this.disposed=!0}},c_e=class extends tn{constructor(e,r){var o;super(),this.customHovers=new Map,this.creationOptions=r,this.domNode=this._register(new FLe(Ro(e,qo(".monaco-icon-label")))),this.labelContainer=Ro(this.domNode.element,qo(".monaco-icon-label-container")),this.nameContainer=Ro(this.labelContainer,qo("span.monaco-icon-name-container")),r?.supportHighlights||r?.supportIcons?this.nameNode=this._register(new Usi(this.nameContainer,!!r.supportIcons)):this.nameNode=new Hsi(this.nameContainer),this.hoverDelegate=(o=r?.hoverDelegate)!==null&&o!==void 0?o:AS("mouse")}get element(){return this.domNode.element}setLabel(e,r,o){var c;let d=["monaco-icon-label"],h=["monaco-icon-label-container"],b="";o&&(o.extraClasses&&d.push(...o.extraClasses),o.italic&&d.push("italic"),o.strikethrough&&d.push("strikethrough"),o.disabledCommand&&h.push("disabled"),o.title&&(typeof o.title=="string"?b+=o.title:b+=e));let w=this.domNode.element.querySelector(".monaco-icon-label-iconpath");if(o?.iconPath){let N;!w||!Wv(w)?(N=qo(".monaco-icon-label-iconpath"),this.domNode.element.prepend(N)):N=w,N.style.backgroundImage=SB(o?.iconPath)}else w&&w.remove();if(this.domNode.className=d.join(" "),this.domNode.element.setAttribute("aria-label",b),this.labelContainer.className=h.join(" "),this.setupHover(o?.descriptionTitle?this.labelContainer:this.element,o?.title),this.nameNode.setLabel(e,o),r||this.descriptionNode){let N=this.getOrCreateDescriptionNode();N instanceof zre?(N.set(r||"",o?o.descriptionMatches:void 0,void 0,o?.labelEscapeNewLines),this.setupHover(N.element,o?.descriptionTitle)):(N.textContent=r&&o?.labelEscapeNewLines?zre.escapeNewLines(r,[]):r||"",this.setupHover(N.element,o?.descriptionTitle||""),N.empty=!r)}if(o?.suffix||this.suffixNode){let N=this.getOrCreateSuffixNode();N.textContent=(c=o?.suffix)!==null&&c!==void 0?c:""}}setupHover(e,r){let o=this.customHovers.get(e);if(o&&(o.dispose(),this.customHovers.delete(e)),!r){e.removeAttribute("title");return}if(this.hoverDelegate.showNativeHover)(function(d,h){Fw(h)?d.title=rUe(h):h?.markdownNotSupportedFallback?d.title=h.markdownNotSupportedFallback:d.removeAttribute("title")})(e,r);else{let c=qI().setupUpdatableHover(this.hoverDelegate,e,r);c&&this.customHovers.set(e,c)}}dispose(){super.dispose();for(let e of this.customHovers.values())e.dispose();this.customHovers.clear()}getOrCreateSuffixNode(){if(!this.suffixNode){let e=this._register(new FLe(B0i(this.nameContainer,qo("span.monaco-icon-suffix-container"))));this.suffixNode=this._register(new FLe(Ro(e.element,qo("span.label-suffix"))))}return this.suffixNode}getOrCreateDescriptionNode(){var e;if(!this.descriptionNode){let r=this._register(new FLe(Ro(this.labelContainer,qo("span.monaco-icon-description-container"))));!((e=this.creationOptions)===null||e===void 0)&&e.supportDescriptionHighlights?this.descriptionNode=this._register(new zre(Ro(r.element,qo("span.label-description")),{supportIcons:!!this.creationOptions.supportIcons})):this.descriptionNode=this._register(new FLe(Ro(r.element,qo("span.label-description"))))}return this.descriptionNode}},Hsi=class{constructor(e){this.container=e,this.label=void 0,this.singleLabel=void 0}setLabel(e,r){if(!(this.label===e&&FI(this.options,r)))if(this.label=e,this.options=r,typeof e=="string")this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=Ro(this.container,qo("a.label-name",{id:r?.domId}))),this.singleLabel.textContent=e;else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;for(let o=0;o{});var YOt,QOt,Vre,F_t=ti(()=>{nc();RV();JI();c3t();co();YL();Q2i();ya();YOt=qo,QOt={keybindingLabelBackground:void 0,keybindingLabelForeground:void 0,keybindingLabelBorder:void 0,keybindingLabelBottomBorder:void 0,keybindingLabelShadow:void 0},Vre=class l extends tn{constructor(e,r,o){super(),this.os=r,this.keyElements=new Set,this.options=o||Object.create(null);let c=this.options.keybindingLabelForeground;this.domNode=Ro(e,YOt(".monaco-keybinding")),c&&(this.domNode.style.color=c),this.hover=this._register(qI().setupUpdatableHover(AS("mouse"),this.domNode,"")),this.didEverRender=!1,e.appendChild(this.domNode)}get element(){return this.domNode}set(e,r){this.didEverRender&&this.keybinding===e&&l.areSame(this.matches,r)||(this.keybinding=e,this.matches=r,this.render())}render(){var e;if(this.clear(),this.keybinding){let r=this.keybinding.getChords();r[0]&&this.renderChord(this.domNode,r[0],this.matches?this.matches.firstPart:null);for(let c=1;cc.length)return 1}return 0}var Z2i,Mjn,Rjn,tEi=ti(()=>{VY();Z2i=new Bw(()=>{let l=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});return{collator:l,collatorIsNumeric:l.resolvedOptions().numeric}}),Mjn=new Bw(()=>({collator:new Intl.Collator(void 0,{numeric:!0})})),Rjn=new Bw(()=>({collator:new Intl.Collator(void 0,{numeric:!0,sensitivity:"accent"})}))});function gVi(l,e){let{text:r,iconOffsets:o}=e;if(!o||o.length===0)return iEi(l,r);let c=sfe(r," "),d=r.length-c.length,h=iEi(l,c);if(h)for(let b of h){let w=o[b.start+d]+d;b.start+=w,b.end+=w}return h}function iEi(l,e){let r=e.toLowerCase().indexOf(l.toLowerCase());return r!==-1?[{start:r,end:r+l.length}]:null}function yVi(l,e,r){let o=l.labelHighlights||[],c=e.labelHighlights||[];return o.length&&!c.length?-1:!o.length&&c.length?1:o.length===0&&c.length===0?0:eEi(l.saneSortLabel,e.saneSortLabel,r)}var t8t,Jsi,qsi,xQ,ZOt,qP,Hre,Ure,$si,Gsi,e8t,M_t,R_t,YUe,nEi=ti(()=>{nc();xc();ya();bl();O_t();x0();co();lA();X_();DSe();XOt();F_t();zV();Zq();s0();Voi();VY();_Le();tEi();Mu();GUe();Ud();Du();a8();KO();t8t=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},Jsi=function(l,e){return function(r,o){e(r,o,l)}},xQ=qo,ZOt=class{constructor(e,r,o){this.index=e,this.hasCheckbox=r,this._hidden=!1,this._init=new Bw(()=>{var c;let d=(c=o.label)!==null&&c!==void 0?c:"",h=oUe(d).text.trim(),b=o.ariaLabel||[d,this.saneDescription,this.saneDetail].map(w=>owi(w)).filter(w=>!!w).join(", ");return{saneLabel:d,saneSortLabel:h,saneAriaLabel:b}}),this._saneDescription=o.description,this._saneTooltip=o.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}},qP=class extends ZOt{constructor(e,r,o,c,d,h){var b,w,N;super(e,r,d),this.fireButtonTriggered=o,this._onChecked=c,this.item=d,this._separator=h,this._checked=!1,this.onChecked=r?gs.map(gs.filter(this._onChecked.event,L=>L.element===this),L=>L.checked):gs.None,this._saneDetail=d.detail,this._labelHighlights=(b=d.highlights)===null||b===void 0?void 0:b.label,this._descriptionHighlights=(w=d.highlights)===null||w===void 0?void 0:w.description,this._detailHighlights=(N=d.highlights)===null||N===void 0?void 0:N.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}};(function(l){l[l.NONE=0]="NONE",l[l.MOUSE_HOVER=1]="MOUSE_HOVER",l[l.ACTIVE_ITEM=2]="ACTIVE_ITEM"})(Hre||(Hre={}));Ure=class extends ZOt{constructor(e,r,o){super(e,!1,o),this.fireSeparatorButtonTriggered=r,this.separator=o,this.children=new Array,this.focusInsideSeparator=Hre.NONE}},$si=class{getHeight(e){return e instanceof Ure?30:e.saneDetail?44:22}getTemplateId(e){return e instanceof qP?M_t.ID:R_t.ID}},Gsi=class{getWidgetAriaLabel(){return ce("quickInput","Quick Input")}getAriaLabel(e){var r;return!((r=e.separator)===null||r===void 0)&&r.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 qP)))return{get value(){return e.checked},onDidChange:r=>e.onChecked(()=>r())}}},e8t=class{constructor(e){this.hoverDelegate=e}renderTemplate(e){let r=Object.create(null);r.toDisposeElement=new Fr,r.toDisposeTemplate=new Fr,r.entry=Ro(e,xQ(".quick-input-list-entry"));let o=Ro(r.entry,xQ("label.quick-input-list-label"));r.toDisposeTemplate.add(qh(o,ls.CLICK,N=>{r.checkbox.offsetParent||N.preventDefault()})),r.checkbox=Ro(o,xQ("input.quick-input-list-checkbox")),r.checkbox.type="checkbox";let c=Ro(o,xQ(".quick-input-list-rows")),d=Ro(c,xQ(".quick-input-list-row")),h=Ro(c,xQ(".quick-input-list-row"));r.label=new c_e(d,{supportHighlights:!0,supportDescriptionHighlights:!0,supportIcons:!0,hoverDelegate:this.hoverDelegate}),r.toDisposeTemplate.add(r.label),r.icon=hVe(r.label.element,xQ(".quick-input-list-icon"));let b=Ro(d,xQ(".quick-input-list-entry-keybinding"));r.keybinding=new Vre(b,gE),r.toDisposeTemplate.add(r.keybinding);let w=Ro(h,xQ(".quick-input-list-label-meta"));return r.detail=new c_e(w,{supportHighlights:!0,supportIcons:!0,hoverDelegate:this.hoverDelegate}),r.toDisposeTemplate.add(r.detail),r.separator=Ro(r.entry,xQ(".quick-input-list-separator")),r.actionBar=new Vw(r.entry,this.hoverDelegate?{hoverDelegate:this.hoverDelegate}:void 0),r.actionBar.domNode.classList.add("quick-input-list-entry-action-bar"),r.toDisposeTemplate.add(r.actionBar),r}disposeTemplate(e){e.toDisposeElement.dispose(),e.toDisposeTemplate.dispose()}disposeElement(e,r,o){o.toDisposeElement.clear(),o.actionBar.clear()}},M_t=qsi=class extends e8t{constructor(e,r){super(e),this.themeService=r,this._itemsWithSeparatorsFrequency=new Map}get templateId(){return qsi.ID}renderTemplate(e){let r=super.renderTemplate(e);return r.toDisposeTemplate.add(qh(r.checkbox,ls.CHANGE,o=>{r.element.checked=r.checkbox.checked})),r}renderElement(e,r,o){var c,d,h;let b=e.element;o.element=b,b.element=(c=o.entry)!==null&&c!==void 0?c:void 0;let w=b.item;o.checkbox.checked=b.checked,o.toDisposeElement.add(b.onChecked(ee=>o.checkbox.checked=ee)),o.checkbox.disabled=b.checkboxDisabled;let{labelHighlights:N,descriptionHighlights:L,detailHighlights:B}=b;if(w.iconPath){let ee=ere(this.themeService.getColorTheme().type)?w.iconPath.dark:(d=w.iconPath.light)!==null&&d!==void 0?d:w.iconPath.dark,Te=qc.revive(ee);o.icon.className="quick-input-list-icon",o.icon.style.backgroundImage=SB(Te)}else o.icon.style.backgroundImage="",o.icon.className=w.iconClass?`quick-input-list-icon ${w.iconClass}`:"";let F;!b.saneTooltip&&b.saneDescription&&(F={markdown:{value:b.saneDescription,supportThemeIcons:!0},markdownNotSupportedFallback:b.saneDescription});let Y={matches:N||[],descriptionTitle:F,descriptionMatches:L||[],labelEscapeNewLines:!0};if(Y.extraClasses=w.iconClasses,Y.italic=w.italic,Y.strikethrough=w.strikethrough,o.entry.classList.remove("quick-input-list-separator-as-item"),o.label.setLabel(b.saneLabel,b.saneDescription,Y),o.keybinding.set(w.keybinding),b.saneDetail){let ee;b.saneTooltip||(ee={markdown:{value:b.saneDetail,supportThemeIcons:!0},markdownNotSupportedFallback:b.saneDetail}),o.detail.element.style.display="",o.detail.setLabel(b.saneDetail,void 0,{matches:B,title:ee,labelEscapeNewLines:!0})}else o.detail.element.style.display="none";!((h=b.separator)===null||h===void 0)&&h.label?(o.separator.textContent=b.separator.label,o.separator.style.display="",this.addItemWithSeparator(b)):o.separator.style.display="none",o.entry.classList.toggle("quick-input-list-separator-border",!!b.separator);let Z=w.buttons;Z&&Z.length?(o.actionBar.push(Z.map((ee,Te)=>FUe(ee,`id-${Te}`,()=>b.fireButtonTriggered({button:ee,item:b.item}))),{icon:!0,label:!1}),o.entry.classList.add("has-actions")):o.entry.classList.remove("has-actions")}disposeElement(e,r,o){this.removeItemWithSeparator(e.element),super.disposeElement(e,r,o)}isItemWithSeparatorVisible(e){return this._itemsWithSeparatorsFrequency.has(e)}addItemWithSeparator(e){this._itemsWithSeparatorsFrequency.set(e,(this._itemsWithSeparatorsFrequency.get(e)||0)+1)}removeItemWithSeparator(e){let r=this._itemsWithSeparatorsFrequency.get(e)||0;r>1?this._itemsWithSeparatorsFrequency.set(e,r-1):this._itemsWithSeparatorsFrequency.delete(e)}};M_t.ID="quickpickitem";M_t=qsi=t8t([Jsi(1,Hg)],M_t);R_t=class l extends e8t{constructor(){super(...arguments),this._visibleSeparatorsFrequency=new Map}get templateId(){return l.ID}get visibleSeparators(){return[...this._visibleSeparatorsFrequency.keys()]}isSeparatorVisible(e){return this._visibleSeparatorsFrequency.has(e)}renderElement(e,r,o){var c;let d=e.element;o.element=d,d.element=(c=o.entry)!==null&&c!==void 0?c:void 0,d.element.classList.toggle("focus-inside",!!d.focusInsideSeparator);let h=d.separator,{labelHighlights:b,descriptionHighlights:w,detailHighlights:N}=d;o.icon.style.backgroundImage="",o.icon.className="";let L;!d.saneTooltip&&d.saneDescription&&(L={markdown:{value:d.saneDescription,supportThemeIcons:!0},markdownNotSupportedFallback:d.saneDescription});let B={matches:b||[],descriptionTitle:L,descriptionMatches:w||[],labelEscapeNewLines:!0};if(o.entry.classList.add("quick-input-list-separator-as-item"),o.label.setLabel(d.saneLabel,d.saneDescription,B),d.saneDetail){let Y;d.saneTooltip||(Y={markdown:{value:d.saneDetail,supportThemeIcons:!0},markdownNotSupportedFallback:d.saneDetail}),o.detail.element.style.display="",o.detail.setLabel(d.saneDetail,void 0,{matches:N,title:Y,labelEscapeNewLines:!0})}else o.detail.element.style.display="none";o.separator.style.display="none",o.entry.classList.add("quick-input-list-separator-border");let F=h.buttons;F&&F.length?(o.actionBar.push(F.map((Y,Z)=>FUe(Y,`id-${Z}`,()=>d.fireSeparatorButtonTriggered({button:Y,separator:d.separator}))),{icon:!0,label:!1}),o.entry.classList.add("has-actions")):o.entry.classList.remove("has-actions"),this.addSeparator(d)}disposeElement(e,r,o){var c;this.removeSeparator(e.element),this.isSeparatorVisible(e.element)||(c=e.element.element)===null||c===void 0||c.classList.remove("focus-inside"),super.disposeElement(e,r,o)}addSeparator(e){this._visibleSeparatorsFrequency.set(e,(this._visibleSeparatorsFrequency.get(e)||0)+1)}removeSeparator(e){let r=this._visibleSeparatorsFrequency.get(e)||0;r>1?this._visibleSeparatorsFrequency.set(e,r-1):this._visibleSeparatorsFrequency.delete(e)}};R_t.ID="quickpickseparator";YUe=class extends tn{constructor(e,r,o,c,d,h){super(),this.parent=e,this.hoverDelegate=r,this.linkOpenerDelegate=o,this.accessibilityService=h,this._onKeyDown=new wn,this._onLeave=new wn,this.onLeave=this._onLeave.event,this._onChangedAllVisibleChecked=new wn,this.onChangedAllVisibleChecked=this._onChangedAllVisibleChecked.event,this._onChangedCheckedCount=new wn,this.onChangedCheckedCount=this._onChangedCheckedCount.event,this._onChangedVisibleCount=new wn,this.onChangedVisibleCount=this._onChangedVisibleCount.event,this._onChangedCheckedElements=new wn,this.onChangedCheckedElements=this._onChangedCheckedElements.event,this._onButtonTriggered=new wn,this.onButtonTriggered=this._onButtonTriggered.event,this._onSeparatorButtonTriggered=new wn,this.onSeparatorButtonTriggered=this._onSeparatorButtonTriggered.event,this._elementChecked=new wn,this._inputElements=new Array,this._elementTree=new Array,this._itemElements=new Array,this._elementDisposable=this._register(new Fr),this._shouldFireCheckedEvents=!0,this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._matchOnLabelMode="fuzzy",this._sortByLabel=!0,this._shouldLoop=!0,this._container=Ro(this.parent,xQ(".quick-input-list")),this._separatorRenderer=new R_t(r),this._itemRenderer=d.createInstance(M_t,r),this._tree=this._register(d.createInstance(zOt,"QuickInput",this._container,new $si,[this._itemRenderer,this._separatorRenderer],{accessibilityProvider:new Gsi,setRowLineHeight:!1,multipleSelectionSupport:!1,hideTwistiesOfChildlessElements:!0,renderIndentGuides:ALe.None,findWidgetEnabled:!1,indent:0,horizontalScrolling:!1,allowNonCollapsibleParents:!0,alwaysConsumeMouseWheel:!0})),this._tree.getHTMLElement().id=c,this._registerListeners()}get onDidChangeFocus(){return gs.map(this._tree.onDidChangeFocus,e=>e.elements.filter(r=>r instanceof qP).map(r=>r.item))}get onDidChangeSelection(){return gs.map(this._tree.onDidChangeSelection,e=>({items:e.elements.filter(r=>r instanceof qP).map(r=>r.item),event:e.browserEvent}))}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._registerOnElementChecked(),this._registerOnContextMenu(),this._registerHoverListeners(),this._registerSelectionChangeListener(),this._registerSeparatorActionShowingListeners()}_registerOnKeyDown(){this._register(this._tree.onKeyDown(e=>{let r=new Jp(e);switch(r.keyCode){case 10:this.toggleCheckbox();break}this._onKeyDown.fire(r)}))}_registerOnContainerClick(){this._register(Jr(this._container,ls.CLICK,e=>{(e.x||e.y)&&this._onLeave.fire()}))}_registerOnMouseMiddleClick(){this._register(Jr(this._container,ls.AUXCLICK,e=>{e.button===1&&this._onLeave.fire()}))}_registerOnElementChecked(){this._register(this._elementChecked.event(e=>this._fireCheckedEvents()))}_registerOnContextMenu(){this._register(this._tree.onContextMenu(e=>{e.element&&(e.browserEvent.preventDefault(),this._tree.setSelection([e.element]))}))}_registerHoverListeners(){let e=this._register(new cVe(this.hoverDelegate.delay));this._register(this._tree.onMouseOver(async r=>{var o;if($Qt(r.browserEvent.target)){e.cancel();return}if(!(!$Qt(r.browserEvent.relatedTarget)&&ES(r.browserEvent.relatedTarget,(o=r.element)===null||o===void 0?void 0:o.element)))try{await e.trigger(async()=>{r.element instanceof qP&&this.showHover(r.element)})}catch(c){if(!MI(c))throw c}})),this._register(this._tree.onMouseOut(r=>{var o;ES(r.browserEvent.relatedTarget,(o=r.element)===null||o===void 0?void 0:o.element)||e.cancel()}))}_registerSeparatorActionShowingListeners(){this._register(this._tree.onDidChangeFocus(e=>{let r=e.elements[0]?this._tree.getParentElement(e.elements[0]):null;for(let o of this._separatorRenderer.visibleSeparators){let c=o===r;!!(o.focusInsideSeparator&Hre.ACTIVE_ITEM)!==c&&(c?o.focusInsideSeparator|=Hre.ACTIVE_ITEM:o.focusInsideSeparator&=~Hre.ACTIVE_ITEM,this._tree.rerender(o))}})),this._register(this._tree.onMouseOver(e=>{let r=e.element?this._tree.getParentElement(e.element):null;for(let o of this._separatorRenderer.visibleSeparators){if(o!==r)continue;!!(o.focusInsideSeparator&Hre.MOUSE_HOVER)||(o.focusInsideSeparator|=Hre.MOUSE_HOVER,this._tree.rerender(o))}})),this._register(this._tree.onMouseOut(e=>{let r=e.element?this._tree.getParentElement(e.element):null;for(let o of this._separatorRenderer.visibleSeparators){if(o!==r)continue;!!(o.focusInsideSeparator&Hre.MOUSE_HOVER)&&(o.focusInsideSeparator&=~Hre.MOUSE_HOVER,this._tree.rerender(o))}}))}_registerSelectionChangeListener(){this._register(this._tree.onDidChangeSelection(e=>{let r=e.elements.filter(o=>o instanceof qP);r.length!==e.elements.length&&(e.elements.length===1&&e.elements[0]instanceof Ure&&(this._tree.setFocus([e.elements[0].children[0]]),this._tree.reveal(e.elements[0],0)),this._tree.setSelection(r))}))}getAllVisibleChecked(){return this._allVisibleChecked(this._itemElements,!1)}getCheckedCount(){return this._itemElements.filter(e=>e.checked).length}getVisibleCount(){return this._itemElements.filter(e=>!e.hidden).length}setAllVisibleChecked(e){try{this._shouldFireCheckedEvents=!1,this._itemElements.forEach(r=>{!r.hidden&&!r.checkboxDisabled&&(r.checked=e)})}finally{this._shouldFireCheckedEvents=!0,this._fireCheckedEvents()}}setElements(e){this._elementDisposable.clear(),this._inputElements=e;let r=this.parent.classList.contains("show-checkboxes"),o;this._itemElements=new Array,this._elementTree=e.reduce((h,b,w)=>{let N;if(b.type==="separator"){if(!b.buttons)return h;o=new Ure(w,L=>this.fireSeparatorButtonTriggered(L),b),N=o}else{let L=w>0?e[w-1]:void 0,B;L&&L.type==="separator"&&!L.buttons&&(o=void 0,B=L);let F=new qP(w,r,Y=>this.fireButtonTriggered(Y),this._elementChecked,b,B);if(this._itemElements.push(F),o)return o.children.push(F),h;N=F}return h.push(N),h},new Array);let c=new Array,d=0;for(let h of this._elementTree)h instanceof Ure?(c.push({element:h,collapsible:!1,collapsed:!1,children:h.children.map(b=>({element:b,collapsible:!1,collapsed:!1}))}),d+=h.children.length+1):(c.push({element:h,collapsible:!1,collapsed:!1}),d++);this._tree.setChildren(null,c),this._onChangedVisibleCount.fire(d),this.accessibilityService.isScreenReaderOptimized()&&setTimeout(()=>{let h=this._tree.getHTMLElement().querySelector(".monaco-list-row.focused"),b=h?.parentNode;if(h&&b){let w=h.nextSibling;b.removeChild(h),b.insertBefore(h,w)}},0)}setFocusedElements(e){let r=e.map(o=>this._itemElements.find(c=>c.item===o)).filter(o=>!!o);if(this._tree.setFocus(r),e.length>0){let o=this._tree.getFocus()[0];o&&this._tree.reveal(o)}}getActiveDescendant(){return this._tree.getHTMLElement().getAttribute("aria-activedescendant")}setSelectedElements(e){let r=e.map(o=>this._itemElements.find(c=>c.item===o)).filter(o=>!!o);this._tree.setSelection(r)}getCheckedElements(){return this._itemElements.filter(e=>e.checked).map(e=>e.item)}setCheckedElements(e){try{this._shouldFireCheckedEvents=!1;let r=new Set;for(let o of e)r.add(o);for(let o of this._itemElements)o.checked=r.has(o.item)}finally{this._shouldFireCheckedEvents=!0,this._fireCheckedEvents()}}focus(e){var r;if(this._itemElements.length)switch(e===Cv.Second&&this._itemElements.length<2&&(e=Cv.First),e){case Cv.First:this._tree.scrollTop=0,this._tree.focusFirst(void 0,o=>o.element instanceof qP);break;case Cv.Second:this._tree.scrollTop=0,this._tree.setFocus([this._itemElements[1]]);break;case Cv.Last:this._tree.scrollTop=this._tree.scrollHeight,this._tree.setFocus([this._itemElements[this._itemElements.length-1]]);break;case Cv.Next:{let o=this._tree.getFocus();this._tree.focusNext(void 0,this._shouldLoop,void 0,d=>d.element instanceof qP?(this._tree.reveal(d.element),!0):!1);let c=this._tree.getFocus();o.length&&o[0]===c[0]&&o[0]===this._itemElements[this._itemElements.length-1]&&this._onLeave.fire();break}case Cv.Previous:{let o=this._tree.getFocus();this._tree.focusPrevious(void 0,this._shouldLoop,void 0,d=>{if(!(d.element instanceof qP))return!1;let h=this._tree.getParentElement(d.element);return h===null||h.children[0]!==d.element?this._tree.reveal(d.element):this._tree.reveal(h),!0});let c=this._tree.getFocus();o.length&&o[0]===c[0]&&o[0]===this._itemElements[0]&&this._onLeave.fire();break}case Cv.NextPage:this._tree.focusNextPage(void 0,o=>o.element instanceof qP?(this._tree.reveal(o.element),!0):!1);break;case Cv.PreviousPage:this._tree.focusPreviousPage(void 0,o=>{if(!(o.element instanceof qP))return!1;let c=this._tree.getParentElement(o.element);return c===null||c.children[0]!==o.element?this._tree.reveal(o.element):this._tree.reveal(c),!0});break;case Cv.NextSeparator:{let o=!1,c=this._tree.getFocus()[0];this._tree.focusNext(void 0,!0,void 0,h=>{if(o)return!0;if(h.element instanceof Ure)o=!0,this._separatorRenderer.isSeparatorVisible(h.element)?this._tree.reveal(h.element.children[0]):this._tree.reveal(h.element,0);else if(h.element instanceof qP){if(h.element.separator)return this._itemRenderer.isItemWithSeparatorVisible(h.element)?this._tree.reveal(h.element):this._tree.reveal(h.element,0),!0;if(h.element===this._elementTree[0])return this._tree.reveal(h.element,0),!0}return!1});let d=this._tree.getFocus()[0];c===d&&(this._tree.scrollTop=this._tree.scrollHeight,this._tree.setFocus([this._itemElements[this._itemElements.length-1]]));break}case Cv.PreviousSeparator:{let o,c=!!(!((r=this._tree.getFocus()[0])===null||r===void 0)&&r.separator);this._tree.focusPrevious(void 0,!0,void 0,d=>{if(d.element instanceof Ure)c?o||(this._separatorRenderer.isSeparatorVisible(d.element)?this._tree.reveal(d.element):this._tree.reveal(d.element,0),o=d.element.children[0]):c=!0;else if(d.element instanceof qP&&!o){if(d.element.separator)this._itemRenderer.isItemWithSeparatorVisible(d.element)?this._tree.reveal(d.element):this._tree.reveal(d.element,0),o=d.element;else if(d.element===this._elementTree[0])return this._tree.reveal(d.element,0),!0}return!1}),o&&this._tree.setFocus([o]);break}}}clearFocus(){this._tree.setFocus([])}domFocus(){this._tree.domFocus()}layout(e){this._tree.getHTMLElement().style.maxHeight=e?`${Math.floor(e/44)*44+6}px`:"",this._tree.layout()}filter(e){if(!(this._sortByLabel||this._matchOnLabel||this._matchOnDescription||this._matchOnDetail))return this._tree.layout(),!1;let r=e;if(e=e.trim(),!e||!(this.matchOnLabel||this.matchOnDescription||this.matchOnDetail))this._itemElements.forEach(b=>{b.labelHighlights=void 0,b.descriptionHighlights=void 0,b.detailHighlights=void 0,b.hidden=!1;let w=b.index&&this._inputElements[b.index-1];b.item&&(b.separator=w&&w.type==="separator"&&!w.buttons?w:void 0)});else{let b;this._elementTree.forEach(w=>{var N,L,B,F;let Y;this.matchOnLabelMode==="fuzzy"?Y=this.matchOnLabel&&(N=qLt(e,oUe(w.saneLabel)))!==null&&N!==void 0?N:void 0:Y=this.matchOnLabel&&(L=gVi(r,oUe(w.saneLabel)))!==null&&L!==void 0?L:void 0;let Z=this.matchOnDescription&&(B=qLt(e,oUe(w.saneDescription||"")))!==null&&B!==void 0?B:void 0,ee=this.matchOnDetail&&(F=qLt(e,oUe(w.saneDetail||"")))!==null&&F!==void 0?F:void 0;if(Y||Z||ee?(w.labelHighlights=Y,w.descriptionHighlights=Z,w.detailHighlights=ee,w.hidden=!1):(w.labelHighlights=void 0,w.descriptionHighlights=void 0,w.detailHighlights=void 0,w.hidden=w.item?!w.item.alwaysShow:!0),w.item?w.separator=void 0:w.separator&&(w.hidden=!0),!this.sortByLabel){let Te=w.index&&this._inputElements[w.index-1];b=Te&&Te.type==="separator"?Te:b,b&&!w.hidden&&(w.separator=b,b=void 0)}})}let o=this._elementTree.filter(b=>!b.hidden);if(this.sortByLabel&&e){let b=e.toLowerCase();o.sort((w,N)=>yVi(w,N,b))}let c,d=o.reduce((b,w,N)=>(w instanceof qP?c?c.children.push(w):b.push(w):w instanceof Ure&&(w.children=[],c=w,b.push(w)),b),new Array),h=new Array;for(let b of d)b instanceof Ure?h.push({element:b,collapsible:!1,collapsed:!1,children:b.children.map(w=>({element:w,collapsible:!1,collapsed:!1}))}):h.push({element:b,collapsible:!1,collapsed:!1});return this._tree.setChildren(null,h),this._tree.layout(),this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedVisibleCount.fire(o.length),!0}toggleCheckbox(){try{this._shouldFireCheckedEvents=!1;let e=this._tree.getFocus().filter(o=>o instanceof qP),r=this._allVisibleChecked(e);for(let o of e)o.checkboxDisabled||(o.checked=!r)}finally{this._shouldFireCheckedEvents=!0,this._fireCheckedEvents()}}display(e){this._container.style.display=e?"":"none"}isDisplayed(){return this._container.style.display!=="none"}style(e){this._tree.style(e)}toggleHover(){let e=this._tree.getFocus()[0];if(!e?.saneTooltip||!(e instanceof qP))return;if(this._lastHover&&!this._lastHover.isDisposed){this._lastHover.dispose();return}this.showHover(e);let r=new Fr;r.add(this._tree.onDidChangeFocus(o=>{o.elements[0]instanceof qP&&this.showHover(o.elements[0])})),this._lastHover&&r.add(this._lastHover),this._elementDisposable.add(r)}_allVisibleChecked(e,r=!0){for(let o=0,c=e.length;o{this.linkOpenerDelegate(d)},appearance:{showPointer:!0},container:this._container,position:{hoverPosition:1}},!1))}};t8t([G1],YUe.prototype,"onDidChangeFocus",null);t8t([G1],YUe.prototype,"onDidChangeSelection",null);YUe=t8t([Jsi(4,Pa),Jsi(5,ck)],YUe)});function HR(l,e={}){var r;g2.registerCommandAndKeybindingRule({...sEi,...l,secondary:vVi(l.primary,(r=l.secondary)!==null&&r!==void 0?r:[],e)})}function vVi(l,e,r={}){return r.withAltMod&&e.push(512+l),r.withCtrlMod&&(e.push(i8t+l),r.withAltMod&&e.push(512+i8t+l)),r.withCmdMod&&md&&(e.push(2048+l),r.withCtrlMod&&e.push(2304+l),r.withAltMod&&(e.push(2560+l),r.withCtrlMod&&e.push(2816+l))),e}function jB(l,e){return r=>{let o=r.get(S2).currentQuickInput;if(o)return e&&o.quickNavigate?o.focus(e):o.focus(l)}}var sEi,i8t,rEi,oEi,aEi=ti(()=>{X_();ya();hd();XUe();ffe();uOt();a8();sEi={weight:200,when:Ao.and(Ao.equals(Hoi,"quickPick"),a2i),metadata:{description:ce("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.")}};i8t=md?256:2048;HR({id:"quickInput.pageNext",primary:12,handler:jB(Cv.NextPage)},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0});HR({id:"quickInput.pagePrevious",primary:11,handler:jB(Cv.PreviousPage)},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0});HR({id:"quickInput.first",primary:i8t+14,handler:jB(Cv.First)},{withAltMod:!0,withCmdMod:!0});HR({id:"quickInput.last",primary:i8t+13,handler:jB(Cv.Last)},{withAltMod:!0,withCmdMod:!0});HR({id:"quickInput.next",primary:18,handler:jB(Cv.Next)},{withCtrlMod:!0});HR({id:"quickInput.previous",primary:16,handler:jB(Cv.Previous)},{withCtrlMod:!0});rEi=ce("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."),oEi=ce("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.");md?(HR({id:"quickInput.nextSeparatorWithQuickAccessFallback",primary:2066,handler:jB(Cv.NextSeparator,Cv.Next),metadata:{description:rEi}}),HR({id:"quickInput.nextSeparator",primary:2578,secondary:[2322],handler:jB(Cv.NextSeparator)},{withCtrlMod:!0}),HR({id:"quickInput.previousSeparatorWithQuickAccessFallback",primary:2064,handler:jB(Cv.PreviousSeparator,Cv.Previous),metadata:{description:oEi}}),HR({id:"quickInput.previousSeparator",primary:2576,secondary:[2320],handler:jB(Cv.PreviousSeparator)},{withCtrlMod:!0})):(HR({id:"quickInput.nextSeparatorWithQuickAccessFallback",primary:530,handler:jB(Cv.NextSeparator,Cv.Next),metadata:{description:rEi}}),HR({id:"quickInput.nextSeparator",primary:2578,handler:jB(Cv.NextSeparator)}),HR({id:"quickInput.previousSeparatorWithQuickAccessFallback",primary:528,handler:jB(Cv.PreviousSeparator,Cv.Previous),metadata:{description:oEi}}),HR({id:"quickInput.previousSeparator",primary:2576,handler:jB(Cv.PreviousSeparator)}));HR({id:"quickInput.acceptInBackground",when:Ao.and(sEi.when,Ao.or(POt.negate(),d2i)),primary:17,weight:250,handler:l=>{let e=l.get(S2).currentQuickInput;e?.accept(!0)}},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0})});var bVi,Ksi,Xsi,UR,B_t,cEi=ti(()=>{nc();zV();dOt();Uoi();y2i();Sh();xc();co();zfe();ya();a8();x2i();uOt();Ufe();S6();bl();nEi();hd();aEi();bVi=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},Ksi=function(l,e){return function(r,o){e(r,o,l)}},UR=qo,B_t=Xsi=class extends tn{get currentQuickInput(){var e;return(e=this.controller)!==null&&e!==void 0?e:void 0}get container(){return this._container}constructor(e,r,o,c){super(),this.options=e,this.layoutService=r,this.instantiationService=o,this.contextKeyService=c,this.enabled=!0,this.onDidAcceptEmitter=this._register(new wn),this.onDidCustomEmitter=this._register(new wn),this.onDidTriggerButtonEmitter=this._register(new wn),this.keyMods={ctrlCmd:!1,alt:!1},this.controller=null,this.onShowEmitter=this._register(new wn),this.onShow=this.onShowEmitter.event,this.onHideEmitter=this._register(new wn),this.onHide=this.onHideEmitter.event,this.inQuickInputContext=s2i.bindTo(this.contextKeyService),this.quickInputTypeContext=c2i.bindTo(this.contextKeyService),this.endOfQuickInputBoxContext=u2i.bindTo(this.contextKeyService),this.idPrefix=e.idPrefix,this._container=e.container,this.styles=e.styles,this._register(gs.runAndSubscribe(J4e,({window:d,disposables:h})=>this.registerKeyModsListeners(d,h),{window:em,disposables:this._store})),this._register(T0i(d=>{this.ui&&Gc(this.ui.container)===d&&(this.reparentUI(this.layoutService.mainContainer),this.layout(this.layoutService.mainContainerDimension,this.layoutService.mainContainerOffset.quickPickTop))}))}registerKeyModsListeners(e,r){let o=c=>{this.keyMods.ctrlCmd=c.ctrlKey||c.metaKey,this.keyMods.alt=c.altKey};for(let c of[ls.KEY_DOWN,ls.KEY_UP,ls.MOUSE_DOWN])r.add(Jr(e,c,o,!0))}getUI(e){if(this.ui)return e&&Gc(this._container)!==Gc(this.layoutService.activeContainer)&&(this.reparentUI(this.layoutService.activeContainer),this.layout(this.layoutService.activeContainerDimension,this.layoutService.activeContainerOffset.quickPickTop)),this.ui;let r=Ro(this._container,UR(".quick-input-widget.show-file-icons"));r.tabIndex=-1,r.style.display="none";let o=bE(r),c=Ro(r,UR(".quick-input-titlebar")),d=this._register(new Vw(c,{hoverDelegate:this.options.hoverDelegate}));d.domNode.classList.add("quick-input-left-action-bar");let h=Ro(c,UR(".quick-input-title")),b=this._register(new Vw(c,{hoverDelegate:this.options.hoverDelegate}));b.domNode.classList.add("quick-input-right-action-bar");let w=Ro(r,UR(".quick-input-header")),N=Ro(w,UR("input.quick-input-check-all"));N.type="checkbox",N.setAttribute("aria-label",ce("quickInput.checkAll","Toggle all checkboxes")),this._register(qh(N,ls.CHANGE,Tn=>{let Qn=N.checked;dr.setAllVisibleChecked(Qn)})),this._register(Jr(N,ls.CLICK,Tn=>{(Tn.x||Tn.y)&&Y.setFocus()}));let L=Ro(w,UR(".quick-input-description")),B=Ro(w,UR(".quick-input-and-message")),F=Ro(B,UR(".quick-input-filter")),Y=this._register(new hOt(F,this.styles.inputBox,this.styles.toggle));Y.setAttribute("aria-describedby",`${this.idPrefix}message`);let Z=Ro(F,UR(".quick-input-visible-count"));Z.setAttribute("aria-live","polite"),Z.setAttribute("aria-atomic","true");let ee=new ELe(Z,{countFormat:ce({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),Te=Ro(F,UR(".quick-input-count"));Te.setAttribute("aria-live","polite");let Je=new ELe(Te,{countFormat:ce({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),Xe=Ro(w,UR(".quick-input-action")),ct=this._register(new o_e(Xe,this.styles.button));ct.label=ce("ok","OK"),this._register(ct.onDidClick(Tn=>{this.onDidAcceptEmitter.fire()}));let Ct=Ro(w,UR(".quick-input-action")),Nt=this._register(new o_e(Ct,{...this.styles.button,supportIcons:!0}));Nt.label=ce("custom","Custom"),this._register(Nt.onDidClick(Tn=>{this.onDidCustomEmitter.fire()}));let Yt=Ro(B,UR(`#${this.idPrefix}message.quick-input-message`)),jt=this._register(new y_t(r,this.styles.progressBar));jt.getContainer().classList.add("quick-input-progress");let mi=Ro(r,UR(".quick-input-html-widget"));mi.tabIndex=-1;let _n=Ro(r,UR(".quick-input-description")),Pr=this.idPrefix+"list",dr=this._register(this.instantiationService.createInstance(YUe,r,this.options.hoverDelegate,this.options.linkOpenerDelegate,Pr));Y.setAttribute("aria-controls",Pr),this._register(dr.onDidChangeFocus(()=>{var Tn;Y.setAttribute("aria-activedescendant",(Tn=dr.getActiveDescendant())!==null&&Tn!==void 0?Tn:"")})),this._register(dr.onChangedAllVisibleChecked(Tn=>{N.checked=Tn})),this._register(dr.onChangedVisibleCount(Tn=>{ee.setCount(Tn)})),this._register(dr.onChangedCheckedCount(Tn=>{Je.setCount(Tn)})),this._register(dr.onLeave(()=>{setTimeout(()=>{this.controller&&(Y.setFocus(),this.controller instanceof MUe&&this.controller.canSelectMany&&dr.clearFocus())},0)}));let Rr=BP(r);return this._register(Rr),this._register(Jr(r,ls.FOCUS,Tn=>{let Qn=this.getUI();if(ES(Tn.relatedTarget,Qn.inputContainer)){let ks=Qn.inputBox.isSelectionAtEnd();this.endOfQuickInputBoxContext.get()!==ks&&this.endOfQuickInputBoxContext.set(ks)}ES(Tn.relatedTarget,Qn.container)||(this.inQuickInputContext.set(!0),this.previousFocusElement=Wv(Tn.relatedTarget)?Tn.relatedTarget:void 0)},!0)),this._register(Rr.onDidBlur(()=>{!this.getUI().ignoreFocusOut&&!this.options.ignoreFocusOut()&&this.hide(_xe.Blur),this.inQuickInputContext.set(!1),this.endOfQuickInputBoxContext.set(!1),this.previousFocusElement=void 0})),this._register(Y.onKeyDown(Tn=>{let Qn=this.getUI().inputBox.isSelectionAtEnd();this.endOfQuickInputBoxContext.get()!==Qn&&this.endOfQuickInputBoxContext.set(Qn)})),this._register(Jr(r,ls.FOCUS,Tn=>{Y.setFocus()})),this._register(qh(r,ls.KEY_DOWN,Tn=>{if(!ES(Tn.target,mi))switch(Tn.keyCode){case 3:D_.stop(Tn,!0),this.enabled&&this.onDidAcceptEmitter.fire();break;case 9:D_.stop(Tn,!0),this.hide(_xe.Gesture);break;case 2:if(!Tn.altKey&&!Tn.ctrlKey&&!Tn.metaKey){let Qn=[".quick-input-list .monaco-action-bar .always-visible",".quick-input-list-entry:hover .monaco-action-bar",".monaco-list-row.focused .monaco-action-bar"];if(r.classList.contains("show-checkboxes")?Qn.push("input"):Qn.push("input[type=text]"),this.getUI().list.isDisplayed()&&Qn.push(".monaco-list"),this.getUI().message&&Qn.push(".quick-input-message a"),this.getUI().widget){if(ES(Tn.target,this.getUI().widget))break;Qn.push(".quick-input-html-widget")}let ks=r.querySelectorAll(Qn.join(", "));Tn.shiftKey&&Tn.target===ks[0]?(D_.stop(Tn,!0),dr.clearFocus()):!Tn.shiftKey&&ES(Tn.target,ks[ks.length-1])&&(D_.stop(Tn,!0),ks[0].focus())}break;case 10:Tn.ctrlKey&&(D_.stop(Tn,!0),this.getUI().list.toggleHover());break}})),this.ui={container:r,styleSheet:o,leftActionBar:d,titleBar:c,title:h,description1:_n,description2:L,widget:mi,rightActionBar:b,checkAll:N,inputContainer:B,filterContainer:F,inputBox:Y,visibleCountContainer:Z,visibleCount:ee,countContainer:Te,count:Je,okContainer:Xe,ok:ct,message:Yt,customButtonContainer:Ct,customButton:Nt,list:dr,progressBar:jt,onDidAccept:this.onDidAcceptEmitter.event,onDidCustom:this.onDidCustomEmitter.event,onDidTriggerButton:this.onDidTriggerButtonEmitter.event,ignoreFocusOut:!1,keyMods:this.keyMods,show:Tn=>this.show(Tn),hide:()=>this.hide(),setVisibilities:Tn=>this.setVisibilities(Tn),setEnabled:Tn=>this.setEnabled(Tn),setContextKey:Tn=>this.options.setContextKey(Tn),linkOpenerDelegate:Tn=>this.options.linkOpenerDelegate(Tn)},this.updateStyles(),this.ui}reparentUI(e){this.ui&&(this._container=e,Ro(this._container,this.ui.container))}pick(e,r={},o=Nd.None){return new Promise((c,d)=>{let h=L=>{var B;h=c,(B=r.onKeyMods)===null||B===void 0||B.call(r,b.keyMods),c(L)};if(o.isCancellationRequested){h(void 0);return}let b=this.createQuickPick(),w,N=[b,b.onDidAccept(()=>{if(b.canSelectMany)h(b.selectedItems.slice()),b.hide();else{let L=b.activeItems[0];L&&(h(L),b.hide())}}),b.onDidChangeActive(L=>{let B=L[0];B&&r.onDidFocus&&r.onDidFocus(B)}),b.onDidChangeSelection(L=>{if(!b.canSelectMany){let B=L[0];B&&(h(B),b.hide())}}),b.onDidTriggerItemButton(L=>r.onDidTriggerItemButton&&r.onDidTriggerItemButton({...L,removeItem:()=>{let B=b.items.indexOf(L.item);if(B!==-1){let F=b.items.slice(),Y=F.splice(B,1),Z=b.activeItems.filter(Te=>Te!==Y[0]),ee=b.keepScrollPosition;b.keepScrollPosition=!0,b.items=F,Z&&(b.activeItems=Z),b.keepScrollPosition=ee}}})),b.onDidTriggerSeparatorButton(L=>{var B;return(B=r.onDidTriggerSeparatorButton)===null||B===void 0?void 0:B.call(r,L)}),b.onDidChangeValue(L=>{w&&!L&&(b.activeItems.length!==1||b.activeItems[0]!==w)&&(b.activeItems=[w])}),o.onCancellationRequested(()=>{b.hide()}),b.onDidHide(()=>{Fp(N),h(void 0)})];b.title=r.title,b.canSelectMany=!!r.canPickMany,b.placeholder=r.placeHolder,b.ignoreFocusOut=!!r.ignoreFocusLost,b.matchOnDescription=!!r.matchOnDescription,b.matchOnDetail=!!r.matchOnDetail,b.matchOnLabel=r.matchOnLabel===void 0||r.matchOnLabel,b.quickNavigate=r.quickNavigate,b.hideInput=!!r.hideInput,b.contextKey=r.contextKey,b.busy=!0,Promise.all([e,r.activeItem]).then(([L,B])=>{w=B,b.busy=!1,b.items=L,b.canSelectMany&&(b.selectedItems=L.filter(F=>F.type!=="separator"&&F.picked)),w&&(b.activeItems=[w])}),b.show(),Promise.resolve(e).then(void 0,L=>{d(L),b.hide()})})}createQuickPick(){let e=this.getUI(!0);return new MUe(e)}createInputBox(){let e=this.getUI(!0);return new cOt(e)}show(e){let r=this.getUI(!0);this.onShowEmitter.fire();let o=this.controller;this.controller=e,o?.didHide(),this.setEnabled(!0),r.leftActionBar.clear(),r.title.textContent="",r.description1.textContent="",r.description2.textContent="",IS(r.widget),r.rightActionBar.clear(),r.checkAll.checked=!1,r.inputBox.placeholder="",r.inputBox.password=!1,r.inputBox.showDecoration(_1.Ignore),r.visibleCount.setCount(0),r.count.setCount(0),IS(r.message),r.progressBar.stop(),r.list.setElements([]),r.list.matchOnDescription=!1,r.list.matchOnDetail=!1,r.list.matchOnLabel=!0,r.list.sortByLabel=!0,r.ignoreFocusOut=!1,r.inputBox.toggles=void 0;let c=this.options.backKeybindingLabel();aOt.tooltip=c?ce("quickInput.backWithKeybinding","Back ({0})",c):ce("quickInput.back","Back"),r.container.style.display="",this.updateLayout(),r.inputBox.setFocus(),this.quickInputTypeContext.set(e.type)}isVisible(){return!!this.ui&&this.ui.container.style.display!=="none"}setVisibilities(e){let r=this.getUI();r.title.style.display=e.title?"":"none",r.description1.style.display=e.description&&(e.inputBox||e.checkAll)?"":"none",r.description2.style.display=e.description&&!(e.inputBox||e.checkAll)?"":"none",r.checkAll.style.display=e.checkAll?"":"none",r.inputContainer.style.display=e.inputBox?"":"none",r.filterContainer.style.display=e.inputBox?"":"none",r.visibleCountContainer.style.display=e.visibleCount?"":"none",r.countContainer.style.display=e.count?"":"none",r.okContainer.style.display=e.ok?"":"none",r.customButtonContainer.style.display=e.customButton?"":"none",r.message.style.display=e.message?"":"none",r.progressBar.getContainer().style.display=e.progressBar?"":"none",r.list.display(!!e.list),r.container.classList.toggle("show-checkboxes",!!e.checkBox),r.container.classList.toggle("hidden-input",!e.inputBox&&!e.description),this.updateLayout()}setEnabled(e){if(e!==this.enabled){this.enabled=e;for(let r of this.getUI().leftActionBar.viewItems)r.action.enabled=e;for(let r of this.getUI().rightActionBar.viewItems)r.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){var r,o;let c=this.controller;if(!c)return;c.willHide(e);let d=(r=this.ui)===null||r===void 0?void 0:r.container,h=d&&!sNt(d);if(this.controller=null,this.onHideEmitter.fire(),d&&(d.style.display="none"),!h){let b=this.previousFocusElement;for(;b&&!b.offsetParent;)b=(o=b.parentElement)!==null&&o!==void 0?o:void 0;b?.offsetParent?(b.focus(),this.previousFocusElement=void 0):this.options.returnFocus()}c.didHide(e)}layout(e,r){this.dimension=e,this.titleBarOffset=r,this.updateLayout()}updateLayout(){if(this.ui&&this.isVisible()){this.ui.container.style.top=`${this.titleBarOffset}px`;let e=this.ui.container.style,r=Math.min(this.dimension.width*.62,Xsi.MAX_WIDTH);e.width=r+"px",e.marginLeft="-"+r/2+"px",this.ui.inputBox.layout(),this.ui.list.layout(this.dimension&&this.dimension.height*.4)}}applyStyles(e){this.styles=e,this.updateStyles()}updateStyles(){if(this.ui){let{quickInputTitleBackground:e,quickInputBackground:r,quickInputForeground:o,widgetBorder:c,widgetShadow:d}=this.styles.widget;this.ui.titleBar.style.backgroundColor=e??"",this.ui.container.style.backgroundColor=r??"",this.ui.container.style.color=o??"",this.ui.container.style.border=c?`1px solid ${c}`:"",this.ui.container.style.boxShadow=d?`0 0 8px 2px ${d}`:"",this.ui.list.style(this.styles.list);let h=[];this.styles.pickerGroup.pickerGroupBorder&&h.push(`.quick-input-list .quick-input-list-entry { border-top-color: ${this.styles.pickerGroup.pickerGroupBorder}; }`),this.styles.pickerGroup.pickerGroupForeground&&h.push(`.quick-input-list .quick-input-list-separator { color: ${this.styles.pickerGroup.pickerGroupForeground}; }`),this.styles.pickerGroup.pickerGroupForeground&&h.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)&&(h.push(".quick-input-list .monaco-keybinding > .monaco-keybinding-key {"),this.styles.keybindingLabel.keybindingLabelBackground&&h.push(`background-color: ${this.styles.keybindingLabel.keybindingLabelBackground};`),this.styles.keybindingLabel.keybindingLabelBorder&&h.push(`border-color: ${this.styles.keybindingLabel.keybindingLabelBorder};`),this.styles.keybindingLabel.keybindingLabelBottomBorder&&h.push(`border-bottom-color: ${this.styles.keybindingLabel.keybindingLabelBottomBorder};`),this.styles.keybindingLabel.keybindingLabelShadow&&h.push(`box-shadow: inset 0 -1px 0 ${this.styles.keybindingLabel.keybindingLabelShadow};`),this.styles.keybindingLabel.keybindingLabelForeground&&h.push(`color: ${this.styles.keybindingLabel.keybindingLabelForeground};`),h.push("}"));let b=h.join(` +`);b!==this.ui.styleSheet.textContent&&(this.ui.styleSheet.textContent=b)}}};B_t.MAX_WIDTH=600;B_t=Xsi=bVi([Ksi(1,d7),Ksi(2,Pa),Ksi(3,Ec)],B_t)});var SVi,j_t,n8t,lEi=ti(()=>{Sh();xc();hd();bl();Ufe();n8();ZTi();Fre();q1();x0();uOt();cEi();_y();nc();SVi=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},j_t=function(l,e){return function(r,o){e(r,o,l)}},n8t=class extends SPt{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(rOt))),this._quickAccess}constructor(e,r,o,c,d){super(o),this.instantiationService=e,this.contextKeyService=r,this.layoutService=c,this.configurationService=d,this._onShow=this._register(new wn),this._onHide=this._register(new wn),this.contexts=new Map}createController(e=this.layoutService,r){let o={idPrefix:"quickInput_",container:e.activeContainer,ignoreFocusOut:()=>!1,backKeybindingLabel:()=>{},setContextKey:d=>this.setContextKey(d),linkOpenerDelegate:d=>{this.instantiationService.invokeFunction(h=>{h.get(NC).open(d,{allowCommands:!0,fromUserGesture:!0})})},returnFocus:()=>e.focus(),styles:this.computeStyles(),hoverDelegate:this._register(this.instantiationService.createInstance(lOt))},c=this._register(this.instantiationService.createInstance(B_t,{...o,...r}));return c.layout(e.activeContainerDimension,e.activeContainerOffset.quickPickTop),this._register(e.onDidLayoutActiveContainer(d=>{Gc(e.activeContainer)===Gc(c.container)&&c.layout(d,e.activeContainerOffset.quickPickTop)})),this._register(e.onDidChangeActiveContainer(()=>{c.isVisible()||c.layout(e.activeContainerDimension,e.activeContainerOffset.quickPickTop)})),this._register(c.onShow(()=>{this.resetContextKeys(),this._onShow.fire()})),this._register(c.onHide(()=>{this.resetContextKeys(),this._onHide.fire()})),c}setContextKey(e){let r;e&&(r=this.contexts.get(e),r||(r=new va(e,!1).bindTo(this.contextKeyService),this.contexts.set(e,r))),!(r&&r.get())&&(this.resetContextKeys(),r?.set(!0))}resetContextKeys(){this.contexts.forEach(e=>{e.get()&&e.reset()})}pick(e,r={},o=Nd.None){return this.controller.pick(e,r,o)}createQuickPick(){return this.controller.createQuickPick()}createInputBox(){return this.controller.createInputBox()}updateStyles(){this.hasController&&this.controller.applyStyles(this.computeStyles())}computeStyles(){return{widget:{quickInputBackground:Xc(Qei),quickInputForeground:Xc(Abi),quickInputTitleBackground:Xc(Pbi),widgetBorder:Xc(WAt),widgetShadow:Xc(EV)},inputBox:AUe,toggle:NUe,countBadge:U3t,button:PTi,progressBar:LTi,keybindingLabel:ATi,list:yQ({listBackground:Qei,listFocusBackground:Xq,listFocusForeground:Kq,listInactiveFocusForeground:Kq,listInactiveSelectionIconForeground:Ife,listInactiveFocusBackground:Xq,listFocusOutline:S0,listInactiveFocusOutline:S0}),pickerGroup:{pickerGroupBorder:Xc(Lbi),pickerGroupForeground:Xc(qAt)}}}};n8t=SVi([j_t(0,Pa),j_t(1,Ec),j_t(2,Hg),j_t(3,d7),j_t(4,_u)],n8t)});var uEi,MLe,Ysi,r8t,QUe,o8t,dEi=ti(()=>{XTi();xc();vf();x0();Sh();bl();hd();zni();IC();lEi();Bbe();_y();uEi=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},MLe=function(l,e){return function(r,o){e(r,o,l)}},Ysi=class extends n8t{constructor(e,r,o,c,d,h){super(r,o,c,new vLt(e.getContainerDomNode(),d),h),this.host=void 0;let b=QUe.get(e);if(b){let w=b.widget;this.host={_serviceBrand:void 0,get mainContainer(){return w.getDomNode()},getContainer(){return w.getDomNode()},whenContainerStylesLoaded(){},get containers(){return[w.getDomNode()]},get activeContainer(){return w.getDomNode()},get mainContainerDimension(){return e.getLayoutInfo()},get activeContainerDimension(){return e.getLayoutInfo()},get onDidLayoutMainContainer(){return e.onDidLayoutChange},get onDidLayoutActiveContainer(){return e.onDidLayoutChange},get onDidLayoutContainer(){return gs.map(e.onDidLayoutChange,N=>({container:w.getDomNode(),dimension:N}))},get onDidChangeActiveContainer(){return gs.None},get onDidAddContainer(){return gs.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)}};Ysi=uEi([MLe(1,Pa),MLe(2,Ec),MLe(3,Hg),MLe(4,nf),MLe(5,_u)],Ysi);r8t=class{get activeService(){let e=this.codeEditorService.getFocusedCodeEditor();if(!e)throw new Error("Quick input service needs a focused editor to work.");let r=this.mapEditorToService.get(e);if(!r){let o=r=this.instantiationService.createInstance(Ysi,e);this.mapEditorToService.set(e,r),xR(e.onDidDispose)(()=>{o.dispose(),this.mapEditorToService.delete(e)})}return r}get currentQuickInput(){return this.activeService.currentQuickInput}get quickAccess(){return this.activeService.quickAccess}constructor(e,r){this.instantiationService=e,this.codeEditorService=r,this.mapEditorToService=new Map}pick(e,r={},o=Nd.None){return this.activeService.pick(e,r,o)}createQuickPick(){return this.activeService.createQuickPick()}createInputBox(){return this.activeService.createInputBox()}};r8t=uEi([MLe(0,Pa),MLe(1,nf)],r8t);QUe=class l{static get(e){return e.getContribution(l.ID)}constructor(e){this.editor=e,this.widget=new o8t(this.editor)}dispose(){this.widget.dispose()}};QUe.ID="editor.controller.quickInput";o8t=class l{constructor(e){this.codeEditor=e,this.domNode=document.createElement("div"),this.codeEditor.addOverlayWidget(this)}getId(){return l.ID}getDomNode(){return this.domNode}getPosition(){return{preference:2}}dispose(){this.codeEditor.removeOverlayWidget(this)}};o8t.ID="editor.contrib.quickInputWidget";ku(QUe.ID,QUe,4)});function xVi(l){if(!l||!Array.isArray(l))return[];let e=[],r=0;for(let o=0,c=l.length;o{let F=EVi(L.token,B.token);return F!==0?F:L.index-B.index});let r=0,o="000000",c="ffffff";for(;l.length>=1&&l[0].token==="";){let L=l.shift();L.fontStyle!==-1&&(r=L.fontStyle),L.foreground!==null&&(o=L.foreground),L.background!==null&&(c=L.background)}let d=new Zsi;for(let L of e)d.getId(L);let h=d.getId(o),b=d.getId(c),w=new eai(r,h,b),N=new tai(w);for(let L=0,B=l.length;Le?1:0}function fEi(l){let e=[];for(let r=1,o=l.length;r{rx();Qsi=class{constructor(e,r,o,c,d){this._parsedThemeRuleBrand=void 0,this.token=e,this.index=r,this.fontStyle=o,this.foreground=c,this.background=d}};kVi=/^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/,Zsi=class{constructor(){this._lastColorId=0,this._id2color=[],this._color2id=new Map}getId(e){if(e===null)return 0;let r=e.match(kVi);if(!r)throw new Error("Illegal value for token color: "+e);e=r[1].toUpperCase();let o=this._color2id.get(e);return o||(o=++this._lastColorId,this._color2id.set(e,o),this._id2color[o]=po.fromHex("#"+e),o)}getColorMap(){return this._id2color.slice(0)}},W_t=class{static createFromRawTokenTheme(e,r){return this.createFromParsedTokenTheme(xVi(e),r)}static createFromParsedTokenTheme(e,r){return CVi(e,r)}constructor(e,r){this._colorMap=e,this._root=r,this._cache=new Map}getColorMap(){return this._colorMap.getColorMap()}_match(e){return this._root.match(e)}match(e,r){let o=this._cache.get(r);if(typeof o>"u"){let c=this._match(r),d=TVi(r);o=(c.metadata|d<<8)>>>0,this._cache.set(r,o)}return(o|e<<0)>>>0}},wVi=/\b(comment|string|regex|regexp)\b/;eai=class l{constructor(e,r,o){this._themeTrieElementRuleBrand=void 0,this._fontStyle=e,this._foreground=r,this._background=o,this.metadata=(this._fontStyle<<11|this._foreground<<15|this._background<<24)>>>0}clone(){return new l(this._fontStyle,this._foreground,this._background)}acceptOverwrite(e,r,o){e!==-1&&(this._fontStyle=e),r!==0&&(this._foreground=r),o!==0&&(this._background=o),this.metadata=(this._fontStyle<<11|this._foreground<<15|this._background<<24)>>>0}},tai=class l{constructor(e){this._themeTrieElementBrand=void 0,this._mainRule=e,this._children=new Map}match(e){if(e==="")return this._mainRule;let r=e.indexOf("."),o,c;r===-1?(o=e,c=""):(o=e.substring(0,r),c=e.substring(r+1));let d=this._children.get(o);return typeof d<"u"?d.match(c):this._mainRule}insert(e,r,o,c){if(e===""){this._mainRule.acceptOverwrite(r,o,c);return}let d=e.indexOf("."),h,b;d===-1?(h=e,b=""):(h=e.substring(0,d),b=e.substring(d+1));let w=this._children.get(h);typeof w>"u"&&(w=new l(this._mainRule.clone()),this._children.set(h,w)),w.insert(b,r,o,c)}}});var pEi,mEi,hEi,gEi,yEi=ti(()=>{PV();q1();pEi={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:{[NT]:"#FFFFFE",[YO]:"#000000",[Jei]:"#E5EBF1",[L6e]:"#D3D3D3",[O6e]:"#939393",[mdt]:"#ADD6FF4D"}},mEi={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:{[NT]:"#1E1E1E",[YO]:"#D4D4D4",[Jei]:"#3A3D41",[L6e]:"#404040",[O6e]:"#707070",[mdt]:"#ADD6FF26"}},hEi={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:{[NT]:"#000000",[YO]:"#FFFFFF",[L6e]:"#FFFFFF",[O6e]:"#FFFFFF"}},gEi={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:{[NT]:"#FFFFFF",[YO]:"#292929",[L6e]:"#292929",[O6e]:"#292929"}}});function py(l,e,r,o){return RLe.registerIcon(l,e,r,o)}function nai(){return RLe}function IVi(){let l=EDt();for(let e in l){let r="\\"+l[e].toString(16);RLe.registerIcon(e,{fontCharacter:r})}}var DVi,vEi,bEi,iai,RLe,xEi,CEi,SEi,s8t,Nzn,Azn,Pzn,Lzn,WB=ti(()=>{Ud();uy();nut();bv();xc();Fh();s0();ya();HNt();DT();DVi={IconContribution:"base.contributions.icons"};(function(l){function e(r,o){let c=r.defaults;for(;sl.isThemeIcon(c);){let d=RLe.getIcon(c.id);if(!d)return;c=d.defaults}return c}l.getDefinition=e})(vEi||(vEi={}));(function(l){function e(o){return{weight:o.weight,style:o.style,src:o.src.map(c=>({format:c.format,location:c.location.toString()}))}}l.toJSONObject=e;function r(o){let c=d=>Fw(d)?d:void 0;if(o&&Array.isArray(o.src)&&o.src.every(d=>Fw(d.format)&&Fw(d.location)))return{weight:c(o.weight),style:c(o.style),src:o.src.map(d=>({format:d.format,location:qc.parse(d.location)}))}}l.fromJSONObject=r})(bEi||(bEi={}));iai=class{constructor(){this._onDidChange=new wn,this.onDidChange=this._onDidChange.event,this.iconSchema={definitions:{icons:{type:"object",properties:{fontId:{type:"string",description:ce("iconDefinition.fontId","The id of the font to use. If not set, the font that is defined first is used.")},fontCharacter:{type:"string",description:ce("iconDefinition.fontCharacter","The font character associated with the icon definition.")}},additionalProperties:!1,defaultSnippets:[{body:{fontCharacter:"\\\\e030"}}]}},type:"object",properties:{}},this.iconReferenceSchema={type:"string",pattern:`^${sl.iconNameExpression}$`,enum:[],enumDescriptions:[]},this.iconsById={},this.iconFontsById={}}registerIcon(e,r,o,c){let d=this.iconsById[e];if(d){if(o&&!d.description){d.description=o,this.iconSchema.properties[e].markdownDescription=`${o} $(${e})`;let w=this.iconReferenceSchema.enum.indexOf(e);w!==-1&&(this.iconReferenceSchema.enumDescriptions[w]=o),this._onDidChange.fire()}return d}let h={id:e,description:o,defaults:r,deprecationMessage:c};this.iconsById[e]=h;let b={$ref:"#/definitions/icons"};return c&&(b.deprecationMessage=c),o&&(b.markdownDescription=`${o}: $(${e})`),this.iconSchema.properties[e]=b,this.iconReferenceSchema.enum.push(e),this.iconReferenceSchema.enumDescriptions.push(o||""),this._onDidChange.fire(),{id:e}}getIcons(){return Object.keys(this.iconsById).map(e=>this.iconsById[e])}getIcon(e){return this.iconsById[e]}getIconSchema(){return this.iconSchema}toString(){let e=(d,h)=>d.id.localeCompare(h.id),r=d=>{for(;sl.isThemeIcon(d.defaults);)d=this.iconsById[d.defaults.id];return`codicon codicon-${d?d.id:""}`},o=[];o.push("| preview | identifier | default codicon ID | description"),o.push("| ----------- | --------------------------------- | --------------------------------- | --------------------------------- |");let c=Object.keys(this.iconsById).map(d=>this.iconsById[d]);for(let d of c.filter(h=>!!h.description).sort(e))o.push(`||${d.id}|${sl.isThemeIcon(d.defaults)?d.defaults.id:d.id}|${d.description||""}|`);o.push("| preview | identifier "),o.push("| ----------- | --------------------------------- |");for(let d of c.filter(h=>!sl.isThemeIcon(h.defaults)).sort(e))o.push(`||${d.id}|`);return o.join(` +`)}},RLe=new iai;pm.add(DVi.IconContribution,RLe);IVi();xEi="vscode://schemas/icons",CEi=pm.as(i6e.JSONContribution);CEi.registerSchema(xEi,RLe.getIconSchema());SEi=new p_(()=>CEi.notifySchemaChanged(xEi),200);RLe.onDidChange(()=>{SEi.isScheduled()||SEi.schedule()});s8t=py("widget-close",_s.close,ce("widgetClose","Icon for the close action in widgets.")),Nzn=py("goto-previous-location",_s.arrowUp,ce("previousChangeIcon","Icon for goto previous editor location.")),Azn=py("goto-next-location",_s.arrowDown,ce("nextChangeIcon","Icon for goto next editor location.")),Pzn=sl.modify(_s.sync,"spin"),Lzn=sl.modify(_s.loading,"spin")});function kEi(l){let e=new Fr,r=e.add(new wn),o=nai();return e.add(o.onDidChange(()=>r.fire())),l&&e.add(l.onDidProductIconThemeChange(()=>r.fire())),{dispose:()=>e.dispose(),onDidChange:r.event,getCSS(){let c=l?l.getProductIconTheme():new z_t,d={},h=[],b=[];for(let w of o.getIcons()){let N=c.getIcon(w);if(!N)continue;let L=N.font,B=`--vscode-icon-${w.id}-font-family`,F=`--vscode-icon-${w.id}-content`;L?(d[L.id]=L.definition,b.push(`${B}: ${uNt(L.id)};`,`${F}: '${N.fontCharacter}';`),h.push(`.codicon-${w.id}:before { content: '${N.fontCharacter}'; font-family: ${uNt(L.id)}; }`)):(b.push(`${F}: '${N.fontCharacter}'; ${B}: 'codicon';`),h.push(`.codicon-${w.id}:before { content: '${N.fontCharacter}'; }`))}for(let w in d){let N=d[w],L=N.weight?`font-weight: ${N.weight};`:"",B=N.style?`font-style: ${N.style};`:"",F=N.src.map(Y=>`${SB(Y.location)} format('${Y.format}')`).join(", ");h.push(`@font-face { src: ${F}; font-family: ${uNt(w)};${L}${B} font-display: block; }`)}return h.push(`:root { ${b.join(" ")} }`),h.join(` +`)}}}var z_t,wEi=ti(()=>{nc();xc();co();bv();WB();z_t=class{getIcon(e){let r=nai(),o=e.defaults;for(;sl.isThemeIcon(o);){let c=r.getIcon(o.id);if(!c)return;o=c.defaults}return o}}});function c8t(l){return l===Jre||l===BLe||l===gxe||l===yxe}function rai(l){switch(l){case Jre:return pEi;case BLe:return mEi;case gxe:return hEi;case yxe:return gEi}}function a8t(l){let e=rai(l);return new l8t(l,e)}var Jre,BLe,gxe,yxe,TEi,NVi,l8t,u8t,oai=ti(()=>{nc();ZF();rx();xc();dy();_6e();_Ei();yEi();DT();q1();x0();co();Zq();wEi();S6();Jre="vs",BLe="vs-dark",gxe="hc-black",yxe="hc-light",TEi=pm.as(Hei.ColorContribution),NVi=pm.as(Sti.ThemingContribution),l8t=class{constructor(e,r){this.semanticHighlighting=!1,this.themeData=r;let o=r.base;e.length>0?(c8t(e)?this.id=e:this.id=o+" "+e,this.themeName=e):(this.id=o,this.themeName=o),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}get base(){return this.themeData.base}notifyBaseUpdated(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)}getColors(){if(!this.colors){let e=new Map;for(let r in this.themeData.colors)e.set(r,po.fromHex(this.themeData.colors[r]));if(this.themeData.inherit){let r=rai(this.themeData.base);for(let o in r.colors)e.has(o)||e.set(o,po.fromHex(r.colors[o]))}this.colors=e}return this.colors}getColor(e,r){let o=this.getColors().get(e);if(o)return o;if(r!==!1)return this.getDefault(e)}getDefault(e){let r=this.defaultColors[e];return r||(r=TEi.resolveDefaultColor(e,this),this.defaultColors[e]=r,r)}defines(e){return this.getColors().has(e)}get type(){switch(this.base){case Jre:return OR.LIGHT;case gxe:return OR.HIGH_CONTRAST_DARK;case yxe:return OR.HIGH_CONTRAST_LIGHT;default:return OR.DARK}}get tokenTheme(){if(!this._tokenTheme){let e=[],r=[];if(this.themeData.inherit){let d=rai(this.themeData.base);e=d.rules,d.encodedTokensColors&&(r=d.encodedTokensColors)}let o=this.themeData.colors["editor.foreground"],c=this.themeData.colors["editor.background"];if(o||c){let d={token:""};o&&(d.foreground=o),c&&(d.background=c),e.push(d)}e=e.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(r=this.themeData.encodedTokensColors),this._tokenTheme=W_t.createFromRawTokenTheme(e,r)}return this._tokenTheme}getTokenStyleMetadata(e,r,o){let d=this.tokenTheme._match([e].concat(r).join(".")).metadata,h=Qk.getForeground(d),b=Qk.getFontStyle(d);return{foreground:h,italic:!!(b&1),bold:!!(b&2),underline:!!(b&4),strikethrough:!!(b&8)}}};u8t=class extends tn{constructor(){super(),this._onColorThemeChange=this._register(new wn),this.onDidColorThemeChange=this._onColorThemeChange.event,this._onProductIconThemeChange=this._register(new wn),this.onDidProductIconThemeChange=this._onProductIconThemeChange.event,this._environment=Object.create(null),this._builtInProductIconTheme=new z_t,this._autoDetectHighContrast=!0,this._knownThemes=new Map,this._knownThemes.set(Jre,a8t(Jre)),this._knownThemes.set(BLe,a8t(BLe)),this._knownThemes.set(gxe,a8t(gxe)),this._knownThemes.set(yxe,a8t(yxe));let e=this._register(kEi(this));this._codiconCSS=e.getCSS(),this._themeCSS="",this._allCSS=`${this._codiconCSS} +${this._themeCSS}`,this._globalStyleElement=null,this._styleElements=[],this._colorMapOverride=null,this.setTheme(Jre),this._onOSSchemeChanged(),this._register(e.onDidChange(()=>{this._codiconCSS=e.getCSS(),this._updateCSS()})),wQt(em,"(forced-colors: active)",()=>{this._onOSSchemeChanged()})}registerEditorContainer(e){return $4e(e)?this._registerShadowDomContainer(e):this._registerRegularEditorContainer()}_registerRegularEditorContainer(){return this._globalStyleElement||(this._globalStyleElement=bE(void 0,e=>{e.className="monaco-colors",e.textContent=this._allCSS}),this._styleElements.push(this._globalStyleElement)),tn.None}_registerShadowDomContainer(e){let r=bE(e,o=>{o.className="monaco-colors",o.textContent=this._allCSS});return this._styleElements.push(r),{dispose:()=>{for(let o=0;o{o.base===e&&o.notifyBaseUpdated()}),this._theme.themeName===e&&this.setTheme(e)}getColorTheme(){return this._theme}setColorMapOverride(e){this._colorMapOverride=e,this._updateThemeOrColorMap()}setTheme(e){let r;this._knownThemes.has(e)?r=this._knownThemes.get(e):r=this._knownThemes.get(Jre),this._updateActualTheme(r)}_updateActualTheme(e){!e||this._theme===e||(this._theme=e,this._updateThemeOrColorMap())}_onOSSchemeChanged(){if(this._autoDetectHighContrast){let e=em.matchMedia("(forced-colors: active)").matches;if(e!==T6(this._theme.type)){let r;ere(this._theme.type)?r=e?gxe:BLe:r=e?yxe:Jre,this._updateActualTheme(this._knownThemes.get(r))}}}setAutoDetectHighContrast(e){this._autoDetectHighContrast=e,this._onOSSchemeChanged()}_updateThemeOrColorMap(){let e=[],r={},o={addRule:h=>{r[h]||(e.push(h),r[h]=!0)}};NVi.getThemingParticipants().forEach(h=>h(this._theme,o,this._environment));let c=[];for(let h of TEi.getColors()){let b=this._theme.getColor(h.id,!0);b&&c.push(`${LAt(h.id)}: ${b.toString()};`)}o.addRule(`.monaco-editor, .monaco-diff-editor, .monaco-component { ${c.join(` +`)} }`);let d=this._colorMapOverride||this._theme.tokenTheme.getColorMap();o.addRule(fEi(d)),this._themeCSS=e.join(` +`),this._updateCSS(),a0.setColorMap(d),this._onColorThemeChange.fire(this._theme)}_updateCSS(){this._allCSS=`${this._codiconCSS} +${this._themeCSS}`,this._styleElements.forEach(e=>e.textContent=this._allCSS)}getFileIconTheme(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}}getProductIconTheme(){return this._builtInProductIconTheme}}});var $P,jLe=ti(()=>{bl();$P=Ml("themeService")});var AVi,sai,d8t,EEi=ti(()=>{nc();S6();xc();co();KO();_y();hd();Ufe();AVi=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},sai=function(l,e){return function(r,o){e(r,o,l)}},d8t=class extends tn{constructor(e,r,o){super(),this._contextKeyService=e,this._layoutService=r,this._configurationService=o,this._accessibilitySupport=0,this._onDidChangeScreenReaderOptimized=new wn,this._onDidChangeReducedMotion=new wn,this._accessibilityModeEnabledContext=b6e.bindTo(this._contextKeyService);let c=()=>this._accessibilityModeEnabledContext.set(this.isScreenReaderOptimized());this._register(this._configurationService.onDidChangeConfiguration(h=>{h.affectsConfiguration("editor.accessibilitySupport")&&(c(),this._onDidChangeScreenReaderOptimized.fire()),h.affectsConfiguration("workbench.reduceMotion")&&(this._configMotionReduced=this._configurationService.getValue("workbench.reduceMotion"),this._onDidChangeReducedMotion.fire())})),c(),this._register(this.onDidChangeScreenReaderOptimized(()=>c()));let d=em.matchMedia("(prefers-reduced-motion: reduce)");this._systemMotionReduced=d.matches,this._configMotionReduced=this._configurationService.getValue("workbench.reduceMotion"),this.initReducedMotionListeners(d)}initReducedMotionListeners(e){this._register(Jr(e,"change",()=>{this._systemMotionReduced=e.matches,this._configMotionReduced==="auto"&&this._onDidChangeReducedMotion.fire()}));let r=()=>{let o=this.isMotionReduced();this._layoutService.mainContainer.classList.toggle("reduce-motion",o),this._layoutService.mainContainer.classList.toggle("enable-motion",!o)};r(),this._register(this.onDidChangeReducedMotion(()=>r()))}get onDidChangeScreenReaderOptimized(){return this._onDidChangeScreenReaderOptimized.event}isScreenReaderOptimized(){let e=this._configurationService.getValue("editor.accessibilitySupport");return e==="on"||e==="auto"&&this._accessibilitySupport===2}get onDidChangeReducedMotion(){return this._onDidChangeReducedMotion.event}isMotionReduced(){let e=this._configMotionReduced;return e==="on"||e==="auto"&&this._systemMotionReduced}getAccessibilitySupport(){return this._accessibilitySupport}};d8t=AVi([sai(0,Ec),sai(1,d7),sai(2,_u)],d8t)});function PVi(l,e,r){let o=eyi(e)?e.submenu.id:e.id,c=typeof e.title=="string"?e.title:e.title.value,d=Mne({id:`hide/${l.id}/${o}`,label:ce("hide.label","Hide '{0}'",c),run(){r.updateHidden(l,o,!0)}}),h=Mne({id:`toggle/${l.id}/${o}`,label:c,get checked(){return!r.isHidden(l,o)},run(){r.updateHidden(l,o,!!this.checked)}});return{hide:d,toggle:h,get isHidden(){return!h.checked}}}function lai(l,e=void 0,r,o){return Mne({id:`configureKeybinding/${l}`,label:ce("configure keybinding","Configure Keybinding"),run(){let d=!!!o.lookupKeybinding(l)&&e?e.serialize():void 0;r.executeCommand("workbench.action.openGlobalKeybindings",`@command:${l}`+(d?` +when:${d}`:""))}})}var p8t,qre,ZUe,vxe,f8t,_8t,aai,cai,uai=ti(()=>{Ud();xc();co();My();W0();hd();xE();gQ();sd();ya();f1();p8t=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},qre=function(l,e){return function(r,o){e(r,o,l)}},f8t=class{constructor(e,r,o){this._commandService=e,this._keybindingService=r,this._hiddenStates=new _8t(o)}createMenu(e,r,o){return new cai(e,this._hiddenStates,{emitEventsForSubmenuChanges:!1,eventDebounceDelay:50,...o},this._commandService,this._keybindingService,r)}resetHiddenStates(e){this._hiddenStates.reset(e)}};f8t=p8t([qre(0,Mp),qre(1,Jd),qre(2,GI)],f8t);_8t=ZUe=class{constructor(e){this._storageService=e,this._disposables=new Fr,this._onDidChange=new wn,this.onDidChange=this._onDidChange.event,this._ignoreChangeEvent=!1,this._hiddenByDefaultCache=new Map;try{let r=e.get(ZUe._key,0,"{}");this._data=JSON.parse(r)}catch{this._data=Object.create(null)}this._disposables.add(e.onDidChangeValue(0,ZUe._key,this._disposables)(()=>{if(!this._ignoreChangeEvent)try{let r=e.get(ZUe._key,0,"{}");this._data=JSON.parse(r)}catch(r){console.log("FAILED to read storage after UPDATE",r)}this._onDidChange.fire()}))}dispose(){this._onDidChange.dispose(),this._disposables.dispose()}_isHiddenByDefault(e,r){var o;return(o=this._hiddenByDefaultCache.get(`${e.id}/${r}`))!==null&&o!==void 0?o:!1}setDefaultState(e,r,o){this._hiddenByDefaultCache.set(`${e.id}/${r}`,o)}isHidden(e,r){var o,c;let d=this._isHiddenByDefault(e,r),h=(c=(o=this._data[e.id])===null||o===void 0?void 0:o.includes(r))!==null&&c!==void 0?c:!1;return d?!h:h}updateHidden(e,r,o){this._isHiddenByDefault(e,r)&&(o=!o);let d=this._data[e.id];if(o)d?d.indexOf(r)<0&&d.push(r):this._data[e.id]=[r];else if(d){let h=d.indexOf(r);h>=0&&Yhi(d,h),d.length===0&&delete this._data[e.id]}this._persist()}reset(e){if(e===void 0)this._data=Object.create(null),this._persist();else{for(let{id:r}of e)this._data[r]&&delete this._data[r];this._persist()}}_persist(){try{this._ignoreChangeEvent=!0;let e=JSON.stringify(this._data);this._storageService.store(ZUe._key,e,0,0)}finally{this._ignoreChangeEvent=!1}}};_8t._key="menu.hiddenCommands";_8t=ZUe=p8t([qre(0,GI)],_8t);aai=vxe=class{constructor(e,r,o,c,d,h){this._id=e,this._hiddenStates=r,this._collectContextKeysForSubmenus=o,this._commandService=c,this._keybindingService=d,this._contextKeyService=h,this._menuGroups=[],this._structureContextKeys=new Set,this._preconditionContextKeys=new Set,this._toggledContextKeys=new Set,this.refresh()}get structureContextKeys(){return this._structureContextKeys}get preconditionContextKeys(){return this._preconditionContextKeys}get toggledContextKeys(){return this._toggledContextKeys}refresh(){this._menuGroups.length=0,this._structureContextKeys.clear(),this._preconditionContextKeys.clear(),this._toggledContextKeys.clear();let e=Bx.getMenuItems(this._id),r;e.sort(vxe._compareMenuItems);for(let o of e){let c=o.group||"";(!r||r[0]!==c)&&(r=[c,[]],this._menuGroups.push(r)),r[1].push(o),this._collectContextKeys(o)}}_collectContextKeys(e){if(vxe._fillInKbExprKeys(e.when,this._structureContextKeys),rSe(e)){if(e.command.precondition&&vxe._fillInKbExprKeys(e.command.precondition,this._preconditionContextKeys),e.command.toggled){let r=e.command.toggled.condition||e.command.toggled;vxe._fillInKbExprKeys(r,this._toggledContextKeys)}}else this._collectContextKeysForSubmenus&&Bx.getMenuItems(e.submenu).forEach(this._collectContextKeys,this)}createActionGroups(e){let r=[];for(let o of this._menuGroups){let[c,d]=o,h;for(let b of d)if(this._contextKeyService.contextMatchesRules(b.when)){let w=rSe(b);w&&this._hiddenStates.setDefaultState(this._id,b.command.id,!!b.isHiddenByDefault);let N=PVi(this._id,w?b.command:b,this._hiddenStates);if(w){let L=lai(b.command.id,b.when,this._commandService,this._keybindingService);(h??(h=[])).push(new jI(b.command,b.alt,e,N,L,this._contextKeyService,this._commandService))}else{let L=new vxe(b.submenu,this._hiddenStates,this._collectContextKeysForSubmenus,this._commandService,this._keybindingService,this._contextKeyService).createActionGroups(e),B=J1.join(...L.map(F=>F[1]));B.length>0&&(h??(h=[])).push(new Wq(b,N,B))}}h&&h.length>0&&r.push([c,h])}return r}static _fillInKbExprKeys(e,r){if(e)for(let o of e.keys())r.add(o)}static _compareMenuItems(e,r){let o=e.group,c=r.group;if(o!==c){if(o){if(!c)return-1}else return 1;if(o==="navigation")return-1;if(c==="navigation")return 1;let b=o.localeCompare(c);if(b!==0)return b}let d=e.order||0,h=r.order||0;return dh?1:vxe._compareTitles(rSe(e)?e.command.title:e.title,rSe(r)?r.command.title:r.title)}static _compareTitles(e,r){let o=typeof e=="string"?e:e.original,c=typeof r=="string"?r:r.original;return o.localeCompare(c)}};aai=vxe=p8t([qre(3,Mp),qre(4,Jd),qre(5,Ec)],aai);cai=class{constructor(e,r,o,c,d,h){this._disposables=new Fr,this._menuInfo=new aai(e,r,o.emitEventsForSubmenuChanges,c,d,h);let b=new p_(()=>{this._menuInfo.refresh(),this._onDidChange.fire({menu:this,isStructuralChange:!0,isEnablementChange:!0,isToggleChange:!0})},o.eventDebounceDelay);this._disposables.add(b),this._disposables.add(Bx.onDidChangeMenu(B=>{B.has(e)&&b.schedule()}));let w=this._disposables.add(new Fr),N=B=>{let F=!1,Y=!1,Z=!1;for(let ee of B)if(F=F||ee.isStructuralChange,Y=Y||ee.isEnablementChange,Z=Z||ee.isToggleChange,F&&Y&&Z)break;return{menu:this,isStructuralChange:F,isEnablementChange:Y,isToggleChange:Z}},L=()=>{w.add(h.onDidChangeContext(B=>{let F=B.affectsSome(this._menuInfo.structureContextKeys),Y=B.affectsSome(this._menuInfo.preconditionContextKeys),Z=B.affectsSome(this._menuInfo.toggledContextKeys);(F||Y||Z)&&this._onDidChange.fire({menu:this,isStructuralChange:F,isEnablementChange:Y,isToggleChange:Z})})),w.add(r.onDidChange(B=>{this._onDidChange.fire({menu:this,isStructuralChange:!0,isEnablementChange:!1,isToggleChange:!1})}))};this._onDidChange=new Kze({onWillAddFirstListener:L,onDidRemoveLastListener:w.clear.bind(w),delay:o.eventDebounceDelay,merge:N}),this.onDidChange=this._onDidChange.event}getActions(e){return this._menuInfo.createActionGroups(e)}dispose(){this._disposables.dispose(),this._onDidChange.dispose()}};cai=p8t([qre(3,Mp),qre(4,Jd),qre(5,Ec)],cai)});var LVi,DEi,dai,V_t,IEi=ti(()=>{ZF();nc();S6();Ud();xc();Zbe();co();Ufe();UO();LVi=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},DEi=function(l,e){return function(r,o){e(r,o,l)}},V_t=dai=class extends tn{constructor(e,r){super(),this.layoutService=e,this.logService=r,this.mapTextToType=new Map,this.findText="",this.resources=[],this.resourcesStateHash=void 0,(TR||FIt)&&this.installWebKitWriteTextWorkaround(),this._register(gs.runAndSubscribe(J4e,({window:o,disposables:c})=>{c.add(Jr(o.document,"copy",()=>this.clearResources()))},{window:em,disposables:this._store}))}installWebKitWriteTextWorkaround(){let e=()=>{let r=new Fq;this.webKitPendingClipboardWritePromise&&!this.webKitPendingClipboardWritePromise.isSettled&&this.webKitPendingClipboardWritePromise.cancel(),this.webKitPendingClipboardWritePromise=r,_Ve().navigator.clipboard.write([new ClipboardItem({"text/plain":r.p})]).catch(async o=>{(!(o instanceof Error)||o.name!=="NotAllowedError"||!r.isRejected)&&this.logService.error(o)})};this._register(gs.runAndSubscribe(this.layoutService.onDidAddContainer,({container:r,disposables:o})=>{o.add(Jr(r,"click",e)),o.add(Jr(r,"keydown",e))},{container:this.layoutService.mainContainer,disposables:this._store}))}async writeText(e,r){if(this.writeResources([]),r){this.mapTextToType.set(r,e);return}if(this.webKitPendingClipboardWritePromise)return this.webKitPendingClipboardWritePromise.complete(e);try{return await _Ve().navigator.clipboard.writeText(e)}catch(o){console.error(o)}this.fallbackWriteText(e)}fallbackWriteText(e){let r=dfe(),o=r.activeElement,c=r.body.appendChild(qo("textarea",{"aria-hidden":!0}));c.style.height="1px",c.style.width="1px",c.style.position="absolute",c.value=e,c.focus(),c.select(),r.execCommand("copy"),Wv(o)&&o.focus(),r.body.removeChild(c)}async readText(e){if(e)return this.mapTextToType.get(e)||"";try{return await _Ve().navigator.clipboard.readText()}catch(r){console.error(r)}return""}async readFindText(){return this.findText}async writeFindText(e){this.findText=e}async writeResources(e){e.length===0?this.clearResources():(this.resources=e,this.resourcesStateHash=await this.computeResourcesStateHash())}async readResources(){let e=await this.computeResourcesStateHash();return this.resourcesStateHash!==e&&this.clearResources(),this.resources}async computeResourcesStateHash(){if(this.resources.length===0)return;let e=await this.readText();return Qbe(e.substring(0,dai.MAX_RESOURCE_STATE_SOURCE_LENGTH))}clearResources(){this.resources=[],this.resourcesStateHash=void 0}};V_t.MAX_RESOURCE_STATE_SOURCE_LENGTH=1e3;V_t=dai=LVi([DEi(0,d7),DEi(1,jb)],V_t)});var c8,l_e=ti(()=>{bl();c8=Ml("clipboardService")});function MVi(l,e){return l.allKeysContainedIn(new Set(Object.keys(e)))}function RVi(l){for(;l;){if(l.hasAttribute(H_t)){let e=l.getAttribute(H_t);return e?parseInt(e,10):NaN}l=l.parentElement}return 0}function BVi(l,e,r){l.get(Ec).createKey(String(e),jVi(r))}function jVi(l){return rDt(l,e=>{if(typeof e=="object"&&e.$mid===1)return qc.revive(e).toString();if(e instanceof qc)return e.toString()})}var OVi,FVi,H_t,U_t,bxe,m8t,fai,h8t,g8t,_ai,y8t,v8t,pai,NEi=ti(()=>{xc();QL();co();YL();d3t();s0();ya();W0();_y();hd();OVi=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},FVi=function(l,e){return function(r,o){e(r,o,l)}},H_t="data-keybinding-context",U_t=class{constructor(e,r){this._id=e,this._parent=r,this._value=Object.create(null),this._value._contextId=e}get value(){return{...this._value}}setValue(e,r){return this._value[e]!==r?(this._value[e]=r,!0):!1}removeValue(e){return e in this._value?(delete this._value[e],!0):!1}getValue(e){let r=this._value[e];return typeof r>"u"&&this._parent?this._parent.getValue(e):r}},bxe=class extends U_t{constructor(){super(-1,null)}setValue(e,r){return!1}removeValue(e){return!1}getValue(e){}};bxe.INSTANCE=new bxe;m8t=class l extends U_t{constructor(e,r,o){super(e,null),this._configurationService=r,this._values=gLe.forConfigKeys(),this._listener=this._configurationService.onDidChangeConfiguration(c=>{if(c.source===7){let d=Array.from(this._values,([h])=>h);this._values.clear(),o.fire(new g8t(d))}else{let d=[];for(let h of c.affectedKeys){let b=`config.${h}`,w=this._values.findSuperstr(b);w!==void 0&&(d.push(...S_.map(w,([N])=>N)),this._values.deleteSuperstr(b)),this._values.has(b)&&(d.push(b),this._values.delete(b))}o.fire(new g8t(d))}})}dispose(){this._listener.dispose()}getValue(e){if(e.indexOf(l._keyPrefix)!==0)return super.getValue(e);if(this._values.has(e))return this._values.get(e);let r=e.substr(l._keyPrefix.length),o=this._configurationService.getValue(r),c;switch(typeof o){case"number":case"boolean":case"string":c=o;break;default:Array.isArray(o)?c=JSON.stringify(o):c=o}return this._values.set(e,c),c}setValue(e,r){return super.setValue(e,r)}removeValue(e){return super.removeValue(e)}};m8t._keyPrefix="config.";fai=class{constructor(e,r,o){this._service=e,this._key=r,this._defaultValue=o,this.reset()}set(e){this._service.setContext(this._key,e)}reset(){typeof this._defaultValue>"u"?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)}get(){return this._service.getContextKeyValue(this._key)}},h8t=class{constructor(e){this.key=e}affectsSome(e){return e.has(this.key)}allKeysContainedIn(e){return this.affectsSome(e)}},g8t=class{constructor(e){this.keys=e}affectsSome(e){for(let r of this.keys)if(e.has(r))return!0;return!1}allKeysContainedIn(e){return this.keys.every(r=>e.has(r))}},_ai=class{constructor(e){this.events=e}affectsSome(e){for(let r of this.events)if(r.affectsSome(e))return!0;return!1}allKeysContainedIn(e){return this.events.every(r=>r.allKeysContainedIn(e))}};y8t=class extends tn{constructor(e){super(),this._onDidChangeContext=this._register(new cV({merge:r=>new _ai(r)})),this.onDidChangeContext=this._onDidChangeContext.event,this._isDisposed=!1,this._myContextId=e}createKey(e,r){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new fai(this,e,r)}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 pai(this,e)}contextMatchesRules(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");let r=this.getContextValuesContainer(this._myContextId);return e?e.evaluate(r):!0}getContextKeyValue(e){if(!this._isDisposed)return this.getContextValuesContainer(this._myContextId).getValue(e)}setContext(e,r){if(this._isDisposed)return;let o=this.getContextValuesContainer(this._myContextId);o&&o.setValue(e,r)&&this._onDidChangeContext.fire(new h8t(e))}removeContext(e){this._isDisposed||this.getContextValuesContainer(this._myContextId).removeValue(e)&&this._onDidChangeContext.fire(new h8t(e))}getContext(e){return this._isDisposed?bxe.INSTANCE:this.getContextValuesContainer(RVi(e))}dispose(){super.dispose(),this._isDisposed=!0}},v8t=class extends y8t{constructor(e){super(0),this._contexts=new Map,this._lastContextId=0;let r=this._register(new m8t(this._myContextId,e,this._onDidChangeContext));this._contexts.set(this._myContextId,r)}getContextValuesContainer(e){return this._isDisposed?bxe.INSTANCE:this._contexts.get(e)||bxe.INSTANCE}createChildContext(e=this._myContextId){if(this._isDisposed)throw new Error("ContextKeyService has been disposed");let r=++this._lastContextId;return this._contexts.set(r,new U_t(r,this.getContextValuesContainer(e))),r}disposeContext(e){this._isDisposed||this._contexts.delete(e)}};v8t=OVi([FVi(0,_u)],v8t);pai=class extends y8t{constructor(e,r){if(super(e.createChildContext()),this._parentChangeListener=this._register(new zg),this._parent=e,this._updateParentChangeListener(),this._domNode=r,this._domNode.hasAttribute(H_t)){let o="";this._domNode.classList&&(o=Array.from(this._domNode.classList.values()).join(", ")),console.error(`Element already has context attribute${o?": "+o:""}`)}this._domNode.setAttribute(H_t,String(this._myContextId))}_updateParentChangeListener(){this._parentChangeListener.value=this._parent.onDidChangeContext(e=>{let o=this._parent.getContextValuesContainer(this._myContextId).value;MVi(e,o)||this._onDidChangeContext.fire(e)})}dispose(){this._isDisposed||(this._parent.disposeContext(this._myContextId),this._domNode.removeAttribute(H_t),super.dispose())}getContextValuesContainer(e){return this._isDisposed?bxe.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)}};df.registerCommand("_setContext",BVi);df.registerCommand({id:"getContextKeyInfo",handler(){return[...va.all()].sort((l,e)=>l.key.localeCompare(e.key))},metadata:{description:ce("getContextKeyInfo","A command that returns information about context keys"),args:[]}});df.registerCommand("_generateContextKeyInfo",function(){let l=[],e=new Set;for(let r of va.all())e.has(r.key)||(e.add(r.key),l.push(r));l.sort((r,o)=>r.key.localeCompare(o.key)),console.log(JSON.stringify(l,void 0,2))})});var mai,J_t,AEi=ti(()=>{mai=class{constructor(e,r){this.key=e,this.data=r,this.incoming=new Map,this.outgoing=new Map}},J_t=class{constructor(e){this._hashFn=e,this._nodes=new Map}roots(){let e=[];for(let r of this._nodes.values())r.outgoing.size===0&&e.push(r);return e}insertEdge(e,r){let o=this.lookupOrInsertNode(e),c=this.lookupOrInsertNode(r);o.outgoing.set(c.key,c),c.incoming.set(o.key,o)}removeNode(e){let r=this._hashFn(e);this._nodes.delete(r);for(let o of this._nodes.values())o.outgoing.delete(r),o.incoming.delete(r)}lookupOrInsertNode(e){let r=this._hashFn(e),o=this._nodes.get(r);return o||(o=new mai(r,e),this._nodes.set(r,o)),o}isEmpty(){return this._nodes.size===0}toString(){let e=[];for(let[r,o]of this._nodes)e.push(`${r} + (-> incoming)[${[...o.incoming.keys()].join(", ")}] + (outgoing ->)[${[...o.outgoing.keys()].join(",")}] +`);return e.join(` +`)}findCycleSlow(){for(let[e,r]of this._nodes){let o=new Set([e]),c=this._findCycle(r,o);if(c)return c}}_findCycle(e,r){for(let[o,c]of e.outgoing){if(r.has(o))return[...r,o].join(" -> ");r.add(o);let d=this._findCycle(c,r);if(d)return d;r.delete(o)}}}});var WVi,b8t,S8t,u_e,PEi=ti(()=>{Ud();Du();co();VNt();AEi();bl();XHe();mB();WVi=!1,b8t=class extends Error{constructor(e){var r;super("cyclic dependency between services"),this.message=(r=e.findCycleSlow())!==null&&r!==void 0?r:`UNABLE to detect cycle, dumping graph: +${e.toString()}`}},S8t=class l{constructor(e=new c$,r=!1,o,c=WVi){var d;this._services=e,this._strict=r,this._parent=o,this._enableTracing=c,this._isDisposed=!1,this._servicesToMaybeDispose=new Set,this._children=new Set,this._activeInstantiations=new Set,this._services.set(Pa,this),this._globalGraph=c?(d=o?._globalGraph)!==null&&d!==void 0?d:new J_t(h=>h):void 0}dispose(){if(!this._isDisposed){this._isDisposed=!0,Fp(this._children),this._children.clear();for(let e of this._servicesToMaybeDispose)zbe(e)&&e.dispose();this._servicesToMaybeDispose.clear()}}_throwIfDisposed(){if(this._isDisposed)throw new Error("InstantiationService has been disposed")}createChild(e,r){this._throwIfDisposed();let o=this,c=new class extends l{dispose(){o._children.delete(c),super.dispose()}}(e,this._strict,this,this._enableTracing);return this._children.add(c),r?.add(c),c}invokeFunction(e,...r){this._throwIfDisposed();let o=u_e.traceInvocation(this._enableTracing,e),c=!1;try{return e({get:h=>{if(c)throw $ze("service accessor is only valid during the invocation of its target method");let b=this._getOrCreateServiceInstance(h,o);if(!b)throw new Error(`[invokeFunction] unknown service '${h}'`);return b}},...r)}finally{c=!0,o.stop()}}createInstance(e,...r){this._throwIfDisposed();let o,c;return e instanceof AR?(o=u_e.traceCreation(this._enableTracing,e.ctor),c=this._createInstance(e.ctor,e.staticArguments.concat(r),o)):(o=u_e.traceCreation(this._enableTracing,e),c=this._createInstance(e,r,o)),o.stop(),c}_createInstance(e,r=[],o){let c=Rq.getServiceDependencies(e).sort((b,w)=>b.index-w.index),d=[];for(let b of c){let w=this._getOrCreateServiceInstance(b.id,o);w||this._throwIfStrict(`[createInstance] ${e.name} depends on UNKNOWN service ${b.id}.`,!1),d.push(w)}let h=c.length>0?c[0].index:r.length;if(r.length!==h){console.trace(`[createInstance] First service dependency of ${e.name} at position ${h+1} conflicts with ${r.length} static arguments`);let b=h-r.length;b>0?r=r.concat(new Array(b)):r=r.slice(0,h)}return Reflect.construct(e,r.concat(d))}_setCreatedServiceInstance(e,r){if(this._services.get(e)instanceof AR)this._services.set(e,r);else if(this._parent)this._parent._setCreatedServiceInstance(e,r);else throw new Error("illegalState - setting UNKNOWN service instance")}_getServiceInstanceOrDescriptor(e){let r=this._services.get(e);return!r&&this._parent?this._parent._getServiceInstanceOrDescriptor(e):r}_getOrCreateServiceInstance(e,r){this._globalGraph&&this._globalGraphImplicitDependency&&this._globalGraph.insertEdge(this._globalGraphImplicitDependency,String(e));let o=this._getServiceInstanceOrDescriptor(e);return o instanceof AR?this._safeCreateAndCacheServiceInstance(e,o,r.branch(e,!0)):(r.branch(e,!1),o)}_safeCreateAndCacheServiceInstance(e,r,o){if(this._activeInstantiations.has(e))throw new Error(`illegal state - RECURSIVELY instantiating service '${e}'`);this._activeInstantiations.add(e);try{return this._createAndCacheServiceInstance(e,r,o)}finally{this._activeInstantiations.delete(e)}}_createAndCacheServiceInstance(e,r,o){var c;let d=new J_t(w=>w.id.toString()),h=0,b=[{id:e,desc:r,_trace:o}];for(;b.length;){let w=b.pop();if(d.lookupOrInsertNode(w),h++>1e3)throw new b8t(d);for(let N of Rq.getServiceDependencies(w.desc.ctor)){let L=this._getServiceInstanceOrDescriptor(N.id);if(L||this._throwIfStrict(`[createInstance] ${e} depends on ${N.id} which is NOT registered.`,!0),(c=this._globalGraph)===null||c===void 0||c.insertEdge(String(w.id),String(N.id)),L instanceof AR){let B={id:N.id,desc:L,_trace:w._trace.branch(N.id,!0)};d.insertEdge(w,B),b.push(B)}}}for(;;){let w=d.roots();if(w.length===0){if(!d.isEmpty())throw new b8t(d);break}for(let{data:N}of w){if(this._getServiceInstanceOrDescriptor(N.id)instanceof AR){let B=this._createServiceInstanceWithOwner(N.id,N.desc.ctor,N.desc.staticArguments,N.desc.supportsDelayedInstantiation,N._trace);this._setCreatedServiceInstance(N.id,B)}d.removeNode(N)}}return this._getServiceInstanceOrDescriptor(e)}_createServiceInstanceWithOwner(e,r,o=[],c,d){if(this._services.get(e)instanceof AR)return this._createServiceInstance(e,r,o,c,d,this._servicesToMaybeDispose);if(this._parent)return this._parent._createServiceInstanceWithOwner(e,r,o,c,d);throw new Error(`illegalState - creating UNKNOWN service instance ${r.name}`)}_createServiceInstance(e,r,o=[],c,d,h){if(c){let b=new l(void 0,this._strict,this,this._enableTracing);b._globalGraphImplicitDependency=String(e);let w=new Map,N=new VIt(()=>{let L=b._createInstance(r,o,d);for(let[B,F]of w){let Y=L[B];if(typeof Y=="function")for(let Z of F)Z.disposable=Y.apply(L,Z.listener)}return w.clear(),h.add(L),L});return new Proxy(Object.create(null),{get(L,B){if(!N.isInitialized&&typeof B=="string"&&(B.startsWith("onDid")||B.startsWith("onWill"))){let Z=w.get(B);return Z||(Z=new QS,w.set(B,Z)),(Te,Je,Xe)=>{if(N.isInitialized)return N.value[B](Te,Je,Xe);{let ct={listener:[Te,Je,Xe],disposable:void 0},Ct=Z.push(ct);return Ma(()=>{var Yt;Ct(),(Yt=ct.disposable)===null||Yt===void 0||Yt.dispose()})}}}if(B in L)return L[B];let F=N.value,Y=F[B];return typeof Y!="function"||(Y=Y.bind(F),L[B]=Y),Y},set(L,B,F){return N.value[B]=F,!0},getPrototypeOf(L){return r.prototype}})}else{let b=this._createInstance(r,o,d);return h.add(b),b}}_throwIfStrict(e,r){if(r&&console.warn(e),this._strict)throw new Error(e)}},u_e=class l{static traceInvocation(e,r){return e?new l(2,r.name||new Error().stack.split(` +`).slice(3,4).join(` +`)):l._None}static traceCreation(e,r){return e?new l(1,r.name):l._None}constructor(e,r){this.type=e,this.name=r,this._start=Date.now(),this._dep=[]}branch(e,r){let o=new l(3,e.toString());return this._dep.push([e,r,o]),o}stop(){let e=Date.now()-this._start;l._totals+=e;let r=!1;function o(d,h){let b=[],w=new Array(d+1).join(" ");for(let[N,L,B]of h._dep)if(L&&B){r=!0,b.push(`${w}CREATES -> ${N}`);let F=o(d+1,B);F&&b.push(F)}else b.push(`${w}uses -> ${N}`);return b.join(` +`)}let c=[`${this.type===1?"CREATE":"CALL"} ${this.name}`,`${o(1,this)}`,`DONE, took ${e.toFixed(2)}ms (grand total ${l._totals.toFixed(2)}ms)`];(e>2||r)&&l.all.add(c.join(` +`))}};u_e.all=new Set;u_e._None=new class extends u_e{constructor(){super(0,null)}stop(){}branch(){return this}};u_e._totals=0});var zVi,hai,gai,x8t,LEi=ti(()=>{sd();xc();QL();pA();RP();s0();Mre();zVi=new Set([Vu.inMemory,Vu.vscodeSourceControl,Vu.walkThrough,Vu.walkThroughSnippet,Vu.vscodeChatCodeBlock,Vu.vscodeCopilotBackingChatCodeBlock]),hai=class{constructor(){this._byResource=new nx,this._byOwner=new Map}set(e,r,o){let c=this._byResource.get(e);c||(c=new Map,this._byResource.set(e,c)),c.set(r,o);let d=this._byOwner.get(r);d||(d=new nx,this._byOwner.set(r,d)),d.set(e,o)}get(e,r){let o=this._byResource.get(e);return o?.get(r)}delete(e,r){let o=!1,c=!1,d=this._byResource.get(e);d&&(o=d.delete(r));let h=this._byOwner.get(r);if(h&&(c=h.delete(e)),o!==c)throw new Error("illegal state");return o&&c}values(e){var r,o,c,d;return typeof e=="string"?(o=(r=this._byOwner.get(e))===null||r===void 0?void 0:r.values())!==null&&o!==void 0?o:S_.empty():qc.isUri(e)?(d=(c=this._byResource.get(e))===null||c===void 0?void 0:c.values())!==null&&d!==void 0?d:S_.empty():S_.map(S_.concat(...this._byOwner.values()),h=>h[1])}},gai=class{constructor(e){this.errors=0,this.infos=0,this.warnings=0,this.unknowns=0,this._data=new nx,this._service=e,this._subscription=e.onMarkerChanged(this._update,this)}dispose(){this._subscription.dispose()}_update(e){for(let r of e){let o=this._data.get(r);o&&this._substract(o);let c=this._resourceStats(r);this._add(c),this._data.set(r,c)}}_resourceStats(e){let r={errors:0,warnings:0,infos:0,unknowns:0};if(zVi.has(e.scheme))return r;for(let{severity:o}of this._service.read({resource:e}))o===Y1.Error?r.errors+=1:o===Y1.Warning?r.warnings+=1:o===Y1.Info?r.infos+=1:r.unknowns+=1;return r}_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}},x8t=class l{constructor(){this._onMarkerChanged=new Kze({delay:0,merge:l._merge}),this.onMarkerChanged=this._onMarkerChanged.event,this._data=new hai,this._stats=new gai(this)}dispose(){this._stats.dispose(),this._onMarkerChanged.dispose()}remove(e,r){for(let o of r||[])this.changeOne(e,o,[])}changeOne(e,r,o){if(eDt(o))this._data.delete(r,e)&&this._onMarkerChanged.fire([r]);else{let c=[];for(let d of o){let h=l._toMarker(e,r,d);h&&c.push(h)}this._data.set(r,e,c),this._onMarkerChanged.fire([r])}}static _toMarker(e,r,o){let{code:c,severity:d,message:h,source:b,startLineNumber:w,startColumn:N,endLineNumber:L,endColumn:B,relatedInformation:F,tags:Y}=o;if(h)return w=w>0?w:1,N=N>0?N:1,L=L>=w?L:w,B=B>0?B:N,{resource:r,owner:e,code:c,severity:d,message:h,source:b,startLineNumber:w,startColumn:N,endLineNumber:L,endColumn:B,relatedInformation:F,tags:Y}}changeAll(e,r){let o=[],c=this._data.values(e);if(c)for(let d of c){let h=S_.first(d);h&&(o.push(h.resource),this._data.delete(h.resource,e))}if(CS(r)){let d=new nx;for(let{resource:h,marker:b}of r){let w=l._toMarker(e,h,b);if(!w)continue;let N=d.get(h);N?N.push(w):(d.set(h,[w]),o.push(h))}for(let[h,b]of d)this._data.set(h,e,b)}o.length>0&&this._onMarkerChanged.fire(o)}read(e=Object.create(null)){let{owner:r,resource:o,severities:c,take:d}=e;if((!d||d<0)&&(d=-1),r&&o){let h=this._data.get(o,r);if(h){let b=[];for(let w of h)if(l._accept(w,c)){let N=b.push(w);if(d>0&&N===d)break}return b}else return[]}else if(!r&&!o){let h=[];for(let b of this._data.values())for(let w of b)if(l._accept(w,c)){let N=h.push(w);if(d>0&&N===d)return h}return h}else{let h=this._data.values(o??r),b=[];for(let w of h)for(let N of w)if(l._accept(N,c)){let L=b.push(N);if(d>0&&L===d)return b}return b}}static _accept(e,r){return r===void 0||(r&e.severity)===e.severity}static _merge(e){let r=new nx;for(let o of e)for(let c of o)r.set(c,!0);return Array.from(r.keys())}}});var C8t,OEi=ti(()=>{co();Bri();Wne();DT();C8t=class extends tn{get configurationModel(){return this._configurationModel}constructor(e){super(),this.logService=e,this._configurationModel=f3.createEmptyModel(this.logService)}reload(){return this.resetConfigurationModel(),this.configurationModel}getConfigurationDefaultOverrides(){return{}}resetConfigurationModel(){this._configurationModel=f3.createEmptyModel(this.logService);let e=pm.as(jP.Configuration).getConfigurationProperties();this.updateConfigurationModel(Object.keys(e),e)}updateConfigurationModel(e,r){let o=this.getConfigurationDefaultOverrides();for(let c of e){let d=o[c],h=r[c];d!==void 0?this._configurationModel.addValue(c,d):h?this._configurationModel.addValue(c,h.default):this._configurationModel.removeValue(c)}}}});var JR,DHn,rf,yai,Tf,Sxe=ti(()=>{ya();bl();JR=Ml("accessibilitySignalService"),DHn=Symbol("AcknowledgeDocCommentsToken"),rf=class l{static register(e){return new l(e.fileName)}constructor(e){this.fileName=e}};rf.error=rf.register({fileName:"error.mp3"});rf.warning=rf.register({fileName:"warning.mp3"});rf.success=rf.register({fileName:"success.mp3"});rf.foldedArea=rf.register({fileName:"foldedAreas.mp3"});rf.break=rf.register({fileName:"break.mp3"});rf.quickFixes=rf.register({fileName:"quickFixes.mp3"});rf.taskCompleted=rf.register({fileName:"taskCompleted.mp3"});rf.taskFailed=rf.register({fileName:"taskFailed.mp3"});rf.terminalBell=rf.register({fileName:"terminalBell.mp3"});rf.diffLineInserted=rf.register({fileName:"diffLineInserted.mp3"});rf.diffLineDeleted=rf.register({fileName:"diffLineDeleted.mp3"});rf.diffLineModified=rf.register({fileName:"diffLineModified.mp3"});rf.chatRequestSent=rf.register({fileName:"chatRequestSent.mp3"});rf.chatResponseReceived1=rf.register({fileName:"chatResponseReceived1.mp3"});rf.chatResponseReceived2=rf.register({fileName:"chatResponseReceived2.mp3"});rf.chatResponseReceived3=rf.register({fileName:"chatResponseReceived3.mp3"});rf.chatResponseReceived4=rf.register({fileName:"chatResponseReceived4.mp3"});rf.clear=rf.register({fileName:"clear.mp3"});rf.save=rf.register({fileName:"save.mp3"});rf.format=rf.register({fileName:"format.mp3"});rf.voiceRecordingStarted=rf.register({fileName:"voiceRecordingStarted.mp3"});rf.voiceRecordingStopped=rf.register({fileName:"voiceRecordingStopped.mp3"});rf.progress=rf.register({fileName:"progress.mp3"});yai=class{constructor(e){this.randomOneOf=e}},Tf=class l{constructor(e,r,o,c,d,h,b){this.sound=e,this.name=r,this.legacySoundSettingsKey=o,this.settingsKey=c,this.legacyAnnouncementSettingsKey=d,this.announcementMessage=h,this.delaySettingsKey=b}static register(e){let r=new yai("randomOneOf"in e.sound?e.sound.randomOneOf:[e.sound]),o=new l(r,e.name,e.legacySoundSettingsKey,e.settingsKey,e.legacyAnnouncementSettingsKey,e.announcementMessage,e.delaySettingsKey);return l._signals.add(o),o}};Tf._signals=new Set;Tf.errorAtPosition=Tf.register({name:ce("accessibilitySignals.positionHasError.name","Error at Position"),sound:rf.error,announcementMessage:ce("accessibility.signals.positionHasError","Error"),settingsKey:"accessibility.signals.positionHasError",delaySettingsKey:"accessibility.signalOptions.delays.errorAtPosition"});Tf.warningAtPosition=Tf.register({name:ce("accessibilitySignals.positionHasWarning.name","Warning at Position"),sound:rf.warning,announcementMessage:ce("accessibility.signals.positionHasWarning","Warning"),settingsKey:"accessibility.signals.positionHasWarning",delaySettingsKey:"accessibility.signalOptions.delays.warningAtPosition"});Tf.errorOnLine=Tf.register({name:ce("accessibilitySignals.lineHasError.name","Error on Line"),sound:rf.error,legacySoundSettingsKey:"audioCues.lineHasError",legacyAnnouncementSettingsKey:"accessibility.alert.error",announcementMessage:ce("accessibility.signals.lineHasError","Error on Line"),settingsKey:"accessibility.signals.lineHasError"});Tf.warningOnLine=Tf.register({name:ce("accessibilitySignals.lineHasWarning.name","Warning on Line"),sound:rf.warning,legacySoundSettingsKey:"audioCues.lineHasWarning",legacyAnnouncementSettingsKey:"accessibility.alert.warning",announcementMessage:ce("accessibility.signals.lineHasWarning","Warning on Line"),settingsKey:"accessibility.signals.lineHasWarning"});Tf.foldedArea=Tf.register({name:ce("accessibilitySignals.lineHasFoldedArea.name","Folded Area on Line"),sound:rf.foldedArea,legacySoundSettingsKey:"audioCues.lineHasFoldedArea",legacyAnnouncementSettingsKey:"accessibility.alert.foldedArea",announcementMessage:ce("accessibility.signals.lineHasFoldedArea","Folded"),settingsKey:"accessibility.signals.lineHasFoldedArea"});Tf.break=Tf.register({name:ce("accessibilitySignals.lineHasBreakpoint.name","Breakpoint on Line"),sound:rf.break,legacySoundSettingsKey:"audioCues.lineHasBreakpoint",legacyAnnouncementSettingsKey:"accessibility.alert.breakpoint",announcementMessage:ce("accessibility.signals.lineHasBreakpoint","Breakpoint"),settingsKey:"accessibility.signals.lineHasBreakpoint"});Tf.inlineSuggestion=Tf.register({name:ce("accessibilitySignals.lineHasInlineSuggestion.name","Inline Suggestion on Line"),sound:rf.quickFixes,legacySoundSettingsKey:"audioCues.lineHasInlineSuggestion",settingsKey:"accessibility.signals.lineHasInlineSuggestion"});Tf.terminalQuickFix=Tf.register({name:ce("accessibilitySignals.terminalQuickFix.name","Terminal Quick Fix"),sound:rf.quickFixes,legacySoundSettingsKey:"audioCues.terminalQuickFix",legacyAnnouncementSettingsKey:"accessibility.alert.terminalQuickFix",announcementMessage:ce("accessibility.signals.terminalQuickFix","Quick Fix"),settingsKey:"accessibility.signals.terminalQuickFix"});Tf.onDebugBreak=Tf.register({name:ce("accessibilitySignals.onDebugBreak.name","Debugger Stopped on Breakpoint"),sound:rf.break,legacySoundSettingsKey:"audioCues.onDebugBreak",legacyAnnouncementSettingsKey:"accessibility.alert.onDebugBreak",announcementMessage:ce("accessibility.signals.onDebugBreak","Breakpoint"),settingsKey:"accessibility.signals.onDebugBreak"});Tf.noInlayHints=Tf.register({name:ce("accessibilitySignals.noInlayHints","No Inlay Hints on Line"),sound:rf.error,legacySoundSettingsKey:"audioCues.noInlayHints",legacyAnnouncementSettingsKey:"accessibility.alert.noInlayHints",announcementMessage:ce("accessibility.signals.noInlayHints","No Inlay Hints"),settingsKey:"accessibility.signals.noInlayHints"});Tf.taskCompleted=Tf.register({name:ce("accessibilitySignals.taskCompleted","Task Completed"),sound:rf.taskCompleted,legacySoundSettingsKey:"audioCues.taskCompleted",legacyAnnouncementSettingsKey:"accessibility.alert.taskCompleted",announcementMessage:ce("accessibility.signals.taskCompleted","Task Completed"),settingsKey:"accessibility.signals.taskCompleted"});Tf.taskFailed=Tf.register({name:ce("accessibilitySignals.taskFailed","Task Failed"),sound:rf.taskFailed,legacySoundSettingsKey:"audioCues.taskFailed",legacyAnnouncementSettingsKey:"accessibility.alert.taskFailed",announcementMessage:ce("accessibility.signals.taskFailed","Task Failed"),settingsKey:"accessibility.signals.taskFailed"});Tf.terminalCommandFailed=Tf.register({name:ce("accessibilitySignals.terminalCommandFailed","Terminal Command Failed"),sound:rf.error,legacySoundSettingsKey:"audioCues.terminalCommandFailed",legacyAnnouncementSettingsKey:"accessibility.alert.terminalCommandFailed",announcementMessage:ce("accessibility.signals.terminalCommandFailed","Command Failed"),settingsKey:"accessibility.signals.terminalCommandFailed"});Tf.terminalCommandSucceeded=Tf.register({name:ce("accessibilitySignals.terminalCommandSucceeded","Terminal Command Succeeded"),sound:rf.success,announcementMessage:ce("accessibility.signals.terminalCommandSucceeded","Command Succeeded"),settingsKey:"accessibility.signals.terminalCommandSucceeded"});Tf.terminalBell=Tf.register({name:ce("accessibilitySignals.terminalBell","Terminal Bell"),sound:rf.terminalBell,legacySoundSettingsKey:"audioCues.terminalBell",legacyAnnouncementSettingsKey:"accessibility.alert.terminalBell",announcementMessage:ce("accessibility.signals.terminalBell","Terminal Bell"),settingsKey:"accessibility.signals.terminalBell"});Tf.notebookCellCompleted=Tf.register({name:ce("accessibilitySignals.notebookCellCompleted","Notebook Cell Completed"),sound:rf.taskCompleted,legacySoundSettingsKey:"audioCues.notebookCellCompleted",legacyAnnouncementSettingsKey:"accessibility.alert.notebookCellCompleted",announcementMessage:ce("accessibility.signals.notebookCellCompleted","Notebook Cell Completed"),settingsKey:"accessibility.signals.notebookCellCompleted"});Tf.notebookCellFailed=Tf.register({name:ce("accessibilitySignals.notebookCellFailed","Notebook Cell Failed"),sound:rf.taskFailed,legacySoundSettingsKey:"audioCues.notebookCellFailed",legacyAnnouncementSettingsKey:"accessibility.alert.notebookCellFailed",announcementMessage:ce("accessibility.signals.notebookCellFailed","Notebook Cell Failed"),settingsKey:"accessibility.signals.notebookCellFailed"});Tf.diffLineInserted=Tf.register({name:ce("accessibilitySignals.diffLineInserted","Diff Line Inserted"),sound:rf.diffLineInserted,legacySoundSettingsKey:"audioCues.diffLineInserted",settingsKey:"accessibility.signals.diffLineInserted"});Tf.diffLineDeleted=Tf.register({name:ce("accessibilitySignals.diffLineDeleted","Diff Line Deleted"),sound:rf.diffLineDeleted,legacySoundSettingsKey:"audioCues.diffLineDeleted",settingsKey:"accessibility.signals.diffLineDeleted"});Tf.diffLineModified=Tf.register({name:ce("accessibilitySignals.diffLineModified","Diff Line Modified"),sound:rf.diffLineModified,legacySoundSettingsKey:"audioCues.diffLineModified",settingsKey:"accessibility.signals.diffLineModified"});Tf.chatRequestSent=Tf.register({name:ce("accessibilitySignals.chatRequestSent","Chat Request Sent"),sound:rf.chatRequestSent,legacySoundSettingsKey:"audioCues.chatRequestSent",legacyAnnouncementSettingsKey:"accessibility.alert.chatRequestSent",announcementMessage:ce("accessibility.signals.chatRequestSent","Chat Request Sent"),settingsKey:"accessibility.signals.chatRequestSent"});Tf.chatResponseReceived=Tf.register({name:ce("accessibilitySignals.chatResponseReceived","Chat Response Received"),legacySoundSettingsKey:"audioCues.chatResponseReceived",sound:{randomOneOf:[rf.chatResponseReceived1,rf.chatResponseReceived2,rf.chatResponseReceived3,rf.chatResponseReceived4]},settingsKey:"accessibility.signals.chatResponseReceived"});Tf.progress=Tf.register({name:ce("accessibilitySignals.progress","Progress"),sound:rf.progress,legacySoundSettingsKey:"audioCues.chatResponsePending",legacyAnnouncementSettingsKey:"accessibility.alert.progress",announcementMessage:ce("accessibility.signals.progress","Progress"),settingsKey:"accessibility.signals.progress"});Tf.clear=Tf.register({name:ce("accessibilitySignals.clear","Clear"),sound:rf.clear,legacySoundSettingsKey:"audioCues.clear",legacyAnnouncementSettingsKey:"accessibility.alert.clear",announcementMessage:ce("accessibility.signals.clear","Clear"),settingsKey:"accessibility.signals.clear"});Tf.save=Tf.register({name:ce("accessibilitySignals.save","Save"),sound:rf.save,legacySoundSettingsKey:"audioCues.save",legacyAnnouncementSettingsKey:"accessibility.alert.save",announcementMessage:ce("accessibility.signals.save","Save"),settingsKey:"accessibility.signals.save"});Tf.format=Tf.register({name:ce("accessibilitySignals.format","Format"),sound:rf.format,legacySoundSettingsKey:"audioCues.format",legacyAnnouncementSettingsKey:"accessibility.alert.format",announcementMessage:ce("accessibility.signals.format","Format"),settingsKey:"accessibility.signals.format"});Tf.voiceRecordingStarted=Tf.register({name:ce("accessibilitySignals.voiceRecordingStarted","Voice Recording Started"),sound:rf.voiceRecordingStarted,legacySoundSettingsKey:"audioCues.voiceRecordingStarted",settingsKey:"accessibility.signals.voiceRecordingStarted"});Tf.voiceRecordingStopped=Tf.register({name:ce("accessibilitySignals.voiceRecordingStopped","Voice Recording Stopped"),sound:rf.voiceRecordingStopped,legacySoundSettingsKey:"audioCues.voiceRecordingStopped",settingsKey:"accessibility.signals.voiceRecordingStopped"})});var k8t,FEi=ti(()=>{co();UO();k8t=class extends tn{constructor(e,r=[]){super(),this.logger=new NNt([e,...r]),this._register(e.onDidChangeLogLevel(o=>this.setLevel(o)))}get onDidChangeLogLevel(){return this.logger.onDidChangeLogLevel}setLevel(e){this.logger.setLevel(e)}getLevel(){return this.logger.getLevel()}trace(e,...r){this.logger.trace(e,...r)}debug(e,...r){this.logger.debug(e,...r)}info(e,...r){this.logger.info(e,...r)}warn(e,...r){this.logger.warn(e,...r)}error(e,...r){this.logger.error(e,...r)}}});function $re(l){MEi.push(l)}function REi(){return MEi.slice(0)}var MEi,WLe=ti(()=>{MEi=[]});function BEi(l){return l&&typeof l=="object"&&(!l.overrideIdentifier||typeof l.overrideIdentifier=="string")&&(!l.resource||l.resource instanceof qc)}function q_t(l,e,r){if(!e||!(l instanceof E8t))return;let o=[];Object.keys(e).forEach(c=>{kwi(c)&&o.push([`editor.${c}`,e[c]]),r&&wwi(c)&&o.push([`diffEditor.${c}`,e[c]])}),o.length>0&&l.updateValues(o)}var d_e,KI,vai,bai,w8t,Sai,xai,Cai,T8t,kai,xxe,wai,E8t,Tai,Eai,Dai,D8t,Iai,Nai,Aai,Pai,Lai,Oai,Fai,Mai,qd,I8t=ti(()=>{ix();Wni();zni();pki();FV();gki();Nki();xwi();Mu();nc();lA();xc();U4e();co();X_();zfe();s0();hLe();i3t();OB();Iu();Xa();C6();CB();tdt();W0();_y();Bri();hd();YHe();bl();Dwi();f1();jri();ffe();Wri();Lwi();dUe();xA();u$();n3();_Ue();Ufe();Dre();VP();IC();UO();qri();u3();Pri();Uwi();VTi();_A();UTi();r_e();xAt();FD();GTi();NAt();KTi();dEi();oai();jLe();EEi();KO();My();uai();IEi();l_e();NEi();VNt();PEi();XHe();O_t();Mre();LEi();n8();a8();gQ();OEi();Sxe();FEi();WLe();Du();wLt();S6();pA();d_e=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},KI=function(l,e){return function(r,o){e(r,o,l)}},vai=class{constructor(e){this.disposed=!1,this.model=e,this._onWillDispose=new wn}get textEditorModel(){return this.model}dispose(){this.disposed=!0,this._onWillDispose.fire()}},bai=class{constructor(e){this.modelService=e}createModelReference(e){let r=this.modelService.getModel(e);return r?Promise.resolve(new mDt(new vai(r))):Promise.reject(new Error("Model not found"))}};bai=d_e([KI(0,Mh)],bai);w8t=class l{show(){return l.NULL_PROGRESS_RUNNER}async showWhile(e,r){await e}};w8t.NULL_PROGRESS_RUNNER={done:()=>{},total:()=>{},worked:()=>{}};Sai=class{withProgress(e,r,o){return r({report:()=>{}})}},xai=class{constructor(){this.isExtensionDevelopment=!1,this.isBuilt=!1}},Cai=class{async confirm(e){return{confirmed:this.doConfirm(e.message,e.detail),checkboxChecked:!1}}doConfirm(e,r){let o=e;return r&&(o=o+` + +`+r),em.confirm(o)}async prompt(e){var r,o;let c;if(this.doConfirm(e.message,e.detail)){let h=[...(r=e.buttons)!==null&&r!==void 0?r:[]];e.cancelButton&&typeof e.cancelButton!="string"&&typeof e.cancelButton!="boolean"&&h.push(e.cancelButton),c=await((o=h[0])===null||o===void 0?void 0:o.run({checkboxChecked:!1}))}return{result:c}}async error(e,r){await this.prompt({type:_1.Error,message:e,detail:r})}},T8t=class l{info(e){return this.notify({severity:_1.Info,message:e})}warn(e){return this.notify({severity:_1.Warning,message:e})}error(e){return this.notify({severity:_1.Error,message:e})}notify(e){switch(e.severity){case _1.Error:console.error(e.message);break;case _1.Warning:console.warn(e.message);break;default:console.log(e.message);break}return l.NO_OP}prompt(e,r,o,c){return l.NO_OP}status(e,r){return tn.None}};T8t.NO_OP=new mLt;kai=class{constructor(e){this._onWillExecuteCommand=new wn,this._onDidExecuteCommand=new wn,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this._instantiationService=e}executeCommand(e,...r){let o=df.getCommand(e);if(!o)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:r});let c=this._instantiationService.invokeFunction.apply(this._instantiationService,[o.handler,...r]);return this._onDidExecuteCommand.fire({commandId:e,args:r}),Promise.resolve(c)}catch(c){return Promise.reject(c)}}};kai=d_e([KI(0,Pa)],kai);xxe=class extends s3t{constructor(e,r,o,c,d,h){super(e,r,o,c,d),this._cachedResolver=null,this._dynamicKeybindings=[],this._domNodeListeners=[];let b=Y=>{let Z=new Fr;Z.add(Jr(Y,ls.KEY_DOWN,ee=>{let Te=new Jp(ee);this._dispatch(Te,Te.target)&&(Te.preventDefault(),Te.stopPropagation())})),Z.add(Jr(Y,ls.KEY_UP,ee=>{let Te=new Jp(ee);this._singleModifierDispatch(Te,Te.target)&&Te.preventDefault()})),this._domNodeListeners.push(new wai(Y,Z))},w=Y=>{for(let Z=0;Z{Y.getOption(61)||b(Y.getContainerDomNode())},L=Y=>{Y.getOption(61)||w(Y.getContainerDomNode())};this._register(h.onCodeEditorAdd(N)),this._register(h.onCodeEditorRemove(L)),h.listCodeEditors().forEach(N);let B=Y=>{b(Y.getContainerDomNode())},F=Y=>{w(Y.getContainerDomNode())};this._register(h.onDiffEditorAdd(B)),this._register(h.onDiffEditorRemove(F)),h.listDiffEditors().forEach(B)}addDynamicKeybinding(e,r,o,c){return cA(df.registerCommand(e,o),this.addDynamicKeybindings([{keybinding:r,command:e,when:c}]))}addDynamicKeybindings(e){let r=e.map(o=>{var c;return{keybinding:mut(o.keybinding,gE),command:(c=o.command)!==null&&c!==void 0?c:null,commandArgs:o.commandArgs,when:o.when,weight1:1e3,weight2:0,extensionId:null,isBuiltinExtension:!1}});return this._dynamicKeybindings=this._dynamicKeybindings.concat(r),this.updateResolver(),Ma(()=>{for(let o=0;othis._log(o))}return this._cachedResolver}_documentHasFocus(){return em.document.hasFocus()}_toNormalizedKeybindingItems(e,r){let o=[],c=0;for(let d of e){let h=d.when||void 0,b=d.keybinding;if(!b)o[c++]=new $ft(void 0,d.command,d.commandArgs,h,r,null,!1);else{let w=Gft.resolveKeybinding(b,gE);for(let N of w)o[c++]=new $ft(N,d.command,d.commandArgs,h,r,null,!1)}}return o}resolveKeyboardEvent(e){let r=new _V(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,e.keyCode);return new Gft([r],gE)}};xxe=d_e([KI(0,Ec),KI(1,Mp),KI(2,zv),KI(3,og),KI(4,jb),KI(5,nf)],xxe);wai=class extends tn{constructor(e,r){super(),this.domNode=e,this._register(r)}};E8t=class{constructor(e){this.logService=e,this._onDidChangeConfiguration=new wn,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event;let r=new C8t(e);this._configuration=new Jft(r.reload(),f3.createEmptyModel(e),f3.createEmptyModel(e),f3.createEmptyModel(e),f3.createEmptyModel(e),f3.createEmptyModel(e),new nx,f3.createEmptyModel(e),new nx,e),r.dispose()}getValue(e,r){let o=typeof e=="string"?e:void 0,c=BEi(e)?e:BEi(r)?r:{};return this._configuration.getValue(o,c,void 0)}updateValues(e){let r={data:this._configuration.toData()},o=[];for(let c of e){let[d,h]=c;this.getValue(d)!==h&&(this._configuration.updateValue(d,h),o.push(d))}if(o.length>0){let c=new r3t({keys:o,overrides:[]},r,this._configuration,void 0,this.logService);c.source=8,this._onDidChangeConfiguration.fire(c)}return Promise.resolve()}updateValue(e,r,o,c){return this.updateValues([[e,r]])}inspect(e,r={}){return this._configuration.inspect(e,r,void 0)}};E8t=d_e([KI(0,jb)],E8t);Tai=class{constructor(e,r,o){this.configurationService=e,this.modelService=r,this.languageService=o,this._onDidChangeConfiguration=new wn,this.configurationService.onDidChangeConfiguration(c=>{this._onDidChangeConfiguration.fire({affectedKeys:c.affectedKeys,affectsConfiguration:(d,h)=>c.affectsConfiguration(h)})})}getValue(e,r,o){let c=qn.isIPosition(r)?r:null,d=c?typeof o=="string"?o:void 0:typeof r=="string"?r:void 0,h=e?this.getLanguage(e,c):void 0;return typeof d>"u"?this.configurationService.getValue({resource:e,overrideIdentifier:h}):this.configurationService.getValue(d,{resource:e,overrideIdentifier:h})}getLanguage(e,r){let o=this.modelService.getModel(e);return o?r?o.getLanguageIdAtPosition(r.lineNumber,r.column):o.getLanguageId():this.languageService.guessLanguageIdByFilepathOrFirstLine(e)}};Tai=d_e([KI(0,_u),KI(1,Mh),KI(2,km)],Tai);Eai=class{constructor(e){this.configurationService=e}getEOL(e,r){let o=this.configurationService.getValue("files.eol",{overrideIdentifier:r,resource:e});return o&&typeof o=="string"&&o!=="auto"?o:kS||md?` +`:`\r +`}};Eai=d_e([KI(0,_u)],Eai);Dai=class{publicLog2(){}},D8t=class l{constructor(){let e=qc.from({scheme:l.SCHEME,authority:"model",path:"/"});this.workspace={id:Jri,folders:[new f3t({uri:e,name:"",index:0})]}}getWorkspace(){return this.workspace}getWorkspaceFolder(e){return e&&e.scheme===l.SCHEME?this.workspace.folders[0]:null}};D8t.SCHEME="inmemory";Iai=class{constructor(e){this._modelService=e}hasPreviewHandler(){return!1}async apply(e,r){let o=Array.isArray(e)?e:aUe.convert(e),c=new Map;for(let b of o){if(!(b instanceof nxe))throw new Error("bad edit - only text edits are supported");let w=this._modelService.getModel(b.resource);if(!w)throw new Error("bad edit - model not found");if(typeof b.versionId=="number"&&w.getVersionId()!==b.versionId)throw new Error("bad state - model changed in the meantime");let N=c.get(w);N||(N=[],c.set(w,N)),N.push(mg.replaceMove(Zt.lift(b.textEdit.range),b.textEdit.text))}let d=0,h=0;for(let[b,w]of c)b.pushStackElement(),b.pushEditOperations([],w,()=>[]),b.pushStackElement(),h+=1,d+=w.length;return{ariaSummary:uV(y3t.bulkEditServiceSummary,d,h),isApplied:d>0}}};Iai=d_e([KI(0,Mh)],Iai);Nai=class{getUriLabel(e,r){return e.scheme==="file"?e.fsPath:e.path}getUriBasenameLabel(e){return SA(e)}},Aai=class extends YLt{constructor(e,r){super(e),this._codeEditorService=r}showContextView(e,r,o){if(!r){let c=this._codeEditorService.getFocusedCodeEditor()||this._codeEditorService.getActiveCodeEditor();c&&(r=c.getContainerDomNode())}return super.showContextView(e,r,o)}};Aai=d_e([KI(0,d7),KI(1,nf)],Aai);Pai=class{constructor(){this._neverEmitter=new wn,this.onDidChangeTrust=this._neverEmitter.event}isWorkspaceTrusted(){return!0}},Lai=class extends e_t{constructor(){super()}},Oai=class extends k8t{constructor(){super(new INt)}},Fai=class extends Q3t{constructor(e,r,o,c,d,h){super(e,r,o,c,d,h),this.configure({blockMouse:!1})}};Fai=d_e([KI(0,zv),KI(1,og),KI(2,i8),KI(3,Jd),KI(4,CE),KI(5,Ec)],Fai);Mai=class{async playSignal(e,r){}};e_(jb,Oai,0);e_(_u,E8t,0);e_(RVe,Tai,0);e_(vAt,Eai,0);e_(pQ,D8t,0);e_(_Q,Nai,0);e_(zv,Dai,0);e_(vre,Cai,0);e_(tUe,xai,0);e_(og,T8t,0);e_(m7,x8t,0);e_(km,Lai,0);e_($P,u8t,0);e_(Mh,h_t,0);e_(qVe,tOt,0);e_(Ec,v8t,0);e_(u3t,Sai,0);e_(WR,w8t,0);e_(GI,H3t,0);e_(kA,bAt,0);e_(Ere,Iai,0);e_(v3t,Pai,0);e_(ak,bai,0);e_(ck,d8t,0);e_(VR,OOt,0);e_(Mp,kai,0);e_(Jd,xxe,0);e_(S2,r8t,0);e_(i8,Aai,0);e_(NC,eOt,0);e_(c8,V_t,0);e_(zw,Fai,0);e_(CE,f8t,0);e_(JR,Mai,0);(function(l){let e=new c$;for(let[w,N]of PZt())e.set(w,N);let r=new S8t(e,!0);e.set(Pa,r);function o(w){c||h({});let N=e.get(w);if(!N)throw new Error("Missing service "+w);return N instanceof AR?r.invokeFunction(L=>L.get(w)):N}l.get=o;let c=!1,d=new wn;function h(w){if(c)return r;c=!0;for(let[L,B]of PZt())e.get(L)||e.set(L,B);for(let L in w)if(w.hasOwnProperty(L)){let B=Ml(L);e.get(B)instanceof AR&&e.set(B,w[L])}let N=REi();for(let L of N)try{r.createInstance(L)}catch(B){dl(B)}return d.fire(),r}l.initialize=h;function b(w){if(c)return w();let N=new Fr,L=N.add(d.event(()=>{L.dispose(),N.add(w())}));return N}l.withServices=b})(qd||(qd={}))});var jEi=ti(()=>{});var y7,zLe=ti(()=>{y7=class l{static capture(e){if(e.getScrollTop()===0||e.hasPendingScrollAnimation())return new l(e.getScrollTop(),e.getContentHeight(),null,0,null);let r=null,o=0,c=e.getVisibleRanges();if(c.length>0){r=c[0].getStartPosition();let d=e.getTopForPosition(r.lineNumber,r.column);o=e.getScrollTop()-d}return new l(e.getScrollTop(),e.getContentHeight(),r,o,e.getPosition())}constructor(e,r,o,c,d){this._initialScrollTop=e,this._initialContentHeight=r,this._visiblePosition=o,this._visiblePositionScrollDelta=c,this._cursorPosition=d}restore(e){if(!(this._initialContentHeight===e.getContentHeight()&&this._initialScrollTop===e.getScrollTop())&&this._visiblePosition){let r=e.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);e.setScrollTop(r+this._visiblePositionScrollDelta)}}restoreRelativeVerticalPositionOfCursor(e){if(this._initialContentHeight===e.getContentHeight()&&this._initialScrollTop===e.getScrollTop())return;let r=e.getPosition();if(!this._cursorPosition||!r)return;let o=e.getTopForLineNumber(r.lineNumber)-e.getTopForLineNumber(this._cursorPosition.lineNumber);e.setScrollTop(e.getScrollTop()+o,1)}}});function A8t(){return tut&&!!tut.VSCODE_DEV}function Rai(l){if(A8t()){let e=VVi();return e.add(l),{dispose(){e.delete(l)}}}else return{dispose(){}}}function VVi(){N8t||(N8t=new Set);let l=globalThis;return l.$hotReload_applyNewExports||(l.$hotReload_applyNewExports=e=>{let r={config:{mode:void 0},...e};for(let o of N8t){let c=o(r);if(c)return c}}),N8t}var N8t,WEi=ti(()=>{_Qt();A8t()&&Rai(({oldExports:l,newSrc:e,config:r})=>{if(r.mode==="patch-prototype")return o=>{var c,d;for(let h in o){let b=o[h];if(console.log(`[hot-reload] Patching prototype methods of '${h}'`,{exportedItem:b}),typeof b=="function"&&b.prototype){let w=l[h];if(w){for(let N of Object.getOwnPropertyNames(b.prototype)){let L=Object.getOwnPropertyDescriptor(b.prototype,N),B=Object.getOwnPropertyDescriptor(w.prototype,N);((c=L?.value)===null||c===void 0?void 0:c.toString())!==((d=B?.value)===null||d===void 0?void 0:d.toString())&&console.log(`[hot-reload] Patching prototype method '${h}.${N}'`),Object.defineProperty(w.prototype,N,L)}o[h]=w}}}return!0}})});function zEi(l,e,r,o){if(l.length===0)return e;if(e.length===0)return l;let c=[],d=0,h=0;for(;dL?(c.push(w),h++):(c.push(o(b,w)),d++,h++)}for(;d`Apply decorations from ${e.debugName}`},c=>{let d=e.read(c);o.set(d)})),r.add({dispose:()=>{o.clear()}}),r}function VLe(l,e){return l.appendChild(e),Ma(()=>{l.removeChild(e)})}function VEi(l,e){return l.prepend(e),Ma(()=>{l.removeChild(e)})}function Bai(l,e,r){let o=e.get(),c=o,d=o,h=Jf("animatedValue",o),b=-1,w=300,N;r.add(Lre({createEmptyChangeSummary:()=>({animate:!1}),handleChange:(B,F)=>(B.didChange(e)&&(F.animate=F.animate||B.change),!0)},(B,F)=>{N!==void 0&&(l.cancelAnimationFrame(N),N=void 0),c=d,o=e.read(B),b=Date.now()-(F.animate?0:w),L()}));function L(){let B=Date.now()-b;d=Math.floor(HVi(B,c,o-c,w)),B{for(let[o,c]of Object.entries(e))c&&typeof c=="object"&&"read"in c&&(c=c.read(r)),typeof c=="number"&&(c=`${c}px`),o=o.replace(/[A-Z]/g,d=>"-"+d.toLowerCase()),l.style[o]=c})}function qR(l,e){return UVi([l],e),l}function UVi(l,e){A8t()&&iw("reload",o=>Rai(({oldExports:c})=>{if([...Object.values(c)].some(d=>l.includes(d)))return d=>(o(void 0),!0)})).read(e)}function nJe(l,e,r,o){let c=new Fr,d=[];return c.add(LT((h,b)=>{let w=e.read(h),N=new Map,L=new Map;r&&r(!0),l.changeViewZones(B=>{for(let F of d)B.removeZone(F),o?.delete(F);d.length=0;for(let F of w){let Y=B.addZone(F);F.setZoneId&&F.setZoneId(Y),d.push(Y),o?.add(Y),N.set(F,Y)}}),r&&r(!1),b.add(Lre({createEmptyChangeSummary(){return{zoneIds:[]}},handleChange(B,F){let Y=L.get(B.changedObservable);return Y!==void 0&&F.zoneIds.push(Y),!0}},(B,F)=>{for(let Y of w)Y.onChange&&(L.set(Y.onChange,N.get(Y)),Y.onChange.read(B));r&&r(!0),l.changeViewZones(Y=>{for(let Z of F.zoneIds)Y.layoutZone(Z)}),r&&r(!1)}))})),c.add({dispose(){r&&r(!0),l.changeViewZones(h=>{for(let b of d)h.removeZone(b)}),o?.clear(),r&&r(!1)}}),c}function jai(l,e){let r=vfe(e,c=>c.original.startLineNumber<=l.lineNumber);if(!r)return Zt.fromPositions(l);if(r.original.endLineNumberExclusive<=l.lineNumber){let c=l.lineNumber-r.original.endLineNumberExclusive+r.modified.endLineNumberExclusive;return Zt.fromPositions(new qn(c,l.column))}if(!r.innerChanges)return Zt.fromPositions(new qn(r.modified.startLineNumber,1));let o=vfe(r.innerChanges,c=>c.originalRange.getStartPosition().isBeforeOrEqual(l));if(!o){let c=l.lineNumber-r.original.startLineNumber+r.modified.startLineNumber;return Zt.fromPositions(new qn(c,l.column))}if(o.originalRange.containsPosition(l))return o.modifiedRange;{let c=JVi(o.originalRange.getEndPosition(),l);return Zt.fromPositions(c.addToPosition(o.modifiedRange.getEndPosition()))}}function JVi(l,e){return l.lineNumber===e.lineNumber?new zI(0,e.column-l.column):new zI(e.lineNumber-l.lineNumber,e.column-1)}function HEi(l,e){let r;return l.filter(o=>{let c=e(o,r);return r=o,c})}var eJe,tJe,Cxe,P8t,L8t,qV=ti(()=>{PR();Sh();WEi();co();xv();Rei();Iu();Xa();Sfe();eJe=class extends tn{get width(){return this._width}get height(){return this._height}get automaticLayout(){return this._automaticLayout}constructor(e,r){super(),this._automaticLayout=!1,this.elementSizeObserver=this._register(new $Ve(e,r)),this._width=Jf(this,this.elementSizeObserver.getWidth()),this._height=Jf(this,this.elementSizeObserver.getHeight()),this._register(this.elementSizeObserver.onDidChange(o=>Pm(c=>{this._width.set(this.elementSizeObserver.getWidth(),c),this._height.set(this.elementSizeObserver.getHeight(),c)})))}observe(e){this.elementSizeObserver.observe(e)}setAutomaticLayout(e){this._automaticLayout=e,e?this.elementSizeObserver.startObserving():this.elementSizeObserver.stopObserving()}};tJe=class extends tn{constructor(e,r,o){super(),this._register(new P8t(e,o)),this._register(JV(o,{height:r.actualHeight,top:r.actualTop}))}},Cxe=class{get afterLineNumber(){return this._afterLineNumber.get()}constructor(e,r){this._afterLineNumber=e,this.heightInPx=r,this.domNode=document.createElement("div"),this._actualTop=Jf(this,void 0),this._actualHeight=Jf(this,void 0),this.actualTop=this._actualTop,this.actualHeight=this._actualHeight,this.showInHiddenAreas=!0,this.onChange=this._afterLineNumber,this.onDomNodeTop=o=>{this._actualTop.set(o,void 0)},this.onComputedHeight=o=>{this._actualHeight.set(o,void 0)}}},P8t=class l{constructor(e,r){this._editor=e,this._domElement=r,this._overlayWidgetId=`managedOverlayWidget-${l._counter++}`,this._overlayWidget={getId:()=>this._overlayWidgetId,getDomNode:()=>this._domElement,getPosition:()=>null},this._editor.addOverlayWidget(this._overlayWidget)}dispose(){this._editor.removeOverlayWidget(this._overlayWidget)}};P8t._counter=0;L8t=class extends Up{dispose(){super.dispose(!0)}}});var UEi=ti(()=>{});function KVi(l,e,r){let o=[];for(let c of Rze(l,(d,h)=>h.modified.startLineNumber-d.modified.endLineNumberExclusive<2*$_t)){let d=[];d.push(new Vai);let h=new Rd(Math.max(1,c[0].original.startLineNumber-$_t),Math.min(c[c.length-1].original.endLineNumberExclusive+$_t,e+1)),b=new Rd(Math.max(1,c[0].modified.startLineNumber-$_t),Math.min(c[c.length-1].modified.endLineNumberExclusive+$_t,r+1));ZEt(c,(L,B)=>{let F=new Rd(L?L.original.endLineNumberExclusive:h.startLineNumber,B?B.original.startLineNumber:h.endLineNumberExclusive),Y=new Rd(L?L.modified.endLineNumberExclusive:b.startLineNumber,B?B.modified.startLineNumber:b.endLineNumberExclusive);F.forEach(Z=>{d.push(new Jai(Z,Y.startLineNumber+(Z-F.startLineNumber)))}),B&&(B.original.forEach(Z=>{d.push(new Hai(B,Z))}),B.modified.forEach(Z=>{d.push(new Uai(B,Z))}))});let w=c[0].modified.join(c[c.length-1].modified),N=c[0].original.join(c[c.length-1].original);o.push(new zai(new s3(w,N),d))}return o}var $ai,Gai,qVi,$Vi,GVi,f_e,Wai,$_t,l8,zai,Vai,Hai,Uai,Jai,qai,O8t,JEi=ti(()=>{nc();Bne();zV();AV();xE();sd();uy();co();xv();bv();xB();qV();TT();qO();o7();Iu();Xa();Hne();FD();Vq();bSe();Hq();ya();Sxe();bl();WB();UEi();$ai=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},Gai=function(l,e){return function(r,o){e(r,o,l)}},qVi=py("diff-review-insert",_s.add,ce("accessibleDiffViewerInsertIcon","Icon for 'Insert' in accessible diff viewer.")),$Vi=py("diff-review-remove",_s.remove,ce("accessibleDiffViewerRemoveIcon","Icon for 'Remove' in accessible diff viewer.")),GVi=py("diff-review-close",_s.close,ce("accessibleDiffViewerCloseIcon","Icon for 'Close' in accessible diff viewer.")),f_e=class extends tn{constructor(e,r,o,c,d,h,b,w,N){super(),this._parentNode=e,this._visible=r,this._setVisible=o,this._canClose=c,this._width=d,this._height=h,this._diffs=b,this._models=w,this._instantiationService=N,this._state=zR(this,(L,B)=>{let F=this._visible.read(L);if(this._parentNode.style.visibility=F?"visible":"hidden",!F)return null;let Y=B.add(this._instantiationService.createInstance(Wai,this._diffs,this._models,this._setVisible,this._canClose)),Z=B.add(this._instantiationService.createInstance(qai,this._parentNode,Y,this._width,this._height,this._models));return{model:Y,view:Z}}).recomputeInitiallyAndOnChange(this._store)}next(){Pm(e=>{let r=this._visible.get();this._setVisible(!0,e),r&&this._state.get().model.nextGroup(e)})}prev(){Pm(e=>{this._setVisible(!0,e),this._state.get().model.previousGroup(e)})}close(){Pm(e=>{this._setVisible(!1,e)})}};f_e._ttPolicy=r3("diffReview",{createHTML:l=>l});f_e=$ai([Gai(8,Pa)],f_e);Wai=class extends tn{constructor(e,r,o,c,d){super(),this._diffs=e,this._models=r,this._setVisible=o,this.canClose=c,this._accessibilitySignalService=d,this._groups=Jf(this,[]),this._currentGroupIdx=Jf(this,0),this._currentElementIdx=Jf(this,0),this.groups=this._groups,this.currentGroup=this._currentGroupIdx.map((h,b)=>this._groups.read(b)[h]),this.currentGroupIndex=this._currentGroupIdx,this.currentElement=this._currentElementIdx.map((h,b)=>{var w;return(w=this.currentGroup.read(b))===null||w===void 0?void 0:w.lines[h]}),this._register(ad(h=>{let b=this._diffs.read(h);if(!b){this._groups.set([],void 0);return}let w=KVi(b,this._models.getOriginalModel().getLineCount(),this._models.getModifiedModel().getLineCount());Pm(N=>{let L=this._models.getModifiedPosition();if(L){let B=w.findIndex(F=>L?.lineNumber{let b=this.currentElement.read(h);b?.type===l8.Deleted?this._accessibilitySignalService.playSignal(Tf.diffLineDeleted,{source:"accessibleDiffViewer.currentElementChanged"}):b?.type===l8.Added&&this._accessibilitySignalService.playSignal(Tf.diffLineInserted,{source:"accessibleDiffViewer.currentElementChanged"})})),this._register(ad(h=>{var b;let w=this.currentElement.read(h);if(w&&w.type!==l8.Header){let N=(b=w.modifiedLineNumber)!==null&&b!==void 0?b:w.diff.modified.startLineNumber;this._models.modifiedSetSelection(Zt.fromPositions(new qn(N,1)))}}))}_goToGroupDelta(e,r){let o=this.groups.get();!o||o.length<=1||Are(r,c=>{this._currentGroupIdx.set(x_.ofLength(o.length).clipCyclic(this._currentGroupIdx.get()+e),c),this._currentElementIdx.set(0,c)})}nextGroup(e){this._goToGroupDelta(1,e)}previousGroup(e){this._goToGroupDelta(-1,e)}_goToLineDelta(e){let r=this.currentGroup.get();!r||r.lines.length<=1||Pm(o=>{this._currentElementIdx.set(x_.ofLength(r.lines.length).clip(this._currentElementIdx.get()+e),o)})}goToNextLine(){this._goToLineDelta(1)}goToPreviousLine(){this._goToLineDelta(-1)}goToLine(e){let r=this.currentGroup.get();if(!r)return;let o=r.lines.indexOf(e);o!==-1&&Pm(c=>{this._currentElementIdx.set(o,c)})}revealCurrentElementInEditor(){if(!this.canClose.get())return;this._setVisible(!1,void 0);let e=this.currentElement.get();e&&(e.type===l8.Deleted?this._models.originalReveal(Zt.fromPositions(new qn(e.originalLineNumber,1))):this._models.modifiedReveal(e.type!==l8.Header?Zt.fromPositions(new qn(e.modifiedLineNumber,1)):void 0))}close(){this.canClose.get()&&(this._setVisible(!1,void 0),this._models.modifiedFocus())}};Wai=$ai([Gai(4,JR)],Wai);$_t=3;(function(l){l[l.Header=0]="Header",l[l.Unchanged=1]="Unchanged",l[l.Deleted=2]="Deleted",l[l.Added=3]="Added"})(l8||(l8={}));zai=class{constructor(e,r){this.range=e,this.lines=r}},Vai=class{constructor(){this.type=l8.Header}},Hai=class{constructor(e,r){this.diff=e,this.originalLineNumber=r,this.type=l8.Deleted,this.modifiedLineNumber=void 0}},Uai=class{constructor(e,r){this.diff=e,this.modifiedLineNumber=r,this.type=l8.Added,this.originalLineNumber=void 0}},Jai=class{constructor(e,r){this.originalLineNumber=e,this.modifiedLineNumber=r,this.type=l8.Unchanged}},qai=class extends tn{constructor(e,r,o,c,d,h){super(),this._element=e,this._model=r,this._width=o,this._height=c,this._models=d,this._languageService=h,this.domNode=this._element,this.domNode.className="monaco-component diff-review monaco-editor-background";let b=document.createElement("div");b.className="diff-review-actions",this._actionBar=this._register(new Vw(b)),this._register(ad(w=>{this._actionBar.clear(),this._model.canClose.read(w)&&this._actionBar.push(new jw("diffreview.close",ce("label.close","Close"),"close-diff-review "+sl.asClassName(GVi),!0,async()=>r.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 i$(this._content,{})),IS(this.domNode,this._scrollbar.getDomNode(),b),this._register(ad(w=>{this._height.read(w),this._width.read(w),this._scrollbar.scanDomNode()})),this._register(Ma(()=>{IS(this.domNode)})),this._register(JV(this.domNode,{width:this._width,height:this._height})),this._register(JV(this._content,{width:this._width,height:this._height})),this._register(LT((w,N)=>{this._model.currentGroup.read(w),this._render(N)})),this._register(qh(this.domNode,"keydown",w=>{(w.equals(18)||w.equals(2066)||w.equals(530))&&(w.preventDefault(),this._model.goToNextLine()),(w.equals(16)||w.equals(2064)||w.equals(528))&&(w.preventDefault(),this._model.goToPreviousLine()),(w.equals(9)||w.equals(2057)||w.equals(521)||w.equals(1033))&&(w.preventDefault(),this._model.close()),(w.equals(10)||w.equals(3))&&(w.preventDefault(),this._model.revealCurrentElementInEditor())}))}_render(e){let r=this._models.getOriginalOptions(),o=this._models.getModifiedOptions(),c=document.createElement("div");c.className="diff-review-table",c.setAttribute("role","list"),c.setAttribute("aria-label",ce("ariaLabel","Accessible Diff Viewer. Use arrow up and down to navigate.")),Bb(c,o.get(50)),IS(this._content,c);let d=this._models.getOriginalModel(),h=this._models.getModifiedModel();if(!d||!h)return;let b=d.getOptions(),w=h.getOptions(),N=o.get(67),L=this._model.currentGroup.get();for(let B of L?.lines||[]){if(!L)break;let F;if(B.type===l8.Header){let Z=document.createElement("div");Z.className="diff-review-row",Z.setAttribute("role","listitem");let ee=L.range,Te=this._model.currentGroupIndex.get(),Je=this._model.groups.get().length,Xe=Yt=>Yt===0?ce("no_lines_changed","no lines changed"):Yt===1?ce("one_line_changed","1 line changed"):ce("more_lines_changed","{0} lines changed",Yt),ct=Xe(ee.original.length),Ct=Xe(ee.modified.length);Z.setAttribute("aria-label",ce({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}",Te+1,Je,ee.original.startLineNumber,ct,ee.modified.startLineNumber,Ct));let Nt=document.createElement("div");Nt.className="diff-review-cell diff-review-summary",Nt.appendChild(document.createTextNode(`${Te+1}/${Je}: @@ -${ee.original.startLineNumber},${ee.original.length} +${ee.modified.startLineNumber},${ee.modified.length} @@`)),Z.appendChild(Nt),F=Z}else F=this._createRow(B,N,this._width.get(),r,d,b,o,h,w);c.appendChild(F);let Y=Ru(Z=>this._model.currentElement.read(Z)===B);e.add(ad(Z=>{let ee=Y.read(Z);F.tabIndex=ee?0:-1,ee&&F.focus()})),e.add(Jr(F,"focus",()=>{this._model.goToLine(B)}))}this._scrollbar.scanDomNode()}_createRow(e,r,o,c,d,h,b,w,N){let L=c.get(145),B=L.glyphMarginWidth+L.lineNumbersWidth,F=b.get(145),Y=10+F.glyphMarginWidth+F.lineNumbersWidth,Z="diff-review-row",ee="",Te="diff-review-spacer",Je=null;switch(e.type){case l8.Added:Z="diff-review-row line-insert",ee=" char-insert",Je=qVi;break;case l8.Deleted:Z="diff-review-row line-delete",ee=" char-delete",Je=$Vi;break}let Xe=document.createElement("div");Xe.style.minWidth=o+"px",Xe.className=Z,Xe.setAttribute("role","listitem"),Xe.ariaLevel="";let ct=document.createElement("div");ct.className="diff-review-cell",ct.style.height=`${r}px`,Xe.appendChild(ct);let Ct=document.createElement("span");Ct.style.width=B+"px",Ct.style.minWidth=B+"px",Ct.className="diff-review-line-number"+ee,e.originalLineNumber!==void 0?Ct.appendChild(document.createTextNode(String(e.originalLineNumber))):Ct.innerText="\xA0",ct.appendChild(Ct);let Nt=document.createElement("span");Nt.style.width=Y+"px",Nt.style.minWidth=Y+"px",Nt.style.paddingRight="10px",Nt.className="diff-review-line-number"+ee,e.modifiedLineNumber!==void 0?Nt.appendChild(document.createTextNode(String(e.modifiedLineNumber))):Nt.innerText="\xA0",ct.appendChild(Nt);let Yt=document.createElement("span");if(Yt.className=Te,Je){let _n=document.createElement("span");_n.className=sl.asClassName(Je),_n.innerText="\xA0\xA0",Yt.appendChild(_n)}else Yt.innerText="\xA0\xA0";ct.appendChild(Yt);let jt;if(e.modifiedLineNumber!==void 0){let _n=this._getLineHtml(w,b,N.tabSize,e.modifiedLineNumber,this._languageService.languageIdCodec);f_e._ttPolicy&&(_n=f_e._ttPolicy.createHTML(_n)),ct.insertAdjacentHTML("beforeend",_n),jt=w.getLineContent(e.modifiedLineNumber)}else{let _n=this._getLineHtml(d,c,h.tabSize,e.originalLineNumber,this._languageService.languageIdCodec);f_e._ttPolicy&&(_n=f_e._ttPolicy.createHTML(_n)),ct.insertAdjacentHTML("beforeend",_n),jt=d.getLineContent(e.originalLineNumber)}jt.length===0&&(jt=ce("blankLine","blank"));let mi="";switch(e.type){case l8.Unchanged:e.originalLineNumber===e.modifiedLineNumber?mi=ce({key:"unchangedLine",comment:["The placeholders are contents of the line and should not be translated."]},"{0} unchanged line {1}",jt,e.originalLineNumber):mi=ce("equalLine","{0} original line {1} modified line {2}",jt,e.originalLineNumber,e.modifiedLineNumber);break;case l8.Added:mi=ce("insertLine","+ {0} modified line {1}",jt,e.modifiedLineNumber);break;case l8.Deleted:mi=ce("deleteLine","- {0} original line {1}",jt,e.originalLineNumber);break}return Xe.setAttribute("aria-label",mi),Xe}_getLineHtml(e,r,o,c,d){let h=e.getLineContent(c),b=r.get(50),w=Wx.createEmpty(h,d),N=GO.isBasicASCII(h,e.mightContainNonBasicASCII()),L=GO.containsRTL(h,N,e.mightContainRTL());return zVe(new a7(b.isMonospace&&!r.get(33),b.canUseHalfwidthRightwardsArrow,h,!1,N,L,0,w,[],o,0,b.spaceWidth,b.middotWidth,b.wsmiddotWidth,r.get(117),r.get(99),r.get(94),r.get(51)!==SR.OFF,null)).html}};qai=$ai([Gai(5,km)],qai);O8t=class{constructor(e){this.editors=e}getOriginalModel(){return this.editors.original.getModel()}getOriginalOptions(){return this.editors.original.getOptions()}originalReveal(e){this.editors.original.revealRange(e),this.editors.original.setSelection(e),this.editors.original.focus()}getModifiedModel(){return this.editors.modified.getModel()}getModifiedOptions(){return this.editors.modified.getOptions()}modifiedReveal(e){e&&(this.editors.modified.revealRange(e),this.editors.modified.setSelection(e)),this.editors.modified.focus()}modifiedSetSelection(e){this.editors.modified.setSelection(e)}modifiedFocus(){this.editors.modified.focus()}getModifiedPosition(){var e;return(e=this.editors.modified.getPosition())!==null&&e!==void 0?e:void 0}}});var __e,Kai,F8t,Xai=ti(()=>{nc();zV();xE();sd();PR();uy();co();xv();bv();qV();o7();ya();__e=class l extends tn{constructor(e,r,o,c,d){super(),this._rootElement=e,this._diffModel=r,this._originalEditorLayoutInfo=o,this._modifiedEditorLayoutInfo=c,this._editors=d,this._originalScrollTop=$p(this._editors.original.onDidScrollChange,()=>this._editors.original.getScrollTop()),this._modifiedScrollTop=$p(this._editors.modified.onDidScrollChange,()=>this._editors.modified.getScrollTop()),this._viewZonesChanged=iw("onDidChangeViewZones",this._editors.modified.onDidChangeViewZones),this.width=Jf(this,0),this._modifiedViewZonesChangedSignal=iw("modified.onDidChangeViewZones",this._editors.modified.onDidChangeViewZones),this._originalViewZonesChangedSignal=iw("original.onDidChangeViewZones",this._editors.original.onDidChangeViewZones),this._state=zR(this,(L,B)=>{var F;this._element.replaceChildren();let Y=this._diffModel.read(L),Z=(F=Y?.diff.read(L))===null||F===void 0?void 0:F.movedTexts;if(!Z||Z.length===0){this.width.set(0,void 0);return}this._viewZonesChanged.read(L);let ee=this._originalEditorLayoutInfo.read(L),Te=this._modifiedEditorLayoutInfo.read(L);if(!ee||!Te){this.width.set(0,void 0);return}this._modifiedViewZonesChangedSignal.read(L),this._originalViewZonesChangedSignal.read(L);let Je=Z.map(mi=>{function _n(Dl,$s){let cr=$s.getTopForLineNumber(Dl.startLineNumber,!0),za=$s.getTopForLineNumber(Dl.endLineNumberExclusive,!0);return(cr+za)/2}let Pr=_n(mi.lineRangeMapping.original,this._editors.original),dr=this._originalScrollTop.read(L),Rr=_n(mi.lineRangeMapping.modified,this._editors.modified),Tn=this._modifiedScrollTop.read(L),Qn=Pr-dr,ks=Rr-Tn,La=Math.min(Pr,Rr),$i=Math.max(Pr,Rr);return{range:new x_(La,$i),from:Qn,to:ks,fromWithoutScroll:Pr,toWithoutScroll:Rr,move:mi}});Je.sort(egi(hE(mi=>mi.fromWithoutScroll>mi.toWithoutScroll,tgi),hE(mi=>mi.fromWithoutScroll>mi.toWithoutScroll?mi.fromWithoutScroll:-mi.toWithoutScroll,XL)));let Xe=Kai.compute(Je.map(mi=>mi.range)),ct=10,Ct=ee.verticalScrollbarWidth,Nt=(Xe.getTrackCount()-1)*10+ct*2,Yt=Ct+Nt+(Te.contentLeft-l.movedCodeBlockPadding),jt=0;for(let mi of Je){let _n=Xe.getTrack(jt),Pr=Ct+ct+_n*10,dr=15,Rr=15,Tn=Yt,Qn=Te.glyphMarginWidth+Te.lineNumbersWidth,ks=18,La=document.createElementNS("http://www.w3.org/2000/svg","rect");La.classList.add("arrow-rectangle"),La.setAttribute("x",`${Tn-Qn}`),La.setAttribute("y",`${mi.to-ks/2}`),La.setAttribute("width",`${Qn}`),La.setAttribute("height",`${ks}`),this._element.appendChild(La);let $i=document.createElementNS("http://www.w3.org/2000/svg","g"),Dl=document.createElementNS("http://www.w3.org/2000/svg","path");Dl.setAttribute("d",`M 0 ${mi.from} L ${Pr} ${mi.from} L ${Pr} ${mi.to} L ${Tn-Rr} ${mi.to}`),Dl.setAttribute("fill","none"),$i.appendChild(Dl);let $s=document.createElementNS("http://www.w3.org/2000/svg","polygon");$s.classList.add("arrow"),B.add(ad(cr=>{Dl.classList.toggle("currentMove",mi.move===Y.activeMovedText.read(cr)),$s.classList.toggle("currentMove",mi.move===Y.activeMovedText.read(cr))})),$s.setAttribute("points",`${Tn-Rr},${mi.to-dr/2} ${Tn},${mi.to} ${Tn-Rr},${mi.to+dr/2}`),$i.appendChild($s),this._element.appendChild($i),jt++}this.width.set(Nt,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(Ma(()=>this._element.remove())),this._register(ad(L=>{let B=this._originalEditorLayoutInfo.read(L),F=this._modifiedEditorLayoutInfo.read(L);!B||!F||(this._element.style.left=`${B.width-B.verticalScrollbarWidth}px`,this._element.style.height=`${B.height}px`,this._element.style.width=`${B.verticalScrollbarWidth+B.contentLeft-l.movedCodeBlockPadding+this.width.read(L)}px`)})),this._register(Ore(this._state));let h=Ru(L=>{let B=this._diffModel.read(L),F=B?.diff.read(L);return F?F.movedTexts.map(Y=>({move:Y,original:new Cxe(D6(Y.lineRangeMapping.original.startLineNumber-1),18),modified:new Cxe(D6(Y.lineRangeMapping.modified.startLineNumber-1),18)})):[]});this._register(nJe(this._editors.original,h.map(L=>L.map(B=>B.original)))),this._register(nJe(this._editors.modified,h.map(L=>L.map(B=>B.modified)))),this._register(LT((L,B)=>{let F=h.read(L);for(let Y of F)B.add(new F8t(this._editors.original,Y.original,Y.move,"original",this._diffModel.get())),B.add(new F8t(this._editors.modified,Y.modified,Y.move,"modified",this._diffModel.get()))}));let b=iw("original.onDidFocusEditorWidget",L=>this._editors.original.onDidFocusEditorWidget(()=>setTimeout(()=>L(void 0),0))),w=iw("modified.onDidFocusEditorWidget",L=>this._editors.modified.onDidFocusEditorWidget(()=>setTimeout(()=>L(void 0),0))),N="modified";this._register(Lre({createEmptyChangeSummary:()=>{},handleChange:(L,B)=>(L.didChange(b)&&(N="original"),L.didChange(w)&&(N="modified"),!0)},L=>{b.read(L),w.read(L);let B=this._diffModel.read(L);if(!B)return;let F=B.diff.read(L),Y;if(F&&N==="original"){let Z=this._editors.originalCursor.read(L);Z&&(Y=F.movedTexts.find(ee=>ee.lineRangeMapping.original.contains(Z.lineNumber)))}if(F&&N==="modified"){let Z=this._editors.modifiedCursor.read(L);Z&&(Y=F.movedTexts.find(ee=>ee.lineRangeMapping.modified.contains(Z.lineNumber)))}Y!==B.movedTextToCompare.get()&&B.movedTextToCompare.set(void 0,void 0),B.setActiveMovedText(Y)}))}};__e.movedCodeBlockPadding=4;Kai=class l{static compute(e){let r=[],o=[];for(let c of e){let d=r.findIndex(h=>!h.intersectsStrict(c));d===-1&&(r.length>=6?d=qyi(r,hE(b=>b.intersectWithRangeLength(c),XL)):(d=r.length,r.push(new dAt))),r[d].addRange(c),o.push(d)}return new l(r.length,o)}constructor(e,r){this._trackCount=e,this.trackPerLineIdx=r}getTrack(e){return this.trackPerLineIdx[e]}getTrackCount(){return this._trackCount}},F8t=class extends tJe{constructor(e,r,o,c,d){let h=qp("div.diff-hidden-lines-widget");super(e,r,h.root),this._editor=e,this._move=o,this._kind=c,this._diffModel=d,this._nodes=qp("div.diff-moved-code-block",{style:{marginRight:"4px"}},[qp("div.text-content@textContent"),qp("div.action-bar@actionBar")]),h.root.appendChild(this._nodes.root);let b=$p(this._editor.onDidLayoutChange,()=>this._editor.getLayoutInfo());this._register(JV(this._nodes.root,{paddingRight:b.map(F=>F.verticalScrollbarWidth)}));let w;o.changes.length>0?w=this._kind==="original"?ce("codeMovedToWithChanges","Code moved with changes to line {0}-{1}",this._move.lineRangeMapping.modified.startLineNumber,this._move.lineRangeMapping.modified.endLineNumberExclusive-1):ce("codeMovedFromWithChanges","Code moved with changes from line {0}-{1}",this._move.lineRangeMapping.original.startLineNumber,this._move.lineRangeMapping.original.endLineNumberExclusive-1):w=this._kind==="original"?ce("codeMovedTo","Code moved to line {0}-{1}",this._move.lineRangeMapping.modified.startLineNumber,this._move.lineRangeMapping.modified.endLineNumberExclusive-1):ce("codeMovedFrom","Code moved from line {0}-{1}",this._move.lineRangeMapping.original.startLineNumber,this._move.lineRangeMapping.original.endLineNumberExclusive-1);let N=this._register(new Vw(this._nodes.actionBar,{highlightToggledItems:!0})),L=new jw("",w,"",!1);N.push(L,{icon:!1,label:!0});let B=new jw("","Compare",sl.asClassName(_s.compareChanges),!0,()=>{this._editor.focus(),this._diffModel.movedTextToCompare.set(this._diffModel.movedTextToCompare.get()===o?void 0:this._move,void 0)});this._register(ad(F=>{let Y=this._diffModel.movedTextToCompare.read(F)===o;B.checked=Y})),N.push(B,{icon:!1,label:!0})}}});var Oqn,Fqn,Mqn,XVi,Yai,Qai,Zai,eci,tci,ici,qEi,$Ei,G_t,GEi,KEi,K_t=ti(()=>{uy();bv();Ww();ya();q1();WB();Oqn=hn("diffEditor.move.border",{dark:"#8b8b8b9c",light:"#8b8b8b9c",hcDark:"#8b8b8b9c",hcLight:"#8b8b8b9c"},ce("diffEditor.move.border","The border color for text that got moved in the diff editor.")),Fqn=hn("diffEditor.moveActive.border",{dark:"#FFA500",light:"#FFA500",hcDark:"#FFA500",hcLight:"#FFA500"},ce("diffEditor.moveActive.border","The active border color for text that got moved in the diff editor.")),Mqn=hn("diffEditor.unchangedRegionShadow",{dark:"#000000",light:"#737373BF",hcDark:"#000000",hcLight:"#737373BF"},ce("diffEditor.unchangedRegionShadow","The color of the shadow around unchanged region widgets.")),XVi=py("diff-insert",_s.add,ce("diffInsertIcon","Line decoration for inserts in the diff editor.")),Yai=py("diff-remove",_s.remove,ce("diffRemoveIcon","Line decoration for removals in the diff editor.")),Qai=id.register({className:"line-insert",description:"line-insert",isWholeLine:!0,linesDecorationsClassName:"insert-sign "+sl.asClassName(XVi),marginClassName:"gutter-insert"}),Zai=id.register({className:"line-delete",description:"line-delete",isWholeLine:!0,linesDecorationsClassName:"delete-sign "+sl.asClassName(Yai),marginClassName:"gutter-delete"}),eci=id.register({className:"line-insert",description:"line-insert",isWholeLine:!0,marginClassName:"gutter-insert"}),tci=id.register({className:"line-delete",description:"line-delete",isWholeLine:!0,marginClassName:"gutter-delete"}),ici=id.register({className:"char-insert",description:"char-insert",shouldFillLineOnLineBreak:!0}),qEi=id.register({className:"char-insert",description:"char-insert",isWholeLine:!0}),$Ei=id.register({className:"char-insert diff-range-empty",description:"char-insert diff-range-empty"}),G_t=id.register({className:"char-delete",description:"char-delete",shouldFillLineOnLineBreak:!0}),GEi=id.register({className:"char-delete",description:"char-delete",isWholeLine:!0}),KEi=id.register({className:"char-delete diff-range-empty",description:"char-delete diff-range-empty"})});var M8t,XEi=ti(()=>{co();xv();Xai();K_t();qV();M8t=class extends tn{constructor(e,r,o,c){super(),this._editors=e,this._diffModel=r,this._options=o,this._decorations=Ru(this,d=>{var h;let b=(h=this._diffModel.read(d))===null||h===void 0?void 0:h.diff.read(d);if(!b)return null;let w=this._diffModel.read(d).movedTextToCompare.read(d),N=this._options.renderIndicators.read(d),L=this._options.showEmptyDecorations.read(d),B=[],F=[];if(!w)for(let Z of b.mappings)if(Z.lineRangeMapping.original.isEmpty||B.push({range:Z.lineRangeMapping.original.toInclusiveRange(),options:N?Zai:tci}),Z.lineRangeMapping.modified.isEmpty||F.push({range:Z.lineRangeMapping.modified.toInclusiveRange(),options:N?Qai:eci}),Z.lineRangeMapping.modified.isEmpty||Z.lineRangeMapping.original.isEmpty)Z.lineRangeMapping.original.isEmpty||B.push({range:Z.lineRangeMapping.original.toInclusiveRange(),options:GEi}),Z.lineRangeMapping.modified.isEmpty||F.push({range:Z.lineRangeMapping.modified.toInclusiveRange(),options:qEi});else for(let ee of Z.lineRangeMapping.innerChanges||[])Z.lineRangeMapping.original.contains(ee.originalRange.startLineNumber)&&B.push({range:ee.originalRange,options:ee.originalRange.isEmpty()&&L?KEi:G_t}),Z.lineRangeMapping.modified.contains(ee.modifiedRange.startLineNumber)&&F.push({range:ee.modifiedRange,options:ee.modifiedRange.isEmpty()&&L?$Ei:ici});if(w)for(let Z of w.changes){let ee=Z.original.toInclusiveRange();ee&&B.push({range:ee,options:N?Zai:tci});let Te=Z.modified.toInclusiveRange();Te&&F.push({range:Te,options:N?Qai:eci});for(let Je of Z.innerChanges||[])B.push({range:Je.originalRange,options:G_t}),F.push({range:Je.modifiedRange,options:ici})}let Y=this._diffModel.read(d).activeMovedText.read(d);for(let Z of b.movedTexts)B.push({range:Z.lineRangeMapping.original.toInclusiveRange(),options:{description:"moved",blockClassName:"movedOriginal"+(Z===Y?" currentMove":""),blockPadding:[__e.movedCodeBlockPadding,0,__e.movedCodeBlockPadding,__e.movedCodeBlockPadding]}}),F.push({range:Z.lineRangeMapping.modified.toInclusiveRange(),options:{description:"moved",blockClassName:"movedModified"+(Z===Y?" currentMove":""),blockPadding:[4,0,4,4]}});return{originalDecorations:B,modifiedDecorations:F}}),this._register(iJe(this._editors.original,this._decorations.map(d=>d?.originalDecorations||[]))),this._register(iJe(this._editors.modified,this._decorations.map(d=>d?.modifiedDecorations||[])))}}});var R8t,rJe,nci=ti(()=>{HUe();co();xv();axe();R8t=class{resetSash(){this._sashRatio.set(void 0,void 0)}constructor(e,r){this._options=e,this.dimensions=r,this.sashLeft=P3t(this,o=>{var c;let d=(c=this._sashRatio.read(o))!==null&&c!==void 0?c:this._options.splitViewDefaultRatio.read(o);return this._computeSashLeft(d,o)},(o,c)=>{let d=this.dimensions.width.get();this._sashRatio.set(o/d,c)}),this._sashRatio=Jf(this,void 0)}_computeSashLeft(e,r){let o=this.dimensions.width.read(r),c=Math.floor(this._options.splitViewDefaultRatio.read(r)*o),d=this._options.enableSplitViewResizing.read(r)?Math.floor(e*o):c,h=100;return o<=h*2?c:do-h?o-h:d}},rJe=class extends tn{constructor(e,r,o,c,d,h){super(),this._domNode=e,this._dimensions=r,this._enabled=o,this._boundarySashes=c,this.sashLeft=d,this._resetSash=h,this._sash=this._register(new h7(this._domNode,{getVerticalSashTop:b=>0,getVerticalSashLeft:b=>this.sashLeft.get(),getVerticalSashHeight:b=>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(b=>{this.sashLeft.set(this._startSashPosition+(b.currentX-b.startX),void 0)})),this._register(this._sash.onDidEnd(()=>this._sash.layout())),this._register(this._sash.onDidReset(()=>this._resetSash())),this._register(ad(b=>{let w=this._boundarySashes.read(b);w&&(this._sash.orthogonalEndSash=w.bottom)})),this._register(ad(b=>{let w=this._enabled.read(b);this._sash.state=w?3:0,this.sashLeft.read(b),this._dimensions.height.read(b),this._sash.layout()}))}}});var YEi,rci,HLe,sci,oci,B8t,QEi=ti(()=>{_A();bl();xc();zO();qO();Hne();r_e();n3();YEi=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},rci=function(l,e){return function(r,o){e(r,o,l)}},sci=Ml("diffProviderFactoryService"),oci=class{constructor(e){this.instantiationService=e}createDiffProvider(e){return this.instantiationService.createInstance(B8t,e)}};oci=YEi([rci(0,Pa)],oci);e_(sci,oci,1);B8t=HLe=class{constructor(e,r,o){this.editorWorkerService=r,this.telemetryService=o,this.onDidChangeEventEmitter=new wn,this.onDidChange=this.onDidChangeEventEmitter.event,this.diffAlgorithm="advanced",this.diffAlgorithmOnDidChangeSubscription=void 0,this.setOptions(e)}dispose(){var e;(e=this.diffAlgorithmOnDidChangeSubscription)===null||e===void 0||e.dispose()}async computeDiff(e,r,o,c){var d,h;if(typeof this.diffAlgorithm!="string")return this.diffAlgorithm.computeDiff(e,r,o,c);if(e.isDisposed()||r.isDisposed())return{changes:[],identical:!0,quitEarly:!1,moves:[]};if(e.getLineCount()===1&&e.getLineMaxColumn(1)===1)return r.getLineCount()===1&&r.getLineMaxColumn(1)===1?{changes:[],identical:!0,quitEarly:!1,moves:[]}:{changes:[new a3(new Rd(1,2),new Rd(1,r.getLineCount()+1),[new s7(e.getFullModelRange(),r.getFullModelRange())])],identical:!1,quitEarly:!1,moves:[]};let b=JSON.stringify([e.uri.toString(),r.uri.toString()]),w=JSON.stringify([e.id,r.id,e.getAlternativeVersionId(),r.getAlternativeVersionId(),JSON.stringify(o)]),N=HLe.diffCache.get(b);if(N&&N.context===w)return N.result;let L=vv.create(),B=await this.editorWorkerService.computeDiff(e.uri,r.uri,o,this.diffAlgorithm),F=L.elapsed();if(this.telemetryService.publicLog2("diffEditor.computeDiff",{timeMs:F,timedOut:(d=B?.quitEarly)!==null&&d!==void 0?d:!0,detectedMoves:o.computeMoves?(h=B?.moves.length)!==null&&h!==void 0?h:0:-1}),c.isCancellationRequested)return{changes:[],identical:!1,quitEarly:!0,moves:[]};if(!B)throw new Error("no diff result available");return HLe.diffCache.size>10&&HLe.diffCache.delete(HLe.diffCache.keys().next().value),HLe.diffCache.set(b,{result:B,context:w}),B}setOptions(e){var r;let o=!1;e.diffAlgorithm&&this.diffAlgorithm!==e.diffAlgorithm&&((r=this.diffAlgorithmOnDidChangeSubscription)===null||r===void 0||r.dispose(),this.diffAlgorithmOnDidChangeSubscription=void 0,this.diffAlgorithm=e.diffAlgorithm,typeof e.diffAlgorithm!="string"&&(this.diffAlgorithmOnDidChangeSubscription=e.diffAlgorithm.onDidChange(()=>this.onDidChangeEventEmitter.fire())),o=!0),o&&this.onDidChangeEventEmitter.fire()}};B8t.diffCache=new Map;B8t=HLe=YEi([rci(1,kA),rci(2,zv)],B8t)});function ZVi(l,e,r){return{changes:l.changes.map(o=>new a3(o.original,o.modified,o.innerChanges?o.innerChanges.map(c=>eHi(c,e,r)):void 0)),moves:l.moves,identical:l.identical,quitEarly:l.quitEarly}}function eHi(l,e,r){let o=l.originalRange,c=l.modifiedRange;return(o.endColumn!==1||c.endColumn!==1)&&o.endColumn===e.getLineMaxColumn(o.endLineNumber)&&c.endColumn===r.getLineMaxColumn(c.endLineNumber)&&o.endLineNumber{Ud();Sh();co();xv();QEi();qV();qO();pei();Hne();qdt();wii();_ei();Fh();sd();jq();YVi=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},QVi=function(l,e){return function(r,o){e(r,o,l)}},j8t=class extends tn{setActiveMovedText(e){this._activeMovedText.set(e,void 0)}constructor(e,r,o){super(),this.model=e,this._options=r,this._diffProviderFactoryService=o,this._isDiffUpToDate=Jf(this,!1),this.isDiffUpToDate=this._isDiffUpToDate,this._diff=Jf(this,void 0),this.diff=this._diff,this._unchangedRegions=Jf(this,void 0),this.unchangedRegions=Ru(this,b=>{var w,N;return this._options.hideUnchangedRegions.read(b)?(N=(w=this._unchangedRegions.read(b))===null||w===void 0?void 0:w.regions)!==null&&N!==void 0?N:[]:(Pm(L=>{var B;for(let F of((B=this._unchangedRegions.get())===null||B===void 0?void 0:B.regions)||[])F.collapseAll(L)}),[])}),this.movedTextToCompare=Jf(this,void 0),this._activeMovedText=Jf(this,void 0),this._hoveredMovedText=Jf(this,void 0),this.activeMovedText=Ru(this,b=>{var w,N;return(N=(w=this.movedTextToCompare.read(b))!==null&&w!==void 0?w:this._hoveredMovedText.read(b))!==null&&N!==void 0?N:this._activeMovedText.read(b)}),this._cancellationTokenSource=new Up,this._diffProvider=Ru(this,b=>{let w=this._diffProviderFactoryService.createDiffProvider({diffAlgorithm:this._options.diffAlgorithm.read(b)}),N=iw("onDidChange",w.onDidChange);return{diffProvider:w,onChangeSignal:N}}),this._register(Ma(()=>this._cancellationTokenSource.cancel()));let c=Zfe("contentChangedSignal"),d=this._register(new p_(()=>c.trigger(void 0),200));this._register(ad(b=>{let w=this._unchangedRegions.read(b);if(!w||w.regions.some(Z=>Z.isDragged.read(b)))return;let N=w.originalDecorationIds.map(Z=>e.original.getDecorationRange(Z)).map(Z=>Z?Rd.fromRangeInclusive(Z):void 0),L=w.modifiedDecorationIds.map(Z=>e.modified.getDecorationRange(Z)).map(Z=>Z?Rd.fromRangeInclusive(Z):void 0),B=w.regions.map((Z,ee)=>!N[ee]||!L[ee]?void 0:new oJe(N[ee].startLineNumber,L[ee].startLineNumber,N[ee].length,Z.visibleLineCountTop.read(b),Z.visibleLineCountBottom.read(b))).filter(vR),F=[],Y=!1;for(let Z of Rze(B,(ee,Te)=>ee.getHiddenModifiedRange(b).endLineNumberExclusive===Te.getHiddenModifiedRange(b).startLineNumber))if(Z.length>1){Y=!0;let ee=Z.reduce((Je,Xe)=>Je+Xe.lineCount,0),Te=new oJe(Z[0].originalLineNumber,Z[0].modifiedLineNumber,ee,Z[0].visibleLineCountTop.get(),Z[Z.length-1].visibleLineCountBottom.get());F.push(Te)}else F.push(Z[0]);if(Y){let Z=e.original.deltaDecorations(w.originalDecorationIds,F.map(Te=>({range:Te.originalUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}}))),ee=e.modified.deltaDecorations(w.modifiedDecorationIds,F.map(Te=>({range:Te.modifiedUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}})));Pm(Te=>{this._unchangedRegions.set({regions:F,originalDecorationIds:Z,modifiedDecorationIds:ee},Te)})}}));let h=(b,w,N)=>{let L=oJe.fromDiffs(b.changes,e.original.getLineCount(),e.modified.getLineCount(),this._options.hideUnchangedRegionsMinimumLineCount.read(N),this._options.hideUnchangedRegionsContextLineCount.read(N)),B,F=this._unchangedRegions.get();if(F){let Te=F.originalDecorationIds.map(Ct=>e.original.getDecorationRange(Ct)).map(Ct=>Ct?Rd.fromRangeInclusive(Ct):void 0),Je=F.modifiedDecorationIds.map(Ct=>e.modified.getDecorationRange(Ct)).map(Ct=>Ct?Rd.fromRangeInclusive(Ct):void 0),ct=HEi(F.regions.map((Ct,Nt)=>{if(!Te[Nt]||!Je[Nt])return;let Yt=Te[Nt].length;return new oJe(Te[Nt].startLineNumber,Je[Nt].startLineNumber,Yt,Math.min(Ct.visibleLineCountTop.get(),Yt),Math.min(Ct.visibleLineCountBottom.get(),Yt-Ct.visibleLineCountTop.get()))}).filter(vR),(Ct,Nt)=>!Nt||Ct.modifiedLineNumber>=Nt.modifiedLineNumber+Nt.lineCount&&Ct.originalLineNumber>=Nt.originalLineNumber+Nt.lineCount).map(Ct=>new s3(Ct.getHiddenOriginalRange(N),Ct.getHiddenModifiedRange(N)));ct=s3.clip(ct,Rd.ofLength(1,e.original.getLineCount()),Rd.ofLength(1,e.modified.getLineCount())),B=s3.inverse(ct,e.original.getLineCount(),e.modified.getLineCount())}let Y=[];if(B)for(let Te of L){let Je=B.filter(Xe=>Xe.original.intersectsStrict(Te.originalUnchangedRange)&&Xe.modified.intersectsStrict(Te.modifiedUnchangedRange));Y.push(...Te.setVisibleRanges(Je,w))}else Y.push(...L);let Z=e.original.deltaDecorations(F?.originalDecorationIds||[],Y.map(Te=>({range:Te.originalUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}}))),ee=e.modified.deltaDecorations(F?.modifiedDecorationIds||[],Y.map(Te=>({range:Te.modifiedUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}})));this._unchangedRegions.set({regions:Y,originalDecorationIds:Z,modifiedDecorationIds:ee},w)};this._register(e.modified.onDidChangeContent(b=>{if(this._diff.get()){let N=s$.fromModelContentChanges(b.changes),L=(this._lastDiff,e.original,e.modified,void 0);L&&(this._lastDiff=L,Pm(B=>{this._diff.set(X_t.fromDiffResult(this._lastDiff),B),h(L,B);let F=this.movedTextToCompare.get();this.movedTextToCompare.set(F?this._lastDiff.moves.find(Y=>Y.lineRangeMapping.modified.intersect(F.lineRangeMapping.modified)):void 0,B)}))}this._isDiffUpToDate.set(!1,void 0),d.schedule()})),this._register(e.original.onDidChangeContent(b=>{if(this._diff.get()){let N=s$.fromModelContentChanges(b.changes),L=(this._lastDiff,e.original,e.modified,void 0);L&&(this._lastDiff=L,Pm(B=>{this._diff.set(X_t.fromDiffResult(this._lastDiff),B),h(L,B);let F=this.movedTextToCompare.get();this.movedTextToCompare.set(F?this._lastDiff.moves.find(Y=>Y.lineRangeMapping.modified.intersect(F.lineRangeMapping.modified)):void 0,B)}))}this._isDiffUpToDate.set(!1,void 0),d.schedule()})),this._register(LT(async(b,w)=>{var N,L;this._options.hideUnchangedRegionsMinimumLineCount.read(b),this._options.hideUnchangedRegionsContextLineCount.read(b),d.cancel(),c.read(b);let B=this._diffProvider.read(b);B.onChangeSignal.read(b),qR(MVe,b),qR(Yut,b),this._isDiffUpToDate.set(!1,void 0);let F=[];w.add(e.original.onDidChangeContent(ee=>{let Te=s$.fromModelContentChanges(ee.changes);F=BHe(F,Te)}));let Y=[];w.add(e.modified.onDidChangeContent(ee=>{let Te=s$.fromModelContentChanges(ee.changes);Y=BHe(Y,Te)}));let Z=await B.diffProvider.computeDiff(e.original,e.modified,{ignoreTrimWhitespace:this._options.ignoreTrimWhitespace.read(b),maxComputationTimeMs:this._options.maxComputationTimeMs.read(b),computeMoves:this._options.showMoves.read(b)},this._cancellationTokenSource.token);this._cancellationTokenSource.token.isCancellationRequested||e.original.isDisposed()||e.modified.isDisposed()||(Z=ZVi(Z,e.original,e.modified),Z=(N=(e.original,e.modified,void 0))!==null&&N!==void 0?N:Z,Z=(L=(e.original,e.modified,void 0))!==null&&L!==void 0?L:Z,Pm(ee=>{h(Z,ee),this._lastDiff=Z;let Te=X_t.fromDiffResult(Z);this._diff.set(Te,ee),this._isDiffUpToDate.set(!0,ee);let Je=this.movedTextToCompare.get();this.movedTextToCompare.set(Je?this._lastDiff.moves.find(Xe=>Xe.lineRangeMapping.modified.intersect(Je.lineRangeMapping.modified)):void 0,ee)}))}))}ensureModifiedLineIsVisible(e,r,o){var c,d;if(((c=this.diff.get())===null||c===void 0?void 0:c.mappings.length)===0)return;let h=((d=this._unchangedRegions.get())===null||d===void 0?void 0:d.regions)||[];for(let b of h)if(b.getHiddenModifiedRange(void 0).contains(e)){b.showModifiedLine(e,r,o);return}}ensureOriginalLineIsVisible(e,r,o){var c,d;if(((c=this.diff.get())===null||c===void 0?void 0:c.mappings.length)===0)return;let h=((d=this._unchangedRegions.get())===null||d===void 0?void 0:d.regions)||[];for(let b of h)if(b.getHiddenOriginalRange(void 0).contains(e)){b.showOriginalLine(e,r,o);return}}async waitForDiff(){await a_t(this.isDiffUpToDate,e=>e)}serializeState(){let e=this._unchangedRegions.get();return{collapsedRegions:e?.regions.map(r=>({range:r.getHiddenModifiedRange(void 0).serialize()}))}}restoreSerializedState(e){var r;let o=(r=e.collapsedRegions)===null||r===void 0?void 0:r.map(d=>Rd.deserialize(d.range)),c=this._unchangedRegions.get();!c||!o||Pm(d=>{for(let h of c.regions)for(let b of o)if(h.modifiedUnchangedRange.intersect(b)){h.setHiddenModifiedRange(b,d);break}})}};j8t=YVi([QVi(2,sci)],j8t);X_t=class l{static fromDiffResult(e){return new l(e.changes.map(r=>new Y_t(r)),e.moves||[],e.identical,e.quitEarly)}constructor(e,r,o,c){this.mappings=e,this.movedTexts=r,this.identical=o,this.quitEarly=c}},Y_t=class{constructor(e){this.lineRangeMapping=e}},oJe=class l{static fromDiffs(e,r,o,c,d){let h=a3.inverse(e,r,o),b=[];for(let w of h){let N=w.original.startLineNumber,L=w.modified.startLineNumber,B=w.original.length,F=N===1&&L===1,Y=N+B===r+1&&L+B===o+1;(F||Y)&&B>=d+c?(F&&!Y&&(B-=d),Y&&!F&&(N+=d,L+=d,B-=d),b.push(new l(N,L,B,0,0))):B>=d*2+c&&(N+=d,L+=d,B-=d*2,b.push(new l(N,L,B,0,0)))}return b}get originalUnchangedRange(){return Rd.ofLength(this.originalLineNumber,this.lineCount)}get modifiedUnchangedRange(){return Rd.ofLength(this.modifiedLineNumber,this.lineCount)}constructor(e,r,o,c,d){this.originalLineNumber=e,this.modifiedLineNumber=r,this.lineCount=o,this._visibleLineCountTop=Jf(this,0),this.visibleLineCountTop=this._visibleLineCountTop,this._visibleLineCountBottom=Jf(this,0),this.visibleLineCountBottom=this._visibleLineCountBottom,this._shouldHideControls=Ru(this,w=>this.visibleLineCountTop.read(w)+this.visibleLineCountBottom.read(w)===this.lineCount&&!this.isDragged.read(w)),this.isDragged=Jf(this,void 0);let h=Math.max(Math.min(c,this.lineCount),0),b=Math.max(Math.min(d,this.lineCount-c),0);sZt(c===h),sZt(d===b),this._visibleLineCountTop.set(h,void 0),this._visibleLineCountBottom.set(b,void 0)}setVisibleRanges(e,r){let o=[],c=new xV(e.map(w=>w.modified)).subtractFrom(this.modifiedUnchangedRange),d=this.originalLineNumber,h=this.modifiedLineNumber,b=this.modifiedLineNumber+this.lineCount;if(c.ranges.length===0)this.showAll(r),o.push(this);else{let w=0;for(let N of c.ranges){let L=w===c.ranges.length-1;w++;let B=(L?b:N.endLineNumberExclusive)-h,F=new l(d,h,B,0,0);F.setHiddenModifiedRange(N,r),o.push(F),d=F.originalUnchangedRange.endLineNumberExclusive,h=F.modifiedUnchangedRange.endLineNumberExclusive}}return o}shouldHideControls(e){return this._shouldHideControls.read(e)}getHiddenOriginalRange(e){return Rd.ofLength(this.originalLineNumber+this._visibleLineCountTop.read(e),this.lineCount-this._visibleLineCountTop.read(e)-this._visibleLineCountBottom.read(e))}getHiddenModifiedRange(e){return Rd.ofLength(this.modifiedLineNumber+this._visibleLineCountTop.read(e),this.lineCount-this._visibleLineCountTop.read(e)-this._visibleLineCountBottom.read(e))}setHiddenModifiedRange(e,r){let o=e.startLineNumber-this.modifiedLineNumber,c=this.modifiedLineNumber+this.lineCount-e.endLineNumberExclusive;this.setState(o,c,r)}getMaxVisibleLineCountTop(){return this.lineCount-this._visibleLineCountBottom.get()}getMaxVisibleLineCountBottom(){return this.lineCount-this._visibleLineCountTop.get()}showMoreAbove(e=10,r){let o=this.getMaxVisibleLineCountTop();this._visibleLineCountTop.set(Math.min(this._visibleLineCountTop.get()+e,o),r)}showMoreBelow(e=10,r){let o=this.lineCount-this._visibleLineCountTop.get();this._visibleLineCountBottom.set(Math.min(this._visibleLineCountBottom.get()+e,o),r)}showAll(e){this._visibleLineCountBottom.set(this.lineCount-this._visibleLineCountTop.get(),e)}showModifiedLine(e,r,o){let c=e+1-(this.modifiedLineNumber+this._visibleLineCountTop.get()),d=this.modifiedLineNumber-this._visibleLineCountBottom.get()+this.lineCount-e;r===0&&c{nc();xE();uy();co();X_();bv();ya();W8t=class extends tn{get visibility(){return this._visibility}set visibility(e){this._visibility!==e&&(this._visibility=e,this._diffActions.style.visibility=e?"visible":"hidden")}constructor(e,r,o,c,d,h,b,w,N){super(),this._getViewZoneId=e,this._marginDomNode=r,this._modifiedEditor=o,this._diff=c,this._editor=d,this._viewLineCounts=h,this._originalTextModel=b,this._contextMenuService=w,this._clipboardService=N,this._visibility=!1,this._marginDomNode.style.zIndex="10",this._diffActions=document.createElement("div"),this._diffActions.className=sl.asClassName(_s.lightBulb)+" lightbulb-glyph",this._diffActions.style.position="absolute";let L=this._modifiedEditor.getOption(67);this._diffActions.style.right="0px",this._diffActions.style.visibility="hidden",this._diffActions.style.height=`${L}px`,this._diffActions.style.lineHeight=`${L}px`,this._marginDomNode.appendChild(this._diffActions);let B=0,F=o.getOption(127)&&!b6,Y=(Z,ee)=>{var Te;this._contextMenuService.showContextMenu({domForShadowRoot:F&&(Te=o.getDomNode())!==null&&Te!==void 0?Te:void 0,getAnchor:()=>({x:Z,y:ee}),getActions:()=>{let Je=[],Xe=c.modified.isEmpty;return Je.push(new jw("diff.clipboard.copyDeletedContent",Xe?c.original.length>1?ce("diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):ce("diff.clipboard.copyDeletedLinesContent.single.label","Copy deleted line"):c.original.length>1?ce("diff.clipboard.copyChangedLinesContent.label","Copy changed lines"):ce("diff.clipboard.copyChangedLinesContent.single.label","Copy changed line"),void 0,!0,async()=>{let Ct=this._originalTextModel.getValueInRange(c.original.toExclusiveRange());await this._clipboardService.writeText(Ct)})),c.original.length>1&&Je.push(new jw("diff.clipboard.copyDeletedLineContent",Xe?ce("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",c.original.startLineNumber+B):ce("diff.clipboard.copyChangedLineContent.label","Copy changed line ({0})",c.original.startLineNumber+B),void 0,!0,async()=>{let Ct=this._originalTextModel.getLineContent(c.original.startLineNumber+B);Ct===""&&(Ct=this._originalTextModel.getEndOfLineSequence()===0?` +`:`\r +`),await this._clipboardService.writeText(Ct)})),o.getOption(91)||Je.push(new jw("diff.inline.revertChange",ce("diff.inline.revertChange.label","Revert this change"),void 0,!0,async()=>{this._editor.revert(this._diff)})),Je},autoSelectFirstItem:!0})};this._register(qh(this._diffActions,"mousedown",Z=>{if(!Z.leftButton)return;let{top:ee,height:Te}=_g(this._diffActions),Je=Math.floor(L/3);Z.preventDefault(),Y(Z.posx,ee+Te+Je)})),this._register(o.onMouseMove(Z=>{(Z.target.type===8||Z.target.type===5)&&Z.target.detail.viewZoneId===this._getViewZoneId()?(B=this._updateLightBulbPosition(this._marginDomNode,Z.event.browserEvent.y,L),this.visibility=!0):this.visibility=!1})),this._register(o.onMouseDown(Z=>{Z.event.leftButton&&(Z.target.type===8||Z.target.type===5)&&Z.target.detail.viewZoneId===this._getViewZoneId()&&(Z.event.preventDefault(),B=this._updateLightBulbPosition(this._marginDomNode,Z.event.browserEvent.y,L),Y(Z.event.posx,Z.event.posy+L))}))}_updateLightBulbPosition(e,r,o){let{top:c}=_g(e),d=r-c,h=Math.floor(d/o),b=h*o;if(this._diffActions.style.top=`${b}px`,this._viewLineCounts){let w=0;for(let N=0;N0,d=new kB(1e4),h=0,b=0,w=[];for(let F=0;F');let w=e.getLineContent(),N=GO.isBasicASCII(w,c),L=GO.containsRTL(w,N,d),B=kfe(new a7(h.fontInfo.isMonospace&&!h.disableMonospaceOptimizations,h.fontInfo.canUseHalfwidthRightwardsArrow,w,!1,N,L,0,e,r,h.tabSize,0,h.fontInfo.spaceWidth,h.fontInfo.middotWidth,h.fontInfo.wsmiddotWidth,h.stopRenderingLineAfter,h.renderWhitespace,h.renderControlCharacters,h.fontLigatures!==SR.OFF,null),b);return b.appendString(""),B.characterMapping.getHorizontalOffset(B.characterMapping.length)}var eDi,z8t,V8t,nDi=ti(()=>{Bne();xB();TT();pfe();p6e();bSe();Hq();eDi=r3("diffEditorWidget",{createHTML:l=>l});z8t=class{constructor(e,r,o,c){this.lineTokens=e,this.lineBreakData=r,this.mightContainNonBasicASCII=o,this.mightContainRTL=c}},V8t=class l{static fromEditor(e){var r;let o=e.getOptions(),c=o.get(50),d=o.get(145);return new l(((r=e.getModel())===null||r===void 0?void 0:r.getOptions().tabSize)||0,c,o.get(33),c.typicalHalfwidthCharacterWidth,o.get(104),o.get(67),d.decorationsWidth,o.get(117),o.get(99),o.get(94),o.get(51))}constructor(e,r,o,c,d,h,b,w,N,L,B){this.tabSize=e,this.fontInfo=r,this.disableMonospaceOptimizations=o,this.typicalHalfwidthCharacterWidth=c,this.scrollBeyondLastColumn=d,this.lineHeight=h,this.lineDecorationsWidth=b,this.stopRenderingLineAfter=w,this.renderWhitespace=N,this.renderControlCharacters=L,this.fontLigatures=B}}});function oDi(l,e,r,o,c,d){let h=new KL(sDi(l,o)),b=new KL(sDi(e,c)),w=l.getOption(67),N=e.getOption(67),L=[],B=0,F=0;function Y(Z,ee){for(;;){let Te=h.peek(),Je=b.peek();if(Te&&Te.lineNumber>=Z&&(Te=void 0),Je&&Je.lineNumber>=ee&&(Je=void 0),!Te&&!Je)break;let Xe=Te?Te.lineNumber-B:Number.MAX_VALUE,ct=Je?Je.lineNumber-F:Number.MAX_VALUE;Xect?(b.dequeue(),Te={lineNumber:Je.lineNumber-F+B,heightInPx:0}):(h.dequeue(),b.dequeue()),L.push({originalRange:Rd.ofLength(Te.lineNumber,1),modifiedRange:Rd.ofLength(Je.lineNumber,1),originalHeightInPx:w+Te.heightInPx,modifiedHeightInPx:N+Je.heightInPx,diff:void 0})}}for(let Z of r){let ct=function(Ct,Nt){var Yt,jt,mi,_n;if(CtQn.lineNumberQn+ks.heightInPx,0))!==null&&jt!==void 0?jt:0,Tn=(_n=(mi=b.takeWhile(Qn=>Qn.lineNumberQn+ks.heightInPx,0))!==null&&_n!==void 0?_n:0;L.push({originalRange:Pr,modifiedRange:dr,originalHeightInPx:Pr.length*w+Rr,modifiedHeightInPx:dr.length*N+Tn,diff:Z.lineRangeMapping}),Xe=Ct,Je=Nt},ee=Z.lineRangeMapping;Y(ee.original.startLineNumber,ee.modified.startLineNumber);let Te=!0,Je=ee.modified.startLineNumber,Xe=ee.original.startLineNumber;if(d)for(let Ct of ee.innerChanges||[]){Ct.originalRange.startColumn>1&&Ct.modifiedRange.startColumn>1&&ct(Ct.originalRange.startLineNumber,Ct.modifiedRange.startLineNumber);let Nt=l.getModel(),Yt=Ct.originalRange.endLineNumber<=Nt.getLineCount()?Nt.getLineMaxColumn(Ct.originalRange.endLineNumber):Number.MAX_SAFE_INTEGER;Ct.originalRange.endColumn1&&o.push({lineNumber:w,heightInPx:h*(N-1)})}for(let w of l.getWhitespaces()){if(e.has(w.id))continue;let N=w.afterLineNumber===0?0:d.convertViewPositionToModelPosition(new qn(w.afterLineNumber,1)).lineNumber;r.push({lineNumber:N,heightInPx:w.height})}return zEi(r,o,w=>w.lineNumber,(w,N)=>({lineNumber:w.lineNumber,heightInPx:w.heightInPx+N.heightInPx}))}var tHi,rDi,H8t,aDi=ti(()=>{nc();sd();Ud();uy();co();xv();bv();Fh();xB();K_t();aci();ZEi();nDi();qV();qO();Iu();Hq();l_e();u3();tHi=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},rDi=function(l,e){return function(r,o){e(r,o,l)}},H8t=class extends tn{constructor(e,r,o,c,d,h,b,w,N,L){super(),this._targetWindow=e,this._editors=r,this._diffModel=o,this._options=c,this._diffEditorWidget=d,this._canIgnoreViewZoneUpdateEvent=h,this._origViewZonesToIgnore=b,this._modViewZonesToIgnore=w,this._clipboardService=N,this._contextMenuService=L,this._originalTopPadding=Jf(this,0),this._originalScrollOffset=Jf(this,0),this._originalScrollOffsetAnimated=Bai(this._targetWindow,this._originalScrollOffset,this._store),this._modifiedTopPadding=Jf(this,0),this._modifiedScrollOffset=Jf(this,0),this._modifiedScrollOffsetAnimated=Bai(this._targetWindow,this._modifiedScrollOffset,this._store);let B=Jf("invalidateAlignmentsState",0),F=this._register(new p_(()=>{B.set(B.get()+1,void 0)},0));this._register(this._editors.original.onDidChangeViewZones(ct=>{this._canIgnoreViewZoneUpdateEvent()||F.schedule()})),this._register(this._editors.modified.onDidChangeViewZones(ct=>{this._canIgnoreViewZoneUpdateEvent()||F.schedule()})),this._register(this._editors.original.onDidChangeConfiguration(ct=>{(ct.hasChanged(146)||ct.hasChanged(67))&&F.schedule()})),this._register(this._editors.modified.onDidChangeConfiguration(ct=>{(ct.hasChanged(146)||ct.hasChanged(67))&&F.schedule()}));let Y=this._diffModel.map(ct=>ct?$p(ct.model.original.onDidChangeTokens,()=>ct.model.original.tokenization.backgroundTokenizationState===2):void 0).map((ct,Ct)=>ct?.read(Ct)),Z=Ru(ct=>{let Ct=this._diffModel.read(ct),Nt=Ct?.diff.read(ct);if(!Ct||!Nt)return null;B.read(ct);let jt=this._options.renderSideBySide.read(ct);return oDi(this._editors.original,this._editors.modified,Nt.mappings,this._origViewZonesToIgnore,this._modViewZonesToIgnore,jt)}),ee=Ru(ct=>{var Ct;let Nt=(Ct=this._diffModel.read(ct))===null||Ct===void 0?void 0:Ct.movedTextToCompare.read(ct);if(!Nt)return null;B.read(ct);let Yt=Nt.changes.map(jt=>new Y_t(jt));return oDi(this._editors.original,this._editors.modified,Yt,this._origViewZonesToIgnore,this._modViewZonesToIgnore,!0)});function Te(){let ct=document.createElement("div");return ct.className="diagonal-fill",ct}let Je=this._register(new Fr);this.viewZones=zR(this,(ct,Ct)=>{var Nt,Yt,jt,mi,_n,Pr,dr,Rr;Je.clear();let Tn=Z.read(ct)||[],Qn=[],ks=[],La=this._modifiedTopPadding.read(ct);La>0&&ks.push({afterLineNumber:0,domNode:document.createElement("div"),heightInPx:La,showInHiddenAreas:!0,suppressMouseDown:!0});let $i=this._originalTopPadding.read(ct);$i>0&&Qn.push({afterLineNumber:0,domNode:document.createElement("div"),heightInPx:$i,showInHiddenAreas:!0,suppressMouseDown:!0});let Dl=this._options.renderSideBySide.read(ct),$s=Dl||(Nt=this._editors.modified._getViewModel())===null||Nt===void 0?void 0:Nt.createLineBreaksComputer();if($s){let up=this._editors.original.getModel();for(let Hv of Tn)if(Hv.diff)for(let dc=Hv.originalRange.startLineNumber;dcup.getLineCount())return{orig:Qn,mod:ks};$s?.addRequest(up.getLineContent(dc),null,null)}}let cr=(Yt=$s?.finalize())!==null&&Yt!==void 0?Yt:[],za=0,Uc=this._editors.modified.getOption(67),Ya=(jt=this._diffModel.read(ct))===null||jt===void 0?void 0:jt.movedTextToCompare.read(ct),Xl=(_n=(mi=this._editors.original.getModel())===null||mi===void 0?void 0:mi.mightContainNonBasicASCII())!==null&&_n!==void 0?_n:!1,Vb=(dr=(Pr=this._editors.original.getModel())===null||Pr===void 0?void 0:Pr.mightContainRTL())!==null&&dr!==void 0?dr:!1,Dc=V8t.fromEditor(this._editors.modified);for(let up of Tn)if(up.diff&&!Dl){if(!up.originalRange.isEmpty){Y.read(ct);let dc=document.createElement("div");dc.classList.add("view-lines","line-delete","monaco-mouse-cursor-text");let Qy=this._editors.original.getModel();if(up.originalRange.endLineNumberExclusive-1>Qy.getLineCount())return{orig:Qn,mod:ks};let $f=new z8t(up.originalRange.mapToLineArray(lk=>Qy.tokenization.getLineTokens(lk)),up.originalRange.mapToLineArray(lk=>cr[za++]),Xl,Vb),C2=[];for(let lk of up.diff.innerChanges||[])C2.push(new wfe(lk.originalRange.delta(-(up.diff.original.startLineNumber-1)),G_t.className,0));let En=iDi($f,Dc,C2,dc),IE=document.createElement("div");if(IE.className="inline-deleted-margin-view-zone",Bb(IE,Dc.fontInfo),this._options.renderIndicators.read(ct))for(let lk=0;lkNq(Pl),IE,this._editors.modified,up.diff,this._diffEditorWidget,En.viewLineCounts,this._editors.original.getModel(),this._contextMenuService,this._clipboardService));for(let lk=0;lk1&&Qn.push({afterLineNumber:up.originalRange.startLineNumber+lk,domNode:Te(),heightInPx:(On-1)*Uc,showInHiddenAreas:!0,suppressMouseDown:!0})}ks.push({afterLineNumber:up.modifiedRange.startLineNumber-1,domNode:dc,heightInPx:En.heightInLines*Uc,minWidthInPx:En.minWidthInPx,marginDomNode:IE,setZoneId(lk){Pl=lk},showInHiddenAreas:!0,suppressMouseDown:!0})}let Hv=document.createElement("div");Hv.className="gutter-delete",Qn.push({afterLineNumber:up.originalRange.endLineNumberExclusive-1,domNode:Te(),heightInPx:up.modifiedHeightInPx,marginDomNode:Hv,showInHiddenAreas:!0,suppressMouseDown:!0})}else{let Hv=up.modifiedHeightInPx-up.originalHeightInPx;if(Hv>0){if(Ya?.lineRangeMapping.original.delta(-1).deltaLength(2).contains(up.originalRange.endLineNumberExclusive-1))continue;Qn.push({afterLineNumber:up.originalRange.endLineNumberExclusive-1,domNode:Te(),heightInPx:Hv,showInHiddenAreas:!0,suppressMouseDown:!0})}else{let dc=function(){let $f=document.createElement("div");return $f.className="arrow-revert-change "+sl.asClassName(_s.arrowRight),Ct.add(Jr($f,"mousedown",C2=>C2.stopPropagation())),Ct.add(Jr($f,"click",C2=>{C2.stopPropagation(),d.revert(up.diff)})),qo("div",{},$f)};if(Ya?.lineRangeMapping.modified.delta(-1).deltaLength(2).contains(up.modifiedRange.endLineNumberExclusive-1))continue;let Qy;up.diff&&up.diff.modified.isEmpty&&this._options.shouldRenderOldRevertArrows.read(ct)&&(Qy=dc()),ks.push({afterLineNumber:up.modifiedRange.endLineNumberExclusive-1,domNode:Te(),heightInPx:-Hv,marginDomNode:Qy,showInHiddenAreas:!0,suppressMouseDown:!0})}}for(let up of(Rr=ee.read(ct))!==null&&Rr!==void 0?Rr:[]){if(!Ya?.lineRangeMapping.original.intersect(up.originalRange)||!Ya?.lineRangeMapping.modified.intersect(up.modifiedRange))continue;let Hv=up.modifiedHeightInPx-up.originalHeightInPx;Hv>0?Qn.push({afterLineNumber:up.originalRange.endLineNumberExclusive-1,domNode:Te(),heightInPx:Hv,showInHiddenAreas:!0,suppressMouseDown:!0}):ks.push({afterLineNumber:up.modifiedRange.endLineNumberExclusive-1,domNode:Te(),heightInPx:-Hv,showInHiddenAreas:!0,suppressMouseDown:!0})}return{orig:Qn,mod:ks}});let Xe=!1;this._register(this._editors.original.onDidScrollChange(ct=>{ct.scrollLeftChanged&&!Xe&&(Xe=!0,this._editors.modified.setScrollLeft(ct.scrollLeft),Xe=!1)})),this._register(this._editors.modified.onDidScrollChange(ct=>{ct.scrollLeftChanged&&!Xe&&(Xe=!0,this._editors.original.setScrollLeft(ct.scrollLeft),Xe=!1)})),this._originalScrollTop=$p(this._editors.original.onDidScrollChange,()=>this._editors.original.getScrollTop()),this._modifiedScrollTop=$p(this._editors.modified.onDidScrollChange,()=>this._editors.modified.getScrollTop()),this._register(ad(ct=>{let Ct=this._originalScrollTop.read(ct)-(this._originalScrollOffsetAnimated.get()-this._modifiedScrollOffsetAnimated.read(ct))-(this._originalTopPadding.get()-this._modifiedTopPadding.read(ct));Ct!==this._editors.modified.getScrollTop()&&this._editors.modified.setScrollTop(Ct,1)})),this._register(ad(ct=>{let Ct=this._modifiedScrollTop.read(ct)-(this._modifiedScrollOffsetAnimated.get()-this._originalScrollOffsetAnimated.read(ct))-(this._modifiedTopPadding.get()-this._originalTopPadding.read(ct));Ct!==this._editors.original.getScrollTop()&&this._editors.original.setScrollTop(Ct,1)})),this._register(ad(ct=>{var Ct;let Nt=(Ct=this._diffModel.read(ct))===null||Ct===void 0?void 0:Ct.movedTextToCompare.read(ct),Yt=0;if(Nt){let jt=this._editors.original.getTopForLineNumber(Nt.lineRangeMapping.original.startLineNumber,!0)-this._originalTopPadding.get();Yt=this._editors.modified.getTopForLineNumber(Nt.lineRangeMapping.modified.startLineNumber,!0)-this._modifiedTopPadding.get()-jt}Yt>0?(this._modifiedTopPadding.set(0,void 0),this._originalTopPadding.set(Yt,void 0)):Yt<0?(this._modifiedTopPadding.set(-Yt,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()-Yt,void 0,!0):this._modifiedScrollOffset.set(this._originalScrollOffset.get()+Yt,void 0,!0)}))}};H8t=tHi([rDi(8,c8),rDi(9,zw)],H8t)});var U8t,cci,cDi=ti(()=>{nc();co();xv();qO();o7();U8t=class extends tn{constructor(e,r,o){super(),this._editor=e,this._domNode=r,this.itemProvider=o,this.scrollTop=$p(this._editor.onDidScrollChange,h=>this._editor.getScrollTop()),this.isScrollTopZero=this.scrollTop.map(h=>h===0),this.modelAttached=$p(this._editor.onDidChangeModel,h=>this._editor.hasModel()),this.editorOnDidChangeViewZones=iw("onDidChangeViewZones",this._editor.onDidChangeViewZones),this.editorOnDidContentSizeChange=iw("onDidContentSizeChange",this._editor.onDidContentSizeChange),this.domNodeSizeChanged=Zfe("domNodeSizeChanged"),this.views=new Map,this._domNode.className="gutter monaco-editor";let c=this._domNode.appendChild(qp("div.scroll-decoration",{role:"presentation",ariaHidden:"true",style:{width:"100%"}}).root),d=new ResizeObserver(()=>{Pm(h=>{this.domNodeSizeChanged.trigger(h)})});d.observe(this._domNode),this._register(Ma(()=>d.disconnect())),this._register(ad(h=>{c.className=this.isScrollTopZero.read(h)?"":"scroll-decoration"})),this._register(ad(h=>this.render(h)))}dispose(){super.dispose(),IS(this._domNode)}render(e){if(!this.modelAttached.read(e))return;this.domNodeSizeChanged.read(e),this.editorOnDidChangeViewZones.read(e),this.editorOnDidContentSizeChange.read(e);let r=this.scrollTop.read(e),o=this._editor.getVisibleRanges(),c=new Set(this.views.keys()),d=x_.ofStartAndLength(0,this._domNode.clientHeight);if(!d.isEmpty)for(let h of o){let b=new Rd(h.startLineNumber,h.endLineNumber+1),w=this.itemProvider.getIntersectingGutterItems(b,e);Pm(N=>{for(let L of w){if(!L.range.intersect(b))continue;c.delete(L.id);let B=this.views.get(L.id);if(B)B.item.set(L,N);else{let ee=document.createElement("div");this._domNode.appendChild(ee);let Te=Jf("item",L),Je=this.itemProvider.createView(Te,ee);B=new cci(Te,Je,ee),this.views.set(L.id,B)}let F=L.range.startLineNumber<=this._editor.getModel().getLineCount()?this._editor.getTopForLineNumber(L.range.startLineNumber,!0)-r:this._editor.getBottomForLineNumber(L.range.startLineNumber-1,!1)-r,Z=(L.range.isEmpty?F:this._editor.getBottomForLineNumber(L.range.endLineNumberExclusive-1,!0)-r)-F;B.domNode.style.top=`${F}px`,B.domNode.style.height=`${Z}px`,B.gutterItemView.layout(x_.ofStartAndLength(F,Z),d)}})}for(let h of c){let b=this.views.get(h);b.gutterItemView.dispose(),this._domNode.removeChild(b.domNode),this.views.delete(h)}}},cci=class{constructor(e,r,o){this.item=e,this.gutterItemView=r,this.domNode=o}}});var sJe,lci=ti(()=>{xE();sJe=class extends DR{constructor(e){super(),this._getContext=e}runAction(e,r){let o=this._getContext();return super.runAction(e,o)}}});var Q_t,lDi=ti(()=>{xfe();Sfe();Q_t=class extends Gut{constructor(e){super(),this._textModel=e}getValueOfRange(e){return this._textModel.getValueInRange(e)}get length(){let e=this._textModel.getLineCount(),r=this._textModel.getLineLength(e);return new zI(e-1,r)}}});var uDi=ti(()=>{});var J8t,ULe,dDi=ti(()=>{zV();Coi();xE();uy();bv();xc();co();uDi();ya();JI();J8t=class extends tn{constructor(e,r,o={orientation:0}){var c;super(),this.submenuActionViewItems=[],this.hasSecondaryActions=!1,this._onDidChangeDropdownVisibility=this._register(new yDt),this.onDidChangeDropdownVisibility=this._onDidChangeDropdownVisibility.event,this.disposables=this._register(new Fr),o.hoverDelegate=(c=o.hoverDelegate)!==null&&c!==void 0?c:this._register(d$()),this.options=o,this.lookupKeybindings=typeof this.options.getKeyBinding=="function",this.toggleMenuAction=this._register(new ULe(()=>{var d;return(d=this.toggleMenuActionViewItem)===null||d===void 0?void 0:d.show()},o.toggleMenuTitle)),this.element=document.createElement("div"),this.element.className="monaco-toolbar",e.appendChild(this.element),this.actionBar=this._register(new Vw(this.element,{orientation:o.orientation,ariaLabel:o.ariaLabel,actionRunner:o.actionRunner,allowContextMenu:o.allowContextMenu,highlightToggledItems:o.highlightToggledItems,hoverDelegate:o.hoverDelegate,actionViewItemProvider:(d,h)=>{var b;if(d.id===ULe.ID)return this.toggleMenuActionViewItem=new uxe(d,d.menuActions,r,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:sl.asClassNameArray((b=o.moreIcon)!==null&&b!==void 0?b:_s.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(o.actionViewItemProvider){let w=o.actionViewItemProvider(d,h);if(w)return w}if(d instanceof yV){let w=new uxe(d,d.actions,r,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:d.class,anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry,hoverDelegate:this.options.hoverDelegate});return w.setActionContext(this.actionBar.context),this.submenuActionViewItems.push(w),this.disposables.add(this._onDidChangeDropdownVisibility.add(w.onDidChangeVisibility)),w}}}))}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,r){this.clear();let o=e?e.slice(0):[];this.hasSecondaryActions=!!(r&&r.length>0),this.hasSecondaryActions&&r&&(this.toggleMenuAction.menuActions=r.slice(0),o.push(this.toggleMenuAction)),o.forEach(c=>{this.actionBar.push(c,{icon:!0,label:!1,keybinding:this.getKeybindingLabel(c)})})}getKeybindingLabel(e){var r,o,c;let d=this.lookupKeybindings?(o=(r=this.options).getKeyBinding)===null||o===void 0?void 0:o.call(r,e):void 0;return(c=d?.getLabel())!==null&&c!==void 0?c:void 0}clear(){this.submenuActionViewItems=[],this.disposables.clear(),this.actionBar.clear()}dispose(){this.clear(),this.disposables.dispose(),super.dispose()}},ULe=class l extends jw{constructor(e,r){r=r||ce("moreActions","More Actions..."),super(l.ID,r,void 0,!0),this._menuActions=[],this.toggleDropdownMenu=e}async run(){this.toggleDropdownMenu()}get menuActions(){return this._menuActions}set menuActions(e){this._menuActions=e}};ULe.ID="toolbar.toggle.more"});var fDi,f$,JLe,aJe,Z_t=ti(()=>{nc();vB();dDi();xE();sd();Foi();Du();xc();QL();co();ya();n_e();My();uai();W0();hd();u3();f1();n3();fDi=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},f$=function(l,e){return function(r,o){e(r,o,l)}},JLe=class extends J8t{constructor(e,r,o,c,d,h,b,w){super(e,d,{getKeyBinding:L=>{var B;return(B=h.lookupKeybinding(L.id))!==null&&B!==void 0?B:void 0},...r,allowContextMenu:!0,skipTelemetry:typeof r?.telemetrySource=="string"}),this._options=r,this._menuService=o,this._contextKeyService=c,this._contextMenuService=d,this._keybindingService=h,this._commandService=b,this._sessionDisposables=this._store.add(new Fr);let N=r?.telemetrySource;N&&this._store.add(this.actionBar.onDidRun(L=>w.publicLog2("workbenchActionExecuted",{id:L.action.id,from:N})))}setActions(e,r=[],o){var c,d,h;this._sessionDisposables.clear();let b=e.slice(),w=r.slice(),N=[],L=0,B=[],F=!1;if(((c=this._options)===null||c===void 0?void 0:c.hiddenItemStrategy)!==-1)for(let Y=0;YTe?.id)),Z=this._options.overflowBehavior.maxItems-Y.size,ee=0;for(let Te=0;Te=Z&&(b[Te]=void 0,B[Te]=Je))}}lYt(b),lYt(B),super.setActions(b,J1.join(B,w)),(N.length>0||b.length>0)&&this._sessionDisposables.add(Jr(this.getElement(),"contextmenu",Y=>{var Z,ee,Te,Je,Xe;let ct=new PD(Gc(this.getElement()),Y),Ct=this.getItemAction(ct.target);if(!Ct)return;ct.preventDefault(),ct.stopPropagation();let Nt=[];if(Ct instanceof jI&&Ct.menuKeybinding?Nt.push(Ct.menuKeybinding):Ct instanceof Wq||Ct instanceof ULe||Nt.push(lai(Ct.id,void 0,this._commandService,this._keybindingService)),N.length>0){let jt=!1;if(L===1&&((Z=this._options)===null||Z===void 0?void 0:Z.hiddenItemStrategy)===0){jt=!0;for(let mi=0;mithis._menuService.resetHiddenStates(o)}))),Yt.length!==0&&this._contextMenuService.showContextMenu({getAnchor:()=>ct,getActions:()=>Yt,menuId:(Te=this._options)===null||Te===void 0?void 0:Te.contextMenu,menuActionOptions:{renderShortTitle:!0,...(Je=this._options)===null||Je===void 0?void 0:Je.menuOptions},skipTelemetry:typeof((Xe=this._options)===null||Xe===void 0?void 0:Xe.telemetrySource)=="string",contextKeyService:this._contextKeyService})}))}};JLe=fDi([f$(2,CE),f$(3,Ec),f$(4,zw),f$(5,Jd),f$(6,Mp),f$(7,zv)],JLe);aJe=class extends JLe{constructor(e,r,o,c,d,h,b,w,N){super(e,{resetMenu:r,...o},c,d,h,b,w,N),this._onDidChangeMenuItems=this._store.add(new wn),this.onDidChangeMenuItems=this._onDidChangeMenuItems.event;let L=this._store.add(c.createMenu(r,d,{emitEventsForSubmenuChanges:!0})),B=()=>{var F,Y,Z;let ee=[],Te=[];fxe(L,o?.menuOptions,{primary:ee,secondary:Te},(F=o?.toolbarOptions)===null||F===void 0?void 0:F.primaryGroup,(Y=o?.toolbarOptions)===null||Y===void 0?void 0:Y.shouldInlineSubmenu,(Z=o?.toolbarOptions)===null||Z===void 0?void 0:Z.useSeparatorsInPrimaryActions),e.classList.toggle("has-no-actions",ee.length===0&&Te.length===0),super.setActions(ee,Te)};this._store.add(L.onDidChange(()=>{B(),this._onDidChangeMenuItems.fire(this)})),B()}setActions(){throw new Hp("This toolbar is populated from a menu.")}};aJe=fDi([f$(3,CE),f$(4,Ec),f$(5,zw),f$(6,Jd),f$(7,Mp),f$(8,zv)],aJe)});var _Di,$8t,uci,q8t,G8t,K8t,dci,pDi=ti(()=>{nc();co();xv();axe();nci();qV();cDi();lci();qO();o7();Xa();xfe();Hne();lDi();Z_t();My();hd();Jfe();bl();_Di=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},$8t=function(l,e){return function(r,o){e(r,o,l)}},uci=[],q8t=35,G8t=class extends tn{constructor(e,r,o,c,d,h,b,w,N){super(),this._diffModel=r,this._editors=o,this._options=c,this._sashLayout=d,this._boundarySashes=h,this._instantiationService=b,this._contextKeyService=w,this._menuService=N,this._menu=this._register(this._menuService.createMenu(Mi.DiffEditorHunkToolbar,this._contextKeyService)),this._actions=$p(this._menu.onDidChange,()=>this._menu.getActions()),this._hasActions=this._actions.map(L=>L.length>0),this._showSash=Ru(this,L=>this._options.renderSideBySide.read(L)&&this._hasActions.read(L)),this.width=Ru(this,L=>this._hasActions.read(L)?q8t:0),this.elements=qp("div.gutter@gutter",{style:{position:"absolute",height:"100%",width:q8t+"px"}},[]),this._currentDiff=Ru(this,L=>{var B;let F=this._diffModel.read(L);if(!F)return;let Y=(B=F.diff.read(L))===null||B===void 0?void 0:B.mappings,Z=this._editors.modifiedCursor.read(L);if(Z)return Y?.find(ee=>ee.lineRangeMapping.modified.contains(Z.lineNumber))}),this._selectedDiffs=Ru(this,L=>{let B=this._diffModel.read(L),F=B?.diff.read(L);if(!F)return uci;let Y=this._editors.modifiedSelections.read(L);if(Y.every(Je=>Je.isEmpty()))return uci;let Z=new xV(Y.map(Je=>Rd.fromRangeInclusive(Je))),Te=F.mappings.filter(Je=>Je.lineRangeMapping.innerChanges&&Z.intersects(Je.lineRangeMapping.modified)).map(Je=>({mapping:Je,rangeMappings:Je.lineRangeMapping.innerChanges.filter(Xe=>Y.some(ct=>Zt.areIntersecting(Xe.modifiedRange,ct)))}));return Te.length===0||Te.every(Je=>Je.rangeMappings.length===0)?uci:Te}),this._register(VEi(e,this.elements.root)),this._register(Jr(this.elements.root,"click",()=>{this._editors.modified.focus()})),this._register(JV(this.elements.root,{display:this._hasActions.map(L=>L?"block":"none")})),jV(this,L=>this._showSash.read(L)?new rJe(e,this._sashLayout.dimensions,this._options.enableSplitViewResizing,this._boundarySashes,P3t(this,F=>this._sashLayout.sashLeft.read(F)-q8t,(F,Y)=>this._sashLayout.sashLeft.set(F+q8t,Y)),()=>this._sashLayout.resetSash()):void 0).recomputeInitiallyAndOnChange(this._store),this._register(new U8t(this._editors.modified,this.elements.root,{getIntersectingGutterItems:(L,B)=>{let F=this._diffModel.read(B);if(!F)return[];let Y=F.diff.read(B);if(!Y)return[];let Z=this._selectedDiffs.read(B);if(Z.length>0){let Te=a3.fromRangeMappings(Z.flatMap(Je=>Je.rangeMappings));return[new K8t(Te,!0,Mi.DiffEditorSelectionToolbar,void 0,F.model.original.uri,F.model.modified.uri)]}let ee=this._currentDiff.read(B);return Y.mappings.map(Te=>new K8t(Te.lineRangeMapping.withInnerChangesFromLineRanges(),Te.lineRangeMapping===ee?.lineRangeMapping,Mi.DiffEditorHunkToolbar,void 0,F.model.original.uri,F.model.modified.uri))},createView:(L,B)=>this._instantiationService.createInstance(dci,L,B,this)})),this._register(Jr(this.elements.gutter,ls.MOUSE_WHEEL,L=>{this._editors.modified.getOption(103).handleMouseWheel&&this._editors.modified.delegateScrollFromMouseWheelEvent(L)},{passive:!1}))}computeStagedValue(e){var r;let o=(r=e.innerChanges)!==null&&r!==void 0?r:[],c=new Q_t(this._editors.modifiedModel.get()),d=new Q_t(this._editors.original.getModel());return new hSe(o.map(w=>w.toTextEdit(c))).apply(d)}layout(e){this.elements.gutter.style.left=e+"px"}};G8t=_Di([$8t(6,Pa),$8t(7,Ec),$8t(8,CE)],G8t);K8t=class{constructor(e,r,o,c,d,h){this.mapping=e,this.showAlways=r,this.menuId=o,this.rangeOverride=c,this.originalUri=d,this.modifiedUri=h}get id(){return this.mapping.modified.toString()}get range(){var e;return(e=this.rangeOverride)!==null&&e!==void 0?e:this.mapping.modified}},dci=class extends tn{constructor(e,r,o,c){super(),this._item=e,this._elements=qp("div.gutterItem",{style:{height:"20px",width:"34px"}},[qp("div.background@background",{},[]),qp("div.buttons@buttons",{},[])]),this._showAlways=this._item.map(this,h=>h.showAlways),this._menuId=this._item.map(this,h=>h.menuId),this._isSmall=Jf(this,!1),this._lastItemRange=void 0,this._lastViewRange=void 0;let d=this._register(c.createInstance(Sre,"element",!0,{position:{hoverPosition:1}}));this._register(VLe(r,this._elements.root)),this._register(ad(h=>{let b=this._showAlways.read(h);this._elements.root.classList.toggle("noTransition",!0),this._elements.root.classList.toggle("showAlways",b),setTimeout(()=>{this._elements.root.classList.toggle("noTransition",!1)},0)})),this._register(LT((h,b)=>{this._elements.buttons.replaceChildren();let w=b.add(c.createInstance(aJe,this._elements.buttons,this._menuId.read(h),{orientation:1,hoverDelegate:d,toolbarOptions:{primaryGroup:N=>N.startsWith("primary")},overflowBehavior:{maxItems:this._isSmall.read(h)?1:3},hiddenItemStrategy:0,actionRunner:new sJe(()=>{let N=this._item.get(),L=N.mapping;return{mapping:L,originalWithModifiedChanges:o.computeStagedValue(L),originalUri:N.originalUri,modifiedUri:N.modifiedUri}}),menuOptions:{shouldForwardArgs:!0}}));b.add(w.onDidChangeMenuItems(()=>{this._lastItemRange&&this.layout(this._lastItemRange,this._lastViewRange)}))}))}layout(e,r){this._lastItemRange=e,this._lastViewRange=r;let o=this._elements.buttons.clientHeight;this._isSmall.set(this._item.get().mapping.original.startLineNumber===1&&e.length<30,void 0),o=this._elements.buttons.clientHeight;let c=e.length/2-o/2,d=o,h=e.start+c,b=x_.tryCreate(d,r.endExclusive-d-o),w=x_.tryCreate(e.start+d,e.endExclusive-o-d);w&&b&&w.start{nc();qfe();uy();d3();co();xv();axe();bv();Fh();qV();qO();Iu();Xa();dy();ya();bl();iHi=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},nHi=function(l,e){return function(r,o){e(r,o,l)}},qLe=fci=class extends tn{static setBreadcrumbsSourceFactory(e){this._breadcrumbsSourceFactory.set(e,void 0)}get isUpdatingHiddenAreas(){return this._isUpdatingHiddenAreas}constructor(e,r,o,c){super(),this._editors=e,this._diffModel=r,this._options=o,this._instantiationService=c,this._modifiedOutlineSource=jV(this,w=>{let N=this._editors.modifiedModel.read(w),L=fci._breadcrumbsSourceFactory.read(w);return!N||!L?void 0:L(N,this._instantiationService)}),this._isUpdatingHiddenAreas=!1,this._register(this._editors.original.onDidChangeCursorPosition(w=>{if(w.reason===1)return;let N=this._diffModel.get();Pm(L=>{for(let B of this._editors.original.getSelections()||[])N?.ensureOriginalLineIsVisible(B.getStartPosition().lineNumber,0,L),N?.ensureOriginalLineIsVisible(B.getEndPosition().lineNumber,0,L)})})),this._register(this._editors.modified.onDidChangeCursorPosition(w=>{if(w.reason===1)return;let N=this._diffModel.get();Pm(L=>{for(let B of this._editors.modified.getSelections()||[])N?.ensureModifiedLineIsVisible(B.getStartPosition().lineNumber,0,L),N?.ensureModifiedLineIsVisible(B.getEndPosition().lineNumber,0,L)})}));let d=this._diffModel.map((w,N)=>{var L,B;let F=(L=w?.unchangedRegions.read(N))!==null&&L!==void 0?L:[];return F.length===1&&F[0].modifiedLineNumber===1&&F[0].lineCount===((B=this._editors.modifiedModel.read(N))===null||B===void 0?void 0:B.getLineCount())?[]:F});this.viewZones=zR(this,(w,N)=>{let L=this._modifiedOutlineSource.read(w);if(!L)return{origViewZones:[],modViewZones:[]};let B=[],F=[],Y=this._options.renderSideBySide.read(w),Z=d.read(w);for(let ee of Z)if(!ee.shouldHideControls(w)){{let Te=Ru(this,Xe=>ee.getHiddenOriginalRange(Xe).startLineNumber-1),Je=new Cxe(Te,24);B.push(Je),N.add(new X8t(this._editors.original,Je,ee,ee.originalUnchangedRange,!Y,L,Xe=>this._diffModel.get().ensureModifiedLineIsVisible(Xe,2,void 0),this._options))}{let Te=Ru(this,Xe=>ee.getHiddenModifiedRange(Xe).startLineNumber-1),Je=new Cxe(Te,24);F.push(Je),N.add(new X8t(this._editors.modified,Je,ee,ee.modifiedUnchangedRange,!1,L,Xe=>this._diffModel.get().ensureModifiedLineIsVisible(Xe,2,void 0),this._options))}}return{origViewZones:B,modViewZones:F}});let h={description:"unchanged lines",className:"diff-unchanged-lines",isWholeLine:!0},b={description:"Fold Unchanged",glyphMarginHoverMessage:new Hx(void 0,{isTrusted:!0,supportThemeIcons:!0}).appendMarkdown(ce("foldUnchanged","Fold Unchanged Region")),glyphMarginClassName:"fold-unchanged "+sl.asClassName(_s.fold),zIndex:10001};this._register(iJe(this._editors.original,Ru(this,w=>{let N=d.read(w),L=N.map(B=>({range:B.originalUnchangedRange.toInclusiveRange(),options:h}));for(let B of N)B.shouldHideControls(w)&&L.push({range:Zt.fromPositions(new qn(B.originalLineNumber,1)),options:b});return L}))),this._register(iJe(this._editors.modified,Ru(this,w=>{let N=d.read(w),L=N.map(B=>({range:B.modifiedUnchangedRange.toInclusiveRange(),options:h}));for(let B of N)B.shouldHideControls(w)&&L.push({range:Rd.ofLength(B.modifiedLineNumber,1).toInclusiveRange(),options:b});return L}))),this._register(ad(w=>{let N=d.read(w);this._isUpdatingHiddenAreas=!0;try{this._editors.original.setHiddenAreas(N.map(L=>L.getHiddenOriginalRange(w).toInclusiveRange()).filter(vR)),this._editors.modified.setHiddenAreas(N.map(L=>L.getHiddenModifiedRange(w).toInclusiveRange()).filter(vR))}finally{this._isUpdatingHiddenAreas=!1}})),this._register(this._editors.modified.onMouseUp(w=>{var N;if(!w.event.rightButton&&w.target.position&&(!((N=w.target.element)===null||N===void 0)&&N.className.includes("fold-unchanged"))){let L=w.target.position.lineNumber,B=this._diffModel.get();if(!B)return;let F=B.unchangedRegions.get().find(Y=>Y.modifiedUnchangedRange.includes(L));if(!F)return;F.collapseAll(void 0),w.event.stopPropagation(),w.event.preventDefault()}})),this._register(this._editors.original.onMouseUp(w=>{var N;if(!w.event.rightButton&&w.target.position&&(!((N=w.target.element)===null||N===void 0)&&N.className.includes("fold-unchanged"))){let L=w.target.position.lineNumber,B=this._diffModel.get();if(!B)return;let F=B.unchangedRegions.get().find(Y=>Y.originalUnchangedRange.includes(L));if(!F)return;F.collapseAll(void 0),w.event.stopPropagation(),w.event.preventDefault()}}))}};qLe._breadcrumbsSourceFactory=Jf("breadcrumbsSourceFactory",void 0);qLe=fci=iHi([nHi(3,Pa)],qLe);X8t=class extends tJe{constructor(e,r,o,c,d,h,b,w){let N=qp("div.diff-hidden-lines-widget");super(e,r,N.root),this._editor=e,this._unchangedRegion=o,this._unchangedRegionRange=c,this._hide=d,this._modifiedOutlineSource=h,this._revealModifiedHiddenLine=b,this._options=w,this._nodes=qp("div.diff-hidden-lines",[qp("div.top@top",{title:ce("diff.hiddenLines.top","Click or drag to show more above")}),qp("div.center@content",{style:{display:"flex"}},[qp("div@first",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexShrink:"0"}},[qo("a",{title:ce("showUnchangedRegion","Show Unchanged Region"),role:"button",onclick:()=>{this._unchangedRegion.showAll(void 0)}},...PB("$(unfold)"))]),qp("div@others",{style:{display:"flex",justifyContent:"center",alignItems:"center"}})]),qp("div.bottom@bottom",{title:ce("diff.bottom","Click or drag to show more below"),role:"button"})]),N.root.appendChild(this._nodes.root);let L=$p(this._editor.onDidLayoutChange,()=>this._editor.getLayoutInfo());this._hide?IS(this._nodes.first):this._register(JV(this._nodes.first,{width:L.map(F=>F.contentLeft)})),this._register(ad(F=>{let Y=this._unchangedRegion.visibleLineCountTop.read(F)+this._unchangedRegion.visibleLineCountBottom.read(F)===this._unchangedRegion.lineCount;this._nodes.bottom.classList.toggle("canMoveTop",!Y),this._nodes.bottom.classList.toggle("canMoveBottom",this._unchangedRegion.visibleLineCountBottom.read(F)>0),this._nodes.top.classList.toggle("canMoveTop",this._unchangedRegion.visibleLineCountTop.read(F)>0),this._nodes.top.classList.toggle("canMoveBottom",!Y);let Z=this._unchangedRegion.isDragged.read(F),ee=this._editor.getDomNode();ee&&(ee.classList.toggle("draggingUnchangedRegion",!!Z),Z==="top"?(ee.classList.toggle("canMoveTop",this._unchangedRegion.visibleLineCountTop.read(F)>0),ee.classList.toggle("canMoveBottom",!Y)):Z==="bottom"?(ee.classList.toggle("canMoveTop",!Y),ee.classList.toggle("canMoveBottom",this._unchangedRegion.visibleLineCountBottom.read(F)>0)):(ee.classList.toggle("canMoveTop",!1),ee.classList.toggle("canMoveBottom",!1)))}));let B=this._editor;this._register(Jr(this._nodes.top,"mousedown",F=>{if(F.button!==0)return;this._nodes.top.classList.toggle("dragging",!0),this._nodes.root.classList.toggle("dragging",!0),F.preventDefault();let Y=F.clientY,Z=!1,ee=this._unchangedRegion.visibleLineCountTop.get();this._unchangedRegion.isDragged.set("top",void 0);let Te=Gc(this._nodes.top),Je=Jr(Te,"mousemove",ct=>{let Nt=ct.clientY-Y;Z=Z||Math.abs(Nt)>2;let Yt=Math.round(Nt/B.getOption(67)),jt=Math.max(0,Math.min(ee+Yt,this._unchangedRegion.getMaxVisibleLineCountTop()));this._unchangedRegion.visibleLineCountTop.set(jt,void 0)}),Xe=Jr(Te,"mouseup",ct=>{Z||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),Je.dispose(),Xe.dispose()})})),this._register(Jr(this._nodes.bottom,"mousedown",F=>{if(F.button!==0)return;this._nodes.bottom.classList.toggle("dragging",!0),this._nodes.root.classList.toggle("dragging",!0),F.preventDefault();let Y=F.clientY,Z=!1,ee=this._unchangedRegion.visibleLineCountBottom.get();this._unchangedRegion.isDragged.set("bottom",void 0);let Te=Gc(this._nodes.bottom),Je=Jr(Te,"mousemove",ct=>{let Nt=ct.clientY-Y;Z=Z||Math.abs(Nt)>2;let Yt=Math.round(Nt/B.getOption(67)),jt=Math.max(0,Math.min(ee-Yt,this._unchangedRegion.getMaxVisibleLineCountBottom())),mi=this._unchangedRegionRange.endLineNumberExclusive>B.getModel().getLineCount()?B.getContentHeight():B.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);this._unchangedRegion.visibleLineCountBottom.set(jt,void 0);let _n=this._unchangedRegionRange.endLineNumberExclusive>B.getModel().getLineCount()?B.getContentHeight():B.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);B.setScrollTop(B.getScrollTop()+(_n-mi))}),Xe=Jr(Te,"mouseup",ct=>{if(this._unchangedRegion.isDragged.set(void 0,void 0),!Z){let Ct=B.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);this._unchangedRegion.showMoreBelow(this._options.hideUnchangedRegionsRevealLineCount.get(),void 0);let Nt=B.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);B.setScrollTop(B.getScrollTop()+(Nt-Ct))}this._nodes.bottom.classList.toggle("dragging",!1),this._nodes.root.classList.toggle("dragging",!1),Je.dispose(),Xe.dispose()})})),this._register(ad(F=>{let Y=[];if(!this._hide){let Z=o.getHiddenModifiedRange(F).length,ee=ce("hiddenLines","{0} hidden lines",Z),Te=qo("span",{title:ce("diff.hiddenLines.expandAll","Double click to unfold")},ee);Te.addEventListener("dblclick",ct=>{ct.button===0&&(ct.preventDefault(),this._unchangedRegion.showAll(void 0))}),Y.push(Te);let Je=this._unchangedRegion.getHiddenModifiedRange(F),Xe=this._modifiedOutlineSource.getBreadcrumbItems(Je,F);if(Xe.length>0){Y.push(qo("span",void 0,"\xA0\xA0|\xA0\xA0"));for(let ct=0;ct{this._revealModifiedHiddenLine(Ct.startLineNumber)}}}}IS(this._nodes.others,...Y)}))}}});var rHi,oHi,_$,p_e,pci=ti(()=>{nc();SE();uPt();co();xv();qV();Iu();iii();q1();x0();rHi=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},oHi=function(l,e){return function(r,o){e(r,o,l)}},p_e=_$=class extends tn{constructor(e,r,o,c,d,h,b){super(),this._editors=e,this._rootElement=r,this._diffModel=o,this._rootWidth=c,this._rootHeight=d,this._modifiedEditorLayoutInfo=h,this._themeService=b,this.width=_$.ENTIRE_DIFF_OVERVIEW_WIDTH;let w=$p(this._themeService.onDidColorThemeChange,()=>this._themeService.getColorTheme()),N=Ru(F=>{let Y=w.read(F),Z=Y.getColor(S1i)||(Y.getColor(v1i)||RAt).transparent(2),ee=Y.getColor(x1i)||(Y.getColor(b1i)||BAt).transparent(2);return{insertColor:Z,removeColor:ee}}),L=V_(document.createElement("div"));L.setClassName("diffViewport"),L.setPosition("absolute");let B=qp("div.diffOverview",{style:{position:"absolute",top:"0px",width:_$.ENTIRE_DIFF_OVERVIEW_WIDTH+"px"}}).root;this._register(VLe(B,L.domNode)),this._register(qh(B,ls.POINTER_DOWN,F=>{this._editors.modified.delegateVerticalScrollbarPointerDown(F)})),this._register(Jr(B,ls.MOUSE_WHEEL,F=>{this._editors.modified.delegateScrollFromMouseWheelEvent(F)},{passive:!1})),this._register(VLe(this._rootElement,B)),this._register(LT((F,Y)=>{let Z=this._diffModel.read(F),ee=this._editors.original.createOverviewRuler("original diffOverviewRuler");ee&&(Y.add(ee),Y.add(VLe(B,ee.getDomNode())));let Te=this._editors.modified.createOverviewRuler("modified diffOverviewRuler");if(Te&&(Y.add(Te),Y.add(VLe(B,Te.getDomNode()))),!ee||!Te)return;let Je=iw("viewZoneChanged",this._editors.original.onDidChangeViewZones),Xe=iw("viewZoneChanged",this._editors.modified.onDidChangeViewZones),ct=iw("hiddenRangesChanged",this._editors.original.onDidChangeHiddenAreas),Ct=iw("hiddenRangesChanged",this._editors.modified.onDidChangeHiddenAreas);Y.add(ad(Nt=>{var Yt;Je.read(Nt),Xe.read(Nt),ct.read(Nt),Ct.read(Nt);let jt=N.read(Nt),mi=(Yt=Z?.diff.read(Nt))===null||Yt===void 0?void 0:Yt.mappings;function _n(Rr,Tn,Qn){let ks=Qn._getViewModel();return ks?Rr.filter(La=>La.length>0).map(La=>{let $i=ks.coordinatesConverter.convertModelPositionToViewPosition(new qn(La.startLineNumber,1)),Dl=ks.coordinatesConverter.convertModelPositionToViewPosition(new qn(La.endLineNumberExclusive,1)),$s=Dl.lineNumber-$i.lineNumber;return new Wdt($i.lineNumber,Dl.lineNumber,$s,Tn.toString())}):[]}let Pr=_n((mi||[]).map(Rr=>Rr.lineRangeMapping.original),jt.removeColor,this._editors.original),dr=_n((mi||[]).map(Rr=>Rr.lineRangeMapping.modified),jt.insertColor,this._editors.modified);ee?.setZones(Pr),Te?.setZones(dr)})),Y.add(ad(Nt=>{let Yt=this._rootHeight.read(Nt),jt=this._rootWidth.read(Nt),mi=this._modifiedEditorLayoutInfo.read(Nt);if(mi){let _n=_$.ENTIRE_DIFF_OVERVIEW_WIDTH-2*_$.ONE_OVERVIEW_WIDTH;ee.setLayout({top:0,height:Yt,right:_n+_$.ONE_OVERVIEW_WIDTH,width:_$.ONE_OVERVIEW_WIDTH}),Te.setLayout({top:0,height:Yt,right:0,width:_$.ONE_OVERVIEW_WIDTH});let Pr=this._editors.modifiedScrollTop.read(Nt),dr=this._editors.modifiedScrollHeight.read(Nt),Rr=this._editors.modified.getOption(103),Tn=new NSe(Rr.verticalHasArrows?Rr.arrowSize:0,Rr.verticalScrollbarSize,0,mi.height,dr,Pr);L.setTop(Tn.getSliderPosition()),L.setHeight(Tn.getSliderSize())}else L.setTop(0),L.setHeight(0);B.style.height=Yt+"px",B.style.left=jt-_$.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",L.setWidth(_$.ENTIRE_DIFF_OVERVIEW_WIDTH)}))}))}};p_e.ONE_OVERVIEW_WIDTH=15;p_e.ENTIRE_DIFF_OVERVIEW_WIDTH=_$.ONE_OVERVIEW_WIDTH*2;p_e=_$=rHi([oHi(6,Hg)],p_e)});var mci,Y8t,ept,mDi=ti(()=>{nc();qfe();uy();co();xv();qO();Xa();Hne();MD();ya();mci=[],Y8t=class extends tn{constructor(e,r,o,c){super(),this._editors=e,this._diffModel=r,this._options=o,this._widget=c,this._selectedDiffs=Ru(this,d=>{let h=this._diffModel.read(d),b=h?.diff.read(d);if(!b)return mci;let w=this._editors.modifiedSelections.read(d);if(w.every(F=>F.isEmpty()))return mci;let N=new xV(w.map(F=>Rd.fromRangeInclusive(F))),B=b.mappings.filter(F=>F.lineRangeMapping.innerChanges&&N.intersects(F.lineRangeMapping.modified)).map(F=>({mapping:F,rangeMappings:F.lineRangeMapping.innerChanges.filter(Y=>w.some(Z=>Zt.areIntersecting(Y.modifiedRange,Z)))}));return B.length===0||B.every(F=>F.rangeMappings.length===0)?mci:B}),this._register(LT((d,h)=>{if(!this._options.shouldRenderOldRevertArrows.read(d))return;let b=this._diffModel.read(d),w=b?.diff.read(d);if(!b||!w||b.movedTextToCompare.read(d))return;let N=[],L=this._selectedDiffs.read(d),B=new Set(L.map(F=>F.mapping));if(L.length>0){let F=this._editors.modifiedSelections.read(d),Y=h.add(new ept(F[F.length-1].positionLineNumber,this._widget,L.flatMap(Z=>Z.rangeMappings),!0));this._editors.modified.addGlyphMarginWidget(Y),N.push(Y)}for(let F of w.mappings)if(!B.has(F)&&!F.lineRangeMapping.modified.isEmpty&&F.lineRangeMapping.innerChanges){let Y=h.add(new ept(F.lineRangeMapping.modified.startLineNumber,this._widget,F.lineRangeMapping,!1));this._editors.modified.addGlyphMarginWidget(Y),N.push(Y)}h.add(Ma(()=>{for(let F of N)this._editors.modified.removeGlyphMarginWidget(F)}))}))}},ept=class l extends tn{getId(){return this._id}constructor(e,r,o,c){super(),this._lineNumber=e,this._widget=r,this._diffs=o,this._revertSelection=c,this._id=`revertButton${l.counter++}`,this._domNode=qp("div.revertButton",{title:this._revertSelection?ce("revertSelectedChanges","Revert Selected Changes"):ce("revertChange","Revert Change")},[xre(_s.arrowRight)]).root,this._register(Jr(this._domNode,ls.MOUSE_DOWN,d=>{d.button!==2&&(d.stopPropagation(),d.preventDefault())})),this._register(Jr(this._domNode,ls.MOUSE_UP,d=>{d.stopPropagation(),d.preventDefault()})),this._register(Jr(this._domNode,ls.CLICK,d=>{this._diffs instanceof s3?this._widget.revert(this._diffs):this._widget.revertRangeMappings(this._diffs),d.stopPropagation(),d.preventDefault()}))}getDomNode(){return this._domNode}getPosition(){return{lane:n7.Right,range:{startColumn:1,startLineNumber:this._lineNumber,endColumn:1,endLineNumber:this._lineNumber},zIndex:10001}}};ept.counter=0});function Gre(l,e,r){let o=l.bindTo(e);return cxe({debugName:()=>`Set Context Key "${l.key}"`},c=>{o.set(r(c))})}var hDi=ti(()=>{xv()});function gDi(l){return Q8t.get(l)}var Q8t,yDi=ti(()=>{xv();Q8t=class l{static get(e){let r=l._map.get(e);if(!r){r=new l(e),l._map.set(e,r);let o=e.onDidDispose(()=>{l._map.delete(e),o.dispose()})}return r}constructor(e){this.editor=e,this.model=$p(this.editor.onDidChangeModel,()=>this.editor.getModel())}};Q8t._map=new Map});var sHi,vDi,Z8t,bDi=ti(()=>{xc();co();xv();yDi();pci();TT();Iu();ya();bl();f1();sHi=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},vDi=function(l,e){return function(r,o){e(r,o,l)}},Z8t=class extends tn{get onDidContentSizeChange(){return this._onDidContentSizeChange.event}constructor(e,r,o,c,d,h,b){super(),this.originalEditorElement=e,this.modifiedEditorElement=r,this._options=o,this._argCodeEditorWidgetOptions=c,this._createInnerEditor=d,this._instantiationService=h,this._keybindingService=b,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 wn),this.modifiedScrollTop=$p(this.modified.onDidScrollChange,()=>this.modified.getScrollTop()),this.modifiedScrollHeight=$p(this.modified.onDidScrollChange,()=>this.modified.getScrollHeight()),this.modifiedModel=gDi(this.modified).model,this.modifiedSelections=$p(this.modified.onDidChangeCursorSelection,()=>{var w;return(w=this.modified.getSelections())!==null&&w!==void 0?w:[]}),this.modifiedCursor=RB({owner:this,equalsFn:qn.equals},w=>{var N,L;return(L=(N=this.modifiedSelections.read(w)[0])===null||N===void 0?void 0:N.getPosition())!==null&&L!==void 0?L:new qn(1,1)}),this.originalCursor=$p(this.original.onDidChangeCursorPosition,()=>{var w;return(w=this.original.getPosition())!==null&&w!==void 0?w:new qn(1,1)}),this._argCodeEditorWidgetOptions=null,this._register(Lre({createEmptyChangeSummary:()=>({}),handleChange:(w,N)=>(w.didChange(o.editorOptions)&&Object.assign(N,w.change.changedOptions),!0)},(w,N)=>{o.editorOptions.read(w),this._options.renderSideBySide.read(w),this.modified.updateOptions(this._adjustOptionsForRightHandSide(w,N)),this.original.updateOptions(this._adjustOptionsForLeftHandSide(w,N))}))}_createLeftHandSideEditor(e,r){let o=this._adjustOptionsForLeftHandSide(void 0,e),c=this._constructInnerEditor(this._instantiationService,this.originalEditorElement,o,r);return c.setContextValue("isInDiffLeftEditor",!0),c}_createRightHandSideEditor(e,r){let o=this._adjustOptionsForRightHandSide(void 0,e),c=this._constructInnerEditor(this._instantiationService,this.modifiedEditorElement,o,r);return c.setContextValue("isInDiffRightEditor",!0),c}_constructInnerEditor(e,r,o,c){let d=this._createInnerEditor(e,r,o,c);return this._register(d.onDidContentSizeChange(h=>{let b=this.original.getContentWidth()+this.modified.getContentWidth()+p_e.ENTIRE_DIFF_OVERVIEW_WIDTH,w=Math.max(this.modified.getContentHeight(),this.original.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:w,contentWidth:b,contentHeightChanged:h.contentHeightChanged,contentWidthChanged:h.contentWidthChanged})})),d}_adjustOptionsForLeftHandSide(e,r){let o=this._adjustOptionsForSubEditor(r);return this._options.renderSideBySide.get()?(o.unicodeHighlight=this._options.editorOptions.get().unicodeHighlight||{},o.wordWrapOverride1=this._options.diffWordWrap.get()):(o.wordWrapOverride1="off",o.wordWrapOverride2="off",o.stickyScroll={enabled:!1},o.unicodeHighlight={nonBasicASCII:!1,ambiguousCharacters:!1,invisibleCharacters:!1}),o.glyphMargin=this._options.renderSideBySide.get(),r.originalAriaLabel&&(o.ariaLabel=r.originalAriaLabel),o.ariaLabel=this._updateAriaLabel(o.ariaLabel),o.readOnly=!this._options.originalEditable.get(),o.dropIntoEditor={enabled:!o.readOnly},o.extraEditorClassName="original-in-monaco-diff-editor",o}_adjustOptionsForRightHandSide(e,r){let o=this._adjustOptionsForSubEditor(r);return r.modifiedAriaLabel&&(o.ariaLabel=r.modifiedAriaLabel),o.ariaLabel=this._updateAriaLabel(o.ariaLabel),o.wordWrapOverride1=this._options.diffWordWrap.get(),o.revealHorizontalRightPadding=XF.revealHorizontalRightPadding.defaultValue+p_e.ENTIRE_DIFF_OVERVIEW_WIDTH,o.scrollbar.verticalHasArrows=!1,o.extraEditorClassName="modified-in-monaco-diff-editor",o}_adjustOptionsForSubEditor(e){let r={...e,dimension:{height:0,width:0}};return r.inDiffEditor=!0,r.automaticLayout=!1,r.scrollbar={...r.scrollbar||{}},r.folding=!1,r.codeLens=this._options.diffCodeLens.get(),r.fixedOverflowWidgets=!0,r.minimap={...r.minimap||{}},r.minimap.enabled=!1,this._options.hideUnchangedRegions.get()?r.stickyScroll={enabled:!1}:r.stickyScroll=this._options.editorOptions.get().stickyScroll,r}_updateAriaLabel(e){var r;e||(e="");let o=ce("diff-aria-navigation-tip"," use {0} to open the accessibility help.",(r=this._keybindingService.lookupKeybinding("editor.action.accessibilityHelp"))===null||r===void 0?void 0:r.getAriaLabel());return this._options.accessibilityVerbose.get()?e+o:e?e.replaceAll(o,""):""}};Z8t=sHi([vDi(5,Pa),vDi(6,Jd)],Z8t)});var tpt,SDi=ti(()=>{xc();co();tpt=class l extends tn{constructor(){super(...arguments),this._id=++l.idCounter,this._onDidDispose=this._register(new wn),this.onDidDispose=this._onDidDispose.event}getId(){return this.getEditorType()+":v2:"+this._id}getVisibleColumnFromPosition(e){return this._targetEditor.getVisibleColumnFromPosition(e)}getPosition(){return this._targetEditor.getPosition()}setPosition(e,r="api"){this._targetEditor.setPosition(e,r)}revealLine(e,r=0){this._targetEditor.revealLine(e,r)}revealLineInCenter(e,r=0){this._targetEditor.revealLineInCenter(e,r)}revealLineInCenterIfOutsideViewport(e,r=0){this._targetEditor.revealLineInCenterIfOutsideViewport(e,r)}revealLineNearTop(e,r=0){this._targetEditor.revealLineNearTop(e,r)}revealPosition(e,r=0){this._targetEditor.revealPosition(e,r)}revealPositionInCenter(e,r=0){this._targetEditor.revealPositionInCenter(e,r)}revealPositionInCenterIfOutsideViewport(e,r=0){this._targetEditor.revealPositionInCenterIfOutsideViewport(e,r)}revealPositionNearTop(e,r=0){this._targetEditor.revealPositionNearTop(e,r)}getSelection(){return this._targetEditor.getSelection()}getSelections(){return this._targetEditor.getSelections()}setSelection(e,r="api"){this._targetEditor.setSelection(e,r)}setSelections(e,r="api"){this._targetEditor.setSelections(e,r)}revealLines(e,r,o=0){this._targetEditor.revealLines(e,r,o)}revealLinesInCenter(e,r,o=0){this._targetEditor.revealLinesInCenter(e,r,o)}revealLinesInCenterIfOutsideViewport(e,r,o=0){this._targetEditor.revealLinesInCenterIfOutsideViewport(e,r,o)}revealLinesNearTop(e,r,o=0){this._targetEditor.revealLinesNearTop(e,r,o)}revealRange(e,r=0,o=!1,c=!0){this._targetEditor.revealRange(e,r,o,c)}revealRangeInCenter(e,r=0){this._targetEditor.revealRangeInCenter(e,r)}revealRangeInCenterIfOutsideViewport(e,r=0){this._targetEditor.revealRangeInCenterIfOutsideViewport(e,r)}revealRangeNearTop(e,r=0){this._targetEditor.revealRangeNearTop(e,r)}revealRangeNearTopIfOutsideViewport(e,r=0){this._targetEditor.revealRangeNearTopIfOutsideViewport(e,r)}revealRangeAtTop(e,r=0){this._targetEditor.revealRangeAtTop(e,r)}getSupportedActions(){return this._targetEditor.getSupportedActions()}focus(){this._targetEditor.focus()}trigger(e,r,o){this._targetEditor.trigger(e,r,o)}createDecorationsCollection(e){return this._targetEditor.createDecorationsCollection(e)}changeDecorations(e){return this._targetEditor.changeDecorations(e)}};tpt.idCounter=0});function xDi(l,e){var r,o,c,d,h,b,w,N;return{enableSplitViewResizing:gu(l.enableSplitViewResizing,e.enableSplitViewResizing),splitViewDefaultRatio:xgi(l.splitViewDefaultRatio,.5,.1,.9),renderSideBySide:gu(l.renderSideBySide,e.renderSideBySide),renderMarginRevertIcon:gu(l.renderMarginRevertIcon,e.renderMarginRevertIcon),maxComputationTime:Mbe(l.maxComputationTime,e.maxComputationTime,0,1073741824),maxFileSize:Mbe(l.maxFileSize,e.maxFileSize,0,1073741824),ignoreTrimWhitespace:gu(l.ignoreTrimWhitespace,e.ignoreTrimWhitespace),renderIndicators:gu(l.renderIndicators,e.renderIndicators),originalEditable:gu(l.originalEditable,e.originalEditable),diffCodeLens:gu(l.diffCodeLens,e.diffCodeLens),renderOverviewRuler:gu(l.renderOverviewRuler,e.renderOverviewRuler),diffWordWrap:EC(l.diffWordWrap,e.diffWordWrap,["off","on","inherit"]),diffAlgorithm:EC(l.diffAlgorithm,e.diffAlgorithm,["legacy","advanced"],{smart:"legacy",experimental:"advanced"}),accessibilityVerbose:gu(l.accessibilityVerbose,e.accessibilityVerbose),experimental:{showMoves:gu((r=l.experimental)===null||r===void 0?void 0:r.showMoves,e.experimental.showMoves),showEmptyDecorations:gu((o=l.experimental)===null||o===void 0?void 0:o.showEmptyDecorations,e.experimental.showEmptyDecorations)},hideUnchangedRegions:{enabled:gu((d=(c=l.hideUnchangedRegions)===null||c===void 0?void 0:c.enabled)!==null&&d!==void 0?d:(h=l.experimental)===null||h===void 0?void 0:h.collapseUnchangedRegions,e.hideUnchangedRegions.enabled),contextLineCount:Mbe((b=l.hideUnchangedRegions)===null||b===void 0?void 0:b.contextLineCount,e.hideUnchangedRegions.contextLineCount,0,1073741824),minimumLineCount:Mbe((w=l.hideUnchangedRegions)===null||w===void 0?void 0:w.minimumLineCount,e.hideUnchangedRegions.minimumLineCount,0,1073741824),revealLineCount:Mbe((N=l.hideUnchangedRegions)===null||N===void 0?void 0:N.revealLineCount,e.hideUnchangedRegions.revealLineCount,0,1073741824)},isInEmbeddedEditor:gu(l.isInEmbeddedEditor,e.isInEmbeddedEditor),onlyShowAccessibleDiffViewer:gu(l.onlyShowAccessibleDiffViewer,e.onlyShowAccessibleDiffViewer),renderSideBySideInlineBreakpoint:Mbe(l.renderSideBySideInlineBreakpoint,e.renderSideBySideInlineBreakpoint,0,1073741824),useInlineViewWhenSpaceIsLimited:gu(l.useInlineViewWhenSpaceIsLimited,e.useInlineViewWhenSpaceIsLimited),renderGutterMenu:gu(l.renderGutterMenu,e.renderGutterMenu)}}var aHi,cHi,eFt,CDi=ti(()=>{xv();Fri();TT();KO();aHi=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},cHi=function(l,e){return function(r,o){e(r,o,l)}},eFt=class{get editorOptions(){return this._options}constructor(e,r){this._accessibilityService=r,this._diffEditorWidth=Jf(this,0),this._screenReaderMode=$p(this._accessibilityService.onDidChangeScreenReaderOptimized,()=>this._accessibilityService.isScreenReaderOptimized()),this.couldShowInlineViewBecauseOfSize=Ru(this,c=>this._options.read(c).renderSideBySide&&this._diffEditorWidth.read(c)<=this._options.read(c).renderSideBySideInlineBreakpoint),this.renderOverviewRuler=Ru(this,c=>this._options.read(c).renderOverviewRuler),this.renderSideBySide=Ru(this,c=>this._options.read(c).renderSideBySide&&!(this._options.read(c).useInlineViewWhenSpaceIsLimited&&this.couldShowInlineViewBecauseOfSize.read(c)&&!this._screenReaderMode.read(c))),this.readOnly=Ru(this,c=>this._options.read(c).readOnly),this.shouldRenderOldRevertArrows=Ru(this,c=>!(!this._options.read(c).renderMarginRevertIcon||!this.renderSideBySide.read(c)||this.readOnly.read(c)||this.shouldRenderGutterMenu.read(c))),this.shouldRenderGutterMenu=Ru(this,c=>this._options.read(c).renderGutterMenu),this.renderIndicators=Ru(this,c=>this._options.read(c).renderIndicators),this.enableSplitViewResizing=Ru(this,c=>this._options.read(c).enableSplitViewResizing),this.splitViewDefaultRatio=Ru(this,c=>this._options.read(c).splitViewDefaultRatio),this.ignoreTrimWhitespace=Ru(this,c=>this._options.read(c).ignoreTrimWhitespace),this.maxComputationTimeMs=Ru(this,c=>this._options.read(c).maxComputationTime),this.showMoves=Ru(this,c=>this._options.read(c).experimental.showMoves&&this.renderSideBySide.read(c)),this.isInEmbeddedEditor=Ru(this,c=>this._options.read(c).isInEmbeddedEditor),this.diffWordWrap=Ru(this,c=>this._options.read(c).diffWordWrap),this.originalEditable=Ru(this,c=>this._options.read(c).originalEditable),this.diffCodeLens=Ru(this,c=>this._options.read(c).diffCodeLens),this.accessibilityVerbose=Ru(this,c=>this._options.read(c).accessibilityVerbose),this.diffAlgorithm=Ru(this,c=>this._options.read(c).diffAlgorithm),this.showEmptyDecorations=Ru(this,c=>this._options.read(c).experimental.showEmptyDecorations),this.onlyShowAccessibleDiffViewer=Ru(this,c=>this._options.read(c).onlyShowAccessibleDiffViewer),this.hideUnchangedRegions=Ru(this,c=>this._options.read(c).hideUnchangedRegions.enabled),this.hideUnchangedRegionsRevealLineCount=Ru(this,c=>this._options.read(c).hideUnchangedRegions.revealLineCount),this.hideUnchangedRegionsContextLineCount=Ru(this,c=>this._options.read(c).hideUnchangedRegions.contextLineCount),this.hideUnchangedRegionsMinimumLineCount=Ru(this,c=>this._options.read(c).hideUnchangedRegions.minimumLineCount);let o={...e,...xDi(e,CA)};this._options=Jf(this,o)}updateOptions(e){let r=xDi(e,this._options.get()),o={...this._options.get(),...e,...r};this._options.set(o,void 0,{changedOptions:e})}setWidth(e){this._diffEditorWidth.set(e,void 0)}};eFt=aHi([cHi(1,ck)],eFt)});function uHi(l){return l.mappings.map(e=>{let r=e.lineRangeMapping,o,c,d,h,b=r.innerChanges;return r.original.isEmpty?(o=r.original.startLineNumber-1,c=0,b=void 0):(o=r.original.startLineNumber,c=r.original.endLineNumberExclusive-1),r.modified.isEmpty?(d=r.modified.startLineNumber-1,h=0,b=void 0):(d=r.modified.startLineNumber,h=r.modified.endLineNumberExclusive-1),{originalStartLineNumber:o,originalEndLineNumber:c,modifiedStartLineNumber:d,modifiedEndLineNumber:h,charChanges:b?.map(w=>({originalStartLineNumber:w.originalRange.startLineNumber,originalStartColumn:w.originalRange.startColumn,originalEndLineNumber:w.originalRange.endLineNumber,originalEndColumn:w.originalRange.endColumn,modifiedStartLineNumber:w.modifiedRange.startLineNumber,modifiedStartColumn:w.modifiedRange.startColumn,modifiedEndLineNumber:w.modifiedRange.endLineNumber,modifiedEndColumn:w.modifiedRange.endColumn}))}})}var lHi,ipt,p$,tFt=ti(()=>{nc();PR();Du();xc();co();xv();axe();jEi();vf();IC();zLe();wft();JEi();XEi();nci();aDi();pDi();_ci();Xai();pci();mDi();qV();hDi();Iu();Xa();rdt();$h();Sxe();hd();bl();XHe();u$();bDi();SDi();CDi();aci();lHi=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},ipt=function(l,e){return function(r,o){e(r,o,l)}},p$=class extends tpt{get onDidContentSizeChange(){return this._editors.onDidContentSizeChange}constructor(e,r,o,c,d,h,b,w){var N;super(),this._domElement=e,this._parentContextKeyService=c,this._parentInstantiationService=d,this._accessibilitySignalService=b,this._editorProgressService=w,this.elements=qp("div.monaco-diff-editor.side-by-side",{style:{position:"relative",height:"100%"}},[qp("div.editor.original@original",{style:{position:"absolute",height:"100%"}}),qp("div.editor.modified@modified",{style:{position:"absolute",height:"100%"}}),qp("div.accessibleDiffViewer@accessibleDiffViewer",{style:{position:"absolute",height:"100%"}})]),this._diffModel=Jf(this,void 0),this._shouldDisposeDiffModel=!1,this.onDidChangeModel=gs.fromObservableLight(this._diffModel),this._contextKeyService=this._register(this._parentContextKeyService.createScoped(this._domElement)),this._instantiationService=this._register(this._parentInstantiationService.createChild(new c$([Ec,this._contextKeyService]))),this._boundarySashes=Jf(this,void 0),this._accessibleDiffViewerShouldBeVisible=Jf(this,!1),this._accessibleDiffViewerVisible=Ru(this,Nt=>this._options.onlyShowAccessibleDiffViewer.read(Nt)?!0:this._accessibleDiffViewerShouldBeVisible.read(Nt)),this._movedBlocksLinesPart=Jf(this,void 0),this._layoutInfo=Ru(this,Nt=>{var Yt,jt,mi,_n,Pr;let dr=this._rootSizeObserver.width.read(Nt),Rr=this._rootSizeObserver.height.read(Nt);this._rootSizeObserver.automaticLayout?this.elements.root.style.height="100%":this.elements.root.style.height=Rr+"px";let Tn=this._sash.read(Nt),Qn=this._gutter.read(Nt),ks=(Yt=Qn?.width.read(Nt))!==null&&Yt!==void 0?Yt:0,La=(mi=(jt=this._overviewRulerPart.read(Nt))===null||jt===void 0?void 0:jt.width)!==null&&mi!==void 0?mi:0,$i,Dl,$s,cr,za;if(!!Tn){let Ya=Tn.sashLeft.read(Nt),Xl=(Pr=(_n=this._movedBlocksLinesPart.read(Nt))===null||_n===void 0?void 0:_n.width.read(Nt))!==null&&Pr!==void 0?Pr:0;$i=0,Dl=Ya-ks-Xl,za=Ya-ks,$s=Ya,cr=dr-$s-La}else za=0,$i=ks,Dl=Math.max(5,this._editors.original.getLayoutInfo().decorationsLeft),$s=ks+Dl,cr=dr-$s-La;return this.elements.original.style.left=$i+"px",this.elements.original.style.width=Dl+"px",this._editors.original.layout({width:Dl,height:Rr},!0),Qn?.layout(za),this.elements.modified.style.left=$s+"px",this.elements.modified.style.width=cr+"px",this._editors.modified.layout({width:cr,height:Rr},!0),{modifiedEditor:this._editors.modified.getLayoutInfo(),originalEditor:this._editors.original.getLayoutInfo()}}),this._diffValue=this._diffModel.map((Nt,Yt)=>Nt?.diff.read(Yt)),this.onDidUpdateDiff=gs.fromObservableLight(this._diffValue),h.willCreateDiffEditor(),this._contextKeyService.createKey("isInDiffEditor",!0),this._domElement.appendChild(this.elements.root),this._register(Ma(()=>this._domElement.removeChild(this.elements.root))),this._rootSizeObserver=this._register(new eJe(this.elements.root,r.dimension)),this._rootSizeObserver.setAutomaticLayout((N=r.automaticLayout)!==null&&N!==void 0?N:!1),this._options=this._instantiationService.createInstance(eFt,r),this._register(ad(Nt=>{this._options.setWidth(this._rootSizeObserver.width.read(Nt))})),this._contextKeyService.createKey(Qi.isEmbeddedDiffEditor.key,!1),this._register(Gre(Qi.isEmbeddedDiffEditor,this._contextKeyService,Nt=>this._options.isInEmbeddedEditor.read(Nt))),this._register(Gre(Qi.comparingMovedCode,this._contextKeyService,Nt=>{var Yt;return!!(!((Yt=this._diffModel.read(Nt))===null||Yt===void 0)&&Yt.movedTextToCompare.read(Nt))})),this._register(Gre(Qi.diffEditorRenderSideBySideInlineBreakpointReached,this._contextKeyService,Nt=>this._options.couldShowInlineViewBecauseOfSize.read(Nt))),this._register(Gre(Qi.diffEditorInlineMode,this._contextKeyService,Nt=>!this._options.renderSideBySide.read(Nt))),this._register(Gre(Qi.hasChanges,this._contextKeyService,Nt=>{var Yt,jt,mi;return((mi=(jt=(Yt=this._diffModel.read(Nt))===null||Yt===void 0?void 0:Yt.diff.read(Nt))===null||jt===void 0?void 0:jt.mappings.length)!==null&&mi!==void 0?mi:0)>0})),this._editors=this._register(this._instantiationService.createInstance(Z8t,this.elements.original,this.elements.modified,this._options,o,(Nt,Yt,jt,mi)=>this._createInnerEditor(Nt,Yt,jt,mi))),this._register(Gre(Qi.diffEditorOriginalWritable,this._contextKeyService,Nt=>this._options.originalEditable.read(Nt))),this._register(Gre(Qi.diffEditorModifiedWritable,this._contextKeyService,Nt=>!this._options.readOnly.read(Nt))),this._register(Gre(Qi.diffEditorOriginalUri,this._contextKeyService,Nt=>{var Yt,jt;return(jt=(Yt=this._diffModel.read(Nt))===null||Yt===void 0?void 0:Yt.model.original.uri.toString())!==null&&jt!==void 0?jt:""})),this._register(Gre(Qi.diffEditorModifiedUri,this._contextKeyService,Nt=>{var Yt,jt;return(jt=(Yt=this._diffModel.read(Nt))===null||Yt===void 0?void 0:Yt.model.modified.uri.toString())!==null&&jt!==void 0?jt:""})),this._overviewRulerPart=jV(this,Nt=>this._options.renderOverviewRuler.read(Nt)?this._instantiationService.createInstance(qR(p_e,Nt),this._editors,this.elements.root,this._diffModel,this._rootSizeObserver.width,this._rootSizeObserver.height,this._layoutInfo.map(Yt=>Yt.modifiedEditor)):void 0).recomputeInitiallyAndOnChange(this._store);let L={height:this._rootSizeObserver.height,width:this._rootSizeObserver.width.map((Nt,Yt)=>{var jt,mi;return Nt-((mi=(jt=this._overviewRulerPart.read(Yt))===null||jt===void 0?void 0:jt.width)!==null&&mi!==void 0?mi:0)})};this._sashLayout=new R8t(this._options,L),this._sash=jV(this,Nt=>{let Yt=this._options.renderSideBySide.read(Nt);return this.elements.root.classList.toggle("side-by-side",Yt),Yt?new rJe(this.elements.root,L,this._options.enableSplitViewResizing,this._boundarySashes,this._sashLayout.sashLeft,()=>this._sashLayout.resetSash()):void 0}).recomputeInitiallyAndOnChange(this._store);let B=jV(this,Nt=>this._instantiationService.createInstance(qR(qLe,Nt),this._editors,this._diffModel,this._options)).recomputeInitiallyAndOnChange(this._store);jV(this,Nt=>this._instantiationService.createInstance(qR(M8t,Nt),this._editors,this._diffModel,this._options,this)).recomputeInitiallyAndOnChange(this._store);let F=new Set,Y=new Set,Z=!1,ee=jV(this,Nt=>this._instantiationService.createInstance(qR(H8t,Nt),Gc(this._domElement),this._editors,this._diffModel,this._options,this,()=>Z||B.get().isUpdatingHiddenAreas,F,Y)).recomputeInitiallyAndOnChange(this._store),Te=Ru(this,Nt=>{let Yt=ee.read(Nt).viewZones.read(Nt).orig,jt=B.read(Nt).viewZones.read(Nt).origViewZones;return Yt.concat(jt)}),Je=Ru(this,Nt=>{let Yt=ee.read(Nt).viewZones.read(Nt).mod,jt=B.read(Nt).viewZones.read(Nt).modViewZones;return Yt.concat(jt)});this._register(nJe(this._editors.original,Te,Nt=>{Z=Nt},F));let Xe;this._register(nJe(this._editors.modified,Je,Nt=>{Z=Nt,Z?Xe=y7.capture(this._editors.modified):(Xe?.restore(this._editors.modified),Xe=void 0)},Y)),this._accessibleDiffViewer=jV(this,Nt=>this._instantiationService.createInstance(qR(f_e,Nt),this.elements.accessibleDiffViewer,this._accessibleDiffViewerVisible,(Yt,jt)=>this._accessibleDiffViewerShouldBeVisible.set(Yt,jt),this._options.onlyShowAccessibleDiffViewer.map(Yt=>!Yt),this._rootSizeObserver.width,this._rootSizeObserver.height,this._diffModel.map((Yt,jt)=>{var mi;return(mi=Yt?.diff.read(jt))===null||mi===void 0?void 0:mi.mappings.map(_n=>_n.lineRangeMapping)}),new O8t(this._editors))).recomputeInitiallyAndOnChange(this._store);let ct=this._accessibleDiffViewerVisible.map(Nt=>Nt?"hidden":"visible");this._register(JV(this.elements.modified,{visibility:ct})),this._register(JV(this.elements.original,{visibility:ct})),this._createDiffEditorContributions(),h.addDiffEditor(this),this._gutter=jV(this,Nt=>this._options.shouldRenderGutterMenu.read(Nt)?this._instantiationService.createInstance(qR(G8t,Nt),this.elements.root,this._diffModel,this._editors,this._options,this._sashLayout,this._boundarySashes):void 0),this._register(Ore(this._layoutInfo)),jV(this,Nt=>new(qR(__e,Nt))(this.elements.root,this._diffModel,this._layoutInfo.map(Yt=>Yt.originalEditor),this._layoutInfo.map(Yt=>Yt.modifiedEditor),this._editors)).recomputeInitiallyAndOnChange(this._store,Nt=>{this._movedBlocksLinesPart.set(Nt,void 0)}),this._register(gs.runAndSubscribe(this._editors.modified.onDidChangeCursorPosition,Nt=>this._handleCursorPositionChange(Nt,!0))),this._register(gs.runAndSubscribe(this._editors.original.onDidChangeCursorPosition,Nt=>this._handleCursorPositionChange(Nt,!1)));let Ct=this._diffModel.map(this,(Nt,Yt)=>{if(Nt)return Nt.diff.read(Yt)===void 0&&!Nt.isDiffUpToDate.read(Yt)});this._register(LT((Nt,Yt)=>{if(Ct.read(Nt)===!0){let jt=this._editorProgressService.show(!0,1e3);Yt.add(Ma(()=>jt.done()))}})),this._register(Ma(()=>{var Nt;this._shouldDisposeDiffModel&&((Nt=this._diffModel.get())===null||Nt===void 0||Nt.dispose())})),this._register(LT((Nt,Yt)=>{Yt.add(new(qR(Y8t,Nt))(this._editors,this._diffModel,this._options,this))}))}_createInnerEditor(e,r,o,c){return e.createInstance(Hfe,r,o,c)}_createDiffEditorContributions(){let e=oSe.getDiffEditorContributions();for(let r of e)try{this._register(this._instantiationService.createInstance(r.ctor,this))}catch(o){dl(o)}}get _targetEditor(){return this._editors.modified}getEditorType(){return Cfe.IDiffEditor}layout(e){this._rootSizeObserver.observe(e)}hasTextFocus(){return this._editors.original.hasTextFocus()||this._editors.modified.hasTextFocus()}saveViewState(){var e;let r=this._editors.original.saveViewState(),o=this._editors.modified.saveViewState();return{original:r,modified:o,modelState:(e=this._diffModel.get())===null||e===void 0?void 0:e.serializeState()}}restoreViewState(e){var r;if(e&&e.original&&e.modified){let o=e;this._editors.original.restoreViewState(o.original),this._editors.modified.restoreViewState(o.modified),o.modelState&&((r=this._diffModel.get())===null||r===void 0||r.restoreSerializedState(o.modelState))}}handleInitialized(){this._editors.original.handleInitialized(),this._editors.modified.handleInitialized()}createViewModel(e){return this._instantiationService.createInstance(j8t,e,this._options)}getModel(){var e,r;return(r=(e=this._diffModel.get())===null||e===void 0?void 0:e.model)!==null&&r!==void 0?r:null}setModel(e,r){!e&&this._diffModel.get()&&this._accessibleDiffViewer.get().close();let o=e?"model"in e?{model:e,shouldDispose:!1}:{model:this.createViewModel(e),shouldDispose:!0}:void 0;this._diffModel.get()!==o?.model&&Are(r,c=>{var d;$p.batchEventsGlobally(c,()=>{this._editors.original.setModel(o?o.model.model.original:null),this._editors.modified.setModel(o?o.model.model.modified:null)});let h=this._diffModel.get(),b=this._shouldDisposeDiffModel;this._shouldDisposeDiffModel=(d=o?.shouldDispose)!==null&&d!==void 0?d:!1,this._diffModel.set(o?.model,c),b&&h?.dispose()})}updateOptions(e){this._options.updateOptions(e)}getContainerDomNode(){return this._domElement}getOriginalEditor(){return this._editors.original}getModifiedEditor(){return this._editors.modified}getLineChanges(){var e;let r=(e=this._diffModel.get())===null||e===void 0?void 0:e.diff.get();return r?uHi(r):null}revert(e){let r=this._diffModel.get();!r||!r.isDiffUpToDate.get()||this._editors.modified.executeEdits("diffEditor",[{range:e.modified.toExclusiveRange(),text:r.model.original.getValueInRange(e.original.toExclusiveRange())}])}revertRangeMappings(e){let r=this._diffModel.get();if(!r||!r.isDiffUpToDate.get())return;let o=e.map(c=>({range:c.modifiedRange,text:r.model.original.getValueInRange(c.originalRange)}));this._editors.modified.executeEdits("diffEditor",o)}_goTo(e){this._editors.modified.setPosition(new qn(e.lineRangeMapping.modified.startLineNumber,1)),this._editors.modified.revealRangeInCenter(e.lineRangeMapping.modified.toExclusiveRange())}goToDiff(e){var r,o,c,d;let h=(o=(r=this._diffModel.get())===null||r===void 0?void 0:r.diff.get())===null||o===void 0?void 0:o.mappings;if(!h||h.length===0)return;let b=this._editors.modified.getPosition().lineNumber,w;e==="next"?w=(c=h.find(N=>N.lineRangeMapping.modified.startLineNumber>b))!==null&&c!==void 0?c:h[0]:w=(d=vfe(h,N=>N.lineRangeMapping.modified.startLineNumber{var r;let o=(r=e.diff.get())===null||r===void 0?void 0:r.mappings;!o||o.length===0||this._goTo(o[0])})}accessibleDiffViewerNext(){this._accessibleDiffViewer.get().next()}accessibleDiffViewerPrev(){this._accessibleDiffViewer.get().prev()}async waitForDiff(){let e=this._diffModel.get();e&&await e.waitForDiff()}mapToOtherSide(){var e,r;let o=this._editors.modified.hasWidgetFocus(),c=o?this._editors.modified:this._editors.original,d=o?this._editors.original:this._editors.modified,h,b=c.getSelection();if(b){let w=(r=(e=this._diffModel.get())===null||e===void 0?void 0:e.diff.get())===null||r===void 0?void 0:r.mappings.map(N=>o?N.lineRangeMapping.flip():N.lineRangeMapping);if(w){let N=jai(b.getStartPosition(),w),L=jai(b.getEndPosition(),w);h=Zt.plusRange(N,L)}}return{destination:d,destinationSelection:h}}switchSide(){let{destination:e,destinationSelection:r}=this.mapToOtherSide();e.focus(),r&&e.setSelection(r)}exitCompareMove(){let e=this._diffModel.get();e&&e.movedTextToCompare.set(void 0,void 0)}collapseAllUnchangedRegions(){var e;let r=(e=this._diffModel.get())===null||e===void 0?void 0:e.unchangedRegions.get();r&&Pm(o=>{for(let c of r)c.collapseAll(o)})}showAllUnchangedRegions(){var e;let r=(e=this._diffModel.get())===null||e===void 0?void 0:e.unchangedRegions.get();r&&Pm(o=>{for(let c of r)c.showAll(o)})}_handleCursorPositionChange(e,r){var o,c;if(e?.reason===3){let d=(c=(o=this._diffModel.get())===null||o===void 0?void 0:o.diff.get())===null||c===void 0?void 0:c.mappings.find(h=>r?h.lineRangeMapping.modified.contains(e.position.lineNumber):h.lineRangeMapping.original.contains(e.position.lineNumber));d?.lineRangeMapping.modified.isEmpty?this._accessibilitySignalService.playSignal(Tf.diffLineDeleted,{source:"diffEditor.cursorPositionChanged"}):d?.lineRangeMapping.original.isEmpty?this._accessibilitySignalService.playSignal(Tf.diffLineInserted,{source:"diffEditor.cursorPositionChanged"}):d&&this._accessibilitySignalService.playSignal(Tf.diffLineModified,{source:"diffEditor.cursorPositionChanged"})}}};p$=lHi([ipt(3,Ec),ipt(4,Pa),ipt(5,nf),ipt(6,JR),ipt(7,WR)],p$)});function fHi(l){if(!l){if(kDi)return;kDi=!0}Hvi(l||em.document.body)}function gci(l,e,r,o,c){if(r=r||"",!o){let d=r.indexOf(` +`),h=r;return d!==-1&&(h=r.substring(0,d)),wDi(l,r,e.createByFilepathOrFirstLine(c||null,h),c)}return wDi(l,r,e.createById(o),c)}function wDi(l,e,r,o){return l.createModel(e,r,o)}var hci,Z1,dHi,kDi,iFt,nFt,rFt,TDi=ti(()=>{gA();co();IC();wft();uii();I8t();jLe();My();W0();_y();hd();u3();bl();f1();xA();x0();KO();Dre();l_e();u$();C6();FD();Wni();SV();ix();wm();tFt();Sxe();S6();JI();Jfe();RV();hci=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},Z1=function(l,e){return function(r,o){e(r,o,l)}},dHi=0,kDi=!1;iFt=class extends Hfe{constructor(e,r,o,c,d,h,b,w,N,L,B,F,Y){let Z={...r};Z.ariaLabel=Z.ariaLabel||Yft.editorViewAccessibleLabel,Z.ariaLabel=Z.ariaLabel+";"+Yft.accessibilityHelpMessage,super(e,Z,{},o,c,d,h,N,L,B,F,Y),w instanceof xxe?this._standaloneKeybindingService=w:this._standaloneKeybindingService=null,fHi(Z.ariaContainerElement),Jwi((ee,Te)=>o.createInstance(Sre,ee,Te,{})),$wi(b)}addCommand(e,r,o){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;let c="DYNAMIC_"+ ++dHi,d=Ao.deserialize(o);return this._standaloneKeybindingService.addDynamicKeybinding(c,e,r,d),c}createContextKey(e,r){return this._contextKeyService.createKey(e,r)}addAction(e){if(typeof e.id!="string"||typeof e.label!="string"||typeof e.run!="function")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"),tn.None;let r=e.id,o=e.label,c=Ao.and(Ao.equals("editorId",this.getId()),Ao.deserialize(e.precondition)),d=e.keybindings,h=Ao.and(c,Ao.deserialize(e.keybindingContext)),b=e.contextMenuGroupId||null,w=e.contextMenuOrder||0,N=(Y,...Z)=>Promise.resolve(e.run(this,...Z)),L=new Fr,B=this.getId()+":"+r;if(L.add(df.registerCommand(B,N)),b){let Y={command:{id:B,title:o},when:c,group:b,order:w};L.add(Bx.appendMenuItem(Mi.EditorContext,Y))}if(Array.isArray(d))for(let Y of d)L.add(this._standaloneKeybindingService.addDynamicKeybinding(B,Y,N,h));let F=new PHe(B,o,o,void 0,c,(...Y)=>Promise.resolve(e.run(this,...Y)),this._contextKeyService);return this._actions.set(r,F),L.add(Ma(()=>{this._actions.delete(r)})),L}_triggerCommand(e,r){if(this._codeEditorService instanceof Tft)try{this._codeEditorService.setActiveCodeEditor(this),super._triggerCommand(e,r)}finally{this._codeEditorService.setActiveCodeEditor(null)}else super._triggerCommand(e,r)}};iFt=hci([Z1(2,Pa),Z1(3,nf),Z1(4,Mp),Z1(5,Ec),Z1(6,t8),Z1(7,Jd),Z1(8,Hg),Z1(9,og),Z1(10,ck),Z1(11,cp),Z1(12,xa)],iFt);nFt=class extends iFt{constructor(e,r,o,c,d,h,b,w,N,L,B,F,Y,Z,ee,Te){let Je={...r};q_t(B,Je,!1);let Xe=N.registerEditorContainer(e);typeof Je.theme=="string"&&N.setTheme(Je.theme),typeof Je.autoDetectHighContrast<"u"&&N.setAutoDetectHighContrast(!!Je.autoDetectHighContrast);let ct=Je.model;delete Je.model,super(e,Je,o,c,d,h,b,w,N,L,F,ee,Te),this._configurationService=B,this._standaloneThemeService=N,this._register(Xe);let Ct;if(typeof ct>"u"){let Nt=Z.getLanguageIdByMimeType(Je.language)||Je.language||y2;Ct=gci(Y,Z,Je.value||"",Nt,void 0),this._ownsModel=!0}else Ct=ct,this._ownsModel=!1;if(this._attachModel(Ct),Ct){let Nt={oldModelUrl:null,newModelUrl:Ct.uri};this._onDidChangeModel.fire(Nt)}}dispose(){super.dispose()}updateOptions(e){q_t(this._configurationService,e,!1),typeof e.theme=="string"&&this._standaloneThemeService.setTheme(e.theme),typeof e.autoDetectHighContrast<"u"&&this._standaloneThemeService.setAutoDetectHighContrast(!!e.autoDetectHighContrast),super.updateOptions(e)}_postDetachModelCleanup(e){super._postDetachModelCleanup(e),e&&this._ownsModel&&(e.dispose(),this._ownsModel=!1)}};nFt=hci([Z1(2,Pa),Z1(3,nf),Z1(4,Mp),Z1(5,Ec),Z1(6,t8),Z1(7,Jd),Z1(8,$P),Z1(9,og),Z1(10,_u),Z1(11,ck),Z1(12,Mh),Z1(13,km),Z1(14,cp),Z1(15,xa)],nFt);rFt=class extends p${constructor(e,r,o,c,d,h,b,w,N,L,B,F){let Y={...r};q_t(w,Y,!0);let Z=h.registerEditorContainer(e);typeof Y.theme=="string"&&h.setTheme(Y.theme),typeof Y.autoDetectHighContrast<"u"&&h.setAutoDetectHighContrast(!!Y.autoDetectHighContrast),super(e,Y,{},c,o,d,F,L),this._configurationService=w,this._standaloneThemeService=h,this._register(Z)}dispose(){super.dispose()}updateOptions(e){q_t(this._configurationService,e,!0),typeof e.theme=="string"&&this._standaloneThemeService.setTheme(e.theme),typeof e.autoDetectHighContrast<"u"&&this._standaloneThemeService.setAutoDetectHighContrast(!!e.autoDetectHighContrast),super.updateOptions(e)}_createInnerEditor(e,r,o){return e.createInstance(iFt,r,o)}getOriginalEditor(){return super.getOriginalEditor()}getModifiedEditor(){return super.getModifiedEditor()}addCommand(e,r,o){return this.getModifiedEditor().addCommand(e,r,o)}createContextKey(e,r){return this.getModifiedEditor().createContextKey(e,r)}addAction(e){return this.getModifiedEditor().addAction(e)}};rFt=hci([Z1(2,Pa),Z1(3,Ec),Z1(4,nf),Z1(5,$P),Z1(6,og),Z1(7,_u),Z1(8,zw),Z1(9,WR),Z1(10,c8),Z1(11,JR)],rFt)});var EDi=ti(()=>{});function DDi(l){return $p(e=>{let r=new Fr;return r.add(l.onDidFocusEditorWidget(()=>e(!0))),r.add(l.onDidBlurEditorWidget(()=>e(!1))),r},()=>l.hasTextFocus())}var _Hi,pHi,oFt,cJe,yci=ti(()=>{nc();dOt();uy();co();xv();sxe();tFt();Z_t();My();bl();lci();n_e();_Hi=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},pHi=function(l,e){return function(r,o){e(r,o,l)}},oFt=class{constructor(e,r){this.viewModel=e,this.deltaScrollVertical=r}getId(){return this.viewModel}},cJe=class extends tn{constructor(e,r,o,c){super(),this._container=e,this._overflowWidgetsDomNode=r,this._workbenchUIElementFactory=o,this._instantiationService=c,this._viewModel=Jf(this,void 0),this._collapsed=Ru(this,h=>{var b;return(b=this._viewModel.read(h))===null||b===void 0?void 0:b.collapsed.read(h)}),this._editorContentHeight=Jf(this,500),this.contentHeight=Ru(this,h=>(this._collapsed.read(h)?0:this._editorContentHeight.read(h))+this._outerEditorHeight),this._modifiedContentWidth=Jf(this,0),this._modifiedWidth=Jf(this,0),this._originalContentWidth=Jf(this,0),this._originalWidth=Jf(this,0),this.maxScroll=Ru(this,h=>{let b=this._modifiedContentWidth.read(h)-this._modifiedWidth.read(h),w=this._originalContentWidth.read(h)-this._originalWidth.read(h);return b>w?{maxScroll:b,width:this._modifiedWidth.read(h)}:{maxScroll:w,width:this._originalWidth.read(h)}}),this._elements=qp("div.multiDiffEntry",[qp("div.header@header",[qp("div.header-content",[qp("div.collapse-button@collapseButton"),qp("div.file-path",[qp("div.title.modified.show-file-icons@primaryPath",[]),qp("div.status.deleted@status",["R"]),qp("div.title.original.show-file-icons@secondaryPath",[])]),qp("div.actions@actions")])]),qp("div.editorParent",[qp("div.editorContainer@editor")])]),this.editor=this._register(this._instantiationService.createInstance(p$,this._elements.editor,{overflowWidgetsDomNode:this._overflowWidgetsDomNode},{})),this.isModifedFocused=DDi(this.editor.getModifiedEditor()),this.isOriginalFocused=DDi(this.editor.getOriginalEditor()),this.isFocused=Ru(this,h=>this.isModifedFocused.read(h)||this.isOriginalFocused.read(h)),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=new Fr,this._headerHeight=40,this._lastScrollTop=-1,this._isSettingScrollTop=!1;let d=new o_e(this._elements.collapseButton,{});this._register(ad(h=>{d.element.className="",d.icon=this._collapsed.read(h)?_s.chevronRight:_s.chevronDown})),this._register(d.onDidClick(()=>{var h;(h=this._viewModel.get())===null||h===void 0||h.collapsed.set(!this._collapsed.get(),void 0)})),this._register(ad(h=>{this._elements.editor.style.display=this._collapsed.read(h)?"none":"block"})),this._register(this.editor.getModifiedEditor().onDidLayoutChange(h=>{let b=this.editor.getModifiedEditor().getLayoutInfo().contentWidth;this._modifiedWidth.set(b,void 0)})),this._register(this.editor.getOriginalEditor().onDidLayoutChange(h=>{let b=this.editor.getOriginalEditor().getLayoutInfo().contentWidth;this._originalWidth.set(b,void 0)})),this._register(this.editor.onDidContentSizeChange(h=>{SUe(b=>{this._editorContentHeight.set(h.contentHeight,b),this._modifiedContentWidth.set(this.editor.getModifiedEditor().getContentWidth(),b),this._originalContentWidth.set(this.editor.getOriginalEditor().getContentWidth(),b)})})),this._register(this.editor.getOriginalEditor().onDidScrollChange(h=>{if(this._isSettingScrollTop||!h.scrollTopChanged||!this._data)return;let b=h.scrollTop-this._lastScrollTop;this._data.deltaScrollVertical(b)})),this._register(ad(h=>{var b;let w=(b=this._viewModel.read(h))===null||b===void 0?void 0:b.isActive.read(h);this._elements.root.classList.toggle("active",w)})),this._container.appendChild(this._elements.root),this._outerEditorHeight=this._headerHeight,this._register(this._instantiationService.createInstance(aJe,this._elements.actions,Mi.MultiDiffEditorFileToolbar,{actionRunner:this._register(new sJe(()=>{var h;return(h=this._viewModel.get())===null||h===void 0?void 0:h.modifiedUri})),menuOptions:{shouldForwardArgs:!0},toolbarOptions:{primaryGroup:h=>h.startsWith("navigation")},actionViewItemProvider:(h,b)=>q3t(c,h,b)}))}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){this._data=e;function r(c){return{...c,scrollBeyondLastLine:!1,hideUnchangedRegions:{enabled:!0},scrollbar:{vertical:"hidden",horizontal:"hidden",handleMouseWheel:!1,useShadows:!1},renderOverviewRuler:!1,fixedOverflowWidgets:!0,overviewRulerBorder:!1}}let o=e.viewModel.entry.value;o.onOptionsDidChange&&this._dataStore.add(o.onOptionsDidChange(()=>{var c;this.editor.updateOptions(r((c=o.options)!==null&&c!==void 0?c:{}))})),SUe(c=>{var d,h,b,w;(d=this._resourceLabel)===null||d===void 0||d.setUri((h=e.viewModel.modifiedUri)!==null&&h!==void 0?h:e.viewModel.originalUri,{strikethrough:e.viewModel.modifiedUri===void 0});let N=!1,L=!1,B=!1,F="";e.viewModel.modifiedUri&&e.viewModel.originalUri&&e.viewModel.modifiedUri.path!==e.viewModel.originalUri.path?(F="R",N=!0):e.viewModel.modifiedUri?e.viewModel.originalUri||(F="A",B=!0):(F="D",L=!0),this._elements.status.classList.toggle("renamed",N),this._elements.status.classList.toggle("deleted",L),this._elements.status.classList.toggle("added",B),this._elements.status.innerText=F,(b=this._resourceLabel2)===null||b===void 0||b.setUri(N?e.viewModel.originalUri:void 0,{strikethrough:!0}),this._dataStore.clear(),this._viewModel.set(e.viewModel,c),this.editor.setModel(e.viewModel.diffEditorViewModel,c),this.editor.updateOptions(r((w=o.options)!==null&&w!==void 0?w:{}))})}render(e,r,o,c){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=`${r}px`,this._elements.root.style.position="absolute";let d=e.length-this._headerHeight,h=Math.max(0,Math.min(c.start-e.start,d));this._elements.header.style.transform=`translateY(${h}px)`,SUe(b=>{this.editor.layout({width:r-2*8-2*1,height:e.length-this._outerEditorHeight})});try{this._isSettingScrollTop=!0,this._lastScrollTop=o,this.editor.getOriginalEditor().setScrollTop(o)}finally{this._isSettingScrollTop=!1}this._elements.header.classList.toggle("shadow",h>0||o>0),this._elements.header.classList.toggle("collapsed",h===d)}hide(){this._elements.root.style.top="-100000px",this._elements.root.style.visibility="hidden"}};cJe=_Hi([pHi(3,Pa)],cJe)});var sFt,IDi=ti(()=>{sFt=class{constructor(e){this._create=e,this._unused=new Set,this._used=new Set,this._itemData=new Map}getUnusedObj(e){var r;let o;if(this._unused.size===0)o=this._create(e),this._itemData.set(o,e);else{let c=[...this._unused.values()];o=(r=c.find(d=>this._itemData.get(d).getId()===e.getId()))!==null&&r!==void 0?r:c[0],this._unused.delete(o),this._itemData.set(o,e),o.setData(e)}return this._used.add(o),{object:o,dispose:()=>{this._used.delete(o),this._unused.size>5?o.dispose():this._unused.add(o)}}}dispose(){for(let e of this._used)e.dispose();for(let e of this._unused)e.dispose();this._used.clear(),this._unused.clear()}}});var mHi,NDi,aFt,vci,ADi=ti(()=>{nc();AV();sd();PR();Du();co();xv();sxe();gHe();EDi();qV();o7();j0();$h();hd();bl();XHe();yci();IDi();ya();mHi=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},NDi=function(l,e){return function(r,o){e(r,o,l)}},aFt=class extends tn{constructor(e,r,o,c,d,h){super(),this._element=e,this._dimension=r,this._viewModel=o,this._workbenchUIElementFactory=c,this._parentContextKeyService=d,this._parentInstantiationService=h,this._scrollableElements=qp("div.scrollContent",[qp("div@content",{style:{overflow:"hidden"}}),qp("div.monaco-editor@overflowWidgetsDomNode",{})]),this._scrollable=this._register(new NV({forceIntegerValues:!1,scheduleAtNextAnimationFrame:w=>LD(Gc(this._element),w),smoothScrollDuration:100})),this._scrollableElement=this._register(new ire(this._scrollableElements.root,{vertical:1,horizontal:1,useShadows:!1},this._scrollable)),this._elements=qp("div.monaco-component.multiDiffEditor",{},[qp("div",{},[this._scrollableElement.getDomNode()]),qp("div.placeholder@placeholder",{},[qp("div",[ce("noChangedFiles","No Changed Files")])])]),this._sizeObserver=this._register(new eJe(this._element,void 0)),this._objectPool=this._register(new sFt(w=>{let N=this._instantiationService.createInstance(cJe,this._scrollableElements.content,this._scrollableElements.overflowWidgetsDomNode,this._workbenchUIElementFactory);return N.setData(w),N})),this.scrollTop=$p(this._scrollableElement.onScroll,()=>this._scrollableElement.getScrollPosition().scrollTop),this.scrollLeft=$p(this._scrollableElement.onScroll,()=>this._scrollableElement.getScrollPosition().scrollLeft),this._viewItemsInfo=zR(this,(w,N)=>{let L=this._viewModel.read(w);if(!L)return{items:[],getItem:Z=>{throw new Hp}};let B=L.items.read(w),F=new Map;return{items:B.map(Z=>{var ee;let Te=N.add(new vci(Z,this._objectPool,this.scrollLeft,Xe=>{this._scrollableElement.setScrollPosition({scrollTop:this._scrollableElement.getScrollPosition().scrollTop+Xe})})),Je=(ee=this._lastDocStates)===null||ee===void 0?void 0:ee[Te.getKey()];return Je&&Pm(Xe=>{Te.setViewState(Je,Xe)}),F.set(Z,Te),Te}),getItem:Z=>F.get(Z)}}),this._viewItems=this._viewItemsInfo.map(this,w=>w.items),this._spaceBetweenPx=0,this._totalHeight=this._viewItems.map(this,(w,N)=>w.reduce((L,B)=>L+B.contentHeight.read(N)+this._spaceBetweenPx,0)),this._contextKeyService=this._register(this._parentContextKeyService.createScoped(this._element)),this._instantiationService=this._register(this._parentInstantiationService.createChild(new c$([Ec,this._contextKeyService]))),this._lastDocStates={},this._contextKeyService.createKey(Qi.inMultiDiffEditor.key,!0),this._register(LT((w,N)=>{let L=this._viewModel.read(w);if(L&&L.contextKeys)for(let[B,F]of Object.entries(L.contextKeys)){let Y=this._contextKeyService.createKey(B,void 0);Y.set(F),N.add(Ma(()=>Y.reset()))}}));let b=this._parentContextKeyService.createKey(Qi.multiDiffEditorAllCollapsed.key,!1);this._register(ad(w=>{let N=this._viewModel.read(w);if(N){let L=N.items.read(w).every(B=>B.collapsed.read(w));b.set(L)}})),this._register(ad(w=>{let N=this._dimension.read(w);this._sizeObserver.observe(N)})),this._register(ad(w=>{let N=this._viewItems.read(w);this._elements.placeholder.classList.toggle("visible",N.length===0)})),this._scrollableElements.content.style.position="relative",this._register(ad(w=>{let N=this._sizeObserver.height.read(w);this._scrollableElements.root.style.height=`${N}px`;let L=this._totalHeight.read(w);this._scrollableElements.content.style.height=`${L}px`;let B=this._sizeObserver.width.read(w),F=B,Y=this._viewItems.read(w),Z=$ut(Y,hE(ee=>ee.maxScroll.read(w).maxScroll,XL));if(Z){let ee=Z.maxScroll.read(w);F=B+ee.maxScroll}this._scrollableElement.setScrollDimensions({width:B,height:N,scrollHeight:L,scrollWidth:F})})),e.replaceChildren(this._elements.root),this._register(Ma(()=>{e.replaceChildren()})),this._register(this._register(ad(w=>{SUe(N=>{this.render(w)})})))}render(e){let r=this.scrollTop.read(e),o=0,c=0,d=0,h=this._sizeObserver.height.read(e),b=x_.ofStartAndLength(r,h),w=this._sizeObserver.width.read(e);for(let N of this._viewItems.read(e)){let L=N.contentHeight.read(e),B=Math.min(L,h),F=x_.ofStartAndLength(c,B),Y=x_.ofStartAndLength(d,L);if(Y.isBefore(b))o-=L-B,N.hide();else if(Y.isAfter(b))N.hide();else{let Z=Math.max(0,Math.min(b.start-Y.start,L-B));o-=Z;let ee=x_.ofStartAndLength(r+o,h);N.render(F,Z,w,ee)}c+=B+this._spaceBetweenPx,d+=L+this._spaceBetweenPx}this._scrollableElements.content.style.transform=`translateY(${-(r+o)}px)`}};aFt=mHi([NDi(4,Ec),NDi(5,Pa)],aFt);vci=class extends tn{constructor(e,r,o,c){super(),this.viewModel=e,this._objectPool=r,this._scrollLeft=o,this._deltaScrollVertical=c,this._templateRef=this._register(Pre(this,void 0)),this.contentHeight=Ru(this,d=>{var h,b,w;return(w=(b=(h=this._templateRef.read(d))===null||h===void 0?void 0:h.object.contentHeight)===null||b===void 0?void 0:b.read(d))!==null&&w!==void 0?w:this.viewModel.lastTemplateData.read(d).contentHeight}),this.maxScroll=Ru(this,d=>{var h,b;return(b=(h=this._templateRef.read(d))===null||h===void 0?void 0:h.object.maxScroll.read(d))!==null&&b!==void 0?b:{maxScroll:0,scrollWidth:0}}),this.template=Ru(this,d=>{var h;return(h=this._templateRef.read(d))===null||h===void 0?void 0:h.object}),this._isHidden=Jf(this,!1),this._isFocused=Ru(this,d=>{var h,b;return(b=(h=this.template.read(d))===null||h===void 0?void 0:h.isFocused.read(d))!==null&&b!==void 0?b:!1}),this.viewModel.setIsFocused(this._isFocused,void 0),this._register(ad(d=>{var h;let b=this._scrollLeft.read(d);(h=this._templateRef.read(d))===null||h===void 0||h.object.setScrollLeft(b)})),this._register(ad(d=>{let h=this._templateRef.read(d);!h||!this._isHidden.read(d)||h.object.isFocused.read(d)||this._clear()}))}dispose(){this._clear(),super.dispose()}toString(){var e;return`VirtualViewItem(${(e=this.viewModel.entry.value.modified)===null||e===void 0?void 0:e.uri.toString()})`}getKey(){return this.viewModel.getKey()}setViewState(e,r){var o;this.viewModel.collapsed.set(e.collapsed,r),this._updateTemplateData(r);let c=this.viewModel.lastTemplateData.get(),d=(o=e.selections)===null||o===void 0?void 0:o.map(ic.liftSelection);this.viewModel.lastTemplateData.set({...c,selections:d},r);let h=this._templateRef.get();h&&d&&h.object.editor.setSelections(d)}_updateTemplateData(e){var r;let o=this._templateRef.get();o&&this.viewModel.lastTemplateData.set({contentHeight:o.object.contentHeight.get(),selections:(r=o.object.editor.getSelections())!==null&&r!==void 0?r:void 0},e)}_clear(){let e=this._templateRef.get();e&&Pm(r=>{this._updateTemplateData(r),e.object.hide(),this._templateRef.set(void 0,r)})}hide(){this._isHidden.set(!0,void 0)}render(e,r,o,c){this._isHidden.set(!1,void 0);let d=this._templateRef.get();if(!d){d=this._objectPool.getUnusedObj(new oFt(this.viewModel,this._deltaScrollVertical)),this._templateRef.set(d,void 0);let h=this.viewModel.lastTemplateData.get().selections;h&&d.object.editor.setSelections(h)}d.object.render(e,o,r,c)}}});var RQn,BQn,jQn,PDi=ti(()=>{ya();q1();RQn=hn("multiDiffEditor.headerBackground",{dark:"#262626",light:"tab.inactiveBackground",hcDark:"tab.inactiveBackground",hcLight:"tab.inactiveBackground"},ce("multiDiffEditor.headerBackground","The background color of the diff editor's header")),BQn=hn("multiDiffEditor.background",{dark:"editorBackground",light:"editorBackground",hcDark:"editorBackground",hcLight:"editorBackground"},ce("multiDiffEditor.background","The background color of the multi file diff editor")),jQn=hn("multiDiffEditor.border",{dark:"sideBarSectionHeader.border",light:"#cccccc",hcDark:"sideBarSectionHeader.border",hcLight:"#cccccc"},ce("multiDiffEditor.border","The border color of the multi file diff editor"))});var hHi,gHi,cFt,LDi=ti(()=>{co();xv();qV();ADi();bl();PDi();yci();hHi=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},gHi=function(l,e){return function(r,o){e(r,o,l)}},cFt=class extends tn{constructor(e,r,o){super(),this._element=e,this._workbenchUIElementFactory=r,this._instantiationService=o,this._dimension=Jf(this,void 0),this._viewModel=Jf(this,void 0),this._widgetImpl=zR(this,(c,d)=>(qR(cJe,c),d.add(this._instantiationService.createInstance(qR(aFt,c),this._element,this._dimension,this._viewModel,this._workbenchUIElementFactory)))),this._register(Ore(this._widgetImpl))}};cFt=hHi([gHi(2,Pa)],cFt)});function yHi(l,e,r){return qd.initialize(r||{}).createInstance(nFt,l,e)}function vHi(l){return qd.get(nf).onCodeEditorAdd(r=>{l(r)})}function bHi(l){return qd.get(nf).onDiffEditorAdd(r=>{l(r)})}function SHi(){return qd.get(nf).listCodeEditors()}function xHi(){return qd.get(nf).listDiffEditors()}function CHi(l,e,r){return qd.initialize(r||{}).createInstance(rFt,l,e)}function kHi(l,e){let r=qd.initialize(e||{});return new cFt(l,{},r)}function wHi(l){if(typeof l.id!="string"||typeof l.run!="function")throw new Error("Invalid command descriptor, `id` and `run` are required properties!");return df.registerCommand(l.id,l.run)}function THi(l){if(typeof l.id!="string"||typeof l.label!="string"||typeof l.run!="function")throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");let e=Ao.deserialize(l.precondition),r=(c,...d)=>Xy.runEditorCommand(c,d,e,(h,b,w)=>Promise.resolve(l.run(b,...w))),o=new Fr;if(o.add(df.registerCommand(l.id,r)),l.contextMenuGroupId){let c={command:{id:l.id,title:l.label},when:e,group:l.contextMenuGroupId,order:l.contextMenuOrder||0};o.add(Bx.appendMenuItem(Mi.EditorContext,c))}if(Array.isArray(l.keybindings)){let c=qd.get(Jd);if(!(c instanceof xxe))console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService");else{let d=Ao.and(e,Ao.deserialize(l.keybindingContext));o.add(c.addDynamicKeybindings(l.keybindings.map(h=>({keybinding:h,command:l.id,when:d}))))}}return o}function EHi(l){return ODi([l])}function ODi(l){let e=qd.get(Jd);return e instanceof xxe?e.addDynamicKeybindings(l.map(r=>({keybinding:r.keybinding,command:r.command,commandArgs:r.commandArgs,when:Ao.deserialize(r.when)}))):(console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),tn.None)}function DHi(l,e,r){let o=qd.get(km),c=o.getLanguageIdByMimeType(e)||e;return gci(qd.get(Mh),o,l,c,r)}function IHi(l,e){let r=qd.get(km),o=r.getLanguageIdByMimeType(e)||e||y2;l.setLanguage(r.createById(o))}function NHi(l,e,r){l&&qd.get(m7).changeOne(e,l.uri,r)}function AHi(l){qd.get(m7).changeAll(l,[])}function PHi(l){return qd.get(m7).read(l)}function LHi(l){return qd.get(m7).onMarkerChanged(l)}function OHi(l){return qd.get(Mh).getModel(l)}function FHi(){return qd.get(Mh).getModels()}function MHi(l){return qd.get(Mh).onModelAdded(l)}function RHi(l){return qd.get(Mh).onModelRemoved(l)}function BHi(l){return qd.get(Mh).onModelLanguageChanged(r=>{l({model:r.model,oldLanguage:r.oldLanguageId})})}function jHi(l){return Evi(qd.get(Mh),qd.get(cp),l)}function WHi(l,e){let r=qd.get(km),o=qd.get($P);return JVe.colorizeElement(o,r,l,e).then(()=>{o.registerEditorContainer(l)})}function zHi(l,e,r){let o=qd.get(km);return qd.get($P).registerEditorContainer(em.document.body),JVe.colorize(o,l,e,r)}function VHi(l,e,r=4){return qd.get($P).registerEditorContainer(em.document.body),JVe.colorizeModelLine(l,e,r)}function HHi(l){let e=a0.get(l);return e||{getInitialState:()=>$ne,tokenize:(r,o,c)=>BVe(l,c)}}function UHi(l,e){a0.getOrCreate(e);let r=HHi(e),o=x6(l),c=[],d=r.getInitialState();for(let h=0,b=o.length;h{var d;if(!o)return null;let h=(d=r.options)===null||d===void 0?void 0:d.selection,b;return h&&typeof h.endLineNumber=="number"&&typeof h.endColumn=="number"?b=h:h&&(b={lineNumber:h.startLineNumber,column:h.startColumn}),await l.openCodeEditor(o,r.resource,b)?o:null})}function FDi(){return{create:yHi,getEditors:SHi,getDiffEditors:xHi,onDidCreateEditor:vHi,onDidCreateDiffEditor:bHi,createDiffEditor:CHi,addCommand:wHi,addEditorAction:THi,addKeybindingRule:EHi,addKeybindingRules:ODi,createModel:DHi,setModelLanguage:IHi,setModelMarkers:NHi,getModelMarkers:PHi,removeAllMarkers:AHi,onDidChangeMarkers:LHi,getModels:FHi,getModel:OHi,onDidCreateModel:MHi,onWillDisposeModel:RHi,onDidChangeModelLanguage:BHi,createWebWorker:jHi,colorizeElement:WHi,colorize:zHi,colorizeModelLine:VHi,tokenize:UHi,defineTheme:JHi,setTheme:qHi,remeasureFonts:$Hi,registerCommand:GHi,registerLinkOpener:KHi,registerEditorOpener:XHi,AccessibilitySupport:PDt,ContentWidgetPositionPreference:BDt,CursorChangeReason:jDt,DefaultEndOfLine:WDt,EditorAutoIndentStrategy:VDt,EditorOption:HDt,EndOfLinePreference:UDt,EndOfLineSequence:JDt,MinimapPosition:iIt,MinimapSectionHeaderStyle:nIt,MouseTargetType:rIt,OverlayWidgetPositionPreference:aIt,OverviewRulerLane:cIt,GlyphMarginLane:qDt,RenderLineNumbersType:dIt,RenderMinimap:fIt,ScrollbarVisibility:pIt,ScrollType:_It,TextEditorCursorBlinkingStyle:bIt,TextEditorCursorStyle:SIt,TrackedRangeStickiness:xIt,WrappingIndent:CIt,InjectedTextCursorStops:KDt,PositionAffinity:uIt,ShowLightbulbIconMode:hIt,ConfigurationChangedEvent:Jze,BareFontInfo:K4e,FontInfo:X4e,TextModelResolvedOptions:fSe,FindMatch:zne,ApplyUpdateResult:Lbe,EditorZoom:t3,createMultiFileDiffEditor:kHi,EditorType:Cfe,EditorOptions:XF}}var MDi=ti(()=>{S6();co();Mu();s0();r0i();iZt();vf();IC();Dvi();TT();gVe();_Nt();rdt();dy();FD();ix();SV();jVe();MD();C6();kIt();Wvi();TDi();I8t();jLe();My();W0();hd();f1();Mre();n8();LDi()});function YHi(l,e){if(!e||!Array.isArray(e))return!1;for(let r of e)if(!l(r))return!1;return!0}function lFt(l,e){return typeof l=="boolean"?l:e}function RDi(l,e){return typeof l=="string"?l:e}function QHi(l){let e={};for(let r of l)e[r]=!0;return e}function BDi(l,e=!1){e&&(l=l.map(function(o){return o.toLowerCase()}));let r=QHi(l);return e?function(o){return r[o.toLowerCase()]!==void 0&&r.hasOwnProperty(o.toLowerCase())}:function(o){return r[o]!==void 0&&r.hasOwnProperty(o)}}function bci(l,e,r){e=e.replace(/@@/g,"");let o=0,c;do c=!1,e=e.replace(/@(\w+)/g,function(h,b){c=!0;let w="";if(typeof l[b]=="string")w=l[b];else if(l[b]&&l[b]instanceof RegExp)w=l[b].source;else throw l[b]===void 0?u1(l,"language definition does not contain attribute '"+b+"', used at: "+e):u1(l,"attribute reference '"+b+"' must be a string, used at: "+e);return SSe(w)?"":"(?:"+w+")"}),o++;while(c&&o<5);e=e.replace(/\x01/g,"@");let d=(l.ignoreCase?"i":"")+(l.unicode?"u":"");if(r&&e.match(/\$[sS](\d\d?)/g)){let b=null,w=null;return N=>(w&&b===N||(b=N,w=new RegExp(Fvi(l,e,N),d)),w)}return new RegExp(e,d)}function ZHi(l,e,r,o){if(o<0)return l;if(o=100){o=o-100;let c=r.split(".");if(c.unshift(r),o=0&&(o.tokenSubst=!0),typeof r.bracket=="string")if(r.bracket==="@open")o.bracket=1;else if(r.bracket==="@close")o.bracket=-1;else throw u1(l,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+e);if(r.next){if(typeof r.next!="string")throw u1(l,"the next state must be a string value in rule: "+e);{let c=r.next;if(!/^(@pop|@push|@popall)$/.test(c)&&(c[0]==="@"&&(c=c.substr(1)),c.indexOf("$")<0&&!Mvi(l,Gne(l,c,"",[],""))))throw u1(l,"the next state '"+r.next+"' is not defined in rule: "+e);o.next=c}}return typeof r.goBack=="number"&&(o.goBack=r.goBack),typeof r.switchTo=="string"&&(o.switchTo=r.switchTo),typeof r.log=="string"&&(o.log=r.log),typeof r.nextEmbedded=="string"&&(o.nextEmbedded=r.nextEmbedded,l.usesEmbedded=!0),o}}else if(Array.isArray(r)){let o=[];for(let c=0,d=r.length;c=1&&N.length<=3)if(B.setRegex(o,N[0]),N.length>=3)if(typeof N[1]=="string")B.setAction(o,{token:N[1],next:N[2]});else if(typeof N[1]=="object"){let F=N[1];F.next=N[2],B.setAction(o,F)}else throw u1(r,"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: "+h);else B.setAction(o,N[1]);else{if(!N.regex)throw u1(r,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+h);N.name&&typeof N.name=="string"&&(B.name=N.name),N.matchOnlyAtStart&&(B.matchOnlyAtLineStart=lFt(N.matchOnlyAtLineStart,!1)),B.setRegex(o,N.regex),B.setAction(o,N.action)}b.push(B)}}}if(!e.tokenizer||typeof e.tokenizer!="object")throw u1(r,"a language definition must define the 'tokenizer' attribute as an object");r.tokenizer=[];for(let h in e.tokenizer)if(e.tokenizer.hasOwnProperty(h)){r.start||(r.start=h);let b=e.tokenizer[h];r.tokenizer[h]=new Array,c("tokenizer."+h,r.tokenizer[h],b)}if(r.usesEmbedded=o.usesEmbedded,e.brackets){if(!Array.isArray(e.brackets))throw u1(r,"the 'brackets' attribute must be defined as an array")}else e.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];let d=[];for(let h of e.brackets){let b=h;if(b&&Array.isArray(b)&&b.length===3&&(b={token:b[2],open:b[0],close:b[1]}),b.open===b.close)throw u1(r,"open and close brackets in a 'brackets' attribute must be different: "+b.open+` + hint: use the 'bracket' attribute if matching on equal brackets is required.`);if(typeof b.open=="string"&&typeof b.token=="string"&&typeof b.close=="string")d.push({token:b.token+r.tokenPostfix,open:ZY(r,b.open),close:ZY(r,b.close)});else throw u1(r,"every element in the 'brackets' array must be a '{open,close,token}' object or array")}return r.brackets=d,r.noThrow=!0,r}var xci,jDi=ti(()=>{Iei();xci=class{constructor(e){this.regex=new RegExp(""),this.action={token:""},this.matchOnlyAtLineStart=!1,this.name="",this.name=e}setRegex(e,r){let o;if(typeof r=="string")o=r;else if(r instanceof RegExp)o=r.source;else throw u1(e,"rules must start with a match string or regular expression: "+this.name);this.matchOnlyAtLineStart=o.length>0&&o[0]==="^",this.name=this.name+": "+o,this.regex=bci(e,"^(?:"+(this.matchOnlyAtLineStart?o.substr(1):o)+")",!0)}setAction(e,r){this.action=Sci(e,this.name,r)}resolveRegex(e){return this.regex instanceof RegExp?this.regex:this.regex(e)}}});function tUi(l){cSe.registerLanguage(l)}function iUi(){let l=[];return l=l.concat(cSe.getLanguages()),l}function nUi(l){return qd.get(km).languageIdCodec.encodeLanguageId(l)}function rUi(l,e){return qd.withServices(()=>{let o=qd.get(km).onDidRequestRichLanguageFeatures(c=>{c===l&&(o.dispose(),e())});return o})}function oUi(l,e){return qd.withServices(()=>{let o=qd.get(km).onDidRequestBasicLanguageFeatures(c=>{c===l&&(o.dispose(),e())});return o})}function sUi(l,e){if(!qd.get(km).isRegisteredLanguageId(l))throw new Error(`Cannot set configuration for unknown language ${l}`);return qd.get(cp).register(l,e,100)}function aUi(l){return typeof l.getInitialState=="function"}function cUi(l){return"tokenizeEncoded"in l}function WDi(l){return l&&typeof l.then=="function"}function lUi(l){let e=qd.get($P);if(l){let r=[null];for(let o=1,c=l.length;o{let o=await Promise.resolve(e.create());return o?aUi(o)?zDi(l,o):new y6e(qd.get(km),qd.get($P),l,Cci(l,o),qd.get(_u)):null});return a0.registerFactory(l,r)}function uUi(l,e){if(!qd.get(km).isRegisteredLanguageId(l))throw new Error(`Cannot set tokens provider for unknown language ${l}`);return WDi(e)?wci(l,{create:()=>e}):a0.register(l,zDi(l,e))}function dUi(l,e){let r=o=>new y6e(qd.get(km),qd.get($P),l,Cci(l,o),qd.get(_u));return WDi(e)?wci(l,{create:()=>e}):a0.register(l,r(e))}function fUi(l,e){return qd.get(xa).referenceProvider.register(l,e)}function _Ui(l,e){return qd.get(xa).renameProvider.register(l,e)}function pUi(l,e){return qd.get(xa).newSymbolNamesProvider.register(l,e)}function mUi(l,e){return qd.get(xa).signatureHelpProvider.register(l,e)}function hUi(l,e){return qd.get(xa).hoverProvider.register(l,{provideHover:async(o,c,d,h)=>{let b=o.getWordAtPosition(c);return Promise.resolve(e.provideHover(o,c,d,h)).then(w=>{if(w)return!w.range&&b&&(w.range=new Zt(c.lineNumber,b.startColumn,c.lineNumber,b.endColumn)),w.range||(w.range=new Zt(c.lineNumber,c.column,c.lineNumber,c.column)),w})}})}function gUi(l,e){return qd.get(xa).documentSymbolProvider.register(l,e)}function yUi(l,e){return qd.get(xa).documentHighlightProvider.register(l,e)}function vUi(l,e){return qd.get(xa).linkedEditingRangeProvider.register(l,e)}function bUi(l,e){return qd.get(xa).definitionProvider.register(l,e)}function SUi(l,e){return qd.get(xa).implementationProvider.register(l,e)}function xUi(l,e){return qd.get(xa).typeDefinitionProvider.register(l,e)}function CUi(l,e){return qd.get(xa).codeLensProvider.register(l,e)}function kUi(l,e,r){return qd.get(xa).codeActionProvider.register(l,{providedCodeActionKinds:r?.providedCodeActionKinds,documentation:r?.documentation,provideCodeActions:(c,d,h,b)=>{let N=qd.get(m7).read({resource:c.uri}).filter(L=>Zt.areIntersectingOrTouching(L,d));return e.provideCodeActions(c,d,{markers:N,only:h.only,trigger:h.trigger},b)},resolveCodeAction:e.resolveCodeAction})}function wUi(l,e){return qd.get(xa).documentFormattingEditProvider.register(l,e)}function TUi(l,e){return qd.get(xa).documentRangeFormattingEditProvider.register(l,e)}function EUi(l,e){return qd.get(xa).onTypeFormattingEditProvider.register(l,e)}function DUi(l,e){return qd.get(xa).linkProvider.register(l,e)}function IUi(l,e){return qd.get(xa).completionProvider.register(l,e)}function NUi(l,e){return qd.get(xa).colorProvider.register(l,e)}function AUi(l,e){return qd.get(xa).foldingRangeProvider.register(l,e)}function PUi(l,e){return qd.get(xa).declarationProvider.register(l,e)}function LUi(l,e){return qd.get(xa).selectionRangeProvider.register(l,e)}function OUi(l,e){return qd.get(xa).documentSemanticTokensProvider.register(l,e)}function FUi(l,e){return qd.get(xa).documentRangeSemanticTokensProvider.register(l,e)}function MUi(l,e){return qd.get(xa).inlineCompletionsProvider.register(l,e)}function RUi(l,e){return qd.get(xa).inlineEditProvider.register(l,e)}function BUi(l,e){return qd.get(xa).inlayHintsProvider.register(l,e)}function VDi(){return{register:tUi,getLanguages:iUi,onLanguage:rUi,onLanguageEncountered:oUi,getEncodedLanguageId:nUi,setLanguageConfiguration:sUi,setColorMap:lUi,registerTokensProviderFactory:wci,setTokensProvider:uUi,setMonarchTokensProvider:dUi,registerReferenceProvider:fUi,registerRenameProvider:_Ui,registerNewSymbolNameProvider:pUi,registerCompletionItemProvider:IUi,registerSignatureHelpProvider:mUi,registerHoverProvider:hUi,registerDocumentSymbolProvider:gUi,registerDocumentHighlightProvider:yUi,registerLinkedEditingRangeProvider:vUi,registerDefinitionProvider:bUi,registerImplementationProvider:SUi,registerTypeDefinitionProvider:xUi,registerCodeLensProvider:CUi,registerCodeActionProvider:kUi,registerDocumentFormattingEditProvider:wUi,registerDocumentRangeFormattingEditProvider:TUi,registerOnTypeFormattingEditProvider:EUi,registerLinkProvider:DUi,registerColorProvider:NUi,registerFoldingRangeProvider:AUi,registerDeclarationProvider:PUi,registerSelectionRangeProvider:LUi,registerDocumentSemanticTokensProvider:OUi,registerDocumentRangeSemanticTokensProvider:FUi,registerInlineCompletionsProvider:MUi,registerInlineEditProvider:RUi,registerInlayHintsProvider:BUi,DocumentHighlightKind:zDt,CompletionItemKind:FDt,CompletionItemTag:MDt,CompletionItemInsertTextRule:ODt,SymbolKind:yIt,SymbolTag:vIt,IndentAction:GDt,CompletionTriggerKind:RDt,SignatureHelpTriggerKind:gIt,InlayHintKind:XDt,InlineCompletionTriggerKind:YDt,InlineEditTriggerKind:QDt,CodeActionTriggerType:LDt,NewSymbolNameTag:oIt,NewSymbolNameTriggerKind:sIt,PartialAcceptTriggerKind:lIt,HoverVerbosityAction:$Dt,FoldingRangeKind:QF,SelectedSuggestionInfo:Qze}}var kci,uFt,HDi=ti(()=>{rx();Xa();dy();FD();ix();SV();wm();kIt();I8t();jDi();Lei();jLe();_y();Mre();kci=class{constructor(e,r){this._languageId=e,this._actual=r}dispose(){}getInitialState(){return this._actual.getInitialState()}tokenize(e,r,o){if(typeof this._actual.tokenize=="function")return uFt.adaptTokenize(this._languageId,this._actual,e,o);throw new Error("Not supported!")}tokenizeEncoded(e,r,o){let c=this._actual.tokenizeEncoded(e,o);return new ofe(c.tokens,c.endState)}},uFt=class l{constructor(e,r,o,c){this._languageId=e,this._actual=r,this._languageService=o,this._standaloneThemeService=c}dispose(){}getInitialState(){return this._actual.getInitialState()}static _toClassicTokens(e,r){let o=[],c=0;for(let d=0,h=e.length;d0&&d[h-1]===F)continue;let Y=B.startIndex;N===0?Y=0:Y{vf();hd();Sh();mB();bl();_A();ya();Tci=Ml("IEditorCancelService"),UDi=new va("cancellableOperation",!1,ce("cancellableOperation","Whether the editor runs a cancellable operation, e.g. like 'Peek References'"));e_(Tci,class{constructor(){this._tokens=new WeakMap}add(l,e){let r=this._tokens.get(l);r||(r=l.invokeWithinContext(c=>{let d=UDi.bindTo(c.get(Ec)),h=new QS;return{key:d,tokens:h}}),this._tokens.set(l,r));let o;return r.key.set(!0),o=r.tokens.push(e),()=>{o&&(o(),r.key.set(!r.tokens.isEmpty()),o=void 0)}}cancel(l){let e=this._tokens.get(l);if(!e)return;let r=e.tokens.pop();r&&(r.cancel(),e.key.set(!e.tokens.isEmpty()))}},1);dFt=class extends Up{constructor(e,r){super(r),this.editor=e,this._unregister=e.invokeWithinContext(o=>o.get(Tci).add(e,this))}dispose(){this._unregister(),super.dispose()}};Ra(new class extends Xy{constructor(){super({id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:UDi})}runEditorCommand(l,e){l.get(Tci).cancel(e)}})});var lJe,$R,$Le,m_e=ti(()=>{Mu();Xa();Sh();co();JDi();lJe=class l{constructor(e,r){if(this.flags=r,this.flags&1){let o=e.getModel();this.modelVersionId=o?uV("{0}#{1}",o.uri.toString(),o.getVersionId()):null}else this.modelVersionId=null;this.flags&4?this.position=e.getPosition():this.position=null,this.flags&2?this.selection=e.getSelection():this.selection=null,this.flags&8?(this.scrollLeft=e.getScrollLeft(),this.scrollTop=e.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}_equals(e){if(!(e instanceof l))return!1;let r=e;return!(this.modelVersionId!==r.modelVersionId||this.scrollLeft!==r.scrollLeft||this.scrollTop!==r.scrollTop||!this.position&&r.position||this.position&&!r.position||this.position&&r.position&&!this.position.equals(r.position)||!this.selection&&r.selection||this.selection&&!r.selection||this.selection&&r.selection&&!this.selection.equalsRange(r.selection))}validate(e){return this._equals(new l(e,this.flags))}},$R=class extends dFt{constructor(e,r,o,c){super(e,c),this._listener=new Fr,r&4&&this._listener.add(e.onDidChangeCursorPosition(d=>{(!o||!Zt.containsPosition(o,d.position))&&this.cancel()})),r&2&&this._listener.add(e.onDidChangeCursorSelection(d=>{(!o||!Zt.containsRange(o,d.selection))&&this.cancel()})),r&8&&this._listener.add(e.onDidScrollChange(d=>this.cancel())),r&1&&(this._listener.add(e.onDidChangeModel(d=>this.cancel())),this._listener.add(e.onDidChangeModelContent(d=>this.cancel())))}dispose(){this._listener.dispose(),super.dispose()}},$Le=class extends Up{constructor(e,r){super(r),this._listener=e.onDidChangeContent(()=>this.cancel())}dispose(){this._listener.dispose(),super.dispose()}}});function m$(l){return l&&typeof l.getEditorType=="function"?l.getEditorType()===Cfe.ICodeEditor:!1}function npt(l){return l&&typeof l.getEditorType=="function"?l.getEditorType()===Cfe.IDiffEditor:!1}function jUi(l){return!!l&&typeof l=="object"&&typeof l.onDidChangeActiveEditor=="function"}function fFt(l){return m$(l)?l:npt(l)?l.getModifiedEditor():jUi(l)&&m$(l.activeCodeEditor)?l.activeCodeEditor:null}var uJe=ti(()=>{rdt()});var GLe,Eci=ti(()=>{OB();Xa();zLe();GLe=class l{static _handleEolEdits(e,r){let o,c=[];for(let d of r)typeof d.eol=="number"&&(o=d.eol),d.range&&typeof d.text=="string"&&c.push(d);return typeof o=="number"&&e.hasModel()&&e.getModel().pushEOL(o),c}static _isFullModelReplaceEdit(e,r){if(!e.hasModel())return!1;let o=e.getModel(),c=o.validateRange(r.range);return o.getFullModelRange().equalsRange(c)}static execute(e,r,o){o&&e.pushUndoStop();let c=y7.capture(e),d=l._handleEolEdits(e,r);d.length===1&&l._isFullModelReplaceEdit(e,d[0])?e.executeEdits("formatEditsCommand",d.map(h=>mg.replace(Zt.lift(h.range),h.text))):e.executeEdits("formatEditsCommand",d.map(h=>mg.replaceMove(Zt.lift(h.range),h.text))),o&&e.pushUndoStop(),c.restoreRelativeVerticalPositionOfCursor(e)}}});var _Ft,pFt,qDi=ti(()=>{_Ft=class{constructor(e){this.value=e,this._lower=e.toLowerCase()}static toKey(e){return typeof e=="string"?e.toLowerCase():e._lower}},pFt=class{constructor(e){if(this._set=new Set,e)for(let r of e)this.add(r)}add(e){this._set.add(_Ft.toKey(e))}has(e){return this._set.has(_Ft.toKey(e))}}});function $Di(l,e,r){let o=[],c=new pFt,d=l.ordered(r);for(let b of d)o.push(b),b.extensionId&&c.add(b.extensionId);let h=e.ordered(r);for(let b of h){if(b.extensionId){if(c.has(b.extensionId))continue;c.add(b.extensionId)}o.push({displayName:b.displayName,extensionId:b.extensionId,provideDocumentFormattingEdits(w,N,L){return b.provideDocumentRangeFormattingEdits(w,w.getFullModelRange(),N,L)}})}return o}async function Dci(l,e,r,o,c,d,h){let b=l.get(Pa),{documentRangeFormattingEditProvider:w}=l.get(xa),N=m$(e)?e.getModel():e,L=w.ordered(N),B=await KLe.select(L,N,o,2);B&&(c.report(B),await b.invokeFunction(WUi,B,e,r,d,h))}async function WUi(l,e,r,o,c,d){var h,b;let w=l.get(kA),N=l.get(jb),L=l.get(JR),B,F;m$(r)?(B=r.getModel(),F=new $R(r,5,void 0,c)):(B=r,F=new $Le(r,c));let Y=[],Z=0;for(let ct of jze(o).sort(Zt.compareRangesUsingStarts))Z>0&&Zt.areIntersectingOrTouching(Y[Z-1],ct)?Y[Z-1]=Zt.fromPositions(Y[Z-1].getStartPosition(),ct.getEndPosition()):Z=Y.push(ct);let ee=async ct=>{var Ct,Nt;N.trace("[format][provideDocumentRangeFormattingEdits] (request)",(Ct=e.extensionId)===null||Ct===void 0?void 0:Ct.value,ct);let Yt=await e.provideDocumentRangeFormattingEdits(B,ct,B.getFormattingOptions(),F.token)||[];return N.trace("[format][provideDocumentRangeFormattingEdits] (response)",(Nt=e.extensionId)===null||Nt===void 0?void 0:Nt.value,Yt),Yt},Te=(ct,Ct)=>{if(!ct.length||!Ct.length)return!1;let Nt=ct.reduce((Yt,jt)=>Zt.plusRange(Yt,jt.range),ct[0].range);if(!Ct.some(Yt=>Zt.intersectRanges(Nt,Yt.range)))return!1;for(let Yt of ct)for(let jt of Ct)if(Zt.intersectRanges(Yt.range,jt.range))return!0;return!1},Je=[],Xe=[];try{if(typeof e.provideDocumentRangesFormattingEdits=="function"){N.trace("[format][provideDocumentRangeFormattingEdits] (request)",(h=e.extensionId)===null||h===void 0?void 0:h.value,Y);let ct=await e.provideDocumentRangesFormattingEdits(B,Y,B.getFormattingOptions(),F.token)||[];N.trace("[format][provideDocumentRangeFormattingEdits] (response)",(b=e.extensionId)===null||b===void 0?void 0:b.value,ct),Xe.push(ct)}else{for(let ct of Y){if(F.token.isCancellationRequested)return!0;Xe.push(await ee(ct))}for(let ct=0;ct({text:Nt.text,range:Zt.lift(Nt.range),forceMoveMarkers:!0})),Nt=>{for(let{range:Yt}of Nt)if(Zt.areIntersectingOrTouching(Yt,Ct))return[new ic(Yt.startLineNumber,Yt.startColumn,Yt.endLineNumber,Yt.endColumn)];return null})}return L.playSignal(Tf.format,{userGesture:d}),!0}async function GDi(l,e,r,o,c,d){let h=l.get(Pa),b=l.get(xa),w=m$(e)?e.getModel():e,N=$Di(b.documentFormattingEditProvider,b.documentRangeFormattingEditProvider,w),L=await KLe.select(N,w,r,1);L&&(o.report(L),await h.invokeFunction(zUi,L,e,r,c,d))}async function zUi(l,e,r,o,c,d){let h=l.get(kA),b=l.get(JR),w,N;m$(r)?(w=r.getModel(),N=new $R(r,5,void 0,c)):(w=r,N=new $Le(r,c));let L;try{let B=await e.provideDocumentFormattingEdits(w,w.getFormattingOptions(),N.token);if(L=await h.computeMoreMinimalEdits(w.uri,B),N.token.isCancellationRequested)return!0}finally{N.dispose()}if(!L||L.length===0)return!1;if(m$(r))GLe.execute(r,L,o!==2),o!==2&&r.revealPositionInCenterIfOutsideViewport(r.getPosition(),1);else{let[{range:B}]=L,F=new ic(B.startLineNumber,B.startColumn,B.endLineNumber,B.endColumn);w.pushEditOperations([F],L.map(Y=>({text:Y.text,range:Zt.lift(Y.range),forceMoveMarkers:!0})),Y=>{for(let{range:Z}of Y)if(Zt.areIntersectingOrTouching(Z,F))return[new ic(Z.startLineNumber,Z.startColumn,Z.endLineNumber,Z.endColumn)];return null})}return b.playSignal(Tf.format,{userGesture:d}),!0}async function VUi(l,e,r,o,c,d){let h=e.documentRangeFormattingEditProvider.ordered(r);for(let b of h){let w=await Promise.resolve(b.provideDocumentRangeFormattingEdits(r,o,c,d)).catch(ch);if(CS(w))return await l.computeMoreMinimalEdits(r.uri,w)}}async function HUi(l,e,r,o,c){let d=$Di(e.documentFormattingEditProvider,e.documentRangeFormattingEditProvider,r);for(let h of d){let b=await Promise.resolve(h.provideDocumentFormattingEdits(r,o,c)).catch(ch);if(CS(b))return await l.computeMoreMinimalEdits(r.uri,b)}}function Ici(l,e,r,o,c,d,h){let b=e.onTypeFormattingEditProvider.ordered(r);return b.length===0||b[0].autoFormatTriggerCharacters.indexOf(c)<0?Promise.resolve(void 0):Promise.resolve(b[0].provideOnTypeFormattingEdits(r,o,c,d,h)).catch(ch).then(w=>l.computeMoreMinimalEdits(r.uri,w))}var KLe,Nci=ti(()=>{sd();Sh();Du();QL();mB();Fh();s0();m_e();uJe();Iu();Xa();j0();r_e();CB();Eci();W0();qDi();bl();wm();UO();Sxe();KLe=class l{static setFormatterSelector(e){return{dispose:l._selectors.unshift(e)}}static async select(e,r,o,c){if(e.length===0)return;let d=S_.first(l._selectors);if(d)return await d(e,r,o,c)}};KLe._selectors=new QS;df.registerCommand("_executeFormatRangeProvider",async function(l,...e){let[r,o,c]=e;P_(qc.isUri(r)),P_(Zt.isIRange(o));let d=l.get(ak),h=l.get(kA),b=l.get(xa),w=await d.createModelReference(r);try{return VUi(h,b,w.object.textEditorModel,Zt.lift(o),c,Nd.None)}finally{w.dispose()}});df.registerCommand("_executeFormatDocumentProvider",async function(l,...e){let[r,o]=e;P_(qc.isUri(r));let c=l.get(ak),d=l.get(kA),h=l.get(xa),b=await c.createModelReference(r);try{return HUi(d,h,b.object.textEditorModel,o,Nd.None)}finally{b.dispose()}});df.registerCommand("_executeFormatOnTypeProvider",async function(l,...e){let[r,o,c,d]=e;P_(qc.isUri(r)),P_(qn.isIPosition(o)),P_(typeof c=="string");let h=l.get(ak),b=l.get(kA),w=l.get(xa),N=await h.createModelReference(r);try{return Ici(b,w,N.object.textEditorModel,qn.lift(o),c,d,Nd.None)}finally{N.dispose()}})});var Yy={};od(Yy,{CancellationTokenSource:()=>UUi,Emitter:()=>JUi,KeyCode:()=>qUi,KeyMod:()=>$Ui,MarkerSeverity:()=>Lci,MarkerTag:()=>YUi,Position:()=>GUi,Range:()=>Pci,Selection:()=>KUi,SelectionDirection:()=>XUi,Token:()=>ZUi,Uri:()=>QUi,editor:()=>Kre,languages:()=>rpt});var u8,UUi,JUi,qUi,$Ui,GUi,Pci,KUi,XUi,Lci,YUi,QUi,ZUi,Kre,rpt,Aci,OT=ti(()=>{TT();vQt();MDi();HDi();Nci();XF.wrappingIndent.defaultValue=0;XF.glyphMargin.defaultValue=!1;XF.autoIndent.defaultValue=3;XF.overviewRulerLanes.defaultValue=2;KLe.setFormatterSelector((l,e,r)=>Promise.resolve(l[0]));u8=wIt();u8.editor=FDi();u8.languages=VDi();UUi=u8.CancellationTokenSource,JUi=u8.Emitter,qUi=u8.KeyCode,$Ui=u8.KeyMod,GUi=u8.Position,Pci=u8.Range,KUi=u8.Selection,XUi=u8.SelectionDirection,Lci=u8.MarkerSeverity,YUi=u8.MarkerTag,QUi=u8.Uri,ZUi=u8.Token,Kre=u8.editor,rpt=u8.languages,Aci=globalThis.MonacoEnvironment;(Aci?.globalAPI||typeof define=="function"&&define.amd)&&(globalThis.monaco=u8);typeof globalThis.require<"u"&&typeof globalThis.require.config=="function"&&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 QDi={};od(QDi,{conf:()=>sJi,language:()=>aJi});var sJi,aJi,ZDi=ti(()=>{sJi={comments:{lineComment:"*"},brackets:[["[","]"],["(",")"]]},aJi={defaultToken:"invalid",ignoreCase:!0,tokenPostfix:".abap",keywords:["abap-source","abbreviated","abstract","accept","accepting","according","activation","actual","add","add-corresponding","adjacent","after","alias","aliases","align","all","allocate","alpha","analysis","analyzer","and","append","appendage","appending","application","archive","area","arithmetic","as","ascending","aspect","assert","assign","assigned","assigning","association","asynchronous","at","attributes","authority","authority-check","avg","back","background","backup","backward","badi","base","before","begin","between","big","binary","bintohex","bit","black","blank","blanks","blob","block","blocks","blue","bound","boundaries","bounds","boxed","break-point","buffer","by","bypassing","byte","byte-order","call","calling","case","cast","casting","catch","center","centered","chain","chain-input","chain-request","change","changing","channels","character","char-to-hex","check","checkbox","ci_","circular","class","class-coding","class-data","class-events","class-methods","class-pool","cleanup","clear","client","clob","clock","close","coalesce","code","coding","col_background","col_group","col_heading","col_key","col_negative","col_normal","col_positive","col_total","collect","color","column","columns","comment","comments","commit","common","communication","comparing","component","components","compression","compute","concat","concat_with_space","concatenate","cond","condense","condition","connect","connection","constants","context","contexts","continue","control","controls","conv","conversion","convert","copies","copy","corresponding","country","cover","cpi","create","creating","critical","currency","currency_conversion","current","cursor","cursor-selection","customer","customer-function","dangerous","data","database","datainfo","dataset","date","dats_add_days","dats_add_months","dats_days_between","dats_is_valid","daylight","dd/mm/yy","dd/mm/yyyy","ddmmyy","deallocate","decimal_shift","decimals","declarations","deep","default","deferred","define","defining","definition","delete","deleting","demand","department","descending","describe","destination","detail","dialog","directory","disconnect","display","display-mode","distinct","divide","divide-corresponding","division","do","dummy","duplicate","duplicates","duration","during","dynamic","dynpro","edit","editor-call","else","elseif","empty","enabled","enabling","encoding","end","endat","endcase","endcatch","endchain","endclass","enddo","endenhancement","end-enhancement-section","endexec","endform","endfunction","endian","endif","ending","endinterface","end-lines","endloop","endmethod","endmodule","end-of-definition","end-of-editing","end-of-file","end-of-page","end-of-selection","endon","endprovide","endselect","end-test-injection","end-test-seam","endtry","endwhile","endwith","engineering","enhancement","enhancement-point","enhancements","enhancement-section","entries","entry","enum","environment","equiv","errormessage","errors","escaping","event","events","exact","except","exception","exceptions","exception-table","exclude","excluding","exec","execute","exists","exit","exit-command","expand","expanding","expiration","explicit","exponent","export","exporting","extend","extended","extension","extract","fail","fetch","field","field-groups","fields","field-symbol","field-symbols","file","filter","filters","filter-table","final","find","first","first-line","fixed-point","fkeq","fkge","flush","font","for","form","format","forward","found","frame","frames","free","friends","from","function","functionality","function-pool","further","gaps","generate","get","giving","gkeq","gkge","global","grant","green","group","groups","handle","handler","harmless","hashed","having","hdb","header","headers","heading","head-lines","help-id","help-request","hextobin","hide","high","hint","hold","hotspot","icon","id","identification","identifier","ids","if","ignore","ignoring","immediately","implementation","implementations","implemented","implicit","import","importing","in","inactive","incl","include","includes","including","increment","index","index-line","infotypes","inheriting","init","initial","initialization","inner","inout","input","insert","instance","instances","instr","intensified","interface","interface-pool","interfaces","internal","intervals","into","inverse","inverted-date","is","iso","job","join","keep","keeping","kernel","key","keys","keywords","kind","language","last","late","layout","leading","leave","left","left-justified","leftplus","leftspace","legacy","length","let","level","levels","like","line","lines","line-count","linefeed","line-selection","line-size","list","listbox","list-processing","little","llang","load","load-of-program","lob","local","locale","locator","logfile","logical","log-point","long","loop","low","lower","lpad","lpi","ltrim","mail","main","major-id","mapping","margin","mark","mask","match","matchcode","max","maximum","medium","members","memory","mesh","message","message-id","messages","messaging","method","methods","min","minimum","minor-id","mm/dd/yy","mm/dd/yyyy","mmddyy","mode","modif","modifier","modify","module","move","move-corresponding","multiply","multiply-corresponding","name","nametab","native","nested","nesting","new","new-line","new-page","new-section","next","no","no-display","no-extension","no-gap","no-gaps","no-grouping","no-heading","no-scrolling","no-sign","no-title","no-topofpage","no-zero","node","nodes","non-unicode","non-unique","not","null","number","object","objects","obligatory","occurrence","occurrences","occurs","of","off","offset","ole","on","only","open","option","optional","options","or","order","other","others","out","outer","output","output-length","overflow","overlay","pack","package","pad","padding","page","pages","parameter","parameters","parameter-table","part","partially","pattern","percentage","perform","performing","person","pf1","pf10","pf11","pf12","pf13","pf14","pf15","pf2","pf3","pf4","pf5","pf6","pf7","pf8","pf9","pf-status","pink","places","pool","pos_high","pos_low","position","pragmas","precompiled","preferred","preserving","primary","print","print-control","priority","private","procedure","process","program","property","protected","provide","public","push","pushbutton","put","queue-only","quickinfo","radiobutton","raise","raising","range","ranges","read","reader","read-only","receive","received","receiver","receiving","red","redefinition","reduce","reduced","ref","reference","refresh","regex","reject","remote","renaming","replace","replacement","replacing","report","request","requested","reserve","reset","resolution","respecting","responsible","result","results","resumable","resume","retry","return","returncode","returning","returns","right","right-justified","rightplus","rightspace","risk","rmc_communication_failure","rmc_invalid_status","rmc_system_failure","role","rollback","rows","rpad","rtrim","run","sap","sap-spool","saving","scale_preserving","scale_preserving_scientific","scan","scientific","scientific_with_leading_zero","scroll","scroll-boundary","scrolling","search","secondary","seconds","section","select","selection","selections","selection-screen","selection-set","selection-sets","selection-table","select-options","send","separate","separated","set","shared","shift","short","shortdump-id","sign_as_postfix","single","size","skip","skipping","smart","some","sort","sortable","sorted","source","specified","split","spool","spots","sql","sqlscript","stable","stamp","standard","starting","start-of-editing","start-of-selection","state","statement","statements","static","statics","statusinfo","step-loop","stop","structure","structures","style","subkey","submatches","submit","subroutine","subscreen","subtract","subtract-corresponding","suffix","sum","summary","summing","supplied","supply","suppress","switch","switchstates","symbol","syncpoints","syntax","syntax-check","syntax-trace","system-call","system-exceptions","system-exit","tab","tabbed","table","tables","tableview","tabstrip","target","task","tasks","test","testing","test-injection","test-seam","text","textpool","then","throw","time","times","timestamp","timezone","tims_is_valid","title","titlebar","title-lines","to","tokenization","tokens","top-lines","top-of-page","trace-file","trace-table","trailing","transaction","transfer","transformation","translate","transporting","trmac","truncate","truncation","try","tstmp_add_seconds","tstmp_current_utctimestamp","tstmp_is_valid","tstmp_seconds_between","type","type-pool","type-pools","types","uline","unassign","under","unicode","union","unique","unit_conversion","unix","unpack","until","unwind","up","update","upper","user","user-command","using","utf-8","valid","value","value-request","values","vary","varying","verification-message","version","via","view","visible","wait","warning","when","whenever","where","while","width","window","windows","with","with-heading","without","with-title","word","work","write","writer","xml","xsd","yellow","yes","yymmdd","zero","zone","abap_system_timezone","abap_user_timezone","access","action","adabas","adjust_numbers","allow_precision_loss","allowed","amdp","applicationuser","as_geo_json","as400","associations","balance","behavior","breakup","bulk","cds","cds_client","check_before_save","child","clients","corr","corr_spearman","cross","cycles","datn_add_days","datn_add_months","datn_days_between","dats_from_datn","dats_tims_to_tstmp","dats_to_datn","db2","db6","ddl","dense_rank","depth","deterministic","discarding","entities","entity","error","failed","finalize","first_value","fltp_to_dec","following","fractional","full","graph","grouping","hierarchy","hierarchy_ancestors","hierarchy_ancestors_aggregate","hierarchy_descendants","hierarchy_descendants_aggregate","hierarchy_siblings","incremental","indicators","lag","last_value","lead","leaves","like_regexpr","link","locale_sap","lock","locks","many","mapped","matched","measures","median","mssqlnt","multiple","nodetype","ntile","nulls","occurrences_regexpr","one","operations","oracle","orphans","over","parent","parents","partition","pcre","period","pfcg_mapping","preceding","privileged","product","projection","rank","redirected","replace_regexpr","reported","response","responses","root","row","row_number","sap_system_date","save","schema","session","sets","shortdump","siblings","spantree","start","stddev","string_agg","subtotal","sybase","tims_from_timn","tims_to_timn","to_blob","to_clob","total","trace-entry","tstmp_to_dats","tstmp_to_dst","tstmp_to_tims","tstmpl_from_utcl","tstmpl_to_utcl","unbounded","utcl_add_seconds","utcl_current","utcl_seconds_between","uuid","var","verbatim"],builtinFunctions:["abs","acos","asin","atan","bit-set","boolc","boolx","ceil","char_off","charlen","cmax","cmin","concat_lines_of","contains","contains_any_not_of","contains_any_of","cos","cosh","count","count_any_not_of","count_any_of","dbmaxlen","distance","escape","exp","find_any_not_of","find_any_of","find_end","floor","frac","from_mixed","ipow","line_exists","line_index","log","log10","matches","nmax","nmin","numofchar","repeat","rescale","reverse","round","segment","shift_left","shift_right","sign","sin","sinh","sqrt","strlen","substring","substring_after","substring_before","substring_from","substring_to","tan","tanh","to_lower","to_mixed","to_upper","trunc","utclong_add","utclong_current","utclong_diff","xsdbool","xstrlen"],typeKeywords:["b","c","d","decfloat16","decfloat34","f","i","int8","n","p","s","string","t","utclong","x","xstring","any","clike","csequence","decfloat","numeric","simple","xsequence","accp","char","clnt","cuky","curr","datn","dats","d16d","d16n","d16r","d34d","d34n","d34r","dec","df16_dec","df16_raw","df34_dec","df34_raw","fltp","geom_ewkb","int1","int2","int4","lang","lchr","lraw","numc","quan","raw","rawstring","sstring","timn","tims","unit","utcl","df16_scl","df34_scl","prec","varc","abap_bool","abap_false","abap_true","abap_undefined","me","screen","space","super","sy","syst","table_line","*sys*"],builtinMethods:["class_constructor","constructor"],derivedTypes:["%CID","%CID_REF","%CONTROL","%DATA","%ELEMENT","%FAIL","%KEY","%MSG","%PARAM","%PID","%PID_ASSOC","%PID_PARENT","%_HINTS"],cdsLanguage:["@AbapAnnotation","@AbapCatalog","@AccessControl","@API","@ClientDependent","@ClientHandling","@CompatibilityContract","@DataAging","@EndUserText","@Environment","@LanguageDependency","@MappingRole","@Metadata","@MetadataExtension","@ObjectModel","@Scope","@Semantics","$EXTENSION","$SELF"],selectors:["->","->*","=>","~","~*"],operators:[" +"," -","/","*","**","div","mod","=","#","@","+=","-=","*=","/=","**=","&&=","?=","&","&&","bit-and","bit-not","bit-or","bit-xor","m","o","z","<"," >","<=",">=","<>","><","=<","=>","bt","byte-ca","byte-cn","byte-co","byte-cs","byte-na","byte-ns","ca","cn","co","cp","cs","eq","ge","gt","le","lt","na","nb","ne","np","ns","*/","*:","--","/*","//"],symbols:/[=>))*/,{cases:{"@typeKeywords":"type","@keywords":"keyword","@cdsLanguage":"annotation","@derivedTypes":"type","@builtinFunctions":"type","@builtinMethods":"type","@operators":"key","@default":"identifier"}}],[/<[\w]+>/,"identifier"],[/##[\w|_]+/,"comment"],{include:"@whitespace"},[/[:,.]/,"delimiter"],[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@selectors":"tag","@operators":"key","@default":""}}],[/'/,{token:"string",bracket:"@open",next:"@stringquote"}],[/`/,{token:"string",bracket:"@open",next:"@stringping"}],[/\|/,{token:"string",bracket:"@open",next:"@stringtemplate"}],[/\d+/,"number"]],stringtemplate:[[/[^\\\|]+/,"string"],[/\\\|/,"string"],[/\|/,{token:"string",bracket:"@close",next:"@pop"}]],stringping:[[/[^\\`]+/,"string"],[/`/,{token:"string",bracket:"@close",next:"@pop"}]],stringquote:[[/[^\\']+/,"string"],[/'/,{token:"string",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/^\*.*$/,"comment"],[/\".*$/,"comment"]]}}});var eIi={};od(eIi,{conf:()=>cJi,language:()=>dJi});var cJi,lJi,uJi,mFt,dJi,tIi=ti(()=>{cJi={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:))")}}},lJi=["abstract","activate","and","any","array","as","asc","assert","autonomous","begin","bigdecimal","blob","boolean","break","bulk","by","case","cast","catch","char","class","collect","commit","const","continue","convertcurrency","decimal","default","delete","desc","do","double","else","end","enum","exception","exit","export","extends","false","final","finally","float","for","from","future","get","global","goto","group","having","hint","if","implements","import","in","inner","insert","instanceof","int","interface","into","join","last_90_days","last_month","last_n_days","last_week","like","limit","list","long","loop","map","merge","native","new","next_90_days","next_month","next_n_days","next_week","not","null","nulls","number","object","of","on","or","outer","override","package","parallel","pragma","private","protected","public","retrieve","return","returning","rollback","savepoint","search","select","set","short","sort","stat","static","strictfp","super","switch","synchronized","system","testmethod","then","this","this_month","this_week","throw","throws","today","tolabel","tomorrow","transaction","transient","trigger","true","try","type","undelete","update","upsert","using","virtual","void","volatile","webservice","when","where","while","yesterday"],uJi=l=>l.charAt(0).toUpperCase()+l.substr(1),mFt=[];lJi.forEach(l=>{mFt.push(l),mFt.push(l.toUpperCase()),mFt.push(uJi(l))});dJi={defaultToken:"",tokenPostfix:".apex",keywords:mFt,operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,"annotation"],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)[fFdD]/,"number.float"],[/(@digits)[lL]?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@apexdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],apexdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]]}}});var iIi={};od(iIi,{conf:()=>fJi,language:()=>_Ji});var fJi,_Ji,nIi=ti(()=>{fJi={comments:{lineComment:"#"}},_Ji={defaultToken:"keyword",ignoreCase:!0,tokenPostfix:".azcli",str:/[^#\s]/,tokenizer:{root:[{include:"@comment"},[/\s-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":{token:"key.identifier",next:"@type"}}}],[/^-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":{token:"key.identifier",next:"@type"}}}]],type:[{include:"@comment"},[/-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":"key.identifier"}}],[/@str+\s*/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}]],comment:[[/#.*$/,{cases:{"@eos":{token:"comment",next:"@popall"}}}]]}}});var rIi={};od(rIi,{conf:()=>pJi,language:()=>mJi});var pJi,mJi,oIi=ti(()=>{pJi={comments:{lineComment:"REM"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],folding:{markers:{start:new RegExp("^\\s*(::\\s*|REM\\s+)#region"),end:new RegExp("^\\s*(::\\s*|REM\\s+)#endregion")}}},mJi={defaultToken:"",ignoreCase:!0,tokenPostfix:".bat",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:/call|defined|echo|errorlevel|exist|for|goto|if|pause|set|shift|start|title|not|pushd|popd/,symbols:/[=>kJi,language:()=>wJi});var hJi,gJi,yJi,vJi,bJi,SJi,xJi,CJi,kJi,wJi,aIi=ti(()=>{hJi=l=>`\\b${l}\\b`,gJi="[_a-zA-Z]",yJi="[_a-zA-Z0-9]",vJi=hJi(`${gJi}${yJi}*`),bJi=["targetScope","resource","module","param","var","output","for","in","if","existing"],SJi=["true","false","null"],xJi="[ \\t\\r\\n]",CJi="[0-9]+",kJi={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'"},{open:"'''",close:"'''"}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:"'''",close:"'''",notIn:["string","comment"]}],autoCloseBefore:`:.,=}])' + `,indentationRules:{increaseIndentPattern:new RegExp("^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$"),decreaseIndentPattern:new RegExp("^((?!.*?\\/\\*).*\\*/)?\\s*[\\}\\]].*$")}},wJi={defaultToken:"",tokenPostfix:".bicep",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],symbols:/[=>TJi,language:()=>EJi});var TJi,EJi,lIi=ti(()=>{TJi={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'},{open:"(*",close:"*)"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'},{open:"(*",close:"*)"}]},EJi={defaultToken:"",tokenPostfix:".cameligo",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],keywords:["abs","assert","block","Bytes","case","Crypto","Current","else","failwith","false","for","fun","if","in","let","let%entry","let%init","List","list","Map","map","match","match%nat","mod","not","operation","Operation","of","record","Set","set","sender","skip","source","String","then","to","true","type","with"],typeKeywords:["int","unit","string","tz","nat","bool"],operators:["=",">","<","<=",">=","<>",":",":=","and","mod","or","+","-","*","/","@","&","^","%","->","<-","&&","||"],symbols:/[=><:@\^&|+\-*\/\^%]+/,tokenizer:{root:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\$[0-9a-fA-F]{1,16}/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'/,"string","@string"],[/'[^\\']'/,"string"],[/'/,"string.invalid"],[/\#\d+/,"string"]],comment:[[/[^\(\*]+/,"comment"],[/\*\)/,"comment","@pop"],[/\(\*/,"comment"]],string:[[/[^\\']+/,"string"],[/\\./,"string.escape.invalid"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"],[/\(\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}}});var uIi={};od(uIi,{conf:()=>DJi,language:()=>IJi});var DJi,IJi,dIi=ti(()=>{DJi={comments:{lineComment:";;"},brackets:[["[","]"],["(",")"],["{","}"]],autoClosingPairs:[{open:"[",close:"]"},{open:'"',close:'"'},{open:"(",close:")"},{open:"{",close:"}"}],surroundingPairs:[{open:"[",close:"]"},{open:'"',close:'"'},{open:"(",close:")"},{open:"{",close:"}"}]},IJi={defaultToken:"",ignoreCase:!0,tokenPostfix:".clj",brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"}],constants:["true","false","nil"],numbers:/^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/,characters:/^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/,escapes:/^\\(?:["'\\bfnrt]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,qualifiedSymbols:/^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/,specialForms:[".","catch","def","do","if","monitor-enter","monitor-exit","new","quote","recur","set!","throw","try","var"],coreSymbols:["*","*'","*1","*2","*3","*agent*","*allow-unresolved-vars*","*assert*","*clojure-version*","*command-line-args*","*compile-files*","*compile-path*","*compiler-options*","*data-readers*","*default-data-reader-fn*","*e","*err*","*file*","*flush-on-newline*","*fn-loader*","*in*","*math-context*","*ns*","*out*","*print-dup*","*print-length*","*print-level*","*print-meta*","*print-namespace-maps*","*print-readably*","*read-eval*","*reader-resolver*","*source-path*","*suppress-read*","*unchecked-math*","*use-context-classloader*","*verbose-defrecords*","*warn-on-reflection*","+","+'","-","-'","->","->>","->ArrayChunk","->Eduction","->Vec","->VecNode","->VecSeq","-cache-protocol-fn","-reset-methods","..","/","<","<=","=","==",">",">=","EMPTY-NODE","Inst","StackTraceElement->vec","Throwable->map","accessor","aclone","add-classpath","add-watch","agent","agent-error","agent-errors","aget","alength","alias","all-ns","alter","alter-meta!","alter-var-root","amap","ancestors","and","any?","apply","areduce","array-map","as->","aset","aset-boolean","aset-byte","aset-char","aset-double","aset-float","aset-int","aset-long","aset-short","assert","assoc","assoc!","assoc-in","associative?","atom","await","await-for","await1","bases","bean","bigdec","bigint","biginteger","binding","bit-and","bit-and-not","bit-clear","bit-flip","bit-not","bit-or","bit-set","bit-shift-left","bit-shift-right","bit-test","bit-xor","boolean","boolean-array","boolean?","booleans","bound-fn","bound-fn*","bound?","bounded-count","butlast","byte","byte-array","bytes","bytes?","case","cast","cat","char","char-array","char-escape-string","char-name-string","char?","chars","chunk","chunk-append","chunk-buffer","chunk-cons","chunk-first","chunk-next","chunk-rest","chunked-seq?","class","class?","clear-agent-errors","clojure-version","coll?","comment","commute","comp","comparator","compare","compare-and-set!","compile","complement","completing","concat","cond","cond->","cond->>","condp","conj","conj!","cons","constantly","construct-proxy","contains?","count","counted?","create-ns","create-struct","cycle","dec","dec'","decimal?","declare","dedupe","default-data-readers","definline","definterface","defmacro","defmethod","defmulti","defn","defn-","defonce","defprotocol","defrecord","defstruct","deftype","delay","delay?","deliver","denominator","deref","derive","descendants","destructure","disj","disj!","dissoc","dissoc!","distinct","distinct?","doall","dorun","doseq","dosync","dotimes","doto","double","double-array","double?","doubles","drop","drop-last","drop-while","eduction","empty","empty?","ensure","ensure-reduced","enumeration-seq","error-handler","error-mode","eval","even?","every-pred","every?","ex-data","ex-info","extend","extend-protocol","extend-type","extenders","extends?","false?","ffirst","file-seq","filter","filterv","find","find-keyword","find-ns","find-protocol-impl","find-protocol-method","find-var","first","flatten","float","float-array","float?","floats","flush","fn","fn?","fnext","fnil","for","force","format","frequencies","future","future-call","future-cancel","future-cancelled?","future-done?","future?","gen-class","gen-interface","gensym","get","get-in","get-method","get-proxy-class","get-thread-bindings","get-validator","group-by","halt-when","hash","hash-combine","hash-map","hash-ordered-coll","hash-set","hash-unordered-coll","ident?","identical?","identity","if-let","if-not","if-some","ifn?","import","in-ns","inc","inc'","indexed?","init-proxy","inst-ms","inst-ms*","inst?","instance?","int","int-array","int?","integer?","interleave","intern","interpose","into","into-array","ints","io!","isa?","iterate","iterator-seq","juxt","keep","keep-indexed","key","keys","keyword","keyword?","last","lazy-cat","lazy-seq","let","letfn","line-seq","list","list*","list?","load","load-file","load-reader","load-string","loaded-libs","locking","long","long-array","longs","loop","macroexpand","macroexpand-1","make-array","make-hierarchy","map","map-entry?","map-indexed","map?","mapcat","mapv","max","max-key","memfn","memoize","merge","merge-with","meta","method-sig","methods","min","min-key","mix-collection-hash","mod","munge","name","namespace","namespace-munge","nat-int?","neg-int?","neg?","newline","next","nfirst","nil?","nnext","not","not-any?","not-empty","not-every?","not=","ns","ns-aliases","ns-imports","ns-interns","ns-map","ns-name","ns-publics","ns-refers","ns-resolve","ns-unalias","ns-unmap","nth","nthnext","nthrest","num","number?","numerator","object-array","odd?","or","parents","partial","partition","partition-all","partition-by","pcalls","peek","persistent!","pmap","pop","pop!","pop-thread-bindings","pos-int?","pos?","pr","pr-str","prefer-method","prefers","primitives-classnames","print","print-ctor","print-dup","print-method","print-simple","print-str","printf","println","println-str","prn","prn-str","promise","proxy","proxy-call-with-super","proxy-mappings","proxy-name","proxy-super","push-thread-bindings","pvalues","qualified-ident?","qualified-keyword?","qualified-symbol?","quot","rand","rand-int","rand-nth","random-sample","range","ratio?","rational?","rationalize","re-find","re-groups","re-matcher","re-matches","re-pattern","re-seq","read","read-line","read-string","reader-conditional","reader-conditional?","realized?","record?","reduce","reduce-kv","reduced","reduced?","reductions","ref","ref-history-count","ref-max-history","ref-min-history","ref-set","refer","refer-clojure","reify","release-pending-sends","rem","remove","remove-all-methods","remove-method","remove-ns","remove-watch","repeat","repeatedly","replace","replicate","require","reset!","reset-meta!","reset-vals!","resolve","rest","restart-agent","resultset-seq","reverse","reversible?","rseq","rsubseq","run!","satisfies?","second","select-keys","send","send-off","send-via","seq","seq?","seqable?","seque","sequence","sequential?","set","set-agent-send-executor!","set-agent-send-off-executor!","set-error-handler!","set-error-mode!","set-validator!","set?","short","short-array","shorts","shuffle","shutdown-agents","simple-ident?","simple-keyword?","simple-symbol?","slurp","some","some->","some->>","some-fn","some?","sort","sort-by","sorted-map","sorted-map-by","sorted-set","sorted-set-by","sorted?","special-symbol?","spit","split-at","split-with","str","string?","struct","struct-map","subs","subseq","subvec","supers","swap!","swap-vals!","symbol","symbol?","sync","tagged-literal","tagged-literal?","take","take-last","take-nth","take-while","test","the-ns","thread-bound?","time","to-array","to-array-2d","trampoline","transduce","transient","tree-seq","true?","type","unchecked-add","unchecked-add-int","unchecked-byte","unchecked-char","unchecked-dec","unchecked-dec-int","unchecked-divide-int","unchecked-double","unchecked-float","unchecked-inc","unchecked-inc-int","unchecked-int","unchecked-long","unchecked-multiply","unchecked-multiply-int","unchecked-negate","unchecked-negate-int","unchecked-remainder-int","unchecked-short","unchecked-subtract","unchecked-subtract-int","underive","unquote","unquote-splicing","unreduced","unsigned-bit-shift-right","update","update-in","update-proxy","uri?","use","uuid?","val","vals","var-get","var-set","var?","vary-meta","vec","vector","vector-of","vector?","volatile!","volatile?","vreset!","vswap!","when","when-first","when-let","when-not","when-some","while","with-bindings","with-bindings*","with-in-str","with-loading-context","with-local-vars","with-meta","with-open","with-out-str","with-precision","with-redefs","with-redefs-fn","xml-seq","zero?","zipmap"],tokenizer:{root:[{include:"@whitespace"},[/@numbers/,"number"],[/@characters/,"string"],{include:"@string"},[/[()\[\]{}]/,"@brackets"],[/\/#"(?:\.|(?:")|[^"\n])*"\/g/,"regexp"],[/[#'@^`~]/,"meta"],[/@qualifiedSymbols/,{cases:{"^:.+$":"constant","@specialForms":"keyword","@coreSymbols":"keyword","@constants":"constant","@default":"identifier"}}]],whitespace:[[/[\s,]+/,"white"],[/;.*$/,"comment"],[/\(comment\b/,"comment","@comment"]],comment:[[/\(/,"comment","@push"],[/\)/,"comment","@pop"],[/[^()]/,"comment"]],string:[[/"/,"string","@multiLineString"]],multiLineString:[[/"/,"string","@popall"],[/@escapes/,"string.escape"],[/./,"string"]]}}});var fIi={};od(fIi,{conf:()=>NJi,language:()=>AJi});var NJi,AJi,_Ii=ti(()=>{NJi={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\$\-\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{blockComment:["###","###"],lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},AJi={defaultToken:"",ignoreCase:!0,tokenPostfix:".coffee",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],regEx:/\/(?!\/\/)(?:[^\/\\]|\\.)*\/[igm]*/,keywords:["and","or","is","isnt","not","on","yes","@","no","off","true","false","null","this","new","delete","typeof","in","instanceof","return","throw","break","continue","debugger","if","else","switch","for","while","do","try","catch","finally","class","extends","super","undefined","then","unless","until","loop","of","by","when"],symbols:/[=>PJi,language:()=>LJi});var PJi,LJi,Mci=ti(()=>{PJi={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#pragma\\s+region\\b"),end:new RegExp("^\\s*#pragma\\s+endregion\\b")}}},LJi={defaultToken:"",tokenPostfix:".cpp",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","for","friend","gcnew","generic","goto","if","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m512","__m512d","__m512i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>="],symbols:/[=>\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/,"number.hex"],[/0[0-7']*[0-7](@integersuffix)/,"number.octal"],[/0[bB][0-1']*[0-1](@integersuffix)/,"number.binary"],[/\d[\d']*\d(@integersuffix)/,"number"],[/\d(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*\\$/,"comment","@linecomment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],linecomment:[[/.*[^\\]$/,"comment","@pop"],[/[^]+/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],raw:[[/[^)]+/,"string.raw"],[/\)$S2\"/,{token:"string.raw.end",next:"@pop"}],[/\)/,"string.raw"]],annotation:[{include:"@whitespace"},[/using|alignas/,"keyword"],[/[a-zA-Z0-9_]+/,"annotation"],[/[,:]/,"delimiter"],[/[()]/,"@brackets"],[/\]\s*\]/,{token:"annotation",next:"@pop"}]],include:[[/(\s*)(<)([^<>]*)(>)/,["","keyword.directive.include.begin","string.include.identifier",{token:"keyword.directive.include.end",next:"@pop"}]],[/(\s*)(")([^"]*)(")/,["","keyword.directive.include.begin","string.include.identifier",{token:"keyword.directive.include.end",next:"@pop"}]]]}}});var pIi={};od(pIi,{conf:()=>OJi,language:()=>FJi});var OJi,FJi,mIi=ti(()=>{OJi={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\$\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},FJi={defaultToken:"",tokenPostfix:".cs",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],keywords:["extern","alias","using","bool","decimal","sbyte","byte","short","ushort","int","uint","long","ulong","char","float","double","object","dynamic","string","assembly","is","as","ref","out","this","base","new","typeof","void","checked","unchecked","default","delegate","var","const","if","else","switch","case","while","do","for","foreach","in","break","continue","goto","return","throw","try","catch","finally","lock","yield","from","let","where","join","on","equals","into","orderby","ascending","descending","select","group","by","namespace","partial","class","field","event","method","param","public","protected","internal","private","abstract","sealed","static","struct","readonly","volatile","virtual","override","params","get","set","add","remove","operator","true","false","implicit","explicit","interface","enum","null","async","await","fixed","sizeof","stackalloc","unsafe","nameof","when"],namespaceFollows:["namespace","using"],parenFollows:["if","for","while","switch","foreach","using","catch","when"],operators:["=","??","||","&&","|","^","&","==","!=","<=",">=","<<","+","-","*","/","%","!","~","++","--","+=","-=","*=","/=","%=","&=","|=","^=","<<=",">>=",">>","=>"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/[0-9_]*\.[0-9_]+([eE][\-+]?\d+)?[fFdD]?/,"number.float"],[/0[xX][0-9a-fA-F_]+/,"number.hex"],[/0[bB][01_]+/,"number.hex"],[/[0-9_]+/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",next:"@string"}],[/\$\@"/,{token:"string.quote",next:"@litinterpstring"}],[/\@"/,{token:"string.quote",next:"@litstring"}],[/\$"/,{token:"string.quote",next:"@interpolatedstring"}],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],qualified:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],[/\./,"delimiter"],["","","@pop"]],namespace:[{include:"@whitespace"},[/[A-Z]\w*/,"namespace"],[/[\.=]/,"delimiter"],["","","@pop"]],comment:[[/[^\/*]+/,"comment"],["\\*/","comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",next:"@pop"}]],litstring:[[/[^"]+/,"string"],[/""/,"string.escape"],[/"/,{token:"string.quote",next:"@pop"}]],litinterpstring:[[/[^"{]+/,"string"],[/""/,"string.escape"],[/{{/,"string.escape"],[/}}/,"string.escape"],[/{/,{token:"string.quote",next:"root.litinterpstring"}],[/"/,{token:"string.quote",next:"@pop"}]],interpolatedstring:[[/[^\\"{]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/{{/,"string.escape"],[/}}/,"string.escape"],[/{/,{token:"string.quote",next:"root.interpolatedstring"}],[/"/,{token:"string.quote",next:"@pop"}]],whitespace:[[/^[ \t\v\f]*#((r)|(load))(?=\s)/,"directive.csx"],[/^[ \t\v\f]*#\w.*$/,"namespace.cpp"],[/[ \t\v\f\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}}});var hIi={};od(hIi,{conf:()=>MJi,language:()=>RJi});var MJi,RJi,gIi=ti(()=>{MJi={brackets:[],autoClosingPairs:[],surroundingPairs:[]},RJi={keywords:[],typeKeywords:[],tokenPostfix:".csp",operators:[],symbols:/[=>BJi,language:()=>jJi});var BJi,jJi,vIi=ti(()=>{BJi={wordPattern:/(#?-?\d*\.\d\w*%?)|((::|[@#.!:])?[\w-?]+%?)|::|[@#.!:]/g,comments:{blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),end:new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")}}},jJi={defaultToken:"",tokenPostfix:".css",ws:`[ +\r\f]*`,identifier:"-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",brackets:[{open:"{",close:"}",token:"delimiter.bracket"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{root:[{include:"@selector"}],selector:[{include:"@comments"},{include:"@import"},{include:"@strings"},["[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)",{token:"keyword",next:"@keyframedeclaration"}],["[@](page|content|font-face|-moz-document)",{token:"keyword"}],["[@](charset|namespace)",{token:"keyword",next:"@declarationbody"}],["(url-prefix)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],["(url)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],{include:"@selectorname"},["[\\*]","tag"],["[>\\+,]","delimiter"],["\\[",{token:"delimiter.bracket",next:"@selectorattribute"}],["{",{token:"delimiter.bracket",next:"@selectorbody"}]],selectorbody:[{include:"@comments"},["[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))","attribute.name","@rulevalue"],["}",{token:"delimiter.bracket",next:"@pop"}]],selectorname:[["(\\.|#(?=[^{])|%|(@identifier)|:)+","tag"]],selectorattribute:[{include:"@term"},["]",{token:"delimiter.bracket",next:"@pop"}]],term:[{include:"@comments"},["(url-prefix)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],["(url)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],{include:"@functioninvocation"},{include:"@numbers"},{include:"@name"},{include:"@strings"},["([<>=\\+\\-\\*\\/\\^\\|\\~,])","delimiter"],[",","delimiter"]],rulevalue:[{include:"@comments"},{include:"@strings"},{include:"@term"},["!important","keyword"],[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],warndebug:[["[@](warn|debug)",{token:"keyword",next:"@declarationbody"}]],import:[["[@](import)",{token:"keyword",next:"@declarationbody"}]],urldeclaration:[{include:"@strings"},[`[^)\r +]+`,"string"],["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],parenthizedterm:[{include:"@term"},["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],declarationbody:[{include:"@term"},[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[/[^*/]+/,"comment"],[/./,"comment"]],name:[["@identifier","attribute.value"]],numbers:[["-?(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?",{token:"attribute.value.number",next:"@units"}],["#[0-9a-fA-F_]+(?!\\w)","attribute.value.hex"]],units:[["(em|ex|ch|rem|fr|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?","attribute.value.unit","@pop"]],keyframedeclaration:[["@identifier","attribute.value"],["{",{token:"delimiter.bracket",switchTo:"@keyframebody"}]],keyframebody:[{include:"@term"},["{",{token:"delimiter.bracket",next:"@selectorbody"}],["}",{token:"delimiter.bracket",next:"@pop"}]],functioninvocation:[["@identifier\\(",{token:"attribute.value",next:"@functionarguments"}]],functionarguments:[["\\$@identifier@ws:","attribute.name"],["[,]","delimiter"],{include:"@term"},["\\)",{token:"attribute.value",next:"@pop"}]],strings:[['~?"',{token:"string",next:"@stringenddoublequote"}],["~?'",{token:"string",next:"@stringendquote"}]],stringenddoublequote:[["\\\\.","string"],['"',{token:"string",next:"@pop"}],[/[^\\"]+/,"string"],[".","string"]],stringendquote:[["\\\\.","string"],["'",{token:"string",next:"@pop"}],[/[^\\']+/,"string"],[".","string"]]}}});var bIi={};od(bIi,{conf:()=>WJi,language:()=>zJi});var WJi,zJi,SIi=ti(()=>{WJi={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},zJi={defaultToken:"",tokenPostfix:".cypher",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ALL","AND","AS","ASC","ASCENDING","BY","CALL","CASE","CONTAINS","CREATE","DELETE","DESC","DESCENDING","DETACH","DISTINCT","ELSE","END","ENDS","EXISTS","IN","IS","LIMIT","MANDATORY","MATCH","MERGE","NOT","ON","ON","OPTIONAL","OR","ORDER","REMOVE","RETURN","SET","SKIP","STARTS","THEN","UNION","UNWIND","WHEN","WHERE","WITH","XOR","YIELD"],builtinLiterals:["true","TRUE","false","FALSE","null","NULL"],builtinFunctions:["abs","acos","asin","atan","atan2","avg","ceil","coalesce","collect","cos","cot","count","degrees","e","endNode","exists","exp","floor","head","id","keys","labels","last","left","length","log","log10","lTrim","max","min","nodes","percentileCont","percentileDisc","pi","properties","radians","rand","range","relationships","replace","reverse","right","round","rTrim","sign","sin","size","split","sqrt","startNode","stDev","stDevP","substring","sum","tail","tan","timestamp","toBoolean","toFloat","toInteger","toLower","toString","toUpper","trim","type"],operators:["+","-","*","/","%","^","=","<>","<",">","<=",">=","->","<-","-->","<--"],escapes:/\\(?:[tbnrf\\"'`]|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+/,octaldigits:/[0-7]+/,hexdigits:/[0-9a-fA-F]+/,tokenizer:{root:[[/[{}[\]()]/,"@brackets"],{include:"common"}],common:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/:[a-zA-Z_][\w]*/,"type.identifier"],[/[a-zA-Z_][\w]*(?=\()/,{cases:{"@builtinFunctions":"predefined.function"}}],[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":"keyword","@builtinLiterals":"predefined.literal","@default":"identifier"}}],[/`/,"identifier.escape","@identifierBacktick"],[/[;,.:|]/,"delimiter"],[/[<>=%+\-*/^]+/,{cases:{"@operators":"delimiter","@default":""}}]],numbers:[[/-?(@digits)[eE](-?(@digits))?/,"number.float"],[/-?(@digits)?\.(@digits)([eE]-?(@digits))?/,"number.float"],[/-?0x(@hexdigits)/,"number.hex"],[/-?0(@octaldigits)/,"number.octal"],[/-?(@digits)/,"number"]],strings:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@stringDouble"],[/'/,"string","@stringSingle"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/\/\/.*/,"comment"],[/[^/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[/*]/,"comment"]],stringDouble:[[/[^\\"]+/,"string"],[/@escapes/,"string"],[/\\./,"string.invalid"],[/"/,"string","@pop"]],stringSingle:[[/[^\\']+/,"string"],[/@escapes/,"string"],[/\\./,"string.invalid"],[/'/,"string","@pop"]],identifierBacktick:[[/[^\\`]+/,"identifier.escape"],[/@escapes/,"identifier.escape"],[/\\./,"identifier.escape.invalid"],[/`/,"identifier.escape","@pop"]]}}});var xIi={};od(xIi,{conf:()=>VJi,language:()=>HJi});var VJi,HJi,CIi=ti(()=>{VJi={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:"(",close:")"},{open:'"',close:'"'},{open:"`",close:"`"}],folding:{markers:{start:/^\s*\s*#?region\b/,end:/^\s*\s*#?endregion\b/}}},HJi={defaultToken:"invalid",tokenPostfix:".dart",keywords:["abstract","dynamic","implements","show","as","else","import","static","assert","enum","in","super","async","export","interface","switch","await","extends","is","sync","break","external","library","this","case","factory","mixin","throw","catch","false","new","true","class","final","null","try","const","finally","on","typedef","continue","for","operator","var","covariant","Function","part","void","default","get","rethrow","while","deferred","hide","return","with","do","if","set","yield"],typeKeywords:["int","double","String","bool"],operators:["+","-","*","/","~/","%","++","--","==","!=",">","<",">=","<=","=","-=","/=","%=",">>=","^=","+=","*=","~/=","<<=","&=","!=","||","&&","&","|","^","~","<<",">>","!",">>>","??","?",":","|="],symbols:/[=>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/\/.*$/,"comment.doc"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([gimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"\$]+/,"string"],[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"],[/\$\w+/,"identifier"]],string_single:[[/[^\\'\$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"],[/\$\w+/,"identifier"]]}}});var kIi={};od(kIi,{conf:()=>UJi,language:()=>JJi});var UJi,JJi,wIi=ti(()=>{UJi={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},JJi={defaultToken:"",tokenPostfix:".dockerfile",variable:/\${?[\w]+}?/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/(ONBUILD)(\s+)/,["keyword",""]],[/(ENV)(\s+)([\w]+)/,["keyword","",{token:"variable",next:"@arguments"}]],[/(FROM|MAINTAINER|RUN|EXPOSE|ENV|ADD|ARG|VOLUME|LABEL|USER|WORKDIR|COPY|CMD|STOPSIGNAL|SHELL|HEALTHCHECK|ENTRYPOINT)/,{token:"keyword",next:"@arguments"}]],arguments:[{include:"@whitespace"},{include:"@strings"},[/(@variable)/,{cases:{"@eos":{token:"variable",next:"@popall"},"@default":"variable"}}],[/\\/,{cases:{"@eos":"","@default":""}}],[/./,{cases:{"@eos":{token:"",next:"@popall"},"@default":""}}]],whitespace:[[/\s+/,{cases:{"@eos":{token:"",next:"@popall"},"@default":""}}]],comment:[[/(^#.*$)/,"comment","@popall"]],strings:[[/\\'$/,"","@popall"],[/\\'/,""],[/'$/,"string","@popall"],[/'/,"string","@stringBody"],[/"$/,"string","@popall"],[/"/,"string","@dblStringBody"]],stringBody:[[/[^\\\$']/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/\\./,"string.escape"],[/'$/,"string","@popall"],[/'/,"string","@pop"],[/(@variable)/,"variable"],[/\\$/,"string"],[/$/,"string","@popall"]],dblStringBody:[[/[^\\\$"]/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/\\./,"string.escape"],[/"$/,"string","@popall"],[/"/,"string","@pop"],[/(@variable)/,"variable"],[/\\$/,"string"],[/$/,"string","@popall"]]}}});var TIi={};od(TIi,{conf:()=>qJi,language:()=>$Ji});var qJi,$Ji,EIi=ti(()=>{qJi={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}]},$Ji={defaultToken:"",tokenPostfix:".ecl",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],pounds:["append","break","declare","demangle","end","for","getdatatype","if","inmodule","loop","mangle","onwarning","option","set","stored","uniquename"].join("|"),keywords:["__compressed__","after","all","and","any","as","atmost","before","beginc","best","between","case","cluster","compressed","compression","const","counter","csv","default","descend","embed","encoding","encrypt","end","endc","endembed","endmacro","enum","escape","except","exclusive","expire","export","extend","fail","few","fileposition","first","flat","forward","from","full","function","functionmacro","group","grouped","heading","hole","ifblock","import","in","inner","interface","internal","joined","keep","keyed","last","left","limit","linkcounted","literal","little_endian","load","local","locale","lookup","lzw","macro","many","maxcount","maxlength","min skew","module","mofn","multiple","named","namespace","nocase","noroot","noscan","nosort","not","noxpath","of","onfail","only","opt","or","outer","overwrite","packed","partition","penalty","physicallength","pipe","prefetch","quote","record","repeat","retry","return","right","right1","right2","rows","rowset","scan","scope","self","separator","service","shared","skew","skip","smart","soapaction","sql","stable","store","terminator","thor","threshold","timelimit","timeout","token","transform","trim","type","unicodeorder","unordered","unsorted","unstable","update","use","validate","virtual","whole","width","wild","within","wnotrim","xml","xpath"],functions:["abs","acos","aggregate","allnodes","apply","ascii","asin","assert","asstring","atan","atan2","ave","build","buildindex","case","catch","choose","choosen","choosesets","clustersize","combine","correlation","cos","cosh","count","covariance","cron","dataset","dedup","define","denormalize","dictionary","distribute","distributed","distribution","ebcdic","enth","error","evaluate","event","eventextra","eventname","exists","exp","fail","failcode","failmessage","fetch","fromunicode","fromxml","getenv","getisvalid","global","graph","group","hash","hash32","hash64","hashcrc","hashmd5","having","httpcall","httpheader","if","iff","index","intformat","isvalid","iterate","join","keydiff","keypatch","keyunicode","length","library","limit","ln","loadxml","local","log","loop","map","matched","matchlength","matchposition","matchtext","matchunicode","max","merge","mergejoin","min","nofold","nolocal","nonempty","normalize","nothor","notify","output","parallel","parse","pipe","power","preload","process","project","pull","random","range","rank","ranked","realformat","recordof","regexfind","regexreplace","regroup","rejected","rollup","round","roundup","row","rowdiff","sample","sequential","set","sin","sinh","sizeof","soapcall","sort","sorted","sqrt","stepped","stored","sum","table","tan","tanh","thisnode","topn","tounicode","toxml","transfer","transform","trim","truncate","typeof","ungroup","unicodeorder","variance","wait","which","workunit","xmldecode","xmlencode","xmltext","xmlunicode"],typesint:["integer","unsigned"].join("|"),typesnum:["data","qstring","string","unicode","utf8","varstring","varunicode"],typesone:["ascii","big_endian","boolean","data","decimal","ebcdic","grouped","integer","linkcounted","pattern","qstring","real","record","rule","set of","streamed","string","token","udecimal","unicode","unsigned","utf8","varstring","varunicode"].join("|"),operators:["+","-","/",":=","<","<>","=",">","\\","and","in","not","or"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/[0-9_]*\.[0-9_]+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]+/,"number.hex"],[/0[bB][01]+/,"number.hex"],[/[0-9_]+/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\v\f\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]]}}});var DIi={};od(DIi,{conf:()=>GJi,language:()=>KJi});var GJi,KJi,IIi=ti(()=>{GJi={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'"},{open:'"',close:'"'}],autoClosingPairs:[{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["comment"]},{open:'"""',close:'"""'},{open:"`",close:"`",notIn:["string","comment"]},{open:"(",close:")"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"<<",close:">>"}],indentationRules:{increaseIndentPattern:/^\s*(after|else|catch|rescue|fn|[^#]*(do|<\-|\->|\{|\[|\=))\s*$/,decreaseIndentPattern:/^\s*((\}|\])\s*$|(after|else|catch|rescue|end)\b)/}},KJi={defaultToken:"source",tokenPostfix:".elixir",brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"<<",close:">>",token:"delimiter.angle.special"}],declarationKeywords:["def","defp","defn","defnp","defguard","defguardp","defmacro","defmacrop","defdelegate","defcallback","defmacrocallback","defmodule","defprotocol","defexception","defimpl","defstruct"],operatorKeywords:["and","in","not","or","when"],namespaceKeywords:["alias","import","require","use"],otherKeywords:["after","case","catch","cond","do","else","end","fn","for","if","quote","raise","receive","rescue","super","throw","try","unless","unquote_splicing","unquote","with"],constants:["true","false","nil"],nameBuiltin:["__MODULE__","__DIR__","__ENV__","__CALLER__","__STACKTRACE__"],operator:/-[->]?|!={0,2}|\*{1,2}|\/|\\\\|&{1,3}|\.\.?|\^(?:\^\^)?|\+\+?|<(?:-|<<|=|>|\|>|~>?)?|=~|={1,3}|>(?:=|>>)?|\|~>|\|>|\|{1,3}|~>>?|~~~|::/,variableName:/[a-z_][a-zA-Z0-9_]*[?!]?/,atomName:/[a-zA-Z_][a-zA-Z0-9_@]*[?!]?|@specialAtomName|@operator/,specialAtomName:/\.\.\.|<<>>|%\{\}|%|\{\}/,aliasPart:/[A-Z][a-zA-Z0-9_]*/,moduleName:/@aliasPart(?:\.@aliasPart)*/,sigilSymmetricDelimiter:/"""|'''|"|'|\/|\|/,sigilStartDelimiter:/@sigilSymmetricDelimiter|<|\{|\[|\(/,sigilEndDelimiter:/@sigilSymmetricDelimiter|>|\}|\]|\)/,sigilModifiers:/[a-zA-Z0-9]*/,decimal:/\d(?:_?\d)*/,hex:/[0-9a-fA-F](_?[0-9a-fA-F])*/,octal:/[0-7](_?[0-7])*/,binary:/[01](_?[01])*/,escape:/\\u[0-9a-fA-F]{4}|\\x[0-9a-fA-F]{2}|\\./,tokenizer:{root:[{include:"@whitespace"},{include:"@comments"},{include:"@keywordsShorthand"},{include:"@numbers"},{include:"@identifiers"},{include:"@strings"},{include:"@atoms"},{include:"@sigils"},{include:"@attributes"},{include:"@symbols"}],whitespace:[[/\s+/,"white"]],comments:[[/(#)(.*)/,["comment.punctuation","comment"]]],keywordsShorthand:[[/(@atomName)(:)(\s+)/,["constant","constant.punctuation","white"]],[/"(?=([^"]|#\{.*?\}|\\")*":)/,{token:"constant.delimiter",next:"@doubleQuotedStringKeyword"}],[/'(?=([^']|#\{.*?\}|\\')*':)/,{token:"constant.delimiter",next:"@singleQuotedStringKeyword"}]],doubleQuotedStringKeyword:[[/":/,{token:"constant.delimiter",next:"@pop"}],{include:"@stringConstantContentInterpol"}],singleQuotedStringKeyword:[[/':/,{token:"constant.delimiter",next:"@pop"}],{include:"@stringConstantContentInterpol"}],numbers:[[/0b@binary/,"number.binary"],[/0o@octal/,"number.octal"],[/0x@hex/,"number.hex"],[/@decimal\.@decimal([eE]-?@decimal)?/,"number.float"],[/@decimal/,"number"]],identifiers:[[/\b(defp?|defnp?|defmacrop?|defguardp?|defdelegate)(\s+)(@variableName)(?!\s+@operator)/,["keyword.declaration","white",{cases:{unquote:"keyword","@default":"function"}}]],[/(@variableName)(?=\s*\.?\s*\()/,{cases:{"@declarationKeywords":"keyword.declaration","@namespaceKeywords":"keyword","@otherKeywords":"keyword","@default":"function.call"}}],[/(@moduleName)(\s*)(\.)(\s*)(@variableName)/,["type.identifier","white","operator","white","function.call"]],[/(:)(@atomName)(\s*)(\.)(\s*)(@variableName)/,["constant.punctuation","constant","white","operator","white","function.call"]],[/(\|>)(\s*)(@variableName)/,["operator","white",{cases:{"@otherKeywords":"keyword","@default":"function.call"}}]],[/(&)(\s*)(@variableName)/,["operator","white","function.call"]],[/@variableName/,{cases:{"@declarationKeywords":"keyword.declaration","@operatorKeywords":"keyword.operator","@namespaceKeywords":"keyword","@otherKeywords":"keyword","@constants":"constant.language","@nameBuiltin":"variable.language","_.*":"comment.unused","@default":"identifier"}}],[/@moduleName/,"type.identifier"]],strings:[[/"""/,{token:"string.delimiter",next:"@doubleQuotedHeredoc"}],[/'''/,{token:"string.delimiter",next:"@singleQuotedHeredoc"}],[/"/,{token:"string.delimiter",next:"@doubleQuotedString"}],[/'/,{token:"string.delimiter",next:"@singleQuotedString"}]],doubleQuotedHeredoc:[[/"""/,{token:"string.delimiter",next:"@pop"}],{include:"@stringContentInterpol"}],singleQuotedHeredoc:[[/'''/,{token:"string.delimiter",next:"@pop"}],{include:"@stringContentInterpol"}],doubleQuotedString:[[/"/,{token:"string.delimiter",next:"@pop"}],{include:"@stringContentInterpol"}],singleQuotedString:[[/'/,{token:"string.delimiter",next:"@pop"}],{include:"@stringContentInterpol"}],atoms:[[/(:)(@atomName)/,["constant.punctuation","constant"]],[/:"/,{token:"constant.delimiter",next:"@doubleQuotedStringAtom"}],[/:'/,{token:"constant.delimiter",next:"@singleQuotedStringAtom"}]],doubleQuotedStringAtom:[[/"/,{token:"constant.delimiter",next:"@pop"}],{include:"@stringConstantContentInterpol"}],singleQuotedStringAtom:[[/'/,{token:"constant.delimiter",next:"@pop"}],{include:"@stringConstantContentInterpol"}],sigils:[[/~[a-z]@sigilStartDelimiter/,{token:"@rematch",next:"@sigil.interpol"}],[/~([A-Z]+)@sigilStartDelimiter/,{token:"@rematch",next:"@sigil.noInterpol"}]],sigil:[[/~([a-z]|[A-Z]+)\{/,{token:"@rematch",switchTo:"@sigilStart.$S2.$1.{.}"}],[/~([a-z]|[A-Z]+)\[/,{token:"@rematch",switchTo:"@sigilStart.$S2.$1.[.]"}],[/~([a-z]|[A-Z]+)\(/,{token:"@rematch",switchTo:"@sigilStart.$S2.$1.(.)"}],[/~([a-z]|[A-Z]+)\"}],[/~([a-z]|[A-Z]+)(@sigilSymmetricDelimiter)/,{token:"@rematch",switchTo:"@sigilStart.$S2.$1.$2.$2"}]],"sigilStart.interpol.s":[[/~s@sigilStartDelimiter/,{token:"string.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.interpol.s":[[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"string.delimiter",next:"@pop"},"@default":"string"}}],{include:"@stringContentInterpol"}],"sigilStart.noInterpol.S":[[/~S@sigilStartDelimiter/,{token:"string.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.noInterpol.S":[[/(^|[^\\])\\@sigilEndDelimiter/,"string"],[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"string.delimiter",next:"@pop"},"@default":"string"}}],{include:"@stringContent"}],"sigilStart.interpol.r":[[/~r@sigilStartDelimiter/,{token:"regexp.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.interpol.r":[[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"regexp.delimiter",next:"@pop"},"@default":"regexp"}}],{include:"@regexpContentInterpol"}],"sigilStart.noInterpol.R":[[/~R@sigilStartDelimiter/,{token:"regexp.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.noInterpol.R":[[/(^|[^\\])\\@sigilEndDelimiter/,"regexp"],[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"regexp.delimiter",next:"@pop"},"@default":"regexp"}}],{include:"@regexpContent"}],"sigilStart.interpol":[[/~([a-z]|[A-Z]+)@sigilStartDelimiter/,{token:"sigil.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.interpol":[[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"sigil.delimiter",next:"@pop"},"@default":"sigil"}}],{include:"@sigilContentInterpol"}],"sigilStart.noInterpol":[[/~([a-z]|[A-Z]+)@sigilStartDelimiter/,{token:"sigil.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.noInterpol":[[/(^|[^\\])\\@sigilEndDelimiter/,"sigil"],[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"sigil.delimiter",next:"@pop"},"@default":"sigil"}}],{include:"@sigilContent"}],attributes:[[/\@(module|type)?doc (~[sS])?"""/,{token:"comment.block.documentation",next:"@doubleQuotedHeredocDocstring"}],[/\@(module|type)?doc (~[sS])?'''/,{token:"comment.block.documentation",next:"@singleQuotedHeredocDocstring"}],[/\@(module|type)?doc (~[sS])?"/,{token:"comment.block.documentation",next:"@doubleQuotedStringDocstring"}],[/\@(module|type)?doc (~[sS])?'/,{token:"comment.block.documentation",next:"@singleQuotedStringDocstring"}],[/\@(module|type)?doc false/,"comment.block.documentation"],[/\@(@variableName)/,"variable"]],doubleQuotedHeredocDocstring:[[/"""/,{token:"comment.block.documentation",next:"@pop"}],{include:"@docstringContent"}],singleQuotedHeredocDocstring:[[/'''/,{token:"comment.block.documentation",next:"@pop"}],{include:"@docstringContent"}],doubleQuotedStringDocstring:[[/"/,{token:"comment.block.documentation",next:"@pop"}],{include:"@docstringContent"}],singleQuotedStringDocstring:[[/'/,{token:"comment.block.documentation",next:"@pop"}],{include:"@docstringContent"}],symbols:[[/\?(\\.|[^\\\s])/,"number.constant"],[/&\d+/,"operator"],[/<<<|>>>/,"operator"],[/[()\[\]\{\}]|<<|>>/,"@brackets"],[/\.\.\./,"identifier"],[/=>/,"punctuation"],[/@operator/,"operator"],[/[:;,.%]/,"punctuation"]],stringContentInterpol:[{include:"@interpolation"},{include:"@escapeChar"},{include:"@stringContent"}],stringContent:[[/./,"string"]],stringConstantContentInterpol:[{include:"@interpolation"},{include:"@escapeChar"},{include:"@stringConstantContent"}],stringConstantContent:[[/./,"constant"]],regexpContentInterpol:[{include:"@interpolation"},{include:"@escapeChar"},{include:"@regexpContent"}],regexpContent:[[/(\s)(#)(\s.*)$/,["white","comment.punctuation","comment"]],[/./,"regexp"]],sigilContentInterpol:[{include:"@interpolation"},{include:"@escapeChar"},{include:"@sigilContent"}],sigilContent:[[/./,"sigil"]],docstringContent:[[/./,"comment.block.documentation"]],escapeChar:[[/@escape/,"constant.character.escape"]],interpolation:[[/#{/,{token:"delimiter.bracket.embed",next:"@interpolationContinue"}]],interpolationContinue:[[/}/,{token:"delimiter.bracket.embed",next:"@pop"}],{include:"@root"}]}}});var NIi={};od(NIi,{conf:()=>XJi,language:()=>YJi});var XJi,YJi,AIi=ti(()=>{XJi={comments:{blockComment:["/*","*/"],lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:"(",close:")",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}]},YJi={defaultToken:"",tokenPostfix:".flow",keywords:["import","require","export","forbid","native","if","else","cast","unsafe","switch","default"],types:["io","mutable","bool","int","double","string","flow","void","ref","true","false","with"],operators:["=",">","<","<=",">=","==","!","!=",":=","::=","&&","||","+","-","*","/","@","&","%",":","->","\\","$","??","^"],symbols:/[@$=>](?!@symbols)/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/((0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]]}}});var PIi={};od(PIi,{conf:()=>QJi,language:()=>ZJi});var QJi,ZJi,LIi=ti(()=>{QJi={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*//\\s*#region\\b|^\\s*\\(\\*\\s*#region(.*)\\*\\)"),end:new RegExp("^\\s*//\\s*#endregion\\b|^\\s*\\(\\*\\s*#endregion\\s*\\*\\)")}}},ZJi={defaultToken:"",tokenPostfix:".fs",keywords:["abstract","and","atomic","as","assert","asr","base","begin","break","checked","component","const","constraint","constructor","continue","class","default","delegate","do","done","downcast","downto","elif","else","end","exception","eager","event","external","extern","false","finally","for","fun","function","fixed","functor","global","if","in","include","inherit","inline","interface","internal","land","lor","lsl","lsr","lxor","lazy","let","match","member","mod","module","mutable","namespace","method","mixin","new","not","null","of","open","or","object","override","private","parallel","process","protected","pure","public","rec","return","static","sealed","struct","sig","then","to","true","tailcall","trait","try","type","upcast","use","val","void","virtual","volatile","when","while","with","yield"],symbols:/[=>\]/,"annotation"],[/^#(if|else|endif)/,"keyword"],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0x[0-9a-fA-F]+LF/,"number.float"],[/0x[0-9a-fA-F]+(@integersuffix)/,"number.hex"],[/0b[0-1]+(@integersuffix)/,"number.bin"],[/\d+(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"""/,"string",'@string."""'],[/"/,"string",'@string."'],[/\@"/,{token:"string.quote",next:"@litstring"}],[/'[^\\']'B?/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\(\*(?!\))/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^*(]+/,"comment"],[/\*\)/,"comment","@pop"],[/\*/,"comment"],[/\(\*\)/,"comment"],[/\(/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/("""|"B?)/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]],litstring:[[/[^"]+/,"string"],[/""/,"string.escape"],[/"/,{token:"string.quote",next:"@pop"}]]}}});var kxe={};od(kxe,{TagAngleInterpolationBracket:()=>cqi,TagAngleInterpolationDollar:()=>sqi,TagAutoInterpolationBracket:()=>dqi,TagAutoInterpolationDollar:()=>uqi,TagBracketInterpolationBracket:()=>lqi,TagBracketInterpolationDollar:()=>aqi});function yFt(l){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],comments:{blockComment:[`${l.open}--`,`--${l.close}`]},autoCloseBefore:` +\r }]),.:;=`,autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`${l.open}#(?:${gFt.join("|")})([^/${l.close}]*(?!/)${l.close})[^${l.open}]*$`),end:new RegExp(`${l.open}/#(?:${gFt.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`${l.open}#(?!(?:${hFt.join("|")}))([a-zA-Z_]+)([^/${l.close}]*(?!/)${l.close})[^${l.open}]*$`),afterText:new RegExp(`^${l.open}/#([a-zA-Z_]+)[\\r\\n\\t ]*${l.close}$`),action:{indentAction:spt.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`${l.open}#(?!(?:${hFt.join("|")}))([a-zA-Z_]+)([^/${l.close}]*(?!/)${l.close})[^${l.open}]*$`),action:{indentAction:spt.languages.IndentAction.Indent}}]}}function FIi(){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],autoCloseBefore:` +\r }]),.:;=`,autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`[<\\[]#(?:${gFt.join("|")})([^/>\\]]*(?!/)[>\\]])[^<\\[]*$`),end:new RegExp(`[<\\[]/#(?:${gFt.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`[<\\[]#(?!(?:${hFt.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),afterText:new RegExp("^[<\\[]/#([a-zA-Z_]+)[\\r\\n\\t ]*[>\\]]$"),action:{indentAction:spt.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`[<\\[]#(?!(?:${hFt.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),action:{indentAction:spt.languages.IndentAction.Indent}}]}}function XLe(l,e){let r=`_${l.id}_${e.id}`,o=d=>d.replace(/__id__/g,r),c=d=>{let h=d.source.replace(/__id__/g,r);return new RegExp(h,d.flags)};return{unicode:!0,includeLF:!1,start:o("default__id__"),ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],[o("open__id__")]:new RegExp(l.open),[o("close__id__")]:new RegExp(l.close),[o("iOpen1__id__")]:new RegExp(e.open1),[o("iOpen2__id__")]:new RegExp(e.open2),[o("iClose__id__")]:new RegExp(e.close),[o("startTag__id__")]:c(/(@open__id__)(#)/),[o("endTag__id__")]:c(/(@open__id__)(\/#)/),[o("startOrEndTag__id__")]:c(/(@open__id__)(\/?#)/),[o("closeTag1__id__")]:c(/((?:@blank)*)(@close__id__)/),[o("closeTag2__id__")]:c(/((?:@blank)*\/?)(@close__id__)/),blank:/[ \t\n\r]/,keywords:["false","true","in","as","using"],directiveStartCloseTag1:/attempt|recover|sep|auto[eE]sc|no(?:autoe|AutoE)sc|compress|default|no[eE]scape|comment|no[pP]arse/,directiveStartCloseTag2:/else|break|continue|return|stop|flush|t|lt|rt|nt|nested|recurse|fallback|ftl/,directiveStartBlank:/if|else[iI]f|list|for[eE]ach|switch|case|assign|global|local|include|import|function|macro|transform|visit|stop|return|call|setting|output[fF]ormat|nested|recurse|escape|ftl|items/,directiveEndCloseTag1:/if|list|items|sep|recover|attempt|for[eE]ach|local|global|assign|function|macro|output[fF]ormat|auto[eE]sc|no(?:autoe|AutoE)sc|compress|transform|switch|escape|no[eE]scape/,escapedChar:/\\(?:[ntrfbgla\\'"\{=]|(?:x[0-9A-Fa-f]{1,4}))/,asciiDigit:/[0-9]/,integer:/[0-9]+/,nonEscapedIdStartChar:/[\$@-Z_a-z\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u1FFF\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183-\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3006\u3031-\u3035\u303B-\u303C\u3040-\u318F\u31A0-\u31BA\u31F0-\u31FF\u3300-\u337F\u3400-\u4DB5\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,escapedIdChar:/\\[\-\.:#]/,idStartChar:/(?:@nonEscapedIdStartChar)|(?:@escapedIdChar)/,id:/(?:@idStartChar)(?:(?:@idStartChar)|(?:@asciiDigit))*/,specialHashKeys:/\*\*|\*|false|true|in|as|using/,namedSymbols:/<=|>=|\\lte|\\lt|<|\\gte|\\gt|>|&&|\\and|->|->|==|!=|\+=|-=|\*=|\/=|%=|\+\+|--|<=|&&|\|\||:|\.\.\.|\.\.\*|\.\.<|\.\.!|\?\?|=|<|\+|-|\*|\/|%|\||\.\.|\?|!|&|\.|,|;/,arrows:["->","->"],delimiters:[";",":",",","."],stringOperators:["lte","lt","gte","gt"],noParseTags:["noparse","noParse","comment"],tokenizer:{[o("default__id__")]:[{include:o("@directive_token__id__")},{include:o("@interpolation_and_text_token__id__")}],[o("fmExpression__id__.directive")]:[{include:o("@blank_and_expression_comment_token__id__")},{include:o("@directive_end_token__id__")},{include:o("@expression_token__id__")}],[o("fmExpression__id__.interpolation")]:[{include:o("@blank_and_expression_comment_token__id__")},{include:o("@expression_token__id__")},{include:o("@greater_operators_token__id__")}],[o("inParen__id__.plain")]:[{include:o("@blank_and_expression_comment_token__id__")},{include:o("@directive_end_token__id__")},{include:o("@expression_token__id__")}],[o("inParen__id__.gt")]:[{include:o("@blank_and_expression_comment_token__id__")},{include:o("@expression_token__id__")},{include:o("@greater_operators_token__id__")}],[o("noSpaceExpression__id__")]:[{include:o("@no_space_expression_end_token__id__")},{include:o("@directive_end_token__id__")},{include:o("@expression_token__id__")}],[o("unifiedCall__id__")]:[{include:o("@unified_call_token__id__")}],[o("singleString__id__")]:[{include:o("@string_single_token__id__")}],[o("doubleString__id__")]:[{include:o("@string_double_token__id__")}],[o("rawSingleString__id__")]:[{include:o("@string_single_raw_token__id__")}],[o("rawDoubleString__id__")]:[{include:o("@string_double_raw_token__id__")}],[o("expressionComment__id__")]:[{include:o("@expression_comment_token__id__")}],[o("noParse__id__")]:[{include:o("@no_parse_token__id__")}],[o("terseComment__id__")]:[{include:o("@terse_comment_token__id__")}],[o("directive_token__id__")]:[[c(/(?:@startTag__id__)(@directiveStartCloseTag1)(?:@closeTag1__id__)/),l.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${e.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${e.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{cases:{"@noParseTags":{token:"tag",next:o("@noParse__id__.$3")},"@default":{token:"tag"}}},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[c(/(?:@startTag__id__)(@directiveStartCloseTag2)(?:@closeTag2__id__)/),l.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${e.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${e.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[c(/(?:@startTag__id__)(@directiveStartBlank)(@blank)/),l.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${e.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${e.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"",next:o("@fmExpression__id__.directive")}]],[c(/(?:@endTag__id__)(@directiveEndCloseTag1)(?:@closeTag1__id__)/),l.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${e.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${e.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[c(/(@open__id__)(@)/),l.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${e.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${e.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive",next:o("@unifiedCall__id__")}]],[c(/(@open__id__)(\/@)((?:(?:@id)(?:\.(?:@id))*)?)(?:@closeTag1__id__)/),[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[c(/(@open__id__)#--/),l.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${e.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${e.id}`}}}:{token:"comment",next:o("@terseComment__id__")}],[c(/(?:@startOrEndTag__id__)([a-zA-Z_]+)/),l.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${e.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${e.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag.invalid",next:o("@fmExpression__id__.directive")}]]],[o("interpolation_and_text_token__id__")]:[[c(/(@iOpen1__id__)(@iOpen2__id__)/),[{token:e.id==="bracket"?"@brackets.interpolation":"delimiter.interpolation"},{token:e.id==="bracket"?"delimiter.interpolation":"@brackets.interpolation",next:o("@fmExpression__id__.interpolation")}]],[/[\$#<\[\{]|(?:@blank)+|[^\$<#\[\{\n\r\t ]+/,{token:"source"}]],[o("string_single_token__id__")]:[[/[^'\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/'/,{token:"string",next:"@pop"}]],[o("string_double_token__id__")]:[[/[^"\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/"/,{token:"string",next:"@pop"}]],[o("string_single_raw_token__id__")]:[[/[^']+/,{token:"string.raw"}],[/'/,{token:"string.raw",next:"@pop"}]],[o("string_double_raw_token__id__")]:[[/[^"]+/,{token:"string.raw"}],[/"/,{token:"string.raw",next:"@pop"}]],[o("expression_token__id__")]:[[/(r?)(['"])/,{cases:{"r'":[{token:"keyword"},{token:"string.raw",next:o("@rawSingleString__id__")}],'r"':[{token:"keyword"},{token:"string.raw",next:o("@rawDoubleString__id__")}],"'":[{token:"source"},{token:"string",next:o("@singleString__id__")}],'"':[{token:"source"},{token:"string",next:o("@doubleString__id__")}]}}],[/(?:@integer)(?:\.(?:@integer))?/,{cases:{"(?:@integer)":{token:"number"},"@default":{token:"number.float"}}}],[/(\.)(@blank*)(@specialHashKeys)/,[{token:"delimiter"},{token:""},{token:"identifier"}]],[/(?:@namedSymbols)/,{cases:{"@arrows":{token:"meta.arrow"},"@delimiters":{token:"delimiter"},"@default":{token:"operators"}}}],[/@id/,{cases:{"@keywords":{token:"keyword.$0"},"@stringOperators":{token:"operators"},"@default":{token:"identifier"}}}],[/[\[\]\(\)\{\}]/,{cases:{"\\[":{cases:{"$S2==gt":{token:"@brackets",next:o("@inParen__id__.gt")},"@default":{token:"@brackets",next:o("@inParen__id__.plain")}}},"\\]":{cases:{...e.id==="bracket"?{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}}:{},...l.id==="bracket"?{"$S2==directive":{token:"@brackets.directive",next:"@popall"}}:{},[o("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\(":{token:"@brackets",next:o("@inParen__id__.gt")},"\\)":{cases:{[o("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\{":{cases:{"$S2==gt":{token:"@brackets",next:o("@inParen__id__.gt")},"@default":{token:"@brackets",next:o("@inParen__id__.plain")}}},"\\}":{cases:{...e.id==="bracket"?{}:{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}},[o("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}}}}],[/\$\{/,{token:"delimiter.invalid"}]],[o("blank_and_expression_comment_token__id__")]:[[/(?:@blank)+/,{token:""}],[/[<\[][#!]--/,{token:"comment",next:o("@expressionComment__id__")}]],[o("directive_end_token__id__")]:[[/>/,l.id==="bracket"?{token:"operators"}:{token:"@brackets.directive",next:"@popall"}],[c(/(\/)(@close__id__)/),[{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]]],[o("greater_operators_token__id__")]:[[/>/,{token:"operators"}],[/>=/,{token:"operators"}]],[o("no_space_expression_end_token__id__")]:[[/(?:@blank)+/,{token:"",switchTo:o("@fmExpression__id__.directive")}]],[o("unified_call_token__id__")]:[[/(@id)((?:@blank)+)/,[{token:"tag"},{token:"",next:o("@fmExpression__id__.directive")}]],[c(/(@id)(\/?)(@close__id__)/),[{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]],[/./,{token:"@rematch",next:o("@noSpaceExpression__id__")}]],[o("no_parse_token__id__")]:[[c(/(@open__id__)(\/#?)([a-zA-Z]+)((?:@blank)*)(@close__id__)/),{cases:{"$S2==$3":[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:""},{token:"@brackets.directive",next:"@popall"}],"$S2==comment":[{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"}],"@default":[{token:"source"},{token:"source"},{token:"source"},{token:"source"},{token:"source"}]}}],[/[^<\[\-]+|[<\[\-]/,{cases:{"$S2==comment":{token:"comment"},"@default":{token:"source"}}}]],[o("expression_comment_token__id__")]:[[/--[>\]]/,{token:"comment",next:"@pop"}],[/[^\->\]]+|[>\]\-]/,{token:"comment"}]],[o("terse_comment_token__id__")]:[[c(/--(?:@close__id__)/),{token:"comment",next:"@popall"}],[/[^<\[\-]+|[<\[\-]/,{token:"comment"}]]}}}function MIi(l){let e=XLe(apt,l),r=XLe(cpt,l),o=XLe(oqi,l);return{...e,...r,...o,unicode:!0,includeLF:!1,start:`default_auto_${l.id}`,ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{...e.tokenizer,...r.tokenizer,...o.tokenizer}}}var eqi,tqi,iqi,nqi,OIi,rqi,spt,hFt,gFt,apt,cpt,oqi,Rci,Bci,sqi,aqi,cqi,lqi,uqi,dqi,wxe=ti(()=>{OT();eqi=Object.defineProperty,tqi=Object.getOwnPropertyDescriptor,iqi=Object.getOwnPropertyNames,nqi=Object.prototype.hasOwnProperty,OIi=(l,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let c of iqi(e))!nqi.call(l,c)&&c!==r&&eqi(l,c,{get:()=>e[c],enumerable:!(o=tqi(e,c))||o.enumerable});return l},rqi=(l,e,r)=>(OIi(l,e,"default"),r&&OIi(r,e,"default")),spt={};rqi(spt,Yy);hFt=["assign","flush","ftl","return","global","import","include","break","continue","local","nested","nt","setting","stop","t","lt","rt","fallback"],gFt=["attempt","autoesc","autoEsc","compress","comment","escape","noescape","function","if","list","items","sep","macro","noparse","noParse","noautoesc","noAutoEsc","outputformat","switch","visit","recurse"],apt={close:">",id:"angle",open:"<"},cpt={close:"\\]",id:"bracket",open:"\\["},oqi={close:"[>\\]]",id:"auto",open:"[<\\[]"},Rci={close:"\\}",id:"dollar",open1:"\\$",open2:"\\{"},Bci={close:"\\]",id:"bracket",open1:"\\[",open2:"="};sqi={conf:yFt(apt),language:XLe(apt,Rci)},aqi={conf:yFt(cpt),language:XLe(cpt,Rci)},cqi={conf:yFt(apt),language:XLe(apt,Bci)},lqi={conf:yFt(cpt),language:XLe(cpt,Bci)},uqi={conf:FIi(),language:MIi(Rci)},dqi={conf:FIi(),language:MIi(Bci)}});var RIi={};od(RIi,{conf:()=>fqi,language:()=>_qi});var fqi,_qi,BIi=ti(()=>{fqi={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`"},{open:'"',close:'"'},{open:"'",close:"'"}]},_qi={defaultToken:"",tokenPostfix:".go",keywords:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var","bool","true","false","uint8","uint16","uint32","uint64","int8","int16","int32","int64","float32","float64","complex64","complex128","byte","rune","uint","int","uintptr","string","nil"],operators:["+","-","*","/","%","&","|","^","<<",">>","&^","+=","-=","*=","/=","%=","&=","|=","^=","<<=",">>=","&^=","&&","||","<-","++","--","==","<",">","=","!","!=","<=",">=",":=","...","(",")","","]","{","}",",",";",".",":"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex"],[/0[0-7']*[0-7]/,"number.octal"],[/0[bB][0-1']*[0-1]/,"number.binary"],[/\d[\d']*/,"number"],[/\d/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/`/,"string","@rawstring"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\/\*/,"comment.doc.invalid"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],rawstring:[[/[^\`]/,"string"],[/`/,"string","@pop"]]}}});var jIi={};od(jIi,{conf:()=>pqi,language:()=>mqi});var pqi,mqi,WIi=ti(()=>{pqi={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"""',close:'"""',notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"""',close:'"""'},{open:'"',close:'"'}],folding:{offSide:!0}},mqi={defaultToken:"invalid",tokenPostfix:".gql",keywords:["null","true","false","query","mutation","subscription","extend","schema","directive","scalar","type","interface","union","enum","input","implements","fragment","on"],typeKeywords:["Int","Float","String","Boolean","ID"],directiveLocations:["SCHEMA","SCALAR","OBJECT","FIELD_DEFINITION","ARGUMENT_DEFINITION","INTERFACE","UNION","ENUM","ENUM_VALUE","INPUT_OBJECT","INPUT_FIELD_DEFINITION","QUERY","MUTATION","SUBSCRIPTION","FIELD","FRAGMENT_DEFINITION","FRAGMENT_SPREAD","INLINE_FRAGMENT","VARIABLE_DEFINITION"],operators:["=","!","?",":","&","|"],symbols:/[=!?:&|]+/,escapes:/\\(?:["\\\/bfnrt]|u[0-9A-Fa-f]{4})/,tokenizer:{root:[[/[a-z_][\w$]*/,{cases:{"@keywords":"keyword","@default":"key.identifier"}}],[/[$][\w$]*/,{cases:{"@keywords":"keyword","@default":"argument.identifier"}}],[/[A-Z][\w\$]*/,{cases:{"@typeKeywords":"keyword","@default":"type.identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,{token:"annotation",log:"annotation token: $0"}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/"""/,{token:"string",next:"@mlstring",nextEmbedded:"markdown"}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}]],mlstring:[[/[^"]+/,"string"],['"""',{token:"string",next:"@pop",nextEmbedded:"@pop"}]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/#.*$/,"comment"]]}}});var HIi={};od(HIi,{conf:()=>Sqi,language:()=>xqi});var hqi,gqi,yqi,vqi,zIi,bqi,jci,VIi,Sqi,xqi,UIi=ti(()=>{OT();hqi=Object.defineProperty,gqi=Object.getOwnPropertyDescriptor,yqi=Object.getOwnPropertyNames,vqi=Object.prototype.hasOwnProperty,zIi=(l,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let c of yqi(e))!vqi.call(l,c)&&c!==r&&hqi(l,c,{get:()=>e[c],enumerable:!(o=gqi(e,c))||o.enumerable});return l},bqi=(l,e,r)=>(zIi(l,e,"default"),r&&zIi(r,e,"default")),jci={};bqi(jci,Yy);VIi=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],Sqi={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[[""],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${VIi.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:jci.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${VIi.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:jci.languages.IndentAction.Indent}}]},xqi={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}}});var JIi={};od(JIi,{conf:()=>Cqi,language:()=>kqi});var Cqi,kqi,qIi=ti(()=>{Cqi={comments:{lineComment:"#",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}]},kqi={defaultToken:"",tokenPostfix:".hcl",keywords:["var","local","path","for_each","any","string","number","bool","true","false","null","if ","else ","endif ","for ","in","endfor"],operators:["=",">=","<=","==","!=","+","-","*","/","%","&&","||","!","<",">","?","...",":"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\d[\d']*/,"number"],[/\d/,"number"],[/[;,.]/,"delimiter"],[/"/,"string","@string"],[/'/,"invalid"]],heredoc:[[/<<[-]*\s*["]?([\w\-]+)["]?/,{token:"string.heredoc.delimiter",next:"@heredocBody.$1"}]],heredocBody:[[/([\w\-]+)$/,{cases:{"$1==$S2":[{token:"string.heredoc.delimiter",next:"@popall"}],"@default":"string.heredoc"}}],[/./,"string.heredoc"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"],[/#.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],string:[[/\$\{/,{token:"delimiter",next:"@stringExpression"}],[/[^\\"\$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@popall"]],stringInsideExpression:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],stringExpression:[[/\}/,{token:"delimiter",next:"@pop"}],[/"/,"string","@stringInsideExpression"],{include:"@terraform"}]}}});var KIi={};od(KIi,{conf:()=>Nqi,language:()=>Aqi});var wqi,Tqi,Eqi,Dqi,$Ii,Iqi,Wci,GIi,Nqi,Aqi,XIi=ti(()=>{OT();wqi=Object.defineProperty,Tqi=Object.getOwnPropertyDescriptor,Eqi=Object.getOwnPropertyNames,Dqi=Object.prototype.hasOwnProperty,$Ii=(l,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let c of Eqi(e))!Dqi.call(l,c)&&c!==r&&wqi(l,c,{get:()=>e[c],enumerable:!(o=Tqi(e,c))||o.enumerable});return l},Iqi=(l,e,r)=>($Ii(l,e,"default"),r&&$Ii(r,e,"default")),Wci={};Iqi(Wci,Yy);GIi=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],Nqi={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:[""]},brackets:[[""],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${GIi.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:Wci.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${GIi.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:Wci.languages.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*"),end:new RegExp("^\\s*")}}},Aqi={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"module"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/'module'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}}});var YIi={};od(YIi,{conf:()=>Pqi,language:()=>Lqi});var Pqi,Lqi,QIi=ti(()=>{Pqi={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},Lqi={defaultToken:"",tokenPostfix:".ini",escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/^\[[^\]]*\]/,"metatag"],[/(^\w+)(\s*)(\=)/,["key","","delimiter"]],{include:"@whitespace"},[/\d+/,"number"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],whitespace:[[/[ \t\r\n]+/,""],[/^\s*[#;].*$/,"comment"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]]}}});var ZIi={};od(ZIi,{conf:()=>Oqi,language:()=>Fqi});var Oqi,Fqi,eNi=ti(()=>{Oqi={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:))")}}},Fqi={defaultToken:"",tokenPostfix:".java",keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false","yield","record","sealed","non-sealed","permits"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,"annotation"],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float"],[/0[xX](@hexdigits)[Ll]?/,"number.hex"],[/0(@octaldigits)[Ll]?/,"number.octal"],[/0[bB](@binarydigits)[Ll]?/,"number.binary"],[/(@digits)[fFdD]/,"number.float"],[/(@digits)[lL]?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"""/,"string","@multistring"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@javadoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],javadoc:[[/[^\/*]+/,"comment.doc"],[/\/\*/,"comment.doc.invalid"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],multistring:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"""/,"string","@pop"],[/./,"string"]]}}});var iNi={};od(iNi,{conf:()=>zci,language:()=>h$});var Mqi,Rqi,Bqi,jqi,tNi,Wqi,lpt,zci,h$,Vci=ti(()=>{OT();Mqi=Object.defineProperty,Rqi=Object.getOwnPropertyDescriptor,Bqi=Object.getOwnPropertyNames,jqi=Object.prototype.hasOwnProperty,tNi=(l,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let c of Bqi(e))!jqi.call(l,c)&&c!==r&&Mqi(l,c,{get:()=>e[c],enumerable:!(o=Rqi(e,c))||o.enumerable});return l},Wqi=(l,e,r)=>(tNi(l,e,"default"),r&&tNi(r,e,"default")),lpt={};Wqi(lpt,Yy);zci={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:lpt.languages.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:lpt.languages.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:lpt.languages.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:lpt.languages.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:new RegExp("^\\s*//\\s*#?region\\b"),end:new RegExp("^\\s*//\\s*#?endregion\\b")}}},h$={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","any","as","asserts","bigint","boolean","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","number","object","out","package","private","protected","public","override","readonly","require","global","return","satisfies","set","static","string","super","switch","symbol","this","throw","true","try","type","typeof","undefined","unique","unknown","var","void","while","with","yield","async","await","of"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<",">",">>>","&","|","^","!","~","&&","||","??","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([dgimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}}});var nNi={};od(nNi,{conf:()=>zqi,language:()=>Vqi});var zqi,Vqi,rNi=ti(()=>{Vci();zqi=zci,Vqi={defaultToken:"invalid",tokenPostfix:".js",keywords:["break","case","catch","class","continue","const","constructor","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","get","if","import","in","instanceof","let","new","null","return","set","static","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:h$.operators,symbols:h$.symbols,escapes:h$.escapes,digits:h$.digits,octaldigits:h$.octaldigits,binarydigits:h$.binarydigits,hexdigits:h$.hexdigits,regexpctl:h$.regexpctl,regexpesc:h$.regexpesc,tokenizer:h$.tokenizer}});var oNi={};od(oNi,{conf:()=>Hqi,language:()=>Uqi});var Hqi,Uqi,sNi=ti(()=>{Hqi={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},Uqi={tokenPostfix:".julia",keywords:["begin","while","if","for","try","return","break","continue","function","macro","quote","let","local","global","const","do","struct","module","baremodule","using","import","export","end","else","elseif","catch","finally","mutable","primitive","abstract","type","in","isa","where","new"],types:["LinRange","LineNumberNode","LinearIndices","LoadError","MIME","Matrix","Method","MethodError","Missing","MissingException","Module","NTuple","NamedTuple","Nothing","Number","OrdinalRange","OutOfMemoryError","OverflowError","Pair","PartialQuickSort","PermutedDimsArray","Pipe","Ptr","QuoteNode","Rational","RawFD","ReadOnlyMemoryError","Real","ReentrantLock","Ref","Regex","RegexMatch","RoundingMode","SegmentationFault","Set","Signed","Some","StackOverflowError","StepRange","StepRangeLen","StridedArray","StridedMatrix","StridedVecOrMat","StridedVector","String","StringIndexError","SubArray","SubString","SubstitutionString","Symbol","SystemError","Task","Text","TextDisplay","Timer","Tuple","Type","TypeError","TypeVar","UInt","UInt128","UInt16","UInt32","UInt64","UInt8","UndefInitializer","AbstractArray","UndefKeywordError","AbstractChannel","UndefRefError","AbstractChar","UndefVarError","AbstractDict","Union","AbstractDisplay","UnionAll","AbstractFloat","UnitRange","AbstractIrrational","Unsigned","AbstractMatrix","AbstractRange","Val","AbstractSet","Vararg","AbstractString","VecElement","AbstractUnitRange","VecOrMat","AbstractVecOrMat","Vector","AbstractVector","VersionNumber","Any","WeakKeyDict","ArgumentError","WeakRef","Array","AssertionError","BigFloat","BigInt","BitArray","BitMatrix","BitSet","BitVector","Bool","BoundsError","CapturedException","CartesianIndex","CartesianIndices","Cchar","Cdouble","Cfloat","Channel","Char","Cint","Cintmax_t","Clong","Clonglong","Cmd","Colon","Complex","ComplexF16","ComplexF32","ComplexF64","CompositeException","Condition","Cptrdiff_t","Cshort","Csize_t","Cssize_t","Cstring","Cuchar","Cuint","Cuintmax_t","Culong","Culonglong","Cushort","Cvoid","Cwchar_t","Cwstring","DataType","DenseArray","DenseMatrix","DenseVecOrMat","DenseVector","Dict","DimensionMismatch","Dims","DivideError","DomainError","EOFError","Enum","ErrorException","Exception","ExponentialBackOff","Expr","Float16","Float32","Float64","Function","GlobalRef","HTML","IO","IOBuffer","IOContext","IOStream","IdDict","IndexCartesian","IndexLinear","IndexStyle","InexactError","InitError","Int","Int128","Int16","Int32","Int64","Int8","Integer","InterruptException","InvalidStateException","Irrational","KeyError"],keywordops:["<:",">:",":","=>","...",".","->","?"],allops:/[^\w\d\s()\[\]{}"'#]+/,constants:["true","false","nothing","missing","undef","Inf","pi","NaN","\u03C0","\u212F","ans","PROGRAM_FILE","ARGS","C_NULL","VERSION","DEPOT_PATH","LOAD_PATH"],operators:["!","!=","!==","%","&","*","+","-","/","//","<","<<","<=","==","===","=>",">",">=",">>",">>>","\\","^","|","|>","~","\xF7","\u2208","\u2209","\u220B","\u220C","\u2218","\u221A","\u221B","\u2229","\u222A","\u2248","\u2249","\u2260","\u2261","\u2262","\u2264","\u2265","\u2286","\u2287","\u2288","\u2289","\u228A","\u228B","\u22BB"],brackets:[{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"}],ident:/Ï€|ℯ|\b(?!\d)\w+\b/,escape:/(?:[abefnrstv\\"'\n\r]|[0-7]{1,3}|x[0-9A-Fa-f]{1,2}|u[0-9A-Fa-f]{4})/,escapes:/\\(?:C\-(@escape|.)|c(@escape|.)|@escape)/,tokenizer:{root:[[/(::)\s*|\b(isa)\s+/,"keyword","@typeanno"],[/\b(isa)(\s*\(@ident\s*,\s*)/,["keyword",{token:"",next:"@typeanno"}]],[/\b(type|struct)[ \t]+/,"keyword","@typeanno"],[/^\s*:@ident[!?]?/,"metatag"],[/(return)(\s*:@ident[!?]?)/,["keyword","metatag"]],[/(\(|\[|\{|@allops)(\s*:@ident[!?]?)/,["","metatag"]],[/:\(/,"metatag","@quote"],[/r"""/,"regexp.delim","@tregexp"],[/r"/,"regexp.delim","@sregexp"],[/raw"""/,"string.delim","@rtstring"],[/[bv]?"""/,"string.delim","@dtstring"],[/raw"/,"string.delim","@rsstring"],[/[bv]?"/,"string.delim","@dsstring"],[/(@ident)\{/,{cases:{"$1@types":{token:"type",next:"@gen"},"@default":{token:"type",next:"@gen"}}}],[/@ident[!?'']?(?=\.?\()/,{cases:{"@types":"type","@keywords":"keyword","@constants":"variable","@default":"keyword.flow"}}],[/@ident[!?']?/,{cases:{"@types":"type","@keywords":"keyword","@constants":"variable","@default":"identifier"}}],[/\$\w+/,"key"],[/\$\(/,"key","@paste"],[/@@@ident/,"annotation"],{include:"@whitespace"},[/'(?:@escapes|.)'/,"string.character"],[/[()\[\]{}]/,"@brackets"],[/@allops/,{cases:{"@keywordops":"keyword","@operators":"operator"}}],[/[;,]/,"delimiter"],[/0[xX][0-9a-fA-F](_?[0-9a-fA-F])*/,"number.hex"],[/0[_oO][0-7](_?[0-7])*/,"number.octal"],[/0[bB][01](_?[01])*/,"number.binary"],[/[+\-]?\d+(\.\d+)?(im?|[eE][+\-]?\d+(\.\d+)?)?/,"number"]],typeanno:[[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*\{/,"type","@gen"],[/([a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*)(\s*<:\s*)/,["type","keyword"]],[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*/,"type","@pop"],["","","@pop"]],gen:[[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*\{/,"type","@push"],[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*/,"type"],[/<:/,"keyword"],[/(\})(\s*<:\s*)/,["type",{token:"keyword",next:"@pop"}]],[/\}/,"type","@pop"],{include:"@root"}],quote:[[/\$\(/,"key","@paste"],[/\(/,"@brackets","@paren"],[/\)/,"metatag","@pop"],{include:"@root"}],paste:[[/:\(/,"metatag","@quote"],[/\(/,"@brackets","@paren"],[/\)/,"key","@pop"],{include:"@root"}],paren:[[/\$\(/,"key","@paste"],[/:\(/,"metatag","@quote"],[/\(/,"@brackets","@push"],[/\)/,"@brackets","@pop"],{include:"@root"}],sregexp:[[/^.*/,"invalid"],[/[^\\"()\[\]{}]/,"regexp"],[/[()\[\]{}]/,"@brackets"],[/\\./,"operator.scss"],[/"[imsx]*/,"regexp.delim","@pop"]],tregexp:[[/[^\\"()\[\]{}]/,"regexp"],[/[()\[\]{}]/,"@brackets"],[/\\./,"operator.scss"],[/"(?!"")/,"string"],[/"""[imsx]*/,"regexp.delim","@pop"]],rsstring:[[/^.*/,"invalid"],[/[^\\"]/,"string"],[/\\./,"string.escape"],[/"/,"string.delim","@pop"]],rtstring:[[/[^\\"]/,"string"],[/\\./,"string.escape"],[/"(?!"")/,"string"],[/"""/,"string.delim","@pop"]],dsstring:[[/^.*/,"invalid"],[/[^\\"\$]/,"string"],[/\$/,"","@interpolated"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string.delim","@pop"]],dtstring:[[/[^\\"\$]/,"string"],[/\$/,"","@interpolated"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"(?!"")/,"string"],[/"""/,"string.delim","@pop"]],interpolated:[[/\(/,{token:"",switchTo:"@interpolated_compound"}],[/[a-zA-Z_]\w*/,"identifier"],["","","@pop"]],interpolated_compound:[[/\)/,"","@pop"],{include:"@root"}],whitespace:[[/[ \t\r\n]+/,""],[/#=/,"comment","@multi_comment"],[/#.*$/,"comment"]],multi_comment:[[/#=/,"comment","@push"],[/=#/,"comment","@pop"],[/=(?!#)|#(?!=)/,"comment"],[/[^#=]+/,"comment"]]}}});var aNi={};od(aNi,{conf:()=>Jqi,language:()=>qqi});var Jqi,qqi,cNi=ti(()=>{Jqi={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:))")}}},qqi={defaultToken:"",tokenPostfix:".kt",keywords:["as","as?","break","class","continue","do","else","false","for","fun","if","in","!in","interface","is","!is","null","object","package","return","super","this","throw","true","try","typealias","val","var","when","while","by","catch","constructor","delegate","dynamic","field","file","finally","get","import","init","param","property","receiver","set","setparam","where","actual","abstract","annotation","companion","const","crossinline","data","enum","expect","external","final","infix","inline","inner","internal","lateinit","noinline","open","operator","out","override","private","protected","public","reified","sealed","suspend","tailrec","vararg","field","it"],operators:["+","-","*","/","%","=","+=","-=","*=","/=","%=","++","--","&&","||","!","==","!=","===","!==",">","<","<=",">=","[","]","!!","?.","?:","::","..",":","?","->","@",";","$","_"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,"annotation"],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float"],[/0[xX](@hexdigits)[Ll]?/,"number.hex"],[/0(@octaldigits)[Ll]?/,"number.octal"],[/0[bB](@binarydigits)[Ll]?/,"number.binary"],[/(@digits)[fFdD]/,"number.float"],[/(@digits)[lL]?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"""/,"string","@multistring"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@javadoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],javadoc:[[/[^\/*]+/,"comment.doc"],[/\/\*/,"comment.doc","@push"],[/\/\*/,"comment.doc.invalid"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],multistring:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"""/,"string","@pop"],[/./,"string"]]}}});var lNi={};od(lNi,{conf:()=>$qi,language:()=>Gqi});var $qi,Gqi,uNi=ti(()=>{$qi={wordPattern:/(#?-?\d*\.\d\w*%?)|([@#!.:]?[\w-?]+%?)|[@#!.]/g,comments:{blockComment:["/*","*/"],lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),end:new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")}}},Gqi={defaultToken:"",tokenPostfix:".less",identifier:"-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",identifierPlus:"-?-?([a-zA-Z:.]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-:.]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{root:[{include:"@nestedJSBegin"},["[ \\t\\r\\n]+",""],{include:"@comments"},{include:"@keyword"},{include:"@strings"},{include:"@numbers"},["[*_]?[a-zA-Z\\-\\s]+(?=:.*(;|(\\\\$)))","attribute.name","@attribute"],["url(\\-prefix)?\\(",{token:"tag",next:"@urldeclaration"}],["[{}()\\[\\]]","@brackets"],["[,:;]","delimiter"],["#@identifierPlus","tag.id"],["&","tag"],["\\.@identifierPlus(?=\\()","tag.class","@attribute"],["\\.@identifierPlus","tag.class"],["@identifierPlus","tag"],{include:"@operators"},["@(@identifier(?=[:,\\)]))","variable","@attribute"],["@(@identifier)","variable"],["@","key","@atRules"]],nestedJSBegin:[["``","delimiter.backtick"],["`",{token:"delimiter.backtick",next:"@nestedJSEnd",nextEmbedded:"text/javascript"}]],nestedJSEnd:[["`",{token:"delimiter.backtick",next:"@pop",nextEmbedded:"@pop"}]],operators:[["[<>=\\+\\-\\*\\/\\^\\|\\~]","operator"]],keyword:[["(@[\\s]*import|![\\s]*important|true|false|when|iscolor|isnumber|isstring|iskeyword|isurl|ispixel|ispercentage|isem|hue|saturation|lightness|alpha|lighten|darken|saturate|desaturate|fadein|fadeout|fade|spin|mix|round|ceil|floor|percentage)\\b","keyword"]],urldeclaration:[{include:"@strings"},[`[^)\r +]+`,"string"],["\\)",{token:"tag",next:"@pop"}]],attribute:[{include:"@nestedJSBegin"},{include:"@comments"},{include:"@strings"},{include:"@numbers"},{include:"@keyword"},["[a-zA-Z\\-]+(?=\\()","attribute.value","@attribute"],[">","operator","@pop"],["@identifier","attribute.value"],{include:"@operators"},["@(@identifier)","variable"],["[)\\}]","@brackets","@pop"],["[{}()\\[\\]>]","@brackets"],["[;]","delimiter","@pop"],["[,=:]","delimiter"],["\\s",""],[".","attribute.value"]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[".","comment"]],numbers:[["(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?",{token:"attribute.value.number",next:"@units"}],["#[0-9a-fA-F_]+(?!\\w)","attribute.value.hex"]],units:[["(em|ex|ch|rem|fr|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?","attribute.value.unit","@pop"]],strings:[['~?"',{token:"string.delimiter",next:"@stringsEndDoubleQuote"}],["~?'",{token:"string.delimiter",next:"@stringsEndQuote"}]],stringsEndDoubleQuote:[['\\\\"',"string"],['"',{token:"string.delimiter",next:"@popall"}],[".","string"]],stringsEndQuote:[["\\\\'","string"],["'",{token:"string.delimiter",next:"@popall"}],[".","string"]],atRules:[{include:"@comments"},{include:"@strings"},["[()]","delimiter"],["[\\{;]","delimiter","@pop"],[".","key"]]}}});var dNi={};od(dNi,{conf:()=>Kqi,language:()=>Xqi});var Kqi,Xqi,fNi=ti(()=>{Kqi={comments:{lineComment:"COMMENT"},brackets:[["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:":",close:"."}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`"},{open:'"',close:'"'},{open:"'",close:"'"},{open:":",close:"."}],folding:{markers:{start:new RegExp("^\\s*(::\\s*|COMMENT\\s+)#region"),end:new RegExp("^\\s*(::\\s*|COMMENT\\s+)#endregion")}}},Xqi={tokenPostfix:".lexon",ignoreCase:!0,keywords:["lexon","lex","clause","terms","contracts","may","pay","pays","appoints","into","to"],typeKeywords:["amount","person","key","time","date","asset","text"],operators:["less","greater","equal","le","gt","or","and","add","added","subtract","subtracted","multiply","multiplied","times","divide","divided","is","be","certified"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\.\d*\.\d*/,"number.semver"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"]],quoted_identifier:[[/[^\\"]+/,"identifier"],[/"/,{token:"identifier.quote",bracket:"@close",next:"@pop"}]],space_identifier_until_period:[[":","delimiter"],[" ",{token:"white",next:"@identifier_rest"}]],identifier_until_period:[{include:"@whitespace"},[":",{token:"delimiter",next:"@identifier_rest"}],[/[^\\.]+/,"identifier"],[/\./,{token:"delimiter",bracket:"@close",next:"@pop"}]],identifier_rest:[[/[^\\.]+/,"identifier"],[/\./,{token:"delimiter",bracket:"@close",next:"@pop"}]],semver:[{include:"@whitespace"},[":","delimiter"],[/\d*\.\d*\.\d*/,{token:"number.semver",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"]]}}});var _Ni={};od(_Ni,{conf:()=>Yqi,language:()=>Qqi});var Yqi,Qqi,pNi=ti(()=>{Yqi={comments:{lineComment:"--",blockComment:["--[[","]]"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},Qqi={defaultToken:"",tokenPostfix:".lua",keywords:["and","break","do","else","elseif","end","false","for","function","goto","if","in","local","nil","not","or","repeat","return","then","true","until","while"],brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"}],operators:["+","-","*","/","%","^","#","==","~=","<=",">=","<",">","=",";",":",",",".","..","..."],symbols:/[=>r$i,language:()=>o$i});var Zqi,e$i,t$i,i$i,mNi,n$i,Hci,hNi,r$i,o$i,yNi=ti(()=>{OT();Zqi=Object.defineProperty,e$i=Object.getOwnPropertyDescriptor,t$i=Object.getOwnPropertyNames,i$i=Object.prototype.hasOwnProperty,mNi=(l,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let c of t$i(e))!i$i.call(l,c)&&c!==r&&Zqi(l,c,{get:()=>e[c],enumerable:!(o=e$i(e,c))||o.enumerable});return l},n$i=(l,e,r)=>(mNi(l,e,"default"),r&&mNi(r,e,"default")),Hci={};n$i(Hci,Yy);hNi=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],r$i={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,brackets:[[""],["<",">"],["{{","}}"],["{%","%}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"%",close:"%"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${hNi.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:Hci.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${hNi.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:Hci.languages.IndentAction.Indent}}]},o$i={defaultToken:"",tokenPostfix:"",builtinTags:["if","else","elseif","endif","render","assign","capture","endcapture","case","endcase","comment","endcomment","cycle","decrement","for","endfor","include","increment","layout","raw","endraw","render","tablerow","endtablerow","unless","endunless"],builtinFilters:["abs","append","at_least","at_most","capitalize","ceil","compact","date","default","divided_by","downcase","escape","escape_once","first","floor","join","json","last","lstrip","map","minus","modulo","newline_to_br","plus","prepend","remove","remove_first","replace","replace_first","reverse","round","rstrip","size","slice","sort","sort_natural","split","strip","strip_html","strip_newlines","times","truncate","truncatewords","uniq","upcase","url_decode","url_encode","where"],constants:["true","false"],operators:["==","!=",">","<",">=","<="],symbol:/[=>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[//,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],liquidState:[[/\{\{/,"delimiter.output.liquid"],[/\}\}/,{token:"delimiter.output.liquid",switchTo:"@$S2.$S3"}],[/\{\%/,"delimiter.tag.liquid"],[/raw\s*\%\}/,"delimiter.tag.liquid","@liquidRaw"],[/\%\}/,{token:"delimiter.tag.liquid",switchTo:"@$S2.$S3"}],{include:"liquidRoot"}],liquidRaw:[[/^(?!\{\%\s*endraw\s*\%\}).+/],[/\{\%/,"delimiter.tag.liquid"],[/@identifier/],[/\%\}/,{token:"delimiter.tag.liquid",next:"@root"}]],liquidRoot:[[/\d+(\.\d+)?/,"number.liquid"],[/"[^"]*"/,"string.liquid"],[/'[^']*'/,"string.liquid"],[/\s+/],[/@symbol/,{cases:{"@operators":"operator.liquid","@default":""}}],[/\./],[/@identifier/,{cases:{"@constants":"keyword.liquid","@builtinFilters":"predefined.liquid","@builtinTags":"predefined.liquid","@default":"variable.liquid"}}],[/[^}|%]/,"variable.liquid"]]}}});var vNi={};od(vNi,{conf:()=>s$i,language:()=>a$i});var s$i,a$i,bNi=ti(()=>{s$i={comments:{blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"(*",close:"*)"},{open:"<*",close:"*>"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}]},a$i={defaultToken:"",tokenPostfix:".m3",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["AND","ANY","ARRAY","AS","BEGIN","BITS","BRANDED","BY","CASE","CONST","DIV","DO","ELSE","ELSIF","END","EVAL","EXCEPT","EXCEPTION","EXIT","EXPORTS","FINALLY","FOR","FROM","GENERIC","IF","IMPORT","IN","INTERFACE","LOCK","LOOP","METHODS","MOD","MODULE","NOT","OBJECT","OF","OR","OVERRIDES","PROCEDURE","RAISE","RAISES","READONLY","RECORD","REF","REPEAT","RETURN","REVEAL","SET","THEN","TO","TRY","TYPE","TYPECASE","UNSAFE","UNTIL","UNTRACED","VALUE","VAR","WHILE","WITH"],reservedConstNames:["ABS","ADR","ADRSIZE","BITSIZE","BYTESIZE","CEILING","DEC","DISPOSE","FALSE","FIRST","FLOAT","FLOOR","INC","ISTYPE","LAST","LOOPHOLE","MAX","MIN","NARROW","NEW","NIL","NUMBER","ORD","ROUND","SUBARRAY","TRUE","TRUNC","TYPECODE","VAL"],reservedTypeNames:["ADDRESS","ANY","BOOLEAN","CARDINAL","CHAR","EXTENDED","INTEGER","LONGCARD","LONGINT","LONGREAL","MUTEX","NULL","REAL","REFANY","ROOT","TEXT"],operators:["+","-","*","/","&","^","."],relations:["=","#","<","<=",">",">=","<:",":"],delimiters:["|","..","=>",",",";",":="],symbols:/[>=<#.,:;+\-*/&^]+/,escapes:/\\(?:[\\fnrt"']|[0-7]{3})/,tokenizer:{root:[[/_\w*/,"invalid"],[/[a-zA-Z][a-zA-Z0-9_]*/,{cases:{"@keywords":{token:"keyword.$0"},"@reservedConstNames":{token:"constant.reserved.$0"},"@reservedTypeNames":{token:"type.reserved.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[0-9]+\.[0-9]+(?:[DdEeXx][\+\-]?[0-9]+)?/,"number.float"],[/[0-9]+(?:\_[0-9a-fA-F]+)?L?/,"number"],[/@symbols/,{cases:{"@operators":"operators","@relations":"operators","@delimiters":"delimiter","@default":"invalid"}}],[/'[^\\']'/,"string.char"],[/(')(@escapes)(')/,["string.char","string.escape","string.char"]],[/'/,"invalid"],[/"([^"\\]|\\.)*$/,"invalid"],[/"/,"string.text","@text"]],text:[[/[^\\"]+/,"string.text"],[/@escapes/,"string.escape"],[/\\./,"invalid"],[/"/,"string.text","@pop"]],comment:[[/\(\*/,"comment","@push"],[/\*\)/,"comment","@pop"],[/./,"comment"]],pragma:[[/<\*/,"keyword.pragma","@push"],[/\*>/,"keyword.pragma","@pop"],[/./,"keyword.pragma"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\(\*/,"comment","@comment"],[/<\*/,"keyword.pragma","@pragma"]]}}});var SNi={};od(SNi,{conf:()=>c$i,language:()=>l$i});var c$i,l$i,xNi=ti(()=>{c$i={comments:{blockComment:[""]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">",notIn:["string"]}],surroundingPairs:[{open:"(",close:")"},{open:"[",close:"]"},{open:"`",close:"`"}],folding:{markers:{start:new RegExp("^\\s*"),end:new RegExp("^\\s*")}}},l$i={defaultToken:"",tokenPostfix:".md",control:/[\\`*_\[\]{}()#+\-\.!]/,noncontrol:/[^\\`*_\[\]{}()#+\-\.!]/,escapes:/\\(?:@control)/,jsescapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,empty:["area","base","basefont","br","col","frame","hr","img","input","isindex","link","meta","param"],tokenizer:{root:[[/^\s*\|/,"@rematch","@table_header"],[/^(\s{0,3})(#+)((?:[^\\#]|@escapes)+)((?:#+)?)/,["white","keyword","keyword","keyword"]],[/^\s*(=+|\-+)\s*$/,"keyword"],[/^\s*((\*[ ]?)+)\s*$/,"meta.separator"],[/^\s*>+/,"comment"],[/^\s*([\*\-+:]|\d+\.)\s/,"keyword"],[/^(\t|[ ]{4})[^ ].*$/,"string"],[/^\s*~~~\s*((?:\w|[\/\-#])+)?\s*$/,{token:"string",next:"@codeblock"}],[/^\s*```\s*((?:\w|[\/\-#])+).*$/,{token:"string",next:"@codeblockgh",nextEmbedded:"$1"}],[/^\s*```\s*$/,{token:"string",next:"@codeblock"}],{include:"@linecontent"}],table_header:[{include:"@table_common"},[/[^\|]+/,"keyword.table.header"]],table_body:[{include:"@table_common"},{include:"@linecontent"}],table_common:[[/\s*[\-:]+\s*/,{token:"keyword",switchTo:"table_body"}],[/^\s*\|/,"keyword.table.left"],[/^\s*[^\|]/,"@rematch","@pop"],[/^\s*$/,"@rematch","@pop"],[/\|/,{cases:{"@eos":"keyword.table.right","@default":"keyword.table.middle"}}]],codeblock:[[/^\s*~~~\s*$/,{token:"string",next:"@pop"}],[/^\s*```\s*$/,{token:"string",next:"@pop"}],[/.*$/,"variable.source"]],codeblockgh:[[/```\s*$/,{token:"string",next:"@pop",nextEmbedded:"@pop"}],[/[^`]+/,"variable.source"]],linecontent:[[/&\w+;/,"string.escape"],[/@escapes/,"escape"],[/\b__([^\\_]|@escapes|_(?!_))+__\b/,"strong"],[/\*\*([^\\*]|@escapes|\*(?!\*))+\*\*/,"strong"],[/\b_[^_]+_\b/,"emphasis"],[/\*([^\\*]|@escapes)+\*/,"emphasis"],[/`([^\\`]|@escapes)+`/,"variable"],[/\{+[^}]+\}+/,"string.target"],[/(!?\[)((?:[^\]\\]|@escapes)*)(\]\([^\)]+\))/,["string.link","","string.link"]],[/(!?\[)((?:[^\]\\]|@escapes)*)(\])/,"string.link"],{include:"html"}],html:[[/<(\w+)\/>/,"tag"],[/<(\w+)(\-|\w)*/,{cases:{"@empty":{token:"tag",next:"@tag.$1"},"@default":{token:"tag",next:"@tag.$1"}}}],[/<\/(\w+)(\-|\w)*\s*>/,{token:"tag"}],[//,"comment","@pop"],[//,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],phpInSimpleState:[[/<\?((php)|=)?/,"metatag.php"],[/\?>/,{token:"metatag.php",switchTo:"@$S2.$S3"}],{include:"phpRoot"}],phpInEmbeddedState:[[/<\?((php)|=)?/,"metatag.php"],[/\?>/,{token:"metatag.php",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"phpRoot"}],phpRoot:[[/[a-zA-Z_]\w*/,{cases:{"@phpKeywords":{token:"keyword.php"},"@phpCompileTimeConstants":{token:"constant.php"},"@default":"identifier.php"}}],[/[$a-zA-Z_]\w*/,{cases:{"@phpPreDefinedVariables":{token:"variable.predefined.php"},"@default":"variable.php"}}],[/[{}]/,"delimiter.bracket.php"],[/[\[\]]/,"delimiter.array.php"],[/[()]/,"delimiter.parenthesis.php"],[/[ \t\r\n]+/],[/(#|\/\/)$/,"comment.php"],[/(#|\/\/)/,"comment.php","@phpLineComment"],[/\/\*/,"comment.php","@phpComment"],[/"/,"string.php","@phpDoubleQuoteString"],[/'/,"string.php","@phpSingleQuoteString"],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,\@]/,"delimiter.php"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.php"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.php"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.php"],[/0[0-7']*[0-7]/,"number.octal.php"],[/0[bB][0-1']*[0-1]/,"number.binary.php"],[/\d[\d']*/,"number.php"],[/\d/,"number.php"]],phpComment:[[/\*\//,"comment.php","@pop"],[/[^*]+/,"comment.php"],[/./,"comment.php"]],phpLineComment:[[/\?>/,{token:"@rematch",next:"@pop"}],[/.$/,"comment.php","@pop"],[/[^?]+$/,"comment.php","@pop"],[/[^?]+/,"comment.php"],[/./,"comment.php"]],phpDoubleQuoteString:[[/[^\\"]+/,"string.php"],[/@escapes/,"string.escape.php"],[/\\./,"string.escape.invalid.php"],[/"/,"string.php","@pop"]],phpSingleQuoteString:[[/[^\\']+/,"string.php"],[/@escapes/,"string.escape.php"],[/\\./,"string.escape.invalid.php"],[/'/,"string.php","@pop"]]},phpKeywords:["abstract","and","array","as","break","callable","case","catch","cfunction","class","clone","const","continue","declare","default","do","else","elseif","enddeclare","endfor","endforeach","endif","endswitch","endwhile","extends","false","final","for","foreach","function","global","goto","if","implements","interface","instanceof","insteadof","namespace","new","null","object","old_function","or","private","protected","public","resource","static","switch","throw","trait","try","true","use","var","while","xor","die","echo","empty","exit","eval","include","include_once","isset","list","require","require_once","return","print","unset","yield","__construct"],phpCompileTimeConstants:["__CLASS__","__DIR__","__FILE__","__LINE__","__NAMESPACE__","__METHOD__","__FUNCTION__","__TRAIT__"],phpPreDefinedVariables:["$GLOBALS","$_SERVER","$_GET","$_POST","$_FILES","$_REQUEST","$_SESSION","$_ENV","$_COOKIE","$php_errormsg","$HTTP_RAW_POST_DATA","$http_response_header","$argc","$argv"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/}});var UNi={};od(UNi,{conf:()=>F$i,language:()=>M$i});var F$i,M$i,JNi=ti(()=>{F$i={comments:{lineComment:"#"},brackets:[["[","]"],["<",">"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"<",close:">"},{open:"(",close:")"}],surroundingPairs:[{open:"[",close:"]"},{open:"<",close:">"},{open:"(",close:")"}]},M$i={defaultToken:"",tokenPostfix:".pla",brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"<",close:">",token:"delimiter.angle"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:[".i",".o",".mv",".ilb",".ob",".label",".type",".phase",".pair",".symbolic",".symbolic-output",".kiss",".p",".e",".end"],comment:/#.*$/,identifier:/[a-zA-Z]+[a-zA-Z0-9_\-]*/,plaContent:/[01\-~\|]+/,tokenizer:{root:[{include:"@whitespace"},[/@comment/,"comment"],[/\.([a-zA-Z_\-]+)/,{cases:{"@eos":{token:"keyword.$1"},"@keywords":{cases:{".type":{token:"keyword.$1",next:"@type"},"@default":{token:"keyword.$1",next:"@keywordArg"}}},"@default":{token:"keyword.$1"}}}],[/@identifier/,"identifier"],[/@plaContent/,"string"]],whitespace:[[/[ \t\r\n]+/,""]],type:[{include:"@whitespace"},[/\w+/,{token:"type",next:"@pop"}]],keywordArg:[[/[ \t\r\n]+/,{cases:{"@eos":{token:"",next:"@pop"},"@default":""}}],[/@comment/,"comment","@pop"],[/[<>()\[\]]/,{cases:{"@eos":{token:"@brackets",next:"@pop"},"@default":"@brackets"}}],[/\-?\d+/,{cases:{"@eos":{token:"number",next:"@pop"},"@default":"number"}}],[/@identifier/,{cases:{"@eos":{token:"identifier",next:"@pop"},"@default":"identifier"}}],[/[;=]/,{cases:{"@eos":{token:"delimiter",next:"@pop"},"@default":"delimiter"}}]]}}});var qNi={};od(qNi,{conf:()=>R$i,language:()=>B$i});var R$i,B$i,$Ni=ti(()=>{R$i={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}]},B$i={tokenPostfix:".pats",defaultToken:"invalid",keywords:["abstype","abst0ype","absprop","absview","absvtype","absviewtype","absvt0ype","absviewt0ype","as","and","assume","begin","classdec","datasort","datatype","dataprop","dataview","datavtype","dataviewtype","do","end","extern","extype","extvar","exception","fn","fnx","fun","prfn","prfun","praxi","castfn","if","then","else","ifcase","in","infix","infixl","infixr","prefix","postfix","implmnt","implement","primplmnt","primplement","import","let","local","macdef","macrodef","nonfix","symelim","symintr","overload","of","op","rec","sif","scase","sortdef","sta","stacst","stadef","static","staload","dynload","try","tkindef","typedef","propdef","viewdef","vtypedef","viewtypedef","prval","var","prvar","when","where","with","withtype","withprop","withview","withvtype","withviewtype"],keywords_dlr:["$delay","$ldelay","$arrpsz","$arrptrsize","$d2ctype","$effmask","$effmask_ntm","$effmask_exn","$effmask_ref","$effmask_wrt","$effmask_all","$extern","$extkind","$extype","$extype_struct","$extval","$extfcall","$extmcall","$literal","$myfilename","$mylocation","$myfunction","$lst","$lst_t","$lst_vt","$list","$list_t","$list_vt","$rec","$rec_t","$rec_vt","$record","$record_t","$record_vt","$tup","$tup_t","$tup_vt","$tuple","$tuple_t","$tuple_vt","$break","$continue","$raise","$showtype","$vcopyenv_v","$vcopyenv_vt","$tempenver","$solver_assert","$solver_verify"],keywords_srp:["#if","#ifdef","#ifndef","#then","#elif","#elifdef","#elifndef","#else","#endif","#error","#prerr","#print","#assert","#undef","#define","#include","#require","#pragma","#codegen2","#codegen3"],irregular_keyword_list:["val+","val-","val","case+","case-","case","addr@","addr","fold@","free@","fix@","fix","lam@","lam","llam@","llam","viewt@ype+","viewt@ype-","viewt@ype","viewtype+","viewtype-","viewtype","view+","view-","view@","view","type+","type-","type","vtype+","vtype-","vtype","vt@ype+","vt@ype-","vt@ype","viewt@ype+","viewt@ype-","viewt@ype","viewtype+","viewtype-","viewtype","prop+","prop-","prop","type+","type-","type","t@ype","t@ype+","t@ype-","abst@ype","abstype","absviewt@ype","absvt@ype","for*","for","while*","while"],keywords_types:["bool","double","byte","int","short","char","void","unit","long","float","string","strptr"],keywords_effects:["0","fun","clo","prf","funclo","cloptr","cloref","ref","ntm","1"],operators:["@","!","|","`",":","$",".","=","#","~","..","...","=>","=<>","=/=>","=>>","=/=>>","<",">","><",".<",">.",".<>.","->","-<>"],brackets:[{open:",(",close:")",token:"delimiter.parenthesis"},{open:"`(",close:")",token:"delimiter.parenthesis"},{open:"%(",close:")",token:"delimiter.parenthesis"},{open:"'(",close:")",token:"delimiter.parenthesis"},{open:"'{",close:"}",token:"delimiter.parenthesis"},{open:"@(",close:")",token:"delimiter.parenthesis"},{open:"@{",close:"}",token:"delimiter.brace"},{open:"@[",close:"]",token:"delimiter.square"},{open:"#[",close:"]",token:"delimiter.square"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],symbols:/[=>]/,digit:/[0-9]/,digitseq0:/@digit*/,xdigit:/[0-9A-Za-z]/,xdigitseq0:/@xdigit*/,INTSP:/[lLuU]/,FLOATSP:/[fFlL]/,fexponent:/[eE][+-]?[0-9]+/,fexponent_bin:/[pP][+-]?[0-9]+/,deciexp:/\.[0-9]*@fexponent?/,hexiexp:/\.[0-9a-zA-Z]*@fexponent_bin?/,irregular_keywords:/val[+-]?|case[+-]?|addr\@?|fold\@|free\@|fix\@?|lam\@?|llam\@?|prop[+-]?|type[+-]?|view[+-@]?|viewt@?ype[+-]?|t@?ype[+-]?|v(iew)?t@?ype[+-]?|abst@?ype|absv(iew)?t@?ype|for\*?|while\*?/,ESCHAR:/[ntvbrfa\\\?'"\(\[\{]/,start:"root",tokenizer:{root:[{regex:/[ \t\r\n]+/,action:{token:""}},{regex:/\(\*\)/,action:{token:"invalid"}},{regex:/\(\*/,action:{token:"comment",next:"lexing_COMMENT_block_ml"}},{regex:/\(/,action:"@brackets"},{regex:/\)/,action:"@brackets"},{regex:/\[/,action:"@brackets"},{regex:/\]/,action:"@brackets"},{regex:/\{/,action:"@brackets"},{regex:/\}/,action:"@brackets"},{regex:/,\(/,action:"@brackets"},{regex:/,/,action:{token:"delimiter.comma"}},{regex:/;/,action:{token:"delimiter.semicolon"}},{regex:/@\(/,action:"@brackets"},{regex:/@\[/,action:"@brackets"},{regex:/@\{/,action:"@brackets"},{regex:/:/,action:{token:"@rematch",next:"@pop"}}],lexing_EXTCODE:[{regex:/^%}/,action:{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}},{regex:/[^%]+/,action:""}],lexing_DQUOTE:[{regex:/"/,action:{token:"string.quote",next:"@pop"}},{regex:/(\{\$)(@IDENTFST@IDENTRST*)(\})/,action:[{token:"string.escape"},{token:"identifier"},{token:"string.escape"}]},{regex:/\\$/,action:{token:"string.escape"}},{regex:/\\(@ESCHAR|[xX]@xdigit+|@digit+)/,action:{token:"string.escape"}},{regex:/[^\\"]+/,action:{token:"string"}}]}}});var GNi={};od(GNi,{conf:()=>j$i,language:()=>W$i});var j$i,W$i,KNi=ti(()=>{j$i={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["[","]"],["(",")"],["{","}"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment","identifier"]},{open:"[",close:"]",notIn:["string","comment","identifier"]},{open:"(",close:")",notIn:["string","comment","identifier"]},{open:"{",close:"}",notIn:["string","comment","identifier"]}]},W$i={defaultToken:"",tokenPostfix:".pq",ignoreCase:!1,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"{",close:"}",token:"delimiter.brackets"},{open:"(",close:")",token:"delimiter.parenthesis"}],operatorKeywords:["and","not","or"],keywords:["as","each","else","error","false","if","in","is","let","meta","otherwise","section","shared","then","true","try","type"],constructors:["#binary","#date","#datetime","#datetimezone","#duration","#table","#time"],constants:["#infinity","#nan","#sections","#shared"],typeKeywords:["action","any","anynonnull","none","null","logical","number","time","date","datetime","datetimezone","duration","text","binary","list","record","table","function"],builtinFunctions:["Access.Database","Action.Return","Action.Sequence","Action.Try","ActiveDirectory.Domains","AdoDotNet.DataSource","AdoDotNet.Query","AdobeAnalytics.Cubes","AnalysisServices.Database","AnalysisServices.Databases","AzureStorage.BlobContents","AzureStorage.Blobs","AzureStorage.Tables","Binary.Buffer","Binary.Combine","Binary.Compress","Binary.Decompress","Binary.End","Binary.From","Binary.FromList","Binary.FromText","Binary.InferContentType","Binary.Length","Binary.ToList","Binary.ToText","BinaryFormat.7BitEncodedSignedInteger","BinaryFormat.7BitEncodedUnsignedInteger","BinaryFormat.Binary","BinaryFormat.Byte","BinaryFormat.ByteOrder","BinaryFormat.Choice","BinaryFormat.Decimal","BinaryFormat.Double","BinaryFormat.Group","BinaryFormat.Length","BinaryFormat.List","BinaryFormat.Null","BinaryFormat.Record","BinaryFormat.SignedInteger16","BinaryFormat.SignedInteger32","BinaryFormat.SignedInteger64","BinaryFormat.Single","BinaryFormat.Text","BinaryFormat.Transform","BinaryFormat.UnsignedInteger16","BinaryFormat.UnsignedInteger32","BinaryFormat.UnsignedInteger64","Byte.From","Character.FromNumber","Character.ToNumber","Combiner.CombineTextByDelimiter","Combiner.CombineTextByEachDelimiter","Combiner.CombineTextByLengths","Combiner.CombineTextByPositions","Combiner.CombineTextByRanges","Comparer.Equals","Comparer.FromCulture","Comparer.Ordinal","Comparer.OrdinalIgnoreCase","Csv.Document","Cube.AddAndExpandDimensionColumn","Cube.AddMeasureColumn","Cube.ApplyParameter","Cube.AttributeMemberId","Cube.AttributeMemberProperty","Cube.CollapseAndRemoveColumns","Cube.Dimensions","Cube.DisplayFolders","Cube.Measures","Cube.Parameters","Cube.Properties","Cube.PropertyKey","Cube.ReplaceDimensions","Cube.Transform","Currency.From","DB2.Database","Date.AddDays","Date.AddMonths","Date.AddQuarters","Date.AddWeeks","Date.AddYears","Date.Day","Date.DayOfWeek","Date.DayOfWeekName","Date.DayOfYear","Date.DaysInMonth","Date.EndOfDay","Date.EndOfMonth","Date.EndOfQuarter","Date.EndOfWeek","Date.EndOfYear","Date.From","Date.FromText","Date.IsInCurrentDay","Date.IsInCurrentMonth","Date.IsInCurrentQuarter","Date.IsInCurrentWeek","Date.IsInCurrentYear","Date.IsInNextDay","Date.IsInNextMonth","Date.IsInNextNDays","Date.IsInNextNMonths","Date.IsInNextNQuarters","Date.IsInNextNWeeks","Date.IsInNextNYears","Date.IsInNextQuarter","Date.IsInNextWeek","Date.IsInNextYear","Date.IsInPreviousDay","Date.IsInPreviousMonth","Date.IsInPreviousNDays","Date.IsInPreviousNMonths","Date.IsInPreviousNQuarters","Date.IsInPreviousNWeeks","Date.IsInPreviousNYears","Date.IsInPreviousQuarter","Date.IsInPreviousWeek","Date.IsInPreviousYear","Date.IsInYearToDate","Date.IsLeapYear","Date.Month","Date.MonthName","Date.QuarterOfYear","Date.StartOfDay","Date.StartOfMonth","Date.StartOfQuarter","Date.StartOfWeek","Date.StartOfYear","Date.ToRecord","Date.ToText","Date.WeekOfMonth","Date.WeekOfYear","Date.Year","DateTime.AddZone","DateTime.Date","DateTime.FixedLocalNow","DateTime.From","DateTime.FromFileTime","DateTime.FromText","DateTime.IsInCurrentHour","DateTime.IsInCurrentMinute","DateTime.IsInCurrentSecond","DateTime.IsInNextHour","DateTime.IsInNextMinute","DateTime.IsInNextNHours","DateTime.IsInNextNMinutes","DateTime.IsInNextNSeconds","DateTime.IsInNextSecond","DateTime.IsInPreviousHour","DateTime.IsInPreviousMinute","DateTime.IsInPreviousNHours","DateTime.IsInPreviousNMinutes","DateTime.IsInPreviousNSeconds","DateTime.IsInPreviousSecond","DateTime.LocalNow","DateTime.Time","DateTime.ToRecord","DateTime.ToText","DateTimeZone.FixedLocalNow","DateTimeZone.FixedUtcNow","DateTimeZone.From","DateTimeZone.FromFileTime","DateTimeZone.FromText","DateTimeZone.LocalNow","DateTimeZone.RemoveZone","DateTimeZone.SwitchZone","DateTimeZone.ToLocal","DateTimeZone.ToRecord","DateTimeZone.ToText","DateTimeZone.ToUtc","DateTimeZone.UtcNow","DateTimeZone.ZoneHours","DateTimeZone.ZoneMinutes","Decimal.From","Diagnostics.ActivityId","Diagnostics.Trace","DirectQueryCapabilities.From","Double.From","Duration.Days","Duration.From","Duration.FromText","Duration.Hours","Duration.Minutes","Duration.Seconds","Duration.ToRecord","Duration.ToText","Duration.TotalDays","Duration.TotalHours","Duration.TotalMinutes","Duration.TotalSeconds","Embedded.Value","Error.Record","Excel.CurrentWorkbook","Excel.Workbook","Exchange.Contents","Expression.Constant","Expression.Evaluate","Expression.Identifier","Facebook.Graph","File.Contents","Folder.Contents","Folder.Files","Function.From","Function.Invoke","Function.InvokeAfter","Function.IsDataSource","GoogleAnalytics.Accounts","Guid.From","HdInsight.Containers","HdInsight.Contents","HdInsight.Files","Hdfs.Contents","Hdfs.Files","Informix.Database","Int16.From","Int32.From","Int64.From","Int8.From","ItemExpression.From","Json.Document","Json.FromValue","Lines.FromBinary","Lines.FromText","Lines.ToBinary","Lines.ToText","List.Accumulate","List.AllTrue","List.Alternate","List.AnyTrue","List.Average","List.Buffer","List.Combine","List.Contains","List.ContainsAll","List.ContainsAny","List.Count","List.Covariance","List.DateTimeZones","List.DateTimes","List.Dates","List.Difference","List.Distinct","List.Durations","List.FindText","List.First","List.FirstN","List.Generate","List.InsertRange","List.Intersect","List.IsDistinct","List.IsEmpty","List.Last","List.LastN","List.MatchesAll","List.MatchesAny","List.Max","List.MaxN","List.Median","List.Min","List.MinN","List.Mode","List.Modes","List.NonNullCount","List.Numbers","List.PositionOf","List.PositionOfAny","List.Positions","List.Product","List.Random","List.Range","List.RemoveFirstN","List.RemoveItems","List.RemoveLastN","List.RemoveMatchingItems","List.RemoveNulls","List.RemoveRange","List.Repeat","List.ReplaceMatchingItems","List.ReplaceRange","List.ReplaceValue","List.Reverse","List.Select","List.Single","List.SingleOrDefault","List.Skip","List.Sort","List.StandardDeviation","List.Sum","List.Times","List.Transform","List.TransformMany","List.Union","List.Zip","Logical.From","Logical.FromText","Logical.ToText","MQ.Queue","MySQL.Database","Number.Abs","Number.Acos","Number.Asin","Number.Atan","Number.Atan2","Number.BitwiseAnd","Number.BitwiseNot","Number.BitwiseOr","Number.BitwiseShiftLeft","Number.BitwiseShiftRight","Number.BitwiseXor","Number.Combinations","Number.Cos","Number.Cosh","Number.Exp","Number.Factorial","Number.From","Number.FromText","Number.IntegerDivide","Number.IsEven","Number.IsNaN","Number.IsOdd","Number.Ln","Number.Log","Number.Log10","Number.Mod","Number.Permutations","Number.Power","Number.Random","Number.RandomBetween","Number.Round","Number.RoundAwayFromZero","Number.RoundDown","Number.RoundTowardZero","Number.RoundUp","Number.Sign","Number.Sin","Number.Sinh","Number.Sqrt","Number.Tan","Number.Tanh","Number.ToText","OData.Feed","Odbc.DataSource","Odbc.Query","OleDb.DataSource","OleDb.Query","Oracle.Database","Percentage.From","PostgreSQL.Database","RData.FromBinary","Record.AddField","Record.Combine","Record.Field","Record.FieldCount","Record.FieldNames","Record.FieldOrDefault","Record.FieldValues","Record.FromList","Record.FromTable","Record.HasFields","Record.RemoveFields","Record.RenameFields","Record.ReorderFields","Record.SelectFields","Record.ToList","Record.ToTable","Record.TransformFields","Replacer.ReplaceText","Replacer.ReplaceValue","RowExpression.Column","RowExpression.From","Salesforce.Data","Salesforce.Reports","SapBusinessWarehouse.Cubes","SapHana.Database","SharePoint.Contents","SharePoint.Files","SharePoint.Tables","Single.From","Soda.Feed","Splitter.SplitByNothing","Splitter.SplitTextByAnyDelimiter","Splitter.SplitTextByDelimiter","Splitter.SplitTextByEachDelimiter","Splitter.SplitTextByLengths","Splitter.SplitTextByPositions","Splitter.SplitTextByRanges","Splitter.SplitTextByRepeatedLengths","Splitter.SplitTextByWhitespace","Sql.Database","Sql.Databases","SqlExpression.SchemaFrom","SqlExpression.ToExpression","Sybase.Database","Table.AddColumn","Table.AddIndexColumn","Table.AddJoinColumn","Table.AddKey","Table.AggregateTableColumn","Table.AlternateRows","Table.Buffer","Table.Column","Table.ColumnCount","Table.ColumnNames","Table.ColumnsOfType","Table.Combine","Table.CombineColumns","Table.Contains","Table.ContainsAll","Table.ContainsAny","Table.DemoteHeaders","Table.Distinct","Table.DuplicateColumn","Table.ExpandListColumn","Table.ExpandRecordColumn","Table.ExpandTableColumn","Table.FillDown","Table.FillUp","Table.FilterWithDataTable","Table.FindText","Table.First","Table.FirstN","Table.FirstValue","Table.FromColumns","Table.FromList","Table.FromPartitions","Table.FromRecords","Table.FromRows","Table.FromValue","Table.Group","Table.HasColumns","Table.InsertRows","Table.IsDistinct","Table.IsEmpty","Table.Join","Table.Keys","Table.Last","Table.LastN","Table.MatchesAllRows","Table.MatchesAnyRows","Table.Max","Table.MaxN","Table.Min","Table.MinN","Table.NestedJoin","Table.Partition","Table.PartitionValues","Table.Pivot","Table.PositionOf","Table.PositionOfAny","Table.PrefixColumns","Table.Profile","Table.PromoteHeaders","Table.Range","Table.RemoveColumns","Table.RemoveFirstN","Table.RemoveLastN","Table.RemoveMatchingRows","Table.RemoveRows","Table.RemoveRowsWithErrors","Table.RenameColumns","Table.ReorderColumns","Table.Repeat","Table.ReplaceErrorValues","Table.ReplaceKeys","Table.ReplaceMatchingRows","Table.ReplaceRelationshipIdentity","Table.ReplaceRows","Table.ReplaceValue","Table.ReverseRows","Table.RowCount","Table.Schema","Table.SelectColumns","Table.SelectRows","Table.SelectRowsWithErrors","Table.SingleRow","Table.Skip","Table.Sort","Table.SplitColumn","Table.ToColumns","Table.ToList","Table.ToRecords","Table.ToRows","Table.TransformColumnNames","Table.TransformColumnTypes","Table.TransformColumns","Table.TransformRows","Table.Transpose","Table.Unpivot","Table.UnpivotOtherColumns","Table.View","Table.ViewFunction","TableAction.DeleteRows","TableAction.InsertRows","TableAction.UpdateRows","Tables.GetRelationships","Teradata.Database","Text.AfterDelimiter","Text.At","Text.BeforeDelimiter","Text.BetweenDelimiters","Text.Clean","Text.Combine","Text.Contains","Text.End","Text.EndsWith","Text.Format","Text.From","Text.FromBinary","Text.Insert","Text.Length","Text.Lower","Text.Middle","Text.NewGuid","Text.PadEnd","Text.PadStart","Text.PositionOf","Text.PositionOfAny","Text.Proper","Text.Range","Text.Remove","Text.RemoveRange","Text.Repeat","Text.Replace","Text.ReplaceRange","Text.Select","Text.Split","Text.SplitAny","Text.Start","Text.StartsWith","Text.ToBinary","Text.ToList","Text.Trim","Text.TrimEnd","Text.TrimStart","Text.Upper","Time.EndOfHour","Time.From","Time.FromText","Time.Hour","Time.Minute","Time.Second","Time.StartOfHour","Time.ToRecord","Time.ToText","Type.AddTableKey","Type.ClosedRecord","Type.Facets","Type.ForFunction","Type.ForRecord","Type.FunctionParameters","Type.FunctionRequiredParameters","Type.FunctionReturn","Type.Is","Type.IsNullable","Type.IsOpenRecord","Type.ListItem","Type.NonNullable","Type.OpenRecord","Type.RecordFields","Type.ReplaceFacets","Type.ReplaceTableKeys","Type.TableColumn","Type.TableKeys","Type.TableRow","Type.TableSchema","Type.Union","Uri.BuildQueryString","Uri.Combine","Uri.EscapeDataString","Uri.Parts","Value.Add","Value.As","Value.Compare","Value.Divide","Value.Equals","Value.Firewall","Value.FromText","Value.Is","Value.Metadata","Value.Multiply","Value.NativeQuery","Value.NullableEquals","Value.RemoveMetadata","Value.ReplaceMetadata","Value.ReplaceType","Value.Subtract","Value.Type","ValueAction.NativeStatement","ValueAction.Replace","Variable.Value","Web.Contents","Web.Page","WebAction.Request","Xml.Document","Xml.Tables"],builtinConstants:["BinaryEncoding.Base64","BinaryEncoding.Hex","BinaryOccurrence.Optional","BinaryOccurrence.Repeating","BinaryOccurrence.Required","ByteOrder.BigEndian","ByteOrder.LittleEndian","Compression.Deflate","Compression.GZip","CsvStyle.QuoteAfterDelimiter","CsvStyle.QuoteAlways","Culture.Current","Day.Friday","Day.Monday","Day.Saturday","Day.Sunday","Day.Thursday","Day.Tuesday","Day.Wednesday","ExtraValues.Error","ExtraValues.Ignore","ExtraValues.List","GroupKind.Global","GroupKind.Local","JoinAlgorithm.Dynamic","JoinAlgorithm.LeftHash","JoinAlgorithm.LeftIndex","JoinAlgorithm.PairwiseHash","JoinAlgorithm.RightHash","JoinAlgorithm.RightIndex","JoinAlgorithm.SortMerge","JoinKind.FullOuter","JoinKind.Inner","JoinKind.LeftAnti","JoinKind.LeftOuter","JoinKind.RightAnti","JoinKind.RightOuter","JoinSide.Left","JoinSide.Right","MissingField.Error","MissingField.Ignore","MissingField.UseNull","Number.E","Number.Epsilon","Number.NaN","Number.NegativeInfinity","Number.PI","Number.PositiveInfinity","Occurrence.All","Occurrence.First","Occurrence.Last","Occurrence.Optional","Occurrence.Repeating","Occurrence.Required","Order.Ascending","Order.Descending","Precision.Decimal","Precision.Double","QuoteStyle.Csv","QuoteStyle.None","RelativePosition.FromEnd","RelativePosition.FromStart","RoundingMode.AwayFromZero","RoundingMode.Down","RoundingMode.ToEven","RoundingMode.TowardZero","RoundingMode.Up","SapHanaDistribution.All","SapHanaDistribution.Connection","SapHanaDistribution.Off","SapHanaDistribution.Statement","SapHanaRangeOperator.Equals","SapHanaRangeOperator.GreaterThan","SapHanaRangeOperator.GreaterThanOrEquals","SapHanaRangeOperator.LessThan","SapHanaRangeOperator.LessThanOrEquals","SapHanaRangeOperator.NotEquals","TextEncoding.Ascii","TextEncoding.BigEndianUnicode","TextEncoding.Unicode","TextEncoding.Utf16","TextEncoding.Utf8","TextEncoding.Windows","TraceLevel.Critical","TraceLevel.Error","TraceLevel.Information","TraceLevel.Verbose","TraceLevel.Warning","WebMethod.Delete","WebMethod.Get","WebMethod.Head","WebMethod.Patch","WebMethod.Post","WebMethod.Put"],builtinTypes:["Action.Type","Any.Type","Binary.Type","BinaryEncoding.Type","BinaryOccurrence.Type","Byte.Type","ByteOrder.Type","Character.Type","Compression.Type","CsvStyle.Type","Currency.Type","Date.Type","DateTime.Type","DateTimeZone.Type","Day.Type","Decimal.Type","Double.Type","Duration.Type","ExtraValues.Type","Function.Type","GroupKind.Type","Guid.Type","Int16.Type","Int32.Type","Int64.Type","Int8.Type","JoinAlgorithm.Type","JoinKind.Type","JoinSide.Type","List.Type","Logical.Type","MissingField.Type","None.Type","Null.Type","Number.Type","Occurrence.Type","Order.Type","Password.Type","Percentage.Type","Precision.Type","QuoteStyle.Type","Record.Type","RelativePosition.Type","RoundingMode.Type","SapHanaDistribution.Type","SapHanaRangeOperator.Type","Single.Type","Table.Type","Text.Type","TextEncoding.Type","Time.Type","TraceLevel.Type","Type.Type","Uri.Type","WebMethod.Type"],tokenizer:{root:[[/#"[\w \.]+"/,"identifier.quote"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+([eE][\-+]?\d+)?/,"number"],[/(#?[a-z]+)\b/,{cases:{"@typeKeywords":"type","@keywords":"keyword","@constants":"constant","@constructors":"constructor","@operatorKeywords":"operators","@default":"identifier"}}],[/\b([A-Z][a-zA-Z0-9]+\.Type)\b/,{cases:{"@builtinTypes":"type","@default":"identifier"}}],[/\b([A-Z][a-zA-Z0-9]+\.[A-Z][a-zA-Z0-9]+)\b/,{cases:{"@builtinFunctions":"keyword.function","@builtinConstants":"constant","@default":"identifier"}}],[/\b([a-zA-Z_][\w\.]*)\b/,"identifier"],{include:"@whitespace"},{include:"@comments"},{include:"@strings"},[/[{}()\[\]]/,"@brackets"],[/([=\+<>\-\*&@\?\/!])|([<>]=)|(<>)|(=>)|(\.\.\.)|(\.\.)/,"operators"],[/[,;]/,"delimiter"]],whitespace:[[/\s+/,"white"]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[".","comment"]],strings:[['"',"string","@string"]],string:[['""',"string.escape"],['"',"string","@pop"],[".","string"]]}}});var XNi={};od(XNi,{conf:()=>z$i,language:()=>V$i});var z$i,V$i,YNi=ti(()=>{z$i={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"#",blockComment:["<#","#>"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},V$i={defaultToken:"",ignoreCase:!0,tokenPostfix:".ps1",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"}],keywords:["begin","break","catch","class","continue","data","define","do","dynamicparam","else","elseif","end","exit","filter","finally","for","foreach","from","function","if","in","param","process","return","switch","throw","trap","try","until","using","var","while","workflow","parallel","sequence","inlinescript","configuration"],helpKeywords:/SYNOPSIS|DESCRIPTION|PARAMETER|EXAMPLE|INPUTS|OUTPUTS|NOTES|LINK|COMPONENT|ROLE|FUNCTIONALITY|FORWARDHELPTARGETNAME|FORWARDHELPCATEGORY|REMOTEHELPRUNSPACE|EXTERNALHELP/,symbols:/[=>/,"comment","@pop"],[/(\.)(@helpKeywords)(?!\w)/,{token:"comment.keyword.$2"}],[/[\.#]/,"comment"]]}}});var QNi={};od(QNi,{conf:()=>U$i,language:()=>J$i});var H$i,U$i,J$i,ZNi=ti(()=>{H$i=["true","false"],U$i={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],autoCloseBefore:`.,=}])>' + `,indentationRules:{increaseIndentPattern:new RegExp("^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$"),decreaseIndentPattern:new RegExp("^((?!.*?\\/\\*).*\\*/)?\\s*[\\}\\]].*$")}},J$i={defaultToken:"",tokenPostfix:".proto",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],symbols:/[=>/,{token:"@brackets",bracket:"@close",switchTo:"identifier"}]],field:[{include:"@whitespace"},["group",{cases:{"$S2==proto2":{token:"keyword",switchTo:"@groupDecl.$S2"}}}],[/(@identifier)(\s*)(=)/,["identifier","white",{token:"delimiter",next:"@pop"}]],[/@fullIdentifier|\./,{cases:{"@builtinTypes":"keyword","@default":"type.identifier"}}]],groupDecl:[{include:"@whitespace"},[/@identifier/,"identifier"],["=","operator"],[/{/,{token:"@brackets",bracket:"@open",switchTo:"@messageBody.$S2"}],{include:"@constant"}],type:[{include:"@whitespace"},[/@identifier/,"type.identifier","@pop"],[/./,"delimiter"]],identifier:[{include:"@whitespace"},[/@identifier/,"identifier","@pop"]],serviceDecl:[{include:"@whitespace"},[/@identifier/,"identifier"],[/{/,{token:"@brackets",bracket:"@open",switchTo:"@serviceBody.$S2"}]],serviceBody:[{include:"@whitespace"},{include:"@constant"},[/;/,"delimiter"],[/option\b/,"keyword","@option.$S2"],[/rpc\b/,"keyword","@rpc.$S2"],[/\[/,{token:"@brackets",bracket:"@open",next:"@options.$S2"}],[/}/,{token:"@brackets",bracket:"@close",next:"@pop"}]],rpc:[{include:"@whitespace"},[/@identifier/,"identifier"],[/\(/,{token:"@brackets",bracket:"@open",switchTo:"@request.$S2"}],[/{/,{token:"@brackets",bracket:"@open",next:"@methodOptions.$S2"}],[/;/,"delimiter","@pop"]],request:[{include:"@whitespace"},[/@messageType/,{cases:{stream:{token:"keyword",next:"@type.$S2"},"@default":"type.identifier"}}],[/\)/,{token:"@brackets",bracket:"@close",switchTo:"@returns.$S2"}]],returns:[{include:"@whitespace"},[/returns\b/,"keyword"],[/\(/,{token:"@brackets",bracket:"@open",switchTo:"@response.$S2"}]],response:[{include:"@whitespace"},[/@messageType/,{cases:{stream:{token:"keyword",next:"@type.$S2"},"@default":"type.identifier"}}],[/\)/,{token:"@brackets",bracket:"@close",switchTo:"@rpc.$S2"}]],methodOptions:[{include:"@whitespace"},{include:"@constant"},[/;/,"delimiter"],["option","keyword"],[/@optionName/,"annotation"],[/[()]/,"annotation.brackets"],[/=/,"operator"],[/}/,{token:"@brackets",bracket:"@close",next:"@pop"}]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@push"],["\\*/","comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],stringSingle:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]],constant:[["@boolLit","keyword.constant"],["@hexLit","number.hex"],["@octalLit","number.octal"],["@decimalLit","number"],["@floatLit","number.float"],[/("([^"\\]|\\.)*|'([^'\\]|\\.)*)$/,"string.invalid"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}],[/'/,{token:"string.quote",bracket:"@open",next:"@stringSingle"}],[/{/,{token:"@brackets",bracket:"@open",next:"@prototext"}],[/identifier/,"identifier"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],prototext:[{include:"@whitespace"},{include:"@constant"},[/@identifier/,"identifier"],[/[:;]/,"delimiter"],[/}/,{token:"@brackets",bracket:"@close",next:"@pop"}]]}}});var eAi={};od(eAi,{conf:()=>q$i,language:()=>$$i});var q$i,$$i,tAi=ti(()=>{q$i={comments:{lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}],folding:{offSide:!0}},$$i={defaultToken:"",tokenPostfix:".pug",ignoreCase:!0,brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"}],keywords:["append","block","case","default","doctype","each","else","extends","for","if","in","include","mixin","typeof","unless","var","when"],tags:["a","abbr","acronym","address","area","article","aside","audio","b","base","basefont","bdi","bdo","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","datalist","dd","del","details","dfn","div","dl","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","keygen","kbd","label","li","link","map","mark","menu","meta","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strike","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","tracks","tt","u","ul","video","wbr"],symbols:/[\+\-\*\%\&\|\!\=\/\.\,\:]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/^(\s*)([a-zA-Z_-][\w-]*)/,{cases:{"$2@tags":{cases:{"@eos":["","tag"],"@default":["",{token:"tag",next:"@tag.$1"}]}},"$2@keywords":["",{token:"keyword.$2"}],"@default":["",""]}}],[/^(\s*)(#[a-zA-Z_-][\w-]*)/,{cases:{"@eos":["","tag.id"],"@default":["",{token:"tag.id",next:"@tag.$1"}]}}],[/^(\s*)(\.[a-zA-Z_-][\w-]*)/,{cases:{"@eos":["","tag.class"],"@default":["",{token:"tag.class",next:"@tag.$1"}]}}],[/^(\s*)(\|.*)$/,""],{include:"@whitespace"},[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":""}}],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/\d+\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\d+/,"number"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],tag:[[/(\.)(\s*$)/,[{token:"delimiter",next:"@blockText.$S2."},""]],[/\s+/,{token:"",next:"@simpleText"}],[/#[a-zA-Z_-][\w-]*/,{cases:{"@eos":{token:"tag.id",next:"@pop"},"@default":"tag.id"}}],[/\.[a-zA-Z_-][\w-]*/,{cases:{"@eos":{token:"tag.class",next:"@pop"},"@default":"tag.class"}}],[/\(/,{token:"delimiter.parenthesis",next:"@attributeList"}]],simpleText:[[/[^#]+$/,{token:"",next:"@popall"}],[/[^#]+/,{token:""}],[/(#{)([^}]*)(})/,{cases:{"@eos":["interpolation.delimiter","interpolation",{token:"interpolation.delimiter",next:"@popall"}],"@default":["interpolation.delimiter","interpolation","interpolation.delimiter"]}}],[/#$/,{token:"",next:"@popall"}],[/#/,""]],attributeList:[[/\s+/,""],[/(\w+)(\s*=\s*)("|')/,["attribute.name","delimiter",{token:"attribute.value",next:"@value.$3"}]],[/\w+/,"attribute.name"],[/,/,{cases:{"@eos":{token:"attribute.delimiter",next:"@popall"},"@default":"attribute.delimiter"}}],[/\)$/,{token:"delimiter.parenthesis",next:"@popall"}],[/\)/,{token:"delimiter.parenthesis",next:"@pop"}]],whitespace:[[/^(\s*)(\/\/.*)$/,{token:"comment",next:"@blockText.$1.comment"}],[/[ \t\r\n]+/,""],[//,{token:"comment",next:"@pop"}],[/"]},brackets:[[""],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${dAi.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:Uci.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${dAi.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:Uci.languages.IndentAction.Indent}}]},dGi={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/@@@@/],[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.root"}],[/)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],razorInSimpleState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3"}]],razorInEmbeddedState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],razorBlockCommentTopLevel:[[/\*@/,"@rematch","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorBlockComment:[[/\*@/,"comment.cs","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorRootTopLevel:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/[})]/,"@rematch","@pop"],{include:"razorCommon"}],razorRoot:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/\}/,"delimiter.bracket.cs","@pop"],[/\)/,"delimiter.parenthesis.cs","@pop"],{include:"razorCommon"}],razorCommon:[[/[a-zA-Z_]\w*/,{cases:{"@razorKeywords":{token:"keyword.cs"},"@default":"identifier.cs"}}],[/[\[\]]/,"delimiter.array.cs"],[/[ \t\r\n]+/],[/\/\/.*$/,"comment.cs"],[/@\*/,"comment.cs","@razorBlockComment"],[/"([^"]*)"/,"string.cs"],[/'([^']*)'/,"string.cs"],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<\/)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/,"delimiter.cs"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.cs"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.cs"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.cs"],[/0[0-7']*[0-7]/,"number.octal.cs"],[/0[bB][0-1']*[0-1]/,"number.binary.cs"],[/\d[\d']*/,"number.cs"],[/\d/,"number.cs"]]},razorKeywords:["abstract","as","async","await","base","bool","break","by","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","descending","explicit","event","extern","else","enum","false","finally","fixed","float","for","foreach","from","goto","group","if","implicit","in","int","interface","internal","into","is","lock","long","nameof","new","null","namespace","object","operator","out","override","orderby","params","private","protected","public","readonly","ref","return","switch","struct","sbyte","sealed","short","sizeof","stackalloc","static","string","select","this","throw","true","try","typeof","uint","ulong","unchecked","unsafe","ushort","using","var","virtual","volatile","void","when","while","where","yield","model","inject"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/}});var pAi={};od(pAi,{conf:()=>fGi,language:()=>_Gi});var fGi,_Gi,mAi=ti(()=>{fGi={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},_Gi={defaultToken:"",tokenPostfix:".redis",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["APPEND","AUTH","BGREWRITEAOF","BGSAVE","BITCOUNT","BITFIELD","BITOP","BITPOS","BLPOP","BRPOP","BRPOPLPUSH","CLIENT","KILL","LIST","GETNAME","PAUSE","REPLY","SETNAME","CLUSTER","ADDSLOTS","COUNT-FAILURE-REPORTS","COUNTKEYSINSLOT","DELSLOTS","FAILOVER","FORGET","GETKEYSINSLOT","INFO","KEYSLOT","MEET","NODES","REPLICATE","RESET","SAVECONFIG","SET-CONFIG-EPOCH","SETSLOT","SLAVES","SLOTS","COMMAND","COUNT","GETKEYS","CONFIG","GET","REWRITE","SET","RESETSTAT","DBSIZE","DEBUG","OBJECT","SEGFAULT","DECR","DECRBY","DEL","DISCARD","DUMP","ECHO","EVAL","EVALSHA","EXEC","EXISTS","EXPIRE","EXPIREAT","FLUSHALL","FLUSHDB","GEOADD","GEOHASH","GEOPOS","GEODIST","GEORADIUS","GEORADIUSBYMEMBER","GETBIT","GETRANGE","GETSET","HDEL","HEXISTS","HGET","HGETALL","HINCRBY","HINCRBYFLOAT","HKEYS","HLEN","HMGET","HMSET","HSET","HSETNX","HSTRLEN","HVALS","INCR","INCRBY","INCRBYFLOAT","KEYS","LASTSAVE","LINDEX","LINSERT","LLEN","LPOP","LPUSH","LPUSHX","LRANGE","LREM","LSET","LTRIM","MGET","MIGRATE","MONITOR","MOVE","MSET","MSETNX","MULTI","PERSIST","PEXPIRE","PEXPIREAT","PFADD","PFCOUNT","PFMERGE","PING","PSETEX","PSUBSCRIBE","PUBSUB","PTTL","PUBLISH","PUNSUBSCRIBE","QUIT","RANDOMKEY","READONLY","READWRITE","RENAME","RENAMENX","RESTORE","ROLE","RPOP","RPOPLPUSH","RPUSH","RPUSHX","SADD","SAVE","SCARD","SCRIPT","FLUSH","LOAD","SDIFF","SDIFFSTORE","SELECT","SETBIT","SETEX","SETNX","SETRANGE","SHUTDOWN","SINTER","SINTERSTORE","SISMEMBER","SLAVEOF","SLOWLOG","SMEMBERS","SMOVE","SORT","SPOP","SRANDMEMBER","SREM","STRLEN","SUBSCRIBE","SUNION","SUNIONSTORE","SWAPDB","SYNC","TIME","TOUCH","TTL","TYPE","UNSUBSCRIBE","UNLINK","UNWATCH","WAIT","WATCH","ZADD","ZCARD","ZCOUNT","ZINCRBY","ZINTERSTORE","ZLEXCOUNT","ZRANGE","ZRANGEBYLEX","ZREVRANGEBYLEX","ZRANGEBYSCORE","ZRANK","ZREM","ZREMRANGEBYLEX","ZREMRANGEBYRANK","ZREMRANGEBYSCORE","ZREVRANGE","ZREVRANGEBYSCORE","ZREVRANK","ZSCORE","ZUNIONSTORE","SCAN","SSCAN","HSCAN","ZSCAN"],operators:[],builtinFunctions:[],builtinVariables:[],pseudoColumns:[],tokenizer:{root:[{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@keywords":"keyword","@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/'/,{token:"string",next:"@string"}],[/"/,{token:"string.double",next:"@stringDouble"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],stringDouble:[[/[^"]+/,"string.double"],[/""/,"string.double"],[/"/,{token:"string.double",next:"@pop"}]],scopes:[]}}});var hAi={};od(hAi,{conf:()=>pGi,language:()=>mGi});var pGi,mGi,gAi=ti(()=>{pGi={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},mGi={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["AES128","AES256","ALL","ALLOWOVERWRITE","ANALYSE","ANALYZE","AND","ANY","ARRAY","AS","ASC","AUTHORIZATION","AZ64","BACKUP","BETWEEN","BINARY","BLANKSASNULL","BOTH","BYTEDICT","BZIP2","CASE","CAST","CHECK","COLLATE","COLUMN","CONSTRAINT","CREATE","CREDENTIALS","CROSS","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURRENT_USER_ID","DEFAULT","DEFERRABLE","DEFLATE","DEFRAG","DELTA","DELTA32K","DESC","DISABLE","DISTINCT","DO","ELSE","EMPTYASNULL","ENABLE","ENCODE","ENCRYPT","ENCRYPTION","END","EXCEPT","EXPLICIT","FALSE","FOR","FOREIGN","FREEZE","FROM","FULL","GLOBALDICT256","GLOBALDICT64K","GRANT","GROUP","GZIP","HAVING","IDENTITY","IGNORE","ILIKE","IN","INITIALLY","INNER","INTERSECT","INTO","IS","ISNULL","JOIN","LANGUAGE","LEADING","LEFT","LIKE","LIMIT","LOCALTIME","LOCALTIMESTAMP","LUN","LUNS","LZO","LZOP","MINUS","MOSTLY16","MOSTLY32","MOSTLY8","NATURAL","NEW","NOT","NOTNULL","NULL","NULLS","OFF","OFFLINE","OFFSET","OID","OLD","ON","ONLY","OPEN","OR","ORDER","OUTER","OVERLAPS","PARALLEL","PARTITION","PERCENT","PERMISSIONS","PLACING","PRIMARY","RAW","READRATIO","RECOVER","REFERENCES","RESPECT","REJECTLOG","RESORT","RESTORE","RIGHT","SELECT","SESSION_USER","SIMILAR","SNAPSHOT","SOME","SYSDATE","SYSTEM","TABLE","TAG","TDES","TEXT255","TEXT32K","THEN","TIMESTAMP","TO","TOP","TRAILING","TRUE","TRUNCATECOLUMNS","UNION","UNIQUE","USER","USING","VERBOSE","WALLET","WHEN","WHERE","WITH","WITHOUT"],operators:["AND","BETWEEN","IN","LIKE","NOT","OR","IS","NULL","INTERSECT","UNION","INNER","JOIN","LEFT","OUTER","RIGHT"],builtinFunctions:["current_schema","current_schemas","has_database_privilege","has_schema_privilege","has_table_privilege","age","current_time","current_timestamp","localtime","isfinite","now","ascii","get_bit","get_byte","set_bit","set_byte","to_ascii","approximate percentile_disc","avg","count","listagg","max","median","min","percentile_cont","stddev_samp","stddev_pop","sum","var_samp","var_pop","bit_and","bit_or","bool_and","bool_or","cume_dist","first_value","lag","last_value","lead","nth_value","ratio_to_report","dense_rank","ntile","percent_rank","rank","row_number","case","coalesce","decode","greatest","least","nvl","nvl2","nullif","add_months","at time zone","convert_timezone","current_date","date_cmp","date_cmp_timestamp","date_cmp_timestamptz","date_part_year","dateadd","datediff","date_part","date_trunc","extract","getdate","interval_cmp","last_day","months_between","next_day","sysdate","timeofday","timestamp_cmp","timestamp_cmp_date","timestamp_cmp_timestamptz","timestamptz_cmp","timestamptz_cmp_date","timestamptz_cmp_timestamp","timezone","to_timestamp","trunc","abs","acos","asin","atan","atan2","cbrt","ceil","ceiling","checksum","cos","cot","degrees","dexp","dlog1","dlog10","exp","floor","ln","log","mod","pi","power","radians","random","round","sin","sign","sqrt","tan","to_hex","bpcharcmp","btrim","bttext_pattern_cmp","char_length","character_length","charindex","chr","concat","crc32","func_sha1","initcap","left and rights","len","length","lower","lpad and rpads","ltrim","md5","octet_length","position","quote_ident","quote_literal","regexp_count","regexp_instr","regexp_replace","regexp_substr","repeat","replace","replicate","reverse","rtrim","split_part","strpos","strtol","substring","textlen","translate","trim","upper","cast","convert","to_char","to_date","to_number","json_array_length","json_extract_array_element_text","json_extract_path_text","current_setting","pg_cancel_backend","pg_terminate_backend","set_config","current_database","current_user","current_user_id","pg_backend_pid","pg_last_copy_count","pg_last_copy_id","pg_last_query_id","pg_last_unload_count","session_user","slice_num","user","version","abbrev","acosd","any","area","array_agg","array_append","array_cat","array_dims","array_fill","array_length","array_lower","array_ndims","array_position","array_positions","array_prepend","array_remove","array_replace","array_to_json","array_to_string","array_to_tsvector","array_upper","asind","atan2d","atand","bit","bit_length","bound_box","box","brin_summarize_new_values","broadcast","cardinality","center","circle","clock_timestamp","col_description","concat_ws","convert_from","convert_to","corr","cosd","cotd","covar_pop","covar_samp","current_catalog","current_query","current_role","currval","cursor_to_xml","diameter","div","encode","enum_first","enum_last","enum_range","every","family","format","format_type","generate_series","generate_subscripts","get_current_ts_config","gin_clean_pending_list","grouping","has_any_column_privilege","has_column_privilege","has_foreign_data_wrapper_privilege","has_function_privilege","has_language_privilege","has_sequence_privilege","has_server_privilege","has_tablespace_privilege","has_type_privilege","height","host","hostmask","inet_client_addr","inet_client_port","inet_merge","inet_same_family","inet_server_addr","inet_server_port","isclosed","isempty","isopen","json_agg","json_object","json_object_agg","json_populate_record","json_populate_recordset","json_to_record","json_to_recordset","jsonb_agg","jsonb_object_agg","justify_days","justify_hours","justify_interval","lastval","left","line","localtimestamp","lower_inc","lower_inf","lpad","lseg","make_date","make_interval","make_time","make_timestamp","make_timestamptz","masklen","mode","netmask","network","nextval","npoints","num_nonnulls","num_nulls","numnode","obj_description","overlay","parse_ident","path","pclose","percentile_disc","pg_advisory_lock","pg_advisory_lock_shared","pg_advisory_unlock","pg_advisory_unlock_all","pg_advisory_unlock_shared","pg_advisory_xact_lock","pg_advisory_xact_lock_shared","pg_backup_start_time","pg_blocking_pids","pg_client_encoding","pg_collation_is_visible","pg_column_size","pg_conf_load_time","pg_control_checkpoint","pg_control_init","pg_control_recovery","pg_control_system","pg_conversion_is_visible","pg_create_logical_replication_slot","pg_create_physical_replication_slot","pg_create_restore_point","pg_current_xlog_flush_location","pg_current_xlog_insert_location","pg_current_xlog_location","pg_database_size","pg_describe_object","pg_drop_replication_slot","pg_export_snapshot","pg_filenode_relation","pg_function_is_visible","pg_get_constraintdef","pg_get_expr","pg_get_function_arguments","pg_get_function_identity_arguments","pg_get_function_result","pg_get_functiondef","pg_get_indexdef","pg_get_keywords","pg_get_object_address","pg_get_owned_sequence","pg_get_ruledef","pg_get_serial_sequence","pg_get_triggerdef","pg_get_userbyid","pg_get_viewdef","pg_has_role","pg_identify_object","pg_identify_object_as_address","pg_index_column_has_property","pg_index_has_property","pg_indexam_has_property","pg_indexes_size","pg_is_in_backup","pg_is_in_recovery","pg_is_other_temp_schema","pg_is_xlog_replay_paused","pg_last_committed_xact","pg_last_xact_replay_timestamp","pg_last_xlog_receive_location","pg_last_xlog_replay_location","pg_listening_channels","pg_logical_emit_message","pg_logical_slot_get_binary_changes","pg_logical_slot_get_changes","pg_logical_slot_peek_binary_changes","pg_logical_slot_peek_changes","pg_ls_dir","pg_my_temp_schema","pg_notification_queue_usage","pg_opclass_is_visible","pg_operator_is_visible","pg_opfamily_is_visible","pg_options_to_table","pg_postmaster_start_time","pg_read_binary_file","pg_read_file","pg_relation_filenode","pg_relation_filepath","pg_relation_size","pg_reload_conf","pg_replication_origin_create","pg_replication_origin_drop","pg_replication_origin_oid","pg_replication_origin_progress","pg_replication_origin_session_is_setup","pg_replication_origin_session_progress","pg_replication_origin_session_reset","pg_replication_origin_session_setup","pg_replication_origin_xact_reset","pg_replication_origin_xact_setup","pg_rotate_logfile","pg_size_bytes","pg_size_pretty","pg_sleep","pg_sleep_for","pg_sleep_until","pg_start_backup","pg_stat_file","pg_stop_backup","pg_switch_xlog","pg_table_is_visible","pg_table_size","pg_tablespace_databases","pg_tablespace_location","pg_tablespace_size","pg_total_relation_size","pg_trigger_depth","pg_try_advisory_lock","pg_try_advisory_lock_shared","pg_try_advisory_xact_lock","pg_try_advisory_xact_lock_shared","pg_ts_config_is_visible","pg_ts_dict_is_visible","pg_ts_parser_is_visible","pg_ts_template_is_visible","pg_type_is_visible","pg_typeof","pg_xact_commit_timestamp","pg_xlog_location_diff","pg_xlog_replay_pause","pg_xlog_replay_resume","pg_xlogfile_name","pg_xlogfile_name_offset","phraseto_tsquery","plainto_tsquery","point","polygon","popen","pqserverversion","query_to_xml","querytree","quote_nullable","radius","range_merge","regexp_matches","regexp_split_to_array","regexp_split_to_table","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","right","row_security_active","row_to_json","rpad","scale","set_masklen","setseed","setval","setweight","shobj_description","sind","sprintf","statement_timestamp","stddev","string_agg","string_to_array","strip","substr","table_to_xml","table_to_xml_and_xmlschema","tand","text","to_json","to_regclass","to_regnamespace","to_regoper","to_regoperator","to_regproc","to_regprocedure","to_regrole","to_regtype","to_tsquery","to_tsvector","transaction_timestamp","ts_debug","ts_delete","ts_filter","ts_headline","ts_lexize","ts_parse","ts_rank","ts_rank_cd","ts_rewrite","ts_stat","ts_token_type","tsquery_phrase","tsvector_to_array","tsvector_update_trigger","tsvector_update_trigger_column","txid_current","txid_current_snapshot","txid_snapshot_xip","txid_snapshot_xmax","txid_snapshot_xmin","txid_visible_in_snapshot","unnest","upper_inc","upper_inf","variance","width","width_bucket","xml_is_well_formed","xml_is_well_formed_content","xml_is_well_formed_document","xmlagg","xmlcomment","xmlconcat","xmlelement","xmlexists","xmlforest","xmlparse","xmlpi","xmlroot","xmlserialize","xpath","xpath_exists"],builtinVariables:[],pseudoColumns:[],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@keywords":"keyword","@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[]}}});var yAi={};od(yAi,{conf:()=>hGi,language:()=>gGi});var hGi,gGi,vAi=ti(()=>{hGi={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">",notIn:["string"]}],surroundingPairs:[{open:"(",close:")"},{open:"[",close:"]"},{open:"`",close:"`"}],folding:{markers:{start:new RegExp("^\\s*"),end:new RegExp("^\\s*")}}},gGi={defaultToken:"",tokenPostfix:".rst",control:/[\\`*_\[\]{}()#+\-\.!]/,escapes:/\\(?:@control)/,empty:["area","base","basefont","br","col","frame","hr","img","input","isindex","link","meta","param"],alphanumerics:/[A-Za-z0-9]/,simpleRefNameWithoutBq:/(?:@alphanumerics[-_+:.]*@alphanumerics)+|(?:@alphanumerics+)/,simpleRefName:/(?:`@phrase`|@simpleRefNameWithoutBq)/,phrase:/@simpleRefNameWithoutBq(?:\s@simpleRefNameWithoutBq)*/,citationName:/[A-Za-z][A-Za-z0-9-_.]*/,blockLiteralStart:/(?:[!"#$%&'()*+,-./:;<=>?@\[\]^_`{|}~]|[\s])/,precedingChars:/(?:[ -:/'"<([{])/,followingChars:/(?:[ -.,:;!?/'")\]}>]|$)/,punctuation:/(=|-|~|`|#|"|\^|\+|\*|:|\.|'|_|\+)/,tokenizer:{root:[[/^(@punctuation{3,}$){1,1}?/,"keyword"],[/^\s*([\*\-+‣•]|[a-zA-Z0-9]+\.|\([a-zA-Z0-9]+\)|[a-zA-Z0-9]+\))\s/,"keyword"],[/([ ]::)\s*$/,"keyword","@blankLineOfLiteralBlocks"],[/(::)\s*$/,"keyword","@blankLineOfLiteralBlocks"],{include:"@tables"},{include:"@explicitMarkupBlocks"},{include:"@inlineMarkup"}],explicitMarkupBlocks:[{include:"@citations"},{include:"@footnotes"},[/^(\.\.\s)(@simpleRefName)(::\s)(.*)$/,[{token:"",next:"subsequentLines"},"keyword","",""]],[/^(\.\.)(\s+)(_)(@simpleRefName)(:)(\s+)(.*)/,[{token:"",next:"hyperlinks"},"","","string.link","","","string.link"]],[/^((?:(?:\.\.)(?:\s+))?)(__)(:)(\s+)(.*)/,[{token:"",next:"subsequentLines"},"","","","string.link"]],[/^(__\s+)(.+)/,["","string.link"]],[/^(\.\.)( \|)([^| ]+[^|]*[^| ]*)(\| )(@simpleRefName)(:: .*)/,[{token:"",next:"subsequentLines"},"","string.link","","keyword",""],"@rawBlocks"],[/(\|)([^| ]+[^|]*[^| ]*)(\|_{0,2})/,["","string.link",""]],[/^(\.\.)([ ].*)$/,[{token:"",next:"@comments"},"comment"]]],inlineMarkup:[{include:"@citationsReference"},{include:"@footnotesReference"},[/(@simpleRefName)(_{1,2})/,["string.link",""]],[/(`)([^<`]+\s+)(<)(.*)(>)(`)(_)/,["","string.link","","string.link","","",""]],[/\*\*([^\\*]|\*(?!\*))+\*\*/,"strong"],[/\*[^*]+\*/,"emphasis"],[/(``)((?:[^`]|\`(?!`))+)(``)/,["","keyword",""]],[/(__\s+)(.+)/,["","keyword"]],[/(:)((?:@simpleRefNameWithoutBq)?)(:`)([^`]+)(`)/,["","keyword","","",""]],[/(`)([^`]+)(`:)((?:@simpleRefNameWithoutBq)?)(:)/,["","","","keyword",""]],[/(`)([^`]+)(`)/,""],[/(_`)(@phrase)(`)/,["","string.link",""]]],citations:[[/^(\.\.\s+\[)((?:@citationName))(\]\s+)(.*)/,[{token:"",next:"@subsequentLines"},"string.link","",""]]],citationsReference:[[/(\[)(@citationName)(\]_)/,["","string.link",""]]],footnotes:[[/^(\.\.\s+\[)((?:[0-9]+))(\]\s+.*)/,[{token:"",next:"@subsequentLines"},"string.link",""]],[/^(\.\.\s+\[)((?:#@simpleRefName?))(\]\s+)(.*)/,[{token:"",next:"@subsequentLines"},"string.link","",""]],[/^(\.\.\s+\[)((?:\*))(\]\s+)(.*)/,[{token:"",next:"@subsequentLines"},"string.link","",""]]],footnotesReference:[[/(\[)([0-9]+)(\])(_)/,["","string.link","",""]],[/(\[)(#@simpleRefName?)(\])(_)/,["","string.link","",""]],[/(\[)(\*)(\])(_)/,["","string.link","",""]]],blankLineOfLiteralBlocks:[[/^$/,"","@subsequentLinesOfLiteralBlocks"],[/^.*$/,"","@pop"]],subsequentLinesOfLiteralBlocks:[[/(@blockLiteralStart+)(.*)/,["keyword",""]],[/^(?!blockLiteralStart)/,"","@popall"]],subsequentLines:[[/^[\s]+.*/,""],[/^(?!\s)/,"","@pop"]],hyperlinks:[[/^[\s]+.*/,"string.link"],[/^(?!\s)/,"","@pop"]],comments:[[/^[\s]+.*/,"comment"],[/^(?!\s)/,"","@pop"]],tables:[[/\+-[+-]+/,"keyword"],[/\+=[+=]+/,"keyword"]]}}});var bAi={};od(bAi,{conf:()=>yGi,language:()=>vGi});var yGi,vGi,SAi=ti(()=>{yGi={comments:{lineComment:"#",blockComment:["=begin","=end"]},brackets:[["(",")"],["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],indentationRules:{increaseIndentPattern:new RegExp(`^\\s*((begin|class|(private|protected)\\s+def|def|else|elsif|ensure|for|if|module|rescue|unless|until|when|while|case)|([^#]*\\sdo\\b)|([^#]*=\\s*(case|if|unless)))\\b([^#\\{;]|("|'|/).*\\4)*(#.*)?$`),decreaseIndentPattern:new RegExp("^\\s*([}\\]]([,)]?\\s*(#|$)|\\.[a-zA-Z_]\\w*\\b)|(end|rescue|ensure|else|elsif|when)\\b)")}},vGi={tokenPostfix:".ruby",keywords:["__LINE__","__ENCODING__","__FILE__","BEGIN","END","alias","and","begin","break","case","class","def","defined?","do","else","elsif","end","ensure","for","false","if","in","module","next","nil","not","or","redo","rescue","retry","return","self","super","then","true","undef","unless","until","when","while","yield"],keywordops:["::","..","...","?",":","=>"],builtins:["require","public","private","include","extend","attr_reader","protected","private_class_method","protected_class_method","new"],declarations:["module","class","def","case","do","begin","for","if","while","until","unless"],linedecls:["def","case","do","begin","for","if","while","until","unless"],operators:["^","&","|","<=>","==","===","!~","=~",">",">=","<","<=","<<",">>","+","-","*","/","%","**","~","+@","-@","[]","[]=","`","+=","-=","*=","**=","/=","^=","%=","<<=",">>=","&=","&&=","||=","|="],brackets:[{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"}],symbols:/[=>"}],[/%([qws])(@delim)/,{token:"string.$1.delim",switchTo:"@qstring.$1.$2.$2"}],[/%r\(/,{token:"regexp.delim",switchTo:"@pregexp.(.)"}],[/%r\[/,{token:"regexp.delim",switchTo:"@pregexp.[.]"}],[/%r\{/,{token:"regexp.delim",switchTo:"@pregexp.{.}"}],[/%r"}],[/%r(@delim)/,{token:"regexp.delim",switchTo:"@pregexp.$1.$1"}],[/%(x|W|Q?)\(/,{token:"string.$1.delim",switchTo:"@qqstring.$1.(.)"}],[/%(x|W|Q?)\[/,{token:"string.$1.delim",switchTo:"@qqstring.$1.[.]"}],[/%(x|W|Q?)\{/,{token:"string.$1.delim",switchTo:"@qqstring.$1.{.}"}],[/%(x|W|Q?)"}],[/%(x|W|Q?)(@delim)/,{token:"string.$1.delim",switchTo:"@qqstring.$1.$2.$2"}],[/%([rqwsxW]|Q?)./,{token:"invalid",next:"@pop"}],[/./,{token:"invalid",next:"@pop"}]],qstring:[[/\\$/,"string.$S2.escape"],[/\\./,"string.$S2.escape"],[/./,{cases:{"$#==$S4":{token:"string.$S2.delim",next:"@pop"},"$#==$S3":{token:"string.$S2.delim",next:"@push"},"@default":"string.$S2"}}]],qqstring:[[/#/,"string.$S2.escape","@interpolated"],{include:"@qstring"}],whitespace:[[/[ \t\r\n]+/,""],[/^\s*=begin\b/,"comment","@comment"],[/#.*$/,"comment"]],comment:[[/[^=]+/,"comment"],[/^\s*=begin\b/,"comment.invalid"],[/^\s*=end\b.*/,"comment","@pop"],[/[=]/,"comment"]]}}});var xAi={};od(xAi,{conf:()=>bGi,language:()=>SGi});var bGi,SGi,CAi=ti(()=>{bGi={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#pragma\\s+region\\b"),end:new RegExp("^\\s*#pragma\\s+endregion\\b")}}},SGi={tokenPostfix:".rust",defaultToken:"invalid",keywords:["as","async","await","box","break","const","continue","crate","dyn","else","enum","extern","false","fn","for","if","impl","in","let","loop","match","mod","move","mut","pub","ref","return","self","static","struct","super","trait","true","try","type","unsafe","use","where","while","catch","default","union","static","abstract","alignof","become","do","final","macro","offsetof","override","priv","proc","pure","sizeof","typeof","unsized","virtual","yield"],typeKeywords:["Self","m32","m64","m128","f80","f16","f128","int","uint","float","char","bool","u8","u16","u32","u64","f32","f64","i8","i16","i32","i64","str","Option","Either","c_float","c_double","c_void","FILE","fpos_t","DIR","dirent","c_char","c_schar","c_uchar","c_short","c_ushort","c_int","c_uint","c_long","c_ulong","size_t","ptrdiff_t","clock_t","time_t","c_longlong","c_ulonglong","intptr_t","uintptr_t","off_t","dev_t","ino_t","pid_t","mode_t","ssize_t"],constants:["true","false","Some","None","Left","Right","Ok","Err"],supportConstants:["EXIT_FAILURE","EXIT_SUCCESS","RAND_MAX","EOF","SEEK_SET","SEEK_CUR","SEEK_END","_IOFBF","_IONBF","_IOLBF","BUFSIZ","FOPEN_MAX","FILENAME_MAX","L_tmpnam","TMP_MAX","O_RDONLY","O_WRONLY","O_RDWR","O_APPEND","O_CREAT","O_EXCL","O_TRUNC","S_IFIFO","S_IFCHR","S_IFBLK","S_IFDIR","S_IFREG","S_IFMT","S_IEXEC","S_IWRITE","S_IREAD","S_IRWXU","S_IXUSR","S_IWUSR","S_IRUSR","F_OK","R_OK","W_OK","X_OK","STDIN_FILENO","STDOUT_FILENO","STDERR_FILENO"],supportMacros:["format!","print!","println!","panic!","format_args!","unreachable!","write!","writeln!"],operators:["!","!=","%","%=","&","&=","&&","*","*=","+","+=","-","-=","->",".","..","...","/","/=",":",";","<<","<<=","<","<=","=","==","=>",">",">=",">>",">>=","@","^","^=","|","|=","||","_","?","#"],escapes:/\\([nrt0\"''\\]|x\h{2}|u\{\h{1,6}\})/,delimiters:/[,]/,symbols:/[\#\!\%\&\*\+\-\.\/\:\;\<\=\>\@\^\|_\?]+/,intSuffixes:/[iu](8|16|32|64|128|size)/,floatSuffixes:/f(32|64)/,tokenizer:{root:[[/r(#*)"/,{token:"string.quote",bracket:"@open",next:"@stringraw.$1"}],[/[a-zA-Z][a-zA-Z0-9_]*!?|_[a-zA-Z0-9_]+/,{cases:{"@typeKeywords":"keyword.type","@keywords":"keyword","@supportConstants":"keyword","@supportMacros":"keyword","@constants":"keyword","@default":"identifier"}}],[/\$/,"identifier"],[/'[a-zA-Z_][a-zA-Z0-9_]*(?=[^\'])/,"identifier"],[/'(\S|@escapes)'/,"string.byteliteral"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}],{include:"@numbers"},{include:"@whitespace"},[/@delimiters/,{cases:{"@keywords":"keyword","@default":"delimiter"}}],[/[{}()\[\]<>]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@push"],["\\*/","comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],stringraw:[[/[^"#]+/,{token:"string"}],[/"(#*)/,{cases:{"$1==$S2":{token:"string.quote",bracket:"@close",next:"@pop"},"@default":{token:"string"}}}],[/["#]/,{token:"string"}]],numbers:[[/(0o[0-7_]+)(@intSuffixes)?/,{token:"number"}],[/(0b[0-1_]+)(@intSuffixes)?/,{token:"number"}],[/[\d][\d_]*(\.[\d][\d_]*)?[eE][+-][\d_]+(@floatSuffixes)?/,{token:"number"}],[/\b(\d\.?[\d_]*)(@floatSuffixes)?\b/,{token:"number"}],[/(0x[\da-fA-F]+)_?(@intSuffixes)?/,{token:"number"}],[/[\d][\d_]*(@intSuffixes?)?/,{token:"number"}]]}}});var kAi={};od(kAi,{conf:()=>xGi,language:()=>CGi});var xGi,CGi,wAi=ti(()=>{xGi={comments:{lineComment:"'"},brackets:[["(",")"],["[","]"],["If","EndIf"],["While","EndWhile"],["For","EndFor"],["Sub","EndSub"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]}]},CGi={defaultToken:"",tokenPostfix:".sb",ignoreCase:!0,brackets:[{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"keyword.tag-if",open:"If",close:"EndIf"},{token:"keyword.tag-while",open:"While",close:"EndWhile"},{token:"keyword.tag-for",open:"For",close:"EndFor"},{token:"keyword.tag-sub",open:"Sub",close:"EndSub"}],keywords:["Else","ElseIf","EndFor","EndIf","EndSub","EndWhile","For","Goto","If","Step","Sub","Then","To","While"],tagwords:["If","Sub","While","For"],operators:[">","<","<>","<=",">=","And","Or","+","-","*","/","="],identifier:/[a-zA-Z_][\w]*/,symbols:/[=><:+\-*\/%\.,]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[{include:"@whitespace"},[/(@identifier)(?=[.])/,"type"],[/@identifier/,{cases:{"@keywords":{token:"keyword.$0"},"@operators":"operator","@default":"variable.name"}}],[/([.])(@identifier)/,{cases:{$2:["delimiter","type.member"],"@default":""}}],[/\d*\.\d+/,"number.float"],[/\d+/,"number"],[/[()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":"delimiter"}}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"]],whitespace:[[/[ \t\r\n]+/,""],[/(\').*$/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"C?/,"string","@pop"]]}}});var TAi={};od(TAi,{conf:()=>kGi,language:()=>wGi});var kGi,wGi,EAi=ti(()=>{kGi={wordPattern:/(unary_[@~!#%^&*()\-=+\\|:<>\/?]+)|([a-zA-Z_$][\w$]*?_=)|(`[^`]+`)|([a-zA-Z_$][\w$]*)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:))")}}},wGi={tokenPostfix:".scala",keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],softKeywords:["as","export","extension","end","derives","on"],constants:["true","false","null","this","super"],modifiers:["abstract","final","implicit","lazy","override","private","protected","sealed"],softModifiers:["inline","opaque","open","transparent","using"],name:/(?:[a-z_$][\w$]*|`[^`]+`)/,type:/(?:[A-Z][\w$]*)/,symbols:/[=>))/,["@brackets","white","variable"]],[/@name/,{cases:{"@keywords":"keyword","@softKeywords":"keyword","@modifiers":"keyword.modifier","@softModifiers":"keyword.modifier","@constants":{token:"constant",next:"@allowMethod"},"@default":{token:"identifier",next:"@allowMethod"}}}],[/@type/,"type","@allowMethod"],{include:"@whitespace"},[/@[a-zA-Z_$][\w$]*(?:\.[a-zA-Z_$][\w$]*)*/,"annotation"],[/[{(]/,"@brackets"],[/[})]/,"@brackets","@allowMethod"],[/\[/,"operator.square"],[/](?!\s*(?:va[rl]|def|type)\b)/,"operator.square","@allowMethod"],[/]/,"operator.square"],[/([=-]>|<-|>:|<:|:>|<%)(?=[\s\w()[\]{},\."'`])/,"keyword"],[/@symbols/,"operator"],[/[;,\.]/,"delimiter"],[/'[a-zA-Z$][\w$]*(?!')/,"attribute.name"],[/'[^\\']'/,"string","@allowMethod"],[/(')(@escapes)(')/,["string","string.escape",{token:"string",next:"@allowMethod"}]],[/'/,"string.invalid"]],import:[[/;/,"delimiter","@pop"],[/^|$/,"","@pop"],[/[ \t]+/,"white"],[/[\n\r]+/,"white","@pop"],[/\/\*/,"comment","@comment"],[/@name|@type/,"type"],[/[(){}]/,"@brackets"],[/[[\]]/,"operator.square"],[/[\.,]/,"delimiter"]],allowMethod:[[/^|$/,"","@pop"],[/[ \t]+/,"white"],[/[\n\r]+/,"white","@pop"],[/\/\*/,"comment","@comment"],[/(?==>[\s\w([{])/,"keyword","@pop"],[/(@name|@symbols)(?=[ \t]*[[({"'`]|[ \t]+(?:[+-]?\.?\d|\w))/,{cases:{"@keywords":{token:"keyword",next:"@pop"},"->|<-|>:|<:|<%":{token:"keyword",next:"@pop"},"@default":{token:"@rematch",next:"@pop"}}}],["","","@pop"]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@push"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],case:[[/\b_\*/,"key"],[/\b(_|true|false|null|this|super)\b/,"keyword","@allowMethod"],[/\bif\b|=>/,"keyword","@pop"],[/`[^`]+`/,"identifier","@allowMethod"],[/@name/,"variable","@allowMethod"],[/:::?|\||@(?![a-z_$])/,"keyword"],{include:"@root"}],vardef:[[/\b_\*/,"key"],[/\b(_|true|false|null|this|super)\b/,"keyword"],[/@name/,"variable"],[/:::?|\||@(?![a-z_$])/,"keyword"],[/=|:(?!:)/,"operator","@pop"],[/$/,"white","@pop"],{include:"@root"}],string:[[/[^\\"\n\r]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}]],stringt:[[/[^\\"\n\r]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"(?=""")/,"string"],[/"""/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/"/,"string"]],fstring:[[/@escapes/,"string.escape"],[/"/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/\$\$/,"string"],[/(\$)([a-z_]\w*)/,["operator","identifier"]],[/\$\{/,"operator","@interp"],[/%%/,"string"],[/(%)([\-#+ 0,(])(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,["metatag","keyword.modifier","number","metatag"]],[/(%)(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,["metatag","number","metatag"]],[/(%)([\-#+ 0,(])(@fstring_conv)/,["metatag","keyword.modifier","metatag"]],[/(%)(@fstring_conv)/,["metatag","metatag"]],[/./,"string"]],fstringt:[[/@escapes/,"string.escape"],[/"(?=""")/,"string"],[/"""/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/\$\$/,"string"],[/(\$)([a-z_]\w*)/,["operator","identifier"]],[/\$\{/,"operator","@interp"],[/%%/,"string"],[/(%)([\-#+ 0,(])(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,["metatag","keyword.modifier","number","metatag"]],[/(%)(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,["metatag","number","metatag"]],[/(%)([\-#+ 0,(])(@fstring_conv)/,["metatag","keyword.modifier","metatag"]],[/(%)(@fstring_conv)/,["metatag","metatag"]],[/./,"string"]],sstring:[[/@escapes/,"string.escape"],[/"/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/\$\$/,"string"],[/(\$)([a-z_]\w*)/,["operator","identifier"]],[/\$\{/,"operator","@interp"],[/./,"string"]],sstringt:[[/@escapes/,"string.escape"],[/"(?=""")/,"string"],[/"""/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/\$\$/,"string"],[/(\$)([a-z_]\w*)/,["operator","identifier"]],[/\$\{/,"operator","@interp"],[/./,"string"]],interp:[[/{/,"operator","@push"],[/}/,"operator","@pop"],{include:"@root"}],rawstring:[[/[^"]/,"string"],[/"/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}]],rawstringt:[[/[^"]/,"string"],[/"(?=""")/,"string"],[/"""/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/"/,"string"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}}});var DAi={};od(DAi,{conf:()=>TGi,language:()=>EGi});var TGi,EGi,IAi=ti(()=>{TGi={comments:{lineComment:";",blockComment:["#|","|#"]},brackets:[["(",")"],["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}]},EGi={defaultToken:"",ignoreCase:!0,tokenPostfix:".scheme",brackets:[{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"}],keywords:["case","do","let","loop","if","else","when","cons","car","cdr","cond","lambda","lambda*","syntax-rules","format","set!","quote","eval","append","list","list?","member?","load"],constants:["#t","#f"],operators:["eq?","eqv?","equal?","and","or","not","null?"],tokenizer:{root:[[/#[xXoObB][0-9a-fA-F]+/,"number.hex"],[/[+-]?\d+(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?/,"number.float"],[/(?:\b(?:(define|define-syntax|define-macro))\b)(\s+)((?:\w|\-|\!|\?)*)/,["keyword","white","variable"]],{include:"@whitespace"},{include:"@strings"},[/[a-zA-Z_#][a-zA-Z0-9_\-\?\!\*]*/,{cases:{"@keywords":"keyword","@constants":"constant","@operators":"operators","@default":"identifier"}}]],comment:[[/[^\|#]+/,"comment"],[/#\|/,"comment","@push"],[/\|#/,"comment","@pop"],[/[\|#]/,"comment"]],whitespace:[[/[ \t\r\n]+/,"white"],[/#\|/,"comment","@comment"],[/;.*$/,"comment"]],strings:[[/"$/,"string","@popall"],[/"(?=.)/,"string","@multiLineString"]],multiLineString:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string.escape"],[/"/,"string","@popall"],[/\\$/,"string"]]}}});var NAi={};od(NAi,{conf:()=>DGi,language:()=>IGi});var DGi,IGi,AAi=ti(()=>{DGi={wordPattern:/(#?-?\d*\.\d\w*%?)|([@$#!.:]?[\w-?]+%?)|[@#!.]/g,comments:{blockComment:["/*","*/"],lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),end:new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")}}},IGi={defaultToken:"",tokenPostfix:".scss",ws:`[ +\r\f]*`,identifier:"-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{root:[{include:"@selector"}],selector:[{include:"@comments"},{include:"@import"},{include:"@variabledeclaration"},{include:"@warndebug"},["[@](include)",{token:"keyword",next:"@includedeclaration"}],["[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)",{token:"keyword",next:"@keyframedeclaration"}],["[@](page|content|font-face|-moz-document)",{token:"keyword"}],["[@](charset|namespace)",{token:"keyword",next:"@declarationbody"}],["[@](function)",{token:"keyword",next:"@functiondeclaration"}],["[@](mixin)",{token:"keyword",next:"@mixindeclaration"}],["url(\\-prefix)?\\(",{token:"meta",next:"@urldeclaration"}],{include:"@controlstatement"},{include:"@selectorname"},["[&\\*]","tag"],["[>\\+,]","delimiter"],["\\[",{token:"delimiter.bracket",next:"@selectorattribute"}],["{",{token:"delimiter.curly",next:"@selectorbody"}]],selectorbody:[["[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))","attribute.name","@rulevalue"],{include:"@selector"},["[@](extend)",{token:"keyword",next:"@extendbody"}],["[@](return)",{token:"keyword",next:"@declarationbody"}],["}",{token:"delimiter.curly",next:"@pop"}]],selectorname:[["#{",{token:"meta",next:"@variableinterpolation"}],["(\\.|#(?=[^{])|%|(@identifier)|:)+","tag"]],selectorattribute:[{include:"@term"},["]",{token:"delimiter.bracket",next:"@pop"}]],term:[{include:"@comments"},["url(\\-prefix)?\\(",{token:"meta",next:"@urldeclaration"}],{include:"@functioninvocation"},{include:"@numbers"},{include:"@strings"},{include:"@variablereference"},["(and\\b|or\\b|not\\b)","operator"],{include:"@name"},["([<>=\\+\\-\\*\\/\\^\\|\\~,])","operator"],[",","delimiter"],["!default","literal"],["\\(",{token:"delimiter.parenthesis",next:"@parenthizedterm"}]],rulevalue:[{include:"@term"},["!important","literal"],[";","delimiter","@pop"],["{",{token:"delimiter.curly",switchTo:"@nestedproperty"}],["(?=})",{token:"",next:"@pop"}]],nestedproperty:[["[*_]?@identifier@ws:","attribute.name","@rulevalue"],{include:"@comments"},["}",{token:"delimiter.curly",next:"@pop"}]],warndebug:[["[@](warn|debug)",{token:"keyword",next:"@declarationbody"}]],import:[["[@](import)",{token:"keyword",next:"@declarationbody"}]],variabledeclaration:[["\\$@identifier@ws:","variable.decl","@declarationbody"]],urldeclaration:[{include:"@strings"},[`[^)\r +]+`,"string"],["\\)",{token:"meta",next:"@pop"}]],parenthizedterm:[{include:"@term"},["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],declarationbody:[{include:"@term"},[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],extendbody:[{include:"@selectorname"},["!optional","literal"],[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],variablereference:[["\\$@identifier","variable.ref"],["\\.\\.\\.","operator"],["#{",{token:"meta",next:"@variableinterpolation"}]],variableinterpolation:[{include:"@variablereference"},["}",{token:"meta",next:"@pop"}]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[".","comment"]],name:[["@identifier","attribute.value"]],numbers:[["(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?",{token:"number",next:"@units"}],["#[0-9a-fA-F_]+(?!\\w)","number.hex"]],units:[["(em|ex|ch|rem|fr|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?","number","@pop"]],functiondeclaration:[["@identifier@ws\\(",{token:"meta",next:"@parameterdeclaration"}],["{",{token:"delimiter.curly",switchTo:"@functionbody"}]],mixindeclaration:[["@identifier@ws\\(",{token:"meta",next:"@parameterdeclaration"}],["@identifier","meta"],["{",{token:"delimiter.curly",switchTo:"@selectorbody"}]],parameterdeclaration:[["\\$@identifier@ws:","variable.decl"],["\\.\\.\\.","operator"],[",","delimiter"],{include:"@term"},["\\)",{token:"meta",next:"@pop"}]],includedeclaration:[{include:"@functioninvocation"},["@identifier","meta"],[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}],["{",{token:"delimiter.curly",switchTo:"@selectorbody"}]],keyframedeclaration:[["@identifier","meta"],["{",{token:"delimiter.curly",switchTo:"@keyframebody"}]],keyframebody:[{include:"@term"},["{",{token:"delimiter.curly",next:"@selectorbody"}],["}",{token:"delimiter.curly",next:"@pop"}]],controlstatement:[["[@](if|else|for|while|each|media)",{token:"keyword.flow",next:"@controlstatementdeclaration"}]],controlstatementdeclaration:[["(in|from|through|if|to)\\b",{token:"keyword.flow"}],{include:"@term"},["{",{token:"delimiter.curly",switchTo:"@selectorbody"}]],functionbody:[["[@](return)",{token:"keyword"}],{include:"@variabledeclaration"},{include:"@term"},{include:"@controlstatement"},[";","delimiter"],["}",{token:"delimiter.curly",next:"@pop"}]],functioninvocation:[["@identifier\\(",{token:"meta",next:"@functionarguments"}]],functionarguments:[["\\$@identifier@ws:","attribute.name"],["[,]","delimiter"],{include:"@term"},["\\)",{token:"meta",next:"@pop"}]],strings:[['~?"',{token:"string.delimiter",next:"@stringenddoublequote"}],["~?'",{token:"string.delimiter",next:"@stringendquote"}]],stringenddoublequote:[["\\\\.","string"],['"',{token:"string.delimiter",next:"@pop"}],[".","string"]],stringendquote:[["\\\\.","string"],["'",{token:"string.delimiter",next:"@pop"}],[".","string"]]}}});var PAi={};od(PAi,{conf:()=>NGi,language:()=>AGi});var NGi,AGi,LAi=ti(()=>{NGi={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},AGi={defaultToken:"",ignoreCase:!0,tokenPostfix:".shell",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["if","then","do","else","elif","while","until","for","in","esac","fi","fin","fil","done","exit","set","unset","export","function"],builtins:["ab","awk","bash","beep","cat","cc","cd","chown","chmod","chroot","clear","cp","curl","cut","diff","echo","find","gawk","gcc","get","git","grep","hg","kill","killall","ln","ls","make","mkdir","openssl","mv","nc","node","npm","ping","ps","restart","rm","rmdir","sed","service","sh","shopt","shred","source","sort","sleep","ssh","start","stop","su","sudo","svn","tee","telnet","top","touch","vi","vim","wall","wc","wget","who","write","yes","zsh"],startingWithDash:/\-+\w+/,identifiersWithDashes:/[a-zA-Z]\w+(?:@startingWithDash)+/,symbols:/[=>PGi,language:()=>LGi});var PGi,LGi,FAi=ti(()=>{PGi={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}]},LGi={defaultToken:"",tokenPostfix:".sol",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["pragma","solidity","contract","library","using","struct","function","modifier","constructor","address","string","bool","Int","Uint","Byte","Fixed","Ufixed","int","int8","int16","int24","int32","int40","int48","int56","int64","int72","int80","int88","int96","int104","int112","int120","int128","int136","int144","int152","int160","int168","int176","int184","int192","int200","int208","int216","int224","int232","int240","int248","int256","uint","uint8","uint16","uint24","uint32","uint40","uint48","uint56","uint64","uint72","uint80","uint88","uint96","uint104","uint112","uint120","uint128","uint136","uint144","uint152","uint160","uint168","uint176","uint184","uint192","uint200","uint208","uint216","uint224","uint232","uint240","uint248","uint256","byte","bytes","bytes1","bytes2","bytes3","bytes4","bytes5","bytes6","bytes7","bytes8","bytes9","bytes10","bytes11","bytes12","bytes13","bytes14","bytes15","bytes16","bytes17","bytes18","bytes19","bytes20","bytes21","bytes22","bytes23","bytes24","bytes25","bytes26","bytes27","bytes28","bytes29","bytes30","bytes31","bytes32","fixed","fixed0x8","fixed0x16","fixed0x24","fixed0x32","fixed0x40","fixed0x48","fixed0x56","fixed0x64","fixed0x72","fixed0x80","fixed0x88","fixed0x96","fixed0x104","fixed0x112","fixed0x120","fixed0x128","fixed0x136","fixed0x144","fixed0x152","fixed0x160","fixed0x168","fixed0x176","fixed0x184","fixed0x192","fixed0x200","fixed0x208","fixed0x216","fixed0x224","fixed0x232","fixed0x240","fixed0x248","fixed0x256","fixed8x8","fixed8x16","fixed8x24","fixed8x32","fixed8x40","fixed8x48","fixed8x56","fixed8x64","fixed8x72","fixed8x80","fixed8x88","fixed8x96","fixed8x104","fixed8x112","fixed8x120","fixed8x128","fixed8x136","fixed8x144","fixed8x152","fixed8x160","fixed8x168","fixed8x176","fixed8x184","fixed8x192","fixed8x200","fixed8x208","fixed8x216","fixed8x224","fixed8x232","fixed8x240","fixed8x248","fixed16x8","fixed16x16","fixed16x24","fixed16x32","fixed16x40","fixed16x48","fixed16x56","fixed16x64","fixed16x72","fixed16x80","fixed16x88","fixed16x96","fixed16x104","fixed16x112","fixed16x120","fixed16x128","fixed16x136","fixed16x144","fixed16x152","fixed16x160","fixed16x168","fixed16x176","fixed16x184","fixed16x192","fixed16x200","fixed16x208","fixed16x216","fixed16x224","fixed16x232","fixed16x240","fixed24x8","fixed24x16","fixed24x24","fixed24x32","fixed24x40","fixed24x48","fixed24x56","fixed24x64","fixed24x72","fixed24x80","fixed24x88","fixed24x96","fixed24x104","fixed24x112","fixed24x120","fixed24x128","fixed24x136","fixed24x144","fixed24x152","fixed24x160","fixed24x168","fixed24x176","fixed24x184","fixed24x192","fixed24x200","fixed24x208","fixed24x216","fixed24x224","fixed24x232","fixed32x8","fixed32x16","fixed32x24","fixed32x32","fixed32x40","fixed32x48","fixed32x56","fixed32x64","fixed32x72","fixed32x80","fixed32x88","fixed32x96","fixed32x104","fixed32x112","fixed32x120","fixed32x128","fixed32x136","fixed32x144","fixed32x152","fixed32x160","fixed32x168","fixed32x176","fixed32x184","fixed32x192","fixed32x200","fixed32x208","fixed32x216","fixed32x224","fixed40x8","fixed40x16","fixed40x24","fixed40x32","fixed40x40","fixed40x48","fixed40x56","fixed40x64","fixed40x72","fixed40x80","fixed40x88","fixed40x96","fixed40x104","fixed40x112","fixed40x120","fixed40x128","fixed40x136","fixed40x144","fixed40x152","fixed40x160","fixed40x168","fixed40x176","fixed40x184","fixed40x192","fixed40x200","fixed40x208","fixed40x216","fixed48x8","fixed48x16","fixed48x24","fixed48x32","fixed48x40","fixed48x48","fixed48x56","fixed48x64","fixed48x72","fixed48x80","fixed48x88","fixed48x96","fixed48x104","fixed48x112","fixed48x120","fixed48x128","fixed48x136","fixed48x144","fixed48x152","fixed48x160","fixed48x168","fixed48x176","fixed48x184","fixed48x192","fixed48x200","fixed48x208","fixed56x8","fixed56x16","fixed56x24","fixed56x32","fixed56x40","fixed56x48","fixed56x56","fixed56x64","fixed56x72","fixed56x80","fixed56x88","fixed56x96","fixed56x104","fixed56x112","fixed56x120","fixed56x128","fixed56x136","fixed56x144","fixed56x152","fixed56x160","fixed56x168","fixed56x176","fixed56x184","fixed56x192","fixed56x200","fixed64x8","fixed64x16","fixed64x24","fixed64x32","fixed64x40","fixed64x48","fixed64x56","fixed64x64","fixed64x72","fixed64x80","fixed64x88","fixed64x96","fixed64x104","fixed64x112","fixed64x120","fixed64x128","fixed64x136","fixed64x144","fixed64x152","fixed64x160","fixed64x168","fixed64x176","fixed64x184","fixed64x192","fixed72x8","fixed72x16","fixed72x24","fixed72x32","fixed72x40","fixed72x48","fixed72x56","fixed72x64","fixed72x72","fixed72x80","fixed72x88","fixed72x96","fixed72x104","fixed72x112","fixed72x120","fixed72x128","fixed72x136","fixed72x144","fixed72x152","fixed72x160","fixed72x168","fixed72x176","fixed72x184","fixed80x8","fixed80x16","fixed80x24","fixed80x32","fixed80x40","fixed80x48","fixed80x56","fixed80x64","fixed80x72","fixed80x80","fixed80x88","fixed80x96","fixed80x104","fixed80x112","fixed80x120","fixed80x128","fixed80x136","fixed80x144","fixed80x152","fixed80x160","fixed80x168","fixed80x176","fixed88x8","fixed88x16","fixed88x24","fixed88x32","fixed88x40","fixed88x48","fixed88x56","fixed88x64","fixed88x72","fixed88x80","fixed88x88","fixed88x96","fixed88x104","fixed88x112","fixed88x120","fixed88x128","fixed88x136","fixed88x144","fixed88x152","fixed88x160","fixed88x168","fixed96x8","fixed96x16","fixed96x24","fixed96x32","fixed96x40","fixed96x48","fixed96x56","fixed96x64","fixed96x72","fixed96x80","fixed96x88","fixed96x96","fixed96x104","fixed96x112","fixed96x120","fixed96x128","fixed96x136","fixed96x144","fixed96x152","fixed96x160","fixed104x8","fixed104x16","fixed104x24","fixed104x32","fixed104x40","fixed104x48","fixed104x56","fixed104x64","fixed104x72","fixed104x80","fixed104x88","fixed104x96","fixed104x104","fixed104x112","fixed104x120","fixed104x128","fixed104x136","fixed104x144","fixed104x152","fixed112x8","fixed112x16","fixed112x24","fixed112x32","fixed112x40","fixed112x48","fixed112x56","fixed112x64","fixed112x72","fixed112x80","fixed112x88","fixed112x96","fixed112x104","fixed112x112","fixed112x120","fixed112x128","fixed112x136","fixed112x144","fixed120x8","fixed120x16","fixed120x24","fixed120x32","fixed120x40","fixed120x48","fixed120x56","fixed120x64","fixed120x72","fixed120x80","fixed120x88","fixed120x96","fixed120x104","fixed120x112","fixed120x120","fixed120x128","fixed120x136","fixed128x8","fixed128x16","fixed128x24","fixed128x32","fixed128x40","fixed128x48","fixed128x56","fixed128x64","fixed128x72","fixed128x80","fixed128x88","fixed128x96","fixed128x104","fixed128x112","fixed128x120","fixed128x128","fixed136x8","fixed136x16","fixed136x24","fixed136x32","fixed136x40","fixed136x48","fixed136x56","fixed136x64","fixed136x72","fixed136x80","fixed136x88","fixed136x96","fixed136x104","fixed136x112","fixed136x120","fixed144x8","fixed144x16","fixed144x24","fixed144x32","fixed144x40","fixed144x48","fixed144x56","fixed144x64","fixed144x72","fixed144x80","fixed144x88","fixed144x96","fixed144x104","fixed144x112","fixed152x8","fixed152x16","fixed152x24","fixed152x32","fixed152x40","fixed152x48","fixed152x56","fixed152x64","fixed152x72","fixed152x80","fixed152x88","fixed152x96","fixed152x104","fixed160x8","fixed160x16","fixed160x24","fixed160x32","fixed160x40","fixed160x48","fixed160x56","fixed160x64","fixed160x72","fixed160x80","fixed160x88","fixed160x96","fixed168x8","fixed168x16","fixed168x24","fixed168x32","fixed168x40","fixed168x48","fixed168x56","fixed168x64","fixed168x72","fixed168x80","fixed168x88","fixed176x8","fixed176x16","fixed176x24","fixed176x32","fixed176x40","fixed176x48","fixed176x56","fixed176x64","fixed176x72","fixed176x80","fixed184x8","fixed184x16","fixed184x24","fixed184x32","fixed184x40","fixed184x48","fixed184x56","fixed184x64","fixed184x72","fixed192x8","fixed192x16","fixed192x24","fixed192x32","fixed192x40","fixed192x48","fixed192x56","fixed192x64","fixed200x8","fixed200x16","fixed200x24","fixed200x32","fixed200x40","fixed200x48","fixed200x56","fixed208x8","fixed208x16","fixed208x24","fixed208x32","fixed208x40","fixed208x48","fixed216x8","fixed216x16","fixed216x24","fixed216x32","fixed216x40","fixed224x8","fixed224x16","fixed224x24","fixed224x32","fixed232x8","fixed232x16","fixed232x24","fixed240x8","fixed240x16","fixed248x8","ufixed","ufixed0x8","ufixed0x16","ufixed0x24","ufixed0x32","ufixed0x40","ufixed0x48","ufixed0x56","ufixed0x64","ufixed0x72","ufixed0x80","ufixed0x88","ufixed0x96","ufixed0x104","ufixed0x112","ufixed0x120","ufixed0x128","ufixed0x136","ufixed0x144","ufixed0x152","ufixed0x160","ufixed0x168","ufixed0x176","ufixed0x184","ufixed0x192","ufixed0x200","ufixed0x208","ufixed0x216","ufixed0x224","ufixed0x232","ufixed0x240","ufixed0x248","ufixed0x256","ufixed8x8","ufixed8x16","ufixed8x24","ufixed8x32","ufixed8x40","ufixed8x48","ufixed8x56","ufixed8x64","ufixed8x72","ufixed8x80","ufixed8x88","ufixed8x96","ufixed8x104","ufixed8x112","ufixed8x120","ufixed8x128","ufixed8x136","ufixed8x144","ufixed8x152","ufixed8x160","ufixed8x168","ufixed8x176","ufixed8x184","ufixed8x192","ufixed8x200","ufixed8x208","ufixed8x216","ufixed8x224","ufixed8x232","ufixed8x240","ufixed8x248","ufixed16x8","ufixed16x16","ufixed16x24","ufixed16x32","ufixed16x40","ufixed16x48","ufixed16x56","ufixed16x64","ufixed16x72","ufixed16x80","ufixed16x88","ufixed16x96","ufixed16x104","ufixed16x112","ufixed16x120","ufixed16x128","ufixed16x136","ufixed16x144","ufixed16x152","ufixed16x160","ufixed16x168","ufixed16x176","ufixed16x184","ufixed16x192","ufixed16x200","ufixed16x208","ufixed16x216","ufixed16x224","ufixed16x232","ufixed16x240","ufixed24x8","ufixed24x16","ufixed24x24","ufixed24x32","ufixed24x40","ufixed24x48","ufixed24x56","ufixed24x64","ufixed24x72","ufixed24x80","ufixed24x88","ufixed24x96","ufixed24x104","ufixed24x112","ufixed24x120","ufixed24x128","ufixed24x136","ufixed24x144","ufixed24x152","ufixed24x160","ufixed24x168","ufixed24x176","ufixed24x184","ufixed24x192","ufixed24x200","ufixed24x208","ufixed24x216","ufixed24x224","ufixed24x232","ufixed32x8","ufixed32x16","ufixed32x24","ufixed32x32","ufixed32x40","ufixed32x48","ufixed32x56","ufixed32x64","ufixed32x72","ufixed32x80","ufixed32x88","ufixed32x96","ufixed32x104","ufixed32x112","ufixed32x120","ufixed32x128","ufixed32x136","ufixed32x144","ufixed32x152","ufixed32x160","ufixed32x168","ufixed32x176","ufixed32x184","ufixed32x192","ufixed32x200","ufixed32x208","ufixed32x216","ufixed32x224","ufixed40x8","ufixed40x16","ufixed40x24","ufixed40x32","ufixed40x40","ufixed40x48","ufixed40x56","ufixed40x64","ufixed40x72","ufixed40x80","ufixed40x88","ufixed40x96","ufixed40x104","ufixed40x112","ufixed40x120","ufixed40x128","ufixed40x136","ufixed40x144","ufixed40x152","ufixed40x160","ufixed40x168","ufixed40x176","ufixed40x184","ufixed40x192","ufixed40x200","ufixed40x208","ufixed40x216","ufixed48x8","ufixed48x16","ufixed48x24","ufixed48x32","ufixed48x40","ufixed48x48","ufixed48x56","ufixed48x64","ufixed48x72","ufixed48x80","ufixed48x88","ufixed48x96","ufixed48x104","ufixed48x112","ufixed48x120","ufixed48x128","ufixed48x136","ufixed48x144","ufixed48x152","ufixed48x160","ufixed48x168","ufixed48x176","ufixed48x184","ufixed48x192","ufixed48x200","ufixed48x208","ufixed56x8","ufixed56x16","ufixed56x24","ufixed56x32","ufixed56x40","ufixed56x48","ufixed56x56","ufixed56x64","ufixed56x72","ufixed56x80","ufixed56x88","ufixed56x96","ufixed56x104","ufixed56x112","ufixed56x120","ufixed56x128","ufixed56x136","ufixed56x144","ufixed56x152","ufixed56x160","ufixed56x168","ufixed56x176","ufixed56x184","ufixed56x192","ufixed56x200","ufixed64x8","ufixed64x16","ufixed64x24","ufixed64x32","ufixed64x40","ufixed64x48","ufixed64x56","ufixed64x64","ufixed64x72","ufixed64x80","ufixed64x88","ufixed64x96","ufixed64x104","ufixed64x112","ufixed64x120","ufixed64x128","ufixed64x136","ufixed64x144","ufixed64x152","ufixed64x160","ufixed64x168","ufixed64x176","ufixed64x184","ufixed64x192","ufixed72x8","ufixed72x16","ufixed72x24","ufixed72x32","ufixed72x40","ufixed72x48","ufixed72x56","ufixed72x64","ufixed72x72","ufixed72x80","ufixed72x88","ufixed72x96","ufixed72x104","ufixed72x112","ufixed72x120","ufixed72x128","ufixed72x136","ufixed72x144","ufixed72x152","ufixed72x160","ufixed72x168","ufixed72x176","ufixed72x184","ufixed80x8","ufixed80x16","ufixed80x24","ufixed80x32","ufixed80x40","ufixed80x48","ufixed80x56","ufixed80x64","ufixed80x72","ufixed80x80","ufixed80x88","ufixed80x96","ufixed80x104","ufixed80x112","ufixed80x120","ufixed80x128","ufixed80x136","ufixed80x144","ufixed80x152","ufixed80x160","ufixed80x168","ufixed80x176","ufixed88x8","ufixed88x16","ufixed88x24","ufixed88x32","ufixed88x40","ufixed88x48","ufixed88x56","ufixed88x64","ufixed88x72","ufixed88x80","ufixed88x88","ufixed88x96","ufixed88x104","ufixed88x112","ufixed88x120","ufixed88x128","ufixed88x136","ufixed88x144","ufixed88x152","ufixed88x160","ufixed88x168","ufixed96x8","ufixed96x16","ufixed96x24","ufixed96x32","ufixed96x40","ufixed96x48","ufixed96x56","ufixed96x64","ufixed96x72","ufixed96x80","ufixed96x88","ufixed96x96","ufixed96x104","ufixed96x112","ufixed96x120","ufixed96x128","ufixed96x136","ufixed96x144","ufixed96x152","ufixed96x160","ufixed104x8","ufixed104x16","ufixed104x24","ufixed104x32","ufixed104x40","ufixed104x48","ufixed104x56","ufixed104x64","ufixed104x72","ufixed104x80","ufixed104x88","ufixed104x96","ufixed104x104","ufixed104x112","ufixed104x120","ufixed104x128","ufixed104x136","ufixed104x144","ufixed104x152","ufixed112x8","ufixed112x16","ufixed112x24","ufixed112x32","ufixed112x40","ufixed112x48","ufixed112x56","ufixed112x64","ufixed112x72","ufixed112x80","ufixed112x88","ufixed112x96","ufixed112x104","ufixed112x112","ufixed112x120","ufixed112x128","ufixed112x136","ufixed112x144","ufixed120x8","ufixed120x16","ufixed120x24","ufixed120x32","ufixed120x40","ufixed120x48","ufixed120x56","ufixed120x64","ufixed120x72","ufixed120x80","ufixed120x88","ufixed120x96","ufixed120x104","ufixed120x112","ufixed120x120","ufixed120x128","ufixed120x136","ufixed128x8","ufixed128x16","ufixed128x24","ufixed128x32","ufixed128x40","ufixed128x48","ufixed128x56","ufixed128x64","ufixed128x72","ufixed128x80","ufixed128x88","ufixed128x96","ufixed128x104","ufixed128x112","ufixed128x120","ufixed128x128","ufixed136x8","ufixed136x16","ufixed136x24","ufixed136x32","ufixed136x40","ufixed136x48","ufixed136x56","ufixed136x64","ufixed136x72","ufixed136x80","ufixed136x88","ufixed136x96","ufixed136x104","ufixed136x112","ufixed136x120","ufixed144x8","ufixed144x16","ufixed144x24","ufixed144x32","ufixed144x40","ufixed144x48","ufixed144x56","ufixed144x64","ufixed144x72","ufixed144x80","ufixed144x88","ufixed144x96","ufixed144x104","ufixed144x112","ufixed152x8","ufixed152x16","ufixed152x24","ufixed152x32","ufixed152x40","ufixed152x48","ufixed152x56","ufixed152x64","ufixed152x72","ufixed152x80","ufixed152x88","ufixed152x96","ufixed152x104","ufixed160x8","ufixed160x16","ufixed160x24","ufixed160x32","ufixed160x40","ufixed160x48","ufixed160x56","ufixed160x64","ufixed160x72","ufixed160x80","ufixed160x88","ufixed160x96","ufixed168x8","ufixed168x16","ufixed168x24","ufixed168x32","ufixed168x40","ufixed168x48","ufixed168x56","ufixed168x64","ufixed168x72","ufixed168x80","ufixed168x88","ufixed176x8","ufixed176x16","ufixed176x24","ufixed176x32","ufixed176x40","ufixed176x48","ufixed176x56","ufixed176x64","ufixed176x72","ufixed176x80","ufixed184x8","ufixed184x16","ufixed184x24","ufixed184x32","ufixed184x40","ufixed184x48","ufixed184x56","ufixed184x64","ufixed184x72","ufixed192x8","ufixed192x16","ufixed192x24","ufixed192x32","ufixed192x40","ufixed192x48","ufixed192x56","ufixed192x64","ufixed200x8","ufixed200x16","ufixed200x24","ufixed200x32","ufixed200x40","ufixed200x48","ufixed200x56","ufixed208x8","ufixed208x16","ufixed208x24","ufixed208x32","ufixed208x40","ufixed208x48","ufixed216x8","ufixed216x16","ufixed216x24","ufixed216x32","ufixed216x40","ufixed224x8","ufixed224x16","ufixed224x24","ufixed224x32","ufixed232x8","ufixed232x16","ufixed232x24","ufixed240x8","ufixed240x16","ufixed248x8","event","enum","let","mapping","private","public","external","inherited","payable","true","false","var","import","constant","if","else","for","else","for","while","do","break","continue","throw","returns","return","suicide","new","is","this","super"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/,"number.hex"],[/0[0-7']*[0-7](@integersuffix)/,"number.octal"],[/0[bB][0-1']*[0-1](@integersuffix)/,"number.binary"],[/\d[\d']*\d(@integersuffix)/,"number"],[/\d(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]]}}});var MAi={};od(MAi,{conf:()=>OGi,language:()=>FGi});var OGi,FGi,RAi=ti(()=>{OGi={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}]},FGi={defaultToken:"",tokenPostfix:".aes",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["contract","library","entrypoint","function","stateful","state","hash","signature","tuple","list","address","string","bool","int","record","datatype","type","option","oracle","oracle_query","Call","Bits","Bytes","Oracle","String","Crypto","Address","Auth","Chain","None","Some","bits","bytes","event","let","map","private","public","true","false","var","if","else","throw"],operators:["=",">","<","!","~","?","::",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/,"number.hex"],[/0[0-7']*[0-7](@integersuffix)/,"number.octal"],[/0[bB][0-1']*[0-1](@integersuffix)/,"number.binary"],[/\d[\d']*\d(@integersuffix)/,"number"],[/\d(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]]}}});var BAi={};od(BAi,{conf:()=>MGi,language:()=>RGi});var MGi,RGi,jAi=ti(()=>{MGi={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"'",close:"'",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"}]},RGi={defaultToken:"",tokenPostfix:".rq",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["add","as","asc","ask","base","by","clear","construct","copy","create","data","delete","desc","describe","distinct","drop","false","filter","from","graph","group","having","in","insert","limit","load","minus","move","named","not","offset","optional","order","prefix","reduced","select","service","silent","to","true","undef","union","using","values","where","with"],builtinFunctions:["a","abs","avg","bind","bnode","bound","ceil","coalesce","concat","contains","count","datatype","day","encode_for_uri","exists","floor","group_concat","hours","if","iri","isblank","isiri","isliteral","isnumeric","isuri","lang","langmatches","lcase","max","md5","min","minutes","month","now","rand","regex","replace","round","sameterm","sample","seconds","sha1","sha256","sha384","sha512","str","strafter","strbefore","strdt","strends","strlang","strlen","strstarts","struuid","substr","sum","timezone","tz","ucase","uri","uuid","year"],ignoreCase:!0,tokenizer:{root:[[/<[^\s\u00a0>]*>?/,"tag"],{include:"@strings"},[/#.*/,"comment"],[/[{}()\[\]]/,"@brackets"],[/[;,.]/,"delimiter"],[/[_\w\d]+:(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])*/,"tag"],[/:(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])+/,"tag"],[/[$?]?[_\w\d]+/,{cases:{"@keywords":{token:"keyword"},"@builtinFunctions":{token:"predefined.sql"},"@default":"identifier"}}],[/\^\^/,"operator.sql"],[/\^[*+\-<>=&|^\/!?]*/,"operator.sql"],[/[*+\-<>=&|\/!?]/,"operator.sql"],[/@[a-z\d\-]*/,"metatag.html"],[/\s+/,"white"]],strings:[[/'([^'\\]|\\.)*$/,"string.invalid"],[/'$/,"string.sql","@pop"],[/'/,"string.sql","@stringBody"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"$/,"string.sql","@pop"],[/"/,"string.sql","@dblStringBody"]],stringBody:[[/[^\\']+/,"string.sql"],[/\\./,"string.escape"],[/'/,"string.sql","@pop"]],dblStringBody:[[/[^\\"]+/,"string.sql"],[/\\./,"string.escape"],[/"/,"string.sql","@pop"]]}}});var WAi={};od(WAi,{conf:()=>BGi,language:()=>jGi});var BGi,jGi,zAi=ti(()=>{BGi={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},jGi={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ABORT","ABSOLUTE","ACTION","ADA","ADD","AFTER","ALL","ALLOCATE","ALTER","ALWAYS","ANALYZE","AND","ANY","ARE","AS","ASC","ASSERTION","AT","ATTACH","AUTHORIZATION","AUTOINCREMENT","AVG","BACKUP","BEFORE","BEGIN","BETWEEN","BIT","BIT_LENGTH","BOTH","BREAK","BROWSE","BULK","BY","CASCADE","CASCADED","CASE","CAST","CATALOG","CHAR","CHARACTER","CHARACTER_LENGTH","CHAR_LENGTH","CHECK","CHECKPOINT","CLOSE","CLUSTERED","COALESCE","COLLATE","COLLATION","COLUMN","COMMIT","COMPUTE","CONFLICT","CONNECT","CONNECTION","CONSTRAINT","CONSTRAINTS","CONTAINS","CONTAINSTABLE","CONTINUE","CONVERT","CORRESPONDING","COUNT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DATE","DAY","DBCC","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFERRABLE","DEFERRED","DELETE","DENY","DESC","DESCRIBE","DESCRIPTOR","DETACH","DIAGNOSTICS","DISCONNECT","DISK","DISTINCT","DISTRIBUTED","DO","DOMAIN","DOUBLE","DROP","DUMP","EACH","ELSE","END","END-EXEC","ERRLVL","ESCAPE","EXCEPT","EXCEPTION","EXCLUDE","EXCLUSIVE","EXEC","EXECUTE","EXISTS","EXIT","EXPLAIN","EXTERNAL","EXTRACT","FAIL","FALSE","FETCH","FILE","FILLFACTOR","FILTER","FIRST","FLOAT","FOLLOWING","FOR","FOREIGN","FORTRAN","FOUND","FREETEXT","FREETEXTTABLE","FROM","FULL","FUNCTION","GENERATED","GET","GLOB","GLOBAL","GO","GOTO","GRANT","GROUP","GROUPS","HAVING","HOLDLOCK","HOUR","IDENTITY","IDENTITYCOL","IDENTITY_INSERT","IF","IGNORE","IMMEDIATE","IN","INCLUDE","INDEX","INDEXED","INDICATOR","INITIALLY","INNER","INPUT","INSENSITIVE","INSERT","INSTEAD","INT","INTEGER","INTERSECT","INTERVAL","INTO","IS","ISNULL","ISOLATION","JOIN","KEY","KILL","LANGUAGE","LAST","LEADING","LEFT","LEVEL","LIKE","LIMIT","LINENO","LOAD","LOCAL","LOWER","MATCH","MATERIALIZED","MAX","MERGE","MIN","MINUTE","MODULE","MONTH","NAMES","NATIONAL","NATURAL","NCHAR","NEXT","NO","NOCHECK","NONCLUSTERED","NONE","NOT","NOTHING","NOTNULL","NULL","NULLIF","NULLS","NUMERIC","OCTET_LENGTH","OF","OFF","OFFSET","OFFSETS","ON","ONLY","OPEN","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","OPTION","OR","ORDER","OTHERS","OUTER","OUTPUT","OVER","OVERLAPS","PAD","PARTIAL","PARTITION","PASCAL","PERCENT","PIVOT","PLAN","POSITION","PRAGMA","PRECEDING","PRECISION","PREPARE","PRESERVE","PRIMARY","PRINT","PRIOR","PRIVILEGES","PROC","PROCEDURE","PUBLIC","QUERY","RAISE","RAISERROR","RANGE","READ","READTEXT","REAL","RECONFIGURE","RECURSIVE","REFERENCES","REGEXP","REINDEX","RELATIVE","RELEASE","RENAME","REPLACE","REPLICATION","RESTORE","RESTRICT","RETURN","RETURNING","REVERT","REVOKE","RIGHT","ROLLBACK","ROW","ROWCOUNT","ROWGUIDCOL","ROWS","RULE","SAVE","SAVEPOINT","SCHEMA","SCROLL","SECOND","SECTION","SECURITYAUDIT","SELECT","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","SESSION","SESSION_USER","SET","SETUSER","SHUTDOWN","SIZE","SMALLINT","SOME","SPACE","SQL","SQLCA","SQLCODE","SQLERROR","SQLSTATE","SQLWARNING","STATISTICS","SUBSTRING","SUM","SYSTEM_USER","TABLE","TABLESAMPLE","TEMP","TEMPORARY","TEXTSIZE","THEN","TIES","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TOP","TRAILING","TRAN","TRANSACTION","TRANSLATE","TRANSLATION","TRIGGER","TRIM","TRUE","TRUNCATE","TRY_CONVERT","TSEQUAL","UNBOUNDED","UNION","UNIQUE","UNKNOWN","UNPIVOT","UPDATE","UPDATETEXT","UPPER","USAGE","USE","USER","USING","VACUUM","VALUE","VALUES","VARCHAR","VARYING","VIEW","VIRTUAL","WAITFOR","WHEN","WHENEVER","WHERE","WHILE","WINDOW","WITH","WITHIN GROUP","WITHOUT","WORK","WRITE","WRITETEXT","YEAR","ZONE"],operators:["ALL","AND","ANY","BETWEEN","EXISTS","IN","LIKE","NOT","OR","SOME","EXCEPT","INTERSECT","UNION","APPLY","CROSS","FULL","INNER","JOIN","LEFT","OUTER","RIGHT","CONTAINS","FREETEXT","IS","NULL","PIVOT","UNPIVOT","MATCHED"],builtinFunctions:["AVG","CHECKSUM_AGG","COUNT","COUNT_BIG","GROUPING","GROUPING_ID","MAX","MIN","SUM","STDEV","STDEVP","VAR","VARP","CUME_DIST","FIRST_VALUE","LAG","LAST_VALUE","LEAD","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","COLLATE","COLLATIONPROPERTY","TERTIARY_WEIGHTS","FEDERATION_FILTERING_VALUE","CAST","CONVERT","PARSE","TRY_CAST","TRY_CONVERT","TRY_PARSE","ASYMKEY_ID","ASYMKEYPROPERTY","CERTPROPERTY","CERT_ID","CRYPT_GEN_RANDOM","DECRYPTBYASYMKEY","DECRYPTBYCERT","DECRYPTBYKEY","DECRYPTBYKEYAUTOASYMKEY","DECRYPTBYKEYAUTOCERT","DECRYPTBYPASSPHRASE","ENCRYPTBYASYMKEY","ENCRYPTBYCERT","ENCRYPTBYKEY","ENCRYPTBYPASSPHRASE","HASHBYTES","IS_OBJECTSIGNED","KEY_GUID","KEY_ID","KEY_NAME","SIGNBYASYMKEY","SIGNBYCERT","SYMKEYPROPERTY","VERIFYSIGNEDBYCERT","VERIFYSIGNEDBYASYMKEY","CURSOR_STATUS","DATALENGTH","IDENT_CURRENT","IDENT_INCR","IDENT_SEED","IDENTITY","SQL_VARIANT_PROPERTY","CURRENT_TIMESTAMP","DATEADD","DATEDIFF","DATEFROMPARTS","DATENAME","DATEPART","DATETIME2FROMPARTS","DATETIMEFROMPARTS","DATETIMEOFFSETFROMPARTS","DAY","EOMONTH","GETDATE","GETUTCDATE","ISDATE","MONTH","SMALLDATETIMEFROMPARTS","SWITCHOFFSET","SYSDATETIME","SYSDATETIMEOFFSET","SYSUTCDATETIME","TIMEFROMPARTS","TODATETIMEOFFSET","YEAR","CHOOSE","COALESCE","IIF","NULLIF","ABS","ACOS","ASIN","ATAN","ATN2","CEILING","COS","COT","DEGREES","EXP","FLOOR","LOG","LOG10","PI","POWER","RADIANS","RAND","ROUND","SIGN","SIN","SQRT","SQUARE","TAN","APP_NAME","APPLOCK_MODE","APPLOCK_TEST","ASSEMBLYPROPERTY","COL_LENGTH","COL_NAME","COLUMNPROPERTY","DATABASE_PRINCIPAL_ID","DATABASEPROPERTYEX","DB_ID","DB_NAME","FILE_ID","FILE_IDEX","FILE_NAME","FILEGROUP_ID","FILEGROUP_NAME","FILEGROUPPROPERTY","FILEPROPERTY","FULLTEXTCATALOGPROPERTY","FULLTEXTSERVICEPROPERTY","INDEX_COL","INDEXKEY_PROPERTY","INDEXPROPERTY","OBJECT_DEFINITION","OBJECT_ID","OBJECT_NAME","OBJECT_SCHEMA_NAME","OBJECTPROPERTY","OBJECTPROPERTYEX","ORIGINAL_DB_NAME","PARSENAME","SCHEMA_ID","SCHEMA_NAME","SCOPE_IDENTITY","SERVERPROPERTY","STATS_DATE","TYPE_ID","TYPE_NAME","TYPEPROPERTY","DENSE_RANK","NTILE","RANK","ROW_NUMBER","PUBLISHINGSERVERNAME","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","CERTENCODED","CERTPRIVATEKEY","CURRENT_USER","HAS_DBACCESS","HAS_PERMS_BY_NAME","IS_MEMBER","IS_ROLEMEMBER","IS_SRVROLEMEMBER","LOGINPROPERTY","ORIGINAL_LOGIN","PERMISSIONS","PWDENCRYPT","PWDCOMPARE","SESSION_USER","SESSIONPROPERTY","SUSER_ID","SUSER_NAME","SUSER_SID","SUSER_SNAME","SYSTEM_USER","USER","USER_ID","USER_NAME","ASCII","CHAR","CHARINDEX","CONCAT","DIFFERENCE","FORMAT","LEFT","LEN","LOWER","LTRIM","NCHAR","PATINDEX","QUOTENAME","REPLACE","REPLICATE","REVERSE","RIGHT","RTRIM","SOUNDEX","SPACE","STR","STUFF","SUBSTRING","UNICODE","UPPER","BINARY_CHECKSUM","CHECKSUM","CONNECTIONPROPERTY","CONTEXT_INFO","CURRENT_REQUEST_ID","ERROR_LINE","ERROR_NUMBER","ERROR_MESSAGE","ERROR_PROCEDURE","ERROR_SEVERITY","ERROR_STATE","FORMATMESSAGE","GETANSINULL","GET_FILESTREAM_TRANSACTION_CONTEXT","HOST_ID","HOST_NAME","ISNULL","ISNUMERIC","MIN_ACTIVE_ROWVERSION","NEWID","NEWSEQUENTIALID","ROWCOUNT_BIG","XACT_STATE","TEXTPTR","TEXTVALID","COLUMNS_UPDATED","EVENTDATA","TRIGGER_NESTLEVEL","UPDATE","CHANGETABLE","CHANGE_TRACKING_CONTEXT","CHANGE_TRACKING_CURRENT_VERSION","CHANGE_TRACKING_IS_COLUMN_IN_MASK","CHANGE_TRACKING_MIN_VALID_VERSION","CONTAINSTABLE","FREETEXTTABLE","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","FILETABLEROOTPATH","GETFILENAMESPACEPATH","GETPATHLOCATOR","PATHNAME","GET_TRANSMISSION_STATUS"],builtinVariables:["@@DATEFIRST","@@DBTS","@@LANGID","@@LANGUAGE","@@LOCK_TIMEOUT","@@MAX_CONNECTIONS","@@MAX_PRECISION","@@NESTLEVEL","@@OPTIONS","@@REMSERVER","@@SERVERNAME","@@SERVICENAME","@@SPID","@@TEXTSIZE","@@VERSION","@@CURSOR_ROWS","@@FETCH_STATUS","@@DATEFIRST","@@PROCID","@@ERROR","@@IDENTITY","@@ROWCOUNT","@@TRANCOUNT","@@CONNECTIONS","@@CPU_BUSY","@@IDLE","@@IO_BUSY","@@PACKET_ERRORS","@@PACK_RECEIVED","@@PACK_SENT","@@TIMETICKS","@@TOTAL_ERRORS","@@TOTAL_READ","@@TOTAL_WRITE"],pseudoColumns:["$ACTION","$IDENTITY","$ROWGUID","$PARTITION"],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@keywords":"keyword","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/N'/,{token:"string",next:"@string"}],[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/\[/,{token:"identifier.quote",next:"@bracketedIdentifier"}],[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],bracketedIdentifier:[[/[^\]]+/,"identifier"],[/]]/,"identifier"],[/]/,{token:"identifier.quote",next:"@pop"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[[/BEGIN\s+(DISTRIBUTED\s+)?TRAN(SACTION)?\b/i,"keyword"],[/BEGIN\s+TRY\b/i,{token:"keyword.try"}],[/END\s+TRY\b/i,{token:"keyword.try"}],[/BEGIN\s+CATCH\b/i,{token:"keyword.catch"}],[/END\s+CATCH\b/i,{token:"keyword.catch"}],[/(BEGIN|CASE)\b/i,{token:"keyword.block"}],[/END\b/i,{token:"keyword.block"}],[/WHEN\b/i,{token:"keyword.choice"}],[/THEN\b/i,{token:"keyword.choice"}]]}}});var VAi={};od(VAi,{conf:()=>WGi,language:()=>zGi});var WGi,zGi,HAi=ti(()=>{WGi={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["var","end_var"],["var_input","end_var"],["var_output","end_var"],["var_in_out","end_var"],["var_temp","end_var"],["var_global","end_var"],["var_access","end_var"],["var_external","end_var"],["type","end_type"],["struct","end_struct"],["program","end_program"],["function","end_function"],["function_block","end_function_block"],["action","end_action"],["step","end_step"],["initial_step","end_step"],["transaction","end_transaction"],["configuration","end_configuration"],["tcp","end_tcp"],["recource","end_recource"],["channel","end_channel"],["library","end_library"],["folder","end_folder"],["binaries","end_binaries"],["includes","end_includes"],["sources","end_sources"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"/*",close:"*/"},{open:"'",close:"'",notIn:["string_sq"]},{open:'"',close:'"',notIn:["string_dq"]},{open:"var_input",close:"end_var"},{open:"var_output",close:"end_var"},{open:"var_in_out",close:"end_var"},{open:"var_temp",close:"end_var"},{open:"var_global",close:"end_var"},{open:"var_access",close:"end_var"},{open:"var_external",close:"end_var"},{open:"type",close:"end_type"},{open:"struct",close:"end_struct"},{open:"program",close:"end_program"},{open:"function",close:"end_function"},{open:"function_block",close:"end_function_block"},{open:"action",close:"end_action"},{open:"step",close:"end_step"},{open:"initial_step",close:"end_step"},{open:"transaction",close:"end_transaction"},{open:"configuration",close:"end_configuration"},{open:"tcp",close:"end_tcp"},{open:"recource",close:"end_recource"},{open:"channel",close:"end_channel"},{open:"library",close:"end_library"},{open:"folder",close:"end_folder"},{open:"binaries",close:"end_binaries"},{open:"includes",close:"end_includes"},{open:"sources",close:"end_sources"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"var",close:"end_var"},{open:"var_input",close:"end_var"},{open:"var_output",close:"end_var"},{open:"var_in_out",close:"end_var"},{open:"var_temp",close:"end_var"},{open:"var_global",close:"end_var"},{open:"var_access",close:"end_var"},{open:"var_external",close:"end_var"},{open:"type",close:"end_type"},{open:"struct",close:"end_struct"},{open:"program",close:"end_program"},{open:"function",close:"end_function"},{open:"function_block",close:"end_function_block"},{open:"action",close:"end_action"},{open:"step",close:"end_step"},{open:"initial_step",close:"end_step"},{open:"transaction",close:"end_transaction"},{open:"configuration",close:"end_configuration"},{open:"tcp",close:"end_tcp"},{open:"recource",close:"end_recource"},{open:"channel",close:"end_channel"},{open:"library",close:"end_library"},{open:"folder",close:"end_folder"},{open:"binaries",close:"end_binaries"},{open:"includes",close:"end_includes"},{open:"sources",close:"end_sources"}],folding:{markers:{start:new RegExp("^\\s*#pragma\\s+region\\b"),end:new RegExp("^\\s*#pragma\\s+endregion\\b")}}},zGi={defaultToken:"",tokenPostfix:".st",ignoreCase:!0,brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["if","end_if","elsif","else","case","of","to","__try","__catch","__finally","do","with","by","while","repeat","end_while","end_repeat","end_case","for","end_for","task","retain","non_retain","constant","with","at","exit","return","interval","priority","address","port","on_channel","then","iec","file","uses","version","packagetype","displayname","copyright","summary","vendor","common_source","from","extends","implements"],constant:["false","true","null"],defineKeywords:["var","var_input","var_output","var_in_out","var_temp","var_global","var_access","var_external","end_var","type","end_type","struct","end_struct","program","end_program","function","end_function","function_block","end_function_block","interface","end_interface","method","end_method","property","end_property","namespace","end_namespace","configuration","end_configuration","tcp","end_tcp","resource","end_resource","channel","end_channel","library","end_library","folder","end_folder","binaries","end_binaries","includes","end_includes","sources","end_sources","action","end_action","step","initial_step","end_step","transaction","end_transaction"],typeKeywords:["int","sint","dint","lint","usint","uint","udint","ulint","real","lreal","time","date","time_of_day","date_and_time","string","bool","byte","word","dword","array","pointer","lword"],operators:["=",">","<",":",":=","<=",">=","<>","&","+","-","*","**","MOD","^","or","and","not","xor","abs","acos","asin","atan","cos","exp","expt","ln","log","sin","sqrt","tan","sel","max","min","limit","mux","shl","shr","rol","ror","indexof","sizeof","adr","adrinst","bitadr","is_valid","ref","ref_to"],builtinVariables:[],builtinFunctions:["sr","rs","tp","ton","tof","eq","ge","le","lt","ne","round","trunc","ctd","\u0441tu","ctud","r_trig","f_trig","move","concat","delete","find","insert","left","len","replace","right","rtc"],symbols:/[=>VGi,language:()=>HGi});var VGi,HGi,JAi=ti(()=>{VGi={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},HGi={defaultToken:"",tokenPostfix:".swift",identifier:/[a-zA-Z_][\w$]*/,attributes:["@GKInspectable","@IBAction","@IBDesignable","@IBInspectable","@IBOutlet","@IBSegueAction","@NSApplicationMain","@NSCopying","@NSManaged","@Sendable","@UIApplicationMain","@autoclosure","@actorIndependent","@asyncHandler","@available","@convention","@derivative","@differentiable","@discardableResult","@dynamicCallable","@dynamicMemberLookup","@escaping","@frozen","@globalActor","@inlinable","@inline","@main","@noDerivative","@nonobjc","@noreturn","@objc","@objcMembers","@preconcurrency","@propertyWrapper","@requires_stored_property_inits","@resultBuilder","@testable","@unchecked","@unknown","@usableFromInline","@warn_unqualified_access"],accessmodifiers:["open","public","internal","fileprivate","private"],keywords:["#available","#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning","Any","Protocol","Self","Type","actor","as","assignment","associatedtype","associativity","async","await","break","case","catch","class","continue","convenience","default","defer","deinit","didSet","do","dynamic","dynamicType","else","enum","extension","fallthrough","false","fileprivate","final","for","func","get","guard","higherThan","if","import","in","indirect","infix","init","inout","internal","is","isolated","lazy","left","let","lowerThan","mutating","nil","none","nonisolated","nonmutating","open","operator","optional","override","postfix","precedence","precedencegroup","prefix","private","protocol","public","repeat","required","rethrows","return","right","safe","self","set","some","static","struct","subscript","super","switch","throw","throws","true","try","typealias","unowned","unsafe","var","weak","where","while","willSet","__consuming","__owned"],symbols:/[=(){}\[\].,:;@#\_&\-<>`?!+*\\\/]/,operatorstart:/[\/=\-+!*%<>&|^~?\u00A1-\u00A7\u00A9\u00AB\u00AC\u00AE\u00B0-\u00B1\u00B6\u00BB\u00BF\u00D7\u00F7\u2016-\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3030]/,operatorend:/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE00-\uFE0F\uFE20-\uFE2F\uE0100-\uE01EF]/,operators:/(@operatorstart)((@operatorstart)|(@operatorend))*/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},{include:"@attribute"},{include:"@literal"},{include:"@keyword"},{include:"@invokedmethod"},{include:"@symbol"}],whitespace:[[/\s+/,"white"],[/"""/,"string.quote","@endDblDocString"]],endDblDocString:[[/[^"]+/,"string"],[/\\"/,"string"],[/"""/,"string.quote","@popall"],[/"/,"string"]],symbol:[[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/[.]/,"delimiter"],[/@operators/,"operator"],[/@symbols/,"operator"]],comment:[[/\/\/\/.*$/,"comment.doc"],[/\/\*\*/,"comment.doc","@commentdocbody"],[/\/\/.*$/,"comment"],[/\/\*/,"comment","@commentbody"]],commentdocbody:[[/\/\*/,"comment","@commentbody"],[/\*\//,"comment.doc","@pop"],[/\:[a-zA-Z]+\:/,"comment.doc.param"],[/./,"comment.doc"]],commentbody:[[/\/\*/,"comment","@commentbody"],[/\*\//,"comment","@pop"],[/./,"comment"]],attribute:[[/@@@identifier/,{cases:{"@attributes":"keyword.control","@default":""}}]],literal:[[/"/,{token:"string.quote",next:"@stringlit"}],[/0[b]([01]_?)+/,"number.binary"],[/0[o]([0-7]_?)+/,"number.octal"],[/0[x]([0-9a-fA-F]_?)+([pP][\-+](\d_?)+)?/,"number.hex"],[/(\d_?)*\.(\d_?)+([eE][\-+]?(\d_?)+)?/,"number.float"],[/(\d_?)+/,"number"]],stringlit:[[/\\\(/,{token:"operator",next:"@interpolatedexpression"}],[/@escapes/,"string"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",next:"@pop"}],[/./,"string"]],interpolatedexpression:[[/\(/,{token:"operator",next:"@interpolatedexpression"}],[/\)/,{token:"operator",next:"@pop"}],{include:"@literal"},{include:"@keyword"},{include:"@symbol"}],keyword:[[/`/,{token:"operator",next:"@escapedkeyword"}],[/@identifier/,{cases:{"@keywords":"keyword","[A-Z][a-zA-Z0-9$]*":"type.identifier","@default":"identifier"}}]],escapedkeyword:[[/`/,{token:"operator",next:"@pop"}],[/./,"identifier"]],invokedmethod:[[/([.])(@identifier)/,{cases:{$2:["delimeter","type.identifier"],"@default":""}}]]}};});var Jci={};od(Jci,{conf:()=>UGi,language:()=>JGi});var UGi,JGi,qci=ti(()=>{UGi={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["begin","end"],["case","endcase"],["casex","endcase"],["casez","endcase"],["checker","endchecker"],["class","endclass"],["clocking","endclocking"],["config","endconfig"],["function","endfunction"],["generate","endgenerate"],["group","endgroup"],["interface","endinterface"],["module","endmodule"],["package","endpackage"],["primitive","endprimitive"],["program","endprogram"],["property","endproperty"],["specify","endspecify"],["sequence","endsequence"],["table","endtable"],["task","endtask"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{offSide:!1,markers:{start:new RegExp("^(?:\\s*|.*(?!\\/[\\/\\*])[^\\w])(?:begin|case(x|z)?|class|clocking|config|covergroup|function|generate|interface|module|package|primitive|property|program|sequence|specify|table|task)\\b"),end:new RegExp("^(?:\\s*|.*(?!\\/[\\/\\*])[^\\w])(?:end|endcase|endclass|endclocking|endconfig|endgroup|endfunction|endgenerate|endinterface|endmodule|endpackage|endprimitive|endproperty|endprogram|endsequence|endspecify|endtable|endtask)\\b")}}},JGi={defaultToken:"",tokenPostfix:".sv",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["accept_on","alias","always","always_comb","always_ff","always_latch","and","assert","assign","assume","automatic","before","begin","bind","bins","binsof","bit","break","buf","bufif0","bufif1","byte","case","casex","casez","cell","chandle","checker","class","clocking","cmos","config","const","constraint","context","continue","cover","covergroup","coverpoint","cross","deassign","default","defparam","design","disable","dist","do","edge","else","end","endcase","endchecker","endclass","endclocking","endconfig","endfunction","endgenerate","endgroup","endinterface","endmodule","endpackage","endprimitive","endprogram","endproperty","endspecify","endsequence","endtable","endtask","enum","event","eventually","expect","export","extends","extern","final","first_match","for","force","foreach","forever","fork","forkjoin","function","generate","genvar","global","highz0","highz1","if","iff","ifnone","ignore_bins","illegal_bins","implements","implies","import","incdir","include","initial","inout","input","inside","instance","int","integer","interconnect","interface","intersect","join","join_any","join_none","large","let","liblist","library","local","localparam","logic","longint","macromodule","matches","medium","modport","module","nand","negedge","nettype","new","nexttime","nmos","nor","noshowcancelled","not","notif0","notif1","null","or","output","package","packed","parameter","pmos","posedge","primitive","priority","program","property","protected","pull0","pull1","pulldown","pullup","pulsestyle_ondetect","pulsestyle_onevent","pure","rand","randc","randcase","randsequence","rcmos","real","realtime","ref","reg","reject_on","release","repeat","restrict","return","rnmos","rpmos","rtran","rtranif0","rtranif1","s_always","s_eventually","s_nexttime","s_until","s_until_with","scalared","sequence","shortint","shortreal","showcancelled","signed","small","soft","solve","specify","specparam","static","string","strong","strong0","strong1","struct","super","supply0","supply1","sync_accept_on","sync_reject_on","table","tagged","task","this","throughout","time","timeprecision","timeunit","tran","tranif0","tranif1","tri","tri0","tri1","triand","trior","trireg","type","typedef","union","unique","unique0","unsigned","until","until_with","untyped","use","uwire","var","vectored","virtual","void","wait","wait_order","wand","weak","weak0","weak1","while","wildcard","wire","with","within","wor","xnor","xor"],builtin_gates:["and","nand","nor","or","xor","xnor","buf","not","bufif0","bufif1","notif1","notif0","cmos","nmos","pmos","rcmos","rnmos","rpmos","tran","tranif1","tranif0","rtran","rtranif1","rtranif0"],operators:["=","+=","-=","*=","/=","%=","&=","|=","^=","<<=",">>+","<<<=",">>>=","?",":","+","-","!","~","&","~&","|","~|","^","~^","^~","+","-","*","/","%","==","!=","===","!==","==?","!=?","&&","||","**","<","<=",">",">=","&","|","^",">>","<<",">>>","<<<","++","--","->","<->","inside","dist","::","+:","-:","*>","&&&","|->","|=>","#=#"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],{include:"@numbers"},[/[;,.]/,"delimiter"],{include:"@strings"}],identifier_or_keyword:[[/@identifier/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}]],numbers:[[/\d+?[\d_]*(?:\.[\d_]+)?[eE][\-+]?\d+/,"number.float"],[/\d+?[\d_]*\.[\d_]+(?:\s*@timeunits)?/,"number.float"],[/(?:\d+?[\d_]*\s*)?'[sS]?[dD]\s*[0-9xXzZ?]+?[0-9xXzZ?_]*/,"number"],[/(?:\d+?[\d_]*\s*)?'[sS]?[bB]\s*[0-1xXzZ?]+?[0-1xXzZ?_]*/,"number.binary"],[/(?:\d+?[\d_]*\s*)?'[sS]?[oO]\s*[0-7xXzZ?]+?[0-7xXzZ?_]*/,"number.octal"],[/(?:\d+?[\d_]*\s*)?'[sS]?[hH]\s*[0-9a-fA-FxXzZ?]+?[0-9a-fA-FxXzZ?_]*/,"number.hex"],[/1step/,"number"],[/[\dxXzZ]+?[\dxXzZ_]*(?:\s*@timeunits)?/,"number"],[/'[01xXzZ]+/,"number"]],module_instance:[{include:"@whitespace"},[/(#?)(\()/,["",{token:"@brackets",next:"@port_connection"}]],[/@identifier\s*[;={}\[\],]/,{token:"@rematch",next:"@pop"}],[/@symbols|[;={}\[\],]/,{token:"@rematch",next:"@pop"}],[/@identifier/,"type"],[/;/,"delimiter","@pop"]],port_connection:[{include:"@identifier_or_keyword"},{include:"@whitespace"},[/@systemcall/,"variable.predefined"],{include:"@numbers"},{include:"@strings"},[/[,]/,"delimiter"],[/\(/,"@brackets","@port_connection"],[/\)/,"@brackets","@pop"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],strings:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],include:[[/(\s*)(")([\w*\/*]*)(.\w*)(")/,["","string.include.identifier","string.include.identifier","string.include.identifier",{token:"string.include.identifier",next:"@pop"}]],[/(\s*)(<)([\w*\/*]*)(.\w*)(>)/,["","string.include.identifier","string.include.identifier","string.include.identifier",{token:"string.include.identifier",next:"@pop"}]]],table:[{include:"@whitespace"},[/[()]/,"@brackets"],[/[:;]/,"delimiter"],[/[01\-*?xXbBrRfFpPnN]/,"variable.predefined"],["endtable","keyword.endtable","@pop"]]}}});var qAi={};od(qAi,{conf:()=>qGi,language:()=>$Gi});var qGi,$Gi,$Ai=ti(()=>{qGi={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},$Gi={tokenPostfix:".tcl",specialFunctions:["set","unset","rename","variable","proc","coroutine","foreach","incr","append","lappend","linsert","lreplace"],mainFunctions:["if","then","elseif","else","case","switch","while","for","break","continue","return","package","namespace","catch","exit","eval","expr","uplevel","upvar"],builtinFunctions:["file","info","concat","join","lindex","list","llength","lrange","lsearch","lsort","split","array","parray","binary","format","regexp","regsub","scan","string","subst","dict","cd","clock","exec","glob","pid","pwd","close","eof","fblocked","fconfigure","fcopy","fileevent","flush","gets","open","puts","read","seek","socket","tell","interp","after","auto_execok","auto_load","auto_mkindex","auto_reset","bgerror","error","global","history","load","source","time","trace","unknown","unset","update","vwait","winfo","wm","bind","event","pack","place","grid","font","bell","clipboard","destroy","focus","grab","lower","option","raise","selection","send","tk","tkwait","tk_bisque","tk_focusNext","tk_focusPrev","tk_focusFollowsMouse","tk_popup","tk_setPalette"],symbols:/[=>GGi,language:()=>KGi});var GGi,KGi,KAi=ti(()=>{GGi={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{#","#}"]},brackets:[["{#","#}"],["{%","%}"],["{{","}}"],["(",")"],["[","]"],[""],["<",">"]],autoClosingPairs:[{open:"{# ",close:" #}"},{open:"{% ",close:" %}"},{open:"{{ ",close:" }}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}]},KGi={defaultToken:"",tokenPostfix:"",ignoreCase:!0,keywords:["apply","autoescape","block","deprecated","do","embed","extends","flush","for","from","if","import","include","macro","sandbox","set","use","verbatim","with","endapply","endautoescape","endblock","endembed","endfor","endif","endmacro","endsandbox","endset","endwith","true","false"],tokenizer:{root:[[/\s+/],[/{#/,"comment.twig","@commentState"],[/{%[-~]?/,"delimiter.twig","@blockState"],[/{{[-~]?/,"delimiter.twig","@variableState"],[/)/,["delimiter.html","tag.html","","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/|>=|<=/,"operators.twig"],[/(starts with|ends with|matches)(\s+)/,["operators.twig",""]],[/(in)(\s+)/,["operators.twig",""]],[/(is)(\s+)/,["operators.twig",""]],[/\||~|:|\.{1,2}|\?{1,2}/,"operators.twig"],[/[^\W\d][\w]*/,{cases:{"@keywords":"keyword.twig","@default":"variable.twig"}}],[/\d+(\.\d+)?/,"number.twig"],[/\(|\)|\[|\]|{|}|,/,"delimiter.twig"],[/"([^#"\\]*(?:\\.[^#"\\]*)*)"|\'([^\'\\]*(?:\\.[^\'\\]*)*)\'/,"string.twig"],[/"/,"string.twig","@stringState"],[/=>/,"operators.twig"],[/=/,"operators.twig"]],doctype:[[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name.html","@scriptAfterType"],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter.html","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value.html",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value.html",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name.html","@styleAfterType"],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/>/,{token:"delimiter.html",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter.html","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value.html",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value.html",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}}});var ZAi={};od(ZAi,{conf:()=>nKi,language:()=>rKi});var QAi,XAi,XGi,YGi,YAi,QGi,ZGi,eKi,tKi,iKi,nKi,rKi,ePi=ti(()=>{QAi=l=>`\\b${l}\\b`,XAi=l=>`(?!${l})`,XGi="[_a-zA-Z]",YGi="[_a-zA-Z0-9]",YAi=QAi(`${XGi}${YGi}*`),QGi=QAi("[_a-zA-Z-0-9]+"),ZGi=["import","model","scalar","namespace","op","interface","union","using","is","extends","enum","alias","return","void","if","else","projection","dec","extern","fn"],eKi=["true","false","null","unknown","never"],tKi="[ \\t\\r\\n]",iKi="[0-9]+",nKi={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"/**",close:" */",notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],indentationRules:{decreaseIndentPattern:new RegExp("^((?!.*?/\\*).*\\*/)?\\s*[\\}\\]].*$"),increaseIndentPattern:new RegExp("^((?!//).)*(\\{([^}\"'`/]*|(\\t|[ ])*//.*)|\\([^)\"'`/]*|\\[[^\\]\"'`/]*)$"),unIndentedLinePattern:new RegExp("^(\\t|[ ])*[ ]\\*[^/]*\\*/\\s*$|^(\\t|[ ])*[ ]\\*/\\s*$|^(\\t|[ ])*[ ]\\*([ ]([^\\*]|\\*(?!/))*)?$")}},rKi={defaultToken:"",tokenPostfix:".tsp",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],symbols:/[=:;<>]+/,keywords:ZGi,namedLiterals:eKi,escapes:'\\\\(u{[0-9A-Fa-f]+}|n|r|t|\\\\|"|\\${)',tokenizer:{root:[{include:"@expression"},{include:"@whitespace"}],stringVerbatim:[{regex:'(|"|"")[^"]',action:{token:"string"}},{regex:`"""${XAi('"')}`,action:{token:"string",next:"@pop"}}],stringLiteral:[{regex:"\\${",action:{token:"delimiter.bracket",next:"@bracketCounting"}},{regex:'[^\\\\"$]+',action:{token:"string"}},{regex:"@escapes",action:{token:"string.escape"}},{regex:"\\\\.",action:{token:"string.escape.invalid"}},{regex:'"',action:{token:"string",next:"@pop"}}],bracketCounting:[{regex:"{",action:{token:"delimiter.bracket",next:"@bracketCounting"}},{regex:"}",action:{token:"delimiter.bracket",next:"@pop"}},{include:"@expression"}],comment:[{regex:"[^\\*]+",action:{token:"comment"}},{regex:"\\*\\/",action:{token:"comment",next:"@pop"}},{regex:"[\\/*]",action:{token:"comment"}}],whitespace:[{regex:tKi},{regex:"\\/\\*",action:{token:"comment",next:"@comment"}},{regex:"\\/\\/.*$",action:{token:"comment"}}],expression:[{regex:'"""',action:{token:"string",next:"@stringVerbatim"}},{regex:`"${XAi('""')}`,action:{token:"string",next:"@stringLiteral"}},{regex:iKi,action:{token:"number"}},{regex:YAi,action:{cases:{"@keywords":{token:"keyword"},"@namedLiterals":{token:"keyword"},"@default":{token:"identifier"}}}},{regex:`@${YAi}`,action:{token:"tag"}},{regex:`#${QGi}`,action:{token:"directive"}}]}}});var tPi={};od(tPi,{conf:()=>oKi,language:()=>sKi});var oKi,sKi,iPi=ti(()=>{oKi={comments:{lineComment:"'",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"],["addhandler","end addhandler"],["class","end class"],["enum","end enum"],["event","end event"],["function","end function"],["get","end get"],["if","end if"],["interface","end interface"],["module","end module"],["namespace","end namespace"],["operator","end operator"],["property","end property"],["raiseevent","end raiseevent"],["removehandler","end removehandler"],["select","end select"],["set","end set"],["structure","end structure"],["sub","end sub"],["synclock","end synclock"],["try","end try"],["while","end while"],["with","end with"],["using","end using"],["do","loop"],["for","next"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]},{open:"<",close:">",notIn:["string","comment"]}],folding:{markers:{start:new RegExp("^\\s*#Region\\b"),end:new RegExp("^\\s*#End Region\\b")}}},sKi={defaultToken:"",tokenPostfix:".vb",ignoreCase:!0,brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.angle",open:"<",close:">"},{token:"keyword.tag-addhandler",open:"addhandler",close:"end addhandler"},{token:"keyword.tag-class",open:"class",close:"end class"},{token:"keyword.tag-enum",open:"enum",close:"end enum"},{token:"keyword.tag-event",open:"event",close:"end event"},{token:"keyword.tag-function",open:"function",close:"end function"},{token:"keyword.tag-get",open:"get",close:"end get"},{token:"keyword.tag-if",open:"if",close:"end if"},{token:"keyword.tag-interface",open:"interface",close:"end interface"},{token:"keyword.tag-module",open:"module",close:"end module"},{token:"keyword.tag-namespace",open:"namespace",close:"end namespace"},{token:"keyword.tag-operator",open:"operator",close:"end operator"},{token:"keyword.tag-property",open:"property",close:"end property"},{token:"keyword.tag-raiseevent",open:"raiseevent",close:"end raiseevent"},{token:"keyword.tag-removehandler",open:"removehandler",close:"end removehandler"},{token:"keyword.tag-select",open:"select",close:"end select"},{token:"keyword.tag-set",open:"set",close:"end set"},{token:"keyword.tag-structure",open:"structure",close:"end structure"},{token:"keyword.tag-sub",open:"sub",close:"end sub"},{token:"keyword.tag-synclock",open:"synclock",close:"end synclock"},{token:"keyword.tag-try",open:"try",close:"end try"},{token:"keyword.tag-while",open:"while",close:"end while"},{token:"keyword.tag-with",open:"with",close:"end with"},{token:"keyword.tag-using",open:"using",close:"end using"},{token:"keyword.tag-do",open:"do",close:"loop"},{token:"keyword.tag-for",open:"for",close:"next"}],keywords:["AddHandler","AddressOf","Alias","And","AndAlso","As","Async","Boolean","ByRef","Byte","ByVal","Call","Case","Catch","CBool","CByte","CChar","CDate","CDbl","CDec","Char","CInt","Class","CLng","CObj","Const","Continue","CSByte","CShort","CSng","CStr","CType","CUInt","CULng","CUShort","Date","Decimal","Declare","Default","Delegate","Dim","DirectCast","Do","Double","Each","Else","ElseIf","End","EndIf","Enum","Erase","Error","Event","Exit","False","Finally","For","Friend","Function","Get","GetType","GetXMLNamespace","Global","GoSub","GoTo","Handles","If","Implements","Imports","In","Inherits","Integer","Interface","Is","IsNot","Let","Lib","Like","Long","Loop","Me","Mod","Module","MustInherit","MustOverride","MyBase","MyClass","NameOf","Namespace","Narrowing","New","Next","Not","Nothing","NotInheritable","NotOverridable","Object","Of","On","Operator","Option","Optional","Or","OrElse","Out","Overloads","Overridable","Overrides","ParamArray","Partial","Private","Property","Protected","Public","RaiseEvent","ReadOnly","ReDim","RemoveHandler","Resume","Return","SByte","Select","Set","Shadows","Shared","Short","Single","Static","Step","Stop","String","Structure","Sub","SyncLock","Then","Throw","To","True","Try","TryCast","TypeOf","UInteger","ULong","UShort","Using","Variant","Wend","When","While","Widening","With","WithEvents","WriteOnly","Xor"],tagwords:["If","Sub","Select","Try","Class","Enum","Function","Get","Interface","Module","Namespace","Operator","Set","Structure","Using","While","With","Do","Loop","For","Next","Property","Continue","AddHandler","RemoveHandler","Event","RaiseEvent","SyncLock"],symbols:/[=>aKi,language:()=>yKi});function g_e(l){let e=[],r=l.split(/\t+|\r+|\n+| +/);for(let o=0;o0&&e.push(r[o]);return e}var aKi,cKi,lKi,uKi,dKi,fKi,_Ki,pKi,mKi,hKi,gKi,nPi,dJe,yKi,oPi=ti(()=>{aKi={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"}]};cKi=g_e("true false"),lKi=g_e(` + alias + break + case + const + const_assert + continue + continuing + default + diagnostic + discard + else + enable + fn + for + if + let + loop + override + requires + return + struct + switch + var + while + `),uKi=g_e(` + NULL + Self + abstract + active + alignas + alignof + as + asm + asm_fragment + async + attribute + auto + await + become + binding_array + cast + catch + class + co_await + co_return + co_yield + coherent + column_major + common + compile + compile_fragment + concept + const_cast + consteval + constexpr + constinit + crate + debugger + decltype + delete + demote + demote_to_helper + do + dynamic_cast + enum + explicit + export + extends + extern + external + fallthrough + filter + final + finally + friend + from + fxgroup + get + goto + groupshared + highp + impl + implements + import + inline + instanceof + interface + layout + lowp + macro + macro_rules + match + mediump + meta + mod + module + move + mut + mutable + namespace + new + nil + noexcept + noinline + nointerpolation + noperspective + null + nullptr + of + operator + package + packoffset + partition + pass + patch + pixelfragment + precise + precision + premerge + priv + protected + pub + public + readonly + ref + regardless + register + reinterpret_cast + require + resource + restrict + self + set + shared + sizeof + smooth + snorm + static + static_assert + static_cast + std + subroutine + super + target + template + this + thread_local + throw + trait + try + type + typedef + typeid + typename + typeof + union + unless + unorm + unsafe + unsized + use + using + varying + virtual + volatile + wgsl + where + with + writeonly + yield + `),dKi=g_e(` + read write read_write + function private workgroup uniform storage + perspective linear flat + center centroid sample + vertex_index instance_index position front_facing frag_depth + local_invocation_id local_invocation_index + global_invocation_id workgroup_id num_workgroups + sample_index sample_mask + rgba8unorm + rgba8snorm + rgba8uint + rgba8sint + rgba16uint + rgba16sint + rgba16float + r32uint + r32sint + r32float + rg32uint + rg32sint + rg32float + rgba32uint + rgba32sint + rgba32float + bgra8unorm +`),fKi=g_e(` + bool + f16 + f32 + i32 + sampler sampler_comparison + texture_depth_2d + texture_depth_2d_array + texture_depth_cube + texture_depth_cube_array + texture_depth_multisampled_2d + texture_external + texture_external + u32 + `),_Ki=g_e(` + array + atomic + mat2x2 + mat2x3 + mat2x4 + mat3x2 + mat3x3 + mat3x4 + mat4x2 + mat4x3 + mat4x4 + ptr + texture_1d + texture_2d + texture_2d_array + texture_3d + texture_cube + texture_cube_array + texture_multisampled_2d + texture_storage_1d + texture_storage_2d + texture_storage_2d_array + texture_storage_3d + vec2 + vec3 + vec4 + `),pKi=g_e(` + vec2i vec3i vec4i + vec2u vec3u vec4u + vec2f vec3f vec4f + vec2h vec3h vec4h + mat2x2f mat2x3f mat2x4f + mat3x2f mat3x3f mat3x4f + mat4x2f mat4x3f mat4x4f + mat2x2h mat2x3h mat2x4h + mat3x2h mat3x3h mat3x4h + mat4x2h mat4x3h mat4x4h + `),mKi=g_e(` + bitcast all any select arrayLength abs acos acosh asin asinh atan atanh atan2 + ceil clamp cos cosh countLeadingZeros countOneBits countTrailingZeros cross + degrees determinant distance dot exp exp2 extractBits faceForward firstLeadingBit + firstTrailingBit floor fma fract frexp inverseBits inverseSqrt ldexp length + log log2 max min mix modf normalize pow quantizeToF16 radians reflect refract + reverseBits round saturate sign sin sinh smoothstep sqrt step tan tanh transpose + trunc dpdx dpdxCoarse dpdxFine dpdy dpdyCoarse dpdyFine fwidth fwidthCoarse fwidthFine + textureDimensions textureGather textureGatherCompare textureLoad textureNumLayers + textureNumLevels textureNumSamples textureSample textureSampleBias textureSampleCompare + textureSampleCompareLevel textureSampleGrad textureSampleLevel textureSampleBaseClampToEdge + textureStore atomicLoad atomicStore atomicAdd atomicSub atomicMax atomicMin + atomicAnd atomicOr atomicXor atomicExchange atomicCompareExchangeWeak pack4x8snorm + pack4x8unorm pack2x16snorm pack2x16unorm pack2x16float unpack4x8snorm unpack4x8unorm + unpack2x16snorm unpack2x16unorm unpack2x16float storageBarrier workgroupBarrier + workgroupUniformLoad +`),hKi=g_e(` + & + && + -> + / + = + == + != + > + >= + < + <= + % + - + -- + + + ++ + | + || + * + << + >> + += + -= + *= + /= + %= + &= + |= + ^= + >>= + <<= + `),gKi=/enable|requires|diagnostic/,nPi=/[_\p{XID_Start}]\p{XID_Continue}*/u,dJe="variable.predefined",yKi={tokenPostfix:".wgsl",defaultToken:"invalid",unicode:!0,atoms:cKi,keywords:lKi,reserved:uKi,predeclared_enums:dKi,predeclared_types:fKi,predeclared_type_generators:_Ki,predeclared_type_aliases:pKi,predeclared_intrinsics:mKi,operators:hKi,symbols:/[!%&*+\-\.\/:;<=>^|_~,]+/,tokenizer:{root:[[gKi,"keyword","@directive"],[nPi,{cases:{"@atoms":dJe,"@keywords":"keyword","@reserved":"invalid","@predeclared_enums":dJe,"@predeclared_types":dJe,"@predeclared_type_generators":dJe,"@predeclared_type_aliases":dJe,"@predeclared_intrinsics":dJe,"@default":"identifier"}}],{include:"@commentOrSpace"},{include:"@numbers"},[/[{}()\[\]]/,"@brackets"],["@","annotation","@attribute"],[/@symbols/,{cases:{"@operators":"operator","@default":"delimiter"}}],[/./,"invalid"]],commentOrSpace:[[/\s+/,"white"],[/\/\*/,"comment","@blockComment"],[/\/\/.*$/,"comment"]],blockComment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@push"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],attribute:[{include:"@commentOrSpace"},[/\w+/,"annotation","@pop"]],directive:[{include:"@commentOrSpace"},[/[()]/,"@brackets"],[/,/,"delimiter"],[nPi,"meta.content"],[/;/,"delimiter","@pop"]],numbers:[[/0[fh]/,"number.float"],[/[1-9][0-9]*[fh]/,"number.float"],[/[0-9]*\.[0-9]+([eE][+-]?[0-9]+)?[fh]?/,"number.float"],[/[0-9]+\.[0-9]*([eE][+-]?[0-9]+)?[fh]?/,"number.float"],[/[0-9]+[eE][+-]?[0-9]+[fh]?/,"number.float"],[/0[xX][0-9a-fA-F]*\.[0-9a-fA-F]+(?:[pP][+-]?[0-9]+[fh]?)?/,"number.hex"],[/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*(?:[pP][+-]?[0-9]+[fh]?)?/,"number.hex"],[/0[xX][0-9a-fA-F]+[pP][+-]?[0-9]+[fh]?/,"number.hex"],[/0[xX][0-9a-fA-F]+[iu]?/,"number.hex"],[/[1-9][0-9]*[iu]?/,"number"],[/0[iu]?/,"number"]]}}});var aPi={};od(aPi,{conf:()=>kKi,language:()=>wKi});var vKi,bKi,SKi,xKi,sPi,CKi,$ci,kKi,wKi,cPi=ti(()=>{OT();vKi=Object.defineProperty,bKi=Object.getOwnPropertyDescriptor,SKi=Object.getOwnPropertyNames,xKi=Object.prototype.hasOwnProperty,sPi=(l,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let c of SKi(e))!xKi.call(l,c)&&c!==r&&vKi(l,c,{get:()=>e[c],enumerable:!(o=bKi(e,c))||o.enumerable});return l},CKi=(l,e,r)=>(sPi(l,e,"default"),r&&sPi(r,e,"default")),$ci={};CKi($ci,Yy);kKi={comments:{blockComment:[""]},brackets:[["<",">"]],autoClosingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],surroundingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],onEnterRules:[{beforeText:new RegExp("<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:$ci.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:$ci.languages.IndentAction.Indent}}]},wKi={defaultToken:"",tokenPostfix:".xml",ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,""],{include:"@whitespace"},[/(<)(@qualifiedName)/,[{token:"delimiter"},{token:"tag",next:"@tag"}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:"delimiter"},{token:"tag"},"",{token:"delimiter"}]],[/(<\?)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/(<\!)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/<\!\[CDATA\[/,{token:"delimiter.cdata",next:"@cdata"}],[/&\w+;/,"string.escape"]],cdata:[[/[^\]]+/,""],[/\]\]>/,{token:"delimiter.cdata",next:"@pop"}],[/\]/,""]],tag:[[/[ \t\r\n]+/,""],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,["attribute.name","","attribute.value"]],[/@qualifiedName/,"attribute.name"],[/\?>/,{token:"delimiter",next:"@pop"}],[/(\/)(>)/,[{token:"tag"},{token:"delimiter",next:"@pop"}]],[/>/,{token:"delimiter",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[//,{token:"comment",next:"@pop"}],[/=0&&w.resolve(Nd.None)}return r}};Smi=OFi([vht(5,wqe)],Smi);var xmi=class extends tn{constructor(e,r,o,c){super(),this._languageFeatureService=e,this._clipboardService=r,this._suggestMemoryService=o,this._editorService=c,this._store.add(e.inlineCompletionsProvider.register("*",this))}async provideInlineCompletions(e,r,o,c){var d;if(o.selectedSuggestionInfo)return;let h;for(let Z of this._editorService.listCodeEditors())if(Z.getModel()===e){h=Z;break}if(!h)return;let b=h.getOption(89);if(uoe.isAllOff(b))return;e.tokenization.tokenizeIfCheap(r.lineNumber);let w=e.tokenization.getLineTokens(r.lineNumber),N=w.getStandardTokenType(w.findTokenIndexAtOffset(Math.max(r.column-1-1,0)));if(uoe.valueFor(b,N)!=="inline")return;let L=e.getWordAtPosition(r),B;if(L?.word||(B=this._getTriggerCharacterInfo(e,r)),!L?.word&&!B||(L||(L=e.getWordUntilPosition(r)),L.endColumn!==r.column))return;let F,Y=e.getValueInRange(new Zt(r.lineNumber,1,r.lineNumber,r.column));if(!B&&(!((d=this._lastResult)===null||d===void 0)&&d.canBeReused(e,r.lineNumber,L))){let Z=new Rmt(Y,r.column-this._lastResult.word.endColumn);this._lastResult.completionModel.lineContext=Z,this._lastResult.acquire(),F=this._lastResult}else{let Z=await kmt(this._languageFeatureService.completionProvider,e,r,new I_e(void 0,Dqe.createSuggestFilter(h).itemKind,B?.providers),B&&{triggerKind:1,triggerCharacter:B.ch},c),ee;Z.needsClipboard&&(ee=await this._clipboardService.readText());let Te=new Eqe(Z.items,r.column,new Rmt(Y,0),qxe.None,h.getOption(118),h.getOption(112),{boostFullMatch:!1,firstMatchCanBeWeak:!1},ee);F=new Smi(e,r.lineNumber,L,Te,Z,this._suggestMemoryService)}return this._lastResult=F,F}handleItemDidShow(e,r){r.completion.resolve(Nd.None)}freeInlineCompletions(e){e.release()}_getTriggerCharacterInfo(e,r){var o;let c=e.getValueInRange(Zt.fromPositions({lineNumber:r.lineNumber,column:r.column-1},r)),d=new Set;for(let h of this._languageFeatureService.completionProvider.all(e))!((o=h.triggerCharacters)===null||o===void 0)&&o.includes(c)&&d.add(h);if(d.size!==0)return{providers:d,ch:c}}};xmi=OFi([vht(0,xa),vht(1,c8),vht(2,wqe),vht(3,nf)],xmi);$re(xmi);zO();vf();ya();var Cmi=class extends Ca{constructor(){super({id:"editor.action.forceRetokenize",label:ce("forceRetokenize","Developer: Force Retokenize"),alias:"Developer: Force Retokenize",precondition:void 0})}run(e,r){if(!r.hasModel())return;let o=r.getModel();o.tokenization.resetTokenization();let c=new vv;o.tokenization.forceTokenization(o.getLineCount()),c.stop(),console.log(`tokenization took ${c.elapsed()}`)}};Qo(Cmi);gA();AAt();ya();My();var F5t=class l extends IT{constructor(){super({id:l.ID,title:Sd({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:Sd("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(){let r=!Tfe.getTabFocusMode();Tfe.setTabFocusMode(r),r?Zk(ce("toggle.tabMovesFocus.on","Pressing Tab will now move focus to the next focusable element")):Zk(ce("toggle.tabMovesFocus.off","Pressing Tab will now insert the tab character"))}};F5t.ID="editor.action.toggleTabFocusMode";Vg(F5t);Ud();uy();d3();co();X_();Mu();vf();TT();Ww();iei();r_e();FD();Tni();nc();zV();xE();co();Gfe();bl();nc();n$();lA();FR();xc();co();n8();JI();Jfe();var Gtn=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},FFi=function(l,e){return function(r,o){e(r,o,l)}},M5t=class extends tn{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,r,o={},c,d){var h,b;super(),this._link=r,this._hoverService=c,this._enabled=!0,this.el=Ro(e,qo("a.monaco-link",{tabIndex:(h=r.tabIndex)!==null&&h!==void 0?h:0,href:r.href},r.label)),this.hoverDelegate=(b=o.hoverDelegate)!==null&&b!==void 0?b:AS("mouse"),this.setTooltip(r.title),this.el.setAttribute("role","button");let w=this._register(new L_(this.el,"click")),N=this._register(new L_(this.el,"keypress")),L=gs.chain(N.event,Y=>Y.map(Z=>new Jp(Z)).filter(Z=>Z.keyCode===3)),B=this._register(new L_(this.el,pg.Tap)).event;this._register(d1.addTarget(this.el));let F=gs.any(w.event,L,B);this._register(F(Y=>{this.enabled&&(D_.stop(Y,!0),o?.opener?o.opener(this._link.href):d.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.setupUpdatableHover(this.hoverDelegate,this.el,e)):this.hover&&this.hover.update(e)}};M5t=Gtn([FFi(3,t8),FFi(4,NC)],M5t);WB();bv();var MFi=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},RFi=function(l,e){return function(r,o){e(r,o,l)}},Ktn=26,R5t=class extends tn{constructor(e,r){super(),this._editor=e,this.instantiationService=r,this.banner=this._register(this.instantiationService.createInstance(kmi))}hide(){this._editor.setBanner(null,0),this.banner.clear()}show(e){this.banner.show({...e,onClose:()=>{var r;this.hide(),(r=e.onClose)===null||r===void 0||r.call(e)}}),this._editor.setBanner(this.banner.element,Ktn)}};R5t=MFi([RFi(1,Pa)],R5t);var kmi=class extends tn{constructor(e){super(),this.instantiationService=e,this.markdownRenderer=this.instantiationService.createInstance(o8,{}),this.element=qo("div.editor-banner"),this.element.tabIndex=0}getAriaLabel(e){if(e.ariaLabel)return e.ariaLabel;if(typeof e.message=="string")return e.message}getBannerMessage(e){if(typeof e=="string"){let r=qo("span");return r.innerText=e,r}return this.markdownRenderer.render(e).element}clear(){DS(this.element)}show(e){DS(this.element);let r=this.getAriaLabel(e);r&&this.element.setAttribute("aria-label",r);let o=Ro(this.element,qo("div.icon-container"));o.setAttribute("aria-hidden","true"),e.icon&&o.appendChild(qo(`div${sl.asCSSSelector(e.icon)}`));let c=Ro(this.element,qo("div.message-container"));if(c.setAttribute("aria-hidden","true"),c.appendChild(this.getBannerMessage(e.message)),this.messageActionsContainer=Ro(this.element,qo("div.message-actions-container")),e.actions)for(let h of e.actions)this._register(this.instantiationService.createInstance(M5t,this.messageActionsContainer,{...h,tabIndex:-1},{}));let d=Ro(this.element,qo("div.action-container"));this.actionBar=this._register(new Vw(d)),this.actionBar.push(this._register(new jw("banner.close","Close Banner",sl.asClassName(s8t),!0,()=>{typeof e.onClose=="function"&&e.onClose()})),{icon:!0,label:!1}),this.actionBar.setFocusable(!1)}};kmi=MFi([RFi(0,Pa)],kmi);ya();_y();bl();n8();a8();WB();qri();var Pmi=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},Vqe=function(l,e){return function(r,o){e(r,o,l)}},Xtn=py("extensions-warning-message",_s.warning,ce("warningIcon","Icon shown with a warning message in the extensions editor.")),Hqe=class extends tn{constructor(e,r,o,c){super(),this._editor=e,this._editorWorkerService=r,this._workspaceTrustService=o,this._highlighter=null,this._bannerClosed=!1,this._updateState=d=>{if(d&&d.hasMore){if(this._bannerClosed)return;let h=Math.max(d.ambiguousCharacterCount,d.nonBasicAsciiCharacterCount,d.invisibleCharacterCount),b;if(d.nonBasicAsciiCharacterCount>=h)b={message:ce("unicodeHighlighting.thisDocumentHasManyNonBasicAsciiUnicodeCharacters","This document contains many non-basic ASCII unicode characters"),command:new qqe};else if(d.ambiguousCharacterCount>=h)b={message:ce("unicodeHighlighting.thisDocumentHasManyAmbiguousUnicodeCharacters","This document contains many ambiguous unicode characters"),command:new rCe};else if(d.invisibleCharacterCount>=h)b={message:ce("unicodeHighlighting.thisDocumentHasManyInvisibleUnicodeCharacters","This document contains many invisible unicode characters"),command:new Jqe};else throw new Error("Unreachable");this._bannerController.show({id:"unicodeHighlightBanner",message:b.message,icon:Xtn,actions:[{label:b.command.shortLabel,href:`command:${b.command.id}`}],onClose:()=>{this._bannerClosed=!0}})}else this._bannerController.hide()},this._bannerController=this._register(c.createInstance(R5t,e)),this._register(this._editor.onDidChangeModel(()=>{this._bannerClosed=!1,this._updateHighlighter()})),this._options=e.getOption(125),this._register(o.onDidChangeTrust(d=>{this._updateHighlighter()})),this._register(e.onDidChangeConfiguration(d=>{d.hasChanged(125)&&(this._options=e.getOption(125),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;let e=Ytn(this._workspaceTrustService.isWorkspaceTrusted(),this._options);if([e.nonBasicASCII,e.ambiguousCharacters,e.invisibleCharacters].every(o=>o===!1))return;let r={nonBasicASCII:e.nonBasicASCII,ambiguousCharacters:e.ambiguousCharacters,invisibleCharacters:e.invisibleCharacters,includeComments:e.includeComments,includeStrings:e.includeStrings,allowedCodePoints:Object.keys(e.allowedCharacters).map(o=>o.codePointAt(0)),allowedLocales:Object.keys(e.allowedLocales).map(o=>o==="_os"?new Intl.NumberFormat().resolvedOptions().locale:o==="_vscode"?mgi:o)};this._editorWorkerService.canComputeUnicodeHighlights(this._editor.getModel().uri)?this._highlighter=new Tmi(this._editor,r,this._updateState,this._editorWorkerService):this._highlighter=new Emi(this._editor,r,this._updateState)}getDecorationInfo(e){return this._highlighter?this._highlighter.getDecorationInfo(e):null}};Hqe.ID="editor.contrib.unicodeHighlighter";Hqe=Pmi([Vqe(1,kA),Vqe(2,v3t),Vqe(3,Pa)],Hqe);function Ytn(l,e){return{nonBasicASCII:e.nonBasicASCII===bR?!l:e.nonBasicASCII,ambiguousCharacters:e.ambiguousCharacters,invisibleCharacters:e.invisibleCharacters,includeComments:e.includeComments===bR?!l:e.includeComments,includeStrings:e.includeStrings===bR?!l:e.includeStrings,allowedCharacters:e.allowedCharacters,allowedLocales:e.allowedLocales}}var Tmi=class extends tn{constructor(e,r,o,c){super(),this._editor=e,this._options=r,this._updateState=o,this._editorWorkerService=c,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new p_(()=>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()){this._decorations.clear();return}let e=this._model.getVersionId();this._editorWorkerService.computedUnicodeHighlights(this._model.uri,this._options).then(r=>{if(this._model.isDisposed()||this._model.getVersionId()!==e)return;this._updateState(r);let o=[];if(!r.hasMore)for(let c of r.ranges)o.push({range:c,options:Uqe.instance.getDecorationFromOptions(this._options)});this._decorations.set(o)})}getDecorationInfo(e){if(!this._decorations.has(e))return null;let r=this._editor.getModel();if(!rLt(r,e))return null;let o=r.getValueInRange(e.range);return{reason:jFi(o,this._options),inComment:oLt(r,e),inString:sLt(r,e)}}};Tmi=Pmi([Vqe(3,kA)],Tmi);var Emi=class extends tn{constructor(e,r,o){super(),this._editor=e,this._options=r,this._updateState=o,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new p_(()=>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()){this._decorations.clear();return}let e=this._editor.getVisibleRanges(),r=[],o={ranges:[],ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0,hasMore:!1};for(let c of e){let d=c6e.computeUnicodeHighlights(this._model,this._options,c);for(let h of d.ranges)o.ranges.push(h);o.ambiguousCharacterCount+=o.ambiguousCharacterCount,o.invisibleCharacterCount+=o.invisibleCharacterCount,o.nonBasicAsciiCharacterCount+=o.nonBasicAsciiCharacterCount,o.hasMore=o.hasMore||d.hasMore}if(!o.hasMore)for(let c of o.ranges)r.push({range:c,options:Uqe.instance.getDecorationFromOptions(this._options)});this._updateState(o),this._decorations.set(r)}getDecorationInfo(e){if(!this._decorations.has(e))return null;let r=this._editor.getModel(),o=r.getValueInRange(e.range);return rLt(r,e)?{reason:jFi(o,this._options),inComment:oLt(r,e),inString:sLt(r,e)}:null}},BFi=ce("unicodeHighlight.configureUnicodeHighlightOptions","Configure Unicode Highlight Options"),Dmi=class{constructor(e,r,o){this._editor=e,this._languageService=r,this._openerService=o,this.hoverOrdinal=5}computeSync(e,r){if(!this._editor.hasModel()||e.type!==1)return[];let o=this._editor.getModel(),c=this._editor.getContribution(Hqe.ID);if(!c)return[];let d=[],h=new Set,b=300;for(let w of r){let N=c.getDecorationInfo(w);if(!N)continue;let B=o.getValueInRange(w.range).codePointAt(0),F=wmi(B),Y;switch(N.reason.kind){case 0:{Lne(N.reason.confusableWith)?Y=ce("unicodeHighlight.characterIsAmbiguousASCII","The character {0} could be confused with the ASCII character {1}, which is more common in source code.",F,wmi(N.reason.confusableWith.codePointAt(0))):Y=ce("unicodeHighlight.characterIsAmbiguous","The character {0} could be confused with the character {1}, which is more common in source code.",F,wmi(N.reason.confusableWith.codePointAt(0)));break}case 1:Y=ce("unicodeHighlight.characterIsInvisible","The character {0} is invisible.",F);break;case 2:Y=ce("unicodeHighlight.characterIsNonBasicAscii","The character {0} is not a basic ASCII character.",F);break}if(h.has(Y))continue;h.add(Y);let Z={codePoint:B,reason:N.reason,inComment:N.inComment,inString:N.inString},ee=ce("unicodeHighlight.adjustSettings","Adjust settings"),Te=`command:${bht.ID}?${encodeURIComponent(JSON.stringify(Z))}`,Je=new Hx("",!0).appendMarkdown(Y).appendText(" ").appendLink(Te,ee,BFi);d.push(new YR(this,w.range,[Je],!1,b++))}return d}renderHoverParts(e,r){return VOi(e,r,this._editor,this._languageService,this._openerService)}};Dmi=Pmi([Vqe(1,km),Vqe(2,NC)],Dmi);function Imi(l){return`U+${l.toString(16).padStart(4,"0")}`}function wmi(l){let e=`\`${Imi(l)}\``;return Ane.isInvisibleCharacter(l)||(e+=` "${`${Qtn(l)}`}"`),e}function Qtn(l){return l===96?"`` ` ``":"`"+String.fromCodePoint(l)+"`"}function jFi(l,e){return c6e.computeUnicodeHighlightReason(l,e)}var Uqe=class{constructor(){this.map=new Map}getDecorationFromOptions(e){return this.getDecoration(!e.includeComments,!e.includeStrings)}getDecoration(e,r){let o=`${e}${r}`,c=this.map.get(o);return c||(c=id.createDynamic({description:"unicode-highlight",stickiness:1,className:"unicode-highlight",showIfCollapsed:!0,overviewRuler:null,minimap:null,hideInCommentTokens:e,hideInStringTokens:r}),this.map.set(o,c)),c}};Uqe.instance=new Uqe;var Nmi=class extends Ca{constructor(){super({id:rCe.ID,label:ce("action.unicodeHighlight.disableHighlightingInComments","Disable highlighting of characters in comments"),alias:"Disable highlighting of characters in comments",precondition:void 0}),this.shortLabel=ce("unicodeHighlight.disableHighlightingInComments.shortLabel","Disable Highlight In Comments")}async run(e,r,o){let c=e?.get(_u);c&&this.runAction(c)}async runAction(e){await e.updateValue(WO.includeComments,!1,2)}},Ami=class extends Ca{constructor(){super({id:rCe.ID,label:ce("action.unicodeHighlight.disableHighlightingInStrings","Disable highlighting of characters in strings"),alias:"Disable highlighting of characters in strings",precondition:void 0}),this.shortLabel=ce("unicodeHighlight.disableHighlightingInStrings.shortLabel","Disable Highlight In Strings")}async run(e,r,o){let c=e?.get(_u);c&&this.runAction(c)}async runAction(e){await e.updateValue(WO.includeStrings,!1,2)}},rCe=class l extends Ca{constructor(){super({id:l.ID,label:ce("action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters","Disable highlighting of ambiguous characters"),alias:"Disable highlighting of ambiguous characters",precondition:void 0}),this.shortLabel=ce("unicodeHighlight.disableHighlightingOfAmbiguousCharacters.shortLabel","Disable Ambiguous Highlight")}async run(e,r,o){let c=e?.get(_u);c&&this.runAction(c)}async runAction(e){await e.updateValue(WO.ambiguousCharacters,!1,2)}};rCe.ID="editor.action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters";var Jqe=class l extends Ca{constructor(){super({id:l.ID,label:ce("action.unicodeHighlight.disableHighlightingOfInvisibleCharacters","Disable highlighting of invisible characters"),alias:"Disable highlighting of invisible characters",precondition:void 0}),this.shortLabel=ce("unicodeHighlight.disableHighlightingOfInvisibleCharacters.shortLabel","Disable Invisible Highlight")}async run(e,r,o){let c=e?.get(_u);c&&this.runAction(c)}async runAction(e){await e.updateValue(WO.invisibleCharacters,!1,2)}};Jqe.ID="editor.action.unicodeHighlight.disableHighlightingOfInvisibleCharacters";var qqe=class l extends Ca{constructor(){super({id:l.ID,label:ce("action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters","Disable highlighting of non basic ASCII characters"),alias:"Disable highlighting of non basic ASCII characters",precondition:void 0}),this.shortLabel=ce("unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters.shortLabel","Disable Non ASCII Highlight")}async run(e,r,o){let c=e?.get(_u);c&&this.runAction(c)}async runAction(e){await e.updateValue(WO.nonBasicASCII,!1,2)}};qqe.ID="editor.action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters";var bht=class l extends Ca{constructor(){super({id:l.ID,label:ce("action.unicodeHighlight.showExcludeOptions","Show Exclude Options"),alias:"Show Exclude Options",precondition:void 0})}async run(e,r,o){let{codePoint:c,reason:d,inString:h,inComment:b}=o,w=String.fromCodePoint(c),N=e.get(S2),L=e.get(_u);function B(Z){return Ane.isInvisibleCharacter(Z)?ce("unicodeHighlight.excludeInvisibleCharFromBeingHighlighted","Exclude {0} (invisible character) from being highlighted",Imi(Z)):ce("unicodeHighlight.excludeCharFromBeingHighlighted","Exclude {0} from being highlighted",`${Imi(Z)} "${w}"`)}let F=[];if(d.kind===0)for(let Z of d.notAmbiguousInLocales)F.push({label:ce("unicodeHighlight.allowCommonCharactersInLanguage",'Allow unicode characters that are more common in the language "{0}".',Z),run:async()=>{ein(L,[Z])}});if(F.push({label:B(c),run:()=>Ztn(L,[c])}),b){let Z=new Nmi;F.push({label:Z.label,run:async()=>Z.runAction(L)})}else if(h){let Z=new Ami;F.push({label:Z.label,run:async()=>Z.runAction(L)})}if(d.kind===0){let Z=new rCe;F.push({label:Z.label,run:async()=>Z.runAction(L)})}else if(d.kind===1){let Z=new Jqe;F.push({label:Z.label,run:async()=>Z.runAction(L)})}else if(d.kind===2){let Z=new qqe;F.push({label:Z.label,run:async()=>Z.runAction(L)})}else tin(d);let Y=await N.pick(F,{title:BFi});Y&&await Y.run()}};bht.ID="editor.action.unicodeHighlight.showExcludeOptions";async function Ztn(l,e){let r=l.getValue(WO.allowedCharacters),o;typeof r=="object"&&r?o=r:o={};for(let c of e)o[String.fromCodePoint(c)]=!0;await l.updateValue(WO.allowedCharacters,o,2)}async function ein(l,e){var r;let o=(r=l.inspect(WO.allowedLocales).user)===null||r===void 0?void 0:r.value,c;typeof o=="object"&&o?c=Object.assign({},o):c={};for(let d of e)c[d]=!0;await l.updateValue(WO.allowedLocales,c,2)}function tin(l){throw new Error(`Unexpected value: ${l}`)}Qo(rCe);Qo(Jqe);Qo(qqe);Qo(bht);ku(Hqe.ID,Hqe,1);XR.register(Dmi);co();VP();vf();IC();ya();YHe();var iin=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},WFi=function(l,e){return function(r,o){e(r,o,l)}},zFi="ignoreUnusualLineTerminators";function nin(l,e,r){l.setModelProperty(e.uri,zFi,r)}function rin(l,e){return l.getModelProperty(e.uri,zFi)}var Sht=class extends tn{constructor(e,r,o){super(),this._editor=e,this._dialogService=r,this._codeEditorService=o,this._isPresentingDialog=!1,this._config=this._editor.getOption(126),this._register(this._editor.onDidChangeConfiguration(c=>{c.hasChanged(126)&&(this._config=this._editor.getOption(126),this._checkForUnusualLineTerminators())})),this._register(this._editor.onDidChangeModel(()=>{this._checkForUnusualLineTerminators()})),this._register(this._editor.onDidChangeModelContent(c=>{c.isUndoing||this._checkForUnusualLineTerminators()})),this._checkForUnusualLineTerminators()}async _checkForUnusualLineTerminators(){if(this._config==="off"||!this._editor.hasModel())return;let e=this._editor.getModel();if(!e.mightContainUnusualLineTerminators()||rin(this._codeEditorService,e)===!0||this._editor.getOption(91))return;if(this._config==="auto"){e.removeUnusualLineTerminators(this._editor.getSelections());return}if(this._isPresentingDialog)return;let o;try{this._isPresentingDialog=!0,o=await this._dialogService.confirm({title:ce("unusualLineTerminators.title","Unusual Line Terminators"),message:ce("unusualLineTerminators.message","Detected unusual line terminators"),detail:ce("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`.",SA(e.uri)),primaryButton:ce({key:"unusualLineTerminators.fix",comment:["&& denotes a mnemonic"]},"&&Remove Unusual Line Terminators"),cancelButton:ce("unusualLineTerminators.ignore","Ignore")})}finally{this._isPresentingDialog=!1}if(!o.confirmed){nin(this._codeEditorService,e,!0);return}e.removeUnusualLineTerminators(this._editor.getSelections())}};Sht.ID="editor.contrib.unusualLineTerminatorsDetector";Sht=iin([WFi(1,vre),WFi(2,nf)],Sht);ku(Sht.ID,Sht,1);ya();sd();gA();Ud();Sh();Du();co();uJe();vf();IC();Xa();$h();dy();MD();wm();hd();RP();pA();iri();var VFi=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},B5t=function(l,e){return function(r,o){e(r,o,l)}},DE,Lmi,z5t=new va("hasWordHighlights",!1);function HFi(l,e,r,o){let c=l.ordered(e);return gut(c.map(d=>()=>Promise.resolve(d.provideDocumentHighlights(e,r,o)).then(void 0,ch)),CS).then(d=>{if(d){let h=new nx;return h.set(e.uri,d),h}return new nx})}function oin(l,e,r,o,c,d){let h=l.ordered(e);return gut(h.map(b=>()=>{let w=d.filter(N=>sAt(N)).filter(N=>Ift(b.selector,N.uri,N.getLanguageId(),!0,void 0,void 0)>0);return Promise.resolve(b.provideMultiDocumentHighlights(e,r,w,c)).then(void 0,ch)}),b=>b instanceof nx&&b.size>0)}var xht=class{constructor(e,r,o){this._model=e,this._selection=r,this._wordSeparators=o,this._wordRange=this._getCurrentWordRange(e,r),this._result=null}get result(){return this._result||(this._result=fy(e=>this._compute(this._model,this._selection,this._wordSeparators,e))),this._result}_getCurrentWordRange(e,r){let o=e.getWordAtPosition(r.getPosition());return o?new Zt(r.startLineNumber,o.startColumn,r.startLineNumber,o.endColumn):null}isValid(e,r,o){let c=r.startLineNumber,d=r.startColumn,h=r.endColumn,b=this._getCurrentWordRange(e,r),w=!!(this._wordRange&&this._wordRange.equalsRange(b));for(let N=0,L=o.length;!w&&N=h&&(w=!0)}return w}cancel(){this.result.cancel()}},Omi=class extends xht{constructor(e,r,o,c){super(e,r,o),this._providers=c}_compute(e,r,o,c){return HFi(this._providers,e,r.getPosition(),c).then(d=>d||new nx)}},Fmi=class extends xht{constructor(e,r,o,c,d){super(e,r,o),this._providers=c,this._otherModels=d}_compute(e,r,o,c){return oin(this._providers,e,r.getPosition(),o,c,this._otherModels).then(d=>d||new nx)}},j5t=class extends xht{constructor(e,r,o,c,d){super(e,r,c),this._otherModels=d,this._selectionIsEmpty=r.isEmpty(),this._word=o}_compute(e,r,o,c){return HO(250,c).then(()=>{let d=new nx,h;if(this._word?h=this._word:h=e.getWordAtPosition(r.getPosition()),!h)return new nx;let b=[e,...this._otherModels];for(let w of b){if(w.isDisposed())continue;let L=w.findMatches(h.word,!0,!1,!0,o,!1).map(B=>({range:B.range,kind:B4e.Text}));L&&d.set(w.uri,L)}return d})}isValid(e,r,o){let c=r.isEmpty();return this._selectionIsEmpty!==c?!1:super.isValid(e,r,o)}};function sin(l,e,r,o,c){return l.has(e)?new Omi(e,r,c,l):new j5t(e,r,o,c,[])}function ain(l,e,r,o,c,d){return l.has(e)?new Fmi(e,r,c,l,d):new j5t(e,r,o,c,d)}NR("_executeDocumentHighlights",async(l,e,r)=>{let o=l.get(xa),c=await HFi(o.documentHighlightProvider,e,r,Nd.None);return c?.get(e.uri)});var Cht=DE=class{constructor(e,r,o,c,d){this.toUnhook=new Fr,this.workerRequestTokenId=0,this.workerRequestCompleted=!1,this.workerRequestValue=new nx,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.editor=e,this.providers=r,this.multiDocumentProviders=o,this.codeEditorService=d,this._hasWordHighlights=z5t.bindTo(c),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getOption(81),this.model=this.editor.getModel(),this.toUnhook.add(e.onDidChangeCursorPosition(h=>{this._ignorePositionChangeEvent||this.occurrencesHighlight!=="off"&&this._onPositionChanged(h)})),this.toUnhook.add(e.onDidFocusEditorText(h=>{this.occurrencesHighlight!=="off"&&(this.workerRequest||this._run())})),this.toUnhook.add(e.onDidChangeModelContent(h=>{this._stopAll()})),this.toUnhook.add(e.onDidChangeModel(h=>{!h.newModelUrl&&h.oldModelUrl?this._stopSingular():DE.query&&this._run()})),this.toUnhook.add(e.onDidChangeConfiguration(h=>{let b=this.editor.getOption(81);this.occurrencesHighlight!==b&&(this.occurrencesHighlight=b,this._stopAll())})),this.decorations=this.editor.createDecorationsCollection(),this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,DE.query&&this._run()}hasDecorations(){return this.decorations.length>0}restore(){this.occurrencesHighlight!=="off"&&this._run()}_getSortedHighlights(){return this.decorations.getRanges().sort(Zt.compareRangesUsingStarts)}moveNext(){let e=this._getSortedHighlights(),o=(e.findIndex(d=>d.containsPosition(this.editor.getPosition()))+1)%e.length,c=e[o];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(c.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(c);let d=this._getWord();if(d){let h=this.editor.getModel().getLineContent(c.startLineNumber);Zk(`${h}, ${o+1} of ${e.length} for '${d.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}moveBack(){let e=this._getSortedHighlights(),o=(e.findIndex(d=>d.containsPosition(this.editor.getPosition()))-1+e.length)%e.length,c=e[o];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(c.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(c);let d=this._getWord();if(d){let h=this.editor.getModel().getLineContent(c.startLineNumber);Zk(`${h}, ${o+1} of ${e.length} for '${d.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}_removeSingleDecorations(){if(!this.editor.hasModel())return;let e=DE.storedDecorations.get(this.editor.getModel().uri);e&&(this.editor.removeDecorations(e),DE.storedDecorations.delete(this.editor.getModel().uri),this.decorations.length>0&&(this.decorations.clear(),this._hasWordHighlights.set(!1)))}_removeAllDecorations(){let e=this.codeEditorService.listCodeEditors(),r=[];for(let o of e){if(!o.hasModel())continue;let c=DE.storedDecorations.get(o.getModel().uri);if(!c)continue;o.removeDecorations(c),r.push(o.getModel().uri);let d=B_e.get(o);d?.wordHighlighter&&d.wordHighlighter.decorations.length>0&&(d.wordHighlighter.decorations.clear(),d.wordHighlighter.workerRequest=null,d.wordHighlighter._hasWordHighlights.set(!1))}for(let o of r)DE.storedDecorations.delete(o)}_stopSingular(){var e,r,o,c;this._removeSingleDecorations(),this.editor.hasTextFocus()&&(((e=this.editor.getModel())===null||e===void 0?void 0:e.uri.scheme)!==Vu.vscodeNotebookCell&&((o=(r=DE.query)===null||r===void 0?void 0:r.modelInfo)===null||o===void 0?void 0:o.model.uri.scheme)!==Vu.vscodeNotebookCell?(DE.query=null,this._run()):!((c=DE.query)===null||c===void 0)&&c.modelInfo&&(DE.query.modelInfo=null)),this.renderDecorationsTimer!==-1&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),this.workerRequest!==null&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)}_stopAll(){this._removeAllDecorations(),this.renderDecorationsTimer!==-1&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),this.workerRequest!==null&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)}_onPositionChanged(e){var r;if(this.occurrencesHighlight==="off"){this._stopAll();return}if(e.reason!==3&&((r=this.editor.getModel())===null||r===void 0?void 0:r.uri.scheme)!==Vu.vscodeNotebookCell){this._stopAll();return}this._run()}_getWord(){let e=this.editor.getSelection(),r=e.startLineNumber,o=e.startColumn;return this.model.isDisposed()?null:this.model.getWordAtPosition({lineNumber:r,column:o})}getOtherModelsToHighlight(e){if(!e)return[];if(e.uri.scheme===Vu.vscodeNotebookCell){let d=[],h=this.codeEditorService.listCodeEditors();for(let b of h){let w=b.getModel();w&&w!==e&&w.uri.scheme===Vu.vscodeNotebookCell&&d.push(w)}return d}let o=[],c=this.codeEditorService.listCodeEditors();for(let d of c){if(!npt(d))continue;let h=d.getModel();h&&e===h.modified&&o.push(h.modified)}if(o.length)return o;if(this.occurrencesHighlight==="singleFile")return[];for(let d of c){let h=d.getModel();h&&h!==e&&o.push(h)}return o}_run(){var e;let r;if(this.editor.hasTextFocus()){let c=this.editor.getSelection();if(!c||c.startLineNumber!==c.endLineNumber){DE.query=null,this._stopAll();return}let d=c.startColumn,h=c.endColumn,b=this._getWord();if(!b||b.startColumn>d||b.endColumn{c===this.workerRequestTokenId&&(this.workerRequestCompleted=!0,this.workerRequestValue=h||[],this._beginRenderDecorations())},dl)}}computeWithModel(e,r,o,c){return c.length?ain(this.multiDocumentProviders,e,r,o,this.editor.getOption(131),c):sin(this.providers,e,r,o,this.editor.getOption(131))}_beginRenderDecorations(){let e=new Date().getTime(),r=this.lastCursorPositionChangeTime+250;e>=r?(this.renderDecorationsTimer=-1,this.renderDecorations()):this.renderDecorationsTimer=setTimeout(()=>{this.renderDecorations()},r-e)}renderDecorations(){var e,r,o;this.renderDecorationsTimer=-1;let c=this.codeEditorService.listCodeEditors();for(let d of c){let h=B_e.get(d);if(!h)continue;let b=[],w=(e=d.getModel())===null||e===void 0?void 0:e.uri;if(w&&this.workerRequestValue.has(w)){let N=DE.storedDecorations.get(w),L=this.workerRequestValue.get(w);if(L)for(let F of L)F.range&&b.push({range:F.range,options:pFi(F.kind)});let B=[];d.changeDecorations(F=>{B=F.deltaDecorations(N??[],b)}),DE.storedDecorations=DE.storedDecorations.set(w,B),b.length>0&&((r=h.wordHighlighter)===null||r===void 0||r.decorations.set(b),(o=h.wordHighlighter)===null||o===void 0||o._hasWordHighlights.set(!0))}}}dispose(){this._stopSingular(),this.toUnhook.dispose()}};Cht.storedDecorations=new nx;Cht.query=null;Cht=DE=VFi([B5t(4,nf)],Cht);var B_e=Lmi=class extends tn{static get(e){return e.getContribution(Lmi.ID)}constructor(e,r,o,c){super(),this._wordHighlighter=null;let d=()=>{e.hasModel()&&!e.getModel().isTooLargeForTokenization()&&(this._wordHighlighter=new Cht(e,o.documentHighlightProvider,o.multiDocumentHighlightProvider,r,c))};this._register(e.onDidChangeModel(h=>{this._wordHighlighter&&(this._wordHighlighter.dispose(),this._wordHighlighter=null),d()})),d()}get wordHighlighter(){return this._wordHighlighter}saveViewState(){return!!(this._wordHighlighter&&this._wordHighlighter.hasDecorations())}moveNext(){var e;(e=this._wordHighlighter)===null||e===void 0||e.moveNext()}moveBack(){var e;(e=this._wordHighlighter)===null||e===void 0||e.moveBack()}restoreViewState(e){this._wordHighlighter&&e&&this._wordHighlighter.restore()}dispose(){this._wordHighlighter&&(this._wordHighlighter.dispose(),this._wordHighlighter=null),super.dispose()}};B_e.ID="editor.contrib.wordHighlighter";B_e=Lmi=VFi([B5t(1,Ec),B5t(2,xa),B5t(3,nf)],B_e);var W5t=class extends Ca{constructor(e,r){super(r),this._isNext=e}run(e,r){let o=B_e.get(r);o&&(this._isNext?o.moveNext():o.moveBack())}},Mmi=class extends W5t{constructor(){super(!0,{id:"editor.action.wordHighlight.next",label:ce("wordHighlight.next.label","Go to Next Symbol Highlight"),alias:"Go to Next Symbol Highlight",precondition:z5t,kbOpts:{kbExpr:Qi.editorTextFocus,primary:65,weight:100}})}},Rmi=class extends W5t{constructor(){super(!1,{id:"editor.action.wordHighlight.prev",label:ce("wordHighlight.previous.label","Go to Previous Symbol Highlight"),alias:"Go to Previous Symbol Highlight",precondition:z5t,kbOpts:{kbExpr:Qi.editorTextFocus,primary:1089,weight:100}})}},Bmi=class extends Ca{constructor(){super({id:"editor.action.wordHighlight.trigger",label:ce("wordHighlight.trigger.label","Trigger Symbol Highlight"),alias:"Trigger Symbol Highlight",precondition:z5t.toNegated(),kbOpts:{kbExpr:Qi.editorTextFocus,primary:0,weight:100}})}run(e,r,o){let c=B_e.get(r);c&&c.restoreViewState(!0)}};ku(B_e.ID,B_e,0);Qo(Mmi);Qo(Rmi);Qo(Bmi);vf();j6e();TT();LV();Ddt();EVe();Iu();Xa();j0();$h();ix();ya();KO();hd();XUe();var L3e=class extends Xy{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,r,o){if(!r.hasModel())return;let c=o3(r.getOption(131),r.getOption(130)),d=r.getModel(),b=r.getSelections().map(w=>{let N=new qn(w.positionLineNumber,w.positionColumn),L=this._move(c,d,N,this._wordNavigationType);return this._moveTo(w,L,this._inSelectionMode)});if(d.pushStackElement(),r._getViewModel().setCursorStates("moveWordCommand",3,b.map(w=>tm.fromModelSelection(w))),b.length===1){let w=new qn(b[0].positionLineNumber,b[0].positionColumn);r.revealPosition(w,0)}}_moveTo(e,r,o){return o?new ic(e.selectionStartLineNumber,e.selectionStartColumn,r.lineNumber,r.column):new ic(r.lineNumber,r.column,r.lineNumber,r.column)}},poe=class extends L3e{_move(e,r,o,c){return b2.moveWordLeft(e,r,o,c)}},moe=class extends L3e{_move(e,r,o,c){return b2.moveWordRight(e,r,o,c)}},jmi=class extends poe{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:void 0})}},Wmi=class extends poe{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:void 0})}},zmi=class extends poe{constructor(){var e;super({inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:void 0,kbOpts:{kbExpr:Ao.and(Qi.textInputFocus,(e=Ao.and(b6e,I_t))===null||e===void 0?void 0:e.negate()),primary:2063,mac:{primary:527},weight:100}})}},Vmi=class extends poe{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:void 0})}},Hmi=class extends poe{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:void 0})}},Umi=class extends poe{constructor(){var e;super({inSelectionMode:!0,wordNavigationType:1,id:"cursorWordLeftSelect",precondition:void 0,kbOpts:{kbExpr:Ao.and(Qi.textInputFocus,(e=Ao.and(b6e,I_t))===null||e===void 0?void 0:e.negate()),primary:3087,mac:{primary:1551},weight:100}})}},Jmi=class extends poe{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityLeft",precondition:void 0})}_move(e,r,o,c){return super._move(o3(XF.wordSeparators.defaultValue,e.intlSegmenterLocales),r,o,c)}},qmi=class extends poe{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityLeftSelect",precondition:void 0})}_move(e,r,o,c){return super._move(o3(XF.wordSeparators.defaultValue,e.intlSegmenterLocales),r,o,c)}},$mi=class extends moe{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})}},Gmi=class extends moe{constructor(){var e;super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:Ao.and(Qi.textInputFocus,(e=Ao.and(b6e,I_t))===null||e===void 0?void 0:e.negate()),primary:2065,mac:{primary:529},weight:100}})}},Kmi=class extends moe{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})}},Xmi=class extends moe{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})}},Ymi=class extends moe{constructor(){var e;super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:Ao.and(Qi.textInputFocus,(e=Ao.and(b6e,I_t))===null||e===void 0?void 0:e.negate()),primary:3089,mac:{primary:1553},weight:100}})}},Qmi=class extends moe{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:void 0})}},Zmi=class extends moe{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0})}_move(e,r,o,c){return super._move(o3(XF.wordSeparators.defaultValue,e.intlSegmenterLocales),r,o,c)}},ehi=class extends moe{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0})}_move(e,r,o,c){return super._move(o3(XF.wordSeparators.defaultValue,e.intlSegmenterLocales),r,o,c)}},O3e=class extends Xy{constructor(e){super(e),this._whitespaceHeuristics=e.whitespaceHeuristics,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,r,o){let c=e.get(cp);if(!r.hasModel())return;let d=o3(r.getOption(131),r.getOption(130)),h=r.getModel(),b=r.getSelections(),w=r.getOption(6),N=r.getOption(11),L=c.getLanguageConfiguration(h.getLanguageId()).getAutoClosingPairs(),B=r._getViewModel(),F=b.map(Y=>{let Z=this._delete({wordSeparators:d,model:h,selection:Y,whitespaceHeuristics:this._whitespaceHeuristics,autoClosingDelete:r.getOption(9),autoClosingBrackets:w,autoClosingQuotes:N,autoClosingPairs:L,autoClosedCharacters:B.getCursorAutoClosedCharacters()},this._wordNavigationType);return new tw(Z,"")});r.pushUndoStop(),r.executeCommands(this.id,F),r.pushUndoStop()}},kht=class extends O3e{_delete(e,r){let o=b2.deleteWordLeft(e,r);return o||new Zt(1,1,1,1)}},wht=class extends O3e{_delete(e,r){let o=b2.deleteWordRight(e,r);if(o)return o;let c=e.model.getLineCount(),d=e.model.getLineMaxColumn(c);return new Zt(c,d,c,d)}},thi=class extends kht{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:Qi.writable})}},ihi=class extends kht{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:Qi.writable})}},nhi=class extends kht{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:Qi.writable,kbOpts:{kbExpr:Qi.textInputFocus,primary:2049,mac:{primary:513},weight:100}})}},rhi=class extends wht{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:Qi.writable})}},ohi=class extends wht{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:Qi.writable})}},shi=class extends wht{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordRight",precondition:Qi.writable,kbOpts:{kbExpr:Qi.textInputFocus,primary:2068,mac:{primary:532},weight:100}})}},ahi=class extends Ca{constructor(){super({id:"deleteInsideWord",precondition:Qi.writable,label:ce("deleteInsideWord","Delete Word"),alias:"Delete Word"})}run(e,r,o){if(!r.hasModel())return;let c=o3(r.getOption(131),r.getOption(130)),d=r.getModel(),b=r.getSelections().map(w=>{let N=b2.deleteInsideWord(c,d,w);return new tw(N,"")});r.pushUndoStop(),r.executeCommands(this.id,b),r.pushUndoStop()}};Ra(new jmi);Ra(new Wmi);Ra(new zmi);Ra(new Vmi);Ra(new Hmi);Ra(new Umi);Ra(new $mi);Ra(new Gmi);Ra(new Kmi);Ra(new Xmi);Ra(new Ymi);Ra(new Qmi);Ra(new Jmi);Ra(new qmi);Ra(new Zmi);Ra(new ehi);Ra(new thi);Ra(new ihi);Ra(new nhi);Ra(new rhi);Ra(new ohi);Ra(new shi);Qo(ahi);vf();Ddt();Xa();$h();W0();var chi=class extends O3e{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordPartLeft",precondition:Qi.writable,kbOpts:{kbExpr:Qi.textInputFocus,primary:0,mac:{primary:769},weight:100}})}_delete(e,r){let o=W6e.deleteWordPartLeft(e);return o||new Zt(1,1,1,1)}},lhi=class extends O3e{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordPartRight",precondition:Qi.writable,kbOpts:{kbExpr:Qi.textInputFocus,primary:0,mac:{primary:788},weight:100}})}_delete(e,r){let o=W6e.deleteWordPartRight(e);if(o)return o;let c=e.model.getLineCount(),d=e.model.getLineMaxColumn(c);return new Zt(c,d,c,d)}},V5t=class extends L3e{_move(e,r,o,c){return W6e.moveWordPartLeft(e,r,o)}},uhi=class extends V5t{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordPartLeft",precondition:void 0,kbOpts:{kbExpr:Qi.textInputFocus,primary:0,mac:{primary:783},weight:100}})}};df.registerCommandAlias("cursorWordPartStartLeft","cursorWordPartLeft");var dhi=class extends V5t{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordPartLeftSelect",precondition:void 0,kbOpts:{kbExpr:Qi.textInputFocus,primary:0,mac:{primary:1807},weight:100}})}};df.registerCommandAlias("cursorWordPartStartLeftSelect","cursorWordPartLeftSelect");var H5t=class extends L3e{_move(e,r,o,c){return W6e.moveWordPartRight(e,r,o)}},fhi=class extends H5t{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordPartRight",precondition:void 0,kbOpts:{kbExpr:Qi.textInputFocus,primary:0,mac:{primary:785},weight:100}})}},_hi=class extends H5t{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordPartRightSelect",precondition:void 0,kbOpts:{kbExpr:Qi.textInputFocus,primary:0,mac:{primary:1809},weight:100}})}};Ra(new chi);Ra(new lhi);Ra(new uhi);Ra(new dhi);Ra(new fhi);Ra(new _hi);d3();co();vf();ya();var Tht=class extends tn{constructor(e){super(),this.editor=e,this._register(this.editor.onDidAttemptReadOnlyEdit(()=>this._onDidAttemptReadOnlyEdit()))}_onDidAttemptReadOnlyEdit(){let e=XI.get(this.editor);if(e&&this.editor.hasModel()){let r=this.editor.getOptions().get(92);r||(this.editor.isSimpleWidget?r=new Hx(ce("editor.simple.readonly","Cannot edit in read-only input")):r=new Hx(ce("editor.readonly","Cannot edit in read-only editor"))),e.showMessage(r,this.editor.getPosition())}}};Tht.ID="editor.contrib.readOnlyMessageController";ku(Tht.ID,Tht,2);var mzr=Olt(JFi());Dre();nc();co();vf();X_();var Dht=class extends tn{constructor(e){super(),this.editor=e,this.widget=null,b6&&(this._register(e.onDidChangeConfiguration(()=>this.update())),this.update())}update(){let e=!this.editor.getOption(91);!this.widget&&e?this.widget=new U5t(this.editor):this.widget&&!e&&(this.widget.dispose(),this.widget=null)}dispose(){super.dispose(),this.widget&&(this.widget.dispose(),this.widget=null)}};Dht.ID="editor.contrib.iPadShowKeyboard";var U5t=class l extends tn{constructor(e){super(),this.editor=e,this._domNode=document.createElement("textarea"),this._domNode.className="iPadShowKeyboard",this._register(Jr(this._domNode,"touchstart",r=>{this.editor.focus()})),this._register(Jr(this._domNode,"focus",r=>{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}}};U5t.ID="editor.contrib.ShowKeyboardWidget";ku(Dht.ID,Dht,3);var _Ur=Olt(GFi());DT();TLe();Dre();ya();DT();co();f1();TLe();a8();var fin=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},KFi=function(l,e){return function(r,o){e(r,o,l)}},Nht,Aht=Nht=class{constructor(e,r){this.quickInputService=e,this.keybindingService=r,this.registry=pm.as(VV.Quickaccess)}provide(e){let r=new Fr;return r.add(e.onDidAccept(()=>{let[o]=e.selectedItems;o&&this.quickInputService.quickAccess.show(o.prefix,{preserveValue:!0})})),r.add(e.onDidChangeValue(o=>{let c=this.registry.getQuickAccessProvider(o.substr(Nht.PREFIX.length));c&&c.prefix&&c.prefix!==Nht.PREFIX&&this.quickInputService.quickAccess.show(c.prefix,{preserveValue:!0})})),e.items=this.getQuickAccessProviders().filter(o=>o.prefix!==Nht.PREFIX),r}getQuickAccessProviders(){return this.registry.getQuickAccessProviders().sort((r,o)=>r.prefix.localeCompare(o.prefix)).flatMap(r=>this.createPicks(r))}createPicks(e){return e.helpEntries.map(r=>{let o=r.prefix||e.prefix,c=o||"\u2026";return{prefix:o,label:c,keybinding:r.commandId?this.keybindingService.lookupKeybinding(r.commandId):void 0,ariaLabel:ce("helpPickAriaLabel","{0}, {1}",c,r.description),description:r.description}})}};Aht.PREFIX="?";Aht=Nht=fin([KFi(0,S2),KFi(1,Jd)],Aht);pm.as(VV.Quickaccess).registerQuickAccessProvider({ctor:Aht,prefix:"",helpEntries:[{description:h3t.helpQuickAccessActionLabel}]});co();uJe();Bbe();co();uJe();MD();PV();x0();gA();var Gqe=class{constructor(e){this.options=e,this.rangeHighlightDecorationId=void 0}provide(e,r,o){var c;let d=new Fr;e.canAcceptInBackground=!!(!((c=this.options)===null||c===void 0)&&c.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;let h=d.add(new zg);return h.value=this.doProvide(e,r,o),d.add(this.onDidActiveTextEditorControlChange(()=>{h.value=void 0,h.value=this.doProvide(e,r)})),d}doProvide(e,r,o){var c;let d=new Fr,h=this.activeTextEditorControl;if(h&&this.canProvideWithTextEditor(h)){let b={editor:h},w=fFt(h);if(w){let N=(c=h.saveViewState())!==null&&c!==void 0?c:void 0;d.add(w.onDidChangeCursorPosition(()=>{var L;N=(L=h.saveViewState())!==null&&L!==void 0?L:void 0})),b.restoreViewState=()=>{N&&h===this.activeTextEditorControl&&h.restoreViewState(N)},d.add(xR(r.onCancellationRequested)(()=>{var L;return(L=b.restoreViewState)===null||L===void 0?void 0:L.call(b)}))}d.add(Ma(()=>this.clearDecorations(h))),d.add(this.provideWithTextEditor(b,e,r,o))}else d.add(this.provideWithoutTextEditor(e,r));return d}canProvideWithTextEditor(e){return!0}gotoLocation({editor:e},r){e.setSelection(r.range,"code.jump"),e.revealRangeInCenter(r.range,0),r.preserveFocus||e.focus();let o=e.getModel();o&&"getLineContent"in o&&c3(`${o.getLineContent(r.range.startLineNumber)}`)}getModel(e){var r;return npt(e)?(r=e.getModel())===null||r===void 0?void 0:r.modified:e.getModel()}addDecorations(e,r){e.changeDecorations(o=>{let c=[];this.rangeHighlightDecorationId&&(c.push(this.rangeHighlightDecorationId.overviewRulerDecorationId),c.push(this.rangeHighlightDecorationId.rangeHighlightId),this.rangeHighlightDecorationId=void 0);let d=[{range:r,options:{description:"quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:r,options:{description:"quick-access-range-highlight-overview",overviewRuler:{color:Sv(DPt),position:mA.Full}}}],[h,b]=o.deltaDecorations(c,d);this.rangeHighlightDecorationId={rangeHighlightId:h,overviewRulerDecorationId:b}})}clearDecorations(e){let r=this.rangeHighlightDecorationId;r&&(e.changeDecorations(o=>{o.deltaDecorations([r.overviewRulerDecorationId,r.rangeHighlightId],[])}),this.rangeHighlightDecorationId=void 0)}};ya();var Pht=class l extends Gqe{constructor(){super({canAcceptInBackground:!0})}provideWithoutTextEditor(e){let r=ce("cannotRunGotoLine","Open a text editor first to go to a line.");return e.items=[{label:r}],e.ariaLabel=r,tn.None}provideWithTextEditor(e,r,o){let c=e.editor,d=new Fr;d.add(r.onDidAccept(w=>{let[N]=r.selectedItems;if(N){if(!this.isValidLineNumber(c,N.lineNumber))return;this.gotoLocation(e,{range:this.toRange(N.lineNumber,N.column),keyMods:r.keyMods,preserveFocus:w.inBackground}),w.inBackground||r.hide()}}));let h=()=>{let w=this.parsePosition(c,r.value.trim().substr(l.PREFIX.length)),N=this.getPickLabel(c,w.lineNumber,w.column);if(r.items=[{lineNumber:w.lineNumber,column:w.column,label:N}],r.ariaLabel=N,!this.isValidLineNumber(c,w.lineNumber)){this.clearDecorations(c);return}let L=this.toRange(w.lineNumber,w.column);c.revealRangeInCenter(L,0),this.addDecorations(c,L)};h(),d.add(r.onDidChangeValue(()=>h()));let b=fFt(c);return b&&b.getOptions().get(68).renderType===2&&(b.updateOptions({lineNumbers:"on"}),d.add(Ma(()=>b.updateOptions({lineNumbers:"relative"})))),d}toRange(e=1,r=1){return{startLineNumber:e,startColumn:r,endLineNumber:e,endColumn:r}}parsePosition(e,r){let o=r.split(/,|:|#/).map(d=>parseInt(d,10)).filter(d=>!isNaN(d)),c=this.lineCount(e)+1;return{lineNumber:o[0]>0?o[0]:c+o[0],column:o[1]}}getPickLabel(e,r,o){if(this.isValidLineNumber(e,r))return this.isValidColumn(e,r,o)?ce("gotoLineColumnLabel","Go to line {0} and character {1}.",r,o):ce("gotoLineLabel","Go to line {0}.",r);let c=e.getPosition()||{lineNumber:1,column:1},d=this.lineCount(e);return d>1?ce("gotoLineLabelEmptyWithLimit","Current Line: {0}, Character: {1}. Type a line number between 1 and {2} to navigate to.",c.lineNumber,c.column,d):ce("gotoLineLabelEmpty","Current Line: {0}, Character: {1}. Type a line number to navigate to.",c.lineNumber,c.column)}isValidLineNumber(e,r){return!r||typeof r!="number"?!1:r>0&&r<=this.lineCount(e)}isValidColumn(e,r,o){if(!o||typeof o!="number")return!1;let c=this.getModel(e);if(!c)return!1;let d={lineNumber:r,column:o};return c.validatePosition(d).equals(d)}lineCount(e){var r,o;return(o=(r=this.getModel(e))===null||r===void 0?void 0:r.getLineCount())!==null&&o!==void 0?o:0}};Pht.PREFIX=":";DT();TLe();IC();Dre();xc();vf();$h();a8();var _in=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},pin=function(l,e){return function(r,o){e(r,o,l)}},Lht=class extends Pht{constructor(e){super(),this.editorService=e,this.onDidActiveTextEditorControlChange=gs.None}get activeTextEditorControl(){var e;return(e=this.editorService.getFocusedCodeEditor())!==null&&e!==void 0?e:void 0}};Lht=_in([pin(0,nf)],Lht);var Oht=class l extends Ca{constructor(){super({id:l.ID,label:Kft.gotoLineActionLabel,alias:"Go to Line/Column...",precondition:void 0,kbOpts:{kbExpr:Qi.focus,primary:2085,mac:{primary:293},weight:100}})}run(e){e.get(S2).quickAccess.show(Lht.PREFIX)}};Oht.ID="editor.action.gotoLine";Qo(Oht);pm.as(VV.Quickaccess).registerQuickAccessProvider({ctor:Lht,prefix:Lht.PREFIX,helpEntries:[{description:Kft.gotoLineActionLabel,commandId:Oht.ID}]});Ud();Sh();uy();bv();MV();jY();X_();Mu();var QFi=[void 0,[]];function $5t(l,e,r=0,o=0){let c=e;return c.values&&c.values.length>1?min(l,c.values,r,o):ZFi(l,e,r,o)}function min(l,e,r,o){let c=0,d=[];for(let h of e){let[b,w]=ZFi(l,h,r,o);if(typeof b!="number")return QFi;c+=b,d.push(...w)}return[c,hin(d)]}function ZFi(l,e,r,o){let c=wre(e.original,e.originalLowercase,r,l,l.toLowerCase(),o,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return c?[c[0],ZSe(c)]:QFi}var TVr=Object.freeze({score:0});function hin(l){let e=l.sort((c,d)=>c.start-d.start),r=[],o;for(let c of e)!o||!gin(o,c)?(o=c,r.push(c)):(o.start=Math.min(o.start,c.start),o.end=Math.max(o.end,c.end));return r}function gin(l,e){return!(l.end=0,h=XFi(l),b,w=l.split(e7i);if(w.length>1)for(let N of w){let L=XFi(N),{pathNormalized:B,normalized:F,normalizedLowercase:Y}=YFi(N);F&&(b||(b=[]),b.push({original:N,originalLowercase:N.toLowerCase(),pathNormalized:B,normalized:F,normalizedLowercase:Y,expectContiguousMatch:L}))}return{original:l,originalLowercase:e,pathNormalized:r,normalized:o,normalizedLowercase:c,values:b,containsPathSeparator:d,expectContiguousMatch:h}}function YFi(l){let e;Bv?e=l.replace(/\//g,kR):e=l.replace(/\\/g,kR);let r=Ygi(e).replace(/\s|"/g,"");return{pathNormalized:e,normalized:r,normalizedLowercase:r.toLowerCase()}}function ghi(l){return Array.isArray(l)?q5t(l.map(e=>e.original).join(e7i)):q5t(l.original)}co();Mu();Xa();dy();vqe();ya();wm();PR();var yin=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},t7i=function(l,e){return function(r,o){e(r,o,l)}},Kqe,MQ=Kqe=class extends Gqe{constructor(e,r,o=Object.create(null)){super(o),this._languageFeaturesService=e,this._outlineModelService=r,this.options=o,this.options.canAcceptInBackground=!0}provideWithoutTextEditor(e){return this.provideLabelPick(e,ce("cannotRunGotoSymbolWithoutEditor","To go to a symbol, first open a text editor with symbol information.")),tn.None}provideWithTextEditor(e,r,o,c){let d=e.editor,h=this.getModel(d);return h?this._languageFeaturesService.documentSymbolProvider.has(h)?this.doProvideWithEditorSymbols(e,h,r,o,c):this.doProvideWithoutEditorSymbols(e,h,r,o):tn.None}doProvideWithoutEditorSymbols(e,r,o,c){let d=new Fr;return this.provideLabelPick(o,ce("cannotRunGotoSymbolWithoutSymbolProvider","The active text editor does not provide symbol information.")),(async()=>!await this.waitForLanguageSymbolRegistry(r,d)||c.isCancellationRequested||d.add(this.doProvideWithEditorSymbols(e,r,o,c)))(),d}provideLabelPick(e,r){e.items=[{label:r,index:0,kind:14}],e.ariaLabel=r}async waitForLanguageSymbolRegistry(e,r){if(this._languageFeaturesService.documentSymbolProvider.has(e))return!0;let o=new Fq,c=r.add(this._languageFeaturesService.documentSymbolProvider.onDidChange(()=>{this._languageFeaturesService.documentSymbolProvider.has(e)&&(c.dispose(),o.complete(!0))}));return r.add(Ma(()=>o.complete(!1))),o.p}doProvideWithEditorSymbols(e,r,o,c,d){var h;let b=e.editor,w=new Fr;w.add(o.onDidAccept(F=>{var Y;let[Z]=o.selectedItems;Z&&Z.range&&(this.gotoLocation(e,{range:Z.range.selection,keyMods:o.keyMods,preserveFocus:F.inBackground}),(Y=d?.handleAccept)===null||Y===void 0||Y.call(d,Z),F.inBackground||o.hide())})),w.add(o.onDidTriggerItemButton(({item:F})=>{F&&F.range&&(this.gotoLocation(e,{range:F.range.selection,keyMods:o.keyMods,forceSideBySide:!0}),o.hide())}));let N=this.getDocumentSymbols(r,c),L,B=async F=>{L?.dispose(!0),o.busy=!1,L=new Up(c),o.busy=!0;try{let Y=q5t(o.value.substr(Kqe.PREFIX.length).trim()),Z=await this.doGetSymbolPicks(N,Y,void 0,L.token,r);if(c.isCancellationRequested)return;if(Z.length>0){if(o.items=Z,F&&Y.original.length===0){let ee=vfe(Z,Te=>!!(Te.type!=="separator"&&Te.range&&Zt.containsPosition(Te.range.decoration,F)));ee&&(o.activeItems=[ee])}}else Y.original.length>0?this.provideLabelPick(o,ce("noMatchingSymbolResults","No matching editor symbols")):this.provideLabelPick(o,ce("noSymbolResults","No editor symbols"))}finally{c.isCancellationRequested||(o.busy=!1)}};return w.add(o.onDidChangeValue(()=>B(void 0))),B((h=b.getSelection())===null||h===void 0?void 0:h.getPosition()),w.add(o.onDidChangeActive(()=>{let[F]=o.activeItems;F&&F.range&&(b.revealRangeInCenter(F.range.selection,0),this.addDecorations(b,F.range.decoration))})),w}async doGetSymbolPicks(e,r,o,c,d){var h,b;let w=await e;if(c.isCancellationRequested)return[];let N=r.original.indexOf(Kqe.SCOPE_PREFIX)===0,L=N?1:0,B,F;r.values&&r.values.length>1?(B=ghi(r.values[0]),F=ghi(r.values.slice(1))):B=r;let Y,Z=(b=(h=this.options)===null||h===void 0?void 0:h.openSideBySideDirection)===null||b===void 0?void 0:b.call(h);Z&&(Y=[{iconClass:Z==="right"?sl.asClassName(_s.splitHorizontal):sl.asClassName(_s.splitVertical),tooltip:Z==="right"?ce("openToSide","Open to the Side"):ce("openToBottom","Open to the Bottom")}]);let ee=[];for(let Xe=0;XeL){let Tn=!1;if(B!==r&&([mi,_n]=$5t(Nt,{...r,values:void 0},L,Yt),typeof mi=="number"&&(Tn=!0)),typeof mi!="number"&&([mi,_n]=$5t(Nt,B,L,Yt),typeof mi!="number"))continue;if(!Tn&&F){if(jt&&F.original.length>0&&([Pr,dr]=$5t(jt,F)),typeof Pr!="number")continue;typeof mi=="number"&&(mi+=Pr)}}let Rr=ct.tags&&ct.tags.indexOf(1)>=0;ee.push({index:Xe,kind:ct.kind,score:mi,label:Nt,ariaLabel:Ugi(ct.name,ct.kind),description:jt,highlights:Rr?void 0:{label:_n,description:dr},range:{selection:Zt.collapseToStart(ct.selectionRange),decoration:ct.range},uri:d.uri,symbolName:Ct,strikethrough:Rr,buttons:Y})}let Te=ee.sort((Xe,ct)=>N?this.compareByKindAndScore(Xe,ct):this.compareByScore(Xe,ct)),Je=[];if(N){let Nt=function(){ct&&typeof Xe=="number"&&Ct>0&&(ct.label=uV(vhi[Xe]||yhi,Ct))},Xe,ct,Ct=0;for(let Yt of Te)Xe!==Yt.kind?(Nt(),Xe=Yt.kind,Ct=1,ct={type:"separator"},Je.push(ct)):Ct++,Je.push(Yt);Nt()}else Te.length>0&&(Je=[{label:ce("symbols","symbols ({0})",ee.length),type:"separator"},...Te]);return Je}compareByScore(e,r){if(typeof e.score!="number"&&typeof r.score=="number")return 1;if(typeof e.score=="number"&&typeof r.score!="number")return-1;if(typeof e.score=="number"&&typeof r.score=="number"){if(e.score>r.score)return-1;if(e.scorer.index?1:0}compareByKindAndScore(e,r){let o=vhi[e.kind]||yhi,c=vhi[r.kind]||yhi,d=o.localeCompare(c);return d===0?this.compareByScore(e,r):d}async getDocumentSymbols(e,r){let o=await this._outlineModelService.getOrCreate(e,r);return r.isCancellationRequested?[]:o.asListOfDocumentSymbols()}};MQ.PREFIX="@";MQ.SCOPE_PREFIX=":";MQ.PREFIX_BY_CATEGORY=`${Kqe.PREFIX}${Kqe.SCOPE_PREFIX}`;MQ=Kqe=yin([t7i(0,xa),t7i(1,D_e)],MQ);var yhi=ce("property","properties ({0})"),vhi={5:ce("method","methods ({0})"),11:ce("function","functions ({0})"),8:ce("_constructor","constructors ({0})"),12:ce("variable","variables ({0})"),4:ce("class","classes ({0})"),22:ce("struct","structs ({0})"),23:ce("event","events ({0})"),24:ce("operator","operators ({0})"),10:ce("interface","interfaces ({0})"),2:ce("namespace","namespaces ({0})"),3:ce("package","packages ({0})"),25:ce("typeParameter","type parameters ({0})"),1:ce("modules","modules ({0})"),6:ce("property","properties ({0})"),9:ce("enum","enumerations ({0})"),21:ce("enumMember","enumeration members ({0})"),14:ce("string","strings ({0})"),0:ce("file","files ({0})"),17:ce("array","arrays ({0})"),15:ce("number","numbers ({0})"),16:ce("boolean","booleans ({0})"),18:ce("object","objects ({0})"),19:ce("key","keys ({0})"),7:ce("field","fields ({0})"),13:ce("constant","constants ({0})")};DT();TLe();IC();Dre();xc();vf();$h();a8();vqe();wm();var vin=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},bhi=function(l,e){return function(r,o){e(r,o,l)}},Shi=class extends MQ{constructor(e,r,o){super(r,o),this.editorService=e,this.onDidActiveTextEditorControlChange=gs.None}get activeTextEditorControl(){var e;return(e=this.editorService.getFocusedCodeEditor())!==null&&e!==void 0?e:void 0}};Shi=vin([bhi(0,nf),bhi(1,xa),bhi(2,D_e)],Shi);var Fht=class l extends Ca{constructor(){super({id:l.ID,label:pUe.quickOutlineActionLabel,alias:"Go to Symbol...",precondition:Qi.hasDocumentSymbolProvider,kbOpts:{kbExpr:Qi.focus,primary:3117,weight:100},contextMenuOpts:{group:"navigation",order:3}})}run(e){e.get(S2).quickAccess.show(MQ.PREFIX,{itemActivation:BB.NONE})}};Fht.ID="editor.action.quickOutline";Qo(Fht);pm.as(VV.Quickaccess).registerQuickAccessProvider({ctor:Shi,prefix:MQ.PREFIX,helpEntries:[{description:pUe.quickOutlineActionLabel,prefix:MQ.PREFIX,commandId:Fht.ID},{description:pUe.quickOutlineByCategoryActionLabel,prefix:MQ.PREFIX_BY_CATEGORY}]});DT();TLe();Dre();IC();_Le();koi();Du();MV();Bbe();co();pA();function bin(l){var e;let r=new Map;for(let o of l)r.set(o,((e=r.get(o))!==null&&e!==void 0?e:0)+1);return r}var G5t=class l{constructor(){this.chunkCount=0,this.chunkOccurrences=new Map,this.documents=new Map}calculateScores(e,r){let o=this.computeEmbedding(e),c=new Map,d=[];for(let[h,b]of this.documents){if(r.isCancellationRequested)return[];for(let w of b.chunks){let N=this.computeSimilarityScore(w,o,c);N>0&&d.push({key:h,score:N})}}return d}static termFrequencies(e){return bin(l.splitTerms(e))}static*splitTerms(e){let r=o=>o.toLowerCase();for(let[o]of e.matchAll(/\b\p{Letter}[\p{Letter}\d]{2,}\b/gu)){yield r(o);let c=o.replace(/([a-z])([A-Z])/g,"$1 $2").split(/\s+/g);if(c.length>1)for(let d of c)d.length>2&&/\p{Letter}{3,}/gu.test(d)&&(yield r(d))}}updateDocuments(e){var r;for(let{key:o}of e)this.deleteDocument(o);for(let o of e){let c=[];for(let d of o.textChunks){let h=l.termFrequencies(d);for(let b of h.keys())this.chunkOccurrences.set(b,((r=this.chunkOccurrences.get(b))!==null&&r!==void 0?r:0)+1);c.push({text:d,tf:h})}this.chunkCount+=c.length,this.documents.set(o.key,{chunks:c})}return this}deleteDocument(e){let r=this.documents.get(e);if(r){this.documents.delete(e),this.chunkCount-=r.chunks.length;for(let o of r.chunks)for(let c of o.tf.keys()){let d=this.chunkOccurrences.get(c);if(typeof d=="number"){let h=d-1;h<=0?this.chunkOccurrences.delete(c):this.chunkOccurrences.set(c,h)}}}}computeSimilarityScore(e,r,o){let c=0;for(let[d,h]of Object.entries(r)){let b=e.tf.get(d);if(!b)continue;let w=o.get(d);typeof w!="number"&&(w=this.computeIdf(d),o.set(d,w));let N=b*w;c+=N*h}return c}computeEmbedding(e){let r=l.termFrequencies(e);return this.computeTfidf(r)}computeIdf(e){var r;let o=(r=this.chunkOccurrences.get(e))!==null&&r!==void 0?r:0;return o>0?Math.log((this.chunkCount+1)/o):0}computeTfidf(e){let r=Object.create(null);for(let[o,c]of e){let d=this.computeIdf(o);d>0&&(r[o]=c*d)}return r}};function i7i(l){var e,r;let o=l.slice(0);o.sort((d,h)=>h.score-d.score);let c=(r=(e=o[0])===null||e===void 0?void 0:e.score)!==null&&r!==void 0?r:0;if(c>0)for(let d of o)d.score/=c;return o}ya();W0();_y();YHe();bl();f1();UO();Ud();Sh();co();Fh();var Xqe;(function(l){l[l.NO_ACTION=0]="NO_ACTION",l[l.CLOSE_PICKER=1]="CLOSE_PICKER",l[l.REFRESH_PICKER=2]="REFRESH_PICKER",l[l.REMOVE_ITEM=3]="REMOVE_ITEM"})(Xqe||(Xqe={}));function xhi(l){let e=l;return Array.isArray(e.items)}function n7i(l){let e=l;return!!e.picks&&e.additionalPicks instanceof Promise}var K5t=class extends tn{constructor(e,r){super(),this.prefix=e,this.options=r}provide(e,r,o){var c;let d=new Fr;e.canAcceptInBackground=!!(!((c=this.options)===null||c===void 0)&&c.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;let h,b=d.add(new zg),w=async()=>{var L;let B=b.value=new Fr;h?.dispose(!0),e.busy=!1,h=new Up(r);let F=h.token,Y=e.value.substring(this.prefix.length);!((L=this.options)===null||L===void 0)&&L.shouldSkipTrimPickFilter||(Y=Y.trim());let Z=this._getPicks(Y,B,F,o),ee=(Je,Xe)=>{var ct;let Ct,Nt;if(xhi(Je)?(Ct=Je.items,Nt=Je.active):Ct=Je,Ct.length===0){if(Xe)return!1;(Y.length>0||e.hideInput)&&(!((ct=this.options)===null||ct===void 0)&&ct.noResultsPick)&&(Abe(this.options.noResultsPick)?Ct=[this.options.noResultsPick(Y)]:Ct=[this.options.noResultsPick])}return e.items=Ct,Nt&&(e.activeItems=[Nt]),!0},Te=async Je=>{let Xe=!1,ct=!1;await Promise.all([(async()=>{typeof Je.mergeDelay=="number"&&(await HO(Je.mergeDelay),F.isCancellationRequested)||ct||(Xe=ee(Je.picks,!0))})(),(async()=>{e.busy=!0;try{let Ct=await Je.additionalPicks;if(F.isCancellationRequested)return;let Nt,Yt;xhi(Je.picks)?(Nt=Je.picks.items,Yt=Je.picks.active):Nt=Je.picks;let jt,mi;if(xhi(Ct)?(jt=Ct.items,mi=Ct.active):jt=Ct,jt.length>0||!Xe){let _n;if(!Yt&&!mi){let Pr=e.activeItems[0];Pr&&Nt.indexOf(Pr)!==-1&&(_n=Pr)}ee({items:[...Nt,...jt],active:Yt||mi||_n})}}finally{F.isCancellationRequested||(e.busy=!1),ct=!0}})()])};if(Z!==null)if(n7i(Z))await Te(Z);else if(!(Z instanceof Promise))ee(Z);else{e.busy=!0;try{let Je=await Z;if(F.isCancellationRequested)return;n7i(Je)?await Te(Je):ee(Je)}finally{F.isCancellationRequested||(e.busy=!1)}}};d.add(e.onDidChangeValue(()=>w())),w(),d.add(e.onDidAccept(L=>{var B;if(o?.handleAccept){L.inBackground||e.hide(),(B=o.handleAccept)===null||B===void 0||B.call(o,e.activeItems[0]);return}let[F]=e.selectedItems;typeof F?.accept=="function"&&(L.inBackground||e.hide(),F.accept(e.keyMods,L))}));let N=async(L,B)=>{var F,Y;if(typeof B.trigger!="function")return;let Z=(Y=(F=B.buttons)===null||F===void 0?void 0:F.indexOf(L))!==null&&Y!==void 0?Y:-1;if(Z>=0){let ee=B.trigger(Z,e.keyMods),Te=typeof ee=="number"?ee:await ee;if(r.isCancellationRequested)return;switch(Te){case Xqe.NO_ACTION:break;case Xqe.CLOSE_PICKER:e.hide();break;case Xqe.REFRESH_PICKER:w();break;case Xqe.REMOVE_ITEM:{let Je=e.items.indexOf(B);if(Je!==-1){let Xe=e.items.slice(),ct=Xe.splice(Je,1),Ct=e.activeItems.filter(Yt=>Yt!==ct[0]),Nt=e.keepScrollPosition;e.keepScrollPosition=!0,e.items=Xe,Ct&&(e.activeItems=Ct),e.keepScrollPosition=Nt}break}}}};return d.add(e.onDidTriggerItemButton(({button:L,item:B})=>N(L,B))),d.add(e.onDidTriggerSeparatorButton(({button:L,separator:B})=>N(L,B))),d}};gQ();n3();var r7i=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},oCe=function(l,e){return function(r,o){e(r,o,l)}},F3e,x2,sCe=F3e=class extends K5t{constructor(e,r,o,c,d,h){super(F3e.PREFIX,e),this.instantiationService=r,this.keybindingService=o,this.commandService=c,this.telemetryService=d,this.dialogService=h,this.commandsHistory=this._register(this.instantiationService.createInstance(aCe)),this.options=e}async _getPicks(e,r,o,c){var d,h,b,w;let N=await this.getCommandPicks(o);if(o.isCancellationRequested)return[];let L=xR(()=>{let Je=new G5t;Je.updateDocuments(N.map(ct=>({key:ct.commandId,textChunks:[this.getTfIdfChunk(ct)]})));let Xe=Je.calculateScores(e,o);return i7i(Xe).filter(ct=>ct.score>F3e.TFIDF_THRESHOLD).slice(0,F3e.TFIDF_MAX_RESULTS)}),B=[];for(let Je of N){let Xe=(d=F3e.WORD_FILTER(e,Je.label))!==null&&d!==void 0?d:void 0,ct=Je.commandAlias&&(h=F3e.WORD_FILTER(e,Je.commandAlias))!==null&&h!==void 0?h:void 0;if(Xe||ct)Je.highlights={label:Xe,detail:this.options.showAlias?ct:void 0},B.push(Je);else if(e===Je.commandId)B.push(Je);else if(e.length>=3){let Ct=L();if(o.isCancellationRequested)return[];let Nt=Ct.find(Yt=>Yt.key===Je.commandId);Nt&&(Je.tfIdfScore=Nt.score,B.push(Je))}}let F=new Map;for(let Je of B){let Xe=F.get(Je.label);Xe?(Je.description=Je.commandId,Xe.description=Xe.commandId):F.set(Je.label,Je)}B.sort((Je,Xe)=>{if(Je.tfIdfScore&&Xe.tfIdfScore)return Je.tfIdfScore===Xe.tfIdfScore?Je.label.localeCompare(Xe.label):Xe.tfIdfScore-Je.tfIdfScore;if(Je.tfIdfScore)return 1;if(Xe.tfIdfScore)return-1;let ct=this.commandsHistory.peek(Je.commandId),Ct=this.commandsHistory.peek(Xe.commandId);if(ct&&Ct)return ct>Ct?-1:1;if(ct)return-1;if(Ct)return 1;if(this.options.suggestedCommandIds){let Nt=this.options.suggestedCommandIds.has(Je.commandId),Yt=this.options.suggestedCommandIds.has(Xe.commandId);if(Nt&&Yt)return 0;if(Nt)return-1;if(Yt)return 1}return Je.label.localeCompare(Xe.label)});let Y=[],Z=!1,ee=!0,Te=!!this.options.suggestedCommandIds;for(let Je=0;Je{var Je;let Xe=await this.getAdditionalCommandPicks(N,B,e,o);if(o.isCancellationRequested)return[];let ct=Xe.map(Ct=>this.toCommandPick(Ct,c));return ee&&((Je=ct[0])===null||Je===void 0?void 0:Je.type)!=="separator"&&ct.unshift({type:"separator",label:ce("suggested","similar commands")}),ct})()}:Y}toCommandPick(e,r){if(e.type==="separator")return e;let o=this.keybindingService.lookupKeybinding(e.commandId),c=o?ce("commandPickAriaLabelWithKeybinding","{0}, {1}",e.label,o.getAriaLabel()):e.label;return{...e,ariaLabel:c,detail:this.options.showAlias&&e.commandAlias!==e.label?e.commandAlias:void 0,keybinding:o,accept:async()=>{var d,h;this.commandsHistory.push(e.commandId),this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.commandId,from:(d=r?.from)!==null&&d!==void 0?d:"quick open"});try{!((h=e.args)===null||h===void 0)&&h.length?await this.commandService.executeCommand(e.commandId,...e.args):await this.commandService.executeCommand(e.commandId)}catch(b){MI(b)||this.dialogService.error(ce("canNotRun","Command '{0}' resulted in an error",e.label),BJe(b))}}}}getTfIdfChunk({label:e,commandAlias:r,commandDescription:o}){let c=e;return r&&r!==e&&(c+=` - ${r}`),o&&o.value!==e&&(c+=` - ${o.value===o.original?o.value:`${o.value} (${o.original})`}`),c}};sCe.PREFIX=">";sCe.TFIDF_THRESHOLD=.5;sCe.TFIDF_MAX_RESULTS=5;sCe.WORD_FILTER=ULt(fLe,Xki,hri);sCe=F3e=r7i([oCe(1,Pa),oCe(2,Jd),oCe(3,Mp),oCe(4,zv),oCe(5,vre)],sCe);var aCe=x2=class extends tn{constructor(e,r,o){super(),this.storageService=e,this.configurationService=r,this.logService=o,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===dxe.SHUTDOWN&&this.saveState()}))}updateConfiguration(e){e&&!e.affectsConfiguration("workbench.commandPalette.history")||(this.configuredCommandsHistoryLength=x2.getConfiguredCommandHistoryLength(this.configurationService),x2.cache&&x2.cache.limit!==this.configuredCommandsHistoryLength&&(x2.cache.limit=this.configuredCommandsHistoryLength,x2.hasChanges=!0))}load(){let e=this.storageService.get(x2.PREF_KEY_CACHE,0),r;if(e)try{r=JSON.parse(e)}catch(c){this.logService.error(`[CommandsHistory] invalid data: ${c}`)}let o=x2.cache=new WI(this.configuredCommandsHistoryLength,1);if(r){let c;r.usesLRU?c=r.entries:c=r.entries.sort((d,h)=>d.value-h.value),c.forEach(d=>o.set(d.key,d.value))}x2.counter=this.storageService.getNumber(x2.PREF_KEY_COUNTER,0,x2.counter)}push(e){x2.cache&&(x2.cache.set(e,x2.counter++),x2.hasChanges=!0)}peek(e){var r;return(r=x2.cache)===null||r===void 0?void 0:r.peek(e)}saveState(){if(!x2.cache||!x2.hasChanges)return;let e={usesLRU:!0,entries:[]};x2.cache.forEach((r,o)=>e.entries.push({key:o,value:r})),this.storageService.store(x2.PREF_KEY_CACHE,JSON.stringify(e),0,0),this.storageService.store(x2.PREF_KEY_COUNTER,x2.counter,0,0),x2.hasChanges=!1}static getConfiguredCommandHistoryLength(e){var r,o;let d=(o=(r=e.getValue().workbench)===null||r===void 0?void 0:r.commandPalette)===null||o===void 0?void 0:o.history;return typeof d=="number"?d:x2.DEFAULT_COMMANDS_HISTORY_LENGTH}};aCe.DEFAULT_COMMANDS_HISTORY_LENGTH=50;aCe.PREF_KEY_CACHE="commandPalette.mru.cache";aCe.PREF_KEY_COUNTER="commandPalette.mru.counter";aCe.counter=1;aCe.hasChanges=!1;aCe=x2=r7i([oCe(0,GI),oCe(1,_u),oCe(2,jb)],aCe);var X5t=class extends sCe{constructor(e,r,o,c,d,h){super(e,r,o,c,d,h)}getCodeEditorCommandPicks(){var e;let r=this.activeTextEditorControl;if(!r)return[];let o=[];for(let c of r.getSupportedActions()){let d;!((e=c.metadata)===null||e===void 0)&&e.description&&(DTi(c.metadata.description)?d=c.metadata.description:d={original:c.metadata.description,value:c.metadata.description}),o.push({commandId:c.id,commandAlias:c.alias,commandDescription:d,label:rUe(c.label)||c.id})}return o}};bl();f1();W0();n3();YHe();vf();$h();a8();var Sin=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},Yqe=function(l,e){return function(r,o){e(r,o,l)}},Mht=class extends X5t{get activeTextEditorControl(){var e;return(e=this.codeEditorService.getFocusedCodeEditor())!==null&&e!==void 0?e:void 0}constructor(e,r,o,c,d,h){super({showAlias:!1},e,o,c,d,h),this.codeEditorService=r}async getCommandPicks(){return this.getCodeEditorCommandPicks()}hasAdditionalCommandPicks(){return!1}async getAdditionalCommandPicks(){return[]}};Mht=Sin([Yqe(0,Pa),Yqe(1,nf),Yqe(2,Jd),Yqe(3,Mp),Yqe(4,zv),Yqe(5,vre)],Mht);var Rht=class l extends Ca{constructor(){super({id:l.ID,label:Xft.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:Qi.focus,primary:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})}run(e){e.get(S2).quickAccess.show(Mht.PREFIX)}};Rht.ID="editor.action.quickCommand";Qo(Rht);pm.as(VV.Quickaccess).registerQuickAccessProvider({ctor:Mht,prefix:Mht.PREFIX,helpEntries:[{description:Xft.quickCommandHelp,commandId:Rht.ID}]});vf();IC();_y();hd();bl();xA();gQ();var xin=function(l,e,r,o){var c=arguments.length,d=c<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(l,e,r,o);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(d=(c<3?h(d):c>3?h(e,r,d):h(e,r))||d);return c>3&&d&&Object.defineProperty(e,r,d),d},Qqe=function(l,e){return function(r,o){e(r,o,l)}},Chi=class extends toe{constructor(e,r,o,c,d,h,b){super(!0,e,r,o,c,d,h,b)}};Chi=xin([Qqe(1,Ec),Qqe(2,nf),Qqe(3,og),Qqe(4,Pa),Qqe(5,GI),Qqe(6,_u)],Chi);ku(toe.ID,Chi,4);vf();jLe();Dre();Zq();oai();var khi=class extends Ca{constructor(){super({id:"editor.action.toggleHighContrast",label:g3t.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0}),this._originalThemeName=null}run(e,r){let o=e.get($P),c=o.getColorTheme();T6(c.type)?(o.setTheme(this._originalThemeName||(ere(c.type)?BLe:Jre)),this._originalThemeName=null):(o.setTheme(ere(c.type)?gxe:yxe),this._originalThemeName=c.themeName)}};Qo(khi);OT();var M3e=Olt(p7i(),1);function m7i(l,e){return M3e.createSourceFile("input.ts",l,{languageVersion:M3e.ScriptTarget.ESNext},!0,e?M3e.ScriptKind.TSX:M3e.ScriptKind.TS)}function h7i(l,e){let r=l.getLineAndCharacterOfPosition(e.getStart(l,!1)),o=l.getLineAndCharacterOfPosition(e.getEnd());return{message:"[ts-blank-space] Unsupported syntax",startLineNumber:r.line+1,startColumn:r.character+1,endLineNumber:o.line+1,endColumn:o.character+1,severity:Lci.Error}}function g7i(l,e){let r=[];for(let c=0;c extends Array implements HasField { + public field!: string; + + method(this: HasField, a?: string): void { + this.field = a as string; + } +} +`,e=location.hash;if(!e)return{text:l,tsx:!1};try{let r=e.slice(1);return r+=Array((4-r.length%4)%4+1).join("="),r=r.replace(/\-/g,"+").replace(/\_/g,"/"),JSON.parse(atob(r))}catch(r){return console.error(r),{text:l,tsx:!1}}}var Nhi=!1;function Ahi(){let l=R3e.getValue(),e=jht.enabled;try{let r=`${btoa(JSON.stringify({tsx:e,text:l}))}`;r=r.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""),window.history.replaceState(null,"","#"+r)}catch(r){console.error(r)}}var jht=y7i("lang-select","tsx","ts"),S7i=document.getElementById("ghost-check");function x7i(){let l=rpt.typescript;rpt.typescript.typescriptDefaults.setCompilerOptions({target:l.ScriptTarget.ESNext,jsx:jht.enabled?l.JsxEmit.Preserve:l.JsxEmit.None})}var R3e=(()=>{let l=Cin();jht.enabled=!!l.tsx,x7i();let e=Kre.createModel(l.text,"typescript");return e.detectIndentation(!0,4),rpt.typescript.typescriptDefaults.setDiagnosticsOptions({onlyVisible:!0,noSemanticValidation:!0,noSyntaxValidation:!1,noSuggestionDiagnostics:!0}),e})(),Z5t=Kre.createModel("","javascript"),Phi=kin(Z5t),v7i=Phi.createDecorationsCollection();function C7i(){let l=R3e.getValue();if(S7i.checked){let e=l.split(` +`).flatMap((r,o)=>g7i(o+1,r));v7i.set(e)}else v7i.clear()}function Lhi(){let l=R3e.getValue(),e=jht.enabled;try{let r=[],o=m7i(l,e),c=GEt(o,d=>{r.push(h7i(o,d))});Kre.setModelMarkers(R3e,"ts-blank-space",r),Z5t.setValue(c),C7i()}catch(r){console.error(r),Z5t.setValue("Error")}}Lhi();R3e.onDidChangeContent(l=>{Lhi()});jht.onchange=function(){x7i(),Nhi&&Ahi(),Lhi()};S7i.onchange=C7i;document.body.addEventListener("blur",l=>{l.relatedTarget===null&&Nhi&&Nhi&&Ahi()},{capture:!0});document.getElementById("save-button").onclick=Ahi;var k7i=Kre.create(T$.ts,{model:R3e,language:"typescript",codeLens:!1,hover:{enabled:!0},minimap:{enabled:!1},renderLineHighlight:"none",contextmenu:!1,wordWrap:"off",scrollbar:{handleMouseWheel:!1}});function kin(l){return Kre.create(T$.js,{model:l,language:"javascript",readOnly:!0,scrollbar:{handleMouseWheel:!1},codeLens:!1,hover:{enabled:!1},minimap:{enabled:!1},lineNumbers:"on",renderWhitespace:"none",detectIndentation:!1,wordWrap:"off",renderLineHighlight:"none",contextmenu:!1,guides:{indentation:!1}})}k7i.onDidScrollChange(l=>{Phi.setScrollTop(l.scrollTop)});var Bht;function win(){return Bht||(Bht=Kre.createDiffEditor(T$.diff,{codeLens:!1,hover:{enabled:!1},minimap:{enabled:!1},renderLineHighlight:"none",contextmenu:!1,renderSideBySide:!0,useInlineViewWhenSpaceIsLimited:!1,readOnly:!0,originalEditable:!0,diffAlgorithm:"legacy",renderWhitespace:"all"}),Bht.setModel({original:R3e,modified:Z5t}),Bht)}var b7i=document.getElementById("diff-check");b7i.onchange=function(){b7i.checked?(T$.ts.style.display="none",T$.js.style.display="none",T$.diff.style.display="",win().layout()):(T$.ts.style.display="",T$.js.style.display="",T$.diff.style.display="none")};T$.diff.style.display="none";var w7i=new ResizeObserver(()=>{k7i.layout(),Phi.layout()});w7i.observe(T$.ts);w7i.observe(T$.js);var T7i=window.matchMedia("(prefers-color-scheme: dark)");function E7i(){T7i.matches?Kre.setTheme("vs-dark"):Kre.setTheme("vs-light")}T7i.addEventListener("change",E7i);E7i();})(); +/*! Bundled license information: + +typescript/lib/typescript.js: + (*! ***************************************************************************** + Copyright (c) Microsoft Corporation. All rights reserved. + Licensed under the Apache License, Version 2.0 (the "License"); you may not use + this file except in compliance with the License. You may obtain a copy of the + License at http://www.apache.org/licenses/LICENSE-2.0 + + THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED + WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, + MERCHANTABLITY OR NON-INFRINGEMENT. + + See the Apache Version 2.0 License for specific language governing permissions + and limitations under the License. + ***************************************************************************** *) + +monaco-editor/esm/vs/base/browser/dompurify/dompurify.js: + (*! @license DOMPurify 3.0.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.5/LICENSE *) + +monaco-editor/esm/vs/basic-languages/abap/abap.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/apex/apex.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/azcli/azcli.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/bat/bat.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/bicep/bicep.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/cameligo/cameligo.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/clojure/clojure.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/coffee/coffee.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/cpp/cpp.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/csharp/csharp.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/csp/csp.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/css/css.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/cypher/cypher.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/dart/dart.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/dockerfile/dockerfile.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/ecl/ecl.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/elixir/elixir.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/flow9/flow9.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/fsharp/fsharp.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/freemarker2/freemarker2.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/go/go.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/graphql/graphql.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/handlebars/handlebars.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/hcl/hcl.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/html/html.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/ini/ini.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/java/java.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/typescript/typescript.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/javascript/javascript.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/julia/julia.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/kotlin/kotlin.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/less/less.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/lexon/lexon.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/lua/lua.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/liquid/liquid.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/m3/m3.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/markdown/markdown.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/mdx/mdx.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/mips/mips.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/msdax/msdax.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/mysql/mysql.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/objective-c/objective-c.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/pascal/pascal.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/pascaligo/pascaligo.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/perl/perl.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/pgsql/pgsql.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/php/php.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/pla/pla.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/postiats/postiats.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/powerquery/powerquery.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/powershell/powershell.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/protobuf/protobuf.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/pug/pug.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/python/python.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/qsharp/qsharp.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/r/r.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/razor/razor.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/redis/redis.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/redshift/redshift.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/restructuredtext/restructuredtext.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/ruby/ruby.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/rust/rust.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/sb/sb.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/scala/scala.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/scheme/scheme.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/scss/scss.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/shell/shell.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/solidity/solidity.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/sophia/sophia.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/sparql/sparql.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/sql/sql.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/st/st.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/swift/swift.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + (*!--------------------------------------------------------------------------------------------- + * Copyright (C) David Owens II, owensd.io. All rights reserved. + *--------------------------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/systemverilog/systemverilog.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/tcl/tcl.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/twig/twig.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/typespec/typespec.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/vb/vb.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/wgsl/wgsl.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/xml/xml.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/yaml/yaml.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/language/css/cssMode.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/language/html/htmlMode.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/language/json/jsonMode.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/language/typescript/tsMode.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/language/typescript/monaco.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +typescript/lib/typescript.js: + (*! ***************************************************************************** + Copyright (c) Microsoft Corporation. All rights reserved. + Licensed under the Apache License, Version 2.0 (the "License"); you may not use + this file except in compliance with the License. You may obtain a copy of the + License at http://www.apache.org/licenses/LICENSE-2.0 + + THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED + WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, + MERCHANTABLITY OR NON-INFRINGEMENT. + + See the Apache Version 2.0 License for specific language governing permissions + and limitations under the License. + ***************************************************************************** *) + +monaco-editor/esm/vs/basic-languages/_.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/abap/abap.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/apex/apex.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/azcli/azcli.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/bat/bat.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/bicep/bicep.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/cameligo/cameligo.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/clojure/clojure.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/coffee/coffee.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/cpp/cpp.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/csharp/csharp.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/csp/csp.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/css/css.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/cypher/cypher.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/dart/dart.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/dockerfile/dockerfile.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/ecl/ecl.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/elixir/elixir.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/flow9/flow9.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/fsharp/fsharp.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/freemarker2/freemarker2.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/go/go.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/graphql/graphql.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/handlebars/handlebars.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/hcl/hcl.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/html/html.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/ini/ini.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/java/java.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/javascript/javascript.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/julia/julia.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/kotlin/kotlin.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/less/less.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/lexon/lexon.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/lua/lua.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/liquid/liquid.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/m3/m3.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/markdown/markdown.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/mdx/mdx.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/mips/mips.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/msdax/msdax.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/mysql/mysql.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/objective-c/objective-c.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/pascal/pascal.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/pascaligo/pascaligo.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/perl/perl.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/pgsql/pgsql.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/php/php.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/pla/pla.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/postiats/postiats.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/powerquery/powerquery.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/powershell/powershell.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/protobuf/protobuf.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/pug/pug.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/python/python.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/qsharp/qsharp.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/r/r.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/razor/razor.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/redis/redis.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/redshift/redshift.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/restructuredtext/restructuredtext.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/ruby/ruby.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/rust/rust.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/sb/sb.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/scala/scala.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/scheme/scheme.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/scss/scss.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/shell/shell.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/solidity/solidity.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/sophia/sophia.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/sparql/sparql.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/sql/sql.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/st/st.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/swift/swift.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/systemverilog/systemverilog.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/tcl/tcl.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/twig/twig.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/typescript/typescript.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/typespec/typespec.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/vb/vb.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/wgsl/wgsl.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/xml/xml.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/yaml/yaml.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/monaco.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/language/css/monaco.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/language/html/monaco.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/language/json/monaco.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) +*/ diff --git a/vs/editor/editor.worker.js b/vs/editor/editor.worker.js new file mode 100644 index 0000000..1d62580 --- /dev/null +++ b/vs/editor/editor.worker.js @@ -0,0 +1,14 @@ +(()=>{var vn=class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(t){setTimeout(()=>{throw t.stack?at.isErrorNoTelemetry(t)?new at(t.message+` + +`+t.stack):new Error(t.message+` + +`+t.stack):t},0)}}emit(t){this.listeners.forEach(n=>{n(t)})}onUnexpectedError(t){this.unexpectedErrorHandler(t),this.emit(t)}onUnexpectedExternalError(t){this.unexpectedErrorHandler(t)}},Xs=new vn;function ze(e){Qs(e)||Xs.onUnexpectedError(e)}function Nn(e){if(e instanceof Error){let{name:t,message:n}=e,r=e.stacktrace||e.stack;return{$isError:!0,name:t,message:n,stack:r,noTelemetry:at.isErrorNoTelemetry(e)}}return e}var Ln="Canceled";function Qs(e){return e instanceof wn?!0:e instanceof Error&&e.name===Ln&&e.message===Ln}var wn=class extends Error{constructor(){super(Ln),this.name=this.message}};var at=class e extends Error{constructor(t){super(t),this.name="CodeExpectedError"}static fromError(t){if(t instanceof e)return t;let n=new e;return n.message=t.message,n.stack=t.stack,n}static isErrorNoTelemetry(t){return t.name==="CodeExpectedError"}},ee=class e extends Error{constructor(t){super(t||"An unexpected bug occurred."),Object.setPrototypeOf(this,e.prototype)}};function Sn(e,t){let n=this,r=!1,i;return function(){if(r)return i;if(r=!0,t)try{i=e.apply(n,arguments)}finally{t()}else i=e.apply(n,arguments);return i}}var Oe;(function(e){function t(b){return b&&typeof b=="object"&&typeof b[Symbol.iterator]=="function"}e.is=t;let n=Object.freeze([]);function r(){return n}e.empty=r;function*i(b){yield b}e.single=i;function s(b){return t(b)?b:i(b)}e.wrap=s;function a(b){return b||n}e.from=a;function*l(b){for(let L=b.length-1;L>=0;L--)yield b[L]}e.reverse=l;function u(b){return!b||b[Symbol.iterator]().next().done===!0}e.isEmpty=u;function c(b){return b[Symbol.iterator]().next().value}e.first=c;function f(b,L){for(let v of b)if(L(v))return!0;return!1}e.some=f;function h(b,L){for(let v of b)if(L(v))return v}e.find=h;function*d(b,L){for(let v of b)L(v)&&(yield v)}e.filter=d;function*g(b,L){let v=0;for(let A of b)yield L(A,v++)}e.map=g;function*p(...b){for(let L of b)yield*L}e.concat=p;function m(b,L,v){let A=v;for(let y of b)A=L(A,y);return A}e.reduce=m;function*_(b,L,v=b.length){for(L<0&&(L+=b.length),v<0?v+=b.length:v>b.length&&(v=b.length);L{t[e]||console.log(n)},3e3)}setParent(t,n){if(t&&t!==oe.None)try{t[e]=!0}catch{}}markAsDisposed(t){if(t&&t!==oe.None)try{t[e]=!0}catch{}}markAsSingleton(t){}})}function An(e){return se?.trackDisposable(e),e}function Rn(e){se?.markAsDisposed(e)}function Cn(e,t){se?.setParent(e,t)}function Zs(e,t){if(se)for(let n of e)se.setParent(n,t)}function Ar(e){if(Oe.is(e)){let t=[];for(let n of e)if(n)try{n.dispose()}catch(r){t.push(r)}if(t.length===1)throw t[0];if(t.length>1)throw new AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}function Rr(...e){let t=He(()=>Ar(e));return Zs(e,t),t}function He(e){let t=An({dispose:Sn(()=>{Rn(t),e()})});return t}var De=class e{constructor(){this._toDispose=new Set,this._isDisposed=!1,An(this)}dispose(){this._isDisposed||(Rn(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{Ar(this._toDispose)}finally{this._toDispose.clear()}}add(t){if(!t)return t;if(t===this)throw new Error("Cannot register a disposable on itself!");return Cn(t,this),this._isDisposed?e.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(t),t}deleteAndLeak(t){t&&this._toDispose.has(t)&&(this._toDispose.delete(t),Cn(t,null))}};De.DISABLE_DISPOSED_WARNING=!1;var oe=class{constructor(){this._store=new De,An(this),Cn(this._store,this)}dispose(){Rn(this),this._store.dispose()}_register(t){if(t===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(t)}};oe.None=Object.freeze({dispose(){}});var W=class e{constructor(t){this.element=t,this.next=e.Undefined,this.prev=e.Undefined}};W.Undefined=new W(void 0);var lt=class{constructor(){this._first=W.Undefined,this._last=W.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===W.Undefined}clear(){let t=this._first;for(;t!==W.Undefined;){let n=t.next;t.prev=W.Undefined,t.next=W.Undefined,t=n}this._first=W.Undefined,this._last=W.Undefined,this._size=0}unshift(t){return this._insert(t,!1)}push(t){return this._insert(t,!0)}_insert(t,n){let r=new W(t);if(this._first===W.Undefined)this._first=r,this._last=r;else if(n){let s=this._last;this._last=r,r.prev=s,s.next=r}else{let s=this._first;this._first=r,r.next=s,s.prev=r}this._size+=1;let i=!1;return()=>{i||(i=!0,this._remove(r))}}shift(){if(this._first!==W.Undefined){let t=this._first.element;return this._remove(this._first),t}}pop(){if(this._last!==W.Undefined){let t=this._last.element;return this._remove(this._last),t}}_remove(t){if(t.prev!==W.Undefined&&t.next!==W.Undefined){let n=t.prev;n.next=t.next,t.next.prev=n}else t.prev===W.Undefined&&t.next===W.Undefined?(this._first=W.Undefined,this._last=W.Undefined):t.next===W.Undefined?(this._last=this._last.prev,this._last.next=W.Undefined):t.prev===W.Undefined&&(this._first=this._first.next,this._first.prev=W.Undefined);this._size-=1}*[Symbol.iterator](){let t=this._first;for(;t!==W.Undefined;)yield t.element,t=t.next}};var Ks=globalThis.performance&&typeof globalThis.performance.now=="function",$e=class e{static create(t){return new e(t)}constructor(t){this._now=Ks&&t===!1?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 this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}};var e1=!1,yr=!1,t1=!1,Ft;(function(e){e.None=()=>oe.None;function t(x){if(t1){let{onDidAddListener:w}=x,R=ht.create(),C=0;x.onDidAddListener=()=>{++C===2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),R.print()),w?.()}}}function n(x,w){return d(x,()=>{},0,void 0,!0,void 0,w)}e.defer=n;function r(x){return(w,R=null,C)=>{let k=!1,D;return D=x(V=>{if(!k)return D?D.dispose():k=!0,w.call(R,V)},null,C),k&&D.dispose(),D}}e.once=r;function i(x,w,R){return f((C,k=null,D)=>x(V=>C.call(k,w(V)),null,D),R)}e.map=i;function s(x,w,R){return f((C,k=null,D)=>x(V=>{w(V),C.call(k,V)},null,D),R)}e.forEach=s;function a(x,w,R){return f((C,k=null,D)=>x(V=>w(V)&&C.call(k,V),null,D),R)}e.filter=a;function l(x){return x}e.signal=l;function u(...x){return(w,R=null,C)=>{let k=Rr(...x.map(D=>D(V=>w.call(R,V))));return h(k,C)}}e.any=u;function c(x,w,R,C){let k=R;return i(x,D=>(k=w(k,D),k),C)}e.reduce=c;function f(x,w){let R,C={onWillAddFirstListener(){R=x(k.fire,k)},onDidRemoveLastListener(){R?.dispose()}};w||t(C);let k=new Y(C);return w?.add(k),k.event}function h(x,w){return w instanceof Array?w.push(x):w&&w.add(x),x}function d(x,w,R=100,C=!1,k=!1,D,V){let Q,K,We,Mt=0,Fe,Cr={leakWarningThreshold:D,onWillAddFirstListener(){Q=x(Gs=>{Mt++,K=w(K,Gs),C&&!We&&(kt.fire(K),K=void 0),Fe=()=>{let js=K;K=void 0,We=void 0,(!C||Mt>1)&&kt.fire(js),Mt=0},typeof R=="number"?(clearTimeout(We),We=setTimeout(Fe,R)):We===void 0&&(We=0,queueMicrotask(Fe))})},onWillRemoveListener(){k&&Mt>0&&Fe?.()},onDidRemoveLastListener(){Fe=void 0,Q.dispose()}};V||t(Cr);let kt=new Y(Cr);return V?.add(kt),kt.event}e.debounce=d;function g(x,w=0,R){return e.debounce(x,(C,k)=>C?(C.push(k),C):[k],w,void 0,!0,void 0,R)}e.accumulate=g;function p(x,w=(C,k)=>C===k,R){let C=!0,k;return a(x,D=>{let V=C||!w(D,k);return C=!1,k=D,V},R)}e.latch=p;function m(x,w,R){return[e.filter(x,w,R),e.filter(x,C=>!w(C),R)]}e.split=m;function _(x,w=!1,R=[],C){let k=R.slice(),D=x(K=>{k?k.push(K):Q.fire(K)});C&&C.add(D);let V=()=>{k?.forEach(K=>Q.fire(K)),k=null},Q=new Y({onWillAddFirstListener(){D||(D=x(K=>Q.fire(K)),C&&C.add(D))},onDidAddFirstListener(){k&&(w?setTimeout(V):V())},onDidRemoveLastListener(){D&&D.dispose(),D=null}});return C&&C.add(Q),Q.event}e.buffer=_;function N(x,w){return(C,k,D)=>{let V=w(new b);return x(function(Q){let K=V.evaluate(Q);K!==S&&C.call(k,K)},void 0,D)}}e.chain=N;let S=Symbol("HaltChainable");class b{constructor(){this.steps=[]}map(w){return this.steps.push(w),this}forEach(w){return this.steps.push(R=>(w(R),R)),this}filter(w){return this.steps.push(R=>w(R)?R:S),this}reduce(w,R){let C=R;return this.steps.push(k=>(C=w(C,k),C)),this}latch(w=(R,C)=>R===C){let R=!0,C;return this.steps.push(k=>{let D=R||!w(k,C);return R=!1,C=k,D?k:S}),this}evaluate(w){for(let R of this.steps)if(w=R(w),w===S)break;return w}}function L(x,w,R=C=>C){let C=(...Q)=>V.fire(R(...Q)),k=()=>x.on(w,C),D=()=>x.removeListener(w,C),V=new Y({onWillAddFirstListener:k,onDidRemoveLastListener:D});return V.event}e.fromNodeEventEmitter=L;function v(x,w,R=C=>C){let C=(...Q)=>V.fire(R(...Q)),k=()=>x.addEventListener(w,C),D=()=>x.removeEventListener(w,C),V=new Y({onWillAddFirstListener:k,onDidRemoveLastListener:D});return V.event}e.fromDOMEventEmitter=v;function A(x){return new Promise(w=>r(x)(w))}e.toPromise=A;function y(x){let w=new Y;return x.then(R=>{w.fire(R)},()=>{w.fire(void 0)}).finally(()=>{w.dispose()}),w.event}e.fromPromise=y;function E(x,w,R){return w(R),x(C=>w(C))}e.runAndSubscribe=E;class q{constructor(w,R){this._observable=w,this._counter=0,this._hasChanged=!1;let C={onWillAddFirstListener:()=>{w.addObserver(this)},onDidRemoveLastListener:()=>{w.removeObserver(this)}};R||t(C),this.emitter=new Y(C),R&&R.add(this.emitter)}beginUpdate(w){this._counter++}handlePossibleChange(w){}handleChange(w,R){this._hasChanged=!0}endUpdate(w){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function X(x,w){return new q(x,w).emitter.event}e.fromObservable=X;function B(x){return(w,R,C)=>{let k=0,D=!1,V={beginUpdate(){k++},endUpdate(){k--,k===0&&(x.reportChanges(),D&&(D=!1,w.call(R)))},handlePossibleChange(){},handleChange(){D=!0}};x.addObserver(V),x.reportChanges();let Q={dispose(){x.removeObserver(V)}};return C instanceof De?C.add(Q):Array.isArray(C)&&C.push(Q),Q}}e.fromObservableLight=B})(Ft||(Ft={}));var ct=class e{constructor(t){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${t}_${e._idPool++}`,e.all.add(this)}start(t){this._stopWatch=new $e,this.listenerCount=t}stop(){if(this._stopWatch){let t=this._stopWatch.elapsed();this.durations.push(t),this.elapsedOverall+=t,this.invocationCount+=1,this._stopWatch=void 0}}};ct.all=new Set;ct._idPool=0;var Er=-1,yn=class{constructor(t,n,r=Math.random().toString(18).slice(2,5)){this._errorHandler=t,this.threshold=n,this.name=r,this._warnCountdown=0}dispose(){var t;(t=this._stacks)===null||t===void 0||t.clear()}check(t,n){let r=this.threshold;if(r<=0||n{let s=this._stacks.get(t.value)||0;this._stacks.set(t.value,s-1)}}getMostFrequentStack(){if(!this._stacks)return;let t,n=0;for(let[r,i]of this._stacks)(!t||n{if(e instanceof Ge)t(e);else for(let n=0;n{typeof e=="string"&&(console.warn("[LEAKING LISTENER] GC'ed a listener that was NOT yet disposed. This is where is was created:"),console.warn(e))}):void 0,Y=class{constructor(t){var n,r,i,s,a,l;this._size=0,this._options=t,this._leakageMon=Er>0||!((n=this._options)===null||n===void 0)&&n.leakWarningThreshold?new yn((r=t?.onListenerError)!==null&&r!==void 0?r:ze,(s=(i=this._options)===null||i===void 0?void 0:i.leakWarningThreshold)!==null&&s!==void 0?s:Er):void 0,this._perfMon=!((a=this._options)===null||a===void 0)&&a._profName?new ct(this._options._profName):void 0,this._deliveryQueue=(l=this._options)===null||l===void 0?void 0:l.deliveryQueue}dispose(){var t,n,r,i;if(!this._disposed){if(this._disposed=!0,((t=this._deliveryQueue)===null||t===void 0?void 0:t.current)===this&&this._deliveryQueue.reset(),this._listeners){if(yr){let s=this._listeners;queueMicrotask(()=>{r1(s,a=>{var l;return(l=a.stack)===null||l===void 0?void 0:l.print()})})}this._listeners=void 0,this._size=0}(r=(n=this._options)===null||n===void 0?void 0:n.onDidRemoveLastListener)===null||r===void 0||r.call(n),(i=this._leakageMon)===null||i===void 0||i.dispose()}}get event(){var t;return(t=this._event)!==null&&t!==void 0||(this._event=(n,r,i)=>{var s,a,l,u,c,f,h;if(this._leakageMon&&this._size>this._leakageMon.threshold**2){let _=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(_);let N=(s=this._leakageMon.getMostFrequentStack())!==null&&s!==void 0?s:["UNKNOWN stack",-1],S=new Mn(`${_}. HINT: Stack shows most frequent listener (${N[1]}-times)`,N[0]);return(((a=this._options)===null||a===void 0?void 0:a.onListenerError)||ze)(S),oe.None}if(this._disposed)return oe.None;r&&(n=n.bind(r));let d=new Ge(n),g,p;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(d.stack=ht.create(),g=this._leakageMon.check(d.stack,this._size+1)),yr&&(d.stack=p??ht.create()),this._listeners?this._listeners instanceof Ge?((h=this._deliveryQueue)!==null&&h!==void 0||(this._deliveryQueue=new kn),this._listeners=[this._listeners,d]):this._listeners.push(d):((u=(l=this._options)===null||l===void 0?void 0:l.onWillAddFirstListener)===null||u===void 0||u.call(l,this),this._listeners=d,(f=(c=this._options)===null||c===void 0?void 0:c.onDidAddFirstListener)===null||f===void 0||f.call(c,this)),this._size++;let m=He(()=>{ut?.unregister(m),g?.(),this._removeListener(d)});if(i instanceof De?i.add(m):Array.isArray(i)&&i.push(m),ut){let _=new Error().stack.split(` +`).slice(2).join(` +`).trim();ut.register(m,_,m)}return m}),this._event}_removeListener(t){var n,r,i,s;if((r=(n=this._options)===null||n===void 0?void 0:n.onWillRemoveListener)===null||r===void 0||r.call(n,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(s=(i=this._options)===null||i===void 0?void 0:i.onDidRemoveLastListener)===null||s===void 0||s.call(i,this),this._size=0;return}let a=this._listeners,l=a.indexOf(t);if(l===-1)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--,a[l]=void 0;let u=this._deliveryQueue.current===this;if(this._size*n1<=a.length){let c=0;for(let f=0;f0}};var kn=class{constructor(){this.i=-1,this.end=0}enqueue(t,n,r){this.i=0,this.end=r,this.current=t,this.value=n}reset(){this.i=this.end,this.current=void 0,this.value=void 0}};function Mr(e){return typeof e=="string"}function i1(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}function ft(e){let t=[];for(let n of i1(e))typeof e[n]=="function"&&t.push(n);return t}function kr(e,t){let n=i=>function(){let s=Array.prototype.slice.call(arguments,0);return t(i,s)},r={};for(let i of e)r[i]=n(i);return r}var s1=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function o1(e,t){let n;return t.length===0?n=e:n=e.replace(/\{(\d+)\}/g,(r,i)=>{let s=i[0],a=t[s],l=r;return typeof a=="string"?l=a:(typeof a=="number"||typeof a=="boolean"||a===void 0||a===null)&&(l=String(a)),l}),s1&&(n="\uFF3B"+n.replace(/[aouei]/g,"$&$&")+"\uFF3D"),n}function U(e,t,...n){return o1(t,n)}var Fn,Dn,je="en",It=!1,Tt=!1,Pt=!1,l1=!1,u1=!1,Dr=!1,c1=!1,h1=!1,f1=!1,d1=!1,Dt,Pn=je,Fr=je,m1,ae,pe=globalThis,Z;typeof pe.vscode<"u"&&typeof pe.vscode.process<"u"?Z=pe.vscode.process:typeof process<"u"&&typeof((Fn=process==null?void 0:process.versions)===null||Fn===void 0?void 0:Fn.node)=="string"&&(Z=process);var Pr=typeof((Dn=Z?.versions)===null||Dn===void 0?void 0:Dn.electron)=="string",g1=Pr&&Z?.type==="renderer";if(typeof Z=="object"){It=Z.platform==="win32",Tt=Z.platform==="darwin",Pt=Z.platform==="linux",l1=Pt&&!!Z.env.SNAP&&!!Z.env.SNAP_REVISION,c1=Pr,f1=!!Z.env.CI||!!Z.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Dt=je,Pn=je;let e=Z.env.VSCODE_NLS_CONFIG;if(e)try{let t=JSON.parse(e),n=t.availableLanguages["*"];Dt=t.locale,Fr=t.osLocale,Pn=n||je,m1=t._translationsConfigFile}catch{}u1=!0}else typeof navigator=="object"&&!g1?(ae=navigator.userAgent,It=ae.indexOf("Windows")>=0,Tt=ae.indexOf("Macintosh")>=0,h1=(ae.indexOf("Macintosh")>=0||ae.indexOf("iPad")>=0||ae.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Pt=ae.indexOf("Linux")>=0,d1=ae?.indexOf("Mobi")>=0,Dr=!0,Dt=(U({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),void 0)||je,Pn=Dt,Fr=navigator.language):console.error("Unable to resolve platform.");var In=0;Tt?In=1:It?In=3:Pt&&(In=2);var Pe=It,Ir=Tt;var p1=Dr&&typeof pe.importScripts=="function",Go=p1?pe.origin:void 0;var ce=ae;var b1=typeof pe.postMessage=="function"&&!pe.importScripts,jo=(()=>{if(b1){let e=[];pe.addEventListener("message",n=>{if(n.data&&n.data.vscodeScheduleAsyncWork)for(let r=0,i=e.length;r{let r=++t;e.push({id:r,callback:n}),pe.postMessage({vscodeScheduleAsyncWork:r},"*")}}return e=>setTimeout(e)})();var x1=!!(ce&&ce.indexOf("Chrome")>=0),Xo=!!(ce&&ce.indexOf("Firefox")>=0),Qo=!!(!x1&&ce&&ce.indexOf("Safari")>=0),Jo=!!(ce&&ce.indexOf("Edg/")>=0),Yo=!!(ce&&ce.indexOf("Android")>=0);function _1(e){return e}var Bt=class{constructor(t,n){this.lastCache=void 0,this.lastArgKey=void 0,typeof t=="function"?(this._fn=t,this._computeKey=_1):(this._fn=n,this._computeKey=t.getCacheKey)}get(t){let n=this._computeKey(t);return this.lastArgKey!==n&&(this.lastArgKey=n,this.lastCache=this._fn(t)),this.lastCache}};var dt=class{constructor(t){this.executor=t,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(t){this._error=t}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}};var Xe;function Tr(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function Br(e){return e.split(/\r\n|\r|\n/)}function Vr(e){for(let t=0,n=e.length;t=0;n--){let r=e.charCodeAt(n);if(r!==32&&r!==9)return n}return-1}function Bn(e){return e>=65&&e<=90}function Qe(e){return 55296<=e&&e<=56319}function Vt(e){return 56320<=e&&e<=57343}function Vn(e,t){return(e-55296<<10)+(t-56320)+65536}function Ur(e,t,n){let r=e.charCodeAt(n);if(Qe(r)&&n+1n[3*i+1])i=2*i+1;else return n[3*i+2];return 0}};Tn._INSTANCE=null;function L1(){return 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]")}var he=class{static getInstance(t){return Xe.cache.get(Array.from(t))}static getLocales(){return Xe._locales.value}constructor(t){this.confusableDictionary=t}isAmbiguous(t){return this.confusableDictionary.has(t)}getPrimaryConfusable(t){return this.confusableDictionary.get(t)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}};Xe=he;he.ambiguousCharacterData=new dt(()=>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]}'));he.cache=new Bt({getCacheKey:JSON.stringify},e=>{function t(c){let f=new Map;for(let h=0;h!c.startsWith("_")&&c in i);s.length===0&&(s=["_default"]);let a;for(let c of s){let f=t(i[c]);a=r(a,f)}let l=t(i._common),u=n(l,a);return new Xe(u)});he._locales=new dt(()=>Object.keys(Xe.ambiguousCharacterData.value).filter(e=>!e.startsWith("_")));var Ie=class e{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 getData(){return this._data||(this._data=new Set(e.getRawData())),this._data}static isInvisibleCharacter(t){return e.getData().has(t)}static get codePoints(){return e.getData()}};Ie._data=void 0;var w1="$initialize";var qn=class{constructor(t,n,r,i){this.vsWorker=t,this.req=n,this.method=r,this.args=i,this.type=0}},qt=class{constructor(t,n,r,i){this.vsWorker=t,this.seq=n,this.res=r,this.err=i,this.type=1}},Un=class{constructor(t,n,r,i){this.vsWorker=t,this.req=n,this.eventName=r,this.arg=i,this.type=2}},Wn=class{constructor(t,n,r){this.vsWorker=t,this.req=n,this.event=r,this.type=3}},zn=class{constructor(t,n){this.vsWorker=t,this.req=n,this.type=4}},On=class{constructor(t){this._workerId=-1,this._handler=t,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(t){this._workerId=t}sendMessage(t,n){let r=String(++this._lastSentReq);return new Promise((i,s)=>{this._pendingReplies[r]={resolve:i,reject:s},this._send(new qn(this._workerId,r,t,n))})}listen(t,n){let r=null,i=new Y({onWillAddFirstListener:()=>{r=String(++this._lastSentReq),this._pendingEmitters.set(r,i),this._send(new Un(this._workerId,r,t,n))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(r),this._send(new zn(this._workerId,r)),r=null}});return i.event}handleMessage(t){!t||!t.vsWorker||this._workerId!==-1&&t.vsWorker!==this._workerId||this._handleMessage(t)}_handleMessage(t){switch(t.type){case 1:return this._handleReplyMessage(t);case 0:return this._handleRequestMessage(t);case 2:return this._handleSubscribeEventMessage(t);case 3:return this._handleEventMessage(t);case 4:return this._handleUnsubscribeEventMessage(t)}}_handleReplyMessage(t){if(!this._pendingReplies[t.seq]){console.warn("Got reply to unknown seq");return}let n=this._pendingReplies[t.seq];if(delete this._pendingReplies[t.seq],t.err){let r=t.err;t.err.$isError&&(r=new Error,r.name=t.err.name,r.message=t.err.message,r.stack=t.err.stack),n.reject(r);return}n.resolve(t.res)}_handleRequestMessage(t){let n=t.req;this._handler.handleMessage(t.method,t.args).then(i=>{this._send(new qt(this._workerId,n,i,void 0))},i=>{i.detail instanceof Error&&(i.detail=Nn(i.detail)),this._send(new qt(this._workerId,n,void 0,Nn(i)))})}_handleSubscribeEventMessage(t){let n=t.req,r=this._handler.handleEvent(t.eventName,t.arg)(i=>{this._send(new Wn(this._workerId,n,i))});this._pendingEvents.set(n,r)}_handleEventMessage(t){if(!this._pendingEmitters.has(t.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(t.req).fire(t.event)}_handleUnsubscribeEventMessage(t){if(!this._pendingEvents.has(t.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(t.req).dispose(),this._pendingEvents.delete(t.req)}_send(t){let n=[];if(t.type===0)for(let r=0;rfunction(){let l=Array.prototype.slice.call(arguments,0);return t(a,l)},i=a=>function(l){return n(a,l)},s={};for(let a of e){if(Or(a)){s[a]=i(a);continue}if(zr(a)){s[a]=n(a,void 0);continue}s[a]=r(a)}return s}var Ut=class{constructor(t,n){this._requestHandlerFactory=n,this._requestHandler=null,this._protocol=new On({sendMessage:(r,i)=>{t(r,i)},handleMessage:(r,i)=>this._handleMessage(r,i),handleEvent:(r,i)=>this._handleEvent(r,i)})}onmessage(t){this._protocol.handleMessage(t)}_handleMessage(t,n){if(t===w1)return this.initialize(n[0],n[1],n[2],n[3]);if(!this._requestHandler||typeof this._requestHandler[t]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+t));try{return Promise.resolve(this._requestHandler[t].apply(this._requestHandler,n))}catch(r){return Promise.reject(r)}}_handleEvent(t,n){if(!this._requestHandler)throw new Error("Missing requestHandler");if(Or(t)){let r=this._requestHandler[t].call(this._requestHandler,n);if(typeof r!="function")throw new Error(`Missing dynamic event ${t} on request handler.`);return r}if(zr(t)){let r=this._requestHandler[t];if(typeof r!="function")throw new Error(`Missing event ${t} on request handler.`);return r}throw new Error(`Malformed event name ${t}`)}initialize(t,n,r,i){this._protocol.setWorkerId(t);let l=N1(i,(u,c)=>this._protocol.sendMessage(u,c),(u,c)=>this._protocol.listen(u,c));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(l),Promise.resolve(ft(this._requestHandler))):(n&&(typeof n.baseUrl<"u"&&delete n.baseUrl,typeof n.paths<"u"&&typeof n.paths.vs<"u"&&delete n.paths.vs,typeof n.trustedTypesPolicy<"u"&&delete n.trustedTypesPolicy,n.catchError=!0,globalThis.require.config(n)),new Promise((u,c)=>{let f=globalThis.require;f([r],h=>{if(this._requestHandler=h.create(l),!this._requestHandler){c(new Error("No RequestHandler!"));return}u(ft(this._requestHandler))},c)}))}};var le=class{constructor(t,n,r,i){this.originalStart=t,this.originalLength=n,this.modifiedStart=r,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}};function Hr(e,t){return(t<<5)-t+e|0}function Gr(e,t){t=Hr(149417,t);for(let n=0,r=e.length;n>>r)>>>0}function $r(e,t=0,n=e.byteLength,r=0){for(let i=0;in.toString(16).padStart(2,"0")).join(""):S1((e>>>0).toString(16),t/4)}var $n=class e{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(t){let n=t.length;if(n===0)return;let r=this._buff,i=this._buffLen,s=this._leftoverHighSurrogate,a,l;for(s!==0?(a=s,l=-1,s=0):(a=t.charCodeAt(0),l=0);;){let u=a;if(Qe(a))if(l+1>>6,t[n++]=128|(r&63)>>>0):r<65536?(t[n++]=224|(r&61440)>>>12,t[n++]=128|(r&4032)>>>6,t[n++]=128|(r&63)>>>0):(t[n++]=240|(r&1835008)>>>18,t[n++]=128|(r&258048)>>>12,t[n++]=128|(r&4032)>>>6,t[n++]=128|(r&63)>>>0),n>=64&&(this._step(),n-=64,this._totalLen+=64,t[0]=t[64],t[1]=t[65],t[2]=t[66]),n}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()),gt(this._h0)+gt(this._h1)+gt(this._h2)+gt(this._h3)+gt(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,$r(this._buff,this._buffLen),this._buffLen>56&&(this._step(),$r(this._buff));let t=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(t/4294967296),!1),this._buffDV.setUint32(60,t%4294967296,!1),this._step()}_step(){let t=e._bigBlock32,n=this._buffDV;for(let h=0;h<64;h+=4)t.setUint32(h,n.getUint32(h,!1),!1);for(let h=64;h<320;h+=4)t.setUint32(h,Hn(t.getUint32(h-12,!1)^t.getUint32(h-32,!1)^t.getUint32(h-56,!1)^t.getUint32(h-64,!1),1),!1);let r=this._h0,i=this._h1,s=this._h2,a=this._h3,l=this._h4,u,c,f;for(let h=0;h<80;h++)h<20?(u=i&s|~i&a,c=1518500249):h<40?(u=i^s^a,c=1859775393):h<60?(u=i&s|i&a|s&a,c=2400959708):(u=i^s^a,c=3395469782),f=Hn(r,5)+u+l+c+t.getUint32(h*4,!1)&4294967295,l=a,a=s,s=Hn(i,30),i=r,r=f;this._h0=this._h0+r&4294967295,this._h1=this._h1+i&4294967295,this._h2=this._h2+s&4294967295,this._h3=this._h3+a&4294967295,this._h4=this._h4+l&4294967295}};$n._bigBlock32=new DataView(new ArrayBuffer(320));var Wt=class{constructor(t){this.source=t}getElements(){let t=this.source,n=new Int32Array(t.length);for(let r=0,i=t.length;r0||this.m_modifiedCount>0)&&this.m_changes.push(new le(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(t,n){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_originalCount++}AddModifiedElement(t,n){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),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}},pt=class e{constructor(t,n,r=null){this.ContinueProcessingPredicate=r,this._originalSequence=t,this._modifiedSequence=n;let[i,s,a]=e._getElements(t),[l,u,c]=e._getElements(n);this._hasStrings=a&&c,this._originalStringElements=i,this._originalElementsOrHash=s,this._modifiedStringElements=l,this._modifiedElementsOrHash=u,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(t){return t.length>0&&typeof t[0]=="string"}static _getElements(t){let n=t.getElements();if(e._isStringArray(n)){let r=new Int32Array(n.length);for(let i=0,s=n.length;i=t&&i>=r&&this.ElementsAreEqual(n,i);)n--,i--;if(t>n||r>i){let h;return r<=i?(_e.Assert(t===n+1,"originalStart should only be one more than originalEnd"),h=[new le(t,0,r,i-r+1)]):t<=n?(_e.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),h=[new le(t,n-t+1,r,0)]):(_e.Assert(t===n+1,"originalStart should only be one more than originalEnd"),_e.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),h=[]),h}let a=[0],l=[0],u=this.ComputeRecursionPoint(t,n,r,i,a,l,s),c=a[0],f=l[0];if(u!==null)return u;if(!s[0]){let h=this.ComputeDiffRecursive(t,c,r,f,s),d=[];return s[0]?d=[new le(c+1,n-(c+1)+1,f+1,i-(f+1)+1)]:d=this.ComputeDiffRecursive(c+1,n,f+1,i,s),this.ConcatenateChanges(h,d)}return[new le(t,n-t+1,r,i-r+1)]}WALKTRACE(t,n,r,i,s,a,l,u,c,f,h,d,g,p,m,_,N,S){let b=null,L=null,v=new zt,A=n,y=r,E=g[0]-_[0]-i,q=-1073741824,X=this.m_forwardHistory.length-1;do{let B=E+t;B===A||B=0&&(c=this.m_forwardHistory[X],t=c[0],A=1,y=c.length-1)}while(--X>=-1);if(b=v.getReverseChanges(),S[0]){let B=g[0]+1,x=_[0]+1;if(b!==null&&b.length>0){let w=b[b.length-1];B=Math.max(B,w.getOriginalEnd()),x=Math.max(x,w.getModifiedEnd())}L=[new le(B,d-B+1,x,m-x+1)]}else{v=new zt,A=a,y=l,E=g[0]-_[0]-u,q=1073741824,X=N?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{let B=E+s;B===A||B=f[B+1]?(h=f[B+1]-1,p=h-E-u,h>q&&v.MarkNextChange(),q=h+1,v.AddOriginalElement(h+1,p+1),E=B+1-s):(h=f[B-1],p=h-E-u,h>q&&v.MarkNextChange(),q=h,v.AddModifiedElement(h+1,p+1),E=B-1-s),X>=0&&(f=this.m_reverseHistory[X],s=f[0],A=1,y=f.length-1)}while(--X>=-1);L=v.getChanges()}return this.ConcatenateChanges(b,L)}ComputeRecursionPoint(t,n,r,i,s,a,l){let u=0,c=0,f=0,h=0,d=0,g=0;t--,r--,s[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];let p=n-t+(i-r),m=p+1,_=new Int32Array(m),N=new Int32Array(m),S=i-r,b=n-t,L=t-r,v=n-i,y=(b-S)%2===0;_[S]=t,N[b]=n,l[0]=!1;for(let E=1;E<=p/2+1;E++){let q=0,X=0;f=this.ClipDiagonalBound(S-E,E,S,m),h=this.ClipDiagonalBound(S+E,E,S,m);for(let x=f;x<=h;x+=2){x===f||xq+X&&(q=u,X=c),!y&&Math.abs(x-b)<=E-1&&u>=N[x])return s[0]=u,a[0]=c,w<=N[x]&&E<=1448?this.WALKTRACE(S,f,h,L,b,d,g,v,_,N,u,n,s,c,i,a,y,l):null}let B=(q-t+(X-r)-E)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(q,B))return l[0]=!0,s[0]=q,a[0]=X,B>0&&E<=1448?this.WALKTRACE(S,f,h,L,b,d,g,v,_,N,u,n,s,c,i,a,y,l):(t++,r++,[new le(t,n-t+1,r,i-r+1)]);d=this.ClipDiagonalBound(b-E,E,b,m),g=this.ClipDiagonalBound(b+E,E,b,m);for(let x=d;x<=g;x+=2){x===d||x=N[x+1]?u=N[x+1]-1:u=N[x-1],c=u-(x-b)-v;let w=u;for(;u>t&&c>r&&this.ElementsAreEqual(u,c);)u--,c--;if(N[x]=u,y&&Math.abs(x-S)<=E&&u<=_[x])return s[0]=u,a[0]=c,w>=_[x]&&E<=1448?this.WALKTRACE(S,f,h,L,b,d,g,v,_,N,u,n,s,c,i,a,y,l):null}if(E<=1447){let x=new Int32Array(h-f+2);x[0]=S-f+1,ve.Copy2(_,f,x,1,h-f+1),this.m_forwardHistory.push(x),x=new Int32Array(g-d+2),x[0]=b-d+1,ve.Copy2(N,d,x,1,g-d+1),this.m_reverseHistory.push(x)}}return this.WALKTRACE(S,f,h,L,b,d,g,v,_,N,u,n,s,c,i,a,y,l)}PrettifyChanges(t){for(let n=0;n0,l=r.modifiedLength>0;for(;r.originalStart+r.originalLength=0;n--){let r=t[n],i=0,s=0;if(n>0){let h=t[n-1];i=h.originalStart+h.originalLength,s=h.modifiedStart+h.modifiedLength}let a=r.originalLength>0,l=r.modifiedLength>0,u=0,c=this._boundaryScore(r.originalStart,r.originalLength,r.modifiedStart,r.modifiedLength);for(let h=1;;h++){let d=r.originalStart-h,g=r.modifiedStart-h;if(dc&&(c=m,u=h)}r.originalStart-=u,r.modifiedStart-=u;let f=[null];if(n>0&&this.ChangesOverlap(t[n-1],t[n],f)){t[n-1]=f[0],t.splice(n,1),n++;continue}}if(this._hasStrings)for(let n=1,r=t.length;n0&&g>u&&(u=g,c=h,f=d)}return u>0?[c,f]:null}_contiguousSequenceScore(t,n,r){let i=0;for(let s=0;s=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[t])}_OriginalRegionIsBoundary(t,n){if(this._OriginalIsBoundary(t)||this._OriginalIsBoundary(t-1))return!0;if(n>0){let r=t+n;if(this._OriginalIsBoundary(r-1)||this._OriginalIsBoundary(r))return!0}return!1}_ModifiedIsBoundary(t){return t<=0||t>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[t])}_ModifiedRegionIsBoundary(t,n){if(this._ModifiedIsBoundary(t)||this._ModifiedIsBoundary(t-1))return!0;if(n>0){let r=t+n;if(this._ModifiedIsBoundary(r-1)||this._ModifiedIsBoundary(r))return!0}return!1}_boundaryScore(t,n,r,i){let s=this._OriginalRegionIsBoundary(t,n)?1:0,a=this._ModifiedRegionIsBoundary(r,i)?1:0;return s+a}ConcatenateChanges(t,n){let r=[];if(t.length===0||n.length===0)return n.length>0?n:t;if(this.ChangesOverlap(t[t.length-1],n[0],r)){let i=new Array(t.length+n.length-1);return ve.Copy(t,0,i,0,t.length-1),i[t.length-1]=r[0],ve.Copy(n,1,i,t.length,n.length-1),i}else{let i=new Array(t.length+n.length);return ve.Copy(t,0,i,0,t.length),ve.Copy(n,0,i,t.length,n.length),i}}ChangesOverlap(t,n,r){if(_e.Assert(t.originalStart<=n.originalStart,"Left change is not less than or equal to right change"),_e.Assert(t.modifiedStart<=n.modifiedStart,"Left change is not less than or equal to right change"),t.originalStart+t.originalLength>=n.originalStart||t.modifiedStart+t.modifiedLength>=n.modifiedStart){let i=t.originalStart,s=t.originalLength,a=t.modifiedStart,l=t.modifiedLength;return t.originalStart+t.originalLength>=n.originalStart&&(s=n.originalStart+n.originalLength-t.originalStart),t.modifiedStart+t.modifiedLength>=n.modifiedStart&&(l=n.modifiedStart+n.modifiedLength-t.modifiedStart),r[0]=new le(i,s,a,l),!0}else return r[0]=null,!1}ClipDiagonalBound(t,n,r,i){if(t>=0&&t=A1&&e<=y1||e>=R1&&e<=E1}function Ht(e,t,n,r){let i="",s=0,a=-1,l=0,u=0;for(let c=0;c<=e.length;++c){if(c2){let f=i.lastIndexOf(n);f===-1?(i="",s=0):(i=i.slice(0,f),s=i.length-1-i.lastIndexOf(n)),a=c,l=0;continue}else if(i.length!==0){i="",s=0,a=c,l=0;continue}}t&&(i+=i.length>0?`${n}..`:"..",s=2)}else i.length>0?i+=`${n}${e.slice(a+1,c)}`:i=e.slice(a+1,c),s=c-a-1;a=c,l=0}else u===Ne&&l!==-1?++l:l=-1}return i}function Jr(e,t){k1(t,"pathObject");let n=t.dir||t.root,r=t.base||`${t.name||""}${t.ext||""}`;return n?n===t.root?`${n}${r}`:`${n}${e}${r}`:r}var te={resolve(...e){let t="",n="",r=!1;for(let i=e.length-1;i>=-1;i--){let s;if(i>=0){if(s=e[i],$(s,"path"),s.length===0)continue}else t.length===0?s=bt():(s=Xr[`=${t}`]||bt(),(s===void 0||s.slice(0,2).toLowerCase()!==t.toLowerCase()&&s.charCodeAt(2)===re)&&(s=`${t}\\`));let a=s.length,l=0,u="",c=!1,f=s.charCodeAt(0);if(a===1)F(f)&&(l=1,c=!0);else if(F(f))if(c=!0,F(s.charCodeAt(1))){let h=2,d=h;for(;h2&&F(s.charCodeAt(2))&&(c=!0,l=3));if(u.length>0)if(t.length>0){if(u.toLowerCase()!==t.toLowerCase())continue}else t=u;if(r){if(t.length>0)break}else if(n=`${s.slice(l)}\\${n}`,r=c,c&&t.length>0)break}return n=Ht(n,!r,"\\",F),r?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){$(e,"path");let t=e.length;if(t===0)return".";let n=0,r,i=!1,s=e.charCodeAt(0);if(t===1)return jn(s)?"\\":e;if(F(s))if(i=!0,F(e.charCodeAt(1))){let l=2,u=l;for(;l2&&F(e.charCodeAt(2))&&(i=!0,n=3));let a=n0&&F(e.charCodeAt(t-1))&&(a+="\\"),r===void 0?i?`\\${a}`:a:i?`${r}\\${a}`:`${r}${a}`},isAbsolute(e){$(e,"path");let t=e.length;if(t===0)return!1;let n=e.charCodeAt(0);return F(n)||t>2&&we(n)&&e.charCodeAt(1)===Le&&F(e.charCodeAt(2))},join(...e){if(e.length===0)return".";let t,n;for(let s=0;s0&&(t===void 0?t=n=a:t+=`\\${a}`)}if(t===void 0)return".";let r=!0,i=0;if(typeof n=="string"&&F(n.charCodeAt(0))){++i;let s=n.length;s>1&&F(n.charCodeAt(1))&&(++i,s>2&&(F(n.charCodeAt(2))?++i:r=!1))}if(r){for(;i=2&&(t=`\\${t.slice(i)}`)}return te.normalize(t)},relative(e,t){if($(e,"from"),$(t,"to"),e===t)return"";let n=te.resolve(e),r=te.resolve(t);if(n===r||(e=n.toLowerCase(),t=r.toLowerCase(),e===t))return"";let i=0;for(;ii&&e.charCodeAt(s-1)===re;)s--;let a=s-i,l=0;for(;ll&&t.charCodeAt(u-1)===re;)u--;let c=u-l,f=af){if(t.charCodeAt(l+d)===re)return r.slice(l+d+1);if(d===2)return r.slice(l+d)}a>f&&(e.charCodeAt(i+d)===re?h=d:d===2&&(h=3)),h===-1&&(h=0)}let g="";for(d=i+h+1;d<=s;++d)(d===s||e.charCodeAt(d)===re)&&(g+=g.length===0?"..":"\\..");return l+=h,g.length>0?`${g}${r.slice(l,u)}`:(r.charCodeAt(l)===re&&++l,r.slice(l,u))},toNamespacedPath(e){if(typeof e!="string"||e.length===0)return e;let t=te.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===re){if(t.charCodeAt(1)===re){let n=t.charCodeAt(2);if(n!==M1&&n!==Ne)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(we(t.charCodeAt(0))&&t.charCodeAt(1)===Le&&t.charCodeAt(2)===re)return`\\\\?\\${t}`;return e},dirname(e){$(e,"path");let t=e.length;if(t===0)return".";let n=-1,r=0,i=e.charCodeAt(0);if(t===1)return F(i)?e:".";if(F(i)){if(n=r=1,F(e.charCodeAt(1))){let l=2,u=l;for(;l2&&F(e.charCodeAt(2))?3:2,r=n);let s=-1,a=!0;for(let l=t-1;l>=r;--l)if(F(e.charCodeAt(l))){if(!a){s=l;break}}else a=!1;if(s===-1){if(n===-1)return".";s=n}return e.slice(0,s)},basename(e,t){t!==void 0&&$(t,"ext"),$(e,"path");let n=0,r=-1,i=!0,s;if(e.length>=2&&we(e.charCodeAt(0))&&e.charCodeAt(1)===Le&&(n=2),t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let a=t.length-1,l=-1;for(s=e.length-1;s>=n;--s){let u=e.charCodeAt(s);if(F(u)){if(!i){n=s+1;break}}else l===-1&&(i=!1,l=s+1),a>=0&&(u===t.charCodeAt(a)?--a===-1&&(r=s):(a=-1,r=l))}return n===r?r=l:r===-1&&(r=e.length),e.slice(n,r)}for(s=e.length-1;s>=n;--s)if(F(e.charCodeAt(s))){if(!i){n=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":e.slice(n,r)},extname(e){$(e,"path");let t=0,n=-1,r=0,i=-1,s=!0,a=0;e.length>=2&&e.charCodeAt(1)===Le&&we(e.charCodeAt(0))&&(t=r=2);for(let l=e.length-1;l>=t;--l){let u=e.charCodeAt(l);if(F(u)){if(!s){r=l+1;break}continue}i===-1&&(s=!1,i=l+1),u===Ne?n===-1?n=l:a!==1&&(a=1):n!==-1&&(a=-1)}return n===-1||i===-1||a===0||a===1&&n===i-1&&n===r+1?"":e.slice(n,i)},format:Jr.bind(null,"\\"),parse(e){$(e,"path");let t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;let n=e.length,r=0,i=e.charCodeAt(0);if(n===1)return F(i)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(F(i)){if(r=1,F(e.charCodeAt(1))){let h=2,d=h;for(;h0&&(t.root=e.slice(0,r));let s=-1,a=r,l=-1,u=!0,c=e.length-1,f=0;for(;c>=r;--c){if(i=e.charCodeAt(c),F(i)){if(!u){a=c+1;break}continue}l===-1&&(u=!1,l=c+1),i===Ne?s===-1?s=c:f!==1&&(f=1):s!==-1&&(f=-1)}return l!==-1&&(s===-1||f===0||f===1&&s===l-1&&s===a+1?t.base=t.name=e.slice(a,l):(t.name=e.slice(a,s),t.base=e.slice(a,l),t.ext=e.slice(s,l))),a>0&&a!==r?t.dir=e.slice(0,a-1):t.dir=t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},F1=(()=>{if(Se){let e=/\\/g;return()=>{let t=bt().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>bt()})(),ne={resolve(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:F1();$(i,"path"),i.length!==0&&(t=`${i}/${t}`,n=i.charCodeAt(0)===J)}return t=Ht(t,!n,"/",jn),n?`/${t}`:t.length>0?t:"."},normalize(e){if($(e,"path"),e.length===0)return".";let t=e.charCodeAt(0)===J,n=e.charCodeAt(e.length-1)===J;return e=Ht(e,!t,"/",jn),e.length===0?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute(e){return $(e,"path"),e.length>0&&e.charCodeAt(0)===J},join(...e){if(e.length===0)return".";let t;for(let n=0;n0&&(t===void 0?t=r:t+=`/${r}`)}return t===void 0?".":ne.normalize(t)},relative(e,t){if($(e,"from"),$(t,"to"),e===t||(e=ne.resolve(e),t=ne.resolve(t),e===t))return"";let n=1,r=e.length,i=r-n,s=1,a=t.length-s,l=il){if(t.charCodeAt(s+c)===J)return t.slice(s+c+1);if(c===0)return t.slice(s+c)}else i>l&&(e.charCodeAt(n+c)===J?u=c:c===0&&(u=0));let f="";for(c=n+u+1;c<=r;++c)(c===r||e.charCodeAt(c)===J)&&(f+=f.length===0?"..":"/..");return`${f}${t.slice(s+u)}`},toNamespacedPath(e){return e},dirname(e){if($(e,"path"),e.length===0)return".";let t=e.charCodeAt(0)===J,n=-1,r=!0;for(let i=e.length-1;i>=1;--i)if(e.charCodeAt(i)===J){if(!r){n=i;break}}else r=!1;return n===-1?t?"/":".":t&&n===1?"//":e.slice(0,n)},basename(e,t){t!==void 0&&$(t,"ext"),$(e,"path");let n=0,r=-1,i=!0,s;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let a=t.length-1,l=-1;for(s=e.length-1;s>=0;--s){let u=e.charCodeAt(s);if(u===J){if(!i){n=s+1;break}}else l===-1&&(i=!1,l=s+1),a>=0&&(u===t.charCodeAt(a)?--a===-1&&(r=s):(a=-1,r=l))}return n===r?r=l:r===-1&&(r=e.length),e.slice(n,r)}for(s=e.length-1;s>=0;--s)if(e.charCodeAt(s)===J){if(!i){n=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":e.slice(n,r)},extname(e){$(e,"path");let t=-1,n=0,r=-1,i=!0,s=0;for(let a=e.length-1;a>=0;--a){let l=e.charCodeAt(a);if(l===J){if(!i){n=a+1;break}continue}r===-1&&(i=!1,r=a+1),l===Ne?t===-1?t=a:s!==1&&(s=1):t!==-1&&(s=-1)}return t===-1||r===-1||s===0||s===1&&t===r-1&&t===n+1?"":e.slice(t,r)},format:Jr.bind(null,"/"),parse(e){$(e,"path");let t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;let n=e.charCodeAt(0)===J,r;n?(t.root="/",r=1):r=0;let i=-1,s=0,a=-1,l=!0,u=e.length-1,c=0;for(;u>=r;--u){let f=e.charCodeAt(u);if(f===J){if(!l){s=u+1;break}continue}a===-1&&(l=!1,a=u+1),f===Ne?i===-1?i=u:c!==1&&(c=1):i!==-1&&(c=-1)}if(a!==-1){let f=s===0&&n?1:s;i===-1||c===0||c===1&&i===a-1&&i===s+1?t.base=t.name=e.slice(f,a):(t.name=e.slice(f,i),t.base=e.slice(f,a),t.ext=e.slice(i,a))}return s>0?t.dir=e.slice(0,s-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};ne.win32=te.win32=te;ne.posix=te.posix=ne;var pa=Se?te.normalize:ne.normalize,ba=Se?te.resolve:ne.resolve,xa=Se?te.relative:ne.relative,_a=Se?te.dirname:ne.dirname,va=Se?te.basename:ne.basename,La=Se?te.extname:ne.extname,wa=Se?te.sep:ne.sep;var P1=/^\w[\w\d+.-]*$/,I1=/^\//,T1=/^\/\//;function B1(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&&!P1.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!I1.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(T1.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 ("//")')}}function V1(e,t){return!e&&!t?"file":e}function q1(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==ue&&(t=ue+t):t=ue;break}return t}var z="",ue="/",U1=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,Ae=class e{static isUri(t){return t instanceof e?!0:t?typeof t.authority=="string"&&typeof t.fragment=="string"&&typeof t.path=="string"&&typeof t.query=="string"&&typeof t.scheme=="string"&&typeof t.fsPath=="string"&&typeof t.with=="function"&&typeof t.toString=="function":!1}constructor(t,n,r,i,s,a=!1){typeof t=="object"?(this.scheme=t.scheme||z,this.authority=t.authority||z,this.path=t.path||z,this.query=t.query||z,this.fragment=t.fragment||z):(this.scheme=V1(t,a),this.authority=n||z,this.path=q1(this.scheme,r||z),this.query=i||z,this.fragment=s||z,B1(this,a))}get fsPath(){return Xn(this,!1)}with(t){if(!t)return this;let{scheme:n,authority:r,path:i,query:s,fragment:a}=t;return n===void 0?n=this.scheme:n===null&&(n=z),r===void 0?r=this.authority:r===null&&(r=z),i===void 0?i=this.path:i===null&&(i=z),s===void 0?s=this.query:s===null&&(s=z),a===void 0?a=this.fragment:a===null&&(a=z),n===this.scheme&&r===this.authority&&i===this.path&&s===this.query&&a===this.fragment?this:new Ce(n,r,i,s,a)}static parse(t,n=!1){let r=U1.exec(t);return r?new Ce(r[2]||z,$t(r[4]||z),$t(r[5]||z),$t(r[7]||z),$t(r[9]||z),n):new Ce(z,z,z,z,z)}static file(t){let n=z;if(Pe&&(t=t.replace(/\\/g,ue)),t[0]===ue&&t[1]===ue){let r=t.indexOf(ue,2);r===-1?(n=t.substring(2),t=ue):(n=t.substring(2,r),t=t.substring(r)||ue)}return new Ce("file",n,t,z,z)}static from(t,n){return new Ce(t.scheme,t.authority,t.path,t.query,t.fragment,n)}static joinPath(t,...n){if(!t.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let r;return Pe&&t.scheme==="file"?r=e.file(te.join(Xn(t,!0),...n)).path:r=ne.join(t.path,...n),t.with({path:r})}toString(t=!1){return Qn(this,t)}toJSON(){return this}static revive(t){var n,r;if(t){if(t instanceof e)return t;{let i=new Ce(t);return i._formatted=(n=t.external)!==null&&n!==void 0?n:null,i._fsPath=t._sep===Kr&&(r=t.fsPath)!==null&&r!==void 0?r:null,i}}else return t}},Kr=Pe?1:void 0,Ce=class extends Ae{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=Xn(this,!1)),this._fsPath}toString(t=!1){return t?Qn(this,!0):(this._formatted||(this._formatted=Qn(this,!1)),this._formatted)}toJSON(){let t={$mid:1};return this._fsPath&&(t.fsPath=this._fsPath,t._sep=Kr),this._formatted&&(t.external=this._formatted),this.path&&(t.path=this.path),this.scheme&&(t.scheme=this.scheme),this.authority&&(t.authority=this.authority),this.query&&(t.query=this.query),this.fragment&&(t.fragment=this.fragment),t}},ei={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 Yr(e,t,n){let r,i=-1;for(let s=0;s=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||a===45||a===46||a===95||a===126||t&&a===47||n&&a===91||n&&a===93||n&&a===58)i!==-1&&(r+=encodeURIComponent(e.substring(i,s)),i=-1),r!==void 0&&(r+=e.charAt(s));else{r===void 0&&(r=e.substr(0,s));let l=ei[a];l!==void 0?(i!==-1&&(r+=encodeURIComponent(e.substring(i,s)),i=-1),r+=l):i===-1&&(i=s)}}return i!==-1&&(r+=encodeURIComponent(e.substring(i))),r!==void 0?r:e}function W1(e){let t;for(let n=0;n1&&e.scheme==="file"?n=`//${e.authority}${e.path}`:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?t?n=e.path.substr(1):n=e.path[1].toLowerCase()+e.path.substr(2):n=e.path,Pe&&(n=n.replace(/\//g,"\\")),n}function Qn(e,t){let n=t?W1:Yr,r="",{scheme:i,authority:s,path:a,query:l,fragment:u}=e;if(i&&(r+=i,r+=":"),(s||i==="file")&&(r+=ue,r+=ue),s){let c=s.indexOf("@");if(c!==-1){let f=s.substr(0,c);s=s.substr(c+1),c=f.lastIndexOf(":"),c===-1?r+=n(f,!1,!1):(r+=n(f.substr(0,c),!1,!1),r+=":",r+=n(f.substr(c+1),!1,!0)),r+="@"}s=s.toLowerCase(),c=s.lastIndexOf(":"),c===-1?r+=n(s,!1,!0):(r+=n(s.substr(0,c),!1,!0),r+=s.substr(c))}if(a){if(a.length>=3&&a.charCodeAt(0)===47&&a.charCodeAt(2)===58){let c=a.charCodeAt(1);c>=65&&c<=90&&(a=`/${String.fromCharCode(c+32)}:${a.substr(3)}`)}else if(a.length>=2&&a.charCodeAt(1)===58){let c=a.charCodeAt(0);c>=65&&c<=90&&(a=`${String.fromCharCode(c+32)}:${a.substr(2)}`)}r+=n(a,!0,!1)}return l&&(r+="?",r+=n(l,!1,!1)),u&&(r+="#",r+=t?u:Yr(u,!1,!1)),r}function ti(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+ti(e.substr(3)):e}}var Zr=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function $t(e){return e.match(Zr)?e.replace(Zr,t=>ti(t)):e}var O=class e{constructor(t,n){this.lineNumber=t,this.column=n}with(t=this.lineNumber,n=this.column){return t===this.lineNumber&&n===this.column?this:new e(t,n)}delta(t=0,n=0){return this.with(this.lineNumber+t,this.column+n)}equals(t){return e.equals(this,t)}static equals(t,n){return!t&&!n?!0:!!t&&!!n&&t.lineNumber===n.lineNumber&&t.column===n.column}isBefore(t){return e.isBefore(this,t)}static isBefore(t,n){return t.lineNumberr||t===r&&n>i?(this.startLineNumber=r,this.startColumn=i,this.endLineNumber=t,this.endColumn=n):(this.startLineNumber=t,this.startColumn=n,this.endLineNumber=r,this.endColumn=i)}isEmpty(){return e.isEmpty(this)}static isEmpty(t){return t.startLineNumber===t.endLineNumber&&t.startColumn===t.endColumn}containsPosition(t){return e.containsPosition(this,t)}static containsPosition(t,n){return!(n.lineNumbert.endLineNumber||n.lineNumber===t.startLineNumber&&n.columnt.endColumn)}static strictContainsPosition(t,n){return!(n.lineNumbert.endLineNumber||n.lineNumber===t.startLineNumber&&n.column<=t.startColumn||n.lineNumber===t.endLineNumber&&n.column>=t.endColumn)}containsRange(t){return e.containsRange(this,t)}static containsRange(t,n){return!(n.startLineNumbert.endLineNumber||n.endLineNumber>t.endLineNumber||n.startLineNumber===t.startLineNumber&&n.startColumnt.endColumn)}strictContainsRange(t){return e.strictContainsRange(this,t)}static strictContainsRange(t,n){return!(n.startLineNumbert.endLineNumber||n.endLineNumber>t.endLineNumber||n.startLineNumber===t.startLineNumber&&n.startColumn<=t.startColumn||n.endLineNumber===t.endLineNumber&&n.endColumn>=t.endColumn)}plusRange(t){return e.plusRange(this,t)}static plusRange(t,n){let r,i,s,a;return n.startLineNumbert.endLineNumber?(s=n.endLineNumber,a=n.endColumn):n.endLineNumber===t.endLineNumber?(s=n.endLineNumber,a=Math.max(n.endColumn,t.endColumn)):(s=t.endLineNumber,a=t.endColumn),new e(r,i,s,a)}intersectRanges(t){return e.intersectRanges(this,t)}static intersectRanges(t,n){let r=t.startLineNumber,i=t.startColumn,s=t.endLineNumber,a=t.endColumn,l=n.startLineNumber,u=n.startColumn,c=n.endLineNumber,f=n.endColumn;return rc?(s=c,a=f):s===c&&(a=Math.min(a,f)),r>s||r===s&&i>a?null:new e(r,i,s,a)}equalsRange(t){return e.equalsRange(this,t)}static equalsRange(t,n){return!t&&!n?!0:!!t&&!!n&&t.startLineNumber===n.startLineNumber&&t.startColumn===n.startColumn&&t.endLineNumber===n.endLineNumber&&t.endColumn===n.endColumn}getEndPosition(){return e.getEndPosition(this)}static getEndPosition(t){return new O(t.endLineNumber,t.endColumn)}getStartPosition(){return e.getStartPosition(this)}static getStartPosition(t){return new O(t.startLineNumber,t.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(t,n){return new e(this.startLineNumber,this.startColumn,t,n)}setStartPosition(t,n){return new e(t,n,this.endLineNumber,this.endColumn)}collapseToStart(){return e.collapseToStart(this)}static collapseToStart(t){return new e(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)}collapseToEnd(){return e.collapseToEnd(this)}static collapseToEnd(t){return new e(t.endLineNumber,t.endColumn,t.endLineNumber,t.endColumn)}delta(t){return new e(this.startLineNumber+t,this.startColumn,this.endLineNumber+t,this.endColumn)}static fromPositions(t,n=t){return new e(t.lineNumber,t.column,n.lineNumber,n.column)}static lift(t){return t?new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null}static isIRange(t){return t&&typeof t.startLineNumber=="number"&&typeof t.startColumn=="number"&&typeof t.endLineNumber=="number"&&typeof t.endColumn=="number"}static areIntersectingOrTouching(t,n){return!(t.endLineNumbert.startLineNumber}toJSON(){return this}};function ni(e,t,n=(r,i)=>r===i){if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let r=0,i=e.length;r0}e.isGreaterThan=r;function i(s){return s===0}e.isNeitherLessOrGreaterThan=i,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0})(Jn||(Jn={}));function xt(e,t){return(n,r)=>t(e(n),e(r))}var _t=(e,t)=>e-t;function ai(e){return(t,n)=>-e(t,n)}var Gt=class e{constructor(t){this.iterate=t}toArray(){let t=[];return this.iterate(n=>(t.push(n),!0)),t}filter(t){return new e(n=>this.iterate(r=>t(r)?n(r):!0))}map(t){return new e(n=>this.iterate(r=>n(t(r))))}findLast(t){let n;return this.iterate(r=>(t(r)&&(n=r),!0)),n}findLastMaxBy(t){let n,r=!0;return this.iterate(i=>((r||Jn.isGreaterThan(t(i,n)))&&(r=!1,n=i),!0)),n}};Gt.empty=new Gt(e=>{});function Yn(e){return e<0?0:e>255?255:e|0}function Te(e){return e<0?0:e>4294967295?4294967295:e|0}var jt=class{constructor(t){this.values=t,this.prefixSum=new Uint32Array(t.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(t,n){t=Te(t);let r=this.values,i=this.prefixSum,s=n.length;return s===0?!1:(this.values=new Uint32Array(r.length+s),this.values.set(r.subarray(0,t),0),this.values.set(r.subarray(t),t+s),this.values.set(n,t),t-1=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(t,n){return t=Te(t),n=Te(n),this.values[t]===n?!1:(this.values[t]=n,t-1=r.length)return!1;let s=r.length-t;return n>=s&&(n=s),n===0?!1:(this.values=new Uint32Array(r.length-n),this.values.set(r.subarray(0,t),0),this.values.set(r.subarray(t+n),t),this.prefixSum=new Uint32Array(this.values.length),t-1=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(t){return t<0?0:(t=Te(t),this._getPrefixSum(t))}_getPrefixSum(t){if(t<=this.prefixSumValidIndex[0])return this.prefixSum[t];let n=this.prefixSumValidIndex[0]+1;n===0&&(this.prefixSum[0]=this.values[0],n++),t>=this.values.length&&(t=this.values.length-1);for(let r=n;r<=t;r++)this.prefixSum[r]=this.prefixSum[r-1]+this.values[r];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],t),this.prefixSum[t]}getIndexOf(t){t=Math.floor(t),this.getTotalSum();let n=0,r=this.values.length-1,i=0,s=0,a=0;for(;n<=r;)if(i=n+(r-n)/2|0,s=this.prefixSum[i],a=s-this.values[i],t=s)n=i+1;else break;return new Zn(i,t-a)}};var Zn=class{constructor(t,n){this.index=t,this.remainder=n,this._prefixSumIndexOfResultBrand=void 0,this.index=t,this.remainder=n}};var Xt=class{constructor(t,n,r,i){this._uri=t,this._lines=n,this._eol=r,this._versionId=i,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(t){t.eol&&t.eol!==this._eol&&(this._eol=t.eol,this._lineStarts=null);let n=t.changes;for(let r of n)this._acceptDeleteRange(r.range),this._acceptInsertText(new O(r.range.startLineNumber,r.range.startColumn),r.text);this._versionId=t.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){let t=this._eol.length,n=this._lines.length,r=new Uint32Array(n);for(let i=0;i/?";function O1(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(let n of z1)e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}var Kn=O1();function er(e){let t=Kn;if(e&&e instanceof RegExp)if(e.global)t=e;else{let n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}var li=new lt;li.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function vt(e,t,n,r,i){if(t=er(t),i||(i=Oe.first(li)),n.length>i.maxLen){let c=e-i.maxLen/2;return c<0?c=0:r+=c,n=n.substring(c,e+i.maxLen/2),vt(e,t,n,r,i)}let s=Date.now(),a=e-1-r,l=-1,u=null;for(let c=1;!(Date.now()-s>=i.timeBudget);c++){let f=a-i.windowSize*c;t.lastIndex=Math.max(0,f);let h=H1(t,n,a,l);if(!h&&u||(u=h,f<=0))break;l=f}if(u){let c={word:u[0],startColumn:r+1+u.index,endColumn:r+1+u.index+u[0].length};return t.lastIndex=0,c}return null}function H1(e,t,n,r){let i;for(;i=e.exec(t);){let s=i.index||0;if(s<=n&&e.lastIndex>=n)return i;if(r>0&&s>r)return null}return null}var Lt=class e{constructor(t){let n=Yn(t);this._defaultValue=n,this._asciiMap=e._createAsciiMap(n),this._map=new Map}static _createAsciiMap(t){let n=new Uint8Array(256);return n.fill(t),n}set(t,n){let r=Yn(n);t>=0&&t<256?this._asciiMap[t]=r:this._map.set(t,r)}get(t){return t>=0&&t<256?this._asciiMap[t]:this._map.get(t)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}};var nr=class{constructor(t,n,r){let i=new Uint8Array(t*n);for(let s=0,a=t*n;sn&&(n=u),l>r&&(r=l),c>r&&(r=c)}n++,r++;let i=new nr(r,n,0);for(let s=0,a=t.length;s=this._maxCharCode?0:this._states.get(t,n)}},tr=null;function $1(){return tr===null&&(tr=new rr([[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]])),tr}var wt=null;function G1(){if(wt===null){wt=new Lt(0);let e=` <>'"\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 n=0;ni);if(i>0){let l=n.charCodeAt(i-1),u=n.charCodeAt(a);(l===40&&u===41||l===91&&u===93||l===123&&u===125)&&a--}return{range:{startLineNumber:r,startColumn:i+1,endLineNumber:r,endColumn:a+2},url:n.substring(i,a+1)}}static computeLinks(t,n=$1()){let r=G1(),i=[];for(let s=1,a=t.getLineCount();s<=a;s++){let l=t.getLineContent(s),u=l.length,c=0,f=0,h=0,d=1,g=!1,p=!1,m=!1,_=!1;for(;c=0?(i+=r?1:-1,i<0?i=t.length-1:i%=t.length,t[i]):null}};Ye.INSTANCE=new Ye;var ci=Object.freeze(function(e,t){let n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}}),Qt;(function(e){function t(n){return n===e.None||n===e.Cancelled||n instanceof Ze?!0:!n||typeof n!="object"?!1:typeof n.isCancellationRequested=="boolean"&&typeof n.onCancellationRequested=="function"}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Ft.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:ci})})(Qt||(Qt={}));var Ze=class{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?ci:(this._emitter||(this._emitter=new Y),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}},Jt=class{constructor(t){this._token=void 0,this._parentListener=void 0,this._parentListener=t&&t.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new Ze),this._token}cancel(){this._token?this._token instanceof Ze&&this._token.cancel():this._token=Qt.Cancelled}dispose(t=!1){var n;t&&this.cancel(),(n=this._parentListener)===null||n===void 0||n.dispose(),this._token?this._token instanceof Ze&&this._token.dispose():this._token=Qt.None}};var Nt=class{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(t,n){this._keyCodeToStr[t]=n,this._strToKeyCode[n.toLowerCase()]=t}keyCodeToStr(t){return this._keyCodeToStr[t]}strToKeyCode(t){return this._strToKeyCode[t.toLowerCase()]||0}},Yt=new Nt,sr=new Nt,or=new Nt,j1=new Array(230),X1={},Q1=[],J1=Object.create(null),Y1=Object.create(null),fi=[],ar=[];for(let e=0;e<=193;e++)fi[e]=-1;for(let e=0;e<=132;e++)ar[e]=-1;(function(){let 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]],n=[],r=[];for(let i of t){let[s,a,l,u,c,f,h,d,g]=i;if(r[a]||(r[a]=!0,Q1[a]=l,J1[l]=a,Y1[l.toLowerCase()]=a,s&&(fi[a]=u,u!==0&&u!==3&&u!==5&&u!==4&&u!==6&&u!==57&&(ar[u]=a))),!n[u]){if(n[u]=!0,!c)throw new Error(`String representation missing for key code ${u} around scan code ${l}`);Yt.define(u,c),sr.define(u,d||c),or.define(u,g||d||c)}f&&(j1[f]=u),h&&(X1[h]=u)}ar[3]=46})();var hi;(function(e){function t(l){return Yt.keyCodeToStr(l)}e.toString=t;function n(l){return Yt.strToKeyCode(l)}e.fromString=n;function r(l){return sr.keyCodeToStr(l)}e.toUserSettingsUS=r;function i(l){return or.keyCodeToStr(l)}e.toUserSettingsGeneral=i;function s(l){return sr.strToKeyCode(l)||or.strToKeyCode(l)}e.fromUserSettings=s;function a(l){if(l>=98&&l<=113)return null;switch(l){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return Yt.keyCodeToStr(l)}e.toElectronAccelerator=a})(hi||(hi={}));function di(e,t){let n=(t&65535)<<16>>>0;return(e|n)>>>0}var Zt=class e extends P{constructor(t,n,r,i){super(t,n,r,i),this.selectionStartLineNumber=t,this.selectionStartColumn=n,this.positionLineNumber=r,this.positionColumn=i}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(t){return e.selectionsEqual(this,t)}static selectionsEqual(t,n){return t.selectionStartLineNumber===n.selectionStartLineNumber&&t.selectionStartColumn===n.selectionStartColumn&&t.positionLineNumber===n.positionLineNumber&&t.positionColumn===n.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(t,n){return this.getDirection()===0?new e(this.startLineNumber,this.startColumn,t,n):new e(t,n,this.startLineNumber,this.startColumn)}getPosition(){return new O(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new O(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(t,n){return this.getDirection()===0?new e(t,n,this.endLineNumber,this.endColumn):new e(this.endLineNumber,this.endColumn,t,n)}static fromPositions(t,n=t){return new e(t.lineNumber,t.column,n.lineNumber,n.column)}static fromRange(t,n){return n===0?new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new e(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)}static liftSelection(t){return new e(t.selectionStartLineNumber,t.selectionStartColumn,t.positionLineNumber,t.positionColumn)}static selectionsArrEqual(t,n){if(t&&!n||!t&&n)return!1;if(!t&&!n)return!0;if(t.length!==n.length)return!1;for(let r=0,i=t.length;r{this._tokenizationSupports.get(t)===n&&(this._tokenizationSupports.delete(t),this.handleChange([t]))})}get(t){return this._tokenizationSupports.get(t)||null}registerFactory(t,n){var r;(r=this._factories.get(t))===null||r===void 0||r.dispose();let i=new lr(this,t,n);return this._factories.set(t,i),He(()=>{let s=this._factories.get(t);!s||s!==i||(this._factories.delete(t),s.dispose())})}async getOrCreate(t){let n=this.get(t);if(n)return n;let r=this._factories.get(t);return!r||r.isResolved?null:(await r.resolve(),this.get(t))}isResolved(t){if(this.get(t))return!0;let r=this._factories.get(t);return!!(!r||r.isResolved)}setColorMap(t){this._colorMap=t,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}},lr=class extends oe{get isResolved(){return this._isResolved}constructor(t,n,r){super(),this._registry=t,this._languageId=n,this._factory=r,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(){let t=await this._factory.tokenizationSupport;this._isResolved=!0,t&&!this._isDisposed&&this._register(this._registry.register(this._languageId,t))}};var en=class{constructor(t,n,r){this.offset=t,this.type=n,this.language=r,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}};var pi;(function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"})(pi||(pi={}));var bi;(function(e){let t=new Map;t.set(0,M.symbolMethod),t.set(1,M.symbolFunction),t.set(2,M.symbolConstructor),t.set(3,M.symbolField),t.set(4,M.symbolVariable),t.set(5,M.symbolClass),t.set(6,M.symbolStruct),t.set(7,M.symbolInterface),t.set(8,M.symbolModule),t.set(9,M.symbolProperty),t.set(10,M.symbolEvent),t.set(11,M.symbolOperator),t.set(12,M.symbolUnit),t.set(13,M.symbolValue),t.set(15,M.symbolEnum),t.set(14,M.symbolConstant),t.set(15,M.symbolEnum),t.set(16,M.symbolEnumMember),t.set(17,M.symbolKeyword),t.set(27,M.symbolSnippet),t.set(18,M.symbolText),t.set(19,M.symbolColor),t.set(20,M.symbolFile),t.set(21,M.symbolReference),t.set(22,M.symbolCustomColor),t.set(23,M.symbolFolder),t.set(24,M.symbolTypeParameter),t.set(25,M.account),t.set(26,M.issues);function n(s){let a=t.get(s);return a||(console.info("No codicon found for CompletionItemKind "+s),a=M.symbolProperty),a}e.toIcon=n;let r=new Map;r.set("method",0),r.set("function",1),r.set("constructor",2),r.set("field",3),r.set("variable",4),r.set("class",5),r.set("struct",6),r.set("interface",7),r.set("module",8),r.set("property",9),r.set("event",10),r.set("operator",11),r.set("unit",12),r.set("value",13),r.set("constant",14),r.set("enum",15),r.set("enum-member",16),r.set("enumMember",16),r.set("keyword",17),r.set("snippet",27),r.set("text",18),r.set("color",19),r.set("file",20),r.set("reference",21),r.set("customcolor",22),r.set("folder",23),r.set("type-parameter",24),r.set("typeParameter",24),r.set("account",25),r.set("issue",26);function i(s,a){let l=r.get(s);return typeof l>"u"&&!a&&(l=9),l}e.fromString=i})(bi||(bi={}));var xi;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(xi||(xi={}));var _i;(function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"})(_i||(_i={}));var vi;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(vi||(vi={}));var Li;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(Li||(Li={}));var dl={17:U("Array","array"),16:U("Boolean","boolean"),4:U("Class","class"),13:U("Constant","constant"),8:U("Constructor","constructor"),9:U("Enum","enumeration"),21:U("EnumMember","enumeration member"),23:U("Event","event"),7:U("Field","field"),0:U("File","file"),11:U("Function","function"),10:U("Interface","interface"),19:U("Key","key"),5:U("Method","method"),1:U("Module","module"),2:U("Namespace","namespace"),20:U("Null","null"),15:U("Number","number"),18:U("Object","object"),24:U("Operator","operator"),3:U("Package","package"),6:U("Property","property"),14:U("String","string"),22:U("Struct","struct"),25:U("TypeParameter","type parameter"),12:U("Variable","variable")};var wi;(function(e){let t=new Map;t.set(0,M.symbolFile),t.set(1,M.symbolModule),t.set(2,M.symbolNamespace),t.set(3,M.symbolPackage),t.set(4,M.symbolClass),t.set(5,M.symbolMethod),t.set(6,M.symbolProperty),t.set(7,M.symbolField),t.set(8,M.symbolConstructor),t.set(9,M.symbolEnum),t.set(10,M.symbolInterface),t.set(11,M.symbolFunction),t.set(12,M.symbolVariable),t.set(13,M.symbolConstant),t.set(14,M.symbolString),t.set(15,M.symbolNumber),t.set(16,M.symbolBoolean),t.set(17,M.symbolArray),t.set(18,M.symbolObject),t.set(19,M.symbolKey),t.set(20,M.symbolNull),t.set(21,M.symbolEnumMember),t.set(22,M.symbolStruct),t.set(23,M.symbolEvent),t.set(24,M.symbolOperator),t.set(25,M.symbolTypeParameter);function n(r){let i=t.get(r);return i||(console.info("No codicon found for SymbolKind "+r),i=M.symbolProperty),i}e.toIcon=n})(wi||(wi={}));var Re=class e{static fromValue(t){switch(t){case"comment":return e.Comment;case"imports":return e.Imports;case"region":return e.Region}return new e(t)}constructor(t){this.value=t}};Re.Comment=new Re("comment");Re.Imports=new Re("imports");Re.Region=new Re("region");var Ni;(function(e){e[e.AIGenerated=1]="AIGenerated"})(Ni||(Ni={}));var Si;(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(Si||(Si={}));var Ci;(function(e){function t(n){return!n||typeof n!="object"?!1:typeof n.id=="string"&&typeof n.title=="string"}e.is=t})(Ci||(Ci={}));var Ai;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(Ai||(Ai={}));var ml=new Kt,Ri;(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(Ri||(Ri={}));var yi;(function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"})(yi||(yi={}));var Ei;(function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"})(Ei||(Ei={}));var Mi;(function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"})(Mi||(Mi={}));var ki;(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"})(ki||(ki={}));var Fi;(function(e){e[e.Deprecated=1]="Deprecated"})(Fi||(Fi={}));var Di;(function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(Di||(Di={}));var Pi;(function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"})(Pi||(Pi={}));var Ii;(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"})(Ii||(Ii={}));var Ti;(function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(Ti||(Ti={}));var Bi;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(Bi||(Bi={}));var Vi;(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"})(Vi||(Vi={}));var qi;(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.definitionLinkOpensInPeek=88]="definitionLinkOpensInPeek",e[e.quickSuggestions=89]="quickSuggestions",e[e.quickSuggestionsDelay=90]="quickSuggestionsDelay",e[e.readOnly=91]="readOnly",e[e.readOnlyMessage=92]="readOnlyMessage",e[e.renameOnType=93]="renameOnType",e[e.renderControlCharacters=94]="renderControlCharacters",e[e.renderFinalNewline=95]="renderFinalNewline",e[e.renderLineHighlight=96]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=97]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=98]="renderValidationDecorations",e[e.renderWhitespace=99]="renderWhitespace",e[e.revealHorizontalRightPadding=100]="revealHorizontalRightPadding",e[e.roundedSelection=101]="roundedSelection",e[e.rulers=102]="rulers",e[e.scrollbar=103]="scrollbar",e[e.scrollBeyondLastColumn=104]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=105]="scrollBeyondLastLine",e[e.scrollPredominantAxis=106]="scrollPredominantAxis",e[e.selectionClipboard=107]="selectionClipboard",e[e.selectionHighlight=108]="selectionHighlight",e[e.selectOnLineNumbers=109]="selectOnLineNumbers",e[e.showFoldingControls=110]="showFoldingControls",e[e.showUnused=111]="showUnused",e[e.snippetSuggestions=112]="snippetSuggestions",e[e.smartSelect=113]="smartSelect",e[e.smoothScrolling=114]="smoothScrolling",e[e.stickyScroll=115]="stickyScroll",e[e.stickyTabStops=116]="stickyTabStops",e[e.stopRenderingLineAfter=117]="stopRenderingLineAfter",e[e.suggest=118]="suggest",e[e.suggestFontSize=119]="suggestFontSize",e[e.suggestLineHeight=120]="suggestLineHeight",e[e.suggestOnTriggerCharacters=121]="suggestOnTriggerCharacters",e[e.suggestSelection=122]="suggestSelection",e[e.tabCompletion=123]="tabCompletion",e[e.tabIndex=124]="tabIndex",e[e.unicodeHighlighting=125]="unicodeHighlighting",e[e.unusualLineTerminators=126]="unusualLineTerminators",e[e.useShadowDOM=127]="useShadowDOM",e[e.useTabStops=128]="useTabStops",e[e.wordBreak=129]="wordBreak",e[e.wordSegmenterLocales=130]="wordSegmenterLocales",e[e.wordSeparators=131]="wordSeparators",e[e.wordWrap=132]="wordWrap",e[e.wordWrapBreakAfterCharacters=133]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=134]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=135]="wordWrapColumn",e[e.wordWrapOverride1=136]="wordWrapOverride1",e[e.wordWrapOverride2=137]="wordWrapOverride2",e[e.wrappingIndent=138]="wrappingIndent",e[e.wrappingStrategy=139]="wrappingStrategy",e[e.showDeprecated=140]="showDeprecated",e[e.inlayHints=141]="inlayHints",e[e.editorClassName=142]="editorClassName",e[e.pixelRatio=143]="pixelRatio",e[e.tabFocusMode=144]="tabFocusMode",e[e.layoutInfo=145]="layoutInfo",e[e.wrappingInfo=146]="wrappingInfo",e[e.defaultColorDecorators=147]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=148]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=149]="inlineCompletionsAccessibilityVerbose"})(qi||(qi={}));var Ui;(function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(Ui||(Ui={}));var Wi;(function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"})(Wi||(Wi={}));var zi;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"})(zi||(zi={}));var Oi;(function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"})(Oi||(Oi={}));var Hi;(function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"})(Hi||(Hi={}));var $i;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})($i||($i={}));var Gi;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(Gi||(Gi={}));var ji;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(ji||(ji={}));var Xi;(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(Xi||(Xi={}));var tn;(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"})(tn||(tn={}));var nn;(function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"})(nn||(nn={}));var rn;(function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"})(rn||(rn={}));var Qi;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(Qi||(Qi={}));var Ji;(function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"})(Ji||(Ji={}));var Yi;(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"})(Yi||(Yi={}));var Zi;(function(e){e[e.AIGenerated=1]="AIGenerated"})(Zi||(Zi={}));var Ki;(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(Ki||(Ki={}));var es;(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"})(es||(es={}));var ts;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(ts||(ts={}));var ns;(function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"})(ns||(ns={}));var rs;(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"})(rs||(rs={}));var is;(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"})(is||(is={}));var ss;(function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"})(ss||(ss={}));var os;(function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"})(os||(os={}));var as;(function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"})(as||(as={}));var sn;(function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"})(sn||(sn={}));var ls;(function(e){e.Off="off",e.OnCode="onCode",e.On="on"})(ls||(ls={}));var us;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(us||(us={}));var cs;(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"})(cs||(cs={}));var hs;(function(e){e[e.Deprecated=1]="Deprecated"})(hs||(hs={}));var fs;(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"})(fs||(fs={}));var ds;(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"})(ds||(ds={}));var ms;(function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(ms||(ms={}));var gs;(function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"})(gs||(gs={}));var Be=class{static chord(t,n){return di(t,n)}};Be.CtrlCmd=2048;Be.Shift=1024;Be.Alt=512;Be.WinCtrl=256;function ps(){return{editor:void 0,languages:void 0,CancellationTokenSource:Jt,Emitter:Y,KeyCode:tn,KeyMod:Be,Position:O,Range:P,Selection:Zt,SelectionDirection:sn,MarkerSeverity:nn,MarkerTag:rn,Uri:Ae,Token:en}}var bs,xs,ur=class{constructor(t,n){this.uri=t,this.value=n}};function eo(e){return Array.isArray(e)}var cr=class e{constructor(t,n){if(this[bs]="ResourceMap",t instanceof e)this.map=new Map(t.map),this.toKey=n??e.defaultToKey;else if(eo(t)){this.map=new Map,this.toKey=n??e.defaultToKey;for(let[r,i]of t)this.set(r,i)}else this.map=new Map,this.toKey=t??e.defaultToKey}set(t,n){return this.map.set(this.toKey(t),new ur(t,n)),this}get(t){var n;return(n=this.map.get(this.toKey(t)))===null||n===void 0?void 0:n.value}has(t){return this.map.has(this.toKey(t))}get size(){return this.map.size}clear(){this.map.clear()}delete(t){return this.map.delete(this.toKey(t))}forEach(t,n){typeof n<"u"&&(t=t.bind(n));for(let[r,i]of this.map)t(i.value,i.uri,this)}*values(){for(let t of this.map.values())yield t.value}*keys(){for(let t of this.map.values())yield t.uri}*entries(){for(let t of this.map.values())yield[t.uri,t.value]}*[(bs=Symbol.toStringTag,Symbol.iterator)](){for(let[,t]of this.map)yield[t.uri,t.value]}};cr.defaultToKey=e=>e.toString();var hr=class{constructor(){this[xs]="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(){var t;return(t=this._head)===null||t===void 0?void 0:t.value}get last(){var t;return(t=this._tail)===null||t===void 0?void 0:t.value}has(t){return this._map.has(t)}get(t,n=0){let r=this._map.get(t);if(r)return n!==0&&this.touch(r,n),r.value}set(t,n,r=0){let i=this._map.get(t);if(i)i.value=n,r!==0&&this.touch(i,r);else{switch(i={key:t,value:n,next:void 0,previous:void 0},r){case 0:this.addItemLast(i);break;case 1:this.addItemFirst(i);break;case 2:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(t,i),this._size++}return this}delete(t){return!!this.remove(t)}remove(t){let n=this._map.get(t);if(n)return this._map.delete(t),this.removeItem(n),this._size--,n.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");let t=this._head;return this._map.delete(t.key),this.removeItem(t),this._size--,t.value}forEach(t,n){let r=this._state,i=this._head;for(;i;){if(n?t.bind(n)(i.value,i.key,this):t(i.value,i.key,this),this._state!==r)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){let t=this,n=this._state,r=this._head,i={[Symbol.iterator](){return i},next(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){let s={value:r.key,done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}values(){let t=this,n=this._state,r=this._head,i={[Symbol.iterator](){return i},next(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){let s={value:r.value,done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}entries(){let t=this,n=this._state,r=this._head,i={[Symbol.iterator](){return i},next(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){let s={value:[r.key,r.value],done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}[(xs=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(t){if(t>=this.size)return;if(t===0){this.clear();return}let n=this._head,r=this.size;for(;n&&r>t;)this._map.delete(n.key),n=n.next,r--;this._head=n,this._size=r,n&&(n.previous=void 0),this._state++}trimNew(t){if(t>=this.size)return;if(t===0){this.clear();return}let n=this._tail,r=this.size;for(;n&&r>t;)this._map.delete(n.key),n=n.previous,r--;this._tail=n,this._size=r,n&&(n.next=void 0),this._state++}addItemFirst(t){if(!this._head&&!this._tail)this._tail=t;else if(this._head)t.next=this._head,this._head.previous=t;else throw new Error("Invalid list");this._head=t,this._state++}addItemLast(t){if(!this._head&&!this._tail)this._head=t;else if(this._tail)t.previous=this._tail,this._tail.next=t;else throw new Error("Invalid list");this._tail=t,this._state++}removeItem(t){if(t===this._head&&t===this._tail)this._head=void 0,this._tail=void 0;else if(t===this._head){if(!t.next)throw new Error("Invalid list");t.next.previous=void 0,this._head=t.next}else if(t===this._tail){if(!t.previous)throw new Error("Invalid list");t.previous.next=void 0,this._tail=t.previous}else{let n=t.next,r=t.previous;if(!n||!r)throw new Error("Invalid list");n.previous=r,r.next=n}t.next=void 0,t.previous=void 0,this._state++}touch(t,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==1&&n!==2)){if(n===1){if(t===this._head)return;let r=t.next,i=t.previous;t===this._tail?(i.next=void 0,this._tail=i):(r.previous=i,i.next=r),t.previous=void 0,t.next=this._head,this._head.previous=t,this._head=t,this._state++}else if(n===2){if(t===this._tail)return;let r=t.next,i=t.previous;t===this._head?(r.previous=void 0,this._head=r):(r.previous=i,i.next=r),t.next=void 0,t.previous=this._tail,this._tail.next=t,this._tail=t,this._state++}}}toJSON(){let t=[];return this.forEach((n,r)=>{t.push([r,n])}),t}fromJSON(t){this.clear();for(let[n,r]of t)this.set(n,r)}},fr=class extends hr{constructor(t,n=1){super(),this._limit=t,this._ratio=Math.min(Math.max(0,n),1)}get limit(){return this._limit}set limit(t){this._limit=t,this.checkTrim()}get(t,n=2){return super.get(t,n)}peek(t){return super.get(t,0)}set(t,n){return super.set(t,n,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}},on=class extends fr{constructor(t,n=1){super(t,n)}trim(t){this.trimOld(t)}set(t,n){return super.set(t,n),this.checkTrim(),this}};var an=class{constructor(){this.map=new Map}add(t,n){let r=this.map.get(t);r||(r=new Set,this.map.set(t,r)),r.add(n)}delete(t,n){let r=this.map.get(t);r&&(r.delete(n),r.size===0&&this.map.delete(t))}forEach(t,n){let r=this.map.get(t);r&&r.forEach(n)}get(t){let n=this.map.get(t);return n||new Set}};var yl=new on(10);var _s;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(_s||(_s={}));var vs;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"})(vs||(vs={}));var Ls;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(Ls||(Ls={}));function to(e,t,n,r,i){if(r===0)return!0;let s=t.charCodeAt(r-1);if(e.get(s)!==0||s===13||s===10)return!0;if(i>0){let a=t.charCodeAt(r);if(e.get(a)!==0)return!0}return!1}function no(e,t,n,r,i){if(r+i===n)return!0;let s=t.charCodeAt(r+i);if(e.get(s)!==0||s===13||s===10)return!0;if(i>0){let a=t.charCodeAt(r+i-1);if(e.get(a)!==0)return!0}return!1}function ro(e,t,n,r,i){return to(e,t,n,r,i)&&no(e,t,n,r,i)}var ln=class{constructor(t,n){this._wordSeparators=t,this._searchRegex=n,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(t){this._searchRegex.lastIndex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(t){let n=t.length,r;do{if(this._prevMatchStartIndex+this._prevMatchLength===n||(r=this._searchRegex.exec(t),!r))return null;let i=r.index,s=r[0].length;if(i===this._prevMatchStartIndex&&s===this._prevMatchLength){if(s===0){Ur(t,n,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=i,this._prevMatchLength=s,!this._wordSeparators||ro(this._wordSeparators,t,n,i,s))return r}while(r);return null}};function ws(e,t="Unreachable"){throw new Error(t)}function Ve(e){if(!e()){debugger;e(),ze(new ee("Assertion Failed"))}}function St(e,t){let n=0;for(;n0){let q=S.charCodeAt(L-1);Qe(q)&&L--}if(v+1=1e3){h=!0;break e}f.push(new P(_,L+1,_,v+1))}}while(d)}return{ranges:f,hasMore:h,ambiguousCharacterCount:g,invisibleCharacterCount:p,nonBasicAsciiCharacterCount:m}}static computeUnicodeHighlightReason(t,n){let r=new cn(n);switch(r.shouldHighlightNonBasicASCII(t,null)){case 0:return null;case 2:return{kind:1};case 3:{let s=t.codePointAt(0),a=r.ambiguousCharacters.getPrimaryConfusable(s),l=he.getLocales().filter(u=>!he.getInstance(new Set([...n.allowedLocales,u])).isAmbiguous(s));return{kind:0,confusableWith:String.fromCodePoint(a),notAmbiguousInLocales:l}}case 1:return{kind:2}}}};function io(e,t){return`[${Tr(e.map(r=>String.fromCodePoint(r)).join(""))}]`}var cn=class{constructor(t){this.options=t,this.allowedCodePoints=new Set(t.allowedCodePoints),this.ambiguousCharacters=he.getInstance(new Set(t.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";let t=new Set;if(this.options.invisibleCharacters)for(let n of Ie.codePoints)Ns(String.fromCodePoint(n))||t.add(n);if(this.options.ambiguousCharacters)for(let n of this.ambiguousCharacters.getConfusableCodePoints())t.add(n);for(let n of this.allowedCodePoints)t.delete(n);return t}shouldHighlightNonBasicASCII(t,n){let r=t.codePointAt(0);if(this.allowedCodePoints.has(r))return 0;if(this.options.nonBasicASCII)return 1;let i=!1,s=!1;if(n)for(let a of n){let l=a.codePointAt(0),u=Wr(a);i=i||u,!u&&!this.ambiguousCharacters.isAmbiguous(l)&&!Ie.isInvisibleCharacter(l)&&(s=!0)}return!i&&s?0:this.options.invisibleCharacters&&!Ns(t)&&Ie.isInvisibleCharacter(r)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(r)?3:0}};function Ns(e){return e===" "||e===` +`||e===" "}var ye=class{constructor(t,n,r){this.changes=t,this.moves=n,this.hitTimeout=r}},hn=class{constructor(t,n){this.lineRangeMapping=t,this.changes=n}};var I=class e{static addRange(t,n){let r=0;for(;rn))return new e(t,n)}static ofLength(t){return new e(0,t)}static ofStartAndLength(t,n){return new e(t,t+n)}constructor(t,n){if(this.start=t,this.endExclusive=n,t>n)throw new ee(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(t){return new e(this.start+t,this.endExclusive+t)}deltaStart(t){return new e(this.start+t,this.endExclusive)}deltaEnd(t){return new e(this.start,this.endExclusive+t)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(t){return this.start<=t&&t=t.endExclusive}slice(t){return t.slice(this.start,this.endExclusive)}substring(t){return t.substring(this.start,this.endExclusive)}clip(t){if(this.isEmpty)throw new ee(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,t))}clipCyclic(t){if(this.isEmpty)throw new ee(`Invalid clipping range: ${this.toString()}`);return t=this.endExclusive?this.start+(t-this.start)%this.length:t}forEach(t){for(let n=this.start;nn)throw new ee(`startLineNumber ${t} cannot be after endLineNumberExclusive ${n}`);this.startLineNumber=t,this.endLineNumberExclusive=n}contains(t){return this.startLineNumber<=t&&ti.endLineNumberExclusive>=t.startLineNumber),r=qe(this._normalizedRanges,i=>i.startLineNumber<=t.endLineNumberExclusive)+1;if(n===r)this._normalizedRanges.splice(n,0,t);else if(n===r-1){let i=this._normalizedRanges[n];this._normalizedRanges[n]=i.join(t)}else{let i=this._normalizedRanges[n].join(this._normalizedRanges[r-1]).join(t);this._normalizedRanges.splice(n,r-n,i)}}contains(t){let n=be(this._normalizedRanges,r=>r.startLineNumber<=t);return!!n&&n.endLineNumberExclusive>t}intersects(t){let n=be(this._normalizedRanges,r=>r.startLineNumbert.startLineNumber}getUnion(t){if(this._normalizedRanges.length===0)return t;if(t._normalizedRanges.length===0)return this;let n=[],r=0,i=0,s=null;for(;r=a.startLineNumber?s=new T(s.startLineNumber,Math.max(s.endLineNumberExclusive,a.endLineNumberExclusive)):(n.push(s),s=a)}return s!==null&&n.push(s),new e(n)}subtractFrom(t){let n=fn(this._normalizedRanges,a=>a.endLineNumberExclusive>=t.startLineNumber),r=qe(this._normalizedRanges,a=>a.startLineNumber<=t.endLineNumberExclusive)+1;if(n===r)return new e([t]);let i=[],s=t.startLineNumber;for(let a=n;as&&i.push(new T(s,l.startLineNumber)),s=l.endLineNumberExclusive}return st.toString()).join(", ")}getIntersection(t){let n=[],r=0,i=0;for(;rn.delta(t)))}};var et=class e{static betweenPositions(t,n){return t.lineNumber===n.lineNumber?new e(0,n.column-t.column):new e(n.lineNumber-t.lineNumber,n.column-1)}static ofRange(t){return e.betweenPositions(t.getStartPosition(),t.getEndPosition())}static ofText(t){let n=0,r=0;for(let i of t)i===` +`?(n++,r=0):r++;return new e(n,r)}constructor(t,n){this.lineCount=t,this.columnCount=n}isGreaterThanOrEqualTo(t){return this.lineCount!==t.lineCount?this.lineCount>t.lineCount:this.columnCount>=t.columnCount}createRange(t){return this.lineCount===0?new P(t.lineNumber,t.column,t.lineNumber,t.column+this.columnCount):new P(t.lineNumber,t.column,t.lineNumber+this.lineCount,this.columnCount+1)}addToPosition(t){return this.lineCount===0?new O(t.lineNumber,t.column+this.columnCount):new O(t.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}};et.zero=new et(0,0);var dn=class{constructor(t,n){this.range=t,this.text=n}};var Ee=class e{static inverse(t,n,r){let i=[],s=1,a=1;for(let u of t){let c=new e(new T(s,u.original.startLineNumber),new T(a,u.modified.startLineNumber));c.modified.isEmpty||i.push(c),s=u.original.endLineNumberExclusive,a=u.modified.endLineNumberExclusive}let l=new e(new T(s,n+1),new T(a,r+1));return l.modified.isEmpty||i.push(l),i}static clip(t,n,r){let i=[];for(let s of t){let a=s.original.intersect(n),l=s.modified.intersect(r);a&&!a.isEmpty&&l&&!l.isEmpty&&i.push(new e(a,l))}return i}constructor(t,n){this.original=t,this.modified=n}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new e(this.modified,this.original)}join(t){return new e(this.original.join(t.original),this.modified.join(t.modified))}toRangeMapping(){let t=this.original.toInclusiveRange(),n=this.modified.toInclusiveRange();if(t&&n)return new fe(t,n);if(this.original.startLineNumber===1||this.modified.startLineNumber===1){if(!(this.modified.startLineNumber===1&&this.original.startLineNumber===1))throw new ee("not a valid diff");return new fe(new P(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new P(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}else return new fe(new P(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new P(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}},xe=class e extends Ee{static fromRangeMappings(t){let n=T.join(t.map(i=>T.fromRangeInclusive(i.originalRange))),r=T.join(t.map(i=>T.fromRangeInclusive(i.modifiedRange)));return new e(n,r,t)}constructor(t,n,r){super(t,n),this.innerChanges=r}flip(){var t;return new e(this.modified,this.original,(t=this.innerChanges)===null||t===void 0?void 0:t.map(n=>n.flip()))}withInnerChangesFromLineRanges(){return new e(this.original,this.modified,[this.toRangeMapping()])}},fe=class e{constructor(t,n){this.originalRange=t,this.modifiedRange=n}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new e(this.modifiedRange,this.originalRange)}toTextEdit(t){let n=t.getValueOfRange(this.modifiedRange);return new dn(this.originalRange,n)}};var so=3,mn=class{computeDiff(t,n,r){var i;let a=new mr(t,n,{maxComputationTime:r.maxComputationTimeMs,shouldIgnoreTrimWhitespace:r.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),l=[],u=null;for(let c of a.changes){let f;c.originalEndLineNumber===0?f=new T(c.originalStartLineNumber+1,c.originalStartLineNumber+1):f=new T(c.originalStartLineNumber,c.originalEndLineNumber+1);let h;c.modifiedEndLineNumber===0?h=new T(c.modifiedStartLineNumber+1,c.modifiedStartLineNumber+1):h=new T(c.modifiedStartLineNumber,c.modifiedEndLineNumber+1);let d=new xe(f,h,(i=c.charChanges)===null||i===void 0?void 0:i.map(g=>new fe(new P(g.originalStartLineNumber,g.originalStartColumn,g.originalEndLineNumber,g.originalEndColumn),new P(g.modifiedStartLineNumber,g.modifiedStartColumn,g.modifiedEndLineNumber,g.modifiedEndColumn))));u&&(u.modified.endLineNumberExclusive===d.modified.startLineNumber||u.original.endLineNumberExclusive===d.original.startLineNumber)&&(d=new xe(u.original.join(d.original),u.modified.join(d.modified),u.innerChanges&&d.innerChanges?u.innerChanges.concat(d.innerChanges):void 0),l.pop()),l.push(d),u=d}return Ve(()=>St(l,(c,f)=>f.original.startLineNumber-c.original.endLineNumberExclusive===f.modified.startLineNumber-c.modified.endLineNumberExclusive&&c.original.endLineNumberExclusive(t===10?"\\n":String.fromCharCode(t))+`-(${this._lineNumbers[n]},${this._columns[n]})`).join(", ")+"]"}_assertIndex(t,n){if(t<0||t>=n.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(t){return t>0&&t===this._lineNumbers.length?this.getEndLineNumber(t-1):(this._assertIndex(t,this._lineNumbers),this._lineNumbers[t])}getEndLineNumber(t){return t===-1?this.getStartLineNumber(t+1):(this._assertIndex(t,this._lineNumbers),this._charCodes[t]===10?this._lineNumbers[t]+1:this._lineNumbers[t])}getStartColumn(t){return t>0&&t===this._columns.length?this.getEndColumn(t-1):(this._assertIndex(t,this._columns),this._columns[t])}getEndColumn(t){return t===-1?this.getStartColumn(t+1):(this._assertIndex(t,this._columns),this._charCodes[t]===10?1:this._columns[t]+1)}},tt=class e{constructor(t,n,r,i,s,a,l,u){this.originalStartLineNumber=t,this.originalStartColumn=n,this.originalEndLineNumber=r,this.originalEndColumn=i,this.modifiedStartLineNumber=s,this.modifiedStartColumn=a,this.modifiedEndLineNumber=l,this.modifiedEndColumn=u}static createFromDiffChange(t,n,r){let i=n.getStartLineNumber(t.originalStart),s=n.getStartColumn(t.originalStart),a=n.getEndLineNumber(t.originalStart+t.originalLength-1),l=n.getEndColumn(t.originalStart+t.originalLength-1),u=r.getStartLineNumber(t.modifiedStart),c=r.getStartColumn(t.modifiedStart),f=r.getEndLineNumber(t.modifiedStart+t.modifiedLength-1),h=r.getEndColumn(t.modifiedStart+t.modifiedLength-1);return new e(i,s,a,l,u,c,f,h)}};function oo(e){if(e.length<=1)return e;let t=[e[0]],n=t[0];for(let r=1,i=e.length;r0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&s()){let g=r.createCharSequence(t,n.originalStart,n.originalStart+n.originalLength-1),p=i.createCharSequence(t,n.modifiedStart,n.modifiedStart+n.modifiedLength-1);if(g.getElements().length>0&&p.getElements().length>0){let m=As(g,p,s,!0).changes;l&&(m=oo(m)),d=[];for(let _=0,N=m.length;_1&&m>1;){let _=d.charCodeAt(p-2),N=g.charCodeAt(m-2);if(_!==N)break;p--,m--}(p>1||m>1)&&this._pushTrimWhitespaceCharChange(i,s+1,1,p,a+1,1,m)}{let p=pr(d,1),m=pr(g,1),_=d.length+1,N=g.length+1;for(;p<_&&m!0;let t=Date.now();return()=>Date.now()-t{r.push(e.fromOffsetPairs(i?i.getEndExclusives():ie.zero,s?s.getStarts():new ie(n,(i?i.seq2Range.endExclusive-i.seq1Range.endExclusive:0)+n)))}),r}static fromOffsetPairs(t,n){return new e(new I(t.offset1,n.offset1),new I(t.offset2,n.offset2))}constructor(t,n){this.seq1Range=t,this.seq2Range=n}swap(){return new e(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(t){return new e(this.seq1Range.join(t.seq1Range),this.seq2Range.join(t.seq2Range))}delta(t){return t===0?this:new e(this.seq1Range.delta(t),this.seq2Range.delta(t))}deltaStart(t){return t===0?this:new e(this.seq1Range.deltaStart(t),this.seq2Range.deltaStart(t))}deltaEnd(t){return t===0?this:new e(this.seq1Range.deltaEnd(t),this.seq2Range.deltaEnd(t))}intersect(t){let n=this.seq1Range.intersect(t.seq1Range),r=this.seq2Range.intersect(t.seq2Range);if(!(!n||!r))return new e(n,r)}getStarts(){return new ie(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new ie(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}},ie=class e{constructor(t,n){this.offset1=t,this.offset2=n}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(t){return t===0?this:new e(this.offset1+t,this.offset2+t)}equals(t){return this.offset1===t.offset1&&this.offset2===t.offset2}};ie.zero=new ie(0,0);ie.max=new ie(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);var me=class{isValid(){return!0}};me.instance=new me;var pn=class{constructor(t){if(this.timeout=t,this.startTime=Date.now(),this.valid=!0,t<=0)throw new ee("timeout must be positive")}isValid(){if(!(Date.now()-this.startTime0&&m>0&&a.get(p-1,m-1)===3&&(S+=l.get(p-1,m-1)),S+=i?i(p,m):1):S=-1;let b=Math.max(_,N,S);if(b===S){let L=p>0&&m>0?l.get(p-1,m-1):0;l.set(p,m,L+1),a.set(p,m,3)}else b===_?(l.set(p,m,0),a.set(p,m,1)):b===N&&(l.set(p,m,0),a.set(p,m,2));s.set(p,m,b)}let u=[],c=t.length,f=n.length;function h(p,m){(p+1!==c||m+1!==f)&&u.push(new G(new I(p+1,c),new I(m+1,f))),c=p,f=m}let d=t.length-1,g=n.length-1;for(;d>=0&&g>=0;)a.get(d,g)===3?(h(d,g),d--,g--):a.get(d,g)===1?d--:g--;return h(-1,-1),u.reverse(),new de(u,!1)}};var it=class{compute(t,n,r=me.instance){if(t.length===0||n.length===0)return de.trivial(t,n);let i=t,s=n;function a(m,_){for(;mi.length||v>s.length)continue;let A=a(L,v);u.set(f,A);let y=L===S?c.get(f+1):c.get(f-1);if(c.set(f,A!==L?new xn(y,L,v,A-L):y),u.get(f)===i.length&&u.get(f)-f===s.length)break e}}let h=c.get(f),d=[],g=i.length,p=s.length;for(;;){let m=h?h.x+h.length:0,_=h?h.y+h.length:0;if((m!==g||_!==p)&&d.push(new G(new I(m,g),new I(_,p))),!h)break;g=h.x,p=h.y,h=h.prev}return d.reverse(),new de(d,!1)}},xn=class{constructor(t,n,r,i){this.prev=t,this.x=n,this.y=r,this.length=i}},br=class{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(t){return t<0?(t=-t-1,this.negativeArr[t]):this.positiveArr[t]}set(t,n){if(t<0){if(t=-t-1,t>=this.negativeArr.length){let r=this.negativeArr;this.negativeArr=new Int32Array(r.length*2),this.negativeArr.set(r)}this.negativeArr[t]=n}else{if(t>=this.positiveArr.length){let r=this.positiveArr;this.positiveArr=new Int32Array(r.length*2),this.positiveArr.set(r)}this.positiveArr[t]=n}}},xr=class{constructor(){this.positiveArr=[],this.negativeArr=[]}get(t){return t<0?(t=-t-1,this.negativeArr[t]):this.positiveArr[t]}set(t,n){t<0?(t=-t-1,this.negativeArr[t]=n):this.positiveArr[t]=n}};var Me=class{constructor(t,n,r){this.lines=t,this.considerWhitespaceChanges=r,this.elements=[],this.firstCharOffsetByLine=[],this.additionalOffsetByLine=[];let i=!1;n.start>0&&n.endExclusive>=t.length&&(n=new I(n.start-1,n.endExclusive),i=!0),this.lineRange=n,this.firstCharOffsetByLine[0]=0;for(let s=this.lineRange.start;sString.fromCharCode(n)).join("")}getElement(t){return this.elements[t]}get length(){return this.elements.length}getBoundaryScore(t){let n=ys(t>0?this.elements[t-1]:-1),r=ys(tr<=t);return new O(this.lineRange.start+n+1,t-this.firstCharOffsetByLine[n]+this.additionalOffsetByLine[n]+1)}translateRange(t){return P.fromPositions(this.translateOffset(t.start),this.translateOffset(t.endExclusive))}findWordContaining(t){if(t<0||t>=this.elements.length||!_r(this.elements[t]))return;let n=t;for(;n>0&&_r(this.elements[n-1]);)n--;let r=t;for(;ra<=t.start))!==null&&n!==void 0?n:0,s=(r=Ss(this.firstCharOffsetByLine,a=>t.endExclusive<=a))!==null&&r!==void 0?r:this.elements.length;return new I(i,s)}};function _r(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}var ao={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function Rs(e){return ao[e]}function ys(e){return e===10?8:e===13?7:At(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:e===-1?3:e===44||e===59?5:4}function Ms(e,t,n,r,i,s){let{moves:a,excludedChanges:l}=uo(e,t,n,s);if(!s.isValid())return[];let u=e.filter(f=>!l.has(f)),c=co(u,r,i,t,n,s);return oi(a,c),a=ho(a),a=a.filter(f=>{let h=f.original.toOffsetRange().slice(t).map(g=>g.trim());return h.join(` +`).length>=15&&lo(h,g=>g.length>=2)>=2}),a=fo(e,a),a}function lo(e,t){let n=0;for(let r of e)t(r)&&n++;return n}function uo(e,t,n,r){let i=[],s=e.filter(u=>u.modified.isEmpty&&u.original.length>=3).map(u=>new rt(u.original,t,u)),a=new Set(e.filter(u=>u.original.isEmpty&&u.modified.length>=3).map(u=>new rt(u.modified,n,u))),l=new Set;for(let u of s){let c=-1,f;for(let h of a){let d=u.computeSimilarity(h);d>c&&(c=d,f=h)}if(c>.9&&f&&(a.delete(f),i.push(new Ee(u.range,f.range)),l.add(u.source),l.add(f.source)),!r.isValid())return{moves:i,excludedChanges:l}}return{moves:i,excludedChanges:l}}function co(e,t,n,r,i,s){let a=[],l=new an;for(let d of e)for(let g=d.original.startLineNumber;gd.modified.startLineNumber,_t));for(let d of e){let g=[];for(let p=d.modified.startLineNumber;p{for(let L of g)if(L.originalLineRange.endLineNumberExclusive+1===S.endLineNumberExclusive&&L.modifiedLineRange.endLineNumberExclusive+1===_.endLineNumberExclusive){L.originalLineRange=new T(L.originalLineRange.startLineNumber,S.endLineNumberExclusive),L.modifiedLineRange=new T(L.modifiedLineRange.startLineNumber,_.endLineNumberExclusive),N.push(L);return}let b={modifiedLineRange:_,originalLineRange:S};u.push(b),N.push(b)}),g=N}if(!s.isValid())return[]}u.sort(ai(xt(d=>d.modifiedLineRange.length,_t)));let c=new Ue,f=new Ue;for(let d of u){let g=d.modifiedLineRange.startLineNumber-d.originalLineRange.startLineNumber,p=c.subtractFrom(d.modifiedLineRange),m=f.subtractFrom(d.originalLineRange).getWithDelta(g),_=p.getIntersection(m);for(let N of _.ranges){if(N.length<3)continue;let S=N,b=N.delta(-g);a.push(new Ee(b,S)),c.addRange(S),f.addRange(b)}}a.sort(xt(d=>d.original.startLineNumber,_t));let h=new Ke(e);for(let d=0;dA.original.startLineNumber<=g.original.startLineNumber),m=be(e,A=>A.modified.startLineNumber<=g.modified.startLineNumber),_=Math.max(g.original.startLineNumber-p.original.startLineNumber,g.modified.startLineNumber-m.modified.startLineNumber),N=h.findLastMonotonous(A=>A.original.startLineNumberA.modified.startLineNumberr.length||y>i.length||c.contains(y)||f.contains(A)||!Es(r[A-1],i[y-1],s))break}L>0&&(f.addRange(new T(g.original.startLineNumber-L,g.original.startLineNumber)),c.addRange(new T(g.modified.startLineNumber-L,g.modified.startLineNumber)));let v;for(v=0;vr.length||y>i.length||c.contains(y)||f.contains(A)||!Es(r[A-1],i[y-1],s))break}v>0&&(f.addRange(new T(g.original.endLineNumberExclusive,g.original.endLineNumberExclusive+v)),c.addRange(new T(g.modified.endLineNumberExclusive,g.modified.endLineNumberExclusive+v))),(L>0||v>0)&&(a[d]=new Ee(new T(g.original.startLineNumber-L,g.original.endLineNumberExclusive+v),new T(g.modified.startLineNumber-L,g.modified.endLineNumberExclusive+v)))}return a}function Es(e,t,n){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;let i=new it().compute(new Me([e],new I(0,1),!1),new Me([t],new I(0,1),!1),n),s=0,a=G.invert(i.diffs,e.length);for(let f of a)f.seq1Range.forEach(h=>{At(e.charCodeAt(h))||s++});function l(f){let h=0;for(let d=0;dt.length?e:t);return s/u>.6&&u>10}function ho(e){if(e.length===0)return e;e.sort(xt(n=>n.original.startLineNumber,_t));let t=[e[0]];for(let n=1;n=0&&a>=0&&s+a<=2){t[t.length-1]=r.join(i);continue}t.push(i)}return t}function fo(e,t){let n=new Ke(e);return t=t.filter(r=>{let i=n.findLastMonotonous(l=>l.original.startLineNumberl.modified.startLineNumber0&&(l=l.delta(c))}i.push(l)}return r.length>0&&i.push(r[r.length-1]),i}function mo(e,t,n){if(!e.getBoundaryScore||!t.getBoundaryScore)return n;for(let r=0;r0?n[r-1]:void 0,s=n[r],a=r+1=r.start&&e.seq2Range.start-a>=i.start&&n.isStronglyEqual(e.seq2Range.start-a,e.seq2Range.endExclusive-a)&&a<100;)a++;a--;let l=0;for(;e.seq1Range.start+lc&&(c=p,u=f)}return e.delta(u)}function Ds(e,t,n){let r=[];for(let i of n){let s=r[r.length-1];if(!s){r.push(i);continue}i.seq1Range.start-s.seq1Range.endExclusive<=2||i.seq2Range.start-s.seq2Range.endExclusive<=2?r[r.length-1]=new G(s.seq1Range.join(i.seq1Range),s.seq2Range.join(i.seq2Range)):r.push(i)}return r}function Ps(e,t,n){let r=G.invert(n,e.length),i=[],s=new ie(0,0);function a(u,c){if(u.offset10;){let _=r[0];if(!(_.seq1Range.intersects(d.seq1Range)||_.seq2Range.intersects(d.seq2Range)))break;let S=e.findWordContaining(_.seq1Range.start),b=t.findWordContaining(_.seq2Range.start),L=new G(S,b),v=L.intersect(_);if(p+=v.seq1Range.length,m+=v.seq2Range.length,d=d.join(L),d.seq1Range.endExclusive>=_.seq1Range.endExclusive)r.shift();else break}p+m<(d.seq1Range.length+d.seq2Range.length)*2/3&&i.push(d),s=d.getEndExclusives()}for(;r.length>0;){let u=r.shift();u.seq1Range.isEmpty||(a(u.getStarts(),u),a(u.getEndExclusives().delta(-1),u))}return go(n,i)}function go(e,t){let n=[];for(;e.length>0||t.length>0;){let r=e[0],i=t[0],s;r&&(!i||r.seq1Range.start0&&n[n.length-1].seq1Range.endExclusive>=s.seq1Range.start?n[n.length-1]=n[n.length-1].join(s):n.push(s)}return n}function Is(e,t,n){let r=n;if(r.length===0)return r;let i=0,s;do{s=!1;let a=[r[0]];for(let l=1;l5||g.seq1Range.length+g.seq2Range.length>5)},u=r[l],c=a[a.length-1];f(c,u)?(s=!0,a[a.length-1]=a[a.length-1].join(u)):a.push(u)}r=a}while(i++<10&&s);return r}function Ts(e,t,n){let r=n;if(r.length===0)return r;let i=0,s;do{s=!1;let l=[r[0]];for(let u=1;u5||m.length>500)return!1;let N=e.getText(m).trim();if(N.length>20||N.split(/\r\n|\r|\n/).length>1)return!1;let S=e.countLinesIn(g.seq1Range),b=g.seq1Range.length,L=t.countLinesIn(g.seq2Range),v=g.seq2Range.length,A=e.countLinesIn(p.seq1Range),y=p.seq1Range.length,E=t.countLinesIn(p.seq2Range),q=p.seq2Range.length,X=2*40+50;function B(x){return Math.min(x,X)}return Math.pow(Math.pow(B(S*40+b),1.5)+Math.pow(B(L*40+v),1.5),1.5)+Math.pow(Math.pow(B(A*40+y),1.5)+Math.pow(B(E*40+q),1.5),1.5)>(X**1.5)**1.5*1.3},c=r[u],f=l[l.length-1];h(f,c)?(s=!0,l[l.length-1]=l[l.length-1].join(c)):l.push(c)}r=l}while(i++<10&&s);let a=[];return si(r,(l,u,c)=>{let f=u;function h(N){return N.length>0&&N.trim().length<=3&&u.seq1Range.length+u.seq2Range.length>100}let d=e.extendToFullLines(u.seq1Range),g=e.getText(new I(d.start,u.seq1Range.start));h(g)&&(f=f.deltaStart(-g.length));let p=e.getText(new I(u.seq1Range.endExclusive,d.endExclusive));h(p)&&(f=f.deltaEnd(p.length));let m=G.fromOffsetPairs(l?l.getEndExclusives():ie.zero,c?c.getStarts():ie.max),_=f.intersect(m);a.length>0&&_.getStarts().equals(a[a.length-1].getEndExclusives())?a[a.length-1]=a[a.length-1].join(_):a.push(_)}),a}var Rt=class{constructor(t,n){this.trimmedHash=t,this.lines=n}getElement(t){return this.trimmedHash[t]}get length(){return this.trimmedHash.length}getBoundaryScore(t){let n=t===0?0:Bs(this.lines[t-1]),r=t===this.lines.length?0:Bs(this.lines[t]);return 1e3-(n+r)}getText(t){return this.lines.slice(t.start,t.endExclusive).join(` +`)}isStronglyEqual(t,n){return this.lines[t]===this.lines[n]}};function Bs(e){let t=0;for(;tv===A))return new ye([],[],!1);if(t.length===1&&t[0].length===0||n.length===1&&n[0].length===0)return new ye([new xe(new T(1,t.length+1),new T(1,n.length+1),[new fe(new P(1,1,t.length,t[t.length-1].length+1),new P(1,1,n.length,n[n.length-1].length+1))])],[],!1);let i=r.maxComputationTimeMs===0?me.instance:new pn(r.maxComputationTimeMs),s=!r.ignoreTrimWhitespace,a=new Map;function l(v){let A=a.get(v);return A===void 0&&(A=a.size,a.set(v,A)),A}let u=t.map(v=>l(v.trim())),c=n.map(v=>l(v.trim())),f=new Rt(u,t),h=new Rt(c,n),d=f.length+h.length<1700?this.dynamicProgrammingDiffing.compute(f,h,i,(v,A)=>t[v]===n[A]?n[A].length===0?.1:1+Math.log(1+n[A].length):.99):this.myersDiffingAlgorithm.compute(f,h,i),g=d.diffs,p=d.hitTimeout;g=vr(f,h,g),g=Is(f,h,g);let m=[],_=v=>{if(s)for(let A=0;Av.seq1Range.start-N===v.seq2Range.start-S);let A=v.seq1Range.start-N;_(A),N=v.seq1Range.endExclusive,S=v.seq2Range.endExclusive;let y=this.refineDiff(t,n,v,i,s);y.hitTimeout&&(p=!0);for(let E of y.mappings)m.push(E)}_(t.length-N);let b=Vs(m,t,n),L=[];return r.computeMoves&&(L=this.computeMoves(b,t,n,u,c,i,s)),Ve(()=>{function v(y,E){if(y.lineNumber<1||y.lineNumber>E.length)return!1;let q=E[y.lineNumber-1];return!(y.column<1||y.column>q.length+1)}function A(y,E){return!(y.startLineNumber<1||y.startLineNumber>E.length+1||y.endLineNumberExclusive<1||y.endLineNumberExclusive>E.length+1)}for(let y of b){if(!y.innerChanges)return!1;for(let E of y.innerChanges)if(!(v(E.modifiedRange.getStartPosition(),n)&&v(E.modifiedRange.getEndPosition(),n)&&v(E.originalRange.getStartPosition(),t)&&v(E.originalRange.getEndPosition(),t)))return!1;if(!A(y.modified,n)||!A(y.original,t))return!1}return!0}),new ye(b,L,p)}computeMoves(t,n,r,i,s,a,l){return Ms(t,n,r,i,s,a).map(f=>{let h=this.refineDiff(n,r,new G(f.original.toOffsetRange(),f.modified.toOffsetRange()),a,l),d=Vs(h.mappings,n,r,!0);return new hn(f,d)})}refineDiff(t,n,r,i,s){let a=new Me(t,r.seq1Range,s),l=new Me(n,r.seq2Range,s),u=a.length+l.length<500?this.dynamicProgrammingDiffing.compute(a,l,i):this.myersDiffingAlgorithm.compute(a,l,i),c=u.diffs;return c=vr(a,l,c),c=Ps(a,l,c),c=Ds(a,l,c),c=Ts(a,l,c),{mappings:c.map(h=>new fe(a.translateRange(h.seq1Range),l.translateRange(h.seq2Range))),hitTimeout:u.hitTimeout}}};function Vs(e,t,n,r=!1){let i=[];for(let s of ri(e.map(a=>po(a,t,n)),(a,l)=>a.original.overlapOrTouch(l.original)||a.modified.overlapOrTouch(l.modified))){let a=s[0],l=s[s.length-1];i.push(new xe(a.original.join(l.original),a.modified.join(l.modified),s.map(u=>u.innerChanges[0])))}return Ve(()=>!r&&i.length>0&&(i[0].modified.startLineNumber!==i[0].original.startLineNumber||n.length-i[i.length-1].modified.endLineNumberExclusive!==t.length-i[i.length-1].original.endLineNumberExclusive)?!1:St(i,(s,a)=>a.original.startLineNumber-s.original.endLineNumberExclusive===a.modified.startLineNumber-s.modified.endLineNumberExclusive&&s.original.endLineNumberExclusive=n[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+i&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+i&&(r=1);let s=new T(e.originalRange.startLineNumber+r,e.originalRange.endLineNumber+1+i),a=new T(e.modifiedRange.startLineNumber+r,e.modifiedRange.endLineNumber+1+i);return new xe(s,a,[e])}var Lr={getLegacy:()=>new mn,getDefault:()=>new _n};function ke(e,t){let n=Math.pow(10,t);return Math.round(e*n)/n}var j=class{constructor(t,n,r,i=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,t))|0,this.g=Math.min(255,Math.max(0,n))|0,this.b=Math.min(255,Math.max(0,r))|0,this.a=ke(Math.max(Math.min(1,i),0),3)}static equals(t,n){return t.r===n.r&&t.g===n.g&&t.b===n.b&&t.a===n.a}},ge=class e{constructor(t,n,r,i){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,t),0)|0,this.s=ke(Math.max(Math.min(1,n),0),3),this.l=ke(Math.max(Math.min(1,r),0),3),this.a=ke(Math.max(Math.min(1,i),0),3)}static equals(t,n){return t.h===n.h&&t.s===n.s&&t.l===n.l&&t.a===n.a}static fromRGBA(t){let n=t.r/255,r=t.g/255,i=t.b/255,s=t.a,a=Math.max(n,r,i),l=Math.min(n,r,i),u=0,c=0,f=(l+a)/2,h=a-l;if(h>0){switch(c=Math.min(f<=.5?h/(2*f):h/(2-2*f),1),a){case n:u=(r-i)/h+(r1&&(r-=1),r<1/6?t+(n-t)*6*r:r<1/2?n:r<2/3?t+(n-t)*(2/3-r)*6:t}static toRGBA(t){let n=t.h/360,{s:r,l:i,a:s}=t,a,l,u;if(r===0)a=l=u=i;else{let c=i<.5?i*(1+r):i+r-i*r,f=2*i-c;a=e._hue2rgb(f,c,n+1/3),l=e._hue2rgb(f,c,n),u=e._hue2rgb(f,c,n-1/3)}return new j(Math.round(a*255),Math.round(l*255),Math.round(u*255),s)}},st=class e{constructor(t,n,r,i){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,t),0)|0,this.s=ke(Math.max(Math.min(1,n),0),3),this.v=ke(Math.max(Math.min(1,r),0),3),this.a=ke(Math.max(Math.min(1,i),0),3)}static equals(t,n){return t.h===n.h&&t.s===n.s&&t.v===n.v&&t.a===n.a}static fromRGBA(t){let n=t.r/255,r=t.g/255,i=t.b/255,s=Math.max(n,r,i),a=Math.min(n,r,i),l=s-a,u=s===0?0:l/s,c;return l===0?c=0:s===n?c=((r-i)/l%6+6)%6:s===r?c=(i-n)/l+2:c=(n-r)/l+4,new e(Math.round(c*60),u,s,t.a)}static toRGBA(t){let{h:n,s:r,v:i,a:s}=t,a=i*r,l=a*(1-Math.abs(n/60%2-1)),u=i-a,[c,f,h]=[0,0,0];return n<60?(c=a,f=l):n<120?(c=l,f=a):n<180?(f=a,h=l):n<240?(f=l,h=a):n<300?(c=l,h=a):n<=360&&(c=a,h=l),c=Math.round((c+u)*255),f=Math.round((f+u)*255),h=Math.round((h+u)*255),new j(c,f,h,s)}},H=class e{static fromHex(t){return e.Format.CSS.parseHex(t)||e.red}static equals(t,n){return!t&&!n?!0:!t||!n?!1:t.equals(n)}get hsla(){return this._hsla?this._hsla:ge.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:st.fromRGBA(this.rgba)}constructor(t){if(t)if(t instanceof j)this.rgba=t;else if(t instanceof ge)this._hsla=t,this.rgba=ge.toRGBA(t);else if(t instanceof st)this._hsva=t,this.rgba=st.toRGBA(t);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(t){return!!t&&j.equals(this.rgba,t.rgba)&&ge.equals(this.hsla,t.hsla)&&st.equals(this.hsva,t.hsva)}getRelativeLuminance(){let t=e._relativeLuminanceForComponent(this.rgba.r),n=e._relativeLuminanceForComponent(this.rgba.g),r=e._relativeLuminanceForComponent(this.rgba.b),i=.2126*t+.7152*n+.0722*r;return ke(i,4)}static _relativeLuminanceForComponent(t){let n=t/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(t){let n=this.getRelativeLuminance(),r=t.getRelativeLuminance();return n>r}isDarkerThan(t){let n=this.getRelativeLuminance(),r=t.getRelativeLuminance();return n0)for(let i of r){let s=i.filter(c=>c!==void 0),a=s[1],l=s[2];if(!l)continue;let u;if(a==="rgb"){let c=/^\(\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;u=qs(yt(e,i),Et(l,c),!1)}else if(a==="rgba"){let c=/^\(\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;u=qs(yt(e,i),Et(l,c),!0)}else if(a==="hsl"){let c=/^\(\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;u=Us(yt(e,i),Et(l,c),!1)}else if(a==="hsla"){let c=/^\(\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;u=Us(yt(e,i),Et(l,c),!0)}else a==="#"&&(u=bo(yt(e,i),a+l));u&&t.push(u)}return t}function zs(e){return!e||typeof e.getValue!="function"||typeof e.positionAt!="function"?[]:xo(e)}var Os=new RegExp("\\bMARK:\\s*(.*)$","d"),_o=/^-+|-+$/g;function Hs(e,t){var n;let r=[];if(t.findRegionSectionHeaders&&(!((n=t.foldingRules)===null||n===void 0)&&n.markers)){let i=vo(e,t);r=r.concat(i)}if(t.findMarkSectionHeaders){let i=Lo(e);r=r.concat(i)}return r}function vo(e,t){let n=[],r=e.getLineCount();for(let i=1;i<=r;i++){let s=e.getLineContent(i),a=s.match(t.foldingRules.markers.start);if(a){let l={startLineNumber:i,startColumn:a[0].length+1,endLineNumber:i,endColumn:s.length+1};if(l.endColumn>l.startColumn){let u={range:l,...$s(s.substring(a[0].length)),shouldBeInComments:!1};(u.text||u.hasSeparatorLine)&&n.push(u)}}}return n}function Lo(e){let t=[],n=e.getLineCount();for(let r=1;r<=n;r++){let i=e.getLineContent(r);wo(i,r,t)}return t}function wo(e,t,n){Os.lastIndex=0;let r=Os.exec(e);if(r){let i=r.indices[1][0]+1,s=r.indices[1][1]+1,a={startLineNumber:t,startColumn:i,endLineNumber:t,endColumn:s};if(a.endColumn>a.startColumn){let l={range:a,...$s(r[1]),shouldBeInComments:!0};(l.text||l.hasSeparatorLine)&&n.push(l)}}}function $s(e){e=e.trim();let t=e.startsWith("-");return e=e.replace(_o,""),{text:e,hasSeparatorLine:t}}var Nr=class extends Xt{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(t){let n=[];for(let r=0;rthis._lines.length)n=this._lines.length,r=this._lines[n-1].length+1,i=!0;else{let s=this._lines[n-1].length+1;r<1?(r=1,i=!0):r>s&&(r=s,i=!0)}return i?{lineNumber:n,column:r}:t}},ot=class e{constructor(t,n){this._host=t,this._models=Object.create(null),this._foreignModuleFactory=n,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(t){return this._models[t]}_getModels(){let t=[];return Object.keys(this._models).forEach(n=>t.push(this._models[n])),t}acceptNewModel(t){this._models[t.url]=new Nr(Ae.parse(t.url),t.lines,t.EOL,t.versionId)}acceptModelChanged(t,n){if(!this._models[t])return;this._models[t].onEvents(n)}acceptRemovedModel(t){this._models[t]&&delete this._models[t]}async computeUnicodeHighlights(t,n,r){let i=this._getModel(t);return i?un.computeUnicodeHighlights(i,n,r):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async findSectionHeaders(t,n){let r=this._getModel(t);return r?Hs(r,n):[]}async computeDiff(t,n,r,i){let s=this._getModel(t),a=this._getModel(n);return!s||!a?null:e.computeDiff(s,a,r,i)}static computeDiff(t,n,r,i){let s=i==="advanced"?Lr.getDefault():Lr.getLegacy(),a=t.getLinesContent(),l=n.getLinesContent(),u=s.computeDiff(a,l,r),c=u.changes.length>0?!1:this._modelsAreIdentical(t,n);function f(h){return h.map(d=>{var g;return[d.original.startLineNumber,d.original.endLineNumberExclusive,d.modified.startLineNumber,d.modified.endLineNumberExclusive,(g=d.innerChanges)===null||g===void 0?void 0:g.map(p=>[p.originalRange.startLineNumber,p.originalRange.startColumn,p.originalRange.endLineNumber,p.originalRange.endColumn,p.modifiedRange.startLineNumber,p.modifiedRange.startColumn,p.modifiedRange.endLineNumber,p.modifiedRange.endColumn])]})}return{identical:c,quitEarly:u.hitTimeout,changes:f(u.changes),moves:u.moves.map(h=>[h.lineRangeMapping.original.startLineNumber,h.lineRangeMapping.original.endLineNumberExclusive,h.lineRangeMapping.modified.startLineNumber,h.lineRangeMapping.modified.endLineNumberExclusive,f(h.changes)])}}static _modelsAreIdentical(t,n){let r=t.getLineCount(),i=n.getLineCount();if(r!==i)return!1;for(let s=1;s<=r;s++){let a=t.getLineContent(s),l=n.getLineContent(s);if(a!==l)return!1}return!0}async computeMoreMinimalEdits(t,n,r){let i=this._getModel(t);if(!i)return n;let s=[],a;n=n.slice(0).sort((u,c)=>{if(u.range&&c.range)return P.compareRangesUsingStarts(u.range,c.range);let f=u.range?0:1,h=c.range?0:1;return f-h});let l=0;for(let u=1;ue._diffLimit){s.push({range:u,text:c});continue}let d=jr(h,c,r),g=i.offsetAt(P.lift(u).getStartPosition());for(let p of d){let m=i.positionAt(g+p.originalStart),_=i.positionAt(g+p.originalStart+p.originalLength),N={text:c.substr(p.modifiedStart,p.modifiedLength),range:{startLineNumber:m.lineNumber,startColumn:m.column,endLineNumber:_.lineNumber,endColumn:_.column}};i.getValueInRange(N.range)!==N.text&&s.push(N)}}return typeof a=="number"&&s.push({eol:a,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),s}async computeLinks(t){let n=this._getModel(t);return n?ui(n):null}async computeDefaultDocumentColors(t){let n=this._getModel(t);return n?zs(n):null}async textualSuggest(t,n,r,i){let s=new $e,a=new RegExp(r,i),l=new Set;e:for(let u of t){let c=this._getModel(u);if(c){for(let f of c.words(a))if(!(f===n||!isNaN(Number(f)))&&(l.add(f),l.size>e._suggestionsLimit))break e}}return{words:Array.from(l),duration:s.elapsed()}}async computeWordRanges(t,n,r,i){let s=this._getModel(t);if(!s)return Object.create(null);let a=new RegExp(r,i),l=Object.create(null);for(let u=n.startLineNumber;uthis._host.fhr(l,u)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(a,n),Promise.resolve(ft(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(t,n){if(!this._foreignModule||typeof this._foreignModule[t]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+t));try{return Promise.resolve(this._foreignModule[t].apply(this._foreignModule,n))}catch(r){return Promise.reject(r)}}};ot._diffLimit=1e5;ot._suggestionsLimit=1e4;typeof importScripts=="function"&&(globalThis.monaco=ps());var Sr=!1;function No(e){if(Sr)return;Sr=!0;let t=new Ut(n=>{globalThis.postMessage(n)},n=>new ot(n,e));globalThis.onmessage=n=>{t.onmessage(n.data)}}globalThis.onmessage=e=>{Sr||No(null)};})(); diff --git a/vs/language/typescript/ts.worker.js b/vs/language/typescript/ts.worker.js new file mode 100644 index 0000000..9d2a0b7 --- /dev/null +++ b/vs/language/typescript/ts.worker.js @@ -0,0 +1,51344 @@ +(()=>{var Mbe=class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(v){setTimeout(()=>{throw v.stack?RB.isErrorNoTelemetry(v)?new RB(v.message+` + +`+v.stack):new Error(v.message+` + +`+v.stack):v},0)}}emit(v){this.listeners.forEach(A=>{A(v)})}onUnexpectedError(v){this.unexpectedErrorHandler(v),this.emit(v)}onUnexpectedExternalError(v){this.unexpectedErrorHandler(v)}},Jvt=new Mbe;function a8(h){Kvt(h)||Jvt.onUnexpectedError(h)}function wbe(h){if(h instanceof Error){let{name:v,message:A}=h,F=h.stacktrace||h.stack;return{$isError:!0,name:v,message:A,stack:F,noTelemetry:RB.isErrorNoTelemetry(h)}}return h}var Lbe="Canceled";function Kvt(h){return h instanceof kbe?!0:h instanceof Error&&h.name===Lbe&&h.message===Lbe}var kbe=class extends Error{constructor(){super(Lbe),this.name=this.message}};var RB=class h extends Error{constructor(v){super(v),this.name="CodeExpectedError"}static fromError(v){if(v instanceof h)return v;let A=new h;return A.message=v.message,A.stack=v.stack,A}static isErrorNoTelemetry(v){return v.name==="CodeExpectedError"}},Dg=class h extends Error{constructor(v){super(v||"An unexpected bug occurred."),Object.setPrototypeOf(this,h.prototype)}};function Obe(h,v){let A=this,F=!1,X;return function(){if(F)return X;if(F=!0,v)try{X=h.apply(A,arguments)}finally{v()}else X=h.apply(A,arguments);return X}}var s8;(function(h){function v(Qr){return Qr&&typeof Qr=="object"&&typeof Qr[Symbol.iterator]=="function"}h.is=v;let A=Object.freeze([]);function F(){return A}h.empty=F;function*X(Qr){yield Qr}h.single=X;function _e(Qr){return v(Qr)?Qr:X(Qr)}h.wrap=_e;function Te(Qr){return Qr||A}h.from=Te;function*Be(Qr){for(let ri=Qr.length-1;ri>=0;ri--)yield Qr[ri]}h.reverse=Be;function nt(Qr){return!Qr||Qr[Symbol.iterator]().next().done===!0}h.isEmpty=nt;function De(Qr){return Qr[Symbol.iterator]().next().value}h.first=De;function Ke(Qr,ri){for(let to of Qr)if(ri(to))return!0;return!1}h.some=Ke;function Gt(Qr,ri){for(let to of Qr)if(ri(to))return to}h.find=Gt;function*Zt(Qr,ri){for(let to of Qr)ri(to)&&(yield to)}h.filter=Zt;function*ir(Qr,ri){let to=0;for(let Ga of Qr)yield ri(Ga,to++)}h.map=ir;function*Ar(...Qr){for(let ri of Qr)yield*ri}h.concat=Ar;function Un(Qr,ri,to){let Ga=to;for(let wr of Qr)Ga=ri(Ga,wr);return Ga}h.reduce=Un;function*Qi(Qr,ri,to=Qr.length){for(ri<0&&(ri+=Qr.length),to<0?to+=Qr.length:to>Qr.length&&(to=Qr.length);ri{v[h]||console.log(A)},3e3)}setParent(v,A){if(v&&v!==_1.None)try{v[h]=!0}catch{}}markAsDisposed(v){if(v&&v!==_1.None)try{v[h]=!0}catch{}}markAsSingleton(v){}})}function Wbe(h){return m1?.trackDisposable(h),h}function zbe(h){m1?.markAsDisposed(h)}function Fbe(h,v){m1?.setParent(h,v)}function $vt(h,v){if(m1)for(let A of h)m1.setParent(A,v)}function $7e(h){if(s8.is(h)){let v=[];for(let A of h)if(A)try{A.dispose()}catch(F){v.push(F)}if(v.length===1)throw v[0];if(v.length>1)throw new AggregateError(v,"Encountered errors while disposing of store");return Array.isArray(h)?[]:h}else if(h)return h.dispose(),h}function Q7e(...h){let v=l8(()=>$7e(h));return $vt(h,v),v}function l8(h){let v=Wbe({dispose:Obe(()=>{zbe(v),h()})});return v}var yM=class h{constructor(){this._toDispose=new Set,this._isDisposed=!1,Wbe(this)}dispose(){this._isDisposed||(zbe(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{$7e(this._toDispose)}finally{this._toDispose.clear()}}add(v){if(!v)return v;if(v===this)throw new Error("Cannot register a disposable on itself!");return Fbe(v,this),this._isDisposed?h.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(v),v}deleteAndLeak(v){v&&this._toDispose.has(v)&&(this._toDispose.delete(v),Fbe(v,null))}};yM.DISABLE_DISPOSED_WARNING=!1;var _1=class{constructor(){this._store=new yM,Wbe(this),Fbe(this._store,this)}dispose(){zbe(this),this._store.dispose()}_register(v){if(v===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(v)}};_1.None=Object.freeze({dispose(){}});var Xd=class h{constructor(v){this.element=v,this.next=h.Undefined,this.prev=h.Undefined}};Xd.Undefined=new Xd(void 0);var DB=class{constructor(){this._first=Xd.Undefined,this._last=Xd.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Xd.Undefined}clear(){let v=this._first;for(;v!==Xd.Undefined;){let A=v.next;v.prev=Xd.Undefined,v.next=Xd.Undefined,v=A}this._first=Xd.Undefined,this._last=Xd.Undefined,this._size=0}unshift(v){return this._insert(v,!1)}push(v){return this._insert(v,!0)}_insert(v,A){let F=new Xd(v);if(this._first===Xd.Undefined)this._first=F,this._last=F;else if(A){let _e=this._last;this._last=F,F.prev=_e,_e.next=F}else{let _e=this._first;this._first=F,F.next=_e,_e.prev=F}this._size+=1;let X=!1;return()=>{X||(X=!0,this._remove(F))}}shift(){if(this._first!==Xd.Undefined){let v=this._first.element;return this._remove(this._first),v}}pop(){if(this._last!==Xd.Undefined){let v=this._last.element;return this._remove(this._last),v}}_remove(v){if(v.prev!==Xd.Undefined&&v.next!==Xd.Undefined){let A=v.prev;A.next=v.next,v.next.prev=A}else v.prev===Xd.Undefined&&v.next===Xd.Undefined?(this._first=Xd.Undefined,this._last=Xd.Undefined):v.next===Xd.Undefined?(this._last=this._last.prev,this._last.next=Xd.Undefined):v.prev===Xd.Undefined&&(this._first=this._first.next,this._first.prev=Xd.Undefined);this._size-=1}*[Symbol.iterator](){let v=this._first;for(;v!==Xd.Undefined;)yield v.element,v=v.next}};var Qvt=globalThis.performance&&typeof globalThis.performance.now=="function",c8=class h{static create(v){return new h(v)}constructor(v){this._now=Qvt&&v===!1?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 this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}};var Zvt=!1,Z7e=!1,eyt=!1,Tte;(function(h){h.None=()=>_1.None;function v(Bi){if(eyt){let{onDidAddListener:Gi}=Bi,Ft=PB.create(),ra=0;Bi.onDidAddListener=()=>{++ra===2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),Ft.print()),Gi?.()}}}function A(Bi,Gi){return Zt(Bi,()=>{},0,void 0,!0,void 0,Gi)}h.defer=A;function F(Bi){return(Gi,Ft=null,ra)=>{let Io=!1,ts;return ts=Bi(Zi=>{if(!Io)return ts?ts.dispose():Io=!0,Gi.call(Ft,Zi)},null,ra),Io&&ts.dispose(),ts}}h.once=F;function X(Bi,Gi,Ft){return Ke((ra,Io=null,ts)=>Bi(Zi=>ra.call(Io,Gi(Zi)),null,ts),Ft)}h.map=X;function _e(Bi,Gi,Ft){return Ke((ra,Io=null,ts)=>Bi(Zi=>{Gi(Zi),ra.call(Io,Zi)},null,ts),Ft)}h.forEach=_e;function Te(Bi,Gi,Ft){return Ke((ra,Io=null,ts)=>Bi(Zi=>Gi(Zi)&&ra.call(Io,Zi),null,ts),Ft)}h.filter=Te;function Be(Bi){return Bi}h.signal=Be;function nt(...Bi){return(Gi,Ft=null,ra)=>{let Io=Q7e(...Bi.map(ts=>ts(Zi=>Gi.call(Ft,Zi))));return Gt(Io,ra)}}h.any=nt;function De(Bi,Gi,Ft,ra){let Io=Ft;return X(Bi,ts=>(Io=Gi(Io,ts),Io),ra)}h.reduce=De;function Ke(Bi,Gi){let Ft,ra={onWillAddFirstListener(){Ft=Bi(Io.fire,Io)},onDidRemoveLastListener(){Ft?.dispose()}};Gi||v(ra);let Io=new Hh(ra);return Gi?.add(Io),Io.event}function Gt(Bi,Gi){return Gi instanceof Array?Gi.push(Bi):Gi&&Gi.add(Bi),Bi}function Zt(Bi,Gi,Ft=100,ra=!1,Io=!1,ts,Zi){let $d,qf,eS,fA=0,Vi,tS={leakWarningThreshold:ts,onWillAddFirstListener(){$d=Bi(mA=>{fA++,qf=Gi(qf,mA),ra&&!eS&&(Rx.fire(qf),qf=void 0),Vi=()=>{let Av=qf;qf=void 0,eS=void 0,(!ra||fA>1)&&Rx.fire(Av),fA=0},typeof Ft=="number"?(clearTimeout(eS),eS=setTimeout(Vi,Ft)):eS===void 0&&(eS=0,queueMicrotask(Vi))})},onWillRemoveListener(){Io&&fA>0&&Vi?.()},onDidRemoveLastListener(){Vi=void 0,$d.dispose()}};Zi||v(tS);let Rx=new Hh(tS);return Zi?.add(Rx),Rx.event}h.debounce=Zt;function ir(Bi,Gi=0,Ft){return h.debounce(Bi,(ra,Io)=>ra?(ra.push(Io),ra):[Io],Gi,void 0,!0,void 0,Ft)}h.accumulate=ir;function Ar(Bi,Gi=(ra,Io)=>ra===Io,Ft){let ra=!0,Io;return Te(Bi,ts=>{let Zi=ra||!Gi(ts,Io);return ra=!1,Io=ts,Zi},Ft)}h.latch=Ar;function Un(Bi,Gi,Ft){return[h.filter(Bi,Gi,Ft),h.filter(Bi,ra=>!Gi(ra),Ft)]}h.split=Un;function Qi(Bi,Gi=!1,Ft=[],ra){let Io=Ft.slice(),ts=Bi(qf=>{Io?Io.push(qf):$d.fire(qf)});ra&&ra.add(ts);let Zi=()=>{Io?.forEach(qf=>$d.fire(qf)),Io=null},$d=new Hh({onWillAddFirstListener(){ts||(ts=Bi(qf=>$d.fire(qf)),ra&&ra.add(ts))},onDidAddFirstListener(){Io&&(Gi?setTimeout(Zi):Zi())},onDidRemoveLastListener(){ts&&ts.dispose(),ts=null}});return ra&&ra.add($d),$d.event}h.buffer=Qi;function Jn(Bi,Gi){return(ra,Io,ts)=>{let Zi=Gi(new Qr);return Bi(function($d){let qf=Zi.evaluate($d);qf!==vn&&ra.call(Io,qf)},void 0,ts)}}h.chain=Jn;let vn=Symbol("HaltChainable");class Qr{constructor(){this.steps=[]}map(Gi){return this.steps.push(Gi),this}forEach(Gi){return this.steps.push(Ft=>(Gi(Ft),Ft)),this}filter(Gi){return this.steps.push(Ft=>Gi(Ft)?Ft:vn),this}reduce(Gi,Ft){let ra=Ft;return this.steps.push(Io=>(ra=Gi(ra,Io),ra)),this}latch(Gi=(Ft,ra)=>Ft===ra){let Ft=!0,ra;return this.steps.push(Io=>{let ts=Ft||!Gi(Io,ra);return Ft=!1,ra=Io,ts?Io:vn}),this}evaluate(Gi){for(let Ft of this.steps)if(Gi=Ft(Gi),Gi===vn)break;return Gi}}function ri(Bi,Gi,Ft=ra=>ra){let ra=(...$d)=>Zi.fire(Ft(...$d)),Io=()=>Bi.on(Gi,ra),ts=()=>Bi.removeListener(Gi,ra),Zi=new Hh({onWillAddFirstListener:Io,onDidRemoveLastListener:ts});return Zi.event}h.fromNodeEventEmitter=ri;function to(Bi,Gi,Ft=ra=>ra){let ra=(...$d)=>Zi.fire(Ft(...$d)),Io=()=>Bi.addEventListener(Gi,ra),ts=()=>Bi.removeEventListener(Gi,ra),Zi=new Hh({onWillAddFirstListener:Io,onDidRemoveLastListener:ts});return Zi.event}h.fromDOMEventEmitter=to;function Ga(Bi){return new Promise(Gi=>F(Bi)(Gi))}h.toPromise=Ga;function wr(Bi){let Gi=new Hh;return Bi.then(Ft=>{Gi.fire(Ft)},()=>{Gi.fire(void 0)}).finally(()=>{Gi.dispose()}),Gi.event}h.fromPromise=wr;function Ma(Bi,Gi,Ft){return Gi(Ft),Bi(ra=>Gi(ra))}h.runAndSubscribe=Ma;class Kc{constructor(Gi,Ft){this._observable=Gi,this._counter=0,this._hasChanged=!1;let ra={onWillAddFirstListener:()=>{Gi.addObserver(this)},onDidRemoveLastListener:()=>{Gi.removeObserver(this)}};Ft||v(ra),this.emitter=new Hh(ra),Ft&&Ft.add(this.emitter)}beginUpdate(Gi){this._counter++}handlePossibleChange(Gi){}handleChange(Gi,Ft){this._hasChanged=!0}endUpdate(Gi){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function au(Bi,Gi){return new Kc(Bi,Gi).emitter.event}h.fromObservable=au;function tr(Bi){return(Gi,Ft,ra)=>{let Io=0,ts=!1,Zi={beginUpdate(){Io++},endUpdate(){Io--,Io===0&&(Bi.reportChanges(),ts&&(ts=!1,Gi.call(Ft)))},handlePossibleChange(){},handleChange(){ts=!0}};Bi.addObserver(Zi),Bi.reportChanges();let $d={dispose(){Bi.removeObserver(Zi)}};return ra instanceof yM?ra.add($d):Array.isArray(ra)&&ra.push($d),$d}}h.fromObservableLight=tr})(Tte||(Tte={}));var NB=class h{constructor(v){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${v}_${h._idPool++}`,h.all.add(this)}start(v){this._stopWatch=new c8,this.listenerCount=v}stop(){if(this._stopWatch){let v=this._stopWatch.elapsed();this.durations.push(v),this.elapsedOverall+=v,this.invocationCount+=1,this._stopWatch=void 0}}};NB.all=new Set;NB._idPool=0;var e5e=-1,Bbe=class{constructor(v,A,F=Math.random().toString(18).slice(2,5)){this._errorHandler=v,this.threshold=A,this.name=F,this._warnCountdown=0}dispose(){var v;(v=this._stacks)===null||v===void 0||v.clear()}check(v,A){let F=this.threshold;if(F<=0||A{let _e=this._stacks.get(v.value)||0;this._stacks.set(v.value,_e-1)}}getMostFrequentStack(){if(!this._stacks)return;let v,A=0;for(let[F,X]of this._stacks)(!v||A{if(h instanceof u8)v(h);else for(let A=0;A{typeof h=="string"&&(console.warn("[LEAKING LISTENER] GC'ed a listener that was NOT yet disposed. This is where is was created:"),console.warn(h))}):void 0,Hh=class{constructor(v){var A,F,X,_e,Te,Be;this._size=0,this._options=v,this._leakageMon=e5e>0||!((A=this._options)===null||A===void 0)&&A.leakWarningThreshold?new Bbe((F=v?.onListenerError)!==null&&F!==void 0?F:a8,(_e=(X=this._options)===null||X===void 0?void 0:X.leakWarningThreshold)!==null&&_e!==void 0?_e:e5e):void 0,this._perfMon=!((Te=this._options)===null||Te===void 0)&&Te._profName?new NB(this._options._profName):void 0,this._deliveryQueue=(Be=this._options)===null||Be===void 0?void 0:Be.deliveryQueue}dispose(){var v,A,F,X;if(!this._disposed){if(this._disposed=!0,((v=this._deliveryQueue)===null||v===void 0?void 0:v.current)===this&&this._deliveryQueue.reset(),this._listeners){if(Z7e){let _e=this._listeners;queueMicrotask(()=>{nyt(_e,Te=>{var Be;return(Be=Te.stack)===null||Be===void 0?void 0:Be.print()})})}this._listeners=void 0,this._size=0}(F=(A=this._options)===null||A===void 0?void 0:A.onDidRemoveLastListener)===null||F===void 0||F.call(A),(X=this._leakageMon)===null||X===void 0||X.dispose()}}get event(){var v;return(v=this._event)!==null&&v!==void 0||(this._event=(A,F,X)=>{var _e,Te,Be,nt,De,Ke,Gt;if(this._leakageMon&&this._size>this._leakageMon.threshold**2){let Qi=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(Qi);let Jn=(_e=this._leakageMon.getMostFrequentStack())!==null&&_e!==void 0?_e:["UNKNOWN stack",-1],vn=new Vbe(`${Qi}. HINT: Stack shows most frequent listener (${Jn[1]}-times)`,Jn[0]);return(((Te=this._options)===null||Te===void 0?void 0:Te.onListenerError)||a8)(vn),_1.None}if(this._disposed)return _1.None;F&&(A=A.bind(F));let Zt=new u8(A),ir,Ar;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(Zt.stack=PB.create(),ir=this._leakageMon.check(Zt.stack,this._size+1)),Z7e&&(Zt.stack=Ar??PB.create()),this._listeners?this._listeners instanceof u8?((Gt=this._deliveryQueue)!==null&&Gt!==void 0||(this._deliveryQueue=new jbe),this._listeners=[this._listeners,Zt]):this._listeners.push(Zt):((nt=(Be=this._options)===null||Be===void 0?void 0:Be.onWillAddFirstListener)===null||nt===void 0||nt.call(Be,this),this._listeners=Zt,(Ke=(De=this._options)===null||De===void 0?void 0:De.onDidAddFirstListener)===null||Ke===void 0||Ke.call(De,this)),this._size++;let Un=l8(()=>{CB?.unregister(Un),ir?.(),this._removeListener(Zt)});if(X instanceof yM?X.add(Un):Array.isArray(X)&&X.push(Un),CB){let Qi=new Error().stack.split(` +`).slice(2).join(` +`).trim();CB.register(Un,Qi,Un)}return Un}),this._event}_removeListener(v){var A,F,X,_e;if((F=(A=this._options)===null||A===void 0?void 0:A.onWillRemoveListener)===null||F===void 0||F.call(A,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(_e=(X=this._options)===null||X===void 0?void 0:X.onDidRemoveLastListener)===null||_e===void 0||_e.call(X,this),this._size=0;return}let Te=this._listeners,Be=Te.indexOf(v);if(Be===-1)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--,Te[Be]=void 0;let nt=this._deliveryQueue.current===this;if(this._size*tyt<=Te.length){let De=0;for(let Ke=0;Ke0}};var jbe=class{constructor(){this.i=-1,this.end=0}enqueue(v,A,F){this.i=0,this.end=F,this.current=v,this.value=A}reset(){this.i=this.end,this.current=void 0,this.value=void 0}};function t5e(h){return typeof h=="string"}function ryt(h){let v=[];for(;Object.prototype!==h;)v=v.concat(Object.getOwnPropertyNames(h)),h=Object.getPrototypeOf(h);return v}function MB(h){let v=[];for(let A of ryt(h))typeof h[A]=="function"&&v.push(A);return v}function n5e(h,v){let A=X=>function(){let _e=Array.prototype.slice.call(arguments,0);return v(X,_e)},F={};for(let X of h)F[X]=A(X);return F}var iyt=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function oyt(h,v){let A;return v.length===0?A=h:A=h.replace(/\{(\d+)\}/g,(F,X)=>{let _e=X[0],Te=v[_e],Be=F;return typeof Te=="string"?Be=Te:(typeof Te=="number"||typeof Te=="boolean"||Te===void 0||Te===null)&&(Be=String(Te)),Be}),iyt&&(A="\uFF3B"+A.replace(/[aouei]/g,"$&$&")+"\uFF3D"),A}function bd(h,v,...A){return oyt(v,A)}var Ube,Hbe,d8="en",xte=!1,Rte=!1,Ite=!1,syt=!1,lyt=!1,i5e=!1,cyt=!1,uyt=!1,dyt=!1,pyt=!1,Ate,qbe=d8,r5e=d8,fyt,XE,Ax=globalThis,qh;typeof Ax.vscode<"u"&&typeof Ax.vscode.process<"u"?qh=Ax.vscode.process:typeof process<"u"&&typeof((Ube=process==null?void 0:process.versions)===null||Ube===void 0?void 0:Ube.node)=="string"&&(qh=process);var o5e=typeof((Hbe=qh?.versions)===null||Hbe===void 0?void 0:Hbe.electron)=="string",myt=o5e&&qh?.type==="renderer";if(typeof qh=="object"){xte=qh.platform==="win32",Rte=qh.platform==="darwin",Ite=qh.platform==="linux",syt=Ite&&!!qh.env.SNAP&&!!qh.env.SNAP_REVISION,cyt=o5e,dyt=!!qh.env.CI||!!qh.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Ate=d8,qbe=d8;let h=qh.env.VSCODE_NLS_CONFIG;if(h)try{let v=JSON.parse(h),A=v.availableLanguages["*"];Ate=v.locale,r5e=v.osLocale,qbe=A||d8,fyt=v._translationsConfigFile}catch{}lyt=!0}else typeof navigator=="object"&&!myt?(XE=navigator.userAgent,xte=XE.indexOf("Windows")>=0,Rte=XE.indexOf("Macintosh")>=0,uyt=(XE.indexOf("Macintosh")>=0||XE.indexOf("iPad")>=0||XE.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Ite=XE.indexOf("Linux")>=0,pyt=XE?.indexOf("Mobi")>=0,i5e=!0,Ate=(bd({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),void 0)||d8,qbe=Ate,r5e=navigator.language):console.error("Unable to resolve platform.");var Jbe=0;Rte?Jbe=1:xte?Jbe=3:Ite&&(Jbe=2);var bM=xte,a5e=Rte;var _yt=i5e&&typeof Ax.importScripts=="function",e0t=_yt?Ax.origin:void 0;var aA=XE;var hyt=typeof Ax.postMessage=="function"&&!Ax.importScripts,t0t=(()=>{if(hyt){let h=[];Ax.addEventListener("message",A=>{if(A.data&&A.data.vscodeScheduleAsyncWork)for(let F=0,X=h.length;F{let F=++v;h.push({id:F,callback:A}),Ax.postMessage({vscodeScheduleAsyncWork:F},"*")}}return h=>setTimeout(h)})();var gyt=!!(aA&&aA.indexOf("Chrome")>=0),n0t=!!(aA&&aA.indexOf("Firefox")>=0),r0t=!!(!gyt&&aA&&aA.indexOf("Safari")>=0),i0t=!!(aA&&aA.indexOf("Edg/")>=0),o0t=!!(aA&&aA.indexOf("Android")>=0);function vyt(h){return h}var Dte=class{constructor(v,A){this.lastCache=void 0,this.lastArgKey=void 0,typeof v=="function"?(this._fn=v,this._computeKey=vyt):(this._fn=A,this._computeKey=v.getCacheKey)}get(v){let A=this._computeKey(v);return this.lastArgKey!==A&&(this.lastArgKey=A,this.lastCache=this._fn(v)),this.lastCache}};var LB=class{constructor(v){this.executor=v,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(v){this._error=v}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}};var p8;function s5e(h){return h.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function l5e(h){return h.split(/\r\n|\r|\n/)}function c5e(h){for(let v=0,A=h.length;v=0;A--){let F=h.charCodeAt(A);if(F!==32&&F!==9)return A}return-1}function Xbe(h){return h>=65&&h<=90}function f8(h){return 55296<=h&&h<=56319}function Cte(h){return 56320<=h&&h<=57343}function Ybe(h,v){return(h-55296<<10)+(v-56320)+65536}function d5e(h,v,A){let F=h.charCodeAt(A);if(f8(F)&&A+1A[3*X+1])X=2*X+1;else return A[3*X+2];return 0}};Kbe._INSTANCE=null;function byt(){return 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]")}var sA=class{static getInstance(v){return p8.cache.get(Array.from(v))}static getLocales(){return p8._locales.value}constructor(v){this.confusableDictionary=v}isAmbiguous(v){return this.confusableDictionary.has(v)}getPrimaryConfusable(v){return this.confusableDictionary.get(v)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}};p8=sA;sA.ambiguousCharacterData=new LB(()=>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]}'));sA.cache=new Dte({getCacheKey:JSON.stringify},h=>{function v(De){let Ke=new Map;for(let Gt=0;Gt!De.startsWith("_")&&De in X);_e.length===0&&(_e=["_default"]);let Te;for(let De of _e){let Ke=v(X[De]);Te=F(Te,Ke)}let Be=v(X._common),nt=A(Be,Te);return new p8(nt)});sA._locales=new LB(()=>Object.keys(p8.ambiguousCharacterData.value).filter(h=>!h.startsWith("_")));var EM=class h{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 getData(){return this._data||(this._data=new Set(h.getRawData())),this._data}static isInvisibleCharacter(v){return h.getData().has(v)}static get codePoints(){return h.getData()}};EM._data=void 0;var Eyt="$initialize";var $be=class{constructor(v,A,F,X){this.vsWorker=v,this.req=A,this.method=F,this.args=X,this.type=0}},Nte=class{constructor(v,A,F,X){this.vsWorker=v,this.seq=A,this.res=F,this.err=X,this.type=1}},Qbe=class{constructor(v,A,F,X){this.vsWorker=v,this.req=A,this.eventName=F,this.arg=X,this.type=2}},Zbe=class{constructor(v,A,F){this.vsWorker=v,this.req=A,this.event=F,this.type=3}},e0e=class{constructor(v,A){this.vsWorker=v,this.req=A,this.type=4}},t0e=class{constructor(v){this._workerId=-1,this._handler=v,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(v){this._workerId=v}sendMessage(v,A){let F=String(++this._lastSentReq);return new Promise((X,_e)=>{this._pendingReplies[F]={resolve:X,reject:_e},this._send(new $be(this._workerId,F,v,A))})}listen(v,A){let F=null,X=new Hh({onWillAddFirstListener:()=>{F=String(++this._lastSentReq),this._pendingEmitters.set(F,X),this._send(new Qbe(this._workerId,F,v,A))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(F),this._send(new e0e(this._workerId,F)),F=null}});return X.event}handleMessage(v){!v||!v.vsWorker||this._workerId!==-1&&v.vsWorker!==this._workerId||this._handleMessage(v)}_handleMessage(v){switch(v.type){case 1:return this._handleReplyMessage(v);case 0:return this._handleRequestMessage(v);case 2:return this._handleSubscribeEventMessage(v);case 3:return this._handleEventMessage(v);case 4:return this._handleUnsubscribeEventMessage(v)}}_handleReplyMessage(v){if(!this._pendingReplies[v.seq]){console.warn("Got reply to unknown seq");return}let A=this._pendingReplies[v.seq];if(delete this._pendingReplies[v.seq],v.err){let F=v.err;v.err.$isError&&(F=new Error,F.name=v.err.name,F.message=v.err.message,F.stack=v.err.stack),A.reject(F);return}A.resolve(v.res)}_handleRequestMessage(v){let A=v.req;this._handler.handleMessage(v.method,v.args).then(X=>{this._send(new Nte(this._workerId,A,X,void 0))},X=>{X.detail instanceof Error&&(X.detail=wbe(X.detail)),this._send(new Nte(this._workerId,A,void 0,wbe(X)))})}_handleSubscribeEventMessage(v){let A=v.req,F=this._handler.handleEvent(v.eventName,v.arg)(X=>{this._send(new Zbe(this._workerId,A,X))});this._pendingEvents.set(A,F)}_handleEventMessage(v){if(!this._pendingEmitters.has(v.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(v.req).fire(v.event)}_handleUnsubscribeEventMessage(v){if(!this._pendingEvents.has(v.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(v.req).dispose(),this._pendingEvents.delete(v.req)}_send(v){let A=[];if(v.type===0)for(let F=0;Ffunction(){let Be=Array.prototype.slice.call(arguments,0);return v(Te,Be)},X=Te=>function(Be){return A(Te,Be)},_e={};for(let Te of h){if(m5e(Te)){_e[Te]=X(Te);continue}if(f5e(Te)){_e[Te]=A(Te,void 0);continue}_e[Te]=F(Te)}return _e}var Pte=class{constructor(v,A){this._requestHandlerFactory=A,this._requestHandler=null,this._protocol=new t0e({sendMessage:(F,X)=>{v(F,X)},handleMessage:(F,X)=>this._handleMessage(F,X),handleEvent:(F,X)=>this._handleEvent(F,X)})}onmessage(v){this._protocol.handleMessage(v)}_handleMessage(v,A){if(v===Eyt)return this.initialize(A[0],A[1],A[2],A[3]);if(!this._requestHandler||typeof this._requestHandler[v]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+v));try{return Promise.resolve(this._requestHandler[v].apply(this._requestHandler,A))}catch(F){return Promise.reject(F)}}_handleEvent(v,A){if(!this._requestHandler)throw new Error("Missing requestHandler");if(m5e(v)){let F=this._requestHandler[v].call(this._requestHandler,A);if(typeof F!="function")throw new Error(`Missing dynamic event ${v} on request handler.`);return F}if(f5e(v)){let F=this._requestHandler[v];if(typeof F!="function")throw new Error(`Missing event ${v} on request handler.`);return F}throw new Error(`Malformed event name ${v}`)}initialize(v,A,F,X){this._protocol.setWorkerId(v);let Be=Syt(X,(nt,De)=>this._protocol.sendMessage(nt,De),(nt,De)=>this._protocol.listen(nt,De));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(Be),Promise.resolve(MB(this._requestHandler))):(A&&(typeof A.baseUrl<"u"&&delete A.baseUrl,typeof A.paths<"u"&&typeof A.paths.vs<"u"&&delete A.paths.vs,typeof A.trustedTypesPolicy<"u"&&delete A.trustedTypesPolicy,A.catchError=!0,globalThis.require.config(A)),new Promise((nt,De)=>{let Ke=globalThis.require;Ke([F],Gt=>{if(this._requestHandler=Gt.create(Be),!this._requestHandler){De(new Error("No RequestHandler!"));return}nt(MB(this._requestHandler))},De)}))}};var YE=class{constructor(v,A,F,X){this.originalStart=v,this.originalLength=A,this.modifiedStart=F,this.modifiedLength=X}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}};function _5e(h,v){return(v<<5)-v+h|0}function g5e(h,v){v=_5e(149417,v);for(let A=0,F=h.length;A>>F)>>>0}function h5e(h,v=0,A=h.byteLength,F=0){for(let X=0;XA.toString(16).padStart(2,"0")).join(""):Tyt((h>>>0).toString(16),v/4)}var r0e=class h{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(v){let A=v.length;if(A===0)return;let F=this._buff,X=this._buffLen,_e=this._leftoverHighSurrogate,Te,Be;for(_e!==0?(Te=_e,Be=-1,_e=0):(Te=v.charCodeAt(0),Be=0);;){let nt=Te;if(f8(Te))if(Be+1>>6,v[A++]=128|(F&63)>>>0):F<65536?(v[A++]=224|(F&61440)>>>12,v[A++]=128|(F&4032)>>>6,v[A++]=128|(F&63)>>>0):(v[A++]=240|(F&1835008)>>>18,v[A++]=128|(F&258048)>>>12,v[A++]=128|(F&4032)>>>6,v[A++]=128|(F&63)>>>0),A>=64&&(this._step(),A-=64,this._totalLen+=64,v[0]=v[64],v[1]=v[65],v[2]=v[66]),A}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()),wB(this._h0)+wB(this._h1)+wB(this._h2)+wB(this._h3)+wB(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,h5e(this._buff,this._buffLen),this._buffLen>56&&(this._step(),h5e(this._buff));let v=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(v/4294967296),!1),this._buffDV.setUint32(60,v%4294967296,!1),this._step()}_step(){let v=h._bigBlock32,A=this._buffDV;for(let Gt=0;Gt<64;Gt+=4)v.setUint32(Gt,A.getUint32(Gt,!1),!1);for(let Gt=64;Gt<320;Gt+=4)v.setUint32(Gt,n0e(v.getUint32(Gt-12,!1)^v.getUint32(Gt-32,!1)^v.getUint32(Gt-56,!1)^v.getUint32(Gt-64,!1),1),!1);let F=this._h0,X=this._h1,_e=this._h2,Te=this._h3,Be=this._h4,nt,De,Ke;for(let Gt=0;Gt<80;Gt++)Gt<20?(nt=X&_e|~X&Te,De=1518500249):Gt<40?(nt=X^_e^Te,De=1859775393):Gt<60?(nt=X&_e|X&Te|_e&Te,De=2400959708):(nt=X^_e^Te,De=3395469782),Ke=n0e(F,5)+nt+Be+De+v.getUint32(Gt*4,!1)&4294967295,Be=Te,Te=_e,_e=n0e(X,30),X=F,F=Ke;this._h0=this._h0+F&4294967295,this._h1=this._h1+X&4294967295,this._h2=this._h2+_e&4294967295,this._h3=this._h3+Te&4294967295,this._h4=this._h4+Be&4294967295}};r0e._bigBlock32=new DataView(new ArrayBuffer(320));var Mte=class{constructor(v){this.source=v}getElements(){let v=this.source,A=new Int32Array(v.length);for(let F=0,X=v.length;F0||this.m_modifiedCount>0)&&this.m_changes.push(new YE(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(v,A){this.m_originalStart=Math.min(this.m_originalStart,v),this.m_modifiedStart=Math.min(this.m_modifiedStart,A),this.m_originalCount++}AddModifiedElement(v,A){this.m_originalStart=Math.min(this.m_originalStart,v),this.m_modifiedStart=Math.min(this.m_modifiedStart,A),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}},OB=class h{constructor(v,A,F=null){this.ContinueProcessingPredicate=F,this._originalSequence=v,this._modifiedSequence=A;let[X,_e,Te]=h._getElements(v),[Be,nt,De]=h._getElements(A);this._hasStrings=Te&&De,this._originalStringElements=X,this._originalElementsOrHash=_e,this._modifiedStringElements=Be,this._modifiedElementsOrHash=nt,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(v){return v.length>0&&typeof v[0]=="string"}static _getElements(v){let A=v.getElements();if(h._isStringArray(A)){let F=new Int32Array(A.length);for(let X=0,_e=A.length;X<_e;X++)F[X]=g5e(A[X],0);return[A,F,!0]}return A instanceof Int32Array?[[],A,!1]:[[],new Int32Array(A),!1]}ElementsAreEqual(v,A){return this._originalElementsOrHash[v]!==this._modifiedElementsOrHash[A]?!1:this._hasStrings?this._originalStringElements[v]===this._modifiedStringElements[A]:!0}ElementsAreStrictEqual(v,A){if(!this.ElementsAreEqual(v,A))return!1;let F=h._getStrictElement(this._originalSequence,v),X=h._getStrictElement(this._modifiedSequence,A);return F===X}static _getStrictElement(v,A){return typeof v.getStrictElement=="function"?v.getStrictElement(A):null}OriginalElementsAreEqual(v,A){return this._originalElementsOrHash[v]!==this._originalElementsOrHash[A]?!1:this._hasStrings?this._originalStringElements[v]===this._originalStringElements[A]:!0}ModifiedElementsAreEqual(v,A){return this._modifiedElementsOrHash[v]!==this._modifiedElementsOrHash[A]?!1:this._hasStrings?this._modifiedStringElements[v]===this._modifiedStringElements[A]:!0}ComputeDiff(v){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,v)}_ComputeDiff(v,A,F,X,_e){let Te=[!1],Be=this.ComputeDiffRecursive(v,A,F,X,Te);return _e&&(Be=this.PrettifyChanges(Be)),{quitEarly:Te[0],changes:Be}}ComputeDiffRecursive(v,A,F,X,_e){for(_e[0]=!1;v<=A&&F<=X&&this.ElementsAreEqual(v,F);)v++,F++;for(;A>=v&&X>=F&&this.ElementsAreEqual(A,X);)A--,X--;if(v>A||F>X){let Gt;return F<=X?(wD.Assert(v===A+1,"originalStart should only be one more than originalEnd"),Gt=[new YE(v,0,F,X-F+1)]):v<=A?(wD.Assert(F===X+1,"modifiedStart should only be one more than modifiedEnd"),Gt=[new YE(v,A-v+1,F,0)]):(wD.Assert(v===A+1,"originalStart should only be one more than originalEnd"),wD.Assert(F===X+1,"modifiedStart should only be one more than modifiedEnd"),Gt=[]),Gt}let Te=[0],Be=[0],nt=this.ComputeRecursionPoint(v,A,F,X,Te,Be,_e),De=Te[0],Ke=Be[0];if(nt!==null)return nt;if(!_e[0]){let Gt=this.ComputeDiffRecursive(v,De,F,Ke,_e),Zt=[];return _e[0]?Zt=[new YE(De+1,A-(De+1)+1,Ke+1,X-(Ke+1)+1)]:Zt=this.ComputeDiffRecursive(De+1,A,Ke+1,X,_e),this.ConcatenateChanges(Gt,Zt)}return[new YE(v,A-v+1,F,X-F+1)]}WALKTRACE(v,A,F,X,_e,Te,Be,nt,De,Ke,Gt,Zt,ir,Ar,Un,Qi,Jn,vn){let Qr=null,ri=null,to=new Lte,Ga=A,wr=F,Ma=ir[0]-Qi[0]-X,Kc=-1073741824,au=this.m_forwardHistory.length-1;do{let tr=Ma+v;tr===Ga||tr=0&&(De=this.m_forwardHistory[au],v=De[0],Ga=1,wr=De.length-1)}while(--au>=-1);if(Qr=to.getReverseChanges(),vn[0]){let tr=ir[0]+1,Bi=Qi[0]+1;if(Qr!==null&&Qr.length>0){let Gi=Qr[Qr.length-1];tr=Math.max(tr,Gi.getOriginalEnd()),Bi=Math.max(Bi,Gi.getModifiedEnd())}ri=[new YE(tr,Zt-tr+1,Bi,Un-Bi+1)]}else{to=new Lte,Ga=Te,wr=Be,Ma=ir[0]-Qi[0]-nt,Kc=1073741824,au=Jn?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{let tr=Ma+_e;tr===Ga||tr=Ke[tr+1]?(Gt=Ke[tr+1]-1,Ar=Gt-Ma-nt,Gt>Kc&&to.MarkNextChange(),Kc=Gt+1,to.AddOriginalElement(Gt+1,Ar+1),Ma=tr+1-_e):(Gt=Ke[tr-1],Ar=Gt-Ma-nt,Gt>Kc&&to.MarkNextChange(),Kc=Gt,to.AddModifiedElement(Gt+1,Ar+1),Ma=tr-1-_e),au>=0&&(Ke=this.m_reverseHistory[au],_e=Ke[0],Ga=1,wr=Ke.length-1)}while(--au>=-1);ri=to.getChanges()}return this.ConcatenateChanges(Qr,ri)}ComputeRecursionPoint(v,A,F,X,_e,Te,Be){let nt=0,De=0,Ke=0,Gt=0,Zt=0,ir=0;v--,F--,_e[0]=0,Te[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];let Ar=A-v+(X-F),Un=Ar+1,Qi=new Int32Array(Un),Jn=new Int32Array(Un),vn=X-F,Qr=A-v,ri=v-F,to=A-X,wr=(Qr-vn)%2===0;Qi[vn]=v,Jn[Qr]=A,Be[0]=!1;for(let Ma=1;Ma<=Ar/2+1;Ma++){let Kc=0,au=0;Ke=this.ClipDiagonalBound(vn-Ma,Ma,vn,Un),Gt=this.ClipDiagonalBound(vn+Ma,Ma,vn,Un);for(let Bi=Ke;Bi<=Gt;Bi+=2){Bi===Ke||BiKc+au&&(Kc=nt,au=De),!wr&&Math.abs(Bi-Qr)<=Ma-1&&nt>=Jn[Bi])return _e[0]=nt,Te[0]=De,Gi<=Jn[Bi]&&Ma<=1448?this.WALKTRACE(vn,Ke,Gt,ri,Qr,Zt,ir,to,Qi,Jn,nt,A,_e,De,X,Te,wr,Be):null}let tr=(Kc-v+(au-F)-Ma)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(Kc,tr))return Be[0]=!0,_e[0]=Kc,Te[0]=au,tr>0&&Ma<=1448?this.WALKTRACE(vn,Ke,Gt,ri,Qr,Zt,ir,to,Qi,Jn,nt,A,_e,De,X,Te,wr,Be):(v++,F++,[new YE(v,A-v+1,F,X-F+1)]);Zt=this.ClipDiagonalBound(Qr-Ma,Ma,Qr,Un),ir=this.ClipDiagonalBound(Qr+Ma,Ma,Qr,Un);for(let Bi=Zt;Bi<=ir;Bi+=2){Bi===Zt||Bi=Jn[Bi+1]?nt=Jn[Bi+1]-1:nt=Jn[Bi-1],De=nt-(Bi-Qr)-to;let Gi=nt;for(;nt>v&&De>F&&this.ElementsAreEqual(nt,De);)nt--,De--;if(Jn[Bi]=nt,wr&&Math.abs(Bi-vn)<=Ma&&nt<=Qi[Bi])return _e[0]=nt,Te[0]=De,Gi>=Qi[Bi]&&Ma<=1448?this.WALKTRACE(vn,Ke,Gt,ri,Qr,Zt,ir,to,Qi,Jn,nt,A,_e,De,X,Te,wr,Be):null}if(Ma<=1447){let Bi=new Int32Array(Gt-Ke+2);Bi[0]=vn-Ke+1,OD.Copy2(Qi,Ke,Bi,1,Gt-Ke+1),this.m_forwardHistory.push(Bi),Bi=new Int32Array(ir-Zt+2),Bi[0]=Qr-Zt+1,OD.Copy2(Jn,Zt,Bi,1,ir-Zt+1),this.m_reverseHistory.push(Bi)}}return this.WALKTRACE(vn,Ke,Gt,ri,Qr,Zt,ir,to,Qi,Jn,nt,A,_e,De,X,Te,wr,Be)}PrettifyChanges(v){for(let A=0;A0,Be=F.modifiedLength>0;for(;F.originalStart+F.originalLength=0;A--){let F=v[A],X=0,_e=0;if(A>0){let Gt=v[A-1];X=Gt.originalStart+Gt.originalLength,_e=Gt.modifiedStart+Gt.modifiedLength}let Te=F.originalLength>0,Be=F.modifiedLength>0,nt=0,De=this._boundaryScore(F.originalStart,F.originalLength,F.modifiedStart,F.modifiedLength);for(let Gt=1;;Gt++){let Zt=F.originalStart-Gt,ir=F.modifiedStart-Gt;if(ZtDe&&(De=Un,nt=Gt)}F.originalStart-=nt,F.modifiedStart-=nt;let Ke=[null];if(A>0&&this.ChangesOverlap(v[A-1],v[A],Ke)){v[A-1]=Ke[0],v.splice(A,1),A++;continue}}if(this._hasStrings)for(let A=1,F=v.length;A0&&ir>nt&&(nt=ir,De=Gt,Ke=Zt)}return nt>0?[De,Ke]:null}_contiguousSequenceScore(v,A,F){let X=0;for(let _e=0;_e=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[v])}_OriginalRegionIsBoundary(v,A){if(this._OriginalIsBoundary(v)||this._OriginalIsBoundary(v-1))return!0;if(A>0){let F=v+A;if(this._OriginalIsBoundary(F-1)||this._OriginalIsBoundary(F))return!0}return!1}_ModifiedIsBoundary(v){return v<=0||v>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[v])}_ModifiedRegionIsBoundary(v,A){if(this._ModifiedIsBoundary(v)||this._ModifiedIsBoundary(v-1))return!0;if(A>0){let F=v+A;if(this._ModifiedIsBoundary(F-1)||this._ModifiedIsBoundary(F))return!0}return!1}_boundaryScore(v,A,F,X){let _e=this._OriginalRegionIsBoundary(v,A)?1:0,Te=this._ModifiedRegionIsBoundary(F,X)?1:0;return _e+Te}ConcatenateChanges(v,A){let F=[];if(v.length===0||A.length===0)return A.length>0?A:v;if(this.ChangesOverlap(v[v.length-1],A[0],F)){let X=new Array(v.length+A.length-1);return OD.Copy(v,0,X,0,v.length-1),X[v.length-1]=F[0],OD.Copy(A,1,X,v.length,A.length-1),X}else{let X=new Array(v.length+A.length);return OD.Copy(v,0,X,0,v.length),OD.Copy(A,0,X,v.length,A.length),X}}ChangesOverlap(v,A,F){if(wD.Assert(v.originalStart<=A.originalStart,"Left change is not less than or equal to right change"),wD.Assert(v.modifiedStart<=A.modifiedStart,"Left change is not less than or equal to right change"),v.originalStart+v.originalLength>=A.originalStart||v.modifiedStart+v.modifiedLength>=A.modifiedStart){let X=v.originalStart,_e=v.originalLength,Te=v.modifiedStart,Be=v.modifiedLength;return v.originalStart+v.originalLength>=A.originalStart&&(_e=A.originalStart+A.originalLength-v.originalStart),v.modifiedStart+v.modifiedLength>=A.modifiedStart&&(Be=A.modifiedStart+A.modifiedLength-v.modifiedStart),F[0]=new YE(X,_e,Te,Be),!0}else return F[0]=null,!1}ClipDiagonalBound(v,A,F,X){if(v>=0&&v=Iyt&&h<=Ryt||h>=xyt&&h<=Dyt}function wte(h,v,A,F){let X="",_e=0,Te=-1,Be=0,nt=0;for(let De=0;De<=h.length;++De){if(De2){let Ke=X.lastIndexOf(A);Ke===-1?(X="",_e=0):(X=X.slice(0,Ke),_e=X.length-1-X.lastIndexOf(A)),Te=De,Be=0;continue}else if(X.length!==0){X="",_e=0,Te=De,Be=0;continue}}v&&(X+=X.length>0?`${A}..`:"..",_e=2)}else X.length>0?X+=`${A}${h.slice(Te+1,De)}`:X=h.slice(Te+1,De),_e=De-Te-1;Te=De,Be=0}else nt===zD&&Be!==-1?++Be:Be=-1}return X}function E5e(h,v){Nyt(v,"pathObject");let A=v.dir||v.root,F=v.base||`${v.name||""}${v.ext||""}`;return A?A===v.root?`${A}${F}`:`${A}${h}${F}`:F}var Cg={resolve(...h){let v="",A="",F=!1;for(let X=h.length-1;X>=-1;X--){let _e;if(X>=0){if(_e=h[X],Hf(_e,"path"),_e.length===0)continue}else v.length===0?_e=FB():(_e=y5e[`=${v}`]||FB(),(_e===void 0||_e.slice(0,2).toLowerCase()!==v.toLowerCase()&&_e.charCodeAt(2)===Ey)&&(_e=`${v}\\`));let Te=_e.length,Be=0,nt="",De=!1,Ke=_e.charCodeAt(0);if(Te===1)Hl(Ke)&&(Be=1,De=!0);else if(Hl(Ke))if(De=!0,Hl(_e.charCodeAt(1))){let Gt=2,Zt=Gt;for(;Gt2&&Hl(_e.charCodeAt(2))&&(De=!0,Be=3));if(nt.length>0)if(v.length>0){if(nt.toLowerCase()!==v.toLowerCase())continue}else v=nt;if(F){if(v.length>0)break}else if(A=`${_e.slice(Be)}\\${A}`,F=De,De&&v.length>0)break}return A=wte(A,!F,"\\",Hl),F?`${v}\\${A}`:`${v}${A}`||"."},normalize(h){Hf(h,"path");let v=h.length;if(v===0)return".";let A=0,F,X=!1,_e=h.charCodeAt(0);if(v===1)return o0e(_e)?"\\":h;if(Hl(_e))if(X=!0,Hl(h.charCodeAt(1))){let Be=2,nt=Be;for(;Be2&&Hl(h.charCodeAt(2))&&(X=!0,A=3));let Te=A0&&Hl(h.charCodeAt(v-1))&&(Te+="\\"),F===void 0?X?`\\${Te}`:Te:X?`${F}\\${Te}`:`${F}${Te}`},isAbsolute(h){Hf(h,"path");let v=h.length;if(v===0)return!1;let A=h.charCodeAt(0);return Hl(A)||v>2&&WD(A)&&h.charCodeAt(1)===FD&&Hl(h.charCodeAt(2))},join(...h){if(h.length===0)return".";let v,A;for(let _e=0;_e0&&(v===void 0?v=A=Te:v+=`\\${Te}`)}if(v===void 0)return".";let F=!0,X=0;if(typeof A=="string"&&Hl(A.charCodeAt(0))){++X;let _e=A.length;_e>1&&Hl(A.charCodeAt(1))&&(++X,_e>2&&(Hl(A.charCodeAt(2))?++X:F=!1))}if(F){for(;X=2&&(v=`\\${v.slice(X)}`)}return Cg.normalize(v)},relative(h,v){if(Hf(h,"from"),Hf(v,"to"),h===v)return"";let A=Cg.resolve(h),F=Cg.resolve(v);if(A===F||(h=A.toLowerCase(),v=F.toLowerCase(),h===v))return"";let X=0;for(;XX&&h.charCodeAt(_e-1)===Ey;)_e--;let Te=_e-X,Be=0;for(;BeBe&&v.charCodeAt(nt-1)===Ey;)nt--;let De=nt-Be,Ke=TeKe){if(v.charCodeAt(Be+Zt)===Ey)return F.slice(Be+Zt+1);if(Zt===2)return F.slice(Be+Zt)}Te>Ke&&(h.charCodeAt(X+Zt)===Ey?Gt=Zt:Zt===2&&(Gt=3)),Gt===-1&&(Gt=0)}let ir="";for(Zt=X+Gt+1;Zt<=_e;++Zt)(Zt===_e||h.charCodeAt(Zt)===Ey)&&(ir+=ir.length===0?"..":"\\..");return Be+=Gt,ir.length>0?`${ir}${F.slice(Be,nt)}`:(F.charCodeAt(Be)===Ey&&++Be,F.slice(Be,nt))},toNamespacedPath(h){if(typeof h!="string"||h.length===0)return h;let v=Cg.resolve(h);if(v.length<=2)return h;if(v.charCodeAt(0)===Ey){if(v.charCodeAt(1)===Ey){let A=v.charCodeAt(2);if(A!==Cyt&&A!==zD)return`\\\\?\\UNC\\${v.slice(2)}`}}else if(WD(v.charCodeAt(0))&&v.charCodeAt(1)===FD&&v.charCodeAt(2)===Ey)return`\\\\?\\${v}`;return h},dirname(h){Hf(h,"path");let v=h.length;if(v===0)return".";let A=-1,F=0,X=h.charCodeAt(0);if(v===1)return Hl(X)?h:".";if(Hl(X)){if(A=F=1,Hl(h.charCodeAt(1))){let Be=2,nt=Be;for(;Be2&&Hl(h.charCodeAt(2))?3:2,F=A);let _e=-1,Te=!0;for(let Be=v-1;Be>=F;--Be)if(Hl(h.charCodeAt(Be))){if(!Te){_e=Be;break}}else Te=!1;if(_e===-1){if(A===-1)return".";_e=A}return h.slice(0,_e)},basename(h,v){v!==void 0&&Hf(v,"ext"),Hf(h,"path");let A=0,F=-1,X=!0,_e;if(h.length>=2&&WD(h.charCodeAt(0))&&h.charCodeAt(1)===FD&&(A=2),v!==void 0&&v.length>0&&v.length<=h.length){if(v===h)return"";let Te=v.length-1,Be=-1;for(_e=h.length-1;_e>=A;--_e){let nt=h.charCodeAt(_e);if(Hl(nt)){if(!X){A=_e+1;break}}else Be===-1&&(X=!1,Be=_e+1),Te>=0&&(nt===v.charCodeAt(Te)?--Te===-1&&(F=_e):(Te=-1,F=Be))}return A===F?F=Be:F===-1&&(F=h.length),h.slice(A,F)}for(_e=h.length-1;_e>=A;--_e)if(Hl(h.charCodeAt(_e))){if(!X){A=_e+1;break}}else F===-1&&(X=!1,F=_e+1);return F===-1?"":h.slice(A,F)},extname(h){Hf(h,"path");let v=0,A=-1,F=0,X=-1,_e=!0,Te=0;h.length>=2&&h.charCodeAt(1)===FD&&WD(h.charCodeAt(0))&&(v=F=2);for(let Be=h.length-1;Be>=v;--Be){let nt=h.charCodeAt(Be);if(Hl(nt)){if(!_e){F=Be+1;break}continue}X===-1&&(_e=!1,X=Be+1),nt===zD?A===-1?A=Be:Te!==1&&(Te=1):A!==-1&&(Te=-1)}return A===-1||X===-1||Te===0||Te===1&&A===X-1&&A===F+1?"":h.slice(A,X)},format:E5e.bind(null,"\\"),parse(h){Hf(h,"path");let v={root:"",dir:"",base:"",ext:"",name:""};if(h.length===0)return v;let A=h.length,F=0,X=h.charCodeAt(0);if(A===1)return Hl(X)?(v.root=v.dir=h,v):(v.base=v.name=h,v);if(Hl(X)){if(F=1,Hl(h.charCodeAt(1))){let Gt=2,Zt=Gt;for(;Gt0&&(v.root=h.slice(0,F));let _e=-1,Te=F,Be=-1,nt=!0,De=h.length-1,Ke=0;for(;De>=F;--De){if(X=h.charCodeAt(De),Hl(X)){if(!nt){Te=De+1;break}continue}Be===-1&&(nt=!1,Be=De+1),X===zD?_e===-1?_e=De:Ke!==1&&(Ke=1):_e!==-1&&(Ke=-1)}return Be!==-1&&(_e===-1||Ke===0||Ke===1&&_e===Be-1&&_e===Te+1?v.base=v.name=h.slice(Te,Be):(v.name=h.slice(Te,_e),v.base=h.slice(Te,Be),v.ext=h.slice(_e,Be))),Te>0&&Te!==F?v.dir=h.slice(0,Te-1):v.dir=v.root,v},sep:"\\",delimiter:";",win32:null,posix:null},Pyt=(()=>{if(BD){let h=/\\/g;return()=>{let v=FB().replace(h,"/");return v.slice(v.indexOf("/"))}}return()=>FB()})(),Tv={resolve(...h){let v="",A=!1;for(let F=h.length-1;F>=-1&&!A;F--){let X=F>=0?h[F]:Pyt();Hf(X,"path"),X.length!==0&&(v=`${X}/${v}`,A=X.charCodeAt(0)===oh)}return v=wte(v,!A,"/",o0e),A?`/${v}`:v.length>0?v:"."},normalize(h){if(Hf(h,"path"),h.length===0)return".";let v=h.charCodeAt(0)===oh,A=h.charCodeAt(h.length-1)===oh;return h=wte(h,!v,"/",o0e),h.length===0?v?"/":A?"./":".":(A&&(h+="/"),v?`/${h}`:h)},isAbsolute(h){return Hf(h,"path"),h.length>0&&h.charCodeAt(0)===oh},join(...h){if(h.length===0)return".";let v;for(let A=0;A0&&(v===void 0?v=F:v+=`/${F}`)}return v===void 0?".":Tv.normalize(v)},relative(h,v){if(Hf(h,"from"),Hf(v,"to"),h===v||(h=Tv.resolve(h),v=Tv.resolve(v),h===v))return"";let A=1,F=h.length,X=F-A,_e=1,Te=v.length-_e,Be=XBe){if(v.charCodeAt(_e+De)===oh)return v.slice(_e+De+1);if(De===0)return v.slice(_e+De)}else X>Be&&(h.charCodeAt(A+De)===oh?nt=De:De===0&&(nt=0));let Ke="";for(De=A+nt+1;De<=F;++De)(De===F||h.charCodeAt(De)===oh)&&(Ke+=Ke.length===0?"..":"/..");return`${Ke}${v.slice(_e+nt)}`},toNamespacedPath(h){return h},dirname(h){if(Hf(h,"path"),h.length===0)return".";let v=h.charCodeAt(0)===oh,A=-1,F=!0;for(let X=h.length-1;X>=1;--X)if(h.charCodeAt(X)===oh){if(!F){A=X;break}}else F=!1;return A===-1?v?"/":".":v&&A===1?"//":h.slice(0,A)},basename(h,v){v!==void 0&&Hf(v,"ext"),Hf(h,"path");let A=0,F=-1,X=!0,_e;if(v!==void 0&&v.length>0&&v.length<=h.length){if(v===h)return"";let Te=v.length-1,Be=-1;for(_e=h.length-1;_e>=0;--_e){let nt=h.charCodeAt(_e);if(nt===oh){if(!X){A=_e+1;break}}else Be===-1&&(X=!1,Be=_e+1),Te>=0&&(nt===v.charCodeAt(Te)?--Te===-1&&(F=_e):(Te=-1,F=Be))}return A===F?F=Be:F===-1&&(F=h.length),h.slice(A,F)}for(_e=h.length-1;_e>=0;--_e)if(h.charCodeAt(_e)===oh){if(!X){A=_e+1;break}}else F===-1&&(X=!1,F=_e+1);return F===-1?"":h.slice(A,F)},extname(h){Hf(h,"path");let v=-1,A=0,F=-1,X=!0,_e=0;for(let Te=h.length-1;Te>=0;--Te){let Be=h.charCodeAt(Te);if(Be===oh){if(!X){A=Te+1;break}continue}F===-1&&(X=!1,F=Te+1),Be===zD?v===-1?v=Te:_e!==1&&(_e=1):v!==-1&&(_e=-1)}return v===-1||F===-1||_e===0||_e===1&&v===F-1&&v===A+1?"":h.slice(v,F)},format:E5e.bind(null,"/"),parse(h){Hf(h,"path");let v={root:"",dir:"",base:"",ext:"",name:""};if(h.length===0)return v;let A=h.charCodeAt(0)===oh,F;A?(v.root="/",F=1):F=0;let X=-1,_e=0,Te=-1,Be=!0,nt=h.length-1,De=0;for(;nt>=F;--nt){let Ke=h.charCodeAt(nt);if(Ke===oh){if(!Be){_e=nt+1;break}continue}Te===-1&&(Be=!1,Te=nt+1),Ke===zD?X===-1?X=nt:De!==1&&(De=1):X!==-1&&(De=-1)}if(Te!==-1){let Ke=_e===0&&A?1:_e;X===-1||De===0||De===1&&X===Te-1&&X===_e+1?v.base=v.name=h.slice(Ke,Te):(v.name=h.slice(Ke,X),v.base=h.slice(Ke,Te),v.ext=h.slice(X,Te))}return _e>0?v.dir=h.slice(0,_e-1):A&&(v.dir="/"),v},sep:"/",delimiter:":",win32:null,posix:null};Tv.win32=Cg.win32=Cg;Tv.posix=Cg.posix=Tv;var A0t=BD?Cg.normalize:Tv.normalize,I0t=BD?Cg.resolve:Tv.resolve,x0t=BD?Cg.relative:Tv.relative,R0t=BD?Cg.dirname:Tv.dirname,D0t=BD?Cg.basename:Tv.basename,C0t=BD?Cg.extname:Tv.extname,N0t=BD?Cg.sep:Tv.sep;var Lyt=/^\w[\w\d+.-]*$/,kyt=/^\//,wyt=/^\/\//;function Oyt(h,v){if(!h.scheme&&v)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${h.authority}", path: "${h.path}", query: "${h.query}", fragment: "${h.fragment}"}`);if(h.scheme&&!Lyt.test(h.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(h.path){if(h.authority){if(!kyt.test(h.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(wyt.test(h.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function Fyt(h,v){return!h&&!v?"file":h}function Wyt(h,v){switch(h){case"https":case"http":case"file":v?v[0]!==$E&&(v=$E+v):v=$E;break}return v}var Yd="",$E="/",zyt=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,VD=class h{static isUri(v){return v instanceof h?!0:v?typeof v.authority=="string"&&typeof v.fragment=="string"&&typeof v.path=="string"&&typeof v.query=="string"&&typeof v.scheme=="string"&&typeof v.fsPath=="string"&&typeof v.with=="function"&&typeof v.toString=="function":!1}constructor(v,A,F,X,_e,Te=!1){typeof v=="object"?(this.scheme=v.scheme||Yd,this.authority=v.authority||Yd,this.path=v.path||Yd,this.query=v.query||Yd,this.fragment=v.fragment||Yd):(this.scheme=Fyt(v,Te),this.authority=A||Yd,this.path=Wyt(this.scheme,F||Yd),this.query=X||Yd,this.fragment=_e||Yd,Oyt(this,Te))}get fsPath(){return a0e(this,!1)}with(v){if(!v)return this;let{scheme:A,authority:F,path:X,query:_e,fragment:Te}=v;return A===void 0?A=this.scheme:A===null&&(A=Yd),F===void 0?F=this.authority:F===null&&(F=Yd),X===void 0?X=this.path:X===null&&(X=Yd),_e===void 0?_e=this.query:_e===null&&(_e=Yd),Te===void 0?Te=this.fragment:Te===null&&(Te=Yd),A===this.scheme&&F===this.authority&&X===this.path&&_e===this.query&&Te===this.fragment?this:new GD(A,F,X,_e,Te)}static parse(v,A=!1){let F=zyt.exec(v);return F?new GD(F[2]||Yd,Ote(F[4]||Yd),Ote(F[5]||Yd),Ote(F[7]||Yd),Ote(F[9]||Yd),A):new GD(Yd,Yd,Yd,Yd,Yd)}static file(v){let A=Yd;if(bM&&(v=v.replace(/\\/g,$E)),v[0]===$E&&v[1]===$E){let F=v.indexOf($E,2);F===-1?(A=v.substring(2),v=$E):(A=v.substring(2,F),v=v.substring(F)||$E)}return new GD("file",A,v,Yd,Yd)}static from(v,A){return new GD(v.scheme,v.authority,v.path,v.query,v.fragment,A)}static joinPath(v,...A){if(!v.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let F;return bM&&v.scheme==="file"?F=h.file(Cg.join(a0e(v,!0),...A)).path:F=Tv.join(v.path,...A),v.with({path:F})}toString(v=!1){return s0e(this,v)}toJSON(){return this}static revive(v){var A,F;if(v){if(v instanceof h)return v;{let X=new GD(v);return X._formatted=(A=v.external)!==null&&A!==void 0?A:null,X._fsPath=v._sep===A5e&&(F=v.fsPath)!==null&&F!==void 0?F:null,X}}else return v}},A5e=bM?1:void 0,GD=class extends VD{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=a0e(this,!1)),this._fsPath}toString(v=!1){return v?s0e(this,!0):(this._formatted||(this._formatted=s0e(this,!1)),this._formatted)}toJSON(){let v={$mid:1};return this._fsPath&&(v.fsPath=this._fsPath,v._sep=A5e),this._formatted&&(v.external=this._formatted),this.path&&(v.path=this.path),this.scheme&&(v.scheme=this.scheme),this.authority&&(v.authority=this.authority),this.query&&(v.query=this.query),this.fragment&&(v.fragment=this.fragment),v}},I5e={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 S5e(h,v,A){let F,X=-1;for(let _e=0;_e=97&&Te<=122||Te>=65&&Te<=90||Te>=48&&Te<=57||Te===45||Te===46||Te===95||Te===126||v&&Te===47||A&&Te===91||A&&Te===93||A&&Te===58)X!==-1&&(F+=encodeURIComponent(h.substring(X,_e)),X=-1),F!==void 0&&(F+=h.charAt(_e));else{F===void 0&&(F=h.substr(0,_e));let Be=I5e[Te];Be!==void 0?(X!==-1&&(F+=encodeURIComponent(h.substring(X,_e)),X=-1),F+=Be):X===-1&&(X=_e)}}return X!==-1&&(F+=encodeURIComponent(h.substring(X))),F!==void 0?F:h}function Byt(h){let v;for(let A=0;A1&&h.scheme==="file"?A=`//${h.authority}${h.path}`:h.path.charCodeAt(0)===47&&(h.path.charCodeAt(1)>=65&&h.path.charCodeAt(1)<=90||h.path.charCodeAt(1)>=97&&h.path.charCodeAt(1)<=122)&&h.path.charCodeAt(2)===58?v?A=h.path.substr(1):A=h.path[1].toLowerCase()+h.path.substr(2):A=h.path,bM&&(A=A.replace(/\//g,"\\")),A}function s0e(h,v){let A=v?Byt:S5e,F="",{scheme:X,authority:_e,path:Te,query:Be,fragment:nt}=h;if(X&&(F+=X,F+=":"),(_e||X==="file")&&(F+=$E,F+=$E),_e){let De=_e.indexOf("@");if(De!==-1){let Ke=_e.substr(0,De);_e=_e.substr(De+1),De=Ke.lastIndexOf(":"),De===-1?F+=A(Ke,!1,!1):(F+=A(Ke.substr(0,De),!1,!1),F+=":",F+=A(Ke.substr(De+1),!1,!0)),F+="@"}_e=_e.toLowerCase(),De=_e.lastIndexOf(":"),De===-1?F+=A(_e,!1,!0):(F+=A(_e.substr(0,De),!1,!0),F+=_e.substr(De))}if(Te){if(Te.length>=3&&Te.charCodeAt(0)===47&&Te.charCodeAt(2)===58){let De=Te.charCodeAt(1);De>=65&&De<=90&&(Te=`/${String.fromCharCode(De+32)}:${Te.substr(3)}`)}else if(Te.length>=2&&Te.charCodeAt(1)===58){let De=Te.charCodeAt(0);De>=65&&De<=90&&(Te=`${String.fromCharCode(De+32)}:${Te.substr(2)}`)}F+=A(Te,!0,!1)}return Be&&(F+="?",F+=A(Be,!1,!1)),nt&&(F+="#",F+=v?nt:S5e(nt,!1,!1)),F}function x5e(h){try{return decodeURIComponent(h)}catch{return h.length>3?h.substr(0,3)+x5e(h.substr(3)):h}}var T5e=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Ote(h){return h.match(T5e)?h.replace(T5e,v=>x5e(v)):h}var vf=class h{constructor(v,A){this.lineNumber=v,this.column=A}with(v=this.lineNumber,A=this.column){return v===this.lineNumber&&A===this.column?this:new h(v,A)}delta(v=0,A=0){return this.with(this.lineNumber+v,this.column+A)}equals(v){return h.equals(this,v)}static equals(v,A){return!v&&!A?!0:!!v&&!!A&&v.lineNumber===A.lineNumber&&v.column===A.column}isBefore(v){return h.isBefore(this,v)}static isBefore(v,A){return v.lineNumberF||v===F&&A>X?(this.startLineNumber=F,this.startColumn=X,this.endLineNumber=v,this.endColumn=A):(this.startLineNumber=v,this.startColumn=A,this.endLineNumber=F,this.endColumn=X)}isEmpty(){return h.isEmpty(this)}static isEmpty(v){return v.startLineNumber===v.endLineNumber&&v.startColumn===v.endColumn}containsPosition(v){return h.containsPosition(this,v)}static containsPosition(v,A){return!(A.lineNumberv.endLineNumber||A.lineNumber===v.startLineNumber&&A.columnv.endColumn)}static strictContainsPosition(v,A){return!(A.lineNumberv.endLineNumber||A.lineNumber===v.startLineNumber&&A.column<=v.startColumn||A.lineNumber===v.endLineNumber&&A.column>=v.endColumn)}containsRange(v){return h.containsRange(this,v)}static containsRange(v,A){return!(A.startLineNumberv.endLineNumber||A.endLineNumber>v.endLineNumber||A.startLineNumber===v.startLineNumber&&A.startColumnv.endColumn)}strictContainsRange(v){return h.strictContainsRange(this,v)}static strictContainsRange(v,A){return!(A.startLineNumberv.endLineNumber||A.endLineNumber>v.endLineNumber||A.startLineNumber===v.startLineNumber&&A.startColumn<=v.startColumn||A.endLineNumber===v.endLineNumber&&A.endColumn>=v.endColumn)}plusRange(v){return h.plusRange(this,v)}static plusRange(v,A){let F,X,_e,Te;return A.startLineNumberv.endLineNumber?(_e=A.endLineNumber,Te=A.endColumn):A.endLineNumber===v.endLineNumber?(_e=A.endLineNumber,Te=Math.max(A.endColumn,v.endColumn)):(_e=v.endLineNumber,Te=v.endColumn),new h(F,X,_e,Te)}intersectRanges(v){return h.intersectRanges(this,v)}static intersectRanges(v,A){let F=v.startLineNumber,X=v.startColumn,_e=v.endLineNumber,Te=v.endColumn,Be=A.startLineNumber,nt=A.startColumn,De=A.endLineNumber,Ke=A.endColumn;return FDe?(_e=De,Te=Ke):_e===De&&(Te=Math.min(Te,Ke)),F>_e||F===_e&&X>Te?null:new h(F,X,_e,Te)}equalsRange(v){return h.equalsRange(this,v)}static equalsRange(v,A){return!v&&!A?!0:!!v&&!!A&&v.startLineNumber===A.startLineNumber&&v.startColumn===A.startColumn&&v.endLineNumber===A.endLineNumber&&v.endColumn===A.endColumn}getEndPosition(){return h.getEndPosition(this)}static getEndPosition(v){return new vf(v.endLineNumber,v.endColumn)}getStartPosition(){return h.getStartPosition(this)}static getStartPosition(v){return new vf(v.startLineNumber,v.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(v,A){return new h(this.startLineNumber,this.startColumn,v,A)}setStartPosition(v,A){return new h(v,A,this.endLineNumber,this.endColumn)}collapseToStart(){return h.collapseToStart(this)}static collapseToStart(v){return new h(v.startLineNumber,v.startColumn,v.startLineNumber,v.startColumn)}collapseToEnd(){return h.collapseToEnd(this)}static collapseToEnd(v){return new h(v.endLineNumber,v.endColumn,v.endLineNumber,v.endColumn)}delta(v){return new h(this.startLineNumber+v,this.startColumn,this.endLineNumber+v,this.endColumn)}static fromPositions(v,A=v){return new h(v.lineNumber,v.column,A.lineNumber,A.column)}static lift(v){return v?new h(v.startLineNumber,v.startColumn,v.endLineNumber,v.endColumn):null}static isIRange(v){return v&&typeof v.startLineNumber=="number"&&typeof v.startColumn=="number"&&typeof v.endLineNumber=="number"&&typeof v.endColumn=="number"}static areIntersectingOrTouching(v,A){return!(v.endLineNumberv.startLineNumber}toJSON(){return this}};function R5e(h,v,A=(F,X)=>F===X){if(h===v)return!0;if(!h||!v||h.length!==v.length)return!1;for(let F=0,X=h.length;F0}h.isGreaterThan=F;function X(_e){return _e===0}h.isNeitherLessOrGreaterThan=X,h.greaterThan=1,h.lessThan=-1,h.neitherLessOrGreaterThan=0})(l0e||(l0e={}));function WB(h,v){return(A,F)=>v(h(A),h(F))}var zB=(h,v)=>h-v;function M5e(h){return(v,A)=>-h(v,A)}var Fte=class h{constructor(v){this.iterate=v}toArray(){let v=[];return this.iterate(A=>(v.push(A),!0)),v}filter(v){return new h(A=>this.iterate(F=>v(F)?A(F):!0))}map(v){return new h(A=>this.iterate(F=>A(v(F))))}findLast(v){let A;return this.iterate(F=>(v(F)&&(A=F),!0)),A}findLastMaxBy(v){let A,F=!0;return this.iterate(X=>((F||l0e.isGreaterThan(v(X,A)))&&(F=!1,A=X),!0)),A}};Fte.empty=new Fte(h=>{});function c0e(h){return h<0?0:h>255?255:h|0}function SM(h){return h<0?0:h>4294967295?4294967295:h|0}var Wte=class{constructor(v){this.values=v,this.prefixSum=new Uint32Array(v.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(v,A){v=SM(v);let F=this.values,X=this.prefixSum,_e=A.length;return _e===0?!1:(this.values=new Uint32Array(F.length+_e),this.values.set(F.subarray(0,v),0),this.values.set(F.subarray(v),v+_e),this.values.set(A,v),v-1=0&&this.prefixSum.set(X.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(v,A){return v=SM(v),A=SM(A),this.values[v]===A?!1:(this.values[v]=A,v-1=F.length)return!1;let _e=F.length-v;return A>=_e&&(A=_e),A===0?!1:(this.values=new Uint32Array(F.length-A),this.values.set(F.subarray(0,v),0),this.values.set(F.subarray(v+A),v),this.prefixSum=new Uint32Array(this.values.length),v-1=0&&this.prefixSum.set(X.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(v){return v<0?0:(v=SM(v),this._getPrefixSum(v))}_getPrefixSum(v){if(v<=this.prefixSumValidIndex[0])return this.prefixSum[v];let A=this.prefixSumValidIndex[0]+1;A===0&&(this.prefixSum[0]=this.values[0],A++),v>=this.values.length&&(v=this.values.length-1);for(let F=A;F<=v;F++)this.prefixSum[F]=this.prefixSum[F-1]+this.values[F];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],v),this.prefixSum[v]}getIndexOf(v){v=Math.floor(v),this.getTotalSum();let A=0,F=this.values.length-1,X=0,_e=0,Te=0;for(;A<=F;)if(X=A+(F-A)/2|0,_e=this.prefixSum[X],Te=_e-this.values[X],v=_e)A=X+1;else break;return new u0e(X,v-Te)}};var u0e=class{constructor(v,A){this.index=v,this.remainder=A,this._prefixSumIndexOfResultBrand=void 0,this.index=v,this.remainder=A}};var zte=class{constructor(v,A,F,X){this._uri=v,this._lines=A,this._eol=F,this._versionId=X,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(v){v.eol&&v.eol!==this._eol&&(this._eol=v.eol,this._lineStarts=null);let A=v.changes;for(let F of A)this._acceptDeleteRange(F.range),this._acceptInsertText(new vf(F.range.startLineNumber,F.range.startColumn),F.text);this._versionId=v.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){let v=this._eol.length,A=this._lines.length,F=new Uint32Array(A);for(let X=0;X/?";function Vyt(h=""){let v="(-?\\d*\\.\\d\\w*)|([^";for(let A of Gyt)h.indexOf(A)>=0||(v+="\\"+A);return v+="\\s]+)",new RegExp(v,"g")}var d0e=Vyt();function p0e(h){let v=d0e;if(h&&h instanceof RegExp)if(h.global)v=h;else{let A="g";h.ignoreCase&&(A+="i"),h.multiline&&(A+="m"),h.unicode&&(A+="u"),v=new RegExp(h.source,A)}return v.lastIndex=0,v}var L5e=new DB;L5e.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function BB(h,v,A,F,X){if(v=p0e(v),X||(X=s8.first(L5e)),A.length>X.maxLen){let De=h-X.maxLen/2;return De<0?De=0:F+=De,A=A.substring(De,h+X.maxLen/2),BB(h,v,A,F,X)}let _e=Date.now(),Te=h-1-F,Be=-1,nt=null;for(let De=1;!(Date.now()-_e>=X.timeBudget);De++){let Ke=Te-X.windowSize*De;v.lastIndex=Math.max(0,Ke);let Gt=jyt(v,A,Te,Be);if(!Gt&&nt||(nt=Gt,Ke<=0))break;Be=Ke}if(nt){let De={word:nt[0],startColumn:F+1+nt.index,endColumn:F+1+nt.index+nt[0].length};return v.lastIndex=0,De}return null}function jyt(h,v,A,F){let X;for(;X=h.exec(v);){let _e=X.index||0;if(_e<=A&&h.lastIndex>=A)return X;if(F>0&&_e>F)return null}return null}var GB=class h{constructor(v){let A=c0e(v);this._defaultValue=A,this._asciiMap=h._createAsciiMap(A),this._map=new Map}static _createAsciiMap(v){let A=new Uint8Array(256);return A.fill(v),A}set(v,A){let F=c0e(A);v>=0&&v<256?this._asciiMap[v]=F:this._map.set(v,F)}get(v){return v>=0&&v<256?this._asciiMap[v]:this._map.get(v)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}};var m0e=class{constructor(v,A,F){let X=new Uint8Array(v*A);for(let _e=0,Te=v*A;_eA&&(A=nt),Be>F&&(F=Be),De>F&&(F=De)}A++,F++;let X=new m0e(F,A,0);for(let _e=0,Te=v.length;_e=this._maxCharCode?0:this._states.get(v,A)}},f0e=null;function Uyt(){return f0e===null&&(f0e=new _0e([[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]])),f0e}var VB=null;function Hyt(){if(VB===null){VB=new GB(0);let h=` <>'"\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 A=0;AX);if(X>0){let Be=A.charCodeAt(X-1),nt=A.charCodeAt(Te);(Be===40&&nt===41||Be===91&&nt===93||Be===123&&nt===125)&&Te--}return{range:{startLineNumber:F,startColumn:X+1,endLineNumber:F,endColumn:Te+2},url:A.substring(X,Te+1)}}static computeLinks(v,A=Uyt()){let F=Hyt(),X=[];for(let _e=1,Te=v.getLineCount();_e<=Te;_e++){let Be=v.getLineContent(_e),nt=Be.length,De=0,Ke=0,Gt=0,Zt=1,ir=!1,Ar=!1,Un=!1,Qi=!1;for(;De=0?(X+=F?1:-1,X<0?X=v.length-1:X%=v.length,v[X]):null}};_8.INSTANCE=new _8;var w5e=Object.freeze(function(h,v){let A=setTimeout(h.bind(v),0);return{dispose(){clearTimeout(A)}}}),Bte;(function(h){function v(A){return A===h.None||A===h.Cancelled||A instanceof h8?!0:!A||typeof A!="object"?!1:typeof A.isCancellationRequested=="boolean"&&typeof A.onCancellationRequested=="function"}h.isCancellationToken=v,h.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Tte.None}),h.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:w5e})})(Bte||(Bte={}));var h8=class{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?w5e:(this._emitter||(this._emitter=new Hh),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}},Gte=class{constructor(v){this._token=void 0,this._parentListener=void 0,this._parentListener=v&&v.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new h8),this._token}cancel(){this._token?this._token instanceof h8&&this._token.cancel():this._token=Bte.Cancelled}dispose(v=!1){var A;v&&this.cancel(),(A=this._parentListener)===null||A===void 0||A.dispose(),this._token?this._token instanceof h8&&this._token.dispose():this._token=Bte.None}};var jB=class{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(v,A){this._keyCodeToStr[v]=A,this._strToKeyCode[A.toLowerCase()]=v}keyCodeToStr(v){return this._keyCodeToStr[v]}strToKeyCode(v){return this._strToKeyCode[v.toLowerCase()]||0}},Vte=new jB,g0e=new jB,v0e=new jB,qyt=new Array(230),Jyt={},Kyt=[],Xyt=Object.create(null),Yyt=Object.create(null),F5e=[],y0e=[];for(let h=0;h<=193;h++)F5e[h]=-1;for(let h=0;h<=132;h++)y0e[h]=-1;(function(){let h="",v=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",h,h],[1,1,"Hyper",0,h,0,h,h,h],[1,2,"Super",0,h,0,h,h,h],[1,3,"Fn",0,h,0,h,h,h],[1,4,"FnLock",0,h,0,h,h,h],[1,5,"Suspend",0,h,0,h,h,h],[1,6,"Resume",0,h,0,h,h,h],[1,7,"Turbo",0,h,0,h,h,h],[1,8,"Sleep",0,h,0,"VK_SLEEP",h,h],[1,9,"WakeUp",0,h,0,h,h,h],[0,10,"KeyA",31,"A",65,"VK_A",h,h],[0,11,"KeyB",32,"B",66,"VK_B",h,h],[0,12,"KeyC",33,"C",67,"VK_C",h,h],[0,13,"KeyD",34,"D",68,"VK_D",h,h],[0,14,"KeyE",35,"E",69,"VK_E",h,h],[0,15,"KeyF",36,"F",70,"VK_F",h,h],[0,16,"KeyG",37,"G",71,"VK_G",h,h],[0,17,"KeyH",38,"H",72,"VK_H",h,h],[0,18,"KeyI",39,"I",73,"VK_I",h,h],[0,19,"KeyJ",40,"J",74,"VK_J",h,h],[0,20,"KeyK",41,"K",75,"VK_K",h,h],[0,21,"KeyL",42,"L",76,"VK_L",h,h],[0,22,"KeyM",43,"M",77,"VK_M",h,h],[0,23,"KeyN",44,"N",78,"VK_N",h,h],[0,24,"KeyO",45,"O",79,"VK_O",h,h],[0,25,"KeyP",46,"P",80,"VK_P",h,h],[0,26,"KeyQ",47,"Q",81,"VK_Q",h,h],[0,27,"KeyR",48,"R",82,"VK_R",h,h],[0,28,"KeyS",49,"S",83,"VK_S",h,h],[0,29,"KeyT",50,"T",84,"VK_T",h,h],[0,30,"KeyU",51,"U",85,"VK_U",h,h],[0,31,"KeyV",52,"V",86,"VK_V",h,h],[0,32,"KeyW",53,"W",87,"VK_W",h,h],[0,33,"KeyX",54,"X",88,"VK_X",h,h],[0,34,"KeyY",55,"Y",89,"VK_Y",h,h],[0,35,"KeyZ",56,"Z",90,"VK_Z",h,h],[0,36,"Digit1",22,"1",49,"VK_1",h,h],[0,37,"Digit2",23,"2",50,"VK_2",h,h],[0,38,"Digit3",24,"3",51,"VK_3",h,h],[0,39,"Digit4",25,"4",52,"VK_4",h,h],[0,40,"Digit5",26,"5",53,"VK_5",h,h],[0,41,"Digit6",27,"6",54,"VK_6",h,h],[0,42,"Digit7",28,"7",55,"VK_7",h,h],[0,43,"Digit8",29,"8",56,"VK_8",h,h],[0,44,"Digit9",30,"9",57,"VK_9",h,h],[0,45,"Digit0",21,"0",48,"VK_0",h,h],[1,46,"Enter",3,"Enter",13,"VK_RETURN",h,h],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",h,h],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",h,h],[1,49,"Tab",2,"Tab",9,"VK_TAB",h,h],[1,50,"Space",10,"Space",32,"VK_SPACE",h,h],[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,h,0,h,h,h],[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",h,h],[1,64,"F1",59,"F1",112,"VK_F1",h,h],[1,65,"F2",60,"F2",113,"VK_F2",h,h],[1,66,"F3",61,"F3",114,"VK_F3",h,h],[1,67,"F4",62,"F4",115,"VK_F4",h,h],[1,68,"F5",63,"F5",116,"VK_F5",h,h],[1,69,"F6",64,"F6",117,"VK_F6",h,h],[1,70,"F7",65,"F7",118,"VK_F7",h,h],[1,71,"F8",66,"F8",119,"VK_F8",h,h],[1,72,"F9",67,"F9",120,"VK_F9",h,h],[1,73,"F10",68,"F10",121,"VK_F10",h,h],[1,74,"F11",69,"F11",122,"VK_F11",h,h],[1,75,"F12",70,"F12",123,"VK_F12",h,h],[1,76,"PrintScreen",0,h,0,h,h,h],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",h,h],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",h,h],[1,79,"Insert",19,"Insert",45,"VK_INSERT",h,h],[1,80,"Home",14,"Home",36,"VK_HOME",h,h],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",h,h],[1,82,"Delete",20,"Delete",46,"VK_DELETE",h,h],[1,83,"End",13,"End",35,"VK_END",h,h],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",h,h],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",h],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",h],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",h],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",h],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",h,h],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",h,h],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",h,h],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",h,h],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",h,h],[1,94,"NumpadEnter",3,h,0,h,h,h],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",h,h],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",h,h],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",h,h],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",h,h],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",h,h],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",h,h],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",h,h],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",h,h],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",h,h],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",h,h],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",h,h],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",h,h],[1,107,"ContextMenu",58,"ContextMenu",93,h,h,h],[1,108,"Power",0,h,0,h,h,h],[1,109,"NumpadEqual",0,h,0,h,h,h],[1,110,"F13",71,"F13",124,"VK_F13",h,h],[1,111,"F14",72,"F14",125,"VK_F14",h,h],[1,112,"F15",73,"F15",126,"VK_F15",h,h],[1,113,"F16",74,"F16",127,"VK_F16",h,h],[1,114,"F17",75,"F17",128,"VK_F17",h,h],[1,115,"F18",76,"F18",129,"VK_F18",h,h],[1,116,"F19",77,"F19",130,"VK_F19",h,h],[1,117,"F20",78,"F20",131,"VK_F20",h,h],[1,118,"F21",79,"F21",132,"VK_F21",h,h],[1,119,"F22",80,"F22",133,"VK_F22",h,h],[1,120,"F23",81,"F23",134,"VK_F23",h,h],[1,121,"F24",82,"F24",135,"VK_F24",h,h],[1,122,"Open",0,h,0,h,h,h],[1,123,"Help",0,h,0,h,h,h],[1,124,"Select",0,h,0,h,h,h],[1,125,"Again",0,h,0,h,h,h],[1,126,"Undo",0,h,0,h,h,h],[1,127,"Cut",0,h,0,h,h,h],[1,128,"Copy",0,h,0,h,h,h],[1,129,"Paste",0,h,0,h,h,h],[1,130,"Find",0,h,0,h,h,h],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",h,h],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",h,h],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",h,h],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",h,h],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",h,h],[1,136,"KanaMode",0,h,0,h,h,h],[0,137,"IntlYen",0,h,0,h,h,h],[1,138,"Convert",0,h,0,h,h,h],[1,139,"NonConvert",0,h,0,h,h,h],[1,140,"Lang1",0,h,0,h,h,h],[1,141,"Lang2",0,h,0,h,h,h],[1,142,"Lang3",0,h,0,h,h,h],[1,143,"Lang4",0,h,0,h,h,h],[1,144,"Lang5",0,h,0,h,h,h],[1,145,"Abort",0,h,0,h,h,h],[1,146,"Props",0,h,0,h,h,h],[1,147,"NumpadParenLeft",0,h,0,h,h,h],[1,148,"NumpadParenRight",0,h,0,h,h,h],[1,149,"NumpadBackspace",0,h,0,h,h,h],[1,150,"NumpadMemoryStore",0,h,0,h,h,h],[1,151,"NumpadMemoryRecall",0,h,0,h,h,h],[1,152,"NumpadMemoryClear",0,h,0,h,h,h],[1,153,"NumpadMemoryAdd",0,h,0,h,h,h],[1,154,"NumpadMemorySubtract",0,h,0,h,h,h],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",h,h],[1,156,"NumpadClearEntry",0,h,0,h,h,h],[1,0,h,5,"Ctrl",17,"VK_CONTROL",h,h],[1,0,h,4,"Shift",16,"VK_SHIFT",h,h],[1,0,h,6,"Alt",18,"VK_MENU",h,h],[1,0,h,57,"Meta",91,"VK_COMMAND",h,h],[1,157,"ControlLeft",5,h,0,"VK_LCONTROL",h,h],[1,158,"ShiftLeft",4,h,0,"VK_LSHIFT",h,h],[1,159,"AltLeft",6,h,0,"VK_LMENU",h,h],[1,160,"MetaLeft",57,h,0,"VK_LWIN",h,h],[1,161,"ControlRight",5,h,0,"VK_RCONTROL",h,h],[1,162,"ShiftRight",4,h,0,"VK_RSHIFT",h,h],[1,163,"AltRight",6,h,0,"VK_RMENU",h,h],[1,164,"MetaRight",57,h,0,"VK_RWIN",h,h],[1,165,"BrightnessUp",0,h,0,h,h,h],[1,166,"BrightnessDown",0,h,0,h,h,h],[1,167,"MediaPlay",0,h,0,h,h,h],[1,168,"MediaRecord",0,h,0,h,h,h],[1,169,"MediaFastForward",0,h,0,h,h,h],[1,170,"MediaRewind",0,h,0,h,h,h],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",h,h],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",h,h],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",h,h],[1,174,"Eject",0,h,0,h,h,h],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",h,h],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",h,h],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",h,h],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",h,h],[1,179,"LaunchApp1",0,h,0,"VK_MEDIA_LAUNCH_APP1",h,h],[1,180,"SelectTask",0,h,0,h,h,h],[1,181,"LaunchScreenSaver",0,h,0,h,h,h],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",h,h],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",h,h],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",h,h],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",h,h],[1,186,"BrowserStop",0,h,0,"VK_BROWSER_STOP",h,h],[1,187,"BrowserRefresh",0,h,0,"VK_BROWSER_REFRESH",h,h],[1,188,"BrowserFavorites",0,h,0,"VK_BROWSER_FAVORITES",h,h],[1,189,"ZoomToggle",0,h,0,h,h,h],[1,190,"MailReply",0,h,0,h,h,h],[1,191,"MailForward",0,h,0,h,h,h],[1,192,"MailSend",0,h,0,h,h,h],[1,0,h,114,"KeyInComposition",229,h,h,h],[1,0,h,116,"ABNT_C2",194,"VK_ABNT_C2",h,h],[1,0,h,96,"OEM_8",223,"VK_OEM_8",h,h],[1,0,h,0,h,0,"VK_KANA",h,h],[1,0,h,0,h,0,"VK_HANGUL",h,h],[1,0,h,0,h,0,"VK_JUNJA",h,h],[1,0,h,0,h,0,"VK_FINAL",h,h],[1,0,h,0,h,0,"VK_HANJA",h,h],[1,0,h,0,h,0,"VK_KANJI",h,h],[1,0,h,0,h,0,"VK_CONVERT",h,h],[1,0,h,0,h,0,"VK_NONCONVERT",h,h],[1,0,h,0,h,0,"VK_ACCEPT",h,h],[1,0,h,0,h,0,"VK_MODECHANGE",h,h],[1,0,h,0,h,0,"VK_SELECT",h,h],[1,0,h,0,h,0,"VK_PRINT",h,h],[1,0,h,0,h,0,"VK_EXECUTE",h,h],[1,0,h,0,h,0,"VK_SNAPSHOT",h,h],[1,0,h,0,h,0,"VK_HELP",h,h],[1,0,h,0,h,0,"VK_APPS",h,h],[1,0,h,0,h,0,"VK_PROCESSKEY",h,h],[1,0,h,0,h,0,"VK_PACKET",h,h],[1,0,h,0,h,0,"VK_DBE_SBCSCHAR",h,h],[1,0,h,0,h,0,"VK_DBE_DBCSCHAR",h,h],[1,0,h,0,h,0,"VK_ATTN",h,h],[1,0,h,0,h,0,"VK_CRSEL",h,h],[1,0,h,0,h,0,"VK_EXSEL",h,h],[1,0,h,0,h,0,"VK_EREOF",h,h],[1,0,h,0,h,0,"VK_PLAY",h,h],[1,0,h,0,h,0,"VK_ZOOM",h,h],[1,0,h,0,h,0,"VK_NONAME",h,h],[1,0,h,0,h,0,"VK_PA1",h,h],[1,0,h,0,h,0,"VK_OEM_CLEAR",h,h]],A=[],F=[];for(let X of v){let[_e,Te,Be,nt,De,Ke,Gt,Zt,ir]=X;if(F[Te]||(F[Te]=!0,Kyt[Te]=Be,Xyt[Be]=Te,Yyt[Be.toLowerCase()]=Te,_e&&(F5e[Te]=nt,nt!==0&&nt!==3&&nt!==5&&nt!==4&&nt!==6&&nt!==57&&(y0e[nt]=Te))),!A[nt]){if(A[nt]=!0,!De)throw new Error(`String representation missing for key code ${nt} around scan code ${Be}`);Vte.define(nt,De),g0e.define(nt,Zt||De),v0e.define(nt,ir||Zt||De)}Ke&&(qyt[Ke]=nt),Gt&&(Jyt[Gt]=nt)}y0e[3]=46})();var O5e;(function(h){function v(Be){return Vte.keyCodeToStr(Be)}h.toString=v;function A(Be){return Vte.strToKeyCode(Be)}h.fromString=A;function F(Be){return g0e.keyCodeToStr(Be)}h.toUserSettingsUS=F;function X(Be){return v0e.keyCodeToStr(Be)}h.toUserSettingsGeneral=X;function _e(Be){return g0e.strToKeyCode(Be)||v0e.strToKeyCode(Be)}h.fromUserSettings=_e;function Te(Be){if(Be>=98&&Be<=113)return null;switch(Be){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return Vte.keyCodeToStr(Be)}h.toElectronAccelerator=Te})(O5e||(O5e={}));function W5e(h,v){let A=(v&65535)<<16>>>0;return(h|A)>>>0}var jte=class h extends tc{constructor(v,A,F,X){super(v,A,F,X),this.selectionStartLineNumber=v,this.selectionStartColumn=A,this.positionLineNumber=F,this.positionColumn=X}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(v){return h.selectionsEqual(this,v)}static selectionsEqual(v,A){return v.selectionStartLineNumber===A.selectionStartLineNumber&&v.selectionStartColumn===A.selectionStartColumn&&v.positionLineNumber===A.positionLineNumber&&v.positionColumn===A.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(v,A){return this.getDirection()===0?new h(this.startLineNumber,this.startColumn,v,A):new h(v,A,this.startLineNumber,this.startColumn)}getPosition(){return new vf(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new vf(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(v,A){return this.getDirection()===0?new h(v,A,this.endLineNumber,this.endColumn):new h(this.endLineNumber,this.endColumn,v,A)}static fromPositions(v,A=v){return new h(v.lineNumber,v.column,A.lineNumber,A.column)}static fromRange(v,A){return A===0?new h(v.startLineNumber,v.startColumn,v.endLineNumber,v.endColumn):new h(v.endLineNumber,v.endColumn,v.startLineNumber,v.startColumn)}static liftSelection(v){return new h(v.selectionStartLineNumber,v.selectionStartColumn,v.positionLineNumber,v.positionColumn)}static selectionsArrEqual(v,A){if(v&&!A||!v&&A)return!1;if(!v&&!A)return!0;if(v.length!==A.length)return!1;for(let F=0,X=v.length;F{this._tokenizationSupports.get(v)===A&&(this._tokenizationSupports.delete(v),this.handleChange([v]))})}get(v){return this._tokenizationSupports.get(v)||null}registerFactory(v,A){var F;(F=this._factories.get(v))===null||F===void 0||F.dispose();let X=new b0e(this,v,A);return this._factories.set(v,X),l8(()=>{let _e=this._factories.get(v);!_e||_e!==X||(this._factories.delete(v),_e.dispose())})}async getOrCreate(v){let A=this.get(v);if(A)return A;let F=this._factories.get(v);return!F||F.isResolved?null:(await F.resolve(),this.get(v))}isResolved(v){if(this.get(v))return!0;let F=this._factories.get(v);return!!(!F||F.isResolved)}setColorMap(v){this._colorMap=v,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}},b0e=class extends _1{get isResolved(){return this._isResolved}constructor(v,A,F){super(),this._registry=v,this._languageId=A,this._factory=F,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(){let v=await this._factory.tokenizationSupport;this._isResolved=!0,v&&!this._isDisposed&&this._register(this._registry.register(this._languageId,v))}};var Hte=class{constructor(v,A,F){this.offset=v,this.type=A,this.language=F,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}};var G5e;(function(h){h[h.Increase=0]="Increase",h[h.Decrease=1]="Decrease"})(G5e||(G5e={}));var V5e;(function(h){let v=new Map;v.set(0,gs.symbolMethod),v.set(1,gs.symbolFunction),v.set(2,gs.symbolConstructor),v.set(3,gs.symbolField),v.set(4,gs.symbolVariable),v.set(5,gs.symbolClass),v.set(6,gs.symbolStruct),v.set(7,gs.symbolInterface),v.set(8,gs.symbolModule),v.set(9,gs.symbolProperty),v.set(10,gs.symbolEvent),v.set(11,gs.symbolOperator),v.set(12,gs.symbolUnit),v.set(13,gs.symbolValue),v.set(15,gs.symbolEnum),v.set(14,gs.symbolConstant),v.set(15,gs.symbolEnum),v.set(16,gs.symbolEnumMember),v.set(17,gs.symbolKeyword),v.set(27,gs.symbolSnippet),v.set(18,gs.symbolText),v.set(19,gs.symbolColor),v.set(20,gs.symbolFile),v.set(21,gs.symbolReference),v.set(22,gs.symbolCustomColor),v.set(23,gs.symbolFolder),v.set(24,gs.symbolTypeParameter),v.set(25,gs.account),v.set(26,gs.issues);function A(_e){let Te=v.get(_e);return Te||(console.info("No codicon found for CompletionItemKind "+_e),Te=gs.symbolProperty),Te}h.toIcon=A;let F=new Map;F.set("method",0),F.set("function",1),F.set("constructor",2),F.set("field",3),F.set("variable",4),F.set("class",5),F.set("struct",6),F.set("interface",7),F.set("module",8),F.set("property",9),F.set("event",10),F.set("operator",11),F.set("unit",12),F.set("value",13),F.set("constant",14),F.set("enum",15),F.set("enum-member",16),F.set("enumMember",16),F.set("keyword",17),F.set("snippet",27),F.set("text",18),F.set("color",19),F.set("file",20),F.set("reference",21),F.set("customcolor",22),F.set("folder",23),F.set("type-parameter",24),F.set("typeParameter",24),F.set("account",25),F.set("issue",26);function X(_e,Te){let Be=F.get(_e);return typeof Be>"u"&&!Te&&(Be=9),Be}h.fromString=X})(V5e||(V5e={}));var j5e;(function(h){h[h.Automatic=0]="Automatic",h[h.Explicit=1]="Explicit"})(j5e||(j5e={}));var U5e;(function(h){h[h.Automatic=0]="Automatic",h[h.PasteAs=1]="PasteAs"})(U5e||(U5e={}));var H5e;(function(h){h[h.Invoke=1]="Invoke",h[h.TriggerCharacter=2]="TriggerCharacter",h[h.ContentChange=3]="ContentChange"})(H5e||(H5e={}));var q5e;(function(h){h[h.Text=0]="Text",h[h.Read=1]="Read",h[h.Write=2]="Write"})(q5e||(q5e={}));var E1t={17:bd("Array","array"),16:bd("Boolean","boolean"),4:bd("Class","class"),13:bd("Constant","constant"),8:bd("Constructor","constructor"),9:bd("Enum","enumeration"),21:bd("EnumMember","enumeration member"),23:bd("Event","event"),7:bd("Field","field"),0:bd("File","file"),11:bd("Function","function"),10:bd("Interface","interface"),19:bd("Key","key"),5:bd("Method","method"),1:bd("Module","module"),2:bd("Namespace","namespace"),20:bd("Null","null"),15:bd("Number","number"),18:bd("Object","object"),24:bd("Operator","operator"),3:bd("Package","package"),6:bd("Property","property"),14:bd("String","string"),22:bd("Struct","struct"),25:bd("TypeParameter","type parameter"),12:bd("Variable","variable")};var J5e;(function(h){let v=new Map;v.set(0,gs.symbolFile),v.set(1,gs.symbolModule),v.set(2,gs.symbolNamespace),v.set(3,gs.symbolPackage),v.set(4,gs.symbolClass),v.set(5,gs.symbolMethod),v.set(6,gs.symbolProperty),v.set(7,gs.symbolField),v.set(8,gs.symbolConstructor),v.set(9,gs.symbolEnum),v.set(10,gs.symbolInterface),v.set(11,gs.symbolFunction),v.set(12,gs.symbolVariable),v.set(13,gs.symbolConstant),v.set(14,gs.symbolString),v.set(15,gs.symbolNumber),v.set(16,gs.symbolBoolean),v.set(17,gs.symbolArray),v.set(18,gs.symbolObject),v.set(19,gs.symbolKey),v.set(20,gs.symbolNull),v.set(21,gs.symbolEnumMember),v.set(22,gs.symbolStruct),v.set(23,gs.symbolEvent),v.set(24,gs.symbolOperator),v.set(25,gs.symbolTypeParameter);function A(F){let X=v.get(F);return X||(console.info("No codicon found for SymbolKind "+F),X=gs.symbolProperty),X}h.toIcon=A})(J5e||(J5e={}));var jD=class h{static fromValue(v){switch(v){case"comment":return h.Comment;case"imports":return h.Imports;case"region":return h.Region}return new h(v)}constructor(v){this.value=v}};jD.Comment=new jD("comment");jD.Imports=new jD("imports");jD.Region=new jD("region");var K5e;(function(h){h[h.AIGenerated=1]="AIGenerated"})(K5e||(K5e={}));var X5e;(function(h){h[h.Invoke=0]="Invoke",h[h.Automatic=1]="Automatic"})(X5e||(X5e={}));var Y5e;(function(h){function v(A){return!A||typeof A!="object"?!1:typeof A.id=="string"&&typeof A.title=="string"}h.is=v})(Y5e||(Y5e={}));var $5e;(function(h){h[h.Type=1]="Type",h[h.Parameter=2]="Parameter"})($5e||($5e={}));var S1t=new Ute,Q5e;(function(h){h[h.Invoke=0]="Invoke",h[h.Automatic=1]="Automatic"})(Q5e||(Q5e={}));var Z5e;(function(h){h[h.Unknown=0]="Unknown",h[h.Disabled=1]="Disabled",h[h.Enabled=2]="Enabled"})(Z5e||(Z5e={}));var eFe;(function(h){h[h.Invoke=1]="Invoke",h[h.Auto=2]="Auto"})(eFe||(eFe={}));var tFe;(function(h){h[h.None=0]="None",h[h.KeepWhitespace=1]="KeepWhitespace",h[h.InsertAsSnippet=4]="InsertAsSnippet"})(tFe||(tFe={}));var nFe;(function(h){h[h.Method=0]="Method",h[h.Function=1]="Function",h[h.Constructor=2]="Constructor",h[h.Field=3]="Field",h[h.Variable=4]="Variable",h[h.Class=5]="Class",h[h.Struct=6]="Struct",h[h.Interface=7]="Interface",h[h.Module=8]="Module",h[h.Property=9]="Property",h[h.Event=10]="Event",h[h.Operator=11]="Operator",h[h.Unit=12]="Unit",h[h.Value=13]="Value",h[h.Constant=14]="Constant",h[h.Enum=15]="Enum",h[h.EnumMember=16]="EnumMember",h[h.Keyword=17]="Keyword",h[h.Text=18]="Text",h[h.Color=19]="Color",h[h.File=20]="File",h[h.Reference=21]="Reference",h[h.Customcolor=22]="Customcolor",h[h.Folder=23]="Folder",h[h.TypeParameter=24]="TypeParameter",h[h.User=25]="User",h[h.Issue=26]="Issue",h[h.Snippet=27]="Snippet"})(nFe||(nFe={}));var rFe;(function(h){h[h.Deprecated=1]="Deprecated"})(rFe||(rFe={}));var iFe;(function(h){h[h.Invoke=0]="Invoke",h[h.TriggerCharacter=1]="TriggerCharacter",h[h.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(iFe||(iFe={}));var oFe;(function(h){h[h.EXACT=0]="EXACT",h[h.ABOVE=1]="ABOVE",h[h.BELOW=2]="BELOW"})(oFe||(oFe={}));var aFe;(function(h){h[h.NotSet=0]="NotSet",h[h.ContentFlush=1]="ContentFlush",h[h.RecoverFromMarkers=2]="RecoverFromMarkers",h[h.Explicit=3]="Explicit",h[h.Paste=4]="Paste",h[h.Undo=5]="Undo",h[h.Redo=6]="Redo"})(aFe||(aFe={}));var sFe;(function(h){h[h.LF=1]="LF",h[h.CRLF=2]="CRLF"})(sFe||(sFe={}));var lFe;(function(h){h[h.Text=0]="Text",h[h.Read=1]="Read",h[h.Write=2]="Write"})(lFe||(lFe={}));var cFe;(function(h){h[h.None=0]="None",h[h.Keep=1]="Keep",h[h.Brackets=2]="Brackets",h[h.Advanced=3]="Advanced",h[h.Full=4]="Full"})(cFe||(cFe={}));var uFe;(function(h){h[h.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",h[h.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",h[h.accessibilitySupport=2]="accessibilitySupport",h[h.accessibilityPageSize=3]="accessibilityPageSize",h[h.ariaLabel=4]="ariaLabel",h[h.ariaRequired=5]="ariaRequired",h[h.autoClosingBrackets=6]="autoClosingBrackets",h[h.autoClosingComments=7]="autoClosingComments",h[h.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",h[h.autoClosingDelete=9]="autoClosingDelete",h[h.autoClosingOvertype=10]="autoClosingOvertype",h[h.autoClosingQuotes=11]="autoClosingQuotes",h[h.autoIndent=12]="autoIndent",h[h.automaticLayout=13]="automaticLayout",h[h.autoSurround=14]="autoSurround",h[h.bracketPairColorization=15]="bracketPairColorization",h[h.guides=16]="guides",h[h.codeLens=17]="codeLens",h[h.codeLensFontFamily=18]="codeLensFontFamily",h[h.codeLensFontSize=19]="codeLensFontSize",h[h.colorDecorators=20]="colorDecorators",h[h.colorDecoratorsLimit=21]="colorDecoratorsLimit",h[h.columnSelection=22]="columnSelection",h[h.comments=23]="comments",h[h.contextmenu=24]="contextmenu",h[h.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",h[h.cursorBlinking=26]="cursorBlinking",h[h.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",h[h.cursorStyle=28]="cursorStyle",h[h.cursorSurroundingLines=29]="cursorSurroundingLines",h[h.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",h[h.cursorWidth=31]="cursorWidth",h[h.disableLayerHinting=32]="disableLayerHinting",h[h.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",h[h.domReadOnly=34]="domReadOnly",h[h.dragAndDrop=35]="dragAndDrop",h[h.dropIntoEditor=36]="dropIntoEditor",h[h.emptySelectionClipboard=37]="emptySelectionClipboard",h[h.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",h[h.extraEditorClassName=39]="extraEditorClassName",h[h.fastScrollSensitivity=40]="fastScrollSensitivity",h[h.find=41]="find",h[h.fixedOverflowWidgets=42]="fixedOverflowWidgets",h[h.folding=43]="folding",h[h.foldingStrategy=44]="foldingStrategy",h[h.foldingHighlight=45]="foldingHighlight",h[h.foldingImportsByDefault=46]="foldingImportsByDefault",h[h.foldingMaximumRegions=47]="foldingMaximumRegions",h[h.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",h[h.fontFamily=49]="fontFamily",h[h.fontInfo=50]="fontInfo",h[h.fontLigatures=51]="fontLigatures",h[h.fontSize=52]="fontSize",h[h.fontWeight=53]="fontWeight",h[h.fontVariations=54]="fontVariations",h[h.formatOnPaste=55]="formatOnPaste",h[h.formatOnType=56]="formatOnType",h[h.glyphMargin=57]="glyphMargin",h[h.gotoLocation=58]="gotoLocation",h[h.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",h[h.hover=60]="hover",h[h.inDiffEditor=61]="inDiffEditor",h[h.inlineSuggest=62]="inlineSuggest",h[h.inlineEdit=63]="inlineEdit",h[h.letterSpacing=64]="letterSpacing",h[h.lightbulb=65]="lightbulb",h[h.lineDecorationsWidth=66]="lineDecorationsWidth",h[h.lineHeight=67]="lineHeight",h[h.lineNumbers=68]="lineNumbers",h[h.lineNumbersMinChars=69]="lineNumbersMinChars",h[h.linkedEditing=70]="linkedEditing",h[h.links=71]="links",h[h.matchBrackets=72]="matchBrackets",h[h.minimap=73]="minimap",h[h.mouseStyle=74]="mouseStyle",h[h.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",h[h.mouseWheelZoom=76]="mouseWheelZoom",h[h.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",h[h.multiCursorModifier=78]="multiCursorModifier",h[h.multiCursorPaste=79]="multiCursorPaste",h[h.multiCursorLimit=80]="multiCursorLimit",h[h.occurrencesHighlight=81]="occurrencesHighlight",h[h.overviewRulerBorder=82]="overviewRulerBorder",h[h.overviewRulerLanes=83]="overviewRulerLanes",h[h.padding=84]="padding",h[h.pasteAs=85]="pasteAs",h[h.parameterHints=86]="parameterHints",h[h.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",h[h.definitionLinkOpensInPeek=88]="definitionLinkOpensInPeek",h[h.quickSuggestions=89]="quickSuggestions",h[h.quickSuggestionsDelay=90]="quickSuggestionsDelay",h[h.readOnly=91]="readOnly",h[h.readOnlyMessage=92]="readOnlyMessage",h[h.renameOnType=93]="renameOnType",h[h.renderControlCharacters=94]="renderControlCharacters",h[h.renderFinalNewline=95]="renderFinalNewline",h[h.renderLineHighlight=96]="renderLineHighlight",h[h.renderLineHighlightOnlyWhenFocus=97]="renderLineHighlightOnlyWhenFocus",h[h.renderValidationDecorations=98]="renderValidationDecorations",h[h.renderWhitespace=99]="renderWhitespace",h[h.revealHorizontalRightPadding=100]="revealHorizontalRightPadding",h[h.roundedSelection=101]="roundedSelection",h[h.rulers=102]="rulers",h[h.scrollbar=103]="scrollbar",h[h.scrollBeyondLastColumn=104]="scrollBeyondLastColumn",h[h.scrollBeyondLastLine=105]="scrollBeyondLastLine",h[h.scrollPredominantAxis=106]="scrollPredominantAxis",h[h.selectionClipboard=107]="selectionClipboard",h[h.selectionHighlight=108]="selectionHighlight",h[h.selectOnLineNumbers=109]="selectOnLineNumbers",h[h.showFoldingControls=110]="showFoldingControls",h[h.showUnused=111]="showUnused",h[h.snippetSuggestions=112]="snippetSuggestions",h[h.smartSelect=113]="smartSelect",h[h.smoothScrolling=114]="smoothScrolling",h[h.stickyScroll=115]="stickyScroll",h[h.stickyTabStops=116]="stickyTabStops",h[h.stopRenderingLineAfter=117]="stopRenderingLineAfter",h[h.suggest=118]="suggest",h[h.suggestFontSize=119]="suggestFontSize",h[h.suggestLineHeight=120]="suggestLineHeight",h[h.suggestOnTriggerCharacters=121]="suggestOnTriggerCharacters",h[h.suggestSelection=122]="suggestSelection",h[h.tabCompletion=123]="tabCompletion",h[h.tabIndex=124]="tabIndex",h[h.unicodeHighlighting=125]="unicodeHighlighting",h[h.unusualLineTerminators=126]="unusualLineTerminators",h[h.useShadowDOM=127]="useShadowDOM",h[h.useTabStops=128]="useTabStops",h[h.wordBreak=129]="wordBreak",h[h.wordSegmenterLocales=130]="wordSegmenterLocales",h[h.wordSeparators=131]="wordSeparators",h[h.wordWrap=132]="wordWrap",h[h.wordWrapBreakAfterCharacters=133]="wordWrapBreakAfterCharacters",h[h.wordWrapBreakBeforeCharacters=134]="wordWrapBreakBeforeCharacters",h[h.wordWrapColumn=135]="wordWrapColumn",h[h.wordWrapOverride1=136]="wordWrapOverride1",h[h.wordWrapOverride2=137]="wordWrapOverride2",h[h.wrappingIndent=138]="wrappingIndent",h[h.wrappingStrategy=139]="wrappingStrategy",h[h.showDeprecated=140]="showDeprecated",h[h.inlayHints=141]="inlayHints",h[h.editorClassName=142]="editorClassName",h[h.pixelRatio=143]="pixelRatio",h[h.tabFocusMode=144]="tabFocusMode",h[h.layoutInfo=145]="layoutInfo",h[h.wrappingInfo=146]="wrappingInfo",h[h.defaultColorDecorators=147]="defaultColorDecorators",h[h.colorDecoratorsActivatedOn=148]="colorDecoratorsActivatedOn",h[h.inlineCompletionsAccessibilityVerbose=149]="inlineCompletionsAccessibilityVerbose"})(uFe||(uFe={}));var dFe;(function(h){h[h.TextDefined=0]="TextDefined",h[h.LF=1]="LF",h[h.CRLF=2]="CRLF"})(dFe||(dFe={}));var pFe;(function(h){h[h.LF=0]="LF",h[h.CRLF=1]="CRLF"})(pFe||(pFe={}));var fFe;(function(h){h[h.Left=1]="Left",h[h.Center=2]="Center",h[h.Right=3]="Right"})(fFe||(fFe={}));var mFe;(function(h){h[h.Increase=0]="Increase",h[h.Decrease=1]="Decrease"})(mFe||(mFe={}));var _Fe;(function(h){h[h.None=0]="None",h[h.Indent=1]="Indent",h[h.IndentOutdent=2]="IndentOutdent",h[h.Outdent=3]="Outdent"})(_Fe||(_Fe={}));var hFe;(function(h){h[h.Both=0]="Both",h[h.Right=1]="Right",h[h.Left=2]="Left",h[h.None=3]="None"})(hFe||(hFe={}));var gFe;(function(h){h[h.Type=1]="Type",h[h.Parameter=2]="Parameter"})(gFe||(gFe={}));var vFe;(function(h){h[h.Automatic=0]="Automatic",h[h.Explicit=1]="Explicit"})(vFe||(vFe={}));var yFe;(function(h){h[h.Invoke=0]="Invoke",h[h.Automatic=1]="Automatic"})(yFe||(yFe={}));var qte;(function(h){h[h.DependsOnKbLayout=-1]="DependsOnKbLayout",h[h.Unknown=0]="Unknown",h[h.Backspace=1]="Backspace",h[h.Tab=2]="Tab",h[h.Enter=3]="Enter",h[h.Shift=4]="Shift",h[h.Ctrl=5]="Ctrl",h[h.Alt=6]="Alt",h[h.PauseBreak=7]="PauseBreak",h[h.CapsLock=8]="CapsLock",h[h.Escape=9]="Escape",h[h.Space=10]="Space",h[h.PageUp=11]="PageUp",h[h.PageDown=12]="PageDown",h[h.End=13]="End",h[h.Home=14]="Home",h[h.LeftArrow=15]="LeftArrow",h[h.UpArrow=16]="UpArrow",h[h.RightArrow=17]="RightArrow",h[h.DownArrow=18]="DownArrow",h[h.Insert=19]="Insert",h[h.Delete=20]="Delete",h[h.Digit0=21]="Digit0",h[h.Digit1=22]="Digit1",h[h.Digit2=23]="Digit2",h[h.Digit3=24]="Digit3",h[h.Digit4=25]="Digit4",h[h.Digit5=26]="Digit5",h[h.Digit6=27]="Digit6",h[h.Digit7=28]="Digit7",h[h.Digit8=29]="Digit8",h[h.Digit9=30]="Digit9",h[h.KeyA=31]="KeyA",h[h.KeyB=32]="KeyB",h[h.KeyC=33]="KeyC",h[h.KeyD=34]="KeyD",h[h.KeyE=35]="KeyE",h[h.KeyF=36]="KeyF",h[h.KeyG=37]="KeyG",h[h.KeyH=38]="KeyH",h[h.KeyI=39]="KeyI",h[h.KeyJ=40]="KeyJ",h[h.KeyK=41]="KeyK",h[h.KeyL=42]="KeyL",h[h.KeyM=43]="KeyM",h[h.KeyN=44]="KeyN",h[h.KeyO=45]="KeyO",h[h.KeyP=46]="KeyP",h[h.KeyQ=47]="KeyQ",h[h.KeyR=48]="KeyR",h[h.KeyS=49]="KeyS",h[h.KeyT=50]="KeyT",h[h.KeyU=51]="KeyU",h[h.KeyV=52]="KeyV",h[h.KeyW=53]="KeyW",h[h.KeyX=54]="KeyX",h[h.KeyY=55]="KeyY",h[h.KeyZ=56]="KeyZ",h[h.Meta=57]="Meta",h[h.ContextMenu=58]="ContextMenu",h[h.F1=59]="F1",h[h.F2=60]="F2",h[h.F3=61]="F3",h[h.F4=62]="F4",h[h.F5=63]="F5",h[h.F6=64]="F6",h[h.F7=65]="F7",h[h.F8=66]="F8",h[h.F9=67]="F9",h[h.F10=68]="F10",h[h.F11=69]="F11",h[h.F12=70]="F12",h[h.F13=71]="F13",h[h.F14=72]="F14",h[h.F15=73]="F15",h[h.F16=74]="F16",h[h.F17=75]="F17",h[h.F18=76]="F18",h[h.F19=77]="F19",h[h.F20=78]="F20",h[h.F21=79]="F21",h[h.F22=80]="F22",h[h.F23=81]="F23",h[h.F24=82]="F24",h[h.NumLock=83]="NumLock",h[h.ScrollLock=84]="ScrollLock",h[h.Semicolon=85]="Semicolon",h[h.Equal=86]="Equal",h[h.Comma=87]="Comma",h[h.Minus=88]="Minus",h[h.Period=89]="Period",h[h.Slash=90]="Slash",h[h.Backquote=91]="Backquote",h[h.BracketLeft=92]="BracketLeft",h[h.Backslash=93]="Backslash",h[h.BracketRight=94]="BracketRight",h[h.Quote=95]="Quote",h[h.OEM_8=96]="OEM_8",h[h.IntlBackslash=97]="IntlBackslash",h[h.Numpad0=98]="Numpad0",h[h.Numpad1=99]="Numpad1",h[h.Numpad2=100]="Numpad2",h[h.Numpad3=101]="Numpad3",h[h.Numpad4=102]="Numpad4",h[h.Numpad5=103]="Numpad5",h[h.Numpad6=104]="Numpad6",h[h.Numpad7=105]="Numpad7",h[h.Numpad8=106]="Numpad8",h[h.Numpad9=107]="Numpad9",h[h.NumpadMultiply=108]="NumpadMultiply",h[h.NumpadAdd=109]="NumpadAdd",h[h.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",h[h.NumpadSubtract=111]="NumpadSubtract",h[h.NumpadDecimal=112]="NumpadDecimal",h[h.NumpadDivide=113]="NumpadDivide",h[h.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",h[h.ABNT_C1=115]="ABNT_C1",h[h.ABNT_C2=116]="ABNT_C2",h[h.AudioVolumeMute=117]="AudioVolumeMute",h[h.AudioVolumeUp=118]="AudioVolumeUp",h[h.AudioVolumeDown=119]="AudioVolumeDown",h[h.BrowserSearch=120]="BrowserSearch",h[h.BrowserHome=121]="BrowserHome",h[h.BrowserBack=122]="BrowserBack",h[h.BrowserForward=123]="BrowserForward",h[h.MediaTrackNext=124]="MediaTrackNext",h[h.MediaTrackPrevious=125]="MediaTrackPrevious",h[h.MediaStop=126]="MediaStop",h[h.MediaPlayPause=127]="MediaPlayPause",h[h.LaunchMediaPlayer=128]="LaunchMediaPlayer",h[h.LaunchMail=129]="LaunchMail",h[h.LaunchApp2=130]="LaunchApp2",h[h.Clear=131]="Clear",h[h.MAX_VALUE=132]="MAX_VALUE"})(qte||(qte={}));var Jte;(function(h){h[h.Hint=1]="Hint",h[h.Info=2]="Info",h[h.Warning=4]="Warning",h[h.Error=8]="Error"})(Jte||(Jte={}));var Kte;(function(h){h[h.Unnecessary=1]="Unnecessary",h[h.Deprecated=2]="Deprecated"})(Kte||(Kte={}));var bFe;(function(h){h[h.Inline=1]="Inline",h[h.Gutter=2]="Gutter"})(bFe||(bFe={}));var EFe;(function(h){h[h.Normal=1]="Normal",h[h.Underlined=2]="Underlined"})(EFe||(EFe={}));var SFe;(function(h){h[h.UNKNOWN=0]="UNKNOWN",h[h.TEXTAREA=1]="TEXTAREA",h[h.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",h[h.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",h[h.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",h[h.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",h[h.CONTENT_TEXT=6]="CONTENT_TEXT",h[h.CONTENT_EMPTY=7]="CONTENT_EMPTY",h[h.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",h[h.CONTENT_WIDGET=9]="CONTENT_WIDGET",h[h.OVERVIEW_RULER=10]="OVERVIEW_RULER",h[h.SCROLLBAR=11]="SCROLLBAR",h[h.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",h[h.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(SFe||(SFe={}));var TFe;(function(h){h[h.AIGenerated=1]="AIGenerated"})(TFe||(TFe={}));var AFe;(function(h){h[h.Invoke=0]="Invoke",h[h.Automatic=1]="Automatic"})(AFe||(AFe={}));var IFe;(function(h){h[h.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",h[h.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",h[h.TOP_CENTER=2]="TOP_CENTER"})(IFe||(IFe={}));var xFe;(function(h){h[h.Left=1]="Left",h[h.Center=2]="Center",h[h.Right=4]="Right",h[h.Full=7]="Full"})(xFe||(xFe={}));var RFe;(function(h){h[h.Word=0]="Word",h[h.Line=1]="Line",h[h.Suggest=2]="Suggest"})(RFe||(RFe={}));var DFe;(function(h){h[h.Left=0]="Left",h[h.Right=1]="Right",h[h.None=2]="None",h[h.LeftOfInjectedText=3]="LeftOfInjectedText",h[h.RightOfInjectedText=4]="RightOfInjectedText"})(DFe||(DFe={}));var CFe;(function(h){h[h.Off=0]="Off",h[h.On=1]="On",h[h.Relative=2]="Relative",h[h.Interval=3]="Interval",h[h.Custom=4]="Custom"})(CFe||(CFe={}));var NFe;(function(h){h[h.None=0]="None",h[h.Text=1]="Text",h[h.Blocks=2]="Blocks"})(NFe||(NFe={}));var PFe;(function(h){h[h.Smooth=0]="Smooth",h[h.Immediate=1]="Immediate"})(PFe||(PFe={}));var MFe;(function(h){h[h.Auto=1]="Auto",h[h.Hidden=2]="Hidden",h[h.Visible=3]="Visible"})(MFe||(MFe={}));var Xte;(function(h){h[h.LTR=0]="LTR",h[h.RTL=1]="RTL"})(Xte||(Xte={}));var LFe;(function(h){h.Off="off",h.OnCode="onCode",h.On="on"})(LFe||(LFe={}));var kFe;(function(h){h[h.Invoke=1]="Invoke",h[h.TriggerCharacter=2]="TriggerCharacter",h[h.ContentChange=3]="ContentChange"})(kFe||(kFe={}));var wFe;(function(h){h[h.File=0]="File",h[h.Module=1]="Module",h[h.Namespace=2]="Namespace",h[h.Package=3]="Package",h[h.Class=4]="Class",h[h.Method=5]="Method",h[h.Property=6]="Property",h[h.Field=7]="Field",h[h.Constructor=8]="Constructor",h[h.Enum=9]="Enum",h[h.Interface=10]="Interface",h[h.Function=11]="Function",h[h.Variable=12]="Variable",h[h.Constant=13]="Constant",h[h.String=14]="String",h[h.Number=15]="Number",h[h.Boolean=16]="Boolean",h[h.Array=17]="Array",h[h.Object=18]="Object",h[h.Key=19]="Key",h[h.Null=20]="Null",h[h.EnumMember=21]="EnumMember",h[h.Struct=22]="Struct",h[h.Event=23]="Event",h[h.Operator=24]="Operator",h[h.TypeParameter=25]="TypeParameter"})(wFe||(wFe={}));var OFe;(function(h){h[h.Deprecated=1]="Deprecated"})(OFe||(OFe={}));var FFe;(function(h){h[h.Hidden=0]="Hidden",h[h.Blink=1]="Blink",h[h.Smooth=2]="Smooth",h[h.Phase=3]="Phase",h[h.Expand=4]="Expand",h[h.Solid=5]="Solid"})(FFe||(FFe={}));var WFe;(function(h){h[h.Line=1]="Line",h[h.Block=2]="Block",h[h.Underline=3]="Underline",h[h.LineThin=4]="LineThin",h[h.BlockOutline=5]="BlockOutline",h[h.UnderlineThin=6]="UnderlineThin"})(WFe||(WFe={}));var zFe;(function(h){h[h.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",h[h.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",h[h.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",h[h.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(zFe||(zFe={}));var BFe;(function(h){h[h.None=0]="None",h[h.Same=1]="Same",h[h.Indent=2]="Indent",h[h.DeepIndent=3]="DeepIndent"})(BFe||(BFe={}));var TM=class{static chord(v,A){return W5e(v,A)}};TM.CtrlCmd=2048;TM.Shift=1024;TM.Alt=512;TM.WinCtrl=256;function GFe(){return{editor:void 0,languages:void 0,CancellationTokenSource:Gte,Emitter:Hh,KeyCode:qte,KeyMod:TM,Position:vf,Range:tc,Selection:jte,SelectionDirection:Xte,MarkerSeverity:Jte,MarkerTag:Kte,Uri:VD,Token:Hte}}var VFe,jFe,E0e=class{constructor(v,A){this.uri=v,this.value=A}};function Zyt(h){return Array.isArray(h)}var S0e=class h{constructor(v,A){if(this[VFe]="ResourceMap",v instanceof h)this.map=new Map(v.map),this.toKey=A??h.defaultToKey;else if(Zyt(v)){this.map=new Map,this.toKey=A??h.defaultToKey;for(let[F,X]of v)this.set(F,X)}else this.map=new Map,this.toKey=v??h.defaultToKey}set(v,A){return this.map.set(this.toKey(v),new E0e(v,A)),this}get(v){var A;return(A=this.map.get(this.toKey(v)))===null||A===void 0?void 0:A.value}has(v){return this.map.has(this.toKey(v))}get size(){return this.map.size}clear(){this.map.clear()}delete(v){return this.map.delete(this.toKey(v))}forEach(v,A){typeof A<"u"&&(v=v.bind(A));for(let[F,X]of this.map)v(X.value,X.uri,this)}*values(){for(let v of this.map.values())yield v.value}*keys(){for(let v of this.map.values())yield v.uri}*entries(){for(let v of this.map.values())yield[v.uri,v.value]}*[(VFe=Symbol.toStringTag,Symbol.iterator)](){for(let[,v]of this.map)yield[v.uri,v.value]}};S0e.defaultToKey=h=>h.toString();var T0e=class{constructor(){this[jFe]="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(){var v;return(v=this._head)===null||v===void 0?void 0:v.value}get last(){var v;return(v=this._tail)===null||v===void 0?void 0:v.value}has(v){return this._map.has(v)}get(v,A=0){let F=this._map.get(v);if(F)return A!==0&&this.touch(F,A),F.value}set(v,A,F=0){let X=this._map.get(v);if(X)X.value=A,F!==0&&this.touch(X,F);else{switch(X={key:v,value:A,next:void 0,previous:void 0},F){case 0:this.addItemLast(X);break;case 1:this.addItemFirst(X);break;case 2:this.addItemLast(X);break;default:this.addItemLast(X);break}this._map.set(v,X),this._size++}return this}delete(v){return!!this.remove(v)}remove(v){let A=this._map.get(v);if(A)return this._map.delete(v),this.removeItem(A),this._size--,A.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");let v=this._head;return this._map.delete(v.key),this.removeItem(v),this._size--,v.value}forEach(v,A){let F=this._state,X=this._head;for(;X;){if(A?v.bind(A)(X.value,X.key,this):v(X.value,X.key,this),this._state!==F)throw new Error("LinkedMap got modified during iteration.");X=X.next}}keys(){let v=this,A=this._state,F=this._head,X={[Symbol.iterator](){return X},next(){if(v._state!==A)throw new Error("LinkedMap got modified during iteration.");if(F){let _e={value:F.key,done:!1};return F=F.next,_e}else return{value:void 0,done:!0}}};return X}values(){let v=this,A=this._state,F=this._head,X={[Symbol.iterator](){return X},next(){if(v._state!==A)throw new Error("LinkedMap got modified during iteration.");if(F){let _e={value:F.value,done:!1};return F=F.next,_e}else return{value:void 0,done:!0}}};return X}entries(){let v=this,A=this._state,F=this._head,X={[Symbol.iterator](){return X},next(){if(v._state!==A)throw new Error("LinkedMap got modified during iteration.");if(F){let _e={value:[F.key,F.value],done:!1};return F=F.next,_e}else return{value:void 0,done:!0}}};return X}[(jFe=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(v){if(v>=this.size)return;if(v===0){this.clear();return}let A=this._head,F=this.size;for(;A&&F>v;)this._map.delete(A.key),A=A.next,F--;this._head=A,this._size=F,A&&(A.previous=void 0),this._state++}trimNew(v){if(v>=this.size)return;if(v===0){this.clear();return}let A=this._tail,F=this.size;for(;A&&F>v;)this._map.delete(A.key),A=A.previous,F--;this._tail=A,this._size=F,A&&(A.next=void 0),this._state++}addItemFirst(v){if(!this._head&&!this._tail)this._tail=v;else if(this._head)v.next=this._head,this._head.previous=v;else throw new Error("Invalid list");this._head=v,this._state++}addItemLast(v){if(!this._head&&!this._tail)this._head=v;else if(this._tail)v.previous=this._tail,this._tail.next=v;else throw new Error("Invalid list");this._tail=v,this._state++}removeItem(v){if(v===this._head&&v===this._tail)this._head=void 0,this._tail=void 0;else if(v===this._head){if(!v.next)throw new Error("Invalid list");v.next.previous=void 0,this._head=v.next}else if(v===this._tail){if(!v.previous)throw new Error("Invalid list");v.previous.next=void 0,this._tail=v.previous}else{let A=v.next,F=v.previous;if(!A||!F)throw new Error("Invalid list");A.previous=F,F.next=A}v.next=void 0,v.previous=void 0,this._state++}touch(v,A){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(A!==1&&A!==2)){if(A===1){if(v===this._head)return;let F=v.next,X=v.previous;v===this._tail?(X.next=void 0,this._tail=X):(F.previous=X,X.next=F),v.previous=void 0,v.next=this._head,this._head.previous=v,this._head=v,this._state++}else if(A===2){if(v===this._tail)return;let F=v.next,X=v.previous;v===this._head?(F.previous=void 0,this._head=F):(F.previous=X,X.next=F),v.next=void 0,v.previous=this._tail,this._tail.next=v,this._tail=v,this._state++}}}toJSON(){let v=[];return this.forEach((A,F)=>{v.push([F,A])}),v}fromJSON(v){this.clear();for(let[A,F]of v)this.set(A,F)}},A0e=class extends T0e{constructor(v,A=1){super(),this._limit=v,this._ratio=Math.min(Math.max(0,A),1)}get limit(){return this._limit}set limit(v){this._limit=v,this.checkTrim()}get(v,A=2){return super.get(v,A)}peek(v){return super.get(v,0)}set(v,A){return super.set(v,A,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}},Yte=class extends A0e{constructor(v,A=1){super(v,A)}trim(v){this.trimOld(v)}set(v,A){return super.set(v,A),this.checkTrim(),this}};var $te=class{constructor(){this.map=new Map}add(v,A){let F=this.map.get(v);F||(F=new Set,this.map.set(v,F)),F.add(A)}delete(v,A){let F=this.map.get(v);F&&(F.delete(A),F.size===0&&this.map.delete(v))}forEach(v,A){let F=this.map.get(v);F&&F.forEach(A)}get(v){let A=this.map.get(v);return A||new Set}};var O1t=new Yte(10);var UFe;(function(h){h[h.Left=1]="Left",h[h.Center=2]="Center",h[h.Right=4]="Right",h[h.Full=7]="Full"})(UFe||(UFe={}));var HFe;(function(h){h[h.Left=1]="Left",h[h.Center=2]="Center",h[h.Right=3]="Right"})(HFe||(HFe={}));var qFe;(function(h){h[h.Both=0]="Both",h[h.Right=1]="Right",h[h.Left=2]="Left",h[h.None=3]="None"})(qFe||(qFe={}));function ebt(h,v,A,F,X){if(F===0)return!0;let _e=v.charCodeAt(F-1);if(h.get(_e)!==0||_e===13||_e===10)return!0;if(X>0){let Te=v.charCodeAt(F);if(h.get(Te)!==0)return!0}return!1}function tbt(h,v,A,F,X){if(F+X===A)return!0;let _e=v.charCodeAt(F+X);if(h.get(_e)!==0||_e===13||_e===10)return!0;if(X>0){let Te=v.charCodeAt(F+X-1);if(h.get(Te)!==0)return!0}return!1}function nbt(h,v,A,F,X){return ebt(h,v,A,F,X)&&tbt(h,v,A,F,X)}var Qte=class{constructor(v,A){this._wordSeparators=v,this._searchRegex=A,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(v){this._searchRegex.lastIndex=v,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(v){let A=v.length,F;do{if(this._prevMatchStartIndex+this._prevMatchLength===A||(F=this._searchRegex.exec(v),!F))return null;let X=F.index,_e=F[0].length;if(X===this._prevMatchStartIndex&&_e===this._prevMatchLength){if(_e===0){d5e(v,A,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=X,this._prevMatchLength=_e,!this._wordSeparators||nbt(this._wordSeparators,v,A,X,_e))return F}while(F);return null}};function JFe(h,v="Unreachable"){throw new Error(v)}function AM(h){if(!h()){debugger;h(),a8(new Dg("Assertion Failed"))}}function UB(h,v){let A=0;for(;A0){let Kc=vn.charCodeAt(ri-1);f8(Kc)&&ri--}if(to+1=1e3){Gt=!0;break e}Ke.push(new tc(Qi,ri+1,Qi,to+1))}}while(Zt)}return{ranges:Ke,hasMore:Gt,ambiguousCharacterCount:ir,invisibleCharacterCount:Ar,nonBasicAsciiCharacterCount:Un}}static computeUnicodeHighlightReason(v,A){let F=new ene(A);switch(F.shouldHighlightNonBasicASCII(v,null)){case 0:return null;case 2:return{kind:1};case 3:{let _e=v.codePointAt(0),Te=F.ambiguousCharacters.getPrimaryConfusable(_e),Be=sA.getLocales().filter(nt=>!sA.getInstance(new Set([...A.allowedLocales,nt])).isAmbiguous(_e));return{kind:0,confusableWith:String.fromCodePoint(Te),notAmbiguousInLocales:Be}}case 1:return{kind:2}}}};function rbt(h,v){return`[${s5e(h.map(F=>String.fromCodePoint(F)).join(""))}]`}var ene=class{constructor(v){this.options=v,this.allowedCodePoints=new Set(v.allowedCodePoints),this.ambiguousCharacters=sA.getInstance(new Set(v.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";let v=new Set;if(this.options.invisibleCharacters)for(let A of EM.codePoints)KFe(String.fromCodePoint(A))||v.add(A);if(this.options.ambiguousCharacters)for(let A of this.ambiguousCharacters.getConfusableCodePoints())v.add(A);for(let A of this.allowedCodePoints)v.delete(A);return v}shouldHighlightNonBasicASCII(v,A){let F=v.codePointAt(0);if(this.allowedCodePoints.has(F))return 0;if(this.options.nonBasicASCII)return 1;let X=!1,_e=!1;if(A)for(let Te of A){let Be=Te.codePointAt(0),nt=p5e(Te);X=X||nt,!nt&&!this.ambiguousCharacters.isAmbiguous(Be)&&!EM.isInvisibleCharacter(Be)&&(_e=!0)}return!X&&_e?0:this.options.invisibleCharacters&&!KFe(v)&&EM.isInvisibleCharacter(F)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(F)?3:0}};function KFe(h){return h===" "||h===` +`||h===" "}var UD=class{constructor(v,A,F){this.changes=v,this.moves=A,this.hitTimeout=F}},tne=class{constructor(v,A){this.lineRangeMapping=v,this.changes=A}};var nc=class h{static addRange(v,A){let F=0;for(;FA))return new h(v,A)}static ofLength(v){return new h(0,v)}static ofStartAndLength(v,A){return new h(v,v+A)}constructor(v,A){if(this.start=v,this.endExclusive=A,v>A)throw new Dg(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(v){return new h(this.start+v,this.endExclusive+v)}deltaStart(v){return new h(this.start+v,this.endExclusive)}deltaEnd(v){return new h(this.start,this.endExclusive+v)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(v){return this.start<=v&&v=v.endExclusive}slice(v){return v.slice(this.start,this.endExclusive)}substring(v){return v.substring(this.start,this.endExclusive)}clip(v){if(this.isEmpty)throw new Dg(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,v))}clipCyclic(v){if(this.isEmpty)throw new Dg(`Invalid clipping range: ${this.toString()}`);return v=this.endExclusive?this.start+(v-this.start)%this.length:v}forEach(v){for(let A=this.start;AA)throw new Dg(`startLineNumber ${v} cannot be after endLineNumberExclusive ${A}`);this.startLineNumber=v,this.endLineNumberExclusive=A}contains(v){return this.startLineNumber<=v&&vX.endLineNumberExclusive>=v.startLineNumber),F=IM(this._normalizedRanges,X=>X.startLineNumber<=v.endLineNumberExclusive)+1;if(A===F)this._normalizedRanges.splice(A,0,v);else if(A===F-1){let X=this._normalizedRanges[A];this._normalizedRanges[A]=X.join(v)}else{let X=this._normalizedRanges[A].join(this._normalizedRanges[F-1]).join(v);this._normalizedRanges.splice(A,F-A,X)}}contains(v){let A=Ix(this._normalizedRanges,F=>F.startLineNumber<=v);return!!A&&A.endLineNumberExclusive>v}intersects(v){let A=Ix(this._normalizedRanges,F=>F.startLineNumberv.startLineNumber}getUnion(v){if(this._normalizedRanges.length===0)return v;if(v._normalizedRanges.length===0)return this;let A=[],F=0,X=0,_e=null;for(;F=Te.startLineNumber?_e=new Pc(_e.startLineNumber,Math.max(_e.endLineNumberExclusive,Te.endLineNumberExclusive)):(A.push(_e),_e=Te)}return _e!==null&&A.push(_e),new h(A)}subtractFrom(v){let A=nne(this._normalizedRanges,Te=>Te.endLineNumberExclusive>=v.startLineNumber),F=IM(this._normalizedRanges,Te=>Te.startLineNumber<=v.endLineNumberExclusive)+1;if(A===F)return new h([v]);let X=[],_e=v.startLineNumber;for(let Te=A;Te_e&&X.push(new Pc(_e,Be.startLineNumber)),_e=Be.endLineNumberExclusive}return _ev.toString()).join(", ")}getIntersection(v){let A=[],F=0,X=0;for(;FA.delta(v)))}};var v8=class h{static betweenPositions(v,A){return v.lineNumber===A.lineNumber?new h(0,A.column-v.column):new h(A.lineNumber-v.lineNumber,A.column-1)}static ofRange(v){return h.betweenPositions(v.getStartPosition(),v.getEndPosition())}static ofText(v){let A=0,F=0;for(let X of v)X===` +`?(A++,F=0):F++;return new h(A,F)}constructor(v,A){this.lineCount=v,this.columnCount=A}isGreaterThanOrEqualTo(v){return this.lineCount!==v.lineCount?this.lineCount>v.lineCount:this.columnCount>=v.columnCount}createRange(v){return this.lineCount===0?new tc(v.lineNumber,v.column,v.lineNumber,v.column+this.columnCount):new tc(v.lineNumber,v.column,v.lineNumber+this.lineCount,this.columnCount+1)}addToPosition(v){return this.lineCount===0?new vf(v.lineNumber,v.column+this.columnCount):new vf(v.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}};v8.zero=new v8(0,0);var rne=class{constructor(v,A){this.range=v,this.text=A}};var HD=class h{static inverse(v,A,F){let X=[],_e=1,Te=1;for(let nt of v){let De=new h(new Pc(_e,nt.original.startLineNumber),new Pc(Te,nt.modified.startLineNumber));De.modified.isEmpty||X.push(De),_e=nt.original.endLineNumberExclusive,Te=nt.modified.endLineNumberExclusive}let Be=new h(new Pc(_e,A+1),new Pc(Te,F+1));return Be.modified.isEmpty||X.push(Be),X}static clip(v,A,F){let X=[];for(let _e of v){let Te=_e.original.intersect(A),Be=_e.modified.intersect(F);Te&&!Te.isEmpty&&Be&&!Be.isEmpty&&X.push(new h(Te,Be))}return X}constructor(v,A){this.original=v,this.modified=A}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new h(this.modified,this.original)}join(v){return new h(this.original.join(v.original),this.modified.join(v.modified))}toRangeMapping(){let v=this.original.toInclusiveRange(),A=this.modified.toInclusiveRange();if(v&&A)return new lA(v,A);if(this.original.startLineNumber===1||this.modified.startLineNumber===1){if(!(this.modified.startLineNumber===1&&this.original.startLineNumber===1))throw new Dg("not a valid diff");return new lA(new tc(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new tc(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}else return new lA(new tc(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new tc(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}},xx=class h extends HD{static fromRangeMappings(v){let A=Pc.join(v.map(X=>Pc.fromRangeInclusive(X.originalRange))),F=Pc.join(v.map(X=>Pc.fromRangeInclusive(X.modifiedRange)));return new h(A,F,v)}constructor(v,A,F){super(v,A),this.innerChanges=F}flip(){var v;return new h(this.modified,this.original,(v=this.innerChanges)===null||v===void 0?void 0:v.map(A=>A.flip()))}withInnerChangesFromLineRanges(){return new h(this.original,this.modified,[this.toRangeMapping()])}},lA=class h{constructor(v,A){this.originalRange=v,this.modifiedRange=A}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new h(this.modifiedRange,this.originalRange)}toTextEdit(v){let A=v.getValueOfRange(this.modifiedRange);return new rne(this.originalRange,A)}};var ibt=3,ine=class{computeDiff(v,A,F){var X;let Te=new x0e(v,A,{maxComputationTime:F.maxComputationTimeMs,shouldIgnoreTrimWhitespace:F.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),Be=[],nt=null;for(let De of Te.changes){let Ke;De.originalEndLineNumber===0?Ke=new Pc(De.originalStartLineNumber+1,De.originalStartLineNumber+1):Ke=new Pc(De.originalStartLineNumber,De.originalEndLineNumber+1);let Gt;De.modifiedEndLineNumber===0?Gt=new Pc(De.modifiedStartLineNumber+1,De.modifiedStartLineNumber+1):Gt=new Pc(De.modifiedStartLineNumber,De.modifiedEndLineNumber+1);let Zt=new xx(Ke,Gt,(X=De.charChanges)===null||X===void 0?void 0:X.map(ir=>new lA(new tc(ir.originalStartLineNumber,ir.originalStartColumn,ir.originalEndLineNumber,ir.originalEndColumn),new tc(ir.modifiedStartLineNumber,ir.modifiedStartColumn,ir.modifiedEndLineNumber,ir.modifiedEndColumn))));nt&&(nt.modified.endLineNumberExclusive===Zt.modified.startLineNumber||nt.original.endLineNumberExclusive===Zt.original.startLineNumber)&&(Zt=new xx(nt.original.join(Zt.original),nt.modified.join(Zt.modified),nt.innerChanges&&Zt.innerChanges?nt.innerChanges.concat(Zt.innerChanges):void 0),Be.pop()),Be.push(Zt),nt=Zt}return AM(()=>UB(Be,(De,Ke)=>Ke.original.startLineNumber-De.original.endLineNumberExclusive===Ke.modified.startLineNumber-De.modified.endLineNumberExclusive&&De.original.endLineNumberExclusive(v===10?"\\n":String.fromCharCode(v))+`-(${this._lineNumbers[A]},${this._columns[A]})`).join(", ")+"]"}_assertIndex(v,A){if(v<0||v>=A.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(v){return v>0&&v===this._lineNumbers.length?this.getEndLineNumber(v-1):(this._assertIndex(v,this._lineNumbers),this._lineNumbers[v])}getEndLineNumber(v){return v===-1?this.getStartLineNumber(v+1):(this._assertIndex(v,this._lineNumbers),this._charCodes[v]===10?this._lineNumbers[v]+1:this._lineNumbers[v])}getStartColumn(v){return v>0&&v===this._columns.length?this.getEndColumn(v-1):(this._assertIndex(v,this._columns),this._columns[v])}getEndColumn(v){return v===-1?this.getStartColumn(v+1):(this._assertIndex(v,this._columns),this._charCodes[v]===10?1:this._columns[v]+1)}},y8=class h{constructor(v,A,F,X,_e,Te,Be,nt){this.originalStartLineNumber=v,this.originalStartColumn=A,this.originalEndLineNumber=F,this.originalEndColumn=X,this.modifiedStartLineNumber=_e,this.modifiedStartColumn=Te,this.modifiedEndLineNumber=Be,this.modifiedEndColumn=nt}static createFromDiffChange(v,A,F){let X=A.getStartLineNumber(v.originalStart),_e=A.getStartColumn(v.originalStart),Te=A.getEndLineNumber(v.originalStart+v.originalLength-1),Be=A.getEndColumn(v.originalStart+v.originalLength-1),nt=F.getStartLineNumber(v.modifiedStart),De=F.getStartColumn(v.modifiedStart),Ke=F.getEndLineNumber(v.modifiedStart+v.modifiedLength-1),Gt=F.getEndColumn(v.modifiedStart+v.modifiedLength-1);return new h(X,_e,Te,Be,nt,De,Ke,Gt)}};function obt(h){if(h.length<=1)return h;let v=[h[0]],A=v[0];for(let F=1,X=h.length;F0&&A.originalLength<20&&A.modifiedLength>0&&A.modifiedLength<20&&_e()){let ir=F.createCharSequence(v,A.originalStart,A.originalStart+A.originalLength-1),Ar=X.createCharSequence(v,A.modifiedStart,A.modifiedStart+A.modifiedLength-1);if(ir.getElements().length>0&&Ar.getElements().length>0){let Un=$Fe(ir,Ar,_e,!0).changes;Be&&(Un=obt(Un)),Zt=[];for(let Qi=0,Jn=Un.length;Qi1&&Un>1;){let Qi=Zt.charCodeAt(Ar-2),Jn=ir.charCodeAt(Un-2);if(Qi!==Jn)break;Ar--,Un--}(Ar>1||Un>1)&&this._pushTrimWhitespaceCharChange(X,_e+1,1,Ar,Te+1,1,Un)}{let Ar=D0e(Zt,1),Un=D0e(ir,1),Qi=Zt.length+1,Jn=ir.length+1;for(;Ar!0;let v=Date.now();return()=>Date.now()-v{F.push(h.fromOffsetPairs(X?X.getEndExclusives():Sy.zero,_e?_e.getStarts():new Sy(A,(X?X.seq2Range.endExclusive-X.seq1Range.endExclusive:0)+A)))}),F}static fromOffsetPairs(v,A){return new h(new nc(v.offset1,A.offset1),new nc(v.offset2,A.offset2))}constructor(v,A){this.seq1Range=v,this.seq2Range=A}swap(){return new h(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(v){return new h(this.seq1Range.join(v.seq1Range),this.seq2Range.join(v.seq2Range))}delta(v){return v===0?this:new h(this.seq1Range.delta(v),this.seq2Range.delta(v))}deltaStart(v){return v===0?this:new h(this.seq1Range.deltaStart(v),this.seq2Range.deltaStart(v))}deltaEnd(v){return v===0?this:new h(this.seq1Range.deltaEnd(v),this.seq2Range.deltaEnd(v))}intersect(v){let A=this.seq1Range.intersect(v.seq1Range),F=this.seq2Range.intersect(v.seq2Range);if(!(!A||!F))return new h(A,F)}getStarts(){return new Sy(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new Sy(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}},Sy=class h{constructor(v,A){this.offset1=v,this.offset2=A}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(v){return v===0?this:new h(this.offset1+v,this.offset2+v)}equals(v){return this.offset1===v.offset1&&this.offset2===v.offset2}};Sy.zero=new Sy(0,0);Sy.max=new Sy(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);var uA=class{isValid(){return!0}};uA.instance=new uA;var ane=class{constructor(v){if(this.timeout=v,this.startTime=Date.now(),this.valid=!0,v<=0)throw new Dg("timeout must be positive")}isValid(){if(!(Date.now()-this.startTime0&&Un>0&&Te.get(Ar-1,Un-1)===3&&(vn+=Be.get(Ar-1,Un-1)),vn+=X?X(Ar,Un):1):vn=-1;let Qr=Math.max(Qi,Jn,vn);if(Qr===vn){let ri=Ar>0&&Un>0?Be.get(Ar-1,Un-1):0;Be.set(Ar,Un,ri+1),Te.set(Ar,Un,3)}else Qr===Qi?(Be.set(Ar,Un,0),Te.set(Ar,Un,1)):Qr===Jn&&(Be.set(Ar,Un,0),Te.set(Ar,Un,2));_e.set(Ar,Un,Qr)}let nt=[],De=v.length,Ke=A.length;function Gt(Ar,Un){(Ar+1!==De||Un+1!==Ke)&&nt.push(new hm(new nc(Ar+1,De),new nc(Un+1,Ke))),De=Ar,Ke=Un}let Zt=v.length-1,ir=A.length-1;for(;Zt>=0&&ir>=0;)Te.get(Zt,ir)===3?(Gt(Zt,ir),Zt--,ir--):Te.get(Zt,ir)===1?Zt--:ir--;return Gt(-1,-1),nt.reverse(),new cA(nt,!1)}};var S8=class{compute(v,A,F=uA.instance){if(v.length===0||A.length===0)return cA.trivial(v,A);let X=v,_e=A;function Te(Un,Qi){for(;UnX.length||to>_e.length)continue;let Ga=Te(ri,to);nt.set(Ke,Ga);let wr=ri===vn?De.get(Ke+1):De.get(Ke-1);if(De.set(Ke,Ga!==ri?new lne(wr,ri,to,Ga-ri):wr),nt.get(Ke)===X.length&&nt.get(Ke)-Ke===_e.length)break e}}let Gt=De.get(Ke),Zt=[],ir=X.length,Ar=_e.length;for(;;){let Un=Gt?Gt.x+Gt.length:0,Qi=Gt?Gt.y+Gt.length:0;if((Un!==ir||Qi!==Ar)&&Zt.push(new hm(new nc(Un,ir),new nc(Qi,Ar))),!Gt)break;ir=Gt.x,Ar=Gt.y,Gt=Gt.prev}return Zt.reverse(),new cA(Zt,!1)}},lne=class{constructor(v,A,F,X){this.prev=v,this.x=A,this.y=F,this.length=X}},C0e=class{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(v){return v<0?(v=-v-1,this.negativeArr[v]):this.positiveArr[v]}set(v,A){if(v<0){if(v=-v-1,v>=this.negativeArr.length){let F=this.negativeArr;this.negativeArr=new Int32Array(F.length*2),this.negativeArr.set(F)}this.negativeArr[v]=A}else{if(v>=this.positiveArr.length){let F=this.positiveArr;this.positiveArr=new Int32Array(F.length*2),this.positiveArr.set(F)}this.positiveArr[v]=A}}},N0e=class{constructor(){this.positiveArr=[],this.negativeArr=[]}get(v){return v<0?(v=-v-1,this.negativeArr[v]):this.positiveArr[v]}set(v,A){v<0?(v=-v-1,this.negativeArr[v]=A):this.positiveArr[v]=A}};var qD=class{constructor(v,A,F){this.lines=v,this.considerWhitespaceChanges=F,this.elements=[],this.firstCharOffsetByLine=[],this.additionalOffsetByLine=[];let X=!1;A.start>0&&A.endExclusive>=v.length&&(A=new nc(A.start-1,A.endExclusive),X=!0),this.lineRange=A,this.firstCharOffsetByLine[0]=0;for(let _e=this.lineRange.start;_eString.fromCharCode(A)).join("")}getElement(v){return this.elements[v]}get length(){return this.elements.length}getBoundaryScore(v){let A=ZFe(v>0?this.elements[v-1]:-1),F=ZFe(vF<=v);return new vf(this.lineRange.start+A+1,v-this.firstCharOffsetByLine[A]+this.additionalOffsetByLine[A]+1)}translateRange(v){return tc.fromPositions(this.translateOffset(v.start),this.translateOffset(v.endExclusive))}findWordContaining(v){if(v<0||v>=this.elements.length||!P0e(this.elements[v]))return;let A=v;for(;A>0&&P0e(this.elements[A-1]);)A--;let F=v;for(;FTe<=v.start))!==null&&A!==void 0?A:0,_e=(F=XFe(this.firstCharOffsetByLine,Te=>v.endExclusive<=Te))!==null&&F!==void 0?F:this.elements.length;return new nc(X,_e)}};function P0e(h){return h>=97&&h<=122||h>=65&&h<=90||h>=48&&h<=57}var abt={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function QFe(h){return abt[h]}function ZFe(h){return h===10?8:h===13?7:qB(h)?6:h>=97&&h<=122?0:h>=65&&h<=90?1:h>=48&&h<=57?2:h===-1?3:h===44||h===59?5:4}function tWe(h,v,A,F,X,_e){let{moves:Te,excludedChanges:Be}=lbt(h,v,A,_e);if(!_e.isValid())return[];let nt=h.filter(Ke=>!Be.has(Ke)),De=cbt(nt,F,X,v,A,_e);return P5e(Te,De),Te=ubt(Te),Te=Te.filter(Ke=>{let Gt=Ke.original.toOffsetRange().slice(v).map(ir=>ir.trim());return Gt.join(` +`).length>=15&&sbt(Gt,ir=>ir.length>=2)>=2}),Te=dbt(h,Te),Te}function sbt(h,v){let A=0;for(let F of h)v(F)&&A++;return A}function lbt(h,v,A,F){let X=[],_e=h.filter(nt=>nt.modified.isEmpty&&nt.original.length>=3).map(nt=>new E8(nt.original,v,nt)),Te=new Set(h.filter(nt=>nt.original.isEmpty&&nt.modified.length>=3).map(nt=>new E8(nt.modified,A,nt))),Be=new Set;for(let nt of _e){let De=-1,Ke;for(let Gt of Te){let Zt=nt.computeSimilarity(Gt);Zt>De&&(De=Zt,Ke=Gt)}if(De>.9&&Ke&&(Te.delete(Ke),X.push(new HD(nt.range,Ke.range)),Be.add(nt.source),Be.add(Ke.source)),!F.isValid())return{moves:X,excludedChanges:Be}}return{moves:X,excludedChanges:Be}}function cbt(h,v,A,F,X,_e){let Te=[],Be=new $te;for(let Zt of h)for(let ir=Zt.original.startLineNumber;irZt.modified.startLineNumber,zB));for(let Zt of h){let ir=[];for(let Ar=Zt.modified.startLineNumber;Ar{for(let ri of ir)if(ri.originalLineRange.endLineNumberExclusive+1===vn.endLineNumberExclusive&&ri.modifiedLineRange.endLineNumberExclusive+1===Qi.endLineNumberExclusive){ri.originalLineRange=new Pc(ri.originalLineRange.startLineNumber,vn.endLineNumberExclusive),ri.modifiedLineRange=new Pc(ri.modifiedLineRange.startLineNumber,Qi.endLineNumberExclusive),Jn.push(ri);return}let Qr={modifiedLineRange:Qi,originalLineRange:vn};nt.push(Qr),Jn.push(Qr)}),ir=Jn}if(!_e.isValid())return[]}nt.sort(M5e(WB(Zt=>Zt.modifiedLineRange.length,zB)));let De=new xM,Ke=new xM;for(let Zt of nt){let ir=Zt.modifiedLineRange.startLineNumber-Zt.originalLineRange.startLineNumber,Ar=De.subtractFrom(Zt.modifiedLineRange),Un=Ke.subtractFrom(Zt.originalLineRange).getWithDelta(ir),Qi=Ar.getIntersection(Un);for(let Jn of Qi.ranges){if(Jn.length<3)continue;let vn=Jn,Qr=Jn.delta(-ir);Te.push(new HD(Qr,vn)),De.addRange(vn),Ke.addRange(Qr)}}Te.sort(WB(Zt=>Zt.original.startLineNumber,zB));let Gt=new g8(h);for(let Zt=0;ZtGa.original.startLineNumber<=ir.original.startLineNumber),Un=Ix(h,Ga=>Ga.modified.startLineNumber<=ir.modified.startLineNumber),Qi=Math.max(ir.original.startLineNumber-Ar.original.startLineNumber,ir.modified.startLineNumber-Un.modified.startLineNumber),Jn=Gt.findLastMonotonous(Ga=>Ga.original.startLineNumberGa.modified.startLineNumberF.length||wr>X.length||De.contains(wr)||Ke.contains(Ga)||!eWe(F[Ga-1],X[wr-1],_e))break}ri>0&&(Ke.addRange(new Pc(ir.original.startLineNumber-ri,ir.original.startLineNumber)),De.addRange(new Pc(ir.modified.startLineNumber-ri,ir.modified.startLineNumber)));let to;for(to=0;toF.length||wr>X.length||De.contains(wr)||Ke.contains(Ga)||!eWe(F[Ga-1],X[wr-1],_e))break}to>0&&(Ke.addRange(new Pc(ir.original.endLineNumberExclusive,ir.original.endLineNumberExclusive+to)),De.addRange(new Pc(ir.modified.endLineNumberExclusive,ir.modified.endLineNumberExclusive+to))),(ri>0||to>0)&&(Te[Zt]=new HD(new Pc(ir.original.startLineNumber-ri,ir.original.endLineNumberExclusive+to),new Pc(ir.modified.startLineNumber-ri,ir.modified.endLineNumberExclusive+to)))}return Te}function eWe(h,v,A){if(h.trim()===v.trim())return!0;if(h.length>300&&v.length>300)return!1;let X=new S8().compute(new qD([h],new nc(0,1),!1),new qD([v],new nc(0,1),!1),A),_e=0,Te=hm.invert(X.diffs,h.length);for(let Ke of Te)Ke.seq1Range.forEach(Gt=>{qB(h.charCodeAt(Gt))||_e++});function Be(Ke){let Gt=0;for(let Zt=0;Ztv.length?h:v);return _e/nt>.6&&nt>10}function ubt(h){if(h.length===0)return h;h.sort(WB(A=>A.original.startLineNumber,zB));let v=[h[0]];for(let A=1;A=0&&Te>=0&&_e+Te<=2){v[v.length-1]=F.join(X);continue}v.push(X)}return v}function dbt(h,v){let A=new g8(h);return v=v.filter(F=>{let X=A.findLastMonotonous(Be=>Be.original.startLineNumberBe.modified.startLineNumber0&&(Be=Be.delta(De))}X.push(Be)}return F.length>0&&X.push(F[F.length-1]),X}function pbt(h,v,A){if(!h.getBoundaryScore||!v.getBoundaryScore)return A;for(let F=0;F0?A[F-1]:void 0,_e=A[F],Te=F+1=F.start&&h.seq2Range.start-Te>=X.start&&A.isStronglyEqual(h.seq2Range.start-Te,h.seq2Range.endExclusive-Te)&&Te<100;)Te++;Te--;let Be=0;for(;h.seq1Range.start+BeDe&&(De=Ar,nt=Ke)}return h.delta(nt)}function iWe(h,v,A){let F=[];for(let X of A){let _e=F[F.length-1];if(!_e){F.push(X);continue}X.seq1Range.start-_e.seq1Range.endExclusive<=2||X.seq2Range.start-_e.seq2Range.endExclusive<=2?F[F.length-1]=new hm(_e.seq1Range.join(X.seq1Range),_e.seq2Range.join(X.seq2Range)):F.push(X)}return F}function oWe(h,v,A){let F=hm.invert(A,h.length),X=[],_e=new Sy(0,0);function Te(nt,De){if(nt.offset1<_e.offset1||nt.offset2<_e.offset2)return;let Ke=h.findWordContaining(nt.offset1),Gt=v.findWordContaining(nt.offset2);if(!Ke||!Gt)return;let Zt=new hm(Ke,Gt),ir=Zt.intersect(De),Ar=ir.seq1Range.length,Un=ir.seq2Range.length;for(;F.length>0;){let Qi=F[0];if(!(Qi.seq1Range.intersects(Zt.seq1Range)||Qi.seq2Range.intersects(Zt.seq2Range)))break;let vn=h.findWordContaining(Qi.seq1Range.start),Qr=v.findWordContaining(Qi.seq2Range.start),ri=new hm(vn,Qr),to=ri.intersect(Qi);if(Ar+=to.seq1Range.length,Un+=to.seq2Range.length,Zt=Zt.join(ri),Zt.seq1Range.endExclusive>=Qi.seq1Range.endExclusive)F.shift();else break}Ar+Un<(Zt.seq1Range.length+Zt.seq2Range.length)*2/3&&X.push(Zt),_e=Zt.getEndExclusives()}for(;F.length>0;){let nt=F.shift();nt.seq1Range.isEmpty||(Te(nt.getStarts(),nt),Te(nt.getEndExclusives().delta(-1),nt))}return fbt(A,X)}function fbt(h,v){let A=[];for(;h.length>0||v.length>0;){let F=h[0],X=v[0],_e;F&&(!X||F.seq1Range.start0&&A[A.length-1].seq1Range.endExclusive>=_e.seq1Range.start?A[A.length-1]=A[A.length-1].join(_e):A.push(_e)}return A}function aWe(h,v,A){let F=A;if(F.length===0)return F;let X=0,_e;do{_e=!1;let Te=[F[0]];for(let Be=1;Be5||ir.seq1Range.length+ir.seq2Range.length>5)},nt=F[Be],De=Te[Te.length-1];Ke(De,nt)?(_e=!0,Te[Te.length-1]=Te[Te.length-1].join(nt)):Te.push(nt)}F=Te}while(X++<10&&_e);return F}function sWe(h,v,A){let F=A;if(F.length===0)return F;let X=0,_e;do{_e=!1;let Be=[F[0]];for(let nt=1;nt5||Un.length>500)return!1;let Jn=h.getText(Un).trim();if(Jn.length>20||Jn.split(/\r\n|\r|\n/).length>1)return!1;let vn=h.countLinesIn(ir.seq1Range),Qr=ir.seq1Range.length,ri=v.countLinesIn(ir.seq2Range),to=ir.seq2Range.length,Ga=h.countLinesIn(Ar.seq1Range),wr=Ar.seq1Range.length,Ma=v.countLinesIn(Ar.seq2Range),Kc=Ar.seq2Range.length,au=2*40+50;function tr(Bi){return Math.min(Bi,au)}return Math.pow(Math.pow(tr(vn*40+Qr),1.5)+Math.pow(tr(ri*40+to),1.5),1.5)+Math.pow(Math.pow(tr(Ga*40+wr),1.5)+Math.pow(tr(Ma*40+Kc),1.5),1.5)>(au**1.5)**1.5*1.3},De=F[nt],Ke=Be[Be.length-1];Gt(Ke,De)?(_e=!0,Be[Be.length-1]=Be[Be.length-1].join(De)):Be.push(De)}F=Be}while(X++<10&&_e);let Te=[];return N5e(F,(Be,nt,De)=>{let Ke=nt;function Gt(Jn){return Jn.length>0&&Jn.trim().length<=3&&nt.seq1Range.length+nt.seq2Range.length>100}let Zt=h.extendToFullLines(nt.seq1Range),ir=h.getText(new nc(Zt.start,nt.seq1Range.start));Gt(ir)&&(Ke=Ke.deltaStart(-ir.length));let Ar=h.getText(new nc(nt.seq1Range.endExclusive,Zt.endExclusive));Gt(Ar)&&(Ke=Ke.deltaEnd(Ar.length));let Un=hm.fromOffsetPairs(Be?Be.getEndExclusives():Sy.zero,De?De.getStarts():Sy.max),Qi=Ke.intersect(Un);Te.length>0&&Qi.getStarts().equals(Te[Te.length-1].getEndExclusives())?Te[Te.length-1]=Te[Te.length-1].join(Qi):Te.push(Qi)}),Te}var JB=class{constructor(v,A){this.trimmedHash=v,this.lines=A}getElement(v){return this.trimmedHash[v]}get length(){return this.trimmedHash.length}getBoundaryScore(v){let A=v===0?0:lWe(this.lines[v-1]),F=v===this.lines.length?0:lWe(this.lines[v]);return 1e3-(A+F)}getText(v){return this.lines.slice(v.start,v.endExclusive).join(` +`)}isStronglyEqual(v,A){return this.lines[v]===this.lines[A]}};function lWe(h){let v=0;for(;vto===Ga))return new UD([],[],!1);if(v.length===1&&v[0].length===0||A.length===1&&A[0].length===0)return new UD([new xx(new Pc(1,v.length+1),new Pc(1,A.length+1),[new lA(new tc(1,1,v.length,v[v.length-1].length+1),new tc(1,1,A.length,A[A.length-1].length+1))])],[],!1);let X=F.maxComputationTimeMs===0?uA.instance:new ane(F.maxComputationTimeMs),_e=!F.ignoreTrimWhitespace,Te=new Map;function Be(to){let Ga=Te.get(to);return Ga===void 0&&(Ga=Te.size,Te.set(to,Ga)),Ga}let nt=v.map(to=>Be(to.trim())),De=A.map(to=>Be(to.trim())),Ke=new JB(nt,v),Gt=new JB(De,A),Zt=Ke.length+Gt.length<1700?this.dynamicProgrammingDiffing.compute(Ke,Gt,X,(to,Ga)=>v[to]===A[Ga]?A[Ga].length===0?.1:1+Math.log(1+A[Ga].length):.99):this.myersDiffingAlgorithm.compute(Ke,Gt,X),ir=Zt.diffs,Ar=Zt.hitTimeout;ir=M0e(Ke,Gt,ir),ir=aWe(Ke,Gt,ir);let Un=[],Qi=to=>{if(_e)for(let Ga=0;Gato.seq1Range.start-Jn===to.seq2Range.start-vn);let Ga=to.seq1Range.start-Jn;Qi(Ga),Jn=to.seq1Range.endExclusive,vn=to.seq2Range.endExclusive;let wr=this.refineDiff(v,A,to,X,_e);wr.hitTimeout&&(Ar=!0);for(let Ma of wr.mappings)Un.push(Ma)}Qi(v.length-Jn);let Qr=cWe(Un,v,A),ri=[];return F.computeMoves&&(ri=this.computeMoves(Qr,v,A,nt,De,X,_e)),AM(()=>{function to(wr,Ma){if(wr.lineNumber<1||wr.lineNumber>Ma.length)return!1;let Kc=Ma[wr.lineNumber-1];return!(wr.column<1||wr.column>Kc.length+1)}function Ga(wr,Ma){return!(wr.startLineNumber<1||wr.startLineNumber>Ma.length+1||wr.endLineNumberExclusive<1||wr.endLineNumberExclusive>Ma.length+1)}for(let wr of Qr){if(!wr.innerChanges)return!1;for(let Ma of wr.innerChanges)if(!(to(Ma.modifiedRange.getStartPosition(),A)&&to(Ma.modifiedRange.getEndPosition(),A)&&to(Ma.originalRange.getStartPosition(),v)&&to(Ma.originalRange.getEndPosition(),v)))return!1;if(!Ga(wr.modified,A)||!Ga(wr.original,v))return!1}return!0}),new UD(Qr,ri,Ar)}computeMoves(v,A,F,X,_e,Te,Be){return tWe(v,A,F,X,_e,Te).map(Ke=>{let Gt=this.refineDiff(A,F,new hm(Ke.original.toOffsetRange(),Ke.modified.toOffsetRange()),Te,Be),Zt=cWe(Gt.mappings,A,F,!0);return new tne(Ke,Zt)})}refineDiff(v,A,F,X,_e){let Te=new qD(v,F.seq1Range,_e),Be=new qD(A,F.seq2Range,_e),nt=Te.length+Be.length<500?this.dynamicProgrammingDiffing.compute(Te,Be,X):this.myersDiffingAlgorithm.compute(Te,Be,X),De=nt.diffs;return De=M0e(Te,Be,De),De=oWe(Te,Be,De),De=iWe(Te,Be,De),De=sWe(Te,Be,De),{mappings:De.map(Gt=>new lA(Te.translateRange(Gt.seq1Range),Be.translateRange(Gt.seq2Range))),hitTimeout:nt.hitTimeout}}};function cWe(h,v,A,F=!1){let X=[];for(let _e of D5e(h.map(Te=>mbt(Te,v,A)),(Te,Be)=>Te.original.overlapOrTouch(Be.original)||Te.modified.overlapOrTouch(Be.modified))){let Te=_e[0],Be=_e[_e.length-1];X.push(new xx(Te.original.join(Be.original),Te.modified.join(Be.modified),_e.map(nt=>nt.innerChanges[0])))}return AM(()=>!F&&X.length>0&&(X[0].modified.startLineNumber!==X[0].original.startLineNumber||A.length-X[X.length-1].modified.endLineNumberExclusive!==v.length-X[X.length-1].original.endLineNumberExclusive)?!1:UB(X,(_e,Te)=>Te.original.startLineNumber-_e.original.endLineNumberExclusive===Te.modified.startLineNumber-_e.modified.endLineNumberExclusive&&_e.original.endLineNumberExclusive=A[h.modifiedRange.startLineNumber-1].length&&h.originalRange.startColumn-1>=v[h.originalRange.startLineNumber-1].length&&h.originalRange.startLineNumber<=h.originalRange.endLineNumber+X&&h.modifiedRange.startLineNumber<=h.modifiedRange.endLineNumber+X&&(F=1);let _e=new Pc(h.originalRange.startLineNumber+F,h.originalRange.endLineNumber+1+X),Te=new Pc(h.modifiedRange.startLineNumber+F,h.modifiedRange.endLineNumber+1+X);return new xx(_e,Te,[h])}var L0e={getLegacy:()=>new ine,getDefault:()=>new cne};function JD(h,v){let A=Math.pow(10,v);return Math.round(h*A)/A}var gm=class{constructor(v,A,F,X=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,v))|0,this.g=Math.min(255,Math.max(0,A))|0,this.b=Math.min(255,Math.max(0,F))|0,this.a=JD(Math.max(Math.min(1,X),0),3)}static equals(v,A){return v.r===A.r&&v.g===A.g&&v.b===A.b&&v.a===A.a}},dA=class h{constructor(v,A,F,X){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,v),0)|0,this.s=JD(Math.max(Math.min(1,A),0),3),this.l=JD(Math.max(Math.min(1,F),0),3),this.a=JD(Math.max(Math.min(1,X),0),3)}static equals(v,A){return v.h===A.h&&v.s===A.s&&v.l===A.l&&v.a===A.a}static fromRGBA(v){let A=v.r/255,F=v.g/255,X=v.b/255,_e=v.a,Te=Math.max(A,F,X),Be=Math.min(A,F,X),nt=0,De=0,Ke=(Be+Te)/2,Gt=Te-Be;if(Gt>0){switch(De=Math.min(Ke<=.5?Gt/(2*Ke):Gt/(2-2*Ke),1),Te){case A:nt=(F-X)/Gt+(F1&&(F-=1),F<1/6?v+(A-v)*6*F:F<1/2?A:F<2/3?v+(A-v)*(2/3-F)*6:v}static toRGBA(v){let A=v.h/360,{s:F,l:X,a:_e}=v,Te,Be,nt;if(F===0)Te=Be=nt=X;else{let De=X<.5?X*(1+F):X+F-X*F,Ke=2*X-De;Te=h._hue2rgb(Ke,De,A+1/3),Be=h._hue2rgb(Ke,De,A),nt=h._hue2rgb(Ke,De,A-1/3)}return new gm(Math.round(Te*255),Math.round(Be*255),Math.round(nt*255),_e)}},T8=class h{constructor(v,A,F,X){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,v),0)|0,this.s=JD(Math.max(Math.min(1,A),0),3),this.v=JD(Math.max(Math.min(1,F),0),3),this.a=JD(Math.max(Math.min(1,X),0),3)}static equals(v,A){return v.h===A.h&&v.s===A.s&&v.v===A.v&&v.a===A.a}static fromRGBA(v){let A=v.r/255,F=v.g/255,X=v.b/255,_e=Math.max(A,F,X),Te=Math.min(A,F,X),Be=_e-Te,nt=_e===0?0:Be/_e,De;return Be===0?De=0:_e===A?De=((F-X)/Be%6+6)%6:_e===F?De=(X-A)/Be+2:De=(A-F)/Be+4,new h(Math.round(De*60),nt,_e,v.a)}static toRGBA(v){let{h:A,s:F,v:X,a:_e}=v,Te=X*F,Be=Te*(1-Math.abs(A/60%2-1)),nt=X-Te,[De,Ke,Gt]=[0,0,0];return A<60?(De=Te,Ke=Be):A<120?(De=Be,Ke=Te):A<180?(Ke=Te,Gt=Be):A<240?(Ke=Be,Gt=Te):A<300?(De=Be,Gt=Te):A<=360&&(De=Te,Gt=Be),De=Math.round((De+nt)*255),Ke=Math.round((Ke+nt)*255),Gt=Math.round((Gt+nt)*255),new gm(De,Ke,Gt,_e)}},yf=class h{static fromHex(v){return h.Format.CSS.parseHex(v)||h.red}static equals(v,A){return!v&&!A?!0:!v||!A?!1:v.equals(A)}get hsla(){return this._hsla?this._hsla:dA.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:T8.fromRGBA(this.rgba)}constructor(v){if(v)if(v instanceof gm)this.rgba=v;else if(v instanceof dA)this._hsla=v,this.rgba=dA.toRGBA(v);else if(v instanceof T8)this._hsva=v,this.rgba=T8.toRGBA(v);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(v){return!!v&&gm.equals(this.rgba,v.rgba)&&dA.equals(this.hsla,v.hsla)&&T8.equals(this.hsva,v.hsva)}getRelativeLuminance(){let v=h._relativeLuminanceForComponent(this.rgba.r),A=h._relativeLuminanceForComponent(this.rgba.g),F=h._relativeLuminanceForComponent(this.rgba.b),X=.2126*v+.7152*A+.0722*F;return JD(X,4)}static _relativeLuminanceForComponent(v){let A=v/255;return A<=.03928?A/12.92:Math.pow((A+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(v){let A=this.getRelativeLuminance(),F=v.getRelativeLuminance();return A>F}isDarkerThan(v){let A=this.getRelativeLuminance(),F=v.getRelativeLuminance();return A0)for(let X of F){let _e=X.filter(De=>De!==void 0),Te=_e[1],Be=_e[2];if(!Be)continue;let nt;if(Te==="rgb"){let De=/^\(\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;nt=uWe(KB(h,X),XB(Be,De),!1)}else if(Te==="rgba"){let De=/^\(\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;nt=uWe(KB(h,X),XB(Be,De),!0)}else if(Te==="hsl"){let De=/^\(\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;nt=dWe(KB(h,X),XB(Be,De),!1)}else if(Te==="hsla"){let De=/^\(\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;nt=dWe(KB(h,X),XB(Be,De),!0)}else Te==="#"&&(nt=_bt(KB(h,X),Te+Be));nt&&v.push(nt)}return v}function fWe(h){return!h||typeof h.getValue!="function"||typeof h.positionAt!="function"?[]:hbt(h)}var mWe=new RegExp("\\bMARK:\\s*(.*)$","d"),gbt=/^-+|-+$/g;function _We(h,v){var A;let F=[];if(v.findRegionSectionHeaders&&(!((A=v.foldingRules)===null||A===void 0)&&A.markers)){let X=vbt(h,v);F=F.concat(X)}if(v.findMarkSectionHeaders){let X=ybt(h);F=F.concat(X)}return F}function vbt(h,v){let A=[],F=h.getLineCount();for(let X=1;X<=F;X++){let _e=h.getLineContent(X),Te=_e.match(v.foldingRules.markers.start);if(Te){let Be={startLineNumber:X,startColumn:Te[0].length+1,endLineNumber:X,endColumn:_e.length+1};if(Be.endColumn>Be.startColumn){let nt={range:Be,...hWe(_e.substring(Te[0].length)),shouldBeInComments:!1};(nt.text||nt.hasSeparatorLine)&&A.push(nt)}}}return A}function ybt(h){let v=[],A=h.getLineCount();for(let F=1;F<=A;F++){let X=h.getLineContent(F);bbt(X,F,v)}return v}function bbt(h,v,A){mWe.lastIndex=0;let F=mWe.exec(h);if(F){let X=F.indices[1][0]+1,_e=F.indices[1][1]+1,Te={startLineNumber:v,startColumn:X,endLineNumber:v,endColumn:_e};if(Te.endColumn>Te.startColumn){let Be={range:Te,...hWe(F[1]),shouldBeInComments:!0};(Be.text||Be.hasSeparatorLine)&&A.push(Be)}}}function hWe(h){h=h.trim();let v=h.startsWith("-");return h=h.replace(gbt,""),{text:h,hasSeparatorLine:v}}var w0e=class extends zte{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(v){let A=[];for(let F=0;Fthis._lines.length)A=this._lines.length,F=this._lines[A-1].length+1,X=!0;else{let _e=this._lines[A-1].length+1;F<1?(F=1,X=!0):F>_e&&(F=_e,X=!0)}return X?{lineNumber:A,column:F}:v}},A8=class h{constructor(v,A){this._host=v,this._models=Object.create(null),this._foreignModuleFactory=A,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(v){return this._models[v]}_getModels(){let v=[];return Object.keys(this._models).forEach(A=>v.push(this._models[A])),v}acceptNewModel(v){this._models[v.url]=new w0e(VD.parse(v.url),v.lines,v.EOL,v.versionId)}acceptModelChanged(v,A){if(!this._models[v])return;this._models[v].onEvents(A)}acceptRemovedModel(v){this._models[v]&&delete this._models[v]}async computeUnicodeHighlights(v,A,F){let X=this._getModel(v);return X?Zte.computeUnicodeHighlights(X,A,F):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async findSectionHeaders(v,A){let F=this._getModel(v);return F?_We(F,A):[]}async computeDiff(v,A,F,X){let _e=this._getModel(v),Te=this._getModel(A);return!_e||!Te?null:h.computeDiff(_e,Te,F,X)}static computeDiff(v,A,F,X){let _e=X==="advanced"?L0e.getDefault():L0e.getLegacy(),Te=v.getLinesContent(),Be=A.getLinesContent(),nt=_e.computeDiff(Te,Be,F),De=nt.changes.length>0?!1:this._modelsAreIdentical(v,A);function Ke(Gt){return Gt.map(Zt=>{var ir;return[Zt.original.startLineNumber,Zt.original.endLineNumberExclusive,Zt.modified.startLineNumber,Zt.modified.endLineNumberExclusive,(ir=Zt.innerChanges)===null||ir===void 0?void 0:ir.map(Ar=>[Ar.originalRange.startLineNumber,Ar.originalRange.startColumn,Ar.originalRange.endLineNumber,Ar.originalRange.endColumn,Ar.modifiedRange.startLineNumber,Ar.modifiedRange.startColumn,Ar.modifiedRange.endLineNumber,Ar.modifiedRange.endColumn])]})}return{identical:De,quitEarly:nt.hitTimeout,changes:Ke(nt.changes),moves:nt.moves.map(Gt=>[Gt.lineRangeMapping.original.startLineNumber,Gt.lineRangeMapping.original.endLineNumberExclusive,Gt.lineRangeMapping.modified.startLineNumber,Gt.lineRangeMapping.modified.endLineNumberExclusive,Ke(Gt.changes)])}}static _modelsAreIdentical(v,A){let F=v.getLineCount(),X=A.getLineCount();if(F!==X)return!1;for(let _e=1;_e<=F;_e++){let Te=v.getLineContent(_e),Be=A.getLineContent(_e);if(Te!==Be)return!1}return!0}async computeMoreMinimalEdits(v,A,F){let X=this._getModel(v);if(!X)return A;let _e=[],Te;A=A.slice(0).sort((nt,De)=>{if(nt.range&&De.range)return tc.compareRangesUsingStarts(nt.range,De.range);let Ke=nt.range?0:1,Gt=De.range?0:1;return Ke-Gt});let Be=0;for(let nt=1;nth._diffLimit){_e.push({range:nt,text:De});continue}let Zt=v5e(Gt,De,F),ir=X.offsetAt(tc.lift(nt).getStartPosition());for(let Ar of Zt){let Un=X.positionAt(ir+Ar.originalStart),Qi=X.positionAt(ir+Ar.originalStart+Ar.originalLength),Jn={text:De.substr(Ar.modifiedStart,Ar.modifiedLength),range:{startLineNumber:Un.lineNumber,startColumn:Un.column,endLineNumber:Qi.lineNumber,endColumn:Qi.column}};X.getValueInRange(Jn.range)!==Jn.text&&_e.push(Jn)}}return typeof Te=="number"&&_e.push({eol:Te,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),_e}async computeLinks(v){let A=this._getModel(v);return A?k5e(A):null}async computeDefaultDocumentColors(v){let A=this._getModel(v);return A?fWe(A):null}async textualSuggest(v,A,F,X){let _e=new c8,Te=new RegExp(F,X),Be=new Set;e:for(let nt of v){let De=this._getModel(nt);if(De){for(let Ke of De.words(Te))if(!(Ke===A||!isNaN(Number(Ke)))&&(Be.add(Ke),Be.size>h._suggestionsLimit))break e}}return{words:Array.from(Be),duration:_e.elapsed()}}async computeWordRanges(v,A,F,X){let _e=this._getModel(v);if(!_e)return Object.create(null);let Te=new RegExp(F,X),Be=Object.create(null);for(let nt=A.startLineNumber;ntthis._host.fhr(Be,nt)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(Te,A),Promise.resolve(MB(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(v,A){if(!this._foreignModule||typeof this._foreignModule[v]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+v));try{return Promise.resolve(this._foreignModule[v].apply(this._foreignModule,A))}catch(F){return Promise.reject(F)}}};A8._diffLimit=1e5;A8._suggestionsLimit=1e4;typeof importScripts=="function"&&(globalThis.monaco=GFe());var O0e=!1;function F0e(h){if(O0e)return;O0e=!0;let v=new Pte(A=>{globalThis.postMessage(A)},A=>new A8(A,h));globalThis.onmessage=A=>{v.onmessage(A.data)}}globalThis.onmessage=h=>{O0e||F0e(null)};var Ebt=Object.defineProperty,Sbt=(h,v)=>{for(var A in v)Ebt(h,A,{get:v[A],enumerable:!0})},vWe={};Sbt(vWe,{EndOfLineState:()=>Ibt,IndentStyle:()=>Rbt,ScriptKind:()=>RM,ScriptTarget:()=>Dbt,TokenClass:()=>Cbt,createClassifier:()=>Tbt,createLanguageService:()=>xWe,displayPartsToString:()=>Abt,flattenDiagnosticMessageText:()=>xbt,typescript:()=>RWe});var QE=void 0,une={exports:{}},ZE=(()=>{var h=Object.defineProperty,v=Object.getOwnPropertyNames,A=(e,t)=>function(){return e&&(t=(0,e[v(e)[0]])(e=0)),t},F=(e,t)=>function(){return t||(0,e[v(e)[0]])((t={exports:{}}).exports,t),t.exports},X=(e,t)=>{for(var r in t)h(e,r,{get:t[r],enumerable:!0})},_e,Te,Be,nt=A({"src/compiler/corePublic.ts"(){"use strict";_e="5.4",Te="5.4.5",Be=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(Be||{})}});function De(e){return e?e.length:0}function Ke(e,t){if(e)for(let r=0;r=0;r--){let i=t(e[r],r);if(i)return i}}function Zt(e,t){if(e!==void 0)for(let r=0;r=0;i--){let o=e[i];if(t(o,i))return o}}function ri(e,t,r){if(e===void 0)return-1;for(let i=r??0;i=0;i--)if(t(e[i],i))return i;return-1}function Ga(e,t){for(let r=0;rr(i,t[o]))}function Kc(e,t,r){for(let i=r||0;i{let s=t(o,i);if(s!==void 0){let[l,u]=s;l!==void 0&&u!==void 0&&r.set(l,u)}}),r}function mA(e,t,r){if(e.has(t))return e.get(t);let i=r();return e.set(t,i),i}function Av(e,t){return e.has(t)?!1:(e.add(t),!0)}function*pne(e){yield e}function YB(e,t,r){let i;if(e){i=[];let o=e.length,s,l,u=0,p=0;for(;u{let[s,l]=t(o,i);r.set(s,l)}),r}function Et(e,t){if(e)if(t){for(let r of e)if(t(r))return!0}else return e.length>0;return!1}function $B(e,t,r){let i;for(let o=0;oe[l])}function NWe(e,t){let r=[];for(let i of e)bf(r,i,t);return r}function h1(e,t,r){return e.length===0?[]:e.length===1?e.slice():r?CWe(e,t,r):NWe(e,t)}function PWe(e,t){if(e.length===0)return et;let r=e[0],i=[r];for(let o=1;o0&&(o&=-2),o&2&&i(s,p)>0&&(o&=-3),s=p}return o}function Jm(e,t,r=Cv){if(!e||!t)return e===t;if(e.length!==t.length)return!1;for(let i=0;i0&&C.assertGreaterThanOrEqual(r(t[s],t[s-1]),0);t:for(let l=o;ol&&C.assertGreaterThanOrEqual(r(e[o],e[o-1]),0),r(t[s],e[o])){case-1:i.push(t[s]);continue e;case 0:continue e;case 1:continue t}}return i}function In(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function Dx(e,t){return e===void 0?t:t===void 0?e:Do(e)?Do(t)?xo(e,t):In(e,t):Do(t)?In(t,e):[e,t]}function _ne(e,t){return t<0?e.length+t:t}function Jr(e,t,r,i){if(t===void 0||t.length===0)return e;if(e===void 0)return t.slice(r,i);r=r===void 0?0:_ne(t,r),i=i===void 0?t.length:_ne(t,i);for(let o=r;or(e[i],e[o])||tl(i,o))}function nS(e,t){return e.length===0?e:e.slice().sort(t)}function*ZB(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function Iv(e,t){let r=DM(e);return j0e(e,r,t),r.map(i=>e[i])}function eG(e,t,r,i){for(;r>1),p=r(e[u],u);switch(i(p,t)){case-1:s=u+1;break;case 0:return u;case 1:l=u-1;break}}return~s}function nd(e,t,r,i,o){if(e&&e.length>0){let s=e.length;if(s>0){let l=i===void 0||i<0?0:i,u=o===void 0||l+o>s-1?s-1:l+o,p;for(arguments.length<=2?(p=e[l],l++):p=r;l<=u;)p=t(p,e[l],l),l++;return p}}return r}function Rs(e,t){return xy.call(e,t)}function C8(e,t){return xy.call(e,t)?e[t]:void 0}function Jh(e){let t=[];for(let r in e)xy.call(e,r)&&t.push(r);return t}function U0e(e){let t=[];do{let r=Object.getOwnPropertyNames(e);for(let i of r)bf(t,i)}while(e=Object.getPrototypeOf(e));return t}function hA(e){let t=[];for(let r in e)xy.call(e,r)&&t.push(e[r]);return t}function hne(e,t){let r=new Array(e);for(let i=0;i100&&r>t.length>>1){let u=t.length-r;t.copyWithin(0,r),t.length=u,r=0}return l}return{enqueue:o,dequeue:s,isEmpty:i}}function aG(e,t){let r=new Map,i=0;function*o(){for(let l of r.values())Do(l)?yield*l:yield l}let s={has(l){let u=e(l);if(!r.has(u))return!1;let p=r.get(u);if(!Do(p))return t(p,l);for(let g of p)if(t(g,l))return!0;return!1},add(l){let u=e(l);if(r.has(u)){let p=r.get(u);if(Do(p))wr(p,l,t)||(p.push(l),i++);else{let g=p;t(g,l)||(r.set(u,[g,l]),i++)}}else r.set(u,l),i++;return this},delete(l){let u=e(l);if(!r.has(u))return!1;let p=r.get(u);if(Do(p)){for(let g=0;go(),[Symbol.toStringTag]:r[Symbol.toStringTag]};return s}function Do(e){return Array.isArray(e)}function gA(e){return Do(e)?e:[e]}function wo(e){return typeof e=="string"}function Rv(e){return typeof e=="number"}function ai(e,t){return e!==void 0&&t(e)?e:void 0}function aa(e,t){return e!==void 0&&t(e)?e:C.fail(`Invalid cast. The supplied value ${e} did not pass the test '${C.getFunctionName(t)}'.`)}function $a(e){}function Km(){return!1}function Dv(){return!0}function Xb(){}function el(e){return e}function yne(e){return e.toLowerCase()}function lh(e){return Pne.test(e)?e.replace(Pne,yne):e}function Ko(){throw new Error("Not implemented")}function Ed(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function ch(e){let t=new Map;return r=>{let i=`${typeof r}:${r}`,o=t.get(i);return o===void 0&&!t.has(i)&&(o=e(r),t.set(i,o)),o}}function H0e(e){let t=new WeakMap;return r=>{let i=t.get(r);return i===void 0&&!t.has(r)&&(i=e(r),t.set(r,i)),i}}function bne(e,t){return(...r)=>{let i=t.get(r);return i===void 0&&!t.has(r)&&(i=e(...r),t.set(r,i)),i}}function q0e(e,t,r,i,o){if(o){let s=[];for(let l=0;lnd(s,(u,p)=>p(u),l)}else return i?s=>i(r(t(e(s)))):r?s=>r(t(e(s))):t?s=>t(e(s)):e?s=>e(s):s=>s}function Cv(e,t){return e===t}function Yb(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function rS(e,t){return Cv(e,t)}function J0e(e,t){return e===t?0:e===void 0?-1:t===void 0?1:et(r,i)===-1?r:i)}function L8(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toUpperCase(),t=t.toUpperCase(),et?1:0)}function Ene(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toLowerCase(),t=t.toLowerCase(),et?1:0)}function ju(e,t){return J0e(e,t)}function Nx(e){return e?L8:ju}function Sne(){return _G}function Tne(e){_G!==e&&(_G=e,Mne=void 0)}function MM(e,t){return(Mne||(Mne=Y0e(_G)))(e,t)}function Ane(e,t,r,i){return e===t?0:e===void 0?-1:t===void 0?1:i(e[r],t[r])}function Ay(e,t){return tl(e?1:0,t?1:0)}function QD(e,t,r){let i=Math.max(2,Math.floor(e.length*.34)),o=Math.floor(e.length*.4)+1,s;for(let l of t){let u=r(l);if(u!==void 0&&Math.abs(u.length-e.length)<=i){if(u===e||u.length<3&&u.toLowerCase()!==e.toLowerCase())continue;let p=kWe(e,u,o-.1);if(p===void 0)continue;C.assert(pr?u-r:1),m=Math.floor(t.length>r+u?r+u:t.length);o[0]=u;let b=u;for(let I=1;Ir)return;let T=i;i=o,o=T}let l=i[t.length];return l>r?void 0:l}function Sl(e,t,r){let i=e.length-t.length;return i>=0&&(r?Yb(e.slice(i),t):e.indexOf(t,i)===i)}function Px(e,t){return Sl(e,t)?e.slice(0,e.length-t.length):e}function Ine(e,t){return Sl(e,t)?e.slice(0,e.length-t.length):void 0}function lG(e){let t=e.length;for(let r=t-1;r>0;r--){let i=e.charCodeAt(r);if(i>=48&&i<=57)do--r,i=e.charCodeAt(r);while(r>0&&i>=48&&i<=57);else if(r>4&&(i===110||i===78)){if(--r,i=e.charCodeAt(r),i!==105&&i!==73||(--r,i=e.charCodeAt(r),i!==109&&i!==77))break;--r,i=e.charCodeAt(r)}else break;if(i!==45&&i!==46)break;t=r}return t===e.length?e:e.slice(0,t)}function Mx(e,t){for(let r=0;rr===t)}function wWe(e,t){for(let r=0;ro&&(o=l.prefix.length,i=s)}return i}function uo(e,t,r){return r?Yb(e.slice(0,t.length),t):e.lastIndexOf(t,0)===0}function ZD(e,t){return uo(e,t)?e.substr(t.length):e}function dG(e,t,r=el){return uo(r(e),r(t))?e.substring(t.length):void 0}function k8({prefix:e,suffix:t},r){return r.length>=e.length+t.length&&uo(r,e)&&Sl(r,t)}function w8(e,t){return r=>e(r)&&t(r)}function Xm(...e){return(...t)=>{let r;for(let i of e)if(r=i(...t),r)return r;return r}}function O8(e){return(...t)=>!e(...t)}function K0e(e){}function yA(e){return e===void 0?void 0:[e]}function F8(e,t,r,i,o,s){s=s||$a;let l=0,u=0,p=e.length,g=t.length,m=!1;for(;l(e[e.None=0]="None",e[e.CaseSensitive=1]="CaseSensitive",e[e.CaseInsensitive=2]="CaseInsensitive",e[e.Both=3]="Both",e))(fG||{}),Nv=Array.prototype.at?(e,t)=>e?.at(t):(e,t)=>{if(e&&(t=_ne(e,t),t(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(mG||{}),Y0e=(()=>{return t;function e(r,i,o){if(r===i)return 0;if(r===void 0)return-1;if(i===void 0)return 1;let s=o(r,i);return s<0?-1:s>0?1:0}function t(r){let i=new Intl.Collator(r,{usage:"sort",sensitivity:"variant"}).compare;return(o,s)=>e(o,s,i)}})()}}),hG,C,FWe=A({"src/compiler/debug.ts"(){"use strict";ia(),ia(),hG=(e=>(e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose",e))(hG||{}),(e=>{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function r(ln){return e.currentLogLevel<=ln}e.shouldLog=r;function i(ln,tt){e.loggingHost&&r(ln)&&e.loggingHost.log(ln,tt)}function o(ln){i(3,ln)}e.log=o,(ln=>{function tt(bi){i(1,bi)}ln.error=tt;function zt(bi){i(2,bi)}ln.warn=zt;function Rn(bi){i(3,bi)}ln.log=Rn;function ui(bi){i(4,bi)}ln.trace=ui})(o=e.log||(e.log={}));let s={};function l(){return t}e.getAssertionLevel=l;function u(ln){let tt=t;if(t=ln,ln>tt)for(let zt of Jh(s)){let Rn=s[zt];Rn!==void 0&&e[zt]!==Rn.assertion&&ln>=Rn.level&&(e[zt]=Rn,s[zt]=void 0)}}e.setAssertionLevel=u;function p(ln){return t>=ln}e.shouldAssert=p;function g(ln,tt){return p(ln)?!0:(s[tt]={level:ln,assertion:e[tt]},e[tt]=$a,!1)}function m(ln,tt){let zt=new Error(ln?`Debug Failure. ${ln}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(zt,tt||m),zt}e.fail=m;function b(ln,tt,zt){return m(`${tt||"Unexpected node."}\r +Node ${ve(ln.kind)} was unexpected.`,zt||b)}e.failBadSyntaxKind=b;function T(ln,tt,zt,Rn){ln||(tt=tt?`False expression: ${tt}`:"False expression.",zt&&(tt+=`\r +Verbose Debug Information: `+(typeof zt=="string"?zt:zt())),m(tt,Rn||T))}e.assert=T;function I(ln,tt,zt,Rn,ui){if(ln!==tt){let bi=zt?Rn?`${zt} ${Rn}`:zt:"";m(`Expected ${ln} === ${tt}. ${bi}`,ui||I)}}e.assertEqual=I;function R(ln,tt,zt,Rn){ln>=tt&&m(`Expected ${ln} < ${tt}. ${zt||""}`,Rn||R)}e.assertLessThan=R;function M(ln,tt,zt){ln>tt&&m(`Expected ${ln} <= ${tt}`,zt||M)}e.assertLessThanOrEqual=M;function N(ln,tt,zt){ln= ${tt}`,zt||N)}e.assertGreaterThanOrEqual=N;function O(ln,tt,zt){ln==null&&m(tt,zt||O)}e.assertIsDefined=O;function H(ln,tt,zt){return O(ln,tt,zt||H),ln}e.checkDefined=H;function K(ln,tt,zt){for(let Rn of ln)O(Rn,tt,zt||K)}e.assertEachIsDefined=K;function Z(ln,tt,zt){return K(ln,tt,zt||Z),ln}e.checkEachDefined=Z;function V(ln,tt="Illegal value:",zt){let Rn=typeof ln=="object"&&Rs(ln,"kind")&&Rs(ln,"pos")?"SyntaxKind: "+ve(ln.kind):JSON.stringify(ln);return m(`${tt} ${Rn}`,zt||V)}e.assertNever=V;function ue(ln,tt,zt,Rn){g(1,"assertEachNode")&&T(tt===void 0||Jn(ln,tt),zt||"Unexpected node.",()=>`Node array did not pass test '${oe(tt)}'.`,Rn||ue)}e.assertEachNode=ue;function G(ln,tt,zt,Rn){g(1,"assertNode")&&T(ln!==void 0&&(tt===void 0||tt(ln)),zt||"Unexpected node.",()=>`Node ${ve(ln?.kind)} did not pass test '${oe(tt)}'.`,Rn||G)}e.assertNode=G;function ne(ln,tt,zt,Rn){g(1,"assertNotNode")&&T(ln===void 0||tt===void 0||!tt(ln),zt||"Unexpected node.",()=>`Node ${ve(ln.kind)} should not have passed test '${oe(tt)}'.`,Rn||ne)}e.assertNotNode=ne;function he(ln,tt,zt,Rn){g(1,"assertOptionalNode")&&T(tt===void 0||ln===void 0||tt(ln),zt||"Unexpected node.",()=>`Node ${ve(ln?.kind)} did not pass test '${oe(tt)}'.`,Rn||he)}e.assertOptionalNode=he;function ye(ln,tt,zt,Rn){g(1,"assertOptionalToken")&&T(tt===void 0||ln===void 0||ln.kind===tt,zt||"Unexpected node.",()=>`Node ${ve(ln?.kind)} was not a '${ve(tt)}' token.`,Rn||ye)}e.assertOptionalToken=ye;function $(ln,tt,zt){g(1,"assertMissingNode")&&T(ln===void 0,tt||"Unexpected node.",()=>`Node ${ve(ln.kind)} was unexpected'.`,zt||$)}e.assertMissingNode=$;function Y(ln){}e.type=Y;function oe(ln){if(typeof ln!="function")return"";if(Rs(ln,"name"))return ln.name;{let tt=Function.prototype.toString.call(ln),zt=/^function\s+([\w$]+)\s*\(/.exec(tt);return zt?zt[1]:""}}e.getFunctionName=oe;function fe(ln){return`{ name: ${Hi(ln.escapedName)}; flags: ${At(ln.flags)}; declarations: ${Ft(ln.declarations,tt=>ve(tt.kind))} }`}e.formatSymbol=fe;function Ne(ln=0,tt,zt){let Rn=ie(tt);if(ln===0)return Rn.length>0&&Rn[0][0]===0?Rn[0][1]:"0";if(zt){let ui=[],bi=ln;for(let[ro,No]of Rn){if(ro>ln)break;ro!==0&&ro&ln&&(ui.push(No),bi&=~ro)}if(bi===0)return ui.join("|")}else for(let[ui,bi]of Rn)if(ui===ln)return bi;return ln.toString()}e.formatEnum=Ne;let me=new Map;function ie(ln){let tt=me.get(ln);if(tt)return tt;let zt=[];for(let ui in ln){let bi=ln[ui];typeof bi=="number"&&zt.push([bi,ui])}let Rn=Iv(zt,(ui,bi)=>tl(ui[0],bi[0]));return me.set(ln,Rn),Rn}function ve(ln){return Ne(ln,G8,!1)}e.formatSyntaxKind=ve;function Le(ln){return Ne(ln,e6,!1)}e.formatSnippetKind=Le;function He(ln){return Ne(ln,Q8,!1)}e.formatScriptKind=He;function Ee(ln){return Ne(ln,V8,!0)}e.formatNodeFlags=Ee;function Ce(ln){return Ne(ln,j8,!0)}e.formatModifierFlags=Ce;function Me(ln){return Ne(ln,Z8,!0)}e.formatTransformFlags=Me;function Fe(ln){return Ne(ln,t6,!0)}e.formatEmitFlags=Fe;function At(ln){return Ne(ln,K8,!0)}e.formatSymbolFlags=At;function Se(ln){return Ne(ln,X8,!0)}e.formatTypeFlags=Se;function je(ln){return Ne(ln,$8,!0)}e.formatSignatureFlags=je;function at(ln){return Ne(ln,Y8,!0)}e.formatObjectFlags=at;function Bt(ln){return Ne(ln,OM,!0)}e.formatFlowFlags=Bt;function yt(ln){return Ne(ln,U8,!0)}e.formatRelationComparisonResult=yt;function Qe(ln){return Ne(ln,H5,!0)}e.formatCheckMode=Qe;function gt(ln){return Ne(ln,q5,!0)}e.formatSignatureCheckMode=gt;function nn(ln){return Ne(ln,U5,!0)}e.formatTypeFacts=nn;let rn=!1,Nn;function Xn(ln){"__debugFlowFlags"in ln||Object.defineProperties(ln,{__tsDebuggerDisplay:{value(){let tt=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",zt=this.flags&-2048;return`${tt}${zt?` (${Bt(zt)})`:""}`}},__debugFlowFlags:{get(){return Ne(this.flags,OM,!0)}},__debugToString:{value(){return xr(this)}}})}function _n(ln){rn&&(typeof Object.setPrototypeOf=="function"?(Nn||(Nn=Object.create(Object.prototype),Xn(Nn)),Object.setPrototypeOf(ln,Nn)):Xn(ln))}e.attachFlowNodeDebugInfo=_n;let Qt;function Yt(ln){"__tsDebuggerDisplay"in ln||Object.defineProperties(ln,{__tsDebuggerDisplay:{value(tt){return tt=String(tt).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),`NodeArray ${tt}`}}})}function vi(ln){rn&&(typeof Object.setPrototypeOf=="function"?(Qt||(Qt=Object.create(Array.prototype),Yt(Qt)),Object.setPrototypeOf(ln,Qt)):Yt(ln))}e.attachNodeArrayDebugInfo=vi;function ho(){if(rn)return;let ln=new WeakMap,tt=new WeakMap;Object.defineProperties(lu.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let Rn=this.flags&33554432?"TransientSymbol":"Symbol",ui=this.flags&-33554433;return`${Rn} '${bl(this)}'${ui?` (${At(ui)})`:""}`}},__debugFlags:{get(){return At(this.flags)}}}),Object.defineProperties(lu.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){let Rn=this.flags&67359327?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",ui=this.flags&524288?this.objectFlags&-1344:0;return`${Rn}${this.symbol?` '${bl(this.symbol)}'`:""}${ui?` (${at(ui)})`:""}`}},__debugFlags:{get(){return Se(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?at(this.objectFlags):""}},__debugTypeToString:{value(){let Rn=ln.get(this);return Rn===void 0&&(Rn=this.checker.typeToString(this),ln.set(this,Rn)),Rn}}}),Object.defineProperties(lu.getSignatureConstructor().prototype,{__debugFlags:{get(){return je(this.flags)}},__debugSignatureToString:{value(){var Rn;return(Rn=this.checker)==null?void 0:Rn.signatureToString(this)}}});let zt=[lu.getNodeConstructor(),lu.getIdentifierConstructor(),lu.getTokenConstructor(),lu.getSourceFileConstructor()];for(let Rn of zt)Rs(Rn.prototype,"__debugKind")||Object.defineProperties(Rn.prototype,{__tsDebuggerDisplay:{value(){return`${ol(this)?"GeneratedIdentifier":Ve(this)?`Identifier '${Sr(this)}'`:Xi(this)?`PrivateIdentifier '${Sr(this)}'`:Na(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:hp(this)?`NumericLiteral ${this.text}`:H7(this)?`BigIntLiteral ${this.text}n`:_l(this)?"TypeParameterDeclaration":Co(this)?"ParameterDeclaration":Pl(this)?"ConstructorDeclaration":Zp(this)?"GetAccessorDeclaration":vp(this)?"SetAccessorDeclaration":nI(this)?"CallSignatureDeclaration":zk(this)?"ConstructSignatureDeclaration":j1(this)?"IndexSignatureDeclaration":Bk(this)?"TypePredicateNode":Rf(this)?"TypeReferenceNode":bh(this)?"FunctionTypeNode":OR(this)?"ConstructorTypeNode":rI(this)?"TypeQueryNode":yp(this)?"TypeLiteralNode":Gk(this)?"ArrayTypeNode":iI(this)?"TupleTypeNode":Y7(this)?"OptionalTypeNode":$7(this)?"RestTypeNode":Xy(this)?"UnionTypeNode":oI(this)?"IntersectionTypeNode":aI(this)?"ConditionalTypeNode":MS(this)?"InferTypeNode":LS(this)?"ParenthesizedTypeNode":Vk(this)?"ThisTypeNode":kS(this)?"TypeOperatorNode":wS(this)?"IndexedAccessTypeNode":WR(this)?"MappedTypeNode":Yy(this)?"LiteralTypeNode":FR(this)?"NamedTupleMember":lg(this)?"ImportTypeNode":ve(this.kind)}${this.flags?` (${Ee(this.flags)})`:""}`}},__debugKind:{get(){return ve(this.kind)}},__debugNodeFlags:{get(){return Ee(this.flags)}},__debugModifierFlags:{get(){return Ce(ooe(this))}},__debugTransformFlags:{get(){return Me(this.transformFlags)}},__debugIsParseTreeNode:{get(){return uC(this)}},__debugEmitFlags:{get(){return Fe(Va(this))}},__debugGetText:{value(ui){if(Xs(this))return"";let bi=tt.get(this);if(bi===void 0){let ro=Lo(this),No=ro&&Vn(ro);bi=No?A1(No,ro,ui):"",tt.set(this,bi)}return bi}}});rn=!0}e.enableDebugInfo=ho;function ki(ln){let tt=ln&7,zt=tt===0?"in out":tt===3?"[bivariant]":tt===2?"in":tt===1?"out":tt===4?"[independent]":"";return ln&8?zt+=" (unmeasurable)":ln&16&&(zt+=" (unreliable)"),zt}e.formatVariance=ki;class Ro{__debugToString(){var tt;switch(this.kind){case 3:return((tt=this.debugInfo)==null?void 0:tt.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return Un(this.sources,this.targets||Ft(this.sources,()=>"any"),(zt,Rn)=>`${zt.__debugTypeToString()} -> ${typeof Rn=="string"?Rn:Rn.__debugTypeToString()}`).join(", ");case 2:return Un(this.sources,this.targets,(zt,Rn)=>`${zt.__debugTypeToString()} -> ${Rn().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` +`).join(` + `)} +m2: ${this.mapper2.__debugToString().split(` +`).join(` + `)}`;default:return V(this)}}}e.DebugTypeMapper=Ro;function nr(ln){return e.isDebugging?Object.setPrototypeOf(ln,Ro.prototype):ln}e.attachDebugPrototypeIfDebug=nr;function qr(ln){return console.log(xr(ln))}e.printControlFlowGraph=qr;function xr(ln){let tt=-1;function zt(ae){return ae.id||(ae.id=tt,tt--),ae.id}let Rn;(ae=>{ae.lr="\u2500",ae.ud="\u2502",ae.dr="\u256D",ae.dl="\u256E",ae.ul="\u256F",ae.ur="\u2570",ae.udr="\u251C",ae.udl="\u2524",ae.dlr="\u252C",ae.ulr="\u2534",ae.udlr="\u256B"})(Rn||(Rn={}));let ui;(ae=>{ae[ae.None=0]="None",ae[ae.Up=1]="Up",ae[ae.Down=2]="Down",ae[ae.Left=4]="Left",ae[ae.Right=8]="Right",ae[ae.UpDown=3]="UpDown",ae[ae.LeftRight=12]="LeftRight",ae[ae.UpLeft=5]="UpLeft",ae[ae.UpRight=9]="UpRight",ae[ae.DownLeft=6]="DownLeft",ae[ae.DownRight=10]="DownRight",ae[ae.UpDownLeft=7]="UpDownLeft",ae[ae.UpDownRight=11]="UpDownRight",ae[ae.UpLeftRight=13]="UpLeftRight",ae[ae.DownLeftRight=14]="DownLeftRight",ae[ae.UpDownLeftRight=15]="UpDownLeftRight",ae[ae.NoChildren=16]="NoChildren"})(ui||(ui={}));let bi=2032,ro=882,No=Object.create(null),_a=[],ja=[],En=j(ln,new Set);for(let ae of _a)ae.text=mn(ae.flowNode,ae.circular),xt(ae);let wn=Ye(En),Ue=ht(wn);return Vt(En,0),q();function mt(ae){return!!(ae.flags&128)}function ft(ae){return!!(ae.flags&12)&&!!ae.antecedents}function Nt(ae){return!!(ae.flags&bi)}function le(ae){return!!(ae.flags&ro)}function We(ae){let J=[];for(let pe of ae.edges)pe.source===ae&&J.push(pe.target);return J}function pt(ae){let J=[];for(let pe of ae.edges)pe.target===ae&&J.push(pe.source);return J}function j(ae,J){let pe=zt(ae),Ge=No[pe];if(Ge&&J.has(ae))return Ge.circular=!0,Ge={id:-1,flowNode:ae,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},_a.push(Ge),Ge;if(J.add(ae),!Ge)if(No[pe]=Ge={id:pe,flowNode:ae,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},_a.push(Ge),ft(ae))for(let ke of ae.antecedents)ot(Ge,ke,J);else Nt(ae)&&ot(Ge,ae.antecedent,J);return J.delete(ae),Ge}function ot(ae,J,pe){let Ge=j(J,pe),ke={source:ae,target:Ge};ja.push(ke),ae.edges.push(ke),Ge.edges.push(ke)}function xt(ae){if(ae.level!==-1)return ae.level;let J=0;for(let pe of pt(ae))J=Math.max(J,xt(pe)+1);return ae.level=J}function Ye(ae){let J=0;for(let pe of We(ae))J=Math.max(J,Ye(pe));return J+1}function ht(ae){let J=Lt(Array(ae),0);for(let pe of _a)J[pe.level]=Math.max(J[pe.level],pe.text.length);return J}function Vt(ae,J){if(ae.lane===-1){ae.lane=J,ae.endLane=J;let pe=We(ae);for(let Ge=0;Ge0&&J++;let ke=pe[Ge];Vt(ke,J),ke.endLane>ae.endLane&&(J=ke.endLane)}ae.endLane=J}}function yn(ae){if(ae&2)return"Start";if(ae&4)return"Branch";if(ae&8)return"Loop";if(ae&16)return"Assignment";if(ae&32)return"True";if(ae&64)return"False";if(ae&128)return"SwitchClause";if(ae&256)return"ArrayMutation";if(ae&512)return"Call";if(ae&1024)return"ReduceLabel";if(ae&1)return"Unreachable";throw new Error}function fn(ae){let J=Vn(ae);return A1(J,ae,!1)}function mn(ae,J){let pe=yn(ae.flags);if(J&&(pe=`${pe}#${zt(ae)}`),le(ae))ae.node&&(pe+=` (${fn(ae.node)})`);else if(mt(ae)){let Ge=[];for(let ke=ae.clauseStart;keMath.max(Pt,Kt.lane),0)+1,pe=Lt(Array(J),""),Ge=Ue.map(()=>Array(J)),ke=Ue.map(()=>Lt(Array(J),0));for(let Pt of _a){Ge[Pt.level][Pt.lane]=Pt;let Kt=We(Pt);for(let On=0;On0&&(yi|=1),On0&&(yi|=1),On0?ke[Pt-1][Kt]:0,On=Kt>0?ke[Pt][Kt-1]:0,Gn=ke[Pt][Kt];Gn||(Tn&8&&(Gn|=12),On&2&&(Gn|=3),ke[Pt][Kt]=Gn)}for(let Pt=0;Pt0?ae.repeat(J):"";let pe="";for(;pe.length=",i.version)),Jf(o.major)||r.push(Jf(o.minor)?uh("<",o.version.increment("major")):Jf(o.patch)?uh("<",o.version.increment("minor")):uh("<=",o.version)),!0):!1}function BWe(e,t,r){let i=Lne(t);if(!i)return!1;let{version:o,major:s,minor:l,patch:u}=i;if(Jf(s))(e==="<"||e===">")&&r.push(uh("<",vm.zero));else switch(e){case"~":r.push(uh(">=",o)),r.push(uh("<",o.increment(Jf(l)?"major":"minor")));break;case"^":r.push(uh(">=",o)),r.push(uh("<",o.increment(o.major>0||Jf(l)?"major":o.minor>0||Jf(u)?"minor":"patch")));break;case"<":case">=":r.push(Jf(l)||Jf(u)?uh(e,o.with({prerelease:"0"})):uh(e,o));break;case"<=":case">":r.push(Jf(l)?uh(e==="<="?"<":">=",o.increment("major").with({prerelease:"0"})):Jf(u)?uh(e==="<="?"<":">=",o.increment("minor").with({prerelease:"0"})):uh(e,o));break;case"=":case void 0:Jf(l)||Jf(u)?(r.push(uh(">=",o.with({prerelease:"0"}))),r.push(uh("<",o.increment(Jf(l)?"major":"minor").with({prerelease:"0"})))):r.push(uh("=",o));break;default:return!1}return!0}function Jf(e){return e==="*"||e==="x"||e==="X"}function uh(e,t){return{operator:e,operand:t}}function GWe(e,t){if(t.length===0)return!0;for(let r of t)if(VWe(e,r))return!0;return!1}function VWe(e,t){for(let r of t)if(!jWe(e,r.operator,r.operand))return!1;return!0}function jWe(e,t,r){let i=e.compareTo(r);switch(t){case"<":return i<0;case"<=":return i<=0;case">":return i>0;case">=":return i>=0;case"=":return i===0;default:return C.assertNever(t)}}function UWe(e){return Ft(e,HWe).join(" || ")||"*"}function HWe(e){return Ft(e,qWe).join(" ")}function qWe(e){return`${e.operator}${e.operand}`}var Z0e,e1e,t1e,n1e,r1e,kne,gG,vm,LM,i1e,o1e,a1e,s1e,l1e,JWe=A({"src/compiler/semver.ts"(){"use strict";ia(),Z0e=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,e1e=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,t1e=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,n1e=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,r1e=/^[a-z0-9-]+$/i,kne=/^(0|[1-9]\d*)$/,gG=class I8{constructor(t,r=0,i=0,o="",s=""){typeof t=="string"&&({major:t,minor:r,patch:i,prerelease:o,build:s}=C.checkDefined($0e(t),"Invalid version")),C.assert(t>=0,"Invalid argument: major"),C.assert(r>=0,"Invalid argument: minor"),C.assert(i>=0,"Invalid argument: patch");let l=o?Do(o)?o:o.split("."):et,u=s?Do(s)?s:s.split("."):et;C.assert(Jn(l,p=>t1e.test(p)),"Invalid argument: prerelease"),C.assert(Jn(u,p=>r1e.test(p)),"Invalid argument: build"),this.major=t,this.minor=r,this.patch=i,this.prerelease=l,this.build=u}static tryParse(t){let r=$0e(t);if(!r)return;let{major:i,minor:o,patch:s,prerelease:l,build:u}=r;return new I8(i,o,s,l,u)}compareTo(t){return this===t?0:t===void 0?1:tl(this.major,t.major)||tl(this.minor,t.minor)||tl(this.patch,t.patch)||WWe(this.prerelease,t.prerelease)}increment(t){switch(t){case"major":return new I8(this.major+1,0,0);case"minor":return new I8(this.major,this.minor+1,0);case"patch":return new I8(this.major,this.minor,this.patch+1);default:return C.assertNever(t)}}with(t){let{major:r=this.major,minor:i=this.minor,patch:o=this.patch,prerelease:s=this.prerelease,build:l=this.build}=t;return new I8(r,i,o,s,l)}toString(){let t=`${this.major}.${this.minor}.${this.patch}`;return Et(this.prerelease)&&(t+=`-${this.prerelease.join(".")}`),Et(this.build)&&(t+=`+${this.build.join(".")}`),t}},gG.zero=new gG(0,0,0,["0"]),vm=gG,LM=class yWe{constructor(t){this._alternatives=t?C.checkDefined(Q0e(t),"Invalid range spec."):et}static tryParse(t){let r=Q0e(t);if(r){let i=new yWe("");return i._alternatives=r,i}}test(t){return typeof t=="string"&&(t=new vm(t)),GWe(t,this._alternatives)}toString(){return UWe(this._alternatives)}},i1e=/\|\|/g,o1e=/\s+/g,a1e=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,s1e=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,l1e=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i}});function c1e(e,t){return typeof e=="object"&&typeof e.timeOrigin=="number"&&typeof e.mark=="function"&&typeof e.measure=="function"&&typeof e.now=="function"&&typeof e.clearMarks=="function"&&typeof e.clearMeasures=="function"&&typeof t=="function"}function KWe(){if(typeof performance=="object"&&typeof PerformanceObserver=="function"&&c1e(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}function XWe(){if(pG())try{let{performance:e,PerformanceObserver:t}=QE("perf_hooks");if(c1e(e,t))return{shouldWriteNativeEvents:!1,performance:e,PerformanceObserver:t}}catch{}}function wne(){return vG}var vG,One,Ks,YWe=A({"src/compiler/performanceCore.ts"(){"use strict";ia(),vG=KWe()||XWe(),One=vG?.performance,Ks=One?()=>One.now():Date.now?Date.now:()=>+new Date}}),B8,rd,$We=A({"src/compiler/perfLogger.ts"(){"use strict";try{let e=process.env.TS_ETW_MODULE_PATH??"./node_modules/@microsoft/typescript-etw";B8=QE(e)}catch{B8=void 0}rd=B8?.logEvent?B8:void 0}});function u1e(e,t,r,i){return e?yG(t,r,i):bG}function yG(e,t,r){let i=0;return{enter:o,exit:s};function o(){++i===1&&nl(t)}function s(){--i===0?(nl(r),Yp(e,t,r)):i<0&&C.fail("enter/exit count does not match.")}}function nl(e){if(Lx){let t=eC.get(e)??0;eC.set(e,t+1),kx.set(e,Ks()),iS?.mark(e),typeof onProfilerEvent=="function"&&onProfilerEvent(e)}}function Yp(e,t,r){if(Lx){let i=(r!==void 0?kx.get(r):void 0)??Ks(),o=(t!==void 0?kx.get(t):void 0)??Fne,s=wx.get(e)||0;wx.set(e,s+(i-o)),iS?.measure(e,t,r)}}function QWe(e){return eC.get(e)||0}function ZWe(e){return wx.get(e)||0}function e9e(e){wx.forEach((t,r)=>e(r,t))}function t9e(e){kx.forEach((t,r)=>e(r))}function n9e(e){e!==void 0?wx.delete(e):wx.clear(),iS?.clearMeasures(e)}function r9e(e){e!==void 0?(eC.delete(e),kx.delete(e)):(eC.clear(),kx.clear()),iS?.clearMarks(e)}function i9e(){return Lx}function o9e(e=gu){var t;return Lx||(Lx=!0,kM||(kM=wne()),kM&&(Fne=kM.performance.timeOrigin,(kM.shouldWriteNativeEvents||(t=e?.cpuProfilingEnabled)!=null&&t.call(e)||e?.debugMode)&&(iS=kM.performance))),!0}function a9e(){Lx&&(kx.clear(),eC.clear(),wx.clear(),iS=void 0,Lx=!1)}var kM,iS,bG,Lx,Fne,kx,eC,wx,s9e=A({"src/compiler/performance.ts"(){"use strict";ia(),bG={enter:$a,exit:$a},Lx=!1,Fne=Ks(),kx=new Map,eC=new Map,wx=new Map}}),Wne={};X(Wne,{clearMarks:()=>r9e,clearMeasures:()=>n9e,createTimer:()=>yG,createTimerIf:()=>u1e,disable:()=>a9e,enable:()=>o9e,forEachMark:()=>t9e,forEachMeasure:()=>e9e,getCount:()=>QWe,getDuration:()=>ZWe,isEnabled:()=>i9e,mark:()=>nl,measure:()=>Yp,nullTimer:()=>bG});var oS=A({"src/compiler/_namespaces/ts.performance.ts"(){"use strict";s9e()}}),lr,wM,zne,Bne,l9e=A({"src/compiler/tracing.ts"(){"use strict";ia(),oS(),(e=>{let t,r=0,i=0,o,s=[],l,u=[];function p(G,ne,he){if(C.assert(!lr,"Tracing already started"),t===void 0)try{t=QE("fs")}catch(fe){throw new Error(`tracing requires having fs +(original error: ${fe.message||fe})`)}o=G,s.length=0,l===void 0&&(l=Zr(ne,"legend.json")),t.existsSync(ne)||t.mkdirSync(ne,{recursive:!0});let ye=o==="build"?`.${process.pid}-${++r}`:o==="server"?`.${process.pid}`:"",$=Zr(ne,`trace${ye}.json`),Y=Zr(ne,`types${ye}.json`);u.push({configFilePath:he,tracePath:$,typesPath:Y}),i=t.openSync($,"w"),lr=e;let oe={cat:"__metadata",ph:"M",ts:1e3*Ks(),pid:1,tid:1};t.writeSync(i,`[ +`+[{name:"process_name",args:{name:"tsc"},...oe},{name:"thread_name",args:{name:"Main"},...oe},{name:"TracingStartedInBrowser",...oe,cat:"disabled-by-default-devtools.timeline"}].map(fe=>JSON.stringify(fe)).join(`, +`))}e.startTracing=p;function g(){C.assert(lr,"Tracing is not in progress"),C.assert(!!s.length==(o!=="server")),t.writeSync(i,` +] +`),t.closeSync(i),lr=void 0,s.length?V(s):u[u.length-1].typesPath=void 0}e.stopTracing=g;function m(G){o!=="server"&&s.push(G)}e.recordType=m;let b;(G=>{G.Parse="parse",G.Program="program",G.Bind="bind",G.Check="check",G.CheckTypes="checkTypes",G.Emit="emit",G.Session="session"})(b=e.Phase||(e.Phase={}));function T(G,ne,he){K("I",G,ne,he,'"s":"g"')}e.instant=T;let I=[];function R(G,ne,he,ye=!1){ye&&K("B",G,ne,he),I.push({phase:G,name:ne,args:he,time:1e3*Ks(),separateBeginAndEnd:ye})}e.push=R;function M(G){C.assert(I.length>0),H(I.length-1,1e3*Ks(),G),I.length--}e.pop=M;function N(){let G=1e3*Ks();for(let ne=I.length-1;ne>=0;ne--)H(ne,G);I.length=0}e.popAll=N;let O=1e3*10;function H(G,ne,he){let{phase:ye,name:$,args:Y,time:oe,separateBeginAndEnd:fe}=I[G];fe?(C.assert(!he,"`results` are not supported for events with `separateBeginAndEnd`"),K("E",ye,$,Y,void 0,ne)):O-oe%O<=ne-oe&&K("X",ye,$,{...Y,results:he},`"dur":${ne-oe}`,oe)}function K(G,ne,he,ye,$,Y=1e3*Ks()){o==="server"&&ne==="checkTypes"||(nl("beginTracing"),t.writeSync(i,`, +{"pid":1,"tid":1,"ph":"${G}","cat":"${ne}","ts":${Y},"name":"${he}"`),$&&t.writeSync(i,`,${$}`),ye&&t.writeSync(i,`,"args":${JSON.stringify(ye)}`),t.writeSync(i,"}"),nl("endTracing"),Yp("Tracing","beginTracing","endTracing"))}function Z(G){let ne=Vn(G);return ne?{path:ne.path,start:he(Es(ne,G.pos)),end:he(Es(ne,G.end))}:void 0;function he(ye){return{line:ye.line+1,character:ye.character+1}}}function V(G){var ne,he,ye,$,Y,oe,fe,Ne,me,ie,ve,Le,He,Ee,Ce,Me,Fe,At,Se;nl("beginDumpTypes");let je=u[u.length-1].typesPath,at=t.openSync(je,"w"),Bt=new Map;t.writeSync(at,"[");let yt=G.length;for(let Qe=0;Qexr.id),referenceLocation:Z(qr.node)}}let Qt={};if(gt.flags&16777216){let qr=gt;Qt={conditionalCheckType:(oe=qr.checkType)==null?void 0:oe.id,conditionalExtendsType:(fe=qr.extendsType)==null?void 0:fe.id,conditionalTrueType:((Ne=qr.resolvedTrueType)==null?void 0:Ne.id)??-1,conditionalFalseType:((me=qr.resolvedFalseType)==null?void 0:me.id)??-1}}let Yt={};if(gt.flags&33554432){let qr=gt;Yt={substitutionBaseType:(ie=qr.baseType)==null?void 0:ie.id,constraintType:(ve=qr.constraint)==null?void 0:ve.id}}let vi={};if(nn&1024){let qr=gt;vi={reverseMappedSourceType:(Le=qr.source)==null?void 0:Le.id,reverseMappedMappedType:(He=qr.mappedType)==null?void 0:He.id,reverseMappedConstraintType:(Ee=qr.constraintType)==null?void 0:Ee.id}}let ho={};if(nn&256){let qr=gt;ho={evolvingArrayElementType:qr.elementType.id,evolvingArrayFinalType:(Ce=qr.finalArrayType)==null?void 0:Ce.id}}let ki,Ro=gt.checker.getRecursionIdentity(gt);Ro&&(ki=Bt.get(Ro),ki||(ki=Bt.size,Bt.set(Ro,ki)));let nr={id:gt.id,intrinsicName:gt.intrinsicName,symbolName:rn?.escapedName&&Hi(rn.escapedName),recursionId:ki,isTuple:nn&8?!0:void 0,unionTypes:gt.flags&1048576?(Me=gt.types)==null?void 0:Me.map(qr=>qr.id):void 0,intersectionTypes:gt.flags&2097152?gt.types.map(qr=>qr.id):void 0,aliasTypeArguments:(Fe=gt.aliasTypeArguments)==null?void 0:Fe.map(qr=>qr.id),keyofType:gt.flags&4194304?(At=gt.type)==null?void 0:At.id:void 0,...Xn,..._n,...Qt,...Yt,...vi,...ho,destructuringPattern:Z(gt.pattern),firstDeclaration:Z((Se=rn?.declarations)==null?void 0:Se[0]),flags:C.formatTypeFlags(gt.flags).split("|"),display:Nn};t.writeSync(at,JSON.stringify(nr)),Qe(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.UsingKeyword=160]="UsingKeyword",e[e.FromKeyword=161]="FromKeyword",e[e.GlobalKeyword=162]="GlobalKeyword",e[e.BigIntKeyword=163]="BigIntKeyword",e[e.OverrideKeyword=164]="OverrideKeyword",e[e.OfKeyword=165]="OfKeyword",e[e.QualifiedName=166]="QualifiedName",e[e.ComputedPropertyName=167]="ComputedPropertyName",e[e.TypeParameter=168]="TypeParameter",e[e.Parameter=169]="Parameter",e[e.Decorator=170]="Decorator",e[e.PropertySignature=171]="PropertySignature",e[e.PropertyDeclaration=172]="PropertyDeclaration",e[e.MethodSignature=173]="MethodSignature",e[e.MethodDeclaration=174]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=175]="ClassStaticBlockDeclaration",e[e.Constructor=176]="Constructor",e[e.GetAccessor=177]="GetAccessor",e[e.SetAccessor=178]="SetAccessor",e[e.CallSignature=179]="CallSignature",e[e.ConstructSignature=180]="ConstructSignature",e[e.IndexSignature=181]="IndexSignature",e[e.TypePredicate=182]="TypePredicate",e[e.TypeReference=183]="TypeReference",e[e.FunctionType=184]="FunctionType",e[e.ConstructorType=185]="ConstructorType",e[e.TypeQuery=186]="TypeQuery",e[e.TypeLiteral=187]="TypeLiteral",e[e.ArrayType=188]="ArrayType",e[e.TupleType=189]="TupleType",e[e.OptionalType=190]="OptionalType",e[e.RestType=191]="RestType",e[e.UnionType=192]="UnionType",e[e.IntersectionType=193]="IntersectionType",e[e.ConditionalType=194]="ConditionalType",e[e.InferType=195]="InferType",e[e.ParenthesizedType=196]="ParenthesizedType",e[e.ThisType=197]="ThisType",e[e.TypeOperator=198]="TypeOperator",e[e.IndexedAccessType=199]="IndexedAccessType",e[e.MappedType=200]="MappedType",e[e.LiteralType=201]="LiteralType",e[e.NamedTupleMember=202]="NamedTupleMember",e[e.TemplateLiteralType=203]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=204]="TemplateLiteralTypeSpan",e[e.ImportType=205]="ImportType",e[e.ObjectBindingPattern=206]="ObjectBindingPattern",e[e.ArrayBindingPattern=207]="ArrayBindingPattern",e[e.BindingElement=208]="BindingElement",e[e.ArrayLiteralExpression=209]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=210]="ObjectLiteralExpression",e[e.PropertyAccessExpression=211]="PropertyAccessExpression",e[e.ElementAccessExpression=212]="ElementAccessExpression",e[e.CallExpression=213]="CallExpression",e[e.NewExpression=214]="NewExpression",e[e.TaggedTemplateExpression=215]="TaggedTemplateExpression",e[e.TypeAssertionExpression=216]="TypeAssertionExpression",e[e.ParenthesizedExpression=217]="ParenthesizedExpression",e[e.FunctionExpression=218]="FunctionExpression",e[e.ArrowFunction=219]="ArrowFunction",e[e.DeleteExpression=220]="DeleteExpression",e[e.TypeOfExpression=221]="TypeOfExpression",e[e.VoidExpression=222]="VoidExpression",e[e.AwaitExpression=223]="AwaitExpression",e[e.PrefixUnaryExpression=224]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=225]="PostfixUnaryExpression",e[e.BinaryExpression=226]="BinaryExpression",e[e.ConditionalExpression=227]="ConditionalExpression",e[e.TemplateExpression=228]="TemplateExpression",e[e.YieldExpression=229]="YieldExpression",e[e.SpreadElement=230]="SpreadElement",e[e.ClassExpression=231]="ClassExpression",e[e.OmittedExpression=232]="OmittedExpression",e[e.ExpressionWithTypeArguments=233]="ExpressionWithTypeArguments",e[e.AsExpression=234]="AsExpression",e[e.NonNullExpression=235]="NonNullExpression",e[e.MetaProperty=236]="MetaProperty",e[e.SyntheticExpression=237]="SyntheticExpression",e[e.SatisfiesExpression=238]="SatisfiesExpression",e[e.TemplateSpan=239]="TemplateSpan",e[e.SemicolonClassElement=240]="SemicolonClassElement",e[e.Block=241]="Block",e[e.EmptyStatement=242]="EmptyStatement",e[e.VariableStatement=243]="VariableStatement",e[e.ExpressionStatement=244]="ExpressionStatement",e[e.IfStatement=245]="IfStatement",e[e.DoStatement=246]="DoStatement",e[e.WhileStatement=247]="WhileStatement",e[e.ForStatement=248]="ForStatement",e[e.ForInStatement=249]="ForInStatement",e[e.ForOfStatement=250]="ForOfStatement",e[e.ContinueStatement=251]="ContinueStatement",e[e.BreakStatement=252]="BreakStatement",e[e.ReturnStatement=253]="ReturnStatement",e[e.WithStatement=254]="WithStatement",e[e.SwitchStatement=255]="SwitchStatement",e[e.LabeledStatement=256]="LabeledStatement",e[e.ThrowStatement=257]="ThrowStatement",e[e.TryStatement=258]="TryStatement",e[e.DebuggerStatement=259]="DebuggerStatement",e[e.VariableDeclaration=260]="VariableDeclaration",e[e.VariableDeclarationList=261]="VariableDeclarationList",e[e.FunctionDeclaration=262]="FunctionDeclaration",e[e.ClassDeclaration=263]="ClassDeclaration",e[e.InterfaceDeclaration=264]="InterfaceDeclaration",e[e.TypeAliasDeclaration=265]="TypeAliasDeclaration",e[e.EnumDeclaration=266]="EnumDeclaration",e[e.ModuleDeclaration=267]="ModuleDeclaration",e[e.ModuleBlock=268]="ModuleBlock",e[e.CaseBlock=269]="CaseBlock",e[e.NamespaceExportDeclaration=270]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=271]="ImportEqualsDeclaration",e[e.ImportDeclaration=272]="ImportDeclaration",e[e.ImportClause=273]="ImportClause",e[e.NamespaceImport=274]="NamespaceImport",e[e.NamedImports=275]="NamedImports",e[e.ImportSpecifier=276]="ImportSpecifier",e[e.ExportAssignment=277]="ExportAssignment",e[e.ExportDeclaration=278]="ExportDeclaration",e[e.NamedExports=279]="NamedExports",e[e.NamespaceExport=280]="NamespaceExport",e[e.ExportSpecifier=281]="ExportSpecifier",e[e.MissingDeclaration=282]="MissingDeclaration",e[e.ExternalModuleReference=283]="ExternalModuleReference",e[e.JsxElement=284]="JsxElement",e[e.JsxSelfClosingElement=285]="JsxSelfClosingElement",e[e.JsxOpeningElement=286]="JsxOpeningElement",e[e.JsxClosingElement=287]="JsxClosingElement",e[e.JsxFragment=288]="JsxFragment",e[e.JsxOpeningFragment=289]="JsxOpeningFragment",e[e.JsxClosingFragment=290]="JsxClosingFragment",e[e.JsxAttribute=291]="JsxAttribute",e[e.JsxAttributes=292]="JsxAttributes",e[e.JsxSpreadAttribute=293]="JsxSpreadAttribute",e[e.JsxExpression=294]="JsxExpression",e[e.JsxNamespacedName=295]="JsxNamespacedName",e[e.CaseClause=296]="CaseClause",e[e.DefaultClause=297]="DefaultClause",e[e.HeritageClause=298]="HeritageClause",e[e.CatchClause=299]="CatchClause",e[e.ImportAttributes=300]="ImportAttributes",e[e.ImportAttribute=301]="ImportAttribute",e[e.AssertClause=300]="AssertClause",e[e.AssertEntry=301]="AssertEntry",e[e.ImportTypeAssertionContainer=302]="ImportTypeAssertionContainer",e[e.PropertyAssignment=303]="PropertyAssignment",e[e.ShorthandPropertyAssignment=304]="ShorthandPropertyAssignment",e[e.SpreadAssignment=305]="SpreadAssignment",e[e.EnumMember=306]="EnumMember",e[e.UnparsedPrologue=307]="UnparsedPrologue",e[e.UnparsedPrepend=308]="UnparsedPrepend",e[e.UnparsedText=309]="UnparsedText",e[e.UnparsedInternalText=310]="UnparsedInternalText",e[e.UnparsedSyntheticReference=311]="UnparsedSyntheticReference",e[e.SourceFile=312]="SourceFile",e[e.Bundle=313]="Bundle",e[e.UnparsedSource=314]="UnparsedSource",e[e.InputFiles=315]="InputFiles",e[e.JSDocTypeExpression=316]="JSDocTypeExpression",e[e.JSDocNameReference=317]="JSDocNameReference",e[e.JSDocMemberName=318]="JSDocMemberName",e[e.JSDocAllType=319]="JSDocAllType",e[e.JSDocUnknownType=320]="JSDocUnknownType",e[e.JSDocNullableType=321]="JSDocNullableType",e[e.JSDocNonNullableType=322]="JSDocNonNullableType",e[e.JSDocOptionalType=323]="JSDocOptionalType",e[e.JSDocFunctionType=324]="JSDocFunctionType",e[e.JSDocVariadicType=325]="JSDocVariadicType",e[e.JSDocNamepathType=326]="JSDocNamepathType",e[e.JSDoc=327]="JSDoc",e[e.JSDocComment=327]="JSDocComment",e[e.JSDocText=328]="JSDocText",e[e.JSDocTypeLiteral=329]="JSDocTypeLiteral",e[e.JSDocSignature=330]="JSDocSignature",e[e.JSDocLink=331]="JSDocLink",e[e.JSDocLinkCode=332]="JSDocLinkCode",e[e.JSDocLinkPlain=333]="JSDocLinkPlain",e[e.JSDocTag=334]="JSDocTag",e[e.JSDocAugmentsTag=335]="JSDocAugmentsTag",e[e.JSDocImplementsTag=336]="JSDocImplementsTag",e[e.JSDocAuthorTag=337]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=338]="JSDocDeprecatedTag",e[e.JSDocClassTag=339]="JSDocClassTag",e[e.JSDocPublicTag=340]="JSDocPublicTag",e[e.JSDocPrivateTag=341]="JSDocPrivateTag",e[e.JSDocProtectedTag=342]="JSDocProtectedTag",e[e.JSDocReadonlyTag=343]="JSDocReadonlyTag",e[e.JSDocOverrideTag=344]="JSDocOverrideTag",e[e.JSDocCallbackTag=345]="JSDocCallbackTag",e[e.JSDocOverloadTag=346]="JSDocOverloadTag",e[e.JSDocEnumTag=347]="JSDocEnumTag",e[e.JSDocParameterTag=348]="JSDocParameterTag",e[e.JSDocReturnTag=349]="JSDocReturnTag",e[e.JSDocThisTag=350]="JSDocThisTag",e[e.JSDocTypeTag=351]="JSDocTypeTag",e[e.JSDocTemplateTag=352]="JSDocTemplateTag",e[e.JSDocTypedefTag=353]="JSDocTypedefTag",e[e.JSDocSeeTag=354]="JSDocSeeTag",e[e.JSDocPropertyTag=355]="JSDocPropertyTag",e[e.JSDocThrowsTag=356]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=357]="JSDocSatisfiesTag",e[e.SyntaxList=358]="SyntaxList",e[e.NotEmittedStatement=359]="NotEmittedStatement",e[e.PartiallyEmittedExpression=360]="PartiallyEmittedExpression",e[e.CommaListExpression=361]="CommaListExpression",e[e.SyntheticReferenceExpression=362]="SyntheticReferenceExpression",e[e.Count=363]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=165]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=182]="FirstTypeNode",e[e.LastTypeNode=205]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=165]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=243]="FirstStatement",e[e.LastStatement=259]="LastStatement",e[e.FirstNode=166]="FirstNode",e[e.FirstJSDocNode=316]="FirstJSDocNode",e[e.LastJSDocNode=357]="LastJSDocNode",e[e.FirstJSDocTagNode=334]="FirstJSDocTagNode",e[e.LastJSDocTagNode=357]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=165]="LastContextualKeyword",e))(G8||{}),V8=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.Using=4]="Using",e[e.AwaitUsing=6]="AwaitUsing",e[e.NestedNamespace=8]="NestedNamespace",e[e.Synthesized=16]="Synthesized",e[e.Namespace=32]="Namespace",e[e.OptionalChain=64]="OptionalChain",e[e.ExportContext=128]="ExportContext",e[e.ContainsThis=256]="ContainsThis",e[e.HasImplicitReturn=512]="HasImplicitReturn",e[e.HasExplicitReturn=1024]="HasExplicitReturn",e[e.GlobalAugmentation=2048]="GlobalAugmentation",e[e.HasAsyncFunctions=4096]="HasAsyncFunctions",e[e.DisallowInContext=8192]="DisallowInContext",e[e.YieldContext=16384]="YieldContext",e[e.DecoratorContext=32768]="DecoratorContext",e[e.AwaitContext=65536]="AwaitContext",e[e.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=262144]="ThisNodeHasError",e[e.JavaScriptFile=524288]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=2097152]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",e[e.JSDoc=16777216]="JSDoc",e[e.Ambient=33554432]="Ambient",e[e.InWithStatement=67108864]="InWithStatement",e[e.JsonFile=134217728]="JsonFile",e[e.TypeCached=268435456]="TypeCached",e[e.Deprecated=536870912]="Deprecated",e[e.BlockScoped=7]="BlockScoped",e[e.Constant=6]="Constant",e[e.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",e[e.ContextFlags=101441536]="ContextFlags",e[e.TypeExcludesFlags=81920]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",e))(V8||{}),j8=(e=>(e[e.None=0]="None",e[e.Public=1]="Public",e[e.Private=2]="Private",e[e.Protected=4]="Protected",e[e.Readonly=8]="Readonly",e[e.Override=16]="Override",e[e.Export=32]="Export",e[e.Abstract=64]="Abstract",e[e.Ambient=128]="Ambient",e[e.Static=256]="Static",e[e.Accessor=512]="Accessor",e[e.Async=1024]="Async",e[e.Default=2048]="Default",e[e.Const=4096]="Const",e[e.In=8192]="In",e[e.Out=16384]="Out",e[e.Decorator=32768]="Decorator",e[e.Deprecated=65536]="Deprecated",e[e.JSDocPublic=8388608]="JSDocPublic",e[e.JSDocPrivate=16777216]="JSDocPrivate",e[e.JSDocProtected=33554432]="JSDocProtected",e[e.JSDocReadonly=67108864]="JSDocReadonly",e[e.JSDocOverride=134217728]="JSDocOverride",e[e.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",e[e.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",e[e.SyntacticModifiers=65535]="SyntacticModifiers",e[e.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",e[e.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",e[e.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",e[e.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=7]="AccessibilityModifier",e[e.ParameterPropertyModifier=31]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=28895]="TypeScriptModifier",e[e.ExportDefault=2080]="ExportDefault",e[e.All=131071]="All",e[e.Modifier=98303]="Modifier",e))(j8||{}),EG=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(EG||{}),U8=(e=>(e[e.None=0]="None",e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.Reported=4]="Reported",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e))(U8||{}),H8=(e=>(e[e.None=0]="None",e[e.Auto=1]="Auto",e[e.Loop=2]="Loop",e[e.Unique=3]="Unique",e[e.Node=4]="Node",e[e.KindMask=7]="KindMask",e[e.ReservedInNestedScopes=8]="ReservedInNestedScopes",e[e.Optimistic=16]="Optimistic",e[e.FileLevel=32]="FileLevel",e[e.AllowNameSubstitution=64]="AllowNameSubstitution",e))(H8||{}),SG=(e=>(e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.UnicodeEscape=1024]="UnicodeEscape",e[e.ContainsInvalidEscape=2048]="ContainsInvalidEscape",e[e.HexEscape=4096]="HexEscape",e[e.ContainsLeadingZero=8192]="ContainsLeadingZero",e[e.ContainsInvalidSeparator=16384]="ContainsInvalidSeparator",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.WithSpecifier=448]="WithSpecifier",e[e.StringLiteralFlags=7176]="StringLiteralFlags",e[e.NumericLiteralFlags=25584]="NumericLiteralFlags",e[e.TemplateLiteralLikeFlags=7176]="TemplateLiteralLikeFlags",e[e.IsInvalid=26656]="IsInvalid",e))(SG||{}),OM=(e=>(e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition",e))(OM||{}),TG=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(TG||{}),Ox=class{},q8=(e=>(e[e.RootFile=0]="RootFile",e[e.SourceFromProjectReference=1]="SourceFromProjectReference",e[e.OutputFromProjectReference=2]="OutputFromProjectReference",e[e.Import=3]="Import",e[e.ReferenceFile=4]="ReferenceFile",e[e.TypeReferenceDirective=5]="TypeReferenceDirective",e[e.LibFile=6]="LibFile",e[e.LibReferenceDirective=7]="LibReferenceDirective",e[e.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",e))(q8||{}),AG=(e=>(e[e.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(AG||{}),IG=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e))(IG||{}),J8=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(J8||{}),xG=(e=>(e[e.Success=0]="Success",e[e.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",e[e.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",e[e.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",e[e.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",e))(xG||{}),RG=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(RG||{}),DG=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(DG||{}),CG=(e=>(e[e.None=0]="None",e[e.Signature=1]="Signature",e[e.NoConstraints=2]="NoConstraints",e[e.Completions=4]="Completions",e[e.SkipBindingPatterns=8]="SkipBindingPatterns",e))(CG||{}),NG=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",e[e.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",e[e.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",e[e.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",e[e.AllowEmptyTuple=524288]="AllowEmptyTuple",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",e[e.WriteComputedProps=1073741824]="WriteComputedProps",e[e.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e))(NG||{}),PG=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AddUndefined=131072]="AddUndefined",e[e.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",e[e.InArrayType=524288]="InArrayType",e[e.InElementType=2097152]="InElementType",e[e.InFirstTypeArgument=4194304]="InFirstTypeArgument",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.NodeBuilderFlagsMask=848330095]="NodeBuilderFlagsMask",e))(PG||{}),MG=(e=>(e[e.None=0]="None",e[e.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",e[e.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",e[e.AllowAnyNodeKind=4]="AllowAnyNodeKind",e[e.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",e[e.WriteComputedProps=16]="WriteComputedProps",e[e.DoNotIncludeSymbolChain=32]="DoNotIncludeSymbolChain",e))(MG||{}),LG=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e))(LG||{}),kG=(e=>(e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread",e))(kG||{}),wG=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(wG||{}),OG=(e=>(e[e.Unknown=0]="Unknown",e[e.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",e[e.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",e[e.NumberLikeType=3]="NumberLikeType",e[e.BigIntLikeType=4]="BigIntLikeType",e[e.StringLikeType=5]="StringLikeType",e[e.BooleanType=6]="BooleanType",e[e.ArrayLikeType=7]="ArrayLikeType",e[e.ESSymbolType=8]="ESSymbolType",e[e.Promise=9]="Promise",e[e.TypeWithCallSignature=10]="TypeWithCallSignature",e[e.ObjectType=11]="ObjectType",e))(OG||{}),K8=(e=>(e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=-1]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(K8||{}),FG=(e=>(e[e.Numeric=0]="Numeric",e[e.Literal=1]="Literal",e))(FG||{}),WG=(e=>(e[e.None=0]="None",e[e.Instantiated=1]="Instantiated",e[e.SyntheticProperty=2]="SyntheticProperty",e[e.SyntheticMethod=4]="SyntheticMethod",e[e.Readonly=8]="Readonly",e[e.ReadPartial=16]="ReadPartial",e[e.WritePartial=32]="WritePartial",e[e.HasNonUniformType=64]="HasNonUniformType",e[e.HasLiteralType=128]="HasLiteralType",e[e.ContainsPublic=256]="ContainsPublic",e[e.ContainsProtected=512]="ContainsProtected",e[e.ContainsPrivate=1024]="ContainsPrivate",e[e.ContainsStatic=2048]="ContainsStatic",e[e.Late=4096]="Late",e[e.ReverseMapped=8192]="ReverseMapped",e[e.OptionalParameter=16384]="OptionalParameter",e[e.RestParameter=32768]="RestParameter",e[e.DeferredType=65536]="DeferredType",e[e.HasNeverType=131072]="HasNeverType",e[e.Mapped=262144]="Mapped",e[e.StripOptional=524288]="StripOptional",e[e.Unresolved=1048576]="Unresolved",e[e.Synthetic=6]="Synthetic",e[e.Discriminant=192]="Discriminant",e[e.Partial=48]="Partial",e))(WG||{}),zG=(e=>(e.Call="__call",e.Constructor="__constructor",e.New="__new",e.Index="__index",e.ExportStar="__export",e.Global="__global",e.Missing="__missing",e.Type="__type",e.Object="__object",e.JSXAttributes="__jsxAttributes",e.Class="__class",e.Function="__function",e.Computed="__computed",e.Resolving="__resolving__",e.ExportEquals="export=",e.Default="default",e.This="this",e.InstantiationExpression="__instantiationExpression",e.ImportAttributes="__importAttributes",e))(zG||{}),BG=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",e[e.AssignmentsMarked=131072]="AssignmentsMarked",e[e.ContainsConstructorReference=262144]="ContainsConstructorReference",e[e.ConstructorReference=536870912]="ConstructorReference",e[e.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=4194304]="InCheckIdentifier",e))(BG||{}),X8=(e=>(e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.Reserved1=536870912]="Reserved1",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.Primitive=402784252]="Primitive",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899393]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=473694207]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.IncludesConstrainedTypeVariable=536870912]="IncludesConstrainedTypeVariable",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(X8||{}),Y8=(e=>(e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.InstantiatedMapped=96]="InstantiatedMapped",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e[e.IsConstrainedTypeVariable=67108864]="IsConstrainedTypeVariable",e))(Y8||{}),GG=(e=>(e[e.Invariant=0]="Invariant",e[e.Covariant=1]="Covariant",e[e.Contravariant=2]="Contravariant",e[e.Bivariant=3]="Bivariant",e[e.Independent=4]="Independent",e[e.VarianceMask=7]="VarianceMask",e[e.Unmeasurable=8]="Unmeasurable",e[e.Unreliable=16]="Unreliable",e[e.AllowsStructuralFallback=24]="AllowsStructuralFallback",e))(GG||{}),VG=(e=>(e[e.Required=1]="Required",e[e.Optional=2]="Optional",e[e.Rest=4]="Rest",e[e.Variadic=8]="Variadic",e[e.Fixed=3]="Fixed",e[e.Variable=12]="Variable",e[e.NonRequired=14]="NonRequired",e[e.NonRest=11]="NonRest",e))(VG||{}),jG=(e=>(e[e.None=0]="None",e[e.IncludeUndefined=1]="IncludeUndefined",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.Writing=4]="Writing",e[e.CacheSymbol=8]="CacheSymbol",e[e.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",e[e.ExpressionPosition=32]="ExpressionPosition",e[e.ReportDeprecated=64]="ReportDeprecated",e[e.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",e[e.Contextual=256]="Contextual",e[e.Persistent=1]="Persistent",e))(jG||{}),UG=(e=>(e[e.None=0]="None",e[e.StringsOnly=1]="StringsOnly",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.NoReducibleCheck=4]="NoReducibleCheck",e))(UG||{}),HG=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(HG||{}),qG=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(qG||{}),$8=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.IsNonInferrable=64]="IsNonInferrable",e[e.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",e[e.PropagatingFlags=167]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))($8||{}),JG=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(JG||{}),KG=(e=>(e[e.Simple=0]="Simple",e[e.Array=1]="Array",e[e.Deferred=2]="Deferred",e[e.Function=3]="Function",e[e.Composite=4]="Composite",e[e.Merged=5]="Merged",e))(KG||{}),XG=(e=>(e[e.None=0]="None",e[e.NakedTypeVariable=1]="NakedTypeVariable",e[e.SpeculativeTuple=2]="SpeculativeTuple",e[e.SubstituteSource=4]="SubstituteSource",e[e.HomomorphicMappedType=8]="HomomorphicMappedType",e[e.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",e[e.MappedTypeConstraint=32]="MappedTypeConstraint",e[e.ContravariantConditional=64]="ContravariantConditional",e[e.ReturnType=128]="ReturnType",e[e.LiteralKeyof=256]="LiteralKeyof",e[e.NoConstraints=512]="NoConstraints",e[e.AlwaysStrict=1024]="AlwaysStrict",e[e.MaxValue=2048]="MaxValue",e[e.PriorityImpliesCombination=416]="PriorityImpliesCombination",e[e.Circularity=-1]="Circularity",e))(XG||{}),YG=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(YG||{}),$G=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))($G||{}),QG=(e=>(e[e.None=0]="None",e[e.ExportsProperty=1]="ExportsProperty",e[e.ModuleExports=2]="ModuleExports",e[e.PrototypeProperty=3]="PrototypeProperty",e[e.ThisProperty=4]="ThisProperty",e[e.Property=5]="Property",e[e.Prototype=6]="Prototype",e[e.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",e[e.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",e[e.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",e))(QG||{}),FM=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(FM||{}),Fx=(e=>(e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e[e.Node10=2]="Node10",e[e.Node16=3]="Node16",e[e.NodeNext=99]="NodeNext",e[e.Bundler=100]="Bundler",e))(Fx||{}),ZG=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(ZG||{}),eV=(e=>(e[e.FixedPollingInterval=0]="FixedPollingInterval",e[e.PriorityPollingInterval=1]="PriorityPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e[e.UseFsEvents=4]="UseFsEvents",e[e.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",e))(eV||{}),tV=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(tV||{}),nV=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(nV||{}),tC=(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.ES2020=6]="ES2020",e[e.ES2022=7]="ES2022",e[e.ESNext=99]="ESNext",e[e.Node16=100]="Node16",e[e.NodeNext=199]="NodeNext",e[e.Preserve=200]="Preserve",e))(tC||{}),rV=(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))(rV||{}),iV=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(iV||{}),oV=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(oV||{}),Q8=(e=>(e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred",e))(Q8||{}),aV=(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.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(aV||{}),sV=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(sV||{}),lV=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(lV||{}),cV=(e=>(e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab",e))(cV||{}),uV=(e=>(e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e))(uV||{}),Z8=(e=>(e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",e))(Z8||{}),e6=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(e6||{}),t6=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e))(t6||{}),dV=(e=>(e[e.None=0]="None",e[e.TypeScriptClassWrapper=1]="TypeScriptClassWrapper",e[e.NeverApplyImportHelper=2]="NeverApplyImportHelper",e[e.IgnoreSourceNewlines=4]="IgnoreSourceNewlines",e[e.Immutable=8]="Immutable",e[e.IndirectCall=16]="IndirectCall",e[e.TransformPrivateStaticElements=32]="TransformPrivateStaticElements",e))(dV||{}),pV=(e=>(e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.ESDecorateAndRunInitializers=8]="ESDecorateAndRunInitializers",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.Values=256]="Values",e[e.Read=512]="Read",e[e.SpreadArray=1024]="SpreadArray",e[e.Await=2048]="Await",e[e.AsyncGenerator=4096]="AsyncGenerator",e[e.AsyncDelegator=8192]="AsyncDelegator",e[e.AsyncValues=16384]="AsyncValues",e[e.ExportStar=32768]="ExportStar",e[e.ImportStar=65536]="ImportStar",e[e.ImportDefault=131072]="ImportDefault",e[e.MakeTemplateObject=262144]="MakeTemplateObject",e[e.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",e[e.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",e[e.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",e[e.CreateBinding=4194304]="CreateBinding",e[e.SetFunctionName=8388608]="SetFunctionName",e[e.PropKey=16777216]="PropKey",e[e.AddDisposableResourceAndDisposeResources=33554432]="AddDisposableResourceAndDisposeResources",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=33554432]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes",e))(pV||{}),fV=(e=>(e[e.SourceFile=0]="SourceFile",e[e.Expression=1]="Expression",e[e.IdentifierName=2]="IdentifierName",e[e.MappedTypeParameter=3]="MappedTypeParameter",e[e.Unspecified=4]="Unspecified",e[e.EmbeddedStatement=5]="EmbeddedStatement",e[e.JsxAttributeValue=6]="JsxAttributeValue",e[e.ImportTypeNodeAttributes=7]="ImportTypeNodeAttributes",e))(fV||{}),mV=(e=>(e[e.Parentheses=1]="Parentheses",e[e.TypeAssertions=2]="TypeAssertions",e[e.NonNullAssertions=4]="NonNullAssertions",e[e.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",e[e.Assertions=6]="Assertions",e[e.All=15]="All",e[e.ExcludeJSDocTypeAssertion=16]="ExcludeJSDocTypeAssertion",e))(mV||{}),_V=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(_V||{}),hV=(e=>(e.Prologue="prologue",e.EmitHelpers="emitHelpers",e.NoDefaultLib="no-default-lib",e.Reference="reference",e.Type="type",e.TypeResolutionModeRequire="type-require",e.TypeResolutionModeImport="type-import",e.Lib="lib",e.Prepend="prepend",e.Text="text",e.Internal="internal",e))(hV||{}),gV=(e=>(e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.AsteriskDelimited=32]="AsteriskDelimited",e[e.DelimitersMask=60]="DelimitersMask",e[e.AllowTrailingComma=64]="AllowTrailingComma",e[e.Indented=128]="Indented",e[e.SpaceBetweenBraces=256]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",e[e.Braces=1024]="Braces",e[e.Parenthesis=2048]="Parenthesis",e[e.AngleBrackets=4096]="AngleBrackets",e[e.SquareBrackets=8192]="SquareBrackets",e[e.BracketsMask=15360]="BracketsMask",e[e.OptionalIfUndefined=16384]="OptionalIfUndefined",e[e.OptionalIfEmpty=32768]="OptionalIfEmpty",e[e.Optional=49152]="Optional",e[e.PreferNewLine=65536]="PreferNewLine",e[e.NoTrailingNewLine=131072]="NoTrailingNewLine",e[e.NoInterveningComments=262144]="NoInterveningComments",e[e.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",e[e.SingleElement=1048576]="SingleElement",e[e.SpaceAfterList=2097152]="SpaceAfterList",e[e.Modifiers=2359808]="Modifiers",e[e.HeritageClauses=512]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",e[e.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",e[e.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",e[e.UnionTypeConstituents=516]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",e[e.ImportAttributes=526226]="ImportAttributes",e[e.ImportClauseEntries=526226]="ImportClauseEntries",e[e.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",e[e.CommaListElements=528]="CommaListElements",e[e.CallExpressionArguments=2576]="CallExpressionArguments",e[e.NewExpressionArguments=18960]="NewExpressionArguments",e[e.TemplateExpressionSpans=262144]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=768]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=129]="MultiLineBlockStatements",e[e.VariableDeclarationList=528]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=0]="ClassHeritageClauses",e[e.ClassMembers=129]="ClassMembers",e[e.InterfaceMembers=129]="InterfaceMembers",e[e.EnumMembers=145]="EnumMembers",e[e.CaseBlockClauses=129]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",e[e.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",e[e.JsxElementAttributes=262656]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=528]="HeritageClauseTypes",e[e.SourceFileStatements=131073]="SourceFileStatements",e[e.Decorators=2146305]="Decorators",e[e.TypeArguments=53776]="TypeArguments",e[e.TypeParameters=53776]="TypeParameters",e[e.Parameters=2576]="Parameters",e[e.IndexSignatureParameters=8848]="IndexSignatureParameters",e[e.JSDocComment=33]="JSDocComment",e))(gV||{}),vV=(e=>(e[e.None=0]="None",e[e.TripleSlashXML=1]="TripleSlashXML",e[e.SingleLine=2]="SingleLine",e[e.MultiLine=4]="MultiLine",e[e.All=7]="All",e[e.Default=7]="Default",e))(vV||{}),WM={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}},yV=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))(yV||{})}});function nC(e){let t=5381;for(let r=0;r{K.isClosed=!0,vA(t,K)}}}function u(N){let O=[];return O.pollingInterval=N,O.pollIndex=0,O.pollScheduled=!1,O}function p(N,O){O.pollIndex=m(O,O.pollingInterval,O.pollIndex,i6[O.pollingInterval]),O.length?M(O.pollingInterval):(C.assert(O.pollIndex===0),O.pollScheduled=!1)}function g(N,O){m(r,250,0,r.length),p(N,O),!O.pollScheduled&&r.length&&M(250)}function m(N,O,H,K){return f1e(e,N,H,K,Z);function Z(V,ue,G){G?(V.unchangedPolls=0,N!==r&&(N[ue]=void 0,I(V))):V.unchangedPolls!==BM[O]?V.unchangedPolls++:N===r?(V.unchangedPolls=1,N[ue]=void 0,T(V,250)):O!==2e3&&(V.unchangedPolls++,N[ue]=void 0,T(V,O===250?500:2e3))}}function b(N){switch(N){case 250:return i;case 500:return o;case 2e3:return s}}function T(N,O){b(O).push(N),R(O)}function I(N){r.push(N),R(250)}function R(N){b(N).pollScheduled||M(N)}function M(N){b(N).pollScheduled=e.setTimeout(N===250?g:p,N,N===250?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",b(N))}}function d9e(e,t,r,i){let o=Xp(),s=i?new Map:void 0,l=new Map,u=Pu(t);return p;function p(m,b,T,I){let R=u(m);o.add(R,b).length===1&&s&&s.set(R,r(m)||kp);let M=li(R)||".",N=l.get(M)||g(li(m)||".",M,I);return N.referenceCount++,{close:()=>{N.referenceCount===1?(N.close(),l.delete(M)):N.referenceCount--,o.remove(R,b)}}}function g(m,b,T){let I=e(m,1,(R,M)=>{if(!wo(M))return;let N=bo(M,m),O=u(N),H=N&&o.get(O);if(H){let K,Z=1;if(s){let V=s.get(O);if(R==="change"&&(K=r(N)||kp,K.getTime()===V.getTime()))return;K||(K=r(N)||kp),s.set(O,K),V===kp?Z=0:K===kp&&(Z=2)}for(let V of H)V(N,Z,K)}},!1,500,T);return I.referenceCount=0,l.set(b,I),I}}function p9e(e){let t=[],r=0,i;return o;function o(u,p){let g={fileName:u,callback:p,mtime:bA(e,u)};return t.push(g),l(),{close:()=>{g.isClosed=!0,vA(t,g)}}}function s(){i=void 0,r=f1e(e,t,r,i6[250]),l()}function l(){!t.length||i||(i=e.setTimeout(s,2e3,"pollQueue"))}}function m1e(e,t,r,i,o){let l=Pu(t)(r),u=e.get(l);return u?u.callbacks.push(i):e.set(l,{watcher:o((p,g,m)=>{var b;return(b=e.get(l))==null?void 0:b.callbacks.slice().forEach(T=>T(p,g,m))}),callbacks:[i]}),{close:()=>{let p=e.get(l);p&&(!Mx(p.callbacks,i)||p.callbacks.length||(e.delete(l),Cf(p)))}}}function f9e(e,t){let r=e.mtime.getTime(),i=t.getTime();return r!==i?(e.mtime=t,e.callback(e.fileName,bV(r,i),t),!0):!1}function bV(e,t){return e===0?0:t===0?2:1}function zM(e){return Hne(e)}function Vne(e){Hne=e}function m9e({watchDirectory:e,useCaseSensitiveFileNames:t,getCurrentDirectory:r,getAccessibleSortedChildDirectories:i,fileSystemEntryExists:o,realpath:s,setTimeout:l,clearTimeout:u}){let p=new Map,g=Xp(),m=new Map,b,T=Nx(!t),I=Pu(t);return(G,ne,he,ye)=>he?R(G,ye,ne):e(G,ne,he,ye);function R(G,ne,he){let ye=I(G),$=p.get(ye);$?$.refCount++:($={watcher:e(G,oe=>{V(oe,ne)||(ne?.synchronousWatchDirectory?(M(ye,oe),Z(G,ye,ne)):N(G,ye,oe,ne))},!1,ne),refCount:1,childWatches:et},p.set(ye,$),Z(G,ye,ne));let Y=he&&{dirName:G,callback:he};return Y&&g.add(ye,Y),{dirName:G,close:()=>{let oe=C.checkDefined(p.get(ye));Y&&g.remove(ye,Y),oe.refCount--,!oe.refCount&&(p.delete(ye),Cf(oe),oe.childWatches.forEach($m))}}}function M(G,ne,he){let ye,$;wo(ne)?ye=ne:$=ne,g.forEach((Y,oe)=>{if(!($&&$.get(oe)===!0)&&(oe===G||uo(G,oe)&&G[oe.length]===il))if($)if(he){let fe=$.get(oe);fe?fe.push(...he):$.set(oe,he.slice())}else $.set(oe,!0);else Y.forEach(({callback:fe})=>fe(ye))})}function N(G,ne,he,ye){let $=p.get(ne);if($&&o(G,1)){O(G,ne,he,ye);return}M(ne,he),K($)}function O(G,ne,he,ye){let $=m.get(ne);$?$.fileNames.push(he):m.set(ne,{dirName:G,options:ye,fileNames:[he]}),b&&(u(b),b=void 0),b=l(H,1e3,"timerToUpdateChildWatches")}function H(){b=void 0,zM(`sysLog:: onTimerToUpdateChildWatches:: ${m.size}`);let G=Ks(),ne=new Map;for(;!b&&m.size;){let ye=m.entries().next();C.assert(!ye.done);let{value:[$,{dirName:Y,options:oe,fileNames:fe}]}=ye;m.delete($);let Ne=Z(Y,$,oe);M($,ne,Ne?void 0:fe)}zM(`sysLog:: invokingWatchers:: Elapsed:: ${Ks()-G}ms:: ${m.size}`),g.forEach((ye,$)=>{let Y=ne.get($);Y&&ye.forEach(({callback:oe,dirName:fe})=>{Do(Y)?Y.forEach(oe):oe(fe)})});let he=Ks()-G;zM(`sysLog:: Elapsed:: ${he}ms:: onTimerToUpdateChildWatches:: ${m.size} ${b}`)}function K(G){if(!G)return;let ne=G.childWatches;G.childWatches=et;for(let he of ne)he.close(),K(p.get(I(he.dirName)))}function Z(G,ne,he){let ye=p.get(ne);if(!ye)return!1;let $,Y=F8(o(G,1)?Vi(i(G),Ne=>{let me=bo(Ne,G);return!V(me,he)&&T(me,va(s(me)))===0?me:void 0}):et,ye.childWatches,(Ne,me)=>T(Ne,me.dirName),oe,$m,fe);return ye.childWatches=$||et,Y;function oe(Ne){let me=R(Ne,he);fe(me)}function fe(Ne){($||($=[])).push(Ne)}}function V(G,ne){return Et(GM,he=>ue(G,he))||_1e(G,ne,t,r)}function ue(G,ne){return G.includes(ne)?!0:t?!1:I(G).includes(ne)}}function _9e(e){return(t,r,i)=>e(r===1?"change":"rename","",i)}function h9e(e,t,r){return(i,o,s)=>{i==="rename"?(s||(s=r(e)||kp),t(e,s!==kp?0:2,s)):t(e,1,s)}}function _1e(e,t,r,i){return(t?.excludeDirectories||t?.excludeFiles)&&(S5(e,t?.excludeFiles,r,i())||S5(e,t?.excludeDirectories,r,i()))}function h1e(e,t,r,i,o){return(s,l)=>{if(s==="rename"){let u=l?va(Zr(e,l)):e;(!l||!_1e(u,r,i,o))&&t(u)}}}function jne({pollingWatchFileWorker:e,getModifiedTime:t,setTimeout:r,clearTimeout:i,fsWatchWorker:o,fileSystemEntryExists:s,useCaseSensitiveFileNames:l,getCurrentDirectory:u,fsSupportsRecursiveFsWatch:p,getAccessibleSortedChildDirectories:g,realpath:m,tscWatchFile:b,useNonPollingWatchers:T,tscWatchDirectory:I,inodeWatching:R,fsWatchWithTimestamp:M,sysLog:N}){let O=new Map,H=new Map,K=new Map,Z,V,ue,G,ne=!1;return{watchFile:he,watchDirectory:fe};function he(Ee,Ce,Me,Fe){Fe=Y(Fe,T);let At=C.checkDefined(Fe.watchFile);switch(At){case 0:return ie(Ee,Ce,250,void 0);case 1:return ie(Ee,Ce,Me,void 0);case 2:return ye()(Ee,Ce,Me,void 0);case 3:return $()(Ee,Ce,void 0,void 0);case 4:return ve(Ee,0,h9e(Ee,Ce,t),!1,Me,Ow(Fe));case 5:return ue||(ue=d9e(ve,l,t,M)),ue(Ee,Ce,Me,Ow(Fe));default:C.assertNever(At)}}function ye(){return Z||(Z=u9e({getModifiedTime:t,setTimeout:r}))}function $(){return V||(V=p9e({getModifiedTime:t,setTimeout:r}))}function Y(Ee,Ce){if(Ee&&Ee.watchFile!==void 0)return Ee;switch(b){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return oe(4,1,Ee);case"UseFsEventsWithFallbackDynamicPolling":return oe(4,2,Ee);case"UseFsEventsOnParentDirectory":Ce=!0;default:return Ce?oe(5,1,Ee):{watchFile:4}}}function oe(Ee,Ce,Me){let Fe=Me?.fallbackPolling;return{watchFile:Ee,fallbackPolling:Fe===void 0?Ce:Fe}}function fe(Ee,Ce,Me,Fe){return p?ve(Ee,1,h1e(Ee,Ce,Fe,l,u),Me,500,Ow(Fe)):(G||(G=m9e({useCaseSensitiveFileNames:l,getCurrentDirectory:u,fileSystemEntryExists:s,getAccessibleSortedChildDirectories:g,watchDirectory:Ne,realpath:m,setTimeout:r,clearTimeout:i})),G(Ee,Ce,Me,Fe))}function Ne(Ee,Ce,Me,Fe){C.assert(!Me);let At=me(Fe),Se=C.checkDefined(At.watchDirectory);switch(Se){case 1:return ie(Ee,()=>Ce(Ee),500,void 0);case 2:return ye()(Ee,()=>Ce(Ee),500,void 0);case 3:return $()(Ee,()=>Ce(Ee),void 0,void 0);case 0:return ve(Ee,1,h1e(Ee,Ce,Fe,l,u),Me,500,Ow(At));default:C.assertNever(Se)}}function me(Ee){if(Ee&&Ee.watchDirectory!==void 0)return Ee;switch(I){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:let Ce=Ee?.fallbackPolling;return{watchDirectory:0,fallbackPolling:Ce!==void 0?Ce:void 0}}}function ie(Ee,Ce,Me,Fe){return m1e(O,l,Ee,Ce,At=>e(Ee,At,Me,Fe))}function ve(Ee,Ce,Me,Fe,At,Se){return m1e(Fe?K:H,l,Ee,Me,je=>Le(Ee,Ce,je,Fe,At,Se))}function Le(Ee,Ce,Me,Fe,At,Se){let je,at;R&&(je=Ee.substring(Ee.lastIndexOf(il)),at=je.slice(il.length));let Bt=s(Ee,Ce)?Qe():rn();return{close:()=>{Bt&&(Bt.close(),Bt=void 0)}};function yt(Nn){Bt&&(N(`sysLog:: ${Ee}:: Changing watcher to ${Nn===Qe?"Present":"Missing"}FileSystemEntryWatcher`),Bt.close(),Bt=Nn())}function Qe(){if(ne)return N(`sysLog:: ${Ee}:: Defaulting to watchFile`),nn();try{let Nn=(Ce===1||!M?o:He)(Ee,Fe,R?gt:Me);return Nn.on("error",()=>{Me("rename",""),yt(rn)}),Nn}catch(Nn){return ne||(ne=Nn.code==="ENOSPC"),N(`sysLog:: ${Ee}:: Changing to watchFile`),nn()}}function gt(Nn,Xn){let _n;if(Xn&&Sl(Xn,"~")&&(_n=Xn,Xn=Xn.slice(0,Xn.length-1)),Nn==="rename"&&(!Xn||Xn===at||Sl(Xn,je))){let Qt=t(Ee)||kp;_n&&Me(Nn,_n,Qt),Me(Nn,Xn,Qt),R?yt(Qt===kp?rn:Qe):Qt===kp&&yt(rn)}else _n&&Me(Nn,_n),Me(Nn,Xn)}function nn(){return he(Ee,_9e(Me),At,Se)}function rn(){return he(Ee,(Nn,Xn,_n)=>{Xn===0&&(_n||(_n=t(Ee)||kp),_n!==kp&&(Me("rename","",_n),yt(Qe)))},At,Se)}}function He(Ee,Ce,Me){let Fe=t(Ee)||kp;return o(Ee,Ce,(At,Se,je)=>{At==="change"&&(je||(je=t(Ee)||kp),je.getTime()===Fe.getTime())||(Fe=je||t(Ee)||kp,Me(At,Se,Fe))})}}function Une(e){let t=e.writeFile;e.writeFile=(r,i,o)=>rU(r,i,!!o,(s,l,u)=>t.call(e,s,l,u),s=>e.createDirectory(s),s=>e.directoryExists(s))}function g1e(e){gu=e}var EV,n6,kp,r6,i6,BM,GM,Hne,SV,gu,g9e=A({"src/compiler/sys.ts"(){"use strict";ia(),EV=(e=>(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(EV||{}),n6=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(n6||{}),kp=new Date(0),r6={Low:32,Medium:64,High:256},i6=Gne(r6),BM=Gne(r6),GM=["/node_modules/.","/.git","/.#"],Hne=$a,SV=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(SV||{}),gu=(()=>{let e="\uFEFF";function t(){let i=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,o=QE("fs"),s=QE("path"),l=QE("os"),u;try{u=QE("crypto")}catch{u=void 0}let p,g="./profile.cpuprofile",m=QE("buffer").Buffer,b=process.platform==="darwin",T=process.platform==="linux"||b,I=l.platform(),R=$(),M=o.realpathSync.native?process.platform==="win32"?Fe:o.realpathSync.native:o.realpathSync,N=__filename.endsWith("sys.js")?s.join(s.dirname(__dirname),"__fake__.js"):__filename,O=process.platform==="win32"||b,H=Ed(()=>process.cwd()),{watchFile:K,watchDirectory:Z}=jne({pollingWatchFileWorker:oe,getModifiedTime:Se,setTimeout,clearTimeout,fsWatchWorker:fe,useCaseSensitiveFileNames:R,getCurrentDirectory:H,fileSystemEntryExists:He,fsSupportsRecursiveFsWatch:O,getAccessibleSortedChildDirectories:yt=>ve(yt).directories,realpath:At,tscWatchFile:process.env.TSC_WATCHFILE,useNonPollingWatchers:!!process.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:process.env.TSC_WATCHDIRECTORY,inodeWatching:T,fsWatchWithTimestamp:b,sysLog:zM}),V={args:process.argv.slice(2),newLine:l.EOL,useCaseSensitiveFileNames:R,write(yt){process.stdout.write(yt)},getWidthOfTerminal(){return process.stdout.columns},writeOutputIsTTY(){return process.stdout.isTTY},readFile:me,writeFile:ie,watchFile:K,watchDirectory:Z,resolvePath:yt=>s.resolve(yt),fileExists:Ee,directoryExists:Ce,getAccessibleFileSystemEntries:ve,createDirectory(yt){if(!V.directoryExists(yt))try{o.mkdirSync(yt)}catch(Qe){if(Qe.code!=="EEXIST")throw Qe}},getExecutingFilePath(){return N},getCurrentDirectory:H,getDirectories:Me,getEnvironmentVariable(yt){return process.env[yt]||""},readDirectory:Le,getModifiedTime:Se,setModifiedTime:je,deleteFile:at,createHash:u?Bt:nC,createSHA256Hash:u?Bt:void 0,getMemoryUsage(){return global.gc&&global.gc(),process.memoryUsage().heapUsed},getFileSize(yt){try{let Qe=ue(yt);if(Qe?.isFile())return Qe.size}catch{}return 0},exit(yt){he(()=>process.exit(yt))},enableCPUProfiler:G,disableCPUProfiler:he,cpuProfilingEnabled:()=>!!p||wr(process.execArgv,"--cpu-prof")||wr(process.execArgv,"--prof"),realpath:At,debugMode:!!process.env.NODE_INSPECTOR_IPC||!!process.env.VSCODE_INSPECTOR_OPTIONS||Et(process.execArgv,yt=>/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(yt))||!!process.recordreplay,tryEnableSourceMapsForHost(){try{QE("source-map-support").install()}catch{}},setTimeout,clearTimeout,clearScreen:()=>{process.stdout.write("\x1Bc")},setBlocking:()=>{var yt;let Qe=(yt=process.stdout)==null?void 0:yt._handle;Qe&&Qe.setBlocking&&Qe.setBlocking(!0)},bufferFrom:ye,base64decode:yt=>ye(yt,"base64").toString("utf8"),base64encode:yt=>ye(yt).toString("base64"),require:(yt,Qe)=>{try{let gt=zse(Qe,yt,V);return{module:QE(gt),modulePath:gt,error:void 0}}catch(gt){return{module:void 0,modulePath:void 0,error:gt}}}};return V;function ue(yt){return o.statSync(yt,{throwIfNoEntry:!1})}function G(yt,Qe){if(p)return Qe(),!1;let gt=QE("inspector");if(!gt||!gt.Session)return Qe(),!1;let nn=new gt.Session;return nn.connect(),nn.post("Profiler.enable",()=>{nn.post("Profiler.start",()=>{p=nn,g=yt,Qe()})}),!0}function ne(yt){let Qe=0,gt=new Map,nn=Mu(s.dirname(N)),rn=`file://${dh(nn)===1?"":"/"}${nn}`;for(let Nn of yt.nodes)if(Nn.callFrame.url){let Xn=Mu(Nn.callFrame.url);ym(rn,Xn,R)?Nn.callFrame.url=SA(rn,Xn,rn,Pu(R),!0):i.test(Xn)||(Nn.callFrame.url=(gt.has(Xn)?gt:gt.set(Xn,`external${Qe}.js`)).get(Xn),Qe++)}return yt}function he(yt){if(p&&p!=="stopping"){let Qe=p;return p.post("Profiler.stop",(gt,{profile:nn})=>{var rn;if(!gt){try{(rn=ue(g))!=null&&rn.isDirectory()&&(g=s.join(g,`${new Date().toISOString().replace(/:/g,"-")}+P${process.pid}.cpuprofile`))}catch{}try{o.mkdirSync(s.dirname(g),{recursive:!0})}catch{}o.writeFileSync(g,JSON.stringify(ne(nn)))}p=void 0,Qe.disconnect(),yt()}),p="stopping",!0}else return yt(),!1}function ye(yt,Qe){return m.from&&m.from!==Int8Array.from?m.from(yt,Qe):new m(yt,Qe)}function $(){return I==="win32"||I==="win64"?!1:!Ee(Y(__filename))}function Y(yt){return yt.replace(/\w/g,Qe=>{let gt=Qe.toUpperCase();return Qe===gt?Qe.toLowerCase():gt})}function oe(yt,Qe,gt){o.watchFile(yt,{persistent:!0,interval:gt},rn);let nn;return{close:()=>o.unwatchFile(yt,rn)};function rn(Nn,Xn){let _n=+Xn.mtime==0||nn===2;if(+Nn.mtime==0){if(_n)return;nn=2}else if(_n)nn=0;else{if(+Nn.mtime==+Xn.mtime)return;nn=1}Qe(yt,nn,Nn.mtime)}}function fe(yt,Qe,gt){return o.watch(yt,O?{persistent:!0,recursive:!!Qe}:{persistent:!0},gt)}function Ne(yt,Qe){let gt;try{gt=o.readFileSync(yt)}catch{return}let nn=gt.length;if(nn>=2&>[0]===254&>[1]===255){nn&=-2;for(let rn=0;rn=2&>[0]===255&>[1]===254?gt.toString("utf16le",2):nn>=3&>[0]===239&>[1]===187&>[2]===191?gt.toString("utf8",3):gt.toString("utf8")}function me(yt,Qe){var gt,nn;(gt=rd)==null||gt.logStartReadFile(yt);let rn=Ne(yt,Qe);return(nn=rd)==null||nn.logStopReadFile(),rn}function ie(yt,Qe,gt){var nn;(nn=rd)==null||nn.logEvent("WriteFile: "+yt),gt&&(Qe=e+Qe);let rn;try{rn=o.openSync(yt,"w"),o.writeSync(rn,Qe,void 0,"utf8")}finally{rn!==void 0&&o.closeSync(rn)}}function ve(yt){var Qe;(Qe=rd)==null||Qe.logEvent("ReadDir: "+(yt||"."));try{let gt=o.readdirSync(yt||".",{withFileTypes:!0}),nn=[],rn=[];for(let Nn of gt){let Xn=typeof Nn=="string"?Nn:Nn.name;if(Xn==="."||Xn==="..")continue;let _n;if(typeof Nn=="string"||Nn.isSymbolicLink()){let Qt=Zr(yt,Xn);try{if(_n=ue(Qt),!_n)continue}catch{continue}}else _n=Nn;_n.isFile()?nn.push(Xn):_n.isDirectory()&&rn.push(Xn)}return nn.sort(),rn.sort(),{files:nn,directories:rn}}catch{return p7}}function Le(yt,Qe,gt,nn,rn){return xU(yt,Qe,gt,nn,R,process.cwd(),rn,ve,At)}function He(yt,Qe){let gt=Error.stackTraceLimit;Error.stackTraceLimit=0;try{let nn=ue(yt);if(!nn)return!1;switch(Qe){case 0:return nn.isFile();case 1:return nn.isDirectory();default:return!1}}catch{return!1}finally{Error.stackTraceLimit=gt}}function Ee(yt){return He(yt,0)}function Ce(yt){return He(yt,1)}function Me(yt){return ve(yt).directories.slice()}function Fe(yt){return yt.length<260?o.realpathSync.native(yt):o.realpathSync(yt)}function At(yt){try{return M(yt)}catch{return yt}}function Se(yt){var Qe;let gt=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return(Qe=ue(yt))==null?void 0:Qe.mtime}catch{return}finally{Error.stackTraceLimit=gt}}function je(yt,Qe){try{o.utimesSync(yt,Qe,Qe)}catch{return}}function at(yt){try{return o.unlinkSync(yt)}catch{return}}function Bt(yt){let Qe=u.createHash("sha256");return Qe.update(yt),Qe.digest("hex")}}let r;return pG()&&(r=t()),r&&Une(r),r})(),gu&&gu.getEnvironmentVariable&&(c9e(gu),C.setAssertionLevel(/^development$/i.test(gu.getEnvironmentVariable("NODE_ENV"))?1:0)),gu&&gu.debugMode&&(C.isDebugging=!0)}});function TV(e){return e===47||e===92}function qne(e){return o6(e)<0}function dp(e){return o6(e)>0}function AV(e){let t=o6(e);return t>0&&t===e.length}function rC(e){return o6(e)!==0}function wp(e){return/^\.\.?($|[\\/])/.test(e)}function IV(e){return!rC(e)&&!wp(e)}function EA(e){return rc(e).includes(".")}function Tl(e,t){return e.length>t.length&&Sl(e,t)}function Ec(e,t){for(let r of t)if(Tl(e,r))return!0;return!1}function Pv(e){return e.length>0&&TV(e.charCodeAt(e.length-1))}function v1e(e){return e>=97&&e<=122||e>=65&&e<=90}function v9e(e,t){let r=e.charCodeAt(t);if(r===58)return t+1;if(r===37&&e.charCodeAt(t+1)===51){let i=e.charCodeAt(t+2);if(i===97||i===65)return t+3}return-1}function o6(e){if(!e)return 0;let t=e.charCodeAt(0);if(t===47||t===92){if(e.charCodeAt(1)!==t)return 1;let i=e.indexOf(t===47?il:HM,2);return i<0?e.length:i+1}if(v1e(t)&&e.charCodeAt(1)===58){let i=e.charCodeAt(2);if(i===47||i===92)return 3;if(e.length===2)return 2}let r=e.indexOf(Xne);if(r!==-1){let i=r+Xne.length,o=e.indexOf(il,i);if(o!==-1){let s=e.slice(0,r),l=e.slice(i,o);if(s==="file"&&(l===""||l==="localhost")&&v1e(e.charCodeAt(o+1))){let u=v9e(e,o+2);if(u!==-1){if(e.charCodeAt(u)===47)return~(u+1);if(u===e.length)return~u}}return~(o+1)}return~e.length}return 0}function dh(e){let t=o6(e);return t<0?~t:t}function li(e){e=Mu(e);let t=dh(e);return t===e.length?e:(e=$b(e),e.slice(0,Math.max(t,e.lastIndexOf(il))))}function rc(e,t,r){if(e=Mu(e),dh(e)===e.length)return"";e=$b(e);let o=e.slice(Math.max(dh(e),e.lastIndexOf(il)+1)),s=t!==void 0&&r!==void 0?Wx(o,t,r):void 0;return s?o.slice(0,o.length-s.length):o}function y1e(e,t,r){if(uo(t,".")||(t="."+t),e.length>=t.length&&e.charCodeAt(e.length-t.length)===46){let i=e.slice(e.length-t.length);if(r(i,t))return i}}function y9e(e,t,r){if(typeof t=="string")return y1e(e,t,r)||"";for(let i of t){let o=y1e(e,i,r);if(o)return o}return""}function Wx(e,t,r){if(t)return y9e($b(e),t,r?Yb:rS);let i=rc(e),o=i.lastIndexOf(".");return o>=0?i.substring(o):""}function b9e(e,t){let r=e.substring(0,t),i=e.substring(t).split(il);return i.length&&!Zs(i)&&i.pop(),[r,...i]}function Wc(e,t=""){return e=Zr(t,e),b9e(e,dh(e))}function Ry(e,t){return e.length===0?"":(e[0]&&zc(e[0]))+e.slice(1,t).join(il)}function Mu(e){return e.includes("\\")?e.replace(S1e,il):e}function sS(e){if(!Et(e))return[];let t=[e[0]];for(let r=1;r1){if(t[t.length-1]!==".."){t.pop();continue}}else if(t[0])continue}t.push(i)}}return t}function Zr(e,...t){e&&(e=Mu(e));for(let r of t)r&&(r=Mu(r),!e||dh(r)!==0?e=r:e=zc(e)+r);return e}function Dy(e,...t){return va(Et(t)?Zr(e,...t):Mu(e))}function VM(e,t){return sS(Wc(e,t))}function bo(e,t){return Ry(VM(e,t))}function va(e){if(e=Mu(e),!s6.test(e))return e;let t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!s6.test(e)))return e;let r=Ry(sS(Wc(e)));return r&&Pv(e)?zc(r):r}function E9e(e){return e.length===0?"":e.slice(1).join(il)}function xV(e,t){return E9e(VM(e,t))}function rl(e,t,r){let i=dp(e)?va(e):bo(e,t);return r(i)}function $b(e){return Pv(e)?e.substr(0,e.length-1):e}function zc(e){return Pv(e)?e:e+il}function v1(e){return!rC(e)&&!wp(e)?"./"+e:e}function jM(e,t,r,i){let o=r!==void 0&&i!==void 0?Wx(e,r,i):Wx(e);return o?e.slice(0,e.length-o.length)+(uo(t,".")?t:"."+t):e}function Jne(e,t){let r=JH(e);return r?e.slice(0,e.length-r.length)+(uo(t,".")?t:"."+t):jM(e,t)}function Kne(e,t,r){if(e===t)return 0;if(e===void 0)return-1;if(t===void 0)return 1;let i=e.substring(0,dh(e)),o=t.substring(0,dh(t)),s=L8(i,o);if(s!==0)return s;let l=e.substring(i.length),u=t.substring(o.length);if(!s6.test(l)&&!s6.test(u))return r(l,u);let p=sS(Wc(e)),g=sS(Wc(t)),m=Math.min(p.length,g.length);for(let b=1;b0==dh(t)>0,"Paths must either both be absolute or both be relative");let s=DV(e,t,(typeof r=="boolean"?r:!1)?Yb:rS,typeof r=="function"?r:el);return Ry(s)}function iC(e,t,r){return dp(e)?SA(t,e,t,r,!1):e}function UM(e,t,r){return v1(bm(li(e),t,r))}function SA(e,t,r,i,o){let s=DV(Dy(r,e),Dy(r,t),rS,i),l=s[0];if(o&&dp(l)){let u=l.charAt(0)===il?"file://":"file:///";s[0]=u+l}return Ry(s)}function Em(e,t){for(;;){let r=t(e);if(r!==void 0)return r;let i=li(e);if(i===e)return;e=i}}function a6(e){return Sl(e,"/node_modules")}var il,HM,Xne,S1e,s6,S9e=A({"src/compiler/path.ts"(){"use strict";ia(),il="/",HM="\\",Xne="://",S1e=/\\/g,s6=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/}});function S(e,t,r,i,o,s,l){return{code:e,category:t,key:r,message:i,reportsUnnecessary:o,elidedInCompatabilityPyramid:s,reportsDeprecated:l}}var f,T9e=A({"src/compiler/diagnosticInformationMap.generated.ts"(){"use strict";d1e(),f={Unterminated_string_literal:S(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:S(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:S(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:S(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:S(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:S(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:S(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:S(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:S(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:S(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:S(1014,1,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:S(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:S(1016,1,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:S(1017,1,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:S(1018,1,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:S(1019,1,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:S(1020,1,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:S(1021,1,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:S(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:S(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:S(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:S(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:S(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:S(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:S(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:S(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:S(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:S(1036,1,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:S(1038,1,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:S(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:S(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:S(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:S(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:S(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:S(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:S(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:S(1049,1,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:S(1051,1,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:S(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:S(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:S(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:S(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055","Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:S(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:S(1058,1,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:S(1059,1,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:S(1060,1,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:S(1061,1,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:S(1062,1,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:S(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:S(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{0}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:S(1065,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065","The return type of an async function or method must be the global Promise type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:S(1066,1,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:S(1068,1,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:S(1069,1,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:S(1070,1,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:S(1071,1,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:S(1079,1,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:S(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:S(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:S(1090,1,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:S(1091,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:S(1092,1,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:S(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:S(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:S(1095,1,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:S(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:S(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:S(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:S(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:S(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:S(1101,1,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:S(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:S(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:S(1104,1,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:S(1105,1,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:S(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:S(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:S(1108,1,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:S(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:S(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:S(1111,1,"Private_field_0_must_be_declared_in_an_enclosing_class_1111","Private field '{0}' must be declared in an enclosing class."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:S(1113,1,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:S(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:S(1115,1,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:S(1116,1,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:S(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:S(1118,1,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:S(1119,1,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:S(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:S(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:S(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:S(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:S(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:S(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:S(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:S(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:S(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:S(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:S(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:S(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:S(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:S(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:S(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:S(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:S(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:S(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:S(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:S(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:S(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:S(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:S(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:S(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:S(1147,1,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:S(1148,1,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:S(1149,1,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),_0_declarations_must_be_initialized:S(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:S(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:S(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:S(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:S(1162,1,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:S(1163,1,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:S(1164,1,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:S(1165,1,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:S(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:S(1168,1,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:S(1169,1,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:S(1170,1,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:S(1171,1,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:S(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:S(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:S(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:S(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:S(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:S(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:S(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:S(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:S(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:S(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:S(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:S(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:S(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:S(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:S(1186,1,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:S(1187,1,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:S(1188,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:S(1189,1,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:S(1190,1,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:S(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:S(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:S(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:S(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:S(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:S(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:S(1197,1,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:S(1198,1,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:S(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:S(1200,1,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:S(1202,1,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202",`Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.`),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:S(1203,1,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:S(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:S(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:S(1207,1,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:S(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:S(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:S(1211,1,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:S(1212,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:S(1213,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:S(1214,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:S(1215,1,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:S(1216,1,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:S(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:S(1221,1,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:S(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:S(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:S(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:S(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:S(1226,1,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:S(1227,1,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:S(1228,1,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:S(1229,1,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:S(1230,1,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:S(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:S(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:S(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:S(1234,1,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:S(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:S(1236,1,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:S(1237,1,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:S(1238,1,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:S(1239,1,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:S(1240,1,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:S(1241,1,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:S(1242,1,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:S(1243,1,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:S(1244,1,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:S(1245,1,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:S(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:S(1247,1,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:S(1248,1,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:S(1249,1,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:S(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:S(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:S(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),Abstract_properties_can_only_appear_within_an_abstract_class:S(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:S(1254,1,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:S(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:S(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:S(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:S(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:S(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:S(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:S(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:S(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:S(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:S(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:S(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:S(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:S(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:S(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:S(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:S(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:S(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:S(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:S(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:S(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:S(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:S(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:S(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:S(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:S(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:S(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:S(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:S(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:S(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:S(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:S(1286,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286","ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:S(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:S(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:S(1289,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:S(1290,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:S(1291,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:S(1292,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),with_statements_are_not_allowed_in_an_async_function_block:S(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:S(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:S(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:S(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:S(1313,1,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:S(1314,1,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:S(1315,1,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:S(1316,1,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:S(1317,1,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:S(1318,1,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:S(1319,1,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:S(1320,1,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:S(1321,1,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:S(1322,1,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext:S(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext:S(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', or 'nodenext'."),Argument_of_dynamic_import_cannot_be_spread_element:S(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:S(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:S(1327,1,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:S(1328,1,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:S(1329,1,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:S(1330,1,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:S(1331,1,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:S(1332,1,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:S(1333,1,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:S(1334,1,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:S(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:S(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:S(1338,1,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:S(1339,1,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:S(1340,1,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Class_constructor_may_not_be_an_accessor:S(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext:S(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),A_label_is_not_allowed_here:S(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:S(1345,1,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:S(1346,1,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:S(1347,1,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:S(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:S(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:S(1350,3,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:S(1351,1,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:S(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:S(1353,1,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:S(1354,1,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:S(1355,1,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:S(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:S(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:S(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:S(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:S(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:S(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:S(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:S(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:S(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:S(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:S(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:S(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:S(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:S(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error:S(1371,1,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371","This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:S(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:S(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:S(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:S(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:S(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:S(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:S(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:S(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:S(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:S(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:S(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:S(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:S(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:S(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:S(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:S(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:S(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:S(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:S(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:S(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:S(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:S(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:S(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:S(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:S(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:S(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:S(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:S(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:S(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:S(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:S(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:S(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:S(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:S(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:S(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:S(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:S(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:S(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:S(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:S(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:S(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:S(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:S(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:S(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:S(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:S(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:S(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:S(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:S(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:S(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:S(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:S(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:S(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:S(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:S(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:S(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:S(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:S(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:S(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:S(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:S(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:S(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:S(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:S(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:S(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:S(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443",`Module declaration names may only use ' or " quoted strings.`),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:S(1444,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444","'{0}' is a type and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:S(1446,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:S(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:S(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments:S(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional set of attributes as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:S(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_should_be_either_require_or_import:S(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:S(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:S(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:S(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:S(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:S(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",`File is ECMAScript module because '{0}' has field "type" with value "module"`),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:S(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",`File is CommonJS module because '{0}' has field "type" whose value is not "module"`),File_is_CommonJS_module_because_0_does_not_have_field_type:S(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460",`File is CommonJS module because '{0}' does not have field "type"`),File_is_CommonJS_module_because_package_json_was_not_found:S(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),resolution_mode_is_the_only_valid_key_for_type_import_attributes:S(1463,1,"resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463","'resolution-mode' is the only valid key for type import attributes."),Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:S(1464,1,"Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464","Type import attributes should have exactly one key - 'resolution-mode' - with value 'import' or 'require'."),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:S(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:S(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:S(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:S(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:S(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:S(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:S(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:S(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:S(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:S(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479",`The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("{0}")' call instead.`),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:S(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:S(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481",`To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field \`"type": "module"\` to '{1}'.`),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:S(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:S(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:S(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:S(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:S(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:S(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:S(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:S(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:S(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:S(1491,1,"_0_modifier_cannot_appear_on_a_using_declaration_1491","'{0}' modifier cannot appear on a 'using' declaration."),_0_declarations_may_not_have_binding_patterns:S(1492,1,"_0_declarations_may_not_have_binding_patterns_1492","'{0}' declarations may not have binding patterns."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:S(1493,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493","The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:S(1494,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494","The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),_0_modifier_cannot_appear_on_an_await_using_declaration:S(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),Identifier_string_literal_or_number_literal_expected:S(1496,1,"Identifier_string_literal_or_number_literal_expected_1496","Identifier, string literal, or number literal expected."),The_types_of_0_are_incompatible_between_these_types:S(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:S(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:S(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:S(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:S(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:S(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:S(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:S(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:S(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:S(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:S(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:S(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:S(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:S(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:S(2301,1,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:S(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:S(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:S(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:S(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:S(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:S(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:S(2308,1,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:S(2309,1,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:S(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:S(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:S(2312,1,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:S(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:S(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:S(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:S(2316,1,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:S(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:S(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:S(2319,1,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:S(2320,1,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:S(2321,1,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:S(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:S(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:S(2324,1,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:S(2325,1,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:S(2326,1,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:S(2327,1,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:S(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:S(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:S(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:S(2331,1,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:S(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:S(2333,1,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:S(2334,1,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:S(2335,1,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:S(2336,1,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:S(2337,1,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:S(2338,1,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:S(2339,1,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:S(2340,1,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:S(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:S(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:S(2344,1,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:S(2345,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Untyped_function_calls_may_not_accept_type_arguments:S(2347,1,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:S(2348,1,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:S(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:S(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:S(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:S(2352,1,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:S(2353,1,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:S(2354,1,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value:S(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:S(2356,1,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:S(2357,1,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:S(2358,1,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method:S(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359","The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the 'Function' interface type, or an object type with a 'Symbol.hasInstance' method."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:S(2362,1,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:S(2363,1,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:S(2364,1,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:S(2365,1,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:S(2366,1,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:S(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:S(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:S(2369,1,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:S(2370,1,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:S(2371,1,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:S(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:S(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:S(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:S(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:S(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:S(2377,1,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:S(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:S(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),Overload_signatures_must_all_be_exported_or_non_exported:S(2383,1,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:S(2384,1,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:S(2385,1,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:S(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:S(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:S(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:S(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:S(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:S(2391,1,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:S(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:S(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:S(2394,1,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:S(2395,1,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:S(2396,1,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:S(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:S(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:S(2399,1,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:S(2400,1,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:S(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:S(2402,1,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:S(2403,1,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:S(2404,1,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:S(2405,1,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:S(2406,1,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:S(2407,1,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:S(2408,1,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:S(2409,1,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:S(2410,1,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:S(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:S(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:S(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:S(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:S(2415,1,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:S(2416,1,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:S(2417,1,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:S(2418,1,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:S(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:S(2420,1,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:S(2422,1,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:S(2423,1,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:S(2425,1,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:S(2426,1,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:S(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:S(2428,1,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:S(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:S(2431,1,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:S(2432,1,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:S(2433,1,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:S(2434,1,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:S(2435,1,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:S(2436,1,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:S(2437,1,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:S(2438,1,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:S(2439,1,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:S(2440,1,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:S(2441,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:S(2442,1,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:S(2443,1,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:S(2444,1,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:S(2445,1,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:S(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:S(2447,1,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:S(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:S(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:S(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:S(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:S(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:S(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:S(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:S(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:S(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:S(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:S(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:S(2461,1,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:S(2462,1,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:S(2463,1,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:S(2464,1,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:S(2465,1,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:S(2466,1,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:S(2467,1,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:S(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:S(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:S(2472,1,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:S(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:S(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:S(2475,1,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:S(2476,1,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:S(2477,1,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:S(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:S(2480,1,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:S(2481,1,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:S(2483,1,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:S(2484,1,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:S(2487,1,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:S(2488,1,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:S(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:S(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:S(2491,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:S(2492,1,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:S(2493,1,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:S(2494,1,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:S(2495,1,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:S(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:S(2497,1,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:S(2498,1,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:S(2499,1,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:S(2500,1,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:S(2501,1,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:S(2502,1,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:S(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:S(2504,1,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:S(2505,1,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:S(2506,1,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:S(2507,1,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:S(2508,1,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:S(2509,1,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:S(2510,1,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:S(2511,1,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:S(2512,1,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:S(2513,1,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),A_tuple_type_cannot_be_indexed_with_a_negative_value:S(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:S(2515,1,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:S(2516,1,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:S(2517,1,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:S(2518,1,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:S(2519,1,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:S(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:S(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:S(2523,1,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:S(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:S(2525,1,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:S(2526,1,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:S(2527,1,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:S(2528,1,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:S(2529,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:S(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:S(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:S(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:S(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:S(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:S(2536,1,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:S(2537,1,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:S(2538,1,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:S(2539,1,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:S(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:S(2542,1,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:S(2543,1,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:S(2544,1,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:S(2545,1,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:S(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:S(2548,1,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:S(2549,1,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:S(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:S(2551,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:S(2552,1,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:S(2553,1,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:S(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:S(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:S(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:S(2558,1,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:S(2559,1,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:S(2560,1,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:S(2561,1,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:S(2562,1,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:S(2563,1,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:S(2564,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:S(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:S(2566,1,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:S(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:S(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:S(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:S(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:S(2574,1,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:S(2575,1,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:S(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:S(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:S(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:S(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:S(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:S(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:S(2583,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:S(2584,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:S(2585,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:S(2588,1,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:S(2589,1,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:S(2590,1,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:S(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:S(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:S(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:S(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:S(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:S(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:S(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:S(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:S(2602,1,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:S(2603,1,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:S(2604,1,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:S(2606,1,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:S(2607,1,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:S(2608,1,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:S(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:S(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:S(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:S(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:S(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:S(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:S(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:S(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:S(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:S(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:S(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:S(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:S(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:S(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:S(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:S(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:S(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:S(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:S(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:S(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:S(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:S(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:S(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:S(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:S(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:S(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:S(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:S(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:S(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),React_components_cannot_include_JSX_namespace_names:S(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:S(2649,1,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:S(2651,1,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:S(2652,1,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:S(2653,1,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),JSX_expressions_must_have_one_parent_element:S(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:S(2658,1,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:S(2659,1,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:S(2660,1,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:S(2661,1,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:S(2662,1,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:S(2663,1,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:S(2664,1,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:S(2665,1,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:S(2666,1,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:S(2667,1,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:S(2668,1,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:S(2669,1,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:S(2670,1,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:S(2671,1,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:S(2672,1,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:S(2673,1,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:S(2674,1,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:S(2675,1,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:S(2676,1,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:S(2677,1,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:S(2678,1,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:S(2679,1,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:S(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:S(2681,1,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:S(2683,1,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:S(2684,1,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:S(2685,1,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:S(2686,1,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:S(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:S(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:S(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:S(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:S(2692,1,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:S(2693,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:S(2694,1,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:S(2695,1,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:S(2696,1,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:S(2697,1,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:S(2698,1,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:S(2699,1,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:S(2700,1,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:S(2701,1,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:S(2702,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:S(2703,1,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:S(2704,1,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:S(2705,1,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:S(2706,1,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:S(2707,1,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:S(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:S(2709,1,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:S(2710,1,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:S(2711,1,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:S(2712,1,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:S(2713,1,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713",`Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}["{1}"]'?`),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:S(2714,1,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:S(2715,1,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:S(2716,1,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:S(2717,1,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:S(2718,1,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:S(2719,1,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:S(2720,1,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:S(2721,1,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:S(2722,1,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:S(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:S(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:S(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:S(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:S(2727,1,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:S(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:S(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:S(2730,1,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:S(2731,1,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:S(2732,1,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:S(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:S(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:S(2735,1,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:S(2736,1,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:S(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:S(2738,3,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:S(2739,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:S(2740,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:S(2741,1,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:S(2742,1,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:S(2743,1,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:S(2744,1,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:S(2745,1,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:S(2746,1,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:S(2747,1,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_0_is_enabled:S(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:S(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:S(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:S(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:S(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:S(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:S(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:S(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:S(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:S(2757,1,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:S(2758,1,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:S(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:S(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:S(2761,1,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:S(2762,1,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:S(2763,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:S(2764,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:S(2765,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:S(2766,1,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:S(2767,1,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:S(2768,1,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:S(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:S(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:S(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:S(2772,1,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:S(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:S(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:S(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:S(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:S(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:S(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:S(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:S(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:S(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:S(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:S(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:S(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:S(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:S(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:S(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:S(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:S(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:S(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:S(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:S(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:S(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:S(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:S(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:S(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:S(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:S(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:S(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:S(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:S(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:S(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:S(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:S(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:S(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:S(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:S(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:S(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:S(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:S(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:S(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:S(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:S(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:S(2815,1,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:S(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:S(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:S(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:S(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:S(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:S(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2821","Import assertions are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:S(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:S(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2823","Import attributes are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),Cannot_find_namespace_0_Did_you_mean_1:S(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:S(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:S(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:S(2836,1,"Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836","Import assertions are not allowed on statements that compile to CommonJS 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:S(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:S(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:S(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types:S(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840","An interface cannot extend a primitive type like '{0}'. It can only extend other named object types."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:S(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:S(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:S(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:S(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:S(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:S(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:S(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:S(2850,1,"The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850","The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:S(2851,1,"The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851","The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:S(2852,1,"await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852","'await using' statements are only allowed within async functions and at the top levels of modules."),await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:S(2853,1,"await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853","'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:S(2854,1,"Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854","Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super:S(2855,1,"Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855","Class field '{0}' defined by the parent class is not accessible in the child class via super."),Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:S(2856,1,"Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856","Import attributes are not allowed on statements that compile to CommonJS 'require' calls."),Import_attributes_cannot_be_used_with_type_only_imports_or_exports:S(2857,1,"Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857","Import attributes cannot be used with type-only imports or exports."),Import_attribute_values_must_be_string_literal_expressions:S(2858,1,"Import_attribute_values_must_be_string_literal_expressions_2858","Import attribute values must be string literal expressions."),Excessive_complexity_comparing_types_0_and_1:S(2859,1,"Excessive_complexity_comparing_types_0_and_1_2859","Excessive complexity comparing types '{0}' and '{1}'."),The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method:S(2860,1,"The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860","The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method."),An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression:S(2861,1,"An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861","An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression."),Type_0_is_generic_and_can_only_be_indexed_for_reading:S(2862,1,"Type_0_is_generic_and_can_only_be_indexed_for_reading_2862","Type '{0}' is generic and can only be indexed for reading."),A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values:S(2863,1,"A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863","A class cannot extend a primitive type like '{0}'. Classes can only extend constructable values."),A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types:S(2864,1,"A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864","A class cannot implement a primitive type like '{0}'. It can only implement other named object types."),Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:S(2865,1,"Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865","Import '{0}' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled."),Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:S(2866,1,"Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866","Import '{0}' conflicts with global value used in this file, so must be declared with a type-only import when 'isolatedModules' is enabled."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun:S(2867,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:S(2868,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2868","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun` and then add 'bun' to the types field in your tsconfig."),Import_declaration_0_is_using_private_name_1:S(4e3,1,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:S(4002,1,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:S(4004,1,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:S(4006,1,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:S(4008,1,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:S(4010,1,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:S(4012,1,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:S(4014,1,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:S(4016,1,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:S(4019,1,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:S(4020,1,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:S(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:S(4022,1,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:S(4023,1,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:S(4024,1,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:S(4025,1,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:S(4026,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:S(4027,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:S(4028,1,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:S(4029,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:S(4030,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:S(4031,1,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:S(4032,1,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:S(4033,1,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:S(4034,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:S(4035,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:S(4036,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:S(4037,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:S(4038,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:S(4039,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:S(4040,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:S(4041,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:S(4042,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:S(4043,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:S(4044,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:S(4045,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:S(4046,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:S(4047,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:S(4048,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:S(4049,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:S(4050,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:S(4051,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:S(4052,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:S(4053,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:S(4054,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:S(4055,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:S(4056,1,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:S(4057,1,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:S(4058,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:S(4059,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:S(4060,1,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:S(4061,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:S(4062,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:S(4063,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:S(4064,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:S(4065,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:S(4066,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:S(4067,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:S(4068,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:S(4069,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:S(4070,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:S(4071,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:S(4072,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:S(4073,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:S(4074,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:S(4075,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:S(4076,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:S(4077,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:S(4078,1,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:S(4081,1,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:S(4082,1,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:S(4083,1,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:S(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:S(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:S(4090,1,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:S(4091,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:S(4092,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:S(4094,1,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:S(4095,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:S(4096,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:S(4097,1,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:S(4098,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:S(4099,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:S(4100,1,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:S(4101,1,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:S(4102,1,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:S(4103,1,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:S(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:S(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:S(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:S(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:S(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:S(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:S(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:S(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:S(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:S(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:S(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:S(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:S(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:S(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:S(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:S(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:S(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:S(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:S(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:S(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:S(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given:S(4125,1,"Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125","Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value:S(4126,1,"One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126","One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),The_current_host_does_not_support_the_0_option:S(5001,1,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:S(5009,1,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:S(5010,1,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:S(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:S(5014,1,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:S(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:S(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:S(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:S(5033,1,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:S(5042,1,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:S(5047,1,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_cannot_be_specified_when_option_target_is_ES3:S(5048,1,"Option_0_cannot_be_specified_when_option_target_is_ES3_5048","Option '{0}' cannot be specified when option 'target' is 'ES3'."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:S(5051,1,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:S(5052,1,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:S(5053,1,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:S(5054,1,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:S(5055,1,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:S(5056,1,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:S(5057,1,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:S(5058,1,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:S(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:S(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:S(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:S(5063,1,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:S(5064,1,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:S(5065,1,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:S(5066,1,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:S(5067,1,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:S(5068,1,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:S(5069,1,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic:S(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd:S(5071,1,"Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071","Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'."),Unknown_build_option_0:S(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:S(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:S(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:S(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:S(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:S(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:S(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:S(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:S(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:S(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:S(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:S(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:S(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:S(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:S(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:S(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:S(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:S(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:S(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:S(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:S(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:S(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later:S(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'preserve' or to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:S(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:S(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:S(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:S(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101",`Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '"ignoreDeprecations": "{2}"' to silence this error.`),Option_0_has_been_removed_Please_remove_it_from_your_configuration:S(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:S(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:S(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:S(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:S(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:S(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107",`Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '"ignoreDeprecations": "{3}"' to silence this error.`),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:S(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:S(5109,1,"Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109","Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:S(5110,1,"Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110","Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:S(6e3,3,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:S(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:S(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:S(6004,3,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:S(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:S(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:S(6007,3,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:S(6008,3,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:S(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:S(6010,3,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:S(6011,3,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:S(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:S(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:S(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:S(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:S(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:S(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:S(6019,3,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:S(6020,3,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:S(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:S(6024,3,"options_6024","options"),file:S(6025,3,"file_6025","file"),Examples_Colon_0:S(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:S(6027,3,"Options_Colon_6027","Options:"),Version_0:S(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:S(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:S(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:S(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:S(6034,3,"KIND_6034","KIND"),FILE:S(6035,3,"FILE_6035","FILE"),VERSION:S(6036,3,"VERSION_6036","VERSION"),LOCATION:S(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:S(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:S(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:S(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:S(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:S(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:S(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:S(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:S(6046,1,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:S(6048,1,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unable_to_open_file_0:S(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:S(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:S(6052,3,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:S(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:S(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:S(6055,3,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:S(6056,3,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:S(6058,3,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:S(6059,1,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:S(6060,3,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:S(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:S(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:S(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:S(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:S(6070,3,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:S(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:S(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:S(6073,3,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:S(6074,3,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:S(6075,3,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:S(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:S(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:S(6078,3,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:S(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:S(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),Only_amd_and_system_modules_are_supported_alongside_0:S(6082,1,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:S(6083,3,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:S(6084,3,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:S(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:S(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:S(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:S(6088,3,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:S(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:S(6090,3,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:S(6091,3,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:S(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:S(6093,3,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:S(6094,3,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1:S(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:S(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:S(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:S(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:S(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:S(6100,3,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:S(6101,3,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:S(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:S(6104,3,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:S(6105,3,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:S(6106,3,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:S(6107,3,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:S(6108,3,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:S(6109,3,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:S(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:S(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:S(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:S(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:S(6114,1,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:S(6115,3,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:S(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:S(6119,3,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:S(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:S(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:S(6122,3,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:S(6123,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:S(6124,3,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:S(6125,3,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:S(6126,3,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:S(6127,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:S(6128,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:S(6130,3,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:S(6131,1,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:S(6132,3,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:S(6133,1,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:S(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:S(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:S(6136,3,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:S(6137,1,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:S(6138,1,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:S(6139,3,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:S(6140,1,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:S(6141,3,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:S(6142,1,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:S(6144,3,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:S(6145,3,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:S(6146,3,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:S(6147,3,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:S(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:S(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:S(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:S(6151,3,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:S(6152,3,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:S(6153,3,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:S(6154,3,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:S(6155,3,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:S(6156,3,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:S(6157,3,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:S(6158,3,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:S(6159,3,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:S(6160,3,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:S(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:S(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:S(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:S(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:S(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:S(6166,3,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:S(6167,3,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:S(6168,3,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:S(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:S(6170,3,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:S(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:S(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:S(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:S(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:S(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:S(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:S(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:S(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:S(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:S(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:S(6191,3,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:S(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:S(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:S(6194,3,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:S(6195,3,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:S(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:S(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:S(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:S(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:S(6200,1,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:S(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:S(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:S(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:S(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:S(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:S(6206,3,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:S(6207,3,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:S(6208,3,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:S(6209,3,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:S(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:S(6211,3,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:S(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:S(6213,3,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:S(6214,3,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:S(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:S(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:S(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:S(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:S(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:S(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:S(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:S(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:S(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:S(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:S(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:S(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:S(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:S(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:S(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:S(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:S(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:S(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:S(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:S(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:S(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:S(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:S(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:S(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:S(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:S(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:S(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:S(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:S(6244,3,"Modules_6244","Modules"),File_Management:S(6245,3,"File_Management_6245","File Management"),Emit:S(6246,3,"Emit_6246","Emit"),JavaScript_Support:S(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:S(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:S(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:S(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:S(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:S(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:S(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:S(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:S(6255,3,"Projects_6255","Projects"),Output_Formatting:S(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:S(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:S(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_0:S(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:S(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:S(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:S(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:S(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:S(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:S(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:S(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:S(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:S(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:S(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:S(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:S(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:S(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:S(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:S(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:S(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278",`There are types at '{0}', but this result could not be resolved when respecting package.json "exports". The '{1}' library may need to update its package.json or typings.`),Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update:S(6279,3,"Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279","Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler:S(6280,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280","There are types at '{0}', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'."),Enable_project_compilation:S(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:S(6304,1,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:S(6305,1,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:S(6306,1,"Referenced_project_0_must_have_setting_composite_Colon_true_6306",`Referenced project '{0}' must have setting "composite": true.`),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:S(6307,1,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:S(6308,1,"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308","Cannot prepend project '{0}' because it does not have 'outFile' set"),Output_file_0_from_project_1_does_not_exist:S(6309,1,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Referenced_project_0_may_not_disable_emit:S(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:S(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:S(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:S(6352,3,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:S(6353,3,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:S(6354,3,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:S(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:S(6356,3,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:S(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:S(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:S(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:S(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:S(6362,3,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:S(6363,3,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:S(6364,3,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:S(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:S(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:S(6369,1,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:S(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:S(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed:S(6372,3,"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372","Project '{0}' is out of date because output of its dependency '{1}' has changed"),Updating_output_of_project_0:S(6373,3,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:S(6374,3,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),A_non_dry_build_would_update_output_of_project_0:S(6375,3,"A_non_dry_build_would_update_output_of_project_0_6375","A non-dry build would update output of project '{0}'"),Cannot_update_output_of_project_0_because_there_was_error_reading_file_1:S(6376,3,"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376","Cannot update output of project '{0}' because there was error reading file '{1}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:S(6377,1,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:S(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:S(6380,3,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:S(6381,3,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:S(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:S(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:S(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:S(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:S(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:S(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:S(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:S(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:S(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:S(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:S(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:S(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:S(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:S(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:S(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:S(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:S(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:S(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:S(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:S(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:S(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:S(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:S(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:S(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:S(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:S(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:S(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:S(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:S(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:S(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:S(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:S(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:S(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:S(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:S(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:S(6417,3,"Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417","Searching all ancestor node_modules directories for preferred extensions: {0}."),Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:S(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:S(6500,3,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:S(6501,3,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:S(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:S(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:S(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:S(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:S(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:S(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:S(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:S(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:S(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:S(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:S(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:S(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:S(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:S(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:S(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:S(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:S(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:S(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:S(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:S(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:S(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:S(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:S(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:S(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:S(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:S(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:S(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:S(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:S(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:S(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:S(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:S(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:S(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:S(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:S(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:S(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:S(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:S(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:S(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:S(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:S(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:S(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:S(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:S(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:S(6641,3,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:S(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:S(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:S(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:S(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:S(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:S(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:S(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:S(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:S(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:S(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:S(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:S(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:S(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:S(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:S(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:S(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:S(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:S(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:S(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:S(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:S(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:S(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:S(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:S(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:S(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:S(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:S(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:S(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:S(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:S(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:S(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:S(6673,3,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:S(6674,3,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:S(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:S(6676,3,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:S(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:S(6678,3,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:S(6679,3,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:S(6680,3,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:S(6681,3,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:S(6682,3,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:S(6683,3,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:S(6684,3,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:S(6685,3,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:S(6686,3,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:S(6687,3,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:S(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:S(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:S(6690,3,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:S(6691,3,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:S(6692,3,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:S(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:S(6694,3,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:S(6695,3,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:S(6697,3,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:S(6698,3,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:S(6699,3,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:S(6700,3,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:S(6701,3,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:S(6702,3,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:S(6703,3,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:S(6704,3,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:S(6705,3,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:S(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:S(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:S(6709,3,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:S(6710,3,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:S(6711,3,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:S(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:S(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:S(6714,3,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:S(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:S(6717,3,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:S(6718,3,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Default_catch_clause_variables_as_unknown_instead_of_any:S(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:S(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),one_of_Colon:S(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:S(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:S(6902,3,"type_Colon_6902","type:"),default_Colon:S(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:S(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:S(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:S(6906,3,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:S(6907,3,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:S(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:S(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:S(69010,3,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:S(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:S(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:S(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:S(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:S(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:S(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:S(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:S(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:S(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:S(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:S(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:S(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:S(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:S(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:S(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:S(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:S(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:S(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:S(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:S(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:S(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:S(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:S(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:S(7008,1,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:S(7009,1,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:S(7010,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:S(7011,1,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:S(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:S(7013,1,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:S(7014,1,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:S(7015,1,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:S(7016,1,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:S(7017,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:S(7018,1,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:S(7019,1,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:S(7020,1,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:S(7022,1,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:S(7023,1,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:S(7024,1,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:S(7025,1,"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025","Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:S(7026,1,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:S(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:S(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:S(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:S(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:S(7031,1,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:S(7032,1,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:S(7033,1,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:S(7034,1,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:S(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:S(7036,1,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:S(7037,3,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:S(7038,3,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:S(7039,1,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:S(7040,1,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:S(7041,1,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:S(7042,1,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:S(7043,2,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:S(7044,2,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:S(7045,2,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:S(7046,2,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:S(7047,2,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:S(7048,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:S(7049,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:S(7050,2,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:S(7051,1,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:S(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:S(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:S(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:S(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:S(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:S(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:S(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:S(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:S(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:S(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:S(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:S(8001,1,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:S(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:S(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:S(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:S(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:S(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:S(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:S(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:S(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:S(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:S(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:S(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:S(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Signature_declarations_can_only_be_used_in_TypeScript_files:S(8017,1,"Signature_declarations_can_only_be_used_in_TypeScript_files_8017","Signature declarations can only be used in TypeScript files."),Report_errors_in_js_files:S(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:S(8020,1,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:S(8021,1,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:S(8022,1,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:S(8023,1,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:S(8024,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:S(8025,1,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:S(8026,1,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:S(8027,1,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:S(8028,1,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:S(8029,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:S(8030,1,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:S(8031,1,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:S(8032,1,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:S(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:S(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:S(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:S(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:S(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:S(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:S(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:S(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:S(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:S(17e3,1,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:S(17001,1,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:S(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:S(17004,1,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:S(17005,1,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:S(17006,1,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:S(17007,1,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:S(17008,1,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:S(17009,1,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:S(17010,1,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:S(17011,1,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:S(17012,1,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:S(17013,1,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:S(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:S(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:S(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:S(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:S(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:S(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:S(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Unicode_escape_sequence_cannot_appear_here:S(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:S(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:S(18002,1,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:S(18003,1,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:S(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:S(80002,2,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:S(80003,2,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:S(80004,2,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:S(80005,2,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:S(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:S(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:S(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),JSDoc_typedef_may_be_converted_to_TypeScript_type:S(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:S(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:S(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:S(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:S(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:S(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:S(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:S(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:S(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:S(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:S(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:S(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:S(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:S(90013,3,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:S(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:S(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:S(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:S(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:S(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:S(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:S(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:S(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:S(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:S(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:S(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:S(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:S(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:S(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:S(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:S(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:S(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:S(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:S(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:S(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:S(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:S(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:S(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:S(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:S(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:S(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:S(90055,3,"Remove_type_from_import_declaration_from_0_90055",`Remove 'type' from import declaration from "{0}"`),Remove_type_from_import_of_0_from_1:S(90056,3,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:S(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:S(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:S(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:S(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Convert_function_to_an_ES2015_class:S(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:S(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:S(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:S(95005,3,"Extract_function_95005","Extract function"),Extract_constant:S(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:S(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:S(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:S(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:S(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:S(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:S(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:S(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:S(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:S(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:S(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:S(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:S(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:S(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:S(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:S(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:S(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:S(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:S(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:S(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:S(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:S(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:S(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:S(95030,3,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:S(95031,3,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:S(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:S(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:S(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:S(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:S(95036,3,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:S(95037,3,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:S(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:S(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:S(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:S(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:S(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:S(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:S(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:S(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:S(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:S(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:S(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:S(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:S(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:S(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:S(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:S(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:S(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:S(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:S(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:S(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:S(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:S(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:S(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:S(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:S(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:S(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:S(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:S(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:S(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:S(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:S(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:S(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:S(95070,3,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:S(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:S(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:S(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:S(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:S(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:S(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:S(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:S(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:S(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:S(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:S(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:S(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:S(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:S(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:S(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:S(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:S(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:S(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:S(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:S(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:S(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:S(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:S(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:S(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:S(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:S(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:S(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:S(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:S(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:S(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:S(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:S(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:S(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:S(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:S(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:S(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:S(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:S(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:S(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:S(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:S(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:S(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:S(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:S(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:S(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:S(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:S(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:S(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:S(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:S(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:S(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:S(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:S(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:S(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:S(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:S(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:S(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:S(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:S(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:S(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:S(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:S(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:S(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:S(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:S(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:S(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:S(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:S(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:S(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:S(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:S(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:S(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:S(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:S(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:S(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:S(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:S(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:S(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:S(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:S(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:S(95154,3,"Can_only_convert_string_concatenations_and_string_literals_95154","Can only convert string concatenations and string literals"),Selection_is_not_a_valid_statement_or_statements:S(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:S(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:S(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:S(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:S(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:S(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:S(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:S(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:S(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:S(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:S(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:S(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:S(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:S(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:S(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:S(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:S(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:S(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:S(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:S(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:S(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:S(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:S(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:S(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:S(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:S(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:S(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:S(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:S(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:S(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:S(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:S(95186,3,"Variables_with_multiple_declarations_cannot_be_inlined_95186","Variables with multiple declarations cannot be inlined."),Add_missing_comma_for_object_member_completion_0:S(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),Add_missing_parameter_to_0:S(95188,3,"Add_missing_parameter_to_0_95188","Add missing parameter to '{0}'"),Add_missing_parameters_to_0:S(95189,3,"Add_missing_parameters_to_0_95189","Add missing parameters to '{0}'"),Add_all_missing_parameters:S(95190,3,"Add_all_missing_parameters_95190","Add all missing parameters"),Add_optional_parameter_to_0:S(95191,3,"Add_optional_parameter_to_0_95191","Add optional parameter to '{0}'"),Add_optional_parameters_to_0:S(95192,3,"Add_optional_parameters_to_0_95192","Add optional parameters to '{0}'"),Add_all_optional_parameters:S(95193,3,"Add_all_optional_parameters_95193","Add all optional parameters"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:S(18004,1,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:S(18006,1,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:S(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:S(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:S(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:S(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:S(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:S(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:S(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:S(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:S(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:S(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:S(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:S(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:S(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:S(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:S(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:S(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:S(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:S(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:S(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:S(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:S(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:S(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:S(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:S(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),await_expression_cannot_be_used_inside_a_class_static_block:S(18037,1,"await_expression_cannot_be_used_inside_a_class_static_block_18037","'await' expression cannot be used inside a class static block."),for_await_loops_cannot_be_used_inside_a_class_static_block:S(18038,1,"for_await_loops_cannot_be_used_inside_a_class_static_block_18038","'for await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:S(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:S(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:S(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:S(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:S(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:S(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:S(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:S(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:S(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:S(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:S(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:S(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Non_abstract_class_0_does_not_implement_all_abstract_members_of_1:S(18052,1,"Non_abstract_class_0_does_not_implement_all_abstract_members_of_1_18052","Non-abstract class '{0}' does not implement all abstract members of '{1}'"),Its_type_0_is_not_a_valid_JSX_element_type:S(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type."),await_using_statements_cannot_be_used_inside_a_class_static_block:S(18054,1,"await_using_statements_cannot_be_used_inside_a_class_static_block_18054","'await using' statements cannot be used inside a class static block.")}}});function id(e){return e>=80}function Yne(e){return e===32||id(e)}function qM(e,t){if(e=2?qM(e,N1e):t===1?qM(e,D1e):qM(e,x1e)}function A9e(e,t){return t>=2?qM(e,P1e):t===1?qM(e,C1e):qM(e,R1e)}function I9e(e){let t=[];return e.forEach((r,i)=>{t[r]=i}),t}function ma(e){return w1e[e]}function y1(e){return ere.get(e)}function TA(e){let t=[],r=0,i=0;for(;r127&&Uu(o)&&(t.push(i),i=r);break}}return t.push(i),t}function JM(e,t,r,i){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,r,i):c6(Mg(e),t,r,e.text,i)}function c6(e,t,r,i,o){(t<0||t>=e.length)&&(o?t=t<0?0:t>=e.length?e.length-1:t:C.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${i!==void 0?Ma(e,TA(i)):"unknown"}`));let s=e[t]+r;return o?s>e[t+1]?e[t+1]:typeof i=="string"&&s>i.length?i.length:s:(t=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function Uu(e){return e===10||e===13||e===8232||e===8233}function sC(e){return e>=48&&e<=57}function T1e(e){return sC(e)||e>=65&&e<=70||e>=97&&e<=102}function x9e(e){return e<=1114111}function u6(e){return e>=48&&e<=55}function $ne(e,t){let r=e.charCodeAt(t);switch(r){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return t===0;default:return r>127}}function La(e,t,r,i,o){if(Qm(t))return t;let s=!1;for(;;){let l=e.charCodeAt(t);switch(l){case 13:e.charCodeAt(t+1)===10&&t++;case 10:if(t++,r)return t;s=!!o;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(i)break;if(e.charCodeAt(t+1)===47){for(t+=2;t127&&Lg(l)){t++;continue}break}return t}}function lC(e,t){if(C.assert(t>=0),t===0||Uu(e.charCodeAt(t-1))){let r=e.charCodeAt(t);if(t+p6=0&&r127&&Lg(R)){b&&Uu(R)&&(m=!0),r++;continue}break e}}return b&&(I=o(u,p,g,m,s,I)),I}function XM(e,t,r,i){return PV(!1,e,t,!1,r,i)}function YM(e,t,r,i){return PV(!1,e,t,!0,r,i)}function Qne(e,t,r,i,o){return PV(!0,e,t,!1,r,i,o)}function Zne(e,t,r,i,o){return PV(!0,e,t,!0,r,i,o)}function A1e(e,t,r,i,o,s=[]){return s.push({kind:r,pos:e,end:t,hasTrailingNewLine:i}),s}function Kh(e,t){return Qne(e,t,A1e,void 0,void 0)}function Qb(e,t){return Zne(e,t,A1e,void 0,void 0)}function d6(e){let t=MV.exec(e);if(t)return t[0]}function Xh(e,t){return e>=65&&e<=90||e>=97&&e<=122||e===36||e===95||e>127&&l6(e,t)}function Zb(e,t,r){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===36||e===95||(r===1?e===45||e===58:!1)||e>127&&A9e(e,t)}function $p(e,t,r){let i=Cy(e,0);if(!Xh(i,t))return!1;for(let o=e0(i);om,getStartPos:()=>m,getTokenEnd:()=>p,getTextPos:()=>p,getToken:()=>T,getTokenStart:()=>b,getTokenPos:()=>b,getTokenText:()=>u.substring(b,p),getTokenValue:()=>I,hasUnicodeEscape:()=>(R&1024)!==0,hasExtendedUnicodeEscape:()=>(R&8)!==0,hasPrecedingLineBreak:()=>(R&1)!==0,hasPrecedingJSDocComment:()=>(R&2)!==0,isIdentifier:()=>T===80||T>118,isReservedWord:()=>T>=83&&T<=118,isUnterminated:()=>(R&4)!==0,getCommentDirectives:()=>M,getNumericLiteralFlags:()=>R&25584,getTokenFlags:()=>R,reScanGreaterToken:Se,reScanAsteriskEqualsToken:je,reScanSlashToken:at,reScanTemplateToken:Qe,reScanTemplateHeadOrNoSubstitutionTemplate:gt,scanJsxIdentifier:Qt,scanJsxAttributeValue:Yt,reScanJsxAttributeValue:vi,reScanJsxToken:nn,reScanLessThanToken:rn,reScanHashToken:Nn,reScanQuestionToken:Xn,reScanInvalidIdentifier:Fe,scanJsxToken:_n,scanJsDocToken:ki,scanJSDocCommentTextToken:ho,scan:Ce,getText:ln,clearCommentDirectives:tt,setText:zt,setScriptTarget:ui,setLanguageVariant:bi,setScriptKind:ro,setJSDocParsingMode:No,setOnError:Rn,resetTokenState:_a,setTextPos:_a,setInJSDocType:ja,tryScan:xr,lookAhead:qr,scanRange:nr};return C.isDebugging&&Object.defineProperty(K,"__debugShowCurrentPositionInText",{get:()=>{let En=K.getText();return En.slice(0,K.getTokenFullStart())+"\u2551"+En.slice(K.getTokenFullStart())}}),K;function Z(En,wn=p,Ue,mt){if(o){let ft=p;p=wn,o(En,Ue||0,mt),p=ft}}function V(){let En=p,wn=!1,Ue=!1,mt="";for(;;){let ft=u.charCodeAt(p);if(ft===95){R|=512,wn?(wn=!1,Ue=!0,mt+=u.substring(En,p)):(R|=16384,Z(Ue?f.Multiple_consecutive_numeric_separators_are_not_permitted:f.Numeric_separators_are_not_allowed_here,p,1)),p++,En=p;continue}if(sC(ft)){wn=!0,Ue=!1,p++;continue}break}return u.charCodeAt(p-1)===95&&(R|=16384,Z(f.Numeric_separators_are_not_allowed_here,p-1,1)),mt+u.substring(En,p)}function ue(){let En=p,wn;if(u.charCodeAt(p)===48)if(p++,u.charCodeAt(p)===95)R|=16896,Z(f.Numeric_separators_are_not_allowed_here,p,1),p--,wn=V();else if(!ne())R|=8192,wn=""+ +I;else if(!I)wn="0";else{I=""+parseInt(I,8),R|=32;let le=T===41,We=(le?"-":"")+"0o"+(+I).toString(8);return le&&En--,Z(f.Octal_literals_are_not_allowed_Use_the_syntax_0,En,p-En,We),9}else wn=V();let Ue,mt;u.charCodeAt(p)===46&&(p++,Ue=V());let ft=p;if(u.charCodeAt(p)===69||u.charCodeAt(p)===101){p++,R|=16,(u.charCodeAt(p)===43||u.charCodeAt(p)===45)&&p++;let le=p,We=V();We?(mt=u.substring(ft,le)+We,ft=p):Z(f.Digit_expected)}let Nt;if(R&512?(Nt=wn,Ue&&(Nt+="."+Ue),mt&&(Nt+=mt)):Nt=u.substring(En,ft),R&8192)return Z(f.Decimals_with_leading_zeros_are_not_allowed,En,ft-En),I=""+ +Nt,9;if(Ue!==void 0||R&16)return G(En,Ue===void 0&&!!(R&16)),I=""+ +Nt,9;{I=Nt;let le=Ee();return G(En),le}}function G(En,wn){if(!Xh(Cy(u,p),e))return;let Ue=p,{length:mt}=ve();mt===1&&u[Ue]==="n"?Z(wn?f.A_bigint_literal_cannot_use_exponential_notation:f.A_bigint_literal_must_be_an_integer,En,Ue-En+1):(Z(f.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,Ue,mt),p=Ue)}function ne(){let En=p,wn=!0;for(;sC(u.charCodeAt(p));)u6(u.charCodeAt(p))||(wn=!1),p++;return I=u.substring(En,p),wn}function he(En,wn){let Ue=$(En,!1,wn);return Ue?parseInt(Ue,16):-1}function ye(En,wn){return $(En,!0,wn)}function $(En,wn,Ue){let mt=[],ft=!1,Nt=!1;for(;mt.length=65&&le<=70)le+=32;else if(!(le>=48&&le<=57||le>=97&&le<=102))break;mt.push(le),p++,Nt=!1}return mt.length=g){Ue+=u.substring(mt,p),R|=4,Z(f.Unterminated_string_literal);break}let ft=u.charCodeAt(p);if(ft===wn){Ue+=u.substring(mt,p),p++;break}if(ft===92&&!En){Ue+=u.substring(mt,p),Ue+=fe(!0),mt=p;continue}if((ft===10||ft===13)&&!En){Ue+=u.substring(mt,p),R|=4,Z(f.Unterminated_string_literal);break}p++}return Ue}function oe(En){let wn=u.charCodeAt(p)===96;p++;let Ue=p,mt="",ft;for(;;){if(p>=g){mt+=u.substring(Ue,p),R|=4,Z(f.Unterminated_template_literal),ft=wn?15:18;break}let Nt=u.charCodeAt(p);if(Nt===96){mt+=u.substring(Ue,p),p++,ft=wn?15:18;break}if(Nt===36&&p+1=g)return Z(f.Unexpected_end_of_text),"";let Ue=u.charCodeAt(p);switch(p++,Ue){case 48:if(p>=g||!sC(u.charCodeAt(p)))return"\0";case 49:case 50:case 51:p=g?(R|=2048,En&&Z(f.Unexpected_end_of_text),u.substring(wn,p)):u.charCodeAt(p)!==125?(R|=2048,En&&Z(f.Unterminated_Unicode_escape_sequence),u.substring(wn,p)):(p++,R|=8,Bx(ft)):(R|=2048,En&&Z(f.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),u.substring(wn,p))}for(;p1114111&&(Z(f.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),Ue=!0),p>=g?(Z(f.Unexpected_end_of_text),Ue=!0):u.charCodeAt(p)===125?p++:(Z(f.Unterminated_Unicode_escape_sequence),Ue=!0),Ue?"":Bx(wn)}function me(){if(p+5=0&&Zb(Ue,e)){p+=3,R|=8,En+=Ne(),wn=p;continue}if(Ue=me(),!(Ue>=0&&Zb(Ue,e)))break;R|=1024,En+=u.substring(wn,p),En+=Bx(Ue),p+=6,wn=p}else break}return En+=u.substring(wn,p),En}function Le(){let En=I.length;if(En>=2&&En<=12){let wn=I.charCodeAt(0);if(wn>=97&&wn<=122){let Ue=I1e.get(I);if(Ue!==void 0)return T=Ue}}return T=80}function He(En){let wn="",Ue=!1,mt=!1;for(;;){let ft=u.charCodeAt(p);if(ft===95){R|=512,Ue?(Ue=!1,mt=!0):Z(mt?f.Multiple_consecutive_numeric_separators_are_not_permitted:f.Numeric_separators_are_not_allowed_here,p,1),p++;continue}if(Ue=!0,!sC(ft)||ft-48>=En)break;wn+=u[p],p++,mt=!1}return u.charCodeAt(p-1)===95&&Z(f.Numeric_separators_are_not_allowed_here,p-1,1),wn}function Ee(){return u.charCodeAt(p)===110?(I+="n",R&384&&(I=tN(I)+"n"),p++,10):(I=""+(R&128?parseInt(I.slice(2),2):R&256?parseInt(I.slice(2),8):+I),9)}function Ce(){m=p,R=0;let En=!1;for(;;){if(b=p,p>=g)return T=1;let wn=Cy(u,p);if(p===0){if(u.slice(0,256).includes("\uFFFD"))return Z(f.File_appears_to_be_binary),p=g,T=8;if(wn===35&&CV(u,p)){if(p=NV(u,p),t)continue;return T=6}}switch(wn){case 10:case 13:if(R|=1,t){p++;continue}else return wn===13&&p+1=0&&Xh(Ue,e))return p+=3,R|=8,I=Ne()+ve(),T=Le();let mt=me();return mt>=0&&Xh(mt,e)?(p+=6,R|=1024,I=String.fromCharCode(mt)+ve(),T=Le()):(Z(f.Invalid_character),p++,T=0);case 35:if(p!==0&&u[p+1]==="!")return Z(f.can_only_be_used_at_the_start_of_a_file),p++,T=0;let ft=Cy(u,p+1);if(ft===92){p++;let We=ie();if(We>=0&&Xh(We,e))return p+=3,R|=8,I="#"+Ne()+ve(),T=81;let pt=me();if(pt>=0&&Xh(pt,e))return p+=6,R|=1024,I="#"+String.fromCharCode(pt)+ve(),T=81;p--}return Xh(ft,e)?(p++,At(ft,e)):(I="#",Z(f.Invalid_character,p++,e0(wn))),T=81;default:let Nt=At(wn,e);if(Nt)return T=Nt;if(S_(wn)){p+=e0(wn);continue}else if(Uu(wn)){R|=1,p+=e0(wn);continue}let le=e0(wn);return Z(f.Invalid_character,p,le),p+=le,T=0}}}function Me(){switch(H){case 0:return!0;case 1:return!1}return O!==3&&O!==4?!0:H===3?!1:k1e.test(u.slice(m,p))}function Fe(){C.assert(T===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),p=b=m,R=0;let En=Cy(u,p),wn=At(En,99);return wn?T=wn:(p+=e0(En),T)}function At(En,wn){let Ue=En;if(Xh(Ue,wn)){for(p+=e0(Ue);p=g)return T=1;let wn=u.charCodeAt(p);if(wn===60)return u.charCodeAt(p+1)===47?(p+=2,T=31):(p++,T=30);if(wn===123)return p++,T=19;let Ue=0;for(;p0)break;Lg(wn)||(Ue=p)}p++}return I=u.substring(m,p),Ue===-1?13:12}function Qt(){if(id(T)){for(;p=g)return T=1;for(let wn=u.charCodeAt(p);p=0&&S_(u.charCodeAt(p-1))&&!(p+1=g)return T=1;let En=Cy(u,p);switch(p+=e0(En),En){case 9:case 11:case 12:case 32:for(;p=0&&Xh(wn,e))return p+=3,R|=8,I=Ne()+ve(),T=Le();let Ue=me();return Ue>=0&&Xh(Ue,e)?(p+=6,R|=1024,I=String.fromCharCode(Ue)+ve(),T=Le()):(p++,T=0)}if(Xh(En,e)){let wn=En;for(;p=0),p=En,m=En,b=En,T=0,I=void 0,R=0}function ja(En){N+=En?1:-1}}function Cy(e,t){return e.codePointAt(t)}function e0(e){return e>=65536?2:1}function R9e(e){if(C.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);let t=Math.floor((e-65536)/1024)+55296,r=(e-65536)%1024+56320;return String.fromCharCode(t,r)}function Bx(e){return O1e(e)}var $M,I1e,ere,x1e,R1e,D1e,C1e,N1e,P1e,M1e,L1e,k1e,w1e,p6,MV,O1e,D9e=A({"src/compiler/scanner.ts"(){"use strict";ia(),$M={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},I1e=new Map(Object.entries($M)),ere=new Map(Object.entries({...$M,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,">":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),x1e=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1569,1594,1600,1610,1649,1747,1749,1749,1765,1766,1786,1788,1808,1808,1810,1836,1920,1957,2309,2361,2365,2365,2384,2384,2392,2401,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2784,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2877,2908,2909,2911,2913,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3294,3294,3296,3297,3333,3340,3342,3344,3346,3368,3370,3385,3424,3425,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3805,3840,3840,3904,3911,3913,3946,3976,3979,4096,4129,4131,4135,4137,4138,4176,4181,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6067,6176,6263,6272,6312,7680,7835,7840,7929,7936,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,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12329,12337,12341,12344,12346,12353,12436,12445,12446,12449,12538,12540,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,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,65138,65140,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],R1e=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,768,846,864,866,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1155,1158,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1425,1441,1443,1465,1467,1469,1471,1471,1473,1474,1476,1476,1488,1514,1520,1522,1569,1594,1600,1621,1632,1641,1648,1747,1749,1756,1759,1768,1770,1773,1776,1788,1808,1836,1840,1866,1920,1968,2305,2307,2309,2361,2364,2381,2384,2388,2392,2403,2406,2415,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2492,2494,2500,2503,2504,2507,2509,2519,2519,2524,2525,2527,2531,2534,2545,2562,2562,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2649,2652,2654,2654,2662,2676,2689,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2784,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2876,2883,2887,2888,2891,2893,2902,2903,2908,2909,2911,2913,2918,2927,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3010,3014,3016,3018,3021,3031,3031,3047,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3134,3140,3142,3144,3146,3149,3157,3158,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3395,3398,3400,3402,3405,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3805,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3946,3953,3972,3974,3979,3984,3991,3993,4028,4038,4038,4096,4129,4131,4135,4137,4138,4140,4146,4150,4153,4160,4169,4176,4185,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4969,4977,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6099,6112,6121,6160,6169,6176,6263,6272,6313,7680,7835,7840,7929,7936,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,8255,8256,8319,8319,8400,8412,8417,8417,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12335,12337,12341,12344,12346,12353,12436,12441,12442,12445,12446,12449,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,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,65056,65059,65075,65076,65101,65103,65136,65138,65140,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500],D1e=[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,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,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,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,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,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,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,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,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,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,11310,11312,11358,11360,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,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,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,43968,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],C1e=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,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,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,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,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,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,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,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,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,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,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,8204,8205,8255,8256,8276,8276,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,11310,11312,11358,11360,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,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,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,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],N1e=[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,2208,2228,2230,2237,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,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,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,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,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,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,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,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42943,42946,42950,42999,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,43879,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,67072,67382,67392,67413,67424,67431,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,69376,69404,69415,69415,69424,69445,69600,69622,69635,69687,69763,69807,69840,69864,69891,69926,69956,69956,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,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,70751,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71680,71723,71840,71903,71935,71935,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72384,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,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,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,101106,110592,110878,110928,110930,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,123136,123180,123191,123197,123214,123214,123584,123627,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,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101],P1e=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,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,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,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2208,2228,2230,2237,2259,2273,2275,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,2902,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,3133,3140,3142,3144,3146,3149,3157,3158,3160,3162,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3328,3331,3333,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3458,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,3789,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,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7673,7675,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,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,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,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42943,42946,42950,42999,43047,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,43879,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,65296,65305,65313,65338,65343,65343,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,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,67072,67382,67392,67413,67424,67431,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,69376,69404,69415,69415,69424,69456,69600,69622,69632,69702,69734,69743,69759,69818,69840,69864,69872,69881,69888,69940,69942,69951,69956,69958,69968,70003,70006,70006,70016,70084,70089,70092,70096,70106,70108,70108,70144,70161,70163,70199,70206,70206,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,70751,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,71680,71738,71840,71913,71935,71935,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72384,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,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92768,92777,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,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,119141,119145,119149,119154,119163,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,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,123136,123180,123184,123197,123200,123209,123214,123214,123584,123641,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,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101,917760,917999],M1e=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,L1e=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,k1e=/@(?:see|link)/i,w1e=I9e(ere),p6=7,MV=/^#!.*/,O1e=String.fromCodePoint?e=>String.fromCodePoint(e):R9e}});function Yc(e){return wp(e)||dp(e)}function Gx(e){return XD(e,XC)}function QM(e){switch(as(e)){case 99:return"lib.esnext.full.d.ts";case 9:return"lib.es2022.full.d.ts";case 8:return"lib.es2021.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}}function ql(e){return e.start+e.length}function tre(e){return e.length===0}function LV(e,t){return t>=e.start&&t=e.pos&&t<=e.end}function nre(e,t){return t.start>=e.start&&ql(t)<=ql(e)}function F1e(e,t){return rre(e,t)!==void 0}function rre(e,t){let r=ore(e,t);return r&&r.length===0?void 0:r}function W1e(e,t){return eL(e.start,e.length,t.start,t.length)}function f6(e,t,r){return eL(e.start,e.length,t,r)}function eL(e,t,r,i){let o=e+t,s=r+i;return r<=o&&s>=e}function ire(e,t){return t<=ql(e)&&t>=e.start}function ore(e,t){let r=Math.max(e.start,t.start),i=Math.min(ql(e),ql(t));return r<=i?dc(r,i):void 0}function vu(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function dc(e,t){return vu(e,t-e)}function cC(e){return vu(e.span.start,e.newLength)}function are(e){return tre(e.span)&&e.newLength===0}function tL(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function sre(e){if(e.length===0)return gL;if(e.length===1)return e[0];let t=e[0],r=t.span.start,i=ql(t.span),o=r+t.newLength;for(let s=1;s=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function Hi(e){let t=e;return t.length>=3&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95&&t.charCodeAt(2)===95?t.substr(1):t}function Sr(e){return Hi(e.escapedText)}function n0(e){let t=y1(e.escapedText);return t?ai(t,Fd):void 0}function bl(e){return e.valueDeclaration&&ad(e.valueDeclaration)?Sr(e.valueDeclaration.name):Hi(e.escapedName)}function G1e(e){let t=e.parent.parent;if(t){if(qu(t))return wV(t);switch(t.kind){case 243:if(t.declarationList&&t.declarationList.declarations[0])return wV(t.declarationList.declarations[0]);break;case 244:let r=t.expression;switch(r.kind===226&&r.operatorToken.kind===64&&(r=r.left),r.kind){case 211:return r.name;case 212:let i=r.argumentExpression;if(Ve(i))return i}break;case 217:return wV(t.expression);case 256:{if(qu(t.statement)||bt(t.statement))return wV(t.statement);break}}}}function wV(e){let t=Oo(e);return t&&Ve(t)?t:void 0}function nL(e,t){return!!(od(e)&&Ve(e.name)&&Sr(e.name)===Sr(t)||Ml(e)&&Et(e.declarationList.declarations,r=>nL(r,t)))}function dre(e){return e.name||G1e(e)}function od(e){return!!e.name}function m6(e){switch(e.kind){case 80:return e;case 355:case 348:{let{name:r}=e;if(r.kind===166)return r.right;break}case 213:case 226:{let r=e;switch(Wl(r)){case 1:case 4:case 5:case 3:return u3(r.left);case 7:case 8:case 9:return r.arguments[1];default:return}}case 353:return dre(e);case 347:return G1e(e);case 277:{let{expression:r}=e;return Ve(r)?r:void 0}case 212:let t=e;if(c3(t))return t.argumentExpression}return e.name}function Oo(e){if(e!==void 0)return m6(e)||(ws(e)||Bs(e)||Zc(e)?_6(e):void 0)}function _6(e){if(e.parent){if(_c(e.parent)||Qa(e.parent))return e.parent.name;if(_r(e.parent)&&e===e.parent.right){if(Ve(e.parent.left))return e.parent.left;if(ks(e.parent.left))return u3(e.parent.left)}else if(Oi(e.parent)&&Ve(e.parent.name))return e.parent.name}else return}function Ny(e){if(Sf(e))return tr(e.modifiers,Eu)}function b1(e){if(ei(e,98303))return tr(e.modifiers,Ia)}function V1e(e,t){if(e.name)if(Ve(e.name)){let r=e.name.escapedText;return iL(e.parent,t).filter(i=>n_(i)&&Ve(i.name)&&i.name.escapedText===r)}else{let r=e.parent.parameters.indexOf(e);C.assert(r>-1,"Parameters should always be in their parents' parameter list");let i=iL(e.parent,t).filter(n_);if(ram(i)&&i.typeParameters.some(o=>o.name.escapedText===r))}function fre(e){return j1e(e,!1)}function mre(e){return j1e(e,!0)}function _re(e){return!!Kf(e,n_)}function hre(e){return Kf(e,fI)}function gre(e){return g6(e,a5)}function OV(e){return Kf(e,Vae)}function U1e(e){return Kf(e,RH)}function vre(e){return Kf(e,RH,!0)}function H1e(e){return Kf(e,DH)}function yre(e){return Kf(e,DH,!0)}function q1e(e){return Kf(e,CH)}function bre(e){return Kf(e,CH,!0)}function J1e(e){return Kf(e,NH)}function Ere(e){return Kf(e,NH,!0)}function Sre(e){return Kf(e,i5,!0)}function FV(e){return Kf(e,PH)}function Tre(e){return Kf(e,PH,!0)}function WV(e){return Kf(e,qk)}function h6(e){return Kf(e,MH)}function Are(e){return Kf(e,o5)}function K1e(e){return Kf(e,am)}function zV(e){return Kf(e,s5)}function r0(e){let t=Kf(e,RN);if(t&&t.typeExpression&&t.typeExpression.type)return t}function i0(e){let t=Kf(e,RN);return!t&&Co(e)&&(t=vn(jx(e),r=>!!r.typeExpression)),t&&t.typeExpression&&t.typeExpression.type}function rL(e){let t=Are(e);if(t&&t.typeExpression)return t.typeExpression.type;let r=r0(e);if(r&&r.typeExpression){let i=r.typeExpression.type;if(yp(i)){let o=vn(i.members,nI);return o&&o.type}if(bh(i)||jR(i))return i.type}}function iL(e,t){var r;if(!qL(e))return et;let i=(r=e.jsDoc)==null?void 0:r.jsDocCache;if(i===void 0||t){let o=wj(e,t);C.assert(o.length<2||o[0]!==o[1]),i=Zi(o,s=>t_(s)?s.tags:s),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=i)}return i}function o0(e){return iL(e,!1)}function X1e(e){return iL(e,!0)}function Kf(e,t,r){return vn(iL(e,r),t)}function g6(e,t){return o0(e).filter(t)}function Y1e(e,t){return o0(e).filter(r=>r.kind===t)}function oL(e){return typeof e=="string"?e:e?.map(t=>t.kind===328?t.text:N9e(t)).join("")}function N9e(e){let t=e.kind===331?"link":e.kind===332?"linkcode":"linkplain",r=e.name?fp(e.name):"",i=e.name&&e.text.startsWith("://")?"":" ";return`{@${t} ${r}${i}${e.text}}`}function Py(e){if(b0(e)){if(UR(e.parent)){let t=fR(e.parent);if(t&&De(t.tags))return Zi(t.tags,r=>am(r)?r.typeParameters:void 0)}return et}if(Qf(e))return C.assert(e.parent.kind===327),Zi(e.parent.tags,t=>am(t)?t.typeParameters:void 0);if(e.typeParameters||Zae(e)&&e.typeParameters)return e.typeParameters;if(cr(e)){let t=A3(e);if(t.length)return t;let r=i0(e);if(r&&bh(r)&&r.typeParameters)return r.typeParameters}return et}function Ux(e){return e.constraint?e.constraint:am(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function Yh(e){return e.kind===80||e.kind===81}function v6(e){return e.kind===178||e.kind===177}function y6(e){return zr(e)&&!!(e.flags&64)}function BV(e){return Ys(e)&&!!(e.flags&64)}function lS(e){return la(e)&&!!(e.flags&64)}function Hu(e){let t=e.kind;return!!(e.flags&64)&&(t===211||t===212||t===213||t===235)}function dC(e){return Hu(e)&&!lI(e)&&!!e.questionDotToken}function b6(e){return dC(e.parent)&&e.parent.expression===e}function pC(e){return!Hu(e.parent)||dC(e.parent)||e!==e.parent.expression}function GV(e){return e.kind===226&&e.operatorToken.kind===61}function kg(e){return Rf(e)&&Ve(e.typeName)&&e.typeName.escapedText==="const"&&!e.typeArguments}function Sm(e){return Xl(e,8)}function E6(e){return lI(e)&&!!(e.flags&64)}function fC(e){return e.kind===252||e.kind===251}function VV(e){return e.kind===280||e.kind===279}function Ire(e){switch(e.kind){case 309:case 310:return!0;default:return!1}}function jV(e){return Ire(e)||e.kind===307||e.kind===311}function mC(e){return e.kind===355||e.kind===348}function $1e(e){return aL(e.kind)}function aL(e){return e>=166}function UV(e){return e>=0&&e<=165}function AA(e){return UV(e.kind)}function E1(e){return Rs(e,"pos")&&Rs(e,"end")}function _C(e){return 9<=e&&e<=15}function S1(e){return _C(e.kind)}function HV(e){switch(e.kind){case 210:case 209:case 14:case 218:case 231:return!0}return!1}function My(e){return 15<=e&&e<=18}function xre(e){return My(e.kind)}function S6(e){let t=e.kind;return t===17||t===18}function IA(e){return tp(e)||Ju(e)}function sL(e){switch(e.kind){case 276:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 274:return e.parent.isTypeOnly;case 273:case 271:return e.isTypeOnly}return!1}function Rre(e){switch(e.kind){case 281:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 278:return e.isTypeOnly&&!!e.moduleSpecifier&&!e.exportClause;case 280:return e.parent.isTypeOnly}return!1}function a0(e){return sL(e)||Rre(e)}function qV(e){return e.kind===11||My(e.kind)}function Dre(e){return Na(e)||Ve(e)}function ol(e){var t;return Ve(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function cS(e){var t;return Xi(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function lL(e){let t=e.emitNode.autoGenerate.flags;return!!(t&32)&&!!(t&16)&&!!(t&8)}function ad(e){return(Jo(e)||RA(e))&&Xi(e.name)}function Hx(e){return zr(e)&&Xi(e.name)}function kv(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function hC(e){return!!(zA(e)&31)}function JV(e){return hC(e)||e===126||e===164||e===129}function Ia(e){return kv(e.kind)}function Qd(e){let t=e.kind;return t===166||t===80}function ic(e){let t=e.kind;return t===80||t===81||t===11||t===9||t===167}function uS(e){let t=e.kind;return t===80||t===206||t===207}function ea(e){return!!e&&xA(e.kind)}function qx(e){return!!e&&(xA(e.kind)||Il(e))}function zs(e){return e&&Q1e(e.kind)}function gC(e){return e.kind===112||e.kind===97}function Q1e(e){switch(e){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function xA(e){switch(e){case 173:case 179:case 330:case 180:case 181:case 184:case 324:case 185:return!0;default:return Q1e(e)}}function KV(e){return no(e)||k_(e)||Xo(e)&&ea(e.parent)}function $c(e){let t=e.kind;return t===176||t===172||t===174||t===177||t===178||t===181||t===175||t===240}function pi(e){return e&&(e.kind===263||e.kind===231)}function Ly(e){return e&&(e.kind===177||e.kind===178)}function kd(e){return Jo(e)&&C_(e)}function Cre(e){return cr(e)&&r7(e)?(!N1(e)||!Vy(e.expression))&&!ES(e,!0):e.parent&&pi(e.parent)&&Jo(e)&&!C_(e)}function RA(e){switch(e.kind){case 174:case 177:case 178:return!0;default:return!1}}function Z1e(e){switch(e.kind){case 174:case 177:case 178:case 172:return!0;default:return!1}}function al(e){return Ia(e)||Eu(e)}function dS(e){let t=e.kind;return t===180||t===179||t===171||t===173||t===181||t===177||t===178}function T6(e){return dS(e)||$c(e)}function wg(e){let t=e.kind;return t===303||t===304||t===305||t===174||t===177||t===178}function qi(e){return vU(e.kind)}function Nre(e){switch(e.kind){case 184:case 185:return!0}return!1}function ta(e){if(e){let t=e.kind;return t===207||t===206}return!1}function vC(e){let t=e.kind;return t===209||t===210}function A6(e){let t=e.kind;return t===208||t===232}function cL(e){switch(e.kind){case 260:case 169:case 208:return!0}return!1}function Pre(e){return Oi(e)||Co(e)||dL(e)||pL(e)}function uL(e){return XV(e)||YV(e)}function XV(e){switch(e.kind){case 206:case 210:return!0}return!1}function dL(e){switch(e.kind){case 208:case 303:case 304:case 305:return!0}return!1}function YV(e){switch(e.kind){case 207:case 209:return!0}return!1}function pL(e){switch(e.kind){case 208:case 232:case 230:case 209:case 210:case 80:case 211:case 212:return!0}return Mc(e,!0)}function Mre(e){let t=e.kind;return t===211||t===166||t===205}function Lre(e){let t=e.kind;return t===211||t===166}function $V(e){return T1(e)||B1(e)}function T1(e){switch(e.kind){case 286:case 285:case 213:case 214:case 215:case 170:return!0;default:return!1}}function T_(e){return e.kind===213||e.kind===214}function DA(e){let t=e.kind;return t===228||t===15}function Zd(e){return eEe(Sm(e).kind)}function eEe(e){switch(e){case 211:case 212:case 214:case 213:case 284:case 285:case 288:case 215:case 209:case 217:case 210:case 231:case 218:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 228:case 97:case 106:case 110:case 112:case 108:case 235:case 233:case 236:case 102:case 282:return!0;default:return!1}}function QV(e){return tEe(Sm(e).kind)}function tEe(e){switch(e){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return eEe(e)}}function kre(e){switch(e.kind){case 225:return!0;case 224:return e.operator===46||e.operator===47;default:return!1}}function wre(e){switch(e.kind){case 106:case 112:case 97:case 224:return!0;default:return S1(e)}}function bt(e){return P9e(Sm(e).kind)}function P9e(e){switch(e){case 227:case 229:case 219:case 226:case 230:case 234:case 232:case 361:case 360:case 238:return!0;default:return tEe(e)}}function pS(e){let t=e.kind;return t===216||t===234}function nEe(e){return TH(e)||e5(e)}function ky(e,t){switch(e.kind){case 248:case 249:case 250:case 246:case 247:return!0;case 256:return t&&ky(e.statement,t)}return!1}function Ore(e){return Ll(e)||Kl(e)}function Fre(e){return Et(e,Ore)}function I6(e){return!SL(e)&&!Ll(e)&&!ei(e,32)&&!Lu(e)}function fL(e){return SL(e)||Ll(e)||ei(e,32)}function Jx(e){return e.kind===249||e.kind===250}function x6(e){return Xo(e)||bt(e)}function ZV(e){return Xo(e)}function Ef(e){return jc(e)||bt(e)}function Wre(e){let t=e.kind;return t===268||t===267||t===80}function rEe(e){let t=e.kind;return t===268||t===267}function iEe(e){let t=e.kind;return t===80||t===267}function ej(e){let t=e.kind;return t===275||t===274}function mL(e){return e.kind===267||e.kind===266}function A_(e){switch(e.kind){case 219:case 226:case 208:case 213:case 179:case 263:case 231:case 175:case 176:case 185:case 180:case 212:case 266:case 306:case 277:case 278:case 281:case 262:case 218:case 184:case 177:case 80:case 273:case 271:case 276:case 181:case 264:case 345:case 347:case 324:case 348:case 355:case 330:case 353:case 329:case 291:case 292:case 293:case 200:case 174:case 173:case 267:case 202:case 280:case 270:case 274:case 214:case 15:case 9:case 210:case 169:case 211:case 303:case 172:case 171:case 178:case 304:case 312:case 305:case 11:case 265:case 187:case 168:case 260:return!0;default:return!1}}function ph(e){switch(e.kind){case 219:case 241:case 179:case 269:case 299:case 175:case 194:case 176:case 185:case 180:case 248:case 249:case 250:case 262:case 218:case 184:case 177:case 181:case 345:case 347:case 324:case 330:case 353:case 200:case 174:case 173:case 267:case 178:case 312:case 265:return!0;default:return!1}}function M9e(e){return e===219||e===208||e===263||e===231||e===175||e===176||e===266||e===306||e===281||e===262||e===218||e===177||e===273||e===271||e===276||e===264||e===291||e===174||e===173||e===267||e===270||e===274||e===280||e===169||e===303||e===172||e===171||e===178||e===304||e===265||e===168||e===260||e===353||e===345||e===355}function zre(e){return e===262||e===282||e===263||e===264||e===265||e===266||e===267||e===272||e===271||e===278||e===277||e===270}function Bre(e){return e===252||e===251||e===259||e===246||e===244||e===242||e===249||e===250||e===248||e===245||e===256||e===253||e===255||e===257||e===258||e===243||e===247||e===254||e===359}function qu(e){return e.kind===168?e.parent&&e.parent.kind!==352||cr(e):M9e(e.kind)}function Gre(e){return zre(e.kind)}function _L(e){return Bre(e.kind)}function Ki(e){let t=e.kind;return Bre(t)||zre(t)||L9e(e)}function L9e(e){return e.kind!==241||e.parent!==void 0&&(e.parent.kind===258||e.parent.kind===299)?!1:!D1(e)}function Vre(e){let t=e.kind;return Bre(t)||zre(t)||t===241}function jre(e){let t=e.kind;return t===283||t===166||t===80}function yC(e){let t=e.kind;return t===110||t===80||t===211||t===295}function hL(e){let t=e.kind;return t===284||t===294||t===285||t===12||t===288}function R6(e){let t=e.kind;return t===291||t===293}function Ure(e){let t=e.kind;return t===11||t===294}function sd(e){let t=e.kind;return t===286||t===285}function D6(e){let t=e.kind;return t===296||t===297}function Kx(e){return e.kind>=316&&e.kind<=357}function C6(e){return e.kind===327||e.kind===326||e.kind===328||CA(e)||Xx(e)||GS(e)||b0(e)}function Xx(e){return e.kind>=334&&e.kind<=357}function wv(e){return e.kind===178}function wy(e){return e.kind===177}function Op(e){if(!qL(e))return!1;let{jsDoc:t}=e;return!!t&&t.length>0}function N6(e){return!!e.type}function Oy(e){return!!e.initializer}function fS(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:case 306:return!0;default:return!1}}function tj(e){return e.kind===291||e.kind===293||wg(e)}function P6(e){return e.kind===183||e.kind===233}function Hre(e){let t=qre;for(let r of e){if(!r.length)continue;let i=0;for(;i0?r.parent.parameters[o-1]:void 0,l=t.text,u=s?xo(Qb(l,La(l,s.end+1,!1,!0)),Kh(l,e.pos)):Qb(l,La(l,e.pos,!1,!0));return Et(u)&&oEe(Ya(u),t)}let i=r&&Sj(r,t);return!!Ke(i,o=>oEe(o,t))}var gL,ij,qre,k9e=A({"src/compiler/utilitiesPublic.ts"(){"use strict";ia(),gL=tL(vu(0,0),0),ij=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"],qre=1073741823}});function dl(e,t){let r=e.declarations;if(r){for(let i of r)if(i.kind===t)return i}}function Jre(e,t){return tr(e.declarations||et,r=>r.kind===t)}function ua(e){let t=new Map;if(e)for(let r of e)t.set(r.escapedName,r);return t}function fh(e){return(e.flags&33554432)!==0}function w9e(){var e="";let t=r=>e+=r;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(r,i)=>t(r),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&Lg(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:$a,decreaseIndent:$a,clear:()=>e=""}}function M6(e,t){return e.configFilePath!==t.configFilePath||Kre(e,t)}function Kre(e,t){return Yx(e,t,A5)}function Xre(e,t){return Yx(e,t,fq)}function Yx(e,t,r){return e!==t&&r.some(i=>!$3(B3(e,i),B3(t,i)))}function Yre(e,t){for(;;){let r=t(e);if(r==="quit")return;if(r!==void 0)return r;if(no(e))return;e=e.parent}}function Bc(e,t){let r=e.entries();for(let[i,o]of r){let s=t(o,i);if(s)return s}}function mh(e,t){let r=e.keys();for(let i of r){let o=t(i);if(o)return o}}function L6(e,t){e.forEach((r,i)=>{t.set(i,r)})}function bC(e){let t=Sk.getText();try{return e(Sk),Sk.getText()}finally{Sk.clear(),Sk.writeKeyword(t)}}function vL(e){return e.end-e.pos}function oj(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function $re(e,t){return e===t||e.resolvedModule===t.resolvedModule||!!e.resolvedModule&&!!t.resolvedModule&&e.resolvedModule.isExternalLibraryImport===t.resolvedModule.isExternalLibraryImport&&e.resolvedModule.extension===t.resolvedModule.extension&&e.resolvedModule.resolvedFileName===t.resolvedModule.resolvedFileName&&e.resolvedModule.originalPath===t.resolvedModule.originalPath&&O9e(e.resolvedModule.packageId,t.resolvedModule.packageId)&&e.alternateResult===t.alternateResult}function k6(e,t,r,i,o){var s;let l=(s=t.getResolvedModule(e,r,i))==null?void 0:s.alternateResult,u=l&&(dd(t.getCompilerOptions())===2?[f.There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler,[l]]:[f.There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings,[l,l.includes(Ih+"@types/")?`@types/${r2(o)}`:o]]),p=u?Uo(void 0,u[0],...u[1]):t.typesPackageExists(o)?Uo(void 0,f.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,o,r2(o)):t.packageBundlesTypes(o)?Uo(void 0,f.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,o,r):Uo(void 0,f.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,r,r2(o));return p&&(p.repopulateInfo=()=>({moduleReference:r,mode:i,packageName:o===r?void 0:o})),p}function O9e(e,t){return e===t||!!e&&!!t&&e.name===t.name&&e.subModuleName===t.subModuleName&&e.version===t.version}function w6({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function Fy(e){return`${w6(e)}@${e.version}`}function Qre(e,t){return e===t||e.resolvedTypeReferenceDirective===t.resolvedTypeReferenceDirective||!!e.resolvedTypeReferenceDirective&&!!t.resolvedTypeReferenceDirective&&e.resolvedTypeReferenceDirective.resolvedFileName===t.resolvedTypeReferenceDirective.resolvedFileName&&!!e.resolvedTypeReferenceDirective.primary==!!t.resolvedTypeReferenceDirective.primary&&e.resolvedTypeReferenceDirective.originalPath===t.resolvedTypeReferenceDirective.originalPath}function aj(e,t,r,i){C.assert(e.length===t.length);for(let o=0;o=0),Mg(t)[e]}function aEe(e){let t=Vn(e),r=Es(t,e.pos);return`${t.fileName}(${r.line+1},${r.character+1})`}function bL(e,t){C.assert(e>=0);let r=Mg(t),i=e,o=t.text;if(i+1===r.length)return o.length-1;{let s=r[i],l=r[i+1]-1;for(C.assert(Uu(o.charCodeAt(l)));s<=l&&Uu(o.charCodeAt(l));)l--;return l}}function F6(e,t,r){return!(r&&r(t))&&!e.identifiers.has(t)}function Fl(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function Xf(e){return!Fl(e)}function eie(e,t){return _l(e)?t===e.expression:Il(e)?t===e.modifiers:gp(e)?t===e.initializer:Jo(e)?t===e.questionToken&&kd(e):_c(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||EL(e.modifiers,t,al):np(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||EL(e.modifiers,t,al):jl(e)?t===e.exclamationToken:Pl(e)?t===e.typeParameters||t===e.type||EL(e.typeParameters,t,_l):Zp(e)?t===e.typeParameters||EL(e.typeParameters,t,_l):vp(e)?t===e.typeParameters||t===e.type||EL(e.typeParameters,t,_l):Hk(e)?t===e.modifiers||EL(e.modifiers,t,al):!1}function EL(e,t,r){return!e||Do(t)||!r(t)?!1:wr(e,t)}function sEe(e,t,r){if(t===void 0||t.length===0)return e;let i=0;for(;i[`${Es(e,l.range.end).line}`,l])),i=new Map;return{getUnusedExpectations:o,markUsed:s};function o(){return Vo(r.entries()).filter(([l,u])=>u.type===0&&!i.get(l)).map(([l,u])=>u)}function s(l){return r.has(`${l}`)?(i.set(`${l}`,!0),!0):!1}}function s0(e,t,r){return Fl(e)?e.pos:Kx(e)||e.kind===12?La((t||Vn(e)).text,e.pos,!1,!0):r&&Op(e)?s0(e.jsDoc[0],t):e.kind===358&&e._children.length>0?s0(e._children[0],t,r):La((t||Vn(e)).text,e.pos,!1,!1,LL(e))}function cj(e,t){let r=!Fl(e)&&Cm(e)?Qr(e.modifiers,Eu):void 0;return r?La((t||Vn(e)).text,r.end):s0(e,t)}function A1(e,t,r=!1){return EC(e.text,t,r)}function W9e(e){return!!zn(e,Z1)}function z6(e){return!!(Kl(e)&&e.exportClause&&Sh(e.exportClause)&&e.exportClause.name.escapedText==="default")}function EC(e,t,r=!1){if(Fl(t))return"";let i=e.substring(r?t.pos:La(e,t.pos),t.end);return W9e(t)&&(i=i.split(/\r\n|\n|\r/).map(o=>o.replace(/^\s*\*/,"").trimStart()).join(` +`)),i}function pc(e,t=!1){return A1(Vn(e),e,t)}function z9e(e){return e.pos}function Qx(e,t){return xv(e,t,z9e,tl)}function Va(e){let t=e.emitNode;return t&&t.flags||0}function Tm(e){let t=e.emitNode;return t&&t.internalFlags||0}function nie(e,t,r){if(t&&B9e(e,r))return A1(t,e);switch(e.kind){case 11:{let i=r&2?Zj:r&1||Va(e)&16777216?rg:rk;return e.singleQuote?"'"+i(e.text,39)+"'":'"'+i(e.text,34)+'"'}case 15:case 16:case 17:case 18:{let i=r&1||Va(e)&16777216?rg:rk,o=e.rawText??$j(i(e.text,96));switch(e.kind){case 15:return"`"+o+"`";case 16:return"`"+o+"${";case 17:return"}"+o+"${";case 18:return"}"+o+"`"}break}case 9:case 10:return e.text;case 14:return r&4&&e.isUnterminated?e.text+(e.text.charCodeAt(e.text.length-1)===92?" /":"/"):e.text}return C.fail(`Literal kind '${e.kind}' not accounted for.`)}function B9e(e,t){if(Xs(e)||!e.parent||t&4&&e.isUnterminated)return!1;if(hp(e)){if(e.numericLiteralFlags&26656)return!1;if(e.numericLiteralFlags&512)return!!(t&8)}return!H7(e)}function rie(e){return wo(e)?'"'+rk(e)+'"':""+e}function iie(e){return rc(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function uj(e){return(Lv(e)&7)!==0||dj(e)}function dj(e){let t=D_(e);return t.kind===260&&t.parent.kind===299}function Lu(e){return Jl(e)&&(e.name.kind===11||I_(e))}function B6(e){return Jl(e)&&e.name.kind===11}function pj(e){return Jl(e)&&Na(e.name)}function oie(e){return Jl(e)||Ve(e)}function SC(e){return G9e(e.valueDeclaration)}function G9e(e){return!!e&&e.kind===267&&!e.body}function aie(e){return e.kind===312||e.kind===267||qx(e)}function I_(e){return!!(e.flags&2048)}function I1(e){return Lu(e)&&fj(e)}function fj(e){switch(e.parent.kind){case 312:return ac(e.parent);case 268:return Lu(e.parent.parent)&&no(e.parent.parent.parent)&&!ac(e.parent.parent.parent)}return!1}function mj(e){var t;return(t=e.declarations)==null?void 0:t.find(r=>!I1(r)&&!(Jl(r)&&I_(r)))}function V9e(e){return e===1||e===100||e===199}function NA(e,t){return ac(e)||V9e(ku(t))&&!!e.commonJsModuleIndicator}function _j(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return e.isDeclarationFile?!1:ud(t,"alwaysStrict")||Xae(e.statements)?!0:ac(e)||im(t)?ku(t)>=5?!0:!t.noImplicitUseStrict:!1}function hj(e){return!!(e.flags&33554432)||ei(e,128)}function gj(e,t){switch(e.kind){case 312:case 269:case 299:case 267:case 248:case 249:case 250:case 176:case 174:case 177:case 178:case 262:case 218:case 219:case 172:case 175:return!0;case 241:return!qx(t)}return!1}function vj(e){switch(C.type(e),e.kind){case 345:case 353:case 330:return!0;default:return yj(e)}}function yj(e){switch(C.type(e),e.kind){case 179:case 180:case 173:case 181:case 184:case 185:case 324:case 263:case 231:case 264:case 265:case 352:case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function _S(e){switch(e.kind){case 272:case 271:return!0;default:return!1}}function sie(e){return _S(e)||C1(e)}function G6(e){switch(e.kind){case 272:case 271:case 243:case 263:case 262:case 267:case 265:case 264:case 266:return!0;default:return!1}}function lie(e){return SL(e)||Jl(e)||lg(e)||Wp(e)}function SL(e){return _S(e)||Kl(e)}function bj(e){return zn(e.parent,t=>!!(Mq(t)&1))}function _h(e){return zn(e.parent,t=>gj(t,t.parent))}function cie(e,t){let r=_h(e);for(;r;)t(r),r=_h(r)}function Ds(e){return!e||vL(e)===0?"(Missing)":pc(e)}function uie(e){return e.declaration?Ds(e.declaration.parameters[0].name):void 0}function TL(e){return e.kind===167&&!Qp(e.expression)}function TC(e){var t;switch(e.kind){case 80:case 81:return(t=e.emitNode)!=null&&t.autoGenerate?void 0:e.escapedText;case 11:case 9:case 15:return ml(e.text);case 167:return Qp(e.expression)?ml(e.expression.text):void 0;case 295:return HA(e);default:return C.assertNever(e)}}function Zx(e){return C.checkDefined(TC(e))}function fp(e){switch(e.kind){case 110:return"this";case 81:case 80:return vL(e)===0?Sr(e):pc(e);case 166:return fp(e.left)+"."+fp(e.right);case 211:return Ve(e.name)||Xi(e.name)?fp(e.expression)+"."+fp(e.name):C.assertNever(e.name);case 318:return fp(e.left)+fp(e.right);case 295:return fp(e.namespace)+":"+fp(e.name);default:return C.assertNever(e)}}function Or(e,t,...r){let i=Vn(e);return Yf(i,e,t,...r)}function eR(e,t,r,...i){let o=La(e.text,t.pos);return Qc(e,o,t.end-o,r,...i)}function Yf(e,t,r,...i){let o=hS(e,t);return Qc(e,o.start,o.length,r,...i)}function Og(e,t,r,i){let o=hS(e,t);return V6(e,o.start,o.length,r,i)}function AL(e,t,r,i){let o=La(e.text,t.pos);return V6(e,o,t.end-o,r,i)}function die(e,t,r){C.assertGreaterThanOrEqual(t,0),C.assertGreaterThanOrEqual(r,0),C.assertLessThanOrEqual(t,e.length),C.assertLessThanOrEqual(t+r,e.length)}function V6(e,t,r,i,o){return die(e.text,t,r),{file:e,start:t,length:r,code:i.code,category:i.category,messageText:i.next?i:i.messageText,relatedInformation:o}}function Ej(e,t,r){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:r}}function pie(e){return typeof e.messageText=="string"?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function fie(e,t,r){return{file:e,start:t.pos,length:t.end-t.pos,code:r.code,category:r.category,messageText:r.message}}function hh(e,t){let r=Mv(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);r.scan();let i=r.getTokenStart();return dc(i,r.getTokenEnd())}function mie(e,t){let r=Mv(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return r.scan(),r.getToken()}function j9e(e,t){let r=La(e.text,t.pos);if(t.body&&t.body.kind===241){let{line:i}=Es(e,t.body.pos),{line:o}=Es(e,t.body.end);if(i0?t.statements[0].pos:t.end;return dc(s,l)}case 253:case 229:{let s=La(e.text,t.pos);return hh(e,s)}case 238:{let s=La(e.text,t.expression.end);return hh(e,s)}case 357:{let s=La(e.text,t.tagName.pos);return hh(e,s)}}if(r===void 0)return hh(e,t.pos);C.assert(!t_(r));let i=Fl(r),o=i||$A(t)?r.pos:La(e.text,r.pos);return i?(C.assert(o===r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),C.assert(o===r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(C.assert(o>=r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),C.assert(o<=r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),dc(o,r.end)}function Fp(e){return(e.externalModuleIndicator||e.commonJsModuleIndicator)!==void 0}function $f(e){return e.scriptKind===6}function x1(e){return!!(t0(e)&4096)}function j6(e){return!!(t0(e)&8&&!pp(e,e.parent))}function IL(e){return(Lv(e)&7)===6}function xL(e){return(Lv(e)&7)===4}function tR(e){return(Lv(e)&7)===2}function U6(e){return(Lv(e)&7)===1}function gS(e){return e.kind===213&&e.expression.kind===108}function Wp(e){return e.kind===213&&e.expression.kind===102}function nR(e){return yN(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function zy(e){return lg(e)&&Yy(e.argument)&&Na(e.argument.literal)}function Am(e){return e.kind===244&&e.expression.kind===11}function RL(e){return!!(Va(e)&2097152)}function H6(e){return RL(e)&&Sc(e)}function U9e(e){return Ve(e.name)&&!e.initializer}function q6(e){return RL(e)&&Ml(e)&&Jn(e.declarationList.declarations,U9e)}function Sj(e,t){return e.kind!==12?Kh(t.text,e.pos):void 0}function Tj(e,t){let r=e.kind===169||e.kind===168||e.kind===218||e.kind===219||e.kind===217||e.kind===260||e.kind===281?xo(Qb(t,e.pos),Kh(t,e.pos)):Kh(t,e.pos);return tr(r,i=>t.charCodeAt(i.pos+1)===42&&t.charCodeAt(i.pos+2)===42&&t.charCodeAt(i.pos+3)!==47)}function Zh(e){if(182<=e.kind&&e.kind<=205)return!0;switch(e.kind){case 133:case 159:case 150:case 163:case 154:case 136:case 155:case 151:case 157:case 106:case 146:return!0;case 116:return e.parent.kind!==222;case 233:return dEe(e);case 168:return e.parent.kind===200||e.parent.kind===195;case 80:(e.parent.kind===166&&e.parent.right===e||e.parent.kind===211&&e.parent.name===e)&&(e=e.parent),C.assert(e.kind===80||e.kind===166||e.kind===211,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 166:case 211:case 110:{let{parent:t}=e;if(t.kind===186)return!1;if(t.kind===205)return!t.isTypeOf;if(182<=t.kind&&t.kind<=205)return!0;switch(t.kind){case 233:return dEe(t);case 168:return e===t.constraint;case 352:return e===t.constraint;case 172:case 171:case 169:case 260:return e===t.type;case 262:case 218:case 219:case 176:case 174:case 173:case 177:case 178:return e===t.type;case 179:case 180:case 181:return e===t.type;case 216:return e===t.type;case 213:case 214:case 215:return wr(t.typeArguments,e)}}}return!1}function dEe(e){return a5(e.parent)||fI(e.parent)||ef(e.parent)&&!R3(e)}function pEe(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1}function R1(e,t){return r(e);function r(i){switch(i.kind){case 253:return t(i);case 269:case 241:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 296:case 297:case 256:case 258:case 299:return Ho(i,r)}}}function _ie(e,t){return r(e);function r(i){switch(i.kind){case 229:t(i);let o=i.expression;o&&r(o);return;case 266:case 264:case 267:case 265:return;default:if(ea(i)){if(i.name&&i.name.kind===167){r(i.name.expression);return}}else Zh(i)||Ho(i,r)}}}function Aj(e){return e&&e.kind===188?e.elementType:e&&e.kind===183?ah(e.typeArguments):void 0}function hie(e){switch(e.kind){case 264:case 263:case 231:case 187:return e.members;case 210:return e.properties}}function rR(e){if(e)switch(e.kind){case 208:case 306:case 169:case 303:case 172:case 171:case 304:case 260:return!0}return!1}function gie(e){return rR(e)||Ly(e)}function AC(e){return e.parent.kind===261&&e.parent.parent.kind===243}function vie(e){return cr(e)?wa(e.parent)&&_r(e.parent.parent)&&Wl(e.parent.parent)===2||J6(e.parent):!1}function J6(e){return cr(e)?_r(e)&&Wl(e)===1:!1}function yie(e){return(Oi(e)?tR(e)&&Ve(e.name)&&AC(e):Jo(e)?BC(e)&&fc(e):gp(e)&&BC(e))||J6(e)}function bie(e){switch(e.kind){case 174:case 173:case 176:case 177:case 178:case 262:case 218:return!0}return!1}function Ij(e,t){for(;;){if(t&&t(e),e.statement.kind!==256)return e.statement;e=e.statement}}function D1(e){return e&&e.kind===241&&ea(e.parent)}function Im(e){return e&&e.kind===174&&e.parent.kind===210}function K6(e){return(e.kind===174||e.kind===177||e.kind===178)&&(e.parent.kind===210||e.parent.kind===231)}function Eie(e){return e&&e.kind===1}function fEe(e){return e&&e.kind===0}function iR(e,t,r,i){return Ke(e?.properties,o=>{if(!_c(o))return;let s=TC(o.name);return t===s||i&&i===s?r(o):void 0})}function Sie(e,t,r){return iR(e,t,i=>pd(i.initializer)?vn(i.initializer.elements,o=>Na(o)&&o.text===r):void 0)}function IC(e){if(e&&e.statements.length){let t=e.statements[0].expression;return ai(t,wa)}}function X6(e,t,r){return DL(e,t,i=>pd(i.initializer)?vn(i.initializer.elements,o=>Na(o)&&o.text===r):void 0)}function DL(e,t,r){return iR(IC(e),t,r)}function zp(e){return zn(e.parent,ea)}function Tie(e){return zn(e.parent,zs)}function su(e){return zn(e.parent,pi)}function Aie(e){return zn(e.parent,t=>pi(t)||ea(t)?"quit":Il(t))}function Y6(e){return zn(e.parent,qx)}function $6(e){let t=zn(e.parent,r=>pi(r)?"quit":Eu(r));return t&&pi(t.parent)?su(t.parent):su(t??e)}function wd(e,t,r){for(C.assert(e.kind!==312);;){if(e=e.parent,!e)return C.fail();switch(e.kind){case 167:if(r&&pi(e.parent.parent))return e;e=e.parent.parent;break;case 170:e.parent.kind===169&&$c(e.parent.parent)?e=e.parent.parent:$c(e.parent)&&(e=e.parent);break;case 219:if(!t)continue;case 262:case 218:case 267:case 175:case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 179:case 180:case 181:case 266:case 312:return e}}}function Iie(e){switch(e.kind){case 219:case 262:case 218:case 172:return!0;case 241:switch(e.parent.kind){case 176:case 174:case 177:case 178:return!0;default:return!1}default:return!1}}function Q6(e){Ve(e)&&(Tc(e.parent)||Sc(e.parent))&&e.parent.name===e&&(e=e.parent);let t=wd(e,!0,!1);return no(t)}function xie(e){let t=wd(e,!1,!1);if(t)switch(t.kind){case 176:case 262:case 218:return t}}function CL(e,t){for(;;){if(e=e.parent,!e)return;switch(e.kind){case 167:e=e.parent;break;case 262:case 218:case 219:if(!t)continue;case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 175:return e;case 170:e.parent.kind===169&&$c(e.parent.parent)?e=e.parent.parent:$c(e.parent)&&(e=e.parent);break}}}function vS(e){if(e.kind===218||e.kind===219){let t=e,r=e.parent;for(;r.kind===217;)t=r,r=r.parent;if(r.kind===213&&r.expression===t)return r}}function mEe(e){return e.kind===108||Od(e)}function Od(e){let t=e.kind;return(t===211||t===212)&&e.expression.kind===108}function NL(e){let t=e.kind;return(t===211||t===212)&&e.expression.kind===110}function Z6(e){var t;return!!e&&Oi(e)&&((t=e.initializer)==null?void 0:t.kind)===110}function Rie(e){return!!e&&(np(e)||_c(e))&&_r(e.parent.parent)&&e.parent.parent.operatorToken.kind===64&&e.parent.parent.right.kind===110}function PL(e){switch(e.kind){case 183:return e.typeName;case 233:return zl(e.expression)?e.expression:void 0;case 80:case 166:return e}}function e3(e){switch(e.kind){case 215:return e.tag;case 286:case 285:return e.tagName;case 226:return e.right;default:return e.expression}}function t3(e,t,r,i){if(e&&od(t)&&Xi(t.name))return!1;switch(t.kind){case 263:return!0;case 231:return!e;case 172:return r!==void 0&&(e?Tc(r):pi(r)&&!F1(t)&&!oU(t));case 177:case 178:case 174:return t.body!==void 0&&r!==void 0&&(e?Tc(r):pi(r));case 169:return e?r!==void 0&&r.body!==void 0&&(r.kind===176||r.kind===174||r.kind===178)&&k1(r)!==t&&i!==void 0&&i.kind===263:!1}return!1}function oR(e,t,r,i){return Sf(t)&&t3(e,t,r,i)}function ML(e,t,r,i){return oR(e,t,r,i)||xC(e,t,r)}function xC(e,t,r){switch(t.kind){case 263:return Et(t.members,i=>ML(e,i,t,r));case 231:return!e&&Et(t.members,i=>ML(e,i,t,r));case 174:case 178:case 176:return Et(t.parameters,i=>oR(e,i,t,r));default:return!1}}function Ov(e,t){if(oR(e,t))return!0;let r=ig(t);return!!r&&xC(e,r,t)}function xj(e,t,r){let i;if(Ly(t)){let{firstAccessor:o,secondAccessor:s,setAccessor:l}=RS(r.members,t),u=Sf(o)?o:s&&Sf(s)?s:void 0;if(!u||t!==u)return!1;i=l?.parameters}else jl(t)&&(i=t.parameters);if(oR(e,t,r))return!0;if(i){for(let o of i)if(!w1(o)&&oR(e,o,t,r))return!0}return!1}function Rj(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 11:return Rj(e.textSourceNode);case 15:return e.text===""}return!1}return e.text===""}function aR(e){let{parent:t}=e;return t.kind===286||t.kind===285||t.kind===287?t.tagName===e:!1}function eg(e){switch(e.kind){case 108:case 106:case 112:case 97:case 14:case 209:case 210:case 211:case 212:case 213:case 214:case 215:case 234:case 216:case 238:case 235:case 217:case 218:case 231:case 219:case 222:case 220:case 221:case 224:case 225:case 226:case 227:case 230:case 228:case 232:case 284:case 285:case 288:case 229:case 223:case 236:return!0;case 233:return!ef(e.parent)&&!fI(e.parent);case 166:for(;e.parent.kind===166;)e=e.parent;return e.parent.kind===186||CA(e.parent)||xN(e.parent)||y0(e.parent)||aR(e);case 318:for(;y0(e.parent);)e=e.parent;return e.parent.kind===186||CA(e.parent)||xN(e.parent)||y0(e.parent)||aR(e);case 81:return _r(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===103;case 80:if(e.parent.kind===186||CA(e.parent)||xN(e.parent)||y0(e.parent)||aR(e))return!0;case 9:case 10:case 11:case 15:case 110:return n3(e);default:return!1}}function n3(e){let{parent:t}=e;switch(t.kind){case 260:case 169:case 172:case 171:case 306:case 303:case 208:return t.initializer===e;case 244:case 245:case 246:case 247:case 253:case 254:case 255:case 296:case 257:return t.expression===e;case 248:let r=t;return r.initializer===e&&r.initializer.kind!==261||r.condition===e||r.incrementor===e;case 249:case 250:let i=t;return i.initializer===e&&i.initializer.kind!==261||i.expression===e;case 216:case 234:return e===t.expression;case 239:return e===t.expression;case 167:return e===t.expression;case 170:case 294:case 293:case 305:return!0;case 233:return t.expression===e&&!Zh(t);case 304:return t.objectAssignmentInitializer===e;case 238:return e===t.expression;default:return eg(t)}}function r3(e){for(;e.kind===166||e.kind===80;)e=e.parent;return e.kind===186}function Die(e){return Sh(e)&&!!e.parent.moduleSpecifier}function l0(e){return e.kind===271&&e.moduleReference.kind===283}function RC(e){return C.assert(l0(e)),e.moduleReference.expression}function Dj(e){return C1(e)&&IR(e.initializer).arguments[0]}function sR(e){return e.kind===271&&e.moduleReference.kind!==283}function ld(e){return cr(e)}function _Ee(e){return!cr(e)}function cr(e){return!!e&&!!(e.flags&524288)}function i3(e){return!!e&&!!(e.flags&134217728)}function Cj(e){return!$f(e)}function LL(e){return!!e&&!!(e.flags&16777216)}function o3(e){return Rf(e)&&Ve(e.typeName)&&e.typeName.escapedText==="Object"&&e.typeArguments&&e.typeArguments.length===2&&(e.typeArguments[0].kind===154||e.typeArguments[0].kind===150)}function Sd(e,t){if(e.kind!==213)return!1;let{expression:r,arguments:i}=e;if(r.kind!==80||r.escapedText!=="require"||i.length!==1)return!1;let o=i[0];return!t||us(o)}function a3(e){return hEe(e,!1)}function C1(e){return hEe(e,!0)}function Cie(e){return Qa(e)&&C1(e.parent.parent)}function hEe(e,t){return Oi(e)&&!!e.initializer&&Sd(t?IR(e.initializer):e.initializer,!0)}function Nj(e){return Ml(e)&&e.declarationList.declarations.length>0&&Jn(e.declarationList.declarations,t=>a3(t))}function kL(e){return e===39||e===34}function s3(e,t){return A1(t,e).charCodeAt(0)===34}function DC(e){return _r(e)||ks(e)||Ve(e)||la(e)}function wL(e){return cr(e)&&e.initializer&&_r(e.initializer)&&(e.initializer.operatorToken.kind===57||e.initializer.operatorToken.kind===61)&&e.name&&zl(e.name)&&lR(e.name,e.initializer.left)?e.initializer.right:e.initializer}function OL(e){let t=wL(e);return t&&c0(t,Vy(e.name))}function H9e(e,t){return Ke(e.properties,r=>_c(r)&&Ve(r.name)&&r.name.escapedText==="value"&&r.initializer&&c0(r.initializer,t))}function PA(e){if(e&&e.parent&&_r(e.parent)&&e.parent.operatorToken.kind===64){let t=Vy(e.parent.left);return c0(e.parent.right,t)||q9e(e.parent.left,e.parent.right,t)}if(e&&la(e)&&bS(e)){let t=H9e(e.arguments[2],e.arguments[1].text==="prototype");if(t)return t}}function c0(e,t){if(la(e)){let r=vs(e.expression);return r.kind===218||r.kind===219?e:void 0}if(e.kind===218||e.kind===231||e.kind===219||wa(e)&&(e.properties.length===0||t))return e}function q9e(e,t,r){let i=_r(t)&&(t.operatorToken.kind===57||t.operatorToken.kind===61)&&c0(t.right,r);if(i&&lR(e,t.left))return i}function Nie(e){let t=Oi(e.parent)?e.parent.name:_r(e.parent)&&e.parent.operatorToken.kind===64?e.parent.left:void 0;return t&&c0(e.right,Vy(t))&&zl(t)&&lR(t,e.left)}function Pj(e){if(_r(e.parent)){let t=(e.parent.operatorToken.kind===57||e.parent.operatorToken.kind===61)&&_r(e.parent.parent)?e.parent.parent:e.parent;if(t.operatorToken.kind===64&&Ve(t.left))return t.left}else if(Oi(e.parent))return e.parent.name}function lR(e,t){return R_(e)&&R_(t)?Zf(e)===Zf(t):Yh(e)&&l3(t)&&(t.expression.kind===110||Ve(t.expression)&&(t.expression.escapedText==="window"||t.expression.escapedText==="self"||t.expression.escapedText==="global"))?lR(e,zL(t)):l3(e)&&l3(t)?Fg(e)===Fg(t)&&lR(e.expression,t.expression):!1}function FL(e){for(;Mc(e,!0);)e=e.right;return e}function yS(e){return Ve(e)&&e.escapedText==="exports"}function Mj(e){return Ve(e)&&e.escapedText==="module"}function tg(e){return(zr(e)||WL(e))&&Mj(e.expression)&&Fg(e)==="exports"}function Wl(e){let t=J9e(e);return t===5||cr(e)?t:0}function bS(e){return De(e.arguments)===3&&zr(e.expression)&&Ve(e.expression.expression)&&Sr(e.expression.expression)==="Object"&&Sr(e.expression.name)==="defineProperty"&&Qp(e.arguments[1])&&ES(e.arguments[0],!0)}function l3(e){return zr(e)||WL(e)}function WL(e){return Ys(e)&&Qp(e.argumentExpression)}function N1(e,t){return zr(e)&&(!t&&e.expression.kind===110||Ve(e.name)&&ES(e.expression,!0))||c3(e,t)}function c3(e,t){return WL(e)&&(!t&&e.expression.kind===110||zl(e.expression)||N1(e.expression,!0))}function ES(e,t){return zl(e)||N1(e,t)}function zL(e){return zr(e)?e.name:e.argumentExpression}function J9e(e){if(la(e)){if(!bS(e))return 0;let t=e.arguments[0];return yS(t)||tg(t)?8:N1(t)&&Fg(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!ks(e.left)||K9e(FL(e))?0:ES(e.left.expression,!0)&&Fg(e.left)==="prototype"&&wa(Lj(e))?6:BL(e.left)}function K9e(e){return sI(e)&&hp(e.expression)&&e.expression.text==="0"}function u3(e){if(zr(e))return e.name;let t=vs(e.argumentExpression);return hp(t)||us(t)?t:e}function Fg(e){let t=u3(e);if(t){if(Ve(t))return t.escapedText;if(us(t)||hp(t))return ml(t.text)}}function BL(e){if(e.expression.kind===110)return 4;if(tg(e))return 2;if(ES(e.expression,!0)){if(Vy(e.expression))return 3;let t=e;for(;!Ve(t.expression);)t=t.expression;let r=t.expression;if((r.escapedText==="exports"||r.escapedText==="module"&&Fg(t)==="exports")&&N1(e))return 1;if(ES(e,!0)||Ys(e)&&h3(e))return 5}return 0}function Lj(e){for(;_r(e.right);)e=e.right;return e.right}function GL(e){return _r(e)&&Wl(e)===3}function Pie(e){return cr(e)&&e.parent&&e.parent.kind===244&&(!Ys(e)||WL(e))&&!!r0(e.parent)}function VL(e,t){let{valueDeclaration:r}=e;(!r||!(t.flags&33554432&&!cr(t)&&!(r.flags&33554432))&&DC(r)&&!DC(t)||r.kind!==t.kind&&oie(r))&&(e.valueDeclaration=t)}function Mie(e){if(!e||!e.valueDeclaration)return!1;let t=e.valueDeclaration;return t.kind===262||Oi(t)&&t.initializer&&ea(t.initializer)}function cR(e){var t,r;switch(e.kind){case 260:case 208:return(t=zn(e.initializer,i=>Sd(i,!0)))==null?void 0:t.arguments[0];case 272:case 278:return ai(e.moduleSpecifier,us);case 271:return ai((r=ai(e.moduleReference,Th))==null?void 0:r.expression,us);case 273:case 280:return ai(e.parent.moduleSpecifier,us);case 274:case 281:return ai(e.parent.parent.moduleSpecifier,us);case 276:return ai(e.parent.parent.parent.moduleSpecifier,us);case 205:return zy(e)?e.argument.literal:void 0;default:C.assertNever(e)}}function CC(e){return jL(e)||C.failBadSyntaxKind(e.parent)}function jL(e){switch(e.parent.kind){case 272:case 278:return e.parent;case 283:return e.parent.parent;case 213:return Wp(e.parent)||Sd(e.parent,!1)?e.parent:void 0;case 201:return C.assert(Na(e)),ai(e.parent.parent,lg);default:return}}function uR(e){switch(e.kind){case 272:case 278:return e.moduleSpecifier;case 271:return e.moduleReference.kind===283?e.moduleReference.expression:void 0;case 205:return zy(e)?e.argument.literal:void 0;case 213:return e.arguments[0];case 267:return e.name.kind===11?e.name:void 0;default:return C.assertNever(e)}}function dR(e){switch(e.kind){case 272:return e.importClause&&ai(e.importClause.namedBindings,Zy);case 271:return e;case 278:return e.exportClause&&ai(e.exportClause,Sh);default:return C.assertNever(e)}}function MA(e){return e.kind===272&&!!e.importClause&&!!e.importClause.name}function d3(e,t){if(e.name){let r=t(e);if(r)return r}if(e.namedBindings){let r=Zy(e.namedBindings)?t(e.namedBindings):Ke(e.namedBindings.elements,t);if(r)return r}}function LA(e){if(e)switch(e.kind){case 169:case 174:case 173:case 304:case 303:case 172:case 171:return e.questionToken!==void 0}return!1}function pR(e){let t=jR(e)?Xc(e.parameters):void 0,r=ai(t&&t.name,Ve);return!!r&&r.escapedText==="new"}function Qf(e){return e.kind===353||e.kind===345||e.kind===347}function UL(e){return Qf(e)||Dm(e)}function X9e(e){return eu(e)&&_r(e.expression)&&e.expression.operatorToken.kind===64?FL(e.expression):void 0}function gEe(e){return eu(e)&&_r(e.expression)&&Wl(e.expression)!==0&&_r(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function kj(e){switch(e.kind){case 243:let t=kA(e);return t&&t.initializer;case 172:return e.initializer;case 303:return e.initializer}}function kA(e){return Ml(e)?Xc(e.declarationList.declarations):void 0}function vEe(e){return Jl(e)&&e.body&&e.body.kind===267?e.body:void 0}function HL(e){if(e.kind>=243&&e.kind<=259)return!0;switch(e.kind){case 80:case 110:case 108:case 166:case 236:case 212:case 211:case 208:case 218:case 219:case 174:case 177:case 178:return!0;default:return!1}}function qL(e){switch(e.kind){case 219:case 226:case 241:case 252:case 179:case 296:case 263:case 231:case 175:case 176:case 185:case 180:case 251:case 259:case 246:case 212:case 242:case 1:case 266:case 306:case 277:case 278:case 281:case 244:case 249:case 250:case 248:case 262:case 218:case 184:case 177:case 80:case 245:case 272:case 271:case 181:case 264:case 324:case 330:case 256:case 174:case 173:case 267:case 202:case 270:case 210:case 169:case 217:case 211:case 303:case 172:case 171:case 253:case 240:case 178:case 304:case 305:case 255:case 257:case 258:case 265:case 168:case 260:case 243:case 247:case 254:return!0;default:return!1}}function wj(e,t){let r;rR(e)&&Oy(e)&&Op(e.initializer)&&(r=Jr(r,yEe(e,e.initializer.jsDoc)));let i=e;for(;i&&i.parent;){if(Op(i)&&(r=Jr(r,yEe(e,i.jsDoc))),i.kind===169){r=Jr(r,(t?pre:jx)(i));break}if(i.kind===168){r=Jr(r,(t?mre:fre)(i));break}i=Oj(i)}return r||et}function yEe(e,t){let r=Ya(t);return Zi(t,i=>{if(i===r){let o=tr(i.tags,s=>Y9e(e,s));return i.tags===o?[i]:o}else return tr(i.tags,UR)})}function Y9e(e,t){return!(RN(t)||s5(t))||!t.parent||!t_(t.parent)||!Wd(t.parent.parent)||t.parent.parent===e}function Oj(e){let t=e.parent;if(t.kind===303||t.kind===277||t.kind===172||t.kind===244&&e.kind===211||t.kind===253||vEe(t)||Mc(e))return t;if(t.parent&&(kA(t.parent)===e||Mc(t)))return t.parent;if(t.parent&&t.parent.parent&&(kA(t.parent.parent)||kj(t.parent.parent)===e||gEe(t.parent.parent)))return t.parent.parent}function JL(e){if(e.symbol)return e.symbol;if(!Ve(e.name))return;let t=e.name.escapedText,r=u0(e);if(!r)return;let i=vn(r.parameters,o=>o.name.kind===80&&o.name.escapedText===t);return i&&i.symbol}function p3(e){if(t_(e.parent)&&e.parent.tags){let t=vn(e.parent.tags,Qf);if(t)return t}return u0(e)}function Fj(e){return g6(e,UR)}function u0(e){let t=d0(e);if(t)return gp(t)&&t.type&&ea(t.type)?t.type:ea(t)?t:void 0}function d0(e){let t=SS(e);if(t)return gEe(t)||X9e(t)||kj(t)||kA(t)||vEe(t)||t}function SS(e){let t=fR(e);if(!t)return;let r=t.parent;if(r&&r.jsDoc&&t===Zs(r.jsDoc))return r}function fR(e){return zn(e.parent,t_)}function Lie(e){let t=e.name.escapedText,{typeParameters:r}=e.parent.parent.parent;return r&&vn(r,i=>i.name.escapedText===t)}function bEe(e){return!!e.typeArguments}function kie(e){let t=e.parent;for(;;){switch(t.kind){case 226:let r=t,i=r.operatorToken.kind;return zv(i)&&r.left===e?r:void 0;case 224:case 225:let o=t,s=o.operator;return s===46||s===47?o:void 0;case 249:case 250:let l=t;return l.initializer===e?l:void 0;case 217:case 209:case 230:case 235:e=t;break;case 305:e=t.parent;break;case 304:if(t.name!==e)return;e=t.parent;break;case 303:if(t.name===e)return;e=t.parent;break;default:return}t=e.parent}}function wA(e){let t=kie(e);if(!t)return 0;switch(t.kind){case 226:let r=t.operatorToken.kind;return r===64||GC(r)?1:2;case 224:case 225:return 2;case 249:case 250:return 1}}function ng(e){return!!kie(e)}function $9e(e){let t=vs(e.right);return t.kind===226&&VH(t.operatorToken.kind)}function Wj(e){let t=kie(e);return!!t&&Mc(t,!0)&&$9e(t)}function wie(e){switch(e.kind){case 241:case 243:case 254:case 245:case 255:case 269:case 296:case 297:case 256:case 248:case 249:case 250:case 246:case 247:case 258:case 299:return!0}return!1}function Oie(e){return ws(e)||Bs(e)||RA(e)||Sc(e)||Pl(e)}function EEe(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function KL(e){return EEe(e,196)}function Fv(e){return EEe(e,217)}function Fie(e){let t;for(;e&&e.kind===196;)t=e,e=e.parent;return[t,e]}function XL(e){for(;LS(e);)e=e.type;return e}function vs(e,t){return Xl(e,t?17:1)}function zj(e){return e.kind!==211&&e.kind!==212?!1:(e=Fv(e.parent),e&&e.kind===220)}function P1(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function Wg(e){return!no(e)&&!ta(e)&&qu(e.parent)&&e.parent.name===e}function NC(e){let t=e.parent;switch(e.kind){case 11:case 15:case 9:if(Za(t))return t.parent;case 80:if(qu(t))return t.name===e?t:void 0;if(Ad(t)){let r=t.parent;return n_(r)&&r.name===t?r:void 0}else{let r=t.parent;return _r(r)&&Wl(r)!==0&&(r.left.symbol||r.symbol)&&Oo(r)===e?r:void 0}case 81:return qu(t)&&t.name===e?t:void 0;default:return}}function YL(e){return Qp(e)&&e.parent.kind===167&&qu(e.parent.parent)}function Wie(e){let t=e.parent;switch(t.kind){case 172:case 171:case 174:case 173:case 177:case 178:case 306:case 303:case 211:return t.name===e;case 166:return t.right===e;case 208:case 276:return t.propertyName===e;case 281:case 291:case 285:case 286:case 287:return!0}return!1}function SEe(e){return e.kind===271||e.kind===270||e.kind===273&&e.name||e.kind===274||e.kind===280||e.kind===276||e.kind===281||e.kind===277&&mR(e)?!0:cr(e)&&(_r(e)&&Wl(e)===2&&mR(e)||zr(e)&&_r(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===64&&$L(e.parent.right))}function Bj(e){switch(e.parent.kind){case 273:case 276:case 274:case 281:case 277:case 271:case 280:return e.parent;case 166:do e=e.parent;while(e.parent.kind===166);return Bj(e)}}function $L(e){return zl(e)||Zc(e)}function mR(e){let t=Gj(e);return $L(t)}function Gj(e){return Ll(e)?e.expression:e.right}function zie(e){return e.kind===304?e.name:e.kind===303?e.initializer:e.parent.right}function x_(e){let t=M1(e);if(t&&cr(e)){let r=hre(e);if(r)return r.class}return t}function M1(e){let t=QL(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function _R(e){if(cr(e))return gre(e).map(t=>t.class);{let t=QL(e.heritageClauses,119);return t?.types}}function PC(e){return fd(e)?MC(e)||et:pi(e)&&xo(yA(x_(e)),_R(e))||et}function MC(e){let t=QL(e.heritageClauses,96);return t?t.types:void 0}function QL(e,t){if(e){for(let r of e)if(r.token===t)return r}}function p0(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function Fd(e){return 83<=e&&e<=165}function Vj(e){return 19<=e&&e<=79}function f3(e){return Fd(e)||Vj(e)}function m3(e){return 128<=e&&e<=165}function jj(e){return Fd(e)&&!m3(e)}function TEe(e){return 119<=e&&e<=127}function OA(e){let t=y1(e);return t!==void 0&&jj(t)}function AEe(e){let t=y1(e);return t!==void 0&&Fd(t)}function Uj(e){let t=n0(e);return!!t&&!m3(t)}function hR(e){return 2<=e&&e<=7}function Gc(e){if(!e)return 4;let t=0;switch(e.kind){case 262:case 218:case 174:e.asteriskToken&&(t|=1);case 219:ei(e,1024)&&(t|=2);break}return e.body||(t|=4),t}function LC(e){switch(e.kind){case 262:case 218:case 219:case 174:return e.body!==void 0&&e.asteriskToken===void 0&&ei(e,1024)}return!1}function Qp(e){return us(e)||hp(e)}function _3(e){return Qy(e)&&(e.operator===40||e.operator===41)&&hp(e.operand)}function By(e){let t=Oo(e);return!!t&&h3(t)}function h3(e){if(!(e.kind===167||e.kind===212))return!1;let t=Ys(e)?vs(e.argumentExpression):e.expression;return!Qp(t)&&!_3(t)}function TS(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 15:case 9:return ml(e.text);case 167:let t=e.expression;return Qp(t)?ml(t.text):_3(t)?t.operator===41?ma(t.operator)+t.operand.text:t.operand.text:void 0;case 295:return HA(e);default:return C.assertNever(e)}}function R_(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function Zf(e){return Yh(e)?Sr(e):e_(e)?cN(e):e.text}function kC(e){return Yh(e)?e.escapedText:e_(e)?HA(e):ml(e.text)}function IEe(e){return`__@${Ta(e)}@${e.escapedName}`}function ZL(e,t){return`__#${Ta(e)}@${t}`}function ek(e){return uo(e.escapedName,"__@")}function Bie(e){return uo(e.escapedName,"__#")}function xEe(e){return e.kind===80&&e.escapedText==="Symbol"}function Gie(e){return Ve(e)?Sr(e)==="__proto__":Na(e)&&e.text==="__proto__"}function wC(e,t){switch(e=Xl(e),e.kind){case 231:if(eJ(e))return!1;break;case 218:if(e.name)return!1;break;case 219:break;default:return!1}return typeof t=="function"?t(e):!0}function Hj(e){switch(e.kind){case 303:return!Gie(e.name);case 304:return!!e.objectAssignmentInitializer;case 260:return Ve(e.name)&&!!e.initializer;case 169:return Ve(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 208:return Ve(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 172:return!!e.initializer;case 226:switch(e.operatorToken.kind){case 64:case 77:case 76:case 78:return Ve(e.left)}break;case 277:return!0}return!1}function mp(e,t){if(!Hj(e))return!1;switch(e.kind){case 303:return wC(e.initializer,t);case 304:return wC(e.objectAssignmentInitializer,t);case 260:case 169:case 208:case 172:return wC(e.initializer,t);case 226:return wC(e.right,t);case 277:return wC(e.expression,t)}}function qj(e){return e.escapedText==="push"||e.escapedText==="unshift"}function L1(e){return D_(e).kind===169}function D_(e){for(;e.kind===208;)e=e.parent.parent;return e}function Jj(e){let t=e.kind;return t===176||t===218||t===262||t===219||t===174||t===177||t===178||t===267||t===312}function Xs(e){return Qm(e.pos)||Qm(e.end)}function REe(e){return Lo(e,no)||e}function Kj(e){let t=Yj(e),r=e.kind===214&&e.arguments!==void 0;return Xj(e.kind,t,r)}function Xj(e,t,r){switch(e){case 214:return r?0:1;case 224:case 221:case 222:case 220:case 223:case 227:case 229:return 1;case 226:switch(t){case 43:case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 1}}return 0}function OC(e){let t=Yj(e),r=e.kind===214&&e.arguments!==void 0;return tk(e.kind,t,r)}function Yj(e){return e.kind===226?e.operatorToken.kind:e.kind===224||e.kind===225?e.operator:e.kind}function tk(e,t,r){switch(e){case 361:return 0;case 230:return 1;case 229:return 2;case 227:return 4;case 226:switch(t){case 28:return 0;case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 3;default:return nk(t)}case 216:case 235:case 224:case 221:case 222:case 220:case 223:return 16;case 225:return 17;case 213:return 18;case 214:return r?19:18;case 215:case 211:case 212:case 236:return 19;case 234:case 238:return 11;case 110:case 108:case 80:case 81:case 106:case 112:case 97:case 9:case 10:case 11:case 209:case 210:case 218:case 219:case 231:case 14:case 15:case 228:case 217:case 232:case 284:case 285:case 288:return 20;default:return-1}}function nk(e){switch(e){case 61:return 4;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function gR(e){return tr(e,t=>{switch(t.kind){case 294:return!!t.expression;case 12:return!t.containsOnlyTriviaWhiteSpaces;default:return!0}})}function vR(){let e=[],t=[],r=new Map,i=!1;return{add:s,lookup:o,getGlobalDiagnostics:l,getDiagnostics:u};function o(p){let g;if(p.file?g=r.get(p.file.fileName):g=e,!g)return;let m=xv(g,p,el,F3);if(m>=0)return g[m]}function s(p){let g;p.file?(g=r.get(p.file.fileName),g||(g=[],r.set(p.file.fileName,g),Ty(t,p.file.fileName,ju))):(i&&(i=!1,e=e.slice()),g=e),Ty(g,p,F3)}function l(){return i=!0,e}function u(p){if(p)return r.get(p)||[];let g=$d(t,m=>r.get(m));return e.length&&g.unshift(...e),g}}function $j(e){return e.replace(ZEe,"\\${")}function Vie(e){return!!((e.templateFlags||0)&2048)}function Qj(e){return e&&!!(QA(e)?Vie(e):Vie(e.head)||Et(e.templateSpans,t=>Vie(t.literal)))}function DEe(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function Q9e(e,t,r){if(e.charCodeAt(0)===0){let i=r.charCodeAt(t+e.length);return i>=48&&i<=57?"\\x00":"\\0"}return rSe.get(e)||DEe(e.charCodeAt(0))}function rg(e,t){let r=t===96?nSe:t===39?tSe:eSe;return e.replace(r,Q9e)}function rk(e,t){return e=rg(e,t),Qoe.test(e)?e.replace(Qoe,r=>DEe(r.charCodeAt(0))):e}function Z9e(e){return"&#x"+e.toString(16).toUpperCase()+";"}function eze(e){return e.charCodeAt(0)===0?"�":aSe.get(e)||Z9e(e.charCodeAt(0))}function Zj(e,t){let r=t===39?oSe:iSe;return e.replace(r,eze)}function em(e){let t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&tze(e.charCodeAt(0))?e.substring(1,t-1):e}function tze(e){return e===39||e===34||e===96}function yR(e){let t=e.charCodeAt(0);return t>=97&&t<=122||e.includes("-")}function g3(e){let t=uN[1];for(let r=uN.length;r<=e;r++)uN.push(uN[r-1]+t);return uN[e]}function bR(){return uN[1].length}function ik(e){var t,r,i,o,s,l=!1;function u(N){let O=TA(N);O.length>1?(o=o+O.length-1,s=t.length-N.length+Ya(O),i=s-t.length===0):i=!1}function p(N){N&&N.length&&(i&&(N=g3(r)+N,i=!1),t+=N,u(N))}function g(N){N&&(l=!1),p(N)}function m(N){N&&(l=!0),p(N)}function b(){t="",r=0,i=!0,o=0,s=0,l=!1}function T(N){N!==void 0&&(t+=N,u(N),l=!1)}function I(N){N&&N.length&&g(N)}function R(N){(!i||N)&&(t+=e,o++,s=t.length,i=!0,l=!1)}function M(){return i?t.length:t.length+e.length}return b(),{write:g,rawWrite:T,writeLiteral:I,writeLine:R,increaseIndent:()=>{r++},decreaseIndent:()=>{r--},getIndent:()=>r,getTextPos:()=>t.length,getLine:()=>o,getColumn:()=>i?r*bR():t.length-s,getText:()=>t,isAtStartOfLine:()=>i,hasTrailingComment:()=>l,hasTrailingWhitespace:()=>!!t.length&&Lg(t.charCodeAt(t.length-1)),clear:b,writeKeyword:g,writeOperator:g,writeParameter:g,writeProperty:g,writePunctuation:g,writeSpace:g,writeStringLiteral:g,writeSymbol:(N,O)=>g(N),writeTrailingSemicolon:g,writeComment:m,getTextPosWithWriteLine:M}}function eU(e){let t=!1;function r(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return{...e,writeTrailingSemicolon(){t=!0},writeLiteral(i){r(),e.writeLiteral(i)},writeStringLiteral(i){r(),e.writeStringLiteral(i)},writeSymbol(i,o){r(),e.writeSymbol(i,o)},writePunctuation(i){r(),e.writePunctuation(i)},writeKeyword(i){r(),e.writeKeyword(i)},writeOperator(i){r(),e.writeOperator(i)},writeParameter(i){r(),e.writeParameter(i)},writeSpace(i){r(),e.writeSpace(i)},writeProperty(i){r(),e.writeProperty(i)},writeComment(i){r(),e.writeComment(i)},writeLine(){r(),e.writeLine()},increaseIndent(){r(),e.increaseIndent()},decreaseIndent(){r(),e.decreaseIndent()}}}function ER(e){return e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames():!1}function Wv(e){return Pu(ER(e))}function v3(e,t,r){return t.moduleName||tU(e,t.fileName,r&&r.fileName)}function CEe(e,t){return e.getCanonicalFileName(bo(t,e.getCurrentDirectory()))}function jie(e,t,r){let i=t.getExternalModuleFileFromDeclaration(r);if(!i||i.isDeclarationFile)return;let o=uR(r);if(!(o&&us(o)&&!wp(o.text)&&!CEe(e,i.path).includes(CEe(e,zc(e.getCommonSourceDirectory())))))return v3(e,i)}function tU(e,t,r){let i=p=>e.getCanonicalFileName(p),o=rl(r?li(r):e.getCommonSourceDirectory(),e.getCurrentDirectory(),i),s=bo(t,e.getCurrentDirectory()),l=SA(o,s,o,i,!1),u=Td(l);return r?v1(u):u}function Uie(e,t,r){let i=t.getCompilerOptions(),o;return i.outDir?o=Td(S3(e,t,i.outDir)):o=Td(e),o+r}function Hie(e,t){return y3(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),r=>t.getCanonicalFileName(r))}function y3(e,t,r,i,o){let s=t.declarationDir||t.outDir,l=s?T3(e,s,r,i,o):e,u=b3(l);return Td(l)+u}function b3(e){return Ec(e,[".mjs",".mts"])?".d.mts":Ec(e,[".cjs",".cts"])?".d.cts":Ec(e,[".json"])?".d.json.ts":".d.ts"}function qie(e){return Ec(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:Ec(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:Ec(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function Ps(e){return e.outFile||e.out}function E3(e,t){var r;if(e.paths)return e.baseUrl??C.checkDefined(e.pathsBasePath||((r=t.getCurrentDirectory)==null?void 0:r.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function nU(e,t,r){let i=e.getCompilerOptions();if(Ps(i)){let o=ku(i),s=i.emitDeclarationOnly||o===2||o===4;return tr(e.getSourceFiles(),l=>(s||!ac(l))&&AS(l,e,r))}else{let o=t===void 0?e.getSourceFiles():[t];return tr(o,s=>AS(s,e,r))}}function AS(e,t,r){let i=t.getCompilerOptions();if(i.noEmitForJsFiles&&ld(e)||e.isDeclarationFile||t.isSourceFileFromExternalLibrary(e))return!1;if(r)return!0;if(t.isSourceOfProjectReferenceRedirect(e.fileName))return!1;if(!$f(e))return!0;if(t.getResolvedProjectReferenceToRedirect(e.fileName))return!1;if(Ps(i))return!0;if(!i.outDir)return!1;if(i.rootDir||i.composite&&i.configFilePath){let o=bo(QN(i,()=>[],t.getCurrentDirectory(),t.getCanonicalFileName),t.getCurrentDirectory()),s=T3(e.fileName,i.outDir,t.getCurrentDirectory(),o,t.getCanonicalFileName);if(Pg(e.fileName,s,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0)return!1}return!0}function S3(e,t,r){return T3(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),i=>t.getCanonicalFileName(i))}function T3(e,t,r,i,o){let s=bo(e,r);return s=o(s).indexOf(o(i))===0?s.substring(i.length):s,Zr(t,s)}function FC(e,t,r,i,o,s,l){e.writeFile(r,i,o,u=>{t.add(Vl(f.Could_not_write_file_0_Colon_1,r,u))},s,l)}function NEe(e,t,r){if(e.length>dh(e)&&!r(e)){let i=li(e);NEe(i,t,r),t(e)}}function rU(e,t,r,i,o,s){try{i(e,t,r)}catch{NEe(li(va(e)),o,s),i(e,t,r)}}function WC(e,t){let r=Mg(e);return oC(r,t)}function IS(e,t){return oC(e,t)}function ig(e){return vn(e.members,t=>Pl(t)&&Xf(t.body))}function zC(e){if(e&&e.parameters.length>0){let t=e.parameters.length===2&&w1(e.parameters[0]);return e.parameters[t?1:0]}}function Jie(e){let t=zC(e);return t&&t.type}function k1(e){if(e.parameters.length&&!b0(e)){let t=e.parameters[0];if(w1(t))return t}}function w1(e){return O1(e.name)}function O1(e){return!!e&&e.kind===80&&iU(e)}function xS(e){return!!zn(e,t=>t.kind===186?!0:t.kind===80||t.kind===166?!1:"quit")}function FA(e){if(!O1(e))return!1;for(;Ad(e.parent)&&e.parent.left===e;)e=e.parent;return e.parent.kind===186}function iU(e){return e.escapedText==="this"}function RS(e,t){let r,i,o,s;return By(t)?(r=t,t.kind===177?o=t:t.kind===178?s=t:C.fail("Accessor has wrong kind")):Ke(e,l=>{if(Ly(l)&&sa(l)===sa(t)){let u=TS(l.name),p=TS(t.name);u===p&&(r?i||(i=l):r=l,l.kind===177&&!o&&(o=l),l.kind===178&&!s&&(s=l))}}),{firstAccessor:r,secondAccessor:i,getAccessor:o,setAccessor:s}}function yu(e){if(!cr(e)&&Sc(e))return;let t=e.type;return t||!cr(e)?t:mC(e)?e.typeExpression&&e.typeExpression.type:i0(e)}function Kie(e){return e.type}function tm(e){return b0(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(cr(e)?rL(e):void 0)}function A3(e){return Zi(o0(e),t=>nze(t)?t.typeParameters:void 0)}function nze(e){return am(e)&&!(e.parent.kind===327&&(e.parent.tags.some(Qf)||e.parent.tags.some(UR)))}function Xie(e){let t=zC(e);return t&&yu(t)}function Yie(e,t,r,i){$ie(e,t,r.pos,i)}function $ie(e,t,r,i){i&&i.length&&r!==i[0].pos&&IS(e,r)!==IS(e,i[0].pos)&&t.writeLine()}function Qie(e,t,r,i){r!==i&&IS(e,r)!==IS(e,i)&&t.writeLine()}function Zie(e,t,r,i,o,s,l,u){if(i&&i.length>0){o&&r.writeSpace(" ");let p=!1;for(let g of i)p&&(r.writeSpace(" "),p=!1),u(e,t,r,g.pos,g.end,l),g.hasTrailingNewLine?r.writeLine():p=!0;p&&s&&r.writeSpace(" ")}}function eoe(e,t,r,i,o,s,l){let u,p;if(l?o.pos===0&&(u=tr(Kh(e,o.pos),g)):u=Kh(e,o.pos),u){let m=[],b;for(let T of u){if(b){let I=IS(t,b.end);if(IS(t,T.pos)>=I+2)break}m.push(T),b=T}if(m.length){let T=IS(t,Ya(m).end);IS(t,La(e,o.pos))>=T+2&&(Yie(t,r,o,u),Zie(e,t,r,m,!1,!0,s,i),p={nodePos:o.pos,detachedCommentEndPos:Ya(m).end})}}return p;function g(m){return W6(e,m.pos)}}function SR(e,t,r,i,o,s){if(e.charCodeAt(i+1)===42){let l=zx(t,i),u=t.length,p;for(let g=i,m=l.line;g0){let R=I%bR(),M=g3((I-R)/bR());for(r.rawWrite(M);R;)r.rawWrite(" "),R--}else r.rawWrite("")}rze(e,o,r,s,g,b),g=b}}else r.writeComment(e.substring(i,o))}function rze(e,t,r,i,o,s){let l=Math.min(t,s-1),u=e.substring(o,l).trim();u?(r.writeComment(u),l!==t&&r.writeLine()):r.rawWrite(i)}function PEe(e,t,r){let i=0;for(;t=0&&e.kind<=165?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=aU(e)|536870912),r||t&&cr(e)?(!(e.modifierFlagsCache&268435456)&&e.parent&&(e.modifierFlagsCache|=MEe(e)|268435456),LEe(e.modifierFlagsCache)):ize(e.modifierFlagsCache))}function cd(e){return roe(e,!0)}function ioe(e){return roe(e,!0,!0)}function Gy(e){return roe(e,!1)}function MEe(e){let t=0;return e.parent&&!Co(e)&&(cr(e)&&(vre(e)&&(t|=8388608),yre(e)&&(t|=16777216),bre(e)&&(t|=33554432),Ere(e)&&(t|=67108864),Sre(e)&&(t|=134217728)),Tre(e)&&(t|=65536)),t}function ize(e){return e&65535}function LEe(e){return e&131071|(e&260046848)>>>23}function oze(e){return LEe(MEe(e))}function ooe(e){return aU(e)|oze(e)}function aU(e){let t=Cm(e)?N_(e.modifiers):0;return(e.flags&8||e.kind===80&&e.flags&4096)&&(t|=32),t}function N_(e){let t=0;if(e)for(let r of e)t|=zA(r.kind);return t}function zA(e){switch(e){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 170:return 32768}return 0}function kEe(e){return e===57||e===56}function aoe(e){return kEe(e)||e===54}function GC(e){return e===76||e===77||e===78}function sU(e){return _r(e)&&GC(e.operatorToken.kind)}function ok(e){return kEe(e)||e===61}function ak(e){return _r(e)&&ok(e.operatorToken.kind)}function zv(e){return e>=64&&e<=79}function lU(e){let t=cU(e);return t&&!t.isImplements?t.class:void 0}function cU(e){if(Hv(e)){if(ef(e.parent)&&pi(e.parent.parent))return{class:e.parent.parent,isImplements:e.parent.token===119};if(fI(e.parent)){let t=d0(e.parent);if(t&&pi(t))return{class:t,isImplements:!1}}}}function Mc(e,t){return _r(e)&&(t?e.operatorToken.kind===64:zv(e.operatorToken.kind))&&Zd(e.left)}function wEe(e){return Mc(e.parent)&&e.parent.left===e}function Bv(e){if(Mc(e,!0)){let t=e.left.kind;return t===210||t===209}return!1}function R3(e){return lU(e)!==void 0}function zl(e){return e.kind===80||sk(e)}function Bp(e){switch(e.kind){case 80:return e;case 166:do e=e.left;while(e.kind!==80);return e;case 211:do e=e.expression;while(e.kind!==80);return e}}function VC(e){return e.kind===80||e.kind===110||e.kind===108||e.kind===236||e.kind===211&&VC(e.expression)||e.kind===217&&VC(e.expression)}function sk(e){return zr(e)&&Ve(e.name)&&zl(e.expression)}function lk(e){if(zr(e)){let t=lk(e.expression);if(t!==void 0)return t+"."+fp(e.name)}else if(Ys(e)){let t=lk(e.expression);if(t!==void 0&&ic(e.argumentExpression))return t+"."+TS(e.argumentExpression)}else{if(Ve(e))return Hi(e.escapedText);if(e_(e))return cN(e)}}function Vy(e){return N1(e)&&Fg(e)==="prototype"}function jC(e){return e.parent.kind===166&&e.parent.right===e||e.parent.kind===211&&e.parent.name===e||e.parent.kind===236&&e.parent.name===e}function uU(e){return!!e.parent&&(zr(e.parent)&&e.parent.name===e||Ys(e.parent)&&e.parent.argumentExpression===e)}function soe(e){return Ad(e.parent)&&e.parent.right===e||zr(e.parent)&&e.parent.name===e||y0(e.parent)&&e.parent.right===e}function D3(e){return _r(e)&&e.operatorToken.kind===104}function loe(e){return D3(e.parent)&&e===e.parent.right}function dU(e){return e.kind===210&&e.properties.length===0}function coe(e){return e.kind===209&&e.elements.length===0}function TR(e){if(!(!aze(e)||!e.declarations)){for(let t of e.declarations)if(t.localSymbol)return t.localSymbol}}function aze(e){return e&&De(e.declarations)>0&&ei(e.declarations[0],2048)}function C3(e){return vn(dSe,t=>Tl(e,t))}function sze(e){let t=[],r=e.length;for(let i=0;i>6|192),t.push(o&63|128)):o<65536?(t.push(o>>12|224),t.push(o>>6&63|128),t.push(o&63|128)):o<131072?(t.push(o>>18|240),t.push(o>>12&63|128),t.push(o>>6&63|128),t.push(o&63|128)):C.assert(!1,"Unexpected code point")}return t}function uoe(e){let t="",r=sze(e),i=0,o=r.length,s,l,u,p;for(;i>2,l=(r[i]&3)<<4|r[i+1]>>4,u=(r[i+1]&15)<<2|r[i+2]>>6,p=r[i+2]&63,i+1>=o?u=p=64:i+2>=o&&(p=64),t+=CS.charAt(s)+CS.charAt(l)+CS.charAt(u)+CS.charAt(p),i+=3;return t}function lze(e){let t="",r=0,i=e.length;for(;r>4&3,m=(l&15)<<4|u>>2&15,b=(u&3)<<6|p&63;m===0&&u!==0?i.push(g):b===0&&p!==0?i.push(g,m):i.push(g,m,b),o+=4}return lze(i)}function pU(e,t){let r=wo(t)?t:t.readFile(e);if(!r)return;let i=tq(e,r);return i.error?void 0:i.config}function UC(e,t){return pU(e,t)||{}}function N3(e){try{return JSON.parse(e)}catch{return}}function Ym(e,t){return!t.directoryExists||t.directoryExists(e)}function Gv(e){switch(e.newLine){case 0:return sSe;case 1:case void 0:return lSe}}function Tf(e,t=e){return C.assert(t>=e||t===-1),{pos:e,end:t}}function P3(e,t){return Tf(e.pos,t)}function f0(e,t){return Tf(t,e.end)}function zg(e){let t=Cm(e)?Qr(e.modifiers,Eu):void 0;return t&&!Qm(t.end)?f0(e,t.end):e}function P_(e){if(Jo(e)||jl(e))return f0(e,e.name.pos);let t=Cm(e)?Zs(e.modifiers):void 0;return t&&!Qm(t.end)?f0(e,t.end):zg(e)}function OEe(e){return e.pos===e.end}function fU(e,t){return Tf(e,e+ma(t).length)}function DS(e,t){return moe(e,e,t)}function M3(e,t,r){return Af(HC(e,r,!1),HC(t,r,!1),r)}function foe(e,t,r){return Af(e.end,t.end,r)}function moe(e,t,r){return Af(HC(e,r,!1),t.end,r)}function ck(e,t,r){return Af(e.end,HC(t,r,!1),r)}function mU(e,t,r,i){let o=HC(t,r,i);return aC(r,e.end,o)}function FEe(e,t,r){return aC(r,e.end,t.end)}function _oe(e,t){return!Af(e.pos,e.end,t)}function Af(e,t,r){return aC(r,e,t)===0}function HC(e,t,r){return Qm(e.pos)?-1:La(t.text,e.pos,!1,r)}function hoe(e,t,r,i){let o=La(r.text,e,!1,i),s=cze(o,t,r);return aC(r,s??t,o)}function goe(e,t,r,i){let o=La(r.text,e,!1,i);return aC(r,e,Math.min(t,o))}function cze(e,t=0,r){for(;e-- >t;)if(!Lg(r.text.charCodeAt(e)))return e}function _U(e){let t=Lo(e);if(t)switch(t.parent.kind){case 266:case 267:return t===t.parent.name}return!1}function qC(e){return tr(e.declarations,uk)}function uk(e){return Oi(e)&&e.initializer!==void 0}function WEe(e){return e.watch&&Rs(e,"watch")}function $m(e){e.close()}function Al(e){return e.flags&33554432?e.links.checkFlags:0}function If(e,t=!1){if(e.valueDeclaration){let r=t&&e.declarations&&vn(e.declarations,vp)||e.flags&32768&&vn(e.declarations,Zp)||e.valueDeclaration,i=t0(r);return e.parent&&e.parent.flags&32?i:i&-8}if(Al(e)&6){let r=e.links.checkFlags,i=r&1024?2:r&256?1:4,o=r&2048?256:0;return i|o}return e.flags&4194304?257:0}function bu(e,t){return e.flags&2097152?t.getAliasedSymbol(e):e}function AR(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function L3(e){return JC(e)===1}function BA(e){return JC(e)!==0}function JC(e){let{parent:t}=e;switch(t?.kind){case 217:return JC(t);case 225:case 224:let{operator:r}=t;return r===46||r===47?2:0;case 226:let{left:i,operatorToken:o}=t;return i===e&&zv(o.kind)?o.kind===64?1:2:0;case 211:return t.name!==e?0:JC(t);case 303:{let s=JC(t.parent);return e===t.name?uze(s):s}case 304:return e===t.objectAssignmentInitializer?0:JC(t.parent);case 209:return JC(t);default:return 0}}function uze(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return C.assertNever(e)}}function hU(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(typeof e[r]=="object"){if(!hU(e[r],t[r]))return!1}else if(typeof e[r]!="function"&&e[r]!==t[r])return!1;return!0}function ep(e,t){e.forEach(t),e.clear()}function og(e,t,r){let{onDeleteValue:i,onExistingValue:o}=r;e.forEach((s,l)=>{var u;t?.has(l)?o&&o(s,(u=t.get)==null?void 0:u.call(t,l),l):(e.delete(l),i(s,l))})}function KC(e,t,r){og(e,t,r);let{createNewValue:i}=r;t?.forEach((o,s)=>{e.has(s)||e.set(s,i(s,o))})}function voe(e){if(e.flags&32){let t=Bg(e);return!!t&&ei(t,64)}return!1}function Bg(e){var t;return(t=e.declarations)==null?void 0:t.find(pi)}function Wr(e){return e.flags&3899393?e.objectFlags:0}function zEe(e,t){return!!Em(e,r=>t(r)?!0:void 0)}function k3(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&Hk(e.declarations[0])}function yoe({moduleSpecifier:e}){return Na(e)?e.text:pc(e)}function gU(e){let t;return Ho(e,r=>{Xf(r)&&(t=r)},r=>{for(let i=r.length-1;i>=0;i--)if(Xf(r[i])){t=r[i];break}}),t}function xm(e,t,r=!0){return e.has(t)?!1:(e.set(t,r),!0)}function GA(e){return pi(e)||fd(e)||yp(e)}function vU(e){return e>=182&&e<=205||e===133||e===159||e===150||e===163||e===151||e===136||e===154||e===155||e===116||e===157||e===146||e===141||e===233||e===319||e===320||e===321||e===322||e===323||e===324||e===325}function ks(e){return e.kind===211||e.kind===212}function yU(e){return e.kind===211?e.name:(C.assert(e.kind===212),e.argumentExpression)}function boe(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}}function w3(e){return e.kind===275||e.kind===279}function IR(e){for(;ks(e);)e=e.expression;return e}function Eoe(e,t){if(ks(e.parent)&&uU(e))return r(e.parent);function r(i){if(i.kind===211){let o=t(i.name);if(o!==void 0)return o}else if(i.kind===212)if(Ve(i.argumentExpression)||us(i.argumentExpression)){let o=t(i.argumentExpression);if(o!==void 0)return o}else return;if(ks(i.expression))return r(i.expression);if(Ve(i.expression))return t(i.expression)}}function xR(e,t){for(;;){switch(e.kind){case 225:e=e.operand;continue;case 226:e=e.left;continue;case 227:e=e.condition;continue;case 215:e=e.tag;continue;case 213:if(t)return e;case 234:case 212:case 211:case 235:case 360:case 238:e=e.expression;continue}return e}}function dze(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.lastAssignmentPos=void 0,this.links=void 0}function pze(e,t){this.flags=t,(C.isDebugging||lr)&&(this.checker=e)}function fze(e,t){this.flags=t,C.isDebugging&&(this.checker=e)}function Soe(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function mze(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function _ze(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function hze(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||(i=>i)}function Toe(e){Zoe.push(e),e(lu)}function Aoe(e){Object.assign(lu,e),Ke(Zoe,t=>t(lu))}function ag(e,t){return e.replace(/{(\d+)}/g,(r,i)=>""+C.checkDefined(t[+i]))}function Ioe(e){l7=e}function xoe(e){!l7&&e&&(l7=e())}function Bo(e){return l7&&l7[e.key]||e.message}function RR(e,t,r,i,o,...s){r+i>t.length&&(i=t.length-r),die(t,r,i);let l=Bo(o);return Et(s)&&(l=ag(l,s)),{file:void 0,start:r,length:i,messageText:l,category:o.category,code:o.code,reportsUnnecessary:o.reportsUnnecessary,fileName:e}}function gze(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function BEe(e,t){let r=t.fileName||"",i=t.text.length;C.assertEqual(e.fileName,r),C.assertLessThanOrEqual(e.start,i),C.assertLessThanOrEqual(e.start+e.length,i);let o={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){o.relatedInformation=[];for(let s of e.relatedInformation)gze(s)&&s.fileName===r?(C.assertLessThanOrEqual(s.start,i),C.assertLessThanOrEqual(s.start+s.length,i),o.relatedInformation.push(BEe(s,t))):o.relatedInformation.push(s)}return o}function VA(e,t){let r=[];for(let i of e)r.push(BEe(i,t));return r}function Qc(e,t,r,i,...o){die(e.text,t,r);let s=Bo(i);return Et(o)&&(s=ag(s,o)),{file:e,start:t,length:r,messageText:s,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated}}function bU(e,...t){let r=Bo(e);return Et(t)&&(r=ag(r,t)),r}function Vl(e,...t){let r=Bo(e);return Et(t)&&(r=ag(r,t)),{file:void 0,start:void 0,length:void 0,messageText:r,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function O3(e,t){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:t}}function Uo(e,t,...r){let i=Bo(t);return Et(r)&&(i=ag(i,r)),{messageText:i,category:t.category,code:t.code,next:e===void 0||Array.isArray(e)?e:[e]}}function Roe(e,t){let r=e;for(;r.next;)r=r.next[0];r.next=[t]}function GEe(e){return e.file?e.file.path:void 0}function XC(e,t){return F3(e,t)||vze(e,t)||0}function F3(e,t){return ju(GEe(e),GEe(t))||tl(e.start,t.start)||tl(e.length,t.length)||tl(e.code,t.code)||VEe(e.messageText,t.messageText)||0}function vze(e,t){return!e.relatedInformation&&!t.relatedInformation?0:e.relatedInformation&&t.relatedInformation?tl(e.relatedInformation.length,t.relatedInformation.length)||Ke(e.relatedInformation,(r,i)=>{let o=t.relatedInformation[i];return XC(r,o)})||0:e.relatedInformation?-1:1}function VEe(e,t){if(typeof e=="string"&&typeof t=="string")return ju(e,t);if(typeof e=="string")return-1;if(typeof t=="string")return 1;let r=ju(e.messageText,t.messageText);if(r)return r;if(!e.next&&!t.next)return 0;if(!e.next)return-1;if(!t.next)return 1;let i=Math.min(e.next.length,t.next.length);for(let o=0;ot.next.length?1:0}function dk(e){return e===4||e===2||e===1||e===6?1:0}function jEe(e){if(e.transformFlags&2)return sd(e)||X1(e)?e:Ho(e,jEe)}function yze(e){return e.isDeclarationFile?void 0:jEe(e)}function bze(e){return(e.impliedNodeFormat===99||Ec(e.fileName,[".cjs",".cts",".mjs",".mts"]))&&!e.isDeclarationFile?!0:void 0}function pk(e){switch(UU(e)){case 3:return o=>{o.externalModuleIndicator=nw(o)||!o.isDeclarationFile||void 0};case 1:return o=>{o.externalModuleIndicator=nw(o)};case 2:let t=[nw];(e.jsx===4||e.jsx===5)&&t.push(yze),t.push(bze);let r=Xm(...t);return o=>void(o.externalModuleIndicator=r(o))}}function Pbt(e){return e}function W3(e){return e>=5&&e<=99}function z3(e){switch(ku(e)){case 0:case 4:case 3:return!1}return!0}function EU(e){return e.verbatimModuleSyntax||e.isolatedModules&&e.preserveValueImports}function Doe(e){return e.allowUnreachableCode===!1}function Coe(e){return e.allowUnusedLabels===!1}function jA(e){return e>=3&&e<=99||e===100}function ud(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function Noe(e){return e.useDefineForClassFields!==!1&&as(e)>=9}function Poe(e,t){return Yx(t,e,uq)}function Moe(e,t){return Yx(t,e,dq)}function Loe(e,t){return Yx(t,e,pq)}function B3(e,t){return t.strictFlag?ud(e,t.name):t.allowJsFlag?qy(e):e[t.name]}function G3(e){let t=e.jsx;return t===2||t===4||t===5}function V3(e,t){let r=t?.pragmas.get("jsximportsource"),i=Do(r)?r[r.length-1]:r;return e.jsx===4||e.jsx===5||e.jsxImportSource||i?i?.arguments.factory||e.jsxImportSource||"react":void 0}function j3(e,t){return e?`${e}/${t.jsx===5?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function SU(e){let t=!1;for(let r=0;ro,getSymlinkedDirectories:()=>r,getSymlinkedDirectoriesByRealpath:()=>i,setSymlinkedFile:(u,p)=>(o||(o=new Map)).set(u,p),setSymlinkedDirectory:(u,p)=>{let g=rl(u,e,t);iN(g)||(g=zc(g),p!==!1&&!r?.has(g)&&(i||(i=Xp())).add(p.realPath,u),(r||(r=new Map)).set(g,p))},setSymlinksFromResolutions(u,p,g){C.assert(!s),s=!0,u(m=>l(this,m.resolvedModule)),p(m=>l(this,m.resolvedTypeReferenceDirective)),g.forEach(m=>l(this,m.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>s};function l(u,p){if(!p||!p.originalPath||!p.resolvedFileName)return;let{resolvedFileName:g,originalPath:m}=p;u.setSymlinkedFile(rl(m,e,t),g);let[b,T]=Eze(g,m,e,t)||et;b&&T&&u.setSymlinkedDirectory(T,{real:zc(b),realPath:zc(rl(b,e,t))})}}function Eze(e,t,r,i){let o=Wc(bo(e,r)),s=Wc(bo(t,r)),l=!1;for(;o.length>=2&&s.length>=2&&!UEe(o[o.length-2],i)&&!UEe(s[s.length-2],i)&&i(o[o.length-1])===i(s[s.length-1]);)o.pop(),s.pop(),l=!0;return l?[Ry(o),Ry(s)]:void 0}function UEe(e,t){return e!==void 0&&(t(e)==="node_modules"||uo(e,"@"))}function Sze(e){return TV(e.charCodeAt(0))?e.slice(1):void 0}function AU(e,t,r){let i=dG(e,t,r);return i===void 0?void 0:Sze(i)}function HEe(e){return e.replace(HU,Tze)}function Tze(e){return"\\"+e}function YC(e,t,r){let i=U3(e,t,r);return!i||!i.length?void 0:`^(${i.map(l=>`(${l})`).join("|")})${r==="exclude"?"($|/)":"$"}`}function U3(e,t,r){if(!(e===void 0||e.length===0))return Zi(e,i=>i&&H3(i,t,r,KU[r]))}function IU(e){return!/[.*?]/.test(e)}function koe(e,t,r){let i=e&&H3(e,t,r,KU[r]);return i&&`^(${i})${r==="exclude"?"($|/)":"$"}`}function H3(e,t,r,{singleAsteriskRegexFragment:i,doubleAsteriskRegexFragment:o,replaceWildcardCharacter:s}=KU[r]){let l="",u=!1,p=VM(e,t),g=Ya(p);if(r!=="exclude"&&g==="**")return;p[0]=$b(p[0]),IU(g)&&p.push("**","*");let m=0;for(let b of p){if(b==="**")l+=o;else if(r==="directories"&&(l+="(",m++),u&&(l+=il),r!=="exclude"){let T="";b.charCodeAt(0)===42?(T+="([^./]"+i+")?",b=b.substr(1)):b.charCodeAt(0)===63&&(T+="[^./]",b=b.substr(1)),T+=b.replace(HU,s),T!==b&&(l+=JU),l+=T}else l+=b.replace(HU,s);u=!0}for(;m>0;)l+=")?",m--;return l}function woe(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function q3(e,t,r,i,o){e=va(e),o=va(o);let s=Zr(o,e);return{includeFilePatterns:Ft(U3(r,s,"files"),l=>`^${l}$`),includeFilePattern:YC(r,s,"files"),includeDirectoryPattern:YC(r,s,"directories"),excludePattern:YC(t,s,"exclude"),basePaths:Aze(e,r,i)}}function jy(e,t){return new RegExp(e,t?"":"i")}function xU(e,t,r,i,o,s,l,u,p){e=va(e),s=va(s);let g=q3(e,r,i,o,s),m=g.includeFilePatterns&&g.includeFilePatterns.map(O=>jy(O,o)),b=g.includeDirectoryPattern&&jy(g.includeDirectoryPattern,o),T=g.excludePattern&&jy(g.excludePattern,o),I=m?m.map(()=>[]):[[]],R=new Map,M=Pu(o);for(let O of g.basePaths)N(O,Zr(s,O),l);return ts(I);function N(O,H,K){let Z=M(p(H));if(R.has(Z))return;R.set(Z,!0);let{files:V,directories:ue}=u(O);for(let G of nS(V,ju)){let ne=Zr(O,G),he=Zr(H,G);if(!(t&&!Ec(ne,t))&&!(T&&T.test(he)))if(!m)I[0].push(ne);else{let ye=ri(m,$=>$.test(he));ye!==-1&&I[ye].push(ne)}}if(!(K!==void 0&&(K--,K===0)))for(let G of nS(ue,ju)){let ne=Zr(O,G),he=Zr(H,G);(!b||b.test(he))&&(!T||!T.test(he))&&N(ne,he,K)}}}function Aze(e,t,r){let i=[e];if(t){let o=[];for(let s of t){let l=dp(s)?s:va(Zr(e,s));o.push(Ize(l))}o.sort(Nx(!r));for(let s of o)Jn(i,l=>!ym(l,s,e,!r))&&i.push(s)}return i}function Ize(e){let t=Kc(e,cSe);return t<0?EA(e)?$b(li(e)):e:e.substring(0,e.lastIndexOf(il,t))}function J3(e,t){return t||K3(e)||3}function K3(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}function $C(e,t){let r=e&&qy(e);if(!t||t.length===0)return r?d7:MR;let i=r?d7:MR,o=ts(i);return[...i,...Vi(t,l=>l.scriptKind===7||r&&xze(l.scriptKind)&&!o.includes(l.extension)?[l.extension]:void 0)]}function fk(e,t){return!e||!h0(e)?t:t===d7?pSe:t===MR?uSe:[...t,[".json"]]}function xze(e){return e===1||e===2}function W1(e){return Et(LR,t=>Tl(e,t))}function UA(e){return Et(XU,t=>Tl(e,t))}function Ooe({imports:e},t=Xm(W1,UA)){return Zt(e,({text:r})=>wp(r)&&!Ec(r,xk)?t(r):void 0)||!1}function Foe(e,t,r,i){let o=dd(r),s=3<=o&&o<=99;if(e==="js"||t===99&&s)return i2(r)&&l()!==2?3:2;if(e==="minimal")return 0;if(e==="index")return 1;if(!i2(r))return Ooe(i)?2:0;return l();function l(){let u=!1,p=i.imports.length?i.imports:ld(i)?Rze(i).map(g=>g.arguments[0]):et;for(let g of p)if(wp(g.text)){if(s&&t===1&&xJ(i,g,r)===99||Ec(g.text,xk))continue;if(UA(g.text))return 3;W1(g.text)&&(u=!0)}return u?2:0}}function Rze(e){let t=0,r;for(let i of e.statements){if(t>3)break;Nj(i)?r=xo(r,i.declarationList.declarations.map(o=>o.initializer)):eu(i)&&Sd(i.expression,!0)?r=In(r,i.expression):t++}return r||et}function Woe(e,t,r){if(!e)return!1;let i=$C(t,r);for(let o of ts(fk(t,i)))if(Tl(e,o))return!0;return!1}function qEe(e){let t=e.match(/\//g);return t?t.length:0}function mk(e,t){return tl(qEe(e),qEe(t))}function Td(e){for(let t of QU){let r=zoe(e,t);if(r!==void 0)return r}return e}function zoe(e,t){return Tl(e,t)?_k(e,t):void 0}function _k(e,t){return e.substring(0,e.length-t.length)}function m0(e,t){return jM(e,t,QU,!1)}function DR(e){let t=e.indexOf("*");return t===-1?e:e.indexOf("*",t+1)!==-1?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function X3(e){return Vi(Jh(e),t=>DR(t))}function Qm(e){return!(e>=0)}function Y3(e){return e===".ts"||e===".tsx"||e===".d.ts"||e===".cts"||e===".mts"||e===".d.mts"||e===".d.cts"||uo(e,".d.")&&Sl(e,".ts")}function QC(e){return Y3(e)||e===".json"}function ZC(e){let t=Gg(e);return t!==void 0?t:C.fail(`File ${e} has unknown extension.`)}function JEe(e){return Gg(e)!==void 0}function Gg(e){return vn(QU,t=>Tl(e,t))}function hk(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}function RU(e,t){let r=[];for(let i of e){if(i===t)return t;wo(i)||r.push(i)}return uG(r,i=>i,t)}function DU(e,t){let r=e.indexOf(t);return C.assert(r!==-1),e.slice(r)}function ka(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),C.assert(e.relatedInformation!==et,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function Boe(e,t){C.assert(e.length!==0);let r=t(e[0]),i=r;for(let o=1;oi&&(i=s)}return{min:r,max:i}}function CU(e){return{pos:s0(e),end:e.end}}function NU(e,t){let r=t.pos-1,i=Math.min(e.text.length,La(e.text,t.end)+1);return{pos:r,end:i}}function eN(e,t,r){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||r.isSourceOfProjectReferenceRedirect(e.fileName)}function $3(e,t){return e===t||typeof e=="object"&&e!==null&&typeof t=="object"&&t!==null&&gne(e,t,$3)}function tN(e){let t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:let g=e.length-1,m=0;for(;e.charCodeAt(m)===48;)m++;return e.slice(m,g)||"0"}let r=2,i=e.length-1,o=(i-r)*t,s=new Uint16Array((o>>>4)+(o&15?1:0));for(let g=i-1,m=0;g>=r;g--,m+=t){let b=m>>>4,T=e.charCodeAt(g),R=(T<=57?T-48:10+T-(T<=70?65:97))<<(m&15);s[b]|=R;let M=R>>>16;M&&(s[b+1]|=M)}let l="",u=s.length-1,p=!0;for(;p;){let g=0;p=!1;for(let m=u;m>=0;m--){let b=g<<16|s[m],T=b/10|0;s[m]=T,g=b-T*10,T&&!p&&(u=m,p=!0)}l=g+l}return l}function z1({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function Goe(e){if(Q3(e,!1))return PU(e)}function PU(e){let t=e.startsWith("-"),r=tN(`${t?e.slice(1):e}n`);return{negative:t,base10Value:r}}function Q3(e,t){if(e==="")return!1;let r=Mv(99,!1),i=!0;r.setOnError(()=>i=!1),r.setText(e+"n");let o=r.scan(),s=o===41;s&&(o=r.scan());let l=r.getTokenFlags();return i&&o===10&&r.getTokenEnd()===e.length+1&&!(l&512)&&(!t||e===z1({negative:s,base10Value:tN(r.getTokenValue())}))}function _0(e){return!!(e.flags&33554432)||r3(e)||Nze(e)||Cze(e)||!(eg(e)||Dze(e))}function Dze(e){return Ve(e)&&np(e.parent)&&e.parent.name===e}function Cze(e){for(;e.kind===80||e.kind===211;)e=e.parent;if(e.kind!==167)return!1;if(ei(e.parent,64))return!0;let t=e.parent.parent.kind;return t===264||t===187}function Nze(e){if(e.kind!==80)return!1;let t=zn(e.parent,r=>{switch(r.kind){case 298:return!0;case 211:case 233:return!1;default:return"quit"}});return t?.token===119||t?.parent.kind===264}function Voe(e){return Rf(e)&&Ve(e.typeName)}function joe(e,t=Cv){if(e.length<2)return!0;let r=e[0];for(let i=1,o=e.length;ie.includes(t))}function qoe(e){if(!e.parent)return;switch(e.kind){case 168:let{parent:r}=e;return r.kind===195?void 0:r.typeParameters;case 169:return e.parent.parameters;case 204:return e.parent.templateSpans;case 239:return e.parent.templateSpans;case 170:{let{parent:i}=e;return US(i)?i.modifiers:void 0}case 298:return e.parent.heritageClauses}let{parent:t}=e;if(Xx(e))return GS(e.parent)?void 0:e.parent.tags;switch(t.kind){case 187:case 264:return dS(e)?t.members:void 0;case 192:case 193:return t.types;case 189:case 209:case 361:case 275:case 279:return t.elements;case 210:case 292:return t.properties;case 213:case 214:return qi(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 284:case 288:return hL(e)?t.children:void 0;case 286:case 285:return qi(e)?t.typeArguments:void 0;case 241:case 296:case 297:case 268:return t.statements;case 269:return t.clauses;case 263:case 231:return $c(e)?t.members:void 0;case 266:return Q1(e)?t.members:void 0;case 312:return t.statements}}function Z3(e){if(!e.typeParameters){if(Et(e.parameters,t=>!yu(t)))return!0;if(e.kind!==219){let t=Xc(e.parameters);if(!(t&&w1(t)))return!0}}return!1}function oN(e){return e==="Infinity"||e==="-Infinity"||e==="NaN"}function Joe(e){return e.kind===260&&e.parent.kind===299}function B1(e){return e.kind===218||e.kind===219}function G1(e){return e.replace(/\$/gm,()=>"\\$")}function sg(e){return(+e).toString()===e}function e7(e,t,r,i,o){let s=o&&e==="new";return!s&&$p(e,t)?k.createIdentifier(e):!i&&!s&&sg(e)&&+e>=0?k.createNumericLiteral(+e):k.createStringLiteral(e,!!r)}function aN(e){return!!(e.flags&262144&&e.isThisType)}function t7(e){let t=0,r=0,i=0,o=0,s;(g=>{g[g.BeforeNodeModules=0]="BeforeNodeModules",g[g.NodeModules=1]="NodeModules",g[g.Scope=2]="Scope",g[g.PackageContent=3]="PackageContent"})(s||(s={}));let l=0,u=0,p=0;for(;u>=0;)switch(l=u,u=e.indexOf("/",l+1),p){case 0:e.indexOf(Ih,l)===l&&(t=l,r=u,p=1);break;case 1:case 2:p===1&&e.charAt(l+1)==="@"?p=2:(i=u,p=3);break;case 3:e.indexOf(Ih,l)===l?p=1:p=3;break}return o=l,p>1?{topLevelNodeModulesIndex:t,topLevelPackageNameIndex:r,packageRootIndex:i,fileNameIndex:o}:void 0}function KEe(e){var t;return e.kind===348?(t=e.typeExpression)==null?void 0:t.type:e.type}function PR(e){switch(e.kind){case 168:case 263:case 264:case 265:case 266:case 353:case 345:case 347:return!0;case 273:return e.isTypeOnly;case 276:case 281:return e.parent.parent.isTypeOnly;default:return!1}}function gk(e){return v0(e)||Ml(e)||Sc(e)||Tc(e)||fd(e)||PR(e)||Jl(e)&&!I1(e)&&!I_(e)}function vk(e){if(!mC(e))return!1;let{isBracketed:t,typeExpression:r}=e;return t||!!r&&r.type.kind===323}function LU(e,t){if(e.length===0)return!1;let r=e.charCodeAt(0);return r===35?e.length>1&&Xh(e.charCodeAt(1),t):Xh(r,t)}function Koe(e){var t;return((t=sH(e))==null?void 0:t.kind)===0}function yk(e){return cr(e)&&(e.type&&e.type.kind===323||jx(e).some(({isBracketed:t,typeExpression:r})=>t||!!r&&r.type.kind===323))}function sN(e){switch(e.kind){case 172:case 171:return!!e.questionToken;case 169:return!!e.questionToken||yk(e);case 355:case 348:return vk(e);default:return!1}}function Xoe(e){let t=e.kind;return(t===211||t===212)&&lI(e.expression)}function kU(e){return cr(e)&&Wd(e)&&Op(e)&&!!zV(e)}function wU(e){return C.checkDefined(n7(e))}function n7(e){let t=zV(e);return t&&t.typeExpression&&t.typeExpression.type}function lN(e){return Ve(e)?e.escapedText:HA(e)}function bk(e){return Ve(e)?Sr(e):cN(e)}function Yoe(e){let t=e.kind;return t===80||t===295}function HA(e){return`${e.namespace.escapedText}:${Sr(e.name)}`}function cN(e){return`${Sr(e.namespace)}:${Sr(e.name)}`}function OU(e){return Ve(e)?Sr(e):cN(e)}function nm(e){return!!(e.flags&8576)}function rm(e){return e.flags&8192?e.escapedName:e.flags&384?ml(""+e.value):C.fail()}function r7(e){return!!e&&(zr(e)||Ys(e)||_r(e))}function $oe(e){return e===void 0?!1:!!s2(e.attributes)}function qA(e,t){return fSe.call(e,"*",t)}function i7(e){return Ve(e.name)?e.name.escapedText:ml(e.name.text)}var o7,Hy,Ek,a7,Sk,s7,FU,WU,XEe,YEe,zU,$Ee,QEe,BU,GU,VU,jU,ZEe,eSe,tSe,nSe,rSe,Qoe,iSe,oSe,aSe,uN,CS,sSe,lSe,lu,Zoe,l7,mc,as,ku,dd,UU,im,vh,NS,c7,u7,h0,xf,V1,dN,Tk,qy,pN,HU,cSe,qU,JU,eae,tae,nae,KU,MR,XU,uSe,dSe,YU,LR,d7,pSe,Ak,Ik,xk,$U,QU,p7,fSe,Mze=A({"src/compiler/utilities.ts"(){"use strict";ia(),o7=[],Hy="tslib",Ek=160,a7=1e6,Sk=w9e(),s7=Ed(()=>new Map(Object.entries({Array:new Map(Object.entries({es2015:["find","findIndex","fill","copyWithin","entries","keys","values"],es2016:["includes"],es2019:["flat","flatMap"],es2022:["at"],es2023:["findLastIndex","findLast"]})),Iterator:new Map(Object.entries({es2015:et})),AsyncIterator:new Map(Object.entries({es2015:et})),Atomics:new Map(Object.entries({es2017:et})),SharedArrayBuffer:new Map(Object.entries({es2017:et})),AsyncIterable:new Map(Object.entries({es2018:et})),AsyncIterableIterator:new Map(Object.entries({es2018:et})),AsyncGenerator:new Map(Object.entries({es2018:et})),AsyncGeneratorFunction:new Map(Object.entries({es2018:et})),RegExp:new Map(Object.entries({es2015:["flags","sticky","unicode"],es2018:["dotAll"]})),Reflect:new Map(Object.entries({es2015:["apply","construct","defineProperty","deleteProperty","get","getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"]})),ArrayConstructor:new Map(Object.entries({es2015:["from","of"]})),ObjectConstructor:new Map(Object.entries({es2015:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],es2017:["values","entries","getOwnPropertyDescriptors"],es2019:["fromEntries"],es2022:["hasOwn"]})),NumberConstructor:new Map(Object.entries({es2015:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"]})),Math:new Map(Object.entries({es2015:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"]})),Map:new Map(Object.entries({es2015:["entries","keys","values"]})),Set:new Map(Object.entries({es2015:["entries","keys","values"]})),PromiseConstructor:new Map(Object.entries({es2015:["all","race","reject","resolve"],es2020:["allSettled"],es2021:["any"]})),Symbol:new Map(Object.entries({es2015:["for","keyFor"],es2019:["description"]})),WeakMap:new Map(Object.entries({es2015:["entries","keys","values"]})),WeakSet:new Map(Object.entries({es2015:["entries","keys","values"]})),String:new Map(Object.entries({es2015:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],es2017:["padStart","padEnd"],es2019:["trimStart","trimEnd","trimLeft","trimRight"],es2020:["matchAll"],es2021:["replaceAll"],es2022:["at"]})),StringConstructor:new Map(Object.entries({es2015:["fromCodePoint","raw"]})),DateTimeFormat:new Map(Object.entries({es2017:["formatToParts"]})),Promise:new Map(Object.entries({es2015:et,es2018:["finally"]})),RegExpMatchArray:new Map(Object.entries({es2018:["groups"]})),RegExpExecArray:new Map(Object.entries({es2018:["groups"]})),Intl:new Map(Object.entries({es2018:["PluralRules"]})),NumberFormat:new Map(Object.entries({es2018:["formatToParts"]})),SymbolConstructor:new Map(Object.entries({es2020:["matchAll"]})),DataView:new Map(Object.entries({es2020:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"]})),BigInt:new Map(Object.entries({es2020:et})),RelativeTimeFormat:new Map(Object.entries({es2020:["format","formatToParts","resolvedOptions"]})),Int8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8ClampedArray:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float64Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),BigInt64Array:new Map(Object.entries({es2020:et,es2022:["at"],es2023:["findLastIndex","findLast"]})),BigUint64Array:new Map(Object.entries({es2020:et,es2022:["at"],es2023:["findLastIndex","findLast"]})),Error:new Map(Object.entries({es2022:["cause"]}))}))),FU=(e=>(e[e.None=0]="None",e[e.NeverAsciiEscape=1]="NeverAsciiEscape",e[e.JsxAttributeEscape=2]="JsxAttributeEscape",e[e.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",e[e.AllowNumericSeparator=8]="AllowNumericSeparator",e))(FU||{}),WU=/^(\/\/\/\s*/,XEe=/^(\/\/\/\s*/,YEe=/^(\/\/\/\s*/,zU=/^(\/\/\/\s*/,$Ee=/^\/\/\/\s*/,QEe=/^(\/\/\/\s*/,BU=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(BU||{}),GU=(e=>(e[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.Invalid=4]="Invalid",e[e.AsyncGenerator=3]="AsyncGenerator",e))(GU||{}),VU=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(VU||{}),jU=(e=>(e[e.Comma=0]="Comma",e[e.Spread=1]="Spread",e[e.Yield=2]="Yield",e[e.Assignment=3]="Assignment",e[e.Conditional=4]="Conditional",e[e.Coalesce=4]="Coalesce",e[e.LogicalOR=5]="LogicalOR",e[e.LogicalAND=6]="LogicalAND",e[e.BitwiseOR=7]="BitwiseOR",e[e.BitwiseXOR=8]="BitwiseXOR",e[e.BitwiseAND=9]="BitwiseAND",e[e.Equality=10]="Equality",e[e.Relational=11]="Relational",e[e.Shift=12]="Shift",e[e.Additive=13]="Additive",e[e.Multiplicative=14]="Multiplicative",e[e.Exponentiation=15]="Exponentiation",e[e.Unary=16]="Unary",e[e.Update=17]="Update",e[e.LeftHandSide=18]="LeftHandSide",e[e.Member=19]="Member",e[e.Primary=20]="Primary",e[e.Highest=20]="Highest",e[e.Lowest=0]="Lowest",e[e.Invalid=-1]="Invalid",e))(jU||{}),ZEe=/\$\{/g,eSe=/[\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,tSe=/[\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,nSe=/\r\n|[\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,rSe=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"})),Qoe=/[^\u0000-\u007F]/g,iSe=/["\u0000-\u001f\u2028\u2029\u0085]/g,oSe=/['\u0000-\u001f\u2028\u2029\u0085]/g,aSe=new Map(Object.entries({'"':""","'":"'"})),uN=[""," "],CS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",sSe=`\r +`,lSe=` +`,lu={getNodeConstructor:()=>Soe,getTokenConstructor:()=>mze,getIdentifierConstructor:()=>_ze,getPrivateIdentifierConstructor:()=>Soe,getSourceFileConstructor:()=>Soe,getSymbolConstructor:()=>dze,getTypeConstructor:()=>pze,getSignatureConstructor:()=>fze,getSourceMapSourceConstructor:()=>hze},Zoe=[],mc={target:{dependencies:["module"],computeValue:e=>e.target??(e.module===100&&9||e.module===199&&99||1)},module:{dependencies:["target"],computeValue:e=>typeof e.module=="number"?e.module:mc.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let t=e.moduleResolution;if(t===void 0)switch(mc.module.computeValue(e)){case 1:t=2;break;case 100:t=3;break;case 199:t=99;break;case 200:t=100;break;default:t=1;break}return t}},moduleDetection:{dependencies:["module","target"],computeValue:e=>e.moduleDetection||(mc.module.computeValue(e)===100||mc.module.computeValue(e)===199?3:2)},isolatedModules:{dependencies:["verbatimModuleSyntax"],computeValue:e=>!!(e.isolatedModules||e.verbatimModuleSyntax)},esModuleInterop:{dependencies:["module","target"],computeValue:e=>{if(e.esModuleInterop!==void 0)return e.esModuleInterop;switch(mc.module.computeValue(e)){case 100:case 199:case 200:return!0}return!1}},allowSyntheticDefaultImports:{dependencies:["module","target","moduleResolution"],computeValue:e=>e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:mc.esModuleInterop.computeValue(e)||mc.module.computeValue(e)===4||mc.moduleResolution.computeValue(e)===100},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{let t=mc.moduleResolution.computeValue(e);if(!jA(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolvePackageJsonImports:{dependencies:["moduleResolution","resolvePackageJsonExports"],computeValue:e=>{let t=mc.moduleResolution.computeValue(e);if(!jA(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolveJsonModule:{dependencies:["moduleResolution","module","target"],computeValue:e=>e.resolveJsonModule!==void 0?e.resolveJsonModule:mc.moduleResolution.computeValue(e)===100},declaration:{dependencies:["composite"],computeValue:e=>!!(e.declaration||e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!!(e.preserveConstEnums||mc.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!!(e.incremental||e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!!(e.declarationMap&&mc.declaration.computeValue(e))},allowJs:{dependencies:["checkJs"],computeValue:e=>e.allowJs===void 0?!!e.checkJs:e.allowJs},useDefineForClassFields:{dependencies:["target","module"],computeValue:e=>e.useDefineForClassFields===void 0?mc.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>ud(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>ud(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>ud(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>ud(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>ud(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>ud(e,"strictPropertyInitialization")},alwaysStrict:{dependencies:["strict"],computeValue:e=>ud(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>ud(e,"useUnknownInCatchVariables")}},as=mc.target.computeValue,ku=mc.module.computeValue,dd=mc.moduleResolution.computeValue,UU=mc.moduleDetection.computeValue,im=mc.isolatedModules.computeValue,vh=mc.esModuleInterop.computeValue,NS=mc.allowSyntheticDefaultImports.computeValue,c7=mc.resolvePackageJsonExports.computeValue,u7=mc.resolvePackageJsonImports.computeValue,h0=mc.resolveJsonModule.computeValue,xf=mc.declaration.computeValue,V1=mc.preserveConstEnums.computeValue,dN=mc.incremental.computeValue,Tk=mc.declarationMap.computeValue,qy=mc.allowJs.computeValue,pN=mc.useDefineForClassFields.computeValue,HU=/[^\w\s/]/g,cSe=[42,63],qU=["node_modules","bower_components","jspm_packages"],JU=`(?!(${qU.join("|")})(/|$))`,eae={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${JU}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>woe(e,eae.singleAsteriskRegexFragment)},tae={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${JU}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>woe(e,tae.singleAsteriskRegexFragment)},nae={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>woe(e,nae.singleAsteriskRegexFragment)},KU={files:eae,directories:tae,exclude:nae},MR=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],XU=ts(MR),uSe=[...MR,[".json"]],dSe=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],YU=[[".js",".jsx"],[".mjs"],[".cjs"]],LR=ts(YU),d7=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],pSe=[...d7,[".json"]],Ak=[".d.ts",".d.cts",".d.mts"],Ik=[".ts",".cts",".mts",".tsx"],xk=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"],$U=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))($U||{}),QU=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"],p7={files:et,directories:et},fSe=String.prototype.replace}});function rae(){let e,t,r,i,o;return{createBaseSourceFileNode:s,createBaseIdentifierNode:l,createBasePrivateIdentifierNode:u,createBaseTokenNode:p,createBaseNode:g};function s(m){return new(o||(o=lu.getSourceFileConstructor()))(m,-1,-1)}function l(m){return new(r||(r=lu.getIdentifierConstructor()))(m,-1,-1)}function u(m){return new(i||(i=lu.getPrivateIdentifierConstructor()))(m,-1,-1)}function p(m){return new(t||(t=lu.getTokenConstructor()))(m,-1,-1)}function g(m){return new(e||(e=lu.getNodeConstructor()))(m,-1,-1)}}var Lze=A({"src/compiler/factory/baseNodeFactory.ts"(){"use strict";ia()}});function iae(e){let t,r;return{getParenthesizeLeftSideOfBinaryForOperator:i,getParenthesizeRightSideOfBinaryForOperator:o,parenthesizeLeftSideOfBinary:g,parenthesizeRightSideOfBinary:m,parenthesizeExpressionOfComputedPropertyName:b,parenthesizeConditionOfConditionalExpression:T,parenthesizeBranchOfConditionalExpression:I,parenthesizeExpressionOfExportDefault:R,parenthesizeExpressionOfNew:M,parenthesizeLeftSideOfAccess:N,parenthesizeOperandOfPostfixUnary:O,parenthesizeOperandOfPrefixUnary:H,parenthesizeExpressionsOfCommaDelimitedList:K,parenthesizeExpressionForDisallowedComma:Z,parenthesizeExpressionOfExpressionStatement:V,parenthesizeConciseBodyOfArrowFunction:ue,parenthesizeCheckTypeOfConditionalType:G,parenthesizeExtendsTypeOfConditionalType:ne,parenthesizeConstituentTypesOfUnionType:ye,parenthesizeConstituentTypeOfUnionType:he,parenthesizeConstituentTypesOfIntersectionType:Y,parenthesizeConstituentTypeOfIntersectionType:$,parenthesizeOperandOfTypeOperator:oe,parenthesizeOperandOfReadonlyTypeOperator:fe,parenthesizeNonArrayTypeOfPostfixType:Ne,parenthesizeElementTypesOfTupleType:me,parenthesizeElementTypeOfTupleType:ie,parenthesizeTypeOfOptionalType:Le,parenthesizeTypeArguments:Ce,parenthesizeLeadingTypeArgument:He};function i(Me){t||(t=new Map);let Fe=t.get(Me);return Fe||(Fe=At=>g(Me,At),t.set(Me,Fe)),Fe}function o(Me){r||(r=new Map);let Fe=r.get(Me);return Fe||(Fe=At=>m(Me,void 0,At),r.set(Me,Fe)),Fe}function s(Me,Fe,At,Se){let je=tk(226,Me),at=Xj(226,Me),Bt=Sm(Fe);if(!At&&Fe.kind===219&&je>3)return!0;let yt=OC(Bt);switch(tl(yt,je)){case-1:return!(!At&&at===1&&Fe.kind===229);case 1:return!1;case 0:if(At)return at===1;if(_r(Bt)&&Bt.operatorToken.kind===Me){if(l(Me))return!1;if(Me===40){let gt=Se?u(Se):0;if(_C(gt)&>===u(Bt))return!1}}return Kj(Bt)===0}}function l(Me){return Me===42||Me===52||Me===51||Me===53||Me===28}function u(Me){if(Me=Sm(Me),_C(Me.kind))return Me.kind;if(Me.kind===226&&Me.operatorToken.kind===40){if(Me.cachedLiteralKind!==void 0)return Me.cachedLiteralKind;let Fe=u(Me.left),At=_C(Fe)&&Fe===u(Me.right)?Fe:0;return Me.cachedLiteralKind=At,At}return 0}function p(Me,Fe,At,Se){return Sm(Fe).kind===217?Fe:s(Me,Fe,At,Se)?e.createParenthesizedExpression(Fe):Fe}function g(Me,Fe){return p(Me,Fe,!0)}function m(Me,Fe,At){return p(Me,At,!1,Fe)}function b(Me){return DN(Me)?e.createParenthesizedExpression(Me):Me}function T(Me){let Fe=tk(227,58),At=Sm(Me),Se=OC(At);return tl(Se,Fe)!==1?e.createParenthesizedExpression(Me):Me}function I(Me){let Fe=Sm(Me);return DN(Fe)?e.createParenthesizedExpression(Me):Me}function R(Me){let Fe=Sm(Me),At=DN(Fe);if(!At)switch(xR(Fe,!1).kind){case 231:case 218:At=!0}return At?e.createParenthesizedExpression(Me):Me}function M(Me){let Fe=xR(Me,!0);switch(Fe.kind){case 213:return e.createParenthesizedExpression(Me);case 214:return Fe.arguments?Me:e.createParenthesizedExpression(Me)}return N(Me)}function N(Me,Fe){let At=Sm(Me);return Zd(At)&&(At.kind!==214||At.arguments)&&(Fe||!Hu(At))?Me:dt(e.createParenthesizedExpression(Me),Me)}function O(Me){return Zd(Me)?Me:dt(e.createParenthesizedExpression(Me),Me)}function H(Me){return QV(Me)?Me:dt(e.createParenthesizedExpression(Me),Me)}function K(Me){let Fe=Io(Me,Z);return dt(e.createNodeArray(Fe,Me.hasTrailingComma),Me)}function Z(Me){let Fe=Sm(Me),At=OC(Fe),Se=tk(226,28);return At>Se?Me:dt(e.createParenthesizedExpression(Me),Me)}function V(Me){let Fe=Sm(Me);if(la(Fe)){let Se=Fe.expression,je=Sm(Se).kind;if(je===218||je===219){let at=e.updateCallExpression(Fe,dt(e.createParenthesizedExpression(Se),Se),Fe.typeArguments,Fe.arguments);return e.restoreOuterExpressions(Me,at,8)}}let At=xR(Fe,!1).kind;return At===210||At===218?dt(e.createParenthesizedExpression(Me),Me):Me}function ue(Me){return!Xo(Me)&&(DN(Me)||xR(Me,!1).kind===210)?dt(e.createParenthesizedExpression(Me),Me):Me}function G(Me){switch(Me.kind){case 184:case 185:case 194:return e.createParenthesizedType(Me)}return Me}function ne(Me){switch(Me.kind){case 194:return e.createParenthesizedType(Me)}return Me}function he(Me){switch(Me.kind){case 192:case 193:return e.createParenthesizedType(Me)}return G(Me)}function ye(Me){return e.createNodeArray(Io(Me,he))}function $(Me){switch(Me.kind){case 192:case 193:return e.createParenthesizedType(Me)}return he(Me)}function Y(Me){return e.createNodeArray(Io(Me,$))}function oe(Me){switch(Me.kind){case 193:return e.createParenthesizedType(Me)}return $(Me)}function fe(Me){switch(Me.kind){case 198:return e.createParenthesizedType(Me)}return oe(Me)}function Ne(Me){switch(Me.kind){case 195:case 198:case 186:return e.createParenthesizedType(Me)}return oe(Me)}function me(Me){return e.createNodeArray(Io(Me,ie))}function ie(Me){return ve(Me)?e.createParenthesizedType(Me):Me}function ve(Me){return VR(Me)?Me.postfix:FR(Me)||bh(Me)||OR(Me)||kS(Me)?ve(Me.type):aI(Me)?ve(Me.falseType):Xy(Me)||oI(Me)?ve(Ya(Me.types)):MS(Me)?!!Me.typeParameter.constraint&&ve(Me.typeParameter.constraint):!1}function Le(Me){return ve(Me)?e.createParenthesizedType(Me):Ne(Me)}function He(Me){return Nre(Me)&&Me.typeParameters?e.createParenthesizedType(Me):Me}function Ee(Me,Fe){return Fe===0?He(Me):Me}function Ce(Me){if(Et(Me))return e.createNodeArray(Io(Me,Ee))}}var ZU,kze=A({"src/compiler/factory/parenthesizerRules.ts"(){"use strict";ia(),ZU={getParenthesizeLeftSideOfBinaryForOperator:e=>el,getParenthesizeRightSideOfBinaryForOperator:e=>el,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,r)=>r,parenthesizeExpressionOfComputedPropertyName:el,parenthesizeConditionOfConditionalExpression:el,parenthesizeBranchOfConditionalExpression:el,parenthesizeExpressionOfExportDefault:el,parenthesizeExpressionOfNew:e=>aa(e,Zd),parenthesizeLeftSideOfAccess:e=>aa(e,Zd),parenthesizeOperandOfPostfixUnary:e=>aa(e,Zd),parenthesizeOperandOfPrefixUnary:e=>aa(e,QV),parenthesizeExpressionsOfCommaDelimitedList:e=>aa(e,E1),parenthesizeExpressionForDisallowedComma:el,parenthesizeExpressionOfExpressionStatement:el,parenthesizeConciseBodyOfArrowFunction:el,parenthesizeCheckTypeOfConditionalType:el,parenthesizeExtendsTypeOfConditionalType:el,parenthesizeConstituentTypesOfUnionType:e=>aa(e,E1),parenthesizeConstituentTypeOfUnionType:el,parenthesizeConstituentTypesOfIntersectionType:e=>aa(e,E1),parenthesizeConstituentTypeOfIntersectionType:el,parenthesizeOperandOfTypeOperator:el,parenthesizeOperandOfReadonlyTypeOperator:el,parenthesizeNonArrayTypeOfPostfixType:el,parenthesizeElementTypesOfTupleType:e=>aa(e,E1),parenthesizeElementTypeOfTupleType:el,parenthesizeTypeOfOptionalType:el,parenthesizeTypeArguments:e=>e&&aa(e,E1),parenthesizeLeadingTypeArgument:el}}});function oae(e){return{convertToFunctionBlock:t,convertToFunctionExpression:r,convertToClassExpression:i,convertToArrayAssignmentElement:o,convertToObjectAssignmentElement:s,convertToAssignmentPattern:l,convertToObjectAssignmentPattern:u,convertToArrayAssignmentPattern:p,convertToAssignmentElementTarget:g};function t(m,b){if(Xo(m))return m;let T=e.createReturnStatement(m);dt(T,m);let I=e.createBlock([T],b);return dt(I,m),I}function r(m){var b;if(!m.body)return C.fail("Cannot convert a FunctionDeclaration without a body");let T=e.createFunctionExpression((b=b1(m))==null?void 0:b.filter(I=>!eI(I)&&!X7(I)),m.asteriskToken,m.name,m.typeParameters,m.parameters,m.type,m.body);return Pr(T,m),dt(T,m),fN(m)&&_7(T,!0),T}function i(m){var b;let T=e.createClassExpression((b=m.modifiers)==null?void 0:b.filter(I=>!eI(I)&&!X7(I)),m.name,m.typeParameters,m.heritageClauses,m.members);return Pr(T,m),dt(T,m),fN(m)&&_7(T,!0),T}function o(m){if(Qa(m)){if(m.dotDotDotToken)return C.assertNode(m.name,Ve),Pr(dt(e.createSpreadElement(m.name),m),m);let b=g(m.name);return m.initializer?Pr(dt(e.createAssignment(b,m.initializer),m),m):b}return aa(m,bt)}function s(m){if(Qa(m)){if(m.dotDotDotToken)return C.assertNode(m.name,Ve),Pr(dt(e.createSpreadAssignment(m.name),m),m);if(m.propertyName){let b=g(m.name);return Pr(dt(e.createPropertyAssignment(m.propertyName,m.initializer?e.createAssignment(b,m.initializer):b),m),m)}return C.assertNode(m.name,Ve),Pr(dt(e.createShorthandPropertyAssignment(m.name,m.initializer),m),m)}return aa(m,wg)}function l(m){switch(m.kind){case 207:case 209:return p(m);case 206:case 210:return u(m)}}function u(m){return om(m)?Pr(dt(e.createObjectLiteralExpression(Ft(m.elements,s)),m),m):aa(m,wa)}function p(m){return U1(m)?Pr(dt(e.createArrayLiteralExpression(Ft(m.elements,o)),m),m):aa(m,pd)}function g(m){return ta(m)?l(m):aa(m,bt)}}var eH,wze=A({"src/compiler/factory/nodeConverters.ts"(){"use strict";ia(),eH={convertToFunctionBlock:Ko,convertToFunctionExpression:Ko,convertToClassExpression:Ko,convertToArrayAssignmentElement:Ko,convertToObjectAssignmentElement:Ko,convertToAssignmentPattern:Ko,convertToObjectAssignmentPattern:Ko,convertToArrayAssignmentPattern:Ko,convertToAssignmentElementTarget:Ko}}});function mSe(e){sae.push(e)}function Rk(e,t){let r=e&8?el:Pr,i=Ed(()=>e&1?ZU:iae(O)),o=Ed(()=>e&2?eH:oae(O)),s=ch(E=>(P,B)=>Ae(P,E,B)),l=ch(E=>P=>lt(E,P)),u=ch(E=>P=>jt(P,E)),p=ch(E=>()=>$2(E)),g=ch(E=>P=>gT(E,P)),m=ch(E=>(P,B)=>EE(E,P,B)),b=ch(E=>(P,B)=>Q2(E,P,B)),T=ch(E=>(P,B)=>$s(E,P,B)),I=ch(E=>(P,B)=>H0(E,P,B)),R=ch(E=>(P,B,ce)=>wf(E,P,B,ce)),M=ch(E=>(P,B,ce)=>yb(E,P,B,ce)),N=ch(E=>(P,B,ce,$e)=>bb(E,P,B,ce,$e)),O={get parenthesizer(){return i()},get converters(){return o()},baseFactory:t,flags:e,createNodeArray:H,createNumericLiteral:ue,createBigIntLiteral:G,createStringLiteral:he,createStringLiteralFromNode:ye,createRegularExpressionLiteral:$,createLiteralLikeNode:Y,createIdentifier:Ne,createTempVariable:me,createLoopVariable:ie,createUniqueName:ve,getGeneratedNameForNode:Le,createPrivateIdentifier:Ee,createUniquePrivateName:Me,getGeneratedPrivateNameForNode:Fe,createToken:Se,createSuper:je,createThis:at,createNull:Bt,createTrue:yt,createFalse:Qe,createModifier:gt,createModifiersFromModifierFlags:nn,createQualifiedName:rn,updateQualifiedName:Nn,createComputedPropertyName:Xn,updateComputedPropertyName:_n,createTypeParameterDeclaration:Qt,updateTypeParameterDeclaration:Yt,createParameterDeclaration:vi,updateParameterDeclaration:ho,createDecorator:ki,updateDecorator:Ro,createPropertySignature:nr,updatePropertySignature:qr,createPropertyDeclaration:ln,updatePropertyDeclaration:tt,createMethodSignature:zt,updateMethodSignature:Rn,createMethodDeclaration:ui,updateMethodDeclaration:bi,createConstructorDeclaration:En,updateConstructorDeclaration:wn,createGetAccessorDeclaration:mt,updateGetAccessorDeclaration:ft,createSetAccessorDeclaration:le,updateSetAccessorDeclaration:We,createCallSignature:j,updateCallSignature:ot,createConstructSignature:xt,updateConstructSignature:Ye,createIndexSignature:ht,updateIndexSignature:Vt,createClassStaticBlockDeclaration:No,updateClassStaticBlockDeclaration:_a,createTemplateLiteralTypeSpan:yn,updateTemplateLiteralTypeSpan:fn,createKeywordTypeNode:mn,createTypePredicateNode:q,updateTypePredicateNode:Oe,createTypeReferenceNode:Lt,updateTypeReferenceNode:w,createFunctionTypeNode:ae,updateFunctionTypeNode:J,createConstructorTypeNode:Ge,updateConstructorTypeNode:Pt,createTypeQueryNode:On,updateTypeQueryNode:Gn,createTypeLiteralNode:yi,updateTypeLiteralNode:Di,createArrayTypeNode:or,updateArrayTypeNode:Vr,createTupleTypeNode:Eo,updateTupleTypeNode:Mi,createNamedTupleMember:Ci,updateNamedTupleMember:Kr,createOptionalTypeNode:Po,updateOptionalTypeNode:Dn,createRestTypeNode:Fs,updateRestTypeNode:Yl,createUnionTypeNode:Gs,updateUnionTypeNode:hl,createIntersectionTypeNode:uu,updateIntersectionTypeNode:yo,createConditionalTypeNode:pa,updateConditionalTypeNode:du,createInferTypeNode:Is,updateInferTypeNode:Pa,createImportTypeNode:sc,updateImportTypeNode:Rl,createParenthesizedType:ll,updateParenthesizedType:Wo,createThisTypeNode:on,createTypeOperatorNode:Vs,updateTypeOperatorNode:nu,createIndexedAccessTypeNode:pu,updateIndexedAccessTypeNode:Tp,createMappedTypeNode:Ms,updateMappedTypeNode:Ic,createLiteralTypeNode:de,updateLiteralTypeNode:ee,createTemplateLiteralType:fl,updateTemplateLiteralType:Mf,createObjectBindingPattern:we,updateObjectBindingPattern:St,createArrayBindingPattern:pn,updateArrayBindingPattern:Tr,createBindingElement:gr,updateBindingElement:jr,createArrayLiteralExpression:Ni,updateArrayLiteralExpression:Lr,createObjectLiteralExpression:$o,updateObjectLiteralExpression:El,createPropertyAccessExpression:e&4?(E,P)=>fr(js(E,P),262144):js,updatePropertyAccessExpression:gc,createPropertyAccessChain:e&4?(E,P,B)=>fr(Ts(E,P,B),262144):Ts,updatePropertyAccessChain:Hc,createElementAccessExpression:Oc,updateElementAccessExpression:lm,createElementAccessChain:md,updateElementAccessChain:Pe,createCallExpression:qn,updateCallExpression:So,createCallChain:Qo,updateCallChain:na,createNewExpression:$l,updateNewExpression:vc,createTaggedTemplateExpression:cl,updateTaggedTemplateExpression:gl,createTypeAssertion:Bl,updateTypeAssertion:Ql,createParenthesizedExpression:qc,updateParenthesizedExpression:cf,createFunctionExpression:Bd,updateFunctionExpression:Dd,createArrowFunction:Lf,updateArrowFunction:j_,createDeleteExpression:Dh,updateDeleteExpression:Xg,createTypeOfExpression:zu,updateTypeOfExpression:Yg,createVoidExpression:Ap,updateVoidExpression:fg,createAwaitExpression:Gd,updateAwaitExpression:te,createPrefixUnaryExpression:lt,updatePrefixUnaryExpression:Wt,createPostfixUnaryExpression:jt,updatePostfixUnaryExpression:W,createBinaryExpression:Ae,updateBinaryExpression:Ht,createConditionalExpression:rr,updateConditionalExpression:si,createTemplateExpression:$r,updateTemplateExpression:so,createTemplateHead:Ip,createTemplateMiddle:Vd,createTemplateTail:cb,createNoSubstitutionTemplateLiteral:ps,createTemplateLiteralLikeNode:xc,createYieldExpression:Lm,updateYieldExpression:km,createSpreadElement:Ji,updateSpreadElement:$g,createClassExpression:ry,updateClassExpression:wm,createOmittedExpression:mE,createExpressionWithTypeArguments:_E,updateExpressionWithTypeArguments:uf,createAsExpression:U_,updateAsExpression:df,createNonNullExpression:Qg,updateNonNullExpression:ze,createSatisfiesExpression:Ze,updateSatisfiesExpression:kt,createNonNullChain:Ut,updateNonNullChain:gn,createMetaProperty:Yn,updateMetaProperty:hn,createTemplateSpan:$n,updateTemplateSpan:hi,createSemicolonClassElement:ur,createBlock:oi,updateBlock:mr,createVariableStatement:Zo,updateVariableStatement:Ka,createEmptyStatement:Qu,createExpressionStatement:mu,updateExpressionStatement:Zg,createIfStatement:w0,updateIfStatement:VI,createDoStatement:O0,updateDoStatement:j2,createWhileStatement:U2,updateWhileStatement:H2,createForStatement:lT,updateForStatement:hE,createForInStatement:jI,updateForInStatement:q2,createForOfStatement:UI,updateForOfStatement:HI,createContinueStatement:qI,updateContinueStatement:JI,createBreakStatement:cT,updateBreakStatement:KI,createReturnStatement:gE,updateReturnStatement:vE,createWithStatement:ub,updateWithStatement:db,createSwitchStatement:mg,updateSwitchStatement:F0,createLabeledStatement:ns,updateLabeledStatement:uT,createThrowStatement:J2,updateThrowStatement:W0,createTryStatement:ev,updateTryStatement:Ch,createDebuggerStatement:kf,createVariableDeclaration:jd,updateVariableDeclaration:xp,createVariableDeclarationList:op,updateVariableDeclarationList:iy,createFunctionDeclaration:dT,updateFunctionDeclaration:K2,createClassDeclaration:pb,updateClassDeclaration:z0,createInterfaceDeclaration:YI,updateInterfaceDeclaration:yc,createTypeAliasDeclaration:oy,updateTypeAliasDeclaration:$I,createEnumDeclaration:o_,updateEnumDeclaration:pT,createModuleDeclaration:qe,updateModuleDeclaration:a_,createModuleBlock:_u,updateModuleBlock:B0,createCaseBlock:QI,updateCaseBlock:fb,createNamespaceExportDeclaration:ay,updateNamespaceExportDeclaration:sy,createImportEqualsDeclaration:Xa,updateImportEqualsDeclaration:s_,createImportDeclaration:fT,updateImportDeclaration:mT,createImportClause:G0,updateImportClause:_T,createAssertClause:cm,updateAssertClause:um,createAssertEntry:tv,updateAssertEntry:ZI,createImportTypeAssertionContainer:l_,updateImportTypeAssertionContainer:X2,createImportAttributes:yE,updateImportAttributes:$i,createImportAttribute:ti,updateImportAttribute:Nh,createNamespaceImport:Ud,updateNamespaceImport:LP,createNamespaceExport:nv,updateNamespaceExport:kP,createNamedImports:mb,updateNamedImports:vl,createImportSpecifier:Vp,updateImportSpecifier:_g,createExportAssignment:dm,updateExportAssignment:_b,createExportDeclaration:Om,updateExportDeclaration:rv,createNamedExports:hT,updateNamedExports:hg,createExportSpecifier:ex,updateExportSpecifier:gg,createMissingDeclaration:H_,createExternalModuleReference:ly,updateExternalModuleReference:Y2,get createJSDocAllType(){return p(319)},get createJSDocUnknownType(){return p(320)},get createJSDocNonNullableType(){return b(322)},get updateJSDocNonNullableType(){return T(322)},get createJSDocNullableType(){return b(321)},get updateJSDocNullableType(){return T(321)},get createJSDocOptionalType(){return g(323)},get updateJSDocOptionalType(){return m(323)},get createJSDocVariadicType(){return g(325)},get updateJSDocVariadicType(){return m(325)},get createJSDocNamepathType(){return g(326)},get updateJSDocNamepathType(){return m(326)},createJSDocFunctionType:vT,updateJSDocFunctionType:Fm,createJSDocTypeLiteral:hb,updateJSDocTypeLiteral:Z2,createJSDocTypeExpression:yT,updateJSDocTypeExpression:wP,createJSDocSignature:vr,updateJSDocSignature:ru,createJSDocTemplateTag:q_,updateJSDocTemplateTag:dr,createJSDocTypedefTag:bT,updateJSDocTypedefTag:V0,createJSDocParameterTag:Jc,updateJSDocParameterTag:Ph,createJSDocPropertyTag:Wm,updateJSDocPropertyTag:SE,createJSDocCallbackTag:TE,updateJSDocCallbackTag:gb,createJSDocOverloadTag:iv,updateJSDocOverloadTag:ET,createJSDocAugmentsTag:zm,updateJSDocAugmentsTag:j0,createJSDocImplementsTag:vg,updateJSDocImplementsTag:ap,createJSDocSeeTag:vb,updateJSDocSeeTag:tx,createJSDocNameReference:U0,updateJSDocNameReference:eD,createJSDocMemberName:AE,updateJSDocMemberName:ST,createJSDocLink:jp,updateJSDocLink:TT,createJSDocLinkCode:Gl,updateJSDocLinkCode:Fc,createJSDocLinkPlain:AT,updateJSDocLinkPlain:Au,get createJSDocTypeTag(){return M(351)},get updateJSDocTypeTag(){return N(351)},get createJSDocReturnTag(){return M(349)},get updateJSDocReturnTag(){return N(349)},get createJSDocThisTag(){return M(350)},get updateJSDocThisTag(){return N(350)},get createJSDocAuthorTag(){return I(337)},get updateJSDocAuthorTag(){return R(337)},get createJSDocClassTag(){return I(339)},get updateJSDocClassTag(){return R(339)},get createJSDocPublicTag(){return I(340)},get updateJSDocPublicTag(){return R(340)},get createJSDocPrivateTag(){return I(341)},get updateJSDocPrivateTag(){return R(341)},get createJSDocProtectedTag(){return I(342)},get updateJSDocProtectedTag(){return R(342)},get createJSDocReadonlyTag(){return I(343)},get updateJSDocReadonlyTag(){return R(343)},get createJSDocOverrideTag(){return I(344)},get updateJSDocOverrideTag(){return R(344)},get createJSDocDeprecatedTag(){return I(338)},get updateJSDocDeprecatedTag(){return R(338)},get createJSDocThrowsTag(){return M(356)},get updateJSDocThrowsTag(){return N(356)},get createJSDocSatisfiesTag(){return M(357)},get updateJSDocSatisfiesTag(){return N(357)},createJSDocEnumTag:Up,updateJSDocEnumTag:IT,createJSDocUnknownTag:iu,updateJSDocUnknownTag:nx,createJSDocText:xT,updateJSDocText:Us,createJSDocComment:tD,updateJSDocComment:q0,createJsxElement:IE,updateJsxElement:OP,createJsxSelfClosingElement:_d,updateJsxSelfClosingElement:ov,createJsxOpeningElement:J_,updateJsxOpeningElement:rx,createJsxClosingElement:Rp,updateJsxClosingElement:ix,createJsxFragment:sp,createJsxText:uy,updateJsxText:RT,createJsxOpeningFragment:nD,createJsxJsxClosingFragment:rD,updateJsxFragment:ox,createJsxAttribute:DT,updateJsxAttribute:iD,createJsxAttributes:Eb,updateJsxAttributes:Dp,createJsxSpreadAttribute:Mh,updateJsxSpreadAttribute:oD,createJsxExpression:CT,updateJsxExpression:is,createJsxNamespacedName:Rr,updateJsxNamespacedName:ff,createCaseClause:Cd,updateCaseClause:xE,createDefaultClause:aD,updateDefaultClause:J0,createHeritageClause:RE,updateHeritageClause:NT,createCatchClause:yg,updateCatchClause:c_,createPropertyAssignment:mf,updatePropertyAssignment:Bm,createShorthandPropertyAssignment:bg,updateShorthandPropertyAssignment:Eg,createSpreadAssignment:lc,updateSpreadAssignment:sD,createEnumMember:Of,updateEnumMember:Lh,createSourceFile:_f,updateSourceFile:Ls,createRedirectedSourceFile:DE,createBundle:CE,updateBundle:NE,createUnparsedSource:sv,createUnparsedPrologue:X0,createUnparsedPrepend:D,createUnparsedTextLike:se,createUnparsedSyntheticReference:_t,createInputFiles:an,createSyntheticExpression:Fr,createSyntaxList:wi,createNotEmittedStatement:Ei,createPartiallyEmittedExpression:oo,updatePartiallyEmittedExpression:ya,createCommaListExpression:Nd,updateCommaListExpression:Ff,createSyntheticReferenceExpression:Tb,updateSyntheticReferenceExpression:Ai,cloneNode:Ib,get createComma(){return s(28)},get createAssignment(){return s(64)},get createLogicalOr(){return s(57)},get createLogicalAnd(){return s(56)},get createBitwiseOr(){return s(52)},get createBitwiseXor(){return s(53)},get createBitwiseAnd(){return s(51)},get createStrictEquality(){return s(37)},get createStrictInequality(){return s(38)},get createEquality(){return s(35)},get createInequality(){return s(36)},get createLessThan(){return s(30)},get createLessThanEquals(){return s(33)},get createGreaterThan(){return s(32)},get createGreaterThanEquals(){return s(34)},get createLeftShift(){return s(48)},get createRightShift(){return s(49)},get createUnsignedRightShift(){return s(50)},get createAdd(){return s(40)},get createSubtract(){return s(41)},get createMultiply(){return s(42)},get createDivide(){return s(44)},get createModulo(){return s(45)},get createExponent(){return s(43)},get createPrefixPlus(){return l(40)},get createPrefixMinus(){return l(41)},get createPrefixIncrement(){return l(46)},get createPrefixDecrement(){return l(47)},get createBitwiseNot(){return l(55)},get createLogicalNot(){return l(54)},get createPostfixIncrement(){return u(46)},get createPostfixDecrement(){return u(47)},createImmediatelyInvokedFunctionExpression:MT,createImmediatelyInvokedArrowFunction:PE,createVoidZero:K_,createExportDefault:wh,createExternalModuleExport:lD,createTypeCheck:LT,createIsNotTypeCheck:iz,createMethodCall:xb,createGlobalMethodCall:u_,createFunctionBindCall:_4,createFunctionCallCall:h4,createFunctionApplyCall:Y0,createArraySliceCall:FP,createArrayConcatCall:Oh,createObjectDefinePropertyCall:cx,createObjectGetOwnPropertyDescriptorCall:g4,createReflectGetCall:X_,createReflectSetCall:Q,createPropertyDescriptor:Xe,createCallBinding:Pi,createAssignmentTargetWrapper:gi,inlineExpressions:eo,getInternalName:Cs,getLocalName:es,getExportName:Wf,getDeclarationName:Y_,getNamespaceMemberName:Sg,getExternalModuleOrNamespaceExportName:lv,restoreOuterExpressions:qt,restoreEnclosingLabel:Br,createUseStrictPrologue:lp,copyPrologue:cv,copyStandardPrologue:kT,copyCustomPrologue:cD,ensureUseStrict:WP,liftToBlock:zP,mergeLexicalEnvironment:uv,replaceModifiers:Db,replaceDecoratorsAndModifiers:uD,replacePropertyName:Hp};return Ke(sae,E=>E(O)),O;function H(E,P){if(E===void 0||E===et)E=[];else if(E1(E)){if(P===void 0||E.hasTrailingComma===P)return E.transformFlags===void 0&&_Se(E),C.attachNodeArrayDebugInfo(E),E;let $e=E.slice();return $e.pos=E.pos,$e.end=E.end,$e.hasTrailingComma=P,$e.transformFlags=E.transformFlags,C.attachNodeArrayDebugInfo($e),$e}let B=E.length,ce=B>=1&&B<=4?E.slice():E;return ce.pos=-1,ce.end=-1,ce.hasTrailingComma=!!P,ce.transformFlags=0,_Se(ce),C.attachNodeArrayDebugInfo(ce),ce}function K(E){return t.createBaseNode(E)}function Z(E){let P=K(E);return P.symbol=void 0,P.localSymbol=void 0,P}function V(E,P){return E!==P&&(E.typeArguments=P.typeArguments),ar(E,P)}function ue(E,P=0){let B=typeof E=="number"?E+"":E;C.assert(B.charCodeAt(0)!==45,"Negative numbers should be created in combination with createPrefixUnaryExpression");let ce=Z(9);return ce.text=B,ce.numericLiteralFlags=P,P&384&&(ce.transformFlags|=1024),ce}function G(E){let P=At(10);return P.text=typeof E=="string"?E:z1(E)+"n",P.transformFlags|=32,P}function ne(E,P){let B=Z(11);return B.text=E,B.singleQuote=P,B}function he(E,P,B){let ce=ne(E,P);return ce.hasExtendedUnicodeEscape=B,B&&(ce.transformFlags|=1024),ce}function ye(E){let P=ne(Zf(E),void 0);return P.textSourceNode=E,P}function $(E){let P=At(14);return P.text=E,P}function Y(E,P){switch(E){case 9:return ue(P,0);case 10:return G(P);case 11:return he(P,void 0);case 12:return uy(P,!1);case 13:return uy(P,!0);case 14:return $(P);case 15:return xc(E,P,void 0,0)}}function oe(E){let P=t.createBaseIdentifierNode(80);return P.escapedText=E,P.jsDoc=void 0,P.flowNode=void 0,P.symbol=void 0,P}function fe(E,P,B,ce){let $e=oe(ml(E));return Lk($e,{flags:P,id:m7,prefix:B,suffix:ce}),m7++,$e}function Ne(E,P,B){P===void 0&&E&&(P=y1(E)),P===80&&(P=void 0);let ce=oe(ml(E));return B&&(ce.flags|=256),ce.escapedText==="await"&&(ce.transformFlags|=67108864),ce.flags&256&&(ce.transformFlags|=1024),ce}function me(E,P,B,ce){let $e=1;P&&($e|=8);let Jt=fe("",$e,B,ce);return E&&E(Jt),Jt}function ie(E){let P=2;return E&&(P|=8),fe("",P,void 0,void 0)}function ve(E,P=0,B,ce){return C.assert(!(P&7),"Argument out of range: flags"),C.assert((P&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),fe(E,3|P,B,ce)}function Le(E,P=0,B,ce){C.assert(!(P&7),"Argument out of range: flags");let $e=E?Yh(E)?E0(!1,B,E,ce,Sr):`generated@${ss(E)}`:"";(B||ce)&&(P|=16);let Jt=fe($e,4|P,B,ce);return Jt.original=E,Jt}function He(E){let P=t.createBasePrivateIdentifierNode(81);return P.escapedText=E,P.transformFlags|=16777216,P}function Ee(E){return uo(E,"#")||C.fail("First character of private identifier must be #: "+E),He(ml(E))}function Ce(E,P,B,ce){let $e=He(ml(E));return Lk($e,{flags:P,id:m7,prefix:B,suffix:ce}),m7++,$e}function Me(E,P,B){E&&!uo(E,"#")&&C.fail("First character of private identifier must be #: "+E);let ce=8|(E?3:1);return Ce(E??"",ce,P,B)}function Fe(E,P,B){let ce=Yh(E)?E0(!0,P,E,B,Sr):`#generated@${ss(E)}`,Jt=Ce(ce,4|(P||B?16:0),P,B);return Jt.original=E,Jt}function At(E){return t.createBaseTokenNode(E)}function Se(E){C.assert(E>=0&&E<=165,"Invalid token"),C.assert(E<=15||E>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),C.assert(E<=9||E>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),C.assert(E!==80,"Invalid token. Use 'createIdentifier' to create identifiers");let P=At(E),B=0;switch(E){case 134:B=384;break;case 160:B=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:B=1;break;case 108:B=134218752,P.flowNode=void 0;break;case 126:B=1024;break;case 129:B=16777216;break;case 110:B=16384,P.flowNode=void 0;break}return B&&(P.transformFlags|=B),P}function je(){return Se(108)}function at(){return Se(110)}function Bt(){return Se(106)}function yt(){return Se(112)}function Qe(){return Se(97)}function gt(E){return Se(E)}function nn(E){let P=[];return E&32&&P.push(gt(95)),E&128&&P.push(gt(138)),E&2048&&P.push(gt(90)),E&4096&&P.push(gt(87)),E&1&&P.push(gt(125)),E&2&&P.push(gt(123)),E&4&&P.push(gt(124)),E&64&&P.push(gt(128)),E&256&&P.push(gt(126)),E&16&&P.push(gt(164)),E&8&&P.push(gt(148)),E&512&&P.push(gt(129)),E&1024&&P.push(gt(134)),E&8192&&P.push(gt(103)),E&16384&&P.push(gt(147)),P.length?P:void 0}function rn(E,P){let B=K(166);return B.left=E,B.right=cc(P),B.transformFlags|=Ir(B.left)|Dk(B.right),B.flowNode=void 0,B}function Nn(E,P,B){return E.left!==P||E.right!==B?ar(rn(P,B),E):E}function Xn(E){let P=K(167);return P.expression=i().parenthesizeExpressionOfComputedPropertyName(E),P.transformFlags|=Ir(P.expression)|1024|131072,P}function _n(E,P){return E.expression!==P?ar(Xn(P),E):E}function Qt(E,P,B,ce){let $e=Z(168);return $e.modifiers=Ua(E),$e.name=cc(P),$e.constraint=B,$e.default=ce,$e.transformFlags=1,$e.expression=void 0,$e.jsDoc=void 0,$e}function Yt(E,P,B,ce,$e){return E.modifiers!==P||E.name!==B||E.constraint!==ce||E.default!==$e?ar(Qt(P,B,ce,$e),E):E}function vi(E,P,B,ce,$e,Jt){let br=Z(169);return br.modifiers=Ua(E),br.dotDotDotToken=P,br.name=cc(B),br.questionToken=ce,br.type=$e,br.initializer=ux(Jt),O1(br.name)?br.transformFlags=1:br.transformFlags=Ja(br.modifiers)|Ir(br.dotDotDotToken)|Jy(br.name)|Ir(br.questionToken)|Ir(br.initializer)|(br.questionToken??br.type?1:0)|(br.dotDotDotToken??br.initializer?1024:0)|(N_(br.modifiers)&31?8192:0),br.jsDoc=void 0,br}function ho(E,P,B,ce,$e,Jt,br){return E.modifiers!==P||E.dotDotDotToken!==B||E.name!==ce||E.questionToken!==$e||E.type!==Jt||E.initializer!==br?ar(vi(P,B,ce,$e,Jt,br),E):E}function ki(E){let P=K(170);return P.expression=i().parenthesizeLeftSideOfAccess(E,!1),P.transformFlags|=Ir(P.expression)|1|8192|33554432,P}function Ro(E,P){return E.expression!==P?ar(ki(P),E):E}function nr(E,P,B,ce){let $e=Z(171);return $e.modifiers=Ua(E),$e.name=cc(P),$e.type=ce,$e.questionToken=B,$e.transformFlags=1,$e.initializer=void 0,$e.jsDoc=void 0,$e}function qr(E,P,B,ce,$e){return E.modifiers!==P||E.name!==B||E.questionToken!==ce||E.type!==$e?xr(nr(P,B,ce,$e),E):E}function xr(E,P){return E!==P&&(E.initializer=P.initializer),ar(E,P)}function ln(E,P,B,ce,$e){let Jt=Z(172);Jt.modifiers=Ua(E),Jt.name=cc(P),Jt.questionToken=B&&Ky(B)?B:void 0,Jt.exclamationToken=B&&Wk(B)?B:void 0,Jt.type=ce,Jt.initializer=ux($e);let br=Jt.flags&33554432||N_(Jt.modifiers)&128;return Jt.transformFlags=Ja(Jt.modifiers)|Jy(Jt.name)|Ir(Jt.initializer)|(br||Jt.questionToken||Jt.exclamationToken||Jt.type?1:0)|(Za(Jt.name)||N_(Jt.modifiers)&256&&Jt.initializer?8192:0)|16777216,Jt.jsDoc=void 0,Jt}function tt(E,P,B,ce,$e,Jt){return E.modifiers!==P||E.name!==B||E.questionToken!==(ce!==void 0&&Ky(ce)?ce:void 0)||E.exclamationToken!==(ce!==void 0&&Wk(ce)?ce:void 0)||E.type!==$e||E.initializer!==Jt?ar(ln(P,B,ce,$e,Jt),E):E}function zt(E,P,B,ce,$e,Jt){let br=Z(173);return br.modifiers=Ua(E),br.name=cc(P),br.questionToken=B,br.typeParameters=Ua(ce),br.parameters=Ua($e),br.type=Jt,br.transformFlags=1,br.jsDoc=void 0,br.locals=void 0,br.nextContainer=void 0,br.typeArguments=void 0,br}function Rn(E,P,B,ce,$e,Jt,br){return E.modifiers!==P||E.name!==B||E.questionToken!==ce||E.typeParameters!==$e||E.parameters!==Jt||E.type!==br?V(zt(P,B,ce,$e,Jt,br),E):E}function ui(E,P,B,ce,$e,Jt,br,ao){let Hs=Z(174);if(Hs.modifiers=Ua(E),Hs.asteriskToken=P,Hs.name=cc(B),Hs.questionToken=ce,Hs.exclamationToken=void 0,Hs.typeParameters=Ua($e),Hs.parameters=H(Jt),Hs.type=br,Hs.body=ao,!Hs.body)Hs.transformFlags=1;else{let d_=N_(Hs.modifiers)&1024,Nb=!!Hs.asteriskToken,Gm=d_&&Nb;Hs.transformFlags=Ja(Hs.modifiers)|Ir(Hs.asteriskToken)|Jy(Hs.name)|Ir(Hs.questionToken)|Ja(Hs.typeParameters)|Ja(Hs.parameters)|Ir(Hs.type)|Ir(Hs.body)&-67108865|(Gm?128:d_?256:Nb?2048:0)|(Hs.questionToken||Hs.typeParameters||Hs.type?1:0)|1024}return Hs.typeArguments=void 0,Hs.jsDoc=void 0,Hs.locals=void 0,Hs.nextContainer=void 0,Hs.flowNode=void 0,Hs.endFlowNode=void 0,Hs.returnFlowNode=void 0,Hs}function bi(E,P,B,ce,$e,Jt,br,ao,Hs){return E.modifiers!==P||E.asteriskToken!==B||E.name!==ce||E.questionToken!==$e||E.typeParameters!==Jt||E.parameters!==br||E.type!==ao||E.body!==Hs?ro(ui(P,B,ce,$e,Jt,br,ao,Hs),E):E}function ro(E,P){return E!==P&&(E.exclamationToken=P.exclamationToken),ar(E,P)}function No(E){let P=Z(175);return P.body=E,P.transformFlags=Ir(E)|16777216,P.modifiers=void 0,P.jsDoc=void 0,P.locals=void 0,P.nextContainer=void 0,P.endFlowNode=void 0,P.returnFlowNode=void 0,P}function _a(E,P){return E.body!==P?ja(No(P),E):E}function ja(E,P){return E!==P&&(E.modifiers=P.modifiers),ar(E,P)}function En(E,P,B){let ce=Z(176);return ce.modifiers=Ua(E),ce.parameters=H(P),ce.body=B,ce.transformFlags=Ja(ce.modifiers)|Ja(ce.parameters)|Ir(ce.body)&-67108865|1024,ce.typeParameters=void 0,ce.type=void 0,ce.typeArguments=void 0,ce.jsDoc=void 0,ce.locals=void 0,ce.nextContainer=void 0,ce.endFlowNode=void 0,ce.returnFlowNode=void 0,ce}function wn(E,P,B,ce){return E.modifiers!==P||E.parameters!==B||E.body!==ce?Ue(En(P,B,ce),E):E}function Ue(E,P){return E!==P&&(E.typeParameters=P.typeParameters,E.type=P.type),V(E,P)}function mt(E,P,B,ce,$e){let Jt=Z(177);return Jt.modifiers=Ua(E),Jt.name=cc(P),Jt.parameters=H(B),Jt.type=ce,Jt.body=$e,Jt.body?Jt.transformFlags=Ja(Jt.modifiers)|Jy(Jt.name)|Ja(Jt.parameters)|Ir(Jt.type)|Ir(Jt.body)&-67108865|(Jt.type?1:0):Jt.transformFlags=1,Jt.typeArguments=void 0,Jt.typeParameters=void 0,Jt.jsDoc=void 0,Jt.locals=void 0,Jt.nextContainer=void 0,Jt.flowNode=void 0,Jt.endFlowNode=void 0,Jt.returnFlowNode=void 0,Jt}function ft(E,P,B,ce,$e,Jt){return E.modifiers!==P||E.name!==B||E.parameters!==ce||E.type!==$e||E.body!==Jt?Nt(mt(P,B,ce,$e,Jt),E):E}function Nt(E,P){return E!==P&&(E.typeParameters=P.typeParameters),V(E,P)}function le(E,P,B,ce){let $e=Z(178);return $e.modifiers=Ua(E),$e.name=cc(P),$e.parameters=H(B),$e.body=ce,$e.body?$e.transformFlags=Ja($e.modifiers)|Jy($e.name)|Ja($e.parameters)|Ir($e.body)&-67108865|($e.type?1:0):$e.transformFlags=1,$e.typeArguments=void 0,$e.typeParameters=void 0,$e.type=void 0,$e.jsDoc=void 0,$e.locals=void 0,$e.nextContainer=void 0,$e.flowNode=void 0,$e.endFlowNode=void 0,$e.returnFlowNode=void 0,$e}function We(E,P,B,ce,$e){return E.modifiers!==P||E.name!==B||E.parameters!==ce||E.body!==$e?pt(le(P,B,ce,$e),E):E}function pt(E,P){return E!==P&&(E.typeParameters=P.typeParameters,E.type=P.type),V(E,P)}function j(E,P,B){let ce=Z(179);return ce.typeParameters=Ua(E),ce.parameters=Ua(P),ce.type=B,ce.transformFlags=1,ce.jsDoc=void 0,ce.locals=void 0,ce.nextContainer=void 0,ce.typeArguments=void 0,ce}function ot(E,P,B,ce){return E.typeParameters!==P||E.parameters!==B||E.type!==ce?V(j(P,B,ce),E):E}function xt(E,P,B){let ce=Z(180);return ce.typeParameters=Ua(E),ce.parameters=Ua(P),ce.type=B,ce.transformFlags=1,ce.jsDoc=void 0,ce.locals=void 0,ce.nextContainer=void 0,ce.typeArguments=void 0,ce}function Ye(E,P,B,ce){return E.typeParameters!==P||E.parameters!==B||E.type!==ce?V(xt(P,B,ce),E):E}function ht(E,P,B){let ce=Z(181);return ce.modifiers=Ua(E),ce.parameters=Ua(P),ce.type=B,ce.transformFlags=1,ce.jsDoc=void 0,ce.locals=void 0,ce.nextContainer=void 0,ce.typeArguments=void 0,ce}function Vt(E,P,B,ce){return E.parameters!==B||E.type!==ce||E.modifiers!==P?V(ht(P,B,ce),E):E}function yn(E,P){let B=K(204);return B.type=E,B.literal=P,B.transformFlags=1,B}function fn(E,P,B){return E.type!==P||E.literal!==B?ar(yn(P,B),E):E}function mn(E){return Se(E)}function q(E,P,B){let ce=K(182);return ce.assertsModifier=E,ce.parameterName=cc(P),ce.type=B,ce.transformFlags=1,ce}function Oe(E,P,B,ce){return E.assertsModifier!==P||E.parameterName!==B||E.type!==ce?ar(q(P,B,ce),E):E}function Lt(E,P){let B=K(183);return B.typeName=cc(E),B.typeArguments=P&&i().parenthesizeTypeArguments(H(P)),B.transformFlags=1,B}function w(E,P,B){return E.typeName!==P||E.typeArguments!==B?ar(Lt(P,B),E):E}function ae(E,P,B){let ce=Z(184);return ce.typeParameters=Ua(E),ce.parameters=Ua(P),ce.type=B,ce.transformFlags=1,ce.modifiers=void 0,ce.jsDoc=void 0,ce.locals=void 0,ce.nextContainer=void 0,ce.typeArguments=void 0,ce}function J(E,P,B,ce){return E.typeParameters!==P||E.parameters!==B||E.type!==ce?pe(ae(P,B,ce),E):E}function pe(E,P){return E!==P&&(E.modifiers=P.modifiers),V(E,P)}function Ge(...E){return E.length===4?ke(...E):E.length===3?Dt(...E):C.fail("Incorrect number of arguments specified.")}function ke(E,P,B,ce){let $e=Z(185);return $e.modifiers=Ua(E),$e.typeParameters=Ua(P),$e.parameters=Ua(B),$e.type=ce,$e.transformFlags=1,$e.jsDoc=void 0,$e.locals=void 0,$e.nextContainer=void 0,$e.typeArguments=void 0,$e}function Dt(E,P,B){return ke(void 0,E,P,B)}function Pt(...E){return E.length===5?Kt(...E):E.length===4?Tn(...E):C.fail("Incorrect number of arguments specified.")}function Kt(E,P,B,ce,$e){return E.modifiers!==P||E.typeParameters!==B||E.parameters!==ce||E.type!==$e?V(Ge(P,B,ce,$e),E):E}function Tn(E,P,B,ce){return Kt(E,E.modifiers,P,B,ce)}function On(E,P){let B=K(186);return B.exprName=E,B.typeArguments=P&&i().parenthesizeTypeArguments(P),B.transformFlags=1,B}function Gn(E,P,B){return E.exprName!==P||E.typeArguments!==B?ar(On(P,B),E):E}function yi(E){let P=Z(187);return P.members=H(E),P.transformFlags=1,P}function Di(E,P){return E.members!==P?ar(yi(P),E):E}function or(E){let P=K(188);return P.elementType=i().parenthesizeNonArrayTypeOfPostfixType(E),P.transformFlags=1,P}function Vr(E,P){return E.elementType!==P?ar(or(P),E):E}function Eo(E){let P=K(189);return P.elements=H(i().parenthesizeElementTypesOfTupleType(E)),P.transformFlags=1,P}function Mi(E,P){return E.elements!==P?ar(Eo(P),E):E}function Ci(E,P,B,ce){let $e=Z(202);return $e.dotDotDotToken=E,$e.name=P,$e.questionToken=B,$e.type=ce,$e.transformFlags=1,$e.jsDoc=void 0,$e}function Kr(E,P,B,ce,$e){return E.dotDotDotToken!==P||E.name!==B||E.questionToken!==ce||E.type!==$e?ar(Ci(P,B,ce,$e),E):E}function Po(E){let P=K(190);return P.type=i().parenthesizeTypeOfOptionalType(E),P.transformFlags=1,P}function Dn(E,P){return E.type!==P?ar(Po(P),E):E}function Fs(E){let P=K(191);return P.type=E,P.transformFlags=1,P}function Yl(E,P){return E.type!==P?ar(Fs(P),E):E}function Fo(E,P,B){let ce=K(E);return ce.types=O.createNodeArray(B(P)),ce.transformFlags=1,ce}function ds(E,P,B){return E.types!==P?ar(Fo(E.kind,P,B),E):E}function Gs(E){return Fo(192,E,i().parenthesizeConstituentTypesOfUnionType)}function hl(E,P){return ds(E,P,i().parenthesizeConstituentTypesOfUnionType)}function uu(E){return Fo(193,E,i().parenthesizeConstituentTypesOfIntersectionType)}function yo(E,P){return ds(E,P,i().parenthesizeConstituentTypesOfIntersectionType)}function pa(E,P,B,ce){let $e=K(194);return $e.checkType=i().parenthesizeCheckTypeOfConditionalType(E),$e.extendsType=i().parenthesizeExtendsTypeOfConditionalType(P),$e.trueType=B,$e.falseType=ce,$e.transformFlags=1,$e.locals=void 0,$e.nextContainer=void 0,$e}function du(E,P,B,ce,$e){return E.checkType!==P||E.extendsType!==B||E.trueType!==ce||E.falseType!==$e?ar(pa(P,B,ce,$e),E):E}function Is(E){let P=K(195);return P.typeParameter=E,P.transformFlags=1,P}function Pa(E,P){return E.typeParameter!==P?ar(Is(P),E):E}function fl(E,P){let B=K(203);return B.head=E,B.templateSpans=H(P),B.transformFlags=1,B}function Mf(E,P,B){return E.head!==P||E.templateSpans!==B?ar(fl(P,B),E):E}function sc(E,P,B,ce,$e=!1){let Jt=K(205);return Jt.argument=E,Jt.attributes=P,Jt.assertions&&Jt.assertions.assertClause&&Jt.attributes&&(Jt.assertions.assertClause=Jt.attributes),Jt.qualifier=B,Jt.typeArguments=ce&&i().parenthesizeTypeArguments(ce),Jt.isTypeOf=$e,Jt.transformFlags=1,Jt}function Rl(E,P,B,ce,$e,Jt=E.isTypeOf){return E.argument!==P||E.attributes!==B||E.qualifier!==ce||E.typeArguments!==$e||E.isTypeOf!==Jt?ar(sc(P,B,ce,$e,Jt),E):E}function ll(E){let P=K(196);return P.type=E,P.transformFlags=1,P}function Wo(E,P){return E.type!==P?ar(ll(P),E):E}function on(){let E=K(197);return E.transformFlags=1,E}function Vs(E,P){let B=K(198);return B.operator=E,B.type=E===148?i().parenthesizeOperandOfReadonlyTypeOperator(P):i().parenthesizeOperandOfTypeOperator(P),B.transformFlags=1,B}function nu(E,P){return E.type!==P?ar(Vs(E.operator,P),E):E}function pu(E,P){let B=K(199);return B.objectType=i().parenthesizeNonArrayTypeOfPostfixType(E),B.indexType=P,B.transformFlags=1,B}function Tp(E,P,B){return E.objectType!==P||E.indexType!==B?ar(pu(P,B),E):E}function Ms(E,P,B,ce,$e,Jt){let br=Z(200);return br.readonlyToken=E,br.typeParameter=P,br.nameType=B,br.questionToken=ce,br.type=$e,br.members=Jt&&H(Jt),br.transformFlags=1,br.locals=void 0,br.nextContainer=void 0,br}function Ic(E,P,B,ce,$e,Jt,br){return E.readonlyToken!==P||E.typeParameter!==B||E.nameType!==ce||E.questionToken!==$e||E.type!==Jt||E.members!==br?ar(Ms(P,B,ce,$e,Jt,br),E):E}function de(E){let P=K(201);return P.literal=E,P.transformFlags=1,P}function ee(E,P){return E.literal!==P?ar(de(P),E):E}function we(E){let P=K(206);return P.elements=H(E),P.transformFlags|=Ja(P.elements)|1024|524288,P.transformFlags&32768&&(P.transformFlags|=65664),P}function St(E,P){return E.elements!==P?ar(we(P),E):E}function pn(E){let P=K(207);return P.elements=H(E),P.transformFlags|=Ja(P.elements)|1024|524288,P}function Tr(E,P){return E.elements!==P?ar(pn(P),E):E}function gr(E,P,B,ce){let $e=Z(208);return $e.dotDotDotToken=E,$e.propertyName=cc(P),$e.name=cc(B),$e.initializer=ux(ce),$e.transformFlags|=Ir($e.dotDotDotToken)|Jy($e.propertyName)|Jy($e.name)|Ir($e.initializer)|($e.dotDotDotToken?32768:0)|1024,$e.flowNode=void 0,$e}function jr(E,P,B,ce,$e){return E.propertyName!==B||E.dotDotDotToken!==P||E.name!==ce||E.initializer!==$e?ar(gr(P,B,ce,$e),E):E}function Ni(E,P){let B=K(209),ce=E&&Zs(E),$e=H(E,ce&&Vc(ce)?!0:void 0);return B.elements=i().parenthesizeExpressionsOfCommaDelimitedList($e),B.multiLine=P,B.transformFlags|=Ja(B.elements),B}function Lr(E,P){return E.elements!==P?ar(Ni(P,E.multiLine),E):E}function $o(E,P){let B=Z(210);return B.properties=H(E),B.multiLine=P,B.transformFlags|=Ja(B.properties),B.jsDoc=void 0,B}function El(E,P){return E.properties!==P?ar($o(P,E.multiLine),E):E}function Uc(E,P,B){let ce=Z(211);return ce.expression=E,ce.questionDotToken=P,ce.name=B,ce.transformFlags=Ir(ce.expression)|Ir(ce.questionDotToken)|(Ve(ce.name)?Dk(ce.name):Ir(ce.name)|536870912),ce.jsDoc=void 0,ce.flowNode=void 0,ce}function js(E,P){let B=Uc(i().parenthesizeLeftSideOfAccess(E,!1),void 0,cc(P));return gN(E)&&(B.transformFlags|=384),B}function gc(E,P,B){return y6(E)?Hc(E,P,E.questionDotToken,aa(B,Ve)):E.expression!==P||E.name!==B?ar(js(P,B),E):E}function Ts(E,P,B){let ce=Uc(i().parenthesizeLeftSideOfAccess(E,!0),P,cc(B));return ce.flags|=64,ce.transformFlags|=32,ce}function Hc(E,P,B,ce){return C.assert(!!(E.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),E.expression!==P||E.questionDotToken!==B||E.name!==ce?ar(Ts(P,B,ce),E):E}function ip(E,P,B){let ce=Z(212);return ce.expression=E,ce.questionDotToken=P,ce.argumentExpression=B,ce.transformFlags|=Ir(ce.expression)|Ir(ce.questionDotToken)|Ir(ce.argumentExpression),ce.jsDoc=void 0,ce.flowNode=void 0,ce}function Oc(E,P){let B=ip(i().parenthesizeLeftSideOfAccess(E,!1),void 0,Q0(P));return gN(E)&&(B.transformFlags|=384),B}function lm(E,P,B){return BV(E)?Pe(E,P,E.questionDotToken,B):E.expression!==P||E.argumentExpression!==B?ar(Oc(P,B),E):E}function md(E,P,B){let ce=ip(i().parenthesizeLeftSideOfAccess(E,!0),P,Q0(B));return ce.flags|=64,ce.transformFlags|=32,ce}function Pe(E,P,B,ce){return C.assert(!!(E.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),E.expression!==P||E.questionDotToken!==B||E.argumentExpression!==ce?ar(md(P,B,ce),E):E}function wt(E,P,B,ce){let $e=Z(213);return $e.expression=E,$e.questionDotToken=P,$e.typeArguments=B,$e.arguments=ce,$e.transformFlags|=Ir($e.expression)|Ir($e.questionDotToken)|Ja($e.typeArguments)|Ja($e.arguments),$e.typeArguments&&($e.transformFlags|=1),Od($e.expression)&&($e.transformFlags|=16384),$e}function qn(E,P,B){let ce=wt(i().parenthesizeLeftSideOfAccess(E,!1),void 0,Ua(P),i().parenthesizeExpressionsOfCommaDelimitedList(H(B)));return vN(ce.expression)&&(ce.transformFlags|=8388608),ce}function So(E,P,B,ce){return lS(E)?na(E,P,E.questionDotToken,B,ce):E.expression!==P||E.typeArguments!==B||E.arguments!==ce?ar(qn(P,B,ce),E):E}function Qo(E,P,B,ce){let $e=wt(i().parenthesizeLeftSideOfAccess(E,!0),P,Ua(B),i().parenthesizeExpressionsOfCommaDelimitedList(H(ce)));return $e.flags|=64,$e.transformFlags|=32,$e}function na(E,P,B,ce,$e){return C.assert(!!(E.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),E.expression!==P||E.questionDotToken!==B||E.typeArguments!==ce||E.arguments!==$e?ar(Qo(P,B,ce,$e),E):E}function $l(E,P,B){let ce=Z(214);return ce.expression=i().parenthesizeExpressionOfNew(E),ce.typeArguments=Ua(P),ce.arguments=B?i().parenthesizeExpressionsOfCommaDelimitedList(B):void 0,ce.transformFlags|=Ir(ce.expression)|Ja(ce.typeArguments)|Ja(ce.arguments)|32,ce.typeArguments&&(ce.transformFlags|=1),ce}function vc(E,P,B,ce){return E.expression!==P||E.typeArguments!==B||E.arguments!==ce?ar($l(P,B,ce),E):E}function cl(E,P,B){let ce=K(215);return ce.tag=i().parenthesizeLeftSideOfAccess(E,!1),ce.typeArguments=Ua(P),ce.template=B,ce.transformFlags|=Ir(ce.tag)|Ja(ce.typeArguments)|Ir(ce.template)|1024,ce.typeArguments&&(ce.transformFlags|=1),Qj(ce.template)&&(ce.transformFlags|=128),ce}function gl(E,P,B,ce){return E.tag!==P||E.typeArguments!==B||E.template!==ce?ar(cl(P,B,ce),E):E}function Bl(E,P){let B=K(216);return B.expression=i().parenthesizeOperandOfPrefixUnary(P),B.type=E,B.transformFlags|=Ir(B.expression)|Ir(B.type)|1,B}function Ql(E,P,B){return E.type!==P||E.expression!==B?ar(Bl(P,B),E):E}function qc(E){let P=K(217);return P.expression=E,P.transformFlags=Ir(P.expression),P.jsDoc=void 0,P}function cf(E,P){return E.expression!==P?ar(qc(P),E):E}function Bd(E,P,B,ce,$e,Jt,br){let ao=Z(218);ao.modifiers=Ua(E),ao.asteriskToken=P,ao.name=cc(B),ao.typeParameters=Ua(ce),ao.parameters=H($e),ao.type=Jt,ao.body=br;let Hs=N_(ao.modifiers)&1024,d_=!!ao.asteriskToken,Nb=Hs&&d_;return ao.transformFlags=Ja(ao.modifiers)|Ir(ao.asteriskToken)|Jy(ao.name)|Ja(ao.typeParameters)|Ja(ao.parameters)|Ir(ao.type)|Ir(ao.body)&-67108865|(Nb?128:Hs?256:d_?2048:0)|(ao.typeParameters||ao.type?1:0)|4194304,ao.typeArguments=void 0,ao.jsDoc=void 0,ao.locals=void 0,ao.nextContainer=void 0,ao.flowNode=void 0,ao.endFlowNode=void 0,ao.returnFlowNode=void 0,ao}function Dd(E,P,B,ce,$e,Jt,br,ao){return E.name!==ce||E.modifiers!==P||E.asteriskToken!==B||E.typeParameters!==$e||E.parameters!==Jt||E.type!==br||E.body!==ao?V(Bd(P,B,ce,$e,Jt,br,ao),E):E}function Lf(E,P,B,ce,$e,Jt){let br=Z(219);br.modifiers=Ua(E),br.typeParameters=Ua(P),br.parameters=H(B),br.type=ce,br.equalsGreaterThanToken=$e??Se(39),br.body=i().parenthesizeConciseBodyOfArrowFunction(Jt);let ao=N_(br.modifiers)&1024;return br.transformFlags=Ja(br.modifiers)|Ja(br.typeParameters)|Ja(br.parameters)|Ir(br.type)|Ir(br.equalsGreaterThanToken)|Ir(br.body)&-67108865|(br.typeParameters||br.type?1:0)|(ao?16640:0)|1024,br.typeArguments=void 0,br.jsDoc=void 0,br.locals=void 0,br.nextContainer=void 0,br.flowNode=void 0,br.endFlowNode=void 0,br.returnFlowNode=void 0,br}function j_(E,P,B,ce,$e,Jt,br){return E.modifiers!==P||E.typeParameters!==B||E.parameters!==ce||E.type!==$e||E.equalsGreaterThanToken!==Jt||E.body!==br?V(Lf(P,B,ce,$e,Jt,br),E):E}function Dh(E){let P=K(220);return P.expression=i().parenthesizeOperandOfPrefixUnary(E),P.transformFlags|=Ir(P.expression),P}function Xg(E,P){return E.expression!==P?ar(Dh(P),E):E}function zu(E){let P=K(221);return P.expression=i().parenthesizeOperandOfPrefixUnary(E),P.transformFlags|=Ir(P.expression),P}function Yg(E,P){return E.expression!==P?ar(zu(P),E):E}function Ap(E){let P=K(222);return P.expression=i().parenthesizeOperandOfPrefixUnary(E),P.transformFlags|=Ir(P.expression),P}function fg(E,P){return E.expression!==P?ar(Ap(P),E):E}function Gd(E){let P=K(223);return P.expression=i().parenthesizeOperandOfPrefixUnary(E),P.transformFlags|=Ir(P.expression)|256|128|2097152,P}function te(E,P){return E.expression!==P?ar(Gd(P),E):E}function lt(E,P){let B=K(224);return B.operator=E,B.operand=i().parenthesizeOperandOfPrefixUnary(P),B.transformFlags|=Ir(B.operand),(E===46||E===47)&&Ve(B.operand)&&!ol(B.operand)&&!Ug(B.operand)&&(B.transformFlags|=268435456),B}function Wt(E,P){return E.operand!==P?ar(lt(E.operator,P),E):E}function jt(E,P){let B=K(225);return B.operator=P,B.operand=i().parenthesizeOperandOfPostfixUnary(E),B.transformFlags|=Ir(B.operand),Ve(B.operand)&&!ol(B.operand)&&!Ug(B.operand)&&(B.transformFlags|=268435456),B}function W(E,P){return E.operand!==P?ar(jt(P,E.operator),E):E}function Ae(E,P,B){let ce=Z(226),$e=BP(P),Jt=$e.kind;return ce.left=i().parenthesizeLeftSideOfBinary(Jt,E),ce.operatorToken=$e,ce.right=i().parenthesizeRightSideOfBinary(Jt,ce.left,B),ce.transformFlags|=Ir(ce.left)|Ir(ce.operatorToken)|Ir(ce.right),Jt===61?ce.transformFlags|=32:Jt===64?wa(ce.left)?ce.transformFlags|=5248|st(ce.left):pd(ce.left)&&(ce.transformFlags|=5120|st(ce.left)):Jt===43||Jt===68?ce.transformFlags|=512:GC(Jt)&&(ce.transformFlags|=16),Jt===103&&Xi(ce.left)&&(ce.transformFlags|=536870912),ce.jsDoc=void 0,ce}function st(E){return tw(E)?65536:0}function Ht(E,P,B,ce){return E.left!==P||E.operatorToken!==B||E.right!==ce?ar(Ae(P,B,ce),E):E}function rr(E,P,B,ce,$e){let Jt=K(227);return Jt.condition=i().parenthesizeConditionOfConditionalExpression(E),Jt.questionToken=P??Se(58),Jt.whenTrue=i().parenthesizeBranchOfConditionalExpression(B),Jt.colonToken=ce??Se(59),Jt.whenFalse=i().parenthesizeBranchOfConditionalExpression($e),Jt.transformFlags|=Ir(Jt.condition)|Ir(Jt.questionToken)|Ir(Jt.whenTrue)|Ir(Jt.colonToken)|Ir(Jt.whenFalse),Jt}function si(E,P,B,ce,$e,Jt){return E.condition!==P||E.questionToken!==B||E.whenTrue!==ce||E.colonToken!==$e||E.whenFalse!==Jt?ar(rr(P,B,ce,$e,Jt),E):E}function $r(E,P){let B=K(228);return B.head=E,B.templateSpans=H(P),B.transformFlags|=Ir(B.head)|Ja(B.templateSpans)|1024,B}function so(E,P,B){return E.head!==P||E.templateSpans!==B?ar($r(P,B),E):E}function Oa(E,P,B,ce=0){C.assert(!(ce&-7177),"Unsupported template flags.");let $e;if(B!==void 0&&B!==P&&($e=Oze(E,B),typeof $e=="object"))return C.fail("Invalid raw text");if(P===void 0){if($e===void 0)return C.fail("Arguments 'text' and 'rawText' may not both be undefined.");P=$e}else $e!==void 0&&C.assert(P===$e,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return P}function Fa(E){let P=1024;return E&&(P|=128),P}function wl(E,P,B,ce){let $e=At(E);return $e.text=P,$e.rawText=B,$e.templateFlags=ce&7176,$e.transformFlags=Fa($e.templateFlags),$e}function fu(E,P,B,ce){let $e=Z(E);return $e.text=P,$e.rawText=B,$e.templateFlags=ce&7176,$e.transformFlags=Fa($e.templateFlags),$e}function xc(E,P,B,ce){return E===15?fu(E,P,B,ce):wl(E,P,B,ce)}function Ip(E,P,B){return E=Oa(16,E,P,B),xc(16,E,P,B)}function Vd(E,P,B){return E=Oa(16,E,P,B),xc(17,E,P,B)}function cb(E,P,B){return E=Oa(16,E,P,B),xc(18,E,P,B)}function ps(E,P,B){return E=Oa(16,E,P,B),fu(15,E,P,B)}function Lm(E,P){C.assert(!E||!!P,"A `YieldExpression` with an asteriskToken must have an expression.");let B=K(229);return B.expression=P&&i().parenthesizeExpressionForDisallowedComma(P),B.asteriskToken=E,B.transformFlags|=Ir(B.expression)|Ir(B.asteriskToken)|1024|128|1048576,B}function km(E,P,B){return E.expression!==B||E.asteriskToken!==P?ar(Lm(P,B),E):E}function Ji(E){let P=K(230);return P.expression=i().parenthesizeExpressionForDisallowedComma(E),P.transformFlags|=Ir(P.expression)|1024|32768,P}function $g(E,P){return E.expression!==P?ar(Ji(P),E):E}function ry(E,P,B,ce,$e){let Jt=Z(231);return Jt.modifiers=Ua(E),Jt.name=cc(P),Jt.typeParameters=Ua(B),Jt.heritageClauses=Ua(ce),Jt.members=H($e),Jt.transformFlags|=Ja(Jt.modifiers)|Jy(Jt.name)|Ja(Jt.typeParameters)|Ja(Jt.heritageClauses)|Ja(Jt.members)|(Jt.typeParameters?1:0)|1024,Jt.jsDoc=void 0,Jt}function wm(E,P,B,ce,$e,Jt){return E.modifiers!==P||E.name!==B||E.typeParameters!==ce||E.heritageClauses!==$e||E.members!==Jt?ar(ry(P,B,ce,$e,Jt),E):E}function mE(){return K(232)}function _E(E,P){let B=K(233);return B.expression=i().parenthesizeLeftSideOfAccess(E,!1),B.typeArguments=P&&i().parenthesizeTypeArguments(P),B.transformFlags|=Ir(B.expression)|Ja(B.typeArguments)|1024,B}function uf(E,P,B){return E.expression!==P||E.typeArguments!==B?ar(_E(P,B),E):E}function U_(E,P){let B=K(234);return B.expression=E,B.type=P,B.transformFlags|=Ir(B.expression)|Ir(B.type)|1,B}function df(E,P,B){return E.expression!==P||E.type!==B?ar(U_(P,B),E):E}function Qg(E){let P=K(235);return P.expression=i().parenthesizeLeftSideOfAccess(E,!1),P.transformFlags|=Ir(P.expression)|1,P}function ze(E,P){return E6(E)?gn(E,P):E.expression!==P?ar(Qg(P),E):E}function Ze(E,P){let B=K(238);return B.expression=E,B.type=P,B.transformFlags|=Ir(B.expression)|Ir(B.type)|1,B}function kt(E,P,B){return E.expression!==P||E.type!==B?ar(Ze(P,B),E):E}function Ut(E){let P=K(235);return P.flags|=64,P.expression=i().parenthesizeLeftSideOfAccess(E,!0),P.transformFlags|=Ir(P.expression)|1,P}function gn(E,P){return C.assert(!!(E.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),E.expression!==P?ar(Ut(P),E):E}function Yn(E,P){let B=K(236);switch(B.keywordToken=E,B.name=P,B.transformFlags|=Ir(B.name),E){case 105:B.transformFlags|=1024;break;case 102:B.transformFlags|=32;break;default:return C.assertNever(E)}return B.flowNode=void 0,B}function hn(E,P){return E.name!==P?ar(Yn(E.keywordToken,P),E):E}function $n(E,P){let B=K(239);return B.expression=E,B.literal=P,B.transformFlags|=Ir(B.expression)|Ir(B.literal)|1024,B}function hi(E,P,B){return E.expression!==P||E.literal!==B?ar($n(P,B),E):E}function ur(){let E=K(240);return E.transformFlags|=1024,E}function oi(E,P){let B=K(241);return B.statements=H(E),B.multiLine=P,B.transformFlags|=Ja(B.statements),B.jsDoc=void 0,B.locals=void 0,B.nextContainer=void 0,B}function mr(E,P){return E.statements!==P?ar(oi(P,E.multiLine),E):E}function Zo(E,P){let B=K(243);return B.modifiers=Ua(E),B.declarationList=Do(P)?op(P):P,B.transformFlags|=Ja(B.modifiers)|Ir(B.declarationList),N_(B.modifiers)&128&&(B.transformFlags=1),B.jsDoc=void 0,B.flowNode=void 0,B}function Ka(E,P,B){return E.modifiers!==P||E.declarationList!==B?ar(Zo(P,B),E):E}function Qu(){let E=K(242);return E.jsDoc=void 0,E}function mu(E){let P=K(244);return P.expression=i().parenthesizeExpressionOfExpressionStatement(E),P.transformFlags|=Ir(P.expression),P.jsDoc=void 0,P.flowNode=void 0,P}function Zg(E,P){return E.expression!==P?ar(mu(P),E):E}function w0(E,P,B){let ce=K(245);return ce.expression=E,ce.thenStatement=Cb(P),ce.elseStatement=Cb(B),ce.transformFlags|=Ir(ce.expression)|Ir(ce.thenStatement)|Ir(ce.elseStatement),ce.jsDoc=void 0,ce.flowNode=void 0,ce}function VI(E,P,B,ce){return E.expression!==P||E.thenStatement!==B||E.elseStatement!==ce?ar(w0(P,B,ce),E):E}function O0(E,P){let B=K(246);return B.statement=Cb(E),B.expression=P,B.transformFlags|=Ir(B.statement)|Ir(B.expression),B.jsDoc=void 0,B.flowNode=void 0,B}function j2(E,P,B){return E.statement!==P||E.expression!==B?ar(O0(P,B),E):E}function U2(E,P){let B=K(247);return B.expression=E,B.statement=Cb(P),B.transformFlags|=Ir(B.expression)|Ir(B.statement),B.jsDoc=void 0,B.flowNode=void 0,B}function H2(E,P,B){return E.expression!==P||E.statement!==B?ar(U2(P,B),E):E}function lT(E,P,B,ce){let $e=K(248);return $e.initializer=E,$e.condition=P,$e.incrementor=B,$e.statement=Cb(ce),$e.transformFlags|=Ir($e.initializer)|Ir($e.condition)|Ir($e.incrementor)|Ir($e.statement),$e.jsDoc=void 0,$e.locals=void 0,$e.nextContainer=void 0,$e.flowNode=void 0,$e}function hE(E,P,B,ce,$e){return E.initializer!==P||E.condition!==B||E.incrementor!==ce||E.statement!==$e?ar(lT(P,B,ce,$e),E):E}function jI(E,P,B){let ce=K(249);return ce.initializer=E,ce.expression=P,ce.statement=Cb(B),ce.transformFlags|=Ir(ce.initializer)|Ir(ce.expression)|Ir(ce.statement),ce.jsDoc=void 0,ce.locals=void 0,ce.nextContainer=void 0,ce.flowNode=void 0,ce}function q2(E,P,B,ce){return E.initializer!==P||E.expression!==B||E.statement!==ce?ar(jI(P,B,ce),E):E}function UI(E,P,B,ce){let $e=K(250);return $e.awaitModifier=E,$e.initializer=P,$e.expression=i().parenthesizeExpressionForDisallowedComma(B),$e.statement=Cb(ce),$e.transformFlags|=Ir($e.awaitModifier)|Ir($e.initializer)|Ir($e.expression)|Ir($e.statement)|1024,E&&($e.transformFlags|=128),$e.jsDoc=void 0,$e.locals=void 0,$e.nextContainer=void 0,$e.flowNode=void 0,$e}function HI(E,P,B,ce,$e){return E.awaitModifier!==P||E.initializer!==B||E.expression!==ce||E.statement!==$e?ar(UI(P,B,ce,$e),E):E}function qI(E){let P=K(251);return P.label=cc(E),P.transformFlags|=Ir(P.label)|4194304,P.jsDoc=void 0,P.flowNode=void 0,P}function JI(E,P){return E.label!==P?ar(qI(P),E):E}function cT(E){let P=K(252);return P.label=cc(E),P.transformFlags|=Ir(P.label)|4194304,P.jsDoc=void 0,P.flowNode=void 0,P}function KI(E,P){return E.label!==P?ar(cT(P),E):E}function gE(E){let P=K(253);return P.expression=E,P.transformFlags|=Ir(P.expression)|128|4194304,P.jsDoc=void 0,P.flowNode=void 0,P}function vE(E,P){return E.expression!==P?ar(gE(P),E):E}function ub(E,P){let B=K(254);return B.expression=E,B.statement=Cb(P),B.transformFlags|=Ir(B.expression)|Ir(B.statement),B.jsDoc=void 0,B.flowNode=void 0,B}function db(E,P,B){return E.expression!==P||E.statement!==B?ar(ub(P,B),E):E}function mg(E,P){let B=K(255);return B.expression=i().parenthesizeExpressionForDisallowedComma(E),B.caseBlock=P,B.transformFlags|=Ir(B.expression)|Ir(B.caseBlock),B.jsDoc=void 0,B.flowNode=void 0,B.possiblyExhaustive=!1,B}function F0(E,P,B){return E.expression!==P||E.caseBlock!==B?ar(mg(P,B),E):E}function ns(E,P){let B=K(256);return B.label=cc(E),B.statement=Cb(P),B.transformFlags|=Ir(B.label)|Ir(B.statement),B.jsDoc=void 0,B.flowNode=void 0,B}function uT(E,P,B){return E.label!==P||E.statement!==B?ar(ns(P,B),E):E}function J2(E){let P=K(257);return P.expression=E,P.transformFlags|=Ir(P.expression),P.jsDoc=void 0,P.flowNode=void 0,P}function W0(E,P){return E.expression!==P?ar(J2(P),E):E}function ev(E,P,B){let ce=K(258);return ce.tryBlock=E,ce.catchClause=P,ce.finallyBlock=B,ce.transformFlags|=Ir(ce.tryBlock)|Ir(ce.catchClause)|Ir(ce.finallyBlock),ce.jsDoc=void 0,ce.flowNode=void 0,ce}function Ch(E,P,B,ce){return E.tryBlock!==P||E.catchClause!==B||E.finallyBlock!==ce?ar(ev(P,B,ce),E):E}function kf(){let E=K(259);return E.jsDoc=void 0,E.flowNode=void 0,E}function jd(E,P,B,ce){let $e=Z(260);return $e.name=cc(E),$e.exclamationToken=P,$e.type=B,$e.initializer=ux(ce),$e.transformFlags|=Jy($e.name)|Ir($e.initializer)|($e.exclamationToken??$e.type?1:0),$e.jsDoc=void 0,$e}function xp(E,P,B,ce,$e){return E.name!==P||E.type!==ce||E.exclamationToken!==B||E.initializer!==$e?ar(jd(P,B,ce,$e),E):E}function op(E,P=0){let B=K(261);return B.flags|=P&7,B.declarations=H(E),B.transformFlags|=Ja(B.declarations)|4194304,P&7&&(B.transformFlags|=263168),P&4&&(B.transformFlags|=4),B}function iy(E,P){return E.declarations!==P?ar(op(P,E.flags),E):E}function dT(E,P,B,ce,$e,Jt,br){let ao=Z(262);if(ao.modifiers=Ua(E),ao.asteriskToken=P,ao.name=cc(B),ao.typeParameters=Ua(ce),ao.parameters=H($e),ao.type=Jt,ao.body=br,!ao.body||N_(ao.modifiers)&128)ao.transformFlags=1;else{let Hs=N_(ao.modifiers)&1024,d_=!!ao.asteriskToken,Nb=Hs&&d_;ao.transformFlags=Ja(ao.modifiers)|Ir(ao.asteriskToken)|Jy(ao.name)|Ja(ao.typeParameters)|Ja(ao.parameters)|Ir(ao.type)|Ir(ao.body)&-67108865|(Nb?128:Hs?256:d_?2048:0)|(ao.typeParameters||ao.type?1:0)|4194304}return ao.typeArguments=void 0,ao.jsDoc=void 0,ao.locals=void 0,ao.nextContainer=void 0,ao.endFlowNode=void 0,ao.returnFlowNode=void 0,ao}function K2(E,P,B,ce,$e,Jt,br,ao){return E.modifiers!==P||E.asteriskToken!==B||E.name!==ce||E.typeParameters!==$e||E.parameters!==Jt||E.type!==br||E.body!==ao?XI(dT(P,B,ce,$e,Jt,br,ao),E):E}function XI(E,P){return E!==P&&E.modifiers===P.modifiers&&(E.modifiers=P.modifiers),V(E,P)}function pb(E,P,B,ce,$e){let Jt=Z(263);return Jt.modifiers=Ua(E),Jt.name=cc(P),Jt.typeParameters=Ua(B),Jt.heritageClauses=Ua(ce),Jt.members=H($e),N_(Jt.modifiers)&128?Jt.transformFlags=1:(Jt.transformFlags|=Ja(Jt.modifiers)|Jy(Jt.name)|Ja(Jt.typeParameters)|Ja(Jt.heritageClauses)|Ja(Jt.members)|(Jt.typeParameters?1:0)|1024,Jt.transformFlags&8192&&(Jt.transformFlags|=1)),Jt.jsDoc=void 0,Jt}function z0(E,P,B,ce,$e,Jt){return E.modifiers!==P||E.name!==B||E.typeParameters!==ce||E.heritageClauses!==$e||E.members!==Jt?ar(pb(P,B,ce,$e,Jt),E):E}function YI(E,P,B,ce,$e){let Jt=Z(264);return Jt.modifiers=Ua(E),Jt.name=cc(P),Jt.typeParameters=Ua(B),Jt.heritageClauses=Ua(ce),Jt.members=H($e),Jt.transformFlags=1,Jt.jsDoc=void 0,Jt}function yc(E,P,B,ce,$e,Jt){return E.modifiers!==P||E.name!==B||E.typeParameters!==ce||E.heritageClauses!==$e||E.members!==Jt?ar(YI(P,B,ce,$e,Jt),E):E}function oy(E,P,B,ce){let $e=Z(265);return $e.modifiers=Ua(E),$e.name=cc(P),$e.typeParameters=Ua(B),$e.type=ce,$e.transformFlags=1,$e.jsDoc=void 0,$e.locals=void 0,$e.nextContainer=void 0,$e}function $I(E,P,B,ce,$e){return E.modifiers!==P||E.name!==B||E.typeParameters!==ce||E.type!==$e?ar(oy(P,B,ce,$e),E):E}function o_(E,P,B){let ce=Z(266);return ce.modifiers=Ua(E),ce.name=cc(P),ce.members=H(B),ce.transformFlags|=Ja(ce.modifiers)|Ir(ce.name)|Ja(ce.members)|1,ce.transformFlags&=-67108865,ce.jsDoc=void 0,ce}function pT(E,P,B,ce){return E.modifiers!==P||E.name!==B||E.members!==ce?ar(o_(P,B,ce),E):E}function qe(E,P,B,ce=0){let $e=Z(267);return $e.modifiers=Ua(E),$e.flags|=ce&2088,$e.name=P,$e.body=B,N_($e.modifiers)&128?$e.transformFlags=1:$e.transformFlags|=Ja($e.modifiers)|Ir($e.name)|Ir($e.body)|1,$e.transformFlags&=-67108865,$e.jsDoc=void 0,$e.locals=void 0,$e.nextContainer=void 0,$e}function a_(E,P,B,ce){return E.modifiers!==P||E.name!==B||E.body!==ce?ar(qe(P,B,ce,E.flags),E):E}function _u(E){let P=K(268);return P.statements=H(E),P.transformFlags|=Ja(P.statements),P.jsDoc=void 0,P}function B0(E,P){return E.statements!==P?ar(_u(P),E):E}function QI(E){let P=K(269);return P.clauses=H(E),P.transformFlags|=Ja(P.clauses),P.locals=void 0,P.nextContainer=void 0,P}function fb(E,P){return E.clauses!==P?ar(QI(P),E):E}function ay(E){let P=Z(270);return P.name=cc(E),P.transformFlags|=Dk(P.name)|1,P.modifiers=void 0,P.jsDoc=void 0,P}function sy(E,P){return E.name!==P?MP(ay(P),E):E}function MP(E,P){return E!==P&&(E.modifiers=P.modifiers),ar(E,P)}function Xa(E,P,B,ce){let $e=Z(271);return $e.modifiers=Ua(E),$e.name=cc(B),$e.isTypeOnly=P,$e.moduleReference=ce,$e.transformFlags|=Ja($e.modifiers)|Dk($e.name)|Ir($e.moduleReference),Th($e.moduleReference)||($e.transformFlags|=1),$e.transformFlags&=-67108865,$e.jsDoc=void 0,$e}function s_(E,P,B,ce,$e){return E.modifiers!==P||E.isTypeOnly!==B||E.name!==ce||E.moduleReference!==$e?ar(Xa(P,B,ce,$e),E):E}function fT(E,P,B,ce){let $e=K(272);return $e.modifiers=Ua(E),$e.importClause=P,$e.moduleSpecifier=B,$e.attributes=$e.assertClause=ce,$e.transformFlags|=Ir($e.importClause)|Ir($e.moduleSpecifier),$e.transformFlags&=-67108865,$e.jsDoc=void 0,$e}function mT(E,P,B,ce,$e){return E.modifiers!==P||E.importClause!==B||E.moduleSpecifier!==ce||E.attributes!==$e?ar(fT(P,B,ce,$e),E):E}function G0(E,P,B){let ce=Z(273);return ce.isTypeOnly=E,ce.name=P,ce.namedBindings=B,ce.transformFlags|=Ir(ce.name)|Ir(ce.namedBindings),E&&(ce.transformFlags|=1),ce.transformFlags&=-67108865,ce}function _T(E,P,B,ce){return E.isTypeOnly!==P||E.name!==B||E.namedBindings!==ce?ar(G0(P,B,ce),E):E}function cm(E,P){let B=K(300);return B.elements=H(E),B.multiLine=P,B.token=132,B.transformFlags|=4,B}function um(E,P,B){return E.elements!==P||E.multiLine!==B?ar(cm(P,B),E):E}function tv(E,P){let B=K(301);return B.name=E,B.value=P,B.transformFlags|=4,B}function ZI(E,P,B){return E.name!==P||E.value!==B?ar(tv(P,B),E):E}function l_(E,P){let B=K(302);return B.assertClause=E,B.multiLine=P,B}function X2(E,P,B){return E.assertClause!==P||E.multiLine!==B?ar(l_(P,B),E):E}function yE(E,P,B){let ce=K(300);return ce.token=B??118,ce.elements=H(E),ce.multiLine=P,ce.transformFlags|=4,ce}function $i(E,P,B){return E.elements!==P||E.multiLine!==B?ar(yE(P,B,E.token),E):E}function ti(E,P){let B=K(301);return B.name=E,B.value=P,B.transformFlags|=4,B}function Nh(E,P,B){return E.name!==P||E.value!==B?ar(ti(P,B),E):E}function Ud(E){let P=Z(274);return P.name=E,P.transformFlags|=Ir(P.name),P.transformFlags&=-67108865,P}function LP(E,P){return E.name!==P?ar(Ud(P),E):E}function nv(E){let P=Z(280);return P.name=E,P.transformFlags|=Ir(P.name)|32,P.transformFlags&=-67108865,P}function kP(E,P){return E.name!==P?ar(nv(P),E):E}function mb(E){let P=K(275);return P.elements=H(E),P.transformFlags|=Ja(P.elements),P.transformFlags&=-67108865,P}function vl(E,P){return E.elements!==P?ar(mb(P),E):E}function Vp(E,P,B){let ce=Z(276);return ce.isTypeOnly=E,ce.propertyName=P,ce.name=B,ce.transformFlags|=Ir(ce.propertyName)|Ir(ce.name),ce.transformFlags&=-67108865,ce}function _g(E,P,B,ce){return E.isTypeOnly!==P||E.propertyName!==B||E.name!==ce?ar(Vp(P,B,ce),E):E}function dm(E,P,B){let ce=Z(277);return ce.modifiers=Ua(E),ce.isExportEquals=P,ce.expression=P?i().parenthesizeRightSideOfBinary(64,void 0,B):i().parenthesizeExpressionOfExportDefault(B),ce.transformFlags|=Ja(ce.modifiers)|Ir(ce.expression),ce.transformFlags&=-67108865,ce.jsDoc=void 0,ce}function _b(E,P,B){return E.modifiers!==P||E.expression!==B?ar(dm(P,E.isExportEquals,B),E):E}function Om(E,P,B,ce,$e){let Jt=Z(278);return Jt.modifiers=Ua(E),Jt.isTypeOnly=P,Jt.exportClause=B,Jt.moduleSpecifier=ce,Jt.attributes=Jt.assertClause=$e,Jt.transformFlags|=Ja(Jt.modifiers)|Ir(Jt.exportClause)|Ir(Jt.moduleSpecifier),Jt.transformFlags&=-67108865,Jt.jsDoc=void 0,Jt}function rv(E,P,B,ce,$e,Jt){return E.modifiers!==P||E.isTypeOnly!==B||E.exportClause!==ce||E.moduleSpecifier!==$e||E.attributes!==Jt?bE(Om(P,B,ce,$e,Jt),E):E}function bE(E,P){return E!==P&&E.modifiers===P.modifiers&&(E.modifiers=P.modifiers),ar(E,P)}function hT(E){let P=K(279);return P.elements=H(E),P.transformFlags|=Ja(P.elements),P.transformFlags&=-67108865,P}function hg(E,P){return E.elements!==P?ar(hT(P),E):E}function ex(E,P,B){let ce=K(281);return ce.isTypeOnly=E,ce.propertyName=cc(P),ce.name=cc(B),ce.transformFlags|=Ir(ce.propertyName)|Ir(ce.name),ce.transformFlags&=-67108865,ce.jsDoc=void 0,ce}function gg(E,P,B,ce){return E.isTypeOnly!==P||E.propertyName!==B||E.name!==ce?ar(ex(P,B,ce),E):E}function H_(){let E=Z(282);return E.jsDoc=void 0,E}function ly(E){let P=K(283);return P.expression=E,P.transformFlags|=Ir(P.expression),P.transformFlags&=-67108865,P}function Y2(E,P){return E.expression!==P?ar(ly(P),E):E}function $2(E){return K(E)}function Q2(E,P,B=!1){let ce=gT(E,B?P&&i().parenthesizeNonArrayTypeOfPostfixType(P):P);return ce.postfix=B,ce}function gT(E,P){let B=K(E);return B.type=P,B}function $s(E,P,B){return P.type!==B?ar(Q2(E,B,P.postfix),P):P}function EE(E,P,B){return P.type!==B?ar(gT(E,B),P):P}function vT(E,P){let B=Z(324);return B.parameters=Ua(E),B.type=P,B.transformFlags=Ja(B.parameters)|(B.type?1:0),B.jsDoc=void 0,B.locals=void 0,B.nextContainer=void 0,B.typeArguments=void 0,B}function Fm(E,P,B){return E.parameters!==P||E.type!==B?ar(vT(P,B),E):E}function hb(E,P=!1){let B=Z(329);return B.jsDocPropertyTags=Ua(E),B.isArrayType=P,B}function Z2(E,P,B){return E.jsDocPropertyTags!==P||E.isArrayType!==B?ar(hb(P,B),E):E}function yT(E){let P=K(316);return P.type=E,P}function wP(E,P){return E.type!==P?ar(yT(P),E):E}function vr(E,P,B){let ce=Z(330);return ce.typeParameters=Ua(E),ce.parameters=H(P),ce.type=B,ce.jsDoc=void 0,ce.locals=void 0,ce.nextContainer=void 0,ce}function ru(E,P,B,ce){return E.typeParameters!==P||E.parameters!==B||E.type!==ce?ar(vr(P,B,ce),E):E}function io(E){let P=tH(E.kind);return E.tagName.escapedText===ml(P)?E.tagName:Ne(P)}function pf(E,P,B){let ce=K(E);return ce.tagName=P,ce.comment=B,ce}function cy(E,P,B){let ce=Z(E);return ce.tagName=P,ce.comment=B,ce}function q_(E,P,B,ce){let $e=pf(352,E??Ne("template"),ce);return $e.constraint=P,$e.typeParameters=H(B),$e}function dr(E,P=io(E),B,ce,$e){return E.tagName!==P||E.constraint!==B||E.typeParameters!==ce||E.comment!==$e?ar(q_(P,B,ce,$e),E):E}function bT(E,P,B,ce){let $e=cy(353,E??Ne("typedef"),ce);return $e.typeExpression=P,$e.fullName=B,$e.name=BH(B),$e.locals=void 0,$e.nextContainer=void 0,$e}function V0(E,P=io(E),B,ce,$e){return E.tagName!==P||E.typeExpression!==B||E.fullName!==ce||E.comment!==$e?ar(bT(P,B,ce,$e),E):E}function Jc(E,P,B,ce,$e,Jt){let br=cy(348,E??Ne("param"),Jt);return br.typeExpression=ce,br.name=P,br.isNameFirst=!!$e,br.isBracketed=B,br}function Ph(E,P=io(E),B,ce,$e,Jt,br){return E.tagName!==P||E.name!==B||E.isBracketed!==ce||E.typeExpression!==$e||E.isNameFirst!==Jt||E.comment!==br?ar(Jc(P,B,ce,$e,Jt,br),E):E}function Wm(E,P,B,ce,$e,Jt){let br=cy(355,E??Ne("prop"),Jt);return br.typeExpression=ce,br.name=P,br.isNameFirst=!!$e,br.isBracketed=B,br}function SE(E,P=io(E),B,ce,$e,Jt,br){return E.tagName!==P||E.name!==B||E.isBracketed!==ce||E.typeExpression!==$e||E.isNameFirst!==Jt||E.comment!==br?ar(Wm(P,B,ce,$e,Jt,br),E):E}function TE(E,P,B,ce){let $e=cy(345,E??Ne("callback"),ce);return $e.typeExpression=P,$e.fullName=B,$e.name=BH(B),$e.locals=void 0,$e.nextContainer=void 0,$e}function gb(E,P=io(E),B,ce,$e){return E.tagName!==P||E.typeExpression!==B||E.fullName!==ce||E.comment!==$e?ar(TE(P,B,ce,$e),E):E}function iv(E,P,B){let ce=pf(346,E??Ne("overload"),B);return ce.typeExpression=P,ce}function ET(E,P=io(E),B,ce){return E.tagName!==P||E.typeExpression!==B||E.comment!==ce?ar(iv(P,B,ce),E):E}function zm(E,P,B){let ce=pf(335,E??Ne("augments"),B);return ce.class=P,ce}function j0(E,P=io(E),B,ce){return E.tagName!==P||E.class!==B||E.comment!==ce?ar(zm(P,B,ce),E):E}function vg(E,P,B){let ce=pf(336,E??Ne("implements"),B);return ce.class=P,ce}function vb(E,P,B){let ce=pf(354,E??Ne("see"),B);return ce.name=P,ce}function tx(E,P,B,ce){return E.tagName!==P||E.name!==B||E.comment!==ce?ar(vb(P,B,ce),E):E}function U0(E){let P=K(317);return P.name=E,P}function eD(E,P){return E.name!==P?ar(U0(P),E):E}function AE(E,P){let B=K(318);return B.left=E,B.right=P,B.transformFlags|=Ir(B.left)|Ir(B.right),B}function ST(E,P,B){return E.left!==P||E.right!==B?ar(AE(P,B),E):E}function jp(E,P){let B=K(331);return B.name=E,B.text=P,B}function TT(E,P,B){return E.name!==P?ar(jp(P,B),E):E}function Gl(E,P){let B=K(332);return B.name=E,B.text=P,B}function Fc(E,P,B){return E.name!==P?ar(Gl(P,B),E):E}function AT(E,P){let B=K(333);return B.name=E,B.text=P,B}function Au(E,P,B){return E.name!==P?ar(AT(P,B),E):E}function ap(E,P=io(E),B,ce){return E.tagName!==P||E.class!==B||E.comment!==ce?ar(vg(P,B,ce),E):E}function H0(E,P,B){return pf(E,P??Ne(tH(E)),B)}function wf(E,P,B=io(P),ce){return P.tagName!==B||P.comment!==ce?ar(H0(E,B,ce),P):P}function yb(E,P,B,ce){let $e=pf(E,P??Ne(tH(E)),ce);return $e.typeExpression=B,$e}function bb(E,P,B=io(P),ce,$e){return P.tagName!==B||P.typeExpression!==ce||P.comment!==$e?ar(yb(E,B,ce,$e),P):P}function iu(E,P){return pf(334,E,P)}function nx(E,P,B){return E.tagName!==P||E.comment!==B?ar(iu(P,B),E):E}function Up(E,P,B){let ce=cy(347,E??Ne(tH(347)),B);return ce.typeExpression=P,ce.locals=void 0,ce.nextContainer=void 0,ce}function IT(E,P=io(E),B,ce){return E.tagName!==P||E.typeExpression!==B||E.comment!==ce?ar(Up(P,B,ce),E):E}function xT(E){let P=K(328);return P.text=E,P}function Us(E,P){return E.text!==P?ar(xT(P),E):E}function tD(E,P){let B=K(327);return B.comment=E,B.tags=Ua(P),B}function q0(E,P,B){return E.comment!==P||E.tags!==B?ar(tD(P,B),E):E}function IE(E,P,B){let ce=K(284);return ce.openingElement=E,ce.children=H(P),ce.closingElement=B,ce.transformFlags|=Ir(ce.openingElement)|Ja(ce.children)|Ir(ce.closingElement)|2,ce}function OP(E,P,B,ce){return E.openingElement!==P||E.children!==B||E.closingElement!==ce?ar(IE(P,B,ce),E):E}function _d(E,P,B){let ce=K(285);return ce.tagName=E,ce.typeArguments=Ua(P),ce.attributes=B,ce.transformFlags|=Ir(ce.tagName)|Ja(ce.typeArguments)|Ir(ce.attributes)|2,ce.typeArguments&&(ce.transformFlags|=1),ce}function ov(E,P,B,ce){return E.tagName!==P||E.typeArguments!==B||E.attributes!==ce?ar(_d(P,B,ce),E):E}function J_(E,P,B){let ce=K(286);return ce.tagName=E,ce.typeArguments=Ua(P),ce.attributes=B,ce.transformFlags|=Ir(ce.tagName)|Ja(ce.typeArguments)|Ir(ce.attributes)|2,P&&(ce.transformFlags|=1),ce}function rx(E,P,B,ce){return E.tagName!==P||E.typeArguments!==B||E.attributes!==ce?ar(J_(P,B,ce),E):E}function Rp(E){let P=K(287);return P.tagName=E,P.transformFlags|=Ir(P.tagName)|2,P}function ix(E,P){return E.tagName!==P?ar(Rp(P),E):E}function sp(E,P,B){let ce=K(288);return ce.openingFragment=E,ce.children=H(P),ce.closingFragment=B,ce.transformFlags|=Ir(ce.openingFragment)|Ja(ce.children)|Ir(ce.closingFragment)|2,ce}function ox(E,P,B,ce){return E.openingFragment!==P||E.children!==B||E.closingFragment!==ce?ar(sp(P,B,ce),E):E}function uy(E,P){let B=K(12);return B.text=E,B.containsOnlyTriviaWhiteSpaces=!!P,B.transformFlags|=2,B}function RT(E,P,B){return E.text!==P||E.containsOnlyTriviaWhiteSpaces!==B?ar(uy(P,B),E):E}function nD(){let E=K(289);return E.transformFlags|=2,E}function rD(){let E=K(290);return E.transformFlags|=2,E}function DT(E,P){let B=Z(291);return B.name=E,B.initializer=P,B.transformFlags|=Ir(B.name)|Ir(B.initializer)|2,B}function iD(E,P,B){return E.name!==P||E.initializer!==B?ar(DT(P,B),E):E}function Eb(E){let P=Z(292);return P.properties=H(E),P.transformFlags|=Ja(P.properties)|2,P}function Dp(E,P){return E.properties!==P?ar(Eb(P),E):E}function Mh(E){let P=K(293);return P.expression=E,P.transformFlags|=Ir(P.expression)|2,P}function oD(E,P){return E.expression!==P?ar(Mh(P),E):E}function CT(E,P){let B=K(294);return B.dotDotDotToken=E,B.expression=P,B.transformFlags|=Ir(B.dotDotDotToken)|Ir(B.expression)|2,B}function is(E,P){return E.expression!==P?ar(CT(E.dotDotDotToken,P),E):E}function Rr(E,P){let B=K(295);return B.namespace=E,B.name=P,B.transformFlags|=Ir(B.namespace)|Ir(B.name)|2,B}function ff(E,P,B){return E.namespace!==P||E.name!==B?ar(Rr(P,B),E):E}function Cd(E,P){let B=K(296);return B.expression=i().parenthesizeExpressionForDisallowedComma(E),B.statements=H(P),B.transformFlags|=Ir(B.expression)|Ja(B.statements),B.jsDoc=void 0,B}function xE(E,P,B){return E.expression!==P||E.statements!==B?ar(Cd(P,B),E):E}function aD(E){let P=K(297);return P.statements=H(E),P.transformFlags=Ja(P.statements),P}function J0(E,P){return E.statements!==P?ar(aD(P),E):E}function RE(E,P){let B=K(298);switch(B.token=E,B.types=H(P),B.transformFlags|=Ja(B.types),E){case 96:B.transformFlags|=1024;break;case 119:B.transformFlags|=1;break;default:return C.assertNever(E)}return B}function NT(E,P){return E.types!==P?ar(RE(E.token,P),E):E}function yg(E,P){let B=K(299);return B.variableDeclaration=GP(E),B.block=P,B.transformFlags|=Ir(B.variableDeclaration)|Ir(B.block)|(E?0:64),B.locals=void 0,B.nextContainer=void 0,B}function c_(E,P,B){return E.variableDeclaration!==P||E.block!==B?ar(yg(P,B),E):E}function mf(E,P){let B=Z(303);return B.name=cc(E),B.initializer=i().parenthesizeExpressionForDisallowedComma(P),B.transformFlags|=Jy(B.name)|Ir(B.initializer),B.modifiers=void 0,B.questionToken=void 0,B.exclamationToken=void 0,B.jsDoc=void 0,B}function Bm(E,P,B){return E.name!==P||E.initializer!==B?av(mf(P,B),E):E}function av(E,P){return E!==P&&(E.modifiers=P.modifiers,E.questionToken=P.questionToken,E.exclamationToken=P.exclamationToken),ar(E,P)}function bg(E,P){let B=Z(304);return B.name=cc(E),B.objectAssignmentInitializer=P&&i().parenthesizeExpressionForDisallowedComma(P),B.transformFlags|=Dk(B.name)|Ir(B.objectAssignmentInitializer)|1024,B.equalsToken=void 0,B.modifiers=void 0,B.questionToken=void 0,B.exclamationToken=void 0,B.jsDoc=void 0,B}function Eg(E,P,B){return E.name!==P||E.objectAssignmentInitializer!==B?ax(bg(P,B),E):E}function ax(E,P){return E!==P&&(E.modifiers=P.modifiers,E.questionToken=P.questionToken,E.exclamationToken=P.exclamationToken,E.equalsToken=P.equalsToken),ar(E,P)}function lc(E){let P=Z(305);return P.expression=i().parenthesizeExpressionForDisallowedComma(E),P.transformFlags|=Ir(P.expression)|128|65536,P.jsDoc=void 0,P}function sD(E,P){return E.expression!==P?ar(lc(P),E):E}function Of(E,P){let B=Z(306);return B.name=cc(E),B.initializer=P&&i().parenthesizeExpressionForDisallowedComma(P),B.transformFlags|=Ir(B.name)|Ir(B.initializer)|1,B.jsDoc=void 0,B}function Lh(E,P,B){return E.name!==P||E.initializer!==B?ar(Of(P,B),E):E}function _f(E,P,B){let ce=t.createBaseSourceFileNode(312);return ce.statements=H(E),ce.endOfFileToken=P,ce.flags|=B,ce.text="",ce.fileName="",ce.path="",ce.resolvedPath="",ce.originalFileName="",ce.languageVersion=0,ce.languageVariant=0,ce.scriptKind=0,ce.isDeclarationFile=!1,ce.hasNoDefaultLib=!1,ce.transformFlags|=Ja(ce.statements)|Ir(ce.endOfFileToken),ce.locals=void 0,ce.nextContainer=void 0,ce.endFlowNode=void 0,ce.nodeCount=0,ce.identifierCount=0,ce.symbolCount=0,ce.parseDiagnostics=void 0,ce.bindDiagnostics=void 0,ce.bindSuggestionDiagnostics=void 0,ce.lineMap=void 0,ce.externalModuleIndicator=void 0,ce.setExternalModuleIndicator=void 0,ce.pragmas=void 0,ce.checkJsDirective=void 0,ce.referencedFiles=void 0,ce.typeReferenceDirectives=void 0,ce.libReferenceDirectives=void 0,ce.amdDependencies=void 0,ce.commentDirectives=void 0,ce.identifiers=void 0,ce.packageJsonLocations=void 0,ce.packageJsonScope=void 0,ce.imports=void 0,ce.moduleAugmentations=void 0,ce.ambientModuleNames=void 0,ce.classifiableNames=void 0,ce.impliedNodeFormat=void 0,ce}function DE(E){let P=Object.create(E.redirectTarget);return Object.defineProperties(P,{id:{get(){return this.redirectInfo.redirectTarget.id},set(B){this.redirectInfo.redirectTarget.id=B}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(B){this.redirectInfo.redirectTarget.symbol=B}}}),P.redirectInfo=E,P}function K0(E){let P=DE(E.redirectInfo);return P.flags|=E.flags&-17,P.fileName=E.fileName,P.path=E.path,P.resolvedPath=E.resolvedPath,P.originalFileName=E.originalFileName,P.packageJsonLocations=E.packageJsonLocations,P.packageJsonScope=E.packageJsonScope,P.emitNode=void 0,P}function sx(E){let P=t.createBaseSourceFileNode(312);P.flags|=E.flags&-17;for(let B in E)if(!(Rs(P,B)||!Rs(E,B))){if(B==="emitNode"){P.emitNode=void 0;continue}P[B]=E[B]}return P}function PT(E){let P=E.redirectInfo?K0(E):sx(E);return r(P,E),P}function hf(E,P,B,ce,$e,Jt,br){let ao=PT(E);return ao.statements=H(P),ao.isDeclarationFile=B,ao.referencedFiles=ce,ao.typeReferenceDirectives=$e,ao.hasNoDefaultLib=Jt,ao.libReferenceDirectives=br,ao.transformFlags=Ja(ao.statements)|Ir(ao.endOfFileToken),ao}function Ls(E,P,B=E.isDeclarationFile,ce=E.referencedFiles,$e=E.typeReferenceDirectives,Jt=E.hasNoDefaultLib,br=E.libReferenceDirectives){return E.statements!==P||E.isDeclarationFile!==B||E.referencedFiles!==ce||E.typeReferenceDirectives!==$e||E.hasNoDefaultLib!==Jt||E.libReferenceDirectives!==br?ar(hf(E,P,B,ce,$e,Jt,br),E):E}function CE(E,P=et){let B=K(313);return B.prepends=P,B.sourceFiles=E,B.syntheticFileReferences=void 0,B.syntheticTypeReferences=void 0,B.syntheticLibReferences=void 0,B.hasNoDefaultLib=void 0,B}function NE(E,P,B=et){return E.sourceFiles!==P||E.prepends!==B?ar(CE(P,B),E):E}function sv(E,P,B){let ce=K(314);return ce.prologues=E,ce.syntheticReferences=P,ce.texts=B,ce.fileName="",ce.text="",ce.referencedFiles=et,ce.libReferenceDirectives=et,ce.getLineAndCharacterOfPosition=$e=>Es(ce,$e),ce}function Sb(E,P){let B=K(E);return B.data=P,B}function X0(E){return Sb(307,E)}function D(E,P){let B=Sb(308,E);return B.texts=P,B}function se(E,P){return Sb(P?310:309,E)}function _t(E){let P=K(311);return P.data=E.data,P.section=E,P}function an(){let E=K(315);return E.javascriptText="",E.declarationText="",E}function Fr(E,P=!1,B){let ce=K(237);return ce.type=E,ce.isSpread=P,ce.tupleNameSource=B,ce}function wi(E){let P=K(358);return P._children=E,P}function Ei(E){let P=K(359);return P.original=E,dt(P,E),P}function oo(E,P){let B=K(360);return B.expression=E,B.original=P,B.transformFlags|=Ir(B.expression)|1,dt(B,P),B}function ya(E,P){return E.expression!==P?ar(oo(P,E.original),E):E}function Zu(E){if(Xs(E)&&!uC(E)&&!E.original&&!E.emitNode&&!E.id){if(bN(E))return E.elements;if(_r(E)&&bae(E.operatorToken))return[E.left,E.right]}return E}function Nd(E){let P=K(361);return P.elements=H(eS(E,Zu)),P.transformFlags|=Ja(P.elements),P}function Ff(E,P){return E.elements!==P?ar(Nd(P),E):E}function Tb(E,P){let B=K(362);return B.expression=E,B.thisArg=P,B.transformFlags|=Ir(B.expression)|Ir(B.thisArg),B}function Ai(E,P,B){return E.expression!==P||E.thisArg!==B?ar(Tb(P,B),E):E}function kh(E){let P=oe(E.escapedText);return P.flags|=E.flags&-17,P.transformFlags=E.transformFlags,r(P,E),Lk(P,{...E.emitNode.autoGenerate}),P}function jn(E){let P=oe(E.escapedText);P.flags|=E.flags&-17,P.jsDoc=E.jsDoc,P.flowNode=E.flowNode,P.symbol=E.symbol,P.transformFlags=E.transformFlags,r(P,E);let B=PS(E);return B&&Uv(P,B),P}function lx(E){let P=He(E.escapedText);return P.flags|=E.flags&-17,P.transformFlags=E.transformFlags,r(P,E),Lk(P,{...E.emitNode.autoGenerate}),P}function Ab(E){let P=He(E.escapedText);return P.flags|=E.flags&-17,P.transformFlags=E.transformFlags,r(P,E),P}function Ib(E){if(E===void 0)return E;if(no(E))return PT(E);if(ol(E))return kh(E);if(Ve(E))return jn(E);if(cS(E))return lx(E);if(Xi(E))return Ab(E);let P=aL(E.kind)?t.createBaseNode(E.kind):t.createBaseTokenNode(E.kind);P.flags|=E.flags&-17,P.transformFlags=E.transformFlags,r(P,E);for(let B in E)Rs(P,B)||!Rs(E,B)||(P[B]=E[B]);return P}function MT(E,P,B){return qn(Bd(void 0,void 0,void 0,void 0,P?[P]:[],void 0,oi(E,!0)),void 0,B?[B]:[])}function PE(E,P,B){return qn(Lf(void 0,void 0,P?[P]:[],void 0,void 0,oi(E,!0)),void 0,B?[B]:[])}function K_(){return Ap(ue("0"))}function wh(E){return dm(void 0,!1,E)}function lD(E){return Om(void 0,!1,hT([ex(!1,void 0,E)]))}function LT(E,P){return P==="null"?O.createStrictEquality(E,Bt()):P==="undefined"?O.createStrictEquality(E,K_()):O.createStrictEquality(zu(E),he(P))}function iz(E,P){return P==="null"?O.createStrictInequality(E,Bt()):P==="undefined"?O.createStrictInequality(E,K_()):O.createStrictInequality(zu(E),he(P))}function xb(E,P,B){return lS(E)?Qo(Ts(E,void 0,P),void 0,void 0,B):qn(js(E,P),void 0,B)}function _4(E,P,B){return xb(E,"bind",[P,...B])}function h4(E,P,B){return xb(E,"call",[P,...B])}function Y0(E,P,B){return xb(E,"apply",[P,B])}function u_(E,P,B){return xb(Ne(E),P,B)}function FP(E,P){return xb(E,"slice",P===void 0?[]:[Q0(P)])}function Oh(E,P){return xb(E,"concat",P)}function cx(E,P,B){return u_("Object","defineProperty",[E,Q0(P),B])}function g4(E,P){return u_("Object","getOwnPropertyDescriptor",[E,Q0(P)])}function X_(E,P,B){return u_("Reflect","get",B?[E,P,B]:[E,P])}function Q(E,P,B,ce){return u_("Reflect","set",ce?[E,P,B,ce]:[E,P,B])}function Re(E,P,B){return B?(E.push(mf(P,B)),!0):!1}function Xe(E,P){let B=[];Re(B,"enumerable",Q0(E.enumerable)),Re(B,"configurable",Q0(E.configurable));let ce=Re(B,"writable",Q0(E.writable));ce=Re(B,"value",E.value)||ce;let $e=Re(B,"get",E.get);return $e=Re(B,"set",E.set)||$e,C.assert(!(ce&&$e),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),$o(B,!P)}function It(E,P){switch(E.kind){case 217:return cf(E,P);case 216:return Ql(E,E.type,P);case 234:return df(E,P,E.type);case 238:return kt(E,P,E.type);case 235:return ze(E,P);case 360:return ya(E,P)}}function Ct(E){return Wd(E)&&Xs(E)&&Xs(jv(E))&&Xs(L_(E))&&!Et(kR(E))&&!Et(Mk(E))}function qt(E,P,B=15){return E&&d5(E,B)&&!Ct(E)?It(E,qt(E.expression,P)):P}function Br(E,P,B){if(!P)return E;let ce=uT(P,P.label,J1(P.statement)?Br(E,P.statement):E);return B&&B(P),ce}function Fi(E,P){let B=vs(E);switch(B.kind){case 80:return P;case 110:case 9:case 10:case 11:return!1;case 209:return B.elements.length!==0;case 210:return B.properties.length>0;default:return!0}}function Pi(E,P,B,ce=!1){let $e=Xl(E,15),Jt,br;return Od($e)?(Jt=at(),br=$e):gN($e)?(Jt=at(),br=B!==void 0&&B<2?dt(Ne("_super"),$e):$e):Va($e)&8192?(Jt=K_(),br=i().parenthesizeLeftSideOfAccess($e,!1)):zr($e)?Fi($e.expression,ce)?(Jt=me(P),br=js(dt(O.createAssignment(Jt,$e.expression),$e.expression),$e.name),dt(br,$e)):(Jt=$e.expression,br=$e):Ys($e)?Fi($e.expression,ce)?(Jt=me(P),br=Oc(dt(O.createAssignment(Jt,$e.expression),$e.expression),$e.argumentExpression),dt(br,$e)):(Jt=$e.expression,br=$e):(Jt=K_(),br=i().parenthesizeLeftSideOfAccess(E,!1)),{target:br,thisArg:Jt}}function gi(E,P){return js(qc($o([le(void 0,"value",[vi(void 0,void 0,E,void 0,void 0,void 0)],oi([mu(P)]))])),"value")}function eo(E){return E.length>10?Nd(E):nd(E,O.createComma)}function fs(E,P,B,ce=0,$e){let Jt=$e?E&&m6(E):Oo(E);if(Jt&&Ve(Jt)&&!ol(Jt)){let br=qa(dt(Ib(Jt),Jt),Jt.parent);return ce|=Va(Jt),B||(ce|=96),P||(ce|=3072),ce&&fr(br,ce),br}return Le(E)}function Cs(E,P,B){return fs(E,P,B,98304)}function es(E,P,B,ce){return fs(E,P,B,32768,ce)}function Wf(E,P,B){return fs(E,P,B,16384)}function Y_(E,P,B){return fs(E,P,B)}function Sg(E,P,B,ce){let $e=js(E,Xs(P)?P:Ib(P));dt($e,P);let Jt=0;return ce||(Jt|=96),B||(Jt|=3072),Jt&&fr($e,Jt),$e}function lv(E,P,B,ce){return E&&ei(P,32)?Sg(E,fs(P),B,ce):Wf(P,B,ce)}function cv(E,P,B,ce){let $e=kT(E,P,0,B);return cD(E,P,$e,ce)}function Rb(E){return Na(E.expression)&&E.expression.text==="use strict"}function lp(){return Ku(mu(he("use strict")))}function kT(E,P,B=0,ce){C.assert(P.length===0,"Prologue directives should be at the first statement in the target statements array");let $e=!1,Jt=E.length;for(;Bao&&d_.splice($e,0,...P.slice(ao,Hs)),ao>br&&d_.splice(ce,0,...P.slice(br,ao)),br>Jt&&d_.splice(B,0,...P.slice(Jt,br)),Jt>0)if(B===0)d_.splice(0,0,...P.slice(0,Jt));else{let Nb=new Map;for(let Gm=0;Gm=0;Gm--){let Z0=P[Gm];Nb.has(Z0.expression.text)||d_.unshift(Z0)}}return E1(E)?dt(H(d_,E.hasTrailingComma),E):E}function Db(E,P){let B;return typeof P=="number"?B=nn(P):B=P,_l(E)?Yt(E,B,E.name,E.constraint,E.default):Co(E)?ho(E,B,E.dotDotDotToken,E.name,E.questionToken,E.type,E.initializer):OR(E)?Kt(E,B,E.typeParameters,E.parameters,E.type):gp(E)?qr(E,B,E.name,E.questionToken,E.type):Jo(E)?tt(E,B,E.name,E.questionToken??E.exclamationToken,E.type,E.initializer):yh(E)?Rn(E,B,E.name,E.questionToken,E.typeParameters,E.parameters,E.type):jl(E)?bi(E,B,E.asteriskToken,E.name,E.questionToken,E.typeParameters,E.parameters,E.type,E.body):Pl(E)?wn(E,B,E.parameters,E.body):Zp(E)?ft(E,B,E.name,E.parameters,E.type,E.body):vp(E)?We(E,B,E.name,E.parameters,E.body):j1(E)?Vt(E,B,E.parameters,E.type):ws(E)?Dd(E,B,E.asteriskToken,E.name,E.typeParameters,E.parameters,E.type,E.body):Bs(E)?j_(E,B,E.typeParameters,E.parameters,E.type,E.equalsGreaterThanToken,E.body):Zc(E)?wm(E,B,E.name,E.typeParameters,E.heritageClauses,E.members):Ml(E)?Ka(E,B,E.declarationList):Sc(E)?K2(E,B,E.asteriskToken,E.name,E.typeParameters,E.parameters,E.type,E.body):Tc(E)?z0(E,B,E.name,E.typeParameters,E.heritageClauses,E.members):fd(E)?yc(E,B,E.name,E.typeParameters,E.heritageClauses,E.members):Dm(E)?$I(E,B,E.name,E.typeParameters,E.type):v0(E)?pT(E,B,E.name,E.members):Jl(E)?a_(E,B,E.name,E.body):tu(E)?s_(E,B,E.isTypeOnly,E.name,E.moduleReference):Lc(E)?mT(E,B,E.importClause,E.moduleSpecifier,E.attributes):Ll(E)?_b(E,B,E.expression):Kl(E)?rv(E,B,E.isTypeOnly,E.exportClause,E.moduleSpecifier,E.attributes):C.assertNever(E)}function uD(E,P){return Co(E)?ho(E,P,E.dotDotDotToken,E.name,E.questionToken,E.type,E.initializer):Jo(E)?tt(E,P,E.name,E.questionToken??E.exclamationToken,E.type,E.initializer):jl(E)?bi(E,P,E.asteriskToken,E.name,E.questionToken,E.typeParameters,E.parameters,E.type,E.body):Zp(E)?ft(E,P,E.name,E.parameters,E.type,E.body):vp(E)?We(E,P,E.name,E.parameters,E.body):Zc(E)?wm(E,P,E.name,E.typeParameters,E.heritageClauses,E.members):Tc(E)?z0(E,P,E.name,E.typeParameters,E.heritageClauses,E.members):C.assertNever(E)}function Hp(E,P){switch(E.kind){case 177:return ft(E,E.modifiers,P,E.parameters,E.type,E.body);case 178:return We(E,E.modifiers,P,E.parameters,E.body);case 174:return bi(E,E.modifiers,E.asteriskToken,P,E.questionToken,E.typeParameters,E.parameters,E.type,E.body);case 173:return Rn(E,E.modifiers,P,E.questionToken,E.typeParameters,E.parameters,E.type);case 172:return tt(E,E.modifiers,P,E.questionToken??E.exclamationToken,E.type,E.initializer);case 171:return qr(E,E.modifiers,P,E.questionToken,E.type);case 303:return Bm(E,P,E.initializer)}}function Ua(E){return E?H(E):void 0}function cc(E){return typeof E=="string"?Ne(E):E}function Q0(E){return typeof E=="string"?he(E):typeof E=="number"?ue(E):typeof E=="boolean"?E?yt():Qe():E}function ux(E){return E&&i().parenthesizeExpressionForDisallowedComma(E)}function BP(E){return typeof E=="number"?Se(E):E}function Cb(E){return E&&TH(E)?dt(r(Qu(),E),E):E}function GP(E){return typeof E=="string"||E&&!Oi(E)?jd(E,void 0,void 0,void 0):E}function ar(E,P){return E!==P&&(r(E,P),dt(E,P)),E}}function tH(e){switch(e){case 351:return"type";case 349:return"returns";case 350:return"this";case 347:return"enum";case 337:return"author";case 339:return"class";case 340:return"public";case 341:return"private";case 342:return"protected";case 343:return"readonly";case 344:return"override";case 352:return"template";case 353:return"typedef";case 348:return"param";case 355:return"prop";case 345:return"callback";case 346:return"overload";case 335:return"augments";case 336:return"implements";default:return C.fail(`Unsupported kind: ${C.formatSyntaxKind(e)}`)}}function Oze(e,t){switch(Vv||(Vv=Mv(99,!1,0)),e){case 15:Vv.setText("`"+t+"`");break;case 16:Vv.setText("`"+t+"${");break;case 17:Vv.setText("}"+t+"${");break;case 18:Vv.setText("}"+t+"`");break}let r=Vv.scan();if(r===20&&(r=Vv.reScanTemplateToken(!1)),Vv.isUnterminated())return Vv.setText(void 0),lae;let i;switch(r){case 15:case 16:case 17:case 18:i=Vv.getTokenValue();break}return i===void 0||Vv.scan()!==1?(Vv.setText(void 0),lae):(Vv.setText(void 0),i)}function Jy(e){return e&&Ve(e)?Dk(e):Ir(e)}function Dk(e){return Ir(e)&-67108865}function Fze(e,t){return t|e.transformFlags&134234112}function Ir(e){if(!e)return 0;let t=e.transformFlags&~aae(e.kind);return od(e)&&ic(e.name)?Fze(e.name,t):t}function Ja(e){return e?e.transformFlags:0}function _Se(e){let t=0;for(let r of e)t|=Ir(r);e.transformFlags=t}function aae(e){if(e>=182&&e<=205)return-2;switch(e){case 213:case 214:case 209:return-2147450880;case 267:return-1941676032;case 169:return-2147483648;case 219:return-2072174592;case 218:case 262:return-1937940480;case 261:return-2146893824;case 263:case 231:return-2147344384;case 176:return-1937948672;case 172:return-2013249536;case 174:case 177:case 178:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 168:case 171:case 173:case 179:case 180:case 181:case 264:case 265:return-2;case 210:return-2147278848;case 299:return-2147418112;case 206:case 207:return-2147450880;case 216:case 238:case 234:case 360:case 217:case 108:return-2147483648;case 211:case 212:return-2147483648;default:return-2147483648}}function f7(e){return e.flags|=16,e}function nH(e,t,r){let i,o,s,l,u,p,g,m,b,T;wo(e)?(s="",l=e,u=e.length,p=t,g=r):(C.assert(t==="js"||t==="dts"),s=(t==="js"?e.javascriptPath:e.declarationPath)||"",p=t==="js"?e.javascriptMapPath:e.declarationMapPath,m=()=>t==="js"?e.javascriptText:e.declarationText,b=()=>t==="js"?e.javascriptMapText:e.declarationMapText,u=()=>m().length,e.buildInfo&&e.buildInfo.bundle&&(C.assert(r===void 0||typeof r=="boolean"),i=r,o=t==="js"?e.buildInfo.bundle.js:e.buildInfo.bundle.dts,T=e.oldFileOfCurrentEmit));let I=T?zze(C.checkDefined(o)):Wze(o,i,u);return I.fileName=s,I.sourceMapPath=p,I.oldFileOfCurrentEmit=T,m&&b?(Object.defineProperty(I,"text",{get:m}),Object.defineProperty(I,"sourceMapText",{get:b})):(C.assert(!T),I.text=l??"",I.sourceMapText=g),I}function Wze(e,t,r){let i,o,s,l,u,p,g,m;for(let T of e?e.sections:et)switch(T.kind){case"prologue":i=In(i,dt(k.createUnparsedPrologue(T.data),T));break;case"emitHelpers":o=In(o,dH().get(T.data));break;case"no-default-lib":m=!0;break;case"reference":s=In(s,{pos:-1,end:-1,fileName:T.data});break;case"type":l=In(l,{pos:-1,end:-1,fileName:T.data});break;case"type-import":l=In(l,{pos:-1,end:-1,fileName:T.data,resolutionMode:99});break;case"type-require":l=In(l,{pos:-1,end:-1,fileName:T.data,resolutionMode:1});break;case"lib":u=In(u,{pos:-1,end:-1,fileName:T.data});break;case"prepend":let I;for(let R of T.texts)(!t||R.kind!=="internal")&&(I=In(I,dt(k.createUnparsedTextLike(R.data,R.kind==="internal"),R)));p=Jr(p,I),g=In(g,k.createUnparsedPrepend(T.data,I??et));break;case"internal":if(t){g||(g=[]);break}case"text":g=In(g,dt(k.createUnparsedTextLike(T.data,T.kind==="internal"),T));break;default:C.assertNever(T)}if(!g){let T=k.createUnparsedTextLike(void 0,!1);rN(T,0,typeof r=="function"?r():r),g=[T]}let b=Ah.createUnparsedSource(i??et,void 0,g);return NR(i,b),NR(g,b),NR(p,b),b.hasNoDefaultLib=m,b.helpers=o,b.referencedFiles=s||et,b.typeReferenceDirectives=l,b.libReferenceDirectives=u||et,b}function zze(e){let t,r;for(let o of e.sections)switch(o.kind){case"internal":case"text":t=In(t,dt(k.createUnparsedTextLike(o.data,o.kind==="internal"),o));break;case"no-default-lib":case"reference":case"type":case"type-import":case"type-require":case"lib":r=In(r,dt(k.createUnparsedSyntheticReference(o),o));break;case"prologue":case"emitHelpers":case"prepend":break;default:C.assertNever(o)}let i=k.createUnparsedSource(et,r,t??et);return NR(r,i),NR(t,i),i.helpers=Ft(e.sources&&e.sources.helpers,o=>dH().get(o)),i}function hSe(e,t,r,i,o,s){return wo(e)?iH(void 0,e,r,i,void 0,t,o,s):rH(e,t,r,i,o,s)}function rH(e,t,r,i,o,s,l,u){let p=Ah.createInputFiles();p.javascriptPath=t,p.javascriptMapPath=r,p.declarationPath=i,p.declarationMapPath=o,p.buildInfoPath=s;let g=new Map,m=R=>{if(R===void 0)return;let M=g.get(R);return M===void 0&&(M=e(R),g.set(R,M!==void 0?M:!1)),M!==!1?M:void 0},b=R=>{let M=m(R);return M!==void 0?M:`/* Input file ${R} was missing */\r +`},T;return Object.defineProperties(p,{javascriptText:{get:()=>b(t)},javascriptMapText:{get:()=>m(r)},declarationText:{get:()=>b(C.checkDefined(i))},declarationMapText:{get:()=>m(o)},buildInfo:{get:()=>{if(T===void 0&&s)if(l?.getBuildInfo)T=l.getBuildInfo(s,u.configFilePath)??!1;else{let R=m(s);T=R!==void 0?cF(s,R)??!1:!1}return T||void 0}}}),p}function iH(e,t,r,i,o,s,l,u,p,g,m){let b=Ah.createInputFiles();return b.javascriptPath=e,b.javascriptText=t,b.javascriptMapPath=r,b.javascriptMapText=i,b.declarationPath=o,b.declarationText=s,b.declarationMapPath=l,b.declarationMapText=u,b.buildInfoPath=p,b.buildInfo=g,b.oldFileOfCurrentEmit=m,b}function gSe(e,t,r){return new(ySe||(ySe=lu.getSourceMapSourceConstructor()))(e,t,r)}function Pr(e,t){if(e.original!==t&&(e.original=t,t)){let r=t.emitNode;r&&(e.emitNode=Bze(r,e.emitNode))}return e}function Bze(e,t){let{flags:r,internalFlags:i,leadingComments:o,trailingComments:s,commentRange:l,sourceMapRange:u,tokenSourceMapRanges:p,constantValue:g,helpers:m,startsOnNewLine:b,snippetElement:T,classThis:I,assignedName:R}=e;if(t||(t={}),r&&(t.flags=r),i&&(t.internalFlags=i&-9),o&&(t.leadingComments=Jr(o.slice(),t.leadingComments)),s&&(t.trailingComments=Jr(s.slice(),t.trailingComments)),l&&(t.commentRange=l),u&&(t.sourceMapRange=u),p&&(t.tokenSourceMapRanges=Gze(p,t.tokenSourceMapRanges)),g!==void 0&&(t.constantValue=g),m)for(let M of m)t.helpers=Ng(t.helpers,M);return b!==void 0&&(t.startsOnNewLine=b),T!==void 0&&(t.snippetElement=T),I&&(t.classThis=I),R&&(t.assignedName=R),t}function Gze(e,t){t||(t=[]);for(let r in e)t[r]=e[r];return t}var m7,oH,sae,Vv,lae,Ck,vSe,k,ySe,Vze=A({"src/compiler/factory/nodeFactory.ts"(){"use strict";ia(),m7=0,oH=(e=>(e[e.None=0]="None",e[e.NoParenthesizerRules=1]="NoParenthesizerRules",e[e.NoNodeConverters=2]="NoNodeConverters",e[e.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",e[e.NoOriginalNode=8]="NoOriginalNode",e))(oH||{}),sae=[],lae={},Ck=rae(),vSe={createBaseSourceFileNode:e=>f7(Ck.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>f7(Ck.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>f7(Ck.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>f7(Ck.createBaseTokenNode(e)),createBaseNode:e=>f7(Ck.createBaseNode(e))},k=Rk(4,vSe)}});function wu(e){if(e.emitNode)C.assert(!(e.emitNode.internalFlags&8),"Invalid attempt to mutate an immutable node.");else{if(uC(e)){if(e.kind===312)return e.emitNode={annotatedNodes:[e]};let t=Vn(Lo(Vn(e)))??C.fail("Could not determine parsed source file.");wu(t).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function aH(e){var t,r;let i=(r=(t=Vn(Lo(e)))==null?void 0:t.emitNode)==null?void 0:r.annotatedNodes;if(i)for(let o of i)o.emitNode=void 0}function Nk(e){let t=wu(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function fr(e,t){return wu(e).flags=t,e}function M_(e,t){let r=wu(e);return r.flags=r.flags|t,e}function Pk(e,t){return wu(e).internalFlags=t,e}function JA(e,t){let r=wu(e);return r.internalFlags=r.internalFlags|t,e}function jv(e){var t;return((t=e.emitNode)==null?void 0:t.sourceMapRange)??e}function Ca(e,t){return wu(e).sourceMapRange=t,e}function bSe(e,t){var r,i;return(i=(r=e.emitNode)==null?void 0:r.tokenSourceMapRanges)==null?void 0:i[t]}function cae(e,t,r){let i=wu(e),o=i.tokenSourceMapRanges??(i.tokenSourceMapRanges=[]);return o[t]=r,e}function fN(e){var t;return(t=e.emitNode)==null?void 0:t.startsOnNewLine}function _7(e,t){return wu(e).startsOnNewLine=t,e}function L_(e){var t;return((t=e.emitNode)==null?void 0:t.commentRange)??e}function oc(e,t){return wu(e).commentRange=t,e}function kR(e){var t;return(t=e.emitNode)==null?void 0:t.leadingComments}function g0(e,t){return wu(e).leadingComments=t,e}function mN(e,t,r,i){return g0(e,In(kR(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function Mk(e){var t;return(t=e.emitNode)==null?void 0:t.trailingComments}function KA(e,t){return wu(e).trailingComments=t,e}function h7(e,t,r,i){return KA(e,In(Mk(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function uae(e,t){g0(e,kR(t)),KA(e,Mk(t));let r=wu(t);return r.leadingComments=void 0,r.trailingComments=void 0,e}function dae(e){var t;return(t=e.emitNode)==null?void 0:t.constantValue}function pae(e,t){let r=wu(e);return r.constantValue=t,e}function XA(e,t){let r=wu(e);return r.helpers=In(r.helpers,t),e}function Vg(e,t){if(Et(t)){let r=wu(e);for(let i of t)r.helpers=Ng(r.helpers,i)}return e}function ESe(e,t){var r;let i=(r=e.emitNode)==null?void 0:r.helpers;return i?Mx(i,t):!1}function g7(e){var t;return(t=e.emitNode)==null?void 0:t.helpers}function fae(e,t,r){let i=e.emitNode,o=i&&i.helpers;if(!Et(o))return;let s=wu(t),l=0;for(let u=0;u0&&(o[u-l]=p)}l>0&&(o.length-=l)}function sH(e){var t;return(t=e.emitNode)==null?void 0:t.snippetElement}function lH(e,t){let r=wu(e);return r.snippetElement=t,e}function cH(e){return wu(e).internalFlags|=4,e}function mae(e,t){let r=wu(e);return r.typeNode=t,e}function _ae(e){var t;return(t=e.emitNode)==null?void 0:t.typeNode}function Uv(e,t){return wu(e).identifierTypeArguments=t,e}function PS(e){var t;return(t=e.emitNode)==null?void 0:t.identifierTypeArguments}function Lk(e,t){return wu(e).autoGenerate=t,e}function SSe(e){var t;return(t=e.emitNode)==null?void 0:t.autoGenerate}function hae(e,t){return wu(e).generatedImportReference=t,e}function gae(e){var t;return(t=e.emitNode)==null?void 0:t.generatedImportReference}var jze=A({"src/compiler/factory/emitNode.ts"(){"use strict";ia()}});function vae(e){let t=e.factory,r=Ed(()=>Pk(t.createTrue(),8)),i=Ed(()=>Pk(t.createFalse(),8));return{getUnscopedHelperName:o,createDecorateHelper:s,createMetadataHelper:l,createParamHelper:u,createESDecorateHelper:M,createRunInitializersHelper:N,createAssignHelper:O,createAwaitHelper:H,createAsyncGeneratorHelper:K,createAsyncDelegatorHelper:Z,createAsyncValuesHelper:V,createRestHelper:ue,createAwaiterHelper:G,createExtendsHelper:ne,createTemplateObjectHelper:he,createSpreadArrayHelper:ye,createPropKeyHelper:$,createSetFunctionNameHelper:Y,createValuesHelper:oe,createReadHelper:fe,createGeneratorHelper:Ne,createCreateBindingHelper:me,createImportStarHelper:ie,createImportStarCallbackHelper:ve,createImportDefaultHelper:Le,createExportStarHelper:He,createClassPrivateFieldGetHelper:Ee,createClassPrivateFieldSetHelper:Ce,createClassPrivateFieldInHelper:Me,createAddDisposableResourceHelper:Fe,createDisposeResourcesHelper:At};function o(Se){return fr(t.createIdentifier(Se),8196)}function s(Se,je,at,Bt){e.requestEmitHelper(v7);let yt=[];return yt.push(t.createArrayLiteralExpression(Se,!0)),yt.push(je),at&&(yt.push(at),Bt&&yt.push(Bt)),t.createCallExpression(o("__decorate"),void 0,yt)}function l(Se,je){return e.requestEmitHelper(y7),t.createCallExpression(o("__metadata"),void 0,[t.createStringLiteral(Se),je])}function u(Se,je,at){return e.requestEmitHelper(b7),dt(t.createCallExpression(o("__param"),void 0,[t.createNumericLiteral(je+""),Se]),at)}function p(Se){let je=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral("class")),t.createPropertyAssignment(t.createIdentifier("name"),Se.name),t.createPropertyAssignment(t.createIdentifier("metadata"),Se.metadata)];return t.createObjectLiteralExpression(je)}function g(Se){let je=Se.computed?t.createElementAccessExpression(t.createIdentifier("obj"),Se.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),Se.name);return t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,je))}function m(Se){let je=Se.computed?t.createElementAccessExpression(t.createIdentifier("obj"),Se.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),Se.name);return t.createPropertyAssignment("set",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj")),t.createParameterDeclaration(void 0,void 0,t.createIdentifier("value"))],void 0,void 0,t.createBlock([t.createExpressionStatement(t.createAssignment(je,t.createIdentifier("value")))])))}function b(Se){let je=Se.computed?Se.name:Ve(Se.name)?t.createStringLiteralFromNode(Se.name):Se.name;return t.createPropertyAssignment("has",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,t.createBinaryExpression(je,103,t.createIdentifier("obj"))))}function T(Se,je){let at=[];return at.push(b(Se)),je.get&&at.push(g(Se)),je.set&&at.push(m(Se)),t.createObjectLiteralExpression(at)}function I(Se){let je=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral(Se.kind)),t.createPropertyAssignment(t.createIdentifier("name"),Se.name.computed?Se.name.name:t.createStringLiteralFromNode(Se.name.name)),t.createPropertyAssignment(t.createIdentifier("static"),Se.static?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("private"),Se.private?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("access"),T(Se.name,Se.access)),t.createPropertyAssignment(t.createIdentifier("metadata"),Se.metadata)];return t.createObjectLiteralExpression(je)}function R(Se){return Se.kind==="class"?p(Se):I(Se)}function M(Se,je,at,Bt,yt,Qe){return e.requestEmitHelper(E7),t.createCallExpression(o("__esDecorate"),void 0,[Se??t.createNull(),je??t.createNull(),at,R(Bt),yt,Qe])}function N(Se,je,at){return e.requestEmitHelper(S7),t.createCallExpression(o("__runInitializers"),void 0,at?[Se,je,at]:[Se,je])}function O(Se){return as(e.getCompilerOptions())>=2?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,Se):(e.requestEmitHelper(T7),t.createCallExpression(o("__assign"),void 0,Se))}function H(Se){return e.requestEmitHelper(YA),t.createCallExpression(o("__await"),void 0,[Se])}function K(Se,je){return e.requestEmitHelper(YA),e.requestEmitHelper(A7),(Se.emitNode||(Se.emitNode={})).flags|=1572864,t.createCallExpression(o("__asyncGenerator"),void 0,[je?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),Se])}function Z(Se){return e.requestEmitHelper(YA),e.requestEmitHelper(I7),t.createCallExpression(o("__asyncDelegator"),void 0,[Se])}function V(Se){return e.requestEmitHelper(x7),t.createCallExpression(o("__asyncValues"),void 0,[Se])}function ue(Se,je,at,Bt){e.requestEmitHelper(R7);let yt=[],Qe=0;for(let gt=0;gt{let i="";for(let o=0;oe.name))}function _N(e,t){return la(e)&&Ve(e.expression)&&(Va(e.expression)&8192)!==0&&e.expression.escapedText===t}var pH,v7,y7,b7,E7,S7,T7,YA,A7,I7,x7,R7,D7,C7,N7,P7,M7,L7,k7,w7,O7,wR,F7,kk,W7,z7,B7,G7,V7,j7,U7,TSe,wk,Ok,Uze=A({"src/compiler/factory/emitHelpers.ts"(){"use strict";ia(),pH=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))(pH||{}),v7={name:"typescript:decorate",importName:"__decorate",scoped:!1,priority:2,text:` + var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + };`},y7={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:` + var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); + };`},b7={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:` + var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } + };`},E7={name:"typescript:esDecorate",importName:"__esDecorate",scoped:!1,priority:2,text:` + var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { + function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; } + var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; + var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; + var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); + var _, done = false; + for (var i = decorators.length - 1; i >= 0; i--) { + var context = {}; + for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p]; + for (var p in contextIn.access) context.access[p] = contextIn.access[p]; + context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); }; + var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); + if (kind === "accessor") { + if (result === void 0) continue; + if (result === null || typeof result !== "object") throw new TypeError("Object expected"); + if (_ = accept(result.get)) descriptor.get = _; + if (_ = accept(result.set)) descriptor.set = _; + if (_ = accept(result.init)) initializers.unshift(_); + } + else if (_ = accept(result)) { + if (kind === "field") initializers.unshift(_); + else descriptor[key] = _; + } + } + if (target) Object.defineProperty(target, contextIn.name, descriptor); + done = true; + };`},S7={name:"typescript:runInitializers",importName:"__runInitializers",scoped:!1,priority:2,text:` + var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) { + var useValue = arguments.length > 2; + for (var i = 0; i < initializers.length; i++) { + value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); + } + return useValue ? value : void 0; + };`},T7={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:` + var __assign = (this && this.__assign) || function () { + __assign = Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); + };`},YA={name:"typescript:await",importName:"__await",scoped:!1,text:` + var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }`},A7={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[YA],text:` + var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } + };`},I7={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[YA],text:` + var __asyncDelegator = (this && this.__asyncDelegator) || function (o) { + var i, p; + return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; + function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; } + };`},x7={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:` + var __asyncValues = (this && this.__asyncValues) || function (o) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var m = o[Symbol.asyncIterator], i; + return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); + function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } + function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } + };`},R7={name:"typescript:rest",importName:"__rest",scoped:!1,text:` + var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; + };`},D7={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:` + var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + };`},C7={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:` + var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + })();`},N7={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:` + var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { + if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } + return cooked; + };`},P7={name:"typescript:read",importName:"__read",scoped:!1,text:` + var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; + };`},M7={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:` + var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { + if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); + };`},L7={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:` + var __propKey = (this && this.__propKey) || function (x) { + return typeof x === "symbol" ? x : "".concat(x); + };`},k7={name:"typescript:setFunctionName",importName:"__setFunctionName",scoped:!1,text:` + var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) { + if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : ""; + return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name }); + };`},w7={name:"typescript:values",importName:"__values",scoped:!1,text:` + var __values = (this && this.__values) || function(o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) return m.call(o); + if (o && typeof o.length === "number") return { + next: function () { + if (o && i >= o.length) o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); + };`},O7={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:` + var __generator = (this && this.__generator) || function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (g && (g = 0, op[0] && (_ = 0)), _) try { + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } + };`},wR={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:` + var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); + }) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; + }));`},F7={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:` + var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + }) : function(o, v) { + o["default"] = v; + });`},kk={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[wR,F7],priority:2,text:` + var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; + };`},W7={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:` + var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; + };`},z7={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[wR],priority:2,text:` + var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); + };`},B7={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:` + var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); + return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); + };`},G7={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:` + var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { + if (kind === "m") throw new TypeError("Private method is not writable"); + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); + return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; + };`},V7={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:` + var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) { + if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object"); + return typeof state === "function" ? receiver === state : state.has(receiver); + };`},j7={name:"typescript:addDisposableResource",importName:"__addDisposableResource",scoped:!1,text:` + var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) { + if (value !== null && value !== void 0) { + if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected."); + var dispose; + if (async) { + if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined."); + dispose = value[Symbol.asyncDispose]; + } + if (dispose === void 0) { + if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined."); + dispose = value[Symbol.dispose]; + } + if (typeof dispose !== "function") throw new TypeError("Object not disposable."); + env.stack.push({ value: value, dispose: dispose, async: async }); + } + else if (async) { + env.stack.push({ async: true }); + } + return value; + };`},U7={name:"typescript:disposeResources",importName:"__disposeResources",scoped:!1,text:` + var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) { + return function (env) { + function fail(e) { + env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e; + env.hasError = true; + } + function next() { + while (env.stack.length) { + var rec = env.stack.pop(); + try { + var result = rec.dispose && rec.dispose.call(rec.value); + if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); }); + } + catch (e) { + fail(e); + } + } + if (env.hasError) throw env.error; + } + return next(); + }; + })(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { + var e = new Error(message); + return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; + });`},wk={name:"typescript:async-super",scoped:!0,text:uH` + const ${"_superIndex"} = name => super[name];`},Ok={name:"typescript:advanced-async-super",scoped:!0,text:uH` + const ${"_superIndex"} = (function (geti, seti) { + const cache = Object.create(null); + return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } }); + })(name => super[name], (name, value) => super[name] = value);`}}});function hp(e){return e.kind===9}function H7(e){return e.kind===10}function Na(e){return e.kind===11}function $A(e){return e.kind===12}function fH(e){return e.kind===14}function QA(e){return e.kind===15}function ZA(e){return e.kind===16}function mH(e){return e.kind===17}function q7(e){return e.kind===18}function J7(e){return e.kind===26}function bae(e){return e.kind===28}function _H(e){return e.kind===40}function hH(e){return e.kind===41}function Fk(e){return e.kind===42}function Wk(e){return e.kind===54}function Ky(e){return e.kind===58}function Eae(e){return e.kind===59}function K7(e){return e.kind===29}function Sae(e){return e.kind===39}function Ve(e){return e.kind===80}function Xi(e){return e.kind===81}function eI(e){return e.kind===95}function X7(e){return e.kind===90}function hN(e){return e.kind===134}function Tae(e){return e.kind===131}function gH(e){return e.kind===135}function Aae(e){return e.kind===148}function tI(e){return e.kind===126}function Iae(e){return e.kind===128}function xae(e){return e.kind===164}function Rae(e){return e.kind===129}function gN(e){return e.kind===108}function vN(e){return e.kind===102}function Dae(e){return e.kind===84}function Ad(e){return e.kind===166}function Za(e){return e.kind===167}function _l(e){return e.kind===168}function Co(e){return e.kind===169}function Eu(e){return e.kind===170}function gp(e){return e.kind===171}function Jo(e){return e.kind===172}function yh(e){return e.kind===173}function jl(e){return e.kind===174}function Il(e){return e.kind===175}function Pl(e){return e.kind===176}function Zp(e){return e.kind===177}function vp(e){return e.kind===178}function nI(e){return e.kind===179}function zk(e){return e.kind===180}function j1(e){return e.kind===181}function Bk(e){return e.kind===182}function Rf(e){return e.kind===183}function bh(e){return e.kind===184}function OR(e){return e.kind===185}function rI(e){return e.kind===186}function yp(e){return e.kind===187}function Gk(e){return e.kind===188}function iI(e){return e.kind===189}function FR(e){return e.kind===202}function Y7(e){return e.kind===190}function $7(e){return e.kind===191}function Xy(e){return e.kind===192}function oI(e){return e.kind===193}function aI(e){return e.kind===194}function MS(e){return e.kind===195}function LS(e){return e.kind===196}function Vk(e){return e.kind===197}function kS(e){return e.kind===198}function wS(e){return e.kind===199}function WR(e){return e.kind===200}function Yy(e){return e.kind===201}function lg(e){return e.kind===205}function vH(e){return e.kind===204}function Cae(e){return e.kind===203}function om(e){return e.kind===206}function U1(e){return e.kind===207}function Qa(e){return e.kind===208}function pd(e){return e.kind===209}function wa(e){return e.kind===210}function zr(e){return e.kind===211}function Ys(e){return e.kind===212}function la(e){return e.kind===213}function H1(e){return e.kind===214}function q1(e){return e.kind===215}function Nae(e){return e.kind===216}function Wd(e){return e.kind===217}function ws(e){return e.kind===218}function Bs(e){return e.kind===219}function Pae(e){return e.kind===220}function zR(e){return e.kind===221}function sI(e){return e.kind===222}function $y(e){return e.kind===223}function Qy(e){return e.kind===224}function yH(e){return e.kind===225}function _r(e){return e.kind===226}function BR(e){return e.kind===227}function Q7(e){return e.kind===228}function Z7(e){return e.kind===229}function Zm(e){return e.kind===230}function Zc(e){return e.kind===231}function Vc(e){return e.kind===232}function Hv(e){return e.kind===233}function jk(e){return e.kind===234}function bH(e){return e.kind===238}function lI(e){return e.kind===235}function yN(e){return e.kind===236}function ASe(e){return e.kind===237}function e5(e){return e.kind===360}function bN(e){return e.kind===361}function EN(e){return e.kind===239}function Mae(e){return e.kind===240}function Xo(e){return e.kind===241}function Ml(e){return e.kind===243}function EH(e){return e.kind===242}function eu(e){return e.kind===244}function OS(e){return e.kind===245}function ISe(e){return e.kind===246}function xSe(e){return e.kind===247}function FS(e){return e.kind===248}function t5(e){return e.kind===249}function Uk(e){return e.kind===250}function RSe(e){return e.kind===251}function DSe(e){return e.kind===252}function Rm(e){return e.kind===253}function Lae(e){return e.kind===254}function SN(e){return e.kind===255}function J1(e){return e.kind===256}function SH(e){return e.kind===257}function WS(e){return e.kind===258}function CSe(e){return e.kind===259}function Oi(e){return e.kind===260}function jc(e){return e.kind===261}function Sc(e){return e.kind===262}function Tc(e){return e.kind===263}function fd(e){return e.kind===264}function Dm(e){return e.kind===265}function v0(e){return e.kind===266}function Jl(e){return e.kind===267}function k_(e){return e.kind===268}function TN(e){return e.kind===269}function Hk(e){return e.kind===270}function tu(e){return e.kind===271}function Lc(e){return e.kind===272}function Eh(e){return e.kind===273}function NSe(e){return e.kind===302}function kae(e){return e.kind===300}function PSe(e){return e.kind===301}function cI(e){return e.kind===300}function wae(e){return e.kind===301}function Zy(e){return e.kind===274}function Sh(e){return e.kind===280}function jg(e){return e.kind===275}function tp(e){return e.kind===276}function Ll(e){return e.kind===277}function Kl(e){return e.kind===278}function Df(e){return e.kind===279}function Ju(e){return e.kind===281}function MSe(e){return e.kind===282}function TH(e){return e.kind===359}function uI(e){return e.kind===362}function Th(e){return e.kind===283}function cg(e){return e.kind===284}function zS(e){return e.kind===285}function w_(e){return e.kind===286}function K1(e){return e.kind===287}function X1(e){return e.kind===288}function dI(e){return e.kind===289}function Oae(e){return e.kind===290}function O_(e){return e.kind===291}function Y1(e){return e.kind===292}function pI(e){return e.kind===293}function AN(e){return e.kind===294}function e_(e){return e.kind===295}function GR(e){return e.kind===296}function IN(e){return e.kind===297}function ef(e){return e.kind===298}function $1(e){return e.kind===299}function _c(e){return e.kind===303}function np(e){return e.kind===304}function qv(e){return e.kind===305}function Q1(e){return e.kind===306}function Fae(e){return e.kind===308}function no(e){return e.kind===312}function AH(e){return e.kind===313}function BS(e){return e.kind===314}function Z1(e){return e.kind===316}function xN(e){return e.kind===317}function y0(e){return e.kind===318}function Wae(e){return e.kind===331}function zae(e){return e.kind===332}function LSe(e){return e.kind===333}function Bae(e){return e.kind===319}function Gae(e){return e.kind===320}function VR(e){return e.kind===321}function n5(e){return e.kind===322}function IH(e){return e.kind===323}function jR(e){return e.kind===324}function r5(e){return e.kind===325}function kSe(e){return e.kind===326}function t_(e){return e.kind===327}function GS(e){return e.kind===329}function b0(e){return e.kind===330}function fI(e){return e.kind===335}function wSe(e){return e.kind===337}function Vae(e){return e.kind===339}function xH(e){return e.kind===345}function RH(e){return e.kind===340}function DH(e){return e.kind===341}function CH(e){return e.kind===342}function NH(e){return e.kind===343}function i5(e){return e.kind===344}function UR(e){return e.kind===346}function PH(e){return e.kind===338}function OSe(e){return e.kind===354}function qk(e){return e.kind===347}function n_(e){return e.kind===348}function o5(e){return e.kind===349}function MH(e){return e.kind===350}function RN(e){return e.kind===351}function am(e){return e.kind===352}function VS(e){return e.kind===353}function FSe(e){return e.kind===334}function jae(e){return e.kind===355}function a5(e){return e.kind===336}function s5(e){return e.kind===357}function WSe(e){return e.kind===356}function HR(e){return e.kind===358}var Hze=A({"src/compiler/factory/nodeTests.ts"(){"use strict";ia()}});function Jk(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function jS(e,t,r,i){if(Za(r))return dt(e.createElementAccessExpression(t,r.expression),i);{let o=dt(Yh(r)?e.createPropertyAccessExpression(t,r):e.createElementAccessExpression(t,r),r);return M_(o,128),o}}function Uae(e,t){let r=Ah.createIdentifier(e||"React");return qa(r,Lo(t)),r}function Hae(e,t,r){if(Ad(t)){let i=Hae(e,t.left,r),o=e.createIdentifier(Sr(t.right));return o.escapedText=t.right.escapedText,e.createPropertyAccessExpression(i,o)}else return Uae(Sr(t),r)}function LH(e,t,r,i){return t?Hae(e,t,i):e.createPropertyAccessExpression(Uae(r,i),"createElement")}function qze(e,t,r,i){return t?Hae(e,t,i):e.createPropertyAccessExpression(Uae(r,i),"Fragment")}function qae(e,t,r,i,o,s){let l=[r];if(i&&l.push(i),o&&o.length>0)if(i||l.push(e.createNull()),o.length>1)for(let u of o)Ku(u),l.push(u);else l.push(o[0]);return dt(e.createCallExpression(t,void 0,l),s)}function Jae(e,t,r,i,o,s,l){let p=[qze(e,r,i,s),e.createNull()];if(o&&o.length>0)if(o.length>1)for(let g of o)Ku(g),p.push(g);else p.push(o[0]);return dt(e.createCallExpression(LH(e,t,i,s),void 0,p),l)}function kH(e,t,r){if(jc(t)){let i=Ha(t.declarations),o=e.updateVariableDeclaration(i,i.name,void 0,void 0,r);return dt(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[o])),t)}else{let i=dt(e.createAssignment(t,r),t);return dt(e.createExpressionStatement(i),t)}}function zSe(e,t,r){return Xo(t)?e.updateBlock(t,dt(e.createNodeArray([r,...t.statements]),t.statements)):e.createBlock(e.createNodeArray([t,r]),!0)}function Kk(e,t){if(Ad(t)){let r=Kk(e,t.left),i=qa(dt(e.cloneNode(t.right),t.right),t.right.parent);return dt(e.createPropertyAccessExpression(r,i),t)}else return qa(dt(e.cloneNode(t),t),t.parent)}function wH(e,t){return Ve(t)?e.createStringLiteralFromNode(t):Za(t)?qa(dt(e.cloneNode(t.expression),t.expression),t.expression.parent):qa(dt(e.cloneNode(t),t),t.parent)}function Jze(e,t,r,i,o){let{firstAccessor:s,getAccessor:l,setAccessor:u}=RS(t,r);if(r===s)return dt(e.createObjectDefinePropertyCall(i,wH(e,r.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:l&&dt(Pr(e.createFunctionExpression(b1(l),void 0,void 0,void 0,l.parameters,void 0,l.body),l),l),set:u&&dt(Pr(e.createFunctionExpression(b1(u),void 0,void 0,void 0,u.parameters,void 0,u.body),u),u)},!o)),s)}function Kze(e,t,r){return Pr(dt(e.createAssignment(jS(e,r,t.name,t.name),t.initializer),t),t)}function Xze(e,t,r){return Pr(dt(e.createAssignment(jS(e,r,t.name,t.name),e.cloneNode(t.name)),t),t)}function Yze(e,t,r){return Pr(dt(e.createAssignment(jS(e,r,t.name,t.name),Pr(dt(e.createFunctionExpression(b1(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}function Kae(e,t,r,i){switch(r.name&&Xi(r.name)&&C.failBadSyntaxKind(r.name,"Private identifiers are not allowed in object literals."),r.kind){case 177:case 178:return Jze(e,t.properties,r,i,!!t.multiLine);case 303:return Kze(e,r,i);case 304:return Xze(e,r,i);case 174:return Yze(e,r,i)}}function l5(e,t,r,i,o){let s=t.operator;C.assert(s===46||s===47,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");let l=e.createTempVariable(i);r=e.createAssignment(l,r),dt(r,t.operand);let u=Qy(t)?e.createPrefixUnaryExpression(s,l):e.createPostfixUnaryExpression(l,s);return dt(u,t),o&&(u=e.createAssignment(o,u),dt(u,t)),r=e.createComma(r,u),dt(r,t),yH(t)&&(r=e.createComma(r,l),dt(r,t)),r}function OH(e){return(Va(e)&65536)!==0}function Ug(e){return(Va(e)&32768)!==0}function c5(e){return(Va(e)&16384)!==0}function BSe(e){return Na(e.expression)&&e.expression.text==="use strict"}function FH(e){for(let t of e)if(Am(t)){if(BSe(t))return t}else break}function Xae(e){let t=Xc(e);return t!==void 0&&Am(t)&&BSe(t)}function Xk(e){return e.kind===226&&e.operatorToken.kind===28}function DN(e){return Xk(e)||bN(e)}function qR(e){return Wd(e)&&cr(e)&&!!r0(e)}function u5(e){let t=i0(e);return C.assertIsDefined(t),t}function d5(e,t=15){switch(e.kind){case 217:return t&16&&qR(e)?!1:(t&1)!==0;case 216:case 234:case 233:case 238:return(t&2)!==0;case 235:return(t&4)!==0;case 360:return(t&8)!==0}return!1}function Xl(e,t=15){for(;d5(e,t);)e=e.expression;return e}function Yae(e,t=15){let r=e.parent;for(;d5(r,t);)r=r.parent,C.assert(r);return r}function GSe(e){return Xl(e,6)}function Ku(e){return _7(e,!0)}function Yk(e){let t=Nl(e,no),r=t&&t.emitNode;return r&&r.externalHelpersModuleName}function $ae(e){let t=Nl(e,no),r=t&&t.emitNode;return!!r&&(!!r.externalHelpersModuleName||!!r.externalHelpers)}function WH(e,t,r,i,o,s,l){if(i.importHelpers&&NA(r,i)){let u,p=ku(i);if(p>=5&&p<=99||r.impliedNodeFormat===99){let g=g7(r);if(g){let m=[];for(let b of g)if(!b.scoped){let T=b.importName;T&&bf(m,T)}if(Et(m)){m.sort(ju),u=e.createNamedImports(Ft(m,I=>F6(r,I)?e.createImportSpecifier(!1,void 0,e.createIdentifier(I)):e.createImportSpecifier(!1,e.createIdentifier(I),t.getUnscopedHelperName(I))));let b=Nl(r,no),T=wu(b);T.externalHelpers=!0}}}else{let g=Qae(e,r,i,o,s||l);g&&(u=e.createNamespaceImport(g))}if(u){let g=e.createImportDeclaration(void 0,e.createImportClause(!1,void 0,u),e.createStringLiteral(Hy),void 0);return JA(g,2),g}}}function Qae(e,t,r,i,o){if(r.importHelpers&&NA(t,r)){let s=Yk(t);if(s)return s;let l=ku(r),u=(i||vh(r)&&o)&&l!==4&&(l<5||t.impliedNodeFormat===1);if(!u){let p=g7(t);if(p){for(let g of p)if(!g.scoped){u=!0;break}}}if(u){let p=Nl(t,no),g=wu(p);return g.externalHelpersModuleName||(g.externalHelpersModuleName=e.createUniqueName(Hy))}}}function JR(e,t,r){let i=dR(t);if(i&&!MA(t)&&!z6(t)){let o=i.name;return ol(o)?o:e.createIdentifier(A1(r,o)||Sr(o))}if(t.kind===272&&t.importClause||t.kind===278&&t.moduleSpecifier)return e.getGeneratedNameForNode(t)}function mI(e,t,r,i,o,s){let l=uR(t);if(l&&Na(l))return Qze(t,i,e,o,s)||$ze(e,l,r)||e.cloneNode(l)}function $ze(e,t,r){let i=r.renamedDependencies&&r.renamedDependencies.get(t.text);return i?e.createStringLiteral(i):void 0}function $k(e,t,r,i){if(t){if(t.moduleName)return e.createStringLiteral(t.moduleName);if(!t.isDeclarationFile&&Ps(i))return e.createStringLiteral(tU(r,t.fileName))}}function Qze(e,t,r,i,o){return $k(r,i.getExternalModuleFileFromDeclaration(e),t,o)}function Qk(e){if(cL(e))return e.initializer;if(_c(e)){let t=e.initializer;return Mc(t,!0)?t.right:void 0}if(np(e))return e.objectAssignmentInitializer;if(Mc(e,!0))return e.right;if(Zm(e))return Qk(e.expression)}function eb(e){if(cL(e))return e.name;if(wg(e)){switch(e.kind){case 303:return eb(e.initializer);case 304:return e.name;case 305:return eb(e.expression)}return}return Mc(e,!0)?eb(e.left):Zm(e)?eb(e.expression):e}function p5(e){switch(e.kind){case 169:case 208:return e.dotDotDotToken;case 230:case 305:return e}}function zH(e){let t=f5(e);return C.assert(!!t||qv(e),"Invalid property name for binding element."),t}function f5(e){switch(e.kind){case 208:if(e.propertyName){let r=e.propertyName;return Xi(r)?C.failBadSyntaxKind(r):Za(r)&&VSe(r.expression)?r.expression:r}break;case 303:if(e.name){let r=e.name;return Xi(r)?C.failBadSyntaxKind(r):Za(r)&&VSe(r.expression)?r.expression:r}break;case 305:return e.name&&Xi(e.name)?C.failBadSyntaxKind(e.name):e.name}let t=eb(e);if(t&&ic(t))return t}function VSe(e){let t=e.kind;return t===11||t===9}function KR(e){switch(e.kind){case 206:case 207:case 209:return e.elements;case 210:return e.properties}}function BH(e){if(e){let t=e;for(;;){if(Ve(t)||!t.body)return Ve(t)?t:t.name;t=t.body}}}function jSe(e){let t=e.kind;return t===176||t===178}function Zae(e){let t=e.kind;return t===176||t===177||t===178}function GH(e){let t=e.kind;return t===303||t===304||t===262||t===176||t===181||t===175||t===282||t===243||t===264||t===265||t===266||t===267||t===271||t===272||t===270||t===278||t===277}function ese(e){let t=e.kind;return t===175||t===303||t===304||t===282||t===270}function tse(e){return Ky(e)||Wk(e)}function nse(e){return Ve(e)||Vk(e)}function rse(e){return Aae(e)||_H(e)||hH(e)}function ise(e){return Ky(e)||_H(e)||hH(e)}function ose(e){return Ve(e)||Na(e)}function USe(e){let t=e.kind;return t===106||t===112||t===97||S1(e)||Qy(e)}function Zze(e){return e===43}function eBe(e){return e===42||e===44||e===45}function tBe(e){return Zze(e)||eBe(e)}function nBe(e){return e===40||e===41}function rBe(e){return nBe(e)||tBe(e)}function iBe(e){return e===48||e===49||e===50}function VH(e){return iBe(e)||rBe(e)}function oBe(e){return e===30||e===33||e===32||e===34||e===104||e===103}function aBe(e){return oBe(e)||VH(e)}function sBe(e){return e===35||e===37||e===36||e===38}function lBe(e){return sBe(e)||aBe(e)}function cBe(e){return e===51||e===52||e===53}function uBe(e){return cBe(e)||lBe(e)}function dBe(e){return e===56||e===57}function pBe(e){return dBe(e)||uBe(e)}function fBe(e){return e===61||pBe(e)||zv(e)}function mBe(e){return fBe(e)||e===28}function ase(e){return mBe(e.kind)}function m5(e,t,r,i,o,s){let l=new JSe(e,t,r,i,o,s);return u;function u(p,g){let m={value:void 0},b=[UH.enter],T=[p],I=[void 0],R=0;for(;b[R]!==UH.done;)R=b[R](l,R,b,T,I,m,g);return C.assertEqual(R,0),m.value}}function HSe(e){return e===95||e===90}function Zk(e){let t=e.kind;return HSe(t)}function qSe(e){let t=e.kind;return kv(t)&&!HSe(t)}function sse(e,t){if(t!==void 0)return t.length===0?t:dt(e.createNodeArray([],t.hasTrailingComma),t)}function ew(e){var t;let r=e.emitNode.autoGenerate;if(r.flags&4){let i=r.id,o=e,s=o.original;for(;s;){o=s;let l=(t=o.emitNode)==null?void 0:t.autoGenerate;if(Yh(o)&&(l===void 0||l.flags&4&&l.id!==i))break;s=o.original}return o}return e}function XR(e,t){return typeof e=="object"?E0(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function _Be(e,t){return typeof e=="string"?e:hBe(e,C.checkDefined(t))}function hBe(e,t){return cS(e)?t(e).slice(1):ol(e)?t(e):Xi(e)?e.escapedText.slice(1):Sr(e)}function E0(e,t,r,i,o){return t=XR(t,o),i=XR(i,o),r=_Be(r,o),`${e?"#":""}${t}${r}${i}`}function jH(e,t,r,i){return e.updatePropertyDeclaration(t,r,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,i)}function lse(e,t,r,i,o=e.createThis()){return e.createGetAccessorDeclaration(r,i,[],void 0,e.createBlock([e.createReturnStatement(e.createPropertyAccessExpression(o,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")))]))}function cse(e,t,r,i,o=e.createThis()){return e.createSetAccessorDeclaration(r,i,[e.createParameterDeclaration(void 0,void 0,"value")],e.createBlock([e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(o,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")),e.createIdentifier("value")))]))}function _5(e){let t=e.expression;for(;;){if(t=Xl(t),bN(t)){t=Ya(t.elements);continue}if(Xk(t)){t=t.right;continue}if(Mc(t,!0)&&ol(t.left))return t;break}}function gBe(e){return Wd(e)&&Xs(e)&&!e.emitNode}function h5(e,t){if(gBe(e))h5(e.expression,t);else if(Xk(e))h5(e.left,t),h5(e.right,t);else if(bN(e))for(let r of e.elements)h5(r,t);else t.push(e)}function use(e){let t=[];return h5(e,t),t}function tw(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(let t of KR(e)){let r=eb(t);if(r&&vC(r)&&(r.transformFlags&65536||r.transformFlags&128&&tw(r)))return!0}return!1}var UH,JSe,vBe=A({"src/compiler/factory/utilities.ts"(){"use strict";ia(),(e=>{function t(m,b,T,I,R,M,N){let O=b>0?R[b-1]:void 0;return C.assertEqual(T[b],t),R[b]=m.onEnter(I[b],O,N),T[b]=u(m,t),b}e.enter=t;function r(m,b,T,I,R,M,N){C.assertEqual(T[b],r),C.assertIsDefined(m.onLeft),T[b]=u(m,r);let O=m.onLeft(I[b].left,R[b],I[b]);return O?(g(b,I,O),p(b,T,I,R,O)):b}e.left=r;function i(m,b,T,I,R,M,N){return C.assertEqual(T[b],i),C.assertIsDefined(m.onOperator),T[b]=u(m,i),m.onOperator(I[b].operatorToken,R[b],I[b]),b}e.operator=i;function o(m,b,T,I,R,M,N){C.assertEqual(T[b],o),C.assertIsDefined(m.onRight),T[b]=u(m,o);let O=m.onRight(I[b].right,R[b],I[b]);return O?(g(b,I,O),p(b,T,I,R,O)):b}e.right=o;function s(m,b,T,I,R,M,N){C.assertEqual(T[b],s),T[b]=u(m,s);let O=m.onExit(I[b],R[b]);if(b>0){if(b--,m.foldState){let H=T[b]===s?"right":"left";R[b]=m.foldState(R[b],O,H)}}else M.value=O;return b}e.exit=s;function l(m,b,T,I,R,M,N){return C.assertEqual(T[b],l),b}e.done=l;function u(m,b){switch(b){case t:if(m.onLeft)return r;case r:if(m.onOperator)return i;case i:if(m.onRight)return o;case o:return s;case s:return l;case l:return l;default:C.fail("Invalid state")}}e.nextState=u;function p(m,b,T,I,R){return m++,b[m]=t,T[m]=R,I[m]=void 0,m}function g(m,b,T){if(C.shouldAssert(2))for(;m>=0;)C.assert(b[m]!==T,"Circular traversal detected."),m--}})(UH||(UH={})),JSe=class{constructor(e,t,r,i,o,s){this.onEnter=e,this.onLeft=t,this.onOperator=r,this.onRight=i,this.onExit=o,this.foldState=s}}}});function dt(e,t){return t?gh(e,t.pos,t.end):e}function Cm(e){let t=e.kind;return t===168||t===169||t===171||t===172||t===173||t===174||t===176||t===177||t===178||t===181||t===185||t===218||t===219||t===231||t===243||t===262||t===263||t===264||t===265||t===266||t===267||t===271||t===272||t===277||t===278}function US(e){let t=e.kind;return t===169||t===172||t===174||t===177||t===178||t===231||t===263}var yBe=A({"src/compiler/factory/utilitiesPublic.ts"(){"use strict";ia()}});function Xt(e,t){return t&&e(t)}function ji(e,t,r){if(r){if(t)return t(r);for(let i of r){let o=e(i);if(o)return o}}}function HH(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function nw(e){return Ke(e.statements,bBe)||EBe(e)}function bBe(e){return Cm(e)&&SBe(e,95)||tu(e)&&Th(e.moduleReference)||Lc(e)||Ll(e)||Kl(e)?e:void 0}function EBe(e){return e.flags&8388608?KSe(e):void 0}function KSe(e){return TBe(e)?e:Ho(e,KSe)}function SBe(e,t){return Et(e.modifiers,r=>r.kind===t)}function TBe(e){return yN(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function XSe(e,t,r){return ji(t,r,e.typeParameters)||ji(t,r,e.parameters)||Xt(t,e.type)}function YSe(e,t,r){return ji(t,r,e.types)}function $Se(e,t,r){return Xt(t,e.type)}function QSe(e,t,r){return ji(t,r,e.elements)}function ZSe(e,t,r){return Xt(t,e.expression)||Xt(t,e.questionDotToken)||ji(t,r,e.typeArguments)||ji(t,r,e.arguments)}function eTe(e,t,r){return ji(t,r,e.statements)}function tTe(e,t,r){return Xt(t,e.label)}function nTe(e,t,r){return ji(t,r,e.modifiers)||Xt(t,e.name)||ji(t,r,e.typeParameters)||ji(t,r,e.heritageClauses)||ji(t,r,e.members)}function rTe(e,t,r){return ji(t,r,e.elements)}function iTe(e,t,r){return Xt(t,e.propertyName)||Xt(t,e.name)}function oTe(e,t,r){return Xt(t,e.tagName)||ji(t,r,e.typeArguments)||Xt(t,e.attributes)}function CN(e,t,r){return Xt(t,e.type)}function aTe(e,t,r){return Xt(t,e.tagName)||(e.isNameFirst?Xt(t,e.name)||Xt(t,e.typeExpression):Xt(t,e.typeExpression)||Xt(t,e.name))||(typeof e.comment=="string"?void 0:ji(t,r,e.comment))}function NN(e,t,r){return Xt(t,e.tagName)||Xt(t,e.typeExpression)||(typeof e.comment=="string"?void 0:ji(t,r,e.comment))}function dse(e,t,r){return Xt(t,e.name)}function YR(e,t,r){return Xt(t,e.tagName)||(typeof e.comment=="string"?void 0:ji(t,r,e.comment))}function ABe(e,t,r){return Xt(t,e.expression)}function Ho(e,t,r){if(e===void 0||e.kind<=165)return;let i=hTe[e.kind];return i===void 0?void 0:i(e,t,r)}function PN(e,t,r){let i=sTe(e),o=[];for(;o.length=0;--u)i.push(s[u]),o.push(l)}else{let u=t(s,l);if(u){if(u==="skip")continue;return u}if(s.kind>=166)for(let p of sTe(s))i.push(p),o.push(s)}}}function sTe(e){let t=[];return Ho(e,r,r),t;function r(i){t.unshift(i)}}function lTe(e){e.externalModuleIndicator=nw(e)}function rw(e,t,r,i=!1,o){var s,l,u,p;(s=lr)==null||s.push(lr.Phase.Parse,"createSourceFile",{path:e},!0),nl("beforeParse");let g;(l=rd)==null||l.logStartParseSourceFile(e);let{languageVersion:m,setExternalModuleIndicator:b,impliedNodeFormat:T,jsDocParsingMode:I}=typeof r=="object"?r:{languageVersion:r};if(m===100)g=T0.parseSourceFile(e,t,m,void 0,i,6,$a,I);else{let R=T===void 0?b:M=>(M.impliedNodeFormat=T,(b||lTe)(M));g=T0.parseSourceFile(e,t,m,void 0,i,o,R,I)}return(u=rd)==null||u.logStopParseSourceFile(),nl("afterParse"),Yp("Parse","beforeParse","afterParse"),(p=lr)==null||p.pop(),g}function _I(e,t){return T0.parseIsolatedEntityName(e,t)}function iw(e,t){return T0.parseJsonText(e,t)}function ac(e){return e.externalModuleIndicator!==void 0}function qH(e,t,r,i=!1){let o=$H.updateSourceFile(e,t,r,i);return o.flags|=e.flags&12582912,o}function pse(e,t,r){let i=T0.JSDocParser.parseIsolatedJSDocComment(e,t,r);return i&&i.jsDoc&&T0.fixupParentReferences(i.jsDoc),i}function cTe(e,t,r){return T0.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r)}function Su(e){return JH(e)!==void 0}function JH(e){let t=Wx(e,Ak,!1);if(t)return t;if(Tl(e,".ts")){let r=rc(e).lastIndexOf(".d.");if(r>=0)return e.substring(r)}}function IBe(e,t,r,i){if(e){if(e==="import")return 99;if(e==="require")return 1;i(t,r-t,f.resolution_mode_should_be_either_require_or_import)}}function KH(e,t){let r=[];for(let i of Kh(t,0)||et){let o=t.substring(i.pos,i.end);RBe(r,i,o)}e.pragmas=new Map;for(let i of r){if(e.pragmas.has(i.name)){let o=e.pragmas.get(i.name);o instanceof Array?o.push(i.args):e.pragmas.set(i.name,[o,i.args]);continue}e.pragmas.set(i.name,i.args)}}function XH(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach((r,i)=>{switch(i){case"reference":{let o=e.referencedFiles,s=e.typeReferenceDirectives,l=e.libReferenceDirectives;Ke(gA(r),u=>{let{types:p,lib:g,path:m,["resolution-mode"]:b}=u.arguments;if(u.arguments["no-default-lib"])e.hasNoDefaultLib=!0;else if(p){let T=IBe(b,p.pos,p.end,t);s.push({pos:p.pos,end:p.end,fileName:p.value,...T?{resolutionMode:T}:{}})}else g?l.push({pos:g.pos,end:g.end,fileName:g.value}):m?o.push({pos:m.pos,end:m.end,fileName:m.value}):t(u.range.pos,u.range.end-u.range.pos,f.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=Ft(gA(r),o=>({name:o.arguments.name,path:o.arguments.path}));break}case"amd-module":{if(r instanceof Array)for(let o of r)e.moduleName&&t(o.range.pos,o.range.end-o.range.pos,f.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=o.arguments.name;else e.moduleName=r.arguments.name;break}case"ts-nocheck":case"ts-check":{Ke(gA(r),o=>{(!e.checkJsDirective||o.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:i==="ts-check",end:o.range.end,pos:o.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:C.fail("Unhandled pragma kind")}})}function xBe(e){if(QH.has(e))return QH.get(e);let t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return QH.set(e,t),t}function RBe(e,t,r){let i=t.kind===2&&gTe.exec(r);if(i){let s=i[1].toLowerCase(),l=WM[s];if(!l||!(l.kind&1))return;if(l.args){let u={};for(let p of l.args){let m=xBe(p.name).exec(r);if(!m&&!p.optional)return;if(m){let b=m[2]||m[3];if(p.captureSpan){let T=t.pos+m.index+m[1].length+1;u[p.name]={value:b,pos:T,end:T+b.length}}else u[p.name]=b}}e.push({name:s,args:{arguments:u,range:t}})}else e.push({name:s,args:{arguments:{},range:t}});return}let o=t.kind===2&&vTe.exec(r);if(o)return uTe(e,t,2,o);if(t.kind===3){let s=/@(\S+)(\s+.*)?$/gim,l;for(;l=s.exec(r);)uTe(e,t,4,l)}}function uTe(e,t,r,i){if(!i)return;let o=i[1].toLowerCase(),s=WM[o];if(!s||!(s.kind&r))return;let l=i[2],u=DBe(s,l);u!=="fail"&&e.push({name:o,args:{arguments:u,range:t}})}function DBe(e,t){if(!t)return{};if(!e.args)return{};let r=t.trim().split(/\s+/),i={};for(let o=0;onew(_Te||(_Te=lu.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(fTe||(fTe=lu.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(mTe||(mTe=lu.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(pTe||(pTe=lu.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(dTe||(dTe=lu.getNodeConstructor()))(e,-1,-1)},Ah=Rk(1,YH),hTe={166:function(t,r,i){return Xt(r,t.left)||Xt(r,t.right)},168:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.name)||Xt(r,t.constraint)||Xt(r,t.default)||Xt(r,t.expression)},304:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.name)||Xt(r,t.questionToken)||Xt(r,t.exclamationToken)||Xt(r,t.equalsToken)||Xt(r,t.objectAssignmentInitializer)},305:function(t,r,i){return Xt(r,t.expression)},169:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.dotDotDotToken)||Xt(r,t.name)||Xt(r,t.questionToken)||Xt(r,t.type)||Xt(r,t.initializer)},172:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.name)||Xt(r,t.questionToken)||Xt(r,t.exclamationToken)||Xt(r,t.type)||Xt(r,t.initializer)},171:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.name)||Xt(r,t.questionToken)||Xt(r,t.type)||Xt(r,t.initializer)},303:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.name)||Xt(r,t.questionToken)||Xt(r,t.exclamationToken)||Xt(r,t.initializer)},260:function(t,r,i){return Xt(r,t.name)||Xt(r,t.exclamationToken)||Xt(r,t.type)||Xt(r,t.initializer)},208:function(t,r,i){return Xt(r,t.dotDotDotToken)||Xt(r,t.propertyName)||Xt(r,t.name)||Xt(r,t.initializer)},181:function(t,r,i){return ji(r,i,t.modifiers)||ji(r,i,t.typeParameters)||ji(r,i,t.parameters)||Xt(r,t.type)},185:function(t,r,i){return ji(r,i,t.modifiers)||ji(r,i,t.typeParameters)||ji(r,i,t.parameters)||Xt(r,t.type)},184:function(t,r,i){return ji(r,i,t.modifiers)||ji(r,i,t.typeParameters)||ji(r,i,t.parameters)||Xt(r,t.type)},179:XSe,180:XSe,174:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.asteriskToken)||Xt(r,t.name)||Xt(r,t.questionToken)||Xt(r,t.exclamationToken)||ji(r,i,t.typeParameters)||ji(r,i,t.parameters)||Xt(r,t.type)||Xt(r,t.body)},173:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.name)||Xt(r,t.questionToken)||ji(r,i,t.typeParameters)||ji(r,i,t.parameters)||Xt(r,t.type)},176:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.name)||ji(r,i,t.typeParameters)||ji(r,i,t.parameters)||Xt(r,t.type)||Xt(r,t.body)},177:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.name)||ji(r,i,t.typeParameters)||ji(r,i,t.parameters)||Xt(r,t.type)||Xt(r,t.body)},178:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.name)||ji(r,i,t.typeParameters)||ji(r,i,t.parameters)||Xt(r,t.type)||Xt(r,t.body)},262:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.asteriskToken)||Xt(r,t.name)||ji(r,i,t.typeParameters)||ji(r,i,t.parameters)||Xt(r,t.type)||Xt(r,t.body)},218:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.asteriskToken)||Xt(r,t.name)||ji(r,i,t.typeParameters)||ji(r,i,t.parameters)||Xt(r,t.type)||Xt(r,t.body)},219:function(t,r,i){return ji(r,i,t.modifiers)||ji(r,i,t.typeParameters)||ji(r,i,t.parameters)||Xt(r,t.type)||Xt(r,t.equalsGreaterThanToken)||Xt(r,t.body)},175:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.body)},183:function(t,r,i){return Xt(r,t.typeName)||ji(r,i,t.typeArguments)},182:function(t,r,i){return Xt(r,t.assertsModifier)||Xt(r,t.parameterName)||Xt(r,t.type)},186:function(t,r,i){return Xt(r,t.exprName)||ji(r,i,t.typeArguments)},187:function(t,r,i){return ji(r,i,t.members)},188:function(t,r,i){return Xt(r,t.elementType)},189:function(t,r,i){return ji(r,i,t.elements)},192:YSe,193:YSe,194:function(t,r,i){return Xt(r,t.checkType)||Xt(r,t.extendsType)||Xt(r,t.trueType)||Xt(r,t.falseType)},195:function(t,r,i){return Xt(r,t.typeParameter)},205:function(t,r,i){return Xt(r,t.argument)||Xt(r,t.attributes)||Xt(r,t.qualifier)||ji(r,i,t.typeArguments)},302:function(t,r,i){return Xt(r,t.assertClause)},196:$Se,198:$Se,199:function(t,r,i){return Xt(r,t.objectType)||Xt(r,t.indexType)},200:function(t,r,i){return Xt(r,t.readonlyToken)||Xt(r,t.typeParameter)||Xt(r,t.nameType)||Xt(r,t.questionToken)||Xt(r,t.type)||ji(r,i,t.members)},201:function(t,r,i){return Xt(r,t.literal)},202:function(t,r,i){return Xt(r,t.dotDotDotToken)||Xt(r,t.name)||Xt(r,t.questionToken)||Xt(r,t.type)},206:QSe,207:QSe,209:function(t,r,i){return ji(r,i,t.elements)},210:function(t,r,i){return ji(r,i,t.properties)},211:function(t,r,i){return Xt(r,t.expression)||Xt(r,t.questionDotToken)||Xt(r,t.name)},212:function(t,r,i){return Xt(r,t.expression)||Xt(r,t.questionDotToken)||Xt(r,t.argumentExpression)},213:ZSe,214:ZSe,215:function(t,r,i){return Xt(r,t.tag)||Xt(r,t.questionDotToken)||ji(r,i,t.typeArguments)||Xt(r,t.template)},216:function(t,r,i){return Xt(r,t.type)||Xt(r,t.expression)},217:function(t,r,i){return Xt(r,t.expression)},220:function(t,r,i){return Xt(r,t.expression)},221:function(t,r,i){return Xt(r,t.expression)},222:function(t,r,i){return Xt(r,t.expression)},224:function(t,r,i){return Xt(r,t.operand)},229:function(t,r,i){return Xt(r,t.asteriskToken)||Xt(r,t.expression)},223:function(t,r,i){return Xt(r,t.expression)},225:function(t,r,i){return Xt(r,t.operand)},226:function(t,r,i){return Xt(r,t.left)||Xt(r,t.operatorToken)||Xt(r,t.right)},234:function(t,r,i){return Xt(r,t.expression)||Xt(r,t.type)},235:function(t,r,i){return Xt(r,t.expression)},238:function(t,r,i){return Xt(r,t.expression)||Xt(r,t.type)},236:function(t,r,i){return Xt(r,t.name)},227:function(t,r,i){return Xt(r,t.condition)||Xt(r,t.questionToken)||Xt(r,t.whenTrue)||Xt(r,t.colonToken)||Xt(r,t.whenFalse)},230:function(t,r,i){return Xt(r,t.expression)},241:eTe,268:eTe,312:function(t,r,i){return ji(r,i,t.statements)||Xt(r,t.endOfFileToken)},243:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.declarationList)},261:function(t,r,i){return ji(r,i,t.declarations)},244:function(t,r,i){return Xt(r,t.expression)},245:function(t,r,i){return Xt(r,t.expression)||Xt(r,t.thenStatement)||Xt(r,t.elseStatement)},246:function(t,r,i){return Xt(r,t.statement)||Xt(r,t.expression)},247:function(t,r,i){return Xt(r,t.expression)||Xt(r,t.statement)},248:function(t,r,i){return Xt(r,t.initializer)||Xt(r,t.condition)||Xt(r,t.incrementor)||Xt(r,t.statement)},249:function(t,r,i){return Xt(r,t.initializer)||Xt(r,t.expression)||Xt(r,t.statement)},250:function(t,r,i){return Xt(r,t.awaitModifier)||Xt(r,t.initializer)||Xt(r,t.expression)||Xt(r,t.statement)},251:tTe,252:tTe,253:function(t,r,i){return Xt(r,t.expression)},254:function(t,r,i){return Xt(r,t.expression)||Xt(r,t.statement)},255:function(t,r,i){return Xt(r,t.expression)||Xt(r,t.caseBlock)},269:function(t,r,i){return ji(r,i,t.clauses)},296:function(t,r,i){return Xt(r,t.expression)||ji(r,i,t.statements)},297:function(t,r,i){return ji(r,i,t.statements)},256:function(t,r,i){return Xt(r,t.label)||Xt(r,t.statement)},257:function(t,r,i){return Xt(r,t.expression)},258:function(t,r,i){return Xt(r,t.tryBlock)||Xt(r,t.catchClause)||Xt(r,t.finallyBlock)},299:function(t,r,i){return Xt(r,t.variableDeclaration)||Xt(r,t.block)},170:function(t,r,i){return Xt(r,t.expression)},263:nTe,231:nTe,264:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.name)||ji(r,i,t.typeParameters)||ji(r,i,t.heritageClauses)||ji(r,i,t.members)},265:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.name)||ji(r,i,t.typeParameters)||Xt(r,t.type)},266:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.name)||ji(r,i,t.members)},306:function(t,r,i){return Xt(r,t.name)||Xt(r,t.initializer)},267:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.name)||Xt(r,t.body)},271:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.name)||Xt(r,t.moduleReference)},272:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.importClause)||Xt(r,t.moduleSpecifier)||Xt(r,t.attributes)},273:function(t,r,i){return Xt(r,t.name)||Xt(r,t.namedBindings)},300:function(t,r,i){return ji(r,i,t.elements)},301:function(t,r,i){return Xt(r,t.name)||Xt(r,t.value)},270:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.name)},274:function(t,r,i){return Xt(r,t.name)},280:function(t,r,i){return Xt(r,t.name)},275:rTe,279:rTe,278:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.exportClause)||Xt(r,t.moduleSpecifier)||Xt(r,t.attributes)},276:iTe,281:iTe,277:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.expression)},228:function(t,r,i){return Xt(r,t.head)||ji(r,i,t.templateSpans)},239:function(t,r,i){return Xt(r,t.expression)||Xt(r,t.literal)},203:function(t,r,i){return Xt(r,t.head)||ji(r,i,t.templateSpans)},204:function(t,r,i){return Xt(r,t.type)||Xt(r,t.literal)},167:function(t,r,i){return Xt(r,t.expression)},298:function(t,r,i){return ji(r,i,t.types)},233:function(t,r,i){return Xt(r,t.expression)||ji(r,i,t.typeArguments)},283:function(t,r,i){return Xt(r,t.expression)},282:function(t,r,i){return ji(r,i,t.modifiers)},361:function(t,r,i){return ji(r,i,t.elements)},284:function(t,r,i){return Xt(r,t.openingElement)||ji(r,i,t.children)||Xt(r,t.closingElement)},288:function(t,r,i){return Xt(r,t.openingFragment)||ji(r,i,t.children)||Xt(r,t.closingFragment)},285:oTe,286:oTe,292:function(t,r,i){return ji(r,i,t.properties)},291:function(t,r,i){return Xt(r,t.name)||Xt(r,t.initializer)},293:function(t,r,i){return Xt(r,t.expression)},294:function(t,r,i){return Xt(r,t.dotDotDotToken)||Xt(r,t.expression)},287:function(t,r,i){return Xt(r,t.tagName)},295:function(t,r,i){return Xt(r,t.namespace)||Xt(r,t.name)},190:CN,191:CN,316:CN,322:CN,321:CN,323:CN,325:CN,324:function(t,r,i){return ji(r,i,t.parameters)||Xt(r,t.type)},327:function(t,r,i){return(typeof t.comment=="string"?void 0:ji(r,i,t.comment))||ji(r,i,t.tags)},354:function(t,r,i){return Xt(r,t.tagName)||Xt(r,t.name)||(typeof t.comment=="string"?void 0:ji(r,i,t.comment))},317:function(t,r,i){return Xt(r,t.name)},318:function(t,r,i){return Xt(r,t.left)||Xt(r,t.right)},348:aTe,355:aTe,337:function(t,r,i){return Xt(r,t.tagName)||(typeof t.comment=="string"?void 0:ji(r,i,t.comment))},336:function(t,r,i){return Xt(r,t.tagName)||Xt(r,t.class)||(typeof t.comment=="string"?void 0:ji(r,i,t.comment))},335:function(t,r,i){return Xt(r,t.tagName)||Xt(r,t.class)||(typeof t.comment=="string"?void 0:ji(r,i,t.comment))},352:function(t,r,i){return Xt(r,t.tagName)||Xt(r,t.constraint)||ji(r,i,t.typeParameters)||(typeof t.comment=="string"?void 0:ji(r,i,t.comment))},353:function(t,r,i){return Xt(r,t.tagName)||(t.typeExpression&&t.typeExpression.kind===316?Xt(r,t.typeExpression)||Xt(r,t.fullName)||(typeof t.comment=="string"?void 0:ji(r,i,t.comment)):Xt(r,t.fullName)||Xt(r,t.typeExpression)||(typeof t.comment=="string"?void 0:ji(r,i,t.comment)))},345:function(t,r,i){return Xt(r,t.tagName)||Xt(r,t.fullName)||Xt(r,t.typeExpression)||(typeof t.comment=="string"?void 0:ji(r,i,t.comment))},349:NN,351:NN,350:NN,347:NN,357:NN,356:NN,346:NN,330:function(t,r,i){return Ke(t.typeParameters,r)||Ke(t.parameters,r)||Xt(r,t.type)},331:dse,332:dse,333:dse,329:function(t,r,i){return Ke(t.jsDocPropertyTags,r)},334:YR,339:YR,340:YR,341:YR,342:YR,343:YR,338:YR,344:YR,360:ABe},(e=>{var t=Mv(99,!0),r=40960,i,o,s,l,u;function p(Q){return Qe++,Q}var g={createBaseSourceFileNode:Q=>p(new u(Q,0,0)),createBaseIdentifierNode:Q=>p(new s(Q,0,0)),createBasePrivateIdentifierNode:Q=>p(new l(Q,0,0)),createBaseTokenNode:Q=>p(new o(Q,0,0)),createBaseNode:Q=>p(new i(Q,0,0))},m=Rk(11,g),{createNodeArray:b,createNumericLiteral:T,createStringLiteral:I,createLiteralLikeNode:R,createIdentifier:M,createPrivateIdentifier:N,createToken:O,createArrayLiteralExpression:H,createObjectLiteralExpression:K,createPropertyAccessExpression:Z,createPropertyAccessChain:V,createElementAccessExpression:ue,createElementAccessChain:G,createCallExpression:ne,createCallChain:he,createNewExpression:ye,createParenthesizedExpression:$,createBlock:Y,createVariableStatement:oe,createExpressionStatement:fe,createIfStatement:Ne,createWhileStatement:me,createForStatement:ie,createForOfStatement:ve,createVariableDeclaration:Le,createVariableDeclarationList:He}=m,Ee,Ce,Me,Fe,At,Se,je,at,Bt,yt,Qe,gt,nn,rn,Nn,Xn,_n=!0,Qt=!1;function Yt(Q,Re,Xe,It,Ct=!1,qt,Br,Fi=0){var Pi;if(qt=J3(Q,qt),qt===6){let eo=ho(Q,Re,Xe,It,Ct);return sw(eo,(Pi=eo.statements[0])==null?void 0:Pi.expression,eo.parseDiagnostics,!1,void 0),eo.referencedFiles=et,eo.typeReferenceDirectives=et,eo.libReferenceDirectives=et,eo.amdDependencies=et,eo.hasNoDefaultLib=!1,eo.pragmas=z8,eo}ki(Q,Re,Xe,It,qt,Fi);let gi=nr(Xe,Ct,qt,Br||lTe,Fi);return Ro(),gi}e.parseSourceFile=Yt;function vi(Q,Re){ki("",Q,Re,void 0,1,0),ke();let Xe=te(!0),It=J()===1&&!je.length;return Ro(),It?Xe:void 0}e.parseIsolatedEntityName=vi;function ho(Q,Re,Xe=2,It,Ct=!1){ki(Q,Re,Xe,It,6,0),Ce=Xn,ke();let qt=w(),Br,Fi;if(J()===1)Br=Wo([],qt,qt),Fi=fl();else{let eo;for(;J()!==1;){let es;switch(J()){case 23:es=TE();break;case 112:case 97:case 106:es=fl();break;case 41:Mi(()=>ke()===9&&ke()!==59)?es=ti():es=iv();break;case 9:case 11:if(Mi(()=>ke()!==59)){es=$r();break}default:es=iv();break}eo&&Do(eo)?eo.push(es):eo?eo=[eo,es]:(eo=es,J()!==1&&fn(f.Unexpected_token))}let fs=Do(eo)?on(H(eo),qt):C.checkDefined(eo),Cs=fe(fs);on(Cs,qt),Br=Wo([Cs],qt),Fi=Is(1,f.Unexpected_token)}let Pi=zt(Q,2,6,!1,Br,Fi,Ce,$a);Ct&&tt(Pi),Pi.nodeCount=Qe,Pi.identifierCount=nn,Pi.identifiers=gt,Pi.parseDiagnostics=VA(je,Pi),at&&(Pi.jsDocDiagnostics=VA(at,Pi));let gi=Pi;return Ro(),gi}e.parseJsonText=ho;function ki(Q,Re,Xe,It,Ct,qt){switch(i=lu.getNodeConstructor(),o=lu.getTokenConstructor(),s=lu.getIdentifierConstructor(),l=lu.getPrivateIdentifierConstructor(),u=lu.getSourceFileConstructor(),Ee=va(Q),Me=Re,Fe=Xe,Bt=It,At=Ct,Se=dk(Ct),je=[],rn=0,gt=new Map,nn=0,Qe=0,Ce=0,_n=!0,At){case 1:case 2:Xn=524288;break;case 6:Xn=134742016;break;default:Xn=0;break}Qt=!1,t.setText(Me),t.setOnError(Lt),t.setScriptTarget(Fe),t.setLanguageVariant(Se),t.setScriptKind(At),t.setJSDocParsingMode(qt)}function Ro(){t.clearCommentDirectives(),t.setText(""),t.setOnError(void 0),t.setScriptKind(0),t.setJSDocParsingMode(0),Me=void 0,Fe=void 0,Bt=void 0,At=void 0,Se=void 0,Ce=0,je=void 0,at=void 0,rn=0,gt=void 0,Nn=void 0,_n=!0}function nr(Q,Re,Xe,It,Ct){let qt=Su(Ee);qt&&(Xn|=33554432),Ce=Xn,ke();let Br=na(0,sp);C.assert(J()===1);let Fi=ae(),Pi=xr(fl(),Fi),gi=zt(Ee,Q,Xe,qt,Br,Pi,Ce,It);return KH(gi,Me),XH(gi,eo),gi.commentDirectives=t.getCommentDirectives(),gi.nodeCount=Qe,gi.identifierCount=nn,gi.identifiers=gt,gi.parseDiagnostics=VA(je,gi),gi.jsDocParsingMode=Ct,at&&(gi.jsDocDiagnostics=VA(at,gi)),Re&&tt(gi),gi;function eo(fs,Cs,es){je.push(RR(Ee,Me,fs,Cs,es))}}let qr=!1;function xr(Q,Re){if(!Re)return Q;C.assert(!Q.jsDoc);let Xe=Vi(Tj(Q,Me),It=>X_.parseJSDocComment(Q,It.pos,It.end-It.pos));return Xe.length&&(Q.jsDoc=Xe),qr&&(qr=!1,Q.flags|=536870912),Q}function ln(Q){let Re=Bt,Xe=$H.createSyntaxCursor(Q);Bt={currentNode:eo};let It=[],Ct=je;je=[];let qt=0,Br=Pi(Q.statements,0);for(;Br!==-1;){let fs=Q.statements[qt],Cs=Q.statements[Br];Jr(It,Q.statements,qt,Br),qt=gi(Q.statements,Br);let es=ri(Ct,Y_=>Y_.start>=fs.pos),Wf=es>=0?ri(Ct,Y_=>Y_.start>=Cs.pos,es):-1;es>=0&&Jr(je,Ct,es,Wf>=0?Wf:void 0),Eo(()=>{let Y_=Xn;for(Xn|=65536,t.resetTokenState(Cs.pos),ke();J()!==1;){let Sg=t.getTokenFullStart(),lv=$l(0,sp);if(It.push(lv),Sg===t.getTokenFullStart()&&ke(),qt>=0){let cv=Q.statements[qt];if(lv.end===cv.pos)break;lv.end>cv.pos&&(qt=gi(Q.statements,qt+1))}}Xn=Y_},2),Br=qt>=0?Pi(Q.statements,qt):-1}if(qt>=0){let fs=Q.statements[qt];Jr(It,Q.statements,qt);let Cs=ri(Ct,es=>es.start>=fs.pos);Cs>=0&&Jr(je,Ct,Cs)}return Bt=Re,m.updateSourceFile(Q,dt(b(It),Q.statements));function Fi(fs){return!(fs.flags&65536)&&!!(fs.transformFlags&67108864)}function Pi(fs,Cs){for(let es=Cs;es118}function Po(){return J()===80?!0:J()===127&&xt()||J()===135&&yn()?!1:J()>118}function Dn(Q,Re,Xe=!0){return J()===Q?(Xe&&ke(),!0):(Re?fn(Re):fn(f._0_expected,ma(Q)),!1)}let Fs=Object.keys($M).filter(Q=>Q.length>2);function Yl(Q){if(q1(Q)){q(La(Me,Q.template.pos),Q.template.end,f.Module_declaration_names_may_only_use_or_quoted_strings);return}let Re=Ve(Q)?Sr(Q):void 0;if(!Re||!$p(Re,Fe)){fn(f._0_expected,ma(27));return}let Xe=La(Me,Q.pos);switch(Re){case"const":case"let":case"var":q(Xe,Q.end,f.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":Fo(f.Interface_name_cannot_be_0,f.Interface_must_be_given_a_name,19);return;case"is":q(Xe,t.getTokenStart(),f.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":Fo(f.Namespace_name_cannot_be_0,f.Namespace_must_be_given_a_name,19);return;case"type":Fo(f.Type_alias_name_cannot_be_0,f.Type_alias_must_be_given_a_name,64);return}let It=QD(Re,Fs,Ct=>Ct)??ds(Re);if(It){q(Xe,Q.end,f.Unknown_keyword_or_identifier_Did_you_mean_0,It);return}J()!==0&&q(Xe,Q.end,f.Unexpected_keyword_or_identifier)}function Fo(Q,Re,Xe){J()===Xe?fn(Re):fn(Q,t.getTokenValue())}function ds(Q){for(let Re of Fs)if(Q.length>Re.length+2&&uo(Q,Re))return`${Re} ${Q.slice(Re.length)}`}function Gs(Q,Re,Xe){if(J()===60&&!t.hasPrecedingLineBreak()){fn(f.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(J()===21){fn(f.Cannot_start_a_function_call_in_a_type_annotation),ke();return}if(Re&&!sc()){Xe?fn(f._0_expected,ma(27)):fn(f.Expected_for_property_initializer);return}if(!Rl()){if(Xe){fn(f._0_expected,ma(27));return}Yl(Q)}}function hl(Q){return J()===Q?(Dt(),!0):(C.assert(f3(Q)),fn(f._0_expected,ma(Q)),!1)}function uu(Q,Re,Xe,It){if(J()===Re){ke();return}let Ct=fn(f._0_expected,ma(Re));Xe&&Ct&&ka(Ct,RR(Ee,Me,It,1,f.The_parser_expected_to_find_a_1_to_match_the_0_token_here,ma(Q),ma(Re)))}function yo(Q){return J()===Q?(ke(),!0):!1}function pa(Q){if(J()===Q)return fl()}function du(Q){if(J()===Q)return Mf()}function Is(Q,Re,Xe){return pa(Q)||Vs(Q,!1,Re||f._0_expected,Xe||ma(Q))}function Pa(Q){let Re=du(Q);return Re||(C.assert(f3(Q)),Vs(Q,!1,f._0_expected,ma(Q)))}function fl(){let Q=w(),Re=J();return ke(),on(O(Re),Q)}function Mf(){let Q=w(),Re=J();return Dt(),on(O(Re),Q)}function sc(){return J()===27?!0:J()===20||J()===1||t.hasPrecedingLineBreak()}function Rl(){return sc()?(J()===27&&ke(),!0):!1}function ll(){return Rl()||Dn(27)}function Wo(Q,Re,Xe,It){let Ct=b(Q,It);return gh(Ct,Re,Xe??t.getTokenFullStart()),Ct}function on(Q,Re,Xe){return gh(Q,Re,Xe??t.getTokenFullStart()),Xn&&(Q.flags|=Xn),Qt&&(Qt=!1,Q.flags|=262144),Q}function Vs(Q,Re,Xe,...It){Re?mn(t.getTokenFullStart(),0,Xe,...It):Xe&&fn(Xe,...It);let Ct=w(),qt=Q===80?M("",void 0):My(Q)?m.createTemplateLiteralLikeNode(Q,"","",void 0):Q===9?T("",void 0):Q===11?I("",void 0):Q===282?m.createMissingDeclaration():O(Q);return on(qt,Ct)}function nu(Q){let Re=gt.get(Q);return Re===void 0&>.set(Q,Re=Q),Re}function pu(Q,Re,Xe){if(Q){nn++;let Fi=w(),Pi=J(),gi=nu(t.getTokenValue()),eo=t.hasExtendedUnicodeEscape();return pe(),on(M(gi,Pi,eo),Fi)}if(J()===81)return fn(Xe||f.Private_identifiers_are_not_allowed_outside_class_bodies),pu(!0);if(J()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===80))return pu(!0);nn++;let It=J()===1,Ct=t.isReservedWord(),qt=t.getTokenText(),Br=Ct?f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:f.Identifier_expected;return Vs(80,It,Re||Br,qt)}function Tp(Q){return pu(Kr(),void 0,Q)}function Ms(Q,Re){return pu(Po(),Q,Re)}function Ic(Q){return pu(id(J()),Q)}function de(){return(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&fn(f.Unicode_escape_sequence_cannot_appear_here),pu(id(J()))}function ee(){return id(J())||J()===11||J()===9}function we(){return id(J())||J()===11}function St(Q){if(J()===11||J()===9){let Re=$r();return Re.text=nu(Re.text),Re}return Q&&J()===23?Tr():J()===81?gr():Ic()}function pn(){return St(!0)}function Tr(){let Q=w();Dn(23);let Re=En(qe);return Dn(24),on(m.createComputedPropertyName(Re),Q)}function gr(){let Q=w(),Re=N(nu(t.getTokenValue()));return ke(),on(Re,Q)}function jr(Q){return J()===Q&&Ci(Lr)}function Ni(){return ke(),t.hasPrecedingLineBreak()?!1:js()}function Lr(){switch(J()){case 87:return ke()===94;case 95:return ke(),J()===90?Mi(gc):J()===156?Mi(El):$o();case 90:return gc();case 126:case 139:case 153:return ke(),js();default:return Ni()}}function $o(){return J()===60||J()!==42&&J()!==130&&J()!==19&&js()}function El(){return ke(),$o()}function Uc(){return kv(J())&&Ci(Lr)}function js(){return J()===23||J()===19||J()===42||J()===26||ee()}function gc(){return ke(),J()===86||J()===100||J()===120||J()===60||J()===128&&Mi(IT)||J()===134&&Mi(xT)}function Ts(Q,Re){if(vc(Q))return!0;switch(Q){case 0:case 1:case 3:return!(J()===27&&Re)&&IE();case 2:return J()===84||J()===90;case 4:return Mi(Ka);case 5:return Mi(bg)||J()===27&&!Re;case 6:return J()===23||ee();case 12:switch(J()){case 23:case 42:case 26:case 25:return!0;default:return ee()}case 18:return ee();case 9:return J()===23||J()===26||ee();case 24:return we();case 7:return J()===19?Mi(Hc):Re?Po()&&!md():$I()&&!md();case 8:return is();case 10:return J()===28||J()===26||is();case 19:return J()===103||J()===87||Po();case 15:switch(J()){case 28:case 25:return!0}case 11:return J()===26||o_();case 16:return U_(!1);case 17:return U_(!0);case 20:case 21:return J()===28||mg();case 22:return D();case 23:return J()===161&&Mi(rD)?!1:id(J());case 13:return id(J())||J()===19;case 14:return!0;case 25:return!0;case 26:return C.fail("ParsingContext.Count used as a context");default:C.assertNever(Q,"Non-exhaustive case in 'isListElement'.")}}function Hc(){if(C.assert(J()===19),ke()===20){let Q=ke();return Q===28||Q===19||Q===96||Q===119}return!0}function ip(){return ke(),Po()}function Oc(){return ke(),id(J())}function lm(){return ke(),Yne(J())}function md(){return J()===119||J()===96?Mi(Pe):!1}function Pe(){return ke(),o_()}function wt(){return ke(),mg()}function qn(Q){if(J()===1)return!0;switch(Q){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return J()===20;case 3:return J()===20||J()===84||J()===90;case 7:return J()===19||J()===96||J()===119;case 8:return So();case 19:return J()===32||J()===21||J()===19||J()===96||J()===119;case 11:return J()===22||J()===27;case 15:case 21:case 10:return J()===24;case 17:case 16:case 18:return J()===22||J()===24;case 20:return J()!==28;case 22:return J()===19||J()===20;case 13:return J()===32||J()===44;case 14:return J()===30&&Mi(Ai);default:return!1}}function So(){return!!(sc()||tv(J())||J()===39)}function Qo(){C.assert(rn,"Missing parsing context");for(let Q=0;Q<26;Q++)if(rn&1<=0)}function Yg(Q){return Q===6?f.An_enum_member_name_must_be_followed_by_a_or:void 0}function Ap(){let Q=Wo([],w());return Q.isMissingList=!0,Q}function fg(Q){return!!Q.isMissingList}function Gd(Q,Re,Xe,It){if(Dn(Xe)){let Ct=zu(Q,Re);return Dn(It),Ct}return Ap()}function te(Q,Re){let Xe=w(),It=Q?Ic(Re):Ms(Re);for(;yo(25)&&J()!==30;)It=on(m.createQualifiedName(It,Wt(Q,!1,!0)),Xe);return It}function lt(Q,Re){return on(m.createQualifiedName(Q,Re),Q.pos)}function Wt(Q,Re,Xe){if(t.hasPrecedingLineBreak()&&id(J())&&Mi(Up))return Vs(80,!0,f.Identifier_expected);if(J()===81){let It=gr();return Re?It:Vs(80,!0,f.Identifier_expected)}return Q?Xe?Ic():de():Ms()}function jt(Q){let Re=w(),Xe=[],It;do It=si(Q),Xe.push(It);while(It.literal.kind===17);return Wo(Xe,Re)}function W(Q){let Re=w();return on(m.createTemplateExpression(so(Q),jt(Q)),Re)}function Ae(){let Q=w();return on(m.createTemplateLiteralType(so(!1),st()),Q)}function st(){let Q=w(),Re=[],Xe;do Xe=Ht(),Re.push(Xe);while(Xe.literal.kind===17);return Wo(Re,Q)}function Ht(){let Q=w();return on(m.createTemplateLiteralTypeSpan(yc(),rr(!1)),Q)}function rr(Q){return J()===20?(On(Q),Oa()):Is(18,f._0_expected,ma(20))}function si(Q){let Re=w();return on(m.createTemplateSpan(En(qe),rr(Q)),Re)}function $r(){return wl(J())}function so(Q){!Q&&t.getTokenFlags()&26656&&On(!1);let Re=wl(J());return C.assert(Re.kind===16,"Template head has wrong token kind"),Re}function Oa(){let Q=wl(J());return C.assert(Q.kind===17||Q.kind===18,"Template fragment has wrong token kind"),Q}function Fa(Q){let Re=Q===15||Q===18,Xe=t.getTokenText();return Xe.substring(1,Xe.length-(t.isUnterminated()?0:Re?1:2))}function wl(Q){let Re=w(),Xe=My(Q)?m.createTemplateLiteralLikeNode(Q,t.getTokenValue(),Fa(Q),t.getTokenFlags()&7176):Q===9?T(t.getTokenValue(),t.getNumericLiteralFlags()):Q===11?I(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):_C(Q)?R(Q,t.getTokenValue()):C.fail();return t.hasExtendedUnicodeEscape()&&(Xe.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&(Xe.isUnterminated=!0),ke(),on(Xe,Re)}function fu(){return te(!0,f.Type_expected)}function xc(){if(!t.hasPrecedingLineBreak()&&Gn()===30)return Gd(20,yc,30,32)}function Ip(){let Q=w();return on(m.createTypeReferenceNode(fu(),xc()),Q)}function Vd(Q){switch(Q.kind){case 183:return Fl(Q.typeName);case 184:case 185:{let{parameters:Re,type:Xe}=Q;return fg(Re)||Vd(Xe)}case 196:return Vd(Q.type);default:return!1}}function cb(Q){return ke(),on(m.createTypePredicateNode(void 0,Q,yc()),Q.pos)}function ps(){let Q=w();return ke(),on(m.createThisTypeNode(),Q)}function Lm(){let Q=w();return ke(),on(m.createJSDocAllType(),Q)}function km(){let Q=w();return ke(),on(m.createJSDocNonNullableType(db(),!1),Q)}function Ji(){let Q=w();return ke(),J()===28||J()===20||J()===22||J()===32||J()===64||J()===52?on(m.createJSDocUnknownType(),Q):on(m.createJSDocNullableType(yc(),!1),Q)}function $g(){let Q=w(),Re=ae();if(Ci(Ff)){let Xe=hn(36),It=Ut(59,!1);return xr(on(m.createJSDocFunctionType(Xe,It),Q),Re)}return on(m.createTypeReferenceNode(Ic(),void 0),Q)}function ry(){let Q=w(),Re;return(J()===110||J()===105)&&(Re=Ic(),Dn(59)),on(m.createParameterDeclaration(void 0,void 0,Re,void 0,wm(),void 0),Q)}function wm(){t.setInJSDocType(!0);let Q=w();if(yo(144)){let It=m.createJSDocNamepathType(void 0);e:for(;;)switch(J()){case 20:case 1:case 28:case 5:break e;default:Dt()}return t.setInJSDocType(!1),on(It,Q)}let Re=yo(26),Xe=pb();return t.setInJSDocType(!1),Re&&(Xe=on(m.createJSDocVariadicType(Xe),Q)),J()===64?(ke(),on(m.createJSDocOptionalType(Xe),Q)):Xe}function mE(){let Q=w();Dn(114);let Re=te(!0),Xe=t.hasPrecedingLineBreak()?void 0:X0();return on(m.createTypeQueryNode(Re,Xe),Q)}function _E(){let Q=w(),Re=Lh(!1,!0),Xe=Ms(),It,Ct;yo(96)&&(mg()||!o_()?It=yc():Ct=mb());let qt=yo(64)?yc():void 0,Br=m.createTypeParameterDeclaration(Re,Xe,It,qt);return Br.expression=Ct,on(Br,Q)}function uf(){if(J()===30)return Gd(19,_E,30,32)}function U_(Q){return J()===26||is()||kv(J())||J()===60||mg(!Q)}function df(Q){let Re=Rr(f.Private_identifiers_cannot_be_used_as_parameters);return vL(Re)===0&&!Et(Q)&&kv(J())&&ke(),Re}function Qg(){return Kr()||J()===23||J()===19}function ze(Q){return kt(Q)}function Ze(Q){return kt(Q,!1)}function kt(Q,Re=!0){let Xe=w(),It=ae(),Ct=Q?le(()=>Lh(!0)):We(()=>Lh(!0));if(J()===110){let Pi=m.createParameterDeclaration(Ct,void 0,pu(!0),void 0,oy(),void 0),gi=Xc(Ct);return gi&&Oe(gi,f.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),xr(on(Pi,Xe),It)}let qt=_n;_n=!1;let Br=pa(26);if(!Re&&!Qg())return;let Fi=xr(on(m.createParameterDeclaration(Ct,Br,df(Ct),pa(58),oy(),a_()),Xe),It);return _n=qt,Fi}function Ut(Q,Re){if(gn(Q,Re))return Ue(pb)}function gn(Q,Re){return Q===39?(Dn(Q),!0):yo(59)?!0:Re&&J()===39?(fn(f._0_expected,ma(59)),ke(),!0):!1}function Yn(Q,Re){let Xe=xt(),It=yn();bi(!!(Q&1)),No(!!(Q&2));let Ct=Q&32?zu(17,ry):zu(16,()=>Re?ze(It):Ze(It));return bi(Xe),No(It),Ct}function hn(Q){if(!Dn(21))return Ap();let Re=Yn(Q,!0);return Dn(22),Re}function $n(){yo(28)||ll()}function hi(Q){let Re=w(),Xe=ae();Q===180&&Dn(105);let It=uf(),Ct=hn(4),qt=Ut(59,!0);$n();let Br=Q===179?m.createCallSignature(It,Ct,qt):m.createConstructSignature(It,Ct,qt);return xr(on(Br,Re),Xe)}function ur(){return J()===23&&Mi(oi)}function oi(){if(ke(),J()===26||J()===24)return!0;if(kv(J())){if(ke(),Po())return!0}else if(Po())ke();else return!1;return J()===59||J()===28?!0:J()!==58?!1:(ke(),J()===59||J()===28||J()===24)}function mr(Q,Re,Xe){let It=Gd(16,()=>ze(!1),23,24),Ct=oy();$n();let qt=m.createIndexSignature(Xe,It,Ct);return xr(on(qt,Q),Re)}function Zo(Q,Re,Xe){let It=pn(),Ct=pa(58),qt;if(J()===21||J()===30){let Br=uf(),Fi=hn(4),Pi=Ut(59,!0);qt=m.createMethodSignature(Xe,It,Ct,Br,Fi,Pi)}else{let Br=oy();qt=m.createPropertySignature(Xe,It,Ct,Br),J()===64&&(qt.initializer=a_())}return $n(),xr(on(qt,Q),Re)}function Ka(){if(J()===21||J()===30||J()===139||J()===153)return!0;let Q=!1;for(;kv(J());)Q=!0,ke();return J()===23?!0:(ee()&&(Q=!0,ke()),Q?J()===21||J()===30||J()===58||J()===59||J()===28||sc():!1)}function Qu(){if(J()===21||J()===30)return hi(179);if(J()===105&&Mi(mu))return hi(180);let Q=w(),Re=ae(),Xe=Lh(!1);return jr(139)?av(Q,Re,Xe,177,4):jr(153)?av(Q,Re,Xe,178,4):ur()?mr(Q,Re,Xe):Zo(Q,Re,Xe)}function mu(){return ke(),J()===21||J()===30}function Zg(){return ke()===25}function w0(){switch(ke()){case 21:case 30:case 25:return!0}return!1}function VI(){let Q=w();return on(m.createTypeLiteralNode(O0()),Q)}function O0(){let Q;return Dn(19)?(Q=na(4,Qu),Dn(20)):Q=Ap(),Q}function j2(){return ke(),J()===40||J()===41?ke()===148:(J()===148&&ke(),J()===23&&ip()&&ke()===103)}function U2(){let Q=w(),Re=Ic();Dn(103);let Xe=yc();return on(m.createTypeParameterDeclaration(void 0,Re,Xe,void 0),Q)}function H2(){let Q=w();Dn(19);let Re;(J()===148||J()===40||J()===41)&&(Re=fl(),Re.kind!==148&&Dn(148)),Dn(23);let Xe=U2(),It=yo(130)?yc():void 0;Dn(24);let Ct;(J()===58||J()===40||J()===41)&&(Ct=fl(),Ct.kind!==58&&Dn(58));let qt=oy();ll();let Br=na(4,Qu);return Dn(20),on(m.createMappedTypeNode(Re,Xe,It,Ct,qt,Br),Q)}function lT(){let Q=w();if(yo(26))return on(m.createRestTypeNode(yc()),Q);let Re=yc();if(VR(Re)&&Re.pos===Re.type.pos){let Xe=m.createOptionalTypeNode(Re.type);return dt(Xe,Re),Xe.flags=Re.flags,Xe}return Re}function hE(){return ke()===59||J()===58&&ke()===59}function jI(){return J()===26?id(ke())&&hE():id(J())&&hE()}function q2(){if(Mi(jI)){let Q=w(),Re=ae(),Xe=pa(26),It=Ic(),Ct=pa(58);Dn(59);let qt=lT(),Br=m.createNamedTupleMember(Xe,It,Ct,qt);return xr(on(Br,Q),Re)}return lT()}function UI(){let Q=w();return on(m.createTupleTypeNode(Gd(21,q2,23,24)),Q)}function HI(){let Q=w();Dn(21);let Re=yc();return Dn(22),on(m.createParenthesizedType(Re),Q)}function qI(){let Q;if(J()===128){let Re=w();ke();let Xe=on(O(128),Re);Q=Wo([Xe],Re)}return Q}function JI(){let Q=w(),Re=ae(),Xe=qI(),It=yo(105);C.assert(!Xe||It,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");let Ct=uf(),qt=hn(4),Br=Ut(39,!1),Fi=It?m.createConstructorTypeNode(Xe,Ct,qt,Br):m.createFunctionTypeNode(Ct,qt,Br);return xr(on(Fi,Q),Re)}function cT(){let Q=fl();return J()===25?void 0:Q}function KI(Q){let Re=w();Q&&ke();let Xe=J()===112||J()===97||J()===106?fl():wl(J());return Q&&(Xe=on(m.createPrefixUnaryExpression(41,Xe),Re)),on(m.createLiteralTypeNode(Xe),Re)}function gE(){return ke(),J()===102}function vE(){Ce|=4194304;let Q=w(),Re=yo(114);Dn(102),Dn(21);let Xe=yc(),It;if(yo(28)){let Br=t.getTokenStart();Dn(19);let Fi=J();if(Fi===118||Fi===132?ke():fn(f._0_expected,ma(118)),Dn(59),It=Ab(Fi,!0),!Dn(20)){let Pi=Zs(je);Pi&&Pi.code===f._0_expected.code&&ka(Pi,RR(Ee,Me,Br,1,f.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}Dn(22);let Ct=yo(25)?fu():void 0,qt=xc();return on(m.createImportTypeNode(Xe,It,Ct,qt,Re),Q)}function ub(){return ke(),J()===9||J()===10}function db(){switch(J()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return Ci(cT)||Ip();case 67:t.reScanAsteriskEqualsToken();case 42:return Lm();case 61:t.reScanQuestionToken();case 58:return Ji();case 100:return $g();case 54:return km();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return KI();case 41:return Mi(ub)?KI(!0):Ip();case 116:return fl();case 110:{let Q=ps();return J()===142&&!t.hasPrecedingLineBreak()?cb(Q):Q}case 114:return Mi(gE)?vE():mE();case 19:return Mi(j2)?H2():VI();case 23:return UI();case 21:return HI();case 102:return vE();case 131:return Mi(Up)?YI():Ip();case 16:return Ae();default:return Ip()}}function mg(Q){switch(J()){case 133:case 159:case 154:case 150:case 163:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!Q;case 41:return!Q&&Mi(ub);case 21:return!Q&&Mi(F0);default:return Po()}}function F0(){return ke(),J()===22||U_(!1)||mg()}function ns(){let Q=w(),Re=db();for(;!t.hasPrecedingLineBreak();)switch(J()){case 54:ke(),Re=on(m.createJSDocNonNullableType(Re,!0),Q);break;case 58:if(Mi(wt))return Re;ke(),Re=on(m.createJSDocNullableType(Re,!0),Q);break;case 23:if(Dn(23),mg()){let Xe=yc();Dn(24),Re=on(m.createIndexedAccessTypeNode(Re,Xe),Q)}else Dn(24),Re=on(m.createArrayTypeNode(Re),Q);break;default:return Re}return Re}function uT(Q){let Re=w();return Dn(Q),on(m.createTypeOperatorNode(Q,Ch()),Re)}function J2(){if(yo(96)){let Q=mt(yc);if(ht()||J()!==58)return Q}}function W0(){let Q=w(),Re=Ms(),Xe=Ci(J2),It=m.createTypeParameterDeclaration(void 0,Re,Xe);return on(It,Q)}function ev(){let Q=w();return Dn(140),on(m.createInferTypeNode(W0()),Q)}function Ch(){let Q=J();switch(Q){case 143:case 158:case 148:return uT(Q);case 140:return ev()}return Ue(ns)}function kf(Q){if(dT()){let Re=JI(),Xe;return bh(Re)?Xe=Q?f.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:f.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:Xe=Q?f.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:f.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,Oe(Re,Xe),Re}}function jd(Q,Re,Xe){let It=w(),Ct=Q===52,qt=yo(Q),Br=qt&&kf(Ct)||Re();if(J()===Q||qt){let Fi=[Br];for(;yo(Q);)Fi.push(kf(Ct)||Re());Br=on(Xe(Wo(Fi,It)),It)}return Br}function xp(){return jd(51,Ch,m.createIntersectionTypeNode)}function op(){return jd(52,xp,m.createUnionTypeNode)}function iy(){return ke(),J()===105}function dT(){return J()===30||J()===21&&Mi(XI)?!0:J()===105||J()===128&&Mi(iy)}function K2(){if(kv(J())&&Lh(!1),Po()||J()===110)return ke(),!0;if(J()===23||J()===19){let Q=je.length;return Rr(),Q===je.length}return!1}function XI(){return ke(),!!(J()===22||J()===26||K2()&&(J()===59||J()===28||J()===58||J()===64||J()===22&&(ke(),J()===39)))}function pb(){let Q=w(),Re=Po()&&Ci(z0),Xe=yc();return Re?on(m.createTypePredicateNode(void 0,Re,Xe),Q):Xe}function z0(){let Q=Ms();if(J()===142&&!t.hasPrecedingLineBreak())return ke(),Q}function YI(){let Q=w(),Re=Is(131),Xe=J()===110?ps():Ms(),It=yo(142)?yc():void 0;return on(m.createTypePredicateNode(Re,Xe,It),Q)}function yc(){if(Xn&81920)return _a(81920,yc);if(dT())return JI();let Q=w(),Re=op();if(!ht()&&!t.hasPrecedingLineBreak()&&yo(96)){let Xe=mt(yc);Dn(58);let It=Ue(yc);Dn(59);let Ct=Ue(yc);return on(m.createConditionalTypeNode(Re,Xe,It,Ct),Q)}return Re}function oy(){return yo(59)?yc():void 0}function $I(){switch(J()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return Mi(w0);default:return Po()}}function o_(){if($I())return!0;switch(J()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return l_()?!0:Po()}}function pT(){return J()!==19&&J()!==100&&J()!==86&&J()!==60&&o_()}function qe(){let Q=Vt();Q&&ro(!1);let Re=w(),Xe=_u(!0),It;for(;It=pa(28);)Xe=yE(Xe,It,_u(!0),Re);return Q&&ro(!0),Xe}function a_(){return yo(64)?_u(!0):void 0}function _u(Q){if(B0())return fb();let Re=sy(Q)||fT(Q);if(Re)return Re;let Xe=w(),It=ae(),Ct=um(0);return Ct.kind===80&&J()===39?ay(Xe,Ct,Q,It,void 0):Zd(Ct)&&zv(Kt())?yE(Ct,fl(),_u(Q),Xe):cm(Ct,Xe,Q)}function B0(){return J()===127?xt()?!0:Mi(Us):!1}function QI(){return ke(),!t.hasPrecedingLineBreak()&&Po()}function fb(){let Q=w();return ke(),!t.hasPrecedingLineBreak()&&(J()===42||o_())?on(m.createYieldExpression(pa(42),_u(!0)),Q):on(m.createYieldExpression(void 0,void 0),Q)}function ay(Q,Re,Xe,It,Ct){C.assert(J()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");let qt=m.createParameterDeclaration(void 0,void 0,Re,void 0,void 0,void 0);on(qt,Re.pos);let Br=Wo([qt],qt.pos,qt.end),Fi=Is(39),Pi=_T(!!Ct,Xe),gi=m.createArrowFunction(Ct,void 0,Br,void 0,Fi,Pi);return xr(on(gi,Q),It)}function sy(Q){let Re=MP();if(Re!==0)return Re===1?G0(!0,!0):Ci(()=>s_(Q))}function MP(){return J()===21||J()===30||J()===134?Mi(Xa):J()===39?1:0}function Xa(){if(J()===134&&(ke(),t.hasPrecedingLineBreak()||J()!==21&&J()!==30))return 0;let Q=J(),Re=ke();if(Q===21){if(Re===22)switch(ke()){case 39:case 59:case 19:return 1;default:return 0}if(Re===23||Re===19)return 2;if(Re===26)return 1;if(kv(Re)&&Re!==134&&Mi(ip))return ke()===130?0:1;if(!Po()&&Re!==110)return 0;switch(ke()){case 59:return 1;case 58:return ke(),J()===59||J()===28||J()===64||J()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return C.assert(Q===30),!Po()&&J()!==87?0:Se===1?Mi(()=>{yo(87);let It=ke();if(It===96)switch(ke()){case 64:case 32:case 44:return!1;default:return!0}else if(It===28||It===64)return!0;return!1})?1:0:2}function s_(Q){let Re=t.getTokenStart();if(Nn?.has(Re))return;let Xe=G0(!1,Q);return Xe||(Nn||(Nn=new Set)).add(Re),Xe}function fT(Q){if(J()===134&&Mi(mT)===1){let Re=w(),Xe=ae(),It=_f(),Ct=um(0);return ay(Re,Ct,Q,Xe,It)}}function mT(){if(J()===134){if(ke(),t.hasPrecedingLineBreak()||J()===39)return 0;let Q=um(0);if(!t.hasPrecedingLineBreak()&&Q.kind===80&&J()===39)return 1}return 0}function G0(Q,Re){let Xe=w(),It=ae(),Ct=_f(),qt=Et(Ct,hN)?2:0,Br=uf(),Fi;if(Dn(21)){if(Q)Fi=Yn(qt,Q);else{let Sg=Yn(qt,Q);if(!Sg)return;Fi=Sg}if(!Dn(22)&&!Q)return}else{if(!Q)return;Fi=Ap()}let Pi=J()===59,gi=Ut(59,!1);if(gi&&!Q&&Vd(gi))return;let eo=gi;for(;eo?.kind===196;)eo=eo.type;let fs=eo&&jR(eo);if(!Q&&J()!==39&&(fs||J()!==19))return;let Cs=J(),es=Is(39),Wf=Cs===39||Cs===19?_T(Et(Ct,hN),Re):Ms();if(!Re&&Pi&&J()!==59)return;let Y_=m.createArrowFunction(Ct,Br,Fi,gi,es,Wf);return xr(on(Y_,Xe),It)}function _T(Q,Re){if(J()===19)return vb(Q?2:0);if(J()!==27&&J()!==100&&J()!==86&&IE()&&!pT())return vb(16|(Q?2:0));let Xe=_n;_n=!1;let It=Q?le(()=>_u(Re)):We(()=>_u(Re));return _n=Xe,It}function cm(Q,Re,Xe){let It=pa(58);if(!It)return Q;let Ct;return on(m.createConditionalExpression(Q,It,_a(r,()=>_u(!1)),Ct=Is(59),Xf(Ct)?_u(Xe):Vs(80,!1,f._0_expected,ma(59))),Re)}function um(Q){let Re=w(),Xe=mb();return ZI(Q,Xe,Re)}function tv(Q){return Q===103||Q===165}function ZI(Q,Re,Xe){for(;;){Kt();let It=nk(J());if(!(J()===43?It>=Q:It>Q)||J()===103&&Ye())break;if(J()===130||J()===152){if(t.hasPrecedingLineBreak())break;{let qt=J();ke(),Re=qt===152?X2(Re,yc()):$i(Re,yc())}}else Re=yE(Re,fl(),um(It),Xe)}return Re}function l_(){return Ye()&&J()===103?!1:nk(J())>0}function X2(Q,Re){return on(m.createSatisfiesExpression(Q,Re),Q.pos)}function yE(Q,Re,Xe,It){return on(m.createBinaryExpression(Q,Re,Xe),It)}function $i(Q,Re){return on(m.createAsExpression(Q,Re),Q.pos)}function ti(){let Q=w();return on(m.createPrefixUnaryExpression(J(),Ge(vl)),Q)}function Nh(){let Q=w();return on(m.createDeleteExpression(Ge(vl)),Q)}function Ud(){let Q=w();return on(m.createTypeOfExpression(Ge(vl)),Q)}function LP(){let Q=w();return on(m.createVoidExpression(Ge(vl)),Q)}function nv(){return J()===135?yn()?!0:Mi(Us):!1}function kP(){let Q=w();return on(m.createAwaitExpression(Ge(vl)),Q)}function mb(){if(Vp()){let Xe=w(),It=_g();return J()===43?ZI(nk(J()),It,Xe):It}let Q=J(),Re=vl();if(J()===43){let Xe=La(Me,Re.pos),{end:It}=Re;Re.kind===216?q(Xe,It,f.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(C.assert(f3(Q)),q(Xe,It,f.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,ma(Q)))}return Re}function vl(){switch(J()){case 40:case 41:case 55:case 54:return ti();case 91:return Nh();case 114:return Ud();case 116:return LP();case 30:return Se===1?rv(!0,void 0,void 0,!0):Fm();case 135:if(nv())return kP();default:return _g()}}function Vp(){switch(J()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(Se!==1)return!1;default:return!0}}function _g(){if(J()===46||J()===47){let Re=w();return on(m.createPrefixUnaryExpression(J(),Ge(dm)),Re)}else if(Se===1&&J()===30&&Mi(lm))return rv(!0);let Q=dm();if(C.assert(Zd(Q)),(J()===46||J()===47)&&!t.hasPrecedingLineBreak()){let Re=J();return ke(),on(m.createPostfixUnaryExpression(Q,Re),Q.pos)}return Q}function dm(){let Q=w(),Re;return J()===102?Mi(mu)?(Ce|=4194304,Re=fl()):Mi(Zg)?(ke(),ke(),Re=on(m.createMetaProperty(102,Ic()),Q),Ce|=8388608):Re=_b():Re=J()===108?Om():_b(),cy(Q,Re)}function _b(){let Q=w(),Re=V0();return ru(Q,Re,!0)}function Om(){let Q=w(),Re=fl();if(J()===30){let Xe=w(),It=Ci(dr);It!==void 0&&(q(Xe,w(),f.super_may_not_use_type_arguments),io()||(Re=m.createExpressionWithTypeArguments(Re,It)))}return J()===21||J()===25||J()===23?Re:(Is(25,f.super_must_be_followed_by_an_argument_list_or_member_access),on(Z(Re,Wt(!0,!0,!0)),Q))}function rv(Q,Re,Xe,It=!1){let Ct=w(),qt=gg(Q),Br;if(qt.kind===286){let Fi=hg(qt),Pi,gi=Fi[Fi.length-1];if(gi?.kind===284&&!S0(gi.openingElement.tagName,gi.closingElement.tagName)&&S0(qt.tagName,gi.closingElement.tagName)){let eo=gi.children.end,fs=on(m.createJsxElement(gi.openingElement,gi.children,on(m.createJsxClosingElement(on(M(""),eo,eo)),eo,eo)),gi.openingElement.pos,eo);Fi=Wo([...Fi.slice(0,Fi.length-1),fs],Fi.pos,eo),Pi=gi.closingElement}else Pi=EE(qt,Q),S0(qt.tagName,Pi.tagName)||(Xe&&w_(Xe)&&S0(Pi.tagName,Xe.tagName)?Oe(qt.tagName,f.JSX_element_0_has_no_corresponding_closing_tag,EC(Me,qt.tagName)):Oe(Pi.tagName,f.Expected_corresponding_JSX_closing_tag_for_0,EC(Me,qt.tagName)));Br=on(m.createJsxElement(qt,Fi,Pi),Ct)}else qt.kind===289?Br=on(m.createJsxFragment(qt,hg(qt),vT(Q)),Ct):(C.assert(qt.kind===285),Br=qt);if(!It&&Q&&J()===30){let Fi=typeof Re>"u"?Br.pos:Re,Pi=Ci(()=>rv(!0,Fi));if(Pi){let gi=Vs(28,!1);return rN(gi,Pi.pos,0),q(La(Me,Fi),Pi.end,f.JSX_expressions_must_have_one_parent_element),on(m.createBinaryExpression(Br,gi,Pi),Ct)}}return Br}function bE(){let Q=w(),Re=m.createJsxText(t.getTokenValue(),yt===13);return yt=t.scanJsxToken(),on(Re,Q)}function hT(Q,Re){switch(Re){case 1:if(dI(Q))Oe(Q,f.JSX_fragment_has_no_corresponding_closing_tag);else{let Xe=Q.tagName,It=Math.min(La(Me,Xe.pos),Xe.end);q(It,Xe.end,f.JSX_element_0_has_no_corresponding_closing_tag,EC(Me,Q.tagName))}return;case 31:case 7:return;case 12:case 13:return bE();case 19:return Y2(!1);case 30:return rv(!1,void 0,Q);default:return C.assertNever(Re)}}function hg(Q){let Re=[],Xe=w(),It=rn;for(rn|=16384;;){let Ct=hT(Q,yt=t.reScanJsxToken());if(!Ct||(Re.push(Ct),w_(Q)&&Ct?.kind===284&&!S0(Ct.openingElement.tagName,Ct.closingElement.tagName)&&S0(Q.tagName,Ct.closingElement.tagName)))break}return rn=It,Wo(Re,Xe)}function ex(){let Q=w();return on(m.createJsxAttributes(na(13,$2)),Q)}function gg(Q){let Re=w();if(Dn(30),J()===32)return or(),on(m.createJsxOpeningFragment(),Re);let Xe=H_(),It=Xn&524288?void 0:X0(),Ct=ex(),qt;return J()===32?(or(),qt=m.createJsxOpeningElement(Xe,It,Ct)):(Dn(44),Dn(32,void 0,!1)&&(Q?ke():or()),qt=m.createJsxSelfClosingElement(Xe,It,Ct)),on(qt,Re)}function H_(){let Q=w(),Re=ly();if(e_(Re))return Re;let Xe=Re;for(;yo(25);)Xe=on(Z(Xe,Wt(!0,!1,!1)),Q);return Xe}function ly(){let Q=w();Di();let Re=J()===110,Xe=de();return yo(59)?(Di(),on(m.createJsxNamespacedName(Xe,de()),Q)):Re?on(m.createToken(110),Q):Xe}function Y2(Q){let Re=w();if(!Dn(19))return;let Xe,It;return J()!==20&&(Q||(Xe=pa(26)),It=qe()),Q?Dn(20):Dn(20,void 0,!1)&&or(),on(m.createJsxExpression(Xe,It),Re)}function $2(){if(J()===19)return $s();let Q=w();return on(m.createJsxAttribute(gT(),Q2()),Q)}function Q2(){if(J()===64){if(Vr()===11)return $r();if(J()===19)return Y2(!0);if(J()===30)return rv(!0);fn(f.or_JSX_element_expected)}}function gT(){let Q=w();Di();let Re=de();return yo(59)?(Di(),on(m.createJsxNamespacedName(Re,de()),Q)):Re}function $s(){let Q=w();Dn(19),Dn(26);let Re=qe();return Dn(20),on(m.createJsxSpreadAttribute(Re),Q)}function EE(Q,Re){let Xe=w();Dn(31);let It=H_();return Dn(32,void 0,!1)&&(Re||!S0(Q.tagName,It)?ke():or()),on(m.createJsxClosingElement(It),Xe)}function vT(Q){let Re=w();return Dn(31),Dn(32,f.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(Q?ke():or()),on(m.createJsxJsxClosingFragment(),Re)}function Fm(){C.assert(Se!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");let Q=w();Dn(30);let Re=yc();Dn(32);let Xe=vl();return on(m.createTypeAssertion(Re,Xe),Q)}function hb(){return ke(),id(J())||J()===23||io()}function Z2(){return J()===29&&Mi(hb)}function yT(Q){if(Q.flags&64)return!0;if(lI(Q)){let Re=Q.expression;for(;lI(Re)&&!(Re.flags&64);)Re=Re.expression;if(Re.flags&64){for(;lI(Q);)Q.flags|=64,Q=Q.expression;return!0}}return!1}function wP(Q,Re,Xe){let It=Wt(!0,!0,!0),Ct=Xe||yT(Re),qt=Ct?V(Re,Xe,It):Z(Re,It);if(Ct&&Xi(qt.name)&&Oe(qt.name,f.An_optional_chain_cannot_contain_private_identifiers),Hv(Re)&&Re.typeArguments){let Br=Re.typeArguments.pos-1,Fi=La(Me,Re.typeArguments.end)+1;q(Br,Fi,f.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return on(qt,Q)}function vr(Q,Re,Xe){let It;if(J()===24)It=Vs(80,!0,f.An_element_access_expression_should_take_an_argument);else{let qt=En(qe);Qp(qt)&&(qt.text=nu(qt.text)),It=qt}Dn(24);let Ct=Xe||yT(Re)?G(Re,Xe,It):ue(Re,It);return on(Ct,Q)}function ru(Q,Re,Xe){for(;;){let It,Ct=!1;if(Xe&&Z2()?(It=Is(29),Ct=id(J())):Ct=yo(25),Ct){Re=wP(Q,Re,It);continue}if((It||!Vt())&&yo(23)){Re=vr(Q,Re,It);continue}if(io()){Re=!It&&Re.kind===233?pf(Q,Re.expression,It,Re.typeArguments):pf(Q,Re,It,void 0);continue}if(!It){if(J()===54&&!t.hasPrecedingLineBreak()){ke(),Re=on(m.createNonNullExpression(Re),Q);continue}let qt=Ci(dr);if(qt){Re=on(m.createExpressionWithTypeArguments(Re,qt),Q);continue}}return Re}}function io(){return J()===15||J()===16}function pf(Q,Re,Xe,It){let Ct=m.createTaggedTemplateExpression(Re,It,J()===15?(On(!0),$r()):W(!0));return(Xe||Re.flags&64)&&(Ct.flags|=64),Ct.questionDotToken=Xe,on(Ct,Q)}function cy(Q,Re){for(;;){Re=ru(Q,Re,!0);let Xe,It=pa(29);if(It&&(Xe=Ci(dr),io())){Re=pf(Q,Re,It,Xe);continue}if(Xe||J()===21){!It&&Re.kind===233&&(Xe=Re.typeArguments,Re=Re.expression);let Ct=q_(),qt=It||yT(Re)?he(Re,It,Xe,Ct):ne(Re,Xe,Ct);Re=on(qt,Q);continue}if(It){let Ct=Vs(80,!1,f.Identifier_expected);Re=on(V(Re,It,Ct),Q)}break}return Re}function q_(){Dn(21);let Q=zu(11,SE);return Dn(22),Q}function dr(){if(Xn&524288||Gn()!==30)return;ke();let Q=zu(20,yc);if(Kt()===32)return ke(),Q&&bT()?Q:void 0}function bT(){switch(J()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return t.hasPrecedingLineBreak()||l_()||!o_()}function V0(){switch(J()){case 15:t.getTokenFlags()&26656&&On(!1);case 9:case 10:case 11:return $r();case 110:case 108:case 106:case 112:case 97:return fl();case 21:return Jc();case 23:return TE();case 19:return iv();case 134:if(!Mi(xT))break;return ET();case 60:return K0();case 86:return sx();case 100:return ET();case 105:return j0();case 44:case 69:if(Tn()===14)return $r();break;case 16:return W(!1);case 81:return gr()}return Ms(f.Expression_expected)}function Jc(){let Q=w(),Re=ae();Dn(21);let Xe=En(qe);return Dn(22),xr(on($(Xe),Q),Re)}function Ph(){let Q=w();Dn(26);let Re=_u(!0);return on(m.createSpreadElement(Re),Q)}function Wm(){return J()===26?Ph():J()===28?on(m.createOmittedExpression(),w()):_u(!0)}function SE(){return _a(r,Wm)}function TE(){let Q=w(),Re=t.getTokenStart(),Xe=Dn(23),It=t.hasPrecedingLineBreak(),Ct=zu(15,Wm);return uu(23,24,Xe,Re),on(H(Ct,It),Q)}function gb(){let Q=w(),Re=ae();if(pa(26)){let eo=_u(!0);return xr(on(m.createSpreadAssignment(eo),Q),Re)}let Xe=Lh(!0);if(jr(139))return av(Q,Re,Xe,177,0);if(jr(153))return av(Q,Re,Xe,178,0);let It=pa(42),Ct=Po(),qt=pn(),Br=pa(58),Fi=pa(54);if(It||J()===21||J()===30)return c_(Q,Re,Xe,It,qt,Br,Fi);let Pi;if(Ct&&J()!==59){let eo=pa(64),fs=eo?En(()=>_u(!0)):void 0;Pi=m.createShorthandPropertyAssignment(qt,fs),Pi.equalsToken=eo}else{Dn(59);let eo=En(()=>_u(!0));Pi=m.createPropertyAssignment(qt,eo)}return Pi.modifiers=Xe,Pi.questionToken=Br,Pi.exclamationToken=Fi,xr(on(Pi,Q),Re)}function iv(){let Q=w(),Re=t.getTokenStart(),Xe=Dn(19),It=t.hasPrecedingLineBreak(),Ct=zu(12,gb,!0);return uu(19,20,Xe,Re),on(K(Ct,It),Q)}function ET(){let Q=Vt();ro(!1);let Re=w(),Xe=ae(),It=Lh(!1);Dn(100);let Ct=pa(42),qt=Ct?1:0,Br=Et(It,hN)?2:0,Fi=qt&&Br?pt(zm):qt?ft(zm):Br?le(zm):zm(),Pi=uf(),gi=hn(qt|Br),eo=Ut(59,!1),fs=vb(qt|Br);ro(Q);let Cs=m.createFunctionExpression(It,Ct,Fi,Pi,gi,eo,fs);return xr(on(Cs,Re),Xe)}function zm(){return Kr()?Tp():void 0}function j0(){let Q=w();if(Dn(105),yo(25)){let qt=Ic();return on(m.createMetaProperty(105,qt),Q)}let Re=w(),Xe=ru(Re,V0(),!1),It;Xe.kind===233&&(It=Xe.typeArguments,Xe=Xe.expression),J()===29&&fn(f.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,EC(Me,Xe));let Ct=J()===21?q_():void 0;return on(ye(Xe,It,Ct),Q)}function vg(Q,Re){let Xe=w(),It=ae(),Ct=t.getTokenStart(),qt=Dn(19,Re);if(qt||Q){let Br=t.hasPrecedingLineBreak(),Fi=na(1,sp);uu(19,20,qt,Ct);let Pi=xr(on(Y(Fi,Br),Xe),It);return J()===64&&(fn(f.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses),ke()),Pi}else{let Br=Ap();return xr(on(Y(Br,void 0),Xe),It)}}function vb(Q,Re){let Xe=xt();bi(!!(Q&1));let It=yn();No(!!(Q&2));let Ct=_n;_n=!1;let qt=Vt();qt&&ro(!1);let Br=vg(!!(Q&16),Re);return qt&&ro(!0),_n=Ct,bi(Xe),No(It),Br}function tx(){let Q=w(),Re=ae();return Dn(27),xr(on(m.createEmptyStatement(),Q),Re)}function U0(){let Q=w(),Re=ae();Dn(101);let Xe=t.getTokenStart(),It=Dn(21),Ct=En(qe);uu(21,22,It,Xe);let qt=sp(),Br=yo(93)?sp():void 0;return xr(on(Ne(Ct,qt,Br),Q),Re)}function eD(){let Q=w(),Re=ae();Dn(92);let Xe=sp();Dn(117);let It=t.getTokenStart(),Ct=Dn(21),qt=En(qe);return uu(21,22,Ct,It),yo(27),xr(on(m.createDoStatement(Xe,qt),Q),Re)}function AE(){let Q=w(),Re=ae();Dn(117);let Xe=t.getTokenStart(),It=Dn(21),Ct=En(qe);uu(21,22,It,Xe);let qt=sp();return xr(on(me(Ct,qt),Q),Re)}function ST(){let Q=w(),Re=ae();Dn(99);let Xe=pa(135);Dn(21);let It;J()!==27&&(J()===115||J()===121||J()===87||J()===160&&Mi(ov)||J()===135&&Mi(Rp)?It=xE(!0):It=wn(qe));let Ct;if(Xe?Dn(165):yo(165)){let qt=En(()=>_u(!0));Dn(22),Ct=ve(Xe,It,qt,sp())}else if(yo(103)){let qt=En(qe);Dn(22),Ct=m.createForInStatement(It,qt,sp())}else{Dn(27);let qt=J()!==27&&J()!==22?En(qe):void 0;Dn(27);let Br=J()!==22?En(qe):void 0;Dn(22),Ct=ie(It,qt,Br,sp())}return xr(on(Ct,Q),Re)}function jp(Q){let Re=w(),Xe=ae();Dn(Q===252?83:88);let It=sc()?void 0:Ms();ll();let Ct=Q===252?m.createBreakStatement(It):m.createContinueStatement(It);return xr(on(Ct,Re),Xe)}function TT(){let Q=w(),Re=ae();Dn(107);let Xe=sc()?void 0:En(qe);return ll(),xr(on(m.createReturnStatement(Xe),Q),Re)}function Gl(){let Q=w(),Re=ae();Dn(118);let Xe=t.getTokenStart(),It=Dn(21),Ct=En(qe);uu(21,22,It,Xe);let qt=ja(67108864,sp);return xr(on(m.createWithStatement(Ct,qt),Q),Re)}function Fc(){let Q=w(),Re=ae();Dn(84);let Xe=En(qe);Dn(59);let It=na(3,sp);return xr(on(m.createCaseClause(Xe,It),Q),Re)}function AT(){let Q=w();Dn(90),Dn(59);let Re=na(3,sp);return on(m.createDefaultClause(Re),Q)}function Au(){return J()===84?Fc():AT()}function ap(){let Q=w();Dn(19);let Re=na(2,Au);return Dn(20),on(m.createCaseBlock(Re),Q)}function H0(){let Q=w(),Re=ae();Dn(109),Dn(21);let Xe=En(qe);Dn(22);let It=ap();return xr(on(m.createSwitchStatement(Xe,It),Q),Re)}function wf(){let Q=w(),Re=ae();Dn(111);let Xe=t.hasPrecedingLineBreak()?void 0:En(qe);return Xe===void 0&&(nn++,Xe=on(M(""),w())),Rl()||Yl(Xe),xr(on(m.createThrowStatement(Xe),Q),Re)}function yb(){let Q=w(),Re=ae();Dn(113);let Xe=vg(!1),It=J()===85?bb():void 0,Ct;return(!It||J()===98)&&(Dn(98,f.catch_or_finally_expected),Ct=vg(!1)),xr(on(m.createTryStatement(Xe,It,Ct),Q),Re)}function bb(){let Q=w();Dn(85);let Re;yo(21)?(Re=Cd(),Dn(22)):Re=void 0;let Xe=vg(!1);return on(m.createCatchClause(Re,Xe),Q)}function iu(){let Q=w(),Re=ae();return Dn(89),ll(),xr(on(m.createDebuggerStatement(),Q),Re)}function nx(){let Q=w(),Re=ae(),Xe,It=J()===21,Ct=En(qe);return Ve(Ct)&&yo(59)?Xe=m.createLabeledStatement(Ct,sp()):(Rl()||Yl(Ct),Xe=fe(Ct),It&&(Re=!1)),xr(on(Xe,Q),Re)}function Up(){return ke(),id(J())&&!t.hasPrecedingLineBreak()}function IT(){return ke(),J()===86&&!t.hasPrecedingLineBreak()}function xT(){return ke(),J()===100&&!t.hasPrecedingLineBreak()}function Us(){return ke(),(id(J())||J()===9||J()===10||J()===11)&&!t.hasPrecedingLineBreak()}function tD(){for(;;)switch(J()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return rx();case 135:return ix();case 120:case 156:return QI();case 144:case 145:return iD();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:let Q=J();if(ke(),t.hasPrecedingLineBreak())return!1;if(Q===138&&J()===156)return!0;continue;case 162:return ke(),J()===19||J()===80||J()===95;case 102:return ke(),J()===11||J()===42||J()===19||id(J());case 95:let Re=ke();if(Re===156&&(Re=Mi(ke)),Re===64||Re===42||Re===19||Re===90||Re===130||Re===60)return!0;continue;case 126:ke();continue;default:return!1}}function q0(){return Mi(tD)}function IE(){switch(J()){case 60:case 27:case 19:case 115:case 121:case 160:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:return!0;case 102:return q0()||Mi(w0);case 87:case 95:return q0();case 134:case 138:case 120:case 144:case 145:case 156:case 162:return!0;case 129:case 125:case 123:case 124:case 126:case 148:return q0()||!Mi(Up);default:return o_()}}function OP(){return ke(),Kr()||J()===19||J()===23}function _d(){return Mi(OP)}function ov(){return J_(!0)}function J_(Q){return ke(),Q&&J()===165?!1:(Kr()||J()===19)&&!t.hasPrecedingLineBreak()}function rx(){return Mi(J_)}function Rp(Q){return ke()===160?J_(Q):!1}function ix(){return Mi(Rp)}function sp(){switch(J()){case 27:return tx();case 19:return vg(!1);case 115:return J0(w(),ae(),void 0);case 121:if(_d())return J0(w(),ae(),void 0);break;case 135:if(ix())return J0(w(),ae(),void 0);break;case 160:if(rx())return J0(w(),ae(),void 0);break;case 100:return RE(w(),ae(),void 0);case 86:return PT(w(),ae(),void 0);case 101:return U0();case 92:return eD();case 117:return AE();case 99:return ST();case 88:return jp(251);case 83:return jp(252);case 107:return TT();case 118:return Gl();case 109:return H0();case 111:return wf();case 113:case 85:case 98:return yb();case 89:return iu();case 60:return uy();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 162:if(q0())return uy();break}return nx()}function ox(Q){return Q.kind===138}function uy(){let Q=w(),Re=ae(),Xe=Lh(!0);if(Et(Xe,ox)){let Ct=RT(Q);if(Ct)return Ct;for(let qt of Xe)qt.flags|=33554432;return ja(33554432,()=>nD(Q,Re,Xe))}else return nD(Q,Re,Xe)}function RT(Q){return ja(33554432,()=>{let Re=vc(rn,Q);if(Re)return cl(Re)})}function nD(Q,Re,Xe){switch(J()){case 115:case 121:case 87:case 160:case 135:return J0(Q,Re,Xe);case 100:return RE(Q,Re,Xe);case 86:return PT(Q,Re,Xe);case 120:return _t(Q,Re,Xe);case 156:return an(Q,Re,Xe);case 94:return wi(Q,Re,Xe);case 162:case 144:case 145:return Zu(Q,Re,Xe);case 102:return jn(Q,Re,Xe);case 95:switch(ke(),J()){case 90:case 64:return Oh(Q,Re,Xe);case 130:return kh(Q,Re,Xe);default:return FP(Q,Re,Xe)}default:if(Xe){let It=Vs(282,!0,f.Declaration_expected);return nN(It,Q),It.modifiers=Xe,It}return}}function rD(){return ke()===11}function DT(){return ke(),J()===161||J()===64}function iD(){return ke(),!t.hasPrecedingLineBreak()&&(Po()||J()===11)}function Eb(Q,Re){if(J()!==19){if(Q&4){$n();return}if(sc()){ll();return}}return vb(Q,Re)}function Dp(){let Q=w();if(J()===28)return on(m.createOmittedExpression(),Q);let Re=pa(26),Xe=Rr(),It=a_();return on(m.createBindingElement(Re,void 0,Xe,It),Q)}function Mh(){let Q=w(),Re=pa(26),Xe=Kr(),It=pn(),Ct;Xe&&J()!==59?(Ct=It,It=void 0):(Dn(59),Ct=Rr());let qt=a_();return on(m.createBindingElement(Re,It,Ct,qt),Q)}function oD(){let Q=w();Dn(19);let Re=En(()=>zu(9,Mh));return Dn(20),on(m.createObjectBindingPattern(Re),Q)}function CT(){let Q=w();Dn(23);let Re=En(()=>zu(10,Dp));return Dn(24),on(m.createArrayBindingPattern(Re),Q)}function is(){return J()===19||J()===23||J()===81||Kr()}function Rr(Q){return J()===23?CT():J()===19?oD():Tp(Q)}function ff(){return Cd(!0)}function Cd(Q){let Re=w(),Xe=ae(),It=Rr(f.Private_identifiers_are_not_allowed_in_variable_declarations),Ct;Q&&It.kind===80&&J()===54&&!t.hasPrecedingLineBreak()&&(Ct=fl());let qt=oy(),Br=tv(J())?void 0:a_(),Fi=Le(It,Ct,qt,Br);return xr(on(Fi,Re),Xe)}function xE(Q){let Re=w(),Xe=0;switch(J()){case 115:break;case 121:Xe|=1;break;case 87:Xe|=2;break;case 160:Xe|=4;break;case 135:C.assert(ix()),Xe|=6,ke();break;default:C.fail()}ke();let It;if(J()===165&&Mi(aD))It=Ap();else{let Ct=Ye();ui(Q),It=zu(8,Q?Cd:ff),ui(Ct)}return on(He(It,Xe),Re)}function aD(){return ip()&&ke()===22}function J0(Q,Re,Xe){let It=xE(!1);ll();let Ct=oe(Xe,It);return xr(on(Ct,Q),Re)}function RE(Q,Re,Xe){let It=yn(),Ct=N_(Xe);Dn(100);let qt=pa(42),Br=Ct&2048?zm():Tp(),Fi=qt?1:0,Pi=Ct&1024?2:0,gi=uf();Ct&32&&No(!0);let eo=hn(Fi|Pi),fs=Ut(59,!1),Cs=Eb(Fi|Pi,f.or_expected);No(It);let es=m.createFunctionDeclaration(Xe,qt,Br,gi,eo,fs,Cs);return xr(on(es,Q),Re)}function NT(){if(J()===137)return Dn(137);if(J()===11&&Mi(ke)===21)return Ci(()=>{let Q=$r();return Q.text==="constructor"?Q:void 0})}function yg(Q,Re,Xe){return Ci(()=>{if(NT()){let It=uf(),Ct=hn(0),qt=Ut(59,!1),Br=Eb(0,f.or_expected),Fi=m.createConstructorDeclaration(Xe,Ct,Br);return Fi.typeParameters=It,Fi.type=qt,xr(on(Fi,Q),Re)}})}function c_(Q,Re,Xe,It,Ct,qt,Br,Fi){let Pi=It?1:0,gi=Et(Xe,hN)?2:0,eo=uf(),fs=hn(Pi|gi),Cs=Ut(59,!1),es=Eb(Pi|gi,Fi),Wf=m.createMethodDeclaration(Xe,It,Ct,qt,eo,fs,Cs,es);return Wf.exclamationToken=Br,xr(on(Wf,Q),Re)}function mf(Q,Re,Xe,It,Ct){let qt=!Ct&&!t.hasPrecedingLineBreak()?pa(54):void 0,Br=oy(),Fi=_a(90112,a_);Gs(It,Br,Fi);let Pi=m.createPropertyDeclaration(Xe,It,Ct||qt,Br,Fi);return xr(on(Pi,Q),Re)}function Bm(Q,Re,Xe){let It=pa(42),Ct=pn(),qt=pa(58);return It||J()===21||J()===30?c_(Q,Re,Xe,It,Ct,qt,void 0,f.or_expected):mf(Q,Re,Xe,Ct,qt)}function av(Q,Re,Xe,It,Ct){let qt=pn(),Br=uf(),Fi=hn(0),Pi=Ut(59,!1),gi=Eb(Ct),eo=It===177?m.createGetAccessorDeclaration(Xe,qt,Fi,Pi,gi):m.createSetAccessorDeclaration(Xe,qt,Fi,gi);return eo.typeParameters=Br,vp(eo)&&(eo.type=Pi),xr(on(eo,Q),Re)}function bg(){let Q;if(J()===60)return!0;for(;kv(J());){if(Q=J(),JV(Q))return!0;ke()}if(J()===42||(ee()&&(Q=J(),ke()),J()===23))return!0;if(Q!==void 0){if(!Fd(Q)||Q===153||Q===139)return!0;switch(J()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return sc()}}return!1}function Eg(Q,Re,Xe){Is(126);let It=ax(),Ct=xr(on(m.createClassStaticBlockDeclaration(It),Q),Re);return Ct.modifiers=Xe,Ct}function ax(){let Q=xt(),Re=yn();bi(!1),No(!0);let Xe=vg(!1);return bi(Q),No(Re),Xe}function lc(){if(yn()&&J()===135){let Q=w(),Re=Ms(f.Expression_expected);ke();let Xe=ru(Q,Re,!0);return cy(Q,Xe)}return dm()}function sD(){let Q=w();if(!yo(60))return;let Re=Nt(lc);return on(m.createDecorator(Re),Q)}function Of(Q,Re,Xe){let It=w(),Ct=J();if(J()===87&&Re){if(!Ci(Ni))return}else{if(Xe&&J()===126&&Mi(Tb))return;if(Q&&J()===126)return;if(!Uc())return}return on(O(Ct),It)}function Lh(Q,Re,Xe){let It=w(),Ct,qt,Br,Fi=!1,Pi=!1,gi=!1;if(Q&&J()===60)for(;qt=sD();)Ct=In(Ct,qt);for(;Br=Of(Fi,Re,Xe);)Br.kind===126&&(Fi=!0),Ct=In(Ct,Br),Pi=!0;if(Pi&&Q&&J()===60)for(;qt=sD();)Ct=In(Ct,qt),gi=!0;if(gi)for(;Br=Of(Fi,Re,Xe);)Br.kind===126&&(Fi=!0),Ct=In(Ct,Br);return Ct&&Wo(Ct,It)}function _f(){let Q;if(J()===134){let Re=w();ke();let Xe=on(O(134),Re);Q=Wo([Xe],Re)}return Q}function DE(){let Q=w(),Re=ae();if(J()===27)return ke(),xr(on(m.createSemicolonClassElement(),Q),Re);let Xe=Lh(!0,!0,!0);if(J()===126&&Mi(Tb))return Eg(Q,Re,Xe);if(jr(139))return av(Q,Re,Xe,177,0);if(jr(153))return av(Q,Re,Xe,178,0);if(J()===137||J()===11){let It=yg(Q,Re,Xe);if(It)return It}if(ur())return mr(Q,Re,Xe);if(id(J())||J()===11||J()===9||J()===42||J()===23)if(Et(Xe,ox)){for(let Ct of Xe)Ct.flags|=33554432;return ja(33554432,()=>Bm(Q,Re,Xe))}else return Bm(Q,Re,Xe);if(Xe){let It=Vs(80,!0,f.Declaration_expected);return mf(Q,Re,Xe,It,void 0)}return C.fail("Should not have attempted to parse class member declaration.")}function K0(){let Q=w(),Re=ae(),Xe=Lh(!0);if(J()===86)return hf(Q,Re,Xe,231);let It=Vs(282,!0,f.Expression_expected);return nN(It,Q),It.modifiers=Xe,It}function sx(){return hf(w(),ae(),void 0,231)}function PT(Q,Re,Xe){return hf(Q,Re,Xe,263)}function hf(Q,Re,Xe,It){let Ct=yn();Dn(86);let qt=Ls(),Br=uf();Et(Xe,eI)&&No(!0);let Fi=NE(),Pi;Dn(19)?(Pi=se(),Dn(20)):Pi=Ap(),No(Ct);let gi=It===263?m.createClassDeclaration(Xe,qt,Br,Fi,Pi):m.createClassExpression(Xe,qt,Br,Fi,Pi);return xr(on(gi,Q),Re)}function Ls(){return Kr()&&!CE()?pu(Kr()):void 0}function CE(){return J()===119&&Mi(Oc)}function NE(){if(D())return na(22,sv)}function sv(){let Q=w(),Re=J();C.assert(Re===96||Re===119),ke();let Xe=zu(7,Sb);return on(m.createHeritageClause(Re,Xe),Q)}function Sb(){let Q=w(),Re=dm();if(Re.kind===233)return Re;let Xe=X0();return on(m.createExpressionWithTypeArguments(Re,Xe),Q)}function X0(){return J()===30?Gd(20,yc,30,32):void 0}function D(){return J()===96||J()===119}function se(){return na(5,DE)}function _t(Q,Re,Xe){Dn(120);let It=Ms(),Ct=uf(),qt=NE(),Br=O0(),Fi=m.createInterfaceDeclaration(Xe,It,Ct,qt,Br);return xr(on(Fi,Q),Re)}function an(Q,Re,Xe){Dn(156),t.hasPrecedingLineBreak()&&fn(f.Line_break_not_permitted_here);let It=Ms(),Ct=uf();Dn(64);let qt=J()===141&&Ci(cT)||yc();ll();let Br=m.createTypeAliasDeclaration(Xe,It,Ct,qt);return xr(on(Br,Q),Re)}function Fr(){let Q=w(),Re=ae(),Xe=pn(),It=En(a_);return xr(on(m.createEnumMember(Xe,It),Q),Re)}function wi(Q,Re,Xe){Dn(94);let It=Ms(),Ct;Dn(19)?(Ct=j(()=>zu(6,Fr)),Dn(20)):Ct=Ap();let qt=m.createEnumDeclaration(Xe,It,Ct);return xr(on(qt,Q),Re)}function Ei(){let Q=w(),Re;return Dn(19)?(Re=na(1,sp),Dn(20)):Re=Ap(),on(m.createModuleBlock(Re),Q)}function oo(Q,Re,Xe,It){let Ct=It&32,qt=It&8?Ic():Ms(),Br=yo(25)?oo(w(),!1,void 0,8|Ct):Ei(),Fi=m.createModuleDeclaration(Xe,qt,Br,It);return xr(on(Fi,Q),Re)}function ya(Q,Re,Xe){let It=0,Ct;J()===162?(Ct=Ms(),It|=2048):(Ct=$r(),Ct.text=nu(Ct.text));let qt;J()===19?qt=Ei():ll();let Br=m.createModuleDeclaration(Xe,Ct,qt,It);return xr(on(Br,Q),Re)}function Zu(Q,Re,Xe){let It=0;if(J()===162)return ya(Q,Re,Xe);if(yo(145))It|=32;else if(Dn(144),J()===11)return ya(Q,Re,Xe);return oo(Q,Re,Xe,It)}function Nd(){return J()===149&&Mi(Ff)}function Ff(){return ke()===21}function Tb(){return ke()===19}function Ai(){return ke()===44}function kh(Q,Re,Xe){Dn(130),Dn(145);let It=Ms();ll();let Ct=m.createNamespaceExportDeclaration(It);return Ct.modifiers=Xe,xr(on(Ct,Q),Re)}function jn(Q,Re,Xe){Dn(102);let It=t.getTokenFullStart(),Ct;Po()&&(Ct=Ms());let qt=!1;if(Ct?.escapedText==="type"&&(J()!==161||Po()&&Mi(DT))&&(Po()||Ib())&&(qt=!0,Ct=Po()?Ms():void 0),Ct&&!MT())return PE(Q,Re,Xe,Ct,qt);let Br;(Ct||J()===42||J()===19)&&(Br=K_(Ct,It,qt),Dn(161));let Fi=LT(),Pi=J(),gi;(Pi===118||Pi===132)&&!t.hasPrecedingLineBreak()&&(gi=Ab(Pi)),ll();let eo=m.createImportDeclaration(Xe,Br,Fi,gi);return xr(on(eo,Q),Re)}function lx(){let Q=w(),Re=id(J())?Ic():wl(11);Dn(59);let Xe=_u(!0);return on(m.createImportAttribute(Re,Xe),Q)}function Ab(Q,Re){let Xe=w();Re||Dn(Q);let It=t.getTokenStart();if(Dn(19)){let Ct=t.hasPrecedingLineBreak(),qt=zu(24,lx,!0);if(!Dn(20)){let Br=Zs(je);Br&&Br.code===f._0_expected.code&&ka(Br,RR(Ee,Me,It,1,f.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return on(m.createImportAttributes(qt,Ct,Q),Xe)}else{let Ct=Wo([],w(),void 0,!1);return on(m.createImportAttributes(Ct,!1,Q),Xe)}}function Ib(){return J()===42||J()===19}function MT(){return J()===28||J()===161}function PE(Q,Re,Xe,It,Ct){Dn(64);let qt=wh();ll();let Br=m.createImportEqualsDeclaration(Xe,Ct,It,qt);return xr(on(Br,Q),Re)}function K_(Q,Re,Xe){let It;return(!Q||yo(28))&&(It=J()===42?iz():xb(275)),on(m.createImportClause(Xe,Q,It),Re)}function wh(){return Nd()?lD():te(!1)}function lD(){let Q=w();Dn(149),Dn(21);let Re=LT();return Dn(22),on(m.createExternalModuleReference(Re),Q)}function LT(){if(J()===11){let Q=$r();return Q.text=nu(Q.text),Q}else return qe()}function iz(){let Q=w();Dn(42),Dn(130);let Re=Ms();return on(m.createNamespaceImport(Re),Q)}function xb(Q){let Re=w(),Xe=Q===275?m.createNamedImports(Gd(23,h4,19,20)):m.createNamedExports(Gd(23,_4,19,20));return on(Xe,Re)}function _4(){let Q=ae();return xr(Y0(281),Q)}function h4(){return Y0(276)}function Y0(Q){let Re=w(),Xe=Fd(J())&&!Po(),It=t.getTokenStart(),Ct=t.getTokenEnd(),qt=!1,Br,Fi=!0,Pi=Ic();if(Pi.escapedText==="type")if(J()===130){let fs=Ic();if(J()===130){let Cs=Ic();id(J())?(qt=!0,Br=fs,Pi=eo(),Fi=!1):(Br=Pi,Pi=Cs,Fi=!1)}else id(J())?(Br=Pi,Fi=!1,Pi=eo()):(qt=!0,Pi=fs)}else id(J())&&(qt=!0,Pi=eo());Fi&&J()===130&&(Br=Pi,Dn(130),Pi=eo()),Q===276&&Xe&&q(It,Ct,f.Identifier_expected);let gi=Q===276?m.createImportSpecifier(qt,Br,Pi):m.createExportSpecifier(qt,Br,Pi);return on(gi,Re);function eo(){return Xe=Fd(J())&&!Po(),It=t.getTokenStart(),Ct=t.getTokenEnd(),Ic()}}function u_(Q){return on(m.createNamespaceExport(Ic()),Q)}function FP(Q,Re,Xe){let It=yn();No(!0);let Ct,qt,Br,Fi=yo(156),Pi=w();yo(42)?(yo(130)&&(Ct=u_(Pi)),Dn(161),qt=LT()):(Ct=xb(279),(J()===161||J()===11&&!t.hasPrecedingLineBreak())&&(Dn(161),qt=LT()));let gi=J();qt&&(gi===118||gi===132)&&!t.hasPrecedingLineBreak()&&(Br=Ab(gi)),ll(),No(It);let eo=m.createExportDeclaration(Xe,Fi,Ct,qt,Br);return xr(on(eo,Q),Re)}function Oh(Q,Re,Xe){let It=yn();No(!0);let Ct;yo(64)?Ct=!0:Dn(90);let qt=_u(!0);ll(),No(It);let Br=m.createExportAssignment(Xe,Ct,qt);return xr(on(Br,Q),Re)}let cx;(Q=>{Q[Q.SourceElements=0]="SourceElements",Q[Q.BlockStatements=1]="BlockStatements",Q[Q.SwitchClauses=2]="SwitchClauses",Q[Q.SwitchClauseStatements=3]="SwitchClauseStatements",Q[Q.TypeMembers=4]="TypeMembers",Q[Q.ClassMembers=5]="ClassMembers",Q[Q.EnumMembers=6]="EnumMembers",Q[Q.HeritageClauseElement=7]="HeritageClauseElement",Q[Q.VariableDeclarations=8]="VariableDeclarations",Q[Q.ObjectBindingElements=9]="ObjectBindingElements",Q[Q.ArrayBindingElements=10]="ArrayBindingElements",Q[Q.ArgumentExpressions=11]="ArgumentExpressions",Q[Q.ObjectLiteralMembers=12]="ObjectLiteralMembers",Q[Q.JsxAttributes=13]="JsxAttributes",Q[Q.JsxChildren=14]="JsxChildren",Q[Q.ArrayLiteralMembers=15]="ArrayLiteralMembers",Q[Q.Parameters=16]="Parameters",Q[Q.JSDocParameters=17]="JSDocParameters",Q[Q.RestProperties=18]="RestProperties",Q[Q.TypeParameters=19]="TypeParameters",Q[Q.TypeArguments=20]="TypeArguments",Q[Q.TupleElementTypes=21]="TupleElementTypes",Q[Q.HeritageClauses=22]="HeritageClauses",Q[Q.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",Q[Q.ImportAttributes=24]="ImportAttributes",Q[Q.JSDocComment=25]="JSDocComment",Q[Q.Count=26]="Count"})(cx||(cx={}));let g4;(Q=>{Q[Q.False=0]="False",Q[Q.True=1]="True",Q[Q.Unknown=2]="Unknown"})(g4||(g4={}));let X_;(Q=>{function Re(gi,eo,fs){ki("file.js",gi,99,void 0,1,0),t.setText(gi,eo,fs),yt=t.scan();let Cs=Xe(),es=zt("file.js",99,1,!1,[],O(1),0,$a),Wf=VA(je,es);return at&&(es.jsDocDiagnostics=VA(at,es)),Ro(),Cs?{jsDocTypeExpression:Cs,diagnostics:Wf}:void 0}Q.parseJSDocTypeExpressionForTests=Re;function Xe(gi){let eo=w(),fs=(gi?yo:Dn)(19),Cs=ja(16777216,wm);(!gi||fs)&&hl(20);let es=m.createJSDocTypeExpression(Cs);return tt(es),on(es,eo)}Q.parseJSDocTypeExpression=Xe;function It(){let gi=w(),eo=yo(19),fs=w(),Cs=te(!1);for(;J()===81;)yi(),Dt(),Cs=on(m.createJSDocMemberName(Cs,Ms()),fs);eo&&hl(20);let es=m.createJSDocNameReference(Cs);return tt(es),on(es,gi)}Q.parseJSDocNameReference=It;function Ct(gi,eo,fs){ki("",gi,99,void 0,1,0);let Cs=ja(16777216,()=>Pi(eo,fs)),Wf=VA(je,{languageVariant:0,text:gi});return Ro(),Cs?{jsDoc:Cs,diagnostics:Wf}:void 0}Q.parseIsolatedJSDocComment=Ct;function qt(gi,eo,fs){let Cs=yt,es=je.length,Wf=Qt,Y_=ja(16777216,()=>Pi(eo,fs));return qa(Y_,gi),Xn&524288&&(at||(at=[]),Jr(at,je,es)),yt=Cs,je.length=es,Qt=Wf,Y_}Q.parseJSDocComment=qt;let Br;(gi=>{gi[gi.BeginningOfLine=0]="BeginningOfLine",gi[gi.SawAsterisk=1]="SawAsterisk",gi[gi.SavingComments=2]="SavingComments",gi[gi.SavingBackticks=3]="SavingBackticks"})(Br||(Br={}));let Fi;(gi=>{gi[gi.Property=1]="Property",gi[gi.Parameter=2]="Parameter",gi[gi.CallbackParameter=4]="CallbackParameter"})(Fi||(Fi={}));function Pi(gi=0,eo){let fs=Me,Cs=eo===void 0?fs.length:gi+eo;if(eo=Cs-gi,C.assert(gi>=0),C.assert(gi<=Cs),C.assert(Cs<=fs.length),!HH(fs,gi))return;let es,Wf,Y_,Sg,lv,cv=[],Rb=[],lp=rn;rn|=1<<25;let kT=t.scanRange(gi+3,eo-5,cD);return rn=lp,kT;function cD(){let Cn=1,Gr,kr=gi-(fs.lastIndexOf(` +`,gi)+1)+4;function Wi(xs){Gr||(Gr=kr),cv.push(xs),kr+=xs.length}for(Dt();dy(5););dy(4)&&(Cn=0,kr=0);e:for(;;){switch(J()){case 60:zP(cv),lv||(lv=w()),GP(uD(kr)),Cn=0,Gr=void 0;break;case 4:cv.push(t.getTokenText()),Cn=0,kr=0;break;case 42:let xs=t.getTokenText();Cn===1?(Cn=2,Wi(xs)):(C.assert(Cn===0),Cn=1,kr+=xs.length);break;case 5:C.assert(Cn!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");let ed=t.getTokenText();Gr!==void 0&&kr+ed.length>Gr&&cv.push(ed.slice(Gr-kr)),kr+=ed.length;break;case 1:break e;case 82:Cn=2,Wi(t.getTokenValue());break;case 19:Cn=2;let Fh=t.getTokenFullStart(),Cp=t.getTokenEnd()-1,p_=cc(Cp);if(p_){Sg||WP(cv),Rb.push(on(m.createJSDocText(cv.join("")),Sg??gi,Fh)),Rb.push(p_),cv=[],Sg=t.getTokenEnd();break}default:Cn=2,Wi(t.getTokenText());break}Cn===2?Pt(!1):Dt()}let Li=cv.join("").trimEnd();Rb.length&&Li.length&&Rb.push(on(m.createJSDocText(Li),Sg??gi,lv)),Rb.length&&es&&C.assertIsDefined(lv,"having parsed tags implies that the end of the comment span should be set");let os=es&&Wo(es,Wf,Y_);return on(m.createJSDocComment(Rb.length?Wo(Rb,gi,lv):Li.length?Li:void 0,os),gi,Cs)}function WP(Cn){for(;Cn.length&&(Cn[0]===` +`||Cn[0]==="\r");)Cn.shift()}function zP(Cn){for(;Cn.length;){let Gr=Cn[Cn.length-1].trimEnd();if(Gr==="")Cn.pop();else if(Gr.lengthed&&(Wi.push(dv.slice(ed-Cn)),xs=2),Cn+=dv.length;break;case 19:xs=2;let Np=t.getTokenFullStart(),fD=t.getTokenEnd()-1,v4=cc(fD);v4?(Li.push(on(m.createJSDocText(Wi.join("")),os??kr,Np)),Li.push(v4),Wi=[],os=t.getTokenEnd()):Fh(t.getTokenText());break;case 62:xs===3?xs=2:xs=3,Fh(t.getTokenText());break;case 82:xs!==3&&(xs=2),Fh(t.getTokenValue());break;case 42:if(xs===0){xs=1,Cn+=1;break}default:xs!==3&&(xs=2),Fh(t.getTokenText());break}xs===2||xs===3?Cp=Pt(xs===3):Cp=Dt()}WP(Wi);let p_=Wi.join("").trimEnd();if(Li.length)return p_.length&&Li.push(on(m.createJSDocText(p_),os??kr)),Wo(Li,kr,t.getTokenEnd());if(p_.length)return p_}function cc(Cn){let Gr=Ci(ux);if(!Gr)return;Dt(),uv();let kr=Q0(),Wi=[];for(;J()!==20&&J()!==4&&J()!==1;)Wi.push(t.getTokenText()),Dt();let Li=Gr==="link"?m.createJSDocLink:Gr==="linkcode"?m.createJSDocLinkCode:m.createJSDocLinkPlain;return on(Li(kr,Wi.join("")),Cn,t.getTokenEnd())}function Q0(){if(id(J())){let Cn=w(),Gr=Ic();for(;yo(25);)Gr=on(m.createQualifiedName(Gr,J()===81?Vs(80,!1):Ms()),Cn);for(;J()===81;)yi(),Dt(),Gr=on(m.createJSDocMemberName(Gr,Ms()),Cn);return Gr}}function ux(){if(Db(),J()===19&&Dt()===60&&id(Dt())){let Cn=t.getTokenValue();if(BP(Cn))return Cn}}function BP(Cn){return Cn==="link"||Cn==="linkcode"||Cn==="linkplain"}function Cb(Cn,Gr,kr,Wi){return on(m.createJSDocUnknownTag(Gr,Hp(Cn,w(),kr,Wi)),Cn)}function GP(Cn){Cn&&(es?es.push(Cn):(es=[Cn],Wf=Cn.pos),Y_=Cn.end)}function ar(){return Db(),J()===19?Xe():void 0}function E(){let Cn=dy(23);Cn&&uv();let Gr=dy(62),kr=pD();return Gr&&Pa(62),Cn&&(uv(),pa(64)&&qe(),Dn(24)),{name:kr,isBracketed:Cn}}function P(Cn){switch(Cn.kind){case 151:return!0;case 188:return P(Cn.elementType);default:return Rf(Cn)&&Ve(Cn.typeName)&&Cn.typeName.escapedText==="Object"&&!Cn.typeArguments}}function B(Cn,Gr,kr,Wi){let Li=ar(),os=!Li;Db();let{name:xs,isBracketed:ed}=E(),Fh=Db();os&&!Mi(ux)&&(Li=ar());let Cp=Hp(Cn,w(),Wi,Fh),p_=ce(Li,xs,kr,Wi);p_&&(Li=p_,os=!0);let dv=kr===1?m.createJSDocPropertyTag(Gr,xs,ed,Li,os,Cp):m.createJSDocParameterTag(Gr,xs,ed,Li,os,Cp);return on(dv,Cn)}function ce(Cn,Gr,kr,Wi){if(Cn&&P(Cn.type)){let Li=w(),os,xs;for(;os=Ci(()=>sz(kr,Wi,Gr));)os.kind===348||os.kind===355?xs=In(xs,os):os.kind===352&&Oe(os.tagName,f.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(xs){let ed=on(m.createJSDocTypeLiteral(xs,Cn.type.kind===188),Li);return on(m.createJSDocTypeExpression(ed),Li)}}}function $e(Cn,Gr,kr,Wi){Et(es,o5)&&q(Gr.pos,t.getTokenStart(),f._0_tag_already_specified,Hi(Gr.escapedText));let Li=ar();return on(m.createJSDocReturnTag(Gr,Li,Hp(Cn,w(),kr,Wi)),Cn)}function Jt(Cn,Gr,kr,Wi){Et(es,RN)&&q(Gr.pos,t.getTokenStart(),f._0_tag_already_specified,Hi(Gr.escapedText));let Li=Xe(!0),os=kr!==void 0&&Wi!==void 0?Hp(Cn,w(),kr,Wi):void 0;return on(m.createJSDocTypeTag(Gr,Li,os),Cn)}function br(Cn,Gr,kr,Wi){let os=J()===23||Mi(()=>Dt()===60&&id(Dt())&&BP(t.getTokenValue()))?void 0:It(),xs=kr!==void 0&&Wi!==void 0?Hp(Cn,w(),kr,Wi):void 0;return on(m.createJSDocSeeTag(Gr,os,xs),Cn)}function ao(Cn,Gr,kr,Wi){let Li=ar(),os=Hp(Cn,w(),kr,Wi);return on(m.createJSDocThrowsTag(Gr,Li,os),Cn)}function Hs(Cn,Gr,kr,Wi){let Li=w(),os=d_(),xs=t.getTokenFullStart(),ed=Hp(Cn,xs,kr,Wi);ed||(xs=t.getTokenFullStart());let Fh=typeof ed!="string"?Wo(xo([on(os,Li,xs)],ed),Li):os.text+ed;return on(m.createJSDocAuthorTag(Gr,Fh),Cn)}function d_(){let Cn=[],Gr=!1,kr=t.getToken();for(;kr!==1&&kr!==4;){if(kr===30)Gr=!0;else{if(kr===60&&!Gr)break;if(kr===32&&Gr){Cn.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}Cn.push(t.getTokenText()),kr=Dt()}return m.createJSDocText(Cn.join(""))}function Nb(Cn,Gr,kr,Wi){let Li=IZ();return on(m.createJSDocImplementsTag(Gr,Li,Hp(Cn,w(),kr,Wi)),Cn)}function Gm(Cn,Gr,kr,Wi){let Li=IZ();return on(m.createJSDocAugmentsTag(Gr,Li,Hp(Cn,w(),kr,Wi)),Cn)}function Z0(Cn,Gr,kr,Wi){let Li=Xe(!1),os=kr!==void 0&&Wi!==void 0?Hp(Cn,w(),kr,Wi):void 0;return on(m.createJSDocSatisfiesTag(Gr,Li,os),Cn)}function IZ(){let Cn=yo(19),Gr=w(),kr=ige();t.setInJSDocType(!0);let Wi=X0();t.setInJSDocType(!1);let Li=m.createExpressionWithTypeArguments(kr,Wi),os=on(Li,Gr);return Cn&&Dn(20),os}function ige(){let Cn=w(),Gr=t1();for(;yo(25);){let kr=t1();Gr=on(Z(Gr,kr),Cn)}return Gr}function e1(Cn,Gr,kr,Wi,Li){return on(Gr(kr,Hp(Cn,w(),Wi,Li)),Cn)}function oz(Cn,Gr,kr,Wi){let Li=Xe(!0);return uv(),on(m.createJSDocThisTag(Gr,Li,Hp(Cn,w(),kr,Wi)),Cn)}function xZ(Cn,Gr,kr,Wi){let Li=Xe(!0);return uv(),on(m.createJSDocEnumTag(Gr,Li,Hp(Cn,w(),kr,Wi)),Cn)}function VP(Cn,Gr,kr,Wi){let Li=ar();Db();let os=az();uv();let xs=Ua(kr),ed;if(!Li||P(Li.type)){let Cp,p_,dv,Np=!1;for(;(Cp=Ci(()=>CZ(kr)))&&Cp.kind!==352;)if(Np=!0,Cp.kind===351)if(p_){let fD=fn(f.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);fD&&ka(fD,RR(Ee,Me,0,0,f.The_tag_was_first_specified_here));break}else p_=Cp;else dv=In(dv,Cp);if(Np){let fD=Li&&Li.type.kind===188,v4=m.createJSDocTypeLiteral(dv,fD);Li=p_&&p_.typeExpression&&!P(p_.typeExpression.type)?p_.typeExpression:on(v4,Cn),ed=Li.end}}ed=ed||xs!==void 0?w():(os??Li??Gr).end,xs||(xs=Hp(Cn,ed,kr,Wi));let Fh=m.createJSDocTypedefTag(Gr,Li,os,xs);return on(Fh,Cn,ed)}function az(Cn){let Gr=t.getTokenStart();if(!id(J()))return;let kr=t1();if(yo(25)){let Wi=az(!0),Li=m.createModuleDeclaration(void 0,kr,Wi,Cn?8:void 0);return on(Li,Gr)}return Cn&&(kr.flags|=4096),kr}function RZ(Cn){let Gr=w(),kr,Wi;for(;kr=Ci(()=>sz(4,Cn));){if(kr.kind===352){Oe(kr.tagName,f.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}Wi=In(Wi,kr)}return Wo(Wi||[],Gr)}function DZ(Cn,Gr){let kr=RZ(Gr),Wi=Ci(()=>{if(dy(60)){let Li=uD(Gr);if(Li&&Li.kind===349)return Li}});return on(m.createJSDocSignature(void 0,kr,Wi),Cn)}function oge(Cn,Gr,kr,Wi){let Li=az();uv();let os=Ua(kr),xs=DZ(Cn,kr);os||(os=Hp(Cn,w(),kr,Wi));let ed=os!==void 0?w():xs.end;return on(m.createJSDocCallbackTag(Gr,xs,Li,os),Cn,ed)}function age(Cn,Gr,kr,Wi){uv();let Li=Ua(kr),os=DZ(Cn,kr);Li||(Li=Hp(Cn,w(),kr,Wi));let xs=Li!==void 0?w():os.end;return on(m.createJSDocOverloadTag(Gr,os,Li),Cn,xs)}function dD(Cn,Gr){for(;!Ve(Cn)||!Ve(Gr);)if(!Ve(Cn)&&!Ve(Gr)&&Cn.right.escapedText===Gr.right.escapedText)Cn=Cn.left,Gr=Gr.left;else return!1;return Cn.escapedText===Gr.escapedText}function CZ(Cn){return sz(1,Cn)}function sz(Cn,Gr,kr){let Wi=!0,Li=!1;for(;;)switch(Dt()){case 60:if(Wi){let os=ME(Cn,Gr);return os&&(os.kind===348||os.kind===355)&&kr&&(Ve(os.name)||!dD(kr,os.name.left))?!1:os}Li=!1;break;case 4:Wi=!0,Li=!1;break;case 42:Li&&(Wi=!1),Li=!0;break;case 80:Wi=!1;break;case 1:return!1}}function ME(Cn,Gr){C.assert(J()===60);let kr=t.getTokenFullStart();Dt();let Wi=t1(),Li=Db(),os;switch(Wi.escapedText){case"type":return Cn===1&&Jt(kr,Wi);case"prop":case"property":os=1;break;case"arg":case"argument":case"param":os=6;break;case"template":return Mb(kr,Wi,Gr,Li);case"this":return oz(kr,Wi,Gr,Li);default:return!1}return Cn&os?B(kr,Wi,Cn,Gr):!1}function pr(){let Cn=w(),Gr=dy(23);Gr&&uv();let kr=Lh(!1,!0),Wi=t1(f.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),Li;if(Gr&&(uv(),Dn(64),Li=ja(16777216,wm),Dn(24)),!Fl(Wi))return on(m.createTypeParameterDeclaration(kr,Wi,void 0,Li),Cn)}function Pb(){let Cn=w(),Gr=[];do{uv();let kr=pr();kr!==void 0&&Gr.push(kr),Db()}while(dy(28));return Wo(Gr,Cn)}function Mb(Cn,Gr,kr,Wi){let Li=J()===19?Xe():void 0,os=Pb();return on(m.createJSDocTemplateTag(Gr,Li,os,Hp(Cn,w(),kr,Wi)),Cn)}function dy(Cn){return J()===Cn?(Dt(),!0):!1}function pD(){let Cn=t1();for(yo(23)&&Dn(24);yo(25);){let Gr=t1();yo(23)&&Dn(24),Cn=lt(Cn,Gr)}return Cn}function t1(Cn){if(!id(J()))return Vs(80,!Cn,Cn||f.Identifier_expected);nn++;let Gr=t.getTokenStart(),kr=t.getTokenEnd(),Wi=J(),Li=nu(t.getTokenValue()),os=on(M(Li,Wi),Gr,kr);return Dt(),os}}})(X_=e.JSDocParser||(e.JSDocParser={}))})(T0||(T0={})),(e=>{function t(I,R,M,N){if(N=N||C.shouldAssert(2),m(I,R,M,N),are(M))return I;if(I.statements.length===0)return T0.parseSourceFile(I.fileName,R,I.languageVersion,void 0,!0,I.scriptKind,I.setExternalModuleIndicator,I.jsDocParsingMode);let O=I;C.assert(!O.hasBeenIncrementallyParsed),O.hasBeenIncrementallyParsed=!0,T0.fixupParentReferences(O);let H=I.text,K=b(I),Z=p(I,M);m(I,R,Z,N),C.assert(Z.span.start<=M.span.start),C.assert(ql(Z.span)===ql(M.span)),C.assert(ql(cC(Z))===ql(cC(M)));let V=cC(Z).length-Z.span.length;u(O,Z.span.start,ql(Z.span),ql(cC(Z)),V,H,R,N);let ue=T0.parseSourceFile(I.fileName,R,I.languageVersion,K,!0,I.scriptKind,I.setExternalModuleIndicator,I.jsDocParsingMode);return ue.commentDirectives=r(I.commentDirectives,ue.commentDirectives,Z.span.start,ql(Z.span),V,H,R,N),ue.impliedNodeFormat=I.impliedNodeFormat,ue}e.updateSourceFile=t;function r(I,R,M,N,O,H,K,Z){if(!I)return R;let V,ue=!1;for(let ne of I){let{range:he,type:ye}=ne;if(he.endN){G();let $={range:{pos:he.pos+O,end:he.end+O},type:ye};V=In(V,$),Z&&C.assert(H.substring(he.pos,he.end)===K.substring($.range.pos,$.range.end))}}return G(),V;function G(){ue||(ue=!0,V?R&&V.push(...R):V=R)}}function i(I,R,M,N,O,H){R?Z(I):K(I);return;function K(V){let ue="";if(H&&o(V)&&(ue=N.substring(V.pos,V.end)),V._children&&(V._children=void 0),gh(V,V.pos+M,V.end+M),H&&o(V)&&C.assert(ue===O.substring(V.pos,V.end)),Ho(V,K,Z),Op(V))for(let G of V.jsDoc)K(G);l(V,H)}function Z(V){V._children=void 0,gh(V,V.pos+M,V.end+M);for(let ue of V)K(ue)}}function o(I){switch(I.kind){case 11:case 9:case 80:return!0}return!1}function s(I,R,M,N,O){C.assert(I.end>=R,"Adjusting an element that was entirely before the change range"),C.assert(I.pos<=M,"Adjusting an element that was entirely after the change range"),C.assert(I.pos<=I.end);let H=Math.min(I.pos,N),K=I.end>=M?I.end+O:Math.min(I.end,N);C.assert(H<=K),I.parent&&(C.assertGreaterThanOrEqual(H,I.parent.pos),C.assertLessThanOrEqual(K,I.parent.end)),gh(I,H,K)}function l(I,R){if(R){let M=I.pos,N=O=>{C.assert(O.pos>=M),M=O.end};if(Op(I))for(let O of I.jsDoc)N(O);Ho(I,N),C.assert(M<=I.end)}}function u(I,R,M,N,O,H,K,Z){V(I);return;function V(G){if(C.assert(G.pos<=G.end),G.pos>M){i(G,!1,O,H,K,Z);return}let ne=G.end;if(ne>=R){if(G.intersectsChange=!0,G._children=void 0,s(G,R,M,N,O),Ho(G,V,ue),Op(G))for(let he of G.jsDoc)V(he);l(G,Z);return}C.assert(neM){i(G,!0,O,H,K,Z);return}let ne=G.end;if(ne>=R){G.intersectsChange=!0,G._children=void 0,s(G,R,M,N,O);for(let he of G)V(he);return}C.assert(ne0&&K<=1;K++){let Z=g(I,N);C.assert(Z.pos<=N);let V=Z.pos;N=Math.max(0,V-1)}let O=dc(N,ql(R.span)),H=R.newLength+(R.span.start-N);return tL(O,H)}function g(I,R){let M=I,N;if(Ho(I,H),N){let K=O(N);K.pos>M.pos&&(M=K)}return M;function O(K){for(;;){let Z=gU(K);if(Z)K=Z;else return K}}function H(K){if(!Fl(K))if(K.pos<=R){if(K.pos>=M.pos&&(M=K),RR),!0}}function m(I,R,M,N){let O=I.text;if(M&&(C.assert(O.length-M.span.length+M.newLength===R.length),N||C.shouldAssert(3))){let H=O.substr(0,M.span.start),K=R.substr(0,M.span.start);C.assert(H===K);let Z=O.substring(ql(M.span),O.length),V=R.substring(ql(cC(M)),R.length);C.assert(Z===V)}}function b(I){let R=I.statements,M=0;C.assert(M=ue.pos&&K=ue.pos&&K{I[I.Value=-1]="Value"})(T||(T={}))})($H||($H={})),QH=new Map,gTe=/^\/\/\/\s*<(\S+)\s.*?\/>/im,vTe=/^\/\/\/?\s*@([^\s:]+)(.*)\s*$/im}});function g5(e){let t=new Map,r=new Map;return Ke(e,i=>{t.set(i.name.toLowerCase(),i),i.shortName&&r.set(i.shortName,i.name)}),{optionsNameMap:t,shortOptionNames:r}}function $R(){return nAe||(nAe=g5(ug))}function fse(e){return yTe(e,Vl)}function yTe(e,t){let r=Vo(e.type.keys()),i=(e.deprecatedKeys?r.filter(o=>!e.deprecatedKeys.has(o)):r).map(o=>`'${o}'`).join(", ");return t(f.Argument_for_0_option_must_be_Colon_1,`--${e.name}`,i)}function v5(e,t,r){return $Te(e,(t??"").trim(),r)}function mse(e,t="",r){if(t=t.trim(),uo(t,"-"))return;if(e.type==="listOrElement"&&!t.includes(","))return hI(e,t,r);if(t==="")return[];let i=t.split(",");switch(e.element.type){case"number":return Vi(i,o=>hI(e.element,parseInt(o),r));case"string":return Vi(i,o=>hI(e.element,o||"",r));case"boolean":case"object":return C.fail(`List of ${e.element.type} is not yet supported.`);default:return Vi(i,o=>v5(e.element,o,r))}}function bTe(e){return e.name}function _se(e,t,r,i,o){var s;if((s=t.alternateMode)!=null&&s.getOptionsNameMap().optionsNameMap.has(e.toLowerCase()))return A0(o,i,t.alternateMode.diagnostic,e);let l=QD(e,t.optionDeclarations,bTe);return l?A0(o,i,t.unknownDidYouMeanDiagnostic,r||e,l.name):A0(o,i,t.unknownOptionDiagnostic,r||e)}function ZH(e,t,r){let i={},o,s=[],l=[];return u(t),{options:i,watchOptions:o,fileNames:s,errors:l};function u(g){let m=0;for(;mgu.readFile(I)));if(!wo(m)){l.push(m);return}let b=[],T=0;for(;;){for(;T=m.length)break;let I=T;if(m.charCodeAt(I)===34){for(T++;T32;)T++;b.push(m.substring(I,T))}}u(b)}}function ETe(e,t,r,i,o,s){if(i.isTSConfigOnly){let l=e[t];l==="null"?(o[i.name]=void 0,t++):i.type==="boolean"?l==="false"?(o[i.name]=hI(i,!1,s),t++):(l==="true"&&t++,s.push(Vl(f.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(s.push(Vl(f.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),l&&!uo(l,"-")&&t++)}else if(!e[t]&&i.type!=="boolean"&&s.push(Vl(r.optionTypeMismatchDiagnostic,i.name,rq(i))),e[t]!=="null")switch(i.type){case"number":o[i.name]=hI(i,parseInt(e[t]),s),t++;break;case"boolean":let l=e[t];o[i.name]=hI(i,l!=="false",s),(l==="false"||l==="true")&&t++;break;case"string":o[i.name]=hI(i,e[t]||"",s),t++;break;case"list":let u=mse(i,e[t],s);o[i.name]=u||[],u&&t++;break;case"listOrElement":C.fail("listOrElement not supported here");break;default:o[i.name]=v5(i,e[t],s),t++;break}else o[i.name]=void 0,t++;return t}function STe(e,t){return ZH(_w,e,t)}function eq(e,t){return hse($R,e,t)}function hse(e,t,r=!1){t=t.toLowerCase();let{optionsNameMap:i,shortOptionNames:o}=e();if(r){let s=o.get(t);s!==void 0&&(t=s)}return i.get(t)}function TTe(){return iAe||(iAe=g5(x5))}function ATe(e){let{options:t,watchOptions:r,fileNames:i,errors:o}=ZH(aAe,e),s=t;return i.length===0&&i.push("."),s.clean&&s.force&&o.push(Vl(f.Options_0_and_1_cannot_be_combined,"clean","force")),s.clean&&s.verbose&&o.push(Vl(f.Options_0_and_1_cannot_be_combined,"clean","verbose")),s.clean&&s.watch&&o.push(Vl(f.Options_0_and_1_cannot_be_combined,"clean","watch")),s.watch&&s.dry&&o.push(Vl(f.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:s,watchOptions:r,projects:i,errors:o}}function ITe(e,...t){return aa(Vl(e,...t).messageText,wo)}function ow(e,t,r,i,o,s){let l=MN(e,g=>r.readFile(g));if(!wo(l)){r.onUnRecoverableConfigFileDiagnostic(l);return}let u=iw(e,l),p=r.getCurrentDirectory();return u.path=rl(e,p,Pu(r.useCaseSensitiveFileNames)),u.resolvedPath=u.path,u.originalFileName=u.fileName,lw(u,r,bo(li(e),p),t,bo(e,p),void 0,s,i,o)}function aw(e,t){let r=MN(e,t);return wo(r)?tq(e,r):{config:{},error:r}}function tq(e,t){let r=iw(e,t);return{config:NTe(r,r.parseDiagnostics,void 0),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function gse(e,t){let r=MN(e,t);return wo(r)?iw(e,r):{fileName:e,parseDiagnostics:[r]}}function MN(e,t){let r;try{r=t(e)}catch(i){return Vl(f.Cannot_read_file_0_Colon_1,e,i.message)}return r===void 0?Vl(f.Cannot_read_file_0,e):r}function nq(e){return g1(e,bTe)}function xTe(){return sAe||(sAe=g5(QR))}function RTe(){return lAe||(lAe=nq(ug))}function DTe(){return cAe||(cAe=nq(QR))}function CTe(){return uAe||(uAe=nq(mw))}function NBe(){return Mse===void 0&&(Mse={name:void 0,type:"object",elementOptions:nq([Cse,Nse,Pse,hw,{name:"references",type:"list",element:{name:"references",type:"object"},category:f.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:f.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:f.File_Management,defaultValueDescription:f.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:f.File_Management,defaultValueDescription:f.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},uw])}),Mse}function NTe(e,t,r){var i;let o=(i=e.statements[0])==null?void 0:i.expression;if(o&&o.kind!==210){if(t.push(Yf(e,o,f.The_root_value_of_a_0_file_must_be_an_object,rc(e.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),pd(o)){let s=vn(o.elements,wa);if(s)return sw(e,s,t,!0,r)}return{}}return sw(e,o,t,!0,r)}function vse(e,t){var r;return sw(e,(r=e.statements[0])==null?void 0:r.expression,t,!0,void 0)}function sw(e,t,r,i,o){if(!t)return i?{}:void 0;return u(t,o?.rootOptions);function s(g,m){var b;let T=i?{}:void 0;for(let I of g.properties){if(I.kind!==303){r.push(Yf(e,I,f.Property_assignment_expected));continue}I.questionToken&&r.push(Yf(e,I.questionToken,f.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),p(I.name)||r.push(Yf(e,I.name,f.String_literal_with_double_quotes_expected));let R=TL(I.name)?void 0:Zx(I.name),M=R&&Hi(R),N=M?(b=m?.elementOptions)==null?void 0:b.get(M):void 0,O=u(I.initializer,N);typeof M<"u"&&(i&&(T[M]=O),o?.onPropertySet(M,O,I,m,N))}return T}function l(g,m){if(!i){g.forEach(b=>u(b,m));return}return tr(g.map(b=>u(b,m)),b=>b!==void 0)}function u(g,m){switch(g.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return p(g)||r.push(Yf(e,g,f.String_literal_with_double_quotes_expected)),g.text;case 9:return Number(g.text);case 224:if(g.operator!==41||g.operand.kind!==9)break;return-Number(g.operand.text);case 210:return s(g,m);case 209:return l(g.elements,m&&m.element)}m?r.push(Yf(e,g,f.Compiler_option_0_requires_a_value_of_type_1,m.name,rq(m))):r.push(Yf(e,g,f.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function p(g){return Na(g)&&s3(g,e)}}function rq(e){return e.type==="listOrElement"?`${rq(e.element)} or Array`:e.type==="list"?"Array":wo(e.type)?e.type:"string"}function PTe(e,t){if(e){if(cw(t))return!e.disallowNullOrUndefined;if(e.type==="list")return Do(t);if(e.type==="listOrElement")return Do(t)||PTe(e.element,t);let r=wo(e.type)?e.type:"string";return typeof t===r}return!1}function MTe(e,t,r){var i,o,s;let l=Pu(r.useCaseSensitiveFileNames),u=Ft(tr(e.fileNames,(o=(i=e.options.configFile)==null?void 0:i.configFileSpecs)!=null&&o.validatedIncludeSpecs?MBe(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,r):Dv),R=>UM(bo(t,r.getCurrentDirectory()),bo(R,r.getCurrentDirectory()),l)),p={configFilePath:bo(t,r.getCurrentDirectory()),useCaseSensitiveFileNames:r.useCaseSensitiveFileNames},g=b5(e.options,p),m=e.watchOptions&&LBe(e.watchOptions),b={compilerOptions:{...y5(g),showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0},watchOptions:m&&y5(m),references:Ft(e.projectReferences,R=>({...R,path:R.originalPath?R.originalPath:"",originalPath:void 0})),files:De(u)?u:void 0,...(s=e.options.configFile)!=null&&s.configFileSpecs?{include:PBe(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:e.compileOnSave?!0:void 0},T=new Set(g.keys()),I={};for(let R in mc)if(!T.has(R)&&Et(mc[R].dependencies,M=>T.has(M))){let M=mc[R].computeValue(e.options),N=mc[R].computeValue({});M!==N&&(I[R]=mc[R].computeValue(e.options))}return Cx(b.compilerOptions,y5(b5(I,p))),b}function y5(e){return{...Vo(e.entries()).reduce((t,r)=>({...t,[r[0]]:r[1]}),{})}}function PBe(e){if(De(e)){if(De(e)!==1)return e;if(e[0]!==C5)return e}}function MBe(e,t,r,i){if(!t)return Dv;let o=q3(e,r,t,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),s=o.excludePattern&&jy(o.excludePattern,i.useCaseSensitiveFileNames),l=o.includeFilePattern&&jy(o.includeFilePattern,i.useCaseSensitiveFileNames);return l?s?u=>!(l.test(u)&&!s.test(u)):u=>!l.test(u):s?u=>s.test(u):Dv}function LTe(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return LTe(e.element);default:return e.type}}function iq(e,t){return Bc(t,(r,i)=>{if(r===e)return i})}function b5(e,t){return kTe(e,$R(),t)}function LBe(e){return kTe(e,xTe())}function kTe(e,{optionsNameMap:t},r){let i=new Map,o=r&&Pu(r.useCaseSensitiveFileNames);for(let s in e)if(Rs(e,s)){if(t.has(s)&&(t.get(s).category===f.Command_line_Options||t.get(s).category===f.Output_Formatting))continue;let l=e[s],u=t.get(s.toLowerCase());if(u){C.assert(u.type!=="listOrElement");let p=LTe(u);p?u.type==="list"?i.set(s,l.map(g=>iq(g,p))):i.set(s,iq(l,p)):r&&u.isFilePath?i.set(s,UM(r.configFilePath,bo(l,li(r.configFilePath)),o)):i.set(s,l)}}return i}function wTe(e,t){let r=OTe(e);return o();function i(s){return Array(s+1).join(" ")}function o(){let s=[],l=i(2);return cq.forEach(u=>{if(!r.has(u.name))return;let p=r.get(u.name),g=Ise(u);p!==g?s.push(`${l}${u.name}: ${p}`):Rs(R5,u.name)&&s.push(`${l}${u.name}: ${g}`)}),s.join(t)+t}}function OTe(e){let t=P8(e,R5);return b5(t)}function FTe(e,t,r){let i=OTe(e);return l();function o(u){return Array(u+1).join(" ")}function s({category:u,name:p,isCommandLineOnly:g}){let m=[f.Command_line_Options,f.Editor_Support,f.Compiler_Diagnostics,f.Backwards_Compatibility,f.Watch_and_Build_Modes,f.Output_Formatting];return!g&&u!==void 0&&(!m.includes(u)||i.has(p))}function l(){let u=new Map;u.set(f.Projects,[]),u.set(f.Language_and_Environment,[]),u.set(f.Modules,[]),u.set(f.JavaScript_Support,[]),u.set(f.Emit,[]),u.set(f.Interop_Constraints,[]),u.set(f.Type_Checking,[]),u.set(f.Completeness,[]);for(let I of ug)if(s(I)){let R=u.get(I.category);R||u.set(I.category,R=[]),R.push(I)}let p=0,g=0,m=[];u.forEach((I,R)=>{m.length!==0&&m.push({value:""}),m.push({value:`/* ${Bo(R)} */`});for(let M of I){let N;i.has(M.name)?N=`"${M.name}": ${JSON.stringify(i.get(M.name))}${(g+=1)===i.size?"":","}`:N=`// "${M.name}": ${JSON.stringify(Ise(M))},`,m.push({value:N,description:`/* ${M.description&&Bo(M.description)||M.name} */`}),p=Math.max(N.length,p)}});let b=o(2),T=[];T.push("{"),T.push(`${b}"compilerOptions": {`),T.push(`${b}${b}/* ${Bo(f.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),T.push("");for(let I of m){let{value:R,description:M=""}=I;T.push(R&&`${b}${b}${R}${M&&o(p-R.length+2)+M}`)}if(t.length){T.push(`${b}},`),T.push(`${b}"files": [`);for(let I=0;Itypeof me=="object","object"),he=Z(V("files"));if(he){let me=ne==="no-prop"||Do(ne)&&ne.length===0,ie=Rs(T,"extends");if(he.length===0&&me&&!ie)if(t){let ve=l||"tsconfig.json",Le=f.The_files_list_in_config_file_0_is_empty,He=DL(t,"files",Ce=>Ce.initializer),Ee=A0(t,He,Le,ve);m.push(Ee)}else G(f.The_files_list_in_config_file_0_is_empty,l||"tsconfig.json")}let ye=Z(V("include")),$=V("exclude"),Y=!1,oe=Z($);if($==="no-prop"&&T.compilerOptions){let me=T.compilerOptions.outDir,ie=T.compilerOptions.declarationDir;(me||ie)&&(oe=[me,ie].filter(ve=>!!ve))}he===void 0&&ye===void 0&&(ye=[C5],Y=!0);let fe,Ne;return ye&&(fe=tAe(ye,m,!0,t,"include")),oe&&(Ne=tAe(oe,m,!1,t,"exclude")),{filesSpecs:he,includeSpecs:ye,excludeSpecs:oe,validatedFilesSpec:tr(he,wo),validatedIncludeSpecs:fe,validatedExcludeSpecs:Ne,pathPatterns:void 0,isDefaultIncludeSpec:Y}}function H(ne){let he=kN(M,ne,I,r,p);return VTe(he,LN(T),u)&&m.push(GTe(M,l)),he}function K(ne){let he,ye=ue("references",$=>typeof $=="object","object");if(Do(ye))for(let $ of ye)typeof $.path!="string"?G(f.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(he||(he=[])).push({path:bo($.path,ne),originalPath:$.path,prepend:$.prepend,circular:$.circular});return he}function Z(ne){return Do(ne)?ne:void 0}function V(ne){return ue(ne,wo,"string")}function ue(ne,he,ye){if(Rs(T,ne)&&!cw(T[ne]))if(Do(T[ne])){let $=T[ne];return!t&&!Jn($,he)&&m.push(Vl(f.Compiler_option_0_requires_a_value_of_type_1,ne,ye)),$}else return G(f.Compiler_option_0_requires_a_value_of_type_1,ne,"Array"),"not-array";return"no-prop"}function G(ne,...he){t||m.push(Vl(ne,...he))}}function wBe(e){return e.code===f.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function GTe({includeSpecs:e,excludeSpecs:t},r){return Vl(f.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,r||"tsconfig.json",JSON.stringify(e||[]),JSON.stringify(t||[]))}function VTe(e,t,r){return e.length===0&&t&&(!r||r.length===0)}function LN(e){return!Rs(e,"files")&&!Rs(e,"references")}function E5(e,t,r,i,o){let s=i.length;return VTe(e,o)?i.push(GTe(r,t)):Bi(i,l=>!wBe(l)),s!==i.length}function OBe(e){return!!e.options}function jTe(e,t,r,i,o,s,l,u){var p;i=Mu(i);let g=bo(o||"",i);if(s.includes(g))return l.push(Vl(f.Circularity_detected_while_resolving_configuration_Colon_0,[...s,g].join(" -> "))),{raw:e||vse(t,l)};let m=e?FBe(e,r,i,o,l):WBe(t,r,i,o,l);if((p=m.options)!=null&&p.paths&&(m.options.pathsBasePath=i),m.extendedConfigPath){s=s.concat([g]);let T={options:{}};wo(m.extendedConfigPath)?b(T,m.extendedConfigPath):m.extendedConfigPath.forEach(I=>b(T,I)),!m.raw.include&&T.include&&(m.raw.include=T.include),!m.raw.exclude&&T.exclude&&(m.raw.exclude=T.exclude),!m.raw.files&&T.files&&(m.raw.files=T.files),m.raw.compileOnSave===void 0&&T.compileOnSave&&(m.raw.compileOnSave=T.compileOnSave),t&&T.extendedSourceFiles&&(t.extendedSourceFiles=Vo(T.extendedSourceFiles.keys())),m.options=Cx(T.options,m.options),m.watchOptions=m.watchOptions&&T.watchOptions?Cx(T.watchOptions,m.watchOptions):m.watchOptions||T.watchOptions}return m;function b(T,I){let R=zBe(t,I,r,s,l,u,T);if(R&&OBe(R)){let M=R.raw,N,O=H=>{M[H]&&(T[H]=Ft(M[H],K=>dp(K)?K:Zr(N||(N=iC(li(I),i,Pu(r.useCaseSensitiveFileNames))),K)))};O("include"),O("exclude"),O("files"),M.compileOnSave!==void 0&&(T.compileOnSave=M.compileOnSave),Cx(T.options,R.options),T.watchOptions=T.watchOptions&&R.watchOptions?Cx({},T.watchOptions,R.watchOptions):T.watchOptions||R.watchOptions}}}function FBe(e,t,r,i,o){Rs(e,"excludes")&&o.push(Vl(f.Unknown_option_excludes_Did_you_mean_exclude));let s=XTe(e.compilerOptions,r,o,i),l=YTe(e.typeAcquisition,r,o,i),u=GBe(e.watchOptions,r,o);e.compileOnSave=BBe(e,r,o);let p=e.extends||e.extends===""?UTe(e.extends,t,r,i,o):void 0;return{raw:e,options:s,watchOptions:u,typeAcquisition:l,extendedConfigPath:p}}function UTe(e,t,r,i,o,s,l,u){let p,g=i?zTe(i,r):r;if(wo(e))p=HTe(e,t,g,o,l,u);else if(Do(e)){p=[];for(let m=0;mH.name===I)&&(g=In(g,M.name))))}}function HTe(e,t,r,i,o,s){if(e=Mu(e),dp(e)||uo(e,"./")||uo(e,"../")){let u=bo(e,r);if(!t.fileExists(u)&&!Sl(u,".json")&&(u=`${u}.json`,!t.fileExists(u))){i.push(A0(s,o,f.File_0_not_found,e));return}return u}let l=Vse(e,Zr(r,"tsconfig.json"),t);if(l.resolvedModule)return l.resolvedModule.resolvedFileName;e===""?i.push(A0(s,o,f.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):i.push(A0(s,o,f.File_0_not_found,e))}function zBe(e,t,r,i,o,s,l){let u=r.useCaseSensitiveFileNames?t:lh(t),p,g,m;if(s&&(p=s.get(u))?{extendedResult:g,extendedConfig:m}=p:(g=gse(t,b=>r.readFile(b)),g.parseDiagnostics.length||(m=jTe(void 0,g,r,li(t),rc(t),i,o,s)),s&&s.set(u,{extendedResult:g,extendedConfig:m})),e&&((l.extendedSourceFiles??(l.extendedSourceFiles=new Set)).add(g.fileName),g.extendedSourceFiles))for(let b of g.extendedSourceFiles)l.extendedSourceFiles.add(b);if(g.parseDiagnostics.length){o.push(...g.parseDiagnostics);return}return m}function BBe(e,t,r){if(!Rs(e,uw.name))return!1;let i=HS(uw,e.compileOnSave,t,r);return typeof i=="boolean"&&i}function qTe(e,t,r){let i=[];return{options:XTe(e,t,i,r),errors:i}}function JTe(e,t,r){let i=[];return{options:YTe(e,t,i,r),errors:i}}function KTe(e){return e&&rc(e)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function XTe(e,t,r,i){let o=KTe(i);return yse(RTe(),e,t,o,_w,r),i&&(o.configFilePath=Mu(i)),o}function sq(e){return{enable:!!e&&rc(e)==="jsconfig.json",include:[],exclude:[]}}function YTe(e,t,r,i){let o=sq(i);return yse(CTe(),e,t,o,Dse,r),o}function GBe(e,t,r){return yse(DTe(),e,t,void 0,D5,r)}function yse(e,t,r,i,o,s){if(t){for(let l in t){let u=e.get(l);u?(i||(i={}))[u.name]=HS(u,t[l],r,s):s.push(_se(l,o))}return i}}function A0(e,t,r,...i){return e&&t?Yf(e,t,r,...i):Vl(r,...i)}function HS(e,t,r,i,o,s,l){if(e.isCommandLineOnly){i.push(A0(l,o?.name,f.Option_0_can_only_be_specified_on_command_line,e.name));return}if(PTe(e,t)){let u=e.type;if(u==="list"&&Do(t))return QTe(e,t,r,i,o,s,l);if(u==="listOrElement")return Do(t)?QTe(e,t,r,i,o,s,l):HS(e.element,t,r,i,o,s,l);if(!wo(e.type))return $Te(e,t,i,s,l);let p=hI(e,t,i,s,l);return cw(p)?p:VBe(e,r,p)}else i.push(A0(l,s,f.Compiler_option_0_requires_a_value_of_type_1,e.name,rq(e)))}function VBe(e,t,r){return e.isFilePath&&(r=bo(r,t),r===""&&(r=".")),r}function hI(e,t,r,i,o){var s;if(cw(t))return;let l=(s=e.extraValidation)==null?void 0:s.call(e,t);if(!l)return t;r.push(A0(o,i,...l))}function $Te(e,t,r,i,o){if(cw(t))return;let s=t.toLowerCase(),l=e.type.get(s);if(l!==void 0)return hI(e,l,r,i,o);r.push(yTe(e,(u,...p)=>A0(o,i,u,...p)))}function QTe(e,t,r,i,o,s,l){return tr(Ft(t,(u,p)=>HS(e.element,u,r,i,o,s?.elements[p],l)),u=>e.listPreserveFalsyValues?!0:!!u)}function kN(e,t,r,i,o=et){t=va(t);let s=Pu(i.useCaseSensitiveFileNames),l=new Map,u=new Map,p=new Map,{validatedFilesSpec:g,validatedIncludeSpecs:m,validatedExcludeSpecs:b}=e,T=$C(r,o),I=fk(r,T);if(g)for(let O of g){let H=bo(O,t);l.set(s(H),H)}let R;if(m&&m.length>0)for(let O of i.readDirectory(t,ts(I),b,m,void 0)){if(Tl(O,".json")){if(!R){let Z=m.filter(ue=>Sl(ue,".json")),V=Ft(U3(Z,t,"files"),ue=>`^${ue}$`);R=V?V.map(ue=>jy(ue,i.useCaseSensitiveFileNames)):et}if(ri(R,Z=>Z.test(O))!==-1){let Z=s(O);!l.has(Z)&&!p.has(Z)&&p.set(Z,O)}continue}if(HBe(O,l,u,T,s))continue;qBe(O,u,T,s);let H=s(O);!l.has(H)&&!u.has(H)&&u.set(H,O)}let M=Vo(l.values()),N=Vo(u.values());return M.concat(N,Vo(p.values()))}function bse(e,t,r,i,o){let{validatedFilesSpec:s,validatedIncludeSpecs:l,validatedExcludeSpecs:u}=t;if(!De(l)||!De(u))return!1;r=va(r);let p=Pu(i);if(s){for(let g of s)if(p(bo(g,r))===e)return!1}return eAe(e,u,i,o,r)}function ZTe(e){let t=uo(e,"**/")?0:e.indexOf("/**/");return t===-1?!1:(Sl(e,"/..")?e.length:e.lastIndexOf("/../"))>t}function S5(e,t,r,i){return eAe(e,tr(t,o=>!ZTe(o)),r,i)}function eAe(e,t,r,i,o){let s=YC(t,Zr(va(i),o),"exclude"),l=s&&jy(s,r);return l?l.test(e)?!0:!EA(e)&&l.test(zc(e)):!1}function tAe(e,t,r,i,o){return e.filter(l=>{if(!wo(l))return!1;let u=Ese(l,r);return u!==void 0&&t.push(s(...u)),u===void 0});function s(l,u){let p=X6(i,o,u);return A0(i,p,l,u)}}function Ese(e,t){if(C.assert(typeof e=="string"),t&&dAe.test(e))return[f.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e];if(ZTe(e))return[f.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]}function jBe({validatedIncludeSpecs:e,validatedExcludeSpecs:t},r,i){let o=YC(t,r,"exclude"),s=o&&new RegExp(o,i?"":"i"),l={},u=new Map;if(e!==void 0){let p=[];for(let g of e){let m=va(Zr(r,g));if(s&&s.test(m))continue;let b=UBe(m,i);if(b){let{key:T,path:I,flags:R}=b,M=u.get(T),N=M!==void 0?l[M]:void 0;(N===void 0||NEc(e,l)?l:void 0);if(!s)return!1;for(let l of s){if(Tl(e,l)&&(l!==".ts"||!Tl(e,".d.ts")))return!1;let u=o(m0(e,l));if(t.has(u)||r.has(u)){if(l===".d.ts"&&(Tl(e,".js")||Tl(e,".jsx")))continue;return!0}}return!1}function qBe(e,t,r,i){let o=Ke(r,s=>Ec(e,s)?s:void 0);if(o)for(let s=o.length-1;s>=0;s--){let l=o[s];if(Tl(e,l))return;let u=i(m0(e,l));t.delete(u)}}function Tse(e){let t={};for(let r in e)if(Rs(e,r)){let i=eq(r);i!==void 0&&(t[r]=Ase(e[r],i))}return t}function Ase(e,t){if(e===void 0)return e;switch(t.type){case"object":return"";case"string":return"";case"number":return typeof e=="number"?e:"";case"boolean":return typeof e=="boolean"?e:"";case"listOrElement":if(!Do(e))return Ase(e,t.element);case"list":let r=t.element;return Do(e)?Vi(e,i=>Ase(i,r)):"";default:return Bc(t.type,(i,o)=>{if(i===e)return o})}}function Ise(e){switch(e.type){case"number":return 1;case"boolean":return!0;case"string":let t=e.defaultValueDescription;return e.isFilePath?`./${t&&typeof t=="string"?t:""}`:"";case"list":return[];case"listOrElement":return Ise(e.element);case"object":return{};default:let r=D8(e.type.keys());return r!==void 0?r:C.fail("Expected 'option.type' to have entries.")}}var uw,xse,wN,Rse,dw,T5,QR,pw,fw,lq,cq,ug,uq,dq,pq,A5,I5,fq,mq,_q,x5,mw,nAe,rAe,R5,_w,iAe,oAe,aAe,Dse,sAe,D5,lAe,cAe,uAe,hw,Cse,Nse,Pse,Mse,C5,dAe,pAe,JBe=A({"src/compiler/commandLineParser.ts"(){"use strict";ia(),uw={name:"compileOnSave",type:"boolean",defaultValueDescription:!1},xse=new Map(Object.entries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5})),wN=new Map(ra(xse.entries(),([e,t])=>[""+t,e])),Rse=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["es2021","lib.es2021.d.ts"],["es2022","lib.es2022.d.ts"],["es2023","lib.es2023.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["dom.asynciterable","lib.dom.asynciterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.d.ts"],["webworker.asynciterable","lib.webworker.asynciterable.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2016.intl","lib.es2016.intl.d.ts"],["es2017.date","lib.es2017.date.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2019.intl","lib.es2019.intl.d.ts"],["es2020.bigint","lib.es2020.bigint.d.ts"],["es2020.date","lib.es2020.date.d.ts"],["es2020.promise","lib.es2020.promise.d.ts"],["es2020.sharedmemory","lib.es2020.sharedmemory.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["es2020.intl","lib.es2020.intl.d.ts"],["es2020.number","lib.es2020.number.d.ts"],["es2021.promise","lib.es2021.promise.d.ts"],["es2021.string","lib.es2021.string.d.ts"],["es2021.weakref","lib.es2021.weakref.d.ts"],["es2021.intl","lib.es2021.intl.d.ts"],["es2022.array","lib.es2022.array.d.ts"],["es2022.error","lib.es2022.error.d.ts"],["es2022.intl","lib.es2022.intl.d.ts"],["es2022.object","lib.es2022.object.d.ts"],["es2022.sharedmemory","lib.es2022.sharedmemory.d.ts"],["es2022.string","lib.es2022.string.d.ts"],["es2022.regexp","lib.es2022.regexp.d.ts"],["es2023.array","lib.es2023.array.d.ts"],["es2023.collection","lib.es2023.collection.d.ts"],["esnext.array","lib.es2023.array.d.ts"],["esnext.collection","lib.esnext.collection.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.disposable","lib.esnext.disposable.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.es2022.string.d.ts"],["esnext.promise","lib.esnext.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"],["esnext.decorators","lib.esnext.decorators.d.ts"],["esnext.object","lib.esnext.object.d.ts"],["decorators","lib.decorators.d.ts"],["decorators.legacy","lib.decorators.legacy.d.ts"]],dw=Rse.map(e=>e[0]),T5=new Map(Rse),QR=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:f.Watch_and_Build_Modes,description:f.Specify_how_the_TypeScript_watch_mode_works,defaultValueDescription:4},{name:"watchDirectory",type:new Map(Object.entries({usefsevents:0,fixedpollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3})),category:f.Watch_and_Build_Modes,description:f.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,defaultValueDescription:0},{name:"fallbackPolling",type:new Map(Object.entries({fixedinterval:0,priorityinterval:1,dynamicpriority:2,fixedchunksize:3})),category:f.Watch_and_Build_Modes,description:f.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:f.Watch_and_Build_Modes,description:f.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,defaultValueDescription:!1},{name:"excludeDirectories",type:"list",element:{name:"excludeDirectory",type:"string",isFilePath:!0,extraValidation:Ese},category:f.Watch_and_Build_Modes,description:f.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:Ese},category:f.Watch_and_Build_Modes,description:f.Remove_a_list_of_files_from_the_watch_mode_s_processing}],pw=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:f.Command_line_Options,description:f.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:f.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:f.Command_line_Options,description:f.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:f.Output_Formatting,description:f.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:f.Compiler_Diagnostics,description:f.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:f.Compiler_Diagnostics,description:f.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:f.Compiler_Diagnostics,description:f.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:f.Output_Formatting,description:f.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:f.Compiler_Diagnostics,description:f.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:f.Compiler_Diagnostics,description:f.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:f.Compiler_Diagnostics,description:f.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:f.FILE_OR_DIRECTORY,category:f.Compiler_Diagnostics,description:f.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:f.DIRECTORY,category:f.Compiler_Diagnostics,description:f.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:f.Projects,description:f.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:f.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,transpileOptionValue:void 0,description:f.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:f.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:f.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,description:f.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,defaultValueDescription:!1,description:f.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:f.Emit,description:f.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:f.Watch_and_Build_Modes,description:f.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,defaultValueDescription:!1},{name:"locale",type:"string",category:f.Command_line_Options,isCommandLineOnly:!0,description:f.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:f.Platform_specific}],fw={name:"target",shortName:"t",type:new Map(Object.entries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,es2022:9,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,deprecatedKeys:new Set(["es3"]),paramType:f.VERSION,showInSimplifiedHelpView:!0,category:f.Language_and_Environment,description:f.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},lq={name:"module",shortName:"m",type:new Map(Object.entries({none:0,commonjs:1,amd:2,system:4,umd:3,es6:5,es2015:5,es2020:6,es2022:7,esnext:99,node16:100,nodenext:199,preserve:200})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:f.KIND,showInSimplifiedHelpView:!0,category:f.Modules,description:f.Specify_what_module_code_is_generated,defaultValueDescription:void 0},cq=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:f.Command_line_Options,paramType:f.FILE_OR_DIRECTORY,description:f.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:f.Command_line_Options,isCommandLineOnly:!0,description:f.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:f.Command_line_Options,isCommandLineOnly:!0,description:f.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},fw,lq,{name:"lib",type:"list",element:{name:"lib",type:T5,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:f.Language_and_Environment,description:f.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",allowJsFlag:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.JavaScript_Support,description:f.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,defaultValueDescription:!1},{name:"checkJs",type:"boolean",affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.JavaScript_Support,description:f.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:xse,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,paramType:f.KIND,showInSimplifiedHelpView:!0,category:f.Language_and_Environment,description:f.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.FILE,showInSimplifiedHelpView:!0,category:f.Emit,description:f.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.DIRECTORY,showInSimplifiedHelpView:!0,category:f.Emit,description:f.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.LOCATION,category:f.Modules,description:f.Specify_the_root_folder_within_your_source_files,defaultValueDescription:f.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:f.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:f.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:f.FILE,category:f.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:f.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,defaultValueDescription:!1,description:f.Disable_emitting_comments},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:f.Emit,description:f.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:!1},{name:"importsNotUsedAsValues",type:new Map(Object.entries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:f.Interop_Constraints,description:f.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"verbatimModuleSyntax",type:"boolean",category:f.Interop_Constraints,description:f.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting,defaultValueDescription:!1},{name:"strict",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Type_Checking,description:f.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:f.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:f.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:f.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:f.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:f.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:f.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:f.false_unless_strict_is_set},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Ensure_use_strict_is_always_emitted,defaultValueDescription:f.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:!1},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:!1},{name:"noPropertyAccessFromIndexSignature",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!1,category:f.Type_Checking,description:f.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:"moduleResolution",type:new Map(Object.entries({node10:2,node:2,classic:1,node16:3,nodenext:99,bundler:100})),deprecatedKeys:new Set(["node"]),affectsSourceFile:!0,affectsModuleResolution:!0,paramType:f.STRATEGY,category:f.Modules,description:f.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:f.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:f.Modules,description:f.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:f.Modules,description:f.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:f.Modules,description:f.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:f.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:f.Modules,description:f.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:f.Modules,description:f.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Interop_Constraints,description:f.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:f.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Interop_Constraints,description:f.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:f.Interop_Constraints,description:f.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:!1},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Modules,description:f.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:f.Modules,description:f.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Modules,description:f.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,defaultValueDescription:!1,transpileOptionValue:void 0},{name:"resolvePackageJsonExports",type:"boolean",affectsModuleResolution:!0,category:f.Modules,description:f.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:f.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:f.Modules,description:f.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:f.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:f.Modules,description:f.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:f.LOCATION,category:f.Emit,description:f.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:f.LOCATION,category:f.Emit,description:f.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:f.Language_and_Environment,description:f.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,defaultValueDescription:"`React.createElement`"},{name:"jsxFragmentFactory",type:"string",category:f.Language_and_Environment,description:f.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,defaultValueDescription:"React.Fragment"},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,category:f.Language_and_Environment,description:f.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,defaultValueDescription:"react"},{name:"resolveJsonModule",type:"boolean",affectsModuleResolution:!0,category:f.Modules,description:f.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:f.Modules,description:f.Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present,defaultValueDescription:!1},{name:"out",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!1,category:f.Backwards_Compatibility,paramType:f.FILE,transpileOptionValue:void 0,description:f.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:f.Completeness,description:f.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:f.Backwards_Compatibility,description:f.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:"utf8"},{name:"emitBOM",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:!1},{name:"newLine",type:new Map(Object.entries({crlf:0,lf:1})),affectsEmit:!0,affectsBuildInfo:!0,paramType:f.NEWLINE,category:f.Emit,description:f.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Output_Formatting,description:f.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:f.Language_and_Environment,affectsProgramStructure:!0,description:f.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:f.Modules,description:f.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:!1},{name:"stripInternal",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:f.Editor_Support,description:f.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:!1},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:f.Projects,description:f.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:f.Projects,description:f.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:f.Projects,description:f.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,transpileOptionValue:void 0,description:f.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.DIRECTORY,category:f.Emit,transpileOptionValue:void 0,description:f.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:f.Completeness,description:f.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:f.Interop_Constraints,description:f.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:f.JavaScript_Support,description:f.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,defaultValueDescription:0},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:f.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:f.Backwards_Compatibility,description:f.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:!1},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:f.Specify_a_list_of_language_service_plugins_to_include,category:f.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsSourceFile:!0,affectsModuleResolution:!0,description:f.Control_what_method_is_used_to_detect_module_format_JS_files,category:f.Language_and_Environment,defaultValueDescription:f.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules},{name:"ignoreDeprecations",type:"string",defaultValueDescription:void 0}],ug=[...pw,...cq],uq=ug.filter(e=>!!e.affectsSemanticDiagnostics),dq=ug.filter(e=>!!e.affectsEmit),pq=ug.filter(e=>!!e.affectsDeclarationPath),A5=ug.filter(e=>!!e.affectsModuleResolution),I5=ug.filter(e=>!!e.affectsSourceFile||!!e.affectsBindDiagnostics),fq=ug.filter(e=>!!e.affectsProgramStructure),mq=ug.filter(e=>Rs(e,"transpileOptionValue")),_q=[{name:"verbose",shortName:"v",category:f.Command_line_Options,description:f.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:f.Command_line_Options,description:f.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:f.Command_line_Options,description:f.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:f.Command_line_Options,description:f.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1}],x5=[...pw,..._q],mw=[{name:"enable",type:"boolean",defaultValueDescription:!1},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},{name:"disableFilenameBasedTypeAcquisition",type:"boolean",defaultValueDescription:!1}],rAe={diagnostic:f.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:TTe},R5={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},_w={alternateMode:rAe,getOptionsNameMap:$R,optionDeclarations:ug,unknownOptionDiagnostic:f.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:f.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Compiler_option_0_expects_an_argument},oAe={diagnostic:f.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:$R},aAe={alternateMode:oAe,getOptionsNameMap:TTe,optionDeclarations:x5,unknownOptionDiagnostic:f.Unknown_build_option_0,unknownDidYouMeanDiagnostic:f.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Build_option_0_requires_a_value_of_type_1},Dse={optionDeclarations:mw,unknownOptionDiagnostic:f.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:f.Unknown_type_acquisition_option_0_Did_you_mean_1},D5={getOptionsNameMap:xTe,optionDeclarations:QR,unknownOptionDiagnostic:f.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:f.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Watch_option_0_requires_a_value_of_type_1},hw={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:f.File_Management,disallowNullOrUndefined:!0},Cse={name:"compilerOptions",type:"object",elementOptions:RTe(),extraKeyDiagnostics:_w},Nse={name:"watchOptions",type:"object",elementOptions:DTe(),extraKeyDiagnostics:D5},Pse={name:"typeAcquisition",type:"object",elementOptions:CTe(),extraKeyDiagnostics:Dse},C5="**/*",dAe=/(^|\/)\*\*\/?$/,pAe=/^[^*?]*(?=\/[^/]*[*?])/}});function To(e,t,...r){e.trace(bU(t,...r))}function Hg(e,t){return!!e.traceResolution&&t.trace!==void 0}function gI(e,t){let r;if(t&&e){let i=e.contents.packageJsonContent;typeof i.name=="string"&&typeof i.version=="string"&&(r={name:i.name,subModuleName:t.path.slice(e.packageDirectory.length+il.length),version:i.version})}return t&&{path:t.path,extension:t.ext,packageId:r,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function hq(e){return gI(void 0,e)}function fAe(e){if(e)return C.assert(e.packageId===void 0),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function N5(e){let t=[];return e&1&&t.push("TypeScript"),e&2&&t.push("JavaScript"),e&4&&t.push("Declaration"),e&8&&t.push("JSON"),t.join(", ")}function KBe(e){let t=[];return e&1&&t.push(...Ik),e&2&&t.push(...LR),e&4&&t.push(...Ak),e&8&&t.push(".json"),t}function Lse(e){if(e)return C.assert(Y3(e.extension)),{fileName:e.path,packageId:e.packageId}}function mAe(e,t,r,i,o,s,l,u,p){if(!l.resultFromCache&&!l.compilerOptions.preserveSymlinks&&t&&r&&!t.originalPath&&!Yc(e)){let{resolvedFileName:g,originalPath:m}=gAe(t.path,l.host,l.traceEnabled);m&&(t={...t,path:g,originalPath:m})}return _Ae(t,r,i,o,s,l.resultFromCache,u,p)}function _Ae(e,t,r,i,o,s,l,u){return s?l?.isReadonly?{...s,failedLookupLocations:kse(s.failedLookupLocations,r),affectingLocations:kse(s.affectingLocations,i),resolutionDiagnostics:kse(s.resolutionDiagnostics,o)}:(s.failedLookupLocations=ZR(s.failedLookupLocations,r),s.affectingLocations=ZR(s.affectingLocations,i),s.resolutionDiagnostics=ZR(s.resolutionDiagnostics,o),s):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:e.originalPath===!0?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId,resolvedUsingTsExtension:!!e.resolvedUsingTsExtension},failedLookupLocations:ON(r),affectingLocations:ON(i),resolutionDiagnostics:ON(o),alternateResult:u}}function ON(e){return e.length?e:void 0}function ZR(e,t){return t?.length?e?.length?(e.push(...t),e):t:e}function kse(e,t){return e?.length?t.length?[...e,...t]:e.slice():ON(t)}function hAe(e,t,r,i){if(!Rs(e,t)){i.traceEnabled&&To(i.host,f.package_json_does_not_have_a_0_field,t);return}let o=e[t];if(typeof o!==r||o===null){i.traceEnabled&&To(i.host,f.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,r,o===null?"null":typeof o);return}return o}function gq(e,t,r,i){let o=hAe(e,t,"string",i);if(o===void 0)return;if(!o){i.traceEnabled&&To(i.host,f.package_json_had_a_falsy_0_field,t);return}let s=va(Zr(r,o));return i.traceEnabled&&To(i.host,f.package_json_has_0_field_1_that_references_2,t,o,s),s}function XBe(e,t,r){return gq(e,"typings",t,r)||gq(e,"types",t,r)}function YBe(e,t,r){return gq(e,"tsconfig",t,r)}function $Be(e,t,r){return gq(e,"main",t,r)}function QBe(e,t){let r=hAe(e,"typesVersions","object",t);if(r!==void 0)return t.traceEnabled&&To(t.host,f.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),r}function ZBe(e,t){let r=QBe(e,t);if(r===void 0)return;if(t.traceEnabled)for(let l in r)Rs(r,l)&&!LM.tryParse(l)&&To(t.host,f.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,l);let i=P5(r);if(!i){t.traceEnabled&&To(t.host,f.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,_e);return}let{version:o,paths:s}=i;if(typeof s!="object"){t.traceEnabled&&To(t.host,f.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${o}']`,"object",typeof s);return}return i}function P5(e){Kse||(Kse=new vm(Te));for(let t in e){if(!Rs(e,t))continue;let r=LM.tryParse(t);if(r!==void 0&&r.test(Kse))return{version:t,paths:e[t]}}}function FN(e,t){if(e.typeRoots)return e.typeRoots;let r;if(e.configFilePath?r=li(e.configFilePath):t.getCurrentDirectory&&(r=t.getCurrentDirectory()),r!==void 0)return eGe(r)}function eGe(e){let t;return Em(va(e),r=>{let i=Zr(r,zAe);(t??(t=[])).push(i)}),t}function tGe(e,t,r){let i=typeof r.useCaseSensitiveFileNames=="function"?r.useCaseSensitiveFileNames():r.useCaseSensitiveFileNames;return Pg(e,t,!i)===0}function gAe(e,t,r){let i=fGe(e,t,r),o=tGe(e,i,t);return{resolvedFileName:o?e:i,originalPath:o?void 0:e}}function vAe(e,t,r){let i=Sl(e,"/node_modules/@types")||Sl(e,"/node_modules/@types/")?OAe(t,r):t;return Zr(e,i)}function wse(e,t,r,i,o,s,l){C.assert(typeof e=="string","Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.");let u=Hg(r,i);o&&(r=o.commandLine.options);let p=t?li(t):void 0,g=p?s?.getFromDirectoryCache(e,l,p,o):void 0;if(!g&&p&&!Yc(e)&&(g=s?.getFromNonRelativeNameCache(e,l,p,o)),g)return u&&(To(i,f.Resolving_type_reference_directive_0_containing_file_1,e,t),o&&To(i,f.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName),To(i,f.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,p),V(g)),g;let m=FN(r,i);u&&(t===void 0?m===void 0?To(i,f.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):To(i,f.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,m):m===void 0?To(i,f.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):To(i,f.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,m),o&&To(i,f.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));let b=[],T=[],I=Ose(r);l!==void 0&&(I|=30);let R=dd(r);l===99&&3<=R&&R<=99&&(I|=32);let M=I&8?tb(r,l):[],N=[],O={compilerOptions:r,host:i,traceEnabled:u,failedLookupLocations:b,affectingLocations:T,packageJsonInfoCache:s,features:I,conditions:M,requestContainingDirectory:p,reportDiagnostic:ne=>void N.push(ne),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},H=ue(),K=!0;H||(H=G(),K=!1);let Z;if(H){let{fileName:ne,packageId:he}=H,ye=ne,$;r.preserveSymlinks||({resolvedFileName:ye,originalPath:$}=gAe(ne,i,u)),Z={primary:K,resolvedFileName:ye,originalPath:$,packageId:he,isExternalLibraryImport:I0(ne)}}return g={resolvedTypeReferenceDirective:Z,failedLookupLocations:ON(b),affectingLocations:ON(T),resolutionDiagnostics:ON(N)},p&&s&&!s.isReadonly&&(s.getOrCreateCacheForDirectory(p,o).set(e,l,g),Yc(e)||s.getOrCreateCacheForNonRelativeName(e,l,o).set(p,g)),u&&V(g),g;function V(ne){var he;(he=ne.resolvedTypeReferenceDirective)!=null&&he.resolvedFileName?ne.resolvedTypeReferenceDirective.packageId?To(i,f.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,ne.resolvedTypeReferenceDirective.resolvedFileName,Fy(ne.resolvedTypeReferenceDirective.packageId),ne.resolvedTypeReferenceDirective.primary):To(i,f.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,ne.resolvedTypeReferenceDirective.resolvedFileName,ne.resolvedTypeReferenceDirective.primary):To(i,f.Type_reference_directive_0_was_not_resolved,e)}function ue(){if(m&&m.length)return u&&To(i,f.Resolving_with_primary_search_path_0,m.join(", ")),Zt(m,ne=>{let he=vAe(ne,e,O),ye=Ym(ne,i);if(!ye&&u&&To(i,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,ne),r.typeRoots){let $=n2(4,he,!ye,O);if($){let Y=vw($.path),oe=Y?eE(Y,!1,O):void 0;return Lse(gI(oe,$))}}return Lse(Use(4,he,!ye,O))});u&&To(i,f.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function G(){let ne=t&&li(t);if(ne!==void 0){let he;if(!r.typeRoots||!Sl(t,u2))if(u&&To(i,f.Looking_up_in_node_modules_folder_initial_location_0,ne),Yc(e)){let{path:ye}=AAe(ne,e);he=Sq(4,ye,!1,O,!0)}else{let ye=MAe(4,e,ne,O,void 0,void 0);he=ye&&ye.value}else u&&To(i,f.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);return Lse(he)}else u&&To(i,f.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function Ose(e){let t=0;switch(dd(e)){case 3:t=30;break;case 99:t=30;break;case 100:t=30;break}return e.resolvePackageJsonExports?t|=8:e.resolvePackageJsonExports===!1&&(t&=-9),e.resolvePackageJsonImports?t|=2:e.resolvePackageJsonImports===!1&&(t&=-3),t}function tb(e,t){let r=dd(e);if(t===void 0){if(r===100)t=99;else if(r===2)return[]}let i=t===99?["import"]:["require"];return e.noDtsResolution||i.push("types"),r!==100&&i.push("node"),xo(i,e.customConditions)}function vq(e,t,r,i,o){let s=yw(o?.getPackageJsonInfoCache(),i,r);return Em(t,l=>{if(rc(l)!=="node_modules"){let u=Zr(l,"node_modules"),p=Zr(u,e);return eE(p,!1,s)}})}function M5(e,t){if(e.types)return e.types;let r=[];if(t.directoryExists&&t.getDirectories){let i=FN(e,t);if(i){for(let o of i)if(t.directoryExists(o))for(let s of t.getDirectories(o)){let l=va(s),u=Zr(o,l,"package.json");if(!(t.fileExists(u)&&UC(u,t).typings===null)){let g=rc(l);g.charCodeAt(0)!==46&&r.push(g)}}}}return r}function L5(e){return!!e?.contents}function Fse(e){return!!e&&!e.contents}function Wse(e){var t;if(e===null||typeof e!="object")return""+e;if(Do(e))return`[${(t=e.map(i=>Wse(i)))==null?void 0:t.join(",")}]`;let r="{";for(let i in e)Rs(e,i)&&(r+=`${i}: ${Wse(e[i])}`);return r+"}"}function yq(e,t){return t.map(r=>Wse(B3(e,r))).join("|")+`|${e.pathsBasePath}`}function bq(e,t){let r=new Map,i=new Map,o=new Map;return e&&r.set(e,o),{getMapOfCacheRedirects:s,getOrCreateMapOfCacheRedirects:l,update:u,clear:g,getOwnMap:()=>o};function s(b){return b?p(b.commandLine.options,!1):o}function l(b){return b?p(b.commandLine.options,!0):o}function u(b){e!==b&&(e?o=p(b,!0):r.set(b,o),e=b)}function p(b,T){let I=r.get(b);if(I)return I;let R=m(b);if(I=i.get(R),!I){if(e){let M=m(e);M===R?I=o:i.has(M)||i.set(M,o)}T&&(I??(I=new Map)),I&&i.set(R,I)}return I&&r.set(b,I),I}function g(){let b=e&&t.get(e);o.clear(),r.clear(),t.clear(),i.clear(),e&&(b&&t.set(e,b),r.set(e,o))}function m(b){let T=t.get(b);return T||t.set(b,T=yq(b,A5)),T}}function nGe(e,t){let r;return{getPackageJsonInfo:i,setPackageJsonInfo:o,clear:s,getInternalMap:l};function i(u){return r?.get(rl(u,e,t))}function o(u,p){(r||(r=new Map)).set(rl(u,e,t),p)}function s(){r=void 0}function l(){return r}}function yAe(e,t,r,i){let o=e.getOrCreateMapOfCacheRedirects(t),s=o.get(r);return s||(s=i(),o.set(r,s)),s}function rGe(e,t,r,i){let o=bq(r,i);return{getFromDirectoryCache:p,getOrCreateCacheForDirectory:u,clear:s,update:l,directoryToModuleNameMap:o};function s(){o.clear()}function l(g){o.update(g)}function u(g,m){let b=rl(g,e,t);return yAe(o,m,b,()=>vI())}function p(g,m,b,T){var I,R;let M=rl(b,e,t);return(R=(I=o.getMapOfCacheRedirects(T))==null?void 0:I.get(M))==null?void 0:R.get(g,m)}}function WN(e,t){return t===void 0?e:`${t}|${e}`}function vI(){let e=new Map,t=new Map,r={get(o,s){return e.get(i(o,s))},set(o,s,l){return e.set(i(o,s),l),r},delete(o,s){return e.delete(i(o,s)),r},has(o,s){return e.has(i(o,s))},forEach(o){return e.forEach((s,l)=>{let[u,p]=t.get(l);return o(s,u,p)})},size(){return e.size}};return r;function i(o,s){let l=WN(o,s);return t.set(l,[o,s]),l}}function iGe(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function oGe(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function aGe(e,t,r,i,o){let s=bq(r,o);return{getFromNonRelativeNameCache:p,getOrCreateCacheForNonRelativeName:g,clear:l,update:u};function l(){s.clear()}function u(b){s.update(b)}function p(b,T,I,R){var M,N;return C.assert(!Yc(b)),(N=(M=s.getMapOfCacheRedirects(R))==null?void 0:M.get(WN(b,T)))==null?void 0:N.get(I)}function g(b,T,I){return C.assert(!Yc(b)),yAe(s,I,WN(b,T),m)}function m(){let b=new Map;return{get:T,set:I};function T(M){return b.get(rl(M,e,t))}function I(M,N){let O=rl(M,e,t);if(b.has(O))return;b.set(O,N);let H=i(N),K=H&&R(O,H),Z=O;for(;Z!==K;){let V=li(Z);if(V===Z||b.has(V))break;b.set(V,N),Z=V}}function R(M,N){let O=rl(li(N),e,t),H=0,K=Math.min(M.length,O.length);for(;Hi,clearAllExceptPackageJsonInfoCache:g,optionsToRedirectsKey:s};function p(){g(),i.clear()}function g(){l.clear(),u.clear()}function m(b){l.update(b),u.update(b)}}function e2(e,t,r,i,o){let s=bAe(e,t,r,i,iGe,o);return s.getOrCreateCacheForModuleName=(l,u,p)=>s.getOrCreateCacheForNonRelativeName(l,u,p),s}function k5(e,t,r,i,o){return bAe(e,t,r,i,oGe,o)}function Eq(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function w5(e,t,r,i,o){return t2(e,t,Eq(r),i,o)}function EAe(e,t,r,i){let o=li(t);return r.getFromDirectoryCache(e,i,o,void 0)}function t2(e,t,r,i,o,s,l){var u,p,g;let m=Hg(r,i);s&&(r=s.commandLine.options),m&&(To(i,f.Resolving_module_0_from_1,e,t),s&&To(i,f.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName));let b=li(t),T=o?.getFromDirectoryCache(e,l,b,s);if(T)m&&To(i,f.Resolution_for_module_0_was_found_in_cache_from_location_1,e,b);else{let I=r.moduleResolution;switch(I===void 0?(I=dd(r),m&&To(i,f.Module_resolution_kind_is_not_specified_using_0,Fx[I])):m&&To(i,f.Explicitly_specified_module_resolution_kind_Colon_0,Fx[I]),(u=rd)==null||u.logStartResolveModule(e),I){case 3:T=uGe(e,t,r,i,o,s,l);break;case 99:T=dGe(e,t,r,i,o,s,l);break;case 2:T=Gse(e,t,r,i,o,s,l?tb(r,l):void 0);break;case 1:T=qse(e,t,r,i,o,s);break;case 100:T=Bse(e,t,r,i,o,s,l?tb(r,l):void 0);break;default:return C.fail(`Unexpected moduleResolution: ${I}`)}T&&T.resolvedModule&&((p=rd)==null||p.logInfoEvent(`Module "${e}" resolved to "${T.resolvedModule.resolvedFileName}"`)),(g=rd)==null||g.logStopResolveModule(T&&T.resolvedModule?""+T.resolvedModule.resolvedFileName:"null"),o&&!o.isReadonly&&(o.getOrCreateCacheForDirectory(b,s).set(e,l,T),Yc(e)||o.getOrCreateCacheForNonRelativeName(e,l,s).set(b,T))}return m&&(T.resolvedModule?T.resolvedModule.packageId?To(i,f.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,T.resolvedModule.resolvedFileName,Fy(T.resolvedModule.packageId)):To(i,f.Module_name_0_was_successfully_resolved_to_1,e,T.resolvedModule.resolvedFileName):To(i,f.Module_name_0_was_not_resolved,e)),T}function SAe(e,t,r,i,o){let s=sGe(e,t,i,o);return s?s.value:Yc(t)?lGe(e,t,r,i,o):cGe(e,t,i,o)}function sGe(e,t,r,i){var o;let{baseUrl:s,paths:l,configFile:u}=i.compilerOptions;if(l&&!wp(t)){i.traceEnabled&&(s&&To(i.host,f.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,s,t),To(i.host,f.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t));let p=E3(i.compilerOptions,i.host),g=u?.configFileSpecs?(o=u.configFileSpecs).pathPatterns||(o.pathPatterns=X3(l)):void 0;return Hse(e,t,p,l,g,r,!1,i)}}function lGe(e,t,r,i,o){if(!o.compilerOptions.rootDirs)return;o.traceEnabled&&To(o.host,f.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);let s=va(Zr(r,t)),l,u;for(let p of o.compilerOptions.rootDirs){let g=va(p);Sl(g,il)||(g+=il);let m=uo(s,g)&&(u===void 0||u.lengthvoid K.push(ne),isConfigLookup:u,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};M&&jA(H)&&To(o,f.Resolving_in_0_mode_with_conditions_1,e&32?"ESM":"CJS",Z.conditions.map(ne=>`'${ne}'`).join(", "));let V;if(H===2){let ne=l&5,he=l&-6;V=ne&&G(ne,Z)||he&&G(he,Z)||void 0}else V=G(l,Z);let ue;if(Z.resolvedPackageDirectory&&!u&&!Yc(t)){let ne=V?.value&&l&5&&!CAe(5,V.value.resolved.extension);if((m=V?.value)!=null&&m.isExternalLibraryImport&&ne&&e&8&&g?.includes("import")){nb(Z,f.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);let he={...Z,features:Z.features&-9,reportDiagnostic:$a},ye=G(l&5,he);(b=ye?.value)!=null&&b.isExternalLibraryImport&&(ue=ye.value.resolved.path)}else if((!V?.value||ne)&&H===2){nb(Z,f.Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update);let he={...Z.compilerOptions,moduleResolution:100},ye={...Z,compilerOptions:he,features:30,conditions:tb(he),reportDiagnostic:$a},$=G(l&5,ye);(T=$?.value)!=null&&T.isExternalLibraryImport&&(ue=$.value.resolved.path)}}return mAe(t,(I=V?.value)==null?void 0:I.resolved,(R=V?.value)==null?void 0:R.isExternalLibraryImport,N,O,K,Z,s,ue);function G(ne,he){let $=SAe(ne,t,r,(Y,oe,fe,Ne)=>Sq(Y,oe,fe,Ne,!0),he);if($)return tf({resolved:$,isExternalLibraryImport:I0($.path)});if(Yc(t)){let{path:Y,parts:oe}=AAe(r,t),fe=Sq(ne,Y,!1,he,!0);return fe&&tf({resolved:fe,isExternalLibraryImport:wr(oe,"node_modules")})}else{let Y;if(e&2&&uo(t,"#")&&(Y=gGe(ne,t,r,he,s,p)),!Y&&e&4&&(Y=hGe(ne,t,r,he,s,p)),!Y){if(t.includes(":")){M&&To(o,f.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,t,N5(ne));return}M&&To(o,f.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,N5(ne)),Y=MAe(ne,t,r,he,s,p)}return ne&4&&(Y??(Y=WAe(t,he))),Y&&{value:Y.value&&{resolved:Y.value,isExternalLibraryImport:!0}}}}}function AAe(e,t){let r=Zr(e,t),i=Wc(r),o=Zs(i);return{path:o==="."||o===".."?zc(va(r)):va(r),parts:i}}function fGe(e,t,r){if(!t.realpath)return e;let i=va(t.realpath(e));return r&&To(t,f.Resolving_real_path_for_0_result_1,e,i),i}function Sq(e,t,r,i,o){if(i.traceEnabled&&To(i.host,f.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,N5(e)),!Pv(t)){if(!r){let l=li(t);Ym(l,i.host)||(i.traceEnabled&&To(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,l),r=!0)}let s=n2(e,t,r,i);if(s){let l=o?vw(s.path):void 0,u=l?eE(l,!1,i):void 0;return gI(u,s)}}if(r||Ym(t,i.host)||(i.traceEnabled&&To(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),r=!0),!(i.features&32))return Use(e,t,r,i,o)}function I0(e){return e.includes(Ih)}function vw(e,t){let r=va(e),i=r.lastIndexOf(Ih);if(i===-1)return;let o=i+Ih.length,s=IAe(r,o,t);return r.charCodeAt(o)===64&&(s=IAe(r,s,t)),r.slice(0,s)}function IAe(e,t,r){let i=e.indexOf(il,t+1);return i===-1?r?e.length:t:i}function jse(e,t,r,i){return hq(n2(e,t,r,i))}function n2(e,t,r,i){let o=xAe(e,t,r,i);if(o)return o;if(!(i.features&32)){let s=RAe(t,e,"",r,i);if(s)return s}}function xAe(e,t,r,i){if(!rc(t).includes("."))return;let s=Td(t);s===t&&(s=t.substring(0,t.lastIndexOf(".")));let l=t.substring(s.length);return i.traceEnabled&&To(i.host,f.File_name_0_has_a_1_extension_stripping_it,t,l),RAe(s,e,l,r,i)}function Tq(e,t,r,i){return e&1&&Ec(t,Ik)||e&4&&Ec(t,Ak)?Aq(t,r,i)!==void 0?{path:t,ext:C3(t),resolvedUsingTsExtension:void 0}:void 0:i.isConfigLookup&&e===8&&Tl(t,".json")?Aq(t,r,i)!==void 0?{path:t,ext:".json",resolvedUsingTsExtension:void 0}:void 0:xAe(e,t,r,i)}function RAe(e,t,r,i,o){if(!i){let l=li(e);l&&(i=!Ym(l,o.host))}switch(r){case".mjs":case".mts":case".d.mts":return t&1&&s(".mts",r===".mts"||r===".d.mts")||t&4&&s(".d.mts",r===".mts"||r===".d.mts")||t&2&&s(".mjs")||void 0;case".cjs":case".cts":case".d.cts":return t&1&&s(".cts",r===".cts"||r===".d.cts")||t&4&&s(".d.cts",r===".cts"||r===".d.cts")||t&2&&s(".cjs")||void 0;case".json":return t&4&&s(".d.json.ts")||t&8&&s(".json")||void 0;case".tsx":case".jsx":return t&1&&(s(".tsx",r===".tsx")||s(".ts",r===".tsx"))||t&4&&s(".d.ts",r===".tsx")||t&2&&(s(".jsx")||s(".js"))||void 0;case".ts":case".d.ts":case".js":case"":return t&1&&(s(".ts",r===".ts"||r===".d.ts")||s(".tsx",r===".ts"||r===".d.ts"))||t&4&&s(".d.ts",r===".ts"||r===".d.ts")||t&2&&(s(".js")||s(".jsx"))||o.isConfigLookup&&s(".json")||void 0;default:return t&4&&!Su(e+r)&&s(`.d${r}.ts`)||void 0}function s(l,u){let p=Aq(e+l,i,o);return p===void 0?void 0:{path:p,ext:l,resolvedUsingTsExtension:!o.candidateIsFromPackageJsonField&&u}}}function Aq(e,t,r){var i;if(!((i=r.compilerOptions.moduleSuffixes)!=null&&i.length))return DAe(e,t,r);let o=Gg(e)??"",s=o?_k(e,o):e;return Ke(r.compilerOptions.moduleSuffixes,l=>DAe(s+l+o,t,r))}function DAe(e,t,r){var i;if(!t){if(r.host.fileExists(e))return r.traceEnabled&&To(r.host,f.File_0_exists_use_it_as_a_name_resolution_result,e),e;r.traceEnabled&&To(r.host,f.File_0_does_not_exist,e)}(i=r.failedLookupLocations)==null||i.push(e)}function Use(e,t,r,i,o=!0){let s=o?eE(t,r,i):void 0,l=s&&s.contents.packageJsonContent,u=s&&O5(s,i);return gI(s,xq(e,t,r,i,l,u))}function Iq(e,t,r,i,o){if(!o&&e.contents.resolvedEntrypoints!==void 0)return e.contents.resolvedEntrypoints;let s,l=5|(o?2:0),u=Ose(t),p=yw(i?.getPackageJsonInfoCache(),r,t);p.conditions=tb(t),p.requestContainingDirectory=e.packageDirectory;let g=xq(l,e.packageDirectory,!1,p,e.contents.packageJsonContent,O5(e,p));if(s=In(s,g?.path),u&8&&e.contents.packageJsonContent.exports){let m=h1([tb(t,99),tb(t,1)],Jm);for(let b of m){let T={...p,failedLookupLocations:[],conditions:b,host:r},I=mGe(e,e.contents.packageJsonContent.exports,T,l);if(I)for(let R of I)s=Ng(s,R.path)}}return e.contents.resolvedEntrypoints=s||!1}function mGe(e,t,r,i){let o;if(Do(t))for(let l of t)s(l);else if(typeof t=="object"&&t!==null&&F5(t))for(let l in t)s(t[l]);else s(t);return o;function s(l){var u,p;if(typeof l=="string"&&uo(l,"./"))if(l.includes("*")&&r.host.readDirectory){if(l.indexOf("*")!==l.lastIndexOf("*"))return!1;r.host.readDirectory(e.packageDirectory,KBe(i),void 0,[Jne(qA(l,"**/*"),".*")]).forEach(g=>{o=Ng(o,{path:g,ext:Wx(g),resolvedUsingTsExtension:void 0})})}else{let g=Wc(l).slice(2);if(g.includes("..")||g.includes(".")||g.includes("node_modules"))return!1;let m=Zr(e.packageDirectory,l),b=bo(m,(p=(u=r.host).getCurrentDirectory)==null?void 0:p.call(u)),T=Tq(i,b,!1,r);if(T)return o=Ng(o,T,(I,R)=>I.path===R.path),!0}else if(Array.isArray(l)){for(let g of l)if(s(g))return!0}else if(typeof l=="object"&&l!==null)return Ke(Jh(l),g=>{if(g==="default"||wr(r.conditions,g)||Sw(r.conditions,g))return s(l[g]),!0})}}function yw(e,t,r){return{host:t,compilerOptions:r,traceEnabled:Hg(r,t),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:et,requestContainingDirectory:void 0,reportDiagnostic:$a,isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1}}function bw(e,t){let r=Wc(e);for(r.pop();r.length>0;){let i=eE(Ry(r),!1,t);if(i)return i;r.pop()}}function O5(e,t){return e.contents.versionPaths===void 0&&(e.contents.versionPaths=ZBe(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function eE(e,t,r){var i,o,s,l,u,p;let{host:g,traceEnabled:m}=r,b=Zr(e,"package.json");if(t){(i=r.failedLookupLocations)==null||i.push(b);return}let T=(o=r.packageJsonInfoCache)==null?void 0:o.getPackageJsonInfo(b);if(T!==void 0){if(L5(T))return m&&To(g,f.File_0_exists_according_to_earlier_cached_lookups,b),(s=r.affectingLocations)==null||s.push(b),T.packageDirectory===e?T:{packageDirectory:e,contents:T.contents};T.directoryExists&&m&&To(g,f.File_0_does_not_exist_according_to_earlier_cached_lookups,b),(l=r.failedLookupLocations)==null||l.push(b);return}let I=Ym(e,g);if(I&&g.fileExists(b)){let R=UC(b,g);m&&To(g,f.Found_package_json_at_0,b);let M={packageDirectory:e,contents:{packageJsonContent:R,versionPaths:void 0,resolvedEntrypoints:void 0}};return r.packageJsonInfoCache&&!r.packageJsonInfoCache.isReadonly&&r.packageJsonInfoCache.setPackageJsonInfo(b,M),(u=r.affectingLocations)==null||u.push(b),M}else I&&m&&To(g,f.File_0_does_not_exist,b),r.packageJsonInfoCache&&!r.packageJsonInfoCache.isReadonly&&r.packageJsonInfoCache.setPackageJsonInfo(b,{packageDirectory:e,directoryExists:I}),(p=r.failedLookupLocations)==null||p.push(b)}function xq(e,t,r,i,o,s){let l;o&&(i.isConfigLookup?l=YBe(o,t,i):l=e&4&&XBe(o,t,i)||e&7&&$Be(o,t,i)||void 0);let u=(T,I,R,M)=>{let N=Tq(T,I,R,M);if(N)return hq(N);let O=T===4?5:T,H=M.features,K=M.candidateIsFromPackageJsonField;M.candidateIsFromPackageJsonField=!0,o?.type!=="module"&&(M.features&=-33);let Z=Sq(O,I,R,M,!1);return M.features=H,M.candidateIsFromPackageJsonField=K,Z},p=l?!Ym(li(l),i.host):void 0,g=r||!Ym(t,i.host),m=Zr(t,i.isConfigLookup?"tsconfig":"index");if(s&&(!l||ym(t,l))){let T=bm(t,l||m,!1);i.traceEnabled&&To(i.host,f.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,s.version,Te,T);let I=Hse(e,T,t,s.paths,void 0,u,p||g,i);if(I)return fAe(I.value)}let b=l&&fAe(u(e,l,p,i));if(b)return b;if(!(i.features&32))return n2(e,m,g,i)}function CAe(e,t){return e&2&&(t===".js"||t===".jsx"||t===".mjs"||t===".cjs")||e&1&&(t===".ts"||t===".tsx"||t===".mts"||t===".cts")||e&4&&(t===".d.ts"||t===".d.mts"||t===".d.cts")||e&8&&t===".json"||!1}function Ew(e){let t=e.indexOf(il);return e[0]==="@"&&(t=e.indexOf(il,t+1)),t===-1?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function F5(e){return Jn(Jh(e),t=>uo(t,"."))}function _Ge(e){return!Et(Jh(e),t=>uo(t,"."))}function hGe(e,t,r,i,o,s){var l,u;let p=bo(Zr(r,"dummy"),(u=(l=i.host).getCurrentDirectory)==null?void 0:u.call(l)),g=bw(p,i);if(!g||!g.contents.packageJsonContent.exports||typeof g.contents.packageJsonContent.name!="string")return;let m=Wc(t),b=Wc(g.contents.packageJsonContent.name);if(!Jn(b,(N,O)=>m[O]===N))return;let T=m.slice(b.length),I=De(T)?`.${il}${T.join(il)}`:".";if(qy(i.compilerOptions)&&!I0(r))return Rq(g,e,I,i,o,s);let R=e&5,M=e&-6;return Rq(g,R,I,i,o,s)||Rq(g,M,I,i,o,s)}function Rq(e,t,r,i,o,s){if(e.contents.packageJsonContent.exports){if(r==="."){let l;if(typeof e.contents.packageJsonContent.exports=="string"||Array.isArray(e.contents.packageJsonContent.exports)||typeof e.contents.packageJsonContent.exports=="object"&&_Ge(e.contents.packageJsonContent.exports)?l=e.contents.packageJsonContent.exports:Rs(e.contents.packageJsonContent.exports,".")&&(l=e.contents.packageJsonContent.exports["."]),l)return PAe(t,i,o,s,r,e,!1)(l,"",!1,".")}else if(F5(e.contents.packageJsonContent.exports)){if(typeof e.contents.packageJsonContent.exports!="object")return i.traceEnabled&&To(i.host,f.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),tf(void 0);let l=NAe(t,i,o,s,r,e.contents.packageJsonContent.exports,e,!1);if(l)return l}return i.traceEnabled&&To(i.host,f.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),tf(void 0)}}function gGe(e,t,r,i,o,s){var l,u;if(t==="#"||uo(t,"#/"))return i.traceEnabled&&To(i.host,f.Invalid_import_specifier_0_has_no_possible_resolutions,t),tf(void 0);let p=bo(Zr(r,"dummy"),(u=(l=i.host).getCurrentDirectory)==null?void 0:u.call(l)),g=bw(p,i);if(!g)return i.traceEnabled&&To(i.host,f.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,p),tf(void 0);if(!g.contents.packageJsonContent.imports)return i.traceEnabled&&To(i.host,f.package_json_scope_0_has_no_imports_defined,g.packageDirectory),tf(void 0);let m=NAe(e,i,o,s,t,g.contents.packageJsonContent.imports,g,!0);return m||(i.traceEnabled&&To(i.host,f.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,g.packageDirectory),tf(void 0))}function Dq(e,t){let r=e.indexOf("*"),i=t.indexOf("*"),o=r===-1?e.length:r+1,s=i===-1?t.length:i+1;return o>s?-1:s>o||r===-1?1:i===-1||e.length>t.length?-1:t.length>e.length?1:0}function NAe(e,t,r,i,o,s,l,u){let p=PAe(e,t,r,i,o,l,u);if(!Sl(o,il)&&!o.includes("*")&&Rs(s,o)){let b=s[o];return p(b,"",!1,o)}let g=nS(tr(Jh(s),b=>b.includes("*")||Sl(b,"/")),Dq);for(let b of g)if(t.features&16&&m(b,o)){let T=s[b],I=b.indexOf("*"),R=o.substring(b.substring(0,I).length,o.length-(b.length-1-I));return p(T,R,!0,b)}else if(Sl(b,"*")&&uo(o,b.substring(0,b.length-1))){let T=s[b],I=o.substring(b.length-1);return p(T,I,!0,b)}else if(uo(o,b)){let T=s[b],I=o.substring(b.length);return p(T,I,!1,b)}function m(b,T){if(Sl(b,"*"))return!1;let I=b.indexOf("*");return I===-1?!1:uo(T,b.substring(0,I))&&Sl(T,b.substring(I+1))}}function PAe(e,t,r,i,o,s,l){return u;function u(p,g,m,b){if(typeof p=="string"){if(!m&&g.length>0&&!Sl(p,"/"))return t.traceEnabled&&To(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),tf(void 0);if(!uo(p,"./")){if(l&&!uo(p,"../")&&!uo(p,"/")&&!dp(p)){let V=m?p.replace(/\*/g,g):p+g;nb(t,f.Using_0_subpath_1_with_target_2,"imports",b,V),nb(t,f.Resolving_module_0_from_1,V,s.packageDirectory+"/");let ue=gw(t.features,V,s.packageDirectory+"/",t.compilerOptions,t.host,r,e,!1,i,t.conditions);return tf(ue.resolvedModule?{path:ue.resolvedModule.resolvedFileName,extension:ue.resolvedModule.extension,packageId:ue.resolvedModule.packageId,originalPath:ue.resolvedModule.originalPath,resolvedUsingTsExtension:ue.resolvedModule.resolvedUsingTsExtension}:void 0)}return t.traceEnabled&&To(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),tf(void 0)}let N=(wp(p)?Wc(p).slice(1):Wc(p)).slice(1);if(N.includes("..")||N.includes(".")||N.includes("node_modules"))return t.traceEnabled&&To(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),tf(void 0);let O=Zr(s.packageDirectory,p),H=Wc(g);if(H.includes("..")||H.includes(".")||H.includes("node_modules"))return t.traceEnabled&&To(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),tf(void 0);t.traceEnabled&&To(t.host,f.Using_0_subpath_1_with_target_2,l?"imports":"exports",b,m?p.replace(/\*/g,g):p+g);let K=T(m?O.replace(/\*/g,g):O+g),Z=R(K,g,Zr(s.packageDirectory,"package.json"),l);return Z||tf(gI(s,Tq(e,K,!1,t)))}else if(typeof p=="object"&&p!==null)if(Array.isArray(p)){if(!De(p))return t.traceEnabled&&To(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),tf(void 0);for(let M of p){let N=u(M,g,m,b);if(N)return N}}else{nb(t,f.Entering_conditional_exports);for(let M of Jh(p))if(M==="default"||t.conditions.includes(M)||Sw(t.conditions,M)){nb(t,f.Matched_0_condition_1,l?"imports":"exports",M);let N=p[M],O=u(N,g,m,b);if(O)return nb(t,f.Resolved_under_condition_0,M),nb(t,f.Exiting_conditional_exports),O;nb(t,f.Failed_to_resolve_under_condition_0,M)}else nb(t,f.Saw_non_matching_condition_0,M);nb(t,f.Exiting_conditional_exports);return}else if(p===null)return t.traceEnabled&&To(t.host,f.package_json_scope_0_explicitly_maps_specifier_1_to_null,s.packageDirectory,o),tf(void 0);return t.traceEnabled&&To(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),tf(void 0);function T(M){var N,O;return M===void 0?M:bo(M,(O=(N=t.host).getCurrentDirectory)==null?void 0:O.call(N))}function I(M,N){return zc(Zr(M,N))}function R(M,N,O,H){var K,Z,V,ue;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&!M.includes("/node_modules/")&&(!t.compilerOptions.configFile||ym(s.packageDirectory,T(t.compilerOptions.configFile.fileName),!Cq(t)))){let ne=Wv({useCaseSensitiveFileNames:()=>Cq(t)}),he=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){let ye=T(QN(t.compilerOptions,()=>[],((Z=(K=t.host).getCurrentDirectory)==null?void 0:Z.call(K))||"",ne));he.push(ye)}else if(t.requestContainingDirectory){let ye=T(Zr(t.requestContainingDirectory,"index.ts")),$=T(QN(t.compilerOptions,()=>[ye,T(O)],((ue=(V=t.host).getCurrentDirectory)==null?void 0:ue.call(V))||"",ne));he.push($);let Y=zc($);for(;Y&&Y.length>1;){let oe=Wc(Y);oe.pop();let fe=Ry(oe);he.unshift(fe),Y=zc(fe)}}he.length>1&&t.reportDiagnostic(Vl(H?f.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:f.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,N===""?".":N,O));for(let ye of he){let $=G(ye);for(let Y of $)if(ym(Y,M,!Cq(t))){let oe=M.slice(Y.length+1),fe=Zr(ye,oe),Ne=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(let me of Ne)if(Tl(fe,me)){let ie=qie(fe);for(let ve of ie){if(!CAe(e,ve))continue;let Le=jM(fe,ve,me,!Cq(t));if(t.host.fileExists(Le))return tf(gI(s,Tq(e,Le,!1,t)))}}}}}return;function G(ne){var he,ye;let $=t.compilerOptions.configFile?((ye=(he=t.host).getCurrentDirectory)==null?void 0:ye.call(he))||"":ne,Y=[];return t.compilerOptions.declarationDir&&Y.push(T(I($,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&Y.push(T(I($,t.compilerOptions.outDir))),Y}}}}function Sw(e,t){if(!e.includes("types")||!uo(t,"types@"))return!1;let r=LM.tryParse(t.substring(6));return r?r.test(Te):!1}function MAe(e,t,r,i,o,s){return LAe(e,t,r,i,!1,o,s)}function vGe(e,t,r){return LAe(4,e,t,r,!0,void 0,void 0)}function LAe(e,t,r,i,o,s,l){let u=i.features===0?void 0:i.features&32?99:1,p=e&5,g=e&-6;if(p){nb(i,f.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,N5(p));let b=m(p);if(b)return b}if(g&&!o)return nb(i,f.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,N5(g)),m(g);function m(b){return Em(Mu(r),T=>{if(rc(T)!=="node_modules"){let I=FAe(s,t,u,T,l,i);return I||tf(kAe(b,t,T,i,o,s,l))}})}}function kAe(e,t,r,i,o,s,l){let u=Zr(r,"node_modules"),p=Ym(u,i.host);if(!p&&i.traceEnabled&&To(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,u),!o){let g=wAe(e,t,u,p,i,s,l);if(g)return g}if(e&4){let g=Zr(u,"@types"),m=p;return p&&!Ym(g,i.host)&&(i.traceEnabled&&To(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,g),m=!1),wAe(4,OAe(t,i),g,m,i,s,l)}}function wAe(e,t,r,i,o,s,l){var u,p;let g=va(Zr(r,t)),{packageName:m,rest:b}=Ew(t),T=Zr(r,m),I,R=eE(g,!i,o);if(b!==""&&R&&(!(o.features&8)||!Rs(((u=I=eE(T,!i,o))==null?void 0:u.contents.packageJsonContent)??et,"exports"))){let O=n2(e,g,!i,o);if(O)return hq(O);let H=xq(e,g,!i,o,R.contents.packageJsonContent,O5(R,o));return gI(R,H)}let M=(O,H,K,Z)=>{let V=(b||!(Z.features&32))&&n2(O,H,K,Z)||xq(O,H,K,Z,R&&R.contents.packageJsonContent,R&&O5(R,Z));return!V&&R&&(R.contents.packageJsonContent.exports===void 0||R.contents.packageJsonContent.exports===null)&&Z.features&32&&(V=n2(O,Zr(H,"index.js"),K,Z)),gI(R,V)};if(b!==""&&(R=I??eE(T,!i,o)),R&&(o.resolvedPackageDirectory=!0),R&&R.contents.packageJsonContent.exports&&o.features&8)return(p=Rq(R,e,Zr(".",b),o,s,l))==null?void 0:p.value;let N=b!==""&&R?O5(R,o):void 0;if(N){o.traceEnabled&&To(o.host,f.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,N.version,Te,b);let O=i&&Ym(T,o.host),H=Hse(e,b,T,N.paths,void 0,M,!O,o);if(H)return H.value}return M(e,g,!i,o)}function Hse(e,t,r,i,o,s,l,u){o||(o=X3(i));let p=RU(o,t);if(p){let g=wo(p)?void 0:Rne(p,t),m=wo(p)?p:xne(p);return u.traceEnabled&&To(u.host,f.Module_name_0_matched_pattern_1,t,m),{value:Ke(i[m],T=>{let I=g?qA(T,g):T,R=va(Zr(r,I));u.traceEnabled&&To(u.host,f.Trying_substitution_0_candidate_module_location_Colon_1,T,I);let M=Gg(T);if(M!==void 0){let N=Aq(R,l,u);if(N!==void 0)return hq({path:N,ext:M,resolvedUsingTsExtension:void 0})}return s(e,R,l||!Ym(li(R),u.host),u)})}}}function OAe(e,t){let r=r2(e);return t.traceEnabled&&r!==e&&To(t.host,f.Scoped_package_detected_looking_in_0,r),r}function W5(e){return`@types/${r2(e)}`}function r2(e){if(uo(e,"@")){let t=e.replace(il,Pq);if(t!==e)return t.slice(1)}return e}function zN(e){let t=ZD(e,"@types/");return t!==e?Tw(t):e}function Tw(e){return e.includes(Pq)?"@"+e.replace(Pq,il):e}function FAe(e,t,r,i,o,s){let l=e&&e.getFromNonRelativeNameCache(t,r,i,o);if(l)return s.traceEnabled&&To(s.host,f.Resolution_for_module_0_was_found_in_cache_from_location_1,t,i),s.resultFromCache=l,{value:l.resolvedModule&&{path:l.resolvedModule.resolvedFileName,originalPath:l.resolvedModule.originalPath||!0,extension:l.resolvedModule.extension,packageId:l.resolvedModule.packageId,resolvedUsingTsExtension:l.resolvedModule.resolvedUsingTsExtension}}}function qse(e,t,r,i,o,s){let l=Hg(r,i),u=[],p=[],g=li(t),m=[],b={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:u,affectingLocations:p,packageJsonInfoCache:o,features:0,conditions:[],requestContainingDirectory:g,reportDiagnostic:R=>void m.push(R),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},T=I(5)||I(2|(r.resolveJsonModule?8:0));return mAe(e,T&&T.value,T?.value&&I0(T.value.path),u,p,m,b,o);function I(R){let M=SAe(R,e,g,jse,b);if(M)return{value:M};if(Yc(e)){let N=va(Zr(g,e));return tf(jse(R,N,!1,b))}else{let N=Em(g,O=>{let H=FAe(o,e,void 0,O,s,b);if(H)return H;let K=va(Zr(O,e));return tf(jse(R,K,!1,b))});if(N)return N;if(R&5){let O=vGe(e,g,b);return R&4&&(O??(O=WAe(e,b))),O}}}}function WAe(e,t){if(t.compilerOptions.typeRoots)for(let r of t.compilerOptions.typeRoots){let i=vAe(r,e,t),o=Ym(r,t.host);!o&&t.traceEnabled&&To(t.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,r);let s=n2(4,i,!o,t);if(s){let u=vw(s.path),p=u?eE(u,!1,t):void 0;return tf(gI(p,s))}let l=Use(4,i,!o,t);if(l)return tf(l)}}function i2(e,t){return!!e.allowImportingTsExtensions||t&&Su(t)}function Jse(e,t,r,i,o,s){let l=Hg(r,i);l&&To(i,f.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,o);let u=[],p=[],g=[],m={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:u,affectingLocations:p,packageJsonInfoCache:s,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:T=>void g.push(T),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},b=kAe(4,e,o,m,!1,void 0,void 0);return _Ae(b,!0,u,p,g,m.resultFromCache,void 0)}function tf(e){return e!==void 0?{value:e}:void 0}function nb(e,t,...r){e.traceEnabled&&To(e.host,t,...r)}function Cq(e){return e.host.useCaseSensitiveFileNames?typeof e.host.useCaseSensitiveFileNames=="boolean"?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames():!0}var Kse,zAe,Nq,Ih,Pq,yGe=A({"src/compiler/moduleNameResolver.ts"(){"use strict";ia(),zAe=Zr("node_modules","@types"),Nq=(e=>(e[e.None=0]="None",e[e.Imports=2]="Imports",e[e.SelfName=4]="SelfName",e[e.Exports=8]="Exports",e[e.ExportsPatternTrailers=16]="ExportsPatternTrailers",e[e.AllFeatures=30]="AllFeatures",e[e.Node16Default=30]="Node16Default",e[e.NodeNextDefault=30]="NodeNextDefault",e[e.BundlerDefault=30]="BundlerDefault",e[e.EsmMode=32]="EsmMode",e))(Nq||{}),Ih="/node_modules/",Pq="__"}});function qg(e,t){return e.body&&!e.body.parent&&(qa(e.body,e),Uy(e.body,!1)),e.body?Xse(e.body,t):1}function Xse(e,t=new Map){let r=ss(e);if(t.has(r))return t.get(r)||0;t.set(r,void 0);let i=bGe(e,t);return t.set(r,i),i}function bGe(e,t){switch(e.kind){case 264:case 265:return 0;case 266:if(x1(e))return 2;break;case 272:case 271:if(!ei(e,32))return 0;break;case 278:let r=e;if(!r.moduleSpecifier&&r.exportClause&&r.exportClause.kind===279){let i=0;for(let o of r.exportClause.elements){let s=EGe(o,t);if(s>i&&(i=s),i===1)return i}return i}break;case 268:{let i=0;return Ho(e,o=>{let s=Xse(o,t);switch(s){case 0:return;case 2:i=2;return;case 1:return i=1,!0;default:C.assertNever(s)}}),i}case 267:return qg(e,t);case 80:if(e.flags&4096)return 0}return 1}function EGe(e,t){let r=e.propertyName||e.name,i=e.parent;for(;i;){if(Xo(i)||k_(i)||no(i)){let o=i.statements,s;for(let l of o)if(nL(l,r)){l.parent||(qa(l,i),Uy(l,!1));let u=Xse(l,t);if((s===void 0||u>s)&&(s=u),s===1)return s;l.kind===271&&(s=1)}if(s!==void 0)return s}i=i.parent}return 1}function yI(e){return C.attachFlowNodeDebugInfo(e),e}function Yse(e,t){var r,i;nl("beforeBind"),(r=rd)==null||r.logStartBindFile(""+e.fileName),GAe(e,t),(i=rd)==null||i.logStopBindFile(),nl("afterBind"),Yp("Bind","beforeBind","afterBind")}function SGe(){var e,t,r,i,o,s,l,u,p,g,m,b,T,I,R,M,N,O,H,K,Z,V,ue=!1,G=0,ne,he,ye={flags:1},$={flags:1},Y=q();return fe;function oe(W,Ae,...st){return Yf(Vn(W)||e,W,Ae,...st)}function fe(W,Ae){var st,Ht;e=W,t=Ae,r=as(t),V=Ne(e,Ae),he=new Set,G=0,ne=lu.getSymbolConstructor(),C.attachFlowNodeDebugInfo(ye),C.attachFlowNodeDebugInfo($),e.locals||((st=lr)==null||st.push(lr.Phase.Bind,"bindSourceFile",{path:e.path},!0),we(e),(Ht=lr)==null||Ht.pop(),e.symbolCount=G,e.classifiableNames=he,uu()),e=void 0,t=void 0,r=void 0,i=void 0,o=void 0,s=void 0,l=void 0,u=void 0,p=void 0,g=!1,m=void 0,b=void 0,T=void 0,I=void 0,R=void 0,M=void 0,N=void 0,H=void 0,K=!1,ue=!1,Z=0}function Ne(W,Ae){return ud(Ae,"alwaysStrict")&&!W.isDeclarationFile?!0:!!W.externalModuleIndicator}function me(W,Ae){return G++,new ne(W,Ae)}function ie(W,Ae,st){W.flags|=st,Ae.symbol=W,W.declarations=Ng(W.declarations,Ae),st&1955&&!W.exports&&(W.exports=ua()),st&6240&&!W.members&&(W.members=ua()),W.constEnumOnlyModule&&W.flags&304&&(W.constEnumOnlyModule=!1),st&111551&&VL(W,Ae)}function ve(W){if(W.kind===277)return W.isExportEquals?"export=":"default";let Ae=Oo(W);if(Ae){if(Lu(W)){let st=Zf(Ae);return I_(W)?"__global":`"${st}"`}if(Ae.kind===167){let st=Ae.expression;if(Qp(st))return ml(st.text);if(_3(st))return ma(st.operator)+st.operand.text;C.fail("Only computed properties with literal names have declaration names")}if(Xi(Ae)){let st=su(W);if(!st)return;let Ht=st.symbol;return ZL(Ht,Ae.escapedText)}return e_(Ae)?HA(Ae):R_(Ae)?kC(Ae):void 0}switch(W.kind){case 176:return"__constructor";case 184:case 179:case 330:return"__call";case 185:case 180:return"__new";case 181:return"__index";case 278:return"__export";case 312:return"export=";case 226:if(Wl(W)===2)return"export=";C.fail("Unknown binary declaration kind");break;case 324:return pR(W)?"__new":"__call";case 169:return C.assert(W.parent.kind===324,"Impossible parameter parent kind",()=>`parent is: ${C.formatSyntaxKind(W.parent.kind)}, expected JSDocFunctionType`),"arg"+W.parent.parameters.indexOf(W)}}function Le(W){return od(W)?Ds(W.name):Hi(C.checkDefined(ve(W)))}function He(W,Ae,st,Ht,rr,si,$r){C.assert($r||!By(st));let so=ei(st,2048)||Ju(st)&&st.name.escapedText==="default",Oa=$r?"__computed":so&&Ae?"default":ve(st),Fa;if(Oa===void 0)Fa=me(0,"__missing");else if(Fa=W.get(Oa),Ht&2885600&&he.add(Oa),!Fa)W.set(Oa,Fa=me(0,Oa)),si&&(Fa.isReplaceableByMethod=!0);else{if(si&&!Fa.isReplaceableByMethod)return Fa;if(Fa.flags&rr){if(Fa.isReplaceableByMethod)W.set(Oa,Fa=me(0,Oa));else if(!(Ht&3&&Fa.flags&67108864)){od(st)&&qa(st.name,st);let wl=Fa.flags&2?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0,fu=!0;(Fa.flags&384||Ht&384)&&(wl=f.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,fu=!1);let xc=!1;De(Fa.declarations)&&(so||Fa.declarations&&Fa.declarations.length&&st.kind===277&&!st.isExportEquals)&&(wl=f.A_module_cannot_have_multiple_default_exports,fu=!1,xc=!0);let Ip=[];Dm(st)&&Fl(st.type)&&ei(st,32)&&Fa.flags&2887656&&Ip.push(oe(st,f.Did_you_mean_0,`export type { ${Hi(st.name.escapedText)} }`));let Vd=Oo(st)||st;Ke(Fa.declarations,(ps,Lm)=>{let km=Oo(ps)||ps,Ji=fu?oe(km,wl,Le(ps)):oe(km,wl);e.bindDiagnostics.push(xc?ka(Ji,oe(Vd,Lm===0?f.Another_export_default_is_here:f.and_here)):Ji),xc&&Ip.push(oe(km,f.The_first_export_default_is_here))});let cb=fu?oe(Vd,wl,Le(st)):oe(Vd,wl);e.bindDiagnostics.push(ka(cb,...Ip)),Fa=me(0,Oa)}}}return ie(Fa,st,Ht),Fa.parent?C.assert(Fa.parent===Ae,"Existing symbol parent should match new one"):Fa.parent=Ae,Fa}function Ee(W,Ae,st){let Ht=!!(t0(W)&32)||Ce(W);if(Ae&2097152)return W.kind===281||W.kind===271&&Ht?He(o.symbol.exports,o.symbol,W,Ae,st):(C.assertNode(o,ph),He(o.locals,void 0,W,Ae,st));if(Qf(W)&&C.assert(cr(W)),!Lu(W)&&(Ht||o.flags&128)){if(!ph(o)||!o.locals||ei(W,2048)&&!ve(W))return He(o.symbol.exports,o.symbol,W,Ae,st);let rr=Ae&111551?1048576:0,si=He(o.locals,void 0,W,rr,st);return si.exportSymbol=He(o.symbol.exports,o.symbol,W,Ae,st),W.localSymbol=si,si}else return C.assertNode(o,ph),He(o.locals,void 0,W,Ae,st)}function Ce(W){if(W.parent&&Jl(W)&&(W=W.parent),!Qf(W))return!1;if(!qk(W)&&W.fullName)return!0;let Ae=Oo(W);return Ae?!!(sk(Ae.parent)&&Ql(Ae.parent)||qu(Ae.parent)&&t0(Ae.parent)&32):!1}function Me(W,Ae){let st=o,Ht=s,rr=l;if(Ae&1?(W.kind!==219&&(s=o),o=l=W,Ae&32&&(o.locals=ua(),or(o))):Ae&2&&(l=W,Ae&32&&(l.locals=void 0)),Ae&4){let si=m,$r=b,so=T,Oa=I,Fa=N,wl=H,fu=K,xc=Ae&16&&!ei(W,1024)&&!W.asteriskToken&&!!vS(W)||W.kind===175;xc||(m=yI({flags:2}),Ae&144&&(m.node=W)),I=xc||W.kind===176||cr(W)&&(W.kind===262||W.kind===218)?Nn():void 0,N=void 0,b=void 0,T=void 0,H=void 0,K=!1,je(W),W.flags&=-5633,!(m.flags&1)&&Ae&8&&Xf(W.body)&&(W.flags|=512,K&&(W.flags|=1024),W.endFlowNode=m),W.kind===312&&(W.flags|=Z,W.endFlowNode=m),I&&(Yt(I,m),m=nr(I),(W.kind===176||W.kind===175||cr(W)&&(W.kind===262||W.kind===218))&&(W.returnFlowNode=m)),xc||(m=si),b=$r,T=so,I=Oa,N=Fa,H=wl,K=fu}else Ae&64?(g=!1,je(W),C.assertNotNode(W,Ve),W.flags=g?W.flags|256:W.flags&-257):je(W);o=st,s=Ht,l=rr}function Fe(W){At(W,Ae=>Ae.kind===262?we(Ae):void 0),At(W,Ae=>Ae.kind!==262?we(Ae):void 0)}function At(W,Ae=we){W!==void 0&&Ke(W,Ae)}function Se(W){Ho(W,we,At)}function je(W){let Ae=ue;if(ue=!1,jt(W)){Se(W),St(W),ue=Ae;return}switch(W.kind>=243&&W.kind<=259&&!t.allowUnreachableCode&&(W.flowNode=m),W.kind){case 247:ro(W);break;case 246:No(W);break;case 248:_a(W);break;case 249:case 250:ja(W);break;case 245:En(W);break;case 253:case 257:wn(W);break;case 252:case 251:ft(W);break;case 258:Nt(W);break;case 255:le(W);break;case 269:We(W);break;case 296:pt(W);break;case 244:j(W);break;case 256:xt(W);break;case 224:yn(W);break;case 225:fn(W);break;case 226:if(Bv(W)){ue=Ae,mn(W);return}Y(W);break;case 220:Oe(W);break;case 227:Lt(W);break;case 260:ae(W);break;case 211:case 212:yi(W);break;case 213:Di(W);break;case 235:Gn(W);break;case 353:case 345:case 347:ke(W);break;case 312:{Fe(W.statements),we(W.endOfFileToken);break}case 241:case 268:Fe(W.statements);break;case 208:J(W);break;case 169:pe(W);break;case 210:case 209:case 303:case 230:ue=Ae;default:Se(W);break}St(W),ue=Ae}function at(W){switch(W.kind){case 80:case 81:case 110:case 211:case 212:return yt(W);case 213:return Qe(W);case 217:if(qR(W))return!1;case 235:return at(W.expression);case 226:return nn(W);case 224:return W.operator===54&&at(W.operand);case 221:return at(W.expression)}return!1}function Bt(W){return VC(W)||(zr(W)||lI(W)||Wd(W))&&Bt(W.expression)||_r(W)&&W.operatorToken.kind===28&&Bt(W.right)||Ys(W)&&(Qp(W.argumentExpression)||zl(W.argumentExpression))&&Bt(W.expression)||Mc(W)&&Bt(W.left)}function yt(W){return Bt(W)||Hu(W)&&yt(W.expression)}function Qe(W){if(W.arguments){for(let Ae of W.arguments)if(yt(Ae))return!0}return!!(W.expression.kind===211&&yt(W.expression.expression))}function gt(W,Ae){return zR(W)&&rn(W.expression)&&us(Ae)}function nn(W){switch(W.operatorToken.kind){case 64:case 76:case 77:case 78:return yt(W.left);case 35:case 36:case 37:case 38:return rn(W.left)||rn(W.right)||gt(W.right,W.left)||gt(W.left,W.right)||gC(W.right)&&at(W.left)||gC(W.left)&&at(W.right);case 104:return rn(W.left);case 103:return at(W.right);case 28:return at(W.right)}return!1}function rn(W){switch(W.kind){case 217:return rn(W.expression);case 226:switch(W.operatorToken.kind){case 64:return rn(W.left);case 28:return rn(W.right)}}return yt(W)}function Nn(){return yI({flags:4,antecedents:void 0})}function Xn(){return yI({flags:8,antecedents:void 0})}function _n(W,Ae,st){return yI({flags:1024,target:W,antecedents:Ae,antecedent:st})}function Qt(W){W.flags|=W.flags&2048?4096:2048}function Yt(W,Ae){!(Ae.flags&1)&&!wr(W.antecedents,Ae)&&((W.antecedents||(W.antecedents=[])).push(Ae),Qt(Ae))}function vi(W,Ae,st){return Ae.flags&1?Ae:st?(st.kind===112&&W&64||st.kind===97&&W&32)&&!b6(st)&&!GV(st.parent)?ye:at(st)?(Qt(Ae),yI({flags:W,antecedent:Ae,node:st})):Ae:W&32?Ae:ye}function ho(W,Ae,st,Ht){return Qt(W),yI({flags:128,antecedent:W,switchStatement:Ae,clauseStart:st,clauseEnd:Ht})}function ki(W,Ae,st){Qt(Ae);let Ht=yI({flags:W,antecedent:Ae,node:st});return N&&Yt(N,Ht),Ht}function Ro(W,Ae){return Qt(W),yI({flags:512,antecedent:W,node:Ae})}function nr(W){let Ae=W.antecedents;return Ae?Ae.length===1?Ae[0]:W:ye}function qr(W){let Ae=W.parent;switch(Ae.kind){case 245:case 247:case 246:return Ae.expression===W;case 248:case 227:return Ae.condition===W}return!1}function xr(W){for(;;)if(W.kind===217)W=W.expression;else if(W.kind===224&&W.operator===54)W=W.operand;else return ak(W)}function ln(W){return sU(vs(W))}function tt(W){for(;Wd(W.parent)||Qy(W.parent)&&W.parent.operator===54;)W=W.parent;return!qr(W)&&!xr(W.parent)&&!(Hu(W.parent)&&W.parent.expression===W)}function zt(W,Ae,st,Ht){let rr=R,si=M;R=st,M=Ht,W(Ae),R=rr,M=si}function Rn(W,Ae,st){zt(we,W,Ae,st),(!W||!ln(W)&&!xr(W)&&!(Hu(W)&&pC(W)))&&(Yt(Ae,vi(32,m,W)),Yt(st,vi(64,m,W)))}function ui(W,Ae,st){let Ht=b,rr=T;b=Ae,T=st,we(W),b=Ht,T=rr}function bi(W,Ae){let st=H;for(;st&&W.parent.kind===256;)st.continueTarget=Ae,st=st.next,W=W.parent;return Ae}function ro(W){let Ae=bi(W,Xn()),st=Nn(),Ht=Nn();Yt(Ae,m),m=Ae,Rn(W.expression,st,Ht),m=nr(st),ui(W.statement,Ht,Ae),Yt(Ae,m),m=nr(Ht)}function No(W){let Ae=Xn(),st=bi(W,Nn()),Ht=Nn();Yt(Ae,m),m=Ae,ui(W.statement,Ht,st),Yt(st,m),m=nr(st),Rn(W.expression,Ae,Ht),m=nr(Ht)}function _a(W){let Ae=bi(W,Xn()),st=Nn(),Ht=Nn();we(W.initializer),Yt(Ae,m),m=Ae,Rn(W.condition,st,Ht),m=nr(st),ui(W.statement,Ht,Ae),we(W.incrementor),Yt(Ae,m),m=nr(Ht)}function ja(W){let Ae=bi(W,Xn()),st=Nn();we(W.expression),Yt(Ae,m),m=Ae,W.kind===250&&we(W.awaitModifier),Yt(st,m),we(W.initializer),W.initializer.kind!==261&&ht(W.initializer),ui(W.statement,st,Ae),Yt(Ae,m),m=nr(st)}function En(W){let Ae=Nn(),st=Nn(),Ht=Nn();Rn(W.expression,Ae,st),m=nr(Ae),we(W.thenStatement),Yt(Ht,m),m=nr(st),we(W.elseStatement),Yt(Ht,m),m=nr(Ht)}function wn(W){we(W.expression),W.kind===253&&(K=!0,I&&Yt(I,m)),m=ye}function Ue(W){for(let Ae=H;Ae;Ae=Ae.next)if(Ae.name===W)return Ae}function mt(W,Ae,st){let Ht=W.kind===252?Ae:st;Ht&&(Yt(Ht,m),m=ye)}function ft(W){if(we(W.label),W.label){let Ae=Ue(W.label.escapedText);Ae&&(Ae.referenced=!0,mt(W,Ae.breakTarget,Ae.continueTarget))}else mt(W,b,T)}function Nt(W){let Ae=I,st=N,Ht=Nn(),rr=Nn(),si=Nn();if(W.finallyBlock&&(I=rr),Yt(si,m),N=si,we(W.tryBlock),Yt(Ht,m),W.catchClause&&(m=nr(si),si=Nn(),Yt(si,m),N=si,we(W.catchClause),Yt(Ht,m)),I=Ae,N=st,W.finallyBlock){let $r=Nn();$r.antecedents=xo(xo(Ht.antecedents,si.antecedents),rr.antecedents),m=$r,we(W.finallyBlock),m.flags&1?m=ye:(I&&rr.antecedents&&Yt(I,_n($r,rr.antecedents,m)),N&&si.antecedents&&Yt(N,_n($r,si.antecedents,m)),m=Ht.antecedents?_n($r,Ht.antecedents,m):ye)}else m=nr(Ht)}function le(W){let Ae=Nn();we(W.expression);let st=b,Ht=O;b=Ae,O=m,we(W.caseBlock),Yt(Ae,m);let rr=Ke(W.caseBlock.clauses,si=>si.kind===297);W.possiblyExhaustive=!rr&&!Ae.antecedents,rr||Yt(Ae,ho(O,W,0,0)),b=st,O=Ht,m=nr(Ae)}function We(W){let Ae=W.clauses,st=W.parent.expression.kind===112||at(W.parent.expression),Ht=ye;for(let rr=0;rrKl(st)||Ll(st))}function Kr(W){W.flags&33554432&&!Ci(W)?W.flags|=128:W.flags&=-129}function Po(W){if(Kr(W),Lu(W))if(ei(W,32)&&Ms(W,f.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),fj(W))Dn(W);else{let Ae;if(W.name.kind===11){let{text:Ht}=W.name;Ae=DR(Ht),Ae===void 0&&Ms(W.name,f.Pattern_0_can_have_at_most_one_Asterisk_character,Ht)}let st=Vr(W,512,110735);e.patternAmbientModules=In(e.patternAmbientModules,Ae&&!wo(Ae)?{pattern:Ae,symbol:st}:void 0)}else{let Ae=Dn(W);if(Ae!==0){let{symbol:st}=W;st.constEnumOnlyModule=!(st.flags&304)&&Ae===2&&st.constEnumOnlyModule!==!1}}}function Dn(W){let Ae=qg(W),st=Ae!==0;return Vr(W,st?512:1024,st?110735:0),Ae}function Fs(W){let Ae=me(131072,ve(W));ie(Ae,W,131072);let st=me(2048,"__type");ie(st,W,2048),st.members=ua(),st.members.set(Ae.escapedName,Ae)}function Yl(W){return Gs(W,4096,"__object")}function Fo(W){return Gs(W,4096,"__jsxAttributes")}function ds(W,Ae,st){return Vr(W,Ae,st)}function Gs(W,Ae,st){let Ht=me(Ae,st);return Ae&106508&&(Ht.parent=o.symbol),ie(Ht,W,Ae),Ht}function hl(W,Ae,st){switch(l.kind){case 267:Ee(W,Ae,st);break;case 312:if(Fp(o)){Ee(W,Ae,st);break}default:C.assertNode(l,ph),l.locals||(l.locals=ua(),or(l)),He(l.locals,void 0,W,Ae,st)}}function uu(){if(!p)return;let W=o,Ae=u,st=l,Ht=i,rr=m;for(let si of p){let $r=si.parent.parent;o=bj($r)||e,l=_h($r)||e,m=yI({flags:2}),i=si,we(si.typeExpression);let so=Oo(si);if((qk(si)||!si.fullName)&&so&&sk(so.parent)){let Oa=Ql(so.parent);if(Oa){gl(e.symbol,so.parent,Oa,!!zn(so,wl=>zr(wl)&&wl.name.escapedText==="prototype"),!1);let Fa=o;switch(BL(so.parent)){case 1:case 2:Fp(e)?o=e:o=void 0;break;case 4:o=so.parent.expression;break;case 3:o=so.parent.expression.name;break;case 5:o=tE(e,so.parent.expression)?e:zr(so.parent.expression)?so.parent.expression.name:so.parent.expression;break;case 0:return C.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}o&&Ee(si,524288,788968),o=Fa}}else qk(si)||!si.fullName||si.fullName.kind===80?(i=si.parent,hl(si,524288,788968)):we(si.fullName)}o=W,u=Ae,l=st,i=Ht,m=rr}function yo(W){if(!e.parseDiagnostics.length&&!(W.flags&33554432)&&!(W.flags&16777216)&&!Wie(W)){let Ae=n0(W);if(Ae===void 0)return;V&&Ae>=119&&Ae<=127?e.bindDiagnostics.push(oe(W,pa(W),Ds(W))):Ae===135?ac(e)&&Q6(W)?e.bindDiagnostics.push(oe(W,f.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,Ds(W))):W.flags&65536&&e.bindDiagnostics.push(oe(W,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Ds(W))):Ae===127&&W.flags&16384&&e.bindDiagnostics.push(oe(W,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Ds(W)))}}function pa(W){return su(W)?f.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?f.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:f.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function du(W){W.escapedText==="#constructor"&&(e.parseDiagnostics.length||e.bindDiagnostics.push(oe(W,f.constructor_is_a_reserved_word,Ds(W))))}function Is(W){V&&Zd(W.left)&&zv(W.operatorToken.kind)&&sc(W,W.left)}function Pa(W){V&&W.variableDeclaration&&sc(W,W.variableDeclaration.name)}function fl(W){if(V&&W.expression.kind===80){let Ae=hS(e,W.expression);e.bindDiagnostics.push(Qc(e,Ae.start,Ae.length,f.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function Mf(W){return Ve(W)&&(W.escapedText==="eval"||W.escapedText==="arguments")}function sc(W,Ae){if(Ae&&Ae.kind===80){let st=Ae;if(Mf(st)){let Ht=hS(e,Ae);e.bindDiagnostics.push(Qc(e,Ht.start,Ht.length,Rl(W),Sr(st)))}}}function Rl(W){return su(W)?f.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:e.externalModuleIndicator?f.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:f.Invalid_use_of_0_in_strict_mode}function ll(W){V&&sc(W,W.name)}function Wo(W){return su(W)?f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function on(W){if(r<2&&l.kind!==312&&l.kind!==267&&!qx(l)){let Ae=hS(e,W);e.bindDiagnostics.push(Qc(e,Ae.start,Ae.length,Wo(W)))}}function Vs(W){V&&sc(W,W.operand)}function nu(W){V&&(W.operator===46||W.operator===47)&&sc(W,W.operand)}function pu(W){V&&Ms(W,f.with_statements_are_not_allowed_in_strict_mode)}function Tp(W){V&&as(t)>=2&&(Gre(W.statement)||Ml(W.statement))&&Ms(W.label,f.A_label_is_not_allowed_here)}function Ms(W,Ae,...st){let Ht=hh(e,W.pos);e.bindDiagnostics.push(Qc(e,Ht.start,Ht.length,Ae,...st))}function Ic(W,Ae,st){de(W,Ae,Ae,st)}function de(W,Ae,st,Ht){ee(W,{pos:s0(Ae,e),end:st.end},Ht)}function ee(W,Ae,st){let Ht=Qc(e,Ae.pos,Ae.end-Ae.pos,st);W?e.bindDiagnostics.push(Ht):e.bindSuggestionDiagnostics=In(e.bindSuggestionDiagnostics,{...Ht,category:2})}function we(W){if(!W)return;qa(W,i),lr&&(W.tracingPath=e.path);let Ae=V;if(gr(W),W.kind>165){let st=i;i=W;let Ht=Mq(W);Ht===0?je(W):Me(W,Ht),i=st}else{let st=i;W.kind===1&&(i=W),St(W),i=st}V=Ae}function St(W){if(Op(W))if(cr(W))for(let Ae of W.jsDoc)we(Ae);else for(let Ae of W.jsDoc)qa(Ae,W),Uy(Ae,!1)}function pn(W){if(!V)for(let Ae of W){if(!Am(Ae))return;if(Tr(Ae)){V=!0;return}}}function Tr(W){let Ae=A1(e,W.expression);return Ae==='"use strict"'||Ae==="'use strict'"}function gr(W){switch(W.kind){case 80:if(W.flags&4096){let $r=W.parent;for(;$r&&!Qf($r);)$r=$r.parent;hl($r,524288,788968);break}case 110:return m&&(bt(W)||i.kind===304)&&(W.flowNode=m),yo(W);case 166:m&&r3(W)&&(W.flowNode=m);break;case 236:case 108:W.flowNode=m;break;case 81:return du(W);case 211:case 212:let Ae=W;m&&Bt(Ae)&&(Ae.flowNode=m),Pie(Ae)&&qn(Ae),cr(Ae)&&e.commonJsModuleIndicator&&tg(Ae)&&!z5(l,"module")&&He(e.locals,void 0,Ae.expression,134217729,111550);break;case 226:switch(Wl(W)){case 1:ip(W);break;case 2:Oc(W);break;case 3:na(W.left,W);break;case 6:So(W);break;case 4:md(W);break;case 5:let $r=W.left.expression;if(cr(W)&&Ve($r)){let so=z5(l,$r.escapedText);if(Z6(so?.valueDeclaration)){md(W);break}}vc(W);break;case 0:break;default:C.fail("Unknown binary expression special property assignment kind")}return Is(W);case 299:return Pa(W);case 220:return fl(W);case 225:return Vs(W);case 224:return nu(W);case 254:return pu(W);case 256:return Tp(W);case 197:g=!0;return;case 182:break;case 168:return lt(W);case 169:return Yg(W);case 260:return zu(W);case 208:return W.flowNode=m,zu(W);case 172:case 171:return jr(W);case 303:case 304:return Gd(W,4,0);case 306:return Gd(W,8,900095);case 179:case 180:case 181:return Vr(W,131072,0);case 174:case 173:return Gd(W,8192|(W.questionToken?16777216:0),Im(W)?0:103359);case 262:return Ap(W);case 176:return Vr(W,16384,0);case 177:return Gd(W,32768,46015);case 178:return Gd(W,65536,78783);case 184:case 324:case 330:case 185:return Fs(W);case 187:case 329:case 200:return Ni(W);case 339:return Dt(W);case 210:return Yl(W);case 218:case 219:return fg(W);case 213:switch(Wl(W)){case 7:return $l(W);case 8:return Hc(W);case 9:return Qo(W);case 0:break;default:return C.fail("Unknown call expression assignment declaration kind")}cr(W)&&j_(W);break;case 231:case 263:return V=!0,Dh(W);case 264:return hl(W,64,788872);case 265:return hl(W,524288,788968);case 266:return Xg(W);case 267:return Po(W);case 292:return Fo(W);case 291:return ds(W,4,0);case 271:case 274:case 276:case 281:return Vr(W,2097152,2097152);case 270:return Uc(W);case 273:return gc(W);case 278:return js(W);case 277:return El(W);case 312:return pn(W.statements),Lr();case 241:if(!qx(W.parent))return;case 268:return pn(W.statements);case 348:if(W.parent.kind===330)return Yg(W);if(W.parent.kind!==329)break;case 355:let rr=W,si=rr.isBracketed||rr.typeExpression&&rr.typeExpression.type.kind===323?16777220:4;return Vr(rr,si,0);case 353:case 345:case 347:return(p||(p=[])).push(W);case 346:return we(W.typeExpression)}}function jr(W){let Ae=kd(W),st=Ae?98304:4,Ht=Ae?13247:0;return Gd(W,st|(W.questionToken?16777216:0),Ht)}function Ni(W){return Gs(W,2048,"__type")}function Lr(){if(Kr(e),ac(e))$o();else if($f(e)){$o();let W=e.symbol;He(e.symbol.exports,e.symbol,e,4,-1),e.symbol=W}}function $o(){Gs(e,512,`"${Td(e.fileName)}"`)}function El(W){if(!o.symbol||!o.symbol.exports)Gs(W,111551,ve(W));else{let Ae=mR(W)?2097152:4,st=He(o.symbol.exports,o.symbol,W,Ae,-1);W.isExportEquals&&VL(st,W)}}function Uc(W){Et(W.modifiers)&&e.bindDiagnostics.push(oe(W,f.Modifiers_cannot_appear_here));let Ae=no(W.parent)?ac(W.parent)?W.parent.isDeclarationFile?void 0:f.Global_module_exports_may_only_appear_in_declaration_files:f.Global_module_exports_may_only_appear_in_module_files:f.Global_module_exports_may_only_appear_at_top_level;Ae?e.bindDiagnostics.push(oe(W,Ae)):(e.symbol.globalExports=e.symbol.globalExports||ua(),He(e.symbol.globalExports,e.symbol,W,2097152,2097152))}function js(W){!o.symbol||!o.symbol.exports?Gs(W,8388608,ve(W)):W.exportClause?Sh(W.exportClause)&&(qa(W.exportClause,W),He(o.symbol.exports,o.symbol,W.exportClause,2097152,2097152)):He(o.symbol.exports,o.symbol,W,8388608,0)}function gc(W){W.name&&Vr(W,2097152,2097152)}function Ts(W){return e.externalModuleIndicator&&e.externalModuleIndicator!==!0?!1:(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=W,e.externalModuleIndicator||$o()),!0)}function Hc(W){if(!Ts(W))return;let Ae=Lf(W.arguments[0],void 0,(st,Ht)=>(Ht&&ie(Ht,st,67110400),Ht));Ae&&He(Ae.exports,Ae,W,1048580,0)}function ip(W){if(!Ts(W))return;let Ae=Lf(W.left.expression,void 0,(st,Ht)=>(Ht&&ie(Ht,st,67110400),Ht));if(Ae){let Ht=$L(W.right)&&(yS(W.left.expression)||tg(W.left.expression))?2097152:1048580;qa(W.left,W),He(Ae.exports,Ae,W.left,Ht,0)}}function Oc(W){if(!Ts(W))return;let Ae=FL(W.right);if(dU(Ae)||o===e&&tE(e,Ae))return;if(wa(Ae)&&Jn(Ae.properties,np)){Ke(Ae.properties,lm);return}let st=mR(W)?2097152:1049092,Ht=He(e.symbol.exports,e.symbol,W,st|67108864,0);VL(Ht,W)}function lm(W){He(e.symbol.exports,e.symbol,W,69206016,0)}function md(W){if(C.assert(cr(W)),_r(W)&&zr(W.left)&&Xi(W.left.name)||zr(W)&&Xi(W.name))return;let st=wd(W,!1,!1);switch(st.kind){case 262:case 218:let Ht=st.symbol;if(_r(st.parent)&&st.parent.operatorToken.kind===64){let $r=st.parent.left;N1($r)&&Vy($r.expression)&&(Ht=Dd($r.expression.expression,s))}Ht&&Ht.valueDeclaration&&(Ht.members=Ht.members||ua(),By(W)?Pe(W,Ht,Ht.members):He(Ht.members,Ht,W,67108868,0),ie(Ht,Ht.valueDeclaration,32));break;case 176:case 172:case 174:case 177:case 178:case 175:let rr=st.parent,si=sa(st)?rr.symbol.exports:rr.symbol.members;By(W)?Pe(W,rr.symbol,si):He(si,rr.symbol,W,67108868,0,!0);break;case 312:if(By(W))break;st.commonJsModuleIndicator?He(st.symbol.exports,st.symbol,W,1048580,0):Vr(W,1,111550);break;case 267:break;default:C.failBadSyntaxKind(st)}}function Pe(W,Ae,st){He(st,Ae,W,4,0,!0,!0),wt(W,Ae)}function wt(W,Ae){Ae&&(Ae.assignmentDeclarationMembers||(Ae.assignmentDeclarationMembers=new Map)).set(ss(W),W)}function qn(W){W.expression.kind===110?md(W):N1(W)&&W.parent.parent.kind===312&&(Vy(W.expression)?na(W,W.parent):cl(W))}function So(W){qa(W.left,W),qa(W.right,W),qc(W.left.expression,W.left,!1,!0)}function Qo(W){let Ae=Dd(W.arguments[0].expression);Ae&&Ae.valueDeclaration&&ie(Ae,Ae.valueDeclaration,32),Bl(W,Ae,!0)}function na(W,Ae){let st=W.expression,Ht=st.expression;qa(Ht,st),qa(st,W),qa(W,Ae),qc(Ht,W,!0,!0)}function $l(W){let Ae=Dd(W.arguments[0]),st=W.parent.parent.kind===312;Ae=gl(Ae,W.arguments[0],st,!1,!1),Bl(W,Ae,!1)}function vc(W){var Ae;let st=Dd(W.left.expression,l)||Dd(W.left.expression,o);if(!cr(W)&&!Mie(st))return;let Ht=IR(W.left);if(!(Ve(Ht)&&((Ae=z5(o,Ht.escapedText))==null?void 0:Ae.flags)&2097152))if(qa(W.left,W),qa(W.right,W),Ve(W.left.expression)&&o===e&&tE(e,W.left.expression))ip(W);else if(By(W)){Gs(W,67108868,"__computed");let rr=gl(st,W.left.expression,Ql(W.left),!1,!1);wt(W,rr)}else cl(aa(W.left,ES))}function cl(W){C.assert(!Ve(W)),qa(W.expression,W),qc(W.expression,W,!1,!1)}function gl(W,Ae,st,Ht,rr){return W?.flags&2097152||(st&&!Ht&&(W=Lf(Ae,W,(so,Oa,Fa)=>{if(Oa)return ie(Oa,so,67110400),Oa;{let wl=Fa?Fa.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=ua());return He(wl,Fa,so,67110400,110735)}})),rr&&W&&W.valueDeclaration&&ie(W,W.valueDeclaration,32)),W}function Bl(W,Ae,st){if(!Ae||!cf(Ae))return;let Ht=st?Ae.members||(Ae.members=ua()):Ae.exports||(Ae.exports=ua()),rr=0,si=0;zs(PA(W))?(rr=8192,si=103359):la(W)&&bS(W)&&(Et(W.arguments[2].properties,$r=>{let so=Oo($r);return!!so&&Ve(so)&&Sr(so)==="set"})&&(rr|=65540,si|=78783),Et(W.arguments[2].properties,$r=>{let so=Oo($r);return!!so&&Ve(so)&&Sr(so)==="get"})&&(rr|=32772,si|=46015)),rr===0&&(rr=4,si=0),He(Ht,Ae,W,rr|67108864,si&-67108865)}function Ql(W){return _r(W.parent)?Bd(W.parent).parent.kind===312:W.parent.parent.kind===312}function qc(W,Ae,st,Ht){let rr=Dd(W,l)||Dd(W,o),si=Ql(Ae);rr=gl(rr,Ae.expression,si,st,Ht),Bl(Ae,rr,st)}function cf(W){if(W.flags&1072)return!0;let Ae=W.valueDeclaration;if(Ae&&la(Ae))return!!PA(Ae);let st=Ae?Oi(Ae)?Ae.initializer:_r(Ae)?Ae.right:zr(Ae)&&_r(Ae.parent)?Ae.parent.right:void 0:void 0;if(st=st&&FL(st),st){let Ht=Vy(Oi(Ae)?Ae.name:_r(Ae)?Ae.left:Ae);return!!c0(_r(st)&&(st.operatorToken.kind===57||st.operatorToken.kind===61)?st.right:st,Ht)}return!1}function Bd(W){for(;_r(W.parent);)W=W.parent;return W.parent}function Dd(W,Ae=o){if(Ve(W))return z5(Ae,W.escapedText);{let st=Dd(W.expression);return st&&st.exports&&st.exports.get(Fg(W))}}function Lf(W,Ae,st){if(tE(e,W))return e.symbol;if(Ve(W))return st(W,Dd(W),Ae);{let Ht=Lf(W.expression,Ae,st),rr=zL(W);return Xi(rr)&&C.fail("unexpected PrivateIdentifier"),st(rr,Ht&&Ht.exports&&Ht.exports.get(Fg(W)),Ht)}}function j_(W){!e.commonJsModuleIndicator&&Sd(W,!1)&&Ts(W)}function Dh(W){if(W.kind===263)hl(W,32,899503);else{let rr=W.name?W.name.escapedText:"__class";Gs(W,32,rr),W.name&&he.add(W.name.escapedText)}let{symbol:Ae}=W,st=me(4194308,"prototype"),Ht=Ae.exports.get(st.escapedName);Ht&&(W.name&&qa(W.name,W),e.bindDiagnostics.push(oe(Ht.declarations[0],f.Duplicate_identifier_0,bl(st)))),Ae.exports.set(st.escapedName,st),st.parent=Ae}function Xg(W){return x1(W)?hl(W,128,899967):hl(W,256,899327)}function zu(W){if(V&&sc(W,W.name),!ta(W.name)){let Ae=W.kind===260?W:W.parent.parent;cr(W)&&C1(Ae)&&!r0(W)&&!(t0(W)&32)?Vr(W,2097152,2097152):uj(W)?hl(W,2,111551):L1(W)?Vr(W,1,111551):Vr(W,1,111550)}}function Yg(W){if(!(W.kind===348&&o.kind!==330)&&(V&&!(W.flags&33554432)&&sc(W,W.name),ta(W.name)?Gs(W,1,"__"+W.parent.parameters.indexOf(W)):Vr(W,1,111551),pp(W,W.parent))){let Ae=W.parent.parent;He(Ae.symbol.members,Ae.symbol,W,4|(W.questionToken?16777216:0),0)}}function Ap(W){!e.isDeclarationFile&&!(W.flags&33554432)&&LC(W)&&(Z|=4096),ll(W),V?(on(W),hl(W,16,110991)):Vr(W,16,110991)}function fg(W){!e.isDeclarationFile&&!(W.flags&33554432)&&LC(W)&&(Z|=4096),m&&(W.flowNode=m),ll(W);let Ae=W.name?W.name.escapedText:"__function";return Gs(W,16,Ae)}function Gd(W,Ae,st){return!e.isDeclarationFile&&!(W.flags&33554432)&&LC(W)&&(Z|=4096),m&&K6(W)&&(W.flowNode=m),By(W)?Gs(W,Ae,"__computed"):Vr(W,Ae,st)}function te(W){let Ae=zn(W,st=>st.parent&&aI(st.parent)&&st.parent.extendsType===st);return Ae&&Ae.parent}function lt(W){if(am(W.parent)){let Ae=p3(W.parent);Ae?(C.assertNode(Ae,ph),Ae.locals??(Ae.locals=ua()),He(Ae.locals,void 0,W,262144,526824)):Vr(W,262144,526824)}else if(W.parent.kind===195){let Ae=te(W.parent);Ae?(C.assertNode(Ae,ph),Ae.locals??(Ae.locals=ua()),He(Ae.locals,void 0,W,262144,526824)):Gs(W,262144,ve(W))}else Vr(W,262144,526824)}function Wt(W){let Ae=qg(W);return Ae===1||Ae===2&&V1(t)}function jt(W){if(!(m.flags&1))return!1;if(m===ye&&(_L(W)&&W.kind!==242||W.kind===263||W.kind===267&&Wt(W))&&(m=$,!t.allowUnreachableCode)){let st=Doe(t)&&!(W.flags&33554432)&&(!Ml(W)||!!(Lv(W.declarationList)&7)||W.declarationList.declarations.some(Ht=>!!Ht.initializer));TGe(W,(Ht,rr)=>de(st,Ht,rr,f.Unreachable_code_detected))}return!0}}function TGe(e,t){if(Ki(e)&&BAe(e)&&Xo(e.parent)){let{statements:r}=e.parent,i=DU(r,e);$B(i,BAe,(o,s)=>t(i[o],i[s-1]))}else t(e,e)}function BAe(e){return!Sc(e)&&!AGe(e)&&!v0(e)&&!(Ml(e)&&!(Lv(e)&7)&&e.declarationList.declarations.some(t=>!t.initializer))}function AGe(e){switch(e.kind){case 264:case 265:return!0;case 267:return qg(e)!==1;case 266:return ei(e,4096);default:return!1}}function tE(e,t){let r=0,i=PM();for(i.enqueue(t);!i.isEmpty()&&r<100;){if(r++,t=i.dequeue(),yS(t)||tg(t))return!0;if(Ve(t)){let o=z5(e,t.escapedText);if(o&&o.valueDeclaration&&Oi(o.valueDeclaration)&&o.valueDeclaration.initializer){let s=o.valueDeclaration.initializer;i.enqueue(s),Mc(s,!0)&&(i.enqueue(s.left),i.enqueue(s.right))}}}return!1}function Mq(e){switch(e.kind){case 231:case 263:case 266:case 210:case 187:case 329:case 292:return 1;case 264:return 65;case 267:case 265:case 200:case 181:return 33;case 312:return 37;case 177:case 178:case 174:if(K6(e))return 173;case 176:case 262:case 173:case 179:case 330:case 324:case 184:case 180:case 185:case 175:return 45;case 218:case 219:return 61;case 268:return 4;case 172:return e.initializer?4:0;case 299:case 248:case 249:case 250:case 269:return 34;case 241:return ea(e.parent)||Il(e.parent)?0:34}return 0}function z5(e,t){var r,i,o,s;let l=(i=(r=ai(e,ph))==null?void 0:r.locals)==null?void 0:i.get(t);if(l)return l.exportSymbol??l;if(no(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t))return e.jsGlobalAugmentations.get(t);if(A_(e))return(s=(o=e.symbol)==null?void 0:o.exports)==null?void 0:s.get(t)}var Lq,kq,GAe,IGe=A({"src/compiler/binder.ts"(){"use strict";ia(),oS(),Lq=(e=>(e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",e))(Lq||{}),kq=(e=>(e[e.None=0]="None",e[e.IsContainer=1]="IsContainer",e[e.IsBlockScopedContainer=2]="IsBlockScopedContainer",e[e.IsControlFlowContainer=4]="IsControlFlowContainer",e[e.IsFunctionLike=8]="IsFunctionLike",e[e.IsFunctionExpression=16]="IsFunctionExpression",e[e.HasLocals=32]="HasLocals",e[e.IsInterface=64]="IsInterface",e[e.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]="IsObjectLiteralOrClassExpressionMethodOrAccessor",e))(kq||{}),GAe=SGe()}});function $se(e,t,r,i,o,s,l,u,p,g){return m;function m(b=()=>!0){let T=[],I=[];return{walkType:he=>{try{return R(he),{visitedTypes:hA(T),visitedSymbols:hA(I)}}finally{Gi(T),Gi(I)}},walkSymbol:he=>{try{return ne(he),{visitedTypes:hA(T),visitedSymbols:hA(I)}}finally{Gi(T),Gi(I)}}};function R(he){if(!(!he||T[he.id]||(T[he.id]=he,ne(he.symbol)))){if(he.flags&524288){let $=he,Y=$.objectFlags;Y&4&&M(he),Y&32&&Z(he),Y&3&&ue(he),Y&24&&G($)}he.flags&262144&&N(he),he.flags&3145728&&O(he),he.flags&4194304&&H(he),he.flags&8388608&&K(he)}}function M(he){R(he.target),Ke(g(he),R)}function N(he){R(u(he))}function O(he){Ke(he.types,R)}function H(he){R(he.type)}function K(he){R(he.objectType),R(he.indexType),R(he.constraint)}function Z(he){R(he.typeParameter),R(he.constraintType),R(he.templateType),R(he.modifiersType)}function V(he){let ye=t(he);ye&&R(ye.type),Ke(he.typeParameters,R);for(let $ of he.parameters)ne($);R(e(he)),R(r(he))}function ue(he){G(he),Ke(he.typeParameters,R),Ke(i(he),R),R(he.thisType)}function G(he){let ye=o(he);for(let $ of ye.indexInfos)R($.keyType),R($.type);for(let $ of ye.callSignatures)V($);for(let $ of ye.constructSignatures)V($);for(let $ of ye.properties)ne($)}function ne(he){if(!he)return!1;let ye=Ta(he);if(I[ye])return!1;if(I[ye]=he,!b(he))return!0;let $=s(he);return R($),he.exports&&he.exports.forEach(ne),Ke(he.declarations,Y=>{if(Y.type&&Y.type.kind===186){let oe=Y.type,fe=l(p(oe.exprName));ne(fe)}}),!1}}}var xGe=A({"src/compiler/symbolWalker.ts"(){"use strict";ia()}});function Aw({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t},r,i,o){let s=l();return{relativePreference:o!==void 0?Yc(o)?0:1:e==="relative"?0:e==="non-relative"?1:e==="project-relative"?3:2,getAllowedEndingsInPreferredOrder:u=>{let p=u!==i.impliedNodeFormat?l(u):s;if((u??i.impliedNodeFormat)===99)return i2(r,i.fileName)?[3,2]:[2];if(dd(r)===1)return p===2?[2,1]:[1,2];let g=i2(r,i.fileName);switch(p){case 2:return g?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return g?[1,0,3,2]:[1,0,2];case 0:return g?[0,1,3,2]:[0,1,2];default:C.assertNever(p)}}};function l(u){if(o!==void 0){if(W1(o))return 2;if(Sl(o,"/index"))return 1}return Foe(t,u??i.impliedNodeFormat,r,i)}}function RGe(e,t,r,i,o,s,l={}){let u=VAe(e,t,r,i,o,Aw({},e,t,s),{},l);if(u!==s)return u}function B5(e,t,r,i,o,s={}){return VAe(e,t,r,i,o,Aw({},e,t),{},s)}function DGe(e,t,r,i,o,s={}){let l=wq(t.fileName,i),u=XAe(l,r,i,o,s);return Zt(u,p=>Zse(p,l,t,i,e,o,!0,s.overrideImportMode))}function VAe(e,t,r,i,o,s,l,u={}){let p=wq(r,o),g=XAe(p,i,o,l,u);return Zt(g,m=>Zse(m,p,t,o,e,l,void 0,u.overrideImportMode))||qAe(i,p,e,o,u.overrideImportMode||t.impliedNodeFormat,s)}function CGe(e,t,r,i,o={}){return jAe(e,t,r,i,o)[0]}function jAe(e,t,r,i,o={}){var s;let l=O6(e);if(!l)return et;let u=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r),p=u?.get(t.path,l.path,i,o);return[p?.moduleSpecifiers,l,p?.modulePaths,u]}function UAe(e,t,r,i,o,s,l={}){return HAe(e,t,r,i,o,s,l,!1).moduleSpecifiers}function HAe(e,t,r,i,o,s,l={},u){let p=!1,g=MGe(e,t);if(g)return{moduleSpecifiers:[g],computedWithoutCache:p};let[m,b,T,I]=jAe(e,i,o,s,l);if(m)return{moduleSpecifiers:m,computedWithoutCache:p};if(!b)return{moduleSpecifiers:et,computedWithoutCache:p};p=!0,T||(T=YAe(wq(i.fileName,o),b.originalFileName,o));let R=NGe(T,r,i,o,s,l,u);return I?.set(i.path,b.path,s,l,T,R),{moduleSpecifiers:R,computedWithoutCache:p}}function NGe(e,t,r,i,o,s={},l){let u=wq(r.fileName,i),p=Aw(o,t,r),g=Ke(e,M=>Ke(i.getFileIncludeReasons().get(rl(M.path,i.getCurrentDirectory(),u.getCanonicalFileName)),N=>{if(N.kind!==3||N.file!==r.path||r.impliedNodeFormat&&r.impliedNodeFormat!==cce(r,N.index,t))return;let O=Gw(r,N.index).text;return p.relativePreference!==1||!wp(O)?O:void 0}));if(g)return[g];let m=Et(e,M=>M.isInNodeModules),b,T,I,R;for(let M of e){let N=M.isInNodeModules?Zse(M,u,r,i,t,o,void 0,s.overrideImportMode):void 0;if(b=In(b,N),N&&M.isRedirect)return b;if(!N){let O=qAe(M.path,u,t,i,s.overrideImportMode||r.impliedNodeFormat,p,M.isRedirect);if(!O)continue;M.isRedirect?I=In(I,O):IV(O)?I0(O)?R=In(R,O):T=In(T,O):(l||!m||M.isInNodeModules)&&(R=In(R,O))}}return T?.length?T:I?.length?I:b?.length?b:C.checkDefined(R)}function wq(e,t){e=bo(e,t.getCurrentDirectory());let r=Pu(t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!0),i=li(e);return{getCanonicalFileName:r,importingSourceFileName:e,sourceDirectory:i,canonicalSourceDirectory:r(i)}}function qAe(e,t,r,i,o,{getAllowedEndingsInPreferredOrder:s,relativePreference:l},u){let{baseUrl:p,paths:g,rootDirs:m}=r;if(u&&!g)return;let{sourceDirectory:b,canonicalSourceDirectory:T,getCanonicalFileName:I}=t,R=s(o),M=m&&wGe(m,e,b,I,R,r)||Iw(v1(bm(b,e,I)),R,r);if(!p&&!g&&!u7(r)||l===0)return u?void 0:M;let N=bo(E3(r,i)||p,i.getCurrentDirectory()),O=eIe(e,N,I);if(!O)return u?void 0:M;let H=u?void 0:kGe(e,b,r,i,o),K=u||H===void 0?g&&$Ae(O,g,R,i,r):void 0;if(u)return K;let Z=H??(K===void 0&&p!==void 0?Iw(O,R,r):K);if(!Z)return M;if(l===1&&!wp(Z))return Z;if(l===3&&!wp(Z)){let V=r.configFilePath?rl(li(r.configFilePath),i.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(i.getCurrentDirectory()),ue=rl(e,V,I),G=uo(T,V),ne=uo(ue,V);if(G&&!ne||!G&&ne)return Z;let he=Qse(i,li(ue)),ye=Qse(i,b),$=!ER(i);return PGe(he,ye,$)?M:Z}return tIe(Z)||G5(M)e.fileExists(Zr(r,"package.json"))?r:void 0)}function KAe(e,t,r,i,o){var s;let l=Wv(r),u=r.getCurrentDirectory(),p=r.isSourceOfProjectReferenceRedirect(t)?r.getProjectReferenceRedirect(t):void 0,g=rl(t,u,l),m=r.redirectTargetsMap.get(g)||et,T=[...p?[p]:et,t,...m].map(O=>bo(O,u)),I=!Jn(T,iN);if(!i){let O=Ke(T,H=>!(I&&iN(H))&&o(H,p===H));if(O)return O}let R=(s=r.getSymlinkCache)==null?void 0:s.call(r).getSymlinkedDirectoriesByRealpath(),M=bo(t,u);return R&&Em(li(M),O=>{let H=R.get(zc(rl(O,u,l)));if(H)return RV(e,O,l)?!1:Ke(T,K=>{if(!RV(K,O,l))return;let Z=bm(O,K,l);for(let V of H){let ue=Dy(V,Z),G=o(ue,K===p);if(I=!0,G)return G}})})||(i?Ke(T,O=>I&&iN(O)?void 0:o(O,O===p)):void 0)}function XAe(e,t,r,i,o={}){var s;let l=rl(e.importingSourceFileName,r.getCurrentDirectory(),Wv(r)),u=rl(t,r.getCurrentDirectory(),Wv(r)),p=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r);if(p){let m=p.get(l,u,i,o);if(m?.modulePaths)return m.modulePaths}let g=YAe(e,t,r);return p&&p.setModulePaths(l,u,i,o,g),g}function YAe(e,t,r){let i=new Map,o=!1;KAe(e.importingSourceFileName,t,r,!0,(l,u)=>{let p=I0(l);i.set(l,{path:e.getCanonicalFileName(l),isRedirect:u,isInNodeModules:p}),o=o||p});let s=[];for(let l=e.canonicalSourceDirectory;i.size!==0;){let u=zc(l),p;i.forEach(({path:m,isRedirect:b,isInNodeModules:T},I)=>{uo(m,u)&&((p||(p=[])).push({path:I,isRedirect:b,isInNodeModules:T}),i.delete(I))}),p&&(p.length>1&&p.sort(JAe),s.push(...p));let g=li(l);if(g===l)break;l=g}if(i.size){let l=Vo(i.entries(),([u,{isRedirect:p,isInNodeModules:g}])=>({path:u,isRedirect:p,isInNodeModules:g}));l.length>1&&l.sort(JAe),s.push(...l)}return s}function MGe(e,t){var r;let i=(r=e.declarations)==null?void 0:r.find(l=>pj(l)&&(!I1(l)||!Yc(Zf(l.name))));if(i)return i.name.text;let s=Vi(e.declarations,l=>{var u,p,g,m;if(!Jl(l))return;let b=M(l);if(!((u=b?.parent)!=null&&u.parent&&k_(b.parent)&&Lu(b.parent.parent)&&no(b.parent.parent.parent)))return;let T=(m=(g=(p=b.parent.parent.symbol.exports)==null?void 0:p.get("export="))==null?void 0:g.valueDeclaration)==null?void 0:m.expression;if(!T)return;let I=t.getSymbolAtLocation(T);if(!I)return;if((I?.flags&2097152?t.getAliasedSymbol(I):I)===l.symbol)return b.parent.parent;function M(N){for(;N.flags&8;)N=N.parent;return N}})[0];if(s)return s.name.text}function $Ae(e,t,r,i,o){for(let l in t)for(let u of t[l]){let p=va(u),g=p.indexOf("*"),m=r.map(b=>({ending:b,value:Iw(e,[b],o)}));if(Gg(p)&&m.push({ending:void 0,value:e}),g!==-1){let b=p.substring(0,g),T=p.substring(g+1);for(let{ending:I,value:R}of m)if(R.length>=b.length+T.length&&uo(R,b)&&Sl(R,T)&&s({ending:I,value:R})){let M=R.substring(b.length,R.length-T.length);if(!wp(M))return qA(l,M)}}else if(Et(m,b=>b.ending!==0&&p===b.value)||Et(m,b=>b.ending===0&&p===b.value&&s(b)))return l}function s({ending:l,value:u}){return l!==0||u===Iw(e,[l],o,i)}}function V5(e,t,r,i,o,s,l,u,p){if(typeof s=="string"){let g=!ER(t),m=()=>t.getCommonSourceDirectory(),b=p&&dJ(r,e,g,m),T=p&&uJ(r,e,g,m),I=bo(Zr(i,s),void 0),R=UA(r)?Td(r)+tle(r,e):void 0;switch(u){case 0:if(R&&Pg(R,I,g)===0||Pg(r,I,g)===0||b&&Pg(b,I,g)===0||T&&Pg(T,I,g)===0)return{moduleFileToTry:o};break;case 1:if(R&&ym(I,R,g)){let H=bm(I,R,!1);return{moduleFileToTry:bo(Zr(Zr(o,s),H),void 0)}}if(ym(I,r,g)){let H=bm(I,r,!1);return{moduleFileToTry:bo(Zr(Zr(o,s),H),void 0)}}if(b&&ym(I,b,g)){let H=bm(I,b,!1);return{moduleFileToTry:Zr(o,H)}}if(T&&ym(I,T,g)){let H=bm(I,T,!1);return{moduleFileToTry:Zr(o,H)}}break;case 2:let M=I.indexOf("*"),N=I.slice(0,M),O=I.slice(M+1);if(R&&uo(R,N,g)&&Sl(R,O,g)){let H=R.slice(N.length,R.length-O.length);return{moduleFileToTry:qA(o,H)}}if(uo(r,N,g)&&Sl(r,O,g)){let H=r.slice(N.length,r.length-O.length);return{moduleFileToTry:qA(o,H)}}if(b&&uo(b,N,g)&&Sl(b,O,g)){let H=b.slice(N.length,b.length-O.length);return{moduleFileToTry:qA(o,H)}}if(T&&uo(T,N,g)&&Sl(T,O,g)){let H=T.slice(N.length,T.length-O.length);return{moduleFileToTry:qA(o,H)}}break}}else{if(Array.isArray(s))return Ke(s,g=>V5(e,t,r,i,o,g,l,u,p));if(typeof s=="object"&&s!==null){for(let g of Jh(s))if(g==="default"||l.indexOf(g)>=0||Sw(l,g)){let m=s[g],b=V5(e,t,r,i,o,m,l,u,p);if(b)return b}}}}function LGe(e,t,r,i,o,s,l){return typeof s=="object"&&s!==null&&!Array.isArray(s)&&F5(s)?Ke(Jh(s),u=>{let p=bo(Zr(o,u),void 0),g=Sl(u,"/")?1:u.includes("*")?2:0;return V5(e,t,r,i,p,s[u],l,g,!1)}):V5(e,t,r,i,o,s,l,0,!1)}function kGe(e,t,r,i,o){var s,l,u;if(!i.readFile||!u7(r))return;let p=Qse(i,t);if(!p)return;let g=Zr(p,"package.json"),m=(l=(s=i.getPackageJsonInfoCache)==null?void 0:s.call(i))==null?void 0:l.getPackageJsonInfo(g);if(Fse(m)||!i.fileExists(g))return;let b=m?.contents.packageJsonContent||N3(i.readFile(g)),T=b?.imports;if(!T)return;let I=tb(r,o);return(u=Ke(Jh(T),R=>{if(!uo(R,"#")||R==="#"||uo(R,"#/"))return;let M=Sl(R,"/")?1:R.includes("*")?2:0;return V5(r,i,e,p,R,T[R],I,M,!0)}))==null?void 0:u.moduleFileToTry}function wGe(e,t,r,i,o,s){let l=QAe(t,e,i);if(l===void 0)return;let u=QAe(r,e,i),p=Zi(u,m=>Ft(l,b=>v1(bm(m,b,i)))),g=sG(p,mk);if(g)return Iw(g,o,s)}function Zse({path:e,isRedirect:t},{getCanonicalFileName:r,canonicalSourceDirectory:i},o,s,l,u,p,g){if(!s.fileExists||!s.readFile)return;let m=t7(e);if(!m)return;let T=Aw(u,l,o).getAllowedEndingsInPreferredOrder(),I=e,R=!1;if(!p){let Z=m.packageRootIndex,V;for(;;){let{moduleFileToTry:ue,packageRootPath:G,blockedByExports:ne,verbatimFromExports:he}=K(Z);if(dd(l)!==1){if(ne)return;if(he)return ue}if(G){I=G,R=!0;break}if(V||(V=ue),Z=e.indexOf(il,Z+1),Z===-1){I=Iw(V,T,l,s);break}}}if(t&&!R)return;let M=s.getGlobalTypingsCacheLocation&&s.getGlobalTypingsCacheLocation(),N=r(I.substring(0,m.topLevelNodeModulesIndex));if(!(uo(i,N)||M&&uo(r(M),N)))return;let O=I.substring(m.topLevelPackageNameIndex+1),H=zN(O);return dd(l)===1&&H===O?void 0:H;function K(Z){var V,ue;let G=e.substring(0,Z),ne=Zr(G,"package.json"),he=e,ye=!1,$=(ue=(V=s.getPackageJsonInfoCache)==null?void 0:V.call(s))==null?void 0:ue.getPackageJsonInfo(ne);if(L5($)||$===void 0&&s.fileExists(ne)){let Y=$?.contents.packageJsonContent||N3(s.readFile(ne)),oe=g||o.impliedNodeFormat;if(c7(l)){let me=G.substring(m.topLevelPackageNameIndex+1),ie=zN(me),ve=tb(l,oe),Le=Y?.exports?LGe(l,s,e,G,ie,Y.exports,ve):void 0;if(Le)return{...Le,verbatimFromExports:!0};if(Y?.exports)return{moduleFileToTry:e,blockedByExports:!0}}let fe=Y?.typesVersions?P5(Y.typesVersions):void 0;if(fe){let me=e.slice(G.length+1),ie=$Ae(me,fe.paths,T,s,l);ie===void 0?ye=!0:he=Zr(G,ie)}let Ne=Y?.typings||Y?.types||Y?.main||"index.js";if(wo(Ne)&&!(ye&&RU(X3(fe.paths),Ne))){let me=rl(Ne,G,r),ie=r(he);if(Td(me)===Td(ie))return{packageRootPath:G,moduleFileToTry:he};if(Y?.type!=="module"&&!Ec(ie,xk)&&uo(ie,me)&&li(ie)===$b(me)&&Td(rc(ie))==="index")return{packageRootPath:G,moduleFileToTry:he}}}else{let Y=r(he.substring(m.packageRootIndex+1));if(Y==="index.d.ts"||Y==="index.js"||Y==="index.ts"||Y==="index.tsx")return{moduleFileToTry:he,packageRootPath:G}}return{moduleFileToTry:he}}}function OGe(e,t){if(!e.fileExists)return;let r=ts($C({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));for(let i of r){let o=t+i;if(e.fileExists(o))return o}}function QAe(e,t,r){return Vi(t,i=>{let o=eIe(e,i,r);return o!==void 0&&tIe(o)?void 0:o})}function Iw(e,t,r,i){if(Ec(e,[".json",".mjs",".cjs"]))return e;let o=Td(e);if(e===o)return e;let s=t.indexOf(2),l=t.indexOf(3);if(Ec(e,[".mts",".cts"])&&l!==-1&&lg===0||g===1);return p!==-1&&p(e[e.Relative=0]="Relative",e[e.NonRelative=1]="NonRelative",e[e.Shortest=2]="Shortest",e[e.ExternalNonRelative=3]="ExternalNonRelative",e))(nle||{})}}),nE={};X(nE,{RelativePreference:()=>nle,countPathComponents:()=>G5,forEachFileNameOfModule:()=>KAe,getModuleSpecifier:()=>B5,getModuleSpecifierPreferences:()=>Aw,getModuleSpecifiers:()=>UAe,getModuleSpecifiersWithCacheInfo:()=>HAe,getNodeModulesPackageName:()=>DGe,tryGetJSExtensionForFile:()=>tle,tryGetModuleSpecifiersFromCache:()=>CGe,tryGetRealFileNameForNonJsDeclarationFileName:()=>ZAe,updateModuleSpecifier:()=>RGe});var ile=A({"src/compiler/_namespaces/ts.moduleSpecifiers.ts"(){"use strict";rle()}});function FGe(){this.flags=0}function ss(e){return e.id||(e.id=sle,sle++),e.id}function Ta(e){return e.id||(e.id=ale,ale++),e.id}function Oq(e,t){let r=qg(e);return r===1||t&&r===2}function ole(e){var t=[],r=n=>{t.push(n)},i,o=new Set,s,l,u=lu.getSymbolConstructor(),p=lu.getTypeConstructor(),g=lu.getSignatureConstructor(),m=0,b=0,T=0,I=0,R=0,M=0,N,O,H=!1,K=ua(),Z=[1],V=e.getCompilerOptions(),ue=as(V),G=ku(V),ne=!!V.experimentalDecorators,he=pN(V),ye=Noe(V),$=NS(V),Y=ud(V,"strictNullChecks"),oe=ud(V,"strictFunctionTypes"),fe=ud(V,"strictBindCallApply"),Ne=ud(V,"strictPropertyInitialization"),me=ud(V,"noImplicitAny"),ie=ud(V,"noImplicitThis"),ve=ud(V,"useUnknownInCatchVariables"),Le=!!V.keyofStringsOnly,He=Le?1:0,Ee=V.suppressExcessPropertyErrors?0:8192,Ce=V.exactOptionalPropertyTypes,Me=_mt(),Fe=Kgt(),At=K_(),Se=ua(),je=Xa(4,"undefined");je.declarations=[];var at=Xa(1536,"globalThis",8);at.exports=Se,at.declarations=[],Se.set(at.escapedName,at);var Bt=Xa(4,"arguments"),yt=Xa(4,"require"),Qe=V.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",gt=!V.verbatimModuleSyntax||!!V.importsNotUsedAsValues,nn,rn,Nn=0,Xn,_n=0;let Qt={getNodeCount:()=>nd(e.getSourceFiles(),(n,a)=>n+a.nodeCount,0),getIdentifierCount:()=>nd(e.getSourceFiles(),(n,a)=>n+a.identifierCount,0),getSymbolCount:()=>nd(e.getSourceFiles(),(n,a)=>n+a.symbolCount,b),getTypeCount:()=>m,getInstantiationCount:()=>T,getRelationCacheSizes:()=>({assignable:jd.size,identity:op.size,subtype:Ch.size,strictSubtype:kf.size}),isUndefinedSymbol:n=>n===je,isArgumentsSymbol:n=>n===Bt,isUnknownSymbol:n=>n===ft,getMergedSymbol:is,getDiagnostics:T7e,getGlobalDiagnostics:ugt,getRecursionIdentity:lee,getUnmatchedProperties:wve,getTypeOfSymbolAtLocation:(n,a)=>{let c=Lo(a);return c?rdt(n,c):ht},getTypeOfSymbol:pr,getSymbolsOfParameterPropertyDeclaration:(n,a)=>{let c=Lo(n,Co);return c===void 0?C.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(C.assert(pp(c,c.parent)),LP(c,ml(a)))},getDeclaredTypeOfSymbol:Qs,getPropertiesOfType:ys,getPropertyOfType:(n,a)=>ba(n,ml(a)),getPrivateIdentifierPropertyOfType:(n,a,c)=>{let d=Lo(c);if(!d)return;let _=ml(a),y=zee(_,d);return y?bye(n,y):void 0},getTypeOfPropertyOfType:(n,a)=>Xe(n,ml(a)),getIndexInfoOfType:(n,a)=>Ag(n,a===0?ke:Dt),getIndexInfosOfType:hd,getIndexInfosOfIndexSymbol:Cge,getSignaturesOfType:Yo,getIndexTypeOfType:(n,a)=>r1(n,a===0?ke:Dt),getIndexType:n=>$_(n),getBaseTypes:Np,getBaseTypeOfLiteralType:vv,getWidenedType:Jp,getTypeFromTypeNode:n=>{let a=Lo(n,qi);return a?Ii(a):ht},getParameterType:v_,getParameterIdentifierInfoAtPosition:Lft,getPromisedTypeOfPromise:$4,getAwaitedType:n=>rA(n),getReturnTypeOfSignature:ms,isNullableType:Qz,getNullableType:Oz,getNonNullableType:yv,getNonOptionalType:pee,getTypeArguments:qs,typeToTypeNode:At.typeToTypeNode,indexInfoToIndexSignatureDeclaration:At.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:At.signatureToSignatureDeclaration,symbolToEntityName:At.symbolToEntityName,symbolToExpression:At.symbolToExpression,symbolToNode:At.symbolToNode,symbolToTypeParameterDeclarations:At.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:At.symbolToParameterDeclaration,typeParameterToDeclaration:At.typeParameterToDeclaration,getSymbolsInScope:(n,a)=>{let c=Lo(n);return c?dgt(c,a):[]},getSymbolAtLocation:n=>{let a=Lo(n);return a?Um(a,!0):void 0},getIndexInfosAtLocation:n=>{let a=Lo(n);return a?ygt(a):void 0},getShorthandAssignmentValueSymbol:n=>{let a=Lo(n);return a?bgt(a):void 0},getExportSpecifierLocalTargetSymbol:n=>{let a=Lo(n,Ju);return a?Egt(a):void 0},getExportSymbolOfSymbol(n){return is(n.exportSymbol||n)},getTypeAtLocation:n=>{let a=Lo(n);return a?bx(a):ht},getTypeOfAssignmentPattern:n=>{let a=Lo(n,vC);return a&&_te(a)||ht},getPropertySymbolOfDestructuringAssignment:n=>{let a=Lo(n,Ve);return a?Sgt(a):void 0},signatureToString:(n,a,c,d)=>kh(n,Lo(a),c,d),typeToString:(n,a,c)=>jn(n,Lo(a),c),symbolToString:(n,a,c,d)=>Ai(n,Lo(a),c,d),typePredicateToString:(n,a,c)=>wh(n,Lo(a),c),writeSignature:(n,a,c,d,_)=>kh(n,Lo(a),c,d,_),writeType:(n,a,c,d)=>jn(n,Lo(a),c,d),writeSymbol:(n,a,c,d,_)=>Ai(n,Lo(a),c,d,_),writeTypePredicate:(n,a,c,d)=>wh(n,Lo(a),c,d),getAugmentedPropertiesOfType:Ebe,getRootSymbols:P7e,getSymbolOfExpando:Kee,getContextualType:(n,a)=>{let c=Lo(n,bt);if(c)return a&4?ho(c,()=>Jd(c,a)):Jd(c,a)},getContextualTypeForObjectLiteralElement:n=>{let a=Lo(n,wg);return a?aye(a,void 0):void 0},getContextualTypeForArgumentAtIndex:(n,a)=>{let c=Lo(n,T1);return c&&oye(c,a)},getContextualTypeForJsxAttribute:n=>{let a=Lo(n,R6);return a&&H8e(a,void 0)},isContextSensitive:Gf,getTypeOfPropertyOfContextualType:p1,getFullyQualifiedName:Up,getResolvedSignature:(n,a,c)=>ki(n,a,c,0),getCandidateSignaturesForStringLiteralCompletions:Yt,getResolvedSignatureForSignatureHelp:(n,a,c)=>vi(n,()=>ki(n,a,c,16)),getExpandedParameters:qwe,hasEffectiveRestParameter:jh,containsArgumentsReference:xge,getConstantValue:n=>{let a=Lo(n,O7e);return a?Sbe(a):void 0},isValidPropertyAccess:(n,a)=>{let c=Lo(n,Mre);return!!c&&Vpt(c,ml(a))},isValidPropertyAccessForCompletions:(n,a,c)=>{let d=Lo(n,zr);return!!d&&E6e(d,a,c)},getSignatureFromDeclaration:n=>{let a=Lo(n,ea);return a?pm(a):void 0},isImplementationOfOverload:n=>{let a=Lo(n,ea);return a?k7e(a):void 0},getImmediateAliasedSymbol:dye,getAliasedSymbol:Fc,getEmitResolver:oy,getExportsOfModule:RT,getExportsAndPropertiesOfModule:nD,forEachExportAndPropertyOfModule:rD,getSymbolWalker:$se(Ist,Bf,ms,Np,m_,pr,Vm,Pd,Bp,qs),getAmbientModules:Fvt,getJsxIntrinsicTagNamesAt:Ept,isOptionalParameter:n=>{let a=Lo(n,Co);return a?S4(a):!1},tryGetMemberInModuleExports:(n,a)=>DT(ml(n),a),tryGetMemberInModuleExportsAndProperties:(n,a)=>iD(ml(n),a),tryFindAmbientModule:n=>kZ(n,!0),tryFindAmbientModuleWithoutAugmentations:n=>kZ(n,!1),getApparentType:Md,getUnionType:ii,isTypeAssignableTo:Sa,createAnonymousType:Ls,createSignature:Tg,createSymbol:Xa,createIndexInfo:Bh,getAnyType:()=>j,getStringType:()=>ke,getStringLiteralType:qd,getNumberType:()=>Dt,getNumberLiteralType:h_,getBigIntType:()=>Pt,createPromiseType:cB,createArrayType:Gu,getElementTypeOfArrayType:wz,getBooleanType:()=>yi,getFalseType:n=>n?Kt:Tn,getTrueType:n=>n?On:Gn,getVoidType:()=>or,getUndefinedType:()=>Oe,getNullType:()=>pe,getESSymbolType:()=>Di,getNeverType:()=>Vr,getOptionalType:()=>J,getPromiseType:()=>yz(!1),getPromiseLikeType:()=>LOe(!1),getAsyncIterableType:()=>{let n=UZ(!1);if(n!==Wo)return n},isSymbolAccessible:wi,isArrayType:jf,isTupleType:Wa,isArrayLikeType:gy,isEmptyAnonymousObjectType:Vh,isTypeInvalidDueToUnionDiscriminant:ast,getExactOptionalProperties:Lct,getAllPossiblePropertiesOfTypes:sst,getSuggestedSymbolForNonexistentProperty:Tye,getSuggestionForNonexistentProperty:Aye,getSuggestedSymbolForNonexistentJSXAttribute:y6e,getSuggestedSymbolForNonexistentSymbol:(n,a,c)=>Iye(n,ml(a),c),getSuggestionForNonexistentSymbol:(n,a,c)=>Wpt(n,ml(a),c),getSuggestedSymbolForNonexistentModule:Gee,getSuggestionForNonexistentExport:zpt,getSuggestedSymbolForNonexistentClassMember:v6e,getBaseConstraintOfType:Bu,getDefaultFromTypeParameter:n=>n&&n.flags&262144?zT(n):void 0,resolveName(n,a,c,d){return vl(a,ml(n),c,void 0,void 0,!1,d)},getJsxNamespace:n=>Hi(z0(n)),getJsxFragmentFactory:n=>{let a=Abe(n);return a&&Hi(Bp(a).escapedText)},getAccessibleSymbolChain:Sb,getTypePredicateOfSignature:Bf,resolveExternalModuleName:n=>{let a=Lo(n,bt);return a&&_d(a,a,!0)},resolveExternalModuleSymbol:Rp,tryGetThisTypeAt:(n,a,c)=>{let d=Lo(n);return d&&tye(d,a,c)},getTypeArgumentConstraint:n=>{let a=Lo(n,qi);return a&&Jmt(a)},getSuggestionDiagnostics:(n,a)=>{let c=Lo(n,no)||C.fail("Could not determine parsed source file.");if(eN(c,V,e))return et;let d;try{return i=a,ybe(c),C.assert(!!(ti(c).flags&1)),d=Jr(d,uT.getDiagnostics(c.fileName)),z3e(S7e(c),(_,y,x)=>{!$x(_)&&!E7e(y,!!(_.flags&33554432))&&(d||(d=[])).push({...x,category:2})}),d||et}finally{i=void 0}},runWithCancellationToken:(n,a)=>{try{return i=n,a(Qt)}finally{i=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:kr,isDeclarationVisible:u_,isPropertyAccessible:Rye,getTypeOnlyAliasDeclaration:wf,getMemberOverrideModifierStatus:Iht,isTypeParameterPossiblyReferenced:xz,typeHasCallOrConstructSignatures:hte};function Yt(n,a){let c=new Set,d=[];ho(a,()=>ki(n,d,void 0,0));for(let _ of d)c.add(_);d.length=0,vi(a,()=>ki(n,d,void 0,0));for(let _ of d)c.add(_);return Vo(c)}function vi(n,a){if(n=zn(n,$V),n){let c=[],d=[];for(;n;){let y=ti(n);if(c.push([y,y.resolvedSignature]),y.resolvedSignature=void 0,B1(n)){let x=$i(Rr(n)),L=x.type;d.push([x,L]),x.type=void 0}n=zn(n.parent,$V)}let _=a();for(let[y,x]of c)y.resolvedSignature=x;for(let[y,x]of d)y.type=x;return _}return a()}function ho(n,a){let c=zn(n,T1);if(c){let _=n;do ti(_).skipDirectInference=!0,_=_.parent;while(_&&_!==c)}H=!0;let d=vi(n,a);if(H=!1,c){let _=n;do ti(_).skipDirectInference=void 0,_=_.parent;while(_&&_!==c)}return d}function ki(n,a,c,d){let _=Lo(n,T1);nn=c;let y=_?DD(_,a,d):void 0;return nn=void 0,y}var Ro=new Map,nr=new Map,qr=new Map,xr=new Map,ln=new Map,tt=new Map,zt=new Map,Rn=new Map,ui=new Map,bi=new Map,ro=new Map,No=new Map,_a=new Map,ja=new Map,En=new Map,wn=[],Ue=new Map,mt=new Set,ft=Xa(4,"unknown"),Nt=Xa(0,"__resolving__"),le=new Map,We=new Map,pt=new Set,j=lc(1,"any"),ot=lc(1,"any",262144,"auto"),xt=lc(1,"any",void 0,"wildcard"),Ye=lc(1,"any",void 0,"blocked string"),ht=lc(1,"error"),Vt=lc(1,"unresolved"),yn=lc(1,"any",65536,"non-inferrable"),fn=lc(1,"intrinsic"),mn=lc(2,"unknown"),q=lc(2,"unknown",void 0,"non-null"),Oe=lc(32768,"undefined"),Lt=Y?Oe:lc(32768,"undefined",65536,"widening"),w=lc(32768,"undefined",void 0,"missing"),ae=Ce?w:Oe,J=lc(32768,"undefined",void 0,"optional"),pe=lc(65536,"null"),Ge=Y?pe:lc(65536,"null",65536,"widening"),ke=lc(4,"string"),Dt=lc(8,"number"),Pt=lc(64,"bigint"),Kt=lc(512,"false",void 0,"fresh"),Tn=lc(512,"false"),On=lc(512,"true",void 0,"fresh"),Gn=lc(512,"true");On.regularType=Gn,On.freshType=On,Gn.regularType=Gn,Gn.freshType=On,Kt.regularType=Tn,Kt.freshType=Kt,Tn.regularType=Tn,Tn.freshType=Kt;var yi=ii([Tn,Gn]),Di=lc(4096,"symbol"),or=lc(16384,"void"),Vr=lc(131072,"never"),Eo=lc(131072,"never",262144,"silent"),Mi=lc(131072,"never",void 0,"implicit"),Ci=lc(131072,"never",void 0,"unreachable"),Kr=lc(67108864,"object"),Po=ii([ke,Dt]),Dn=ii([ke,Dt,Di]),Fs=Le?ke:Dn,Yl=ii([Dt,Pt]),Fo=ii([ke,Dt,yi,Pt,pe,Oe]),ds=GT(["",""],[Dt]),Gs=Iz(n=>n.flags&262144?act(n):n,()=>"(restrictive mapper)"),hl=Iz(n=>n.flags&262144?xt:n,()=>"(permissive mapper)"),uu=lc(131072,"never",void 0,"unique literal"),yo=Iz(n=>n.flags&262144?uu:n,()=>"(unique literal mapper)"),pa,du=Iz(n=>(pa&&(n===Tp||n===Ms||n===Ic)&&pa(!0),n),()=>"(unmeasurable reporter)"),Is=Iz(n=>(pa&&(n===Tp||n===Ms||n===Ic)&&pa(!1),n),()=>"(unreliable reporter)"),Pa=Ls(void 0,K,et,et,et),fl=Ls(void 0,K,et,et,et);fl.objectFlags|=2048;var Mf=Xa(2048,"__type");Mf.members=ua();var sc=Ls(Mf,K,et,et,et),Rl=Ls(void 0,K,et,et,et),ll=Y?ii([Oe,pe,Rl]):mn,Wo=Ls(void 0,K,et,et,et);Wo.instantiations=new Map;var on=Ls(void 0,K,et,et,et);on.objectFlags|=262144;var Vs=Ls(void 0,K,et,et,et),nu=Ls(void 0,K,et,et,et),pu=Ls(void 0,K,et,et,et),Tp=_f(),Ms=_f();Ms.constraint=Tp;var Ic=_f(),de=_f(),ee=_f();ee.constraint=de;var we=gz(1,"<>",0,j),St=Tg(void 0,void 0,void 0,et,j,void 0,0,0),pn=Tg(void 0,void 0,void 0,et,ht,void 0,0,0),Tr=Tg(void 0,void 0,void 0,et,j,void 0,0,0),gr=Tg(void 0,void 0,void 0,et,Eo,void 0,0,0),jr=Bh(Dt,ke,!0),Ni=new Map,Lr={get yieldType(){return C.fail("Not supported")},get returnType(){return C.fail("Not supported")},get nextType(){return C.fail("Not supported")}},$o=by(j,j,j),El=by(j,j,mn),Uc=by(Vr,j,Oe),js={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:Bst,getGlobalIterableType:UZ,getGlobalIterableIteratorType:Gst,getGlobalGeneratorType:Vst,resolveIterationType:(n,a)=>rA(n,a,f.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:f.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:f.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:f.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},gc={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:jst,getGlobalIterableType:Gge,getGlobalIterableIteratorType:Ust,getGlobalGeneratorType:Hst,resolveIterationType:(n,a)=>n,mustHaveANextMethodDiagnostic:f.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:f.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:f.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},Ts,Hc=new Map,ip=[],Oc,lm,md,Pe,wt,qn,So,Qo,na,$l,vc,cl,gl,Bl,Ql,qc,cf,Bd,Dd,Lf,j_,Dh,Xg,zu,Yg,Ap,fg,Gd,te,lt,Wt,jt,W,Ae,st,Ht,rr,si,$r,so,Oa,Fa,wl,fu,xc,Ip,Vd,cb,ps,Lm,km,Ji,$g,ry,wm,mE,_E,uf=new Map,U_=0,df=0,Qg=0,ze=!1,Ze=0,kt,Ut,gn,Yn=[],hn=[],$n=[],hi=0,ur=[],oi=[],mr=0,Zo=qd(""),Ka=h_(0),Qu=XZ({negative:!1,base10Value:"0"}),mu=[],Zg=[],w0=[],VI=0,O0=!1,j2=0,U2=10,H2=[],lT=[],hE=[],jI=[],q2=[],UI=[],HI=[],qI=[],JI=[],cT=[],KI=[],gE=[],vE=[],ub=[],db=[],mg=[],F0=[],ns=vR(),uT=vR(),J2=Lh(),W0,ev,Ch=new Map,kf=new Map,jd=new Map,xp=new Map,op=new Map,iy=new Map,dT=ua();dT.set(je.escapedName,je);var K2=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",V.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return Xgt(),Qt;function XI(n){return n?En.get(n):void 0}function pb(n,a){return n&&En.set(n,a),a}function z0(n){if(n){let a=Vn(n);if(a)if(dI(n)){if(a.localJsxFragmentNamespace)return a.localJsxFragmentNamespace;let c=a.pragmas.get("jsxfrag");if(c){let _=Do(c)?c[0]:c;if(a.localJsxFragmentFactory=_I(_.arguments.factory,ue),rt(a.localJsxFragmentFactory,yc,Qd),a.localJsxFragmentFactory)return a.localJsxFragmentNamespace=Bp(a.localJsxFragmentFactory).escapedText}let d=Abe(n);if(d)return a.localJsxFragmentFactory=d,a.localJsxFragmentNamespace=Bp(d).escapedText}else{let c=YI(a);if(c)return a.localJsxNamespace=c}}return W0||(W0="React",V.jsxFactory?(ev=_I(V.jsxFactory,ue),rt(ev,yc),ev&&(W0=Bp(ev).escapedText)):V.reactNamespace&&(W0=ml(V.reactNamespace))),ev||(ev=k.createQualifiedName(k.createIdentifier(Hi(W0)),"createElement")),W0}function YI(n){if(n.localJsxNamespace)return n.localJsxNamespace;let a=n.pragmas.get("jsx");if(a){let c=Do(a)?a[0]:a;if(n.localJsxFactory=_I(c.arguments.factory,ue),rt(n.localJsxFactory,yc,Qd),n.localJsxFactory)return n.localJsxNamespace=Bp(n.localJsxFactory).escapedText}}function yc(n){return gh(n,-1,-1),An(n,yc,void 0)}function oy(n,a){return T7e(n,a),Fe}function $I(n,a,...c){let d=n?Or(n,a,...c):Vl(a,...c),_=ns.lookup(d);return _||(ns.add(d),d)}function o_(n,a,c,...d){let _=qe(a,c,...d);return _.skippedOn=n,_}function pT(n,a,...c){return n?Or(n,a,...c):Vl(a,...c)}function qe(n,a,...c){let d=pT(n,a,...c);return ns.add(d),d}function a_(n,a){n?ns.add(a):uT.add({...a,category:2})}function _u(n,a,c,...d){if(a.pos<0||a.end<0){if(!n)return;let _=Vn(a);a_(n,"message"in c?Qc(_,0,0,c,...d):Ej(_,c));return}a_(n,"message"in c?Or(a,c,...d):Og(Vn(a),a,c))}function B0(n,a,c,...d){let _=qe(n,c,...d);if(a){let y=Or(n,f.Did_you_forget_to_use_await);ka(_,y)}return _}function QI(n,a){let c=Array.isArray(n)?Ke(n,FV):FV(n);return c&&ka(a,Or(c,f.The_declaration_was_marked_as_deprecated_here)),uT.add(a),a}function fb(n){let a=Cd(n);return a&&De(n.declarations)>1?a.flags&64?Et(n.declarations,ay):Jn(n.declarations,ay):!!n.valueDeclaration&&ay(n.valueDeclaration)||De(n.declarations)&&Jn(n.declarations,ay)}function ay(n){return!!(KE(n)&536870912)}function sy(n,a,c){let d=Or(n,f._0_is_deprecated,c);return QI(a,d)}function MP(n,a,c,d){let _=c?Or(n,f.The_signature_0_of_1_is_deprecated,d,c):Or(n,f._0_is_deprecated,d);return QI(a,_)}function Xa(n,a,c){b++;let d=new u(n|33554432,a);return d.links=new ule,d.links.checkFlags=c||0,d}function s_(n,a){let c=Xa(1,n);return c.links.type=a,c}function fT(n,a){let c=Xa(4,n);return c.links.type=a,c}function mT(n){let a=0;return n&2&&(a|=111551),n&1&&(a|=111550),n&4&&(a|=0),n&8&&(a|=900095),n&16&&(a|=110991),n&32&&(a|=899503),n&64&&(a|=788872),n&256&&(a|=899327),n&128&&(a|=899967),n&512&&(a|=110735),n&8192&&(a|=103359),n&32768&&(a|=46015),n&65536&&(a|=78783),n&262144&&(a|=526824),n&524288&&(a|=788968),n&2097152&&(a|=2097152),a}function G0(n,a){a.mergeId||(a.mergeId=lle,lle++),H2[a.mergeId]=n}function _T(n){let a=Xa(n.flags,n.escapedName);return a.declarations=n.declarations?n.declarations.slice():[],a.parent=n.parent,n.valueDeclaration&&(a.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(a.constEnumOnlyModule=!0),n.members&&(a.members=new Map(n.members)),n.exports&&(a.exports=new Map(n.exports)),G0(a,n),a}function cm(n,a,c=!1){if(!(n.flags&mT(a.flags))||(a.flags|n.flags)&67108864){if(a===n)return n;if(!(n.flags&33554432)){let _=Gl(n);if(_===ft)return a;n=_T(_)}a.flags&512&&n.flags&512&&n.constEnumOnlyModule&&!a.constEnumOnlyModule&&(n.constEnumOnlyModule=!1),n.flags|=a.flags,a.valueDeclaration&&VL(n,a.valueDeclaration),Jr(n.declarations,a.declarations),a.members&&(n.members||(n.members=ua()),l_(n.members,a.members,c)),a.exports&&(n.exports||(n.exports=ua()),l_(n.exports,a.exports,c)),c||G0(n,a)}else if(n.flags&1024)n!==at&&qe(a.declarations&&Oo(a.declarations[0]),f.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,Ai(n));else{let _=!!(n.flags&384||a.flags&384),y=!!(n.flags&2||a.flags&2),x=_?f.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:y?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0,L=a.declarations&&Vn(a.declarations[0]),z=n.declarations&&Vn(n.declarations[0]),U=yL(L,V.checkJs),re=yL(z,V.checkJs),be=Ai(a);if(L&&z&&Ts&&!_&&L!==z){let ge=Pg(L.path,z.path)===-1?L:z,Je=ge===L?z:L,vt=mA(Ts,`${ge.path}|${Je.path}`,()=>({firstFile:ge,secondFile:Je,conflictingSymbols:new Map})),Rt=mA(vt.conflictingSymbols,be,()=>({isBlockScoped:y,firstFileLocations:[],secondFileLocations:[]}));U||d(Rt.firstFileLocations,a),re||d(Rt.secondFileLocations,n)}else U||um(a,x,be,n),re||um(n,x,be,a)}return n;function d(_,y){if(y.declarations)for(let x of y.declarations)bf(_,x)}}function um(n,a,c,d){Ke(n.declarations,_=>{tv(_,a,c,d.declarations)})}function tv(n,a,c,d){let _=(c0(n,!1)?Pj(n):Oo(n))||n,y=$I(_,a,c);for(let x of d||et){let L=(c0(x,!1)?Pj(x):Oo(x))||x;if(L===_)continue;y.relatedInformation=y.relatedInformation||[];let z=Or(L,f._0_was_also_declared_here,c),U=Or(L,f.and_here);De(y.relatedInformation)>=5||Et(y.relatedInformation,re=>XC(re,U)===0||XC(re,z)===0)||ka(y,De(y.relatedInformation)?U:z)}}function ZI(n,a){if(!n?.size)return a;if(!a?.size)return n;let c=ua();return l_(c,n),l_(c,a),c}function l_(n,a,c=!1){a.forEach((d,_)=>{let y=n.get(_);n.set(_,y?cm(y,d,c):is(d))})}function X2(n){var a,c,d;let _=n.parent;if(((a=_.symbol.declarations)==null?void 0:a[0])!==_){C.assert(_.symbol.declarations.length>1);return}if(I_(_))l_(Se,_.symbol.exports);else{let y=n.parent.parent.flags&33554432?void 0:f.Invalid_module_name_in_augmentation_module_0_cannot_be_found,x=ov(n,n,y,!0);if(!x)return;if(x=Rp(x),x.flags&1920)if(Et(lm,L=>x===L.symbol)){let L=cm(_.symbol,x,!0);md||(md=new Map),md.set(n.text,L)}else{if((c=x.exports)!=null&&c.get("__export")&&((d=_.symbol.exports)!=null&&d.size)){let L=cge(x,"resolvedExports");for(let[z,U]of Vo(_.symbol.exports.entries()))L.has(z)&&!x.exports.has(z)&&cm(L.get(z),U)}cm(x,_.symbol)}else qe(n,f.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,n.text)}}function yE(n,a,c){a.forEach((_,y)=>{let x=n.get(y);x?Ke(x.declarations,d(Hi(y),c)):n.set(y,_)});function d(_,y){return x=>ns.add(Or(x,y,_))}}function $i(n){if(n.flags&33554432)return n.links;let a=Ta(n);return lT[a]??(lT[a]=new ule)}function ti(n){let a=ss(n);return hE[a]||(hE[a]=new FGe)}function Nh(n){return n.kind===312&&!Fp(n)}function Ud(n,a,c){if(c){let d=is(n.get(a));if(d&&(C.assert((Al(d)&1)===0,"Should never get an instantiated symbol here."),d.flags&c||d.flags&2097152&&Au(d)&c))return d}}function LP(n,a){let c=n.parent,d=n.parent.parent,_=Ud(c.locals,a,111551),y=Ud(Lb(d.symbol),a,111551);return _&&y?[_,y]:C.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function nv(n,a){let c=Vn(n),d=Vn(a),_=_h(n);if(c!==d){if(G&&(c.externalModuleIndicator||d.externalModuleIndicator)||!Ps(V)||xS(a)||n.flags&33554432||x(a,n))return!0;let z=e.getSourceFiles();return z.indexOf(c)<=z.indexOf(d)}if(a.flags&16777216||xS(a)||Vve(a))return!0;if(n.pos<=a.pos&&!(Jo(n)&&NL(a.parent)&&!n.initializer&&!n.exclamationToken)){if(n.kind===208){let z=p0(a,208);return z?zn(z,Qa)!==zn(n,Qa)||n.posZa(z)&&z.parent.parent===n);if(Jo(n))return!L(n,a,!1);if(pp(n,n.parent))return!(ye&&su(n)===su(a)&&x(a,n))}return!0}if(a.parent.kind===281||a.parent.kind===277&&a.parent.isExportEquals||a.kind===277&&a.isExportEquals)return!0;if(x(a,n))return ye&&su(n)&&(Jo(n)||pp(n,n.parent))?!L(n,a,!0):!0;return!1;function y(z,U){switch(z.parent.parent.kind){case 243:case 248:case 250:if(EE(U,z,_))return!0;break}let re=z.parent.parent;return Jx(re)&&EE(U,re.expression,_)}function x(z,U){return!!zn(z,re=>{if(re===_)return"quit";if(ea(re))return!0;if(Il(re))return U.posz.end?!1:zn(U,ge=>{if(ge===z)return"quit";switch(ge.kind){case 219:return!0;case 172:return re&&(Jo(z)&&ge.parent===z.parent||pp(z,z.parent)&&ge.parent===z.parent.parent)?"quit":!0;case 241:switch(ge.parent.kind){case 177:case 174:case 178:return!0;default:return!1}default:return!1}})===void 0}}function kP(n,a,c){let d=as(V),_=a;if(Co(c)&&_.body&&n.valueDeclaration&&n.valueDeclaration.pos>=_.body.pos&&n.valueDeclaration.end<=_.body.end&&d>=2){let L=ti(_);return L.declarationRequiresScopeChange===void 0&&(L.declarationRequiresScopeChange=Ke(_.parameters,y)||!1),!L.declarationRequiresScopeChange}return!1;function y(L){return x(L.name)||!!L.initializer&&x(L.initializer)}function x(L){switch(L.kind){case 219:case 218:case 262:case 176:return!1;case 174:case 177:case 178:case 303:return x(L.name);case 172:return fc(L)?!ye:x(L.name);default:return GV(L)||Hu(L)?d<7:Qa(L)&&L.dotDotDotToken&&om(L.parent)?d<4:qi(L)?!1:Ho(L,x)||!1}}}function mb(n){return pS(n)&&kg(n.type)||RN(n)&&kg(n.typeExpression)}function vl(n,a,c,d,_,y,x=!1,L=!0){return Vp(n,a,c,d,_,y,x,L,Ud)}function Vp(n,a,c,d,_,y,x,L,z){var U,re,be;let ge=n,Je,vt,Rt,sn,un,sr=!1,Ln=n,cn,Fn=!1;e:for(;n;){if(a==="const"&&mb(n))return;if(mL(n)&&vt&&n.name===vt&&(vt=n,n=n.parent),ph(n)&&n.locals&&!Nh(n)&&(Je=z(n.locals,a,c))){let Zn=!0;if(ea(n)&&vt&&vt!==n.body?(c&Je.flags&788968&&vt.kind!==327&&(Zn=Je.flags&262144?vt===n.type||vt.kind===169||vt.kind===348||vt.kind===349||vt.kind===168:!1),c&Je.flags&3&&(kP(Je,n,vt)?Zn=!1:Je.flags&1&&(Zn=vt.kind===169||vt===n.type&&!!zn(Je.valueDeclaration,Co)))):n.kind===194&&(Zn=vt===n.trueType),Zn)break e;Je=void 0}switch(sr=sr||dm(n,vt),n.kind){case 312:if(!Fp(n))break;Fn=!0;case 267:let Zn=((U=Rr(n))==null?void 0:U.exports)||K;if(n.kind===312||Jl(n)&&n.flags&33554432&&!I_(n)){if(Je=Zn.get("default")){let Mo=TR(Je);if(Mo&&Je.flags&c&&Mo.escapedName===a)break e;Je=void 0}let er=Zn.get(a);if(er&&er.flags===2097152&&(dl(er,281)||dl(er,280)))break}if(a!=="default"&&(Je=z(Zn,a,c&2623475)))if(no(n)&&n.commonJsModuleIndicator&&!((re=Je.declarations)!=null&&re.some(Qf)))Je=void 0;else break e;break;case 266:if(Je=z(((be=Rr(n))==null?void 0:be.exports)||K,a,c&8)){d&&im(V)&&!(n.flags&33554432)&&Vn(n)!==Vn(Je.valueDeclaration)&&qe(Ln,f.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,Hi(a),Qe,`${Hi(ff(n).escapedName)}.${Hi(a)}`);break e}break;case 172:if(!sa(n)){let er=av(n.parent);er&&er.locals&&z(er.locals,a,c&111551)&&(C.assertNode(n,Jo),sn=n)}break;case 263:case 231:case 264:if(Je=z(Rr(n).members||K,a,c&788968)){if(!rv(Je,n)){Je=void 0;break}if(vt&&sa(vt)){d&&qe(Ln,f.Static_members_cannot_reference_class_type_parameters);return}break e}if(Zc(n)&&c&32){let er=n.name;if(er&&a===er.escapedText){Je=n.symbol;break e}}break;case 233:if(vt===n.expression&&n.parent.token===96){let er=n.parent.parent;if(pi(er)&&(Je=z(Rr(er).members,a,c&788968))){d&&qe(Ln,f.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 167:if(cn=n.parent.parent,(pi(cn)||cn.kind===264)&&(Je=z(Rr(cn).members,a,c&788968))){d&&qe(Ln,f.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 219:if(as(V)>=2)break;case 174:case 176:case 177:case 178:case 262:if(c&3&&a==="arguments"){Je=Bt;break e}break;case 218:if(c&3&&a==="arguments"){Je=Bt;break e}if(c&16){let er=n.name;if(er&&a===er.escapedText){Je=n.symbol;break e}}break;case 170:n.parent&&n.parent.kind===169&&(n=n.parent),n.parent&&($c(n.parent)||n.parent.kind===263)&&(n=n.parent);break;case 353:case 345:case 347:let Hn=fR(n);Hn&&(n=Hn.parent);break;case 169:vt&&(vt===n.initializer||vt===n.name&&ta(vt))&&(un||(un=n));break;case 208:vt&&(vt===n.initializer||vt===n.name&&ta(vt))&&L1(n)&&!un&&(un=n);break;case 195:if(c&262144){let er=n.typeParameter.name;if(er&&a===er.escapedText){Je=n.typeParameter.symbol;break e}}break;case 281:vt&&vt===n.propertyName&&n.parent.parent.moduleSpecifier&&(n=n.parent.parent.parent);break}_b(n)&&(Rt=n),vt=n,n=am(n)?p3(n)||n.parent:(n_(n)||o5(n))&&u0(n)||n.parent}if(y&&Je&&(!Rt||Je!==Rt.symbol)&&(Je.isReferenced|=c),!Je){if(vt&&(C.assertNode(vt,no),vt.commonJsModuleIndicator&&a==="exports"&&c&vt.symbol.flags))return vt.symbol;x||(Je=z(Se,a,c))}if(!Je&&ge&&cr(ge)&&ge.parent&&Sd(ge.parent,!1))return yt;function kn(){return sn&&!ye?(qe(Ln,Ln&&sn.type&&ZM(sn.type,Ln.pos)?f.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:f.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,Ds(sn.name),Om(_)),!0):!1}if(Je){if(d&&kn())return}else{d&&r(()=>{if(!Ln||Ln.parent.kind!==331&&!bE(Ln,a,_)&&!kn()&&!hT(Ln)&&!ex(Ln,a,c)&&!ly(Ln,a)&&!gT(Ln,a,c)&&!Y2(Ln,a,c)&&!gg(Ln,a,c)){let Zn,Hn;if(_&&(Hn=Opt(_),Hn&&qe(Ln,d,Om(_),Hn)),!Hn&&L&&j2{var Zn;if(Ln&&(c&2||(c&32||c&384)&&(c&111551)===111551)){let Hn=mf(Je);(Hn.flags&2||Hn.flags&32||Hn.flags&384)&&$s(Hn,Ln)}if(Je&&Fn&&(c&111551)===111551&&!(ge.flags&16777216)){let Hn=is(Je);De(Hn.declarations)&&Jn(Hn.declarations,er=>Hk(er)||no(er)&&!!er.symbol.globalExports)&&_u(!V.allowUmdGlobalAccess,Ln,f._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,Hi(a))}if(Je&&un&&!sr&&(c&111551)===111551){let Hn=is(PZ(Je)),er=D_(un);Hn===Rr(un)?qe(Ln,f.Parameter_0_cannot_reference_itself,Ds(un.name)):Hn.valueDeclaration&&Hn.valueDeclaration.pos>un.pos&&er.parent.locals&&z(er.parent.locals,Hn.escapedName,c)===Hn&&qe(Ln,f.Parameter_0_cannot_reference_identifier_1_declared_after_it,Ds(un.name),Ds(Ln))}if(Je&&Ln&&c&111551&&Je.flags&2097152&&!(Je.flags&111551)&&!_0(Ln)){let Hn=wf(Je,111551);if(Hn){let er=Hn.kind===281||Hn.kind===278||Hn.kind===280?f._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:f._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,Mo=Hi(a);_g(qe(Ln,er,Mo),Hn,Mo)}}if(V.isolatedModules&&Je&&Fn&&(c&111551)===111551){let er=z(Se,a,c)===Je&&no(vt)&&vt.locals&&z(vt.locals,a,-111552);if(er){let Mo=(Zn=er.declarations)==null?void 0:Zn.find(Ao=>Ao.kind===276||Ao.kind===273||Ao.kind===274||Ao.kind===271);Mo&&!sL(Mo)&&qe(Mo,f.Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,Hi(a))}}}),Je}function _g(n,a,c){return a?ka(n,Or(a,a.kind===281||a.kind===278||a.kind===280?f._0_was_exported_here:f._0_was_imported_here,c)):n}function dm(n,a){return n.kind!==219&&n.kind!==218?rI(n)||(zs(n)||n.kind===172&&!sa(n))&&(!a||a!==n.name):a&&a===n.name?!1:n.asteriskToken||ei(n,1024)?!0:!vS(n)}function _b(n){switch(n.kind){case 262:case 263:case 264:case 266:case 265:case 267:return!0;default:return!1}}function Om(n){return wo(n)?Hi(n):Ds(n)}function rv(n,a){if(n.declarations){for(let c of n.declarations)if(c.kind===168&&(am(c.parent)?SS(c.parent):c.parent)===a)return!(am(c.parent)&&vn(c.parent.parent.tags,Qf))}return!1}function bE(n,a,c){if(!Ve(n)||n.escapedText!==a||A7e(n)||xS(n))return!1;let d=wd(n,!1,!1),_=d;for(;_;){if(pi(_.parent)){let y=Rr(_.parent);if(!y)break;let x=pr(y);if(ba(x,a))return qe(n,f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,Om(c),Ai(y)),!0;if(_===d&&!sa(_)){let L=Qs(y).thisType;if(ba(L,a))return qe(n,f.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,Om(c)),!0}}_=_.parent}return!1}function hT(n){let a=hg(n);return a&&Us(a,64,!0)?(qe(n,f.Cannot_extend_an_interface_0_Did_you_mean_implements,pc(a)),!0):!1}function hg(n){switch(n.kind){case 80:case 211:return n.parent?hg(n.parent):void 0;case 233:if(zl(n.expression))return n.expression;default:return}}function ex(n,a,c){let d=1920|(cr(n)?111551:0);if(c===d){let _=Gl(vl(n,a,788968&~d,void 0,void 0,!1)),y=n.parent;if(_){if(Ad(y)){C.assert(y.left===n,"Should only be resolving left side of qualified name as a namespace");let x=y.right.escapedText;if(ba(Qs(_),x))return qe(y,f.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,Hi(a),Hi(x)),!0}return qe(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,Hi(a)),!0}}return!1}function gg(n,a,c){if(c&788584){let d=Gl(vl(n,a,111127,void 0,void 0,!1));if(d&&!(d.flags&1920))return qe(n,f._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Hi(a)),!0}return!1}function H_(n){return n==="any"||n==="string"||n==="number"||n==="boolean"||n==="never"||n==="unknown"}function ly(n,a){return H_(a)&&n.parent.kind===281?(qe(n,f.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,a),!0):!1}function Y2(n,a,c){if(c&111551){if(H_(a)){let y=n.parent.parent;if(y&&y.parent&&ef(y)){let x=y.token,L=y.parent.kind;L===264&&x===96?qe(n,f.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,Hi(a)):L===263&&x===96?qe(n,f.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,Hi(a)):L===263&&x===119&&qe(n,f.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,Hi(a))}else qe(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,Hi(a));return!0}let d=Gl(vl(n,a,788544,void 0,void 0,!1)),_=d&&Au(d);if(d&&_!==void 0&&!(_&111551)){let y=Hi(a);return Q2(a)?qe(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,y):$2(n,d)?qe(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,y,y==="K"?"P":"K"):qe(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,y),!0}}return!1}function $2(n,a){let c=zn(n.parent,d=>Za(d)||gp(d)?!1:yp(d)||"quit");if(c&&c.members.length===1){let d=Qs(a);return!!(d.flags&1048576)&&pB(d,384,!0)}return!1}function Q2(n){switch(n){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function gT(n,a,c){if(c&111127){if(Gl(vl(n,a,1024,void 0,void 0,!1)))return qe(n,f.Cannot_use_namespace_0_as_a_value,Hi(a)),!0}else if(c&788544&&Gl(vl(n,a,1536,void 0,void 0,!1)))return qe(n,f.Cannot_use_namespace_0_as_a_type,Hi(a)),!0;return!1}function $s(n,a){var c;if(C.assert(!!(n.flags&2||n.flags&32||n.flags&384)),n.flags&67108881&&n.flags&32)return;let d=(c=n.declarations)==null?void 0:c.find(_=>uj(_)||pi(_)||_.kind===266);if(d===void 0)return C.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(d.flags&33554432)&&!nv(d,a)){let _,y=Ds(Oo(d));n.flags&2?_=qe(a,f.Block_scoped_variable_0_used_before_its_declaration,y):n.flags&32?_=qe(a,f.Class_0_used_before_its_declaration,y):n.flags&256?_=qe(a,f.Enum_0_used_before_its_declaration,y):(C.assert(!!(n.flags&128)),im(V)&&(_=qe(a,f.Enum_0_used_before_its_declaration,y))),_&&ka(_,Or(d,f._0_is_declared_here,y))}}function EE(n,a,c){return!!a&&!!zn(n,d=>d===a||(d===c||ea(d)&&(!vS(d)||Gc(d)&3)?"quit":!1))}function vT(n){switch(n.kind){case 271:return n;case 273:return n.parent;case 274:return n.parent.parent;case 276:return n.parent.parent.parent;default:return}}function Fm(n){return n.declarations&&Qr(n.declarations,hb)}function hb(n){return n.kind===271||n.kind===270||n.kind===273&&!!n.name||n.kind===274||n.kind===280||n.kind===276||n.kind===281||n.kind===277&&mR(n)||_r(n)&&Wl(n)===2&&mR(n)||ks(n)&&_r(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64&&Z2(n.parent.right)||n.kind===304||n.kind===303&&Z2(n.initializer)||n.kind===260&&C1(n)||n.kind===208&&C1(n.parent.parent)}function Z2(n){return $L(n)||ws(n)&&th(n)}function yT(n,a){let c=vb(n);if(c){let _=IR(c.expression).arguments[0];return Ve(c.name)?Gl(ba(pOe(_),c.name.escapedText)):void 0}if(Oi(n)||n.moduleReference.kind===283){let _=_d(n,Dj(n)||RC(n)),y=Rp(_);return ap(n,_,y,!1),y}let d=nx(n.moduleReference,a);return wP(n,d),d}function wP(n,a){if(ap(n,void 0,a,!1)&&!n.isTypeOnly){let c=wf(Rr(n)),d=c.kind===281||c.kind===278,_=d?f.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:f.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,y=d?f._0_was_exported_here:f._0_was_imported_here,x=c.kind===278?"*":Hi(c.name.escapedText);ka(qe(n.moduleReference,_),Or(c,y,x))}}function vr(n,a,c,d){let _=n.exports.get("export="),y=_?ba(pr(_),a,!0):n.exports.get(a),x=Gl(y,d);return ap(c,y,x,!1),x}function ru(n){return Ll(n)&&!n.isExportEquals||ei(n,2048)||Ju(n)||Sh(n)}function io(n){return us(n)?e.getModeForUsageLocation(Vn(n),n):void 0}function pf(n,a){return n===99&&a===1}function cy(n){return io(n)===99&&Sl(n.text,".json")}function q_(n,a,c,d){let _=n&&io(d);if(n&&_!==void 0&&100<=G&&G<=199){let y=pf(_,n.impliedNodeFormat);if(_===99||y)return y}if(!$)return!1;if(!n||n.isDeclarationFile){let y=vr(a,"default",void 0,!0);return!(y&&Et(y.declarations,ru)||vr(a,ml("__esModule"),void 0,c))}return ld(n)?typeof n.externalModuleIndicator!="object"&&!vr(a,ml("__esModule"),void 0,c):uy(a)}function dr(n,a){let c=_d(n,n.parent.moduleSpecifier);if(c)return bT(c,n,a)}function bT(n,a,c){var d;let _;SC(n)?_=n:_=vr(n,"default",a,c);let y=(d=n.declarations)==null?void 0:d.find(no),x=V0(a);if(!x)return _;let L=cy(x),z=q_(y,n,c,x);if(!_&&!z&&!L)if(uy(n)&&!$){let U=G>=5?"allowSyntheticDefaultImports":"esModuleInterop",be=n.exports.get("export=").valueDeclaration,ge=qe(a.name,f.Module_0_can_only_be_default_imported_using_the_1_flag,Ai(n),U);be&&ka(ge,Or(be,f.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,U))}else Eh(a)?Jc(n,a):ET(n,n,a,IA(a)&&a.propertyName||a.name);else if(z||L){let U=Rp(n,c)||Gl(n,c);return ap(a,n,U,!1),U}return ap(a,_,void 0,!1),_}function V0(n){switch(n.kind){case 273:return n.parent.moduleSpecifier;case 271:return Th(n.moduleReference)?n.moduleReference.expression:void 0;case 274:return n.parent.parent.moduleSpecifier;case 276:return n.parent.parent.parent.moduleSpecifier;case 281:return n.parent.parent.moduleSpecifier;default:return C.assertNever(n)}}function Jc(n,a){var c,d,_;if((c=n.exports)!=null&&c.has(a.symbol.escapedName))qe(a.name,f.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,Ai(n),Ai(a.symbol));else{let y=qe(a.name,f.Module_0_has_no_default_export,Ai(n)),x=(d=n.exports)==null?void 0:d.get("__export");if(x){let L=(_=x.declarations)==null?void 0:_.find(z=>{var U,re;return!!(Kl(z)&&z.moduleSpecifier&&((re=(U=_d(z,z.moduleSpecifier))==null?void 0:U.exports)!=null&&re.has("default")))});L&&ka(y,Or(L,f.export_Asterisk_does_not_re_export_a_default))}}}function Ph(n,a){let c=n.parent.parent.moduleSpecifier,d=_d(n,c),_=sp(d,c,a,!1);return ap(n,d,_,!1),_}function Wm(n,a){let c=n.parent.moduleSpecifier,d=c&&_d(n,c),_=c&&sp(d,c,a,!1);return ap(n,d,_,!1),_}function SE(n,a){if(n===ft&&a===ft)return ft;if(n.flags&790504)return n;let c=Xa(n.flags|a.flags,n.escapedName);return C.assert(n.declarations||a.declarations),c.declarations=h1(xo(n.declarations,a.declarations),Cv),c.parent=n.parent||a.parent,n.valueDeclaration&&(c.valueDeclaration=n.valueDeclaration),a.members&&(c.members=new Map(a.members)),n.exports&&(c.exports=new Map(n.exports)),c}function TE(n,a,c,d){var _;if(n.flags&1536){let y=Dp(n).get(a.escapedText),x=Gl(y,d),L=(_=$i(n).typeOnlyExportStarMap)==null?void 0:_.get(a.escapedText);return ap(c,y,x,!1,L,a.escapedText),x}}function gb(n,a){if(n.flags&3){let c=n.valueDeclaration.type;if(c)return Gl(ba(Ii(c),a))}}function iv(n,a,c=!1){var d;let _=Dj(n)||n.moduleSpecifier,y=_d(n,_),x=!zr(a)&&a.propertyName||a.name;if(!Ve(x))return;let L=x.escapedText==="default"&&$,z=sp(y,_,!1,L);if(z&&x.escapedText){if(SC(y))return y;let U;y&&y.exports&&y.exports.get("export=")?U=ba(pr(z),x.escapedText,!0):U=gb(z,x.escapedText),U=Gl(U,c);let re=TE(z,x,a,c);if(re===void 0&&x.escapedText==="default"){let ge=(d=y.declarations)==null?void 0:d.find(no);(cy(_)||q_(ge,y,c,_))&&(re=Rp(y,c)||Gl(y,c))}let be=re&&U&&re!==U?SE(U,re):re||U;return be||ET(y,z,n,x),be}}function ET(n,a,c,d){var _;let y=Up(n,c),x=Ds(d),L=Gee(d,a);if(L!==void 0){let z=Ai(L),U=qe(d,f._0_has_no_exported_member_named_1_Did_you_mean_2,y,x,z);L.valueDeclaration&&ka(U,Or(L.valueDeclaration,f._0_is_declared_here,z))}else(_=n.exports)!=null&&_.has("default")?qe(d,f.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,y,x):zm(c,d,x,n,y)}function zm(n,a,c,d,_){var y,x;let L=(x=(y=ai(d.valueDeclaration,ph))==null?void 0:y.locals)==null?void 0:x.get(a.escapedText),z=d.exports;if(L){let U=z?.get("export=");if(U)c_(U,L)?j0(n,a,c,_):qe(a,f.Module_0_has_no_exported_member_1,_,c);else{let re=z?vn(Ige(z),ge=>!!c_(ge,L)):void 0,be=re?qe(a,f.Module_0_declares_1_locally_but_it_is_exported_as_2,_,c,Ai(re)):qe(a,f.Module_0_declares_1_locally_but_it_is_not_exported,_,c);L.declarations&&ka(be,...Ft(L.declarations,(ge,Je)=>Or(ge,Je===0?f._0_is_declared_here:f.and_here,c)))}}else qe(a,f.Module_0_has_no_exported_member_1,_,c)}function j0(n,a,c,d){if(G>=5){let _=vh(V)?f._0_can_only_be_imported_by_using_a_default_import:f._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;qe(a,_,c)}else if(cr(n)){let _=vh(V)?f._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:f._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;qe(a,_,c)}else{let _=vh(V)?f._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:f._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;qe(a,_,c,c,d)}}function vg(n,a){if(tp(n)&&Sr(n.propertyName||n.name)==="default"){let x=V0(n),L=x&&_d(n,x);if(L)return bT(L,n,a)}let c=Qa(n)?D_(n):n.parent.parent.parent,d=vb(c),_=iv(c,d||n,a),y=n.propertyName||n.name;return d&&_&&Ve(y)?Gl(ba(pr(_),y.escapedText),a):(ap(n,void 0,_,!1),_)}function vb(n){if(Oi(n)&&n.initializer&&zr(n.initializer))return n.initializer}function tx(n,a){if(A_(n.parent)){let c=Rp(n.parent.symbol,a);return ap(n,void 0,c,!1),c}}function U0(n,a,c){if(Sr(n.propertyName||n.name)==="default"){let _=V0(n),y=_&&_d(n,_);if(y)return bT(y,n,!!c)}let d=n.parent.parent.moduleSpecifier?iv(n.parent.parent,n,c):Us(n.propertyName||n.name,a,!1,c);return ap(n,void 0,d,!1),d}function eD(n,a){let c=Ll(n)?n.expression:n.right,d=AE(c,a);return ap(n,void 0,d,!1),d}function AE(n,a){if(Zc(n))return ec(n).symbol;if(!Qd(n)&&!zl(n))return;let c=Us(n,901119,!0,a);return c||(ec(n),ti(n).resolvedSymbol)}function ST(n,a){if(_r(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64)return AE(n.parent.right,a)}function jp(n,a=!1){switch(n.kind){case 271:case 260:return yT(n,a);case 273:return dr(n,a);case 274:return Ph(n,a);case 280:return Wm(n,a);case 276:case 208:return vg(n,a);case 281:return U0(n,901119,a);case 277:case 226:return eD(n,a);case 270:return tx(n,a);case 304:return Us(n.name,901119,!0,a);case 303:return AE(n.initializer,a);case 212:case 211:return ST(n,a);default:return C.fail()}}function TT(n,a=901119){return n?(n.flags&(2097152|a))===2097152||!!(n.flags&2097152&&n.flags&67108864):!1}function Gl(n,a){return!a&&TT(n)?Fc(n):n}function Fc(n){C.assert((n.flags&2097152)!==0,"Should only get Alias here.");let a=$i(n);if(a.aliasTarget)a.aliasTarget===Nt&&(a.aliasTarget=ft);else{a.aliasTarget=Nt;let c=Fm(n);if(!c)return C.fail();let d=jp(c);a.aliasTarget===Nt?a.aliasTarget=d||ft:qe(c,f.Circular_definition_of_import_alias_0,Ai(n))}return a.aliasTarget}function AT(n){if($i(n).aliasTarget!==Nt)return Fc(n)}function Au(n,a,c){let d=a&&wf(n),_=d&&Kl(d),y=d&&(_?_d(d.moduleSpecifier,d.moduleSpecifier,!0):Fc(d.symbol)),x=_&&y?Mh(y):void 0,L=c?0:n.flags,z;for(;n.flags&2097152;){let U=mf(Fc(n));if(!_&&U===y||x?.get(U.escapedName)===U)break;if(U===ft)return-1;if(U===n||z?.has(U))break;U.flags&2097152&&(z?z.add(U):z=new Set([n,U])),L|=U.flags,n=U}return L}function ap(n,a,c,d,_,y){if(!n||zr(n))return!1;let x=Rr(n);if(a0(n)){let z=$i(x);return z.typeOnlyDeclaration=n,!0}if(_){let z=$i(x);return z.typeOnlyDeclaration=_,x.escapedName!==y&&(z.typeOnlyExportStarName=y),!0}let L=$i(x);return H0(L,a,d)||H0(L,c,d)}function H0(n,a,c){var d;if(a&&(n.typeOnlyDeclaration===void 0||c&&n.typeOnlyDeclaration===!1)){let _=((d=a.exports)==null?void 0:d.get("export="))??a,y=_.declarations&&vn(_.declarations,a0);n.typeOnlyDeclaration=y??$i(_).typeOnlyDeclaration??!1}return!!n.typeOnlyDeclaration}function wf(n,a){if(!(n.flags&2097152))return;let c=$i(n);if(a===void 0)return c.typeOnlyDeclaration||void 0;if(c.typeOnlyDeclaration){let d=c.typeOnlyDeclaration.kind===278?Gl(Mh(c.typeOnlyDeclaration.symbol.parent).get(c.typeOnlyExportStarName||n.escapedName)):Fc(c.typeOnlyDeclaration.symbol);return Au(d)&a?c.typeOnlyDeclaration:void 0}}function yb(n){if(!gt)return;let a=Rr(n),c=Fc(a);c&&(c===ft||Au(a,!0)&111551&&!r8(c))&&bb(a)}function bb(n){C.assert(gt);let a=$i(n);if(!a.referenced){a.referenced=!0;let c=Fm(n);if(!c)return C.fail();sR(c)&&Au(Gl(n))&111551&&ec(c.moduleReference)}}function iu(n){let a=$i(n);a.constEnumReferenced||(a.constEnumReferenced=!0)}function nx(n,a){return n.kind===80&&jC(n)&&(n=n.parent),n.kind===80||n.parent.kind===166?Us(n,1920,!1,a):(C.assert(n.parent.kind===271),Us(n,901119,!1,a))}function Up(n,a){return n.parent?Up(n.parent,a)+"."+Ai(n):Ai(n,a,void 0,36)}function IT(n){for(;Ad(n.parent);)n=n.parent;return n}function xT(n){let a=Bp(n),c=vl(a,a.escapedText,111551,void 0,a,!0);if(c){for(;Ad(a.parent);){let d=pr(c);if(c=ba(d,a.parent.right.escapedText),!c)return;a=a.parent}return c}}function Us(n,a,c,d,_){if(Fl(n))return;let y=1920|(cr(n)?a&111551:0),x;if(n.kind===80){let L=a===y||Xs(n)?f.Cannot_find_namespace_0:o8e(Bp(n)),z=cr(n)&&!Xs(n)?tD(n,a):void 0;if(x=is(vl(_||n,n.escapedText,a,c||z?void 0:L,n,!0,!1)),!x)return is(z)}else if(n.kind===166||n.kind===211){let L=n.kind===166?n.left:n.expression,z=n.kind===166?n.right:n.name,U=Us(L,y,c,!1,_);if(!U||Fl(z))return;if(U===ft)return U;if(U.valueDeclaration&&cr(U.valueDeclaration)&&dd(V)!==100&&Oi(U.valueDeclaration)&&U.valueDeclaration.initializer&&j6e(U.valueDeclaration.initializer)){let re=U.valueDeclaration.initializer.arguments[0],be=_d(re,re);if(be){let ge=Rp(be);ge&&(U=ge)}}if(x=is(Ud(Dp(U),z.escapedText,a)),!x&&U.flags&2097152&&(x=is(Ud(Dp(Fc(U)),z.escapedText,a))),!x){if(!c){let re=Up(U),be=Ds(z),ge=Gee(z,U);if(ge){qe(z,f._0_has_no_exported_member_named_1_Did_you_mean_2,re,be,Ai(ge));return}let Je=Ad(n)&&IT(n);if(Pe&&a&788968&&Je&&!zR(Je.parent)&&xT(Je)){qe(Je,f._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,fp(Je));return}if(a&1920&&Ad(n.parent)){let Rt=is(Ud(Dp(U),z.escapedText,788968));if(Rt){qe(n.parent.right,f.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,Ai(Rt),Hi(n.parent.right.escapedText));return}}qe(z,f.Namespace_0_has_no_exported_member_1,re,be)}return}}else C.assertNever(n,"Unknown entity name kind.");return C.assert((Al(x)&1)===0,"Should never get an instantiated symbol here."),!Xs(n)&&Qd(n)&&(x.flags&2097152||n.parent.kind===277)&&ap(Bj(n),x,void 0,!0),x.flags&a||d?x:Fc(x)}function tD(n,a){if(VZ(n.parent)){let c=q0(n.parent);if(c)return vl(c,n.escapedText,a,void 0,n,!0)}}function q0(n){if(zn(n,_=>Kx(_)||_.flags&16777216?Qf(_):"quit"))return;let c=SS(n);if(c&&eu(c)&&GL(c.expression)){let _=Rr(c.expression.left);if(_)return IE(_)}if(c&&ws(c)&&GL(c.parent)&&eu(c.parent.parent)){let _=Rr(c.parent.left);if(_)return IE(_)}if(c&&(Im(c)||_c(c))&&_r(c.parent.parent)&&Wl(c.parent.parent)===6){let _=Rr(c.parent.parent.left);if(_)return IE(_)}let d=d0(n);if(d&&ea(d)){let _=Rr(d);return _&&_.valueDeclaration}}function IE(n){let a=n.parent.valueDeclaration;return a?(DC(a)?PA(a):fS(a)?OL(a):void 0)||a:void 0}function OP(n){let a=n.valueDeclaration;if(!a||!cr(a)||n.flags&524288||c0(a,!1))return;let c=Oi(a)?OL(a):PA(a);if(c){let d=ff(c);if(d)return kye(d,n)}}function _d(n,a,c){let _=dd(V)===1?f.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:f.Cannot_find_module_0_or_its_corresponding_type_declarations;return ov(n,a,c?void 0:_)}function ov(n,a,c,d=!1){return us(a)?J_(n,a.text,c,a,d):void 0}function J_(n,a,c,d,_=!1){var y,x,L,z,U,re,be,ge,Je,vt,Rt;if(uo(a,"@types/")){let er=f.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,Mo=ZD(a,"@types/");qe(d,er,Mo,a)}let sn=kZ(a,!0);if(sn)return sn;let un=Vn(n),sr=us(n)?n:((y=Jl(n)?n:n.parent&&Jl(n.parent)&&n.parent.name===n?n.parent:void 0)==null?void 0:y.name)||((x=zy(n)?n:void 0)==null?void 0:x.argument.literal)||(Oi(n)&&n.initializer&&Sd(n.initializer,!0)?n.initializer.arguments[0]:void 0)||((L=zn(n,Wp))==null?void 0:L.arguments[0])||((z=zn(n,Lc))==null?void 0:z.moduleSpecifier)||((U=zn(n,l0))==null?void 0:U.moduleReference.expression)||((re=zn(n,Kl))==null?void 0:re.moduleSpecifier),Ln=sr&&us(sr)?e.getModeForUsageLocation(un,sr):un.impliedNodeFormat,cn=dd(V),Fn=(be=e.getResolvedModule(un,a,Ln))==null?void 0:be.resolvedModule,kn=Fn&&OJ(V,Fn,un),Zn=Fn&&(!kn||kn===f.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(Fn.resolvedFileName);if(Zn){if(kn&&qe(d,kn,a,Fn.resolvedFileName),Fn.resolvedUsingTsExtension&&Su(a)){let er=((ge=zn(n,Lc))==null?void 0:ge.importClause)||zn(n,Xm(tu,Kl));(er&&!er.isTypeOnly||zn(n,Wp))&&qe(d,f.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,Hn(C.checkDefined(C3(a))))}else if(Fn.resolvedUsingTsExtension&&!i2(V,un.fileName)){let er=((Je=zn(n,Lc))==null?void 0:Je.importClause)||zn(n,Xm(tu,Kl));if(!(er?.isTypeOnly||zn(n,lg))){let Mo=C.checkDefined(C3(a));qe(d,f.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,Mo)}}if(Zn.symbol){if(Fn.isExternalLibraryImport&&!QC(Fn.extension)&&rx(!1,d,un,Ln,Fn,a),cn===3||cn===99){let er=un.impliedNodeFormat===1&&!zn(n,Wp)||!!zn(n,tu),Mo=zn(n,Ao=>lg(Ao)||Kl(Ao)||Lc(Ao));if(er&&Zn.impliedNodeFormat===99&&!$oe(Mo))if(zn(n,tu))qe(d,f.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead,a);else{let Ao,jo=Gg(un.fileName);if(jo===".ts"||jo===".js"||jo===".tsx"||jo===".jsx"){let vo=un.packageJsonScope,Dc=jo===".ts"?".mts":jo===".js"?".mjs":void 0;vo&&!vo.contents.packageJsonContent.type?Dc?Ao=Uo(void 0,f.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,Dc,Zr(vo.packageDirectory,"package.json")):Ao=Uo(void 0,f.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,Zr(vo.packageDirectory,"package.json")):Dc?Ao=Uo(void 0,f.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,Dc):Ao=Uo(void 0,f.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}ns.add(Og(Vn(d),d,Uo(Ao,f.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead,a)))}}return is(Zn.symbol)}c&&qe(d,f.File_0_is_not_a_module,Zn.fileName);return}if(lm){let er=uG(lm,Mo=>Mo.pattern,a);if(er){let Mo=md&&md.get(a);return is(Mo||er.symbol)}}if(Fn&&!QC(Fn.extension)&&kn===void 0||kn===f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(_){let er=f.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;qe(d,er,a,Fn.resolvedFileName)}else rx(me&&!!c,d,un,Ln,Fn,a);return}if(c){if(Fn){let er=e.getProjectReferenceRedirect(Fn.resolvedFileName);if(er){qe(d,f.Output_file_0_has_not_been_built_from_source_file_1,er,Fn.resolvedFileName);return}}if(kn)qe(d,kn,a,Fn.resolvedFileName);else{let er=wp(a)&&!EA(a),Mo=cn===3||cn===99;if(!h0(V)&&Tl(a,".json")&&cn!==1&&z3(V))qe(d,f.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,a);else if(Ln===99&&Mo&&er){let Ao=bo(a,li(un.path)),jo=(vt=K2.find(([vo,Dc])=>e.fileExists(Ao+vo)))==null?void 0:vt[1];jo?qe(d,f.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,a+jo):qe(d,f.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else if((Rt=e.getResolvedModule(un,a,Ln))!=null&&Rt.alternateResult){let Ao=k6(un,e,a,Ln,a);_u(!0,d,Uo(Ao,c,a))}else qe(d,c,a)}}return;function Hn(er){let Mo=_k(a,er);if(W3(G)||Ln===99){let Ao=Su(a)&&i2(V);return Mo+(er===".mts"||er===".d.mts"?Ao?".mts":".mjs":er===".cts"||er===".d.mts"?Ao?".cts":".cjs":Ao?".ts":".js")}return Mo}}function rx(n,a,c,d,{packageId:_,resolvedFileName:y},x){let L;!Yc(x)&&_&&(L=k6(c,e,x,d,_.name)),_u(n,a,Uo(L,f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,x,y))}function Rp(n,a){if(n?.exports){let c=Gl(n.exports.get("export="),a),d=ix(is(c),is(n));return is(d)||n}}function ix(n,a){if(!n||n===ft||n===a||a.exports.size===1||n.flags&2097152)return n;let c=$i(n);if(c.cjsExportMerged)return c.cjsExportMerged;let d=n.flags&33554432?n:_T(n);return d.flags=d.flags|512,d.exports===void 0&&(d.exports=ua()),a.exports.forEach((_,y)=>{y!=="export="&&d.exports.set(y,d.exports.has(y)?cm(d.exports.get(y),_):_)}),d===n&&($i(d).resolvedExports=void 0,$i(d).resolvedMembers=void 0),$i(d).cjsExportMerged=d,c.cjsExportMerged=d}function sp(n,a,c,d){var _;let y=Rp(n,c);if(!c&&y){if(!d&&!(y.flags&1539)&&!dl(y,312)){let L=G>=5?"allowSyntheticDefaultImports":"esModuleInterop";return qe(a,f.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,L),y}let x=a.parent;if(Lc(x)&&dR(x)||Wp(x)){let L=Wp(x)?x.arguments[0]:x.moduleSpecifier,z=pr(y),U=G6e(z,y,n,L);if(U)return ox(y,U,x);let re=(_=n?.declarations)==null?void 0:_.find(no),be=re&&pf(io(L),re.impliedNodeFormat);if(vh(V)||be){let ge=hz(z,0);if((!ge||!ge.length)&&(ge=hz(z,1)),ge&&ge.length||ba(z,"default",!0)||be){let Je=z.flags&3670016?V6e(z,y,n,L):wye(y,y.parent);return ox(y,Je,x)}}}}return y}function ox(n,a,c){let d=Xa(n.flags,n.escapedName);d.declarations=n.declarations?n.declarations.slice():[],d.parent=n.parent,d.links.target=n,d.links.originatingImport=c,n.valueDeclaration&&(d.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(d.constEnumOnlyModule=!0),n.members&&(d.members=new Map(n.members)),n.exports&&(d.exports=new Map(n.exports));let _=m_(a);return d.links.type=Ls(d,_.members,et,et,_.indexInfos),d}function uy(n){return n.exports.get("export=")!==void 0}function RT(n){return Ige(Mh(n))}function nD(n){let a=RT(n),c=Rp(n);if(c!==n){let d=pr(c);Eb(d)&&Jr(a,ys(d))}return a}function rD(n,a){Mh(n).forEach((_,y)=>{DE(y)||a(_,y)});let d=Rp(n);if(d!==n){let _=pr(d);Eb(_)&&ost(_,(y,x)=>{a(y,x)})}}function DT(n,a){let c=Mh(a);if(c)return c.get(n)}function iD(n,a){let c=DT(n,a);if(c)return c;let d=Rp(a);if(d===a)return;let _=pr(d);return Eb(_)?ba(_,n):void 0}function Eb(n){return!(n.flags&402784252||Wr(n)&1||jf(n)||Wa(n))}function Dp(n){return n.flags&6256?cge(n,"resolvedExports"):n.flags&1536?Mh(n):n.exports||K}function Mh(n){let a=$i(n);if(!a.resolvedExports){let{exports:c,typeOnlyExportStarMap:d}=CT(n);a.resolvedExports=c,a.typeOnlyExportStarMap=d}return a.resolvedExports}function oD(n,a,c,d){a&&a.forEach((_,y)=>{if(y==="default")return;let x=n.get(y);if(!x)n.set(y,_),c&&d&&c.set(y,{specifierText:pc(d.moduleSpecifier)});else if(c&&d&&x&&Gl(x)!==Gl(_)){let L=c.get(y);L.exportsWithDuplicate?L.exportsWithDuplicate.push(d):L.exportsWithDuplicate=[d]}})}function CT(n){let a=[],c,d=new Set;n=Rp(n);let _=y(n)||K;return c&&d.forEach(x=>c.delete(x)),{exports:_,typeOnlyExportStarMap:c};function y(x,L,z){if(!z&&x?.exports&&x.exports.forEach((be,ge)=>d.add(ge)),!(x&&x.exports&&bf(a,x)))return;let U=new Map(x.exports),re=x.exports.get("__export");if(re){let be=ua(),ge=new Map;if(re.declarations)for(let Je of re.declarations){let vt=_d(Je,Je.moduleSpecifier),Rt=y(vt,Je,z||Je.isTypeOnly);oD(be,Rt,ge,Je)}ge.forEach(({exportsWithDuplicate:Je},vt)=>{if(!(vt==="export="||!(Je&&Je.length)||U.has(vt)))for(let Rt of Je)ns.add(Or(Rt,f.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,ge.get(vt).specifierText,Hi(vt)))}),oD(U,be)}return L?.isTypeOnly&&(c??(c=new Map),U.forEach((be,ge)=>c.set(ge,L))),U}}function is(n){let a;return n&&n.mergeId&&(a=H2[n.mergeId])?a:n}function Rr(n){return is(n.symbol&&PZ(n.symbol))}function ff(n){return A_(n)?Rr(n):void 0}function Cd(n){return is(n.parent&&PZ(n.parent))}function xE(n){var a,c;return(((a=n.valueDeclaration)==null?void 0:a.kind)===219||((c=n.valueDeclaration)==null?void 0:c.kind)===218)&&ff(n.valueDeclaration.parent)||n}function aD(n,a){let c=Vn(a),d=ss(c),_=$i(n),y;if(_.extendedContainersByFile&&(y=_.extendedContainersByFile.get(d)))return y;if(c&&c.imports){for(let L of c.imports){if(Xs(L))continue;let z=_d(a,L,!0);!z||!yg(z,n)||(y=In(y,z))}if(De(y))return(_.extendedContainersByFile||(_.extendedContainersByFile=new Map)).set(d,y),y}if(_.extendedContainers)return _.extendedContainers;let x=e.getSourceFiles();for(let L of x){if(!ac(L))continue;let z=Rr(L);yg(z,n)&&(y=In(y,z))}return _.extendedContainers=y||et}function J0(n,a,c){let d=Cd(n);if(d&&!(n.flags&262144))return z(d);let _=Vi(n.declarations,re=>{if(!Lu(re)&&re.parent){if(Zu(re.parent))return Rr(re.parent);if(k_(re.parent)&&re.parent.parent&&Rp(Rr(re.parent.parent))===n)return Rr(re.parent.parent)}if(Zc(re)&&_r(re.parent)&&re.parent.operatorToken.kind===64&&ks(re.parent.left)&&zl(re.parent.left.expression))return tg(re.parent.left)||yS(re.parent.left.expression)?Rr(Vn(re)):(ec(re.parent.left.expression),ti(re.parent.left.expression).resolvedSymbol)});if(!De(_))return;let y=Vi(_,re=>yg(re,n)?re:void 0),x=[],L=[];for(let re of y){let[be,...ge]=z(re);x=In(x,be),L=Jr(L,ge)}return xo(x,L);function z(re){let be=Vi(re.declarations,U),ge=a&&aD(n,a),Je=RE(re,c);if(a&&re.flags&sv(c)&&Sb(re,a,1920,!1))return In(xo(xo([re],be),ge),Je);let vt=!(re.flags&sv(c))&&re.flags&788968&&Qs(re).flags&524288&&c===111551?NE(a,sn=>Bc(sn,un=>{if(un.flags&sv(c)&&pr(un)===Qs(re))return un})):void 0,Rt=vt?[vt,...be,re]:[...be,re];return Rt=In(Rt,Je),Rt=Jr(Rt,ge),Rt}function U(re){return d&&NT(re,d)}}function RE(n,a){let c=!!De(n.declarations)&&Ha(n.declarations);if(a&111551&&c&&c.parent&&Oi(c.parent)&&(wa(c)&&c===c.parent.initializer||yp(c)&&c===c.parent.type))return Rr(c.parent)}function NT(n,a){let c=oo(n),d=c&&c.exports&&c.exports.get("export=");return d&&c_(d,a)?c:void 0}function yg(n,a){if(n===Cd(a))return a;let c=n.exports&&n.exports.get("export=");if(c&&c_(c,a))return n;let d=Dp(n),_=d.get(a.escapedName);return _&&c_(_,a)?_:Bc(d,y=>{if(c_(y,a))return y})}function c_(n,a){if(is(Gl(is(n)))===is(Gl(is(a))))return n}function mf(n){return is(n&&(n.flags&1048576)!==0&&n.exportSymbol||n)}function Bm(n,a){return!!(n.flags&111551||n.flags&2097152&&Au(n,!a)&111551)}function av(n){let a=n.members;for(let c of a)if(c.kind===176&&Xf(c.body))return c}function bg(n){var a;let c=new p(Qt,n);return m++,c.id=m,(a=lr)==null||a.recordType(c),c}function Eg(n,a){let c=bg(n);return c.symbol=a,c}function ax(n){return new p(Qt,n)}function lc(n,a,c=0,d){sD(a,d);let _=bg(n);return _.intrinsicName=a,_.debugIntrinsicName=d,_.objectFlags=c|524288|2097152|33554432|16777216,_}function sD(n,a){let c=`${n},${a??""}`;pt.has(c)&&C.fail(`Duplicate intrinsic type name ${n}${a?` (${a})`:""}; you may need to pass a name to createIntrinsicType.`),pt.add(c)}function Of(n,a){let c=Eg(524288,a);return c.objectFlags=n,c.members=void 0,c.properties=void 0,c.callSignatures=void 0,c.constructSignatures=void 0,c.indexInfos=void 0,c}function Lh(){return ii(Vo(zq.keys(),qd))}function _f(n){return Eg(262144,n)}function DE(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)!==95&&n.charCodeAt(2)!==64&&n.charCodeAt(2)!==35}function K0(n){let a;return n.forEach((c,d)=>{sx(c,d)&&(a||(a=[])).push(c)}),a||et}function sx(n,a){return!DE(a)&&Bm(n)}function PT(n){let a=K0(n),c=FZ(n);return c?xo(a,[c]):a}function hf(n,a,c,d,_){let y=n;return y.members=a,y.properties=et,y.callSignatures=c,y.constructSignatures=d,y.indexInfos=_,a!==K&&(y.properties=K0(a)),y}function Ls(n,a,c,d,_){return hf(Of(16,n),a,c,d,_)}function CE(n){if(n.constructSignatures.length===0)return n;if(n.objectTypeWithoutAbstractConstructSignatures)return n.objectTypeWithoutAbstractConstructSignatures;let a=tr(n.constructSignatures,d=>!(d.flags&4));if(n.constructSignatures===a)return n;let c=Ls(n.symbol,n.members,n.callSignatures,Et(a)?a:et,n.indexInfos);return n.objectTypeWithoutAbstractConstructSignatures=c,c.objectTypeWithoutAbstractConstructSignatures=c,c}function NE(n,a){let c;for(let d=n;d;d=d.parent){if(ph(d)&&d.locals&&!Nh(d)&&(c=a(d.locals,void 0,!0,d)))return c;switch(d.kind){case 312:if(!Fp(d))break;case 267:let _=Rr(d);if(c=a(_?.exports||K,void 0,!0,d))return c;break;case 263:case 231:case 264:let y;if((Rr(d).members||K).forEach((x,L)=>{x.flags&788968&&(y||(y=ua())).set(L,x)}),y&&(c=a(y,void 0,!1,d)))return c;break}}return a(Se,void 0,!0)}function sv(n){return n===111551?111551:1920}function Sb(n,a,c,d,_=new Map){if(!(n&&!D(n)))return;let y=$i(n),x=y.accessibleChainCache||(y.accessibleChainCache=new Map),L=NE(a,(un,sr,Ln,cn)=>cn),z=`${d?0:1}|${L&&ss(L)}|${c}`;if(x.has(z))return x.get(z);let U=Ta(n),re=_.get(U);re||_.set(U,re=[]);let be=NE(a,ge);return x.set(z,be),be;function ge(un,sr,Ln){if(!bf(re,un))return;let cn=Rt(un,sr,Ln);return re.pop(),cn}function Je(un,sr){return!X0(un,a,sr)||!!Sb(un.parent,a,sv(sr),d,_)}function vt(un,sr,Ln){return(n===(sr||un)||is(n)===is(sr||un))&&!Et(un.declarations,Zu)&&(Ln||Je(is(un),c))}function Rt(un,sr,Ln){return vt(un.get(n.escapedName),void 0,sr)?[n]:Bc(un,Fn=>{if(Fn.flags&2097152&&Fn.escapedName!=="export="&&Fn.escapedName!=="default"&&!(k3(Fn)&&a&&ac(Vn(a)))&&(!d||Et(Fn.declarations,l0))&&(!Ln||!Et(Fn.declarations,Die))&&(sr||!dl(Fn,281))){let kn=Fc(Fn),Zn=sn(Fn,kn,sr);if(Zn)return Zn}if(Fn.escapedName===n.escapedName&&Fn.exportSymbol&&vt(is(Fn.exportSymbol),void 0,sr))return[n]})||(un===Se?sn(at,at,sr):void 0)}function sn(un,sr,Ln){if(vt(un,sr,Ln))return[un];let cn=Dp(sr),Fn=cn&&ge(cn,!0);if(Fn&&Je(un,sv(c)))return[un].concat(Fn)}}function X0(n,a,c){let d=!1;return NE(a,_=>{let y=is(_.get(n.escapedName));if(!y)return!1;if(y===n)return!0;let x=y.flags&2097152&&!dl(y,281);return y=x?Fc(y):y,(x?Au(y):y.flags)&c?(d=!0,!0):!1}),d}function D(n){if(n.declarations&&n.declarations.length){for(let a of n.declarations)switch(a.kind){case 172:case 174:case 177:case 178:continue;default:return!1}return!0}return!1}function se(n,a){return Ei(n,a,788968,!1,!0).accessibility===0}function _t(n,a){return Ei(n,a,111551,!1,!0).accessibility===0}function an(n,a,c){return Ei(n,a,c,!1,!1).accessibility===0}function Fr(n,a,c,d,_,y){if(!De(n))return;let x,L=!1;for(let z of n){let U=Sb(z,a,d,!1);if(U){x=z;let ge=Nd(U[0],_);if(ge)return ge}if(y&&Et(z.declarations,Zu)){if(_){L=!0;continue}return{accessibility:0}}let re=J0(z,a,d),be=Fr(re,a,c,c===z?sv(d):d,_,y);if(be)return be}if(L)return{accessibility:0};if(x)return{accessibility:1,errorSymbolName:Ai(c,a,d),errorModuleName:x!==c?Ai(x,a,1920):void 0}}function wi(n,a,c,d){return Ei(n,a,c,d,!0)}function Ei(n,a,c,d,_){if(n&&a){let y=Fr([n],a,n,c,d,_);if(y)return y;let x=Ke(n.declarations,oo);if(x){let L=oo(a);if(x!==L)return{accessibility:2,errorSymbolName:Ai(n,a,c),errorModuleName:Ai(x),errorNode:cr(a)?a:void 0}}return{accessibility:1,errorSymbolName:Ai(n,a,c)}}return{accessibility:0}}function oo(n){let a=zn(n,ya);return a&&Rr(a)}function ya(n){return Lu(n)||n.kind===312&&Fp(n)}function Zu(n){return B6(n)||n.kind===312&&Fp(n)}function Nd(n,a){let c;if(!Jn(tr(n.declarations,y=>y.kind!==80),d))return;return{accessibility:0,aliasesToMakeVisible:c};function d(y){var x,L;if(!u_(y)){let z=vT(y);if(z&&!ei(z,32)&&u_(z.parent))return _(y,z);if(Oi(y)&&Ml(y.parent.parent)&&!ei(y.parent.parent,32)&&u_(y.parent.parent.parent))return _(y,y.parent.parent);if(G6(y)&&!ei(y,32)&&u_(y.parent))return _(y,y);if(Qa(y)){if(n.flags&2097152&&cr(y)&&((x=y.parent)!=null&&x.parent)&&Oi(y.parent.parent)&&((L=y.parent.parent.parent)!=null&&L.parent)&&Ml(y.parent.parent.parent.parent)&&!ei(y.parent.parent.parent.parent,32)&&y.parent.parent.parent.parent.parent&&u_(y.parent.parent.parent.parent.parent))return _(y,y.parent.parent.parent.parent);if(n.flags&2){let U=zn(y,Ml);return ei(U,32)?!0:u_(U.parent)?_(y,U):!1}}return!1}return!0}function _(y,x){return a&&(ti(y).isVisible=!0,c=Ng(c,x)),!0}}function Ff(n){let a;return n.parent.kind===186||n.parent.kind===233&&!Zh(n.parent)||n.parent.kind===167?a=1160127:n.kind===166||n.kind===211||n.parent.kind===271||n.parent.kind===166&&n.parent.left===n||n.parent.kind===211&&n.parent.expression===n||n.parent.kind===212&&n.parent.expression===n?a=1920:a=788968,a}function Tb(n,a){let c=Ff(n),d=Bp(n),_=vl(a,d.escapedText,c,void 0,void 0,!1);return _&&_.flags&262144&&c&788968?{accessibility:0}:!_&&O1(d)&&wi(Rr(wd(d,!1,!1)),d,c,!1).accessibility===0?{accessibility:0}:_&&Nd(_,!0)||{accessibility:1,errorSymbolName:pc(d),errorNode:d}}function Ai(n,a,c,d=4,_){let y=70221824;d&2&&(y|=128),d&1&&(y|=512),d&8&&(y|=16384),d&32&&(y|=134217728),d&16&&(y|=1073741824);let x=d&4?At.symbolToNode:At.symbolToEntityName;return _?L(_).getText():bC(L);function L(z){let U=x(n,c,a,y),re=a?.kind===312?mJ():oE(),be=a&&Vn(a);return re.writeNode(4,U,be,z),z}}function kh(n,a,c=0,d,_){return _?y(_).getText():bC(y);function y(x){let L;c&262144?L=d===1?185:184:L=d===1?180:179;let z=At.signatureToSignatureDeclaration(n,L,a,MT(c)|70221824|512),U=Lw(),re=a&&Vn(a);return U.writeNode(4,z,re,eU(x)),x}}function jn(n,a,c=1064960,d=ik("")){let _=V.noErrorTruncation||c&1,y=At.typeToTypeNode(n,a,MT(c)|70221824|(_?1:0));if(y===void 0)return C.fail("should always get typenode");let x=n!==Vt?oE():fJ(),L=a&&Vn(a);x.writeNode(4,y,L,d);let z=d.getText(),U=_?a7*2:Ek*2;return U&&z&&z.length>=U?z.substr(0,U-3)+"...":z}function lx(n,a){let c=Ib(n.symbol)?jn(n,n.symbol.valueDeclaration):jn(n),d=Ib(a.symbol)?jn(a,a.symbol.valueDeclaration):jn(a);return c===d&&(c=Ab(n),d=Ab(a)),[c,d]}function Ab(n){return jn(n,void 0,64)}function Ib(n){return n&&!!n.valueDeclaration&&bt(n.valueDeclaration)&&!Gf(n.valueDeclaration)}function MT(n=0){return n&848330095}function PE(n){return!!n.symbol&&!!(n.symbol.flags&32)&&(n===zf(n.symbol)||!!(n.flags&524288)&&!!(Wr(n)&16777216))}function K_(){return{typeToTypeNode:(ut,Ie,Pn,Mr)=>a(Ie,Pn,Mr,fi=>d(ut,fi)),indexInfoToIndexSignatureDeclaration:(ut,Ie,Pn,Mr)=>a(Ie,Pn,Mr,fi=>re(ut,fi,void 0)),signatureToSignatureDeclaration:(ut,Ie,Pn,Mr,fi)=>a(Pn,Mr,fi,xi=>be(ut,Ie,xi)),symbolToEntityName:(ut,Ie,Pn,Mr,fi)=>a(Pn,Mr,fi,xi=>vo(ut,xi,Ie,!1)),symbolToExpression:(ut,Ie,Pn,Mr,fi)=>a(Pn,Mr,fi,xi=>Dc(ut,xi,Ie)),symbolToTypeParameterDeclarations:(ut,Ie,Pn,Mr)=>a(Ie,Pn,Mr,fi=>Fn(ut,fi)),symbolToParameterDeclaration:(ut,Ie,Pn,Mr)=>a(Ie,Pn,Mr,fi=>sn(ut,fi)),typeParameterToDeclaration:(ut,Ie,Pn,Mr)=>a(Ie,Pn,Mr,fi=>vt(ut,fi)),symbolTableToDeclarationStatements:(ut,Ie,Pn,Mr,fi)=>a(Ie,Pn,Mr,xi=>yl(ut,xi,fi)),symbolToNode:(ut,Ie,Pn,Mr,fi)=>a(Pn,Mr,fi,xi=>n(ut,xi,Ie))};function n(ut,Ie,Pn){if(Ie.flags&1073741824){if(ut.valueDeclaration){let fi=Oo(ut.valueDeclaration);if(fi&&Za(fi))return fi}let Mr=$i(ut).nameType;if(Mr&&Mr.flags&9216)return Ie.enclosingDeclaration=Mr.symbol.valueDeclaration,k.createComputedPropertyName(Dc(Mr.symbol,Ie,Pn))}return Dc(ut,Ie,Pn)}function a(ut,Ie,Pn,Mr){C.assert(ut===void 0||(ut.flags&16)===0);let fi=Pn?.trackSymbol?Pn.moduleResolverHost:Ie&134217728?zGe(e):void 0,xi={enclosingDeclaration:ut,flags:Ie||0,tracker:void 0,encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0};xi.tracker=new Bq(xi,Pn,fi);let Ri=Mr(xi);return xi.truncating&&xi.flags&1&&xi.tracker.reportTruncationError(),xi.encounteredError?void 0:Ri}function c(ut){return ut.truncating?ut.truncating:ut.truncating=ut.approximateLength>(ut.flags&1?a7:Ek)}function d(ut,Ie){let Pn=Ie.flags,Mr=_(ut,Ie);return Ie.flags=Pn,Mr}function _(ut,Ie){var Pn,Mr;i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let fi=Ie.flags&8388608;if(Ie.flags&=-8388609,!ut){if(!(Ie.flags&262144)){Ie.encounteredError=!0;return}return Ie.approximateLength+=3,k.createKeywordTypeNode(133)}if(Ie.flags&536870912||(ut=__(ut)),ut.flags&1)return ut.aliasSymbol?k.createTypeReferenceNode(er(ut.aliasSymbol),z(ut.aliasTypeArguments,Ie)):ut===Vt?mN(k.createKeywordTypeNode(133),3,"unresolved"):(Ie.approximateLength+=3,k.createKeywordTypeNode(ut===fn?141:133));if(ut.flags&2)return k.createKeywordTypeNode(159);if(ut.flags&4)return Ie.approximateLength+=6,k.createKeywordTypeNode(154);if(ut.flags&8)return Ie.approximateLength+=6,k.createKeywordTypeNode(150);if(ut.flags&64)return Ie.approximateLength+=6,k.createKeywordTypeNode(163);if(ut.flags&16&&!ut.aliasSymbol)return Ie.approximateLength+=7,k.createKeywordTypeNode(136);if(ut.flags&1056){if(ut.symbol.flags&8){let xn=Cd(ut.symbol),ni=Mo(xn,Ie,788968);if(Qs(xn)===ut)return ni;let Ui=bl(ut.symbol);return $p(Ui,0)?Si(ni,k.createTypeReferenceNode(Ui,void 0)):lg(ni)?(ni.isTypeOf=!0,k.createIndexedAccessTypeNode(ni,k.createLiteralTypeNode(k.createStringLiteral(Ui)))):Rf(ni)?k.createIndexedAccessTypeNode(k.createTypeQueryNode(ni.typeName),k.createLiteralTypeNode(k.createStringLiteral(Ui))):C.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}return Mo(ut.symbol,Ie,788968)}if(ut.flags&128)return Ie.approximateLength+=ut.value.length+2,k.createLiteralTypeNode(fr(k.createStringLiteral(ut.value,!!(Ie.flags&268435456)),16777216));if(ut.flags&256){let xn=ut.value;return Ie.approximateLength+=(""+xn).length,k.createLiteralTypeNode(xn<0?k.createPrefixUnaryExpression(41,k.createNumericLiteral(-xn)):k.createNumericLiteral(xn))}if(ut.flags&2048)return Ie.approximateLength+=z1(ut.value).length+1,k.createLiteralTypeNode(k.createBigIntLiteral(ut.value));if(ut.flags&512)return Ie.approximateLength+=ut.intrinsicName.length,k.createLiteralTypeNode(ut.intrinsicName==="true"?k.createTrue():k.createFalse());if(ut.flags&8192){if(!(Ie.flags&1048576)){if(_t(ut.symbol,Ie.enclosingDeclaration))return Ie.approximateLength+=6,Mo(ut.symbol,Ie,111551);Ie.tracker.reportInaccessibleUniqueSymbolError&&Ie.tracker.reportInaccessibleUniqueSymbolError()}return Ie.approximateLength+=13,k.createTypeOperatorNode(158,k.createKeywordTypeNode(155))}if(ut.flags&16384)return Ie.approximateLength+=4,k.createKeywordTypeNode(116);if(ut.flags&32768)return Ie.approximateLength+=9,k.createKeywordTypeNode(157);if(ut.flags&65536)return Ie.approximateLength+=4,k.createLiteralTypeNode(k.createNull());if(ut.flags&131072)return Ie.approximateLength+=5,k.createKeywordTypeNode(146);if(ut.flags&4096)return Ie.approximateLength+=6,k.createKeywordTypeNode(155);if(ut.flags&67108864)return Ie.approximateLength+=6,k.createKeywordTypeNode(151);if(aN(ut))return Ie.flags&4194304&&(!Ie.encounteredError&&!(Ie.flags&32768)&&(Ie.encounteredError=!0),(Mr=(Pn=Ie.tracker).reportInaccessibleThisError)==null||Mr.call(Pn)),Ie.approximateLength+=4,k.createThisTypeNode();if(!fi&&ut.aliasSymbol&&(Ie.flags&16384||se(ut.aliasSymbol,Ie.enclosingDeclaration))){let xn=z(ut.aliasTypeArguments,Ie);return DE(ut.aliasSymbol.escapedName)&&!(ut.aliasSymbol.flags&32)?k.createTypeReferenceNode(k.createIdentifier(""),xn):De(xn)===1&&ut.aliasSymbol===Qo.symbol?k.createArrayTypeNode(xn[0]):Mo(ut.aliasSymbol,Ie,788968,xn)}let xi=Wr(ut);if(xi&4)return C.assert(!!(ut.flags&524288)),ut.node?$t(ut,Wn):Wn(ut);if(ut.flags&262144||xi&3){if(ut.flags&262144&&wr(Ie.inferTypeParameters,ut)){Ie.approximateLength+=bl(ut.symbol).length+6;let ni,Ui=Pd(ut);if(Ui){let mo=hOe(ut,!0);mo&&hv(Ui,mo)||(Ie.approximateLength+=9,ni=Ui&&d(Ui,Ie))}return k.createInferTypeNode(Je(ut,Ie,ni))}if(Ie.flags&4&&ut.flags&262144){let ni=jo(ut,Ie);return Ie.approximateLength+=Sr(ni).length,k.createTypeReferenceNode(k.createIdentifier(Sr(ni)),void 0)}if(ut.symbol)return Mo(ut.symbol,Ie,788968);let xn=(ut===de||ut===ee)&&O&&O.symbol?(ut===ee?"sub-":"super-")+bl(O.symbol):"?";return k.createTypeReferenceNode(k.createIdentifier(xn),void 0)}if(ut.flags&1048576&&ut.origin&&(ut=ut.origin),ut.flags&3145728){let xn=ut.flags&1048576?lD(ut.types):ut.types;if(De(xn)===1)return d(xn[0],Ie);let ni=z(xn,Ie,!0);if(ni&&ni.length>0)return ut.flags&1048576?k.createUnionTypeNode(ni):k.createIntersectionTypeNode(ni);!Ie.encounteredError&&!(Ie.flags&262144)&&(Ie.encounteredError=!0);return}if(xi&48)return C.assert(!!(ut.flags&524288)),tn(ut);if(ut.flags&4194304){let xn=ut.type;Ie.approximateLength+=6;let ni=d(xn,Ie);return k.createTypeOperatorNode(143,ni)}if(ut.flags&134217728){let xn=ut.texts,ni=ut.types,Ui=k.createTemplateHead(xn[0]),mo=k.createNodeArray(Ft(ni,(fa,bc)=>k.createTemplateLiteralTypeSpan(d(fa,Ie),(bcRi(xn));if(ut.flags&33554432){let xn=d(ut.baseType,Ie),ni=qP(ut)&&Wge("NoInfer",!1);return ni?Mo(ni,Ie,788968,[xn]):xn}return C.fail("Should be unreachable.");function Ri(xn){let ni=d(xn.checkType,Ie);if(Ie.approximateLength+=15,Ie.flags&4&&xn.root.isDistributive&&!(xn.checkType.flags&262144)){let Cl=_f(Xa(262144,"T")),cs=jo(Cl,Ie),Cc=k.createTypeReferenceNode(cs);Ie.approximateLength+=37;let Js=HT(xn.root.checkType,Cl,xn.mapper),b_=Ie.inferTypeParameters;Ie.inferTypeParameters=xn.root.inferTypeParameters;let it=d(co(xn.root.extendsType,Js),Ie);Ie.inferTypeParameters=b_;let Tt=Ur(co(Ii(xn.root.node.trueType),Js)),en=Ur(co(Ii(xn.root.node.falseType),Js));return k.createConditionalTypeNode(ni,k.createInferTypeNode(k.createTypeParameterDeclaration(void 0,k.cloneNode(Cc.typeName))),k.createConditionalTypeNode(k.createTypeReferenceNode(k.cloneNode(cs)),d(xn.checkType,Ie),k.createConditionalTypeNode(Cc,it,Tt,en),k.createKeywordTypeNode(146)),k.createKeywordTypeNode(146))}let Ui=Ie.inferTypeParameters;Ie.inferTypeParameters=xn.root.inferTypeParameters;let mo=d(xn.extendsType,Ie);Ie.inferTypeParameters=Ui;let fa=Ur(o1(xn)),bc=Ur(a1(xn));return k.createConditionalTypeNode(ni,mo,fa,bc)}function Ur(xn){var ni,Ui,mo;return xn.flags&1048576?(ni=Ie.visitedTypes)!=null&&ni.has(gd(xn))?(Ie.flags&131072||(Ie.encounteredError=!0,(mo=(Ui=Ie.tracker)==null?void 0:Ui.reportCyclicStructureError)==null||mo.call(Ui)),y(Ie)):$t(xn,fa=>d(fa,Ie)):d(xn,Ie)}function Dr(xn){return!!N4(xn)}function ct(xn){return!!xn.target&&Dr(xn.target)&&!Dr(xn)}function Ot(xn){var ni;C.assert(!!(xn.flags&524288));let Ui=xn.declaration.readonlyToken?k.createToken(xn.declaration.readonlyToken.kind):void 0,mo=xn.declaration.questionToken?k.createToken(xn.declaration.questionToken.kind):void 0,fa,bc,Cl=!_D(xn)&&!(OT(xn).flags&2)&&Ie.flags&4&&!(gf(xn).flags&262144&&((ni=Pd(gf(xn)))==null?void 0:ni.flags)&4194304);if(_D(xn)){if(ct(xn)&&Ie.flags&4){let Tt=_f(Xa(262144,"T")),en=jo(Tt,Ie);bc=k.createTypeReferenceNode(en)}fa=k.createTypeOperatorNode(143,bc||d(OT(xn),Ie))}else if(Cl){let Tt=_f(Xa(262144,"T")),en=jo(Tt,Ie);bc=k.createTypeReferenceNode(en),fa=bc}else fa=d(gf(xn),Ie);let cs=Je(f_(xn),Ie,fa),Cc=xn.declaration.nameType?d(py(xn),Ie):void 0,Js=d(Ub(pv(xn),!!(Wh(xn)&4)),Ie),b_=k.createMappedTypeNode(Ui,cs,Cc,mo,Js,void 0);Ie.approximateLength+=10;let it=fr(b_,1);if(ct(xn)&&Ie.flags&4){let Tt=co(Pd(Ii(xn.declaration.typeParameter.constraint.type))||mn,xn.mapper);return k.createConditionalTypeNode(d(OT(xn),Ie),k.createInferTypeNode(k.createTypeParameterDeclaration(void 0,k.cloneNode(bc.typeName),Tt.flags&2?void 0:d(Tt,Ie))),it,k.createKeywordTypeNode(146))}else if(Cl)return k.createConditionalTypeNode(d(gf(xn),Ie),k.createInferTypeNode(k.createTypeParameterDeclaration(void 0,k.cloneNode(bc.typeName),k.createTypeOperatorNode(143,d(OT(xn),Ie)))),it,k.createKeywordTypeNode(146));return it}function tn(xn){var ni,Ui;let mo=xn.id,fa=xn.symbol;if(fa){if(!!(Wr(xn)&8388608)){let Js=xn.node;if(rI(Js)&&Ii(Js)===xn){let b_=Ol(Ie,Js);if(b_)return b_}return(ni=Ie.visitedTypes)!=null&&ni.has(mo)?y(Ie):$t(xn,dn)}let cs=PE(xn)?788968:111551;if(th(fa.valueDeclaration))return Mo(fa,Ie,cs);if(fa.flags&32&&!xZ(fa)&&!(fa.valueDeclaration&&pi(fa.valueDeclaration)&&Ie.flags&2048&&(!Tc(fa.valueDeclaration)||wi(fa,Ie.enclosingDeclaration,cs,!1).accessibility!==0))||fa.flags&896||bc())return Mo(fa,Ie,cs);if((Ui=Ie.visitedTypes)!=null&&Ui.has(mo)){let Cc=iz(xn);return Cc?Mo(Cc,Ie,788968):y(Ie)}else return $t(xn,dn)}else return dn(xn);function bc(){var Cl;let cs=!!(fa.flags&8192)&&Et(fa.declarations,Js=>sa(Js)),Cc=!!(fa.flags&16)&&(fa.parent||Ke(fa.declarations,Js=>Js.parent.kind===312||Js.parent.kind===268));if(cs||Cc)return(!!(Ie.flags&4096)||((Cl=Ie.visitedTypes)==null?void 0:Cl.has(mo)))&&(!(Ie.flags&8)||_t(fa,Ie.enclosingDeclaration))}}function $t(xn,ni){var Ui,mo,fa;let bc=xn.id,Cl=Wr(xn)&16&&xn.symbol&&xn.symbol.flags&32,cs=Wr(xn)&4&&xn.node?"N"+ss(xn.node):xn.flags&16777216?"N"+ss(xn.root.node):xn.symbol?(Cl?"+":"")+Ta(xn.symbol):void 0;Ie.visitedTypes||(Ie.visitedTypes=new Set),cs&&!Ie.symbolDepth&&(Ie.symbolDepth=new Map);let Cc=Ie.enclosingDeclaration&&ti(Ie.enclosingDeclaration),Js=`${gd(xn)}|${Ie.flags}`;Cc&&(Cc.serializedTypes||(Cc.serializedTypes=new Map));let b_=(Ui=Cc?.serializedTypes)==null?void 0:Ui.get(Js);if(b_)return(mo=b_.trackedSymbols)==null||mo.forEach(([Hr,zi,Go])=>Ie.tracker.trackSymbol(Hr,zi,Go)),b_.truncating&&(Ie.truncating=!0),Ie.approximateLength+=b_.addedLength,Sn(b_.node);let it;if(cs){if(it=Ie.symbolDepth.get(cs)||0,it>10)return y(Ie);Ie.symbolDepth.set(cs,it+1)}Ie.visitedTypes.add(bc);let Tt=Ie.trackedSymbols;Ie.trackedSymbols=void 0;let en=Ie.approximateLength,Kn=ni(xn),Cr=Ie.approximateLength-en;return!Ie.reportedDiagnostic&&!Ie.encounteredError&&((fa=Cc?.serializedTypes)==null||fa.set(Js,{node:Kn,truncating:Ie.truncating,addedLength:Cr,trackedSymbols:Ie.trackedSymbols})),Ie.visitedTypes.delete(bc),cs&&Ie.symbolDepth.set(cs,it),Ie.trackedSymbols=Tt,Kn;function Sn(Hr){return!Xs(Hr)&&Lo(Hr)===Hr?Hr:dt(k.cloneNode(An(Hr,Sn,void 0,yr)),Hr)}function yr(Hr,zi,Go,ha,ga){return Hr&&Hr.length===0?dt(k.createNodeArray(void 0,Hr.hasTrailingComma),Hr):Bn(Hr,zi,Go,ha,ga)}}function dn(xn){if(Hd(xn)||xn.containsError)return Ot(xn);let ni=m_(xn);if(!ni.properties.length&&!ni.indexInfos.length){if(!ni.callSignatures.length&&!ni.constructSignatures.length)return Ie.approximateLength+=2,fr(k.createTypeLiteralNode(void 0),1);if(ni.callSignatures.length===1&&!ni.constructSignatures.length){let Cl=ni.callSignatures[0];return be(Cl,184,Ie)}if(ni.constructSignatures.length===1&&!ni.callSignatures.length){let Cl=ni.constructSignatures[0];return be(Cl,185,Ie)}}let Ui=tr(ni.constructSignatures,Cl=>!!(Cl.flags&4));if(Et(Ui)){let Cl=Ft(Ui,BT);return ni.callSignatures.length+(ni.constructSignatures.length-Ui.length)+ni.indexInfos.length+(Ie.flags&2048?au(ni.properties,Cc=>!(Cc.flags&4194304)):De(ni.properties))&&Cl.push(CE(ni)),d(Ea(Cl),Ie)}let mo=Ie.flags;Ie.flags|=4194304;let fa=fo(ni);Ie.flags=mo;let bc=k.createTypeLiteralNode(fa);return Ie.approximateLength+=2,fr(bc,Ie.flags&1024?0:1),bc}function Wn(xn){let ni=qs(xn);if(xn.target===Qo||xn.target===na){if(Ie.flags&2){let fa=d(ni[0],Ie);return k.createTypeReferenceNode(xn.target===Qo?"Array":"ReadonlyArray",[fa])}let Ui=d(ni[0],Ie),mo=k.createArrayTypeNode(Ui);return xn.target===Qo?mo:k.createTypeOperatorNode(148,mo)}else if(xn.target.objectFlags&8){if(ni=Io(ni,(Ui,mo)=>Ub(Ui,!!(xn.target.elementFlags[mo]&2))),ni.length>0){let Ui=my(xn),mo=z(ni.slice(0,Ui),Ie);if(mo){let{labeledElementDeclarations:fa}=xn.target;for(let Cl=0;Cl0){let Cc=(xn.target.typeParameters||et).length;bc=z(ni.slice(mo,Cc),Ie)}let Cl=Ie.flags;Ie.flags|=16;let cs=Mo(xn.symbol,Ie,788968,bc);return Ie.flags=Cl,fa?Si(fa,cs):cs}}}function Si(xn,ni){if(lg(xn)){let Ui=xn.typeArguments,mo=xn.qualifier;mo&&(Ve(mo)?Ui!==PS(mo)&&(mo=Uv(k.cloneNode(mo),Ui)):Ui!==PS(mo.right)&&(mo=k.updateQualifiedName(mo,mo.left,Uv(k.cloneNode(mo.right),Ui)))),Ui=ni.typeArguments;let fa=mi(ni);for(let bc of fa)mo=mo?k.createQualifiedName(mo,bc):bc;return k.updateImportTypeNode(xn,xn.argument,xn.attributes,mo,Ui,xn.isTypeOf)}else{let Ui=xn.typeArguments,mo=xn.typeName;Ve(mo)?Ui!==PS(mo)&&(mo=Uv(k.cloneNode(mo),Ui)):Ui!==PS(mo.right)&&(mo=k.updateQualifiedName(mo,mo.left,Uv(k.cloneNode(mo.right),Ui))),Ui=ni.typeArguments;let fa=mi(ni);for(let bc of fa)mo=k.createQualifiedName(mo,bc);return k.updateTypeReferenceNode(xn,mo,Ui)}}function mi(xn){let ni=xn.typeName,Ui=[];for(;!Ve(ni);)Ui.unshift(ni.right),ni=ni.left;return Ui.unshift(ni),Ui}function fo(xn){if(c(Ie))return[k.createPropertySignature(void 0,"...",void 0,void 0)];let ni=[];for(let fa of xn.callSignatures)ni.push(be(fa,179,Ie));for(let fa of xn.constructSignatures)fa.flags&4||ni.push(be(fa,180,Ie));for(let fa of xn.indexInfos)ni.push(re(fa,Ie,xn.objectFlags&1024?y(Ie):void 0));let Ui=xn.properties;if(!Ui)return ni;let mo=0;for(let fa of Ui){if(mo++,Ie.flags&2048){if(fa.flags&4194304)continue;If(fa)&6&&Ie.tracker.reportPrivateInBaseOfClassExpression&&Ie.tracker.reportPrivateInBaseOfClassExpression(Hi(fa.escapedName))}if(c(Ie)&&mo+2!(Wn.flags&32768)),0);for(let Wn of dn){let Si=be(Wn,173,Ie,{name:Ur,questionToken:Dr});Pn.push($t(Si))}if(dn.length||!Dr)return}let ct;x(ut,Ie)?ct=y(Ie):(fi&&(Ie.reverseMappedStack||(Ie.reverseMappedStack=[]),Ie.reverseMappedStack.push(ut)),ct=xi?As(Ie,xi,ut,Ri):k.createKeywordTypeNode(133),fi&&Ie.reverseMappedStack.pop());let Ot=y_(ut)?[k.createToken(148)]:void 0;Ot&&(Ie.approximateLength+=9);let tn=k.createPropertySignature(Ot,Ur,Dr,ct);Pn.push($t(tn));function $t(dn){var Wn;let Si=(Wn=ut.declarations)==null?void 0:Wn.find(mi=>mi.kind===355);if(Si){let mi=oL(Si.comment);mi&&g0(dn,[{kind:3,text:`* + * `+mi.replace(/\n/g,` + * `)+` + `,pos:-1,end:-1,hasTrailingNewLine:!0}])}else ut.valueDeclaration&&oc(dn,ut.valueDeclaration);return dn}}function z(ut,Ie,Pn){if(Et(ut)){if(c(Ie))if(Pn){if(ut.length>2)return[d(ut[0],Ie),k.createTypeReferenceNode(`... ${ut.length-2} more ...`,void 0),d(ut[ut.length-1],Ie)]}else return[k.createTypeReferenceNode("...",void 0)];let fi=!(Ie.flags&64)?Xp():void 0,xi=[],Ri=0;for(let Ur of ut){if(Ri++,c(Ie)&&Ri+2{if(!joe(Dr,([ct],[Ot])=>U(ct,Ot)))for(let[ct,Ot]of Dr)xi[Ot]=d(ct,Ie)}),Ie.flags=Ur}return xi}}function U(ut,Ie){return ut===Ie||!!ut.symbol&&ut.symbol===Ie.symbol||!!ut.aliasSymbol&&ut.aliasSymbol===Ie.aliasSymbol}function re(ut,Ie,Pn){let Mr=uie(ut)||"x",fi=d(ut.keyType,Ie),xi=k.createParameterDeclaration(void 0,void 0,Mr,void 0,fi,void 0);return Pn||(Pn=d(ut.type||j,Ie)),!ut.type&&!(Ie.flags&2097152)&&(Ie.encounteredError=!0),Ie.approximateLength+=Mr.length+4,k.createIndexSignature(ut.isReadonly?[k.createToken(148)]:void 0,[xi],Pn)}function be(ut,Ie,Pn,Mr){var fi;let xi=Pn.flags&256;xi&&(Pn.flags&=-257),Pn.approximateLength+=3;let Ri,Ur;Pn.flags&32&&ut.target&&ut.mapper&&ut.target.typeParameters?Ur=ut.target.typeParameters.map(fo=>d(co(fo,ut.mapper),Pn)):Ri=ut.typeParameters&&ut.typeParameters.map(fo=>vt(fo,Pn));let Dr=qwe(ut,!0)[0],ct;if(Pn.enclosingDeclaration&&ut.declaration&&ut.declaration!==Pn.enclosingDeclaration&&!cr(ut.declaration)&&(Et(Dr)||Et(ut.typeParameters))){let fo=function(xn,ni){C.assert(Pn.enclosingDeclaration);let Ui;ti(Pn.enclosingDeclaration).fakeScopeForSignatureDeclaration===xn?Ui=Pn.enclosingDeclaration:Pn.enclosingDeclaration.parent&&ti(Pn.enclosingDeclaration.parent).fakeScopeForSignatureDeclaration===xn&&(Ui=Pn.enclosingDeclaration.parent),C.assertOptionalNode(Ui,Xo);let mo=Ui?.locals??ua(),fa;if(ni((cs,Cc)=>{mo.has(cs)||(fa=In(fa,cs),mo.set(cs,Cc))}),!fa)return;let bc=ct;function Cl(){Ke(fa,cs=>mo.delete(cs)),bc?.()}if(Ui)ct=Cl;else{let cs=Ah.createBlock(et);ti(cs).fakeScopeForSignatureDeclaration=xn,cs.locals=mo;let Cc=Pn.enclosingDeclaration;qa(cs,Cc),Pn.enclosingDeclaration=cs,ct=()=>{Pn.enclosingDeclaration=Cc,Cl()}}};var Ot=fo;fo("params",xn=>{for(let ni of Dr)xn(ni.escapedName,ni)}),Pn.flags&4&&fo("typeParams",xn=>{for(let ni of ut.typeParameters??et){let Ui=jo(ni,Pn).escapedText;xn(Ui,ni.symbol)}})}let tn=(Et(Dr,fo=>fo!==Dr[Dr.length-1]&&!!(Al(fo)&32768))?ut.parameters:Dr).map(fo=>sn(fo,Pn,Ie===176,Mr?.privateSymbolVisitor,Mr?.bundledImports)),$t=Pn.flags&33554432?void 0:ge(ut,Pn);$t&&tn.unshift($t);let dn,Wn=Bf(ut);if(Wn){let fo=Wn.kind===2||Wn.kind===3?k.createToken(131):void 0,xn=Wn.kind===1||Wn.kind===3?fr(k.createIdentifier(Wn.parameterName),16777216):k.createThisTypeNode(),ni=Wn.type&&d(Wn.type,Pn);dn=k.createTypePredicateNode(fo,xn,ni)}else{let fo=ms(ut);fo&&!(xi&&Ct(fo))?dn=za(Pn,fo,ut,Mr?.privateSymbolVisitor,Mr?.bundledImports):xi||(dn=k.createKeywordTypeNode(133))}let Si=Mr?.modifiers;if(Ie===185&&ut.flags&4){let fo=N_(Si);Si=k.createModifiersFromModifierFlags(fo|64)}let mi=Ie===179?k.createCallSignature(Ri,tn,dn):Ie===180?k.createConstructSignature(Ri,tn,dn):Ie===173?k.createMethodSignature(Si,Mr?.name??k.createIdentifier(""),Mr?.questionToken,Ri,tn,dn):Ie===174?k.createMethodDeclaration(Si,void 0,Mr?.name??k.createIdentifier(""),void 0,Ri,tn,dn,void 0):Ie===176?k.createConstructorDeclaration(Si,tn,void 0):Ie===177?k.createGetAccessorDeclaration(Si,Mr?.name??k.createIdentifier(""),tn,dn,void 0):Ie===178?k.createSetAccessorDeclaration(Si,Mr?.name??k.createIdentifier(""),tn,void 0):Ie===181?k.createIndexSignature(Si,tn,dn):Ie===324?k.createJSDocFunctionType(tn,dn):Ie===184?k.createFunctionTypeNode(Ri,tn,dn??k.createTypeReferenceNode(k.createIdentifier(""))):Ie===185?k.createConstructorTypeNode(Si,Ri,tn,dn??k.createTypeReferenceNode(k.createIdentifier(""))):Ie===262?k.createFunctionDeclaration(Si,void 0,Mr?.name?aa(Mr.name,Ve):k.createIdentifier(""),Ri,tn,dn,void 0):Ie===218?k.createFunctionExpression(Si,void 0,Mr?.name?aa(Mr.name,Ve):k.createIdentifier(""),Ri,tn,dn,k.createBlock([])):Ie===219?k.createArrowFunction(Si,Ri,tn,dn,void 0,k.createBlock([])):C.assertNever(Ie);if(Ur&&(mi.typeArguments=k.createNodeArray(Ur)),((fi=ut.declaration)==null?void 0:fi.kind)===330&&ut.declaration.parent.kind===346){let fo=pc(ut.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map(xn=>xn.replace(/^\s+/," ")).join(` +`);mN(mi,3,fo,!0)}return ct?.(),mi}function ge(ut,Ie){if(ut.thisParameter)return sn(ut.thisParameter,Ie);if(ut.declaration&&cr(ut.declaration)){let Pn=h6(ut.declaration);if(Pn&&Pn.typeExpression)return k.createParameterDeclaration(void 0,void 0,"this",void 0,d(Ii(Pn.typeExpression),Ie))}}function Je(ut,Ie,Pn){let Mr=Ie.flags;Ie.flags&=-513;let fi=k.createModifiersFromModifierFlags(bve(ut)),xi=jo(ut,Ie),Ri=zT(ut),Ur=Ri&&d(Ri,Ie);return Ie.flags=Mr,k.createTypeParameterDeclaration(fi,xi,Pn,Ur)}function vt(ut,Ie,Pn=Pd(ut)){let Mr=Pn&&d(Pn,Ie);return Je(ut,Ie,Mr)}function Rt(ut){let Ie=dl(ut,169);if(Ie)return Ie;if(!fh(ut))return dl(ut,348)}function sn(ut,Ie,Pn,Mr,fi){let xi=Rt(ut),Ri=pr(ut);xi&&w7e(xi)&&(Ri=jb(Ri));let Ur=As(Ie,Ri,ut,Ie.enclosingDeclaration,Mr,fi),Dr=!(Ie.flags&8192)&&Pn&&xi&&Cm(xi)?Ft(b1(xi),k.cloneNode):void 0,Ot=xi&&$h(xi)||Al(ut)&32768?k.createToken(26):void 0,tn=un(ut,xi,Ie),dn=xi&&S4(xi)||Al(ut)&16384?k.createToken(58):void 0,Wn=k.createParameterDeclaration(Dr,Ot,tn,dn,Ur,void 0);return Ie.approximateLength+=bl(ut).length+3,Wn}function un(ut,Ie,Pn){return Ie&&Ie.name?Ie.name.kind===80?fr(k.cloneNode(Ie.name),16777216):Ie.name.kind===166?fr(k.cloneNode(Ie.name.right),16777216):Mr(Ie.name):bl(ut);function Mr(fi){return xi(fi);function xi(Ri){Pn.tracker.canTrackSymbol&&Za(Ri)&&lge(Ri)&&sr(Ri.expression,Pn.enclosingDeclaration,Pn);let Ur=An(Ri,xi,void 0,void 0,xi);return Qa(Ur)&&(Ur=k.updateBindingElement(Ur,Ur.dotDotDotToken,Ur.propertyName,Ur.name,void 0)),Xs(Ur)||(Ur=k.cloneNode(Ur)),fr(Ur,16777217)}}}function sr(ut,Ie,Pn){if(!Pn.tracker.canTrackSymbol)return;let Mr=Bp(ut),fi=vl(Mr,Mr.escapedText,1160127,void 0,void 0,!0);fi&&Pn.tracker.trackSymbol(fi,Ie,111551)}function Ln(ut,Ie,Pn,Mr){return Ie.tracker.trackSymbol(ut,Ie.enclosingDeclaration,Pn),cn(ut,Ie,Pn,Mr)}function cn(ut,Ie,Pn,Mr){let fi;return!(ut.flags&262144)&&(Ie.enclosingDeclaration||Ie.flags&64)&&!(Ie.flags&134217728)?(fi=C.checkDefined(Ri(ut,Pn,!0)),C.assert(fi&&fi.length>0)):fi=[ut],fi;function Ri(Ur,Dr,ct){let Ot=Sb(Ur,Ie.enclosingDeclaration,Dr,!!(Ie.flags&128)),tn;if(!Ot||X0(Ot[0],Ie.enclosingDeclaration,Ot.length===1?Dr:sv(Dr))){let dn=J0(Ot?Ot[0]:Ur,Ie.enclosingDeclaration,Dr);if(De(dn)){tn=dn.map(mi=>Et(mi.declarations,Zu)?Hn(mi,Ie):void 0);let Wn=dn.map((mi,fo)=>fo);Wn.sort($t);let Si=Wn.map(mi=>dn[mi]);for(let mi of Si){let fo=Ri(mi,sv(Dr),!1);if(fo){if(mi.exports&&mi.exports.get("export=")&&c_(mi.exports.get("export="),Ur)){Ot=fo;break}Ot=fo.concat(Ot||[yg(mi,Ur)||Ur]);break}}}}if(Ot)return Ot;if(ct||!(Ur.flags&6144))return!ct&&!Mr&&Ke(Ur.declarations,Zu)?void 0:[Ur];function $t(dn,Wn){let Si=tn[dn],mi=tn[Wn];if(Si&&mi){let fo=wp(mi);return wp(Si)===fo?G5(Si)-G5(mi):fo?-1:1}return 0}}}function Fn(ut,Ie){let Pn;return MD(ut).flags&524384&&(Pn=k.createNodeArray(Ft(kr(ut),fi=>vt(fi,Ie)))),Pn}function kn(ut,Ie,Pn){var Mr;C.assert(ut&&0<=Ie&&Iezb(Ot,Dr.links.mapper)),Pn)}else Ri=Fn(fi,Pn)}return Ri}function Zn(ut){return wS(ut.objectType)?Zn(ut.objectType):ut}function Hn(ut,Ie,Pn){let Mr=dl(ut,312);if(!Mr){let ct=Zt(ut.declarations,Ot=>NT(Ot,ut));ct&&(Mr=dl(ct,312))}if(Mr&&Mr.moduleName!==void 0)return Mr.moduleName;if(!Mr){if(Ie.tracker.trackReferencedAmbientModule){let ct=tr(ut.declarations,Lu);if(De(ct))for(let Ot of ct)Ie.tracker.trackReferencedAmbientModule(Ot,ut)}if(Wq.test(ut.escapedName))return ut.escapedName.substring(1,ut.escapedName.length-1)}if(!Ie.enclosingDeclaration||!Ie.tracker.moduleResolverHost)return Wq.test(ut.escapedName)?ut.escapedName.substring(1,ut.escapedName.length-1):Vn(mj(ut)).fileName;let fi=Vn(Nl(Ie.enclosingDeclaration)),xi=Pn||fi?.impliedNodeFormat,Ri=WN(fi.path,xi),Ur=$i(ut),Dr=Ur.specifierCache&&Ur.specifierCache.get(Ri);if(!Dr){let ct=!!Ps(V),{moduleResolverHost:Ot}=Ie.tracker,tn=ct?{...V,baseUrl:Ot.getCommonSourceDirectory()}:V;Dr=Ha(UAe(ut,Qt,tn,fi,Ot,{importModuleSpecifierPreference:ct?"non-relative":"project-relative",importModuleSpecifierEnding:ct?"minimal":xi===99?"js":void 0},{overrideImportMode:Pn})),Ur.specifierCache??(Ur.specifierCache=new Map),Ur.specifierCache.set(Ri,Dr)}return Dr}function er(ut){let Ie=k.createIdentifier(Hi(ut.escapedName));return ut.parent?k.createQualifiedName(er(ut.parent),Ie):Ie}function Mo(ut,Ie,Pn,Mr){let fi=Ln(ut,Ie,Pn,!(Ie.flags&16384)),xi=Pn===111551;if(Et(fi[0].declarations,Zu)){let Dr=fi.length>1?Ur(fi,fi.length-1,1):void 0,ct=Mr||kn(fi,0,Ie),Ot=Vn(Nl(Ie.enclosingDeclaration)),tn=O6(fi[0]),$t,dn;if((dd(V)===3||dd(V)===99)&&tn?.impliedNodeFormat===99&&tn.impliedNodeFormat!==Ot?.impliedNodeFormat&&($t=Hn(fi[0],Ie,99),dn=k.createImportAttributes(k.createNodeArray([k.createImportAttribute(k.createStringLiteral("resolution-mode"),k.createStringLiteral("import"))]))),$t||($t=Hn(fi[0],Ie)),!(Ie.flags&67108864)&&dd(V)!==1&&$t.includes("/node_modules/")){let Si=$t;if(dd(V)===3||dd(V)===99){let mi=Ot?.impliedNodeFormat===99?1:99;$t=Hn(fi[0],Ie,mi),$t.includes("/node_modules/")?$t=Si:dn=k.createImportAttributes(k.createNodeArray([k.createImportAttribute(k.createStringLiteral("resolution-mode"),k.createStringLiteral(mi===99?"import":"require"))]))}dn||(Ie.encounteredError=!0,Ie.tracker.reportLikelyUnsafeImportRequiredError&&Ie.tracker.reportLikelyUnsafeImportRequiredError(Si))}let Wn=k.createLiteralTypeNode(k.createStringLiteral($t));if(Ie.tracker.trackExternalModuleSymbolOfImportTypeNode&&Ie.tracker.trackExternalModuleSymbolOfImportTypeNode(fi[0]),Ie.approximateLength+=$t.length+10,!Dr||Qd(Dr)){if(Dr){let Si=Ve(Dr)?Dr:Dr.right;Uv(Si,void 0)}return k.createImportTypeNode(Wn,dn,Dr,ct,xi)}else{let Si=Zn(Dr),mi=Si.objectType.typeName;return k.createIndexedAccessTypeNode(k.createImportTypeNode(Wn,dn,mi,ct,xi),Si.indexType)}}let Ri=Ur(fi,fi.length-1,0);if(wS(Ri))return Ri;if(xi)return k.createTypeQueryNode(Ri);{let Dr=Ve(Ri)?Ri:Ri.right,ct=PS(Dr);return Uv(Dr,void 0),k.createTypeReferenceNode(Ri,ct)}function Ur(Dr,ct,Ot){let tn=ct===Dr.length-1?Mr:kn(Dr,ct,Ie),$t=Dr[ct],dn=Dr[ct-1],Wn;if(ct===0)Ie.flags|=16777216,Wn=Y0($t,Ie),Ie.approximateLength+=(Wn?Wn.length:0)+1,Ie.flags^=16777216;else if(dn&&Dp(dn)){let mi=Dp(dn);Bc(mi,(fo,xn)=>{if(c_(fo,$t)&&!y4(xn)&&xn!=="export=")return Wn=Hi(xn),!0})}if(Wn===void 0){let mi=Zt($t.declarations,Oo);if(mi&&Za(mi)&&Qd(mi.expression)){let fo=Ur(Dr,ct-1,Ot);return Qd(fo)?k.createIndexedAccessTypeNode(k.createParenthesizedType(k.createTypeQueryNode(fo)),k.createTypeQueryNode(mi.expression)):fo}Wn=Y0($t,Ie)}if(Ie.approximateLength+=Wn.length+1,!(Ie.flags&16)&&dn&&Lb(dn)&&Lb(dn).get($t.escapedName)&&c_(Lb(dn).get($t.escapedName),$t)){let mi=Ur(Dr,ct-1,Ot);return wS(mi)?k.createIndexedAccessTypeNode(mi,k.createLiteralTypeNode(k.createStringLiteral(Wn))):k.createIndexedAccessTypeNode(k.createTypeReferenceNode(mi,tn),k.createLiteralTypeNode(k.createStringLiteral(Wn)))}let Si=fr(k.createIdentifier(Wn),16777216);if(tn&&Uv(Si,k.createNodeArray(tn)),Si.symbol=$t,ct>Ot){let mi=Ur(Dr,ct-1,Ot);return Qd(mi)?k.createQualifiedName(mi,Si):C.fail("Impossible construct - an export of an indexed access cannot be reachable")}return Si}}function Ao(ut,Ie,Pn){let Mr=vl(Ie.enclosingDeclaration,ut,788968,void 0,ut,!1);return Mr&&Mr.flags&262144?Mr!==Pn.symbol:!1}function jo(ut,Ie){var Pn,Mr;if(Ie.flags&4&&Ie.typeParameterNames){let xi=Ie.typeParameterNames.get(gd(ut));if(xi)return xi}let fi=vo(ut.symbol,Ie,788968,!0);if(!(fi.kind&80))return k.createIdentifier("(Missing type parameter)");if(Ie.flags&4){let xi=fi.escapedText,Ri=((Pn=Ie.typeParameterNamesByTextNextNameCount)==null?void 0:Pn.get(xi))||0,Ur=xi;for(;(Mr=Ie.typeParameterNamesByText)!=null&&Mr.has(Ur)||Ao(Ur,Ie,ut);)Ri++,Ur=`${xi}_${Ri}`;if(Ur!==xi){let Dr=PS(fi);fi=k.createIdentifier(Ur),Uv(fi,Dr)}(Ie.typeParameterNamesByTextNextNameCount||(Ie.typeParameterNamesByTextNextNameCount=new Map)).set(xi,Ri),(Ie.typeParameterNames||(Ie.typeParameterNames=new Map)).set(gd(ut),fi),(Ie.typeParameterNamesByText||(Ie.typeParameterNamesByText=new Set)).add(Ur)}return fi}function vo(ut,Ie,Pn,Mr){let fi=Ln(ut,Ie,Pn);return Mr&&fi.length!==1&&!Ie.encounteredError&&!(Ie.flags&65536)&&(Ie.encounteredError=!0),xi(fi,fi.length-1);function xi(Ri,Ur){let Dr=kn(Ri,Ur,Ie),ct=Ri[Ur];Ur===0&&(Ie.flags|=16777216);let Ot=Y0(ct,Ie);Ur===0&&(Ie.flags^=16777216);let tn=fr(k.createIdentifier(Ot),16777216);return Dr&&Uv(tn,k.createNodeArray(Dr)),tn.symbol=ct,Ur>0?k.createQualifiedName(xi(Ri,Ur-1),tn):tn}}function Dc(ut,Ie,Pn){let Mr=Ln(ut,Ie,Pn);return fi(Mr,Mr.length-1);function fi(xi,Ri){let Ur=kn(xi,Ri,Ie),Dr=xi[Ri];Ri===0&&(Ie.flags|=16777216);let ct=Y0(Dr,Ie);Ri===0&&(Ie.flags^=16777216);let Ot=ct.charCodeAt(0);if(kL(Ot)&&Et(Dr.declarations,Zu))return k.createStringLiteral(Hn(Dr,Ie));if(Ri===0||LU(ct,ue)){let tn=fr(k.createIdentifier(ct),16777216);return Ur&&Uv(tn,k.createNodeArray(Ur)),tn.symbol=Dr,Ri>0?k.createPropertyAccessExpression(fi(xi,Ri-1),tn):tn}else{Ot===91&&(ct=ct.substring(1,ct.length-1),Ot=ct.charCodeAt(0));let tn;if(kL(Ot)&&!(Dr.flags&8)?tn=k.createStringLiteral(em(ct).replace(/\\./g,$t=>$t.substring(1)),Ot===39):""+ +ct===ct&&(tn=k.createNumericLiteral(+ct)),!tn){let $t=fr(k.createIdentifier(ct),16777216);Ur&&Uv($t,k.createNodeArray(Ur)),$t.symbol=Dr,tn=$t}return k.createElementAccessExpression(fi(xi,Ri-1),tn)}}}function Uf(ut){let Ie=Oo(ut);return Ie?Za(Ie)?!!(go(Ie.expression).flags&402653316):Ys(Ie)?!!(go(Ie.argumentExpression).flags&402653316):Na(Ie):!1}function up(ut){let Ie=Oo(ut);return!!(Ie&&Na(Ie)&&(Ie.singleQuote||!Xs(Ie)&&uo(pc(Ie,!1),"'")))}function Mn(ut,Ie){let Pn=!!De(ut.declarations)&&Jn(ut.declarations,Uf),Mr=!!De(ut.declarations)&&Jn(ut.declarations,up),fi=!!(ut.flags&8192),xi=Qn(ut,Ie,Mr,Pn,fi);if(xi)return xi;let Ri=Hi(ut.escapedName);return e7(Ri,as(V),Mr,Pn,fi)}function Qn(ut,Ie,Pn,Mr,fi){let xi=$i(ut).nameType;if(xi){if(xi.flags&384){let Ri=""+xi.value;return!$p(Ri,as(V))&&(Mr||!sg(Ri))?k.createStringLiteral(Ri,!!Pn):sg(Ri)&&uo(Ri,"-")?k.createComputedPropertyName(k.createPrefixUnaryExpression(41,k.createNumericLiteral(-Ri))):e7(Ri,as(V),Pn,Mr,fi)}if(xi.flags&8192)return k.createComputedPropertyName(Dc(xi.symbol,Ie,111551))}}function lo(ut){let Ie={...ut};return Ie.typeParameterNames&&(Ie.typeParameterNames=new Map(Ie.typeParameterNames)),Ie.typeParameterNamesByText&&(Ie.typeParameterNamesByText=new Set(Ie.typeParameterNamesByText)),Ie.typeParameterSymbolList&&(Ie.typeParameterSymbolList=new Set(Ie.typeParameterSymbolList)),Ie.tracker=new Bq(Ie,Ie.tracker.inner,Ie.tracker.moduleResolverHost),Ie}function Er(ut,Ie){return ut.declarations&&vn(ut.declarations,Pn=>!!yu(Pn)&&(!Ie||!!zn(Pn,Mr=>Mr===Ie)))}function ko(ut,Ie){return!(Wr(Ie)&4)||!Rf(ut)||De(ut.typeArguments)>=zh(Ie.target.typeParameters)}function ls(ut){for(;ti(ut).fakeScopeForSignatureDeclaration;)ut=ut.parent;return ut}function As(ut,Ie,Pn,Mr,fi,xi){if(!qt(Ie)&&Mr){let Dr=Er(Pn,ls(Mr));if(Dr&&!zs(Dr)&&!Zp(Dr)){let ct=yu(Dr);if(Vu(ct,Dr,Ie)&&ko(ct,Ie)){let Ot=Ol(ut,ct,fi,xi);if(Ot)return Ot}}}let Ri=ut.flags;Ie.flags&8192&&Ie.symbol===Pn&&(!ut.enclosingDeclaration||Et(Pn.declarations,Dr=>Vn(Dr)===Vn(ut.enclosingDeclaration)))&&(ut.flags|=1048576);let Ur=d(Ie,ut);return ut.flags=Ri,Ur}function Vu(ut,Ie,Pn){let Mr=Ii(ut);return Mr===Pn?!0:Co(Ie)&&Ie.questionToken?_m(Pn,524288)===Mr:!1}function za(ut,Ie,Pn,Mr,fi){if(!qt(Ie)&&ut.enclosingDeclaration){let xi=Pn.declaration&&tm(Pn.declaration),Ri=ls(ut.enclosingDeclaration);if(zn(xi,Ur=>Ur===Ri)&&xi){let Ur=Ii(xi);if((Ur.flags&262144&&Ur.isThisType?co(Ur,Pn.mapper):Ur)===Ie&&ko(xi,Ie)){let ct=Ol(ut,xi,Mr,fi);if(ct)return ct}}}return d(Ie,ut)}function Ld(ut,Ie,Pn){let Mr=!1,fi=Bp(ut);if(cr(ut)&&(yS(fi)||tg(fi.parent)||Ad(fi.parent)&&Mj(fi.parent.left)&&yS(fi.parent.right)))return Mr=!0,{introducesError:Mr,node:ut};let xi=Ff(ut),Ri=Us(fi,xi,!0,!0);if(Ri&&(wi(Ri,Ie.enclosingDeclaration,xi,!1).accessibility!==0?Mr=!0:(Ie.tracker.trackSymbol(Ri,Ie.enclosingDeclaration,xi),Pn?.(Ri)),Ve(ut))){let Ur=Qs(Ri),Dr=Ri.flags&262144?jo(Ur,Ie):k.cloneNode(ut);return Dr.symbol=Ri,{introducesError:Mr,node:fr(Pr(Dr,ut),16777216)}}return{introducesError:Mr,node:ut}}function Ol(ut,Ie,Pn,Mr){i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let fi=!1,xi=Vn(Ie),Ri=rt(Ie,Ur,qi);if(fi)return;return Ri===Ie?dt(k.cloneNode(Ie),Ie):Ri;function Ur(Dr){if(Bae(Dr)||Dr.kind===326)return k.createKeywordTypeNode(133);if(Gae(Dr))return k.createKeywordTypeNode(159);if(VR(Dr))return k.createUnionTypeNode([rt(Dr.type,Ur,qi),k.createLiteralTypeNode(k.createNull())]);if(IH(Dr))return k.createUnionTypeNode([rt(Dr.type,Ur,qi),k.createKeywordTypeNode(157)]);if(n5(Dr))return rt(Dr.type,Ur);if(r5(Dr))return k.createArrayTypeNode(rt(Dr.type,Ur,qi));if(GS(Dr))return k.createTypeLiteralNode(Ft(Dr.jsDocPropertyTags,$t=>{let dn=Ve($t.name)?$t.name:$t.name.right,Wn=Xe(Ii(Dr),dn.escapedText),Si=Wn&&$t.typeExpression&&Ii($t.typeExpression.type)!==Wn?d(Wn,ut):void 0;return k.createPropertySignature(void 0,dn,$t.isBracketed||$t.typeExpression&&IH($t.typeExpression.type)?k.createToken(58):void 0,Si||$t.typeExpression&&rt($t.typeExpression.type,Ur,qi)||k.createKeywordTypeNode(133))}));if(Rf(Dr)&&Ve(Dr.typeName)&&Dr.typeName.escapedText==="")return Pr(k.createKeywordTypeNode(133),Dr);if((Hv(Dr)||Rf(Dr))&&o3(Dr))return k.createTypeLiteralNode([k.createIndexSignature(void 0,[k.createParameterDeclaration(void 0,void 0,"x",void 0,rt(Dr.typeArguments[0],Ur,qi))],rt(Dr.typeArguments[1],Ur,qi))]);if(jR(Dr))if(pR(Dr)){let $t;return k.createConstructorTypeNode(void 0,Bn(Dr.typeParameters,Ur,_l),Vi(Dr.parameters,(dn,Wn)=>dn.name&&Ve(dn.name)&&dn.name.escapedText==="new"?($t=dn.type,void 0):k.createParameterDeclaration(void 0,ct(dn),Ot(dn,Wn),dn.questionToken,rt(dn.type,Ur,qi),void 0)),rt($t||Dr.type,Ur,qi)||k.createKeywordTypeNode(133))}else return k.createFunctionTypeNode(Bn(Dr.typeParameters,Ur,_l),Ft(Dr.parameters,($t,dn)=>k.createParameterDeclaration(void 0,ct($t),Ot($t,dn),$t.questionToken,rt($t.type,Ur,qi),void 0)),rt(Dr.type,Ur,qi)||k.createKeywordTypeNode(133));if(Rf(Dr)&&LL(Dr)&&(!ko(Dr,Ii(Dr))||IOe(Dr)||ft===yD(Dr,788968,!0)))return Pr(d(Ii(Dr),ut),Dr);if(zy(Dr)){let $t=ti(Dr).resolvedSymbol;return LL(Dr)&&$t&&(!Dr.isTypeOf&&!($t.flags&788968)||!(De(Dr.typeArguments)>=zh(kr($t))))?Pr(d(Ii(Dr),ut),Dr):k.updateImportTypeNode(Dr,k.updateLiteralTypeNode(Dr.argument,tn(Dr,Dr.argument.literal)),Dr.attributes,Dr.qualifier,Bn(Dr.typeArguments,Ur,qi),Dr.isTypeOf)}if(Qd(Dr)||zl(Dr)){let{introducesError:$t,node:dn}=Ld(Dr,ut,Pn);if(fi=fi||$t,dn!==Dr)return dn}return xi&&iI(Dr)&&Es(xi,Dr.pos).line===Es(xi,Dr.end).line&&fr(Dr,1),An(Dr,Ur,void 0);function ct($t){return $t.dotDotDotToken||($t.type&&r5($t.type)?k.createToken(26):void 0)}function Ot($t,dn){return $t.name&&Ve($t.name)&&$t.name.escapedText==="this"?"this":ct($t)?"args":`arg${dn}`}function tn($t,dn){if(Mr){if(ut.tracker&&ut.tracker.moduleResolverHost){let Wn=Ibe($t);if(Wn){let mi={getCanonicalFileName:Pu(!!e.useCaseSensitiveFileNames),getCurrentDirectory:()=>ut.tracker.moduleResolverHost.getCurrentDirectory(),getCommonSourceDirectory:()=>ut.tracker.moduleResolverHost.getCommonSourceDirectory()},fo=v3(mi,Wn);return k.createStringLiteral(fo)}}}else if(ut.tracker&&ut.tracker.trackExternalModuleSymbolOfImportTypeNode){let Wn=ov(dn,dn,void 0);Wn&&ut.tracker.trackExternalModuleSymbolOfImportTypeNode(Wn)}return dn}}}function yl(ut,Ie,Pn){var Mr;let fi=_s(k.createPropertyDeclaration,174,!0),xi=_s((Mt,Nr,_i,Xr)=>k.createPropertySignature(Mt,Nr,_i,Xr),173,!1),Ri=Ie.enclosingDeclaration,Ur=[],Dr=new Set,ct=[],Ot=Ie;Ie={...Ot,usedSymbolNames:new Set(Ot.usedSymbolNames),remappedSymbolNames:new Map,remappedSymbolReferences:new Map((Mr=Ot.remappedSymbolReferences)==null?void 0:Mr.entries()),tracker:void 0};let tn={...Ot.tracker.inner,trackSymbol:(Mt,Nr,_i)=>{var Xr,di;if((Xr=Ie.remappedSymbolNames)!=null&&Xr.has(Ta(Mt)))return!1;if(wi(Mt,Nr,_i,!1).accessibility===0){let da=cn(Mt,Ie,_i);if(!(Mt.flags&4)){let qo=da[0],Ws=Vn(Ot.enclosingDeclaration);Et(qo.declarations,hs=>Vn(hs)===Ws)&&cs(qo)}}else if((di=Ot.tracker.inner)!=null&&di.trackSymbol)return Ot.tracker.inner.trackSymbol(Mt,Nr,_i);return!1}};Ie.tracker=new Bq(Ie,tn,Ot.tracker.moduleResolverHost),Bc(ut,(Mt,Nr)=>{let _i=Hi(Nr);Hm(Mt,_i)});let $t=!Pn,dn=ut.get("export=");return dn&&ut.size>1&&dn.flags&2098688&&(ut=ua(),ut.set("export=",dn)),fa(ut),ni(Ur);function Wn(Mt){return!!Mt&&Mt.kind===80}function Si(Mt){return Ml(Mt)?tr(Ft(Mt.declarationList.declarations,Oo),Wn):tr([Oo(Mt)],Wn)}function mi(Mt){let Nr=vn(Mt,Ll),_i=ri(Mt,Jl),Xr=_i!==-1?Mt[_i]:void 0;if(Xr&&Nr&&Nr.isExportEquals&&Ve(Nr.expression)&&Ve(Xr.name)&&Sr(Xr.name)===Sr(Nr.expression)&&Xr.body&&k_(Xr.body)){let di=tr(Mt,qo=>!!(cd(qo)&32)),rs=Xr.name,da=Xr.body;if(De(di)&&(Xr=k.updateModuleDeclaration(Xr,Xr.modifiers,Xr.name,da=k.updateModuleBlock(da,k.createNodeArray([...Xr.body.statements,k.createExportDeclaration(void 0,!1,k.createNamedExports(Ft(Zi(di,qo=>Si(qo)),qo=>k.createExportSpecifier(!1,void 0,qo))),void 0)]))),Mt=[...Mt.slice(0,_i),Xr,...Mt.slice(_i+1)]),!vn(Mt,qo=>qo!==Xr&&nL(qo,rs))){Ur=[];let qo=!Et(da.statements,Ws=>ei(Ws,32)||Ll(Ws)||Kl(Ws));Ke(da.statements,Ws=>{Js(Ws,qo?32:0)}),Mt=[...tr(Mt,Ws=>Ws!==Xr&&Ws!==Nr),...Ur]}}return Mt}function fo(Mt){let Nr=tr(Mt,Xr=>Kl(Xr)&&!Xr.moduleSpecifier&&!!Xr.exportClause&&Df(Xr.exportClause));De(Nr)>1&&(Mt=[...tr(Mt,di=>!Kl(di)||!!di.moduleSpecifier||!di.exportClause),k.createExportDeclaration(void 0,!1,k.createNamedExports(Zi(Nr,di=>aa(di.exportClause,Df).elements)),void 0)]);let _i=tr(Mt,Xr=>Kl(Xr)&&!!Xr.moduleSpecifier&&!!Xr.exportClause&&Df(Xr.exportClause));if(De(_i)>1){let Xr=$D(_i,di=>Na(di.moduleSpecifier)?">"+di.moduleSpecifier.text:">");if(Xr.length!==_i.length)for(let di of Xr)di.length>1&&(Mt=[...tr(Mt,rs=>!di.includes(rs)),k.createExportDeclaration(void 0,!1,k.createNamedExports(Zi(di,rs=>aa(rs.exportClause,Df).elements)),di[0].moduleSpecifier)])}return Mt}function xn(Mt){let Nr=ri(Mt,_i=>Kl(_i)&&!_i.moduleSpecifier&&!_i.attributes&&!!_i.exportClause&&Df(_i.exportClause));if(Nr>=0){let _i=Mt[Nr],Xr=Vi(_i.exportClause.elements,di=>{if(!di.propertyName){let rs=DM(Mt),da=tr(rs,qo=>nL(Mt[qo],di.name));if(De(da)&&Jn(da,qo=>gk(Mt[qo]))){for(let qo of da)Mt[qo]=Ui(Mt[qo]);return}}return di});De(Xr)?Mt[Nr]=k.updateExportDeclaration(_i,_i.modifiers,_i.isTypeOnly,k.updateNamedExports(_i.exportClause,Xr),_i.moduleSpecifier,_i.attributes):Iy(Mt,Nr)}return Mt}function ni(Mt){return Mt=mi(Mt),Mt=fo(Mt),Mt=xn(Mt),Ri&&(no(Ri)&&Fp(Ri)||Jl(Ri))&&(!Et(Mt,fL)||!Fre(Mt)&&Et(Mt,I6))&&Mt.push(Jk(k)),Mt}function Ui(Mt){let Nr=(cd(Mt)|32)&-129;return k.replaceModifiers(Mt,Nr)}function mo(Mt){let Nr=cd(Mt)&-33;return k.replaceModifiers(Mt,Nr)}function fa(Mt,Nr,_i){Nr||ct.push(new Map),Mt.forEach(Xr=>{bc(Xr,!1,!!_i)}),Nr||(ct[ct.length-1].forEach(Xr=>{bc(Xr,!0,!!_i)}),ct.pop())}function bc(Mt,Nr,_i){let Xr=is(Mt);if(Dr.has(Ta(Xr)))return;if(Dr.add(Ta(Xr)),!Nr||De(Mt.declarations)&&Et(Mt.declarations,rs=>!!zn(rs,da=>da===Ri))){let rs=Ie;Ie=lo(Ie),Cl(Mt,Nr,_i),Ie.reportedDiagnostic&&(Ot.reportedDiagnostic=Ie.reportedDiagnostic),Ie.trackedSymbols&&(rs.trackedSymbols?C.assert(Ie.trackedSymbols===rs.trackedSymbols):rs.trackedSymbols=Ie.trackedSymbols),Ie=rs}}function Cl(Mt,Nr,_i,Xr=Mt.escapedName){var di,rs,da,qo,Ws,hs;let Ba=Hi(Xr),Du=Xr==="default";if(Nr&&!(Ie.flags&131072)&&OA(Ba)&&!Du){Ie.encounteredError=!0;return}let Cu=Du&&!!(Mt.flags&-113||Mt.flags&16&&De(ys(pr(Mt))))&&!(Mt.flags&2097152),yd=!Cu&&!Nr&&OA(Ba)&&!Du;(Cu||yd)&&(Nr=!0);let Ul=(Nr?0:32)|(Du&&!Cu?2048:0),Nu=Mt.flags&1536&&Mt.flags&7&&Xr!=="export=",Kd=Nu&&Ns(pr(Mt),Mt);if((Mt.flags&8208||Kd)&&Sn(pr(Mt),Mt,Hm(Mt,Ba),Ul),Mt.flags&524288&&b_(Mt,Ba,Ul),Mt.flags&98311&&Xr!=="export="&&!(Mt.flags&4194304)&&!(Mt.flags&32)&&!(Mt.flags&8192)&&!Kd)if(_i)Ra(Mt)&&(yd=!1,Cu=!1);else{let ou=pr(Mt),Lp=Hm(Mt,Ba);if(ou.symbol&&ou.symbol!==Mt&&ou.symbol.flags&16&&Et(ou.symbol.declarations,B1)&&((di=ou.symbol.members)!=null&&di.size||(rs=ou.symbol.exports)!=null&&rs.size))Ie.remappedSymbolReferences||(Ie.remappedSymbolReferences=new Map),Ie.remappedSymbolReferences.set(Ta(ou.symbol),Mt),Cl(ou.symbol,Nr,_i,Xr),Ie.remappedSymbolReferences.delete(Ta(ou.symbol));else if(!(Mt.flags&16)&&Ns(ou,Mt))Sn(ou,Mt,Lp,Ul);else{let Tx=Mt.flags&2?iM(Mt)?2:1:(da=Mt.parent)!=null&&da.valueDeclaration&&no((qo=Mt.parent)==null?void 0:qo.valueDeclaration)?2:void 0,rh=Cu||!(Mt.flags&4)?Lp:E_(Lp,Mt),Jb=Mt.declarations&&vn(Mt.declarations,o8=>Oi(o8));Jb&&jc(Jb.parent)&&Jb.parent.declarations.length===1&&(Jb=Jb.parent.parent);let Kb=(Ws=Mt.declarations)==null?void 0:Ws.find(zr);if(Kb&&_r(Kb.parent)&&Ve(Kb.parent.right)&&((hs=ou.symbol)!=null&&hs.valueDeclaration)&&no(ou.symbol.valueDeclaration)){let o8=Lp===Kb.parent.right.escapedText?void 0:Kb.parent.right;Js(k.createExportDeclaration(void 0,!1,k.createNamedExports([k.createExportSpecifier(!1,o8,Lp)])),0),Ie.tracker.trackSymbol(ou.symbol,Ie.enclosingDeclaration,111551)}else{let o8=dt(k.createVariableStatement(void 0,k.createVariableDeclarationList([k.createVariableDeclaration(rh,void 0,As(Ie,ou,Mt,Ri,cs,Pn))],Tx)),Jb);Js(o8,rh!==Lp?Ul&-33:Ul),rh!==Lp&&!Nr&&(Js(k.createExportDeclaration(void 0,!1,k.createNamedExports([k.createExportSpecifier(!1,rh,Lp)])),0),yd=!1,Cu=!1)}}}if(Mt.flags&384&&Cr(Mt,Ba,Ul),Mt.flags&32&&(Mt.flags&4&&Mt.valueDeclaration&&_r(Mt.valueDeclaration.parent)&&Zc(Mt.valueDeclaration.parent.right)?Ti(Mt,Hm(Mt,Ba),Ul):ha(Mt,Hm(Mt,Ba),Ul)),(Mt.flags&1536&&(!Nu||en(Mt))||Kd)&&Kn(Mt,Ba,Ul),Mt.flags&64&&!(Mt.flags&32)&&it(Mt,Ba,Ul),Mt.flags&2097152&&Ti(Mt,Hm(Mt,Ba),Ul),Mt.flags&4&&Mt.escapedName==="export="&&Ra(Mt),Mt.flags&8388608&&Mt.declarations)for(let ou of Mt.declarations){let Lp=_d(ou,ou.moduleSpecifier);Lp&&Js(k.createExportDeclaration(void 0,ou.isTypeOnly,void 0,k.createStringLiteral(Hn(Lp,Ie))),0)}Cu?Js(k.createExportAssignment(void 0,!1,k.createIdentifier(Hm(Mt,Ba))),0):yd&&Js(k.createExportDeclaration(void 0,!1,k.createNamedExports([k.createExportSpecifier(!1,Hm(Mt,Ba),Ba)])),0)}function cs(Mt){if(Et(Mt.declarations,L1))return;C.assertIsDefined(ct[ct.length-1]),E_(Hi(Mt.escapedName),Mt);let Nr=!!(Mt.flags&2097152)&&!Et(Mt.declarations,_i=>!!zn(_i,Kl)||Sh(_i)||tu(_i)&&!Th(_i.moduleReference));ct[Nr?0:ct.length-1].set(Ta(Mt),Mt)}function Cc(Mt){return no(Mt)&&(Fp(Mt)||$f(Mt))||Lu(Mt)&&!I_(Mt)}function Js(Mt,Nr){if(Cm(Mt)){let _i=0,Xr=Ie.enclosingDeclaration&&(Qf(Ie.enclosingDeclaration)?Vn(Ie.enclosingDeclaration):Ie.enclosingDeclaration);Nr&32&&Xr&&(Cc(Xr)||Jl(Xr))&&gk(Mt)&&(_i|=32),$t&&!(_i&32)&&(!Xr||!(Xr.flags&33554432))&&(v0(Mt)||Ml(Mt)||Sc(Mt)||Tc(Mt)||Jl(Mt))&&(_i|=128),Nr&2048&&(Tc(Mt)||fd(Mt)||Sc(Mt))&&(_i|=2048),_i&&(Mt=k.replaceModifiers(Mt,_i|cd(Mt)))}Ur.push(Mt)}function b_(Mt,Nr,_i){var Xr;let di=kwe(Mt),rs=$i(Mt).typeParameters,da=Ft(rs,Cu=>vt(Cu,Ie)),qo=(Xr=Mt.declarations)==null?void 0:Xr.find(Qf),Ws=oL(qo?qo.comment||qo.parent.comment:void 0),hs=Ie.flags;Ie.flags|=8388608;let Ba=Ie.enclosingDeclaration;Ie.enclosingDeclaration=qo;let Du=qo&&qo.typeExpression&&Z1(qo.typeExpression)&&Ol(Ie,qo.typeExpression.type,cs,Pn)||d(di,Ie);Js(g0(k.createTypeAliasDeclaration(void 0,Hm(Mt,Nr),da,Du),Ws?[{kind:3,text:`* + * `+Ws.replace(/\n/g,` + * `)+` + `,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),_i),Ie.flags=hs,Ie.enclosingDeclaration=Ba}function it(Mt,Nr,_i){let Xr=zf(Mt),di=kr(Mt),rs=Ft(di,yd=>vt(yd,Ie)),da=Np(Xr),qo=De(da)?Ea(da):void 0,Ws=Zi(ys(Xr),yd=>Nc(yd,qo)),hs=Uh(0,Xr,qo,179),Ba=Uh(1,Xr,qo,180),Du=Sv(Xr,qo),Cu=De(da)?[k.createHeritageClause(96,Vi(da,yd=>oA(yd,111551)))]:void 0;Js(k.createInterfaceDeclaration(void 0,Hm(Mt,Nr),rs,Cu,[...Du,...Ba,...hs,...Ws]),_i)}function Tt(Mt){let Nr=Vo(Dp(Mt).values()),_i=is(Mt);if(_i!==Mt){let Xr=new Set(Nr);for(let di of Dp(_i).values())Au(Gl(di))&111551||Xr.add(di);Nr=Vo(Xr)}return tr(Nr,Xr=>zi(Xr)&&$p(Xr.escapedName,99))}function en(Mt){return Jn(Tt(Mt),Nr=>!(Au(Gl(Nr))&111551))}function Kn(Mt,Nr,_i){let Xr=Tt(Mt),di=NM(Xr,qo=>qo.parent&&qo.parent===Mt?"real":"merged"),rs=di.get("real")||et,da=di.get("merged")||et;if(De(rs)){let qo=Hm(Mt,Nr);Hr(rs,qo,_i,!!(Mt.flags&67108880))}if(De(da)){let qo=Vn(Ie.enclosingDeclaration),Ws=Hm(Mt,Nr),hs=k.createModuleBlock([k.createExportDeclaration(void 0,!1,k.createNamedExports(Vi(tr(da,Ba=>Ba.escapedName!=="export="),Ba=>{var Du,Cu;let yd=Hi(Ba.escapedName),Ul=Hm(Ba,yd),Nu=Ba.declarations&&Fm(Ba);if(qo&&(Nu?qo!==Vn(Nu):!Et(Ba.declarations,Lp=>Vn(Lp)===qo))){(Cu=(Du=Ie.tracker)==null?void 0:Du.reportNonlocalAugmentation)==null||Cu.call(Du,qo,Mt,Ba);return}let Kd=Nu&&jp(Nu,!0);cs(Kd||Ba);let ou=Kd?Hm(Kd,Hi(Kd.escapedName)):Ul;return k.createExportSpecifier(!1,yd===ou?void 0:ou,yd)})))]);Js(k.createModuleDeclaration(void 0,k.createIdentifier(Ws),hs,32),0)}}function Cr(Mt,Nr,_i){Js(k.createEnumDeclaration(k.createModifiersFromModifierFlags(qye(Mt)?4096:0),Hm(Mt,Nr),Ft(tr(ys(pr(Mt)),Xr=>!!(Xr.flags&8)),Xr=>{let di=Xr.declarations&&Xr.declarations[0]&&Q1(Xr.declarations[0])?Sbe(Xr.declarations[0]):void 0;return k.createEnumMember(Hi(Xr.escapedName),di===void 0?void 0:typeof di=="string"?k.createStringLiteral(di):k.createNumericLiteral(di))})),_i)}function Sn(Mt,Nr,_i,Xr){let di=Yo(Mt,0);for(let rs of di){let da=be(rs,262,Ie,{name:k.createIdentifier(_i),privateSymbolVisitor:cs,bundledImports:Pn});Js(dt(da,yr(rs)),Xr)}if(!(Nr.flags&1536&&Nr.exports&&Nr.exports.size)){let rs=tr(ys(Mt),zi);Hr(rs,_i,Xr,!0)}}function yr(Mt){if(Mt.declaration&&Mt.declaration.parent){if(_r(Mt.declaration.parent)&&Wl(Mt.declaration.parent)===5)return Mt.declaration.parent;if(Oi(Mt.declaration.parent)&&Mt.declaration.parent.parent)return Mt.declaration.parent.parent}return Mt.declaration}function Hr(Mt,Nr,_i,Xr){if(De(Mt)){let rs=NM(Mt,Ul=>!De(Ul.declarations)||Et(Ul.declarations,Nu=>Vn(Nu)===Vn(Ie.enclosingDeclaration))?"local":"remote").get("local")||et,da=Ah.createModuleDeclaration(void 0,k.createIdentifier(Nr),k.createModuleBlock([]),32);qa(da,Ri),da.locals=ua(Mt),da.symbol=Mt[0].parent;let qo=Ur;Ur=[];let Ws=$t;$t=!1;let hs={...Ie,enclosingDeclaration:da},Ba=Ie;Ie=hs,fa(ua(rs),Xr,!0),Ie=Ba,$t=Ws;let Du=Ur;Ur=qo;let Cu=Ft(Du,Ul=>Ll(Ul)&&!Ul.isExportEquals&&Ve(Ul.expression)?k.createExportDeclaration(void 0,!1,k.createNamedExports([k.createExportSpecifier(!1,Ul.expression,k.createIdentifier("default"))])):Ul),yd=Jn(Cu,Ul=>ei(Ul,32))?Ft(Cu,mo):Cu;da=k.updateModuleDeclaration(da,da.modifiers,da.name,k.createModuleBlock(yd)),Js(da,_i)}}function zi(Mt){return!!(Mt.flags&2887656)||!(Mt.flags&4194304||Mt.escapedName==="prototype"||Mt.valueDeclaration&&sa(Mt.valueDeclaration)&&pi(Mt.valueDeclaration.parent))}function Go(Mt){let Nr=Vi(Mt,_i=>{let Xr=Ie.enclosingDeclaration;Ie.enclosingDeclaration=_i;let di=_i.expression;if(zl(di)){if(Ve(di)&&Sr(di)==="")return rs(void 0);let da;if({introducesError:da,node:di}=Ld(di,Ie,cs),da)return rs(void 0)}return rs(k.createExpressionWithTypeArguments(di,Ft(_i.typeArguments,da=>Ol(Ie,da,cs,Pn)||d(Ii(da),Ie))));function rs(da){return Ie.enclosingDeclaration=Xr,da}});if(Nr.length===Mt.length)return Nr}function ha(Mt,Nr,_i){var Xr,di;let rs=(Xr=Mt.declarations)==null?void 0:Xr.find(pi),da=Ie.enclosingDeclaration;Ie.enclosingDeclaration=rs||da;let qo=kr(Mt),Ws=Ft(qo,ih=>vt(ih,Ie)),hs=qp(zf(Mt)),Ba=Np(hs),Du=rs&&_R(rs),Cu=Du&&Go(Du)||Vi(p_(hs),gM),yd=pr(Mt),Ul=!!((di=yd.symbol)!=null&&di.valueDeclaration)&&pi(yd.symbol.valueDeclaration),Nu=Ul?Cp(yd):j,Kd=[...De(Ba)?[k.createHeritageClause(96,Ft(Ba,ih=>iA(ih,Nu,Nr)))]:[],...De(Cu)?[k.createHeritageClause(119,Cu)]:[]],ou=Dht(hs,Ba,ys(hs)),Lp=tr(ou,ih=>{let vM=ih.valueDeclaration;return!!vM&&!(od(vM)&&Xi(vM.name))}),rh=Et(ou,ih=>{let vM=ih.valueDeclaration;return!!vM&&od(vM)&&Xi(vM.name)})?[k.createPropertyDeclaration(void 0,k.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:et,Jb=Zi(Lp,ih=>fi(ih,!1,Ba[0])),Kb=Zi(tr(ys(yd),ih=>!(ih.flags&4194304)&&ih.escapedName!=="prototype"&&!zi(ih)),ih=>fi(ih,!0,Nu)),Hvt=!Ul&&!!Mt.valueDeclaration&&cr(Mt.valueDeclaration)&&!Et(Yo(yd,1))?[k.createConstructorDeclaration(k.createModifiersFromModifierFlags(2),[],void 0)]:Uh(1,yd,Nu,176),qvt=Sv(hs,Ba[0]);Ie.enclosingDeclaration=da,Js(dt(k.createClassDeclaration(void 0,Nr,Ws,Kd,[...qvt,...Kb,...Hvt,...Jb,...rh]),Mt.declarations&&tr(Mt.declarations,ih=>Tc(ih)||Zc(ih))[0]),_i)}function ga(Mt){return Zt(Mt,Nr=>{if(tp(Nr)||Ju(Nr))return Sr(Nr.propertyName||Nr.name);if(_r(Nr)||Ll(Nr)){let _i=Ll(Nr)?Nr.expression:Nr.right;if(zr(_i))return Sr(_i.name)}if(hb(Nr)){let _i=Oo(Nr);if(_i&&Ve(_i))return Sr(_i)}})}function Ti(Mt,Nr,_i){var Xr,di,rs,da,qo,Ws;let hs=Fm(Mt);if(!hs)return C.fail();let Ba=is(jp(hs,!0));if(!Ba)return;let Du=SC(Ba)&&ga(Mt.declarations)||Hi(Ba.escapedName);Du==="export="&&$&&(Du="default");let Cu=Hm(Ba,Du);switch(cs(Ba),hs.kind){case 208:if(((di=(Xr=hs.parent)==null?void 0:Xr.parent)==null?void 0:di.kind)===260){let Nu=Hn(Ba.parent||Ba,Ie),{propertyName:Kd}=hs;Js(k.createImportDeclaration(void 0,k.createImportClause(!1,void 0,k.createNamedImports([k.createImportSpecifier(!1,Kd&&Ve(Kd)?k.createIdentifier(Sr(Kd)):void 0,k.createIdentifier(Nr))])),k.createStringLiteral(Nu),void 0),0);break}C.failBadSyntaxKind(((rs=hs.parent)==null?void 0:rs.parent)||hs,"Unhandled binding element grandparent kind in declaration serialization");break;case 304:((qo=(da=hs.parent)==null?void 0:da.parent)==null?void 0:qo.kind)===226&&zo(Hi(Mt.escapedName),Cu);break;case 260:if(zr(hs.initializer)){let Nu=hs.initializer,Kd=k.createUniqueName(Nr),ou=Hn(Ba.parent||Ba,Ie);Js(k.createImportEqualsDeclaration(void 0,!1,Kd,k.createExternalModuleReference(k.createStringLiteral(ou))),0),Js(k.createImportEqualsDeclaration(void 0,!1,k.createIdentifier(Nr),k.createQualifiedName(Kd,Nu.name)),_i);break}case 271:if(Ba.escapedName==="export="&&Et(Ba.declarations,Nu=>no(Nu)&&$f(Nu))){Ra(Mt);break}let yd=!(Ba.flags&512)&&!Oi(hs);Js(k.createImportEqualsDeclaration(void 0,!1,k.createIdentifier(Nr),yd?vo(Ba,Ie,-1,!1):k.createExternalModuleReference(k.createStringLiteral(Hn(Ba,Ie)))),yd?_i:0);break;case 270:Js(k.createNamespaceExportDeclaration(Sr(hs.name)),0);break;case 273:{let Nu=Hn(Ba.parent||Ba,Ie),Kd=Pn?k.createStringLiteral(Nu):hs.parent.moduleSpecifier;Js(k.createImportDeclaration(void 0,k.createImportClause(!1,k.createIdentifier(Nr),void 0),Kd,hs.parent.attributes),0);break}case 274:{let Nu=Hn(Ba.parent||Ba,Ie),Kd=Pn?k.createStringLiteral(Nu):hs.parent.parent.moduleSpecifier;Js(k.createImportDeclaration(void 0,k.createImportClause(!1,void 0,k.createNamespaceImport(k.createIdentifier(Nr))),Kd,hs.parent.attributes),0);break}case 280:Js(k.createExportDeclaration(void 0,!1,k.createNamespaceExport(k.createIdentifier(Nr)),k.createStringLiteral(Hn(Ba,Ie))),0);break;case 276:{let Nu=Hn(Ba.parent||Ba,Ie),Kd=Pn?k.createStringLiteral(Nu):hs.parent.parent.parent.moduleSpecifier;Js(k.createImportDeclaration(void 0,k.createImportClause(!1,void 0,k.createNamedImports([k.createImportSpecifier(!1,Nr!==Du?k.createIdentifier(Du):void 0,k.createIdentifier(Nr))])),Kd,hs.parent.parent.parent.attributes),0);break}case 281:let Ul=hs.parent.parent.moduleSpecifier;Ul&&((Ws=hs.propertyName)==null?void 0:Ws.escapedText)==="default"&&(Du="default"),zo(Hi(Mt.escapedName),Ul?Du:Cu,Ul&&us(Ul)?k.createStringLiteral(Ul.text):void 0);break;case 277:Ra(Mt);break;case 226:case 211:case 212:Mt.escapedName==="default"||Mt.escapedName==="export="?Ra(Mt):zo(Nr,Cu);break;default:return C.failBadSyntaxKind(hs,"Unhandled alias declaration kind in symbol serializer!")}}function zo(Mt,Nr,_i){Js(k.createExportDeclaration(void 0,!1,k.createNamedExports([k.createExportSpecifier(!1,Mt!==Nr?Nr:void 0,Mt)]),_i),0)}function Ra(Mt){var Nr;if(Mt.flags&4194304)return!1;let _i=Hi(Mt.escapedName),Xr=_i==="export=",rs=Xr||_i==="default",da=Mt.declarations&&Fm(Mt),qo=da&&jp(da,!0);if(qo&&De(qo.declarations)&&Et(qo.declarations,Ws=>Vn(Ws)===Vn(Ri))){let Ws=da&&(Ll(da)||_r(da)?Gj(da):zie(da)),hs=Ws&&zl(Ws)?Vht(Ws):void 0,Ba=hs&&Us(hs,-1,!0,!0,Ri);(Ba||qo)&&cs(Ba||qo);let Du=Ie.tracker.disableTrackSymbol;if(Ie.tracker.disableTrackSymbol=!0,rs)Ur.push(k.createExportAssignment(void 0,Xr,Dc(qo,Ie,-1)));else if(hs===Ws&&hs)zo(_i,Sr(hs));else if(Ws&&Zc(Ws))zo(_i,Hm(qo,bl(qo)));else{let Cu=E_(_i,Mt);Js(k.createImportEqualsDeclaration(void 0,!1,k.createIdentifier(Cu),vo(qo,Ie,-1,!1)),0),zo(_i,Cu)}return Ie.tracker.disableTrackSymbol=Du,!0}else{let Ws=E_(_i,Mt),hs=Jp(pr(is(Mt)));if(Ns(hs,Mt))Sn(hs,Mt,Ws,rs?0:32);else{let Ba=((Nr=Ie.enclosingDeclaration)==null?void 0:Nr.kind)===267&&(!(Mt.flags&98304)||Mt.flags&65536)?1:2,Du=k.createVariableStatement(void 0,k.createVariableDeclarationList([k.createVariableDeclaration(Ws,void 0,As(Ie,hs,Mt,Ri,cs,Pn))],Ba));Js(Du,qo&&qo.flags&4&&qo.escapedName==="export="?128:_i===Ws?32:0)}return rs?(Ur.push(k.createExportAssignment(void 0,Xr,k.createIdentifier(Ws))),!0):_i!==Ws?(zo(_i,Ws),!0):!1}}function Ns(Mt,Nr){let _i=Vn(Ie.enclosingDeclaration);return Wr(Mt)&48&&!De(hd(Mt))&&!PE(Mt)&&!!(De(tr(ys(Mt),zi))||De(Yo(Mt,0)))&&!De(Yo(Mt,1))&&!Er(Nr,Ri)&&!(Mt.symbol&&Et(Mt.symbol.declarations,Xr=>Vn(Xr)!==_i))&&!Et(ys(Mt),Xr=>y4(Xr.escapedName))&&!Et(ys(Mt),Xr=>Et(Xr.declarations,di=>Vn(di)!==_i))&&Jn(ys(Mt),Xr=>$p(bl(Xr),ue)?Xr.flags&98304?Pb(Xr)===ME(Xr):!0:!1)}function _s(Mt,Nr,_i){return function(di,rs,da){var qo,Ws,hs,Ba,Du;let Cu=If(di),yd=!!(Cu&2);if(rs&&di.flags&2887656)return[];if(di.flags&4194304||di.escapedName==="constructor"||da&&ba(da,di.escapedName)&&y_(ba(da,di.escapedName))===y_(di)&&(di.flags&16777216)===(ba(da,di.escapedName).flags&16777216)&&hv(pr(di),Xe(da,di.escapedName)))return[];let Ul=Cu&-1025|(rs?256:0),Nu=Mn(di,Ie),Kd=(qo=di.declarations)==null?void 0:qo.find(Xm(Jo,Ly,Oi,gp,_r,zr));if(di.flags&98304&&_i){let ou=[];if(di.flags&65536){let Lp=di.declarations&&Ke(di.declarations,rh=>{if(rh.kind===178)return rh;if(la(rh)&&bS(rh))return Ke(rh.arguments[2].properties,Jb=>{let Kb=Oo(Jb);if(Kb&&Ve(Kb)&&Sr(Kb)==="set")return Jb})});C.assert(!!Lp);let Tx=zs(Lp)?pm(Lp).parameters[0]:void 0;ou.push(dt(k.createSetAccessorDeclaration(k.createModifiersFromModifierFlags(Ul),Nu,[k.createParameterDeclaration(void 0,void 0,Tx?un(Tx,Rt(Tx),Ie):"value",void 0,yd?void 0:As(Ie,pr(di),di,Ri,cs,Pn))],void 0),((Ws=di.declarations)==null?void 0:Ws.find(wv))||Kd))}if(di.flags&32768){let Lp=Cu&2;ou.push(dt(k.createGetAccessorDeclaration(k.createModifiersFromModifierFlags(Ul),Nu,[],Lp?void 0:As(Ie,pr(di),di,Ri,cs,Pn),void 0),((hs=di.declarations)==null?void 0:hs.find(wy))||Kd))}return ou}else if(di.flags&98311)return dt(Mt(k.createModifiersFromModifierFlags((y_(di)?8:0)|Ul),Nu,di.flags&16777216?k.createToken(58):void 0,yd?void 0:As(Ie,ME(di),di,Ri,cs,Pn),void 0),((Ba=di.declarations)==null?void 0:Ba.find(Xm(Jo,Oi)))||Kd);if(di.flags&8208){let ou=pr(di),Lp=Yo(ou,0);if(Ul&2)return dt(Mt(k.createModifiersFromModifierFlags((y_(di)?8:0)|Ul),Nu,di.flags&16777216?k.createToken(58):void 0,void 0,void 0),((Du=di.declarations)==null?void 0:Du.find(zs))||Lp[0]&&Lp[0].declaration||di.declarations&&di.declarations[0]);let Tx=[];for(let rh of Lp){let Jb=be(rh,Nr,Ie,{name:Nu,questionToken:di.flags&16777216?k.createToken(58):void 0,modifiers:Ul?k.createModifiersFromModifierFlags(Ul):void 0}),Kb=rh.declaration&&GL(rh.declaration.parent)?rh.declaration.parent:rh.declaration;Tx.push(dt(Jb,Kb))}return Tx}return C.fail(`Unhandled class member kind! ${di.__debugFlags||di.flags}`)}}function Nc(Mt,Nr){return xi(Mt,!1,Nr)}function Uh(Mt,Nr,_i,Xr){let di=Yo(Nr,Mt);if(Mt===1){if(!_i&&Jn(di,qo=>De(qo.parameters)===0))return[];if(_i){let qo=Yo(_i,1);if(!De(qo)&&Jn(di,Ws=>De(Ws.parameters)===0))return[];if(qo.length===di.length){let Ws=!1;for(let hs=0;hsd(di,Ie)),Xr=Dc(Mt.target.symbol,Ie,788968)):Mt.symbol&&an(Mt.symbol,Ri,Nr)&&(Xr=Dc(Mt.symbol,Ie,788968)),Xr)return k.createExpressionWithTypeArguments(Xr,_i)}function gM(Mt){let Nr=oA(Mt,788968);if(Nr)return Nr;if(Mt.symbol)return k.createExpressionWithTypeArguments(Dc(Mt.symbol,Ie,788968),void 0)}function E_(Mt,Nr){var _i,Xr;let di=Nr?Ta(Nr):void 0;if(di&&Ie.remappedSymbolNames.has(di))return Ie.remappedSymbolNames.get(di);Nr&&(Mt=Sx(Nr,Mt));let rs=0,da=Mt;for(;(_i=Ie.usedSymbolNames)!=null&&_i.has(Mt);)rs++,Mt=`${da}_${rs}`;return(Xr=Ie.usedSymbolNames)==null||Xr.add(Mt),di&&Ie.remappedSymbolNames.set(di,Mt),Mt}function Sx(Mt,Nr){if(Nr==="default"||Nr==="__class"||Nr==="__function"){let _i=Ie.flags;Ie.flags|=16777216;let Xr=Y0(Mt,Ie);Ie.flags=_i,Nr=Xr.length>0&&kL(Xr.charCodeAt(0))?em(Xr):Xr}return Nr==="default"?Nr="_default":Nr==="export="&&(Nr="_exports"),Nr=$p(Nr,ue)&&!OA(Nr)?Nr:"_"+Nr.replace(/[^a-zA-Z0-9]/g,"_"),Nr}function Hm(Mt,Nr){let _i=Ta(Mt);return Ie.remappedSymbolNames.has(_i)?Ie.remappedSymbolNames.get(_i):(Nr=Sx(Mt,Nr),Ie.remappedSymbolNames.set(_i,Nr),Nr)}}}function wh(n,a,c=16384,d){return d?_(d).getText():bC(_);function _(y){let x=k.createTypePredicateNode(n.kind===2||n.kind===3?k.createToken(131):void 0,n.kind===1||n.kind===3?k.createIdentifier(n.parameterName):k.createThisTypeNode(),n.type&&At.typeToTypeNode(n.type,a,MT(c)|70221824|512)),L=oE(),z=a&&Vn(a);return L.writeNode(4,x,z,y),y}}function lD(n){let a=[],c=0;for(let d=0;dOo(x)?x:void 0),y=_&&Oo(_);if(_&&y){if(la(_)&&bS(_))return bl(n);if(Za(y)&&!(Al(n)&4096)){let x=$i(n).nameType;if(x&&x.flags&384){let L=h4(n,a);if(L!==void 0)return L}}return Ds(y)}if(_||(_=n.declarations[0]),_.parent&&_.parent.kind===260)return Ds(_.parent.name);switch(_.kind){case 231:case 218:case 219:return a&&!a.encounteredError&&!(a.flags&131072)&&(a.encounteredError=!0),_.kind===231?"(Anonymous class)":"(Anonymous function)"}}let d=h4(n,a);return d!==void 0?d:bl(n)}function u_(n){if(n){let c=ti(n);return c.isVisible===void 0&&(c.isVisible=!!a()),c.isVisible}return!1;function a(){switch(n.kind){case 345:case 353:case 347:return!!(n.parent&&n.parent.parent&&n.parent.parent.parent&&no(n.parent.parent.parent));case 208:return u_(n.parent.parent);case 260:if(ta(n.name)&&!n.name.elements.length)return!1;case 267:case 263:case 264:case 265:case 262:case 266:case 271:if(I1(n))return!0;let c=Q(n);return!(Ste(n)&32)&&!(n.kind!==271&&c.kind!==312&&c.flags&33554432)?Nh(c):u_(c);case 172:case 171:case 177:case 178:case 174:case 173:if(_p(n,6))return!1;case 176:case 180:case 179:case 181:case 169:case 268:case 184:case 185:case 187:case 183:case 188:case 189:case 192:case 193:case 196:case 202:return u_(n.parent);case 273:case 274:case 276:return!1;case 168:case 312:case 270:return!0;case 277:return!1;default:return!1}}}function FP(n,a){let c;n.parent&&n.parent.kind===277?c=vl(n,n.escapedText,2998271,void 0,n,!1):n.parent.kind===281&&(c=U0(n.parent,2998271));let d,_;return c&&(_=new Set,_.add(Ta(c)),y(c.declarations)),d;function y(x){Ke(x,L=>{let z=vT(L)||L;if(a?ti(L).isVisible=!0:(d=d||[],bf(d,z)),sR(L)){let U=L.moduleReference,re=Bp(U),be=vl(L,re.escapedText,901119,void 0,void 0,!1);be&&_&&Av(_,Ta(be))&&y(be.declarations)}})}}function Oh(n,a){let c=cx(n,a);if(c>=0){let{length:d}=mu;for(let _=c;_=VI;c--){if(g4(mu[c],w0[c]))return-1;if(mu[c]===n&&w0[c]===a)return c}return-1}function g4(n,a){switch(a){case 0:return!!$i(n).type;case 5:return!!ti(n).resolvedEnumType;case 2:return!!$i(n).declaredType;case 1:return!!n.resolvedBaseConstructorType;case 3:return!!n.resolvedReturnType;case 4:return!!n.immediateBaseConstraint;case 6:return!!n.resolvedTypeArguments;case 7:return!!n.baseTypesResolved;case 8:return!!$i(n).writeType;case 9:return ti(n).parameterInitializerContainsUndefined!==void 0}return C.assertNever(a)}function X_(){return mu.pop(),w0.pop(),Zg.pop()}function Q(n){return zn(D_(n),a=>{switch(a.kind){case 260:case 261:case 276:case 275:case 274:case 273:return!1;default:return!0}}).parent}function Re(n){let a=Qs(Cd(n));return a.typeParameters?fy(a,Ft(a.typeParameters,c=>j)):a}function Xe(n,a){let c=ba(n,a);return c?pr(c):void 0}function It(n,a){var c;let d;return Xe(n,a)||(d=(c=px(n,a))==null?void 0:c.type)&&lp(d,!0,!0)}function Ct(n){return n&&(n.flags&1)!==0}function qt(n){return n===ht||!!(n.flags&1&&n.aliasSymbol)}function Br(n,a){if(a!==0)return kT(n,!1,a);let c=Rr(n);return c&&$i(c).type||kT(n,!1,a)}function Fi(n,a,c){if(n=uc(n,z=>!(z.flags&98304)),n.flags&131072)return Pa;if(n.flags&1048576)return ul(n,z=>Fi(z,a,c));let d=ii(Ft(a,_y)),_=[],y=[];for(let z of ys(n)){let U=bD(z,8576);!Sa(U,d)&&!(If(z)&6)&&KZ(z)?_.push(z):y.push(U)}if(jT(n)||UT(d)){if(y.length&&(d=ii([d,...y])),d.flags&131072)return n;let z=Yst();return z?vD(z,[n,d]):ht}let x=ua();for(let z of _)x.set(z.escapedName,ove(z,!1));let L=Ls(c,x,et,et,hd(n));return L.objectFlags|=4194304,L}function Pi(n){return!!(n.flags&465829888)&&Dl(Bu(n)||mn,32768)}function gi(n){let a=jm(n,Pi)?ul(n,c=>c.flags&465829888?fv(c):c):n;return _m(a,524288)}function eo(n,a){let c=fs(n);return c?Hb(c,a):a}function fs(n){let a=Cs(n);if(a&&HL(a)&&a.flowNode){let c=es(n);if(c){let d=dt(Ah.createStringLiteral(c),n),_=Zd(a)?a:Ah.createParenthesizedExpression(a),y=dt(Ah.createElementAccessExpression(_,d),n);return qa(d,y),qa(y,n),_!==a&&qa(_,y),y.flowNode=a.flowNode,y}}}function Cs(n){let a=n.parent.parent;switch(a.kind){case 208:case 303:return fs(a);case 209:return fs(n.parent);case 260:return a.initializer;case 226:return a.right}}function es(n){let a=n.parent;return n.kind===208&&a.kind===206?Wf(n.propertyName||n.name):n.kind===303||n.kind===304?Wf(n.name):""+a.elements.indexOf(n)}function Wf(n){let a=_y(n);return a.flags&384?""+a.value:void 0}function Y_(n){let a=n.dotDotDotToken?32:0,c=Br(n.parent.parent,a);return c&&Sg(n,c,!1)}function Sg(n,a,c){if(Ct(a))return a;let d=n.parent;Y&&n.flags&33554432&&L1(n)?a=yv(a):Y&&d.parent.initializer&&!mm(h8e(d.parent.initializer),65536)&&(a=_m(a,524288));let _;if(d.kind===206)if(n.dotDotDotToken){if(a=__(a),a.flags&2||!Kz(a))return qe(n,f.Rest_types_may_only_be_created_from_object_types),ht;let y=[];for(let x of d.elements)x.dotDotDotToken||y.push(x.propertyName||x.name);_=Fi(a,y,n.symbol)}else{let y=n.propertyName||n.name,x=_y(y),L=Pp(a,x,32,y);_=eo(n,L)}else{let y=yy(65|(n.dotDotDotToken?0:128),a,Oe,d),x=d.elements.indexOf(n);if(n.dotDotDotToken){let L=ul(a,z=>z.flags&58982400?fv(z):z);_=cp(L,Wa)?ul(L,z=>KP(z,x)):Gu(y)}else if(gy(a)){let L=h_(x),z=32|(c||oM(n)?16:0),U=Fb(a,L,z,n.name)||ht;_=eo(n,U)}else _=y}return n.initializer?yu(Vx(n))?Y&&!mm(sM(n,0),16777216)?gi(_):_:Zee(n,ii([gi(_),sM(n,0)],2)):_}function lv(n){let a=i0(n);if(a)return Ii(a)}function cv(n){let a=vs(n,!0);return a.kind===106||a.kind===80&&Vm(a)===je}function Rb(n){let a=vs(n,!0);return a.kind===209&&a.elements.length===0}function lp(n,a=!1,c=!0){return Y&&c?jb(n,a):n}function kT(n,a,c){if(Oi(n)&&n.parent.parent.kind===249){let x=$_(yye(go(n.parent.parent.expression,c)));return x.flags&4456448?ZOe(x):ke}if(Oi(n)&&n.parent.parent.kind===250){let x=n.parent.parent;return bB(x)||j}if(ta(n.parent))return Y_(n);let d=Jo(n)&&!C_(n)||gp(n)||jae(n),_=a&&sN(n),y=ao(n);if(dj(n))return y?Ct(y)||y===mn?y:ht:ve?mn:j;if(y)return lp(y,d,_);if((me||cr(n))&&Oi(n)&&!ta(n.name)&&!(Ste(n)&32)&&!(n.flags&33554432)){if(!(KE(n)&6)&&(!n.initializer||cv(n.initializer)))return ot;if(n.initializer&&Rb(n.initializer))return qc}if(Co(n)){let x=n.parent;if(x.kind===178&&mD(x)){let U=dl(Rr(n.parent),177);if(U){let re=pm(U),be=Dbe(x);return be&&n===be?(C.assert(!be.type),pr(re.thisParameter)):ms(re)}}let L=Sst(x,n);if(L)return L;let z=n.symbol.escapedName==="this"?z8e(x):B8e(n);if(z)return lp(z,!1,_)}if(fS(n)&&n.initializer){if(cr(n)&&!Co(n)){let L=Ua(n,Rr(n),OL(n));if(L)return L}let x=Zee(n,sM(n,c));return lp(x,d,_)}if(Jo(n)&&(me||cr(n)))if(fc(n)){let x=tr(n.parent.members,Il),L=x.length?uv(n.symbol,x):cd(n)&128?see(n.symbol):void 0;return L&&lp(L,!0,_)}else{let x=av(n.parent),L=x?Db(n.symbol,x):cd(n)&128?see(n.symbol):void 0;return L&&lp(L,!0,_)}if(O_(n))return On;if(ta(n.name))return P(n.name,!1,!0)}function cD(n){if(n.valueDeclaration&&_r(n.valueDeclaration)){let a=$i(n);return a.isConstructorDeclaredProperty===void 0&&(a.isConstructorDeclaredProperty=!1,a.isConstructorDeclaredProperty=!!zP(n)&&Jn(n.declarations,c=>_r(c)&&Mee(c)&&(c.left.kind!==212||Qp(c.left.argumentExpression))&&!cc(void 0,c,n,c))),a.isConstructorDeclaredProperty}return!1}function WP(n){let a=n.valueDeclaration;return a&&Jo(a)&&!yu(a)&&!a.initializer&&(me||cr(a))}function zP(n){if(n.declarations)for(let a of n.declarations){let c=wd(a,!1,!1);if(c&&(c.kind===176||th(c)))return c}}function $0(n){let a=Vn(n.declarations[0]),c=Hi(n.escapedName),d=n.declarations.every(y=>cr(y)&&ks(y)&&tg(y.expression)),_=d?k.createPropertyAccessExpression(k.createPropertyAccessExpression(k.createIdentifier("module"),k.createIdentifier("exports")),c):k.createPropertyAccessExpression(k.createIdentifier("exports"),c);return d&&qa(_.expression.expression,_.expression),qa(_.expression,_),qa(_,a),_.flowNode=a.endFlowNode,Hb(_,ot,Oe)}function uv(n,a){let c=uo(n.escapedName,"__#")?k.createPrivateIdentifier(n.escapedName.split("@")[1]):Hi(n.escapedName);for(let d of a){let _=k.createPropertyAccessExpression(k.createThis(),c);qa(_.expression,_),qa(_,d),_.flowNode=d.returnFlowNode;let y=uD(_,n);if(me&&(y===ot||y===qc)&&qe(n.valueDeclaration,f.Member_0_implicitly_has_an_1_type,Ai(n),jn(y)),!cp(y,Qz))return n8(y)}}function Db(n,a){let c=uo(n.escapedName,"__#")?k.createPrivateIdentifier(n.escapedName.split("@")[1]):Hi(n.escapedName),d=k.createPropertyAccessExpression(k.createThis(),c);qa(d.expression,d),qa(d,a),d.flowNode=a.returnFlowNode;let _=uD(d,n);return me&&(_===ot||_===qc)&&qe(n.valueDeclaration,f.Member_0_implicitly_has_an_1_type,Ai(n),jn(_)),cp(_,Qz)?void 0:n8(_)}function uD(n,a){let c=a?.valueDeclaration&&(!WP(a)||cd(a.valueDeclaration)&128)&&see(a)||Oe;return Hb(n,ot,c)}function Hp(n,a){let c=PA(n.valueDeclaration);if(c){let L=cr(c)?r0(c):void 0;return L&&L.typeExpression?Ii(L.typeExpression):n.valueDeclaration&&Ua(n.valueDeclaration,n,c)||BE(ec(c))}let d,_=!1,y=!1;if(cD(n)&&(d=Db(n,zP(n))),!d){let L;if(n.declarations){let z;for(let U of n.declarations){let re=_r(U)||la(U)?U:ks(U)?_r(U.parent)?U.parent:U:void 0;if(!re)continue;let be=ks(re)?BL(re):Wl(re);(be===4||_r(re)&&Mee(re,be))&&(BP(re)?_=!0:y=!0),la(re)||(z=cc(z,re,n,U)),z||(L||(L=[])).push(_r(re)||la(re)?Q0(n,a,re,be):Vr)}d=z}if(!d){if(!De(L))return ht;let z=_&&n.declarations?Cb(L,n.declarations):void 0;if(y){let re=see(n);re&&((z||(z=[])).push(re),_=!0)}let U=Et(z,re=>!!(re.flags&-98305))?z:L;d=ii(U)}}let x=Jp(lp(d,!1,y&&!_));return n.valueDeclaration&&cr(n.valueDeclaration)&&uc(x,L=>!!(L.flags&-98305))===Vr?(c1(n.valueDeclaration,j),j):x}function Ua(n,a,c){var d,_;if(!cr(n)||!c||!wa(c)||c.properties.length)return;let y=ua();for(;_r(n)||zr(n);){let z=ff(n);(d=z?.exports)!=null&&d.size&&l_(y,z.exports),n=_r(n)?n.parent:n.parent.parent}let x=ff(n);(_=x?.exports)!=null&&_.size&&l_(y,x.exports);let L=Ls(a,y,et,et,et);return L.objectFlags|=4096,L}function cc(n,a,c,d){var _;let y=yu(a.parent);if(y){let x=Jp(Ii(y));if(n)!qt(n)&&!qt(x)&&!hv(n,x)&&U3e(void 0,n,d,x);else return x}if((_=c.parent)!=null&&_.valueDeclaration){let x=xE(c.parent);if(x.valueDeclaration){let L=yu(x.valueDeclaration);if(L){let z=ba(Ii(L),c.escapedName);if(z)return Pb(z)}}}return n}function Q0(n,a,c,d){if(la(c)){if(a)return pr(a);let x=ec(c.arguments[2]),L=Xe(x,"value");if(L)return L;let z=Xe(x,"get");if(z){let re=tA(z);if(re)return ms(re)}let U=Xe(x,"set");if(U){let re=tA(U);if(re)return Bye(re)}return j}if(ux(c.left,c.right))return j;let _=d===1&&(zr(c.left)||Ys(c.left))&&(tg(c.left.expression)||Ve(c.left.expression)&&yS(c.left.expression)),y=a?pr(a):_?vd(ec(c.right)):BE(ec(c.right));if(y.flags&524288&&d===2&&n.escapedName==="export="){let x=m_(y),L=ua();L6(x.members,L);let z=L.size;a&&!a.exports&&(a.exports=ua()),(a||n).exports.forEach((re,be)=>{var ge;let Je=L.get(be);if(Je&&Je!==re&&!(re.flags&2097152))if(re.flags&111551&&Je.flags&111551){if(re.valueDeclaration&&Je.valueDeclaration&&Vn(re.valueDeclaration)!==Vn(Je.valueDeclaration)){let Rt=Hi(re.escapedName),sn=((ge=ai(Je.valueDeclaration,od))==null?void 0:ge.name)||Je.valueDeclaration;ka(qe(re.valueDeclaration,f.Duplicate_identifier_0,Rt),Or(sn,f._0_was_also_declared_here,Rt)),ka(qe(sn,f.Duplicate_identifier_0,Rt),Or(re.valueDeclaration,f._0_was_also_declared_here,Rt))}let vt=Xa(re.flags|Je.flags,be);vt.links.type=ii([pr(re),pr(Je)]),vt.valueDeclaration=Je.valueDeclaration,vt.declarations=xo(Je.declarations,re.declarations),L.set(be,vt)}else L.set(be,cm(re,Je));else L.set(be,re)});let U=Ls(z!==L.size?void 0:x.symbol,L,x.callSignatures,x.constructSignatures,x.indexInfos);if(z===L.size&&(y.aliasSymbol&&(U.aliasSymbol=y.aliasSymbol,U.aliasTypeArguments=y.aliasTypeArguments),Wr(y)&4)){U.aliasSymbol=y.symbol;let re=qs(y);U.aliasTypeArguments=De(re)?re:void 0}return U.objectFlags|=Wr(y)&4096,U.symbol&&U.symbol.flags&32&&y===zf(U.symbol)&&(U.objectFlags|=16777216),U}return cee(y)?(c1(c,Ql),Ql):y}function ux(n,a){return zr(n)&&n.expression.kind===110&&PN(a,c=>Iu(n,c))}function BP(n){let a=wd(n,!1,!1);return a.kind===176||a.kind===262||a.kind===218&&!GL(a.parent)}function Cb(n,a){return C.assert(n.length===a.length),n.filter((c,d)=>{let _=a[d],y=_r(_)?_:_r(_.parent)?_.parent:void 0;return y&&BP(y)})}function GP(n,a,c){if(n.initializer){let d=ta(n.name)?P(n.name,!0,!1):mn;return lp(Zee(n,sM(n,c?0:1,d)))}return ta(n.name)?P(n.name,a,c):(c&&!br(n)&&c1(n,j),a?yn:j)}function ar(n,a,c){let d=ua(),_,y=131200;Ke(n.elements,L=>{let z=L.propertyName||L.name;if(L.dotDotDotToken){_=Bh(ke,j,!1);return}let U=_y(z);if(!nm(U)){y|=512;return}let re=rm(U),be=4|(L.initializer?16777216:0),ge=Xa(be,re);ge.links.type=GP(L,a,c),ge.links.bindingElement=L,d.set(ge.escapedName,ge)});let x=Ls(void 0,d,et,et,_?[_]:et);return x.objectFlags|=y,a&&(x.pattern=n,x.objectFlags|=131072),x}function E(n,a,c){let d=n.elements,_=Zs(d),y=_&&_.kind===208&&_.dotDotDotToken?_:void 0;if(d.length===0||d.length===1&&y)return ue>=2?FOe(j):Ql;let x=Ft(d,re=>Vc(re)?j:GP(re,a,c)),L=to(d,re=>!(re===y||Vc(re)||oM(re)),d.length-1)+1,z=Ft(d,(re,be)=>re===y?4:be>=L?2:1),U=Gh(x,z);return a&&(U=vOe(U),U.pattern=n,U.objectFlags|=131072),U}function P(n,a=!1,c=!1){return n.kind===206?ar(n,a,c):E(n,a,c)}function B(n,a){return Jt(kT(n,!0,0),n,a)}function ce(n){let a=ti(n);if(!a.resolvedType){let c=Xa(4096,"__importAttributes"),d=ua();Ke(n.elements,y=>{let x=Xa(4,i7(y));x.parent=c,x.links.type=jht(y),x.links.target=x,d.set(x.escapedName,x)});let _=Ls(c,d,et,et,et);_.objectFlags|=262272,a.resolvedType=_}return a.resolvedType}function $e(n){let a=ff(n),c=Wst(!1);return c&&a&&a===c}function Jt(n,a,c){return n?(n.flags&4096&&$e(a.parent)&&(n=ave(a)),c&&gee(a,n),n.flags&8192&&(Qa(a)||!a.type)&&n.symbol!==Rr(a)&&(n=Di),Jp(n)):(n=Co(a)&&a.dotDotDotToken?Ql:j,c&&(br(a)||c1(a,n)),n)}function br(n){let a=D_(n),c=a.kind===169?a.parent:a;return _B(c)}function ao(n){let a=yu(n);if(a)return Ii(a)}function Hs(n){let a=n.valueDeclaration;return a?(Qa(a)&&(a=Vx(a)),Co(a)?eee(a.parent):!1):!1}function d_(n,a){let c=$i(n);if(!c.type){let d=Nb(n,a);return!c.type&&!Hs(n)&&!a&&(c.type=d),d}return c.type}function Nb(n,a){if(n.flags&4194304)return Re(n);if(n===yt)return j;if(n.flags&134217728&&n.valueDeclaration){let _=Rr(Vn(n.valueDeclaration)),y=Xa(_.flags,"exports");y.declarations=_.declarations?_.declarations.slice():[],y.parent=n,y.links.target=_,_.valueDeclaration&&(y.valueDeclaration=_.valueDeclaration),_.members&&(y.members=new Map(_.members)),_.exports&&(y.exports=new Map(_.exports));let x=ua();return x.set("exports",y),Ls(n,x,et,et,et)}C.assertIsDefined(n.valueDeclaration);let c=n.valueDeclaration;if(no(c)&&$f(c))return c.statements.length?Jp(BE(go(c.statements[0].expression))):Pa;if(Ly(c))return e1(n);if(!Oh(n,0))return n.flags&512&&!(n.flags&67108864)?VP(n):Qa(c)&&a===1?ht:dD(n);let d;if(c.kind===277)d=Jt(ao(c)||ec(c.expression),c);else if(_r(c)||cr(c)&&(la(c)||(zr(c)||c3(c))&&_r(c.parent)))d=Hp(n);else if(zr(c)||Ys(c)||Ve(c)||us(c)||hp(c)||Tc(c)||Sc(c)||jl(c)&&!Im(c)||yh(c)||no(c)){if(n.flags&9136)return VP(n);d=_r(c.parent)?Hp(n):ao(c)||j}else if(_c(c))d=ao(c)||h3e(c);else if(O_(c))d=ao(c)||Q8e(c);else if(np(c))d=ao(c)||cM(c.name,0);else if(Im(c))d=ao(c)||g3e(c,0);else if(Co(c)||Jo(c)||gp(c)||Oi(c)||Qa(c)||mC(c))d=B(c,!0);else if(v0(c))d=VP(n);else if(Q1(c))d=RZ(n);else return C.fail("Unhandled declaration kind! "+C.formatSyntaxKind(c.kind)+" for "+C.formatSymbol(n));return X_()?d:n.flags&512&&!(n.flags&67108864)?VP(n):Qa(c)&&a===1?d:dD(n)}function Gm(n){if(n)switch(n.kind){case 177:return tm(n);case 178:return Xie(n);case 172:return C.assert(C_(n)),yu(n)}}function Z0(n){let a=Gm(n);return a&&Ii(a)}function IZ(n){let a=Dbe(n);return a&&a.symbol}function ige(n){return i1(pm(n))}function e1(n){let a=$i(n);if(!a.type){if(!Oh(n,0))return ht;let c=dl(n,177),d=dl(n,178),_=ai(dl(n,172),kd),y=c&&cr(c)&&lv(c)||Z0(c)||Z0(d)||Z0(_)||c&&c.body&&Yee(c)||_&&_.initializer&&B(_,!0);y||(d&&!_B(d)?_u(me,d,f.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Ai(n)):c&&!_B(c)?_u(me,c,f.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Ai(n)):_&&!_B(_)&&_u(me,_,f.Member_0_implicitly_has_an_1_type,Ai(n),"any"),y=j),X_()||(Gm(c)?qe(c,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Ai(n)):Gm(d)||Gm(_)?qe(d,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Ai(n)):c&&me&&qe(c,f._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,Ai(n)),y=j),a.type=y}return a.type}function oz(n){let a=$i(n);if(!a.writeType){if(!Oh(n,8))return ht;let c=dl(n,178)??ai(dl(n,172),kd),d=Z0(c);X_()||(Gm(c)&&qe(c,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Ai(n)),d=j),a.writeType=d||e1(n)}return a.writeType}function xZ(n){let a=Cp(zf(n));return a.flags&8650752?a:a.flags&2097152?vn(a.types,c=>!!(c.flags&8650752)):void 0}function VP(n){let a=$i(n),c=a;if(!a.type){let d=n.valueDeclaration&&Kee(n.valueDeclaration,!1);if(d){let _=kye(n,d);_&&(n=_,a=_.links)}c.type=a.type=az(n)}return a.type}function az(n){let a=n.valueDeclaration;if(n.flags&1536&&SC(n))return j;if(a&&(a.kind===226||ks(a)&&a.parent.kind===226))return Hp(n);if(n.flags&512&&a&&no(a)&&a.commonJsModuleIndicator){let d=Rp(n);if(d!==n){if(!Oh(n,0))return ht;let _=is(n.exports.get("export=")),y=Hp(_,_===d?void 0:d);return X_()?y:dD(n)}}let c=Of(16,n);if(n.flags&32){let d=xZ(n);return d?Ea([c,d]):c}else return Y&&n.flags&16777216?jb(c,!0):c}function RZ(n){let a=$i(n);return a.type||(a.type=Fwe(n))}function DZ(n){let a=$i(n);if(!a.type){if(!Oh(n,0))return ht;let c=Fc(n),d=n.declarations&&jp(Fm(n),!0),_=Zt(d?.declarations,y=>Ll(y)?ao(y):void 0);if(a.type=d?.declarations&&fte(d.declarations)&&n.declarations.length?$0(d):fte(n.declarations)?ot:_||(Au(c)&111551?pr(c):ht),!X_())return dD(d??n),a.type=ht}return a.type}function oge(n){let a=$i(n);return a.type||(a.type=co(pr(a.target),a.mapper))}function age(n){let a=$i(n);return a.writeType||(a.writeType=co(ME(a.target),a.mapper))}function dD(n){let a=n.valueDeclaration;if(a){if(yu(a))return qe(n.valueDeclaration,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Ai(n)),ht;me&&(a.kind!==169||a.initializer)&&qe(n.valueDeclaration,f._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,Ai(n))}else if(n.flags&2097152){let c=Fm(n);c&&qe(c,f.Circular_definition_of_import_alias_0,Ai(n))}return j}function CZ(n){let a=$i(n);return a.type||(C.assertIsDefined(a.deferralParent),C.assertIsDefined(a.deferralConstituents),a.type=a.deferralParent.flags&1048576?ii(a.deferralConstituents):Ea(a.deferralConstituents)),a.type}function sz(n){let a=$i(n);return!a.writeType&&a.deferralWriteConstituents&&(C.assertIsDefined(a.deferralParent),C.assertIsDefined(a.deferralConstituents),a.writeType=a.deferralParent.flags&1048576?ii(a.deferralWriteConstituents):Ea(a.deferralWriteConstituents)),a.writeType}function ME(n){let a=Al(n);return n.flags&4?a&2?a&65536?sz(n)||CZ(n):n.links.writeType||n.links.type:Ub(pr(n),!!(n.flags&16777216)):n.flags&98304?a&1?age(n):oz(n):pr(n)}function pr(n,a){let c=Al(n);return c&65536?CZ(n):c&1?oge(n):c&262144?rst(n):c&8192?gut(n):n.flags&7?d_(n,a):n.flags&9136?VP(n):n.flags&8?RZ(n):n.flags&98304?e1(n):n.flags&2097152?DZ(n):ht}function Pb(n){return Ub(pr(n),!!(n.flags&16777216))}function Mb(n,a){return n!==void 0&&a!==void 0&&(Wr(n)&4)!==0&&n.target===a}function dy(n){return Wr(n)&4?n.target:n}function pD(n,a){return c(n);function c(d){if(Wr(d)&7){let _=dy(d);return _===a||Et(Np(_),c)}else if(d.flags&2097152)return Et(d.types,c);return!1}}function t1(n,a){for(let c of a)n=Ng(n,wT(Rr(c)));return n}function Cn(n,a){for(;;){if(n=n.parent,n&&_r(n)){let c=Wl(n);if(c===6||c===3){let d=Rr(n.left);d&&d.parent&&!zn(d.parent.valueDeclaration,_=>n===_)&&(n=d.parent.valueDeclaration)}}if(!n)return;switch(n.kind){case 263:case 231:case 264:case 179:case 180:case 173:case 184:case 185:case 324:case 262:case 174:case 218:case 219:case 265:case 352:case 353:case 347:case 345:case 200:case 194:{let d=Cn(n,a);if(n.kind===200)return In(d,wT(Rr(n.typeParameter)));if(n.kind===194)return xo(d,u4e(n));let _=t1(d,Py(n)),y=a&&(n.kind===263||n.kind===231||n.kind===264||th(n))&&zf(Rr(n)).thisType;return y?In(_,y):_}case 348:let c=JL(n);c&&(n=c.valueDeclaration);break;case 327:{let d=Cn(n,a);return n.tags?t1(d,Zi(n.tags,_=>am(_)?_.typeParameters:void 0)):d}}}}function Gr(n){var a;let c=n.flags&32||n.flags&16?n.valueDeclaration:(a=n.declarations)==null?void 0:a.find(d=>{if(d.kind===264)return!0;if(d.kind!==260)return!1;let _=d.initializer;return!!_&&(_.kind===218||_.kind===219)});return C.assert(!!c,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),Cn(c)}function kr(n){if(!n.declarations)return;let a;for(let c of n.declarations)(c.kind===264||c.kind===263||c.kind===231||th(c)||UL(c))&&(a=t1(a,Py(c)));return a}function Wi(n){return xo(Gr(n),kr(n))}function Li(n){let a=Yo(n,1);if(a.length===1){let c=a[0];if(!c.typeParameters&&c.parameters.length===1&&Xu(c)){let d=aB(c.parameters[0]);return Ct(d)||wz(d)===j}}return!1}function os(n){if(Yo(n,1).length>0)return!0;if(n.flags&8650752){let a=Bu(n);return!!a&&Li(a)}return!1}function xs(n){let a=Bg(n.symbol);return a&&x_(a)}function ed(n,a,c){let d=De(a),_=cr(c);return tr(Yo(n,1),y=>(_||d>=zh(y.typeParameters))&&d<=De(y.typeParameters))}function Fh(n,a,c){let d=ed(n,a,c),_=Ft(a,Ii);return Io(d,y=>Et(y.typeParameters)?T4(y,_,cr(c)):y)}function Cp(n){if(!n.resolvedBaseConstructorType){let a=Bg(n.symbol),c=a&&x_(a),d=xs(n);if(!d)return n.resolvedBaseConstructorType=Oe;if(!Oh(n,1))return ht;let _=go(d.expression);if(c&&d!==c&&(C.assert(!c.typeArguments),go(c.expression)),_.flags&2621440&&m_(_),!X_())return qe(n.symbol.valueDeclaration,f._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Ai(n.symbol)),n.resolvedBaseConstructorType=ht;if(!(_.flags&1)&&_!==Ge&&!os(_)){let y=qe(d.expression,f.Type_0_is_not_a_constructor_function_type,jn(_));if(_.flags&262144){let x=HP(_),L=mn;if(x){let z=Yo(x,1);z[0]&&(L=ms(z[0]))}_.symbol.declarations&&ka(y,Or(_.symbol.declarations[0],f.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,Ai(_.symbol),jn(L)))}return n.resolvedBaseConstructorType=ht}n.resolvedBaseConstructorType=_}return n.resolvedBaseConstructorType}function p_(n){let a=et;if(n.symbol.declarations)for(let c of n.symbol.declarations){let d=_R(c);if(d)for(let _ of d){let y=Ii(_);qt(y)||(a===et?a=[y]:a.push(y))}}return a}function dv(n,a){qe(n,f.Type_0_recursively_references_itself_as_a_base_type,jn(a,void 0,2))}function Np(n){if(!n.baseTypesResolved){if(Oh(n,7)&&(n.objectFlags&8?n.resolvedBaseTypes=[fD(n)]:n.symbol.flags&96?(n.symbol.flags&32&&v4(n),n.symbol.flags&64&&Mat(n)):C.fail("type must be class or interface"),!X_()&&n.symbol.declarations))for(let a of n.symbol.declarations)(a.kind===263||a.kind===264)&&dv(a,n);n.baseTypesResolved=!0}return n.resolvedBaseTypes}function fD(n){let a=Io(n.typeParameters,(c,d)=>n.elementFlags[d]&8?Pp(c,Dt):c);return Gu(ii(a||et),n.readonly)}function v4(n){n.resolvedBaseTypes=o7;let a=Md(Cp(n));if(!(a.flags&2621441))return n.resolvedBaseTypes=et;let c=xs(n),d,_=a.symbol?Qs(a.symbol):void 0;if(a.symbol&&a.symbol.flags&32&&Pat(_))d=yOe(c,a.symbol);else if(a.flags&1)d=a;else{let x=Fh(a,c.typeArguments,c);if(!x.length)return qe(c.expression,f.No_base_constructor_has_the_specified_number_of_type_arguments),n.resolvedBaseTypes=et;d=ms(x[0])}if(qt(d))return n.resolvedBaseTypes=et;let y=__(d);if(!lz(y)){let x=bge(void 0,d),L=Uo(x,f.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,jn(y));return ns.add(Og(Vn(c.expression),c.expression,L)),n.resolvedBaseTypes=et}return n===y||pD(y,n)?(qe(n.symbol.valueDeclaration,f.Type_0_recursively_references_itself_as_a_base_type,jn(n,void 0,2)),n.resolvedBaseTypes=et):(n.resolvedBaseTypes===o7&&(n.members=void 0),n.resolvedBaseTypes=[y])}function Pat(n){let a=n.outerTypeParameters;if(a){let c=a.length-1,d=qs(n);return a[c].symbol!==d[c].symbol}return!0}function lz(n){if(n.flags&262144){let a=Bu(n);if(a)return lz(a)}return!!(n.flags&67633153&&!Hd(n)||n.flags&2097152&&Jn(n.types,lz))}function Mat(n){if(n.resolvedBaseTypes=n.resolvedBaseTypes||et,n.symbol.declarations){for(let a of n.symbol.declarations)if(a.kind===264&&MC(a))for(let c of MC(a)){let d=__(Ii(c));qt(d)||(lz(d)?n!==d&&!pD(d,n)?n.resolvedBaseTypes===et?n.resolvedBaseTypes=[d]:n.resolvedBaseTypes.push(d):dv(a,n):qe(c,f.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function Lat(n){if(!n.declarations)return!0;for(let a of n.declarations)if(a.kind===264){if(a.flags&256)return!1;let c=MC(a);if(c){for(let d of c)if(zl(d.expression)){let _=Us(d.expression,788968,!0);if(!_||!(_.flags&64)||zf(_).thisType)return!1}}}return!0}function zf(n){let a=$i(n),c=a;if(!a.declaredType){let d=n.flags&32?1:2,_=kye(n,n.valueDeclaration&&Eft(n.valueDeclaration));_&&(n=_,a=_.links);let y=c.declaredType=a.declaredType=Of(d,n),x=Gr(n),L=kr(n);(x||L||d===1||!Lat(n))&&(y.objectFlags|=4,y.typeParameters=xo(x,L),y.outerTypeParameters=x,y.localTypeParameters=L,y.instantiations=new Map,y.instantiations.set(fm(y.typeParameters),y),y.target=y,y.resolvedTypeArguments=y.typeParameters,y.thisType=_f(n),y.thisType.isThisType=!0,y.thisType.constraint=y)}return a.declaredType}function kwe(n){var a;let c=$i(n);if(!c.declaredType){if(!Oh(n,2))return ht;let d=C.checkDefined((a=n.declarations)==null?void 0:a.find(UL),"Type alias symbol with no valid declaration found"),_=Qf(d)?d.typeExpression:d.type,y=_?Ii(_):ht;if(X_()){let x=kr(n);x&&(c.typeParameters=x,c.instantiations=new Map,c.instantiations.set(fm(x),y))}else y=ht,d.kind===347?qe(d.typeExpression.type,f.Type_alias_0_circularly_references_itself,Ai(n)):qe(od(d)&&d.name||d,f.Type_alias_0_circularly_references_itself,Ai(n));c.declaredType=y}return c.declaredType}function NZ(n){return n.flags&1056&&n.symbol.flags&8?Qs(Cd(n.symbol)):n}function wwe(n){let a=$i(n);if(!a.declaredType){let c=[];if(n.declarations){for(let _ of n.declarations)if(_.kind===266){for(let y of _.members)if(mD(y)){let x=Rr(y),L=kD(y),z=hx(L!==void 0?Qlt(L,Ta(n),x):Owe(x));$i(x).declaredType=z,c.push(vd(z))}}}let d=c.length?ii(c,1,n,void 0):Owe(n);d.flags&1048576&&(d.flags|=1024,d.symbol=n),a.declaredType=d}return a.declaredType}function Owe(n){let a=Eg(32,n),c=Eg(32,n);return a.regularType=a,a.freshType=c,c.regularType=a,c.freshType=c,a}function Fwe(n){let a=$i(n);if(!a.declaredType){let c=wwe(Cd(n));a.declaredType||(a.declaredType=c)}return a.declaredType}function wT(n){let a=$i(n);return a.declaredType||(a.declaredType=_f(n))}function kat(n){let a=$i(n);return a.declaredType||(a.declaredType=Qs(Fc(n)))}function Qs(n){return Wwe(n)||ht}function Wwe(n){if(n.flags&96)return zf(n);if(n.flags&524288)return kwe(n);if(n.flags&262144)return wT(n);if(n.flags&384)return wwe(n);if(n.flags&8)return Fwe(n);if(n.flags&2097152)return kat(n)}function cz(n){switch(n.kind){case 133:case 159:case 154:case 150:case 163:case 136:case 155:case 151:case 116:case 157:case 146:case 201:return!0;case 188:return cz(n.elementType);case 183:return!n.typeArguments||n.typeArguments.every(cz)}return!1}function wat(n){let a=Ux(n);return!a||cz(a)}function zwe(n){let a=yu(n);return a?cz(a):!Oy(n)}function Oat(n){let a=tm(n),c=Py(n);return(n.kind===176||!!a&&cz(a))&&n.parameters.every(zwe)&&c.every(wat)}function Fat(n){if(n.declarations&&n.declarations.length===1){let a=n.declarations[0];if(a)switch(a.kind){case 172:case 171:return zwe(a);case 174:case 173:case 176:case 177:case 178:return Oat(a)}}return!1}function Bwe(n,a,c){let d=ua();for(let _ of n)d.set(_.escapedName,c&&Fat(_)?_:cve(_,a));return d}function Gwe(n,a){for(let c of a){if(Vwe(c))continue;let d=n.get(c.escapedName);(!d||d.valueDeclaration&&_r(d.valueDeclaration)&&!cD(d)&&!Aie(d.valueDeclaration))&&(n.set(c.escapedName,c),n.set(c.escapedName,c))}}function Vwe(n){return!!n.valueDeclaration&&ad(n.valueDeclaration)&&sa(n.valueDeclaration)}function sge(n){if(!n.declaredProperties){let a=n.symbol,c=Lb(a);n.declaredProperties=K0(c),n.declaredCallSignatures=et,n.declaredConstructSignatures=et,n.declaredIndexInfos=et,n.declaredCallSignatures=LE(c.get("__call")),n.declaredConstructSignatures=LE(c.get("__new")),n.declaredIndexInfos=_Oe(a)}return n}function lge(n){if(!Za(n)&&!Ys(n))return!1;let a=Za(n)?n.expression:n.argumentExpression;return zl(a)&&nm(Za(n)?Ig(n):ec(a))}function y4(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)===64}function uz(n){let a=Oo(n);return!!a&&lge(a)}function mD(n){return!By(n)||uz(n)}function Wat(n){return h3(n)&&!lge(n)}function zat(n,a,c){C.assert(!!(Al(n)&4096),"Expected a late-bound symbol."),n.flags|=c,$i(a.symbol).lateSymbol=n,n.declarations?a.symbol.isReplaceableByMethod||n.declarations.push(a):n.declarations=[a],c&111551&&(!n.valueDeclaration||n.valueDeclaration.kind!==a.kind)&&(n.valueDeclaration=a)}function jwe(n,a,c,d){C.assert(!!d.symbol,"The member is expected to have a symbol.");let _=ti(d);if(!_.resolvedSymbol){_.resolvedSymbol=d.symbol;let y=_r(d)?d.left:d.name,x=Ys(y)?ec(y.argumentExpression):Ig(y);if(nm(x)){let L=rm(x),z=d.symbol.flags,U=c.get(L);U||c.set(L,U=Xa(0,L,4096));let re=a&&a.get(L);if(!(n.flags&32)&&(U.flags&mT(z)||re)){let be=re?xo(re.declarations,U.declarations):U.declarations,ge=!(x.flags&8192)&&Hi(L)||Ds(y);Ke(be,Je=>qe(Oo(Je)||Je,f.Property_0_was_also_declared_here,ge)),qe(y||d,f.Duplicate_property_0,ge),U=Xa(0,L,4096)}return U.links.nameType=x,zat(U,d,z),U.parent?C.assert(U.parent===n,"Existing symbol parent should match new one"):U.parent=n,_.resolvedSymbol=U}}return _.resolvedSymbol}function cge(n,a){let c=$i(n);if(!c[a]){let d=a==="resolvedExports",_=d?n.flags&1536?CT(n).exports:n.exports:n.members;c[a]=_||K;let y=ua();for(let z of n.declarations||et){let U=hie(z);if(U)for(let re of U)d===fc(re)&&uz(re)&&jwe(n,_,y,re)}let x=xE(n).assignmentDeclarationMembers;if(x){let z=Vo(x.values());for(let U of z){let re=Wl(U),be=re===3||_r(U)&&Mee(U,re)||re===9||re===6;d===!be&&uz(U)&&jwe(n,_,y,U)}}let L=ZI(_,y);if(n.flags&33554432&&c.cjsExportMerged&&n.declarations)for(let z of n.declarations){let U=$i(z.symbol)[a];if(!L){L=U;continue}U&&U.forEach((re,be)=>{let ge=L.get(be);if(!ge)L.set(be,re);else{if(ge===re)return;L.set(be,cm(ge,re))}})}c[a]=L||K}return c[a]}function Lb(n){return n.flags&6256?cge(n,"resolvedMembers"):n.members||K}function PZ(n){if(n.flags&106500&&n.escapedName==="__computed"){let a=$i(n);if(!a.lateSymbol&&Et(n.declarations,uz)){let c=is(n.parent);Et(n.declarations,fc)?Dp(c):Lb(c)}return a.lateSymbol||(a.lateSymbol=n)}return n}function qp(n,a,c){if(Wr(n)&4){let d=n.target,_=qs(n);return De(d.typeParameters)===De(_)?fy(d,xo(_,[a||d.thisType])):n}else if(n.flags&2097152){let d=Io(n.types,_=>qp(_,a,c));return d!==n.types?Ea(d):n}return c?Md(n):n}function Uwe(n,a,c,d){let _,y,x,L,z;eG(c,d,0,c.length)?(y=a.symbol?Lb(a.symbol):ua(a.declaredProperties),x=a.declaredCallSignatures,L=a.declaredConstructSignatures,z=a.declaredIndexInfos):(_=Mp(c,d),y=Bwe(a.declaredProperties,_,c.length===1),x=QZ(a.declaredCallSignatures,_),L=QZ(a.declaredConstructSignatures,_),z=h4e(a.declaredIndexInfos,_));let U=Np(a);if(U.length){if(a.symbol&&y===Lb(a.symbol)){let be=ua(a.declaredProperties),ge=Dge(a.symbol);ge&&be.set("__index",ge),y=be}hf(n,y,x,L,z);let re=Zs(d);for(let be of U){let ge=re?qp(co(be,_),re):be;Gwe(y,ys(ge)),x=xo(x,Yo(ge,0)),L=xo(L,Yo(ge,1));let Je=ge!==j?hd(ge):[Bh(ke,j,!1)];z=xo(z,tr(Je,vt=>!Ege(z,vt.keyType)))}}hf(n,y,x,L,z)}function Bat(n){Uwe(n,sge(n),et,et)}function Gat(n){let a=sge(n.target),c=xo(a.typeParameters,[a.thisType]),d=qs(n),_=d.length===c.length?d:xo(d,[n]);Uwe(n,a,c,_)}function Tg(n,a,c,d,_,y,x,L){let z=new g(Qt,L);return z.declaration=n,z.typeParameters=a,z.parameters=d,z.thisParameter=c,z.resolvedReturnType=_,z.resolvedTypePredicate=y,z.minArgumentCount=x,z.resolvedMinArgumentCount=void 0,z.target=void 0,z.mapper=void 0,z.compositeSignatures=void 0,z.compositeKind=void 0,z}function b4(n){let a=Tg(n.declaration,n.typeParameters,n.thisParameter,n.parameters,void 0,void 0,n.minArgumentCount,n.flags&167);return a.target=n.target,a.mapper=n.mapper,a.compositeSignatures=n.compositeSignatures,a.compositeKind=n.compositeKind,a}function Hwe(n,a){let c=b4(n);return c.compositeSignatures=a,c.compositeKind=1048576,c.target=void 0,c.mapper=void 0,c}function Vat(n,a){if((n.flags&24)===a)return n;n.optionalCallSignatureCache||(n.optionalCallSignatureCache={});let c=a===8?"inner":"outer";return n.optionalCallSignatureCache[c]||(n.optionalCallSignatureCache[c]=jat(n,a))}function jat(n,a){C.assert(a===8||a===16,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");let c=b4(n);return c.flags|=a,c}function qwe(n,a){if(Xu(n)){let _=n.parameters.length-1,y=n.parameters[_].escapedName,x=pr(n.parameters[_]);if(Wa(x))return[c(x,_,y)];if(!a&&x.flags&1048576&&Jn(x.types,Wa))return Ft(x.types,L=>c(L,_,y))}return[n.parameters];function c(_,y,x){let L=qs(_),z=d(_,x),U=Ft(L,(re,be)=>{let ge=z&&z[be]?z[be]:aM(n,y+be,_),Je=_.target.elementFlags[be],vt=Je&12?32768:Je&2?16384:0,Rt=Xa(1,ge,vt);return Rt.links.type=Je&4?Gu(re):re,Rt});return xo(n.parameters.slice(0,y),U)}function d(_,y){let x=new Map;return Ft(_.target.labeledElementDeclarations,(L,z)=>{let U=zye(L,z,y),re=x.get(U);return re===void 0?(x.set(U,1),U):(x.set(U,re+1),`${U}_${re}`)})}}function Uat(n){let a=Cp(n),c=Yo(a,1),d=Bg(n.symbol),_=!!d&&ei(d,64);if(c.length===0)return[Tg(void 0,n.localTypeParameters,void 0,et,n,void 0,0,_?4:0)];let y=xs(n),x=cr(y),L=vz(y),z=De(L),U=[];for(let re of c){let be=zh(re.typeParameters),ge=De(re.typeParameters);if(x||z>=be&&z<=ge){let Je=ge?OZ(re,wb(L,re.typeParameters,be,x)):b4(re);Je.typeParameters=n.localTypeParameters,Je.resolvedReturnType=n,Je.flags=_?Je.flags|4:Je.flags&-5,U.push(Je)}}return U}function MZ(n,a,c,d,_){for(let y of n)if(Lz(y,a,c,d,_,c?gct:M4))return y}function Hat(n,a,c){if(a.typeParameters){if(c>0)return;for(let _=1;_1&&(c=c===void 0?d:-1);for(let _ of n[d])if(!a||!MZ(a,_,!1,!1,!0)){let y=Hat(n,_,d);if(y){let x=_;if(y.length>1){let L=_.thisParameter,z=Ke(y,U=>U.thisParameter);if(z){let U=Ea(Vi(y,re=>re.thisParameter&&pr(re.thisParameter)));L=JT(z,U)}x=Hwe(_,y),x.thisParameter=L}(a||(a=[])).push(x)}}}if(!De(a)&&c!==-1){let d=n[c!==void 0?c:0],_=d.slice();for(let y of n)if(y!==d){let x=y[0];if(C.assert(!!x,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),_=x.typeParameters&&Et(_,L=>!!L.typeParameters&&!Jwe(x.typeParameters,L.typeParameters))?void 0:Ft(_,L=>Kat(L,x)),!_)break}a=_}return a||et}function Jwe(n,a){if(De(n)!==De(a))return!1;if(!n||!a)return!0;let c=Mp(a,n);for(let d=0;d=_?n:a,x=y===n?a:n,L=y===n?d:_,z=jh(n)||jh(a),U=z&&!jh(y),re=new Array(L+(U?1:0));for(let be=0;be=nh(y)&&be>=nh(x),un=be>=d?void 0:aM(n,be),sr=be>=_?void 0:aM(a,be),Ln=un===sr?un:un?sr?void 0:un:sr,cn=Xa(1|(sn&&!Rt?16777216:0),Ln||`arg${be}`,Rt?32768:sn?16384:0);cn.links.type=Rt?Gu(vt):vt,re[be]=cn}if(U){let be=Xa(1,"args",32768);be.links.type=Gu(v_(x,L)),x===a&&(be.links.type=co(be.links.type,c)),re[L]=be}return re}function Kat(n,a){let c=n.typeParameters||a.typeParameters,d;n.typeParameters&&a.typeParameters&&(d=Mp(a.typeParameters,n.typeParameters));let _=n.declaration,y=Jat(n,a,d),x=qat(n.thisParameter,a.thisParameter,d),L=Math.max(n.minArgumentCount,a.minArgumentCount),z=Tg(_,c,x,y,void 0,void 0,L,(n.flags|a.flags)&167);return z.compositeKind=1048576,z.compositeSignatures=xo(n.compositeKind!==2097152&&n.compositeSignatures||[n],[a]),d?z.mapper=n.compositeKind!==2097152&&n.mapper&&n.compositeSignatures?zE(n.mapper,d):d:n.compositeKind!==2097152&&n.mapper&&n.compositeSignatures&&(z.mapper=n.mapper),z}function Kwe(n){let a=hd(n[0]);if(a){let c=[];for(let d of a){let _=d.keyType;Jn(n,y=>!!Ag(y,_))&&c.push(Bh(_,ii(Ft(n,y=>r1(y,_))),Et(n,y=>Ag(y,_).isReadonly)))}return c}return et}function Xat(n){let a=uge(Ft(n.types,_=>_===wt?[pn]:Yo(_,0))),c=uge(Ft(n.types,_=>Yo(_,1))),d=Kwe(n.types);hf(n,K,a,c,d)}function dz(n,a){return n?a?Ea([n,a]):n:a}function Xwe(n){let a=au(n,d=>Yo(d,1).length>0),c=Ft(n,Li);if(a>0&&a===au(c,d=>d)){let d=c.indexOf(!0);c[d]=!1}return c}function Yat(n,a,c,d){let _=[];for(let y=0;yL);for(let L=0;L<_.length;L++){let z=n.types[L];if(!y[L]){let U=Yo(z,1);U.length&&x>0&&(U=Ft(U,re=>{let be=b4(re);return be.resolvedReturnType=Yat(ms(re),_,y,L),be})),c=Ywe(c,U)}a=Ywe(a,Yo(z,0)),d=nd(hd(z),(U,re)=>$we(U,re,!1),d)}hf(n,K,a||et,c||et,d||et)}function Ywe(n,a){for(let c of a)(!n||Jn(n,d=>!Lz(d,c,!1,!1,!1,M4)))&&(n=In(n,c));return n}function $we(n,a,c){if(n)for(let d=0;d{var z;!(L.flags&418)&&!(L.flags&512&&((z=L.declarations)!=null&&z.length)&&Jn(L.declarations,Lu))&&x.set(L.escapedName,L)}),c=x}let _;if(hf(n,c,et,et,et),a.flags&32){let x=zf(a),L=Cp(x);L.flags&11272192?(c=ua(PT(c)),Gwe(c,ys(L))):L===j&&(_=Bh(ke,j,!1))}let y=FZ(c);if(y?d=Cge(y):(_&&(d=In(d,_)),a.flags&384&&(Qs(a).flags&32||Et(n.properties,x=>!!(pr(x).flags&296)))&&(d=In(d,jr))),hf(n,c,et,et,d||et),a.flags&8208&&(n.callSignatures=LE(a)),a.flags&32){let x=zf(a),L=a.members?LE(a.members.get("__constructor")):et;a.flags&16&&(L=Jr(L.slice(),Vi(n.callSignatures,z=>th(z.declaration)?Tg(z.declaration,z.typeParameters,z.thisParameter,z.parameters,x,void 0,z.minArgumentCount,z.flags&167):void 0))),L.length||(L=Uat(x)),n.constructSignatures=L}}function Zat(n,a,c){return co(n,Mp([a.indexType,a.objectType],[h_(0),Gh([c])]))}function est(n){let a=gf(n.mappedType);if(!(a.flags&1048576||a.flags&2097152))return;let c=a.flags&1048576?a.origin:a;if(!c||!(c.flags&2097152))return;let d=Ea(c.types.filter(_=>_!==n.constraintType));return d!==Vr?d:void 0}function tst(n){let a=Ag(n.source,ke),c=Wh(n.mappedType),d=!(c&1),_=c&4?0:16777216,y=a?[Bh(ke,yee(a.type,n.mappedType,n.constraintType),d&&a.isReadonly)]:et,x=ua(),L=est(n);for(let z of ys(n.source)){if(L){let be=bD(z,8576);if(!Sa(be,L))continue}let U=8192|(d&&y_(z)?8:0),re=Xa(4|z.flags&_,z.escapedName,U);if(re.declarations=z.declarations,re.links.nameType=$i(z).nameType,re.links.propertyType=pr(z),n.constraintType.type.flags&8388608&&n.constraintType.type.objectType.flags&262144&&n.constraintType.type.indexType.flags&262144){let be=n.constraintType.type.objectType,ge=Zat(n.mappedType,n.constraintType.type,be);re.links.mappedType=ge,re.links.constraintType=$_(be)}else re.links.mappedType=n.mappedType,re.links.constraintType=n.constraintType;x.set(z.escapedName,re)}hf(n,x,et,et,y)}function pz(n){if(n.flags&4194304){let a=Md(n.type);return Vb(a)?GOe(a):$_(a)}if(n.flags&16777216){if(n.root.isDistributive){let a=n.checkType,c=pz(a);if(c!==a)return dve(n,HT(n.root.checkType,c,n.mapper),!1)}return n}if(n.flags&1048576)return ul(n,pz,!0);if(n.flags&2097152){let a=n.types;return a.length===2&&a[0].flags&76&&a[1]===sc?n:Ea(Io(n.types,pz))}return n}function dge(n){return Al(n)&4096}function pge(n,a,c,d){for(let _ of ys(n))d(bD(_,a));if(n.flags&1)d(ke);else for(let _ of hd(n))(!c||_.keyType.flags&134217732)&&d(_.keyType)}function nst(n){let a=ua(),c;hf(n,K,et,et,et);let d=f_(n),_=gf(n),y=n.target||n,x=py(y),L=LZ(y)!==2,z=pv(y),U=Md(OT(n)),re=Wh(n),be=Le?128:8576;_D(n)?pge(U,be,Le,ge):$T(pz(_),ge),hf(n,a,et,et,c||et);function ge(vt){let Rt=x?co(x,C4(n.mapper,d,vt)):vt;$T(Rt,sn=>Je(vt,sn))}function Je(vt,Rt){if(nm(Rt)){let sn=rm(Rt),un=a.get(sn);if(un)un.links.nameType=ii([un.links.nameType,Rt]),un.links.keyType=ii([un.links.keyType,vt]);else{let sr=nm(vt)?ba(U,rm(vt)):void 0,Ln=!!(re&4||!(re&8)&&sr&&sr.flags&16777216),cn=!!(re&1||!(re&2)&&sr&&y_(sr)),Fn=Y&&!Ln&&sr&&sr.flags&16777216,kn=sr?dge(sr):0,Zn=Xa(4|(Ln?16777216:0),sn,kn|262144|(cn?8:0)|(Fn?524288:0));Zn.links.mappedType=n,Zn.links.nameType=Rt,Zn.links.keyType=vt,sr&&(Zn.links.syntheticOrigin=sr,Zn.declarations=L?sr.declarations:void 0),a.set(sn,Zn)}}else if(WZ(Rt)||Rt.flags&33){let sn=Rt.flags&5?ke:Rt.flags&40?Dt:Rt,un=co(z,C4(n.mapper,d,vt)),sr=E4(U,Rt),Ln=!!(re&1||!(re&2)&&sr?.isReadonly),cn=Bh(sn,un,Ln);c=$we(c,cn,!0)}}}function rst(n){if(!n.links.type){let a=n.links.mappedType;if(!Oh(n,0))return a.containsError=!0,ht;let c=pv(a.target||a),d=C4(a.mapper,f_(a),n.links.keyType),_=co(c,d),y=Y&&n.flags&16777216&&!Dl(_,49152)?jb(_,!0):n.links.checkFlags&524288?mee(_):_;X_()||(qe(N,f.Type_of_property_0_circularly_references_itself_in_mapped_type_1,Ai(n),jn(a)),y=ht),n.links.type=y}return n.links.type}function f_(n){return n.typeParameter||(n.typeParameter=wT(Rr(n.declaration.typeParameter)))}function gf(n){return n.constraintType||(n.constraintType=Pd(f_(n))||ht)}function py(n){return n.declaration.nameType?n.nameType||(n.nameType=co(Ii(n.declaration.nameType),n.mapper)):void 0}function pv(n){return n.templateType||(n.templateType=n.declaration.type?co(lp(Ii(n.declaration.type),!0,!!(Wh(n)&4)),n.mapper):ht)}function Qwe(n){return Ux(n.declaration.typeParameter)}function _D(n){let a=Qwe(n);return a.kind===198&&a.operator===143}function OT(n){if(!n.modifiersType)if(_D(n))n.modifiersType=co(Ii(Qwe(n).type),n.mapper);else{let a=tve(n.declaration),c=gf(a),d=c&&c.flags&262144?Pd(c):c;n.modifiersType=d&&d.flags&4194304?co(d.type,n.mapper):mn}return n.modifiersType}function Wh(n){let a=n.declaration;return(a.readonlyToken?a.readonlyToken.kind===41?2:1:0)|(a.questionToken?a.questionToken.kind===41?8:4:0)}function Zwe(n){let a=Wh(n);return a&8?-1:a&4?1:0}function fge(n){let a=Zwe(n),c=OT(n);return a||(Hd(c)?Zwe(c):0)}function ist(n){return!!(Wr(n)&32&&Wh(n)&4)}function Hd(n){if(Wr(n)&32){let a=gf(n);if(UT(a))return!0;let c=py(n);if(c&&UT(co(c,WE(f_(n),a))))return!0}return!1}function LZ(n){let a=py(n);return a?Sa(a,f_(n))?1:2:0}function m_(n){return n.members||(n.flags&524288?n.objectFlags&4?Gat(n):n.objectFlags&3?Bat(n):n.objectFlags&1024?tst(n):n.objectFlags&16?Qat(n):n.objectFlags&32?nst(n):C.fail("Unhandled object type "+C.formatObjectFlags(n.objectFlags)):n.flags&1048576?Xat(n):n.flags&2097152?$at(n):C.fail("Unhandled type "+C.formatTypeFlags(n.flags))),n}function kb(n){return n.flags&524288?m_(n).properties:et}function n1(n,a){if(n.flags&524288){let d=m_(n).members.get(a);if(d&&Bm(d))return d}}function fz(n){if(!n.resolvedProperties){let a=ua();for(let c of n.types){for(let d of ys(c))if(!a.has(d.escapedName)){let _=_z(n,d.escapedName,!!(n.flags&2097152));_&&a.set(d.escapedName,_)}if(n.flags&1048576&&hd(c).length===0)break}n.resolvedProperties=K0(a)}return n.resolvedProperties}function ys(n){return n=jP(n),n.flags&3145728?fz(n):kb(n)}function ost(n,a){n=jP(n),n.flags&3670016&&m_(n).members.forEach((c,d)=>{sx(c,d)&&a(c,d)})}function ast(n,a){return a.properties.some(d=>{let _=d.name&&(e_(d.name)?qd(bk(d.name)):_y(d.name)),y=_&&nm(_)?rm(_):void 0,x=y===void 0?void 0:Xe(n,y);return!!x&&w4(x)&&!Sa(bx(d),x)})}function sst(n){let a=ii(n);if(!(a.flags&1048576))return Ebe(a);let c=ua();for(let d of n)for(let{escapedName:_}of Ebe(d))if(!c.has(_)){let y=aOe(a,_);y&&c.set(_,y)}return Vo(c.values())}function FT(n){return n.flags&262144?Pd(n):n.flags&8388608?cst(n):n.flags&16777216?nOe(n):Bu(n)}function Pd(n){return mz(n)?HP(n):void 0}function lst(n,a){let c=N4(n);return!!c&&WT(c,a)}function WT(n,a=0){var c;return a<5&&!!(n&&(n.flags&262144&&Et((c=n.symbol)==null?void 0:c.declarations,d=>ei(d,4096))||n.flags&3145728&&Et(n.types,d=>WT(d,a))||n.flags&8388608&&WT(n.objectType,a+1)||n.flags&16777216&&WT(nOe(n),a+1)||n.flags&33554432&&WT(n.baseType,a)||Wr(n)&32&&lst(n,a)||Vb(n)&&ri(wE(n),(d,_)=>!!(n.target.elementFlags[_]&8)&&WT(d,a))>=0))}function cst(n){return mz(n)?ust(n):void 0}function mge(n){let a=_v(n,!1);return a!==n?a:FT(n)}function ust(n){if(vge(n))return qZ(n.objectType,n.indexType);let a=mge(n.indexType);if(a&&a!==n.indexType){let d=Fb(n.objectType,a,n.accessFlags);if(d)return d}let c=mge(n.objectType);if(c&&c!==n.objectType)return Fb(c,n.indexType,n.accessFlags)}function _ge(n){if(!n.resolvedDefaultConstraint){let a=qlt(n),c=a1(n);n.resolvedDefaultConstraint=Ct(a)?c:Ct(c)?a:ii([a,c])}return n.resolvedDefaultConstraint}function eOe(n){if(n.resolvedConstraintOfDistributive!==void 0)return n.resolvedConstraintOfDistributive||void 0;if(n.root.isDistributive&&n.restrictiveInstantiation!==n){let a=_v(n.checkType,!1),c=a===n.checkType?FT(a):a;if(c&&c!==n.checkType){let d=dve(n,HT(n.root.checkType,c,n.mapper),!0);if(!(d.flags&131072))return n.resolvedConstraintOfDistributive=d,d}}n.resolvedConstraintOfDistributive=!1}function tOe(n){return eOe(n)||_ge(n)}function nOe(n){return mz(n)?tOe(n):void 0}function dst(n,a){let c,d=!1;for(let _ of n)if(_.flags&465829888){let y=FT(_);for(;y&&y.flags&21233664;)y=FT(y);y&&(c=In(c,y),a&&(c=In(c,_)))}else(_.flags&469892092||Vh(_))&&(d=!0);if(c&&(a||d)){if(d)for(let _ of n)(_.flags&469892092||Vh(_))&&(c=In(c,_));return Nz(Ea(c),!1)}}function Bu(n){if(n.flags&464781312||Vb(n)){let a=hge(n);return a!==Vs&&a!==nu?a:void 0}return n.flags&4194304?Fs:void 0}function fv(n){return Bu(n)||n}function mz(n){return hge(n)!==nu}function hge(n){if(n.resolvedBaseConstraint)return n.resolvedBaseConstraint;let a=[];return n.resolvedBaseConstraint=c(n);function c(y){if(!y.immediateBaseConstraint){if(!Oh(y,4))return nu;let x,L=lee(y);if((a.length<10||a.length<50&&!wr(a,L))&&(a.push(L),x=_(_v(y,!1)),a.pop()),!X_()){if(y.flags&262144){let z=Nge(y);if(z){let U=qe(z,f.Type_parameter_0_has_a_circular_constraint,jn(y));N&&!P1(z,N)&&!P1(N,z)&&ka(U,Or(N,f.Circularity_originates_in_type_at_this_location))}}x=nu}y.immediateBaseConstraint=x||Vs}return y.immediateBaseConstraint}function d(y){let x=c(y);return x!==Vs&&x!==nu?x:void 0}function _(y){if(y.flags&262144){let x=HP(y);return y.isThisType||!x?x:d(x)}if(y.flags&3145728){let x=y.types,L=[],z=!1;for(let U of x){let re=d(U);re?(re!==U&&(z=!0),L.push(re)):z=!0}return z?y.flags&1048576&&L.length===x.length?ii(L):y.flags&2097152&&L.length?Ea(L):void 0:y}if(y.flags&4194304)return Fs;if(y.flags&134217728){let x=y.types,L=Vi(x,d);return L.length===x.length?GT(y.texts,L):ke}if(y.flags&268435456){let x=d(y.type);return x&&x!==y.type?mx(y.symbol,x):ke}if(y.flags&8388608){if(vge(y))return d(qZ(y.objectType,y.indexType));let x=d(y.objectType),L=d(y.indexType),z=x&&L&&Fb(x,L,y.accessFlags);return z&&d(z)}if(y.flags&16777216){let x=tOe(y);return x&&d(x)}if(y.flags&33554432)return d(wge(y));if(Vb(y)){let x=Ft(wE(y),(L,z)=>{let U=L.flags&262144&&y.target.elementFlags[z]&8&&d(L)||L;return U!==L&&cp(U,re=>l1(re)&&!Vb(re))?U:L});return Gh(x,y.target.elementFlags,y.target.readonly,y.target.labeledElementDeclarations)}return y}}function pst(n,a){return n.resolvedApparentType||(n.resolvedApparentType=qp(n,a,!0))}function gge(n){if(n.default)n.default===pu&&(n.default=nu);else if(n.target){let a=gge(n.target);n.default=a?co(a,n.mapper):Vs}else{n.default=pu;let a=n.symbol&&Ke(n.symbol.declarations,d=>_l(d)&&d.default),c=a?Ii(a):Vs;n.default===pu&&(n.default=c)}return n.default}function zT(n){let a=gge(n);return a!==Vs&&a!==nu?a:void 0}function fst(n){return gge(n)!==nu}function rOe(n){return!!(n.symbol&&Ke(n.symbol.declarations,a=>_l(a)&&a.default))}function iOe(n){return n.resolvedApparentType||(n.resolvedApparentType=mst(n))}function mst(n){let a=n.target??n,c=N4(a);if(c&&!a.declaration.nameType){let d=OT(n),_=Hd(d)?iOe(d):Bu(d);if(_&&cp(_,y=>l1(y)||oOe(y)))return co(a,HT(c,_,n.mapper))}return n}function oOe(n){return!!(n.flags&2097152)&&Jn(n.types,l1)}function vge(n){let a;return!!(n.flags&8388608&&Wr(a=n.objectType)&32&&!Hd(a)&&UT(n.indexType)&&!(Wh(a)&8)&&!a.declaration.nameType)}function Md(n){let a=n.flags&465829888?Bu(n)||mn:n,c=Wr(a);return c&32?iOe(a):c&4&&a!==n?qp(a,n):a.flags&2097152?pst(a,n):a.flags&402653316?$l:a.flags&296?vc:a.flags&2112?$st():a.flags&528?cl:a.flags&12288?MOe():a.flags&67108864?Pa:a.flags&4194304?Fs:a.flags&2&&!Y?Pa:a}function jP(n){return __(Md(__(n)))}function aOe(n,a,c){var d,_,y;let x,L,z,U=n.flags&1048576,re,be=4,ge=U?0:8,Je=!1;for(let Zn of n.types){let Hn=Md(Zn);if(!(qt(Hn)||Hn.flags&131072)){let er=ba(Hn,a,c),Mo=er?If(er):0;if(er){if(er.flags&106500&&(re??(re=U?0:16777216),U?re|=er.flags&16777216:re&=er.flags),!x)x=er;else if(er!==x)if((MD(er)||er)===(MD(x)||x)&&Eve(x,er,(jo,vo)=>jo===vo?-1:0)===-1)Je=!!x.parent&&!!De(kr(x.parent));else{L||(L=new Map,L.set(Ta(x),x));let jo=Ta(er);L.has(jo)||L.set(jo,er)}U&&y_(er)?ge|=8:!U&&!y_(er)&&(ge&=-9),ge|=(Mo&6?0:256)|(Mo&4?512:0)|(Mo&2?1024:0)|(Mo&256?2048:0),gye(er)||(be=2)}else if(U){let Ao=!y4(a)&&px(Hn,a);Ao?(ge|=32|(Ao.isReadonly?8:0),z=In(z,Wa(Hn)?dee(Hn)||Oe:Ao.type)):d1(Hn)&&!(Wr(Hn)&2097152)?(ge|=32,z=In(z,Oe)):ge|=16}}}if(!x||U&&(L||ge&48)&&ge&1536&&!(L&&_st(L.values())))return;if(!L&&!(ge&16)&&!z)if(Je){let Zn=(d=ai(x,fh))==null?void 0:d.links,Hn=JT(x,Zn?.type);return Hn.parent=(y=(_=x.valueDeclaration)==null?void 0:_.symbol)==null?void 0:y.parent,Hn.links.containingType=n,Hn.links.mapper=Zn?.mapper,Hn.links.writeType=ME(x),Hn}else return x;let vt=L?Vo(L.values()):[x],Rt,sn,un,sr=[],Ln,cn,Fn=!1;for(let Zn of vt){cn?Zn.valueDeclaration&&Zn.valueDeclaration!==cn&&(Fn=!0):cn=Zn.valueDeclaration,Rt=Jr(Rt,Zn.declarations);let Hn=pr(Zn);sn||(sn=Hn,un=$i(Zn).nameType);let er=ME(Zn);(Ln||er!==Hn)&&(Ln=In(Ln||sr.slice(),er)),Hn!==sn&&(ge|=64),(w4(Hn)||VT(Hn))&&(ge|=128),Hn.flags&131072&&Hn!==uu&&(ge|=131072),sr.push(Hn)}Jr(sr,z);let kn=Xa(4|(re??0),a,be|ge);return kn.links.containingType=n,!Fn&&cn&&(kn.valueDeclaration=cn,cn.symbol.parent&&(kn.parent=cn.symbol.parent)),kn.declarations=Rt,kn.links.nameType=un,sr.length>2?(kn.links.checkFlags|=65536,kn.links.deferralParent=n,kn.links.deferralConstituents=sr,kn.links.deferralWriteConstituents=Ln):(kn.links.type=U?ii(sr):Ea(sr),Ln&&(kn.links.writeType=U?ii(Ln):Ea(Ln))),kn}function sOe(n,a,c){var d,_,y;let x=c?(d=n.propertyCacheWithoutObjectFunctionPropertyAugment)==null?void 0:d.get(a):(_=n.propertyCache)==null?void 0:_.get(a);return x||(x=aOe(n,a,c),x&&((c?n.propertyCacheWithoutObjectFunctionPropertyAugment||(n.propertyCacheWithoutObjectFunctionPropertyAugment=ua()):n.propertyCache||(n.propertyCache=ua())).set(a,x),c&&!(Al(x)&48)&&!((y=n.propertyCache)!=null&&y.get(a))&&(n.propertyCache||(n.propertyCache=ua())).set(a,x))),x}function _st(n){let a;for(let c of n){if(!c.declarations)return;if(!a){a=new Set(c.declarations);continue}if(a.forEach(d=>{wr(c.declarations,d)||a.delete(d)}),a.size===0)return}return a}function _z(n,a,c){let d=sOe(n,a,c);return d&&!(Al(d)&16)?d:void 0}function __(n){return n.flags&1048576&&n.objectFlags&16777216?n.resolvedReducedType||(n.resolvedReducedType=hst(n)):n.flags&2097152?(n.objectFlags&16777216||(n.objectFlags|=16777216|(Et(fz(n),gst)?33554432:0)),n.objectFlags&33554432?Vr:n):n}function hst(n){let a=Io(n.types,__);if(a===n.types)return n;let c=ii(a);return c.flags&1048576&&(c.resolvedReducedType=c),c}function gst(n){return lOe(n)||cOe(n)}function lOe(n){return!(n.flags&16777216)&&(Al(n)&131264)===192&&!!(pr(n).flags&131072)}function cOe(n){return!n.valueDeclaration&&!!(Al(n)&1024)}function yge(n){return!!(n.flags&1048576&&n.objectFlags&16777216&&Et(n.types,yge)||n.flags&2097152&&vst(n))}function vst(n){let a=n.uniqueLiteralFilledInstantiation||(n.uniqueLiteralFilledInstantiation=co(n,yo));return __(a)!==a}function bge(n,a){if(a.flags&2097152&&Wr(a)&33554432){let c=vn(fz(a),lOe);if(c)return Uo(n,f.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,jn(a,void 0,536870912),Ai(c));let d=vn(fz(a),cOe);if(d)return Uo(n,f.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,jn(a,void 0,536870912),Ai(d))}return n}function ba(n,a,c,d){var _,y;if(n=jP(n),n.flags&524288){let x=m_(n),L=x.members.get(a);if(L&&!d&&((_=n.symbol)==null?void 0:_.flags)&512&&((y=$i(n.symbol).typeOnlyExportStarMap)!=null&&y.has(a)))return;if(L&&Bm(L,d))return L;if(c)return;let z=x===on?wt:x.callSignatures.length?qn:x.constructSignatures.length?So:void 0;if(z){let U=n1(z,a);if(U)return U}return n1(Pe,a)}if(n.flags&2097152){let x=_z(n,a,!0);return x||(c?void 0:_z(n,a,c))}if(n.flags&1048576)return _z(n,a,c)}function hz(n,a){if(n.flags&3670016){let c=m_(n);return a===0?c.callSignatures:c.constructSignatures}return et}function Yo(n,a){let c=hz(jP(n),a);if(a===0&&!De(c)&&n.flags&1048576){if(n.arrayFallbackSignatures)return n.arrayFallbackSignatures;let d;if(cp(n,_=>{var y;return!!((y=_.symbol)!=null&&y.parent)&&yst(_.symbol.parent)&&(d?d===_.symbol.escapedName:(d=_.symbol.escapedName,!0))})){let _=ul(n,x=>zb((uOe(x.symbol.parent)?na:Qo).typeParameters[0],x.mapper)),y=Gu(_,jm(n,x=>uOe(x.symbol.parent)));return n.arrayFallbackSignatures=Yo(Xe(y,d),a)}n.arrayFallbackSignatures=c}return c}function yst(n){return!n||!Qo.symbol||!na.symbol?!1:!!c_(n,Qo.symbol)||!!c_(n,na.symbol)}function uOe(n){return!n||!na.symbol?!1:!!c_(n,na.symbol)}function Ege(n,a){return vn(n,c=>c.keyType===a)}function Sge(n,a){let c,d,_;for(let y of n)y.keyType===ke?c=y:dx(a,y.keyType)&&(d?(_||(_=[d])).push(y):d=y);return _?Bh(mn,Ea(Ft(_,y=>y.type)),nd(_,(y,x)=>y&&x.isReadonly,!0)):d||(c&&dx(a,ke)?c:void 0)}function dx(n,a){return Sa(n,a)||a===ke&&Sa(n,Dt)||a===Dt&&(n===ds||!!(n.flags&128)&&sg(n.value))}function Tge(n){return n.flags&3670016?m_(n).indexInfos:et}function hd(n){return Tge(jP(n))}function Ag(n,a){return Ege(hd(n),a)}function r1(n,a){var c;return(c=Ag(n,a))==null?void 0:c.type}function Age(n,a){return hd(n).filter(c=>dx(a,c.keyType))}function E4(n,a){return Sge(hd(n),a)}function px(n,a){return E4(n,y4(a)?Di:qd(Hi(a)))}function dOe(n){var a;let c;for(let d of Py(n))c=Ng(c,wT(d.symbol));return c?.length?c:Sc(n)?(a=UP(n))==null?void 0:a.typeParameters:void 0}function Ige(n){let a=[];return n.forEach((c,d)=>{DE(d)||a.push(c)}),a}function kZ(n,a){if(Yc(n))return;let c=Ud(Se,'"'+n+'"',512);return c&&a?is(c):c}function S4(n){if(LA(n)||vk(n)||yk(n))return!0;if(n.initializer){let c=pm(n.parent),d=n.parent.parameters.indexOf(n);return C.assert(d>=0),d>=nh(c,3)}let a=vS(n.parent);return a?!n.type&&!n.dotDotDotToken&&n.parent.parameters.indexOf(n)>=qee(a).length:!1}function bst(n){return Jo(n)&&!C_(n)&&n.questionToken}function gz(n,a,c,d){return{kind:n,parameterName:a,parameterIndex:c,type:d}}function zh(n){let a=0;if(n)for(let c=0;c=c&&y<=_){let x=n?n.slice():[];for(let z=y;z<_;z++)x[z]=ht;let L=Bve(d);for(let z=y;z<_;z++){let U=zT(a[z]);d&&U&&(hv(U,mn)||hv(U,Pa))&&(U=j),x[z]=U?co(U,Mp(a,x)):L}return x.length=a.length,x}return n&&n.slice()}function pm(n){let a=ti(n);if(!a.resolvedSignature){let c=[],d=0,_=0,y,x=cr(n)?h6(n):void 0,L=!1,z=vS(n),U=pR(n);!z&&cr(n)&&Oie(n)&&!_re(n)&&!i0(n)&&(d|=32);for(let vt=U?1:0;vtz.arguments.length&&!un||yk(Rt)||(_=c.length)}if((n.kind===177||n.kind===178)&&mD(n)&&(!L||!y)){let vt=n.kind===177?178:177,Rt=dl(Rr(n),vt);Rt&&(y=IZ(Rt))}x&&x.typeExpression&&(y=JT(Xa(1,"this"),Ii(x.typeExpression)));let be=b0(n)?d0(n):n,ge=be&&Pl(be)?zf(is(be.parent.symbol)):void 0,Je=ge?ge.localTypeParameters:dOe(n);(nj(n)||cr(n)&&Est(n,c))&&(d|=1),(OR(n)&&ei(n,64)||Pl(n)&&ei(n.parent,64))&&(d|=4),a.resolvedSignature=Tg(n,Je,y,c,void 0,void 0,_,d)}return a.resolvedSignature}function Est(n,a){if(b0(n)||!xge(n))return!1;let c=Zs(n.parameters),d=c?jx(c):o0(n).filter(n_),_=Zt(d,x=>x.typeExpression&&r5(x.typeExpression.type)?x.typeExpression.type:void 0),y=Xa(3,"args",32768);return _?y.links.type=Gu(Ii(_.type)):(y.links.checkFlags|=65536,y.links.deferralParent=Vr,y.links.deferralConstituents=[Ql],y.links.deferralWriteConstituents=[Ql]),_&&a.pop(),a.push(y),!0}function UP(n){if(!(cr(n)&&zs(n)))return;let a=r0(n);return a?.typeExpression&&tA(Ii(a.typeExpression))}function Sst(n,a){let c=UP(n);if(!c)return;let d=n.parameters.indexOf(a);return a.dotDotDotToken?sB(c,d):v_(c,d)}function Tst(n){let a=UP(n);return a&&ms(a)}function xge(n){let a=ti(n);return a.containsArgumentsReference===void 0&&(a.flags&512?a.containsArgumentsReference=!0:a.containsArgumentsReference=c(n.body)),a.containsArgumentsReference;function c(d){if(!d)return!1;switch(d.kind){case 80:return d.escapedText===Bt.escapedName&&i8(d)===Bt;case 172:case 174:case 177:case 178:return d.name.kind===167&&c(d.name);case 211:case 212:return c(d.expression);case 303:return c(d.initializer);default:return!Jj(d)&&!Zh(d)&&!!Ho(d,c)}}}function LE(n){if(!n||!n.declarations)return et;let a=[];for(let c=0;c0&&d.body){let _=n.declarations[c-1];if(d.parent===_.parent&&d.kind===_.kind&&d.pos===_.end)continue}if(cr(d)&&d.jsDoc){let _=Fj(d);if(De(_)){for(let y of _){let x=y.typeExpression;x.type===void 0&&!Pl(d)&&c1(x,j),a.push(pm(x))}continue}}a.push(!B1(d)&&!Im(d)&&UP(d)||pm(d))}}return a}function pOe(n){let a=_d(n,n);if(a){let c=Rp(a);if(c)return pr(c)}return j}function i1(n){if(n.thisParameter)return pr(n.thisParameter)}function Bf(n){if(!n.resolvedTypePredicate){if(n.target){let a=Bf(n.target);n.resolvedTypePredicate=a?sct(a,n.mapper):we}else if(n.compositeSignatures)n.resolvedTypePredicate=Slt(n.compositeSignatures,n.compositeKind)||we;else{let a=n.declaration&&tm(n.declaration),c;if(!a){let d=UP(n.declaration);d&&n!==d&&(c=Bf(d))}n.resolvedTypePredicate=a&&Bk(a)?Ast(a,n):c||we}C.assert(!!n.resolvedTypePredicate)}return n.resolvedTypePredicate===we?void 0:n.resolvedTypePredicate}function Ast(n,a){let c=n.parameterName,d=n.type&&Ii(n.type);return c.kind===197?gz(n.assertsModifier?2:0,void 0,void 0,d):gz(n.assertsModifier?3:1,c.escapedText,ri(a.parameters,_=>_.escapedName===c.escapedText),d)}function fOe(n,a,c){return a!==2097152?ii(n,c):Ea(n)}function ms(n){if(!n.resolvedReturnType){if(!Oh(n,3))return ht;let a=n.target?co(ms(n.target),n.mapper):n.compositeSignatures?co(fOe(Ft(n.compositeSignatures,ms),n.compositeKind,2),n.mapper):hD(n.declaration)||(Fl(n.declaration.body)?j:Yee(n.declaration));if(n.flags&8?a=J4e(a):n.flags&16&&(a=jb(a)),!X_()){if(n.declaration){let c=tm(n.declaration);if(c)qe(c,f.Return_type_annotation_circularly_references_itself);else if(me){let d=n.declaration,_=Oo(d);_?qe(_,f._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,Ds(_)):qe(d,f.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions)}}a=j}n.resolvedReturnType=a}return n.resolvedReturnType}function hD(n){if(n.kind===176)return zf(is(n.parent.symbol));let a=tm(n);if(b0(n)){let c=fR(n);if(c&&Pl(c.parent)&&!a)return zf(is(c.parent.parent.symbol))}if(pR(n))return Ii(n.parameters[0].type);if(a)return Ii(a);if(n.kind===177&&mD(n)){let c=cr(n)&&lv(n);if(c)return c;let d=dl(Rr(n),178),_=Z0(d);if(_)return _}return Tst(n)}function wZ(n){return n.compositeSignatures&&Et(n.compositeSignatures,wZ)||!n.resolvedReturnType&&cx(n,3)>=0}function Ist(n){return mOe(n)||j}function mOe(n){if(Xu(n)){let a=pr(n.parameters[n.parameters.length-1]),c=Wa(a)?dee(a):a;return c&&r1(c,Dt)}}function T4(n,a,c,d){let _=Rge(n,wb(a,n.typeParameters,zh(n.typeParameters),c));if(d){let y=x6e(ms(_));if(y){let x=b4(y);x.typeParameters=d;let L=b4(_);return L.resolvedReturnType=BT(x),L}}return _}function Rge(n,a){let c=n.instantiations||(n.instantiations=new Map),d=fm(a),_=c.get(d);return _||c.set(d,_=OZ(n,a)),_}function OZ(n,a){return TD(n,xst(n,a),!0)}function xst(n,a){return Mp(n.typeParameters,a)}function A4(n){return n.typeParameters?n.erasedSignatureCache||(n.erasedSignatureCache=Rst(n)):n}function Rst(n){return TD(n,g4e(n.typeParameters),!0)}function Dst(n){return n.typeParameters?n.canonicalSignatureCache||(n.canonicalSignatureCache=Cst(n)):n}function Cst(n){return T4(n,Ft(n.typeParameters,a=>a.target&&!Pd(a.target)?a.target:a),cr(n.declaration))}function Nst(n){let a=n.typeParameters;if(a){if(n.baseSignatureCache)return n.baseSignatureCache;let c=g4e(a),d=Mp(a,Ft(a,y=>Pd(y)||mn)),_=Ft(a,y=>co(y,d)||mn);for(let y=0;y{WZ(_)&&!Ege(a,_)&&a.push(Bh(_,c.type?Ii(c.type):j,_p(c,8),c))})}return a}return et}function WZ(n){return!!(n.flags&4108)||VT(n)||!!(n.flags&2097152)&&!ED(n)&&Et(n.types,WZ)}function Nge(n){return Vi(tr(n.symbol&&n.symbol.declarations,_l),Ux)[0]}function hOe(n,a){var c;let d;if((c=n.symbol)!=null&&c.declarations){for(let _ of n.symbol.declarations)if(_.parent.kind===195){let[y=_.parent,x]=Fie(_.parent.parent);if(x.kind===183&&!a){let L=x,z=ebe(L);if(z){let U=L.typeArguments.indexOf(y);if(U()=>Hmt(L,z,vt))),ge=co(re,be);ge!==n&&(d=In(d,ge))}}}}else if(x.kind===169&&x.dotDotDotToken||x.kind===191||x.kind===202&&x.dotDotDotToken)d=In(d,Gu(mn));else if(x.kind===204)d=In(d,ke);else if(x.kind===168&&x.parent.kind===200)d=In(d,Fs);else if(x.kind===200&&x.type&&vs(x.type)===_.parent&&x.parent.kind===194&&x.parent.extendsType===x&&x.parent.checkType.kind===200&&x.parent.checkType.type){let L=x.parent.checkType,z=Ii(L.type);d=In(d,co(z,WE(wT(Rr(L.typeParameter)),L.typeParameter.constraint?Ii(L.typeParameter.constraint):Fs)))}}}return d&&Ea(d)}function HP(n){if(!n.constraint)if(n.target){let a=Pd(n.target);n.constraint=a?co(a,n.mapper):Vs}else{let a=Nge(n);if(!a)n.constraint=hOe(n)||Vs;else{let c=Ii(a);c.flags&1&&!qt(c)&&(c=a.parent.parent.kind===200?Fs:mn),n.constraint=c}}return n.constraint===Vs?void 0:n.constraint}function gOe(n){let a=dl(n.symbol,168),c=am(a.parent)?p3(a.parent):a.parent;return c&&ff(c)}function fm(n){let a="";if(n){let c=n.length,d=0;for(;d1&&(a+=":"+y),d+=y}}return a}function fx(n,a){return n?`@${Ta(n)}`+(a?`:${fm(a)}`:""):""}function zZ(n,a){let c=0;for(let d of n)(a===void 0||!(d.flags&a))&&(c|=Wr(d));return c&458752}function gD(n,a){return Et(a)&&n===Wo?mn:fy(n,a)}function fy(n,a){let c=fm(a),d=n.instantiations.get(c);return d||(d=Of(4,n.symbol),n.instantiations.set(c,d),d.objectFlags|=a?zZ(a):0,d.target=n,d.resolvedTypeArguments=a),d}function vOe(n){let a=Eg(n.flags,n.symbol);return a.objectFlags=n.objectFlags,a.target=n.target,a.resolvedTypeArguments=n.resolvedTypeArguments,a}function Pge(n,a,c,d,_){if(!d){d=_x(a);let x=SD(d);_=c?hy(x,c):x}let y=Of(4,n.symbol);return y.target=n,y.node=a,y.mapper=c,y.aliasSymbol=d,y.aliasTypeArguments=_,y}function qs(n){var a,c;if(!n.resolvedTypeArguments){if(!Oh(n,6))return((a=n.target.localTypeParameters)==null?void 0:a.map(()=>ht))||et;let d=n.node,_=d?d.kind===183?xo(n.target.outerTypeParameters,tte(d,n.target.localTypeParameters)):d.kind===188?[Ii(d.elementType)]:Ft(d.elements,Ii):et;X_()?n.resolvedTypeArguments=n.mapper?hy(_,n.mapper):_:(n.resolvedTypeArguments=((c=n.target.localTypeParameters)==null?void 0:c.map(()=>ht))||et,qe(n.node||N,n.target.symbol?f.Type_arguments_for_0_circularly_reference_themselves:f.Tuple_type_arguments_circularly_reference_themselves,n.target.symbol&&Ai(n.target.symbol)))}return n.resolvedTypeArguments}function my(n){return De(n.target.typeParameters)}function yOe(n,a){let c=Qs(is(a)),d=c.localTypeParameters;if(d){let _=De(n.typeArguments),y=zh(d),x=cr(n);if(!(!me&&x)&&(_d.length)){let U=x&&Hv(n)&&!fI(n.parent),re=y===d.length?U?f.Expected_0_type_arguments_provide_these_with_an_extends_tag:f.Generic_type_0_requires_1_type_argument_s:U?f.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:f.Generic_type_0_requires_between_1_and_2_type_arguments,be=jn(c,void 0,2);if(qe(n,re,be,y,d.length),!x)return ht}if(n.kind===183&&zOe(n,De(n.typeArguments)!==d.length))return Pge(c,n,void 0);let z=xo(c.outerTypeParameters,wb(vz(n),d,y,x));return fy(c,z)}return kE(n,a)?c:ht}function vD(n,a,c,d){let _=Qs(n);if(_===fn){let U=J5.get(n.escapedName);if(U!==void 0&&a&&a.length===1)return U===4?Mge(a[0]):mx(n,a[0])}let y=$i(n),x=y.typeParameters,L=fm(a)+fx(c,d),z=y.instantiations.get(L);return z||y.instantiations.set(L,z=b4e(_,Mp(x,wb(a,x,zh(x),cr(n.valueDeclaration))),c,d)),z}function Pst(n,a){if(Al(a)&1048576){let _=vz(n),y=fx(a,_),x=We.get(y);return x||(x=lc(1,"error",void 0,`alias ${y}`),x.aliasSymbol=a,x.aliasTypeArguments=_,We.set(y,x)),x}let c=Qs(a),d=$i(a).typeParameters;if(d){let _=De(n.typeArguments),y=zh(d);if(_d.length)return qe(n,y===d.length?f.Generic_type_0_requires_1_type_argument_s:f.Generic_type_0_requires_between_1_and_2_type_arguments,Ai(a),y,d.length),ht;let x=_x(n),L=x&&(bOe(a)||!bOe(x))?x:void 0,z;if(L)z=SD(L);else if(P6(n)){let U=yD(n,2097152,!0);if(U&&U!==ft){let re=Fc(U);re&&re.flags&524288&&(L=re,z=vz(n)||(d?[]:void 0))}}return vD(a,vz(n),L,z)}return kE(n,a)?c:ht}function bOe(n){var a;let c=(a=n.declarations)==null?void 0:a.find(UL);return!!(c&&zp(c))}function Mst(n){switch(n.kind){case 183:return n.typeName;case 233:let a=n.expression;if(zl(a))return a}}function EOe(n){return n.parent?`${EOe(n.parent)}.${n.escapedName}`:n.escapedName}function BZ(n){let c=(n.kind===166?n.right:n.kind===211?n.name:n).escapedText;if(c){let d=n.kind===166?BZ(n.left):n.kind===211?BZ(n.expression):void 0,_=d?`${EOe(d)}.${c}`:c,y=le.get(_);return y||(le.set(_,y=Xa(524288,c,1048576)),y.parent=d,y.links.declaredType=Vt),y}return ft}function yD(n,a,c){let d=Mst(n);if(!d)return ft;let _=Us(d,a,c);return _&&_!==ft?_:c?ft:BZ(d)}function GZ(n,a){if(a===ft)return ht;if(a=OP(a)||a,a.flags&96)return yOe(n,a);if(a.flags&524288)return Pst(n,a);let c=Wwe(a);if(c)return kE(n,a)?vd(c):ht;if(a.flags&111551&&VZ(n)){let d=Lst(n,a);return d||(yD(n,788968),pr(a))}return ht}function Lst(n,a){let c=ti(n);if(!c.resolvedJSDocType){let d=pr(a),_=d;if(a.valueDeclaration){let y=n.kind===205&&n.qualifier;d.symbol&&d.symbol!==a&&y&&(_=GZ(n,d.symbol))}c.resolvedJSDocType=_}return c.resolvedJSDocType}function Mge(n){return Lge(n)?SOe(n,mn):n}function Lge(n){return!!(n.flags&3145728&&Et(n.types,Lge)||n.flags&33554432&&!qP(n)&&Lge(n.baseType)||n.flags&524288&&!Vh(n)||n.flags&432275456&&!VT(n))}function qP(n){return!!(n.flags&33554432&&n.constraint.flags&2)}function kge(n,a){return a.flags&3||a===n||n.flags&1?n:SOe(n,a)}function SOe(n,a){let c=`${gd(n)}>${gd(a)}`,d=No.get(c);if(d)return d;let _=bg(33554432);return _.baseType=n,_.constraint=a,No.set(c,_),_}function wge(n){return qP(n)?n.baseType:Ea([n.constraint,n.baseType])}function TOe(n){return n.kind===189&&n.elements.length===1}function AOe(n,a,c){return TOe(a)&&TOe(c)?AOe(n,a.elements[0],c.elements[0]):Wb(Ii(a))===Wb(n)?Ii(c):void 0}function kst(n,a){let c,d=!0;for(;a&&!Ki(a)&&a.kind!==327;){let _=a.parent;if(_.kind===169&&(d=!d),(d||n.flags&8650752)&&_.kind===194&&a===_.trueType){let y=AOe(n,_.checkType,_.extendsType);y&&(c=In(c,y))}else if(n.flags&262144&&_.kind===200&&!_.nameType&&a===_.type){let y=Ii(_);if(f_(y)===Wb(n)){let x=N4(y);if(x){let L=Pd(x);L&&cp(L,l1)&&(c=In(c,ii([Dt,ds])))}}}a=_}return c?kge(n,Ea(c)):n}function VZ(n){return!!(n.flags&16777216)&&(n.kind===183||n.kind===205)}function kE(n,a){return n.typeArguments?(qe(n,f.Type_0_is_not_generic,a?Ai(a):n.typeName?Ds(n.typeName):j5),!1):!0}function IOe(n){if(Ve(n.typeName)){let a=n.typeArguments;switch(n.typeName.escapedText){case"String":return kE(n),ke;case"Number":return kE(n),Dt;case"Boolean":return kE(n),yi;case"Void":return kE(n),or;case"Undefined":return kE(n),Oe;case"Null":return kE(n),pe;case"Function":case"function":return kE(n),wt;case"array":return(!a||!a.length)&&!me?Ql:void 0;case"promise":return(!a||!a.length)&&!me?cB(j):void 0;case"Object":if(a&&a.length===2){if(o3(n)){let c=Ii(a[0]),d=Ii(a[1]),_=c===ke||c===Dt?[Bh(c,d,!1)]:et;return Ls(void 0,K,et,et,_)}return j}return kE(n),me?void 0:j}}}function wst(n){let a=Ii(n.type);return Y?Oz(a,65536):a}function Oge(n){let a=ti(n);if(!a.resolvedType){if(kg(n)&&pS(n.parent))return a.resolvedSymbol=ft,a.resolvedType=ec(n.parent.expression);let c,d,_=788968;VZ(n)&&(d=IOe(n),d||(c=yD(n,_,!0),c===ft?c=yD(n,_|111551):yD(n,_),d=GZ(n,c))),d||(c=yD(n,_),d=GZ(n,c)),a.resolvedSymbol=c,a.resolvedType=d}return a.resolvedType}function vz(n){return Ft(n.typeArguments,Ii)}function xOe(n){let a=ti(n);if(!a.resolvedType){let c=q6e(n);a.resolvedType=vd(Jp(c))}return a.resolvedType}function ROe(n,a){function c(_){let y=_.declarations;if(y)for(let x of y)switch(x.kind){case 263:case 264:case 266:return x}}if(!n)return a?Wo:Pa;let d=Qs(n);return d.flags&524288?De(d.typeParameters)!==a?(qe(c(n),f.Global_type_0_must_have_1_type_parameter_s,bl(n),a),a?Wo:Pa):d:(qe(c(n),f.Global_type_0_must_be_a_class_or_interface_type,bl(n)),a?Wo:Pa)}function Fge(n,a){return JP(n,111551,a?f.Cannot_find_global_value_0:void 0)}function Wge(n,a){return JP(n,788968,a?f.Cannot_find_global_type_0:void 0)}function jZ(n,a,c){let d=JP(n,788968,c?f.Cannot_find_global_type_0:void 0);if(d&&(Qs(d),De($i(d).typeParameters)!==a)){let _=d.declarations&&vn(d.declarations,Dm);qe(_,f.Global_type_0_must_have_1_type_parameter_s,bl(d),a);return}return d}function JP(n,a,c){return vl(void 0,n,a,c,n,!1,!1,!1)}function Zl(n,a,c){let d=Wge(n,c);return d||c?ROe(d,a):void 0}function Ost(){return Dh||(Dh=Zl("TypedPropertyDescriptor",1,!0)||Wo)}function Fst(){return rr||(rr=Zl("TemplateStringsArray",0,!0)||Pa)}function DOe(){return si||(si=Zl("ImportMeta",0,!0)||Pa)}function COe(){if(!$r){let n=Xa(0,"ImportMetaExpression"),a=DOe(),c=Xa(4,"meta",8);c.parent=n,c.links.type=a;let d=ua([c]);n.members=d,$r=Ls(n,d,et,et,et)}return $r}function NOe(n){return so||(so=Zl("ImportCallOptions",0,n))||Pa}function zge(n){return Oa||(Oa=Zl("ImportAttributes",0,n))||Pa}function POe(n){return Dd||(Dd=Fge("Symbol",n))}function Wst(n){return Lf||(Lf=Wge("SymbolConstructor",n))}function MOe(){return j_||(j_=Zl("Symbol",0,!1))||Pa}function yz(n){return Xg||(Xg=Zl("Promise",1,n))||Wo}function LOe(n){return zu||(zu=Zl("PromiseLike",1,n))||Wo}function Bge(n){return Yg||(Yg=Fge("Promise",n))}function zst(n){return Ap||(Ap=Zl("PromiseConstructorLike",0,n))||Pa}function UZ(n){return W||(W=Zl("AsyncIterable",1,n))||Wo}function Bst(n){return Ae||(Ae=Zl("AsyncIterator",3,n))||Wo}function Gst(n){return st||(st=Zl("AsyncIterableIterator",1,n))||Wo}function Vst(n){return Ht||(Ht=Zl("AsyncGenerator",3,n))||Wo}function Gge(n){return fg||(fg=Zl("Iterable",1,n))||Wo}function jst(n){return Gd||(Gd=Zl("Iterator",3,n))||Wo}function Ust(n){return te||(te=Zl("IterableIterator",1,n))||Wo}function Hst(n){return lt||(lt=Zl("Generator",3,n))||Wo}function qst(n){return Wt||(Wt=Zl("IteratorYieldResult",1,n))||Wo}function Jst(n){return jt||(jt=Zl("IteratorReturnResult",1,n))||Wo}function kOe(n){return Fa||(Fa=Zl("Disposable",0,n))||Pa}function Kst(n){return wl||(wl=Zl("AsyncDisposable",0,n))||Pa}function wOe(n,a=0){let c=JP(n,788968,void 0);return c&&ROe(c,a)}function Xst(){return fu||(fu=jZ("Extract",2,!0)||ft),fu===ft?void 0:fu}function Yst(){return xc||(xc=jZ("Omit",2,!0)||ft),xc===ft?void 0:xc}function Vge(n){return Ip||(Ip=jZ("Awaited",1,n)||(n?ft:void 0)),Ip===ft?void 0:Ip}function $st(){return Vd||(Vd=Zl("BigInt",0,!1))||Pa}function Qst(n){return Lm??(Lm=Zl("ClassDecoratorContext",1,n))??Wo}function Zst(n){return km??(km=Zl("ClassMethodDecoratorContext",2,n))??Wo}function elt(n){return Ji??(Ji=Zl("ClassGetterDecoratorContext",2,n))??Wo}function tlt(n){return $g??($g=Zl("ClassSetterDecoratorContext",2,n))??Wo}function nlt(n){return ry??(ry=Zl("ClassAccessorDecoratorContext",2,n))??Wo}function rlt(n){return wm??(wm=Zl("ClassAccessorDecoratorTarget",2,n))??Wo}function ilt(n){return mE??(mE=Zl("ClassAccessorDecoratorResult",2,n))??Wo}function olt(n){return _E??(_E=Zl("ClassFieldDecoratorContext",2,n))??Wo}function alt(){return cb||(cb=Fge("NaN",!1))}function slt(){return ps||(ps=jZ("Record",2,!0)||ft),ps===ft?void 0:ps}function I4(n,a){return n!==Wo?fy(n,a):Pa}function OOe(n){return I4(Ost(),[n])}function FOe(n){return I4(Gge(!0),[n])}function Gu(n,a){return I4(a?na:Qo,[n])}function jge(n){switch(n.kind){case 190:return 2;case 191:return WOe(n);case 202:return n.questionToken?2:n.dotDotDotToken?WOe(n):1;default:return 1}}function WOe(n){return Az(n.type)?4:8}function llt(n){let a=dlt(n.parent);if(Az(n))return a?na:Qo;let d=Ft(n.elements,jge);return Uge(d,a,Ft(n.elements,clt))}function clt(n){return FR(n)||Co(n)?n:void 0}function zOe(n,a){return!!_x(n)||BOe(n)&&(n.kind===188?Ob(n.elementType):n.kind===189?Et(n.elements,Ob):a||Et(n.typeArguments,Ob))}function BOe(n){let a=n.parent;switch(a.kind){case 196:case 202:case 183:case 192:case 193:case 199:case 194:case 198:case 188:case 189:return BOe(a);case 265:return!0}return!1}function Ob(n){switch(n.kind){case 183:return VZ(n)||!!(yD(n,788968).flags&524288);case 186:return!0;case 198:return n.operator!==158&&Ob(n.type);case 196:case 190:case 202:case 323:case 321:case 322:case 316:return Ob(n.type);case 191:return n.type.kind!==188||Ob(n.type.elementType);case 192:case 193:return Et(n.types,Ob);case 199:return Ob(n.objectType)||Ob(n.indexType);case 194:return Ob(n.checkType)||Ob(n.extendsType)||Ob(n.trueType)||Ob(n.falseType)}return!1}function ult(n){let a=ti(n);if(!a.resolvedType){let c=llt(n);if(c===Wo)a.resolvedType=Pa;else if(!(n.kind===189&&Et(n.elements,d=>!!(jge(d)&8)))&&zOe(n))a.resolvedType=n.kind===189&&n.elements.length===0?c:Pge(c,n,void 0);else{let d=n.kind===188?[Ii(n.elementType)]:Ft(n.elements,Ii);a.resolvedType=Hge(c,d)}}return a.resolvedType}function dlt(n){return kS(n)&&n.operator===148}function Gh(n,a,c=!1,d=[]){let _=Uge(a||Ft(n,y=>1),c,d);return _===Wo?Pa:n.length?Hge(_,n):_}function Uge(n,a,c){if(n.length===1&&n[0]&4)return a?na:Qo;let d=Ft(n,y=>y&1?"#":y&2?"?":y&4?".":"*").join()+(a?"R":"")+(Et(c,y=>!!y)?","+Ft(c,y=>y?ss(y):"_").join(","):""),_=Ro.get(d);return _||Ro.set(d,_=plt(n,a,c)),_}function plt(n,a,c){let d=n.length,_=au(n,be=>!!(be&9)),y,x=[],L=0;if(d){y=new Array(d);for(let be=0;be!!(n.elementFlags[sn]&8&&Rt.flags&1179648));if(vt>=0)return Ez(Ft(a,(Rt,sn)=>n.elementFlags[sn]&8?Rt:mn))?ul(a[vt],Rt=>qge(n,rG(a,vt,Rt))):ht}let x=[],L=[],z=[],U=-1,re=-1,be=-1;for(let vt=0;vt=1e4)return qe(N,Zh(N)?f.Type_produces_a_tuple_type_that_is_too_large_to_represent:f.Expression_produces_a_tuple_type_that_is_too_large_to_represent),ht;Ke(un,(sr,Ln)=>{var cn;return Je(sr,Rt.target.elementFlags[Ln],(cn=Rt.target.labeledElementDeclarations)==null?void 0:cn[Ln])})}else Je(gy(Rt)&&r1(Rt,Dt)||ht,4,(_=n.labeledElementDeclarations)==null?void 0:_[vt]);else Je(Rt,sn,(y=n.labeledElementDeclarations)==null?void 0:y[vt])}for(let vt=0;vt=0&&reL[re+Rt]&8?Pp(vt,Dt):vt)),x.splice(re+1,be-re),L.splice(re+1,be-re),z.splice(re+1,be-re));let ge=Uge(L,n.readonly,z);return ge===Wo?Pa:L.length?fy(ge,x):ge;function Je(vt,Rt,sn){Rt&1&&(U=L.length),Rt&4&&re<0&&(re=L.length),Rt&6&&(be=L.length),x.push(Rt&2?lp(vt,!0):vt),L.push(Rt),z.push(sn)}}function KP(n,a,c=0){let d=n.target,_=my(n)-c;return a>d.fixedLength?Qct(n)||Gh(et):Gh(qs(n).slice(a,_),d.elementFlags.slice(a,_),!1,d.labeledElementDeclarations&&d.labeledElementDeclarations.slice(a,_))}function GOe(n){return ii(In(hne(n.target.fixedLength,a=>qd(""+a)),$_(n.target.readonly?na:Qo)))}function flt(n,a){let c=ri(n.elementFlags,d=>!(d&a));return c>=0?c:n.elementFlags.length}function x4(n,a){return n.elementFlags.length-to(n.elementFlags,c=>!(c&a))-1}function Jge(n){return n.fixedLength+x4(n,3)}function wE(n){let a=qs(n),c=my(n);return a.length===c?a:a.slice(0,c)}function mlt(n){return lp(Ii(n.type),!0)}function gd(n){return n.id}function mv(n,a){return xv(n,a,gd,tl)>=0}function bz(n,a){let c=xv(n,a,gd,tl);return c<0?(n.splice(~c,0,a),!0):!1}function _lt(n,a,c){let d=c.flags;if(!(d&131072))if(a|=d&473694207,d&465829888&&(a|=33554432),d&2097152&&Wr(c)&67108864&&(a|=536870912),c===xt&&(a|=8388608),!Y&&d&98304)Wr(c)&65536||(a|=4194304);else{let _=n.length,y=_&&c.id>n[_-1].id?~_:xv(n,c,gd,tl);y<0&&n.splice(~y,0,c)}return a}function VOe(n,a,c){let d;for(let _ of c)_!==d&&(a=_.flags&1048576?VOe(n,a|(Elt(_)?1048576:0),_.types):_lt(n,a,_),d=_);return a}function hlt(n,a){var c;if(n.length<2)return n;let d=fm(n),_=_a.get(d);if(_)return _;let y=a&&Et(n,U=>!!(U.flags&524288)&&!Hd(U)&&_ve(m_(U))),x=n.length,L=x,z=0;for(;L>0;){L--;let U=n[L];if(y||U.flags&469499904){if(U.flags&262144&&fv(U).flags&1048576){Q_(U,ii(Ft(n,ge=>ge===U?Vr:ge)),kf)&&Iy(n,L);continue}let re=U.flags&61603840?vn(ys(U),ge=>g_(pr(ge))):void 0,be=re&&vd(pr(re));for(let ge of n)if(U!==ge){if(z===1e5&&z/(x-L)*x>1e6){(c=lr)==null||c.instant(lr.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:n.map(vt=>vt.id)}),qe(N,f.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}if(z++,re&&ge.flags&61603840){let Je=Xe(ge,re.escapedName);if(Je&&g_(Je)&&vd(Je)!==be)continue}if(Q_(U,ge,kf)&&(!(Wr(dy(U))&1)||!(Wr(dy(ge))&1)||s1(U,ge))){Iy(n,L);break}}}}return _a.set(d,n),n}function glt(n,a,c){let d=n.length;for(;d>0;){d--;let _=n[d],y=_.flags;(y&402653312&&a&4||y&256&&a&8||y&2048&&a&64||y&8192&&a&4096||c&&y&32768&&a&16384||FE(_)&&mv(n,_.regularType))&&Iy(n,d)}}function vlt(n){let a=tr(n,VT);if(a.length){let c=n.length;for(;c>0;){c--;let d=n[c];d.flags&128&&Et(a,_=>ylt(d,_))&&Iy(n,c)}}}function ylt(n,a){return a.flags&134217728?Eee(n,a):bee(n,a)}function blt(n){let a=[];for(let c of n)if(c.flags&2097152&&Wr(c)&67108864){let d=c.types[0].flags&8650752?0:1;bf(a,c.types[d])}for(let c of a){let d=[];for(let y of n)if(y.flags&2097152&&Wr(y)&67108864){let x=y.types[0].flags&8650752?0:1;y.types[x]===c&&bz(d,y.types[1-x])}let _=Bu(c);if(cp(_,y=>mv(d,y))){let y=n.length;for(;y>0;){y--;let x=n[y];if(x.flags&2097152&&Wr(x)&67108864){let L=x.types[0].flags&8650752?0:1;x.types[L]===c&&mv(d,x.types[1-L])&&Iy(n,y)}}bz(n,c)}}}function Elt(n){return!!(n.flags&1048576&&(n.aliasSymbol||n.origin))}function jOe(n,a){for(let c of a)if(c.flags&1048576){let d=c.origin;c.aliasSymbol||d&&!(d.flags&1048576)?bf(n,c):d&&d.flags&1048576&&jOe(n,d.types)}}function Kge(n,a){let c=ax(n);return c.types=a,c}function ii(n,a=1,c,d,_){if(n.length===0)return Vr;if(n.length===1)return n[0];if(n.length===2&&!_&&(n[0].flags&1048576||n[1].flags&1048576)){let y=a===0?"N":a===2?"S":"L",x=n[0].id=2&&y[0]===Oe&&y[1]===w&&Iy(y,1),(x&402664352||x&16384&&x&32768)&&glt(y,x,!!(a&2)),x&128&&x&402653184&&vlt(y),x&536870912&&blt(y),a===2&&(y=hlt(y,!!(x&524288)),!y))return ht;if(y.length===0)return x&65536?x&4194304?pe:Ge:x&32768?x&4194304?Oe:Lt:Vr}if(!_&&x&1048576){let z=[];jOe(z,n);let U=[];for(let be of y)Et(z,ge=>mv(ge.types,be))||U.push(be);if(!c&&z.length===1&&U.length===0)return z[0];if(nd(z,(be,ge)=>be+ge.types.length,0)+U.length===y.length){for(let be of z)bz(U,be);_=Kge(1048576,U)}}let L=(x&36323331?0:32768)|(x&2097152?16777216:0);return Yge(y,L,c,d,_)}function Slt(n,a){let c,d=[];for(let y of n){let x=Bf(y);if(x){if(x.kind!==0&&x.kind!==1||c&&!Xge(c,x))return;c=x,d.push(x.type)}else{let L=a!==2097152?ms(y):void 0;if(L!==Kt&&L!==Tn)return}}if(!c)return;let _=fOe(d,a);return gz(c.kind,c.parameterName,c.parameterIndex,_)}function Xge(n,a){return n.kind===a.kind&&n.parameterIndex===a.parameterIndex}function Yge(n,a,c,d,_){if(n.length===0)return Vr;if(n.length===1)return n[0];let x=(_?_.flags&1048576?`|${fm(_.types)}`:_.flags&2097152?`&${fm(_.types)}`:`#${_.type.id}|${fm(n)}`:fm(n))+fx(c,d),L=nr.get(x);return L||(L=bg(1048576),L.objectFlags=a|zZ(n,98304),L.types=n,L.origin=_,L.aliasSymbol=c,L.aliasTypeArguments=d,n.length===2&&n[0].flags&512&&n[1].flags&512&&(L.flags|=16,L.intrinsicName="boolean"),nr.set(x,L)),L}function Tlt(n){let a=ti(n);if(!a.resolvedType){let c=_x(n);a.resolvedType=ii(Ft(n.types,Ii),1,c,SD(c))}return a.resolvedType}function Alt(n,a,c){let d=c.flags;return d&2097152?HOe(n,a,c.types):(Vh(c)?a&16777216||(a|=16777216,n.set(c.id.toString(),c)):(d&3?c===xt&&(a|=8388608):(Y||!(d&98304))&&(c===w&&(a|=262144,c=Oe),n.has(c.id.toString())||(c.flags&109472&&a&109472&&(a|=67108864),n.set(c.id.toString(),c))),a|=d&473694207),a)}function HOe(n,a,c){for(let d of c)a=Alt(n,a,vd(d));return a}function Ilt(n,a){let c=n.length;for(;c>0;){c--;let d=n[c];(d.flags&4&&a&402653312||d.flags&8&&a&256||d.flags&64&&a&2048||d.flags&4096&&a&8192||d.flags&16384&&a&32768||Vh(d)&&a&470302716)&&Iy(n,c)}}function xlt(n,a){for(let c of n)if(!mv(c.types,a)){let d=a.flags&128?ke:a.flags&288?Dt:a.flags&2048?Pt:a.flags&8192?Di:void 0;if(!d||!mv(c.types,d))return!1}return!0}function Rlt(n){let a=n.length,c=tr(n,d=>!!(d.flags&128));for(;a>0;){a--;let d=n[a];if(d.flags&402653184){for(let _ of c)if(Bb(_,d)){Iy(n,a);break}else if(VT(d))return!0}}return!1}function qOe(n,a){for(let c=0;c!(d.flags&a))}function Dlt(n){let a,c=ri(n,x=>!!(Wr(x)&32768));if(c<0)return!1;let d=c+1;for(;d!!(vt.flags&469893116)||Vh(vt))){if(Rz(Je,ge))return be;if(!(Je.flags&1048576&&jm(Je,vt=>Rz(vt,ge)))&&!Rz(ge,Je))return Vr;L=67108864}}}let z=fm(x)+fx(a,c),U=xr.get(z);if(!U){if(y&1048576)if(Dlt(x))U=Ea(x,a,c);else if(Jn(x,re=>!!(re.flags&1048576&&re.types[0].flags&32768))){let re=Et(x,F4)?w:Oe;qOe(x,32768),U=ii([Ea(x),re],1,a,c)}else if(Jn(x,re=>!!(re.flags&1048576&&(re.types[0].flags&65536||re.types[1].flags&65536))))qOe(x,65536),U=ii([Ea(x),pe],1,a,c);else if(x.length>=4){let re=Math.floor(x.length/2);U=Ea([Ea(x.slice(0,re)),Ea(x.slice(re))],a,c)}else{if(!Ez(x))return ht;let re=Nlt(x),be=Et(re,ge=>!!(ge.flags&2097152))&&$ge(re)>$ge(x)?Kge(2097152,x):void 0;U=ii(re,1,a,c,be)}else U=Clt(x,L,a,c);xr.set(z,U)}return U}function JOe(n){return nd(n,(a,c)=>c.flags&1048576?a*c.types.length:c.flags&131072?0:a,1)}function Ez(n){var a;let c=JOe(n);return c>=1e5?((a=lr)==null||a.instant(lr.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:n.map(d=>d.id),size:c}),qe(N,f.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function Nlt(n){let a=JOe(n),c=[];for(let d=0;d=0;L--)if(n[L].flags&1048576){let z=n[L].types,U=z.length;_[L]=z[y%U],y=Math.floor(y/U)}let x=Ea(_);x.flags&131072||c.push(x)}return c}function KOe(n){return!(n.flags&3145728)||n.aliasSymbol?1:n.flags&1048576&&n.origin?KOe(n.origin):$ge(n.types)}function $ge(n){return nd(n,(a,c)=>a+KOe(c),0)}function Plt(n){let a=ti(n);if(!a.resolvedType){let c=_x(n),d=Ft(n.types,Ii),_=d.length===2?d.indexOf(sc):-1,y=_>=0?d[1-_]:mn,x=!!(y.flags&76||y.flags&134217728&&VT(y));a.resolvedType=Ea(d,c,SD(c),x)}return a.resolvedType}function XOe(n,a){let c=bg(4194304);return c.type=n,c.indexFlags=a,c}function Mlt(n){let a=ax(4194304);return a.type=n,a}function YOe(n,a){return a&1?n.resolvedStringIndexType||(n.resolvedStringIndexType=XOe(n,1)):n.resolvedIndexType||(n.resolvedIndexType=XOe(n,0))}function $Oe(n,a){let c=f_(n),d=gf(n),_=py(n.target||n);if(!_&&!(a&2))return d;let y=[];if(UT(d)){if(_D(n))return YOe(n,a);$T(d,L)}else if(_D(n)){let z=Md(OT(n));pge(z,8576,!!(a&1),L)}else $T(pz(d),L);let x=a&2?uc(ii(y),z=>!(z.flags&5)):ii(y);if(x.flags&1048576&&d.flags&1048576&&fm(x.types)===fm(d.types))return d;return x;function L(z){let U=_?co(_,C4(n.mapper,c,z)):z;y.push(U===ke?Po:U)}}function Llt(n){let a=f_(n);return c(py(n)||a);function c(d){return d.flags&470810623?!0:d.flags&16777216?d.root.isDistributive&&d.checkType===a:d.flags&137363456?Jn(d.types,c):d.flags&8388608?c(d.objectType)&&c(d.indexType):d.flags&33554432?c(d.baseType)&&c(d.constraint):d.flags&268435456?c(d.type):!1}}function _y(n){if(Xi(n))return Vr;if(hp(n))return vd(go(n));if(Za(n))return vd(Ig(n));let a=TS(n);return a!==void 0?qd(Hi(a)):bt(n)?vd(go(n)):Vr}function bD(n,a,c){if(c||!(If(n)&6)){let d=$i(PZ(n)).nameType;if(!d){let _=Oo(n.valueDeclaration);d=n.escapedName==="default"?qd("default"):_&&_y(_)||(ek(n)?void 0:qd(bl(n)))}if(d&&d.flags&a)return d}return Vr}function QOe(n,a){return!!(n.flags&a||n.flags&2097152&&Et(n.types,c=>QOe(c,a)))}function klt(n,a,c){let d=c&&(Wr(n)&7||n.aliasSymbol)?Mlt(n):void 0,_=Ft(ys(n),x=>bD(x,a)),y=Ft(hd(n),x=>x!==jr&&QOe(x.keyType,a)?x.keyType===ke&&a&8?Po:x.keyType:Vr);return ii(xo(_,y),1,void 0,void 0,d)}function Qge(n,a=0){return!!(n.flags&58982400||Vb(n)||Hd(n)&&(!Llt(n)||LZ(n)===2)||n.flags&1048576&&!(a&4)&&yge(n)||n.flags&2097152&&Dl(n,465829888)&&Et(n.types,Vh))}function $_(n,a=He){return n=__(n),qP(n)?Mge($_(n.baseType,a)):Qge(n,a)?YOe(n,a):n.flags&1048576?Ea(Ft(n.types,c=>$_(c,a))):n.flags&2097152?ii(Ft(n.types,c=>$_(c,a))):Wr(n)&32?$Oe(n,a):n===xt?xt:n.flags&2?Vr:n.flags&131073?Fs:klt(n,(a&2?128:402653316)|(a&1?0:12584),a===He)}function ZOe(n){if(Le)return n;let a=Xst();return a?vD(a,[n,ke]):ke}function wlt(n){let a=ZOe($_(n));return a.flags&131072?ke:a}function Olt(n){let a=ti(n);if(!a.resolvedType)switch(n.operator){case 143:a.resolvedType=$_(Ii(n.type));break;case 158:a.resolvedType=n.type.kind===155?ave(KL(n.parent)):ht;break;case 148:a.resolvedType=Ii(n.type);break;default:C.assertNever(n.operator)}return a.resolvedType}function Flt(n){let a=ti(n);return a.resolvedType||(a.resolvedType=GT([n.head.text,...Ft(n.templateSpans,c=>c.literal.text)],Ft(n.templateSpans,c=>Ii(c.type)))),a.resolvedType}function GT(n,a){let c=ri(a,U=>!!(U.flags&1179648));if(c>=0)return Ez(a)?ul(a[c],U=>GT(n,rG(a,c,U))):ht;if(wr(a,xt))return xt;let d=[],_=[],y=n[0];if(!z(n,a))return ke;if(d.length===0)return qd(y);if(_.push(y),Jn(_,U=>U==="")){if(Jn(d,U=>!!(U.flags&4)))return ke;if(d.length===1&&VT(d[0]))return d[0]}let x=`${fm(d)}|${Ft(_,U=>U.length).join(",")}|${_.join("")}`,L=bi.get(x);return L||bi.set(x,L=zlt(_,d)),L;function z(U,re){for(let be=0;bemx(n,c)):a.flags&128?qd(e4e(n,a.value)):a.flags&134217728?GT(...Blt(n,a.texts,a.types)):a.flags&268435456&&n===a.symbol?a:a.flags&268435461||UT(a)?t4e(n,a):Sz(a)?t4e(n,GT(["",""],[a])):a}function e4e(n,a){switch(J5.get(n.escapedName)){case 0:return a.toUpperCase();case 1:return a.toLowerCase();case 2:return a.charAt(0).toUpperCase()+a.slice(1);case 3:return a.charAt(0).toLowerCase()+a.slice(1)}return a}function Blt(n,a,c){switch(J5.get(n.escapedName)){case 0:return[a.map(d=>d.toUpperCase()),c.map(d=>mx(n,d))];case 1:return[a.map(d=>d.toLowerCase()),c.map(d=>mx(n,d))];case 2:return[a[0]===""?a:[a[0].charAt(0).toUpperCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[mx(n,c[0]),...c.slice(1)]:c];case 3:return[a[0]===""?a:[a[0].charAt(0).toLowerCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[mx(n,c[0]),...c.slice(1)]:c]}return[a,c]}function t4e(n,a){let c=`${Ta(n)},${gd(a)}`,d=ro.get(c);return d||ro.set(c,d=Glt(n,a)),d}function Glt(n,a){let c=Eg(268435456,n);return c.type=a,c}function Vlt(n,a,c,d,_){let y=bg(8388608);return y.objectType=n,y.indexType=a,y.accessFlags=c,y.aliasSymbol=d,y.aliasTypeArguments=_,y}function R4(n){if(me)return!1;if(Wr(n)&4096)return!0;if(n.flags&1048576)return Jn(n.types,R4);if(n.flags&2097152)return Et(n.types,R4);if(n.flags&465829888){let a=hge(n);return a!==n&&R4(a)}return!1}function HZ(n,a){return nm(n)?rm(n):a&&ic(a)?TS(a):void 0}function Zge(n,a){if(a.flags&8208){let c=zn(n.parent,d=>!ks(d))||n.parent;return T1(c)?T_(c)&&Ve(n)&&u8e(c,n):Jn(a.declarations,d=>!ea(d)||ay(d))}return!0}function n4e(n,a,c,d,_,y){let x=_&&_.kind===212?_:void 0,L=_&&Xi(_)?void 0:HZ(c,_);if(L!==void 0){if(y&256)return p1(a,L)||j;let U=ba(a,L);if(U){if(y&64&&_&&U.declarations&&fb(U)&&Zge(_,U)){let be=x?.argumentExpression??(wS(_)?_.indexType:_);sy(be,U.declarations,L)}if(x){if(eB(U,x,b6e(x.expression,a.symbol)),c3e(x,U,wA(x))){qe(x.argumentExpression,f.Cannot_assign_to_0_because_it_is_a_read_only_property,Ai(U));return}if(y&8&&(ti(_).resolvedSymbol=U),f6e(x,U))return ot}let re=y&4?ME(U):pr(U);return x&&wA(x)!==1?Hb(x,re):_&&wS(_)&&F4(re)?ii([re,Oe]):re}if(cp(a,Wa)&&sg(L)){let re=+L;if(_&&cp(a,be=>!be.target.hasRestElement)&&!(y&16)){let be=eve(_);if(Wa(a)){if(re<0)return qe(be,f.A_tuple_type_cannot_be_indexed_with_a_negative_value),Oe;qe(be,f.Tuple_type_0_of_length_1_has_no_element_at_index_2,jn(a),my(a),Hi(L))}else qe(be,f.Property_0_does_not_exist_on_type_1,Hi(L),jn(a))}if(re>=0)return z(Ag(a,Dt)),U4e(a,re,y&1?w:void 0)}}if(!(c.flags&98304)&&xu(c,402665900)){if(a.flags&131073)return a;let U=E4(a,c)||Ag(a,ke);if(U){if(y&2&&U.keyType!==Dt){x&&(y&4?qe(x,f.Type_0_is_generic_and_can_only_be_indexed_for_reading,jn(n)):qe(x,f.Type_0_cannot_be_used_to_index_type_1,jn(c),jn(n)));return}if(_&&U.keyType===ke&&!xu(c,12)){let re=eve(_);return qe(re,f.Type_0_cannot_be_used_as_an_index_type,jn(c)),y&1?ii([U.type,w]):U.type}return z(U),y&1&&!(a.symbol&&a.symbol.flags&384&&c.symbol&&c.flags&1024&&Cd(c.symbol)===a.symbol)?ii([U.type,w]):U.type}if(c.flags&131072)return Vr;if(R4(a))return j;if(x&&!Qee(a)){if(d1(a)){if(me&&c.flags&384)return ns.add(Or(x,f.Property_0_does_not_exist_on_type_1,c.value,jn(a))),Oe;if(c.flags&12){let re=Ft(a.properties,be=>pr(be));return ii(In(re,Oe))}}if(a.symbol===at&&L!==void 0&&at.exports.has(L)&&at.exports.get(L).flags&418)qe(x,f.Property_0_does_not_exist_on_type_1,Hi(L),jn(a));else if(me&&!V.suppressImplicitAnyIndexErrors&&!(y&128))if(L!==void 0&&g6e(L,a)){let re=jn(a);qe(x,f.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,L,re,re+"["+pc(x.argumentExpression)+"]")}else if(r1(a,Dt))qe(x.argumentExpression,f.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let re;if(L!==void 0&&(re=Aye(L,a)))re!==void 0&&qe(x.argumentExpression,f.Property_0_does_not_exist_on_type_1_Did_you_mean_2,L,jn(a),re);else{let be=Bpt(a,x,c);if(be!==void 0)qe(x,f.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,jn(a),be);else{let ge;if(c.flags&1024)ge=Uo(void 0,f.Property_0_does_not_exist_on_type_1,"["+jn(c)+"]",jn(a));else if(c.flags&8192){let Je=Up(c.symbol,x);ge=Uo(void 0,f.Property_0_does_not_exist_on_type_1,"["+Je+"]",jn(a))}else c.flags&128||c.flags&256?ge=Uo(void 0,f.Property_0_does_not_exist_on_type_1,c.value,jn(a)):c.flags&12&&(ge=Uo(void 0,f.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,jn(c),jn(a)));ge=Uo(ge,f.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,jn(d),jn(a)),ns.add(Og(Vn(x),x,ge))}}}return}}if(R4(a))return j;if(_){let U=eve(_);c.flags&384?qe(U,f.Property_0_does_not_exist_on_type_1,""+c.value,jn(a)):c.flags&12?qe(U,f.Type_0_has_no_matching_index_signature_for_type_1,jn(a),jn(c)):qe(U,f.Type_0_cannot_be_used_as_an_index_type,jn(c))}if(Ct(c))return c;return;function z(U){U&&U.isReadonly&&x&&(ng(x)||zj(x))&&qe(x,f.Index_signature_in_type_0_only_permits_reading,jn(a))}}function eve(n){return n.kind===212?n.argumentExpression:n.kind===199?n.indexType:n.kind===167?n.expression:n}function Sz(n){if(n.flags&2097152){let a=!1;for(let c of n.types)if(c.flags&101248||Sz(c))a=!0;else if(!(c.flags&524288))return!1;return a}return!!(n.flags&77)||VT(n)}function VT(n){return!!(n.flags&134217728)&&Jn(n.types,Sz)||!!(n.flags&268435456)&&Sz(n.type)}function r4e(n){return!!(n.flags&402653184)&&!VT(n)}function ED(n){return!!D4(n)}function jT(n){return!!(D4(n)&4194304)}function UT(n){return!!(D4(n)&8388608)}function D4(n){return n.flags&3145728?(n.objectFlags&2097152||(n.objectFlags|=2097152|nd(n.types,(a,c)=>a|D4(c),0)),n.objectFlags&12582912):n.flags&33554432?(n.objectFlags&2097152||(n.objectFlags|=2097152|D4(n.baseType)|D4(n.constraint)),n.objectFlags&12582912):(n.flags&58982400||Hd(n)||Vb(n)?4194304:0)|(n.flags&63176704||r4e(n)?8388608:0)}function _v(n,a){return n.flags&8388608?Ult(n,a):n.flags&16777216?Hlt(n,a):n}function i4e(n,a,c){if(n.flags&1048576||n.flags&2097152&&!Qge(n)){let d=Ft(n.types,_=>_v(Pp(_,a),c));return n.flags&2097152||c?Ea(d):ii(d)}}function jlt(n,a,c){if(a.flags&1048576){let d=Ft(a.types,_=>_v(Pp(n,_),c));return c?Ea(d):ii(d)}}function Ult(n,a){let c=a?"simplifiedForWriting":"simplifiedForReading";if(n[c])return n[c]===nu?n:n[c];n[c]=nu;let d=_v(n.objectType,a),_=_v(n.indexType,a),y=jlt(d,_,a);if(y)return n[c]=y;if(!(_.flags&465829888)){let x=i4e(d,_,a);if(x)return n[c]=x}if(Vb(d)&&_.flags&296){let x=ZP(d,_.flags&8?0:d.target.fixedLength,0,a);if(x)return n[c]=x}return Hd(d)&&LZ(d)!==2?n[c]=ul(qZ(d,n.indexType),x=>_v(x,a)):n[c]=n}function Hlt(n,a){let c=n.checkType,d=n.extendsType,_=o1(n),y=a1(n);if(y.flags&131072&&Wb(_)===Wb(c)){if(c.flags&1||Sa(qT(c),qT(d)))return _v(_,a);if(o4e(c,d))return Vr}else if(_.flags&131072&&Wb(y)===Wb(c)){if(!(c.flags&1)&&Sa(qT(c),qT(d)))return Vr;if(c.flags&1||o4e(c,d))return _v(y,a)}return n}function o4e(n,a){return!!(ii([dz(n,a),Vr]).flags&131072)}function qZ(n,a){let c=Mp([f_(n)],[a]),d=zE(n.mapper,c);return co(pv(n.target||n),d)}function Pp(n,a,c=0,d,_,y){return Fb(n,a,c,d,_,y)||(d?ht:mn)}function a4e(n,a){return cp(n,c=>{if(c.flags&384){let d=rm(c);if(sg(d)){let _=+d;return _>=0&&_0&&!Et(n.elements,a=>Y7(a)||$7(a)||FR(a)&&!!(a.questionToken||a.dotDotDotToken))}function c4e(n,a){return ED(n)||a&&Wa(n)&&Et(wE(n),ED)}function nve(n,a,c,d,_){let y,x,L=0;for(;;){if(L===1e3)return qe(N,f.Type_instantiation_is_excessively_deep_and_possibly_infinite),ht;let U=co(Wb(n.checkType),a),re=co(n.extendsType,a);if(U===ht||re===ht)return ht;if(U===xt||re===xt)return xt;let be=XL(n.node.checkType),ge=XL(n.node.extendsType),Je=l4e(be)&&l4e(ge)&&De(be.elements)===De(ge.elements),vt=c4e(U,Je),Rt;if(n.inferTypeParameters){let un=z4(n.inferTypeParameters,void 0,0);a&&(un.nonFixingMapper=zE(un.nonFixingMapper,a)),vt||bv(un.inferences,U,re,1536),Rt=a?zE(un.mapper,a):un.mapper}let sn=Rt?co(n.extendsType,Rt):re;if(!vt&&!c4e(sn,Je)){if(!(sn.flags&3)&&(U.flags&1||!Sa(P4(U),P4(sn)))){(U.flags&1||c&&!(sn.flags&131072)&&jm(P4(sn),sr=>Sa(sr,P4(U))))&&(x||(x=[])).push(co(Ii(n.node.trueType),Rt||a));let un=Ii(n.node.falseType);if(un.flags&16777216){let sr=un.root;if(sr.node.parent===n.node&&(!sr.isDistributive||sr.checkType===n.checkType)){n=sr;continue}if(z(un,a))continue}y=co(un,a);break}if(sn.flags&3||Sa(qT(U),qT(sn))){let un=Ii(n.node.trueType),sr=Rt||a;if(z(un,sr))continue;y=co(un,sr);break}}y=bg(16777216),y.root=n,y.checkType=co(n.checkType,a),y.extendsType=co(n.extendsType,a),y.mapper=a,y.combinedMapper=Rt,y.aliasSymbol=d||n.aliasSymbol,y.aliasTypeArguments=d?_:hy(n.aliasTypeArguments,a);break}return x?ii(In(x,y)):y;function z(U,re){if(U.flags&16777216&&re){let be=U.root;if(be.outerTypeParameters){let ge=zE(U.mapper,re),Je=Ft(be.outerTypeParameters,sn=>zb(sn,ge)),vt=Mp(be.outerTypeParameters,Je),Rt=be.isDistributive?zb(be.checkType,vt):void 0;if(!Rt||Rt===be.checkType||!(Rt.flags&1179648))return n=be,a=vt,d=void 0,_=void 0,be.aliasSymbol&&L++,!0}}return!1}}function o1(n){return n.resolvedTrueType||(n.resolvedTrueType=co(Ii(n.root.node.trueType),n.mapper))}function a1(n){return n.resolvedFalseType||(n.resolvedFalseType=co(Ii(n.root.node.falseType),n.mapper))}function qlt(n){return n.resolvedInferredTrueType||(n.resolvedInferredTrueType=n.combinedMapper?co(Ii(n.root.node.trueType),n.combinedMapper):o1(n))}function u4e(n){let a;return n.locals&&n.locals.forEach(c=>{c.flags&262144&&(a=In(a,Qs(c)))}),a}function Jlt(n){return n.isDistributive&&(xz(n.checkType,n.node.trueType)||xz(n.checkType,n.node.falseType))}function Klt(n){let a=ti(n);if(!a.resolvedType){let c=Ii(n.checkType),d=_x(n),_=SD(d),y=Cn(n,!0),x=_?y:tr(y,z=>xz(z,n)),L={node:n,checkType:c,extendsType:Ii(n.extendsType),isDistributive:!!(c.flags&262144),inferTypeParameters:u4e(n),outerTypeParameters:x,instantiations:void 0,aliasSymbol:d,aliasTypeArguments:_};a.resolvedType=nve(L,void 0,!1),x&&(L.instantiations=new Map,L.instantiations.set(fm(x),a.resolvedType))}return a.resolvedType}function Xlt(n){let a=ti(n);return a.resolvedType||(a.resolvedType=wT(Rr(n.typeParameter))),a.resolvedType}function d4e(n){return Ve(n)?[n]:In(d4e(n.left),n.right)}function Ylt(n){var a;let c=ti(n);if(!c.resolvedType){if(!zy(n))return qe(n.argument,f.String_literal_expected),c.resolvedSymbol=ft,c.resolvedType=ht;let d=n.isTypeOf?111551:n.flags&16777216?900095:788968,_=_d(n,n.argument.literal);if(!_)return c.resolvedSymbol=ft,c.resolvedType=ht;let y=!!((a=_.exports)!=null&&a.get("export=")),x=Rp(_,!1);if(Fl(n.qualifier))if(x.flags&d)c.resolvedType=p4e(n,c,x,d);else{let L=d===111551?f.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:f.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;qe(n,L,n.argument.literal.text),c.resolvedSymbol=ft,c.resolvedType=ht}else{let L=d4e(n.qualifier),z=x,U;for(;U=L.shift();){let re=L.length?1920:d,be=is(Gl(z)),ge=n.isTypeOf||cr(n)&&y?ba(pr(be),U.escapedText,!1,!0):void 0,vt=(n.isTypeOf?void 0:Ud(Dp(be),U.escapedText,re))??ge;if(!vt)return qe(U,f.Namespace_0_has_no_exported_member_1,Up(z),Ds(U)),c.resolvedType=ht;ti(U).resolvedSymbol=vt,ti(U.parent).resolvedSymbol=vt,z=vt}c.resolvedType=p4e(n,c,z,d)}}return c.resolvedType}function p4e(n,a,c,d){let _=Gl(c);return a.resolvedSymbol=_,d===111551?J6e(pr(c),n):GZ(n,_)}function f4e(n){let a=ti(n);if(!a.resolvedType){let c=_x(n);if(Lb(n.symbol).size===0&&!c)a.resolvedType=sc;else{let d=Of(16,n.symbol);d.aliasSymbol=c,d.aliasTypeArguments=SD(c),GS(n)&&n.isArrayType&&(d=Gu(d)),a.resolvedType=d}}return a.resolvedType}function _x(n){let a=n.parent;for(;LS(a)||Z1(a)||kS(a)&&a.operator===148;)a=a.parent;return UL(a)?Rr(a):void 0}function SD(n){return n?kr(n):void 0}function JZ(n){return!!(n.flags&524288)&&!Hd(n)}function rve(n){return gv(n)||!!(n.flags&474058748)}function ive(n,a){if(!(n.flags&1048576))return n;if(Jn(n.types,rve))return vn(n.types,gv)||Pa;let c=vn(n.types,y=>!rve(y));if(!c||vn(n.types,y=>y!==c&&!rve(y)))return n;return _(c);function _(y){let x=ua();for(let z of ys(y))if(!(If(z)&6)){if(KZ(z)){let U=z.flags&65536&&!(z.flags&32768),be=Xa(16777220,z.escapedName,dge(z)|(a?8:0));be.links.type=U?Oe:lp(pr(z),!0),be.declarations=z.declarations,be.links.nameType=$i(z).nameType,be.links.syntheticOrigin=z,x.set(z.escapedName,be)}}let L=Ls(y.symbol,x,et,et,hd(y));return L.objectFlags|=131200,L}}function OE(n,a,c,d,_){if(n.flags&1||a.flags&1)return j;if(n.flags&2||a.flags&2)return mn;if(n.flags&131072)return a;if(a.flags&131072)return n;if(n=ive(n,_),n.flags&1048576)return Ez([n,a])?ul(n,U=>OE(U,a,c,d,_)):ht;if(a=ive(a,_),a.flags&1048576)return Ez([n,a])?ul(a,U=>OE(n,U,c,d,_)):ht;if(a.flags&473960444)return n;if(jT(n)||jT(a)){if(gv(n))return a;if(n.flags&2097152){let U=n.types,re=U[U.length-1];if(JZ(re)&&JZ(a))return Ea(xo(U.slice(0,U.length-1),[OE(re,a,c,d,_)]))}return Ea([n,a])}let y=ua(),x=new Set,L=n===Pa?hd(a):Kwe([n,a]);for(let U of ys(a))If(U)&6?x.add(U.escapedName):KZ(U)&&y.set(U.escapedName,ove(U,_));for(let U of ys(n))if(!(x.has(U.escapedName)||!KZ(U)))if(y.has(U.escapedName)){let re=y.get(U.escapedName),be=pr(re);if(re.flags&16777216){let ge=xo(U.declarations,re.declarations),Je=4|U.flags&16777216,vt=Xa(Je,U.escapedName),Rt=pr(U),sn=mee(Rt),un=mee(be);vt.links.type=sn===un?Rt:ii([Rt,un],2),vt.links.leftSpread=U,vt.links.rightSpread=re,vt.declarations=ge,vt.links.nameType=$i(U).nameType,y.set(U.escapedName,vt)}}else y.set(U.escapedName,ove(U,_));let z=Ls(c,y,et,et,Io(L,U=>$lt(U,_)));return z.objectFlags|=2228352|d,z}function KZ(n){var a;return!Et(n.declarations,ad)&&(!(n.flags&106496)||!((a=n.declarations)!=null&&a.some(c=>pi(c.parent))))}function ove(n,a){let c=n.flags&65536&&!(n.flags&32768);if(!c&&a===y_(n))return n;let d=4|n.flags&16777216,_=Xa(d,n.escapedName,dge(n)|(a?8:0));return _.links.type=c?Oe:pr(n),_.declarations=n.declarations,_.links.nameType=$i(n).nameType,_.links.syntheticOrigin=n,_}function $lt(n,a){return n.isReadonly!==a?Bh(n.keyType,n.type,a,n.declaration):n}function Tz(n,a,c,d){let _=Eg(n,c);return _.value=a,_.regularType=d||_,_}function hx(n){if(n.flags&2976){if(!n.freshType){let a=Tz(n.flags,n.value,n.symbol,n);a.freshType=a,n.freshType=a}return n.freshType}return n}function vd(n){return n.flags&2976?n.regularType:n.flags&1048576?n.regularType||(n.regularType=ul(n,vd)):n}function FE(n){return!!(n.flags&2976)&&n.freshType===n}function qd(n){let a;return ln.get(n)||(ln.set(n,a=Tz(128,n)),a)}function h_(n){let a;return tt.get(n)||(tt.set(n,a=Tz(256,n)),a)}function XZ(n){let a,c=z1(n);return zt.get(c)||(zt.set(c,a=Tz(2048,n)),a)}function Qlt(n,a,c){let d,_=`${a}${typeof n=="string"?"@":"#"}${n}`,y=1024|(typeof n=="string"?128:256);return Rn.get(_)||(Rn.set(_,d=Tz(y,n,c)),d)}function Zlt(n){if(n.literal.kind===106)return pe;let a=ti(n);return a.resolvedType||(a.resolvedType=vd(go(n.literal))),a.resolvedType}function ect(n){let a=Eg(8192,n);return a.escapedName=`__@${a.symbol.escapedName}@${Ta(a.symbol)}`,a}function ave(n){if(cr(n)&&Z1(n)){let a=SS(n);a&&(n=kA(a)||a)}if(yie(n)){let a=J6(n)?ff(n.left):ff(n);if(a){let c=$i(a);return c.uniqueESSymbolType||(c.uniqueESSymbolType=ect(a))}}return Di}function tct(n){let a=wd(n,!1,!1),c=a&&a.parent;if(c&&(pi(c)||c.kind===264)&&!sa(a)&&(!Pl(a)||P1(n,a.body)))return zf(Rr(c)).thisType;if(c&&wa(c)&&_r(c.parent)&&Wl(c.parent)===6)return zf(ff(c.parent.left).parent).thisType;let d=n.flags&16777216?u0(n):void 0;return d&&ws(d)&&_r(d.parent)&&Wl(d.parent)===3?zf(ff(d.parent.left).parent).thisType:th(a)&&P1(n,a.body)?zf(Rr(a)).thisType:(qe(n,f.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),ht)}function YZ(n){let a=ti(n);return a.resolvedType||(a.resolvedType=tct(n)),a.resolvedType}function m4e(n){return Ii(Az(n.type)||n.type)}function Az(n){switch(n.kind){case 196:return Az(n.type);case 189:if(n.elements.length===1&&(n=n.elements[0],n.kind===191||n.kind===202&&n.dotDotDotToken))return Az(n.type);break;case 188:return n.elementType}}function nct(n){let a=ti(n);return a.resolvedType||(a.resolvedType=n.dotDotDotToken?m4e(n):lp(Ii(n.type),!0,!!n.questionToken))}function Ii(n){return kst(_4e(n),n)}function _4e(n){switch(n.kind){case 133:case 319:case 320:return j;case 159:return mn;case 154:return ke;case 150:return Dt;case 163:return Pt;case 136:return yi;case 155:return Di;case 116:return or;case 157:return Oe;case 106:return pe;case 146:return Vr;case 151:return n.flags&524288&&!me?j:Kr;case 141:return fn;case 197:case 110:return YZ(n);case 201:return Zlt(n);case 183:return Oge(n);case 182:return n.assertsModifier?or:yi;case 233:return Oge(n);case 186:return xOe(n);case 188:case 189:return ult(n);case 190:return mlt(n);case 192:return Tlt(n);case 193:return Plt(n);case 321:return wst(n);case 323:return lp(Ii(n.type));case 202:return nct(n);case 196:case 322:case 316:return Ii(n.type);case 191:return m4e(n);case 325:return igt(n);case 184:case 185:case 187:case 329:case 324:case 330:return f4e(n);case 198:return Olt(n);case 199:return s4e(n);case 200:return tve(n);case 194:return Klt(n);case 195:return Xlt(n);case 203:return Flt(n);case 205:return Ylt(n);case 80:case 166:case 211:let a=Um(n);return a?Qs(a):ht;default:return ht}}function $Z(n,a,c){if(n&&n.length)for(let d=0;dd.typeParameter),Ft(c,()=>mn))}function zE(n,a){return n?ZZ(4,n,a):a}function oct(n,a){return n?ZZ(5,n,a):a}function HT(n,a,c){return c?ZZ(5,WE(n,a),c):WE(n,a)}function C4(n,a,c){return n?ZZ(5,n,WE(a,c)):WE(a,c)}function act(n){return!n.constraint&&!Nge(n)||n.constraint===Vs?n:n.restrictiveInstantiation||(n.restrictiveInstantiation=_f(n.symbol),n.restrictiveInstantiation.constraint=Vs,n.restrictiveInstantiation)}function lve(n){let a=_f(n.symbol);return a.target=n,a}function sct(n,a){return gz(n.kind,n.parameterName,n.parameterIndex,co(n.type,a))}function TD(n,a,c){let d;if(n.typeParameters&&!c){d=Ft(n.typeParameters,lve),a=zE(Mp(n.typeParameters,d),a);for(let y of d)y.mapper=a}let _=Tg(n.declaration,d,n.thisParameter&&cve(n.thisParameter,a),$Z(n.parameters,a,cve),void 0,void 0,n.minArgumentCount,n.flags&167);return _.target=n,_.mapper=a,_}function cve(n,a){let c=$i(n);if(c.type&&!u1(c.type)&&(!(n.flags&65536)||c.writeType&&!u1(c.writeType)))return n;Al(n)&1&&(n=c.target,a=zE(c.mapper,a));let d=Xa(n.flags,n.escapedName,1|Al(n)&53256);return d.declarations=n.declarations,d.parent=n.parent,d.links.target=n,d.links.mapper=a,n.valueDeclaration&&(d.valueDeclaration=n.valueDeclaration),c.nameType&&(d.links.nameType=c.nameType),d}function lct(n,a,c,d){let _=n.objectFlags&4||n.objectFlags&8388608?n.node:n.symbol.declarations[0],y=ti(_),x=n.objectFlags&4?y.resolvedType:n.objectFlags&64?n.target:n,L=y.outerTypeParameters;if(!L){let z=Cn(_,!0);if(th(_)){let re=dOe(_);z=Jr(z,re)}L=z||et;let U=n.objectFlags&8388612?[_]:n.symbol.declarations;L=(x.objectFlags&8388612||x.symbol.flags&8192||x.symbol.flags&2048)&&!x.aliasTypeArguments?tr(L,re=>Et(U,be=>xz(re,be))):L,y.outerTypeParameters=L}if(L.length){let z=zE(n.mapper,a),U=Ft(L,vt=>zb(vt,z)),re=c||n.aliasSymbol,be=c?d:hy(n.aliasTypeArguments,a),ge=fm(U)+fx(re,be);x.instantiations||(x.instantiations=new Map,x.instantiations.set(fm(L)+fx(x.aliasSymbol,x.aliasTypeArguments),x));let Je=x.instantiations.get(ge);if(!Je){let vt=Mp(L,U);Je=x.objectFlags&4?Pge(n.target,n.node,vt,re,be):x.objectFlags&32?uct(x,vt,re,be):uve(x,vt,re,be),x.instantiations.set(ge,Je);let Rt=Wr(Je);if(Je.flags&3899393&&!(Rt&524288)){let sn=Et(U,u1);Wr(Je)&524288||(Rt&52?Je.objectFlags|=524288|(sn?1048576:0):Je.objectFlags|=sn?0:524288)}}return Je}return n}function cct(n){return!(n.parent.kind===183&&n.parent.typeArguments&&n===n.parent.typeName||n.parent.kind===205&&n.parent.typeArguments&&n===n.parent.qualifier)}function xz(n,a){if(n.symbol&&n.symbol.declarations&&n.symbol.declarations.length===1){let d=n.symbol.declarations[0].parent;for(let _=a;_!==d;_=_.parent)if(!_||_.kind===241||_.kind===194&&Ho(_.extendsType,c))return!0;return c(a)}return!0;function c(d){switch(d.kind){case 197:return!!n.isThisType;case 80:return!n.isThisType&&Zh(d)&&cct(d)&&_4e(d)===n;case 186:let _=d.exprName,y=Bp(_);if(!O1(y)){let x=Vm(y),L=n.symbol.declarations[0],z=L.kind===168?L.parent:n.isThisType?L:void 0;if(x.declarations&&z)return Et(x.declarations,U=>P1(U,z))||Et(d.typeArguments,c)}return!0;case 174:case 173:return!d.type&&!!d.body||Et(d.typeParameters,c)||Et(d.parameters,c)||!!d.type&&c(d.type)}return!!Ho(d,c)}}function N4(n){let a=gf(n);if(a.flags&4194304){let c=Wb(a.type);if(c.flags&262144)return c}}function uct(n,a,c,d){let _=N4(n);if(_){let x=co(_,a);if(_!==x)return b8e(__(x),y,c,d)}return co(gf(n),a)===xt?xt:uve(n,a,c,d);function y(x){if(x.flags&61603843&&x!==xt&&!qt(x)){if(!n.declaration.nameType){let L;if(jf(x)||x.flags&1&&cx(_,4)<0&&(L=Pd(_))&&cp(L,l1))return pct(x,n,HT(_,x,a));if(Wa(x))return dct(x,n,_,a);if(oOe(x))return Ea(Ft(x.types,y))}return uve(n,HT(_,x,a))}return x}}function v4e(n,a){return a&1?!0:a&2?!1:n}function dct(n,a,c,d){let _=n.target.elementFlags,y=n.target.fixedLength,x=y?HT(c,n,d):d,L=Ft(wE(n),(be,ge)=>{let Je=_[ge];return gebe&1?2:be):z&8?Ft(_,be=>be&2?1:be):_,re=v4e(n.target.readonly,Wh(a));return wr(L,ht)?ht:Gh(L,U,re,n.target.labeledElementDeclarations)}function pct(n,a,c){let d=y4e(a,Dt,!0,c);return qt(d)?ht:Gu(d,v4e($P(n),Wh(a)))}function y4e(n,a,c,d){let _=C4(d,f_(n),a),y=co(pv(n.target||n),_),x=Wh(n);return Y&&x&4&&!Dl(y,49152)?jb(y,!0):Y&&x&8&&c?_m(y,524288):y}function uve(n,a,c,d){C.assert(n.symbol,"anonymous type must have symbol to be instantiated");let _=Of(n.objectFlags&-1572865|64,n.symbol);if(n.objectFlags&32){_.declaration=n.declaration;let y=f_(n),x=lve(y);_.typeParameter=x,a=zE(WE(y,x),a),x.mapper=a}return n.objectFlags&8388608&&(_.node=n.node),_.target=n,_.mapper=a,_.aliasSymbol=c||n.aliasSymbol,_.aliasTypeArguments=c?d:hy(n.aliasTypeArguments,a),_.objectFlags|=_.aliasTypeArguments?zZ(_.aliasTypeArguments):0,_}function dve(n,a,c,d,_){let y=n.root;if(y.outerTypeParameters){let x=Ft(y.outerTypeParameters,U=>zb(U,a)),L=(c?"C":"")+fm(x)+fx(d,_),z=y.instantiations.get(L);if(!z){let U=Mp(y.outerTypeParameters,x),re=y.checkType,be=y.isDistributive?__(zb(re,U)):void 0;z=be&&re!==be&&be.flags&1179648?b8e(be,ge=>nve(y,HT(re,ge,U),c),d,_):nve(y,U,c,d,_),y.instantiations.set(L,z)}return z}return n}function co(n,a){return n&&a?b4e(n,a,void 0,void 0):n}function b4e(n,a,c,d){var _;if(!u1(n))return n;if(R===100||I>=5e6)return(_=lr)==null||_.instant(lr.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:n.id,instantiationDepth:R,instantiationCount:I}),qe(N,f.Type_instantiation_is_excessively_deep_and_possibly_infinite),ht;T++,I++,R++;let y=fct(n,a,c,d);return R--,y}function fct(n,a,c,d){let _=n.flags;if(_&262144)return zb(n,a);if(_&524288){let y=n.objectFlags;if(y&52){if(y&4&&!n.node){let x=n.resolvedTypeArguments,L=hy(x,a);return L!==x?Hge(n.target,L):n}return y&1024?mct(n,a):lct(n,a,c,d)}return n}if(_&3145728){let y=n.flags&1048576?n.origin:void 0,x=y&&y.flags&3145728?y.types:n.types,L=hy(x,a);if(L===x&&c===n.aliasSymbol)return n;let z=c||n.aliasSymbol,U=c?d:hy(n.aliasTypeArguments,a);return _&2097152||y&&y.flags&2097152?Ea(L,z,U):ii(L,1,z,U)}if(_&4194304)return $_(co(n.type,a));if(_&134217728)return GT(n.texts,hy(n.types,a));if(_&268435456)return mx(n.symbol,co(n.type,a));if(_&8388608){let y=c||n.aliasSymbol,x=c?d:hy(n.aliasTypeArguments,a);return Pp(co(n.objectType,a),co(n.indexType,a),n.accessFlags,void 0,y,x)}if(_&16777216)return dve(n,zE(n.mapper,a),!1,c,d);if(_&33554432){let y=co(n.baseType,a);if(qP(n))return Mge(y);let x=co(n.constraint,a);return y.flags&8650752&&ED(x)?kge(y,x):x.flags&3||Sa(qT(y),qT(x))?y:y.flags&8650752?kge(y,x):Ea([x,y])}return n}function mct(n,a){let c=co(n.mappedType,a);if(!(Wr(c)&32))return n;let d=co(n.constraintType,a);if(!(d.flags&4194304))return n;let _=Q4e(co(n.source,a),c,d);return _||n}function P4(n){return n.flags&402915327?n:n.permissiveInstantiation||(n.permissiveInstantiation=co(n,hl))}function qT(n){return n.flags&402915327?n:(n.restrictiveInstantiation||(n.restrictiveInstantiation=co(n,Gs),n.restrictiveInstantiation.restrictiveInstantiation=n.restrictiveInstantiation),n.restrictiveInstantiation)}function _ct(n,a){return Bh(n.keyType,co(n.type,a),n.isReadonly,n.declaration)}function Gf(n){switch(C.assert(n.kind!==174||Im(n)),n.kind){case 218:case 219:case 174:case 262:return E4e(n);case 210:return Et(n.properties,Gf);case 209:return Et(n.elements,Gf);case 227:return Gf(n.whenTrue)||Gf(n.whenFalse);case 226:return(n.operatorToken.kind===57||n.operatorToken.kind===61)&&(Gf(n.left)||Gf(n.right));case 303:return Gf(n.initializer);case 217:return Gf(n.expression);case 292:return Et(n.properties,Gf)||w_(n.parent)&&Et(n.parent.parent.children,Gf);case 291:{let{initializer:a}=n;return!!a&&Gf(a)}case 294:{let{expression:a}=n;return!!a&&Gf(a)}}return!1}function E4e(n){return Z3(n)||hct(n)}function hct(n){return n.typeParameters||tm(n)||!n.body?!1:n.body.kind!==241?Gf(n.body):!!R1(n.body,a=>!!a.expression&&Gf(a.expression))}function eee(n){return(B1(n)||Im(n))&&E4e(n)}function S4e(n){if(n.flags&524288){let a=m_(n);if(a.constructSignatures.length||a.callSignatures.length){let c=Of(16,n.symbol);return c.members=a.members,c.properties=a.properties,c.callSignatures=et,c.constructSignatures=et,c.indexInfos=et,c}}else if(n.flags&2097152)return Ea(Ft(n.types,S4e));return n}function hv(n,a){return Q_(n,a,op)}function M4(n,a){return Q_(n,a,op)?-1:0}function pve(n,a){return Q_(n,a,jd)?-1:0}function gct(n,a){return Q_(n,a,Ch)?-1:0}function Bb(n,a){return Q_(n,a,Ch)}function Rz(n,a){return Q_(n,a,kf)}function Sa(n,a){return Q_(n,a,jd)}function s1(n,a){return n.flags&1048576?Jn(n.types,c=>s1(c,a)):a.flags&1048576?Et(a.types,c=>s1(n,c)):n.flags&2097152?Et(n.types,c=>s1(c,a)):n.flags&58982400?s1(Bu(n)||mn,a):Vh(a)?!!(n.flags&67633152):a===Pe?!!(n.flags&67633152)&&!Vh(n):a===wt?!!(n.flags&524288)&&Hve(n):pD(n,dy(a))||jf(a)&&!$P(a)&&s1(n,na)}function tee(n,a){return Q_(n,a,xp)}function Dz(n,a){return tee(n,a)||tee(a,n)}function td(n,a,c,d,_,y){return Vf(n,a,jd,c,d,_,y)}function Gb(n,a,c,d,_,y){return fve(n,a,jd,c,d,_,y,void 0)}function fve(n,a,c,d,_,y,x,L){return Q_(n,a,c)?!0:!d||!L4(_,n,a,c,y,x,L)?Vf(n,a,c,d,y,x,L):!1}function T4e(n){return!!(n.flags&16777216||n.flags&2097152&&Et(n.types,T4e))}function L4(n,a,c,d,_,y,x){if(!n||T4e(c))return!1;if(!Vf(a,c,d,void 0)&&vct(n,a,c,d,_,y,x))return!0;switch(n.kind){case 234:if(!mb(n))break;case 294:case 217:return L4(n.expression,a,c,d,_,y,x);case 226:switch(n.operatorToken.kind){case 64:case 28:return L4(n.right,a,c,d,_,y,x)}break;case 210:return xct(n,a,c,d,y,x);case 209:return Act(n,a,c,d,y,x);case 292:return Tct(n,a,c,d,y,x);case 219:return yct(n,a,c,d,y,x)}return!1}function vct(n,a,c,d,_,y,x){let L=Yo(a,0),z=Yo(a,1);for(let U of[z,L])if(Et(U,re=>{let be=ms(re);return!(be.flags&131073)&&Vf(be,c,d,void 0)})){let re=x||{};td(a,c,n,_,y,re);let be=re.errors[re.errors.length-1];return ka(be,Or(n,U===z?f.Did_you_mean_to_use_new_with_this_expression:f.Did_you_mean_to_call_this_expression)),!0}return!1}function yct(n,a,c,d,_,y){if(Xo(n.body)||Et(n.parameters,N6))return!1;let x=tA(a);if(!x)return!1;let L=Yo(c,0);if(!De(L))return!1;let z=n.body,U=ms(x),re=ii(Ft(L,ms));if(!Vf(U,re,d,void 0)){let be=z&&L4(z,U,re,d,void 0,_,y);if(be)return be;let ge=y||{};if(Vf(U,re,d,z,void 0,_,ge),ge.errors)return c.symbol&&De(c.symbol.declarations)&&ka(ge.errors[ge.errors.length-1],Or(c.symbol.declarations[0],f.The_expected_type_comes_from_the_return_type_of_this_signature)),!(Gc(n)&2)&&!Xe(U,"then")&&Vf(cB(U),re,d,void 0)&&ka(ge.errors[ge.errors.length-1],Or(n,f.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function A4e(n,a,c){let d=Fb(a,c);if(d)return d;if(a.flags&1048576){let _=M4e(n,a);if(_)return Fb(_,c)}}function I4e(n,a){Jz(n,a,!1);let c=cM(n,1);return j4(),c}function Cz(n,a,c,d,_,y){let x=!1;for(let L of n){let{errorNode:z,innerExpression:U,nameType:re,errorMessage:be}=L,ge=A4e(a,c,re);if(!ge||ge.flags&8388608)continue;let Je=Fb(a,re);if(!Je)continue;let vt=HZ(re,void 0);if(!Vf(Je,ge,d,void 0)){let Rt=U&&L4(U,Je,ge,d,void 0,_,y);if(x=!0,!Rt){let sn=y||{},un=U?I4e(U,Je):Je;if(Ce&&ree(un,ge)){let sr=Or(z,f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,jn(un),jn(ge));ns.add(sr),sn.errors=[sr]}else{let sr=!!(vt&&(ba(c,vt)||ft).flags&16777216),Ln=!!(vt&&(ba(a,vt)||ft).flags&16777216);ge=Ub(ge,sr),Je=Ub(Je,sr&&Ln),Vf(un,ge,d,z,be,_,sn)&&un!==Je&&Vf(Je,ge,d,z,be,_,sn)}if(sn.errors){let sr=sn.errors[sn.errors.length-1],Ln=nm(re)?rm(re):void 0,cn=Ln!==void 0?ba(c,Ln):void 0,Fn=!1;if(!cn){let kn=E4(c,re);kn&&kn.declaration&&!Vn(kn.declaration).hasNoDefaultLib&&(Fn=!0,ka(sr,Or(kn.declaration,f.The_expected_type_comes_from_this_index_signature)))}if(!Fn&&(cn&&De(cn.declarations)||c.symbol&&De(c.symbol.declarations))){let kn=cn&&De(cn.declarations)?cn.declarations[0]:c.symbol.declarations[0];Vn(kn).hasNoDefaultLib||ka(sr,Or(kn,f.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,Ln&&!(re.flags&8192)?Hi(Ln):jn(re),jn(c)))}}}}}return x}function bct(n,a,c,d,_,y){let x=uc(c,uee),L=uc(c,re=>!uee(re)),z=L!==Vr?cbe(13,0,L,void 0):void 0,U=!1;for(let re=n.next();!re.done;re=n.next()){let{errorNode:be,innerExpression:ge,nameType:Je,errorMessage:vt}=re.value,Rt=z,sn=x!==Vr?A4e(a,x,Je):void 0;if(sn&&!(sn.flags&8388608)&&(Rt=z?ii([z,sn]):sn),!Rt)continue;let un=Fb(a,Je);if(!un)continue;let sr=HZ(Je,void 0);if(!Vf(un,Rt,d,void 0)){let Ln=ge&&L4(ge,un,Rt,d,void 0,_,y);if(U=!0,!Ln){let cn=y||{},Fn=ge?I4e(ge,un):un;if(Ce&&ree(Fn,Rt)){let kn=Or(be,f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,jn(Fn),jn(Rt));ns.add(kn),cn.errors=[kn]}else{let kn=!!(sr&&(ba(x,sr)||ft).flags&16777216),Zn=!!(sr&&(ba(a,sr)||ft).flags&16777216);Rt=Ub(Rt,kn),un=Ub(un,kn&&Zn),Vf(Fn,Rt,d,be,vt,_,cn)&&Fn!==un&&Vf(un,Rt,d,be,vt,_,cn)}}}}return U}function*Ect(n){if(De(n.properties))for(let a of n.properties)pI(a)||pye(bk(a.name))||(yield{errorNode:a.name,innerExpression:a.initializer,nameType:qd(bk(a.name))})}function*Sct(n,a){if(!De(n.children))return;let c=0;for(let d=0;d1,sn,un;if(Gge(!1)!==Wo){let Ln=FOe(j);sn=uc(Je,cn=>Sa(cn,Ln)),un=uc(Je,cn=>!Sa(cn,Ln))}else sn=uc(Je,uee),un=uc(Je,Ln=>!uee(Ln));if(Rt){if(sn!==Vr){let Ln=Gh(Oee(U,0)),cn=Sct(U,z);x=bct(cn,Ln,sn,d,_,y)||x}else if(!Q_(Pp(a,ge),Je,d)){x=!0;let Ln=qe(U.openingElement.tagName,f.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,be,jn(Je));y&&y.skipLogging&&(y.errors||(y.errors=[])).push(Ln)}}else if(un!==Vr){let Ln=vt[0],cn=x4e(Ln,ge,z);cn&&(x=Cz(function*(){yield cn}(),a,c,d,_,y)||x)}else if(!Q_(Pp(a,ge),Je,d)){x=!0;let Ln=qe(U.openingElement.tagName,f.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,be,jn(Je));y&&y.skipLogging&&(y.errors||(y.errors=[])).push(Ln)}}return x;function z(){if(!L){let U=pc(n.parent.tagName),re=Xz(ZT(n)),be=re===void 0?"children":Hi(re),ge=Pp(c,qd(be)),Je=f._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;L={...Je,key:"!!ALREADY FORMATTED!!",message:bU(Je,U,be,jn(ge))}}return L}}function*R4e(n,a){let c=De(n.elements);if(c)for(let d=0;dz:nh(n)>z))return d&&!(c&8)&&_(f.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,nh(n),z),0;n.typeParameters&&n.typeParameters!==a.typeParameters&&(a=Dst(a),n=R6e(n,a,void 0,x));let re=Kp(n),be=J4(n),ge=J4(a);(be||ge)&&co(be||ge,L);let Je=a.declaration?a.declaration.kind:0,vt=!(c&3)&&oe&&Je!==174&&Je!==173&&Je!==176,Rt=-1,sn=i1(n);if(sn&&sn!==or){let Ln=i1(a);if(Ln){let cn=!vt&&x(sn,Ln,!1)||x(Ln,sn,d);if(!cn)return d&&_(f.The_this_types_of_each_signature_are_incompatible),0;Rt&=cn}}let un=be||ge?Math.min(re,z):Math.max(re,z),sr=be||ge?un-1:-1;for(let Ln=0;Ln=nh(n)&&Ln=3&&a[0].flags&32768&&a[1].flags&65536&&Et(a,Vh)?67108864:0)}return!!(n.objectFlags&67108864)}return!1}function XP(n){return!!((n.flags&1048576?n.types[0]:n).flags&32768)}function C4e(n){return n.flags&524288&&!Hd(n)&&ys(n).length===0&&hd(n).length===1&&!!Ag(n,ke)||n.flags&3145728&&Jn(n.types,C4e)||!1}function hve(n,a,c){let d=n.flags&8?Cd(n):n,_=a.flags&8?Cd(a):a;if(d===_)return!0;if(d.escapedName!==_.escapedName||!(d.flags&256)||!(_.flags&256))return!1;let y=Ta(d)+","+Ta(_),x=iy.get(y);if(x!==void 0&&!(!(x&4)&&x&2&&c))return!!(x&1);let L=pr(_);for(let z of ys(pr(d)))if(z.flags&8){let U=ba(L,z.escapedName);if(!U||!(U.flags&8))return c?(c(f.Property_0_is_missing_in_type_1,bl(z),jn(Qs(_),void 0,64)),iy.set(y,6)):iy.set(y,2),!1;let re=kD(dl(z,306)),be=kD(dl(U,306));if(re!==be){let ge=typeof re=="string",Je=typeof be=="string";if(re!==void 0&&be!==void 0){if(!c)iy.set(y,2);else{let vt=ge?`"${rg(re)}"`:re,Rt=Je?`"${rg(be)}"`:be;c(f.Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given,bl(_),bl(U),Rt,vt),iy.set(y,6)}return!1}if(ge||Je){if(!c)iy.set(y,2);else{let vt=re??be;C.assert(typeof vt=="string");let Rt=`"${rg(vt)}"`;c(f.One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value,bl(_),bl(U),Rt),iy.set(y,6)}return!1}}}return iy.set(y,1),!0}function k4(n,a,c,d){let _=n.flags,y=a.flags;return y&1||_&131072||n===xt||y&2&&!(c===kf&&_&1)?!0:y&131072?!1:!!(_&402653316&&y&4||_&128&&_&1024&&y&128&&!(y&1024)&&n.value===a.value||_&296&&y&8||_&256&&_&1024&&y&256&&!(y&1024)&&n.value===a.value||_&2112&&y&64||_&528&&y&16||_&12288&&y&4096||_&32&&y&32&&n.symbol.escapedName===a.symbol.escapedName&&hve(n.symbol,a.symbol,d)||_&1024&&y&1024&&(_&1048576&&y&1048576&&hve(n.symbol,a.symbol,d)||_&2944&&y&2944&&n.value===a.value&&hve(n.symbol,a.symbol,d))||_&32768&&(!Y&&!(y&3145728)||y&49152)||_&65536&&(!Y&&!(y&3145728)||y&65536)||_&524288&&y&67108864&&!(c===kf&&Vh(n)&&!(Wr(n)&8192))||(c===jd||c===xp)&&(_&1||_&8&&(y&32||y&256&&y&1024)||_&256&&!(_&1024)&&(y&32||y&256&&y&1024&&n.value===a.value)||Nct(a)))}function Q_(n,a,c){if(FE(n)&&(n=n.regularType),FE(a)&&(a=a.regularType),n===a)return!0;if(c!==op){if(c===xp&&!(a.flags&131072)&&k4(a,n,c)||k4(n,a,c))return!0}else if(!((n.flags|a.flags)&61865984)){if(n.flags!==a.flags)return!1;if(n.flags&67358815)return!0}if(n.flags&524288&&a.flags&524288){let d=c.get(aee(n,a,0,c,!1));if(d!==void 0)return!!(d&1)}return n.flags&469499904||a.flags&469499904?Vf(n,a,c,void 0):!1}function N4e(n,a){return Wr(n)&2048&&pye(a.escapedName)}function Nz(n,a){for(;;){let c=FE(n)?n.regularType:Vb(n)?Mct(n,a):Wr(n)&4?n.node?fy(n.target,qs(n)):Tve(n)||n:n.flags&3145728?Pct(n,a):n.flags&33554432?a?n.baseType:wge(n):n.flags&25165824?_v(n,a):n;if(c===n)return c;n=c}}function Pct(n,a){let c=__(n);if(c!==n)return c;if(n.flags&2097152&&Et(n.types,Vh)){let d=Io(n.types,_=>Nz(_,a));if(d!==n.types)return Ea(d)}return n}function Mct(n,a){let c=wE(n),d=Io(c,_=>_.flags&25165824?_v(_,a):_);return c!==d?qge(n.target,d):n}function Vf(n,a,c,d,_,y,x){var L;let z,U,re,be,ge,Je,vt=0,Rt=0,sn=0,un=0,sr=!1,Ln=0,cn=0,Fn,kn,Zn=16e6-c.size>>3;C.assert(c!==op||!d,"no error reporting in identity checking");let Hn=Er(n,a,3,!!d,_);if(kn&&jo(),sr){let it=aee(n,a,0,c,!1);c.set(it,6),(L=lr)==null||L.instant(lr.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:n.id,targetId:a.id,depth:Rt,targetDepth:sn});let Tt=Zn<=0?f.Excessive_complexity_comparing_types_0_and_1:f.Excessive_stack_depth_comparing_types_0_and_1,en=qe(d||N,Tt,jn(n),jn(a));x&&(x.errors||(x.errors=[])).push(en)}else if(z){if(y){let en=y();en&&(Roe(en,z),z=en)}let it;if(_&&d&&!Hn&&n.symbol){let en=$i(n.symbol);if(en.originatingImport&&!Wp(en.originatingImport)&&Vf(pr(en.target),a,c,void 0)){let Cr=Or(en.originatingImport,f.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead);it=In(it,Cr)}}let Tt=Og(Vn(d),d,z,it);U&&ka(Tt,...U),x&&(x.errors||(x.errors=[])).push(Tt),(!x||!x.skipLogging)&&ns.add(Tt)}return d&&x&&x.skipLogging&&Hn===0&&C.assert(!!x.errors,"missed opportunity to interact with error."),Hn!==0;function er(it){z=it.errorInfo,Fn=it.lastSkippedInfo,kn=it.incompatibleStack,Ln=it.overrideNextErrorInfo,cn=it.skipParentCounter,U=it.relatedInfo}function Mo(){return{errorInfo:z,lastSkippedInfo:Fn,incompatibleStack:kn?.slice(),overrideNextErrorInfo:Ln,skipParentCounter:cn,relatedInfo:U?.slice()}}function Ao(it,...Tt){Ln++,Fn=void 0,(kn||(kn=[])).push([it,...Tt])}function jo(){let it=kn||[];kn=void 0;let Tt=Fn;if(Fn=void 0,it.length===1){vo(...it[0]),Tt&&up(void 0,...Tt);return}let en="",Kn=[];for(;it.length;){let[Cr,...Sn]=it.pop();switch(Cr.code){case f.Types_of_property_0_are_incompatible.code:{en.indexOf("new ")===0&&(en=`(${en})`);let yr=""+Sn[0];en.length===0?en=`${yr}`:$p(yr,as(V))?en=`${en}.${yr}`:yr[0]==="["&&yr[yr.length-1]==="]"?en=`${en}${yr}`:en=`${en}[${yr}]`;break}case f.Call_signature_return_types_0_and_1_are_incompatible.code:case f.Construct_signature_return_types_0_and_1_are_incompatible.code:case f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:{if(en.length===0){let yr=Cr;Cr.code===f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?yr=f.Call_signature_return_types_0_and_1_are_incompatible:Cr.code===f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(yr=f.Construct_signature_return_types_0_and_1_are_incompatible),Kn.unshift([yr,Sn[0],Sn[1]])}else{let yr=Cr.code===f.Construct_signature_return_types_0_and_1_are_incompatible.code||Cr.code===f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",Hr=Cr.code===f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||Cr.code===f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";en=`${yr}${en}(${Hr})`}break}case f.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{Kn.unshift([f.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,Sn[0],Sn[1]]);break}case f.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{Kn.unshift([f.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,Sn[0],Sn[1],Sn[2]]);break}default:return C.fail(`Unhandled Diagnostic: ${Cr.code}`)}}en?vo(en[en.length-1]===")"?f.The_types_returned_by_0_are_incompatible_between_these_types:f.The_types_of_0_are_incompatible_between_these_types,en):Kn.shift();for(let[Cr,...Sn]of Kn){let yr=Cr.elidedInCompatabilityPyramid;Cr.elidedInCompatabilityPyramid=!1,vo(Cr,...Sn),Cr.elidedInCompatabilityPyramid=yr}Tt&&up(void 0,...Tt)}function vo(it,...Tt){C.assert(!!d),kn&&jo(),!it.elidedInCompatabilityPyramid&&(cn===0?z=Uo(z,it,...Tt):cn--)}function Dc(it,...Tt){vo(it,...Tt),cn++}function Uf(it){C.assert(!!z),U?U.push(it):U=[it]}function up(it,Tt,en){kn&&jo();let[Kn,Cr]=lx(Tt,en),Sn=Tt,yr=Kn;if(w4(Tt)&&!gve(en)&&(Sn=vv(Tt),C.assert(!Sa(Sn,en),"generalized source shouldn't be assignable"),yr=Ab(Sn)),(en.flags&8388608&&!(Tt.flags&8388608)?en.objectType.flags:en.flags)&262144&&en!==de&&en!==ee){let zi=Bu(en),Go;zi&&(Sa(Sn,zi)||(Go=Sa(Tt,zi)))?vo(f._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,Go?Kn:yr,Cr,jn(zi)):(z=void 0,vo(f._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,Cr,yr))}if(it)it===f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&Ce&&P4e(Tt,en).length&&(it=f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties);else if(c===xp)it=f.Type_0_is_not_comparable_to_type_1;else if(Kn===Cr)it=f.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(Ce&&P4e(Tt,en).length)it=f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties;else{if(Tt.flags&128&&en.flags&1048576){let zi=Gpt(Tt,en);if(zi){vo(f.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,yr,Cr,jn(zi));return}}it=f.Type_0_is_not_assignable_to_type_1}vo(it,yr,Cr)}function Mn(it,Tt){let en=Ib(it.symbol)?jn(it,it.symbol.valueDeclaration):jn(it),Kn=Ib(Tt.symbol)?jn(Tt,Tt.symbol.valueDeclaration):jn(Tt);($l===it&&ke===Tt||vc===it&&Dt===Tt||cl===it&&yi===Tt||MOe()===it&&Di===Tt)&&vo(f._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,Kn,en)}function Qn(it,Tt,en){return Wa(it)?it.target.readonly&&kz(Tt)?(en&&vo(f.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,jn(it),jn(Tt)),!1):l1(Tt):$P(it)&&kz(Tt)?(en&&vo(f.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,jn(it),jn(Tt)),!1):Wa(Tt)?jf(it):!0}function lo(it,Tt,en){return Er(it,Tt,3,en)}function Er(it,Tt,en=3,Kn=!1,Cr,Sn=0){if(it===Tt)return-1;if(it.flags&524288&&Tt.flags&402784252)return c===xp&&!(Tt.flags&131072)&&k4(Tt,it,c)||k4(it,Tt,c,Kn?vo:void 0)?-1:(Kn&&ko(it,Tt,it,Tt,Cr),0);let yr=Nz(it,!1),Hr=Nz(Tt,!0);if(yr===Hr)return-1;if(c===op)return yr.flags!==Hr.flags?0:yr.flags&67358815?-1:(ls(yr,Hr),xi(yr,Hr,!1,0,en));if(yr.flags&262144&&FT(yr)===Hr)return-1;if(yr.flags&470302716&&Hr.flags&1048576){let zi=Hr.types,Go=zi.length===2&&zi[0].flags&98304?zi[1]:zi.length===3&&zi[0].flags&98304&&zi[1].flags&98304?zi[2]:void 0;if(Go&&!(Go.flags&98304)&&(Hr=Nz(Go,!0),yr===Hr))return-1}if(c===xp&&!(Hr.flags&131072)&&k4(Hr,yr,c)||k4(yr,Hr,c,Kn?vo:void 0))return-1;if(yr.flags&469499904||Hr.flags&469499904){if(!(Sn&2)&&d1(yr)&&Wr(yr)&8192&&Vu(yr,Hr,Kn))return Kn&&up(Cr,yr,Tt.aliasSymbol?Tt:Hr),0;let Go=(c!==xp||g_(yr))&&!(Sn&2)&&yr.flags&405405692&&yr!==Pe&&Hr.flags&2621440&&L4e(Hr)&&(ys(yr).length>0||hte(yr)),ha=!!(Wr(yr)&2048);if(Go&&!kct(yr,Hr,ha)){if(Kn){let zo=jn(it.aliasSymbol?it:yr),Ra=jn(Tt.aliasSymbol?Tt:Hr),Ns=Yo(yr,0),_s=Yo(yr,1);Ns.length>0&&Er(ms(Ns[0]),Hr,1,!1)||_s.length>0&&Er(ms(_s[0]),Hr,1,!1)?vo(f.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,zo,Ra):vo(f.Type_0_has_no_properties_in_common_with_type_1,zo,Ra)}return 0}ls(yr,Hr);let Ti=yr.flags&1048576&&yr.types.length<4&&!(Hr.flags&1048576)||Hr.flags&1048576&&Hr.types.length<4&&!(yr.flags&469499904)?Ld(yr,Hr,Kn,Sn):xi(yr,Hr,Kn,Sn,en);if(Ti)return Ti}return Kn&&ko(it,Tt,yr,Hr,Cr),0}function ko(it,Tt,en,Kn,Cr){var Sn,yr;let Hr=!!Tve(it),zi=!!Tve(Tt);en=it.aliasSymbol||Hr?it:en,Kn=Tt.aliasSymbol||zi?Tt:Kn;let Go=Ln>0;if(Go&&Ln--,en.flags&524288&&Kn.flags&524288){let ha=z;Qn(en,Kn,!0),z!==ha&&(Go=!!z)}if(en.flags&524288&&Kn.flags&402784252)Mn(en,Kn);else if(en.symbol&&en.flags&524288&&Pe===en)vo(f.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(Wr(en)&2048&&Kn.flags&2097152){let ha=Kn.types,ga=jE(nf.IntrinsicAttributes,d),Ti=jE(nf.IntrinsicClassAttributes,d);if(!qt(ga)&&!qt(Ti)&&(wr(ha,ga)||wr(ha,Ti)))return}else z=bge(z,Tt);if(!Cr&&Go){Fn=[en,Kn];return}if(up(Cr,en,Kn),en.flags&262144&&((yr=(Sn=en.symbol)==null?void 0:Sn.declarations)!=null&&yr[0])&&!FT(en)){let ha=lve(en);if(ha.constraint=co(Kn,WE(en,ha)),mz(ha)){let ga=jn(Kn,en.symbol.declarations[0]);Uf(Or(en.symbol.declarations[0],f.This_type_parameter_might_need_an_extends_0_constraint,ga))}}}function ls(it,Tt){if(lr&&it.flags&3145728&&Tt.flags&3145728){let en=it,Kn=Tt;if(en.objectFlags&Kn.objectFlags&32768)return;let Cr=en.types.length,Sn=Kn.types.length;Cr*Sn>1e6&&lr.instant(lr.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:it.id,sourceSize:Cr,targetId:Tt.id,targetSize:Sn,pos:d?.pos,end:d?.end})}}function As(it,Tt){return ii(nd(it,(Kn,Cr)=>{var Sn;Cr=Md(Cr);let yr=Cr.flags&3145728?_z(Cr,Tt):n1(Cr,Tt),Hr=yr&&pr(yr)||((Sn=px(Cr,Tt))==null?void 0:Sn.type)||Oe;return In(Kn,Hr)},void 0)||et)}function Vu(it,Tt,en){var Kn;if(!$z(Tt)||!me&&Wr(Tt)&4096)return!1;let Cr=!!(Wr(it)&2048);if((c===jd||c===xp)&&(nM(Pe,Tt)||!Cr&&gv(Tt)))return!1;let Sn=Tt,yr;Tt.flags&1048576&&(Sn=Y7e(it,Tt,Er)||Uvt(Tt),yr=Sn.flags&1048576?Sn.types:[Sn]);for(let Hr of ys(it))if(za(Hr,it.symbol)&&!N4e(it,Hr)){if(!_ye(Sn,Hr.escapedName,Cr)){if(en){let zi=uc(Sn,$z);if(!d)return C.fail();if(Y1(d)||sd(d)||sd(d.parent)){Hr.valueDeclaration&&O_(Hr.valueDeclaration)&&Vn(d)===Vn(Hr.valueDeclaration.name)&&(d=Hr.valueDeclaration.name);let Go=Ai(Hr),ha=y6e(Go,zi),ga=ha?Ai(ha):void 0;ga?vo(f.Property_0_does_not_exist_on_type_1_Did_you_mean_2,Go,jn(zi),ga):vo(f.Property_0_does_not_exist_on_type_1,Go,jn(zi))}else{let Go=((Kn=it.symbol)==null?void 0:Kn.declarations)&&Xc(it.symbol.declarations),ha;if(Hr.valueDeclaration&&zn(Hr.valueDeclaration,ga=>ga===Go)&&Vn(Go)===Vn(d)){let ga=Hr.valueDeclaration;C.assertNode(ga,wg);let Ti=ga.name;d=Ti,Ve(Ti)&&(ha=Aye(Ti,zi))}ha!==void 0?Dc(f.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,Ai(Hr),jn(zi),ha):Dc(f.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Ai(Hr),jn(zi))}}return!0}if(yr&&!Er(pr(Hr),As(yr,Hr.escapedName),3,en))return en&&Ao(f.Types_of_property_0_are_incompatible,Ai(Hr)),!0}return!1}function za(it,Tt){return it.valueDeclaration&&Tt.valueDeclaration&&it.valueDeclaration.parent===Tt.valueDeclaration}function Ld(it,Tt,en,Kn){if(it.flags&1048576){if(Tt.flags&1048576){let Cr=it.origin;if(Cr&&Cr.flags&2097152&&Tt.aliasSymbol&&wr(Cr.types,Tt))return-1;let Sn=Tt.origin;if(Sn&&Sn.flags&1048576&&it.aliasSymbol&&wr(Sn.types,it))return-1}return c===xp?Ie(it,Tt,en&&!(it.flags&402784252),Kn):Mr(it,Tt,en&&!(it.flags&402784252),Kn)}if(Tt.flags&1048576)return yl(W4(it),Tt,en&&!(it.flags&402784252)&&!(Tt.flags&402784252),Kn);if(Tt.flags&2097152)return ut(it,Tt,en,2);if(c===xp&&Tt.flags&402784252){let Cr=Io(it.types,Sn=>Sn.flags&465829888?Bu(Sn)||mn:Sn);if(Cr!==it.types){if(it=Ea(Cr),it.flags&131072)return 0;if(!(it.flags&2097152))return Er(it,Tt,1,!1)||Er(Tt,it,1,!1)}}return Ie(it,Tt,!1,1)}function Ol(it,Tt){let en=-1,Kn=it.types;for(let Cr of Kn){let Sn=yl(Cr,Tt,!1,0);if(!Sn)return 0;en&=Sn}return en}function yl(it,Tt,en,Kn){let Cr=Tt.types;if(Tt.flags&1048576){if(mv(Cr,it))return-1;if(c!==xp&&Wr(Tt)&32768&&!(it.flags&1024)&&(it.flags&2688||(c===Ch||c===kf)&&it.flags&256)){let yr=it===it.regularType?it.freshType:it.regularType,Hr=it.flags&128?ke:it.flags&256?Dt:it.flags&2048?Pt:void 0;return Hr&&mv(Cr,Hr)||yr&&mv(Cr,yr)?-1:0}let Sn=l8e(Tt,it);if(Sn){let yr=Er(it,Sn,2,!1,void 0,Kn);if(yr)return yr}}for(let Sn of Cr){let yr=Er(it,Sn,2,!1,void 0,Kn);if(yr)return yr}if(en){let Sn=M4e(it,Tt,Er);Sn&&Er(it,Sn,2,!0,void 0,Kn)}return 0}function ut(it,Tt,en,Kn){let Cr=-1,Sn=Tt.types;for(let yr of Sn){let Hr=Er(it,yr,2,en,void 0,Kn);if(!Hr)return 0;Cr&=Hr}return Cr}function Ie(it,Tt,en,Kn){let Cr=it.types;if(it.flags&1048576&&mv(Cr,Tt))return-1;let Sn=Cr.length;for(let yr=0;yr=yr.types.length&&Sn.length%yr.types.length===0){let ha=Er(zi,yr.types[Hr%yr.types.length],3,!1,void 0,Kn);if(ha){Cr&=ha;continue}}let Go=Er(zi,Tt,1,en,void 0,Kn);if(!Go)return 0;Cr&=Go}return Cr}function fi(it=et,Tt=et,en=et,Kn,Cr){if(it.length!==Tt.length&&c===op)return 0;let Sn=it.length<=Tt.length?it.length:Tt.length,yr=-1;for(let Hr=0;Hr(zo|=_s?16:8,Ti(_s)));let Ra;return un===3?((Sn=lr)==null||Sn.instant(lr.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:it.id,sourceIdStack:ge.map(_s=>_s.id),targetId:Tt.id,targetIdStack:Je.map(_s=>_s.id),depth:Rt,targetDepth:sn}),Ra=3):((yr=lr)==null||yr.push(lr.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:it.id,targetId:Tt.id}),Ra=Ri(it,Tt,en,Kn),(Hr=lr)==null||Hr.pop()),pa&&(pa=Ti),Cr&1&&Rt--,Cr&2&&sn--,un=ga,Ra?(Ra===-1||Rt===0&&sn===0)&&Ns(Ra===-1||Ra===3):(c.set(zi,(en?4:0)|2|zo),Zn--,Ns(!1)),Ra;function Ns(_s){for(let Nc=ha;NcHr!==it)&&(Sn=Er(yr,Tt,1,!1,void 0,Kn))}Sn&&!(Kn&2)&&Tt.flags&2097152&&!jT(Tt)&&it.flags&2621440?(Sn&=Si(it,Tt,en,void 0,!1,0),Sn&&d1(it)&&Wr(it)&8192&&(Sn&=cs(it,Tt,!1,en,0))):Sn&&JZ(Tt)&&!l1(Tt)&&it.flags&2097152&&Md(it).flags&3670016&&!Et(it.types,yr=>yr===Tt||!!(Wr(yr)&262144))&&(Sn&=Si(it,Tt,en,void 0,!0,Kn))}return Sn&&er(Cr),Sn}function Ur(it,Tt){let en=Md(OT(Tt)),Kn=[];return pge(en,8576,!1,Cr=>void Kn.push(co(it,C4(Tt.mapper,f_(Tt),Cr)))),ii(Kn)}function Dr(it,Tt,en,Kn,Cr){let Sn,yr,Hr=!1,zi=it.flags,Go=Tt.flags;if(c===op){if(zi&3145728){let Ti=Ol(it,Tt);return Ti&&(Ti&=Ol(Tt,it)),Ti}if(zi&4194304)return Er(it.type,Tt.type,3,!1);if(zi&8388608&&(Sn=Er(it.objectType,Tt.objectType,3,!1))&&(Sn&=Er(it.indexType,Tt.indexType,3,!1))||zi&16777216&&it.root.isDistributive===Tt.root.isDistributive&&(Sn=Er(it.checkType,Tt.checkType,3,!1))&&(Sn&=Er(it.extendsType,Tt.extendsType,3,!1))&&(Sn&=Er(o1(it),o1(Tt),3,!1))&&(Sn&=Er(a1(it),a1(Tt),3,!1))||zi&33554432&&(Sn=Er(it.baseType,Tt.baseType,3,!1))&&(Sn&=Er(it.constraint,Tt.constraint,3,!1)))return Sn;if(!(zi&524288))return 0}else if(zi&3145728||Go&3145728){if(Sn=Ld(it,Tt,en,Kn))return Sn;if(!(zi&465829888||zi&524288&&Go&1048576||zi&2097152&&Go&467402752))return 0}if(zi&17301504&&it.aliasSymbol&&it.aliasTypeArguments&&it.aliasSymbol===Tt.aliasSymbol&&!(iee(it)||iee(Tt))){let Ti=k4e(it.aliasSymbol);if(Ti===et)return 1;let zo=$i(it.aliasSymbol).typeParameters,Ra=zh(zo),Ns=wb(it.aliasTypeArguments,zo,Ra,cr(it.aliasSymbol.valueDeclaration)),_s=wb(Tt.aliasTypeArguments,zo,Ra,cr(it.aliasSymbol.valueDeclaration)),Nc=ga(Ns,_s,Ti,Kn);if(Nc!==void 0)return Nc}if(j4e(it)&&!it.target.readonly&&(Sn=Er(qs(it)[0],Tt,1))||j4e(Tt)&&(Tt.target.readonly||kz(Bu(it)||it))&&(Sn=Er(it,qs(Tt)[0],2)))return Sn;if(Go&262144){if(Wr(it)&32&&!it.declaration.nameType&&Er($_(Tt),gf(it),3)&&!(Wh(it)&4)){let Ti=pv(it),zo=Pp(Tt,f_(it));if(Sn=Er(Ti,zo,3,en))return Sn}if(c===xp&&zi&262144){let Ti=Pd(it);if(Ti)for(;Ti&&jm(Ti,zo=>!!(zo.flags&262144));){if(Sn=Er(Ti,Tt,1,!1))return Sn;Ti=Pd(Ti)}return 0}}else if(Go&4194304){let Ti=Tt.type;if(zi&4194304&&(Sn=Er(Ti,it.type,3,!1)))return Sn;if(Wa(Ti)){if(Sn=Er(it,GOe(Ti),2,en))return Sn}else{let zo=mge(Ti);if(zo){if(Er(it,$_(zo,Tt.indexFlags|4),2,en)===-1)return-1}else if(Hd(Ti)){let Ra=py(Ti),Ns=gf(Ti),_s;if(Ra&&_D(Ti)){let Nc=Ur(Ra,Ti);_s=ii([Nc,Ra])}else _s=Ra||Ns;if(Er(it,_s,2,en)===-1)return-1}}}else if(Go&8388608){if(zi&8388608){if((Sn=Er(it.objectType,Tt.objectType,3,en))&&(Sn&=Er(it.indexType,Tt.indexType,3,en)),Sn)return Sn;en&&(yr=z)}if(c===jd||c===xp){let Ti=Tt.objectType,zo=Tt.indexType,Ra=Bu(Ti)||Ti,Ns=Bu(zo)||zo;if(!jT(Ra)&&!UT(Ns)){let _s=4|(Ra!==Ti?2:0),Nc=Fb(Ra,Ns,_s);if(Nc){if(en&&yr&&er(Cr),Sn=Er(it,Nc,2,en,void 0,Kn))return Sn;en&&yr&&z&&(z=ha([yr])<=ha([z])?yr:z)}}}en&&(yr=void 0)}else if(Hd(Tt)&&c!==op){let Ti=!!Tt.declaration.nameType,zo=pv(Tt),Ra=Wh(Tt);if(!(Ra&8)){if(!Ti&&zo.flags&8388608&&zo.objectType===it&&zo.indexType===f_(Tt))return-1;if(!Hd(it)){let Ns=Ti?py(Tt):gf(Tt),_s=$_(it,2),Nc=Ra&4,Uh=Nc?dz(Ns,_s):void 0;if(Nc?!(Uh.flags&131072):Er(Ns,_s,3)){let Sv=pv(Tt),iA=f_(Tt),oA=rM(Sv,-98305);if(!Ti&&oA.flags&8388608&&oA.indexType===iA){if(Sn=Er(it,oA.objectType,2,en))return Sn}else{let gM=Ti?Uh||Ns:Uh?Ea([Uh,iA]):iA,E_=Pp(it,gM);if(Sn=Er(E_,Sv,3,en))return Sn}}yr=z,er(Cr)}}}else if(Go&16777216){if(YP(Tt,Je,sn,10))return 3;let Ti=Tt;if(!Ti.root.inferTypeParameters&&!Jlt(Ti.root)&&!(it.flags&16777216&&it.root===Ti.root)){let zo=!Sa(P4(Ti.checkType),P4(Ti.extendsType)),Ra=!zo&&Sa(qT(Ti.checkType),qT(Ti.extendsType));if((Sn=zo?-1:Er(it,o1(Ti),2,!1,void 0,Kn))&&(Sn&=Ra?-1:Er(it,a1(Ti),2,!1,void 0,Kn),Sn))return Sn}}else if(Go&134217728){if(zi&134217728){if(c===xp)return but(it,Tt)?0:-1;co(it,du)}if(Eee(it,Tt))return-1}else if(Tt.flags&268435456&&!(it.flags&268435456)&&bee(it,Tt))return-1;if(zi&8650752){if(!(zi&8388608&&Go&8388608)){let Ti=FT(it)||mn;if(Sn=Er(Ti,Tt,1,!1,void 0,Kn))return Sn;if(Sn=Er(qp(Ti,it),Tt,1,en&&Ti!==mn&&!(Go&zi&262144),void 0,Kn))return Sn;if(vge(it)){let zo=FT(it.indexType);if(zo&&(Sn=Er(Pp(it.objectType,zo),Tt,1,en)))return Sn}}}else if(zi&4194304){let Ti=Qge(it.type,it.indexFlags)&&Wr(it.type)&32;if(Sn=Er(Fs,Tt,1,en&&!Ti))return Sn;if(Ti){let zo=it.type,Ra=py(zo),Ns=Ra&&_D(zo)?Ur(Ra,zo):Ra||gf(zo);if(Sn=Er(Ns,Tt,1,en))return Sn}}else if(zi&134217728&&!(Go&524288)){if(!(Go&134217728)){let Ti=Bu(it);if(Ti&&Ti!==it&&(Sn=Er(Ti,Tt,1,en)))return Sn}}else if(zi&268435456)if(Go&268435456){if(it.symbol!==Tt.symbol)return 0;if(Sn=Er(it.type,Tt.type,3,en))return Sn}else{let Ti=Bu(it);if(Ti&&(Sn=Er(Ti,Tt,1,en)))return Sn}else if(zi&16777216){if(YP(it,ge,Rt,10))return 3;if(Go&16777216){let Ra=it.root.inferTypeParameters,Ns=it.extendsType,_s;if(Ra){let Nc=z4(Ra,void 0,0,lo);bv(Nc.inferences,Tt.extendsType,Ns,1536),Ns=co(Ns,Nc.mapper),_s=Nc.mapper}if(hv(Ns,Tt.extendsType)&&(Er(it.checkType,Tt.checkType,3)||Er(Tt.checkType,it.checkType,3))&&((Sn=Er(co(o1(it),_s),o1(Tt),3,en))&&(Sn&=Er(a1(it),a1(Tt),3,en)),Sn))return Sn}let Ti=_ge(it);if(Ti&&(Sn=Er(Ti,Tt,1,en)))return Sn;let zo=!(Go&16777216)&&mz(it)?eOe(it):void 0;if(zo&&(er(Cr),Sn=Er(zo,Tt,1,en)))return Sn}else{if(c!==Ch&&c!==kf&&ist(Tt)&&gv(it))return-1;if(Hd(Tt))return Hd(it)&&(Sn=ct(it,Tt,en))?Sn:0;let Ti=!!(zi&402784252);if(c!==op)it=Md(it),zi=it.flags;else if(Hd(it))return 0;if(Wr(it)&4&&Wr(Tt)&4&&it.target===Tt.target&&!Wa(it)&&!(iee(it)||iee(Tt))){if(cee(it))return-1;let zo=yve(it.target);if(zo===et)return 1;let Ra=ga(qs(it),qs(Tt),zo,Kn);if(Ra!==void 0)return Ra}else{if($P(Tt)?cp(it,l1):jf(Tt)&&cp(it,zo=>Wa(zo)&&!zo.target.readonly))return c!==op?Er(r1(it,Dt)||j,r1(Tt,Dt)||j,3,en):0;if(Vb(it)&&Wa(Tt)&&!Vb(Tt)){let zo=fv(it);if(zo!==it)return Er(zo,Tt,1,en)}else if((c===Ch||c===kf)&&gv(Tt)&&Wr(Tt)&8192&&!gv(it))return 0}if(zi&2621440&&Go&524288){let zo=en&&z===Cr.errorInfo&&!Ti;if(Sn=Si(it,Tt,zo,void 0,!1,Kn),Sn&&(Sn&=fo(it,Tt,0,zo,Kn),Sn&&(Sn&=fo(it,Tt,1,zo,Kn),Sn&&(Sn&=cs(it,Tt,Ti,zo,Kn)))),Hr&&Sn)z=yr||z||Cr.errorInfo;else if(Sn)return Sn}if(zi&2621440&&Go&1048576){let zo=rM(Tt,36175872);if(zo.flags&1048576){let Ra=Ot(it,zo);if(Ra)return Ra}}}return 0;function ha(Ti){return Ti?nd(Ti,(zo,Ra)=>zo+1+ha(Ra.next),0):0}function ga(Ti,zo,Ra,Ns){if(Sn=fi(Ti,zo,Ra,en,Ns))return Sn;if(Et(Ra,Nc=>!!(Nc&24))){yr=void 0,er(Cr);return}let _s=zo&&wct(zo,Ra);if(Hr=!_s,Ra!==et&&!_s){if(Hr&&!(en&&Et(Ra,Nc=>(Nc&7)===0)))return 0;yr=z,er(Cr)}}}function ct(it,Tt,en){if(c===xp||(c===op?Wh(it)===Wh(Tt):fge(it)<=fge(Tt))){let Cr,Sn=gf(Tt),yr=co(gf(it),fge(it)<0?Is:du);if(Cr=Er(Sn,yr,3,en)){let Hr=Mp([f_(it)],[f_(Tt)]);if(co(py(it),Hr)===co(py(Tt),Hr))return Cr&Er(co(pv(it),Hr),pv(Tt),3,en)}}return 0}function Ot(it,Tt){var en;let Kn=ys(it),Cr=s8e(Kn,Tt);if(!Cr)return 0;let Sn=1;for(let ga of Cr)if(Sn*=Kut(Pb(ga)),Sn>25)return(en=lr)==null||en.instant(lr.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:it.id,targetId:Tt.id,numCombinations:Sn}),0;let yr=new Array(Cr.length),Hr=new Set;for(let ga=0;gaga[Ra],!1,0,Y||c===xp))continue e}bf(Go,zo,Cv),Ti=!0}if(!Ti)return 0}let ha=-1;for(let ga of Go)if(ha&=Si(it,ga,!1,Hr,!1,0),ha&&(ha&=fo(it,ga,0,!1,0),ha&&(ha&=fo(it,ga,1,!1,0),ha&&!(Wa(it)&&Wa(ga))&&(ha&=cs(it,ga,!1,!1,0)))),!ha)return ha;return ha}function tn(it,Tt){if(!Tt||it.length===0)return it;let en;for(let Kn=0;Kn5?vo(f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,jn(it),jn(Tt),Ft(Sn.slice(0,4),yr=>Ai(yr)).join(", "),Sn.length-4):vo(f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,jn(it),jn(Tt),Ft(Sn,yr=>Ai(yr)).join(", ")),Cr&&z&&Ln++)}function Si(it,Tt,en,Kn,Cr,Sn){if(c===op)return mi(it,Tt,Kn);let yr=-1;if(Wa(Tt)){if(l1(it)){if(!Tt.target.readonly&&($P(it)||Wa(it)&&it.target.readonly))return 0;let ga=my(it),Ti=my(Tt),zo=Wa(it)?it.target.combinedFlags&4:4,Ra=Tt.target.combinedFlags&4,Ns=Wa(it)?it.target.minLength:0,_s=Tt.target.minLength;if(!zo&&ga<_s)return en&&vo(f.Source_has_0_element_s_but_target_requires_1,ga,_s),0;if(!Ra&&Ti=Sv?Ti-1-Math.min(Hm,iA):E_,Nr=Tt.target.elementFlags[Mt];if(Nr&8&&!(Sx&8))return en&&vo(f.Source_provides_no_match_for_variadic_element_at_position_0_in_target,Mt),0;if(Sx&8&&!(Nr&12))return en&&vo(f.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,E_,Mt),0;if(Nr&1&&!(Sx&1))return en&&vo(f.Source_provides_no_match_for_required_element_at_position_0_in_target,Mt),0;if(gM&&((Sx&12||Nr&12)&&(gM=!1),gM&&Kn?.has(""+E_)))continue;let _i=Ub(Nc[E_],!!(Sx&Nr&2)),Xr=Uh[Mt],di=Sx&8&&Nr&4?Gu(Xr):Ub(Xr,!!(Nr&2)),rs=Er(_i,di,3,en,void 0,Sn);if(!rs)return en&&(Ti>1||ga>1)&&(oA&&E_>=Sv&&Hm>=iA&&Sv!==ga-iA-1?Ao(f.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,Sv,ga-iA-1,Mt):Ao(f.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,E_,Mt)),0;yr&=rs}return yr}if(Tt.target.combinedFlags&12)return 0}let Hr=(c===Ch||c===kf)&&!d1(it)&&!cee(it)&&!Wa(it),zi=Ove(it,Tt,Hr,!1);if(zi)return en&&xn(it,Tt)&&Wn(it,Tt,zi,Hr),0;if(d1(Tt)){for(let ga of tn(ys(it),Kn))if(!n1(Tt,ga.escapedName)&&!(pr(ga).flags&32768))return en&&vo(f.Property_0_does_not_exist_on_type_1,Ai(ga),jn(Tt)),0}let Go=ys(Tt),ha=Wa(it)&&Wa(Tt);for(let ga of tn(Go,Kn)){let Ti=ga.escapedName;if(!(ga.flags&4194304)&&(!ha||sg(Ti)||Ti==="length")&&(!Cr||ga.flags&16777216)){let zo=ba(it,Ti);if(zo&&zo!==ga){let Ra=dn(it,Tt,zo,ga,Pb,en,Sn,c===xp);if(!Ra)return 0;yr&=Ra}}}return yr}function mi(it,Tt,en){if(!(it.flags&524288&&Tt.flags&524288))return 0;let Kn=tn(kb(it),en),Cr=tn(kb(Tt),en);if(Kn.length!==Cr.length)return 0;let Sn=-1;for(let yr of Kn){let Hr=n1(Tt,yr.escapedName);if(!Hr)return 0;let zi=Eve(yr,Hr,Er);if(!zi)return 0;Sn&=zi}return Sn}function fo(it,Tt,en,Kn,Cr){var Sn,yr;if(c===op)return fa(it,Tt,en);if(Tt===on||it===on)return-1;let Hr=it.symbol&&th(it.symbol.valueDeclaration),zi=Tt.symbol&&th(Tt.symbol.valueDeclaration),Go=Yo(it,Hr&&en===1?0:en),ha=Yo(Tt,zi&&en===1?0:en);if(en===1&&Go.length&&ha.length){let Ns=!!(Go[0].flags&4),_s=!!(ha[0].flags&4);if(Ns&&!_s)return Kn&&vo(f.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!b_(Go[0],ha[0],Kn))return 0}let ga=-1,Ti=en===1?Ui:ni,zo=Wr(it),Ra=Wr(Tt);if(zo&64&&Ra&64&&it.symbol===Tt.symbol||zo&4&&Ra&4&&it.target===Tt.target){C.assertEqual(Go.length,ha.length);for(let Ns=0;Nskh(Sv,void 0,262144,en);return vo(f.Type_0_is_not_assignable_to_type_1,Uh(_s),Uh(Nc)),vo(f.Types_of_construct_signatures_are_incompatible),ga}}else e:for(let Ns of ha){let _s=Mo(),Nc=Kn;for(let Uh of Go){let Sv=mo(Uh,Ns,!0,Nc,Cr,Ti(Uh,Ns));if(Sv){ga&=Sv,er(_s);continue e}Nc=!1}return Nc&&vo(f.Type_0_provides_no_match_for_the_signature_1,jn(it),kh(Ns,void 0,void 0,en)),0}return ga}function xn(it,Tt){let en=hz(it,0),Kn=hz(it,1),Cr=kb(it);return(en.length||Kn.length)&&!Cr.length?!!(Yo(Tt,0).length&&en.length||Yo(Tt,1).length&&Kn.length):!0}function ni(it,Tt){return it.parameters.length===0&&Tt.parameters.length===0?(en,Kn)=>Ao(f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,jn(en),jn(Kn)):(en,Kn)=>Ao(f.Call_signature_return_types_0_and_1_are_incompatible,jn(en),jn(Kn))}function Ui(it,Tt){return it.parameters.length===0&&Tt.parameters.length===0?(en,Kn)=>Ao(f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,jn(en),jn(Kn)):(en,Kn)=>Ao(f.Construct_signature_return_types_0_and_1_are_incompatible,jn(en),jn(Kn))}function mo(it,Tt,en,Kn,Cr,Sn){let yr=c===Ch?16:c===kf?24:0;return mve(en?A4(it):it,en?A4(Tt):Tt,yr,Kn,vo,Sn,Hr,du);function Hr(zi,Go,ha){return Er(zi,Go,3,ha,void 0,Cr)}}function fa(it,Tt,en){let Kn=Yo(it,en),Cr=Yo(Tt,en);if(Kn.length!==Cr.length)return 0;let Sn=-1;for(let yr=0;yrzi.keyType===ke),Hr=-1;for(let zi of Sn){let Go=c!==kf&&!en&&yr&&zi.type.flags&1?-1:Hd(it)&&yr?Er(pv(it),zi.type,3,Kn):Cc(it,zi,Kn,Cr);if(!Go)return 0;Hr&=Go}return Hr}function Cc(it,Tt,en,Kn){let Cr=E4(it,Tt.keyType);return Cr?Cl(Cr,Tt,en,Kn):!(Kn&1)&&(c!==kf||Wr(it)&8192)&&_ee(it)?bc(it,Tt,en,Kn):(en&&vo(f.Index_signature_for_type_0_is_missing_in_type_1,jn(Tt.keyType),jn(it)),0)}function Js(it,Tt){let en=hd(it),Kn=hd(Tt);if(en.length!==Kn.length)return 0;for(let Cr of Kn){let Sn=Ag(it,Cr.keyType);if(!(Sn&&Er(Sn.type,Cr.type,3)&&Sn.isReadonly===Cr.isReadonly))return 0}return-1}function b_(it,Tt,en){if(!it.declaration||!Tt.declaration)return!0;let Kn=WA(it.declaration,6),Cr=WA(Tt.declaration,6);return Cr===2||Cr===4&&Kn!==2||Cr!==4&&!Kn?!0:(en&&vo(f.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,LT(Kn),LT(Cr)),!1)}}function gve(n){if(n.flags&16)return!1;if(n.flags&3145728)return!!Ke(n.types,gve);if(n.flags&465829888){let a=FT(n);if(a&&a!==n)return gve(a)}return g_(n)||!!(n.flags&134217728)||!!(n.flags&268435456)}function P4e(n,a){return Wa(n)&&Wa(a)?et:ys(a).filter(c=>ree(Xe(n,c.escapedName),pr(c)))}function ree(n,a){return!!n&&!!a&&Dl(n,32768)&&!!F4(a)}function Lct(n){return ys(n).filter(a=>F4(pr(a)))}function M4e(n,a,c=pve){return Y7e(n,a,c)||Bvt(n,a)||Gvt(n,a)||Vvt(n,a)||jvt(n,a)}function vve(n,a,c){let d=n.types,_=d.map(x=>x.flags&402784252?0:-1);for(let[x,L]of a){let z=!1;for(let U=0;U_[L]),0):n;return y.flags&131072?n:y}function L4e(n){if(n.flags&524288){let a=m_(n);return a.callSignatures.length===0&&a.constructSignatures.length===0&&a.indexInfos.length===0&&a.properties.length>0&&Jn(a.properties,c=>!!(c.flags&16777216))}return n.flags&2097152?Jn(n.types,L4e):!1}function kct(n,a,c){for(let d of ys(n))if(_ye(a,d.escapedName,c))return!0;return!1}function yve(n){return n===Qo||n===na||n.objectFlags&8?Z:w4e(n.symbol,n.typeParameters)}function k4e(n){return w4e(n,$i(n).typeParameters)}function w4e(n,a=et){var c,d;let _=$i(n);if(!_.variances){(c=lr)==null||c.push(lr.Phase.CheckTypes,"getVariancesWorker",{arity:a.length,id:gd(Qs(n))});let y=O0;O0||(O0=!0,VI=mu.length),_.variances=et;let x=[];for(let L of a){let z=bve(L),U=z&16384?z&8192?0:1:z&8192?2:void 0;if(U===void 0){let re=!1,be=!1,ge=pa;pa=Rt=>Rt?be=!0:re=!0;let Je=Pz(n,L,Tp),vt=Pz(n,L,Ms);U=(Sa(vt,Je)?1:0)|(Sa(Je,vt)?2:0),U===3&&Sa(Pz(n,L,Ic),Je)&&(U=4),pa=ge,(re||be)&&(re&&(U|=8),be&&(U|=16))}x.push(U)}y||(O0=!1,VI=0),_.variances=x,(d=lr)==null||d.pop({variances:x.map(C.formatVariance)})}return _.variances}function Pz(n,a,c){let d=WE(a,c),_=Qs(n);if(qt(_))return _;let y=n.flags&524288?vD(n,hy($i(n).typeParameters,d)):fy(_,hy(_.typeParameters,d));return mt.add(gd(y)),y}function iee(n){return mt.has(gd(n))}function bve(n){var a;return nd((a=n.symbol)==null?void 0:a.declarations,(c,d)=>c|cd(d),0)&28672}function wct(n,a){for(let c=0;c!!(a.flags&262144)||oee(a))}function Wct(n,a,c,d){let _=[],y="",x=z(n,0),L=z(a,0);return`${y}${x},${L}${c}`;function z(U,re=0){let be=""+U.target.id;for(let ge of qs(U)){if(ge.flags&262144){if(d||Oct(ge)){let Je=_.indexOf(ge);Je<0&&(Je=_.length,_.push(ge)),be+="="+Je;continue}y="*"}else if(re<4&&oee(ge)){be+="<"+z(ge,re+1)+">";continue}be+="-"+ge.id}return be}}function aee(n,a,c,d,_){if(d===op&&n.id>a.id){let x=n;n=a,a=x}let y=c?":"+c:"";return oee(n)&&oee(a)?Wct(n,a,y,_):`${n.id},${a.id}${y}`}function Mz(n,a){if(Al(n)&6){for(let c of n.links.containingType.types){let d=ba(c,n.escapedName),_=d&&Mz(d,a);if(_)return _}return}return a(n)}function gx(n){return n.parent&&n.parent.flags&32?Qs(Cd(n)):void 0}function see(n){let a=gx(n),c=a&&Np(a)[0];return c&&Xe(c,n.escapedName)}function zct(n,a){return Mz(n,c=>{let d=gx(c);return d?pD(d,a):!1})}function Bct(n,a){return!Mz(a,c=>If(c)&4?!zct(n,gx(c)):!1)}function O4e(n,a,c){return Mz(a,d=>If(d,c)&4?!pD(n,gx(d)):!1)?void 0:n}function YP(n,a,c,d=3){if(c>=d){if((Wr(n)&96)===96&&(n=F4e(n)),n.flags&2097152)return Et(n.types,L=>YP(L,a,c,d));let _=lee(n),y=0,x=0;for(let L=0;L=x&&(y++,y>=d))return!0;x=z.id}}}return!1}function F4e(n){let a;for(;(Wr(n)&96)===96&&(a=OT(n))&&(a.symbol||a.flags&2097152&&Et(a.types,c=>!!c.symbol));)n=a;return n}function W4e(n,a){return(Wr(n)&96)===96&&(n=F4e(n)),n.flags&2097152?Et(n.types,c=>W4e(c,a)):lee(n)===a}function lee(n){if(n.flags&524288&&!Wve(n)){if(Wr(n)&4&&n.node)return n.node;if(n.symbol&&!(Wr(n)&16&&n.symbol.flags&32))return n.symbol;if(Wa(n))return n.target}if(n.flags&262144)return n.symbol;if(n.flags&8388608){do n=n.objectType;while(n.flags&8388608);return n}return n.flags&16777216?n.root:n}function Gct(n,a){return Eve(n,a,M4)!==0}function Eve(n,a,c){if(n===a)return-1;let d=If(n)&6,_=If(a)&6;if(d!==_)return 0;if(d){if(MD(n)!==MD(a))return 0}else if((n.flags&16777216)!==(a.flags&16777216))return 0;return y_(n)!==y_(a)?0:c(pr(n),pr(a))}function Vct(n,a,c){let d=Kp(n),_=Kp(a),y=nh(n),x=nh(a),L=jh(n),z=jh(a);return!!(d===_&&y===x&&L===z||c&&y<=x)}function Lz(n,a,c,d,_,y){if(n===a)return-1;if(!Vct(n,a,c)||De(n.typeParameters)!==De(a.typeParameters))return 0;if(a.typeParameters){let z=Mp(n.typeParameters,a.typeParameters);for(let U=0;Ua|(c.flags&1048576?z4e(c.types):c.flags),0)}function Hct(n){if(n.length===1)return n[0];let a=Y?Io(n,d=>uc(d,_=>!(_.flags&98304))):n,c=Uct(a)?ii(a):nd(a,(d,_)=>Bb(d,_)?_:d);return a===n?c:Oz(c,z4e(n)&98304)}function qct(n){return nd(n,(a,c)=>Bb(c,a)?c:a)}function jf(n){return!!(Wr(n)&4)&&(n.target===Qo||n.target===na)}function $P(n){return!!(Wr(n)&4)&&n.target===na}function l1(n){return jf(n)||Wa(n)}function kz(n){return jf(n)&&!$P(n)||Wa(n)&&!n.target.readonly}function wz(n){return jf(n)?qs(n)[0]:void 0}function gy(n){return jf(n)||!(n.flags&98304)&&Sa(n,cf)}function Sve(n){return kz(n)||!(n.flags&98305)&&Sa(n,Ql)}function Tve(n){if(!(Wr(n)&4)||!(Wr(n.target)&3))return;if(Wr(n)&33554432)return Wr(n)&67108864?n.cachedEquivalentBaseType:void 0;n.objectFlags|=33554432;let a=n.target;if(Wr(a)&1){let _=xs(a);if(_&&_.expression.kind!==80&&_.expression.kind!==211)return}let c=Np(a);if(c.length!==1||Lb(n.symbol).size)return;let d=De(a.typeParameters)?co(c[0],Mp(a.typeParameters,qs(n).slice(0,a.typeParameters.length))):c[0];return De(qs(n))>De(a.typeParameters)&&(d=qp(d,Ya(qs(n)))),n.objectFlags|=67108864,n.cachedEquivalentBaseType=d}function B4e(n){return Y?n===Mi:n===Lt}function cee(n){let a=wz(n);return!!a&&B4e(a)}function QP(n){let a;return Wa(n)||!!ba(n,"0")||gy(n)&&!!(a=Xe(n,"length"))&&cp(a,c=>!!(c.flags&256))}function uee(n){return gy(n)||QP(n)}function Jct(n,a){let c=Xe(n,""+a);if(c)return c;if(cp(n,Wa))return U4e(n,a,V.noUncheckedIndexedAccess?Oe:void 0)}function Kct(n){return!(n.flags&240544)}function g_(n){return!!(n.flags&109472)}function G4e(n){let a=fv(n);return a.flags&2097152?Et(a.types,g_):g_(a)}function Xct(n){return n.flags&2097152&&vn(n.types,g_)||n}function w4(n){return n.flags&16?!0:n.flags&1048576?n.flags&1024?!0:Jn(n.types,g_):g_(n)}function vv(n){return n.flags&1056?NZ(n):n.flags&402653312?ke:n.flags&256?Dt:n.flags&2048?Pt:n.flags&512?yi:n.flags&1048576?Yct(n):n}function Yct(n){let a=`B${gd(n)}`;return XI(a)??pb(a,ul(n,vv))}function Ave(n){return n.flags&402653312?ke:n.flags&288?Dt:n.flags&2048?Pt:n.flags&512?yi:n.flags&1048576?ul(n,Ave):n}function BE(n){return n.flags&1056&&FE(n)?NZ(n):n.flags&128&&FE(n)?ke:n.flags&256&&FE(n)?Dt:n.flags&2048&&FE(n)?Pt:n.flags&512&&FE(n)?yi:n.flags&1048576?ul(n,BE):n}function V4e(n){return n.flags&8192?Di:n.flags&1048576?ul(n,V4e):n}function Ive(n,a){return ete(n,a)||(n=V4e(BE(n))),vd(n)}function $ct(n,a,c){if(n&&g_(n)){let d=a?c?$4(a):a:void 0;n=Ive(n,d)}return n}function xve(n,a,c,d){if(n&&g_(n)){let _=a?HE(c,a,d):void 0;n=Ive(n,_)}return n}function Wa(n){return!!(Wr(n)&4&&n.target.objectFlags&8)}function Vb(n){return Wa(n)&&!!(n.target.combinedFlags&8)}function j4e(n){return Vb(n)&&n.target.elementFlags.length===1}function dee(n){return ZP(n,n.target.fixedLength)}function U4e(n,a,c){return ul(n,d=>{let _=d,y=dee(_);return y?c&&a>=Jge(_.target)?ii([y,c]):y:Oe})}function Qct(n){let a=dee(n);return a&&Gu(a)}function ZP(n,a,c=0,d=!1,_=!1){let y=my(n)-c;if(a(c&12)===(a.target.elementFlags[d]&12))}function H4e({value:n}){return n.base10Value==="0"}function q4e(n){return uc(n,a=>mm(a,4194304))}function eut(n){return ul(n,tut)}function tut(n){return n.flags&4?Zo:n.flags&8?Ka:n.flags&64?Qu:n===Tn||n===Kt||n.flags&114691||n.flags&128&&n.value===""||n.flags&256&&n.value===0||n.flags&2048&&H4e(n)?n:Vr}function Oz(n,a){let c=a&~n.flags&98304;return c===0?n:ii(c===32768?[n,Oe]:c===65536?[n,pe]:[n,Oe,pe])}function jb(n,a=!1){C.assert(Y);let c=a?ae:Oe;return n===c||n.flags&1048576&&n.types[0]===c?n:ii([n,c])}function nut(n){return Bd||(Bd=JP("NonNullable",524288,void 0)||ft),Bd!==ft?vD(Bd,[n]):Ea([n,Pa])}function yv(n){return Y?YT(n,2097152):n}function J4e(n){return Y?ii([n,J]):n}function pee(n){return Y?Aee(n,J):n}function fee(n,a,c){return c?pC(a)?jb(n):J4e(n):n}function O4(n,a){return b6(a)?yv(n):Hu(a)?pee(n):n}function Ub(n,a){return Ce&&a?Aee(n,w):n}function F4(n){return n===w||!!(n.flags&1048576)&&n.types[0]===w}function mee(n){return Ce?Aee(n,w):_m(n,524288)}function rut(n,a){return(n.flags&524)!==0&&(a.flags&28)!==0}function _ee(n){let a=Wr(n);return n.flags&2097152?Jn(n.types,_ee):!!(n.symbol&&n.symbol.flags&7040&&!(n.symbol.flags&32)&&!hte(n))||!!(a&4194304)||!!(a&1024&&_ee(n.source))}function JT(n,a){let c=Xa(n.flags,n.escapedName,Al(n)&8);c.declarations=n.declarations,c.parent=n.parent,c.links.type=a,c.links.target=n,n.valueDeclaration&&(c.valueDeclaration=n.valueDeclaration);let d=$i(n).nameType;return d&&(c.links.nameType=d),c}function iut(n,a){let c=ua();for(let d of kb(n)){let _=pr(d),y=a(_);c.set(d.escapedName,y===_?d:JT(d,y))}return c}function W4(n){if(!(d1(n)&&Wr(n)&8192))return n;let a=n.regularType;if(a)return a;let c=n,d=iut(n,W4),_=Ls(c.symbol,d,c.callSignatures,c.constructSignatures,c.indexInfos);return _.flags=c.flags,_.objectFlags|=c.objectFlags&-8193,n.regularType=_,_}function K4e(n,a,c){return{parent:n,propertyName:a,siblings:c,resolvedProperties:void 0}}function X4e(n){if(!n.siblings){let a=[];for(let c of X4e(n.parent))if(d1(c)){let d=n1(c,n.propertyName);d&&$T(pr(d),_=>{a.push(_)})}n.siblings=a}return n.siblings}function out(n){if(!n.resolvedProperties){let a=new Map;for(let c of X4e(n))if(d1(c)&&!(Wr(c)&2097152))for(let d of ys(c))a.set(d.escapedName,d);n.resolvedProperties=Vo(a.values())}return n.resolvedProperties}function aut(n,a){if(!(n.flags&4))return n;let c=pr(n),d=a&&K4e(a,n.escapedName,void 0),_=Rve(c,d);return _===c?n:JT(n,_)}function sut(n){let a=Ue.get(n.escapedName);if(a)return a;let c=JT(n,ae);return c.flags|=16777216,Ue.set(n.escapedName,c),c}function lut(n,a){let c=ua();for(let _ of kb(n))c.set(_.escapedName,aut(_,a));if(a)for(let _ of out(a))c.has(_.escapedName)||c.set(_.escapedName,sut(_));let d=Ls(n.symbol,c,et,et,Io(hd(n),_=>Bh(_.keyType,Jp(_.type),_.isReadonly)));return d.objectFlags|=Wr(n)&266240,d}function Jp(n){return Rve(n,void 0)}function Rve(n,a){if(Wr(n)&196608){if(a===void 0&&n.widened)return n.widened;let c;if(n.flags&98305)c=j;else if(d1(n))c=lut(n,a);else if(n.flags&1048576){let d=a||K4e(void 0,void 0,n.types),_=Io(n.types,y=>y.flags&98304?y:Rve(y,d));c=ii(_,Et(_,gv)?2:1)}else n.flags&2097152?c=Ea(Io(n.types,Jp)):l1(n)&&(c=fy(n.target,Io(qs(n),Jp)));return c&&a===void 0&&(n.widened=c),c||n}return n}function hee(n){let a=!1;if(Wr(n)&65536){if(n.flags&1048576)if(Et(n.types,gv))a=!0;else for(let c of n.types)hee(c)&&(a=!0);if(l1(n))for(let c of qs(n))hee(c)&&(a=!0);if(d1(n))for(let c of kb(n)){let d=pr(c);Wr(d)&65536&&(hee(d)||qe(c.valueDeclaration,f.Object_literal_s_property_0_implicitly_has_an_1_type,Ai(c),jn(Jp(d))),a=!0)}}return a}function c1(n,a,c){let d=jn(Jp(a));if(cr(n)&&!hk(Vn(n),V))return;let _;switch(n.kind){case 226:case 172:case 171:_=me?f.Member_0_implicitly_has_an_1_type:f.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 169:let y=n;if(Ve(y.name)){let x=n0(y.name);if((nI(y.parent)||yh(y.parent)||bh(y.parent))&&y.parent.parameters.includes(y)&&(vl(y,y.name.escapedText,788968,void 0,y.name.escapedText,!0)||x&&vU(x))){let L="arg"+y.parent.parameters.indexOf(y),z=Ds(y.name)+(y.dotDotDotToken?"[]":"");_u(me,n,f.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,L,z);return}}_=n.dotDotDotToken?me?f.Rest_parameter_0_implicitly_has_an_any_type:f.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:me?f.Parameter_0_implicitly_has_an_1_type:f.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 208:if(_=f.Binding_element_0_implicitly_has_an_1_type,!me)return;break;case 324:qe(n,f.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,d);return;case 330:me&&UR(n.parent)&&qe(n.parent.tagName,f.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,d);return;case 262:case 174:case 173:case 177:case 178:case 218:case 219:if(me&&!n.name){c===3?qe(n,f.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation,d):qe(n,f.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,d);return}_=me?c===3?f._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:f._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:f._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 200:me&&qe(n,f.Mapped_object_type_implicitly_has_an_any_template_type);return;default:_=me?f.Variable_0_implicitly_has_an_1_type:f.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}_u(me,n,_,Ds(Oo(n)),d)}function gee(n,a,c){r(()=>{me&&Wr(a)&65536&&(!c||!cye(n))&&(hee(a)||c1(n,a,c))})}function Dve(n,a,c){let d=Kp(n),_=Kp(a),y=q4(n),x=q4(a),L=x?_-1:_,z=y?L:Math.min(d,L),U=i1(n);if(U){let re=i1(a);re&&c(U,re)}for(let re=0;rea.typeParameter),Ft(n.inferences,(a,c)=>()=>(a.isFixed||(put(n),vee(n.inferences),a.isFixed=!0),zve(n,c))))}function dut(n){return sve(Ft(n.inferences,a=>a.typeParameter),Ft(n.inferences,(a,c)=>()=>zve(n,c)))}function vee(n){for(let a of n)a.isFixed||(a.inferredType=void 0)}function Pve(n,a,c){(n.intraExpressionInferenceSites??(n.intraExpressionInferenceSites=[])).push({node:a,type:c})}function put(n){if(n.intraExpressionInferenceSites){for(let{node:a,type:c}of n.intraExpressionInferenceSites){let d=a.kind===174?U8e(a,2):Jd(a,2);d&&bv(n.inferences,c,d)}n.intraExpressionInferenceSites=void 0}}function Mve(n){return{typeParameter:n,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function Y4e(n){return{typeParameter:n.typeParameter,candidates:n.candidates&&n.candidates.slice(),contraCandidates:n.contraCandidates&&n.contraCandidates.slice(),inferredType:n.inferredType,priority:n.priority,topLevel:n.topLevel,isFixed:n.isFixed,impliedArity:n.impliedArity}}function fut(n){let a=tr(n.inferences,ND);return a.length?Nve(Ft(a,Y4e),n.signature,n.flags,n.compareTypes):void 0}function Lve(n){return n&&n.mapper}function u1(n){let a=Wr(n);if(a&524288)return!!(a&1048576);let c=!!(n.flags&465829888||n.flags&524288&&!$4e(n)&&(a&4&&(n.node||Et(qs(n),u1))||a&16&&n.symbol&&n.symbol.flags&14384&&n.symbol.declarations||a&12583968)||n.flags&3145728&&!(n.flags&1024)&&!$4e(n)&&Et(n.types,u1));return n.flags&3899393&&(n.objectFlags|=524288|(c?1048576:0)),c}function $4e(n){if(n.aliasSymbol&&!n.aliasTypeArguments){let a=dl(n.aliasSymbol,265);return!!(a&&zn(a.parent,c=>c.kind===312?!0:c.kind===267?!1:"quit"))}return!1}function B4(n,a,c=0){return!!(n===a||n.flags&3145728&&Et(n.types,d=>B4(d,a,c))||c<3&&n.flags&16777216&&(B4(o1(n),a,c+1)||B4(a1(n),a,c+1)))}function mut(n,a){let c=Bf(n);return c?!!c.type&&B4(c.type,a):B4(ms(n),a)}function _ut(n){let a=ua();$T(n,d=>{if(!(d.flags&128))return;let _=ml(d.value),y=Xa(4,_);y.links.type=j,d.symbol&&(y.declarations=d.symbol.declarations,y.valueDeclaration=d.symbol.valueDeclaration),a.set(_,y)});let c=n.flags&4?[Bh(ke,Pa,!1)]:et;return Ls(void 0,a,et,et,c)}function Q4e(n,a,c){let d=n.id+","+a.id+","+c.id;if(Hc.has(d))return Hc.get(d);let _=n.id+","+(a.target||a).id;if(wr(ip,_))return;ip.push(_);let y=hut(n,a,c);return ip.pop(),Hc.set(d,y),y}function kve(n){return!(Wr(n)&262144)||d1(n)&&Et(ys(n),a=>kve(pr(a)))||Wa(n)&&Et(wE(n),kve)}function hut(n,a,c){if(!(Ag(n,ke)||ys(n).length!==0&&kve(n)))return;if(jf(n))return Gu(yee(qs(n)[0],a,c),$P(n));if(Wa(n)){let _=Ft(wE(n),x=>yee(x,a,c)),y=Wh(a)&4?Io(n.target.elementFlags,x=>x&2?1:x):n.target.elementFlags;return Gh(_,y,n.target.readonly,n.target.labeledElementDeclarations)}let d=Of(1040,void 0);return d.source=n,d.mappedType=a,d.constraintType=c,d}function gut(n){let a=$i(n);return a.type||(a.type=yee(n.links.propertyType,n.links.mappedType,n.links.constraintType)),a.type}function yee(n,a,c){let d=Pp(c.type,f_(a)),_=pv(a),y=Mve(d);return bv([y],n,_),Z4e(y)||mn}function*wve(n,a,c,d){let _=ys(a);for(let y of _)if(!Vwe(y)&&(c||!(y.flags&16777216||Al(y)&48))){let x=ba(n,y.escapedName);if(!x)yield y;else if(d){let L=pr(y);if(L.flags&109472){let z=pr(x);z.flags&1||vd(z)===vd(L)||(yield y)}}}}function Ove(n,a,c,d){return D8(wve(n,a,c,d))}function vut(n,a){return!(a.target.combinedFlags&8)&&a.target.minLength>n.target.minLength||!a.target.hasRestElement&&(n.target.hasRestElement||a.target.fixedLengthmx(y,_),n)===n&&bee(n,a)}return!1}function n8e(n,a){if(a.flags&2097152)return Jn(a.types,c=>c===sc||n8e(n,c));if(a.flags&4||Sa(n,a))return!0;if(n.flags&128){let c=n.value;return!!(a.flags&8&&t8e(c,!1)||a.flags&64&&Q3(c,!1)||a.flags&98816&&c===a.intrinsicName||a.flags&268435456&&bee(qd(c),a)||a.flags&134217728&&Eee(n,a))}if(n.flags&134217728){let c=n.texts;return c.length===2&&c[0]===""&&c[1]===""&&Sa(n.types[0],a)}return!1}function r8e(n,a){return n.flags&128?i8e([n.value],et,a):n.flags&134217728?Ma(n.texts,a.texts)?Ft(n.types,Sut):i8e(n.texts,n.types,a):void 0}function Eee(n,a){let c=r8e(n,a);return!!c&&Jn(c,(d,_)=>n8e(d,a.types[_]))}function Sut(n){return n.flags&402653317?n:GT(["",""],[n])}function i8e(n,a,c){let d=n.length-1,_=n[0],y=n[d],x=c.texts,L=x.length-1,z=x[0],U=x[L];if(d===0&&_.length0){let sr=ge,Ln=Je;for(;Ln=vt(sr).indexOf(un,Ln),!(Ln>=0);){if(sr++,sr===n.length)return;Ln=0}Rt(sr,Ln),Je+=un.length}else if(Je!wr(Er,ls)):Mn,ko?tr(Qn,ls=>!wr(ko,ls)):Qn]}function sr(Mn,Qn,lo){let Er=Mn.length!!Fn(ko));if(!Er||Qn&&Er!==Qn)return;Qn=Er}return Qn}function Zn(Mn,Qn,lo){let Er=0;if(lo&1048576){let ko,ls=Mn.flags&1048576?Mn.types:[Mn],As=new Array(ls.length),Vu=!1;for(let za of Qn)if(Fn(za))ko=za,Er++;else for(let Ld=0;LdAs[Ol]?void 0:Ld);if(za.length){ge(ii(za),ko);return}}}else for(let ko of Qn)Fn(ko)?Er++:ge(Mn,ko);if(lo&2097152?Er===1:Er>0)for(let ko of Qn)Fn(ko)&&Je(Mn,ko,1)}function Hn(Mn,Qn,lo){if(lo.flags&1048576||lo.flags&2097152){let Er=!1;for(let ko of lo.types)Er=Hn(Mn,Qn,ko)||Er;return Er}if(lo.flags&4194304){let Er=Fn(lo.type);if(Er&&!Er.isFixed&&!e8e(Mn)){let ko=Q4e(Mn,Qn,lo);ko&&Je(ko,Er.typeParameter,Wr(Mn)&262144?16:8)}return!0}if(lo.flags&262144){Je($_(Mn,Mn.pattern?2:0),lo,32);let Er=FT(lo);if(Er&&Hn(Mn,Qn,Er))return!0;let ko=Ft(ys(Mn),pr),ls=Ft(hd(Mn),As=>As!==jr?As.type:Vr);return ge(ii(xo(ko,ls)),pv(Qn)),!0}return!1}function er(Mn,Qn){if(Mn.flags&16777216)ge(Mn.checkType,Qn.checkType),ge(Mn.extendsType,Qn.extendsType),ge(o1(Mn),o1(Qn)),ge(a1(Mn),a1(Qn));else{let lo=[o1(Qn),a1(Qn)];Rt(Mn,lo,Qn.flags,_?64:0)}}function Mo(Mn,Qn){let lo=r8e(Mn,Qn),Er=Qn.types;if(lo||Jn(Qn.texts,ko=>ko.length===0))for(let ko=0;koyl|ut.flags,0);if(!(Ol&4)){let yl=ls.value;Ol&296&&!t8e(yl,!0)&&(Ol&=-297),Ol&2112&&!Q3(yl,!0)&&(Ol&=-2113);let ut=nd(Ld,(Ie,Pn)=>Pn.flags&Ol?Ie.flags&4?Ie:Pn.flags&4?ls:Ie.flags&134217728?Ie:Pn.flags&134217728&&Eee(ls,Pn)?ls:Ie.flags&268435456?Ie:Pn.flags&268435456&&yl===e4e(Pn.symbol,yl)?ls:Ie.flags&128?Ie:Pn.flags&128&&Pn.value===yl?Pn:Ie.flags&8?Ie:Pn.flags&8?h_(+yl):Ie.flags&32?Ie:Pn.flags&32?h_(+yl):Ie.flags&256?Ie:Pn.flags&256&&Pn.value===+yl?Pn:Ie.flags&64?Ie:Pn.flags&64?Eut(yl):Ie.flags&2048?Ie:Pn.flags&2048&&z1(Pn.value)===yl?Pn:Ie.flags&16?Ie:Pn.flags&16?yl==="true"?On:yl==="false"?Kt:yi:Ie.flags&512?Ie:Pn.flags&512&&Pn.intrinsicName===yl?Pn:Ie.flags&32768?Ie:Pn.flags&32768&&Pn.intrinsicName===yl?Pn:Ie.flags&65536?Ie:Pn.flags&65536&&Pn.intrinsicName===yl?Pn:Ie:Ie,Vr);if(!(ut.flags&131072)){ge(ut,As);continue}}}}ge(ls,As)}}function Ao(Mn,Qn){ge(gf(Mn),gf(Qn)),ge(pv(Mn),pv(Qn));let lo=py(Mn),Er=py(Qn);lo&&Er&&ge(lo,Er)}function jo(Mn,Qn){var lo,Er;if(Wr(Mn)&4&&Wr(Qn)&4&&(Mn.target===Qn.target||jf(Mn)&&jf(Qn))){sr(qs(Mn),qs(Qn),yve(Mn.target));return}if(Hd(Mn)&&Hd(Qn)&&Ao(Mn,Qn),Wr(Qn)&32&&!Qn.declaration.nameType){let ko=gf(Qn);if(Hn(Mn,Qn,ko))return}if(!yut(Mn,Qn)){if(l1(Mn)){if(Wa(Qn)){let ko=my(Mn),ls=my(Qn),As=qs(Qn),Vu=Qn.target.elementFlags;if(Wa(Mn)&&Zct(Mn,Qn)){for(let Ol=0;Ol0){let ls=Yo(Qn,lo),As=ls.length;for(let Vu=0;Vu1){let a=tr(n,Wve);if(a.length){let c=ii(a,2);return xo(tr(n,d=>!Wve(d)),[c])}}return n}function Rut(n){return n.priority&416?Ea(n.contraCandidates):qct(n.contraCandidates)}function Dut(n,a){let c=xut(n.candidates),d=Iut(n.typeParameter)||WT(n.typeParameter),_=!d&&n.topLevel&&(n.isFixed||!mut(a,n.typeParameter)),y=d?Io(c,vd):_?Io(c,BE):c,x=n.priority&416?ii(y,2):Hct(y);return Jp(x)}function zve(n,a){let c=n.inferences[a];if(!c.inferredType){let d,_;if(n.signature){let x=c.candidates?Dut(c,n.signature):void 0,L=c.contraCandidates?Rut(c):void 0;if(x||L){let z=x&&(!L||!(x.flags&131072)&&Et(c.contraCandidates,U=>Bb(x,U))&&Jn(n.inferences,U=>U!==c&&Pd(U.typeParameter)!==c.typeParameter||Jn(U.candidates,re=>Bb(re,x))));d=z?x:L,_=z?L:x}else if(n.flags&1)d=Eo;else{let z=zT(c.typeParameter);z&&(d=co(z,oct(ict(n,a),n.nonFixingMapper)))}}else d=Z4e(c);c.inferredType=d||Bve(!!(n.flags&2));let y=Pd(c.typeParameter);if(y){let x=co(y,n.nonFixingMapper);(!d||!n.compareTypes(d,qp(x,d)))&&(c.inferredType=_&&n.compareTypes(_,qp(x,_))?_:x)}}return c.inferredType}function Bve(n){return n?j:mn}function Gve(n){let a=[];for(let c=0;cfd(a)||Dm(a)||yp(a)))}function See(n,a,c,d){switch(n.kind){case 80:if(!FA(n)){let x=Vm(n);return x!==ft?`${d?ss(d):"-1"}|${gd(a)}|${gd(c)}|${Ta(x)}`:void 0}case 110:return`0|${d?ss(d):"-1"}|${gd(a)}|${gd(c)}`;case 235:case 217:return See(n.expression,a,c,d);case 166:let _=See(n.left,a,c,d);return _&&_+"."+n.right.escapedText;case 211:case 212:let y=KT(n);if(y!==void 0){let x=See(n.expression,a,c,d);return x&&x+"."+y}break;case 206:case 207:case 262:case 218:case 219:case 174:return`${ss(n)}#${gd(a)}`}}function Iu(n,a){switch(a.kind){case 217:case 235:return Iu(n,a.expression);case 226:return Mc(a)&&Iu(n,a.left)||_r(a)&&a.operatorToken.kind===28&&Iu(n,a.right)}switch(n.kind){case 236:return a.kind===236&&n.keywordToken===a.keywordToken&&n.name.escapedText===a.name.escapedText;case 80:case 81:return FA(n)?a.kind===110:a.kind===80&&Vm(n)===Vm(a)||(Oi(a)||Qa(a))&&mf(Vm(n))===Rr(a);case 110:return a.kind===110;case 108:return a.kind===108;case 235:case 217:return Iu(n.expression,a);case 211:case 212:let c=KT(n),d=ks(a)?KT(a):void 0;return c!==void 0&&d!==void 0&&d===c&&Iu(n.expression,a.expression);case 166:return ks(a)&&n.right.escapedText===KT(a)&&Iu(n.left,a.expression);case 226:return _r(n)&&n.operatorToken.kind===28&&Iu(n.right,a)}return!1}function KT(n){if(zr(n))return n.name.escapedText;if(Ys(n))return Cut(n);if(Qa(n)){let a=es(n);return a?ml(a):void 0}if(Co(n))return""+n.parent.parameters.indexOf(n)}function jve(n){return n.flags&8192?n.escapedName:n.flags&384?ml(""+n.value):void 0}function Cut(n){return Qp(n.argumentExpression)?ml(n.argumentExpression.text):zl(n.argumentExpression)?Nut(n.argumentExpression):void 0}function Nut(n){let a=Us(n,111551,!0);if(!a||!(iM(a)||a.flags&8))return;let c=a.valueDeclaration;if(c===void 0)return;let d=ao(c);if(d){let _=jve(d);if(_!==void 0)return _}if(fS(c)&&nv(c,n)){let _=wL(c);if(_){let y=ta(c.parent)?Y_(c):Ru(_);return y&&jve(y)}if(Q1(c))return Zx(c.name)}}function a8e(n,a){for(;ks(n);)if(n=n.expression,Iu(n,a))return!0;return!1}function XT(n,a){for(;Hu(n);)if(n=n.expression,Iu(n,a))return!0;return!1}function eM(n,a){if(n&&n.flags&1048576){let c=sOe(n,a);if(c&&Al(c)&2)return c.links.isDiscriminantProperty===void 0&&(c.links.isDiscriminantProperty=(c.links.checkFlags&192)===192&&!ED(pr(c))),!!c.links.isDiscriminantProperty}return!1}function s8e(n,a){let c;for(let d of n)if(eM(a,d.escapedName)){if(c){c.push(d);continue}c=[d]}return c}function Put(n,a){let c=new Map,d=0;for(let _ of n)if(_.flags&61603840){let y=Xe(_,a);if(y){if(!w4(y))return;let x=!1;$T(y,L=>{let z=gd(vd(L)),U=c.get(z);U?U!==mn&&(c.set(z,mn),x=!0):c.set(z,_)}),x||d++}}return d>=10&&d*2>=n.length?c:void 0}function Fz(n){let a=n.types;if(!(a.length<10||Wr(n)&32768||au(a,c=>!!(c.flags&59506688))<10)){if(n.keyPropertyName===void 0){let c=Ke(a,_=>_.flags&59506688?Ke(ys(_),y=>g_(pr(y))?y.escapedName:void 0):void 0),d=c&&Put(a,c);n.keyPropertyName=d?c:"",n.constituentMap=d}return n.keyPropertyName.length?n.keyPropertyName:void 0}}function Wz(n,a){var c;let d=(c=n.constituentMap)==null?void 0:c.get(gd(vd(a)));return d!==mn?d:void 0}function l8e(n,a){let c=Fz(n),d=c&&Xe(a,c);return d&&Wz(n,d)}function Mut(n,a){let c=Fz(n),d=c&&vn(a.properties,y=>y.symbol&&y.kind===303&&y.symbol.escapedName===c&&qz(y.initializer)),_=d&&mB(d.initializer);return _&&Wz(n,_)}function c8e(n,a){return Iu(n,a)||a8e(n,a)}function u8e(n,a){if(n.arguments){for(let c of n.arguments)if(c8e(a,c)||XT(c,a))return!0}return!!(n.expression.kind===211&&c8e(a,n.expression.expression))}function Uve(n){return(!n.id||n.id<0)&&(n.id=cle,cle++),n.id}function Lut(n,a){if(!(n.flags&1048576))return Sa(n,a);for(let c of n.types)if(Sa(c,a))return!0;return!1}function kut(n,a){if(n===a)return n;if(a.flags&131072)return a;let c=`A${gd(n)},${gd(a)}`;return XI(c)??pb(c,wut(n,a))}function wut(n,a){let c=uc(n,_=>Lut(a,_)),d=a.flags&512&&FE(a)?ul(c,hx):c;return Sa(a,d)?d:n}function Hve(n){let a=m_(n);return!!(a.callSignatures.length||a.constructSignatures.length||a.members.get("bind")&&Bb(n,wt))}function tM(n,a){return qve(n,a)&a}function mm(n,a){return tM(n,a)!==0}function qve(n,a){n.flags&467927040&&(n=Bu(n)||mn);let c=n.flags;if(c&268435460)return Y?16317953:16776705;if(c&134217856){let d=c&128&&n.value==="";return Y?d?12123649:7929345:d?12582401:16776705}if(c&40)return Y?16317698:16776450;if(c&256){let d=n.value===0;return Y?d?12123394:7929090:d?12582146:16776450}if(c&64)return Y?16317188:16775940;if(c&2048){let d=H4e(n);return Y?d?12122884:7928580:d?12581636:16775940}return c&16?Y?16316168:16774920:c&528?Y?n===Kt||n===Tn?12121864:7927560:n===Kt||n===Tn?12580616:16774920:c&524288?a&(Y?83427327:83886079)?Wr(n)&16&&gv(n)?Y?83427327:83886079:Hve(n)?Y?7880640:16728e3:Y?7888800:16736160:0:c&16384?9830144:c&32768?26607360:c&65536?42917664:c&12288?Y?7925520:16772880:c&67108864?Y?7888800:16736160:c&131072?0:c&1048576?nd(n.types,(d,_)=>d|qve(_,a),0):c&2097152?Out(n,a):83886079}function Out(n,a){let c=Dl(n,402784252),d=0,_=134217727;for(let y of n.types)if(!(c&&y.flags&524288)){let x=qve(y,a);d|=x,_&=x}return d&8256|_&134209471}function _m(n,a){return uc(n,c=>mm(c,a))}function YT(n,a){let c=d8e(_m(Y&&n.flags&2?ll:n,a));if(Y)switch(a){case 524288:return ul(c,d=>mm(d,65536)?Ea([d,mm(d,131072)&&!Dl(c,65536)?ii([Pa,pe]):Pa]):d);case 1048576:return ul(c,d=>mm(d,131072)?Ea([d,mm(d,65536)&&!Dl(c,32768)?ii([Pa,Oe]):Pa]):d);case 2097152:case 4194304:return ul(c,d=>mm(d,262144)?nut(d):d)}return c}function d8e(n){return n===ll?mn:n}function Jve(n,a){return a?ii([gi(n),Ru(a)]):n}function p8e(n,a){var c;let d=_y(a);if(!nm(d))return ht;let _=rm(d);return Xe(n,_)||G4((c=px(n,_))==null?void 0:c.type)||ht}function f8e(n,a){return cp(n,QP)&&Jct(n,a)||G4(yy(65,n,Oe,void 0))||ht}function G4(n){return n&&(V.noUncheckedIndexedAccess?ii([n,w]):n)}function m8e(n){return Gu(yy(65,n,Oe,void 0)||ht)}function Fut(n){return n.parent.kind===209&&Kve(n.parent)||n.parent.kind===303&&Kve(n.parent.parent)?Jve(zz(n),n.right):Ru(n.right)}function Kve(n){return n.parent.kind===226&&n.parent.left===n||n.parent.kind===250&&n.parent.initializer===n}function Wut(n,a){return f8e(zz(n),n.elements.indexOf(a))}function zut(n){return m8e(zz(n.parent))}function _8e(n){return p8e(zz(n.parent),n.name)}function But(n){return Jve(_8e(n),n.objectAssignmentInitializer)}function zz(n){let{parent:a}=n;switch(a.kind){case 249:return ke;case 250:return bB(a)||ht;case 226:return Fut(a);case 220:return Oe;case 209:return Wut(a,n);case 230:return zut(a);case 303:return _8e(a);case 304:return But(a)}return ht}function Gut(n){let a=n.parent,c=g8e(a.parent),d=a.kind===206?p8e(c,n.propertyName||n.name):n.dotDotDotToken?m8e(c):f8e(c,a.elements.indexOf(n));return Jve(d,n.initializer)}function h8e(n){return ti(n).resolvedType||Ru(n)}function Vut(n){return n.initializer?h8e(n.initializer):n.parent.parent.kind===249?ke:n.parent.parent.kind===250&&bB(n.parent.parent)||ht}function g8e(n){return n.kind===260?Vut(n):Gut(n)}function jut(n){return n.kind===260&&n.initializer&&Rb(n.initializer)||n.kind!==208&&n.parent.kind===226&&Rb(n.parent.right)}function GE(n){switch(n.kind){case 217:return GE(n.expression);case 226:switch(n.operatorToken.kind){case 64:case 76:case 77:case 78:return GE(n.left);case 28:return GE(n.right)}}return n}function v8e(n){let{parent:a}=n;return a.kind===217||a.kind===226&&a.operatorToken.kind===64&&a.left===n||a.kind===226&&a.operatorToken.kind===28&&a.right===n?v8e(a):n}function Uut(n){return n.kind===296?vd(Ru(n.expression)):Vr}function Tee(n){let a=ti(n);if(!a.switchTypes){a.switchTypes=[];for(let c of n.caseBlock.clauses)a.switchTypes.push(Uut(c))}return a.switchTypes}function y8e(n){if(Et(n.caseBlock.clauses,c=>c.kind===296&&!us(c.expression)))return;let a=[];for(let c of n.caseBlock.clauses){let d=c.kind===296?c.expression.text:void 0;a.push(d&&!wr(a,d)?d:void 0)}return a}function Hut(n,a){return n.flags&1048576?!Ke(n.types,c=>!wr(a,c)):wr(a,n)}function nM(n,a){return!!(n===a||n.flags&131072||a.flags&1048576&&qut(n,a))}function qut(n,a){if(n.flags&1048576){for(let c of n.types)if(!mv(a.types,c))return!1;return!0}return n.flags&1056&&NZ(n)===a?!0:mv(a.types,n)}function $T(n,a){return n.flags&1048576?Ke(n.types,a):a(n)}function jm(n,a){return n.flags&1048576?Et(n.types,a):a(n)}function cp(n,a){return n.flags&1048576?Jn(n.types,a):a(n)}function Jut(n,a){return n.flags&3145728?Jn(n.types,a):a(n)}function uc(n,a){if(n.flags&1048576){let c=n.types,d=tr(c,a);if(d===c)return n;let _=n.origin,y;if(_&&_.flags&1048576){let x=_.types,L=tr(x,z=>!!(z.flags&1048576)||a(z));if(x.length-L.length===c.length-d.length){if(L.length===1)return L[0];y=Kge(1048576,L)}}return Yge(d,n.objectFlags&16809984,void 0,void 0,y)}return n.flags&131072||a(n)?n:Vr}function Aee(n,a){return uc(n,c=>c!==a)}function Kut(n){return n.flags&1048576?n.types.length:1}function ul(n,a,c){if(n.flags&131072)return n;if(!(n.flags&1048576))return a(n);let d=n.origin,_=d&&d.flags&1048576?d.types:n.types,y,x=!1;for(let L of _){let z=L.flags&1048576?ul(L,a,c):a(L);x||(x=L!==z),z&&(y?y.push(z):y=[z])}return x?y&&ii(y,c?0:1):n}function b8e(n,a,c,d){return n.flags&1048576&&c?ii(Ft(n.types,a),1,c,d):ul(n,a)}function rM(n,a){return uc(n,c=>(c.flags&a)!==0)}function E8e(n,a){return Dl(n,134217804)&&Dl(a,402655616)?ul(n,c=>c.flags&4?rM(a,402653316):VT(c)&&!Dl(a,402653188)?rM(a,128):c.flags&8?rM(a,264):c.flags&64?rM(a,2112):c):n}function AD(n){return n.flags===0}function QT(n){return n.flags===0?n.type:n}function ID(n,a){return a?{flags:0,type:n.flags&131072?Eo:n}:n}function Xut(n){let a=Of(256);return a.elementType=n,a}function Xve(n){return wn[n.id]||(wn[n.id]=Xut(n))}function S8e(n,a){let c=W4(vv(mB(a)));return nM(c,n.elementType)?n:Xve(ii([n.elementType,c]))}function Yut(n){return n.flags&131072?qc:Gu(n.flags&1048576?ii(n.types,2):n)}function $ut(n){return n.finalArrayType||(n.finalArrayType=Yut(n.elementType))}function Bz(n){return Wr(n)&256?$ut(n):n}function Qut(n){return Wr(n)&256?n.elementType:Vr}function Zut(n){let a=!1;for(let c of n)if(!(c.flags&131072)){if(!(Wr(c)&256))return!1;a=!0}return a}function T8e(n){let a=v8e(n),c=a.parent,d=zr(c)&&(c.name.escapedText==="length"||c.parent.kind===213&&Ve(c.name)&&qj(c.name)),_=c.kind===212&&c.expression===a&&c.parent.kind===226&&c.parent.operatorToken.kind===64&&c.parent.left===c&&!ng(c.parent)&&xu(Ru(c.argumentExpression),296);return d||_}function edt(n){return(Oi(n)||Jo(n)||gp(n)||Co(n))&&!!(yu(n)||cr(n)&&Oy(n)&&n.initializer&&B1(n.initializer)&&tm(n.initializer))}function Iee(n,a){if(n=Gl(n),n.flags&8752)return pr(n);if(n.flags&7){if(Al(n)&262144){let d=n.links.syntheticOrigin;if(d&&Iee(d))return pr(n)}let c=n.valueDeclaration;if(c){if(edt(c))return pr(n);if(Oi(c)&&c.parent.parent.kind===250){let d=c.parent.parent,_=Gz(d.expression,void 0);if(_){let y=d.awaitModifier?15:13;return yy(y,_,Oe,void 0)}}a&&ka(a,Or(c,f._0_needs_an_explicit_type_annotation,Ai(n)))}}}function Gz(n,a){if(!(n.flags&67108864))switch(n.kind){case 80:let c=mf(Vm(n));return Iee(c,a);case 110:return Edt(n);case 108:return nye(n);case 211:{let d=Gz(n.expression,a);if(d){let _=n.name,y;if(Xi(_)){if(!d.symbol)return;y=ba(d,ZL(d.symbol,_.escapedText))}else y=ba(d,_.escapedText);return y&&Iee(y,a)}return}case 217:return Gz(n.expression,a)}}function Vz(n){let a=ti(n),c=a.effectsSignature;if(c===void 0){let d;if(_r(n)){let x=xD(n.right);d=Jye(x)}else n.parent.kind===244?d=Gz(n.expression,void 0):n.expression.kind!==108&&(Hu(n)?d=Z_(O4(go(n.expression),n.expression),n.expression):d=xD(n.expression));let _=Yo(d&&Md(d)||mn,0),y=_.length===1&&!_[0].typeParameters?_[0]:Et(_,A8e)?DD(n):void 0;c=a.effectsSignature=y&&A8e(y)?y:pn}return c===pn?void 0:c}function A8e(n){return!!(Bf(n)||n.declaration&&(hD(n.declaration)||mn).flags&131072)}function tdt(n,a){if(n.kind===1||n.kind===3)return a.arguments[n.parameterIndex];let c=vs(a.expression);return ks(c)?vs(c.expression):void 0}function ndt(n){let a=zn(n,KV),c=Vn(n),d=hh(c,a.statements.pos);ns.add(Qc(c,d.start,d.length,f.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function jz(n){let a=xee(n,!1);return kt=n,Ut=a,a}function Uz(n){let a=vs(n,!0);return a.kind===97||a.kind===226&&(a.operatorToken.kind===56&&(Uz(a.left)||Uz(a.right))||a.operatorToken.kind===57&&Uz(a.left)&&Uz(a.right))}function xee(n,a){for(;;){if(n===kt)return Ut;let c=n.flags;if(c&4096){if(!a){let d=Uve(n),_=cT[d];return _!==void 0?_:cT[d]=xee(n,!0)}a=!1}if(c&368)n=n.antecedent;else if(c&512){let d=Vz(n.node);if(d){let _=Bf(d);if(_&&_.kind===3&&!_.type){let y=n.node.arguments[_.parameterIndex];if(y&&Uz(y))return!1}if(ms(d).flags&131072)return!1}n=n.antecedent}else{if(c&4)return Et(n.antecedents,d=>xee(d,!1));if(c&8){let d=n.antecedents;if(d===void 0||d.length===0)return!1;n=d[0]}else if(c&128){if(n.clauseStart===n.clauseEnd&&o3e(n.switchStatement))return!1;n=n.antecedent}else if(c&1024){kt=void 0;let d=n.target,_=d.antecedents;d.antecedents=n.antecedents;let y=xee(n.antecedent,!1);return d.antecedents=_,y}else return!(c&1)}}}function Ree(n,a){for(;;){let c=n.flags;if(c&4096){if(!a){let d=Uve(n),_=KI[d];return _!==void 0?_:KI[d]=Ree(n,!0)}a=!1}if(c&496)n=n.antecedent;else if(c&512){if(n.node.expression.kind===108)return!0;n=n.antecedent}else{if(c&4)return Jn(n.antecedents,d=>Ree(d,!1));if(c&8)n=n.antecedents[0];else if(c&1024){let d=n.target,_=d.antecedents;d.antecedents=n.antecedents;let y=Ree(n.antecedent,!1);return d.antecedents=_,y}else return!!(c&1)}}}function I8e(n){switch(n.kind){case 110:return!0;case 80:if(!FA(n)){let c=Vm(n);return iM(c)||Cee(c)&&!x8e(c)}break;case 211:case 212:return I8e(n.expression)&&y_(ti(n).resolvedSymbol||ft);case 206:case 207:let a=D_(n.parent);return Co(a)||Joe(a)?!Yve(a):Oi(a)&&xB(a)}return!1}function Hb(n,a,c=a,d,_=(y=>(y=ai(n,HL))==null?void 0:y.flowNode)()){let y,x=!1,L=0;if(ze)return ht;if(!_)return a;Ze++;let z=Qg,U=QT(ge(_));Qg=z;let re=Wr(U)&256&&T8e(n)?qc:Bz(U);if(re===Ci||n.parent&&n.parent.kind===235&&!(re.flags&131072)&&_m(re,2097152).flags&131072)return a;return re===q?mn:re;function be(){return x?y:(x=!0,y=See(n,a,c,d))}function ge(ct){var Ot;if(L===2e3)return(Ot=lr)==null||Ot.instant(lr.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:ct.id}),ze=!0,ndt(n),ht;L++;let tn;for(;;){let $t=ct.flags;if($t&4096){for(let Wn=z;Wn=0&&tn.parameterIndex!(Wn.flags&163840)):Ot.kind===221&&XT(Ot.expression,n)&&($t=ls($t,ct.switchStatement,ct.clauseStart,ct.clauseEnd,Wn=>!(Wn.flags&131072||Wn.flags&128&&Wn.value==="undefined"))));let dn=Hn(Ot,$t);dn&&($t=Ao($t,dn,ct.switchStatement,ct.clauseStart,ct.clauseEnd))}return ID($t,AD(tn))}function cn(ct){let Ot=[],tn=!1,$t=!1,dn;for(let Wn of ct.antecedents){if(!dn&&Wn.flags&128&&Wn.clauseStart===Wn.clauseEnd){dn=Wn;continue}let Si=ge(Wn),mi=QT(Si);if(mi===a&&a===c)return mi;bf(Ot,mi),nM(mi,c)||(tn=!0),AD(Si)&&($t=!0)}if(dn){let Wn=ge(dn),Si=QT(Wn);if(!(Si.flags&131072)&&!wr(Ot,Si)&&!o3e(dn.switchStatement)){if(Si===a&&a===c)return Si;Ot.push(Si),nM(Si,c)||(tn=!0),AD(Wn)&&($t=!0)}}return ID(kn(Ot,tn?2:1),$t)}function Fn(ct){let Ot=Uve(ct),tn=jI[Ot]||(jI[Ot]=new Map),$t=be();if(!$t)return a;let dn=tn.get($t);if(dn)return dn;for(let xn=U_;xn{let xn=It(fo,$t)||mn;return!(xn.flags&131072)&&!(mi.flags&131072)&&Dz(mi,xn)})}function Mo(ct,Ot,tn,$t,dn){if((tn===37||tn===38)&&ct.flags&1048576){let Wn=Fz(ct);if(Wn&&Wn===KT(Ot)){let Si=Wz(ct,Ru($t));if(Si)return tn===(dn?37:38)?Si:g_(Xe(Si,Wn)||mn)?Aee(ct,Si):ct}}return er(ct,Ot,Wn=>lo(Wn,tn,$t,dn))}function Ao(ct,Ot,tn,$t,dn){if($tWz(ct,mi)||mn));if(Si!==mn)return Si}return er(ct,Ot,Wn=>As(Wn,tn,$t,dn))}function jo(ct,Ot,tn){if(Iu(n,Ot))return YT(ct,tn?4194304:8388608);Y&&tn&&XT(Ot,n)&&(ct=YT(ct,2097152));let $t=Hn(Ot,ct);return $t?er(ct,$t,dn=>_m(dn,tn?4194304:8388608)):ct}function vo(ct,Ot,tn){let $t=ba(ct,Ot);return $t?!!($t.flags&16777216||Al($t)&48)||tn:!!px(ct,Ot)||!tn}function Dc(ct,Ot,tn){let $t=rm(Ot);if(jm(ct,Wn=>vo(Wn,$t,!0)))return uc(ct,Wn=>vo(Wn,$t,tn));if(tn){let Wn=slt();if(Wn)return Ea([ct,vD(Wn,[Ot,mn])])}return ct}function Uf(ct,Ot,tn,$t,dn){return dn=dn!==(tn.kind===112)!=($t!==38&&$t!==36),Ur(ct,Ot,dn)}function up(ct,Ot,tn){switch(Ot.operatorToken.kind){case 64:case 76:case 77:case 78:return jo(Ur(ct,Ot.right,tn),Ot.left,tn);case 35:case 36:case 37:case 38:let $t=Ot.operatorToken.kind,dn=GE(Ot.left),Wn=GE(Ot.right);if(dn.kind===221&&us(Wn))return Er(ct,dn,$t,Wn,tn);if(Wn.kind===221&&us(dn))return Er(ct,Wn,$t,dn,tn);if(Iu(n,dn))return lo(ct,$t,Wn,tn);if(Iu(n,Wn))return lo(ct,$t,dn,tn);Y&&(XT(dn,n)?ct=Qn(ct,$t,Wn,tn):XT(Wn,n)&&(ct=Qn(ct,$t,dn,tn)));let Si=Hn(dn,ct);if(Si)return Mo(ct,Si,$t,Wn,tn);let mi=Hn(Wn,ct);if(mi)return Mo(ct,mi,$t,dn,tn);if(yl(dn))return ut(ct,$t,Wn,tn);if(yl(Wn))return ut(ct,$t,dn,tn);if(gC(Wn)&&!ks(dn))return Uf(ct,dn,Wn,$t,tn);if(gC(dn)&&!ks(Wn))return Uf(ct,Wn,dn,$t,tn);break;case 104:return Ie(ct,Ot,tn);case 103:if(Xi(Ot.left))return Mn(ct,Ot,tn);let fo=GE(Ot.right);if(F4(ct)&&ks(n)&&Iu(n.expression,fo)){let xn=Ru(Ot.left);if(nm(xn)&&KT(n)===rm(xn))return _m(ct,tn?524288:65536)}if(Iu(n,fo)){let xn=Ru(Ot.left);if(nm(xn))return Dc(ct,xn,tn)}break;case 28:return Ur(ct,Ot.right,tn);case 56:return tn?Ur(Ur(ct,Ot.left,!0),Ot.right,!0):ii([Ur(ct,Ot.left,!1),Ur(ct,Ot.right,!1)]);case 57:return tn?ii([Ur(ct,Ot.left,!0),Ur(ct,Ot.right,!0)]):Ur(Ur(ct,Ot.left,!1),Ot.right,!1)}return ct}function Mn(ct,Ot,tn){let $t=GE(Ot.right);if(!Iu(n,$t))return ct;C.assertNode(Ot.left,Xi);let dn=Bee(Ot.left);if(dn===void 0)return ct;let Wn=dn.parent,Si=fc(C.checkDefined(dn.valueDeclaration,"should always have a declaration"))?pr(Wn):Qs(Wn);return Mr(ct,Si,tn,!0)}function Qn(ct,Ot,tn,$t){let dn=Ot===35||Ot===37,Wn=Ot===35||Ot===36?98304:32768,Si=Ru(tn);return dn!==$t&&cp(Si,fo=>!!(fo.flags&Wn))||dn===$t&&cp(Si,fo=>!(fo.flags&(3|Wn)))?YT(ct,2097152):ct}function lo(ct,Ot,tn,$t){if(ct.flags&1)return ct;(Ot===36||Ot===38)&&($t=!$t);let dn=Ru(tn),Wn=Ot===35||Ot===36;if(dn.flags&98304){if(!Y)return ct;let Si=Wn?$t?262144:2097152:dn.flags&65536?$t?131072:1048576:$t?65536:524288;return YT(ct,Si)}if($t){if(!Wn&&(ct.flags&2||jm(ct,Vh))){if(dn.flags&469893116||Vh(dn))return dn;if(dn.flags&524288)return Kr}let Si=uc(ct,mi=>Dz(mi,dn)||Wn&&rut(mi,dn));return E8e(Si,dn)}return g_(dn)?uc(ct,Si=>!(G4e(Si)&&Dz(Si,dn))):ct}function Er(ct,Ot,tn,$t,dn){(tn===36||tn===38)&&(dn=!dn);let Wn=GE(Ot.expression);if(!Iu(n,Wn)){Y&&XT(Wn,n)&&dn===($t.text!=="undefined")&&(ct=YT(ct,2097152));let Si=Hn(Wn,ct);return Si?er(ct,Si,mi=>ko(mi,$t,dn)):ct}return ko(ct,$t,dn)}function ko(ct,Ot,tn){return tn?Vu(ct,Ot.text):YT(ct,zq.get(Ot.text)||32768)}function ls(ct,Ot,tn,$t,dn){return tn!==$t&&Jn(Tee(Ot).slice(tn,$t),dn)?_m(ct,2097152):ct}function As(ct,Ot,tn,$t){let dn=Tee(Ot);if(!dn.length)return ct;let Wn=dn.slice(tn,$t),Si=tn===$t||wr(Wn,Vr);if(ct.flags&2&&!Si){let ni;for(let Ui=0;UiDz(mi,ni)),mi);if(!Si)return fo;let xn=uc(ct,ni=>!(G4e(ni)&&wr(dn,vd(Xct(ni)))));return fo.flags&131072?xn:ii([fo,xn])}function Vu(ct,Ot){switch(Ot){case"string":return za(ct,ke,1);case"number":return za(ct,Dt,2);case"bigint":return za(ct,Pt,4);case"boolean":return za(ct,yi,8);case"symbol":return za(ct,Di,16);case"object":return ct.flags&1?ct:ii([za(ct,Kr,32),za(ct,pe,131072)]);case"function":return ct.flags&1?ct:za(ct,wt,64);case"undefined":return za(ct,Oe,65536)}return za(ct,Kr,128)}function za(ct,Ot,tn){return ul(ct,$t=>Q_($t,Ot,kf)?mm($t,tn)?$t:Vr:Bb(Ot,$t)?Ot:mm($t,tn)?Ea([$t,Ot]):Vr)}function Ld(ct,Ot,tn,$t){let dn=y8e(Ot);if(!dn)return ct;let Wn=ri(Ot.caseBlock.clauses,fo=>fo.kind===297);if(tn===$t||Wn>=tn&&Wn<$t){let fo=i3e(tn,$t,dn);return uc(ct,xn=>tM(xn,fo)===fo)}let mi=dn.slice(tn,$t);return ii(Ft(mi,fo=>fo?Vu(ct,fo):Vr))}function Ol(ct,Ot,tn,$t){let dn=ri(Ot.caseBlock.clauses,mi=>mi.kind===297),Wn=tn===$t||dn>=tn&&dn<$t;for(let mi=0;mimi.kind===296?Ur(ct,mi.expression,!0):Vr))}function yl(ct){return(zr(ct)&&Sr(ct.name)==="constructor"||Ys(ct)&&us(ct.argumentExpression)&&ct.argumentExpression.text==="constructor")&&Iu(n,ct.expression)}function ut(ct,Ot,tn,$t){if($t?Ot!==35&&Ot!==37:Ot!==36&&Ot!==38)return ct;let dn=Ru(tn);if(!Tbe(dn)&&!os(dn))return ct;let Wn=ba(dn,"prototype");if(!Wn)return ct;let Si=pr(Wn),mi=Ct(Si)?void 0:Si;if(!mi||mi===Pe||mi===wt)return ct;if(Ct(ct))return mi;return uc(ct,xn=>fo(xn,mi));function fo(xn,ni){return xn.flags&524288&&Wr(xn)&1||ni.flags&524288&&Wr(ni)&1?xn.symbol===ni.symbol:Bb(xn,ni)}}function Ie(ct,Ot,tn){let $t=GE(Ot.left);if(!Iu(n,$t))return tn&&Y&&XT($t,n)?YT(ct,2097152):ct;let dn=Ot.right,Wn=Ru(dn);if(!s1(Wn,Pe))return ct;let Si=Vz(Ot),mi=Si&&Bf(Si);if(mi&&mi.kind===1&&mi.parameterIndex===0)return Mr(ct,mi.type,tn,!0);if(!s1(Wn,wt))return ct;let fo=ul(Wn,Pn);return Ct(ct)&&(fo===Pe||fo===wt)||!tn&&!(fo.flags&524288&&!Vh(fo))?ct:Mr(ct,fo,tn,!0)}function Pn(ct){let Ot=Xe(ct,"prototype");if(Ot&&!Ct(Ot))return Ot;let tn=Yo(ct,1);return tn.length?ii(Ft(tn,$t=>ms(A4($t)))):Pa}function Mr(ct,Ot,tn,$t){let dn=ct.flags&1048576?`N${gd(ct)},${gd(Ot)},${(tn?1:0)|($t?2:0)}`:void 0;return XI(dn)??pb(dn,fi(ct,Ot,tn,$t))}function fi(ct,Ot,tn,$t){if(!tn){if(ct===Ot)return Vr;if($t)return uc(ct,fo=>!s1(fo,Ot));let mi=Mr(ct,Ot,!0,!1);return uc(ct,fo=>!nM(fo,mi))}if(ct.flags&3||ct===Ot)return Ot;let dn=$t?s1:Bb,Wn=ct.flags&1048576?Fz(ct):void 0,Si=ul(Ot,mi=>{let fo=Wn&&Xe(mi,Wn),xn=fo&&Wz(ct,fo),ni=ul(xn||ct,$t?Ui=>s1(Ui,mi)?Ui:s1(mi,Ui)?mi:Vr:Ui=>Rz(Ui,mi)?Ui:Rz(mi,Ui)?mi:Bb(Ui,mi)?Ui:Bb(mi,Ui)?mi:Vr);return ni.flags&131072?ul(ct,Ui=>Dl(Ui,465829888)&&dn(mi,Bu(Ui)||mn)?Ea([Ui,mi]):Vr):ni});return Si.flags&131072?Bb(Ot,ct)?Ot:Sa(ct,Ot)?ct:Sa(Ot,ct)?Ot:Ea([ct,Ot]):Si}function xi(ct,Ot,tn){if(u8e(Ot,n)){let $t=tn||!lS(Ot)?Vz(Ot):void 0,dn=$t&&Bf($t);if(dn&&(dn.kind===0||dn.kind===1))return Ri(ct,dn,Ot,tn)}if(F4(ct)&&ks(n)&&zr(Ot.expression)){let $t=Ot.expression;if(Iu(n.expression,GE($t.expression))&&Ve($t.name)&&$t.name.escapedText==="hasOwnProperty"&&Ot.arguments.length===1){let dn=Ot.arguments[0];if(us(dn)&&KT(n)===ml(dn.text))return _m(ct,tn?524288:65536)}}return ct}function Ri(ct,Ot,tn,$t){if(Ot.type&&!(Ct(ct)&&(Ot.type===Pe||Ot.type===wt))){let dn=tdt(Ot,tn);if(dn){if(Iu(n,dn))return Mr(ct,Ot.type,$t,!1);Y&&XT(dn,n)&&($t&&!mm(Ot.type,65536)||!$t&&cp(Ot.type,Qz))&&(ct=YT(ct,2097152));let Wn=Hn(dn,ct);if(Wn)return er(ct,Wn,Si=>Mr(Si,Ot.type,$t,!1))}}return ct}function Ur(ct,Ot,tn){if(b6(Ot)||_r(Ot.parent)&&(Ot.parent.operatorToken.kind===61||Ot.parent.operatorToken.kind===78)&&Ot.parent.left===Ot)return Dr(ct,Ot,tn);switch(Ot.kind){case 80:if(!Iu(n,Ot)&&M<5){let $t=Vm(Ot);if(iM($t)){let dn=$t.valueDeclaration;if(dn&&Oi(dn)&&!dn.type&&dn.initializer&&I8e(n)){M++;let Wn=Ur(ct,dn.initializer,tn);return M--,Wn}}}case 110:case 108:case 211:case 212:return jo(ct,Ot,tn);case 213:return xi(ct,Ot,tn);case 217:case 235:return Ur(ct,Ot.expression,tn);case 226:return up(ct,Ot,tn);case 224:if(Ot.operator===54)return Ur(ct,Ot.operand,!tn);break}return ct}function Dr(ct,Ot,tn){if(Iu(n,Ot))return YT(ct,tn?2097152:262144);let $t=Hn(Ot,ct);return $t?er(ct,$t,dn=>_m(dn,tn?2097152:262144)):ct}}function rdt(n,a){if(n=mf(n),(a.kind===80||a.kind===81)&&(jC(a)&&(a=a.parent),eg(a)&&(!ng(a)||BA(a)))){let c=pee(BA(a)&&a.kind===211?Wee(a,void 0,!0):Ru(a));if(mf(ti(a).resolvedSymbol)===n)return c}return Wg(a)&&wv(a.parent)&&Gm(a.parent)?oz(a.parent.symbol):uU(a)&&BA(a.parent)?ME(n):Pb(n)}function V4(n){return zn(n.parent,a=>ea(a)&&!vS(a)||a.kind===268||a.kind===312||a.kind===172)}function x8e(n){return!R8e(n,void 0)}function R8e(n,a){let c=zn(n.valueDeclaration,Dee);if(!c)return!1;let d=ti(c);return d.flags&131072||(d.flags|=131072,idt(c)||C8e(c)),!n.lastAssignmentPos||a&&n.lastAssignmentPosa.kind!==232&&D8e(a.name))}function idt(n){return!!zn(n.parent,a=>Dee(a)&&!!(ti(a).flags&131072))}function Dee(n){return zs(n)||no(n)}function C8e(n){switch(n.kind){case 80:if(ng(n)){let c=Vm(n);if(Cee(c)&&c.lastAssignmentPos!==Number.MAX_VALUE){let d=zn(n,Dee),_=zn(c.valueDeclaration,Dee);c.lastAssignmentPos=d===_?odt(n,c.valueDeclaration):Number.MAX_VALUE}}return;case 281:let a=n.parent.parent;if(!n.isTypeOnly&&!a.isTypeOnly&&!a.moduleSpecifier){let c=Us(n.propertyName||n.name,111551,!0,!0);c&&Cee(c)&&(c.lastAssignmentPos=Number.MAX_VALUE)}return;case 264:case 265:case 266:return}qi(n)||Ho(n,C8e)}function odt(n,a){let c=n.pos;for(;n&&n.pos>a.pos;){switch(n.kind){case 243:case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 258:case 263:c=n.end}n=n.parent}return c}function iM(n){return n.flags&3&&(hye(n)&6)!==0}function Cee(n){let a=n.valueDeclaration&&D_(n.valueDeclaration);return!!a&&(Co(a)||Oi(a)&&($1(a.parent)||adt(a)))}function adt(n){return!!(n.parent.flags&1)&&!(t0(n)&32||n.parent.parent.kind===243&&Nh(n.parent.parent.parent))}function sdt(n){let a=ti(n);if(a.parameterInitializerContainsUndefined===void 0){if(!Oh(n,9))return dD(n.symbol),!0;let c=!!mm(sM(n,0),16777216);if(!X_())return dD(n.symbol),!0;a.parameterInitializerContainsUndefined=c}return a.parameterInitializerContainsUndefined}function ldt(n,a){return Y&&a.kind===169&&a.initializer&&mm(n,16777216)&&!sdt(a)?_m(n,524288):n}function cdt(n,a){let c=a.parent;return c.kind===211||c.kind===166||c.kind===213&&c.expression===a||c.kind===212&&c.expression===a&&!(jm(n,P8e)&&UT(Ru(c.argumentExpression)))}function N8e(n){return n.flags&2097152?Et(n.types,N8e):!!(n.flags&465829888&&fv(n).flags&1146880)}function P8e(n){return n.flags&2097152?Et(n.types,P8e):!!(n.flags&465829888&&!Dl(fv(n),98304))}function udt(n,a){let c=(Ve(n)||zr(n)||Ys(n))&&!((w_(n.parent)||zS(n.parent))&&n.parent.tagName===n)&&(a&&a&32?Jd(n,8):Jd(n,void 0));return c&&!ED(c)}function $ve(n,a,c){return!(c&&c&2)&&jm(n,N8e)&&(cdt(n,a)||udt(a,c))?ul(n,fv):n}function M8e(n){return!!zn(n,a=>{let c=a.parent;return c===void 0?"quit":Ll(c)?c.expression===a&&zl(a):Ju(c)?c.name===a||c.propertyName===a:!1})}function Nee(n,a){if(gt&&TT(n,111551)&&!xS(a)){let c=Fc(n);Au(n,!0)&1160127&&(im(V)||V1(V)&&M8e(a)||!r8(mf(c))?bb(n):iu(n))}}function ddt(n,a,c){var d;let _=pr(n,c),y=n.valueDeclaration;if(y){if(Qa(y)&&!y.initializer&&!y.dotDotDotToken&&y.parent.elements.length>=2){let x=y.parent.parent,L=D_(x);if(L.kind===260&&KE(L)&6||L.kind===169){let z=ti(x);if(!(z.flags&4194304)){z.flags|=4194304;let U=Br(x,0),re=U&&ul(U,fv);if(z.flags&=-4194305,re&&re.flags&1048576&&!(L.kind===169&&Yve(L))){let be=y.parent,ge=Hb(be,re,re,void 0,a.flowNode);return ge.flags&131072?Vr:Sg(y,ge,!0)}}}}if(Co(y)&&!y.type&&!y.initializer&&!y.dotDotDotToken){let x=y.parent;if(x.parameters.length>=2&&eee(x)){let L=U4(x);if(L&&L.parameters.length===1&&Xu(L)){let z=jP(co(pr(L.parameters[0]),(d=VE(x))==null?void 0:d.nonFixingMapper));if(z.flags&1048576&&cp(z,Wa)&&!Et(x.parameters,Yve)){let U=Hb(x,z,z,void 0,a.flowNode),re=x.parameters.indexOf(y)-(k1(x)?1:0);return Pp(U,h_(re))}}}}}return _}function pdt(n,a){if(FA(n))return Hz(n);let c=Vm(n);if(c===ft)return ht;if(c===Bt){if(_6e(n))return qe(n,f.arguments_cannot_be_referenced_in_property_initializers),ht;let cn=zp(n);if(cn)for(ue<2&&(cn.kind===219?qe(n,f.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):ei(cn,1024)&&qe(n,f.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),ti(cn).flags|=512;cn&&Bs(cn);)cn=zp(cn),cn&&(ti(cn).flags|=512);return pr(c)}mdt(n)&&Nee(c,n);let d=mf(c),_=gbe(d,n);fb(_)&&Zge(n,_)&&_.declarations&&sy(n,_.declarations,n.escapedText);let y=d.valueDeclaration;if(y&&d.flags&32&&pi(y)&&y.name!==n){let cn=wd(n,!1,!1);for(;cn.kind!==312&&cn.parent!==y;)cn=wd(cn,!1,!1);cn.kind!==312&&(ti(y).flags|=262144,ti(cn).flags|=262144,ti(n).flags|=536870912)}gdt(n,c);let x=ddt(d,n,a),L=wA(n);if(L){if(!(d.flags&3)&&!(cr(n)&&d.flags&512)){let cn=d.flags&384?f.Cannot_assign_to_0_because_it_is_an_enum:d.flags&32?f.Cannot_assign_to_0_because_it_is_a_class:d.flags&1536?f.Cannot_assign_to_0_because_it_is_a_namespace:d.flags&16?f.Cannot_assign_to_0_because_it_is_a_function:d.flags&2097152?f.Cannot_assign_to_0_because_it_is_an_import:f.Cannot_assign_to_0_because_it_is_not_a_variable;return qe(n,cn,Ai(c)),ht}if(y_(d))return d.flags&3?qe(n,f.Cannot_assign_to_0_because_it_is_a_constant,Ai(c)):qe(n,f.Cannot_assign_to_0_because_it_is_a_read_only_property,Ai(c)),ht}let z=d.flags&2097152;if(d.flags&3){if(L===1)return Wj(n)?vv(x):x}else if(z)y=Fm(c);else return x;if(!y)return x;x=$ve(x,n,a);let U=D_(y).kind===169,re=V4(y),be=V4(n),ge=be!==re,Je=n.parent&&n.parent.parent&&qv(n.parent)&&Kve(n.parent.parent),vt=c.flags&134217728,Rt=x===ot||x===qc,sn=Rt&&n.parent.kind===235;for(;be!==re&&(be.kind===218||be.kind===219||K6(be))&&(iM(d)&&x!==qc||Cee(d)&&R8e(d,n));)be=V4(be);let un=U||z||ge||Je||vt||fdt(n,y)||x!==ot&&x!==qc&&(!Y||(x.flags&16387)!==0||xS(n)||Vve(n)||n.parent.kind===281)||n.parent.kind===235||y.kind===260&&y.exclamationToken||y.flags&33554432,sr=sn?Oe:un?U?ldt(x,y):x:Rt?Oe:jb(x),Ln=sn?yv(Hb(n,x,sr,be)):Hb(n,x,sr,be);if(!T8e(n)&&(x===ot||x===qc)){if(Ln===ot||Ln===qc)return me&&(qe(Oo(y),f.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Ai(c),jn(Ln)),qe(n,f.Variable_0_implicitly_has_an_1_type,Ai(c),jn(Ln))),n8(Ln)}else if(!un&&!XP(x)&&XP(Ln))return qe(n,f.Variable_0_is_used_before_being_assigned,Ai(c)),x;return L?vv(Ln):Ln}function fdt(n,a){if(Qa(a)){let c=zn(n,Qa);return c&&D_(c)===D_(a)}}function mdt(n){var a;let c=n.parent;if(c){if(zr(c)&&c.expression===n||Ju(c)&&c.isTypeOnly)return!1;let d=(a=c.parent)==null?void 0:a.parent;if(d&&Kl(d)&&d.isTypeOnly)return!1}return!0}function _dt(n,a){return!!zn(n,c=>c===a?"quit":ea(c)||c.parent&&Jo(c.parent)&&!fc(c.parent)&&c.parent.initializer===c)}function hdt(n,a){return zn(n,c=>c===a?"quit":c===a.initializer||c===a.condition||c===a.incrementor||c===a.statement)}function Qve(n){return zn(n,a=>!a||Jj(a)?"quit":ky(a,!1))}function gdt(n,a){if(ue>=2||!(a.flags&34)||!a.valueDeclaration||no(a.valueDeclaration)||a.valueDeclaration.parent.kind===299)return;let c=_h(a.valueDeclaration),d=_dt(n,c),_=Qve(c);if(_){if(d){let y=!0;if(FS(c)){let x=p0(a.valueDeclaration,261);if(x&&x.parent===c){let L=hdt(n.parent,c);if(L){let z=ti(L);z.flags|=8192;let U=z.capturedBlockScopeBindings||(z.capturedBlockScopeBindings=[]);bf(U,a),L===c.initializer&&(y=!1)}}}y&&(ti(_).flags|=4096)}if(FS(c)){let y=p0(a.valueDeclaration,261);y&&y.parent===c&&ydt(n,c)&&(ti(a.valueDeclaration).flags|=65536)}ti(a.valueDeclaration).flags|=32768}d&&(ti(a.valueDeclaration).flags|=16384)}function vdt(n,a){let c=ti(n);return!!c&&wr(c.capturedBlockScopeBindings,Rr(a))}function ydt(n,a){let c=n;for(;c.parent.kind===217;)c=c.parent;let d=!1;if(ng(c))d=!0;else if(c.parent.kind===224||c.parent.kind===225){let _=c.parent;d=_.operator===46||_.operator===47}return d?!!zn(c,_=>_===a?"quit":_===a.statement):!1}function Zve(n,a){if(ti(n).flags|=2,a.kind===172||a.kind===176){let c=a.parent;ti(c).flags|=4}else ti(a).flags|=4}function L8e(n){return gS(n)?n:ea(n)?void 0:Ho(n,L8e)}function eye(n){let a=Rr(n),c=Qs(a);return Cp(c)===Ge}function k8e(n,a,c){let d=a.parent;M1(d)&&!eye(d)&&HL(n)&&n.flowNode&&!Ree(n.flowNode,!1)&&qe(n,c)}function bdt(n,a){Jo(a)&&fc(a)&&ne&&a.initializer&&ZM(a.initializer,n.pos)&&Sf(a.parent)&&qe(n,f.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function Hz(n){let a=xS(n),c=wd(n,!0,!0),d=!1,_=!1;for(c.kind===176&&k8e(n,c,f.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);;){if(c.kind===219&&(c=wd(c,!1,!_),d=!0),c.kind===167){c=wd(c,!d,!1),_=!0;continue}break}if(bdt(n,c),_)qe(n,f.this_cannot_be_referenced_in_a_computed_property_name);else switch(c.kind){case 267:qe(n,f.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 266:qe(n,f.this_cannot_be_referenced_in_current_location);break;case 176:w8e(n,c)&&qe(n,f.this_cannot_be_referenced_in_constructor_arguments);break}!a&&d&&ue<2&&Zve(n,c);let y=tye(n,!0,c);if(ie){let x=pr(at);if(y===x&&d)qe(n,f.The_containing_arrow_function_captures_the_global_value_of_this);else if(!y){let L=qe(n,f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!no(c)){let z=tye(c);z&&z!==x&&ka(L,Or(c,f.An_outer_value_of_this_is_shadowed_by_this_container))}}}return y||j}function tye(n,a=!0,c=wd(n,!1,!1)){let d=cr(n);if(ea(c)&&(!iye(n)||k1(c))){let _=ige(c)||d&&Tdt(c);if(!_){let y=Sdt(c);if(d&&y){let x=go(y).symbol;x&&x.members&&x.flags&16&&(_=Qs(x).thisType)}else th(c)&&(_=Qs(is(c.symbol)).thisType);_||(_=z8e(c))}if(_)return Hb(n,_)}if(pi(c.parent)){let _=Rr(c.parent),y=sa(c)?pr(_):Qs(_).thisType;return Hb(n,y)}if(no(c))if(c.commonJsModuleIndicator){let _=Rr(c);return _&&pr(_)}else{if(c.externalModuleIndicator)return Oe;if(a)return pr(at)}}function Edt(n){let a=wd(n,!1,!1);if(ea(a)){let c=pm(a);if(c.thisParameter)return Iee(c.thisParameter)}if(pi(a.parent)){let c=Rr(a.parent);return sa(a)?pr(c):Qs(c).thisType}}function Sdt(n){if(n.kind===218&&_r(n.parent)&&Wl(n.parent)===3)return n.parent.left.expression.expression;if(n.kind===174&&n.parent.kind===210&&_r(n.parent.parent)&&Wl(n.parent.parent)===6)return n.parent.parent.left.expression;if(n.kind===218&&n.parent.kind===303&&n.parent.parent.kind===210&&_r(n.parent.parent.parent)&&Wl(n.parent.parent.parent)===6)return n.parent.parent.parent.left.expression;if(n.kind===218&&_c(n.parent)&&Ve(n.parent.name)&&(n.parent.name.escapedText==="value"||n.parent.name.escapedText==="get"||n.parent.name.escapedText==="set")&&wa(n.parent.parent)&&la(n.parent.parent.parent)&&n.parent.parent.parent.arguments[2]===n.parent.parent&&Wl(n.parent.parent.parent)===9)return n.parent.parent.parent.arguments[0].expression;if(jl(n)&&Ve(n.name)&&(n.name.escapedText==="value"||n.name.escapedText==="get"||n.name.escapedText==="set")&&wa(n.parent)&&la(n.parent.parent)&&n.parent.parent.arguments[2]===n.parent&&Wl(n.parent.parent)===9)return n.parent.parent.arguments[0].expression}function Tdt(n){let a=h6(n);if(a&&a.typeExpression)return Ii(a.typeExpression);let c=UP(n);if(c)return i1(c)}function w8e(n,a){return!!zn(n,c=>zs(c)?"quit":c.kind===169&&c.parent===a)}function nye(n){let a=n.parent.kind===213&&n.parent.expression===n,c=CL(n,!0),d=c,_=!1,y=!1;if(!a){for(;d&&d.kind===219;)ei(d,1024)&&(y=!0),d=CL(d,!0),_=ue<2;d&&ei(d,1024)&&(y=!0)}let x=0;if(!d||!re(d)){let be=zn(n,ge=>ge===d?"quit":ge.kind===167);return be&&be.kind===167?qe(n,f.super_cannot_be_referenced_in_a_computed_property_name):a?qe(n,f.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):!d||!d.parent||!(pi(d.parent)||d.parent.kind===210)?qe(n,f.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):qe(n,f.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),ht}if(!a&&c.kind===176&&k8e(n,d,f.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),sa(d)||a?(x=32,!a&&ue>=2&&ue<=8&&(Jo(d)||Il(d))&&cie(n.parent,be=>{(!no(be)||Fp(be))&&(ti(be).flags|=2097152)})):x=16,ti(n).flags|=x,d.kind===174&&y&&(Od(n.parent)&&ng(n.parent)?ti(d).flags|=256:ti(d).flags|=128),_&&Zve(n.parent,d),d.parent.kind===210)return ue<2?(qe(n,f.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),ht):j;let L=d.parent;if(!M1(L))return qe(n,f.super_can_only_be_referenced_in_a_derived_class),ht;if(eye(L))return a?ht:Ge;let z=Qs(Rr(L)),U=z&&Np(z)[0];if(!U)return ht;if(d.kind===176&&w8e(n,d))return qe(n,f.super_cannot_be_referenced_in_constructor_arguments),ht;return x===32?Cp(z):qp(U,z.thisType);function re(be){return a?be.kind===176:pi(be.parent)||be.parent.kind===210?sa(be)?be.kind===174||be.kind===173||be.kind===177||be.kind===178||be.kind===172||be.kind===175:be.kind===174||be.kind===173||be.kind===177||be.kind===178||be.kind===172||be.kind===171||be.kind===176:!1}}function O8e(n){return(n.kind===174||n.kind===177||n.kind===178)&&n.parent.kind===210?n.parent:n.kind===218&&n.parent.kind===303?n.parent.parent:void 0}function F8e(n){return Wr(n)&4&&n.target===Bl?qs(n)[0]:void 0}function Adt(n){return ul(n,a=>a.flags&2097152?Ke(a.types,F8e):F8e(a))}function W8e(n,a){let c=n,d=a;for(;d;){let _=Adt(d);if(_)return _;if(c.parent.kind!==303)break;c=c.parent.parent,d=f1(c,void 0)}}function z8e(n){if(n.kind===219)return;if(eee(n)){let c=U4(n);if(c){let d=c.thisParameter;if(d)return pr(d)}}let a=cr(n);if(ie||a){let c=O8e(n);if(c){let _=f1(c,void 0),y=W8e(c,_);return y?co(y,Lve(VE(c))):Jp(_?yv(_):ec(c))}let d=Fv(n.parent);if(Mc(d)){let _=d.left;if(ks(_)){let{expression:y}=_;if(a&&Ve(y)){let x=Vn(d);if(x.commonJsModuleIndicator&&Vm(y)===x.symbol)return}return Jp(ec(y))}}}}function B8e(n){let a=n.parent;if(!eee(a))return;let c=vS(a);if(c&&c.arguments){let _=qee(c),y=a.parameters.indexOf(n);if(n.dotDotDotToken)return Nye(_,y,_.length,j,void 0,0);let x=ti(c),L=x.resolvedSignature;x.resolvedSignature=St;let z=y<_.length?BE(go(_[y])):n.initializer?void 0:Lt;return x.resolvedSignature=L,z}let d=U4(a);if(d){let _=a.parameters.indexOf(n)-(k1(a)?1:0);return n.dotDotDotToken&&Zs(a.parameters)===n?sB(d,_):UE(d,_)}}function rye(n,a){let c=yu(n)||(cr(n)?n7(n):void 0);if(c)return Ii(c);switch(n.kind){case 169:return B8e(n);case 208:return Idt(n,a);case 172:if(sa(n))return xdt(n,a)}}function Idt(n,a){let c=n.parent.parent,d=n.propertyName||n.name,_=rye(c,a)||c.kind!==208&&c.initializer&&sM(c,n.dotDotDotToken?32:0);if(!_||ta(d)||TL(d))return;if(c.name.kind===207){let x=Qx(n.parent.elements,n);return x<0?void 0:sye(_,x)}let y=_y(d);if(nm(y)){let x=rm(y);return Xe(_,x)}}function xdt(n,a){let c=bt(n.parent)&&Jd(n.parent,a);if(c)return p1(c,Rr(n).escapedName)}function Rdt(n,a){let c=n.parent;if(Oy(c)&&n===c.initializer){let d=rye(c,a);if(d)return d;if(!(a&8)&&ta(c.name)&&c.name.elements.length>0)return P(c.name,!0,!1)}}function Ddt(n,a){let c=zp(n);if(c){let d=Pee(c,a);if(d){let _=Gc(c);if(_&1){let y=(_&2)!==0;d.flags&1048576&&(d=uc(d,L=>!!HE(1,L,y)));let x=HE(1,d,(_&2)!==0);if(!x)return;d=x}if(_&2){let y=ul(d,vy);return y&&ii([y,t3e(y)])}return d}}}function Cdt(n,a){let c=Jd(n,a);if(c){let d=vy(c);return d&&ii([d,t3e(d)])}}function Ndt(n,a){let c=zp(n);if(c){let d=Gc(c),_=Pee(c,a);if(_){let y=(d&2)!==0;return!n.asteriskToken&&_.flags&1048576&&(_=uc(_,x=>!!HE(1,x,y))),n.asteriskToken?_:HE(0,_,y)}}}function iye(n){let a=!1;for(;n.parent&&!ea(n.parent);){if(Co(n.parent)&&(a||n.parent.initializer===n))return!0;Qa(n.parent)&&n.parent.initializer===n&&(a=!0),n=n.parent}return!1}function G8e(n,a){let c=!!(Gc(a)&2),d=Pee(a,void 0);if(d)return HE(n,d,c)||void 0}function Pee(n,a){let c=hD(n);if(c)return c;let d=cye(n);if(d&&!wZ(d)){let y=ms(d),x=Gc(n);return x&1?uc(y,L=>!!(L.flags&58998787)||$ye(L,x,void 0)):x&2?uc(y,L=>!!(L.flags&58998787)||!!uM(L)):y}let _=vS(n);if(_)return Jd(_,a)}function V8e(n,a){let d=qee(n).indexOf(a);return d===-1?void 0:oye(n,d)}function oye(n,a){if(Wp(n))return a===0?ke:a===1?NOe(!1):j;let c=ti(n).resolvedSignature===Tr?Tr:DD(n);if(sd(n)&&a===0)return wee(c,n);let d=c.parameters.length-1;return Xu(c)&&a>=d?Pp(pr(c.parameters[d]),h_(a-d),256):v_(c,a)}function Pdt(n){let a=jye(n);return a?BT(a):void 0}function Mdt(n,a){if(n.parent.kind===215)return V8e(n.parent,a)}function Ldt(n,a){let c=n.parent,{left:d,operatorToken:_,right:y}=c;switch(_.kind){case 64:case 77:case 76:case 78:return n===y?wdt(c):void 0;case 57:case 61:let x=Jd(c,a);return n===y&&(x&&x.pattern||!x&&!Nie(c))?Ru(d):x;case 56:case 28:return n===y?Jd(c,a):void 0;default:return}}function kdt(n){if(A_(n)&&n.symbol)return n.symbol;if(Ve(n))return Vm(n);if(zr(n)){let c=Ru(n.expression);return Xi(n.name)?a(c,n.name):ba(c,n.name.escapedText)}if(Ys(n)){let c=ec(n.argumentExpression);if(!nm(c))return;let d=Ru(n.expression);return ba(d,rm(c))}return;function a(c,d){let _=zee(d.escapedText,d);return _&&bye(c,_)}}function wdt(n){var a,c;let d=Wl(n);switch(d){case 0:case 4:let _=kdt(n.left),y=_&&_.valueDeclaration;if(y&&(Jo(y)||gp(y))){let z=yu(y);return z&&co(Ii(z),$i(_).mapper)||(Jo(y)?y.initializer&&Ru(n.left):void 0)}return d===0?Ru(n.left):j8e(n);case 5:if(Mee(n,d))return j8e(n);if(!A_(n.left)||!n.left.symbol)return Ru(n.left);{let z=n.left.symbol.valueDeclaration;if(!z)return;let U=aa(n.left,ks),re=yu(z);if(re)return Ii(re);if(Ve(U.expression)){let be=U.expression,ge=vl(be,be.escapedText,111551,void 0,be.escapedText,!0);if(ge){let Je=ge.valueDeclaration&&yu(ge.valueDeclaration);if(Je){let vt=Fg(U);if(vt!==void 0)return p1(Ii(Je),vt)}return}}return cr(z)||z===n.left?void 0:Ru(n.left)}case 1:case 6:case 3:case 2:let x;d!==2&&(x=A_(n.left)?(a=n.left.symbol)==null?void 0:a.valueDeclaration:void 0),x||(x=(c=n.symbol)==null?void 0:c.valueDeclaration);let L=x&&yu(x);return L?Ii(L):void 0;case 7:case 8:case 9:return C.fail("Does not apply");default:return C.assertNever(d)}}function Mee(n,a=Wl(n)){if(a===4)return!0;if(!cr(n)||a!==5||!Ve(n.left.expression))return!1;let c=n.left.expression.escapedText,d=vl(n.left,c,111551,void 0,void 0,!0,!0);return Z6(d?.valueDeclaration)}function j8e(n){if(!n.symbol)return Ru(n.left);if(n.symbol.valueDeclaration){let _=yu(n.symbol.valueDeclaration);if(_){let y=Ii(_);if(y)return y}}let a=aa(n.left,ks);if(!Im(wd(a.expression,!1,!1)))return;let c=Hz(a.expression),d=Fg(a);return d!==void 0&&p1(c,d)||void 0}function Odt(n){return!!(Al(n)&262144&&!n.links.type&&cx(n,0)>=0)}function p1(n,a,c){return ul(n,d=>{var _;if(Hd(d)&&!d.declaration.nameType){let y=gf(d),x=Bu(y)||y,L=c||qd(Hi(a));if(Sa(L,x))return qZ(d,L)}else if(d.flags&3670016){let y=ba(d,a);if(y)return Odt(y)?void 0:Ub(pr(y),!!(y&&y.flags&16777216));if(Wa(d)&&sg(a)&&+a>=0){let x=ZP(d,d.target.fixedLength,0,!1,!0);if(x)return x}return(_=Sge(Tge(d),c||qd(Hi(a))))==null?void 0:_.type}},!0)}function U8e(n,a){if(C.assert(Im(n)),!(n.flags&67108864))return aye(n,a)}function aye(n,a){let c=n.parent,d=_c(n)&&rye(n,a);if(d)return d;let _=f1(c,a);if(_){if(mD(n)){let y=Rr(n);return p1(_,y.escapedName,$i(y).nameType)}if(By(n)){let y=Oo(n);if(y&&Za(y)){let x=go(y.expression),L=nm(x)&&p1(_,rm(x));if(L)return L}}if(n.name){let y=_y(n.name);return ul(_,x=>{var L;return(L=Sge(Tge(x),y))==null?void 0:L.type},!0)}}}function Fdt(n){let a,c;for(let d=0;d{if(Wa(y)){if((d===void 0||a_)?c-a:0,L=x>0&&y.target.hasRestElement?x4(y.target,3):0;return x>0&&x<=L?qs(y)[my(y)-x]:ZP(y,d===void 0?y.target.fixedLength:Math.min(y.target.fixedLength,d),c===void 0||_===void 0?L:Math.min(L,c-_),!1,!0)}return(!d||agy(z)?Pp(z,h_(x)):z,!0))}function Bdt(n,a){let c=n.parent;return R6(c)?Jd(n,a):cg(c)?zdt(c,n,a):void 0}function H8e(n,a){if(O_(n)){let c=f1(n.parent,a);return!c||Ct(c)?void 0:p1(c,lN(n.name))}else return Jd(n.parent,a)}function qz(n){switch(n.kind){case 11:case 9:case 10:case 15:case 228:case 112:case 97:case 106:case 80:case 157:return!0;case 211:case 217:return qz(n.expression);case 294:return!n.expression||qz(n.expression)}return!1}function Gdt(n,a){return Mut(a,n)||vve(a,xo(Ft(tr(n.properties,c=>c.symbol?c.kind===303?qz(c.initializer)&&eM(a,c.symbol.escapedName):c.kind===304?eM(a,c.symbol.escapedName):!1:!1),c=>[()=>mB(c.kind===303?c.initializer:c.name),c.symbol.escapedName]),Ft(tr(ys(a),c=>{var d;return!!(c.flags&16777216)&&!!((d=n?.symbol)!=null&&d.members)&&!n.symbol.members.has(c.escapedName)&&eM(a,c.escapedName)}),c=>[()=>Oe,c.escapedName])),Sa)}function Vdt(n,a){let c=Xz(ZT(n));return vve(a,xo(Ft(tr(n.properties,d=>!!d.symbol&&d.kind===291&&eM(a,d.symbol.escapedName)&&(!d.initializer||qz(d.initializer))),d=>[d.initializer?()=>mB(d.initializer):()=>On,d.symbol.escapedName]),Ft(tr(ys(a),d=>{var _;if(!(d.flags&16777216)||!((_=n?.symbol)!=null&&_.members))return!1;let y=n.parent.parent;return d.escapedName===c&&cg(y)&&gR(y.children).length?!1:!n.symbol.members.has(d.escapedName)&&eM(a,d.escapedName)}),d=>[()=>Oe,d.escapedName])),Sa)}function f1(n,a){let c=Im(n)?U8e(n,a):Jd(n,a),d=Lee(c,n,a);if(d&&!(a&&a&2&&d.flags&8650752)){let _=ul(d,y=>Wr(y)&32?y:Md(y),!0);return _.flags&1048576&&wa(n)?Gdt(n,_):_.flags&1048576&&Y1(n)?Vdt(n,_):_}}function Lee(n,a,c){if(n&&Dl(n,465829888)){let d=VE(a);if(d&&c&1&&Et(d.inferences,Imt))return kee(n,d.nonFixingMapper);if(d?.returnMapper){let _=kee(n,d.returnMapper);return _.flags&1048576&&mv(_.types,Tn)&&mv(_.types,Gn)?uc(_,y=>y!==Tn&&y!==Gn):_}}return n}function kee(n,a){return n.flags&465829888?co(n,a):n.flags&1048576?ii(Ft(n.types,c=>kee(c,a)),0):n.flags&2097152?Ea(Ft(n.types,c=>kee(c,a))):n}function Jd(n,a){var c;if(n.flags&67108864)return;let d=J8e(n,!a);if(d>=0)return hn[d];let{parent:_}=n;switch(_.kind){case 260:case 169:case 172:case 171:case 208:return Rdt(n,a);case 219:case 253:return Ddt(n,a);case 229:return Ndt(_,a);case 223:return Cdt(_,a);case 213:case 214:return V8e(_,n);case 170:return Pdt(_);case 216:case 234:return kg(_.type)?Jd(_,a):Ii(_.type);case 226:return Ldt(n,a);case 303:case 304:return aye(_,a);case 305:return Jd(_.parent,a);case 209:{let y=_,x=f1(y,a),L=Qx(y.elements,n),z=(c=ti(y)).spreadIndices??(c.spreadIndices=Fdt(y.elements));return sye(x,L,y.elements.length,z.first,z.last)}case 227:return Wdt(n,a);case 239:return C.assert(_.parent.kind===228),Mdt(_.parent,n);case 217:{if(cr(_)){if(kU(_))return Ii(wU(_));let y=r0(_);if(y&&!kg(y.typeExpression.type))return Ii(y.typeExpression.type)}return Jd(_,a)}case 235:return Jd(_,a);case 238:return Ii(_.type);case 277:return ao(_);case 294:return Bdt(_,a);case 291:case 293:return H8e(_,a);case 286:case 285:return qdt(_,a);case 301:return Hdt(_)}}function q8e(n){Jz(n,Jd(n,void 0),!0)}function Jz(n,a,c){Yn[hi]=n,hn[hi]=a,$n[hi]=c,hi++}function j4(){hi--}function J8e(n,a){for(let c=hi-1;c>=0;c--)if(n===Yn[c]&&(a||!$n[c]))return c;return-1}function jdt(n,a){ur[mr]=n,oi[mr]=a,mr++}function Udt(){mr--}function VE(n){for(let a=mr-1;a>=0;a--)if(P1(n,ur[a]))return oi[a]}function Hdt(n){return p1(zge(!1),i7(n))}function qdt(n,a){if(w_(n)&&a!==4){let c=J8e(n.parent,!a);if(c>=0)return hn[c]}return oye(n,0)}function wee(n,a){return N6e(a)!==0?Jdt(n,a):Ydt(n,a)}function Jdt(n,a){let c=Gye(n,mn);c=K8e(a,ZT(a),c);let d=jE(nf.IntrinsicAttributes,a);return qt(d)||(c=dz(d,c)),c}function Kdt(n,a){if(n.compositeSignatures){let d=[];for(let _ of n.compositeSignatures){let y=ms(_);if(Ct(y))return y;let x=Xe(y,a);if(!x)return;d.push(x)}return Ea(d)}let c=ms(n);return Ct(c)?c:Xe(c,a)}function Xdt(n){if(vx(n.tagName)){let c=r6e(n),d=Jee(n,c);return BT(d)}let a=ec(n.tagName);if(a.flags&128){let c=n6e(a,n);if(!c)return ht;let d=Jee(n,c);return BT(d)}return a}function K8e(n,a,c){let d=hpt(a);if(d){let _=Xdt(n),y=a6e(d,cr(n),_,c);if(y)return y}return c}function Ydt(n,a){let c=ZT(a),d=vpt(c),_=d===void 0?Gye(n,mn):d===""?ms(n):Kdt(n,d);if(!_)return d&&De(a.attributes.properties)&&qe(a,f.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,Hi(d)),mn;if(_=K8e(a,c,_),Ct(_))return _;{let y=_,x=jE(nf.IntrinsicClassAttributes,a);if(!qt(x)){let z=kr(x.symbol),U=ms(n),re;if(z){let be=wb([U],z,zh(z),cr(a));re=co(x,Mp(z,be))}else re=x;y=dz(re,y)}let L=jE(nf.IntrinsicAttributes,a);return qt(L)||(y=dz(L,y)),y}}function $dt(n){return ud(V,"noImplicitAny")?nd(n,(a,c)=>a===c||!a?a:Jwe(a.typeParameters,c.typeParameters)?ept(a,c):void 0):void 0}function Qdt(n,a,c){if(!n||!a)return n||a;let d=ii([pr(n),co(pr(a),c)]);return JT(n,d)}function Zdt(n,a,c){let d=Kp(n),_=Kp(a),y=d>=_?n:a,x=y===n?a:n,L=y===n?d:_,z=jh(n)||jh(a),U=z&&!jh(y),re=new Array(L+(U?1:0));for(let be=0;be=nh(y)&&be>=nh(x),un=be>=d?void 0:aM(n,be),sr=be>=_?void 0:aM(a,be),Ln=un===sr?un:un?sr?void 0:un:sr,cn=Xa(1|(sn&&!Rt?16777216:0),Ln||`arg${be}`);cn.links.type=Rt?Gu(vt):vt,re[be]=cn}if(U){let be=Xa(1,"args");be.links.type=Gu(v_(x,L)),x===a&&(be.links.type=co(be.links.type,c)),re[L]=be}return re}function ept(n,a){let c=n.typeParameters||a.typeParameters,d;n.typeParameters&&a.typeParameters&&(d=Mp(a.typeParameters,n.typeParameters));let _=n.declaration,y=Zdt(n,a,d),x=Qdt(n.thisParameter,a.thisParameter,d),L=Math.max(n.minArgumentCount,a.minArgumentCount),z=Tg(_,c,x,y,void 0,void 0,L,(n.flags|a.flags)&167);return z.compositeKind=2097152,z.compositeSignatures=xo(n.compositeKind===2097152&&n.compositeSignatures||[n],[a]),d&&(z.mapper=n.compositeKind===2097152&&n.mapper&&n.compositeSignatures?zE(n.mapper,d):d),z}function lye(n,a){let c=Yo(n,0),d=tr(c,_=>!tpt(_,a));return d.length===1?d[0]:$dt(d)}function tpt(n,a){let c=0;for(;cQP(ge)||Hd(ge)&&!ge.nameType&&!!N4(ge.target||ge)),be=!1;for(let ge=0;ge<_;ge++){let Je=d[ge];if(Je.kind===230){ue<2&&Rc(Je,V.downlevelIteration?1536:1024);let vt=go(Je.expression,a,c);if(gy(vt))y.push(vt),x.push(8);else if(L){let Rt=r1(vt,Dt)||lbe(65,vt,Oe,void 0,!1)||mn;y.push(Rt),x.push(4)}else y.push(yy(33,vt,Oe,Je.expression)),x.push(4)}else if(Ce&&Je.kind===232)be=!0,y.push(ae),x.push(2);else{let vt=cM(Je,a,c);if(y.push(lp(vt,!0,be)),x.push(be?2:1),re&&a&&a&2&&!(a&4)&&Gf(Je)){let Rt=VE(n);C.assert(Rt),Pve(Rt,Je,vt)}}}return j4(),L?Gh(y,x):Y8e(c||z||re?Gh(y,x,z&&!(U&&jm(U,Sve))):Gu(y.length?ii(Io(y,(ge,Je)=>x[Je]&8?Fb(ge,Dt)||j:ge),2):Y?Mi:Lt,z))}function Y8e(n){if(!(Wr(n)&4))return n;let a=n.literalType;return a||(a=n.literalType=vOe(n),a.objectFlags|=147456),a}function opt(n){switch(n.kind){case 167:return apt(n);case 80:return sg(n.escapedText);case 9:case 11:return sg(n.text);default:return!1}}function apt(n){return xu(Ig(n),296)}function Ig(n){let a=ti(n.expression);if(!a.resolvedType){if((yp(n.parent.parent)||pi(n.parent.parent)||fd(n.parent.parent))&&_r(n.expression)&&n.expression.operatorToken.kind===103&&n.parent.kind!==177&&n.parent.kind!==178)return a.resolvedType=ht;if(a.resolvedType=go(n.expression),Jo(n.parent)&&!fc(n.parent)&&Zc(n.parent.parent)){let c=_h(n.parent.parent),d=Qve(c);d&&(ti(d).flags|=4096,ti(n).flags|=32768,ti(n.parent.parent).flags|=32768)}(a.resolvedType.flags&98304||!xu(a.resolvedType,402665900)&&!Sa(a.resolvedType,Dn))&&qe(n,f.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return a.resolvedType}function spt(n){var a;let c=(a=n.declarations)==null?void 0:a[0];return sg(n.escapedName)||c&&od(c)&&opt(c.name)}function $8e(n){var a;let c=(a=n.declarations)==null?void 0:a[0];return ek(n)||c&&od(c)&&Za(c.name)&&xu(Ig(c.name),4096)}function uye(n,a,c,d){let _=[];for(let x=a;x0&&(L=OE(L,Fn(),n.symbol,Rt,re),x=[],y=ua(),un=!1,sr=!1,Ln=!1);let er=__(go(kn.expression,a&2));if(Kz(er)){let Mo=ive(er,re);if(_&&Z8e(Mo,_,kn),cn=x.length,qt(L))continue;L=OE(L,Mo,n.symbol,Rt,re)}else qe(kn,f.Spread_types_may_only_be_created_from_object_types),L=ht;continue}else C.assert(kn.kind===177||kn.kind===178),yx(kn);Hn&&!(Hn.flags&8576)?Sa(Hn,Dn)&&(Sa(Hn,Dt)?sr=!0:Sa(Hn,Di)?Ln=!0:un=!0,d&&(sn=!0)):y.set(Zn.escapedName,Zn),x.push(Zn)}if(j4(),U){let kn=zn(z.pattern.parent,Hn=>Hn.kind===260||Hn.kind===226||Hn.kind===169);if(zn(n,Hn=>Hn===kn||Hn.kind===305).kind!==305)for(let Hn of ys(z))!y.get(Hn.escapedName)&&!ba(L,Hn.escapedName)&&(Hn.flags&16777216||qe(Hn.valueDeclaration||((c=ai(Hn,fh))==null?void 0:c.links.bindingElement),f.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),y.set(Hn.escapedName,Hn),x.push(Hn))}if(qt(L))return ht;if(L!==Pa)return x.length>0&&(L=OE(L,Fn(),n.symbol,Rt,re),x=[],y=ua(),un=!1,sr=!1),ul(L,kn=>kn===Pa?Fn():kn);return Fn();function Fn(){let kn=[];un&&kn.push(uye(n,cn,x,ke)),sr&&kn.push(uye(n,cn,x,Dt)),Ln&&kn.push(uye(n,cn,x,Di));let Zn=Ls(n.symbol,y,et,et,kn);return Zn.objectFlags|=Rt|128|131072,vt&&(Zn.objectFlags|=4096),sn&&(Zn.objectFlags|=512),d&&(Zn.pattern=n),Zn}}function Kz(n){let a=q4e(ul(n,fv));return!!(a.flags&126615553||a.flags&3145728&&Jn(a.types,Kz))}function cpt(n){mye(n)}function upt(n,a){return yx(n),Yz(n)||j}function dpt(n){mye(n.openingElement),vx(n.closingElement.tagName)?Fee(n.closingElement):go(n.closingElement.tagName),Oee(n)}function ppt(n,a){return yx(n),Yz(n)||j}function fpt(n){mye(n.openingFragment);let a=Vn(n);return G3(V)&&(V.jsxFactory||a.pragmas.has("jsx"))&&!V.jsxFragmentFactory&&!a.pragmas.has("jsxfrag")&&qe(n,V.jsxFactory?f.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:f.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),Oee(n),Yz(n)||j}function pye(n){return n.includes("-")}function vx(n){return Ve(n)&&yR(n.escapedText)||e_(n)}function Q8e(n,a){return n.initializer?cM(n.initializer,a):On}function mpt(n,a=0){let c=n.attributes,d=Jd(c,0),_=Y?ua():void 0,y=ua(),x=fl,L=!1,z,U=!1,re=2048,be=Xz(ZT(n));for(let vt of c.properties){let Rt=vt.symbol;if(O_(vt)){let sn=Q8e(vt,a);re|=Wr(sn)&458752;let un=Xa(4|Rt.flags,Rt.escapedName);if(un.declarations=Rt.declarations,un.parent=Rt.parent,Rt.valueDeclaration&&(un.valueDeclaration=Rt.valueDeclaration),un.links.type=sn,un.links.target=Rt,y.set(un.escapedName,un),_?.set(un.escapedName,un),lN(vt.name)===be&&(U=!0),d){let sr=ba(d,Rt.escapedName);sr&&sr.declarations&&fb(sr)&&Ve(vt.name)&&sy(vt.name,sr.declarations,vt.name.escapedText)}if(d&&a&2&&!(a&4)&&Gf(vt)){let sr=VE(c);C.assert(sr);let Ln=vt.initializer.expression;Pve(sr,Ln,sn)}}else{C.assert(vt.kind===293),y.size>0&&(x=OE(x,Je(),c.symbol,re,!1),y=ua());let sn=__(go(vt.expression,a&2));Ct(sn)&&(L=!0),Kz(sn)?(x=OE(x,sn,c.symbol,re,!1),_&&Z8e(sn,_,vt)):(qe(vt.expression,f.Spread_types_may_only_be_created_from_object_types),z=z?Ea([z,sn]):sn)}}L||y.size>0&&(x=OE(x,Je(),c.symbol,re,!1));let ge=n.parent.kind===284?n.parent:void 0;if(ge&&ge.openingElement===n&&gR(ge.children).length>0){let vt=Oee(ge,a);if(!L&&be&&be!==""){U&&qe(c,f._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,Hi(be));let Rt=f1(n.attributes,void 0),sn=Rt&&p1(Rt,be),un=Xa(4,be);un.links.type=vt.length===1?vt[0]:sn&&jm(sn,QP)?Gh(vt):Gu(ii(vt)),un.valueDeclaration=k.createPropertySignature(void 0,Hi(be),void 0,void 0),qa(un.valueDeclaration,c),un.valueDeclaration.symbol=un;let sr=ua();sr.set(be,un),x=OE(x,Ls(c.symbol,sr,et,et,et),c.symbol,re,!1)}}if(L)return j;if(z&&x!==fl)return Ea([z,x]);return z||(x===fl?Je():x);function Je(){re|=Ee;let vt=Ls(c.symbol,y,et,et,et);return vt.objectFlags|=re|128|131072,vt}}function Oee(n,a){let c=[];for(let d of n.children)if(d.kind===12)d.containsOnlyTriviaWhiteSpaces||c.push(ke);else{if(d.kind===294&&!d.expression)continue;c.push(cM(d,a))}return c}function Z8e(n,a,c){for(let d of ys(n))if(!(d.flags&16777216)){let _=a.get(d.escapedName);if(_){let y=qe(_.valueDeclaration,f._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,Hi(_.escapedName));ka(y,Or(c,f.This_spread_always_overwrites_this_property))}}}function _pt(n,a){return mpt(n.parent,a)}function jE(n,a){let c=ZT(a),d=c&&Dp(c),_=d&&Ud(d,n,788968);return _?Qs(_):ht}function Fee(n){let a=ti(n);if(!a.resolvedSymbol){let c=jE(nf.IntrinsicElements,n);if(qt(c))return me&&qe(n,f.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,Hi(nf.IntrinsicElements)),a.resolvedSymbol=ft;{if(!Ve(n.tagName)&&!e_(n.tagName))return C.fail();let d=e_(n.tagName)?HA(n.tagName):n.tagName.escapedText,_=ba(c,d);if(_)return a.jsxFlags|=1,a.resolvedSymbol=_;let y=R7e(c,qd(Hi(d)));return y?(a.jsxFlags|=2,a.resolvedSymbol=y):It(c,d)?(a.jsxFlags|=2,a.resolvedSymbol=c.symbol):(qe(n,f.Property_0_does_not_exist_on_type_1,OU(n.tagName),"JSX."+nf.IntrinsicElements),a.resolvedSymbol=ft)}}return a.resolvedSymbol}function fye(n){let a=n&&Vn(n),c=a&&ti(a);if(c&&c.jsxImplicitImportContainer===!1)return;if(c&&c.jsxImplicitImportContainer)return c.jsxImplicitImportContainer;let d=j3(V3(V,a),V);if(!d)return;let y=dd(V)===1?f.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:f.Cannot_find_module_0_or_its_corresponding_type_declarations,x=V.importHelpers?1:0,L=a?.imports[x];L&&C.assert(Xs(L)&&L.text===d,`Expected sourceFile.imports[${x}] to be the synthesized JSX runtime import`);let z=J_(L||n,d,y,n),U=z&&z!==ft?is(Gl(z)):void 0;return c&&(c.jsxImplicitImportContainer=U||!1),U}function ZT(n){let a=n&&ti(n);if(a&&a.jsxNamespace)return a.jsxNamespace;if(!a||a.jsxNamespace!==!1){let d=fye(n);if(!d||d===ft){let _=z0(n);d=vl(n,_,1920,void 0,_,!1)}if(d){let _=Gl(Ud(Dp(Gl(d)),nf.JSX,1920));if(_&&_!==ft)return a&&(a.jsxNamespace=_),_}a&&(a.jsxNamespace=!1)}let c=Gl(JP(nf.JSX,1920,void 0));if(c!==ft)return c}function e6e(n,a){let c=a&&Ud(a.exports,n,788968),d=c&&Qs(c),_=d&&ys(d);if(_){if(_.length===0)return"";if(_.length===1)return _[0].escapedName;_.length>1&&c.declarations&&qe(c.declarations[0],f.The_global_type_JSX_0_may_not_have_more_than_one_property,Hi(n))}}function hpt(n){return n&&Ud(n.exports,nf.LibraryManagedAttributes,788968)}function gpt(n){return n&&Ud(n.exports,nf.ElementType,788968)}function vpt(n){return e6e(nf.ElementAttributesPropertyNameContainer,n)}function Xz(n){return e6e(nf.ElementChildrenAttributeNameContainer,n)}function t6e(n,a){if(n.flags&4)return[St];if(n.flags&128){let _=n6e(n,a);return _?[Jee(a,_)]:(qe(a,f.Property_0_does_not_exist_on_type_1,n.value,"JSX."+nf.IntrinsicElements),et)}let c=Md(n),d=Yo(c,1);return d.length===0&&(d=Yo(c,0)),d.length===0&&c.flags&1048576&&(d=uge(Ft(c.types,_=>t6e(_,a)))),d}function n6e(n,a){let c=jE(nf.IntrinsicElements,a);if(!qt(c)){let d=n.value,_=ba(c,ml(d));if(_)return pr(_);let y=r1(c,ke);return y||void 0}return j}function ypt(n,a,c){if(n===1){let _=o6e(c);_&&Vf(a,_,jd,c.tagName,f.Its_return_type_0_is_not_a_valid_JSX_element,d)}else if(n===0){let _=i6e(c);_&&Vf(a,_,jd,c.tagName,f.Its_instance_type_0_is_not_a_valid_JSX_element,d)}else{let _=o6e(c),y=i6e(c);if(!_||!y)return;let x=ii([_,y]);Vf(a,x,jd,c.tagName,f.Its_element_type_0_is_not_a_valid_JSX_element,d)}function d(){let _=pc(c.tagName);return Uo(void 0,f._0_cannot_be_used_as_a_JSX_component,_)}}function r6e(n){var a;C.assert(vx(n.tagName));let c=ti(n);if(!c.resolvedJsxElementAttributesType){let d=Fee(n);if(c.jsxFlags&1)return c.resolvedJsxElementAttributesType=pr(d)||ht;if(c.jsxFlags&2){let _=e_(n.tagName)?HA(n.tagName):n.tagName.escapedText;return c.resolvedJsxElementAttributesType=((a=px(jE(nf.IntrinsicElements,n),_))==null?void 0:a.type)||ht}else return c.resolvedJsxElementAttributesType=ht}return c.resolvedJsxElementAttributesType}function i6e(n){let a=jE(nf.ElementClass,n);if(!qt(a))return a}function Yz(n){return jE(nf.Element,n)}function o6e(n){let a=Yz(n);if(a)return ii([a,pe])}function bpt(n){let a=ZT(n);if(!a)return;let c=gpt(a);if(!c)return;let d=a6e(c,cr(n));if(!(!d||qt(d)))return d}function a6e(n,a,...c){let d=Qs(n);if(n.flags&524288){let _=$i(n).typeParameters;if(De(_)>=c.length){let y=wb(c,_,c.length,a);return De(y)===0?d:vD(n,y)}}if(De(d.typeParameters)>=c.length){let _=wb(c,d.typeParameters,c.length,a);return fy(d,_)}}function Ept(n){let a=jE(nf.IntrinsicElements,n);return a?ys(a):et}function Spt(n){(V.jsx||0)===0&&qe(n,f.Cannot_use_JSX_unless_the_jsx_flag_is_provided),Yz(n)===void 0&&me&&qe(n,f.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function mye(n){let a=sd(n);if(a&&_vt(n),Spt(n),!fye(n)){let c=ns&&V.jsx===2?f.Cannot_find_name_0:void 0,d=z0(n),_=a?n.tagName:n,y;if(dI(n)&&d==="null"||(y=vl(_,d,111551,c,d,!0)),y&&(y.isReferenced=-1,gt&&y.flags&2097152&&!wf(y)&&bb(y)),dI(n)){let x=Vn(n),L=YI(x);L&&vl(_,L,111551,c,L,!0)}}if(a){let c=n,d=DD(c);Xee(d,n);let _=bpt(c);if(_!==void 0){let y=c.tagName,x=vx(y)?qd(OU(y)):go(y);Vf(x,_,jd,y,f.Its_type_0_is_not_a_valid_JSX_element_type,()=>{let L=pc(y);return Uo(void 0,f._0_cannot_be_used_as_a_JSX_component,L)})}else ypt(N6e(c),ms(d),c)}}function _ye(n,a,c){if(n.flags&524288){if(n1(n,a)||px(n,a)||y4(a)&&Ag(n,ke)||c&&pye(a))return!0}else if(n.flags&3145728&&$z(n)){for(let d of n.types)if(_ye(d,a,c))return!0}return!1}function $z(n){return!!(n.flags&524288&&!(Wr(n)&512)||n.flags&67108864||n.flags&1048576&&Et(n.types,$z)||n.flags&2097152&&Jn(n.types,$z))}function Tpt(n,a){if(gvt(n),n.expression){let c=go(n.expression,a);return n.dotDotDotToken&&c!==j&&!jf(c)&&qe(n,f.JSX_spread_child_must_be_an_array_type),c}else return ht}function hye(n){return n.valueDeclaration?KE(n.valueDeclaration):0}function gye(n){if(n.flags&8192||Al(n)&4)return!0;if(cr(n.valueDeclaration)){let a=n.valueDeclaration.parent;return a&&_r(a)&&Wl(a)===3}}function vye(n,a,c,d,_,y=!0){let x=y?n.kind===166?n.right:n.kind===205?n:n.kind===208&&n.propertyName?n.propertyName:n.name:void 0;return s6e(n,a,c,d,_,x)}function s6e(n,a,c,d,_,y){var x;let L=If(_,c);if(a){if(ue<2&&l6e(_))return y&&qe(y,f.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(L&64)return y&&qe(y,f.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,Ai(_),jn(gx(_))),!1;if(!(L&256)&&((x=_.declarations)!=null&&x.some(Cre)))return y&&qe(y,f.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super,Ai(_)),!1}if(L&64&&l6e(_)&&(NL(n)||Rie(n)||om(n.parent)&&Z6(n.parent.parent))){let U=Bg(Cd(_));if(U&&mgt(n))return y&&qe(y,f.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,Ai(_),Zf(U.name)),!1}if(!(L&6))return!0;if(L&2){let U=Bg(Cd(_));return bbe(n,U)?!0:(y&&qe(y,f.Property_0_is_private_and_only_accessible_within_class_1,Ai(_),jn(gx(_))),!1)}if(a)return!0;let z=I7e(n,U=>{let re=Qs(Rr(U));return O4e(re,_,c)});return!z&&(z=Apt(n),z=z&&O4e(z,_,c),L&256||!z)?(y&&qe(y,f.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,Ai(_),jn(gx(_)||d)),!1):L&256?!0:(d.flags&262144&&(d=d.isThisType?Pd(d):Bu(d)),!d||!pD(d,z)?(y&&qe(y,f.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,Ai(_),jn(z),jn(d)),!1):!0)}function Apt(n){let a=Ipt(n),c=a?.type&&Ii(a.type);if(c&&c.flags&262144&&(c=Pd(c)),c&&Wr(c)&7)return dy(c)}function Ipt(n){let a=wd(n,!1,!1);return a&&ea(a)?k1(a):void 0}function l6e(n){return!!Mz(n,a=>!(a.flags&8192))}function xD(n){return Z_(go(n),n)}function Qz(n){return mm(n,50331648)}function yye(n){return Qz(n)?yv(n):n}function xpt(n,a){let c=zl(n)?fp(n):void 0;if(n.kind===106){qe(n,f.The_value_0_cannot_be_used_here,"null");return}if(c!==void 0&&c.length<100){if(Ve(n)&&c==="undefined"){qe(n,f.The_value_0_cannot_be_used_here,"undefined");return}qe(n,a&16777216?a&33554432?f._0_is_possibly_null_or_undefined:f._0_is_possibly_undefined:f._0_is_possibly_null,c)}else qe(n,a&16777216?a&33554432?f.Object_is_possibly_null_or_undefined:f.Object_is_possibly_undefined:f.Object_is_possibly_null)}function Rpt(n,a){qe(n,a&16777216?a&33554432?f.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:f.Cannot_invoke_an_object_which_is_possibly_undefined:f.Cannot_invoke_an_object_which_is_possibly_null)}function c6e(n,a,c){if(Y&&n.flags&2){if(zl(a)){let _=fp(a);if(_.length<100)return qe(a,f._0_is_of_type_unknown,_),ht}return qe(a,f.Object_is_of_type_unknown),ht}let d=tM(n,50331648);if(d&50331648){c(a,d);let _=yv(n);return _.flags&229376?ht:_}return n}function Z_(n,a){return c6e(n,a,xpt)}function u6e(n,a){let c=Z_(n,a);if(c.flags&16384){if(zl(a)){let d=fp(a);if(Ve(a)&&d==="undefined")return qe(a,f.The_value_0_cannot_be_used_here,d),c;if(d.length<100)return qe(a,f._0_is_possibly_undefined,d),c}qe(a,f.Object_is_possibly_undefined)}return c}function Wee(n,a,c){return n.flags&64?Dpt(n,a):Eye(n,n.expression,xD(n.expression),n.name,a,c)}function Dpt(n,a){let c=go(n.expression),d=O4(c,n.expression);return fee(Eye(n,n.expression,Z_(d,n.expression),n.name,a),n,d!==c)}function d6e(n,a){let c=r3(n)&&O1(n.left)?Z_(Hz(n.left),n.left):xD(n.left);return Eye(n,n.left,c,n.right,a)}function p6e(n){for(;n.parent.kind===217;)n=n.parent;return T_(n.parent)&&n.parent.expression===n}function zee(n,a){for(let c=$6(a);c;c=su(c)){let{symbol:d}=c,_=ZL(d,n),y=d.members&&d.members.get(_)||d.exports&&d.exports.get(_);if(y)return y}}function Cpt(n){if(!su(n))return bn(n,f.Private_identifiers_are_not_allowed_outside_class_bodies);if(!t5(n.parent)){if(!eg(n))return bn(n,f.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);let a=_r(n.parent)&&n.parent.operatorToken.kind===103;if(!Bee(n)&&!a)return bn(n,f.Cannot_find_name_0,Sr(n))}return!1}function Npt(n){Cpt(n);let a=Bee(n);return a&&eB(a,void 0,!1),j}function Bee(n){if(!eg(n))return;let a=ti(n);return a.resolvedSymbol===void 0&&(a.resolvedSymbol=zee(n.escapedText,n)),a.resolvedSymbol}function bye(n,a){return ba(n,a.escapedName)}function Ppt(n,a,c){let d,_=ys(n);_&&Ke(_,x=>{let L=x.valueDeclaration;if(L&&od(L)&&Xi(L.name)&&L.name.escapedText===a.escapedText)return d=x,!0});let y=Om(a);if(d){let x=C.checkDefined(d.valueDeclaration),L=C.checkDefined(su(x));if(c?.valueDeclaration){let z=c.valueDeclaration,U=su(z);if(C.assert(!!U),zn(U,re=>L===re)){let re=qe(a,f.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,y,jn(n));return ka(re,Or(z,f.The_shadowing_declaration_of_0_is_defined_here,y),Or(x,f.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,y)),!0}}return qe(a,f.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,y,Om(L.name||j5)),!0}return!1}function f6e(n,a){return(cD(a)||NL(n)&&WP(a))&&wd(n,!0,!1)===zP(a)}function Eye(n,a,c,d,_,y){let x=ti(a).resolvedSymbol,L=wA(n),z=Md(L!==0||p6e(n)?Jp(c):c),U=Ct(z)||z===Eo,re;if(Xi(d)){ue<99&&(L!==0&&Rc(n,1048576),L!==1&&Rc(n,524288));let ge=zee(d.escapedText,d);if(L&&ge&&ge.valueDeclaration&&jl(ge.valueDeclaration)&&bn(d,f.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,Sr(d)),U){if(ge)return qt(z)?ht:z;if($6(d)===void 0)return bn(d,f.Private_identifiers_are_not_allowed_outside_class_bodies),j}if(re=ge&&bye(c,ge),re===void 0){if(Ppt(c,d,ge))return ht;let Je=$6(d);Je&&yL(Vn(Je),V.checkJs)&&bn(d,f.Private_field_0_must_be_declared_in_an_enclosing_class,Sr(d))}else re.flags&65536&&!(re.flags&32768)&&L!==1&&qe(n,f.Private_accessor_was_defined_without_a_getter)}else{if(U)return Ve(a)&&x&&Nee(x,n),qt(z)?ht:z;re=ba(z,d.escapedText,Qee(z),n.kind===166)}Ve(a)&&x&&(im(V)||!(re&&(r8(re)||re.flags&8&&n.parent.kind===306))||V1(V)&&M8e(n))&&Nee(x,n);let be;if(re){let ge=gbe(re,d);if(fb(ge)&&Zge(n,ge)&&ge.declarations&&sy(d,ge.declarations,d.escapedText),Mpt(re,n,d),eB(re,n,b6e(a,x)),ti(n).resolvedSymbol=re,vye(n,a.kind===108,BA(n),z,re),c3e(n,re,L))return qe(d,f.Cannot_assign_to_0_because_it_is_a_read_only_property,Sr(d)),ht;be=f6e(n,re)?ot:y||L3(n)?ME(re):pr(re)}else{let ge=!Xi(d)&&(L===0||!jT(c)||aN(c))?px(z,d.escapedText):void 0;if(!(ge&&ge.type)){let Je=Sye(n,c.symbol,!0);return!Je&&R4(c)?j:c.symbol===at?(at.exports.has(d.escapedText)&&at.exports.get(d.escapedText).flags&418?qe(d,f.Property_0_does_not_exist_on_type_1,Hi(d.escapedText),jn(c)):me&&qe(d,f.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,jn(c)),j):(d.escapedText&&!hT(n)&&h6e(d,aN(c)?z:c,Je),ht)}ge.isReadonly&&(ng(n)||zj(n))&&qe(n,f.Index_signature_in_type_0_only_permits_reading,jn(z)),be=V.noUncheckedIndexedAccess&&!ng(n)?ii([ge.type,w]):ge.type,V.noPropertyAccessFromIndexSignature&&zr(n)&&qe(d,f.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,Hi(d.escapedText)),ge.declaration&&ay(ge.declaration)&&sy(d,[ge.declaration],d.escapedText)}return m6e(n,re,be,d,_)}function Sye(n,a,c){var d;let _=Vn(n);if(_&&V.checkJs===void 0&&_.checkJsDirective===void 0&&(_.scriptKind===1||_.scriptKind===2)){let y=Ke(a?.declarations,Vn),x=!a?.valueDeclaration||!pi(a.valueDeclaration)||((d=a.valueDeclaration.heritageClauses)==null?void 0:d.length)||Ov(!1,a.valueDeclaration);return!(_!==y&&y&&Nh(y))&&!(c&&a&&a.flags&32&&x)&&!(n&&c&&zr(n)&&n.expression.kind===110&&x)}return!1}function m6e(n,a,c,d,_){let y=wA(n);if(y===1)return Ub(c,!!(a&&a.flags&16777216));if(a&&!(a.flags&98311)&&!(a.flags&8192&&c.flags&1048576)&&!fte(a.declarations))return c;if(c===ot)return uD(n,a);c=$ve(c,n,_);let x=!1;if(Y&&Ne&&ks(n)&&n.expression.kind===110){let z=a&&a.valueDeclaration;if(z&&p7e(z)&&!sa(z)){let U=V4(n);U.kind===176&&U.parent===z.parent&&!(z.flags&33554432)&&(x=!0)}}else Y&&a&&a.valueDeclaration&&zr(a.valueDeclaration)&&BL(a.valueDeclaration)&&V4(n)===V4(a.valueDeclaration)&&(x=!0);let L=Hb(n,c,x?jb(c):c);return x&&!XP(c)&&XP(L)?(qe(d,f.Property_0_is_used_before_being_assigned,Ai(a)),c):y?vv(L):L}function Mpt(n,a,c){let{valueDeclaration:d}=n;if(!d||Vn(a).isDeclarationFile)return;let _,y=Sr(c);_6e(a)&&!bst(d)&&!(ks(a)&&ks(a.expression))&&!nv(d,c)&&!(jl(d)&&Ste(d)&256)&&(he||!Lpt(n))?_=qe(c,f.Property_0_is_used_before_its_initialization,y):d.kind===263&&a.parent.kind!==183&&!(d.flags&33554432)&&!nv(d,c)&&(_=qe(c,f.Class_0_used_before_its_declaration,y)),_&&ka(_,Or(d,f._0_is_declared_here,y))}function _6e(n){return!!zn(n,a=>{switch(a.kind){case 172:return!0;case 303:case 174:case 177:case 178:case 305:case 167:case 239:case 294:case 291:case 292:case 293:case 286:case 233:case 298:return!1;case 219:case 244:return Xo(a.parent)&&Il(a.parent.parent)?!0:"quit";default:return eg(a)?!1:"quit"}})}function Lpt(n){if(!(n.parent.flags&32))return!1;let a=pr(n.parent);for(;;){if(a=a.symbol&&kpt(a),!a)return!1;let c=ba(a,n.escapedName);if(c&&c.valueDeclaration)return!0}}function kpt(n){let a=Np(n);if(a.length!==0)return Ea(a)}function h6e(n,a,c){let d,_;if(!Xi(n)&&a.flags&1048576&&!(a.flags&402784252)){for(let x of a.types)if(!ba(x,n.escapedText)&&!px(x,n.escapedText)){d=Uo(d,f.Property_0_does_not_exist_on_type_1,Ds(n),jn(x));break}}if(g6e(n.escapedText,a)){let x=Ds(n),L=jn(a);d=Uo(d,f.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,x,L,L+"."+x)}else{let x=$4(a);if(x&&ba(x,n.escapedText))d=Uo(d,f.Property_0_does_not_exist_on_type_1,Ds(n),jn(a)),_=Or(n,f.Did_you_forget_to_use_await);else{let L=Ds(n),z=jn(a),U=Fpt(L,a);if(U!==void 0)d=Uo(d,f.Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later,L,z,U);else{let re=Tye(n,a);if(re!==void 0){let be=bl(re),ge=c?f.Property_0_may_not_exist_on_type_1_Did_you_mean_2:f.Property_0_does_not_exist_on_type_1_Did_you_mean_2;d=Uo(d,ge,L,z,be),_=re.valueDeclaration&&Or(re.valueDeclaration,f._0_is_declared_here,be)}else{let be=wpt(a)?f.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:f.Property_0_does_not_exist_on_type_1;d=Uo(bge(d,a),be,L,z)}}}}let y=Og(Vn(n),n,d);_&&ka(y,_),a_(!c||d.code!==f.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,y)}function wpt(n){return V.lib&&!V.lib.includes("dom")&&Jut(n,a=>a.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(Hi(a.symbol.escapedName)))&&gv(n)}function g6e(n,a){let c=a.symbol&&ba(pr(a.symbol),n);return c!==void 0&&!!c.valueDeclaration&&sa(c.valueDeclaration)}function Opt(n){let a=Om(n),d=s7().get(a);return d&&tG(d.keys())}function Fpt(n,a){let c=Md(a).symbol;if(!c)return;let d=bl(c),y=s7().get(d);if(y){for(let[x,L]of y)if(wr(L,n))return x}}function v6e(n,a){return Zz(n,ys(a),106500)}function Tye(n,a){let c=ys(a);if(typeof n!="string"){let d=n.parent;zr(d)&&(c=tr(c,_=>E6e(d,a,_))),n=Sr(n)}return Zz(n,c,111551)}function y6e(n,a){let c=wo(n)?n:Sr(n),d=ys(a);return(c==="for"?vn(d,y=>bl(y)==="htmlFor"):c==="class"?vn(d,y=>bl(y)==="className"):void 0)??Zz(c,d,111551)}function Aye(n,a){let c=Tye(n,a);return c&&bl(c)}function Iye(n,a,c){return C.assert(a!==void 0,"outername should always be defined"),Vp(n,a,c,void 0,a,!1,!1,!0,(_,y,x)=>{C.assertEqual(a,y,"name should equal outerName");let L=Ud(_,y,x);if(L)return L;let z;return _===Se?z=Vi(["string","number","boolean","object","bigint","symbol"],re=>_.has(re.charAt(0).toUpperCase()+re.slice(1))?Xa(524288,re):void 0).concat(Vo(_.values())):z=Vo(_.values()),Zz(Hi(y),z,x)})}function Wpt(n,a,c){let d=Iye(n,a,c);return d&&bl(d)}function Gee(n,a){return a.exports&&Zz(Sr(n),RT(a),2623475)}function zpt(n,a){let c=Gee(n,a);return c&&bl(c)}function Bpt(n,a,c){function d(x){let L=n1(n,x);if(L){let z=tA(pr(L));return!!z&&nh(z)>=1&&Sa(c,v_(z,0))}return!1}let _=ng(a)?"set":"get";if(!d(_))return;let y=lk(a.expression);return y===void 0?y=_:y+="."+_,y}function Gpt(n,a){let c=a.types.filter(d=>!!(d.flags&128));return QD(n.value,c,d=>d.value)}function Zz(n,a,c){return QD(n,a,d);function d(_){let y=bl(_);if(!uo(y,'"')){if(_.flags&c)return y;if(_.flags&2097152){let x=AT(_);if(x&&x.flags&c)return y}}}}function eB(n,a,c){let d=n&&n.flags&106500&&n.valueDeclaration;if(!d)return;let _=_p(d,2),y=n.valueDeclaration&&od(n.valueDeclaration)&&Xi(n.valueDeclaration.name);if(!(!_&&!y)&&!(a&&L3(a)&&!(n.flags&65536))){if(c){let x=zn(a,zs);if(x&&x.symbol===n)return}(Al(n)&1?$i(n).target:n).isReferenced=-1}}function b6e(n,a){return n.kind===110||!!a&&zl(n)&&a===Vm(Bp(n))}function Vpt(n,a){switch(n.kind){case 211:return xye(n,n.expression.kind===108,a,Jp(go(n.expression)));case 166:return xye(n,!1,a,Jp(go(n.left)));case 205:return xye(n,!1,a,Ii(n))}}function E6e(n,a,c){return Rye(n,n.kind===211&&n.expression.kind===108,!1,a,c)}function xye(n,a,c,d){if(Ct(d))return!0;let _=ba(d,c);return!!_&&Rye(n,a,!1,d,_)}function Rye(n,a,c,d,_){if(Ct(d))return!0;if(_.valueDeclaration&&ad(_.valueDeclaration)){let y=su(_.valueDeclaration);return!Hu(n)&&!!zn(n,x=>x===y)}return s6e(n,a,c,d,_)}function jpt(n){let a=n.initializer;if(a.kind===261){let c=a.declarations[0];if(c&&!ta(c.name))return Rr(c)}else if(a.kind===80)return Vm(a)}function Upt(n){return hd(n).length===1&&!!Ag(n,Dt)}function Hpt(n){let a=vs(n);if(a.kind===80){let c=Vm(a);if(c.flags&3){let d=n,_=n.parent;for(;_;){if(_.kind===249&&d===_.statement&&jpt(_)===c&&Upt(Ru(_.expression)))return!0;d=_,_=_.parent}}}return!1}function qpt(n,a){return n.flags&64?Jpt(n,a):S6e(n,xD(n.expression),a)}function Jpt(n,a){let c=go(n.expression),d=O4(c,n.expression);return fee(S6e(n,Z_(d,n.expression),a),n,d!==c)}function S6e(n,a,c){let d=wA(n)!==0||p6e(n)?Jp(a):a,_=n.argumentExpression,y=go(_);if(qt(d)||d===Eo)return d;if(Qee(d)&&!us(_))return qe(_,f.A_const_enum_member_can_only_be_accessed_using_a_string_literal),ht;let x=Hpt(_)?Dt:y,L=ng(n)?4|(jT(d)&&!aN(d)?2:0):32,z=Fb(d,x,L,n)||ht;return N3e(m6e(n,ti(n).resolvedSymbol,z,_,c),n)}function T6e(n){return T_(n)||q1(n)||sd(n)}function eA(n){return T6e(n)&&Ke(n.typeArguments,Da),n.kind===215?go(n.template):sd(n)?go(n.attributes):_r(n)?go(n.left):T_(n)&&Ke(n.arguments,a=>{go(a)}),St}function eh(n){return eA(n),pn}function Kpt(n,a,c){let d,_,y=0,x,L=-1,z;C.assert(!a.length);for(let U of n){let re=U.declaration&&Rr(U.declaration),be=U.declaration&&U.declaration.parent;!_||re===_?d&&be===d?x=x+1:(d=be,x=y):(x=y=a.length,d=be),_=re,Fq(U)?(L++,z=L,y++):z=x,a.splice(z,0,c?Vat(U,c):U)}}function Vee(n){return!!n&&(n.kind===230||n.kind===237&&n.isSpread)}function jee(n){return ri(n,Vee)}function A6e(n){return!!(n.flags&16384)}function Xpt(n){return!!(n.flags&49155)}function Uee(n,a,c,d=!1){let _,y=!1,x=Kp(c),L=nh(c);if(n.kind===215)if(_=a.length,n.template.kind===228){let z=Ya(n.template.templateSpans);y=Fl(z.literal)||!!z.literal.isUnterminated}else{let z=n.template;C.assert(z.kind===15),y=!!z.isUnterminated}else if(n.kind===170)_=M6e(n,c);else if(n.kind===226)_=1;else if(sd(n)){if(y=n.attributes.end===n.end,y)return!0;_=L===0?a.length:1,x=a.length===0?x:1,L=Math.min(L,1)}else if(n.arguments){_=d?a.length+1:a.length,y=n.arguments.end===n.end;let z=jee(a);if(z>=0)return z>=nh(c)&&(jh(c)||zx)return!1;if(y||_>=L)return!0;for(let z=_;z=d&&a.length<=c}function I6e(n,a){let c;return!!(n.target&&(c=UE(n.target,a))&&ED(c))}function tA(n){return H4(n,0,!1)}function x6e(n){return H4(n,0,!1)||H4(n,1,!1)}function H4(n,a,c){if(n.flags&524288){let d=m_(n);if(c||d.properties.length===0&&d.indexInfos.length===0){if(a===0&&d.callSignatures.length===1&&d.constructSignatures.length===0)return d.callSignatures[0];if(a===1&&d.constructSignatures.length===1&&d.callSignatures.length===0)return d.constructSignatures[0]}}}function R6e(n,a,c,d){let _=z4(n.typeParameters,n,0,d),y=q4(a),x=c&&(y&&y.flags&262144?c.nonFixingMapper:c.mapper),L=x?TD(a,x):a;return Dve(L,n,(z,U)=>{bv(_.inferences,z,U)}),c||Cve(a,n,(z,U)=>{bv(_.inferences,z,U,128)}),T4(n,Gve(_),cr(a.declaration))}function Ypt(n,a,c,d){let _=wee(a,n),y=CD(n.attributes,_,d,c);return bv(d.inferences,y,_),Gve(d)}function D6e(n){if(!n)return or;let a=go(n);return loe(n)?a:dC(n.parent)?yv(a):Hu(n.parent)?pee(a):a}function Cye(n,a,c,d,_){if(sd(n))return Ypt(n,a,d,_);if(n.kind!==170&&n.kind!==226){let z=Jn(a.typeParameters,re=>!!zT(re)),U=Jd(n,z?8:0);if(U){let re=ms(a);if(u1(re)){let be=VE(n);if(!(!z&&Jd(n,8)!==U)){let Rt=Lve(cut(be,1)),sn=co(U,Rt),un=tA(sn),sr=un&&un.typeParameters?BT(Rge(un,un.typeParameters)):sn;bv(_.inferences,sr,re,128)}let Je=z4(a.typeParameters,a,_.flags),vt=co(U,be&&be.returnMapper);bv(Je.inferences,vt,re),_.returnMapper=Et(Je.inferences,ND)?Lve(fut(Je)):void 0}}}let y=J4(a),x=y?Math.min(Kp(a)-1,c.length):c.length;if(y&&y.flags&262144){let z=vn(_.inferences,U=>U.typeParameter===y);z&&(z.impliedArity=ri(c,Vee,x)<0?c.length-x:void 0)}let L=i1(a);if(L&&u1(L)){let z=P6e(n);bv(_.inferences,D6e(z),L)}for(let z=0;z=c-1){let re=n[c-1];if(Vee(re)){let be=re.kind===237?re.type:CD(re.expression,d,_,y);return gy(be)?C6e(be):Gu(yy(33,be,Oe,re.kind===230?re.expression:re),x)}}let L=[],z=[],U=[];for(let re=a;reUo(void 0,f.Type_0_does_not_satisfy_the_constraint_1):void 0,be=d||f.Type_0_does_not_satisfy_the_constraint_1;L||(L=Mp(y,x));let ge=x[z];if(!td(ge,qp(co(U,L),ge),c?a[z]:void 0,be,re))return}}return x}function N6e(n){if(vx(n.tagName))return 2;let a=Md(go(n.tagName));return De(Yo(a,1))?0:De(Yo(a,0))?1:2}function $pt(n,a,c,d,_,y,x){let L=wee(a,n),z=CD(n.attributes,L,void 0,d),U=d&4?W4(z):z;return re()&&fve(U,L,c,_?n.tagName:void 0,n.attributes,void 0,y,x);function re(){var be;if(fye(n))return!0;let ge=(w_(n)||zS(n))&&!(vx(n.tagName)||e_(n.tagName))?go(n.tagName):void 0;if(!ge)return!0;let Je=Yo(ge,0);if(!De(Je))return!0;let vt=F7e(n);if(!vt)return!0;let Rt=Us(vt,111551,!0,!1,n);if(!Rt)return!0;let sn=pr(Rt),un=Yo(sn,0);if(!De(un))return!0;let sr=!1,Ln=0;for(let Fn of un){let kn=v_(Fn,0),Zn=Yo(kn,0);if(De(Zn))for(let Hn of Zn){if(sr=!0,jh(Hn))return!0;let er=Kp(Hn);er>Ln&&(Ln=er)}}if(!sr)return!0;let cn=1/0;for(let Fn of Je){let kn=nh(Fn);kn{_.push(y.expression)}),_}if(n.kind===170)return Qpt(n);if(n.kind===226)return[n.left];if(sd(n))return n.attributes.properties.length>0||w_(n)&&n.parent.children.length>0?[n.attributes]:et;let a=n.arguments||et,c=jee(a);if(c>=0){let d=a.slice(0,c);for(let _=c;_{var U;let re=x.target.elementFlags[z],be=nB(y,re&4?Gu(L):L,!!(re&12),(U=x.target.labeledElementDeclarations)==null?void 0:U[z]);d.push(be)}):d.push(y)}return d}return a}function Qpt(n){let a=n.expression,c=jye(n);if(c){let d=[];for(let _ of c.parameters){let y=pr(_);d.push(nB(a,y))}return d}return C.fail()}function M6e(n,a){return V.experimentalDecorators?Zpt(n,a):2}function Zpt(n,a){switch(n.parent.kind){case 263:case 231:return 1;case 172:return C_(n.parent)?3:2;case 174:case 177:case 178:return ue===0||a.parameters.length<=2?2:3;case 169:return 3;default:return C.fail()}}function L6e(n){let a=Vn(n),{start:c,length:d}=hS(a,zr(n.expression)?n.expression.name:n.expression);return{start:c,length:d,sourceFile:a}}function rB(n,a,...c){if(la(n)){let{sourceFile:d,start:_,length:y}=L6e(n);return"message"in a?Qc(d,_,y,a,...c):Ej(d,a)}else return"message"in a?Or(n,a,...c):Og(Vn(n),n,a)}function eft(n){return T_(n)?zr(n.expression)?n.expression.name:n.expression:q1(n)?zr(n.tag)?n.tag.name:n.tag:sd(n)?n.tagName:n}function tft(n){if(!la(n)||!Ve(n.expression))return!1;let a=vl(n.expression,n.expression.escapedText,111551,void 0,void 0,!1),c=a?.valueDeclaration;if(!c||!Co(c)||!B1(c.parent)||!H1(c.parent.parent)||!Ve(c.parent.parent.expression))return!1;let d=Bge(!1);return d?Um(c.parent.parent.expression,!0)===d:!1}function k6e(n,a,c,d){var _;let y=jee(c);if(y>-1)return Or(c[y],f.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let x=Number.POSITIVE_INFINITY,L=Number.NEGATIVE_INFINITY,z=Number.NEGATIVE_INFINITY,U=Number.POSITIVE_INFINITY,re;for(let Rt of a){let sn=nh(Rt),un=Kp(Rt);snz&&(z=sn),c.length_?x=Math.min(x,z):U<_&&(y=Math.max(y,U))}if(y!==-1/0&&x!==1/0){if(d){let L=Uo(void 0,f.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,_,y,x);return L=Uo(L,d),AL(Vn(n),c,L)}return eR(Vn(n),c,f.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,_,y,x)}if(d){let L=Uo(void 0,f.Expected_0_type_arguments_but_got_1,y===-1/0?x:y,_);return L=Uo(L,d),AL(Vn(n),c,L)}return eR(Vn(n),c,f.Expected_0_type_arguments_but_got_1,y===-1/0?x:y,_)}function RD(n,a,c,d,_,y){let x=n.kind===215,L=n.kind===170,z=sd(n),U=n.kind===226,re=!H&&!c,be;!L&&!U&&!gS(n)&&(be=n.typeArguments,(x||z||n.expression.kind!==108)&&Ke(be,Da));let ge=c||[];Kpt(a,ge,_),C.assert(ge.length,"Revert #54442 and add a testcase with whatever triggered this");let Je=qee(n),vt=ge.length===1&&!ge[0].typeParameters,Rt=!L&&!vt&&Et(Je,Gf)?4:0,sn,un,sr,Ln,cn=!!(d&16)&&n.kind===213&&n.arguments.hasTrailingComma;if(ge.length>1&&(Ln=kn(ge,Ch,vt,cn)),Ln||(Ln=kn(ge,jd,vt,cn)),Ln)return Ln;if(Ln=rft(n,ge,Je,!!c,d),ti(n).resolvedSignature=Ln,re)if(!y&&U&&(y=f.The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method),sn)if(sn.length===1||sn.length>3){let Zn=sn[sn.length-1],Hn;sn.length>3&&(Hn=Uo(Hn,f.The_last_overload_gave_the_following_error),Hn=Uo(Hn,f.No_overload_matches_this_call)),y&&(Hn=Uo(Hn,y));let er=tB(n,Je,Zn,jd,0,!0,()=>Hn);if(er)for(let Mo of er)Zn.declaration&&sn.length>3&&ka(Mo,Or(Zn.declaration,f.The_last_overload_is_declared_here)),Fn(Zn,Mo),ns.add(Mo);else C.fail("No error for last overload signature")}else{let Zn=[],Hn=0,er=Number.MAX_VALUE,Mo=0,Ao=0;for(let up of sn){let Qn=tB(n,Je,up,jd,0,!0,()=>Uo(void 0,f.Overload_0_of_1_2_gave_the_following_error,Ao+1,ge.length,kh(up)));Qn?(Qn.length<=er&&(er=Qn.length,Mo=Ao),Hn=Math.max(Hn,Qn.length),Zn.push(Qn)):C.fail("No error for 3 or fewer overload signatures"),Ao++}let jo=Hn>1?Zn[Mo]:ts(Zn);C.assert(jo.length>0,"No errors reported for 3 or fewer overload signatures");let vo=Uo(Ft(jo,pie),f.No_overload_matches_this_call);y&&(vo=Uo(vo,y));let Dc=[...Zi(jo,up=>up.relatedInformation)],Uf;if(Jn(jo,up=>up.start===jo[0].start&&up.length===jo[0].length&&up.file===jo[0].file)){let{file:up,start:Mn,length:Qn}=jo[0];Uf={file:up,start:Mn,length:Qn,code:vo.code,category:vo.category,messageText:vo,relatedInformation:Dc}}else Uf=Og(Vn(n),eft(n),vo,Dc);Fn(sn[0],Uf),ns.add(Uf)}else if(un)ns.add(k6e(n,[un],Je,y));else if(sr)Pye(sr,n.typeArguments,!0,y);else{let Zn=tr(a,Hn=>Dye(Hn,be));Zn.length===0?ns.add(nft(n,a,be,y)):ns.add(k6e(n,Zn,Je,y))}return Ln;function Fn(Zn,Hn){var er,Mo;let Ao=sn,jo=un,vo=sr,Dc=((Mo=(er=Zn.declaration)==null?void 0:er.symbol)==null?void 0:Mo.declarations)||et,up=Dc.length>1?vn(Dc,Mn=>zs(Mn)&&Xf(Mn.body)):void 0;if(up){let Mn=pm(up),Qn=!Mn.typeParameters;kn([Mn],jd,Qn)&&ka(Hn,Or(up,f.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}sn=Ao,un=jo,sr=vo}function kn(Zn,Hn,er,Mo=!1){if(sn=void 0,un=void 0,sr=void 0,er){let Ao=Zn[0];if(Et(be)||!Uee(n,Je,Ao,Mo))return;if(tB(n,Je,Ao,Hn,0,!1,void 0)){sn=[Ao];return}return Ao}for(let Ao=0;Ao0),yx(n),d||a.length===1||a.some(y=>!!y.typeParameters)?aft(n,a,c,_):ift(a)}function ift(n){let a=Vi(n,z=>z.thisParameter),c;a.length&&(c=w6e(a,a.map(aB)));let{min:d,max:_}=Boe(n,oft),y=[];for(let z=0;z<_;z++){let U=Vi(n,re=>Xu(re)?zUE(re,z))))}let x=Vi(n,z=>Xu(z)?Ya(z.parameters):void 0),L=128;if(x.length!==0){let z=Gu(ii(Vi(n,mOe),2));y.push(O6e(x,z)),L|=1}return n.some(Fq)&&(L|=2),Tg(n[0].declaration,void 0,c,y,Ea(n.map(ms)),void 0,d,L)}function oft(n){let a=n.parameters.length;return Xu(n)?a-1:a}function w6e(n,a){return O6e(n,ii(a,2))}function O6e(n,a){return JT(Ha(n),a)}function aft(n,a,c,d){let _=cft(a,nn===void 0?c.length:nn),y=a[_],{typeParameters:x}=y;if(!x)return y;let L=T6e(n)?n.typeArguments:void 0,z=L?OZ(y,sft(L,x,cr(n))):lft(n,x,y,c,d);return a[_]=z,z}function sft(n,a,c){let d=n.map(bx);for(;d.length>a.length;)d.pop();for(;d.length=a)return _;x>d&&(d=x,c=_)}return c}function uft(n,a,c){if(n.expression.kind===108){let z=nye(n.expression);if(Ct(z)){for(let U of n.arguments)go(U);return St}if(!qt(z)){let U=x_(su(n));if(U){let re=Fh(z,U.typeArguments,U);return RD(n,re,a,c,0)}}return eA(n)}let d,_=go(n.expression);if(lS(n)){let z=O4(_,n.expression);d=z===_?0:pC(n)?16:8,_=z}else d=0;if(_=c6e(_,n.expression,Rpt),_===Eo)return gr;let y=Md(_);if(qt(y))return eh(n);let x=Yo(y,0),L=Yo(y,1).length;if(iB(_,y,x.length,L))return!qt(_)&&n.typeArguments&&qe(n,f.Untyped_function_calls_may_not_accept_type_arguments),eA(n);if(!x.length){if(L)qe(n,f.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,jn(_));else{let z;if(n.arguments.length===1){let U=Vn(n).text;Uu(U.charCodeAt(La(U,n.expression.end,!0)-1))&&(z=Or(n.expression,f.Are_you_missing_a_semicolon))}Lye(n.expression,y,0,z)}return eh(n)}return c&8&&!n.typeArguments&&x.some(dft)?(y3e(n,c),Tr):x.some(z=>cr(z.declaration)&&!!OV(z.declaration))?(qe(n,f.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,jn(_)),eh(n)):RD(n,x,a,c,d)}function dft(n){return!!(n.typeParameters&&Tbe(ms(n)))}function iB(n,a,c,d){return Ct(n)||Ct(a)&&!!(n.flags&262144)||!c&&!d&&!(a.flags&1048576)&&!(__(a).flags&131072)&&Sa(n,wt)}function pft(n,a,c){if(n.arguments&&ue<1){let x=jee(n.arguments);x>=0&&qe(n.arguments[x],f.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}let d=xD(n.expression);if(d===Eo)return gr;if(d=Md(d),qt(d))return eh(n);if(Ct(d))return n.typeArguments&&qe(n,f.Untyped_function_calls_may_not_accept_type_arguments),eA(n);let _=Yo(d,1);if(_.length){if(!fft(n,_[0]))return eh(n);if(F6e(_,L=>!!(L.flags&4)))return qe(n,f.Cannot_create_an_instance_of_an_abstract_class),eh(n);let x=d.symbol&&Bg(d.symbol);return x&&ei(x,64)?(qe(n,f.Cannot_create_an_instance_of_an_abstract_class),eh(n)):RD(n,_,a,c,0)}let y=Yo(d,0);if(y.length){let x=RD(n,y,a,c,0);return me||(x.declaration&&!th(x.declaration)&&ms(x)!==or&&qe(n,f.Only_a_void_function_can_be_called_with_the_new_keyword),i1(x)===or&&qe(n,f.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),x}return Lye(n.expression,d,1),eh(n)}function F6e(n,a){return Do(n)?Et(n,c=>F6e(c,a)):n.compositeKind===1048576?Et(n.compositeSignatures,a):a(n)}function Mye(n,a){let c=Np(a);if(!De(c))return!1;let d=c[0];if(d.flags&2097152){let _=d.types,y=Xwe(_),x=0;for(let L of d.types){if(!y[x]&&Wr(L)&3&&(L.symbol===n||Mye(n,L)))return!0;x++}return!1}return d.symbol===n?!0:Mye(n,d)}function fft(n,a){if(!a||!a.declaration)return!0;let c=a.declaration,d=WA(c,6);if(!d||c.kind!==176)return!0;let _=Bg(c.parent.symbol),y=Qs(c.parent.symbol);if(!bbe(n,_)){let x=su(n);if(x&&d&4){let L=bx(x);if(Mye(c.parent.symbol,L))return!0}return d&2&&qe(n,f.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,jn(y)),d&4&&qe(n,f.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,jn(y)),!1}return!0}function W6e(n,a,c){let d,_=c===0,y=rA(a),x=y&&Yo(y,c).length>0;if(a.flags&1048576){let z=a.types,U=!1;for(let re of z)if(Yo(re,c).length!==0){if(U=!0,d)break}else if(d||(d=Uo(d,_?f.Type_0_has_no_call_signatures:f.Type_0_has_no_construct_signatures,jn(re)),d=Uo(d,_?f.Not_all_constituents_of_type_0_are_callable:f.Not_all_constituents_of_type_0_are_constructable,jn(a))),U)break;U||(d=Uo(void 0,_?f.No_constituent_of_type_0_is_callable:f.No_constituent_of_type_0_is_constructable,jn(a))),d||(d=Uo(d,_?f.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:f.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,jn(a)))}else d=Uo(d,_?f.Type_0_has_no_call_signatures:f.Type_0_has_no_construct_signatures,jn(a));let L=_?f.This_expression_is_not_callable:f.This_expression_is_not_constructable;if(la(n.parent)&&n.parent.arguments.length===0){let{resolvedSymbol:z}=ti(n);z&&z.flags&32768&&(L=f.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:Uo(d,L),relatedMessage:x?f.Did_you_forget_to_use_await:void 0}}function Lye(n,a,c,d){let{messageChain:_,relatedMessage:y}=W6e(n,a,c),x=Og(Vn(n),n,_);if(y&&ka(x,Or(n,y)),la(n.parent)){let{start:L,length:z}=L6e(n.parent);x.start=L,x.length=z}ns.add(x),z6e(a,c,d?ka(x,d):x)}function z6e(n,a,c){if(!n.symbol)return;let d=$i(n.symbol).originatingImport;if(d&&!Wp(d)){let _=Yo(pr($i(n.symbol).target),a);if(!_||!_.length)return;ka(c,Or(d,f.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead))}}function mft(n,a,c){let d=go(n.tag),_=Md(d);if(qt(_))return eh(n);let y=Yo(_,0),x=Yo(_,1).length;if(iB(d,_,y.length,x))return eA(n);if(!y.length){if(pd(n.parent)){let L=Or(n.tag,f.It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked);return ns.add(L),eh(n)}return Lye(n.tag,_,0),eh(n)}return RD(n,y,a,c,0)}function _ft(n){switch(n.parent.kind){case 263:case 231:return f.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 169:return f.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 172:return f.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 174:case 177:case 178:return f.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return C.fail()}}function hft(n,a,c){let d=go(n.expression),_=Md(d);if(qt(_))return eh(n);let y=Yo(_,0),x=Yo(_,1).length;if(iB(d,_,y.length,x))return eA(n);if(yft(n,y)&&!Wd(n.expression)){let z=pc(n.expression,!1);return qe(n,f._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,z),eh(n)}let L=_ft(n);if(!y.length){let z=W6e(n.expression,_,0),U=Uo(z.messageChain,L),re=Og(Vn(n.expression),n.expression,U);return z.relatedMessage&&ka(re,Or(n.expression,z.relatedMessage)),ns.add(re),z6e(_,0,re),eh(n)}return RD(n,y,a,c,0,L)}function Jee(n,a){let c=ZT(n),d=c&&Dp(c),_=d&&Ud(d,nf.Element,788968),y=_&&At.symbolToEntityName(_,788968,n),x=k.createFunctionTypeNode(void 0,[k.createParameterDeclaration(void 0,void 0,"props",void 0,At.typeToTypeNode(a,n))],y?k.createTypeReferenceNode(y,void 0):k.createKeywordTypeNode(133)),L=Xa(1,"props");return L.links.type=a,Tg(x,void 0,void 0,[L],_?Qs(_):ht,void 0,1,0)}function gft(n,a,c){if(vx(n.tagName)){let x=r6e(n),L=Jee(n,x);return Gb(CD(n.attributes,wee(L,n),void 0,0),x,n.tagName,n.attributes),De(n.typeArguments)&&(Ke(n.typeArguments,Da),ns.add(eR(Vn(n),n.typeArguments,f.Expected_0_type_arguments_but_got_1,0,De(n.typeArguments)))),L}let d=go(n.tagName),_=Md(d);if(qt(_))return eh(n);let y=t6e(d,n);return iB(d,_,y.length,0)?eA(n):y.length===0?(qe(n.tagName,f.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,pc(n.tagName)),eh(n)):RD(n,y,a,c,0)}function vft(n,a,c){let d=go(n.right);if(!Ct(d)){let _=Jye(d);if(_){let y=Md(_);if(qt(y))return eh(n);let x=Yo(y,0),L=Yo(y,1);if(iB(_,y,x.length,L.length))return eA(n);if(x.length)return RD(n,x,a,c,0)}else if(!(hte(d)||Bb(d,wt)))return qe(n.right,f.The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method),eh(n)}return St}function yft(n,a){return a.length&&Jn(a,c=>c.minArgumentCount===0&&!Xu(c)&&c.parameters.length1?ec(n.arguments[1]):void 0;for(let y=2;y{let x=Jp(_);tee(y,x)||D4e(_,y,c,f.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first)})}function Dft(n){let a=go(n.expression),c=O4(a,n.expression);return fee(yv(c),n,c!==a)}function Cft(n){return n.flags&64?Dft(n):yv(go(n.expression))}function q6e(n){if(B7e(n),Ke(n.typeArguments,Da),n.kind===233){let c=Fv(n.parent);c.kind===226&&c.operatorToken.kind===104&&P1(n,c.right)&&qe(n,f.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression)}let a=n.kind===233?go(n.expression):O1(n.exprName)?Hz(n.exprName):go(n.exprName);return J6e(a,n)}function J6e(n,a){let c=a.typeArguments;if(n===Eo||qt(n)||!Et(c))return n;let d=!1,_,y=L(n),x=d?_:n;return x&&ns.add(eR(Vn(a),c,f.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,jn(x))),y;function L(U){let re=!1,be=!1,ge=Je(U);return d||(d=be),re&&!be&&(_??(_=U)),ge;function Je(vt){if(vt.flags&524288){let Rt=m_(vt),sn=z(Rt.callSignatures),un=z(Rt.constructSignatures);if(re||(re=Rt.callSignatures.length!==0||Rt.constructSignatures.length!==0),be||(be=sn.length!==0||un.length!==0),sn!==Rt.callSignatures||un!==Rt.constructSignatures){let sr=Ls(Xa(0,"__instantiationExpression"),Rt.members,sn,un,Rt.indexInfos);return sr.objectFlags|=8388608,sr.node=a,sr}}else if(vt.flags&58982400){let Rt=Bu(vt);if(Rt){let sn=Je(Rt);if(sn!==Rt)return sn}}else{if(vt.flags&1048576)return ul(vt,L);if(vt.flags&2097152)return Ea(Io(vt.types,Je))}return vt}}function z(U){let re=tr(U,be=>!!be.typeParameters&&Dye(be,c));return Io(re,be=>{let ge=Pye(be,c,!0);return ge?T4(be,ge,cr(be.declaration)):be})}}function Nft(n){return Da(n.type),Fye(n.expression,n.type)}function Fye(n,a,c){let d=go(n,c),_=Ii(a);if(qt(_))return _;let y=zn(a.parent,x=>x.kind===238||x.kind===357);return Gb(d,_,y,n,f.Type_0_does_not_satisfy_the_expected_type_1),d}function Pft(n){return Rvt(n),n.keywordToken===105?Wye(n):n.keywordToken===102?Mft(n):C.assertNever(n.keywordToken)}function K6e(n){switch(n.keywordToken){case 102:return COe();case 105:let a=Wye(n);return qt(a)?ht:Xft(a);default:C.assertNever(n.keywordToken)}}function Wye(n){let a=xie(n);if(a)if(a.kind===176){let c=Rr(a.parent);return pr(c)}else{let c=Rr(a);return pr(c)}else return qe(n,f.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),ht}function Mft(n){G===100||G===199?Vn(n).impliedNodeFormat!==99&&qe(n,f.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):G<6&&G!==4&&qe(n,f.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext);let a=Vn(n);return C.assert(!!(a.flags&8388608),"Containing file is missing import meta node flag."),n.name.escapedText==="meta"?DOe():ht}function aB(n){let a=n.valueDeclaration;return lp(pr(n),!1,!!a&&(Oy(a)||sN(a)))}function zye(n,a,c="arg"){return n?(C.assert(Ve(n.name)),n.name.escapedText):`${c}_${a}`}function aM(n,a,c){let d=n.parameters.length-(Xu(n)?1:0);if(a=d-1)return a===d-1?y:Gu(Pp(y,Dt));let x=[],L=[],z=[];for(let U=a;U!(z&1)),L=x<0?y.target.fixedLength:x;L>0&&(_=n.parameters.length-1+L)}}if(_===void 0){if(!c&&n.flags&32)return 0;_=n.minArgumentCount}if(d)return _;for(let y=_-1;y>=0;y--){let x=v_(n,y);if(uc(x,A6e).flags&131072)break;_=y}n.resolvedMinArgumentCount=_}return n.resolvedMinArgumentCount}function jh(n){if(Xu(n)){let a=pr(n.parameters[n.parameters.length-1]);return!Wa(a)||a.target.hasRestElement}return!1}function q4(n){if(Xu(n)){let a=pr(n.parameters[n.parameters.length-1]);if(!Wa(a))return Ct(a)?Ql:a;if(a.target.hasRestElement)return KP(a,a.target.fixedLength)}}function J4(n){let a=q4(n);return a&&!jf(a)&&!Ct(a)?a:void 0}function Bye(n){return Gye(n,Vr)}function Gye(n,a){return n.parameters.length>0?v_(n,0):a}function Q6e(n,a,c){let d=n.parameters.length-(Xu(n)?1:0);for(let _=0;_=0);let y=Pl(d.parent)?pr(Rr(d.parent.parent)):C7e(d.parent),x=Pl(d.parent)?Oe:N7e(d.parent),L=h_(_),z=s_("target",y),U=s_("propertyKey",x),re=s_("parameterIndex",L);c.decoratorSignature=Z4(void 0,void 0,[z,U,re],or);break}case 174:case 177:case 178:case 172:{let d=a;if(!pi(d.parent))break;let _=C7e(d),y=s_("target",_),x=N7e(d),L=s_("propertyKey",x),z=Jo(d)?or:OOe(bx(d));if(ue!==0&&(!Jo(a)||C_(a))){let re=OOe(bx(d)),be=s_("descriptor",re);c.decoratorSignature=Z4(void 0,void 0,[y,L,be],ii([z,or]))}else c.decoratorSignature=Z4(void 0,void 0,[y,L],ii([z,or]));break}}return c.decoratorSignature===St?void 0:c.decoratorSignature}function jye(n){return ne?Kft(n):Jft(n)}function cB(n){let a=yz(!0);return a!==Wo?(n=vy(dM(n))||mn,fy(a,[n])):mn}function t3e(n){let a=LOe(!0);return a!==Wo?(n=vy(dM(n))||mn,fy(a,[n])):mn}function uB(n,a){let c=cB(a);return c===mn?(qe(n,Wp(n)?f.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:f.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),ht):(Bge(!0)||qe(n,Wp(n)?f.A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:f.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),c)}function Xft(n){let a=Xa(0,"NewTargetExpression"),c=Xa(4,"target",8);c.parent=a,c.links.type=n;let d=ua([c]);return a.members=d,Ls(a,d,et,et,et)}function Yee(n,a){if(!n.body)return ht;let c=Gc(n),d=(c&2)!==0,_=(c&1)!==0,y,x,L,z=or;if(n.body.kind!==241)y=ec(n.body,a&&a&-9),d&&(y=dM(Q4(y,!1,n,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(_){let U=s3e(n,a);U?U.length>0&&(y=ii(U,2)):z=Vr;let{yieldTypes:re,nextTypes:be}=Yft(n,a);x=Et(re)?ii(re,2):void 0,L=Et(be)?Ea(be):void 0}else{let U=s3e(n,a);if(!U)return c&2?uB(n,Vr):Vr;if(U.length===0){let re=Pee(n,void 0),be=re&&(EB(re,c)||or).flags&32768?Oe:or;return c&2?uB(n,be):be}y=ii(U,2)}if(y||x||L){if(x&&gee(n,x,3),y&&gee(n,y,1),L&&gee(n,L,2),y&&g_(y)||x&&g_(x)||L&&g_(L)){let U=cye(n),re=U?U===pm(n)?_?void 0:y:Lee(ms(U),n,void 0):void 0;_?(x=xve(x,re,0,d),y=xve(y,re,1,d),L=xve(L,re,2,d)):y=$ct(y,re,d)}x&&(x=Jp(x)),y&&(y=Jp(y)),L&&(L=Jp(L))}return _?n3e(x||Vr,y||z,L||G8e(2,n)||mn,d):d?cB(y||z):y||z}function n3e(n,a,c,d){let _=d?js:gc,y=_.getGlobalGeneratorType(!1);if(n=_.resolveIterationType(n,void 0)||mn,a=_.resolveIterationType(a,void 0)||mn,c=_.resolveIterationType(c,void 0)||mn,y===Wo){let x=_.getGlobalIterableIteratorType(!1),L=x!==Wo?K3e(x,_):void 0,z=L?L.returnType:j,U=L?L.nextType:Oe;return Sa(a,z)&&Sa(U,c)?x!==Wo?I4(x,[n]):(_.getGlobalIterableIteratorType(!0),Pa):(_.getGlobalGeneratorType(!0),Pa)}return I4(y,[n,a,c])}function Yft(n,a){let c=[],d=[],_=(Gc(n)&2)!==0;return _ie(n.body,y=>{let x=y.expression?go(y.expression,a):Lt;bf(c,r3e(y,x,j,_));let L;if(y.asteriskToken){let z=cte(x,_?19:17,y.expression);L=z&&z.nextType}else L=Jd(y,void 0);L&&bf(d,L)}),{yieldTypes:c,nextTypes:d}}function r3e(n,a,c,d){let _=n.expression||n,y=n.asteriskToken?yy(d?19:17,a,c,_):a;return d?rA(y,_,n.asteriskToken?f.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:f.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):y}function i3e(n,a,c){let d=0;for(let _=0;_=a?c[_]:void 0;d|=y!==void 0?zq.get(y)||32768:0}return d}function o3e(n){let a=ti(n);if(a.isExhaustive===void 0){a.isExhaustive=0;let c=$ft(n);a.isExhaustive===0&&(a.isExhaustive=c)}else a.isExhaustive===0&&(a.isExhaustive=!1);return a.isExhaustive}function $ft(n){if(n.expression.kind===221){let d=y8e(n);if(!d)return!1;let _=fv(ec(n.expression.expression)),y=i3e(0,0,d);return _.flags&3?(556800&y)===556800:!jm(_,x=>tM(x,y)===y)}let a=ec(n.expression);if(!w4(a))return!1;let c=Tee(n);return!c.length||Et(c,Kct)?!1:Hut(ul(a,vd),c)}function a3e(n){return n.endFlowNode&&jz(n.endFlowNode)}function s3e(n,a){let c=Gc(n),d=[],_=a3e(n),y=!1;if(R1(n.body,x=>{let L=x.expression;if(L){if(L=vs(L,!0),c&2&&L.kind===223&&(L=vs(L.expression,!0)),L.kind===213&&L.expression.kind===80&&ec(L.expression).symbol===n.symbol){y=!0;return}let z=ec(L,a&&a&-9);c&2&&(z=dM(Q4(z,!1,n,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),z.flags&131072&&(y=!0),bf(d,z)}else _=!0}),!(d.length===0&&!_&&(y||Qft(n))))return Y&&d.length&&_&&!(th(n)&&d.some(x=>x.symbol===n.symbol))&&bf(d,Oe),d}function Qft(n){switch(n.kind){case 218:case 219:return!0;case 174:return n.parent.kind===210;default:return!1}}function Uye(n,a){r(c);return;function c(){let d=Gc(n),_=a&&EB(a,d);if(_&&(Dl(_,16384)||_.flags&32769)||n.kind===173||Fl(n.body)||n.body.kind!==241||!a3e(n))return;let y=n.flags&1024,x=tm(n)||n;if(_&&_.flags&131072)qe(x,f.A_function_returning_never_cannot_have_a_reachable_end_point);else if(_&&!y)qe(x,f.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(_&&Y&&!Sa(Oe,_))qe(x,f.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(V.noImplicitReturns){if(!_){if(!y)return;let L=ms(pm(n));if(n7e(n,L))return}qe(x,f.Not_all_code_paths_return_a_value)}}}function l3e(n,a){if(C.assert(n.kind!==174||Im(n)),yx(n),ws(n)&&pM(n,n.name),a&&a&4&&Gf(n)){if(!tm(n)&&!Z3(n)){let d=U4(n);if(d&&u1(ms(d))){let _=ti(n);if(_.contextFreeType)return _.contextFreeType;let y=Yee(n,a),x=Tg(void 0,void 0,void 0,et,y,void 0,0,64),L=Ls(n.symbol,K,[x],et,et);return L.objectFlags|=262144,_.contextFreeType=L}}return on}return!bte(n)&&n.kind===218&&xbe(n),Zft(n,a),pr(Rr(n))}function Zft(n,a){let c=ti(n);if(!(c.flags&64)){let d=U4(n);if(!(c.flags&64)){c.flags|=64;let _=Xc(Yo(pr(Rr(n)),0));if(!_)return;if(Gf(n))if(d){let y=VE(n),x;if(a&&a&2){Q6e(_,d,y);let L=q4(d);L&&L.flags&262144&&(x=TD(d,y.nonFixingMapper))}x||(x=y?TD(d,y.mapper):d),wft(_,x)}else Oft(_);else if(d&&!n.typeParameters&&d.parameters.length>n.parameters.length){let y=VE(n);a&&a&2&&Q6e(_,d,y)}if(d&&!hD(n)&&!_.resolvedReturnType){let y=Yee(n,a);_.resolvedReturnType||(_.resolvedReturnType=y)}X4(n)}}}function emt(n){C.assert(n.kind!==174||Im(n));let a=Gc(n),c=hD(n);if(Uye(n,c),n.body)if(tm(n)||ms(pm(n)),n.body.kind===241)Da(n.body);else{let d=go(n.body),_=c&&EB(c,a);if(_){let y=Hee(n.body);if((a&3)===2){let x=Q4(d,!1,y,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);Gb(x,_,y,y)}else Gb(d,_,y,y)}}}function $ee(n,a,c,d=!1){if(!Sa(a,Yl)){let _=d&&uM(a);return B0(n,!!_&&Sa(_,Yl),c),!1}return!0}function tmt(n){if(!la(n)||!bS(n))return!1;let a=ec(n.arguments[2]);if(Xe(a,"value")){let _=ba(a,"writable"),y=_&&pr(_);if(!y||y===Kt||y===Tn)return!0;if(_&&_.valueDeclaration&&_c(_.valueDeclaration)){let x=_.valueDeclaration.initializer,L=go(x);if(L===Kt||L===Tn)return!0}return!1}return!ba(a,"set")}function y_(n){return!!(Al(n)&8||n.flags&4&&If(n)&8||n.flags&3&&hye(n)&6||n.flags&98304&&!(n.flags&65536)||n.flags&8||Et(n.declarations,tmt))}function c3e(n,a,c){var d,_;if(c===0)return!1;if(y_(a)){if(a.flags&4&&ks(n)&&n.expression.kind===110){let y=zp(n);if(!(y&&(y.kind===176||th(y))))return!0;if(a.valueDeclaration){let x=_r(a.valueDeclaration),L=y.parent===a.valueDeclaration.parent,z=y===a.valueDeclaration.parent,U=x&&((d=a.parent)==null?void 0:d.valueDeclaration)===y.parent,re=x&&((_=a.parent)==null?void 0:_.valueDeclaration)===y;return!(L||z||U||re)}}return!0}if(ks(n)){let y=vs(n.expression);if(y.kind===80){let x=ti(y).resolvedSymbol;if(x.flags&2097152){let L=Fm(x);return!!L&&L.kind===274}}}return!1}function K4(n,a,c){let d=Xl(n,7);return d.kind!==80&&!ks(d)?(qe(n,a),!1):d.flags&64?(qe(n,c),!1):!0}function nmt(n){go(n.expression);let a=vs(n.expression);if(!ks(a))return qe(a,f.The_operand_of_a_delete_operator_must_be_a_property_reference),yi;zr(a)&&Xi(a.name)&&qe(a,f.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);let c=ti(a),d=mf(c.resolvedSymbol);return d&&(y_(d)?qe(a,f.The_operand_of_a_delete_operator_cannot_be_a_read_only_property):rmt(a,d)),yi}function rmt(n,a){let c=pr(a);Y&&!(c.flags&131075)&&!(Ce?a.flags&16777216:mm(c,16777216))&&qe(n,f.The_operand_of_a_delete_operator_must_be_optional)}function imt(n){return go(n.expression),J2}function omt(n){return yx(n),Lt}function u3e(n){let a=!1,c=Y6(n);if(c&&Il(c)){let d=$y(n)?f.await_expression_cannot_be_used_inside_a_class_static_block:f.await_using_statements_cannot_be_used_inside_a_class_static_block;qe(n,d),a=!0}else if(!(n.flags&65536))if(Q6(n)){let d=Vn(n);if(!qE(d)){let _;if(!NA(d,V)){_??(_=hh(d,n.pos));let y=$y(n)?f.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:f.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module,x=Qc(d,_.start,_.length,y);ns.add(x),a=!0}switch(G){case 100:case 199:if(d.impliedNodeFormat===1){_??(_=hh(d,n.pos)),ns.add(Qc(d,_.start,_.length,f.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level)),a=!0;break}case 7:case 99:case 200:case 4:if(ue>=4)break;default:_??(_=hh(d,n.pos));let y=$y(n)?f.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:f.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher;ns.add(Qc(d,_.start,_.length,y)),a=!0;break}}}else{let d=Vn(n);if(!qE(d)){let _=hh(d,n.pos),y=$y(n)?f.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:f.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules,x=Qc(d,_.start,_.length,y);if(c&&c.kind!==176&&!(Gc(c)&2)){let L=Or(c,f.Did_you_mean_to_mark_this_function_as_async);ka(x,L)}ns.add(x),a=!0}}return $y(n)&&iye(n)&&(qe(n,f.await_expressions_cannot_be_used_in_a_parameter_initializer),a=!0),a}function amt(n){r(()=>u3e(n));let a=go(n.expression),c=Q4(a,!0,n,f.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return c===a&&!qt(c)&&!(a.flags&3)&&a_(!1,Or(n,f.await_has_no_effect_on_the_type_of_this_expression)),c}function smt(n){let a=go(n.operand);if(a===Eo)return Eo;switch(n.operand.kind){case 9:switch(n.operator){case 41:return hx(h_(-n.operand.text));case 40:return hx(h_(+n.operand.text))}break;case 10:if(n.operator===41)return hx(XZ({negative:!0,base10Value:tN(n.operand.text)}))}switch(n.operator){case 40:case 41:case 55:return Z_(a,n.operand),dB(a,12288)&&qe(n.operand,f.The_0_operator_cannot_be_applied_to_type_symbol,ma(n.operator)),n.operator===40?(dB(a,2112)&&qe(n.operand,f.Operator_0_cannot_be_applied_to_type_1,ma(n.operator),jn(vv(a))),Dt):Hye(a);case 54:sbe(a,n.operand);let c=tM(a,12582912);return c===4194304?Kt:c===8388608?On:yi;case 46:case 47:return $ee(n.operand,Z_(a,n.operand),f.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&K4(n.operand,f.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,f.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),Hye(a)}return ht}function lmt(n){let a=go(n.operand);return a===Eo?Eo:($ee(n.operand,Z_(a,n.operand),f.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&K4(n.operand,f.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,f.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),Hye(a))}function Hye(n){return Dl(n,2112)?xu(n,3)||Dl(n,296)?Yl:Pt:Dt}function dB(n,a){if(Dl(n,a))return!0;let c=fv(n);return!!c&&Dl(c,a)}function Dl(n,a){if(n.flags&a)return!0;if(n.flags&3145728){let c=n.types;for(let d of c)if(Dl(d,a))return!0}return!1}function xu(n,a,c){return n.flags&a?!0:c&&n.flags&114691?!1:!!(a&296)&&Sa(n,Dt)||!!(a&2112)&&Sa(n,Pt)||!!(a&402653316)&&Sa(n,ke)||!!(a&528)&&Sa(n,yi)||!!(a&16384)&&Sa(n,or)||!!(a&131072)&&Sa(n,Vr)||!!(a&65536)&&Sa(n,pe)||!!(a&32768)&&Sa(n,Oe)||!!(a&4096)&&Sa(n,Di)||!!(a&67108864)&&Sa(n,Kr)}function pB(n,a,c){return n.flags&1048576?Jn(n.types,d=>pB(d,a,c)):xu(n,a,c)}function Qee(n){return!!(Wr(n)&16)&&!!n.symbol&&qye(n.symbol)}function qye(n){return(n.flags&128)!==0}function Jye(n){let a=Y3e("hasInstance"),c=n1(n,a);if(c){let d=pr(c);if(d&&Yo(d,0).length!==0)return d}}function cmt(n,a,c,d,_){if(c===Eo||d===Eo)return Eo;!Ct(c)&&pB(c,402784252)&&qe(n,f.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),C.assert(D3(n.parent));let y=DD(n.parent,void 0,_);if(y===Tr)return Eo;let x=ms(y);return td(x,yi,a,f.An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression),yi}function umt(n){return jm(n,a=>a===Rl||!!(a.flags&2097152)&&Vh(fv(a)))}function dmt(n,a,c,d){if(c===Eo||d===Eo)return Eo;if(Xi(n)){if(ue<99&&Rc(n,2097152),!ti(n).resolvedSymbol&&su(n)){let _=Sye(n,d.symbol,!0);h6e(n,d,_)}}else td(Z_(c,n),Dn,n);return td(Z_(d,a),Kr,a)&&umt(d)&&qe(a,f.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,jn(d)),yi}function pmt(n,a,c){let d=n.properties;if(Y&&d.length===0)return Z_(a,n);for(let _=0;_KP(U,c)):Gu(d);return nA(L,z,_)}}}}function nA(n,a,c,d){let _;if(n.kind===304){let y=n;y.objectAssignmentInitializer&&(Y&&!mm(go(y.objectAssignmentInitializer),16777216)&&(a=_m(a,524288)),gmt(y.name,y.equalsToken,y.objectAssignmentInitializer,c)),_=n.name}else _=n;return _.kind===226&&_.operatorToken.kind===64&&(Me(_,c),_=_.left,Y&&(a=_m(a,524288))),_.kind===210?pmt(_,a,d):_.kind===209?fmt(_,a,c):mmt(_,a,c)}function mmt(n,a,c){let d=go(n,c),_=n.parent.kind===305?f.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:f.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,y=n.parent.kind===305?f.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:f.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;return K4(n,_,y)&&Gb(a,d,n,n),Hx(n)&&Rc(n.parent,1048576),a}function fB(n){switch(n=vs(n),n.kind){case 80:case 11:case 14:case 215:case 228:case 15:case 9:case 10:case 112:case 97:case 106:case 157:case 218:case 231:case 219:case 209:case 210:case 221:case 235:case 285:case 284:return!0;case 227:return fB(n.whenTrue)&&fB(n.whenFalse);case 226:return zv(n.operatorToken.kind)?!1:fB(n.left)&&fB(n.right);case 224:case 225:switch(n.operator){case 54:case 40:case 41:case 55:return!0}return!1;case 222:case 216:case 234:default:return!1}}function Kye(n,a){return(a.flags&98304)!==0||tee(n,a)}function _mt(){let n=m5(a,c,d,_,y,x);return(ge,Je)=>{let vt=n(ge,Je);return C.assertIsDefined(vt),vt};function a(ge,Je,vt){return Je?(Je.stackIndex++,Je.skip=!1,U(Je,void 0),be(Je,void 0)):Je={checkMode:vt,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},cr(ge)&&PA(ge)?(Je.skip=!0,be(Je,go(ge.right,vt)),Je):(hmt(ge),ge.operatorToken.kind===64&&(ge.left.kind===210||ge.left.kind===209)&&(Je.skip=!0,be(Je,nA(ge.left,go(ge.right,vt),vt,ge.right.kind===110))),Je)}function c(ge,Je,vt){if(!Je.skip)return L(Je,ge)}function d(ge,Je,vt){if(!Je.skip){let Rt=re(Je);C.assertIsDefined(Rt),U(Je,Rt),be(Je,void 0);let sn=ge.kind;if(ok(sn)){let un=vt.parent;for(;un.kind===217||ak(un);)un=un.parent;(sn===56||OS(un))&&abe(vt.left,Rt,OS(un)?un.thenStatement:void 0),sbe(Rt,vt.left)}}}function _(ge,Je,vt){if(!Je.skip)return L(Je,ge)}function y(ge,Je){let vt;if(Je.skip)vt=re(Je);else{let Rt=z(Je);C.assertIsDefined(Rt);let sn=re(Je);C.assertIsDefined(sn),vt=f3e(ge.left,ge.operatorToken,ge.right,Rt,sn,Je.checkMode,ge)}return Je.skip=!1,U(Je,void 0),be(Je,void 0),Je.stackIndex--,vt}function x(ge,Je,vt){return be(ge,Je),ge}function L(ge,Je){if(_r(Je))return Je;be(ge,go(Je,ge.checkMode))}function z(ge){return ge.typeStack[ge.stackIndex]}function U(ge,Je){ge.typeStack[ge.stackIndex]=Je}function re(ge){return ge.typeStack[ge.stackIndex+1]}function be(ge,Je){ge.typeStack[ge.stackIndex+1]=Je}}function hmt(n){let{left:a,operatorToken:c,right:d}=n;c.kind===61&&(_r(a)&&(a.operatorToken.kind===57||a.operatorToken.kind===56)&&bn(a,f._0_and_1_operations_cannot_be_mixed_without_parentheses,ma(a.operatorToken.kind),ma(c.kind)),_r(d)&&(d.operatorToken.kind===57||d.operatorToken.kind===56)&&bn(d,f._0_and_1_operations_cannot_be_mixed_without_parentheses,ma(d.operatorToken.kind),ma(c.kind)))}function gmt(n,a,c,d,_){let y=a.kind;if(y===64&&(n.kind===210||n.kind===209))return nA(n,go(c,d),d,c.kind===110);let x;ok(y)?x=fM(n,d):x=go(n,d);let L=go(c,d);return f3e(n,a,c,x,L,d,_)}function f3e(n,a,c,d,_,y,x){let L=a.kind;switch(L){case 42:case 43:case 67:case 68:case 44:case 69:case 45:case 70:case 41:case 66:case 48:case 71:case 49:case 72:case 50:case 73:case 52:case 75:case 53:case 79:case 51:case 74:if(d===Eo||_===Eo)return Eo;d=Z_(d,n),_=Z_(_,c);let cn;if(d.flags&528&&_.flags&528&&(cn=ge(a.kind))!==void 0)return qe(x||a,f.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,ma(a.kind),ma(cn)),Dt;{let Zn=$ee(n,d,f.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),Hn=$ee(c,_,f.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),er;if(xu(d,3)&&xu(_,3)||!(Dl(d,2112)||Dl(_,2112)))er=Dt;else if(z(d,_)){switch(L){case 50:case 73:sn();break;case 43:case 68:ue<3&&qe(x,f.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}er=Pt}else sn(z),er=ht;return Zn&&Hn&&Je(er),er}case 40:case 65:if(d===Eo||_===Eo)return Eo;!xu(d,402653316)&&!xu(_,402653316)&&(d=Z_(d,n),_=Z_(_,c));let Fn;return xu(d,296,!0)&&xu(_,296,!0)?Fn=Dt:xu(d,2112,!0)&&xu(_,2112,!0)?Fn=Pt:xu(d,402653316,!0)||xu(_,402653316,!0)?Fn=ke:(Ct(d)||Ct(_))&&(Fn=qt(d)||qt(_)?ht:j),Fn&&!be(L)?Fn:Fn?(L===65&&Je(Fn),Fn):(sn((Hn,er)=>xu(Hn,402655727)&&xu(er,402655727)),j);case 30:case 32:case 33:case 34:return be(L)&&(d=Ave(Z_(d,n)),_=Ave(Z_(_,c)),Rt((Zn,Hn)=>{if(Ct(Zn)||Ct(Hn))return!0;let er=Sa(Zn,Yl),Mo=Sa(Hn,Yl);return er&&Mo||!er&&!Mo&&Dz(Zn,Hn)})),yi;case 35:case 36:case 37:case 38:if(!(y&&y&64)){if((HV(n)||HV(c))&&(!cr(n)||L===37||L===38)){let Zn=L===35||L===37;qe(x,f.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,Zn?"false":"true")}sr(x,L,n,c),Rt((Zn,Hn)=>Kye(Zn,Hn)||Kye(Hn,Zn))}return yi;case 104:return cmt(n,c,d,_,y);case 103:return dmt(n,c,d,_);case 56:case 77:{let Zn=mm(d,4194304)?ii([eut(Y?d:vv(_)),_]):d;return L===77&&Je(_),Zn}case 57:case 76:{let Zn=mm(d,8388608)?ii([yv(q4e(d)),_],2):d;return L===76&&Je(_),Zn}case 61:case 78:{let Zn=mm(d,262144)?ii([yv(d),_],2):d;return L===78&&Je(_),Zn}case 64:let kn=_r(n.parent)?Wl(n.parent):0;return U(kn,_),vt(kn)?((!(_.flags&524288)||kn!==2&&kn!==6&&!gv(_)&&!Hve(_)&&!(Wr(_)&1))&&Je(_),d):(Je(_),_);case 28:if(!V.allowUnreachableCode&&fB(n)&&!re(n.parent)){let Zn=Vn(n),Hn=Zn.text,er=La(Hn,n.pos);Zn.parseDiagnostics.some(Ao=>Ao.code!==f.JSX_expressions_must_have_one_parent_element.code?!1:LV(Ao,er))||qe(n,f.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return _;default:return C.fail()}function z(cn,Fn){return xu(cn,2112)&&xu(Fn,2112)}function U(cn,Fn){if(cn===2)for(let kn of kb(Fn)){let Zn=pr(kn);if(Zn.symbol&&Zn.symbol.flags&32){let Hn=kn.escapedName,er=vl(kn.valueDeclaration,Hn,788968,void 0,Hn,!1);er?.declarations&&er.declarations.some(VS)&&(um(er,f.Duplicate_identifier_0,Hi(Hn),kn),um(kn,f.Duplicate_identifier_0,Hi(Hn),er))}}}function re(cn){return cn.parent.kind===217&&hp(cn.left)&&cn.left.text==="0"&&(la(cn.parent.parent)&&cn.parent.parent.expression===cn.parent||cn.parent.parent.kind===215)&&(ks(cn.right)||Ve(cn.right)&&cn.right.escapedText==="eval")}function be(cn){let Fn=dB(d,12288)?n:dB(_,12288)?c:void 0;return Fn?(qe(Fn,f.The_0_operator_cannot_be_applied_to_type_symbol,ma(cn)),!1):!0}function ge(cn){switch(cn){case 52:case 75:return 57;case 53:case 79:return 38;case 51:case 74:return 56;default:return}}function Je(cn){zv(L)&&r(Fn);function Fn(){let kn=d;if(GN(a.kind)&&n.kind===211&&(kn=Wee(n,void 0,!0)),K4(n,f.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,f.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let Zn;if(Ce&&zr(n)&&Dl(cn,32768)){let Hn=Xe(Ru(n.expression),n.name.escapedText);ree(cn,Hn)&&(Zn=f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}Gb(cn,kn,n,c,Zn)}}}function vt(cn){var Fn;switch(cn){case 2:return!0;case 1:case 5:case 6:case 3:case 4:let kn=ff(n),Zn=PA(c);return!!Zn&&wa(Zn)&&!!((Fn=kn?.exports)!=null&&Fn.size);default:return!1}}function Rt(cn){return cn(d,_)?!1:(sn(cn),!0)}function sn(cn){let Fn=!1,kn=x||a;if(cn){let Ao=vy(d),jo=vy(_);Fn=!(Ao===d&&jo===_)&&!!(Ao&&jo)&&cn(Ao,jo)}let Zn=d,Hn=_;!Fn&&cn&&([Zn,Hn]=vmt(d,_,cn));let[er,Mo]=lx(Zn,Hn);un(kn,Fn,er,Mo)||B0(kn,Fn,f.Operator_0_cannot_be_applied_to_types_1_and_2,ma(a.kind),er,Mo)}function un(cn,Fn,kn,Zn){switch(a.kind){case 37:case 35:case 38:case 36:return B0(cn,Fn,f.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,kn,Zn);default:return}}function sr(cn,Fn,kn,Zn){let Hn=Ln(vs(kn)),er=Ln(vs(Zn));if(Hn||er){let Mo=qe(cn,f.This_condition_will_always_return_0,ma(Fn===37||Fn===35?97:112));if(Hn&&er)return;let Ao=Fn===38||Fn===36?ma(54):"",jo=Hn?Zn:kn,vo=vs(jo);ka(Mo,Or(jo,f.Did_you_mean_0,`${Ao}Number.isNaN(${zl(vo)?fp(vo):"..."})`))}}function Ln(cn){if(Ve(cn)&&cn.escapedText==="NaN"){let Fn=alt();return!!Fn&&Fn===Vm(cn)}return!1}}function vmt(n,a,c){let d=n,_=a,y=vv(n),x=vv(a);return c(y,x)||(d=y,_=x),[d,_]}function ymt(n){r(ge);let a=zp(n);if(!a)return j;let c=Gc(a);if(!(c&1))return j;let d=(c&2)!==0;n.asteriskToken&&(d&&ue<99&&Rc(n,26624),!d&&ue<2&&V.downlevelIteration&&Rc(n,256));let _=hD(a);_&&_.flags&1048576&&(_=uc(_,Je=>$ye(Je,c,void 0)));let y=_&&t7e(_,d),x=y&&y.yieldType||j,L=y&&y.nextType||j,z=d?rA(L)||j:L,U=n.expression?go(n.expression):Lt,re=r3e(n,U,z,d);if(_&&re&&Gb(re,x,n.expression||n,n.expression),n.asteriskToken)return cbe(d?19:17,1,U,n.expression)||j;if(_)return HE(2,_,d)||j;let be=G8e(2,a);return be||(be=j,r(()=>{if(me&&!Hoe(n)){let Je=Jd(n,void 0);(!Je||Ct(Je))&&qe(n,f.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}})),be;function ge(){n.flags&16384||hu(n,f.A_yield_expression_is_only_allowed_in_a_generator_body),iye(n)&&qe(n,f.yield_expressions_cannot_be_used_in_a_parameter_initializer)}}function bmt(n,a){let c=fM(n.condition,a);abe(n.condition,c,n.whenTrue);let d=go(n.whenTrue,a),_=go(n.whenFalse,a);return ii([d,_],2)}function m3e(n){let a=n.parent;return Wd(a)&&m3e(a)||Ys(a)&&a.argumentExpression===n}function Emt(n){let a=[n.head.text],c=[];for(let _ of n.templateSpans){let y=go(_.expression);dB(y,12288)&&qe(_.expression,f.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),a.push(_.literal.text),c.push(Sa(y,Fo)?y:ke)}if(lM(n)||m3e(n)||jm(Jd(n,void 0)||mn,Smt))return GT(a,c);let d=n.parent.kind!==215&&h7e(n);return d?hx(qd(d)):ke}function Smt(n){return!!(n.flags&134217856||n.flags&58982400&&Dl(Bu(n)||mn,402653316))}function Tmt(n){return Y1(n)&&!zS(n.parent)?n.parent.parent:n}function CD(n,a,c,d){let _=Tmt(n);Jz(_,a,!1),jdt(_,c);let y=go(n,d|1|(c?2:0));c&&c.intraExpressionInferenceSites&&(c.intraExpressionInferenceSites=void 0);let x=Dl(y,2944)&&ete(y,Lee(a,n,void 0))?vd(y):y;return Udt(),j4(),x}function ec(n,a){if(a)return go(n,a);let c=ti(n);if(!c.resolvedType){let d=U_,_=gn;U_=df,gn=void 0,c.resolvedType=go(n,a),gn=_,U_=d}return c.resolvedType}function _3e(n){return n=vs(n,!0),n.kind===216||n.kind===234||qR(n)}function sM(n,a,c){let d=wL(n);if(cr(n)){let y=n7(n);if(y)return Fye(d,y,a)}let _=Yye(d)||(c?CD(d,c,void 0,a||0):ec(d,a));return Co(n)&&n.name.kind===207&&Wa(_)&&!_.target.hasRestElement&&my(_)ete(n,d))}if(a.flags&58982400){let c=Bu(a)||mn;return Dl(c,4)&&Dl(n,128)||Dl(c,8)&&Dl(n,256)||Dl(c,64)&&Dl(n,2048)||Dl(c,4096)&&Dl(n,8192)||ete(n,c)}return!!(a.flags&406847616&&Dl(n,128)||a.flags&256&&Dl(n,256)||a.flags&2048&&Dl(n,2048)||a.flags&512&&Dl(n,512)||a.flags&8192&&Dl(n,8192))}return!1}function lM(n){let a=n.parent;return pS(a)&&kg(a.type)||qR(a)&&kg(u5(a))||Oye(n)&&WT(Jd(n,0))||(Wd(a)||pd(a)||Zm(a))&&lM(a)||(_c(a)||np(a)||EN(a))&&lM(a.parent)}function cM(n,a,c){let d=go(n,a,c);return lM(n)||vie(n)?vd(d):_3e(n)?d:Ive(d,Lee(Jd(n,void 0),n,void 0))}function h3e(n,a){return n.name.kind===167&&Ig(n.name),cM(n.initializer,a)}function g3e(n,a){j7e(n),n.name.kind===167&&Ig(n.name);let c=l3e(n,a);return v3e(n,c,a)}function v3e(n,a,c){if(c&&c&10){let d=H4(a,0,!0),_=H4(a,1,!0),y=d||_;if(y&&y.typeParameters){let x=f1(n,2);if(x){let L=H4(yv(x),d?0:1,!1);if(L&&!L.typeParameters){if(c&8)return y3e(n,c),on;let z=VE(n),U=z.signature&&ms(z.signature),re=U&&x6e(U);if(re&&!re.typeParameters&&!Jn(z.inferences,ND)){let be=Dmt(z,y.typeParameters),ge=Rge(y,be),Je=Ft(z.inferences,vt=>Mve(vt.typeParameter));if(Dve(ge,L,(vt,Rt)=>{bv(Je,vt,Rt,0,!0)}),Et(Je,ND)&&(Cve(ge,L,(vt,Rt)=>{bv(Je,vt,Rt)}),!xmt(z.inferences,Je)))return Rmt(z.inferences,Je),z.inferredTypeParameters=xo(z.inferredTypeParameters,be),BT(ge)}return BT(R6e(y,L,z))}}}}return a}function y3e(n,a){if(a&2){let c=VE(n);c.flags|=4}}function ND(n){return!!(n.candidates||n.contraCandidates)}function Imt(n){return!!(n.candidates||n.contraCandidates||rOe(n.typeParameter))}function xmt(n,a){for(let c=0;cc.symbol.escapedName===a)}function Cmt(n,a){let c=a.length;for(;c>1&&a.charCodeAt(c-1)>=48&&a.charCodeAt(c-1)<=57;)c--;let d=a.slice(0,c);for(let _=1;;_++){let y=d+_;if(!Xye(n,y))return y}}function b3e(n){let a=tA(n);if(a&&!a.typeParameters)return ms(a)}function Nmt(n){let a=go(n.expression),c=O4(a,n.expression),d=b3e(a);return d&&fee(d,n,c!==a)}function Ru(n){let a=Yye(n);if(a)return a;if(n.flags&268435456&&gn){let _=gn[ss(n)];if(_)return _}let c=Ze,d=go(n,64);if(Ze!==c){let _=gn||(gn=[]);_[ss(n)]=d,Uoe(n,n.flags|268435456)}return d}function Yye(n){let a=vs(n,!0);if(qR(a)){let c=u5(a);if(!kg(c))return Ii(c)}if(a=vs(n),$y(a)){let c=Yye(a.expression);return c?rA(c):void 0}if(la(a)&&a.expression.kind!==108&&!Sd(a,!0)&&!B6e(a))return lS(a)?Nmt(a):b3e(xD(a.expression));if(pS(a)&&!kg(a.type))return Ii(a.type);if(S1(n)||gC(n))return go(n)}function mB(n){let a=ti(n);if(a.contextFreeType)return a.contextFreeType;Jz(n,j,!1);let c=a.contextFreeType=go(n,4);return j4(),c}function go(n,a,c){var d,_;(d=lr)==null||d.push(lr.Phase.Check,"checkExpression",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});let y=N;N=n,I=0;let x=Lmt(n,a,c),L=v3e(n,x,a);return Qee(L)&&Pmt(n,L),N=y,(_=lr)==null||_.pop(),L}function Pmt(n,a){n.parent.kind===211&&n.parent.expression===n||n.parent.kind===212&&n.parent.expression===n||(n.kind===80||n.kind===166)&&mte(n)||n.parent.kind===186&&n.parent.exprName===n||n.parent.kind===281||qe(n,f.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query),im(V)&&(C.assert(!!(a.symbol.flags&128)),a.symbol.valueDeclaration.flags&33554432&&!_0(n)&&qe(n,f.Cannot_access_ambient_const_enums_when_0_is_enabled,Qe))}function Mmt(n,a){if(Op(n)){if(kU(n))return Fye(n.expression,wU(n),a);if(qR(n))return U6e(n,a)}return go(n.expression,a)}function Lmt(n,a,c){let d=n.kind;if(i)switch(d){case 231:case 218:case 219:i.throwIfCancellationRequested()}switch(d){case 80:return pdt(n,a);case 81:return Npt(n);case 110:return Hz(n);case 108:return nye(n);case 106:return Ge;case 15:case 11:return Fve(n)?Ye:hx(qd(n.text));case 9:return Nbe(n),hx(h_(+n.text));case 10:return wvt(n),hx(XZ({negative:!1,base10Value:tN(n.text)}));case 112:return On;case 97:return Kt;case 228:return Emt(n);case 14:return gl;case 209:return X8e(n,a,c);case 210:return lpt(n,a);case 211:return Wee(n,a);case 166:return d6e(n,a);case 212:return qpt(n,a);case 213:if(n.expression.kind===102)return Aft(n);case 214:return Tft(n,a);case 215:return Ift(n);case 217:return Mmt(n,a);case 231:return bht(n);case 218:case 219:return l3e(n,a);case 221:return imt(n);case 216:case 234:return xft(n,a);case 235:return Cft(n);case 233:return q6e(n);case 238:return Nft(n);case 236:return Pft(n);case 220:return nmt(n);case 222:return omt(n);case 223:return amt(n);case 224:return smt(n);case 225:return lmt(n);case 226:return Me(n,a);case 227:return bmt(n,a);case 230:return npt(n,a);case 232:return Lt;case 229:return ymt(n);case 237:return rpt(n);case 294:return Tpt(n,a);case 284:return ppt(n,a);case 285:return upt(n,a);case 288:return fpt(n);case 292:return _pt(n,a);case 286:C.fail("Shouldn't ever directly check a JsxOpeningElement")}return ht}function E3e(n){Rg(n),n.expression&&hu(n.expression,f.Type_expected),Da(n.constraint),Da(n.default);let a=wT(Rr(n));Bu(a),fst(a)||qe(n.default,f.Type_parameter_0_has_a_circular_default,jn(a));let c=Pd(a),d=zT(a);c&&d&&td(d,qp(co(c,WE(a,d)),d),n.default,f.Type_0_does_not_satisfy_the_constraint_1),yx(n),r(()=>mM(n.name,f.Type_parameter_name_cannot_be_0))}function kmt(n){var a,c;if(fd(n.parent)||pi(n.parent)||Dm(n.parent)){let d=wT(Rr(n)),_=bve(d)&24576;if(_){let y=Rr(n.parent);if(Dm(n.parent)&&!(Wr(Qs(y))&52))qe(n,f.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);else if(_===8192||_===16384){(a=lr)==null||a.push(lr.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:gd(Qs(y)),id:gd(d)});let x=Pz(y,d,_===16384?ee:de),L=Pz(y,d,_===16384?de:ee),z=d;O=d,td(x,L,n,f.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),O=z,(c=lr)==null||c.pop()}}}}function S3e(n){Rg(n),yB(n);let a=zp(n);ei(n,31)&&(a.kind===176&&Xf(a.body)||qe(n,f.A_parameter_property_is_only_allowed_in_a_constructor_implementation),a.kind===176&&Ve(n.name)&&n.name.escapedText==="constructor"&&qe(n.name,f.constructor_cannot_be_used_as_a_parameter_property_name)),!n.initializer&&sN(n)&&ta(n.name)&&a.body&&qe(n,f.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),n.name&&Ve(n.name)&&(n.name.escapedText==="this"||n.name.escapedText==="new")&&(a.parameters.indexOf(n)!==0&&qe(n,f.A_0_parameter_must_be_the_first_parameter,n.name.escapedText),(a.kind===176||a.kind===180||a.kind===185)&&qe(n,f.A_constructor_cannot_have_a_this_parameter),a.kind===219&&qe(n,f.An_arrow_function_cannot_have_a_this_parameter),(a.kind===177||a.kind===178)&&qe(n,f.get_and_set_accessors_cannot_declare_this_parameters)),n.dotDotDotToken&&!ta(n.name)&&!Sa(__(pr(n.symbol)),cf)&&qe(n,f.A_rest_parameter_must_be_of_an_array_type)}function wmt(n){let a=Omt(n);if(!a){qe(n,f.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}let c=pm(a),d=Bf(c);if(!d)return;Da(n.type);let{parameterName:_}=n;if(d.kind===0||d.kind===2)YZ(_);else if(d.parameterIndex>=0){if(Xu(c)&&d.parameterIndex===c.parameters.length-1)qe(_,f.A_type_predicate_cannot_reference_a_rest_parameter);else if(d.type){let y=()=>Uo(void 0,f.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);td(d.type,pr(c.parameters[d.parameterIndex]),n.type,void 0,y)}}else if(_){let y=!1;for(let{name:x}of a.parameters)if(ta(x)&&T3e(x,_,d.parameterName)){y=!0;break}y||qe(n.parameterName,f.Cannot_find_parameter_0,d.parameterName)}}function Omt(n){switch(n.parent.kind){case 219:case 179:case 262:case 218:case 184:case 174:case 173:let a=n.parent;if(n===a.type)return a}}function T3e(n,a,c){for(let d of n.elements){if(Vc(d))continue;let _=d.name;if(_.kind===80&&_.escapedText===c)return qe(a,f.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,c),!0;if((_.kind===207||_.kind===206)&&T3e(_,a,c))return!0}}function X4(n){n.kind===181?cvt(n):(n.kind===184||n.kind===262||n.kind===185||n.kind===179||n.kind===176||n.kind===180)&&bte(n);let a=Gc(n);a&4||((a&3)===3&&ue<99&&Rc(n,6144),(a&3)===2&&ue<4&&Rc(n,64),a&3&&ue<2&&Rc(n,128)),SB(Py(n)),ght(n),Ke(n.parameters,S3e),n.type&&Da(n.type),r(c);function c(){k_t(n);let d=tm(n),_=d;if(cr(n)){let y=r0(n);if(y&&y.typeExpression&&Rf(y.typeExpression.type)){let x=tA(Ii(y.typeExpression));x&&x.declaration&&(d=tm(x.declaration),_=y.typeExpression.type)}}if(me&&!d)switch(n.kind){case 180:qe(n,f.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 179:qe(n,f.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break}if(d&&_){let y=Gc(n);if((y&5)===1){let x=Ii(d);x===or?qe(_,f.A_generator_cannot_have_a_void_type_annotation):$ye(x,y,_)}else(y&3)===2&&f_t(n,d,_)}n.kind!==181&&n.kind!==324&&qb(n)}}function $ye(n,a,c){let d=HE(0,n,(a&2)!==0)||j,_=HE(1,n,(a&2)!==0)||d,y=HE(2,n,(a&2)!==0)||mn,x=n3e(d,_,y,!!(a&2));return td(x,n,c)}function Fmt(n){let a=new Map,c=new Map,d=new Map;for(let y of n.members)if(y.kind===176)for(let x of y.parameters)pp(x,y)&&!ta(x.name)&&_(a,x.name,x.name.escapedText,3);else{let x=sa(y),L=y.name;if(!L)continue;let z=Xi(L),U=z&&x?16:0,re=z?d:x?c:a,be=L&&Pbe(L);if(be)switch(y.kind){case 177:_(re,L,be,1|U);break;case 178:_(re,L,be,2|U);break;case 172:_(re,L,be,3|U);break;case 174:_(re,L,be,8|U);break}}function _(y,x,L,z){let U=y.get(L);if(U)if((U&16)!==(z&16))qe(x,f.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,pc(x));else{let re=!!(U&8),be=!!(z&8);re||be?re!==be&&qe(x,f.Duplicate_identifier_0,pc(x)):U&z&-17?qe(x,f.Duplicate_identifier_0,pc(x)):y.set(L,U|z)}else y.set(L,z)}}function Wmt(n){for(let a of n.members){let c=a.name;if(sa(a)&&c){let _=Pbe(c);switch(_){case"name":case"length":case"caller":case"arguments":if(he)break;case"prototype":let y=f.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,x=Y0(Rr(n));qe(c,y,_,x);break}}}}function A3e(n){let a=new Map;for(let c of n.members)if(c.kind===171){let d,_=c.name;switch(_.kind){case 11:case 9:d=_.text;break;case 80:d=Sr(_);break;default:continue}a.get(d)?(qe(Oo(c.symbol.valueDeclaration),f.Duplicate_identifier_0,d),qe(c.name,f.Duplicate_identifier_0,d)):a.set(d,!0)}}function Qye(n){if(n.kind===264){let c=Rr(n);if(c.declarations&&c.declarations.length>0&&c.declarations[0]!==n)return}let a=Dge(Rr(n));if(a?.declarations){let c=new Map;for(let d of a.declarations)d.parameters.length===1&&d.parameters[0].type&&$T(Ii(d.parameters[0].type),_=>{let y=c.get(gd(_));y?y.declarations.push(d):c.set(gd(_),{type:_,declarations:[d]})});c.forEach(d=>{if(d.declarations.length>1)for(let _ of d.declarations)qe(_,f.Duplicate_index_signature_for_type_0,jn(d.type))})}}function I3e(n){!Rg(n)&&!Pvt(n)&&Ete(n.name),yB(n),Zye(n),ei(n,64)&&n.kind===172&&n.initializer&&qe(n,f.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,Ds(n.name))}function zmt(n){return Xi(n.name)&&qe(n,f.Private_identifiers_are_not_allowed_outside_class_bodies),I3e(n)}function Bmt(n){j7e(n)||Ete(n.name),jl(n)&&n.asteriskToken&&Ve(n.name)&&Sr(n.name)==="constructor"&&qe(n.name,f.Class_constructor_may_not_be_a_generator),W3e(n),ei(n,64)&&n.kind===174&&n.body&&qe(n,f.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,Ds(n.name)),Xi(n.name)&&!su(n)&&qe(n,f.Private_identifiers_are_not_allowed_outside_class_bodies),Zye(n)}function Zye(n){if(Xi(n.name)&&ue<99){for(let a=_h(n);a;a=_h(a))ti(a).flags|=1048576;if(Zc(n.parent)){let a=Qve(n.parent);a&&(ti(n.name).flags|=32768,ti(a).flags|=4096)}}}function Gmt(n){Rg(n),Ho(n,Da)}function Vmt(n){X4(n),Cvt(n)||Nvt(n),Da(n.body);let a=Rr(n),c=dl(a,n.kind);if(n===c&&rte(a),Fl(n.body))return;r(_);return;function d(y){return ad(y)?!0:y.kind===172&&!sa(y)&&!!y.initializer}function _(){let y=n.parent;if(M1(y)){Zve(n.parent,y);let x=eye(y),L=L8e(n.body);if(L){if(x&&qe(L,f.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),!ye&&(Et(n.parent.members,d)||Et(n.parameters,U=>ei(U,31))))if(!jmt(L,n.body))qe(L,f.A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers);else{let U;for(let re of n.body.statements){if(eu(re)&&gS(Xl(re.expression))){U=re;break}if(x3e(re))break}U===void 0&&qe(n,f.A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers)}}else x||qe(n,f.Constructors_for_derived_classes_must_contain_a_super_call)}}}function jmt(n,a){let c=Fv(n.parent);return eu(c)&&c.parent===a}function x3e(n){return n.kind===108||n.kind===110?!0:Iie(n)?!1:!!Ho(n,x3e)}function R3e(n){Ve(n.name)&&Sr(n.name)==="constructor"&&pi(n.parent)&&qe(n.name,f.Class_constructor_may_not_be_an_accessor),r(a),Da(n.body),Zye(n);function a(){if(!bte(n)&&!vvt(n)&&Ete(n.name),hB(n),X4(n),n.kind===177&&!(n.flags&33554432)&&Xf(n.body)&&n.flags&512&&(n.flags&1024||qe(n.name,f.A_get_accessor_must_return_a_value)),n.name.kind===167&&Ig(n.name),mD(n)){let d=Rr(n),_=dl(d,177),y=dl(d,178);if(_&&y&&!(LD(_)&1)){ti(_).flags|=1;let x=cd(_),L=cd(y);(x&64)!==(L&64)&&(qe(_.name,f.Accessors_must_both_be_abstract_or_non_abstract),qe(y.name,f.Accessors_must_both_be_abstract_or_non_abstract)),(x&4&&!(L&6)||x&2&&!(L&2))&&(qe(_.name,f.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),qe(y.name,f.A_get_accessor_must_be_at_least_as_accessible_as_the_setter))}}let c=e1(Rr(n));n.kind===177&&Uye(n,c)}}function Umt(n){hB(n)}function Hmt(n,a,c){return n.typeArguments&&c{let d=ebe(n);d&&D3e(n,d)});let c=ti(n).resolvedSymbol;c&&Et(c.declarations,d=>PR(d)&&!!(d.flags&536870912))&&sy(oB(n),c.declarations,c.escapedName)}}function Jmt(n){let a=ai(n.parent,P6);if(!a)return;let c=ebe(a);if(!c)return;let d=Pd(c[a.typeArguments.indexOf(n)]);return d&&co(d,Mp(c,tte(a,c)))}function Kmt(n){xOe(n)}function Xmt(n){Ke(n.members,Da),r(a);function a(){let c=f4e(n);ute(c,c.symbol),Qye(n),A3e(n)}}function Ymt(n){Da(n.elementType)}function $mt(n){let a=!1,c=!1;for(let d of n.elements){let _=jge(d);if(_&8){let y=Ii(d.type);if(!gy(y)){qe(d,f.A_rest_element_type_must_be_an_array_type);break}(jf(y)||Wa(y)&&y.target.combinedFlags&4)&&(_|=4)}if(_&4){if(c){bn(d,f.A_rest_element_cannot_follow_another_rest_element);break}c=!0}else if(_&2){if(c){bn(d,f.An_optional_element_cannot_follow_a_rest_element);break}a=!0}else if(_&1&&a){bn(d,f.A_required_element_cannot_follow_an_optional_element);break}}Ke(n.elements,Da),Ii(n)}function Qmt(n){Ke(n.types,Da),Ii(n)}function N3e(n,a){if(!(n.flags&8388608))return n;let c=n.objectType,d=n.indexType,_=Hd(c)&&LZ(c)===2?$Oe(c,0):$_(c,0),y=!!Ag(c,Dt);if(cp(d,x=>Sa(x,_)||y&&dx(x,Dt)))return a.kind===212&&ng(a)&&Wr(c)&32&&Wh(c)&1&&qe(a,f.Index_signature_in_type_0_only_permits_reading,jn(c)),n;if(jT(c)){let x=HZ(d,a);if(x){let L=$T(Md(c),z=>ba(z,x));if(L&&If(L)&6)return qe(a,f.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,Hi(x)),ht}}return qe(a,f.Type_0_cannot_be_used_to_index_type_1,jn(d),jn(c)),ht}function Zmt(n){Da(n.objectType),Da(n.indexType),N3e(s4e(n),n)}function e_t(n){t_t(n),Da(n.typeParameter),Da(n.nameType),Da(n.type),n.type||c1(n,j);let a=tve(n),c=py(a);if(c)td(c,Fs,n.nameType);else{let d=gf(a);td(d,Fs,Ux(n.typeParameter))}}function t_t(n){var a;if((a=n.members)!=null&&a.length)return bn(n.members[0],f.A_mapped_type_may_not_declare_properties_or_methods)}function n_t(n){YZ(n)}function r_t(n){bvt(n),Da(n.type)}function i_t(n){Ho(n,Da)}function o_t(n){zn(n,c=>c.parent&&c.parent.kind===194&&c.parent.extendsType===c)||bn(n,f.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),Da(n.typeParameter);let a=Rr(n.typeParameter);if(a.declarations&&a.declarations.length>1){let c=$i(a);if(!c.typeParametersChecked){c.typeParametersChecked=!0;let d=wT(a),_=Jre(a,168);if(!o7e(_,[d],y=>[y])){let y=Ai(a);for(let x of _)qe(x.name,f.All_declarations_of_0_must_have_identical_constraints,y)}}}qb(n)}function a_t(n){for(let a of n.templateSpans){Da(a.type);let c=Ii(a.type);td(c,Fo,a.type)}Ii(n)}function s_t(n){Da(n.argument),n.attributes&&s2(n.attributes,bn),C3e(n)}function l_t(n){n.dotDotDotToken&&n.questionToken&&bn(n,f.A_tuple_member_cannot_be_both_optional_and_rest),n.type.kind===190&&bn(n.type,f.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),n.type.kind===191&&bn(n.type,f.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),Da(n.type),Ii(n)}function _B(n){return(_p(n,2)||ad(n))&&!!(n.flags&33554432)}function nte(n,a){let c=Ste(n);if(n.parent.kind!==264&&n.parent.kind!==263&&n.parent.kind!==231&&n.flags&33554432){let d=bj(n);d&&d.flags&128&&!(c&128)&&!(k_(n.parent)&&Jl(n.parent.parent)&&I_(n.parent.parent))&&(c|=32),c|=128}return c&a}function rte(n){r(()=>c_t(n))}function c_t(n){function a(cn,Fn){return Fn!==void 0&&Fn.parent===cn[0].parent?Fn:cn[0]}function c(cn,Fn,kn,Zn,Hn){if((Zn^Hn)!==0){let Mo=nte(a(cn,Fn),kn);Ke(cn,Ao=>{let jo=nte(Ao,kn)^Mo;jo&32?qe(Oo(Ao),f.Overload_signatures_must_all_be_exported_or_non_exported):jo&128?qe(Oo(Ao),f.Overload_signatures_must_all_be_ambient_or_non_ambient):jo&6?qe(Oo(Ao)||Ao,f.Overload_signatures_must_all_be_public_private_or_protected):jo&64&&qe(Oo(Ao),f.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}function d(cn,Fn,kn,Zn){if(kn!==Zn){let Hn=LA(a(cn,Fn));Ke(cn,er=>{LA(er)!==Hn&&qe(Oo(er),f.Overload_signatures_must_all_be_optional_or_required)})}}let _=230,y=0,x=_,L=!1,z=!0,U=!1,re,be,ge,Je=n.declarations,vt=(n.flags&16384)!==0;function Rt(cn){if(cn.name&&Fl(cn.name))return;let Fn=!1,kn=Ho(cn.parent,Hn=>{if(Fn)return Hn;Fn=Hn===cn});if(kn&&kn.pos===cn.end&&kn.kind===cn.kind){let Hn=kn.name||kn,er=kn.name;if(cn.name&&er&&(Xi(cn.name)&&Xi(er)&&cn.name.escapedText===er.escapedText||Za(cn.name)&&Za(er)&&hv(Ig(cn.name),Ig(er))||R_(cn.name)&&R_(er)&&kC(cn.name)===kC(er))){if((cn.kind===174||cn.kind===173)&&sa(cn)!==sa(kn)){let Ao=sa(cn)?f.Function_overload_must_be_static:f.Function_overload_must_not_be_static;qe(Hn,Ao)}return}if(Xf(kn.body)){qe(Hn,f.Function_implementation_name_must_be_0,Ds(cn.name));return}}let Zn=cn.name||cn;vt?qe(Zn,f.Constructor_implementation_is_missing):ei(cn,64)?qe(Zn,f.All_declarations_of_an_abstract_method_must_be_consecutive):qe(Zn,f.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let sn=!1,un=!1,sr=!1,Ln=[];if(Je)for(let cn of Je){let Fn=cn,kn=Fn.flags&33554432,Zn=Fn.parent&&(Fn.parent.kind===264||Fn.parent.kind===187)||kn;if(Zn&&(ge=void 0),(Fn.kind===263||Fn.kind===231)&&!kn&&(sr=!0),Fn.kind===262||Fn.kind===174||Fn.kind===173||Fn.kind===176){Ln.push(Fn);let Hn=nte(Fn,_);y|=Hn,x&=Hn,L=L||LA(Fn),z=z&&LA(Fn);let er=Xf(Fn.body);er&&re?vt?un=!0:sn=!0:ge?.parent===Fn.parent&&ge.end!==Fn.pos&&Rt(ge),er?re||(re=Fn):U=!0,ge=Fn,Zn||(be=Fn)}cr(cn)&&ea(cn)&&cn.jsDoc&&(U=De(Fj(cn))>0)}if(un&&Ke(Ln,cn=>{qe(cn,f.Multiple_constructor_implementations_are_not_allowed)}),sn&&Ke(Ln,cn=>{qe(Oo(cn)||cn,f.Duplicate_function_implementation)}),sr&&!vt&&n.flags&16&&Je){let cn=tr(Je,Fn=>Fn.kind===263).map(Fn=>Or(Fn,f.Consider_adding_a_declare_modifier_to_this_class));Ke(Je,Fn=>{let kn=Fn.kind===263?f.Class_declaration_cannot_implement_overload_list_for_0:Fn.kind===262?f.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;kn&&ka(qe(Oo(Fn)||Fn,kn,bl(n)),...cn)})}if(be&&!be.body&&!ei(be,64)&&!be.questionToken&&Rt(be),U&&(Je&&(c(Je,re,_,y,x),d(Je,re,L,z)),re)){let cn=LE(n),Fn=pm(re);for(let kn of cn)if(!Cct(Fn,kn)){let Zn=kn.declaration&&b0(kn.declaration)?kn.declaration.parent.tagName:kn.declaration;ka(qe(Zn,f.This_overload_signature_is_not_compatible_with_its_implementation_signature),Or(re,f.The_implementation_signature_is_declared_here));break}}}function Y4(n){r(()=>u_t(n))}function u_t(n){let a=n.localSymbol;if(!a&&(a=Rr(n),!a.exportSymbol)||dl(a,n.kind)!==n)return;let c=0,d=0,_=0;for(let U of a.declarations){let re=z(U),be=nte(U,2080);be&32?be&2048?_|=re:c|=re:d|=re}let y=c|d,x=c&d,L=_&y;if(x||L)for(let U of a.declarations){let re=z(U),be=Oo(U);re&L?qe(be,f.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,Ds(be)):re&x&&qe(be,f.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,Ds(be))}function z(U){let re=U;switch(re.kind){case 264:case 265:case 353:case 345:case 347:return 2;case 267:return Lu(re)||qg(re)!==0?5:4;case 263:case 266:case 306:return 3;case 312:return 7;case 277:case 226:let be=re,ge=Ll(be)?be.expression:be.right;if(!zl(ge))return 1;re=ge;case 271:case 274:case 273:let Je=0,vt=Fc(Rr(re));return Ke(vt.declarations,Rt=>{Je|=z(Rt)}),Je;case 260:case 208:case 262:case 276:case 80:return 1;case 173:case 171:return 2;default:return C.failBadSyntaxKind(re)}}}function uM(n,a,c,...d){let _=$4(n,a);return _&&rA(_,a,c,...d)}function $4(n,a,c){if(Ct(n))return;let d=n;if(d.promisedTypeOfPromise)return d.promisedTypeOfPromise;if(Mb(n,yz(!1)))return d.promisedTypeOfPromise=qs(n)[0];if(pB(fv(n),402915324))return;let _=Xe(n,"then");if(Ct(_))return;let y=_?Yo(_,0):et;if(y.length===0){a&&qe(a,f.A_promise_must_have_a_then_method);return}let x,L;for(let re of y){let be=i1(re);be&&be!==or&&!Q_(n,be,Ch)?x=be:L=In(L,re)}if(!L){C.assertIsDefined(x),c&&(c.value=x),a&&qe(a,f.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,jn(n),jn(x));return}let z=_m(ii(Ft(L,Bye)),2097152);if(Ct(z))return;let U=Yo(z,0);if(U.length===0){a&&qe(a,f.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return d.promisedTypeOfPromise=ii(Ft(U,Bye),2)}function Q4(n,a,c,d,..._){return(a?rA(n,c,d,..._):vy(n,c,d,..._))||ht}function P3e(n){if(pB(fv(n),402915324))return!1;let a=Xe(n,"then");return!!a&&Yo(_m(a,2097152),0).length>0}function ite(n){var a;if(n.flags&16777216){let c=Vge(!1);return!!c&&n.aliasSymbol===c&&((a=n.aliasTypeArguments)==null?void 0:a.length)===1}return!1}function dM(n){return n.flags&1048576?ul(n,dM):ite(n)?n.aliasTypeArguments[0]:n}function M3e(n){if(Ct(n)||ite(n))return!1;if(jT(n)){let a=Bu(n);if(a?a.flags&3||gv(a)||jm(a,P3e):Dl(n,8650752))return!0}return!1}function d_t(n){let a=Vge(!0);if(a)return vD(a,[dM(n)])}function p_t(n){if(M3e(n)){let a=d_t(n);if(a)return a}return C.assert(ite(n)||$4(n)===void 0,"type provided should not be a non-generic 'promise'-like."),n}function rA(n,a,c,...d){let _=vy(n,a,c,...d);return _&&p_t(_)}function vy(n,a,c,...d){if(Ct(n)||ite(n))return n;let _=n;if(_.awaitedTypeOfType)return _.awaitedTypeOfType;if(n.flags&1048576){if(F0.lastIndexOf(n.id)>=0){a&&qe(a,f.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}let L=a?U=>vy(U,a,c,...d):vy;F0.push(n.id);let z=ul(n,L);return F0.pop(),_.awaitedTypeOfType=z}if(M3e(n))return _.awaitedTypeOfType=n;let y={value:void 0},x=$4(n,void 0,y);if(x){if(n.id===x.id||F0.lastIndexOf(x.id)>=0){a&&qe(a,f.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}F0.push(n.id);let L=vy(x,a,c,...d);return F0.pop(),L?_.awaitedTypeOfType=L:void 0}if(P3e(n)){if(a){C.assertIsDefined(c);let L;y.value&&(L=Uo(L,f.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,jn(n),jn(y.value))),L=Uo(L,c,...d),ns.add(Og(Vn(a),a,L))}return}return _.awaitedTypeOfType=n}function f_t(n,a,c){let d=Ii(a);if(ue>=2){if(qt(d))return;let y=yz(!0);if(y!==Wo&&!Mb(d,y)){_(f.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,a,c,jn(vy(d)||or));return}}else{if(__t(a),qt(d))return;let y=PL(a);if(y===void 0){_(f.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,a,c,jn(d));return}let x=Us(y,111551,!0),L=x?pr(x):ht;if(qt(L)){y.kind===80&&y.escapedText==="Promise"&&dy(d)===yz(!1)?qe(c,f.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):_(f.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,a,c,fp(y));return}let z=zst(!0);if(z===Pa){_(f.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,a,c,fp(y));return}let U=f.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value;if(!td(L,z,c,U,()=>a===c?void 0:Uo(void 0,f.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)))return;let be=y&&Bp(y),ge=Ud(n.locals,be.escapedText,111551);if(ge){qe(ge.valueDeclaration,f.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,Sr(be),fp(y));return}}Q4(d,!1,n,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);function _(y,x,L,z){if(x===L)qe(L,y,z);else{let U=qe(L,f.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type);ka(U,Or(x,y,z))}}}function m_t(n){let a=DD(n);Xee(a,n);let c=ms(a);if(c.flags&1)return;let d=jye(n);if(!d?.resolvedReturnType)return;let _,y=d.resolvedReturnType;switch(n.parent.kind){case 263:case 231:_=f.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 172:if(!ne){_=f.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 169:_=f.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 174:case 177:case 178:_=f.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return C.failBadSyntaxKind(n.parent)}td(c,y,n.expression,_)}function Z4(n,a,c,d,_,y=c.length,x=0){let L=k.createFunctionTypeNode(void 0,et,k.createKeywordTypeNode(133));return Tg(L,n,a,c,d,_,y,x)}function nbe(n,a,c,d,_,y,x){let L=Z4(n,a,c,d,_,y,x);return BT(L)}function L3e(n){return nbe(void 0,void 0,et,n)}function k3e(n){let a=s_("value",n);return nbe(void 0,void 0,[a],or)}function __t(n){w3e(n&&PL(n),!1)}function w3e(n,a){if(!n)return;let c=Bp(n),d=(n.kind===80?788968:1920)|2097152,_=vl(c,c.escapedText,d,void 0,void 0,!0);if(_&&_.flags&2097152){if(gt&&Bm(_)&&!r8(Fc(_))&&!wf(_))bb(_);else if(a&&im(V)&&ku(V)>=5&&!Bm(_)&&!Et(_.declarations,a0)){let y=qe(n,f.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),x=vn(_.declarations||et,hb);x&&ka(y,Or(x,f._0_was_imported_here,Sr(c)))}}}function PD(n){let a=rbe(n);a&&Qd(a)&&w3e(a,!0)}function rbe(n){if(n)switch(n.kind){case 193:case 192:return O3e(n.types);case 194:return O3e([n.trueType,n.falseType]);case 196:case 202:return rbe(n.type);case 183:return n.typeName}}function O3e(n){let a;for(let c of n){for(;c.kind===196||c.kind===202;)c=c.type;if(c.kind===146||!Y&&(c.kind===201&&c.literal.kind===106||c.kind===157))continue;let d=rbe(c);if(!d)return;if(a){if(!Ve(a)||!Ve(d)||a.escapedText!==d.escapedText)return}else a=d}return a}function ote(n){let a=yu(n);return $h(n)?Aj(a):a}function hB(n){if(!US(n)||!Sf(n)||!n.modifiers||!t3(ne,n,n.parent,n.parent.parent))return;let a=vn(n.modifiers,Eu);if(a){if(ne?(Rc(a,8),n.kind===169&&Rc(a,32)):ue<99&&(Rc(a,8),Tc(n)?n.name?a7e(n)&&Rc(a,8388608):Rc(a,8388608):Zc(n)||(Xi(n.name)&&(jl(n)||Ly(n)||kd(n))&&Rc(a,8388608),Za(n.name)&&Rc(a,16777216))),V.emitDecoratorMetadata)switch(Rc(a,16),n.kind){case 263:let c=ig(n);if(c)for(let x of c.parameters)PD(ote(x));break;case 177:case 178:let d=n.kind===177?178:177,_=dl(Rr(n),d);PD(Gm(n)||_&&Gm(_));break;case 174:for(let x of n.parameters)PD(ote(x));PD(tm(n));break;case 172:PD(yu(n));break;case 169:PD(ote(n));let y=n.parent;for(let x of y.parameters)PD(ote(x));PD(tm(y));break}for(let c of n.modifiers)Eu(c)&&m_t(c)}}function h_t(n){r(a);function a(){W3e(n),xbe(n),pM(n,n.name)}}function g_t(n){n.typeExpression||qe(n.name,f.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),n.name&&mM(n.name,f.Type_alias_name_cannot_be_0),Da(n.typeExpression),SB(Py(n))}function v_t(n){Da(n.constraint);for(let a of n.typeParameters)Da(a)}function y_t(n){Da(n.typeExpression)}function b_t(n){Da(n.typeExpression);let a=d0(n);if(a){let c=g6(a,s5);if(De(c)>1)for(let d=1;d0),c.length>1&&qe(c[1],f.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);let d=F3e(n.class.expression),_=M1(a);if(_){let y=F3e(_.expression);y&&d.escapedText!==y.escapedText&&qe(d,f.JSDoc_0_1_does_not_match_the_extends_2_clause,Sr(n.tagName),Sr(d),Sr(y))}}function D_t(n){let a=SS(n);a&&ad(a)&&qe(n,f.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function F3e(n){switch(n.kind){case 80:return n;case 211:return n.name;default:return}}function W3e(n){var a;hB(n),X4(n);let c=Gc(n);if(n.name&&n.name.kind===167&&Ig(n.name),mD(n)){let y=Rr(n),x=n.localSymbol||y,L=(a=x.declarations)==null?void 0:a.find(z=>z.kind===n.kind&&!(z.flags&524288));n===L&&rte(x),y.parent&&rte(y)}let d=n.kind===173?void 0:n.body;if(Da(d),Uye(n,hD(n)),r(_),cr(n)){let y=r0(n);y&&y.typeExpression&&!lye(Ii(y.typeExpression),n)&&qe(y.typeExpression.type,f.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function _(){tm(n)||(Fl(d)&&!_B(n)&&c1(n,j),c&1&&Xf(d)&&ms(pm(n)))}}function qb(n){r(a);function a(){let c=Vn(n),d=uf.get(c.path);d||(d=[],uf.set(c.path,d)),d.push(n)}}function z3e(n,a){for(let c of n)switch(c.kind){case 263:case 231:C_t(c,a),ibe(c,a);break;case 312:case 267:case 241:case 269:case 248:case 249:case 250:V3e(c,a);break;case 176:case 218:case 262:case 219:case 174:case 177:case 178:c.body&&V3e(c,a),ibe(c,a);break;case 173:case 179:case 180:case 184:case 185:case 265:case 264:ibe(c,a);break;case 195:N_t(c,a);break;default:C.assertNever(c,"Node should not have been registered for unused identifiers check")}}function B3e(n,a,c){let d=Oo(n)||n,_=PR(n)?f._0_is_declared_but_never_used:f._0_is_declared_but_its_value_is_never_read;c(n,0,Or(d,_,a))}function e8(n){return Ve(n)&&Sr(n).charCodeAt(0)===95}function C_t(n,a){for(let c of n.members)switch(c.kind){case 174:case 172:case 177:case 178:if(c.kind===178&&c.symbol.flags&32768)break;let d=Rr(c);!d.isReferenced&&(_p(c,2)||od(c)&&Xi(c.name))&&!(c.flags&33554432)&&a(c,0,Or(c.name,f._0_is_declared_but_its_value_is_never_read,Ai(d)));break;case 176:for(let _ of c.parameters)!_.symbol.isReferenced&&ei(_,2)&&a(_,0,Or(_.name,f.Property_0_is_declared_but_its_value_is_never_read,bl(_.symbol)));break;case 181:case 240:case 175:break;default:C.fail("Unexpected class member")}}function N_t(n,a){let{typeParameter:c}=n;obe(c)&&a(n,1,Or(n,f._0_is_declared_but_its_value_is_never_read,Sr(c.name)))}function ibe(n,a){let c=Rr(n).declarations;if(!c||Ya(c)!==n)return;let d=Py(n),_=new Set;for(let y of d){if(!obe(y))continue;let x=Sr(y.name),{parent:L}=y;if(L.kind!==195&&L.typeParameters.every(obe)){if(Av(_,L)){let z=Vn(L),U=am(L)?CU(L):NU(z,L.typeParameters),be=L.typeParameters.length===1?[f._0_is_declared_but_its_value_is_never_read,x]:[f.All_type_parameters_are_unused];a(y,1,Qc(z,U.pos,U.end-U.pos,...be))}}else a(y,1,Or(y,f._0_is_declared_but_its_value_is_never_read,x))}}function obe(n){return!(is(n.symbol).isReferenced&262144)&&!e8(n.name)}function gB(n,a,c,d){let _=String(d(a)),y=n.get(_);y?y[1].push(c):n.set(_,[a,[c]])}function G3e(n){return ai(D_(n),Co)}function P_t(n){return Qa(n)?om(n.parent)?!!(n.propertyName&&e8(n.name)):e8(n.name):Lu(n)||(Oi(n)&&Jx(n.parent.parent)||j3e(n))&&e8(n.name)}function V3e(n,a){let c=new Map,d=new Map,_=new Map;n.locals.forEach(y=>{if(!(y.flags&262144?!(y.flags&3&&!(y.isReferenced&3)):y.isReferenced||y.exportSymbol)&&y.declarations){for(let x of y.declarations)if(!P_t(x))if(j3e(x))gB(c,L_t(x),x,ss);else if(Qa(x)&&om(x.parent)){let L=Ya(x.parent.elements);(x===L||!Ya(x.parent.elements).dotDotDotToken)&&gB(d,x.parent,x,ss)}else if(Oi(x)){let L=KE(x)&7,z=Oo(x);(L!==4&&L!==6||!z||!e8(z))&&gB(_,x.parent,x,ss)}else{let L=y.valueDeclaration&&G3e(y.valueDeclaration),z=y.valueDeclaration&&Oo(y.valueDeclaration);L&&z?!pp(L,L.parent)&&!w1(L)&&!e8(z)&&(Qa(x)&&U1(x.parent)?gB(d,x.parent,x,ss):a(L,1,Or(z,f._0_is_declared_but_its_value_is_never_read,bl(y)))):B3e(x,bl(y),a)}}}),c.forEach(([y,x])=>{let L=y.parent;if((y.name?1:0)+(y.namedBindings?y.namedBindings.kind===274?1:y.namedBindings.elements.length:0)===x.length)a(L,0,x.length===1?Or(L,f._0_is_declared_but_its_value_is_never_read,Sr(Ha(x).name)):Or(L,f.All_imports_in_import_declaration_are_unused));else for(let U of x)B3e(U,Sr(U.name),a)}),d.forEach(([y,x])=>{let L=G3e(y.parent)?1:0;if(y.elements.length===x.length)x.length===1&&y.parent.kind===260&&y.parent.parent.kind===261?gB(_,y.parent.parent,y.parent,ss):a(y,L,x.length===1?Or(y,f._0_is_declared_but_its_value_is_never_read,vB(Ha(x).name)):Or(y,f.All_destructured_elements_are_unused));else for(let z of x)a(z,L,Or(z,f._0_is_declared_but_its_value_is_never_read,vB(z.name)))}),_.forEach(([y,x])=>{if(y.declarations.length===x.length)a(y,0,x.length===1?Or(Ha(x).name,f._0_is_declared_but_its_value_is_never_read,vB(Ha(x).name)):Or(y.parent.kind===243?y.parent:y,f.All_variables_are_unused));else for(let L of x)a(L,0,Or(L,f._0_is_declared_but_its_value_is_never_read,vB(L.name)))})}function M_t(){var n;for(let a of mg)if(!((n=Rr(a))!=null&&n.isReferenced)){let c=Vx(a);C.assert(L1(c),"Only parameter declaration should be checked here");let d=Or(a.name,f._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,Ds(a.name),Ds(a.propertyName));c.type||ka(d,Qc(Vn(c),c.end,1,f.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,Ds(a.propertyName))),ns.add(d)}}function vB(n){switch(n.kind){case 80:return Sr(n);case 207:case 206:return vB(aa(Ha(n.elements),Qa).name);default:return C.assertNever(n)}}function j3e(n){return n.kind===273||n.kind===276||n.kind===274}function L_t(n){return n.kind===273?n:n.kind===274?n.parent:n.parent.parent}function ate(n){if(n.kind===241&&Ev(n),KV(n)){let a=ze;Ke(n.statements,Da),ze=a}else Ke(n.statements,Da);n.locals&&qb(n)}function k_t(n){ue>=2||!nj(n)||n.flags&33554432||Fl(n.body)||Ke(n.parameters,a=>{a.name&&!ta(a.name)&&a.name.escapedText===Bt.escapedName&&o_("noEmit",a,f.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function t8(n,a,c){if(a?.escapedText!==c||n.kind===172||n.kind===171||n.kind===174||n.kind===173||n.kind===177||n.kind===178||n.kind===303||n.flags&33554432||(Eh(n)||tu(n)||tp(n))&&a0(n))return!1;let d=D_(n);return!(Co(d)&&Fl(d.parent.body))}function w_t(n){zn(n,a=>LD(a)&4?(n.kind!==80?qe(Oo(n),f.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):qe(n,f.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0):!1)}function O_t(n){zn(n,a=>LD(a)&8?(n.kind!==80?qe(Oo(n),f.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):qe(n,f.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0):!1)}function F_t(n,a){if(G>=5&&!(G>=100&&Vn(n).impliedNodeFormat===1)||!a||!t8(n,a,"require")&&!t8(n,a,"exports")||Jl(n)&&qg(n)!==1)return;let c=Q(n);c.kind===312&&Fp(c)&&o_("noEmit",a,f.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,Ds(a),Ds(a))}function W_t(n,a){if(!a||ue>=4||!t8(n,a,"Promise")||Jl(n)&&qg(n)!==1)return;let c=Q(n);c.kind===312&&Fp(c)&&c.flags&4096&&o_("noEmit",a,f.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,Ds(a),Ds(a))}function z_t(n,a){ue<=8&&(t8(n,a,"WeakMap")||t8(n,a,"WeakSet"))&&ub.push(n)}function B_t(n){let a=_h(n);LD(a)&1048576&&(C.assert(od(n)&&Ve(n.name)&&typeof n.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),o_("noEmit",n,f.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,n.name.escapedText))}function G_t(n,a){a&&ue>=2&&ue<=8&&t8(n,a,"Reflect")&&db.push(n)}function V_t(n){let a=!1;if(Zc(n)){for(let c of n.members)if(LD(c)&2097152){a=!0;break}}else if(ws(n))LD(n)&2097152&&(a=!0);else{let c=_h(n);c&&LD(c)&2097152&&(a=!0)}a&&(C.assert(od(n)&&Ve(n.name),"The target of a Reflect collision check should be an identifier"),o_("noEmit",n,f.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,Ds(n.name),"Reflect"))}function pM(n,a){a&&(F_t(n,a),W_t(n,a),z_t(n,a),G_t(n,a),pi(n)?(mM(a,f.Class_name_cannot_be_0),n.flags&33554432||hht(a)):v0(n)&&mM(a,f.Enum_name_cannot_be_0))}function j_t(n){if(KE(n)&7||L1(n))return;let a=Rr(n);if(a.flags&1){if(!Ve(n.name))return C.fail();let c=vl(n,n.name.escapedText,3,void 0,void 0,!1);if(c&&c!==a&&c.flags&2&&hye(c)&7){let d=p0(c.valueDeclaration,261),_=d.parent.kind===243&&d.parent.parent?d.parent.parent:void 0;if(!(_&&(_.kind===241&&ea(_.parent)||_.kind===268||_.kind===267||_.kind===312))){let x=Ai(c);qe(n,f.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,x,x)}}}}function n8(n){return n===ot?j:n===qc?Ql:n}function yB(n){var a;if(hB(n),Qa(n)||Da(n.type),!n.name)return;if(n.name.kind===167&&(Ig(n.name),fS(n)&&n.initializer&&ec(n.initializer)),Qa(n)){if(n.propertyName&&Ve(n.name)&&L1(n)&&Fl(zp(n).body)){mg.push(n);return}om(n.parent)&&n.dotDotDotToken&&ue<5&&Rc(n,4),n.propertyName&&n.propertyName.kind===167&&Ig(n.propertyName);let _=n.parent.parent,y=n.dotDotDotToken?32:0,x=Br(_,y),L=n.propertyName||n.name;if(x&&!ta(L)){let z=_y(L);if(nm(z)){let U=rm(z),re=ba(x,U);re&&(eB(re,void 0,!1),vye(n,!!_.initializer&&_.initializer.kind===108,!1,x,re))}}}if(ta(n.name)&&(n.name.kind===207&&ue<2&&V.downlevelIteration&&Rc(n,512),Ke(n.name.elements,Da)),n.initializer&&L1(n)&&Fl(zp(n).body)){qe(n,f.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if(ta(n.name)){if(Vve(n))return;let _=fS(n)&&n.initializer&&n.parent.parent.kind!==249,y=!Et(n.name.elements,O8(Vc));if(_||y){let x=B(n);if(_){let L=ec(n.initializer);Y&&y?u6e(L,n):Gb(L,B(n),n,n.initializer)}y&&(U1(n.name)?yy(65,x,Oe,n):Y&&u6e(x,n))}return}let c=Rr(n);if(c.flags&2097152&&(C1(n)||Cie(n))){dte(n);return}let d=n8(pr(c));if(n===c.valueDeclaration){let _=fS(n)&&wL(n);if(_&&!(cr(n)&&wa(_)&&(_.properties.length===0||Vy(n.name))&&!!((a=c.exports)!=null&&a.size))&&n.parent.parent.kind!==249){let x=ec(_);Gb(x,d,n,_,void 0);let L=KE(n)&7;if(L===6){let z=Kst(!0),U=kOe(!0);if(z!==Pa&&U!==Pa){let re=ii([z,U,pe,Oe]);td(x,re,_,f.The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined)}}else if(L===4){let z=kOe(!0);if(z!==Pa){let U=ii([z,pe,Oe]);td(x,U,_,f.The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined)}}}c.declarations&&c.declarations.length>1&&Et(c.declarations,y=>y!==n&&rR(y)&&!H3e(y,n))&&qe(n.name,f.All_declarations_of_0_must_have_identical_modifiers,Ds(n.name))}else{let _=n8(B(n));!qt(d)&&!qt(_)&&!hv(d,_)&&!(c.flags&67108864)&&U3e(c.valueDeclaration,d,n,_),fS(n)&&n.initializer&&Gb(ec(n.initializer),_,n,n.initializer,void 0),c.valueDeclaration&&!H3e(n,c.valueDeclaration)&&qe(n.name,f.All_declarations_of_0_must_have_identical_modifiers,Ds(n.name))}n.kind!==172&&n.kind!==171&&(Y4(n),(n.kind===260||n.kind===208)&&j_t(n),pM(n,n.name))}function U3e(n,a,c,d){let _=Oo(c),y=c.kind===172||c.kind===171?f.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:f.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,x=Ds(_),L=qe(_,y,x,jn(a),jn(d));n&&ka(L,Or(n,f._0_was_also_declared_here,x))}function H3e(n,a){if(n.kind===169&&a.kind===260||n.kind===260&&a.kind===169)return!0;if(LA(n)!==LA(a))return!1;let c=1358;return WA(n,c)===WA(a,c)}function U_t(n){var a,c;(a=lr)==null||a.push(lr.Phase.Check,"checkVariableDeclaration",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath}),Ivt(n),yB(n),(c=lr)==null||c.pop()}function H_t(n){return Svt(n),yB(n)}function ste(n){let a=Lv(n)&7;(a===4||a===6)&&Rc(n,33554432),Ke(n.declarations,Da)}function q_t(n){!Rg(n)&&!Cbe(n.declarationList)&&xvt(n),ste(n.declarationList)}function J_t(n){Ev(n),go(n.expression)}function K_t(n){Ev(n);let a=fM(n.expression);abe(n.expression,a,n.thenStatement),Da(n.thenStatement),n.thenStatement.kind===242&&qe(n.thenStatement,f.The_body_of_an_if_statement_cannot_be_the_empty_statement),Da(n.elseStatement)}function abe(n,a,c){if(!Y)return;d(n,c);function d(y,x){for(y=vs(y),_(y,x);_r(y)&&(y.operatorToken.kind===57||y.operatorToken.kind===61);)y=vs(y.left),_(y,x)}function _(y,x){let L=ak(y)?vs(y.right):y;if(tg(L))return;if(ak(L)){d(L,x);return}let z=L===y?a:fM(L),U=zr(L)&&_3e(L.expression);if(!mm(z,4194304)||U)return;let re=Yo(z,0),be=!!uM(z);if(re.length===0&&!be)return;let ge=Ve(L)?L:zr(L)?L.name:void 0,Je=ge&&Um(ge);if(!Je&&!be)return;Je&&_r(y.parent)&&Y_t(y.parent,Je)||Je&&x&&X_t(y,x,ge,Je)||(be?B0(L,!0,f.This_condition_will_always_return_true_since_this_0_is_always_defined,Ab(z)):qe(L,f.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}function X_t(n,a,c,d){return!!Ho(a,function _(y){if(Ve(y)){let x=Um(y);if(x&&x===d){if(Ve(n)||Ve(c)&&_r(c.parent))return!0;let L=c.parent,z=y.parent;for(;L&&z;){if(Ve(L)&&Ve(z)||L.kind===110&&z.kind===110)return Um(L)===Um(z);if(zr(L)&&zr(z)){if(Um(L.name)!==Um(z.name))return!1;z=z.expression,L=L.expression}else if(la(L)&&la(z))z=z.expression,L=L.expression;else return!1}}}return Ho(y,_)})}function Y_t(n,a){for(;_r(n)&&n.operatorToken.kind===56;){if(Ho(n.right,function d(_){if(Ve(_)){let y=Um(_);if(y&&y===a)return!0}return Ho(_,d)}))return!0;n=n.parent}return!1}function $_t(n){Ev(n),Da(n.statement),fM(n.expression)}function Q_t(n){Ev(n),fM(n.expression),Da(n.statement)}function sbe(n,a){return n.flags&16384&&qe(a,f.An_expression_of_type_void_cannot_be_tested_for_truthiness),n}function fM(n,a){return sbe(go(n,a),n)}function Z_t(n){Ev(n)||n.initializer&&n.initializer.kind===261&&Cbe(n.initializer),n.initializer&&(n.initializer.kind===261?ste(n.initializer):go(n.initializer)),n.condition&&fM(n.condition),n.incrementor&&go(n.incrementor),Da(n.statement),n.locals&&qb(n)}function eht(n){V7e(n);let a=Y6(n);if(n.awaitModifier?a&&Il(a)?bn(n.awaitModifier,f.for_await_loops_cannot_be_used_inside_a_class_static_block):(Gc(a)&6)===2&&ue<99&&Rc(n,16384):V.downlevelIteration&&ue<2&&Rc(n,256),n.initializer.kind===261)ste(n.initializer);else{let c=n.initializer,d=bB(n);if(c.kind===209||c.kind===210)nA(c,d||ht);else{let _=go(c);K4(c,f.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,f.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),d&&Gb(d,_,c,n.expression)}}Da(n.statement),n.locals&&qb(n)}function tht(n){V7e(n);let a=yye(go(n.expression));if(n.initializer.kind===261){let c=n.initializer.declarations[0];c&&ta(c.name)&&qe(c.name,f.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),ste(n.initializer)}else{let c=n.initializer,d=go(c);c.kind===209||c.kind===210?qe(c,f.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):Sa(wlt(a),d)?K4(c,f.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,f.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):qe(c,f.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}(a===Vr||!xu(a,126091264))&&qe(n.expression,f.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0,jn(a)),Da(n.statement),n.locals&&qb(n)}function bB(n){let a=n.awaitModifier?15:13;return yy(a,xD(n.expression),Oe,n.expression)}function yy(n,a,c,d){return Ct(a)?a:lbe(n,a,c,d,!0)||j}function lbe(n,a,c,d,_){let y=(n&2)!==0;if(a===Vr){fbe(d,a,y);return}let x=ue>=2,L=!x&&V.downlevelIteration,z=V.noUncheckedIndexedAccess&&!!(n&128);if(x||L||y){let vt=cte(a,n,x?d:void 0);if(_&&vt){let Rt=n&8?f.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:n&32?f.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:n&64?f.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:n&16?f.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:void 0;Rt&&td(c,vt.nextType,d,Rt)}if(vt||x)return z?G4(vt&&vt.yieldType):vt&&vt.yieldType}let U=a,re=!1,be=!1;if(n&4){if(U.flags&1048576){let vt=a.types,Rt=tr(vt,sn=>!(sn.flags&402653316));Rt!==vt&&(U=ii(Rt,2))}else U.flags&402653316&&(U=Vr);if(be=U!==a,be&&(ue<1&&d&&(qe(d,f.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),re=!0),U.flags&131072))return z?G4(ke):ke}if(!gy(U)){if(d&&!re){let vt=!!(n&4)&&!be,[Rt,sn]=Je(vt,L);B0(d,sn&&!!uM(U),Rt,jn(U))}return be?z?G4(ke):ke:void 0}let ge=r1(U,Dt);if(be&&ge)return ge.flags&402653316&&!V.noUncheckedIndexedAccess?ke:ii(z?[ge,ke,Oe]:[ge,ke],2);return n&128?G4(ge):ge;function Je(vt,Rt){var sn;return Rt?vt?[f.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[f.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:cbe(n,0,a,void 0)?[f.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:nht((sn=a.symbol)==null?void 0:sn.escapedName)?[f.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:vt?[f.Type_0_is_not_an_array_type_or_a_string_type,!0]:[f.Type_0_is_not_an_array_type,!0]}}function nht(n){switch(n){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}function cbe(n,a,c,d){if(Ct(c))return;let _=cte(c,n,d);return _&&_[iIe(a)]}function by(n=Vr,a=Vr,c=mn){if(n.flags&67359327&&a.flags&180227&&c.flags&180227){let d=fm([n,a,c]),_=Ni.get(d);return _||(_={yieldType:n,returnType:a,nextType:c},Ni.set(d,_)),_}return{yieldType:n,returnType:a,nextType:c}}function q3e(n){let a,c,d;for(let _ of n)if(!(_===void 0||_===Lr)){if(_===$o)return $o;a=In(a,_.yieldType),c=In(c,_.returnType),d=In(d,_.nextType)}return a||c||d?by(a&&ii(a),c&&ii(c),d&&Ea(d)):Lr}function lte(n,a){return n[a]}function xg(n,a,c){return n[a]=c}function cte(n,a,c){var d,_;if(Ct(n))return $o;if(!(n.flags&1048576)){let U=c?{errors:void 0}:void 0,re=J3e(n,a,c,U);if(re===Lr){if(c){let be=fbe(c,n,!!(a&2));U?.errors&&ka(be,...U.errors)}return}else if((d=U?.errors)!=null&&d.length)for(let be of U.errors)ns.add(be);return re}let y=a&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",x=lte(n,y);if(x)return x===Lr?void 0:x;let L;for(let U of n.types){let re=c?{errors:void 0}:void 0,be=J3e(U,a,c,re);if(be===Lr){if(c){let ge=fbe(c,n,!!(a&2));re?.errors&&ka(ge,...re.errors)}xg(n,y,Lr);return}else if((_=re?.errors)!=null&&_.length)for(let ge of re.errors)ns.add(ge);L=In(L,be)}let z=L?q3e(L):Lr;return xg(n,y,z),z===Lr?void 0:z}function ube(n,a){if(n===Lr)return Lr;if(n===$o)return $o;let{yieldType:c,returnType:d,nextType:_}=n;return a&&Vge(!0),by(rA(c,a)||j,rA(d,a)||j,_)}function J3e(n,a,c,d){if(Ct(n))return $o;let _=!1;if(a&2){let y=dbe(n,js)||X3e(n,js);if(y)if(y===Lr&&c)_=!0;else return a&8?ube(y,c):y}if(a&1){let y=dbe(n,gc)||X3e(n,gc);if(y)if(y===Lr&&c)_=!0;else if(a&2){if(y!==Lr)return y=ube(y,c),_?y:xg(n,"iterationTypesOfAsyncIterable",y)}else return y}if(a&2){let y=pbe(n,js,c,d,_);if(y!==Lr)return y}if(a&1){let y=pbe(n,gc,c,d,_);if(y!==Lr)return a&2?(y=ube(y,c),_?y:xg(n,"iterationTypesOfAsyncIterable",y)):y}return Lr}function dbe(n,a){return lte(n,a.iterableCacheKey)}function K3e(n,a){let c=dbe(n,a)||pbe(n,a,void 0,void 0,!1);return c===Lr?Uc:c}function X3e(n,a){let c;if(Mb(n,c=a.getGlobalIterableType(!1))||Mb(n,c=a.getGlobalIterableIteratorType(!1))){let[d]=qs(n),{returnType:_,nextType:y}=K3e(c,a);return xg(n,a.iterableCacheKey,by(a.resolveIterationType(d,void 0)||d,a.resolveIterationType(_,void 0)||_,y))}if(Mb(n,a.getGlobalGeneratorType(!1))){let[d,_,y]=qs(n);return xg(n,a.iterableCacheKey,by(a.resolveIterationType(d,void 0)||d,a.resolveIterationType(_,void 0)||_,y))}}function Y3e(n){let a=POe(!1),c=a&&Xe(pr(a),ml(n));return c&&nm(c)?rm(c):`__@${n}`}function pbe(n,a,c,d,_){let y=ba(n,Y3e(a.iteratorSymbolName)),x=y&&!(y.flags&16777216)?pr(y):void 0;if(Ct(x))return _?$o:xg(n,a.iterableCacheKey,$o);let L=x?Yo(x,0):void 0;if(!Et(L))return _?Lr:xg(n,a.iterableCacheKey,Lr);let z=Ea(Ft(L,ms)),U=$3e(z,a,c,d,_)??Lr;return _?U:xg(n,a.iterableCacheKey,U)}function fbe(n,a,c){let d=c?f.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:f.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator,_=!!uM(a)||!c&&Uk(n.parent)&&n.parent.expression===n&&UZ(!1)!==Wo&&Sa(a,UZ(!1));return B0(n,_,d,jn(a))}function rht(n,a,c,d){return $3e(n,a,c,d,!1)}function $3e(n,a,c,d,_){if(Ct(n))return $o;let y=Q3e(n,a)||iht(n,a);return y===Lr&&c&&(y=void 0,_=!0),y??(y=e7e(n,a,c,d,_)),y===Lr?void 0:y}function Q3e(n,a){return lte(n,a.iteratorCacheKey)}function iht(n,a){let c=a.getGlobalIterableIteratorType(!1);if(Mb(n,c)){let[d]=qs(n),_=Q3e(c,a)||e7e(c,a,void 0,void 0,!1),{returnType:y,nextType:x}=_===Lr?Uc:_;return xg(n,a.iteratorCacheKey,by(d,y,x))}if(Mb(n,a.getGlobalIteratorType(!1))||Mb(n,a.getGlobalGeneratorType(!1))){let[d,_,y]=qs(n);return xg(n,a.iteratorCacheKey,by(d,_,y))}}function Z3e(n,a){let c=Xe(n,"done")||Kt;return Sa(a===0?Kt:On,c)}function oht(n){return Z3e(n,0)}function aht(n){return Z3e(n,1)}function sht(n){if(Ct(n))return $o;let a=lte(n,"iterationTypesOfIteratorResult");if(a)return a;if(Mb(n,qst(!1))){let x=qs(n)[0];return xg(n,"iterationTypesOfIteratorResult",by(x,void 0,void 0))}if(Mb(n,Jst(!1))){let x=qs(n)[0];return xg(n,"iterationTypesOfIteratorResult",by(void 0,x,void 0))}let c=uc(n,oht),d=c!==Vr?Xe(c,"value"):void 0,_=uc(n,aht),y=_!==Vr?Xe(_,"value"):void 0;return!d&&!y?xg(n,"iterationTypesOfIteratorResult",Lr):xg(n,"iterationTypesOfIteratorResult",by(d,y||or,void 0))}function mbe(n,a,c,d,_){var y,x,L,z;let U=ba(n,c);if(!U&&c!=="next")return;let re=U&&!(c==="next"&&U.flags&16777216)?c==="next"?pr(U):_m(pr(U),2097152):void 0;if(Ct(re))return c==="next"?$o:El;let be=re?Yo(re,0):et;if(be.length===0){if(d){let cn=c==="next"?a.mustHaveANextMethodDiagnostic:a.mustBeAMethodDiagnostic;_?(_.errors??(_.errors=[]),_.errors.push(Or(d,cn,c))):qe(d,cn,c)}return c==="next"?Lr:void 0}if(re?.symbol&&be.length===1){let cn=a.getGlobalGeneratorType(!1),Fn=a.getGlobalIteratorType(!1),kn=((x=(y=cn.symbol)==null?void 0:y.members)==null?void 0:x.get(c))===re.symbol,Zn=!kn&&((z=(L=Fn.symbol)==null?void 0:L.members)==null?void 0:z.get(c))===re.symbol;if(kn||Zn){let Hn=kn?cn:Fn,{mapper:er}=re;return by(zb(Hn.typeParameters[0],er),zb(Hn.typeParameters[1],er),c==="next"?zb(Hn.typeParameters[2],er):void 0)}}let ge,Je;for(let cn of be)c!=="throw"&&Et(cn.parameters)&&(ge=In(ge,v_(cn,0))),Je=In(Je,ms(cn));let vt,Rt;if(c!=="throw"){let cn=ge?ii(ge):mn;if(c==="next")Rt=cn;else if(c==="return"){let Fn=a.resolveIterationType(cn,d)||j;vt=In(vt,Fn)}}let sn,un=Je?Ea(Je):Vr,sr=a.resolveIterationType(un,d)||j,Ln=sht(sr);return Ln===Lr?(d&&(_?(_.errors??(_.errors=[]),_.errors.push(Or(d,a.mustHaveAValueDiagnostic,c))):qe(d,a.mustHaveAValueDiagnostic,c)),sn=j,vt=In(vt,j)):(sn=Ln.yieldType,vt=In(vt,Ln.returnType)),by(sn,ii(vt),Rt)}function e7e(n,a,c,d,_){let y=q3e([mbe(n,a,"next",c,d),mbe(n,a,"return",c,d),mbe(n,a,"throw",c,d)]);return _?y:xg(n,a.iteratorCacheKey,y)}function HE(n,a,c){if(Ct(a))return;let d=t7e(a,c);return d&&d[iIe(n)]}function t7e(n,a){if(Ct(n))return $o;let c=a?2:1,d=a?js:gc;return cte(n,c,void 0)||rht(n,d,void 0,void 0)}function lht(n){Ev(n)||Evt(n)}function EB(n,a){let c=!!(a&1),d=!!(a&2);if(c){let _=HE(1,n,d);return _?d?vy(dM(_)):_:ht}return d?vy(n)||ht:n}function n7e(n,a){let c=EB(a,Gc(n));return!!(c&&(Dl(c,16384)||c.flags&32769))}function cht(n){if(Ev(n))return;let a=Y6(n);if(a&&Il(a)){hu(n,f.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!a){hu(n,f.A_return_statement_can_only_be_used_within_a_function_body);return}let c=pm(a),d=ms(c),_=Gc(a);if(Y||n.expression||d.flags&131072){let y=n.expression?ec(n.expression):Oe;if(a.kind===178)n.expression&&qe(n,f.Setters_cannot_return_a_value);else if(a.kind===176)n.expression&&!Gb(y,d,n,n.expression)&&qe(n,f.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(hD(a)){let x=EB(d,_)??d,L=_&2?Q4(y,!1,n,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):y;x&&Gb(L,x,n,n.expression)}}else a.kind!==176&&V.noImplicitReturns&&!n7e(a,d)&&qe(n,f.Not_all_code_paths_return_a_value)}function uht(n){Ev(n)||n.flags&65536&&hu(n,f.with_statements_are_not_allowed_in_an_async_function_block),go(n.expression);let a=Vn(n);if(!qE(a)){let c=hh(a,n.pos).start,d=n.statement.pos;JE(a,c,d-c,f.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function dht(n){Ev(n);let a,c=!1,d=go(n.expression);Ke(n.caseBlock.clauses,_=>{_.kind===297&&!c&&(a===void 0?a=_:(bn(_,f.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),c=!0)),_.kind===296&&r(y(_)),Ke(_.statements,Da),V.noFallthroughCasesInSwitch&&_.fallthroughFlowNode&&jz(_.fallthroughFlowNode)&&qe(_,f.Fallthrough_case_in_switch);function y(x){return()=>{let L=go(x.expression);Kye(d,L)||D4e(L,d,x.expression,void 0)}}}),n.caseBlock.locals&&qb(n.caseBlock)}function pht(n){Ev(n)||zn(n.parent,a=>ea(a)?"quit":a.kind===256&&a.label.escapedText===n.label.escapedText?(bn(n.label,f.Duplicate_label_0,pc(n.label)),!0):!1),Da(n.statement)}function fht(n){Ev(n)||Ve(n.expression)&&!n.expression.escapedText&&Ovt(n,f.Line_break_not_permitted_here),n.expression&&go(n.expression)}function mht(n){Ev(n),ate(n.tryBlock);let a=n.catchClause;if(a){if(a.variableDeclaration){let c=a.variableDeclaration;yB(c);let d=yu(c);if(d){let _=Ii(d);_&&!(_.flags&3)&&hu(d,f.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(c.initializer)hu(c.initializer,f.Catch_clause_variable_cannot_have_an_initializer);else{let _=a.block.locals;_&&mh(a.locals,y=>{let x=_.get(y);x?.valueDeclaration&&x.flags&2&&bn(x.valueDeclaration,f.Cannot_redeclare_identifier_0_in_catch_clause,Hi(y))})}}ate(a.block)}n.finallyBlock&&ate(n.finallyBlock)}function ute(n,a,c){let d=hd(n);if(d.length===0)return;for(let y of kb(n))c&&y.flags&4194304||r7e(n,y,bD(y,8576,!0),Pb(y));let _=a.valueDeclaration;if(_&&pi(_)){for(let y of _.members)if(!sa(y)&&!mD(y)){let x=Rr(y);r7e(n,x,Ru(y.name.expression),Pb(x))}}if(d.length>1)for(let y of d)_ht(n,y)}function r7e(n,a,c,d){let _=a.valueDeclaration,y=Oo(_);if(y&&Xi(y))return;let x=Age(n,c),L=Wr(n)&2?dl(n.symbol,264):void 0,z=_&&_.kind===226||y&&y.kind===167?_:void 0,U=Cd(a)===n.symbol?_:void 0;for(let re of x){let be=re.declaration&&Cd(Rr(re.declaration))===n.symbol?re.declaration:void 0,ge=U||be||(L&&!Et(Np(n),Je=>!!n1(Je,a.escapedName)&&!!r1(Je,re.keyType))?L:void 0);if(ge&&!Sa(d,re.type)){let Je=pT(ge,f.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,Ai(a),jn(d),jn(re.keyType),jn(re.type));z&&ge!==z&&ka(Je,Or(z,f._0_is_declared_here,Ai(a))),ns.add(Je)}}}function _ht(n,a){let c=a.declaration,d=Age(n,a.keyType),_=Wr(n)&2?dl(n.symbol,264):void 0,y=c&&Cd(Rr(c))===n.symbol?c:void 0;for(let x of d){if(x===a)continue;let L=x.declaration&&Cd(Rr(x.declaration))===n.symbol?x.declaration:void 0,z=y||L||(_&&!Et(Np(n),U=>!!Ag(U,a.keyType)&&!!r1(U,x.keyType))?_:void 0);z&&!Sa(a.type,x.type)&&qe(z,f._0_index_type_1_is_not_assignable_to_2_index_type_3,jn(a.keyType),jn(a.type),jn(x.keyType),jn(x.type))}}function mM(n,a){switch(n.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":qe(n,a,n.escapedText)}}function hht(n){ue>=1&&n.escapedText==="Object"&&(G<5||Vn(n).impliedNodeFormat===1)&&qe(n,f.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,tC[G])}function ght(n){let a=tr(o0(n),n_);if(!De(a))return;let c=cr(n),d=new Set,_=new Set;if(Ke(n.parameters,({name:x},L)=>{Ve(x)&&d.add(x.escapedText),ta(x)&&_.add(L)}),xge(n)){let x=a.length-1,L=a[x];c&&L&&Ve(L.name)&&L.typeExpression&&L.typeExpression.type&&!d.has(L.name.escapedText)&&!_.has(x)&&!jf(Ii(L.typeExpression.type))&&qe(L.name,f.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,Sr(L.name))}else Ke(a,({name:x,isNameFirst:L},z)=>{_.has(z)||Ve(x)&&d.has(x.escapedText)||(Ad(x)?c&&qe(x,f.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,fp(x),fp(x.left)):L||_u(c,x,f.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,Sr(x)))})}function SB(n){let a=!1;if(n)for(let d=0;d{d.default?(a=!0,vht(d.default,n,_)):a&&qe(d,f.Required_type_parameters_may_not_follow_optional_type_parameters);for(let y=0;y<_;y++)n[y].symbol===d.symbol&&qe(d.name,f.Duplicate_identifier_0,Ds(d.name))}}}function vht(n,a,c){d(n);function d(_){if(_.kind===183){let y=Oge(_);if(y.flags&262144)for(let x=c;xd)return!1;for(let z=0;zfc(c)&&ad(c))&&bn(a,f.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!n.name&&!ei(n,2048)&&hu(n,f.A_class_declaration_without_the_default_modifier_must_have_a_name),s7e(n),Ke(n.members,Da),qb(n)}function s7e(n){avt(n),hB(n),pM(n,n.name),SB(Py(n)),Y4(n);let a=Rr(n),c=Qs(a),d=qp(c),_=pr(a);i7e(a),rte(a),Fmt(n),!!(n.flags&33554432)||Wmt(n);let x=x_(n);if(x){Ke(x.typeArguments,Da),ue<2&&Rc(x.parent,1);let U=M1(n);U&&U!==x&&go(U.expression);let re=Np(c);re.length&&r(()=>{let be=re[0],ge=Cp(c),Je=Md(ge);if(Aht(Je,x),Da(x.expression),Et(x.typeArguments)){Ke(x.typeArguments,Da);for(let Rt of ed(Je,x.typeArguments,x))if(!D3e(x,Rt.typeParameters))break}let vt=qp(be,c.thisType);if(td(d,vt,void 0)?td(_,S4e(Je),n.name||n,f.Class_static_side_0_incorrectly_extends_base_class_static_side_1):u7e(n,d,vt,f.Class_0_incorrectly_extends_base_class_1),ge.flags&8650752&&(Li(_)?Yo(ge,1).some(sn=>sn.flags&4)&&!ei(n,64)&&qe(n.name||n,f.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):qe(n.name||n,f.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),!(Je.symbol&&Je.symbol.flags&32)&&!(ge.flags&8650752)){let Rt=Fh(Je,x.typeArguments,x);Ke(Rt,sn=>!th(sn.declaration)&&!hv(ms(sn),be))&&qe(x.expression,f.Base_constructors_must_all_have_the_same_return_type)}Rht(c,be)})}Tht(n,c,d,_);let L=_R(n);if(L)for(let U of L)(!zl(U.expression)||Hu(U.expression))&&qe(U.expression,f.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),tbe(U),r(z(U));r(()=>{ute(c,a),ute(_,a,!0),Qye(n),Nht(n)});function z(U){return()=>{let re=__(Ii(U));if(!qt(re))if(lz(re)){let be=re.symbol&&re.symbol.flags&32?f.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:f.Class_0_incorrectly_implements_interface_1,ge=qp(re,c.thisType);td(d,ge,void 0)||u7e(n,d,ge,be)}else qe(U,f.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}}function Tht(n,a,c,d){let y=x_(n)&&Np(a),x=y?.length?qp(Ha(y),a.thisType):void 0,L=Cp(a);for(let z of n.members)oU(z)||(Pl(z)&&Ke(z.parameters,U=>{pp(U,z)&&l7e(n,d,L,x,a,c,U,!0)}),l7e(n,d,L,x,a,c,z,!1))}function l7e(n,a,c,d,_,y,x,L,z=!0){let U=x.name&&Um(x.name)||Um(x);return U?c7e(n,a,c,d,_,y,x3(x),F1(x),sa(x),L,bl(U),z?x:void 0):0}function c7e(n,a,c,d,_,y,x,L,z,U,re,be){let ge=cr(n),Je=!!(n.flags&33554432);if(d&&(x||V.noImplicitOverride)){let vt=ml(re),Rt=z?a:y,sn=z?c:d,un=ba(Rt,vt),sr=ba(sn,vt),Ln=jn(d);if(un&&!sr&&x){if(be){let cn=v6e(re,sn);cn?qe(be,ge?f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,Ln,Ai(cn)):qe(be,ge?f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,Ln)}return 2}else if(un&&sr?.declarations&&V.noImplicitOverride&&!Je){let cn=Et(sr.declarations,F1);if(x)return 0;if(cn){if(L&&cn)return be&&qe(be,f.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,Ln),1}else{if(be){let Fn=U?ge?f.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:f.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:ge?f.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:f.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;qe(be,Fn,Ln)}return 1}}}else if(x){if(be){let vt=jn(_);qe(be,ge?f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:f.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,vt)}return 2}return 0}function u7e(n,a,c,d){let _=!1;for(let y of n.members){if(sa(y))continue;let x=y.name&&Um(y.name)||Um(y);if(x){let L=ba(a,x.escapedName),z=ba(c,x.escapedName);if(L&&z){let U=()=>Uo(void 0,f.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,Ai(x),jn(a),jn(c));td(pr(L),pr(z),y.name||y,void 0,U)||(_=!0)}}}_||td(a,c,n.name||n,d)}function Aht(n,a){let c=Yo(n,1);if(c.length){let d=c[0].declaration;if(d&&_p(d,2)){let _=Bg(n.symbol);bbe(a,_)||qe(a,f.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,Up(n.symbol))}}}function Iht(n,a,c){if(!a.name)return 0;let d=Rr(n),_=Qs(d),y=qp(_),x=pr(d),z=x_(n)&&Np(_),U=z?.length?qp(Ha(z),_.thisType):void 0,re=Cp(_),be=a.parent?x3(a):ei(a,16);return c7e(n,x,re,U,_,y,be,F1(a),sa(a),!1,bl(c))}function MD(n){return Al(n)&1?n.links.target:n}function xht(n){return tr(n.declarations,a=>a.kind===263||a.kind===264)}function Rht(n,a){var c,d,_,y;let x=ys(a),L;e:for(let z of x){let U=MD(z);if(U.flags&4194304)continue;let re=n1(n,U.escapedName);if(!re)continue;let be=MD(re),ge=If(U);if(C.assert(!!be,"derived should point to something, even if it is the base class' declaration."),be===U){let Je=Bg(n.symbol);if(ge&64&&(!Je||!ei(Je,64))){for(let vt of Np(n)){if(vt===a)continue;let Rt=n1(vt,U.escapedName),sn=Rt&&MD(Rt);if(sn&&sn!==U)continue e}L||(L=qe(Je,f.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1,jn(n),jn(a))),Je.kind===231?ka(L,Or(z.valueDeclaration??(z.declarations&&Ha(z.declarations))??Je,f.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,Ai(z),jn(a))):ka(L,Or(z.valueDeclaration??(z.declarations&&Ha(z.declarations))??Je,f.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,jn(n),Ai(z),jn(a)))}}else{let Je=If(be);if(ge&2||Je&2)continue;let vt,Rt=U.flags&98308,sn=be.flags&98308;if(Rt&&sn){if((Al(U)&6?(c=U.declarations)!=null&&c.some(Ln=>d7e(Ln,ge)):(d=U.declarations)!=null&&d.every(Ln=>d7e(Ln,ge)))||Al(U)&262144||be.valueDeclaration&&_r(be.valueDeclaration))continue;let un=Rt!==4&&sn===4;if(un||Rt===4&&sn!==4){let Ln=un?f._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:f._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;qe(Oo(be.valueDeclaration)||be.valueDeclaration,Ln,Ai(U),jn(a),jn(n))}else if(he){let Ln=(_=be.declarations)==null?void 0:_.find(cn=>cn.kind===172&&!cn.initializer);if(Ln&&!(be.flags&33554432)&&!(ge&64)&&!(Je&64)&&!((y=be.declarations)!=null&&y.some(cn=>!!(cn.flags&33554432)))){let cn=av(Bg(n.symbol)),Fn=Ln.name;if(Ln.exclamationToken||!cn||!Ve(Fn)||!Y||!f7e(Fn,n,cn)){let kn=f.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration;qe(Oo(be.valueDeclaration)||be.valueDeclaration,kn,Ai(U),jn(a))}}}continue}else if(gye(U)){if(gye(be)||be.flags&4)continue;C.assert(!!(be.flags&98304)),vt=f.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else U.flags&98304?vt=f.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:vt=f.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;qe(Oo(be.valueDeclaration)||be.valueDeclaration,vt,jn(a),Ai(U),jn(n))}}}function d7e(n,a){return a&64&&(!Jo(n)||!n.initializer)||fd(n.parent)}function Dht(n,a,c){if(!De(a))return c;let d=new Map;Ke(c,_=>{d.set(_.escapedName,_)});for(let _ of a){let y=ys(qp(_,n.thisType));for(let x of y){let L=d.get(x.escapedName);L&&x.parent===L.parent&&d.delete(x.escapedName)}}return Vo(d.values())}function Cht(n,a){let c=Np(n);if(c.length<2)return!0;let d=new Map;Ke(sge(n).declaredProperties,y=>{d.set(y.escapedName,{prop:y,containingType:n})});let _=!0;for(let y of c){let x=ys(qp(y,n.thisType));for(let L of x){let z=d.get(L.escapedName);if(!z)d.set(L.escapedName,{prop:L,containingType:y});else if(z.containingType!==n&&!Gct(z.prop,L)){_=!1;let re=jn(z.containingType),be=jn(y),ge=Uo(void 0,f.Named_property_0_of_types_1_and_2_are_not_identical,Ai(L),re,be);ge=Uo(ge,f.Interface_0_cannot_simultaneously_extend_types_1_and_2,jn(n),re,be),ns.add(Og(Vn(a),a,ge))}}}return _}function Nht(n){if(!Y||!Ne||n.flags&33554432)return;let a=av(n);for(let c of n.members)if(!(cd(c)&128)&&!sa(c)&&p7e(c)){let d=c.name;if(Ve(d)||Xi(d)||Za(d)){let _=pr(Rr(c));_.flags&3||XP(_)||(!a||!f7e(d,_,a))&&qe(c.name,f.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,Ds(d))}}}function p7e(n){return n.kind===172&&!F1(n)&&!n.exclamationToken&&!n.initializer}function Pht(n,a,c,d,_){for(let y of c)if(y.pos>=d&&y.pos<=_){let x=k.createPropertyAccessExpression(k.createThis(),n);qa(x.expression,x),qa(x,y),x.flowNode=y.returnFlowNode;let L=Hb(x,a,jb(a));if(!XP(L))return!0}return!1}function f7e(n,a,c){let d=Za(n)?k.createElementAccessExpression(k.createThis(),n.expression):k.createPropertyAccessExpression(k.createThis(),n);qa(d.expression,d),qa(d,c),d.flowNode=c.returnFlowNode;let _=Hb(d,a,jb(a));return!XP(_)}function Mht(n){Rg(n)||fvt(n),SB(n.typeParameters),r(()=>{mM(n.name,f.Interface_name_cannot_be_0),Y4(n);let a=Rr(n);i7e(a);let c=dl(a,264);if(n===c){let d=Qs(a),_=qp(d);if(Cht(d,n.name)){for(let y of Np(d))td(_,qp(y,d.thisType),n.name,f.Interface_0_incorrectly_extends_interface_1);ute(d,a)}}A3e(n)}),Ke(MC(n),a=>{(!zl(a.expression)||Hu(a.expression))&&qe(a.expression,f.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),tbe(a)}),Ke(n.members,Da),r(()=>{Qye(n),qb(n)})}function Lht(n){Rg(n),mM(n.name,f.Type_alias_name_cannot_be_0),Y4(n),SB(n.typeParameters),n.type.kind===141?(!J5.has(n.name.escapedText)||De(n.typeParameters)!==1)&&qe(n.type,f.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(Da(n.type),qb(n))}function m7e(n){let a=ti(n);if(!(a.flags&1024)){a.flags|=1024;let c=0;for(let d of n.members){let _=kht(d,c);ti(d).enumMemberValue=_,c=typeof _=="number"?_+1:void 0}}}function kht(n,a){if(TL(n.name))qe(n.name,f.Computed_property_names_are_not_allowed_in_enums);else{let c=Zx(n.name);sg(c)&&!oN(c)&&qe(n.name,f.An_enum_member_cannot_have_a_numeric_name)}if(n.initializer)return wht(n);if(!(n.parent.flags&33554432&&!x1(n.parent))){if(a!==void 0)return a;qe(n.name,f.Enum_member_must_have_initializer)}}function wht(n){let a=x1(n.parent),c=n.initializer,d=_M(c,n);return d!==void 0?a&&typeof d=="number"&&!isFinite(d)&&qe(c,isNaN(d)?f.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:f.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):a?qe(c,f.const_enum_member_initializers_must_be_constant_expressions):n.parent.flags&33554432?qe(c,f.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):td(go(c),Dt,c,f.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),d}function _M(n,a){switch(n.kind){case 224:let c=_M(n.operand,a);if(typeof c=="number")switch(n.operator){case 40:return c;case 41:return-c;case 55:return~c}break;case 226:let d=_M(n.left,a),_=_M(n.right,a);if(typeof d=="number"&&typeof _=="number")switch(n.operatorToken.kind){case 52:return d|_;case 51:return d&_;case 49:return d>>_;case 50:return d>>>_;case 48:return d<<_;case 53:return d^_;case 42:return d*_;case 44:return d/_;case 40:return d+_;case 41:return d-_;case 45:return d%_;case 43:return d**_}else if((typeof d=="string"||typeof d=="number")&&(typeof _=="string"||typeof _=="number")&&n.operatorToken.kind===40)return""+d+_;break;case 11:case 15:return n.text;case 228:return h7e(n,a);case 9:return Nbe(n),+n.text;case 217:return _M(n.expression,a);case 80:{let x=n;if(oN(x.escapedText)&&Us(x,111551,!0)===JP(x.escapedText,111551,void 0))return+x.escapedText}case 211:if(zl(n)){let x=Us(n,111551,!0);if(x){if(x.flags&8)return a?_7e(n,x,a):kD(x.valueDeclaration);if(iM(x)){let L=x.valueDeclaration;if(L&&Oi(L)&&!L.type&&L.initializer&&(!a||L!==a&&nv(L,a)))return _M(L.initializer,L)}}}break;case 212:let y=n.expression;if(zl(y)&&us(n.argumentExpression)){let x=Us(y,111551,!0);if(x&&x.flags&384){let L=ml(n.argumentExpression.text),z=x.exports.get(L);if(z)return a?_7e(n,z,a):kD(z.valueDeclaration)}}break}}function _7e(n,a,c){let d=a.valueDeclaration;if(!d||d===c){qe(n,f.Property_0_is_used_before_being_assigned,Ai(a));return}return nv(d,c)?kD(d):(qe(n,f.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0)}function h7e(n,a){let c=n.head.text;for(let d of n.templateSpans){let _=_M(d.expression,a);if(_===void 0)return;c+=_,c+=d.literal.text}return c}function Oht(n){r(()=>Fht(n))}function Fht(n){Rg(n),pM(n,n.name),Y4(n),n.members.forEach(Wht),m7e(n);let a=Rr(n),c=dl(a,n.kind);if(n===c){if(a.declarations&&a.declarations.length>1){let _=x1(n);Ke(a.declarations,y=>{v0(y)&&x1(y)!==_&&qe(Oo(y),f.Enum_declarations_must_all_be_const_or_non_const)})}let d=!1;Ke(a.declarations,_=>{if(_.kind!==266)return!1;let y=_;if(!y.members.length)return!1;let x=y.members[0];x.initializer||(d?qe(x.name,f.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):d=!0)})}}function Wht(n){Xi(n.name)&&qe(n,f.An_enum_member_cannot_be_named_with_a_private_identifier),n.initializer&&go(n.initializer)}function zht(n){let a=n.declarations;if(a){for(let c of a)if((c.kind===263||c.kind===262&&Xf(c.body))&&!(c.flags&33554432))return c}}function Bht(n,a){let c=_h(n),d=_h(a);return Nh(c)?Nh(d):Nh(d)?!1:c===d}function Ght(n){n.body&&(Da(n.body),I_(n)||qb(n)),r(a);function a(){var c,d;let _=I_(n),y=n.flags&33554432;_&&!y&&qe(n.name,f.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);let x=Lu(n),L=x?f.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:f.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(TB(n,L))return;Rg(n)||!y&&n.name.kind===11&&bn(n.name,f.Only_ambient_modules_can_use_quoted_names),Ve(n.name)&&pM(n,n.name),Y4(n);let z=Rr(n);if(z.flags&512&&!y&&Oq(n,V1(V))){if(im(V)&&!Vn(n).externalModuleIndicator&&qe(n.name,f.Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement,Qe),((c=z.declarations)==null?void 0:c.length)>1){let U=zht(z);U&&(Vn(n)!==Vn(U)?qe(n.name,f.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):n.posre.kind===95);U&&qe(U,f.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(x)if(I1(n)){if((_||Rr(n).flags&33554432)&&n.body)for(let re of n.body.statements)_be(re,_)}else Nh(n.parent)?_?qe(n.name,f.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Yc(Zf(n.name))&&qe(n.name,f.Ambient_module_declaration_cannot_specify_relative_module_name):_?qe(n.name,f.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):qe(n.name,f.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}}function _be(n,a){switch(n.kind){case 243:for(let d of n.declarationList.declarations)_be(d,a);break;case 277:case 278:hu(n,f.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 271:case 272:hu(n,f.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 208:case 260:let c=n.name;if(ta(c)){for(let d of c.elements)_be(d,a);break}case 263:case 266:case 262:case 264:case 267:case 265:if(a)return;break}}function Vht(n){switch(n.kind){case 80:return n;case 166:do n=n.left;while(n.kind!==80);return n;case 211:do{if(tg(n.expression)&&!Xi(n.name))return n.name;n=n.expression}while(n.kind!==80);return n}}function hbe(n){let a=uR(n);if(!a||Fl(a))return!1;if(!Na(a))return qe(a,f.String_literal_expected),!1;let c=n.parent.kind===268&&Lu(n.parent.parent);if(n.parent.kind!==312&&!c)return qe(a,n.kind===278?f.Export_declarations_are_not_permitted_in_a_namespace:f.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(c&&Yc(a.text)&&!xb(n))return qe(n,f.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!tu(n)&&n.attributes){let d=n.attributes.token===118?f.Import_attribute_values_must_be_string_literal_expressions:f.Import_assertion_values_must_be_string_literal_expressions,_=!1;for(let y of n.attributes.elements)Na(y.value)||(_=!0,qe(y.value,d));return!_}return!0}function dte(n){var a,c,d,_;let y=Rr(n),x=Fc(y);if(x!==ft){if(y=is(y.exportSymbol||y),cr(n)&&!(x.flags&111551)&&!a0(n)){let U=IA(n)?n.propertyName||n.name:od(n)?n.name:n;if(C.assert(n.kind!==280),n.kind===281){let re=qe(U,f.Types_cannot_appear_in_export_declarations_in_JavaScript_files),be=(c=(a=Vn(n).symbol)==null?void 0:a.exports)==null?void 0:c.get((n.propertyName||n.name).escapedText);if(be===x){let ge=(d=be.declarations)==null?void 0:d.find(Kx);ge&&ka(re,Or(ge,f._0_is_automatically_exported_here,Hi(be.escapedName)))}}else{C.assert(n.kind!==260);let re=zn(n,Xm(Lc,tu)),be=(re&&((_=cR(re))==null?void 0:_.text))??"...",ge=Hi(Ve(U)?U.escapedText:y.escapedName);qe(U,f._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,ge,`import("${be}").${ge}`)}return}let L=Au(x),z=(y.flags&1160127?111551:0)|(y.flags&788968?788968:0)|(y.flags&1920?1920:0);if(L&z){let U=n.kind===281?f.Export_declaration_conflicts_with_exported_declaration_of_0:f.Import_declaration_conflicts_with_local_declaration_of_0;qe(n,U,Ai(y))}else n.kind!==281&&V.isolatedModules&&!zn(n,a0)&&y.flags&1160127&&qe(n,f.Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,Ai(y),Qe);if(im(V)&&!a0(n)&&!(n.flags&33554432)){let U=wf(y),re=!(L&111551);if(re||U)switch(n.kind){case 273:case 276:case 271:{if(V.preserveValueImports||V.verbatimModuleSyntax){C.assertIsDefined(n.name,"An ImportClause with a symbol should have a name");let be=V.verbatimModuleSyntax&&sR(n)?f.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:re?V.verbatimModuleSyntax?f._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:f._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:V.verbatimModuleSyntax?f._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:f._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled,ge=Sr(n.kind===276&&n.propertyName||n.name);_g(qe(n,be,ge),re?void 0:U,ge)}re&&n.kind===271&&_p(n,32)&&qe(n,f.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,Qe);break}case 281:if(V.verbatimModuleSyntax||Vn(U)!==Vn(n)){let be=Sr(n.propertyName||n.name),ge=re?qe(n,f.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,Qe):qe(n,f._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,be,Qe);_g(ge,re?void 0:U,be);break}}V.verbatimModuleSyntax&&n.kind!==271&&!cr(n)&&(G===1||Vn(n).impliedNodeFormat===1)&&qe(n,f.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}if(tp(n)){let U=gbe(y,n);fb(U)&&U.declarations&&sy(n,U.declarations,U.escapedName)}}}function gbe(n,a){if(!(n.flags&2097152)||fb(n)||!Fm(n))return n;let c=Fc(n);if(c===ft)return c;for(;n.flags&2097152;){let d=dye(n);if(d){if(d===c)break;if(d.declarations&&De(d.declarations))if(fb(d)){sy(a,d.declarations,d.escapedName);break}else{if(n===c)break;n=d}}else break}return c}function pte(n){pM(n,n.name),dte(n),n.kind===276&&Sr(n.propertyName||n.name)==="default"&&vh(V)&&G!==4&&(G<5||Vn(n).impliedNodeFormat===1)&&Rc(n,131072)}function g7e(n){var a;let c=n.attributes;if(c){let d=zge(!0);d!==Pa&&td(ce(c),Oz(d,32768),c);let _=IJ(n),y=s2(c,_?bn:void 0),x=n.attributes.token===118;if(_&&y)return;if((G===199&&n.moduleSpecifier&&io(n.moduleSpecifier))!==99&&G!==99&&G!==200){let z=x?G===199?f.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:f.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:G===199?f.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:f.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve;return bn(c,z)}if(Lc(n)?(a=n.importClause)!=null&&a.isTypeOnly:n.isTypeOnly)return bn(c,x?f.Import_attributes_cannot_be_used_with_type_only_imports_or_exports:f.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(y)return bn(c,f.resolution_mode_can_only_be_set_for_type_only_imports)}}function jht(n){return vd(ec(n.value))}function Uht(n){if(!TB(n,cr(n)?f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!Rg(n)&&I3(n)&&hu(n,f.An_import_declaration_cannot_have_modifiers),hbe(n)){let a=n.importClause;a&&!Wvt(a)&&(a.name&&pte(a),a.namedBindings&&(a.namedBindings.kind===274?(pte(a.namedBindings),G!==4&&(G<5||Vn(n).impliedNodeFormat===1)&&vh(V)&&Rc(n,65536)):_d(n,n.moduleSpecifier)&&Ke(a.namedBindings.elements,pte)))}g7e(n)}}function Hht(n){if(!TB(n,cr(n)?f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(Rg(n),sR(n)||hbe(n)))if(pte(n),ei(n,32)&&yb(n),n.moduleReference.kind!==283){let a=Fc(Rr(n));if(a!==ft){let c=Au(a);if(c&111551){let d=Bp(n.moduleReference);Us(d,112575).flags&1920||qe(d,f.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,Ds(d))}c&788968&&mM(n.name,f.Import_name_cannot_be_0)}n.isTypeOnly&&bn(n,f.An_import_alias_cannot_use_import_type)}else G>=5&&G!==200&&Vn(n).impliedNodeFormat===void 0&&!n.isTypeOnly&&!(n.flags&33554432)&&bn(n,f.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}function qht(n){if(!TB(n,cr(n)?f.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:f.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!Rg(n)&&toe(n)&&hu(n,f.An_export_declaration_cannot_have_modifiers),n.moduleSpecifier&&n.exportClause&&Df(n.exportClause)&&De(n.exportClause.elements)&&ue===0&&Rc(n,4194304),Jht(n),!n.moduleSpecifier||hbe(n))if(n.exportClause&&!Sh(n.exportClause)){Ke(n.exportClause.elements,Zht);let a=n.parent.kind===268&&Lu(n.parent.parent),c=!a&&n.parent.kind===268&&!n.moduleSpecifier&&n.flags&33554432;n.parent.kind!==312&&!a&&!c&&qe(n,f.Export_declarations_are_not_permitted_in_a_namespace)}else{let a=_d(n,n.moduleSpecifier);a&&uy(a)?qe(n.moduleSpecifier,f.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Ai(a)):n.exportClause&&dte(n.exportClause),G!==4&&(G<5||Vn(n).impliedNodeFormat===1)&&(n.exportClause?vh(V)&&Rc(n,65536):Rc(n,32768))}g7e(n)}}function Jht(n){var a;return n.isTypeOnly&&((a=n.exportClause)==null?void 0:a.kind)===279?X7e(n.exportClause):!1}function TB(n,a){let c=n.parent.kind===312||n.parent.kind===268||n.parent.kind===267;return c||hu(n,a),!c}function Kht(n){return d3(n,a=>!!Rr(a).isReferenced)}function Xht(n){return d3(n,a=>!!$i(Rr(a)).constEnumReferenced)}function Yht(n){return Lc(n)&&n.importClause&&!n.importClause.isTypeOnly&&Kht(n.importClause)&&!vte(n.importClause,!0)&&!Xht(n.importClause)}function $ht(n){return tu(n)&&Th(n.moduleReference)&&!n.isTypeOnly&&Rr(n).isReferenced&&!vte(n,!1)&&!$i(Rr(n)).constEnumReferenced}function Qht(n){if(gt)for(let a of n.statements)(Yht(a)||$ht(a))&&qe(a,f.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}function Zht(n){if(dte(n),xf(V)&&FP(n.propertyName||n.name,!0),n.parent.parent.moduleSpecifier)vh(V)&&G!==4&&(G<5||Vn(n).impliedNodeFormat===1)&&Sr(n.propertyName||n.name)==="default"&&Rc(n,131072);else{let a=n.propertyName||n.name,c=vl(a,a.escapedText,2998271,void 0,void 0,!0);if(c&&(c===je||c===at||c.declarations&&Nh(Q(c.declarations[0]))))qe(a,f.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,Sr(a));else{!n.isTypeOnly&&!n.parent.parent.isTypeOnly&&yb(n);let d=c&&(c.flags&2097152?Fc(c):c);(!d||Au(d)&111551)&&ec(n.propertyName||n.name)}}}function egt(n){let a=n.isExportEquals?f.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:f.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration;if(TB(n,a))return;let c=n.parent.kind===312?n.parent:n.parent.parent;if(c.kind===267&&!Lu(c)){n.isExportEquals?qe(n,f.An_export_assignment_cannot_be_used_in_a_namespace):qe(n,f.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}!Rg(n)&&I3(n)&&hu(n,f.An_export_assignment_cannot_have_modifiers);let d=yu(n);d&&td(ec(n.expression),Ii(d),n.expression);let _=!n.isExportEquals&&!(n.flags&33554432)&&V.verbatimModuleSyntax&&(G===1||Vn(n).impliedNodeFormat===1);if(n.expression.kind===80){let y=n.expression,x=mf(Us(y,-1,!0,!0,n));if(x){let L=wf(x,111551);if(Nee(x,y),Au(x)&111551?(ec(y),!_&&!(n.flags&33554432)&&V.verbatimModuleSyntax&&L&&qe(y,n.isExportEquals?f.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:f.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,Sr(y))):!_&&!(n.flags&33554432)&&V.verbatimModuleSyntax&&qe(y,n.isExportEquals?f.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:f.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,Sr(y)),!_&&!(n.flags&33554432)&&im(V)&&!(x.flags&111551)){let z=Au(x,!1,!0);x.flags&2097152&&z&788968&&!(z&111551)&&(!L||Vn(L)!==Vn(n))?qe(y,n.isExportEquals?f._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:f._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,Sr(y),Qe):L&&Vn(L)!==Vn(n)&&_g(qe(y,n.isExportEquals?f._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:f._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,Sr(y),Qe),L,Sr(y))}}else ec(y);xf(V)&&FP(y,!0)}else ec(n.expression);_&&qe(n,f.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled),v7e(c),n.flags&33554432&&!zl(n.expression)&&bn(n.expression,f.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),n.isExportEquals&&(G>=5&&G!==200&&(n.flags&33554432&&Vn(n).impliedNodeFormat===99||!(n.flags&33554432)&&Vn(n).impliedNodeFormat!==1)?bn(n,f.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):G===4&&!(n.flags&33554432)&&bn(n,f.Export_assignment_is_not_supported_when_module_flag_is_system))}function tgt(n){return Bc(n.exports,(a,c)=>c!=="export=")}function v7e(n){let a=Rr(n),c=$i(a);if(!c.exportsChecked){let d=a.exports.get("export=");if(d&&tgt(a)){let y=Fm(d)||d.valueDeclaration;y&&!xb(y)&&!cr(y)&&qe(y,f.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}let _=Mh(a);_&&_.forEach(({declarations:y,flags:x},L)=>{if(L==="__export"||x&1920)return;let z=au(y,w8(oIe,O8(fd)));if(!(x&524288&&z<=2)&&z>1&&!fte(y))for(let U of y)nIe(U)&&ns.add(Or(U,f.Cannot_redeclare_exported_variable_0,Hi(L)))}),c.exportsChecked=!0}}function fte(n){return n&&n.length>1&&n.every(a=>cr(a)&&ks(a)&&(yS(a.expression)||tg(a.expression)))}function Da(n){if(n){let a=N;N=n,I=0,ngt(n),N=a}}function ngt(n){qL(n)&&Ke(n.jsDoc,({comment:c,tags:d})=>{y7e(c),Ke(d,_=>{y7e(_.comment),cr(n)&&Da(_)})});let a=n.kind;if(i)switch(a){case 267:case 263:case 264:case 262:i.throwIfCancellationRequested()}switch(a>=243&&a<=259&&HL(n)&&n.flowNode&&!jz(n.flowNode)&&_u(V.allowUnreachableCode===!1,n,f.Unreachable_code_detected),a){case 168:return E3e(n);case 169:return S3e(n);case 172:return I3e(n);case 171:return zmt(n);case 185:case 184:case 179:case 180:case 181:return X4(n);case 174:case 173:return Bmt(n);case 175:return Gmt(n);case 176:return Vmt(n);case 177:case 178:return R3e(n);case 183:return tbe(n);case 182:return wmt(n);case 186:return Kmt(n);case 187:return Xmt(n);case 188:return Ymt(n);case 189:return $mt(n);case 192:case 193:return Qmt(n);case 196:case 190:case 191:return Da(n.type);case 197:return n_t(n);case 198:return r_t(n);case 194:return i_t(n);case 195:return o_t(n);case 203:return a_t(n);case 205:return s_t(n);case 202:return l_t(n);case 335:return R_t(n);case 336:return x_t(n);case 353:case 345:case 347:return g_t(n);case 352:return v_t(n);case 351:return y_t(n);case 331:case 332:case 333:return E_t(n);case 348:return S_t(n);case 355:return T_t(n);case 324:A_t(n);case 322:case 321:case 319:case 320:case 329:b7e(n),Ho(n,Da);return;case 325:rgt(n);return;case 316:return Da(n.type);case 340:case 342:case 341:return D_t(n);case 357:return b_t(n);case 350:return I_t(n);case 199:return Zmt(n);case 200:return e_t(n);case 262:return h_t(n);case 241:case 268:return ate(n);case 243:return q_t(n);case 244:return J_t(n);case 245:return K_t(n);case 246:return $_t(n);case 247:return Q_t(n);case 248:return Z_t(n);case 249:return tht(n);case 250:return eht(n);case 251:case 252:return lht(n);case 253:return cht(n);case 254:return uht(n);case 255:return dht(n);case 256:return pht(n);case 257:return fht(n);case 258:return mht(n);case 260:return U_t(n);case 208:return H_t(n);case 263:return Sht(n);case 264:return Mht(n);case 265:return Lht(n);case 266:return Oht(n);case 267:return Ght(n);case 272:return Uht(n);case 271:return Hht(n);case 278:return qht(n);case 277:return egt(n);case 242:case 259:Ev(n);return;case 282:return Umt(n)}}function y7e(n){Do(n)&&Ke(n,a=>{CA(a)&&Da(a)})}function b7e(n){if(!cr(n))if(n5(n)||VR(n)){let a=ma(n5(n)?54:58),c=n.postfix?f._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:f._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,d=n.type,_=Ii(d);bn(n,c,a,jn(VR(n)&&!(_===Vr||_===or)?ii(In([_,Oe],n.postfix?void 0:pe)):_))}else bn(n,f.JSDoc_types_can_only_be_used_inside_documentation_comments)}function rgt(n){b7e(n),Da(n.type);let{parent:a}=n;if(Co(a)&&jR(a.parent)){Ya(a.parent.parameters)!==a&&qe(n,f.A_rest_parameter_must_be_last_in_a_parameter_list);return}Z1(a)||qe(n,f.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);let c=n.parent.parent;if(!n_(c)){qe(n,f.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}let d=JL(c);if(!d)return;let _=u0(c);(!_||Ya(_.parameters).symbol!==d)&&qe(n,f.A_rest_parameter_must_be_last_in_a_parameter_list)}function igt(n){let a=Ii(n.type),{parent:c}=n,d=n.parent.parent;if(Z1(n.parent)&&n_(d)){let _=u0(d),y=xH(d.parent.parent);if(_||y){let x=Zs(y?d.parent.parent.typeExpression.parameters:_.parameters),L=JL(d);if(!x||L&&x.symbol===L&&$h(x))return Gu(a)}}return Co(c)&&jR(c.parent)?Gu(a):lp(a)}function yx(n){let a=Vn(n),c=ti(a);c.flags&1?C.assert(!c.deferredNodes,"A type-checked file should have no deferred nodes."):(c.deferredNodes||(c.deferredNodes=new Set),c.deferredNodes.add(n))}function ogt(n){let a=ti(n);a.deferredNodes&&a.deferredNodes.forEach(agt),a.deferredNodes=void 0}function agt(n){var a,c;(a=lr)==null||a.push(lr.Phase.Check,"checkDeferredNode",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});let d=N;switch(N=n,I=0,n.kind){case 213:case 214:case 215:case 170:case 286:eA(n);break;case 218:case 219:case 174:case 173:emt(n);break;case 177:case 178:R3e(n);break;case 231:Eht(n);break;case 168:kmt(n);break;case 285:cpt(n);break;case 284:dpt(n);break;case 216:case 234:case 217:Rft(n);break;case 222:go(n.expression);break;case 226:D3(n)&&eA(n);break}N=d,(c=lr)==null||c.pop()}function sgt(n){var a,c;(a=lr)==null||a.push(lr.Phase.Check,"checkSourceFile",{path:n.path},!0),nl("beforeCheck"),lgt(n),nl("afterCheck"),Yp("Check","beforeCheck","afterCheck"),(c=lr)==null||c.pop()}function E7e(n,a){if(a)return!1;switch(n){case 0:return!!V.noUnusedLocals;case 1:return!!V.noUnusedParameters;default:return C.assertNever(n)}}function S7e(n){return uf.get(n.path)||et}function lgt(n){let a=ti(n);if(!(a.flags&1)){if(eN(n,V,e))return;kvt(n),Gi(gE),Gi(vE),Gi(ub),Gi(db),Gi(mg),Ke(n.statements,Da),Da(n.endOfFileToken),ogt(n),Fp(n)&&qb(n),r(()=>{!n.isDeclarationFile&&(V.noUnusedLocals||V.noUnusedParameters)&&z3e(S7e(n),(c,d,_)=>{!$x(c)&&E7e(d,!!(c.flags&33554432))&&ns.add(_)}),n.isDeclarationFile||M_t()}),V.importsNotUsedAsValues===2&&!n.isDeclarationFile&&ac(n)&&Qht(n),Fp(n)&&v7e(n),gE.length&&(Ke(gE,w_t),Gi(gE)),vE.length&&(Ke(vE,O_t),Gi(vE)),ub.length&&(Ke(ub,B_t),Gi(ub)),db.length&&(Ke(db,V_t),Gi(db)),a.flags|=1}}function T7e(n,a){try{return i=a,cgt(n)}finally{i=void 0}}function vbe(){for(let n of t)n();t=[]}function ybe(n){vbe();let a=r;r=c=>c(),sgt(n),r=a}function cgt(n){if(n){vbe();let a=ns.getGlobalDiagnostics(),c=a.length;ybe(n);let d=ns.getDiagnostics(n.fileName),_=ns.getGlobalDiagnostics();if(_!==a){let y=mne(a,_,XC);return xo(y,d)}else if(c===0&&_.length>0)return xo(_,d);return d}return Ke(e.getSourceFiles(),ybe),ns.getDiagnostics()}function ugt(){return vbe(),ns.getGlobalDiagnostics()}function dgt(n,a){if(n.flags&67108864)return[];let c=ua(),d=!1;return _(),c.delete("this"),Ige(c);function _(){for(;n;){switch(ph(n)&&n.locals&&!Nh(n)&&x(n.locals,a),n.kind){case 312:if(!ac(n))break;case 267:L(Rr(n).exports,a&2623475);break;case 266:x(Rr(n).exports,a&8);break;case 231:n.name&&y(n.symbol,a);case 263:case 264:d||x(Lb(Rr(n)),a&788968);break;case 218:n.name&&y(n.symbol,a);break}bie(n)&&y(Bt,a),d=sa(n),n=n.parent}x(Se,a)}function y(z,U){if(AR(z)&U){let re=z.escapedName;c.has(re)||c.set(re,z)}}function x(z,U){U&&z.forEach(re=>{y(re,U)})}function L(z,U){U&&z.forEach(re=>{!dl(re,281)&&!dl(re,280)&&re.escapedName!=="default"&&y(re,U)})}}function pgt(n){return n.kind===80&&PR(n.parent)&&Oo(n.parent)===n}function A7e(n){for(;n.parent.kind===166;)n=n.parent;return n.parent.kind===183}function fgt(n){for(;n.parent.kind===211;)n=n.parent;return n.parent.kind===233}function I7e(n,a){let c,d=su(n);for(;d&&!(c=a(d));)d=su(d);return c}function mgt(n){return!!zn(n,a=>Pl(a)&&Xf(a.body)||Jo(a)?!0:pi(a)||zs(a)?"quit":!1)}function bbe(n,a){return!!I7e(n,c=>c===a)}function _gt(n){for(;n.parent.kind===166;)n=n.parent;if(n.parent.kind===271)return n.parent.moduleReference===n?n.parent:void 0;if(n.parent.kind===277)return n.parent.expression===n?n.parent:void 0}function mte(n){return _gt(n)!==void 0}function hgt(n){switch(Wl(n.parent.parent)){case 1:case 3:return ff(n.parent);case 5:if(zr(n.parent)&&IR(n.parent)===n)return;case 4:case 2:return Rr(n.parent.parent)}}function ggt(n){let a=n.parent;for(;Ad(a);)n=a,a=a.parent;if(a&&a.kind===205&&a.qualifier===n)return a}function vgt(n){if(n.expression.kind===110){let a=wd(n,!1,!1);if(ea(a)){let c=O8e(a);if(c){let d=f1(c,void 0),_=W8e(c,d);return _&&!Ct(_)}}}}function x7e(n){if(Wg(n))return ff(n.parent);if(cr(n)&&n.parent.kind===211&&n.parent===n.parent.parent.left&&!Xi(n)&&!y0(n)&&!vgt(n.parent)){let a=hgt(n);if(a)return a}if(n.parent.kind===277&&zl(n)){let a=Us(n,2998271,!0);if(a&&a!==ft)return a}else if(Qd(n)&&mte(n)){let a=p0(n,271);return C.assert(a!==void 0),nx(n,!0)}if(Qd(n)){let a=ggt(n);if(a){Ii(a);let c=ti(n).resolvedSymbol;return c===ft?void 0:c}}for(;soe(n);)n=n.parent;if(fgt(n)){let a=0;n.parent.kind===233?(a=Zh(n)?788968:111551,R3(n.parent)&&(a|=111551)):a=1920,a|=2097152;let c=zl(n)?Us(n,a,!0):void 0;if(c)return c}if(n.parent.kind===348)return JL(n.parent);if(n.parent.kind===168&&n.parent.parent.kind===352){C.assert(!cr(n));let a=Lie(n.parent);return a&&a.symbol}if(eg(n)){if(Fl(n))return;let a=zn(n,Xm(CA,xN,y0)),c=a?901119:111551;if(n.kind===80){if(aR(n)&&vx(n)){let _=Fee(n.parent);return _===ft?void 0:_}let d=Us(n,c,!0,!0,u0(n));if(!d&&a){let _=zn(n,Xm(pi,fd));if(_)return AB(n,!0,Rr(_))}if(d&&a){let _=SS(n);if(_&&Q1(_)&&_===d.valueDeclaration)return Us(n,c,!0,!0,Vn(_))||d}return d}else{if(Xi(n))return Bee(n);if(n.kind===211||n.kind===166){let d=ti(n);return d.resolvedSymbol?d.resolvedSymbol:(n.kind===211?(Wee(n,0),d.resolvedSymbol||(d.resolvedSymbol=R7e(ec(n.expression),_y(n.name)))):d6e(n,0),!d.resolvedSymbol&&a&&Ad(n)?AB(n):d.resolvedSymbol)}else if(y0(n))return AB(n)}}else if(A7e(n)){let a=n.parent.kind===183?788968:1920,c=Us(n,a,!1,!0);return c&&c!==ft?c:BZ(n)}if(n.parent.kind===182)return Us(n,1)}function R7e(n,a){let c=Age(n,a);if(c.length&&n.members){let d=FZ(m_(n).members);if(c===hd(n))return d;if(d){let _=$i(d),y=Vi(c,L=>L.declaration),x=Ft(y,ss).join(",");if(_.filteredIndexSymbolCache||(_.filteredIndexSymbolCache=new Map),_.filteredIndexSymbolCache.has(x))return _.filteredIndexSymbolCache.get(x);{let L=Xa(131072,"__index");return L.declarations=Vi(c,z=>z.declaration),L.parent=n.aliasSymbol?n.aliasSymbol:n.symbol?n.symbol:Um(L.declarations[0].parent),_.filteredIndexSymbolCache.set(x,L),L}}}}function AB(n,a,c){if(Qd(n)){let x=Us(n,901119,a,!0,u0(n));if(!x&&Ve(n)&&c&&(x=is(Ud(Dp(c),n.escapedText,901119))),x)return x}let d=Ve(n)?c:AB(n.left,a,c),_=Ve(n)?n.escapedText:n.right.escapedText;if(d){let y=d.flags&111551&&ba(pr(d),"prototype"),x=y?pr(y):Qs(d);return ba(x,_)}}function Um(n,a){if(no(n))return ac(n)?is(n.symbol):void 0;let{parent:c}=n,d=c.parent;if(!(n.flags&67108864)){if(rIe(n)){let _=Rr(c);return IA(n.parent)&&n.parent.propertyName===n?dye(_):_}else if(YL(n))return Rr(c.parent);if(n.kind===80){if(mte(n))return x7e(n);if(c.kind===208&&d.kind===206&&n===c.propertyName){let _=bx(d),y=ba(_,n.escapedText);if(y)return y}else if(yN(c)&&c.name===n)return c.keywordToken===105&&Sr(n)==="target"?Wye(c).symbol:c.keywordToken===102&&Sr(n)==="meta"?COe().members.get("meta"):void 0}switch(n.kind){case 80:case 81:case 211:case 166:if(!FA(n))return x7e(n);case 110:let _=wd(n,!1,!1);if(ea(_)){let L=pm(_);if(L.thisParameter)return L.thisParameter}if(n3(n))return go(n).symbol;case 197:return YZ(n).symbol;case 108:return go(n).symbol;case 137:let y=n.parent;return y&&y.kind===176?y.parent.symbol:void 0;case 11:case 15:if(l0(n.parent.parent)&&RC(n.parent.parent)===n||(n.parent.kind===272||n.parent.kind===278)&&n.parent.moduleSpecifier===n||cr(n)&&Sd(n.parent,!1)||Wp(n.parent)||Yy(n.parent)&&zy(n.parent.parent)&&n.parent.parent.argument===n.parent)return _d(n,n,a);if(la(c)&&bS(c)&&c.arguments[1]===n)return Rr(c);case 9:let x=Ys(c)?c.argumentExpression===n?Ru(c.expression):void 0:Yy(c)&&wS(d)?Ii(d.objectType):void 0;return x&&ba(x,ml(n.text));case 90:case 100:case 39:case 86:return ff(n.parent);case 205:return zy(n)?Um(n.argument.literal,a):void 0;case 95:return Ll(n.parent)?C.checkDefined(n.parent.symbol):void 0;case 102:case 105:return yN(n.parent)?K6e(n.parent).symbol:void 0;case 104:if(_r(n.parent)){let L=Ru(n.parent.right),z=Jye(L);return z?.symbol??L.symbol}return;case 236:return go(n).symbol;case 295:if(aR(n)&&vx(n)){let L=Fee(n.parent);return L===ft?void 0:L}default:return}}}function ygt(n){if(Ve(n)&&zr(n.parent)&&n.parent.name===n){let a=_y(n),c=Ru(n.parent.expression),d=c.flags&1048576?c.types:[c];return Zi(d,_=>tr(hd(_),y=>dx(a,y.keyType)))}}function bgt(n){if(n&&n.kind===304)return Us(n.name,2208703)}function Egt(n){return Ju(n)?n.parent.parent.moduleSpecifier?iv(n.parent.parent,n):Us(n.propertyName||n.name,2998271):Us(n,2998271)}function bx(n){if(no(n)&&!ac(n)||n.flags&67108864)return ht;let a=cU(n),c=a&&zf(Rr(a.class));if(Zh(n)){let d=Ii(n);return c?qp(d,c.thisType):d}if(eg(n))return D7e(n);if(c&&!a.isImplements){let d=Xc(Np(c));return d?qp(d,c.thisType):ht}if(PR(n)){let d=Rr(n);return Qs(d)}if(pgt(n)){let d=Um(n);return d?Qs(d):ht}if(Qa(n))return kT(n,!0,0)||ht;if(qu(n)){let d=Rr(n);return d?pr(d):ht}if(rIe(n)){let d=Um(n);return d?pr(d):ht}if(ta(n))return kT(n.parent,!0,0)||ht;if(mte(n)){let d=Um(n);if(d){let _=Qs(d);return qt(_)?pr(d):_}}return yN(n.parent)&&n.parent.keywordToken===n.kind?K6e(n.parent):cI(n)?zge(!1):ht}function _te(n){if(C.assert(n.kind===210||n.kind===209),n.parent.kind===250){let _=bB(n.parent);return nA(n,_||ht)}if(n.parent.kind===226){let _=Ru(n.parent.right);return nA(n,_||ht)}if(n.parent.kind===303){let _=aa(n.parent.parent,wa),y=_te(_)||ht,x=Qx(_.properties,n.parent);return d3e(_,y,x)}let a=aa(n.parent,pd),c=_te(a)||ht,d=yy(65,c,Oe,n.parent)||ht;return p3e(a,c,a.elements.indexOf(n),d)}function Sgt(n){let a=_te(aa(n.parent.parent,vC));return a&&ba(a,n.escapedText)}function D7e(n){return jC(n)&&(n=n.parent),vd(Ru(n))}function C7e(n){let a=ff(n.parent);return sa(n)?pr(a):Qs(a)}function N7e(n){let a=n.name;switch(a.kind){case 80:return qd(Sr(a));case 9:case 11:return qd(a.text);case 167:let c=Ig(a);return xu(c,12288)?c:ke;default:return C.fail("Unsupported property name.")}}function Ebe(n){n=Md(n);let a=ua(ys(n)),c=Yo(n,0).length?qn:Yo(n,1).length?So:void 0;return c&&Ke(ys(c),d=>{a.has(d.escapedName)||a.set(d.escapedName,d)}),K0(a)}function hte(n){return Yo(n,0).length!==0||Yo(n,1).length!==0}function P7e(n){let a=Tgt(n);return a?Zi(a,P7e):[n]}function Tgt(n){if(Al(n)&6)return Vi($i(n).containingType.types,a=>ba(a,n.escapedName));if(n.flags&33554432){let{links:{leftSpread:a,rightSpread:c,syntheticOrigin:d}}=n;return a?[a,c]:d?[d]:yA(Agt(n))}}function Agt(n){let a,c=n;for(;c=$i(c).target;)a=c;return a}function Igt(n){if(ol(n))return!1;let a=Lo(n,Ve);if(!a)return!1;let c=a.parent;return c?!((zr(c)||_c(c))&&c.name===a)&&i8(a)===Bt:!1}function xgt(n){let a=_d(n.parent,n);if(!a||SC(a))return!0;let c=uy(a);a=Rp(a);let d=$i(a);return d.exportsSomeValue===void 0&&(d.exportsSomeValue=c?!!(a.flags&111551):Bc(Mh(a),_)),d.exportsSomeValue;function _(y){return y=Gl(y),y&&!!(Au(y)&111551)}}function Rgt(n){return mL(n.parent)&&n===n.parent.name}function Dgt(n,a){var c;let d=Lo(n,Ve);if(d){let _=i8(d,Rgt(d));if(_){if(_.flags&1048576){let x=is(_.exportSymbol);if(!a&&x.flags&944&&!(x.flags&3))return;_=x}let y=Cd(_);if(y){if(y.flags&512&&((c=y.valueDeclaration)==null?void 0:c.kind)===312){let x=y.valueDeclaration,L=Vn(d);return x!==L?void 0:x}return zn(d.parent,x=>mL(x)&&Rr(x)===y)}}}}function Cgt(n){let a=gae(n);if(a)return a;let c=Lo(n,Ve);if(c){let d=Vgt(c);if(TT(d,111551)&&!wf(d,111551))return Fm(d)}}function Ngt(n){return n.valueDeclaration&&Qa(n.valueDeclaration)&&Vx(n.valueDeclaration).parent.kind===299}function M7e(n){if(n.flags&418&&n.valueDeclaration&&!no(n.valueDeclaration)){let a=$i(n);if(a.isDeclarationWithCollidingName===void 0){let c=_h(n.valueDeclaration);if(Zre(c)||Ngt(n)){let d=ti(n.valueDeclaration);if(vl(c.parent,n.escapedName,111551,void 0,void 0,!1))a.isDeclarationWithCollidingName=!0;else if(d.flags&16384){let _=d.flags&32768,y=ky(c,!1),x=c.kind===241&&ky(c.parent,!1);a.isDeclarationWithCollidingName=!aie(c)&&(!_||!y&&!x)}else a.isDeclarationWithCollidingName=!1}}return a.isDeclarationWithCollidingName}return!1}function Pgt(n){if(!ol(n)){let a=Lo(n,Ve);if(a){let c=i8(a);if(c&&M7e(c))return c.valueDeclaration}}}function Mgt(n){let a=Lo(n,qu);if(a){let c=Rr(a);if(c)return M7e(c)}return!1}function L7e(n){switch(C.assert(gt),n.kind){case 271:return gte(Rr(n));case 273:case 274:case 276:case 281:let a=Rr(n);return!!a&>e(a,!0);case 278:let c=n.exportClause;return!!c&&(Sh(c)||Et(c.elements,L7e));case 277:return n.expression&&n.expression.kind===80?gte(Rr(n),!0):!0}return!1}function Lgt(n){let a=Lo(n,tu);return a===void 0||a.parent.kind!==312||!sR(a)?!1:gte(Rr(a))&&a.moduleReference&&!Fl(a.moduleReference)}function gte(n,a){if(!n)return!1;let c=mf(Fc(n));return c===ft?!a||!wf(n):!!(Au(n,a,!0)&111551)&&(V1(V)||!r8(c))}function r8(n){return qye(n)||!!n.constEnumOnlyModule}function vte(n,a){if(C.assert(gt),hb(n)){let c=Rr(n),d=c&&$i(c);if(d?.referenced)return!0;let _=$i(c).aliasTarget;if(_&&cd(n)&32&&Au(_)&111551&&(V1(V)||!r8(_)))return!0}return a?!!Ho(n,c=>vte(c,a)):!1}function k7e(n){if(Xf(n.body)){if(wy(n)||wv(n))return!1;let a=Rr(n),c=LE(a);return c.length>1||c.length===1&&c[0].declaration!==n}return!1}function w7e(n){return!!Y&&!S4(n)&&!n_(n)&&!!n.initializer&&!ei(n,31)}function kgt(n){return Y&&S4(n)&&!n.initializer&&ei(n,31)}function wgt(n){let a=Lo(n,Sc);if(!a)return!1;let c=Rr(a);return!c||!(c.flags&16)?!1:!!Bc(Dp(c),d=>d.flags&111551&&r7(d.valueDeclaration))}function Ogt(n){let a=Lo(n,Sc);if(!a)return et;let c=Rr(a);return c&&ys(pr(c))||et}function LD(n){var a;let c=n.id||0;return c<0||c>=hE.length?0:((a=hE[c])==null?void 0:a.flags)||0}function kD(n){return m7e(n.parent),ti(n).enumMemberValue}function O7e(n){switch(n.kind){case 306:case 211:case 212:return!0}return!1}function Sbe(n){if(n.kind===306)return kD(n);let a=ti(n).resolvedSymbol;if(a&&a.flags&8){let c=a.valueDeclaration;if(x1(c.parent))return kD(c)}}function Tbe(n){return!!(n.flags&524288)&&Yo(n,0).length>0}function Fgt(n,a){var c;let d=Lo(n,Qd);if(!d||a&&(a=Lo(a),!a))return 0;let _=!1;if(Ad(d)){let re=Us(Bp(d),111551,!0,!0,a);_=!!((c=re?.declarations)!=null&&c.every(a0))}let y=Us(d,111551,!0,!0,a),x=y&&y.flags&2097152?Fc(y):y;_||(_=!!(y&&wf(y,111551)));let L=Us(d,788968,!0,!0,a),z=L&&L.flags&2097152?Fc(L):L;if(y||_||(_=!!(L&&wf(L,788968))),x&&x===z){let re=Bge(!1);if(re&&x===re)return 9;let be=pr(x);if(be&&os(be))return _?10:1}if(!z)return _?11:0;let U=Qs(z);return qt(U)?_?11:0:U.flags&3?11:xu(U,245760)?2:xu(U,528)?6:xu(U,296)?3:xu(U,2112)?4:xu(U,402653316)?5:Wa(U)?7:xu(U,12288)?8:Tbe(U)?10:jf(U)?7:11}function Wgt(n,a,c,d,_){let y=Lo(n,gie);if(!y)return k.createToken(133);let x=Rr(y),L=x&&!(x.flags&133120)?BE(pr(x)):ht;return L.flags&8192&&L.symbol===x&&(c|=1048576),_&&(L=jb(L)),At.typeToTypeNode(L,a,c|1024,d)}function zgt(n,a,c,d){let _=Lo(n,ea);if(!_)return k.createToken(133);let y=pm(_);return At.typeToTypeNode(ms(y),a,c|1024,d)}function Bgt(n,a,c,d){let _=Lo(n,bt);if(!_)return k.createToken(133);let y=Jp(D7e(_));return At.typeToTypeNode(y,a,c|1024,d)}function Ggt(n){return Se.has(ml(n))}function i8(n,a){let c=ti(n).resolvedSymbol;if(c)return c;let d=n;if(a){let _=n.parent;qu(_)&&n===_.name&&(d=Q(_))}return vl(d,n.escapedText,3257279,void 0,void 0,!0)}function Vgt(n){let a=ti(n).resolvedSymbol;return a&&a!==ft?a:vl(n,n.escapedText,3257279,void 0,void 0,!0,void 0,void 0)}function jgt(n){if(!ol(n)){let a=Lo(n,Ve);if(a){let c=i8(a);if(c)return mf(c).valueDeclaration}}}function Ugt(n){if(!ol(n)){let a=Lo(n,Ve);if(a){let c=i8(a);if(c)return tr(mf(c).declarations,d=>{switch(d.kind){case 260:case 169:case 208:case 172:case 303:case 304:case 306:case 210:case 262:case 218:case 219:case 263:case 231:case 266:case 174:case 177:case 178:case 267:return!0}return!1})}}}function Hgt(n){return j6(n)||Oi(n)&&xB(n)?FE(pr(Rr(n))):!1}function qgt(n,a,c){let d=n.flags&1056?At.symbolToExpression(n.symbol,111551,a,void 0,c):n===On?k.createTrue():n===Kt&&k.createFalse();if(d)return d;let _=n.value;return typeof _=="object"?k.createBigIntLiteral(_):typeof _=="string"?k.createStringLiteral(_):_<0?k.createPrefixUnaryExpression(41,k.createNumericLiteral(-_)):k.createNumericLiteral(_)}function Jgt(n,a){let c=pr(Rr(n));return qgt(c,n,a)}function F7e(n){return n?(z0(n),Vn(n).localJsxFactory||ev):ev}function Abe(n){if(n){let a=Vn(n);if(a){if(a.localJsxFragmentFactory)return a.localJsxFragmentFactory;let c=a.pragmas.get("jsxfrag"),d=Do(c)?c[0]:c;if(d)return a.localJsxFragmentFactory=_I(d.arguments.factory,ue),a.localJsxFragmentFactory}}if(V.jsxFragmentFactory)return _I(V.jsxFragmentFactory,ue)}function Kgt(){let n=e.getResolvedTypeReferenceDirectives(),a;return n&&(a=new Map,n.forEach(({resolvedTypeReferenceDirective:z},U,re)=>{if(!z?.resolvedFileName)return;let be=e.getSourceFile(z.resolvedFileName);be&&L(be,U,re)})),{getReferencedExportContainer:Dgt,getReferencedImportDeclaration:Cgt,getReferencedDeclarationWithCollidingName:Pgt,isDeclarationWithCollidingName:Mgt,isValueAliasDeclaration:z=>{let U=Lo(z);return U&>?L7e(U):!0},hasGlobalName:Ggt,isReferencedAliasDeclaration:(z,U)=>{let re=Lo(z);return re&>?vte(re,U):!0},getNodeCheckFlags:z=>{let U=Lo(z);return U?LD(U):0},isTopLevelValueImportEqualsWithEntityName:Lgt,isDeclarationVisible:u_,isImplementationOfOverload:k7e,isRequiredInitializedParameter:w7e,isOptionalUninitializedParameterProperty:kgt,isExpandoFunctionDeclaration:wgt,getPropertiesOfContainerFunction:Ogt,createTypeOfDeclaration:Wgt,createReturnTypeOfSignatureDeclaration:zgt,createTypeOfExpression:Bgt,createLiteralConstValue:Jgt,isSymbolAccessible:wi,isEntityNameVisible:Tb,getConstantValue:z=>{let U=Lo(z,O7e);return U?Sbe(U):void 0},collectLinkedAliases:FP,getReferencedValueDeclaration:jgt,getReferencedValueDeclarations:Ugt,getTypeReferenceSerializationKind:Fgt,isOptionalParameter:S4,moduleExportsSomeValue:xgt,isArgumentsLocalBinding:Igt,getExternalModuleFileFromDeclaration:z=>{let U=Lo(z,lie);return U&&Ibe(U)},getTypeReferenceDirectivesForEntityName:_,getTypeReferenceDirectivesForSymbol:y,isLiteralConstDeclaration:Hgt,isLateBound:z=>{let U=Lo(z,qu),re=U&&Rr(U);return!!(re&&Al(re)&4096)},getJsxFactoryEntity:F7e,getJsxFragmentFactoryEntity:Abe,getAllAccessorDeclarations(z){z=Lo(z,v6);let U=z.kind===178?177:178,re=dl(Rr(z),U),be=re&&re.posov(z,z,void 0),isBindingCapturedByNode:(z,U)=>{let re=Lo(z),be=Lo(U);return!!re&&!!be&&(Oi(be)||Qa(be))&&vdt(re,be)},getDeclarationStatementsForSourceFile:(z,U,re,be)=>{let ge=Lo(z);C.assert(ge&&ge.kind===312,"Non-sourcefile node passed into getDeclarationsForSourceFile");let Je=Rr(z);return Je?Je.exports?At.symbolTableToDeclarationStatements(Je.exports,z,U,re,be):[]:z.locals?At.symbolTableToDeclarationStatements(z.locals,z,U,re,be):[]},isImportRequiredByAugmentation:c,tryFindAmbientModule:z=>{let U=Lo(z),re=U&&us(U)?U.text:void 0;return re!==void 0?kZ(re,!0):void 0}};function c(z){let U=Vn(z);if(!U.symbol)return!1;let re=Ibe(z);if(!re||re===U)return!1;let be=Mh(U.symbol);for(let ge of Vo(be.values()))if(ge.mergeId){let Je=is(ge);if(Je.declarations){for(let vt of Je.declarations)if(Vn(vt)===re)return!0}}return!1}function d(z){return z.parent&&z.parent.kind===233&&z.parent.parent&&z.parent.parent.kind===298}function _(z){if(!a)return;let U;z.parent.kind===167?U=1160127:(U=790504,(z.kind===80&&xS(z)||z.kind===211&&!d(z))&&(U=1160127));let re=Us(z,U,!0);return re&&re!==ft?y(re,U):void 0}function y(z,U){if(!a||!x(z))return;let re;for(let be of z.declarations)if(be.symbol&&be.symbol.flags&U){let ge=Vn(be),Je=a.get(ge.path);if(Je)(re||(re=[])).push(Je);else return}return re}function x(z){if(!z.declarations)return!1;let U=z;for(;;){let re=Cd(U);if(re)U=re;else break}if(U.valueDeclaration&&U.valueDeclaration.kind===312&&U.flags&512)return!1;for(let re of z.declarations){let be=Vn(re);if(a.has(be.path))return!0}return!1}function L(z,U,re){if(!a.has(z.path)){a.set(z.path,[U,re]);for(let{fileName:be}of z.referencedFiles){let ge=mF(be,z.fileName),Je=e.getSourceFile(ge);Je&&L(Je,U,re||z.impliedNodeFormat)}}}}function Ibe(n){let a=n.kind===267?ai(n.name,Na):uR(n),c=ov(a,a,void 0);if(c)return dl(c,312)}function Xgt(){for(let a of e.getSourceFiles())Yse(a,V);Ts=new Map;let n;for(let a of e.getSourceFiles())if(!a.redirectInfo){if(!Fp(a)){let c=a.locals.get("globalThis");if(c?.declarations)for(let d of c.declarations)ns.add(Or(d,f.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));l_(Se,a.locals)}a.jsGlobalAugmentations&&l_(Se,a.jsGlobalAugmentations),a.patternAmbientModules&&a.patternAmbientModules.length&&(lm=xo(lm,a.patternAmbientModules)),a.moduleAugmentations.length&&(n||(n=[])).push(a.moduleAugmentations),a.symbol&&a.symbol.globalExports&&a.symbol.globalExports.forEach((d,_)=>{Se.has(_)||Se.set(_,d)})}if(n)for(let a of n)for(let c of a)I_(c.parent)&&X2(c);if(yE(Se,dT,f.Declaration_name_conflicts_with_built_in_global_identifier_0),$i(je).type=Lt,$i(Bt).type=Zl("IArguments",0,!0),$i(ft).type=ht,$i(at).type=Of(16,at),Qo=Zl("Array",1,!0),Pe=Zl("Object",0,!0),wt=Zl("Function",0,!0),qn=fe&&Zl("CallableFunction",0,!0)||wt,So=fe&&Zl("NewableFunction",0,!0)||wt,$l=Zl("String",0,!0),vc=Zl("Number",0,!0),cl=Zl("Boolean",0,!0),gl=Zl("RegExp",0,!0),Ql=Gu(j),qc=Gu(ot),qc===Pa&&(qc=Ls(void 0,K,et,et,et)),na=wOe("ReadonlyArray",1)||Qo,cf=na?I4(na,[j]):Ql,Bl=wOe("ThisType",1),n)for(let a of n)for(let c of a)I_(c.parent)||X2(c);Ts.forEach(({firstFile:a,secondFile:c,conflictingSymbols:d})=>{if(d.size<8)d.forEach(({isBlockScoped:_,firstFileLocations:y,secondFileLocations:x},L)=>{let z=_?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0;for(let U of y)tv(U,z,L,x);for(let U of x)tv(U,z,L,y)});else{let _=Vo(d.keys()).join(", ");ns.add(ka(Or(a,f.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,_),Or(c,f.Conflicts_are_in_this_file))),ns.add(ka(Or(c,f.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,_),Or(a,f.Conflicts_are_in_this_file)))}}),Ts=void 0}function Rc(n,a){if((s&a)!==a&&V.importHelpers){let c=Vn(n);if(NA(c,V)&&!(n.flags&33554432)){let d=$gt(c,n);if(d!==ft){let _=a&~s;for(let y=1;y<=33554432;y<<=1)if(_&y)for(let x of Ygt(y)){if(o.has(x))continue;o.add(x);let L=Gl(Ud(Mh(d),ml(x),111551));L?y&524288?Et(LE(L),z=>Kp(z)>3)||qe(n,f.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,Hy,x,4):y&1048576?Et(LE(L),z=>Kp(z)>4)||qe(n,f.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,Hy,x,5):y&1024&&(Et(LE(L),z=>Kp(z)>2)||qe(n,f.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,Hy,x,3)):qe(n,f.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,Hy,x)}}s|=a}}}function Ygt(n){switch(n){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return ne?["__decorate"]:["__esDecorate","__runInitializers"];case 16:return["__metadata"];case 32:return["__param"];case 64:return["__awaiter"];case 128:return["__generator"];case 256:return["__values"];case 512:return["__read"];case 1024:return["__spreadArray"];case 2048:return["__await"];case 4096:return["__asyncGenerator"];case 8192:return["__asyncDelegator"];case 16384:return["__asyncValues"];case 32768:return["__exportStar"];case 65536:return["__importStar"];case 131072:return["__importDefault"];case 262144:return["__makeTemplateObject"];case 524288:return["__classPrivateFieldGet"];case 1048576:return["__classPrivateFieldSet"];case 2097152:return["__classPrivateFieldIn"];case 4194304:return["__createBinding"];case 8388608:return["__setFunctionName"];case 16777216:return["__propKey"];case 33554432:return["__addDisposableResource","__disposeResources"];default:return C.fail("Unrecognized helper")}}function $gt(n,a){return l||(l=J_(n,Hy,f.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,a)||ft),l}function Rg(n){var a;let c=evt(n)||Qgt(n);if(c!==void 0)return c;if(Co(n)&&w1(n))return hu(n,f.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);let d=Ml(n)?n.declarationList.flags&7:0,_,y,x,L,z,U=0,re=!1,be=!1;for(let ge of n.modifiers)if(Eu(ge)){if(t3(ne,n,n.parent,n.parent.parent)){if(ne&&(n.kind===177||n.kind===178)){let Je=RS(n.parent.members,n);if(Sf(Je.firstAccessor)&&n===Je.secondAccessor)return hu(n,f.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return n.kind===174&&!Xf(n.body)?hu(n,f.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):hu(n,f.Decorators_are_not_valid_here);if(U&-34849)return bn(ge,f.Decorators_are_not_valid_here);if(be&&U&98303){C.assertIsDefined(z);let Je=Vn(ge);return qE(Je)?!1:(ka(qe(ge,f.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),Or(z,f.Decorator_used_before_export_here)),!0)}U|=32768,U&98303?U&32&&(re=!0):be=!0,z??(z=ge)}else{if(ge.kind!==148){if(n.kind===171||n.kind===173)return bn(ge,f._0_modifier_cannot_appear_on_a_type_member,ma(ge.kind));if(n.kind===181&&(ge.kind!==126||!pi(n.parent)))return bn(ge,f._0_modifier_cannot_appear_on_an_index_signature,ma(ge.kind))}if(ge.kind!==103&&ge.kind!==147&&ge.kind!==87&&n.kind===168)return bn(ge,f._0_modifier_cannot_appear_on_a_type_parameter,ma(ge.kind));switch(ge.kind){case 87:{if(n.kind!==266&&n.kind!==168)return bn(n,f.A_class_member_cannot_have_the_0_keyword,ma(87));let Rt=am(n.parent)&&d0(n.parent)||n.parent;if(n.kind===168&&!(zs(Rt)||pi(Rt)||bh(Rt)||OR(Rt)||nI(Rt)||zk(Rt)||yh(Rt)))return bn(ge,f._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,ma(ge.kind));break}case 164:if(U&16)return bn(ge,f._0_modifier_already_seen,"override");if(U&128)return bn(ge,f._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(U&8)return bn(ge,f._0_modifier_must_precede_1_modifier,"override","readonly");if(U&512)return bn(ge,f._0_modifier_must_precede_1_modifier,"override","accessor");if(U&1024)return bn(ge,f._0_modifier_must_precede_1_modifier,"override","async");U|=16,L=ge;break;case 125:case 124:case 123:let Je=LT(zA(ge.kind));if(U&7)return bn(ge,f.Accessibility_modifier_already_seen);if(U&16)return bn(ge,f._0_modifier_must_precede_1_modifier,Je,"override");if(U&256)return bn(ge,f._0_modifier_must_precede_1_modifier,Je,"static");if(U&512)return bn(ge,f._0_modifier_must_precede_1_modifier,Je,"accessor");if(U&8)return bn(ge,f._0_modifier_must_precede_1_modifier,Je,"readonly");if(U&1024)return bn(ge,f._0_modifier_must_precede_1_modifier,Je,"async");if(n.parent.kind===268||n.parent.kind===312)return bn(ge,f._0_modifier_cannot_appear_on_a_module_or_namespace_element,Je);if(U&64)return ge.kind===123?bn(ge,f._0_modifier_cannot_be_used_with_1_modifier,Je,"abstract"):bn(ge,f._0_modifier_must_precede_1_modifier,Je,"abstract");if(ad(n))return bn(ge,f.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);U|=zA(ge.kind);break;case 126:if(U&256)return bn(ge,f._0_modifier_already_seen,"static");if(U&8)return bn(ge,f._0_modifier_must_precede_1_modifier,"static","readonly");if(U&1024)return bn(ge,f._0_modifier_must_precede_1_modifier,"static","async");if(U&512)return bn(ge,f._0_modifier_must_precede_1_modifier,"static","accessor");if(n.parent.kind===268||n.parent.kind===312)return bn(ge,f._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(n.kind===169)return bn(ge,f._0_modifier_cannot_appear_on_a_parameter,"static");if(U&64)return bn(ge,f._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(U&16)return bn(ge,f._0_modifier_must_precede_1_modifier,"static","override");U|=256,_=ge;break;case 129:if(U&512)return bn(ge,f._0_modifier_already_seen,"accessor");if(U&8)return bn(ge,f._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(U&128)return bn(ge,f._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(n.kind!==172)return bn(ge,f.accessor_modifier_can_only_appear_on_a_property_declaration);U|=512;break;case 148:if(U&8)return bn(ge,f._0_modifier_already_seen,"readonly");if(n.kind!==172&&n.kind!==171&&n.kind!==181&&n.kind!==169)return bn(ge,f.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(U&512)return bn(ge,f._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");U|=8;break;case 95:if(V.verbatimModuleSyntax&&!(n.flags&33554432)&&n.kind!==265&&n.kind!==264&&n.kind!==267&&n.parent.kind===312&&(G===1||Vn(n).impliedNodeFormat===1))return bn(ge,f.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(U&32)return bn(ge,f._0_modifier_already_seen,"export");if(U&128)return bn(ge,f._0_modifier_must_precede_1_modifier,"export","declare");if(U&64)return bn(ge,f._0_modifier_must_precede_1_modifier,"export","abstract");if(U&1024)return bn(ge,f._0_modifier_must_precede_1_modifier,"export","async");if(pi(n.parent))return bn(ge,f._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(n.kind===169)return bn(ge,f._0_modifier_cannot_appear_on_a_parameter,"export");if(d===4)return bn(ge,f._0_modifier_cannot_appear_on_a_using_declaration,"export");if(d===6)return bn(ge,f._0_modifier_cannot_appear_on_an_await_using_declaration,"export");U|=32;break;case 90:let vt=n.parent.kind===312?n.parent:n.parent.parent;if(vt.kind===267&&!Lu(vt))return bn(ge,f.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(d===4)return bn(ge,f._0_modifier_cannot_appear_on_a_using_declaration,"default");if(d===6)return bn(ge,f._0_modifier_cannot_appear_on_an_await_using_declaration,"default");if(U&32){if(re)return bn(z,f.Decorators_are_not_valid_here)}else return bn(ge,f._0_modifier_must_precede_1_modifier,"export","default");U|=2048;break;case 138:if(U&128)return bn(ge,f._0_modifier_already_seen,"declare");if(U&1024)return bn(ge,f._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(U&16)return bn(ge,f._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(pi(n.parent)&&!Jo(n))return bn(ge,f._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(n.kind===169)return bn(ge,f._0_modifier_cannot_appear_on_a_parameter,"declare");if(d===4)return bn(ge,f._0_modifier_cannot_appear_on_a_using_declaration,"declare");if(d===6)return bn(ge,f._0_modifier_cannot_appear_on_an_await_using_declaration,"declare");if(n.parent.flags&33554432&&n.parent.kind===268)return bn(ge,f.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(ad(n))return bn(ge,f._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(U&512)return bn(ge,f._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");U|=128,y=ge;break;case 128:if(U&64)return bn(ge,f._0_modifier_already_seen,"abstract");if(n.kind!==263&&n.kind!==185){if(n.kind!==174&&n.kind!==172&&n.kind!==177&&n.kind!==178)return bn(ge,f.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(n.parent.kind===263&&ei(n.parent,64))){let Rt=n.kind===172?f.Abstract_properties_can_only_appear_within_an_abstract_class:f.Abstract_methods_can_only_appear_within_an_abstract_class;return bn(ge,Rt)}if(U&256)return bn(ge,f._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(U&2)return bn(ge,f._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(U&1024&&x)return bn(x,f._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(U&16)return bn(ge,f._0_modifier_must_precede_1_modifier,"abstract","override");if(U&512)return bn(ge,f._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(od(n)&&n.name.kind===81)return bn(ge,f._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");U|=64;break;case 134:if(U&1024)return bn(ge,f._0_modifier_already_seen,"async");if(U&128||n.parent.flags&33554432)return bn(ge,f._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(n.kind===169)return bn(ge,f._0_modifier_cannot_appear_on_a_parameter,"async");if(U&64)return bn(ge,f._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");U|=1024,x=ge;break;case 103:case 147:{let Rt=ge.kind===103?8192:16384,sn=ge.kind===103?"in":"out",un=am(n.parent)&&(d0(n.parent)||vn((a=fR(n.parent))==null?void 0:a.tags,VS))||n.parent;if(n.kind!==168||un&&!(fd(un)||pi(un)||Dm(un)||VS(un)))return bn(ge,f._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,sn);if(U&Rt)return bn(ge,f._0_modifier_already_seen,sn);if(Rt&8192&&U&16384)return bn(ge,f._0_modifier_must_precede_1_modifier,"in","out");U|=Rt;break}}}return n.kind===176?U&256?bn(_,f._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):U&16?bn(L,f._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):U&1024?bn(x,f._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!1:(n.kind===272||n.kind===271)&&U&128?bn(y,f.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):n.kind===169&&U&31&&ta(n.name)?bn(n,f.A_parameter_property_may_not_be_declared_using_a_binding_pattern):n.kind===169&&U&31&&n.dotDotDotToken?bn(n,f.A_parameter_property_cannot_be_declared_using_a_rest_parameter):U&1024?nvt(n,x):!1}function Qgt(n){if(!n.modifiers)return!1;let a=Zgt(n);return a&&hu(a,f.Modifiers_cannot_appear_here)}function yte(n,a){let c=vn(n.modifiers,Ia);return c&&c.kind!==a?c:void 0}function Zgt(n){switch(n.kind){case 177:case 178:case 176:case 172:case 171:case 174:case 173:case 181:case 267:case 272:case 271:case 278:case 277:case 218:case 219:case 169:case 168:return;case 175:case 303:case 304:case 270:case 282:return vn(n.modifiers,Ia);default:if(n.parent.kind===268||n.parent.kind===312)return;switch(n.kind){case 262:return yte(n,134);case 263:case 185:return yte(n,128);case 231:case 264:case 265:return vn(n.modifiers,Ia);case 243:return n.declarationList.flags&4?yte(n,135):vn(n.modifiers,Ia);case 266:return yte(n,87);default:C.assertNever(n)}}}function evt(n){let a=tvt(n);return a&&hu(a,f.Decorators_are_not_valid_here)}function tvt(n){return GH(n)?vn(n.modifiers,Eu):void 0}function nvt(n,a){switch(n.kind){case 174:case 262:case 218:case 219:return!1}return bn(a,f._0_modifier_cannot_be_used_here,"async")}function Ex(n,a=f.Trailing_comma_not_allowed){return n&&n.hasTrailingComma?JE(n[0],n.end-1,1,a):!1}function W7e(n,a){if(n&&n.length===0){let c=n.pos-1,d=La(a.text,n.end)+1;return JE(a,c,d-c,f.Type_parameter_list_cannot_be_empty)}return!1}function rvt(n){let a=!1,c=n.length;for(let d=0;d!!a.initializer||ta(a.name)||$h(a))}function ovt(n){if(ue>=3){let a=n.body&&Xo(n.body)&&FH(n.body.statements);if(a){let c=ivt(n.parameters);if(De(c)){Ke(c,_=>{ka(qe(_,f.This_parameter_is_not_allowed_with_use_strict_directive),Or(a,f.use_strict_directive_used_here))});let d=c.map((_,y)=>y===0?Or(_,f.Non_simple_parameter_declared_here):Or(_,f.and_here));return ka(qe(a,f.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...d),!0}}}return!1}function bte(n){let a=Vn(n);return Rg(n)||W7e(n.typeParameters,a)||rvt(n.parameters)||svt(n,a)||zs(n)&&ovt(n)}function avt(n){let a=Vn(n);return pvt(n)||W7e(n.typeParameters,a)}function svt(n,a){if(!Bs(n))return!1;n.typeParameters&&!(De(n.typeParameters)>1||n.typeParameters.hasTrailingComma||n.typeParameters[0].constraint)&&a&&Ec(a.fileName,[".mts",".cts"])&&bn(n.typeParameters[0],f.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);let{equalsGreaterThanToken:c}=n,d=Es(a,c.pos).line,_=Es(a,c.end).line;return d!==_&&bn(c,f.Line_terminator_not_permitted_before_arrow)}function lvt(n){let a=n.parameters[0];if(n.parameters.length!==1)return bn(a?a.name:n,f.An_index_signature_must_have_exactly_one_parameter);if(Ex(n.parameters,f.An_index_signature_cannot_have_a_trailing_comma),a.dotDotDotToken)return bn(a.dotDotDotToken,f.An_index_signature_cannot_have_a_rest_parameter);if(I3(a))return bn(a.name,f.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(a.questionToken)return bn(a.questionToken,f.An_index_signature_parameter_cannot_have_a_question_mark);if(a.initializer)return bn(a.name,f.An_index_signature_parameter_cannot_have_an_initializer);if(!a.type)return bn(a.name,f.An_index_signature_parameter_must_have_a_type_annotation);let c=Ii(a.type);return jm(c,d=>!!(d.flags&8576))||ED(c)?bn(a.name,f.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):cp(c,WZ)?n.type?!1:bn(n,f.An_index_signature_must_have_a_type_annotation):bn(a.name,f.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function cvt(n){return Rg(n)||lvt(n)}function uvt(n,a){if(a&&a.length===0){let c=Vn(n),d=a.pos-1,_=La(c.text,a.end)+1;return JE(c,d,_-d,f.Type_argument_list_cannot_be_empty)}return!1}function IB(n,a){return Ex(a)||uvt(n,a)}function dvt(n){return n.questionDotToken||n.flags&64?bn(n.template,f.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function z7e(n){let a=n.types;if(Ex(a))return!0;if(a&&a.length===0){let c=ma(n.token);return JE(n,a.pos,0,f._0_list_cannot_be_empty,c)}return Et(a,B7e)}function B7e(n){return Hv(n)&&vN(n.expression)&&n.typeArguments?bn(n,f.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):IB(n,n.typeArguments)}function pvt(n){let a=!1,c=!1;if(!Rg(n)&&n.heritageClauses)for(let d of n.heritageClauses){if(d.token===96){if(a)return hu(d,f.extends_clause_already_seen);if(c)return hu(d,f.extends_clause_must_precede_implements_clause);if(d.types.length>1)return hu(d.types[1],f.Classes_can_only_extend_a_single_class);a=!0}else{if(C.assert(d.token===119),c)return hu(d,f.implements_clause_already_seen);c=!0}z7e(d)}}function fvt(n){let a=!1;if(n.heritageClauses)for(let c of n.heritageClauses){if(c.token===96){if(a)return hu(c,f.extends_clause_already_seen);a=!0}else return C.assert(c.token===119),hu(c,f.Interface_declaration_cannot_have_implements_clause);z7e(c)}return!1}function Ete(n){if(n.kind!==167)return!1;let a=n;return a.expression.kind===226&&a.expression.operatorToken.kind===28?bn(a.expression,f.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function xbe(n){if(n.asteriskToken){if(C.assert(n.kind===262||n.kind===218||n.kind===174),n.flags&33554432)return bn(n.asteriskToken,f.Generators_are_not_allowed_in_an_ambient_context);if(!n.body)return bn(n.asteriskToken,f.An_overload_signature_cannot_be_declared_as_a_generator)}}function Rbe(n,a){return!!n&&bn(n,a)}function G7e(n,a){return!!n&&bn(n,a)}function mvt(n,a){let c=new Map;for(let d of n.properties){if(d.kind===305){if(a){let x=vs(d.expression);if(pd(x)||wa(x))return bn(d.expression,f.A_rest_element_cannot_contain_a_binding_pattern)}continue}let _=d.name;if(_.kind===167&&Ete(_),d.kind===304&&!a&&d.objectAssignmentInitializer&&bn(d.equalsToken,f.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern),_.kind===81&&bn(_,f.Private_identifiers_are_not_allowed_outside_class_bodies),Cm(d)&&d.modifiers)for(let x of d.modifiers)Ia(x)&&(x.kind!==134||d.kind!==174)&&bn(x,f._0_modifier_cannot_be_used_here,pc(x));else if(ese(d)&&d.modifiers)for(let x of d.modifiers)Ia(x)&&bn(x,f._0_modifier_cannot_be_used_here,pc(x));let y;switch(d.kind){case 304:case 303:G7e(d.exclamationToken,f.A_definite_assignment_assertion_is_not_permitted_in_this_context),Rbe(d.questionToken,f.An_object_member_cannot_be_declared_optional),_.kind===9&&Nbe(_),y=4;break;case 174:y=8;break;case 177:y=1;break;case 178:y=2;break;default:C.assertNever(d,"Unexpected syntax kind:"+d.kind)}if(!a){let x=Pbe(_);if(x===void 0)continue;let L=c.get(x);if(!L)c.set(x,y);else if(y&8&&L&8)bn(_,f.Duplicate_identifier_0,pc(_));else if(y&4&&L&4)bn(_,f.An_object_literal_cannot_have_multiple_properties_with_the_same_name,pc(_));else if(y&3&&L&3)if(L!==3&&y!==L)c.set(x,y|L);else return bn(_,f.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return bn(_,f.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function _vt(n){hvt(n.tagName),IB(n,n.typeArguments);let a=new Map;for(let c of n.attributes.properties){if(c.kind===293)continue;let{name:d,initializer:_}=c,y=lN(d);if(!a.get(y))a.set(y,!0);else return bn(d,f.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(_&&_.kind===294&&!_.expression)return bn(_,f.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}function hvt(n){if(zr(n)&&e_(n.expression))return bn(n.expression,f.JSX_property_access_expressions_cannot_include_JSX_namespace_names);if(e_(n)&&G3(V)&&!yR(n.namespace.escapedText))return bn(n,f.React_components_cannot_include_JSX_namespace_names)}function gvt(n){if(n.expression&&DN(n.expression))return bn(n.expression,f.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function V7e(n){if(Ev(n))return!0;if(n.kind===250&&n.awaitModifier&&!(n.flags&65536)){let a=Vn(n);if(Q6(n)){if(!qE(a))switch(NA(a,V)||ns.add(Or(n.awaitModifier,f.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module)),G){case 100:case 199:if(a.impliedNodeFormat===1){ns.add(Or(n.awaitModifier,f.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 4:if(ue>=4)break;default:ns.add(Or(n.awaitModifier,f.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher));break}}else if(!qE(a)){let c=Or(n.awaitModifier,f.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),d=zp(n);if(d&&d.kind!==176){C.assert((Gc(d)&2)===0,"Enclosing function should never be an async function.");let _=Or(d,f.Did_you_mean_to_mark_this_function_as_async);ka(c,_)}return ns.add(c),!0}return!1}if(Uk(n)&&!(n.flags&65536)&&Ve(n.initializer)&&n.initializer.escapedText==="async")return bn(n.initializer,f.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(n.initializer.kind===261){let a=n.initializer;if(!Cbe(a)){let c=a.declarations;if(!c.length)return!1;if(c.length>1){let _=n.kind===249?f.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:f.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return hu(a.declarations[1],_)}let d=c[0];if(d.initializer){let _=n.kind===249?f.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:f.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return bn(d.name,_)}if(d.type){let _=n.kind===249?f.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:f.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation;return bn(d,_)}}}return!1}function vvt(n){if(!(n.flags&33554432)&&n.parent.kind!==187&&n.parent.kind!==264){if(ue<1)return bn(n.name,f.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(ue<2&&Xi(n.name))return bn(n.name,f.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.body===void 0&&!ei(n,64))return JE(n,n.end-1,1,f._0_expected,"{")}if(n.body){if(ei(n,64))return bn(n,f.An_abstract_accessor_cannot_have_an_implementation);if(n.parent.kind===187||n.parent.kind===264)return bn(n.body,f.An_implementation_cannot_be_declared_in_ambient_contexts)}if(n.typeParameters)return bn(n.name,f.An_accessor_cannot_have_type_parameters);if(!yvt(n))return bn(n.name,n.kind===177?f.A_get_accessor_cannot_have_parameters:f.A_set_accessor_must_have_exactly_one_parameter);if(n.kind===178){if(n.type)return bn(n.name,f.A_set_accessor_cannot_have_a_return_type_annotation);let a=C.checkDefined(zC(n),"Return value does not match parameter count assertion.");if(a.dotDotDotToken)return bn(a.dotDotDotToken,f.A_set_accessor_cannot_have_rest_parameter);if(a.questionToken)return bn(a.questionToken,f.A_set_accessor_cannot_have_an_optional_parameter);if(a.initializer)return bn(n.name,f.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function yvt(n){return Dbe(n)||n.parameters.length===(n.kind===177?0:1)}function Dbe(n){if(n.parameters.length===(n.kind===177?1:2))return k1(n)}function bvt(n){if(n.operator===158){if(n.type.kind!==155)return bn(n.type,f._0_expected,ma(155));let a=KL(n.parent);if(cr(a)&&Z1(a)){let c=SS(a);c&&(a=kA(c)||c)}switch(a.kind){case 260:let c=a;if(c.name.kind!==80)return bn(n,f.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!AC(c))return bn(n,f.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(c.parent.flags&2))return bn(a.name,f.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 172:if(!sa(a)||!BC(a))return bn(a.name,f.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 171:if(!ei(a,8))return bn(a.name,f.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return bn(n,f.unique_symbol_types_are_not_allowed_here)}}else if(n.operator===148&&n.type.kind!==188&&n.type.kind!==189)return hu(n,f.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,ma(155))}function hM(n,a){if(Wat(n))return bn(n,a)}function j7e(n){if(bte(n))return!0;if(n.kind===174){if(n.parent.kind===210){if(n.modifiers&&!(n.modifiers.length===1&&Ha(n.modifiers).kind===134))return hu(n,f.Modifiers_cannot_appear_here);if(Rbe(n.questionToken,f.An_object_member_cannot_be_declared_optional))return!0;if(G7e(n.exclamationToken,f.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(n.body===void 0)return JE(n,n.end-1,1,f._0_expected,"{")}if(xbe(n))return!0}if(pi(n.parent)){if(ue<2&&Xi(n.name))return bn(n.name,f.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.flags&33554432)return hM(n.name,f.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(n.kind===174&&!n.body)return hM(n.name,f.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(n.parent.kind===264)return hM(n.name,f.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(n.parent.kind===187)return hM(n.name,f.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function Evt(n){let a=n;for(;a;){if(qx(a))return bn(n,f.Jump_target_cannot_cross_function_boundary);switch(a.kind){case 256:if(n.label&&a.label.escapedText===n.label.escapedText)return n.kind===251&&!ky(a.statement,!0)?bn(n,f.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1;break;case 255:if(n.kind===252&&!n.label)return!1;break;default:if(ky(a,!1)&&!n.label)return!1;break}a=a.parent}if(n.label){let c=n.kind===252?f.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:f.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return bn(n,c)}else{let c=n.kind===252?f.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:f.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return bn(n,c)}}function Svt(n){if(n.dotDotDotToken){let a=n.parent.elements;if(n!==Ya(a))return bn(n,f.A_rest_element_must_be_last_in_a_destructuring_pattern);if(Ex(a,f.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),n.propertyName)return bn(n.name,f.A_rest_element_cannot_have_a_property_name)}if(n.dotDotDotToken&&n.initializer)return JE(n,n.initializer.pos-1,1,f.A_rest_element_cannot_have_an_initializer)}function U7e(n){return Qp(n)||n.kind===224&&n.operator===41&&n.operand.kind===9}function Tvt(n){return n.kind===10||n.kind===224&&n.operator===41&&n.operand.kind===10}function Avt(n){if((zr(n)||Ys(n)&&U7e(n.argumentExpression))&&zl(n.expression))return!!(ec(n).flags&1056)}function H7e(n){let a=n.initializer;if(a){let c=!(U7e(a)||Avt(a)||a.kind===112||a.kind===97||Tvt(a));if((j6(n)||Oi(n)&&xB(n))&&!n.type){if(c)return bn(a,f.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return bn(a,f.Initializers_are_not_allowed_in_ambient_contexts)}}function Ivt(n){let a=KE(n),c=a&7;if(ta(n.name))switch(c){case 6:return bn(n,f._0_declarations_may_not_have_binding_patterns,"await using");case 4:return bn(n,f._0_declarations_may_not_have_binding_patterns,"using")}if(n.parent.parent.kind!==249&&n.parent.parent.kind!==250){if(a&33554432)H7e(n);else if(!n.initializer){if(ta(n.name)&&!ta(n.parent))return bn(n,f.A_destructuring_declaration_must_have_an_initializer);switch(c){case 6:return bn(n,f._0_declarations_must_be_initialized,"await using");case 4:return bn(n,f._0_declarations_must_be_initialized,"using");case 2:return bn(n,f._0_declarations_must_be_initialized,"const")}}}if(n.exclamationToken&&(n.parent.parent.kind!==243||!n.type||n.initializer||a&33554432)){let d=n.initializer?f.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:n.type?f.A_definite_assignment_assertion_is_not_permitted_in_this_context:f.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return bn(n.exclamationToken,d)}return(G<5||Vn(n).impliedNodeFormat===1)&&G!==4&&!(n.parent.parent.flags&33554432)&&ei(n.parent.parent,32)&&q7e(n.name),!!c&&J7e(n.name)}function q7e(n){if(n.kind===80){if(Sr(n)==="__esModule")return Dvt("noEmit",n,f.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{let a=n.elements;for(let c of a)if(!Vc(c))return q7e(c.name)}return!1}function J7e(n){if(n.kind===80){if(n.escapedText==="let")return bn(n,f.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{let a=n.elements;for(let c of a)Vc(c)||J7e(c.name)}return!1}function Cbe(n){let a=n.declarations;if(Ex(n.declarations))return!0;if(!n.declarations.length)return JE(n,a.pos,a.end-a.pos,f.Variable_declaration_list_cannot_be_empty);let c=n.flags&7;return(c===4||c===6)&&t5(n.parent)?bn(n,c===4?f.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:f.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration):c===6?u3e(n):!1}function K7e(n){switch(n.kind){case 245:case 246:case 247:case 254:case 248:case 249:case 250:return!1;case 256:return K7e(n.parent)}return!0}function xvt(n){if(!K7e(n.parent)){let a=KE(n.declarationList)&7;if(a){let c=a===1?"let":a===2?"const":a===4?"using":a===6?"await using":C.fail("Unknown BlockScope flag");return bn(n,f._0_declarations_can_only_be_declared_inside_a_block,c)}}}function Rvt(n){let a=n.name.escapedText;switch(n.keywordToken){case 105:if(a!=="target")return bn(n.name,f._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Hi(n.name.escapedText),ma(n.keywordToken),"target");break;case 102:if(a!=="meta")return bn(n.name,f._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Hi(n.name.escapedText),ma(n.keywordToken),"meta");break}}function qE(n){return n.parseDiagnostics.length>0}function hu(n,a,...c){let d=Vn(n);if(!qE(d)){let _=hh(d,n.pos);return ns.add(Qc(d,_.start,_.length,a,...c)),!0}return!1}function JE(n,a,c,d,..._){let y=Vn(n);return qE(y)?!1:(ns.add(Qc(y,a,c,d,..._)),!0)}function Dvt(n,a,c,...d){let _=Vn(a);return qE(_)?!1:(o_(n,a,c,...d),!0)}function bn(n,a,...c){let d=Vn(n);return qE(d)?!1:(ns.add(Or(n,a,...c)),!0)}function Cvt(n){let a=cr(n)?A3(n):void 0,c=n.typeParameters||a&&Xc(a);if(c){let d=c.pos===c.end?c.pos:La(Vn(n).text,c.pos);return JE(n,d,c.end-d,f.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function Nvt(n){let a=n.type||tm(n);if(a)return bn(a,f.Type_annotation_cannot_appear_on_a_constructor_declaration)}function Pvt(n){if(Za(n.name)&&_r(n.name.expression)&&n.name.expression.operatorToken.kind===103)return bn(n.parent.members[0],f.A_mapped_type_may_not_declare_properties_or_methods);if(pi(n.parent)){if(Na(n.name)&&n.name.text==="constructor")return bn(n.name,f.Classes_may_not_have_a_field_named_constructor);if(hM(n.name,f.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(ue<2&&Xi(n.name))return bn(n.name,f.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(ue<2&&kd(n))return bn(n.name,f.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(kd(n)&&Rbe(n.questionToken,f.An_accessor_property_cannot_be_declared_optional))return!0}else if(n.parent.kind===264){if(hM(n.name,f.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(C.assertNode(n,gp),n.initializer)return bn(n.initializer,f.An_interface_property_cannot_have_an_initializer)}else if(yp(n.parent)){if(hM(n.name,f.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(C.assertNode(n,gp),n.initializer)return bn(n.initializer,f.A_type_literal_property_cannot_have_an_initializer)}if(n.flags&33554432&&H7e(n),Jo(n)&&n.exclamationToken&&(!pi(n.parent)||!n.type||n.initializer||n.flags&33554432||sa(n)||F1(n))){let a=n.initializer?f.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:n.type?f.A_definite_assignment_assertion_is_not_permitted_in_this_context:f.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return bn(n.exclamationToken,a)}}function Mvt(n){return n.kind===264||n.kind===265||n.kind===272||n.kind===271||n.kind===278||n.kind===277||n.kind===270||ei(n,2208)?!1:hu(n,f.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function Lvt(n){for(let a of n.statements)if((qu(a)||a.kind===243)&&Mvt(a))return!0;return!1}function kvt(n){return!!(n.flags&33554432)&&Lvt(n)}function Ev(n){if(n.flags&33554432){if(!ti(n).hasReportedStatementInAmbientContext&&(ea(n.parent)||Ly(n.parent)))return ti(n).hasReportedStatementInAmbientContext=hu(n,f.An_implementation_cannot_be_declared_in_ambient_contexts);if(n.parent.kind===241||n.parent.kind===268||n.parent.kind===312){let c=ti(n.parent);if(!c.hasReportedStatementInAmbientContext)return c.hasReportedStatementInAmbientContext=hu(n,f.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function Nbe(n){let a=pc(n).includes("."),c=n.numericLiteralFlags&16;a||c||+n.text<=2**53-1||a_(!1,Or(n,f.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function wvt(n){return!!(!(Yy(n.parent)||Qy(n.parent)&&Yy(n.parent.parent))&&ue<7&&bn(n,f.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function Ovt(n,a,...c){let d=Vn(n);if(!qE(d)){let _=hh(d,n.pos);return ns.add(Qc(d,ql(_),0,a,...c)),!0}return!1}function Fvt(){return Oc||(Oc=[],Se.forEach((n,a)=>{Wq.test(a)&&Oc.push(n)})),Oc}function Wvt(n){var a;return n.isTypeOnly&&n.name&&n.namedBindings?bn(n,f.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):n.isTypeOnly&&((a=n.namedBindings)==null?void 0:a.kind)===275?X7e(n.namedBindings):!1}function X7e(n){return!!Ke(n.elements,a=>{if(a.isTypeOnly)return hu(a,a.kind===276?f.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:f.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)})}function zvt(n){if(V.verbatimModuleSyntax&&G===1)return bn(n,f.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(G===5)return bn(n,f.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext);if(n.typeArguments)return bn(n,f.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);let a=n.arguments;if(G!==99&&G!==199&&G!==100&&(Ex(a),a.length>1)){let d=a[1];return bn(d,f.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext)}if(a.length===0||a.length>2)return bn(n,f.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments);let c=vn(a,Zm);return c?bn(c,f.Argument_of_dynamic_import_cannot_be_spread_element):!1}function Bvt(n,a){let c=Wr(n);if(c&20&&a.flags&1048576)return vn(a.types,d=>{if(d.flags&524288){let _=c&Wr(d);if(_&4)return n.target===d.target;if(_&16)return!!n.aliasSymbol&&n.aliasSymbol===d.aliasSymbol}return!1})}function Gvt(n,a){if(Wr(n)&128&&jm(a,gy))return vn(a.types,c=>!gy(c))}function Vvt(n,a){let c=0;if(Yo(n,c).length>0||(c=1,Yo(n,c).length>0))return vn(a.types,_=>Yo(_,c).length>0)}function jvt(n,a){let c;if(!(n.flags&406978556)){let d=0;for(let _ of a.types)if(!(_.flags&406978556)){let y=Ea([$_(n),$_(_)]);if(y.flags&4194304)return _;if(g_(y)||y.flags&1048576){let x=y.flags&1048576?au(y.types,g_):1;x>=d&&(c=_,d=x)}}}return c}function Uvt(n){if(Dl(n,67108864)){let a=uc(n,c=>!(c.flags&402784252));if(!(a.flags&131072))return a}return n}function Y7e(n,a,c){if(a.flags&1048576&&n.flags&2621440){let d=l8e(a,n);if(d)return d;let _=ys(n);if(_){let y=s8e(_,a);if(y){let x=vve(a,Ft(y,L=>[()=>pr(L),L.escapedName]),c);if(x!==a)return x}}}}function Pbe(n){let a=TS(n);return a||(Za(n)?jve(Ru(n.expression)):void 0)}function Ste(n){return Xn===n||(Xn=n,_n=t0(n)),_n}function KE(n){return rn===n||(rn=n,Nn=Lv(n)),Nn}function xB(n){let a=KE(n)&7;return a===2||a===4||a===6}}function WGe(e){return!Ly(e)}function nIe(e){return e.kind!==262&&e.kind!==174||!!e.body}function rIe(e){switch(e.parent.kind){case 276:case 281:return Ve(e);default:return Wg(e)}}function iIe(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function Xu(e){return!!(e.flags&1)}function Fq(e){return!!(e.flags&2)}function zGe(e){return{getCommonSourceDirectory:e.getCommonSourceDirectory?()=>e.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>e.getCurrentDirectory(),getSymlinkCache:oa(e,e.getSymlinkCache),getPackageJsonInfoCache:()=>{var t;return(t=e.getPackageJsonInfoCache)==null?void 0:t.call(e)},useCaseSensitiveFileNames:oa(e,e.useCaseSensitiveFileNames),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:t=>e.getProjectReferenceRedirect(t),isSourceOfProjectReferenceRedirect:t=>e.isSourceOfProjectReferenceRedirect(t),fileExists:t=>e.fileExists(t),getFileIncludeReasons:()=>e.getFileIncludeReasons(),readFile:e.readFile?t=>e.readFile(t):void 0}}var Wq,j5,ale,sle,lle,cle,U5,zq,H5,q5,oIe,J5,ule,nf,Bq,BGe=A({"src/compiler/checker.ts"(){"use strict";ia(),ile(),oS(),Wq=/^".+"$/,j5="(anonymous)",ale=1,sle=1,lle=1,cle=1,U5=(e=>(e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBigInt=4]="TypeofEQBigInt",e[e.TypeofEQBoolean=8]="TypeofEQBoolean",e[e.TypeofEQSymbol=16]="TypeofEQSymbol",e[e.TypeofEQObject=32]="TypeofEQObject",e[e.TypeofEQFunction=64]="TypeofEQFunction",e[e.TypeofEQHostObject=128]="TypeofEQHostObject",e[e.TypeofNEString=256]="TypeofNEString",e[e.TypeofNENumber=512]="TypeofNENumber",e[e.TypeofNEBigInt=1024]="TypeofNEBigInt",e[e.TypeofNEBoolean=2048]="TypeofNEBoolean",e[e.TypeofNESymbol=4096]="TypeofNESymbol",e[e.TypeofNEObject=8192]="TypeofNEObject",e[e.TypeofNEFunction=16384]="TypeofNEFunction",e[e.TypeofNEHostObject=32768]="TypeofNEHostObject",e[e.EQUndefined=65536]="EQUndefined",e[e.EQNull=131072]="EQNull",e[e.EQUndefinedOrNull=262144]="EQUndefinedOrNull",e[e.NEUndefined=524288]="NEUndefined",e[e.NENull=1048576]="NENull",e[e.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",e[e.Truthy=4194304]="Truthy",e[e.Falsy=8388608]="Falsy",e[e.IsUndefined=16777216]="IsUndefined",e[e.IsNull=33554432]="IsNull",e[e.IsUndefinedOrNull=50331648]="IsUndefinedOrNull",e[e.All=134217727]="All",e[e.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",e[e.BaseStringFacts=12582401]="BaseStringFacts",e[e.StringStrictFacts=16317953]="StringStrictFacts",e[e.StringFacts=16776705]="StringFacts",e[e.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",e[e.EmptyStringFacts=12582401]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",e[e.BaseNumberFacts=12582146]="BaseNumberFacts",e[e.NumberStrictFacts=16317698]="NumberStrictFacts",e[e.NumberFacts=16776450]="NumberFacts",e[e.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",e[e.ZeroNumberFacts=12582146]="ZeroNumberFacts",e[e.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",e[e.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",e[e.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",e[e.BaseBigIntFacts=12581636]="BaseBigIntFacts",e[e.BigIntStrictFacts=16317188]="BigIntStrictFacts",e[e.BigIntFacts=16775940]="BigIntFacts",e[e.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",e[e.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",e[e.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",e[e.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",e[e.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=12580616]="BaseBooleanFacts",e[e.BooleanStrictFacts=16316168]="BooleanStrictFacts",e[e.BooleanFacts=16774920]="BooleanFacts",e[e.FalseStrictFacts=12121864]="FalseStrictFacts",e[e.FalseFacts=12580616]="FalseFacts",e[e.TrueStrictFacts=7927560]="TrueStrictFacts",e[e.TrueFacts=16774920]="TrueFacts",e[e.SymbolStrictFacts=7925520]="SymbolStrictFacts",e[e.SymbolFacts=16772880]="SymbolFacts",e[e.ObjectStrictFacts=7888800]="ObjectStrictFacts",e[e.ObjectFacts=16736160]="ObjectFacts",e[e.FunctionStrictFacts=7880640]="FunctionStrictFacts",e[e.FunctionFacts=16728e3]="FunctionFacts",e[e.VoidFacts=9830144]="VoidFacts",e[e.UndefinedFacts=26607360]="UndefinedFacts",e[e.NullFacts=42917664]="NullFacts",e[e.EmptyObjectStrictFacts=83427327]="EmptyObjectStrictFacts",e[e.EmptyObjectFacts=83886079]="EmptyObjectFacts",e[e.UnknownFacts=83886079]="UnknownFacts",e[e.AllTypeofNE=556800]="AllTypeofNE",e[e.OrFactsMask=8256]="OrFactsMask",e[e.AndFactsMask=134209471]="AndFactsMask",e))(U5||{}),zq=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),H5=(e=>(e[e.Normal=0]="Normal",e[e.Contextual=1]="Contextual",e[e.Inferential=2]="Inferential",e[e.SkipContextSensitive=4]="SkipContextSensitive",e[e.SkipGenericFunctions=8]="SkipGenericFunctions",e[e.IsForSignatureHelp=16]="IsForSignatureHelp",e[e.RestBindingElement=32]="RestBindingElement",e[e.TypeOnly=64]="TypeOnly",e))(H5||{}),q5=(e=>(e[e.None=0]="None",e[e.BivariantCallback=1]="BivariantCallback",e[e.StrictCallback=2]="StrictCallback",e[e.IgnoreReturnTypes=4]="IgnoreReturnTypes",e[e.StrictArity=8]="StrictArity",e[e.StrictTopSignature=16]="StrictTopSignature",e[e.Callback=3]="Callback",e))(q5||{}),oIe=w8(nIe,WGe),J5=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3,NoInfer:4})),ule=class{},(e=>{e.JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.ElementType="ElementType",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes",e.LibraryManagedAttributes="LibraryManagedAttributes"})(nf||(nf={})),Bq=class bWe{constructor(t,r,i){this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;for(var o;r instanceof bWe;)r=r.inner;this.inner=r,this.moduleResolverHost=i,this.context=t,this.canTrackSymbol=!!((o=this.inner)!=null&&o.trackSymbol)}trackSymbol(t,r,i){var o,s;if((o=this.inner)!=null&&o.trackSymbol&&!this.disableTrackSymbol){if(this.inner.trackSymbol(t,r,i))return this.onDiagnosticReported(),!0;t.flags&262144||((s=this.context).trackedSymbols??(s.trackedSymbols=[])).push([t,r,i])}return!1}reportInaccessibleThisError(){var t;(t=this.inner)!=null&&t.reportInaccessibleThisError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(t){var r;(r=this.inner)!=null&&r.reportPrivateInBaseOfClassExpression&&(this.onDiagnosticReported(),this.inner.reportPrivateInBaseOfClassExpression(t))}reportInaccessibleUniqueSymbolError(){var t;(t=this.inner)!=null&&t.reportInaccessibleUniqueSymbolError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleUniqueSymbolError())}reportCyclicStructureError(){var t;(t=this.inner)!=null&&t.reportCyclicStructureError&&(this.onDiagnosticReported(),this.inner.reportCyclicStructureError())}reportLikelyUnsafeImportRequiredError(t){var r;(r=this.inner)!=null&&r.reportLikelyUnsafeImportRequiredError&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(t))}reportTruncationError(){var t;(t=this.inner)!=null&&t.reportTruncationError&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}trackReferencedAmbientModule(t,r){var i;(i=this.inner)!=null&&i.trackReferencedAmbientModule&&(this.onDiagnosticReported(),this.inner.trackReferencedAmbientModule(t,r))}trackExternalModuleSymbolOfImportTypeNode(t){var r;(r=this.inner)!=null&&r.trackExternalModuleSymbolOfImportTypeNode&&(this.onDiagnosticReported(),this.inner.trackExternalModuleSymbolOfImportTypeNode(t))}reportNonlocalAugmentation(t,r,i){var o;(o=this.inner)!=null&&o.reportNonlocalAugmentation&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(t,r,i))}reportNonSerializableProperty(t){var r;(r=this.inner)!=null&&r.reportNonSerializableProperty&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(t))}onDiagnosticReported(){this.context.reportedDiagnostic=!0}}}});function rt(e,t,r,i){if(e===void 0)return e;let o=t(e),s;if(o!==void 0)return Do(o)?s=(i||HGe)(o):s=o,C.assertNode(s,r),s}function Bn(e,t,r,i,o){if(e===void 0)return e;let s=e.length;(i===void 0||i<0)&&(i=0),(o===void 0||o>s-i)&&(o=s-i);let l,u=-1,p=-1;i>0||os-i)&&(o=s-i),aIe(e,t,r,i,o)}function aIe(e,t,r,i,o){let s,l=e.length;(i>0||o=2&&(o=GGe(o,r)),r.setLexicalEnvironmentFlags(1,!1)),r.suspendLexicalEnvironment(),o}function GGe(e,t){let r;for(let i=0;i{let l=iu,addSource:Ne,setSourceContent:me,addName:ie,addMapping:He,appendSourceMap:Ee,toJSON:Se,toString:()=>JSON.stringify(Se())};function Ne(at){s();let Bt=SA(i,at,e.getCurrentDirectory(),e.getCanonicalFileName,!0),yt=g.get(Bt);return yt===void 0&&(yt=p.length,p.push(Bt),u.push(at),g.set(Bt,yt)),l(),yt}function me(at,Bt){if(s(),Bt!==null){for(m||(m=[]);m.lengthBt||he===Bt&&ye>yt)}function He(at,Bt,yt,Qe,gt,nn){C.assert(at>=ue,"generatedLine cannot backtrack"),C.assert(Bt>=0,"generatedCharacter cannot be negative"),C.assert(yt===void 0||yt>=0,"sourceIndex cannot be negative"),C.assert(Qe===void 0||Qe>=0,"sourceLine cannot be negative"),C.assert(gt===void 0||gt>=0,"sourceCharacter cannot be negative"),s(),(ve(at,Bt)||Le(yt,Qe,gt))&&(Fe(),ue=at,G=Bt,oe=!1,fe=!1,Y=!0),yt!==void 0&&Qe!==void 0&>!==void 0&&(ne=yt,he=Qe,ye=gt,oe=!0,nn!==void 0&&($=nn,fe=!0)),l()}function Ee(at,Bt,yt,Qe,gt,nn){C.assert(at>=ue,"generatedLine cannot backtrack"),C.assert(Bt>=0,"generatedCharacter cannot be negative"),s();let rn=[],Nn,Xn=Uq(yt.mappings);for(let _n of Xn){if(nn&&(_n.generatedLine>nn.line||_n.generatedLine===nn.line&&_n.generatedCharacter>nn.character))break;if(gt&&(_n.generatedLine=1024&&At()}function Fe(){if(!(!Y||!Ce())){if(s(),M0&&(R+=String.fromCharCode.apply(void 0,I),I.length=0)}function Se(){return Fe(),At(),{version:3,file:t,sourceRoot:r,sources:p,names:b,mappings:R,sourcesContent:m}}function je(at){at<0?at=(-at<<1)+1:at=at<<1;do{let Bt=at&31;at=at>>5,at>0&&(Bt=Bt|32),Me(KGe(Bt))}while(at>0)}}function Vq(e,t){return{getLineCount:()=>t.length,getLineText:r=>e.substring(t[r],t[r+1])}}function ple(e){for(let t=e.getLineCount()-1;t>=0;t--){let r=e.getLineText(t),i=K5.exec(r);if(i)return i[1].trimEnd();if(!r.match(X5))break}}function JGe(e){return typeof e=="string"||e===null}function fle(e){return e!==null&&typeof e=="object"&&e.version===3&&typeof e.file=="string"&&typeof e.mappings=="string"&&Do(e.sources)&&Jn(e.sources,wo)&&(e.sourceRoot===void 0||e.sourceRoot===null||typeof e.sourceRoot=="string")&&(e.sourcesContent===void 0||e.sourcesContent===null||Do(e.sourcesContent)&&Jn(e.sourcesContent,JGe))&&(e.names===void 0||e.names===null||Do(e.names)&&Jn(e.names,wo))}function jq(e){try{let t=JSON.parse(e);if(fle(t))return t}catch{}}function Uq(e){let t=!1,r=0,i=0,o=0,s=0,l=0,u=0,p=0,g;return{get pos(){return r},get error(){return g},get state(){return m(!0,!0)},next(){for(;!t&&r=e.length)return T("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;let Z=XGe(e.charCodeAt(r));if(Z===-1)return T("Invalid character in VLQ"),-1;O=(Z&32)!==0,K=K|(Z&31)<>1,K=-K):K=K>>1,K}}function lIe(e,t){return e===t||e.generatedLine===t.generatedLine&&e.generatedCharacter===t.generatedCharacter&&e.sourceIndex===t.sourceIndex&&e.sourceLine===t.sourceLine&&e.sourceCharacter===t.sourceCharacter&&e.nameIndex===t.nameIndex}function mle(e){return e.sourceIndex!==void 0&&e.sourceLine!==void 0&&e.sourceCharacter!==void 0}function KGe(e){return e>=0&&e<26?65+e:e>=26&&e<52?97+e-26:e>=52&&e<62?48+e-52:e===62?43:e===63?47:C.fail(`${e}: not a base64 value`)}function XGe(e){return e>=65&&e<=90?e-65:e>=97&&e<=122?e-97+26:e>=48&&e<=57?e-48+52:e===43?62:e===47?63:-1}function cIe(e){return e.sourceIndex!==void 0&&e.sourcePosition!==void 0}function uIe(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function YGe(e,t){return C.assert(e.sourceIndex===t.sourceIndex),tl(e.sourcePosition,t.sourcePosition)}function $Ge(e,t){return tl(e.generatedPosition,t.generatedPosition)}function QGe(e){return e.sourcePosition}function ZGe(e){return e.generatedPosition}function _le(e,t,r){let i=li(r),o=t.sourceRoot?bo(t.sourceRoot,i):i,s=bo(t.file,i),l=e.getSourceFileLike(s),u=t.sources.map(H=>bo(H,o)),p=new Map(u.map((H,K)=>[e.getCanonicalFileName(H),K])),g,m,b;return{getSourcePosition:O,getGeneratedPosition:N};function T(H){let K=l!==void 0?JM(l,H.generatedLine,H.generatedCharacter,!0):-1,Z,V;if(mle(H)){let ue=e.getSourceFileLike(u[H.sourceIndex]);Z=t.sources[H.sourceIndex],V=ue!==void 0?JM(ue,H.sourceLine,H.sourceCharacter,!0):-1}return{generatedPosition:K,source:Z,sourceIndex:H.sourceIndex,sourcePosition:V,nameIndex:H.nameIndex}}function I(){if(g===void 0){let H=Uq(t.mappings),K=Vo(H,T);H.error!==void 0?(e.log&&e.log(`Encountered error while decoding sourcemap: ${H.error}`),g=et):g=K}return g}function R(H){if(b===void 0){let K=[];for(let Z of I()){if(!cIe(Z))continue;let V=K[Z.sourceIndex];V||(K[Z.sourceIndex]=V=[]),V.push(Z)}b=K.map(Z=>XD(Z,YGe,uIe))}return b[H]}function M(){if(m===void 0){let H=[];for(let K of I())H.push(K);m=XD(H,$Ge,uIe)}return m}function N(H){let K=p.get(e.getCanonicalFileName(H.fileName));if(K===void 0)return H;let Z=R(K);if(!Et(Z))return H;let V=_A(Z,H.pos,QGe,tl);V<0&&(V=~V);let ue=Z[V];return ue===void 0||ue.sourceIndex!==K?H:{fileName:s,pos:ue.generatedPosition}}function O(H){let K=M();if(!Et(K))return H;let Z=_A(K,H.pos,ZGe,tl);Z<0&&(Z=~Z);let V=K[Z];return V===void 0||!cIe(V)?H:{fileName:u[V.sourceIndex],pos:V.sourcePosition}}}var Hq,K5,X5,Y5,eVe=A({"src/compiler/sourcemap.ts"(){"use strict";ia(),oS(),Hq=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,K5=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,X5=/^\s*(\/\/[@#] .*)?$/,Y5={getSourcePosition:el,getGeneratedPosition:el}}});function Ou(e){return e=Nl(e),e?ss(e):0}function tVe(e){return!e||!jg(e)?!1:Et(e.elements,dIe)}function dIe(e){return e.propertyName!==void 0&&e.propertyName.escapedText==="default"}function Nm(e,t){return r;function r(o){return o.kind===312?t(o):i(o)}function i(o){return e.factory.createBundle(Ft(o.sourceFiles,t),o.prepends)}}function hle(e){return!!dR(e)}function $5(e){if(dR(e))return!0;let t=e.importClause&&e.importClause.namedBindings;if(!t||!jg(t))return!1;let r=0;for(let i of t.elements)dIe(i)&&r++;return r>0&&r!==t.elements.length||!!(t.elements.length-r)&&MA(e)}function qq(e){return!$5(e)&&(MA(e)||!!e.importClause&&jg(e.importClause.namedBindings)&&tVe(e.importClause.namedBindings))}function Jq(e,t){let r=e.getEmitResolver(),i=e.getCompilerOptions(),o=[],s=new $q,l=[],u=new Map,p,g=!1,m,b=!1,T=!1,I=!1;for(let N of t.statements)switch(N.kind){case 272:o.push(N),!T&&$5(N)&&(T=!0),!I&&qq(N)&&(I=!0);break;case 271:N.moduleReference.kind===283&&o.push(N);break;case 278:if(N.moduleSpecifier)if(!N.exportClause)o.push(N),b=!0;else if(o.push(N),Df(N.exportClause))M(N);else{let O=N.exportClause.name;u.get(Sr(O))||(BN(l,Ou(N),O),u.set(Sr(O),!0),p=In(p,O)),T=!0}else M(N);break;case 277:N.isExportEquals&&!m&&(m=N);break;case 243:if(ei(N,32))for(let O of N.declarationList.declarations)p=pIe(O,u,p,l);break;case 262:if(ei(N,32))if(ei(N,2048))g||(BN(l,Ou(N),e.factory.getDeclarationName(N)),g=!0);else{let O=N.name;u.get(Sr(O))||(BN(l,Ou(N),O),u.set(Sr(O),!0),p=In(p,O))}break;case 263:if(ei(N,32))if(ei(N,2048))g||(BN(l,Ou(N),e.factory.getDeclarationName(N)),g=!0);else{let O=N.name;O&&!u.get(Sr(O))&&(BN(l,Ou(N),O),u.set(Sr(O),!0),p=In(p,O))}break}let R=WH(e.factory,e.getEmitHelperFactory(),t,i,b,T,I);return R&&o.unshift(R),{externalImports:o,exportSpecifiers:s,exportEquals:m,hasExportStarsToExportValues:b,exportedBindings:l,exportedNames:p,externalHelpersImportDeclaration:R};function M(N){for(let O of aa(N.exportClause,Df).elements)if(!u.get(Sr(O.name))){let H=O.propertyName||O.name;N.moduleSpecifier||s.add(H,O);let K=r.getReferencedImportDeclaration(H)||r.getReferencedValueDeclaration(H);K&&BN(l,Ou(K),O.name),u.set(Sr(O.name),!0),p=In(p,O.name)}}}function pIe(e,t,r,i){if(ta(e.name))for(let o of e.name.elements)Vc(o)||(r=pIe(o,t,r,i));else if(!ol(e.name)){let o=Sr(e.name);t.get(o)||(t.set(o,!0),r=In(r,e.name),Ug(e.name)&&BN(i,Ou(e),e.name))}return r}function BN(e,t,r){let i=e[t];return i?i.push(r):e[t]=i=[r],i}function rE(e){return us(e)||e.kind===9||Fd(e.kind)||Ve(e)}function F_(e){return!Ve(e)&&rE(e)}function GN(e){return e>=65&&e<=79}function VN(e){switch(e){case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 45;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 75:return 52;case 79:return 53;case 76:return 57;case 77:return 56;case 78:return 61}}function Q5(e){if(!eu(e))return;let t=vs(e.expression);return gS(t)?t:void 0}function fIe(e,t,r){for(let i=t;irVe(i,t,r))}function nVe(e){return iVe(e)||Il(e)}function eF(e){return tr(e.members,nVe)}function rVe(e,t,r){return Jo(e)&&(!!e.initializer||!t)&&fc(e)===r}function iVe(e){return Jo(e)&&fc(e)}function Dw(e){return e.kind===172&&e.initializer!==void 0}function gle(e){return!sa(e)&&(RA(e)||kd(e))&&Xi(e.name)}function vle(e){let t;if(e){let r=e.parameters,i=r.length>0&&w1(r[0]),o=i?1:0,s=i?r.length-1:r.length;for(let l=0;lYq(r.privateEnv,t))}function Sle(e){return!e.initializer&&Ve(e.name)}function Cw(e){return Jn(e,Sle)}var bI,$q,sVe=A({"src/compiler/transformers/utilities.ts"(){"use strict";ia(),bI=class KD{constructor(){this._map=new Map}get size(){return this._map.size}has(t){return this._map.has(KD.toKey(t))}get(t){return this._map.get(KD.toKey(t))}set(t,r){return this._map.set(KD.toKey(t),r),this}delete(t){var r;return((r=this._map)==null?void 0:r.delete(KD.toKey(t)))??!1}clear(){this._map.clear()}values(){return this._map.values()}static toKey(t){if(cS(t)||ol(t)){let r=t.emitNode.autoGenerate;if((r.flags&7)===4){let i=ew(t),o=Yh(i)&&i!==t?KD.toKey(i):`(generated@${ss(i)})`;return E0(!1,r.prefix,o,r.suffix,KD.toKey)}else{let i=`(auto@${r.id})`;return E0(!1,r.prefix,i,r.suffix,KD.toKey)}}return Xi(t)?Sr(t).slice(1):Sr(t)}},$q=class extends bI{add(e,t){let r=this.get(e);return r?r.push(t):this.set(e,r=[t]),r}remove(e,t){let r=this.get(e);r&&(vA(r,t),r.length||this.delete(e))}}}});function JS(e,t,r,i,o,s){let l=e,u;if(Bv(e))for(u=e.right;coe(e.left)||dU(e.left);)if(Bv(u))l=e=u,u=e.right;else return C.checkDefined(rt(u,t,bt));let p,g={context:r,level:i,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:m,emitBindingOrAssignment:b,createArrayBindingOrAssignmentPattern:T=>_Ve(r.factory,T),createObjectBindingOrAssignmentPattern:T=>gVe(r.factory,T),createArrayBindingOrAssignmentElement:yVe,visitor:t};if(u&&(u=rt(u,t,bt),C.assert(u),Ve(u)&&Tle(e,u.escapedText)||Ale(e)?u=EI(g,u,!1,l):o?u=EI(g,u,!0,l):Xs(e)&&(l=u)),jN(g,e,u,l,Bv(e)),u&&o){if(!Et(p))return u;p.push(u)}return r.factory.inlineExpressions(p)||r.factory.createOmittedExpression();function m(T){p=In(p,T)}function b(T,I,R,M){C.assertNode(T,s?Ve:bt);let N=s?s(T,I,R):dt(r.factory.createAssignment(C.checkDefined(rt(T,t,bt)),I),R);N.original=M,m(N)}}function Tle(e,t){let r=eb(e);return uL(r)?lVe(r,t):Ve(r)?r.escapedText===t:!1}function lVe(e,t){let r=KR(e);for(let i of r)if(Tle(i,t))return!0;return!1}function Ale(e){let t=f5(e);if(t&&Za(t)&&!S1(t.expression))return!0;let r=eb(e);return!!r&&uL(r)&&cVe(r)}function cVe(e){return!!Ke(KR(e),Ale)}function iE(e,t,r,i,o,s=!1,l){let u,p=[],g=[],m={context:r,level:i,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:s,emitExpression:b,emitBindingOrAssignment:T,createArrayBindingOrAssignmentPattern:I=>mVe(r.factory,I),createObjectBindingOrAssignmentPattern:I=>hVe(r.factory,I),createArrayBindingOrAssignmentElement:I=>vVe(r.factory,I),visitor:t};if(Oi(e)){let I=Qk(e);I&&(Ve(I)&&Tle(e,I.escapedText)||Ale(e))&&(I=EI(m,C.checkDefined(rt(I,m.visitor,bt)),!1,I),e=r.factory.updateVariableDeclaration(e,e.name,void 0,void 0,I))}if(jN(m,e,o,e,l),u){let I=r.factory.createTempVariable(void 0);if(s){let R=r.factory.inlineExpressions(u);u=void 0,T(I,R,void 0,void 0)}else{r.hoistVariableDeclaration(I);let R=Ya(p);R.pendingExpressions=In(R.pendingExpressions,r.factory.createAssignment(I,R.value)),Jr(R.pendingExpressions,u),R.value=I}}for(let{pendingExpressions:I,name:R,value:M,location:N,original:O}of p){let H=r.factory.createVariableDeclaration(R,void 0,void 0,I?r.factory.inlineExpressions(In(I,M)):M);H.original=O,dt(H,N),g.push(H)}return g;function b(I){u=In(u,I)}function T(I,R,M,N){C.assertNode(I,uS),u&&(R=r.factory.inlineExpressions(In(u,R)),u=void 0),p.push({pendingExpressions:u,name:I,value:R,location:M,original:N})}}function jN(e,t,r,i,o){let s=eb(t);if(!o){let l=rt(Qk(t),e.visitor,bt);l?r?(r=pVe(e,r,l,i),!F_(l)&&uL(s)&&(r=EI(e,r,!0,i))):r=l:r||(r=e.context.factory.createVoidZero())}XV(s)?uVe(e,t,s,r,i):YV(s)?dVe(e,t,s,r,i):e.emitBindingOrAssignment(s,r,i,t)}function uVe(e,t,r,i,o){let s=KR(r),l=s.length;if(l!==1){let g=!cL(t)||l!==0;i=EI(e,i,g,o)}let u,p;for(let g=0;g=1&&!(m.transformFlags&98304)&&!(eb(m).transformFlags&98304)&&!Za(b))u=In(u,rt(m,e.visitor,Pre));else{u&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(u),i,o,r),u=void 0);let T=fVe(e,i,b);Za(b)&&(p=In(p,T.argumentExpression)),jN(e,m,T,m)}}}u&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(u),i,o,r)}function dVe(e,t,r,i,o){let s=KR(r),l=s.length;if(e.level<1&&e.downlevelIteration)i=EI(e,dt(e.context.getEmitHelperFactory().createReadHelper(i,l>0&&p5(s[l-1])?void 0:l),o),!1,o);else if(l!==1&&(e.level<1||l===0)||Jn(s,Vc)){let g=!cL(t)||l!==0;i=EI(e,i,g,o)}let u,p;for(let g=0;g=1)if(m.transformFlags&65536||e.hasTransformedPriorElement&&!_Ie(m)){e.hasTransformedPriorElement=!0;let b=e.context.factory.createTempVariable(void 0);e.hoistTempVariables&&e.context.hoistVariableDeclaration(b),p=In(p,[b,m]),u=In(u,e.createArrayBindingOrAssignmentElement(b))}else u=In(u,m);else{if(Vc(m))continue;if(p5(m)){if(g===l-1){let b=e.context.factory.createArraySliceCall(i,g);jN(e,m,b,m)}}else{let b=e.context.factory.createElementAccessExpression(i,g);jN(e,m,b,m)}}}if(u&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(u),i,o,r),p)for(let[g,m]of p)jN(e,m,g,m)}function _Ie(e){let t=eb(e);if(!t||Vc(t))return!0;let r=f5(e);if(r&&!R_(r))return!1;let i=Qk(e);return i&&!F_(i)?!1:uL(t)?Jn(KR(t),_Ie):Ve(t)}function pVe(e,t,r,i){return t=EI(e,t,!0,i),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,r,void 0,t)}function fVe(e,t,r){let{factory:i}=e.context;if(Za(r)){let o=EI(e,C.checkDefined(rt(r.expression,e.visitor,bt)),!1,r);return e.context.factory.createElementAccessExpression(t,o)}else if(Qp(r)){let o=i.cloneNode(r);return e.context.factory.createElementAccessExpression(t,o)}else{let o=e.context.factory.createIdentifier(Sr(r));return e.context.factory.createPropertyAccessExpression(t,o)}}function EI(e,t,r,i){if(Ve(t)&&r)return t;{let o=e.context.factory.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(o),e.emitExpression(dt(e.context.factory.createAssignment(o,t),i))):e.emitBindingOrAssignment(o,t,i,void 0),o}}function mVe(e,t){return C.assertEachNode(t,A6),e.createArrayBindingPattern(t)}function _Ve(e,t){return C.assertEachNode(t,pL),e.createArrayLiteralExpression(Ft(t,e.converters.convertToArrayAssignmentElement))}function hVe(e,t){return C.assertEachNode(t,Qa),e.createObjectBindingPattern(t)}function gVe(e,t){return C.assertEachNode(t,dL),e.createObjectLiteralExpression(Ft(t,e.converters.convertToObjectAssignmentElement))}function vVe(e,t){return e.createBindingElement(void 0,void 0,t)}function yVe(e){return e}var Qq,bVe=A({"src/compiler/transformers/destructuring.ts"(){"use strict";ia(),Qq=(e=>(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(Qq||{})}});function Ile(e,t,r=e.createThis()){let i=e.createAssignment(t,r),o=e.createExpressionStatement(i),s=e.createBlock([o],!1),l=e.createClassStaticBlockDeclaration(s);return wu(l).classThis=t,l}function UN(e){var t;if(!Il(e)||e.body.statements.length!==1)return!1;let r=e.body.statements[0];return eu(r)&&Mc(r.expression,!0)&&Ve(r.expression.left)&&((t=e.emitNode)==null?void 0:t.classThis)===r.expression.left&&r.expression.right.kind===110}function Zq(e){var t;return!!((t=e.emitNode)!=null&&t.classThis)&&Et(e.members,UN)}function xle(e,t,r,i){if(Zq(t))return t;let o=Ile(e,r,i);t.name&&Ca(o.body.statements[0],t.name);let s=e.createNodeArray([o,...t.members]);dt(s,t.members);let l=Tc(t)?e.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,s):e.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,s);return wu(l).classThis=r,l}var EVe=A({"src/compiler/transformers/classThis.ts"(){"use strict";ia()}});function HN(e,t,r){let i=Nl(Xl(r));return(Tc(i)||Sc(i))&&!i.name&&ei(i,2048)?e.createStringLiteral("default"):e.createStringLiteralFromNode(t)}function hIe(e,t,r){let{factory:i}=e;if(r!==void 0)return{assignedName:i.createStringLiteral(r),name:t};if(R_(t)||Xi(t))return{assignedName:i.createStringLiteralFromNode(t),name:t};if(R_(t.expression)&&!Ve(t.expression))return{assignedName:i.createStringLiteralFromNode(t.expression),name:t};let o=i.getGeneratedNameForNode(t);e.hoistVariableDeclaration(o);let s=e.getEmitHelperFactory().createPropKeyHelper(t.expression),l=i.createAssignment(o,s),u=i.updateComputedPropertyName(t,l);return{assignedName:o,name:u}}function Rle(e,t,r=e.factory.createThis()){let{factory:i}=e,o=e.getEmitHelperFactory().createSetFunctionNameHelper(r,t),s=i.createExpressionStatement(o),l=i.createBlock([s],!1),u=i.createClassStaticBlockDeclaration(l);return wu(u).assignedName=t,u}function SI(e){var t;if(!Il(e)||e.body.statements.length!==1)return!1;let r=e.body.statements[0];return eu(r)&&_N(r.expression,"___setFunctionName")&&r.expression.arguments.length>=2&&r.expression.arguments[1]===((t=e.emitNode)==null?void 0:t.assignedName)}function nF(e){var t;return!!((t=e.emitNode)!=null&&t.assignedName)&&Et(e.members,SI)}function eJ(e){return!!e.name||nF(e)}function rF(e,t,r,i){if(nF(t))return t;let{factory:o}=e,s=Rle(e,r,i);t.name&&Ca(s.body.statements[0],t.name);let l=ri(t.members,UN)+1,u=t.members.slice(0,l),p=t.members.slice(l),g=o.createNodeArray([...u,s,...p]);return dt(g,t.members),t=Tc(t)?o.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,g):o.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,g),wu(t).assignedName=r,t}function o2(e,t,r,i){if(i&&Na(r)&&Rj(r))return t;let{factory:o}=e,s=Xl(t),l=Zc(s)?aa(rF(e,s,r),Zc):e.getEmitHelperFactory().createSetFunctionNameHelper(s,r);return o.restoreOuterExpressions(t,l)}function SVe(e,t,r,i){let{factory:o}=e,{assignedName:s,name:l}=hIe(e,t.name,i),u=o2(e,t.initializer,s,r);return o.updatePropertyAssignment(t,l,u)}function TVe(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):HN(o,t.name,t.objectAssignmentInitializer),l=o2(e,t.objectAssignmentInitializer,s,r);return o.updateShorthandPropertyAssignment(t,t.name,l)}function AVe(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):HN(o,t.name,t.initializer),l=o2(e,t.initializer,s,r);return o.updateVariableDeclaration(t,t.name,t.exclamationToken,t.type,l)}function IVe(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):HN(o,t.name,t.initializer),l=o2(e,t.initializer,s,r);return o.updateParameterDeclaration(t,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,t.type,l)}function xVe(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):HN(o,t.name,t.initializer),l=o2(e,t.initializer,s,r);return o.updateBindingElement(t,t.dotDotDotToken,t.propertyName,t.name,l)}function RVe(e,t,r,i){let{factory:o}=e,{assignedName:s,name:l}=hIe(e,t.name,i),u=o2(e,t.initializer,s,r);return o.updatePropertyDeclaration(t,t.modifiers,l,t.questionToken??t.exclamationToken,t.type,u)}function DVe(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):HN(o,t.left,t.right),l=o2(e,t.right,s,r);return o.updateBinaryExpression(t,t.left,t.operatorToken,l)}function CVe(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):o.createStringLiteral(t.isExportEquals?"":"default"),l=o2(e,t.expression,s,r);return o.updateExportAssignment(t,t.modifiers,l)}function bp(e,t,r,i){switch(t.kind){case 303:return SVe(e,t,r,i);case 304:return TVe(e,t,r,i);case 260:return AVe(e,t,r,i);case 169:return IVe(e,t,r,i);case 208:return xVe(e,t,r,i);case 172:return RVe(e,t,r,i);case 226:return DVe(e,t,r,i);case 277:return CVe(e,t,r,i)}}var NVe=A({"src/compiler/transformers/namedEvaluation.ts"(){"use strict";ia()}});function tJ(e,t,r,i,o,s){let l=rt(t.tag,r,bt);C.assert(l);let u=[void 0],p=[],g=[],m=t.template;if(s===0&&!Qj(m))return An(t,r,e);let{factory:b}=e;if(QA(m))p.push(Dle(b,m)),g.push(Cle(b,m,i));else{p.push(Dle(b,m.head)),g.push(Cle(b,m.head,i));for(let I of m.templateSpans)p.push(Dle(b,I.literal)),g.push(Cle(b,I.literal,i)),u.push(C.checkDefined(rt(I.expression,r,bt)))}let T=e.getEmitHelperFactory().createTemplateObjectHelper(b.createArrayLiteralExpression(p),b.createArrayLiteralExpression(g));if(ac(i)){let I=b.createUniqueName("templateObject");o(I),u[0]=b.createLogicalOr(I,b.createAssignment(I,T))}else u[0]=T;return b.createCallExpression(l,void 0,u)}function Dle(e,t){return t.templateFlags&26656?e.createVoidZero():e.createStringLiteral(t.text)}function Cle(e,t,r){let i=t.rawText;if(i===void 0){C.assertIsDefined(r,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),i=A1(r,t);let o=t.kind===15||t.kind===18;i=i.substring(1,i.length-(o?1:2))}return i=i.replace(/\r\n?/g,` +`),dt(e.createStringLiteral(i),t)}var nJ,PVe=A({"src/compiler/transformers/taggedTemplate.ts"(){"use strict";ia(),nJ=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(nJ||{})}});function Nle(e){let{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,resumeLexicalEnvironment:o,endLexicalEnvironment:s,hoistVariableDeclaration:l}=e,u=e.getEmitResolver(),p=e.getCompilerOptions(),g=as(p),m=ku(p),b=!!p.experimentalDecorators,T=p.emitDecoratorMetadata?Mle(e):void 0,I=e.onEmitNode,R=e.onSubstituteNode;e.onEmitNode=sc,e.onSubstituteNode=Rl,e.enableSubstitution(211),e.enableSubstitution(212);let M,N,O,H,K,Z,V,ue;return G;function G(ee){return ee.kind===313?ne(ee):he(ee)}function ne(ee){return t.createBundle(ee.sourceFiles.map(he),Vi(ee.prepends,we=>we.kind===315?nH(we,"js"):we))}function he(ee){if(ee.isDeclarationFile)return ee;M=ee;let we=ye(ee,at);return Vg(we,e.readEmitHelpers()),M=void 0,we}function ye(ee,we){let St=H,pn=K,Tr=Z;$(ee);let gr=we(ee);return H!==St&&(K=pn),H=St,Z=Tr,gr}function $(ee){switch(ee.kind){case 312:case 269:case 268:case 241:H=ee,K=void 0;break;case 263:case 262:if(ei(ee,128))break;ee.name?J(ee):C.assert(ee.kind===263||ei(ee,2048));break}}function Y(ee){return ye(ee,oe)}function oe(ee){return ee.transformFlags&1?je(ee):ee}function fe(ee){return ye(ee,Ne)}function Ne(ee){switch(ee.kind){case 272:case 271:case 277:case 278:return ie(ee);default:return oe(ee)}}function me(ee){let we=Lo(ee);if(we===ee||Ll(ee))return!1;if(!we||we.kind!==ee.kind)return!0;switch(ee.kind){case 272:if(C.assertNode(we,Lc),ee.importClause!==we.importClause||ee.attributes!==we.attributes)return!0;break;case 271:if(C.assertNode(we,tu),ee.name!==we.name||ee.isTypeOnly!==we.isTypeOnly||ee.moduleReference!==we.moduleReference&&(Qd(ee.moduleReference)||Qd(we.moduleReference)))return!0;break;case 278:if(C.assertNode(we,Kl),ee.exportClause!==we.exportClause||ee.attributes!==we.attributes)return!0;break}return!1}function ie(ee){if(me(ee))return ee.transformFlags&1?An(ee,Y,e):ee;switch(ee.kind){case 272:return Tn(ee);case 271:return Po(ee);case 277:return Di(ee);case 278:return or(ee);default:C.fail("Unhandled ellided statement")}}function ve(ee){return ye(ee,Le)}function Le(ee){if(!(ee.kind===278||ee.kind===272||ee.kind===273||ee.kind===271&&ee.moduleReference.kind===283))return ee.transformFlags&1||ei(ee,32)?je(ee):ee}function He(ee){return we=>ye(we,St=>Ee(St,ee))}function Ee(ee,we){switch(ee.kind){case 176:return Rn(ee);case 172:return zt(ee,we);case 177:return ja(ee,we);case 178:return En(ee,we);case 174:return No(ee,we);case 175:return An(ee,Y,e);case 240:return ee;case 181:return;default:return C.failBadSyntaxKind(ee)}}function Ce(ee){return we=>ye(we,St=>Me(St,ee))}function Me(ee,we){switch(ee.kind){case 303:case 304:case 305:return Y(ee);case 177:return ja(ee,we);case 178:return En(ee,we);case 174:return No(ee,we);default:return C.failBadSyntaxKind(ee)}}function Fe(ee){return Eu(ee)?void 0:Y(ee)}function At(ee){return Ia(ee)?void 0:Y(ee)}function Se(ee){if(!Eu(ee)&&!(zA(ee.kind)&28895)&&!(N&&ee.kind===95))return ee}function je(ee){if(Ki(ee)&&ei(ee,128))return t.createNotEmittedStatement(ee);switch(ee.kind){case 95:case 90:return N?void 0:ee;case 125:case 123:case 124:case 128:case 164:case 87:case 138:case 148:case 103:case 147:case 188:case 189:case 190:case 191:case 187:case 182:case 168:case 133:case 159:case 136:case 154:case 150:case 146:case 116:case 155:case 185:case 184:case 186:case 183:case 192:case 193:case 194:case 196:case 197:case 198:case 199:case 200:case 201:case 181:return;case 265:return t.createNotEmittedStatement(ee);case 270:return;case 264:return t.createNotEmittedStatement(ee);case 263:return nn(ee);case 231:return rn(ee);case 298:return xr(ee);case 233:return ln(ee);case 210:return Bt(ee);case 176:case 172:case 174:case 177:case 178:case 175:return C.fail("Class and object literal elements must be visited with their respective visitors");case 262:return wn(ee);case 218:return Ue(ee);case 219:return mt(ee);case 169:return ft(ee);case 217:return pt(ee);case 216:case 234:return j(ee);case 238:return xt(ee);case 213:return Ye(ee);case 214:return ht(ee);case 215:return Vt(ee);case 235:return ot(ee);case 266:return q(ee);case 243:return Nt(ee);case 260:return We(ee);case 267:return Dt(ee);case 271:return Po(ee);case 285:return yn(ee);case 286:return fn(ee);default:return An(ee,Y,e)}}function at(ee){let we=ud(p,"alwaysStrict")&&!(ac(ee)&&m>=5)&&!$f(ee);return t.updateSourceFile(ee,Gq(ee.statements,fe,e,0,we))}function Bt(ee){return t.updateObjectLiteralExpression(ee,Bn(ee.properties,Ce(ee),wg))}function yt(ee){let we=0;Et(Kq(ee,!0,!0))&&(we|=1);let St=x_(ee);return St&&Xl(St.expression).kind!==106&&(we|=64),Ov(b,ee)&&(we|=2),xC(b,ee)&&(we|=4),Dn(ee)?we|=8:Fo(ee)?we|=32:Yl(ee)&&(we|=16),we}function Qe(ee){return!!(ee.transformFlags&8192)}function gt(ee){return Sf(ee)||Et(ee.typeParameters)||Et(ee.heritageClauses,Qe)||Et(ee.members,Qe)}function nn(ee){let we=yt(ee),St=g<=1&&!!(we&7);if(!gt(ee)&&!Ov(b,ee)&&!Dn(ee))return t.updateClassDeclaration(ee,Bn(ee.modifiers,Se,Ia),ee.name,void 0,Bn(ee.heritageClauses,Y,ef),Bn(ee.members,He(ee),$c));St&&e.startLexicalEnvironment();let pn=St||we&8,Tr=pn?Bn(ee.modifiers,At,al):Bn(ee.modifiers,Y,al);we&2&&(Tr=Xn(Tr,ee));let jr=pn&&!ee.name||we&4||we&1?ee.name??t.getGeneratedNameForNode(ee):ee.name,Ni=t.updateClassDeclaration(ee,Tr,jr,void 0,Bn(ee.heritageClauses,Y,ef),Nn(ee)),Lr=Va(ee);we&1&&(Lr|=64),fr(Ni,Lr);let $o;if(St){let El=[Ni],Uc=fU(La(M.text,ee.members.end),20),js=t.getInternalName(ee),gc=t.createPartiallyEmittedExpression(js);CR(gc,Uc.end),fr(gc,3072);let Ts=t.createReturnStatement(gc);nN(Ts,Uc.pos),fr(Ts,3840),El.push(Ts),Qh(El,e.endLexicalEnvironment());let Hc=t.createImmediatelyInvokedArrowFunction(El);Pk(Hc,1);let ip=t.createVariableDeclaration(t.getLocalName(ee,!1,!1),void 0,void 0,Hc);Pr(ip,ee);let Oc=t.createVariableStatement(void 0,t.createVariableDeclarationList([ip],1));Pr(Oc,ee),oc(Oc,ee),Ca(Oc,zg(ee)),Ku(Oc),$o=Oc}else $o=Ni;if(pn){if(we&8)return[$o,ds(ee)];if(we&32)return[$o,t.createExportDefault(t.getLocalName(ee,!1,!0))];if(we&16)return[$o,t.createExternalModuleExport(t.getDeclarationName(ee,!1,!0))]}return $o}function rn(ee){let we=Bn(ee.modifiers,At,al);return Ov(b,ee)&&(we=Xn(we,ee)),t.updateClassExpression(ee,we,ee.name,void 0,Bn(ee.heritageClauses,Y,ef),Nn(ee))}function Nn(ee){let we=Bn(ee.members,He(ee),$c),St,pn=ig(ee),Tr=pn&&tr(pn.parameters,gr=>pp(gr,pn));if(Tr)for(let gr of Tr){let jr=t.createPropertyDeclaration(void 0,gr.name,void 0,void 0,void 0);Pr(jr,gr),St=In(St,jr)}return St?(St=Jr(St,we),dt(t.createNodeArray(St),ee.members)):we}function Xn(ee,we){let St=Qt(we,we);if(Et(St)){let pn=[];Jr(pn,W8(ee,Zk)),Jr(pn,tr(ee,Eu)),Jr(pn,St),Jr(pn,tr(Cne(ee,Zk),Ia)),ee=dt(t.createNodeArray(pn),ee)}return ee}function _n(ee,we,St){if(pi(St)&&xj(b,we,St)){let pn=Qt(we,St);if(Et(pn)){let Tr=[];Jr(Tr,tr(ee,Eu)),Jr(Tr,pn),Jr(Tr,tr(ee,Ia)),ee=dt(t.createNodeArray(Tr),ee)}}return ee}function Qt(ee,we){if(b)return gIe?vi(ee,we):Yt(ee,we)}function Yt(ee,we){if(T){let St;if(ho(ee)){let pn=r().createMetadataHelper("design:type",T.serializeTypeOfNode({currentLexicalScope:H,currentNameScope:we},ee));St=In(St,t.createDecorator(pn))}if(Ro(ee)){let pn=r().createMetadataHelper("design:paramtypes",T.serializeParameterTypesOfNode({currentLexicalScope:H,currentNameScope:we},ee,we));St=In(St,t.createDecorator(pn))}if(ki(ee)){let pn=r().createMetadataHelper("design:returntype",T.serializeReturnTypeOfNode({currentLexicalScope:H,currentNameScope:we},ee));St=In(St,t.createDecorator(pn))}return St}}function vi(ee,we){if(T){let St;if(ho(ee)){let pn=t.createPropertyAssignment("type",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),T.serializeTypeOfNode({currentLexicalScope:H,currentNameScope:we},ee)));St=In(St,pn)}if(Ro(ee)){let pn=t.createPropertyAssignment("paramTypes",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),T.serializeParameterTypesOfNode({currentLexicalScope:H,currentNameScope:we},ee,we)));St=In(St,pn)}if(ki(ee)){let pn=t.createPropertyAssignment("returnType",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),T.serializeReturnTypeOfNode({currentLexicalScope:H,currentNameScope:we},ee)));St=In(St,pn)}if(St){let pn=r().createMetadataHelper("design:typeinfo",t.createObjectLiteralExpression(St,!0));return[t.createDecorator(pn)]}}}function ho(ee){let we=ee.kind;return we===174||we===177||we===178||we===172}function ki(ee){return ee.kind===174}function Ro(ee){switch(ee.kind){case 263:case 231:return ig(ee)!==void 0;case 174:case 177:case 178:return!0}return!1}function nr(ee,we){let St=ee.name;return Xi(St)?t.createIdentifier(""):Za(St)?we&&!F_(St.expression)?t.getGeneratedNameForNode(St):St.expression:Ve(St)?t.createStringLiteral(Sr(St)):t.cloneNode(St)}function qr(ee){let we=ee.name;if(Za(we)&&(!fc(ee)&&Z||Sf(ee)&&b)){let St=rt(we.expression,Y,bt);C.assert(St);let pn=Sm(St);if(!F_(pn)){let Tr=t.getGeneratedNameForNode(we);return l(Tr),t.updateComputedPropertyName(we,t.createAssignment(Tr,St))}}return C.checkDefined(rt(we,Y,ic))}function xr(ee){if(ee.token!==119)return An(ee,Y,e)}function ln(ee){return t.updateExpressionWithTypeArguments(ee,C.checkDefined(rt(ee.expression,Y,Zd)),void 0)}function tt(ee){return!Fl(ee.body)}function zt(ee,we){let St=ee.flags&33554432||ei(ee,64);if(St&&!(b&&Sf(ee)))return;let pn=pi(we)?St?Bn(ee.modifiers,At,al):Bn(ee.modifiers,Y,al):Bn(ee.modifiers,Fe,al);return pn=_n(pn,ee,we),St?t.updatePropertyDeclaration(ee,xo(pn,t.createModifiersFromModifierFlags(128)),C.checkDefined(rt(ee.name,Y,ic)),void 0,void 0,void 0):t.updatePropertyDeclaration(ee,pn,qr(ee),void 0,void 0,rt(ee.initializer,Y,bt))}function Rn(ee){if(tt(ee))return t.updateConstructorDeclaration(ee,void 0,xl(ee.parameters,Y,e),bi(ee.body,ee))}function ui(ee,we,St,pn,Tr,gr){let jr=pn[Tr],Ni=we[jr];if(Jr(ee,Bn(we,Y,Ki,St,jr-St)),WS(Ni)){let Lr=[];ui(Lr,Ni.tryBlock.statements,0,pn,Tr+1,gr);let $o=t.createNodeArray(Lr);dt($o,Ni.tryBlock.statements),ee.push(t.updateTryStatement(Ni,t.updateBlock(Ni.tryBlock,Lr),rt(Ni.catchClause,Y,$1),rt(Ni.finallyBlock,Y,Xo)))}else Jr(ee,Bn(we,Y,Ki,jr,1)),Jr(ee,gr);Jr(ee,Bn(we,Y,Ki,jr+1))}function bi(ee,we){let St=we&&tr(we.parameters,Lr=>pp(Lr,we));if(!Et(St))return rf(ee,Y,e);let pn=[];o();let Tr=t.copyPrologue(ee.statements,pn,!1,Y),gr=Z5(ee.statements,Tr),jr=Vi(St,ro);gr.length?ui(pn,ee.statements,Tr,gr,0,jr):(Jr(pn,jr),Jr(pn,Bn(ee.statements,Y,Ki,Tr))),pn=t.mergeLexicalEnvironment(pn,s());let Ni=t.createBlock(dt(t.createNodeArray(pn),ee.statements),!0);return dt(Ni,ee),Pr(Ni,ee),Ni}function ro(ee){let we=ee.name;if(!Ve(we))return;let St=qa(dt(t.cloneNode(we),we),we.parent);fr(St,3168);let pn=qa(dt(t.cloneNode(we),we),we.parent);return fr(pn,3072),Ku(Nk(dt(Pr(t.createExpressionStatement(t.createAssignment(dt(t.createPropertyAccessExpression(t.createThis(),St),ee.name),pn)),ee),f0(ee,-1))))}function No(ee,we){if(!(ee.transformFlags&1))return ee;if(!tt(ee))return;let St=pi(we)?Bn(ee.modifiers,Y,al):Bn(ee.modifiers,Fe,al);return St=_n(St,ee,we),t.updateMethodDeclaration(ee,St,ee.asteriskToken,qr(ee),void 0,void 0,xl(ee.parameters,Y,e),void 0,rf(ee.body,Y,e))}function _a(ee){return!(Fl(ee.body)&&ei(ee,64))}function ja(ee,we){if(!(ee.transformFlags&1))return ee;if(!_a(ee))return;let St=pi(we)?Bn(ee.modifiers,Y,al):Bn(ee.modifiers,Fe,al);return St=_n(St,ee,we),t.updateGetAccessorDeclaration(ee,St,qr(ee),xl(ee.parameters,Y,e),void 0,rf(ee.body,Y,e)||t.createBlock([]))}function En(ee,we){if(!(ee.transformFlags&1))return ee;if(!_a(ee))return;let St=pi(we)?Bn(ee.modifiers,Y,al):Bn(ee.modifiers,Fe,al);return St=_n(St,ee,we),t.updateSetAccessorDeclaration(ee,St,qr(ee),xl(ee.parameters,Y,e),rf(ee.body,Y,e)||t.createBlock([]))}function wn(ee){if(!tt(ee))return t.createNotEmittedStatement(ee);let we=t.updateFunctionDeclaration(ee,Bn(ee.modifiers,Se,Ia),ee.asteriskToken,ee.name,void 0,xl(ee.parameters,Y,e),void 0,rf(ee.body,Y,e)||t.createBlock([]));if(Dn(ee)){let St=[we];return Gs(St,ee),St}return we}function Ue(ee){return tt(ee)?t.updateFunctionExpression(ee,Bn(ee.modifiers,Se,Ia),ee.asteriskToken,ee.name,void 0,xl(ee.parameters,Y,e),void 0,rf(ee.body,Y,e)||t.createBlock([])):t.createOmittedExpression()}function mt(ee){return t.updateArrowFunction(ee,Bn(ee.modifiers,Se,Ia),void 0,xl(ee.parameters,Y,e),void 0,ee.equalsGreaterThanToken,rf(ee.body,Y,e))}function ft(ee){if(w1(ee))return;let we=t.updateParameterDeclaration(ee,Bn(ee.modifiers,St=>Eu(St)?Y(St):void 0,al),ee.dotDotDotToken,C.checkDefined(rt(ee.name,Y,uS)),void 0,void 0,rt(ee.initializer,Y,bt));return we!==ee&&(oc(we,ee),dt(we,P_(ee)),Ca(we,P_(ee)),fr(we.name,64)),we}function Nt(ee){if(Dn(ee)){let we=qC(ee.declarationList);return we.length===0?void 0:dt(t.createExpressionStatement(t.inlineExpressions(Ft(we,le))),ee)}else return An(ee,Y,e)}function le(ee){let we=ee.name;return ta(we)?JS(ee,Y,e,0,!1,uu):dt(t.createAssignment(yo(we),C.checkDefined(rt(ee.initializer,Y,bt))),ee)}function We(ee){let we=t.updateVariableDeclaration(ee,C.checkDefined(rt(ee.name,Y,uS)),void 0,void 0,rt(ee.initializer,Y,bt));return ee.type&&mae(we.name,ee.type),we}function pt(ee){let we=Xl(ee.expression,-7);if(pS(we)){let St=rt(ee.expression,Y,bt);return C.assert(St),t.createPartiallyEmittedExpression(St,ee)}return An(ee,Y,e)}function j(ee){let we=rt(ee.expression,Y,bt);return C.assert(we),t.createPartiallyEmittedExpression(we,ee)}function ot(ee){let we=rt(ee.expression,Y,Zd);return C.assert(we),t.createPartiallyEmittedExpression(we,ee)}function xt(ee){let we=rt(ee.expression,Y,bt);return C.assert(we),t.createPartiallyEmittedExpression(we,ee)}function Ye(ee){return t.updateCallExpression(ee,C.checkDefined(rt(ee.expression,Y,bt)),void 0,Bn(ee.arguments,Y,bt))}function ht(ee){return t.updateNewExpression(ee,C.checkDefined(rt(ee.expression,Y,bt)),void 0,Bn(ee.arguments,Y,bt))}function Vt(ee){return t.updateTaggedTemplateExpression(ee,C.checkDefined(rt(ee.tag,Y,bt)),void 0,C.checkDefined(rt(ee.template,Y,DA)))}function yn(ee){return t.updateJsxSelfClosingElement(ee,C.checkDefined(rt(ee.tagName,Y,yC)),void 0,C.checkDefined(rt(ee.attributes,Y,Y1)))}function fn(ee){return t.updateJsxOpeningElement(ee,C.checkDefined(rt(ee.tagName,Y,yC)),void 0,C.checkDefined(rt(ee.attributes,Y,Y1)))}function mn(ee){return!x1(ee)||V1(p)}function q(ee){if(!mn(ee))return t.createNotEmittedStatement(ee);let we=[],St=4,pn=ke(we,ee);pn&&(m!==4||H!==M)&&(St|=1024);let Tr=pa(ee),gr=du(ee),jr=Dn(ee)?t.getExternalModuleOrNamespaceExportName(O,ee,!1,!0):t.getDeclarationName(ee,!1,!0),Ni=t.createLogicalOr(jr,t.createAssignment(jr,t.createObjectLiteralExpression()));if(Dn(ee)){let $o=t.getLocalName(ee,!1,!0);Ni=t.createAssignment($o,Ni)}let Lr=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,Tr)],void 0,Oe(ee,gr)),void 0,[Ni]));return Pr(Lr,ee),pn&&(g0(Lr,void 0),KA(Lr,void 0)),dt(Lr,ee),M_(Lr,St),we.push(Lr),we}function Oe(ee,we){let St=O;O=we;let pn=[];i();let Tr=Ft(ee.members,Lt);return Qh(pn,s()),Jr(pn,Tr),O=St,t.createBlock(dt(t.createNodeArray(pn),ee.members),!0)}function Lt(ee){let we=nr(ee,!1),St=w(ee),pn=t.createAssignment(t.createElementAccessExpression(O,we),St),Tr=St.kind===11?pn:t.createAssignment(t.createElementAccessExpression(O,pn),we);return dt(t.createExpressionStatement(dt(Tr,ee)),ee)}function w(ee){let we=u.getConstantValue(ee);return we!==void 0?typeof we=="string"?t.createStringLiteral(we):we<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-we)):t.createNumericLiteral(we):(Is(),ee.initializer?C.checkDefined(rt(ee.initializer,Y,bt)):t.createVoidZero())}function ae(ee){let we=Lo(ee,Jl);return we?Oq(we,V1(p)):!0}function J(ee){K||(K=new Map);let we=Ge(ee);K.has(we)||K.set(we,ee)}function pe(ee){if(K){let we=Ge(ee);return K.get(we)===ee}return!0}function Ge(ee){return C.assertNode(ee.name,Ve),ee.name.escapedText}function ke(ee,we){let St=t.createVariableDeclaration(t.getLocalName(we,!1,!0)),pn=H.kind===312?0:1,Tr=t.createVariableStatement(Bn(we.modifiers,Se,Ia),t.createVariableDeclarationList([St],pn));return Pr(St,we),g0(St,void 0),KA(St,void 0),Pr(Tr,we),J(we),pe(we)?(we.kind===266?Ca(Tr.declarationList,we):Ca(Tr,we),oc(Tr,we),M_(Tr,2048),ee.push(Tr),!0):!1}function Dt(ee){if(!ae(ee))return t.createNotEmittedStatement(ee);C.assertNode(ee.name,Ve,"A TypeScript namespace should have an Identifier name."),Pa();let we=[],St=4,pn=ke(we,ee);pn&&(m!==4||H!==M)&&(St|=1024);let Tr=pa(ee),gr=du(ee),jr=Dn(ee)?t.getExternalModuleOrNamespaceExportName(O,ee,!1,!0):t.getDeclarationName(ee,!1,!0),Ni=t.createLogicalOr(jr,t.createAssignment(jr,t.createObjectLiteralExpression()));if(Dn(ee)){let $o=t.getLocalName(ee,!1,!0);Ni=t.createAssignment($o,Ni)}let Lr=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,Tr)],void 0,Pt(ee,gr)),void 0,[Ni]));return Pr(Lr,ee),pn&&(g0(Lr,void 0),KA(Lr,void 0)),dt(Lr,ee),M_(Lr,St),we.push(Lr),we}function Pt(ee,we){let St=O,pn=N,Tr=K;O=we,N=ee,K=void 0;let gr=[];i();let jr,Ni;if(ee.body)if(ee.body.kind===268)ye(ee.body,$o=>Jr(gr,Bn($o.statements,ve,Ki))),jr=ee.body.statements,Ni=ee.body;else{let $o=Dt(ee.body);$o&&(Do($o)?Jr(gr,$o):gr.push($o));let El=Kt(ee).body;jr=f0(El.statements,-1)}Qh(gr,s()),O=St,N=pn,K=Tr;let Lr=t.createBlock(dt(t.createNodeArray(gr),jr),!0);return dt(Lr,Ni),(!ee.body||ee.body.kind!==268)&&fr(Lr,Va(Lr)|3072),Lr}function Kt(ee){if(ee.body.kind===267)return Kt(ee.body)||ee.body}function Tn(ee){if(!ee.importClause)return ee;if(ee.importClause.isTypeOnly)return;let we=rt(ee.importClause,On,Eh);return we||p.importsNotUsedAsValues===1||p.importsNotUsedAsValues===2?t.updateImportDeclaration(ee,void 0,we,ee.moduleSpecifier,ee.attributes):void 0}function On(ee){C.assert(!ee.isTypeOnly);let we=de(ee)?ee.name:void 0,St=rt(ee.namedBindings,Gn,ej);return we||St?t.updateImportClause(ee,!1,we,St):void 0}function Gn(ee){if(ee.kind===274)return de(ee)?ee:void 0;{let we=p.verbatimModuleSyntax||p.preserveValueImports&&(p.importsNotUsedAsValues===1||p.importsNotUsedAsValues===2),St=Bn(ee.elements,yi,tp);return we||Et(St)?t.updateNamedImports(ee,St):void 0}}function yi(ee){return!ee.isTypeOnly&&de(ee)?ee:void 0}function Di(ee){return p.verbatimModuleSyntax||u.isValueAliasDeclaration(ee)?An(ee,Y,e):void 0}function or(ee){if(ee.isTypeOnly)return;if(!ee.exportClause||Sh(ee.exportClause))return ee;let we=p.verbatimModuleSyntax||!!ee.moduleSpecifier&&(p.importsNotUsedAsValues===1||p.importsNotUsedAsValues===2),St=rt(ee.exportClause,pn=>Mi(pn,we),VV);return St?t.updateExportDeclaration(ee,void 0,ee.isTypeOnly,St,ee.moduleSpecifier,ee.attributes):void 0}function Vr(ee,we){let St=Bn(ee.elements,Ci,Ju);return we||Et(St)?t.updateNamedExports(ee,St):void 0}function Eo(ee){return t.updateNamespaceExport(ee,C.checkDefined(rt(ee.name,Y,Ve)))}function Mi(ee,we){return Sh(ee)?Eo(ee):Vr(ee,we)}function Ci(ee){return!ee.isTypeOnly&&(p.verbatimModuleSyntax||u.isValueAliasDeclaration(ee))?ee:void 0}function Kr(ee){return de(ee)||!ac(M)&&u.isTopLevelValueImportEqualsWithEntityName(ee)}function Po(ee){if(ee.isTypeOnly)return;if(l0(ee)){let St=de(ee);return!St&&p.importsNotUsedAsValues===1?Pr(dt(t.createImportDeclaration(void 0,void 0,ee.moduleReference.expression,void 0),ee),ee):St?An(ee,Y,e):void 0}if(!Kr(ee))return;let we=Kk(t,ee.moduleReference);return fr(we,7168),Yl(ee)||!Dn(ee)?Pr(dt(t.createVariableStatement(Bn(ee.modifiers,Se,Ia),t.createVariableDeclarationList([Pr(t.createVariableDeclaration(ee.name,void 0,void 0,we),ee)])),ee),ee):Pr(hl(ee.name,we,ee),ee)}function Dn(ee){return N!==void 0&&ei(ee,32)}function Fs(ee){return N===void 0&&ei(ee,32)}function Yl(ee){return Fs(ee)&&!ei(ee,2048)}function Fo(ee){return Fs(ee)&&ei(ee,2048)}function ds(ee){let we=t.createAssignment(t.getExternalModuleOrNamespaceExportName(O,ee,!1,!0),t.getLocalName(ee));Ca(we,Tf(ee.name?ee.name.pos:ee.pos,ee.end));let St=t.createExpressionStatement(we);return Ca(St,Tf(-1,ee.end)),St}function Gs(ee,we){ee.push(ds(we))}function hl(ee,we,St){return dt(t.createExpressionStatement(t.createAssignment(t.getNamespaceMemberName(O,ee,!1,!0),we)),St)}function uu(ee,we,St){return dt(t.createAssignment(yo(ee),we),St)}function yo(ee){return t.getNamespaceMemberName(O,ee,!1,!0)}function pa(ee){let we=t.getGeneratedNameForNode(ee);return Ca(we,ee.name),we}function du(ee){return t.getGeneratedNameForNode(ee)}function Is(){V&8||(V|=8,e.enableSubstitution(80))}function Pa(){V&2||(V|=2,e.enableSubstitution(80),e.enableSubstitution(304),e.enableEmitNotification(267))}function fl(ee){return Nl(ee).kind===267}function Mf(ee){return Nl(ee).kind===266}function sc(ee,we,St){let pn=ue,Tr=M;no(we)&&(M=we),V&2&&fl(we)&&(ue|=2),V&8&&Mf(we)&&(ue|=8),I(ee,we,St),ue=pn,M=Tr}function Rl(ee,we){return we=R(ee,we),ee===1?Wo(we):np(we)?ll(we):we}function ll(ee){if(V&2){let we=ee.name,St=Vs(we);if(St){if(ee.objectAssignmentInitializer){let pn=t.createAssignment(St,ee.objectAssignmentInitializer);return dt(t.createPropertyAssignment(we,pn),ee)}return dt(t.createPropertyAssignment(we,St),ee)}}return ee}function Wo(ee){switch(ee.kind){case 80:return on(ee);case 211:return nu(ee);case 212:return pu(ee)}return ee}function on(ee){return Vs(ee)||ee}function Vs(ee){if(V&ue&&!ol(ee)&&!Ug(ee)){let we=u.getReferencedExportContainer(ee,!1);if(we&&we.kind!==312&&(ue&2&&we.kind===267||ue&8&&we.kind===266))return dt(t.createPropertyAccessExpression(t.getGeneratedNameForNode(we),ee),ee)}}function nu(ee){return Ms(ee)}function pu(ee){return Ms(ee)}function Tp(ee){return ee.replace(/\*\//g,"*_/")}function Ms(ee){let we=Ic(ee);if(we!==void 0){pae(ee,we);let St=typeof we=="string"?t.createStringLiteral(we):we<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-we)):t.createNumericLiteral(we);if(!p.removeComments){let pn=Nl(ee,ks);h7(St,3,` ${Tp(pc(pn))} `)}return St}return ee}function Ic(ee){if(!im(p))return zr(ee)||Ys(ee)?u.getConstantValue(ee):void 0}function de(ee){return p.verbatimModuleSyntax||cr(ee)||(p.preserveValueImports?u.isValueAliasDeclaration(ee):u.isReferencedAliasDeclaration(ee))}}var gIe,MVe=A({"src/compiler/transformers/ts.ts"(){"use strict";ia(),gIe=!1}});function Ple(e){let{factory:t,getEmitHelperFactory:r,hoistVariableDeclaration:i,endLexicalEnvironment:o,startLexicalEnvironment:s,resumeLexicalEnvironment:l,addBlockScopedVariable:u}=e,p=e.getEmitResolver(),g=e.getCompilerOptions(),m=as(g),b=pN(g),T=!!g.experimentalDecorators,I=!b,R=b&&m<9,M=I||R,N=m<9,O=m<99?-1:b?0:3,H=m<9,K=H&&m>=2,Z=M||N||O===-1,V=e.onSubstituteNode;e.onSubstituteNode=nu;let ue=e.onEmitNode;e.onEmitNode=Vs;let G=!1,ne,he,ye,$,Y,oe=new Map,fe=new Set,Ne,me,ie=!1,ve=!1;return Nm(e,Le);function Le(de){if(de.isDeclarationFile||(Y=void 0,G=!!(Tm(de)&32),!Z&&!G))return de;let ee=An(de,Ee,e);return Vg(ee,e.readEmitHelpers()),ee}function He(de){switch(de.kind){case 129:return zt()?void 0:de;default:return ai(de,Ia)}}function Ee(de){if(!(de.transformFlags&16777216)&&!(de.transformFlags&134234112))return de;switch(de.kind){case 129:return C.fail("Use `modifierVisitor` instead.");case 263:return fn(de);case 231:return q(de);case 175:case 172:return C.fail("Use `classElementVisitor` instead.");case 303:return Qe(de);case 243:return gt(de);case 260:return nn(de);case 169:return rn(de);case 208:return Nn(de);case 277:return Xn(de);case 81:return Bt(de);case 211:return _a(de);case 212:return ja(de);case 224:case 225:return En(de,!1);case 226:return pt(de,!1);case 217:return ot(de,!1);case 213:return ft(de);case 244:return Ue(de);case 215:return Nt(de);case 248:return wn(de);case 110:return w(de);case 262:case 218:return ki(void 0,Ce,de);case 176:case 174:case 177:case 178:return ki(de,Ce,de);default:return Ce(de)}}function Ce(de){return An(de,Ee,e)}function Me(de){switch(de.kind){case 224:case 225:return En(de,!0);case 226:return pt(de,!0);case 361:return j(de,!0);case 217:return ot(de,!0);default:return Ee(de)}}function Fe(de){switch(de.kind){case 298:return An(de,Fe,e);case 233:return Vt(de);default:return Ee(de)}}function At(de){switch(de.kind){case 210:case 209:return on(de);default:return Ee(de)}}function Se(de){switch(de.kind){case 176:return ki(de,Yt,de);case 177:case 178:case 174:return ki(de,ho,de);case 172:return ki(de,Rn,de);case 175:return ki(de,Lt,de);case 167:return Qt(de);case 240:return de;default:return al(de)?He(de):Ee(de)}}function je(de){switch(de.kind){case 167:return Qt(de);default:return Ee(de)}}function at(de){switch(de.kind){case 172:return tt(de);case 177:case 178:return Se(de);default:C.assertMissingNode(de,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration");break}}function Bt(de){return!N||Ki(de.parent)?de:Pr(t.createIdentifier(""),de)}function yt(de){let ee=pa(de.left);if(ee){let we=rt(de.right,Ee,bt);return Pr(r().createClassPrivateFieldInHelper(ee.brandCheckIdentifier,we),de)}return An(de,Ee,e)}function Qe(de){return mp(de,We)&&(de=bp(e,de)),An(de,Ee,e)}function gt(de){let ee=$;$=[];let we=An(de,Ee,e),St=Et($)?[we,...$]:we;return $=ee,St}function nn(de){return mp(de,We)&&(de=bp(e,de)),An(de,Ee,e)}function rn(de){return mp(de,We)&&(de=bp(e,de)),An(de,Ee,e)}function Nn(de){return mp(de,We)&&(de=bp(e,de)),An(de,Ee,e)}function Xn(de){return mp(de,We)&&(de=bp(e,de,!0,de.isExportEquals?"":"default")),An(de,Ee,e)}function _n(de){return Et(ye)&&(Wd(de)?(ye.push(de.expression),de=t.updateParenthesizedExpression(de,t.inlineExpressions(ye))):(ye.push(de),de=t.inlineExpressions(ye)),ye=void 0),de}function Qt(de){let ee=rt(de.expression,Ee,bt);return t.updateComputedPropertyName(de,_n(ee))}function Yt(de){return Ne?pe(de,Ne):Ce(de)}function vi(de){return!!(N||fc(de)&&Tm(de)&32)}function ho(de){if(C.assert(!Sf(de)),!ad(de)||!vi(de))return An(de,Se,e);let ee=pa(de.name);if(C.assert(ee,"Undeclared private name for property declaration."),!ee.isValid)return de;let we=Ro(de);we&&Po().push(t.createAssignment(we,t.createFunctionExpression(tr(de.modifiers,St=>Ia(St)&&!tI(St)&&!Rae(St)),de.asteriskToken,we,void 0,xl(de.parameters,Ee,e),void 0,rf(de.body,Ee,e))))}function ki(de,ee,we){if(de!==me){let St=me;me=de;let pn=ee(we);return me=St,pn}return ee(we)}function Ro(de){C.assert(Xi(de.name));let ee=pa(de.name);if(C.assert(ee,"Undeclared private name for property declaration."),ee.kind==="m")return ee.methodName;if(ee.kind==="a"){if(wy(de))return ee.getterName;if(wv(de))return ee.setterName}}function nr(){let de=Ci(),ee=de.classThis??de.classConstructor??Ne?.name;return C.checkDefined(ee)}function qr(de){let ee=L_(de),we=jv(de),St=de.name,pn=St,Tr=St;if(Za(St)&&!F_(St.expression)){let Uc=_5(St);if(Uc)pn=t.updateComputedPropertyName(St,rt(St.expression,Ee,bt)),Tr=t.updateComputedPropertyName(St,Uc.left);else{let js=t.createTempVariable(i);Ca(js,St.expression);let gc=rt(St.expression,Ee,bt),Ts=t.createAssignment(js,gc);Ca(Ts,St.expression),pn=t.updateComputedPropertyName(St,Ts),Tr=t.updateComputedPropertyName(St,js)}}let gr=Bn(de.modifiers,He,Ia),jr=jH(t,de,gr,de.initializer);Pr(jr,de),fr(jr,3072),Ca(jr,we);let Ni=sa(de)?nr():t.createThis(),Lr=lse(t,de,gr,pn,Ni);Pr(Lr,de),oc(Lr,ee),Ca(Lr,we);let $o=t.createModifiersFromModifierFlags(N_(gr)),El=cse(t,de,$o,Tr,Ni);return Pr(El,de),fr(El,3072),Ca(El,we),xw([jr,Lr,El],at,$c)}function xr(de){if(vi(de)){let ee=pa(de.name);if(C.assert(ee,"Undeclared private name for property declaration."),!ee.isValid)return de;if(ee.isStatic&&!N){let we=Pt(de,t.createThis());if(we)return t.createClassStaticBlockDeclaration(t.createBlock([we],!0))}return}return I&&!sa(de)&&Y?.data&&Y.data.facts&16?t.updatePropertyDeclaration(de,Bn(de.modifiers,Ee,al),de.name,void 0,void 0,void 0):(mp(de,We)&&(de=bp(e,de)),t.updatePropertyDeclaration(de,Bn(de.modifiers,He,Ia),rt(de.name,je,ic),void 0,void 0,rt(de.initializer,Ee,bt)))}function ln(de){if(M&&!kd(de)){let ee=Vr(de.name,!!de.initializer||b);if(ee&&Po().push(...use(ee)),sa(de)&&!N){let we=Pt(de,t.createThis());if(we){let St=t.createClassStaticBlockDeclaration(t.createBlock([we]));return Pr(St,de),oc(St,de),oc(we,{pos:-1,end:-1}),g0(we,void 0),KA(we,void 0),St}}return}return t.updatePropertyDeclaration(de,Bn(de.modifiers,He,Ia),rt(de.name,je,ic),void 0,void 0,rt(de.initializer,Ee,bt))}function tt(de){return C.assert(!Sf(de),"Decorators should already have been transformed and elided."),ad(de)?xr(de):ln(de)}function zt(){return O===-1||O===3&&!!Y?.data&&!!(Y.data.facts&16)}function Rn(de){return kd(de)&&(zt()||fc(de)&&Tm(de)&32)?qr(de):tt(de)}function ui(){return!!me&&fc(me)&&Ly(me)&&kd(Nl(me))}function bi(de){if(ui()){let ee=Xl(de);ee.kind===110&&fe.add(ee)}}function ro(de,ee){return ee=rt(ee,Ee,bt),bi(ee),No(de,ee)}function No(de,ee){switch(oc(ee,f0(ee,-1)),de.kind){case"a":return r().createClassPrivateFieldGetHelper(ee,de.brandCheckIdentifier,de.kind,de.getterName);case"m":return r().createClassPrivateFieldGetHelper(ee,de.brandCheckIdentifier,de.kind,de.methodName);case"f":return r().createClassPrivateFieldGetHelper(ee,de.brandCheckIdentifier,de.kind,de.isStatic?de.variableName:void 0);case"untransformed":return C.fail("Access helpers should not be created for untransformed private elements");default:C.assertNever(de,"Unknown private element type")}}function _a(de){if(Xi(de.name)){let ee=pa(de.name);if(ee)return dt(Pr(ro(ee,de.expression),de),de)}if(K&&me&&Od(de)&&Ve(de.name)&&qN(me)&&Y?.data){let{classConstructor:ee,superClassReference:we,facts:St}=Y.data;if(St&1)return or(de);if(ee&&we){let pn=t.createReflectGetCall(we,t.createStringLiteralFromNode(de.name),ee);return Pr(pn,de.expression),dt(pn,de.expression),pn}}return An(de,Ee,e)}function ja(de){if(K&&me&&Od(de)&&qN(me)&&Y?.data){let{classConstructor:ee,superClassReference:we,facts:St}=Y.data;if(St&1)return or(de);if(ee&&we){let pn=t.createReflectGetCall(we,rt(de.argumentExpression,Ee,bt),ee);return Pr(pn,de.expression),dt(pn,de.expression),pn}}return An(de,Ee,e)}function En(de,ee){if(de.operator===46||de.operator===47){let we=vs(de.operand);if(Hx(we)){let St;if(St=pa(we.name)){let pn=rt(we.expression,Ee,bt);bi(pn);let{readExpression:Tr,initializeExpression:gr}=mt(pn),jr=ro(St,Tr),Ni=Qy(de)||ee?void 0:t.createTempVariable(i);return jr=l5(t,de,jr,i,Ni),jr=xt(St,gr||Tr,jr,64),Pr(jr,de),dt(jr,de),Ni&&(jr=t.createComma(jr,Ni),dt(jr,de)),jr}}else if(K&&me&&Od(we)&&qN(me)&&Y?.data){let{classConstructor:St,superClassReference:pn,facts:Tr}=Y.data;if(Tr&1){let gr=or(we);return Qy(de)?t.updatePrefixUnaryExpression(de,gr):t.updatePostfixUnaryExpression(de,gr)}if(St&&pn){let gr,jr;if(zr(we)?Ve(we.name)&&(jr=gr=t.createStringLiteralFromNode(we.name)):F_(we.argumentExpression)?jr=gr=we.argumentExpression:(jr=t.createTempVariable(i),gr=t.createAssignment(jr,rt(we.argumentExpression,Ee,bt))),gr&&jr){let Ni=t.createReflectGetCall(pn,jr,St);dt(Ni,we);let Lr=ee?void 0:t.createTempVariable(i);return Ni=l5(t,de,Ni,i,Lr),Ni=t.createReflectSetCall(pn,gr,Ni,St),Pr(Ni,de),dt(Ni,de),Lr&&(Ni=t.createComma(Ni,Lr),dt(Ni,de)),Ni}}}}return An(de,Ee,e)}function wn(de){return t.updateForStatement(de,rt(de.initializer,Me,Ef),rt(de.condition,Ee,bt),rt(de.incrementor,Me,bt),Id(de.statement,Ee,e))}function Ue(de){return t.updateExpressionStatement(de,rt(de.expression,Me,bt))}function mt(de){let ee=Xs(de)?de:t.cloneNode(de);if(de.kind===110&&fe.has(de)&&fe.add(ee),F_(de))return{readExpression:ee,initializeExpression:void 0};let we=t.createTempVariable(i),St=t.createAssignment(we,ee);return{readExpression:we,initializeExpression:St}}function ft(de){var ee;if(Hx(de.expression)&&pa(de.expression.name)){let{thisArg:we,target:St}=t.createCallBinding(de.expression,i,m);return lS(de)?t.updateCallChain(de,t.createPropertyAccessChain(rt(St,Ee,bt),de.questionDotToken,"call"),void 0,void 0,[rt(we,Ee,bt),...Bn(de.arguments,Ee,bt)]):t.updateCallExpression(de,t.createPropertyAccessExpression(rt(St,Ee,bt),"call"),void 0,[rt(we,Ee,bt),...Bn(de.arguments,Ee,bt)])}if(K&&me&&Od(de.expression)&&qN(me)&&((ee=Y?.data)!=null&&ee.classConstructor)){let we=t.createFunctionCallCall(rt(de.expression,Ee,bt),Y.data.classConstructor,Bn(de.arguments,Ee,bt));return Pr(we,de),dt(we,de),we}return An(de,Ee,e)}function Nt(de){var ee;if(Hx(de.tag)&&pa(de.tag.name)){let{thisArg:we,target:St}=t.createCallBinding(de.tag,i,m);return t.updateTaggedTemplateExpression(de,t.createCallExpression(t.createPropertyAccessExpression(rt(St,Ee,bt),"bind"),void 0,[rt(we,Ee,bt)]),void 0,rt(de.template,Ee,DA))}if(K&&me&&Od(de.tag)&&qN(me)&&((ee=Y?.data)!=null&&ee.classConstructor)){let we=t.createFunctionBindCall(rt(de.tag,Ee,bt),Y.data.classConstructor,[]);return Pr(we,de),dt(we,de),t.updateTaggedTemplateExpression(de,we,void 0,rt(de.template,Ee,DA))}return An(de,Ee,e)}function le(de){if(Y&&oe.set(Nl(de),Y),N){if(UN(de)){let St=rt(de.body.statements[0].expression,Ee,bt);return Mc(St,!0)&&St.left===St.right?void 0:St}if(SI(de))return rt(de.body.statements[0].expression,Ee,bt);s();let ee=ki(de,St=>Bn(St,Ee,Ki),de.body.statements);ee=t.mergeLexicalEnvironment(ee,o());let we=t.createImmediatelyInvokedArrowFunction(ee);return Pr(vs(we.expression),de),M_(vs(we.expression),4),Pr(we,de),dt(we,de),we}}function We(de){if(Zc(de)&&!de.name){let ee=eF(de);return Et(ee,SI)?!1:(N||!!Tm(de))&&Et(ee,St=>Il(St)||ad(St)||M&&Dw(St))}return!1}function pt(de,ee){if(Bv(de)){let we=ye;ye=void 0,de=t.updateBinaryExpression(de,rt(de.left,At,bt),de.operatorToken,rt(de.right,Ee,bt));let St=Et(ye)?t.inlineExpressions(CM([...ye,de])):de;return ye=we,St}if(Mc(de)){mp(de,We)&&(de=bp(e,de),C.assertNode(de,Mc));let we=Xl(de.left,9);if(Hx(we)){let St=pa(we.name);if(St)return dt(Pr(xt(St,we.expression,de.right,de.operatorToken.kind),de),de)}else if(K&&me&&Od(de.left)&&qN(me)&&Y?.data){let{classConstructor:St,superClassReference:pn,facts:Tr}=Y.data;if(Tr&1)return t.updateBinaryExpression(de,or(de.left),de.operatorToken,rt(de.right,Ee,bt));if(St&&pn){let gr=Ys(de.left)?rt(de.left.argumentExpression,Ee,bt):Ve(de.left.name)?t.createStringLiteralFromNode(de.left.name):void 0;if(gr){let jr=rt(de.right,Ee,bt);if(GN(de.operatorToken.kind)){let Lr=gr;F_(gr)||(Lr=t.createTempVariable(i),gr=t.createAssignment(Lr,gr));let $o=t.createReflectGetCall(pn,Lr,St);Pr($o,de.left),dt($o,de.left),jr=t.createBinaryExpression($o,VN(de.operatorToken.kind),jr),dt(jr,de)}let Ni=ee?void 0:t.createTempVariable(i);return Ni&&(jr=t.createAssignment(Ni,jr),dt(Ni,de)),jr=t.createReflectSetCall(pn,gr,jr,St),Pr(jr,de),dt(jr,de),Ni&&(jr=t.createComma(jr,Ni),dt(jr,de)),jr}}}}return FVe(de)?yt(de):An(de,Ee,e)}function j(de,ee){let we=ee?Rw(de.elements,Me):Rw(de.elements,Ee,Me);return t.updateCommaListExpression(de,we)}function ot(de,ee){let we=ee?Me:Ee,St=rt(de.expression,we,bt);return t.updateParenthesizedExpression(de,St)}function xt(de,ee,we,St){if(ee=rt(ee,Ee,bt),we=rt(we,Ee,bt),bi(ee),GN(St)){let{readExpression:pn,initializeExpression:Tr}=mt(ee);ee=Tr||pn,we=t.createBinaryExpression(No(de,pn),VN(St),we)}switch(oc(ee,f0(ee,-1)),de.kind){case"a":return r().createClassPrivateFieldSetHelper(ee,de.brandCheckIdentifier,we,de.kind,de.setterName);case"m":return r().createClassPrivateFieldSetHelper(ee,de.brandCheckIdentifier,we,de.kind,void 0);case"f":return r().createClassPrivateFieldSetHelper(ee,de.brandCheckIdentifier,we,de.kind,de.isStatic?de.variableName:void 0);case"untransformed":return C.fail("Access helpers should not be created for untransformed private elements");default:C.assertNever(de,"Unknown private element type")}}function Ye(de){return tr(de.members,gle)}function ht(de){var ee;let we=0,St=Nl(de);Tc(St)&&Ov(T,St)&&(we|=1),N&&(Zq(de)||nF(de))&&(we|=2);let pn=!1,Tr=!1,gr=!1,jr=!1;for(let Lr of de.members)sa(Lr)?((Lr.name&&(Xi(Lr.name)||kd(Lr))&&N||kd(Lr)&&O===-1&&!de.name&&!((ee=de.emitNode)!=null&&ee.classThis))&&(we|=2),(Jo(Lr)||Il(Lr))&&(H&&Lr.transformFlags&16384&&(we|=8,we&1||(we|=2)),K&&Lr.transformFlags&134217728&&(we&1||(we|=6)))):F1(Nl(Lr))||(kd(Lr)?(jr=!0,gr||(gr=ad(Lr))):ad(Lr)?(gr=!0,p.getNodeCheckFlags(Lr)&262144&&(we|=2)):Jo(Lr)&&(pn=!0,Tr||(Tr=!!Lr.initializer)));return(R&&pn||I&&Tr||N&&gr||N&&jr&&O===-1)&&(we|=16),we}function Vt(de){var ee;if((((ee=Y?.data)==null?void 0:ee.facts)||0)&4){let St=t.createTempVariable(i,!0);return Ci().superClassReference=St,t.updateExpressionWithTypeArguments(de,t.createAssignment(St,rt(de.expression,Ee,bt)),void 0)}return An(de,Ee,e)}function yn(de,ee){var we;let St=Ne,pn=ye,Tr=Y;Ne=de,ye=void 0,Eo();let gr=Tm(de)&32;if(N||gr){let Lr=Oo(de);if(Lr&&Ve(Lr))Kr().data.className=Lr;else if((we=de.emitNode)!=null&&we.assignedName&&Na(de.emitNode.assignedName)){if(de.emitNode.assignedName.textSourceNode&&Ve(de.emitNode.assignedName.textSourceNode))Kr().data.className=de.emitNode.assignedName.textSourceNode;else if($p(de.emitNode.assignedName.text,m)){let $o=t.createIdentifier(de.emitNode.assignedName.text);Kr().data.className=$o}}}if(N){let Lr=Ye(de);Et(Lr)&&(Kr().data.weakSetName=uu("instances",Lr[0].name))}let jr=ht(de);jr&&(Ci().facts=jr),jr&8&&yi();let Ni=ee(de,jr);return Mi(),C.assert(Y===Tr),Ne=St,ye=pn,Ni}function fn(de){return yn(de,mn)}function mn(de,ee){var we,St;let pn;if(ee&2)if(N&&((we=de.emitNode)!=null&&we.classThis))Ci().classConstructor=de.emitNode.classThis,pn=t.createAssignment(de.emitNode.classThis,t.getInternalName(de));else{let Ts=t.createTempVariable(i,!0);Ci().classConstructor=t.cloneNode(Ts),pn=t.createAssignment(Ts,t.getInternalName(de))}(St=de.emitNode)!=null&&St.classThis&&(Ci().classThis=de.emitNode.classThis);let Tr=p.getNodeCheckFlags(de)&262144,gr=ei(de,32),jr=ei(de,2048),Ni=Bn(de.modifiers,He,Ia),Lr=Bn(de.heritageClauses,Fe,ef),{members:$o,prologue:El}=ae(de),Uc=[];if(pn&&Po().unshift(pn),Et(ye)&&Uc.push(t.createExpressionStatement(t.inlineExpressions(ye))),I||N||Tm(de)&32){let Ts=eF(de);Et(Ts)&&Dt(Uc,Ts,t.getInternalName(de))}Uc.length>0&&gr&&jr&&(Ni=Bn(Ni,Ts=>Zk(Ts)?void 0:Ts,Ia),Uc.push(t.createExportAssignment(void 0,!1,t.getLocalName(de,!1,!0))));let js=Ci().classConstructor;Tr&&js&&(Gn(),he[Ou(de)]=js);let gc=t.updateClassDeclaration(de,Ni,de.name,void 0,Lr,$o);return Uc.unshift(gc),El&&Uc.unshift(t.createExpressionStatement(El)),Uc}function q(de){return yn(de,Oe)}function Oe(de,ee){var we,St,pn;let Tr=!!(ee&1),gr=eF(de),jr=p.getNodeCheckFlags(de),Ni=jr&262144,Lr;function $o(){var Oc;if(N&&((Oc=de.emitNode)!=null&&Oc.classThis))return Ci().classConstructor=de.emitNode.classThis;let lm=jr&32768,md=t.createTempVariable(lm?u:i,!0);return Ci().classConstructor=t.cloneNode(md),md}(we=de.emitNode)!=null&&we.classThis&&(Ci().classThis=de.emitNode.classThis),ee&2&&(Lr??(Lr=$o()));let El=Bn(de.modifiers,He,Ia),Uc=Bn(de.heritageClauses,Fe,ef),{members:js,prologue:gc}=ae(de),Ts=t.updateClassExpression(de,El,de.name,void 0,Uc,js),Hc=[];if(gc&&Hc.push(gc),(N||Tm(de)&32)&&Et(gr,Oc=>Il(Oc)||ad(Oc)||M&&Dw(Oc))||Et(ye))if(Tr)C.assertIsDefined($,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),Et(ye)&&Jr($,Ft(ye,t.createExpressionStatement)),Et(gr)&&Dt($,gr,((St=de.emitNode)==null?void 0:St.classThis)??t.getInternalName(de)),Lr?Hc.push(t.createAssignment(Lr,Ts)):N&&((pn=de.emitNode)!=null&&pn.classThis)?Hc.push(t.createAssignment(de.emitNode.classThis,Ts)):Hc.push(Ts);else{if(Lr??(Lr=$o()),Ni){Gn();let Oc=t.cloneNode(Lr);Oc.emitNode.autoGenerate.flags&=-9,he[Ou(de)]=Oc}Hc.push(t.createAssignment(Lr,Ts)),Jr(Hc,ye),Jr(Hc,Kt(gr,Lr)),Hc.push(t.cloneNode(Lr))}else Hc.push(Ts);return Hc.length>1&&(M_(Ts,131072),Hc.forEach(Ku)),t.inlineExpressions(Hc)}function Lt(de){if(!N)return An(de,Ee,e)}function w(de){if(H&&me&&Il(me)&&Y?.data){let{classThis:ee,classConstructor:we}=Y.data;return ee??we??de}return de}function ae(de){let ee=!!(Tm(de)&32);if(N||G){for(let gr of de.members)if(ad(gr))if(vi(gr))hl(gr,gr.name,Dn);else{let jr=Kr();qS(jr,gr.name,{kind:"untransformed"})}if(N&&Et(Ye(de))&&J(),zt()){for(let gr of de.members)if(kd(gr)){let jr=t.getGeneratedPrivateNameForNode(gr.name,void 0,"_accessor_storage");if(N||ee&&fc(gr))hl(gr,jr,Fs);else{let Ni=Kr();qS(Ni,jr,{kind:"untransformed"})}}}}let we=Bn(de.members,Se,$c),St;Et(we,Pl)||(St=pe(void 0,de));let pn,Tr;if(!N&&Et(ye)){let gr=t.createExpressionStatement(t.inlineExpressions(ye));if(gr.transformFlags&134234112){let Ni=t.createTempVariable(i),Lr=t.createArrowFunction(void 0,void 0,[],void 0,void 0,t.createBlock([gr]));pn=t.createAssignment(Ni,Lr),gr=t.createExpressionStatement(t.createCallExpression(Ni,void 0,[]))}let jr=t.createBlock([gr]);Tr=t.createClassStaticBlockDeclaration(jr),ye=void 0}if(St||Tr){let gr,jr=vn(we,UN),Ni=vn(we,SI);gr=In(gr,jr),gr=In(gr,Ni),gr=In(gr,St),gr=In(gr,Tr);let Lr=jr||Ni?tr(we,$o=>$o!==jr&&$o!==Ni):we;gr=Jr(gr,Lr),we=dt(t.createNodeArray(gr),de.members)}return{members:we,prologue:pn}}function J(){let{weakSetName:de}=Kr().data;C.assert(de,"weakSetName should be set in private identifier environment"),Po().push(t.createAssignment(de,t.createNewExpression(t.createIdentifier("WeakSet"),void 0,[])))}function pe(de,ee){if(de=rt(de,Ee,Pl),!Y?.data||!(Y.data.facts&16))return de;let we=x_(ee),St=!!(we&&Xl(we.expression).kind!==106),pn=xl(de?de.parameters:void 0,Ee,e),Tr=ke(ee,de,St);return Tr?de?(C.assert(pn),t.updateConstructorDeclaration(de,void 0,pn,Tr)):Ku(Pr(dt(t.createConstructorDeclaration(void 0,pn??[],Tr),de||ee),de)):de}function Ge(de,ee,we,St,pn,Tr,gr){let jr=St[pn],Ni=ee[jr];if(Jr(de,Bn(ee,Ee,Ki,we,jr-we)),we=jr+1,WS(Ni)){let Lr=[];Ge(Lr,Ni.tryBlock.statements,0,St,pn+1,Tr,gr);let $o=t.createNodeArray(Lr);dt($o,Ni.tryBlock.statements),de.push(t.updateTryStatement(Ni,t.updateBlock(Ni.tryBlock,Lr),rt(Ni.catchClause,Ee,$1),rt(Ni.finallyBlock,Ee,Xo)))}else{for(Jr(de,Bn(ee,Ee,Ki,jr,1));we!!js.initializer||Xi(js.name)||C_(js)));let Tr=Ye(de),gr=Et(pn)||Et(Tr);if(!ee&&!gr)return rf(void 0,Ee,e);l();let jr=!ee&&we,Ni=0,Lr=[],$o=[],El=t.createThis();if(Di($o,Tr,El),ee){let js=tr(St,Ts=>pp(Nl(Ts),ee)),gc=tr(pn,Ts=>!pp(Nl(Ts),ee));Dt($o,js,El),Dt($o,gc,El)}else Dt($o,pn,El);if(ee?.body){Ni=t.copyPrologue(ee.body.statements,Lr,!1,Ee);let js=Z5(ee.body.statements,Ni);if(js.length)Ge(Lr,ee.body.statements,Ni,js,0,$o,ee);else{for(;Ni=Lr.length?ee.body.multiLine??Lr.length>0:Lr.length>0;return dt(t.createBlock(dt(t.createNodeArray(Lr),ee?ee.body.statements:de.members),Uc),ee?ee.body:void 0)}function Dt(de,ee,we){for(let St of ee){if(sa(St)&&!N)continue;let pn=Pt(St,we);pn&&de.push(pn)}}function Pt(de,ee){let we=Il(de)?ki(de,le,de):Tn(de,ee);if(!we)return;let St=t.createExpressionStatement(we);Pr(St,de),M_(St,Va(de)&3072),oc(St,de);let pn=Nl(de);return Co(pn)?(Ca(St,pn),Nk(St)):Ca(St,P_(de)),g0(we,void 0),KA(we,void 0),C_(pn)&&M_(St,3072),St}function Kt(de,ee){let we=[];for(let St of de){let pn=Il(St)?ki(St,le,St):ki(St,()=>Tn(St,ee),void 0);pn&&(Ku(pn),Pr(pn,St),M_(pn,Va(St)&3072),Ca(pn,P_(St)),oc(pn,St),we.push(pn))}return we}function Tn(de,ee){var we;let St=me,pn=On(de,ee);return pn&&fc(de)&&((we=Y?.data)!=null&&we.facts)&&(Pr(pn,de),M_(pn,4),Ca(pn,jv(de.name)),oe.set(Nl(de),Y)),me=St,pn}function On(de,ee){let we=!b;mp(de,We)&&(de=bp(e,de));let St=C_(de)?t.getGeneratedPrivateNameForNode(de.name):Za(de.name)&&!F_(de.name.expression)?t.updateComputedPropertyName(de.name,t.getGeneratedNameForNode(de.name)):de.name;if(fc(de)&&(me=de),Xi(St)&&vi(de)){let gr=pa(St);if(gr)return gr.kind==="f"?gr.isStatic?LVe(t,gr.variableName,rt(de.initializer,Ee,bt)):kVe(t,ee,rt(de.initializer,Ee,bt),gr.brandCheckIdentifier):void 0;C.fail("Undeclared private name for property declaration.")}if((Xi(St)||fc(de))&&!de.initializer)return;let pn=Nl(de);if(ei(pn,64))return;let Tr=rt(de.initializer,Ee,bt);if(pp(pn,pn.parent)&&Ve(St)){let gr=t.cloneNode(St);Tr?(Wd(Tr)&&Xk(Tr.expression)&&_N(Tr.expression.left,"___runInitializers")&&sI(Tr.expression.right)&&hp(Tr.expression.right.expression)&&(Tr=Tr.expression.left),Tr=t.inlineExpressions([Tr,gr])):Tr=gr,fr(St,3168),Ca(gr,pn.name),fr(gr,3072)}else Tr??(Tr=t.createVoidZero());if(we||Xi(St)){let gr=jS(t,ee,St,St);return M_(gr,1024),t.createAssignment(gr,Tr)}else{let gr=Za(St)?St.expression:Ve(St)?t.createStringLiteral(Hi(St.escapedText)):St,jr=t.createPropertyDescriptor({value:Tr,configurable:!0,writable:!0,enumerable:!0});return t.createObjectDefinePropertyCall(ee,gr,jr)}}function Gn(){ne&1||(ne|=1,e.enableSubstitution(80),he=[])}function yi(){ne&2||(ne|=2,e.enableSubstitution(110),e.enableEmitNotification(262),e.enableEmitNotification(218),e.enableEmitNotification(176),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(174),e.enableEmitNotification(172),e.enableEmitNotification(167))}function Di(de,ee,we){if(!N||!Et(ee))return;let{weakSetName:St}=Kr().data;C.assert(St,"weakSetName should be set in private identifier environment"),de.push(t.createExpressionStatement(wVe(t,we,St)))}function or(de){return zr(de)?t.updatePropertyAccessExpression(de,t.createVoidZero(),de.name):t.updateElementAccessExpression(de,t.createVoidZero(),rt(de.argumentExpression,Ee,bt))}function Vr(de,ee){if(Za(de)){let we=_5(de),St=rt(de.expression,Ee,bt),pn=Sm(St),Tr=F_(pn);if(!(!!we||Mc(pn)&&ol(pn.left))&&!Tr&&ee){let jr=t.getGeneratedNameForNode(de);return p.getNodeCheckFlags(de)&32768?u(jr):i(jr),t.createAssignment(jr,St)}return Tr||Ve(pn)?void 0:St}}function Eo(){Y={previous:Y,data:void 0}}function Mi(){Y=Y?.previous}function Ci(){return C.assert(Y),Y.data??(Y.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0})}function Kr(){return C.assert(Y),Y.privateEnv??(Y.privateEnv=ble({className:void 0,weakSetName:void 0}))}function Po(){return ye??(ye=[])}function Dn(de,ee,we,St,pn,Tr,gr){kd(de)?Gs(de,ee,we,St,pn,Tr,gr):Jo(de)?Fs(de,ee,we,St,pn,Tr,gr):jl(de)?Yl(de,ee,we,St,pn,Tr,gr):Zp(de)?Fo(de,ee,we,St,pn,Tr,gr):vp(de)&&ds(de,ee,we,St,pn,Tr,gr)}function Fs(de,ee,we,St,pn,Tr,gr){if(pn){let jr=C.checkDefined(we.classThis??we.classConstructor,"classConstructor should be set in private identifier environment"),Ni=yo(ee);qS(St,ee,{kind:"f",isStatic:!0,brandCheckIdentifier:jr,variableName:Ni,isValid:Tr})}else{let jr=yo(ee);qS(St,ee,{kind:"f",isStatic:!1,brandCheckIdentifier:jr,isValid:Tr}),Po().push(t.createAssignment(jr,t.createNewExpression(t.createIdentifier("WeakMap"),void 0,[])))}}function Yl(de,ee,we,St,pn,Tr,gr){let jr=yo(ee),Ni=pn?C.checkDefined(we.classThis??we.classConstructor,"classConstructor should be set in private identifier environment"):C.checkDefined(St.data.weakSetName,"weakSetName should be set in private identifier environment");qS(St,ee,{kind:"m",methodName:jr,brandCheckIdentifier:Ni,isStatic:pn,isValid:Tr})}function Fo(de,ee,we,St,pn,Tr,gr){let jr=yo(ee,"_get"),Ni=pn?C.checkDefined(we.classThis??we.classConstructor,"classConstructor should be set in private identifier environment"):C.checkDefined(St.data.weakSetName,"weakSetName should be set in private identifier environment");gr?.kind==="a"&&gr.isStatic===pn&&!gr.getterName?gr.getterName=jr:qS(St,ee,{kind:"a",getterName:jr,setterName:void 0,brandCheckIdentifier:Ni,isStatic:pn,isValid:Tr})}function ds(de,ee,we,St,pn,Tr,gr){let jr=yo(ee,"_set"),Ni=pn?C.checkDefined(we.classThis??we.classConstructor,"classConstructor should be set in private identifier environment"):C.checkDefined(St.data.weakSetName,"weakSetName should be set in private identifier environment");gr?.kind==="a"&&gr.isStatic===pn&&!gr.setterName?gr.setterName=jr:qS(St,ee,{kind:"a",getterName:void 0,setterName:jr,brandCheckIdentifier:Ni,isStatic:pn,isValid:Tr})}function Gs(de,ee,we,St,pn,Tr,gr){let jr=yo(ee,"_get"),Ni=yo(ee,"_set"),Lr=pn?C.checkDefined(we.classThis??we.classConstructor,"classConstructor should be set in private identifier environment"):C.checkDefined(St.data.weakSetName,"weakSetName should be set in private identifier environment");qS(St,ee,{kind:"a",getterName:jr,setterName:Ni,brandCheckIdentifier:Lr,isStatic:pn,isValid:Tr})}function hl(de,ee,we){let St=Ci(),pn=Kr(),Tr=Yq(pn,ee),gr=fc(de),jr=!OVe(ee)&&Tr===void 0;we(de,ee,St,pn,gr,jr,Tr)}function uu(de,ee,we){let{className:St}=Kr().data,pn=St?{prefix:"_",node:St,suffix:"_"}:"_",Tr=typeof de=="object"?t.getGeneratedNameForNode(de,24,pn,we):typeof de=="string"?t.createUniqueName(de,16,pn,we):t.createTempVariable(void 0,!0,pn,we);return p.getNodeCheckFlags(ee)&32768?u(Tr):i(Tr),Tr}function yo(de,ee){let we=TC(de);return uu(we?.substring(1)??de,de,ee)}function pa(de){let ee=Ele(Y,de);return ee?.kind==="untransformed"?void 0:ee}function du(de){let ee=t.getGeneratedNameForNode(de),we=pa(de.name);if(!we)return An(de,Ee,e);let St=de.expression;return(NL(de)||Od(de)||!rE(de.expression))&&(St=t.createTempVariable(i,!0),Po().push(t.createBinaryExpression(St,64,rt(de.expression,Ee,bt)))),t.createAssignmentTargetWrapper(ee,xt(we,St,ee,64))}function Is(de){if(wa(de)||pd(de))return on(de);if(Hx(de))return du(de);if(K&&me&&Od(de)&&qN(me)&&Y?.data){let{classConstructor:ee,superClassReference:we,facts:St}=Y.data;if(St&1)return or(de);if(ee&&we){let pn=Ys(de)?rt(de.argumentExpression,Ee,bt):Ve(de.name)?t.createStringLiteralFromNode(de.name):void 0;if(pn){let Tr=t.createTempVariable(void 0);return t.createAssignmentTargetWrapper(Tr,t.createReflectSetCall(we,pn,Tr,ee))}}}return An(de,Ee,e)}function Pa(de){if(mp(de,We)&&(de=bp(e,de)),Mc(de,!0)){let ee=Is(de.left),we=rt(de.right,Ee,bt);return t.updateBinaryExpression(de,ee,de.operatorToken,we)}return Is(de)}function fl(de){if(Zd(de.expression)){let ee=Is(de.expression);return t.updateSpreadElement(de,ee)}return An(de,Ee,e)}function Mf(de){if(pL(de)){if(Zm(de))return fl(de);if(!Vc(de))return Pa(de)}return An(de,Ee,e)}function sc(de){let ee=rt(de.name,Ee,ic);if(Mc(de.initializer,!0)){let we=Pa(de.initializer);return t.updatePropertyAssignment(de,ee,we)}if(Zd(de.initializer)){let we=Is(de.initializer);return t.updatePropertyAssignment(de,ee,we)}return An(de,Ee,e)}function Rl(de){return mp(de,We)&&(de=bp(e,de)),An(de,Ee,e)}function ll(de){if(Zd(de.expression)){let ee=Is(de.expression);return t.updateSpreadAssignment(de,ee)}return An(de,Ee,e)}function Wo(de){return C.assertNode(de,dL),qv(de)?ll(de):np(de)?Rl(de):_c(de)?sc(de):An(de,Ee,e)}function on(de){return pd(de)?t.updateArrayLiteralExpression(de,Bn(de.elements,Mf,bt)):t.updateObjectLiteralExpression(de,Bn(de.properties,Wo,wg))}function Vs(de,ee,we){let St=Nl(ee),pn=oe.get(St);if(pn){let Tr=Y,gr=ve;Y=pn,ve=ie,ie=!Il(St)||!(Tm(St)&32),ue(de,ee,we),ie=ve,ve=gr,Y=Tr;return}switch(ee.kind){case 218:if(Bs(St)||Va(ee)&524288)break;case 262:case 176:case 177:case 178:case 174:case 172:{let Tr=Y,gr=ve;Y=void 0,ve=ie,ie=!1,ue(de,ee,we),ie=ve,ve=gr,Y=Tr;return}case 167:{let Tr=Y,gr=ie;Y=Y?.previous,ie=ve,ue(de,ee,we),ie=gr,Y=Tr;return}}ue(de,ee,we)}function nu(de,ee){return ee=V(de,ee),de===1?pu(ee):ee}function pu(de){switch(de.kind){case 80:return Ms(de);case 110:return Tp(de)}return de}function Tp(de){if(ne&2&&Y?.data&&!fe.has(de)){let{facts:ee,classConstructor:we,classThis:St}=Y.data,pn=ie?St??we:we;if(pn)return dt(Pr(t.cloneNode(pn),de),de);if(ee&1&&T)return t.createParenthesizedExpression(t.createVoidZero())}return de}function Ms(de){return Ic(de)||de}function Ic(de){if(ne&1&&p.getNodeCheckFlags(de)&536870912){let ee=p.getReferencedValueDeclaration(de);if(ee){let we=he[ee.id];if(we){let St=t.cloneNode(we);return Ca(St,de),oc(St,de),St}}}}}function LVe(e,t,r){return e.createAssignment(t,e.createObjectLiteralExpression([e.createPropertyAssignment("value",r||e.createVoidZero())]))}function kVe(e,t,r,i){return e.createCallExpression(e.createPropertyAccessExpression(i,"set"),void 0,[t,r||e.createVoidZero()])}function wVe(e,t,r){return e.createCallExpression(e.createPropertyAccessExpression(r,"add"),void 0,[t])}function OVe(e){return!cS(e)&&e.escapedText==="#constructor"}function FVe(e){return Xi(e.left)&&e.operatorToken.kind===103}function WVe(e){return Jo(e)&&fc(e)}function qN(e){return Il(e)||WVe(e)}var zVe=A({"src/compiler/transformers/classFields.ts"(){"use strict";ia()}});function Mle(e){let{factory:t,hoistVariableDeclaration:r}=e,i=e.getEmitResolver(),o=e.getCompilerOptions(),s=as(o),l=ud(o,"strictNullChecks"),u,p;return{serializeTypeNode:(ye,$)=>g(ye,M,$),serializeTypeOfNode:(ye,$)=>g(ye,b,$),serializeParameterTypesOfNode:(ye,$,Y)=>g(ye,T,$,Y),serializeReturnTypeOfNode:(ye,$)=>g(ye,R,$)};function g(ye,$,Y,oe){let fe=u,Ne=p;u=ye.currentLexicalScope,p=ye.currentNameScope;let me=oe===void 0?$(Y):$(Y,oe);return u=fe,p=Ne,me}function m(ye){let $=i.getAllAccessorDeclarations(ye);return $.setAccessor&&Jie($.setAccessor)||$.getAccessor&&tm($.getAccessor)}function b(ye){switch(ye.kind){case 172:case 169:return M(ye.type);case 178:case 177:return M(m(ye));case 263:case 231:case 174:return t.createIdentifier("Function");default:return t.createVoidZero()}}function T(ye,$){let Y=pi(ye)?ig(ye):ea(ye)&&Xf(ye.body)?ye:void 0,oe=[];if(Y){let fe=I(Y,$),Ne=fe.length;for(let me=0;mefe.parent&&aI(fe.parent)&&(fe.parent.trueType===fe||fe.parent.falseType===fe)))return t.createIdentifier("Object");let Y=V(ye.typeName),oe=t.createTempVariable(r);return t.createConditionalExpression(t.createTypeCheck(t.createAssignment(oe,Y),"function"),void 0,oe,void 0,t.createIdentifier("Object"));case 1:return ue(ye.typeName);case 2:return t.createVoidZero();case 4:return he("BigInt",7);case 6:return t.createIdentifier("Boolean");case 3:return t.createIdentifier("Number");case 5:return t.createIdentifier("String");case 7:return t.createIdentifier("Array");case 8:return he("Symbol",2);case 10:return t.createIdentifier("Function");case 9:return t.createIdentifier("Promise");case 11:return t.createIdentifier("Object");default:return C.assertNever($)}}function Z(ye,$){return t.createLogicalAnd(t.createStrictInequality(t.createTypeOfExpression(ye),t.createStringLiteral("undefined")),$)}function V(ye){if(ye.kind===80){let oe=ue(ye);return Z(oe,oe)}if(ye.left.kind===80)return Z(ue(ye.left),ue(ye));let $=V(ye.left),Y=t.createTempVariable(r);return t.createLogicalAnd(t.createLogicalAnd($.left,t.createStrictInequality(t.createAssignment(Y,$.right),t.createVoidZero())),t.createPropertyAccessExpression(Y,ye.right))}function ue(ye){switch(ye.kind){case 80:let $=qa(dt(Ah.cloneNode(ye),ye),ye.parent);return $.original=void 0,qa($,Lo(u)),$;case 166:return G(ye)}}function G(ye){return t.createPropertyAccessExpression(ue(ye.left),ye.right)}function ne(ye){return t.createConditionalExpression(t.createTypeCheck(t.createIdentifier(ye),"function"),void 0,t.createIdentifier(ye),void 0,t.createIdentifier("Object"))}function he(ye,$){return s<$?ne(ye):t.createIdentifier(ye)}}var BVe=A({"src/compiler/transformers/typeSerializer.ts"(){"use strict";ia()}});function Lle(e){let{factory:t,getEmitHelperFactory:r,hoistVariableDeclaration:i}=e,o=e.getEmitResolver(),s=e.getCompilerOptions(),l=as(s),u=e.onSubstituteNode;e.onSubstituteNode=je;let p;return Nm(e,g);function g(Qe){let gt=An(Qe,b,e);return Vg(gt,e.readEmitHelpers()),gt}function m(Qe){return Eu(Qe)?void 0:Qe}function b(Qe){if(!(Qe.transformFlags&33554432))return Qe;switch(Qe.kind){case 170:return;case 263:return T(Qe);case 231:return K(Qe);case 176:return Z(Qe);case 174:return ue(Qe);case 178:return ne(Qe);case 177:return G(Qe);case 172:return he(Qe);case 169:return ye(Qe);default:return An(Qe,b,e)}}function T(Qe){if(!(Ov(!0,Qe)||xC(!0,Qe)))return An(Qe,b,e);let gt=Ov(!0,Qe)?H(Qe,Qe.name):O(Qe,Qe.name);return sh(gt)}function I(Qe){return!!(Qe.transformFlags&536870912)}function R(Qe){return Et(Qe,I)}function M(Qe){for(let gt of Qe.members){if(!US(gt))continue;let nn=tF(gt,Qe,!0);if(Et(nn?.decorators,I)||Et(nn?.parameters,R))return!0}return!1}function N(Qe,gt){let nn=[];return oe(nn,Qe,!1),oe(nn,Qe,!0),M(Qe)&&(gt=dt(t.createNodeArray([...gt,t.createClassStaticBlockDeclaration(t.createBlock(nn,!0))]),gt),nn=void 0),{decorationStatements:nn,members:gt}}function O(Qe,gt){let nn=Bn(Qe.modifiers,m,Ia),rn=Bn(Qe.heritageClauses,b,ef),Nn=Bn(Qe.members,b,$c),Xn=[];({members:Nn,decorationStatements:Xn}=N(Qe,Nn));let _n=t.updateClassDeclaration(Qe,nn,gt,void 0,rn,Nn);return Jr([_n],Xn)}function H(Qe,gt){let nn=ei(Qe,32),rn=ei(Qe,2048),Nn=Bn(Qe.modifiers,zt=>Zk(zt)||Eu(zt)?void 0:zt,al),Xn=P_(Qe),_n=Fe(Qe),Qt=l<2?t.getInternalName(Qe,!1,!0):t.getLocalName(Qe,!1,!0),Yt=Bn(Qe.heritageClauses,b,ef),vi=Bn(Qe.members,b,$c),ho=[];({members:vi,decorationStatements:ho}=N(Qe,vi));let ki=l>=9&&!!_n&&Et(vi,zt=>Jo(zt)&&ei(zt,256)||Il(zt));ki&&(vi=dt(t.createNodeArray([t.createClassStaticBlockDeclaration(t.createBlock([t.createExpressionStatement(t.createAssignment(_n,t.createThis()))])),...vi]),vi));let Ro=t.createClassExpression(Nn,gt&&ol(gt)?void 0:gt,void 0,Yt,vi);Pr(Ro,Qe),dt(Ro,Xn);let nr=_n&&!ki?t.createAssignment(_n,Ro):Ro,qr=t.createVariableDeclaration(Qt,void 0,void 0,nr);Pr(qr,Qe);let xr=t.createVariableDeclarationList([qr],1),ln=t.createVariableStatement(void 0,xr);Pr(ln,Qe),dt(ln,Xn),oc(ln,Qe);let tt=[ln];if(Jr(tt,ho),ve(tt,Qe),nn)if(rn){let zt=t.createExportDefault(Qt);tt.push(zt)}else{let zt=t.createExternalModuleExport(t.getDeclarationName(Qe));tt.push(zt)}return tt}function K(Qe){return t.updateClassExpression(Qe,Bn(Qe.modifiers,m,Ia),Qe.name,void 0,Bn(Qe.heritageClauses,b,ef),Bn(Qe.members,b,$c))}function Z(Qe){return t.updateConstructorDeclaration(Qe,Bn(Qe.modifiers,m,Ia),Bn(Qe.parameters,b,Co),rt(Qe.body,b,Xo))}function V(Qe,gt){return Qe!==gt&&(oc(Qe,gt),Ca(Qe,P_(gt))),Qe}function ue(Qe){return V(t.updateMethodDeclaration(Qe,Bn(Qe.modifiers,m,Ia),Qe.asteriskToken,C.checkDefined(rt(Qe.name,b,ic)),void 0,void 0,Bn(Qe.parameters,b,Co),void 0,rt(Qe.body,b,Xo)),Qe)}function G(Qe){return V(t.updateGetAccessorDeclaration(Qe,Bn(Qe.modifiers,m,Ia),C.checkDefined(rt(Qe.name,b,ic)),Bn(Qe.parameters,b,Co),void 0,rt(Qe.body,b,Xo)),Qe)}function ne(Qe){return V(t.updateSetAccessorDeclaration(Qe,Bn(Qe.modifiers,m,Ia),C.checkDefined(rt(Qe.name,b,ic)),Bn(Qe.parameters,b,Co),rt(Qe.body,b,Xo)),Qe)}function he(Qe){if(!(Qe.flags&33554432||ei(Qe,128)))return V(t.updatePropertyDeclaration(Qe,Bn(Qe.modifiers,m,Ia),C.checkDefined(rt(Qe.name,b,ic)),void 0,void 0,rt(Qe.initializer,b,bt)),Qe)}function ye(Qe){let gt=t.updateParameterDeclaration(Qe,sse(t,Qe.modifiers),Qe.dotDotDotToken,C.checkDefined(rt(Qe.name,b,uS)),void 0,void 0,rt(Qe.initializer,b,bt));return gt!==Qe&&(oc(gt,Qe),dt(gt,P_(Qe)),Ca(gt,P_(Qe)),fr(gt.name,64)),gt}function $(Qe){return _N(Qe.expression,"___metadata")}function Y(Qe){if(!Qe)return;let{false:gt,true:nn}=N8(Qe.decorators,$),rn=[];return Jr(rn,Ft(gt,He)),Jr(rn,Zi(Qe.parameters,Ee)),Jr(rn,Ft(nn,He)),rn}function oe(Qe,gt,nn){Jr(Qe,Ft(me(gt,nn),rn=>t.createExpressionStatement(rn)))}function fe(Qe,gt,nn){return ML(!0,Qe,nn)&>===sa(Qe)}function Ne(Qe,gt){return tr(Qe.members,nn=>fe(nn,gt,Qe))}function me(Qe,gt){let nn=Ne(Qe,gt),rn;for(let Nn of nn)rn=In(rn,ie(Qe,Nn));return rn}function ie(Qe,gt){let nn=tF(gt,Qe,!0),rn=Y(nn);if(!rn)return;let Nn=Se(Qe,gt),Xn=Ce(gt,!ei(gt,128)),_n=l>0?Jo(gt)&&!C_(gt)?t.createVoidZero():t.createNull():void 0,Qt=r().createDecorateHelper(rn,Nn,Xn,_n);return fr(Qt,3072),Ca(Qt,P_(gt)),Qt}function ve(Qe,gt){let nn=Le(gt);nn&&Qe.push(Pr(t.createExpressionStatement(nn),gt))}function Le(Qe){let gt=Xq(Qe),nn=Y(gt);if(!nn)return;let rn=p&&p[Ou(Qe)],Nn=l<2?t.getInternalName(Qe,!1,!0):t.getDeclarationName(Qe,!1,!0),Xn=r().createDecorateHelper(nn,Nn),_n=t.createAssignment(Nn,rn?t.createAssignment(rn,Xn):Xn);return fr(_n,3072),Ca(_n,P_(Qe)),_n}function He(Qe){return C.checkDefined(rt(Qe.expression,b,bt))}function Ee(Qe,gt){let nn;if(Qe){nn=[];for(let rn of Qe){let Nn=r().createParamHelper(He(rn),gt);dt(Nn,rn.expression),fr(Nn,3072),nn.push(Nn)}}return nn}function Ce(Qe,gt){let nn=Qe.name;return Xi(nn)?t.createIdentifier(""):Za(nn)?gt&&!F_(nn.expression)?t.getGeneratedNameForNode(nn):nn.expression:Ve(nn)?t.createStringLiteral(Sr(nn)):t.cloneNode(nn)}function Me(){p||(e.enableSubstitution(80),p=[])}function Fe(Qe){if(o.getNodeCheckFlags(Qe)&262144){Me();let gt=t.createUniqueName(Qe.name&&!ol(Qe.name)?Sr(Qe.name):"default");return p[Ou(Qe)]=gt,i(gt),gt}}function At(Qe){return t.createPropertyAccessExpression(t.getDeclarationName(Qe),"prototype")}function Se(Qe,gt){return sa(gt)?t.getDeclarationName(Qe):At(Qe)}function je(Qe,gt){return gt=u(Qe,gt),Qe===1?at(gt):gt}function at(Qe){switch(Qe.kind){case 80:return Bt(Qe)}return Qe}function Bt(Qe){return yt(Qe)??Qe}function yt(Qe){if(p&&o.getNodeCheckFlags(Qe)&536870912){let gt=o.getReferencedValueDeclaration(Qe);if(gt){let nn=p[gt.id];if(nn){let rn=t.cloneNode(nn);return Ca(rn,Qe),oc(rn,Qe),rn}}}}}var GVe=A({"src/compiler/transformers/legacyDecorators.ts"(){"use strict";ia()}});function kle(e){let{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=as(e.getCompilerOptions()),u,p,g,m,b,T;return Nm(e,I);function I(w){u=void 0,T=!1;let ae=An(w,ne,e);return Vg(ae,e.readEmitHelpers()),T&&(JA(ae,32),T=!1),ae}function R(){switch(p=void 0,g=void 0,m=void 0,u?.kind){case"class":p=u.classInfo;break;case"class-element":p=u.next.classInfo,g=u.classThis,m=u.classSuper;break;case"name":let w=u.next.next.next;w?.kind==="class-element"&&(p=w.next.classInfo,g=w.classThis,m=w.classSuper);break}}function M(w){u={kind:"class",next:u,classInfo:w,savedPendingExpressions:b},b=void 0,R()}function N(){C.assert(u?.kind==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${u?.kind}' instead.`),b=u.savedPendingExpressions,u=u.next,R()}function O(w){var ae,J;C.assert(u?.kind==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${u?.kind}' instead.`),u={kind:"class-element",next:u},(Il(w)||Jo(w)&&fc(w))&&(u.classThis=(ae=u.next.classInfo)==null?void 0:ae.classThis,u.classSuper=(J=u.next.classInfo)==null?void 0:J.classSuper),R()}function H(){var w;C.assert(u?.kind==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${u?.kind}' instead.`),C.assert(((w=u.next)==null?void 0:w.kind)==="class","Incorrect value for top.next.kind.",()=>{var ae;return`Expected top.next.kind to be 'class' but got '${(ae=u.next)==null?void 0:ae.kind}' instead.`}),u=u.next,R()}function K(){C.assert(u?.kind==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${u?.kind}' instead.`),u={kind:"name",next:u},R()}function Z(){C.assert(u?.kind==="name","Incorrect value for top.kind.",()=>`Expected top.kind to be 'name' but got '${u?.kind}' instead.`),u=u.next,R()}function V(){u?.kind==="other"?(C.assert(!b),u.depth++):(u={kind:"other",next:u,depth:0,savedPendingExpressions:b},b=void 0,R())}function ue(){C.assert(u?.kind==="other","Incorrect value for top.kind.",()=>`Expected top.kind to be 'other' but got '${u?.kind}' instead.`),u.depth>0?(C.assert(!b),u.depth--):(b=u.savedPendingExpressions,u=u.next,R())}function G(w){return!!(w.transformFlags&33554432)||!!g&&!!(w.transformFlags&16384)||!!g&&!!m&&!!(w.transformFlags&134217728)}function ne(w){if(!G(w))return w;switch(w.kind){case 170:return C.fail("Use `modifierVisitor` instead.");case 263:return Le(w);case 231:return He(w);case 176:case 172:case 175:return C.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 169:return Xn(w);case 226:return ho(w,!1);case 303:return ln(w);case 260:return tt(w);case 208:return zt(w);case 277:return Ue(w);case 110:return Qe(w);case 248:return Yt(w);case 244:return vi(w);case 361:return Ro(w,!1);case 217:return mt(w,!1);case 360:return ft(w,!1);case 213:return gt(w);case 215:return nn(w);case 224:case 225:return ki(w,!1);case 211:return rn(w);case 212:return Nn(w);case 167:return xr(w);case 174:case 178:case 177:case 218:case 262:{V();let ae=An(w,he,e);return ue(),ae}default:return An(w,he,e)}}function he(w){switch(w.kind){case 170:return;default:return ne(w)}}function ye(w){switch(w.kind){case 170:return;default:return w}}function $(w){switch(w.kind){case 176:return Me(w);case 174:return Se(w);case 177:return je(w);case 178:return at(w);case 172:return yt(w);case 175:return Bt(w);default:return ne(w)}}function Y(w){switch(w.kind){case 224:case 225:return ki(w,!0);case 226:return ho(w,!0);case 361:return Ro(w,!0);case 217:return mt(w,!0);default:return ne(w)}}function oe(w){let ae=w.name&&Ve(w.name)&&!ol(w.name)?Sr(w.name):w.name&&Xi(w.name)&&!ol(w.name)?Sr(w.name).slice(1):w.name&&Na(w.name)&&$p(w.name.text,99)?w.name.text:pi(w)?"class":"member";return wy(w)&&(ae=`get_${ae}`),wv(w)&&(ae=`set_${ae}`),w.name&&Xi(w.name)&&(ae=`private_${ae}`),sa(w)&&(ae=`static_${ae}`),"_"+ae}function fe(w,ae){return t.createUniqueName(`${oe(w)}_${ae}`,24)}function Ne(w,ae){return t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(w,void 0,void 0,ae)],1))}function me(w){let ae=t.createUniqueName("_metadata",48),J,pe,Ge=!1,ke=!1,Dt=!1,Pt,Kt,Tn;if(oR(!1,w)){let On=Et(w.members,Gn=>(ad(Gn)||kd(Gn))&&fc(Gn));Pt=t.createUniqueName("_classThis",On?24:48)}for(let On of w.members){if(RA(On)&&ML(!1,On,w))if(fc(On)){if(!pe){pe=t.createUniqueName("_staticExtraInitializers",48);let Gn=r().createRunInitializersHelper(Pt??t.createThis(),pe);Ca(Gn,w.name??zg(w)),Kt??(Kt=[]),Kt.push(Gn)}}else{if(!J){J=t.createUniqueName("_instanceExtraInitializers",48);let Gn=r().createRunInitializersHelper(t.createThis(),J);Ca(Gn,w.name??zg(w)),Tn??(Tn=[]),Tn.push(Gn)}J??(J=t.createUniqueName("_instanceExtraInitializers",48))}if(Il(On)?SI(On)||(Ge=!0):Jo(On)&&(fc(On)?Ge||(Ge=!!On.initializer||Sf(On)):ke||(ke=!hj(On))),(ad(On)||kd(On))&&fc(On)&&(Dt=!0),pe&&J&&Ge&&ke&&Dt)break}return{class:w,classThis:Pt,metadataReference:ae,instanceMethodExtraInitializersName:J,staticMethodExtraInitializersName:pe,hasStaticInitializers:Ge,hasNonAmbientInstanceFields:ke,hasStaticPrivateClassElements:Dt,pendingStaticInitializers:Kt,pendingInstanceInitializers:Tn}}function ie(w){i(),!eJ(w)&&Ov(!1,w)&&(w=rF(e,w,t.createStringLiteral("")));let ae=t.getLocalName(w,!1,!1,!0),J=me(w),pe=[],Ge,ke,Dt,Pt,Kt=!1,Tn=pt(Xq(w));Tn&&(J.classDecoratorsName=t.createUniqueName("_classDecorators",48),J.classDescriptorName=t.createUniqueName("_classDescriptor",48),J.classExtraInitializersName=t.createUniqueName("_classExtraInitializers",48),C.assertIsDefined(J.classThis),pe.push(Ne(J.classDecoratorsName,t.createArrayLiteralExpression(Tn)),Ne(J.classDescriptorName),Ne(J.classExtraInitializersName,t.createArrayLiteralExpression()),Ne(J.classThis)),J.hasStaticPrivateClassElements&&(Kt=!0,T=!0));let On=QL(w.heritageClauses,96),Gn=On&&Xc(On.types),yi=Gn&&rt(Gn.expression,ne,bt);if(yi){J.classSuper=t.createUniqueName("_classSuper",48);let Kr=Xl(yi),Po=Zc(Kr)&&!Kr.name||ws(Kr)&&!Kr.name||Bs(Kr)?t.createComma(t.createNumericLiteral(0),yi):yi;pe.push(Ne(J.classSuper,Po));let Dn=t.updateExpressionWithTypeArguments(Gn,J.classSuper,void 0),Fs=t.updateHeritageClause(On,[Dn]);Pt=t.createNodeArray([Fs])}let Di=J.classThis??t.createThis();M(J),Ge=In(Ge,q(J.metadataReference,J.classSuper));let or=w.members;if(or=Bn(or,Kr=>Pl(Kr)?Kr:$(Kr),$c),or=Bn(or,Kr=>Pl(Kr)?$(Kr):Kr,$c),b){let Kr;for(let Po of b){Po=rt(Po,function Fs(Yl){if(!(Yl.transformFlags&16384))return Yl;switch(Yl.kind){case 110:return Kr||(Kr=t.createUniqueName("_outerThis",16),pe.unshift(Ne(Kr,t.createThis()))),Kr;default:return An(Yl,Fs,e)}},bt);let Dn=t.createExpressionStatement(Po);Ge=In(Ge,Dn)}b=void 0}if(N(),Et(J.pendingInstanceInitializers)&&!ig(w)){let Kr=Ee(w,J);if(Kr){let Po=x_(w),Dn=!!(Po&&Xl(Po.expression).kind!==106),Fs=[];if(Dn){let Fo=t.createSpreadElement(t.createIdentifier("arguments")),ds=t.createCallExpression(t.createSuper(),void 0,[Fo]);Fs.push(t.createExpressionStatement(ds))}Jr(Fs,Kr);let Yl=t.createBlock(Fs,!0);Dt=t.createConstructorDeclaration(void 0,[],Yl)}}if(J.staticMethodExtraInitializersName&&pe.push(Ne(J.staticMethodExtraInitializersName,t.createArrayLiteralExpression())),J.instanceMethodExtraInitializersName&&pe.push(Ne(J.instanceMethodExtraInitializersName,t.createArrayLiteralExpression())),J.memberInfos&&Bc(J.memberInfos,(Kr,Po)=>{sa(Po)&&(pe.push(Ne(Kr.memberDecoratorsName)),Kr.memberInitializersName&&pe.push(Ne(Kr.memberInitializersName,t.createArrayLiteralExpression())),Kr.memberExtraInitializersName&&pe.push(Ne(Kr.memberExtraInitializersName,t.createArrayLiteralExpression())),Kr.memberDescriptorName&&pe.push(Ne(Kr.memberDescriptorName)))}),J.memberInfos&&Bc(J.memberInfos,(Kr,Po)=>{sa(Po)||(pe.push(Ne(Kr.memberDecoratorsName)),Kr.memberInitializersName&&pe.push(Ne(Kr.memberInitializersName,t.createArrayLiteralExpression())),Kr.memberExtraInitializersName&&pe.push(Ne(Kr.memberExtraInitializersName,t.createArrayLiteralExpression())),Kr.memberDescriptorName&&pe.push(Ne(Kr.memberDescriptorName)))}),Ge=Jr(Ge,J.staticNonFieldDecorationStatements),Ge=Jr(Ge,J.nonStaticNonFieldDecorationStatements),Ge=Jr(Ge,J.staticFieldDecorationStatements),Ge=Jr(Ge,J.nonStaticFieldDecorationStatements),J.classDescriptorName&&J.classDecoratorsName&&J.classExtraInitializersName&&J.classThis){Ge??(Ge=[]);let Kr=t.createPropertyAssignment("value",Di),Po=t.createObjectLiteralExpression([Kr]),Dn=t.createAssignment(J.classDescriptorName,Po),Fs=t.createPropertyAccessExpression(Di,"name"),Yl=r().createESDecorateHelper(t.createNull(),Dn,J.classDecoratorsName,{kind:"class",name:Fs,metadata:J.metadataReference},t.createNull(),J.classExtraInitializersName),Fo=t.createExpressionStatement(Yl);Ca(Fo,zg(w)),Ge.push(Fo);let ds=t.createPropertyAccessExpression(J.classDescriptorName,"value"),Gs=t.createAssignment(J.classThis,ds),hl=t.createAssignment(ae,Gs);Ge.push(t.createExpressionStatement(hl))}if(Ge.push(Oe(Di,J.metadataReference)),Et(J.pendingStaticInitializers)){for(let Kr of J.pendingStaticInitializers){let Po=t.createExpressionStatement(Kr);Ca(Po,jv(Kr)),ke=In(ke,Po)}J.pendingStaticInitializers=void 0}if(J.classExtraInitializersName){let Kr=r().createRunInitializersHelper(Di,J.classExtraInitializersName),Po=t.createExpressionStatement(Kr);Ca(Po,w.name??zg(w)),ke=In(ke,Po)}Ge&&ke&&!J.hasStaticInitializers&&(Jr(Ge,ke),ke=void 0);let Vr=Ge&&t.createClassStaticBlockDeclaration(t.createBlock(Ge,!0));Vr&&Kt&&Pk(Vr,32);let Eo=ke&&t.createClassStaticBlockDeclaration(t.createBlock(ke,!0));if(Vr||Dt||Eo){let Kr=[],Po=or.findIndex(SI);Vr?(Jr(Kr,or,0,Po+1),Kr.push(Vr),Jr(Kr,or,Po+1)):Jr(Kr,or),Dt&&Kr.push(Dt),Eo&&Kr.push(Eo),or=dt(t.createNodeArray(Kr),or)}let Mi=o(),Ci;if(Tn){Ci=t.createClassExpression(void 0,void 0,void 0,Pt,or),J.classThis&&(Ci=xle(t,Ci,J.classThis));let Kr=t.createVariableDeclaration(ae,void 0,void 0,Ci),Po=t.createVariableDeclarationList([Kr]),Dn=J.classThis?t.createAssignment(ae,J.classThis):ae;pe.push(t.createVariableStatement(void 0,Po),t.createReturnStatement(Dn))}else Ci=t.createClassExpression(void 0,w.name,void 0,Pt,or),pe.push(t.createReturnStatement(Ci));if(Kt){JA(Ci,32);for(let Kr of Ci.members)(ad(Kr)||kd(Kr))&&fc(Kr)&&JA(Kr,32)}return Pr(Ci,w),t.createImmediatelyInvokedArrowFunction(t.mergeLexicalEnvironment(pe,Mi))}function ve(w){return Ov(!1,w)||xC(!1,w)}function Le(w){if(ve(w)){let ae=[],J=Nl(w,pi)??w,pe=J.name?t.createStringLiteralFromNode(J.name):t.createStringLiteral("default"),Ge=ei(w,32),ke=ei(w,2048);if(w.name||(w=rF(e,w,pe)),Ge&&ke){let Dt=ie(w);if(w.name){let Pt=t.createVariableDeclaration(t.getLocalName(w),void 0,void 0,Dt);Pr(Pt,w);let Kt=t.createVariableDeclarationList([Pt],1),Tn=t.createVariableStatement(void 0,Kt);ae.push(Tn);let On=t.createExportDefault(t.getDeclarationName(w));Pr(On,w),oc(On,L_(w)),Ca(On,zg(w)),ae.push(On)}else{let Pt=t.createExportDefault(Dt);Pr(Pt,w),oc(Pt,L_(w)),Ca(Pt,zg(w)),ae.push(Pt)}}else{C.assertIsDefined(w.name,"A class declaration that is not a default export must have a name.");let Dt=ie(w),Pt=Ge?Di=>eI(Di)?void 0:ye(Di):ye,Kt=Bn(w.modifiers,Pt,Ia),Tn=t.getLocalName(w,!1,!0),On=t.createVariableDeclaration(Tn,void 0,void 0,Dt);Pr(On,w);let Gn=t.createVariableDeclarationList([On],1),yi=t.createVariableStatement(Kt,Gn);if(Pr(yi,w),oc(yi,L_(w)),ae.push(yi),Ge){let Di=t.createExternalModuleExport(Tn);Pr(Di,w),ae.push(Di)}}return sh(ae)}else{let ae=Bn(w.modifiers,ye,Ia),J=Bn(w.heritageClauses,ne,ef);M(void 0);let pe=Bn(w.members,$,$c);return N(),t.updateClassDeclaration(w,ae,w.name,void 0,J,pe)}}function He(w){if(ve(w)){let ae=ie(w);return Pr(ae,w),ae}else{let ae=Bn(w.modifiers,ye,Ia),J=Bn(w.heritageClauses,ne,ef);M(void 0);let pe=Bn(w.members,$,$c);return N(),t.updateClassExpression(w,ae,w.name,void 0,J,pe)}}function Ee(w,ae){if(Et(ae.pendingInstanceInitializers)){let J=[];return J.push(t.createExpressionStatement(t.inlineExpressions(ae.pendingInstanceInitializers))),ae.pendingInstanceInitializers=void 0,J}}function Ce(w,ae,J,pe,Ge,ke){let Dt=pe[Ge],Pt=ae[Dt];if(Jr(w,Bn(ae,ne,Ki,J,Dt-J)),WS(Pt)){let Kt=[];Ce(Kt,Pt.tryBlock.statements,0,pe,Ge+1,ke);let Tn=t.createNodeArray(Kt);dt(Tn,Pt.tryBlock.statements),w.push(t.updateTryStatement(Pt,t.updateBlock(Pt.tryBlock,Kt),rt(Pt.catchClause,ne,$1),rt(Pt.finallyBlock,ne,Xo)))}else Jr(w,Bn(ae,ne,Ki,Dt,1)),Jr(w,ke);Jr(w,Bn(ae,ne,Ki,Dt+1))}function Me(w){O(w);let ae=Bn(w.modifiers,ye,Ia),J=Bn(w.parameters,ne,Co),pe;if(w.body&&p){let Ge=Ee(p.class,p);if(Ge){let ke=[],Dt=t.copyPrologue(w.body.statements,ke,!1,ne),Pt=Z5(w.body.statements,Dt);Pt.length>0?Ce(ke,w.body.statements,Dt,Pt,0,Ge):(Jr(ke,Ge),Jr(ke,Bn(w.body.statements,ne,Ki))),pe=t.createBlock(ke,!0),Pr(pe,w.body),dt(pe,w.body)}}return pe??(pe=rt(w.body,ne,Xo)),H(),t.updateConstructorDeclaration(w,ae,J,pe)}function Fe(w,ae){return w!==ae&&(oc(w,ae),Ca(w,zg(ae))),w}function At(w,ae,J){let pe,Ge,ke,Dt,Pt,Kt;if(!ae){let Gn=Bn(w.modifiers,ye,Ia);return K(),Ge=qr(w.name),Z(),{modifiers:Gn,referencedName:pe,name:Ge,initializersName:ke,descriptorName:Kt,thisArg:Pt}}let Tn=pt(tF(w,ae.class,!1)),On=Bn(w.modifiers,ye,Ia);if(Tn){let Gn=fe(w,"decorators"),yi=t.createArrayLiteralExpression(Tn),Di=t.createAssignment(Gn,yi),or={memberDecoratorsName:Gn};ae.memberInfos??(ae.memberInfos=new Map),ae.memberInfos.set(w,or),b??(b=[]),b.push(Di);let Vr=RA(w)||kd(w)?sa(w)?ae.staticNonFieldDecorationStatements??(ae.staticNonFieldDecorationStatements=[]):ae.nonStaticNonFieldDecorationStatements??(ae.nonStaticNonFieldDecorationStatements=[]):Jo(w)&&!kd(w)?sa(w)?ae.staticFieldDecorationStatements??(ae.staticFieldDecorationStatements=[]):ae.nonStaticFieldDecorationStatements??(ae.nonStaticFieldDecorationStatements=[]):C.fail(),Eo=Zp(w)?"getter":vp(w)?"setter":jl(w)?"method":kd(w)?"accessor":Jo(w)?"field":C.fail(),Mi;if(Ve(w.name)||Xi(w.name))Mi={computed:!1,name:w.name};else if(R_(w.name))Mi={computed:!0,name:t.createStringLiteralFromNode(w.name)};else{let Kr=w.name.expression;R_(Kr)&&!Ve(Kr)?Mi={computed:!0,name:t.createStringLiteralFromNode(Kr)}:(K(),{referencedName:pe,name:Ge}=nr(w.name),Mi={computed:!0,name:pe},Z())}let Ci={kind:Eo,name:Mi,static:sa(w),private:Xi(w.name),access:{get:Jo(w)||Zp(w)||jl(w),set:Jo(w)||vp(w)},metadata:ae.metadataReference};if(RA(w)){let Kr=sa(w)?ae.staticMethodExtraInitializersName:ae.instanceMethodExtraInitializersName;C.assertIsDefined(Kr);let Po;ad(w)&&J&&(Po=J(w,Bn(On,Yl=>ai(Yl,hN),Ia)),or.memberDescriptorName=Kt=fe(w,"descriptor"),Po=t.createAssignment(Kt,Po));let Dn=r().createESDecorateHelper(t.createThis(),Po??t.createNull(),Gn,Ci,t.createNull(),Kr),Fs=t.createExpressionStatement(Dn);Ca(Fs,zg(w)),Vr.push(Fs)}else if(Jo(w)){ke=or.memberInitializersName??(or.memberInitializersName=fe(w,"initializers")),Dt=or.memberExtraInitializersName??(or.memberExtraInitializersName=fe(w,"extraInitializers")),sa(w)&&(Pt=ae.classThis);let Kr;ad(w)&&C_(w)&&J&&(Kr=J(w,void 0),or.memberDescriptorName=Kt=fe(w,"descriptor"),Kr=t.createAssignment(Kt,Kr));let Po=r().createESDecorateHelper(kd(w)?t.createThis():t.createNull(),Kr??t.createNull(),Gn,Ci,ke,Dt),Dn=t.createExpressionStatement(Po);Ca(Dn,zg(w)),Vr.push(Dn)}}return Ge===void 0&&(K(),Ge=qr(w.name),Z()),!Et(On)&&(jl(w)||Jo(w))&&fr(Ge,1024),{modifiers:On,referencedName:pe,name:Ge,initializersName:ke,extraInitializersName:Dt,descriptorName:Kt,thisArg:Pt}}function Se(w){O(w);let{modifiers:ae,name:J,descriptorName:pe}=At(w,p,xt);if(pe)return H(),Fe(yn(ae,J,pe),w);{let Ge=Bn(w.parameters,ne,Co),ke=rt(w.body,ne,Xo);return H(),Fe(t.updateMethodDeclaration(w,ae,w.asteriskToken,J,void 0,void 0,Ge,void 0,ke),w)}}function je(w){O(w);let{modifiers:ae,name:J,descriptorName:pe}=At(w,p,Ye);if(pe)return H(),Fe(fn(ae,J,pe),w);{let Ge=Bn(w.parameters,ne,Co),ke=rt(w.body,ne,Xo);return H(),Fe(t.updateGetAccessorDeclaration(w,ae,J,Ge,void 0,ke),w)}}function at(w){O(w);let{modifiers:ae,name:J,descriptorName:pe}=At(w,p,ht);if(pe)return H(),Fe(mn(ae,J,pe),w);{let Ge=Bn(w.parameters,ne,Co),ke=rt(w.body,ne,Xo);return H(),Fe(t.updateSetAccessorDeclaration(w,ae,J,Ge,ke),w)}}function Bt(w){O(w);let ae;if(SI(w))ae=An(w,ne,e);else if(UN(w)){let J=g;g=void 0,ae=An(w,ne,e),g=J}else if(w=An(w,ne,e),ae=w,p&&(p.hasStaticInitializers=!0,Et(p.pendingStaticInitializers))){let J=[];for(let ke of p.pendingStaticInitializers){let Dt=t.createExpressionStatement(ke);Ca(Dt,jv(ke)),J.push(Dt)}let pe=t.createBlock(J,!0);ae=[t.createClassStaticBlockDeclaration(pe),ae],p.pendingStaticInitializers=void 0}return H(),ae}function yt(w){mp(w,_n)&&(w=bp(e,w,Qt(w.initializer))),O(w),C.assert(!hj(w),"Not yet implemented.");let{modifiers:ae,name:J,initializersName:pe,extraInitializersName:Ge,descriptorName:ke,thisArg:Dt}=At(w,p,C_(w)?Vt:void 0);i();let Pt=rt(w.initializer,ne,bt);pe&&(Pt=r().createRunInitializersHelper(Dt??t.createThis(),pe,Pt??t.createVoidZero())),sa(w)&&p&&Pt&&(p.hasStaticInitializers=!0);let Kt=o();if(Et(Kt)&&(Pt=t.createImmediatelyInvokedArrowFunction([...Kt,t.createReturnStatement(Pt)])),p&&(sa(w)?(Pt=We(p,!0,Pt),Ge&&(p.pendingStaticInitializers??(p.pendingStaticInitializers=[]),p.pendingStaticInitializers.push(r().createRunInitializersHelper(p.classThis??t.createThis(),Ge)))):(Pt=We(p,!1,Pt),Ge&&(p.pendingInstanceInitializers??(p.pendingInstanceInitializers=[]),p.pendingInstanceInitializers.push(r().createRunInitializersHelper(t.createThis(),Ge))))),H(),C_(w)&&ke){let Tn=L_(w),On=jv(w),Gn=w.name,yi=Gn,Di=Gn;if(Za(Gn)&&!F_(Gn.expression)){let Ci=_5(Gn);if(Ci)yi=t.updateComputedPropertyName(Gn,rt(Gn.expression,ne,bt)),Di=t.updateComputedPropertyName(Gn,Ci.left);else{let Kr=t.createTempVariable(s);Ca(Kr,Gn.expression);let Po=rt(Gn.expression,ne,bt),Dn=t.createAssignment(Kr,Po);Ca(Dn,Gn.expression),yi=t.updateComputedPropertyName(Gn,Dn),Di=t.updateComputedPropertyName(Gn,Kr)}}let or=Bn(ae,Ci=>Ci.kind!==129?Ci:void 0,Ia),Vr=jH(t,w,or,Pt);Pr(Vr,w),fr(Vr,3072),Ca(Vr,On),Ca(Vr.name,w.name);let Eo=fn(or,yi,ke);Pr(Eo,w),oc(Eo,Tn),Ca(Eo,On);let Mi=mn(or,Di,ke);return Pr(Mi,w),fr(Mi,3072),Ca(Mi,On),[Vr,Eo,Mi]}return Fe(t.updatePropertyDeclaration(w,ae,J,void 0,void 0,Pt),w)}function Qe(w){return g??w}function gt(w){if(Od(w.expression)&&g){let ae=rt(w.expression,ne,bt),J=Bn(w.arguments,ne,bt),pe=t.createFunctionCallCall(ae,g,J);return Pr(pe,w),dt(pe,w),pe}return An(w,ne,e)}function nn(w){if(Od(w.tag)&&g){let ae=rt(w.tag,ne,bt),J=t.createFunctionBindCall(ae,g,[]);Pr(J,w),dt(J,w);let pe=rt(w.template,ne,DA);return t.updateTaggedTemplateExpression(w,J,void 0,pe)}return An(w,ne,e)}function rn(w){if(Od(w)&&Ve(w.name)&&g&&m){let ae=t.createStringLiteralFromNode(w.name),J=t.createReflectGetCall(m,ae,g);return Pr(J,w.expression),dt(J,w.expression),J}return An(w,ne,e)}function Nn(w){if(Od(w)&&g&&m){let ae=rt(w.argumentExpression,ne,bt),J=t.createReflectGetCall(m,ae,g);return Pr(J,w.expression),dt(J,w.expression),J}return An(w,ne,e)}function Xn(w){mp(w,_n)&&(w=bp(e,w,Qt(w.initializer)));let ae=t.updateParameterDeclaration(w,void 0,w.dotDotDotToken,rt(w.name,ne,uS),void 0,void 0,rt(w.initializer,ne,bt));return ae!==w&&(oc(ae,w),dt(ae,P_(w)),Ca(ae,P_(w)),fr(ae.name,64)),ae}function _n(w){return Zc(w)&&!w.name&&ve(w)}function Qt(w){let ae=Xl(w);return Zc(ae)&&!ae.name&&!Ov(!1,ae)}function Yt(w){return t.updateForStatement(w,rt(w.initializer,Y,Ef),rt(w.condition,ne,bt),rt(w.incrementor,Y,bt),Id(w.statement,ne,e))}function vi(w){return An(w,Y,e)}function ho(w,ae){if(Bv(w)){let J=wn(w.left),pe=rt(w.right,ne,bt);return t.updateBinaryExpression(w,J,w.operatorToken,pe)}if(Mc(w)){if(mp(w,_n))return w=bp(e,w,Qt(w.right)),An(w,ne,e);if(Od(w.left)&&g&&m){let J=Ys(w.left)?rt(w.left.argumentExpression,ne,bt):Ve(w.left.name)?t.createStringLiteralFromNode(w.left.name):void 0;if(J){let pe=rt(w.right,ne,bt);if(GN(w.operatorToken.kind)){let ke=J;F_(J)||(ke=t.createTempVariable(s),J=t.createAssignment(ke,J));let Dt=t.createReflectGetCall(m,ke,g);Pr(Dt,w.left),dt(Dt,w.left),pe=t.createBinaryExpression(Dt,VN(w.operatorToken.kind),pe),dt(pe,w)}let Ge=ae?void 0:t.createTempVariable(s);return Ge&&(pe=t.createAssignment(Ge,pe),dt(Ge,w)),pe=t.createReflectSetCall(m,J,pe,g),Pr(pe,w),dt(pe,w),Ge&&(pe=t.createComma(pe,Ge),dt(pe,w)),pe}}}if(w.operatorToken.kind===28){let J=rt(w.left,Y,bt),pe=rt(w.right,ae?Y:ne,bt);return t.updateBinaryExpression(w,J,w.operatorToken,pe)}return An(w,ne,e)}function ki(w,ae){if(w.operator===46||w.operator===47){let J=vs(w.operand);if(Od(J)&&g&&m){let pe=Ys(J)?rt(J.argumentExpression,ne,bt):Ve(J.name)?t.createStringLiteralFromNode(J.name):void 0;if(pe){let Ge=pe;F_(pe)||(Ge=t.createTempVariable(s),pe=t.createAssignment(Ge,pe));let ke=t.createReflectGetCall(m,Ge,g);Pr(ke,w),dt(ke,w);let Dt=ae?void 0:t.createTempVariable(s);return ke=l5(t,w,ke,s,Dt),ke=t.createReflectSetCall(m,pe,ke,g),Pr(ke,w),dt(ke,w),Dt&&(ke=t.createComma(ke,Dt),dt(ke,w)),ke}}}return An(w,ne,e)}function Ro(w,ae){let J=ae?Rw(w.elements,Y):Rw(w.elements,ne,Y);return t.updateCommaListExpression(w,J)}function nr(w){if(R_(w)||Xi(w)){let ke=t.createStringLiteralFromNode(w),Dt=rt(w,ne,ic);return{referencedName:ke,name:Dt}}if(R_(w.expression)&&!Ve(w.expression)){let ke=t.createStringLiteralFromNode(w.expression),Dt=rt(w,ne,ic);return{referencedName:ke,name:Dt}}let ae=t.getGeneratedNameForNode(w);s(ae);let J=r().createPropKeyHelper(rt(w.expression,ne,bt)),pe=t.createAssignment(ae,J),Ge=t.updateComputedPropertyName(w,le(pe));return{referencedName:ae,name:Ge}}function qr(w){return Za(w)?xr(w):rt(w,ne,ic)}function xr(w){let ae=rt(w.expression,ne,bt);return F_(ae)||(ae=le(ae)),t.updateComputedPropertyName(w,ae)}function ln(w){return mp(w,_n)&&(w=bp(e,w,Qt(w.initializer))),An(w,ne,e)}function tt(w){return mp(w,_n)&&(w=bp(e,w,Qt(w.initializer))),An(w,ne,e)}function zt(w){return mp(w,_n)&&(w=bp(e,w,Qt(w.initializer))),An(w,ne,e)}function Rn(w){if(wa(w)||pd(w))return wn(w);if(Od(w)&&g&&m){let ae=Ys(w)?rt(w.argumentExpression,ne,bt):Ve(w.name)?t.createStringLiteralFromNode(w.name):void 0;if(ae){let J=t.createTempVariable(void 0),pe=t.createAssignmentTargetWrapper(J,t.createReflectSetCall(m,ae,J,g));return Pr(pe,w),dt(pe,w),pe}}return An(w,ne,e)}function ui(w){if(Mc(w,!0)){mp(w,_n)&&(w=bp(e,w,Qt(w.right)));let ae=Rn(w.left),J=rt(w.right,ne,bt);return t.updateBinaryExpression(w,ae,w.operatorToken,J)}else return Rn(w)}function bi(w){if(Zd(w.expression)){let ae=Rn(w.expression);return t.updateSpreadElement(w,ae)}return An(w,ne,e)}function ro(w){return C.assertNode(w,pL),Zm(w)?bi(w):Vc(w)?An(w,ne,e):ui(w)}function No(w){let ae=rt(w.name,ne,ic);if(Mc(w.initializer,!0)){let J=ui(w.initializer);return t.updatePropertyAssignment(w,ae,J)}if(Zd(w.initializer)){let J=Rn(w.initializer);return t.updatePropertyAssignment(w,ae,J)}return An(w,ne,e)}function _a(w){return mp(w,_n)&&(w=bp(e,w,Qt(w.objectAssignmentInitializer))),An(w,ne,e)}function ja(w){if(Zd(w.expression)){let ae=Rn(w.expression);return t.updateSpreadAssignment(w,ae)}return An(w,ne,e)}function En(w){return C.assertNode(w,dL),qv(w)?ja(w):np(w)?_a(w):_c(w)?No(w):An(w,ne,e)}function wn(w){if(pd(w)){let ae=Bn(w.elements,ro,bt);return t.updateArrayLiteralExpression(w,ae)}else{let ae=Bn(w.properties,En,wg);return t.updateObjectLiteralExpression(w,ae)}}function Ue(w){return mp(w,_n)&&(w=bp(e,w,Qt(w.expression))),An(w,ne,e)}function mt(w,ae){let J=ae?Y:ne,pe=rt(w.expression,J,bt);return t.updateParenthesizedExpression(w,pe)}function ft(w,ae){let J=ae?Y:ne,pe=rt(w.expression,J,bt);return t.updatePartiallyEmittedExpression(w,pe)}function Nt(w,ae){return Et(w)&&(ae?Wd(ae)?(w.push(ae.expression),ae=t.updateParenthesizedExpression(ae,t.inlineExpressions(w))):(w.push(ae),ae=t.inlineExpressions(w)):ae=t.inlineExpressions(w)),ae}function le(w){let ae=Nt(b,w);return C.assertIsDefined(ae),ae!==w&&(b=void 0),ae}function We(w,ae,J){let pe=Nt(ae?w.pendingStaticInitializers:w.pendingInstanceInitializers,J);return pe!==J&&(ae?w.pendingStaticInitializers=void 0:w.pendingInstanceInitializers=void 0),pe}function pt(w){if(!w)return;let ae=[];return Jr(ae,Ft(w.decorators,j)),ae}function j(w){let ae=rt(w.expression,ne,bt);fr(ae,3072);let J=Xl(ae);if(ks(J)){let{target:pe,thisArg:Ge}=t.createCallBinding(ae,s,l,!0);return t.restoreOuterExpressions(ae,t.createFunctionBindCall(pe,Ge,[]))}return ae}function ot(w,ae,J,pe,Ge,ke,Dt){let Pt=t.createFunctionExpression(J,pe,void 0,void 0,ke,void 0,Dt??t.createBlock([]));Pr(Pt,w),Ca(Pt,zg(w)),fr(Pt,3072);let Kt=Ge==="get"||Ge==="set"?Ge:void 0,Tn=t.createStringLiteralFromNode(ae,void 0),On=r().createSetFunctionNameHelper(Pt,Tn,Kt),Gn=t.createPropertyAssignment(t.createIdentifier(Ge),On);return Pr(Gn,w),Ca(Gn,zg(w)),fr(Gn,3072),Gn}function xt(w,ae){return t.createObjectLiteralExpression([ot(w,w.name,ae,w.asteriskToken,"value",Bn(w.parameters,ne,Co),rt(w.body,ne,Xo))])}function Ye(w,ae){return t.createObjectLiteralExpression([ot(w,w.name,ae,void 0,"get",[],rt(w.body,ne,Xo))])}function ht(w,ae){return t.createObjectLiteralExpression([ot(w,w.name,ae,void 0,"set",Bn(w.parameters,ne,Co),rt(w.body,ne,Xo))])}function Vt(w,ae){return t.createObjectLiteralExpression([ot(w,w.name,ae,void 0,"get",[],t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(w.name)))])),ot(w,w.name,ae,void 0,"set",[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(w.name)),t.createIdentifier("value")))]))])}function yn(w,ae,J){return w=Bn(w,pe=>tI(pe)?pe:void 0,Ia),t.createGetAccessorDeclaration(w,ae,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(J,t.createIdentifier("value")))]))}function fn(w,ae,J){return w=Bn(w,pe=>tI(pe)?pe:void 0,Ia),t.createGetAccessorDeclaration(w,ae,[],void 0,t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(J,t.createIdentifier("get")),t.createThis(),[]))]))}function mn(w,ae,J){return w=Bn(w,pe=>tI(pe)?pe:void 0,Ia),t.createSetAccessorDeclaration(w,ae,[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(J,t.createIdentifier("set")),t.createThis(),[t.createIdentifier("value")]))]))}function q(w,ae){let J=t.createVariableDeclaration(w,void 0,void 0,t.createConditionalExpression(t.createLogicalAnd(t.createTypeCheck(t.createIdentifier("Symbol"),"function"),t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),t.createToken(58),t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"create"),void 0,[ae?Lt(ae):t.createNull()]),t.createToken(59),t.createVoidZero()));return t.createVariableStatement(void 0,t.createVariableDeclarationList([J],2))}function Oe(w,ae){let J=t.createObjectDefinePropertyCall(w,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata"),t.createPropertyDescriptor({configurable:!0,writable:!0,enumerable:!0,value:ae},!0));return fr(t.createIfStatement(ae,t.createExpressionStatement(J)),1)}function Lt(w){return t.createBinaryExpression(t.createElementAccessExpression(w,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),61,t.createNull())}}var VVe=A({"src/compiler/transformers/esDecorators.ts"(){"use strict";ia()}});function wle(e){let{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=e.getEmitResolver(),u=e.getCompilerOptions(),p=as(u),g,m=0,b,T,I,R,M=[],N=0,O=e.onEmitNode,H=e.onSubstituteNode;return e.onEmitNode=vi,e.onSubstituteNode=ho,Nm(e,K);function K(tt){if(tt.isDeclarationFile)return tt;Z(1,!1),Z(2,!_j(tt,u));let zt=An(tt,$,e);return Vg(zt,e.readEmitHelpers()),zt}function Z(tt,zt){N=zt?N|tt:N&~tt}function V(tt){return(N&tt)!==0}function ue(){return!V(1)}function G(){return V(2)}function ne(tt,zt,Rn){let ui=tt&~N;if(ui){Z(ui,!0);let bi=zt(Rn);return Z(ui,!1),bi}return zt(Rn)}function he(tt){return An(tt,$,e)}function ye(tt){switch(tt.kind){case 218:case 262:case 174:case 177:case 178:case 176:return tt;case 169:case 208:case 260:break;case 80:if(R&&l.isArgumentsLocalBinding(tt))return R;break}return An(tt,ye,e)}function $(tt){if(!(tt.transformFlags&256))return R?ye(tt):tt;switch(tt.kind){case 134:return;case 223:return ve(tt);case 174:return ne(3,He,tt);case 262:return ne(3,Me,tt);case 218:return ne(3,Fe,tt);case 219:return ne(1,At,tt);case 211:return T&&zr(tt)&&tt.expression.kind===108&&T.add(tt.name.escapedText),An(tt,$,e);case 212:return T&&tt.expression.kind===108&&(I=!0),An(tt,$,e);case 177:return ne(3,Ee,tt);case 178:return ne(3,Ce,tt);case 176:return ne(3,Le,tt);case 263:case 231:return ne(3,he,tt);default:return An(tt,$,e)}}function Y(tt){if(wie(tt))switch(tt.kind){case 243:return fe(tt);case 248:return ie(tt);case 249:return Ne(tt);case 250:return me(tt);case 299:return oe(tt);case 241:case 255:case 269:case 296:case 297:case 258:case 246:case 247:case 245:case 254:case 256:return An(tt,Y,e);default:return C.assertNever(tt,"Unhandled node.")}return $(tt)}function oe(tt){let zt=new Set;Se(tt.variableDeclaration,zt);let Rn;if(zt.forEach((ui,bi)=>{b.has(bi)&&(Rn||(Rn=new Set(b)),Rn.delete(bi))}),Rn){let ui=b;b=Rn;let bi=An(tt,Y,e);return b=ui,bi}else return An(tt,Y,e)}function fe(tt){if(je(tt.declarationList)){let zt=at(tt.declarationList,!1);return zt?t.createExpressionStatement(zt):void 0}return An(tt,$,e)}function Ne(tt){return t.updateForInStatement(tt,je(tt.initializer)?at(tt.initializer,!0):C.checkDefined(rt(tt.initializer,$,Ef)),C.checkDefined(rt(tt.expression,$,bt)),Id(tt.statement,Y,e))}function me(tt){return t.updateForOfStatement(tt,rt(tt.awaitModifier,$,gH),je(tt.initializer)?at(tt.initializer,!0):C.checkDefined(rt(tt.initializer,$,Ef)),C.checkDefined(rt(tt.expression,$,bt)),Id(tt.statement,Y,e))}function ie(tt){let zt=tt.initializer;return t.updateForStatement(tt,je(zt)?at(zt,!1):rt(tt.initializer,$,Ef),rt(tt.condition,$,bt),rt(tt.incrementor,$,bt),Id(tt.statement,Y,e))}function ve(tt){return ue()?An(tt,$,e):Pr(dt(t.createYieldExpression(void 0,rt(tt.expression,$,bt)),tt),tt)}function Le(tt){let zt=R;R=void 0;let Rn=t.updateConstructorDeclaration(tt,Bn(tt.modifiers,$,Ia),xl(tt.parameters,$,e),nn(tt));return R=zt,Rn}function He(tt){let zt,Rn=Gc(tt),ui=R;R=void 0;let bi=t.updateMethodDeclaration(tt,Bn(tt.modifiers,$,al),tt.asteriskToken,tt.name,void 0,void 0,zt=Rn&2?Nn(tt):xl(tt.parameters,$,e),void 0,Rn&2?Xn(tt,zt):nn(tt));return R=ui,bi}function Ee(tt){let zt=R;R=void 0;let Rn=t.updateGetAccessorDeclaration(tt,Bn(tt.modifiers,$,al),tt.name,xl(tt.parameters,$,e),void 0,nn(tt));return R=zt,Rn}function Ce(tt){let zt=R;R=void 0;let Rn=t.updateSetAccessorDeclaration(tt,Bn(tt.modifiers,$,al),tt.name,xl(tt.parameters,$,e),nn(tt));return R=zt,Rn}function Me(tt){let zt,Rn=R;R=void 0;let ui=Gc(tt),bi=t.updateFunctionDeclaration(tt,Bn(tt.modifiers,$,al),tt.asteriskToken,tt.name,void 0,zt=ui&2?Nn(tt):xl(tt.parameters,$,e),void 0,ui&2?Xn(tt,zt):rf(tt.body,$,e));return R=Rn,bi}function Fe(tt){let zt,Rn=R;R=void 0;let ui=Gc(tt),bi=t.updateFunctionExpression(tt,Bn(tt.modifiers,$,Ia),tt.asteriskToken,tt.name,void 0,zt=ui&2?Nn(tt):xl(tt.parameters,$,e),void 0,ui&2?Xn(tt,zt):rf(tt.body,$,e));return R=Rn,bi}function At(tt){let zt,Rn=Gc(tt);return t.updateArrowFunction(tt,Bn(tt.modifiers,$,Ia),void 0,zt=Rn&2?Nn(tt):xl(tt.parameters,$,e),void 0,tt.equalsGreaterThanToken,Rn&2?Xn(tt,zt):rf(tt.body,$,e))}function Se({name:tt},zt){if(Ve(tt))zt.add(tt.escapedText);else for(let Rn of tt.elements)Vc(Rn)||Se(Rn,zt)}function je(tt){return!!tt&&jc(tt)&&!(tt.flags&7)&&tt.declarations.some(gt)}function at(tt,zt){Bt(tt);let Rn=qC(tt);return Rn.length===0?zt?rt(t.converters.convertToAssignmentElementTarget(tt.declarations[0].name),$,bt):void 0:t.inlineExpressions(Ft(Rn,Qe))}function Bt(tt){Ke(tt.declarations,yt)}function yt({name:tt}){if(Ve(tt))s(tt);else for(let zt of tt.elements)Vc(zt)||yt(zt)}function Qe(tt){let zt=Ca(t.createAssignment(t.converters.convertToAssignmentElementTarget(tt.name),tt.initializer),tt);return C.checkDefined(rt(zt,$,bt))}function gt({name:tt}){if(Ve(tt))return b.has(tt.escapedText);for(let zt of tt.elements)if(!Vc(zt)&>(zt))return!0;return!1}function nn(tt){C.assertIsDefined(tt.body);let zt=T,Rn=I;T=new Set,I=!1;let ui=rf(tt.body,$,e),bi=Nl(tt,zs);if(p>=2&&l.getNodeCheckFlags(tt)&384&&(Gc(bi)&3)!==3){if(Yt(),T.size){let No=iF(t,l,tt,T);M[ss(No)]=!0;let _a=ui.statements.slice();Qh(_a,[No]),ui=t.updateBlock(ui,_a)}I&&(l.getNodeCheckFlags(tt)&256?XA(ui,Ok):l.getNodeCheckFlags(tt)&128&&XA(ui,wk))}return T=zt,I=Rn,ui}function rn(){C.assert(R);let tt=t.createVariableDeclaration(R,void 0,void 0,t.createIdentifier("arguments")),zt=t.createVariableStatement(void 0,[tt]);return Ku(zt),M_(zt,2097152),zt}function Nn(tt){if(Cw(tt.parameters))return xl(tt.parameters,$,e);let zt=[];for(let ui of tt.parameters){if(ui.initializer||ui.dotDotDotToken){if(tt.kind===219){let ro=t.createParameterDeclaration(void 0,t.createToken(26),t.createUniqueName("args",8));zt.push(ro)}break}let bi=t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(ui.name,8));zt.push(bi)}let Rn=t.createNodeArray(zt);return dt(Rn,tt.parameters),Rn}function Xn(tt,zt){let Rn=Cw(tt.parameters)?void 0:xl(tt.parameters,$,e);i();let bi=Nl(tt,ea).type,ro=p<2?Qt(bi):void 0,No=tt.kind===219,_a=R,En=(l.getNodeCheckFlags(tt)&512)!==0&&!R;En&&(R=t.createUniqueName("arguments"));let wn;if(Rn)if(No){let pt=[];C.assert(zt.length<=tt.parameters.length);for(let j=0;j=2&&l.getNodeCheckFlags(tt)&384;if(j&&(Yt(),T.size)){let xt=iF(t,l,tt,T);M[ss(xt)]=!0,Qh(pt,[xt])}En&&Qh(pt,[rn()]);let ot=t.createBlock(pt,!0);dt(ot,tt.body),j&&I&&(l.getNodeCheckFlags(tt)&256?XA(ot,Ok):l.getNodeCheckFlags(tt)&128&&XA(ot,wk)),We=ot}return b=Ue,No||(T=mt,I=ft,R=_a),We}function _n(tt,zt){return Xo(tt)?t.updateBlock(tt,Bn(tt.statements,Y,Ki,zt)):t.converters.convertToFunctionBlock(C.checkDefined(rt(tt,Y,x6)))}function Qt(tt){let zt=tt&&PL(tt);if(zt&&Qd(zt)){let Rn=l.getTypeReferenceSerializationKind(zt);if(Rn===1||Rn===0)return zt}}function Yt(){g&1||(g|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243))}function vi(tt,zt,Rn){if(g&1&&xr(zt)){let ui=l.getNodeCheckFlags(zt)&384;if(ui!==m){let bi=m;m=ui,O(tt,zt,Rn),m=bi;return}}else if(g&&M[ss(zt)]){let ui=m;m=0,O(tt,zt,Rn),m=ui;return}O(tt,zt,Rn)}function ho(tt,zt){return zt=H(tt,zt),tt===1&&m?ki(zt):zt}function ki(tt){switch(tt.kind){case 211:return Ro(tt);case 212:return nr(tt);case 213:return qr(tt)}return tt}function Ro(tt){return tt.expression.kind===108?dt(t.createPropertyAccessExpression(t.createUniqueName("_super",48),tt.name),tt):tt}function nr(tt){return tt.expression.kind===108?ln(tt.argumentExpression,tt):tt}function qr(tt){let zt=tt.expression;if(Od(zt)){let Rn=zr(zt)?Ro(zt):nr(zt);return t.createCallExpression(t.createPropertyAccessExpression(Rn,"call"),void 0,[t.createThis(),...tt.arguments])}return tt}function xr(tt){let zt=tt.kind;return zt===263||zt===176||zt===174||zt===177||zt===178}function ln(tt,zt){return m&256?dt(t.createPropertyAccessExpression(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[tt]),"value"),zt):dt(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[tt]),zt)}}function iF(e,t,r,i){let o=(t.getNodeCheckFlags(r)&256)!==0,s=[];return i.forEach((l,u)=>{let p=Hi(u),g=[];g.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,fr(e.createPropertyAccessExpression(fr(e.createSuper(),8),p),8)))),o&&g.push(e.createPropertyAssignment("set",e.createArrowFunction(void 0,void 0,[e.createParameterDeclaration(void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,e.createAssignment(fr(e.createPropertyAccessExpression(fr(e.createSuper(),8),p),8),e.createIdentifier("v"))))),s.push(e.createPropertyAssignment(p,e.createObjectLiteralExpression(g)))}),e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createUniqueName("_super",48),void 0,void 0,e.createCallExpression(e.createPropertyAccessExpression(e.createIdentifier("Object"),"create"),void 0,[e.createNull(),e.createObjectLiteralExpression(s,!0)]))],2))}var jVe=A({"src/compiler/transformers/es2017.ts"(){"use strict";ia()}});function Ole(e){let{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=e.getEmitResolver(),u=e.getCompilerOptions(),p=as(u),g=e.onEmitNode;e.onEmitNode=_a;let m=e.onSubstituteNode;e.onSubstituteNode=ja;let b=!1,T,I,R,M=0,N=0,O,H,K,Z,V=[];return Nm(e,ye);function ue(le,We){return N!==(N&~le|We)}function G(le,We){let pt=N;return N=(N&~le|We)&3,pt}function ne(le){N=le}function he(le){H=In(H,t.createVariableDeclaration(le))}function ye(le){if(le.isDeclarationFile)return le;O=le;let We=At(le);return Vg(We,e.readEmitHelpers()),O=void 0,H=void 0,We}function $(le){return me(le,!1)}function Y(le){return me(le,!0)}function oe(le){if(le.kind!==134)return le}function fe(le,We,pt,j){if(ue(pt,j)){let ot=G(pt,j),xt=le(We);return ne(ot),xt}return le(We)}function Ne(le){return An(le,$,e)}function me(le,We){if(!(le.transformFlags&128))return le;switch(le.kind){case 223:return ie(le);case 229:return ve(le);case 253:return Le(le);case 256:return He(le);case 210:return Ce(le);case 226:return je(le,We);case 361:return at(le,We);case 299:return Bt(le);case 243:return yt(le);case 260:return Qe(le);case 246:case 247:case 249:return fe(Ne,le,0,2);case 250:return Nn(le,void 0);case 248:return fe(nn,le,0,2);case 222:return rn(le);case 176:return fe(Ro,le,2,1);case 174:return fe(xr,le,2,1);case 177:return fe(nr,le,2,1);case 178:return fe(qr,le,2,1);case 262:return fe(ln,le,2,1);case 218:return fe(zt,le,2,1);case 219:return fe(tt,le,2,0);case 169:return ho(le);case 244:return Me(le);case 217:return Fe(le,We);case 215:return Se(le);case 211:return K&&zr(le)&&le.expression.kind===108&&K.add(le.name.escapedText),An(le,$,e);case 212:return K&&le.expression.kind===108&&(Z=!0),An(le,$,e);case 263:case 231:return fe(Ne,le,2,1);default:return An(le,$,e)}}function ie(le){return I&2&&I&1?Pr(dt(t.createYieldExpression(void 0,r().createAwaitHelper(rt(le.expression,$,bt))),le),le):An(le,$,e)}function ve(le){if(I&2&&I&1){if(le.asteriskToken){let We=rt(C.checkDefined(le.expression),$,bt);return Pr(dt(t.createYieldExpression(void 0,r().createAwaitHelper(t.updateYieldExpression(le,le.asteriskToken,dt(r().createAsyncDelegatorHelper(dt(r().createAsyncValuesHelper(We),We)),We)))),le),le)}return Pr(dt(t.createYieldExpression(void 0,Qt(le.expression?rt(le.expression,$,bt):t.createVoidZero())),le),le)}return An(le,$,e)}function Le(le){return I&2&&I&1?t.updateReturnStatement(le,Qt(le.expression?rt(le.expression,$,bt):t.createVoidZero())):An(le,$,e)}function He(le){if(I&2){let We=Ij(le);return We.kind===250&&We.awaitModifier?Nn(We,le):t.restoreEnclosingLabel(rt(We,$,Ki,t.liftToBlock),le)}return An(le,$,e)}function Ee(le){let We,pt=[];for(let j of le)if(j.kind===305){We&&(pt.push(t.createObjectLiteralExpression(We)),We=void 0);let ot=j.expression;pt.push(rt(ot,$,bt))}else We=In(We,j.kind===303?t.createPropertyAssignment(j.name,rt(j.initializer,$,bt)):rt(j,$,wg));return We&&pt.push(t.createObjectLiteralExpression(We)),pt}function Ce(le){if(le.transformFlags&65536){let We=Ee(le.properties);We.length&&We[0].kind!==210&&We.unshift(t.createObjectLiteralExpression());let pt=We[0];if(We.length>1){for(let j=1;j=2&&l.getNodeCheckFlags(le)&384;if(ht){No();let yn=iF(t,l,le,K);V[ss(yn)]=!0,Qh(ot,[yn])}ot.push(Ye);let Vt=t.updateBlock(le.body,ot);return ht&&Z&&(l.getNodeCheckFlags(le)&256?XA(Vt,Ok):l.getNodeCheckFlags(le)&128&&XA(Vt,wk)),K=pt,Z=j,Vt}function bi(le){i();let We=0,pt=[],j=rt(le.body,$,x6)??t.createBlock([]);Xo(j)&&(We=t.copyPrologue(j.statements,pt,!1,$)),Jr(pt,ro(void 0,le));let ot=o();if(We>0||Et(pt)||Et(ot)){let xt=t.converters.convertToFunctionBlock(j,!0);return Qh(pt,ot),Jr(pt,xt.statements.slice(We)),t.updateBlock(xt,dt(t.createNodeArray(pt),xt.statements))}return j}function ro(le,We){let pt=!1;for(let j of We.parameters)if(pt){if(ta(j.name)){if(j.name.elements.length>0){let ot=iE(j,$,e,0,t.getGeneratedNameForNode(j));if(Et(ot)){let xt=t.createVariableDeclarationList(ot),Ye=t.createVariableStatement(void 0,xt);fr(Ye,2097152),le=In(le,Ye)}}else if(j.initializer){let ot=t.getGeneratedNameForNode(j),xt=rt(j.initializer,$,bt),Ye=t.createAssignment(ot,xt),ht=t.createExpressionStatement(Ye);fr(ht,2097152),le=In(le,ht)}}else if(j.initializer){let ot=t.cloneNode(j.name);dt(ot,j.name),fr(ot,96);let xt=rt(j.initializer,$,bt);M_(xt,3168);let Ye=t.createAssignment(ot,xt);dt(Ye,j),fr(Ye,3072);let ht=t.createBlock([t.createExpressionStatement(Ye)]);dt(ht,j),fr(ht,3905);let Vt=t.createTypeCheck(t.cloneNode(j.name),"undefined"),yn=t.createIfStatement(Vt,ht);Ku(yn),dt(yn,j),fr(yn,2101056),le=In(le,yn)}}else if(j.transformFlags&65536){pt=!0;let ot=iE(j,$,e,1,t.getGeneratedNameForNode(j),!1,!0);if(Et(ot)){let xt=t.createVariableDeclarationList(ot),Ye=t.createVariableStatement(void 0,xt);fr(Ye,2097152),le=In(le,Ye)}}return le}function No(){T&1||(T|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243))}function _a(le,We,pt){if(T&1&&ft(We)){let j=l.getNodeCheckFlags(We)&384;if(j!==M){let ot=M;M=j,g(le,We,pt),M=ot;return}}else if(T&&V[ss(We)]){let j=M;M=0,g(le,We,pt),M=j;return}g(le,We,pt)}function ja(le,We){return We=m(le,We),le===1&&M?En(We):We}function En(le){switch(le.kind){case 211:return wn(le);case 212:return Ue(le);case 213:return mt(le)}return le}function wn(le){return le.expression.kind===108?dt(t.createPropertyAccessExpression(t.createUniqueName("_super",48),le.name),le):le}function Ue(le){return le.expression.kind===108?Nt(le.argumentExpression,le):le}function mt(le){let We=le.expression;if(Od(We)){let pt=zr(We)?wn(We):Ue(We);return t.createCallExpression(t.createPropertyAccessExpression(pt,"call"),void 0,[t.createThis(),...le.arguments])}return le}function ft(le){let We=le.kind;return We===263||We===176||We===174||We===177||We===178}function Nt(le,We){return M&256?dt(t.createPropertyAccessExpression(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[le]),"value"),We):dt(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[le]),We)}}var UVe=A({"src/compiler/transformers/es2018.ts"(){"use strict";ia()}});function Fle(e){let t=e.factory;return Nm(e,r);function r(s){return s.isDeclarationFile?s:An(s,i,e)}function i(s){if(!(s.transformFlags&64))return s;switch(s.kind){case 299:return o(s);default:return An(s,i,e)}}function o(s){return s.variableDeclaration?An(s,i,e):t.updateCatchClause(s,t.createVariableDeclaration(t.createTempVariable(void 0)),rt(s.block,i,Xo))}}var HVe=A({"src/compiler/transformers/es2019.ts"(){"use strict";ia()}});function Wle(e){let{factory:t,hoistVariableDeclaration:r}=e;return Nm(e,i);function i(R){return R.isDeclarationFile?R:An(R,o,e)}function o(R){if(!(R.transformFlags&32))return R;switch(R.kind){case 213:{let M=p(R,!1);return C.assertNotNode(M,uI),M}case 211:case 212:if(Hu(R)){let M=m(R,!1,!1);return C.assertNotNode(M,uI),M}return An(R,o,e);case 226:return R.operatorToken.kind===61?T(R):An(R,o,e);case 220:return I(R);default:return An(R,o,e)}}function s(R){C.assertNotNode(R,E6);let M=[R];for(;!R.questionDotToken&&!q1(R);)R=aa(Sm(R.expression),Hu),C.assertNotNode(R,E6),M.unshift(R);return{expression:R.expression,chain:M}}function l(R,M,N){let O=g(R.expression,M,N);return uI(O)?t.createSyntheticReferenceExpression(t.updateParenthesizedExpression(R,O.expression),O.thisArg):t.updateParenthesizedExpression(R,O)}function u(R,M,N){if(Hu(R))return m(R,M,N);let O=rt(R.expression,o,bt);C.assertNotNode(O,uI);let H;return M&&(rE(O)?H=O:(H=t.createTempVariable(r),O=t.createAssignment(H,O))),O=R.kind===211?t.updatePropertyAccessExpression(R,O,rt(R.name,o,Ve)):t.updateElementAccessExpression(R,O,rt(R.argumentExpression,o,bt)),H?t.createSyntheticReferenceExpression(O,H):O}function p(R,M){if(Hu(R))return m(R,M,!1);if(Wd(R.expression)&&Hu(vs(R.expression))){let N=l(R.expression,!0,!1),O=Bn(R.arguments,o,bt);return uI(N)?dt(t.createFunctionCallCall(N.expression,N.thisArg,O),R):t.updateCallExpression(R,N,void 0,O)}return An(R,o,e)}function g(R,M,N){switch(R.kind){case 217:return l(R,M,N);case 211:case 212:return u(R,M,N);case 213:return p(R,M);default:return rt(R,o,bt)}}function m(R,M,N){let{expression:O,chain:H}=s(R),K=g(Sm(O),lS(H[0]),!1),Z=uI(K)?K.thisArg:void 0,V=uI(K)?K.expression:K,ue=t.restoreOuterExpressions(O,V,8);rE(V)||(V=t.createTempVariable(r),ue=t.createAssignment(V,ue));let G=V,ne;for(let ye=0;yeme&&Jr(ie,Bn(fe.statements,b,Ki,me,ve-me));break}ve++}C.assert(veN(ie,me))))],me,Ne===2)}return An(fe,b,e)}function H(fe,Ne,me,ie,ve){let Le=[];for(let Ce=Ne;Cet&&(t=i)}return t}function XVe(e){let t=0;for(let r of e){let i=rJ(r.statements);if(i===2)return 2;i>t&&(t=i)}return t}var YVe=A({"src/compiler/transformers/esnext.ts"(){"use strict";ia()}});function Ule(e){let{factory:t,getEmitHelperFactory:r}=e,i=e.getCompilerOptions(),o,s;return Nm(e,b);function l(){if(s.filenameDeclaration)return s.filenameDeclaration.name;let Se=t.createVariableDeclaration(t.createUniqueName("_jsxFileName",48),void 0,void 0,t.createStringLiteral(o.fileName));return s.filenameDeclaration=Se,s.filenameDeclaration.name}function u(Se){return i.jsx===5?"jsxDEV":Se?"jsxs":"jsx"}function p(Se){let je=u(Se);return m(je)}function g(){return m("Fragment")}function m(Se){var je,at;let Bt=Se==="createElement"?s.importSpecifier:j3(s.importSpecifier,i),yt=(at=(je=s.utilizedImplicitRuntimeImports)==null?void 0:je.get(Bt))==null?void 0:at.get(Se);if(yt)return yt.name;s.utilizedImplicitRuntimeImports||(s.utilizedImplicitRuntimeImports=new Map);let Qe=s.utilizedImplicitRuntimeImports.get(Bt);Qe||(Qe=new Map,s.utilizedImplicitRuntimeImports.set(Bt,Qe));let gt=t.createUniqueName(`_${Se}`,112),nn=t.createImportSpecifier(!1,t.createIdentifier(Se),gt);return hae(gt,nn),Qe.set(Se,nn),gt}function b(Se){if(Se.isDeclarationFile)return Se;o=Se,s={},s.importSpecifier=V3(i,Se);let je=An(Se,T,e);Vg(je,e.readEmitHelpers());let at=je.statements;if(s.filenameDeclaration&&(at=mS(at.slice(),t.createVariableStatement(void 0,t.createVariableDeclarationList([s.filenameDeclaration],2)))),s.utilizedImplicitRuntimeImports){for(let[Bt,yt]of Vo(s.utilizedImplicitRuntimeImports.entries()))if(ac(Se)){let Qe=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports(Vo(yt.values()))),t.createStringLiteral(Bt),void 0);Uy(Qe,!1),at=mS(at.slice(),Qe)}else if(Fp(Se)){let Qe=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createObjectBindingPattern(Vo(yt.values(),gt=>t.createBindingElement(void 0,gt.propertyName,gt.name))),void 0,void 0,t.createCallExpression(t.createIdentifier("require"),void 0,[t.createStringLiteral(Bt)]))],2));Uy(Qe,!1),at=mS(at.slice(),Qe)}}return at!==je.statements&&(je=t.updateSourceFile(je,at)),s=void 0,je}function T(Se){return Se.transformFlags&2?I(Se):Se}function I(Se){switch(Se.kind){case 284:return H(Se,!1);case 285:return K(Se,!1);case 288:return Z(Se,!1);case 294:return At(Se);default:return An(Se,T,e)}}function R(Se){switch(Se.kind){case 12:return ve(Se);case 294:return At(Se);case 284:return H(Se,!0);case 285:return K(Se,!0);case 288:return Z(Se,!0);default:return C.failBadSyntaxKind(Se)}}function M(Se){return Se.properties.some(je=>_c(je)&&(Ve(je.name)&&Sr(je.name)==="__proto__"||Na(je.name)&&je.name.text==="__proto__"))}function N(Se){let je=!1;for(let at of Se.attributes.properties)if(pI(at)&&(!wa(at.expression)||at.expression.properties.some(qv)))je=!0;else if(je&&O_(at)&&Ve(at.name)&&at.name.escapedText==="key")return!0;return!1}function O(Se){return s.importSpecifier===void 0||N(Se)}function H(Se,je){return(O(Se.openingElement)?he:G)(Se.openingElement,Se.children,je,Se)}function K(Se,je){return(O(Se)?he:G)(Se,void 0,je,Se)}function Z(Se,je){return(s.importSpecifier===void 0?$:ye)(Se.openingFragment,Se.children,je,Se)}function V(Se){let je=ue(Se);return je&&t.createObjectLiteralExpression([je])}function ue(Se){let je=gR(Se);if(De(je)===1&&!je[0].dotDotDotToken){let Bt=R(je[0]);return Bt&&t.createPropertyAssignment("children",Bt)}let at=Vi(Se,R);return De(at)?t.createPropertyAssignment("children",t.createArrayLiteralExpression(at)):void 0}function G(Se,je,at,Bt){let yt=Me(Se),Qe=je&&je.length?ue(je):void 0,gt=vn(Se.attributes.properties,Nn=>!!Nn.name&&Ve(Nn.name)&&Nn.name.escapedText==="key"),nn=gt?tr(Se.attributes.properties,Nn=>Nn!==gt):Se.attributes.properties,rn=De(nn)?oe(nn,Qe):t.createObjectLiteralExpression(Qe?[Qe]:et);return ne(yt,rn,gt,je||et,at,Bt)}function ne(Se,je,at,Bt,yt,Qe){var gt;let nn=gR(Bt),rn=De(nn)>1||!!((gt=nn[0])!=null&>.dotDotDotToken),Nn=[Se,je];if(at&&Nn.push(ie(at.initializer)),i.jsx===5){let _n=Nl(o);if(_n&&no(_n)){at===void 0&&Nn.push(t.createVoidZero()),Nn.push(rn?t.createTrue():t.createFalse());let Qt=Es(_n,Qe.pos);Nn.push(t.createObjectLiteralExpression([t.createPropertyAssignment("fileName",l()),t.createPropertyAssignment("lineNumber",t.createNumericLiteral(Qt.line+1)),t.createPropertyAssignment("columnNumber",t.createNumericLiteral(Qt.character+1))])),Nn.push(t.createThis())}}let Xn=dt(t.createCallExpression(p(rn),void 0,Nn),Qe);return yt&&Ku(Xn),Xn}function he(Se,je,at,Bt){let yt=Me(Se),Qe=Se.attributes.properties,gt=De(Qe)?oe(Qe):t.createNull(),nn=s.importSpecifier===void 0?LH(t,e.getEmitResolver().getJsxFactoryEntity(o),i.reactNamespace,Se):m("createElement"),rn=qae(t,nn,yt,gt,Vi(je,R),Bt);return at&&Ku(rn),rn}function ye(Se,je,at,Bt){let yt;if(je&&je.length){let Qe=V(je);Qe&&(yt=Qe)}return ne(g(),yt||t.createObjectLiteralExpression([]),void 0,je,at,Bt)}function $(Se,je,at,Bt){let yt=Jae(t,e.getEmitResolver().getJsxFactoryEntity(o),e.getEmitResolver().getJsxFragmentFactoryEntity(o),i.reactNamespace,Vi(je,R),Se,Bt);return at&&Ku(yt),yt}function Y(Se){return wa(Se.expression)&&!M(Se.expression)?Io(Se.expression.properties,je=>C.checkDefined(rt(je,T,wg))):t.createSpreadAssignment(C.checkDefined(rt(Se.expression,T,bt)))}function oe(Se,je){let at=as(i);return at&&at>=5?t.createObjectLiteralExpression(fe(Se,je)):Ne(Se,je)}function fe(Se,je){let at=ts(YB(Se,pI,(Bt,yt)=>ts(Ft(Bt,Qe=>yt?Y(Qe):me(Qe)))));return je&&at.push(je),at}function Ne(Se,je){let at=[],Bt=[];for(let Qe of Se){if(pI(Qe)){if(wa(Qe.expression)&&!M(Qe.expression)){for(let gt of Qe.expression.properties){if(qv(gt)){yt(),at.push(C.checkDefined(rt(gt.expression,T,bt)));continue}Bt.push(C.checkDefined(rt(gt,T)))}continue}yt(),at.push(C.checkDefined(rt(Qe.expression,T,bt)));continue}Bt.push(me(Qe))}return je&&Bt.push(je),yt(),at.length&&!wa(at[0])&&at.unshift(t.createObjectLiteralExpression()),ah(at)||r().createAssignHelper(at);function yt(){Bt.length&&(at.push(t.createObjectLiteralExpression(Bt)),Bt=[])}}function me(Se){let je=Fe(Se),at=ie(Se.initializer);return t.createPropertyAssignment(je,at)}function ie(Se){if(Se===void 0)return t.createTrue();if(Se.kind===11){let je=Se.singleQuote!==void 0?Se.singleQuote:!s3(Se,o),at=t.createStringLiteral(Ce(Se.text)||Se.text,je);return dt(at,Se)}return Se.kind===294?Se.expression===void 0?t.createTrue():C.checkDefined(rt(Se.expression,T,bt)):cg(Se)?H(Se,!1):zS(Se)?K(Se,!1):X1(Se)?Z(Se,!1):C.failBadSyntaxKind(Se)}function ve(Se){let je=Le(Se.text);return je===void 0?void 0:t.createStringLiteral(je)}function Le(Se){let je,at=0,Bt=-1;for(let yt=0;yt{if(Qe)return Bx(parseInt(Qe,10));if(gt)return Bx(parseInt(gt,16));{let rn=yIe.get(nn);return rn?Bx(rn):je}})}function Ce(Se){let je=Ee(Se);return je===Se?void 0:je}function Me(Se){if(Se.kind===284)return Me(Se.openingElement);{let je=Se.tagName;return Ve(je)&&yR(je.escapedText)?t.createStringLiteral(Sr(je)):e_(je)?t.createStringLiteral(Sr(je.namespace)+":"+Sr(je.name)):Kk(t,je)}}function Fe(Se){let je=Se.name;if(Ve(je)){let at=Sr(je);return/^[A-Za-z_]\w*$/.test(at)?je:t.createStringLiteral(at)}return t.createStringLiteral(Sr(je.namespace)+":"+Sr(je.name))}function At(Se){let je=rt(Se.expression,T,bt);return Se.dotDotDotToken?t.createSpreadElement(je):je}}var yIe,$Ve=A({"src/compiler/transformers/jsx.ts"(){"use strict";ia(),yIe=new Map(Object.entries({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830}))}});function Hle(e){let{factory:t,hoistVariableDeclaration:r}=e;return Nm(e,i);function i(p){return p.isDeclarationFile?p:An(p,o,e)}function o(p){if(!(p.transformFlags&512))return p;switch(p.kind){case 226:return s(p);default:return An(p,o,e)}}function s(p){switch(p.operatorToken.kind){case 68:return l(p);case 43:return u(p);default:return An(p,o,e)}}function l(p){let g,m,b=rt(p.left,o,bt),T=rt(p.right,o,bt);if(Ys(b)){let I=t.createTempVariable(r),R=t.createTempVariable(r);g=dt(t.createElementAccessExpression(dt(t.createAssignment(I,b.expression),b.expression),dt(t.createAssignment(R,b.argumentExpression),b.argumentExpression)),b),m=dt(t.createElementAccessExpression(I,R),b)}else if(zr(b)){let I=t.createTempVariable(r);g=dt(t.createPropertyAccessExpression(dt(t.createAssignment(I,b.expression),b.expression),b.name),b),m=dt(t.createPropertyAccessExpression(I,b.name),b)}else g=b,m=b;return dt(t.createAssignment(g,dt(t.createGlobalMethodCall("Math","pow",[m,T]),p)),p)}function u(p){let g=rt(p.left,o,bt),m=rt(p.right,o,bt);return dt(t.createGlobalMethodCall("Math","pow",[g,m]),p)}}var QVe=A({"src/compiler/transformers/es2016.ts"(){"use strict";ia()}});function bIe(e,t){return{kind:e,expression:t}}function qle(e){let{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,resumeLexicalEnvironment:o,endLexicalEnvironment:s,hoistVariableDeclaration:l}=e,u=e.getCompilerOptions(),p=e.getEmitResolver(),g=e.onSubstituteNode,m=e.onEmitNode;e.onEmitNode=cf,e.onSubstituteNode=Lf;let b,T,I,R;function M(te){R=In(R,t.createVariableDeclaration(te))}let N,O;return Nm(e,H);function H(te){if(te.isDeclarationFile)return te;b=te,T=te.text;let lt=oe(te);return Vg(lt,e.readEmitHelpers()),b=void 0,T=void 0,R=void 0,I=0,lt}function K(te,lt){let Wt=I;return I=(I&~te|lt)&32767,Wt}function Z(te,lt,Wt){I=(I&~lt|Wt)&-32768|te}function V(te){return(I&8192)!==0&&te.kind===253&&!te.expression}function ue(te){return te.transformFlags&4194304&&(Rm(te)||OS(te)||Lae(te)||SN(te)||TN(te)||GR(te)||IN(te)||WS(te)||$1(te)||J1(te)||ky(te,!1)||Xo(te))}function G(te){return(te.transformFlags&1024)!==0||N!==void 0||I&8192&&ue(te)||ky(te,!1)&&yo(te)||(Tm(te)&1)!==0}function ne(te){return G(te)?Y(te,!1):te}function he(te){return G(te)?Y(te,!0):te}function ye(te){if(G(te)){let lt=Nl(te);if(Jo(lt)&&fc(lt)){let Wt=K(32670,16449),jt=Y(te,!1);return Z(Wt,229376,0),jt}return Y(te,!1)}return te}function $(te){return te.kind===108?Ql(te,!0):ne(te)}function Y(te,lt){switch(te.kind){case 126:return;case 263:return Me(te);case 231:return Fe(te);case 169:return ja(te);case 262:return fn(te);case 219:return Vt(te);case 218:return yn(te);case 260:return Tn(te);case 80:return Ee(te);case 261:return ke(te);case 255:return fe(te);case 269:return Ne(te);case 241:return Oe(te,!1);case 252:case 251:return Ce(te);case 256:return yi(te);case 246:case 247:return Vr(te,void 0);case 248:return Eo(te,void 0);case 249:return Ci(te,void 0);case 250:return Kr(te,void 0);case 244:return Lt(te);case 210:return Fo(te);case 299:return Ni(te);case 304:return Uc(te);case 167:return js(te);case 209:return Ts(te);case 213:return Hc(te);case 214:return lm(te);case 217:return w(te,lt);case 226:return ae(te,lt);case 361:return J(te,lt);case 15:case 16:case 17:case 18:return na(te);case 11:return $l(te);case 9:return vc(te);case 215:return cl(te);case 228:return gl(te);case 229:return gc(te);case 230:return Qo(te);case 108:return Ql(te,!1);case 110:return Le(te);case 236:return qc(te);case 174:return $o(te);case 177:case 178:return El(te);case 243:return Ge(te);case 253:return ve(te);case 222:return He(te);default:return An(te,ne,e)}}function oe(te){let lt=K(8064,64),Wt=[],jt=[];i();let W=t.copyPrologue(te.statements,Wt,!1,ne);return Jr(jt,Bn(te.statements,ne,Ki,W)),R&&jt.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(R))),t.mergeLexicalEnvironment(Wt,s()),le(Wt,te),Z(lt,0,0),t.updateSourceFile(te,dt(t.createNodeArray(xo(Wt,jt)),te.statements))}function fe(te){if(N!==void 0){let lt=N.allowedNonLabeledJumps;N.allowedNonLabeledJumps|=2;let Wt=An(te,ne,e);return N.allowedNonLabeledJumps=lt,Wt}return An(te,ne,e)}function Ne(te){let lt=K(7104,0),Wt=An(te,ne,e);return Z(lt,0,0),Wt}function me(te){return Pr(t.createReturnStatement(ie()),te)}function ie(){return t.createUniqueName("_this",48)}function ve(te){return N?(N.nonLocalJumps|=8,V(te)&&(te=me(te)),t.createReturnStatement(t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("value"),te.expression?C.checkDefined(rt(te.expression,ne,bt)):t.createVoidZero())]))):V(te)?me(te):An(te,ne,e)}function Le(te){return I|=65536,I&2&&!(I&16384)&&(I|=131072),N?I&2?(N.containsLexicalThis=!0,te):N.thisName||(N.thisName=t.createUniqueName("this")):te}function He(te){return An(te,he,e)}function Ee(te){return N&&p.isArgumentsLocalBinding(te)?N.argumentsName||(N.argumentsName=t.createUniqueName("arguments")):te.flags&256?Pr(dt(t.createIdentifier(Hi(te.escapedText)),te),te):te}function Ce(te){if(N){let lt=te.kind===252?2:4;if(!(te.label&&N.labels&&N.labels.get(Sr(te.label))||!te.label&&N.allowedNonLabeledJumps<)){let jt,W=te.label;W?te.kind===252?(jt=`break-${W.escapedText}`,ee(N,!0,Sr(W),jt)):(jt=`continue-${W.escapedText}`,ee(N,!1,Sr(W),jt)):te.kind===252?(N.nonLocalJumps|=2,jt="break"):(N.nonLocalJumps|=4,jt="continue");let Ae=t.createStringLiteral(jt);if(N.loopOutParameters.length){let st=N.loopOutParameters,Ht;for(let rr=0;rrVe(lt.name)&&!lt.initializer)}function gt(te){if(gS(te))return!0;if(!(te.transformFlags&134217728))return!1;switch(te.kind){case 219:case 218:case 262:case 176:case 175:return!1;case 177:case 178:case 174:case 172:{let lt=te;return Za(lt.name)?!!Ho(lt.name,gt):!1}}return!!Ho(te,gt)}function nn(te,lt,Wt,jt){let W=!!Wt&&Xl(Wt.expression).kind!==106;if(!te)return yt(lt,W);let Ae=[],st=[];o();let Ht=t.copyStandardPrologue(te.body.statements,Ae,0);(jt||gt(te.body))&&(I|=8192),Jr(st,Bn(te.body.statements,ne,Ki,Ht));let rr=W||I&8192;wn(Ae,te),Nt(Ae,te,jt),pt(Ae,te),rr?We(Ae,te,No()):le(Ae,te),t.mergeLexicalEnvironment(Ae,s()),rr&&!ro(te.body)&&st.push(t.createReturnStatement(ie()));let si=t.createBlock(dt(t.createNodeArray([...Ae,...st]),te.body.statements),!0);return dt(si,te.body),bi(si,te.body,jt)}function rn(te){return ol(te)&&Sr(te)==="_this"}function Nn(te){return ol(te)&&Sr(te)==="_super"}function Xn(te){return Ml(te)&&te.declarationList.declarations.length===1&&_n(te.declarationList.declarations[0])}function _n(te){return Oi(te)&&rn(te.name)&&!!te.initializer}function Qt(te){return Mc(te,!0)&&rn(te.left)}function Yt(te){return la(te)&&zr(te.expression)&&Nn(te.expression.expression)&&Ve(te.expression.name)&&(Sr(te.expression.name)==="call"||Sr(te.expression.name)==="apply")&&te.arguments.length>=1&&te.arguments[0].kind===110}function vi(te){return _r(te)&&te.operatorToken.kind===57&&te.right.kind===110&&Yt(te.left)}function ho(te){return _r(te)&&te.operatorToken.kind===56&&_r(te.left)&&te.left.operatorToken.kind===38&&Nn(te.left.left)&&te.left.right.kind===106&&Yt(te.right)&&Sr(te.right.expression.name)==="apply"}function ki(te){return _r(te)&&te.operatorToken.kind===57&&te.right.kind===110&&ho(te.left)}function Ro(te){return Qt(te)&&vi(te.right)}function nr(te){return Qt(te)&&ki(te.right)}function qr(te){return Yt(te)||vi(te)||Ro(te)||ho(te)||ki(te)||nr(te)}function xr(te){for(let lt=0;lt0;jt--){let W=te.statements[jt];if(Rm(W)&&W.expression&&rn(W.expression)){let Ae=te.statements[jt-1],st;if(eu(Ae)&&Ro(Xl(Ae.expression)))st=Ae.expression;else if(Wt&&Xn(Ae)){let si=Ae.declarationList.declarations[0];qr(Xl(si.initializer))&&(st=t.createAssignment(ie(),si.initializer))}if(!st)break;let Ht=t.createReturnStatement(st);Pr(Ht,Ae),dt(Ht,Ae);let rr=t.createNodeArray([...te.statements.slice(0,jt-1),Ht,...te.statements.slice(jt+1)]);return dt(rr,te.statements),t.updateBlock(te,rr)}}return te}function tt(te){if(Xn(te)){if(te.declarationList.declarations[0].initializer.kind===110)return}else if(Qt(te))return t.createPartiallyEmittedExpression(te.right,te);switch(te.kind){case 219:case 218:case 262:case 176:case 175:return te;case 177:case 178:case 174:case 172:{let lt=te;return Za(lt.name)?t.replacePropertyName(lt,An(lt.name,tt,void 0)):te}}return An(te,tt,void 0)}function zt(te,lt){if(lt.transformFlags&16384||I&65536||I&131072)return te;for(let Wt of lt.statements)if(Wt.transformFlags&134217728&&!Q5(Wt))return te;return t.updateBlock(te,Bn(te.statements,tt,Ki))}function Rn(te){if(Yt(te)&&te.arguments.length===2&&Ve(te.arguments[1])&&Sr(te.arguments[1])==="arguments")return t.createLogicalAnd(t.createStrictInequality(Bl(),t.createNull()),te);switch(te.kind){case 219:case 218:case 262:case 176:case 175:return te;case 177:case 178:case 174:case 172:{let lt=te;return Za(lt.name)?t.replacePropertyName(lt,An(lt.name,Rn,void 0)):te}}return An(te,Rn,void 0)}function ui(te){return t.updateBlock(te,Bn(te.statements,Rn,Ki))}function bi(te,lt,Wt){let jt=te;return te=xr(te),te=ln(te,lt),te!==jt&&(te=zt(te,lt)),Wt&&(te=ui(te)),te}function ro(te){if(te.kind===253)return!0;if(te.kind===245){let lt=te;if(lt.elseStatement)return ro(lt.thenStatement)&&ro(lt.elseStatement)}else if(te.kind===241){let lt=Zs(te.statements);if(lt&&ro(lt))return!0}return!1}function No(){return fr(t.createThis(),8)}function _a(){return t.createLogicalOr(t.createLogicalAnd(t.createStrictInequality(Bl(),t.createNull()),t.createFunctionApplyCall(Bl(),No(),t.createIdentifier("arguments"))),No())}function ja(te){if(!te.dotDotDotToken)return ta(te.name)?Pr(dt(t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(te),void 0,void 0,void 0),te),te):te.initializer?Pr(dt(t.createParameterDeclaration(void 0,void 0,te.name,void 0,void 0,void 0),te),te):te}function En(te){return te.initializer!==void 0||ta(te.name)}function wn(te,lt){if(!Et(lt.parameters,En))return!1;let Wt=!1;for(let jt of lt.parameters){let{name:W,initializer:Ae,dotDotDotToken:st}=jt;st||(ta(W)?Wt=Ue(te,jt,W,Ae)||Wt:Ae&&(mt(te,jt,W,Ae),Wt=!0))}return Wt}function Ue(te,lt,Wt,jt){return Wt.elements.length>0?(mS(te,fr(t.createVariableStatement(void 0,t.createVariableDeclarationList(iE(lt,ne,e,0,t.getGeneratedNameForNode(lt)))),2097152)),!0):jt?(mS(te,fr(t.createExpressionStatement(t.createAssignment(t.getGeneratedNameForNode(lt),C.checkDefined(rt(jt,ne,bt)))),2097152)),!0):!1}function mt(te,lt,Wt,jt){jt=C.checkDefined(rt(jt,ne,bt));let W=t.createIfStatement(t.createTypeCheck(t.cloneNode(Wt),"undefined"),fr(dt(t.createBlock([t.createExpressionStatement(fr(dt(t.createAssignment(fr(qa(dt(t.cloneNode(Wt),Wt),Wt.parent),96),fr(jt,96|Va(jt)|3072)),lt),3072))]),lt),3905));Ku(W),dt(W,lt),fr(W,2101056),mS(te,W)}function ft(te,lt){return!!(te&&te.dotDotDotToken&&!lt)}function Nt(te,lt,Wt){let jt=[],W=Zs(lt.parameters);if(!ft(W,Wt))return!1;let Ae=W.name.kind===80?qa(dt(t.cloneNode(W.name),W.name),W.name.parent):t.createTempVariable(void 0);fr(Ae,96);let st=W.name.kind===80?t.cloneNode(W.name):Ae,Ht=lt.parameters.length-1,rr=t.createLoopVariable();jt.push(fr(dt(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Ae,void 0,void 0,t.createArrayLiteralExpression([]))])),W),2097152));let si=t.createForStatement(dt(t.createVariableDeclarationList([t.createVariableDeclaration(rr,void 0,void 0,t.createNumericLiteral(Ht))]),W),dt(t.createLessThan(rr,t.createPropertyAccessExpression(t.createIdentifier("arguments"),"length")),W),dt(t.createPostfixIncrement(rr),W),t.createBlock([Ku(dt(t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(st,Ht===0?rr:t.createSubtract(rr,t.createNumericLiteral(Ht))),t.createElementAccessExpression(t.createIdentifier("arguments"),rr))),W))]));return fr(si,2097152),Ku(si),jt.push(si),W.name.kind!==80&&jt.push(fr(dt(t.createVariableStatement(void 0,t.createVariableDeclarationList(iE(W,ne,e,0,st))),W),2097152)),sj(te,jt),!0}function le(te,lt){return I&131072&<.kind!==219?(We(te,lt,t.createThis()),!0):!1}function We(te,lt,Wt){Dd();let jt=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(ie(),void 0,void 0,Wt)]));fr(jt,2100224),Ca(jt,lt),mS(te,jt)}function pt(te,lt){if(I&32768){let Wt;switch(lt.kind){case 219:return te;case 174:case 177:case 178:Wt=t.createVoidZero();break;case 176:Wt=t.createPropertyAccessExpression(fr(t.createThis(),8),"constructor");break;case 262:case 218:Wt=t.createConditionalExpression(t.createLogicalAnd(fr(t.createThis(),8),t.createBinaryExpression(fr(t.createThis(),8),104,t.getLocalName(lt))),void 0,t.createPropertyAccessExpression(fr(t.createThis(),8),"constructor"),void 0,t.createVoidZero());break;default:return C.failBadSyntaxKind(lt)}let jt=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_newTarget",48),void 0,void 0,Wt)]));fr(jt,2100224),mS(te,jt)}return te}function j(te,lt){for(let Wt of lt.members)switch(Wt.kind){case 240:te.push(ot(Wt));break;case 174:te.push(xt(fg(lt,Wt),Wt,lt));break;case 177:case 178:let jt=RS(lt.members,Wt);Wt===jt.firstAccessor&&te.push(Ye(fg(lt,Wt),jt,lt));break;case 176:case 175:break;default:C.failBadSyntaxKind(Wt,b&&b.fileName);break}}function ot(te){return dt(t.createEmptyStatement(),te)}function xt(te,lt,Wt){let jt=L_(lt),W=jv(lt),Ae=mn(lt,lt,void 0,Wt),st=rt(lt.name,ne,ic);C.assert(st);let Ht;if(!Xi(st)&&pN(e.getCompilerOptions())){let si=Za(st)?st.expression:Ve(st)?t.createStringLiteral(Hi(st.escapedText)):st;Ht=t.createObjectDefinePropertyCall(te,si,t.createPropertyDescriptor({value:Ae,enumerable:!1,writable:!0,configurable:!0}))}else{let si=jS(t,te,st,lt.name);Ht=t.createAssignment(si,Ae)}fr(Ae,3072),Ca(Ae,W);let rr=dt(t.createExpressionStatement(Ht),lt);return Pr(rr,lt),oc(rr,jt),fr(rr,96),rr}function Ye(te,lt,Wt){let jt=t.createExpressionStatement(ht(te,lt,Wt,!1));return fr(jt,3072),Ca(jt,jv(lt.firstAccessor)),jt}function ht(te,{firstAccessor:lt,getAccessor:Wt,setAccessor:jt},W,Ae){let st=qa(dt(t.cloneNode(te),te),te.parent);fr(st,3136),Ca(st,lt.name);let Ht=rt(lt.name,ne,ic);if(C.assert(Ht),Xi(Ht))return C.failBadSyntaxKind(Ht,"Encountered unhandled private identifier while transforming ES2015.");let rr=wH(t,Ht);fr(rr,3104),Ca(rr,lt.name);let si=[];if(Wt){let so=mn(Wt,void 0,void 0,W);Ca(so,jv(Wt)),fr(so,1024);let Oa=t.createPropertyAssignment("get",so);oc(Oa,L_(Wt)),si.push(Oa)}if(jt){let so=mn(jt,void 0,void 0,W);Ca(so,jv(jt)),fr(so,1024);let Oa=t.createPropertyAssignment("set",so);oc(Oa,L_(jt)),si.push(Oa)}si.push(t.createPropertyAssignment("enumerable",Wt||jt?t.createFalse():t.createTrue()),t.createPropertyAssignment("configurable",t.createTrue()));let $r=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[st,rr,t.createObjectLiteralExpression(si,!0)]);return Ae&&Ku($r),$r}function Vt(te){te.transformFlags&16384&&!(I&16384)&&(I|=131072);let lt=N;N=void 0;let Wt=K(15232,66),jt=t.createFunctionExpression(void 0,void 0,void 0,void 0,xl(te.parameters,ne,e),void 0,q(te));return dt(jt,te),Pr(jt,te),fr(jt,16),Z(Wt,0,0),N=lt,jt}function yn(te){let lt=Va(te)&524288?K(32662,69):K(32670,65),Wt=N;N=void 0;let jt=xl(te.parameters,ne,e),W=q(te),Ae=I&32768?t.getLocalName(te):te.name;return Z(lt,229376,0),N=Wt,t.updateFunctionExpression(te,void 0,te.asteriskToken,Ae,void 0,jt,void 0,W)}function fn(te){let lt=N;N=void 0;let Wt=K(32670,65),jt=xl(te.parameters,ne,e),W=q(te),Ae=I&32768?t.getLocalName(te):te.name;return Z(Wt,229376,0),N=lt,t.updateFunctionDeclaration(te,Bn(te.modifiers,ne,Ia),te.asteriskToken,Ae,void 0,jt,void 0,W)}function mn(te,lt,Wt,jt){let W=N;N=void 0;let Ae=jt&&pi(jt)&&!sa(te)?K(32670,73):K(32670,65),st=xl(te.parameters,ne,e),Ht=q(te);return I&32768&&!Wt&&(te.kind===262||te.kind===218)&&(Wt=t.getGeneratedNameForNode(te)),Z(Ae,229376,0),N=W,Pr(dt(t.createFunctionExpression(void 0,te.asteriskToken,Wt,void 0,st,void 0,Ht),lt),te)}function q(te){let lt=!1,Wt=!1,jt,W,Ae=[],st=[],Ht=te.body,rr;if(o(),Xo(Ht)&&(rr=t.copyStandardPrologue(Ht.statements,Ae,0,!1),rr=t.copyCustomPrologue(Ht.statements,st,rr,ne,H6),rr=t.copyCustomPrologue(Ht.statements,st,rr,ne,q6)),lt=wn(st,te)||lt,lt=Nt(st,te,!1)||lt,Xo(Ht))rr=t.copyCustomPrologue(Ht.statements,st,rr,ne),jt=Ht.statements,Jr(st,Bn(Ht.statements,ne,Ki,rr)),!lt&&Ht.multiLine&&(lt=!0);else{C.assert(te.kind===219),jt=P3(Ht,-1);let $r=te.equalsGreaterThanToken;!Xs($r)&&!Xs(Ht)&&(ck($r,Ht,b)?Wt=!0:lt=!0);let so=rt(Ht,ne,bt),Oa=t.createReturnStatement(so);dt(Oa,Ht),uae(Oa,Ht),fr(Oa,2880),st.push(Oa),W=Ht}if(t.mergeLexicalEnvironment(Ae,s()),pt(Ae,te),le(Ae,te),Et(Ae)&&(lt=!0),st.unshift(...Ae),Xo(Ht)&&Jm(st,Ht.statements))return Ht;let si=t.createBlock(dt(t.createNodeArray(st),jt),lt);return dt(si,te.body),!lt&&Wt&&fr(si,1),W&&cae(si,20,W),Pr(si,te.body),si}function Oe(te,lt){if(lt)return An(te,ne,e);let Wt=I&256?K(7104,512):K(6976,128),jt=An(te,ne,e);return Z(Wt,0,0),jt}function Lt(te){return An(te,he,e)}function w(te,lt){return An(te,lt?he:ne,e)}function ae(te,lt){return Bv(te)?JS(te,ne,e,0,!lt):te.operatorToken.kind===28?t.updateBinaryExpression(te,C.checkDefined(rt(te.left,he,bt)),te.operatorToken,C.checkDefined(rt(te.right,lt?he:ne,bt))):An(te,ne,e)}function J(te,lt){if(lt)return An(te,he,e);let Wt;for(let W=0;Wrr.name)),Ht=jt?t.createYieldExpression(t.createToken(42),fr(st,8388608)):st;if(Ae)W.push(t.createExpressionStatement(Ht)),Ms(lt.loopOutParameters,1,0,W);else{let rr=t.createUniqueName("state"),si=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(rr,void 0,void 0,Ht)]));if(W.push(si),Ms(lt.loopOutParameters,1,0,W),lt.nonLocalJumps&8){let $r;Wt?(Wt.nonLocalJumps|=8,$r=t.createReturnStatement(rr)):$r=t.createReturnStatement(t.createPropertyAccessExpression(rr,"value")),W.push(t.createIfStatement(t.createTypeCheck(rr,"object"),$r))}if(lt.nonLocalJumps&2&&W.push(t.createIfStatement(t.createStrictEquality(rr,t.createStringLiteral("break")),t.createBreakStatement())),lt.labeledNonLocalBreaks||lt.labeledNonLocalContinues){let $r=[];we(lt.labeledNonLocalBreaks,!0,rr,Wt,$r),we(lt.labeledNonLocalContinues,!1,rr,Wt,$r),W.push(t.createSwitchStatement(rr,t.createCaseBlock($r)))}}return W}function ee(te,lt,Wt,jt){lt?(te.labeledNonLocalBreaks||(te.labeledNonLocalBreaks=new Map),te.labeledNonLocalBreaks.set(Wt,jt)):(te.labeledNonLocalContinues||(te.labeledNonLocalContinues=new Map),te.labeledNonLocalContinues.set(Wt,jt))}function we(te,lt,Wt,jt,W){te&&te.forEach((Ae,st)=>{let Ht=[];if(!jt||jt.labels&&jt.labels.get(st)){let rr=t.createIdentifier(st);Ht.push(lt?t.createBreakStatement(rr):t.createContinueStatement(rr))}else ee(jt,lt,st,Ae),Ht.push(t.createReturnStatement(Wt));W.push(t.createCaseClause(t.createStringLiteral(Ae),Ht))})}function St(te,lt,Wt,jt,W){let Ae=lt.name;if(ta(Ae))for(let st of Ae.elements)Vc(st)||St(te,st,Wt,jt,W);else{Wt.push(t.createParameterDeclaration(void 0,void 0,Ae));let st=p.getNodeCheckFlags(lt);if(st&65536||W){let Ht=t.createUniqueName("out_"+Sr(Ae)),rr=0;st&65536&&(rr|=1),FS(te)&&(te.initializer&&p.isBindingCapturedByNode(te.initializer,lt)&&(rr|=2),(te.condition&&p.isBindingCapturedByNode(te.condition,lt)||te.incrementor&&p.isBindingCapturedByNode(te.incrementor,lt))&&(rr|=1)),jt.push({flags:rr,originalName:Ae,outParamName:Ht})}}}function pn(te,lt,Wt,jt){let W=lt.properties,Ae=W.length;for(let st=jt;stMl(Vd)&&!!Ha(Vd.declarationList.declarations).initializer,jt=N;N=void 0;let W=Bn(lt.statements,ye,Ki);N=jt;let Ae=tr(W,Wt),st=tr(W,Vd=>!Wt(Vd)),rr=aa(Ha(Ae),Ml).declarationList.declarations[0],si=Xl(rr.initializer),$r=ai(si,Mc);!$r&&_r(si)&&si.operatorToken.kind===28&&($r=ai(si.left,Mc));let so=aa($r?Xl($r.right):si,la),Oa=aa(Xl(so.expression),ws),Fa=Oa.body.statements,wl=0,fu=-1,xc=[];if($r){let Vd=ai(Fa[wl],eu);Vd&&(xc.push(Vd),wl++),xc.push(Fa[wl]),wl++,xc.push(t.createExpressionStatement(t.createAssignment($r.left,aa(rr.name,Ve))))}for(;!Rm(Nv(Fa,fu));)fu--;Jr(xc,Fa,wl,fu),fu<-1&&Jr(xc,Fa,fu+1);let Ip=ai(Nv(Fa,fu),Rm);for(let Vd of st)Rm(Vd)&&Ip?.expression&&!Ve(Ip.expression)?xc.push(Ip):xc.push(Vd);return Jr(xc,Ae,1),t.restoreOuterExpressions(te.expression,t.restoreOuterExpressions(rr.initializer,t.restoreOuterExpressions($r&&$r.right,t.updateCallExpression(so,t.restoreOuterExpressions(so.expression,t.updateFunctionExpression(Oa,void 0,void 0,void 0,void 0,Oa.parameters,void 0,t.updateBlock(Oa.body,xc))),void 0,so.arguments))))}function Oc(te,lt){if(te.transformFlags&32768||te.expression.kind===108||Od(Xl(te.expression))){let{target:Wt,thisArg:jt}=t.createCallBinding(te.expression,l);te.expression.kind===108&&fr(jt,8);let W;if(te.transformFlags&32768?W=t.createFunctionApplyCall(C.checkDefined(rt(Wt,$,bt)),te.expression.kind===108?jt:C.checkDefined(rt(jt,ne,bt)),md(te.arguments,!0,!1,!1)):W=dt(t.createFunctionCallCall(C.checkDefined(rt(Wt,$,bt)),te.expression.kind===108?jt:C.checkDefined(rt(jt,ne,bt)),Bn(te.arguments,ne,bt)),te),te.expression.kind===108){let Ae=t.createLogicalOr(W,No());W=lt?t.createAssignment(ie(),Ae):Ae}return Pr(W,te)}return gS(te)&&(I|=131072),An(te,ne,e)}function lm(te){if(Et(te.arguments,Zm)){let{target:lt,thisArg:Wt}=t.createCallBinding(t.createPropertyAccessExpression(te.expression,"bind"),l);return t.createNewExpression(t.createFunctionApplyCall(C.checkDefined(rt(lt,ne,bt)),Wt,md(t.createNodeArray([t.createVoidZero(),...te.arguments]),!0,!1,!1)),void 0,[])}return An(te,ne,e)}function md(te,lt,Wt,jt){let W=te.length,Ae=ts(YB(te,Pe,(si,$r,so,Oa)=>$r(si,Wt,jt&&Oa===W)));if(Ae.length===1){let si=Ae[0];if(lt&&!u.downlevelIteration||MU(si.expression)||_N(si.expression,"___spreadArray"))return si.expression}let st=r(),Ht=Ae[0].kind!==0,rr=Ht?t.createArrayLiteralExpression():Ae[0].expression;for(let si=Ht?0:1;si0&&jt.push(t.createStringLiteral(Wt.literal.text)),lt=t.createCallExpression(t.createPropertyAccessExpression(lt,"concat"),void 0,jt)}return dt(lt,te)}function Bl(){return t.createUniqueName("_super",48)}function Ql(te,lt){let Wt=I&8&&!lt?t.createPropertyAccessExpression(Pr(Bl(),te),"prototype"):Bl();return Pr(Wt,te),oc(Wt,te),Ca(Wt,te),Wt}function qc(te){return te.keywordToken===105&&te.name.escapedText==="target"?(I|=32768,t.createUniqueName("_newTarget",48)):te}function cf(te,lt,Wt){if(O&1&&ea(lt)){let jt=K(32670,Va(lt)&16?81:65);m(te,lt,Wt),Z(jt,0,0);return}m(te,lt,Wt)}function Bd(){O&2||(O|=2,e.enableSubstitution(80))}function Dd(){O&1||(O|=1,e.enableSubstitution(110),e.enableEmitNotification(176),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(219),e.enableEmitNotification(218),e.enableEmitNotification(262))}function Lf(te,lt){return lt=g(te,lt),te===1?Xg(lt):Ve(lt)?j_(lt):lt}function j_(te){if(O&2&&!OH(te)){let lt=Lo(te,Ve);if(lt&&Dh(lt))return dt(t.getGeneratedNameForNode(lt),te)}return te}function Dh(te){switch(te.parent.kind){case 208:case 263:case 266:case 260:return te.parent.name===te&&p.isDeclarationWithCollidingName(te.parent)}return!1}function Xg(te){switch(te.kind){case 80:return zu(te);case 110:return Ap(te)}return te}function zu(te){if(O&2&&!OH(te)){let lt=p.getReferencedDeclarationWithCollidingName(te);if(lt&&!(pi(lt)&&Yg(lt,te)))return dt(t.getGeneratedNameForNode(Oo(lt)),te)}return te}function Yg(te,lt){let Wt=Lo(lt);if(!Wt||Wt===te||Wt.end<=te.pos||Wt.pos>=te.end)return!1;let jt=_h(te);for(;Wt;){if(Wt===jt||Wt===te)return!1;if($c(Wt)&&Wt.parent===te)return!0;Wt=Wt.parent}return!1}function Ap(te){return O&1&&I&16?dt(ie(),te):te}function fg(te,lt){return sa(lt)?t.getInternalName(te):t.createPropertyAccessExpression(t.getInternalName(te),"prototype")}function Gd(te,lt){if(!te||!lt||Et(te.parameters))return!1;let Wt=Xc(te.body.statements);if(!Wt||!Xs(Wt)||Wt.kind!==244)return!1;let jt=Wt.expression;if(!Xs(jt)||jt.kind!==213)return!1;let W=jt.expression;if(!Xs(W)||W.kind!==108)return!1;let Ae=ah(jt.arguments);if(!Ae||!Xs(Ae)||Ae.kind!==230)return!1;let st=Ae.expression;return Ve(st)&&st.escapedText==="arguments"}}var ZVe=A({"src/compiler/transformers/es2015.ts"(){"use strict";ia()}});function Jle(e){let{factory:t}=e,r=e.getCompilerOptions(),i,o;(r.jsx===1||r.jsx===3)&&(i=e.onEmitNode,e.onEmitNode=u,e.enableEmitNotification(286),e.enableEmitNotification(287),e.enableEmitNotification(285),o=[]);let s=e.onSubstituteNode;return e.onSubstituteNode=p,e.enableSubstitution(211),e.enableSubstitution(303),Nm(e,l);function l(T){return T}function u(T,I,R){switch(I.kind){case 286:case 287:case 285:let M=I.tagName;o[Ou(M)]=!0;break}i(T,I,R)}function p(T,I){return I.id&&o&&o[I.id]?s(T,I):(I=s(T,I),zr(I)?g(I):_c(I)?m(I):I)}function g(T){if(Xi(T.name))return T;let I=b(T.name);return I?dt(t.createElementAccessExpression(T.expression,I),T):T}function m(T){let I=Ve(T.name)&&b(T.name);return I?t.updatePropertyAssignment(T,I,T.initializer):T}function b(T){let I=n0(T);if(I!==void 0&&I>=83&&I<=118)return dt(t.createStringLiteralFromNode(T),T)}}var eje=A({"src/compiler/transformers/es5.ts"(){"use strict";ia()}});function tje(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}function Kle(e){let{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistFunctionDeclaration:s,hoistVariableDeclaration:l}=e,u=e.getCompilerOptions(),p=as(u),g=e.getEmitResolver(),m=e.onSubstituteNode;e.onSubstituteNode=Lt;let b,T,I,R,M,N,O,H,K,Z,V=1,ue,G,ne,he,ye=0,$=0,Y,oe,fe,Ne,me,ie,ve,Le;return Nm(e,He);function He(Pe){if(Pe.isDeclarationFile||!(Pe.transformFlags&2048))return Pe;let wt=An(Pe,Ee,e);return Vg(wt,e.readEmitHelpers()),wt}function Ee(Pe){let wt=Pe.transformFlags;return R?Ce(Pe):I?Me(Pe):zs(Pe)&&Pe.asteriskToken?At(Pe):wt&2048?An(Pe,Ee,e):Pe}function Ce(Pe){switch(Pe.kind){case 246:return _a(Pe);case 247:return En(Pe);case 255:return ht(Pe);case 256:return yn(Pe);default:return Me(Pe)}}function Me(Pe){switch(Pe.kind){case 262:return Se(Pe);case 218:return je(Pe);case 177:case 178:return at(Pe);case 243:return yt(Pe);case 248:return Ue(Pe);case 249:return ft(Pe);case 252:return pt(Pe);case 251:return le(Pe);case 253:return ot(Pe);default:return Pe.transformFlags&1048576?Fe(Pe):Pe.transformFlags&4196352?An(Pe,Ee,e):Pe}}function Fe(Pe){switch(Pe.kind){case 226:return Qe(Pe);case 361:return Nn(Pe);case 227:return _n(Pe);case 229:return Qt(Pe);case 209:return Yt(Pe);case 210:return ho(Pe);case 212:return ki(Pe);case 213:return Ro(Pe);case 214:return nr(Pe);default:return An(Pe,Ee,e)}}function At(Pe){switch(Pe.kind){case 262:return Se(Pe);case 218:return je(Pe);default:return C.failBadSyntaxKind(Pe)}}function Se(Pe){if(Pe.asteriskToken)Pe=Pr(dt(t.createFunctionDeclaration(Pe.modifiers,void 0,Pe.name,void 0,xl(Pe.parameters,Ee,e),void 0,Bt(Pe.body)),Pe),Pe);else{let wt=I,qn=R;I=!1,R=!1,Pe=An(Pe,Ee,e),I=wt,R=qn}if(I){s(Pe);return}else return Pe}function je(Pe){if(Pe.asteriskToken)Pe=Pr(dt(t.createFunctionExpression(void 0,void 0,Pe.name,void 0,xl(Pe.parameters,Ee,e),void 0,Bt(Pe.body)),Pe),Pe);else{let wt=I,qn=R;I=!1,R=!1,Pe=An(Pe,Ee,e),I=wt,R=qn}return Pe}function at(Pe){let wt=I,qn=R;return I=!1,R=!1,Pe=An(Pe,Ee,e),I=wt,R=qn,Pe}function Bt(Pe){let wt=[],qn=I,So=R,Qo=M,na=N,$l=O,vc=H,cl=K,gl=Z,Bl=V,Ql=ue,qc=G,cf=ne,Bd=he;I=!0,R=!1,M=void 0,N=void 0,O=void 0,H=void 0,K=void 0,Z=void 0,V=1,ue=void 0,G=void 0,ne=void 0,he=t.createTempVariable(void 0),i();let Dd=t.copyPrologue(Pe.statements,wt,!1,Ee);qr(Pe.statements,Dd);let Lf=ee();return Qh(wt,o()),wt.push(t.createReturnStatement(Lf)),I=qn,R=So,M=Qo,N=na,O=$l,H=vc,K=cl,Z=gl,V=Bl,ue=Ql,G=qc,ne=cf,he=Bd,dt(t.createBlock(wt,Pe.multiLine),Pe)}function yt(Pe){if(Pe.transformFlags&1048576){ui(Pe.declarationList);return}else{if(Va(Pe)&2097152)return Pe;for(let qn of Pe.declarationList.declarations)l(qn.name);let wt=qC(Pe.declarationList);return wt.length===0?void 0:Ca(t.createExpressionStatement(t.inlineExpressions(Ft(wt,bi))),Pe)}}function Qe(Pe){let wt=Kj(Pe);switch(wt){case 0:return nn(Pe);case 1:return gt(Pe);default:return C.assertNever(wt)}}function gt(Pe){let{left:wt,right:qn}=Pe;if(q(qn)){let So;switch(wt.kind){case 211:So=t.updatePropertyAccessExpression(wt,J(C.checkDefined(rt(wt.expression,Ee,Zd))),wt.name);break;case 212:So=t.updateElementAccessExpression(wt,J(C.checkDefined(rt(wt.expression,Ee,Zd))),J(C.checkDefined(rt(wt.argumentExpression,Ee,bt))));break;default:So=C.checkDefined(rt(wt,Ee,bt));break}let Qo=Pe.operatorToken.kind;return GN(Qo)?dt(t.createAssignment(So,dt(t.createBinaryExpression(J(So),VN(Qo),C.checkDefined(rt(qn,Ee,bt))),Pe)),Pe):t.updateBinaryExpression(Pe,So,Pe.operatorToken,C.checkDefined(rt(qn,Ee,bt)))}return An(Pe,Ee,e)}function nn(Pe){return q(Pe.right)?aoe(Pe.operatorToken.kind)?Xn(Pe):Pe.operatorToken.kind===28?rn(Pe):t.updateBinaryExpression(Pe,J(C.checkDefined(rt(Pe.left,Ee,bt))),Pe.operatorToken,C.checkDefined(rt(Pe.right,Ee,bt))):An(Pe,Ee,e)}function rn(Pe){let wt=[];return qn(Pe.left),qn(Pe.right),t.inlineExpressions(wt);function qn(So){_r(So)&&So.operatorToken.kind===28?(qn(So.left),qn(So.right)):(q(So)&&wt.length>0&&(de(1,[t.createExpressionStatement(t.inlineExpressions(wt))]),wt=[]),wt.push(C.checkDefined(rt(So,Ee,bt))))}}function Nn(Pe){let wt=[];for(let qn of Pe.elements)_r(qn)&&qn.operatorToken.kind===28?wt.push(rn(qn)):(q(qn)&&wt.length>0&&(de(1,[t.createExpressionStatement(t.inlineExpressions(wt))]),wt=[]),wt.push(C.checkDefined(rt(qn,Ee,bt))));return t.inlineExpressions(wt)}function Xn(Pe){let wt=Ge(),qn=pe();return ll(qn,C.checkDefined(rt(Pe.left,Ee,bt)),Pe.left),Pe.operatorToken.kind===56?Vs(wt,qn,Pe.left):on(wt,qn,Pe.left),ll(qn,C.checkDefined(rt(Pe.right,Ee,bt)),Pe.right),ke(wt),qn}function _n(Pe){if(q(Pe.whenTrue)||q(Pe.whenFalse)){let wt=Ge(),qn=Ge(),So=pe();return Vs(wt,C.checkDefined(rt(Pe.condition,Ee,bt)),Pe.condition),ll(So,C.checkDefined(rt(Pe.whenTrue,Ee,bt)),Pe.whenTrue),Wo(qn),ke(wt),ll(So,C.checkDefined(rt(Pe.whenFalse,Ee,bt)),Pe.whenFalse),ke(qn),So}return An(Pe,Ee,e)}function Qt(Pe){let wt=Ge(),qn=rt(Pe.expression,Ee,bt);if(Pe.asteriskToken){let So=Va(Pe.expression)&8388608?qn:dt(r().createValuesHelper(qn),Pe);nu(So,Pe)}else pu(qn,Pe);return ke(wt),Mf(Pe)}function Yt(Pe){return vi(Pe.elements,void 0,void 0,Pe.multiLine)}function vi(Pe,wt,qn,So){let Qo=Oe(Pe),na;if(Qo>0){na=pe();let cl=Bn(Pe,Ee,bt,0,Qo);ll(na,t.createArrayLiteralExpression(wt?[wt,...cl]:cl)),wt=void 0}let $l=nd(Pe,vc,[],Qo);return na?t.createArrayConcatCall(na,[t.createArrayLiteralExpression($l,So)]):dt(t.createArrayLiteralExpression(wt?[wt,...$l]:$l,So),qn);function vc(cl,gl){if(q(gl)&&cl.length>0){let Bl=na!==void 0;na||(na=pe()),ll(na,Bl?t.createArrayConcatCall(na,[t.createArrayLiteralExpression(cl,So)]):t.createArrayLiteralExpression(wt?[wt,...cl]:cl,So)),wt=void 0,cl=[]}return cl.push(C.checkDefined(rt(gl,Ee,bt))),cl}}function ho(Pe){let wt=Pe.properties,qn=Pe.multiLine,So=Oe(wt),Qo=pe();ll(Qo,t.createObjectLiteralExpression(Bn(wt,Ee,wg,0,So),qn));let na=nd(wt,$l,[],So);return na.push(qn?Ku(qa(dt(t.cloneNode(Qo),Qo),Qo.parent)):Qo),t.inlineExpressions(na);function $l(vc,cl){q(cl)&&vc.length>0&&(Rl(t.createExpressionStatement(t.inlineExpressions(vc))),vc=[]);let gl=Kae(t,Pe,cl,Qo),Bl=rt(gl,Ee,bt);return Bl&&(qn&&Ku(Bl),vc.push(Bl)),vc}}function ki(Pe){return q(Pe.argumentExpression)?t.updateElementAccessExpression(Pe,J(C.checkDefined(rt(Pe.expression,Ee,Zd))),C.checkDefined(rt(Pe.argumentExpression,Ee,bt))):An(Pe,Ee,e)}function Ro(Pe){if(!Wp(Pe)&&Ke(Pe.arguments,q)){let{target:wt,thisArg:qn}=t.createCallBinding(Pe.expression,l,p,!0);return Pr(dt(t.createFunctionApplyCall(J(C.checkDefined(rt(wt,Ee,Zd))),qn,vi(Pe.arguments)),Pe),Pe)}return An(Pe,Ee,e)}function nr(Pe){if(Ke(Pe.arguments,q)){let{target:wt,thisArg:qn}=t.createCallBinding(t.createPropertyAccessExpression(Pe.expression,"bind"),l);return Pr(dt(t.createNewExpression(t.createFunctionApplyCall(J(C.checkDefined(rt(wt,Ee,bt))),qn,vi(Pe.arguments,t.createVoidZero())),void 0,[]),Pe),Pe)}return An(Pe,Ee,e)}function qr(Pe,wt=0){let qn=Pe.length;for(let So=wt;So0)break;Qo.push(bi($l))}Qo.length&&(Rl(t.createExpressionStatement(t.inlineExpressions(Qo))),So+=Qo.length,Qo=[])}}function bi(Pe){return Ca(t.createAssignment(Ca(t.cloneNode(Pe.name),Pe.name),C.checkDefined(rt(Pe.initializer,Ee,bt))),Pe)}function ro(Pe){if(q(Pe))if(q(Pe.thenStatement)||q(Pe.elseStatement)){let wt=Ge(),qn=Pe.elseStatement?Ge():void 0;Vs(Pe.elseStatement?qn:wt,C.checkDefined(rt(Pe.expression,Ee,bt)),Pe.expression),xr(Pe.thenStatement),Pe.elseStatement&&(Wo(wt),ke(qn),xr(Pe.elseStatement)),ke(wt)}else Rl(rt(Pe,Ee,Ki));else Rl(rt(Pe,Ee,Ki))}function No(Pe){if(q(Pe)){let wt=Ge(),qn=Ge();Mi(wt),ke(qn),xr(Pe.statement),ke(wt),on(qn,C.checkDefined(rt(Pe.expression,Ee,bt))),Ci()}else Rl(rt(Pe,Ee,Ki))}function _a(Pe){return R?(Eo(),Pe=An(Pe,Ee,e),Ci(),Pe):An(Pe,Ee,e)}function ja(Pe){if(q(Pe)){let wt=Ge(),qn=Mi(wt);ke(wt),Vs(qn,C.checkDefined(rt(Pe.expression,Ee,bt))),xr(Pe.statement),Wo(wt),Ci()}else Rl(rt(Pe,Ee,Ki))}function En(Pe){return R?(Eo(),Pe=An(Pe,Ee,e),Ci(),Pe):An(Pe,Ee,e)}function wn(Pe){if(q(Pe)){let wt=Ge(),qn=Ge(),So=Mi(qn);if(Pe.initializer){let Qo=Pe.initializer;jc(Qo)?ui(Qo):Rl(dt(t.createExpressionStatement(C.checkDefined(rt(Qo,Ee,bt))),Qo))}ke(wt),Pe.condition&&Vs(So,C.checkDefined(rt(Pe.condition,Ee,bt))),xr(Pe.statement),ke(qn),Pe.incrementor&&Rl(dt(t.createExpressionStatement(C.checkDefined(rt(Pe.incrementor,Ee,bt))),Pe.incrementor)),Wo(wt),Ci()}else Rl(rt(Pe,Ee,Ki))}function Ue(Pe){R&&Eo();let wt=Pe.initializer;if(wt&&jc(wt)){for(let So of wt.declarations)l(So.name);let qn=qC(wt);Pe=t.updateForStatement(Pe,qn.length>0?t.inlineExpressions(Ft(qn,bi)):void 0,rt(Pe.condition,Ee,bt),rt(Pe.incrementor,Ee,bt),Id(Pe.statement,Ee,e))}else Pe=An(Pe,Ee,e);return R&&Ci(),Pe}function mt(Pe){if(q(Pe)){let wt=pe(),qn=pe(),So=pe(),Qo=t.createLoopVariable(),na=Pe.initializer;l(Qo),ll(wt,C.checkDefined(rt(Pe.expression,Ee,bt))),ll(qn,t.createArrayLiteralExpression()),Rl(t.createForInStatement(So,wt,t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(qn,"push"),void 0,[So])))),ll(Qo,t.createNumericLiteral(0));let $l=Ge(),vc=Ge(),cl=Mi(vc);ke($l),Vs(cl,t.createLessThan(Qo,t.createPropertyAccessExpression(qn,"length"))),ll(So,t.createElementAccessExpression(qn,Qo)),Vs(vc,t.createBinaryExpression(So,103,wt));let gl;if(jc(na)){for(let Bl of na.declarations)l(Bl.name);gl=t.cloneNode(na.declarations[0].name)}else gl=C.checkDefined(rt(na,Ee,bt)),C.assert(Zd(gl));ll(gl,So),xr(Pe.statement),ke(vc),Rl(t.createExpressionStatement(t.createPostfixIncrement(Qo))),Wo($l),Ci()}else Rl(rt(Pe,Ee,Ki))}function ft(Pe){R&&Eo();let wt=Pe.initializer;if(jc(wt)){for(let qn of wt.declarations)l(qn.name);Pe=t.updateForInStatement(Pe,wt.declarations[0].name,C.checkDefined(rt(Pe.expression,Ee,bt)),C.checkDefined(rt(Pe.statement,Ee,Ki,t.liftToBlock)))}else Pe=An(Pe,Ee,e);return R&&Ci(),Pe}function Nt(Pe){let wt=pa(Pe.label?Sr(Pe.label):void 0);wt>0?Wo(wt,Pe):Rl(Pe)}function le(Pe){if(R){let wt=pa(Pe.label&&Sr(Pe.label));if(wt>0)return Pa(wt,Pe)}return An(Pe,Ee,e)}function We(Pe){let wt=yo(Pe.label?Sr(Pe.label):void 0);wt>0?Wo(wt,Pe):Rl(Pe)}function pt(Pe){if(R){let wt=yo(Pe.label&&Sr(Pe.label));if(wt>0)return Pa(wt,Pe)}return An(Pe,Ee,e)}function j(Pe){Tp(rt(Pe.expression,Ee,bt),Pe)}function ot(Pe){return fl(rt(Pe.expression,Ee,bt),Pe)}function xt(Pe){q(Pe)?(On(J(C.checkDefined(rt(Pe.expression,Ee,bt)))),xr(Pe.statement),Gn()):Rl(rt(Pe,Ee,Ki))}function Ye(Pe){if(q(Pe.caseBlock)){let wt=Pe.caseBlock,qn=wt.clauses.length,So=Po(),Qo=J(C.checkDefined(rt(Pe.expression,Ee,bt))),na=[],$l=-1;for(let gl=0;gl0)break;cl.push(t.createCaseClause(C.checkDefined(rt(Ql.expression,Ee,bt)),[Pa(na[Bl],Ql.expression)]))}else gl++}cl.length&&(Rl(t.createSwitchStatement(Qo,t.createCaseBlock(cl))),vc+=cl.length,cl=[]),gl>0&&(vc+=gl,gl=0)}$l>=0?Wo(na[$l]):Wo(So);for(let gl=0;gl=0;qn--){let So=H[qn];if(Gs(So)){if(So.labelText===Pe)return!0}else break}return!1}function yo(Pe){if(H)if(Pe)for(let wt=H.length-1;wt>=0;wt--){let qn=H[wt];if(Gs(qn)&&qn.labelText===Pe)return qn.breakLabel;if(ds(qn)&&uu(Pe,wt-1))return qn.breakLabel}else for(let wt=H.length-1;wt>=0;wt--){let qn=H[wt];if(ds(qn))return qn.breakLabel}return 0}function pa(Pe){if(H)if(Pe)for(let wt=H.length-1;wt>=0;wt--){let qn=H[wt];if(hl(qn)&&uu(Pe,wt-1))return qn.continueLabel}else for(let wt=H.length-1;wt>=0;wt--){let qn=H[wt];if(hl(qn))return qn.continueLabel}return 0}function du(Pe){if(Pe!==void 0&&Pe>0){Z===void 0&&(Z=[]);let wt=t.createNumericLiteral(Number.MAX_SAFE_INTEGER);return Z[Pe]===void 0?Z[Pe]=[wt]:Z[Pe].push(wt),wt}return t.createOmittedExpression()}function Is(Pe){let wt=t.createNumericLiteral(Pe);return h7(wt,3,tje(Pe)),wt}function Pa(Pe,wt){return C.assertLessThan(0,Pe,"Invalid label"),dt(t.createReturnStatement(t.createArrayLiteralExpression([Is(3),du(Pe)])),wt)}function fl(Pe,wt){return dt(t.createReturnStatement(t.createArrayLiteralExpression(Pe?[Is(2),Pe]:[Is(2)])),wt)}function Mf(Pe){return dt(t.createCallExpression(t.createPropertyAccessExpression(he,"sent"),void 0,[]),Pe)}function sc(){de(0)}function Rl(Pe){Pe?de(1,[Pe]):sc()}function ll(Pe,wt,qn){de(2,[Pe,wt],qn)}function Wo(Pe,wt){de(3,[Pe],wt)}function on(Pe,wt,qn){de(4,[Pe,wt],qn)}function Vs(Pe,wt,qn){de(5,[Pe,wt],qn)}function nu(Pe,wt){de(7,[Pe],wt)}function pu(Pe,wt){de(6,[Pe],wt)}function Tp(Pe,wt){de(8,[Pe],wt)}function Ms(Pe,wt){de(9,[Pe],wt)}function Ic(){de(10)}function de(Pe,wt,qn){ue===void 0&&(ue=[],G=[],ne=[]),K===void 0&&ke(Ge());let So=ue.length;ue[So]=Pe,G[So]=wt,ne[So]=qn}function ee(){ye=0,$=0,Y=void 0,oe=!1,fe=!1,Ne=void 0,me=void 0,ie=void 0,ve=void 0,Le=void 0;let Pe=we();return r().createGeneratorHelper(fr(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,he)],void 0,t.createBlock(Pe,Pe.length>0)),1048576))}function we(){if(ue){for(let Pe=0;Pe=0;wt--){let qn=Le[wt];me=[t.createWithStatement(qn.expression,t.createBlock(me))]}if(ve){let{startLabel:wt,catchLabel:qn,finallyLabel:So,endLabel:Qo}=ve;me.unshift(t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createPropertyAccessExpression(he,"trys"),"push"),void 0,[t.createArrayLiteralExpression([du(wt),du(qn),du(So),du(Qo)])]))),ve=void 0}Pe&&me.push(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(he,"label"),t.createNumericLiteral($+1))))}Ne.push(t.createCaseClause(t.createNumericLiteral($),me||[])),me=void 0}function jr(Pe){if(K)for(let wt=0;wtr.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(Sr(ke))),Ge),r.createVoidZero())));In(Oe,rt(N.externalHelpersImportDeclaration,Y,Ki)),Jr(Oe,Bn(q.statements,Y,Ki,w)),$(Oe,!1),Qh(Oe,s());let ae=r.updateSourceFile(q,dt(r.createNodeArray(Oe),q.statements));return Vg(ae,e.readEmitHelpers()),ae}function ue(q){let Oe=r.createIdentifier("define"),Lt=$k(r,q,g,u),w=$f(q)&&q,{aliasedModuleNames:ae,unaliasedModuleNames:J,importAliasNames:pe}=ne(q,!0),Ge=r.updateSourceFile(q,dt(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(Oe,void 0,[...Lt?[Lt]:[],r.createArrayLiteralExpression(w?et:[r.createStringLiteral("require"),r.createStringLiteral("exports"),...ae,...J]),w?w.statements.length?w.statements[0].expression:r.createObjectLiteralExpression():r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"require"),r.createParameterDeclaration(void 0,void 0,"exports"),...pe],void 0,ye(q))]))]),q.statements));return Vg(Ge,e.readEmitHelpers()),Ge}function G(q){let{aliasedModuleNames:Oe,unaliasedModuleNames:Lt,importAliasNames:w}=ne(q,!1),ae=$k(r,q,g,u),J=r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"factory")],void 0,dt(r.createBlock([r.createIfStatement(r.createLogicalAnd(r.createTypeCheck(r.createIdentifier("module"),"object"),r.createTypeCheck(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),"object")),r.createBlock([r.createVariableStatement(void 0,[r.createVariableDeclaration("v",void 0,void 0,r.createCallExpression(r.createIdentifier("factory"),void 0,[r.createIdentifier("require"),r.createIdentifier("exports")]))]),fr(r.createIfStatement(r.createStrictInequality(r.createIdentifier("v"),r.createIdentifier("undefined")),r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),r.createIdentifier("v")))),1)]),r.createIfStatement(r.createLogicalAnd(r.createTypeCheck(r.createIdentifier("define"),"function"),r.createPropertyAccessExpression(r.createIdentifier("define"),"amd")),r.createBlock([r.createExpressionStatement(r.createCallExpression(r.createIdentifier("define"),void 0,[...ae?[ae]:[],r.createArrayLiteralExpression([r.createStringLiteral("require"),r.createStringLiteral("exports"),...Oe,...Lt]),r.createIdentifier("factory")]))])))],!0),void 0)),pe=r.updateSourceFile(q,dt(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(J,void 0,[r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"require"),r.createParameterDeclaration(void 0,void 0,"exports"),...w],void 0,ye(q))]))]),q.statements));return Vg(pe,e.readEmitHelpers()),pe}function ne(q,Oe){let Lt=[],w=[],ae=[];for(let J of q.amdDependencies)J.name?(Lt.push(r.createStringLiteral(J.path)),ae.push(r.createParameterDeclaration(void 0,void 0,J.name))):w.push(r.createStringLiteral(J.path));for(let J of N.externalImports){let pe=mI(r,J,M,g,p,u),Ge=JR(r,J,M);pe&&(Oe&&Ge?(fr(Ge,8),Lt.push(pe),ae.push(r.createParameterDeclaration(void 0,void 0,Ge))):w.push(pe))}return{aliasedModuleNames:Lt,unaliasedModuleNames:w,importAliasNames:ae}}function he(q){if(tu(q)||Kl(q)||!mI(r,q,M,g,p,u))return;let Oe=JR(r,q,M),Lt=Ro(q,Oe);if(Lt!==Oe)return r.createExpressionStatement(r.createAssignment(Oe,Lt))}function ye(q){o();let Oe=[],Lt=r.copyPrologue(q.statements,Oe,!u.noImplicitUseStrict,Y);Z()&&In(Oe,Nt()),De(N.exportedNames)&&In(Oe,r.createExpressionStatement(nd(N.exportedNames,(ae,J)=>r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(Sr(J))),ae),r.createVoidZero()))),In(Oe,rt(N.externalHelpersImportDeclaration,Y,Ki)),b===2&&Jr(Oe,Vi(N.externalImports,he)),Jr(Oe,Bn(q.statements,Y,Ki,Lt)),$(Oe,!0),Qh(Oe,s());let w=r.createBlock(Oe,!0);return H&&XA(w,EIe),w}function $(q,Oe){if(N.exportEquals){let Lt=rt(N.exportEquals.expression,Ne,bt);if(Lt)if(Oe){let w=r.createReturnStatement(Lt);dt(w,N.exportEquals),fr(w,3840),q.push(w)}else{let w=r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),Lt));dt(w,N.exportEquals),fr(w,3072),q.push(w)}}}function Y(q){switch(q.kind){case 272:return nr(q);case 271:return xr(q);case 278:return ln(q);case 277:return tt(q);default:return oe(q)}}function oe(q){switch(q.kind){case 243:return ui(q);case 262:return zt(q);case 263:return Rn(q);case 248:return Le(q,!0);case 249:return He(q);case 250:return Ee(q);case 246:return Ce(q);case 247:return Me(q);case 256:return Fe(q);case 254:return At(q);case 245:return Se(q);case 255:return je(q);case 269:return at(q);case 296:return Bt(q);case 297:return yt(q);case 258:return Qe(q);case 299:return gt(q);case 241:return nn(q);default:return Ne(q)}}function fe(q,Oe){if(!(q.transformFlags&276828160))return q;switch(q.kind){case 248:return Le(q,!1);case 244:return rn(q);case 217:return Nn(q,Oe);case 360:return Xn(q,Oe);case 213:if(Wp(q)&&M.impliedNodeFormat===void 0)return Qt(q);break;case 226:if(Bv(q))return ve(q,Oe);break;case 224:case 225:return _n(q,Oe)}return An(q,Ne,e)}function Ne(q){return fe(q,!1)}function me(q){return fe(q,!0)}function ie(q){if(wa(q))for(let Oe of q.properties)switch(Oe.kind){case 303:if(ie(Oe.initializer))return!0;break;case 304:if(ie(Oe.name))return!0;break;case 305:if(ie(Oe.expression))return!0;break;case 174:case 177:case 178:return!1;default:C.assertNever(Oe,"Unhandled object member kind")}else if(pd(q)){for(let Oe of q.elements)if(Zm(Oe)){if(ie(Oe.expression))return!0}else if(ie(Oe))return!0}else if(Ve(q))return De(mn(q))>(c5(q)?1:0);return!1}function ve(q,Oe){return ie(q.left)?JS(q,Ne,e,0,!Oe,bi):An(q,Ne,e)}function Le(q,Oe){if(Oe&&q.initializer&&jc(q.initializer)&&!(q.initializer.flags&7)){let Lt=En(void 0,q.initializer,!1);if(Lt){let w=[],ae=rt(q.initializer,me,jc),J=r.createVariableStatement(void 0,ae);w.push(J),Jr(w,Lt);let pe=rt(q.condition,Ne,bt),Ge=rt(q.incrementor,me,bt),ke=Id(q.statement,Oe?oe:Ne,e);return w.push(r.updateForStatement(q,void 0,pe,Ge,ke)),w}}return r.updateForStatement(q,rt(q.initializer,me,Ef),rt(q.condition,Ne,bt),rt(q.incrementor,me,bt),Id(q.statement,Oe?oe:Ne,e))}function He(q){if(jc(q.initializer)&&!(q.initializer.flags&7)){let Oe=En(void 0,q.initializer,!0);if(Et(Oe)){let Lt=rt(q.initializer,me,Ef),w=rt(q.expression,Ne,bt),ae=Id(q.statement,oe,e),J=Xo(ae)?r.updateBlock(ae,[...Oe,...ae.statements]):r.createBlock([...Oe,ae],!0);return r.updateForInStatement(q,Lt,w,J)}}return r.updateForInStatement(q,rt(q.initializer,me,Ef),rt(q.expression,Ne,bt),Id(q.statement,oe,e))}function Ee(q){if(jc(q.initializer)&&!(q.initializer.flags&7)){let Oe=En(void 0,q.initializer,!0),Lt=rt(q.initializer,me,Ef),w=rt(q.expression,Ne,bt),ae=Id(q.statement,oe,e);return Et(Oe)&&(ae=Xo(ae)?r.updateBlock(ae,[...Oe,...ae.statements]):r.createBlock([...Oe,ae],!0)),r.updateForOfStatement(q,q.awaitModifier,Lt,w,ae)}return r.updateForOfStatement(q,q.awaitModifier,rt(q.initializer,me,Ef),rt(q.expression,Ne,bt),Id(q.statement,oe,e))}function Ce(q){return r.updateDoStatement(q,Id(q.statement,oe,e),rt(q.expression,Ne,bt))}function Me(q){return r.updateWhileStatement(q,rt(q.expression,Ne,bt),Id(q.statement,oe,e))}function Fe(q){return r.updateLabeledStatement(q,q.label,C.checkDefined(rt(q.statement,oe,Ki,r.liftToBlock)))}function At(q){return r.updateWithStatement(q,rt(q.expression,Ne,bt),C.checkDefined(rt(q.statement,oe,Ki,r.liftToBlock)))}function Se(q){return r.updateIfStatement(q,rt(q.expression,Ne,bt),C.checkDefined(rt(q.thenStatement,oe,Ki,r.liftToBlock)),rt(q.elseStatement,oe,Ki,r.liftToBlock))}function je(q){return r.updateSwitchStatement(q,rt(q.expression,Ne,bt),C.checkDefined(rt(q.caseBlock,oe,TN)))}function at(q){return r.updateCaseBlock(q,Bn(q.clauses,oe,D6))}function Bt(q){return r.updateCaseClause(q,rt(q.expression,Ne,bt),Bn(q.statements,oe,Ki))}function yt(q){return An(q,oe,e)}function Qe(q){return An(q,oe,e)}function gt(q){return r.updateCatchClause(q,q.variableDeclaration,C.checkDefined(rt(q.block,oe,Xo)))}function nn(q){return q=An(q,oe,e),q}function rn(q){return r.updateExpressionStatement(q,rt(q.expression,me,bt))}function Nn(q,Oe){return r.updateParenthesizedExpression(q,rt(q.expression,Oe?me:Ne,bt))}function Xn(q,Oe){return r.updatePartiallyEmittedExpression(q,rt(q.expression,Oe?me:Ne,bt))}function _n(q,Oe){if((q.operator===46||q.operator===47)&&Ve(q.operand)&&!ol(q.operand)&&!Ug(q.operand)&&!_U(q.operand)){let Lt=mn(q.operand);if(Lt){let w,ae=rt(q.operand,Ne,bt);Qy(q)?ae=r.updatePrefixUnaryExpression(q,ae):(ae=r.updatePostfixUnaryExpression(q,ae),Oe||(w=r.createTempVariable(l),ae=r.createAssignment(w,ae),dt(ae,q)),ae=r.createComma(ae,r.cloneNode(q.operand)),dt(ae,q));for(let J of Lt)O[ss(ae)]=!0,ae=We(J,ae),dt(ae,q);return w&&(O[ss(ae)]=!0,ae=r.createComma(ae,w),dt(ae,q)),ae}}return An(q,Ne,e)}function Qt(q){if(b===0&&m>=7)return An(q,Ne,e);let Oe=mI(r,q,M,g,p,u),Lt=rt(Xc(q.arguments),Ne,bt),w=Oe&&(!Lt||!Na(Lt)||Lt.text!==Oe.text)?Oe:Lt,ae=!!(q.transformFlags&16384);switch(u.module){case 2:return vi(w,ae);case 3:return Yt(w??r.createVoidZero(),ae);case 1:default:return ho(w)}}function Yt(q,Oe){if(H=!0,rE(q)){let Lt=ol(q)?q:Na(q)?r.createStringLiteralFromNode(q):fr(dt(r.cloneNode(q),q),3072);return r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,ho(q),void 0,vi(Lt,Oe))}else{let Lt=r.createTempVariable(l);return r.createComma(r.createAssignment(Lt,q),r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,ho(Lt,!0),void 0,vi(Lt,Oe)))}}function vi(q,Oe){let Lt=r.createUniqueName("resolve"),w=r.createUniqueName("reject"),ae=[r.createParameterDeclaration(void 0,void 0,Lt),r.createParameterDeclaration(void 0,void 0,w)],J=r.createBlock([r.createExpressionStatement(r.createCallExpression(r.createIdentifier("require"),void 0,[r.createArrayLiteralExpression([q||r.createOmittedExpression()]),Lt,w]))]),pe;m>=2?pe=r.createArrowFunction(void 0,void 0,ae,void 0,void 0,J):(pe=r.createFunctionExpression(void 0,void 0,void 0,void 0,ae,void 0,J),Oe&&fr(pe,16));let Ge=r.createNewExpression(r.createIdentifier("Promise"),void 0,[pe]);return vh(u)?r.createCallExpression(r.createPropertyAccessExpression(Ge,r.createIdentifier("then")),void 0,[i().createImportStarCallbackHelper()]):Ge}function ho(q,Oe){let Lt=q&&!F_(q)&&!Oe,w=r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Promise"),"resolve"),void 0,Lt?m>=2?[r.createTemplateExpression(r.createTemplateHead(""),[r.createTemplateSpan(q,r.createTemplateTail(""))])]:[r.createCallExpression(r.createPropertyAccessExpression(r.createStringLiteral(""),"concat"),void 0,[q])]:[]),ae=r.createCallExpression(r.createIdentifier("require"),void 0,Lt?[r.createIdentifier("s")]:q?[q]:[]);vh(u)&&(ae=i().createImportStarHelper(ae));let J=Lt?[r.createParameterDeclaration(void 0,void 0,"s")]:[],pe;return m>=2?pe=r.createArrowFunction(void 0,void 0,J,void 0,void 0,ae):pe=r.createFunctionExpression(void 0,void 0,void 0,void 0,J,void 0,r.createBlock([r.createReturnStatement(ae)])),r.createCallExpression(r.createPropertyAccessExpression(w,"then"),void 0,[pe])}function ki(q,Oe){return!vh(u)||Tm(q)&2?Oe:hle(q)?i().createImportStarHelper(Oe):Oe}function Ro(q,Oe){return!vh(u)||Tm(q)&2?Oe:$5(q)?i().createImportStarHelper(Oe):qq(q)?i().createImportDefaultHelper(Oe):Oe}function nr(q){let Oe,Lt=dR(q);if(b!==2)if(q.importClause){let w=[];Lt&&!MA(q)?w.push(r.createVariableDeclaration(r.cloneNode(Lt.name),void 0,void 0,Ro(q,qr(q)))):(w.push(r.createVariableDeclaration(r.getGeneratedNameForNode(q),void 0,void 0,Ro(q,qr(q)))),Lt&&MA(q)&&w.push(r.createVariableDeclaration(r.cloneNode(Lt.name),void 0,void 0,r.getGeneratedNameForNode(q)))),Oe=In(Oe,Pr(dt(r.createVariableStatement(void 0,r.createVariableDeclarationList(w,m>=2?2:0)),q),q))}else return Pr(dt(r.createExpressionStatement(qr(q)),q),q);else Lt&&MA(q)&&(Oe=In(Oe,r.createVariableStatement(void 0,r.createVariableDeclarationList([Pr(dt(r.createVariableDeclaration(r.cloneNode(Lt.name),void 0,void 0,r.getGeneratedNameForNode(q)),q),q)],m>=2?2:0))));return Oe=No(Oe,q),sh(Oe)}function qr(q){let Oe=mI(r,q,M,g,p,u),Lt=[];return Oe&&Lt.push(Oe),r.createCallExpression(r.createIdentifier("require"),void 0,Lt)}function xr(q){C.assert(l0(q),"import= for internal module references should be handled in an earlier transformer.");let Oe;return b!==2?ei(q,32)?Oe=In(Oe,Pr(dt(r.createExpressionStatement(We(q.name,qr(q))),q),q)):Oe=In(Oe,Pr(dt(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(r.cloneNode(q.name),void 0,void 0,qr(q))],m>=2?2:0)),q),q)):ei(q,32)&&(Oe=In(Oe,Pr(dt(r.createExpressionStatement(We(r.getExportName(q),r.getLocalName(q))),q),q))),Oe=_a(Oe,q),sh(Oe)}function ln(q){if(!q.moduleSpecifier)return;let Oe=r.getGeneratedNameForNode(q);if(q.exportClause&&Df(q.exportClause)){let Lt=[];b!==2&&Lt.push(Pr(dt(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(Oe,void 0,void 0,qr(q))])),q),q));for(let w of q.exportClause.elements)if(m===0)Lt.push(Pr(dt(r.createExpressionStatement(i().createCreateBindingHelper(Oe,r.createStringLiteralFromNode(w.propertyName||w.name),w.propertyName?r.createStringLiteralFromNode(w.name):void 0)),w),w));else{let ae=!!vh(u)&&!(Tm(q)&2)&&Sr(w.propertyName||w.name)==="default",J=r.createPropertyAccessExpression(ae?i().createImportDefaultHelper(Oe):Oe,w.propertyName||w.name);Lt.push(Pr(dt(r.createExpressionStatement(We(r.getExportName(w),J,void 0,!0)),w),w))}return sh(Lt)}else if(q.exportClause){let Lt=[];return Lt.push(Pr(dt(r.createExpressionStatement(We(r.cloneNode(q.exportClause.name),ki(q,b!==2?qr(q):z6(q)?Oe:r.createIdentifier(Sr(q.exportClause.name))))),q),q)),sh(Lt)}else return Pr(dt(r.createExpressionStatement(i().createExportStarHelper(b!==2?qr(q):Oe)),q),q)}function tt(q){if(!q.isExportEquals)return le(r.createIdentifier("default"),rt(q.expression,Ne,bt),q,!0)}function zt(q){let Oe;return ei(q,32)?Oe=In(Oe,Pr(dt(r.createFunctionDeclaration(Bn(q.modifiers,pt,Ia),q.asteriskToken,r.getDeclarationName(q,!0,!0),void 0,Bn(q.parameters,Ne,Co),void 0,An(q.body,Ne,e)),q),q)):Oe=In(Oe,An(q,Ne,e)),Oe=Ue(Oe,q),sh(Oe)}function Rn(q){let Oe;return ei(q,32)?Oe=In(Oe,Pr(dt(r.createClassDeclaration(Bn(q.modifiers,pt,al),r.getDeclarationName(q,!0,!0),void 0,Bn(q.heritageClauses,Ne,ef),Bn(q.members,Ne,$c)),q),q)):Oe=In(Oe,An(q,Ne,e)),Oe=Ue(Oe,q),sh(Oe)}function ui(q){let Oe,Lt,w;if(ei(q,32)){let ae,J=!1;for(let pe of q.declarationList.declarations)if(Ve(pe.name)&&Ug(pe.name))if(ae||(ae=Bn(q.modifiers,pt,Ia)),pe.initializer){let Ge=r.updateVariableDeclaration(pe,pe.name,void 0,void 0,We(pe.name,rt(pe.initializer,Ne,bt)));Lt=In(Lt,Ge)}else Lt=In(Lt,pe);else if(pe.initializer)if(!ta(pe.name)&&(Bs(pe.initializer)||ws(pe.initializer)||Zc(pe.initializer))){let Ge=r.createAssignment(dt(r.createPropertyAccessExpression(r.createIdentifier("exports"),pe.name),pe.name),r.createIdentifier(Zf(pe.name))),ke=r.createVariableDeclaration(pe.name,pe.exclamationToken,pe.type,rt(pe.initializer,Ne,bt));Lt=In(Lt,ke),w=In(w,Ge),J=!0}else w=In(w,ro(pe));if(Lt&&(Oe=In(Oe,r.updateVariableStatement(q,ae,r.updateVariableDeclarationList(q.declarationList,Lt)))),w){let pe=Pr(dt(r.createExpressionStatement(r.inlineExpressions(w)),q),q);J&&Nk(pe),Oe=In(Oe,pe)}}else Oe=In(Oe,An(q,Ne,e));return Oe=ja(Oe,q),sh(Oe)}function bi(q,Oe,Lt){let w=mn(q);if(w){let ae=c5(q)?Oe:r.createAssignment(q,Oe);for(let J of w)fr(ae,8),ae=We(J,ae,Lt);return ae}return r.createAssignment(q,Oe)}function ro(q){return ta(q.name)?JS(rt(q,Ne,uk),Ne,e,0,!1,bi):r.createAssignment(dt(r.createPropertyAccessExpression(r.createIdentifier("exports"),q.name),q.name),q.initializer?rt(q.initializer,Ne,bt):r.createVoidZero())}function No(q,Oe){if(N.exportEquals)return q;let Lt=Oe.importClause;if(!Lt)return q;let w=new bI;Lt.name&&(q=mt(q,w,Lt));let ae=Lt.namedBindings;if(ae)switch(ae.kind){case 274:q=mt(q,w,ae);break;case 275:for(let J of ae.elements)q=mt(q,w,J,!0);break}return q}function _a(q,Oe){return N.exportEquals?q:mt(q,new bI,Oe)}function ja(q,Oe){return En(q,Oe.declarationList,!1)}function En(q,Oe,Lt){if(N.exportEquals)return q;for(let w of Oe.declarations)q=wn(q,w,Lt);return q}function wn(q,Oe,Lt){if(N.exportEquals)return q;if(ta(Oe.name))for(let w of Oe.name.elements)Vc(w)||(q=wn(q,w,Lt));else!ol(Oe.name)&&(!Oi(Oe)||Oe.initializer||Lt)&&(q=mt(q,new bI,Oe));return q}function Ue(q,Oe){if(N.exportEquals)return q;let Lt=new bI;if(ei(Oe,32)){let w=ei(Oe,2048)?r.createIdentifier("default"):r.getDeclarationName(Oe);q=ft(q,Lt,w,r.getLocalName(Oe),Oe)}return Oe.name&&(q=mt(q,Lt,Oe)),q}function mt(q,Oe,Lt,w){let ae=r.getDeclarationName(Lt),J=N.exportSpecifiers.get(ae);if(J)for(let pe of J)q=ft(q,Oe,pe.name,ae,pe.name,void 0,w);return q}function ft(q,Oe,Lt,w,ae,J,pe){return Oe.has(Lt)||(Oe.set(Lt,!0),q=In(q,le(Lt,w,ae,J,pe))),q}function Nt(){let q;return m===0?q=r.createExpressionStatement(We(r.createIdentifier("__esModule"),r.createTrue())):q=r.createExpressionStatement(r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"defineProperty"),void 0,[r.createIdentifier("exports"),r.createStringLiteral("__esModule"),r.createObjectLiteralExpression([r.createPropertyAssignment("value",r.createTrue())])])),fr(q,2097152),q}function le(q,Oe,Lt,w,ae){let J=dt(r.createExpressionStatement(We(q,Oe,void 0,ae)),Lt);return Ku(J),w||fr(J,3072),J}function We(q,Oe,Lt,w){return dt(w&&m!==0?r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"defineProperty"),void 0,[r.createIdentifier("exports"),r.createStringLiteralFromNode(q),r.createObjectLiteralExpression([r.createPropertyAssignment("enumerable",r.createTrue()),r.createPropertyAssignment("get",r.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,r.createBlock([r.createReturnStatement(Oe)])))])]):r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(q)),Oe),Lt)}function pt(q){switch(q.kind){case 95:case 90:return}return q}function j(q,Oe,Lt){Oe.kind===312?(M=Oe,N=R[Ou(M)],I(q,Oe,Lt),M=void 0,N=void 0):I(q,Oe,Lt)}function ot(q,Oe){return Oe=T(q,Oe),Oe.id&&O[Oe.id]?Oe:q===1?Ye(Oe):np(Oe)?xt(Oe):Oe}function xt(q){let Oe=q.name,Lt=yn(Oe);if(Lt!==Oe){if(q.objectAssignmentInitializer){let w=r.createAssignment(Lt,q.objectAssignmentInitializer);return dt(r.createPropertyAssignment(Oe,w),q)}return dt(r.createPropertyAssignment(Oe,Lt),q)}return q}function Ye(q){switch(q.kind){case 80:return yn(q);case 213:return ht(q);case 215:return Vt(q);case 226:return fn(q)}return q}function ht(q){if(Ve(q.expression)){let Oe=yn(q.expression);if(O[ss(Oe)]=!0,!Ve(Oe)&&!(Va(q.expression)&8192))return JA(r.updateCallExpression(q,Oe,void 0,q.arguments),16)}return q}function Vt(q){if(Ve(q.tag)){let Oe=yn(q.tag);if(O[ss(Oe)]=!0,!Ve(Oe)&&!(Va(q.tag)&8192))return JA(r.updateTaggedTemplateExpression(q,Oe,void 0,q.template),16)}return q}function yn(q){var Oe,Lt;if(Va(q)&8192){let w=Yk(M);return w?r.createPropertyAccessExpression(w,q):q}else if(!(ol(q)&&!(q.emitNode.autoGenerate.flags&64))&&!Ug(q)){let w=p.getReferencedExportContainer(q,c5(q));if(w&&w.kind===312)return dt(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(q)),q);let ae=p.getReferencedImportDeclaration(q);if(ae){if(Eh(ae))return dt(r.createPropertyAccessExpression(r.getGeneratedNameForNode(ae.parent),r.createIdentifier("default")),q);if(tp(ae)){let J=ae.propertyName||ae.name;return dt(r.createPropertyAccessExpression(r.getGeneratedNameForNode(((Lt=(Oe=ae.parent)==null?void 0:Oe.parent)==null?void 0:Lt.parent)||ae),r.cloneNode(J)),q)}}}return q}function fn(q){if(zv(q.operatorToken.kind)&&Ve(q.left)&&(!ol(q.left)||lL(q.left))&&!Ug(q.left)){let Oe=mn(q.left);if(Oe){let Lt=q;for(let w of Oe)O[ss(Lt)]=!0,Lt=We(w,Lt,q);return Lt}}return q}function mn(q){if(ol(q)){if(lL(q)){let Oe=N?.exportSpecifiers.get(q);if(Oe){let Lt=[];for(let w of Oe)Lt.push(w.name);return Lt}}}else{let Oe=p.getReferencedImportDeclaration(q);if(Oe)return N?.exportedBindings[Ou(Oe)];let Lt=new Set,w=p.getReferencedValueDeclarations(q);if(w){for(let ae of w){let J=N?.exportedBindings[Ou(ae)];if(J)for(let pe of J)Lt.add(pe)}if(Lt.size)return Vo(Lt)}}}}var EIe,rje=A({"src/compiler/transformers/module/module.ts"(){"use strict";ia(),EIe={name:"typescript:dynamicimport-sync-require",scoped:!0,text:` + var __syncRequire = typeof module === "object" && typeof module.exports === "object";`}}});function Xle(e){let{factory:t,startLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,s=e.getCompilerOptions(),l=e.getEmitResolver(),u=e.getEmitHost(),p=e.onSubstituteNode,g=e.onEmitNode;e.onSubstituteNode=We,e.onEmitNode=le,e.enableSubstitution(80),e.enableSubstitution(304),e.enableSubstitution(226),e.enableSubstitution(236),e.enableEmitNotification(312);let m=[],b=[],T=[],I=[],R,M,N,O,H,K,Z;return Nm(e,V);function V(q){if(q.isDeclarationFile||!(NA(q,s)||q.transformFlags&8388608))return q;let Oe=Ou(q);R=q,K=q,M=m[Oe]=Jq(e,q),N=t.createUniqueName("exports"),b[Oe]=N,O=I[Oe]=t.createUniqueName("context");let Lt=ue(M.externalImports),w=G(q,Lt),ae=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,N),t.createParameterDeclaration(void 0,void 0,O)],void 0,w),J=$k(t,q,u,s),pe=t.createArrayLiteralExpression(Ft(Lt,ke=>ke.name)),Ge=fr(t.updateSourceFile(q,dt(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("System"),"register"),void 0,J?[J,pe,ae]:[pe,ae]))]),q.statements)),2048);return Ps(s)||fae(Ge,w,ke=>!ke.scoped),Z&&(T[Oe]=Z,Z=void 0),R=void 0,M=void 0,N=void 0,O=void 0,H=void 0,K=void 0,Ge}function ue(q){let Oe=new Map,Lt=[];for(let w of q){let ae=mI(t,w,R,u,l,s);if(ae){let J=ae.text,pe=Oe.get(J);pe!==void 0?Lt[pe].externalImports.push(w):(Oe.set(J,Lt.length),Lt.push({name:ae,externalImports:[w]}))}}return Lt}function G(q,Oe){let Lt=[];r();let w=ud(s,"alwaysStrict")||!s.noImplicitUseStrict&&ac(R),ae=t.copyPrologue(q.statements,Lt,w,$);Lt.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration("__moduleName",void 0,void 0,t.createLogicalAnd(O,t.createPropertyAccessExpression(O,"id")))]))),rt(M.externalHelpersImportDeclaration,$,Ki);let J=Bn(q.statements,$,Ki,ae);Jr(Lt,H),Qh(Lt,i());let pe=ne(Lt),Ge=q.transformFlags&2097152?t.createModifiersFromModifierFlags(1024):void 0,ke=t.createObjectLiteralExpression([t.createPropertyAssignment("setters",ye(pe,Oe)),t.createPropertyAssignment("execute",t.createFunctionExpression(Ge,void 0,void 0,void 0,[],void 0,t.createBlock(J,!0)))],!0);return Lt.push(t.createReturnStatement(ke)),t.createBlock(Lt,!0)}function ne(q){if(!M.hasExportStarsToExportValues)return;if(!M.exportedNames&&M.exportSpecifiers.size===0){let ae=!1;for(let J of M.externalImports)if(J.kind===278&&J.exportClause){ae=!0;break}if(!ae){let J=he(void 0);return q.push(J),J.name}}let Oe=[];if(M.exportedNames)for(let ae of M.exportedNames)ae.escapedText!=="default"&&Oe.push(t.createPropertyAssignment(t.createStringLiteralFromNode(ae),t.createTrue()));let Lt=t.createUniqueName("exportedNames");q.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Lt,void 0,void 0,t.createObjectLiteralExpression(Oe,!0))])));let w=he(Lt);return q.push(w),w.name}function he(q){let Oe=t.createUniqueName("exportStar"),Lt=t.createIdentifier("m"),w=t.createIdentifier("n"),ae=t.createIdentifier("exports"),J=t.createStrictInequality(w,t.createStringLiteral("default"));return q&&(J=t.createLogicalAnd(J,t.createLogicalNot(t.createCallExpression(t.createPropertyAccessExpression(q,"hasOwnProperty"),void 0,[w])))),t.createFunctionDeclaration(void 0,void 0,Oe,void 0,[t.createParameterDeclaration(void 0,void 0,Lt)],void 0,t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(ae,void 0,void 0,t.createObjectLiteralExpression([]))])),t.createForInStatement(t.createVariableDeclarationList([t.createVariableDeclaration(w)]),Lt,t.createBlock([fr(t.createIfStatement(J,t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(ae,w),t.createElementAccessExpression(Lt,w)))),1)])),t.createExpressionStatement(t.createCallExpression(N,void 0,[ae]))],!0))}function ye(q,Oe){let Lt=[];for(let w of Oe){let ae=Ke(w.externalImports,Ge=>JR(t,Ge,R)),J=ae?t.getGeneratedNameForNode(ae):t.createUniqueName(""),pe=[];for(let Ge of w.externalImports){let ke=JR(t,Ge,R);switch(Ge.kind){case 272:if(!Ge.importClause)break;case 271:C.assert(ke!==void 0),pe.push(t.createExpressionStatement(t.createAssignment(ke,J))),ei(Ge,32)&&pe.push(t.createExpressionStatement(t.createCallExpression(N,void 0,[t.createStringLiteral(Sr(ke)),J])));break;case 278:if(C.assert(ke!==void 0),Ge.exportClause)if(Df(Ge.exportClause)){let Dt=[];for(let Pt of Ge.exportClause.elements)Dt.push(t.createPropertyAssignment(t.createStringLiteral(Sr(Pt.name)),t.createElementAccessExpression(J,t.createStringLiteral(Sr(Pt.propertyName||Pt.name)))));pe.push(t.createExpressionStatement(t.createCallExpression(N,void 0,[t.createObjectLiteralExpression(Dt,!0)])))}else pe.push(t.createExpressionStatement(t.createCallExpression(N,void 0,[t.createStringLiteral(Sr(Ge.exportClause.name)),J])));else pe.push(t.createExpressionStatement(t.createCallExpression(q,void 0,[J])));break}}Lt.push(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,J)],void 0,t.createBlock(pe,!0)))}return t.createArrayLiteralExpression(Lt,!0)}function $(q){switch(q.kind){case 272:return Y(q);case 271:return fe(q);case 278:return oe(q);case 277:return Ne(q);default:return rn(q)}}function Y(q){let Oe;return q.importClause&&o(JR(t,q,R)),sh(At(Oe,q))}function oe(q){C.assertIsDefined(q)}function fe(q){C.assert(l0(q),"import= for internal module references should be handled in an earlier transformer.");let Oe;return o(JR(t,q,R)),sh(Se(Oe,q))}function Ne(q){if(q.isExportEquals)return;let Oe=rt(q.expression,ro,bt);return gt(t.createIdentifier("default"),Oe,!0)}function me(q){ei(q,32)?H=In(H,t.updateFunctionDeclaration(q,Bn(q.modifiers,Nt,al),q.asteriskToken,t.getDeclarationName(q,!0,!0),void 0,Bn(q.parameters,ro,Co),void 0,rt(q.body,ro,Xo))):H=In(H,An(q,ro,e)),H=Bt(H,q)}function ie(q){let Oe,Lt=t.getLocalName(q);return o(Lt),Oe=In(Oe,dt(t.createExpressionStatement(t.createAssignment(Lt,dt(t.createClassExpression(Bn(q.modifiers,Nt,al),q.name,void 0,Bn(q.heritageClauses,ro,ef),Bn(q.members,ro,$c)),q))),q)),Oe=Bt(Oe,q),sh(Oe)}function ve(q){if(!He(q.declarationList))return rt(q,ro,Ki);let Oe;if(xL(q.declarationList)||IL(q.declarationList)){let Lt=Bn(q.modifiers,Nt,al),w=[];for(let J of q.declarationList.declarations)w.push(t.updateVariableDeclaration(J,t.getGeneratedNameForNode(J.name),void 0,void 0,Ee(J,!1)));let ae=t.updateVariableDeclarationList(q.declarationList,w);Oe=In(Oe,t.updateVariableStatement(q,Lt,ae))}else{let Lt,w=ei(q,32);for(let ae of q.declarationList.declarations)ae.initializer?Lt=In(Lt,Ee(ae,w)):Le(ae);Lt&&(Oe=In(Oe,dt(t.createExpressionStatement(t.inlineExpressions(Lt)),q)))}return Oe=je(Oe,q,!1),sh(Oe)}function Le(q){if(ta(q.name))for(let Oe of q.name.elements)Vc(Oe)||Le(Oe);else o(t.cloneNode(q.name))}function He(q){return(Va(q)&4194304)===0&&(K.kind===312||(Nl(q).flags&7)===0)}function Ee(q,Oe){let Lt=Oe?Ce:Me;return ta(q.name)?JS(q,ro,e,0,!1,Lt):q.initializer?Lt(q.name,rt(q.initializer,ro,bt)):q.name}function Ce(q,Oe,Lt){return Fe(q,Oe,Lt,!0)}function Me(q,Oe,Lt){return Fe(q,Oe,Lt,!1)}function Fe(q,Oe,Lt,w){return o(t.cloneNode(q)),w?nn(q,fn(dt(t.createAssignment(q,Oe),Lt))):fn(dt(t.createAssignment(q,Oe),Lt))}function At(q,Oe){if(M.exportEquals)return q;let Lt=Oe.importClause;if(!Lt)return q;Lt.name&&(q=yt(q,Lt));let w=Lt.namedBindings;if(w)switch(w.kind){case 274:q=yt(q,w);break;case 275:for(let ae of w.elements)q=yt(q,ae);break}return q}function Se(q,Oe){return M.exportEquals?q:yt(q,Oe)}function je(q,Oe,Lt){if(M.exportEquals)return q;for(let w of Oe.declarationList.declarations)(w.initializer||Lt)&&(q=at(q,w,Lt));return q}function at(q,Oe,Lt){if(M.exportEquals)return q;if(ta(Oe.name))for(let w of Oe.name.elements)Vc(w)||(q=at(q,w,Lt));else if(!ol(Oe.name)){let w;Lt&&(q=Qe(q,Oe.name,t.getLocalName(Oe)),w=Sr(Oe.name)),q=yt(q,Oe,w)}return q}function Bt(q,Oe){if(M.exportEquals)return q;let Lt;if(ei(Oe,32)){let w=ei(Oe,2048)?t.createStringLiteral("default"):Oe.name;q=Qe(q,w,t.getLocalName(Oe)),Lt=Zf(w)}return Oe.name&&(q=yt(q,Oe,Lt)),q}function yt(q,Oe,Lt){if(M.exportEquals)return q;let w=t.getDeclarationName(Oe),ae=M.exportSpecifiers.get(w);if(ae)for(let J of ae)J.name.escapedText!==Lt&&(q=Qe(q,J.name,w));return q}function Qe(q,Oe,Lt,w){return q=In(q,gt(Oe,Lt,w)),q}function gt(q,Oe,Lt){let w=t.createExpressionStatement(nn(q,Oe));return Ku(w),Lt||fr(w,3072),w}function nn(q,Oe){let Lt=Ve(q)?t.createStringLiteralFromNode(q):q;return fr(Oe,Va(Oe)|3072),oc(t.createCallExpression(N,void 0,[Lt,Oe]),Oe)}function rn(q){switch(q.kind){case 243:return ve(q);case 262:return me(q);case 263:return ie(q);case 248:return Nn(q,!0);case 249:return Xn(q);case 250:return _n(q);case 246:return vi(q);case 247:return ho(q);case 256:return ki(q);case 254:return Ro(q);case 245:return nr(q);case 255:return qr(q);case 269:return xr(q);case 296:return ln(q);case 297:return tt(q);case 258:return zt(q);case 299:return Rn(q);case 241:return ui(q);default:return ro(q)}}function Nn(q,Oe){let Lt=K;return K=q,q=t.updateForStatement(q,rt(q.initializer,Oe?Yt:No,Ef),rt(q.condition,ro,bt),rt(q.incrementor,No,bt),Id(q.statement,Oe?rn:ro,e)),K=Lt,q}function Xn(q){let Oe=K;return K=q,q=t.updateForInStatement(q,Yt(q.initializer),rt(q.expression,ro,bt),Id(q.statement,rn,e)),K=Oe,q}function _n(q){let Oe=K;return K=q,q=t.updateForOfStatement(q,q.awaitModifier,Yt(q.initializer),rt(q.expression,ro,bt),Id(q.statement,rn,e)),K=Oe,q}function Qt(q){return jc(q)&&He(q)}function Yt(q){if(Qt(q)){let Oe;for(let Lt of q.declarations)Oe=In(Oe,Ee(Lt,!1)),Lt.initializer||Le(Lt);return Oe?t.inlineExpressions(Oe):t.createOmittedExpression()}else return rt(q,No,Ef)}function vi(q){return t.updateDoStatement(q,Id(q.statement,rn,e),rt(q.expression,ro,bt))}function ho(q){return t.updateWhileStatement(q,rt(q.expression,ro,bt),Id(q.statement,rn,e))}function ki(q){return t.updateLabeledStatement(q,q.label,C.checkDefined(rt(q.statement,rn,Ki,t.liftToBlock)))}function Ro(q){return t.updateWithStatement(q,rt(q.expression,ro,bt),C.checkDefined(rt(q.statement,rn,Ki,t.liftToBlock)))}function nr(q){return t.updateIfStatement(q,rt(q.expression,ro,bt),C.checkDefined(rt(q.thenStatement,rn,Ki,t.liftToBlock)),rt(q.elseStatement,rn,Ki,t.liftToBlock))}function qr(q){return t.updateSwitchStatement(q,rt(q.expression,ro,bt),C.checkDefined(rt(q.caseBlock,rn,TN)))}function xr(q){let Oe=K;return K=q,q=t.updateCaseBlock(q,Bn(q.clauses,rn,D6)),K=Oe,q}function ln(q){return t.updateCaseClause(q,rt(q.expression,ro,bt),Bn(q.statements,rn,Ki))}function tt(q){return An(q,rn,e)}function zt(q){return An(q,rn,e)}function Rn(q){let Oe=K;return K=q,q=t.updateCatchClause(q,q.variableDeclaration,C.checkDefined(rt(q.block,rn,Xo))),K=Oe,q}function ui(q){let Oe=K;return K=q,q=An(q,rn,e),K=Oe,q}function bi(q,Oe){if(!(q.transformFlags&276828160))return q;switch(q.kind){case 248:return Nn(q,!1);case 244:return _a(q);case 217:return ja(q,Oe);case 360:return En(q,Oe);case 226:if(Bv(q))return Ue(q,Oe);break;case 213:if(Wp(q))return wn(q);break;case 224:case 225:return ft(q,Oe)}return An(q,ro,e)}function ro(q){return bi(q,!1)}function No(q){return bi(q,!0)}function _a(q){return t.updateExpressionStatement(q,rt(q.expression,No,bt))}function ja(q,Oe){return t.updateParenthesizedExpression(q,rt(q.expression,Oe?No:ro,bt))}function En(q,Oe){return t.updatePartiallyEmittedExpression(q,rt(q.expression,Oe?No:ro,bt))}function wn(q){let Oe=mI(t,q,R,u,l,s),Lt=rt(Xc(q.arguments),ro,bt),w=Oe&&(!Lt||!Na(Lt)||Lt.text!==Oe.text)?Oe:Lt;return t.createCallExpression(t.createPropertyAccessExpression(O,t.createIdentifier("import")),void 0,w?[w]:[])}function Ue(q,Oe){return mt(q.left)?JS(q,ro,e,0,!Oe):An(q,ro,e)}function mt(q){if(Mc(q,!0))return mt(q.left);if(Zm(q))return mt(q.expression);if(wa(q))return Et(q.properties,mt);if(pd(q))return Et(q.elements,mt);if(np(q))return mt(q.name);if(_c(q))return mt(q.initializer);if(Ve(q)){let Oe=l.getReferencedExportContainer(q);return Oe!==void 0&&Oe.kind===312}else return!1}function ft(q,Oe){if((q.operator===46||q.operator===47)&&Ve(q.operand)&&!ol(q.operand)&&!Ug(q.operand)&&!_U(q.operand)){let Lt=Vt(q.operand);if(Lt){let w,ae=rt(q.operand,ro,bt);Qy(q)?ae=t.updatePrefixUnaryExpression(q,ae):(ae=t.updatePostfixUnaryExpression(q,ae),Oe||(w=t.createTempVariable(o),ae=t.createAssignment(w,ae),dt(ae,q)),ae=t.createComma(ae,t.cloneNode(q.operand)),dt(ae,q));for(let J of Lt)ae=nn(J,fn(ae));return w&&(ae=t.createComma(ae,w),dt(ae,q)),ae}}return An(q,ro,e)}function Nt(q){switch(q.kind){case 95:case 90:return}return q}function le(q,Oe,Lt){if(Oe.kind===312){let w=Ou(Oe);R=Oe,M=m[w],N=b[w],Z=T[w],O=I[w],Z&&delete T[w],g(q,Oe,Lt),R=void 0,M=void 0,N=void 0,O=void 0,Z=void 0}else g(q,Oe,Lt)}function We(q,Oe){return Oe=p(q,Oe),mn(Oe)?Oe:q===1?ot(Oe):q===4?pt(Oe):Oe}function pt(q){switch(q.kind){case 304:return j(q)}return q}function j(q){var Oe,Lt;let w=q.name;if(!ol(w)&&!Ug(w)){let ae=l.getReferencedImportDeclaration(w);if(ae){if(Eh(ae))return dt(t.createPropertyAssignment(t.cloneNode(w),t.createPropertyAccessExpression(t.getGeneratedNameForNode(ae.parent),t.createIdentifier("default"))),q);if(tp(ae))return dt(t.createPropertyAssignment(t.cloneNode(w),t.createPropertyAccessExpression(t.getGeneratedNameForNode(((Lt=(Oe=ae.parent)==null?void 0:Oe.parent)==null?void 0:Lt.parent)||ae),t.cloneNode(ae.propertyName||ae.name))),q)}}return q}function ot(q){switch(q.kind){case 80:return xt(q);case 226:return Ye(q);case 236:return ht(q)}return q}function xt(q){var Oe,Lt;if(Va(q)&8192){let w=Yk(R);return w?t.createPropertyAccessExpression(w,q):q}if(!ol(q)&&!Ug(q)){let w=l.getReferencedImportDeclaration(q);if(w){if(Eh(w))return dt(t.createPropertyAccessExpression(t.getGeneratedNameForNode(w.parent),t.createIdentifier("default")),q);if(tp(w))return dt(t.createPropertyAccessExpression(t.getGeneratedNameForNode(((Lt=(Oe=w.parent)==null?void 0:Oe.parent)==null?void 0:Lt.parent)||w),t.cloneNode(w.propertyName||w.name)),q)}}return q}function Ye(q){if(zv(q.operatorToken.kind)&&Ve(q.left)&&(!ol(q.left)||lL(q.left))&&!Ug(q.left)){let Oe=Vt(q.left);if(Oe){let Lt=q;for(let w of Oe)Lt=nn(w,fn(Lt));return Lt}}return q}function ht(q){return nR(q)?t.createPropertyAccessExpression(O,t.createIdentifier("meta")):q}function Vt(q){let Oe,Lt=yn(q);if(Lt){let w=l.getReferencedExportContainer(q,!1);w&&w.kind===312&&(Oe=In(Oe,t.getDeclarationName(Lt))),Oe=Jr(Oe,M?.exportedBindings[Ou(Lt)])}else if(ol(q)&&lL(q)){let w=M?.exportSpecifiers.get(q);if(w){let ae=[];for(let J of w)ae.push(J.name);return ae}}return Oe}function yn(q){if(!ol(q)){let Oe=l.getReferencedImportDeclaration(q);if(Oe)return Oe;let Lt=l.getReferencedValueDeclaration(q);if(Lt&&M?.exportedBindings[Ou(Lt)])return Lt;let w=l.getReferencedValueDeclarations(q);if(w){for(let ae of w)if(ae!==Lt&&M?.exportedBindings[Ou(ae)])return ae}return Lt}}function fn(q){return Z===void 0&&(Z=[]),Z[ss(q)]=!0,q}function mn(q){return Z&&q.id&&Z[q.id]}}var ije=A({"src/compiler/transformers/module/system.ts"(){"use strict";ia()}});function oJ(e){let{factory:t,getEmitHelperFactory:r}=e,i=e.getEmitHost(),o=e.getEmitResolver(),s=e.getCompilerOptions(),l=as(s),u=e.onEmitNode,p=e.onSubstituteNode;e.onEmitNode=Z,e.onSubstituteNode=V,e.enableEmitNotification(312),e.enableSubstitution(80);let g,m,b;return Nm(e,T);function T(G){if(G.isDeclarationFile)return G;if(ac(G)||im(s)){m=G,b=void 0;let ne=I(G);return m=void 0,b&&(ne=t.updateSourceFile(ne,dt(t.createNodeArray(sj(ne.statements.slice(),b)),ne.statements))),!ac(G)||ku(s)===200||Et(ne.statements,fL)?ne:t.updateSourceFile(ne,dt(t.createNodeArray([...ne.statements,Jk(t)]),ne.statements))}return G}function I(G){let ne=WH(t,r(),G,s);if(ne){let he=[],ye=t.copyPrologue(G.statements,he);return In(he,ne),Jr(he,Bn(G.statements,R,Ki,ye)),t.updateSourceFile(G,dt(t.createNodeArray(he),G.statements))}else return An(G,R,e)}function R(G){switch(G.kind){case 271:return ku(s)>=100?N(G):void 0;case 277:return H(G);case 278:return K(G)}return G}function M(G){let ne=mI(t,G,C.checkDefined(m),i,o,s),he=[];if(ne&&he.push(ne),ku(s)===200)return t.createCallExpression(t.createIdentifier("require"),void 0,he);if(!b){let $=t.createUniqueName("_createRequire",48),Y=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports([t.createImportSpecifier(!1,t.createIdentifier("createRequire"),$)])),t.createStringLiteral("module"),void 0),oe=t.createUniqueName("__require",48),fe=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(oe,void 0,void 0,t.createCallExpression(t.cloneNode($),void 0,[t.createPropertyAccessExpression(t.createMetaProperty(102,t.createIdentifier("meta")),t.createIdentifier("url"))]))],l>=2?2:0));b=[Y,fe]}let ye=b[1].declarationList.declarations[0].name;return C.assertNode(ye,Ve),t.createCallExpression(t.cloneNode(ye),void 0,he)}function N(G){C.assert(l0(G),"import= for internal module references should be handled in an earlier transformer.");let ne;return ne=In(ne,Pr(dt(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(G.name),void 0,void 0,M(G))],l>=2?2:0)),G),G)),ne=O(ne,G),sh(ne)}function O(G,ne){return ei(ne,32)&&(G=In(G,t.createExportDeclaration(void 0,ne.isTypeOnly,t.createNamedExports([t.createExportSpecifier(!1,void 0,Sr(ne.name))])))),G}function H(G){return G.isExportEquals?ku(s)===200?Pr(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),G.expression)),G):void 0:G}function K(G){if(s.module!==void 0&&s.module>5||!G.exportClause||!Sh(G.exportClause)||!G.moduleSpecifier)return G;let ne=G.exportClause.name,he=t.getGeneratedNameForNode(ne),ye=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamespaceImport(he)),G.moduleSpecifier,G.attributes);Pr(ye,G.exportClause);let $=z6(G)?t.createExportDefault(he):t.createExportDeclaration(void 0,!1,t.createNamedExports([t.createExportSpecifier(!1,he,ne)]));return Pr($,G),[ye,$]}function Z(G,ne,he){no(ne)?((ac(ne)||im(s))&&s.importHelpers&&(g=new Map),u(G,ne,he),g=void 0):u(G,ne,he)}function V(G,ne){return ne=p(G,ne),g&&Ve(ne)&&Va(ne)&8192?ue(ne):ne}function ue(G){let ne=Sr(G),he=g.get(ne);return he||g.set(ne,he=t.createUniqueName(ne,48)),he}}var oje=A({"src/compiler/transformers/module/esnextAnd2015.ts"(){"use strict";ia()}});function Yle(e){let t=e.onSubstituteNode,r=e.onEmitNode,i=oJ(e),o=e.onSubstituteNode,s=e.onEmitNode;e.onSubstituteNode=t,e.onEmitNode=r;let l=iJ(e),u=e.onSubstituteNode,p=e.onEmitNode;e.onSubstituteNode=m,e.onEmitNode=b,e.enableSubstitution(312),e.enableEmitNotification(312);let g;return R;function m(N,O){return no(O)?(g=O,t(N,O)):g?g.impliedNodeFormat===99?o(N,O):u(N,O):t(N,O)}function b(N,O,H){return no(O)&&(g=O),g?g.impliedNodeFormat===99?s(N,O,H):p(N,O,H):r(N,O,H)}function T(N){return N.impliedNodeFormat===99?i:l}function I(N){if(N.isDeclarationFile)return N;g=N;let O=T(N)(N);return g=void 0,C.assert(no(O)),O}function R(N){return N.kind===312?I(N):M(N)}function M(N){return e.factory.createBundle(Ft(N.sourceFiles,I),N.prepends)}}var aje=A({"src/compiler/transformers/module/node.ts"(){"use strict";ia()}});function oF(e){return Oi(e)||Jo(e)||gp(e)||Qa(e)||wv(e)||wy(e)||zk(e)||nI(e)||jl(e)||yh(e)||Sc(e)||Co(e)||_l(e)||Hv(e)||tu(e)||Dm(e)||Pl(e)||j1(e)||zr(e)||Ys(e)||_r(e)||Qf(e)}function $le(e){if(wv(e)||wy(e))return t;return yh(e)||jl(e)?i:Jv(e);function t(s){let l=r(s);return l!==void 0?{diagnosticMessage:l,errorNode:e,typeName:e.name}:void 0}function r(s){return sa(e)?s.errorModuleName?s.accessibility===2?f.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263?s.errorModuleName?s.accessibility===2?f.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_property_0_of_exported_class_has_or_is_using_private_name_1:s.errorModuleName?f.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Property_0_of_exported_interface_has_or_is_using_private_name_1}function i(s){let l=o(s);return l!==void 0?{diagnosticMessage:l,errorNode:e,typeName:e.name}:void 0}function o(s){return sa(e)?s.errorModuleName?s.accessibility===2?f.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263?s.errorModuleName?s.accessibility===2?f.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_method_0_of_exported_class_has_or_is_using_private_name_1:s.errorModuleName?f.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Method_0_of_exported_interface_has_or_is_using_private_name_1}}function Jv(e){if(Oi(e)||Jo(e)||gp(e)||zr(e)||Ys(e)||_r(e)||Qa(e)||Pl(e))return r;return wv(e)||wy(e)?i:zk(e)||nI(e)||jl(e)||yh(e)||Sc(e)||j1(e)?o:Co(e)?pp(e,e.parent)&&ei(e.parent,2)?r:s:_l(e)?u:Hv(e)?p:tu(e)?g:Dm(e)||Qf(e)?m:C.assertNever(e,`Attempted to set a declaration diagnostic context for unhandled node kind: ${C.formatSyntaxKind(e.kind)}`);function t(b){if(e.kind===260||e.kind===208)return b.errorModuleName?b.accessibility===2?f.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:f.Exported_variable_0_has_or_is_using_private_name_1;if(e.kind===172||e.kind===211||e.kind===212||e.kind===226||e.kind===171||e.kind===169&&ei(e.parent,2))return sa(e)?b.errorModuleName?b.accessibility===2?f.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263||e.kind===169?b.errorModuleName?b.accessibility===2?f.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_property_0_of_exported_class_has_or_is_using_private_name_1:b.errorModuleName?f.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Property_0_of_exported_interface_has_or_is_using_private_name_1}function r(b){let T=t(b);return T!==void 0?{diagnosticMessage:T,errorNode:e,typeName:e.name}:void 0}function i(b){let T;return e.kind===178?sa(e)?T=b.errorModuleName?f.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:T=b.errorModuleName?f.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:sa(e)?T=b.errorModuleName?b.accessibility===2?f.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:T=b.errorModuleName?b.accessibility===2?f.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:T,errorNode:e.name,typeName:e.name}}function o(b){let T;switch(e.kind){case 180:T=b.errorModuleName?f.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 179:T=b.errorModuleName?f.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 181:T=b.errorModuleName?f.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 174:case 173:sa(e)?T=b.errorModuleName?b.accessibility===2?f.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:f.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:e.parent.kind===263?T=b.errorModuleName?b.accessibility===2?f.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:f.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:T=b.errorModuleName?f.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 262:T=b.errorModuleName?b.accessibility===2?f.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:f.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return C.fail("This is unknown kind for signature: "+e.kind)}return{diagnosticMessage:T,errorNode:e.name||e}}function s(b){let T=l(b);return T!==void 0?{diagnosticMessage:T,errorNode:e,typeName:e.name}:void 0}function l(b){switch(e.parent.kind){case 176:return b.errorModuleName?b.accessibility===2?f.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 180:case 185:return b.errorModuleName?f.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 179:return b.errorModuleName?f.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 181:return b.errorModuleName?f.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 174:case 173:return sa(e.parent)?b.errorModuleName?b.accessibility===2?f.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===263?b.errorModuleName?b.accessibility===2?f.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:b.errorModuleName?f.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 262:case 184:return b.errorModuleName?b.accessibility===2?f.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 178:case 177:return b.errorModuleName?b.accessibility===2?f.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return C.fail(`Unknown parent for parameter: ${C.formatSyntaxKind(e.parent.kind)}`)}}function u(){let b;switch(e.parent.kind){case 263:b=f.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 264:b=f.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 200:b=f.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 185:case 180:b=f.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 179:b=f.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 174:case 173:sa(e.parent)?b=f.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===263?b=f.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:b=f.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 184:case 262:b=f.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 195:b=f.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 265:b=f.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return C.fail("This is unknown parent for type parameter: "+e.parent.kind)}return{diagnosticMessage:b,errorNode:e,typeName:e.name}}function p(){let b;return Tc(e.parent.parent)?b=ef(e.parent)&&e.parent.token===119?f.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.parent.parent.name?f.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:f.extends_clause_of_exported_class_has_or_is_using_private_name_0:b=f.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:b,errorNode:e,typeName:Oo(e.parent.parent)}}function g(){return{diagnosticMessage:f.Import_declaration_0_is_using_private_name_1,errorNode:e,typeName:e.name}}function m(b){return{diagnosticMessage:b.errorModuleName?f.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:f.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:Qf(e)?C.checkDefined(e.typeExpression):e.type,typeName:Qf(e)?Oo(e):e.name}}}var sje=A({"src/compiler/transformers/declarations/diagnostics.ts"(){"use strict";ia()}});function Qle(e,t,r){let i=e.getCompilerOptions();return Pw(t,e,k,i,r?[r]:tr(e.getSourceFiles(),Cj),[aJ],!1).diagnostics}function aJ(e){let t=()=>C.fail("Diagnostic emitted without context"),r=t,i=!0,o=!1,s=!1,l=!1,u=!1,p,g,m,b,T,I,{factory:R}=e,M=e.getEmitHost(),N={trackSymbol:me,reportInaccessibleThisError:Ee,reportInaccessibleUniqueSymbolError:Le,reportCyclicStructureError:He,reportPrivateInBaseOfClassExpression:ie,reportLikelyUnsafeImportRequiredError:Ce,reportTruncationError:Me,moduleResolverHost:M,trackReferencedAmbientModule:Y,trackExternalModuleSymbolOfImportTypeNode:Ne,reportNonlocalAugmentation:Fe,reportNonSerializableProperty:At},O,H,K,Z,V,ue,G=e.getEmitResolver(),ne=e.getCompilerOptions(),{noResolve:he,stripInternal:ye}=ne;return je;function $(j){if(j){g=g||new Set;for(let ot of j)g.add(ot)}}function Y(j,ot){let xt=G.getTypeReferenceDirectivesForSymbol(ot,-1);if(De(xt))return $(xt);let Ye=Vn(j);Z.set(Ou(Ye),Ye)}function oe(j){let ot=cR(j),xt=ot&&G.tryFindAmbientModule(ot);if(xt?.declarations)for(let Ye of xt.declarations)Lu(Ye)&&Vn(Ye)!==K&&Y(Ye,xt)}function fe(j){if(j.accessibility===0){if(j.aliasesToMakeVisible)if(!m)m=j.aliasesToMakeVisible;else for(let ot of j.aliasesToMakeVisible)bf(m,ot)}else{let ot=r(j);if(ot)return ot.typeName?e.addDiagnostic(Or(j.errorNode||ot.errorNode,ot.diagnosticMessage,pc(ot.typeName),j.errorSymbolName,j.errorModuleName)):e.addDiagnostic(Or(j.errorNode||ot.errorNode,ot.diagnosticMessage,j.errorSymbolName,j.errorModuleName)),!0}return!1}function Ne(j){o||(I||(I=[])).push(j)}function me(j,ot,xt){if(j.flags&262144)return!1;let Ye=fe(G.isSymbolAccessible(j,ot,xt,!0));return $(G.getTypeReferenceDirectivesForSymbol(j,xt)),Ye}function ie(j){(O||H)&&e.addDiagnostic(Or(O||H,f.Property_0_of_exported_class_expression_may_not_be_private_or_protected,j))}function ve(){return O?Ds(O):H&&Oo(H)?Ds(Oo(H)):H&&Ll(H)?H.isExportEquals?"export=":"default":"(Missing)"}function Le(){(O||H)&&e.addDiagnostic(Or(O||H,f.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,ve(),"unique symbol"))}function He(){(O||H)&&e.addDiagnostic(Or(O||H,f.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,ve()))}function Ee(){(O||H)&&e.addDiagnostic(Or(O||H,f.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,ve(),"this"))}function Ce(j){(O||H)&&e.addDiagnostic(Or(O||H,f.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,ve(),j))}function Me(){(O||H)&&e.addDiagnostic(Or(O||H,f.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function Fe(j,ot,xt){var Ye;let ht=(Ye=ot.declarations)==null?void 0:Ye.find(yn=>Vn(yn)===j),Vt=tr(xt.declarations,yn=>Vn(yn)!==j);if(ht&&Vt)for(let yn of Vt)e.addDiagnostic(ka(Or(yn,f.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),Or(ht,f.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}function At(j){(O||H)&&e.addDiagnostic(Or(O||H,f.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,j))}function Se(j,ot){let xt=r;r=ht=>ht.errorNode&&oF(ht.errorNode)?Jv(ht.errorNode)(ht):{diagnosticMessage:ht.errorModuleName?f.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:f.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:ht.errorNode||j};let Ye=G.getDeclarationStatementsForSourceFile(j,KS,N,ot);return r=xt,Ye}function je(j){if(j.kind===312&&j.isDeclarationFile)return j;if(j.kind===313){o=!0,Z=new Map,V=new Map;let Oe=!1,Lt=R.createBundle(Ft(j.sourceFiles,J=>{if(J.isDeclarationFile)return;if(Oe=Oe||J.hasNoDefaultLib,K=J,p=J,m=void 0,T=!1,b=new Map,r=t,l=!1,u=!1,at(J,Z),Bt(J,V),Fp(J)||$f(J)){s=!1,i=!1;let Ge=ld(J)?R.createNodeArray(Se(J,!0)):Bn(J.statements,ui,Ki);return R.updateSourceFile(J,[R.createModuleDeclaration([R.createModifier(138)],R.createStringLiteral(v3(e.getEmitHost(),J)),R.createModuleBlock(dt(R.createNodeArray(tt(Ge)),J.statements)))],!0,[],[],!1,[])}i=!0;let pe=ld(J)?R.createNodeArray(Se(J)):Bn(J.statements,ui,Ki);return R.updateSourceFile(J,tt(pe),!0,[],[],!1,[])}),Vi(j.prepends,J=>{if(J.kind===315){let pe=nH(J,"dts",ye);return Oe=Oe||!!pe.hasNoDefaultLib,at(pe,Z),$(Ft(pe.typeReferenceDirectives,Ge=>[Ge.fileName,Ge.resolutionMode])),Bt(pe,V),pe}return J}));Lt.syntheticFileReferences=[],Lt.syntheticTypeReferences=fn(),Lt.syntheticLibReferences=yn(),Lt.hasNoDefaultLib=Oe;let w=li(Mu(YN(j,M,!0).declarationFilePath)),ae=q(Lt.syntheticFileReferences,w);return Z.forEach(ae),Lt}i=!0,l=!1,u=!1,p=j,K=j,r=t,o=!1,s=!1,T=!1,m=void 0,b=new Map,g=void 0,Z=at(K,new Map),V=Bt(K,new Map);let ot=[],xt=li(Mu(YN(j,M,!0).declarationFilePath)),Ye=q(ot,xt),ht;if(ld(K))ht=R.createNodeArray(Se(j)),Z.forEach(Ye),ue=tr(ht,_S);else{let Oe=Bn(j.statements,ui,Ki);ht=dt(R.createNodeArray(tt(Oe)),j.statements),Z.forEach(Ye),ue=tr(ht,_S),ac(j)&&(!s||l&&!u)&&(ht=dt(R.createNodeArray([...ht,Jk(R)]),ht))}let Vt=R.updateSourceFile(j,ht,!0,ot,fn(),j.hasNoDefaultLib,yn());return Vt.exportedModulesFromDeclarationEmit=I,Vt;function yn(){return Vo(V.keys(),Oe=>({fileName:Oe,pos:-1,end:-1}))}function fn(){return g?Vi(Vo(g.keys()),mn):[]}function mn([Oe,Lt]){if(ue){for(let w of ue)if(tu(w)&&Th(w.moduleReference)){let ae=w.moduleReference.expression;if(us(ae)&&ae.text===Oe)return}else if(Lc(w)&&Na(w.moduleSpecifier)&&w.moduleSpecifier.text===Oe)return}return{fileName:Oe,pos:-1,end:-1,...Lt?{resolutionMode:Lt}:void 0}}function q(Oe,Lt){return w=>{if(I?.includes(w.symbol))return;let ae;if(w.isDeclarationFile)ae=w.fileName;else{if(o&&wr(j.sourceFiles,w))return;let J=YN(w,M,!0);ae=J.declarationFilePath||J.jsFilePath||w.fileName}if(ae){let J=B5(ne,K,bo(Lt,M.getCurrentDirectory()),bo(ae,M.getCurrentDirectory()),M);if(!wp(J)){$([[J,void 0]]);return}let pe=SA(Lt,ae,M.getCurrentDirectory(),M.getCanonicalFileName,!1);if(uo(pe,"./")&&EA(pe)&&(pe=pe.substring(2)),uo(pe,"node_modules/")||I0(pe))return;Oe.push({pos:-1,end:-1,fileName:pe})}}}}function at(j,ot){return he||!BS(j)&&ld(j)||Ke(j.referencedFiles,xt=>{let Ye=M.getSourceFileFromReference(j,xt);Ye&&ot.set(Ou(Ye),Ye)}),ot}function Bt(j,ot){return Ke(j.libReferenceDirectives,xt=>{M.getLibFileFromReference(xt)&&ot.set(lh(xt.fileName),!0)}),ot}function yt(j){if(j.kind===80)return j;return j.kind===207?R.updateArrayBindingPattern(j,Bn(j.elements,ot,A6)):R.updateObjectBindingPattern(j,Bn(j.elements,ot,Qa));function ot(xt){return xt.kind===232?xt:(xt.propertyName&&Za(xt.propertyName)&&zl(xt.propertyName.expression)&&ki(xt.propertyName.expression,p),R.updateBindingElement(xt,xt.dotDotDotToken,xt.propertyName,yt(xt.name),gt(xt)?xt.initializer:void 0))}}function Qe(j,ot,xt){let Ye;T||(Ye=r,r=Jv(j));let ht=R.updateParameterDeclaration(j,cje(R,j,ot),j.dotDotDotToken,yt(j.name),G.isOptionalParameter(j)?j.questionToken||R.createToken(58):void 0,rn(j,xt||j.type,!0),nn(j));return T||(r=Ye),ht}function gt(j){return uje(j)&&G.isLiteralConstDeclaration(Lo(j))}function nn(j){if(gt(j))return G.createLiteralConstValue(Lo(j),N)}function rn(j,ot,xt){if(!xt&&_p(j,2)||gt(j))return;let Ye=j.kind===169&&(G.isRequiredInitializedParameter(j)||G.isOptionalUninitializedParameterProperty(j));if(ot&&!Ye)return rt(ot,zt,qi);if(!Lo(j))return ot?rt(ot,zt,qi):R.createKeywordTypeNode(133);if(j.kind===178)return R.createKeywordTypeNode(133);O=j.name;let ht;if(T||(ht=r,r=Jv(j)),j.kind===260||j.kind===208)return Vt(G.createTypeOfDeclaration(j,p,KS,N));if(j.kind===169||j.kind===172||j.kind===171)return gp(j)||!j.initializer?Vt(G.createTypeOfDeclaration(j,p,KS,N,Ye)):Vt(G.createTypeOfDeclaration(j,p,KS,N,Ye)||G.createTypeOfExpression(j.initializer,p,KS,N));return Vt(G.createReturnTypeOfSignatureDeclaration(j,p,KS,N));function Vt(yn){return O=void 0,T||(r=ht),yn||R.createKeywordTypeNode(133)}}function Nn(j){switch(j=Lo(j),j.kind){case 262:case 267:case 264:case 263:case 265:case 266:return!G.isDeclarationVisible(j);case 260:return!_n(j);case 271:case 272:case 278:case 277:return!1;case 175:return!0}return!1}function Xn(j){var ot;if(j.body)return!0;let xt=(ot=j.symbol.declarations)==null?void 0:ot.filter(Ye=>Sc(Ye)&&!Ye.body);return!xt||xt.indexOf(j)===xt.length-1}function _n(j){return Vc(j)?!1:ta(j.name)?Et(j.name.elements,_n):G.isDeclarationVisible(j)}function Qt(j,ot,xt){if(_p(j,2))return R.createNodeArray();let Ye=Ft(ot,ht=>Qe(ht,xt));return Ye?R.createNodeArray(Ye,ot.hasTrailingComma):R.createNodeArray()}function Yt(j,ot){let xt;if(!ot){let Ye=k1(j);Ye&&(xt=[Qe(Ye)])}if(vp(j)){let Ye;if(!ot){let ht=zC(j);if(ht){let Vt=We(j,G.getAllAccessorDeclarations(j));Ye=Qe(ht,void 0,Vt)}}Ye||(Ye=R.createParameterDeclaration(void 0,void 0,"value")),xt=In(xt,Ye)}return R.createNodeArray(xt||et)}function vi(j,ot){return _p(j,2)?void 0:Bn(ot,zt,_l)}function ho(j){return no(j)||Dm(j)||Jl(j)||Tc(j)||fd(j)||ea(j)||j1(j)||WR(j)}function ki(j,ot){let xt=G.isEntityNameVisible(j,ot);fe(xt),$(G.getTypeReferenceDirectivesForEntityName(j))}function Ro(j,ot){return Op(j)&&Op(ot)&&(j.jsDoc=ot.jsDoc),oc(j,L_(ot))}function nr(j,ot){if(ot){if(s=s||j.kind!==267&&j.kind!==205,us(ot))if(o){let xt=jie(e.getEmitHost(),G,j);if(xt)return R.createStringLiteral(xt)}else{let xt=G.getSymbolOfExternalModuleSpecifier(ot);xt&&(I||(I=[])).push(xt)}return ot}}function qr(j){if(G.isDeclarationVisible(j))if(j.moduleReference.kind===283){let ot=RC(j);return R.updateImportEqualsDeclaration(j,j.modifiers,j.isTypeOnly,j.name,R.updateExternalModuleReference(j.moduleReference,nr(j,ot)))}else{let ot=r;return r=Jv(j),ki(j.moduleReference,p),r=ot,j}}function xr(j){if(!j.importClause)return R.updateImportDeclaration(j,j.modifiers,j.importClause,nr(j,j.moduleSpecifier),ln(j.attributes));let ot=j.importClause&&j.importClause.name&&G.isDeclarationVisible(j.importClause)?j.importClause.name:void 0;if(!j.importClause.namedBindings)return ot&&R.updateImportDeclaration(j,j.modifiers,R.updateImportClause(j.importClause,j.importClause.isTypeOnly,ot,void 0),nr(j,j.moduleSpecifier),ln(j.attributes));if(j.importClause.namedBindings.kind===274){let Ye=G.isDeclarationVisible(j.importClause.namedBindings)?j.importClause.namedBindings:void 0;return ot||Ye?R.updateImportDeclaration(j,j.modifiers,R.updateImportClause(j.importClause,j.importClause.isTypeOnly,ot,Ye),nr(j,j.moduleSpecifier),ln(j.attributes)):void 0}let xt=Vi(j.importClause.namedBindings.elements,Ye=>G.isDeclarationVisible(Ye)?Ye:void 0);if(xt&&xt.length||ot)return R.updateImportDeclaration(j,j.modifiers,R.updateImportClause(j.importClause,j.importClause.isTypeOnly,ot,xt&&xt.length?R.updateNamedImports(j.importClause.namedBindings,xt):void 0),nr(j,j.moduleSpecifier),ln(j.attributes));if(G.isImportRequiredByAugmentation(j))return R.updateImportDeclaration(j,j.modifiers,void 0,nr(j,j.moduleSpecifier),ln(j.attributes))}function ln(j){let ot=s2(j);return j&&ot!==void 0?j:void 0}function tt(j){for(;De(m);){let xt=m.shift();if(!G6(xt))return C.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${C.formatSyntaxKind(xt.kind)}`);let Ye=i;i=xt.parent&&no(xt.parent)&&!(ac(xt.parent)&&o);let ht=No(xt);i=Ye,b.set(Ou(xt),ht)}return Bn(j,ot,Ki);function ot(xt){if(G6(xt)){let Ye=Ou(xt);if(b.has(Ye)){let ht=b.get(Ye);return b.delete(Ye),ht&&((Do(ht)?Et(ht,I6):I6(ht))&&(l=!0),no(xt.parent)&&(Do(ht)?Et(ht,fL):fL(ht))&&(s=!0)),ht}}return xt}}function zt(j){if(Ue(j)||qu(j)&&(Nn(j)||By(j)&&!G.isLateBound(Lo(j)))||ea(j)&&G.isImplementationOfOverload(j)||Mae(j))return;let ot;ho(j)&&(ot=p,p=j);let xt=r,Ye=oF(j),ht=T,Vt=(j.kind===187||j.kind===200)&&j.parent.kind!==265;if((jl(j)||yh(j))&&_p(j,2))return j.symbol&&j.symbol.declarations&&j.symbol.declarations[0]!==j?void 0:yn(R.createPropertyDeclaration(Nt(j),j.name,void 0,void 0,void 0));if(Ye&&!T&&(r=Jv(j)),rI(j)&&ki(j.exprName,p),Vt&&(T=!0),pje(j))switch(j.kind){case 233:{(Qd(j.expression)||zl(j.expression))&&ki(j.expression,p);let fn=An(j,zt,e);return yn(R.updateExpressionWithTypeArguments(fn,fn.expression,fn.typeArguments))}case 183:{ki(j.typeName,p);let fn=An(j,zt,e);return yn(R.updateTypeReferenceNode(fn,fn.typeName,fn.typeArguments))}case 180:return yn(R.updateConstructSignature(j,vi(j,j.typeParameters),Qt(j,j.parameters),rn(j,j.type)));case 176:{let fn=R.createConstructorDeclaration(Nt(j),Qt(j,j.parameters,0),void 0);return yn(fn)}case 174:{if(Xi(j.name))return yn(void 0);let fn=R.createMethodDeclaration(Nt(j),void 0,j.name,j.questionToken,vi(j,j.typeParameters),Qt(j,j.parameters),rn(j,j.type),void 0);return yn(fn)}case 177:{if(Xi(j.name))return yn(void 0);let fn=We(j,G.getAllAccessorDeclarations(j));return yn(R.updateGetAccessorDeclaration(j,Nt(j),j.name,Yt(j,_p(j,2)),rn(j,fn),void 0))}case 178:return Xi(j.name)?yn(void 0):yn(R.updateSetAccessorDeclaration(j,Nt(j),j.name,Yt(j,_p(j,2)),void 0));case 172:return Xi(j.name)?yn(void 0):yn(R.updatePropertyDeclaration(j,Nt(j),j.name,j.questionToken,rn(j,j.type),nn(j)));case 171:return Xi(j.name)?yn(void 0):yn(R.updatePropertySignature(j,Nt(j),j.name,j.questionToken,rn(j,j.type)));case 173:return Xi(j.name)?yn(void 0):yn(R.updateMethodSignature(j,Nt(j),j.name,j.questionToken,vi(j,j.typeParameters),Qt(j,j.parameters),rn(j,j.type)));case 179:return yn(R.updateCallSignature(j,vi(j,j.typeParameters),Qt(j,j.parameters),rn(j,j.type)));case 181:return yn(R.updateIndexSignature(j,Nt(j),Qt(j,j.parameters),rt(j.type,zt,qi)||R.createKeywordTypeNode(133)));case 260:return ta(j.name)?ja(j.name):(Vt=!0,T=!0,yn(R.updateVariableDeclaration(j,j.name,void 0,rn(j,j.type),nn(j))));case 168:return Rn(j)&&(j.default||j.constraint)?yn(R.updateTypeParameterDeclaration(j,j.modifiers,j.name,void 0,void 0)):yn(An(j,zt,e));case 194:{let fn=rt(j.checkType,zt,qi),mn=rt(j.extendsType,zt,qi),q=p;p=j.trueType;let Oe=rt(j.trueType,zt,qi);p=q;let Lt=rt(j.falseType,zt,qi);return C.assert(fn),C.assert(mn),C.assert(Oe),C.assert(Lt),yn(R.updateConditionalTypeNode(j,fn,mn,Oe,Lt))}case 184:return yn(R.updateFunctionTypeNode(j,Bn(j.typeParameters,zt,_l),Qt(j,j.parameters),C.checkDefined(rt(j.type,zt,qi))));case 185:return yn(R.updateConstructorTypeNode(j,Nt(j),Bn(j.typeParameters,zt,_l),Qt(j,j.parameters),C.checkDefined(rt(j.type,zt,qi))));case 205:return zy(j)?(oe(j),yn(R.updateImportTypeNode(j,R.updateLiteralTypeNode(j.argument,nr(j,j.argument.literal)),j.attributes,j.qualifier,Bn(j.typeArguments,zt,qi),j.isTypeOf))):yn(j);default:C.assertNever(j,`Attempted to process unhandled node kind: ${C.formatSyntaxKind(j.kind)}`)}return iI(j)&&Es(K,j.pos).line===Es(K,j.end).line&&fr(j,1),yn(An(j,zt,e));function yn(fn){return fn&&Ye&&By(j)&&wn(j),ho(j)&&(p=ot),Ye&&!T&&(r=xt),Vt&&(T=ht),fn===j?fn:fn&&Pr(Ro(fn,j),j)}}function Rn(j){return j.parent.kind===174&&_p(j.parent,2)}function ui(j){if(!dje(j)||Ue(j))return;switch(j.kind){case 278:return no(j.parent)&&(s=!0),u=!0,oe(j),R.updateExportDeclaration(j,j.modifiers,j.isTypeOnly,j.exportClause,nr(j,j.moduleSpecifier),ln(j.attributes));case 277:{if(no(j.parent)&&(s=!0),u=!0,j.expression.kind===80)return j;{let xt=R.createUniqueName("_default",16);r=()=>({diagnosticMessage:f.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:j}),H=j;let Ye=R.createVariableDeclaration(xt,void 0,G.createTypeOfExpression(j.expression,j,KS,N),void 0);H=void 0;let ht=R.createVariableStatement(i?[R.createModifier(138)]:[],R.createVariableDeclarationList([Ye],2));return Ro(ht,j),Nk(j),[ht,R.updateExportAssignment(j,j.modifiers,xt)]}}}let ot=No(j);return b.set(Ou(j),ot),j}function bi(j){if(tu(j)||_p(j,2048)||!Cm(j))return j;let ot=R.createModifiersFromModifierFlags(cd(j)&131039);return R.replaceModifiers(j,ot)}function ro(j,ot,xt,Ye){let ht=R.updateModuleDeclaration(j,ot,xt,Ye);if(Lu(ht)||ht.flags&32)return ht;let Vt=R.createModuleDeclaration(ht.modifiers,ht.name,ht.body,ht.flags|32);return Pr(Vt,ht),dt(Vt,ht),Vt}function No(j){if(m)for(;Mx(m,j););if(Ue(j))return;switch(j.kind){case 271:{let yn=qr(j);return yn&&oe(j),yn}case 272:{let yn=xr(j);return yn&&oe(j),yn}}if(qu(j)&&Nn(j)||ea(j)&&G.isImplementationOfOverload(j))return;let ot;ho(j)&&(ot=p,p=j);let xt=oF(j),Ye=r;xt&&(r=Jv(j));let ht=i;switch(j.kind){case 265:{i=!1;let yn=Vt(R.updateTypeAliasDeclaration(j,Nt(j),j.name,Bn(j.typeParameters,zt,_l),C.checkDefined(rt(j.type,zt,qi))));return i=ht,yn}case 264:return Vt(R.updateInterfaceDeclaration(j,Nt(j),j.name,vi(j,j.typeParameters),pt(j.heritageClauses),Bn(j.members,zt,dS)));case 262:{let yn=Vt(R.updateFunctionDeclaration(j,Nt(j),void 0,j.name,vi(j,j.typeParameters),Qt(j,j.parameters),rn(j,j.type),void 0));if(yn&&G.isExpandoFunctionDeclaration(j)&&Xn(j)){let fn=G.getPropertiesOfContainerFunction(j),mn=Ah.createModuleDeclaration(void 0,yn.name||R.createIdentifier("_default"),R.createModuleBlock([]),32);qa(mn,p),mn.locals=ua(fn),mn.symbol=fn[0].parent;let q=[],Oe=Vi(fn,Ge=>{if(!r7(Ge.valueDeclaration))return;let ke=Hi(Ge.escapedName);if(!$p(ke,99))return;r=Jv(Ge.valueDeclaration);let Dt=G.createTypeOfDeclaration(Ge.valueDeclaration,mn,KS,N);r=Ye;let Pt=OA(ke),Kt=Pt?R.getGeneratedNameForNode(Ge.valueDeclaration):R.createIdentifier(ke);Pt&&q.push([Kt,ke]);let Tn=R.createVariableDeclaration(Kt,void 0,Dt,void 0);return R.createVariableStatement(Pt?void 0:[R.createToken(95)],R.createVariableDeclarationList([Tn]))});q.length?Oe.push(R.createExportDeclaration(void 0,!1,R.createNamedExports(Ft(q,([Ge,ke])=>R.createExportSpecifier(!1,Ge,ke))))):Oe=Vi(Oe,Ge=>R.replaceModifiers(Ge,0));let Lt=R.createModuleDeclaration(Nt(j),j.name,R.createModuleBlock(Oe),32);if(!_p(yn,2048))return[yn,Lt];let w=R.createModifiersFromModifierFlags(cd(yn)&-2081|128),ae=R.updateFunctionDeclaration(yn,w,void 0,yn.name,yn.typeParameters,yn.parameters,yn.type,void 0),J=R.updateModuleDeclaration(Lt,w,Lt.name,Lt.body),pe=R.createExportAssignment(void 0,!1,Lt.name);return no(j.parent)&&(s=!0),u=!0,[ae,J,pe]}else return yn}case 267:{i=!1;let yn=j.body;if(yn&&yn.kind===268){let fn=l,mn=u;u=!1,l=!1;let q=Bn(yn.statements,ui,Ki),Oe=tt(q);j.flags&33554432&&(l=!1),!I_(j)&&!ft(Oe)&&!u&&(l?Oe=R.createNodeArray([...Oe,Jk(R)]):Oe=Bn(Oe,bi,Ki));let Lt=R.updateModuleBlock(yn,Oe);i=ht,l=fn,u=mn;let w=Nt(j);return Vt(ro(j,w,I1(j)?nr(j,j.name):j.name,Lt))}else{i=ht;let fn=Nt(j);i=!1,rt(yn,ui);let mn=Ou(yn),q=b.get(mn);return b.delete(mn),Vt(ro(j,fn,j.name,q))}}case 263:{O=j.name,H=j;let yn=R.createNodeArray(Nt(j)),fn=vi(j,j.typeParameters),mn=ig(j),q;if(mn){let pe=r;q=CM(Zi(mn.parameters,Ge=>{if(!ei(Ge,31)||Ue(Ge))return;if(r=Jv(Ge),Ge.name.kind===80)return Ro(R.createPropertyDeclaration(Nt(Ge),Ge.name,Ge.questionToken,rn(Ge,Ge.type),nn(Ge)),Ge);return ke(Ge.name);function ke(Dt){let Pt;for(let Kt of Dt.elements)Vc(Kt)||(ta(Kt.name)&&(Pt=xo(Pt,ke(Kt.name))),Pt=Pt||[],Pt.push(R.createPropertyDeclaration(Nt(Ge),Kt.name,void 0,rn(Kt,void 0),void 0)));return Pt}})),r=pe}let Lt=Et(j.members,pe=>!!pe.name&&Xi(pe.name))?[R.createPropertyDeclaration(void 0,R.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,w=xo(xo(Lt,q),Bn(j.members,zt,$c)),ae=R.createNodeArray(w),J=x_(j);if(J&&!zl(J.expression)&&J.expression.kind!==106){let pe=j.name?Hi(j.name.escapedText):"default",Ge=R.createUniqueName(`${pe}_base`,16);r=()=>({diagnosticMessage:f.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:J,typeName:j.name});let ke=R.createVariableDeclaration(Ge,void 0,G.createTypeOfExpression(J.expression,j,KS,N),void 0),Dt=R.createVariableStatement(i?[R.createModifier(138)]:[],R.createVariableDeclarationList([ke],2)),Pt=R.createNodeArray(Ft(j.heritageClauses,Kt=>{if(Kt.token===96){let Tn=r;r=Jv(Kt.types[0]);let On=R.updateHeritageClause(Kt,Ft(Kt.types,Gn=>R.updateExpressionWithTypeArguments(Gn,Ge,Bn(Gn.typeArguments,zt,qi))));return r=Tn,On}return R.updateHeritageClause(Kt,Bn(R.createNodeArray(tr(Kt.types,Tn=>zl(Tn.expression)||Tn.expression.kind===106)),zt,Hv))}));return[Dt,Vt(R.updateClassDeclaration(j,yn,j.name,fn,Pt,ae))]}else{let pe=pt(j.heritageClauses);return Vt(R.updateClassDeclaration(j,yn,j.name,fn,pe,ae))}}case 243:return Vt(_a(j));case 266:return Vt(R.updateEnumDeclaration(j,R.createNodeArray(Nt(j)),j.name,R.createNodeArray(Vi(j.members,yn=>{if(Ue(yn))return;let fn=G.getConstantValue(yn),mn=fn===void 0?void 0:typeof fn=="string"?R.createStringLiteral(fn):fn<0?R.createPrefixUnaryExpression(41,R.createNumericLiteral(-fn)):R.createNumericLiteral(fn);return Ro(R.updateEnumMember(yn,yn.name,mn),yn)}))))}return C.assertNever(j,`Unhandled top-level node in declaration emit: ${C.formatSyntaxKind(j.kind)}`);function Vt(yn){return ho(j)&&(p=ot),xt&&(r=Ye),j.kind===267&&(i=ht),yn===j?yn:(H=void 0,O=void 0,yn&&Pr(Ro(yn,j),j))}}function _a(j){if(!Ke(j.declarationList.declarations,_n))return;let ot=Bn(j.declarationList.declarations,zt,Oi);if(!De(ot))return;let xt=R.createNodeArray(Nt(j)),Ye;return xL(j.declarationList)||IL(j.declarationList)?(Ye=R.createVariableDeclarationList(ot,2),Pr(Ye,j.declarationList),dt(Ye,j.declarationList),oc(Ye,j.declarationList)):Ye=R.updateVariableDeclarationList(j.declarationList,ot),R.updateVariableStatement(j,xt,Ye)}function ja(j){return ts(Vi(j.elements,ot=>En(ot)))}function En(j){if(j.kind!==232&&j.name)return _n(j)?ta(j.name)?ja(j.name):R.createVariableDeclaration(j.name,void 0,rn(j,void 0),void 0):void 0}function wn(j){let ot;T||(ot=r,r=$le(j)),O=j.name,C.assert(G.isLateBound(Lo(j)));let Ye=j.name.expression;ki(Ye,p),T||(r=ot),O=void 0}function Ue(j){return!!ye&&!!j&&rj(j,K)}function mt(j){return Ll(j)||Kl(j)}function ft(j){return Et(j,mt)}function Nt(j){let ot=cd(j),xt=le(j);return ot===xt?xw(j.modifiers,Ye=>ai(Ye,Ia),Ia):R.createModifiersFromModifierFlags(xt)}function le(j){let ot=130030,xt=i&&!lje(j)?128:0,Ye=j.parent.kind===312;return(!Ye||o&&Ye&&ac(j.parent))&&(ot^=128,xt=0),SIe(j,ot,xt)}function We(j,ot){let xt=Zle(j);return!xt&&j!==ot.firstAccessor&&(xt=Zle(ot.firstAccessor),r=Jv(ot.firstAccessor)),!xt&&ot.secondAccessor&&j!==ot.secondAccessor&&(xt=Zle(ot.secondAccessor),r=Jv(ot.secondAccessor)),xt}function pt(j){return R.createNodeArray(tr(Ft(j,ot=>R.updateHeritageClause(ot,Bn(R.createNodeArray(tr(ot.types,xt=>zl(xt.expression)||ot.token===96&&xt.expression.kind===106)),zt,Hv))),ot=>ot.types&&!!ot.types.length))}}function lje(e){return e.kind===264}function cje(e,t,r,i){return e.createModifiersFromModifierFlags(SIe(t,r,i))}function SIe(e,t=131070,r=0){let i=cd(e)&t|r;return i&2048&&!(i&32)&&(i^=32),i&2048&&i&128&&(i^=128),i}function Zle(e){if(e)return e.kind===177?e.type:e.parameters.length>0?e.parameters[0].type:void 0}function uje(e){switch(e.kind){case 172:case 171:return!_p(e,2);case 169:case 260:return!0}return!1}function dje(e){switch(e.kind){case 262:case 267:case 271:case 264:case 263:case 265:case 266:case 243:case 272:case 278:case 277:return!0}return!1}function pje(e){switch(e.kind){case 180:case 176:case 174:case 177:case 178:case 172:case 171:case 173:case 179:case 181:case 260:case 168:case 233:case 183:case 194:case 184:case 185:case 205:return!0}return!1}var KS,fje=A({"src/compiler/transformers/declarations.ts"(){"use strict";ia(),ile(),KS=531469}});function mje(e){switch(e){case 99:case 7:case 6:case 5:case 200:return oJ;case 4:return Xle;case 100:case 199:return Yle;default:return iJ}}function sJ(e,t,r){return{scriptTransformers:_je(e,t,r),declarationTransformers:hje(t)}}function _je(e,t,r){if(r)return et;let i=as(e),o=ku(e),s=pN(e),l=[];return Jr(l,t&&Ft(t.before,AIe)),l.push(Nle),e.experimentalDecorators&&l.push(Lle),G3(e)&&l.push(Ule),i<99&&l.push(Ble),!e.experimentalDecorators&&(i<99||!s)&&l.push(kle),l.push(Ple),i<8&&l.push(zle),i<7&&l.push(Wle),i<6&&l.push(Fle),i<5&&l.push(Ole),i<4&&l.push(wle),i<3&&l.push(Hle),i<2&&(l.push(qle),l.push(Kle)),l.push(mje(o)),i<1&&l.push(Jle),Jr(l,t&&Ft(t.after,AIe)),l}function hje(e){let t=[];return t.push(aJ),Jr(t,e&&Ft(e.afterDeclarations,vje)),t}function gje(e){return t=>AH(t)?e.transformBundle(t):e.transformSourceFile(t)}function TIe(e,t){return r=>{let i=e(r);return typeof i=="function"?t(r,i):gje(i)}}function AIe(e){return TIe(e,Nm)}function vje(e){return TIe(e,(t,r)=>r)}function JN(e,t){return t}function Nw(e,t,r){r(e,t)}function Pw(e,t,r,i,o,s,l){var u,p;let g=new Array(363),m,b,T,I=0,R=[],M=[],N=[],O=[],H=0,K=!1,Z=[],V=0,ue,G,ne=JN,he=Nw,ye=0,$=[],Y={factory:r,getCompilerOptions:()=>i,getEmitResolver:()=>e,getEmitHost:()=>t,getEmitHelperFactory:Ed(()=>vae(Y)),startLexicalEnvironment:Se,suspendLexicalEnvironment:je,resumeLexicalEnvironment:at,endLexicalEnvironment:Bt,setLexicalEnvironmentFlags:yt,getLexicalEnvironmentFlags:Qe,hoistVariableDeclaration:Me,hoistFunctionDeclaration:Fe,addInitializationStatement:At,startBlockScope:gt,endBlockScope:nn,addBlockScopedVariable:rn,requestEmitHelper:Nn,readEmitHelpers:Xn,enableSubstitution:ie,enableEmitNotification:He,isSubstitutionEnabled:ve,isEmitNotificationEnabled:Ee,get onSubstituteNode(){return ne},set onSubstituteNode(Qt){C.assert(ye<1,"Cannot modify transformation hooks after initialization has completed."),C.assert(Qt!==void 0,"Value must not be 'undefined'"),ne=Qt},get onEmitNode(){return he},set onEmitNode(Qt){C.assert(ye<1,"Cannot modify transformation hooks after initialization has completed."),C.assert(Qt!==void 0,"Value must not be 'undefined'"),he=Qt},addDiagnostic(Qt){$.push(Qt)}};for(let Qt of o)aH(Vn(Lo(Qt)));nl("beforeTransform");let oe=s.map(Qt=>Qt(Y)),fe=Qt=>{for(let Yt of oe)Qt=Yt(Qt);return Qt};ye=1;let Ne=[];for(let Qt of o)(u=lr)==null||u.push(lr.Phase.Emit,"transformNodes",Qt.kind===312?{path:Qt.path}:{kind:Qt.kind,pos:Qt.pos,end:Qt.end}),Ne.push((l?fe:me)(Qt)),(p=lr)==null||p.pop();return ye=2,nl("afterTransform"),Yp("transformTime","beforeTransform","afterTransform"),{transformed:Ne,substituteNode:Le,emitNodeWithNotification:Ce,isEmitNotificationEnabled:Ee,dispose:_n,diagnostics:$};function me(Qt){return Qt&&(!no(Qt)||!Qt.isDeclarationFile)?fe(Qt):Qt}function ie(Qt){C.assert(ye<2,"Cannot modify the transformation context after transformation has completed."),g[Qt]|=1}function ve(Qt){return(g[Qt.kind]&1)!==0&&(Va(Qt)&8)===0}function Le(Qt,Yt){return C.assert(ye<3,"Cannot substitute a node after the result is disposed."),Yt&&ve(Yt)&&ne(Qt,Yt)||Yt}function He(Qt){C.assert(ye<2,"Cannot modify the transformation context after transformation has completed."),g[Qt]|=2}function Ee(Qt){return(g[Qt.kind]&2)!==0||(Va(Qt)&4)!==0}function Ce(Qt,Yt,vi){C.assert(ye<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),Yt&&(Ee(Yt)?he(Qt,Yt,vi):vi(Qt,Yt))}function Me(Qt){C.assert(ye>0,"Cannot modify the lexical environment during initialization."),C.assert(ye<2,"Cannot modify the lexical environment after transformation has completed.");let Yt=fr(r.createVariableDeclaration(Qt),128);m?m.push(Yt):m=[Yt],I&1&&(I|=2)}function Fe(Qt){C.assert(ye>0,"Cannot modify the lexical environment during initialization."),C.assert(ye<2,"Cannot modify the lexical environment after transformation has completed."),fr(Qt,2097152),b?b.push(Qt):b=[Qt]}function At(Qt){C.assert(ye>0,"Cannot modify the lexical environment during initialization."),C.assert(ye<2,"Cannot modify the lexical environment after transformation has completed."),fr(Qt,2097152),T?T.push(Qt):T=[Qt]}function Se(){C.assert(ye>0,"Cannot modify the lexical environment during initialization."),C.assert(ye<2,"Cannot modify the lexical environment after transformation has completed."),C.assert(!K,"Lexical environment is suspended."),R[H]=m,M[H]=b,N[H]=T,O[H]=I,H++,m=void 0,b=void 0,T=void 0,I=0}function je(){C.assert(ye>0,"Cannot modify the lexical environment during initialization."),C.assert(ye<2,"Cannot modify the lexical environment after transformation has completed."),C.assert(!K,"Lexical environment is already suspended."),K=!0}function at(){C.assert(ye>0,"Cannot modify the lexical environment during initialization."),C.assert(ye<2,"Cannot modify the lexical environment after transformation has completed."),C.assert(K,"Lexical environment is not suspended."),K=!1}function Bt(){C.assert(ye>0,"Cannot modify the lexical environment during initialization."),C.assert(ye<2,"Cannot modify the lexical environment after transformation has completed."),C.assert(!K,"Lexical environment is suspended.");let Qt;if(m||b||T){if(b&&(Qt=[...b]),m){let Yt=r.createVariableStatement(void 0,r.createVariableDeclarationList(m));fr(Yt,2097152),Qt?Qt.push(Yt):Qt=[Yt]}T&&(Qt?Qt=[...Qt,...T]:Qt=[...T])}return H--,m=R[H],b=M[H],T=N[H],I=O[H],H===0&&(R=[],M=[],N=[],O=[]),Qt}function yt(Qt,Yt){I=Yt?I|Qt:I&~Qt}function Qe(){return I}function gt(){C.assert(ye>0,"Cannot start a block scope during initialization."),C.assert(ye<2,"Cannot start a block scope after transformation has completed."),Z[V]=ue,V++,ue=void 0}function nn(){C.assert(ye>0,"Cannot end a block scope during initialization."),C.assert(ye<2,"Cannot end a block scope after transformation has completed.");let Qt=Et(ue)?[r.createVariableStatement(void 0,r.createVariableDeclarationList(ue.map(Yt=>r.createVariableDeclaration(Yt)),1))]:void 0;return V--,ue=Z[V],V===0&&(Z=[]),Qt}function rn(Qt){C.assert(V>0,"Cannot add a block scoped variable outside of an iteration body."),(ue||(ue=[])).push(Qt)}function Nn(Qt){if(C.assert(ye>0,"Cannot modify the transformation context during initialization."),C.assert(ye<2,"Cannot modify the transformation context after transformation has completed."),C.assert(!Qt.scoped,"Cannot request a scoped emit helper."),Qt.dependencies)for(let Yt of Qt.dependencies)Nn(Yt);G=In(G,Qt)}function Xn(){C.assert(ye>0,"Cannot modify the transformation context during initialization."),C.assert(ye<2,"Cannot modify the transformation context after transformation has completed.");let Qt=G;return G=void 0,Qt}function _n(){if(ye<3){for(let Qt of o)aH(Vn(Lo(Qt)));m=void 0,R=void 0,b=void 0,M=void 0,ne=void 0,he=void 0,G=void 0,ye=3}}}var lJ,KN,yje=A({"src/compiler/transformer.ts"(){"use strict";ia(),oS(),lJ={scriptTransformers:et,declarationTransformers:et},KN={factory:k,getCompilerOptions:()=>({}),getEmitResolver:Ko,getEmitHost:Ko,getEmitHelperFactory:Ko,startLexicalEnvironment:$a,resumeLexicalEnvironment:$a,suspendLexicalEnvironment:$a,endLexicalEnvironment:Xb,setLexicalEnvironmentFlags:$a,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:$a,hoistFunctionDeclaration:$a,addInitializationStatement:$a,startBlockScope:$a,endBlockScope:Xb,addBlockScopedVariable:$a,requestEmitHelper:$a,readEmitHelpers:Ko,enableSubstitution:$a,enableEmitNotification:$a,isSubstitutionEnabled:Ko,isEmitNotificationEnabled:Ko,onSubstituteNode:JN,onEmitNode:Nw,addDiagnostic:$a}}});function ece(e){return Tl(e,".tsbuildinfo")}function cJ(e,t,r,i=!1,o,s){let l=Do(r)?r:nU(e,r,i),u=e.getCompilerOptions();if(Ps(u)){let p=e.getPrependNodes();if(l.length||p.length){let g=k.createBundle(l,p),m=t(YN(g,e,i),g);if(m)return m}}else{if(!o)for(let p of l){let g=t(YN(p,e,i),p);if(g)return g}if(s){let p=Kv(u);if(p)return t({buildInfoPath:p},void 0)}}}function Kv(e){let t=e.configFilePath;if(!dN(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;let r=Ps(e),i;if(r)i=Td(r);else{if(!t)return;let o=Td(t);i=e.outDir?e.rootDir?Dy(e.outDir,bm(e.rootDir,o,!0)):Zr(e.outDir,rc(o)):o}return i+".tsbuildinfo"}function XN(e,t){let r=Ps(e),i=e.emitDeclarationOnly?void 0:r,o=i&&IIe(i,e),s=t||xf(e)?Td(r)+".d.ts":void 0,l=s&&Tk(e)?s+".map":void 0,u=Kv(e);return{jsFilePath:i,sourceMapFilePath:o,declarationFilePath:s,declarationMapPath:l,buildInfoPath:u}}function YN(e,t,r){let i=t.getCompilerOptions();if(e.kind===313)return XN(i,r);{let o=Uie(e.fileName,t,aF(e.fileName,i)),s=$f(e),l=s&&Pg(e.fileName,o,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0,u=i.emitDeclarationOnly||l?void 0:o,p=!u||$f(e)?void 0:IIe(u,i),g=r||xf(i)&&!s?Hie(e.fileName,t):void 0,m=g&&Tk(i)?g+".map":void 0;return{jsFilePath:u,sourceMapFilePath:p,declarationFilePath:g,declarationMapPath:m,buildInfoPath:void 0}}}function IIe(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function aF(e,t){return Tl(e,".json")?".json":t.jsx===1&&Ec(e,[".jsx",".tsx"])?".jsx":Ec(e,[".mts",".mjs"])?".mjs":Ec(e,[".cts",".cjs"])?".cjs":".js"}function xIe(e,t,r,i){return r?Dy(r,bm(i(),e,t)):e}function $N(e,t,r,i=()=>a2(t,r)){return uJ(e,t.options,r,i)}function uJ(e,t,r,i){return m0(xIe(e,r,t.declarationDir||t.outDir,i),b3(e))}function RIe(e,t,r,i=()=>a2(t,r)){if(t.options.emitDeclarationOnly)return;let o=Tl(e,".json"),s=dJ(e,t.options,r,i);return!o||Pg(e,s,C.checkDefined(t.options.configFilePath),r)!==0?s:void 0}function dJ(e,t,r,i){return m0(xIe(e,r,t.outDir,i),aF(e,t))}function DIe(){let e;return{addOutput:t,getOutputs:r};function t(i){i&&(e||(e=[])).push(i)}function r(){return e||et}}function CIe(e,t){let{jsFilePath:r,sourceMapFilePath:i,declarationFilePath:o,declarationMapPath:s,buildInfoPath:l}=XN(e.options,!1);t(r),t(i),t(o),t(s),t(l)}function NIe(e,t,r,i,o){if(Su(t))return;let s=RIe(t,e,r,o);if(i(s),!Tl(t,".json")&&(s&&e.options.sourceMap&&i(`${s}.map`),xf(e.options))){let l=$N(t,e,r,o);i(l),e.options.declarationMap&&i(`${l}.map`)}}function QN(e,t,r,i,o){let s;return e.rootDir?(s=bo(e.rootDir,r),o?.(e.rootDir)):e.composite&&e.configFilePath?(s=li(Mu(e.configFilePath)),o?.(s)):s=ace(t(),r,i),s&&s[s.length-1]!==il&&(s+=il),s}function a2({options:e,fileNames:t},r){return QN(e,()=>tr(t,i=>!(e.noEmitForJsFiles&&Ec(i,LR))&&!Su(i)),li(Mu(C.checkDefined(e.configFilePath))),Pu(!r))}function sF(e,t){let{addOutput:r,getOutputs:i}=DIe();if(Ps(e.options))CIe(e,r);else{let o=Ed(()=>a2(e,t));for(let s of e.fileNames)NIe(e,s,t,r,o);r(Kv(e.options))}return i()}function PIe(e,t,r){t=va(t),C.assert(wr(e.fileNames,t),"Expected fileName to be present in command line");let{addOutput:i,getOutputs:o}=DIe();return Ps(e.options)?CIe(e,i):NIe(e,t,r,i),o()}function pJ(e,t){if(Ps(e.options)){let{jsFilePath:o,declarationFilePath:s}=XN(e.options,!1);return C.checkDefined(o||s,`project ${e.options.configFilePath} expected to have at least one output`)}let r=Ed(()=>a2(e,t));for(let o of e.fileNames){if(Su(o))continue;let s=RIe(o,e,t,r);if(s)return s;if(!Tl(o,".json")&&xf(e.options))return $N(o,e,t,r)}let i=Kv(e.options);return i||C.fail(`project ${e.options.configFilePath} expected to have at least one output`)}function lF(e,t,r,{scriptTransformers:i,declarationTransformers:o},s,l,u){var p=t.getCompilerOptions(),g=p.sourceMap||p.inlineSourceMap||Tk(p)?[]:void 0,m=p.listEmittedFiles?[]:void 0,b=vR(),T=Gv(p),I=ik(T),{enter:R,exit:M}=yG("printTime","beforePrint","afterPrint"),N,O=!1;return R(),cJ(t,H,nU(t,r,u),u,l,!r),M(),{emitSkipped:O,diagnostics:b.getDiagnostics(),emittedFiles:m,sourceMaps:g};function H({jsFilePath:Y,sourceMapFilePath:oe,declarationFilePath:fe,declarationMapPath:Ne,buildInfoPath:me},ie){var ve,Le,He,Ee,Ce,Me;let Fe;me&&ie&&AH(ie)&&(Fe=li(bo(me,t.getCurrentDirectory())),N={commonSourceDirectory:At(t.getCommonSourceDirectory()),sourceFiles:ie.sourceFiles.map(Se=>At(bo(Se.fileName,t.getCurrentDirectory())))}),(ve=lr)==null||ve.push(lr.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:Y}),Z(ie,Y,oe,At),(Le=lr)==null||Le.pop(),(He=lr)==null||He.push(lr.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:fe}),V(ie,fe,Ne,At),(Ee=lr)==null||Ee.pop(),(Ce=lr)==null||Ce.push(lr.Phase.Emit,"emitBuildInfo",{buildInfoPath:me}),K(N,me),(Me=lr)==null||Me.pop();function At(Se){return v1(bm(Fe,Se,t.getCanonicalFileName))}}function K(Y,oe){if(!oe||r||O)return;if(t.isEmitBlocked(oe)){O=!0;return}let fe=t.getBuildInfo(Y)||Mw(void 0,Y);FC(t,b,oe,tce(fe),!1,void 0,{buildInfo:fe}),m?.push(oe)}function Z(Y,oe,fe,Ne){if(!Y||s||!oe)return;if(t.isEmitBlocked(oe)||p.noEmit){O=!0;return}let me=Pw(e,t,k,p,[Y],i,!1),ie={removeComments:p.removeComments,newLine:p.newLine,noEmitHelpers:p.noEmitHelpers,module:p.module,target:p.target,sourceMap:p.sourceMap,inlineSourceMap:p.inlineSourceMap,inlineSources:p.inlineSources,extendedDiagnostics:p.extendedDiagnostics,writeBundleFileInfo:!!N,relativeToBuildInfo:Ne},ve=x0(ie,{hasGlobalName:e.hasGlobalName,onEmitNode:me.emitNodeWithNotification,isEmitNotificationEnabled:me.isEmitNotificationEnabled,substituteNode:me.substituteNode});C.assert(me.transformed.length===1,"Should only see one output from the transform"),G(oe,fe,me,ve,p),me.dispose(),N&&(N.js=ve.bundleFileInfo),m&&(m.push(oe),fe&&m.push(fe))}function V(Y,oe,fe,Ne){if(!Y||s===0)return;if(!oe){(s||p.emitDeclarationOnly)&&(O=!0);return}let me=no(Y)?[Y]:Y.sourceFiles,ie=u?me:tr(me,Cj),ve=Ps(p)?[k.createBundle(ie,no(Y)?void 0:Y.prepends)]:ie;s&&!xf(p)&&ie.forEach(ue);let Le=Pw(e,t,k,p,ve,o,!1);if(De(Le.diagnostics))for(let Ee of Le.diagnostics)b.add(Ee);let He=!!Le.diagnostics&&!!Le.diagnostics.length||!!t.isEmitBlocked(oe)||!!p.noEmit;if(O=O||He,!He||u){C.assert(Le.transformed.length===1,"Should only see one output from the decl transform");let Ee={removeComments:p.removeComments,newLine:p.newLine,noEmitHelpers:!0,module:p.module,target:p.target,sourceMap:!u&&p.declarationMap,inlineSourceMap:p.inlineSourceMap,extendedDiagnostics:p.extendedDiagnostics,onlyPrintJsDocStyle:!0,omitBraceSourceMapPositions:!0,writeBundleFileInfo:!!N,recordInternalSection:!!N,relativeToBuildInfo:Ne},Ce=x0(Ee,{hasGlobalName:e.hasGlobalName,onEmitNode:Le.emitNodeWithNotification,isEmitNotificationEnabled:Le.isEmitNotificationEnabled,substituteNode:Le.substituteNode});G(oe,fe,Le,Ce,{sourceMap:Ee.sourceMap,sourceRoot:p.sourceRoot,mapRoot:p.mapRoot,extendedDiagnostics:p.extendedDiagnostics}),m&&(m.push(oe),fe&&m.push(fe)),N&&(N.dts=Ce.bundleFileInfo)}Le.dispose()}function ue(Y){if(Ll(Y)){Y.expression.kind===80&&e.collectLinkedAliases(Y.expression,!0);return}else if(Ju(Y)){e.collectLinkedAliases(Y.propertyName||Y.name,!0);return}Ho(Y,ue)}function G(Y,oe,fe,Ne,me){let ie=fe.transformed[0],ve=ie.kind===313?ie:void 0,Le=ie.kind===312?ie:void 0,He=ve?ve.sourceFiles:[Le],Ee;ne(me,ie)&&(Ee=dle(t,rc(Mu(Y)),he(me),ye(me,Y,Le),me)),ve?Ne.writeBundle(ve,I,Ee):Ne.writeFile(Le,I,Ee);let Ce;if(Ee){g&&g.push({inputSourceFileNames:Ee.getSources(),sourceMap:Ee.toJSON()});let Fe=$(me,Ee,Y,oe,Le);if(Fe&&(I.isAtStartOfLine()||I.rawWrite(T),Ce=I.getTextPos(),I.writeComment(`//# sourceMappingURL=${Fe}`)),oe){let At=Ee.toString();FC(t,b,oe,At,!1,He),Ne.bundleFileInfo&&(Ne.bundleFileInfo.mapHash=YS(At,t))}}else I.writeLine();let Me=I.getText();FC(t,b,Y,Me,!!p.emitBOM,He,{sourceMapUrlPos:Ce,diagnostics:fe.diagnostics}),Ne.bundleFileInfo&&(Ne.bundleFileInfo.hash=YS(Me,t)),I.clear()}function ne(Y,oe){return(Y.sourceMap||Y.inlineSourceMap)&&(oe.kind!==312||!Tl(oe.fileName,".json"))}function he(Y){let oe=Mu(Y.sourceRoot||"");return oe&&zc(oe)}function ye(Y,oe,fe){if(Y.sourceRoot)return t.getCommonSourceDirectory();if(Y.mapRoot){let Ne=Mu(Y.mapRoot);return fe&&(Ne=li(S3(fe.fileName,t,Ne))),dh(Ne)===0&&(Ne=Zr(t.getCommonSourceDirectory(),Ne)),Ne}return li(va(oe))}function $(Y,oe,fe,Ne,me){if(Y.inlineSourceMap){let ve=oe.toString();return`data:application/json;base64,${doe(gu,ve)}`}let ie=rc(Mu(C.checkDefined(Ne)));if(Y.mapRoot){let ve=Mu(Y.mapRoot);return me&&(ve=li(S3(me.fileName,t,ve))),dh(ve)===0?(ve=Zr(t.getCommonSourceDirectory(),ve),encodeURI(SA(li(va(fe)),Zr(ve,ie),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):encodeURI(Zr(ve,ie))}return encodeURI(ie)}}function Mw(e,t){return{bundle:t,program:e,version:Te}}function tce(e){return JSON.stringify(e)}function cF(e,t){return pU(e,t)}function bje(e,t,r){var i;let o=C.checkDefined(e.js),s=((i=o.sources)==null?void 0:i.prologues)&&g1(o.sources.prologues,l=>l.file);return e.sourceFiles.map((l,u)=>{let p=s?.get(u),g=p?.directives.map(T=>{let I=dt(k.createStringLiteral(T.expression.text),T.expression),R=dt(k.createExpressionStatement(I),T);return qa(I,R),R}),m=k.createToken(1),b=k.createSourceFile(g??[],m,0);return b.fileName=bm(r.getCurrentDirectory(),bo(l,t),!r.useCaseSensitiveFileNames()),b.text=p?.text??"",rN(b,0,p?.text.length??0),NR(b.statements,b),rN(m,b.end,0),qa(m,b),b})}function nce(e,t,r,i){var o,s;(o=lr)==null||o.push(lr.Phase.Emit,"emitUsingBuildInfo",{},!0),nl("beforeEmit");let l=Eje(e,t,r,i);return nl("afterEmit"),Yp("Emit","beforeEmit","afterEmit"),(s=lr)==null||s.pop(),l}function Eje(e,t,r,i){let{buildInfoPath:o,jsFilePath:s,sourceMapFilePath:l,declarationFilePath:u,declarationMapPath:p}=XN(e.options,!1),g=t.getBuildInfo(o,e.options.configFilePath);if(!g||!g.bundle||!g.bundle.js||u&&!g.bundle.dts)return o;let m=t.readFile(C.checkDefined(s));if(!m||YS(m,t)!==g.bundle.js.hash)return s;let b=l&&t.readFile(l);if(l&&!b||e.options.inlineSourceMap)return l||"inline sourcemap decoding";if(l&&YS(b,t)!==g.bundle.js.mapHash)return l;let T=u&&t.readFile(u);if(u&&!T||u&&YS(T,t)!==g.bundle.dts.hash)return u;let I=p&&t.readFile(p);if(p&&!I||e.options.inlineSourceMap)return p||"inline sourcemap decoding";if(p&&YS(I,t)!==g.bundle.dts.mapHash)return p;let R=li(bo(o,t.getCurrentDirectory())),M=iH(s,m,l,b,u,T,p,I,o,g,!0),N=[],O=wJ(e.projectReferences,r,ue=>t.readFile(ue),t),H=bje(g.bundle,R,t),K,Z,V={getPrependNodes:Ed(()=>[...O,M]),getCanonicalFileName:t.getCanonicalFileName,getCommonSourceDirectory:()=>bo(g.bundle.commonSourceDirectory,R),getCompilerOptions:()=>e.options,getCurrentDirectory:()=>t.getCurrentDirectory(),getSourceFile:Xb,getSourceFileByPath:Xb,getSourceFiles:()=>H,getLibFileFromReference:Ko,isSourceFileFromExternalLibrary:Km,getResolvedProjectReferenceToRedirect:Xb,getProjectReferenceRedirect:Xb,isSourceOfProjectReferenceRedirect:Km,writeFile:(ue,G,ne,he,ye,$)=>{switch(ue){case s:if(m===G)return;break;case l:if(b===G)return;break;case o:break;case u:if(T===G)return;K=G,Z=$;break;case p:if(I===G)return;break;default:C.fail(`Unexpected path: ${ue}`)}N.push({name:ue,text:G,writeByteOrderMark:ne,data:$})},isEmitBlocked:Km,readFile:ue=>t.readFile(ue),fileExists:ue=>t.fileExists(ue),useCaseSensitiveFileNames:()=>t.useCaseSensitiveFileNames(),getBuildInfo:ue=>{let G=g.program;G&&K!==void 0&&e.options.composite&&(G.outSignature=YS(K,t,Z));let{js:ne,dts:he,sourceFiles:ye}=g.bundle;return ue.js.sources=ne.sources,he&&(ue.dts.sources=he.sources),ue.sourceFiles=ye,Mw(G,ue)},getSourceFileFromReference:Xb,redirectTargetsMap:Xp(),getFileIncludeReasons:Ko,createHash:oa(t,t.createHash)};return lF(uF,V,void 0,sJ(e.options,i)),N}function x0(e={},t={}){var{hasGlobalName:r,onEmitNode:i=Nw,isEmitNotificationEnabled:o,substituteNode:s=JN,onBeforeEmitNode:l,onAfterEmitNode:u,onBeforeEmitNodeArray:p,onAfterEmitNodeArray:g,onBeforeEmitToken:m,onAfterEmitToken:b}=t,T=!!e.extendedDiagnostics,I=!!e.omitBraceSourceMapPositions,R=Gv(e),M=ku(e),N=new Map,O,H,K,Z,V,ue,G,ne,he,ye,$,Y,oe,fe,Ne,me=e.preserveSourceNewlines,ie,ve,Le,He=yT,Ee,Ce=e.writeBundleFileInfo?{sections:[]}:void 0,Me=Ce?C.checkDefined(e.relativeToBuildInfo):void 0,Fe=e.recordInternalSection,At=0,Se="text",je=!0,at,Bt,yt=-1,Qe,gt=-1,nn=-1,rn=-1,Nn=-1,Xn,_n,Qt=!1,Yt=!!e.removeComments,vi,ho,{enter:ki,exit:Ro}=u1e(T,"commentTime","beforeComment","afterComment"),nr=k.parenthesizer,qr={select:D=>D===0?nr.parenthesizeLeadingTypeArgument:void 0},xr=Yg();return ot(),{printNode:ln,printList:tt,printFile:Rn,printBundle:zt,writeNode:bi,writeList:ro,writeFile:ft,writeBundle:Ue,bundleFileInfo:Ce};function ln(D,se,_t){switch(D){case 0:C.assert(no(se),"Expected a SourceFile node.");break;case 2:C.assert(Ve(se),"Expected an Identifier node.");break;case 1:C.assert(bt(se),"Expected an Expression node.");break}switch(se.kind){case 312:return Rn(se);case 313:return zt(se);case 314:return ui(se)}return bi(D,se,_t,Nt()),le()}function tt(D,se,_t){return ro(D,se,_t,Nt()),le()}function zt(D){return Ue(D,Nt(),void 0),le()}function Rn(D){return ft(D,Nt(),void 0),le()}function ui(D){return mt(D,Nt()),le()}function bi(D,se,_t,an){let Fr=ve;j(an,void 0),We(D,se,_t),ot(),ve=Fr}function ro(D,se,_t,an){let Fr=ve;j(an,void 0),_t&&pt(_t),$s(void 0,se,D),ot(),ve=Fr}function No(){return ve.getTextPosWithWriteLine?ve.getTextPosWithWriteLine():ve.getTextPos()}function _a(D,se,_t){let an=Zs(Ce.sections);an&&an.kind===_t?an.end=se:Ce.sections.push({pos:D,end:se,kind:_t})}function ja(D){if(Fe&&Ce&&O&&(qu(D)||Ml(D))&&rj(D,O)&&Se!=="internal"){let se=Se;return wn(ve.getTextPos()),At=No(),Se="internal",se}}function En(D){D&&(wn(ve.getTextPos()),At=No(),Se=D)}function wn(D){return AtC.assert(boe(ya))),Ce.sections.push({pos:wi,end:ve.getTextPos(),kind:"prepend",data:Me(Fr.fileName),texts:oo}))}}At=No();for(let Fr of D.sourceFiles)We(0,Fr,Fr);if(Ce&&D.sourceFiles.length){let Fr=ve.getTextPos();if(wn(Fr)){let wi=kP(D);wi&&(Ce.sources||(Ce.sources={}),Ce.sources.prologues=wi);let Ei=Pt(D);Ei&&(Ce.sources||(Ce.sources={}),Ce.sources.helpers=Ei)}}ot(),ve=an}function mt(D,se){let _t=ve;j(se,void 0),We(4,D,void 0),ot(),ve=_t}function ft(D,se,_t){Ee=!0;let an=ve;j(se,_t),mb(D),nv(D),We(0,D,D),ot(),ve=an}function Nt(){return Le||(Le=ik(R))}function le(){let D=Le.getText();return Le.clear(),D}function We(D,se,_t){_t&&pt(_t),q(D,se,void 0)}function pt(D){O=D,Xn=void 0,_n=void 0,D&&sv(D)}function j(D,se){D&&e.omitTrailingSemicolon&&(D=eU(D)),ve=D,at=se,je=!ve||!at}function ot(){H=[],K=[],Z=[],V=new Set,ue=[],G=new Map,ne=[],he=0,ye=[],$=0,Y=[],oe=void 0,fe=[],Ne=void 0,O=void 0,Xn=void 0,_n=void 0,j(void 0,void 0)}function xt(){return Xn||(Xn=Mg(C.checkDefined(O)))}function Ye(D,se){if(D===void 0)return;let _t=ja(D);q(4,D,se),En(_t)}function ht(D){D!==void 0&&q(2,D,void 0)}function Vt(D,se){D!==void 0&&q(1,D,se)}function yn(D){q(Na(D)?6:4,D)}function fn(D){me&&Tm(D)&4&&(me=!1)}function mn(D){me=D}function q(D,se,_t){ho=_t,w(0,D,se)(D,se),ho=void 0}function Oe(D){return!Yt&&!no(D)}function Lt(D){return!je&&!no(D)&&!i3(D)&&!BS(D)&&!Fae(D)}function w(D,se,_t){switch(D){case 0:if(i!==Nw&&(!o||o(_t)))return J;case 1:if(s!==JN&&(vi=s(se,_t)||_t)!==_t)return ho&&(vi=ho(vi)),Dt;case 2:if(Oe(_t))return rD;case 3:if(Lt(_t))return K0;case 4:return pe;default:return C.assertNever(D)}}function ae(D,se,_t){return w(D+1,se,_t)}function J(D,se){let _t=ae(0,D,se);i(D,se,_t)}function pe(D,se){if(l?.(se),me){let _t=me;fn(se),Ge(D,se),mn(_t)}else Ge(D,se);u?.(se),ho=void 0}function Ge(D,se,_t=!0){if(_t){let an=sH(se);if(an)return Eo(D,se,an)}if(D===0)return ZI(aa(se,no));if(D===2)return Kr(aa(se,Ve));if(D===6)return Gn(aa(se,Na),!0);if(D===3)return ke(aa(se,_l));if(D===7)return qI(aa(se,cI));if(D===5)return C.assertNode(se,EH),so(!0);if(D===4){switch(se.kind){case 16:case 17:case 18:return Gn(se,!1);case 80:return Kr(se);case 81:return Po(se);case 166:return Dn(se);case 167:return Yl(se);case 168:return Fo(se);case 169:return ds(se);case 170:return Gs(se);case 171:return hl(se);case 172:return uu(se);case 173:return yo(se);case 174:return pa(se);case 175:return du(se);case 176:return Is(se);case 177:case 178:return Pa(se);case 179:return fl(se);case 180:return Mf(se);case 181:return sc(se);case 182:return Wo(se);case 183:return on(se);case 184:return Vs(se);case 185:return Ic(se);case 186:return de(se);case 187:return ee(se);case 188:return we(se);case 189:return pn(se);case 190:return gr(se);case 192:return jr(se);case 193:return Ni(se);case 194:return Lr(se);case 195:return $o(se);case 196:return El(se);case 233:return Wt(se);case 197:return Uc();case 198:return js(se);case 199:return gc(se);case 200:return Ts(se);case 201:return Hc(se);case 202:return Tr(se);case 203:return ip(se);case 204:return Rl(se);case 205:return Oc(se);case 206:return lm(se);case 207:return md(se);case 208:return Pe(se);case 239:return Ht(se);case 240:return ll();case 241:return rr(se);case 243:return $r(se);case 242:return so(!1);case 244:return Oa(se);case 245:return Fa(se);case 246:return fu(se);case 247:return xc(se);case 248:return Ip(se);case 249:return Vd(se);case 250:return cb(se);case 251:return Lm(se);case 252:return km(se);case 253:return _E(se);case 254:return uf(se);case 255:return U_(se);case 256:return df(se);case 257:return Qg(se);case 258:return ze(se);case 259:return Ze(se);case 260:return kt(se);case 261:return Ut(se);case 262:return gn(se);case 263:return Zo(se);case 264:return Qu(se);case 265:return mu(se);case 266:return Zg(se);case 267:return w0(se);case 268:return VI(se);case 269:return O0(se);case 270:return KI(se);case 271:return j2(se);case 272:return H2(se);case 273:return lT(se);case 274:return hE(se);case 280:return gE(se);case 275:return jI(se);case 276:return q2(se);case 277:return UI(se);case 278:return HI(se);case 279:return vE(se);case 281:return ub(se);case 300:return JI(se);case 301:return cT(se);case 282:return;case 283:return F0(se);case 12:return ev(se);case 286:case 289:return W0(se);case 287:case 290:return Ch(se);case 291:return jd(se);case 292:return kf(se);case 293:return xp(se);case 294:return K2(se);case 295:return XI(se);case 296:return z0(se);case 297:return YI(se);case 298:return oy(se);case 299:return $I(se);case 303:return o_(se);case 304:return pT(se);case 305:return qe(se);case 306:return a_(se);case 307:return Di(se);case 314:case 308:return yi(se);case 309:case 310:return or(se);case 311:return Vr(se);case 312:return ZI(se);case 313:return C.fail("Bundles should be printed using printBundle");case 315:return C.fail("InputFiles should not be printed");case 316:return tv(se);case 317:return fb(se);case 319:return vr("*");case 320:return vr("?");case 321:return pu(se);case 322:return Tp(se);case 323:return Ms(se);case 324:return nu(se);case 191:case 325:return St(se);case 326:return;case 327:return _u(se);case 329:return mT(se);case 330:return G0(se);case 334:case 339:case 344:return fT(se);case 335:case 336:return ay(se);case 337:case 338:return;case 340:case 341:case 342:case 343:return;case 345:return Xa(se);case 346:return s_(se);case 348:case 355:return _T(se);case 347:case 349:case 350:case 351:case 356:case 357:return B0(se);case 352:return sy(se);case 353:return MP(se);case 354:return QI(se);case 359:return}if(bt(se)&&(D=1,s!==JN)){let an=s(D,se)||se;an!==se&&(se=an,ho&&(se=ho(se)))}}if(D===1)switch(se.kind){case 9:case 10:return On(se);case 11:case 14:case 15:return Gn(se,!1);case 80:return Kr(se);case 81:return Po(se);case 209:return wt(se);case 210:return qn(se);case 211:return So(se);case 212:return na(se);case 213:return $l(se);case 214:return vc(se);case 215:return cl(se);case 216:return gl(se);case 217:return Bl(se);case 218:return Ql(se);case 219:return qc(se);case 220:return Bd(se);case 221:return Dd(se);case 222:return Lf(se);case 223:return j_(se);case 224:return Dh(se);case 225:return zu(se);case 226:return xr(se);case 227:return Ap(se);case 228:return fg(se);case 229:return Gd(se);case 230:return te(se);case 231:return lt(se);case 232:return;case 234:return jt(se);case 235:return W(se);case 233:return Wt(se);case 238:return Ae(se);case 236:return st(se);case 237:return C.fail("SyntheticExpression should never be printed.");case 282:return;case 284:return ns(se);case 285:return uT(se);case 288:return J2(se);case 358:return C.fail("SyntaxList should not be printed");case 359:return;case 360:return ti(se);case 361:return Nh(se);case 362:return C.fail("SyntheticReferenceExpression should not be printed")}if(Fd(se.kind))return TE(se,io);if(UV(se.kind))return TE(se,vr);C.fail(`Unhandled SyntaxKind: ${C.formatSyntaxKind(se.kind)}.`)}function ke(D){Ye(D.name),dr(),io("in"),dr(),Ye(D.constraint)}function Dt(D,se){let _t=ae(1,D,se);C.assertIsDefined(vi),se=vi,vi=void 0,_t(D,se)}function Pt(D){let se;if(M===0||e.noEmitHelpers)return;let _t=new Map;for(let an of D.sourceFiles){let Fr=Yk(an)!==void 0,wi=Tn(an);if(wi)for(let Ei of wi)!Ei.scoped&&!Fr&&!_t.get(Ei.name)&&(_t.set(Ei.name,!0),(se||(se=[])).push(Ei.name))}return se}function Kt(D){let se=!1,_t=D.kind===313?D:void 0;if(_t&&M===0)return;let an=_t?_t.prepends.length:0,Fr=_t?_t.sourceFiles.length+an:1;for(let wi=0;wi"),dr(),Ye(D.type),ap(D)}function nu(D){io("function"),ly(D,D.parameters),vr(":"),Ye(D.type)}function pu(D){vr("?"),Ye(D.type)}function Tp(D){vr("!"),Ye(D.type)}function Ms(D){Ye(D.type),vr("=")}function Ic(D){Au(D),_g(D,D.modifiers),io("new"),dr(),H_(D,D.typeParameters),ly(D,D.parameters),dr(),vr("=>"),dr(),Ye(D.type),ap(D)}function de(D){io("typeof"),dr(),Ye(D.exprName),gg(D,D.typeArguments)}function ee(D){wf(0,void 0),vr("{");let se=Va(D)&1?768:32897;$s(D,D.members,se|524288),vr("}"),yb()}function we(D){Ye(D.elementType,nr.parenthesizeNonArrayTypeOfPostfixType),vr("["),vr("]")}function St(D){vr("..."),Ye(D.type)}function pn(D){Ji(23,D.pos,vr,D);let se=Va(D)&1?528:657;$s(D,D.elements,se|524288,nr.parenthesizeElementTypeOfTupleType),Ji(24,D.elements.end,vr,D)}function Tr(D){Ye(D.dotDotDotToken),Ye(D.name),Ye(D.questionToken),Ji(59,D.name.end,vr,D),dr(),Ye(D.type)}function gr(D){Ye(D.type,nr.parenthesizeTypeOfOptionalType),vr("?")}function jr(D){$s(D,D.types,516,nr.parenthesizeConstituentTypeOfUnionType)}function Ni(D){$s(D,D.types,520,nr.parenthesizeConstituentTypeOfIntersectionType)}function Lr(D){Ye(D.checkType,nr.parenthesizeCheckTypeOfConditionalType),dr(),io("extends"),dr(),Ye(D.extendsType,nr.parenthesizeExtendsTypeOfConditionalType),dr(),vr("?"),dr(),Ye(D.trueType),dr(),vr(":"),dr(),Ye(D.falseType)}function $o(D){io("infer"),dr(),Ye(D.typeParameter)}function El(D){vr("("),Ye(D.type),vr(")")}function Uc(){io("this")}function js(D){gb(D.operator,io),dr();let se=D.operator===148?nr.parenthesizeOperandOfReadonlyTypeOperator:nr.parenthesizeOperandOfTypeOperator;Ye(D.type,se)}function gc(D){Ye(D.objectType,nr.parenthesizeNonArrayTypeOfPostfixType),vr("["),Ye(D.indexType),vr("]")}function Ts(D){let se=Va(D);vr("{"),se&1?dr():(Jc(),Ph()),D.readonlyToken&&(Ye(D.readonlyToken),D.readonlyToken.kind!==148&&io("readonly"),dr()),vr("["),q(3,D.typeParameter),D.nameType&&(dr(),io("as"),dr(),Ye(D.nameType)),vr("]"),D.questionToken&&(Ye(D.questionToken),D.questionToken.kind!==58&&vr("?")),vr(":"),dr(),Ye(D.type),ru(),se&1?dr():(Jc(),Wm()),$s(D,D.members,2),vr("}")}function Hc(D){Vt(D.literal)}function ip(D){Ye(D.head),$s(D,D.templateSpans,262144)}function Oc(D){D.isTypeOf&&(io("typeof"),dr()),io("import"),vr("("),Ye(D.argument),D.attributes&&(vr(","),dr(),q(7,D.attributes)),vr(")"),D.qualifier&&(vr("."),Ye(D.qualifier)),gg(D,D.typeArguments)}function lm(D){vr("{"),$s(D,D.elements,525136),vr("}")}function md(D){vr("["),$s(D,D.elements,524880),vr("]")}function Pe(D){Ye(D.dotDotDotToken),D.propertyName&&(Ye(D.propertyName),vr(":"),dr()),Ye(D.name),_b(D.initializer,D.name.end,D,nr.parenthesizeExpressionForDisallowedComma)}function wt(D){let se=D.elements,_t=D.multiLine?65536:0;EE(D,se,8914|_t,nr.parenthesizeExpressionForDisallowedComma)}function qn(D){wf(0,void 0),Ke(D.properties,nx);let se=Va(D)&131072;se&&Ph();let _t=D.multiLine?65536:0,an=O&&O.languageVersion>=1&&!$f(O)?64:0;$s(D,D.properties,526226|an|_t),se&&Wm(),yb()}function So(D){Vt(D.expression,nr.parenthesizeLeftSideOfAccess);let se=D.questionDotToken||gh(k.createToken(25),D.expression.end,D.name.pos),_t=jp(D,D.expression,se),an=jp(D,se,D.name);zm(_t,!1),se.kind!==29&&Qo(D.expression)&&!ve.hasTrailingComment()&&!ve.hasTrailingWhitespace()&&vr("."),D.questionDotToken?Ye(se):Ji(se.kind,D.expression.end,vr,D),zm(an,!1),Ye(D.name),j0(_t,an)}function Qo(D){if(D=Sm(D),hp(D)){let se=AT(D,!0,!1);return!(D.numericLiteralFlags&448)&&!se.includes(ma(25))&&!se.includes("E")&&!se.includes("e")}else if(ks(D)){let se=dae(D);return typeof se=="number"&&isFinite(se)&&se>=0&&Math.floor(se)===se}}function na(D){Vt(D.expression,nr.parenthesizeLeftSideOfAccess),Ye(D.questionDotToken),Ji(23,D.expression.end,vr,D),Vt(D.argumentExpression),Ji(24,D.argumentExpression.end,vr,D)}function $l(D){let se=Tm(D)&16;se&&(vr("("),hb("0"),vr(","),dr()),Vt(D.expression,nr.parenthesizeLeftSideOfAccess),se&&vr(")"),Ye(D.questionDotToken),gg(D,D.typeArguments),EE(D,D.arguments,2576,nr.parenthesizeExpressionForDisallowedComma)}function vc(D){Ji(105,D.pos,io,D),dr(),Vt(D.expression,nr.parenthesizeExpressionOfNew),gg(D,D.typeArguments),EE(D,D.arguments,18960,nr.parenthesizeExpressionForDisallowedComma)}function cl(D){let se=Tm(D)&16;se&&(vr("("),hb("0"),vr(","),dr()),Vt(D.tag,nr.parenthesizeLeftSideOfAccess),se&&vr(")"),gg(D,D.typeArguments),dr(),Vt(D.template)}function gl(D){vr("<"),Ye(D.type),vr(">"),Vt(D.expression,nr.parenthesizeOperandOfPrefixUnary)}function Bl(D){let se=Ji(21,D.pos,vr,D),_t=eD(D.expression,D);Vt(D.expression,void 0),AE(D.expression,D),j0(_t),Ji(22,D.expression?D.expression.end:se,vr,D)}function Ql(D){Up(D.name),Yn(D)}function qc(D){_g(D,D.modifiers),hn(D,cf)}function cf(D){H_(D,D.typeParameters),$2(D,D.parameters),dm(D.type),dr(),Ye(D.equalsGreaterThanToken)}function Bd(D){Ji(91,D.pos,io,D),dr(),Vt(D.expression,nr.parenthesizeOperandOfPrefixUnary)}function Dd(D){Ji(114,D.pos,io,D),dr(),Vt(D.expression,nr.parenthesizeOperandOfPrefixUnary)}function Lf(D){Ji(116,D.pos,io,D),dr(),Vt(D.expression,nr.parenthesizeOperandOfPrefixUnary)}function j_(D){Ji(135,D.pos,io,D),dr(),Vt(D.expression,nr.parenthesizeOperandOfPrefixUnary)}function Dh(D){gb(D.operator,pf),Xg(D)&&dr(),Vt(D.operand,nr.parenthesizeOperandOfPrefixUnary)}function Xg(D){let se=D.operand;return se.kind===224&&(D.operator===40&&(se.operator===40||se.operator===46)||D.operator===41&&(se.operator===41||se.operator===47))}function zu(D){Vt(D.operand,nr.parenthesizeOperandOfPostfixUnary),gb(D.operator,pf)}function Yg(){return m5(D,se,_t,an,Fr,void 0);function D(Ei,oo){if(oo){oo.stackIndex++,oo.preserveSourceNewlinesStack[oo.stackIndex]=me,oo.containerPosStack[oo.stackIndex]=nn,oo.containerEndStack[oo.stackIndex]=rn,oo.declarationListContainerEndStack[oo.stackIndex]=Nn;let ya=oo.shouldEmitCommentsStack[oo.stackIndex]=Oe(Ei),Zu=oo.shouldEmitSourceMapsStack[oo.stackIndex]=Lt(Ei);l?.(Ei),ya&&DT(Ei),Zu&&sx(Ei),fn(Ei)}else oo={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return oo}function se(Ei,oo,ya){return wi(Ei,ya,"left")}function _t(Ei,oo,ya){let Zu=Ei.kind!==28,Nd=jp(ya,ya.left,Ei),Ff=jp(ya,Ei,ya.right);zm(Nd,Zu),yg(Ei.pos),TE(Ei,Ei.kind===103?io:pf),Bm(Ei.end,!0),zm(Ff,!0)}function an(Ei,oo,ya){return wi(Ei,ya,"right")}function Fr(Ei,oo){let ya=jp(Ei,Ei.left,Ei.operatorToken),Zu=jp(Ei,Ei.operatorToken,Ei.right);if(j0(ya,Zu),oo.stackIndex>0){let Nd=oo.preserveSourceNewlinesStack[oo.stackIndex],Ff=oo.containerPosStack[oo.stackIndex],Tb=oo.containerEndStack[oo.stackIndex],Ai=oo.declarationListContainerEndStack[oo.stackIndex],kh=oo.shouldEmitCommentsStack[oo.stackIndex],jn=oo.shouldEmitSourceMapsStack[oo.stackIndex];mn(Nd),jn&&PT(Ei),kh&&iD(Ei,Ff,Tb,Ai),u?.(Ei),oo.stackIndex--}}function wi(Ei,oo,ya){let Zu=ya==="left"?nr.getParenthesizeLeftSideOfBinaryForOperator(oo.operatorToken.kind):nr.getParenthesizeRightSideOfBinaryForOperator(oo.operatorToken.kind),Nd=w(0,1,Ei);if(Nd===Dt&&(C.assertIsDefined(vi),Ei=Zu(aa(vi,bt)),Nd=ae(1,1,Ei),vi=void 0),(Nd===rD||Nd===K0||Nd===pe)&&_r(Ei))return Ei;ho=Zu,Nd(1,Ei)}}function Ap(D){let se=jp(D,D.condition,D.questionToken),_t=jp(D,D.questionToken,D.whenTrue),an=jp(D,D.whenTrue,D.colonToken),Fr=jp(D,D.colonToken,D.whenFalse);Vt(D.condition,nr.parenthesizeConditionOfConditionalExpression),zm(se,!0),Ye(D.questionToken),zm(_t,!0),Vt(D.whenTrue,nr.parenthesizeBranchOfConditionalExpression),j0(se,_t),zm(an,!0),Ye(D.colonToken),zm(Fr,!0),Vt(D.whenFalse,nr.parenthesizeBranchOfConditionalExpression),j0(an,Fr)}function fg(D){Ye(D.head),$s(D,D.templateSpans,262144)}function Gd(D){Ji(127,D.pos,io,D),Ye(D.asteriskToken),bE(D.expression&&wm(D.expression),mE)}function te(D){Ji(26,D.pos,vr,D),Vt(D.expression,nr.parenthesizeExpressionForDisallowedComma)}function lt(D){Up(D.name),Ka(D)}function Wt(D){Vt(D.expression,nr.parenthesizeLeftSideOfAccess),gg(D,D.typeArguments)}function jt(D){Vt(D.expression,void 0),D.type&&(dr(),io("as"),dr(),Ye(D.type))}function W(D){Vt(D.expression,nr.parenthesizeLeftSideOfAccess),pf("!")}function Ae(D){Vt(D.expression,void 0),D.type&&(dr(),io("satisfies"),dr(),Ye(D.type))}function st(D){SE(D.keywordToken,D.pos,vr),vr("."),Ye(D.name)}function Ht(D){Vt(D.expression),Ye(D.literal)}function rr(D){si(D,!D.multiLine&&TT(D))}function si(D,se){Ji(19,D.pos,vr,D);let _t=se||Va(D)&1?768:129;$s(D,D.statements,_t),Ji(20,D.statements.end,vr,D,!!(_t&1))}function $r(D){Vp(D,D.modifiers,!1),Ye(D.declarationList),ru()}function so(D){D?vr(";"):ru()}function Oa(D){Vt(D.expression,nr.parenthesizeExpressionOfExpressionStatement),(!O||!$f(O)||Xs(D.expression))&&ru()}function Fa(D){let se=Ji(101,D.pos,io,D);dr(),Ji(21,se,vr,D),Vt(D.expression),Ji(22,D.expression.end,vr,D),hg(D,D.thenStatement),D.elseStatement&&(iv(D,D.thenStatement,D.elseStatement),Ji(93,D.thenStatement.end,io,D),D.elseStatement.kind===245?(dr(),Ye(D.elseStatement)):hg(D,D.elseStatement))}function wl(D,se){let _t=Ji(117,se,io,D);dr(),Ji(21,_t,vr,D),Vt(D.expression),Ji(22,D.expression.end,vr,D)}function fu(D){Ji(92,D.pos,io,D),hg(D,D.statement),Xo(D.statement)&&!me?dr():iv(D,D.statement,D.expression),wl(D,D.statement.end),ru()}function xc(D){wl(D,D.pos),hg(D,D.statement)}function Ip(D){let se=Ji(99,D.pos,io,D);dr();let _t=Ji(21,se,vr,D);ps(D.initializer),_t=Ji(27,D.initializer?D.initializer.end:_t,vr,D),bE(D.condition),_t=Ji(27,D.condition?D.condition.end:_t,vr,D),bE(D.incrementor),Ji(22,D.incrementor?D.incrementor.end:_t,vr,D),hg(D,D.statement)}function Vd(D){let se=Ji(99,D.pos,io,D);dr(),Ji(21,se,vr,D),ps(D.initializer),dr(),Ji(103,D.initializer.end,io,D),dr(),Vt(D.expression),Ji(22,D.expression.end,vr,D),hg(D,D.statement)}function cb(D){let se=Ji(99,D.pos,io,D);dr(),hT(D.awaitModifier),Ji(21,se,vr,D),ps(D.initializer),dr(),Ji(165,D.initializer.end,io,D),dr(),Vt(D.expression),Ji(22,D.expression.end,vr,D),hg(D,D.statement)}function ps(D){D!==void 0&&(D.kind===261?Ye(D):Vt(D))}function Lm(D){Ji(88,D.pos,io,D),rv(D.label),ru()}function km(D){Ji(83,D.pos,io,D),rv(D.label),ru()}function Ji(D,se,_t,an,Fr){let wi=Lo(an),Ei=wi&&wi.kind===an.kind,oo=se;if(Ei&&O&&(se=La(O.text,se)),Ei&&an.pos!==oo){let ya=Fr&&O&&!Af(oo,se,O);ya&&Ph(),yg(oo),ya&&Wm()}if(!I&&(D===19||D===20)?se=SE(D,se,_t,an):se=gb(D,_t,se),Ei&&an.end!==se){let ya=an.kind===294;Bm(se,!ya,ya)}return se}function $g(D){return D.kind===2||!!D.hasTrailingNewLine}function ry(D){if(!O)return!1;let se=Kh(O.text,D.pos);if(se){let _t=Lo(D);if(_t&&Wd(_t.parent))return!0}return Et(se,$g)||Et(kR(D),$g)?!0:e5(D)?D.pos!==D.expression.pos&&Et(Qb(O.text,D.expression.pos),$g)?!0:ry(D.expression):!1}function wm(D){if(!Yt&&e5(D)&&ry(D)){let se=Lo(D);if(se&&Wd(se)){let _t=k.createParenthesizedExpression(D.expression);return Pr(_t,D),dt(_t,se),_t}return k.createParenthesizedExpression(D)}return D}function mE(D){return wm(nr.parenthesizeExpressionForDisallowedComma(D))}function _E(D){Ji(107,D.pos,io,D),bE(D.expression&&wm(D.expression),wm),ru()}function uf(D){let se=Ji(118,D.pos,io,D);dr(),Ji(21,se,vr,D),Vt(D.expression),Ji(22,D.expression.end,vr,D),hg(D,D.statement)}function U_(D){let se=Ji(109,D.pos,io,D);dr(),Ji(21,se,vr,D),Vt(D.expression),Ji(22,D.expression.end,vr,D),dr(),Ye(D.caseBlock)}function df(D){Ye(D.label),Ji(59,D.label.end,vr,D),dr(),Ye(D.statement)}function Qg(D){Ji(111,D.pos,io,D),bE(wm(D.expression),wm),ru()}function ze(D){Ji(113,D.pos,io,D),dr(),Ye(D.tryBlock),D.catchClause&&(iv(D,D.tryBlock,D.catchClause),Ye(D.catchClause)),D.finallyBlock&&(iv(D,D.catchClause||D.tryBlock,D.finallyBlock),Ji(98,(D.catchClause||D.tryBlock).end,io,D),dr(),Ye(D.finallyBlock))}function Ze(D){SE(89,D.pos,io),ru()}function kt(D){var se,_t,an;Ye(D.name),Ye(D.exclamationToken),dm(D.type),_b(D.initializer,((se=D.type)==null?void 0:se.end)??((an=(_t=D.name.emitNode)==null?void 0:_t.typeNode)==null?void 0:an.end)??D.name.end,D,nr.parenthesizeExpressionForDisallowedComma)}function Ut(D){if(IL(D))io("await"),dr(),io("using");else{let se=U6(D)?"let":tR(D)?"const":xL(D)?"using":"var";io(se)}dr(),$s(D,D.declarations,528)}function gn(D){Yn(D)}function Yn(D){Vp(D,D.modifiers,!1),io("function"),Ye(D.asteriskToken),dr(),ht(D.name),hn(D,$n)}function hn(D,se){let _t=D.body;if(_t)if(Xo(_t)){let an=Va(D)&131072;an&&Ph(),Au(D),Ke(D.parameters,iu),iu(D.body),se(D),ur(_t),ap(D),an&&Wm()}else se(D),dr(),Vt(_t,nr.parenthesizeConciseBodyOfArrowFunction);else se(D),ru()}function $n(D){H_(D,D.typeParameters),ly(D,D.parameters),dm(D.type)}function hi(D){if(Va(D)&1)return!0;if(D.multiLine||!Xs(D)&&O&&!DS(D,O)||vg(D,Xc(D.statements),2)||tx(D,Zs(D.statements),2,D.statements))return!1;let se;for(let _t of D.statements){if(vb(se,_t,2)>0)return!1;se=_t}return!0}function ur(D){l?.(D),dr(),vr("{"),Ph();let se=hi(D)?oi:mr;Rr(D,D.statements,se),Wm(),SE(20,D.statements.end,vr,D),u?.(D)}function oi(D){mr(D,!0)}function mr(D,se){let _t=Ud(D.statements),an=ve.getTextPos();Kt(D),_t===0&&an===ve.getTextPos()&&se?(Wm(),$s(D,D.statements,768),Ph()):$s(D,D.statements,1,void 0,_t)}function Zo(D){Ka(D)}function Ka(D){wf(0,void 0),Ke(D.members,nx),Vp(D,D.modifiers,!0),Ji(86,P_(D).pos,io,D),D.name&&(dr(),ht(D.name));let se=Va(D)&131072;se&&Ph(),H_(D,D.typeParameters),$s(D,D.heritageClauses,0),dr(),vr("{"),$s(D,D.members,129),vr("}"),se&&Wm(),yb()}function Qu(D){wf(0,void 0),Vp(D,D.modifiers,!1),io("interface"),dr(),Ye(D.name),H_(D,D.typeParameters),$s(D,D.heritageClauses,512),dr(),vr("{"),$s(D,D.members,129),vr("}"),yb()}function mu(D){Vp(D,D.modifiers,!1),io("type"),dr(),Ye(D.name),H_(D,D.typeParameters),dr(),vr("="),dr(),Ye(D.type),ru()}function Zg(D){Vp(D,D.modifiers,!1),io("enum"),dr(),Ye(D.name),dr(),vr("{"),$s(D,D.members,145),vr("}")}function w0(D){Vp(D,D.modifiers,!1),~D.flags&2048&&(io(D.flags&32?"namespace":"module"),dr()),Ye(D.name);let se=D.body;if(!se)return ru();for(;se&&Jl(se);)vr("."),Ye(se.name),se=se.body;dr(),Ye(se)}function VI(D){Au(D),Ke(D.statements,iu),si(D,TT(D)),ap(D)}function O0(D){Ji(19,D.pos,vr,D),$s(D,D.clauses,129),Ji(20,D.clauses.end,vr,D,!0)}function j2(D){Vp(D,D.modifiers,!1),Ji(102,D.modifiers?D.modifiers.end:D.pos,io,D),dr(),D.isTypeOnly&&(Ji(156,D.pos,io,D),dr()),Ye(D.name),dr(),Ji(64,D.name.end,vr,D),dr(),U2(D.moduleReference),ru()}function U2(D){D.kind===80?Vt(D):Ye(D)}function H2(D){Vp(D,D.modifiers,!1),Ji(102,D.modifiers?D.modifiers.end:D.pos,io,D),dr(),D.importClause&&(Ye(D.importClause),dr(),Ji(161,D.importClause.end,io,D),dr()),Vt(D.moduleSpecifier),D.attributes&&rv(D.attributes),ru()}function lT(D){D.isTypeOnly&&(Ji(156,D.pos,io,D),dr()),Ye(D.name),D.name&&D.namedBindings&&(Ji(28,D.name.end,vr,D),dr()),Ye(D.namedBindings)}function hE(D){let se=Ji(42,D.pos,vr,D);dr(),Ji(130,se,io,D),dr(),Ye(D.name)}function jI(D){db(D)}function q2(D){mg(D)}function UI(D){let se=Ji(95,D.pos,io,D);dr(),D.isExportEquals?Ji(64,se,pf,D):Ji(90,se,io,D),dr(),Vt(D.expression,D.isExportEquals?nr.getParenthesizeRightSideOfBinaryForOperator(64):nr.parenthesizeExpressionOfExportDefault),ru()}function HI(D){Vp(D,D.modifiers,!1);let se=Ji(95,D.pos,io,D);if(dr(),D.isTypeOnly&&(se=Ji(156,se,io,D),dr()),D.exportClause?Ye(D.exportClause):se=Ji(42,se,vr,D),D.moduleSpecifier){dr();let _t=D.exportClause?D.exportClause.end:se;Ji(161,_t,io,D),dr(),Vt(D.moduleSpecifier)}D.attributes&&rv(D.attributes),ru()}function qI(D){vr("{"),dr(),io(D.token===132?"assert":"with"),vr(":"),dr();let se=D.elements;$s(D,se,526226),dr(),vr("}")}function JI(D){Ji(D.token,D.pos,io,D),dr();let se=D.elements;$s(D,se,526226)}function cT(D){Ye(D.name),vr(":"),dr();let se=D.value;if(!(Va(se)&1024)){let _t=L_(se);Bm(_t.pos)}Ye(se)}function KI(D){let se=Ji(95,D.pos,io,D);dr(),se=Ji(130,se,io,D),dr(),se=Ji(145,se,io,D),dr(),Ye(D.name),ru()}function gE(D){let se=Ji(42,D.pos,vr,D);dr(),Ji(130,se,io,D),dr(),Ye(D.name)}function vE(D){db(D)}function ub(D){mg(D)}function db(D){vr("{"),$s(D,D.elements,525136),vr("}")}function mg(D){D.isTypeOnly&&(io("type"),dr()),D.propertyName&&(Ye(D.propertyName),dr(),Ji(130,D.propertyName.end,io,D),dr()),Ye(D.name)}function F0(D){io("require"),vr("("),Vt(D.expression),vr(")")}function ns(D){Ye(D.openingElement),$s(D,D.children,262144),Ye(D.closingElement)}function uT(D){vr("<"),pb(D.tagName),gg(D,D.typeArguments),dr(),Ye(D.attributes),vr("/>")}function J2(D){Ye(D.openingFragment),$s(D,D.children,262144),Ye(D.closingFragment)}function W0(D){if(vr("<"),w_(D)){let se=eD(D.tagName,D);pb(D.tagName),gg(D,D.typeArguments),D.attributes.properties&&D.attributes.properties.length>0&&dr(),Ye(D.attributes),AE(D.attributes,D),j0(se)}vr(">")}function ev(D){ve.writeLiteral(D.text)}function Ch(D){vr("")}function kf(D){$s(D,D.properties,262656)}function jd(D){Ye(D.name),Om("=",vr,D.initializer,yn)}function xp(D){vr("{..."),Vt(D.expression),vr("}")}function op(D){let se=!1;return YM(O?.text||"",D+1,()=>se=!0),se}function iy(D){let se=!1;return XM(O?.text||"",D+1,()=>se=!0),se}function dT(D){return op(D)||iy(D)}function K2(D){var se;if(D.expression||!Yt&&!Xs(D)&&dT(D.pos)){let _t=O&&!Xs(D)&&Es(O,D.pos).line!==Es(O,D.end).line;_t&&ve.increaseIndent();let an=Ji(19,D.pos,vr,D);Ye(D.dotDotDotToken),Vt(D.expression),Ji(20,((se=D.expression)==null?void 0:se.end)||an,vr,D),_t&&ve.decreaseIndent()}}function XI(D){ht(D.namespace),vr(":"),ht(D.name)}function pb(D){D.kind===80?Vt(D):Ye(D)}function z0(D){Ji(84,D.pos,io,D),dr(),Vt(D.expression,nr.parenthesizeExpressionForDisallowedComma),yc(D,D.statements,D.expression.end)}function YI(D){let se=Ji(90,D.pos,io,D);yc(D,D.statements,se)}function yc(D,se,_t){let an=se.length===1&&(!O||Xs(D)||Xs(se[0])||M3(D,se[0],O)),Fr=163969;an?(SE(59,_t,vr,D),dr(),Fr&=-130):Ji(59,_t,vr,D),$s(D,se,Fr)}function oy(D){dr(),gb(D.token,io),dr(),$s(D,D.types,528)}function $I(D){let se=Ji(85,D.pos,io,D);dr(),D.variableDeclaration&&(Ji(21,se,vr,D),Ye(D.variableDeclaration),Ji(22,D.variableDeclaration.end,vr,D),dr()),Ye(D.block)}function o_(D){Ye(D.name),vr(":"),dr();let se=D.initializer;if(!(Va(se)&1024)){let _t=L_(se);Bm(_t.pos)}Vt(se,nr.parenthesizeExpressionForDisallowedComma)}function pT(D){Ye(D.name),D.objectAssignmentInitializer&&(dr(),vr("="),dr(),Vt(D.objectAssignmentInitializer,nr.parenthesizeExpressionForDisallowedComma))}function qe(D){D.expression&&(Ji(26,D.pos,vr,D),Vt(D.expression,nr.parenthesizeExpressionForDisallowedComma))}function a_(D){Ye(D.name),_b(D.initializer,D.name.end,D,nr.parenthesizeExpressionForDisallowedComma)}function _u(D){if(He("/**"),D.comment){let se=oL(D.comment);if(se){let _t=se.split(/\r\n?|\n/g);for(let an of _t)Jc(),dr(),vr("*"),dr(),He(an)}}D.tags&&(D.tags.length===1&&D.tags[0].kind===351&&!D.comment?(dr(),Ye(D.tags[0])):$s(D,D.tags,33)),dr(),He("*/")}function B0(D){cm(D.tagName),tv(D.typeExpression),um(D.comment)}function QI(D){cm(D.tagName),Ye(D.name),um(D.comment)}function fb(D){dr(),vr("{"),Ye(D.name),vr("}")}function ay(D){cm(D.tagName),dr(),vr("{"),Ye(D.class),vr("}"),um(D.comment)}function sy(D){cm(D.tagName),tv(D.constraint),dr(),$s(D,D.typeParameters,528),um(D.comment)}function MP(D){cm(D.tagName),D.typeExpression&&(D.typeExpression.kind===316?tv(D.typeExpression):(dr(),vr("{"),He("Object"),D.typeExpression.isArrayType&&(vr("["),vr("]")),vr("}"))),D.fullName&&(dr(),Ye(D.fullName)),um(D.comment),D.typeExpression&&D.typeExpression.kind===329&&mT(D.typeExpression)}function Xa(D){cm(D.tagName),D.name&&(dr(),Ye(D.name)),um(D.comment),G0(D.typeExpression)}function s_(D){um(D.comment),G0(D.typeExpression)}function fT(D){cm(D.tagName),um(D.comment)}function mT(D){$s(D,k.createNodeArray(D.jsDocPropertyTags),33)}function G0(D){D.typeParameters&&$s(D,k.createNodeArray(D.typeParameters),33),D.parameters&&$s(D,k.createNodeArray(D.parameters),33),D.type&&(Jc(),dr(),vr("*"),dr(),Ye(D.type))}function _T(D){cm(D.tagName),tv(D.typeExpression),dr(),D.isBracketed&&vr("["),Ye(D.name),D.isBracketed&&vr("]"),um(D.comment)}function cm(D){vr("@"),Ye(D)}function um(D){let se=oL(D);se&&(dr(),He(se))}function tv(D){D&&(dr(),vr("{"),Ye(D.type),vr("}"))}function ZI(D){Jc();let se=D.statements;if(se.length===0||!Am(se[0])||Xs(se[0])){Rr(D,se,$i);return}$i(D)}function l_(D){yE(!!D.hasNoDefaultLib,D.syntheticFileReferences||[],D.syntheticTypeReferences||[],D.syntheticLibReferences||[]);for(let se of D.prepends)if(BS(se)&&se.syntheticReferences)for(let _t of se.syntheticReferences)Ye(_t),Jc()}function X2(D){D.isDeclarationFile&&yE(D.hasNoDefaultLib,D.referencedFiles,D.typeReferenceDirectives,D.libReferenceDirectives)}function yE(D,se,_t,an){if(D){let Fr=ve.getTextPos();q_('/// '),Ce&&Ce.sections.push({pos:Fr,end:ve.getTextPos(),kind:"no-default-lib"}),Jc()}if(O&&O.moduleName&&(q_(`/// `),Jc()),O&&O.amdDependencies)for(let Fr of O.amdDependencies)Fr.name?q_(`/// `):q_(`/// `),Jc();for(let Fr of se){let wi=ve.getTextPos();q_(`/// `),Ce&&Ce.sections.push({pos:wi,end:ve.getTextPos(),kind:"reference",data:Fr.fileName}),Jc()}for(let Fr of _t){let wi=ve.getTextPos(),Ei=Fr.resolutionMode&&Fr.resolutionMode!==O?.impliedNodeFormat?`resolution-mode="${Fr.resolutionMode===99?"import":"require"}"`:"";q_(`/// `),Ce&&Ce.sections.push({pos:wi,end:ve.getTextPos(),kind:Fr.resolutionMode?Fr.resolutionMode===99?"type-import":"type-require":"type",data:Fr.fileName}),Jc()}for(let Fr of an){let wi=ve.getTextPos();q_(`/// `),Ce&&Ce.sections.push({pos:wi,end:ve.getTextPos(),kind:"lib",data:Fr.fileName}),Jc()}}function $i(D){let se=D.statements;Au(D),Ke(D.statements,iu),Kt(D);let _t=ri(se,an=>!Am(an));X2(D),$s(D,se,1,void 0,_t===-1?se.length:_t),ap(D)}function ti(D){let se=Va(D);!(se&1024)&&D.pos!==D.expression.pos&&Bm(D.expression.pos),Vt(D.expression),!(se&2048)&&D.end!==D.expression.end&&yg(D.expression.end)}function Nh(D){EE(D,D.elements,528,void 0)}function Ud(D,se,_t,an){let Fr=!!se;for(let wi=0;wi=_t.length||Ei===0;if(ya&&an&32768){p?.(_t),g?.(_t);return}an&15360&&(vr(Tje(an)),ya&&_t&&Bm(_t.pos,!0)),p?.(_t),ya?an&1&&!(me&&(!se||O&&DS(se,O)))?Jc():an&256&&!(an&524288)&&dr():Fm(D,se,_t,an,Fr,wi,Ei,_t.hasTrailingComma,_t),g?.(_t),an&15360&&(ya&&_t&&yg(_t.end),vr(Aje(an)))}function Fm(D,se,_t,an,Fr,wi,Ei,oo,ya){let Zu=(an&262144)===0,Nd=Zu,Ff=vg(se,_t[wi],an);Ff?(Jc(Ff),Nd=!1):an&256&&dr(),an&128&&Ph();let Tb=Dje(D,Fr),Ai,kh,jn=!1;for(let PE=0;PE0){if(an&131||(Ph(),jn=!0),Nd&&an&60&&!Qm(K_.pos)){let lD=L_(K_);Bm(lD.pos,!!(an&512),!0)}Jc(wh),Nd=!1}else Ai&&an&512&&dr()}if(kh=ja(K_),Nd){let wh=L_(K_);Bm(wh.pos)}else Nd=Zu;ie=K_.pos,Tb(K_,D,Fr,PE),jn&&(Wm(),jn=!1),Ai=K_}let lx=Ai?Va(Ai):0,Ab=Yt||!!(lx&2048),Ib=oo&&an&64&&an&16;Ib&&(Ai&&!Ab?Ji(28,Ai.end,vr,Ai):vr(",")),Ai&&(se?se.end:-1)!==Ai.end&&an&60&&!Ab&&yg(Ib&&ya?.end?ya.end:Ai.end),an&128&&Wm(),En(kh);let MT=tx(se,_t[wi+Ei-1],an,ya);MT?Jc(MT):an&2097408&&dr()}function hb(D){ve.writeLiteral(D)}function Z2(D){ve.writeStringLiteral(D)}function yT(D){ve.write(D)}function wP(D,se){ve.writeSymbol(D,se)}function vr(D){ve.writePunctuation(D)}function ru(){ve.writeTrailingSemicolon(";")}function io(D){ve.writeKeyword(D)}function pf(D){ve.writeOperator(D)}function cy(D){ve.writeParameter(D)}function q_(D){ve.writeComment(D)}function dr(){ve.writeSpace(" ")}function bT(D){ve.writeProperty(D)}function V0(D){ve.nonEscapingWrite?ve.nonEscapingWrite(D):ve.write(D)}function Jc(D=1){for(let se=0;se0)}function Ph(){ve.increaseIndent()}function Wm(){ve.decreaseIndent()}function SE(D,se,_t,an){return je?gb(D,_t,se):NE(an,D,_t,se,gb)}function TE(D,se){m&&m(D),se(ma(D.kind)),b&&b(D)}function gb(D,se,_t){let an=ma(D);return se(an),_t<0?_t:_t+an.length}function iv(D,se,_t){if(Va(D)&1)dr();else if(me){let an=jp(D,se,_t);an?Jc(an):dr()}else Jc()}function ET(D){let se=D.split(/\r\n?|\n/g),_t=Hre(se);for(let an of se){let Fr=_t?an.slice(_t):an;Fr.length&&(Jc(),He(Fr))}}function zm(D,se){D?(Ph(),Jc(D)):se&&dr()}function j0(D,se){D&&Wm(),se&&Wm()}function vg(D,se,_t){if(_t&2||me){if(_t&65536)return 1;if(se===void 0)return!D||O&&DS(D,O)?0:1;if(se.pos===ie||se.kind===12)return 0;if(O&&D&&!Qm(D.pos)&&!Xs(se)&&(!se.parent||Nl(se.parent)===Nl(D)))return me?U0(an=>hoe(se.pos,D.pos,O,an)):M3(D,se,O)?0:1;if(ST(se,_t))return 1}return _t&1?1:0}function vb(D,se,_t){if(_t&2||me){if(D===void 0||se===void 0||se.kind===12)return 0;if(O&&!Xs(D)&&!Xs(se))return me&&Cd(D,se)?U0(an=>mU(D,se,O,an)):!me&&ff(D,se)?ck(D,se,O)?0:1:_t&65536?1:0;if(ST(D,_t)||ST(se,_t))return 1}else if(fN(se))return 1;return _t&1?1:0}function tx(D,se,_t,an){if(_t&2||me){if(_t&65536)return 1;if(se===void 0)return!D||O&&DS(D,O)?0:1;if(O&&D&&!Qm(D.pos)&&!Xs(se)&&(!se.parent||se.parent===D)){if(me){let Fr=an&&!Qm(an.end)?an.end:se.end;return U0(wi=>goe(Fr,D.end,O,wi))}return foe(D,se,O)?0:1}if(ST(se,_t))return 1}return _t&1&&!(_t&131072)?1:0}function U0(D){C.assert(!!me);let se=D(!0);return se===0?D(!1):se}function eD(D,se){let _t=me&&vg(se,D,0);return _t&&zm(_t,!1),!!_t}function AE(D,se){let _t=me&&tx(se,D,0,void 0);_t&&Jc(_t)}function ST(D,se){if(Xs(D)){let _t=fN(D);return _t===void 0?(se&65536)!==0:_t}return(se&65536)!==0}function jp(D,se,_t){return Va(D)&262144?0:(D=Gl(D),se=Gl(se),_t=Gl(_t),fN(_t)?1:O&&!Xs(D)&&!Xs(se)&&!Xs(_t)?me?U0(an=>mU(se,_t,O,an)):ck(se,_t,O)?0:1:0)}function TT(D){return D.statements.length===0&&(!O||ck(D,D,O))}function Gl(D){for(;D.kind===217&&Xs(D);)D=D.expression;return D}function Fc(D,se){if(ol(D)||cS(D))return IT(D);if(Na(D)&&D.textSourceNode)return Fc(D.textSourceNode,se);let _t=O,an=!!_t&&!!D.parent&&!Xs(D);if(Yh(D)){if(!an||Vn(D)!==Nl(_t))return Sr(D)}else if(e_(D)){if(!an||Vn(D)!==Nl(_t))return cN(D)}else if(C.assertNode(D,S1),!an)return D.text;return A1(_t,D,se)}function AT(D,se,_t){if(D.kind===11&&D.textSourceNode){let Fr=D.textSourceNode;if(Ve(Fr)||Xi(Fr)||hp(Fr)||e_(Fr)){let wi=hp(Fr)?Fr.text:Fc(Fr);return _t?`"${Zj(wi)}"`:se||Va(D)&16777216?`"${rg(wi)}"`:`"${rk(wi)}"`}else return AT(Fr,se,_t)}let an=(se?1:0)|(_t?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&e.target>=8?8:0);return nie(D,O,an)}function Au(D){D&&Va(D)&1048576||(ye.push($),$=0,ue.push(G),G=void 0,Y.push(oe))}function ap(D){D&&Va(D)&1048576||($=ye.pop(),G=ue.pop(),oe=Y.pop())}function H0(D){(!oe||oe===Zs(Y))&&(oe=new Set),oe.add(D)}function wf(D,se){ne.push(he),he=D,fe.push(oe),Ne=se}function yb(){he=ne.pop(),Ne=fe.pop()}function bb(D){(!Ne||Ne===Zs(fe))&&(Ne=new Set),Ne.add(D)}function iu(D){if(D)switch(D.kind){case 241:Ke(D.statements,iu);break;case 256:case 254:case 246:case 247:iu(D.statement);break;case 245:iu(D.thenStatement),iu(D.elseStatement);break;case 248:case 250:case 249:iu(D.initializer),iu(D.statement);break;case 255:iu(D.caseBlock);break;case 269:Ke(D.clauses,iu);break;case 296:case 297:Ke(D.statements,iu);break;case 258:iu(D.tryBlock),iu(D.catchClause),iu(D.finallyBlock);break;case 299:iu(D.variableDeclaration),iu(D.block);break;case 243:iu(D.declarationList);break;case 261:Ke(D.declarations,iu);break;case 260:case 169:case 208:case 263:Up(D.name);break;case 262:Up(D.name),Va(D)&1048576&&(Ke(D.parameters,iu),iu(D.body));break;case 206:case 207:Ke(D.elements,iu);break;case 272:iu(D.importClause);break;case 273:Up(D.name),iu(D.namedBindings);break;case 274:Up(D.name);break;case 280:Up(D.name);break;case 275:Ke(D.elements,iu);break;case 276:Up(D.propertyName||D.name);break}}function nx(D){if(D)switch(D.kind){case 303:case 304:case 172:case 174:case 177:case 178:Up(D.name);break}}function Up(D){D&&(ol(D)||cS(D)?IT(D):ta(D)&&iu(D))}function IT(D){let se=D.emitNode.autoGenerate;if((se.flags&7)===4)return xT(ew(D),Xi(D),se.flags,se.prefix,se.suffix);{let _t=se.id;return Z[_t]||(Z[_t]=nD(D))}}function xT(D,se,_t,an,Fr){let wi=ss(D),Ei=se?K:H;return Ei[wi]||(Ei[wi]=RT(D,se,_t??0,XR(an,IT),XR(Fr)))}function Us(D,se){return q0(D,se)&&!tD(D,se)&&!V.has(D)}function tD(D,se){return se?!!Ne?.has(D):!!oe?.has(D)}function q0(D,se){return O?F6(O,D,r):!0}function IE(D,se){for(let _t=se;_t&&P1(_t,se);_t=_t.nextContainer)if(ph(_t)&&_t.locals){let an=_t.locals.get(ml(D));if(an&&an.flags&3257279)return!1}return!0}function OP(D){switch(D){case"":return $;case"#":return he;default:return G?.get(D)??0}}function _d(D,se){switch(D){case"":$=se;break;case"#":he=se;break;default:G??(G=new Map),G.set(D,se);break}}function ov(D,se,_t,an,Fr){an.length>0&&an.charCodeAt(0)===35&&(an=an.slice(1));let wi=E0(_t,an,"",Fr),Ei=OP(wi);if(D&&!(Ei&D)){let ya=E0(_t,an,D===268435456?"_i":"_n",Fr);if(Us(ya,_t))return Ei|=D,_t?bb(ya):se&&H0(ya),_d(wi,Ei),ya}for(;;){let oo=Ei&268435455;if(Ei++,oo!==8&&oo!==13){let ya=oo<26?"_"+String.fromCharCode(97+oo):"_"+(oo-26),Zu=E0(_t,an,ya,Fr);if(Us(Zu,_t))return _t?bb(Zu):se&&H0(Zu),_d(wi,Ei),Zu}}}function J_(D,se=Us,_t,an,Fr,wi,Ei){if(D.length>0&&D.charCodeAt(0)===35&&(D=D.slice(1)),wi.length>0&&wi.charCodeAt(0)===35&&(wi=wi.slice(1)),_t){let ya=E0(Fr,wi,D,Ei);if(se(ya,Fr))return Fr?bb(ya):an?H0(ya):V.add(ya),ya}D.charCodeAt(D.length-1)!==95&&(D+="_");let oo=1;for(;;){let ya=E0(Fr,wi,D+oo,Ei);if(se(ya,Fr))return Fr?bb(ya):an?H0(ya):V.add(ya),ya;oo++}}function rx(D){return J_(D,q0,!0,!1,!1,"","")}function Rp(D){let se=Fc(D.name);return IE(se,ai(D,ph))?se:J_(se,Us,!1,!1,!1,"","")}function ix(D){let se=uR(D),_t=Na(se)?iie(se.text):"module";return J_(_t,Us,!1,!1,!1,"","")}function sp(){return J_("default",Us,!1,!1,!1,"","")}function ox(){return J_("class",Us,!1,!1,!1,"","")}function uy(D,se,_t,an){return Ve(D.name)?xT(D.name,se):ov(0,!1,se,_t,an)}function RT(D,se,_t,an,Fr){switch(D.kind){case 80:case 81:return J_(Fc(D),Us,!!(_t&16),!!(_t&8),se,an,Fr);case 267:case 266:return C.assert(!an&&!Fr&&!se),Rp(D);case 272:case 278:return C.assert(!an&&!Fr&&!se),ix(D);case 262:case 263:{C.assert(!an&&!Fr&&!se);let wi=D.name;return wi&&!ol(wi)?RT(wi,!1,_t,an,Fr):sp()}case 277:return C.assert(!an&&!Fr&&!se),sp();case 231:return C.assert(!an&&!Fr&&!se),ox();case 174:case 177:case 178:return uy(D,se,an,Fr);case 167:return ov(0,!0,se,an,Fr);default:return ov(0,!1,se,an,Fr)}}function nD(D){let se=D.emitNode.autoGenerate,_t=XR(se.prefix,IT),an=XR(se.suffix);switch(se.flags&7){case 1:return ov(0,!!(se.flags&8),Xi(D),_t,an);case 2:return C.assertNode(D,Ve),ov(268435456,!!(se.flags&8),!1,_t,an);case 3:return J_(Sr(D),se.flags&32?q0:Us,!!(se.flags&16),!!(se.flags&8),Xi(D),_t,an)}return C.fail(`Unsupported GeneratedIdentifierKind: ${C.formatEnum(se.flags&7,H8,!0)}.`)}function rD(D,se){let _t=ae(2,D,se),an=nn,Fr=rn,wi=Nn;DT(se),_t(D,se),iD(se,an,Fr,wi)}function DT(D){let se=Va(D),_t=L_(D);Eb(D,se,_t.pos,_t.end),se&4096&&(Yt=!0)}function iD(D,se,_t,an){let Fr=Va(D),wi=L_(D);Fr&4096&&(Yt=!1),Dp(D,Fr,wi.pos,wi.end,se,_t,an);let Ei=_ae(D);Ei&&Dp(D,Fr,Ei.pos,Ei.end,se,_t,an)}function Eb(D,se,_t,an){ki(),Qt=!1;let Fr=_t<0||(se&1024)!==0||D.kind===12,wi=an<0||(se&2048)!==0||D.kind===12;(_t>0||an>0)&&_t!==an&&(Fr||xE(_t,D.kind!==359),(!Fr||_t>=0&&se&1024)&&(nn=_t),(!wi||an>=0&&se&2048)&&(rn=an,D.kind===261&&(Nn=an))),Ke(kR(D),Mh),Ro()}function Dp(D,se,_t,an,Fr,wi,Ei){ki();let oo=an<0||(se&2048)!==0||D.kind===12;Ke(Mk(D),oD),(_t>0||an>0)&&_t!==an&&(nn=Fr,rn=wi,Nn=Ei,!oo&&D.kind!==359&&c_(an)),Ro()}function Mh(D){(D.hasLeadingNewline||D.kind===2)&&ve.writeLine(),CT(D),D.hasTrailingNewLine||D.kind===2?ve.writeLine():ve.writeSpace(" ")}function oD(D){ve.isAtStartOfLine()||ve.writeSpace(" "),CT(D),D.hasTrailingNewLine&&ve.writeLine()}function CT(D){let se=is(D),_t=D.kind===3?TA(se):void 0;SR(se,_t,ve,0,se.length,R)}function is(D){return D.kind===3?`/*${D.text}*/`:`//${D.text}`}function Rr(D,se,_t){ki();let{pos:an,end:Fr}=se,wi=Va(D),Ei=an<0||(wi&1024)!==0,oo=Yt||Fr<0||(wi&2048)!==0;Ei||Of(se),Ro(),wi&4096&&!Yt?(Yt=!0,_t(D),Yt=!1):_t(D),ki(),oo||(xE(se.end,!0),Qt&&!ve.isAtStartOfLine()&&ve.writeLine()),Ro()}function ff(D,se){return D=Nl(D),D.parent&&D.parent===Nl(se).parent}function Cd(D,se){if(se.pos-1&&an.indexOf(se)===Fr+1}function xE(D,se){Qt=!1,se?D===0&&O?.isDeclarationFile?Eg(D,J0):Eg(D,NT):D===0&&Eg(D,aD)}function aD(D,se,_t,an,Fr){_f(D,se)&&NT(D,se,_t,an,Fr)}function J0(D,se,_t,an,Fr){_f(D,se)||NT(D,se,_t,an,Fr)}function RE(D,se){return e.onlyPrintJsDocStyle?HH(D,se)||W6(D,se):!0}function NT(D,se,_t,an,Fr){!O||!RE(O.text,D)||(Qt||(Qie(xt(),ve,Fr,D),Qt=!0),Ls(D),SR(O.text,xt(),ve,D,se,R),Ls(se),an?ve.writeLine():_t===3&&ve.writeSpace(" "))}function yg(D){Yt||D===-1||xE(D,!0)}function c_(D){ax(D,mf)}function mf(D,se,_t,an){!O||!RE(O.text,D)||(ve.isAtStartOfLine()||ve.writeSpace(" "),Ls(D),SR(O.text,xt(),ve,D,se,R),Ls(se),an&&ve.writeLine())}function Bm(D,se,_t){Yt||(ki(),ax(D,se?mf:_t?av:bg),Ro())}function av(D,se,_t){O&&(Ls(D),SR(O.text,xt(),ve,D,se,R),Ls(se),_t===2&&ve.writeLine())}function bg(D,se,_t,an){O&&(Ls(D),SR(O.text,xt(),ve,D,se,R),Ls(se),an?ve.writeLine():ve.writeSpace(" "))}function Eg(D,se){O&&(nn===-1||D!==nn)&&(lc(D)?sD(se):XM(O.text,D,se,D))}function ax(D,se){O&&(rn===-1||D!==rn&&D!==Nn)&&YM(O.text,D,se)}function lc(D){return _n!==void 0&&Ya(_n).nodePos===D}function sD(D){if(!O)return;let se=Ya(_n).detachedCommentEndPos;_n.length-1?_n.pop():_n=void 0,XM(O.text,se,D,se)}function Of(D){let se=O&&eoe(O.text,xt(),ve,Lh,D,R,Yt);se&&(_n?_n.push(se):_n=[se])}function Lh(D,se,_t,an,Fr,wi){!O||!RE(O.text,an)||(Ls(an),SR(D,se,_t,an,Fr,wi),Ls(Fr))}function _f(D,se){return!!O&&lj(O.text,D,se)}function DE(D){return D.parsedSourceMap===void 0&&D.sourceMapText!==void 0&&(D.parsedSourceMap=jq(D.sourceMapText)||!1),D.parsedSourceMap||void 0}function K0(D,se){let _t=ae(3,D,se);sx(se),_t(D,se),PT(se)}function sx(D){let se=Va(D),_t=jv(D);if(jV(D)){C.assertIsDefined(D.parent,"UnparsedNodes must have parent pointers");let an=DE(D.parent);an&&at&&at.appendSourceMap(ve.getLine(),ve.getColumn(),an,D.parent.sourceMapPath,D.parent.getLineAndCharacterOfPosition(D.pos),D.parent.getLineAndCharacterOfPosition(D.end))}else{let an=_t.source||Bt;D.kind!==359&&!(se&32)&&_t.pos>=0&&CE(_t.source||Bt,hf(an,_t.pos)),se&128&&(je=!0)}}function PT(D){let se=Va(D),_t=jv(D);jV(D)||(se&128&&(je=!1),D.kind!==359&&!(se&64)&&_t.end>=0&&CE(_t.source||Bt,_t.end))}function hf(D,se){return D.skipTrivia?D.skipTrivia(se):La(D.text,se)}function Ls(D){if(je||Qm(D)||X0(Bt))return;let{line:se,character:_t}=Es(Bt,D);at.addMapping(ve.getLine(),ve.getColumn(),yt,se,_t,void 0)}function CE(D,se){if(D!==Bt){let _t=Bt,an=yt;sv(D),Ls(se),Sb(_t,an)}else Ls(se)}function NE(D,se,_t,an,Fr){if(je||D&&i3(D))return Fr(se,_t,an);let wi=D&&D.emitNode,Ei=wi&&wi.flags||0,oo=wi&&wi.tokenSourceMapRanges&&wi.tokenSourceMapRanges[se],ya=oo&&oo.source||Bt;return an=hf(ya,oo?oo.pos:an),!(Ei&256)&&an>=0&&CE(ya,an),an=Fr(se,_t,an),oo&&(an=oo.end),!(Ei&512)&&an>=0&&CE(ya,an),an}function sv(D){if(!je){if(Bt=D,D===Qe){yt=gt;return}X0(D)||(yt=at.addSource(D.fileName),e.inlineSources&&at.setSourceContent(yt,D.text),Qe=D,gt=yt)}}function Sb(D,se){Bt=D,yt=se}function X0(D){return Tl(D.fileName,".json")}}function Sje(){let e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}function Tje(e){return rce[e&15360][0]}function Aje(e){return rce[e&15360][1]}function Ije(e,t,r,i){t(e)}function xje(e,t,r,i){t(e,r.select(i))}function Rje(e,t,r,i){t(e,r)}function Dje(e,t){return e.length===1?Ije:typeof t=="object"?xje:Rje}var rce,uF,fJ,oE,mJ,Lw,Cje=A({"src/compiler/emitter.ts"(){"use strict";ia(),ia(),oS(),rce=Sje(),uF={hasGlobalName:Ko,getReferencedExportContainer:Ko,getReferencedImportDeclaration:Ko,getReferencedDeclarationWithCollidingName:Ko,isDeclarationWithCollidingName:Ko,isValueAliasDeclaration:Ko,isReferencedAliasDeclaration:Ko,isTopLevelValueImportEqualsWithEntityName:Ko,getNodeCheckFlags:Ko,isDeclarationVisible:Ko,isLateBound:e=>!1,collectLinkedAliases:Ko,isImplementationOfOverload:Ko,isRequiredInitializedParameter:Ko,isOptionalUninitializedParameterProperty:Ko,isExpandoFunctionDeclaration:Ko,getPropertiesOfContainerFunction:Ko,createTypeOfDeclaration:Ko,createReturnTypeOfSignatureDeclaration:Ko,createTypeOfExpression:Ko,createLiteralConstValue:Ko,isSymbolAccessible:Ko,isEntityNameVisible:Ko,getConstantValue:Ko,getReferencedValueDeclaration:Ko,getReferencedValueDeclarations:Ko,getTypeReferenceSerializationKind:Ko,isOptionalParameter:Ko,moduleExportsSomeValue:Ko,isArgumentsLocalBinding:Ko,getExternalModuleFileFromDeclaration:Ko,getTypeReferenceDirectivesForEntityName:Ko,getTypeReferenceDirectivesForSymbol:Ko,isLiteralConstDeclaration:Ko,getJsxFactoryEntity:Ko,getJsxFragmentFactoryEntity:Ko,getAllAccessorDeclarations:Ko,getSymbolOfExternalModuleSpecifier:Ko,isBindingCapturedByNode:Ko,getDeclarationStatementsForSourceFile:Ko,isImportRequiredByAugmentation:Ko,tryFindAmbientModule:Ko},fJ=Ed(()=>x0({})),oE=Ed(()=>x0({removeComments:!0})),mJ=Ed(()=>x0({removeComments:!0,neverAsciiEscape:!0})),Lw=Ed(()=>x0({removeComments:!0,omitTrailingSemicolon:!0}))}});function dF(e,t,r){if(!e.getDirectories||!e.readDirectory)return;let i=new Map,o=Pu(r);return{useCaseSensitiveFileNames:r,fileExists:I,readFile:(G,ne)=>e.readFile(G,ne),directoryExists:e.directoryExists&&R,getDirectories:N,readDirectory:O,createDirectory:e.createDirectory&&M,writeFile:e.writeFile&&T,addOrDeleteFileOrDirectory:K,addOrDeleteFile:Z,clearCache:ue,realpath:e.realpath&&H};function s(G){return rl(G,t,o)}function l(G){return i.get(zc(G))}function u(G){let ne=l(li(G));return ne&&(ne.sortedAndCanonicalizedFiles||(ne.sortedAndCanonicalizedFiles=ne.files.map(o).sort(),ne.sortedAndCanonicalizedDirectories=ne.directories.map(o).sort()),ne)}function p(G){return rc(va(G))}function g(G,ne){var he;if(!e.realpath||zc(s(e.realpath(G)))===ne){let ye={files:Ft(e.readDirectory(G,void 0,void 0,["*.*"]),p)||[],directories:e.getDirectories(G)||[]};return i.set(zc(ne),ye),ye}if((he=e.directoryExists)!=null&&he.call(e,G))return i.set(ne,!1),!1}function m(G,ne){ne=zc(ne);let he=l(ne);if(he)return he;try{return g(G,ne)}catch{C.assert(!i.has(zc(ne)));return}}function b(G,ne){return xv(G,ne,el,ju)>=0}function T(G,ne,he){let ye=s(G),$=u(ye);return $&&V($,p(G),!0),e.writeFile(G,ne,he)}function I(G){let ne=s(G),he=u(ne);return he&&b(he.sortedAndCanonicalizedFiles,o(p(G)))||e.fileExists(G)}function R(G){let ne=s(G);return i.has(zc(ne))||e.directoryExists(G)}function M(G){let ne=s(G),he=u(ne);if(he){let ye=p(G),$=o(ye),Y=he.sortedAndCanonicalizedDirectories;Ty(Y,$,ju)&&he.directories.push(ye)}e.createDirectory(G)}function N(G){let ne=s(G),he=m(G,ne);return he?he.directories.slice():e.getDirectories(G)}function O(G,ne,he,ye,$){let Y=s(G),oe=m(G,Y),fe;if(oe!==void 0)return xU(G,ne,he,ye,r,t,$,Ne,H);return e.readDirectory(G,ne,he,ye,$);function Ne(ie){let ve=s(ie);if(ve===Y)return oe||me(ie,ve);let Le=m(ie,ve);return Le!==void 0?Le||me(ie,ve):p7}function me(ie,ve){if(fe&&ve===Y)return fe;let Le={files:Ft(e.readDirectory(ie,void 0,void 0,["*.*"]),p)||et,directories:e.getDirectories(ie)||et};return ve===Y&&(fe=Le),Le}}function H(G){return e.realpath?e.realpath(G):G}function K(G,ne){if(l(ne)!==void 0){ue();return}let ye=u(ne);if(!ye)return;if(!e.directoryExists){ue();return}let $=p(G),Y={fileExists:e.fileExists(G),directoryExists:e.directoryExists(G)};return Y.directoryExists||b(ye.sortedAndCanonicalizedDirectories,o($))?ue():V(ye,$,Y.fileExists),Y}function Z(G,ne,he){if(he===1)return;let ye=u(ne);ye&&V(ye,p(G),he===0)}function V(G,ne,he){let ye=G.sortedAndCanonicalizedFiles,$=o(ne);if(he)Ty(ye,$,ju)&&G.files.push(ne);else{let Y=xv(ye,$,el,ju);if(Y>=0){ye.splice(Y,1);let oe=G.files.findIndex(fe=>o(fe)===$);G.files.splice(oe,1)}}}function ue(){i.clear()}}function pF(e,t,r,i,o){var s;let l=g1(((s=t?.configFile)==null?void 0:s.extendedSourceFiles)||et,o);r.forEach((u,p)=>{l.has(p)||(u.projects.delete(e),u.close())}),l.forEach((u,p)=>{let g=r.get(p);g?g.projects.add(e):r.set(p,{projects:new Set([e]),watcher:i(u,p),close:()=>{let m=r.get(p);!m||m.projects.size!==0||(m.watcher.close(),r.delete(p))}})})}function _J(e,t){t.forEach(r=>{r.projects.delete(e)&&r.close()})}function fF(e,t,r){e.delete(t)&&e.forEach(({extendedResult:i},o)=>{var s;(s=i.extendedSourceFiles)!=null&&s.some(l=>r(l)===t)&&fF(e,o,r)})}function hJ(e,t,r){KC(t,e.getMissingFilePaths(),{createNewValue:r,onDeleteValue:$m})}function kw(e,t,r){t?KC(e,new Map(Object.entries(t)),{createNewValue:i,onDeleteValue:Cf,onExistingValue:o}):ep(e,Cf);function i(s,l){return{watcher:r(s,l),flags:l}}function o(s,l,u){s.flags!==l&&(s.watcher.close(),e.set(u,i(u,l)))}}function ww({watchedDirPath:e,fileOrDirectory:t,fileOrDirectoryPath:r,configFileName:i,options:o,program:s,extraFileExtensions:l,currentDirectory:u,useCaseSensitiveFileNames:p,writeLog:g,toPath:m,getScriptKind:b}){let T=IF(r);if(!T)return g(`Project: ${i} Detected ignored path: ${t}`),!0;if(r=T,r===e)return!1;if(EA(r)&&!(Woe(t,o,l)||O()))return g(`Project: ${i} Detected file add/remove of non supported extension: ${t}`),!0;if(bse(t,o.configFile.configFileSpecs,bo(li(i),u),p,u))return g(`Project: ${i} Detected excluded file: ${t}`),!0;if(!s||Ps(o)||o.outDir)return!1;if(Su(r)){if(o.declarationDir)return!1}else if(!Ec(r,LR))return!1;let I=Td(r),R=Do(s)?void 0:Nje(s)?s.getProgramOrUndefined():s,M=!R&&!Do(s)?s:void 0;if(N(I+".ts")||N(I+".tsx"))return g(`Project: ${i} Detected output file: ${t}`),!0;return!1;function N(H){return R?!!R.getSourceFileByPath(H):M?M.getState().fileInfos.has(H):!!vn(s,K=>m(K)===H)}function O(){if(!b)return!1;switch(b(t)){case 3:case 4:case 7:case 5:return!0;case 1:case 2:return qy(o);case 6:return h0(o);case 0:return!1}}}function Nje(e){return!!e.getState}function ice(e,t){return e?e.isEmittedFile(t):!1}function gJ(e,t,r,i){Vne(t===2?r:$a);let o={watchFile:(M,N,O,H)=>e.watchFile(M,N,O,H),watchDirectory:(M,N,O,H)=>e.watchDirectory(M,N,(O&1)!==0,H)},s=t!==0?{watchFile:I("watchFile"),watchDirectory:I("watchDirectory")}:void 0,l=t===2?{watchFile:b,watchDirectory:T}:s||o,u=t===2?m:m2;return{watchFile:p("watchFile"),watchDirectory:p("watchDirectory")};function p(M){return(N,O,H,K,Z,V)=>{var ue;return S5(N,M==="watchFile"?K?.excludeFiles:K?.excludeDirectories,g(),((ue=e.getCurrentDirectory)==null?void 0:ue.call(e))||"")?u(N,H,K,Z,V):l[M].call(void 0,N,O,H,K,Z,V)}}function g(){return typeof e.useCaseSensitiveFileNames=="boolean"?e.useCaseSensitiveFileNames:e.useCaseSensitiveFileNames()}function m(M,N,O,H,K){return r(`ExcludeWatcher:: Added:: ${R(M,N,O,H,K,i)}`),{close:()=>r(`ExcludeWatcher:: Close:: ${R(M,N,O,H,K,i)}`)}}function b(M,N,O,H,K,Z){r(`FileWatcher:: Added:: ${R(M,O,H,K,Z,i)}`);let V=s.watchFile(M,N,O,H,K,Z);return{close:()=>{r(`FileWatcher:: Close:: ${R(M,O,H,K,Z,i)}`),V.close()}}}function T(M,N,O,H,K,Z){let V=`DirectoryWatcher:: Added:: ${R(M,O,H,K,Z,i)}`;r(V);let ue=Ks(),G=s.watchDirectory(M,N,O,H,K,Z),ne=Ks()-ue;return r(`Elapsed:: ${ne}ms ${V}`),{close:()=>{let he=`DirectoryWatcher:: Close:: ${R(M,O,H,K,Z,i)}`;r(he);let ye=Ks();G.close();let $=Ks()-ye;r(`Elapsed:: ${$}ms ${he}`)}}}function I(M){return(N,O,H,K,Z,V)=>o[M].call(void 0,N,(...ue)=>{let G=`${M==="watchFile"?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${ue[0]} ${ue[1]!==void 0?ue[1]:""}:: ${R(N,H,K,Z,V,i)}`;r(G);let ne=Ks();O.call(void 0,...ue);let he=Ks()-ne;r(`Elapsed:: ${he}ms ${G}`)},H,K,Z,V)}function R(M,N,O,H,K,Z){return`WatchInfo: ${M} ${N} ${JSON.stringify(O)} ${Z?Z(H,K):K===void 0?H:`${H} ${K}`}`}}function Ow(e){let t=e?.fallbackPolling;return{watchFile:t!==void 0?t:1}}function Cf(e){e.watcher.close()}var vJ,yJ,Pje=A({"src/compiler/watchUtilities.ts"(){"use strict";ia(),vJ=(e=>(e[e.Update=0]="Update",e[e.RootNamesAndUpdate=1]="RootNamesAndUpdate",e[e.Full=2]="Full",e))(vJ||{}),yJ=(e=>(e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",e))(yJ||{})}});function oce(e,t,r="tsconfig.json"){return Em(e,i=>{let o=Zr(i,r);return t(o)?o:void 0})}function mF(e,t){let r=li(t),i=dp(e)?e:Zr(r,e);return va(i)}function ace(e,t,r){let i;return Ke(e,s=>{let l=VM(s,t);if(l.pop(),!i){i=l;return}let u=Math.min(i.length,l.length);for(let p=0;p{let l;try{nl("beforeIORead"),l=e(i,t().charset),nl("afterIORead"),Yp("I/O Read","beforeIORead","afterIORead")}catch(u){s&&s(u.message),l=""}return l!==void 0?rw(i,l,o,r):void 0}}function EJ(e,t,r){return(i,o,s,l)=>{try{nl("beforeIOWrite"),rU(i,o,s,e,t,r),nl("afterIOWrite"),Yp("I/O Write","beforeIOWrite","afterIOWrite")}catch(u){l&&l(u.message)}}}function SJ(e,t,r=gu){let i=new Map,o=Pu(r.useCaseSensitiveFileNames);function s(m){return i.has(m)?!0:(g.directoryExists||r.directoryExists)(m)?(i.set(m,!0),!0):!1}function l(){return li(va(r.getExecutingFilePath()))}let u=Gv(e),p=r.realpath&&(m=>r.realpath(m)),g={getSourceFile:bJ(m=>g.readFile(m),()=>e,t),getDefaultLibLocation:l,getDefaultLibFileName:m=>Zr(l(),QM(m)),writeFile:EJ((m,b,T)=>r.writeFile(m,b,T),m=>(g.createDirectory||r.createDirectory)(m),m=>s(m)),getCurrentDirectory:Ed(()=>r.getCurrentDirectory()),useCaseSensitiveFileNames:()=>r.useCaseSensitiveFileNames,getCanonicalFileName:o,getNewLine:()=>u,fileExists:m=>r.fileExists(m),readFile:m=>r.readFile(m),trace:m=>r.write(m+u),directoryExists:m=>r.directoryExists(m),getEnvironmentVariable:m=>r.getEnvironmentVariable?r.getEnvironmentVariable(m):"",getDirectories:m=>r.getDirectories(m),realpath:p,readDirectory:(m,b,T,I,R)=>r.readDirectory(m,b,T,I,R),createDirectory:m=>r.createDirectory(m),createHash:oa(r,r.createHash)};return g}function Fw(e,t,r){let i=e.readFile,o=e.fileExists,s=e.directoryExists,l=e.createDirectory,u=e.writeFile,p=new Map,g=new Map,m=new Map,b=new Map,T=M=>{let N=t(M),O=p.get(N);return O!==void 0?O!==!1?O:void 0:I(N,M)},I=(M,N)=>{let O=i.call(e,N);return p.set(M,O!==void 0?O:!1),O};e.readFile=M=>{let N=t(M),O=p.get(N);return O!==void 0?O!==!1?O:void 0:!Tl(M,".json")&&!ece(M)?i.call(e,M):I(N,M)};let R=r?(M,N,O,H)=>{let K=t(M),Z=typeof N=="object"?N.impliedNodeFormat:void 0,V=b.get(Z),ue=V?.get(K);if(ue)return ue;let G=r(M,N,O,H);return G&&(Su(M)||Tl(M,".json"))&&b.set(Z,(V||new Map).set(K,G)),G}:void 0;return e.fileExists=M=>{let N=t(M),O=g.get(N);if(O!==void 0)return O;let H=o.call(e,M);return g.set(N,!!H),H},u&&(e.writeFile=(M,N,...O)=>{let H=t(M);g.delete(H);let K=p.get(H);K!==void 0&&K!==N?(p.delete(H),b.forEach(Z=>Z.delete(H))):R&&b.forEach(Z=>{let V=Z.get(H);V&&V.text!==N&&Z.delete(H)}),u.call(e,M,N,...O)}),s&&(e.directoryExists=M=>{let N=t(M),O=m.get(N);if(O!==void 0)return O;let H=s.call(e,M);return m.set(N,!!H),H},l&&(e.createDirectory=M=>{let N=t(M);m.delete(N),l.call(e,M)})),{originalReadFile:i,originalFileExists:o,originalDirectoryExists:s,originalCreateDirectory:l,originalWriteFile:u,getSourceFileWithCache:R,readFileWithCache:T}}function MIe(e,t,r){let i;return i=Jr(i,e.getConfigFileParsingDiagnostics()),i=Jr(i,e.getOptionsDiagnostics(r)),i=Jr(i,e.getSyntacticDiagnostics(t,r)),i=Jr(i,e.getGlobalDiagnostics(r)),i=Jr(i,e.getSemanticDiagnostics(t,r)),xf(e.getCompilerOptions())&&(i=Jr(i,e.getDeclarationDiagnostics(t,r))),Gx(i||et)}function LIe(e,t){let r="";for(let i of e)r+=TJ(i,t);return r}function TJ(e,t){let r=`${aS(e)} TS${e.code}: ${W_(e.messageText,t.getNewLine())}${t.getNewLine()}`;if(e.file){let{line:i,character:o}=Es(e.file,e.start),s=e.file.fileName;return`${iC(s,t.getCurrentDirectory(),u=>t.getCanonicalFileName(u))}(${i+1},${o+1}): `+r}return r}function kIe(e){switch(e){case 1:return"\x1B[91m";case 0:return"\x1B[93m";case 2:return C.fail("Should never get an Info diagnostic on the command line.");case 3:return"\x1B[94m"}}function aE(e,t){return t+e+dce}function wIe(e,t,r,i,o,s){let{line:l,character:u}=Es(e,t),{line:p,character:g}=Es(e,t+r),m=Es(e,e.text.length).line,b=p-l>=4,T=(p+1+"").length;b&&(T=Math.max(pce.length,T));let I="";for(let R=l;R<=p;R++){I+=s.getNewLine(),b&&l+1r.getCanonicalFileName(p)):e.fileName,u="";return u+=i(l,"\x1B[96m"),u+=":",u+=i(`${o+1}`,"\x1B[93m"),u+=":",u+=i(`${s+1}`,"\x1B[93m"),u}function lce(e,t){let r="";for(let i of e){if(i.file){let{file:o,start:s}=i;r+=AJ(o,s,t),r+=" - "}if(r+=aE(aS(i),kIe(i.category)),r+=aE(` TS${i.code}: `,"\x1B[90m"),r+=W_(i.messageText,t.getNewLine()),i.file&&i.code!==f.File_appears_to_be_binary.code&&(r+=t.getNewLine(),r+=wIe(i.file,i.start,i.length,"",kIe(i.category),t)),i.relatedInformation){r+=t.getNewLine();for(let{file:o,start:s,length:l,messageText:u}of i.relatedInformation)o&&(r+=t.getNewLine(),r+=WIe+AJ(o,s,t),r+=wIe(o,s,l,fce,"\x1B[96m",t)),r+=t.getNewLine(),r+=fce+W_(u,t.getNewLine())}r+=t.getNewLine()}return r}function W_(e,t,r=0){if(wo(e))return e;if(e===void 0)return"";let i="";if(r){i+=t;for(let o=0;ot2(s,e,r,i,o,t,l)}}function CJ(e){return wo(e)?e:lh(e.fileName)}function _F(e,t,r,i,o){return{nameAndMode:zIe,resolve:(s,l)=>wse(s,e,r,i,t,o,l)}}function zw(e,t,r,i,o,s,l,u){if(e.length===0)return et;let p=[],g=new Map,m=u(t,r,i,s,l);for(let b of e){let T=m.nameAndMode.getName(b),I=m.nameAndMode.getMode(b,o,r?.commandLine.options||i),R=WN(T,I),M=g.get(R);M||g.set(R,M=m.resolve(T,I)),p.push(M)}return p}function NJ(e,t){return hF(void 0,e,(r,i)=>r&&t(r,i))}function hF(e,t,r,i){let o;return s(e,t,void 0);function s(l,u,p){if(i){let g=i(l,p);if(g)return g}return Ke(u,(g,m)=>{if(g&&o?.has(g.sourceFile.path))return;let b=r(g,p,m);return b||!g?b:((o||(o=new Set)).add(g.sourceFile.path),s(g.commandLine.projectReferences,g.references,g))})}}function gF(e,t,r){let i=e.configFilePath?li(e.configFilePath):t;return Zr(i,`__lib_node_modules_lookup_${r}__.ts`)}function PJ(e){let t=e.split("."),r=t[1],i=2;for(;t[i]&&t[i]!=="d";)r+=(i===2?"/":"-")+t[i],i++;return"@typescript/lib-"+r}function OIe(e){let t=lh(e.fileName),r=T5.get(t);return{libName:t,libFileName:r}}function R0(e){switch(e?.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function l2(e){return e.pos!==void 0}function ZN(e,t){var r,i,o,s;let l=C.checkDefined(e.getSourceFileByPath(t.file)),{kind:u,index:p}=t,g,m,b,T;switch(u){case 3:let I=Gw(l,p);if(b=(i=(r=e.getResolvedModule(l,I.text,e.getModeForUsageLocation(l,I)))==null?void 0:r.resolvedModule)==null?void 0:i.packageId,I.pos===-1)return{file:l,packageId:b,text:I.text};g=La(l.text,I.pos),m=I.end;break;case 4:({pos:g,end:m}=l.referencedFiles[p]);break;case 5:({pos:g,end:m,resolutionMode:T}=l.typeReferenceDirectives[p]),b=(s=(o=e.getResolvedTypeReferenceDirective(l,lh(l.typeReferenceDirectives[p].fileName),T||l.impliedNodeFormat))==null?void 0:o.resolvedTypeReferenceDirective)==null?void 0:s.packageId;break;case 7:({pos:g,end:m}=l.libReferenceDirectives[p]);break;default:return C.assertNever(u)}return{file:l,pos:g,end:m,packageId:b}}function MJ(e,t,r,i,o,s,l,u,p,g){if(!e||u?.()||!Jm(e.getRootFileNames(),t))return!1;let m;if(!Jm(e.getProjectReferences(),g,M)||e.getSourceFiles().some(I))return!1;let b=e.getMissingFilePaths();if(b&&Bc(b,o))return!1;let T=e.getCompilerOptions();if(!hU(T,r)||e.resolvedLibReferences&&Bc(e.resolvedLibReferences,(O,H)=>l(H)))return!1;if(T.configFile&&r.configFile)return T.configFile.text===r.configFile.text;return!0;function I(O){return!R(O)||s(O.path)}function R(O){return O.version===i(O.resolvedPath,O.fileName)}function M(O,H,K){return oj(O,H)&&N(e.getResolvedProjectReferences()[K],O)}function N(O,H){if(O){if(wr(m,O))return!0;let Z=c2(H),V=p(Z);return!V||O.commandLine.options.configFile!==V.options.configFile||!Jm(O.commandLine.fileNames,V.fileNames)?!1:((m||(m=[])).push(O),!Ke(O.references,(ue,G)=>!N(ue,O.commandLine.projectReferences[G])))}let K=c2(H);return!p(K)}}function XS(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function Bw(e,t,r,i){let o=LJ(e,t,r,i);return typeof o=="object"?o.impliedNodeFormat:o}function LJ(e,t,r,i){switch(dd(i)){case 3:case 99:return Ec(e,[".d.mts",".mts",".mjs"])?99:Ec(e,[".d.cts",".cts",".cjs"])?1:Ec(e,[".d.ts",".ts",".tsx",".js",".jsx"])?o():void 0;default:return}function o(){let s=yw(t,r,i),l=[];s.failedLookupLocations=l,s.affectingLocations=l;let u=bw(e,s);return{impliedNodeFormat:u?.contents.packageJsonContent.type==="module"?99:1,packageJsonLocations:l,packageJsonScope:u}}}function Mje(e,t){return e?Yx(e.getCompilerOptions(),t,I5):!1}function Lje(e,t,r,i,o,s){return{rootNames:e,options:t,host:r,oldProgram:i,configFileParsingDiagnostics:o,typeScriptVersion:s}}function vF(e,t,r,i,o){var s,l,u,p,g,m,b,T,I,R,M,N,O,H,K,Z;let V=Do(e)?Lje(e,t,r,i,o):e,{rootNames:ue,options:G,configFileParsingDiagnostics:ne,projectReferences:he,typeScriptVersion:ye}=V,{oldProgram:$}=V,Y=Ed(()=>Lm("ignoreDeprecations",f.Invalid_value_for_ignoreDeprecations)),oe,fe,Ne,me,ie,ve,Le,He=new Map,Ee=Xp(),Ce={},Me={},Fe=vI(),At,Se,je,at,Bt,yt,Qe,gt,nn,rn,Nn=typeof G.maxNodeModuleJsDepth=="number"?G.maxNodeModuleJsDepth:0,Xn=0,_n=new Map,Qt=new Map;(s=lr)==null||s.push(lr.Phase.Program,"createProgram",{configFilePath:G.configFilePath,rootDir:G.rootDir},!0),nl("beforeProgram");let Yt=V.host||sce(G),vi=bF(Yt),ho=G.noLib,ki=Ed(()=>Yt.getDefaultLibFileName(G)),Ro=Yt.getDefaultLibLocation?Yt.getDefaultLibLocation():li(ki()),nr=vR(),qr=Yt.getCurrentDirectory(),xr=$C(G),ln=fk(G,xr),tt=new Map,zt,Rn,ui,bi=Yt.hasInvalidatedResolutions||Km;Yt.resolveModuleNameLiterals?(ui=Yt.resolveModuleNameLiterals.bind(Yt),Rn=(l=Yt.getModuleResolutionCache)==null?void 0:l.call(Yt)):Yt.resolveModuleNames?(ui=(ze,Ze,kt,Ut,gn,Yn)=>Yt.resolveModuleNames(ze.map(uce),Ze,Yn?.map(uce),kt,Ut,gn).map(hn=>hn?hn.extension!==void 0?{resolvedModule:hn}:{resolvedModule:{...hn,extension:ZC(hn.resolvedFileName)}}:mce),Rn=(u=Yt.getModuleResolutionCache)==null?void 0:u.call(Yt)):(Rn=e2(qr,te,G),ui=(ze,Ze,kt,Ut,gn)=>zw(ze,Ze,kt,Ut,gn,Yt,Rn,DJ));let ro;if(Yt.resolveTypeReferenceDirectiveReferences)ro=Yt.resolveTypeReferenceDirectiveReferences.bind(Yt);else if(Yt.resolveTypeReferenceDirectives)ro=(ze,Ze,kt,Ut,gn)=>Yt.resolveTypeReferenceDirectives(ze.map(CJ),Ze,kt,Ut,gn?.impliedNodeFormat).map(Yn=>({resolvedTypeReferenceDirective:Yn}));else{let ze=k5(qr,te,void 0,Rn?.getPackageJsonInfoCache(),Rn?.optionsToRedirectsKey);ro=(Ze,kt,Ut,gn,Yn)=>zw(Ze,kt,Ut,gn,Yn,Yt,ze,_F)}let No=Yt.hasInvalidatedLibResolutions||Km,_a;if(Yt.resolveLibrary)_a=Yt.resolveLibrary.bind(Yt);else{let ze=e2(qr,te,G,Rn?.getPackageJsonInfoCache());_a=(Ze,kt,Ut)=>w5(Ze,kt,Ut,Yt,ze)}let ja=new Map,En=new Map,wn=Xp(),Ue=!1,mt=new Map,ft=new Map,Nt=Yt.useCaseSensitiveFileNames()?new Map:void 0,le,We,pt,j,ot=!!((p=Yt.useSourceOfProjectReferenceRedirect)!=null&&p.call(Yt))&&!G.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:xt,fileExists:Ye,directoryExists:ht}=kje({compilerHost:Yt,getSymlinkCache:U_,useSourceOfProjectReferenceRedirect:ot,toPath:or,getResolvedProjectReferences:Fo,getSourceOfProjectReferenceRedirect:Dd,forEachResolvedProjectReference:Bd}),Vt=Yt.readFile.bind(Yt);(g=lr)==null||g.push(lr.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!$});let yn=Mje($,G);(m=lr)==null||m.pop();let fn;if((b=lr)==null||b.push(lr.Phase.Program,"tryReuseStructureFromOldProgram",{}),fn=Po(),(T=lr)==null||T.pop(),fn!==2){if(oe=[],fe=[],he&&(le||(le=he.map(jt)),ue.length&&le?.forEach((ze,Ze)=>{if(!ze)return;let kt=Ps(ze.commandLine.options);if(ot){if(kt||ku(ze.commandLine.options)===0)for(let Ut of ze.commandLine.fileNames)wt(Ut,{kind:1,index:Ze})}else if(kt)wt(m0(kt,".d.ts"),{kind:2,index:Ze});else if(ku(ze.commandLine.options)===0){let Ut=Ed(()=>a2(ze.commandLine,!Yt.useCaseSensitiveFileNames()));for(let gn of ze.commandLine.fileNames)!Su(gn)&&!Tl(gn,".json")&&wt($N(gn,ze.commandLine,!Yt.useCaseSensitiveFileNames(),Ut),{kind:2,index:Ze})}})),(I=lr)==null||I.push(lr.Phase.Program,"processRootFiles",{count:ue.length}),Ke(ue,(ze,Ze)=>js(ze,!1,!1,{kind:0,index:Ze})),(R=lr)==null||R.pop(),Se??(Se=ue.length?M5(G,Yt):et),je=vI(),Se.length){(M=lr)==null||M.push(lr.Phase.Program,"processTypeReferences",{count:Se.length});let ze=G.configFilePath?li(G.configFilePath):qr,Ze=Zr(ze,u2),kt=Ci(Se,Ze);for(let Ut=0;Ut{js(Ap(Ze),!0,!1,{kind:6,index:kt})})}Ne=Iv(oe,yi).concat(fe),oe=void 0,fe=void 0}if($&&Yt.onReleaseOldSourceFile){let ze=$.getSourceFiles();for(let Ze of ze){let kt=fl(Ze.resolvedPath);(yn||!kt||kt.impliedNodeFormat!==Ze.impliedNodeFormat||Ze.resolvedPath===Ze.path&&kt.resolvedPath!==Ze.path)&&Yt.onReleaseOldSourceFile(Ze,$.getCompilerOptions(),!!fl(Ze.path))}Yt.getParsedCommandLine||$.forEachResolvedProjectReference(Ze=>{j_(Ze.sourceFile.path)||Yt.onReleaseOldSourceFile(Ze.sourceFile,$.getCompilerOptions(),!1)})}$&&Yt.onReleaseParsedCommandLine&&hF($.getProjectReferences(),$.getResolvedProjectReferences(),(ze,Ze,kt)=>{let Ut=Ze?.commandLine.projectReferences[kt]||$.getProjectReferences()[kt],gn=c2(Ut);We?.has(or(gn))||Yt.onReleaseParsedCommandLine(gn,ze,$.getCompilerOptions())}),$=void 0,Bt=void 0,Qe=void 0,nn=void 0;let mn={getRootFileNames:()=>ue,getSourceFile:Pa,getSourceFileByPath:fl,getSourceFiles:()=>Ne,getMissingFilePaths:()=>ft,getModuleResolutionCache:()=>Rn,getFilesByNameMap:()=>mt,getCompilerOptions:()=>G,getSyntacticDiagnostics:sc,getOptionsDiagnostics:Lr,getGlobalDiagnostics:El,getSemanticDiagnostics:Rl,getCachedSemanticDiagnostics:ll,getSuggestionDiagnostics:we,getDeclarationDiagnostics:Vs,getBindAndCheckDiagnostics:Wo,getProgramDiagnostics:on,getTypeChecker:yo,getClassifiableNames:Eo,getCommonSourceDirectory:Vr,emit:pa,getCurrentDirectory:()=>qr,getNodeCount:()=>yo().getNodeCount(),getIdentifierCount:()=>yo().getIdentifierCount(),getSymbolCount:()=>yo().getSymbolCount(),getTypeCount:()=>yo().getTypeCount(),getInstantiationCount:()=>yo().getInstantiationCount(),getRelationCacheSizes:()=>yo().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>At,getResolvedTypeReferenceDirectives:()=>Fe,getAutomaticTypeDirectiveNames:()=>Se,getAutomaticTypeDirectiveResolutions:()=>je,isSourceFileFromExternalLibrary:hl,isSourceFileDefaultLibrary:uu,getModeForUsageLocation:df,getModeForResolutionAtIndex:Qg,getSourceFileFromReference:lm,getLibFileFromReference:Oc,sourceFileToPackageName:En,redirectTargetsMap:wn,usesUriStyleNodeCoreModules:Ue,resolvedModules:yt,resolvedTypeReferenceDirectiveNames:gt,resolvedLibReferences:at,getResolvedModule:q,getResolvedModuleFromModuleSpecifier:Oe,getResolvedTypeReferenceDirective:Lt,forEachResolvedModule:w,forEachResolvedTypeReferenceDirective:ae,getCurrentPackagesMap:()=>rn,typesPackageExists:Ge,packageBundlesTypes:ke,isEmittedFile:_E,getConfigFileParsingDiagnostics:Uc,getProjectReferences:ds,getResolvedProjectReferences:Fo,getProjectReferenceRedirect:Bl,getResolvedProjectReferenceToRedirect:cf,getResolvedProjectReferenceByPath:j_,forEachResolvedProjectReference:Bd,isSourceOfProjectReferenceRedirect:Lf,emitBuildInfo:Yl,fileExists:Ye,readFile:Vt,directoryExists:ht,getSymlinkCache:U_,realpath:(K=Yt.realpath)==null?void 0:K.bind(Yt),useCaseSensitiveFileNames:()=>Yt.useCaseSensitiveFileNames(),getCanonicalFileName:te,getFileIncludeReasons:()=>Ee,structureIsReused:fn,writeFile:Fs};return xt(),At?.forEach(ze=>{switch(ze.kind){case 1:return nr.add(si(ze.file&&fl(ze.file),ze.fileProcessingReason,ze.diagnostic,ze.args||et));case 0:let{file:Ze,pos:kt,end:Ut}=ZN(mn,ze.reason);return nr.add(Qc(Ze,C.checkDefined(kt),C.checkDefined(Ut)-kt,ze.diagnostic,...ze.args||et));case 2:return ze.diagnostics.forEach(gn=>nr.add(gn));default:C.assertNever(ze)}}),W(),nl("afterProgram"),Yp("Program","beforeProgram","afterProgram"),(Z=lr)==null||Z.pop(),mn;function q(ze,Ze,kt){var Ut;return(Ut=yt?.get(ze.path))==null?void 0:Ut.get(Ze,kt)}function Oe(ze){let Ze=Vn(ze);return C.assertIsDefined(Ze,"`moduleSpecifier` must have a `SourceFile` ancestor. Use `program.getResolvedModule` instead to provide the containing file and resolution mode."),q(Ze,ze.text,df(Ze,ze))}function Lt(ze,Ze,kt){var Ut;return(Ut=gt?.get(ze.path))==null?void 0:Ut.get(Ze,kt)}function w(ze,Ze){J(yt,ze,Ze)}function ae(ze,Ze){J(gt,ze,Ze)}function J(ze,Ze,kt){var Ut;kt?(Ut=ze?.get(kt.path))==null||Ut.forEach((gn,Yn,hn)=>Ze(gn,Yn,hn,kt.path)):ze?.forEach((gn,Yn)=>gn.forEach((hn,$n,hi)=>Ze(hn,$n,hi,Yn)))}function pe(){return rn||(rn=new Map,w(({resolvedModule:ze})=>{ze?.packageId&&rn.set(ze.packageId.name,ze.extension===".d.ts"||!!rn.get(ze.packageId.name))}),rn)}function Ge(ze){return pe().has(W5(ze))}function ke(ze){return!!pe().get(ze)}function Dt(ze){var Ze;(Ze=ze.resolutionDiagnostics)!=null&&Ze.length&&(At??(At=[])).push({kind:2,diagnostics:ze.resolutionDiagnostics})}function Pt(ze,Ze,kt,Ut){if(Yt.resolveModuleNameLiterals||!Yt.resolveModuleNames)return Dt(kt);if(!Rn||Yc(Ze))return;let gn=bo(ze.originalFileName,qr),Yn=li(gn),hn=On(ze),$n=Rn.getFromNonRelativeNameCache(Ze,Ut,Yn,hn);$n&&Dt($n)}function Kt(ze,Ze,kt){var Ut,gn;if(!ze.length)return et;let Yn=bo(Ze.originalFileName,qr),hn=On(Ze);(Ut=lr)==null||Ut.push(lr.Phase.Program,"resolveModuleNamesWorker",{containingFileName:Yn}),nl("beforeResolveModule");let $n=ui(ze,Yn,hn,G,Ze,kt);return nl("afterResolveModule"),Yp("ResolveModule","beforeResolveModule","afterResolveModule"),(gn=lr)==null||gn.pop(),$n}function Tn(ze,Ze,kt){var Ut,gn;if(!ze.length)return[];let Yn=wo(Ze)?void 0:Ze,hn=wo(Ze)?Ze:bo(Ze.originalFileName,qr),$n=Yn&&On(Yn);(Ut=lr)==null||Ut.push(lr.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:hn}),nl("beforeResolveTypeReference");let hi=ro(ze,hn,$n,G,Yn,kt);return nl("afterResolveTypeReference"),Yp("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),(gn=lr)==null||gn.pop(),hi}function On(ze){let Ze=cf(ze.originalFileName);if(Ze||!Su(ze.originalFileName))return Ze;let kt=Gn(ze.path);if(kt)return kt;if(!Yt.realpath||!G.preserveSymlinks||!ze.originalFileName.includes(Ih))return;let Ut=or(Yt.realpath(ze.originalFileName));return Ut===ze.path?void 0:Gn(Ut)}function Gn(ze){let Ze=Dd(ze);if(wo(Ze))return cf(Ze);if(Ze)return Bd(kt=>{let Ut=Ps(kt.commandLine.options);if(Ut)return or(Ut)===ze?kt:void 0})}function yi(ze,Ze){return tl(Di(ze),Di(Ze))}function Di(ze){if(ym(Ro,ze.fileName,!1)){let Ze=rc(ze.fileName);if(Ze==="lib.d.ts"||Ze==="lib.es6.d.ts")return 0;let kt=Px(ZD(Ze,"lib."),".d.ts"),Ut=dw.indexOf(kt);if(Ut!==-1)return Ut+1}return dw.length+2}function or(ze){return rl(ze,qr,te)}function Vr(){if(ie===void 0){let ze=tr(Ne,Ze=>AS(Ze,mn));ie=QN(G,()=>Vi(ze,Ze=>Ze.isDeclarationFile?void 0:Ze.fileName),qr,te,Ze=>Wt(ze,Ze))}return ie}function Eo(){var ze;if(!Le){yo(),Le=new Set;for(let Ze of Ne)(ze=Ze.classifiableNames)==null||ze.forEach(kt=>Le.add(kt))}return Le}function Mi(ze,Ze){if(fn===0&&!Ze.ambientModuleNames.length)return Kt(ze,Ze,void 0);let kt,Ut,gn,Yn=mce,hn=$&&$.getSourceFile(Ze.fileName);for(let oi=0;oi{let Ut=(Ze?Ze.commandLine.projectReferences:he)[kt],gn=jt(Ut);return ze?!gn||gn.sourceFile!==ze.sourceFile||!Jm(ze.commandLine.fileNames,gn.commandLine.fileNames):gn!==void 0},(ze,Ze)=>{let kt=Ze?j_(Ze.sourceFile.path).commandLine.projectReferences:he;return!Jm(ze,kt,oj)})}function Po(){var ze;if(!$)return 0;let Ze=$.getCompilerOptions();if(M6(Ze,G))return 0;let kt=$.getRootFileNames();if(!Jm(kt,ue)||!Kr())return 0;he&&(le=he.map(jt));let Ut=[],gn=[];if(fn=2,Bc($.getMissingFilePaths(),ur=>Yt.fileExists(ur)))return 0;let Yn=$.getSourceFiles(),hn;(ur=>{ur[ur.Exists=0]="Exists",ur[ur.Modified=1]="Modified"})(hn||(hn={}));let $n=new Map;for(let ur of Yn){let oi=na(ur.fileName,Rn,Yt,G),mr=Yt.getSourceFileByPath?Yt.getSourceFileByPath(ur.fileName,ur.resolvedPath,oi,void 0,yn):Yt.getSourceFile(ur.fileName,oi,void 0,yn);if(!mr)return 0;mr.packageJsonLocations=(ze=oi.packageJsonLocations)!=null&&ze.length?oi.packageJsonLocations:void 0,mr.packageJsonScope=oi.packageJsonScope,C.assert(!mr.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");let Zo;if(ur.redirectInfo){if(mr!==ur.redirectInfo.unredirected)return 0;Zo=!1,mr=ur}else if($.redirectTargetsMap.has(ur.path)){if(mr!==ur)return 0;Zo=!1}else Zo=mr!==ur;mr.path=ur.path,mr.originalFileName=ur.originalFileName,mr.resolvedPath=ur.resolvedPath,mr.fileName=ur.fileName;let Ka=$.sourceFileToPackageName.get(ur.path);if(Ka!==void 0){let Qu=$n.get(Ka),mu=Zo?1:0;if(Qu!==void 0&&mu===1||Qu===1)return 0;$n.set(Ka,mu)}if(Zo)ur.impliedNodeFormat!==mr.impliedNodeFormat?fn=1:Jm(ur.libReferenceDirectives,mr.libReferenceDirectives,gc)?ur.hasNoDefaultLib!==mr.hasNoDefaultLib?fn=1:Jm(ur.referencedFiles,mr.referencedFiles,gc)?(ip(mr),Jm(ur.imports,mr.imports,Ts)&&Jm(ur.moduleAugmentations,mr.moduleAugmentations,Ts)?(ur.flags&12582912)!==(mr.flags&12582912)?fn=1:Jm(ur.typeReferenceDirectives,mr.typeReferenceDirectives,gc)||(fn=1):fn=1):fn=1:fn=1,gn.push(mr);else if(bi(ur.path))fn=1,gn.push(mr);else for(let Qu of ur.ambientModuleNames)He.set(Qu,ur.fileName);Ut.push(mr)}if(fn!==2)return fn;for(let ur of gn){let oi=FIe(ur),mr=Mi(oi,ur);(Qe??(Qe=new Map)).set(ur.path,mr),aj(oi,mr,Zg=>$.getResolvedModule(ur,Zg.text,df(ur,Zg)),$re)&&(fn=1);let Ka=ur.typeReferenceDirectives,Qu=Ci(Ka,ur);(nn??(nn=new Map)).set(ur.path,Qu),aj(Ka,Qu,Zg=>$.getResolvedTypeReferenceDirective(ur,CJ(Zg),Ww(Zg,ur.impliedNodeFormat)),Qre)&&(fn=1)}if(fn!==2)return fn;if(Xre(Ze,G)||$.resolvedLibReferences&&Bc($.resolvedLibReferences,(ur,oi)=>fg(oi).actual!==ur.actual))return 1;if(Yt.hasChangedAutomaticTypeDirectiveNames){if(Yt.hasChangedAutomaticTypeDirectiveNames())return 1}else if(Se=M5(G,Yt),!Jm($.getAutomaticTypeDirectiveNames(),Se))return 1;ft=$.getMissingFilePaths(),C.assert(Ut.length===$.getSourceFiles().length);for(let ur of Ut)mt.set(ur.path,ur);return $.getFilesByNameMap().forEach((ur,oi)=>{if(!ur){mt.set(oi,ur);return}if(ur.path===oi){$.isSourceFileFromExternalLibrary(ur)&&Qt.set(ur.path,!0);return}mt.set(oi,mt.get(ur.path))}),Ne=Ut,Ee=$.getFileIncludeReasons(),At=$.getFileProcessingDiagnostics(),Fe=$.getResolvedTypeReferenceDirectives(),Se=$.getAutomaticTypeDirectiveNames(),je=$.getAutomaticTypeDirectiveResolutions(),En=$.sourceFileToPackageName,wn=$.redirectTargetsMap,Ue=$.usesUriStyleNodeCoreModules,yt=$.resolvedModules,gt=$.resolvedTypeReferenceDirectiveNames,at=$.resolvedLibReferences,rn=$.getCurrentPackagesMap(),2}function Dn(ze){return{getPrependNodes:Gs,getCanonicalFileName:te,getCommonSourceDirectory:mn.getCommonSourceDirectory,getCompilerOptions:mn.getCompilerOptions,getCurrentDirectory:()=>qr,getSourceFile:mn.getSourceFile,getSourceFileByPath:mn.getSourceFileByPath,getSourceFiles:mn.getSourceFiles,getLibFileFromReference:mn.getLibFileFromReference,isSourceFileFromExternalLibrary:hl,getResolvedProjectReferenceToRedirect:cf,getProjectReferenceRedirect:Bl,isSourceOfProjectReferenceRedirect:Lf,getSymlinkCache:U_,writeFile:ze||Fs,isEmitBlocked:du,readFile:Ze=>Yt.readFile(Ze),fileExists:Ze=>{let kt=or(Ze);return fl(kt)?!0:ft.has(kt)?!1:Yt.fileExists(Ze)},useCaseSensitiveFileNames:()=>Yt.useCaseSensitiveFileNames(),getBuildInfo:Ze=>{var kt;return(kt=mn.getBuildInfo)==null?void 0:kt.call(mn,Ze)},getSourceFileFromReference:(Ze,kt)=>mn.getSourceFileFromReference(Ze,kt),redirectTargetsMap:wn,getFileIncludeReasons:mn.getFileIncludeReasons,createHash:oa(Yt,Yt.createHash)}}function Fs(ze,Ze,kt,Ut,gn,Yn){Yt.writeFile(ze,Ze,kt,Ut,gn,Yn)}function Yl(ze){var Ze,kt;C.assert(!Ps(G)),(Ze=lr)==null||Ze.push(lr.Phase.Emit,"emitBuildInfo",{},!0),nl("beforeEmit");let Ut=lF(uF,Dn(ze),void 0,lJ,!1,!0);return nl("afterEmit"),Yp("Emit","beforeEmit","afterEmit"),(kt=lr)==null||kt.pop(),Ut}function Fo(){return le}function ds(){return he}function Gs(){return wJ(he,(ze,Ze)=>{var kt;return(kt=le[Ze])==null?void 0:kt.commandLine},ze=>{let Ze=or(ze),kt=fl(Ze);return kt?kt.text:mt.has(Ze)?void 0:Yt.readFile(Ze)},Yt)}function hl(ze){return!!Qt.get(ze.path)}function uu(ze){if(!ze.isDeclarationFile)return!1;if(ze.hasNoDefaultLib)return!0;if(!G.noLib)return!1;let Ze=Yt.useCaseSensitiveFileNames()?rS:Yb;return G.lib?Et(G.lib,kt=>Ze(ze.fileName,at.get(kt).actual)):Ze(ze.fileName,ki())}function yo(){return ve||(ve=ole(mn))}function pa(ze,Ze,kt,Ut,gn,Yn){var hn,$n;(hn=lr)==null||hn.push(lr.Phase.Emit,"emit",{path:ze?.path},!0);let hi=pu(()=>Is(mn,ze,Ze,kt,Ut,gn,Yn));return($n=lr)==null||$n.pop(),hi}function du(ze){return tt.has(or(ze))}function Is(ze,Ze,kt,Ut,gn,Yn,hn){if(!hn){let ur=kJ(ze,Ze,kt,Ut);if(ur)return ur}let $n=yo().getEmitResolver(Ps(G)?void 0:Ze,Ut);nl("beforeEmit");let hi=lF($n,Dn(kt),Ze,sJ(G,Yn,gn),gn,!1,hn);return nl("afterEmit"),Yp("Emit","beforeEmit","afterEmit"),hi}function Pa(ze){return fl(or(ze))}function fl(ze){return mt.get(ze)||void 0}function Mf(ze,Ze,kt){return Gx(ze?Ze(ze,kt):Zi(mn.getSourceFiles(),Ut=>(kt&&kt.throwIfCancellationRequested(),Ze(Ut,kt))))}function sc(ze,Ze){return Mf(ze,nu,Ze)}function Rl(ze,Ze){return Mf(ze,Tp,Ze)}function ll(ze){var Ze;return ze?(Ze=Ce.perFile)==null?void 0:Ze.get(ze.path):Ce.allDiagnostics}function Wo(ze,Ze){return Ms(ze,Ze)}function on(ze){var Ze;if(eN(ze,G,mn))return et;let kt=nr.getDiagnostics(ze.fileName);return(Ze=ze.commentDirectives)!=null&&Ze.length?ee(ze,ze.commentDirectives,kt).diagnostics:kt}function Vs(ze,Ze){let kt=mn.getCompilerOptions();return!ze||Ps(kt)?Tr(ze,Ze):Mf(ze,Ni,Ze)}function nu(ze){return ld(ze)?(ze.additionalSyntacticDiagnostics||(ze.additionalSyntacticDiagnostics=pn(ze)),xo(ze.additionalSyntacticDiagnostics,ze.parseDiagnostics)):ze.parseDiagnostics}function pu(ze){try{return ze()}catch(Ze){throw Ze instanceof Ox&&(ve=void 0),Ze}}function Tp(ze,Ze){return xo(yF(Ms(ze,Ze),G),on(ze))}function Ms(ze,Ze){return jr(ze,Ze,Ce,Ic)}function Ic(ze,Ze){return pu(()=>{if(eN(ze,G,mn))return et;let kt=yo();C.assert(!!ze.bindDiagnostics);let gn=(ze.scriptKind===1||ze.scriptKind===2)&&hk(ze,G),Yn=yL(ze,G.checkJs),$n=!(!!ze.checkJsDirective&&ze.checkJsDirective.enabled===!1)&&(ze.scriptKind===3||ze.scriptKind===4||ze.scriptKind===5||Yn||gn||ze.scriptKind===7),hi=$n?ze.bindDiagnostics:et,ur=$n?kt.getDiagnostics(ze,Ze):et;return Yn&&(hi=tr(hi,oi=>SF.has(oi.code)),ur=tr(ur,oi=>SF.has(oi.code))),de(ze,$n&&!Yn,hi,ur,gn?ze.jsDocDiagnostics:void 0)})}function de(ze,Ze,...kt){var Ut;let gn=ts(kt);if(!Ze||!((Ut=ze.commentDirectives)!=null&&Ut.length))return gn;let{diagnostics:Yn,directives:hn}=ee(ze,ze.commentDirectives,gn);for(let $n of hn.getUnusedExpectations())Yn.push(fie(ze,$n.range,f.Unused_ts_expect_error_directive));return Yn}function ee(ze,Ze,kt){let Ut=tie(ze,Ze);return{diagnostics:kt.filter(Yn=>St(Yn,Ut)===-1),directives:Ut}}function we(ze,Ze){return pu(()=>yo().getSuggestionDiagnostics(ze,Ze))}function St(ze,Ze){let{file:kt,start:Ut}=ze;if(!kt)return-1;let gn=Mg(kt),Yn=zx(gn,Ut).line-1;for(;Yn>=0;){if(Ze.markUsed(Yn))return Yn;let hn=kt.text.slice(gn[Yn],gn[Yn+1]).trim();if(hn!==""&&!/^(\s*)\/\/(.*)$/.test(hn))return-1;Yn--}return-1}function pn(ze){return pu(()=>{let Ze=[];return kt(ze,ze),PN(ze,kt,Ut),Ze;function kt($n,hi){switch(hi.kind){case 169:case 172:case 174:if(hi.questionToken===$n)return Ze.push(hn($n,f.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 173:case 176:case 177:case 178:case 218:case 262:case 219:case 260:if(hi.type===$n)return Ze.push(hn($n,f.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch($n.kind){case 273:if($n.isTypeOnly)return Ze.push(hn(hi,f._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 278:if($n.isTypeOnly)return Ze.push(hn($n,f._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 276:case 281:if($n.isTypeOnly)return Ze.push(hn($n,f._0_declarations_can_only_be_used_in_TypeScript_files,tp($n)?"import...type":"export...type")),"skip";break;case 271:return Ze.push(hn($n,f.import_can_only_be_used_in_TypeScript_files)),"skip";case 277:if($n.isExportEquals)return Ze.push(hn($n,f.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 298:if($n.token===119)return Ze.push(hn($n,f.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 264:let oi=ma(120);return C.assertIsDefined(oi),Ze.push(hn($n,f._0_declarations_can_only_be_used_in_TypeScript_files,oi)),"skip";case 267:let mr=$n.flags&32?ma(145):ma(144);return C.assertIsDefined(mr),Ze.push(hn($n,f._0_declarations_can_only_be_used_in_TypeScript_files,mr)),"skip";case 265:return Ze.push(hn($n,f.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 176:case 174:case 262:return $n.body?void 0:(Ze.push(hn($n,f.Signature_declarations_can_only_be_used_in_TypeScript_files)),"skip");case 266:let Zo=C.checkDefined(ma(94));return Ze.push(hn($n,f._0_declarations_can_only_be_used_in_TypeScript_files,Zo)),"skip";case 235:return Ze.push(hn($n,f.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 234:return Ze.push(hn($n.type,f.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 238:return Ze.push(hn($n.type,f.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 216:C.fail()}}function Ut($n,hi){if(GH(hi)){let ur=vn(hi.modifiers,Eu);ur&&Ze.push(hn(ur,f.Decorators_are_not_valid_here))}else if(US(hi)&&hi.modifiers){let ur=ri(hi.modifiers,Eu);if(ur>=0){if(Co(hi)&&!G.experimentalDecorators)Ze.push(hn(hi.modifiers[ur],f.Decorators_are_not_valid_here));else if(Tc(hi)){let oi=ri(hi.modifiers,eI);if(oi>=0){let mr=ri(hi.modifiers,X7);if(ur>oi&&mr>=0&&ur=0&&ur=0&&Ze.push(ka(hn(hi.modifiers[Zo],f.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),hn(hi.modifiers[ur],f.Decorator_used_before_export_here)))}}}}}switch(hi.kind){case 263:case 231:case 174:case 176:case 177:case 178:case 218:case 262:case 219:if($n===hi.typeParameters)return Ze.push(Yn($n,f.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 243:if($n===hi.modifiers)return gn(hi.modifiers,hi.kind===243),"skip";break;case 172:if($n===hi.modifiers){for(let ur of $n)Ia(ur)&&ur.kind!==126&&ur.kind!==129&&Ze.push(hn(ur,f.The_0_modifier_can_only_be_used_in_TypeScript_files,ma(ur.kind)));return"skip"}break;case 169:if($n===hi.modifiers&&Et($n,Ia))return Ze.push(Yn($n,f.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 213:case 214:case 233:case 285:case 286:case 215:if($n===hi.typeArguments)return Ze.push(Yn($n,f.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function gn($n,hi){for(let ur of $n)switch(ur.kind){case 87:if(hi)continue;case 125:case 123:case 124:case 148:case 138:case 128:case 164:case 103:case 147:Ze.push(hn(ur,f.The_0_modifier_can_only_be_used_in_TypeScript_files,ma(ur.kind)));break;case 126:case 95:case 90:case 129:}}function Yn($n,hi,...ur){let oi=$n.pos;return Qc(ze,oi,$n.end-oi,hi,...ur)}function hn($n,hi,...ur){return Yf(ze,$n,hi,...ur)}})}function Tr(ze,Ze){return jr(ze,Ze,Me,gr)}function gr(ze,Ze){return pu(()=>{let kt=yo().getEmitResolver(ze,Ze);return Qle(Dn($a),kt,ze)||et})}function jr(ze,Ze,kt,Ut){var gn;let Yn=ze?(gn=kt.perFile)==null?void 0:gn.get(ze.path):kt.allDiagnostics;if(Yn)return Yn;let hn=Ut(ze,Ze);return ze?(kt.perFile||(kt.perFile=new Map)).set(ze.path,hn):kt.allDiagnostics=hn,hn}function Ni(ze,Ze){return ze.isDeclarationFile?[]:Tr(ze,Ze)}function Lr(){return Gx(xo(nr.getGlobalDiagnostics(),$o()))}function $o(){if(!G.configFile)return et;let ze=nr.getDiagnostics(G.configFile.fileName);return Bd(Ze=>{ze=xo(ze,nr.getDiagnostics(Ze.sourceFile.fileName))}),ze}function El(){return ue.length?Gx(yo().getGlobalDiagnostics().slice()):et}function Uc(){return ne||et}function js(ze,Ze,kt,Ut){Pe(va(ze),Ze,kt,void 0,Ut)}function gc(ze,Ze){return ze.fileName===Ze.fileName}function Ts(ze,Ze){return ze.kind===80?Ze.kind===80&&ze.escapedText===Ze.escapedText:Ze.kind===11&&ze.text===Ze.text}function Hc(ze,Ze){let kt=k.createStringLiteral(ze),Ut=k.createImportDeclaration(void 0,void 0,kt,void 0);return JA(Ut,2),qa(kt,Ut),qa(Ut,Ze),kt.flags&=-17,Ut.flags&=-17,kt}function ip(ze){if(ze.imports)return;let Ze=ld(ze),kt=ac(ze),Ut,gn,Yn;if((im(G)||kt)&&!ze.isDeclarationFile){G.importHelpers&&(Ut=[Hc(Hy,ze)]);let ur=j3(V3(G,ze),G);ur&&(Ut||(Ut=[])).push(Hc(ur,ze))}for(let ur of ze.statements)hn(ur,!1);(ze.flags&4194304||Ze)&&$n(ze),ze.imports=Ut||et,ze.moduleAugmentations=gn||et,ze.ambientModuleNames=Yn||et;return;function hn(ur,oi){if(SL(ur)){let mr=uR(ur);mr&&Na(mr)&&mr.text&&(!oi||!Yc(mr.text))&&(Uy(ur,!1),Ut=In(Ut,mr),!Ue&&Xn===0&&!ze.isDeclarationFile&&(Ue=uo(mr.text,"node:")))}else if(Jl(ur)&&Lu(ur)&&(oi||ei(ur,128)||ze.isDeclarationFile)){ur.name.parent=ur;let mr=Zf(ur.name);if(kt||oi&&!Yc(mr))(gn||(gn=[])).push(ur.name);else if(!oi){ze.isDeclarationFile&&(Yn||(Yn=[])).push(mr);let Zo=ur.body;if(Zo)for(let Ka of Zo.statements)hn(Ka,!0)}}}function $n(ur){let oi=/import|require/g;for(;oi.exec(ur.text)!==null;){let mr=hi(ur,oi.lastIndex);Ze&&Sd(mr,!0)||Wp(mr)&&mr.arguments.length>=1&&us(mr.arguments[0])?(Uy(mr,!1),Ut=In(Ut,mr.arguments[0])):zy(mr)&&(Uy(mr,!1),Ut=In(Ut,mr.argument.literal))}}function hi(ur,oi){let mr=ur,Zo=Ka=>{if(Ka.pos<=oi&&(oiTl(gn,hn))){kt&&(W1(gn)?kt(f.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,ze):kt(f.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,ze,"'"+ts(xr).join("', '")+"'"));return}let Yn=Ze(ze);if(kt)if(Yn)R0(Ut)&&gn===Yt.getCanonicalFileName(fl(Ut.file).fileName)&&kt(f.A_file_cannot_have_a_reference_to_itself);else{let hn=Bl(ze);hn?kt(f.Output_file_0_has_not_been_built_from_source_file_1,hn,ze):kt(f.File_0_not_found,ze)}return Yn}else{let gn=G.allowNonTsExtensions&&Ze(ze);if(gn)return gn;if(kt&&G.allowNonTsExtensions){kt(f.File_0_not_found,ze);return}let Yn=Ke(xr[0],hn=>Ze(ze+hn));return kt&&!Yn&&kt(f.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,ze,"'"+ts(xr).join("', '")+"'"),Yn}}function Pe(ze,Ze,kt,Ut,gn){md(ze,Yn=>Qo(Yn,Ze,kt,gn,Ut),(Yn,...hn)=>$r(void 0,gn,Yn,hn),gn)}function wt(ze,Ze){return Pe(ze,!1,!1,void 0,Ze)}function qn(ze,Ze,kt){!R0(kt)&&Et(Ee.get(Ze.path),R0)?$r(Ze,kt,f.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[Ze.fileName,ze]):$r(Ze,kt,f.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[ze,Ze.fileName])}function So(ze,Ze,kt,Ut,gn,Yn,hn){var $n;let hi=Ah.createRedirectedSourceFile({redirectTarget:ze,unredirected:Ze});return hi.fileName=kt,hi.path=Ut,hi.resolvedPath=gn,hi.originalFileName=Yn,hi.packageJsonLocations=($n=hn.packageJsonLocations)!=null&&$n.length?hn.packageJsonLocations:void 0,hi.packageJsonScope=hn.packageJsonScope,Qt.set(Ut,Xn>0),hi}function Qo(ze,Ze,kt,Ut,gn){var Yn,hn;(Yn=lr)==null||Yn.push(lr.Phase.Program,"findSourceFile",{fileName:ze,isDefaultLib:Ze||void 0,fileIncludeKind:q8[Ut.kind]});let $n=$l(ze,Ze,kt,Ut,gn);return(hn=lr)==null||hn.pop(),$n}function na(ze,Ze,kt,Ut){let gn=LJ(bo(ze,qr),Ze?.getPackageJsonInfoCache(),kt,Ut),Yn=as(Ut),hn=pk(Ut);return typeof gn=="object"?{...gn,languageVersion:Yn,setExternalModuleIndicator:hn,jsDocParsingMode:kt.jsDocParsingMode}:{languageVersion:Yn,impliedNodeFormat:gn,setExternalModuleIndicator:hn,jsDocParsingMode:kt.jsDocParsingMode}}function $l(ze,Ze,kt,Ut,gn){var Yn;let hn=or(ze);if(ot){let mr=Dd(hn);if(!mr&&Yt.realpath&&G.preserveSymlinks&&Su(ze)&&ze.includes(Ih)){let Zo=or(Yt.realpath(ze));Zo!==hn&&(mr=Dd(Zo))}if(mr){let Zo=wo(mr)?Qo(mr,Ze,kt,Ut,gn):void 0;return Zo&&cl(Zo,hn,ze,void 0),Zo}}let $n=ze;if(mt.has(hn)){let mr=mt.get(hn);if(vc(mr||void 0,Ut),mr&&G.forceConsistentCasingInFileNames!==!1){let Zo=mr.fileName;or(Zo)!==or(ze)&&(ze=Bl(ze)||ze);let Qu=xV(Zo,qr),mu=xV(ze,qr);Qu!==mu&&qn(ze,mr,Ut)}return mr&&Qt.get(mr.path)&&Xn===0?(Qt.set(mr.path,!1),G.noResolve||(Dh(mr,Ze),Xg(mr)),G.noLib||Gd(mr),_n.set(mr.path,!1),lt(mr)):mr&&_n.get(mr.path)&&Xn$r(void 0,Ut,f.Cannot_read_file_0_Colon_1,[ze,mr]),yn);if(gn){let mr=Fy(gn),Zo=ja.get(mr);if(Zo){let Ka=So(Zo,oi,ze,hn,or(ze),$n,ur);return wn.add(Zo.path,ze),cl(Ka,hn,ze,hi),vc(Ka,Ut),En.set(hn,w6(gn)),fe.push(Ka),Ka}else oi&&(ja.set(mr,oi),En.set(hn,w6(gn)))}if(cl(oi,hn,ze,hi),oi){if(Qt.set(hn,Xn>0),oi.fileName=ze,oi.path=hn,oi.resolvedPath=or(ze),oi.originalFileName=$n,oi.packageJsonLocations=(Yn=ur.packageJsonLocations)!=null&&Yn.length?ur.packageJsonLocations:void 0,oi.packageJsonScope=ur.packageJsonScope,vc(oi,Ut),Yt.useCaseSensitiveFileNames()){let mr=lh(hn),Zo=Nt.get(mr);Zo?qn(ze,Zo,Ut):Nt.set(mr,oi)}ho=ho||oi.hasNoDefaultLib&&!kt,G.noResolve||(Dh(oi,Ze),Xg(oi)),G.noLib||Gd(oi),lt(oi),Ze?oe.push(oi):fe.push(oi)}return oi}function vc(ze,Ze){ze&&Ee.add(ze.path,Ze)}function cl(ze,Ze,kt,Ut){Ut?(gl(kt,Ut,ze),gl(kt,Ze,ze||!1)):gl(kt,Ze,ze)}function gl(ze,Ze,kt){mt.set(Ze,kt),kt!==void 0?ft.delete(Ze):ft.set(Ze,ze)}function Bl(ze){let Ze=Ql(ze);return Ze&&qc(Ze,ze)}function Ql(ze){if(!(!le||!le.length||Su(ze)||Tl(ze,".json")))return cf(ze)}function qc(ze,Ze){let kt=Ps(ze.commandLine.options);return kt?m0(kt,".d.ts"):$N(Ze,ze.commandLine,!Yt.useCaseSensitiveFileNames())}function cf(ze){pt===void 0&&(pt=new Map,Bd(kt=>{or(G.configFilePath)!==kt.sourceFile.path&&kt.commandLine.fileNames.forEach(Ut=>pt.set(or(Ut),kt.sourceFile.path))}));let Ze=pt.get(or(ze));return Ze&&j_(Ze)}function Bd(ze){return NJ(le,ze)}function Dd(ze){if(Su(ze))return j===void 0&&(j=new Map,Bd(Ze=>{let kt=Ps(Ze.commandLine.options);if(kt){let Ut=m0(kt,".d.ts");j.set(or(Ut),!0)}else{let Ut=Ed(()=>a2(Ze.commandLine,!Yt.useCaseSensitiveFileNames()));Ke(Ze.commandLine.fileNames,gn=>{if(!Su(gn)&&!Tl(gn,".json")){let Yn=$N(gn,Ze.commandLine,!Yt.useCaseSensitiveFileNames(),Ut);j.set(or(Yn),gn)}})}})),j.get(ze)}function Lf(ze){return ot&&!!cf(ze)}function j_(ze){if(We)return We.get(ze)||void 0}function Dh(ze,Ze){Ke(ze.referencedFiles,(kt,Ut)=>{Pe(mF(kt.fileName,ze.fileName),Ze,!1,void 0,{kind:4,file:ze.path,index:Ut})})}function Xg(ze){let Ze=ze.typeReferenceDirectives;if(!Ze.length)return;let kt=nn?.get(ze.path)||Ci(Ze,ze),Ut=vI();(gt??(gt=new Map)).set(ze.path,Ut);for(let gn=0;gn{let{libName:Ut,libFileName:gn}=OIe(Ze);if(gn)js(Ap(gn),!0,!0,{kind:7,file:ze.path,index:kt});else{let Yn=Px(ZD(Ut,"lib."),".d.ts"),hn=QD(Yn,dw,el),$n=hn?f.Cannot_find_lib_definition_for_0_Did_you_mean_1:f.Cannot_find_lib_definition_for_0,hi=hn?[Ut,hn]:[Ut];(At||(At=[])).push({kind:0,reason:{kind:7,file:ze.path,index:kt},diagnostic:$n,args:hi})}})}function te(ze){return Yt.getCanonicalFileName(ze)}function lt(ze){var Ze;if(ip(ze),ze.imports.length||ze.moduleAugmentations.length){let kt=FIe(ze),Ut=Qe?.get(ze.path)||Mi(kt,ze);C.assert(Ut.length===kt.length);let gn=((Ze=On(ze))==null?void 0:Ze.commandLine.options)||G,Yn=vI();(yt??(yt=new Map)).set(ze.path,Yn);for(let hn=0;hnNn,mu=Ka&&!OJ(gn,$n,ze)&&!gn.noResolve&&hnac(hn)&&!hn.isDeclarationFile);if(G.isolatedModules||G.verbatimModuleSyntax)G.module===0&&Ze<2&&G.isolatedModules&&ps(f.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),G.preserveConstEnums===!1&&ps(f.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,G.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(kt&&Ze<2&&G.module===0){let hn=hS(kt,typeof kt.externalModuleIndicator=="boolean"?kt:kt.externalModuleIndicator);nr.add(Qc(kt,hn.start,hn.length,f.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(ze&&!G.emitDeclarationOnly){if(G.module&&!(G.module===2||G.module===4))ps(f.Only_amd_and_system_modules_are_supported_alongside_0,G.out?"out":"outFile","module");else if(G.module===void 0&&kt){let hn=hS(kt,typeof kt.externalModuleIndicator=="boolean"?kt:kt.externalModuleIndicator);nr.add(Qc(kt,hn.start,hn.length,f.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,G.out?"out":"outFile"))}}if(h0(G)&&(dd(G)===1?ps(f.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):z3(G)||ps(f.Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd,"resolveJsonModule","module")),G.outDir||G.rootDir||G.sourceRoot||G.mapRoot){let hn=Vr();G.outDir&&hn===""&&Ne.some($n=>dh($n.fileName)>1)&&ps(f.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}G.useDefineForClassFields&&Ze===0&&ps(f.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),G.checkJs&&!qy(G)&&nr.add(Vl(f.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),G.emitDeclarationOnly&&(xf(G)||ps(f.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),G.noEmit&&ps(f.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),G.emitDecoratorMetadata&&!G.experimentalDecorators&&ps(f.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),G.jsxFactory?(G.reactNamespace&&ps(f.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(G.jsx===4||G.jsx===5)&&ps(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",wN.get(""+G.jsx)),_I(G.jsxFactory,Ze)||Lm("jsxFactory",f.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,G.jsxFactory)):G.reactNamespace&&!$p(G.reactNamespace,Ze)&&Lm("reactNamespace",f.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,G.reactNamespace),G.jsxFragmentFactory&&(G.jsxFactory||ps(f.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(G.jsx===4||G.jsx===5)&&ps(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",wN.get(""+G.jsx)),_I(G.jsxFragmentFactory,Ze)||Lm("jsxFragmentFactory",f.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,G.jsxFragmentFactory)),G.reactNamespace&&(G.jsx===4||G.jsx===5)&&ps(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",wN.get(""+G.jsx)),G.jsxImportSource&&G.jsx===2&&ps(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",wN.get(""+G.jsx)),G.preserveValueImports&&ku(G)<5&&ps(f.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"preserveValueImports");let Ut=ku(G);G.verbatimModuleSyntax&&((Ut===2||Ut===3||Ut===4)&&ps(f.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax"),G.preserveValueImports&&wm("preserveValueImports","verbatimModuleSyntax"),G.importsNotUsedAsValues&&wm("importsNotUsedAsValues","verbatimModuleSyntax")),G.allowImportingTsExtensions&&!(G.noEmit||G.emitDeclarationOnly)&&Lm("allowImportingTsExtensions",f.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);let gn=dd(G);if(G.resolvePackageJsonExports&&!jA(gn)&&ps(f.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),G.resolvePackageJsonImports&&!jA(gn)&&ps(f.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),G.customConditions&&!jA(gn)&&ps(f.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),gn===100&&!W3(Ut)&&Ut!==200&&Lm("moduleResolution",f.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"bundler"),tC[Ut]&&100<=Ut&&Ut<=199&&!(3<=gn&&gn<=99)){let hn=tC[Ut];Lm("moduleResolution",f.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,hn,hn)}else if(Fx[gn]&&3<=gn&&gn<=99&&!(100<=Ut&&Ut<=199)){let hn=Fx[gn];Lm("module",f.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1,hn,hn)}if(!G.noEmit&&!G.suppressOutputPathCheck){let hn=Dn(),$n=new Set;cJ(hn,hi=>{G.emitDeclarationOnly||Yn(hi.jsFilePath,$n),Yn(hi.declarationFilePath,$n)})}function Yn(hn,$n){if(hn){let hi=or(hn);if(mt.has(hi)){let oi;G.configFilePath||(oi=Uo(void 0,f.Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig)),oi=Uo(oi,f.Cannot_write_file_0_because_it_would_overwrite_input_file,hn),mE(hn,O3(oi))}let ur=Yt.useCaseSensitiveFileNames()?hi:lh(hi);$n.has(ur)?mE(hn,Vl(f.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,hn)):$n.add(ur)}}}function Ae(){let ze=G.ignoreDeprecations;if(ze){if(ze==="5.0")return new vm(ze);Y()}return vm.zero}function st(ze,Ze,kt,Ut){let gn=new vm(ze),Yn=new vm(Ze),hn=new vm(ye||_e),$n=Ae(),hi=Yn.compareTo(hn)!==1,ur=!hi&&$n.compareTo(gn)===-1;(hi||ur)&&Ut((oi,mr,Zo)=>{hi?mr===void 0?kt(oi,mr,Zo,f.Option_0_has_been_removed_Please_remove_it_from_your_configuration,oi):kt(oi,mr,Zo,f.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,oi,mr):mr===void 0?kt(oi,mr,Zo,f.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,oi,Ze,ze):kt(oi,mr,Zo,f.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,oi,mr,Ze,ze)})}function Ht(){function ze(Ze,kt,Ut,gn,...Yn){if(Ut){let hn=Uo(void 0,f.Use_0_instead,Ut),$n=Uo(hn,gn,...Yn);Ji(!kt,Ze,void 0,$n)}else Ji(!kt,Ze,void 0,gn,...Yn)}st("5.0","5.5",ze,Ze=>{G.target===0&&Ze("target","ES3"),G.noImplicitUseStrict&&Ze("noImplicitUseStrict"),G.keyofStringsOnly&&Ze("keyofStringsOnly"),G.suppressExcessPropertyErrors&&Ze("suppressExcessPropertyErrors"),G.suppressImplicitAnyIndexErrors&&Ze("suppressImplicitAnyIndexErrors"),G.noStrictGenericChecks&&Ze("noStrictGenericChecks"),G.charset&&Ze("charset"),G.out&&Ze("out",void 0,"outFile"),G.importsNotUsedAsValues&&Ze("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),G.preserveValueImports&&Ze("preserveValueImports",void 0,"verbatimModuleSyntax")})}function rr(ze,Ze,kt){function Ut(gn,Yn,hn,$n,...hi){km(Ze,kt,$n,...hi)}st("5.0","5.5",Ut,gn=>{ze.prepend&&gn("prepend")})}function si(ze,Ze,kt,Ut){var gn;let Yn,hn,$n=R0(Ze)?Ze:void 0;ze&&((gn=Ee.get(ze.path))==null||gn.forEach(Zo)),Ze&&Zo(Ze),$n&&Yn?.length===1&&(Yn=void 0);let hi=$n&&ZN(mn,$n),ur=Yn&&Uo(Yn,f.The_file_is_in_the_program_because_Colon),oi=ze&&ZJ(ze),mr=Uo(oi?ur?[ur,...oi]:oi:ur,kt,...Ut||et);return hi&&l2(hi)?V6(hi.file,hi.pos,hi.end-hi.pos,mr,hn):O3(mr,hn);function Zo(Ka){(Yn||(Yn=[])).push(nK(mn,Ka)),!$n&&R0(Ka)?$n=Ka:$n!==Ka&&(hn=In(hn,Oa(Ka))),Ka===Ze&&(Ze=void 0)}}function $r(ze,Ze,kt,Ut){(At||(At=[])).push({kind:1,file:ze&&ze.path,fileProcessingReason:Ze,diagnostic:kt,args:Ut})}function so(ze,Ze,kt){nr.add(si(ze,void 0,Ze,kt))}function Oa(ze){if(R0(ze)){let Ut=ZN(mn,ze),gn;switch(ze.kind){case 3:gn=f.File_is_included_via_import_here;break;case 4:gn=f.File_is_included_via_reference_here;break;case 5:gn=f.File_is_included_via_type_library_reference_here;break;case 7:gn=f.File_is_included_via_library_reference_here;break;default:C.assertNever(ze)}return l2(Ut)?Qc(Ut.file,Ut.pos,Ut.end-Ut.pos,gn):void 0}if(!G.configFile)return;let Ze,kt;switch(ze.kind){case 0:if(!G.configFile.configFileSpecs)return;let Ut=bo(ue[ze.index],qr),gn=eK(mn,Ut);if(gn){Ze=X6(G.configFile,"files",gn),kt=f.File_is_matched_by_files_list_specified_here;break}let Yn=tK(mn,Ut);if(!Yn||!wo(Yn))return;Ze=X6(G.configFile,"include",Yn),kt=f.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:let hn=C.checkDefined(le?.[ze.index]),$n=hF(he,le,(Zo,Ka,Qu)=>Zo===hn?{sourceFile:Ka?.sourceFile||G.configFile,index:Qu}:void 0);if(!$n)return;let{sourceFile:hi,index:ur}=$n,oi=DL(hi,"references",Zo=>pd(Zo.initializer)?Zo.initializer:void 0);return oi&&oi.elements.length>ur?Yf(hi,oi.elements[ur],ze.kind===2?f.File_is_output_from_referenced_project_specified_here:f.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!G.types)return;Ze=cb("types",ze.typeReference),kt=f.File_is_entry_point_of_type_library_specified_here;break;case 6:if(ze.index!==void 0){Ze=cb("lib",G.lib[ze.index]),kt=f.File_is_library_specified_here;break}let mr=Bc(fw.type,(Zo,Ka)=>Zo===as(G)?Ka:void 0);Ze=mr?Vd("target",mr):void 0,kt=f.File_is_default_library_for_target_specified_here;break;default:C.assertNever(ze)}return Ze&&Yf(G.configFile,Ze,kt)}function Fa(){let ze=G.suppressOutputPathCheck?void 0:Kv(G);hF(he,le,(Ze,kt,Ut)=>{let gn=(kt?kt.commandLine.projectReferences:he)[Ut],Yn=kt&&kt.sourceFile;if(rr(gn,Yn,Ut),!Ze){km(Yn,Ut,f.File_0_not_found,gn.path);return}let hn=Ze.commandLine.options;if((!hn.composite||hn.noEmit)&&(kt?kt.commandLine.fileNames:ue).length&&(hn.composite||km(Yn,Ut,f.Referenced_project_0_must_have_setting_composite_Colon_true,gn.path),hn.noEmit&&km(Yn,Ut,f.Referenced_project_0_may_not_disable_emit,gn.path)),gn.prepend){let $n=Ps(hn);$n?Yt.fileExists($n)||km(Yn,Ut,f.Output_file_0_from_project_1_does_not_exist,$n,gn.path):km(Yn,Ut,f.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,gn.path)}!kt&&ze&&ze===Kv(hn)&&(km(Yn,Ut,f.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,ze,gn.path),tt.set(or(ze),!0))})}function wl(ze,Ze,kt,...Ut){let gn=!0;Ip(Yn=>{wa(Yn.initializer)&&iR(Yn.initializer,ze,hn=>{let $n=hn.initializer;pd($n)&&$n.elements.length>Ze&&(nr.add(Yf(G.configFile,$n.elements[Ze],kt,...Ut)),gn=!1)})}),gn&&nr.add(Vl(kt,...Ut))}function fu(ze,Ze,kt,...Ut){let gn=!0;Ip(Yn=>{wa(Yn.initializer)&&ry(Yn.initializer,ze,Ze,void 0,kt,...Ut)&&(gn=!1)}),gn&&nr.add(Vl(kt,...Ut))}function xc(ze,Ze){return iR($g(),ze,Ze)}function Ip(ze){return xc("paths",ze)}function Vd(ze,Ze){return xc(ze,kt=>Na(kt.initializer)&&kt.initializer.text===Ze?kt.initializer:void 0)}function cb(ze,Ze){let kt=$g();return kt&&Sie(kt,ze,Ze)}function ps(ze,Ze,kt,Ut){Ji(!0,Ze,kt,ze,Ze,kt,Ut)}function Lm(ze,Ze,...kt){Ji(!1,ze,void 0,Ze,...kt)}function km(ze,Ze,kt,...Ut){let gn=DL(ze||G.configFile,"references",Yn=>pd(Yn.initializer)?Yn.initializer:void 0);gn&&gn.elements.length>Ze?nr.add(Yf(ze||G.configFile,gn.elements[Ze],kt,...Ut)):nr.add(Vl(kt,...Ut))}function Ji(ze,Ze,kt,Ut,...gn){let Yn=$g();(!Yn||!ry(Yn,ze,Ze,kt,Ut,...gn))&&("messageText"in Ut?nr.add(O3(Ut)):nr.add(Vl(Ut,...gn)))}function $g(){return zt===void 0&&(zt=iR(IC(G.configFile),"compilerOptions",ze=>wa(ze.initializer)?ze.initializer:void 0)||!1),zt||void 0}function ry(ze,Ze,kt,Ut,gn,...Yn){let hn=!1;return iR(ze,kt,$n=>{"messageText"in gn?nr.add(Og(G.configFile,Ze?$n.name:$n.initializer,gn)):nr.add(Yf(G.configFile,Ze?$n.name:$n.initializer,gn,...Yn)),hn=!0},Ut),hn}function wm(ze,Ze){let kt=$g();kt?ry(kt,!0,ze,void 0,f.Option_0_is_redundant_and_cannot_be_specified_with_option_1,ze,Ze):ps(f.Option_0_is_redundant_and_cannot_be_specified_with_option_1,ze,Ze)}function mE(ze,Ze){tt.set(or(ze),!0),nr.add(Ze)}function _E(ze){if(G.noEmit)return!1;let Ze=or(ze);if(fl(Ze))return!1;let kt=Ps(G);if(kt)return uf(Ze,kt)||uf(Ze,Td(kt)+".d.ts");if(G.declarationDir&&ym(G.declarationDir,Ze,qr,!Yt.useCaseSensitiveFileNames()))return!0;if(G.outDir)return ym(G.outDir,Ze,qr,!Yt.useCaseSensitiveFileNames());if(Ec(Ze,LR)||Su(Ze)){let Ut=Td(Ze);return!!fl(Ut+".ts")||!!fl(Ut+".tsx")}return!1}function uf(ze,Ze){return Pg(ze,Ze,qr,!Yt.useCaseSensitiveFileNames())===0}function U_(){return Yt.getSymlinkCache?Yt.getSymlinkCache():(me||(me=TU(qr,te)),Ne&&!me.hasProcessedResolutions()&&me.setSymlinksFromResolutions(w,ae,je),me)}function df(ze,Ze){var kt;let Ut=((kt=On(ze))==null?void 0:kt.commandLine.options)||G;return RJ(ze,Ze,Ut)}function Qg(ze,Ze){return df(ze,Gw(ze,Ze))}}function kje(e){let t,r=e.compilerHost.fileExists,i=e.compilerHost.directoryExists,o=e.compilerHost.getDirectories,s=e.compilerHost.realpath;if(!e.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:$a,fileExists:p};e.compilerHost.fileExists=p;let l;return i&&(l=e.compilerHost.directoryExists=I=>i.call(e.compilerHost,I)?(b(I),!0):e.getResolvedProjectReferences()?(t||(t=new Set,e.forEachResolvedProjectReference(R=>{let M=Ps(R.commandLine.options);if(M)t.add(li(e.toPath(M)));else{let N=R.commandLine.options.declarationDir||R.commandLine.options.outDir;N&&t.add(e.toPath(N))}})),T(I,!1)):!1),o&&(e.compilerHost.getDirectories=I=>!e.getResolvedProjectReferences()||i&&i.call(e.compilerHost,I)?o.call(e.compilerHost,I):[]),s&&(e.compilerHost.realpath=I=>{var R;return((R=e.getSymlinkCache().getSymlinkedFiles())==null?void 0:R.get(e.toPath(I)))||s.call(e.compilerHost,I)}),{onProgramCreateComplete:u,fileExists:p,directoryExists:l};function u(){e.compilerHost.fileExists=r,e.compilerHost.directoryExists=i,e.compilerHost.getDirectories=o}function p(I){return r.call(e.compilerHost,I)?!0:!e.getResolvedProjectReferences()||!Su(I)?!1:T(I,!0)}function g(I){let R=e.getSourceOfProjectReferenceRedirect(e.toPath(I));return R!==void 0?wo(R)?r.call(e.compilerHost,R):!0:void 0}function m(I){let R=e.toPath(I),M=`${R}${il}`;return mh(t,N=>R===N||uo(N,M)||uo(R,`${N}/`))}function b(I){var R;if(!e.getResolvedProjectReferences()||iN(I)||!s||!I.includes(Ih))return;let M=e.getSymlinkCache(),N=zc(e.toPath(I));if((R=M.getSymlinkedDirectories())!=null&&R.has(N))return;let O=va(s.call(e.compilerHost,I)),H;if(O===I||(H=zc(e.toPath(O)))===N){M.setSymlinkedDirectory(N,!1);return}M.setSymlinkedDirectory(I,{real:zc(O),realPath:H})}function T(I,R){var M;let N=R?V=>g(V):V=>m(V),O=N(I);if(O!==void 0)return O;let H=e.getSymlinkCache(),K=H.getSymlinkedDirectories();if(!K)return!1;let Z=e.toPath(I);return Z.includes(Ih)?R&&((M=H.getSymlinkedFiles())!=null&&M.has(Z))?!0:ir(K.entries(),([V,ue])=>{if(!ue||!uo(Z,V))return;let G=N(Z.replace(V,ue.realPath));if(R&&G){let ne=bo(I,e.compilerHost.getCurrentDirectory());H.setSymlinkedFile(Z,`${ue.real}${ne.replace(new RegExp(V,"i"),"")}`)}return G})||!1:!1}}function kJ(e,t,r,i){let o=e.getCompilerOptions();if(o.noEmit)return e.getSemanticDiagnostics(t,i),t||Ps(o)?TF:e.emitBuildInfo(r,i);if(!o.noEmitOnError)return;let s=[...e.getOptionsDiagnostics(i),...e.getSyntacticDiagnostics(t,i),...e.getGlobalDiagnostics(i),...e.getSemanticDiagnostics(t,i)];if(s.length===0&&xf(e.getCompilerOptions())&&(s=e.getDeclarationDiagnostics(void 0,i)),!s.length)return;let l;if(!t&&!Ps(o)){let u=e.emitBuildInfo(r,i);u.diagnostics&&(s=[...s,...u.diagnostics]),l=u.emittedFiles}return{diagnostics:s,sourceMaps:void 0,emittedFiles:l,emitSkipped:!0}}function yF(e,t){return tr(e,r=>!r.skippedOn||!t[r.skippedOn])}function bF(e,t=e){return{fileExists:r=>t.fileExists(r),readDirectory(r,i,o,s,l){return C.assertIsDefined(t.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(r,i,o,s,l)},readFile:r=>t.readFile(r),directoryExists:oa(t,t.directoryExists),getDirectories:oa(t,t.getDirectories),realpath:oa(t,t.realpath),useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),getCurrentDirectory:()=>e.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:e.onUnRecoverableConfigFileDiagnostic||Xb,trace:e.trace?r=>e.trace(r):void 0}}function wJ(e,t,r,i){if(!e)return et;let o;for(let s=0;si);for(let i of t)i.kind===11&&r.push(i);return r}function Gw({imports:e,moduleAugmentations:t},r){if(r(e.Grey="\x1B[90m",e.Red="\x1B[91m",e.Yellow="\x1B[93m",e.Blue="\x1B[94m",e.Cyan="\x1B[96m",e))(FJ||{}),WJ="\x1B[7m",zJ=" ",dce="\x1B[0m",pce="...",WIe=" ",fce=" ",mce={resolvedModule:void 0,resolvedTypeReferenceDirective:void 0},EF={getName:uce,getMode:(e,t,r)=>xJ(t,e,r)},zIe={getName:CJ,getMode:(e,t)=>Ww(e,t?.impliedNodeFormat)},u2="__inferred type names__.ts",SF=new Set([f.Cannot_redeclare_block_scoped_variable_0.code,f.A_module_cannot_have_multiple_default_exports.code,f.Another_export_default_is_here.code,f.The_first_export_default_is_here.code,f.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,f.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,f.constructor_is_a_reserved_word.code,f.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,f.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode.code,f.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,f.Invalid_use_of_0_in_strict_mode.code,f.A_label_is_not_allowed_here.code,f.with_statements_are_not_allowed_in_strict_mode.code,f.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,f.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,f.A_class_declaration_without_the_default_modifier_must_have_a_name.code,f.A_class_member_cannot_have_the_0_keyword.code,f.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,f.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,f.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,f.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,f.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,f.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,f.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,f.A_destructuring_declaration_must_have_an_initializer.code,f.A_get_accessor_cannot_have_parameters.code,f.A_rest_element_cannot_contain_a_binding_pattern.code,f.A_rest_element_cannot_have_a_property_name.code,f.A_rest_element_cannot_have_an_initializer.code,f.A_rest_element_must_be_last_in_a_destructuring_pattern.code,f.A_rest_parameter_cannot_have_an_initializer.code,f.A_rest_parameter_must_be_last_in_a_parameter_list.code,f.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,f.A_return_statement_cannot_be_used_inside_a_class_static_block.code,f.A_set_accessor_cannot_have_rest_parameter.code,f.A_set_accessor_must_have_exactly_one_parameter.code,f.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,f.An_export_declaration_cannot_have_modifiers.code,f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,f.An_import_declaration_cannot_have_modifiers.code,f.An_object_member_cannot_be_declared_optional.code,f.Argument_of_dynamic_import_cannot_be_spread_element.code,f.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,f.Cannot_redeclare_identifier_0_in_catch_clause.code,f.Catch_clause_variable_cannot_have_an_initializer.code,f.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,f.Classes_can_only_extend_a_single_class.code,f.Classes_may_not_have_a_field_named_constructor.code,f.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code,f.Duplicate_label_0.code,f.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments.code,f.for_await_loops_cannot_be_used_inside_a_class_static_block.code,f.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,f.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,f.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,f.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,f.Jump_target_cannot_cross_function_boundary.code,f.Line_terminator_not_permitted_before_arrow.code,f.Modifiers_cannot_appear_here.code,f.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,f.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,f.Private_identifiers_are_not_allowed_outside_class_bodies.code,f.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,f.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,f.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,f.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,f.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,f.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,f.Trailing_comma_not_allowed.code,f.Variable_declaration_list_cannot_be_empty.code,f._0_and_1_operations_cannot_be_mixed_without_parentheses.code,f._0_expected.code,f._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,f._0_list_cannot_be_empty.code,f._0_modifier_already_seen.code,f._0_modifier_cannot_appear_on_a_constructor_declaration.code,f._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,f._0_modifier_cannot_appear_on_a_parameter.code,f._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,f._0_modifier_cannot_be_used_here.code,f._0_modifier_must_precede_1_modifier.code,f._0_declarations_can_only_be_declared_inside_a_block.code,f._0_declarations_must_be_initialized.code,f.extends_clause_already_seen.code,f.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,f.Class_constructor_may_not_be_a_generator.code,f.Class_constructor_may_not_be_an_accessor.code,f.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,f.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,f.Private_field_0_must_be_declared_in_an_enclosing_class.code,f.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code]),TF={diagnostics:et,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}),Oje=A({"src/compiler/builderStatePublic.ts"(){"use strict"}});function _ce(e,t,r,i,o,s){let l=[],{emitSkipped:u,diagnostics:p}=e.emit(t,g,i,r,o,s);return{outputFiles:l,emitSkipped:u,diagnostics:p};function g(m,b,T){l.push({name:m,writeByteOrderMark:T,text:b})}}var Pm,Fje=A({"src/compiler/builderState.ts"(){"use strict";ia(),(e=>{function t(){function $(Y,oe,fe){let Ne={getKeys:me=>oe.get(me),getValues:me=>Y.get(me),keys:()=>Y.keys(),deleteKey:me=>{(fe||(fe=new Set)).add(me);let ie=Y.get(me);return ie?(ie.forEach(ve=>i(oe,ve,me)),Y.delete(me),!0):!1},set:(me,ie)=>{fe?.delete(me);let ve=Y.get(me);return Y.set(me,ie),ve?.forEach(Le=>{ie.has(Le)||i(oe,Le,me)}),ie.forEach(Le=>{ve?.has(Le)||r(oe,Le,me)}),Ne}};return Ne}return $(new Map,new Map,void 0)}e.createManyToManyPathMap=t;function r($,Y,oe){let fe=$.get(Y);fe||(fe=new Set,$.set(Y,fe)),fe.add(oe)}function i($,Y,oe){let fe=$.get(Y);return fe?.delete(oe)?(fe.size||$.delete(Y),!0):!1}function o($){return Vi($.declarations,Y=>{var oe;return(oe=Vn(Y))==null?void 0:oe.resolvedPath})}function s($,Y){let oe=$.getSymbolAtLocation(Y);return oe&&o(oe)}function l($,Y,oe,fe){return rl($.getProjectReferenceRedirect(Y)||Y,oe,fe)}function u($,Y,oe){let fe;if(Y.imports&&Y.imports.length>0){let ve=$.getTypeChecker();for(let Le of Y.imports){let He=s(ve,Le);He?.forEach(ie)}}let Ne=li(Y.resolvedPath);if(Y.referencedFiles&&Y.referencedFiles.length>0)for(let ve of Y.referencedFiles){let Le=l($,ve.fileName,Ne,oe);ie(Le)}if($.forEachResolvedTypeReferenceDirective(({resolvedTypeReferenceDirective:ve})=>{if(!ve)return;let Le=ve.resolvedFileName,He=l($,Le,Ne,oe);ie(He)},Y),Y.moduleAugmentations.length){let ve=$.getTypeChecker();for(let Le of Y.moduleAugmentations){if(!Na(Le))continue;let He=ve.getSymbolAtLocation(Le);He&&me(He)}}for(let ve of $.getTypeChecker().getAmbientModules())ve.declarations&&ve.declarations.length>1&&me(ve);return fe;function me(ve){if(ve.declarations)for(let Le of ve.declarations){let He=Vn(Le);He&&He!==Y&&ie(He.resolvedPath)}}function ie(ve){(fe||(fe=new Set)).add(ve)}}function p($,Y){return Y&&!Y.referencedMap==!$}e.canReuseOldState=p;function g($,Y,oe){var fe,Ne,me;let ie=new Map,ve=$.getCompilerOptions(),Le=Ps(ve),He=ve.module!==0&&!Le?t():void 0,Ee=He?t():void 0,Ce=p(He,Y);$.getTypeChecker();for(let Me of $.getSourceFiles()){let Fe=C.checkDefined(Me.version,"Program intended to be used with Builder should have source files with versions set"),At=Ce?(fe=Y.oldSignatures)==null?void 0:fe.get(Me.resolvedPath):void 0,Se=At===void 0?Ce?(Ne=Y.fileInfos.get(Me.resolvedPath))==null?void 0:Ne.signature:void 0:At||void 0;if(He){let je=u($,Me,$.getCanonicalFileName);if(je&&He.set(Me.resolvedPath,je),Ce){let at=(me=Y.oldExportedModulesMap)==null?void 0:me.get(Me.resolvedPath),Bt=at===void 0?Y.exportedModulesMap.getValues(Me.resolvedPath):at||void 0;Bt&&Ee.set(Me.resolvedPath,Bt)}}ie.set(Me.resolvedPath,{version:Fe,signature:Se,affectsGlobalScope:Le?void 0:G(Me)||void 0,impliedFormat:Me.impliedNodeFormat})}return{fileInfos:ie,referencedMap:He,exportedModulesMap:Ee,useFileVersionAsSignature:!oe&&!Ce}}e.create=g;function m($){$.allFilesExcludingDefaultLibraryFile=void 0,$.allFileNames=void 0}e.releaseCache=m;function b($,Y,oe,fe,Ne){var me,ie;let ve=T($,Y,oe,fe,Ne);return(me=$.oldSignatures)==null||me.clear(),(ie=$.oldExportedModulesMap)==null||ie.clear(),ve}e.getFilesAffectedBy=b;function T($,Y,oe,fe,Ne){let me=Y.getSourceFileByPath(oe);return me?M($,Y,me,fe,Ne)?($.referencedMap?ye:he)($,Y,me,fe,Ne):[me]:et}e.getFilesAffectedByWithOldState=T;function I($,Y,oe){$.fileInfos.get(oe).signature=Y,($.hasCalledUpdateShapeSignature||($.hasCalledUpdateShapeSignature=new Set)).add(oe)}e.updateSignatureOfFile=I;function R($,Y,oe,fe,Ne){$.emit(Y,(me,ie,ve,Le,He,Ee)=>{C.assert(Su(me),`File extension for signature expected to be dts: Got:: ${me}`),Ne(GJ($,Y,ie,fe,Ee),He)},oe,!0,void 0,!0)}e.computeDtsSignature=R;function M($,Y,oe,fe,Ne,me=$.useFileVersionAsSignature){var ie;if((ie=$.hasCalledUpdateShapeSignature)!=null&&ie.has(oe.resolvedPath))return!1;let ve=$.fileInfos.get(oe.resolvedPath),Le=ve.signature,He;if(!oe.isDeclarationFile&&!me&&R(Y,oe,fe,Ne,(Ee,Ce)=>{He=Ee,He!==Le&&N($,oe,Ce[0].exportedModulesFromDeclarationEmit)}),He===void 0&&(He=oe.version,$.exportedModulesMap&&He!==Le)){($.oldExportedModulesMap||($.oldExportedModulesMap=new Map)).set(oe.resolvedPath,$.exportedModulesMap.getValues(oe.resolvedPath)||!1);let Ee=$.referencedMap?$.referencedMap.getValues(oe.resolvedPath):void 0;Ee?$.exportedModulesMap.set(oe.resolvedPath,Ee):$.exportedModulesMap.deleteKey(oe.resolvedPath)}return($.oldSignatures||($.oldSignatures=new Map)).set(oe.resolvedPath,Le||!1),($.hasCalledUpdateShapeSignature||($.hasCalledUpdateShapeSignature=new Set)).add(oe.resolvedPath),ve.signature=He,He!==Le}e.updateShapeSignature=M;function N($,Y,oe){if(!$.exportedModulesMap)return;($.oldExportedModulesMap||($.oldExportedModulesMap=new Map)).set(Y.resolvedPath,$.exportedModulesMap.getValues(Y.resolvedPath)||!1);let fe=O(oe);fe?$.exportedModulesMap.set(Y.resolvedPath,fe):$.exportedModulesMap.deleteKey(Y.resolvedPath)}e.updateExportedModules=N;function O($){let Y;return $?.forEach(oe=>o(oe).forEach(fe=>(Y??(Y=new Set)).add(fe))),Y}e.getExportedModules=O;function H($,Y,oe){let fe=Y.getCompilerOptions();if(Ps(fe)||!$.referencedMap||G(oe))return K($,Y);let Ne=new Set,me=[oe.resolvedPath];for(;me.length;){let ie=me.pop();if(!Ne.has(ie)){Ne.add(ie);let ve=$.referencedMap.getValues(ie);if(ve)for(let Le of ve.keys())me.push(Le)}}return Vo(tS(Ne.keys(),ie=>{var ve;return((ve=Y.getSourceFileByPath(ie))==null?void 0:ve.fileName)??ie}))}e.getAllDependencies=H;function K($,Y){if(!$.allFileNames){let oe=Y.getSourceFiles();$.allFileNames=oe===et?et:oe.map(fe=>fe.fileName)}return $.allFileNames}function Z($,Y){let oe=$.referencedMap.getKeys(Y);return oe?Vo(oe.keys()):[]}e.getReferencedByPaths=Z;function V($){for(let Y of $.statements)if(!B6(Y))return!1;return!0}function ue($){return Et($.moduleAugmentations,Y=>I_(Y.parent))}function G($){return ue($)||!Fp($)&&!$f($)&&!V($)}function ne($,Y,oe){if($.allFilesExcludingDefaultLibraryFile)return $.allFilesExcludingDefaultLibraryFile;let fe;oe&&Ne(oe);for(let me of Y.getSourceFiles())me!==oe&&Ne(me);return $.allFilesExcludingDefaultLibraryFile=fe||et,$.allFilesExcludingDefaultLibraryFile;function Ne(me){Y.isSourceFileDefaultLibrary(me)||(fe||(fe=[])).push(me)}}e.getAllFilesExcludingDefaultLibraryFile=ne;function he($,Y,oe){let fe=Y.getCompilerOptions();return fe&&Ps(fe)?[oe]:ne($,Y,oe)}function ye($,Y,oe,fe,Ne){if(G(oe))return ne($,Y,oe);let me=Y.getCompilerOptions();if(me&&(im(me)||Ps(me)))return[oe];let ie=new Map;ie.set(oe.resolvedPath,oe);let ve=Z($,oe.resolvedPath);for(;ve.length>0;){let Le=ve.pop();if(!ie.has(Le)){let He=Y.getSourceFileByPath(Le);ie.set(Le,He),He&&M($,Y,He,fe,Ne)&&ve.push(...Z($,He.resolvedPath))}}return Vo(tS(ie.values(),Le=>Le))}})(Pm||(Pm={}))}});function rb(e){let t=1;return e.sourceMap&&(t=t|2),e.inlineSourceMap&&(t=t|4),xf(e)&&(t=t|8),e.declarationMap&&(t=t|16),e.emitDeclarationOnly&&(t=t&24),t}function d2(e,t){let r=t&&(Rv(t)?t:rb(t)),i=Rv(e)?e:rb(e);if(r===i)return 0;if(!r||!i)return i;let o=r^i,s=0;return o&7&&(s=i&7),o&24&&(s=s|i&24),s}function Wje(e,t){return e===t||e!==void 0&&t!==void 0&&e.size===t.size&&!mh(e,r=>!t.has(r))}function zje(e,t){var r,i;let o=Pm.create(e,t,!1);o.program=e;let s=e.getCompilerOptions();o.compilerOptions=s;let l=Ps(s);l?s.composite&&t?.outSignature&&l===Ps(t?.compilerOptions)&&(o.outSignature=t.outSignature&&GIe(s,t.compilerOptions,t.outSignature)):o.semanticDiagnosticsPerFile=new Map,o.changedFilesSet=new Set,o.latestChangedDtsFile=s.composite?t?.latestChangedDtsFile:void 0;let u=Pm.canReuseOldState(o.referencedMap,t),p=u?t.compilerOptions:void 0,g=u&&t.semanticDiagnosticsPerFile&&!!o.semanticDiagnosticsPerFile&&!Poe(s,p),m=s.composite&&t?.emitSignatures&&!l&&!Loe(s,t.compilerOptions);u?((r=t.changedFilesSet)==null||r.forEach(M=>o.changedFilesSet.add(M)),!l&&((i=t.affectedFilesPendingEmit)!=null&&i.size)&&(o.affectedFilesPendingEmit=new Map(t.affectedFilesPendingEmit),o.seenAffectedFiles=new Set),o.programEmitPending=t.programEmitPending):o.buildInfoEmitPending=!0;let b=o.referencedMap,T=u?t.referencedMap:void 0,I=g&&!s.skipLibCheck==!p.skipLibCheck,R=I&&!s.skipDefaultLibCheck==!p.skipDefaultLibCheck;if(o.fileInfos.forEach((M,N)=>{var O;let H,K;if(!u||!(H=t.fileInfos.get(N))||H.version!==M.version||H.impliedFormat!==M.impliedFormat||!Wje(K=b&&b.getValues(N),T&&T.getValues(N))||K&&mh(K,Z=>!o.fileInfos.has(Z)&&t.fileInfos.has(Z)))BIe(o,N);else{let Z=e.getSourceFileByPath(N),V=(O=t.emitDiagnosticsPerFile)==null?void 0:O.get(N);if(V&&(o.emitDiagnosticsPerFile??(o.emitDiagnosticsPerFile=new Map)).set(N,t.hasReusableDiagnostic?UIe(V,e):VIe(V,e)),g){if(Z.isDeclarationFile&&!I||Z.hasNoDefaultLib&&!R)return;let ue=t.semanticDiagnosticsPerFile.get(N);ue&&(o.semanticDiagnosticsPerFile.set(N,t.hasReusableDiagnostic?UIe(ue,e):VIe(ue,e)),(o.semanticDiagnosticsFromOldState??(o.semanticDiagnosticsFromOldState=new Set)).add(N))}}if(m){let Z=t.emitSignatures.get(N);Z&&(o.emitSignatures??(o.emitSignatures=new Map)).set(N,GIe(s,t.compilerOptions,Z))}}),u&&Bc(t.fileInfos,(M,N)=>o.fileInfos.has(N)?!1:l||M.affectsGlobalScope?!0:(o.buildInfoEmitPending=!0,!1)))Pm.getAllFilesExcludingDefaultLibraryFile(o,e,void 0).forEach(M=>BIe(o,M.resolvedPath));else if(p){let M=Moe(s,p)?rb(s):d2(s,p);M!==0&&(l?o.programEmitPending=o.programEmitPending?o.programEmitPending|M:M:(e.getSourceFiles().forEach(N=>{o.changedFilesSet.has(N.resolvedPath)||Ece(o,N.resolvedPath,M)}),C.assert(!o.seenAffectedFiles||!o.seenAffectedFiles.size),o.seenAffectedFiles=o.seenAffectedFiles||new Set,o.buildInfoEmitPending=!0))}return l&&!o.changedFilesSet.size&&(u&&(o.bundle=t.bundle),Et(e.getProjectReferences(),M=>!!M.prepend)&&(o.programEmitPending=rb(s))),o}function BIe(e,t){e.changedFilesSet.add(t),e.buildInfoEmitPending=!0,e.programEmitPending=void 0}function GIe(e,t,r){return!!e.declarationMap==!!t.declarationMap?r:wo(r)?[r]:r[0]}function VIe(e,t){return e.length?Io(e,r=>{if(wo(r.messageText))return r;let i=hce(r.messageText,r.file,t,o=>{var s;return(s=o.repopulateInfo)==null?void 0:s.call(o)});return i===r.messageText?r:{...r,messageText:i}}):e}function hce(e,t,r,i){let o=i(e);if(o)return{...k6(t,r,o.moduleReference,o.mode,o.packageName||o.moduleReference),next:jIe(e.next,t,r,i)};let s=jIe(e.next,t,r,i);return s===e.next?e:{...e,next:s}}function jIe(e,t,r,i){return Io(e,o=>hce(o,t,r,i))}function UIe(e,t){if(!e.length)return et;let r;return e.map(o=>{let s=HIe(o,t,i);s.reportsUnnecessary=o.reportsUnnecessary,s.reportsDeprecated=o.reportDeprecated,s.source=o.source,s.skippedOn=o.skippedOn;let{relatedInformation:l}=o;return s.relatedInformation=l?l.length?l.map(u=>HIe(u,t,i)):[]:void 0,s});function i(o){return r??(r=li(bo(Kv(t.getCompilerOptions()),t.getCurrentDirectory()))),rl(o,r,t.getCanonicalFileName)}}function HIe(e,t,r){let{file:i}=e,o=i?t.getSourceFileByPath(r(i)):void 0;return{...e,file:o,messageText:wo(e.messageText)?e.messageText:hce(e.messageText,o,t,s=>s.info)}}function Bje(e){Pm.releaseCache(e),e.program=void 0}function Gje(e){let t=Ps(e.compilerOptions);return C.assert(!e.changedFilesSet.size||t),{affectedFilesPendingEmit:e.affectedFilesPendingEmit&&new Map(e.affectedFilesPendingEmit),seenEmittedFiles:e.seenEmittedFiles&&new Map(e.seenEmittedFiles),programEmitPending:e.programEmitPending,emitSignatures:e.emitSignatures&&new Map(e.emitSignatures),outSignature:e.outSignature,latestChangedDtsFile:e.latestChangedDtsFile,hasChangedEmitSignature:e.hasChangedEmitSignature,changedFilesSet:t?new Set(e.changedFilesSet):void 0,buildInfoEmitPending:e.buildInfoEmitPending,emitDiagnosticsPerFile:e.emitDiagnosticsPerFile&&new Map(e.emitDiagnosticsPerFile)}}function Vje(e,t){e.affectedFilesPendingEmit=t.affectedFilesPendingEmit,e.seenEmittedFiles=t.seenEmittedFiles,e.programEmitPending=t.programEmitPending,e.emitSignatures=t.emitSignatures,e.outSignature=t.outSignature,e.latestChangedDtsFile=t.latestChangedDtsFile,e.hasChangedEmitSignature=t.hasChangedEmitSignature,e.buildInfoEmitPending=t.buildInfoEmitPending,e.emitDiagnosticsPerFile=t.emitDiagnosticsPerFile,t.changedFilesSet&&(e.changedFilesSet=t.changedFilesSet)}function qIe(e,t){C.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function JIe(e,t,r){for(var i,o;;){let{affectedFiles:s}=e;if(s){let g=e.seenAffectedFiles,m=e.affectedFilesIndex;for(;m{let s=i&7;s?e.affectedFilesPendingEmit.set(o,s):e.affectedFilesPendingEmit.delete(o)})}}function Uje(e,t){var r;if((r=e.affectedFilesPendingEmit)!=null&&r.size)return Bc(e.affectedFilesPendingEmit,(i,o)=>{var s;let l=e.program.getSourceFileByPath(o);if(!l||!AS(l,e.program)){e.affectedFilesPendingEmit.delete(o);return}let u=(s=e.seenEmittedFiles)==null?void 0:s.get(l.resolvedPath),p=d2(i,u);if(t&&(p=p&24),p)return{affectedFile:l,emitKind:p}})}function Hje(e){var t;if((t=e.emitDiagnosticsPerFile)!=null&&t.size)return Bc(e.emitDiagnosticsPerFile,(r,i)=>{var o;let s=e.program.getSourceFileByPath(i);if(!s||!AS(s,e.program)){e.emitDiagnosticsPerFile.delete(i);return}let l=((o=e.seenEmittedFiles)==null?void 0:o.get(s.resolvedPath))||0;if(!(l&24))return{affectedFile:s,diagnostics:r,seenKind:l}})}function KIe(e){if(!e.cleanedDiagnosticsOfLibFiles){e.cleanedDiagnosticsOfLibFiles=!0;let t=C.checkDefined(e.program),r=t.getCompilerOptions();Ke(t.getSourceFiles(),i=>t.isSourceFileDefaultLibrary(i)&&!eN(i,r,t)&&gce(e,i.resolvedPath))}}function qje(e,t,r,i){if(gce(e,t.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles){KIe(e),Pm.updateShapeSignature(e,C.checkDefined(e.program),t,r,i);return}e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||Jje(e,t,r,i)}function BJ(e,t,r,i){if(gce(e,t),!e.changedFilesSet.has(t)){let o=C.checkDefined(e.program),s=o.getSourceFileByPath(t);s&&(Pm.updateShapeSignature(e,o,s,r,i,!0),xf(e.compilerOptions)&&Ece(e,t,e.compilerOptions.declarationMap?24:8))}}function gce(e,t){return e.semanticDiagnosticsFromOldState?(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size):!0}function XIe(e,t){let r=C.checkDefined(e.oldSignatures).get(t)||void 0;return C.checkDefined(e.fileInfos.get(t)).signature!==r}function vce(e,t,r,i){var o;return(o=e.fileInfos.get(t))!=null&&o.affectsGlobalScope?(Pm.getAllFilesExcludingDefaultLibraryFile(e,e.program,void 0).forEach(s=>BJ(e,s.resolvedPath,r,i)),KIe(e),!0):!1}function Jje(e,t,r,i){var o;if(!e.exportedModulesMap||!e.changedFilesSet.has(t.resolvedPath)||!XIe(e,t.resolvedPath))return;if(im(e.compilerOptions)){let l=new Map;l.set(t.resolvedPath,!0);let u=Pm.getReferencedByPaths(e,t.resolvedPath);for(;u.length>0;){let p=u.pop();if(!l.has(p)){if(l.set(p,!0),vce(e,p,r,i))return;if(BJ(e,p,r,i),XIe(e,p)){let g=C.checkDefined(e.program).getSourceFileByPath(p);u.push(...Pm.getReferencedByPaths(e,g.resolvedPath))}}}}let s=new Set;(o=e.exportedModulesMap.getKeys(t.resolvedPath))==null||o.forEach(l=>{if(vce(e,l,r,i))return!0;let u=e.referencedMap.getKeys(l);return u&&mh(u,p=>YIe(e,p,s,r,i))})}function YIe(e,t,r,i,o){var s,l;if(Av(r,t)){if(vce(e,t,i,o))return!0;BJ(e,t,i,o),(s=e.exportedModulesMap.getKeys(t))==null||s.forEach(u=>YIe(e,u,r,i,o)),(l=e.referencedMap.getKeys(t))==null||l.forEach(u=>!r.has(u)&&BJ(e,u,i,o))}}function yce(e,t,r){return xo(Kje(e,t,r),C.checkDefined(e.program).getProgramDiagnostics(t))}function Kje(e,t,r){let i=t.resolvedPath;if(e.semanticDiagnosticsPerFile){let s=e.semanticDiagnosticsPerFile.get(i);if(s)return yF(s,e.compilerOptions)}let o=C.checkDefined(e.program).getBindAndCheckDiagnostics(t,r);return e.semanticDiagnosticsPerFile&&e.semanticDiagnosticsPerFile.set(i,o),yF(o,e.compilerOptions)}function bce(e){return!!Ps(e.options||{})}function Xje(e,t){var r,i,o;let s=C.checkDefined(e.program).getCurrentDirectory(),l=li(bo(Kv(e.compilerOptions),s)),u=e.latestChangedDtsFile?ue(e.latestChangedDtsFile):void 0,p=[],g=new Map,m=[];if(Ps(e.compilerOptions)){let ve=Vo(e.fileInfos.entries(),([Fe,At])=>{let Se=ne(Fe);return ye(Fe,Se),At.impliedFormat?{version:At.version,impliedFormat:At.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:At.version}),Le={fileNames:p,fileInfos:ve,root:m,options:$(e.compilerOptions),outSignature:e.outSignature,latestChangedDtsFile:u,pendingEmit:e.programEmitPending?e.programEmitPending===rb(e.compilerOptions)?!1:e.programEmitPending:void 0},{js:He,dts:Ee,commonSourceDirectory:Ce,sourceFiles:Me}=t;return e.bundle=t={commonSourceDirectory:Ce,sourceFiles:Me,js:He||(e.compilerOptions.emitDeclarationOnly||(r=e.bundle)==null?void 0:r.js),dts:Ee||(xf(e.compilerOptions)?(i=e.bundle)==null?void 0:i.dts:void 0)},Mw(Le,t)}let b,T,I,R=Vo(e.fileInfos.entries(),([ve,Le])=>{var He,Ee;let Ce=ne(ve);ye(ve,Ce),C.assert(p[Ce-1]===G(ve));let Me=(He=e.oldSignatures)==null?void 0:He.get(ve),Fe=Me!==void 0?Me||void 0:Le.signature;if(e.compilerOptions.composite){let At=e.program.getSourceFileByPath(ve);if(!$f(At)&&AS(At,e.program)){let Se=(Ee=e.emitSignatures)==null?void 0:Ee.get(ve);Se!==Fe&&(I||(I=[])).push(Se===void 0?Ce:[Ce,!wo(Se)&&Se[0]===Fe?et:Se])}}return Le.version===Fe?Le.affectsGlobalScope||Le.impliedFormat?{version:Le.version,signature:void 0,affectsGlobalScope:Le.affectsGlobalScope,impliedFormat:Le.impliedFormat}:Le.version:Fe!==void 0?Me===void 0?Le:{version:Le.version,signature:Fe,affectsGlobalScope:Le.affectsGlobalScope,impliedFormat:Le.impliedFormat}:{version:Le.version,signature:!1,affectsGlobalScope:Le.affectsGlobalScope,impliedFormat:Le.impliedFormat}}),M;e.referencedMap&&(M=Vo(e.referencedMap.keys()).sort(ju).map(ve=>[ne(ve),he(e.referencedMap.getValues(ve))]));let N;e.exportedModulesMap&&(N=Vi(Vo(e.exportedModulesMap.keys()).sort(ju),ve=>{var Le;let He=(Le=e.oldExportedModulesMap)==null?void 0:Le.get(ve);if(He===void 0)return[ne(ve),he(e.exportedModulesMap.getValues(ve))];if(He)return[ne(ve),he(He)]}));let O=oe(e.semanticDiagnosticsPerFile),H;if((o=e.affectedFilesPendingEmit)!=null&&o.size){let ve=rb(e.compilerOptions),Le=new Set;for(let He of Vo(e.affectedFilesPendingEmit.keys()).sort(ju))if(Av(Le,He)){let Ee=e.program.getSourceFileByPath(He);if(!Ee||!AS(Ee,e.program))continue;let Ce=ne(He),Me=e.affectedFilesPendingEmit.get(He);(H||(H=[])).push(Me===ve?Ce:Me===8?[Ce]:[Ce,Me])}}let K;if(e.changedFilesSet.size)for(let ve of Vo(e.changedFilesSet.keys()).sort(ju))(K||(K=[])).push(ne(ve));let Z=oe(e.emitDiagnosticsPerFile),V={fileNames:p,fileInfos:R,root:m,options:$(e.compilerOptions),fileIdsList:b,referencedMap:M,exportedModulesMap:N,semanticDiagnosticsPerFile:O,emitDiagnosticsPerFile:Z,affectedFilesPendingEmit:H,changeFileSet:K,emitSignatures:I,latestChangedDtsFile:u};return Mw(V,t);function ue(ve){return G(bo(ve,s))}function G(ve){return v1(bm(l,ve,e.program.getCanonicalFileName))}function ne(ve){let Le=g.get(ve);return Le===void 0&&(p.push(G(ve)),g.set(ve,Le=p.length)),Le}function he(ve){let Le=Vo(ve.keys(),ne).sort(tl),He=Le.join(),Ee=T?.get(He);return Ee===void 0&&((b||(b=[])).push(Le),(T||(T=new Map)).set(He,Ee=b.length)),Ee}function ye(ve,Le){let He=e.program.getSourceFile(ve);if(!e.program.getFileIncludeReasons().get(He.path).some(Fe=>Fe.kind===0))return;if(!m.length)return m.push(Le);let Ee=m[m.length-1],Ce=Do(Ee);if(Ce&&Ee[1]===Le-1)return Ee[1]=Le;if(Ce||m.length===1||Ee!==Le-1)return m.push(Le);let Me=m[m.length-2];return!Rv(Me)||Me!==Ee-1?m.push(Le):(m[m.length-2]=[Me,Le],m.length=m.length-1)}function $(ve){let Le,{optionsNameMap:He}=$R();for(let Ee of Jh(ve).sort(ju)){let Ce=He.get(Ee.toLowerCase());Ce?.affectsBuildInfo&&((Le||(Le={}))[Ee]=Y(Ce,ve[Ee]))}return Le}function Y(ve,Le){if(ve){if(C.assert(ve.type!=="listOrElement"),ve.type==="list"){let He=Le;if(ve.element.isFilePath&&He.length)return He.map(ue)}else if(ve.isFilePath)return ue(Le)}return Le}function oe(ve){let Le;if(ve)for(let He of Vo(ve.keys()).sort(ju)){let Ee=ve.get(He);(Le||(Le=[])).push(Ee.length?[ne(He),fe(Ee)]:ne(He))}return Le}function fe(ve){return C.assert(!!ve.length),ve.map(Le=>{let He=Ne(Le);He.reportsUnnecessary=Le.reportsUnnecessary,He.reportDeprecated=Le.reportsDeprecated,He.source=Le.source,He.skippedOn=Le.skippedOn;let{relatedInformation:Ee}=Le;return He.relatedInformation=Ee?Ee.length?Ee.map(Ce=>Ne(Ce)):[]:void 0,He})}function Ne(ve){let{file:Le}=ve;return{...ve,file:Le?G(Le.resolvedPath):void 0,messageText:wo(ve.messageText)?ve.messageText:me(ve.messageText)}}function me(ve){if(ve.repopulateInfo)return{info:ve.repopulateInfo(),next:ie(ve.next)};let Le=ie(ve.next);return Le===ve.next?ve:{...ve,next:Le}}function ie(ve){return ve&&(Ke(ve,(Le,He)=>{let Ee=me(Le);if(Le===Ee)return;let Ce=He>0?ve.slice(0,He-1):[];Ce.push(Ee);for(let Me=He+1;Me`${p(g)}${FM[g.category]}${g.code}: ${u(g.messageText)}`).join(` +`)),(i.createHash??nC)(r);function u(g){return wo(g)?g:g===void 0?"":g.next?g.messageText+g.next.map(u).join(` +`):g.messageText}function p(g){return g.file.resolvedPath===t.resolvedPath?`(${g.start},${g.length})`:(l===void 0&&(l=li(t.resolvedPath)),`${v1(bm(l,g.file.resolvedPath,e.getCanonicalFileName))}(${g.start},${g.length})`)}}function YS(e,t,r){return(t.createHash??nC)($Ie(e,r))}function VJ(e,{newProgram:t,host:r,oldProgram:i,configFileParsingDiagnostics:o}){let s=i&&i.getState();if(s&&t===s.program&&o===t.getConfigFileParsingDiagnostics())return t=void 0,s=void 0,i;let l=zje(t,s);t.getBuildInfo=M=>Xje(l,M),t=void 0,i=void 0,s=void 0;let u=()=>l,p=UJ(u,o);return p.getState=u,p.saveEmitState=()=>Gje(l),p.restoreEmitState=M=>Vje(l,M),p.hasChangedEmitSignature=()=>!!l.hasChangedEmitSignature,p.getAllDependencies=M=>Pm.getAllDependencies(l,C.checkDefined(l.program),M),p.getSemanticDiagnostics=R,p.emit=T,p.releaseProgram=()=>Bje(l),e===0?p.getSemanticDiagnosticsOfNextAffectedFile=I:e===1?(p.getSemanticDiagnosticsOfNextAffectedFile=I,p.emitNextAffectedFile=m,p.emitBuildInfo=g):Ko(),p;function g(M,N){if(l.buildInfoEmitPending){let O=C.checkDefined(l.program).emitBuildInfo(M||oa(r,r.writeFile),N);return l.buildInfoEmitPending=!1,O}return TF}function m(M,N,O,H){var K,Z,V;let ue=JIe(l,N,r),G=rb(l.compilerOptions),ne=O?G&24:G;if(!ue)if(Ps(l.compilerOptions)){if(!l.programEmitPending||(ne=l.programEmitPending,O&&(ne=ne&24),!ne))return;ue=l.program}else{let $=Uje(l,O);if(!$){let Y=Hje(l);if(Y)return(l.seenEmittedFiles??(l.seenEmittedFiles=new Map)).set(Y.affectedFile.resolvedPath,Y.seenKind|24),{result:{emitSkipped:!0,diagnostics:Y.diagnostics},affected:Y.affectedFile};if(!l.buildInfoEmitPending)return;let oe=l.program,fe=oe.emitBuildInfo(M||oa(r,r.writeFile),N);return l.buildInfoEmitPending=!1,{result:fe,affected:oe}}({affectedFile:ue,emitKind:ne}=$)}let he;ne&7&&(he=0),ne&24&&(he=he===void 0?1:void 0),ue===l.program&&(l.programEmitPending=l.changedFilesSet.size?d2(G,ne):l.programEmitPending?d2(l.programEmitPending,ne):void 0);let ye=l.program.emit(ue===l.program?void 0:ue,b(M,H),N,he,H);if(ue!==l.program){let $=ue;l.seenAffectedFiles.add($.resolvedPath),l.affectedFilesIndex!==void 0&&l.affectedFilesIndex++,l.buildInfoEmitPending=!0;let Y=((K=l.seenEmittedFiles)==null?void 0:K.get($.resolvedPath))||0;(l.seenEmittedFiles??(l.seenEmittedFiles=new Map)).set($.resolvedPath,ne|Y);let oe=((Z=l.affectedFilesPendingEmit)==null?void 0:Z.get($.resolvedPath))||G,fe=d2(oe,ne|Y);fe?(l.affectedFilesPendingEmit??(l.affectedFilesPendingEmit=new Map)).set($.resolvedPath,fe):(V=l.affectedFilesPendingEmit)==null||V.delete($.resolvedPath),ye.diagnostics.length&&(l.emitDiagnosticsPerFile??(l.emitDiagnosticsPerFile=new Map)).set($.resolvedPath,ye.diagnostics)}else l.changedFilesSet.clear();return{result:ye,affected:ue}}function b(M,N){return xf(l.compilerOptions)?(O,H,K,Z,V,ue)=>{var G,ne,he,ye;if(Su(O))if(Ps(l.compilerOptions)){if(l.compilerOptions.composite){let Y=$(l.outSignature,void 0);if(!Y)return;l.outSignature=Y}}else{C.assert(V?.length===1);let Y;if(!N){let oe=V[0],fe=l.fileInfos.get(oe.resolvedPath);if(fe.signature===oe.version){let Ne=GJ(l.program,oe,H,r,ue);(G=ue?.diagnostics)!=null&&G.length||(Y=Ne),Ne!==oe.version&&(r.storeFilesChangingSignatureDuringEmit&&(l.filesChangingSignature??(l.filesChangingSignature=new Set)).add(oe.resolvedPath),l.exportedModulesMap&&Pm.updateExportedModules(l,oe,oe.exportedModulesFromDeclarationEmit),l.affectedFiles?(((ne=l.oldSignatures)==null?void 0:ne.get(oe.resolvedPath))===void 0&&(l.oldSignatures??(l.oldSignatures=new Map)).set(oe.resolvedPath,fe.signature||!1),fe.signature=Ne):(fe.signature=Ne,(he=l.oldExportedModulesMap)==null||he.clear()))}}if(l.compilerOptions.composite){let oe=V[0].resolvedPath;if(Y=$((ye=l.emitSignatures)==null?void 0:ye.get(oe),Y),!Y)return;(l.emitSignatures??(l.emitSignatures=new Map)).set(oe,Y)}}M?M(O,H,K,Z,V,ue):r.writeFile?r.writeFile(O,H,K,Z,V,ue):l.program.writeFile(O,H,K,Z,V,ue);function $(Y,oe){let fe=!Y||wo(Y)?Y:Y[0];if(oe??(oe=YS(H,r,ue)),oe===fe){if(Y===fe)return;ue?ue.differsOnlyInMap=!0:ue={differsOnlyInMap:!0}}else l.hasChangedEmitSignature=!0,l.latestChangedDtsFile=O;return oe}}:M||oa(r,r.writeFile)}function T(M,N,O,H,K){e===1&&qIe(l,M);let Z=kJ(p,M,N,O);if(Z)return Z;if(!M)if(e===1){let V=[],ue=!1,G,ne=[],he;for(;he=m(N,O,H,K);)ue=ue||he.result.emitSkipped,G=Jr(G,he.result.diagnostics),ne=Jr(ne,he.result.emittedFiles),V=Jr(V,he.result.sourceMaps);return{emitSkipped:ue,diagnostics:G||et,emittedFiles:ne,sourceMaps:V}}else jje(l,H);return C.checkDefined(l.program).emit(M,b(N,K),O,H,K)}function I(M,N){for(;;){let O=JIe(l,M,r),H;if(O)if(O!==l.program){let K=O;if((!N||!N(K))&&(H=yce(l,K,M)),l.seenAffectedFiles.add(K.resolvedPath),l.affectedFilesIndex++,l.buildInfoEmitPending=!0,!H)continue}else H=l.program.getSemanticDiagnostics(void 0,M),l.changedFilesSet.clear(),l.programEmitPending=rb(l.compilerOptions);else return;return{result:H,affected:O}}}function R(M,N){qIe(l,M);let O=C.checkDefined(l.program).getCompilerOptions();if(Ps(O))return C.assert(!l.semanticDiagnosticsPerFile),C.checkDefined(l.program).getSemanticDiagnostics(M,N);if(M)return yce(l,M,N);for(;I(N););let H;for(let K of C.checkDefined(l.program).getSourceFiles())H=Jr(H,yce(l,K,N));return H||et}}function Ece(e,t,r){var i,o;let s=((i=e.affectedFilesPendingEmit)==null?void 0:i.get(t))||0;(e.affectedFilesPendingEmit??(e.affectedFilesPendingEmit=new Map)).set(t,s|r),(o=e.emitDiagnosticsPerFile)==null||o.delete(t)}function Sce(e){return wo(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:wo(e.signature)?e:{version:e.version,signature:e.signature===!1?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function Tce(e,t){return Rv(e)?t:e[1]||8}function Ace(e,t){return e||rb(t||{})}function Ice(e,t,r){var i,o,s,l;let u=e.program,p=li(bo(t,r.getCurrentDirectory())),g=Pu(r.useCaseSensitiveFileNames()),m,b=(i=u.fileNames)==null?void 0:i.map(R),T,I=u.latestChangedDtsFile?M(u.latestChangedDtsFile):void 0;if(bce(u)){let Z=new Map;u.fileInfos.forEach((V,ue)=>{let G=N(ue+1);Z.set(G,wo(V)?{version:V,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:V)}),m={fileInfos:Z,compilerOptions:u.options?oq(u.options,M):{},latestChangedDtsFile:I,outSignature:u.outSignature,programEmitPending:u.pendingEmit===void 0?void 0:Ace(u.pendingEmit,u.options),bundle:e.bundle}}else{T=(o=u.fileIdsList)==null?void 0:o.map(G=>new Set(G.map(N)));let Z=new Map,V=(s=u.options)!=null&&s.composite&&!Ps(u.options)?new Map:void 0;u.fileInfos.forEach((G,ne)=>{let he=N(ne+1),ye=Sce(G);Z.set(he,ye),V&&ye.signature&&V.set(he,ye.signature)}),(l=u.emitSignatures)==null||l.forEach(G=>{if(Rv(G))V.delete(N(G));else{let ne=N(G[0]);V.set(ne,!wo(G[1])&&!G[1].length?[V.get(ne)]:G[1])}});let ue=u.affectedFilesPendingEmit?rb(u.options||{}):void 0;m={fileInfos:Z,compilerOptions:u.options?oq(u.options,M):{},referencedMap:H(u.referencedMap),exportedModulesMap:H(u.exportedModulesMap),semanticDiagnosticsPerFile:K(u.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:K(u.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,affectedFilesPendingEmit:u.affectedFilesPendingEmit&&g1(u.affectedFilesPendingEmit,G=>N(Rv(G)?G:G[0]),G=>Tce(G,ue)),changedFilesSet:new Set(Ft(u.changeFileSet,N)),latestChangedDtsFile:I,emitSignatures:V?.size?V:void 0}}return{getState:()=>m,saveEmitState:$a,restoreEmitState:$a,getProgram:Ko,getProgramOrUndefined:Xb,releaseProgram:$a,getCompilerOptions:()=>m.compilerOptions,getSourceFile:Ko,getSourceFiles:Ko,getOptionsDiagnostics:Ko,getGlobalDiagnostics:Ko,getConfigFileParsingDiagnostics:Ko,getSyntacticDiagnostics:Ko,getDeclarationDiagnostics:Ko,getSemanticDiagnostics:Ko,emit:Ko,getAllDependencies:Ko,getCurrentDirectory:Ko,emitNextAffectedFile:Ko,getSemanticDiagnosticsOfNextAffectedFile:Ko,emitBuildInfo:Ko,close:$a,hasChangedEmitSignature:Km};function R(Z){return rl(Z,p,g)}function M(Z){return bo(Z,p)}function N(Z){return b[Z-1]}function O(Z){return T[Z-1]}function H(Z){if(!Z)return;let V=Pm.createManyToManyPathMap();return Z.forEach(([ue,G])=>V.set(N(ue),O(G))),V}function K(Z){return Z&&g1(Z,V=>N(Rv(V)?V:V[0]),V=>Rv(V)?et:V[1])}}function jJ(e,t,r){let i=li(bo(t,r.getCurrentDirectory())),o=Pu(r.useCaseSensitiveFileNames()),s=new Map,l=0,u=[];return e.fileInfos.forEach((p,g)=>{let m=rl(e.fileNames[g],i,o),b=wo(p)?p:p.version;if(s.set(m,b),le().program,releaseProgram:()=>e().program=void 0,getCompilerOptions:()=>e().compilerOptions,getSourceFile:i=>r().getSourceFile(i),getSourceFiles:()=>r().getSourceFiles(),getOptionsDiagnostics:i=>r().getOptionsDiagnostics(i),getGlobalDiagnostics:i=>r().getGlobalDiagnostics(i),getConfigFileParsingDiagnostics:()=>t,getSyntacticDiagnostics:(i,o)=>r().getSyntacticDiagnostics(i,o),getDeclarationDiagnostics:(i,o)=>r().getDeclarationDiagnostics(i,o),getSemanticDiagnostics:(i,o)=>r().getSemanticDiagnostics(i,o),emit:(i,o,s,l,u)=>r().emit(i,o,s,l,u),emitBuildInfo:(i,o)=>r().emitBuildInfo(i,o),getAllDependencies:Ko,getCurrentDirectory:()=>r().getCurrentDirectory(),close:$a};function r(){return C.checkDefined(e().program)}}var HJ,qJ,Yje=A({"src/compiler/builder.ts"(){"use strict";ia(),HJ=(e=>(e[e.None=0]="None",e[e.Js=1]="Js",e[e.JsMap=2]="JsMap",e[e.JsInlineMap=4]="JsInlineMap",e[e.Dts=8]="Dts",e[e.DtsMap=16]="DtsMap",e[e.AllJs=7]="AllJs",e[e.AllDts=24]="AllDts",e[e.All=31]="All",e))(HJ||{}),qJ=(e=>(e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e))(qJ||{})}});function QIe(e,t,r,i,o,s){return VJ(0,AF(e,t,r,i,o,s))}function JJ(e,t,r,i,o,s){return VJ(1,AF(e,t,r,i,o,s))}function ZIe(e,t,r,i,o,s){let{newProgram:l,configFileParsingDiagnostics:u}=AF(e,t,r,i,o,s);return UJ(()=>({program:l,compilerOptions:l.getCompilerOptions()}),u)}var $je=A({"src/compiler/builderPublic.ts"(){"use strict";ia()}});function IF(e){return Sl(e,"/node_modules/.staging")?Px(e,"/.staging"):Et(GM,t=>e.includes(t))?void 0:e}function xce(e,t){if(t<=1)return 1;let r=1,i=e[0].search(/[a-zA-Z]:/)===0;if(e[0]!==il&&!i&&e[1].search(/[a-zA-Z]\$$/)===0){if(t===2)return 2;r=2,i=!0}return i&&!e[r].match(/^users$/i)?r:e[r].match(/^workspaces$/i)?r+1:r+2}function xF(e,t){if(t===void 0&&(t=e.length),t<=2)return!1;let r=xce(e,t);return t>r+1}function Rce(e){return txe(li(e))}function exe(e,t){if(t.lengtho.length+1?Cce(u,l,Math.max(o.length+1,p+1)):{dir:r,dirPath:i,nonRecursive:!0}:nxe(u,l,l.length-1,p,g,o)}function nxe(e,t,r,i,o,s){if(o!==-1)return Cce(e,t,o+1);let l=!0,u=r;for(let p=0;pQje(i,o,s,e,r,t,l)}}function Qje(e,t,r,i,o,s,l){let u=RF(e),p=t2(r,i,o,u,t,s,l);if(!e.getGlobalCache)return p;let g=e.getGlobalCache();if(g!==void 0&&!Yc(r)&&!(p.resolvedModule&&Y3(p.resolvedModule.extension))){let{resolvedModule:m,failedLookupLocations:b,affectingLocations:T,resolutionDiagnostics:I}=Jse(C.checkDefined(e.globalCacheResolutionModuleName)(r),e.projectName,o,u,g,t);if(m)return p.resolvedModule=m,p.failedLookupLocations=ZR(p.failedLookupLocations,b),p.affectingLocations=ZR(p.affectingLocations,T),p.resolutionDiagnostics=ZR(p.resolutionDiagnostics,I),p}return p}function XJ(e,t,r){let i,o,s,l=Xp(),u=new Set,p=new Set,g=new Map,m=new Map,b=!1,T,I,R,M,N,O=!1,H=Ed(()=>e.getCurrentDirectory()),K=e.getCachedDirectoryStructureHost(),Z=new Map,V=e2(H(),e.getCanonicalFileName,e.getCompilationSettings()),ue=new Map,G=k5(H(),e.getCanonicalFileName,e.getCompilationSettings(),V.getPackageJsonInfoCache(),V.optionsToRedirectsKey),ne=new Map,he=e2(H(),e.getCanonicalFileName,Eq(e.getCompilationSettings()),V.getPackageJsonInfoCache()),ye=new Map,$=new Map,Y=Pce(t,H),oe=e.toPath(Y),fe=Wc(oe),Ne=new Map;return{rootDirForResolution:t,resolvedModuleNames:Z,resolvedTypeReferenceDirectives:ue,resolvedLibraries:ne,resolvedFileToResolution:g,resolutionsWithFailedLookups:u,resolutionsWithOnlyAffectingLocations:p,directoryWatchesOfFailedLookups:ye,fileWatchesOfAffectingLocations:$,watchFailedLookupLocationsOfExternalModuleResolutions:Nn,getModuleResolutionCache:()=>V,startRecordingFilesWithChangedResolutions:He,finishRecordingFilesWithChangedResolutions:Ee,startCachingPerDirectoryResolution:Fe,finishCachingPerDirectoryResolution:Se,resolveModuleNameLiterals:Qe,resolveTypeReferenceDirectiveReferences:yt,resolveLibrary:gt,resolveSingleModuleNameWithoutWatching:nn,removeResolutionsFromProjectReferenceRedirects:tt,removeResolutionsOfFile:zt,hasChangedAutomaticTypeDirectiveNames:()=>b,invalidateResolutionOfFile:ui,invalidateResolutionsOfFailedLookupLocations:_a,setFilesWithInvalidatedNonRelativeUnresolvedImports:bi,createHasInvalidatedResolutions:Me,isFileWithInvalidatedNonRelativeUnresolvedImports:Ce,updateTypeRootsWatch:ft,closeTypeRootsWatch:Ue,clear:ve,onChangesAffectModuleResolution:Le};function me(le){return le.resolvedModule}function ie(le){return le.resolvedTypeReferenceDirective}function ve(){ep(ye,Cf),ep($,Cf),l.clear(),Ue(),Z.clear(),ue.clear(),g.clear(),u.clear(),p.clear(),R=void 0,M=void 0,N=void 0,I=void 0,T=void 0,O=!1,V.clear(),G.clear(),V.update(e.getCompilationSettings()),G.update(e.getCompilationSettings()),he.clear(),m.clear(),ne.clear(),b=!1}function Le(){O=!0,V.clearAllExceptPackageJsonInfoCache(),G.clearAllExceptPackageJsonInfoCache(),V.update(e.getCompilationSettings()),G.update(e.getCompilationSettings())}function He(){i=[]}function Ee(){let le=i;return i=void 0,le}function Ce(le){if(!s)return!1;let We=s.get(le);return!!We&&!!We.length}function Me(le,We){_a();let pt=o;return o=void 0,{hasInvalidatedResolutions:j=>le(j)||O||!!pt?.has(j)||Ce(j),hasInvalidatedLibResolutions:j=>{var ot;return We(j)||!!((ot=ne?.get(j))!=null&&ot.isInvalidated)}}}function Fe(){V.isReadonly=void 0,G.isReadonly=void 0,he.isReadonly=void 0,V.getPackageJsonInfoCache().isReadonly=void 0,V.clearAllExceptPackageJsonInfoCache(),G.clearAllExceptPackageJsonInfoCache(),he.clearAllExceptPackageJsonInfoCache(),l.forEach(ho),l.clear()}function At(le){ne.forEach((We,pt)=>{var j;(j=le?.resolvedLibReferences)!=null&&j.has(pt)||(nr(We,e.toPath(gF(e.getCompilationSettings(),H(),pt)),me),ne.delete(pt))})}function Se(le,We){s=void 0,O=!1,l.forEach(ho),l.clear(),le!==We&&(At(le),le?.getSourceFiles().forEach(pt=>{var j;let ot=Fp(pt)?((j=pt.packageJsonLocations)==null?void 0:j.length)??0:0,xt=m.get(pt.path)??et;for(let Ye=xt.length;Yeot)for(let Ye=ot;Ye{le?.getSourceFileByPath(j)||(pt.forEach(ot=>$.get(ot).files--),m.delete(j))})),ye.forEach(je),$.forEach(at),b=!1,V.isReadonly=!0,G.isReadonly=!0,he.isReadonly=!0,V.getPackageJsonInfoCache().isReadonly=!0}function je(le,We){le.refCount===0&&(ye.delete(We),le.watcher.close())}function at(le,We){var pt;le.files===0&&le.resolutions===0&&!((pt=le.symlinks)!=null&&pt.size)&&($.delete(We),le.watcher.close())}function Bt({entries:le,containingFile:We,containingSourceFile:pt,redirectedReference:j,options:ot,perFileCache:xt,reusedNames:Ye,loader:ht,getResolutionWithResolvedFileName:Vt,deferWatchingNonRelativeResolution:yn,shouldRetryResolution:fn,logChanges:mn}){let q=e.toPath(We),Oe=xt.get(q)||xt.set(q,vI()).get(q),Lt=[],w=mn&&Ce(q),ae=e.getCurrentProgram(),J=ae&&ae.getResolvedProjectReferenceToRedirect(We),pe=J?!j||j.sourceFile.path!==J.sourceFile.path:!!j,Ge=vI();for(let Dt of le){let Pt=ht.nameAndMode.getName(Dt),Kt=ht.nameAndMode.getMode(Dt,pt,j?.commandLine.options||ot),Tn=Oe.get(Pt,Kt);if(!Ge.has(Pt,Kt)&&(O||pe||!Tn||Tn.isInvalidated||w&&!Yc(Pt)&&fn(Tn))){let On=Tn;Tn=ht.resolve(Pt,Kt),e.onDiscoveredSymlink&&Zje(Tn)&&e.onDiscoveredSymlink(),Oe.set(Pt,Kt,Tn),Tn!==On&&(Nn(Pt,Tn,q,Vt,yn),On&&nr(On,q,Vt)),mn&&i&&!ke(On,Tn)&&(i.push(q),mn=!1)}else{let On=RF(e);if(Hg(ot,On)&&!Ge.has(Pt,Kt)){let Gn=Vt(Tn);To(On,xt===Z?Gn?.resolvedFileName?Gn.packageId?f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:Gn?.resolvedFileName?Gn.packageId?f.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:f.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:f.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,Pt,We,Gn?.resolvedFileName,Gn?.packageId&&Fy(Gn.packageId))}}C.assert(Tn!==void 0&&!Tn.isInvalidated),Ge.set(Pt,Kt,!0),Lt.push(Tn)}return Ye?.forEach(Dt=>Ge.set(ht.nameAndMode.getName(Dt),ht.nameAndMode.getMode(Dt,pt,j?.commandLine.options||ot),!0)),Oe.size()!==Ge.size()&&Oe.forEach((Dt,Pt,Kt)=>{Ge.has(Pt,Kt)||(nr(Dt,q,Vt),Oe.delete(Pt,Kt))}),Lt;function ke(Dt,Pt){if(Dt===Pt)return!0;if(!Dt||!Pt)return!1;let Kt=Vt(Dt),Tn=Vt(Pt);return Kt===Tn?!0:!Kt||!Tn?!1:Kt.resolvedFileName===Tn.resolvedFileName}}function yt(le,We,pt,j,ot,xt){return Bt({entries:le,containingFile:We,containingSourceFile:ot,redirectedReference:pt,options:j,reusedNames:xt,perFileCache:ue,loader:_F(We,pt,j,RF(e),G),getResolutionWithResolvedFileName:ie,shouldRetryResolution:Ye=>Ye.resolvedTypeReferenceDirective===void 0,deferWatchingNonRelativeResolution:!1})}function Qe(le,We,pt,j,ot,xt){return Bt({entries:le,containingFile:We,containingSourceFile:ot,redirectedReference:pt,options:j,reusedNames:xt,perFileCache:Z,loader:Mce(We,pt,j,e,V),getResolutionWithResolvedFileName:me,shouldRetryResolution:Ye=>!Ye.resolvedModule||!QC(Ye.resolvedModule.extension),logChanges:r,deferWatchingNonRelativeResolution:!0})}function gt(le,We,pt,j){let ot=RF(e),xt=ne?.get(j);if(!xt||xt.isInvalidated){let Ye=xt;xt=w5(le,We,pt,ot,he);let ht=e.toPath(We);Nn(le,xt,ht,me,!1),ne.set(j,xt),Ye&&nr(Ye,ht,me)}else if(Hg(pt,ot)){let Ye=me(xt);To(ot,Ye?.resolvedFileName?Ye.packageId?f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,le,We,Ye?.resolvedFileName,Ye?.packageId&&Fy(Ye.packageId))}return xt}function nn(le,We){var pt,j;let ot=e.toPath(We),xt=Z.get(ot),Ye=xt?.get(le,void 0);if(Ye&&!Ye.isInvalidated)return Ye;let ht=(pt=e.beforeResolveSingleModuleNameWithoutWatching)==null?void 0:pt.call(e,V),Vt=RF(e),yn=t2(le,We,e.getCompilationSettings(),Vt,V);return(j=e.afterResolveSingleModuleNameWithoutWatching)==null||j.call(e,V,le,We,yn,ht),yn}function rn(le){return Sl(le,"/node_modules/@types")}function Nn(le,We,pt,j,ot){var xt;if(We.refCount)We.refCount++,C.assertIsDefined(We.files);else{We.refCount=1,C.assert(!((xt=We.files)!=null&&xt.size)),!ot||Yc(le)?_n(We):l.add(le,We);let Ye=j(We);if(Ye&&Ye.resolvedFileName){let ht=e.toPath(Ye.resolvedFileName),Vt=g.get(ht);Vt||g.set(ht,Vt=new Set),Vt.add(We)}}(We.files??(We.files=new Set)).add(pt)}function Xn(le,We){let pt=e.toPath(le),j=KJ(le,pt,Y,oe,fe,H);if(j){let{dir:ot,dirPath:xt,nonRecursive:Ye}=j;xt===oe?(C.assert(Ye),We=!0):ki(ot,xt,Ye)}return We}function _n(le){C.assert(!!le.refCount);let{failedLookupLocations:We,affectingLocations:pt,alternateResult:j}=le;if(!We?.length&&!pt?.length&&!j)return;(We?.length||j)&&u.add(le);let ot=!1;if(We)for(let xt of We)ot=Xn(xt,ot);j&&(ot=Xn(j,ot)),ot&&ki(Y,oe,!0),Qt(le,!We?.length&&!j)}function Qt(le,We){C.assert(!!le.refCount);let{affectingLocations:pt}=le;if(pt?.length){We&&p.add(le);for(let j of pt)Yt(j,!0)}}function Yt(le,We){let pt=$.get(le);if(pt){We?pt.resolutions++:pt.files++;return}let j=le,ot=!1,xt;e.realpath&&(j=e.realpath(le),le!==j&&(ot=!0,xt=$.get(j)));let Ye=We?1:0,ht=We?0:1;if(!ot||!xt){let Vt={watcher:Dce(e.toPath(j))?e.watchAffectingFileLocation(j,(yn,fn)=>{K?.addOrDeleteFile(yn,e.toPath(j),fn),vi(j,V.getPackageJsonInfoCache().getInternalMap()),e.scheduleInvalidateResolutionsOfFailedLookupLocations()}):f2,resolutions:ot?0:Ye,files:ot?0:ht,symlinks:void 0};$.set(j,Vt),ot&&(xt=Vt)}if(ot){C.assert(!!xt);let Vt={watcher:{close:()=>{var yn;let fn=$.get(j);(yn=fn?.symlinks)!=null&&yn.delete(le)&&!fn.symlinks.size&&!fn.resolutions&&!fn.files&&($.delete(j),fn.watcher.close())}},resolutions:Ye,files:ht,symlinks:void 0};$.set(le,Vt),(xt.symlinks??(xt.symlinks=new Set)).add(le)}}function vi(le,We){var pt;let j=$.get(le);j?.resolutions&&(I??(I=new Set)).add(le),j?.files&&(T??(T=new Set)).add(le),(pt=j?.symlinks)==null||pt.forEach(ot=>vi(ot,We)),We?.delete(e.toPath(le))}function ho(le,We){let pt=e.getCurrentProgram();!pt||!pt.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(We)?le.forEach(_n):le.forEach(j=>Qt(j,!0))}function ki(le,We,pt){let j=ye.get(We);j?(C.assert(!!pt==!!j.nonRecursive),j.refCount++):ye.set(We,{watcher:xr(le,We,pt),refCount:1,nonRecursive:pt})}function Ro(le,We,pt){let j=e.toPath(le),ot=KJ(le,j,Y,oe,fe,H);if(ot){let{dirPath:xt}=ot;xt===oe?We=!0:qr(xt,pt)}return We}function nr(le,We,pt,j){if(C.checkDefined(le.files).delete(We),le.refCount--,le.refCount)return;let ot=pt(le);if(ot&&ot.resolvedFileName){let Vt=e.toPath(ot.resolvedFileName),yn=g.get(Vt);yn?.delete(le)&&!yn.size&&g.delete(Vt)}let{failedLookupLocations:xt,affectingLocations:Ye,alternateResult:ht}=le;if(u.delete(le)){let Vt=!1;if(xt)for(let yn of xt)Vt=Ro(yn,Vt,j);ht&&(Vt=Ro(ht,Vt,j)),Vt&&qr(oe,j)}else Ye?.length&&p.delete(le);if(Ye)for(let Vt of Ye){let yn=$.get(Vt);yn.resolutions--,j&&at(yn,Vt)}}function qr(le,We){let pt=ye.get(le);pt.refCount--,We&&je(pt,le)}function xr(le,We,pt){return e.watchDirectoryOfFailedLookupLocation(le,j=>{let ot=e.toPath(j);K&&K.addOrDeleteFileOrDirectory(j,ot),ro(ot,We===ot)},pt?0:1)}function ln(le,We,pt,j){let ot=le.get(We);ot&&(ot.forEach(xt=>nr(xt,We,pt,j)),le.delete(We))}function tt(le){if(!Tl(le,".json"))return;let We=e.getCurrentProgram();if(!We)return;let pt=We.getResolvedProjectReferenceByPath(le);pt&&pt.commandLine.fileNames.forEach(j=>zt(e.toPath(j)))}function zt(le,We){ln(Z,le,me,We),ln(ue,le,ie,We)}function Rn(le,We){if(!le)return!1;let pt=!1;return le.forEach(j=>{if(!(j.isInvalidated||!We(j))){j.isInvalidated=pt=!0;for(let ot of C.checkDefined(j.files))(o??(o=new Set)).add(ot),b=b||Sl(ot,u2)}}),pt}function ui(le){zt(le);let We=b;Rn(g.get(le),Dv)&&b&&!We&&e.onChangedAutomaticTypeDirectiveNames()}function bi(le){C.assert(s===le||s===void 0),s=le}function ro(le,We){if(We)(N||(N=new Set)).add(le);else{let pt=IF(le);if(!pt||(le=pt,e.fileIsOpen(le)))return!1;let j=li(le);if(rn(le)||a6(le)||rn(j)||a6(j))(R||(R=new Set)).add(le),(M||(M=new Set)).add(le);else{if(ice(e.getCurrentProgram(),le)||Tl(le,".map"))return!1;(R||(R=new Set)).add(le);let ot=vw(le,!0);ot&&(M||(M=new Set)).add(ot)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function No(){let le=V.getPackageJsonInfoCache().getInternalMap();le&&(R||M||N)&&le.forEach((We,pt)=>En(pt)?le.delete(pt):void 0)}function _a(){var le;if(O)return T=void 0,No(),(R||M||N||I)&&Rn(ne,ja),R=void 0,M=void 0,N=void 0,I=void 0,!0;let We=!1;return T&&((le=e.getCurrentProgram())==null||le.getSourceFiles().forEach(pt=>{Et(pt.packageJsonLocations,j=>T.has(j))&&((o??(o=new Set)).add(pt.path),We=!0)}),T=void 0),!R&&!M&&!N&&!I||(We=Rn(u,ja)||We,No(),R=void 0,M=void 0,N=void 0,We=Rn(p,wn)||We,I=void 0),We}function ja(le){var We;return wn(le)?!0:!R&&!M&&!N?!1:((We=le.failedLookupLocations)==null?void 0:We.some(pt=>En(e.toPath(pt))))||!!le.alternateResult&&En(e.toPath(le.alternateResult))}function En(le){return R?.has(le)||ir(M?.keys()||[],We=>uo(le,We)?!0:void 0)||ir(N?.keys()||[],We=>le.length>We.length&&uo(le,We)&&(AV(We)||le[We.length]===il)?!0:void 0)}function wn(le){var We;return!!I&&((We=le.affectingLocations)==null?void 0:We.some(pt=>I.has(pt)))}function Ue(){ep(Ne,$m)}function mt(le){return Nt(le)?e.watchTypeRootsDirectory(le,We=>{let pt=e.toPath(We);K&&K.addOrDeleteFileOrDirectory(We,pt),b=!0,e.onChangedAutomaticTypeDirectiveNames();let j=Nce(le,e.toPath(le),oe,fe,H,ot=>ye.has(ot));j&&ro(pt,j===pt)},1):f2}function ft(){let le=e.getCompilationSettings();if(le.types){Ue();return}let We=FN(le,{getCurrentDirectory:H});We?KC(Ne,new Set(We),{createNewValue:mt,onDeleteValue:$m}):Ue()}function Nt(le){return e.getCompilationSettings().typeRoots?!0:Rce(e.toPath(le))}}function Zje(e){var t,r;return!!((t=e.resolvedModule)!=null&&t.originalPath||(r=e.resolvedTypeReferenceDirective)!=null&&r.originalPath)}var eUe=A({"src/compiler/resolutionCache.ts"(){"use strict";ia()}});function Vw(e,t){let r=e===gu&&zce?zce:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:Pu(e.useCaseSensitiveFileNames)};if(!t)return o=>e.write(TJ(o,r));let i=new Array(1);return o=>{i[0]=o,e.write(lce(i,r)+r.getNewLine()),i[0]=void 0}}function ixe(e,t,r){return e.clearScreen&&!r.preserveWatchOutput&&!r.extendedDiagnostics&&!r.diagnostics&&wr(LF,t.code)?(e.clearScreen(),!0):!1}function tUe(e,t){return wr(LF,e.code)?t+t:t}function jw(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace("\u202F"," "):new Date().toLocaleTimeString()}function Lce(e,t){return t?(r,i,o)=>{ixe(e,r,o);let s=`[${aE(jw(e),"\x1B[90m")}] `;s+=`${W_(r.messageText,e.newLine)}${i+i}`,e.write(s)}:(r,i,o)=>{let s="";ixe(e,r,o)||(s+=i),s+=`${jw(e)} - `,s+=`${W_(r.messageText,e.newLine)}${tUe(r,i)}`,e.write(s)}}function oxe(e,t,r,i,o,s){let l=o;l.onUnRecoverableConfigFileDiagnostic=p=>lxe(o,s,p);let u=ow(e,t,l,r,i);return l.onUnRecoverableConfigFileDiagnostic=void 0,u}function DF(e){return au(e,t=>t.category===1)}function CF(e){return tr(e,r=>r.category===1).map(r=>{if(r.file!==void 0)return`${r.file.fileName}`}).map(r=>{if(r===void 0)return;let i=vn(e,o=>o.file!==void 0&&o.file.fileName===r);if(i!==void 0){let{line:o}=Es(i.file,i.start);return{fileName:r,line:o+1}}})}function YJ(e){return e===1?f.Found_1_error_Watching_for_file_changes:f.Found_0_errors_Watching_for_file_changes}function axe(e,t){let r=aE(":"+e.line,"\x1B[90m");return rC(e.fileName)&&rC(t)?bm(t,e.fileName,!1)+r:e.fileName+r}function kce(e,t,r,i){if(e===0)return"";let o=t.filter(m=>m!==void 0),s=o.map(m=>`${m.fileName}:${m.line}`).filter((m,b,T)=>T.indexOf(m)===b),l=o[0]&&axe(o[0],i.getCurrentDirectory()),u;e===1?u=t[0]!==void 0?[f.Found_1_error_in_0,l]:[f.Found_1_error]:u=s.length===0?[f.Found_0_errors,e]:s.length===1?[f.Found_0_errors_in_the_same_file_starting_at_Colon_1,e,l]:[f.Found_0_errors_in_1_files,e,s.length];let p=Vl(...u),g=s.length>1?nUe(o,i):"";return`${r}${W_(p.messageText,r)}${r}${r}${g}`}function nUe(e,t){let r=e.filter((b,T,I)=>T===I.findIndex(R=>R?.fileName===b?.fileName));if(r.length===0)return"";let i=b=>Math.log(b)*Math.LOG10E+1,o=r.map(b=>[b,au(e,T=>T.fileName===b.fileName)]),s=o.reduce((b,T)=>Math.max(b,T[1]||0),0),l=f.Errors_Files.message,u=l.split(" ")[0].length,p=Math.max(u,i(s)),g=Math.max(i(s)-u,0),m="";return m+=" ".repeat(g)+l+` +`,o.forEach(b=>{let[T,I]=b,R=Math.log(I)*Math.LOG10E+1|0,M=R{t(i.fileName)})}function QJ(e,t){var r,i;let o=e.getFileIncludeReasons(),s=l=>iC(l,e.getCurrentDirectory(),e.getCanonicalFileName);for(let l of e.getSourceFiles())t(`${p2(l,s)}`),(r=o.get(l.path))==null||r.forEach(u=>t(` ${nK(e,u,s).messageText}`)),(i=ZJ(l,s))==null||i.forEach(u=>t(` ${u.messageText}`))}function ZJ(e,t){var r;let i;if(e.path!==e.resolvedPath&&(i??(i=[])).push(Uo(void 0,f.File_is_output_of_project_reference_source_0,p2(e.originalFileName,t))),e.redirectInfo&&(i??(i=[])).push(Uo(void 0,f.File_redirects_to_file_0,p2(e.redirectInfo.redirectTarget,t))),Fp(e))switch(e.impliedNodeFormat){case 99:e.packageJsonScope&&(i??(i=[])).push(Uo(void 0,f.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,p2(Ya(e.packageJsonLocations),t)));break;case 1:e.packageJsonScope?(i??(i=[])).push(Uo(void 0,e.packageJsonScope.contents.packageJsonContent.type?f.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:f.File_is_CommonJS_module_because_0_does_not_have_field_type,p2(Ya(e.packageJsonLocations),t))):(r=e.packageJsonLocations)!=null&&r.length&&(i??(i=[])).push(Uo(void 0,f.File_is_CommonJS_module_because_package_json_was_not_found));break}return i}function eK(e,t){var r;let i=e.getCompilerOptions().configFile;if(!((r=i?.configFileSpecs)!=null&&r.validatedFilesSpec))return;let o=e.getCanonicalFileName(t),s=li(bo(i.fileName,e.getCurrentDirectory()));return vn(i.configFileSpecs.validatedFilesSpec,l=>e.getCanonicalFileName(bo(l,s))===o)}function tK(e,t){var r,i;let o=e.getCompilerOptions().configFile;if(!((r=o?.configFileSpecs)!=null&&r.validatedIncludeSpecs))return;if(o.configFileSpecs.isDefaultIncludeSpec)return!0;let s=Tl(t,".json"),l=li(bo(o.fileName,e.getCurrentDirectory())),u=e.useCaseSensitiveFileNames();return vn((i=o?.configFileSpecs)==null?void 0:i.validatedIncludeSpecs,p=>{if(s&&!Sl(p,".json"))return!1;let g=koe(p,l,"files");return!!g&&jy(`(${g})$`,u).test(t)})}function nK(e,t,r){var i,o;let s=e.getCompilerOptions();if(R0(t)){let l=ZN(e,t),u=l2(l)?l.file.text.substring(l.pos,l.end):`"${l.text}"`,p;switch(C.assert(l2(l)||t.kind===3,"Only synthetic references are imports"),t.kind){case 3:l2(l)?p=l.packageId?f.Imported_via_0_from_file_1_with_packageId_2:f.Imported_via_0_from_file_1:l.text===Hy?p=l.packageId?f.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:f.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:p=l.packageId?f.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:f.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:C.assert(!l.packageId),p=f.Referenced_via_0_from_file_1;break;case 5:p=l.packageId?f.Type_library_referenced_via_0_from_file_1_with_packageId_2:f.Type_library_referenced_via_0_from_file_1;break;case 7:C.assert(!l.packageId),p=f.Library_referenced_via_0_from_file_1;break;default:C.assertNever(t)}return Uo(void 0,p,u,p2(l.file,r),l.packageId&&Fy(l.packageId))}switch(t.kind){case 0:if(!((i=s.configFile)!=null&&i.configFileSpecs))return Uo(void 0,f.Root_file_specified_for_compilation);let l=bo(e.getRootFileNames()[t.index],e.getCurrentDirectory());if(eK(e,l))return Uo(void 0,f.Part_of_files_list_in_tsconfig_json);let p=tK(e,l);return wo(p)?Uo(void 0,f.Matched_by_include_pattern_0_in_1,p,p2(s.configFile,r)):Uo(void 0,p?f.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:f.Root_file_specified_for_compilation);case 1:case 2:let g=t.kind===2,m=C.checkDefined((o=e.getResolvedProjectReferences())==null?void 0:o[t.index]);return Uo(void 0,Ps(s)?g?f.Output_from_referenced_project_0_included_because_1_specified:f.Source_from_referenced_project_0_included_because_1_specified:g?f.Output_from_referenced_project_0_included_because_module_is_specified_as_none:f.Source_from_referenced_project_0_included_because_module_is_specified_as_none,p2(m.sourceFile.fileName,r),s.outFile?"--outFile":"--out");case 8:{let b=s.types?t.packageId?[f.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,t.typeReference,Fy(t.packageId)]:[f.Entry_point_of_type_library_0_specified_in_compilerOptions,t.typeReference]:t.packageId?[f.Entry_point_for_implicit_type_library_0_with_packageId_1,t.typeReference,Fy(t.packageId)]:[f.Entry_point_for_implicit_type_library_0,t.typeReference];return Uo(void 0,...b)}case 6:{if(t.index!==void 0)return Uo(void 0,f.Library_0_specified_in_compilerOptions,s.lib[t.index]);let b=Bc(fw.type,(I,R)=>I===as(s)?R:void 0),T=b?[f.Default_library_for_target_0,b]:[f.Default_library];return Uo(void 0,...T)}default:C.assertNever(t)}}function p2(e,t){let r=wo(e)?e:e.fileName;return t?t(r):r}function NF(e,t,r,i,o,s,l,u){let p=!!e.getCompilerOptions().listFilesOnly,g=e.getConfigFileParsingDiagnostics().slice(),m=g.length;Jr(g,e.getSyntacticDiagnostics(void 0,s)),g.length===m&&(Jr(g,e.getOptionsDiagnostics(s)),p||(Jr(g,e.getGlobalDiagnostics(s)),g.length===m&&Jr(g,e.getSemanticDiagnostics(void 0,s))));let b=p?{emitSkipped:!0,diagnostics:et}:e.emit(void 0,o,s,l,u),{emittedFiles:T,diagnostics:I}=b;Jr(g,I);let R=Gx(g);if(R.forEach(t),r){let M=e.getCurrentDirectory();Ke(T,N=>{let O=bo(N,M);r(`TSFILE: ${O}`)}),$J(e,r)}return i&&i(DF(R),CF(R)),{emitResult:b,diagnostics:R}}function Oce(e,t,r,i,o,s,l,u){let{emitResult:p,diagnostics:g}=NF(e,t,r,i,o,s,l,u);return p.emitSkipped&&g.length>0?1:g.length>0?2:0}function rK(e=gu,t){return{onWatchStatusChange:t||Lce(e),watchFile:oa(e,e.watchFile)||m2,watchDirectory:oa(e,e.watchDirectory)||m2,setTimeout:oa(e,e.setTimeout)||$a,clearTimeout:oa(e,e.clearTimeout)||$a}}function iK(e,t){let r=e.trace?t.extendedDiagnostics?2:t.diagnostics?1:0:0,i=r!==0?s=>e.trace(s):$a,o=gJ(e,r,i);return o.writeLog=i,o}function oK(e,t,r=e){let i=e.useCaseSensitiveFileNames(),o={getSourceFile:bJ((s,l)=>l?e.readFile(s,l):o.readFile(s),t,void 0),getDefaultLibLocation:oa(e,e.getDefaultLibLocation),getDefaultLibFileName:s=>e.getDefaultLibFileName(s),writeFile:EJ((s,l,u)=>e.writeFile(s,l,u),s=>e.createDirectory(s),s=>e.directoryExists(s)),getCurrentDirectory:Ed(()=>e.getCurrentDirectory()),useCaseSensitiveFileNames:()=>i,getCanonicalFileName:Pu(i),getNewLine:()=>Gv(t()),fileExists:s=>e.fileExists(s),readFile:s=>e.readFile(s),trace:oa(e,e.trace),directoryExists:oa(r,r.directoryExists),getDirectories:oa(r,r.getDirectories),realpath:oa(e,e.realpath),getEnvironmentVariable:oa(e,e.getEnvironmentVariable)||(()=>""),createHash:oa(e,e.createHash),readDirectory:oa(e,e.readDirectory),storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,jsDocParsingMode:e.jsDocParsingMode};return o}function PF(e,t){if(t.match(Hq)){let r=t.length,i=r;for(let o=r-1;o>=0;o--){let s=t.charCodeAt(o);switch(s){case 10:o&&t.charCodeAt(o-1)===13&&o--;case 13:break;default:if(s<127||!Uu(s)){i=o;continue}break}let l=t.substring(i,r);if(l.match(K5)){t=t.substring(0,i);break}else if(!l.match(X5))break;r=i}}return(e.createHash||nC)(t)}function MF(e){let t=e.getSourceFile;e.getSourceFile=(...r)=>{let i=t.call(e,...r);return i&&(i.version=PF(e,i.text)),i}}function aK(e,t){let r=Ed(()=>li(va(e.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:Ed(()=>e.getCurrentDirectory()),getDefaultLibLocation:r,getDefaultLibFileName:i=>Zr(r(),QM(i)),fileExists:i=>e.fileExists(i),readFile:(i,o)=>e.readFile(i,o),directoryExists:i=>e.directoryExists(i),getDirectories:i=>e.getDirectories(i),readDirectory:(i,o,s,l,u)=>e.readDirectory(i,o,s,l,u),realpath:oa(e,e.realpath),getEnvironmentVariable:oa(e,e.getEnvironmentVariable),trace:i=>e.write(i+e.newLine),createDirectory:i=>e.createDirectory(i),writeFile:(i,o,s)=>e.writeFile(i,o,s),createHash:oa(e,e.createHash),createProgram:t||JJ,storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,now:oa(e,e.now)}}function sxe(e=gu,t,r,i){let o=l=>e.write(l+e.newLine),s=aK(e,t);return oG(s,rK(e,i)),s.afterProgramCreate=l=>{let u=l.getCompilerOptions(),p=Gv(u);NF(l,r,o,g=>s.onWatchStatusChange(Vl(YJ(g),g),p,u,g))},s}function lxe(e,t,r){t(r),e.exit(1)}function Fce({configFileName:e,optionsToExtend:t,watchOptionsToExtend:r,extraFileExtensions:i,system:o,createProgram:s,reportDiagnostic:l,reportWatchStatus:u}){let p=l||Vw(o),g=sxe(o,s,p,u);return g.onUnRecoverableConfigFileDiagnostic=m=>lxe(o,p,m),g.configFileName=e,g.optionsToExtend=t,g.watchOptionsToExtend=r,g.extraFileExtensions=i,g}function Wce({rootFiles:e,options:t,watchOptions:r,projectReferences:i,system:o,createProgram:s,reportDiagnostic:l,reportWatchStatus:u}){let p=sxe(o,s,l||Vw(o),u);return p.rootFiles=e,p.options=t,p.watchOptions=r,p.projectReferences=i,p}function cxe(e){let t=e.system||gu,r=e.host||(e.host=sK(e.options,t)),i=Bce(e),o=Oce(i,e.reportDiagnostic||Vw(t),s=>r.trace&&r.trace(s),e.reportErrorSummary||e.options.pretty?(s,l)=>t.write(kce(s,l,t.newLine,r)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(i),o}var zce,LF,f2,m2,kc,rUe=A({"src/compiler/watch.ts"(){"use strict";ia(),zce=gu?{getCurrentDirectory:()=>gu.getCurrentDirectory(),getNewLine:()=>gu.newLine,getCanonicalFileName:Pu(gu.useCaseSensitiveFileNames)}:void 0,LF=[f.Starting_compilation_in_watch_mode.code,f.File_change_detected_Starting_incremental_compilation.code],f2={close:$a},m2=()=>f2,kc={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",AffectingFileLocation:"File location affecting resolution",TypeRoots:"Type roots",ConfigFileOfReferencedProject:"Config file of referened project",ExtendedConfigOfReferencedProject:"Extended config file of referenced project",WildcardDirectoryOfReferencedProject:"Wild card directory of referenced project",PackageJson:"package.json file",ClosedScriptInfo:"Closed Script info",ConfigFileForInferredRoot:"Config file for the inferred project root",NodeModules:"node_modules for closed script infos and package.jsons affecting module specifier cache",MissingSourceMapFile:"Missing source map file",NoopConfigFileForInferredRoot:"Noop Config file for the inferred project root",MissingGeneratedFile:"Missing generated file",NodeModulesForModuleSpecifierCache:"node_modules for module specifier cache invalidation",TypingInstallerLocationFile:"File location for typing installer",TypingInstallerLocationDirectory:"Directory location for typing installer"}}});function kF(e,t){let r=Kv(e);if(!r)return;let i;if(t.getBuildInfo)i=t.getBuildInfo(r,e.configFilePath);else{let o=t.readFile(r);if(!o)return;i=cF(r,o)}if(!(!i||i.version!==Te||!i.program))return Ice(i,r,t)}function sK(e,t=gu){let r=SJ(e,void 0,t);return r.createHash=oa(t,t.createHash),r.storeFilesChangingSignatureDuringEmit=t.storeFilesChangingSignatureDuringEmit,MF(r),Fw(r,i=>rl(i,r.getCurrentDirectory(),r.getCanonicalFileName)),r}function Bce({rootNames:e,options:t,configFileParsingDiagnostics:r,projectReferences:i,host:o,createProgram:s}){o=o||sK(t),s=s||JJ;let l=kF(t,o);return s(e,t,o,l,r,i)}function uxe(e,t,r,i,o,s,l,u){return Do(e)?Wce({rootFiles:e,options:t,watchOptions:u,projectReferences:l,system:r,createProgram:i,reportDiagnostic:o,reportWatchStatus:s}):Fce({configFileName:e,optionsToExtend:t,watchOptionsToExtend:l,extraFileExtensions:u,system:r,createProgram:i,reportDiagnostic:o,reportWatchStatus:s})}function dxe(e){let t,r,i,o,s,l,u,p,g=e.extendedConfigCache,m=!1,b=new Map,T,I=!1,R=e.useCaseSensitiveFileNames(),M=e.getCurrentDirectory(),{configFileName:N,optionsToExtend:O={},watchOptionsToExtend:H,extraFileExtensions:K,createProgram:Z}=e,{rootFiles:V,options:ue,watchOptions:G,projectReferences:ne}=e,he,ye,$=!1,Y=!1,oe=N===void 0?void 0:dF(e,M,R),fe=oe||e,Ne=bF(e,fe),me=Nn();N&&e.configFileParsingResult&&(ja(e.configFileParsingResult),me=Nn()),nr(f.Starting_compilation_in_watch_mode),N&&!e.configFileParsingResult&&(me=Gv(O),C.assert(!V),_a(),me=Nn()),C.assert(ue),C.assert(V);let{watchFile:ie,watchDirectory:ve,writeLog:Le}=iK(e,ue),He=Pu(R);Le(`Current directory: ${M} CaseSensitiveFileNames: ${R}`);let Ee;N&&(Ee=ie(N,Rn,2e3,G,kc.ConfigFile));let Ce=oK(e,()=>ue,fe);MF(Ce);let Me=Ce.getSourceFile;Ce.getSourceFile=(Ye,...ht)=>vi(Ye,Xn(Ye),...ht),Ce.getSourceFileByPath=vi,Ce.getNewLine=()=>me,Ce.fileExists=Yt,Ce.onReleaseOldSourceFile=Ro,Ce.onReleaseParsedCommandLine=Ue,Ce.toPath=Xn,Ce.getCompilationSettings=()=>ue,Ce.useSourceOfProjectReferenceRedirect=oa(e,e.useSourceOfProjectReferenceRedirect),Ce.watchDirectoryOfFailedLookupLocation=(Ye,ht,Vt)=>ve(Ye,ht,Vt,G,kc.FailedLookupLocations),Ce.watchAffectingFileLocation=(Ye,ht)=>ie(Ye,ht,2e3,G,kc.AffectingFileLocation),Ce.watchTypeRootsDirectory=(Ye,ht,Vt)=>ve(Ye,ht,Vt,G,kc.TypeRoots),Ce.getCachedDirectoryStructureHost=()=>oe,Ce.scheduleInvalidateResolutionsOfFailedLookupLocations=ln,Ce.onInvalidatedResolution=zt,Ce.onChangedAutomaticTypeDirectiveNames=zt,Ce.fileIsOpen=Km,Ce.getCurrentProgram=Qe,Ce.writeLog=Le,Ce.getParsedCommandLine=En;let Fe=XJ(Ce,N?li(bo(N,M)):M,!1);Ce.resolveModuleNameLiterals=oa(e,e.resolveModuleNameLiterals),Ce.resolveModuleNames=oa(e,e.resolveModuleNames),!Ce.resolveModuleNameLiterals&&!Ce.resolveModuleNames&&(Ce.resolveModuleNameLiterals=Fe.resolveModuleNameLiterals.bind(Fe)),Ce.resolveTypeReferenceDirectiveReferences=oa(e,e.resolveTypeReferenceDirectiveReferences),Ce.resolveTypeReferenceDirectives=oa(e,e.resolveTypeReferenceDirectives),!Ce.resolveTypeReferenceDirectiveReferences&&!Ce.resolveTypeReferenceDirectives&&(Ce.resolveTypeReferenceDirectiveReferences=Fe.resolveTypeReferenceDirectiveReferences.bind(Fe)),Ce.resolveLibrary=e.resolveLibrary?e.resolveLibrary.bind(e):Fe.resolveLibrary.bind(Fe),Ce.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?oa(e,e.getModuleResolutionCache):()=>Fe.getModuleResolutionCache();let Se=!!e.resolveModuleNameLiterals||!!e.resolveTypeReferenceDirectiveReferences||!!e.resolveModuleNames||!!e.resolveTypeReferenceDirectives?oa(e,e.hasInvalidatedResolutions)||Dv:Km,je=e.resolveLibrary?oa(e,e.hasInvalidatedLibResolutions)||Dv:Km;return t=kF(ue,Ce),gt(),pt(),N&&ot(Xn(N),ue,G,kc.ExtendedConfigFile),N?{getCurrentProgram:yt,getProgram:bi,close:at,getResolutionCache:Bt}:{getCurrentProgram:yt,getProgram:bi,updateRootFileNames:rn,close:at,getResolutionCache:Bt};function at(){xr(),Fe.clear(),ep(b,Ye=>{Ye&&Ye.fileWatcher&&(Ye.fileWatcher.close(),Ye.fileWatcher=void 0)}),Ee&&(Ee.close(),Ee=void 0),g?.clear(),g=void 0,p&&(ep(p,Cf),p=void 0),o&&(ep(o,Cf),o=void 0),i&&(ep(i,$m),i=void 0),u&&(ep(u,Ye=>{var ht;(ht=Ye.watcher)==null||ht.close(),Ye.watcher=void 0,Ye.watchedDirectories&&ep(Ye.watchedDirectories,Cf),Ye.watchedDirectories=void 0}),u=void 0)}function Bt(){return Fe}function yt(){return t}function Qe(){return t&&t.getProgramOrUndefined()}function gt(){Le("Synchronizing program"),C.assert(ue),C.assert(V),xr();let Ye=yt();I&&(me=Nn(),Ye&&M6(Ye.getCompilerOptions(),ue)&&Fe.onChangesAffectModuleResolution());let{hasInvalidatedResolutions:ht,hasInvalidatedLibResolutions:Vt}=Fe.createHasInvalidatedResolutions(Se,je),{originalReadFile:yn,originalFileExists:fn,originalDirectoryExists:mn,originalCreateDirectory:q,originalWriteFile:Oe,readFileWithCache:Lt}=Fw(Ce,Xn);return MJ(Qe(),V,ue,w=>ki(w,Lt),w=>Ce.fileExists(w),ht,Vt,qr,En,ne)?Y&&(m&&nr(f.File_change_detected_Starting_incremental_compilation),t=Z(void 0,void 0,Ce,t,ye,ne),Y=!1):(m&&nr(f.File_change_detected_Starting_incremental_compilation),nn(ht,Vt)),m=!1,e.afterProgramCreate&&Ye!==t&&e.afterProgramCreate(t),Ce.readFile=yn,Ce.fileExists=fn,Ce.directoryExists=mn,Ce.createDirectory=q,Ce.writeFile=Oe,t}function nn(Ye,ht){Le("CreatingProgramWith::"),Le(` roots: ${JSON.stringify(V)}`),Le(` options: ${JSON.stringify(ue)}`),ne&&Le(` projectReferences: ${JSON.stringify(ne)}`);let Vt=I||!Qe();I=!1,Y=!1,Fe.startCachingPerDirectoryResolution(),Ce.hasInvalidatedResolutions=Ye,Ce.hasInvalidatedLibResolutions=ht,Ce.hasChangedAutomaticTypeDirectiveNames=qr;let yn=Qe();if(t=Z(V,ue,Ce,t,ye,ne),Fe.finishCachingPerDirectoryResolution(t.getProgram(),yn),hJ(t.getProgram(),i||(i=new Map),le),Vt&&Fe.updateTypeRootsWatch(),T){for(let fn of T)i.has(fn)||b.delete(fn);T=void 0}}function rn(Ye){C.assert(!N,"Cannot update root file names with config file watch mode"),V=Ye,zt()}function Nn(){return Gv(ue||O)}function Xn(Ye){return rl(Ye,M,He)}function _n(Ye){return typeof Ye=="boolean"}function Qt(Ye){return typeof Ye.version=="boolean"}function Yt(Ye){let ht=Xn(Ye);return _n(b.get(ht))?!1:fe.fileExists(Ye)}function vi(Ye,ht,Vt,yn,fn){let mn=b.get(ht);if(_n(mn))return;let q=typeof Vt=="object"?Vt.impliedNodeFormat:void 0;if(mn===void 0||fn||Qt(mn)||mn.sourceFile.impliedNodeFormat!==q){let Oe=Me(Ye,Vt,yn);if(mn)Oe?(mn.sourceFile=Oe,mn.version=Oe.version,mn.fileWatcher||(mn.fileWatcher=mt(ht,Ye,ft,250,G,kc.SourceFile))):(mn.fileWatcher&&mn.fileWatcher.close(),b.set(ht,!1));else if(Oe){let Lt=mt(ht,Ye,ft,250,G,kc.SourceFile);b.set(ht,{sourceFile:Oe,version:Oe.version,fileWatcher:Lt})}else b.set(ht,!1);return Oe}return mn.sourceFile}function ho(Ye){let ht=b.get(Ye);ht!==void 0&&(_n(ht)?b.set(Ye,{version:!1}):ht.version=!1)}function ki(Ye,ht){let Vt=b.get(Ye);if(!Vt)return;if(Vt.version)return Vt.version;let yn=ht(Ye);return yn!==void 0?PF(Ce,yn):void 0}function Ro(Ye,ht,Vt){let yn=b.get(Ye.resolvedPath);yn!==void 0&&(_n(yn)?(T||(T=[])).push(Ye.path):yn.sourceFile===Ye&&(yn.fileWatcher&&yn.fileWatcher.close(),b.delete(Ye.resolvedPath),Vt||Fe.removeResolutionsOfFile(Ye.path)))}function nr(Ye){e.onWatchStatusChange&&e.onWatchStatusChange(Vl(Ye),me,ue||O)}function qr(){return Fe.hasChangedAutomaticTypeDirectiveNames()}function xr(){return l?(e.clearTimeout(l),l=void 0,!0):!1}function ln(){if(!e.setTimeout||!e.clearTimeout)return Fe.invalidateResolutionsOfFailedLookupLocations();let Ye=xr();Le(`Scheduling invalidateFailedLookup${Ye?", Cancelled earlier one":""}`),l=e.setTimeout(tt,250,"timerToInvalidateFailedLookupResolutions")}function tt(){l=void 0,Fe.invalidateResolutionsOfFailedLookupLocations()&&zt()}function zt(){!e.setTimeout||!e.clearTimeout||(s&&e.clearTimeout(s),Le("Scheduling update"),s=e.setTimeout(ui,250,"timerToUpdateProgram"))}function Rn(){C.assert(!!N),r=2,zt()}function ui(){s=void 0,m=!0,bi()}function bi(){var Ye,ht,Vt,yn;switch(r){case 1:(Ye=rd)==null||Ye.logStartUpdateProgram("PartialConfigReload"),ro();break;case 2:(ht=rd)==null||ht.logStartUpdateProgram("FullConfigReload"),No();break;default:(Vt=rd)==null||Vt.logStartUpdateProgram("SynchronizeProgram"),gt();break}return(yn=rd)==null||yn.logStopUpdateProgram("Done"),yt()}function ro(){Le("Reloading new file names and options"),C.assert(ue),C.assert(N),r=0,V=kN(ue.configFile.configFileSpecs,bo(li(N),M),ue,Ne,K),E5(V,bo(N,M),ue.configFile.configFileSpecs,ye,$)&&(Y=!0),gt()}function No(){C.assert(N),Le(`Reloading config file: ${N}`),r=0,oe&&oe.clearCache(),_a(),I=!0,gt(),pt(),ot(Xn(N),ue,G,kc.ExtendedConfigFile)}function _a(){C.assert(N),ja(ow(N,O,Ne,g||(g=new Map),H,K))}function ja(Ye){V=Ye.fileNames,ue=Ye.options,G=Ye.watchOptions,ne=Ye.projectReferences,he=Ye.wildcardDirectories,ye=XS(Ye).slice(),$=LN(Ye.raw),Y=!0}function En(Ye){let ht=Xn(Ye),Vt=u?.get(ht);if(Vt){if(!Vt.updateLevel)return Vt.parsedCommandLine;if(Vt.parsedCommandLine&&Vt.updateLevel===1&&!e.getParsedCommandLine){Le("Reloading new file names and options"),C.assert(ue);let fn=kN(Vt.parsedCommandLine.options.configFile.configFileSpecs,bo(li(Ye),M),ue,Ne);return Vt.parsedCommandLine={...Vt.parsedCommandLine,fileNames:fn},Vt.updateLevel=void 0,Vt.parsedCommandLine}}Le(`Loading config file: ${Ye}`);let yn=e.getParsedCommandLine?e.getParsedCommandLine(Ye):wn(Ye);return Vt?(Vt.parsedCommandLine=yn,Vt.updateLevel=void 0):(u||(u=new Map)).set(ht,Vt={parsedCommandLine:yn}),xt(Ye,ht,Vt),yn}function wn(Ye){let ht=Ne.onUnRecoverableConfigFileDiagnostic;Ne.onUnRecoverableConfigFileDiagnostic=$a;let Vt=ow(Ye,void 0,Ne,g||(g=new Map),H);return Ne.onUnRecoverableConfigFileDiagnostic=ht,Vt}function Ue(Ye){var ht;let Vt=Xn(Ye),yn=u?.get(Vt);yn&&(u.delete(Vt),yn.watchedDirectories&&ep(yn.watchedDirectories,Cf),(ht=yn.watcher)==null||ht.close(),_J(Vt,p))}function mt(Ye,ht,Vt,yn,fn,mn){return ie(ht,(q,Oe)=>Vt(q,Oe,Ye),yn,fn,mn)}function ft(Ye,ht,Vt){Nt(Ye,Vt,ht),ht===2&&b.has(Vt)&&Fe.invalidateResolutionOfFile(Vt),ho(Vt),zt()}function Nt(Ye,ht,Vt){oe&&oe.addOrDeleteFile(Ye,ht,Vt)}function le(Ye,ht){return u?.has(Ye)?f2:mt(Ye,ht,We,500,G,kc.MissingFile)}function We(Ye,ht,Vt){Nt(Ye,Vt,ht),ht===0&&i.has(Vt)&&(i.get(Vt).close(),i.delete(Vt),ho(Vt),zt())}function pt(){kw(o||(o=new Map),he,j)}function j(Ye,ht){return ve(Ye,Vt=>{C.assert(N),C.assert(ue);let yn=Xn(Vt);oe&&oe.addOrDeleteFileOrDirectory(Vt,yn),ho(yn),!ww({watchedDirPath:Xn(Ye),fileOrDirectory:Vt,fileOrDirectoryPath:yn,configFileName:N,extraFileExtensions:K,options:ue,program:yt()||V,currentDirectory:M,useCaseSensitiveFileNames:R,writeLog:Le,toPath:Xn})&&r!==2&&(r=1,zt())},ht,G,kc.WildcardDirectory)}function ot(Ye,ht,Vt,yn){pF(Ye,ht,p||(p=new Map),(fn,mn)=>ie(fn,(q,Oe)=>{var Lt;Nt(fn,mn,Oe),g&&fF(g,mn,Xn);let w=(Lt=p.get(mn))==null?void 0:Lt.projects;w?.size&&w.forEach(ae=>{if(N&&Xn(N)===ae)r=2;else{let J=u?.get(ae);J&&(J.updateLevel=2),Fe.removeResolutionsFromProjectReferenceRedirects(ae)}zt()})},2e3,Vt,yn),Xn)}function xt(Ye,ht,Vt){var yn,fn,mn,q;Vt.watcher||(Vt.watcher=ie(Ye,(Oe,Lt)=>{Nt(Ye,ht,Lt);let w=u?.get(ht);w&&(w.updateLevel=2),Fe.removeResolutionsFromProjectReferenceRedirects(ht),zt()},2e3,((yn=Vt.parsedCommandLine)==null?void 0:yn.watchOptions)||G,kc.ConfigFileOfReferencedProject)),kw(Vt.watchedDirectories||(Vt.watchedDirectories=new Map),(fn=Vt.parsedCommandLine)==null?void 0:fn.wildcardDirectories,(Oe,Lt)=>{var w;return ve(Oe,ae=>{let J=Xn(ae);oe&&oe.addOrDeleteFileOrDirectory(ae,J),ho(J);let pe=u?.get(ht);pe?.parsedCommandLine&&(ww({watchedDirPath:Xn(Oe),fileOrDirectory:ae,fileOrDirectoryPath:J,configFileName:Ye,options:pe.parsedCommandLine.options,program:pe.parsedCommandLine.fileNames,currentDirectory:M,useCaseSensitiveFileNames:R,writeLog:Le,toPath:Xn})||pe.updateLevel!==2&&(pe.updateLevel=1,zt()))},Lt,((w=Vt.parsedCommandLine)==null?void 0:w.watchOptions)||G,kc.WildcardDirectoryOfReferencedProject)}),ot(ht,(mn=Vt.parsedCommandLine)==null?void 0:mn.options,((q=Vt.parsedCommandLine)==null?void 0:q.watchOptions)||G,kc.ExtendedConfigOfReferencedProject)}}var iUe=A({"src/compiler/watchPublic.ts"(){"use strict";ia()}});function lK(e){return Tl(e,".json")?e:Zr(e,"tsconfig.json")}var cK,oUe=A({"src/compiler/tsbuild.ts"(){"use strict";ia(),cK=(e=>(e[e.Unbuildable=0]="Unbuildable",e[e.UpToDate=1]="UpToDate",e[e.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",e[e.OutOfDateWithPrepend=3]="OutOfDateWithPrepend",e[e.OutputMissing=4]="OutputMissing",e[e.ErrorReadingFile=5]="ErrorReadingFile",e[e.OutOfDateWithSelf=6]="OutOfDateWithSelf",e[e.OutOfDateWithUpstream=7]="OutOfDateWithUpstream",e[e.OutOfDateBuildInfo=8]="OutOfDateBuildInfo",e[e.OutOfDateOptions=9]="OutOfDateOptions",e[e.OutOfDateRoots=10]="OutOfDateRoots",e[e.UpstreamOutOfDate=11]="UpstreamOutOfDate",e[e.UpstreamBlocked=12]="UpstreamBlocked",e[e.ComputingUpstream=13]="ComputingUpstream",e[e.TsVersionOutputOfDate=14]="TsVersionOutputOfDate",e[e.UpToDateWithInputFileText=15]="UpToDateWithInputFileText",e[e.ContainerOnly=16]="ContainerOnly",e[e.ForceBuild=17]="ForceBuild",e))(cK||{})}});function aUe(e,t,r){let i=e.get(t),o;return i||(o=r(),e.set(t,o)),i||o}function Gce(e,t){return aUe(e,t,()=>new Map)}function Uw(e){return e.now?e.now():new Date}function TI(e){return!!e&&!!e.buildOrder}function wF(e){return TI(e)?e.buildOrder:e}function Vce(e,t){return r=>{let i=t?`[${aE(jw(e),"\x1B[90m")}] `:`${jw(e)} - `;i+=`${W_(r.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(i)}}function pxe(e,t,r,i){let o=aK(e,t);return o.getModifiedTime=e.getModifiedTime?s=>e.getModifiedTime(s):Xb,o.setModifiedTime=e.setModifiedTime?(s,l)=>e.setModifiedTime(s,l):$a,o.deleteFile=e.deleteFile?s=>e.deleteFile(s):$a,o.reportDiagnostic=r||Vw(e),o.reportSolutionBuilderStatus=i||Vce(e),o.now=oa(e,e.now),o}function fxe(e=gu,t,r,i,o){let s=pxe(e,t,r,i);return s.reportErrorSummary=o,s}function mxe(e=gu,t,r,i,o){let s=pxe(e,t,r,i),l=rK(e,o);return oG(s,l),s}function sUe(e){let t={};return pw.forEach(r=>{Rs(e,r.name)&&(t[r.name]=e[r.name])}),t}function _xe(e,t,r){return zxe(!1,e,t,r)}function hxe(e,t,r,i){return zxe(!0,e,t,r,i)}function lUe(e,t,r,i,o){let s=t,l=t,u=sUe(i),p=oK(s,()=>M.projectCompilerOptions);MF(p),p.getParsedCommandLine=N=>AI(M,N,z_(M,N)),p.resolveModuleNameLiterals=oa(s,s.resolveModuleNameLiterals),p.resolveTypeReferenceDirectiveReferences=oa(s,s.resolveTypeReferenceDirectiveReferences),p.resolveLibrary=oa(s,s.resolveLibrary),p.resolveModuleNames=oa(s,s.resolveModuleNames),p.resolveTypeReferenceDirectives=oa(s,s.resolveTypeReferenceDirectives),p.getModuleResolutionCache=oa(s,s.getModuleResolutionCache);let g,m;!p.resolveModuleNameLiterals&&!p.resolveModuleNames&&(g=e2(p.getCurrentDirectory(),p.getCanonicalFileName),p.resolveModuleNameLiterals=(N,O,H,K,Z)=>zw(N,O,H,K,Z,s,g,DJ),p.getModuleResolutionCache=()=>g),!p.resolveTypeReferenceDirectiveReferences&&!p.resolveTypeReferenceDirectives&&(m=k5(p.getCurrentDirectory(),p.getCanonicalFileName,void 0,g?.getPackageJsonInfoCache(),g?.optionsToRedirectsKey),p.resolveTypeReferenceDirectiveReferences=(N,O,H,K,Z)=>zw(N,O,H,K,Z,s,m,_F));let b;p.resolveLibrary||(b=e2(p.getCurrentDirectory(),p.getCanonicalFileName,void 0,g?.getPackageJsonInfoCache()),p.resolveLibrary=(N,O,H)=>w5(N,O,H,s,b)),p.getBuildInfo=(N,O)=>Nxe(M,N,z_(M,O),void 0);let{watchFile:T,watchDirectory:I,writeLog:R}=iK(l,i),M={host:s,hostWithWatch:l,parseConfigFileHost:bF(s),write:oa(s,s.trace),options:i,baseCompilerOptions:u,rootNames:r,baseWatchOptions:o,resolvedConfigFilePaths:new Map,configFileCache:new Map,projectStatus:new Map,extendedConfigCache:new Map,buildInfoCache:new Map,outputTimeStamps:new Map,builderPrograms:new Map,diagnostics:new Map,projectPendingBuild:new Map,projectErrorsReported:new Map,compilerHost:p,moduleResolutionCache:g,typeReferenceDirectiveResolutionCache:m,libraryResolutionCache:b,buildOrder:void 0,readFileWithCache:N=>s.readFile(N),projectCompilerOptions:u,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:e,watch:e,allWatchedWildcardDirectories:new Map,allWatchedInputFiles:new Map,allWatchedConfigFiles:new Map,allWatchedExtendedConfigFiles:new Map,allWatchedPackageJsonFiles:new Map,filesWatched:new Map,lastCachedPackageJsonLookups:new Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:T,watchDirectory:I,writeLog:R};return M}function Nf(e,t){return rl(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function z_(e,t){let{resolvedConfigFilePaths:r}=e,i=r.get(t);if(i!==void 0)return i;let o=Nf(e,t);return r.set(t,o),o}function gxe(e){return!!e.options}function cUe(e,t){let r=e.configFileCache.get(t);return r&&gxe(r)?r:void 0}function AI(e,t,r){let{configFileCache:i}=e,o=i.get(r);if(o)return gxe(o)?o:void 0;nl("SolutionBuilder::beforeConfigFileParsing");let s,{parseConfigFileHost:l,baseCompilerOptions:u,baseWatchOptions:p,extendedConfigCache:g,host:m}=e,b;return m.getParsedCommandLine?(b=m.getParsedCommandLine(t),b||(s=Vl(f.File_0_not_found,t))):(l.onUnRecoverableConfigFileDiagnostic=T=>s=T,b=ow(t,u,l,g,p),l.onUnRecoverableConfigFileDiagnostic=$a),i.set(r,b||s),nl("SolutionBuilder::afterConfigFileParsing"),Yp("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),b}function eP(e,t){return lK(Dy(e.compilerHost.getCurrentDirectory(),t))}function vxe(e,t){let r=new Map,i=new Map,o=[],s,l;for(let p of t)u(p);return l?{buildOrder:s||et,circularDiagnostics:l}:s||et;function u(p,g){let m=z_(e,p);if(i.has(m))return;if(r.has(m)){g||(l||(l=[])).push(Vl(f.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,o.join(`\r +`)));return}r.set(m,!0),o.push(p);let b=AI(e,p,m);if(b&&b.projectReferences)for(let T of b.projectReferences){let I=eP(e,T.path);u(I,g||T.circular)}o.pop(),i.set(m,!0),(s||(s=[])).push(p)}}function OF(e){return e.buildOrder||uUe(e)}function uUe(e){let t=vxe(e,e.rootNames.map(o=>eP(e,o)));e.resolvedConfigFilePaths.clear();let r=new Set(wF(t).map(o=>z_(e,o))),i={onDeleteValue:$a};return og(e.configFileCache,r,i),og(e.projectStatus,r,i),og(e.builderPrograms,r,i),og(e.diagnostics,r,i),og(e.projectPendingBuild,r,i),og(e.projectErrorsReported,r,i),og(e.buildInfoCache,r,i),og(e.outputTimeStamps,r,i),og(e.lastCachedPackageJsonLookups,r,i),e.watch&&(og(e.allWatchedConfigFiles,r,{onDeleteValue:$m}),e.allWatchedExtendedConfigFiles.forEach(o=>{o.projects.forEach(s=>{r.has(s)||o.projects.delete(s)}),o.close()}),og(e.allWatchedWildcardDirectories,r,{onDeleteValue:o=>o.forEach(Cf)}),og(e.allWatchedInputFiles,r,{onDeleteValue:o=>o.forEach($m)}),og(e.allWatchedPackageJsonFiles,r,{onDeleteValue:o=>o.forEach($m)})),e.buildOrder=t}function yxe(e,t,r){let i=t&&eP(e,t),o=OF(e);if(TI(o))return o;if(i){let l=z_(e,i);if(ri(o,p=>z_(e,p)===l)===-1)return}let s=i?vxe(e,[i]):o;return C.assert(!TI(s)),C.assert(!r||i!==void 0),C.assert(!r||s[s.length-1]===i),r?s.slice(0,s.length-1):s}function bxe(e){e.cache&&jce(e);let{compilerHost:t,host:r}=e,i=e.readFileWithCache,o=t.getSourceFile,{originalReadFile:s,originalFileExists:l,originalDirectoryExists:u,originalCreateDirectory:p,originalWriteFile:g,getSourceFileWithCache:m,readFileWithCache:b}=Fw(r,T=>Nf(e,T),(...T)=>o.call(t,...T));e.readFileWithCache=b,t.getSourceFile=m,e.cache={originalReadFile:s,originalFileExists:l,originalDirectoryExists:u,originalCreateDirectory:p,originalWriteFile:g,originalReadFileWithCache:i,originalGetSourceFile:o}}function jce(e){if(!e.cache)return;let{cache:t,host:r,compilerHost:i,extendedConfigCache:o,moduleResolutionCache:s,typeReferenceDirectiveResolutionCache:l,libraryResolutionCache:u}=e;r.readFile=t.originalReadFile,r.fileExists=t.originalFileExists,r.directoryExists=t.originalDirectoryExists,r.createDirectory=t.originalCreateDirectory,r.writeFile=t.originalWriteFile,i.getSourceFile=t.originalGetSourceFile,e.readFileWithCache=t.originalReadFileWithCache,o.clear(),s?.clear(),l?.clear(),u?.clear(),e.cache=void 0}function Exe(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function Sxe({projectPendingBuild:e},t,r){let i=e.get(t);(i===void 0||ie.projectPendingBuild.set(z_(e,i),0)),t&&t.throwIfCancellationRequested()}function Axe(e,t){return e.projectPendingBuild.delete(t),e.diagnostics.has(t)?1:0}function dUe(e,t,r,i,o){let s=!0;return{kind:2,project:t,projectPath:r,buildOrder:o,getCompilerOptions:()=>i.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{Mxe(e,i,r),s=!1},done:()=>(s&&Mxe(e,i,r),nl("SolutionBuilder::Timestamps only updates"),Axe(e,r))}}function Ixe(e,t,r,i,o,s,l){let u=e===0?0:4,p,g,m;return e===0?{kind:e,project:r,projectPath:i,buildOrder:l,getCompilerOptions:()=>s.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>T(el),getProgram:()=>T(G=>G.getProgramOrUndefined()),getSourceFile:G=>T(ne=>ne.getSourceFile(G)),getSourceFiles:()=>I(G=>G.getSourceFiles()),getOptionsDiagnostics:G=>I(ne=>ne.getOptionsDiagnostics(G)),getGlobalDiagnostics:G=>I(ne=>ne.getGlobalDiagnostics(G)),getConfigFileParsingDiagnostics:()=>I(G=>G.getConfigFileParsingDiagnostics()),getSyntacticDiagnostics:(G,ne)=>I(he=>he.getSyntacticDiagnostics(G,ne)),getAllDependencies:G=>I(ne=>ne.getAllDependencies(G)),getSemanticDiagnostics:(G,ne)=>I(he=>he.getSemanticDiagnostics(G,ne)),getSemanticDiagnosticsOfNextAffectedFile:(G,ne)=>T(he=>he.getSemanticDiagnosticsOfNextAffectedFile&&he.getSemanticDiagnosticsOfNextAffectedFile(G,ne)),emit:(G,ne,he,ye,$)=>{if(G||ye)return T(Y=>{var oe,fe;return Y.emit(G,ne,he,ye,$||((fe=(oe=t.host).getCustomTransformers)==null?void 0:fe.call(oe,r)))});if(ue(2,he),u===5)return K(ne,he);if(u===3)return H(ne,he,$)},done:b}:{kind:e,project:r,projectPath:i,buildOrder:l,getCompilerOptions:()=>s.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),emit:(G,ne)=>u!==4?m:V(G,ne),done:b};function b(G,ne,he){return ue(8,G,ne,he),nl(e===0?"SolutionBuilder::Projects built":"SolutionBuilder::Bundles updated"),Axe(t,i)}function T(G){return ue(0),p&&G(p)}function I(G){return T(G)||et}function R(){var G,ne,he;if(C.assert(p===void 0),t.options.dry){xd(t,f.A_non_dry_build_would_build_project_0,r),g=1,u=7;return}if(t.options.verbose&&xd(t,f.Building_project_0,r),s.fileNames.length===0){tP(t,i,XS(s)),g=0,u=7;return}let{host:ye,compilerHost:$}=t;if(t.projectCompilerOptions=s.options,(G=t.moduleResolutionCache)==null||G.update(s.options),(ne=t.typeReferenceDirectiveResolutionCache)==null||ne.update(s.options),p=ye.createProgram(s.fileNames,s.options,$,fUe(t,i,s),XS(s),s.projectReferences),t.watch){let Y=(he=t.moduleResolutionCache)==null?void 0:he.getPackageJsonInfoCache().getInternalMap();t.lastCachedPackageJsonLookups.set(i,Y&&new Set(Vo(Y.values(),oe=>t.host.realpath&&(L5(oe)||oe.directoryExists)?t.host.realpath(Zr(oe.packageDirectory,"package.json")):Zr(oe.packageDirectory,"package.json")))),t.builderPrograms.set(i,p)}u++}function M(G,ne,he){G.length?{buildResult:g,step:u}=qce(t,i,p,s,G,ne,he):u++}function N(G){C.assertIsDefined(p),M([...p.getConfigFileParsingDiagnostics(),...p.getOptionsDiagnostics(G),...p.getGlobalDiagnostics(G),...p.getSyntacticDiagnostics(void 0,G)],8,"Syntactic")}function O(G){M(C.checkDefined(p).getSemanticDiagnostics(void 0,G),16,"Semantic")}function H(G,ne,he){var ye,$,Y;C.assertIsDefined(p),C.assert(u===3);let oe=p.saveEmitState(),fe,Ne=je=>(fe||(fe=[])).push(je),me=[],{emitResult:ie}=NF(p,Ne,void 0,void 0,(je,at,Bt,yt,Qe,gt)=>me.push({name:je,text:at,writeByteOrderMark:Bt,data:gt}),ne,!1,he||(($=(ye=t.host).getCustomTransformers)==null?void 0:$.call(ye,r)));if(fe)return p.restoreEmitState(oe),{buildResult:g,step:u}=qce(t,i,p,s,fe,32,"Declaration file"),{emitSkipped:!0,diagnostics:ie.diagnostics};let{host:ve,compilerHost:Le}=t,He=(Y=p.hasChangedEmitSignature)!=null&&Y.call(p)?0:2,Ee=vR(),Ce=new Map,Me=p.getCompilerOptions(),Fe=dN(Me),At,Se;return me.forEach(({name:je,text:at,writeByteOrderMark:Bt,data:yt})=>{let Qe=Nf(t,je);Ce.set(Nf(t,je),je),yt?.buildInfo&&Kce(t,yt.buildInfo,i,Me,He);let gt=yt?.differsOnlyInMap?bA(t.host,je):void 0;FC(G?{writeFile:G}:Le,Ee,je,at,Bt),yt?.differsOnlyInMap?t.host.setModifiedTime(je,gt):!Fe&&t.watch&&(At||(At=Jce(t,i))).set(Qe,Se||(Se=Uw(t.host)))}),Z(Ee,Ce,me.length?me[0].name:pJ(s,!ve.useCaseSensitiveFileNames()),He),ie}function K(G,ne){C.assertIsDefined(p),C.assert(u===5);let he=p.emitBuildInfo((ye,$,Y,oe,fe,Ne)=>{Ne?.buildInfo&&Kce(t,Ne.buildInfo,i,p.getCompilerOptions(),2),G?G(ye,$,Y,oe,fe,Ne):t.compilerHost.writeFile(ye,$,Y,oe,fe,Ne)},ne);return he.diagnostics.length&&(WF(t,he.diagnostics),t.diagnostics.set(i,[...t.diagnostics.get(i),...he.diagnostics]),g=64&g),he.emittedFiles&&t.write&&he.emittedFiles.forEach(ye=>Dxe(t,s,ye)),Hce(t,p,s),u=7,he}function Z(G,ne,he,ye){let $=G.getDiagnostics();return $.length?({buildResult:g,step:u}=qce(t,i,p,s,$,64,"Emit"),$):(t.write&&ne.forEach(Y=>Dxe(t,s,Y)),Pxe(t,s,i,f.Updating_unchanged_output_timestamps_of_project_0,ne),t.diagnostics.delete(i),t.projectStatus.set(i,{type:1,oldestOutputFileName:he}),Hce(t,p,s),u=7,g=ye,$)}function V(G,ne){var he,ye,$,Y;if(C.assert(e===1),t.options.dry){xd(t,f.A_non_dry_build_would_update_output_of_project_0,r),g=1,u=7;return}t.options.verbose&&xd(t,f.Updating_output_of_project_0,r);let{compilerHost:oe}=t;t.projectCompilerOptions=s.options,(ye=(he=t.host).beforeEmitBundle)==null||ye.call(he,s);let fe=nce(s,oe,He=>{let Ee=eP(t,He.path);return AI(t,Ee,z_(t,Ee))},ne||((Y=($=t.host).getCustomTransformers)==null?void 0:Y.call($,r)));if(wo(fe))return xd(t,f.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,r,cu(t,fe)),u=6,m=Ixe(0,t,r,i,o,s,l);C.assert(!!fe.length);let Ne=vR(),me=new Map,ie=2,ve=t.buildInfoCache.get(i).buildInfo||void 0;return fe.forEach(({name:He,text:Ee,writeByteOrderMark:Ce,data:Me})=>{var Fe,At;me.set(Nf(t,He),He),Me?.buildInfo&&(((Fe=Me.buildInfo.program)==null?void 0:Fe.outSignature)!==((At=ve?.program)==null?void 0:At.outSignature)&&(ie&=-3),Kce(t,Me.buildInfo,i,s.options,ie)),FC(G?{writeFile:G}:oe,Ne,He,Ee,Ce)}),{emitSkipped:!1,diagnostics:Z(Ne,me,fe[0].name,ie)}}function ue(G,ne,he,ye){for(;u<=G&&u<8;){let $=u;switch(u){case 0:R();break;case 1:N(ne);break;case 2:O(ne);break;case 3:H(he,ne,ye);break;case 5:K(he,ne);break;case 4:V(he,ye);break;case 6:C.checkDefined(m).done(ne,he,ye),u=8;break;case 7:gUe(t,r,i,o,s,l,C.checkDefined(g)),u++;break;case 8:default:}C.assert(u>$)}}}function pUe({options:e},t,r){return t.type!==3||e.force?!0:r.fileNames.length===0||!!XS(r).length||!dN(r.options)}function xxe(e,t,r){if(!e.projectPendingBuild.size||TI(t))return;let{options:i,projectPendingBuild:o}=e;for(let s=0;s{let I=C.checkDefined(e.filesWatched.get(u));C.assert(uK(I)),I.modifiedTime=T,I.callbacks.forEach(R=>R(m,b,T))},i,o,s,l);e.filesWatched.set(u,{callbacks:[r],watcher:g,modifiedTime:p})}return{close:()=>{let g=C.checkDefined(e.filesWatched.get(u));C.assert(uK(g)),g.callbacks.length===1?(e.filesWatched.delete(u),Cf(g)):vA(g.callbacks,r)}}}function Jce(e,t){if(!e.watch)return;let r=e.outputTimeStamps.get(t);return r||e.outputTimeStamps.set(t,r=new Map),r}function Kce(e,t,r,i,o){let s=Kv(i),l=Xce(e,s,r),u=Uw(e.host);l?(l.buildInfo=t,l.modifiedTime=u,o&2||(l.latestChangedDtsTime=u)):e.buildInfoCache.set(r,{path:Nf(e,s),buildInfo:t,modifiedTime:u,latestChangedDtsTime:o&2?void 0:u})}function Xce(e,t,r){let i=Nf(e,t),o=e.buildInfoCache.get(r);return o?.path===i?o:void 0}function Nxe(e,t,r,i){let o=Nf(e,t),s=e.buildInfoCache.get(r);if(s!==void 0&&s.path===o)return s.buildInfo||void 0;let l=e.readFileWithCache(t),u=l?cF(t,l):void 0;return e.buildInfoCache.set(r,{path:o,buildInfo:u||!1,modifiedTime:i||kp}),u}function Yce(e,t,r,i){let o=Cxe(e,t);if(rN&&(M=$,N=Y),I&&H.add(Nf(e,$))}if(I){R||(R=jJ(I,g,p));for(let $ of R.roots)if(!H.has($))return{type:10,buildInfoFile:g,inputFile:$}}if(!g){let $=sF(t,!p.useCaseSensitiveFileNames()),Y=Jce(e,r);for(let oe of $){let fe=Nf(e,oe),Ne=Y?.get(fe);if(Ne||(Ne=bA(e.host,oe),Y?.set(fe,Ne)),Ne===kp)return{type:4,missingOutputFileName:oe};if(NeYce(e,$,b,m));if(ne)return ne;let he=e.lastCachedPackageJsonLookups.get(r),ye=he&&mh(he,$=>Yce(e,$,b,m));return ye||(V&&Z?{type:3,outOfDateOutputFileName:m,newerProjectName:ue}:{type:Z?2:O?15:1,newestInputFileTime:N,newestInputFileName:M,oldestOutputFileName:m})}function _Ue(e,t,r){return e.buildInfoCache.get(r).path===t.path}function $ce(e,t,r){if(t===void 0)return{type:0,reason:"File deleted mid-build"};let i=e.projectStatus.get(r);if(i!==void 0)return i;nl("SolutionBuilder::beforeUpToDateCheck");let o=mUe(e,t,r);return nl("SolutionBuilder::afterUpToDateCheck"),Yp("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(r,o),o}function Pxe(e,t,r,i,o){if(t.options.noEmit)return;let s,l=Kv(t.options);if(l){o?.has(Nf(e,l))||(e.options.verbose&&xd(e,i,t.options.configFilePath),e.host.setModifiedTime(l,s=Uw(e.host)),Xce(e,l,r).modifiedTime=s),e.outputTimeStamps.delete(r);return}let{host:u}=e,p=sF(t,!u.useCaseSensitiveFileNames()),g=Jce(e,r),m=g?new Set:void 0;if(!o||p.length!==o.size){let b=!!e.options.verbose;for(let T of p){let I=Nf(e,T);o?.has(I)||(b&&(b=!1,xd(e,i,t.options.configFilePath)),u.setModifiedTime(T,s||(s=Uw(e.host))),g&&(g.set(I,s),m.add(I)))}}g?.forEach((b,T)=>{!o?.has(T)&&!m.has(T)&&g.delete(T)})}function hUe(e,t,r){if(!t.composite)return;let i=C.checkDefined(e.buildInfoCache.get(r));if(i.latestChangedDtsTime!==void 0)return i.latestChangedDtsTime||void 0;let o=i.buildInfo&&i.buildInfo.program&&i.buildInfo.program.latestChangedDtsFile?e.host.getModifiedTime(bo(i.buildInfo.program.latestChangedDtsFile,li(i.path))):void 0;return i.latestChangedDtsTime=o||!1,o}function Mxe(e,t,r){if(e.options.dry)return xd(e,f.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);Pxe(e,t,r,f.Updating_output_timestamps_of_project_0),e.projectStatus.set(r,{type:1,oldestOutputFileName:pJ(t,!e.host.useCaseSensitiveFileNames())})}function gUe(e,t,r,i,o,s,l){if(!(l&124)&&o.options.composite)for(let u=i+1;ue.diagnostics.has(z_(e,g)))?p?2:1:0}function kxe(e,t,r){nl("SolutionBuilder::beforeClean");let i=yUe(e,t,r);return nl("SolutionBuilder::afterClean"),Yp("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),i}function yUe(e,t,r){let i=yxe(e,t,r);if(!i)return 3;if(TI(i))return WF(e,i.circularDiagnostics),4;let{options:o,host:s}=e,l=o.dry?[]:void 0;for(let u of i){let p=z_(e,u),g=AI(e,u,p);if(g===void 0){Bxe(e,p);continue}let m=sF(g,!s.useCaseSensitiveFileNames());if(!m.length)continue;let b=new Set(g.fileNames.map(T=>Nf(e,T)));for(let T of m)b.has(Nf(e,T))||s.fileExists(T)&&(l?l.push(T):(s.deleteFile(T),Qce(e,p,0)))}return l&&xd(e,f.A_non_dry_build_would_delete_the_following_files_Colon_0,l.map(u=>`\r + * ${u}`).join("")),0}function Qce(e,t,r){e.host.getParsedCommandLine&&r===1&&(r=2),r===2&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,Exe(e,t),Sxe(e,t,r),bxe(e)}function FF(e,t,r){e.reportFileChangeDetected=!0,Qce(e,t,r),wxe(e,250,!0)}function wxe(e,t,r){let{hostWithWatch:i}=e;!i.setTimeout||!i.clearTimeout||(e.timerToBuildInvalidatedProject&&i.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=i.setTimeout(bUe,t,"timerToBuildInvalidatedProject",e,r))}function bUe(e,t,r){nl("SolutionBuilder::beforeBuild");let i=EUe(t,r);nl("SolutionBuilder::afterBuild"),Yp("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),i&&Gxe(t,i)}function EUe(e,t){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),tue(e,f.File_change_detected_Starting_incremental_compilation));let r=0,i=OF(e),o=Uce(e,i,!1);if(o)for(o.done(),r++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;let s=xxe(e,i,!1);if(!s)break;if(s.kind!==2&&(t||r===5)){wxe(e,100,!1);return}Rxe(e,s,i).done(),s.kind!==2&&r++}return jce(e),i}function Oxe(e,t,r,i){!e.watch||e.allWatchedConfigFiles.has(r)||e.allWatchedConfigFiles.set(r,dK(e,t,()=>FF(e,r,2),2e3,i?.watchOptions,kc.ConfigFile,t))}function Fxe(e,t,r){pF(t,r?.options,e.allWatchedExtendedConfigFiles,(i,o)=>dK(e,i,()=>{var s;return(s=e.allWatchedExtendedConfigFiles.get(o))==null?void 0:s.projects.forEach(l=>FF(e,l,2))},2e3,r?.watchOptions,kc.ExtendedConfigFile),i=>Nf(e,i))}function Wxe(e,t,r,i){e.watch&&kw(Gce(e.allWatchedWildcardDirectories,r),i.wildcardDirectories,(o,s)=>e.watchDirectory(o,l=>{var u;ww({watchedDirPath:Nf(e,o),fileOrDirectory:l,fileOrDirectoryPath:Nf(e,l),configFileName:t,currentDirectory:e.compilerHost.getCurrentDirectory(),options:i.options,program:e.builderPrograms.get(r)||((u=cUe(e,r))==null?void 0:u.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:p=>e.writeLog(p),toPath:p=>Nf(e,p)})||FF(e,r,1)},s,i?.watchOptions,kc.WildcardDirectory,t))}function Zce(e,t,r,i){e.watch&&KC(Gce(e.allWatchedInputFiles,r),new Set(i.fileNames),{createNewValue:o=>dK(e,o,()=>FF(e,r,0),250,i?.watchOptions,kc.SourceFile,t),onDeleteValue:$m})}function eue(e,t,r,i){!e.watch||!e.lastCachedPackageJsonLookups||KC(Gce(e.allWatchedPackageJsonFiles,r),e.lastCachedPackageJsonLookups.get(r),{createNewValue:o=>dK(e,o,()=>FF(e,r,0),2e3,i?.watchOptions,kc.PackageJson,t),onDeleteValue:$m})}function SUe(e,t){if(e.watchAllProjectsPending){nl("SolutionBuilder::beforeWatcherCreation"),e.watchAllProjectsPending=!1;for(let r of wF(t)){let i=z_(e,r),o=AI(e,r,i);Oxe(e,r,i,o),Fxe(e,i,o),o&&(Wxe(e,r,i,o),Zce(e,r,i,o),eue(e,r,i,o))}nl("SolutionBuilder::afterWatcherCreation"),Yp("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}function TUe(e){ep(e.allWatchedConfigFiles,$m),ep(e.allWatchedExtendedConfigFiles,Cf),ep(e.allWatchedWildcardDirectories,t=>ep(t,Cf)),ep(e.allWatchedInputFiles,t=>ep(t,$m)),ep(e.allWatchedPackageJsonFiles,t=>ep(t,$m))}function zxe(e,t,r,i,o){let s=lUe(e,t,r,i,o);return{build:(l,u,p,g)=>Lxe(s,l,u,p,g),clean:l=>kxe(s,l),buildReferences:(l,u,p,g)=>Lxe(s,l,u,p,g,!0),cleanReferences:l=>kxe(s,l,!0),getNextInvalidatedProject:l=>(Txe(s,l),Uce(s,OF(s),!1)),getBuildOrder:()=>OF(s),getUpToDateStatusOfProject:l=>{let u=eP(s,l),p=z_(s,u);return $ce(s,AI(s,u,p),p)},invalidateProject:(l,u)=>Qce(s,l,u||0),close:()=>TUe(s)}}function cu(e,t){return iC(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function xd(e,t,...r){e.host.reportSolutionBuilderStatus(Vl(t,...r))}function tue(e,t,...r){var i,o;(o=(i=e.hostWithWatch).onWatchStatusChange)==null||o.call(i,Vl(t,...r),e.host.getNewLine(),e.baseCompilerOptions)}function WF({host:e},t){t.forEach(r=>e.reportDiagnostic(r))}function tP(e,t,r){WF(e,r),e.projectErrorsReported.set(t,!0),r.length&&e.diagnostics.set(t,r)}function Bxe(e,t){tP(e,t,[e.configFileCache.get(t)])}function Gxe(e,t){if(!e.needsSummary)return;e.needsSummary=!1;let r=e.watch||!!e.host.reportErrorSummary,{diagnostics:i}=e,o=0,s=[];TI(t)?(Vxe(e,t.buildOrder),WF(e,t.circularDiagnostics),r&&(o+=DF(t.circularDiagnostics)),r&&(s=[...s,...CF(t.circularDiagnostics)])):(t.forEach(l=>{let u=z_(e,l);e.projectErrorsReported.has(u)||WF(e,i.get(u)||et)}),r&&i.forEach(l=>o+=DF(l)),r&&i.forEach(l=>[...s,...CF(l)])),e.watch?tue(e,YJ(o),o):e.host.reportErrorSummary&&e.host.reportErrorSummary(o,s)}function Vxe(e,t){e.options.verbose&&xd(e,f.Projects_in_this_build_Colon_0,t.map(r=>`\r + * `+cu(e,r)).join(""))}function AUe(e,t,r){switch(r.type){case 6:return xd(e,f.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,cu(e,t),cu(e,r.outOfDateOutputFileName),cu(e,r.newerInputFileName));case 7:return xd(e,f.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,cu(e,t),cu(e,r.outOfDateOutputFileName),cu(e,r.newerProjectName));case 4:return xd(e,f.Project_0_is_out_of_date_because_output_file_1_does_not_exist,cu(e,t),cu(e,r.missingOutputFileName));case 5:return xd(e,f.Project_0_is_out_of_date_because_there_was_error_reading_file_1,cu(e,t),cu(e,r.fileName));case 8:return xd(e,f.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,cu(e,t),cu(e,r.buildInfoFile));case 9:return xd(e,f.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,cu(e,t),cu(e,r.buildInfoFile));case 10:return xd(e,f.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,cu(e,t),cu(e,r.buildInfoFile),cu(e,r.inputFile));case 1:if(r.newestInputFileTime!==void 0)return xd(e,f.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,cu(e,t),cu(e,r.newestInputFileName||""),cu(e,r.oldestOutputFileName||""));break;case 3:return xd(e,f.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,cu(e,t),cu(e,r.newerProjectName));case 2:return xd(e,f.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,cu(e,t));case 15:return xd(e,f.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,cu(e,t));case 11:return xd(e,f.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,cu(e,t),cu(e,r.upstreamProjectName));case 12:return xd(e,r.upstreamProjectBlocked?f.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:f.Project_0_can_t_be_built_because_its_dependency_1_has_errors,cu(e,t),cu(e,r.upstreamProjectName));case 0:return xd(e,f.Failed_to_parse_file_0_Colon_1,cu(e,t),r.reason);case 14:return xd(e,f.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,cu(e,t),r.version,Te);case 17:return xd(e,f.Project_0_is_being_forcibly_rebuilt,cu(e,t));case 16:case 13:break;default:}}function pK(e,t,r){e.options.verbose&&AUe(e,t,r)}var jxe,Uxe,fK,IUe=A({"src/compiler/tsbuildPublic.ts"(){"use strict";ia(),oS(),jxe=new Date(-864e13),Uxe=new Date(864e13),fK=(e=>(e[e.Build=0]="Build",e[e.UpdateBundle=1]="UpdateBundle",e[e.UpdateOutputFileStamps=2]="UpdateOutputFileStamps",e))(fK||{})}}),ia=A({"src/compiler/_namespaces/ts.ts"(){"use strict";nt(),OWe(),FWe(),JWe(),YWe(),$We(),l9e(),d1e(),g9e(),S9e(),T9e(),D9e(),k9e(),Mze(),Lze(),kze(),wze(),Vze(),jze(),Uze(),Hze(),vBe(),yBe(),CBe(),JBe(),yGe(),IGe(),xGe(),BGe(),qGe(),eVe(),sVe(),bVe(),EVe(),NVe(),PVe(),MVe(),zVe(),BVe(),GVe(),VVe(),jVe(),UVe(),HVe(),qVe(),JVe(),YVe(),$Ve(),QVe(),ZVe(),eje(),nje(),rje(),ije(),oje(),aje(),sje(),fje(),yje(),Cje(),Pje(),wje(),Oje(),Fje(),Yje(),$je(),eUe(),rUe(),iUe(),oUe(),IUe(),ile(),oS()}});function Hxe(e){return gu.args.includes(e)}function qxe(e){let t=gu.args.indexOf(e);return t>=0&&t{e.GlobalCacheLocation="--globalTypingsCacheLocation",e.LogFile="--logFile",e.EnableTelemetry="--enableTelemetry",e.TypingSafeListLocation="--typingSafeListLocation",e.TypesMapLocation="--typesMapLocation",e.NpmLocation="--npmLocation",e.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"})(_K||(_K={})),nue=` + `}}),RUe=A({"src/jsTyping/types.ts"(){"use strict"}}),VF=A({"src/jsTyping/_namespaces/ts.server.ts"(){"use strict";xUe(),RUe()}});function Kxe(e,t){return new vm(C8(t,`ts${_e}`)||C8(t,"latest")).compareTo(e.version)<=0}function Xxe(e){return sue.has(e)?"node":e}function DUe(e,t){let r=aw(t,i=>e.readFile(i));return new Map(Object.entries(r.config))}function CUe(e,t){var r;let i=aw(t,o=>e.readFile(o));if((r=i.config)!=null&&r.simpleMap)return new Map(Object.entries(i.config.simpleMap))}function NUe(e,t,r,i,o,s,l,u,p,g){if(!l||!l.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};let m=new Map;r=Vi(r,Z=>{let V=va(Z);if(W1(V))return V});let b=[];l.include&&O(l.include,"Explicitly included types");let T=l.exclude||[];if(!g.types){let Z=new Set(r.map(li));Z.add(i),Z.forEach(V=>{H(V,"bower.json","bower_components",b),H(V,"package.json","node_modules",b)})}if(l.disableFilenameBasedTypeAcquisition||K(r),u){let Z=h1(u.map(Xxe),rS,ju);O(Z,"Inferred typings from unresolved imports")}for(let Z of T)m.delete(Z)&&t&&t(`Typing for ${Z} is in exclude list, will be ignored.`);s.forEach((Z,V)=>{let ue=p.get(V);m.get(V)===!1&&ue!==void 0&&Kxe(Z,ue)&&m.set(V,Z.typingLocation)});let I=[],R=[];m.forEach((Z,V)=>{Z?R.push(Z):I.push(V)});let M={cachedTypingPaths:R,newTypingNames:I,filesToWatch:b};return t&&t(`Finished typings discovery:${D0(M)}`),M;function N(Z){m.has(Z)||m.set(Z,!1)}function O(Z,V){t&&t(`${V}: ${JSON.stringify(Z)}`),Ke(Z,N)}function H(Z,V,ue,G){let ne=Zr(Z,V),he,ye;e.fileExists(ne)&&(G.push(ne),he=aw(ne,fe=>e.readFile(fe)).config,ye=Zi([he.dependencies,he.devDependencies,he.optionalDependencies,he.peerDependencies],Jh),O(ye,`Typing names in '${ne}' dependencies`));let $=Zr(Z,ue);if(G.push($),!e.directoryExists($))return;let Y=[],oe=ye?ye.map(fe=>Zr($,fe,V)):e.readDirectory($,[".json"],void 0,void 0,3).filter(fe=>{if(rc(fe)!==V)return!1;let Ne=Wc(va(fe)),me=Ne[Ne.length-3][0]==="@";return me&&lh(Ne[Ne.length-4])===ue||!me&&lh(Ne[Ne.length-3])===ue});t&&t(`Searching for typing names in ${$}; all files: ${JSON.stringify(oe)}`);for(let fe of oe){let Ne=va(fe),ie=aw(Ne,Le=>e.readFile(Le)).config;if(!ie.name)continue;let ve=ie.types||ie.typings;if(ve){let Le=bo(ve,li(Ne));e.fileExists(Le)?(t&&t(` Package '${ie.name}' provides its own types.`),m.set(ie.name,Le)):t&&t(` Package '${ie.name}' provides its own types but they are missing.`)}else Y.push(ie.name)}O(Y," Found package names")}function K(Z){let V=Vi(Z,G=>{if(!W1(G))return;let ne=Td(lh(rc(G))),he=lG(ne);return o.get(he)});V.length&&O(V,"Inferred typings from file names"),Et(Z,G=>Tl(G,".jsx"))&&(t&&t("Inferred 'react' typings due to presence of '.jsx' extension"),N("react"))}}function PUe(e){return rue(e,!0)}function rue(e,t){if(!e)return 1;if(e.length>cue)return 2;if(e.charCodeAt(0)===46)return 3;if(e.charCodeAt(0)===95)return 4;if(t){let r=/^@([^/]+)\/([^/]+)$/.exec(e);if(r){let i=rue(r[1],!1);if(i!==0)return{name:r[1],isScopeName:!0,result:i};let o=rue(r[2],!1);return o!==0?{name:r[2],isScopeName:!1,result:o}:0}}return encodeURIComponent(e)!==e?5:0}function MUe(e,t){return typeof e=="object"?Yxe(t,e.result,e.name,e.isScopeName):Yxe(t,e,t,!1)}function Yxe(e,t,r,i){let o=i?"Scope":"Package";switch(t){case 1:return`'${e}':: ${o} name '${r}' cannot be empty`;case 2:return`'${e}':: ${o} name '${r}' should be less than ${cue} characters`;case 3:return`'${e}':: ${o} name '${r}' cannot start with '.'`;case 4:return`'${e}':: ${o} name '${r}' cannot start with '_'`;case 5:return`'${e}':: ${o} name '${r}' contains non URI safe characters`;case 0:return C.fail();default:C.assertNever(t)}}var iue,oue,aue,sue,lue,cue,LUe=A({"src/jsTyping/jsTyping.ts"(){"use strict";Kw(),VF(),iue=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","https","http2","inspector","module","net","os","path","perf_hooks","process","punycode","querystring","readline","repl","stream","stream/promises","string_decoder","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"],oue=iue.map(e=>`node:${e}`),aue=[...iue,...oue],sue=new Set(aue),lue=(e=>(e[e.Ok=0]="Ok",e[e.EmptyName=1]="EmptyName",e[e.NameTooLong=2]="NameTooLong",e[e.NameStartsWithDot=3]="NameStartsWithDot",e[e.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",e[e.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters",e))(lue||{}),cue=214}}),B_={};X(B_,{NameValidationResult:()=>lue,discoverTypings:()=>NUe,isTypingUpToDate:()=>Kxe,loadSafeList:()=>DUe,loadTypesMap:()=>CUe,nodeCoreModuleList:()=>aue,nodeCoreModules:()=>sue,nonRelativeModuleNameForTypingCache:()=>Xxe,prefixedNodeCoreModuleList:()=>oue,renderPackageNameValidationFailure:()=>MUe,validatePackageName:()=>PUe});var kUe=A({"src/jsTyping/_namespaces/ts.JsTyping.ts"(){"use strict";LUe()}}),Kw=A({"src/jsTyping/_namespaces/ts.ts"(){"use strict";ia(),kUe(),VF()}});function jF(e){return{indentSize:4,tabSize:4,newLineCharacter:e||` +`,convertTabsToSpaces:!0,indentStyle:2,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1,semicolons:"ignore",trimTrailingWhitespace:!0,indentSwitchCase:!0}}var UF,hK,gK,vK,Pf,yK,bK,EK,SK,TK,AK,IK,uue,Xw,xK,RK,DK,CK,NK,PK,MK,LK,kK,wUe=A({"src/services/types.ts"(){"use strict";(e=>{class t{constructor(o){this.text=o}getText(o,s){return o===0&&s===this.text.length?this.text:this.text.substring(o,s)}getLength(){return this.text.length}getChangeRange(){}}function r(i){return new t(i)}e.fromString=r})(UF||(UF={})),hK=(e=>(e[e.Dependencies=1]="Dependencies",e[e.DevDependencies=2]="DevDependencies",e[e.PeerDependencies=4]="PeerDependencies",e[e.OptionalDependencies=8]="OptionalDependencies",e[e.All=15]="All",e))(hK||{}),gK=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto",e))(gK||{}),vK=(e=>(e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic",e))(vK||{}),Pf={},yK=(e=>(e.Original="original",e.TwentyTwenty="2020",e))(yK||{}),bK=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(bK||{}),EK=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(EK||{}),SK=(e=>(e.Type="Type",e.Parameter="Parameter",e.Enum="Enum",e))(SK||{}),TK=(e=>(e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference",e))(TK||{}),AK=(e=>(e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart",e))(AK||{}),IK=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(IK||{}),uue=jF(` +`),Xw=(e=>(e[e.aliasName=0]="aliasName",e[e.className=1]="className",e[e.enumName=2]="enumName",e[e.fieldName=3]="fieldName",e[e.interfaceName=4]="interfaceName",e[e.keyword=5]="keyword",e[e.lineBreak=6]="lineBreak",e[e.numericLiteral=7]="numericLiteral",e[e.stringLiteral=8]="stringLiteral",e[e.localName=9]="localName",e[e.methodName=10]="methodName",e[e.moduleName=11]="moduleName",e[e.operator=12]="operator",e[e.parameterName=13]="parameterName",e[e.propertyName=14]="propertyName",e[e.punctuation=15]="punctuation",e[e.space=16]="space",e[e.text=17]="text",e[e.typeParameterName=18]="typeParameterName",e[e.enumMemberName=19]="enumMemberName",e[e.functionName=20]="functionName",e[e.regularExpressionLiteral=21]="regularExpressionLiteral",e[e.link=22]="link",e[e.linkName=23]="linkName",e[e.linkText=24]="linkText",e))(Xw||{}),xK=(e=>(e[e.None=0]="None",e[e.MayIncludeAutoImports=1]="MayIncludeAutoImports",e[e.IsImportStatementCompletion=2]="IsImportStatementCompletion",e[e.IsContinuation=4]="IsContinuation",e[e.ResolvedModuleSpecifiers=8]="ResolvedModuleSpecifiers",e[e.ResolvedModuleSpecifiersBeyondLimit=16]="ResolvedModuleSpecifiersBeyondLimit",e[e.MayIncludeMethodSnippets=32]="MayIncludeMethodSnippets",e))(xK||{}),RK=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))(RK||{}),DK=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(DK||{}),CK=(e=>(e[e.None=0]="None",e[e.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",e[e.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",e[e.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",e[e.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",e[e.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",e[e.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition",e))(CK||{}),NK=(e=>(e[e.Punctuation=0]="Punctuation",e[e.Keyword=1]="Keyword",e[e.Operator=2]="Operator",e[e.Comment=3]="Comment",e[e.Whitespace=4]="Whitespace",e[e.Identifier=5]="Identifier",e[e.NumberLiteral=6]="NumberLiteral",e[e.BigIntLiteral=7]="BigIntLiteral",e[e.StringLiteral=8]="StringLiteral",e[e.RegExpLiteral=9]="RegExpLiteral",e))(NK||{}),PK=(e=>(e.unknown="",e.warning="warning",e.keyword="keyword",e.scriptElement="script",e.moduleElement="module",e.classElement="class",e.localClassElement="local class",e.interfaceElement="interface",e.typeElement="type",e.enumElement="enum",e.enumMemberElement="enum member",e.variableElement="var",e.localVariableElement="local var",e.variableUsingElement="using",e.variableAwaitUsingElement="await using",e.functionElement="function",e.localFunctionElement="local function",e.memberFunctionElement="method",e.memberGetAccessorElement="getter",e.memberSetAccessorElement="setter",e.memberVariableElement="property",e.memberAccessorVariableElement="accessor",e.constructorImplementationElement="constructor",e.callSignatureElement="call",e.indexSignatureElement="index",e.constructSignatureElement="construct",e.parameterElement="parameter",e.typeParameterElement="type parameter",e.primitiveType="primitive type",e.label="label",e.alias="alias",e.constElement="const",e.letElement="let",e.directory="directory",e.externalModuleName="external module name",e.jsxAttribute="JSX attribute",e.string="string",e.link="link",e.linkName="link name",e.linkText="link text",e))(PK||{}),MK=(e=>(e.none="",e.publicMemberModifier="public",e.privateMemberModifier="private",e.protectedMemberModifier="protected",e.exportedModifier="export",e.ambientModifier="declare",e.staticModifier="static",e.abstractModifier="abstract",e.optionalModifier="optional",e.deprecatedModifier="deprecated",e.dtsModifier=".d.ts",e.tsModifier=".ts",e.tsxModifier=".tsx",e.jsModifier=".js",e.jsxModifier=".jsx",e.jsonModifier=".json",e.dmtsModifier=".d.mts",e.mtsModifier=".mts",e.mjsModifier=".mjs",e.dctsModifier=".d.cts",e.ctsModifier=".cts",e.cjsModifier=".cjs",e))(MK||{}),LK=(e=>(e.comment="comment",e.identifier="identifier",e.keyword="keyword",e.numericLiteral="number",e.bigintLiteral="bigint",e.operator="operator",e.stringLiteral="string",e.whiteSpace="whitespace",e.text="text",e.punctuation="punctuation",e.className="class name",e.enumName="enum name",e.interfaceName="interface name",e.moduleName="module name",e.typeParameterName="type parameter name",e.typeAliasName="type alias name",e.parameterName="parameter name",e.docCommentTagName="doc comment tag name",e.jsxOpenTagName="jsx open tag name",e.jsxCloseTagName="jsx close tag name",e.jsxSelfClosingTagName="jsx self closing tag name",e.jsxAttribute="jsx attribute",e.jsxText="jsx text",e.jsxAttributeStringLiteralValue="jsx attribute string literal value",e))(LK||{}),kK=(e=>(e[e.comment=1]="comment",e[e.identifier=2]="identifier",e[e.keyword=3]="keyword",e[e.numericLiteral=4]="numericLiteral",e[e.operator=5]="operator",e[e.stringLiteral=6]="stringLiteral",e[e.regularExpressionLiteral=7]="regularExpressionLiteral",e[e.whiteSpace=8]="whiteSpace",e[e.text=9]="text",e[e.punctuation=10]="punctuation",e[e.className=11]="className",e[e.enumName=12]="enumName",e[e.interfaceName=13]="interfaceName",e[e.moduleName=14]="moduleName",e[e.typeParameterName=15]="typeParameterName",e[e.typeAliasName=16]="typeAliasName",e[e.parameterName=17]="parameterName",e[e.docCommentTagName=18]="docCommentTagName",e[e.jsxOpenTagName=19]="jsxOpenTagName",e[e.jsxCloseTagName=20]="jsxCloseTagName",e[e.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",e[e.jsxAttribute=22]="jsxAttribute",e[e.jsxText=23]="jsxText",e[e.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",e[e.bigintLiteral=25]="bigintLiteral",e))(kK||{})}});function Yw(e){switch(e.kind){case 260:return cr(e)&&WV(e)?7:1;case 169:case 208:case 172:case 171:case 303:case 304:case 174:case 173:case 176:case 177:case 178:case 262:case 218:case 219:case 299:case 291:return 1;case 168:case 264:case 265:case 187:return 2;case 353:return e.name===void 0?3:2;case 306:case 263:return 3;case 267:return Lu(e)||qg(e)===1?5:4;case 266:case 275:case 276:case 271:case 272:case 277:case 278:return 7;case 312:return 5}return 7}function $S(e){e=JK(e);let t=e.parent;return e.kind===312?1:Ll(t)||Ju(t)||Th(t)||tp(t)||Eh(t)||tu(t)&&e===t.name?7:HF(e)?OUe(e):Wg(e)?Yw(t):Qd(e)&&zn(e,Xm(xN,CA,y0))?7:BUe(e)?2:FUe(e)?4:_l(t)?(C.assert(am(t.parent)),2):Yy(t)?3:1}function OUe(e){let t=e.kind===166?e:Ad(e.parent)&&e.parent.right===e?e.parent:void 0;return t&&t.parent.kind===271?7:4}function HF(e){for(;e.parent.kind===166;)e=e.parent;return sR(e.parent)&&e.parent.moduleReference===e}function FUe(e){return WUe(e)||zUe(e)}function WUe(e){let t=e,r=!0;if(t.parent.kind===166){for(;t.parent&&t.parent.kind===166;)t=t.parent;r=t.right===e}return t.parent.kind===183&&!r}function zUe(e){let t=e,r=!0;if(t.parent.kind===211){for(;t.parent&&t.parent.kind===211;)t=t.parent;r=t.name===e}if(!r&&t.parent.kind===233&&t.parent.parent.kind===298){let i=t.parent.parent.parent;return i.kind===263&&t.parent.parent.token===119||i.kind===264&&t.parent.parent.token===96}return!1}function BUe(e){switch(jC(e)&&(e=e.parent),e.kind){case 110:return!eg(e);case 197:return!0}switch(e.parent.kind){case 183:return!0;case 205:return!e.parent.isTypeOf;case 233:return Zh(e.parent)}return!1}function wK(e,t=!1,r=!1){return $w(e,la,FK,t,r)}function iP(e,t=!1,r=!1){return $w(e,H1,FK,t,r)}function OK(e,t=!1,r=!1){return $w(e,T_,FK,t,r)}function due(e,t=!1,r=!1){return $w(e,q1,GUe,t,r)}function pue(e,t=!1,r=!1){return $w(e,Eu,FK,t,r)}function fue(e,t=!1,r=!1){return $w(e,sd,VUe,t,r)}function FK(e){return e.expression}function GUe(e){return e.tag}function VUe(e){return e.tagName}function $w(e,t,r,i,o){let s=i?mue(e):qF(e);return o&&(s=Xl(s)),!!s&&!!s.parent&&t(s.parent)&&r(s.parent)===s}function qF(e){return _2(e)?e.parent:e}function mue(e){return _2(e)||GK(e)?e.parent:e}function JF(e,t){for(;e;){if(e.kind===256&&e.label.escapedText===t)return e.label;e=e.parent}}function Qw(e,t){return zr(e.expression)?e.expression.name.text===t:!1}function Zw(e){var t;return Ve(e)&&((t=ai(e.parent,fC))==null?void 0:t.label)===e}function WK(e){var t;return Ve(e)&&((t=ai(e.parent,J1))==null?void 0:t.label)===e}function zK(e){return WK(e)||Zw(e)}function BK(e){var t;return((t=ai(e.parent,Xx))==null?void 0:t.tagName)===e}function _ue(e){var t;return((t=ai(e.parent,Ad))==null?void 0:t.right)===e}function _2(e){var t;return((t=ai(e.parent,zr))==null?void 0:t.name)===e}function GK(e){var t;return((t=ai(e.parent,Ys))==null?void 0:t.argumentExpression)===e}function VK(e){var t;return((t=ai(e.parent,Jl))==null?void 0:t.name)===e}function jK(e){var t;return Ve(e)&&((t=ai(e.parent,ea))==null?void 0:t.name)===e}function KF(e){switch(e.parent.kind){case 172:case 171:case 303:case 306:case 174:case 173:case 177:case 178:case 267:return Oo(e.parent)===e;case 212:return e.parent.argumentExpression===e;case 167:return!0;case 201:return e.parent.parent.kind===199;default:return!1}}function hue(e){return l0(e.parent.parent)&&RC(e.parent.parent)===e}function QS(e){for(Qf(e)&&(e=e.parent.parent);;){if(e=e.parent,!e)return;switch(e.kind){case 312:case 174:case 173:case 262:case 218:case 177:case 178:case 263:case 264:case 266:case 267:return e}}}function sE(e){switch(e.kind){case 312:return ac(e)?"module":"script";case 267:return"module";case 263:case 231:return"class";case 264:return"interface";case 265:case 345:case 353:return"type";case 266:return"enum";case 260:return t(e);case 208:return t(D_(e));case 219:case 262:case 218:return"function";case 177:return"getter";case 178:return"setter";case 174:case 173:return"method";case 303:let{initializer:r}=e;return ea(r)?"method":"property";case 172:case 171:case 304:case 305:return"property";case 181:return"index";case 180:return"construct";case 179:return"call";case 176:case 175:return"constructor";case 168:return"type parameter";case 306:return"enum member";case 169:return ei(e,31)?"property":"parameter";case 271:case 276:case 281:case 274:case 280:return"alias";case 226:let i=Wl(e),{right:o}=e;switch(i){case 7:case 8:case 9:case 0:return"";case 1:case 2:let l=sE(o);return l===""?"const":l;case 3:return ws(o)?"method":"property";case 4:return"property";case 5:return ws(o)?"method":"property";case 6:return"local class";default:return""}case 80:return Eh(e.parent)?"alias":"";case 277:let s=sE(e.expression);return s===""?"const":s;default:return""}function t(r){return tR(r)?"const":U6(r)?"let":"var"}}function h2(e){switch(e.kind){case 110:return!0;case 80:return iU(e)&&e.parent.kind===169;default:return!1}}function sm(e,t){let r=Mg(t),i=t.getLineAndCharacterOfPosition(e).line;return r[i]}function of(e,t){return UK(e.pos,e.end,t)}function gue(e,t){return tO(e,t.pos)&&tO(e,t.end)}function eO(e,t){return e.pos<=t&&t<=e.end}function tO(e,t){return e.pos=r.end}function nO(e,t,r){return e.pos<=t&&e.end>=r}function oP(e,t,r){return YF(e.pos,e.end,t,r)}function XF(e,t,r,i){return YF(e.getStart(t),e.end,r,i)}function YF(e,t,r,i){let o=Math.max(e,r),s=Math.min(t,i);return oi.kind===t)}function $F(e){let t=vn(e.parent.getChildren(),r=>HR(r)&&of(r,e));return C.assert(!t||wr(t.getChildren(),e)),t}function $xe(e){return e.kind===90}function jUe(e){return e.kind===86}function UUe(e){return e.kind===100}function HUe(e){if(od(e))return e.name;if(Tc(e)){let t=e.modifiers&&vn(e.modifiers,$xe);if(t)return t}if(Zc(e)){let t=vn(e.getChildren(),jUe);if(t)return t}}function qUe(e){if(od(e))return e.name;if(Sc(e)){let t=vn(e.modifiers,$xe);if(t)return t}if(ws(e)){let t=vn(e.getChildren(),UUe);if(t)return t}}function JUe(e){let t;return zn(e,r=>(qi(r)&&(t=r),!Ad(r.parent)&&!qi(r.parent)&&!dS(r.parent))),t}function QF(e,t){if(e.flags&16777216)return;let r=gW(e,t);if(r)return r;let i=JUe(e);return i&&t.getTypeAtLocation(i)}function KUe(e,t){if(!t)switch(e.kind){case 263:case 231:return HUe(e);case 262:case 218:return qUe(e);case 176:return e}if(od(e))return e.name}function Qxe(e,t){if(e.importClause){if(e.importClause.name&&e.importClause.namedBindings)return;if(e.importClause.name)return e.importClause.name;if(e.importClause.namedBindings){if(jg(e.importClause.namedBindings)){let r=ah(e.importClause.namedBindings.elements);return r?r.name:void 0}else if(Zy(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!t)return e.moduleSpecifier}function Zxe(e,t){if(e.exportClause){if(Df(e.exportClause))return ah(e.exportClause.elements)?e.exportClause.elements[0].name:void 0;if(Sh(e.exportClause))return e.exportClause.name}if(!t)return e.moduleSpecifier}function XUe(e){if(e.types.length===1)return e.types[0].expression}function eRe(e,t){let{parent:r}=e;if(Ia(e)&&(t||e.kind!==90)?Cm(r)&&wr(r.modifiers,e):e.kind===86?Tc(r)||Zc(e):e.kind===100?Sc(r)||ws(e):e.kind===120?fd(r):e.kind===94?v0(r):e.kind===156?Dm(r):e.kind===145||e.kind===144?Jl(r):e.kind===102?tu(r):e.kind===139?Zp(r):e.kind===153&&vp(r)){let i=KUe(r,t);if(i)return i}if((e.kind===115||e.kind===87||e.kind===121)&&jc(r)&&r.declarations.length===1){let i=r.declarations[0];if(Ve(i.name))return i.name}if(e.kind===156){if(Eh(r)&&r.isTypeOnly){let i=Qxe(r.parent,t);if(i)return i}if(Kl(r)&&r.isTypeOnly){let i=Zxe(r,t);if(i)return i}}if(e.kind===130){if(tp(r)&&r.propertyName||Ju(r)&&r.propertyName||Zy(r)||Sh(r))return r.name;if(Kl(r)&&r.exportClause&&Sh(r.exportClause))return r.exportClause.name}if(e.kind===102&&Lc(r)){let i=Qxe(r,t);if(i)return i}if(e.kind===95){if(Kl(r)){let i=Zxe(r,t);if(i)return i}if(Ll(r))return Xl(r.expression)}if(e.kind===149&&Th(r))return r.expression;if(e.kind===161&&(Lc(r)||Kl(r))&&r.moduleSpecifier)return r.moduleSpecifier;if((e.kind===96||e.kind===119)&&ef(r)&&r.token===e.kind){let i=XUe(r);if(i)return i}if(e.kind===96){if(_l(r)&&r.constraint&&Rf(r.constraint))return r.constraint.typeName;if(aI(r)&&Rf(r.extendsType))return r.extendsType.typeName}if(e.kind===140&&MS(r))return r.typeParameter.name;if(e.kind===103&&_l(r)&&WR(r.parent))return r.name;if(e.kind===143&&kS(r)&&r.operator===143&&Rf(r.type))return r.type.typeName;if(e.kind===148&&kS(r)&&r.operator===148&&Gk(r.type)&&Rf(r.type.elementType))return r.type.elementType.typeName;if(!t){if((e.kind===105&&H1(r)||e.kind===116&&sI(r)||e.kind===114&&zR(r)||e.kind===135&&$y(r)||e.kind===127&&Z7(r)||e.kind===91&&Pae(r))&&r.expression)return Xl(r.expression);if((e.kind===103||e.kind===104)&&_r(r)&&r.operatorToken===e)return Xl(r.right);if(e.kind===130&&jk(r)&&Rf(r.type))return r.type.typeName;if(e.kind===103&&t5(r)||e.kind===165&&Uk(r))return Xl(r.expression)}return e}function JK(e){return eRe(e,!1)}function ZF(e){return eRe(e,!0)}function zd(e,t){return g2(e,t,r=>R_(r)||Fd(r.kind)||Xi(r))}function g2(e,t,r){return tRe(e,t,!1,r,!1)}function po(e,t){return tRe(e,t,!0,void 0,!1)}function tRe(e,t,r,i,o){let s=e,l;e:for(;;){let p=s.getChildren(e),g=_A(p,t,(m,b)=>b,(m,b)=>{let T=p[m].getEnd();if(Tt?1:u(p[m],I,T)?p[m-1]&&u(p[m-1])?1:0:i&&I===t&&p[m-1]&&p[m-1].getEnd()===t&&u(p[m-1])?1:-1});if(l)return l;if(g>=0&&p[g]){s=p[g];continue e}return s}function u(p,g,m){if(m??(m=p.getEnd()),mt))return!1;if(tr.getStart(e)&&t(s.pos<=e.pos&&s.end>e.end||s.pos===e.end)&&xue(s,r)?i(s):void 0)}}function Ac(e,t,r,i){let o=s(r||t);return C.assert(!(o&&tW(o))),o;function s(l){if(nRe(l)&&l.kind!==1)return l;let u=l.getChildren(t),p=_A(u,e,(m,b)=>b,(m,b)=>e=u[m-1].end?0:1:-1);if(p>=0&&u[p]){let m=u[p];if(e=e||!xue(m,t)||tW(m)){let I=Eue(u,p,t,l.kind);return I?!i&&C6(I)&&I.getChildren(t).length?s(I):bue(I,t):void 0}else return s(m)}C.assert(r!==void 0||l.kind===312||l.kind===1||C6(l));let g=Eue(u,u.length,t,l.kind);return g&&bue(g,t)}}function nRe(e){return AA(e)&&!tW(e)}function bue(e,t){if(nRe(e))return e;let r=e.getChildren(t);if(r.length===0)return e;let i=Eue(r,r.length,t,e.kind);return i&&bue(i,t)}function Eue(e,t,r,i){for(let o=t-1;o>=0;o--){let s=e[o];if(tW(s))o===0&&(i===12||i===285)&&C.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(xue(e[o],r))return e[o]}}function II(e,t,r=Ac(t,e)){if(r&&qV(r)){let i=r.getStart(e),o=r.getEnd();if(ir.getStart(e)}function Tue(e,t){let r=po(e,t);return!!($A(r)||r.kind===19&&AN(r.parent)&&cg(r.parent.parent)||r.kind===30&&sd(r.parent)&&cg(r.parent.parent))}function nW(e,t){function r(i){for(;i;)if(i.kind>=285&&i.kind<=294||i.kind===12||i.kind===30||i.kind===32||i.kind===80||i.kind===20||i.kind===19||i.kind===44)i=i.parent;else if(i.kind===284){if(t>i.getStart(e))return!0;i=i.parent}else return!1;return!1}return r(po(e,t))}function rW(e,t,r){let i=ma(e.kind),o=ma(t),s=e.getFullStart(),l=r.text.lastIndexOf(o,s);if(l===-1)return;if(r.text.lastIndexOf(i,s-1)!!s.typeParameters&&s.typeParameters.length>=t)}function YK(e,t){if(t.text.lastIndexOf("<",e?e.pos:t.text.length)===-1)return;let r=e,i=0,o=0;for(;r;){switch(r.kind){case 30:if(r=Ac(r.getFullStart(),t),r&&r.kind===29&&(r=Ac(r.getFullStart(),t)),!r||!Ve(r))return;if(!i)return Wg(r)?void 0:{called:r,nTypeArguments:o};i--;break;case 50:i=3;break;case 49:i=2;break;case 32:i++;break;case 20:if(r=rW(r,19,t),!r)return;break;case 22:if(r=rW(r,21,t),!r)return;break;case 24:if(r=rW(r,23,t),!r)return;break;case 28:o++;break;case 39:case 80:case 11:case 9:case 10:case 112:case 97:case 114:case 96:case 143:case 25:case 52:case 58:case 59:break;default:if(qi(r))break;return}r=Ac(r.getFullStart(),t)}}function Xv(e,t,r){return wc.getRangeOfEnclosingComment(e,t,void 0,r)}function Iue(e,t){let r=po(e,t);return!!zn(r,t_)}function xue(e,t){return e.kind===1?!!e.jsDoc:e.getWidth(t)!==0}function aP(e,t=0){let r=[],i=qu(e)?kV(e)&~t:0;return i&2&&r.push("private"),i&4&&r.push("protected"),i&1&&r.push("public"),(i&256||Il(e))&&r.push("static"),i&64&&r.push("abstract"),i&32&&r.push("export"),i&65536&&r.push("deprecated"),e.flags&33554432&&r.push("declare"),e.kind===277&&r.push("export"),r.length>0?r.join(","):""}function Rue(e){if(e.kind===183||e.kind===213)return e.typeArguments;if(ea(e)||e.kind===263||e.kind===264)return e.typeParameters}function iW(e){return e===2||e===3}function $K(e){return!!(e===11||e===14||My(e))}function rRe(e,t,r){return!!(t.flags&4)&&e.isEmptyAnonymousObjectType(r)}function Due(e){if(!e.isIntersection())return!1;let{types:t,checker:r}=e;return t.length===2&&(rRe(r,t[0],t[1])||rRe(r,t[1],t[0]))}function oO(e,t,r){return My(e.kind)&&e.getStart(r){let r=ss(t);return!e[r]&&(e[r]=!0)}}function v2(e){return e.getText(0,e.getLength())}function lO(e,t){let r="";for(let i=0;i!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!(t.externalModuleIndicator||t.commonJsModuleIndicator))}function Mue(e){return e.getSourceFiles().some(t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator)}function oX(e){return!!e.module||as(e)>=2||!!e.noEmit}function ZS(e,t){return{fileExists:r=>e.fileExists(r),getCurrentDirectory:()=>t.getCurrentDirectory(),readFile:oa(t,t.readFile),useCaseSensitiveFileNames:oa(t,t.useCaseSensitiveFileNames),getSymlinkCache:oa(t,t.getSymlinkCache)||e.getSymlinkCache,getModuleSpecifierCache:oa(t,t.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var r;return(r=e.getModuleResolutionCache())==null?void 0:r.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:oa(t,t.getGlobalTypingsCacheLocation),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:r=>e.getProjectReferenceRedirect(r),isSourceOfProjectReferenceRedirect:r=>e.isSourceOfProjectReferenceRedirect(r),getNearestAncestorDirectoryWithPackageJson:oa(t,t.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>e.getFileIncludeReasons(),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function aX(e,t){return{...ZS(e,t),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function lW(e){return e===2||e>=3&&e<=99||e===100}function Lue(e,t,r,i){return e||t&&t.length?$v(e,t,r,i):void 0}function $v(e,t,r,i,o){return k.createImportDeclaration(void 0,e||t?k.createImportClause(!!o,e,t&&t.length?k.createNamedImports(t):void 0):void 0,typeof r=="string"?RI(r,i):r,void 0)}function RI(e,t){return k.createStringLiteral(e,t===0)}function sX(e,t){return s3(e,t)?1:0}function af(e,t){if(t.quotePreference&&t.quotePreference!=="auto")return t.quotePreference==="single"?0:1;{let r=e.imports&&vn(e.imports,i=>Na(i)&&!Xs(i.parent));return r?sX(r,e):1}}function lX(e){switch(e){case 0:return"'";case 1:return'"';default:return C.assertNever(e)}}function cW(e){let t=uW(e);return t===void 0?void 0:Hi(t)}function uW(e){return e.escapedName!=="default"?e.escapedName:Zt(e.declarations,t=>{let r=Oo(t);return r&&r.kind===80?r.escapedText:void 0})}function dW(e){return us(e)&&(Th(e.parent)||Lc(e.parent)||Sd(e.parent,!1)&&e.parent.arguments[0]===e||Wp(e.parent)&&e.parent.arguments[0]===e)}function uO(e){return Qa(e)&&om(e.parent)&&Ve(e.name)&&!e.propertyName}function pW(e,t){let r=e.getTypeAtLocation(t.parent);return r&&e.getPropertyOfType(r,t.name.text)}function dO(e,t,r){if(e)for(;e.parent;){if(no(e.parent)||!YUe(r,e.parent,t))return e;e=e.parent}}function YUe(e,t,r){return LV(e,t.getStart(r))&&t.getEnd()<=ql(e)}function y2(e,t){return Cm(e)?vn(e.modifiers,r=>r.kind===t):void 0}function lP(e,t,r,i,o){let l=(Do(r)?r[0]:r).kind===243?Nj:_S,u=tr(t.statements,l),p=Do(r)?Mm.detectImportDeclarationSorting(r,o):3,g=Mm.getOrganizeImportsComparer(o,p===2),m=Do(r)?Iv(r,(b,T)=>Mm.compareImportsOrRequireStatements(b,T,g)):[r];if(!u.length)e.insertNodesAtTopOfFile(t,m,i);else if(u&&(p=Mm.detectImportDeclarationSorting(u,o))){let b=Mm.getOrganizeImportsComparer(o,p===2);for(let T of m){let I=Mm.getImportDeclarationInsertionIndex(u,T,b);if(I===0){let R=u[0]===t.statements[0]?{leadingTriviaOption:hr.LeadingTriviaOption.Exclude}:{};e.insertNodeBefore(t,u[0],T,!1,R)}else{let R=u[I-1];e.insertNodeAfter(t,R,T)}}}else{let b=Zs(u);b?e.insertNodesAfter(t,b,m):e.insertNodesAtTopOfFile(t,m,i)}}function cX(e,t){return C.assert(e.isTypeOnly),aa(e.getChildAt(0,t),rX)}function b2(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function uX(e,t,r){return(r?rS:Yb)(e.fileName,t.fileName)&&b2(e.textSpan,t.textSpan)}function dX(e){return(t,r)=>uX(t,r,e)}function pX(e,t){if(e){for(let r=0;rCo(r)?!0:Qa(r)||om(r)||U1(r)?!1:"quit")}function $Ue(){let e=Ek*10,t,r,i,o;m();let s=b=>u(b,17);return{displayParts:()=>{let b=t.length&&t[t.length-1].text;return o>e&&b&&b!=="..."&&(Lg(b.charCodeAt(b.length-1))||t.push(rp(" ",16)),t.push(rp("...",15))),t},writeKeyword:b=>u(b,5),writeOperator:b=>u(b,12),writePunctuation:b=>u(b,15),writeTrailingSemicolon:b=>u(b,15),writeSpace:b=>u(b,16),writeStringLiteral:b=>u(b,8),writeParameter:b=>u(b,13),writeProperty:b=>u(b,14),writeLiteral:b=>u(b,8),writeSymbol:p,writeLine:g,write:s,writeComment:s,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:Ko,getIndent:()=>i,increaseIndent:()=>{i++},decreaseIndent:()=>{i--},clear:m};function l(){if(!(o>e)&&r){let b=g3(i);b&&(o+=b.length,t.push(rp(b,16))),r=!1}}function u(b,T){o>e||(l(),o+=b.length,t.push(rp(b,T)))}function p(b,T){o>e||(l(),o+=b.length,t.push(wue(b,T)))}function g(){o>e||(o+=1,t.push(E2()),r=!0)}function m(){t=[],r=!0,i=0,o=0}}function wue(e,t){return rp(e,r(t));function r(i){let o=i.flags;return o&3?mX(i)?13:9:o&4||o&32768||o&65536?14:o&8?19:o&16?20:o&32?1:o&64?4:o&384?2:o&1536?11:o&8192?10:o&262144?18:o&524288||o&2097152?0:17}}function rp(e,t){return{text:e,kind:Xw[t]}}function kl(){return rp(" ",16)}function Ep(e){return rp(ma(e),5)}function Yu(e){return rp(ma(e),15)}function uP(e){return rp(ma(e),12)}function Oue(e){return rp(e,13)}function Fue(e){return rp(e,14)}function _X(e){let t=y1(e);return t===void 0?sf(e):Ep(t)}function sf(e){return rp(e,17)}function Wue(e){return rp(e,0)}function zue(e){return rp(e,18)}function mW(e){return rp(e,24)}function Bue(e,t){return{text:e,kind:Xw[23],target:{fileName:Vn(t).fileName,textSpan:Rd(t)}}}function hX(e){return rp(e,22)}function Gue(e,t){var r;let i=Wae(e)?"link":zae(e)?"linkcode":"linkplain",o=[hX(`{@${i} `)];if(!e.name)e.text&&o.push(mW(e.text));else{let s=t?.getSymbolAtLocation(e.name),l=s&&t?yX(s,t):void 0,u=ZUe(e.text),p=pc(e.name)+e.text.slice(0,u),g=QUe(e.text.slice(u)),m=l?.valueDeclaration||((r=l?.declarations)==null?void 0:r[0]);if(m)o.push(Bue(p,m)),g&&o.push(mW(g));else{let b=u===0||e.text.charCodeAt(u)===124&&p.charCodeAt(p.length-1)!==32?" ":"";o.push(mW(p+b+g))}}return o.push(hX("}")),o}function QUe(e){let t=0;if(e.charCodeAt(t++)===124){for(;t"&&r--,i++,!r)return i}return 0}function Qv(e,t){var r;return t?.newLineCharacter||((r=e.getNewLine)==null?void 0:r.call(e))||fRe}function E2(){return rp(` +`,6)}function ob(e){try{return e(OX),OX.displayParts()}finally{OX.clear()}}function pO(e,t,r,i=0){return ob(o=>{e.writeType(t,r,i|1024|16384,o)})}function dP(e,t,r,i,o=0){return ob(s=>{e.writeSymbol(t,r,i,o|8,s)})}function gX(e,t,r,i=0){return i|=25632,ob(o=>{e.writeSignature(t,r,i,void 0,o)})}function oRe(e,t){let r=t.getSourceFile();return ob(i=>{Lw().writeNode(4,e,r,i)})}function Vue(e){return!!e.parent&&IA(e.parent)&&e.parent.propertyName===e}function vX(e,t){return J3(e,t.getScriptKind&&t.getScriptKind(e))}function yX(e,t){let r=e;for(;eHe(r)||fh(r)&&r.links.target;)fh(r)&&r.links.target?r=r.links.target:r=bu(r,t);return r}function eHe(e){return(e.flags&2097152)!==0}function jue(e,t){return Ta(bu(e,t))}function Uue(e,t){for(;Lg(e.charCodeAt(t));)t+=1;return t}function _W(e,t){for(;t>-1&&S_(e.charCodeAt(t));)t-=1;return t+1}function sl(e,t=!0){let r=e&&aRe(e);return r&&!t&&Sp(r),r}function fO(e,t,r){let i=r(e);return i?Pr(i,e):i=aRe(e,r),i&&!t&&Sp(i),i}function aRe(e,t){let r=t?s=>fO(s,!0,t):sl,o=An(e,r,void 0,t?s=>s&&bX(s,!0,t):s=>s&&cE(s),r);if(o===e){let s=Na(e)?Pr(k.createStringLiteralFromNode(e),e):hp(e)?Pr(k.createNumericLiteral(e.text,e.numericLiteralFlags),e):k.cloneNode(e);return dt(s,e)}return o.parent=void 0,o}function cE(e,t=!0){if(e){let r=k.createNodeArray(e.map(i=>sl(i,t)),e.hasTrailingComma);return dt(r,e),r}return e}function bX(e,t,r){return k.createNodeArray(e.map(i=>fO(i,t,r)),e.hasTrailingComma)}function Sp(e){EX(e),Hue(e)}function EX(e){que(e,1024,nHe)}function Hue(e){que(e,2048,gU)}function eT(e,t){let r=e.getSourceFile(),i=r.text;tHe(e,i)?S2(e,t,r):_O(e,t,r),pP(e,t,r)}function tHe(e,t){let r=e.getFullStart(),i=e.getStart();for(let o=r;ot)}function tT(e,t){let r=e;for(let i=1;!F6(t,r);i++)r=`${e}_${i}`;return r}function mO(e,t,r,i){let o=0,s=-1;for(let{fileName:l,textChanges:u}of e){C.assert(l===t);for(let p of u){let{span:g,newText:m}=p,b=rHe(m,rg(r));if(b!==-1&&(s=g.start+o+b,!i))return s;o+=m.length-g.length}}return C.assert(i),C.assert(s>=0),s}function S2(e,t,r,i,o){XM(r.text,e.pos,Jue(t,r,i,o,mN))}function pP(e,t,r,i,o){YM(r.text,e.end,Jue(t,r,i,o,h7))}function _O(e,t,r,i,o){YM(r.text,e.pos,Jue(t,r,i,o,mN))}function Jue(e,t,r,i,o){return(s,l,u,p)=>{u===3?(s+=2,l-=2):s+=2,o(e,r||u,t.text.slice(s,l),i!==void 0?i:p)}}function rHe(e,t){if(uo(e,t))return 0;let r=e.indexOf(" "+t);return r===-1&&(r=e.indexOf("."+t)),r===-1&&(r=e.indexOf('"'+t)),r===-1?-1:r+1}function hW(e){return _r(e)&&e.operatorToken.kind===28||wa(e)||(jk(e)||bH(e))&&wa(e.expression)}function gW(e,t,r){let i=Fv(e.parent);switch(i.kind){case 214:return t.getContextualType(i,r);case 226:{let{left:o,operatorToken:s,right:l}=i;return vW(s.kind)?t.getTypeAtLocation(e===l?o:l):t.getContextualType(e,r)}case 296:return TX(i,t);default:return t.getContextualType(e,r)}}function fP(e,t,r){let i=af(e,t),o=JSON.stringify(r);return i===0?`'${em(o).replace(/'/g,()=>"\\'").replace(/\\"/g,'"')}'`:o}function vW(e){switch(e){case 37:case 35:case 38:case 36:return!0;default:return!1}}function Kue(e){switch(e.kind){case 11:case 15:case 228:case 215:return!0;default:return!1}}function SX(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function TX(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function mP(e,t,r,i){let o=r.getTypeChecker(),s=!0,l=()=>s=!1,u=o.typeToTypeNode(e,t,1,{trackSymbol:(p,g,m)=>(s=s&&o.isSymbolAccessible(p,g,m,!1).accessibility===0,!s),reportInaccessibleThisError:l,reportPrivateInBaseOfClassExpression:l,reportInaccessibleUniqueSymbolError:l,moduleResolverHost:aX(r,i)});return s?u:void 0}function Xue(e){return e===179||e===180||e===181||e===171||e===173}function sRe(e){return e===262||e===176||e===174||e===177||e===178}function lRe(e){return e===267}function yW(e){return e===243||e===244||e===246||e===251||e===252||e===253||e===257||e===259||e===172||e===265||e===272||e===271||e===278||e===270||e===277}function iHe(e,t){let r=e.getLastToken(t);if(r&&r.kind===27)return!1;if(Xue(e.kind)){if(r&&r.kind===28)return!1}else if(lRe(e.kind)){let u=Ya(e.getChildren(t));if(u&&k_(u))return!1}else if(sRe(e.kind)){let u=Ya(e.getChildren(t));if(u&&D1(u))return!1}else if(!yW(e.kind))return!1;if(e.kind===246)return!0;let i=zn(e,u=>!u.parent),o=lE(e,i,t);if(!o||o.kind===20)return!0;let s=t.getLineAndCharacterOfPosition(e.getEnd()).line,l=t.getLineAndCharacterOfPosition(o.getStart(t)).line;return s!==l}function bW(e,t,r){let i=zn(t,o=>o.end!==e?"quit":FX(o.kind));return!!i&&iHe(i,r)}function hO(e){let t=0,r=0,i=5;return Ho(e,function o(s){if(yW(s.kind)){let l=s.getLastToken(e);l?.kind===27?t++:r++}else if(Xue(s.kind)){let l=s.getLastToken(e);if(l?.kind===27)t++;else if(l&&l.kind!==28){let u=Es(e,l.getStart(e)).line,p=Es(e,hh(e,l.end).start).line;u!==p&&r++}}return t+r>=i?!0:Ho(s,o)}),t===0&&r<=1?!0:t/r>1/i}function EW(e,t){return AW(e,e.getDirectories,t)||[]}function AX(e,t,r,i,o){return AW(e,e.readDirectory,t,r,i,o)||et}function gO(e,t){return AW(e,e.fileExists,t)}function SW(e,t){return TW(()=>Ym(t,e))||!1}function TW(e){try{return e()}catch{return}}function AW(e,t,...r){return TW(()=>t&&t.apply(e,r))}function IX(e,t,r){let i=[];return Em(e,o=>{if(o===r)return!0;let s=Zr(o,"package.json");gO(t,s)&&i.push(s)}),i}function Yue(e,t){let r;return Em(e,i=>{if(i==="node_modules"||(r=oce(i,o=>gO(t,o),"package.json"),r))return!0}),r}function $ue(e,t){if(!t.fileExists)return[];let r=[];return Em(li(e),i=>{let o=Zr(i,"package.json");if(t.fileExists(o)){let s=xX(o,t);s&&r.push(s)}}),r}function xX(e,t){if(!t.readFile)return;let r=["dependencies","devDependencies","optionalDependencies","peerDependencies"],i=t.readFile(e)||"",o=N3(i),s={};if(o)for(let p of r){let g=o[p];if(!g)continue;let m=new Map;for(let b in g)m.set(b,g[b]);s[p]=m}let l=[[1,s.dependencies],[2,s.devDependencies],[8,s.optionalDependencies],[4,s.peerDependencies]];return{...s,parseable:!!o,fileName:e,get:u,has(p,g){return!!u(p,g)}};function u(p,g=15){for(let[m,b]of l)if(b&&g&m){let T=b.get(p);if(T!==void 0)return T}}}function _P(e,t,r){let i=(r.getPackageJsonsVisibleToFile&&r.getPackageJsonsVisibleToFile(e.fileName)||$ue(e.fileName,r)).filter(R=>R.parseable),o,s,l;return{allowsImportingAmbientModule:p,allowsImportingSourceFile:g,allowsImportingSpecifier:m};function u(R){let M=I(R);for(let N of i)if(N.has(M)||N.has(W5(M)))return!0;return!1}function p(R,M){if(!i.length||!R.valueDeclaration)return!0;if(!s)s=new Map;else{let Z=s.get(R);if(Z!==void 0)return Z}let N=em(R.getName());if(b(N))return s.set(R,!0),!0;let O=R.valueDeclaration.getSourceFile(),H=T(O.fileName,M);if(typeof H>"u")return s.set(R,!0),!0;let K=u(H)||u(N);return s.set(R,K),K}function g(R,M){if(!i.length)return!0;if(!l)l=new Map;else{let H=l.get(R);if(H!==void 0)return H}let N=T(R.fileName,M);if(!N)return l.set(R,!0),!0;let O=u(N);return l.set(R,O),O}function m(R){return!i.length||b(R)||wp(R)||dp(R)?!0:u(R)}function b(R){return!!(ld(e)&&B_.nodeCoreModules.has(R)&&(o===void 0&&(o=IW(e)),o))}function T(R,M){if(!R.includes("node_modules"))return;let N=nE.getNodeModulesPackageName(r.getCompilationSettings(),e,R,M,t);if(N&&!wp(N)&&!dp(N))return I(N)}function I(R){let M=Wc(zN(R)).slice(1);return uo(M[0],"@")?`${M[0]}/${M[1]}`:M[0]}}function IW(e){return Et(e.imports,({text:t})=>B_.nodeCoreModules.has(t))}function vO(e){return wr(Wc(e),"node_modules")}function RX(e){return e.file!==void 0&&e.start!==void 0&&e.length!==void 0}function Que(e,t){let r=Rd(e),i=_A(t,r,el,M8);if(i>=0){let o=t[i];return C.assertEqual(o.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),aa(o,RX)}}function Zue(e,t){var r;let i=_A(t,e.start,l=>l.start,tl);for(i<0&&(i=~i);((r=t[i-1])==null?void 0:r.start)===e.start;)i--;let o=[],s=ql(e);for(;;){let l=ai(t[i],RX);if(!l||l.start>s)break;nre(e,l)&&o.push(l),i++}return o}function DI({startPosition:e,endPosition:t}){return dc(e,t===void 0?e:t)}function DX(e,t){let r=po(e,t.start);return zn(r,o=>o.getStart(e)ql(t)?"quit":bt(o)&&b2(t,Rd(o,e)))}function CX(e,t,r=el){return e?Do(e)?r(Ft(e,t)):t(e,0):void 0}function NX(e){return Do(e)?Ha(e):e}function ede(e,t){if(cRe(e)){let r=uRe(e);if(r)return r;let i=Fu.moduleSymbolToValidIdentifier(tde(e),t,!1),o=Fu.moduleSymbolToValidIdentifier(tde(e),t,!0);return i===o?i:[i,o]}return e.name}function xW(e,t,r){return cRe(e)?uRe(e)||Fu.moduleSymbolToValidIdentifier(tde(e),t,!!r):e.name}function cRe(e){return!(e.flags&33554432)&&(e.escapedName==="export="||e.escapedName==="default")}function uRe(e){return Zt(e.declarations,t=>{var r,i,o;return Ll(t)?(r=ai(Xl(t.expression),Ve))==null?void 0:r.text:Ju(t)&&t.symbol.flags===2097152?(i=ai(t.propertyName,Ve))==null?void 0:i.text:(o=ai(Oo(t),Ve))==null?void 0:o.text})}function tde(e){var t;return C.checkDefined(e.parent,`Symbol parent was undefined. Flags: ${C.formatSymbolFlags(e.flags)}. Declarations: ${(t=e.declarations)==null?void 0:t.map(r=>{let i=C.formatSyntaxKind(r.kind),o=cr(r),{expression:s}=r;return(o?"[JS]":"")+i+(s?` (expression: ${C.formatSyntaxKind(s.kind)})`:"")}).join(", ")}.`)}function nde(e,t,r){let i=t.length;if(i+r>e.length)return!1;for(let o=0;oJl(r)&&I_(r))}function RW(e){return!!(kV(e)&65536)}function DW(e,t){return Zt(e.imports,i=>{if(B_.nodeCoreModules.has(i.text))return uo(i.text,"node:")})??t.usesUriStyleNodeCoreModules}function yO(e){return e===` +`?1:0}function nT(e){return Do(e)?ag(Bo(e[0]),e.slice(1)):Bo(e)}function CW({options:e},t){let r=!e.semicolons||e.semicolons==="ignore",i=e.semicolons==="remove"||r&&!hO(t);return{...e,semicolons:i?"remove":"ignore"}}function MX(e){return e===2||e===3}function T2(e,t){return e.isSourceFileFromExternalLibrary(t)||e.isSourceFileDefaultLibrary(t)}function NW(e,t){let r=new Set,i=new Set,o=new Set;for(let u of t)if(!IN(u)){let p=vs(u.expression);if(S1(p))switch(p.kind){case 15:case 11:r.add(p.text);break;case 9:i.add(parseInt(p.text));break;case 10:let g=Goe(Sl(p.text,"n")?p.text.slice(0,-1):p.text);g&&o.add(z1(g));break}else{let g=e.getSymbolAtLocation(u.expression);if(g&&g.valueDeclaration&&Q1(g.valueDeclaration)){let m=e.getConstantValue(g.valueDeclaration);m!==void 0&&s(m)}}}return{addValue:s,hasValue:l};function s(u){switch(typeof u){case"string":r.add(u);break;case"number":i.add(u)}}function l(u){switch(typeof u){case"string":return r.has(u);case"number":return i.has(u);case"object":return o.has(z1(u))}}}function LX(e,t,r,i){var o;let s=typeof e=="string"?e:e.fileName;if(!W1(s))return!1;let l=t.getCompilerOptions(),u=ku(l),p=typeof e=="string"?Bw(rl(e,r.getCurrentDirectory(),Wv(r)),(o=t.getPackageJsonInfoCache)==null?void 0:o.call(t),r,l):e.impliedNodeFormat;if(p===99)return!1;if(p===1||l.verbatimModuleSyntax&&u===1)return!0;if(l.verbatimModuleSyntax&&W3(u))return!1;if(typeof e=="object"){if(e.commonJsModuleIndicator)return!0;if(e.externalModuleIndicator)return!1}return i}var $u,kX,pRe,PW,wX,OX,fRe,MW,FX,oHe=A({"src/services/utilities.ts"(){"use strict";ci(),$u=Mv(99,!0),kX=(e=>(e[e.None=0]="None",e[e.Value=1]="Value",e[e.Type=2]="Type",e[e.Namespace=4]="Namespace",e[e.All=7]="All",e))(kX||{}),pRe=/^\/\/\/\s*(e[e.Single=0]="Single",e[e.Double=1]="Double",e))(wX||{}),OX=$Ue(),fRe=` +`,MW="anonymous function",FX=Xm(Xue,sRe,lRe,yW)}});function WX(e){let t=1,r=Xp(),i=new Map,o=new Map,s,l={isUsableByFile:I=>I===s,isEmpty:()=>!r.size,clear:()=>{r.clear(),i.clear(),s=void 0},add:(I,R,M,N,O,H,K,Z)=>{I!==s&&(l.clear(),s=I);let V;if(O){let me=t7(O.fileName);if(me){let{topLevelNodeModulesIndex:ie,topLevelPackageNameIndex:ve,packageRootIndex:Le}=me;if(V=Tw(zN(O.fileName.substring(ve+1,Le))),uo(I,O.path.substring(0,ie))){let He=o.get(V),Ee=O.fileName.substring(0,ve+1);if(He){let Ce=He.indexOf(Ih);ie>Ce&&o.set(V,Ee)}else o.set(V,Ee)}}}let G=H===1&&TR(R)||R,ne=H===0||sO(G)?Hi(M):ede(G,void 0),he=typeof ne=="string"?ne:ne[0],ye=typeof ne=="string"?void 0:ne[1],$=em(N.name),Y=t++,oe=bu(R,Z),fe=R.flags&33554432?void 0:R,Ne=N.flags&33554432?void 0:N;(!fe||!Ne)&&i.set(Y,[R,N]),r.add(p(he,R,Yc($)?void 0:$,Z),{id:Y,symbolTableKey:M,symbolName:he,capitalizedSymbolName:ye,moduleName:$,moduleFile:O,moduleFileName:O?.fileName,packageName:V,exportKind:H,targetFlags:oe.flags,isFromPackageJson:K,symbol:fe,moduleSymbol:Ne})},get:(I,R)=>{if(I!==s)return;let M=r.get(R);return M?.map(u)},search:(I,R,M,N)=>{if(I===s)return Bc(r,(O,H)=>{let{symbolName:K,ambientModuleName:Z}=g(H),V=R&&O[0].capitalizedSymbolName||K;if(M(V,O[0].targetFlags)){let G=O.map(u).filter((ne,he)=>T(ne,O[he].packageName));if(G.length){let ne=N(G,V,!!Z,H);if(ne!==void 0)return ne}}})},releaseSymbols:()=>{i.clear()},onFileChanged:(I,R,M)=>m(I)&&m(R)?!1:s&&s!==R.path||M&&IW(I)!==IW(R)||!Jm(I.moduleAugmentations,R.moduleAugmentations)||!b(I,R)?(l.clear(),!0):(s=R.path,!1)};return C.isDebugging&&Object.defineProperty(l,"__cache",{value:r}),l;function u(I){if(I.symbol&&I.moduleSymbol)return I;let{id:R,exportKind:M,targetFlags:N,isFromPackageJson:O,moduleFileName:H}=I,[K,Z]=i.get(R)||et;if(K&&Z)return{symbol:K,moduleSymbol:Z,moduleFileName:H,exportKind:M,targetFlags:N,isFromPackageJson:O};let V=(O?e.getPackageJsonAutoImportProvider():e.getCurrentProgram()).getTypeChecker(),ue=I.moduleSymbol||Z||C.checkDefined(I.moduleFile?V.getMergedSymbol(I.moduleFile.symbol):V.tryFindAmbientModule(I.moduleName)),G=I.symbol||K||C.checkDefined(M===2?V.resolveExternalModuleSymbol(ue):V.tryGetMemberInModuleExportsAndProperties(Hi(I.symbolTableKey),ue),`Could not find symbol '${I.symbolName}' by key '${I.symbolTableKey}' in module ${ue.name}`);return i.set(R,[G,ue]),{symbol:G,moduleSymbol:ue,moduleFileName:H,exportKind:M,targetFlags:N,isFromPackageJson:O}}function p(I,R,M,N){let O=M||"";return`${I.length} ${Ta(bu(R,N))} ${I} ${O}`}function g(I){let R=I.indexOf(" "),M=I.indexOf(" ",R+1),N=parseInt(I.substring(0,R),10),O=I.substring(M+1),H=O.substring(0,N),K=O.substring(N+1);return{symbolName:H,ambientModuleName:K===""?void 0:K}}function m(I){return!I.commonJsModuleIndicator&&!I.externalModuleIndicator&&!I.moduleAugmentations&&!I.ambientModuleNames}function b(I,R){if(!Jm(I.ambientModuleNames,R.ambientModuleNames))return!1;let M=-1,N=-1;for(let O of R.ambientModuleNames){let H=K=>pj(K)&&K.name.text===O;if(M=ri(I.statements,H,M+1),N=ri(R.statements,H,N+1),I.statements[M]!==R.statements[N])return!1}return!0}function T(I,R){if(!R||!I.moduleFileName)return!0;let M=e.getGlobalTypingsCacheLocation();if(M&&uo(I.moduleFileName,M))return!0;let N=o.get(R);return!N||uo(I.moduleFileName,N)}}function zX(e,t,r,i,o,s,l){var u;if(t===r)return!1;let p=l?.get(t.path,r.path,i,{});if(p?.isBlockedByPackageJsonDependencies!==void 0)return!p.isBlockedByPackageJsonDependencies;let g=Wv(s),m=(u=s.getGlobalTypingsCacheLocation)==null?void 0:u.call(s),b=!!nE.forEachFileNameOfModule(t.fileName,r.fileName,s,!1,T=>{let I=e.getSourceFile(T);return(I===r||!I)&&aHe(t.fileName,T,g,m)});if(o){let T=b&&o.allowsImportingSourceFile(r,s);return l?.setBlockedByPackageJsonDependencies(t.path,r.path,i,{},!T),T}return b}function aHe(e,t,r,i){let o=Em(t,l=>rc(l)==="node_modules"?l:void 0),s=o&&li(r(o));return s===void 0||uo(r(e),s)||!!i&&uo(r(i),s)}function BX(e,t,r,i,o){var s,l;let u=ER(t),p=r.autoImportFileExcludePatterns&&Vi(r.autoImportFileExcludePatterns,m=>{let b=H3(m,"","exclude");return b?jy(b,u):void 0});mRe(e.getTypeChecker(),e.getSourceFiles(),p,t,(m,b)=>o(m,b,e,!1));let g=i&&((s=t.getPackageJsonAutoImportProvider)==null?void 0:s.call(t));if(g){let m=Ks(),b=e.getTypeChecker();mRe(g.getTypeChecker(),g.getSourceFiles(),p,t,(T,I)=>{(I&&!e.getSourceFile(I.fileName)||!I&&!b.resolveName(T.name,void 0,1536,!1))&&o(T,I,g,!0)}),(l=t.log)==null||l.call(t,`forEachExternalModuleToImportFrom autoImportProvider: ${Ks()-m}`)}}function mRe(e,t,r,i,o){var s,l;let u=(s=i.getSymlinkCache)==null?void 0:s.call(i).getSymlinkedDirectoriesByRealpath(),p=r&&(({fileName:g,path:m})=>{if(r.some(b=>b.test(g)))return!0;if(u?.size&&I0(g)){let b=li(g);return Em(li(m),T=>{let I=u.get(zc(T));if(I)return I.some(R=>r.some(M=>M.test(g.replace(b,R))));b=li(b)})??!1}return!1});for(let g of e.getAmbientModules())!g.name.includes("*")&&!(r&&((l=g.declarations)!=null&&l.every(m=>p(m.getSourceFile()))))&&o(g,void 0);for(let g of t)Fp(g)&&!p?.(g)&&o(e.getMergedSymbol(g.symbol),g)}function bO(e,t,r,i,o){var s,l,u,p,g;let m=Ks();(s=t.getPackageJsonAutoImportProvider)==null||s.call(t);let b=((l=t.getCachedExportInfoMap)==null?void 0:l.call(t))||WX({getCurrentProgram:()=>r,getPackageJsonAutoImportProvider:()=>{var R;return(R=t.getPackageJsonAutoImportProvider)==null?void 0:R.call(t)},getGlobalTypingsCacheLocation:()=>{var R;return(R=t.getGlobalTypingsCacheLocation)==null?void 0:R.call(t)}});if(b.isUsableByFile(e.path))return(u=t.log)==null||u.call(t,"getExportInfoMap: cache hit"),b;(p=t.log)==null||p.call(t,"getExportInfoMap: cache miss or empty; calculating new results");let T=r.getCompilerOptions(),I=0;try{BX(r,t,i,!0,(R,M,N,O)=>{++I%100===0&&o?.throwIfCancellationRequested();let H=new Map,K=N.getTypeChecker(),Z=LW(R,K,T);Z&&_Re(Z.symbol,K)&&b.add(e.path,Z.symbol,Z.exportKind===1?"default":"export=",R,M,Z.exportKind,O,K),K.forEachExportAndPropertyOfModule(R,(V,ue)=>{V!==Z?.symbol&&_Re(V,K)&&xm(H,ue)&&b.add(e.path,V,ue,R,M,0,O,K)})})}catch(R){throw b.clear(),R}return(g=t.log)==null||g.call(t,`getExportInfoMap: done in ${Ks()-m} ms`),b}function LW(e,t,r){let i=sHe(e,t);if(!i)return;let{symbol:o,exportKind:s}=i,l=kW(o,t,r);return l&&{symbol:o,exportKind:s,...l}}function _Re(e,t){return!t.isUndefinedSymbol(e)&&!t.isUnknownSymbol(e)&&!ek(e)&&!Bie(e)}function sHe(e,t){let r=t.resolveExternalModuleSymbol(e);if(r!==e)return{symbol:r,exportKind:2};let i=t.tryGetMemberInModuleExports("default",e);if(i)return{symbol:i,exportKind:1}}function kW(e,t,r){let i=TR(e);if(i)return{resolvedSymbol:i,name:i.name};let o=lHe(e);if(o!==void 0)return{resolvedSymbol:e,name:o};if(e.flags&2097152){let s=t.getImmediateAliasedSymbol(e);if(s&&s.parent)return kW(s,t,r)}return e.escapedName!=="default"&&e.escapedName!=="export="?{resolvedSymbol:e,name:e.getName()}:{resolvedSymbol:e,name:xW(e,r.target)}}function lHe(e){return e.declarations&&Zt(e.declarations,t=>{var r;if(Ll(t))return(r=ai(Xl(t.expression),Ve))==null?void 0:r.text;if(Ju(t))return C.assert(t.name.text==="default","Expected the specifier to be a default export"),t.propertyName&&t.propertyName.text})}var GX,VX,cHe=A({"src/services/exportInfoMap.ts"(){"use strict";ci(),GX=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",e))(GX||{}),VX=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e[e.UMD=3]="UMD",e))(VX||{})}});function hRe(){let e=Mv(99,!1);function t(i,o,s){return pHe(r(i,o,s),i)}function r(i,o,s){let l=0,u=0,p=[],{prefix:g,pushTemplate:m}=_He(o);i=g+i;let b=g.length;m&&p.push(16),e.setText(i);let T=0,I=[],R=0;do{l=e.scan(),hR(l)||(M(),u=l);let N=e.getTokenEnd();if(dHe(e.getTokenStart(),N,b,vHe(l),I),N>=i.length){let O=uHe(e,l,Zs(p));O!==void 0&&(T=O)}}while(l!==1);function M(){switch(l){case 44:case 69:!bRe[u]&&e.reScanSlashToken()===14&&(l=14);break;case 30:u===80&&R++;break;case 32:R>0&&R--;break;case 133:case 154:case 150:case 136:case 155:R>0&&!s&&(l=80);break;case 16:p.push(l);break;case 19:p.length>0&&p.push(l);break;case 20:if(p.length>0){let N=Zs(p);N===16?(l=e.reScanTemplateToken(!1),l===18?p.pop():C.assertEqual(l,17,"Should have been a template middle.")):(C.assertEqual(N,19,"Should have been an open brace"),p.pop())}break;default:if(!Fd(l))break;(u===25||Fd(u)&&Fd(l)&&!mHe(u,l))&&(l=80)}}return{endOfLineState:T,spans:I}}return{getClassificationsForLine:t,getEncodedLexicalClassifications:r}}function uHe(e,t,r){switch(t){case 11:{if(!e.isUnterminated())return;let i=e.getTokenText(),o=i.length-1,s=0;for(;i.charCodeAt(o-s)===92;)s++;return s&1?i.charCodeAt(0)===34?3:2:void 0}case 3:return e.isUnterminated()?1:void 0;default:if(My(t)){if(!e.isUnterminated())return;switch(t){case 18:return 5;case 15:return 4;default:return C.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return r===16?6:void 0}}function dHe(e,t,r,i,o){if(i===8)return;e===0&&r>0&&(e+=r);let s=t-e;s>0&&o.push(e-r,s,i)}function pHe(e,t){let r=[],i=e.spans,o=0;for(let l=0;l=0){let m=u-o;m>0&&r.push({length:m,classification:4})}r.push({length:p,classification:fHe(g)}),o=u+p}let s=t.length-o;return s>0&&r.push({length:s,classification:4}),{entries:r,finalLexState:e.endOfLineState}}function fHe(e){switch(e){case 1:return 3;case 3:return 1;case 4:return 6;case 25:return 7;case 5:return 2;case 6:return 8;case 8:return 4;case 10:return 0;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return 5;default:return}}function mHe(e,t){if(!QK(e))return!0;switch(t){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}function _He(e){switch(e){case 3:return{prefix:`"\\ +`};case 2:return{prefix:`'\\ +`};case 1:return{prefix:`/* +`};case 4:return{prefix:"`\n"};case 5:return{prefix:`} +`,pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return C.assertNever(e)}}function hHe(e){switch(e){case 42:case 44:case 45:case 40:case 41:case 48:case 49:case 50:case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:case 35:case 36:case 37:case 38:case 51:case 53:case 52:case 56:case 57:case 75:case 74:case 79:case 71:case 72:case 73:case 65:case 66:case 67:case 69:case 70:case 64:case 28:case 61:case 76:case 77:case 78:return!0;default:return!1}}function gHe(e){switch(e){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}function vHe(e){if(Fd(e))return 3;if(hHe(e)||gHe(e))return 5;if(e>=19&&e<=79)return 10;switch(e){case 9:return 4;case 10:return 25;case 11:return 6;case 14:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 80:default:return My(e)?6:2}}function ide(e,t,r,i,o){return yRe(jX(e,t,r,i,o))}function gRe(e,t){switch(t){case 267:case 263:case 264:case 262:case 231:case 218:case 219:e.throwIfCancellationRequested()}}function jX(e,t,r,i,o){let s=[];return r.forEachChild(function u(p){if(!(!p||!f6(o,p.pos,p.getFullWidth()))){if(gRe(t,p.kind),Ve(p)&&!Fl(p)&&i.has(p.escapedText)){let g=e.getSymbolAtLocation(p),m=g&&vRe(g,$S(p),e);m&&l(p.getStart(r),p.getEnd(),m)}p.forEachChild(u)}}),{spans:s,endOfLineState:0};function l(u,p,g){let m=p-u;C.assert(m>0,`Classification had non-positive length of ${m}`),s.push(u),s.push(m),s.push(g)}}function vRe(e,t,r){let i=e.getFlags();if(i&2885600)return i&32?11:i&384?12:i&524288?16:i&1536?t&4||t&1&&yHe(e)?14:void 0:i&2097152?vRe(r.getAliasedSymbol(e),t,r):t&2?i&64?13:i&262144?15:void 0:void 0}function yHe(e){return Et(e.declarations,t=>Jl(t)&&qg(t)===1)}function bHe(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function yRe(e){C.assert(e.spans.length%3===0);let t=e.spans,r=[];for(let i=0;i])*)(\/>)?)?/im,ne=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/img,he=t.text.substr(V,ue),ye=G.exec(he);if(!ye||!ye[3]||!(ye[3]in WM))return!1;let $=V;b($,ye[1].length),$+=ye[1].length,p($,ye[2].length,10),$+=ye[2].length,p($,ye[3].length,21),$+=ye[3].length;let Y=ye[4],oe=$;for(;;){let Ne=ne.exec(Y);if(!Ne)break;let me=$+Ne.index+Ne[1].length;me>oe&&(b(oe,me-oe),oe=me),p(oe,Ne[2].length,22),oe+=Ne[2].length,Ne[3].length&&(b(oe,Ne[3].length),oe+=Ne[3].length),p(oe,Ne[4].length,5),oe+=Ne[4].length,Ne[5].length&&(b(oe,Ne[5].length),oe+=Ne[5].length),p(oe,Ne[6].length,24),oe+=Ne[6].length}$+=ye[4].length,$>oe&&b(oe,$-oe),ye[5]&&(p($,ye[5].length,10),$+=ye[5].length);let fe=V+ue;return $=0),ne>0){let he=ue||K(V.kind,V);he&&p(G,ne,he)}return!0}function H(V){switch(V.parent&&V.parent.kind){case 286:if(V.parent.tagName===V)return 19;break;case 287:if(V.parent.tagName===V)return 20;break;case 285:if(V.parent.tagName===V)return 21;break;case 291:if(V.parent.name===V)return 22;break}}function K(V,ue){if(Fd(V))return 3;if((V===30||V===32)&&ue&&Rue(ue.parent))return 10;if(Vj(V)){if(ue){let G=ue.parent;if(V===64&&(G.kind===260||G.kind===172||G.kind===169||G.kind===291)||G.kind===226||G.kind===224||G.kind===225||G.kind===227)return 5}return 10}else{if(V===9)return 4;if(V===10)return 25;if(V===11)return ue&&ue.parent.kind===291?24:6;if(V===14)return 6;if(My(V))return 6;if(V===12)return 23;if(V===80){if(ue){switch(ue.parent.kind){case 263:return ue.parent.name===ue?11:void 0;case 168:return ue.parent.name===ue?15:void 0;case 264:return ue.parent.name===ue?13:void 0;case 266:return ue.parent.name===ue?12:void 0;case 267:return ue.parent.name===ue?14:void 0;case 169:return ue.parent.name===ue?O1(ue)?3:17:void 0}if(kg(ue.parent))return 3}return 2}}}function Z(V){if(V&&eL(i,o,V.pos,V.getFullWidth())){gRe(e,V.kind);for(let ue of V.getChildren(t))O(ue)||Z(ue)}}}var bRe,ERe=A({"src/services/classifier.ts"(){"use strict";ci(),bRe=vne([80,11,9,10,14,110,46,47,22,24,20,112,97],e=>e,()=>!0)}}),wW,EHe=A({"src/services/documentHighlights.ts"(){"use strict";ci(),(e=>{function t($,Y,oe,fe,Ne){let me=zd(oe,fe);if(me.parent&&(w_(me.parent)&&me.parent.tagName===me||K1(me.parent))){let{openingElement:ie,closingElement:ve}=me.parent.parent,Le=[ie,ve].map(({tagName:He})=>r(He,oe));return[{fileName:oe.fileName,highlightSpans:Le}]}return i(fe,me,$,Y,Ne)||o(me,oe)}e.getDocumentHighlights=t;function r($,Y){return{fileName:Y.fileName,textSpan:Rd($,Y),kind:"none"}}function i($,Y,oe,fe,Ne){let me=new Set(Ne.map(He=>He.fileName)),ie=Os.getReferenceEntriesForNode($,Y,oe,Ne,fe,void 0,me);if(!ie)return;let ve=NM(ie.map(Os.toHighlightSpan),He=>He.fileName,He=>He.span),Le=Pu(oe.useCaseSensitiveFileNames());return Vo(tS(ve.entries(),([He,Ee])=>{if(!me.has(He)){if(!oe.redirectTargetsMap.has(rl(He,oe.getCurrentDirectory(),Le)))return;let Ce=oe.getSourceFile(He);He=vn(Ne,Fe=>!!Fe.redirectInfo&&Fe.redirectInfo.redirectTarget===Ce).fileName,C.assert(me.has(He))}return{fileName:He,highlightSpans:Ee}}))}function o($,Y){let oe=s($,Y);return oe&&[{fileName:Y.fileName,highlightSpans:oe}]}function s($,Y){switch($.kind){case 101:case 93:return OS($.parent)?ne($.parent,Y):void 0;case 107:return fe($.parent,Rm,Z);case 111:return fe($.parent,SH,K);case 113:case 85:case 98:let me=$.kind===85?$.parent.parent:$.parent;return fe(me,WS,H);case 109:return fe($.parent,SN,O);case 84:case 90:return IN($.parent)||GR($.parent)?fe($.parent.parent.parent,SN,O):void 0;case 83:case 88:return fe($.parent,fC,N);case 99:case 117:case 92:return fe($.parent,ie=>ky(ie,!0),M);case 137:return oe(Pl,[137]);case 139:case 153:return oe(Ly,[139,153]);case 135:return fe($.parent,$y,V);case 134:return Ne(V($));case 127:return Ne(ue($));case 103:case 147:return;default:return kv($.kind)&&(qu($.parent)||Ml($.parent))?Ne(T($.kind,$.parent)):void 0}function oe(me,ie){return fe($.parent,me,ve=>{var Le;return Vi((Le=ai(ve,A_))==null?void 0:Le.symbol.declarations,He=>me(He)?vn(He.getChildren(Y),Ee=>wr(ie,Ee.kind)):void 0)})}function fe(me,ie,ve){return ie(me)?Ne(ve(me,Y)):void 0}function Ne(me){return me&&me.map(ie=>r(ie,Y))}}function l($){return SH($)?[$]:WS($)?xo($.catchClause?l($.catchClause):$.tryBlock&&l($.tryBlock),$.finallyBlock&&l($.finallyBlock)):ea($)?void 0:g($,l)}function u($){let Y=$;for(;Y.parent;){let oe=Y.parent;if(D1(oe)||oe.kind===312)return oe;if(WS(oe)&&oe.tryBlock===Y&&oe.catchClause)return Y;Y=oe}}function p($){return fC($)?[$]:ea($)?void 0:g($,p)}function g($,Y){let oe=[];return $.forEachChild(fe=>{let Ne=Y(fe);Ne!==void 0&&oe.push(...gA(Ne))}),oe}function m($,Y){let oe=b(Y);return!!oe&&oe===$}function b($){return zn($,Y=>{switch(Y.kind){case 255:if($.kind===251)return!1;case 248:case 249:case 250:case 247:case 246:return!$.label||ye(Y,$.label.escapedText);default:return ea(Y)&&"quit"}})}function T($,Y){return Vi(I(Y,zA($)),oe=>y2(oe,$))}function I($,Y){let oe=$.parent;switch(oe.kind){case 268:case 312:case 241:case 296:case 297:return Y&64&&Tc($)?[...$.members,$]:oe.statements;case 176:case 174:case 262:return[...oe.parameters,...pi(oe.parent)?oe.parent.members:[]];case 263:case 231:case 264:case 187:let fe=oe.members;if(Y&15){let Ne=vn(oe.members,Pl);if(Ne)return[...fe,...Ne.parameters]}else if(Y&64)return[...fe,oe];return fe;case 210:return;default:C.assertNever(oe,"Invalid container kind.")}}function R($,Y,...oe){return Y&&wr(oe,Y.kind)?($.push(Y),!0):!1}function M($){let Y=[];if(R(Y,$.getFirstToken(),99,117,92)&&$.kind===246){let oe=$.getChildren();for(let fe=oe.length-1;fe>=0&&!R(Y,oe[fe],117);fe--);}return Ke(p($.statement),oe=>{m($,oe)&&R(Y,oe.getFirstToken(),83,88)}),Y}function N($){let Y=b($);if(Y)switch(Y.kind){case 248:case 249:case 250:case 246:case 247:return M(Y);case 255:return O(Y)}}function O($){let Y=[];return R(Y,$.getFirstToken(),109),Ke($.caseBlock.clauses,oe=>{R(Y,oe.getFirstToken(),84,90),Ke(p(oe),fe=>{m($,fe)&&R(Y,fe.getFirstToken(),83)})}),Y}function H($,Y){let oe=[];if(R(oe,$.getFirstToken(),113),$.catchClause&&R(oe,$.catchClause.getFirstToken(),85),$.finallyBlock){let fe=bs($,98,Y);R(oe,fe,98)}return oe}function K($,Y){let oe=u($);if(!oe)return;let fe=[];return Ke(l(oe),Ne=>{fe.push(bs(Ne,111,Y))}),D1(oe)&&R1(oe,Ne=>{fe.push(bs(Ne,107,Y))}),fe}function Z($,Y){let oe=zp($);if(!oe)return;let fe=[];return R1(aa(oe.body,Xo),Ne=>{fe.push(bs(Ne,107,Y))}),Ke(l(oe.body),Ne=>{fe.push(bs(Ne,111,Y))}),fe}function V($){let Y=zp($);if(!Y)return;let oe=[];return Y.modifiers&&Y.modifiers.forEach(fe=>{R(oe,fe,134)}),Ho(Y,fe=>{G(fe,Ne=>{$y(Ne)&&R(oe,Ne.getFirstToken(),135)})}),oe}function ue($){let Y=zp($);if(!Y)return;let oe=[];return Ho(Y,fe=>{G(fe,Ne=>{Z7(Ne)&&R(oe,Ne.getFirstToken(),127)})}),oe}function G($,Y){Y($),!ea($)&&!pi($)&&!fd($)&&!Jl($)&&!Dm($)&&!qi($)&&Ho($,oe=>G(oe,Y))}function ne($,Y){let oe=he($,Y),fe=[];for(let Ne=0;Ne=me.end;Le--)if(!S_(Y.text.charCodeAt(Le))){ve=!1;break}if(ve){fe.push({fileName:Y.fileName,textSpan:dc(me.getStart(),ie.end),kind:"reference"}),Ne++;continue}}fe.push(r(oe[Ne],Y))}return fe}function he($,Y){let oe=[];for(;OS($.parent)&&$.parent.elseStatement===$;)$=$.parent;for(;;){let fe=$.getChildren(Y);R(oe,fe[0],101);for(let Ne=fe.length-1;Ne>=0&&!R(oe,fe[Ne],93);Ne--);if(!$.elseStatement||!OS($.elseStatement))break;$=$.elseStatement}return oe}function ye($,Y){return!!zn($.parent,oe=>J1(oe)?oe.label.escapedText===Y:"quit")}})(wW||(wW={}))}});function EO(e){return!!e.sourceFile}function ade(e,t,r){return HX(e,t,r)}function HX(e,t="",r,i){let o=new Map,s=Pu(!!e);function l(){let N=Vo(o.keys()).filter(O=>O&&O.charAt(0)==="_").map(O=>{let H=o.get(O),K=[];return H.forEach((Z,V)=>{EO(Z)?K.push({name:V,scriptKind:Z.sourceFile.scriptKind,refCount:Z.languageServiceRefCount}):Z.forEach((ue,G)=>K.push({name:V,scriptKind:G,refCount:ue.languageServiceRefCount}))}),K.sort((Z,V)=>V.refCount-Z.refCount),{bucket:O,sourceFiles:K}});return JSON.stringify(N,void 0,2)}function u(N){return typeof N.getCompilationSettings=="function"?N.getCompilationSettings():N}function p(N,O,H,K,Z,V){let ue=rl(N,t,s),G=qX(u(O));return g(N,ue,O,G,H,K,Z,V)}function g(N,O,H,K,Z,V,ue,G){return I(N,O,H,K,Z,V,!0,ue,G)}function m(N,O,H,K,Z,V){let ue=rl(N,t,s),G=qX(u(O));return b(N,ue,O,G,H,K,Z,V)}function b(N,O,H,K,Z,V,ue,G){return I(N,O,u(H),K,Z,V,!1,ue,G)}function T(N,O){let H=EO(N)?N:N.get(C.checkDefined(O,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return C.assert(O===void 0||!H||H.sourceFile.scriptKind===O,`Script kind should match provided ScriptKind:${O} and sourceFile.scriptKind: ${H?.sourceFile.scriptKind}, !entry: ${!H}`),H}function I(N,O,H,K,Z,V,ue,G,ne){var he,ye,$,Y;G=J3(N,G);let oe=u(H),fe=H===oe?void 0:H,Ne=G===6?100:as(oe),me=typeof ne=="object"?ne:{languageVersion:Ne,impliedNodeFormat:fe&&Bw(O,(Y=($=(ye=(he=fe.getCompilerHost)==null?void 0:he.call(fe))==null?void 0:ye.getModuleResolutionCache)==null?void 0:$.call(ye))==null?void 0:Y.getPackageJsonInfoCache(),fe,oe),setExternalModuleIndicator:pk(oe),jsDocParsingMode:r};me.languageVersion=Ne,C.assertEqual(r,me.jsDocParsingMode);let ie=o.size,ve=sde(K,me.impliedNodeFormat),Le=mA(o,ve,()=>new Map);if(lr){o.size>ie&&lr.instant(lr.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:oe.configFilePath,key:ve});let Me=!Su(O)&&Bc(o,(Fe,At)=>At!==ve&&Fe.has(O)&&At);Me&&lr.instant(lr.Phase.Session,"documentRegistryBucketOverlap",{path:O,key1:Me,key2:ve})}let He=Le.get(O),Ee=He&&T(He,G);if(!Ee&&i){let Me=i.getDocument(ve,O);Me&&(C.assert(ue),Ee={sourceFile:Me,languageServiceRefCount:0},Ce())}if(Ee)Ee.sourceFile.version!==V&&(Ee.sourceFile=kY(Ee.sourceFile,Z,V,Z.getChangeRange(Ee.sourceFile.scriptSnapshot)),i&&i.setDocument(ve,O,Ee.sourceFile)),ue&&Ee.languageServiceRefCount++;else{let Me=a9(N,Z,me,V,!1,G);i&&i.setDocument(ve,O,Me),Ee={sourceFile:Me,languageServiceRefCount:1},Ce()}return C.assert(Ee.languageServiceRefCount!==0),Ee.sourceFile;function Ce(){if(!He)Le.set(O,Ee);else if(EO(He)){let Me=new Map;Me.set(He.sourceFile.scriptKind,He),Me.set(G,Ee),Le.set(O,Me)}else He.set(G,Ee)}}function R(N,O,H,K){let Z=rl(N,t,s),V=qX(O);return M(Z,V,H,K)}function M(N,O,H,K){let Z=C.checkDefined(o.get(sde(O,K))),V=Z.get(N),ue=T(V,H);ue.languageServiceRefCount--,C.assert(ue.languageServiceRefCount>=0),ue.languageServiceRefCount===0&&(EO(V)?Z.delete(N):(V.delete(H),V.size===1&&Z.set(N,ir(V.values(),el))))}return{acquireDocument:p,acquireDocumentWithKey:g,updateDocument:m,updateDocumentWithKey:b,releaseDocument:R,releaseDocumentWithKey:M,getKeyForCompilationSettings:qX,getDocumentRegistryBucketKeyWithMode:sde,reportStats:l,getBuckets:()=>o}}function qX(e){return yq(e,I5)}function sde(e,t){return t?`${e}|${t}`:e}var SHe=A({"src/services/documentRegistry.ts"(){"use strict";ci()}});function lde(e,t,r,i,o,s,l){let u=ER(i),p=Pu(u),g=JX(t,r,p,l),m=JX(r,t,p,l);return hr.ChangeTracker.with({host:i,formatContext:o,preferences:s},b=>{AHe(e,b,g,t,r,i.getCurrentDirectory(),u),IHe(e,b,g,m,i,p)})}function JX(e,t,r,i){let o=r(e);return l=>{let u=i&&i.tryGetSourcePosition({fileName:l,pos:0}),p=s(u?u.fileName:l);return u?p===void 0?void 0:THe(u.fileName,p,l,r):p};function s(l){if(r(l)===o)return t;let u=AU(l,o,r);return u===void 0?void 0:t+"/"+u}}function THe(e,t,r,i){let o=UM(e,t,i);return cde(li(r),o)}function AHe(e,t,r,i,o,s,l){let{configFile:u}=e.getCompilerOptions();if(!u)return;let p=li(u.fileName),g=IC(u);if(!g)return;ude(g,(I,R)=>{switch(R){case"files":case"include":case"exclude":{if(m(I)||R!=="include"||!pd(I.initializer))return;let N=Vi(I.initializer.elements,H=>Na(H)?H.text:void 0);if(N.length===0)return;let O=q3(p,[],N,l,s);jy(C.checkDefined(O.includeFilePattern),l).test(i)&&!jy(C.checkDefined(O.includeFilePattern),l).test(o)&&t.insertNodeAfter(u,Ya(I.initializer.elements),k.createStringLiteral(T(o)));return}case"compilerOptions":ude(I.initializer,(M,N)=>{let O=eq(N);C.assert(O?.type!=="listOrElement"),O&&(O.isFilePath||O.type==="list"&&O.element.isFilePath)?m(M):N==="paths"&&ude(M.initializer,H=>{if(pd(H.initializer))for(let K of H.initializer.elements)b(K)})});return}});function m(I){let R=pd(I.initializer)?I.initializer.elements:[I.initializer],M=!1;for(let N of R)M=b(N)||M;return M}function b(I){if(!Na(I))return!1;let R=cde(p,I.text),M=r(R);return M!==void 0?(t.replaceRangeWithText(u,TRe(I,u),T(M)),!0):!1}function T(I){return bm(p,I,!l)}}function IHe(e,t,r,i,o,s){let l=e.getSourceFiles();for(let u of l){let p=r(u.fileName),g=p??u.fileName,m=li(g),b=i(u.fileName),T=b||u.fileName,I=li(T),R=p!==void 0||b!==void 0;DHe(u,t,M=>{if(!wp(M))return;let N=cde(I,M),O=r(N);return O===void 0?void 0:v1(bm(m,O,s))},M=>{let N=e.getTypeChecker().getSymbolAtLocation(M);if(N?.declarations&&N.declarations.some(H=>Lu(H)))return;let O=b!==void 0?SRe(M,t2(M.text,T,e.getCompilerOptions(),o),r,l):RHe(N,M,u,e,o,r);return O!==void 0&&(O.updated||R&&wp(M.text))?nE.updateModuleSpecifier(e.getCompilerOptions(),u,g,O.newFileName,ZS(e,o),M.text):void 0})}}function xHe(e,t){return va(Zr(e,t))}function cde(e,t){return v1(xHe(e,t))}function RHe(e,t,r,i,o,s){if(e){let l=vn(e.declarations,no).fileName,u=s(l);return u===void 0?{newFileName:l,updated:!1}:{newFileName:u,updated:!0}}else{let l=i.getModeForUsageLocation(r,t),u=o.resolveModuleNameLiterals||!o.resolveModuleNames?i.getResolvedModuleFromModuleSpecifier(t):o.getResolvedModuleWithFailedLookupLocationsFromCache&&o.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,r.fileName,l);return SRe(t,u,s,i.getSourceFiles())}}function SRe(e,t,r,i){if(!t)return;if(t.resolvedModule){let p=u(t.resolvedModule.resolvedFileName);if(p)return p}let o=Ke(t.failedLookupLocations,s)||wp(e.text)&&Ke(t.failedLookupLocations,l);if(o)return o;return t.resolvedModule&&{newFileName:t.resolvedModule.resolvedFileName,updated:!1};function s(p){let g=r(p);return g&&vn(i,m=>m.fileName===g)?l(p):void 0}function l(p){return Sl(p,"/package.json")?void 0:u(p)}function u(p){let g=r(p);return g&&{newFileName:g,updated:!0}}}function DHe(e,t,r,i){for(let o of e.referencedFiles||et){let s=r(o.fileName);s!==void 0&&s!==e.text.slice(o.pos,o.end)&&t.replaceRangeWithText(e,o,s)}for(let o of e.imports){let s=i(o);s!==void 0&&s!==o.text&&t.replaceRangeWithText(e,TRe(o,e),s)}}function TRe(e,t){return Tf(e.getStart(t)+1,e.end-1)}function ude(e,t){if(wa(e))for(let r of e.properties)_c(r)&&Na(r.name)&&t(r,r.name.text)}var CHe=A({"src/services/getEditsForFileRename.ts"(){"use strict";ci()}});function hP(e,t){return{kind:e,isCaseSensitive:t}}function dde(e){let t=new Map,r=e.trim().split(".").map(i=>LHe(i.trim()));if(r.length===1&&r[0].totalTextChunk.text==="")return{getMatchForLastSegmentOfPattern:()=>hP(2,!0),getFullMatch:()=>hP(2,!0),patternContainsDots:!1};if(!r.some(i=>!i.subWordTextChunks.length))return{getFullMatch:(i,o)=>NHe(i,o,r,t),getMatchForLastSegmentOfPattern:i=>pde(i,Ya(r),t),patternContainsDots:r.length>1}}function NHe(e,t,r,i){if(!pde(t,Ya(r),i)||r.length-1>e.length)return;let s;for(let l=r.length-2,u=e.length-1;l>=0;l-=1,u-=1)s=xRe(s,pde(e[u],r[l],i));return s}function ARe(e,t){let r=t.get(e);return r||t.set(e,r=vde(e)),r}function IRe(e,t,r){let i=kHe(e,t.textLowerCase);if(i===0)return hP(t.text.length===e.length?0:1,uo(e,t.text));if(t.isLowerCase){if(i===-1)return;let o=ARe(e,r);for(let s of o)if(fde(e,s,t.text,!0))return hP(2,fde(e,s,t.text,!1));if(t.text.length0)return hP(2,!0);if(t.characterSpans.length>0){let o=ARe(e,r),s=RRe(e,o,t,!1)?!0:RRe(e,o,t,!0)?!1:void 0;if(s!==void 0)return hP(3,s)}}}function pde(e,t,r){if(KX(t.totalTextChunk.text,s=>s!==32&&s!==42)){let s=IRe(e,t.totalTextChunk,r);if(s)return s}let i=t.subWordTextChunks,o;for(let s of i)o=xRe(o,IRe(e,s,r));return o}function xRe(e,t){return sG([e,t],PHe)}function PHe(e,t){return e===void 0?1:t===void 0?-1:tl(e.kind,t.kind)||Ay(!e.isCaseSensitive,!t.isCaseSensitive)}function fde(e,t,r,i,o={start:0,length:r.length}){return o.length<=t.length&&PRe(0,o.length,s=>MHe(r.charCodeAt(o.start+s),e.charCodeAt(t.start+s),i))}function MHe(e,t,r){return r?mde(e)===mde(t):e===t}function RRe(e,t,r,i){let o=r.characterSpans,s=0,l=0,u,p;for(;;){if(l===o.length)return!0;if(s===t.length)return!1;let g=t[s],m=!1;for(;l=65&&e<=90)return!0;if(e<127||!l6(e,99))return!1;let t=String.fromCharCode(e);return t===t.toUpperCase()}function DRe(e){if(e>=97&&e<=122)return!0;if(e<127||!l6(e,99))return!1;let t=String.fromCharCode(e);return t===t.toLowerCase()}function kHe(e,t){let r=e.length-t.length;for(let i=0;i<=r;i++)if(KX(t,(o,s)=>mde(e.charCodeAt(s+i))===o))return i;return-1}function mde(e){return e>=65&&e<=90?97+(e-65):e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function _de(e){return e>=48&&e<=57}function wHe(e){return A2(e)||DRe(e)||_de(e)||e===95||e===36}function OHe(e){let t=[],r=0,i=0;for(let o=0;o0&&(t.push(hde(e.substr(r,i))),i=0)}return i>0&&t.push(hde(e.substr(r,i))),t}function hde(e){let t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:gde(e)}}function gde(e){return CRe(e,!1)}function vde(e){return CRe(e,!0)}function CRe(e,t){let r=[],i=0;for(let o=1;oyde(i)&&i!==95,t,r)}function FHe(e,t,r){return t!==r&&t+1t(e.charCodeAt(o),o))}var OW,zHe=A({"src/services/patternMatcher.ts"(){"use strict";ci(),OW=(e=>(e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",e))(OW||{})}});function MRe(e,t=!0,r=!1){let i={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},o=[],s,l,u,p=0,g=!1;function m(){return l=u,u=$u.scan(),u===19?p++:u===20&&p--,u}function b(){let V=$u.getTokenValue(),ue=$u.getTokenStart();return{fileName:V,pos:ue,end:ue+V.length}}function T(){s||(s=[]),s.push({ref:b(),depth:p})}function I(){o.push(b()),R()}function R(){p===0&&(g=!0)}function M(){let V=$u.getToken();return V===138?(V=m(),V===144&&(V=m(),V===11&&T()),!0):!1}function N(){if(l===25)return!1;let V=$u.getToken();if(V===102){if(V=m(),V===21){if(V=m(),V===11||V===15)return I(),!0}else{if(V===11)return I(),!0;if(V===156&&$u.lookAhead(()=>{let G=$u.scan();return G!==161&&(G===42||G===19||G===80||Fd(G))})&&(V=m()),V===80||Fd(V))if(V=m(),V===161){if(V=m(),V===11)return I(),!0}else if(V===64){if(H(!0))return!0}else if(V===28)V=m();else return!0;if(V===19){for(V=m();V!==20&&V!==1;)V=m();V===20&&(V=m(),V===161&&(V=m(),V===11&&I()))}else V===42&&(V=m(),V===130&&(V=m(),(V===80||Fd(V))&&(V=m(),V===161&&(V=m(),V===11&&I()))))}return!0}return!1}function O(){let V=$u.getToken();if(V===95){if(R(),V=m(),V===156&&$u.lookAhead(()=>{let G=$u.scan();return G===42||G===19})&&(V=m()),V===19){for(V=m();V!==20&&V!==1;)V=m();V===20&&(V=m(),V===161&&(V=m(),V===11&&I()))}else if(V===42)V=m(),V===161&&(V=m(),V===11&&I());else if(V===102&&(V=m(),V===156&&$u.lookAhead(()=>{let G=$u.scan();return G===80||Fd(G)})&&(V=m()),(V===80||Fd(V))&&(V=m(),V===64&&H(!0))))return!0;return!0}return!1}function H(V,ue=!1){let G=V?m():$u.getToken();return G===149?(G=m(),G===21&&(G=m(),(G===11||ue&&G===15)&&I()),!0):!1}function K(){let V=$u.getToken();if(V===80&&$u.getTokenValue()==="define"){if(V=m(),V!==21)return!0;if(V=m(),V===11||V===15)if(V=m(),V===28)V=m();else return!0;if(V!==23)return!0;for(V=m();V!==24&&V!==1;)(V===11||V===15)&&I(),V=m();return!0}return!1}function Z(){for($u.setText(e),m();$u.getToken()!==1;){if($u.getToken()===16){let V=[$u.getToken()];e:for(;De(V);){let ue=$u.scan();switch(ue){case 1:break e;case 102:N();break;case 16:V.push(ue);break;case 19:De(V)&&V.push(ue);break;case 20:De(V)&&(Zs(V)===16?$u.reScanTemplateToken(!1)===18&&V.pop():V.pop());break}}m()}M()||N()||O()||r&&(H(!1,!0)||K())||m()}$u.setText(void 0)}if(t&&Z(),KH(i,e),XH(i,$a),g){if(s)for(let V of s)o.push(V.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:o,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:void 0}}else{let V;if(s)for(let ue of s)ue.depth===0?(V||(V=[]),V.push(ue.ref.fileName)):o.push(ue.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:o,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:V}}}var BHe=A({"src/services/preProcess.ts"(){"use strict";ci()}});function bde(e){let t=Pu(e.useCaseSensitiveFileNames()),r=e.getCurrentDirectory(),i=new Map,o=new Map;return{tryGetSourcePosition:u,tryGetGeneratedPosition:p,toLineColumnOffset:T,clearCache:I};function s(R){return rl(R,r,t)}function l(R,M){let N=s(R),O=o.get(N);if(O)return O;let H;if(e.getDocumentPositionMapper)H=e.getDocumentPositionMapper(R,M);else if(e.readFile){let K=b(R);H=K&&XX({getSourceFileLike:b,getCanonicalFileName:t,log:Z=>e.log(Z)},R,Vq(K.text,Mg(K)),Z=>!e.fileExists||e.fileExists(Z)?e.readFile(Z):void 0)}return o.set(N,H||Y5),H||Y5}function u(R){if(!Su(R.fileName)||!g(R.fileName))return;let N=l(R.fileName).getSourcePosition(R);return!N||N===R?void 0:u(N)||N}function p(R){if(Su(R.fileName))return;let M=g(R.fileName);if(!M)return;let N=e.getProgram();if(N.isSourceOfProjectReferenceRedirect(M.fileName))return;let O=N.getCompilerOptions(),H=Ps(O),K=H?Td(H)+".d.ts":y3(R.fileName,N.getCompilerOptions(),r,N.getCommonSourceDirectory(),t);if(K===void 0)return;let Z=l(K,R.fileName).getGeneratedPosition(R);return Z===R?void 0:Z}function g(R){let M=e.getProgram();if(!M)return;let N=s(R),O=M.getSourceFileByPath(N);return O&&O.resolvedPath===N?O:void 0}function m(R){let M=s(R),N=i.get(M);if(N!==void 0)return N||void 0;if(!e.readFile||e.fileExists&&!e.fileExists(R)){i.set(M,!1);return}let O=e.readFile(R),H=O?GHe(O):!1;return i.set(M,H),H||void 0}function b(R){return e.getSourceFileLike?e.getSourceFileLike(R):g(R)||m(R)}function T(R,M){return b(R).getLineAndCharacterOfPosition(M)}function I(){i.clear(),o.clear()}}function XX(e,t,r,i){let o=ple(r);if(o){let u=kRe.exec(o);if(u){if(u[1]){let p=u[1];return LRe(e,poe(gu,p),t)}o=void 0}}let s=[];o&&s.push(o),s.push(t+".map");let l=o&&bo(o,li(t));for(let u of s){let p=bo(u,li(t)),g=i(p,l);if(wo(g))return LRe(e,g,p);if(g!==void 0)return g||void 0}}function LRe(e,t,r){let i=jq(t);if(!(!i||!i.sources||!i.file||!i.mappings)&&!(i.sourcesContent&&i.sourcesContent.some(wo)))return _le(e,i,r)}function GHe(e,t){return{text:e,lineMap:t,getLineAndCharacterOfPosition(r){return zx(Mg(this),r)}}}var kRe,VHe=A({"src/services/sourcemaps.ts"(){"use strict";ci(),kRe=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+/=]+)$)?/}});function YX(e,t,r){var i;t.getSemanticDiagnostics(e,r);let o=[],s=t.getTypeChecker();!(e.impliedNodeFormat===1||Ec(e.fileName,[".cts",".cjs"]))&&e.commonJsModuleIndicator&&(Mue(t)||oX(t.getCompilerOptions()))&&jHe(e)&&o.push(Or(JHe(e.commonJsModuleIndicator),f.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));let u=ld(e);if(eY.clear(),p(e),NS(t.getCompilerOptions()))for(let g of e.imports){let m=CC(g),b=UHe(m);if(!b)continue;let T=(i=t.getResolvedModuleFromModuleSpecifier(g))==null?void 0:i.resolvedModule,I=T&&t.getSourceFile(T.resolvedFileName);I&&I.externalModuleIndicator&&I.externalModuleIndicator!==!0&&Ll(I.externalModuleIndicator)&&I.externalModuleIndicator.isExportEquals&&o.push(Or(b,f.Import_may_be_converted_to_a_default_import))}return Jr(o,e.bindSuggestionDiagnostics),Jr(o,t.getSuggestionDiagnostics(e,r)),o.sort((g,m)=>g.start-m.start);function p(g){if(u)XHe(g,s)&&o.push(Or(Oi(g.parent)?g.parent.name:g,f.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(Ml(g)&&g.parent===e&&g.declarationList.flags&2&&g.declarationList.declarations.length===1){let b=g.declarationList.declarations[0].initializer;b&&Sd(b,!0)&&o.push(Or(b,f.require_call_may_be_converted_to_an_import))}let m=Fu.getJSDocTypedefNodes(g);for(let b of m)o.push(Or(b,f.JSDoc_typedef_may_be_converted_to_TypeScript_type));Fu.parameterShouldGetTypeFromJSDoc(g)&&o.push(Or(g.name||g,f.JSDoc_types_may_be_moved_to_TypeScript_types))}ZX(g)&&HHe(g,s,o),g.forEachChild(p)}}function jHe(e){return e.statements.some(t=>{switch(t.kind){case 243:return t.declarationList.declarations.some(r=>!!r.initializer&&Sd(wRe(r.initializer),!0));case 244:{let{expression:r}=t;if(!_r(r))return Sd(r,!0);let i=Wl(r);return i===1||i===2}default:return!1}})}function wRe(e){return zr(e)?wRe(e.expression):e}function UHe(e){switch(e.kind){case 272:let{importClause:t,moduleSpecifier:r}=e;return t&&!t.name&&t.namedBindings&&t.namedBindings.kind===274&&Na(r)?t.namedBindings.name:void 0;case 271:return e.name;default:return}}function HHe(e,t,r){qHe(e,t)&&!eY.has(zRe(e))&&r.push(Or(!e.name&&Oi(e.parent)&&Ve(e.parent.name)?e.parent.name:e,f.This_may_be_converted_to_an_async_function))}function qHe(e,t){return!LC(e)&&e.body&&Xo(e.body)&&KHe(e.body,t)&&$X(e,t)}function $X(e,t){let r=t.getSignatureFromDeclaration(e),i=r?t.getReturnTypeOfSignature(r):void 0;return!!i&&!!t.getPromisedTypeOfPromise(i)}function JHe(e){return _r(e)?e.left:e}function KHe(e,t){return!!R1(e,r=>FW(r,t))}function FW(e,t){return Rm(e)&&!!e.expression&&QX(e.expression,t)}function QX(e,t){if(!ORe(e)||!FRe(e)||!e.arguments.every(i=>WRe(i,t)))return!1;let r=e.expression.expression;for(;ORe(r)||zr(r);)if(la(r)){if(!FRe(r)||!r.arguments.every(i=>WRe(i,t)))return!1;r=r.expression.expression}else r=r.expression;return!0}function ORe(e){return la(e)&&(Qw(e,"then")||Qw(e,"catch")||Qw(e,"finally"))}function FRe(e){let t=e.expression.name.text,r=t==="then"?2:t==="catch"||t==="finally"?1:0;return e.arguments.length>r?!1:e.arguments.lengthi.kind===106||Ve(i)&&i.text==="undefined")}function WRe(e,t){switch(e.kind){case 262:case 218:if(Gc(e)&1)return!1;case 219:eY.set(zRe(e),!0);case 106:return!0;case 80:case 211:{let i=t.getSymbolAtLocation(e);return i?t.isUndefinedSymbol(i)||Et(bu(i,t).declarations,o=>ea(o)||Oy(o)&&!!o.initializer&&ea(o.initializer)):!1}default:return!1}}function zRe(e){return`${e.pos.toString()}:${e.end.toString()}`}function XHe(e,t){var r,i,o,s;if(ws(e)){if(Oi(e.parent)&&((r=e.symbol.members)!=null&&r.size))return!0;let l=t.getSymbolOfExpando(e,!1);return!!(l&&((i=l.exports)!=null&&i.size||(o=l.members)!=null&&o.size))}return Sc(e)?!!((s=e.symbol.members)!=null&&s.size):!1}function ZX(e){switch(e.kind){case 262:case 174:case 218:case 219:return!0;default:return!1}}var eY,YHe=A({"src/services/suggestionDiagnostics.ts"(){"use strict";ci(),eY=new Map}});function Ede(e,t){let r=[],i=t.compilerOptions?tY(t.compilerOptions,r):{},o=o9();for(let T in o)Rs(o,T)&&i[T]===void 0&&(i[T]=o[T]);for(let T of mq)i.verbatimModuleSyntax&&GRe.has(T.name)||(i[T.name]=T.transpileOptionValue);i.suppressOutputPathCheck=!0,i.allowNonTsExtensions=!0;let s=Gv(i),l={getSourceFile:T=>T===va(u)?p:void 0,writeFile:(T,I)=>{Tl(T,".map")?(C.assertEqual(m,void 0,"Unexpected multiple source map outputs, file:",T),m=I):(C.assertEqual(g,void 0,"Unexpected multiple outputs, file:",T),g=I)},getDefaultLibFileName:()=>"lib.d.ts",useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:T=>T,getCurrentDirectory:()=>"",getNewLine:()=>s,fileExists:T=>T===u,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},u=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),p=rw(u,e,{languageVersion:as(i),impliedNodeFormat:Bw(rl(u,"",l.getCanonicalFileName),void 0,l,i),setExternalModuleIndicator:pk(i),jsDocParsingMode:t.jsDocParsingMode??0});t.moduleName&&(p.moduleName=t.moduleName),t.renamedDependencies&&(p.renamedDependencies=new Map(Object.entries(t.renamedDependencies)));let g,m,b=vF([u],i,l);return t.reportDiagnostics&&(Jr(r,b.getSyntacticDiagnostics(p)),Jr(r,b.getOptionsDiagnostics())),b.emit(void 0,void 0,void 0,void 0,t.transformers),g===void 0?C.fail("Output generation failed"):{outputText:g,diagnostics:r,sourceMapText:m}}function BRe(e,t,r,i,o){let s=Ede(e,{compilerOptions:t,fileName:r,reportDiagnostics:!!i,moduleName:o});return Jr(i,s.diagnostics),s.outputText}function tY(e,t){Sde=Sde||tr(ug,r=>typeof r.type=="object"&&!Bc(r.type,i=>typeof i!="number")),e=ZK(e);for(let r of Sde){if(!Rs(e,r.name))continue;let i=e[r.name];wo(i)?e[r.name]=v5(r,i,t):Bc(r.type,o=>o===i)||t.push(fse(r))}return e}var GRe,Sde,$He=A({"src/services/transpile.ts"(){"use strict";ci(),GRe=new Set(["isolatedModules","preserveValueImports","importsNotUsedAsValues"])}});function VRe(e,t,r,i,o,s,l){let u=dde(i);if(!u)return et;let p=[],g=e.length===1?e[0]:void 0;for(let m of e)r.throwIfCancellationRequested(),!(s&&m.isDeclarationFile)&&(jRe(m,!!l,g)||m.getNamedDeclarations().forEach((b,T)=>{QHe(u,T,b,t,m.fileName,!!l,g,p)}));return p.sort(nqe),(o===void 0?p:p.slice(0,o)).map(rqe)}function jRe(e,t,r){return e!==r&&t&&(vO(e.path)||e.hasNoDefaultLib)}function QHe(e,t,r,i,o,s,l,u){let p=e.getMatchForLastSegmentOfPattern(t);if(p){for(let g of r)if(ZHe(g,i,s,l))if(e.patternContainsDots){let m=e.getFullMatch(tqe(g),t);m&&u.push({name:t,fileName:o,matchKind:m.kind,isCaseSensitive:m.isCaseSensitive,declaration:g})}else u.push({name:t,fileName:o,matchKind:p.kind,isCaseSensitive:p.isCaseSensitive,declaration:g})}}function ZHe(e,t,r,i){var o;switch(e.kind){case 273:case 276:case 271:let s=t.getSymbolAtLocation(e.name),l=t.getAliasedSymbol(s);return s.escapedName!==l.escapedName&&!((o=l.declarations)!=null&&o.every(u=>jRe(u.getSourceFile(),r,i)));default:return!0}}function eqe(e,t){let r=Oo(e);return!!r&&(URe(r,t)||r.kind===167&&Tde(r.expression,t))}function Tde(e,t){return URe(e,t)||zr(e)&&(t.push(e.name.text),!0)&&Tde(e.expression,t)}function URe(e,t){return R_(e)&&(t.push(Zf(e)),!0)}function tqe(e){let t=[],r=Oo(e);if(r&&r.kind===167&&!Tde(r.expression,t))return et;t.shift();let i=QS(e);for(;i;){if(!eqe(i,t))return et;i=QS(i)}return t.reverse()}function nqe(e,t){return tl(e.matchKind,t.matchKind)||MM(e.name,t.name)}function rqe(e){let t=e.declaration,r=QS(t),i=r&&Oo(r);return{name:e.name,kind:sE(t),kindModifiers:aP(t),matchKind:OW[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:Rd(t),containerName:i?i.text:"",containerKind:i?sE(r):""}}var iqe=A({"src/services/navigateTo.ts"(){"use strict";ci()}}),Ade={};X(Ade,{getNavigateToItems:()=>VRe});var HRe=A({"src/services/_namespaces/ts.NavigateTo.ts"(){"use strict";iqe()}});function qRe(e,t){oY=t,SO=e;try{return Ft(cqe(YRe(e)),uqe)}finally{KRe()}}function JRe(e,t){oY=t,SO=e;try{return o2e(YRe(e))}finally{KRe()}}function KRe(){SO=void 0,oY=void 0,TO=[],Zv=void 0,aY=[]}function WW(e){return gP(e.getText(SO))}function nY(e){return e.node.kind}function XRe(e,t){e.children?e.children.push(t):e.children=[t]}function YRe(e){C.assert(!TO.length);let t={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};Zv=t;for(let r of e.statements)CI(r);return C0(),C.assert(!Zv&&!TO.length),t}function uE(e,t){XRe(Zv,Ide(e,t))}function Ide(e,t){return{node:e,name:t||(qu(e)||bt(e)?Oo(e):void 0),additionalNodes:void 0,parent:Zv,children:void 0,indent:Zv.indent+1}}function $Re(e){I2||(I2=new Map),I2.set(e,!0)}function QRe(e){for(let t=0;t0;i--){let o=r[i];dE(e,o)}return[r.length-1,r[0]]}function dE(e,t){let r=Ide(e,t);XRe(Zv,r),TO.push(Zv),Lde.push(I2),I2=void 0,Zv=r}function C0(){Zv.children&&(rY(Zv.children,Zv),Dde(Zv.children)),Zv=TO.pop(),I2=Lde.pop()}function N0(e,t,r){dE(e,r),CI(t),C0()}function e2e(e){e.initializer&&pqe(e.initializer)?(dE(e),Ho(e.initializer,CI),C0()):N0(e,e.initializer)}function xde(e){let t=Oo(e);if(t===void 0)return!1;if(Za(t)){let r=t.expression;return zl(r)||hp(r)||Qp(r)}return!!t}function CI(e){if(oY.throwIfCancellationRequested(),!(!e||AA(e)))switch(e.kind){case 176:let t=e;N0(t,t.body);for(let l of t.parameters)pp(l,t)&&uE(l);break;case 174:case 177:case 178:case 173:xde(e)&&N0(e,e.body);break;case 172:xde(e)&&e2e(e);break;case 171:xde(e)&&uE(e);break;case 273:let r=e;r.name&&uE(r.name);let{namedBindings:i}=r;if(i)if(i.kind===274)uE(i);else for(let l of i.elements)uE(l);break;case 304:N0(e,e.name);break;case 305:let{expression:o}=e;Ve(o)?uE(e,o):uE(e);break;case 208:case 303:case 260:{let l=e;ta(l.name)?CI(l.name):e2e(l);break}case 262:let s=e.name;s&&Ve(s)&&$Re(s.text),N0(e,e.body);break;case 219:case 218:N0(e,e.body);break;case 266:dE(e);for(let l of e.members)dqe(l)||uE(l);C0();break;case 263:case 231:case 264:dE(e);for(let l of e.members)CI(l);C0();break;case 267:N0(e,s2e(e).body);break;case 277:{let l=e.expression,u=wa(l)||la(l)?l:Bs(l)||ws(l)?l.body:void 0;u?(dE(e),CI(u),C0()):uE(e);break}case 281:case 271:case 181:case 179:case 180:case 265:uE(e);break;case 213:case 226:{let l=Wl(e);switch(l){case 1:case 2:N0(e,e.right);return;case 6:case 3:{let u=e,p=u.left,g=l===3?p.expression:p,m=0,b;Ve(g.expression)?($Re(g.expression.text),b=g.expression):[m,b]=ZRe(u,g.expression),l===6?wa(u.right)&&u.right.properties.length>0&&(dE(u,b),Ho(u.right,CI),C0()):ws(u.right)||Bs(u.right)?N0(e,u.right,b):(dE(u,b),N0(e,u.right,p.name),C0()),QRe(m);return}case 7:case 9:{let u=e,p=l===7?u.arguments[0]:u.arguments[0].expression,g=u.arguments[1],[m,b]=ZRe(e,p);dE(e,b),dE(e,dt(k.createIdentifier(g.text),g)),CI(e.arguments[2]),C0(),C0(),QRe(m);return}case 5:{let u=e,p=u.left,g=p.expression;if(Ve(g)&&Fg(p)!=="prototype"&&I2&&I2.has(g.text)){ws(u.right)||Bs(u.right)?N0(e,u.right,g):N1(p)&&(dE(u,g),N0(u.left,u.right,zL(p)),C0());return}break}case 4:case 0:case 8:break;default:C.assertNever(l)}}default:Op(e)&&Ke(e.jsDoc,l=>{Ke(l.tags,u=>{Qf(u)&&uE(u)})}),Ho(e,CI)}}function rY(e,t){let r=new Map;Bi(e,(i,o)=>{let s=i.name||Oo(i.node),l=s&&WW(s);if(!l)return!0;let u=r.get(l);if(!u)return r.set(l,i),!0;if(u instanceof Array){for(let p of u)if(t2e(p,i,o,t))return!1;return u.push(i),!0}else{let p=u;return t2e(p,i,o,t)?!1:(r.set(l,[p,i]),!0)}})}function oqe(e,t,r,i){function o(u){return ws(u)||Sc(u)||Oi(u)}let s=_r(t.node)||la(t.node)?Wl(t.node):0,l=_r(e.node)||la(e.node)?Wl(e.node):0;if(vP[s]&&vP[l]||o(e.node)&&vP[s]||o(t.node)&&vP[l]||Tc(e.node)&&Rde(e.node)&&vP[s]||Tc(t.node)&&vP[l]||Tc(e.node)&&Rde(e.node)&&o(t.node)||Tc(t.node)&&o(e.node)&&Rde(e.node)){let u=e.additionalNodes&&Zs(e.additionalNodes)||e.node;if(!Tc(e.node)&&!Tc(t.node)||o(e.node)||o(t.node)){let g=o(e.node)?e.node:o(t.node)?t.node:void 0;if(g!==void 0){let m=dt(k.createConstructorDeclaration(void 0,[],void 0),g),b=Ide(m);b.indent=e.indent+1,b.children=e.node===g?e.children:t.children,e.children=e.node===g?xo([b],t.children||[t]):xo(e.children||[{...e}],[b])}else(e.children||t.children)&&(e.children=xo(e.children||[{...e}],t.children||[t]),e.children&&(rY(e.children,e),Dde(e.children)));u=e.node=dt(k.createClassDeclaration(void 0,e.name||k.createIdentifier("__class__"),void 0,void 0,[]),e.node)}else e.children=xo(e.children,t.children),e.children&&rY(e.children,e);let p=t.node;return i.children[r-1].node.end===u.end?dt(u,{pos:u.pos,end:p.end}):(e.additionalNodes||(e.additionalNodes=[]),e.additionalNodes.push(dt(k.createClassDeclaration(void 0,e.name||k.createIdentifier("__class__"),void 0,void 0,[]),t.node))),!0}return s!==0}function t2e(e,t,r,i){return oqe(e,t,r,i)?!0:aqe(e.node,t.node,i)?(sqe(e,t),!0):!1}function aqe(e,t,r){if(e.kind!==t.kind||e.parent!==t.parent&&!(n2e(e,r)&&n2e(t,r)))return!1;switch(e.kind){case 172:case 174:case 177:case 178:return sa(e)===sa(t);case 267:return r2e(e,t)&&Pde(e)===Pde(t);default:return!0}}function Rde(e){return!!(e.flags&16)}function n2e(e,t){let r=k_(e.parent)?e.parent.parent:e.parent;return r===t.node||wr(t.additionalNodes,r)}function r2e(e,t){return!e.body||!t.body?e.body===t.body:e.body.kind===t.body.kind&&(e.body.kind!==267||r2e(e.body,t.body))}function sqe(e,t){e.additionalNodes=e.additionalNodes||[],e.additionalNodes.push(t.node),t.additionalNodes&&e.additionalNodes.push(...t.additionalNodes),e.children=xo(e.children,t.children),e.children&&(rY(e.children,e),Dde(e.children))}function Dde(e){e.sort(lqe)}function lqe(e,t){return MM(i2e(e.node),i2e(t.node))||tl(nY(e),nY(t))}function i2e(e){if(e.kind===267)return a2e(e);let t=Oo(e);if(t&&ic(t)){let r=TS(t);return r&&Hi(r)}switch(e.kind){case 218:case 219:case 231:return c2e(e);default:return}}function Cde(e,t){if(e.kind===267)return gP(a2e(e));if(t){let r=Ve(t)?t.text:Ys(t)?`[${WW(t.argumentExpression)}]`:WW(t);if(r.length>0)return gP(r)}switch(e.kind){case 312:let r=e;return ac(r)?`"${rg(rc(Td(va(r.fileName))))}"`:"";case 277:return Ll(e)&&e.isExportEquals?"export=":"default";case 219:case 262:case 218:case 263:case 231:return Gy(e)&2048?"default":c2e(e);case 176:return"constructor";case 180:return"new()";case 179:return"()";case 181:return"[]";default:return""}}function cqe(e){let t=[];function r(o){if(i(o)&&(t.push(o),o.children))for(let s of o.children)r(s)}return r(e),t;function i(o){if(o.children)return!0;switch(nY(o)){case 263:case 231:case 266:case 264:case 267:case 312:case 265:case 353:case 345:return!0;case 219:case 262:case 218:return s(o);default:return!1}function s(l){if(!l.node.body)return!1;switch(nY(l.parent)){case 268:case 312:case 174:case 176:return!0;default:return!1}}}}function o2e(e){return{text:Cde(e.node,e.name),kind:sE(e.node),kindModifiers:l2e(e.node),spans:Nde(e),nameSpan:e.name&&Mde(e.name),childItems:Ft(e.children,o2e)}}function uqe(e){return{text:Cde(e.node,e.name),kind:sE(e.node),kindModifiers:l2e(e.node),spans:Nde(e),childItems:Ft(e.children,t)||aY,indent:e.indent,bolded:!1,grayed:!1};function t(r){return{text:Cde(r.node,r.name),kind:sE(r.node),kindModifiers:aP(r.node),spans:Nde(r),childItems:aY,indent:0,bolded:!1,grayed:!1}}}function Nde(e){let t=[Mde(e.node)];if(e.additionalNodes)for(let r of e.additionalNodes)t.push(Mde(r));return t}function a2e(e){return Lu(e)?pc(e.name):Pde(e)}function Pde(e){let t=[Zf(e.name)];for(;e.body&&e.body.kind===267;)e=e.body,t.push(Zf(e.name));return t.join(".")}function s2e(e){return e.body&&Jl(e.body)?s2e(e.body):e}function dqe(e){return!e.name||e.name.kind===167}function Mde(e){return e.kind===312?ib(e):Rd(e,SO)}function l2e(e){return e.parent&&e.parent.kind===260&&(e=e.parent),aP(e)}function c2e(e){let{parent:t}=e;if(e.name&&vL(e.name)>0)return gP(Ds(e.name));if(Oi(t))return gP(Ds(t.name));if(_r(t)&&t.operatorToken.kind===64)return WW(t.left).replace(d2e,"");if(_c(t))return WW(t.name);if(Gy(e)&2048)return"default";if(pi(e))return"";if(la(t)){let r=u2e(t.expression);if(r!==void 0){if(r=gP(r),r.length>iY)return`${r} callback`;let i=gP(Vi(t.arguments,o=>us(o)||DA(o)?o.getText(SO):void 0).join(", "));return`${r}(${i}) callback`}}return""}function u2e(e){if(Ve(e))return e.text;if(zr(e)){let t=u2e(e.expression),r=e.name.text;return t===void 0?r:`${t}.${r}`}else return}function pqe(e){switch(e.kind){case 219:case 218:case 231:return!0;default:return!1}}function gP(e){return e=e.length>iY?e.substring(0,iY)+"...":e,e.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}var d2e,iY,oY,SO,TO,Zv,Lde,I2,aY,vP,fqe=A({"src/services/navigationBar.ts"(){"use strict";ci(),d2e=/\s+/g,iY=150,TO=[],Lde=[],aY=[],vP={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1}}}),kde={};X(kde,{getNavigationBarItems:()=>qRe,getNavigationTree:()=>JRe});var p2e=A({"src/services/_namespaces/ts.NavigationBar.ts"(){"use strict";fqe()}});function dg(e,t){sY.set(e,t)}function mqe(e,t){return Vo(qf(sY.values(),r=>{var i;return e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!((i=r.kinds)!=null&&i.some(o=>P0(o,e.kind)))?void 0:r.getAvailableActions(e,t)}))}function _qe(e,t,r,i){let o=sY.get(t);return o&&o.getEditsForAction(e,r,i)}var sY,f2e=A({"src/services/refactorProvider.ts"(){"use strict";ci(),xh(),sY=new Map}});function m2e(e,t=!0){let{file:r,program:i}=e,o=DI(e),s=po(r,o.start),l=s.parent&&Gy(s.parent)&32&&t?s.parent:dO(s,r,o);if(!l||!no(l.parent)&&!(k_(l.parent)&&Lu(l.parent.parent)))return{error:Bo(f.Could_not_find_export_statement)};let u=i.getTypeChecker(),p=Eqe(l.parent,u),g=Gy(l)||(Ll(l)&&!l.isExportEquals?2080:0),m=!!(g&2048);if(!(g&32)||!m&&p.exports.has("default"))return{error:Bo(f.This_file_already_has_a_default_export)};let b=T=>Ve(T)&&u.getSymbolAtLocation(T)?void 0:{error:Bo(f.Can_only_convert_named_export)};switch(l.kind){case 262:case 263:case 264:case 266:case 265:case 267:{let T=l;return T.name?b(T.name)||{exportNode:T,exportName:T.name,wasDefault:m,exportingModuleSymbol:p}:void 0}case 243:{let T=l;if(!(T.declarationList.flags&2)||T.declarationList.declarations.length!==1)return;let I=Ha(T.declarationList.declarations);return I.initializer?(C.assert(!m,"Can't have a default flag here"),b(I.name)||{exportNode:T,exportName:I.name,wasDefault:m,exportingModuleSymbol:p}):void 0}case 277:{let T=l;return T.isExportEquals?void 0:b(T.expression)||{exportNode:T,exportName:T.expression,wasDefault:m,exportingModuleSymbol:p}}default:return}}function hqe(e,t,r,i,o){gqe(e,r,i,t.getTypeChecker()),vqe(t,r,i,o)}function gqe(e,{wasDefault:t,exportNode:r,exportName:i},o,s){if(t)if(Ll(r)&&!r.isExportEquals){let l=r.expression,u=_2e(l.text,l.text);o.replaceNode(e,r,k.createExportDeclaration(void 0,!1,k.createNamedExports([u])))}else o.delete(e,C.checkDefined(y2(r,90),"Should find a default keyword in modifier list"));else{let l=C.checkDefined(y2(r,95),"Should find an export keyword in modifier list");switch(r.kind){case 262:case 263:case 264:o.insertNodeAfter(e,l,k.createToken(90));break;case 243:let u=Ha(r.declarationList.declarations);if(!Os.Core.isSymbolReferencedInFile(i,s,e)&&!u.type){o.replaceNode(e,r,k.createExportDefault(C.checkDefined(u.initializer,"Initializer was previously known to be present")));break}case 266:case 265:case 267:o.deleteModifier(e,l),o.insertNodeAfter(e,r,k.createExportDefault(k.createIdentifier(i.text)));break;default:C.fail(`Unexpected exportNode kind ${r.kind}`)}}}function vqe(e,{wasDefault:t,exportName:r,exportingModuleSymbol:i},o,s){let l=e.getTypeChecker(),u=C.checkDefined(l.getSymbolAtLocation(r),"Export name should resolve to a symbol");Os.Core.eachExportReference(e.getSourceFiles(),l,s,u,i,r.text,t,p=>{if(r===p)return;let g=p.getSourceFile();t?yqe(g,p,o,r.text):bqe(g,p,o)})}function yqe(e,t,r,i){let{parent:o}=t;switch(o.kind){case 211:r.replaceNode(e,t,k.createIdentifier(i));break;case 276:case 281:{let l=o;r.replaceNode(e,l,wde(i,l.name.text));break}case 273:{let l=o;C.assert(l.name===t,"Import clause name should match provided ref");let u=wde(i,t.text),{namedBindings:p}=l;if(!p)r.replaceNode(e,t,k.createNamedImports([u]));else if(p.kind===274){r.deleteRange(e,{pos:t.getStart(e),end:p.getStart(e)});let g=Na(l.parent.moduleSpecifier)?sX(l.parent.moduleSpecifier,e):1,m=$v(void 0,[wde(i,t.text)],l.parent.moduleSpecifier,g);r.insertNodeAfter(e,l.parent,m)}else r.delete(e,t),r.insertNodeAtEndOfList(e,p.elements,u);break}case 205:let s=o;r.replaceNode(e,o,k.createImportTypeNode(s.argument,s.attributes,k.createIdentifier(i),s.typeArguments,s.isTypeOf));break;default:C.failBadSyntaxKind(o)}}function bqe(e,t,r){let i=t.parent;switch(i.kind){case 211:r.replaceNode(e,t,k.createIdentifier("default"));break;case 276:{let o=k.createIdentifier(i.name.text);i.parent.elements.length===1?r.replaceNode(e,i.parent,o):(r.delete(e,i),r.insertNodeBefore(e,i.parent,o));break}case 281:{r.replaceNode(e,i,_2e("default",i.name.text));break}default:C.assertNever(i,`Unexpected parent kind ${i.kind}`)}}function wde(e,t){return k.createImportSpecifier(!1,e===t?void 0:k.createIdentifier(e),k.createIdentifier(t))}function _2e(e,t){return k.createExportSpecifier(!1,e===t?void 0:k.createIdentifier(e),k.createIdentifier(t))}function Eqe(e,t){if(no(e))return e.symbol;let r=e.parent.symbol;return r.valueDeclaration&&I1(r.valueDeclaration)?t.getMergedSymbol(r):r}var lY,zW,BW,Sqe=A({"src/services/refactors/convertExport.ts"(){"use strict";ci(),xh(),lY="Convert export",zW={name:"Convert default export to named export",description:Bo(f.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},BW={name:"Convert named export to default export",description:Bo(f.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"},dg(lY,{kinds:[zW.kind,BW.kind],getAvailableActions:function(t){let r=m2e(t,t.triggerReason==="invoked");if(!r)return et;if(!Jg(r)){let i=r.wasDefault?zW:BW;return[{name:lY,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:lY,description:Bo(f.Convert_default_export_to_named_export),actions:[{...zW,notApplicableReason:r.error},{...BW,notApplicableReason:r.error}]}]:et},getEditsForAction:function(t,r){C.assert(r===zW.name||r===BW.name,"Unexpected action name");let i=m2e(t);return C.assert(i&&!Jg(i),"Expected applicable refactor info"),{edits:hr.ChangeTracker.with(t,s=>hqe(t.file,t.program,i,s,t.cancellationToken)),renameFilename:void 0,renameLocation:void 0}}})}});function h2e(e,t=!0){let{file:r}=e,i=DI(e),o=po(r,i.start),s=t?zn(o,Lc):dO(o,r,i);if(!s||!Lc(s))return{error:"Selection is not an import declaration."};let l=i.start+i.length,u=lE(s,s.parent,r);if(u&&l>u.getStart())return;let{importClause:p}=s;return p?p.namedBindings?p.namedBindings.kind===274?{convertTo:0,import:p.namedBindings}:g2e(e.program,p)?{convertTo:1,import:p.namedBindings}:{convertTo:2,import:p.namedBindings}:{error:Bo(f.Could_not_find_namespace_import_or_named_imports)}:{error:Bo(f.Could_not_find_import_clause)}}function g2e(e,t){return NS(e.getCompilerOptions())&&xqe(t.parent.moduleSpecifier,e.getTypeChecker())}function Tqe(e,t,r,i){let o=t.getTypeChecker();i.convertTo===0?Aqe(e,o,r,i.import,NS(t.getCompilerOptions())):y2e(e,t,r,i.import,i.convertTo===1)}function Aqe(e,t,r,i,o){let s=!1,l=[],u=new Map;Os.Core.eachSymbolReferenceInFile(i.name,t,e,b=>{if(!Lre(b.parent))s=!0;else{let T=v2e(b.parent).text;t.resolveName(T,b,-1,!0)&&u.set(T,!0),C.assert(Iqe(b.parent)===b,"Parent expression should match id"),l.push(b.parent)}});let p=new Map;for(let b of l){let T=v2e(b).text,I=p.get(T);I===void 0&&p.set(T,I=u.has(T)?tT(T,e):T),r.replaceNode(e,b,k.createIdentifier(I))}let g=[];p.forEach((b,T)=>{g.push(k.createImportSpecifier(!1,b===T?void 0:k.createIdentifier(T),k.createIdentifier(b)))});let m=i.parent.parent;s&&!o?r.insertNodeAfter(e,m,Ode(m,void 0,g)):r.replaceNode(e,m,Ode(m,s?k.createIdentifier(i.name.text):void 0,g))}function v2e(e){return zr(e)?e.name:e.right}function Iqe(e){return zr(e)?e.expression:e.left}function y2e(e,t,r,i,o=g2e(t,i.parent)){let s=t.getTypeChecker(),l=i.parent.parent,{moduleSpecifier:u}=l,p=new Set;i.elements.forEach(R=>{let M=s.getSymbolAtLocation(R.name);M&&p.add(M)});let g=u&&Na(u)?Fu.moduleSpecifierToValidIdentifier(u.text,99):"module";function m(R){return!!Os.Core.eachSymbolReferenceInFile(R.name,s,e,M=>{let N=s.resolveName(g,M,-1,!0);return N?p.has(N)?Ju(M.parent):!0:!1})}let T=i.elements.some(m)?tT(g,e):g,I=new Set;for(let R of i.elements){let M=(R.propertyName||R.name).text;Os.Core.eachSymbolReferenceInFile(R.name,s,e,N=>{let O=k.createPropertyAccessExpression(k.createIdentifier(T),M);np(N.parent)?r.replaceNode(e,N.parent,k.createPropertyAssignment(N.text,O)):Ju(N.parent)?I.add(R):r.replaceNode(e,N,O)})}if(r.replaceNode(e,i,o?k.createIdentifier(T):k.createNamespaceImport(k.createIdentifier(T))),I.size){let R=Vo(I.values(),M=>k.createImportSpecifier(M.isTypeOnly,M.propertyName&&k.createIdentifier(M.propertyName.text),k.createIdentifier(M.name.text)));r.insertNodeAfter(e,i.parent.parent,Ode(l,void 0,R))}}function xqe(e,t){let r=t.resolveExternalModuleName(e);if(!r)return!1;let i=t.resolveExternalModuleSymbol(r);return r!==i}function Ode(e,t,r){return k.createImportDeclaration(void 0,k.createImportClause(!1,t,r&&r.length?k.createNamedImports(r):void 0),e.moduleSpecifier,void 0)}var cY,GW,Rqe=A({"src/services/refactors/convertImport.ts"(){"use strict";ci(),xh(),cY="Convert import",GW={0:{name:"Convert namespace import to named imports",description:Bo(f.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:Bo(f.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:Bo(f.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}},dg(cY,{kinds:hA(GW).map(e=>e.kind),getAvailableActions:function(t){let r=h2e(t,t.triggerReason==="invoked");if(!r)return et;if(!Jg(r)){let i=GW[r.convertTo];return[{name:cY,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?hA(GW).map(i=>({name:cY,description:i.description,actions:[{...i,notApplicableReason:r.error}]})):et},getEditsForAction:function(t,r){C.assert(Et(hA(GW),s=>s.name===r),"Unexpected action name");let i=h2e(t);return C.assert(i&&!Jg(i),"Expected applicable refactor info"),{edits:hr.ChangeTracker.with(t,s=>Tqe(t.file,t.program,s,i)),renameFilename:void 0,renameLocation:void 0}}})}});function b2e(e,t=!0){let{file:r,startPosition:i}=e,o=ld(r),s=oW(DI(e)),l=s.pos===s.end&&t,u=Dqe(r,i,s,l);if(!u||!qi(u))return{error:Bo(f.Selection_is_not_a_valid_type_node)};let p=e.program.getTypeChecker(),g=Lqe(u,o);if(g===void 0)return{error:Bo(f.No_type_could_be_extracted_from_this_type_node)};let m=kqe(u,g);if(!qi(m))return{error:Bo(f.Selection_is_not_a_valid_type_node)};let b=[];(Xy(m.parent)||oI(m.parent))&&s.end>u.end&&Jr(b,m.parent.types.filter(M=>XF(M,r,s.pos,s.end)));let T=b.length>1?b:m,I=Cqe(p,T,g,r);if(!I)return{error:Bo(f.No_type_could_be_extracted_from_this_type_node)};let R=uY(p,T);return{isJS:o,selection:T,enclosingNode:g,typeParameters:I,typeElements:R}}function Dqe(e,t,r,i){let o=[()=>po(e,t),()=>g2(e,t,()=>!0)];for(let s of o){let l=s(),u=XF(l,e,r.pos,r.end),p=zn(l,g=>g.parent&&qi(g)&&!pE(r,g.parent,e)&&(i||u));if(p)return p}}function uY(e,t){if(t){if(Do(t)){let r=[];for(let i of t){let o=uY(e,i);if(!o)return;Jr(r,o)}return r}if(oI(t)){let r=[],i=new Map;for(let o of t.types){let s=uY(e,o);if(!s||!s.every(l=>l.name&&xm(i,cO(l.name))))return;Jr(r,s)}return r}else{if(LS(t))return uY(e,t.type);if(yp(t))return t.members}}}function pE(e,t,r){return nO(e,La(r.text,t.pos),t.end)}function Cqe(e,t,r,i){let o=[],s=gA(t),l={pos:s[0].pos,end:s[s.length-1].end};for(let p of s)if(u(p))return;return o;function u(p){if(Rf(p)){if(Ve(p.typeName)){let g=p.typeName,m=e.resolveName(g.text,g,262144,!0);for(let b of m?.declarations||et)if(_l(b)&&b.getSourceFile()===i){if(b.name.escapedText===g.escapedText&&pE(b,l,i))return!0;if(pE(r,b,i)&&!pE(l,b,i)){bf(o,b);break}}}}else if(MS(p)){let g=zn(p,m=>aI(m)&&pE(m.extendsType,p,i));if(!g||!pE(l,g,i))return!0}else if(Bk(p)||Vk(p)){let g=zn(p.parent,ea);if(g&&g.type&&pE(g.type,p,i)&&!pE(l,g,i))return!0}else if(rI(p)){if(Ve(p.exprName)){let g=e.resolveName(p.exprName.text,p.exprName,111551,!1);if(g?.valueDeclaration&&pE(r,g.valueDeclaration,i)&&!pE(l,g.valueDeclaration,i))return!0}else if(O1(p.exprName.left)&&!pE(l,p.parent,i))return!0}return i&&iI(p)&&Es(i,p.pos).line===Es(i,p.end).line&&fr(p,1),Ho(p,u)}}function Nqe(e,t,r,i){let{enclosingNode:o,typeParameters:s}=i,{firstTypeNode:l,lastTypeNode:u,newTypeNode:p}=Fde(i),g=k.createTypeAliasDeclaration(void 0,r,s.map(m=>k.updateTypeParameterDeclaration(m,m.modifiers,m.name,m.constraint,void 0)),p);e.insertNodeBefore(t,o,cH(g),!0),e.replaceNodeRange(t,l,u,k.createTypeReferenceNode(r,s.map(m=>k.createTypeReferenceNode(m.name,void 0))),{leadingTriviaOption:hr.LeadingTriviaOption.Exclude,trailingTriviaOption:hr.TrailingTriviaOption.ExcludeWhitespace})}function Pqe(e,t,r,i){var o;let{enclosingNode:s,typeParameters:l,typeElements:u}=i,p=k.createInterfaceDeclaration(void 0,r,l,void 0,u);dt(p,(o=u[0])==null?void 0:o.parent),e.insertNodeBefore(t,s,cH(p),!0);let{firstTypeNode:g,lastTypeNode:m}=Fde(i);e.replaceNodeRange(t,g,m,k.createTypeReferenceNode(r,l.map(b=>k.createTypeReferenceNode(b.name,void 0))),{leadingTriviaOption:hr.LeadingTriviaOption.Exclude,trailingTriviaOption:hr.TrailingTriviaOption.ExcludeWhitespace})}function Mqe(e,t,r,i,o){var s;gA(o.selection).forEach(R=>{fr(R,7168)});let{enclosingNode:l,typeParameters:u}=o,{firstTypeNode:p,lastTypeNode:g,newTypeNode:m}=Fde(o),b=k.createJSDocTypedefTag(k.createIdentifier("typedef"),k.createJSDocTypeExpression(m),k.createIdentifier(i)),T=[];Ke(u,R=>{let M=Ux(R),N=k.createTypeParameterDeclaration(void 0,R.name),O=k.createJSDocTemplateTag(k.createIdentifier("template"),M&&aa(M,Z1),[N]);T.push(O)});let I=k.createJSDocComment(void 0,k.createNodeArray(xo(T,[b])));if(t_(l)){let R=l.getStart(r),M=Qv(t.host,(s=t.formatContext)==null?void 0:s.options);e.insertNodeAt(r,l.getStart(r),I,{suffix:M+M+r.text.slice(_W(r.text,R-1),R)})}else e.insertNodeBefore(r,l,I,!0);e.replaceNodeRange(r,p,g,k.createTypeReferenceNode(i,u.map(R=>k.createTypeReferenceNode(R.name,void 0))))}function Fde(e){return Do(e.selection)?{firstTypeNode:e.selection[0],lastTypeNode:e.selection[e.selection.length-1],newTypeNode:Xy(e.selection[0].parent)?k.createUnionTypeNode(e.selection):k.createIntersectionTypeNode(e.selection)}:{firstTypeNode:e.selection,lastTypeNode:e.selection,newTypeNode:e.selection}}function Lqe(e,t){return zn(e,Ki)||(t?zn(e,t_):void 0)}function kqe(e,t){return zn(e,r=>r===t?"quit":!!(Xy(r.parent)||oI(r.parent)))??e}var dY,VW,jW,UW,wqe=A({"src/services/refactors/extractType.ts"(){"use strict";ci(),xh(),dY="Extract type",VW={name:"Extract to type alias",description:Bo(f.Extract_to_type_alias),kind:"refactor.extract.type"},jW={name:"Extract to interface",description:Bo(f.Extract_to_interface),kind:"refactor.extract.interface"},UW={name:"Extract to typedef",description:Bo(f.Extract_to_typedef),kind:"refactor.extract.typedef"},dg(dY,{kinds:[VW.kind,jW.kind,UW.kind],getAvailableActions:function(t){let r=b2e(t,t.triggerReason==="invoked");return r?Jg(r)?t.preferences.provideRefactorNotApplicableReason?[{name:dY,description:Bo(f.Extract_type),actions:[{...UW,notApplicableReason:r.error},{...VW,notApplicableReason:r.error},{...jW,notApplicableReason:r.error}]}]:et:[{name:dY,description:Bo(f.Extract_type),actions:r.isJS?[UW]:In([VW],r.typeElements&&jW)}]:et},getEditsForAction:function(t,r){let{file:i}=t,o=b2e(t);C.assert(o&&!Jg(o),"Expected to find a range to extract");let s=tT("NewType",i),l=hr.ChangeTracker.with(t,g=>{switch(r){case VW.name:return C.assert(!o.isJS,"Invalid actionName/JS combo"),Nqe(g,i,s,o);case UW.name:return C.assert(o.isJS,"Invalid actionName/JS combo"),Mqe(g,t,i,s,o);case jW.name:return C.assert(!o.isJS&&!!o.typeElements,"Invalid actionName/JS combo"),Pqe(g,i,s,o);default:C.fail("Unexpected action name")}}),u=i.fileName,p=mO(l,u,s,!1);return{edits:l,renameFilename:u,renameLocation:p}}})}});function Jg(e){return e.error!==void 0}function P0(e,t){return t?e.substr(0,t.length)===t:!0}var Oqe=A({"src/services/refactors/helpers.ts"(){"use strict"}});function E2e(e,t,r,i){var o,s;let l=i.getTypeChecker(),u=zd(e,t),p=u.parent;if(Ve(u)){if(uk(p)&&AC(p)&&Ve(p.name)){if(((o=l.getMergedSymbol(p.symbol).declarations)==null?void 0:o.length)!==1)return{error:Bo(f.Variables_with_multiple_declarations_cannot_be_inlined)};if(S2e(p))return;let g=T2e(p,l,e);return g&&{references:g,declaration:p,replacement:p.initializer}}if(r){let g=l.resolveName(u.text,u,111551,!1);if(g=g&&l.getMergedSymbol(g),((s=g?.declarations)==null?void 0:s.length)!==1)return{error:Bo(f.Variables_with_multiple_declarations_cannot_be_inlined)};let m=g.declarations[0];if(!uk(m)||!AC(m)||!Ve(m.name)||S2e(m))return;let b=T2e(m,l,e);return b&&{references:b,declaration:m,replacement:m.initializer}}return{error:Bo(f.Could_not_find_variable_to_inline)}}}function S2e(e){let t=aa(e.parent.parent,Ml);return Et(t.modifiers,eI)}function T2e(e,t,r){let i=[],o=Os.Core.eachSymbolReferenceInFile(e.name,t,r,s=>{if(Os.isWriteAccessForReference(s)&&!np(s.parent)||Ju(s.parent)||Ll(s.parent)||rI(s.parent)||ZM(e,s.pos))return!0;i.push(s)});return i.length===0||o?void 0:i}function Fqe(e,t){t=sl(t);let{parent:r}=e;return bt(r)&&(OC(t){for(let b of l)m.replaceNode(r,b,Fqe(b,p));m.delete(r,u)})}}})}});function zqe(e,t,r,i,o,s){let l=t.getTypeChecker(),u=JW(e,r.all,l),p=Kde(e,t,o,r);i.createNewFile(e,p,Bqe(e,u,i,r,t,o,p,s)),Wde(t,i,e.fileName,p,Wv(o))}function Bqe(e,t,r,i,o,s,l,u){let p=o.getTypeChecker(),g=W8(e.statements,Am);if(e.externalModuleIndicator===void 0&&e.commonJsModuleIndicator===void 0&&t.oldImportsNeededByTargetFile.size===0)return HW(e,i.ranges,r),[...g,...i.all];let m=!LX(l,o,s,!!e.commonJsModuleIndicator),b=af(e,u),T=Vde(e,t.oldFileImportsFromTargetFile,l,o,s,m,b);T&&lP(r,e,T,!0,u),zde(e,i.all,r,t.unusedImportsFromOldFile,p),HW(e,i.ranges,r),Bde(r,o,s,e,t.movedSymbols,l,b);let I=Gqe(e,t.oldImportsNeededByTargetFile,t.targetFileImportsFromOldFile,r,p,o,s,m,b),R=jde(e,i.all,t.oldFileImportsFromTargetFile,m);return I.length&&R.length?[...g,...I,4,...R]:[...g,...I,...R]}function Gqe(e,t,r,i,o,s,l,u,p){let g=[];for(let I of e.statements)RO(I,R=>{In(g,DO(R,xO(R),M=>t.has(o.getSymbolAtLocation(M))))});let m,b=[],T=xI();return r.forEach(I=>{if(I.declarations)for(let R of I.declarations){if(!KW(R))continue;let M=qde(R);if(!M)continue;let N=hY(R);T(N)&&Jde(e,N,M,i,u),ei(R,2048)?m=M:b.push(M.text)}}),In(g,qW(e,m,b,rc(e.fileName),s,l,u,p)),g}var IO,mY,_Y,Vqe=A({"src/services/refactors/moveToNewFile.ts"(){"use strict";ci(),xh(),IO="Move to a new file",mY=Bo(f.Move_to_a_new_file),_Y={name:IO,description:mY,kind:"refactor.move.newFile"},dg(IO,{kinds:[_Y.kind],getAvailableActions:function(t){let r=CO(t);return t.preferences.allowTextChangesInNewFiles&&r?[{name:IO,description:mY,actions:[_Y]}]:t.preferences.provideRefactorNotApplicableReason?[{name:IO,description:mY,actions:[{..._Y,notApplicableReason:Bo(f.Selection_is_not_a_valid_statement_or_statements)}]}]:et},getEditsForAction:function(t,r){C.assert(r===IO,"Wrong refactor invoked");let i=C.checkDefined(CO(t));return{edits:hr.ChangeTracker.with(t,s=>zqe(t.file,t.program,i,s,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}}})}});function A2e(e){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:e}}function jqe(e,t,r,i,o,s,l,u){let p=i.getTypeChecker();if(!l.fileExists(r))s.createNewFile(t,r,I2e(t,r,JW(t,o.all,p),s,o,i,l,u)),Wde(i,s,t.fileName,r,Wv(l));else{let g=C.checkDefined(i.getSourceFile(r)),m=Fu.createImportAdder(g,e.program,e.preferences,e.host);I2e(t,g,JW(t,o.all,p,lJe(g,o.all,p)),s,o,i,l,u,m)}}function I2e(e,t,r,i,o,s,l,u,p){let g=s.getTypeChecker(),m=W8(e.statements,Am);if(e.externalModuleIndicator===void 0&&e.commonJsModuleIndicator===void 0&&r.oldImportsNeededByTargetFile.size===0&&r.targetFileImportsFromOldFile.size===0&&typeof t=="string")return HW(e,o.ranges,i),[...m,...o.all];let b=typeof t=="string"?t:t.fileName,T=!LX(b,s,l,!!e.commonJsModuleIndicator),I=af(e,u),R=Vde(e,r.oldFileImportsFromTargetFile,b,s,l,T,I);R&&lP(i,e,R,!0,u),zde(e,o.all,i,r.unusedImportsFromOldFile,g),HW(e,o.ranges,i),Bde(i,s,l,e,r.movedSymbols,b,I);let M=Uqe(e,b,r.oldImportsNeededByTargetFile,r.targetFileImportsFromOldFile,i,g,s,l,T,I,p),N=jde(e,o.all,r.oldFileImportsFromTargetFile,T);return typeof t!="string"&&(t.statements.length>0?sJe(i,s,N,t,o):i.insertNodesAtEndOfFile(t,N,!1),M.length>0&&lP(i,t,M,!0,u)),p&&p.writeFixes(i,I),M.length&&N.length?[...m,...M,4,...N]:[...m,...M,...N]}function Uqe(e,t,r,i,o,s,l,u,p,g,m){let b=[];if(m)r.forEach((N,O)=>{try{m.addImportFromExportedSymbol(bu(O,s),N)}catch{for(let H of e.statements)RO(H,K=>{In(b,DO(K,k.createStringLiteral(xO(K).text),Z=>r.has(s.getSymbolAtLocation(Z))))})}});else{let N=l.getSourceFile(t);for(let O of e.statements)RO(O,H=>{var K;let Z=xO(H),V=l.getCompilerOptions(),ue=l.getResolvedModuleFromModuleSpecifier(Z),G=(K=ue?.resolvedModule)==null?void 0:K.resolvedFileName;if(G&&N){let ne=B5(V,N,N.fileName,G,ZS(l,u));In(b,DO(H,RI(ne,g),he=>r.has(s.getSymbolAtLocation(he))))}else In(b,DO(H,k.createStringLiteral(xO(H).text),ne=>r.has(s.getSymbolAtLocation(ne))))})}let T=l.getSourceFile(t),I,R=[],M=xI();return i.forEach(N=>{if(N.declarations)for(let O of N.declarations){if(!KW(O))continue;let H=qde(O);if(!H)continue;let K=hY(O);M(K)&&Jde(e,K,H,o,p),m&&s.isUnknownSymbol(N)?m.addImportFromExportedSymbol(bu(N,s)):ei(O,2048)?I=H:R.push(H.text)}}),T?In(b,qW(T,I,R,e.fileName,l,u,p,g)):In(b,qW(e,I,R,e.fileName,l,u,p,g))}function Wde(e,t,r,i,o){let s=e.getCompilerOptions().configFile;if(!s)return;let l=va(Zr(r,"..",i)),u=UM(s.fileName,l,o),p=s.statements[0]&&ai(s.statements[0].expression,wa),g=p&&vn(p.properties,m=>_c(m)&&Na(m.name)&&m.name.text==="files");g&&pd(g.initializer)&&t.insertNodeInListAfter(s,Ya(g.initializer.elements),k.createStringLiteral(u),g.initializer.elements)}function HW(e,t,r){for(let{first:i,afterLast:o}of t)r.deleteNodeRangeExcludingEnd(e,i,o)}function zde(e,t,r,i,o){for(let s of e.statements)wr(t,s)||RO(s,l=>Ude(e,l,r,u=>i.has(o.getSymbolAtLocation(u))))}function Bde(e,t,r,i,o,s,l){let u=t.getTypeChecker();for(let p of t.getSourceFiles())if(p!==i)for(let g of p.statements)RO(g,m=>{if(u.getSymbolAtLocation(xO(m))!==i.symbol)return;let b=N=>{let O=Qa(N.parent)?pW(u,N.parent):bu(u.getSymbolAtLocation(N),u);return!!O&&o.has(O)};Ude(p,m,e,b);let T=Dy(li(i.path),s),I=B5(t.getCompilerOptions(),p,p.fileName,T,ZS(t,r)),R=DO(m,RI(I,l),b);R&&e.insertNodeAfter(p,g,R);let M=Hqe(m);M&&qqe(e,p,u,o,I,M,m,l)})}function Hqe(e){switch(e.kind){case 272:return e.importClause&&e.importClause.namedBindings&&e.importClause.namedBindings.kind===274?e.importClause.namedBindings.name:void 0;case 271:return e.name;case 260:return ai(e.name,Ve);default:return C.assertNever(e,`Unexpected node kind ${e.kind}`)}}function qqe(e,t,r,i,o,s,l,u){let p=Fu.moduleSpecifierToValidIdentifier(o,99),g=!1,m=[];if(Os.Core.eachSymbolReferenceInFile(s,r,t,b=>{zr(b.parent)&&(g=g||!!r.resolveName(p,b,-1,!0),i.has(r.getSymbolAtLocation(b.parent.name))&&m.push(b))}),m.length){let b=g?tT(p,t):p;for(let T of m)e.replaceNode(t,T,k.createIdentifier(b));e.insertNodeAfter(t,l,Jqe(l,p,o,u))}}function Jqe(e,t,r,i){let o=k.createIdentifier(t),s=RI(r,i);switch(e.kind){case 272:return k.createImportDeclaration(void 0,k.createImportClause(!1,void 0,k.createNamespaceImport(o)),s,void 0);case 271:return k.createImportEqualsDeclaration(void 0,!1,o,k.createExternalModuleReference(s));case 260:return k.createVariableDeclaration(o,void 0,void 0,Gde(s));default:return C.assertNever(e,`Unexpected node kind ${e.kind}`)}}function Gde(e){return k.createCallExpression(k.createIdentifier("require"),void 0,[e])}function xO(e){return e.kind===272?e.moduleSpecifier:e.kind===271?e.moduleReference.expression:e.initializer.arguments[0]}function RO(e,t){if(Lc(e))Na(e.moduleSpecifier)&&t(e);else if(tu(e))Th(e.moduleReference)&&us(e.moduleReference.expression)&&t(e);else if(Ml(e))for(let r of e.declarationList.declarations)r.initializer&&Sd(r.initializer,!0)&&t(r)}function Vde(e,t,r,i,o,s,l){let u,p=[];return t.forEach(g=>{g.escapedName==="default"?u=k.createIdentifier(cW(g)):p.push(g.name)}),qW(e,u,p,r,i,o,s,l)}function qW(e,t,r,i,o,s,l,u){let p=Dy(li(e.path),i),g=B5(o.getCompilerOptions(),e,e.fileName,p,ZS(o,s));if(l){let m=r.map(b=>k.createImportSpecifier(!1,void 0,k.createIdentifier(b)));return Lue(t,m,g,u)}else{C.assert(!t,"No default import should exist");let m=r.map(b=>k.createBindingElement(void 0,void 0,b));return m.length?x2e(k.createObjectBindingPattern(m),void 0,Gde(RI(g,u))):void 0}}function x2e(e,t,r,i=2){return k.createVariableStatement(void 0,k.createVariableDeclarationList([k.createVariableDeclaration(e,void 0,t,r)],i))}function jde(e,t,r,i){return Zi(t,o=>{if(D2e(o)&&!R2e(e,o,i)&&$de(o,s=>{var l;return r.has(C.checkDefined((l=ai(s,A_))==null?void 0:l.symbol))})){let s=Yqe(sl(o),i);if(s)return s}return sl(o)})}function R2e(e,t,r,i){var o;return r?!eu(t)&&ei(t,32)||!!(i&&e.symbol&&((o=e.symbol.exports)!=null&&o.has(i.escapedText))):!!e.symbol&&!!e.symbol.exports&&Hde(t).some(s=>e.symbol.exports.has(ml(s)))}function Ude(e,t,r,i){switch(t.kind){case 272:Kqe(e,t,r,i);break;case 271:i(t.name)&&r.delete(e,t);break;case 260:Xqe(e,t,r,i);break;default:C.assertNever(t,`Unexpected import decl kind ${t.kind}`)}}function Kqe(e,t,r,i){if(!t.importClause)return;let{name:o,namedBindings:s}=t.importClause,l=!o||i(o),u=!s||(s.kind===274?i(s.name):s.elements.length!==0&&s.elements.every(p=>i(p.name)));if(l&&u)r.delete(e,t);else if(o&&l&&r.delete(e,o),s){if(u)r.replaceNode(e,t.importClause,k.updateImportClause(t.importClause,t.importClause.isTypeOnly,o,void 0));else if(s.kind===275)for(let p of s.elements)i(p.name)&&r.delete(e,p)}}function Xqe(e,t,r,i){let{name:o}=t;switch(o.kind){case 80:i(o)&&(t.initializer&&Sd(t.initializer,!0)?r.delete(e,jc(t.parent)&&De(t.parent.declarations)===1?t.parent.parent:t):r.delete(e,o));break;case 207:break;case 206:if(o.elements.every(s=>Ve(s.name)&&i(s.name)))r.delete(e,jc(t.parent)&&t.parent.declarations.length===1?t.parent.parent:t);else for(let s of o.elements)Ve(s.name)&&i(s.name)&&r.delete(e,s.name);break}}function D2e(e){return C.assert(no(e.parent),"Node parent should be a SourceFile"),L2e(e)||Ml(e)}function Yqe(e,t){return t?[$qe(e)]:Qqe(e)}function $qe(e){let t=Cm(e)?xo([k.createModifier(95)],b1(e)):void 0;switch(e.kind){case 262:return k.updateFunctionDeclaration(e,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 263:let r=US(e)?Ny(e):void 0;return k.updateClassDeclaration(e,xo(r,t),e.name,e.typeParameters,e.heritageClauses,e.members);case 243:return k.updateVariableStatement(e,t,e.declarationList);case 267:return k.updateModuleDeclaration(e,t,e.name,e.body);case 266:return k.updateEnumDeclaration(e,t,e.name,e.members);case 265:return k.updateTypeAliasDeclaration(e,t,e.name,e.typeParameters,e.type);case 264:return k.updateInterfaceDeclaration(e,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 271:return k.updateImportEqualsDeclaration(e,t,e.isTypeOnly,e.name,e.moduleReference);case 244:return C.fail();default:return C.assertNever(e,`Unexpected declaration kind ${e.kind}`)}}function Qqe(e){return[e,...Hde(e).map(C2e)]}function C2e(e){return k.createExpressionStatement(k.createBinaryExpression(k.createPropertyAccessExpression(k.createIdentifier("exports"),k.createIdentifier(e)),64,k.createIdentifier(e)))}function Hde(e){switch(e.kind){case 262:case 263:return[e.name.text];case 243:return Vi(e.declarationList.declarations,t=>Ve(t.name)?t.name.text:void 0);case 267:case 266:case 265:case 264:case 271:return et;case 244:return C.fail("Can't export an ExpressionStatement");default:return C.assertNever(e,`Unexpected decl kind ${e.kind}`)}}function DO(e,t,r){switch(e.kind){case 272:{let i=e.importClause;if(!i)return;let o=i.name&&r(i.name)?i.name:void 0,s=i.namedBindings&&Zqe(i.namedBindings,r);return o||s?k.createImportDeclaration(void 0,k.createImportClause(i.isTypeOnly,o,s),sl(t),void 0):void 0}case 271:return r(e.name)?e:void 0;case 260:{let i=eJe(e.name,r);return i?x2e(i,e.type,Gde(t),e.parent.flags):void 0}default:return C.assertNever(e,`Unexpected import kind ${e.kind}`)}}function Zqe(e,t){if(e.kind===274)return t(e.name)?e:void 0;{let r=e.elements.filter(i=>t(i.name));return r.length?k.createNamedImports(r):void 0}}function eJe(e,t){switch(e.kind){case 80:return t(e)?e:void 0;case 207:return e;case 206:{let r=e.elements.filter(i=>i.propertyName||!Ve(i.name)||t(i.name));return r.length?k.createObjectBindingPattern(r):void 0}}}function qde(e){return eu(e)?ai(e.expression.left.name,Ve):ai(e.name,Ve)}function hY(e){switch(e.kind){case 260:return e.parent.parent;case 208:return hY(aa(e.parent.parent,t=>Oi(t)||Qa(t)));default:return e}}function Jde(e,t,r,i,o){if(!R2e(e,t,o,r))if(o)eu(t)||i.insertExportModifier(e,t);else{let s=Hde(t);s.length!==0&&i.insertNodesAfter(e,t,s.map(C2e))}}function Kde(e,t,r,i){let o=t.getTypeChecker();if(i){let s=JW(e,i.all,o),l=li(e.fileName),u=ZC(e.fileName);return Zr(l,iJe(oJe(s.oldFileImportsFromTargetFile,s.movedSymbols),u,l,r))+u}return""}function tJe(e){let{file:t}=e,r=oW(DI(e)),{statements:i}=t,o=ri(i,g=>g.end>r.pos);if(o===-1)return;let s=i[o],l=k2e(t,s);l&&(o=l.start);let u=ri(i,g=>g.end>=r.end,o);u!==-1&&r.end<=i[u].getStart()&&u--;let p=k2e(t,i[u]);return p&&(u=p.end),{toMove:i.slice(o,u===-1?i.length:u+1),afterLast:u===-1?void 0:i[u+1]}}function CO(e){let t=tJe(e);if(t===void 0)return;let r=[],i=[],{toMove:o,afterLast:s}=t;return $B(o,nJe,(l,u)=>{for(let p=l;p!!(t.transformFlags&2))}function nJe(e){return!rJe(e)&&!Am(e)}function rJe(e){switch(e.kind){case 272:return!0;case 271:return!ei(e,32);case 243:return e.declarationList.declarations.every(t=>!!t.initializer&&Sd(t.initializer,!0));default:return!1}}function JW(e,t,r,i=new Set){let o=new Set,s=new Map,l=new Set,u=m(Xde(t));u&&s.set(u,!1);for(let b of t)$de(b,T=>{o.add(C.checkDefined(eu(T)?r.getSymbolAtLocation(T.expression.left):T.symbol,"Need a symbol here"))});let p=new Set;for(let b of t)Yde(b,r,(T,I)=>{if(T.declarations){if(i.has(bu(T,r))){p.add(T);return}for(let R of T.declarations)if(N2e(R)){let M=s.get(T);s.set(T,(M===void 0||M)&&I)}else KW(R)&&aJe(R)===e&&!o.has(T)&&l.add(T)}});for(let b of s.keys())p.add(b);let g=new Set;for(let b of e.statements)wr(t,b)||(u&&b.transformFlags&2&&p.delete(u),Yde(b,r,T=>{o.has(T)&&g.add(T),p.delete(T)}));return{movedSymbols:o,targetFileImportsFromOldFile:l,oldFileImportsFromTargetFile:g,oldImportsNeededByTargetFile:s,unusedImportsFromOldFile:p};function m(b){if(b===void 0)return;let T=r.getJsxNamespace(b),I=r.resolveName(T,b,1920,!0);return I&&Et(I.declarations,N2e)?I:void 0}}function iJe(e,t,r,i){let o=e;for(let s=1;;s++){let l=Zr(r,o+t);if(!i.fileExists(l))return o;o=`${e}.${s}`}}function oJe(e,t){return mh(e,cW)||mh(t,cW)||"newFile"}function Yde(e,t,r){e.forEachChild(function i(o){if(Ve(o)&&!Wg(o)){let s=t.getSymbolAtLocation(o);s&&r(s,_0(o))}else o.forEachChild(i)})}function $de(e,t){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return t(e);case 243:return Zt(e.declarationList.declarations,r=>M2e(r.name,t));case 244:{let{expression:r}=e;return _r(r)&&Wl(r)===1?t(e):void 0}}}function N2e(e){switch(e.kind){case 271:case 276:case 273:case 274:return!0;case 260:return P2e(e);case 208:return Oi(e.parent.parent)&&P2e(e.parent.parent);default:return!1}}function P2e(e){return no(e.parent.parent.parent)&&!!e.initializer&&Sd(e.initializer,!0)}function KW(e){return L2e(e)&&no(e.parent)||Oi(e)&&no(e.parent.parent.parent)}function aJe(e){return Oi(e)?e.parent.parent.parent:e.parent}function M2e(e,t){switch(e.kind){case 80:return t(aa(e.parent,r=>Oi(r)||Qa(r)));case 207:case 206:return Zt(e.elements,r=>Vc(r)?void 0:M2e(r.name,t));default:return C.assertNever(e,`Unexpected name kind ${e.kind}`)}}function L2e(e){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return!0;default:return!1}}function sJe(e,t,r,i,o){var s;let l=new Set,u=(s=i.symbol)==null?void 0:s.exports;if(u){let g=t.getTypeChecker(),m=new Map;for(let b of o.all)D2e(b)&&ei(b,32)&&$de(b,T=>{var I;let R=A_(T)?(I=u.get(T.symbol.escapedName))==null?void 0:I.declarations:void 0,M=Zt(R,N=>Kl(N)?N:Ju(N)?ai(N.parent.parent,Kl):void 0);M&&M.moduleSpecifier&&m.set(M,(m.get(M)||new Set).add(T))});for(let[b,T]of Vo(m))if(b.exportClause&&Df(b.exportClause)&&De(b.exportClause.elements)){let I=b.exportClause.elements,R=tr(I,M=>vn(bu(M.symbol,g).declarations,N=>KW(N)&&T.has(N))===void 0);if(De(R)===0){e.deleteNode(i,b),l.add(b);continue}De(R)Kl(g)&&!!g.moduleSpecifier&&!l.has(g));p?e.insertNodesBefore(i,p,r,!0):e.insertNodesAfter(i,i.statements[i.statements.length-1],r)}function k2e(e,t){if(zs(t)){let r=t.symbol.declarations;if(r===void 0||De(r)<=1||!wr(r,t))return;let i=r[0],o=r[De(r)-1],s=Vi(r,p=>Vn(p)===e&&Ki(p)?p:void 0),l=ri(e.statements,p=>p.end>=o.end),u=ri(e.statements,p=>p.end>=i.end);return{toMove:s,start:u,end:l}}}function lJe(e,t,r){let i=new Set;for(let o of e.imports){let s=CC(o);if(Lc(s)&&s.importClause&&s.importClause.namedBindings&&jg(s.importClause.namedBindings))for(let l of s.importClause.namedBindings.elements){let u=r.getSymbolAtLocation(l.propertyName||l.name);u&&i.add(bu(u,r))}if(a3(s.parent)&&om(s.parent.name))for(let l of s.parent.name.elements){let u=r.getSymbolAtLocation(l.propertyName||l.name);u&&i.add(bu(u,r))}}for(let o of t)Yde(o,r,s=>{let l=bu(s,r);l.valueDeclaration&&Vn(l.valueDeclaration)===e&&i.add(l)});return i}var XW,gY,vY,cJe=A({"src/services/refactors/moveToFile.ts"(){"use strict";rle(),ci(),f2e(),XW="Move to file",gY=Bo(f.Move_to_file),vY={name:"Move to file",description:gY,kind:"refactor.move.file"},dg(XW,{kinds:[vY.kind],getAvailableActions:function(t,r){let i=CO(t);return r?t.preferences.allowTextChangesInNewFiles&&i?[{name:XW,description:gY,actions:[vY]}]:t.preferences.provideRefactorNotApplicableReason?[{name:XW,description:gY,actions:[{...vY,notApplicableReason:Bo(f.Selection_is_not_a_valid_statement_or_statements)}]}]:et:et},getEditsForAction:function(t,r,i){C.assert(r===XW,"Wrong refactor invoked");let o=C.checkDefined(CO(t)),{host:s,program:l}=t;C.assert(i,"No interactive refactor arguments available");let u=i.targetFile;return W1(u)||UA(u)?s.fileExists(u)&&l.getSourceFile(u)===void 0?A2e(Bo(f.Cannot_move_statements_to_the_selected_file)):{edits:hr.ChangeTracker.with(t,g=>jqe(t,t.file,i.targetFile,t.program,o,g,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}:A2e(Bo(f.Cannot_move_to_file_selected_file_is_invalid))}})}});function uJe(e){let{file:t,startPosition:r,program:i}=e;return O2e(t,r,i)?[{name:yY,description:Qde,actions:[Zde]}]:et}function dJe(e){let{file:t,startPosition:r,program:i}=e,o=O2e(t,r,i);if(!o)return;let s=i.getTypeChecker(),l=o[o.length-1],u=l;switch(l.kind){case 173:{u=k.updateMethodSignature(l,l.modifiers,l.name,l.questionToken,l.typeParameters,g(o),l.type);break}case 174:{u=k.updateMethodDeclaration(l,l.modifiers,l.asteriskToken,l.name,l.questionToken,l.typeParameters,g(o),l.type,l.body);break}case 179:{u=k.updateCallSignature(l,l.typeParameters,g(o),l.type);break}case 176:{u=k.updateConstructorDeclaration(l,l.modifiers,g(o),l.body);break}case 180:{u=k.updateConstructSignature(l,l.typeParameters,g(o),l.type);break}case 262:{u=k.updateFunctionDeclaration(l,l.modifiers,l.asteriskToken,l.name,l.typeParameters,g(o),l.type,l.body);break}default:return C.failBadSyntaxKind(l,"Unhandled signature kind in overload list conversion refactoring")}if(u===l)return;return{renameFilename:void 0,renameLocation:void 0,edits:hr.ChangeTracker.with(e,T=>{T.replaceNodeRange(t,o[0],o[o.length-1],u)})};function g(T){let I=T[T.length-1];return zs(I)&&I.body&&(T=T.slice(0,T.length-1)),k.createNodeArray([k.createParameterDeclaration(void 0,k.createToken(26),"args",void 0,k.createUnionTypeNode(Ft(T,m)))])}function m(T){let I=Ft(T.parameters,b);return fr(k.createTupleTypeNode(I),Et(I,R=>!!De(kR(R)))?0:1)}function b(T){C.assert(Ve(T.name));let I=dt(k.createNamedTupleMember(T.dotDotDotToken,T.name,T.questionToken,T.type||k.createKeywordTypeNode(133)),T),R=T.symbol&&T.symbol.getDocumentationComment(s);if(R){let M=OO(R);M.length&&g0(I,[{text:`* +${M.split(` +`).map(N=>` * ${N}`).join(` +`)} + `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return I}}function w2e(e){switch(e.kind){case 173:case 174:case 179:case 176:case 180:case 262:return!0}return!1}function O2e(e,t,r){let i=po(e,t),o=zn(i,w2e);if(!o||zs(o)&&o.body&&eO(o.body,t))return;let s=r.getTypeChecker(),l=o.symbol;if(!l)return;let u=l.declarations;if(De(u)<=1||!Jn(u,T=>Vn(T)===e)||!w2e(u[0]))return;let p=u[0].kind;if(!Jn(u,T=>T.kind===p))return;let g=u;if(Et(g,T=>!!T.typeParameters||Et(T.parameters,I=>!!I.modifiers||!Ve(I.name))))return;let m=Vi(g,T=>s.getSignatureFromDeclaration(T));if(De(m)!==De(u))return;let b=s.getReturnTypeOfSignature(m[0]);if(Jn(m,T=>s.getReturnTypeOfSignature(T)===b))return g}var yY,Qde,Zde,pJe=A({"src/services/refactors/convertOverloadListToSingleSignature.ts"(){"use strict";ci(),xh(),yY="Convert overload list to single signature",Qde=Bo(f.Convert_overload_list_to_single_signature),Zde={name:yY,description:Qde,kind:"refactor.rewrite.function.overloadList"},dg(yY,{kinds:[Zde.kind],getEditsForAction:dJe,getAvailableActions:uJe})}});function fJe(e){let{file:t,startPosition:r,triggerReason:i}=e,o=F2e(t,r,i==="invoked");return o?Jg(o)?e.preferences.provideRefactorNotApplicableReason?[{name:bY,description:epe,actions:[{...YW,notApplicableReason:o.error},{...NO,notApplicableReason:o.error}]}]:et:[{name:bY,description:epe,actions:[o.addBraces?YW:NO]}]:et}function mJe(e,t){let{file:r,startPosition:i}=e,o=F2e(r,i);C.assert(o&&!Jg(o),"Expected applicable refactor info");let{expression:s,returnStatement:l,func:u}=o,p;if(t===YW.name){let m=k.createReturnStatement(s);p=k.createBlock([m],!0),S2(s,m,r,3,!0)}else if(t===NO.name&&l){let m=s||k.createVoidZero();p=hW(m)?k.createParenthesizedExpression(m):m,_O(l,p,r,3,!1),S2(l,p,r,3,!1),pP(l,p,r,3,!1)}else C.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:hr.ChangeTracker.with(e,m=>{m.replaceNode(r,u.body,p)})}}function F2e(e,t,r=!0,i){let o=po(e,t),s=zp(o);if(!s)return{error:Bo(f.Could_not_find_a_containing_arrow_function)};if(!Bs(s))return{error:Bo(f.Containing_function_is_not_an_arrow_function)};if(!(!of(s,o)||of(s.body,o)&&!r)){if(P0(YW.kind,i)&&bt(s.body))return{func:s,addBraces:!0,expression:s.body};if(P0(NO.kind,i)&&Xo(s.body)&&s.body.statements.length===1){let l=Ha(s.body.statements);if(Rm(l)){let u=l.expression&&wa(xR(l.expression,!1))?k.createParenthesizedExpression(l.expression):l.expression;return{func:s,addBraces:!1,expression:u,returnStatement:l}}}}}var bY,epe,YW,NO,_Je=A({"src/services/refactors/addOrRemoveBracesToArrowFunction.ts"(){"use strict";ci(),xh(),bY="Add or remove braces in an arrow function",epe=Bo(f.Add_or_remove_braces_in_an_arrow_function),YW={name:"Add braces to arrow function",description:Bo(f.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},NO={name:"Remove braces from arrow function",description:Bo(f.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"},dg(bY,{kinds:[NO.kind],getEditsForAction:mJe,getAvailableActions:fJe})}}),hJe={},gJe=A({"src/services/_namespaces/ts.refactor.addOrRemoveBracesToArrowFunction.ts"(){"use strict";pJe(),_Je()}});function vJe(e){let{file:t,startPosition:r,program:i,kind:o}=e,s=z2e(t,r,i);if(!s)return et;let{selectedVariableDeclaration:l,func:u}=s,p=[],g=[];if(P0(MO.kind,o)){let m=l||Bs(u)&&Oi(u.parent)?void 0:Bo(f.Could_not_convert_to_named_function);m?g.push({...MO,notApplicableReason:m}):p.push(MO)}if(P0(PO.kind,o)){let m=!l&&Bs(u)?void 0:Bo(f.Could_not_convert_to_anonymous_function);m?g.push({...PO,notApplicableReason:m}):p.push(PO)}if(P0(LO.kind,o)){let m=ws(u)?void 0:Bo(f.Could_not_convert_to_arrow_function);m?g.push({...LO,notApplicableReason:m}):p.push(LO)}return[{name:tpe,description:V2e,actions:p.length===0&&e.preferences.provideRefactorNotApplicableReason?g:p}]}function yJe(e,t){let{file:r,startPosition:i,program:o}=e,s=z2e(r,i,o);if(!s)return;let{func:l}=s,u=[];switch(t){case PO.name:u.push(...TJe(e,l));break;case MO.name:let p=SJe(l);if(!p)return;u.push(...AJe(e,l,p));break;case LO.name:if(!ws(l))return;u.push(...IJe(e,l));break;default:return C.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:u}}function W2e(e){let t=!1;return e.forEachChild(function r(i){if(h2(i)){t=!0;return}!pi(i)&&!Sc(i)&&!ws(i)&&Ho(i,r)}),t}function z2e(e,t,r){let i=po(e,t),o=r.getTypeChecker(),s=EJe(e,o,i.parent);if(s&&!W2e(s.body)&&!o.containsArgumentsReference(s))return{selectedVariableDeclaration:!0,func:s};let l=zp(i);if(l&&(ws(l)||Bs(l))&&!of(l.body,i)&&!W2e(l.body)&&!o.containsArgumentsReference(l))return ws(l)&&G2e(e,o,l)?void 0:{selectedVariableDeclaration:!1,func:l}}function bJe(e){return Oi(e)||jc(e)&&e.declarations.length===1}function EJe(e,t,r){if(!bJe(r))return;let o=(Oi(r)?r:Ha(r.declarations)).initializer;if(o&&(Bs(o)||ws(o)&&!G2e(e,t,o)))return o}function B2e(e){if(bt(e)){let t=k.createReturnStatement(e),r=e.getSourceFile();return dt(t,e),Sp(t),_O(e,t,r,void 0,!0),k.createBlock([t],!0)}else return e}function SJe(e){let t=e.parent;if(!Oi(t)||!AC(t))return;let r=t.parent,i=r.parent;if(!(!jc(r)||!Ml(i)||!Ve(t.name)))return{variableDeclaration:t,variableDeclarationList:r,statement:i,name:t.name}}function TJe(e,t){let{file:r}=e,i=B2e(t.body),o=k.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,t.typeParameters,t.parameters,t.type,i);return hr.ChangeTracker.with(e,s=>s.replaceNode(r,t,o))}function AJe(e,t,r){let{file:i}=e,o=B2e(t.body),{variableDeclaration:s,variableDeclarationList:l,statement:u,name:p}=r;EX(u);let g=t0(s)&32|cd(t),m=k.createModifiersFromModifierFlags(g),b=k.createFunctionDeclaration(De(m)?m:void 0,t.asteriskToken,p,t.typeParameters,t.parameters,t.type,o);return l.declarations.length===1?hr.ChangeTracker.with(e,T=>T.replaceNode(i,u,b)):hr.ChangeTracker.with(e,T=>{T.delete(i,s),T.insertNodeAfter(i,u,b)})}function IJe(e,t){let{file:r}=e,o=t.body.statements[0],s;xJe(t.body,o)?(s=o.expression,Sp(s),eT(o,s)):s=t.body;let l=k.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,k.createToken(39),s);return hr.ChangeTracker.with(e,u=>u.replaceNode(r,t,l))}function xJe(e,t){return e.statements.length===1&&Rm(t)&&!!t.expression}function G2e(e,t,r){return!!r.name&&Os.Core.isSymbolReferencedInFile(r.name,t,e)}var tpe,V2e,PO,MO,LO,RJe=A({"src/services/refactors/convertArrowFunctionOrFunctionExpression.ts"(){"use strict";ci(),xh(),tpe="Convert arrow function or function expression",V2e=Bo(f.Convert_arrow_function_or_function_expression),PO={name:"Convert to anonymous function",description:Bo(f.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},MO={name:"Convert to named function",description:Bo(f.Convert_to_named_function),kind:"refactor.rewrite.function.named"},LO={name:"Convert to arrow function",description:Bo(f.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"},dg(tpe,{kinds:[PO.kind,MO.kind,LO.kind],getEditsForAction:yJe,getAvailableActions:vJe})}}),DJe={},CJe=A({"src/services/_namespaces/ts.refactor.convertArrowFunctionOrFunctionExpression.ts"(){"use strict";RJe()}});function NJe(e){let{file:t,startPosition:r}=e;return ld(t)||!H2e(t,r,e.program.getTypeChecker())?et:[{name:QW,description:ope,actions:[ape]}]}function PJe(e,t){C.assert(t===QW,"Unexpected action name");let{file:r,startPosition:i,program:o,cancellationToken:s,host:l}=e,u=H2e(r,i,o.getTypeChecker());if(!u||!s)return;let p=LJe(u,o,s);return p.valid?{renameFilename:void 0,renameLocation:void 0,edits:hr.ChangeTracker.with(e,m=>MJe(r,o,l,m,u,p))}:{edits:[]}}function MJe(e,t,r,i,o,s){let l=s.signature,u=Ft(X2e(o,t,r),m=>sl(m));if(l){let m=Ft(X2e(l,t,r),b=>sl(b));g(l,m)}g(o,u);let p=XD(s.functionCalls,(m,b)=>tl(m.pos,b.pos));for(let m of p)if(m.arguments&&m.arguments.length){let b=sl(jJe(o,m.arguments),!0);i.replaceNodeRange(Vn(m),Ha(m.arguments),Ya(m.arguments),b,{leadingTriviaOption:hr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:hr.TrailingTriviaOption.Include})}function g(m,b){i.replaceNodeRangeWithNodes(e,Ha(m.parameters),Ya(m.parameters),b,{joiner:", ",indentation:0,leadingTriviaOption:hr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:hr.TrailingTriviaOption.Include})}}function LJe(e,t,r){let i=HJe(e),o=Pl(e)?UJe(e):[],s=h1([...i,...o],Cv),l=t.getTypeChecker(),u=Zi(s,b=>Os.getReferenceEntriesForNode(-1,b,t,t.getSourceFiles(),r)),p=g(u);return Jn(p.declarations,b=>wr(s,b))||(p.valid=!1),p;function g(b){let T={accessExpressions:[],typeUsages:[]},I={functionCalls:[],declarations:[],classReferences:T,valid:!0},R=Ft(i,m),M=Ft(o,m),N=Pl(e),O=Ft(i,H=>npe(H,l));for(let H of b){if(H.kind===Os.EntryKind.Span){I.valid=!1;continue}if(wr(O,m(H.node))){if(FJe(H.node.parent)){I.signature=H.node.parent;continue}let Z=U2e(H);if(Z){I.functionCalls.push(Z);continue}}let K=npe(H.node,l);if(K&&wr(O,K)){let Z=rpe(H);if(Z){I.declarations.push(Z);continue}}if(wr(R,m(H.node))||iP(H.node)){if(j2e(H))continue;let V=rpe(H);if(V){I.declarations.push(V);continue}let ue=U2e(H);if(ue){I.functionCalls.push(ue);continue}}if(N&&wr(M,m(H.node))){if(j2e(H))continue;let V=rpe(H);if(V){I.declarations.push(V);continue}let ue=kJe(H);if(ue){T.accessExpressions.push(ue);continue}if(Tc(e.parent)){let G=wJe(H);if(G){T.typeUsages.push(G);continue}}}I.valid=!1}return I}function m(b){let T=l.getSymbolAtLocation(b);return T&&yX(T,l)}}function npe(e,t){let r=FO(e);if(r){let i=t.getContextualTypeForObjectLiteralElement(r),o=i?.getSymbol();if(o&&!(Al(o)&6))return o}}function j2e(e){let t=e.node;if(tp(t.parent)||Eh(t.parent)||tu(t.parent)||Zy(t.parent)||Ju(t.parent)||Ll(t.parent))return t}function rpe(e){if(qu(e.node.parent))return e.node}function U2e(e){if(e.node.parent){let t=e.node,r=t.parent;switch(r.kind){case 213:case 214:let i=ai(r,T_);if(i&&i.expression===t)return i;break;case 211:let o=ai(r,zr);if(o&&o.parent&&o.name===t){let l=ai(o.parent,T_);if(l&&l.expression===o)return l}break;case 212:let s=ai(r,Ys);if(s&&s.parent&&s.argumentExpression===t){let l=ai(s.parent,T_);if(l&&l.expression===s)return l}break}}}function kJe(e){if(e.node.parent){let t=e.node,r=t.parent;switch(r.kind){case 211:let i=ai(r,zr);if(i&&i.expression===t)return i;break;case 212:let o=ai(r,Ys);if(o&&o.expression===t)return o;break}}}function wJe(e){let t=e.node;if($S(t)===2||R3(t.parent))return t}function H2e(e,t,r){let i=g2(e,t),o=Tie(i);if(!OJe(i)&&o&&WJe(o,r)&&of(o,i)&&!(o.body&&of(o.body,i)))return o}function OJe(e){let t=zn(e,Kx);if(t){let r=zn(t,i=>!Kx(i));return!!r&&zs(r)}return!1}function FJe(e){return yh(e)&&(fd(e.parent)||yp(e.parent))}function WJe(e,t){var r;if(!zJe(e.parameters,t))return!1;switch(e.kind){case 262:return q2e(e)&&$W(e,t);case 174:if(wa(e.parent)){let i=npe(e.name,t);return((r=i?.declarations)==null?void 0:r.length)===1&&$W(e,t)}return $W(e,t);case 176:return Tc(e.parent)?q2e(e.parent)&&$W(e,t):J2e(e.parent.parent)&&$W(e,t);case 218:case 219:return J2e(e.parent)}return!1}function $W(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function q2e(e){return e.name?!0:!!y2(e,90)}function zJe(e,t){return GJe(e)>=Y2e&&Jn(e,r=>BJe(r,t))}function BJe(e,t){if($h(e)){let r=t.getTypeAtLocation(e);if(!t.isArrayType(r)&&!t.isTupleType(r))return!1}return!e.modifiers&&Ve(e.name)}function J2e(e){return Oi(e)&&tR(e)&&Ve(e.name)&&!e.type}function ipe(e){return e.length>0&&h2(e[0].name)}function GJe(e){return ipe(e)?e.length-1:e.length}function K2e(e){return ipe(e)&&(e=k.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function VJe(e,t){return Ve(t)&&Zf(t)===e?k.createShorthandPropertyAssignment(e):k.createPropertyAssignment(e,t)}function jJe(e,t){let r=K2e(e.parameters),i=$h(Ya(r)),o=i?t.slice(0,r.length-1):t,s=Ft(o,(u,p)=>{let g=EY(r[p]),m=VJe(g,u);return Sp(m.name),_c(m)&&Sp(m.initializer),eT(u,m),m});if(i&&t.length>=r.length){let u=t.slice(r.length-1),p=k.createPropertyAssignment(EY(Ya(r)),k.createArrayLiteralExpression(u));s.push(p)}return k.createObjectLiteralExpression(s,!1)}function X2e(e,t,r){let i=t.getTypeChecker(),o=K2e(e.parameters),s=Ft(o,m),l=k.createObjectBindingPattern(s),u=b(o),p;Jn(o,R)&&(p=k.createObjectLiteralExpression());let g=k.createParameterDeclaration(void 0,void 0,l,void 0,u,p);if(ipe(e.parameters)){let M=e.parameters[0],N=k.createParameterDeclaration(void 0,void 0,M.name,void 0,M.type);return Sp(N.name),eT(M.name,N.name),M.type&&(Sp(N.type),eT(M.type,N.type)),k.createNodeArray([N,g])}return k.createNodeArray([g]);function m(M){let N=k.createBindingElement(void 0,void 0,EY(M),$h(M)&&R(M)?k.createArrayLiteralExpression():M.initializer);return Sp(N),M.initializer&&N.initializer&&eT(M.initializer,N.initializer),N}function b(M){let N=Ft(M,T);return M_(k.createTypeLiteralNode(N),1)}function T(M){let N=M.type;!N&&(M.initializer||$h(M))&&(N=I(M));let O=k.createPropertySignature(void 0,EY(M),R(M)?k.createToken(58):M.questionToken,N);return Sp(O),eT(M.name,O.name),M.type&&O.type&&eT(M.type,O.type),O}function I(M){let N=i.getTypeAtLocation(M);return mP(N,M,t,r)}function R(M){if($h(M)){let N=i.getTypeAtLocation(M);return!i.isTupleType(N)}return i.isOptionalParameter(M)}}function EY(e){return Zf(e.name)}function UJe(e){switch(e.parent.kind){case 263:let t=e.parent;return t.name?[t.name]:[C.checkDefined(y2(t,90),"Nameless class declaration should be a default export")];case 231:let i=e.parent,o=e.parent.parent,s=i.name;return s?[s,o.name]:[o.name]}}function HJe(e){switch(e.kind){case 262:return e.name?[e.name]:[C.checkDefined(y2(e,90),"Nameless function declaration should be a default export")];case 174:return[e.name];case 176:let r=C.checkDefined(bs(e,137,e.getSourceFile()),"Constructor declaration should have constructor keyword");return e.parent.kind===231?[e.parent.parent.name,r]:[r];case 219:return[e.parent.name];case 218:return e.name?[e.name,e.parent.name]:[e.parent.name];default:return C.assertNever(e,`Unexpected function declaration kind ${e.kind}`)}}var QW,Y2e,ope,ape,qJe=A({"src/services/refactors/convertParamsToDestructuredObject.ts"(){"use strict";ci(),xh(),QW="Convert parameters to destructured object",Y2e=1,ope=Bo(f.Convert_parameters_to_destructured_object),ape={name:QW,description:ope,kind:"refactor.rewrite.parameters.toDestructured"},dg(QW,{kinds:[ape.kind],getEditsForAction:PJe,getAvailableActions:NJe})}}),JJe={},KJe=A({"src/services/_namespaces/ts.refactor.convertParamsToDestructuredObject.ts"(){"use strict";qJe()}});function XJe(e){let{file:t,startPosition:r}=e,i=$2e(t,r),o=spe(i),s=Na(o),l={name:SY,description:TY,actions:[]};return s&&e.triggerReason!=="invoked"?et:eg(o)&&(s||_r(o)&&lpe(o).isValidConcatenation)?(l.actions.push(AY),[l]):e.preferences.provideRefactorNotApplicableReason?(l.actions.push({...AY,notApplicableReason:Bo(f.Can_only_convert_string_concatenations_and_string_literals)}),[l]):et}function $2e(e,t){let r=po(e,t),i=spe(r);return!lpe(i).isValidConcatenation&&Wd(i.parent)&&_r(i.parent.parent)?i.parent.parent:r}function YJe(e,t){let{file:r,startPosition:i}=e,o=$2e(r,i);switch(t){case TY:return{edits:$Je(e,o)};default:return C.fail("invalid action")}}function $Je(e,t){let r=spe(t),i=e.file,o=eKe(lpe(r),i),s=Qb(i.text,r.end);if(s){let l=s[s.length-1],u={pos:s[0].pos,end:l.end};return hr.ChangeTracker.with(e,p=>{p.deleteRange(i,u),p.replaceNode(i,r,o)})}else return hr.ChangeTracker.with(e,l=>l.replaceNode(i,r,o))}function QJe(e){return!(e.operatorToken.kind===64||e.operatorToken.kind===65)}function spe(e){return zn(e.parent,r=>{switch(r.kind){case 211:case 212:return!1;case 228:case 226:return!(_r(r.parent)&&QJe(r.parent));default:return"quit"}})||e}function lpe(e){let t=l=>{if(!_r(l))return{nodes:[l],operators:[],validOperators:!0,hasString:Na(l)||QA(l)};let{nodes:u,operators:p,hasString:g,validOperators:m}=t(l.left);if(!(g||Na(l.right)||Q7(l.right)))return{nodes:[l],operators:[],hasString:!1,validOperators:!0};let b=l.operatorToken.kind===40,T=m&&b;return u.push(l.right),p.push(l.operatorToken),{nodes:u,operators:p,hasString:!0,validOperators:T}},{nodes:r,operators:i,validOperators:o,hasString:s}=t(e);return{nodes:r,operators:i,isValidConcatenation:o&&s}}function ZJe(e){return e.replace(/\\.|[$`]/g,t=>t[0]==="\\"?t:"\\"+t)}function Q2e(e){let t=ZA(e)||mH(e)?-2:-1;return pc(e).slice(1,t)}function Z2e(e,t){let r=[],i="",o="";for(;e{eDe(K);let V=Z===T.templateSpans.length-1,ue=K.literal.text+(V?R:""),G=Q2e(K.literal)+(V?M:"");return k.createTemplateSpan(K.expression,O&&V?k.createTemplateTail(ue,G):k.createTemplateMiddle(ue,G))});g.push(...H)}else{let H=O?k.createTemplateTail(R,M):k.createTemplateMiddle(R,M);o(N,H),g.push(k.createTemplateSpan(T,H))}}return k.createTemplateExpression(m,g)}function eDe(e){let t=e.getSourceFile();pP(e,e.expression,t,3,!1),_O(e.expression,e.expression,t,3,!1)}function tKe(e){return Wd(e)&&(eDe(e),e=e.expression),e}var SY,TY,AY,tDe,nDe,nKe=A({"src/services/refactors/convertStringOrTemplateLiteral.ts"(){"use strict";ci(),xh(),SY="Convert to template string",TY=Bo(f.Convert_to_template_string),AY={name:SY,description:TY,kind:"refactor.rewrite.string"},dg(SY,{kinds:[AY.kind],getEditsForAction:YJe,getAvailableActions:XJe}),tDe=(e,t)=>(r,i)=>{r(i,o)=>{for(;i.length>0;){let s=i.shift();pP(e[s],o,t,3,!1),r(s,o)}}}}),rKe={},iKe=A({"src/services/_namespaces/ts.refactor.convertStringOrTemplateLiteral.ts"(){"use strict";nKe()}});function oKe(e){let t=rDe(e,e.triggerReason==="invoked");return t?Jg(t)?e.preferences.provideRefactorNotApplicableReason?[{name:ZW,description:RY,actions:[{...DY,notApplicableReason:t.error}]}]:et:[{name:ZW,description:RY,actions:[DY]}]:et}function aKe(e,t){let r=rDe(e);return C.assert(r&&!Jg(r),"Expected applicable refactor info"),{edits:hr.ChangeTracker.with(e,o=>mKe(e.file,e.program.getTypeChecker(),o,r,t)),renameFilename:void 0,renameLocation:void 0}}function IY(e){return _r(e)||BR(e)}function sKe(e){return eu(e)||Rm(e)||Ml(e)}function xY(e){return IY(e)||sKe(e)}function rDe(e,t=!0){let{file:r,program:i}=e,o=DI(e),s=o.length===0;if(s&&!t)return;let l=po(r,o.start),u=eW(r,o.start+o.length),p=dc(l.pos,u&&u.end>=l.pos?u.getEnd():l.getEnd()),g=s?pKe(l):dKe(l,p),m=g&&xY(g)?fKe(g):void 0;if(!m)return{error:Bo(f.Could_not_find_convertible_access_expression)};let b=i.getTypeChecker();return BR(m)?lKe(m,b):cKe(m)}function lKe(e,t){let r=e.condition,i=upe(e.whenTrue);if(!i||t.isNullableType(t.getTypeAtLocation(i)))return{error:Bo(f.Could_not_find_convertible_access_expression)};if((zr(r)||Ve(r))&&cpe(r,i.expression))return{finalExpression:i,occurrences:[r],expression:e};if(_r(r)){let o=iDe(i.expression,r);return o?{finalExpression:i,occurrences:o,expression:e}:{error:Bo(f.Could_not_find_matching_access_expressions)}}}function cKe(e){if(e.operatorToken.kind!==56)return{error:Bo(f.Can_only_convert_logical_AND_access_chains)};let t=upe(e.right);if(!t)return{error:Bo(f.Could_not_find_convertible_access_expression)};let r=iDe(t.expression,e.left);return r?{finalExpression:t,occurrences:r,expression:e}:{error:Bo(f.Could_not_find_matching_access_expressions)}}function iDe(e,t){let r=[];for(;_r(t)&&t.operatorToken.kind===56;){let o=cpe(vs(e),vs(t.right));if(!o)break;r.push(o),e=o,t=t.left}let i=cpe(e,t);return i&&r.push(i),r.length>0?r:void 0}function cpe(e,t){if(!(!Ve(t)&&!zr(t)&&!Ys(t)))return uKe(e,t)?t:void 0}function uKe(e,t){for(;(la(e)||zr(e)||Ys(e))&&kO(e)!==kO(t);)e=e.expression;for(;zr(e)&&zr(t)||Ys(e)&&Ys(t);){if(kO(e)!==kO(t))return!1;e=e.expression,t=t.expression}return Ve(e)&&Ve(t)&&e.getText()===t.getText()}function kO(e){if(Ve(e)||Qp(e))return e.getText();if(zr(e))return kO(e.name);if(Ys(e))return kO(e.argumentExpression)}function dKe(e,t){for(;e.parent;){if(xY(e)&&t.length!==0&&e.end>=t.start+t.length)return e;e=e.parent}}function pKe(e){for(;e.parent;){if(xY(e)&&!xY(e.parent))return e;e=e.parent}}function fKe(e){if(IY(e))return e;if(Ml(e)){let t=kA(e),r=t?.initializer;return r&&IY(r)?r:void 0}return e.expression&&IY(e.expression)?e.expression:void 0}function upe(e){if(e=vs(e),_r(e))return upe(e.left);if((zr(e)||Ys(e)||la(e))&&!Hu(e))return e}function oDe(e,t,r){if(zr(t)||Ys(t)||la(t)){let i=oDe(e,t.expression,r),o=r.length>0?r[r.length-1]:void 0,s=o?.getText()===t.expression.getText();if(s&&r.pop(),la(t))return s?k.createCallChain(i,k.createToken(29),t.typeArguments,t.arguments):k.createCallChain(i,t.questionDotToken,t.typeArguments,t.arguments);if(zr(t))return s?k.createPropertyAccessChain(i,k.createToken(29),t.name):k.createPropertyAccessChain(i,t.questionDotToken,t.name);if(Ys(t))return s?k.createElementAccessChain(i,k.createToken(29),t.argumentExpression):k.createElementAccessChain(i,t.questionDotToken,t.argumentExpression)}return t}function mKe(e,t,r,i,o){let{finalExpression:s,occurrences:l,expression:u}=i,p=l[l.length-1],g=oDe(t,s,l);g&&(zr(g)||Ys(g)||la(g))&&(_r(u)?r.replaceNodeRange(e,p,s,g):BR(u)&&r.replaceNode(e,u,k.createBinaryExpression(g,k.createToken(61),u.whenFalse)))}var ZW,RY,DY,_Ke=A({"src/services/refactors/convertToOptionalChainExpression.ts"(){"use strict";ci(),xh(),ZW="Convert to optional chain expression",RY=Bo(f.Convert_to_optional_chain_expression),DY={name:ZW,description:RY,kind:"refactor.rewrite.expression.optionalChain"},dg(ZW,{kinds:[DY.kind],getEditsForAction:aKe,getAvailableActions:oKe})}}),hKe={},gKe=A({"src/services/_namespaces/ts.refactor.convertToOptionalChainExpression.ts"(){"use strict";_Ke()}});function aDe(e){let t=e.kind,r=dpe(e.file,DI(e),e.triggerReason==="invoked"),i=r.targetRange;if(i===void 0){if(!r.errors||r.errors.length===0||!e.preferences.provideRefactorNotApplicableReason)return et;let R=[];return P0(D2.kind,t)&&R.push({name:x2,description:D2.description,actions:[{...D2,notApplicableReason:I(r.errors)}]}),P0(R2.kind,t)&&R.push({name:x2,description:R2.description,actions:[{...R2,notApplicableReason:I(r.errors)}]}),R}let o=TKe(i,e);if(o===void 0)return et;let s=[],l=new Map,u,p=[],g=new Map,m,b=0;for(let{functionExtraction:R,constantExtraction:M}of o){if(P0(D2.kind,t)){let N=R.description;R.errors.length===0?l.has(N)||(l.set(N,!0),s.push({description:N,name:`function_scope_${b}`,kind:D2.kind})):u||(u={description:N,name:`function_scope_${b}`,notApplicableReason:I(R.errors),kind:D2.kind})}if(P0(R2.kind,t)){let N=M.description;M.errors.length===0?g.has(N)||(g.set(N,!0),p.push({description:N,name:`constant_scope_${b}`,kind:R2.kind})):m||(m={description:N,name:`constant_scope_${b}`,notApplicableReason:I(M.errors),kind:R2.kind})}b++}let T=[];return s.length?T.push({name:x2,description:Bo(f.Extract_function),actions:s}):e.preferences.provideRefactorNotApplicableReason&&u&&T.push({name:x2,description:Bo(f.Extract_function),actions:[u]}),p.length?T.push({name:x2,description:Bo(f.Extract_constant),actions:p}):e.preferences.provideRefactorNotApplicableReason&&m&&T.push({name:x2,description:Bo(f.Extract_constant),actions:[m]}),T.length?T:et;function I(R){let M=R[0].messageText;return typeof M!="string"&&(M=M.messageText),M}}function sDe(e,t){let i=dpe(e.file,DI(e)).targetRange,o=/^function_scope_(\d+)$/.exec(t);if(o){let l=+o[1];return C.assert(isFinite(l),"Expected to parse a finite number from the function scope index"),EKe(i,e,l)}let s=/^constant_scope_(\d+)$/.exec(t);if(s){let l=+s[1];return C.assert(isFinite(l),"Expected to parse a finite number from the constant scope index"),SKe(i,e,l)}C.fail("Unrecognized action name")}function dpe(e,t,r=!0){let{length:i}=t;if(i===0&&!r)return{errors:[Qc(e,t.start,i,Tu.cannotExtractEmpty)]};let o=i===0&&r,s=yue(e,t.start),l=eW(e,ql(t)),u=s&&l&&r?vKe(s,l,e):t,p=o?jKe(s):dO(s,e,u),g=o?p:dO(l,e,u),m=0,b;if(!p||!g)return{errors:[Qc(e,t.start,i,Tu.cannotExtractRange)]};if(p.flags&16777216)return{errors:[Qc(e,t.start,i,Tu.cannotExtractJSDoc)]};if(p.parent!==g.parent)return{errors:[Qc(e,t.start,i,Tu.cannotExtractRange)]};if(p!==g){if(!cDe(p.parent))return{errors:[Qc(e,t.start,i,Tu.cannotExtractRange)]};let H=[];for(let K of p.parent.statements){if(K===p||H.length){let Z=O(K);if(Z)return{errors:Z};H.push(K)}if(K===g)break}return H.length?{targetRange:{range:H,facts:m,thisNode:b}}:{errors:[Qc(e,t.start,i,Tu.cannotExtractRange)]}}if(Rm(p)&&!p.expression)return{errors:[Qc(e,t.start,i,Tu.cannotExtractRange)]};let T=R(p),I=M(T)||O(T);if(I)return{errors:I};return{targetRange:{range:yKe(T),facts:m,thisNode:b}};function R(H){if(Rm(H)){if(H.expression)return H.expression}else if(Ml(H)||jc(H)){let K=Ml(H)?H.declarationList.declarations:H.declarations,Z=0,V;for(let ue of K)ue.initializer&&(Z++,V=ue.initializer);if(Z===1)return V}else if(Oi(H)&&H.initializer)return H.initializer;return H}function M(H){if(Ve(eu(H)?H.expression:H))return[Or(H,Tu.cannotExtractIdentifier)]}function N(H,K){let Z=H;for(;Z!==K;){if(Z.kind===172){sa(Z)&&(m|=32);break}else if(Z.kind===169){zp(Z).kind===176&&(m|=32);break}else Z.kind===174&&sa(Z)&&(m|=32);Z=Z.parent}}function O(H){let K;if((he=>{he[he.None=0]="None",he[he.Break=1]="Break",he[he.Continue=2]="Continue",he[he.Return=4]="Return"})(K||(K={})),C.assert(H.pos<=H.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),C.assert(!Qm(H.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!Ki(H)&&!(eg(H)&&lDe(H))&&!hpe(H))return[Or(H,Tu.statementOrExpressionExpected)];if(H.flags&33554432)return[Or(H,Tu.cannotExtractAmbientBlock)];let Z=su(H);Z&&N(H,Z);let V,ue=4,G;if(ne(H),m&8){let he=wd(H,!1,!1);(he.kind===262||he.kind===174&&he.parent.kind===210||he.kind===218)&&(m|=16)}return V;function ne(he){if(V)return!0;if(qu(he)){let $=he.kind===260?he.parent.parent:he;if(ei($,32))return(V||(V=[])).push(Or(he,Tu.cannotExtractExportedEntity)),!0}switch(he.kind){case 272:return(V||(V=[])).push(Or(he,Tu.cannotExtractImport)),!0;case 277:return(V||(V=[])).push(Or(he,Tu.cannotExtractExportedEntity)),!0;case 108:if(he.parent.kind===213){let $=su(he);if($===void 0||$.pos=t.start+t.length)return(V||(V=[])).push(Or(he,Tu.cannotExtractSuper)),!0}else m|=8,b=he;break;case 219:Ho(he,function $(Y){if(h2(Y))m|=8,b=he;else{if(pi(Y)||ea(Y)&&!Bs(Y))return!1;Ho(Y,$)}});case 263:case 262:no(he.parent)&&he.parent.externalModuleIndicator===void 0&&(V||(V=[])).push(Or(he,Tu.functionWillNotBeVisibleInTheNewScope));case 231:case 218:case 174:case 176:case 177:case 178:return!1}let ye=ue;switch(he.kind){case 245:ue&=-5;break;case 258:ue=0;break;case 241:he.parent&&he.parent.kind===258&&he.parent.finallyBlock===he&&(ue=4);break;case 297:case 296:ue|=1;break;default:ky(he,!1)&&(ue|=3);break}switch(he.kind){case 197:case 110:m|=8,b=he;break;case 256:{let $=he.label;(G||(G=[])).push($.escapedText),Ho(he,ne),G.pop();break}case 252:case 251:{let $=he.label;$?wr(G,$.escapedText)||(V||(V=[])).push(Or(he,Tu.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):ue&(he.kind===252?1:2)||(V||(V=[])).push(Or(he,Tu.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 223:m|=4;break;case 229:m|=2;break;case 253:ue&4?m|=1:(V||(V=[])).push(Or(he,Tu.cannotExtractRangeContainingConditionalReturnStatement));break;default:Ho(he,ne);break}ue=ye}}}function vKe(e,t,r){let i=e.getStart(r),o=t.getEnd();return r.text.charCodeAt(o)===59&&o++,{start:i,length:o-i}}function yKe(e){if(Ki(e))return[e];if(eg(e))return eu(e.parent)?[e.parent]:e;if(hpe(e))return e}function ppe(e){return Bs(e)?ZV(e.body):zs(e)||no(e)||k_(e)||pi(e)}function bKe(e){let t=ey(e.range)?Ha(e.range):e.range;if(e.facts&8&&!(e.facts&16)){let i=su(t);if(i){let o=zn(t,zs);return o?[o,i]:[i]}}let r=[];for(;;)if(t=t.parent,t.kind===169&&(t=zn(t,i=>zs(i)).parent),ppe(t)&&(r.push(t),t.kind===312))return r}function EKe(e,t,r){let{scopes:i,readsAndWrites:{target:o,usagesPerScope:s,functionErrorsPerScope:l,exposedVariableDeclarations:u}}=fpe(e,t);return C.assert(!l[r].length,"The extraction went missing? How?"),t.cancellationToken.throwIfCancellationRequested(),CKe(o,i[r],s[r],u,e,t)}function SKe(e,t,r){let{scopes:i,readsAndWrites:{target:o,usagesPerScope:s,constantErrorsPerScope:l,exposedVariableDeclarations:u}}=fpe(e,t);C.assert(!l[r].length,"The extraction went missing? How?"),C.assert(u.length===0,"Extract constant accepted a range containing a variable declaration?"),t.cancellationToken.throwIfCancellationRequested();let p=bt(o)?o:o.statements[0].expression;return NKe(p,i[r],s[r],e.facts,t)}function TKe(e,t){let{scopes:r,readsAndWrites:{functionErrorsPerScope:i,constantErrorsPerScope:o}}=fpe(e,t);return r.map((l,u)=>{let p=AKe(l),g=IKe(l),m=zs(l)?xKe(l):pi(l)?RKe(l):DKe(l),b,T;return m===1?(b=ag(Bo(f.Extract_to_0_in_1_scope),[p,"global"]),T=ag(Bo(f.Extract_to_0_in_1_scope),[g,"global"])):m===0?(b=ag(Bo(f.Extract_to_0_in_1_scope),[p,"module"]),T=ag(Bo(f.Extract_to_0_in_1_scope),[g,"module"])):(b=ag(Bo(f.Extract_to_0_in_1),[p,m]),T=ag(Bo(f.Extract_to_0_in_1),[g,m])),u===0&&!pi(l)&&(T=ag(Bo(f.Extract_to_0_in_enclosing_scope),[g])),{functionExtraction:{description:b,errors:i[u]},constantExtraction:{description:T,errors:o[u]}}})}function fpe(e,t){let{file:r}=t,i=bKe(e),o=GKe(e,r),s=VKe(e,i,o,r,t.program.getTypeChecker(),t.cancellationToken);return{scopes:i,readsAndWrites:s}}function AKe(e){return zs(e)?"inner function":pi(e)?"method":"function"}function IKe(e){return pi(e)?"readonly field":"constant"}function xKe(e){switch(e.kind){case 176:return"constructor";case 218:case 262:return e.name?`function '${e.name.text}'`:MW;case 219:return"arrow function";case 174:return`method '${e.name.getText()}'`;case 177:return`'get ${e.name.getText()}'`;case 178:return`'set ${e.name.getText()}'`;default:C.assertNever(e,`Unexpected scope kind ${e.kind}`)}}function RKe(e){return e.kind===263?e.name?`class '${e.name.text}'`:"anonymous class declaration":e.name?`class expression '${e.name.text}'`:"anonymous class expression"}function DKe(e){return e.kind===268?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}function CKe(e,t,{usages:r,typeParameterUsages:i,substitutions:o},s,l,u){let p=u.program.getTypeChecker(),g=as(u.program.getCompilerOptions()),m=Fu.createImportAdder(u.file,u.program,u.preferences,u.host),b=t.getSourceFile(),T=tT(pi(t)?"newMethod":"newFunction",b),I=cr(t),R=k.createIdentifier(T),M,N=[],O=[],H;r.forEach((Ce,Me)=>{let Fe;if(!I){let Se=p.getTypeOfSymbolAtLocation(Ce.symbol,Ce.node);Se=p.getBaseTypeOfLiteralType(Se),Fe=Fu.typeToAutoImportableTypeNode(p,m,Se,t,g,1)}let At=k.createParameterDeclaration(void 0,void 0,Me,void 0,Fe);N.push(At),Ce.usage===2&&(H||(H=[])).push(Ce),O.push(k.createIdentifier(Me))});let Z=Vo(i.values(),Ce=>({type:Ce,declaration:MKe(Ce,u.startPosition)})).sort(LKe),V=Z.length===0?void 0:Vi(Z,({declaration:Ce})=>Ce),ue=V!==void 0?V.map(Ce=>k.createTypeReferenceNode(Ce.name,void 0)):void 0;if(bt(e)&&!I){let Ce=p.getContextualType(e);M=p.typeToTypeNode(Ce,t,1)}let{body:G,returnValueProperty:ne}=wKe(e,s,H,o,!!(l.facts&1));Sp(G);let he,ye=!!(l.facts&16);if(pi(t)){let Ce=I?[]:[k.createModifier(123)];l.facts&32&&Ce.push(k.createModifier(126)),l.facts&4&&Ce.push(k.createModifier(134)),he=k.createMethodDeclaration(Ce.length?Ce:void 0,l.facts&2?k.createToken(42):void 0,R,void 0,V,N,M,G)}else ye&&N.unshift(k.createParameterDeclaration(void 0,void 0,"this",void 0,p.typeToTypeNode(p.getTypeAtLocation(l.thisNode),t,1),void 0)),he=k.createFunctionDeclaration(l.facts&4?[k.createToken(134)]:void 0,l.facts&2?k.createToken(42):void 0,R,V,N,M,G);let $=hr.ChangeTracker.fromContext(u),Y=(ey(l.range)?Ya(l.range):l.range).end,oe=WKe(Y,t);oe?$.insertNodeBefore(u.file,oe,he,!0):$.insertNodeAtEndOfScope(u.file,t,he),m.writeFixes($);let fe=[],Ne=kKe(t,l,T);ye&&O.unshift(k.createIdentifier("this"));let me=k.createCallExpression(ye?k.createPropertyAccessExpression(Ne,"call"):Ne,ue,O);if(l.facts&2&&(me=k.createYieldExpression(k.createToken(42),me)),l.facts&4&&(me=k.createAwaitExpression(me)),_pe(e)&&(me=k.createJsxExpression(void 0,me)),s.length&&!H)if(C.assert(!ne,"Expected no returnValueProperty"),C.assert(!(l.facts&1),"Expected RangeFacts.HasReturn flag to be unset"),s.length===1){let Ce=s[0];fe.push(k.createVariableStatement(void 0,k.createVariableDeclarationList([k.createVariableDeclaration(sl(Ce.name),void 0,sl(Ce.type),me)],Ce.parent.flags)))}else{let Ce=[],Me=[],Fe=s[0].parent.flags,At=!1;for(let je of s){Ce.push(k.createBindingElement(void 0,void 0,sl(je.name)));let at=p.typeToTypeNode(p.getBaseTypeOfLiteralType(p.getTypeAtLocation(je)),t,1);Me.push(k.createPropertySignature(void 0,je.symbol.name,void 0,at)),At=At||je.type!==void 0,Fe=Fe&je.parent.flags}let Se=At?k.createTypeLiteralNode(Me):void 0;Se&&fr(Se,1),fe.push(k.createVariableStatement(void 0,k.createVariableDeclarationList([k.createVariableDeclaration(k.createObjectBindingPattern(Ce),void 0,Se,me)],Fe)))}else if(s.length||H){if(s.length)for(let Me of s){let Fe=Me.parent.flags;Fe&2&&(Fe=Fe&-3|1),fe.push(k.createVariableStatement(void 0,k.createVariableDeclarationList([k.createVariableDeclaration(Me.symbol.name,void 0,Ee(Me.type))],Fe)))}ne&&fe.push(k.createVariableStatement(void 0,k.createVariableDeclarationList([k.createVariableDeclaration(ne,void 0,Ee(M))],1)));let Ce=mpe(s,H);ne&&Ce.unshift(k.createShorthandPropertyAssignment(ne)),Ce.length===1?(C.assert(!ne,"Shouldn't have returnValueProperty here"),fe.push(k.createExpressionStatement(k.createAssignment(Ce[0].name,me))),l.facts&1&&fe.push(k.createReturnStatement())):(fe.push(k.createExpressionStatement(k.createAssignment(k.createObjectLiteralExpression(Ce),me))),ne&&fe.push(k.createReturnStatement(k.createIdentifier(ne))))}else l.facts&1?fe.push(k.createReturnStatement(me)):ey(l.range)?fe.push(k.createExpressionStatement(me)):fe.push(me);ey(l.range)?$.replaceNodeRangeWithNodes(u.file,Ha(l.range),Ya(l.range),fe):$.replaceNodeWithNodes(u.file,l.range,fe);let ie=$.getChanges(),Le=(ey(l.range)?Ha(l.range):l.range).getSourceFile().fileName,He=mO(ie,Le,T,!1);return{renameFilename:Le,renameLocation:He,edits:ie};function Ee(Ce){if(Ce===void 0)return;let Me=sl(Ce),Fe=Me;for(;LS(Fe);)Fe=Fe.type;return Xy(Fe)&&vn(Fe.types,At=>At.kind===157)?Me:k.createUnionTypeNode([Me,k.createKeywordTypeNode(157)])}}function NKe(e,t,{substitutions:r},i,o){let s=o.program.getTypeChecker(),l=t.getSourceFile(),u=zr(e)&&!pi(t)&&!s.resolveName(e.name.text,e,111551,!1)&&!Xi(e.name)&&!n0(e.name)?e.name.text:tT(pi(t)?"newProperty":"newLocal",l),p=cr(t),g=p||!s.isContextSensitive(e)?void 0:s.typeToTypeNode(s.getContextualType(e),t,1),m=OKe(vs(e),r);({variableType:g,initializer:m}=M(g,m)),Sp(m);let b=hr.ChangeTracker.fromContext(o);if(pi(t)){C.assert(!p,"Cannot extract to a JS class");let N=[];N.push(k.createModifier(123)),i&32&&N.push(k.createModifier(126)),N.push(k.createModifier(148));let O=k.createPropertyDeclaration(N,u,void 0,g,m),H=k.createPropertyAccessExpression(i&32?k.createIdentifier(t.name.getText()):k.createThis(),k.createIdentifier(u));_pe(e)&&(H=k.createJsxExpression(void 0,H));let K=e.pos,Z=zKe(K,t);b.insertNodeBefore(o.file,Z,O,!0),b.replaceNode(o.file,e,H)}else{let N=k.createVariableDeclaration(u,void 0,g,m),O=PKe(e,t);if(O){b.insertNodeBefore(o.file,O,N);let H=k.createIdentifier(u);b.replaceNode(o.file,e,H)}else if(e.parent.kind===244&&t===zn(e,ppe)){let H=k.createVariableStatement(void 0,k.createVariableDeclarationList([N],2));b.replaceNode(o.file,e.parent,H)}else{let H=k.createVariableStatement(void 0,k.createVariableDeclarationList([N],2)),K=BKe(e,t);if(K.pos===0?b.insertNodeAtTopOfFile(o.file,H,!1):b.insertNodeBefore(o.file,K,H,!1),e.parent.kind===244)b.delete(o.file,e.parent);else{let Z=k.createIdentifier(u);_pe(e)&&(Z=k.createJsxExpression(void 0,Z)),b.replaceNode(o.file,e,Z)}}}let T=b.getChanges(),I=e.getSourceFile().fileName,R=mO(T,I,u,!0);return{renameFilename:I,renameLocation:R,edits:T};function M(N,O){if(N===void 0)return{variableType:N,initializer:O};if(!ws(O)&&!Bs(O)||O.typeParameters)return{variableType:N,initializer:O};let H=s.getTypeAtLocation(e),K=ah(s.getSignaturesOfType(H,0));if(!K)return{variableType:N,initializer:O};if(K.getTypeParameters())return{variableType:N,initializer:O};let Z=[],V=!1;for(let ue of O.parameters)if(ue.type)Z.push(ue);else{let G=s.getTypeAtLocation(ue);G===s.getAnyType()&&(V=!0),Z.push(k.updateParameterDeclaration(ue,ue.modifiers,ue.dotDotDotToken,ue.name,ue.questionToken,ue.type||s.typeToTypeNode(G,t,1),ue.initializer))}if(V)return{variableType:N,initializer:O};if(N=void 0,Bs(O))O=k.updateArrowFunction(O,Cm(e)?b1(e):void 0,O.typeParameters,Z,O.type||s.typeToTypeNode(K.getReturnType(),t,1),O.equalsGreaterThanToken,O.body);else{if(K&&K.thisParameter){let ue=Xc(Z);if(!ue||Ve(ue.name)&&ue.name.escapedText!=="this"){let G=s.getTypeOfSymbolAtLocation(K.thisParameter,e);Z.splice(0,0,k.createParameterDeclaration(void 0,void 0,"this",void 0,s.typeToTypeNode(G,t,1)))}}O=k.updateFunctionExpression(O,Cm(e)?b1(e):void 0,O.asteriskToken,O.name,O.typeParameters,Z,O.type||s.typeToTypeNode(K.getReturnType(),t,1),O.body)}return{variableType:N,initializer:O}}}function PKe(e,t){let r;for(;e!==void 0&&e!==t;){if(Oi(e)&&e.initializer===r&&jc(e.parent)&&e.parent.declarations.length>1)return e;r=e,e=e.parent}}function MKe(e,t){let r,i=e.symbol;if(i&&i.declarations)for(let o of i.declarations)(r===void 0||o.pos0;if(Xo(e)&&!s&&i.size===0)return{body:k.createBlock(e.statements,!0),returnValueProperty:void 0};let l,u=!1,p=k.createNodeArray(Xo(e)?e.statements.slice(0):[Ki(e)?e:k.createReturnStatement(vs(e))]);if(s||i.size){let m=Bn(p,g,Ki).slice();if(s&&!o&&Ki(e)){let b=mpe(t,r);b.length===1?m.push(k.createReturnStatement(b[0].name)):m.push(k.createReturnStatement(k.createObjectLiteralExpression(b)))}return{body:k.createBlock(m,!0),returnValueProperty:l}}else return{body:k.createBlock(p,!0),returnValueProperty:void 0};function g(m){if(!u&&Rm(m)&&s){let b=mpe(t,r);return m.expression&&(l||(l="__return"),b.unshift(k.createPropertyAssignment(l,rt(m.expression,g,bt)))),b.length===1?k.createReturnStatement(b[0].name):k.createReturnStatement(k.createObjectLiteralExpression(b))}else{let b=u;u=u||zs(m)||pi(m);let T=i.get(ss(m).toString()),I=T?sl(T):An(m,g,void 0);return u=b,I}}}function OKe(e,t){return t.size?r(e):e;function r(i){let o=t.get(ss(i).toString());return o?sl(o):An(i,r,void 0)}}function FKe(e){if(zs(e)){let t=e.body;if(Xo(t))return t.statements}else{if(k_(e)||no(e))return e.statements;if(pi(e))return e.members;}return et}function WKe(e,t){return vn(FKe(t),r=>r.pos>=e&&zs(r)&&!Pl(r))}function zKe(e,t){let r=t.members;C.assert(r.length>0,"Found no members");let i,o=!0;for(let s of r){if(s.pos>e)return i||r[0];if(o&&!Jo(s)){if(i!==void 0)return s;o=!1}i=s}return i===void 0?C.fail():i}function BKe(e,t){C.assert(!pi(t));let r;for(let i=e;i!==t;i=i.parent)ppe(i)&&(r=i);for(let i=(r||e).parent;;i=i.parent){if(cDe(i)){let o;for(let s of i.statements){if(s.pos>e.pos)break;o=s}return!o&&GR(i)?(C.assert(SN(i.parent.parent),"Grandparent isn't a switch statement"),i.parent.parent):C.checkDefined(o,"prevStatement failed to get set")}C.assert(i!==t,"Didn't encounter a block-like before encountering scope")}}function mpe(e,t){let r=Ft(e,o=>k.createShorthandPropertyAssignment(o.symbol.name)),i=Ft(t,o=>k.createShorthandPropertyAssignment(o.symbol.name));return r===void 0?i:i===void 0?r:r.concat(i)}function ey(e){return Do(e)}function GKe(e,t){return ey(e.range)?{pos:Ha(e.range).getStart(t),end:Ya(e.range).getEnd()}:e.range}function VKe(e,t,r,i,o,s){let l=new Map,u=[],p=[],g=[],m=[],b=[],T=new Map,I=[],R,M=ey(e.range)?e.range.length===1&&eu(e.range[0])?e.range[0].expression:void 0:e.range,N;if(M===void 0){let oe=e.range,fe=Ha(oe).getStart(),Ne=Ya(oe).end;N=Qc(i,fe,Ne-fe,Tu.expressionExpected)}else o.getTypeAtLocation(M).flags&147456&&(N=Or(M,Tu.uselessConstantType));for(let oe of t){u.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),p.push(new Map),g.push([]);let fe=[];N&&fe.push(N),pi(oe)&&cr(oe)&&fe.push(Or(oe,Tu.cannotExtractToJSClass)),Bs(oe)&&!Xo(oe.body)&&fe.push(Or(oe,Tu.cannotExtractToExpressionArrowFunction)),m.push(fe)}let O=new Map,H=ey(e.range)?k.createBlock(e.range):e.range,K=ey(e.range)?Ha(e.range):e.range,Z=V(K);if(G(H),Z&&!ey(e.range)&&!O_(e.range)){let oe=o.getContextualType(e.range);ue(oe)}if(l.size>0){let oe=new Map,fe=0;for(let Ne=K;Ne!==void 0&&fe{u[fe].typeParameterUsages.set(ie,me)}),fe++),vj(Ne))for(let me of Py(Ne)){let ie=o.getTypeAtLocation(me);l.has(ie.id.toString())&&oe.set(ie.id.toString(),ie)}C.assert(fe===t.length,"Should have iterated all scopes")}if(b.length){let oe=gj(t[0],t[0].parent)?t[0]:_h(t[0]);Ho(oe,ye)}for(let oe=0;oe0&&(fe.usages.size>0||fe.typeParameterUsages.size>0)){let ie=ey(e.range)?e.range[0]:e.range;m[oe].push(Or(ie,Tu.cannotAccessVariablesFromNestedScopes))}e.facts&16&&pi(t[oe])&&g[oe].push(Or(e.thisNode,Tu.cannotExtractFunctionsContainingThisToMethod));let Ne=!1,me;if(u[oe].usages.forEach(ie=>{ie.usage===2&&(Ne=!0,ie.symbol.flags&106500&&ie.symbol.valueDeclaration&&_p(ie.symbol.valueDeclaration,8)&&(me=ie.symbol.valueDeclaration))}),C.assert(ey(e.range)||I.length===0,"No variable declarations expected if something was extracted"),Ne&&!ey(e.range)){let ie=Or(e.range,Tu.cannotWriteInExpression);g[oe].push(ie),m[oe].push(ie)}else if(me&&oe>0){let ie=Or(me,Tu.cannotExtractReadonlyPropertyInitializerOutsideConstructor);g[oe].push(ie),m[oe].push(ie)}else if(R){let ie=Or(R,Tu.cannotExtractExportedEntity);g[oe].push(ie),m[oe].push(ie)}}return{target:H,usagesPerScope:u,functionErrorsPerScope:g,constantErrorsPerScope:m,exposedVariableDeclarations:I};function V(oe){return!!zn(oe,fe=>vj(fe)&&Py(fe).length!==0)}function ue(oe){let fe=o.getSymbolWalker(()=>(s.throwIfCancellationRequested(),!0)),{visitedTypes:Ne}=fe.walkType(oe);for(let me of Ne)me.isTypeParameter()&&l.set(me.id.toString(),me)}function G(oe,fe=1){if(Z){let Ne=o.getTypeAtLocation(oe);ue(Ne)}if(qu(oe)&&oe.symbol&&b.push(oe),Mc(oe))G(oe.left,2),G(oe.right);else if(kre(oe))G(oe.operand,2);else if(zr(oe)||Ys(oe))Ho(oe,G);else if(Ve(oe)){if(!oe.parent||Ad(oe.parent)&&oe!==oe.parent.left||zr(oe.parent)&&oe!==oe.parent.expression)return;ne(oe,fe,Zh(oe))}else Ho(oe,G)}function ne(oe,fe,Ne){let me=he(oe,fe,Ne);if(me)for(let ie=0;ie=fe)return ie;if(O.set(ie,fe),ve){for(let Ee of u)Ee.usages.get(oe.text)&&Ee.usages.set(oe.text,{usage:fe,symbol:me,node:oe});return ie}let Le=me.getDeclarations(),He=Le&&vn(Le,Ee=>Ee.getSourceFile()===i);if(He&&!nO(r,He.getStart(),He.end)){if(e.facts&2&&fe===2){let Ee=Or(oe,Tu.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(let Ce of g)Ce.push(Ee);for(let Ce of m)Ce.push(Ee)}for(let Ee=0;Eeme.symbol===fe);if(Ne)if(Oi(Ne)){let me=Ne.symbol.id.toString();T.has(me)||(I.push(Ne),T.set(me,!0))}else R=R||Ne}Ho(oe,ye)}function $(oe){return oe.parent&&np(oe.parent)&&oe.parent.name===oe?o.getShorthandAssignmentValueSymbol(oe.parent):o.getSymbolAtLocation(oe)}function Y(oe,fe,Ne){if(!oe)return;let me=oe.getDeclarations();if(me&&me.some(ve=>ve.parent===fe))return k.createIdentifier(oe.name);let ie=Y(oe.parent,fe,Ne);if(ie!==void 0)return Ne?k.createQualifiedName(ie,k.createIdentifier(oe.name)):k.createPropertyAccessExpression(ie,oe.name)}}function jKe(e){return zn(e,t=>t.parent&&lDe(t)&&!_r(t.parent))}function lDe(e){let{parent:t}=e;switch(t.kind){case 306:return!1}switch(e.kind){case 11:return t.kind!==272&&t.kind!==276;case 230:case 206:case 208:return!1;case 80:return t.kind!==208&&t.kind!==276&&t.kind!==281}return!0}function cDe(e){switch(e.kind){case 241:case 312:case 268:case 296:return!0;default:return!1}}function _pe(e){return hpe(e)||(cg(e)||zS(e)||X1(e))&&(cg(e.parent)||X1(e.parent))}function hpe(e){return Na(e)&&e.parent&&O_(e.parent)}var x2,R2,D2,Tu,gpe,UKe=A({"src/services/refactors/extractSymbol.ts"(){"use strict";ci(),xh(),x2="Extract Symbol",R2={name:"Extract Constant",description:Bo(f.Extract_constant),kind:"refactor.extract.constant"},D2={name:"Extract Function",description:Bo(f.Extract_function),kind:"refactor.extract.function"},dg(x2,{kinds:[R2.kind,D2.kind],getEditsForAction:sDe,getAvailableActions:aDe}),(e=>{function t(r){return{message:r,code:0,category:3,key:r}}e.cannotExtractRange=t("Cannot extract range."),e.cannotExtractImport=t("Cannot extract import statement."),e.cannotExtractSuper=t("Cannot extract super call."),e.cannotExtractJSDoc=t("Cannot extract JSDoc."),e.cannotExtractEmpty=t("Cannot extract empty range."),e.expressionExpected=t("expression expected."),e.uselessConstantType=t("No reason to extract constant of type."),e.statementOrExpressionExpected=t("Statement or expression expected."),e.cannotExtractRangeContainingConditionalBreakOrContinueStatements=t("Cannot extract range containing conditional break or continue statements."),e.cannotExtractRangeContainingConditionalReturnStatement=t("Cannot extract range containing conditional return statement."),e.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=t("Cannot extract range containing labeled break or continue with target outside of the range."),e.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=t("Cannot extract range containing writes to references located outside of the target range in generators."),e.typeWillNotBeVisibleInTheNewScope=t("Type will not visible in the new scope."),e.functionWillNotBeVisibleInTheNewScope=t("Function will not visible in the new scope."),e.cannotExtractIdentifier=t("Select more than a single identifier."),e.cannotExtractExportedEntity=t("Cannot extract exported declaration"),e.cannotWriteInExpression=t("Cannot write back side-effects when extracting an expression"),e.cannotExtractReadonlyPropertyInitializerOutsideConstructor=t("Cannot move initialization of read-only class property outside of the constructor"),e.cannotExtractAmbientBlock=t("Cannot extract code from ambient contexts"),e.cannotAccessVariablesFromNestedScopes=t("Cannot access variables from nested scopes"),e.cannotExtractToJSClass=t("Cannot extract constant to a class scope in JS"),e.cannotExtractToExpressionArrowFunction=t("Cannot extract constant to an arrow function without a block"),e.cannotExtractFunctionsContainingThisToMethod=t("Cannot extract functions containing this to method")})(Tu||(Tu={})),gpe=(e=>(e[e.None=0]="None",e[e.HasReturn=1]="HasReturn",e[e.IsGenerator=2]="IsGenerator",e[e.IsAsyncFunction=4]="IsAsyncFunction",e[e.UsesThis=8]="UsesThis",e[e.UsesThisInFunction=16]="UsesThisInFunction",e[e.InStaticRegion=32]="InStaticRegion",e))(gpe||{})}}),uDe={};X(uDe,{Messages:()=>Tu,RangeFacts:()=>gpe,getRangeToExtract:()=>dpe,getRefactorActionsToExtractSymbol:()=>aDe,getRefactorEditsToExtractSymbol:()=>sDe});var HKe=A({"src/services/_namespaces/ts.refactor.extractSymbol.ts"(){"use strict";UKe()}}),e9,CY,NY,qKe=A({"src/services/refactors/generateGetAccessorAndSetAccessor.ts"(){"use strict";ci(),xh(),e9="Generate 'get' and 'set' accessors",CY=Bo(f.Generate_get_and_set_accessors),NY={name:e9,description:CY,kind:"refactor.rewrite.property.generateAccessors"},dg(e9,{kinds:[NY.kind],getEditsForAction:function(t,r){if(!t.endPosition)return;let i=Fu.getAccessorConvertiblePropertyAtPosition(t.file,t.program,t.startPosition,t.endPosition);C.assert(i&&!Jg(i),"Expected applicable refactor info");let o=Fu.generateAccessorFromProperty(t.file,t.program,t.startPosition,t.endPosition,t,r);if(!o)return;let s=t.file.fileName,l=i.renameAccessor?i.accessorName:i.fieldName,p=(Ve(l)?0:-1)+mO(o,s,l.text,Co(i.declaration));return{renameFilename:s,renameLocation:p,edits:o}},getAvailableActions(e){if(!e.endPosition)return et;let t=Fu.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,e.triggerReason==="invoked");return t?Jg(t)?e.preferences.provideRefactorNotApplicableReason?[{name:e9,description:CY,actions:[{...NY,notApplicableReason:t.error}]}]:et:[{name:e9,description:CY,actions:[NY]}]:et}})}}),JKe={},KKe=A({"src/services/_namespaces/ts.refactor.generateGetAccessorAndSetAccessor.ts"(){"use strict";qKe()}});function XKe(e){let t=dDe(e);if(t&&!Jg(t))return{renameFilename:void 0,renameLocation:void 0,edits:hr.ChangeTracker.with(e,i=>$Ke(e.file,i,t.declaration,t.returnTypeNode))}}function YKe(e){let t=dDe(e);return t?Jg(t)?e.preferences.provideRefactorNotApplicableReason?[{name:t9,description:PY,actions:[{...n9,notApplicableReason:t.error}]}]:et:[{name:t9,description:PY,actions:[n9]}]:et}function $Ke(e,t,r,i){let o=bs(r,22,e),s=Bs(r)&&o===void 0,l=s?Ha(r.parameters):o;l&&(s&&(t.insertNodeBefore(e,l,k.createToken(21)),t.insertNodeAfter(e,l,k.createToken(22))),t.insertNodeAt(e,l.end,i,{prefix:": "}))}function dDe(e){if(cr(e.file)||!P0(n9.kind,e.kind))return;let t=zd(e.file,e.startPosition),r=zn(t,l=>Xo(l)||l.parent&&Bs(l.parent)&&(l.kind===39||l.parent.body===l)?"quit":QKe(l));if(!r||!r.body||r.type)return{error:Bo(f.Return_type_must_be_inferred_from_a_function)};let i=e.program.getTypeChecker(),o=ZKe(i,r);if(!o)return{error:Bo(f.Could_not_determine_function_return_type)};let s=i.typeToTypeNode(o,r,1);if(s)return{declaration:r,returnTypeNode:s}}function QKe(e){switch(e.kind){case 262:case 218:case 219:case 174:return!0;default:return!1}}function ZKe(e,t){if(e.isImplementationOfOverload(t)){let i=e.getTypeAtLocation(t).getCallSignatures();if(i.length>1)return e.getUnionType(Vi(i,o=>o.getReturnType()))}let r=e.getSignatureFromDeclaration(t);if(r)return e.getReturnTypeOfSignature(r)}var t9,PY,n9,eXe=A({"src/services/refactors/inferFunctionReturnType.ts"(){"use strict";ci(),xh(),t9="Infer function return type",PY=Bo(f.Infer_function_return_type),n9={name:t9,description:PY,kind:"refactor.rewrite.function.returnType"},dg(t9,{kinds:[n9.kind],getEditsForAction:XKe,getAvailableActions:YKe})}}),tXe={},nXe=A({"src/services/_namespaces/ts.refactor.inferFunctionReturnType.ts"(){"use strict";eXe()}}),NI={};X(NI,{addExportToChanges:()=>Jde,addExports:()=>jde,addNewFileToTsconfig:()=>Wde,addOrRemoveBracesToArrowFunction:()=>hJe,containsJsx:()=>Xde,convertArrowFunctionOrFunctionExpression:()=>DJe,convertParamsToDestructuredObject:()=>JJe,convertStringOrTemplateLiteral:()=>rKe,convertToOptionalChainExpression:()=>hKe,createNewFileName:()=>Kde,createOldFileImportsFromTargetFile:()=>Vde,deleteMovedStatements:()=>HW,deleteUnusedImports:()=>Ude,deleteUnusedOldImports:()=>zde,doChangeNamedToNamespaceOrDefault:()=>y2e,extractSymbol:()=>uDe,filterImport:()=>DO,forEachImportInStatement:()=>RO,generateGetAccessorAndSetAccessor:()=>JKe,getApplicableRefactors:()=>mqe,getEditsForRefactor:()=>_qe,getStatementsToMove:()=>CO,getTopLevelDeclarationStatement:()=>hY,getUsageInfo:()=>JW,inferFunctionReturnType:()=>tXe,isRefactorErrorInfo:()=>Jg,isTopLevelDeclaration:()=>KW,makeImportOrRequire:()=>qW,moduleSpecifierFromImport:()=>xO,nameOfTopLevelDeclaration:()=>qde,refactorKindBeginsWith:()=>P0,registerRefactor:()=>dg,updateImportsInOtherFiles:()=>Bde});var xh=A({"src/services/_namespaces/ts.refactor.ts"(){"use strict";f2e(),Sqe(),Rqe(),wqe(),Oqe(),Wqe(),Vqe(),cJe(),gJe(),CJe(),KJe(),iKe(),gKe(),HKe(),KKe(),nXe()}});function pDe(e,t,r,i){let o=vpe(e,t,r,i);C.assert(o.spans.length%3===0);let s=o.spans,l=[];for(let u=0;u{o.push(l.getStart(t),l.getWidth(t),(u+1<<8)+p)},i),o}function iXe(e,t,r,i,o){let s=e.getTypeChecker(),l=!1;function u(p){switch(p.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 219:o.throwIfCancellationRequested()}if(!p||!f6(r,p.pos,p.getFullWidth())||p.getFullWidth()===0)return;let g=l;if((cg(p)||zS(p))&&(l=!0),AN(p)&&(l=!1),Ve(p)&&!l&&!lXe(p)&&!oN(p.escapedText)){let m=s.getSymbolAtLocation(p);if(m){m.flags&2097152&&(m=s.getAliasedSymbol(m));let b=oXe(m,$S(p));if(b!==void 0){let T=0;p.parent&&(Qa(p.parent)||Spe.get(p.parent.kind)===b)&&p.parent.name===p&&(T=1),b===6&&mDe(p)&&(b=9),b=aXe(s,p,b);let I=m.valueDeclaration;if(I){let R=t0(I),M=Lv(I);R&256&&(T|=2),R&1024&&(T|=4),b!==0&&b!==2&&(R&8||M&2||m.getFlags()&8)&&(T|=8),(b===7||b===10)&&sXe(I,t)&&(T|=32),e.isSourceFileDefaultLibrary(I.getSourceFile())&&(T|=16)}else m.declarations&&m.declarations.some(R=>e.isSourceFileDefaultLibrary(R.getSourceFile()))&&(T|=16);i(p,b,T)}}}Ho(p,u),l=g}u(t)}function oXe(e,t){let r=e.getFlags();if(r&32)return 0;if(r&384)return 1;if(r&524288)return 5;if(r&64){if(t&2)return 2}else if(r&262144)return 4;let i=e.valueDeclaration||e.declarations&&e.declarations[0];return i&&Qa(i)&&(i=fDe(i)),i&&Spe.get(i.kind)}function aXe(e,t,r){if(r===7||r===9||r===6){let i=e.getTypeAtLocation(t);if(i){let o=s=>s(i)||i.isUnion()&&i.types.some(s);if(r!==6&&o(s=>s.getConstructSignatures().length>0))return 0;if(o(s=>s.getCallSignatures().length>0)&&!o(s=>s.getProperties().length>0)||cXe(t))return r===9?11:10}}return r}function sXe(e,t){return Qa(e)&&(e=fDe(e)),Oi(e)?(!no(e.parent.parent.parent)||$1(e.parent))&&e.getSourceFile()===t:Sc(e)?!no(e.parent)&&e.getSourceFile()===t:!1}function fDe(e){for(;;)if(Qa(e.parent.parent))e=e.parent.parent;else return e.parent.parent}function lXe(e){let t=e.parent;return t&&(Eh(t)||tp(t)||Zy(t))}function cXe(e){for(;mDe(e);)e=e.parent;return la(e.parent)&&e.parent.expression===e}function mDe(e){return Ad(e.parent)&&e.parent.right===e||zr(e.parent)&&e.parent.name===e}var ype,bpe,Epe,Spe,_De=A({"src/services/classifier2020.ts"(){"use strict";ci(),ype=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))(ype||{}),bpe=(e=>(e[e.class=0]="class",e[e.enum=1]="enum",e[e.interface=2]="interface",e[e.namespace=3]="namespace",e[e.typeParameter=4]="typeParameter",e[e.type=5]="type",e[e.parameter=6]="parameter",e[e.variable=7]="variable",e[e.enumMember=8]="enumMember",e[e.property=9]="property",e[e.function=10]="function",e[e.member=11]="member",e))(bpe||{}),Epe=(e=>(e[e.declaration=0]="declaration",e[e.static=1]="static",e[e.async=2]="async",e[e.readonly=3]="readonly",e[e.defaultLibrary=4]="defaultLibrary",e[e.local=5]="local",e))(Epe||{}),Spe=new Map([[260,7],[169,6],[172,9],[267,3],[266,1],[306,8],[263,0],[174,11],[262,10],[218,10],[173,11],[177,9],[178,9],[171,9],[264,2],[265,5],[168,4],[303,9],[304,9]])}});function hDe(e,t,r,i){let o=aL(e)?new OY(e,t,r):e===80?new WY(80,t,r):e===81?new zY(81,t,r):new xpe(e,t,r);return o.parent=i,o.flags=i.flags&101441536,o}function uXe(e,t){if(!aL(e.kind))return et;let r=[];if(C6(e))return e.forEachChild(l=>{r.push(l)}),r;$u.setText((t||e.getSourceFile()).text);let i=e.pos,o=l=>{r9(r,i,l.pos,e),r.push(l),i=l.end},s=l=>{r9(r,i,l.pos,e),r.push(dXe(l,e)),i=l.end};return Ke(e.jsDoc,o),i=e.pos,e.forEachChild(o,s),r9(r,i,e.end,e),$u.setText(void 0),r}function r9(e,t,r,i){for($u.resetTokenState(t);tt.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function MY(e,t){if(!e)return et;let r=L0.getJsDocTagsFromDeclarations(e,t);if(t&&(r.length===0||e.some(gDe))){let i=new Set;for(let o of e){let s=vDe(t,o,l=>{var u;if(!i.has(l))return i.add(l),o.kind===177||o.kind===178?l.getContextualJsDocTags(o,t):((u=l.declarations)==null?void 0:u.length)===1?l.getJsDocTags():void 0});s&&(r=[...s,...r])}}return r}function i9(e,t){if(!e)return et;let r=L0.getJsDocCommentsFromDeclarations(e,t);if(t&&(r.length===0||e.some(gDe))){let i=new Set;for(let o of e){let s=vDe(t,o,l=>{if(!i.has(l))return i.add(l),o.kind===177||o.kind===178?l.getContextualDocumentationComment(o,t):l.getDocumentationComment(t)});s&&(r=r.length===0?s.slice():s.concat(E2(),r))}}return r}function vDe(e,t,r){var i;let o=((i=t.parent)==null?void 0:i.kind)===176?t.parent.parent:t.parent;if(!o)return;let s=fc(t);return Zt(PC(o),l=>{let u=e.getTypeAtLocation(l),p=s&&u.symbol?e.getTypeOfSymbol(u.symbol):u,g=e.getPropertyOfType(p,t.symbol.name);return g?r(g):void 0})}function pXe(){return{getNodeConstructor:()=>OY,getTokenConstructor:()=>xpe,getIdentifierConstructor:()=>WY,getPrivateIdentifierConstructor:()=>zY,getSourceFileConstructor:()=>ADe,getSymbolConstructor:()=>EDe,getTypeConstructor:()=>SDe,getSignatureConstructor:()=>TDe,getSourceMapSourceConstructor:()=>IDe}}function wO(e){let t=!0;for(let i in e)if(Rs(e,i)&&!yDe(i)){t=!1;break}if(t)return e;let r={};for(let i in e)if(Rs(e,i)){let o=yDe(i)?i:i.charAt(0).toLowerCase()+i.substr(1);r[o]=e[i]}return r}function yDe(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function OO(e){return e?Ft(e,t=>t.text).join(""):""}function o9(){return{target:1,jsx:1}}function LY(){return Fu.getSupportedErrorCodes()}function bDe(e,t,r){e.version=r,e.scriptSnapshot=t}function a9(e,t,r,i,o,s){let l=rw(e,v2(t),r,o,s);return bDe(l,t,i),l}function kY(e,t,r,i,o){if(i&&r!==e.version){let l,u=i.span.start!==0?e.text.substr(0,i.span.start):"",p=ql(i.span)!==e.text.length?e.text.substr(ql(i.span)):"";if(i.newLength===0)l=u&&p?u+p:u||p;else{let m=t.getText(i.span.start,i.span.start+i.newLength);l=u&&p?u+m+p:u?u+m:m+p}let g=qH(e,l,i,o);return bDe(g,t,r),g.nameTable=void 0,e!==g&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),g}let s={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator,jsDocParsingMode:e.jsDocParsingMode};return a9(e.fileName,t,s,r,!0,e.scriptKind)}function Tpe(e,t=ade(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory()),r){var i;let o;r===void 0?o=0:typeof r=="boolean"?o=r?2:0:o=r;let s=new xDe(e),l,u,p=0,g=e.getCancellationToken?new DDe(e.getCancellationToken()):RDe,m=e.getCurrentDirectory();xoe((i=e.getLocalizedDiagnosticMessages)==null?void 0:i.bind(e));function b(w){e.log&&e.log(w)}let T=ER(e),I=Pu(T),R=bde({useCaseSensitiveFileNames:()=>T,getCurrentDirectory:()=>m,getProgram:H,fileExists:oa(e,e.fileExists),readFile:oa(e,e.readFile),getDocumentPositionMapper:oa(e,e.getDocumentPositionMapper),getSourceFileLike:oa(e,e.getSourceFileLike),log:b});function M(w){let ae=l.getSourceFile(w);if(!ae){let J=new Error(`Could not find source file: '${w}'.`);throw J.ProgramFiles=l.getSourceFiles().map(pe=>pe.fileName),J}return ae}function N(){e.updateFromProject&&!e.updateFromProjectInProgress?e.updateFromProject():O()}function O(){var w,ae,J;if(C.assert(o!==2),e.getProjectVersion){let Fo=e.getProjectVersion();if(Fo){if(u===Fo&&!((w=e.hasChangedAutomaticTypeDirectiveNames)!=null&&w.call(e)))return;u=Fo}}let pe=e.getTypeRootsVersion?e.getTypeRootsVersion():0;p!==pe&&(b("TypeRoots version has changed; provide new program"),l=void 0,p=pe);let Ge=e.getScriptFileNames().slice(),ke=e.getCompilationSettings()||o9(),Dt=e.hasInvalidatedResolutions||Km,Pt=oa(e,e.hasInvalidatedLibResolutions)||Km,Kt=oa(e,e.hasChangedAutomaticTypeDirectiveNames),Tn=(ae=e.getProjectReferences)==null?void 0:ae.call(e),On,Gn={getSourceFile:Fs,getSourceFileByPath:Yl,getCancellationToken:()=>g,getCanonicalFileName:I,useCaseSensitiveFileNames:()=>T,getNewLine:()=>Gv(ke),getDefaultLibFileName:Fo=>e.getDefaultLibFileName(Fo),writeFile:$a,getCurrentDirectory:()=>m,fileExists:Fo=>e.fileExists(Fo),readFile:Fo=>e.readFile&&e.readFile(Fo),getSymlinkCache:oa(e,e.getSymlinkCache),realpath:oa(e,e.realpath),directoryExists:Fo=>Ym(Fo,e),getDirectories:Fo=>e.getDirectories?e.getDirectories(Fo):[],readDirectory:(Fo,ds,Gs,hl,uu)=>(C.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(Fo,ds,Gs,hl,uu)),onReleaseOldSourceFile:Dn,onReleaseParsedCommandLine:Po,hasInvalidatedResolutions:Dt,hasInvalidatedLibResolutions:Pt,hasChangedAutomaticTypeDirectiveNames:Kt,trace:oa(e,e.trace),resolveModuleNames:oa(e,e.resolveModuleNames),getModuleResolutionCache:oa(e,e.getModuleResolutionCache),createHash:oa(e,e.createHash),resolveTypeReferenceDirectives:oa(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:oa(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:oa(e,e.resolveTypeReferenceDirectiveReferences),resolveLibrary:oa(e,e.resolveLibrary),useSourceOfProjectReferenceRedirect:oa(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:Ci,jsDocParsingMode:e.jsDocParsingMode},yi=Gn.getSourceFile,{getSourceFileWithCache:Di}=Fw(Gn,Fo=>rl(Fo,m,I),(...Fo)=>yi.call(Gn,...Fo));Gn.getSourceFile=Di,(J=e.setCompilerHost)==null||J.call(e,Gn);let or={useCaseSensitiveFileNames:T,fileExists:Fo=>Gn.fileExists(Fo),readFile:Fo=>Gn.readFile(Fo),directoryExists:Fo=>Gn.directoryExists(Fo),getDirectories:Fo=>Gn.getDirectories(Fo),realpath:Gn.realpath,readDirectory:(...Fo)=>Gn.readDirectory(...Fo),trace:Gn.trace,getCurrentDirectory:Gn.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:$a},Vr=t.getKeyForCompilationSettings(ke),Eo=new Set;if(MJ(l,Ge,ke,(Fo,ds)=>e.getScriptVersion(ds),Fo=>Gn.fileExists(Fo),Dt,Pt,Kt,Ci,Tn)){Gn=void 0,On=void 0,Eo=void 0;return}l=vF({rootNames:Ge,options:ke,host:Gn,oldProgram:l,projectReferences:Tn}),Gn=void 0,On=void 0,Eo=void 0,R.clearCache(),l.getTypeChecker();return;function Ci(Fo){let ds=rl(Fo,m,I),Gs=On?.get(ds);if(Gs!==void 0)return Gs||void 0;let hl=e.getParsedCommandLine?e.getParsedCommandLine(Fo):Kr(Fo);return(On||(On=new Map)).set(ds,hl||!1),hl}function Kr(Fo){let ds=Fs(Fo,100);if(ds)return ds.path=rl(Fo,m,I),ds.resolvedPath=ds.path,ds.originalFileName=ds.fileName,lw(ds,or,bo(li(Fo),m),void 0,bo(Fo,m))}function Po(Fo,ds,Gs){var hl;e.getParsedCommandLine?(hl=e.onReleaseParsedCommandLine)==null||hl.call(e,Fo,ds,Gs):ds&&Dn(ds.sourceFile,Gs)}function Dn(Fo,ds){let Gs=t.getKeyForCompilationSettings(ds);t.releaseDocumentWithKey(Fo.resolvedPath,Gs,Fo.scriptKind,Fo.impliedNodeFormat)}function Fs(Fo,ds,Gs,hl){return Yl(Fo,rl(Fo,m,I),ds,Gs,hl)}function Yl(Fo,ds,Gs,hl,uu){C.assert(Gn,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");let yo=e.getScriptSnapshot(Fo);if(!yo)return;let pa=vX(Fo,e),du=e.getScriptVersion(Fo);if(!uu){let Is=l&&l.getSourceFileByPath(ds);if(Is){if(pa===Is.scriptKind||Eo.has(Is.resolvedPath))return t.updateDocumentWithKey(Fo,ds,e,Vr,yo,du,pa,Gs);t.releaseDocumentWithKey(Is.resolvedPath,t.getKeyForCompilationSettings(l.getCompilerOptions()),Is.scriptKind,Is.impliedNodeFormat),Eo.add(Is.resolvedPath)}}return t.acquireDocumentWithKey(Fo,ds,e,Vr,yo,du,pa,Gs)}}function H(){if(o===2){C.assert(l===void 0);return}return N(),l}function K(){var w;return(w=e.getPackageJsonAutoImportProvider)==null?void 0:w.call(e)}function Z(w,ae){let J=l.getTypeChecker(),pe=Ge();if(!pe)return!1;for(let Dt of w)for(let Pt of Dt.references){let Kt=ke(Pt);if(C.assertIsDefined(Kt),ae.has(Pt)||Os.isDeclarationOfSymbol(Kt,pe)){ae.add(Pt),Pt.isDefinition=!0;let Tn=fW(Pt,R,oa(e,e.fileExists));Tn&&ae.add(Tn)}else Pt.isDefinition=!1}return!0;function Ge(){for(let Dt of w)for(let Pt of Dt.references){if(ae.has(Pt)){let Tn=ke(Pt);return C.assertIsDefined(Tn),J.getSymbolAtLocation(Tn)}let Kt=fW(Pt,R,oa(e,e.fileExists));if(Kt&&ae.has(Kt)){let Tn=ke(Kt);if(Tn)return J.getSymbolAtLocation(Tn)}}}function ke(Dt){let Pt=l.getSourceFile(Dt.fileName);if(!Pt)return;let Kt=zd(Pt,Dt.textSpan.start);return Os.Core.getAdjustedNode(Kt,{use:Os.FindReferencesUse.References})}}function V(){if(l){let w=t.getKeyForCompilationSettings(l.getCompilerOptions());Ke(l.getSourceFiles(),ae=>t.releaseDocumentWithKey(ae.resolvedPath,w,ae.scriptKind,ae.impliedNodeFormat)),l=void 0}}function ue(){V(),e=void 0}function G(w){return N(),l.getSyntacticDiagnostics(M(w),g).slice()}function ne(w){N();let ae=M(w),J=l.getSemanticDiagnostics(ae,g);if(!xf(l.getCompilerOptions()))return J.slice();let pe=l.getDeclarationDiagnostics(ae,g);return[...J,...pe]}function he(w){return N(),YX(M(w),l,g)}function ye(){return N(),[...l.getOptionsDiagnostics(g),...l.getGlobalDiagnostics(g)]}function $(w,ae,J=Pf,pe){let Ge={...J,includeCompletionsForModuleExports:J.includeCompletionsForModuleExports||J.includeExternalModuleExports,includeCompletionsWithInsertText:J.includeCompletionsWithInsertText||J.includeInsertTextCompletions};return N(),OI.getCompletionsAtPosition(e,l,b,M(w),ae,Ge,J.triggerCharacter,J.triggerKind,g,pe&&wc.getFormatContext(pe,e),J.includeSymbol)}function Y(w,ae,J,pe,Ge,ke=Pf,Dt){return N(),OI.getCompletionEntryDetails(l,b,M(w),ae,{name:J,source:Ge,data:Dt},e,pe&&wc.getFormatContext(pe,e),ke,g)}function oe(w,ae,J,pe,Ge=Pf){return N(),OI.getCompletionEntrySymbol(l,b,M(w),ae,{name:J,source:pe},e,Ge)}function fe(w,ae){N();let J=M(w),pe=zd(J,ae);if(pe===J)return;let Ge=l.getTypeChecker(),ke=Ne(pe),Dt=hXe(ke,Ge);if(!Dt||Ge.isUnknownSymbol(Dt)){let Gn=me(J,ke,ae)?Ge.getTypeAtLocation(ke):void 0;return Gn&&{kind:"",kindModifiers:"",textSpan:Rd(ke,J),displayParts:Ge.runWithCancellationToken(g,yi=>pO(yi,Gn,QS(ke))),documentation:Gn.symbol?Gn.symbol.getDocumentationComment(Ge):void 0,tags:Gn.symbol?Gn.symbol.getJsDocTags(Ge):void 0}}let{symbolKind:Pt,displayParts:Kt,documentation:Tn,tags:On}=Ge.runWithCancellationToken(g,Gn=>ty.getSymbolDisplayPartsDocumentationAndSymbolKind(Gn,Dt,J,QS(ke),ke));return{kind:Pt,kindModifiers:ty.getSymbolModifiers(Ge,Dt),textSpan:Rd(ke,J),displayParts:Kt,documentation:Tn,tags:On}}function Ne(w){return H1(w.parent)&&w.pos===w.parent.pos?w.parent.expression:FR(w.parent)&&w.pos===w.parent.pos||nR(w.parent)&&w.parent.name===w||e_(w.parent)?w.parent:w}function me(w,ae,J){switch(ae.kind){case 80:return!zK(ae)&&!BK(ae)&&!kg(ae.parent);case 211:case 166:return!Xv(w,J);case 110:case 197:case 108:case 202:return!0;case 236:return nR(ae);default:return!1}}function ie(w,ae,J,pe){return N(),w2.getDefinitionAtPosition(l,M(w),ae,J,pe)}function ve(w,ae){return N(),w2.getDefinitionAndBoundSpan(l,M(w),ae)}function Le(w,ae){return N(),w2.getTypeDefinitionAtPosition(l.getTypeChecker(),M(w),ae)}function He(w,ae){return N(),Os.getImplementationsAtPosition(l,g,l.getSourceFiles(),M(w),ae)}function Ee(w,ae,J){let pe=va(w);C.assert(J.some(Dt=>va(Dt)===pe)),N();let Ge=Vi(J,Dt=>l.getSourceFile(Dt)),ke=M(w);return wW.getDocumentHighlights(l,g,ke,ae,Ge)}function Ce(w,ae,J,pe,Ge){N();let ke=M(w),Dt=ZF(zd(ke,ae));if(L9.nodeIsEligibleForRename(Dt))if(Ve(Dt)&&(w_(Dt.parent)||K1(Dt.parent))&&yR(Dt.escapedText)){let{openingElement:Pt,closingElement:Kt}=Dt.parent.parent;return[Pt,Kt].map(Tn=>{let On=Rd(Tn.tagName,ke);return{fileName:ke.fileName,textSpan:On,...Os.toContextSpan(On,ke,Tn.parent)}})}else{let Pt=af(ke,Ge??Pf),Kt=typeof Ge=="boolean"?Ge:Ge?.providePrefixAndSuffixTextForRename;return Fe(Dt,ae,{findInStrings:J,findInComments:pe,providePrefixAndSuffixTextForRename:Kt,use:Os.FindReferencesUse.Rename},(Tn,On,Gn)=>Os.toRenameLocation(Tn,On,Gn,Kt||!1,Pt))}}function Me(w,ae){return N(),Fe(zd(M(w),ae),ae,{use:Os.FindReferencesUse.References},Os.toReferenceEntry)}function Fe(w,ae,J,pe){N();let Ge=J&&J.use===Os.FindReferencesUse.Rename?l.getSourceFiles().filter(ke=>!l.isSourceFileDefaultLibrary(ke)):l.getSourceFiles();return Os.findReferenceOrRenameEntries(l,g,Ge,w,ae,J,pe)}function At(w,ae){return N(),Os.findReferencedSymbols(l,g,l.getSourceFiles(),M(w),ae)}function Se(w){return N(),Os.Core.getReferencesForFileName(w,l,l.getSourceFiles()).map(Os.toReferenceEntry)}function je(w,ae,J,pe=!1,Ge=!1){N();let ke=J?[M(J)]:l.getSourceFiles();return VRe(ke,l.getTypeChecker(),g,w,ae,pe,Ge)}function at(w,ae,J){N();let pe=M(w),Ge=e.getCustomTransformers&&e.getCustomTransformers();return _ce(l,pe,!!ae,g,Ge,J)}function Bt(w,ae,{triggerReason:J}=Pf){N();let pe=M(w);return QO.getSignatureHelpItems(l,pe,ae,J,g)}function yt(w){return s.getCurrentSourceFile(w)}function Qe(w,ae,J){let pe=s.getCurrentSourceFile(w),Ge=zd(pe,ae);if(Ge===pe)return;switch(Ge.kind){case 211:case 166:case 11:case 97:case 112:case 106:case 108:case 110:case 197:case 80:break;default:return}let ke=Ge;for(;;)if(_2(ke)||_ue(ke))ke=ke.parent;else if(VK(ke))if(ke.parent.parent.kind===267&&ke.parent.parent.body===ke.parent)ke=ke.parent.parent.name;else break;else break;return dc(ke.getStart(),Ge.getEnd())}function gt(w,ae){let J=s.getCurrentSourceFile(w);return GY.spanInSourceFileAtLocation(J,ae)}function nn(w){return qRe(s.getCurrentSourceFile(w),g)}function rn(w){return JRe(s.getCurrentSourceFile(w),g)}function Nn(w,ae,J){return N(),(J||"original")==="2020"?pDe(l,g,M(w),ae):ide(l.getTypeChecker(),g,M(w),l.getClassifiableNames(),ae)}function Xn(w,ae,J){return N(),(J||"original")==="original"?jX(l.getTypeChecker(),g,M(w),l.getClassifiableNames(),ae):vpe(l,g,M(w),ae)}function _n(w,ae){return ode(g,s.getCurrentSourceFile(w),ae)}function Qt(w,ae){return UX(g,s.getCurrentSourceFile(w),ae)}function Yt(w){let ae=s.getCurrentSourceFile(w);return FQ.collectElements(ae,g)}let vi=new Map(Object.entries({19:20,21:22,23:24,32:30}));vi.forEach((w,ae)=>vi.set(w.toString(),Number(ae)));function ho(w,ae){let J=s.getCurrentSourceFile(w),pe=g2(J,ae),Ge=pe.getStart(J)===ae?vi.get(pe.kind.toString()):void 0,ke=Ge&&bs(pe.parent,Ge,J);return ke?[Rd(pe,J),Rd(ke,J)].sort((Dt,Pt)=>Dt.start-Pt.start):et}function ki(w,ae,J){let pe=Ks(),Ge=wO(J),ke=s.getCurrentSourceFile(w);b("getIndentationAtPosition: getCurrentSourceFile: "+(Ks()-pe)),pe=Ks();let Dt=wc.SmartIndenter.getIndentation(ae,ke,Ge);return b("getIndentationAtPosition: computeIndentation : "+(Ks()-pe)),Dt}function Ro(w,ae,J,pe){let Ge=s.getCurrentSourceFile(w);return wc.formatSelection(ae,J,Ge,wc.getFormatContext(wO(pe),e))}function nr(w,ae){return wc.formatDocument(s.getCurrentSourceFile(w),wc.getFormatContext(wO(ae),e))}function qr(w,ae,J,pe){let Ge=s.getCurrentSourceFile(w),ke=wc.getFormatContext(wO(pe),e);if(!Xv(Ge,ae))switch(J){case"{":return wc.formatOnOpeningCurly(ae,Ge,ke);case"}":return wc.formatOnClosingCurly(ae,Ge,ke);case";":return wc.formatOnSemicolon(ae,Ge,ke);case` +`:return wc.formatOnEnter(ae,Ge,ke)}return[]}function xr(w,ae,J,pe,Ge,ke=Pf){N();let Dt=M(w),Pt=dc(ae,J),Kt=wc.getFormatContext(Ge,e);return Zi(h1(pe,Cv,tl),Tn=>(g.throwIfCancellationRequested(),Fu.getFixes({errorCode:Tn,sourceFile:Dt,span:Pt,program:l,host:e,cancellationToken:g,formatContext:Kt,preferences:ke})))}function ln(w,ae,J,pe=Pf){N(),C.assert(w.type==="file");let Ge=M(w.fileName),ke=wc.getFormatContext(J,e);return Fu.getAllFixes({fixId:ae,sourceFile:Ge,program:l,host:e,cancellationToken:g,formatContext:ke,preferences:pe})}function tt(w,ae,J=Pf){N(),C.assert(w.type==="file");let pe=M(w.fileName),Ge=wc.getFormatContext(ae,e),ke=w.mode??(w.skipDestructiveCodeActions?"SortAndCombine":"All");return Mm.organizeImports(pe,Ge,e,l,J,ke)}function zt(w,ae,J,pe=Pf){return lde(H(),w,ae,e,wc.getFormatContext(J,e),pe,R)}function Rn(w,ae){let J=typeof w=="string"?ae:w;return Do(J)?Promise.all(J.map(pe=>ui(pe))):ui(J)}function ui(w){let ae=J=>rl(J,m,I);return C.assertEqual(w.type,"install package"),e.installPackage?e.installPackage({fileName:ae(w.file),packageName:w.packageName}):Promise.reject("Host does not implement `installPackage`")}function bi(w,ae,J,pe){let Ge=pe?wc.getFormatContext(pe,e).options:void 0;return L0.getDocCommentTemplateAtPosition(Qv(e,Ge),s.getCurrentSourceFile(w),ae,J)}function ro(w,ae,J){if(J===60)return!1;let pe=s.getCurrentSourceFile(w);if(II(pe,ae))return!1;if(Sue(pe,ae))return J===123;if(KK(pe,ae))return!1;switch(J){case 39:case 34:case 96:return!Xv(pe,ae)}return!0}function No(w,ae){let J=s.getCurrentSourceFile(w),pe=Ac(ae,J);if(!pe)return;let Ge=pe.kind===32&&w_(pe.parent)?pe.parent.parent:$A(pe)&&cg(pe.parent)?pe.parent:void 0;if(Ge&&ft(Ge))return{newText:``};let ke=pe.kind===32&&dI(pe.parent)?pe.parent.parent:$A(pe)&&X1(pe.parent)?pe.parent:void 0;if(ke&&Nt(ke))return{newText:""}}function _a(w,ae){let J=s.getCurrentSourceFile(w),pe=Ac(ae,J);if(!pe||pe.parent.kind===312)return;let Ge="[a-zA-Z0-9:\\-\\._$]*";if(X1(pe.parent.parent)){let ke=pe.parent.parent.openingFragment,Dt=pe.parent.parent.closingFragment;if($x(ke)||$x(Dt))return;let Pt=ke.getStart(J)+1,Kt=Dt.getStart(J)+2;return ae!==Pt&&ae!==Kt?void 0:{ranges:[{start:Pt,length:0},{start:Kt,length:0}],wordPattern:Ge}}else{let ke=zn(pe.parent,Di=>!!(w_(Di)||K1(Di)));if(!ke)return;C.assert(w_(ke)||K1(ke),"tag should be opening or closing element");let Dt=ke.parent.openingElement,Pt=ke.parent.closingElement,Kt=Dt.tagName.getStart(J),Tn=Dt.tagName.end,On=Pt.tagName.getStart(J),Gn=Pt.tagName.end;return Kt===Dt.getStart(J)||On===Pt.getStart(J)||Tn===Dt.getEnd()||Gn===Pt.getEnd()||!(Kt<=ae&&ae<=Tn||On<=ae&&ae<=Gn)||Dt.tagName.getText(J)!==Pt.tagName.getText(J)?void 0:{ranges:[{start:Kt,length:Tn-Kt},{start:On,length:Gn-On}],wordPattern:Ge}}}function ja(w,ae){return{lineStarts:w.getLineStarts(),firstLine:w.getLineAndCharacterOfPosition(ae.pos).line,lastLine:w.getLineAndCharacterOfPosition(ae.end).line}}function En(w,ae,J){let pe=s.getCurrentSourceFile(w),Ge=[],{lineStarts:ke,firstLine:Dt,lastLine:Pt}=ja(pe,ae),Kt=J||!1,Tn=Number.MAX_VALUE,On=new Map,Gn=new RegExp(/\S/),yi=nW(pe,ke[Dt]),Di=yi?"{/*":"//";for(let or=Dt;or<=Pt;or++){let Vr=pe.text.substring(ke[or],pe.getLineEndOfPosition(ke[or])),Eo=Gn.exec(Vr);Eo&&(Tn=Math.min(Tn,Eo.index),On.set(or.toString(),Eo.index),Vr.substr(Eo.index,Di.length)!==Di&&(Kt=J===void 0||J))}for(let or=Dt;or<=Pt;or++){if(Dt!==Pt&&ke[or]===ae.end)continue;let Vr=On.get(or.toString());Vr!==void 0&&(yi?Ge.push(...wn(w,{pos:ke[or]+Tn,end:pe.getLineEndOfPosition(ke[or])},Kt,yi)):Kt?Ge.push({newText:Di,span:{length:0,start:ke[or]+Tn}}):pe.text.substr(ke[or]+Vr,Di.length)===Di&&Ge.push({newText:"",span:{length:Di.length,start:ke[or]+Vr}}))}return Ge}function wn(w,ae,J,pe){var Ge;let ke=s.getCurrentSourceFile(w),Dt=[],{text:Pt}=ke,Kt=!1,Tn=J||!1,On=[],{pos:Gn}=ae,yi=pe!==void 0?pe:nW(ke,Gn),Di=yi?"{/*":"/*",or=yi?"*/}":"*/",Vr=yi?"\\{\\/\\*":"\\/\\*",Eo=yi?"\\*\\/\\}":"\\*\\/";for(;Gn<=ae.end;){let Mi=Pt.substr(Gn,Di.length)===Di?Di.length:0,Ci=Xv(ke,Gn+Mi);if(Ci)yi&&(Ci.pos--,Ci.end++),On.push(Ci.pos),Ci.kind===3&&On.push(Ci.end),Kt=!0,Gn=Ci.end+1;else{let Kr=Pt.substring(Gn,ae.end).search(`(${Vr})|(${Eo})`);Tn=J!==void 0?J:Tn||!kue(Pt,Gn,Kr===-1?ae.end:Gn+Kr),Gn=Kr===-1?ae.end+1:Gn+Kr+or.length}}if(Tn||!Kt){((Ge=Xv(ke,ae.pos))==null?void 0:Ge.kind)!==2&&Ty(On,ae.pos,tl),Ty(On,ae.end,tl);let Mi=On[0];Pt.substr(Mi,Di.length)!==Di&&Dt.push({newText:Di,span:{length:0,start:Mi}});for(let Ci=1;Ci0?Mi-or.length:0,Kr=Pt.substr(Ci,or.length)===or?or.length:0;Dt.push({newText:"",span:{length:Di.length,start:Mi-Kr}})}return Dt}function Ue(w,ae){let J=s.getCurrentSourceFile(w),{firstLine:pe,lastLine:Ge}=ja(J,ae);return pe===Ge&&ae.pos!==ae.end?wn(w,ae,!0):En(w,ae,!0)}function mt(w,ae){let J=s.getCurrentSourceFile(w),pe=[],{pos:Ge}=ae,{end:ke}=ae;Ge===ke&&(ke+=nW(J,Ge)?2:1);for(let Dt=Ge;Dt<=ke;Dt++){let Pt=Xv(J,Dt);if(Pt){switch(Pt.kind){case 2:pe.push(...En(w,{end:Pt.end,pos:Pt.pos+1},!1));break;case 3:pe.push(...wn(w,{end:Pt.end,pos:Pt.pos+1},!1))}Dt=Pt.end+1}}return pe}function ft({openingElement:w,closingElement:ae,parent:J}){return!S0(w.tagName,ae.tagName)||cg(J)&&S0(w.tagName,J.openingElement.tagName)&&ft(J)}function Nt({closingFragment:w,parent:ae}){return!!(w.flags&262144)||X1(ae)&&Nt(ae)}function le(w,ae,J){let pe=s.getCurrentSourceFile(w),Ge=wc.getRangeOfEnclosingComment(pe,ae);return Ge&&(!J||Ge.kind===3)?ib(Ge):void 0}function We(w,ae){N();let J=M(w);g.throwIfCancellationRequested();let pe=J.text,Ge=[];if(ae.length>0&&!Kt(J.fileName)){let Tn=Dt(),On;for(;On=Tn.exec(pe);){g.throwIfCancellationRequested();let Gn=3;C.assert(On.length===ae.length+Gn);let yi=On[1],Di=On.index+yi.length;if(!Xv(J,Di))continue;let or;for(let Eo=0;Eo"("+ke(Ci.text)+")").join("|")+")",or=/(?:$|\*\/)/.source,Vr=/(?:.*?)/.source,Eo="("+Di+Vr+")",Mi=yi+Eo+or;return new RegExp(Mi,"gim")}function Pt(Tn){return Tn>=97&&Tn<=122||Tn>=65&&Tn<=90||Tn>=48&&Tn<=57}function Kt(Tn){return Tn.includes("/node_modules/")}}function pt(w,ae,J){return N(),L9.getRenameInfo(l,M(w),ae,J||{})}function j(w,ae,J,pe,Ge,ke){let[Dt,Pt]=typeof ae=="number"?[ae,void 0]:[ae.pos,ae.end];return{file:w,startPosition:Dt,endPosition:Pt,program:H(),host:e,formatContext:wc.getFormatContext(pe,e),cancellationToken:g,preferences:J,triggerReason:Ge,kind:ke}}function ot(w,ae,J){return{file:w,program:H(),host:e,span:ae,preferences:J,cancellationToken:g}}function xt(w,ae){return BQ.getSmartSelectionRange(ae,s.getCurrentSourceFile(w))}function Ye(w,ae,J=Pf,pe,Ge,ke){N();let Dt=M(w);return NI.getApplicableRefactors(j(Dt,ae,J,Pf,pe,Ge),ke)}function ht(w,ae,J=Pf){N();let pe=M(w),Ge=C.checkDefined(l.getSourceFiles()),ke=ZC(w),Dt=CO(j(pe,ae,J,Pf)),Pt=Xde(Dt?.all),Kt=Vi(Ge,Tn=>{let On=ZC(Tn.fileName);return!l?.isSourceFileFromExternalLibrary(pe)&&!(pe===M(Tn.fileName)||ke===".ts"&&On===".d.ts"||ke===".d.ts"&&uo(rc(Tn.fileName),"lib.")&&On===".d.ts")&&(ke===On||(ke===".tsx"&&On===".ts"||ke===".jsx"&&On===".js")&&!Pt)?Tn.fileName:void 0});return{newFileName:Kde(pe,l,e,Dt),files:Kt}}function Vt(w,ae,J,pe,Ge,ke=Pf,Dt){N();let Pt=M(w);return NI.getEditsForRefactor(j(Pt,J,ke,ae),pe,Ge,Dt)}function yn(w,ae){return ae===0?{line:0,character:0}:R.toLineColumnOffset(w,ae)}function fn(w,ae){N();let J=PI.resolveCallHierarchyDeclaration(l,zd(M(w),ae));return J&&CX(J,pe=>PI.createCallHierarchyItem(l,pe))}function mn(w,ae){N();let J=M(w),pe=NX(PI.resolveCallHierarchyDeclaration(l,ae===0?J:zd(J,ae)));return pe?PI.getIncomingCalls(l,pe,g):[]}function q(w,ae){N();let J=M(w),pe=NX(PI.resolveCallHierarchyDeclaration(l,ae===0?J:zd(J,ae)));return pe?PI.getOutgoingCalls(l,pe):[]}function Oe(w,ae,J=Pf){N();let pe=M(w);return LQ.provideInlayHints(ot(pe,ae,J))}let Lt={dispose:ue,cleanupSemanticCache:V,getSyntacticDiagnostics:G,getSemanticDiagnostics:ne,getSuggestionDiagnostics:he,getCompilerOptionsDiagnostics:ye,getSyntacticClassifications:_n,getSemanticClassifications:Nn,getEncodedSyntacticClassifications:Qt,getEncodedSemanticClassifications:Xn,getCompletionsAtPosition:$,getCompletionEntryDetails:Y,getCompletionEntrySymbol:oe,getSignatureHelpItems:Bt,getQuickInfoAtPosition:fe,getDefinitionAtPosition:ie,getDefinitionAndBoundSpan:ve,getImplementationAtPosition:He,getTypeDefinitionAtPosition:Le,getReferencesAtPosition:Me,findReferences:At,getFileReferences:Se,getDocumentHighlights:Ee,getNameOrDottedNameSpan:Qe,getBreakpointStatementAtPosition:gt,getNavigateToItems:je,getRenameInfo:pt,getSmartSelectionRange:xt,findRenameLocations:Ce,getNavigationBarItems:nn,getNavigationTree:rn,getOutliningSpans:Yt,getTodoComments:We,getBraceMatchingAtPosition:ho,getIndentationAtPosition:ki,getFormattingEditsForRange:Ro,getFormattingEditsForDocument:nr,getFormattingEditsAfterKeystroke:qr,getDocCommentTemplateAtPosition:bi,isValidBraceCompletionAtPosition:ro,getJsxClosingTagAtPosition:No,getLinkedEditingRangeAtPosition:_a,getSpanOfEnclosingComment:le,getCodeFixesAtPosition:xr,getCombinedCodeFix:ln,applyCodeActionCommand:Rn,organizeImports:tt,getEditsForFileRename:zt,getEmitOutput:at,getNonBoundSourceFile:yt,getProgram:H,getCurrentProgram:()=>l,getAutoImportProvider:K,updateIsDefinitionOfReferencedSymbols:Z,getApplicableRefactors:Ye,getEditsForRefactor:Vt,getMoveToRefactoringFileSuggestions:ht,toLineColumnOffset:yn,getSourceMapper:()=>R,clearSourceMapperCache:()=>R.clearCache(),prepareCallHierarchy:fn,provideCallHierarchyIncomingCalls:mn,provideCallHierarchyOutgoingCalls:q,toggleLineComment:En,toggleMultilineComment:wn,commentSelection:Ue,uncommentSelection:mt,provideInlayHints:Oe,getSupportedCodeFixes:LY};switch(o){case 0:break;case 1:Rpe.forEach(w=>Lt[w]=()=>{throw new Error(`LanguageService Operation: ${w} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:CDe.forEach(w=>Lt[w]=()=>{throw new Error(`LanguageService Operation: ${w} not allowed in LanguageServiceMode.Syntactic`)});break;default:C.assertNever(o)}return Lt}function wY(e){return e.nameTable||fXe(e),e.nameTable}function fXe(e){let t=e.nameTable=new Map;e.forEachChild(function r(i){if(Ve(i)&&!BK(i)&&i.escapedText||Qp(i)&&mXe(i)){let o=kC(i);t.set(o,t.get(o)===void 0?i.pos:-1)}else if(Xi(i)){let o=i.escapedText;t.set(o,t.get(o)===void 0?i.pos:-1)}if(Ho(i,r),Op(i))for(let o of i.jsDoc)Ho(o,r)})}function mXe(e){return Wg(e)||e.parent.kind===283||gXe(e)||YL(e)}function FO(e){let t=_Xe(e);return t&&(wa(t.parent)||Y1(t.parent))?t:void 0}function _Xe(e){switch(e.kind){case 11:case 15:case 9:if(e.parent.kind===167)return tj(e.parent.parent)?e.parent.parent:void 0;case 80:return tj(e.parent)&&(e.parent.parent.kind===210||e.parent.parent.kind===292)&&e.parent.name===e?e.parent:void 0}}function hXe(e,t){let r=FO(e);if(r){let i=t.getContextualType(r.parent),o=i&&s9(r,t,i,!1);if(o&&o.length===1)return Ha(o)}return t.getSymbolAtLocation(e)}function s9(e,t,r,i){let o=cO(e.name);if(!o)return et;if(!r.isUnion()){let u=r.getProperty(o);return u?[u]:et}let s=wa(e.parent)||Y1(e.parent)?tr(r.types,u=>!t.isTypeInvalidDueToUnionDiscriminant(u,e.parent)):r.types,l=Vi(s,u=>u.getProperty(o));if(i&&(l.length===0||l.length===r.types.length)){let u=r.getProperty(o);if(u)return[u]}return!s.length&&!l.length?Vi(r.types,u=>u.getProperty(o)):h1(l,Cv)}function gXe(e){return e&&e.parent&&e.parent.kind===212&&e.parent.argumentExpression===e}function Ape(e){if(gu)return Zr(li(va(gu.getExecutingFilePath())),QM(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}var Ipe,OY,FY,EDe,xpe,WY,zY,SDe,TDe,ADe,IDe,xDe,RDe,DDe,BY,Rpe,CDe,vXe=A({"src/services/services.ts"(){"use strict";ci(),HRe(),p2e(),xh(),ERe(),_De(),Ipe="0.8",OY=class{constructor(e,t,r){this.pos=t,this.end=r,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=e}assertHasRealPosition(e){C.assert(!Qm(this.pos)&&!Qm(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return Vn(this)}getStart(e,t){return this.assertHasRealPosition(),s0(this,e,t)}getFullStart(){return this.assertHasRealPosition(),this.pos}getEnd(){return this.assertHasRealPosition(),this.end}getWidth(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)}getFullWidth(){return this.assertHasRealPosition(),this.end-this.pos}getLeadingTriviaWidth(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos}getFullText(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(e){return this.getChildren(e).length}getChildAt(e,t){return this.getChildren(t)[e]}getChildren(e){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),this._children||(this._children=uXe(this,e))}getFirstToken(e){this.assertHasRealPosition();let t=this.getChildren(e);if(!t.length)return;let r=vn(t,i=>i.kind<316||i.kind>357);return r.kind<166?r:r.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();let t=this.getChildren(e),r=Zs(t);if(r)return r.kind<166?r:r.getLastToken(e)}forEachChild(e,t){return Ho(this,e,t)}},FY=class{constructor(e,t){this.pos=e,this.end=t,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}getSourceFile(){return Vn(this)}getStart(e,t){return s0(this,e,t)}getFullStart(){return this.pos}getEnd(){return this.end}getWidth(e){return this.getEnd()-this.getStart(e)}getFullWidth(){return this.end-this.pos}getLeadingTriviaWidth(e){return this.getStart(e)-this.pos}getFullText(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(){return this.getChildren().length}getChildAt(e){return this.getChildren()[e]}getChildren(){return this.kind===1&&this.jsDoc||et}getFirstToken(){}getLastToken(){}forEachChild(){}},EDe=class{constructor(e,t){this.id=0,this.mergeId=0,this.flags=e,this.escapedName=t}getFlags(){return this.flags}get name(){return bl(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(e){if(!this.documentationComment)if(this.documentationComment=et,!this.declarations&&fh(this)&&this.links.target&&fh(this.links.target)&&this.links.target.links.tupleLabelDeclaration){let t=this.links.target.links.tupleLabelDeclaration;this.documentationComment=i9([t],e)}else this.documentationComment=i9(this.declarations,e);return this.documentationComment}getContextualDocumentationComment(e,t){if(e){if(wy(e)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=i9(tr(this.declarations,wy),t)),De(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(wv(e)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=i9(tr(this.declarations,wv),t)),De(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(t)}getJsDocTags(e){return this.tags===void 0&&(this.tags=MY(this.declarations,e)),this.tags}getContextualJsDocTags(e,t){if(e){if(wy(e)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=MY(tr(this.declarations,wy),t)),De(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(wv(e)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=MY(tr(this.declarations,wv),t)),De(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(t)}},xpe=class extends FY{constructor(e,t,r){super(t,r),this.kind=e}},WY=class extends FY{constructor(e,t,r){super(t,r),this.kind=80}get text(){return Sr(this)}},WY.prototype.kind=80,zY=class extends FY{constructor(e,t,r){super(t,r),this.kind=81}get text(){return Sr(this)}},zY.prototype.kind=81,SDe=class{constructor(e,t){this.checker=e,this.flags=t}getFlags(){return this.flags}getSymbol(){return this.symbol}getProperties(){return this.checker.getPropertiesOfType(this)}getProperty(e){return this.checker.getPropertyOfType(this,e)}getApparentProperties(){return this.checker.getAugmentedPropertiesOfType(this)}getCallSignatures(){return this.checker.getSignaturesOfType(this,0)}getConstructSignatures(){return this.checker.getSignaturesOfType(this,1)}getStringIndexType(){return this.checker.getIndexTypeOfType(this,0)}getNumberIndexType(){return this.checker.getIndexTypeOfType(this,1)}getBaseTypes(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0}isNullableType(){return this.checker.isNullableType(this)}getNonNullableType(){return this.checker.getNonNullableType(this)}getNonOptionalType(){return this.checker.getNonOptionalType(this)}getConstraint(){return this.checker.getBaseConstraintOfType(this)}getDefault(){return this.checker.getDefaultFromTypeParameter(this)}isUnion(){return!!(this.flags&1048576)}isIntersection(){return!!(this.flags&2097152)}isUnionOrIntersection(){return!!(this.flags&3145728)}isLiteral(){return!!(this.flags&2432)}isStringLiteral(){return!!(this.flags&128)}isNumberLiteral(){return!!(this.flags&256)}isTypeParameter(){return!!(this.flags&262144)}isClassOrInterface(){return!!(Wr(this)&3)}isClass(){return!!(Wr(this)&1)}isIndexType(){return!!(this.flags&4194304)}get typeArguments(){if(Wr(this)&4)return this.checker.getTypeArguments(this)}},TDe=class{constructor(e,t){this.checker=e,this.flags=t}getDeclaration(){return this.declaration}getTypeParameters(){return this.typeParameters}getParameters(){return this.parameters}getReturnType(){return this.checker.getReturnTypeOfSignature(this)}getTypeParameterAtPosition(e){let t=this.checker.getParameterType(this,e);if(t.isIndexType()&&aN(t.type)){let r=t.type.getConstraint();if(r)return this.checker.getIndexType(r)}return t}getDocumentationComment(){return this.documentationComment||(this.documentationComment=i9(yA(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=MY(yA(this.declaration),this.checker))}},ADe=class extends OY{constructor(e,t,r){super(e,t,r),this.kind=312}update(e,t){return qH(this,e,t)}getLineAndCharacterOfPosition(e){return Es(this,e)}getLineStarts(){return Mg(this)}getPositionOfLineAndCharacter(e,t,r){return c6(Mg(this),e,t,this.text,r)}getLineEndOfPosition(e){let{line:t}=this.getLineAndCharacterOfPosition(e),r=this.getLineStarts(),i;t+1>=r.length&&(i=this.getEnd()),i||(i=r[t+1]-1);let o=this.getFullText();return o[i]===` +`&&o[i-1]==="\r"?i-1:i}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){let e=Xp();return this.forEachChild(o),e;function t(s){let l=i(s);l&&e.add(l,s)}function r(s){let l=e.get(s);return l||e.set(s,l=[]),l}function i(s){let l=m6(s);return l&&(Za(l)&&zr(l.expression)?l.expression.name.text:ic(l)?cO(l):void 0)}function o(s){switch(s.kind){case 262:case 218:case 174:case 173:let l=s,u=i(l);if(u){let m=r(u),b=Zs(m);b&&l.parent===b.parent&&l.symbol===b.symbol?l.body&&!b.body&&(m[m.length-1]=l):m.push(l)}Ho(s,o);break;case 263:case 231:case 264:case 265:case 266:case 267:case 271:case 281:case 276:case 273:case 274:case 177:case 178:case 187:t(s),Ho(s,o);break;case 169:if(!ei(s,31))break;case 260:case 208:{let m=s;if(ta(m.name)){Ho(m.name,o);break}m.initializer&&o(m.initializer)}case 306:case 172:case 171:t(s);break;case 278:let p=s;p.exportClause&&(Df(p.exportClause)?Ke(p.exportClause.elements,o):o(p.exportClause.name));break;case 272:let g=s.importClause;g&&(g.name&&t(g.name),g.namedBindings&&(g.namedBindings.kind===274?t(g.namedBindings):Ke(g.namedBindings.elements,o)));break;case 226:Wl(s)!==0&&t(s);default:Ho(s,o)}}}},IDe=class{constructor(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r}getLineAndCharacterOfPosition(e){return Es(this,e)}},xDe=class{constructor(e){this.host=e}getCurrentSourceFile(e){var t,r,i,o,s,l,u,p;let g=this.host.getScriptSnapshot(e);if(!g)throw new Error("Could not find file: '"+e+"'.");let m=vX(e,this.host),b=this.host.getScriptVersion(e),T;if(this.currentFileName!==e){let I={languageVersion:99,impliedNodeFormat:Bw(rl(e,this.host.getCurrentDirectory(),((i=(r=(t=this.host).getCompilerHost)==null?void 0:r.call(t))==null?void 0:i.getCanonicalFileName)||Wv(this.host)),(p=(u=(l=(s=(o=this.host).getCompilerHost)==null?void 0:s.call(o))==null?void 0:l.getModuleResolutionCache)==null?void 0:u.call(l))==null?void 0:p.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:pk(this.host.getCompilationSettings()),jsDocParsingMode:0};T=a9(e,g,I,b,!0,m)}else if(this.currentFileVersion!==b){let I=g.getChangeRange(this.currentFileScriptSnapshot);T=kY(this.currentSourceFile,g,b,I)}return T&&(this.currentFileVersion=b,this.currentFileName=e,this.currentFileScriptSnapshot=g,this.currentSourceFile=T),this.currentSourceFile}},RDe={isCancellationRequested:Km,throwIfCancellationRequested:$a},DDe=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=lr)==null||e.instant(lr.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new Ox}},BY=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){let e=Ks();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested()):!1}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=lr)==null||e.instant(lr.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new Ox}},Rpe=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes"],CDe=[...Rpe,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],Aoe(pXe())}});function NDe(e,t,r){let i=[];r=tY(r,i);let o=Do(e)?e:[e],s=Pw(void 0,void 0,k,r,o,t,!0);return s.diagnostics=xo(s.diagnostics,i),s}var yXe=A({"src/services/transform.ts"(){"use strict";ci()}});function bXe(e,t){if(e.isDeclarationFile)return;let r=po(e,t),i=e.getLineAndCharacterOfPosition(t).line;if(e.getLineAndCharacterOfPosition(r.getStart(e)).line>i){let b=Ac(r.pos,e);if(!b||e.getLineAndCharacterOfPosition(b.getEnd()).line!==i)return;r=b}if(r.flags&33554432)return;return m(r);function o(b,T){let I=US(b)?Qr(b.modifiers,Eu):void 0,R=I?La(e.text,I.end):b.getStart(e);return dc(R,(T||b).getEnd())}function s(b,T){return o(b,lE(T,T.parent,e))}function l(b,T){return b&&i===e.getLineAndCharacterOfPosition(b.getStart(e)).line?m(b):m(T)}function u(b,T,I){if(b){let R=b.indexOf(T);if(R>=0){let M=R,N=R+1;for(;M>0&&I(b[M-1]);)M--;for(;N0)return m(ve.declarations[0])}else return m(ie.initializer)}function V(ie){if(ie.initializer)return Z(ie);if(ie.condition)return o(ie.condition);if(ie.incrementor)return o(ie.incrementor)}function ue(ie){let ve=Ke(ie.elements,Le=>Le.kind!==232?Le:void 0);return ve?m(ve):ie.parent.kind===208?o(ie.parent):T(ie.parent)}function G(ie){C.assert(ie.kind!==207&&ie.kind!==206);let ve=ie.kind===209?ie.elements:ie.properties,Le=Ke(ve,He=>He.kind!==232?He:void 0);return Le?m(Le):o(ie.parent.kind===226?ie.parent:ie)}function ne(ie){switch(ie.parent.kind){case 266:let ve=ie.parent;return l(Ac(ie.pos,e,ie.parent),ve.members.length?ve.members[0]:ve.getLastToken(e));case 263:let Le=ie.parent;return l(Ac(ie.pos,e,ie.parent),Le.members.length?Le.members[0]:Le.getLastToken(e));case 269:return l(ie.parent.parent,ie.parent.clauses[0])}return m(ie.parent)}function he(ie){switch(ie.parent.kind){case 268:if(qg(ie.parent.parent)!==1)return;case 266:case 263:return o(ie);case 241:if(D1(ie.parent))return o(ie);case 299:return m(Zs(ie.parent.statements));case 269:let ve=ie.parent,Le=Zs(ve.clauses);return Le?m(Zs(Le.statements)):void 0;case 206:let He=ie.parent;return m(Zs(He.elements)||He);default:if(Yv(ie.parent)){let Ee=ie.parent;return o(Zs(Ee.properties)||Ee)}return m(ie.parent)}}function ye(ie){switch(ie.parent.kind){case 207:let ve=ie.parent;return o(Zs(ve.elements)||ve);default:if(Yv(ie.parent)){let Le=ie.parent;return o(Zs(Le.elements)||Le)}return m(ie.parent)}}function $(ie){return ie.parent.kind===246||ie.parent.kind===213||ie.parent.kind===214?p(ie):ie.parent.kind===217?g(ie):m(ie.parent)}function Y(ie){switch(ie.parent.kind){case 218:case 262:case 219:case 174:case 173:case 177:case 178:case 176:case 247:case 246:case 248:case 250:case 213:case 214:case 217:return p(ie);default:return m(ie.parent)}}function oe(ie){return ea(ie.parent)||ie.parent.kind===303||ie.parent.kind===169?p(ie):m(ie.parent)}function fe(ie){return ie.parent.kind===216?g(ie):m(ie.parent)}function Ne(ie){return ie.parent.kind===246?s(ie,ie.parent.expression):m(ie.parent)}function me(ie){return ie.parent.kind===250?g(ie):m(ie.parent)}}}var EXe=A({"src/services/breakpoints.ts"(){"use strict";ci()}}),GY={};X(GY,{spanInSourceFileAtLocation:()=>bXe});var SXe=A({"src/services/_namespaces/ts.BreakpointResolver.ts"(){"use strict";EXe()}});function TXe(e){return(ws(e)||Zc(e))&&od(e)}function PDe(e){return Jo(e)||Oi(e)}function WO(e){return(ws(e)||Bs(e)||Zc(e))&&PDe(e.parent)&&e===e.parent.initializer&&Ve(e.parent.name)&&(!!(Lv(e.parent)&2)||Jo(e.parent))}function MDe(e){return no(e)||Jl(e)||Sc(e)||ws(e)||Tc(e)||Zc(e)||Il(e)||jl(e)||yh(e)||Zp(e)||vp(e)}function C2(e){return no(e)||Jl(e)&&Ve(e.name)||Sc(e)||Tc(e)||Il(e)||jl(e)||yh(e)||Zp(e)||vp(e)||TXe(e)||WO(e)}function LDe(e){return no(e)?e:od(e)?e.name:WO(e)?e.parent.name:C.checkDefined(e.modifiers&&vn(e.modifiers,kDe))}function kDe(e){return e.kind===90}function wDe(e,t){let r=LDe(t);return r&&e.getSymbolAtLocation(r)}function AXe(e,t){if(no(t))return{text:t.fileName,pos:0,end:0};if((Sc(t)||Tc(t))&&!od(t)){let o=t.modifiers&&vn(t.modifiers,kDe);if(o)return{text:"default",pos:o.getStart(),end:o.getEnd()}}if(Il(t)){let o=t.getSourceFile(),s=La(o.text,P_(t).pos),l=s+6,u=e.getTypeChecker(),p=u.getSymbolAtLocation(t.parent);return{text:`${p?`${u.symbolToString(p,t.parent)} `:""}static {}`,pos:s,end:l}}let r=WO(t)?t.parent.name:C.checkDefined(Oo(t),"Expected call hierarchy item to have a name"),i=Ve(r)?Sr(r):Qp(r)?r.text:Za(r)&&Qp(r.expression)?r.expression.text:void 0;if(i===void 0){let o=e.getTypeChecker(),s=o.getSymbolAtLocation(r);s&&(i=o.symbolToString(s,t))}if(i===void 0){let o=Lw();i=bC(s=>o.writeNode(4,t,t.getSourceFile(),s))}return{text:i,pos:r.getStart(),end:r.getEnd()}}function IXe(e){var t,r,i,o;if(WO(e))return Jo(e.parent)&&pi(e.parent.parent)?Zc(e.parent.parent)?(t=_6(e.parent.parent))==null?void 0:t.getText():(r=e.parent.parent.name)==null?void 0:r.getText():k_(e.parent.parent.parent.parent)&&Ve(e.parent.parent.parent.parent.parent.name)?e.parent.parent.parent.parent.parent.name.getText():void 0;switch(e.kind){case 177:case 178:case 174:return e.parent.kind===210?(i=_6(e.parent))==null?void 0:i.getText():(o=Oo(e.parent))==null?void 0:o.getText();case 262:case 263:case 267:if(k_(e.parent)&&Ve(e.parent.parent.name))return e.parent.parent.name.getText()}}function ODe(e,t){if(t.body)return t;if(Pl(t))return ig(t.parent);if(Sc(t)||jl(t)){let r=wDe(e,t);return r&&r.valueDeclaration&&zs(r.valueDeclaration)&&r.valueDeclaration.body?r.valueDeclaration:void 0}return t}function FDe(e,t){let r=wDe(e,t),i;if(r&&r.declarations){let o=DM(r.declarations),s=Ft(r.declarations,p=>({file:p.getSourceFile().fileName,pos:p.pos}));o.sort((p,g)=>ju(s[p].file,s[g].file)||s[p].pos-s[g].pos);let l=Ft(o,p=>r.declarations[p]),u;for(let p of l)C2(p)&&((!u||u.parent!==p.parent||u.end!==p.pos)&&(i=In(i,p)),u=p)}return i}function VY(e,t){return Il(t)?t:zs(t)?ODe(e,t)??FDe(e,t)??t:FDe(e,t)??t}function WDe(e,t){let r=e.getTypeChecker(),i=!1;for(;;){if(C2(t))return VY(r,t);if(MDe(t)){let o=zn(t,C2);return o&&VY(r,o)}if(Wg(t)){if(C2(t.parent))return VY(r,t.parent);if(MDe(t.parent)){let o=zn(t.parent,C2);return o&&VY(r,o)}return PDe(t.parent)&&t.parent.initializer&&WO(t.parent.initializer)?t.parent.initializer:void 0}if(Pl(t))return C2(t.parent)?t.parent:void 0;if(t.kind===126&&Il(t.parent)){t=t.parent;continue}if(Oi(t)&&t.initializer&&WO(t.initializer))return t.initializer;if(!i){let o=r.getSymbolAtLocation(t);if(o&&(o.flags&2097152&&(o=r.getAliasedSymbol(o)),o.valueDeclaration)){i=!0,t=o.valueDeclaration;continue}}return}}function Dpe(e,t){let r=t.getSourceFile(),i=AXe(e,t),o=IXe(t),s=sE(t),l=aP(t),u=dc(La(r.text,t.getFullStart(),!1,!0),t.getEnd()),p=dc(i.pos,i.end);return{file:r.fileName,kind:s,kindModifiers:l,name:i.text,containerName:o,span:u,selectionSpan:p}}function xXe(e){return e!==void 0}function RXe(e){if(e.kind===Os.EntryKind.Node){let{node:t}=e;if(OK(t,!0,!0)||due(t,!0,!0)||pue(t,!0,!0)||fue(t,!0,!0)||_2(t)||GK(t)){let r=t.getSourceFile();return{declaration:zn(t,C2)||r,range:nX(t,r)}}}}function zDe(e){return ss(e.declaration)}function DXe(e,t){return{from:e,fromSpans:t}}function CXe(e,t){return DXe(Dpe(e,t[0].declaration),Ft(t,r=>ib(r.range)))}function NXe(e,t,r){if(no(t)||Jl(t)||Il(t))return[];let i=LDe(t),o=tr(Os.findReferenceOrRenameEntries(e,r,e.getSourceFiles(),i,0,{use:Os.FindReferencesUse.References},RXe),xXe);return o?$D(o,zDe,s=>CXe(e,s)):[]}function PXe(e,t){function r(o){let s=q1(o)?o.tag:sd(o)?o.tagName:ks(o)||Il(o)?o:o.expression,l=WDe(e,s);if(l){let u=nX(s,o.getSourceFile());if(Do(l))for(let p of l)t.push({declaration:p,range:u});else t.push({declaration:l,range:u})}}function i(o){if(o&&!(o.flags&33554432)){if(C2(o)){if(pi(o))for(let s of o.members)s.name&&Za(s.name)&&i(s.name.expression);return}switch(o.kind){case 80:case 271:case 272:case 278:case 264:case 265:return;case 175:r(o);return;case 216:case 234:i(o.expression);return;case 260:case 169:i(o.name),i(o.initializer);return;case 213:r(o),i(o.expression),Ke(o.arguments,i);return;case 214:r(o),i(o.expression),Ke(o.arguments,i);return;case 215:r(o),i(o.tag),i(o.template);return;case 286:case 285:r(o),i(o.tagName),i(o.attributes);return;case 170:r(o),i(o.expression);return;case 211:case 212:r(o),Ho(o,i);break;case 238:i(o.expression);return}Zh(o)||Ho(o,i)}}return i}function MXe(e,t){Ke(e.statements,t)}function LXe(e,t){!ei(e,128)&&e.body&&k_(e.body)&&Ke(e.body.statements,t)}function kXe(e,t,r){let i=ODe(e,t);i&&(Ke(i.parameters,r),r(i.body))}function wXe(e,t){t(e.body)}function OXe(e,t){Ke(e.modifiers,t);let r=M1(e);r&&t(r.expression);for(let i of e.members)Cm(i)&&Ke(i.modifiers,t),Jo(i)?t(i.initializer):Pl(i)&&i.body?(Ke(i.parameters,t),t(i.body)):Il(i)&&t(i)}function FXe(e,t){let r=[],i=PXe(e,r);switch(t.kind){case 312:MXe(t,i);break;case 267:LXe(t,i);break;case 262:case 218:case 219:case 174:case 177:case 178:kXe(e.getTypeChecker(),t,i);break;case 263:case 231:OXe(t,i);break;case 175:wXe(t,i);break;default:C.assertNever(t)}return r}function WXe(e,t){return{to:e,fromSpans:t}}function zXe(e,t){return WXe(Dpe(e,t[0].declaration),Ft(t,r=>ib(r.range)))}function BXe(e,t){return t.flags&33554432||yh(t)?[]:$D(FXe(e,t),zDe,r=>zXe(e,r))}var GXe=A({"src/services/callHierarchy.ts"(){"use strict";ci()}}),PI={};X(PI,{createCallHierarchyItem:()=>Dpe,getIncomingCalls:()=>NXe,getOutgoingCalls:()=>BXe,resolveCallHierarchyDeclaration:()=>WDe});var VXe=A({"src/services/_namespaces/ts.CallHierarchy.ts"(){"use strict";GXe()}}),BDe={};X(BDe,{TokenEncodingConsts:()=>ype,TokenModifier:()=>Epe,TokenType:()=>bpe,getEncodedSemanticClassifications:()=>vpe,getSemanticClassifications:()=>pDe});var jXe=A({"src/services/_namespaces/ts.classifier.v2020.ts"(){"use strict";_De()}}),Cpe={};X(Cpe,{v2020:()=>BDe});var UXe=A({"src/services/_namespaces/ts.classifier.ts"(){"use strict";jXe()}});function i_(e,t,r){return Ppe(e,nT(r),t,void 0,void 0)}function ca(e,t,r,i,o,s){return Ppe(e,nT(r),t,i,nT(o),s)}function Npe(e,t,r,i,o,s){return Ppe(e,nT(r),t,i,o&&nT(o),s)}function Ppe(e,t,r,i,o,s){return{fixName:e,description:t,changes:r,fixId:i,fixAllDescription:o,commands:s?[s]:void 0}}function Aa(e){for(let t of e.errorCodes)Mpe=void 0,jY.add(String(t),e);if(e.fixIds)for(let t of e.fixIds)C.assert(!UY.has(t)),UY.set(t,e)}function HXe(){return Mpe??(Mpe=Vo(jY.keys()))}function qXe(e,t){let{errorCodes:r}=e,i=0;for(let s of t)if(wr(r,s.code)&&i++,i>1)break;let o=i<2;return({fixId:s,fixAllDescription:l,...u})=>o?u:{...u,fixId:s,fixAllDescription:l}}function JXe(e){let t=VDe(e),r=jY.get(String(e.errorCode));return Zi(r,i=>Ft(i.getCodeActions(e),qXe(i,t)))}function KXe(e){return UY.get(aa(e.fixId,wo)).getAllCodeActions(e)}function N2(e,t){return{changes:e,commands:t}}function GDe(e,t){return{fileName:e,textChanges:t}}function Ss(e,t,r){let i=[],o=hr.ChangeTracker.with(e,s=>P2(e,t,l=>r(s,l,i)));return N2(o,i.length===0?void 0:i)}function P2(e,t,r){for(let i of VDe(e))wr(t,i.code)&&r(i)}function VDe({program:e,sourceFile:t,cancellationToken:r}){return[...e.getSemanticDiagnostics(t,r),...e.getSyntacticDiagnostics(t,r),...YX(t,e,r)]}var jY,UY,Mpe,XXe=A({"src/services/codeFixProvider.ts"(){"use strict";ci(),jY=Xp(),UY=new Map}});function jDe(e,t,r){let i=jk(r)?k.createAsExpression(r.expression,k.createKeywordTypeNode(159)):k.createTypeAssertion(k.createKeywordTypeNode(159),r.expression);e.replaceNode(t,r.expression,i)}function UDe(e,t){if(!cr(e))return zn(po(e,t),r=>jk(r)||Nae(r))}var HY,Lpe,YXe=A({"src/services/codefixes/addConvertToUnknownForNonOverlappingTypes.ts"(){"use strict";ci(),xa(),HY="addConvertToUnknownForNonOverlappingTypes",Lpe=[f.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code],Aa({errorCodes:Lpe,getCodeActions:function(t){let r=UDe(t.sourceFile,t.span.start);if(r===void 0)return;let i=hr.ChangeTracker.with(t,o=>jDe(o,t.sourceFile,r));return[ca(HY,i,f.Add_unknown_conversion_for_non_overlapping_types,HY,f.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[HY],getAllCodeActions:e=>Ss(e,Lpe,(t,r)=>{let i=UDe(r.file,r.start);i&&jDe(t,r.file,i)})})}}),$Xe=A({"src/services/codefixes/addEmptyExportDeclaration.ts"(){"use strict";ci(),xa(),Aa({errorCodes:[f.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,f.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,f.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions:function(t){let{sourceFile:r}=t,i=hr.ChangeTracker.with(t,o=>{let s=k.createExportDeclaration(void 0,!1,k.createNamedExports([]),void 0);o.insertNodeAtEndOfScope(r,r,s)});return[i_("addEmptyExportDeclaration",i,f.Add_export_to_make_this_file_into_a_module)]}})}});function HDe(e,t,r,i){let o=r(s=>QXe(s,e.sourceFile,t,i));return ca(qY,o,f.Add_async_modifier_to_containing_function,qY,f.Add_all_missing_async_modifiers)}function QXe(e,t,r,i){if(i&&i.has(ss(r)))return;i?.add(ss(r));let o=k.replaceModifiers(sl(r,!0),k.createNodeArray(k.createModifiersFromModifierFlags(Gy(r)|1024)));e.replaceNode(t,r,o)}function qDe(e,t){if(!t)return;let r=po(e,t.start);return zn(r,o=>o.getStart(e)ql(t)?"quit":(Bs(o)||jl(o)||ws(o)||Sc(o))&&b2(t,Rd(o,e)))}function ZXe(e,t){return({start:r,length:i,relatedInformation:o,code:s})=>Rv(r)&&Rv(i)&&b2({start:r,length:i},e)&&s===t&&!!o&&Et(o,l=>l.code===f.Did_you_mean_to_mark_this_function_as_async.code)}var qY,kpe,eYe=A({"src/services/codefixes/addMissingAsync.ts"(){"use strict";ci(),xa(),qY="addMissingAsync",kpe=[f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,f.Type_0_is_not_assignable_to_type_1.code,f.Type_0_is_not_comparable_to_type_1.code],Aa({fixIds:[qY],errorCodes:kpe,getCodeActions:function(t){let{sourceFile:r,errorCode:i,cancellationToken:o,program:s,span:l}=t,u=vn(s.getTypeChecker().getDiagnostics(r,o),ZXe(l,i)),p=u&&u.relatedInformation&&vn(u.relatedInformation,b=>b.code===f.Did_you_mean_to_mark_this_function_as_async.code),g=qDe(r,p);return g?[HDe(t,g,b=>hr.ChangeTracker.with(t,b))]:void 0},getAllCodeActions:e=>{let{sourceFile:t}=e,r=new Set;return Ss(e,kpe,(i,o)=>{let s=o.relatedInformation&&vn(o.relatedInformation,p=>p.code===f.Did_you_mean_to_mark_this_function_as_async.code),l=qDe(t,s);return l?HDe(e,l,p=>(p(i),[]),r):void 0})}})}});function JDe(e,t,r,i,o){let s=DX(e,r);return s&&tYe(e,t,r,i,o)&&YDe(s)?s:void 0}function KDe(e,t,r,i,o,s){let{sourceFile:l,program:u,cancellationToken:p}=e,g=nYe(t,l,p,u,i);if(g){let m=o(b=>{Ke(g.initializers,({expression:T})=>wpe(b,r,l,i,T,s)),s&&g.needsSecondPassForFixAll&&wpe(b,r,l,i,t,s)});return i_("addMissingAwaitToInitializer",m,g.initializers.length===1?[f.Add_await_to_initializer_for_0,g.initializers[0].declarationSymbol.name]:f.Add_await_to_initializers)}}function XDe(e,t,r,i,o,s){let l=o(u=>wpe(u,r,e.sourceFile,i,t,s));return ca(JY,l,f.Add_await,JY,f.Fix_all_expressions_possibly_missing_await)}function tYe(e,t,r,i,o){let l=o.getTypeChecker().getDiagnostics(e,i);return Et(l,({start:u,length:p,relatedInformation:g,code:m})=>Rv(u)&&Rv(p)&&b2({start:u,length:p},r)&&m===t&&!!g&&Et(g,b=>b.code===f.Did_you_forget_to_use_await.code))}function nYe(e,t,r,i,o){let s=rYe(e,o);if(!s)return;let l=s.isCompleteFix,u;for(let p of s.identifiers){let g=o.getSymbolAtLocation(p);if(!g)continue;let m=ai(g.valueDeclaration,Oi),b=m&&ai(m.name,Ve),T=p0(m,243);if(!m||!T||m.type||!m.initializer||T.getSourceFile()!==t||ei(T,32)||!b||!YDe(m.initializer)){l=!1;continue}let I=i.getSemanticDiagnostics(t,r);if(Os.Core.eachSymbolReferenceInFile(b,o,t,M=>p!==M&&!iYe(M,I,t,o))){l=!1;continue}(u||(u=[])).push({expression:m.initializer,declarationSymbol:g})}return u&&{initializers:u,needsSecondPassForFixAll:!l}}function rYe(e,t){if(zr(e.parent)&&Ve(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(Ve(e))return{identifiers:[e],isCompleteFix:!0};if(_r(e)){let r,i=!0;for(let o of[e.left,e.right]){let s=t.getTypeAtLocation(o);if(t.getPromisedTypeOfPromise(s)){if(!Ve(o)){i=!1;continue}(r||(r=[])).push(o)}}return r&&{identifiers:r,isCompleteFix:i}}}function iYe(e,t,r,i){let o=zr(e.parent)?e.parent.name:_r(e.parent)?e.parent:e,s=vn(t,l=>l.start===o.getStart(r)&&l.start+l.length===o.getEnd());return s&&wr(KY,s.code)||i.getTypeAtLocation(o).flags&1}function YDe(e){return e.flags&65536||!!zn(e,t=>t.parent&&Bs(t.parent)&&t.parent.body===t||Xo(t)&&(t.parent.kind===262||t.parent.kind===218||t.parent.kind===219||t.parent.kind===174))}function wpe(e,t,r,i,o,s){if(Uk(o.parent)&&!o.parent.awaitModifier){let l=i.getTypeAtLocation(o),u=i.getAsyncIterableType();if(u&&i.isTypeAssignableTo(l,u)){let p=o.parent;e.replaceNode(r,p,k.updateForOfStatement(p,k.createToken(135),p.initializer,p.expression,p.statement));return}}if(_r(o))for(let l of[o.left,o.right]){if(s&&Ve(l)){let g=i.getSymbolAtLocation(l);if(g&&s.has(Ta(g)))continue}let u=i.getTypeAtLocation(l),p=i.getPromisedTypeOfPromise(u)?k.createAwaitExpression(l):l;e.replaceNode(r,l,p)}else if(t===Ope&&zr(o.parent)){if(s&&Ve(o.parent.expression)){let l=i.getSymbolAtLocation(o.parent.expression);if(l&&s.has(Ta(l)))return}e.replaceNode(r,o.parent.expression,k.createParenthesizedExpression(k.createAwaitExpression(o.parent.expression))),$De(e,o.parent.expression,r)}else if(wr(Fpe,t)&&T_(o.parent)){if(s&&Ve(o)){let l=i.getSymbolAtLocation(o);if(l&&s.has(Ta(l)))return}e.replaceNode(r,o,k.createParenthesizedExpression(k.createAwaitExpression(o))),$De(e,o,r)}else{if(s&&Oi(o.parent)&&Ve(o.parent.name)){let l=i.getSymbolAtLocation(o.parent.name);if(l&&!Av(s,Ta(l)))return}e.replaceNode(r,o,k.createAwaitExpression(o))}}function $De(e,t,r){let i=Ac(t.pos,r);i&&bW(i.end,i.parent,r)&&e.insertText(r,t.getStart(r),";")}var JY,Ope,Fpe,KY,oYe=A({"src/services/codefixes/addMissingAwait.ts"(){"use strict";ci(),xa(),JY="addMissingAwait",Ope=f.Property_0_does_not_exist_on_type_1.code,Fpe=[f.This_expression_is_not_callable.code,f.This_expression_is_not_constructable.code],KY=[f.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,f.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,f.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,f.Operator_0_cannot_be_applied_to_type_1.code,f.Operator_0_cannot_be_applied_to_types_1_and_2.code,f.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,f.This_condition_will_always_return_true_since_this_0_is_always_defined.code,f.Type_0_is_not_an_array_type.code,f.Type_0_is_not_an_array_type_or_a_string_type.code,f.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,f.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,f.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,f.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,f.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,Ope,...Fpe],Aa({fixIds:[JY],errorCodes:KY,getCodeActions:function(t){let{sourceFile:r,errorCode:i,span:o,cancellationToken:s,program:l}=t,u=JDe(r,i,o,s,l);if(!u)return;let p=t.program.getTypeChecker(),g=m=>hr.ChangeTracker.with(t,m);return CM([KDe(t,u,i,p,g),XDe(t,u,i,p,g)])},getAllCodeActions:e=>{let{sourceFile:t,program:r,cancellationToken:i}=e,o=e.program.getTypeChecker(),s=new Set;return Ss(e,KY,(l,u)=>{let p=JDe(t,u.code,u,i,r);if(!p)return;let g=m=>(m(l),[]);return KDe(e,p,u.code,o,g,s)||XDe(e,p,u.code,o,g,s)})}})}});function QDe(e,t,r,i,o){let s=po(t,r),l=zn(s,g=>Jx(g.parent)?g.parent.initializer===g:aYe(g)?!1:"quit");if(l)return XY(e,l,t,o);let u=s.parent;if(_r(u)&&u.operatorToken.kind===64&&eu(u.parent))return XY(e,s,t,o);if(pd(u)){let g=i.getTypeChecker();return Jn(u.elements,m=>sYe(m,g))?XY(e,u,t,o):void 0}let p=zn(s,g=>eu(g.parent)?!0:lYe(g)?!1:"quit");if(p){let g=i.getTypeChecker();return ZDe(p,g)?XY(e,p,t,o):void 0}}function XY(e,t,r,i){(!i||Av(i,t))&&e.insertModifierBefore(r,87,t)}function aYe(e){switch(e.kind){case 80:case 209:case 210:case 303:case 304:return!0;default:return!1}}function sYe(e,t){let r=Ve(e)?e:Mc(e,!0)&&Ve(e.left)?e.left:void 0;return!!r&&!t.getSymbolAtLocation(r)}function lYe(e){switch(e.kind){case 80:case 226:case 28:return!0;default:return!1}}function ZDe(e,t){return _r(e)?e.operatorToken.kind===28?Jn([e.left,e.right],r=>ZDe(r,t)):e.operatorToken.kind===64&&Ve(e.left)&&!t.getSymbolAtLocation(e.left):!1}var YY,Wpe,cYe=A({"src/services/codefixes/addMissingConst.ts"(){"use strict";ci(),xa(),YY="addMissingConst",Wpe=[f.Cannot_find_name_0.code,f.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code],Aa({errorCodes:Wpe,getCodeActions:function(t){let r=hr.ChangeTracker.with(t,i=>QDe(i,t.sourceFile,t.span.start,t.program));if(r.length>0)return[ca(YY,r,f.Add_const_to_unresolved_variable,YY,f.Add_const_to_all_unresolved_variables)]},fixIds:[YY],getAllCodeActions:e=>{let t=new Set;return Ss(e,Wpe,(r,i)=>QDe(r,i.file,i.start,e.program,t))}})}});function eCe(e,t,r,i){let o=po(t,r);if(!Ve(o))return;let s=o.parent;s.kind===172&&(!i||Av(i,s))&&e.insertModifierBefore(t,138,s)}var $Y,zpe,uYe=A({"src/services/codefixes/addMissingDeclareProperty.ts"(){"use strict";ci(),xa(),$Y="addMissingDeclareProperty",zpe=[f.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration.code],Aa({errorCodes:zpe,getCodeActions:function(t){let r=hr.ChangeTracker.with(t,i=>eCe(i,t.sourceFile,t.span.start));if(r.length>0)return[ca($Y,r,f.Prefix_with_declare,$Y,f.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[$Y],getAllCodeActions:e=>{let t=new Set;return Ss(e,zpe,(r,i)=>eCe(r,i.file,i.start,t))}})}});function tCe(e,t,r){let i=po(t,r),o=zn(i,Eu);C.assert(!!o,"Expected position to be owned by a decorator.");let s=k.createCallExpression(o.expression,void 0,void 0);e.replaceNode(t,o.expression,s)}var QY,Bpe,dYe=A({"src/services/codefixes/addMissingInvocationForDecorator.ts"(){"use strict";ci(),xa(),QY="addMissingInvocationForDecorator",Bpe=[f._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code],Aa({errorCodes:Bpe,getCodeActions:function(t){let r=hr.ChangeTracker.with(t,i=>tCe(i,t.sourceFile,t.span.start));return[ca(QY,r,f.Call_decorator_expression,QY,f.Add_to_all_uncalled_decorators)]},fixIds:[QY],getAllCodeActions:e=>Ss(e,Bpe,(t,r)=>tCe(t,r.file,r.start))})}});function nCe(e,t,r){let i=po(t,r),o=i.parent;if(!Co(o))return C.fail("Tried to add a parameter name to a non-parameter: "+C.formatSyntaxKind(i.kind));let s=o.parent.parameters.indexOf(o);C.assert(!o.type,"Tried to add a parameter name to a parameter that already had one."),C.assert(s>-1,"Parameter not found in parent parameter list.");let l=o.name.getEnd(),u=k.createTypeReferenceNode(o.name,void 0),p=rCe(t,o);for(;p;)u=k.createArrayTypeNode(u),l=p.getEnd(),p=rCe(t,p);let g=k.createParameterDeclaration(o.modifiers,o.dotDotDotToken,"arg"+s,o.questionToken,o.dotDotDotToken&&!Gk(u)?k.createArrayTypeNode(u):u,o.initializer);e.replaceRange(t,Tf(o.getStart(t),l),g)}function rCe(e,t){let r=lE(t.name,t.parent,e);if(r&&r.kind===23&&U1(r.parent)&&Co(r.parent.parent))return r.parent.parent}var ZY,Gpe,pYe=A({"src/services/codefixes/addNameToNamelessParameter.ts"(){"use strict";ci(),xa(),ZY="addNameToNamelessParameter",Gpe=[f.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code],Aa({errorCodes:Gpe,getCodeActions:function(t){let r=hr.ChangeTracker.with(t,i=>nCe(i,t.sourceFile,t.span.start));return[ca(ZY,r,f.Add_parameter_name,ZY,f.Add_names_to_all_parameters_without_names)]},fixIds:[ZY],getAllCodeActions:e=>Ss(e,Gpe,(t,r)=>nCe(t,r.file,r.start))})}});function fYe(e,t,r){var i,o;let s=iCe(DX(e,t),r);if(!s)return et;let{source:l,target:u}=s,p=mYe(l,u,r)?r.getTypeAtLocation(u.expression):r.getTypeAtLocation(u);return(o=(i=p.symbol)==null?void 0:i.declarations)!=null&&o.some(g=>Vn(g).fileName.match(/\.d\.ts$/))?et:r.getExactOptionalProperties(p)}function mYe(e,t,r){return zr(t)&&!!r.getExactOptionalProperties(r.getTypeAtLocation(t.expression)).length&&r.getTypeAtLocation(e)===r.getUndefinedType()}function iCe(e,t){var r;if(e){if(_r(e.parent)&&e.parent.operatorToken.kind===64)return{source:e.parent.right,target:e.parent.left};if(Oi(e.parent)&&e.parent.initializer)return{source:e.parent.initializer,target:e.parent.name};if(la(e.parent)){let i=t.getSymbolAtLocation(e.parent.expression);if(!i?.valueDeclaration||!xA(i.valueDeclaration.kind)||!bt(e))return;let o=e.parent.arguments.indexOf(e);if(o===-1)return;let s=i.valueDeclaration.parameters[o].name;if(Ve(s))return{source:e,target:s}}else if(_c(e.parent)&&Ve(e.parent.name)||np(e.parent)){let i=iCe(e.parent.parent,t);if(!i)return;let o=t.getPropertyOfType(t.getTypeAtLocation(i.target),e.parent.name.text),s=(r=o?.declarations)==null?void 0:r[0];return s?{source:_c(e.parent)?e.parent.initializer:e.parent.name,target:s}:void 0}}else return}function _Ye(e,t){for(let r of t){let i=r.valueDeclaration;if(i&&(gp(i)||Jo(i))&&i.type){let o=k.createUnionTypeNode([...i.type.kind===192?i.type.types:[i.type],k.createTypeReferenceNode("undefined")]);e.replaceNode(i.getSourceFile(),i.type,o)}}}var Vpe,oCe,hYe=A({"src/services/codefixes/addOptionalPropertyUndefined.ts"(){"use strict";ci(),xa(),Vpe="addOptionalPropertyUndefined",oCe=[f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code],Aa({errorCodes:oCe,getCodeActions(e){let t=e.program.getTypeChecker(),r=fYe(e.sourceFile,e.span,t);if(!r.length)return;let i=hr.ChangeTracker.with(e,o=>_Ye(o,r));return[i_(Vpe,i,f.Add_undefined_to_optional_property_type)]},fixIds:[Vpe]})}});function aCe(e,t){let r=po(e,t);return ai(Co(r.parent)?r.parent.parent:r.parent,sCe)}function sCe(e){return gYe(e)&&lCe(e)}function lCe(e){return zs(e)?e.parameters.some(lCe)||!e.type&&!!rL(e):!e.type&&!!i0(e)}function cCe(e,t,r){if(zs(r)&&(rL(r)||r.parameters.some(i=>!!i0(i)))){if(!r.typeParameters){let o=A3(r);o.length&&e.insertTypeParameters(t,r,o)}let i=Bs(r)&&!bs(r,21,t);i&&e.insertNodeBefore(t,Ha(r.parameters),k.createToken(21));for(let o of r.parameters)if(!o.type){let s=i0(o);s&&e.tryInsertTypeAnnotation(t,o,rt(s,fE,qi))}if(i&&e.insertNodeAfter(t,Ya(r.parameters),k.createToken(22)),!r.type){let o=rL(r);o&&e.tryInsertTypeAnnotation(t,r,rt(o,fE,qi))}}else{let i=C.checkDefined(i0(r),"A JSDocType for this declaration should exist");C.assert(!r.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(t,r,rt(i,fE,qi))}}function gYe(e){return zs(e)||e.kind===260||e.kind===171||e.kind===172}function fE(e){switch(e.kind){case 319:case 320:return k.createTypeReferenceNode("any",et);case 323:return yYe(e);case 322:return fE(e.type);case 321:return bYe(e);case 325:return EYe(e);case 324:return SYe(e);case 183:return AYe(e);case 329:return vYe(e);default:let t=An(e,fE,void 0);return fr(t,1),t}}function vYe(e){let t=k.createTypeLiteralNode(Ft(e.jsDocPropertyTags,r=>k.createPropertySignature(void 0,Ve(r.name)?r.name:r.name.right,vk(r)?k.createToken(58):void 0,r.typeExpression&&rt(r.typeExpression.type,fE,qi)||k.createKeywordTypeNode(133))));return fr(t,1),t}function yYe(e){return k.createUnionTypeNode([rt(e.type,fE,qi),k.createTypeReferenceNode("undefined",et)])}function bYe(e){return k.createUnionTypeNode([rt(e.type,fE,qi),k.createTypeReferenceNode("null",et)])}function EYe(e){return k.createArrayTypeNode(rt(e.type,fE,qi))}function SYe(e){return k.createFunctionTypeNode(et,e.parameters.map(TYe),e.type??k.createKeywordTypeNode(133))}function TYe(e){let t=e.parent.parameters.indexOf(e),r=e.type.kind===325&&t===e.parent.parameters.length-1,i=e.name||(r?"rest":"arg"+t),o=r?k.createToken(26):e.dotDotDotToken;return k.createParameterDeclaration(e.modifiers,o,i,e.questionToken,rt(e.type,fE,qi),e.initializer)}function AYe(e){let t=e.typeName,r=e.typeArguments;if(Ve(e.typeName)){if(o3(e))return IYe(e);let i=e.typeName.text;switch(e.typeName.text){case"String":case"Boolean":case"Object":case"Number":i=i.toLowerCase();break;case"array":case"date":case"promise":i=i[0].toUpperCase()+i.slice(1);break}t=k.createIdentifier(i),(i==="Array"||i==="Promise")&&!e.typeArguments?r=k.createNodeArray([k.createTypeReferenceNode("any",et)]):r=Bn(e.typeArguments,fE,qi)}return k.createTypeReferenceNode(t,r)}function IYe(e){let t=k.createParameterDeclaration(void 0,void 0,e.typeArguments[0].kind===150?"n":"s",void 0,k.createTypeReferenceNode(e.typeArguments[0].kind===150?"number":"string",[]),void 0),r=k.createTypeLiteralNode([k.createIndexSignature(void 0,[t],e.typeArguments[1])]);return fr(r,1),r}var e$,jpe,xYe=A({"src/services/codefixes/annotateWithTypeFromJSDoc.ts"(){"use strict";ci(),xa(),e$="annotateWithTypeFromJSDoc",jpe=[f.JSDoc_types_may_be_moved_to_TypeScript_types.code],Aa({errorCodes:jpe,getCodeActions(e){let t=aCe(e.sourceFile,e.span.start);if(!t)return;let r=hr.ChangeTracker.with(e,i=>cCe(i,e.sourceFile,t));return[ca(e$,r,f.Annotate_with_type_from_JSDoc,e$,f.Annotate_everything_with_types_from_JSDoc)]},fixIds:[e$],getAllCodeActions:e=>Ss(e,jpe,(t,r)=>{let i=aCe(r.file,r.start);i&&cCe(t,r.file,i)})})}});function uCe(e,t,r,i,o,s){let l=i.getSymbolAtLocation(po(t,r));if(!l||!l.valueDeclaration||!(l.flags&19))return;let u=l.valueDeclaration;if(Sc(u)||ws(u))e.replaceNode(t,u,m(u));else if(Oi(u)){let b=g(u);if(!b)return;let T=u.parent.parent;jc(u.parent)&&u.parent.declarations.length>1?(e.delete(t,u),e.insertNodeAfter(t,T,b)):e.replaceNode(t,T,b)}function p(b){let T=[];return b.exports&&b.exports.forEach(M=>{if(M.name==="prototype"&&M.declarations){let N=M.declarations[0];if(M.declarations.length===1&&zr(N)&&_r(N.parent)&&N.parent.operatorToken.kind===64&&wa(N.parent.right)){let O=N.parent.right;R(O.symbol,void 0,T)}}else R(M,[k.createToken(126)],T)}),b.members&&b.members.forEach((M,N)=>{var O,H,K,Z;if(N==="constructor"&&M.valueDeclaration){let V=(Z=(K=(H=(O=b.exports)==null?void 0:O.get("prototype"))==null?void 0:H.declarations)==null?void 0:K[0])==null?void 0:Z.parent;V&&_r(V)&&wa(V.right)&&Et(V.right.properties,n$)||e.delete(t,M.valueDeclaration.parent);return}R(M,void 0,T)}),T;function I(M,N){return ks(M)?zr(M)&&n$(M)?!0:ea(N):Jn(M.properties,O=>!!(jl(O)||v6(O)||_c(O)&&ws(O.initializer)&&O.name||n$(O)))}function R(M,N,O){if(!(M.flags&8192)&&!(M.flags&4096))return;let H=M.valueDeclaration,K=H.parent,Z=K.right;if(!I(H,Z)||Et(O,he=>{let ye=Oo(he);return!!(ye&&Ve(ye)&&Sr(ye)===bl(M))}))return;let V=K.parent&&K.parent.kind===244?K.parent:K;if(e.delete(t,V),!Z){O.push(k.createPropertyDeclaration(N,M.name,void 0,void 0,void 0));return}if(ks(H)&&(ws(Z)||Bs(Z))){let he=af(t,o),ye=RYe(H,s,he);ye&&ue(O,Z,ye);return}else if(wa(Z)){Ke(Z.properties,he=>{(jl(he)||v6(he))&&O.push(he),_c(he)&&ws(he.initializer)&&ue(O,he.initializer,he.name),n$(he)});return}else{if(ld(t)||!zr(H))return;let he=k.createPropertyDeclaration(N,H.name,void 0,void 0,Z);S2(K.parent,he,t),O.push(he);return}function ue(he,ye,$){return ws(ye)?G(he,ye,$):ne(he,ye,$)}function G(he,ye,$){let Y=xo(N,t$(ye,134)),oe=k.createMethodDeclaration(Y,void 0,$,void 0,void 0,ye.parameters,void 0,ye.body);S2(K,oe,t),he.push(oe)}function ne(he,ye,$){let Y=ye.body,oe;Y.kind===241?oe=Y:oe=k.createBlock([k.createReturnStatement(Y)]);let fe=xo(N,t$(ye,134)),Ne=k.createMethodDeclaration(fe,void 0,$,void 0,void 0,ye.parameters,void 0,oe);S2(K,Ne,t),he.push(Ne)}}}function g(b){let T=b.initializer;if(!T||!ws(T)||!Ve(b.name))return;let I=p(b.symbol);T.body&&I.unshift(k.createConstructorDeclaration(void 0,T.parameters,T.body));let R=t$(b.parent.parent,95);return k.createClassDeclaration(R,b.name,void 0,void 0,I)}function m(b){let T=p(l);b.body&&T.unshift(k.createConstructorDeclaration(void 0,b.parameters,b.body));let I=t$(b,95);return k.createClassDeclaration(I,b.name,void 0,void 0,T)}}function t$(e,t){return Cm(e)?tr(e.modifiers,r=>r.kind===t):void 0}function n$(e){return e.name?!!(Ve(e.name)&&e.name.text==="constructor"):!1}function RYe(e,t,r){if(zr(e))return e.name;let i=e.argumentExpression;if(hp(i))return i;if(us(i))return $p(i.text,as(t))?k.createIdentifier(i.text):QA(i)?k.createStringLiteral(i.text,r===0):i}var r$,Upe,DYe=A({"src/services/codefixes/convertFunctionToEs6Class.ts"(){"use strict";ci(),xa(),r$="convertFunctionToEs6Class",Upe=[f.This_constructor_function_may_be_converted_to_a_class_declaration.code],Aa({errorCodes:Upe,getCodeActions(e){let t=hr.ChangeTracker.with(e,r=>uCe(r,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()));return[ca(r$,t,f.Convert_function_to_an_ES2015_class,r$,f.Convert_all_constructor_functions_to_classes)]},fixIds:[r$],getAllCodeActions:e=>Ss(e,Upe,(t,r)=>uCe(t,r.file,r.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()))})}});function dCe(e,t,r,i){let o=po(t,r),s;if(Ve(o)&&Oi(o.parent)&&o.parent.initializer&&zs(o.parent.initializer)?s=o.parent.initializer:s=ai(zp(po(t,r)),ZX),!s)return;let l=new Map,u=cr(s),p=NYe(s,i),g=PYe(s,i,l);if(!$X(g,i))return;let m=g.body&&Xo(g.body)?CYe(g.body,i):et,b={checker:i,synthNamesMap:l,setOfExpressionsToReturn:p,isInJSFile:u};if(!m.length)return;let T=La(t.text,P_(s).pos);e.insertModifierAt(t,T,134,{suffix:" "});for(let I of m)if(Ho(I,function R(M){if(la(M)){let N=M2(M,M,b,!1);if(MI())return!0;e.replaceNodeWithNodes(t,I,N)}else if(!ea(M)&&(Ho(M,R),MI()))return!0}),MI())return}function CYe(e,t){let r=[];return R1(e,i=>{FW(i,t)&&r.push(i)}),r}function NYe(e,t){if(!e.body)return new Set;let r=new Set;return Ho(e.body,function i(o){zO(o,t,"then")?(r.add(ss(o)),Ke(o.arguments,i)):zO(o,t,"catch")||zO(o,t,"finally")?(r.add(ss(o)),Ho(o,i)):fCe(o,t)?r.add(ss(o)):Ho(o,i)}),r}function zO(e,t,r){if(!la(e))return!1;let o=Qw(e,r)&&t.getTypeAtLocation(e);return!!(o&&t.getPromisedTypeOfPromise(o))}function pCe(e,t){return(Wr(e)&4)!==0&&e.target===t}function i$(e,t,r){if(e.expression.name.escapedText==="finally")return;let i=r.getTypeAtLocation(e.expression.expression);if(pCe(i,r.getPromiseType())||pCe(i,r.getPromiseLikeType()))if(e.expression.name.escapedText==="then"){if(t===Nv(e.arguments,0))return Nv(e.typeArguments,0);if(t===Nv(e.arguments,1))return Nv(e.typeArguments,1)}else return Nv(e.typeArguments,0)}function fCe(e,t){return bt(e)?!!t.getPromisedTypeOfPromise(t.getTypeAtLocation(e)):!1}function PYe(e,t,r){let i=new Map,o=Xp();return Ho(e,function s(l){if(!Ve(l)){Ho(l,s);return}let u=t.getSymbolAtLocation(l);if(u){let p=t.getTypeAtLocation(l),g=yCe(p,t),m=Ta(u).toString();if(g&&!Co(l.parent)&&!zs(l.parent)&&!r.has(m)){let b=Xc(g.parameters),T=b?.valueDeclaration&&Co(b.valueDeclaration)&&ai(b.valueDeclaration.name,Ve)||k.createUniqueName("result",16),I=mCe(T,o);r.set(m,I),o.add(T.text,u)}else if(l.parent&&(Co(l.parent)||Oi(l.parent)||Qa(l.parent))){let b=l.text,T=o.get(b);if(T&&T.some(I=>I!==u)){let I=mCe(l,o);i.set(m,I.identifier),r.set(m,I),o.add(b,u)}else{let I=sl(l);r.set(m,yP(I)),o.add(b,u)}}}}),fO(e,!0,s=>{if(Qa(s)&&Ve(s.name)&&om(s.parent)){let l=t.getSymbolAtLocation(s.name),u=l&&i.get(String(Ta(l)));if(u&&u.text!==(s.name||s.propertyName).getText())return k.createBindingElement(s.dotDotDotToken,s.propertyName||s.name,u,s.initializer)}else if(Ve(s)){let l=t.getSymbolAtLocation(s),u=l&&i.get(String(Ta(l)));if(u)return k.createIdentifier(u.text)}})}function mCe(e,t){let r=(t.get(e.text)||et).length,i=r===0?e:k.createIdentifier(e.text+"_"+r);return yP(i)}function MI(){return!c9}function M0(){return c9=!1,et}function M2(e,t,r,i,o){if(zO(t,r.checker,"then"))return kYe(t,Nv(t.arguments,0),Nv(t.arguments,1),r,i,o);if(zO(t,r.checker,"catch"))return gCe(t,Nv(t.arguments,0),r,i,o);if(zO(t,r.checker,"finally"))return LYe(t,Nv(t.arguments,0),r,i,o);if(zr(t))return M2(e,t.expression,r,i,o);let s=r.checker.getTypeAtLocation(t);return s&&r.checker.getPromisedTypeOfPromise(s)?(C.assertNode(Nl(t).parent,zr),wYe(e,t,r,i,o)):M0()}function o$({checker:e},t){if(t.kind===106)return!0;if(Ve(t)&&!ol(t)&&Sr(t)==="undefined"){let r=e.getSymbolAtLocation(t);return!r||e.isUndefinedSymbol(r)}return!1}function MYe(e){let t=k.createUniqueName(e.identifier.text,16);return yP(t)}function _Ce(e,t,r){let i;return r&&!GO(e,t)&&(BO(r)?(i=r,t.synthNamesMap.forEach((o,s)=>{if(o.identifier.text===r.identifier.text){let l=MYe(r);t.synthNamesMap.set(s,l)}})):i=yP(k.createUniqueName("result",16),r.types),Kpe(i)),i}function hCe(e,t,r,i,o){let s=[],l;if(i&&!GO(e,t)){l=sl(Kpe(i));let u=i.types,p=t.checker.getUnionType(u,2),g=t.isInJSFile?void 0:t.checker.typeToTypeNode(p,void 0,void 0),m=[k.createVariableDeclaration(l,void 0,g)],b=k.createVariableStatement(void 0,k.createVariableDeclarationList(m,1));s.push(b)}return s.push(r),o&&l&&WYe(o)&&s.push(k.createVariableStatement(void 0,k.createVariableDeclarationList([k.createVariableDeclaration(sl(TCe(o)),void 0,void 0,l)],2))),s}function LYe(e,t,r,i,o){if(!t||o$(r,t))return M2(e,e.expression.expression,r,i,o);let s=_Ce(e,r,o),l=M2(e,e.expression.expression,r,!0,s);if(MI())return M0();let u=qpe(t,i,void 0,void 0,e,r);if(MI())return M0();let p=k.createBlock(l),g=k.createBlock(u),m=k.createTryStatement(p,void 0,g);return hCe(e,r,m,s,o)}function gCe(e,t,r,i,o){if(!t||o$(r,t))return M2(e,e.expression.expression,r,i,o);let s=ECe(t,r),l=_Ce(e,r,o),u=M2(e,e.expression.expression,r,!0,l);if(MI())return M0();let p=qpe(t,i,l,s,e,r);if(MI())return M0();let g=k.createBlock(u),m=k.createCatchClause(s&&sl(l9(s)),k.createBlock(p)),b=k.createTryStatement(g,m,void 0);return hCe(e,r,b,l,o)}function kYe(e,t,r,i,o,s){if(!t||o$(i,t))return gCe(e,r,i,o,s);if(r&&!o$(i,r))return M0();let l=ECe(t,i),u=M2(e.expression.expression,e.expression.expression,i,!0,l);if(MI())return M0();let p=qpe(t,o,s,l,e,i);return MI()?M0():xo(u,p)}function wYe(e,t,r,i,o){if(GO(e,r)){let s=sl(t);return i&&(s=k.createAwaitExpression(s)),[k.createReturnStatement(s)]}return a$(o,k.createAwaitExpression(t),void 0)}function a$(e,t,r){return!e||SCe(e)?[k.createExpressionStatement(t)]:BO(e)&&e.hasBeenDeclared?[k.createExpressionStatement(k.createAssignment(sl(Jpe(e)),t))]:[k.createVariableStatement(void 0,k.createVariableDeclarationList([k.createVariableDeclaration(sl(l9(e)),void 0,r,t)],2))]}function Hpe(e,t){if(t&&e){let r=k.createUniqueName("result",16);return[...a$(yP(r),e,t),k.createReturnStatement(r)]}return[k.createReturnStatement(e)]}function qpe(e,t,r,i,o,s){var l;switch(e.kind){case 106:break;case 211:case 80:if(!i)break;let u=k.createCallExpression(sl(e),void 0,BO(i)?[Jpe(i)]:[]);if(GO(o,s))return Hpe(u,i$(o,e,s.checker));let p=s.checker.getTypeAtLocation(e),g=s.checker.getSignaturesOfType(p,0);if(!g.length)return M0();let m=g[0].getReturnType(),b=a$(r,k.createAwaitExpression(u),i$(o,e,s.checker));return r&&r.types.push(s.checker.getAwaitedType(m)||m),b;case 218:case 219:{let T=e.body,I=(l=yCe(s.checker.getTypeAtLocation(e),s.checker))==null?void 0:l.getReturnType();if(Xo(T)){let R=[],M=!1;for(let N of T.statements)if(Rm(N))if(M=!0,FW(N,s.checker))R=R.concat(bCe(s,N,t,r));else{let O=I&&N.expression?vCe(s.checker,I,N.expression):N.expression;R.push(...Hpe(O,i$(o,e,s.checker)))}else{if(t&&R1(N,Dv))return M0();R.push(N)}return GO(o,s)?R.map(N=>sl(N)):OYe(R,r,s,M)}else{let R=QX(T,s.checker)?bCe(s,k.createReturnStatement(T),t,r):et;if(R.length>0)return R;if(I){let M=vCe(s.checker,I,T);if(GO(o,s))return Hpe(M,i$(o,e,s.checker));{let N=a$(r,M,void 0);return r&&r.types.push(s.checker.getAwaitedType(I)||I),N}}else return M0()}}default:return M0()}return et}function vCe(e,t,r){let i=sl(r);return e.getPromisedTypeOfPromise(t)?k.createAwaitExpression(i):i}function yCe(e,t){let r=t.getSignaturesOfType(e,0);return Zs(r)}function OYe(e,t,r,i){let o=[];for(let s of e)if(Rm(s)){if(s.expression){let l=fCe(s.expression,r.checker)?k.createAwaitExpression(s.expression):s.expression;t===void 0?o.push(k.createExpressionStatement(l)):BO(t)&&t.hasBeenDeclared?o.push(k.createExpressionStatement(k.createAssignment(Jpe(t),l))):o.push(k.createVariableStatement(void 0,k.createVariableDeclarationList([k.createVariableDeclaration(l9(t),void 0,void 0,l)],2)))}}else o.push(sl(s));return!i&&t!==void 0&&o.push(k.createVariableStatement(void 0,k.createVariableDeclarationList([k.createVariableDeclaration(l9(t),void 0,void 0,k.createIdentifier("undefined"))],2))),o}function bCe(e,t,r,i){let o=[];return Ho(t,function s(l){if(la(l)){let u=M2(l,l,e,r,i);if(o=o.concat(u),o.length>0)return}else ea(l)||Ho(l,s)}),o}function ECe(e,t){let r=[],i;if(zs(e)){if(e.parameters.length>0){let p=e.parameters[0].name;i=o(p)}}else Ve(e)?i=s(e):zr(e)&&Ve(e.name)&&(i=s(e.name));if(!i||"identifier"in i&&i.identifier.text==="undefined")return;return i;function o(p){if(Ve(p))return s(p);let g=Zi(p.elements,m=>Vc(m)?[]:[o(m.name)]);return FYe(p,g)}function s(p){let g=u(p),m=l(g);return m&&t.synthNamesMap.get(Ta(m).toString())||yP(p,r)}function l(p){var g;return((g=ai(p,A_))==null?void 0:g.symbol)??t.checker.getSymbolAtLocation(p)}function u(p){return p.original?p.original:p}}function SCe(e){return e?BO(e)?!e.identifier.text:Jn(e.elements,SCe):!0}function yP(e,t=[]){return{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function FYe(e,t=et,r=[]){return{kind:1,bindingPattern:e,elements:t,types:r}}function Jpe(e){return e.hasBeenReferenced=!0,e.identifier}function l9(e){return BO(e)?Kpe(e):TCe(e)}function TCe(e){for(let t of e.elements)l9(t);return e.bindingPattern}function Kpe(e){return e.hasBeenDeclared=!0,e.identifier}function BO(e){return e.kind===0}function WYe(e){return e.kind===1}function GO(e,t){return!!e.original&&t.setOfExpressionsToReturn.has(ss(e.original))}var s$,Xpe,c9,zYe=A({"src/services/codefixes/convertToAsyncFunction.ts"(){"use strict";ci(),xa(),s$="convertToAsyncFunction",Xpe=[f.This_may_be_converted_to_an_async_function.code],c9=!0,Aa({errorCodes:Xpe,getCodeActions(e){c9=!0;let t=hr.ChangeTracker.with(e,r=>dCe(r,e.sourceFile,e.span.start,e.program.getTypeChecker()));return c9?[ca(s$,t,f.Convert_to_async_function,s$,f.Convert_all_to_async_functions)]:[]},fixIds:[s$],getAllCodeActions:e=>Ss(e,Xpe,(t,r)=>dCe(t,r.file,r.start,e.program.getTypeChecker()))})}});function BYe(e,t,r,i,o){var s;for(let l of e.imports){let u=(s=r.getResolvedModuleFromModuleSpecifier(l))==null?void 0:s.resolvedModule;if(!u||u.resolvedFileName!==t.fileName)continue;let p=CC(l);switch(p.kind){case 271:i.replaceNode(e,p,$v(p.name,void 0,l,o));break;case 213:Sd(p,!1)&&i.replaceNode(e,p,k.createPropertyAccessExpression(sl(p),"default"));break}}}function GYe(e,t,r,i,o){let s={original:e$e(e),additional:new Set},l=VYe(e,t,s);jYe(e,l,r);let u=!1,p;for(let g of tr(e.statements,Ml)){let m=ICe(e,g,r,t,s,i,o);m&&L6(m,p??(p=new Map))}for(let g of tr(e.statements,m=>!Ml(m))){let m=UYe(e,g,t,r,s,i,l,p,o);u=u||m}return p?.forEach((g,m)=>{r.replaceNode(e,m,g)}),u}function VYe(e,t,r){let i=new Map;return ACe(e,o=>{let{text:s}=o.name;!i.has(s)&&(Uj(o.name)||t.resolveName(s,o,111551,!0))&&i.set(s,l$(`_${s}`,r))}),i}function jYe(e,t,r){ACe(e,(i,o)=>{if(o)return;let{text:s}=i.name;r.replaceNode(e,i,k.createIdentifier(t.get(s)||s))})}function ACe(e,t){e.forEachChild(function r(i){if(zr(i)&&tE(e,i.expression)&&Ve(i.name)){let{parent:o}=i;t(i,_r(o)&&o.left===i&&o.operatorToken.kind===64)}i.forEachChild(r)})}function UYe(e,t,r,i,o,s,l,u,p){switch(t.kind){case 243:return ICe(e,t,i,r,o,s,p),!1;case 244:{let{expression:g}=t;switch(g.kind){case 213:return Sd(g,!0)&&i.replaceNode(e,t,$v(void 0,void 0,g.arguments[0],p)),!1;case 226:{let{operatorToken:m}=g;return m.kind===64&&qYe(e,r,g,i,l,u)}}}default:return!1}}function ICe(e,t,r,i,o,s,l){let{declarationList:u}=t,p=!1,g=Ft(u.declarations,m=>{let{name:b,initializer:T}=m;if(T){if(tE(e,T))return p=!0,bP([]);if(Sd(T,!0))return p=!0,QYe(b,T.arguments[0],i,o,s,l);if(zr(T)&&Sd(T.expression,!0))return p=!0,HYe(b,T.name.text,T.expression.arguments[0],o,l)}return bP([k.createVariableStatement(void 0,k.createVariableDeclarationList([m],u.flags))])});if(p){r.replaceNodeWithNodes(e,t,Zi(g,b=>b.newImports));let m;return Ke(g,b=>{b.useSitesToUnqualify&&L6(b.useSitesToUnqualify,m??(m=new Map))}),m}}function HYe(e,t,r,i,o){switch(e.kind){case 206:case 207:{let s=l$(t,i);return bP([CCe(s,t,r,o),c$(void 0,e,k.createIdentifier(s))])}case 80:return bP([CCe(e.text,t,r,o)]);default:return C.assertNever(e,`Convert to ES module got invalid syntax form ${e.kind}`)}}function qYe(e,t,r,i,o,s){let{left:l,right:u}=r;if(!zr(l))return!1;if(tE(e,l))if(tE(e,u))i.delete(e,r.parent);else{let p=wa(u)?JYe(u,s):Sd(u,!0)?XYe(u.arguments[0],t):void 0;return p?(i.replaceNodeWithNodes(e,r.parent,p[0]),p[1]):(i.replaceRangeWithText(e,Tf(l.getStart(e),u.pos),"export default"),!0)}else tE(e,l.expression)&&KYe(e,r,i,o);return!1}function JYe(e,t){let r=fA(e.properties,i=>{switch(i.kind){case 177:case 178:case 304:case 305:return;case 303:return Ve(i.name)?$Ye(i.name.text,i.initializer,t):void 0;case 174:return Ve(i.name)?DCe(i.name.text,[k.createToken(95)],i,t):void 0;default:C.assertNever(i,`Convert to ES6 got invalid prop kind ${i.kind}`)}});return r&&[r,!1]}function KYe(e,t,r,i){let{text:o}=t.left.name,s=i.get(o);if(s!==void 0){let l=[c$(void 0,s,t.right),Qpe([k.createExportSpecifier(!1,s,o)])];r.replaceNodeWithNodes(e,t.parent,l)}else YYe(t,e,r)}function XYe(e,t){let r=e.text,i=t.getSymbolAtLocation(e),o=i?i.exports:z8;return o.has("export=")?[[Ype(r)],!0]:o.has("default")?o.size>1?[[xCe(r),Ype(r)],!0]:[[Ype(r)],!0]:[[xCe(r)],!1]}function xCe(e){return Qpe(void 0,e)}function Ype(e){return Qpe([k.createExportSpecifier(!1,void 0,"default")],e)}function YYe({left:e,right:t,parent:r},i,o){let s=e.name.text;if((ws(t)||Bs(t)||Zc(t))&&(!t.name||t.name.text===s)){o.replaceRange(i,{pos:e.getStart(i),end:t.getStart(i)},k.createToken(95),{suffix:" "}),t.name||o.insertName(i,t,s);let l=bs(r,27,i);l&&o.delete(i,l)}else o.replaceNodeRangeWithNodes(i,e.expression,bs(e,25,i),[k.createToken(95),k.createToken(87)],{joiner:" ",suffix:" "})}function $Ye(e,t,r){let i=[k.createToken(95)];switch(t.kind){case 218:{let{name:s}=t;if(s&&s.text!==e)return o()}case 219:return DCe(e,i,t,r);case 231:return n$e(e,i,t,r);default:return o()}function o(){return c$(i,k.createIdentifier(e),$pe(t,r))}}function $pe(e,t){if(!t||!Et(Vo(t.keys()),i=>of(e,i)))return e;return Do(e)?bX(e,!0,r):fO(e,!0,r);function r(i){if(i.kind===211){let o=t.get(i);return t.delete(i),o}}}function QYe(e,t,r,i,o,s){switch(e.kind){case 206:{let l=fA(e.elements,u=>u.dotDotDotToken||u.initializer||u.propertyName&&!Ve(u.propertyName)||!Ve(u.name)?void 0:NCe(u.propertyName&&u.propertyName.text,u.name.text));if(l)return bP([$v(void 0,l,t,s)])}case 207:{let l=l$(dfe(t.text,o),i);return bP([$v(k.createIdentifier(l),void 0,t,s),c$(void 0,sl(e),k.createIdentifier(l))])}case 80:return ZYe(e,t,r,i,s);default:return C.assertNever(e,`Convert to ES module got invalid name kind ${e.kind}`)}}function ZYe(e,t,r,i,o){let s=r.getSymbolAtLocation(e),l=new Map,u=!1,p;for(let m of i.original.get(e.text)){if(r.getSymbolAtLocation(m)!==s||m===e)continue;let{parent:b}=m;if(zr(b)){let{name:{text:T}}=b;if(T==="default"){u=!0;let I=m.getText();(p??(p=new Map)).set(b,k.createIdentifier(I))}else{C.assert(b.expression===m,"Didn't expect expression === use");let I=l.get(T);I===void 0&&(I=l$(T,i),l.set(T,I)),(p??(p=new Map)).set(b,k.createIdentifier(I))}}else u=!0}let g=l.size===0?void 0:Vo(ra(l.entries(),([m,b])=>k.createImportSpecifier(!1,m===b?void 0:k.createIdentifier(m),k.createIdentifier(b))));return g||(u=!0),bP([$v(u?sl(e):void 0,g,t,o)],p)}function l$(e,t){for(;t.original.has(e)||t.additional.has(e);)e=`_${e}`;return t.additional.add(e),e}function e$e(e){let t=Xp();return RCe(e,r=>t.add(r.text,r)),t}function RCe(e,t){Ve(e)&&t$e(e)&&t(e),e.forEachChild(r=>RCe(r,t))}function t$e(e){let{parent:t}=e;switch(t.kind){case 211:return t.name!==e;case 208:return t.propertyName!==e;case 276:return t.propertyName!==e;default:return!0}}function DCe(e,t,r,i){return k.createFunctionDeclaration(xo(t,cE(r.modifiers)),sl(r.asteriskToken),e,cE(r.typeParameters),cE(r.parameters),sl(r.type),k.converters.convertToFunctionBlock($pe(r.body,i)))}function n$e(e,t,r,i){return k.createClassDeclaration(xo(t,cE(r.modifiers)),e,cE(r.typeParameters),cE(r.heritageClauses),$pe(r.members,i))}function CCe(e,t,r,i){return t==="default"?$v(k.createIdentifier(e),void 0,r,i):$v(void 0,[NCe(t,e)],r,i)}function NCe(e,t){return k.createImportSpecifier(!1,e!==void 0&&e!==t?k.createIdentifier(e):void 0,k.createIdentifier(t))}function c$(e,t,r){return k.createVariableStatement(e,k.createVariableDeclarationList([k.createVariableDeclaration(t,void 0,void 0,r)],2))}function Qpe(e,t){return k.createExportDeclaration(void 0,!1,e&&k.createNamedExports(e),t===void 0?void 0:k.createStringLiteral(t))}function bP(e,t){return{newImports:e,useSitesToUnqualify:t}}var r$e=A({"src/services/codefixes/convertToEsModule.ts"(){"use strict";ci(),xa(),Aa({errorCodes:[f.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(e){let{sourceFile:t,program:r,preferences:i}=e,o=hr.ChangeTracker.with(e,s=>{if(GYe(t,r.getTypeChecker(),s,as(r.getCompilerOptions()),af(t,i)))for(let u of r.getSourceFiles())BYe(u,t,r,s,af(u,i))});return[i_("convertToEsModule",o,f.Convert_to_ES_module)]}})}});function PCe(e,t){let r=zn(po(e,t),Ad);return C.assert(!!r,"Expected position to be owned by a qualified name."),Ve(r.left)?r:void 0}function MCe(e,t,r){let i=r.right.text,o=k.createIndexedAccessTypeNode(k.createTypeReferenceNode(r.left,void 0),k.createLiteralTypeNode(k.createStringLiteral(i)));e.replaceNode(t,r,o)}var u$,Zpe,i$e=A({"src/services/codefixes/correctQualifiedNameToIndexedAccessType.ts"(){"use strict";ci(),xa(),u$="correctQualifiedNameToIndexedAccessType",Zpe=[f.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code],Aa({errorCodes:Zpe,getCodeActions(e){let t=PCe(e.sourceFile,e.span.start);if(!t)return;let r=hr.ChangeTracker.with(e,o=>MCe(o,e.sourceFile,t)),i=`${t.left.text}["${t.right.text}"]`;return[ca(u$,r,[f.Rewrite_as_the_indexed_access_type_0,i],u$,f.Rewrite_all_as_indexed_access_types)]},fixIds:[u$],getAllCodeActions:e=>Ss(e,Zpe,(t,r)=>{let i=PCe(r.file,r.start);i&&MCe(t,r.file,i)})})}});function LCe(e,t){return ai(po(t,e.start).parent,Ju)}function kCe(e,t,r){if(!t)return;let i=t.parent,o=i.parent,s=o$e(t,r);if(s.length===i.elements.length)e.insertModifierBefore(r.sourceFile,156,i);else{let l=k.updateExportDeclaration(o,o.modifiers,!1,k.updateNamedExports(i,tr(i.elements,p=>!wr(s,p))),o.moduleSpecifier,void 0),u=k.createExportDeclaration(void 0,!0,k.createNamedExports(s),o.moduleSpecifier,void 0);e.replaceNode(r.sourceFile,o,l,{leadingTriviaOption:hr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:hr.TrailingTriviaOption.Exclude}),e.insertNodeAfter(r.sourceFile,o,u)}}function o$e(e,t){let r=e.parent;if(r.elements.length===1)return r.elements;let i=Zue(Rd(r),t.program.getSemanticDiagnostics(t.sourceFile,t.cancellationToken));return tr(r.elements,o=>{var s;return o===e||((s=Que(o,i))==null?void 0:s.code)===d$[0]})}var d$,p$,a$e=A({"src/services/codefixes/convertToTypeOnlyExport.ts"(){"use strict";ci(),xa(),d$=[f.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],p$="convertToTypeOnlyExport",Aa({errorCodes:d$,getCodeActions:function(t){let r=hr.ChangeTracker.with(t,i=>kCe(i,LCe(t.span,t.sourceFile),t));if(r.length)return[ca(p$,r,f.Convert_to_type_only_export,p$,f.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[p$],getAllCodeActions:function(t){let r=new Map;return Ss(t,d$,(i,o)=>{let s=LCe(o,t.sourceFile);s&&xm(r,ss(s.parent.parent))&&kCe(i,s,t)})}})}});function wCe(e,t){let{parent:r}=po(e,t);return tp(r)||Lc(r)&&r.importClause?r:void 0}function OCe(e,t,r){if(e.parent.parent.name)return!1;let i=e.parent.elements.filter(s=>!s.isTypeOnly);if(i.length===1)return!0;let o=r.getTypeChecker();for(let s of i)if(Os.Core.eachSymbolReferenceInFile(s.name,o,t,u=>!_0(u)))return!1;return!0}function u9(e,t,r){var i;if(tp(r))e.replaceNode(t,r,k.updateImportSpecifier(r,!0,r.propertyName,r.name));else{let o=r.importClause;if(o.name&&o.namedBindings)e.replaceNodeWithNodes(t,r,[k.createImportDeclaration(cE(r.modifiers,!0),k.createImportClause(!0,sl(o.name,!0),void 0),sl(r.moduleSpecifier,!0),sl(r.attributes,!0)),k.createImportDeclaration(cE(r.modifiers,!0),k.createImportClause(!0,void 0,sl(o.namedBindings,!0)),sl(r.moduleSpecifier,!0),sl(r.attributes,!0))]);else{let s=((i=o.namedBindings)==null?void 0:i.kind)===275?k.updateNamedImports(o.namedBindings,Io(o.namedBindings.elements,u=>k.updateImportSpecifier(u,!1,u.propertyName,u.name))):o.namedBindings,l=k.updateImportDeclaration(r,r.modifiers,k.updateImportClause(o,!0,o.name,s),r.moduleSpecifier,r.attributes);e.replaceNode(t,r,l)}}}var efe,d9,s$e=A({"src/services/codefixes/convertToTypeOnlyImport.ts"(){"use strict";ci(),xa(),efe=[f.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code,f._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code,f._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],d9="convertToTypeOnlyImport",Aa({errorCodes:efe,getCodeActions:function(t){var r;let i=wCe(t.sourceFile,t.span.start);if(i){let o=hr.ChangeTracker.with(t,u=>u9(u,t.sourceFile,i)),s=i.kind===276&&OCe(i,t.sourceFile,t.program)?hr.ChangeTracker.with(t,u=>u9(u,t.sourceFile,i.parent.parent.parent)):void 0,l=ca(d9,o,i.kind===276?[f.Use_type_0,((r=i.propertyName)==null?void 0:r.text)??i.name.text]:f.Use_import_type,d9,f.Fix_all_with_type_only_imports);return Et(s)?[i_(d9,s,f.Use_import_type),l]:[l]}},fixIds:[d9],getAllCodeActions:function(t){let r=new Set;return Ss(t,efe,(i,o)=>{let s=wCe(o.file,o.start);s?.kind===272&&!r.has(s)?(u9(i,o.file,s),r.add(s)):s?.kind===276&&!r.has(s.parent.parent.parent)&&OCe(s,o.file,t.program)?(u9(i,o.file,s.parent.parent.parent),r.add(s.parent.parent.parent)):s?.kind===276&&u9(i,o.file,s)})}})}});function FCe(e,t,r,i,o=!1){if(!VS(t))return;let s=c$e(t);if(!s)return;let l=t.parent,{leftSibling:u,rightSibling:p}=l$e(t),g=l.getStart(),m="";!u&&l.comment&&(g=WCe(l,l.getStart(),t.getStart()),m=`${i} */${i}`),u&&(o&&VS(u)?(g=t.getStart(),m=""):(g=WCe(l,u.getStart(),t.getStart()),m=`${i} */${i}`));let b=l.getEnd(),T="";p&&(o&&VS(p)?(b=p.getStart(),T=`${i}${i}`):(b=p.getStart(),T=`${i}/**${i} * `)),e.replaceRange(r,{pos:g,end:b},s,{prefix:m,suffix:T})}function l$e(e){let t=e.parent,r=t.getChildCount()-1,i=t.getChildren().findIndex(l=>l.getStart()===e.getStart()&&l.getEnd()===e.getEnd()),o=i>0?t.getChildAt(i-1):void 0,s=i0;o--)if(!/[*/\s]/g.test(i.substring(o-1,o)))return t+o;return r}function c$e(e){var t;let{typeExpression:r}=e;if(!r)return;let i=(t=e.name)==null?void 0:t.getText();if(i){if(r.kind===329)return u$e(i,r);if(r.kind===316)return d$e(i,r)}}function u$e(e,t){let r=zCe(t);if(Et(r))return k.createInterfaceDeclaration(void 0,e,void 0,void 0,r)}function d$e(e,t){let r=sl(t.type);if(r)return k.createTypeAliasDeclaration(void 0,k.createIdentifier(e),void 0,r)}function zCe(e){let t=e.jsDocPropertyTags;return Et(t)?Vi(t,i=>{var o;let s=p$e(i),l=(o=i.typeExpression)==null?void 0:o.type,u=i.isBracketed,p;if(l&&GS(l)){let g=zCe(l);p=k.createTypeLiteralNode(g)}else l&&(p=sl(l));if(p&&s){let g=u?k.createToken(58):void 0;return k.createPropertySignature(void 0,s,g,p)}}):void 0}function p$e(e){return e.name.kind===80?e.name.text:e.name.right.text}function f$e(e){return Op(e)?Zi(e.jsDoc,t=>{var r;return(r=t.tags)==null?void 0:r.filter(i=>VS(i))}):[]}var f$,tfe,m$e=A({"src/services/codefixes/convertTypedefToType.ts"(){"use strict";ci(),xa(),f$="convertTypedefToType",tfe=[f.JSDoc_typedef_may_be_converted_to_TypeScript_type.code],Aa({fixIds:[f$],errorCodes:tfe,getCodeActions(e){let t=Qv(e.host,e.formatContext.options),r=po(e.sourceFile,e.span.start);if(!r)return;let i=hr.ChangeTracker.with(e,o=>FCe(o,r,e.sourceFile,t));if(i.length>0)return[ca(f$,i,f.Convert_typedef_to_TypeScript_type,f$,f.Convert_all_typedef_to_TypeScript_types)]},getAllCodeActions:e=>Ss(e,tfe,(t,r)=>{let i=Qv(e.host,e.formatContext.options),o=po(r.file,r.start);o&&FCe(t,o,r.file,i,!0)})})}});function BCe(e,t){let r=po(e,t);if(Ve(r)){let i=aa(r.parent.parent,gp),o=r.getText(e);return{container:aa(i.parent,yp),typeNode:i.type,constraint:o,name:o==="K"?"P":"K"}}}function GCe(e,t,{container:r,typeNode:i,constraint:o,name:s}){e.replaceNode(t,r,k.createMappedTypeNode(void 0,k.createTypeParameterDeclaration(void 0,s,k.createTypeReferenceNode(o)),void 0,void 0,i,void 0))}var m$,nfe,_$e=A({"src/services/codefixes/convertLiteralTypeToMappedType.ts"(){"use strict";ci(),xa(),m$="convertLiteralTypeToMappedType",nfe=[f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code],Aa({errorCodes:nfe,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=BCe(r,i.start);if(!o)return;let{name:s,constraint:l}=o,u=hr.ChangeTracker.with(t,p=>GCe(p,r,o));return[ca(m$,u,[f.Convert_0_to_1_in_0,l,s],m$,f.Convert_all_type_literals_to_mapped_type)]},fixIds:[m$],getAllCodeActions:e=>Ss(e,nfe,(t,r)=>{let i=BCe(r.file,r.start);i&&GCe(t,r.file,i)})})}});function VCe(e,t){return C.checkDefined(su(po(e,t)),"There should be a containing class")}function jCe(e){return!e.valueDeclaration||!(cd(e.valueDeclaration)&2)}function UCe(e,t,r,i,o,s){let l=e.program.getTypeChecker(),u=h$e(i,l),p=l.getTypeAtLocation(t),m=l.getPropertiesOfType(p).filter(w8(jCe,N=>!u.has(N.escapedName))),b=l.getTypeAtLocation(i),T=vn(i.members,N=>Pl(N));b.getNumberIndexType()||R(p,1),b.getStringIndexType()||R(p,0);let I=LI(r,e.program,s,e.host);ume(i,m,r,e,s,I,N=>M(r,i,N)),I.writeFixes(o);function R(N,O){let H=l.getIndexInfoOfType(N,O);H&&M(r,i,l.indexInfoToIndexSignatureDeclaration(H,i,void 0,L2(e)))}function M(N,O,H){T?o.insertNodeAfter(N,T,H):o.insertMemberAtStart(N,O,H)}}function h$e(e,t){let r=x_(e);if(!r)return ua();let i=t.getTypeAtLocation(r),o=t.getPropertiesOfType(i);return ua(o.filter(jCe))}var rfe,_$,g$e=A({"src/services/codefixes/fixClassIncorrectlyImplementsInterface.ts"(){"use strict";ci(),xa(),rfe=[f.Class_0_incorrectly_implements_interface_1.code,f.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],_$="fixClassIncorrectlyImplementsInterface",Aa({errorCodes:rfe,getCodeActions(e){let{sourceFile:t,span:r}=e,i=VCe(t,r.start);return Vi(_R(i),o=>{let s=hr.ChangeTracker.with(e,l=>UCe(e,o,t,i,l,e.preferences));return s.length===0?void 0:ca(_$,s,[f.Implement_interface_0,o.getText(t)],_$,f.Implement_all_unimplemented_interfaces)})},fixIds:[_$],getAllCodeActions(e){let t=new Map;return Ss(e,rfe,(r,i)=>{let o=VCe(i.file,i.start);if(xm(t,ss(o)))for(let s of _R(o))UCe(e,s,i.file,o,r,e.preferences)})}})}});function LI(e,t,r,i,o){return HCe(e,t,!1,r,i,o)}function HCe(e,t,r,i,o,s){let l=t.getCompilerOptions(),u=[],p=[],g=new Map,m=new Map;return{addImportFromDiagnostic:b,addImportFromExportedSymbol:T,writeFixes:R,hasFixes:M};function b(N,O){let H=$Ce(O,N.code,N.start,r);!H||!H.length||I(Ha(H))}function T(N,O){let H=C.checkDefined(N.parent),K=xW(N,as(l)),Z=t.getTypeChecker(),V=Z.getMergedSymbol(bu(N,Z)),ue=KCe(e,V,K,H,!1,t,o,i,s),G=g$(e,t),ne=qCe(e,C.checkDefined(ue),t,void 0,!!O,G,o,i);ne&&I({fix:ne,symbolName:K,errorIdentifierText:void 0})}function I(N){var O,H;let{fix:K,symbolName:Z}=N;switch(K.kind){case 0:u.push(K);break;case 1:p.push(K);break;case 2:{let{importClauseOrBindingPattern:ne,importKind:he,addAsTypeOnly:ye}=K,$=String(ss(ne)),Y=g.get($);if(Y||g.set($,Y={importClauseOrBindingPattern:ne,defaultImport:void 0,namedImports:new Map}),he===0){let oe=Y?.namedImports.get(Z);Y.namedImports.set(Z,V(oe,ye))}else C.assert(Y.defaultImport===void 0||Y.defaultImport.name===Z,"(Add to Existing) Default import should be missing or match symbolName"),Y.defaultImport={name:Z,addAsTypeOnly:V((O=Y.defaultImport)==null?void 0:O.addAsTypeOnly,ye)};break}case 3:{let{moduleSpecifier:ne,importKind:he,useRequire:ye,addAsTypeOnly:$}=K,Y=ue(ne,he,ye,$);switch(C.assert(Y.useRequire===ye,"(Add new) Tried to add an `import` and a `require` for the same module"),he){case 1:C.assert(Y.defaultImport===void 0||Y.defaultImport.name===Z,"(Add new) Default import should be missing or match symbolName"),Y.defaultImport={name:Z,addAsTypeOnly:V((H=Y.defaultImport)==null?void 0:H.addAsTypeOnly,$)};break;case 0:let oe=(Y.namedImports||(Y.namedImports=new Map)).get(Z);Y.namedImports.set(Z,V(oe,$));break;case 3:case 2:C.assert(Y.namespaceLikeImport===void 0||Y.namespaceLikeImport.name===Z,"Namespacelike import shoudl be missing or match symbolName"),Y.namespaceLikeImport={importKind:he,name:Z,addAsTypeOnly:$};break}break}case 4:break;default:C.assertNever(K,`fix wasn't never - got kind ${K.kind}`)}function V(ne,he){return Math.max(ne??0,he)}function ue(ne,he,ye,$){let Y=G(ne,!0),oe=G(ne,!1),fe=m.get(Y),Ne=m.get(oe),me={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:ye};return he===1&&$===2?fe||(m.set(Y,me),me):$===1&&(fe||Ne)?fe||Ne:Ne||(m.set(oe,me),me)}function G(ne,he){return`${he?1:0}|${ne}`}}function R(N,O){let H;e.imports.length===0&&O!==void 0?H=O:H=af(e,i);for(let Z of u)lfe(N,e,Z);for(let Z of p)iNe(N,e,Z,H);g.forEach(({importClauseOrBindingPattern:Z,defaultImport:V,namedImports:ue})=>{rNe(N,e,Z,V,Vo(ue.entries(),([G,ne])=>({addAsTypeOnly:ne,name:G})),i)});let K;m.forEach(({useRequire:Z,defaultImport:V,namedImports:ue,namespaceLikeImport:G},ne)=>{let he=ne.slice(2),$=(Z?sNe:aNe)(he,H,V,ue&&Vo(ue.entries(),([Y,oe])=>({addAsTypeOnly:oe,name:Y})),G,l,i);K=Dx(K,$)}),K&&lP(N,e,K,!0,i)}function M(){return u.length>0||p.length>0||g.size>0||m.size>0}}function v$e(e,t,r,i){let o=_P(e,i,r),s=XCe(t.getTypeChecker(),e,t.getCompilerOptions());return{getModuleSpecifierForBestExportInfo:l};function l(u,p,g,m){let{fixes:b,computedWithoutCacheCount:T}=h$(u,p,g,!1,t,e,r,i,s,m),I=QCe(b,e,t,o,r);return I&&{...I,computedWithoutCacheCount:T}}}function y$e(e,t,r,i,o,s,l,u,p,g,m,b){let T;r?(T=bO(i,l,u,m,b).get(i.path,r),C.assertIsDefined(T,"Some exportInfo should match the specified exportMapKey")):(T=IV(em(t.name))?[E$e(e,o,t,u,l)]:KCe(i,e,o,t,s,u,l,m,b),C.assertIsDefined(T,"Some exportInfo should match the specified symbol / moduleSymbol"));let I=g$(i,u),R=_0(po(i,g)),M=C.checkDefined(qCe(i,T,u,g,R,I,l,m));return{moduleSpecifier:M.moduleSpecifier,codeAction:JCe(sfe({host:l,formatContext:p,preferences:m},i,o,M,!1,u,m))}}function b$e(e,t,r,i,o,s){let l=r.getCompilerOptions(),u=nG(afe(e,r.getTypeChecker(),t,l)),p=tNe(e,t,u,r),g=u!==t.text;return p&&JCe(sfe({host:i,formatContext:o,preferences:s},e,u,p,g,r,s))}function qCe(e,t,r,i,o,s,l,u){let p=_P(e,u,l);return QCe(h$(t,i,o,s,r,e,l,u).fixes,e,r,p,l)}function JCe({description:e,changes:t,commands:r}){return{description:e,changes:t,commands:r}}function KCe(e,t,r,i,o,s,l,u,p){let g=YCe(s,l);return bO(e,l,s,u,p).search(e.path,o,m=>m===r,m=>{if(bu(m[0].symbol,g(m[0].isFromPackageJson))===t&&m.some(b=>b.moduleSymbol===i||b.symbol.parent===i))return m})}function E$e(e,t,r,i,o){var s,l;let u=i.getCompilerOptions(),p=m(i.getTypeChecker(),!1);if(p)return p;let g=(l=(s=o.getPackageJsonAutoImportProvider)==null?void 0:s.call(o))==null?void 0:l.getTypeChecker();return C.checkDefined(g&&m(g,!0),"Could not find symbol in specified module for code actions");function m(b,T){let I=LW(r,b,u);if(I&&bu(I.symbol,b)===e)return{symbol:I.symbol,moduleSymbol:r,moduleFileName:void 0,exportKind:I.exportKind,targetFlags:bu(e,b).flags,isFromPackageJson:T};let R=b.tryGetMemberInModuleExportsAndProperties(t,r);if(R&&bu(R,b)===e)return{symbol:R,moduleSymbol:r,moduleFileName:void 0,exportKind:0,targetFlags:bu(e,b).flags,isFromPackageJson:T}}}function h$(e,t,r,i,o,s,l,u,p=XCe(o.getTypeChecker(),s,o.getCompilerOptions()),g){let m=o.getTypeChecker(),b=Zi(e,p.getImportsForExportInfo),T=t!==void 0&&S$e(b,t),I=A$e(b,r,m,o.getCompilerOptions());if(I)return{computedWithoutCacheCount:0,fixes:[...T?[T]:et,I]};let{fixes:R,computedWithoutCacheCount:M=0}=x$e(e,b,o,s,t,r,i,l,u,g);return{computedWithoutCacheCount:M,fixes:[...T?[T]:et,...R]}}function S$e(e,t){return Zt(e,({declaration:r,importKind:i})=>{var o;if(i!==0)return;let s=T$e(r),l=s&&((o=cR(r))==null?void 0:o.text);if(l)return{kind:0,namespacePrefix:s,usagePosition:t,moduleSpecifier:l}})}function T$e(e){var t,r,i;switch(e.kind){case 260:return(t=ai(e.name,Ve))==null?void 0:t.text;case 271:return e.name.text;case 272:return(i=ai((r=e.importClause)==null?void 0:r.namedBindings,Zy))==null?void 0:i.name.text;default:return C.assertNever(e)}}function ife(e,t,r,i,o,s){return e?t&&s.importsNotUsedAsValues===2||EU(s)&&(!(i&111551)||o.getTypeOnlyAliasDeclaration(r))?2:1:4}function A$e(e,t,r,i){let o;for(let l of e){let u=s(l);if(!u)continue;let p=sL(u.importClauseOrBindingPattern);if(u.addAsTypeOnly!==4&&p||u.addAsTypeOnly===4&&!p)return u;o??(o=u)}return o;function s({declaration:l,importKind:u,symbol:p,targetFlags:g}){if(u===3||u===2||l.kind===271)return;if(l.kind===260)return(u===0||u===1)&&l.name.kind===206?{kind:2,importClauseOrBindingPattern:l.name,importKind:u,moduleSpecifier:l.initializer.arguments[0].text,addAsTypeOnly:4}:void 0;let{importClause:m}=l;if(!m||!us(l.moduleSpecifier))return;let{name:b,namedBindings:T}=m;if(m.isTypeOnly&&!(u===0&&T))return;let I=ife(t,!1,p,g,r,i);if(!(u===1&&(b||I===2&&T))&&!(u===0&&T?.kind===274))return{kind:2,importClauseOrBindingPattern:m,importKind:u,moduleSpecifier:l.moduleSpecifier.text,addAsTypeOnly:I}}}function XCe(e,t,r){let i;for(let o of t.imports){let s=CC(o);if(a3(s.parent)){let l=e.resolveExternalModuleName(o);l&&(i||(i=Xp())).add(Ta(l),s.parent)}else if(s.kind===272||s.kind===271){let l=e.getSymbolAtLocation(o);l&&(i||(i=Xp())).add(Ta(l),s)}}return{getImportsForExportInfo:({moduleSymbol:o,exportKind:s,targetFlags:l,symbol:u})=>{if(!(l&111551)&&ld(t))return et;let p=i?.get(Ta(o));if(!p)return et;let g=ofe(t,s,r);return p.map(m=>({declaration:m,importKind:g,symbol:u,targetFlags:l}))}}}function g$(e,t){if(!ld(e))return!1;if(e.commonJsModuleIndicator&&!e.externalModuleIndicator)return!0;if(e.externalModuleIndicator&&!e.commonJsModuleIndicator)return!1;let r=t.getCompilerOptions();if(r.configFile)return ku(r)<5;if(e.impliedNodeFormat===1)return!0;if(e.impliedNodeFormat===99)return!1;for(let i of t.getSourceFiles())if(!(i===e||!ld(i)||t.isSourceFileFromExternalLibrary(i))){if(i.commonJsModuleIndicator&&!i.externalModuleIndicator)return!0;if(i.externalModuleIndicator&&!i.commonJsModuleIndicator)return!1}return!0}function YCe(e,t){return ch(r=>r?t.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker())}function I$e(e,t,r,i,o,s,l,u,p){let g=ld(t),m=e.getCompilerOptions(),b=ZS(e,l),T=YCe(e,l),I=dd(m),R=lW(I),M=p?H=>({moduleSpecifiers:nE.tryGetModuleSpecifiersFromCache(H,t,b,u),computedWithoutCache:!1}):(H,K)=>nE.getModuleSpecifiersWithCacheInfo(H,K,m,t,b,u,void 0,!0),N=0,O=Zi(s,(H,K)=>{let Z=T(H.isFromPackageJson),{computedWithoutCache:V,moduleSpecifiers:ue}=M(H.moduleSymbol,Z),G=!!(H.targetFlags&111551),ne=ife(i,!0,H.symbol,H.targetFlags,Z,m);return N+=V?1:0,Vi(ue,he=>{var ye;if(R&&I0(he))return;if(!G&&g&&r!==void 0)return{kind:1,moduleSpecifier:he,usagePosition:r,exportInfo:H,isReExport:K>0};let $=ofe(t,H.exportKind,m),Y;if(r!==void 0&&$===3&&H.exportKind===0){let oe=Z.resolveExternalModuleSymbol(H.moduleSymbol),fe;oe!==H.moduleSymbol&&(fe=(ye=kW(oe,Z,m))==null?void 0:ye.name),fe||(fe=ufe(H.moduleSymbol,as(m),!1)),Y={namespacePrefix:fe,usagePosition:r}}return{kind:3,moduleSpecifier:he,importKind:$,useRequire:o,addAsTypeOnly:ne,exportInfo:H,isReExport:K>0,qualification:Y}})});return{computedWithoutCacheCount:N,fixes:O}}function x$e(e,t,r,i,o,s,l,u,p,g){let m=Zt(t,b=>R$e(b,s,l,r.getTypeChecker(),r.getCompilerOptions()));return m?{fixes:[m]}:I$e(r,i,o,s,l,e,u,p,g)}function R$e({declaration:e,importKind:t,symbol:r,targetFlags:i},o,s,l,u){var p;let g=(p=cR(e))==null?void 0:p.text;if(g){let m=s?4:ife(o,!0,r,i,l,u);return{kind:3,moduleSpecifier:g,importKind:t,addAsTypeOnly:m,useRequire:s}}}function $Ce(e,t,r,i){let o=po(e.sourceFile,r),s;if(t===f._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)s=P$e(e,o);else if(Ve(o))if(t===f._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){let u=nG(afe(e.sourceFile,e.program.getTypeChecker(),o,e.program.getCompilerOptions())),p=tNe(e.sourceFile,o,u,e.program);return p&&[{fix:p,symbolName:u,errorIdentifierText:o.text}]}else s=k$e(e,o,i);else return;let l=_P(e.sourceFile,e.preferences,e.host);return s&&D$e(s,e.sourceFile,e.program,l,e.host)}function D$e(e,t,r,i,o){let s=l=>rl(l,o.getCurrentDirectory(),Wv(o));return nS(e,(l,u)=>Ay(!!l.isJsxNamespaceFix,!!u.isJsxNamespaceFix)||tl(l.fix.kind,u.fix.kind)||ZCe(l.fix,u.fix,t,r,i.allowsImportingSpecifier,s))}function QCe(e,t,r,i,o){if(Et(e))return e[0].kind===0||e[0].kind===2?e[0]:e.reduce((s,l)=>ZCe(l,s,t,r,i.allowsImportingSpecifier,u=>rl(u,o.getCurrentDirectory(),Wv(o)))===-1?l:s)}function ZCe(e,t,r,i,o,s){return e.kind!==0&&t.kind!==0?Ay(o(t.moduleSpecifier),o(e.moduleSpecifier))||N$e(e.moduleSpecifier,t.moduleSpecifier,r,i)||Ay(eNe(e,r,i.getCompilerOptions(),s),eNe(t,r,i.getCompilerOptions(),s))||mk(e.moduleSpecifier,t.moduleSpecifier):0}function eNe(e,t,r,i){var o;if(e.isReExport&&((o=e.exportInfo)!=null&&o.moduleFileName)&&C$e(e.exportInfo.moduleFileName)){let s=i(li(e.exportInfo.moduleFileName));return uo(t.path,s)}return!1}function C$e(e){return rc(e,[".js",".jsx",".d.ts",".ts",".tsx"],!0)==="index"}function N$e(e,t,r,i){return uo(e,"node:")&&!uo(t,"node:")?DW(r,i)?-1:1:uo(t,"node:")&&!uo(e,"node:")?DW(r,i)?1:-1:0}function P$e({sourceFile:e,program:t,host:r,preferences:i},o){let s=t.getTypeChecker(),l=M$e(o,s);if(!l)return;let u=s.getAliasedSymbol(l),p=l.name,g=[{symbol:l,moduleSymbol:u,moduleFileName:void 0,exportKind:3,targetFlags:u.flags,isFromPackageJson:!1}],m=g$(e,t);return h$(g,void 0,!1,m,t,e,r,i).fixes.map(T=>{var I;return{fix:T,symbolName:p,errorIdentifierText:(I=ai(o,Ve))==null?void 0:I.text}})}function M$e(e,t){let r=Ve(e)?t.getSymbolAtLocation(e):void 0;if(k3(r))return r;let{parent:i}=e;if(sd(i)&&i.tagName===e||dI(i)){let o=t.resolveName(t.getJsxNamespace(i),sd(i)?e:i,111551,!1);if(k3(o))return o}}function ofe(e,t,r,i){if(r.verbatimModuleSyntax&&(ku(r)===1||e.impliedNodeFormat===1))return 3;switch(t){case 0:return 0;case 1:return 1;case 2:return F$e(e,r,!!i);case 3:return L$e(e,r,!!i);default:return C.assertNever(t)}}function L$e(e,t,r){if(NS(t))return 1;let i=ku(t);switch(i){case 2:case 1:case 3:return cr(e)&&(ac(e)||r)?2:3;case 4:case 5:case 6:case 7:case 99:case 0:case 200:return 2;case 100:case 199:return e.impliedNodeFormat===99?2:3;default:return C.assertNever(i,`Unexpected moduleKind ${i}`)}}function k$e({sourceFile:e,program:t,cancellationToken:r,host:i,preferences:o},s,l){let u=t.getTypeChecker(),p=t.getCompilerOptions();return Zi(afe(e,u,s,p),g=>{if(g==="default")return;let m=_0(s),b=g$(e,t),T=O$e(g,aR(s),$S(s),r,e,t,l,i,o);return Vo(qf(T.values(),I=>h$(I,s.getStart(e),m,b,t,e,i,o).fixes),I=>({fix:I,symbolName:g,errorIdentifierText:s.text,isJsxNamespaceFix:g!==s.text}))})}function tNe(e,t,r,i){let o=i.getTypeChecker(),s=o.resolveName(r,t,111551,!0);if(!s)return;let l=o.getTypeOnlyAliasDeclaration(s);if(!(!l||Vn(l)!==e))return{kind:4,typeOnlyAliasDeclaration:l}}function afe(e,t,r,i){let o=r.parent;if((sd(o)||K1(o))&&o.tagName===r&&MX(i.jsx)){let s=t.getJsxNamespace(e);if(w$e(s,r,t))return!yR(r.text)&&!t.resolveName(r.text,r,111551,!1)?[r.text,s]:[s]}return[r.text]}function w$e(e,t,r){if(yR(t.text))return!0;let i=r.resolveName(e,t,111551,!0);return!i||Et(i.declarations,a0)&&!(i.flags&111551)}function O$e(e,t,r,i,o,s,l,u,p){var g;let m=Xp(),b=_P(o,p,u),T=(g=u.getModuleSpecifierCache)==null?void 0:g.call(u),I=ch(M=>ZS(M?u.getPackageJsonAutoImportProvider():s,u));function R(M,N,O,H,K,Z){let V=I(Z);if(N&&zX(K,o,N,p,b,V,T)||!N&&b.allowsImportingAmbientModule(M,V)){let ue=K.getTypeChecker();m.add(jue(O,ue).toString(),{symbol:O,moduleSymbol:M,moduleFileName:N?.fileName,exportKind:H,targetFlags:bu(O,ue).flags,isFromPackageJson:Z})}}return BX(s,u,p,l,(M,N,O,H)=>{let K=O.getTypeChecker();i.throwIfCancellationRequested();let Z=O.getCompilerOptions(),V=LW(M,K,Z);V&&(V.name===e||ufe(M,as(Z),t)===e)&&cNe(V.resolvedSymbol,r)&&R(M,N,V.symbol,V.exportKind,O,H);let ue=K.tryGetMemberInModuleExportsAndProperties(e,M);ue&&cNe(ue,r)&&R(M,N,ue,0,O,H)}),m}function F$e(e,t,r){let i=NS(t),o=cr(e);if(!o&&ku(t)>=5)return i?1:2;if(o)return ac(e)||r?i?1:2:3;for(let s of e.statements)if(tu(s)&&!Fl(s.moduleReference))return 3;return i?1:3}function sfe(e,t,r,i,o,s,l){let u,p=hr.ChangeTracker.with(e,g=>{u=W$e(g,t,r,i,o,s,l)});return ca(pfe,p,u,ffe,f.Add_all_missing_imports)}function W$e(e,t,r,i,o,s,l){let u=af(t,l);switch(i.kind){case 0:return lfe(e,t,i),[f.Change_0_to_1,r,`${i.namespacePrefix}.${r}`];case 1:return iNe(e,t,i,u),[f.Change_0_to_1,r,oNe(i.moduleSpecifier,u)+r];case 2:{let{importClauseOrBindingPattern:p,importKind:g,addAsTypeOnly:m,moduleSpecifier:b}=i;rNe(e,t,p,g===1?{name:r,addAsTypeOnly:m}:void 0,g===0?[{name:r,addAsTypeOnly:m}]:et,l);let T=em(b);return o?[f.Import_0_from_1,r,T]:[f.Update_import_from_0,T]}case 3:{let{importKind:p,moduleSpecifier:g,addAsTypeOnly:m,useRequire:b,qualification:T}=i,I=b?sNe:aNe,R=p===1?{name:r,addAsTypeOnly:m}:void 0,M=p===0?[{name:r,addAsTypeOnly:m}]:void 0,N=p===2||p===3?{importKind:p,name:T?.namespacePrefix||r,addAsTypeOnly:m}:void 0;return lP(e,t,I(g,u,R,M,N,s.getCompilerOptions(),l),!0,l),T&&lfe(e,t,T),o?[f.Import_0_from_1,r,g]:[f.Add_import_from_0,g]}case 4:{let{typeOnlyAliasDeclaration:p}=i,g=z$e(e,p,s,t,l);return g.kind===276?[f.Remove_type_from_import_of_0_from_1,r,nNe(g.parent.parent)]:[f.Remove_type_from_import_declaration_from_0,nNe(g)]}default:return C.assertNever(i,`Unexpected fix kind ${i.kind}`)}}function nNe(e){var t,r;return e.kind===271?((r=ai((t=ai(e.moduleReference,Th))==null?void 0:t.expression,us))==null?void 0:r.text)||e.moduleReference.getText():aa(e.parent.moduleSpecifier,Na).text}function z$e(e,t,r,i,o){let s=r.getCompilerOptions(),l=EU(s);switch(t.kind){case 276:if(t.isTypeOnly){let p=Mm.detectImportSpecifierSorting(t.parent.elements,o);if(t.parent.elements.length>1&&p){let g=k.updateImportSpecifier(t,!1,t.propertyName,t.name),m=Mm.getOrganizeImportsComparer(o,p===2),b=Mm.getImportSpecifierInsertionIndex(t.parent.elements,g,m,o);if(b!==t.parent.elements.indexOf(t))return e.delete(i,t),e.insertImportSpecifierAtIndex(i,g,t.parent,b),t}return e.deleteRange(i,{pos:s0(t.getFirstToken()),end:s0(t.propertyName??t.name)}),t}else return C.assert(t.parent.parent.isTypeOnly),u(t.parent.parent),t.parent.parent;case 273:return u(t),t;case 274:return u(t.parent),t.parent;case 271:return e.deleteRange(i,t.getChildAt(1)),t;default:C.failBadSyntaxKind(t)}function u(p){var g;if(e.delete(i,cX(p,i)),!s.allowImportingTsExtensions){let m=cR(p.parent),b=m&&((g=r.getResolvedModuleFromModuleSpecifier(m))==null?void 0:g.resolvedModule);if(b?.resolvedUsingTsExtension){let T=jM(m.text,aF(m.text,s));e.replaceNode(i,m,k.createStringLiteral(T))}}if(l){let m=ai(p.namedBindings,jg);if(m&&m.elements.length>1){Mm.detectImportSpecifierSorting(m.elements,o)&&t.kind===276&&m.elements.indexOf(t)!==0&&(e.delete(i,t),e.insertImportSpecifierAtIndex(i,t,m,0));for(let b of m.elements)b!==t&&!b.isTypeOnly&&e.insertModifierBefore(i,156,b)}}}}function rNe(e,t,r,i,o,s){var l;if(r.kind===206){i&&g(r,i.name,"default");for(let m of o)g(r,m.name,void 0);return}let u=r.isTypeOnly&&Et([i,...o],m=>m?.addAsTypeOnly===4),p=r.namedBindings&&((l=ai(r.namedBindings,jg))==null?void 0:l.elements);if(i&&(C.assert(!r.name,"Cannot add a default import to an import clause that already has one"),e.insertNodeAt(t,r.getStart(t),k.createIdentifier(i.name),{suffix:", "})),o.length){let m;if(typeof s.organizeImportsIgnoreCase=="boolean")m=s.organizeImportsIgnoreCase;else if(p){let R=Mm.detectImportSpecifierSorting(p,s);R!==3&&(m=R===2)}m===void 0&&(m=Mm.detectSorting(t,s)===2);let b=Mm.getOrganizeImportsComparer(s,m),T=Iv(o.map(R=>k.createImportSpecifier((!r.isTypeOnly||u)&&v$(R,s),void 0,k.createIdentifier(R.name))),(R,M)=>Mm.compareImportOrExportSpecifiers(R,M,b)),I=p?.length&&Mm.detectImportSpecifierSorting(p,s);if(I&&!(m&&I===1))for(let R of T){let M=u&&!R.isTypeOnly?0:Mm.getImportSpecifierInsertionIndex(p,R,b,s);e.insertImportSpecifierAtIndex(t,R,r.namedBindings,M)}else if(p?.length)for(let R of T)e.insertNodeInListAfter(t,Ya(p),R,p);else if(T.length){let R=k.createNamedImports(T);r.namedBindings?e.replaceNode(t,r.namedBindings,R):e.insertNodeAfter(t,C.checkDefined(r.name,"Import clause must have either named imports or a default import"),R)}}if(u&&(e.delete(t,cX(r,t)),p))for(let m of p)e.insertModifierBefore(t,156,m);function g(m,b,T){let I=k.createBindingElement(void 0,T,b);m.elements.length?e.insertNodeInListAfter(t,Ya(m.elements),I):e.replaceNode(t,m,k.createObjectBindingPattern([I]))}}function lfe(e,t,{namespacePrefix:r,usagePosition:i}){e.insertText(t,i,r+".")}function iNe(e,t,{moduleSpecifier:r,usagePosition:i},o){e.insertText(t,i,oNe(r,o))}function oNe(e,t){let r=lX(t);return`import(${r}${e}${r}).`}function cfe({addAsTypeOnly:e}){return e===2}function v$(e,t){return cfe(e)||!!t.preferTypeOnlyAutoImports&&e.addAsTypeOnly!==4}function aNe(e,t,r,i,o,s,l){let u=RI(e,t),p;if(r!==void 0||i?.length){let g=(!r||cfe(r))&&Jn(i,cfe)||(s.verbatimModuleSyntax||l.preferTypeOnlyAutoImports)&&r?.addAsTypeOnly!==4&&!Et(i,m=>m.addAsTypeOnly===4);p=Dx(p,$v(r&&k.createIdentifier(r.name),i?.map(m=>k.createImportSpecifier(!g&&v$(m,l),void 0,k.createIdentifier(m.name))),e,t,g))}if(o){let g=o.importKind===3?k.createImportEqualsDeclaration(void 0,v$(o,l),k.createIdentifier(o.name),k.createExternalModuleReference(u)):k.createImportDeclaration(void 0,k.createImportClause(v$(o,l),void 0,k.createNamespaceImport(k.createIdentifier(o.name))),u,void 0);p=Dx(p,g)}return C.checkDefined(p)}function sNe(e,t,r,i,o){let s=RI(e,t),l;if(r||i?.length){let u=i?.map(({name:g})=>k.createBindingElement(void 0,void 0,g))||[];r&&u.unshift(k.createBindingElement(void 0,"default",r.name));let p=lNe(k.createObjectBindingPattern(u),s);l=Dx(l,p)}if(o){let u=lNe(o.name,s);l=Dx(l,u)}return C.checkDefined(l)}function lNe(e,t){return k.createVariableStatement(void 0,k.createVariableDeclarationList([k.createVariableDeclaration(typeof e=="string"?k.createIdentifier(e):e,void 0,void 0,k.createCallExpression(k.createIdentifier("require"),void 0,[t]))],2))}function cNe({declarations:e},t){return Et(e,r=>!!(Yw(r)&t))}function ufe(e,t,r){return dfe(Td(em(e.name)),t,r)}function dfe(e,t,r){let i=rc(Px(e,"/index")),o="",s=!0,l=i.charCodeAt(0);Xh(l,t)?(o+=String.fromCharCode(l),r&&(o=o.toUpperCase())):s=!1;for(let u=1;usfe(e,i,p,u,p!==g,s,r))},fixIds:[ffe],getAllCodeActions:e=>{let{sourceFile:t,program:r,preferences:i,host:o,cancellationToken:s}=e,l=HCe(t,r,!0,i,o,s);return P2(e,mfe,u=>l.addImportFromDiagnostic(u,e)),N2(hr.ChangeTracker.with(e,l.writeFixes))}})}});function uNe(e,t,r){let i=vn(e.getSemanticDiagnostics(t),l=>l.start===r.start&&l.length===r.length);if(i===void 0||i.relatedInformation===void 0)return;let o=vn(i.relatedInformation,l=>l.code===f.This_type_parameter_might_need_an_extends_0_constraint.code);if(o===void 0||o.file===void 0||o.start===void 0||o.length===void 0)return;let s=gme(o.file,vu(o.start,o.length));if(s!==void 0&&(Ve(s)&&_l(s.parent)&&(s=s.parent),_l(s))){if(WR(s.parent))return;let l=po(t,r.start),u=e.getTypeChecker();return{constraint:V$e(u,l)||G$e(o.messageText),declaration:s,token:l}}}function dNe(e,t,r,i,o,s){let{declaration:l,constraint:u}=s,p=t.getTypeChecker();if(wo(u))e.insertText(o,l.name.end,` extends ${u}`);else{let g=as(t.getCompilerOptions()),m=L2({program:t,host:i}),b=LI(o,t,r,i),T=nQ(p,b,u,void 0,g,void 0,m);T&&(e.replaceNode(o,l,k.updateTypeParameterDeclaration(l,void 0,l.name,T,l.default)),b.writeFixes(e))}}function G$e(e){let[,t]=W_(e,` +`,0).match(/`extends (.*)`/)||[];return t}function V$e(e,t){return qi(t.parent)?e.getTypeArgumentConstraint(t.parent):(bt(t)?e.getContextualType(t):void 0)||e.getTypeAtLocation(t)}var y$,_fe,j$e=A({"src/services/codefixes/fixAddMissingConstraint.ts"(){"use strict";ci(),xa(),y$="addMissingConstraint",_fe=[f.Type_0_is_not_comparable_to_type_1.code,f.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,f.Type_0_is_not_assignable_to_type_1.code,f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,f.Property_0_is_incompatible_with_index_signature.code,f.Property_0_in_type_1_is_not_assignable_to_type_2.code,f.Type_0_does_not_satisfy_the_constraint_1.code],Aa({errorCodes:_fe,getCodeActions(e){let{sourceFile:t,span:r,program:i,preferences:o,host:s}=e,l=uNe(i,t,r);if(l===void 0)return;let u=hr.ChangeTracker.with(e,p=>dNe(p,i,o,s,t,l));return[ca(y$,u,f.Add_extends_constraint,y$,f.Add_extends_constraint_to_all_type_parameters)]},fixIds:[y$],getAllCodeActions:e=>{let{program:t,preferences:r,host:i}=e,o=new Map;return N2(hr.ChangeTracker.with(e,s=>{P2(e,_fe,l=>{let u=uNe(t,l.file,vu(l.start,l.length));if(u&&xm(o,ss(u.declaration)))return dNe(s,t,r,i,l.file,u)})}))}})}});function pNe(e,t,r,i){switch(r){case f.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case f.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case f.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case f.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case f.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return U$e(e,t.sourceFile,i);case f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case f.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return H$e(e,t.sourceFile,i);default:C.fail("Unexpected error code: "+r)}}function U$e(e,t,r){let i=mNe(t,r);if(ld(t)){e.addJSDocTags(t,i,[k.createJSDocOverrideTag(k.createIdentifier("override"))]);return}let o=i.modifiers||et,s=vn(o,tI),l=vn(o,Iae),u=vn(o,b=>QK(b.kind)),p=Qr(o,Eu),g=l?l.end:s?s.end:u?u.end:p?La(t.text,p.end):i.getStart(t),m=u||s||l?{prefix:" "}:{suffix:" "};e.insertModifierAt(t,g,164,m)}function H$e(e,t,r){let i=mNe(t,r);if(ld(t)){e.filterJSDocTags(t,i,O8(i5));return}let o=vn(i.modifiers,xae);C.assertIsDefined(o),e.deleteModifier(t,o)}function fNe(e){switch(e.kind){case 176:case 172:case 174:case 177:case 178:return!0;case 169:return pp(e,e.parent);default:return!1}}function mNe(e,t){let r=po(e,t),i=zn(r,o=>pi(o)?"quit":fNe(o));return C.assert(i&&fNe(i)),i}var hfe,EP,VO,gfe,vfe,q$e=A({"src/services/codefixes/fixOverrideModifier.ts"(){"use strict";ci(),xa(),hfe="fixOverrideModifier",EP="fixAddOverrideModifier",VO="fixRemoveOverrideModifier",gfe=[f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,f.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,f.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,f.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,f.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,f.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,f.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],vfe={[f.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:f.Add_override_modifier,fixId:EP,fixAllDescriptions:f.Add_all_missing_override_modifiers},[f.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:f.Add_override_modifier,fixId:EP,fixAllDescriptions:f.Add_all_missing_override_modifiers},[f.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:f.Remove_override_modifier,fixId:VO,fixAllDescriptions:f.Remove_all_unnecessary_override_modifiers},[f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:f.Remove_override_modifier,fixId:VO,fixAllDescriptions:f.Remove_override_modifier},[f.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:f.Add_override_modifier,fixId:EP,fixAllDescriptions:f.Add_all_missing_override_modifiers},[f.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:f.Add_override_modifier,fixId:EP,fixAllDescriptions:f.Add_all_missing_override_modifiers},[f.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:f.Add_override_modifier,fixId:EP,fixAllDescriptions:f.Remove_all_unnecessary_override_modifiers},[f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:f.Remove_override_modifier,fixId:VO,fixAllDescriptions:f.Remove_all_unnecessary_override_modifiers},[f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:f.Remove_override_modifier,fixId:VO,fixAllDescriptions:f.Remove_all_unnecessary_override_modifiers}},Aa({errorCodes:gfe,getCodeActions:function(t){let{errorCode:r,span:i}=t,o=vfe[r];if(!o)return et;let{descriptions:s,fixId:l,fixAllDescriptions:u}=o,p=hr.ChangeTracker.with(t,g=>pNe(g,t,r,i.start));return[Npe(hfe,p,s,l,u)]},fixIds:[hfe,EP,VO],getAllCodeActions:e=>Ss(e,gfe,(t,r)=>{let{code:i,start:o}=r,s=vfe[i];!s||s.fixId!==e.fixId||pNe(t,e,i,o)})})}});function _Ne(e,t,r,i){let o=af(t,i),s=k.createStringLiteral(r.name.text,o===0);e.replaceNode(t,r,y6(r)?k.createElementAccessChain(r.expression,r.questionDotToken,s):k.createElementAccessExpression(r.expression,s))}function hNe(e,t){return aa(po(e,t).parent,zr)}var b$,yfe,J$e=A({"src/services/codefixes/fixNoPropertyAccessFromIndexSignature.ts"(){"use strict";ci(),xa(),b$="fixNoPropertyAccessFromIndexSignature",yfe=[f.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code],Aa({errorCodes:yfe,fixIds:[b$],getCodeActions(e){let{sourceFile:t,span:r,preferences:i}=e,o=hNe(t,r.start),s=hr.ChangeTracker.with(e,l=>_Ne(l,e.sourceFile,o,i));return[ca(b$,s,[f.Use_element_access_for_0,o.name.text],b$,f.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>Ss(e,yfe,(t,r)=>_Ne(t,r.file,hNe(r.file,r.start),e.preferences))})}});function gNe(e,t,r,i){let o=po(t,r);if(!h2(o))return;let s=wd(o,!1,!1);if(!(!Sc(s)&&!ws(s))&&!no(wd(s,!1,!1))){let l=C.checkDefined(bs(s,100,t)),{name:u}=s,p=C.checkDefined(s.body);return ws(s)?u&&Os.Core.isSymbolReferencedInFile(u,i,t,p)?void 0:(e.delete(t,l),u&&e.delete(t,u),e.insertText(t,p.pos," =>"),[f.Convert_function_expression_0_to_arrow_function,u?u.text:MW]):(e.replaceNode(t,l,k.createToken(87)),e.insertText(t,u.end," = "),e.insertText(t,p.pos," =>"),[f.Convert_function_declaration_0_to_arrow_function,u.text])}}var E$,bfe,K$e=A({"src/services/codefixes/fixImplicitThis.ts"(){"use strict";ci(),xa(),E$="fixImplicitThis",bfe=[f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],Aa({errorCodes:bfe,getCodeActions:function(t){let{sourceFile:r,program:i,span:o}=t,s,l=hr.ChangeTracker.with(t,u=>{s=gNe(u,r,o.start,i.getTypeChecker())});return s?[ca(E$,l,s,E$,f.Fix_all_implicit_this_errors)]:et},fixIds:[E$],getAllCodeActions:e=>Ss(e,bfe,(t,r)=>{gNe(t,r.file,r.start,e.program.getTypeChecker())})})}});function vNe(e,t,r){var i,o;let s=po(e,t);if(Ve(s)){let l=zn(s,Lc);if(l===void 0)return;let u=Na(l.moduleSpecifier)?l.moduleSpecifier:void 0;if(u===void 0)return;let p=(i=r.getResolvedModuleFromModuleSpecifier(u))==null?void 0:i.resolvedModule;if(p===void 0)return;let g=r.getSourceFile(p.resolvedFileName);if(g===void 0||T2(r,g))return;let m=g.symbol,b=(o=ai(m.valueDeclaration,ph))==null?void 0:o.locals;if(b===void 0)return;let T=b.get(s.escapedText);if(T===void 0)return;let I=Y$e(T);return I===void 0?void 0:{exportName:{node:s,isTypeOnly:PR(I)},node:I,moduleSourceFile:g,moduleSpecifier:u.text}}}function X$e(e,t,{exportName:r,node:i,moduleSourceFile:o}){let s=S$(o,r.isTypeOnly);s?yNe(e,t,o,s,[r]):gk(i)?e.insertExportModifier(o,i):bNe(e,t,o,[r])}function Efe(e,t,r,i,o){De(i)&&(o?yNe(e,t,r,o,i):bNe(e,t,r,i))}function S$(e,t){let r=i=>Kl(i)&&(t&&i.isTypeOnly||!i.isTypeOnly);return Qr(e.statements,r)}function yNe(e,t,r,i,o){let s=i.exportClause&&Df(i.exportClause)?i.exportClause.elements:k.createNodeArray([]),l=!i.isTypeOnly&&!!(im(t.getCompilerOptions())||vn(s,u=>u.isTypeOnly));e.replaceNode(r,i,k.updateExportDeclaration(i,i.modifiers,i.isTypeOnly,k.createNamedExports(k.createNodeArray([...s,...ENe(o,l)],s.hasTrailingComma)),i.moduleSpecifier,i.attributes))}function bNe(e,t,r,i){e.insertNodeAtEndOfScope(r,r,k.createExportDeclaration(void 0,!1,k.createNamedExports(ENe(i,im(t.getCompilerOptions()))),void 0,void 0))}function ENe(e,t){return k.createNodeArray(Ft(e,r=>k.createExportSpecifier(t&&r.isTypeOnly,void 0,r.node)))}function Y$e(e){if(e.valueDeclaration===void 0)return Xc(e.declarations);let t=e.valueDeclaration,r=Oi(t)?ai(t.parent.parent,Ml):void 0;return r&&De(r.declarationList.declarations)===1?r:t}var T$,Sfe,$$e=A({"src/services/codefixes/fixImportNonExportedMember.ts"(){"use strict";ci(),xa(),T$="fixImportNonExportedMember",Sfe=[f.Module_0_declares_1_locally_but_it_is_not_exported.code],Aa({errorCodes:Sfe,fixIds:[T$],getCodeActions(e){let{sourceFile:t,span:r,program:i}=e,o=vNe(t,r.start,i);if(o===void 0)return;let s=hr.ChangeTracker.with(e,l=>X$e(l,i,o));return[ca(T$,s,[f.Export_0_from_module_1,o.exportName.node.text,o.moduleSpecifier],T$,f.Export_all_referenced_locals)]},getAllCodeActions(e){let{program:t}=e;return N2(hr.ChangeTracker.with(e,r=>{let i=new Map;P2(e,Sfe,o=>{let s=vNe(o.file,o.start,t);if(s===void 0)return;let{exportName:l,node:u,moduleSourceFile:p}=s;if(S$(p,l.isTypeOnly)===void 0&&gk(u))r.insertExportModifier(p,u);else{let g=i.get(p)||{typeOnlyExports:[],exports:[]};l.isTypeOnly?g.typeOnlyExports.push(l):g.exports.push(l),i.set(p,g)}}),i.forEach((o,s)=>{let l=S$(s,!0);l&&l.isTypeOnly?(Efe(r,t,s,o.typeOnlyExports,l),Efe(r,t,s,o.exports,S$(s,!1))):Efe(r,t,s,[...o.exports,...o.typeOnlyExports],l)})}))}})}});function Q$e(e,t){let r=po(e,t);return zn(r,i=>i.kind===202)}function Z$e(e,t,r){if(!r)return;let i=r.type,o=!1,s=!1;for(;i.kind===190||i.kind===191||i.kind===196;)i.kind===190?o=!0:i.kind===191&&(s=!0),i=i.type;let l=k.updateNamedTupleMember(r,r.dotDotDotToken||(s?k.createToken(26):void 0),r.name,r.questionToken||(o?k.createToken(58):void 0),i);l!==r&&e.replaceNode(t,r,l)}var A$,SNe,eQe=A({"src/services/codefixes/fixIncorrectNamedTupleSyntax.ts"(){"use strict";ci(),xa(),A$="fixIncorrectNamedTupleSyntax",SNe=[f.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,f.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],Aa({errorCodes:SNe,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=Q$e(r,i.start),s=hr.ChangeTracker.with(t,l=>Z$e(l,r,o));return[ca(A$,s,f.Move_labeled_tuple_element_modifiers_to_labels,A$,f.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[A$]})}});function TNe(e,t,r,i){let o=po(e,t),s=o.parent;if((i===f.No_overload_matches_this_call.code||i===f.Type_0_is_not_assignable_to_type_1.code)&&!O_(s))return;let l=r.program.getTypeChecker(),u;if(zr(s)&&s.name===o){C.assert(Yh(o),"Expected an identifier for spelling (property access)");let p=l.getTypeAtLocation(s.expression);s.flags&64&&(p=l.getNonNullableType(p)),u=l.getSuggestedSymbolForNonexistentProperty(o,p)}else if(_r(s)&&s.operatorToken.kind===103&&s.left===o&&Xi(o)){let p=l.getTypeAtLocation(s.right);u=l.getSuggestedSymbolForNonexistentProperty(o,p)}else if(Ad(s)&&s.right===o){let p=l.getSymbolAtLocation(s.left);p&&p.flags&1536&&(u=l.getSuggestedSymbolForNonexistentModule(s.right,p))}else if(tp(s)&&s.name===o){C.assertNode(o,Ve,"Expected an identifier for spelling (import)");let p=zn(o,Lc),g=nQe(r,p);g&&g.symbol&&(u=l.getSuggestedSymbolForNonexistentModule(o,g.symbol))}else if(O_(s)&&s.name===o){C.assertNode(o,Ve,"Expected an identifier for JSX attribute");let p=zn(o,sd),g=l.getContextualTypeForArgumentAtIndex(p,0);u=l.getSuggestedSymbolForNonexistentJSXAttribute(o,g)}else if(x3(s)&&$c(s)&&s.name===o){let p=zn(o,pi),g=p?x_(p):void 0,m=g?l.getTypeAtLocation(g):void 0;m&&(u=l.getSuggestedSymbolForNonexistentClassMember(pc(o),m))}else{let p=$S(o),g=pc(o);C.assert(g!==void 0,"name should be defined"),u=l.getSuggestedSymbolForNonexistentSymbol(o,g,tQe(p))}return u===void 0?void 0:{node:o,suggestedSymbol:u}}function ANe(e,t,r,i,o){let s=bl(i);if(!$p(s,o)&&zr(r.parent)){let l=i.valueDeclaration;l&&od(l)&&Xi(l.name)?e.replaceNode(t,r,k.createIdentifier(s)):e.replaceNode(t,r.parent,k.createElementAccessExpression(r.parent.expression,k.createStringLiteral(s)))}else e.replaceNode(t,r,k.createIdentifier(s))}function tQe(e){let t=0;return e&4&&(t|=1920),e&2&&(t|=788968),e&1&&(t|=111551),t}function nQe(e,t){var r;if(!t||!us(t.moduleSpecifier))return;let i=(r=e.program.getResolvedModuleFromModuleSpecifier(t.moduleSpecifier))==null?void 0:r.resolvedModule;if(i)return e.program.getSourceFile(i.resolvedFileName)}var Tfe,Afe,rQe=A({"src/services/codefixes/fixSpelling.ts"(){"use strict";ci(),xa(),Tfe="fixSpelling",Afe=[f.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,f.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,f.Cannot_find_name_0_Did_you_mean_1.code,f.Could_not_find_name_0_Did_you_mean_1.code,f.Cannot_find_namespace_0_Did_you_mean_1.code,f.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,f._0_has_no_exported_member_named_1_Did_you_mean_2.code,f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,f.No_overload_matches_this_call.code,f.Type_0_is_not_assignable_to_type_1.code],Aa({errorCodes:Afe,getCodeActions(e){let{sourceFile:t,errorCode:r}=e,i=TNe(t,e.span.start,e,r);if(!i)return;let{node:o,suggestedSymbol:s}=i,l=as(e.host.getCompilationSettings()),u=hr.ChangeTracker.with(e,p=>ANe(p,t,o,s,l));return[ca("spelling",u,[f.Change_spelling_to_0,bl(s)],Tfe,f.Fix_all_detected_spelling_errors)]},fixIds:[Tfe],getAllCodeActions:e=>Ss(e,Afe,(t,r)=>{let i=TNe(r.file,r.start,e,r.code),o=as(e.host.getCompilationSettings());i&&ANe(t,e.sourceFile,i.node,i.suggestedSymbol,o)})})}});function INe(e,t,r){let i=e.createSymbol(4,t.escapedText);i.links.type=e.getTypeAtLocation(r);let o=ua([i]);return e.createAnonymousType(void 0,o,[],[],[])}function Ife(e,t,r,i){if(!t.body||!Xo(t.body)||De(t.body.statements)!==1)return;let o=Ha(t.body.statements);if(eu(o)&&xfe(e,t,e.getTypeAtLocation(o.expression),r,i))return{declaration:t,kind:0,expression:o.expression,statement:o,commentSource:o.expression};if(J1(o)&&eu(o.statement)){let s=k.createObjectLiteralExpression([k.createPropertyAssignment(o.label,o.statement.expression)]),l=INe(e,o.label,o.statement.expression);if(xfe(e,t,l,r,i))return Bs(t)?{declaration:t,kind:1,expression:s,statement:o,commentSource:o.statement.expression}:{declaration:t,kind:0,expression:s,statement:o,commentSource:o.statement.expression}}else if(Xo(o)&&De(o.statements)===1){let s=Ha(o.statements);if(J1(s)&&eu(s.statement)){let l=k.createObjectLiteralExpression([k.createPropertyAssignment(s.label,s.statement.expression)]),u=INe(e,s.label,s.statement.expression);if(xfe(e,t,u,r,i))return{declaration:t,kind:0,expression:l,statement:o,commentSource:s}}}}function xfe(e,t,r,i,o){if(o){let s=e.getSignatureFromDeclaration(t);if(s){ei(t,1024)&&(r=e.createPromiseType(r));let l=e.createSignature(t,s.typeParameters,s.thisParameter,s.parameters,r,void 0,s.minArgumentCount,s.flags);r=e.createAnonymousType(void 0,ua(),[l],[],[])}else r=e.getAnyType()}return e.isTypeAssignableTo(r,i)}function xNe(e,t,r,i){let o=po(t,r);if(!o.parent)return;let s=zn(o.parent,zs);switch(i){case f.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code:return!s||!s.body||!s.type||!of(s.type,o)?void 0:Ife(e,s,e.getTypeFromTypeNode(s.type),!1);case f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!s||!la(s.parent)||!s.body)return;let l=s.parent.arguments.indexOf(s);if(l===-1)return;let u=e.getContextualTypeForArgumentAtIndex(s.parent,l);return u?Ife(e,s,u,!0):void 0;case f.Type_0_is_not_assignable_to_type_1.code:if(!Wg(o)||!rR(o.parent)&&!O_(o.parent))return;let p=iQe(o.parent);return!p||!zs(p)||!p.body?void 0:Ife(e,p,e.getTypeAtLocation(o.parent),!0)}}function iQe(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:return e.initializer;case 291:return e.initializer&&(AN(e.initializer)?e.initializer.expression:void 0);case 304:case 171:case 306:case 355:case 348:return}}function RNe(e,t,r,i){Sp(r);let o=hO(t);e.replaceNode(t,i,k.createReturnStatement(r),{leadingTriviaOption:hr.LeadingTriviaOption.Exclude,trailingTriviaOption:hr.TrailingTriviaOption.Exclude,suffix:o?";":void 0})}function DNe(e,t,r,i,o,s){let l=s||hW(i)?k.createParenthesizedExpression(i):i;Sp(o),eT(o,l),e.replaceNode(t,r.body,l)}function CNe(e,t,r,i){e.replaceNode(t,r.body,k.createParenthesizedExpression(i))}function oQe(e,t,r){let i=hr.ChangeTracker.with(e,o=>RNe(o,e.sourceFile,t,r));return ca(I$,i,f.Add_a_return_statement,x$,f.Add_all_missing_return_statement)}function aQe(e,t,r,i){let o=hr.ChangeTracker.with(e,s=>DNe(s,e.sourceFile,t,r,i,!1));return ca(I$,o,f.Remove_braces_from_arrow_function_body,R$,f.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function sQe(e,t,r){let i=hr.ChangeTracker.with(e,o=>CNe(o,e.sourceFile,t,r));return ca(I$,i,f.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,D$,f.Wrap_all_object_literal_with_parentheses)}var I$,x$,R$,D$,Rfe,lQe=A({"src/services/codefixes/returnValueCorrect.ts"(){"use strict";ci(),xa(),I$="returnValueCorrect",x$="fixAddReturnStatement",R$="fixRemoveBracesFromArrowFunctionBody",D$="fixWrapTheBlockWithParen",Rfe=[f.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code,f.Type_0_is_not_assignable_to_type_1.code,f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code],Aa({errorCodes:Rfe,fixIds:[x$,R$,D$],getCodeActions:function(t){let{program:r,sourceFile:i,span:{start:o},errorCode:s}=t,l=xNe(r.getTypeChecker(),i,o,s);if(l)return l.kind===0?In([oQe(t,l.expression,l.statement)],Bs(l.declaration)?aQe(t,l.declaration,l.expression,l.commentSource):void 0):[sQe(t,l.declaration,l.expression)]},getAllCodeActions:e=>Ss(e,Rfe,(t,r)=>{let i=xNe(e.program.getTypeChecker(),r.file,r.start,r.code);if(i)switch(e.fixId){case x$:RNe(t,r.file,i.expression,i.statement);break;case R$:if(!Bs(i.declaration))return;DNe(t,r.file,i.declaration,i.expression,i.commentSource,!1);break;case D$:if(!Bs(i.declaration))return;CNe(t,r.file,i.declaration,i.expression);break;default:C.fail(JSON.stringify(e.fixId))}})})}});function NNe(e,t,r,i,o){var s;let l=po(e,t),u=l.parent;if(r===f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(!(l.kind===19&&wa(u)&&la(u.parent)))return;let I=ri(u.parent.arguments,O=>O===u);if(I<0)return;let R=i.getResolvedSignature(u.parent);if(!(R&&R.declaration&&R.parameters[I]))return;let M=R.parameters[I].valueDeclaration;if(!(M&&Co(M)&&Ve(M.name)))return;let N=Vo(i.getUnmatchedProperties(i.getTypeAtLocation(u),i.getParameterType(R,I),!1,!1));return De(N)?{kind:3,token:M.name,identifier:M.name.text,properties:N,parentDeclaration:u}:void 0}if(l.kind===19&&wa(u)){let I=i.getContextualType(u)||i.getTypeAtLocation(u),R=Vo(i.getUnmatchedProperties(i.getTypeAtLocation(u),I,!1,!1));return De(R)?{kind:3,token:u,identifier:"",properties:R,parentDeclaration:u}:void 0}if(!Yh(l))return;if(Ve(l)&&Oy(u)&&u.initializer&&wa(u.initializer)){let I=i.getContextualType(l)||i.getTypeAtLocation(l),R=Vo(i.getUnmatchedProperties(i.getTypeAtLocation(u.initializer),I,!1,!1));return De(R)?{kind:3,token:l,identifier:l.text,properties:R,parentDeclaration:u.initializer}:void 0}if(Ve(l)&&sd(l.parent)){let I=as(o.getCompilerOptions()),R=_Qe(i,I,l.parent);return De(R)?{kind:4,token:l,attributes:R,parentDeclaration:l.parent}:void 0}if(Ve(l)){let I=(s=i.getContextualType(l))==null?void 0:s.getNonNullableType();if(I&&Wr(I)&16){let R=Xc(i.getSignaturesOfType(I,0));return R===void 0?void 0:{kind:5,token:l,signature:R,sourceFile:e,parentDeclaration:GNe(l)}}if(la(u)&&u.expression===l)return{kind:2,token:l,call:u,sourceFile:e,modifierFlags:0,parentDeclaration:GNe(l)}}if(!zr(u))return;let p=iX(i.getTypeAtLocation(u.expression)),g=p.symbol;if(!g||!g.declarations)return;if(Ve(l)&&la(u.parent)){let I=vn(g.declarations,Jl),R=I?.getSourceFile();if(I&&R&&!T2(o,R))return{kind:2,token:l,call:u.parent,sourceFile:e,modifierFlags:32,parentDeclaration:I};let M=vn(g.declarations,no);if(e.commonJsModuleIndicator)return;if(M&&!T2(o,M))return{kind:2,token:l,call:u.parent,sourceFile:M,modifierFlags:32,parentDeclaration:M}}let m=vn(g.declarations,pi);if(!m&&Xi(l))return;let b=m||vn(g.declarations,I=>fd(I)||yp(I));if(b&&!T2(o,b.getSourceFile())){let I=!yp(b)&&(p.target||p)!==i.getDeclaredTypeOfSymbol(g);if(I&&(Xi(l)||fd(b)))return;let R=b.getSourceFile(),M=yp(b)?0:(I?256:0)|(PX(l.text)?2:0),N=ld(R),O=ai(u.parent,la);return{kind:0,token:l,call:O,modifierFlags:M,parentDeclaration:b,declSourceFile:R,isJSFile:N}}let T=vn(g.declarations,v0);if(T&&!(p.flags&1056)&&!Xi(l)&&!T2(o,T.getSourceFile()))return{kind:1,token:l,parentDeclaration:T}}function cQe(e,t){return t.isJSFile?yA(uQe(e,t)):dQe(e,t)}function uQe(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:o}){if(fd(t)||yp(t))return;let s=hr.ChangeTracker.with(e,u=>PNe(u,r,t,o,!!(i&256)));if(s.length===0)return;let l=i&256?f.Initialize_static_property_0:Xi(o)?f.Declare_a_private_field_named_0:f.Initialize_property_0_in_the_constructor;return ca(ab,s,[l,o.text],ab,f.Add_all_missing_members)}function PNe(e,t,r,i,o){let s=i.text;if(o){if(r.kind===231)return;let l=r.name.getText(),u=MNe(k.createIdentifier(l),s);e.insertNodeAfter(t,r,u)}else if(Xi(i)){let l=k.createPropertyDeclaration(void 0,s,void 0,void 0,void 0),u=wNe(r);u?e.insertNodeAfter(t,u,l):e.insertMemberAtStart(t,r,l)}else{let l=ig(r);if(!l)return;let u=MNe(k.createThis(),s);e.insertNodeAtConstructorEnd(t,l,u)}}function MNe(e,t){return k.createExpressionStatement(k.createAssignment(k.createPropertyAccessExpression(e,t),kI()))}function dQe(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:o}){let s=o.text,l=i&256,u=LNe(e.program.getTypeChecker(),t,o),p=m=>hr.ChangeTracker.with(e,b=>kNe(b,r,t,s,u,m)),g=[ca(ab,p(i&256),[l?f.Declare_static_property_0:f.Declare_property_0,s],ab,f.Add_all_missing_members)];return l||Xi(o)||(i&2&&g.unshift(i_(ab,p(2),[f.Declare_private_property_0,s])),g.push(pQe(e,r,t,o.text,u))),g}function LNe(e,t,r){let i;if(r.parent.parent.kind===226){let o=r.parent.parent,s=r.parent===o.left?o.right:o.left,l=e.getWidenedType(e.getBaseTypeOfLiteralType(e.getTypeAtLocation(s)));i=e.typeToTypeNode(l,t,1)}else{let o=e.getContextualType(r.parent);i=o?e.typeToTypeNode(o,void 0,1):void 0}return i||k.createKeywordTypeNode(133)}function kNe(e,t,r,i,o,s){let l=s?k.createNodeArray(k.createModifiersFromModifierFlags(s)):void 0,u=pi(r)?k.createPropertyDeclaration(l,i,void 0,o,void 0):k.createPropertySignature(void 0,i,void 0,o),p=wNe(r);p?e.insertNodeAfter(t,p,u):e.insertMemberAtStart(t,r,u)}function wNe(e){let t;for(let r of e.members){if(!Jo(r))break;t=r}return t}function pQe(e,t,r,i,o){let s=k.createKeywordTypeNode(154),l=k.createParameterDeclaration(void 0,void 0,"x",void 0,s,void 0),u=k.createIndexSignature(void 0,[l],o),p=hr.ChangeTracker.with(e,g=>g.insertMemberAtStart(t,r,u));return i_(ab,p,[f.Add_index_signature_for_property_0,i])}function fQe(e,t){let{parentDeclaration:r,declSourceFile:i,modifierFlags:o,token:s,call:l}=t;if(l===void 0)return;let u=s.text,p=m=>hr.ChangeTracker.with(e,b=>ONe(e,b,l,s,m,r,i)),g=[ca(ab,p(o&256),[o&256?f.Declare_static_method_0:f.Declare_method_0,u],ab,f.Add_all_missing_members)];return o&2&&g.unshift(i_(ab,p(2),[f.Declare_private_method_0,u])),g}function ONe(e,t,r,i,o,s,l){let u=LI(l,e.program,e.preferences,e.host),p=pi(s)?174:173,g=dme(p,e,u,r,i,o,s),m=hQe(s,r);m?t.insertNodeAfter(l,m,g):t.insertMemberAtStart(l,s,g),u.writeFixes(t)}function FNe(e,t,{token:r,parentDeclaration:i}){let o=Et(i.members,p=>{let g=t.getTypeAtLocation(p);return!!(g&&g.flags&402653316)}),s=i.getSourceFile(),l=k.createEnumMember(r,o?k.createStringLiteral(r.text):void 0),u=Zs(i.members);u?e.insertNodeInListAfter(s,u,l,i.members):e.insertMemberAtStart(s,i,l)}function WNe(e,t,r){let i=af(t.sourceFile,t.preferences),o=LI(t.sourceFile,t.program,t.preferences,t.host),s=r.kind===2?dme(262,t,o,r.call,Sr(r.token),r.modifierFlags,r.parentDeclaration):tQ(262,t,i,r.signature,b9(f.Function_not_implemented.message,i),r.token,void 0,void 0,void 0,o);s===void 0&&C.fail("fixMissingFunctionDeclaration codefix got unexpected error."),Rm(r.parentDeclaration)?e.insertNodeBefore(r.sourceFile,r.parentDeclaration,s,!0):e.insertNodeAtEndOfScope(r.sourceFile,r.parentDeclaration,s),o.writeFixes(e)}function zNe(e,t,r){let i=LI(t.sourceFile,t.program,t.preferences,t.host),o=af(t.sourceFile,t.preferences),s=t.program.getTypeChecker(),l=r.parentDeclaration.attributes,u=Et(l.properties,pI),p=Ft(r.attributes,b=>{let T=C$(t,s,i,o,s.getTypeOfSymbol(b),r.parentDeclaration),I=k.createIdentifier(b.name),R=k.createJsxAttribute(I,k.createJsxExpression(void 0,T));return qa(I,R),R}),g=k.createJsxAttributes(u?[...p,...l.properties]:[...l.properties,...p]),m={prefix:l.pos===l.end?" ":void 0};e.replaceNode(t.sourceFile,l,g,m),i.writeFixes(e)}function BNe(e,t,r){let i=LI(t.sourceFile,t.program,t.preferences,t.host),o=af(t.sourceFile,t.preferences),s=as(t.program.getCompilerOptions()),l=t.program.getTypeChecker(),u=Ft(r.properties,g=>{let m=C$(t,l,i,o,l.getTypeOfSymbol(g),r.parentDeclaration);return k.createPropertyAssignment(gQe(g,s,o,l),m)}),p={leadingTriviaOption:hr.LeadingTriviaOption.Exclude,trailingTriviaOption:hr.TrailingTriviaOption.Exclude,indentation:r.indentation};e.replaceNode(t.sourceFile,r.parentDeclaration,k.createObjectLiteralExpression([...r.parentDeclaration.properties,...u],!0),p),i.writeFixes(e)}function C$(e,t,r,i,o,s){if(o.flags&3)return kI();if(o.flags&134217732)return k.createStringLiteral("",i===0);if(o.flags&8)return k.createNumericLiteral(0);if(o.flags&64)return k.createBigIntLiteral("0n");if(o.flags&16)return k.createFalse();if(o.flags&1056){let l=o.symbol.exports?D8(o.symbol.exports.values()):o.symbol,u=t.symbolToExpression(o.symbol.parent?o.symbol.parent:o.symbol,111551,void 0,64);return l===void 0||u===void 0?k.createNumericLiteral(0):k.createPropertyAccessExpression(u,t.symbolToString(l))}if(o.flags&256)return k.createNumericLiteral(o.value);if(o.flags&2048)return k.createBigIntLiteral(o.value);if(o.flags&128)return k.createStringLiteral(o.value,i===0);if(o.flags&512)return o===t.getFalseType()||o===t.getFalseType(!0)?k.createFalse():k.createTrue();if(o.flags&65536)return k.createNull();if(o.flags&1048576)return Zt(o.types,u=>C$(e,t,r,i,u,s))??kI();if(t.isArrayLikeType(o))return k.createArrayLiteralExpression();if(mQe(o)){let l=Ft(t.getPropertiesOfType(o),u=>{let p=C$(e,t,r,i,t.getTypeOfSymbol(u),s);return k.createPropertyAssignment(u.name,p)});return k.createObjectLiteralExpression(l,!0)}if(Wr(o)&16){if(vn(o.symbol.declarations||et,Xm(bh,yh,jl))===void 0)return kI();let u=t.getSignaturesOfType(o,0);return u===void 0?kI():tQ(218,e,i,u[0],b9(f.Function_not_implemented.message,i),void 0,void 0,void 0,s,r)??kI()}if(Wr(o)&1){let l=Bg(o.symbol);if(l===void 0||F1(l))return kI();let u=ig(l);return u&&De(u.parameters)?kI():k.createNewExpression(k.createIdentifier(o.symbol.name),void 0,void 0)}return kI()}function kI(){return k.createIdentifier("undefined")}function mQe(e){return e.flags&524288&&(Wr(e)&128||e.symbol&&ai(ah(e.symbol.declarations),yp))}function _Qe(e,t,r){let i=e.getContextualType(r.attributes);if(i===void 0)return et;let o=i.getProperties();if(!De(o))return et;let s=new Set;for(let l of r.attributes.properties)if(O_(l)&&s.add(lN(l.name)),pI(l)){let u=e.getTypeAtLocation(l.expression);for(let p of u.getProperties())s.add(p.escapedName)}return tr(o,l=>$p(l.name,t,1)&&!(l.flags&16777216||Al(l)&48||s.has(l.escapedName)))}function hQe(e,t){if(yp(e))return;let r=zn(t,i=>jl(i)||Pl(i));return r&&r.parent===e?r:void 0}function gQe(e,t,r,i){if(fh(e)){let o=i.symbolToNode(e,111551,void 0,1073741824);if(o&&Za(o))return o}return e7(e.name,t,r===0,!1,!1)}function GNe(e){if(zn(e,AN)){let t=zn(e.parent,Rm);if(t)return t}return Vn(e)}var ab,p9,f9,m9,Dfe,vQe=A({"src/services/codefixes/fixAddMissingMember.ts"(){"use strict";ci(),xa(),ab="fixMissingMember",p9="fixMissingProperties",f9="fixMissingAttributes",m9="fixMissingFunctionDeclaration",Dfe=[f.Property_0_does_not_exist_on_type_1.code,f.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,f.Property_0_is_missing_in_type_1_but_required_in_type_2.code,f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,f.Cannot_find_name_0.code],Aa({errorCodes:Dfe,getCodeActions(e){let t=e.program.getTypeChecker(),r=NNe(e.sourceFile,e.span.start,e.errorCode,t,e.program);if(r){if(r.kind===3){let i=hr.ChangeTracker.with(e,o=>BNe(o,e,r));return[ca(p9,i,f.Add_missing_properties,p9,f.Add_all_missing_properties)]}if(r.kind===4){let i=hr.ChangeTracker.with(e,o=>zNe(o,e,r));return[ca(f9,i,f.Add_missing_attributes,f9,f.Add_all_missing_attributes)]}if(r.kind===2||r.kind===5){let i=hr.ChangeTracker.with(e,o=>WNe(o,e,r));return[ca(m9,i,[f.Add_missing_function_declaration_0,r.token.text],m9,f.Add_all_missing_function_declarations)]}if(r.kind===1){let i=hr.ChangeTracker.with(e,o=>FNe(o,e.program.getTypeChecker(),r));return[ca(ab,i,[f.Add_missing_enum_member_0,r.token.text],ab,f.Add_all_missing_members)]}return xo(fQe(e,r),cQe(e,r))}},fixIds:[ab,m9,p9,f9],getAllCodeActions:e=>{let{program:t,fixId:r}=e,i=t.getTypeChecker(),o=new Map,s=new Map;return N2(hr.ChangeTracker.with(e,l=>{P2(e,Dfe,u=>{let p=NNe(u.file,u.start,u.code,i,e.program);if(!(!p||!xm(o,ss(p.parentDeclaration)+"#"+(p.kind===3?p.identifier:p.token.text)))){if(r===m9&&(p.kind===2||p.kind===5))WNe(l,e,p);else if(r===p9&&p.kind===3)BNe(l,e,p);else if(r===f9&&p.kind===4)zNe(l,e,p);else if(p.kind===1&&FNe(l,i,p),p.kind===0){let{parentDeclaration:g,token:m}=p,b=mA(s,g,()=>[]);b.some(T=>T.token.text===m.text)||b.push(p)}}}),s.forEach((u,p)=>{let g=yp(p)?void 0:yme(p,i);for(let m of u){if(g?.some(O=>{let H=s.get(O);return!!H&&H.some(({token:K})=>K.text===m.token.text)}))continue;let{parentDeclaration:b,declSourceFile:T,modifierFlags:I,token:R,call:M,isJSFile:N}=m;if(M&&!Xi(R))ONe(e,l,M,R,I&256,b,T);else if(N&&!fd(b)&&!yp(b))PNe(l,T,b,R,!!(I&256));else{let O=LNe(i,b,R);kNe(l,T,b,R.text,O,I&256)}}})}))}})}});function VNe(e,t,r){let i=aa(yQe(t,r),la),o=k.createNewExpression(i.expression,i.typeArguments,i.arguments);e.replaceNode(t,i,o)}function yQe(e,t){let r=po(e,t.start),i=ql(t);for(;r.endVNe(o,t,r));return[ca(N$,i,f.Add_missing_new_operator_to_call,N$,f.Add_missing_new_operator_to_all_calls)]},fixIds:[N$],getAllCodeActions:e=>Ss(e,Cfe,(t,r)=>VNe(t,e.sourceFile,r))})}});function jNe(e,t,r){let i=po(e,r),o=zn(i,la);if(o===void 0||De(o.arguments)===0)return;let s=t.getTypeChecker(),l=s.getTypeAtLocation(o.expression),u=tr(l.symbol.declarations,UNe);if(u===void 0)return;let p=Zs(u);if(p===void 0||p.body===void 0||T2(t,p.getSourceFile()))return;let g=EQe(p);if(g===void 0)return;let m=[],b=[],T=De(p.parameters),I=De(o.arguments);if(T>I)return;let R=[p,...TQe(p,u)];for(let M=0,N=0,O=0;M{De(o.parameters)?e.replaceNodeRangeWithNodes(t,Ha(o.parameters),Ya(o.parameters),HNe(o,i),{joiner:", ",indentation:0,leadingTriviaOption:hr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:hr.TrailingTriviaOption.Include}):Ke(HNe(o,i),(s,l)=>{De(o.parameters)===0&&l===0?e.insertNodeAt(t,o.parameters.end,s):e.insertNodeAtEndOfList(t,o.parameters,s)})})}function UNe(e){switch(e.kind){case 262:case 218:case 174:case 219:return!0;default:return!1}}function HNe(e,t){let r=Ft(e.parameters,i=>k.createParameterDeclaration(i.modifiers,i.dotDotDotToken,i.name,i.questionToken,i.type,i.initializer));for(let{pos:i,declaration:o}of t){let s=i>0?r[i-1]:void 0;r.splice(i,0,k.updateParameterDeclaration(o,o.modifiers,o.dotDotDotToken,o.name,s&&s.questionToken?k.createToken(58):o.questionToken,o.type,o.initializer))}return r}function TQe(e,t){let r=[];for(let i of t)if(AQe(i)){if(De(i.parameters)===De(e.parameters)){r.push(i);continue}if(De(i.parameters)>De(e.parameters))return[]}return r}function AQe(e){return UNe(e)&&e.body===void 0}function qNe(e,t,r){return k.createParameterDeclaration(void 0,void 0,e,r,t,void 0)}function IQe(e,t){return De(e)&&Et(e,r=>tP$(u,e.sourceFile,i,o)),[De(o)>1?f.Add_missing_parameters_to_0:f.Add_missing_parameter_to_0,r],_9,f.Add_all_missing_parameters)),De(s)&&In(l,ca(h9,hr.ChangeTracker.with(e,u=>P$(u,e.sourceFile,i,s)),[De(s)>1?f.Add_optional_parameters_to_0:f.Add_optional_parameter_to_0,r],h9,f.Add_all_optional_parameters)),l},getAllCodeActions:e=>Ss(e,Nfe,(t,r)=>{let i=jNe(e.sourceFile,e.program,r.start);if(i){let{declarations:o,newParameters:s,newOptionalParameters:l}=i;e.fixId===_9&&P$(t,e.sourceFile,o,s),e.fixId===h9&&P$(t,e.sourceFile,o,l)}})})}});function JNe(e,t){return{type:"install package",file:e,packageName:t}}function KNe(e,t){let r=ai(po(e,t),Na);if(!r)return;let i=r.text,{packageName:o}=Ew(i);return Yc(o)?void 0:o}function XNe(e,t,r){var i;return r===Pfe?B_.nodeCoreModules.has(e)?"@types/node":void 0:(i=t.isKnownTypesPackageName)!=null&&i.call(t,e)?W5(e):void 0}var YNe,M$,Pfe,Mfe,RQe=A({"src/services/codefixes/fixCannotFindModule.ts"(){"use strict";ci(),xa(),YNe="fixCannotFindModule",M$="installTypesPackage",Pfe=f.Cannot_find_module_0_or_its_corresponding_type_declarations.code,Mfe=[Pfe,f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code],Aa({errorCodes:Mfe,getCodeActions:function(t){let{host:r,sourceFile:i,span:{start:o}}=t,s=KNe(i,o);if(s===void 0)return;let l=XNe(s,r,t.errorCode);return l===void 0?[]:[ca(YNe,[],[f.Install_0,l],M$,f.Install_all_missing_types_packages,JNe(i.fileName,l))]},fixIds:[M$],getAllCodeActions:e=>Ss(e,Mfe,(t,r,i)=>{let o=KNe(r.file,r.start);if(o!==void 0)switch(e.fixId){case M$:{let s=XNe(o,e.host,r.code);s&&i.push(JNe(r.file.fileName,s));break}default:C.fail(`Bad fixId: ${e.fixId}`)}})})}});function $Ne(e,t){let r=po(e,t);return aa(r.parent,pi)}function QNe(e,t,r,i,o){let s=x_(e),l=r.program.getTypeChecker(),u=l.getTypeAtLocation(s),p=l.getPropertiesOfType(u).filter(DQe),g=LI(t,r.program,o,r.host);ume(e,p,t,r,o,g,m=>i.insertMemberAtStart(t,e,m)),g.writeFixes(i)}function DQe(e){let t=Gy(Ha(e.getDeclarations()));return!(t&2)&&!!(t&64)}var Lfe,L$,CQe=A({"src/services/codefixes/fixClassDoesntImplementInheritedAbstractMember.ts"(){"use strict";ci(),xa(),Lfe=[f.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1.code],L$="fixClassDoesntImplementInheritedAbstractMember",Aa({errorCodes:Lfe,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=hr.ChangeTracker.with(t,s=>QNe($Ne(r,i.start),r,t,s,t.preferences));return o.length===0?void 0:[ca(L$,o,f.Implement_inherited_abstract_class,L$,f.Implement_all_inherited_abstract_classes)]},fixIds:[L$],getAllCodeActions:function(t){let r=new Map;return Ss(t,Lfe,(i,o)=>{let s=$Ne(o.file,o.start);xm(r,ss(s))&&QNe(s,t.sourceFile,t,i,t.preferences)})}})}});function ZNe(e,t,r,i){e.insertNodeAtConstructorStart(t,r,i),e.delete(t,i)}function ePe(e,t){let r=po(e,t);if(r.kind!==110)return;let i=zp(r),o=tPe(i.body);return o&&!o.expression.arguments.some(s=>zr(s)&&s.expression===r)?{constructor:i,superCall:o}:void 0}function tPe(e){return eu(e)&&gS(e.expression)?e:ea(e)?void 0:Ho(e,tPe)}var k$,kfe,NQe=A({"src/services/codefixes/fixClassSuperMustPrecedeThisAccess.ts"(){"use strict";ci(),xa(),k$="classSuperMustPrecedeThisAccess",kfe=[f.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],Aa({errorCodes:kfe,getCodeActions(e){let{sourceFile:t,span:r}=e,i=ePe(t,r.start);if(!i)return;let{constructor:o,superCall:s}=i,l=hr.ChangeTracker.with(e,u=>ZNe(u,t,o,s));return[ca(k$,l,f.Make_super_call_the_first_statement_in_the_constructor,k$,f.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[k$],getAllCodeActions(e){let{sourceFile:t}=e,r=new Map;return Ss(e,kfe,(i,o)=>{let s=ePe(o.file,o.start);if(!s)return;let{constructor:l,superCall:u}=s;xm(r,ss(l.parent))&&ZNe(i,t,l,u)})}})}});function nPe(e,t){let r=po(e,t);return C.assert(Pl(r.parent),"token should be at the constructor declaration"),r.parent}function rPe(e,t,r){let i=k.createExpressionStatement(k.createCallExpression(k.createSuper(),void 0,et));e.insertNodeAtConstructorStart(t,r,i)}var w$,wfe,PQe=A({"src/services/codefixes/fixConstructorForDerivedNeedSuperCall.ts"(){"use strict";ci(),xa(),w$="constructorForDerivedNeedSuperCall",wfe=[f.Constructors_for_derived_classes_must_contain_a_super_call.code],Aa({errorCodes:wfe,getCodeActions(e){let{sourceFile:t,span:r}=e,i=nPe(t,r.start),o=hr.ChangeTracker.with(e,s=>rPe(s,t,i));return[ca(w$,o,f.Add_missing_super_call,w$,f.Add_all_missing_super_calls)]},fixIds:[w$],getAllCodeActions:e=>Ss(e,wfe,(t,r)=>rPe(t,e.sourceFile,nPe(r.file,r.start)))})}});function iPe(e,t){_me(e,t,"jsx",k.createStringLiteral("react"))}var Ofe,Ffe,MQe=A({"src/services/codefixes/fixEnableJsxFlag.ts"(){"use strict";ci(),xa(),Ofe="fixEnableJsxFlag",Ffe=[f.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code],Aa({errorCodes:Ffe,getCodeActions:function(t){let{configFile:r}=t.program.getCompilerOptions();if(r===void 0)return;let i=hr.ChangeTracker.with(t,o=>iPe(o,r));return[i_(Ofe,i,f.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[Ofe],getAllCodeActions:e=>Ss(e,Ffe,t=>{let{configFile:r}=e.program.getCompilerOptions();r!==void 0&&iPe(t,r)})})}});function oPe(e,t,r){let i=vn(e.getSemanticDiagnostics(t),l=>l.start===r.start&&l.length===r.length);if(i===void 0||i.relatedInformation===void 0)return;let o=vn(i.relatedInformation,l=>l.code===f.Did_you_mean_0.code);if(o===void 0||o.file===void 0||o.start===void 0||o.length===void 0)return;let s=gme(o.file,vu(o.start,o.length));if(s!==void 0&&bt(s)&&_r(s.parent))return{suggestion:LQe(o.messageText),expression:s.parent,arg:s}}function aPe(e,t,r,i){let o=k.createCallExpression(k.createPropertyAccessExpression(k.createIdentifier("Number"),k.createIdentifier("isNaN")),void 0,[r]),s=i.operatorToken.kind;e.replaceNode(t,i,s===38||s===36?k.createPrefixUnaryExpression(54,o):o)}function LQe(e){let[,t]=W_(e,` +`,0).match(/'(.*)'/)||[];return t}var O$,Wfe,kQe=A({"src/services/codefixes/fixNaNEquality.ts"(){"use strict";ci(),xa(),O$="fixNaNEquality",Wfe=[f.This_condition_will_always_return_0.code],Aa({errorCodes:Wfe,getCodeActions(e){let{sourceFile:t,span:r,program:i}=e,o=oPe(i,t,r);if(o===void 0)return;let{suggestion:s,expression:l,arg:u}=o,p=hr.ChangeTracker.with(e,g=>aPe(g,t,u,l));return[ca(O$,p,[f.Use_0,s],O$,f.Use_Number_isNaN_in_all_conditions)]},fixIds:[O$],getAllCodeActions:e=>Ss(e,Wfe,(t,r)=>{let i=oPe(e.program,r.file,vu(r.start,r.length));i&&aPe(t,r.file,i.arg,i.expression)})})}}),wQe=A({"src/services/codefixes/fixModuleAndTargetOptions.ts"(){"use strict";ci(),xa(),Aa({errorCodes:[f.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,f.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,f.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(t){let r=t.program.getCompilerOptions(),{configFile:i}=r;if(i===void 0)return;let o=[],s=ku(r);if(s>=5&&s<99){let g=hr.ChangeTracker.with(t,m=>{_me(m,i,"module",k.createStringLiteral("esnext"))});o.push(i_("fixModuleOption",g,[f.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}let u=as(r);if(u<4||u>99){let g=hr.ChangeTracker.with(t,m=>{if(!IC(i))return;let T=[["target",k.createStringLiteral("es2017")]];s===1&&T.push(["module",k.createStringLiteral("commonjs")]),mme(m,i,T)});o.push(i_("fixTargetOption",g,[f.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return o.length?o:void 0}})}});function sPe(e,t,r){e.replaceNode(t,r,k.createPropertyAssignment(r.name,r.objectAssignmentInitializer))}function lPe(e,t){return aa(po(e,t).parent,np)}var F$,zfe,OQe=A({"src/services/codefixes/fixPropertyAssignment.ts"(){"use strict";ci(),xa(),F$="fixPropertyAssignment",zfe=[f.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code],Aa({errorCodes:zfe,fixIds:[F$],getCodeActions(e){let{sourceFile:t,span:r}=e,i=lPe(t,r.start),o=hr.ChangeTracker.with(e,s=>sPe(s,e.sourceFile,i));return[ca(F$,o,[f.Change_0_to_1,"=",":"],F$,[f.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>Ss(e,zfe,(t,r)=>sPe(t,r.file,lPe(r.file,r.start)))})}});function cPe(e,t){let r=po(e,t),i=su(r).heritageClauses,o=i[0].getFirstToken();return o.kind===96?{extendsToken:o,heritageClauses:i}:void 0}function uPe(e,t,r,i){if(e.replaceNode(t,r,k.createToken(119)),i.length===2&&i[0].token===96&&i[1].token===119){let o=i[1].getFirstToken(),s=o.getFullStart();e.replaceRange(t,{pos:s,end:s},k.createToken(28));let l=t.text,u=o.end;for(;uuPe(l,t,i,o));return[ca(W$,s,f.Change_extends_to_implements,W$,f.Change_all_extended_interfaces_to_implements)]},fixIds:[W$],getAllCodeActions:e=>Ss(e,Bfe,(t,r)=>{let i=cPe(r.file,r.start);i&&uPe(t,r.file,i.extendsToken,i.heritageClauses)})})}});function dPe(e,t,r){let i=po(e,t);if(Ve(i)||Xi(i))return{node:i,className:r===Gfe?su(i).name.text:void 0}}function pPe(e,t,{node:r,className:i}){Sp(r),e.replaceNode(t,r,k.createPropertyAccessExpression(i?k.createIdentifier(i):k.createThis(),r))}var z$,Gfe,Vfe,WQe=A({"src/services/codefixes/fixForgottenThisPropertyAccess.ts"(){"use strict";ci(),xa(),z$="forgottenThisPropertyAccess",Gfe=f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,Vfe=[f.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,f.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,Gfe],Aa({errorCodes:Vfe,getCodeActions(e){let{sourceFile:t}=e,r=dPe(t,e.span.start,e.errorCode);if(!r)return;let i=hr.ChangeTracker.with(e,o=>pPe(o,t,r));return[ca(z$,i,[f.Add_0_to_unresolved_variable,r.className||"this"],z$,f.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[z$],getAllCodeActions:e=>Ss(e,Vfe,(t,r)=>{let i=dPe(r.file,r.start,r.code);i&&pPe(t,e.sourceFile,i)})})}});function zQe(e){return Rs(Hfe,e)}function jfe(e,t,r,i,o){let s=r.getText()[i];if(!zQe(s))return;let l=o?Hfe[s]:`{${fP(r,t,s)}}`;e.replaceRangeWithText(r,{pos:i,end:i+1},l)}var B$,g9,Ufe,Hfe,BQe=A({"src/services/codefixes/fixInvalidJsxCharacters.ts"(){"use strict";ci(),xa(),B$="fixInvalidJsxCharacters_expression",g9="fixInvalidJsxCharacters_htmlEntity",Ufe=[f.Unexpected_token_Did_you_mean_or_gt.code,f.Unexpected_token_Did_you_mean_or_rbrace.code],Aa({errorCodes:Ufe,fixIds:[B$,g9],getCodeActions(e){let{sourceFile:t,preferences:r,span:i}=e,o=hr.ChangeTracker.with(e,l=>jfe(l,r,t,i.start,!1)),s=hr.ChangeTracker.with(e,l=>jfe(l,r,t,i.start,!0));return[ca(B$,o,f.Wrap_invalid_character_in_an_expression_container,B$,f.Wrap_all_invalid_characters_in_an_expression_container),ca(g9,s,f.Convert_invalid_character_to_its_html_entity_code,g9,f.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions(e){return Ss(e,Ufe,(t,r)=>jfe(t,e.preferences,r.file,r.start,e.fixId===g9))}}),Hfe={">":">","}":"}"}}});function GQe(e,{name:t,jsDocHost:r,jsDocParameterTag:i}){let o=hr.ChangeTracker.with(e,s=>s.filterJSDocTags(e.sourceFile,r,l=>l!==i));return ca(v9,o,[f.Delete_unused_param_tag_0,t.getText(e.sourceFile)],v9,f.Delete_all_unused_param_tags)}function VQe(e,{name:t,jsDocHost:r,signature:i,jsDocParameterTag:o}){if(!De(i.parameters))return;let s=e.sourceFile,l=o0(i),u=new Set;for(let b of l)n_(b)&&Ve(b.name)&&u.add(b.name.escapedText);let p=Zt(i.parameters,b=>Ve(b.name)&&!u.has(b.name.escapedText)?b.name.getText(s):void 0);if(p===void 0)return;let g=k.updateJSDocParameterTag(o,o.tagName,k.createIdentifier(p),o.isBracketed,o.typeExpression,o.isNameFirst,o.comment),m=hr.ChangeTracker.with(e,b=>b.replaceJSDocComment(s,r,Ft(l,T=>T===o?g:T)));return i_(qfe,m,[f.Rename_param_tag_name_0_to_1,t.getText(s),p])}function fPe(e,t){let r=po(e,t);if(r.parent&&n_(r.parent)&&Ve(r.parent.name)){let i=r.parent,o=SS(i),s=u0(i);if(o&&s)return{jsDocHost:o,signature:s,name:r.parent.name,jsDocParameterTag:i}}}var v9,qfe,Jfe,jQe=A({"src/services/codefixes/fixUnmatchedParameter.ts"(){"use strict";ci(),xa(),v9="deleteUnmatchedParameter",qfe="renameUnmatchedParameter",Jfe=[f.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code],Aa({fixIds:[v9,qfe],errorCodes:Jfe,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=[],s=fPe(r,i.start);if(s)return In(o,GQe(t,s)),In(o,VQe(t,s)),o},getAllCodeActions:function(t){let r=new Map;return N2(hr.ChangeTracker.with(t,i=>{P2(t,Jfe,({file:o,start:s})=>{let l=fPe(o,s);l&&r.set(l.signature,In(r.get(l.signature),l.jsDocParameterTag))}),r.forEach((o,s)=>{if(t.fixId===v9){let l=new Set(o);i.filterJSDocTags(s.getSourceFile(),s,u=>!l.has(u))}})}))}})}});function UQe(e,t,r){let i=ai(po(e,r),Ve);if(!i||i.parent.kind!==183)return;let s=t.getTypeChecker().getSymbolAtLocation(i);return vn(s?.declarations||et,Xm(Eh,tp,tu))}function HQe(e,t,r,i){if(r.kind===271){e.insertModifierBefore(t,156,r.name);return}let o=r.kind===273?r:r.parent.parent;if(o.name&&o.namedBindings)return;let s=i.getTypeChecker();d3(o,u=>{if(bu(u.symbol,s).flags&111551)return!0})||e.insertModifierBefore(t,156,o)}function qQe(e,t,r,i){NI.doChangeNamedToNamespaceOrDefault(t,i,e,r.parent)}var G$,mPe,JQe=A({"src/services/codefixes/fixUnreferenceableDecoratorMetadata.ts"(){"use strict";ci(),xa(),G$="fixUnreferenceableDecoratorMetadata",mPe=[f.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code],Aa({errorCodes:mPe,getCodeActions:e=>{let t=UQe(e.sourceFile,e.program,e.span.start);if(!t)return;let r=hr.ChangeTracker.with(e,s=>t.kind===276&&qQe(s,e.sourceFile,t,e.program)),i=hr.ChangeTracker.with(e,s=>HQe(s,e.sourceFile,t,e.program)),o;return r.length&&(o=In(o,i_(G$,r,f.Convert_named_imports_to_namespace_import))),i.length&&(o=In(o,i_(G$,i,f.Use_import_type))),o},fixIds:[G$]})}});function _Pe(e,t,r){e.replaceNode(t,r.parent,k.createKeywordTypeNode(159))}function jO(e,t){return ca(UO,e,t,U$,f.Delete_all_unused_declarations)}function hPe(e,t,r){e.delete(t,C.checkDefined(aa(r.parent,yj).typeParameters,"The type parameter to delete should exist"))}function Kfe(e){return e.kind===102||e.kind===80&&(e.parent.kind===276||e.parent.kind===273)}function gPe(e){return e.kind===102?ai(e.parent,Lc):void 0}function vPe(e,t){return jc(t.parent)&&Ha(t.parent.getChildren(e))===t}function yPe(e,t,r){e.delete(t,r.parent.kind===243?r.parent:r)}function KQe(e,t,r){Ke(r.elements,i=>e.delete(t,i))}function XQe(e,t,r,{parent:i}){if(Oi(i)&&i.initializer&&T1(i.initializer))if(jc(i.parent)&&De(i.parent.declarations)>1){let o=i.parent.parent,s=o.getStart(r),l=o.end;t.delete(r,i),t.insertNodeAt(r,l,i.initializer,{prefix:Qv(e.host,e.formatContext.options)+r.text.slice(_W(r.text,s-1),s),suffix:hO(r)?";":""})}else t.replaceNode(r,i.parent,i.initializer);else t.delete(r,i)}function bPe(e,t,r,i){t!==f.Property_0_is_declared_but_its_value_is_never_read.code&&(i.kind===140&&(i=aa(i.parent,MS).typeParameter.name),Ve(i)&&YQe(i)&&(e.replaceNode(r,i,k.createIdentifier(`_${i.text}`)),Co(i.parent)&&jx(i.parent).forEach(o=>{Ve(o.name)&&e.replaceNode(r,o.name,k.createIdentifier(`_${o.name.text}`))})))}function YQe(e){switch(e.parent.kind){case 169:case 168:return!0;case 260:switch(e.parent.parent.parent.kind){case 250:case 249:return!0}}return!1}function V$(e,t,r,i,o,s,l,u){$Qe(t,r,e,i,o,s,l,u),Ve(t)&&Os.Core.eachSymbolReferenceInFile(t,i,e,p=>{zr(p.parent)&&p.parent.name===p&&(p=p.parent),!u&&tZe(p)&&r.delete(e,p.parent.parent)})}function $Qe(e,t,r,i,o,s,l,u){let{parent:p}=e;if(Co(p))QQe(t,r,p,i,o,s,l,u);else if(!(u&&Ve(e)&&Os.Core.isSymbolReferencedInFile(e,i,r))){let g=Eh(p)?e:Za(p)?p.parent:p;C.assert(g!==r,"should not delete whole source file"),t.delete(r,g)}}function QQe(e,t,r,i,o,s,l,u=!1){if(ZQe(i,t,r,o,s,l,u))if(r.modifiers&&r.modifiers.length>0&&(!Ve(r.name)||Os.Core.isSymbolReferencedInFile(r.name,i,t)))for(let p of r.modifiers)Ia(p)&&e.deleteModifier(t,p);else!r.initializer&&EPe(r,i,o)&&e.delete(t,r)}function EPe(e,t,r){let i=e.parent.parameters.indexOf(e);return!Os.Core.someSignatureUsage(e.parent,r,t,(o,s)=>!s||s.arguments.length>i)}function ZQe(e,t,r,i,o,s,l){let{parent:u}=r;switch(u.kind){case 174:case 176:let p=u.parameters.indexOf(r),g=jl(u)?u.name:u,m=Os.Core.getReferencedSymbolsForNode(u.pos,g,o,i,s);if(m){for(let b of m)for(let T of b.references)if(T.kind===Os.EntryKind.Node){let I=gN(T.node)&&la(T.node.parent)&&T.node.parent.arguments.length>p,R=zr(T.node.parent)&&gN(T.node.parent.expression)&&la(T.node.parent.parent)&&T.node.parent.parent.arguments.length>p,M=(jl(T.node.parent)||yh(T.node.parent))&&T.node.parent!==r.parent&&T.node.parent.parameters.length>p;if(I||R||M)return!1}}return!0;case 262:return u.name&&eZe(e,t,u.name)?SPe(u,r,l):!0;case 218:case 219:return SPe(u,r,l);case 178:return!1;case 177:return!0;default:return C.failBadSyntaxKind(u)}}function eZe(e,t,r){return!!Os.Core.eachSymbolReferenceInFile(r,e,t,i=>Ve(i)&&la(i.parent)&&i.parent.arguments.includes(i))}function SPe(e,t,r){let i=e.parameters,o=i.indexOf(t);return C.assert(o!==-1,"The parameter should already be in the list"),r?i.slice(o+1).every(s=>Ve(s.name)&&!s.symbol.isReferenced):o===i.length-1}function tZe(e){return(_r(e.parent)&&e.parent.left===e||(yH(e.parent)||Qy(e.parent))&&e.parent.operand===e)&&eu(e.parent.parent)}var UO,j$,U$,y9,H$,Xfe,nZe=A({"src/services/codefixes/fixUnusedIdentifier.ts"(){"use strict";ci(),xa(),UO="unusedIdentifier",j$="unusedIdentifier_prefix",U$="unusedIdentifier_delete",y9="unusedIdentifier_deleteImports",H$="unusedIdentifier_infer",Xfe=[f._0_is_declared_but_its_value_is_never_read.code,f._0_is_declared_but_never_used.code,f.Property_0_is_declared_but_its_value_is_never_read.code,f.All_imports_in_import_declaration_are_unused.code,f.All_destructured_elements_are_unused.code,f.All_variables_are_unused.code,f.All_type_parameters_are_unused.code],Aa({errorCodes:Xfe,getCodeActions(e){let{errorCode:t,sourceFile:r,program:i,cancellationToken:o}=e,s=i.getTypeChecker(),l=i.getSourceFiles(),u=po(r,e.span.start);if(am(u))return[jO(hr.ChangeTracker.with(e,b=>b.delete(r,u)),f.Remove_template_tag)];if(u.kind===30){let b=hr.ChangeTracker.with(e,T=>hPe(T,r,u));return[jO(b,f.Remove_type_parameters)]}let p=gPe(u);if(p){let b=hr.ChangeTracker.with(e,T=>T.delete(r,p));return[ca(UO,b,[f.Remove_import_from_0,yoe(p)],y9,f.Delete_all_unused_imports)]}else if(Kfe(u)){let b=hr.ChangeTracker.with(e,T=>V$(r,u,T,s,l,i,o,!1));if(b.length)return[ca(UO,b,[f.Remove_unused_declaration_for_Colon_0,u.getText(r)],y9,f.Delete_all_unused_imports)]}if(om(u.parent)||U1(u.parent)){if(Co(u.parent.parent)){let b=u.parent.elements,T=[b.length>1?f.Remove_unused_declarations_for_Colon_0:f.Remove_unused_declaration_for_Colon_0,Ft(b,I=>I.getText(r)).join(", ")];return[jO(hr.ChangeTracker.with(e,I=>KQe(I,r,u.parent)),T)]}return[jO(hr.ChangeTracker.with(e,b=>XQe(e,b,r,u.parent)),f.Remove_unused_destructuring_declaration)]}if(vPe(r,u))return[jO(hr.ChangeTracker.with(e,b=>yPe(b,r,u.parent)),f.Remove_variable_statement)];let g=[];if(u.kind===140){let b=hr.ChangeTracker.with(e,I=>_Pe(I,r,u)),T=aa(u.parent,MS).typeParameter.name.text;g.push(ca(UO,b,[f.Replace_infer_0_with_unknown,T],H$,f.Replace_all_unused_infer_with_unknown))}else{let b=hr.ChangeTracker.with(e,T=>V$(r,u,T,s,l,i,o,!1));if(b.length){let T=Za(u.parent)?u.parent:u;g.push(jO(b,[f.Remove_unused_declaration_for_Colon_0,T.getText(r)]))}}let m=hr.ChangeTracker.with(e,b=>bPe(b,t,r,u));return m.length&&g.push(ca(UO,m,[f.Prefix_0_with_an_underscore,u.getText(r)],j$,f.Prefix_all_unused_declarations_with_where_possible)),g},fixIds:[j$,U$,y9,H$],getAllCodeActions:e=>{let{sourceFile:t,program:r,cancellationToken:i}=e,o=r.getTypeChecker(),s=r.getSourceFiles();return Ss(e,Xfe,(l,u)=>{let p=po(t,u.start);switch(e.fixId){case j$:bPe(l,u.code,t,p);break;case y9:{let g=gPe(p);g?l.delete(t,g):Kfe(p)&&V$(t,p,l,o,s,r,i,!0);break}case U$:{if(p.kind===140||Kfe(p))break;if(am(p))l.delete(t,p);else if(p.kind===30)hPe(l,t,p);else if(om(p.parent)){if(p.parent.parent.initializer)break;(!Co(p.parent.parent)||EPe(p.parent.parent,o,s))&&l.delete(t,p.parent.parent)}else{if(U1(p.parent.parent)&&p.parent.parent.parent.initializer)break;vPe(t,p)?yPe(l,t,p.parent):V$(t,p,l,o,s,r,i,!0)}break}case H$:p.kind===140&&_Pe(l,t,p);break;default:C.fail(JSON.stringify(e.fixId))}})}})}});function TPe(e,t,r,i,o){let s=po(t,r),l=zn(s,Ki);if(l.getStart(t)!==s.getStart(t)){let p=JSON.stringify({statementKind:C.formatSyntaxKind(l.kind),tokenKind:C.formatSyntaxKind(s.kind),errorCode:o,start:r,length:i});C.fail("Token and statement should start at the same point. "+p)}let u=(Xo(l.parent)?l.parent:l).parent;if(!Xo(l.parent)||l===Ha(l.parent.statements))switch(u.kind){case 245:if(u.elseStatement){if(Xo(l.parent))break;e.replaceNode(t,l,k.createBlock(et));return}case 247:case 248:e.delete(t,u);return}if(Xo(l.parent)){let p=r+i,g=C.checkDefined(rZe(DU(l.parent.statements,l),m=>m.posTPe(i,e.sourceFile,e.span.start,e.span.length,e.errorCode));return[ca(q$,r,f.Remove_unreachable_code,q$,f.Remove_all_unreachable_code)]},fixIds:[q$],getAllCodeActions:e=>Ss(e,Yfe,(t,r)=>TPe(t,r.file,r.start,r.length,r.code))})}});function APe(e,t,r){let i=po(t,r),o=aa(i.parent,J1),s=i.getStart(t),l=o.statement.getStart(t),u=Af(s,l,t)?l:La(t.text,bs(o,59,t).end,!0);e.deleteRange(t,{pos:s,end:u})}var J$,$fe,oZe=A({"src/services/codefixes/fixUnusedLabel.ts"(){"use strict";ci(),xa(),J$="fixUnusedLabel",$fe=[f.Unused_label.code],Aa({errorCodes:$fe,getCodeActions(e){let t=hr.ChangeTracker.with(e,r=>APe(r,e.sourceFile,e.span.start));return[ca(J$,t,f.Remove_unused_label,J$,f.Remove_all_unused_labels)]},fixIds:[J$],getAllCodeActions:e=>Ss(e,$fe,(t,r)=>APe(t,r.file,r.start))})}});function IPe(e,t,r,i,o){e.replaceNode(t,r,o.typeToTypeNode(i,r,void 0))}function xPe(e,t,r){let i=zn(po(e,t),aZe),o=i&&i.type;return o&&{typeNode:o,type:sZe(r,o)}}function aZe(e){switch(e.kind){case 234:case 179:case 180:case 262:case 177:case 181:case 200:case 174:case 173:case 169:case 172:case 171:case 178:case 265:case 216:case 260:return!0;default:return!1}}function sZe(e,t){if(VR(t)){let r=e.getTypeFromTypeNode(t.type);return r===e.getNeverType()||r===e.getVoidType()?r:e.getUnionType(In([r,e.getUndefinedType()],t.postfix?void 0:e.getNullType()))}return e.getTypeFromTypeNode(t)}var Qfe,K$,Zfe,lZe=A({"src/services/codefixes/fixJSDocTypes.ts"(){"use strict";ci(),xa(),Qfe="fixJSDocTypes_plain",K$="fixJSDocTypes_nullable",Zfe=[f.JSDoc_types_can_only_be_used_inside_documentation_comments.code,f._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,f._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code],Aa({errorCodes:Zfe,getCodeActions(e){let{sourceFile:t}=e,r=e.program.getTypeChecker(),i=xPe(t,e.span.start,r);if(!i)return;let{typeNode:o,type:s}=i,l=o.getText(t),u=[p(s,Qfe,f.Change_all_jsdoc_style_types_to_TypeScript)];return o.kind===321&&u.push(p(s,K$,f.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),u;function p(g,m,b){let T=hr.ChangeTracker.with(e,I=>IPe(I,t,o,g,r));return ca("jdocTypes",T,[f.Change_0_to_1,l,r.typeToString(g)],m,b)}},fixIds:[Qfe,K$],getAllCodeActions(e){let{fixId:t,program:r,sourceFile:i}=e,o=r.getTypeChecker();return Ss(e,Zfe,(s,l)=>{let u=xPe(l.file,l.start,o);if(!u)return;let{typeNode:p,type:g}=u,m=p.kind===321&&t===K$?o.getNullableType(g,32768):g;IPe(s,i,p,m,o)})}})}});function RPe(e,t,r){e.replaceNodeWithText(t,r,`${r.text}()`)}function DPe(e,t){let r=po(e,t);if(zr(r.parent)){let i=r.parent;for(;zr(i.parent);)i=i.parent;return i.name}if(Ve(r))return r}var X$,eme,cZe=A({"src/services/codefixes/fixMissingCallParentheses.ts"(){"use strict";ci(),xa(),X$="fixMissingCallParentheses",eme=[f.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code],Aa({errorCodes:eme,fixIds:[X$],getCodeActions(e){let{sourceFile:t,span:r}=e,i=DPe(t,r.start);if(!i)return;let o=hr.ChangeTracker.with(e,s=>RPe(s,e.sourceFile,i));return[ca(X$,o,f.Add_missing_call_parentheses,X$,f.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>Ss(e,eme,(t,r)=>{let i=DPe(r.file,r.start);i&&RPe(t,r.file,i)})})}});function uZe(e){if(e.type)return e.type;if(Oi(e.parent)&&e.parent.type&&bh(e.parent.type))return e.parent.type.type}function CPe(e,t){let r=po(e,t),i=zp(r);if(!i)return;let o;switch(i.kind){case 174:o=i.name;break;case 262:case 218:o=bs(i,100,e);break;case 219:let s=i.typeParameters?30:21;o=bs(i,s,e)||Ha(i.parameters);break;default:return}return o&&{insertBefore:o,returnType:uZe(i)}}function NPe(e,t,{insertBefore:r,returnType:i}){if(i){let o=PL(i);(!o||o.kind!==80||o.text!=="Promise")&&e.replaceNode(t,i,k.createTypeReferenceNode("Promise",k.createNodeArray([i])))}e.insertModifierBefore(t,134,r)}var Y$,tme,dZe=A({"src/services/codefixes/fixAwaitInSyncFunction.ts"(){"use strict";ci(),xa(),Y$="fixAwaitInSyncFunction",tme=[f.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,f.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,f.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,f.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code],Aa({errorCodes:tme,getCodeActions(e){let{sourceFile:t,span:r}=e,i=CPe(t,r.start);if(!i)return;let o=hr.ChangeTracker.with(e,s=>NPe(s,t,i));return[ca(Y$,o,f.Add_async_modifier_to_containing_function,Y$,f.Add_all_missing_async_modifiers)]},fixIds:[Y$],getAllCodeActions:function(t){let r=new Map;return Ss(t,tme,(i,o)=>{let s=CPe(o.file,o.start);!s||!xm(r,ss(s.insertBefore))||NPe(i,t.sourceFile,s)})}})}});function PPe(e,t,r,i,o){let s,l;if(i===f._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)s=t,l=t+r;else if(i===f._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){let u=o.program.getTypeChecker(),p=po(e,t).parent;C.assert(Ly(p),"error span of fixPropertyOverrideAccessor should only be on an accessor");let g=p.parent;C.assert(pi(g),"erroneous accessors should only be inside classes");let m=ah(yme(g,u));if(!m)return[];let b=Hi(Zx(p.name)),T=u.getPropertyOfType(u.getTypeAtLocation(m),b);if(!T||!T.valueDeclaration)return[];s=T.valueDeclaration.pos,l=T.valueDeclaration.end,e=Vn(T.valueDeclaration)}else C.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+i);return qPe(e,o.program,s,l,o,f.Generate_get_and_set_accessors.message)}var nme,$$,pZe=A({"src/services/codefixes/fixPropertyOverrideAccessor.ts"(){"use strict";ci(),xa(),nme=[f._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,f._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],$$="fixPropertyOverrideAccessor",Aa({errorCodes:nme,getCodeActions(e){let t=PPe(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(t)return[ca($$,t,f.Generate_get_and_set_accessors,$$,f.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[$$],getAllCodeActions:e=>Ss(e,nme,(t,r)=>{let i=PPe(r.file,r.start,r.length,r.code,e);if(i)for(let o of i)t.pushRaw(e.sourceFile,o)})})}});function fZe(e,t){switch(e){case f.Parameter_0_implicitly_has_an_1_type.code:case f.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return vp(zp(t))?f.Infer_type_of_0_from_usage:f.Infer_parameter_types_from_usage;case f.Rest_parameter_0_implicitly_has_an_any_type.code:case f.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return f.Infer_parameter_types_from_usage;case f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return f.Infer_this_type_of_0_from_usage;default:return f.Infer_type_of_0_from_usage}}function mZe(e){switch(e){case f.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return f.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case f.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return f.Variable_0_implicitly_has_an_1_type.code;case f.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return f.Parameter_0_implicitly_has_an_1_type.code;case f.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return f.Rest_parameter_0_implicitly_has_an_any_type.code;case f.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return f.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case f._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return f._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case f.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return f.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case f.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return f.Member_0_implicitly_has_an_1_type.code}return e}function MPe(e,t,r,i,o,s,l,u,p){if(!hC(r.kind)&&r.kind!==80&&r.kind!==26&&r.kind!==110)return;let{parent:g}=r,m=LI(t,o,p,u);switch(i=mZe(i),i){case f.Member_0_implicitly_has_an_1_type.code:case f.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(Oi(g)&&l(g)||Jo(g)||gp(g))return LPe(e,m,t,g,o,u,s),m.writeFixes(e),g;if(zr(g)){let I=HO(g.name,o,s),R=mP(I,g,o,u);if(R){let M=k.createJSDocTypeTag(void 0,k.createJSDocTypeExpression(R),void 0);e.addJSDocTags(t,aa(g.parent.parent,eu),[M])}return m.writeFixes(e),g}return;case f.Variable_0_implicitly_has_an_1_type.code:{let I=o.getTypeChecker().getSymbolAtLocation(r);return I&&I.valueDeclaration&&Oi(I.valueDeclaration)&&l(I.valueDeclaration)?(LPe(e,m,Vn(I.valueDeclaration),I.valueDeclaration,o,u,s),m.writeFixes(e),I.valueDeclaration):void 0}}let b=zp(r);if(b===void 0)return;let T;switch(i){case f.Parameter_0_implicitly_has_an_1_type.code:if(vp(b)){kPe(e,m,t,b,o,u,s),T=b;break}case f.Rest_parameter_0_implicitly_has_an_any_type.code:if(l(b)){let I=aa(g,Co);_Ze(e,m,t,I,b,o,u,s),T=I}break;case f.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case f._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:Zp(b)&&Ve(b.name)&&(Q$(e,m,t,b,HO(b.name,o,s),o,u),T=b);break;case f.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:vp(b)&&(kPe(e,m,t,b,o,u,s),T=b);break;case f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:hr.isThisTypeAnnotatable(b)&&l(b)&&(hZe(e,t,b,o,u,s),T=b);break;default:return C.fail(String(i))}return m.writeFixes(e),T}function LPe(e,t,r,i,o,s,l){Ve(i.name)&&Q$(e,t,r,i,HO(i.name,o,l),o,s)}function _Ze(e,t,r,i,o,s,l,u){if(!Ve(i.name))return;let p=yZe(o,r,s,u);if(C.assert(o.parameters.length===p.length,"Parameter count and inference count should match"),cr(o))wPe(e,r,p,s,l);else{let g=Bs(o)&&!bs(o,21,r);g&&e.insertNodeBefore(r,Ha(o.parameters),k.createToken(21));for(let{declaration:m,type:b}of p)m&&!m.type&&!m.initializer&&Q$(e,t,r,m,b,s,l);g&&e.insertNodeAfter(r,Ya(o.parameters),k.createToken(22))}}function hZe(e,t,r,i,o,s){let l=OPe(r,t,i,s);if(!l||!l.length)return;let u=ime(i,l,s).thisParameter(),p=mP(u,r,i,o);p&&(cr(r)?gZe(e,t,r,p):e.tryInsertThisTypeAnnotation(t,r,p))}function gZe(e,t,r,i){e.addJSDocTags(t,r,[k.createJSDocThisTag(void 0,k.createJSDocTypeExpression(i))])}function kPe(e,t,r,i,o,s,l){let u=Xc(i.parameters);if(u&&Ve(i.name)&&Ve(u.name)){let p=HO(i.name,o,l);p===o.getTypeChecker().getAnyType()&&(p=HO(u.name,o,l)),cr(i)?wPe(e,r,[{declaration:u,type:p}],o,s):Q$(e,t,r,u,p,o,s)}}function Q$(e,t,r,i,o,s,l){let u=mP(o,i,s,l);if(u)if(cr(r)&&i.kind!==171){let p=Oi(i)?ai(i.parent.parent,Ml):i;if(!p)return;let g=k.createJSDocTypeExpression(u),m=Zp(i)?k.createJSDocReturnTag(void 0,g,void 0):k.createJSDocTypeTag(void 0,g,void 0);e.addJSDocTags(r,p,[m])}else vZe(u,i,r,e,t,as(s.getCompilerOptions()))||e.tryInsertTypeAnnotation(r,i,u)}function vZe(e,t,r,i,o,s){let l=wI(e,s);return l&&i.tryInsertTypeAnnotation(r,t,l.typeNode)?(Ke(l.symbols,u=>o.addImportFromExportedSymbol(u,!0)),!0):!1}function wPe(e,t,r,i,o){let s=r.length&&r[0].declaration.parent;if(!s)return;let l=Vi(r,u=>{let p=u.declaration;if(p.initializer||i0(p)||!Ve(p.name))return;let g=u.type&&mP(u.type,p,i,o);if(g){let m=k.cloneNode(p.name);return fr(m,7168),{name:k.cloneNode(p.name),param:p,isOptional:!!u.isOptional,typeNode:g}}});if(l.length)if(Bs(s)||ws(s)){let u=Bs(s)&&!bs(s,21,t);u&&e.insertNodeBefore(t,Ha(s.parameters),k.createToken(21)),Ke(l,({typeNode:p,param:g})=>{let m=k.createJSDocTypeTag(void 0,k.createJSDocTypeExpression(p)),b=k.createJSDocComment(void 0,[m]);e.insertNodeAt(t,g.getStart(t),b,{suffix:" "})}),u&&e.insertNodeAfter(t,Ya(s.parameters),k.createToken(22))}else{let u=Ft(l,({name:p,typeNode:g,isOptional:m})=>k.createJSDocParameterTag(void 0,p,!!m,k.createJSDocTypeExpression(g),!1,void 0));e.addJSDocTags(t,s,u)}}function rme(e,t,r){return Vi(Os.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),r),i=>i.kind!==Os.EntryKind.Span?ai(i.node,Ve):void 0)}function HO(e,t,r){let i=rme(e,t,r);return ime(t,i,r).single()}function yZe(e,t,r,i){let o=OPe(e,t,r,i);return o&&ime(r,o,i).parameters(e)||e.parameters.map(s=>({declaration:s,type:Ve(s.name)?HO(s.name,r,i):r.getTypeChecker().getAnyType()}))}function OPe(e,t,r,i){let o;switch(e.kind){case 176:o=bs(e,137,t);break;case 219:case 218:let s=e.parent;o=(Oi(s)||Jo(s))&&Ve(s.name)?s.name:e.name;break;case 262:case 174:case 173:o=e.name;break}if(o)return rme(o,r,i)}function ime(e,t,r){let i=e.getTypeChecker(),o={string:()=>i.getStringType(),number:()=>i.getNumberType(),Array:Ce=>i.createArrayType(Ce),Promise:Ce=>i.createPromiseType(Ce)},s=[i.getStringType(),i.getNumberType(),i.createArrayType(i.getAnyType()),i.createPromiseType(i.getAnyType())];return{single:p,parameters:g,thisParameter:m};function l(){return{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}}function u(Ce){let Me=new Map;for(let At of Ce)At.properties&&At.properties.forEach((Se,je)=>{Me.has(je)||Me.set(je,[]),Me.get(je).push(Se)});let Fe=new Map;return Me.forEach((At,Se)=>{Fe.set(Se,u(At))}),{isNumber:Ce.some(At=>At.isNumber),isString:Ce.some(At=>At.isString),isNumberOrString:Ce.some(At=>At.isNumberOrString),candidateTypes:Zi(Ce,At=>At.candidateTypes),properties:Fe,calls:Zi(Ce,At=>At.calls),constructs:Zi(Ce,At=>At.constructs),numberIndex:Ke(Ce,At=>At.numberIndex),stringIndex:Ke(Ce,At=>At.stringIndex),candidateThisTypes:Zi(Ce,At=>At.candidateThisTypes),inferredTypes:void 0}}function p(){return he(b(t))}function g(Ce){if(t.length===0||!Ce.parameters)return;let Me=l();for(let At of t)r.throwIfCancellationRequested(),T(At,Me);let Fe=[...Me.constructs||[],...Me.calls||[]];return Ce.parameters.map((At,Se)=>{let je=[],at=$h(At),Bt=!1;for(let Qe of Fe)if(Qe.argumentTypes.length<=Se)Bt=cr(Ce),je.push(i.getUndefinedType());else if(at)for(let gt=Se;gtFe.every(Se=>!Se(At)))}function ne(Ce){return he($(Ce))}function he(Ce){if(!Ce.length)return i.getAnyType();let Me=i.getUnionType([i.getStringType(),i.getNumberType()]),At=G(Ce,[{high:je=>je===i.getStringType()||je===i.getNumberType(),low:je=>je===Me},{high:je=>!(je.flags&16385),low:je=>!!(je.flags&16385)},{high:je=>!(je.flags&114689)&&!(Wr(je)&16),low:je=>!!(Wr(je)&16)}]),Se=At.filter(je=>Wr(je)&16);return Se.length&&(At=At.filter(je=>!(Wr(je)&16)),At.push(ye(Se))),i.getWidenedType(i.getUnionType(At.map(i.getBaseTypeOfLiteralType),2))}function ye(Ce){if(Ce.length===1)return Ce[0];let Me=[],Fe=[],At=[],Se=[],je=!1,at=!1,Bt=Xp();for(let gt of Ce){for(let Nn of i.getPropertiesOfType(gt))Bt.add(Nn.escapedName,Nn.valueDeclaration?i.getTypeOfSymbolAtLocation(Nn,Nn.valueDeclaration):i.getAnyType());Me.push(...i.getSignaturesOfType(gt,0)),Fe.push(...i.getSignaturesOfType(gt,1));let nn=i.getIndexInfoOfType(gt,0);nn&&(At.push(nn.type),je=je||nn.isReadonly);let rn=i.getIndexInfoOfType(gt,1);rn&&(Se.push(rn.type),at=at||rn.isReadonly)}let yt=fne(Bt,(gt,nn)=>{let rn=nn.lengthi.getBaseTypeOfLiteralType(Bt)),at=(At=Ce.calls)!=null&&At.length?Y(Ce):void 0;return at&&je?Se.push(i.getUnionType([at,...je],2)):(at&&Se.push(at),De(je)&&Se.push(...je)),Se.push(...oe(Ce)),Se}function Y(Ce){let Me=new Map;Ce.properties&&Ce.properties.forEach((je,at)=>{let Bt=i.createSymbol(4,at);Bt.links.type=ne(je),Me.set(at,Bt)});let Fe=Ce.calls?[Le(Ce.calls)]:[],At=Ce.constructs?[Le(Ce.constructs)]:[],Se=Ce.stringIndex?[i.createIndexInfo(i.getStringType(),ne(Ce.stringIndex),!1)]:[];return i.createAnonymousType(void 0,Me,Fe,At,Se)}function oe(Ce){if(!Ce.properties||!Ce.properties.size)return[];let Me=s.filter(Fe=>fe(Fe,Ce));return 0Ne(Fe,Ce)):[]}function fe(Ce,Me){return Me.properties?!Bc(Me.properties,(Fe,At)=>{let Se=i.getTypeOfPropertyOfType(Ce,At);return Se?Fe.calls?!i.getSignaturesOfType(Se,0).length||!i.isTypeAssignableTo(Se,ve(Fe.calls)):!i.isTypeAssignableTo(Se,ne(Fe)):!0}):!1}function Ne(Ce,Me){if(!(Wr(Ce)&4)||!Me.properties)return Ce;let Fe=Ce.target,At=ah(Fe.typeParameters);if(!At)return Ce;let Se=[];return Me.properties.forEach((je,at)=>{let Bt=i.getTypeOfPropertyOfType(Fe,at);C.assert(!!Bt,"generic should have all the properties of its reference."),Se.push(...me(Bt,ne(je),At))}),o[Ce.symbol.escapedName](he(Se))}function me(Ce,Me,Fe){if(Ce===Fe)return[Me];if(Ce.flags&3145728)return Zi(Ce.types,je=>me(je,Me,Fe));if(Wr(Ce)&4&&Wr(Me)&4){let je=i.getTypeArguments(Ce),at=i.getTypeArguments(Me),Bt=[];if(je&&at)for(let yt=0;ytSe.argumentTypes.length));for(let Se=0;Seat.argumentTypes[Se]||i.getUndefinedType())),Ce.some(at=>at.argumentTypes[Se]===void 0)&&(je.flags|=16777216),Me.push(je)}let At=ne(u(Ce.map(Se=>Se.return_)));return i.createSignature(void 0,void 0,void 0,Me,At,void 0,Fe,0)}function He(Ce,Me){Me&&!(Me.flags&1)&&!(Me.flags&131072)&&(Ce.candidateTypes||(Ce.candidateTypes=[])).push(Me)}function Ee(Ce,Me){Me&&!(Me.flags&1)&&!(Me.flags&131072)&&(Ce.candidateThisTypes||(Ce.candidateThisTypes=[])).push(Me)}}var Z$,ome,bZe=A({"src/services/codefixes/inferFromUsage.ts"(){"use strict";ci(),xa(),Z$="inferFromUsage",ome=[f.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,f.Variable_0_implicitly_has_an_1_type.code,f.Parameter_0_implicitly_has_an_1_type.code,f.Rest_parameter_0_implicitly_has_an_any_type.code,f.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,f._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,f.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,f.Member_0_implicitly_has_an_1_type.code,f.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,f.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,f.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,f.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,f.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,f._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,f.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,f.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],Aa({errorCodes:ome,getCodeActions(e){let{sourceFile:t,program:r,span:{start:i},errorCode:o,cancellationToken:s,host:l,preferences:u}=e,p=po(t,i),g,m=hr.ChangeTracker.with(e,T=>{g=MPe(T,t,p,o,r,s,Dv,l,u)}),b=g&&Oo(g);return!b||m.length===0?void 0:[ca(Z$,m,[fZe(o,p),pc(b)],Z$,f.Infer_all_types_from_usage)]},fixIds:[Z$],getAllCodeActions(e){let{sourceFile:t,program:r,cancellationToken:i,host:o,preferences:s}=e,l=xI();return Ss(e,ome,(u,p)=>{MPe(u,t,po(p.file,p.start),p.code,r,i,l,o,s)})}})}});function FPe(e,t,r){if(cr(e))return;let i=po(e,r),o=zn(i,zs),s=o?.type;if(!s)return;let l=t.getTypeFromTypeNode(s),u=t.getAwaitedType(l)||t.getVoidType(),p=t.typeToTypeNode(u,s,void 0);if(p)return{returnTypeNode:s,returnType:l,promisedTypeNode:p,promisedType:u}}function WPe(e,t,r,i){e.replaceNode(t,r,k.createTypeReferenceNode("Promise",[i]))}var eQ,ame,EZe=A({"src/services/codefixes/fixReturnTypeInAsyncFunction.ts"(){"use strict";ci(),xa(),eQ="fixReturnTypeInAsyncFunction",ame=[f.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code],Aa({errorCodes:ame,fixIds:[eQ],getCodeActions:function(t){let{sourceFile:r,program:i,span:o}=t,s=i.getTypeChecker(),l=FPe(r,i.getTypeChecker(),o.start);if(!l)return;let{returnTypeNode:u,returnType:p,promisedTypeNode:g,promisedType:m}=l,b=hr.ChangeTracker.with(t,T=>WPe(T,r,u,g));return[ca(eQ,b,[f.Replace_0_with_Promise_1,s.typeToString(p),s.typeToString(m)],eQ,f.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:e=>Ss(e,ame,(t,r)=>{let i=FPe(r.file,e.program.getTypeChecker(),r.start);i&&WPe(t,r.file,i.returnTypeNode,i.promisedTypeNode)})})}});function zPe(e,t,r,i){let{line:o}=Es(t,r);(!i||Av(i,o))&&e.insertCommentBeforeLine(t,o,r," @ts-ignore")}var sme,lme,cme,SZe=A({"src/services/codefixes/disableJsDiagnostics.ts"(){"use strict";ci(),xa(),sme="disableJsDiagnostics",lme="disableJsDiagnostics",cme=Vi(Object.keys(f),e=>{let t=f[e];return t.category===1?t.code:void 0}),Aa({errorCodes:cme,getCodeActions:function(t){let{sourceFile:r,program:i,span:o,host:s,formatContext:l}=t;if(!cr(r)||!hk(r,i.getCompilerOptions()))return;let u=r.checkJsDirective?"":Qv(s,l.options),p=[i_(sme,[GDe(r.fileName,[aO(r.checkJsDirective?dc(r.checkJsDirective.pos,r.checkJsDirective.end):vu(0,0),`// @ts-nocheck${u}`)])],f.Disable_checking_for_this_file)];return hr.isValidLocationToAddComment(r,o.start)&&p.unshift(ca(sme,hr.ChangeTracker.with(t,g=>zPe(g,r,o.start)),f.Ignore_this_error_message,lme,f.Add_ts_ignore_to_all_error_messages)),p},fixIds:[lme],getAllCodeActions:e=>{let t=new Set;return Ss(e,cme,(r,i)=>{hr.isValidLocationToAddComment(i.file,i.start)&&zPe(r,i.file,i.start,t)})}})}});function ume(e,t,r,i,o,s,l){let u=e.symbol.members;for(let p of t)u.has(p.escapedName)||BPe(p,e,r,i,o,s,l,void 0)}function L2(e){return{trackSymbol:()=>!1,moduleResolverHost:aX(e.program,e.host)}}function BPe(e,t,r,i,o,s,l,u,p=3,g=!1){let m=e.getDeclarations(),b=Xc(m),T=i.program.getTypeChecker(),I=as(i.program.getCompilerOptions()),R=b?.kind??171,M=oe(e,b),N=b?cd(b):0,O=N&256;O|=N&1?1:N&4?4:0,b&&kd(b)&&(O|=512);let H=ne(),K=T.getWidenedType(T.getTypeOfSymbolAtLocation(e,t)),Z=!!(e.flags&16777216),V=!!(t.flags&33554432)||g,ue=af(r,o);switch(R){case 171:case 172:let fe=ue===0?268435456:void 0,Ne=T.typeToTypeNode(K,t,fe,L2(i));if(s){let ie=wI(Ne,I);ie&&(Ne=ie.typeNode,k2(s,ie.symbols))}l(k.createPropertyDeclaration(H,b?ye(M):e.getName(),Z&&p&2?k.createToken(58):void 0,Ne,void 0));break;case 177:case 178:{C.assertIsDefined(m);let ie=T.typeToTypeNode(K,t,void 0,L2(i)),ve=RS(m,b),Le=ve.secondAccessor?[ve.firstAccessor,ve.secondAccessor]:[ve.firstAccessor];if(s){let He=wI(ie,I);He&&(ie=He.typeNode,k2(s,He.symbols))}for(let He of Le)if(Zp(He))l(k.createGetAccessorDeclaration(H,ye(M),et,Y(ie),$(u,ue,V)));else{C.assertNode(He,vp,"The counterpart to a getter should be a setter");let Ee=zC(He),Ce=Ee&&Ve(Ee.name)?Sr(Ee.name):void 0;l(k.createSetAccessorDeclaration(H,ye(M),pme(1,[Ce],[Y(ie)],1,!1),$(u,ue,V)))}break}case 173:case 174:C.assertIsDefined(m);let me=K.isUnion()?Zi(K.types,ie=>ie.getCallSignatures()):K.getCallSignatures();if(!Et(me))break;if(m.length===1){C.assert(me.length===1,"One declaration implies one signature");let ie=me[0];G(ue,ie,H,ye(M),$(u,ue,V));break}for(let ie of me)G(ue,ie,H,ye(M));if(!V)if(m.length>me.length){let ie=T.getSignatureFromDeclaration(m[m.length-1]);G(ue,ie,H,ye(M),$(u,ue))}else C.assert(m.length===me.length,"Declarations and signatures should match count"),l(IZe(T,i,t,me,ye(M),Z&&!!(p&1),H,ue,u));break}function G(fe,Ne,me,ie,ve){let Le=tQ(174,i,fe,Ne,ve,ie,me,Z&&!!(p&1),t,s);Le&&l(Le)}function ne(){let fe;return O&&(fe=Dx(fe,k.createModifiersFromModifierFlags(O))),he()&&(fe=In(fe,k.createToken(164))),fe&&k.createNodeArray(fe)}function he(){return!!(i.program.getCompilerOptions().noImplicitOverride&&b&&F1(b))}function ye(fe){return Ve(fe)&&fe.escapedText==="constructor"?k.createComputedPropertyName(k.createStringLiteral(Sr(fe),ue===0)):sl(fe,!1)}function $(fe,Ne,me){return me?void 0:sl(fe,!1)||fme(Ne)}function Y(fe){return sl(fe,!1)}function oe(fe,Ne){if(Al(fe)&262144){let me=fe.links.nameType;if(me&&nm(me))return k.createIdentifier(Hi(rm(me)))}return sl(Oo(Ne),!1)}}function tQ(e,t,r,i,o,s,l,u,p,g){let m=t.program,b=m.getTypeChecker(),T=as(m.getCompilerOptions()),I=cr(p),R=524545|(r===0?268435456:0),M=b.signatureToSignatureDeclaration(i,e,p,R,L2(t));if(!M)return;let N=I?void 0:M.typeParameters,O=M.parameters,H=I?void 0:M.type;if(g){if(N){let ue=Io(N,G=>{let ne=G.constraint,he=G.default;if(ne){let ye=wI(ne,T);ye&&(ne=ye.typeNode,k2(g,ye.symbols))}if(he){let ye=wI(he,T);ye&&(he=ye.typeNode,k2(g,ye.symbols))}return k.updateTypeParameterDeclaration(G,G.modifiers,G.name,ne,he)});N!==ue&&(N=dt(k.createNodeArray(ue,N.hasTrailingComma),N))}let V=Io(O,ue=>{let G=I?void 0:ue.type;if(G){let ne=wI(G,T);ne&&(G=ne.typeNode,k2(g,ne.symbols))}return k.updateParameterDeclaration(ue,ue.modifiers,ue.dotDotDotToken,ue.name,I?void 0:ue.questionToken,G,ue.initializer)});if(O!==V&&(O=dt(k.createNodeArray(V,O.hasTrailingComma),O)),H){let ue=wI(H,T);ue&&(H=ue.typeNode,k2(g,ue.symbols))}}let K=u?k.createToken(58):void 0,Z=M.asteriskToken;if(ws(M))return k.updateFunctionExpression(M,l,M.asteriskToken,ai(s,Ve),N,O,H,o??M.body);if(Bs(M))return k.updateArrowFunction(M,l,N,O,H,M.equalsGreaterThanToken,o??M.body);if(jl(M))return k.updateMethodDeclaration(M,l,Z,s??k.createIdentifier(""),K,N,O,H,o);if(Sc(M))return k.updateFunctionDeclaration(M,l,M.asteriskToken,ai(s,Ve),N,O,H,o??M.body)}function dme(e,t,r,i,o,s,l){let u=af(t.sourceFile,t.preferences),p=as(t.program.getCompilerOptions()),g=L2(t),m=t.program.getTypeChecker(),b=cr(l),{typeArguments:T,arguments:I,parent:R}=i,M=b?void 0:m.getContextualType(i),N=Ft(I,he=>Ve(he)?he.text:zr(he)&&Ve(he.name)?he.name.text:void 0),O=b?[]:Ft(I,he=>m.getTypeAtLocation(he)),{argumentTypeNodes:H,argumentTypeParameters:K}=jPe(m,r,O,l,p,1,g),Z=s?k.createNodeArray(k.createModifiersFromModifierFlags(s)):void 0,V=Z7(R)?k.createToken(42):void 0,ue=b?void 0:TZe(m,K,T),G=pme(I.length,N,H,void 0,b),ne=b||M===void 0?void 0:m.typeToTypeNode(M,l,void 0,g);switch(e){case 174:return k.createMethodDeclaration(Z,V,o,void 0,ue,G,ne,fme(u));case 173:return k.createMethodSignature(Z,o,void 0,ue,G,ne===void 0?k.createKeywordTypeNode(159):ne);case 262:return C.assert(typeof o=="string"||Ve(o),"Unexpected name"),k.createFunctionDeclaration(Z,V,o,ue,G,ne,b9(f.Function_not_implemented.message,u));default:C.fail("Unexpected kind")}}function TZe(e,t,r){let i=new Set(t.map(s=>s[0])),o=new Map(t);if(r){let s=r.filter(u=>!t.some(p=>{var g;return e.getTypeAtLocation(u)===((g=p[1])==null?void 0:g.argumentType)})),l=i.size+s.length;for(let u=0;i.size{var l;return k.createTypeParameterDeclaration(void 0,s,(l=o.get(s))==null?void 0:l.constraint)})}function GPe(e){return 84+e<=90?String.fromCharCode(84+e):`T${e}`}function nQ(e,t,r,i,o,s,l){let u=e.typeToTypeNode(r,i,s,l);if(u&&lg(u)){let p=wI(u,o);p&&(k2(t,p.symbols),u=p.typeNode)}return sl(u)}function VPe(e){return e.isUnionOrIntersection()?e.types.some(VPe):e.flags&262144}function jPe(e,t,r,i,o,s,l){let u=[],p=new Map;for(let g=0;g=i?k.createToken(58):void 0,o?void 0:r?.[u]||k.createKeywordTypeNode(159),void 0);s.push(m)}return s}function IZe(e,t,r,i,o,s,l,u,p){let g=i[0],m=i[0].minArgumentCount,b=!1;for(let M of i)m=Math.min(M.minArgumentCount,m),Xu(M)&&(b=!0),M.parameters.length>=g.parameters.length&&(!Xu(M)||Xu(g))&&(g=M);let T=g.parameters.length-(Xu(g)?1:0),I=g.parameters.map(M=>M.name),R=pme(T,I,void 0,m,!1);if(b){let M=k.createParameterDeclaration(void 0,k.createToken(26),I[T]||"rest",T>=m?k.createToken(58):void 0,k.createArrayTypeNode(k.createKeywordTypeNode(159)),void 0);R.push(M)}return RZe(l,o,s,void 0,R,xZe(i,e,t,r),u,p)}function xZe(e,t,r,i){if(De(e)){let o=t.getUnionType(Ft(e,t.getReturnTypeOfSignature));return t.typeToTypeNode(o,i,1,L2(r))}}function RZe(e,t,r,i,o,s,l,u){return k.createMethodDeclaration(e,void 0,t,r?k.createToken(58):void 0,i,o,s,u||fme(l))}function fme(e){return b9(f.Method_not_implemented.message,e)}function b9(e,t){return k.createBlock([k.createThrowStatement(k.createNewExpression(k.createIdentifier("Error"),void 0,[k.createStringLiteral(e,t===0)]))],!0)}function mme(e,t,r){let i=IC(t);if(!i)return;let o=hme(i,"compilerOptions");if(o===void 0){e.insertNodeAtObjectStart(t,i,rQ("compilerOptions",k.createObjectLiteralExpression(r.map(([l,u])=>rQ(l,u)),!0)));return}let s=o.initializer;if(wa(s))for(let[l,u]of r){let p=hme(s,l);p===void 0?e.insertNodeAtObjectStart(t,s,rQ(l,u)):e.replaceNode(t,p.initializer,u)}}function _me(e,t,r,i){mme(e,t,[[r,i]])}function rQ(e,t){return k.createPropertyAssignment(k.createStringLiteral(e),t)}function hme(e,t){return vn(e.properties,r=>_c(r)&&!!r.name&&Na(r.name)&&r.name.text===t)}function wI(e,t){let r,i=rt(e,o,qi);if(r&&i)return{typeNode:i,symbols:r};function o(s){if(zy(s)&&s.qualifier){let l=Bp(s.qualifier),u=xW(l.symbol,t),p=u!==l.text?HPe(s.qualifier,k.createIdentifier(u)):s.qualifier;r=In(r,l.symbol);let g=Bn(s.typeArguments,o,qi);return k.createTypeReferenceNode(p,g)}return An(s,o,void 0)}}function HPe(e,t){return e.kind===80?t:k.createQualifiedName(HPe(e.left,t),e.right)}function k2(e,t){t.forEach(r=>e.addImportFromExportedSymbol(r,!0))}function gme(e,t){let r=ql(t),i=po(e,t.start);for(;i.end(e[e.Method=1]="Method",e[e.Property=2]="Property",e[e.All=3]="All",e))(vme||{})}});function qPe(e,t,r,i,o,s){let l=XPe(e,t,r,i);if(!l||NI.isRefactorErrorInfo(l))return;let u=hr.ChangeTracker.fromContext(o),{isStatic:p,isReadonly:g,fieldName:m,accessorName:b,originalName:T,type:I,container:R,declaration:M}=l;Sp(m),Sp(b),Sp(M),Sp(R);let N,O;if(pi(R)){let K=cd(M);if(ld(e)){let Z=k.createModifiersFromModifierFlags(K);N=Z,O=Z}else N=k.createModifiersFromModifierFlags(PZe(K)),O=k.createModifiersFromModifierFlags(MZe(K));US(M)&&(O=xo(Ny(M),O))}FZe(u,e,M,I,m,O);let H=LZe(m,b,I,N,p,R);if(Sp(H),YPe(u,e,H,M,R),g){let K=ig(R);K&&WZe(u,e,K,m.text,T)}else{let K=kZe(m,b,I,N,p,R);Sp(K),YPe(u,e,K,M,R)}return u.getChanges()}function CZe(e){return Ve(e)||Na(e)}function NZe(e){return pp(e,e.parent)||Jo(e)||_c(e)}function JPe(e,t){return Ve(t)?k.createIdentifier(e):k.createStringLiteral(e)}function KPe(e,t,r){let i=t?r.name:k.createThis();return Ve(e)?k.createPropertyAccessExpression(i,e):k.createElementAccessExpression(i,k.createStringLiteralFromNode(e))}function PZe(e){return e&=-9,e&=-3,e&4||(e|=1),e}function MZe(e){return e&=-2,e&=-5,e|=2,e}function XPe(e,t,r,i,o=!0){let s=po(e,r),l=r===i&&o,u=zn(s.parent,NZe),p=271;if(!u||!(XF(u.name,e,r,i)||l))return{error:Bo(f.Could_not_find_property_for_which_to_generate_accessor)};if(!CZe(u.name))return{error:Bo(f.Name_is_not_valid)};if((cd(u)&98303|p)!==p)return{error:Bo(f.Can_only_convert_property_with_modifier)};let g=u.name.text,m=PX(g),b=JPe(m?g:tT(`_${g}`,e),u.name),T=JPe(m?tT(g.substring(1),e):g,u.name);return{isStatic:fc(u),isReadonly:BC(u),type:zZe(u,t),container:u.kind===169?u.parent.parent:u.parent,originalName:u.name.text,declaration:u,fieldName:b,accessorName:T,renameAccessor:m}}function LZe(e,t,r,i,o,s){return k.createGetAccessorDeclaration(i,t,[],r,k.createBlock([k.createReturnStatement(KPe(e,o,s))],!0))}function kZe(e,t,r,i,o,s){return k.createSetAccessorDeclaration(i,t,[k.createParameterDeclaration(void 0,void 0,k.createIdentifier("value"),void 0,r)],k.createBlock([k.createExpressionStatement(k.createAssignment(KPe(e,o,s),k.createIdentifier("value")))],!0))}function wZe(e,t,r,i,o,s){let l=k.updatePropertyDeclaration(r,s,o,r.questionToken||r.exclamationToken,i,r.initializer);e.replaceNode(t,r,l)}function OZe(e,t,r,i){let o=k.updatePropertyAssignment(r,i,r.initializer);(o.modifiers||o.questionToken||o.exclamationToken)&&(o===r&&(o=k.cloneNode(o)),o.modifiers=void 0,o.questionToken=void 0,o.exclamationToken=void 0),e.replacePropertyAssignment(t,r,o)}function FZe(e,t,r,i,o,s){Jo(r)?wZe(e,t,r,i,o,s):_c(r)?OZe(e,t,r,o):e.replaceNode(t,r,k.updateParameterDeclaration(r,s,r.dotDotDotToken,aa(o,Ve),r.questionToken,r.type,r.initializer))}function YPe(e,t,r,i,o){pp(i,i.parent)?e.insertMemberAtStart(t,o,r):_c(i)?e.insertNodeAfterComma(t,i,r):e.insertNodeAfter(t,i,r)}function WZe(e,t,r,i,o){r.body&&r.body.forEachChild(function s(l){Ys(l)&&l.expression.kind===110&&Na(l.argumentExpression)&&l.argumentExpression.text===o&&BA(l)&&e.replaceNode(t,l.argumentExpression,k.createStringLiteral(i)),zr(l)&&l.expression.kind===110&&l.name.text===o&&BA(l)&&e.replaceNode(t,l.name,k.createIdentifier(i)),!ea(l)&&!pi(l)&&l.forEachChild(s)})}function zZe(e,t){let r=Kie(e);if(Jo(e)&&r&&e.questionToken){let i=t.getTypeChecker(),o=i.getTypeFromTypeNode(r);if(!i.isTypeAssignableTo(i.getUndefinedType(),o)){let s=Xy(r)?r.types:[r];return k.createUnionTypeNode([...s,k.createKeywordTypeNode(157)])}}return r}function yme(e,t){let r=[];for(;e;){let i=M1(e),o=i&&t.getSymbolAtLocation(i.expression);if(!o)break;let s=o.flags&2097152?t.getAliasedSymbol(o):o,l=s.declarations&&vn(s.declarations,pi);if(!l)break;r.push(l),e=l}return r}var BZe=A({"src/services/codefixes/generateAccessors.ts"(){"use strict";ci()}});function GZe(e,t){let r=Vn(t),i=dR(t),o=e.program.getCompilerOptions(),s=[];return s.push($Pe(e,r,t,$v(i.name,void 0,t.moduleSpecifier,af(r,e.preferences)))),ku(o)===1&&s.push($Pe(e,r,t,k.createImportEqualsDeclaration(void 0,!1,i.name,k.createExternalModuleReference(t.moduleSpecifier)))),s}function $Pe(e,t,r,i){let o=hr.ChangeTracker.with(e,s=>s.replaceNode(t,r,i));return i_(bme,o,[f.Replace_import_with_0,o[0].textChanges[0].newText])}function VZe(e){let t=e.sourceFile,r=f.This_expression_is_not_callable.code===e.errorCode?213:214,i=zn(po(t,e.span.start),s=>s.kind===r);if(!i)return[];let o=i.expression;return QPe(e,o)}function jZe(e){let t=e.sourceFile,r=zn(po(t,e.span.start),i=>i.getStart()===e.span.start&&i.getEnd()===e.span.start+e.span.length);return r?QPe(e,r):[]}function QPe(e,t){let r=e.program.getTypeChecker().getTypeAtLocation(t);if(!(r.symbol&&fh(r.symbol)&&r.symbol.links.originatingImport))return[];let i=[],o=r.symbol.links.originatingImport;if(Wp(o)||Jr(i,GZe(e,o)),bt(t)&&!(od(t.parent)&&t.parent.name===t)){let s=e.sourceFile,l=hr.ChangeTracker.with(e,u=>u.replaceNode(s,t,k.createPropertyAccessExpression(t,"default"),{}));i.push(i_(bme,l,f.Use_synthetic_default_member))}return i}var bme,UZe=A({"src/services/codefixes/fixInvalidImportSyntax.ts"(){"use strict";ci(),xa(),bme="invalidImportSyntax",Aa({errorCodes:[f.This_expression_is_not_callable.code,f.This_expression_is_not_constructable.code],getCodeActions:VZe}),Aa({errorCodes:[f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,f.Type_0_does_not_satisfy_the_constraint_1.code,f.Type_0_is_not_assignable_to_type_1.code,f.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,f.Type_predicate_0_is_not_assignable_to_1.code,f.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,f._0_index_type_1_is_not_assignable_to_2_index_type_3.code,f.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,f.Property_0_in_type_1_is_not_assignable_to_type_2.code,f.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,f.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:jZe})}});function ZPe(e,t){let r=po(e,t);if(Ve(r)&&Jo(r.parent)){let i=yu(r.parent);if(i)return{type:i,prop:r.parent,isJs:cr(r.parent)}}}function HZe(e,t){if(t.isJs)return;let r=hr.ChangeTracker.with(e,i=>eMe(i,e.sourceFile,t.prop));return ca(iQ,r,[f.Add_definite_assignment_assertion_to_property_0,t.prop.getText()],oQ,f.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function eMe(e,t,r){Sp(r);let i=k.updatePropertyDeclaration(r,r.modifiers,r.name,k.createToken(54),r.type,r.initializer);e.replaceNode(t,r,i)}function qZe(e,t){let r=hr.ChangeTracker.with(e,i=>tMe(i,e.sourceFile,t));return ca(iQ,r,[f.Add_undefined_type_to_property_0,t.prop.name.getText()],aQ,f.Add_undefined_type_to_all_uninitialized_properties)}function tMe(e,t,r){let i=k.createKeywordTypeNode(157),o=Xy(r.type)?r.type.types.concat(i):[r.type,i],s=k.createUnionTypeNode(o);r.isJs?e.addJSDocTags(t,r.prop,[k.createJSDocTypeTag(void 0,k.createJSDocTypeExpression(s))]):e.replaceNode(t,r.type,s)}function JZe(e,t){if(t.isJs)return;let r=e.program.getTypeChecker(),i=rMe(r,t.prop);if(!i)return;let o=hr.ChangeTracker.with(e,s=>nMe(s,e.sourceFile,t.prop,i));return ca(iQ,o,[f.Add_initializer_to_property_0,t.prop.name.getText()],sQ,f.Add_initializers_to_all_uninitialized_properties)}function nMe(e,t,r,i){Sp(r);let o=k.updatePropertyDeclaration(r,r.modifiers,r.name,r.questionToken,r.type,i);e.replaceNode(t,r,o)}function rMe(e,t){return iMe(e,e.getTypeFromTypeNode(t.type))}function iMe(e,t){if(t.flags&512)return t===e.getFalseType()||t===e.getFalseType(!0)?k.createFalse():k.createTrue();if(t.isStringLiteral())return k.createStringLiteral(t.value);if(t.isNumberLiteral())return k.createNumericLiteral(t.value);if(t.flags&2048)return k.createBigIntLiteral(t.value);if(t.isUnion())return Zt(t.types,r=>iMe(e,r));if(t.isClass()){let r=Bg(t.symbol);if(!r||ei(r,64))return;let i=ig(r);return i&&i.parameters.length?void 0:k.createNewExpression(k.createIdentifier(t.symbol.name),void 0,void 0)}else if(e.isArrayLikeType(t))return k.createArrayLiteralExpression()}var iQ,oQ,aQ,sQ,Eme,KZe=A({"src/services/codefixes/fixStrictClassInitialization.ts"(){"use strict";ci(),xa(),iQ="strictClassInitialization",oQ="addMissingPropertyDefiniteAssignmentAssertions",aQ="addMissingPropertyUndefinedType",sQ="addMissingPropertyInitializer",Eme=[f.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code],Aa({errorCodes:Eme,getCodeActions:function(t){let r=ZPe(t.sourceFile,t.span.start);if(!r)return;let i=[];return In(i,qZe(t,r)),In(i,HZe(t,r)),In(i,JZe(t,r)),i},fixIds:[oQ,aQ,sQ],getAllCodeActions:e=>Ss(e,Eme,(t,r)=>{let i=ZPe(r.file,r.start);if(i)switch(e.fixId){case oQ:eMe(t,r.file,i.prop);break;case aQ:tMe(t,r.file,i);break;case sQ:let o=e.program.getTypeChecker(),s=rMe(o,i.prop);if(!s)return;nMe(t,r.file,i.prop,s);break;default:C.fail(JSON.stringify(e.fixId))}})})}});function oMe(e,t,r){let{allowSyntheticDefaults:i,defaultImportName:o,namedImports:s,statement:l,required:u}=r;e.replaceNode(t,l,o&&!i?k.createImportEqualsDeclaration(void 0,!1,o,k.createExternalModuleReference(u)):k.createImportDeclaration(void 0,k.createImportClause(!1,o,s),u,void 0))}function aMe(e,t,r){let{parent:i}=po(e,r);Sd(i,!0)||C.failBadSyntaxKind(i);let o=aa(i.parent,Oi),s=ai(o.name,Ve),l=om(o.name)?XZe(o.name):void 0;if(s||l)return{allowSyntheticDefaults:NS(t.getCompilerOptions()),defaultImportName:s,namedImports:l,statement:aa(o.parent.parent,Ml),required:Ha(i.arguments)}}function XZe(e){let t=[];for(let r of e.elements){if(!Ve(r.name)||r.initializer)return;t.push(k.createImportSpecifier(!1,ai(r.propertyName,Ve),r.name))}if(t.length)return k.createNamedImports(t)}var lQ,Sme,YZe=A({"src/services/codefixes/requireInTs.ts"(){"use strict";ci(),xa(),lQ="requireInTs",Sme=[f.require_call_may_be_converted_to_an_import.code],Aa({errorCodes:Sme,getCodeActions(e){let t=aMe(e.sourceFile,e.program,e.span.start);if(!t)return;let r=hr.ChangeTracker.with(e,i=>oMe(i,e.sourceFile,t));return[ca(lQ,r,f.Convert_require_to_import,lQ,f.Convert_all_require_to_import)]},fixIds:[lQ],getAllCodeActions:e=>Ss(e,Sme,(t,r)=>{let i=aMe(r.file,e.program,r.start);i&&oMe(t,e.sourceFile,i)})})}});function sMe(e,t){let r=po(e,t);if(!Ve(r))return;let{parent:i}=r;if(tu(i)&&Th(i.moduleReference))return{importNode:i,name:r,moduleSpecifier:i.moduleReference.expression};if(Zy(i)){let o=i.parent.parent;return{importNode:o,name:r,moduleSpecifier:o.moduleSpecifier}}}function lMe(e,t,r,i){e.replaceNode(t,r.importNode,$v(r.name,void 0,r.moduleSpecifier,af(t,i)))}var cQ,Tme,$Ze=A({"src/services/codefixes/useDefaultImport.ts"(){"use strict";ci(),xa(),cQ="useDefaultImport",Tme=[f.Import_may_be_converted_to_a_default_import.code],Aa({errorCodes:Tme,getCodeActions(e){let{sourceFile:t,span:{start:r}}=e,i=sMe(t,r);if(!i)return;let o=hr.ChangeTracker.with(e,s=>lMe(s,t,i,e.preferences));return[ca(cQ,o,f.Convert_to_default_import,cQ,f.Convert_all_to_default_imports)]},fixIds:[cQ],getAllCodeActions:e=>Ss(e,Tme,(t,r)=>{let i=sMe(r.file,r.start);i&&lMe(t,r.file,i,e.preferences)})})}});function cMe(e,t,r){let i=ai(po(t,r.start),hp);if(!i)return;let o=i.getText(t)+"n";e.replaceNode(t,i,k.createBigIntLiteral(o))}var uQ,Ame,QZe=A({"src/services/codefixes/useBigintLiteral.ts"(){"use strict";ci(),xa(),uQ="useBigintLiteral",Ame=[f.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code],Aa({errorCodes:Ame,getCodeActions:function(t){let r=hr.ChangeTracker.with(t,i=>cMe(i,t.sourceFile,t.span));if(r.length>0)return[ca(uQ,r,f.Convert_to_a_bigint_numeric_literal,uQ,f.Convert_all_to_bigint_numeric_literals)]},fixIds:[uQ],getAllCodeActions:e=>Ss(e,Ame,(t,r)=>cMe(t,r.file,r))})}});function uMe(e,t){let r=po(e,t);return C.assert(r.kind===102,"This token should be an ImportKeyword"),C.assert(r.parent.kind===205,"Token parent should be an ImportType"),r.parent}function dMe(e,t,r){let i=k.updateImportTypeNode(r,r.argument,r.attributes,r.qualifier,r.typeArguments,!0);e.replaceNode(t,r,i)}var pMe,dQ,Ime,ZZe=A({"src/services/codefixes/fixAddModuleReferTypeMissingTypeof.ts"(){"use strict";ci(),xa(),pMe="fixAddModuleReferTypeMissingTypeof",dQ=pMe,Ime=[f.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code],Aa({errorCodes:Ime,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=uMe(r,i.start),s=hr.ChangeTracker.with(t,l=>dMe(l,r,o));return[ca(dQ,s,f.Add_missing_typeof,dQ,f.Add_missing_typeof)]},fixIds:[dQ],getAllCodeActions:e=>Ss(e,Ime,(t,r)=>dMe(t,e.sourceFile,uMe(r.file,r.start)))})}});function fMe(e,t){let o=po(e,t).parent.parent;if(!(!_r(o)&&(o=o.parent,!_r(o)))&&Fl(o.operatorToken))return o}function mMe(e,t,r){let i=eet(r);i&&e.replaceNode(t,r,k.createJsxFragment(k.createJsxOpeningFragment(),i,k.createJsxJsxClosingFragment()))}function eet(e){let t=[],r=e;for(;;)if(_r(r)&&Fl(r.operatorToken)&&r.operatorToken.kind===28){if(t.push(r.left),hL(r.right))return t.push(r.right),t;if(_r(r.right)){r=r.right;continue}else return}else return}var pQ,xme,tet=A({"src/services/codefixes/wrapJsxInFragment.ts"(){"use strict";ci(),xa(),pQ="wrapJsxInFragment",xme=[f.JSX_expressions_must_have_one_parent_element.code],Aa({errorCodes:xme,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=fMe(r,i.start);if(!o)return;let s=hr.ChangeTracker.with(t,l=>mMe(l,r,o));return[ca(pQ,s,f.Wrap_in_JSX_fragment,pQ,f.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[pQ],getAllCodeActions:e=>Ss(e,xme,(t,r)=>{let i=fMe(e.sourceFile,r.start);i&&mMe(t,e.sourceFile,i)})})}});function _Me(e,t){let r=po(e,t),i=ai(r.parent.parent,j1);if(!i)return;let o=fd(i.parent)?i.parent:ai(i.parent.parent,Dm);if(o)return{indexSignature:i,container:o}}function net(e,t){return k.createTypeAliasDeclaration(e.modifiers,e.name,e.typeParameters,t)}function hMe(e,t,{indexSignature:r,container:i}){let s=(fd(i)?i.members:i.type.members).filter(m=>!j1(m)),l=Ha(r.parameters),u=k.createTypeParameterDeclaration(void 0,aa(l.name,Ve),l.type),p=k.createMappedTypeNode(BC(r)?k.createModifier(148):void 0,u,void 0,r.questionToken,r.type,void 0),g=k.createIntersectionTypeNode([...PC(i),p,...s.length?[k.createTypeLiteralNode(s)]:et]);e.replaceNode(t,i,net(i,g))}var fQ,Rme,ret=A({"src/services/codefixes/convertToMappedObjectType.ts"(){"use strict";ci(),xa(),fQ="fixConvertToMappedObjectType",Rme=[f.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code],Aa({errorCodes:Rme,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=_Me(r,i.start);if(!o)return;let s=hr.ChangeTracker.with(t,u=>hMe(u,r,o)),l=Sr(o.container.name);return[ca(fQ,s,[f.Convert_0_to_mapped_object_type,l],fQ,[f.Convert_0_to_mapped_object_type,l])]},fixIds:[fQ],getAllCodeActions:e=>Ss(e,Rme,(t,r)=>{let i=_Me(r.file,r.start);i&&hMe(t,r.file,i)})})}}),Dme,gMe,iet=A({"src/services/codefixes/removeAccidentalCallParentheses.ts"(){"use strict";ci(),xa(),Dme="removeAccidentalCallParentheses",gMe=[f.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],Aa({errorCodes:gMe,getCodeActions(e){let t=zn(po(e.sourceFile,e.span.start),la);if(!t)return;let r=hr.ChangeTracker.with(e,i=>{i.deleteRange(e.sourceFile,{pos:t.expression.end,end:t.end})});return[i_(Dme,r,f.Remove_parentheses)]},fixIds:[Dme]})}});function vMe(e,t,r){let i=ai(po(t,r.start),u=>u.kind===135),o=i&&ai(i.parent,$y);if(!o)return;let s=o;if(Wd(o.parent)){let u=xR(o.expression,!1);if(Ve(u)){let p=Ac(o.parent.pos,t);p&&p.kind!==105&&(s=o.parent)}}e.replaceNode(t,s,o.expression)}var mQ,Cme,oet=A({"src/services/codefixes/removeUnnecessaryAwait.ts"(){"use strict";ci(),xa(),mQ="removeUnnecessaryAwait",Cme=[f.await_has_no_effect_on_the_type_of_this_expression.code],Aa({errorCodes:Cme,getCodeActions:function(t){let r=hr.ChangeTracker.with(t,i=>vMe(i,t.sourceFile,t.span));if(r.length>0)return[ca(mQ,r,f.Remove_unnecessary_await,mQ,f.Remove_all_unnecessary_uses_of_await)]},fixIds:[mQ],getAllCodeActions:e=>Ss(e,Cme,(t,r)=>vMe(t,r.file,r))})}});function yMe(e,t){return zn(po(e,t.start),Lc)}function bMe(e,t,r){if(!t)return;let i=C.checkDefined(t.importClause);e.replaceNode(r.sourceFile,t,k.updateImportDeclaration(t,t.modifiers,k.updateImportClause(i,i.isTypeOnly,i.name,void 0),t.moduleSpecifier,t.attributes)),e.insertNodeAfter(r.sourceFile,t,k.createImportDeclaration(void 0,k.updateImportClause(i,i.isTypeOnly,void 0,i.namedBindings),t.moduleSpecifier,t.attributes))}var Nme,_Q,aet=A({"src/services/codefixes/splitTypeOnlyImport.ts"(){"use strict";ci(),xa(),Nme=[f.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],_Q="splitTypeOnlyImport",Aa({errorCodes:Nme,fixIds:[_Q],getCodeActions:function(t){let r=hr.ChangeTracker.with(t,i=>bMe(i,yMe(t.sourceFile,t.span),t));if(r.length)return[ca(_Q,r,f.Split_into_two_separate_import_declarations,_Q,f.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>Ss(e,Nme,(t,r)=>{bMe(t,yMe(e.sourceFile,r),e)})})}});function EMe(e,t,r){var i;let s=r.getTypeChecker().getSymbolAtLocation(po(e,t));if(s===void 0)return;let l=ai((i=s?.valueDeclaration)==null?void 0:i.parent,jc);if(l===void 0)return;let u=bs(l,87,e);if(u!==void 0)return{symbol:s,token:u}}function SMe(e,t,r){e.replaceNode(t,r,k.createToken(121))}var hQ,Pme,set=A({"src/services/codefixes/convertConstToLet.ts"(){"use strict";ci(),xa(),hQ="fixConvertConstToLet",Pme=[f.Cannot_assign_to_0_because_it_is_a_constant.code],Aa({errorCodes:Pme,getCodeActions:function(t){let{sourceFile:r,span:i,program:o}=t,s=EMe(r,i.start,o);if(s===void 0)return;let l=hr.ChangeTracker.with(t,u=>SMe(u,r,s.token));return[Npe(hQ,l,f.Convert_const_to_let,hQ,f.Convert_all_const_to_let)]},getAllCodeActions:e=>{let{program:t}=e,r=new Map;return N2(hr.ChangeTracker.with(e,i=>{P2(e,Pme,o=>{let s=EMe(o.file,o.start,t);if(s&&xm(r,Ta(s.symbol)))return SMe(i,o.file,s.token)})}))},fixIds:[hQ]})}});function TMe(e,t,r){let i=po(e,t);return i.kind===27&&i.parent&&(wa(i.parent)||pd(i.parent))?{node:i}:void 0}function AMe(e,t,{node:r}){let i=k.createToken(28);e.replaceNode(t,r,i)}var gQ,IMe,Mme,cet=A({"src/services/codefixes/fixExpectedComma.ts"(){"use strict";ci(),xa(),gQ="fixExpectedComma",IMe=f._0_expected.code,Mme=[IMe],Aa({errorCodes:Mme,getCodeActions(e){let{sourceFile:t}=e,r=TMe(t,e.span.start,e.errorCode);if(!r)return;let i=hr.ChangeTracker.with(e,o=>AMe(o,t,r));return[ca(gQ,i,[f.Change_0_to_1,";",","],gQ,[f.Change_0_to_1,";",","])]},fixIds:[gQ],getAllCodeActions:e=>Ss(e,Mme,(t,r)=>{let i=TMe(r.file,r.start,r.code);i&&AMe(t,e.sourceFile,i)})})}});function xMe(e,t,r,i,o){let s=po(t,r.start);if(!Ve(s)||!la(s.parent)||s.parent.expression!==s||s.parent.arguments.length!==0)return;let l=i.getTypeChecker(),u=l.getSymbolAtLocation(s),p=u?.valueDeclaration;if(!p||!Co(p)||!H1(p.parent.parent)||o?.has(p))return;o?.add(p);let g=uet(p.parent.parent);if(Et(g)){let m=g[0],b=!Xy(m)&&!LS(m)&&LS(k.createUnionTypeNode([m,k.createKeywordTypeNode(116)]).types[0]);b&&e.insertText(t,m.pos,"("),e.insertText(t,m.end,b?") | void":" | void")}else{let m=l.getResolvedSignature(s.parent),b=m?.parameters[0],T=b&&l.getTypeOfSymbolAtLocation(b,p.parent.parent);cr(p)?(!T||T.flags&3)&&(e.insertText(t,p.parent.parent.end,")"),e.insertText(t,La(t.text,p.parent.parent.pos),"/** @type {Promise} */(")):(!T||T.flags&2)&&e.insertText(t,p.parent.parent.expression.end,"")}}function uet(e){var t;if(cr(e)){if(Wd(e.parent)){let r=(t=r0(e.parent))==null?void 0:t.typeExpression.type;if(r&&Rf(r)&&Ve(r.typeName)&&Sr(r.typeName)==="Promise")return r.typeArguments}}else return e.typeArguments}var RMe,Lme,kme,det=A({"src/services/codefixes/fixAddVoidToPromise.ts"(){"use strict";ci(),xa(),RMe="addVoidToPromise",Lme="addVoidToPromise",kme=[f.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,f.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code],Aa({errorCodes:kme,fixIds:[Lme],getCodeActions(e){let t=hr.ChangeTracker.with(e,r=>xMe(r,e.sourceFile,e.span,e.program));if(t.length>0)return[ca(RMe,t,f.Add_void_to_Promise_resolved_without_a_value,Lme,f.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions(e){return Ss(e,kme,(t,r)=>xMe(t,r.file,r,e.program,new Set))}})}}),Fu={};X(Fu,{PreserveOptionalFlags:()=>vme,addNewNodeForMemberSymbol:()=>BPe,codeFixAll:()=>Ss,createCodeFixAction:()=>ca,createCodeFixActionMaybeFixAll:()=>Npe,createCodeFixActionWithoutFixAll:()=>i_,createCombinedCodeActions:()=>N2,createFileTextChanges:()=>GDe,createImportAdder:()=>LI,createImportSpecifierResolver:()=>v$e,createJsonPropertyAssignment:()=>rQ,createMissingMemberNodes:()=>ume,createSignatureDeclarationFromCallExpression:()=>dme,createSignatureDeclarationFromSignature:()=>tQ,createStubbedBody:()=>b9,eachDiagnostic:()=>P2,findAncestorMatchingSpan:()=>gme,findJsonProperty:()=>hme,generateAccessorFromProperty:()=>qPe,getAccessorConvertiblePropertyAtPosition:()=>XPe,getAllFixes:()=>KXe,getAllSupers:()=>yme,getArgumentTypesAndTypeParameters:()=>jPe,getFixes:()=>JXe,getImportCompletionAction:()=>y$e,getImportKind:()=>ofe,getJSDocTypedefNodes:()=>f$e,getNoopSymbolTrackerWithResolver:()=>L2,getPromoteTypeOnlyCompletionAction:()=>b$e,getSupportedErrorCodes:()=>HXe,importFixName:()=>pfe,importSymbols:()=>k2,moduleSpecifierToValidIdentifier:()=>dfe,moduleSymbolToValidIdentifier:()=>ufe,parameterShouldGetTypeFromJSDoc:()=>sCe,registerCodeFix:()=>Aa,setJsonCompilerOptionValue:()=>_me,setJsonCompilerOptionValues:()=>mme,tryGetAutoImportableReferenceFromTypeNode:()=>wI,typeToAutoImportableTypeNode:()=>nQ});var xa=A({"src/services/_namespaces/ts.codefix.ts"(){"use strict";XXe(),YXe(),$Xe(),eYe(),oYe(),cYe(),uYe(),dYe(),pYe(),hYe(),xYe(),DYe(),zYe(),r$e(),i$e(),a$e(),s$e(),m$e(),_$e(),g$e(),B$e(),j$e(),q$e(),J$e(),K$e(),$$e(),eQe(),rQe(),lQe(),vQe(),bQe(),xQe(),RQe(),CQe(),NQe(),PQe(),MQe(),kQe(),wQe(),OQe(),FQe(),WQe(),BQe(),jQe(),JQe(),nZe(),iZe(),oZe(),lZe(),cZe(),dZe(),pZe(),bZe(),EZe(),SZe(),DZe(),BZe(),UZe(),KZe(),YZe(),$Ze(),QZe(),ZZe(),tet(),ret(),iet(),oet(),aet(),set(),cet(),det()}});function pet(e){return!!(e.kind&1)}function fet(e){return!!(e.kind&2)}function E9(e){return!!(e&&e.kind&4)}function SP(e){return!!(e&&e.kind===32)}function met(e){return E9(e)||SP(e)||wme(e)}function _et(e){return(E9(e)||SP(e))&&!!e.isFromPackageJson}function het(e){return!!(e.kind&8)}function get(e){return!!(e.kind&16)}function DMe(e){return!!(e&&e.kind&64)}function CMe(e){return!!(e&&e.kind&128)}function vet(e){return!!(e&&e.kind&256)}function wme(e){return!!(e&&e.kind&512)}function NMe(e,t,r,i,o,s,l,u,p){var g,m,b;let T=Ks(),I=l||jA(dd(i.getCompilerOptions())),R=!1,M=0,N=0,O=0,H=0,K=p({tryResolve:V,skippedAny:()=>R,resolvedAny:()=>N>0,resolvedBeyondLimit:()=>N>RQ}),Z=H?` (${(O/H*100).toFixed(1)}% hit rate)`:"";return(g=t.log)==null||g.call(t,`${e}: resolved ${N} module specifiers, plus ${M} ambient and ${O} from cache${Z}`),(m=t.log)==null||m.call(t,`${e}: response is ${R?"incomplete":"complete"}`),(b=t.log)==null||b.call(t,`${e}: ${Ks()-T}`),K;function V(ue,G){if(G){let $=r.getModuleSpecifierForBestExportInfo(ue,o,u);return $&&M++,$||"failed"}let ne=I||s.allowIncompleteCompletions&&N{let R=Vi(p.entries,M=>{var N;if(!M.hasAction||!M.source||!M.data||PMe(M.data))return M;if(!nLe(M.name,m))return;let{origin:O}=C.checkDefined(jMe(M.name,M.data,i,o)),H=b.get(t.path,M.data.exportMapKey),K=H&&I.tryResolve(H,!Yc(em(O.moduleSymbol.name)));if(K==="skipped")return M;if(!K||K==="failed"){(N=o.log)==null||N.call(o,`Unexpected failure resolving auto import for '${M.name}' from '${M.source}'`);return}let Z={...O,kind:32,moduleSpecifier:K.moduleSpecifier};return M.data=zMe(Z),M.source=Wme(Z),M.sourceDisplay=[sf(Z.moduleSpecifier)],M});return I.skippedAny()||(p.isIncomplete=void 0),R});return p.entries=T,p.flags=(p.flags||0)|4,p.optionalReplacementSpan=wMe(g),p}function Ome(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function MMe(e,t,r,i,o,s){let l=po(e,t);if(!Xx(l)&&!t_(l))return[];let u=t_(l)?l:l.parent;if(!t_(u))return[];let p=u.parent;if(!ea(p))return[];let g=ld(e),m=o.includeCompletionsWithSnippetText||void 0,b=au(u.tags,T=>n_(T)&&T.getEnd()<=t);return Vi(p.parameters,T=>{if(!jx(T).length){if(Ve(T.name)){let I={tabstop:1},R=T.name.text,M=qO(R,T.initializer,T.dotDotDotToken,g,!1,!1,r,i,o),N=m?qO(R,T.initializer,T.dotDotDotToken,g,!1,!0,r,i,o,I):void 0;return s&&(M=M.slice(1),N&&(N=N.slice(1))),{name:M,kind:"parameter",sortText:Wu.LocationPriority,insertText:m?N:void 0,isSnippet:m}}else if(T.parent.parameters.indexOf(T)===b){let I=`param${b}`,R=LMe(I,T.name,T.initializer,T.dotDotDotToken,g,!1,r,i,o),M=m?LMe(I,T.name,T.initializer,T.dotDotDotToken,g,!0,r,i,o):void 0,N=R.join(Gv(i)+"* "),O=M?.join(Gv(i)+"* ");return s&&(N=N.slice(1),O&&(O=O.slice(1))),{name:N,kind:"parameter",sortText:Wu.LocationPriority,insertText:m?O:void 0,isSnippet:m}}}})}function LMe(e,t,r,i,o,s,l,u,p){if(!o)return[qO(e,r,i,o,!1,s,l,u,p,{tabstop:1})];return g(e,t,r,i,{tabstop:1});function g(b,T,I,R,M){if(om(T)&&!R){let O={tabstop:M.tabstop},H=qO(b,I,R,o,!0,s,l,u,p,O),K=[];for(let Z of T.elements){let V=m(b,Z,O);if(V)K.push(...V);else{K=void 0;break}}if(K)return M.tabstop=O.tabstop,[H,...K]}return[qO(b,I,R,o,!1,s,l,u,p,M)]}function m(b,T,I){if(!T.propertyName&&Ve(T.name)||Ve(T.name)){let R=T.propertyName?TC(T.propertyName):T.name.text;if(!R)return;let M=`${b}.${R}`;return[qO(M,T.initializer,T.dotDotDotToken,o,!1,s,l,u,p,I)]}else if(T.propertyName){let R=TC(T.propertyName);return R&&g(`${b}.${R}`,T.name,T.initializer,T.dotDotDotToken,I)}}}function qO(e,t,r,i,o,s,l,u,p,g){if(s&&C.assertIsDefined(g),t&&(e=Eet(e,t)),s&&(e=G1(e)),i){let m="*";if(o)C.assert(!r,"Cannot annotate a rest parameter with type 'Object'."),m="Object";else{if(t){let I=l.getTypeAtLocation(t.parent);if(!(I.flags&16385)){let R=t.getSourceFile(),N=af(R,p)===0?268435456:0,O=l.typeToTypeNode(I,zn(t,ea),N);if(O){let H=s?bQ({removeComments:!0,module:u.module,target:u.target}):x0({removeComments:!0,module:u.module,target:u.target});fr(O,1),m=H.printNode(4,O,R)}}}s&&m==="*"&&(m=`\${${g.tabstop++}:${m}}`)}let b=!o&&r?"...":"",T=s?`\${${g.tabstop++}}`:"";return`@param {${b}${m}} ${e} ${T}`}else{let m=s?`\${${g.tabstop++}}`:"";return`@param ${e} ${m}`}}function Eet(e,t){let r=t.getText().trim();return r.includes(` +`)||r.length>80?`[${e}]`:`[${e}=${r}]`}function Tet(e){return{name:ma(e),kind:"keyword",kindModifiers:"",sortText:Wu.GlobalsOrKeywords}}function Aet(e,t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t,entries:e.slice()}}function kMe(e,t,r){return{kind:4,keywordCompletions:UMe(e,t),isNewIdentifierLocation:r}}function Iet(e){switch(e){case 156:return 8;default:C.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}}function wMe(e){return e?.kind===80?Rd(e):void 0}function xet(e,t,r,i,o,s,l,u,p,g){let{symbols:m,contextToken:b,completionKind:T,isInSnippetScope:I,isNewIdentifierLocation:R,location:M,propertyAccessToConvert:N,keywordFilters:O,symbolToOriginInfoMap:H,recommendedCompletion:K,isJsxInitializer:Z,isTypeOnlyLocation:V,isJsxIdentifierExpected:ue,isRightOfOpenTag:G,isRightOfDotOrQuestionDot:ne,importStatementCompletion:he,insideJsDocTagTypeExpression:ye,symbolToSortTextMap:$,hasUnresolvedAutoImports:Y}=s,oe=s.literals,fe=r.getTypeChecker();if(dk(e.scriptKind)===1){let He=Det(M,e);if(He)return He}let Ne=zn(b,GR);if(Ne&&(Dae(b)||P1(b,Ne.expression))){let He=NW(fe,Ne.parent.clauses);oe=oe.filter(Ee=>!He.hasValue(Ee)),m.forEach((Ee,Ce)=>{if(Ee.valueDeclaration&&Q1(Ee.valueDeclaration)){let Me=fe.getConstantValue(Ee.valueDeclaration);Me!==void 0&&He.hasValue(Me)&&(H[Ce]={kind:256})}})}let me=QB(),ie=OMe(e,i);if(ie&&!R&&(!m||m.length===0)&&O===0)return;let ve=zme(m,me,void 0,b,M,p,e,t,r,as(i),o,T,l,i,u,V,N,ue,Z,he,K,H,$,ue,G,g);if(O!==0)for(let He of UMe(O,!ye&&ld(e)))(V&&sP(y1(He.name))||!V&&ctt(He.name)||!ve.has(He.name))&&(ve.add(He.name),Ty(me,He,S9,!0));for(let He of Yet(b,p))ve.has(He.name)||(ve.add(He.name),Ty(me,He,S9,!0));for(let He of oe){let Ee=Net(e,l,He);ve.add(Ee.name),Ty(me,Ee,S9,!0)}ie||Cet(e,M.pos,ve,as(i),me);let Le;if(l.includeCompletionsWithInsertText&&b&&!G&&!ne&&(Le=zn(b,TN))){let He=FMe(Le,e,l,i,t,r,u);He&&me.push(He.entry)}return{flags:s.flags,isGlobalCompletion:I,isIncomplete:l.allowIncompleteCompletions&&Y?!0:void 0,isMemberCompletion:Ret(T),isNewIdentifierLocation:R,optionalReplacementSpan:wMe(M),entries:me}}function OMe(e,t){return!ld(e)||!!hk(e,t)}function FMe(e,t,r,i,o,s,l){let u=e.clauses,p=s.getTypeChecker(),g=p.getTypeAtLocation(e.parent.expression);if(g&&g.isUnion()&&Jn(g.types,m=>m.isLiteral())){let m=NW(p,u),b=as(i),T=af(t,r),I=Fu.createImportAdder(t,s,r,o),R=[];for(let V of g.types)if(V.flags&1024){C.assert(V.symbol,"An enum member type should have a symbol"),C.assert(V.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");let ue=V.symbol.valueDeclaration&&p.getConstantValue(V.symbol.valueDeclaration);if(ue!==void 0){if(m.hasValue(ue))continue;m.addValue(ue)}let G=Fu.typeToAutoImportableTypeNode(p,I,V,e,b);if(!G)return;let ne=vQ(G,b,T);if(!ne)return;R.push(ne)}else if(!m.hasValue(V.value))switch(typeof V.value){case"object":R.push(V.value.negative?k.createPrefixUnaryExpression(41,k.createBigIntLiteral({negative:!1,base10Value:V.value.base10Value})):k.createBigIntLiteral(V.value));break;case"number":R.push(V.value<0?k.createPrefixUnaryExpression(41,k.createNumericLiteral(-V.value)):k.createNumericLiteral(V.value));break;case"string":R.push(k.createStringLiteral(V.value,T===0));break}if(R.length===0)return;let M=Ft(R,V=>k.createCaseClause(V,[])),N=Qv(o,l?.options),O=bQ({removeComments:!0,module:i.module,target:i.target,newLine:yO(N)}),H=l?V=>O.printAndFormatNode(4,V,t,l):V=>O.printNode(4,V,t),K=Ft(M,(V,ue)=>r.includeCompletionsWithSnippetText?`${H(V)}$${ue+1}`:`${H(V)}`).join(N);return{entry:{name:`${O.printNode(4,M[0],t)} ...`,kind:"",sortText:Wu.GlobalsOrKeywords,insertText:K,hasAction:I.hasFixes()||void 0,source:"SwitchCases/",isSnippet:r.includeCompletionsWithSnippetText?!0:void 0},importAdder:I}}}function vQ(e,t,r){switch(e.kind){case 183:let i=e.typeName;return yQ(i,t,r);case 199:let o=vQ(e.objectType,t,r),s=vQ(e.indexType,t,r);return o&&s&&k.createElementAccessExpression(o,s);case 201:let l=e.literal;switch(l.kind){case 11:return k.createStringLiteral(l.text,r===0);case 9:return k.createNumericLiteral(l.text,l.numericLiteralFlags)}return;case 196:let u=vQ(e.type,t,r);return u&&(Ve(u)?u:k.createParenthesizedExpression(u));case 186:return yQ(e.exprName,t,r);case 205:C.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function yQ(e,t,r){if(Ve(e))return e;let i=Hi(e.right.escapedText);return LU(i,t)?k.createPropertyAccessExpression(yQ(e.left,t,r),i):k.createElementAccessExpression(yQ(e.left,t,r),k.createStringLiteral(i,r===0))}function Ret(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function Det(e,t){let r=zn(e,i=>{switch(i.kind){case 287:return!0;case 44:case 32:case 80:case 211:return!1;default:return"quit"}});if(r){let i=!!bs(r,32,t),l=r.parent.openingElement.tagName.getText(t)+(i?"":">"),u=Rd(r.tagName),p={name:l,kind:"class",kindModifiers:void 0,sortText:Wu.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:u,entries:[p]}}}function Cet(e,t,r,i,o){wY(e).forEach((s,l)=>{if(s===t)return;let u=Hi(l);!r.has(u)&&$p(u,i)&&(r.add(u),Ty(o,{name:u,kind:"warning",kindModifiers:"",sortText:Wu.JavascriptIdentifiers,isFromUncheckedFile:!0},S9))})}function Fme(e,t,r){return typeof r=="object"?z1(r)+"n":wo(r)?fP(e,t,r):JSON.stringify(r)}function Net(e,t,r){return{name:Fme(e,t,r),kind:"string",kindModifiers:"",sortText:Wu.LocationPriority}}function Pet(e,t,r,i,o,s,l,u,p,g,m,b,T,I,R,M,N,O,H,K,Z,V,ue,G){var ne,he;let ye,$,Y=eX(r),oe,fe,Ne=Wme(b),me,ie,ve,Le=p.getTypeChecker(),He=b&&get(b),Ee=b&&fet(b)||m;if(b&&pet(b))ye=m?`this${He?"?.":""}[${BMe(l,H,g)}]`:`this${He?"?.":"."}${g}`;else if((Ee||He)&&I){ye=Ee?m?`[${BMe(l,H,g)}]`:`[${g}]`:g,(He||I.questionDotToken)&&(ye=`?.${ye}`);let Me=bs(I,25,l)||bs(I,29,l);if(!Me)return;let Fe=uo(g,I.name.text)?I.name.end:Me.end;Y=dc(Me.getStart(l),Fe)}if(R&&(ye===void 0&&(ye=g),ye=`{${ye}}`,typeof R!="boolean"&&(Y=Rd(R,l))),b&&het(b)&&I){ye===void 0&&(ye=g);let Me=Ac(I.pos,l),Fe="";Me&&bW(Me.end,Me.parent,l)&&(Fe=";"),Fe+=`(await ${I.expression.getText()})`,ye=m?`${Fe}${ye}`:`${Fe}${He?"?.":"."}${ye}`;let Se=ai(I.parent,$y)?I.parent:I.expression;Y=dc(Se.getStart(l),I.end)}if(SP(b)&&(me=[sf(b.moduleSpecifier)],M&&({insertText:ye,replacementSpan:Y}=Wet(g,M,b,N,l,O,H),fe=H.includeCompletionsWithSnippetText?!0:void 0)),b?.kind===64&&(ie=!0),K===0&&i&&((ne=Ac(i.pos,l,i))==null?void 0:ne.kind)!==28&&(jl(i.parent.parent)||Zp(i.parent.parent)||vp(i.parent.parent)||qv(i.parent)||((he=zn(i.parent,_c))==null?void 0:he.getLastToken(l))===i||np(i.parent)&&Es(l,i.getEnd()).line!==Es(l,s).line)&&(Ne="ObjectLiteralMemberWithComma/",ie=!0),H.includeCompletionsWithClassMemberSnippets&&H.includeCompletionsWithInsertText&&K===3&&Met(e,o,l)){let Me,Fe=WMe(u,p,O,H,g,e,o,s,i,Z);if(Fe)({insertText:ye,filterText:$,isSnippet:fe,importAdder:Me}=Fe),Me?.hasFixes()&&(ie=!0,Ne="ClassMemberSnippet/");else return}if(b&&CMe(b)&&({insertText:ye,isSnippet:fe,labelDetails:ve}=b,H.useLabelDetailsInCompletionEntries||(g=g+ve.detail,ve=void 0),Ne="ObjectLiteralMethodSnippet/",t=Wu.SortBelow(t)),V&&!ue&&H.includeCompletionsWithSnippetText&&H.jsxAttributeCompletionStyle&&H.jsxAttributeCompletionStyle!=="none"&&!(O_(o.parent)&&o.parent.initializer)){let Me=H.jsxAttributeCompletionStyle==="braces",Fe=Le.getTypeOfSymbolAtLocation(e,o);H.jsxAttributeCompletionStyle==="auto"&&!(Fe.flags&528)&&!(Fe.flags&1048576&&vn(Fe.types,At=>!!(At.flags&528)))&&(Fe.flags&402653316||Fe.flags&1048576&&Jn(Fe.types,At=>!!(At.flags&402686084||Due(At)))?(ye=`${G1(g)}=${fP(l,H,"$1")}`,fe=!0):Me=!0),Me&&(ye=`${G1(g)}={$1}`,fe=!0)}if(ye!==void 0&&!H.includeCompletionsWithInsertText)return;(E9(b)||SP(b))&&(oe=zMe(b),ie=!M);let Ce=zn(o,w3);if(Ce?.kind===275){let Me=y1(g);Ce&&Me&&(Me===135||jj(Me))&&(ye=`${g} as ${g}_`)}return{name:g,kind:ty.getSymbolKind(Le,e,o),kindModifiers:ty.getSymbolModifiers(Le,e),sortText:t,source:Ne,hasAction:ie?!0:void 0,isRecommended:zet(e,T,Le)||void 0,insertText:ye,filterText:$,replacementSpan:Y,sourceDisplay:me,labelDetails:ve,isSnippet:fe,isPackageJsonImport:_et(b)||void 0,isImportStatementCompletion:!!M||void 0,data:oe,...G?{symbol:e}:void 0}}function Met(e,t,r){return cr(t)?!1:!!(e.flags&106500)&&(pi(t)||t.parent&&t.parent.parent&&$c(t.parent)&&t===t.parent.name&&t.parent.getLastToken(r)===t.parent.name&&pi(t.parent.parent)||t.parent&&HR(t)&&pi(t.parent))}function WMe(e,t,r,i,o,s,l,u,p,g){let m=zn(l,pi);if(!m)return;let b,T=o,I=o,R=t.getTypeChecker(),M=l.getSourceFile(),N=bQ({removeComments:!0,module:r.module,target:r.target,omitTrailingSemicolon:!1,newLine:yO(Qv(e,g?.options))}),O=Fu.createImportAdder(M,t,i,e),H;if(i.includeCompletionsWithSnippetText){b=!0;let he=k.createEmptyStatement();H=k.createBlock([he],!0),lH(he,{kind:0,order:0})}else H=k.createBlock([],!0);let K=0,{modifiers:Z,range:V,decorators:ue}=Let(p,M,u),G=Z&64&&m.modifierFlagsCache&64,ne=[];if(Fu.addNewNodeForMemberSymbol(s,m,M,{program:t,host:e},i,O,he=>{let ye=0;G&&(ye|=64),$c(he)&&R.getMemberOverrideModifierStatus(m,he,s)===1&&(ye|=16),ne.length||(K=he.modifierFlagsCache|ye),he=k.replaceModifiers(he,K),ne.push(he)},H,Fu.PreserveOptionalFlags.Property,!!G),ne.length){let he=s.flags&8192,ye=K|16|1;he?ye|=1024:ye|=136;let $=Z&ye;if(Z&~ye)return;if(K&4&&$&1&&(K&=-5),$!==0&&!($&1)&&(K&=-2),K|=$,ne=ne.map(oe=>k.replaceModifiers(oe,K)),ue?.length){let oe=ne[ne.length-1];US(oe)&&(ne[ne.length-1]=k.replaceDecoratorsAndModifiers(oe,ue.concat(b1(oe)||[])))}let Y=131073;g?T=N.printAndFormatSnippetList(Y,k.createNodeArray(ne),M,g):T=N.printSnippetList(Y,k.createNodeArray(ne),M)}return{insertText:T,filterText:I,isSnippet:b,importAdder:O,eraseRange:V}}function Let(e,t,r){if(!e||Es(t,r).line>Es(t,e.getEnd()).line)return{modifiers:0};let i=0,o,s,l={pos:r,end:r};if(Jo(e.parent)&&e.parent.modifiers&&(i|=N_(e.parent.modifiers)&98303,o=e.parent.modifiers.filter(Eu)||[],l.pos=Math.min(l.pos,e.parent.modifiers.pos)),s=ket(e)){let u=zA(s);i&u||(i|=u,l.pos=Math.min(l.pos,e.pos))}return{modifiers:i,decorators:o,range:l.pos!==r?l:void 0}}function ket(e){if(Ia(e))return e.kind;if(Ve(e)){let t=n0(e);if(t&&kv(t))return t}}function wet(e,t,r,i,o,s,l,u){let p=l.includeCompletionsWithSnippetText||void 0,g=t,m=r.getSourceFile(),b=Oet(e,r,m,i,o,l);if(!b)return;let T=bQ({removeComments:!0,module:s.module,target:s.target,omitTrailingSemicolon:!1,newLine:yO(Qv(o,u?.options))});u?g=T.printAndFormatSnippetList(80,k.createNodeArray([b],!0),m,u):g=T.printSnippetList(80,k.createNodeArray([b],!0),m);let I=x0({removeComments:!0,module:s.module,target:s.target,omitTrailingSemicolon:!0}),R=k.createMethodSignature(void 0,"",b.questionToken,b.typeParameters,b.parameters,b.type),M={detail:I.printNode(4,R,m)};return{isSnippet:p,insertText:g,labelDetails:M}}function Oet(e,t,r,i,o,s){let l=e.getDeclarations();if(!(l&&l.length))return;let u=i.getTypeChecker(),p=l[0],g=sl(Oo(p),!1),m=u.getWidenedType(u.getTypeOfSymbolAtLocation(e,t)),T=33554432|(af(r,s)===0?268435456:0);switch(p.kind){case 171:case 172:case 173:case 174:{let I=m.flags&1048576&&m.types.length<10?u.getUnionType(m.types,2):m;if(I.flags&1048576){let H=tr(I.types,K=>u.getSignaturesOfType(K,0).length>0);if(H.length===1)I=H[0];else return}if(u.getSignaturesOfType(I,0).length!==1)return;let M=u.typeToTypeNode(I,t,T,Fu.getNoopSymbolTrackerWithResolver({program:i,host:o}));if(!M||!bh(M))return;let N;if(s.includeCompletionsWithSnippetText){let H=k.createEmptyStatement();N=k.createBlock([H],!0),lH(H,{kind:0,order:0})}else N=k.createBlock([],!0);let O=M.parameters.map(H=>k.createParameterDeclaration(void 0,H.dotDotDotToken,H.name,void 0,void 0,H.initializer));return k.createMethodDeclaration(void 0,void 0,g,void 0,void 0,O,void 0,N)}default:return}}function bQ(e){let t,r=hr.createWriter(Gv(e)),i=x0(e,r),o={...r,write:T=>s(T,()=>r.write(T)),nonEscapingWrite:r.write,writeLiteral:T=>s(T,()=>r.writeLiteral(T)),writeStringLiteral:T=>s(T,()=>r.writeStringLiteral(T)),writeSymbol:(T,I)=>s(T,()=>r.writeSymbol(T,I)),writeParameter:T=>s(T,()=>r.writeParameter(T)),writeComment:T=>s(T,()=>r.writeComment(T)),writeProperty:T=>s(T,()=>r.writeProperty(T))};return{printSnippetList:l,printAndFormatSnippetList:p,printNode:g,printAndFormatNode:b};function s(T,I){let R=G1(T);if(R!==T){let M=r.getTextPos();I();let N=r.getTextPos();t=In(t||(t=[]),{newText:R,span:{start:M,length:N-M}})}else I()}function l(T,I,R){let M=u(T,I,R);return t?hr.applyChanges(M,t):M}function u(T,I,R){return t=void 0,o.clear(),i.writeList(T,I,R,o),o.getText()}function p(T,I,R,M){let N={text:u(T,I,R),getLineAndCharacterOfPosition(Z){return Es(this,Z)}},O=CW(M,R),H=Zi(I,Z=>{let V=hr.assignPositionsToNode(Z);return wc.formatNodeGivenIndentation(V,N,R.languageVariant,0,0,{...M,options:O})}),K=t?Iv(xo(H,t),(Z,V)=>M8(Z.span,V.span)):H;return hr.applyChanges(N.text,K)}function g(T,I,R){let M=m(T,I,R);return t?hr.applyChanges(M,t):M}function m(T,I,R){return t=void 0,o.clear(),i.writeNode(T,I,R,o),o.getText()}function b(T,I,R,M){let N={text:m(T,I,R),getLineAndCharacterOfPosition(V){return Es(this,V)}},O=CW(M,R),H=hr.assignPositionsToNode(I),K=wc.formatNodeGivenIndentation(H,N,R.languageVariant,0,0,{...M,options:O}),Z=t?Iv(xo(K,t),(V,ue)=>M8(V.span,ue.span)):K;return hr.applyChanges(N.text,Z)}}function zMe(e){let t=e.fileName?void 0:em(e.moduleSymbol.name),r=e.isFromPackageJson?!0:void 0;return SP(e)?{exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,ambientModuleName:t,fileName:e.fileName,isPackageJsonImport:r}:{exportName:e.exportName,exportMapKey:e.exportMapKey,fileName:e.fileName,ambientModuleName:e.fileName?void 0:em(e.moduleSymbol.name),isPackageJsonImport:e.isFromPackageJson?!0:void 0}}function Fet(e,t,r){let i=e.exportName==="default",o=!!e.isPackageJsonImport;return PMe(e)?{kind:32,exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,symbolName:t,fileName:e.fileName,moduleSymbol:r,isDefaultExport:i,isFromPackageJson:o}:{kind:4,exportName:e.exportName,exportMapKey:e.exportMapKey,symbolName:t,fileName:e.fileName,moduleSymbol:r,isDefaultExport:i,isFromPackageJson:o}}function Wet(e,t,r,i,o,s,l){let u=t.replacementSpan,p=G1(fP(o,l,r.moduleSpecifier)),g=r.isDefaultExport?1:r.exportName==="export="?2:0,m=l.includeCompletionsWithSnippetText?"$1":"",b=Fu.getImportKind(o,g,s,!0),T=t.couldBeTypeOnlyImportSpecifier,I=t.isTopLevelTypeOnly?` ${ma(156)} `:" ",R=T?`${ma(156)} `:"",M=i?";":"";switch(b){case 3:return{replacementSpan:u,insertText:`import${I}${G1(e)}${m} = require(${p})${M}`};case 1:return{replacementSpan:u,insertText:`import${I}${G1(e)}${m} from ${p}${M}`};case 2:return{replacementSpan:u,insertText:`import${I}* as ${G1(e)} from ${p}${M}`};case 0:return{replacementSpan:u,insertText:`import${I}{ ${R}${G1(e)}${m} } from ${p}${M}`}}}function BMe(e,t,r){return/^\d+$/.test(r)?r:fP(e,t,r)}function zet(e,t,r){return e===t||!!(e.flags&1048576)&&r.getExportSymbolOfSymbol(e)===t}function Wme(e){if(E9(e))return em(e.moduleSymbol.name);if(SP(e))return e.moduleSpecifier;if(e?.kind===1)return"ThisProperty/";if(e?.kind===64)return"TypeOnlyAlias/"}function zme(e,t,r,i,o,s,l,u,p,g,m,b,T,I,R,M,N,O,H,K,Z,V,ue,G,ne,he=!1){let ye=Ks(),$=att(i,o),Y=hO(l),oe=p.getTypeChecker(),fe=new Map;for(let ie=0;ieje.getSourceFile()===o.getSourceFile()));fe.set(Ee,Se),Ty(t,At,S9,!0)}return m("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(Ks()-ye)),{has:ie=>fe.has(ie),add:ie=>fe.set(ie,!0)};function Ne(ie,ve){var Le;let He=ie.flags;if(!no(o)){if(Ll(o.parent))return!0;if(ai($,Oi)&&ie.valueDeclaration===$)return!1;let Ee=ie.valueDeclaration??((Le=ie.declarations)==null?void 0:Le[0]);if($&&Ee&&(_l($)&&_l(Ee)||Co($)&&Co(Ee))){let Me=Ee.pos,Fe=Co($)?$.parent.parameters:MS($.parent)?void 0:$.parent.typeParameters;if(Me>=$.pos&&Fe&&MeFme(r,l,K)===o.name);return H!==void 0?{type:"literal",literal:H}:Zt(g,(K,Z)=>{let V=I[Z],ue=SQ(K,as(u),V,T,p.isJsxIdentifierExpected);return ue&&ue.name===o.name&&(o.source==="ClassMemberSnippet/"&&K.flags&106500||o.source==="ObjectLiteralMethodSnippet/"&&K.flags&8196||Wme(V)===o.source||o.source==="ObjectLiteralMemberWithComma/")?{type:"symbol",symbol:K,location:b,origin:V,contextToken:R,previousToken:M,isJsxInitializer:N,isTypeOnlyLocation:O}:void 0})||{type:"none"}}function Vet(e,t,r,i,o,s,l,u,p){let g=e.getTypeChecker(),m=e.getCompilerOptions(),{name:b,source:T,data:I}=o,{previousToken:R,contextToken:M}=EQ(i,r);if(II(r,i,R))return CQ.getStringLiteralCompletionDetails(b,r,i,R,e,s,p,u);let N=GMe(e,t,r,i,o,s,u);switch(N.type){case"request":{let{request:O}=N;switch(O.kind){case 1:return L0.getJSDocTagNameCompletionDetails(b);case 2:return L0.getJSDocTagCompletionDetails(b);case 3:return L0.getJSDocParameterNameCompletionDetails(b);case 4:return Et(O.keywordCompletions,H=>H.name===b)?Bme(b,"keyword",5):void 0;default:return C.assertNever(O)}}case"symbol":{let{symbol:O,location:H,contextToken:K,origin:Z,previousToken:V}=N,{codeActions:ue,sourceDisplay:G}=jet(b,H,K,Z,O,e,s,m,r,i,V,l,u,I,T,p),ne=wme(Z)?Z.symbolName:O.name;return Gme(O,ne,g,r,H,p,ue,G)}case"literal":{let{literal:O}=N;return Bme(Fme(r,u,O),"string",typeof O=="string"?8:7)}case"cases":{let O=FMe(M.parent,r,u,e.getCompilerOptions(),s,e,void 0);if(O?.importAdder.hasFixes()){let{entry:H,importAdder:K}=O,Z=hr.ChangeTracker.with({host:s,formatContext:l,preferences:u},K.writeFixes);return{name:H.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:Z,description:nT([f.Includes_imports_of_types_referenced_by_0,b])}]}}return{name:b,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return Xme().some(O=>O.name===b)?Bme(b,"keyword",5):void 0;default:C.assertNever(N)}}function Bme(e,t,r){return T9(e,"",t,[rp(e,r)])}function Gme(e,t,r,i,o,s,l,u){let{displayParts:p,documentation:g,symbolKind:m,tags:b}=r.runWithCancellationToken(s,T=>ty.getSymbolDisplayPartsDocumentationAndSymbolKind(T,e,i,o,o,7));return T9(t,ty.getSymbolModifiers(r,e),m,p,g,b,l,u)}function T9(e,t,r,i,o,s,l,u){return{name:e,kindModifiers:t,kind:r,displayParts:i,documentation:o,tags:s,codeActions:l,source:u,sourceDisplay:u}}function jet(e,t,r,i,o,s,l,u,p,g,m,b,T,I,R,M){if(I?.moduleSpecifier&&m&&$Me(r||m,p).replacementSpan)return{codeActions:void 0,sourceDisplay:[sf(I.moduleSpecifier)]};if(R==="ClassMemberSnippet/"){let{importAdder:ue,eraseRange:G}=WMe(l,s,u,T,e,o,t,g,r,b);if(ue||G)return{sourceDisplay:void 0,codeActions:[{changes:hr.ChangeTracker.with({host:l,formatContext:b,preferences:T},he=>{ue&&ue.writeFixes(he),G&&he.deleteRange(p,G)}),description:nT([f.Includes_imports_of_types_referenced_by_0,e])}]}}if(DMe(i)){let ue=Fu.getPromoteTypeOnlyCompletionAction(p,i.declaration.name,s,l,b,T);return C.assertIsDefined(ue,"Expected to have a code action for promoting type-only alias"),{codeActions:[ue],sourceDisplay:void 0}}if(R==="ObjectLiteralMemberWithComma/"&&r){let ue=hr.ChangeTracker.with({host:l,formatContext:b,preferences:T},G=>G.insertText(p,r.end,","));if(ue)return{sourceDisplay:void 0,codeActions:[{changes:ue,description:nT([f.Add_missing_comma_for_object_member_completion_0,e])}]}}if(!i||!(E9(i)||SP(i)))return{codeActions:void 0,sourceDisplay:void 0};let N=i.isFromPackageJson?l.getPackageJsonAutoImportProvider().getTypeChecker():s.getTypeChecker(),{moduleSymbol:O}=i,H=N.getMergedSymbol(bu(o.exportSymbol||o,N)),K=r?.kind===30&&sd(r.parent),{moduleSpecifier:Z,codeAction:V}=Fu.getImportCompletionAction(H,O,I?.exportMapKey,p,e,K,l,s,b,m&&Ve(m)?m.getStart(p):g,T,M);return C.assert(!I?.moduleSpecifier||Z===I.moduleSpecifier),{sourceDisplay:[sf(Z)],codeActions:[V]}}function Uet(e,t,r,i,o,s,l){let u=GMe(e,t,r,i,o,s,l);return u.type==="symbol"?u.symbol:void 0}function Het(e,t,r){return Zt(t&&(t.isUnion()?t.types:[t]),i=>{let o=i&&i.symbol;return o&&o.flags&424&&!voe(o)?Vme(o,e,r):void 0})}function qet(e,t,r,i){let{parent:o}=e;switch(e.kind){case 80:return gW(e,i);case 64:switch(o.kind){case 260:return i.getContextualType(o.initializer);case 226:return i.getTypeAtLocation(o.left);case 291:return i.getContextualTypeForJsxAttribute(o);default:return}case 105:return i.getContextualType(o);case 84:let s=ai(o,GR);return s?TX(s,i):void 0;case 19:return AN(o)&&!cg(o.parent)&&!X1(o.parent)?i.getContextualTypeForJsxAttribute(o.parent):void 0;default:let l=QO.getArgumentInfoForCompletions(e,t,r,i);return l?i.getContextualTypeForArgumentAtIndex(l.invocation,l.argumentIndex):vW(e.kind)&&_r(o)&&vW(o.operatorToken.kind)?i.getTypeAtLocation(o.left):i.getContextualType(e,4)||i.getContextualType(e)}}function Vme(e,t,r){let i=r.getAccessibleSymbolChain(e,t,-1,!1);return i?Ha(i):e.parent&&(Jet(e.parent)?e:Vme(e.parent,t,r))}function Jet(e){var t;return!!((t=e.declarations)!=null&&t.some(r=>r.kind===312))}function VMe(e,t,r,i,o,s,l,u,p,g){let m=e.getTypeChecker(),b=OMe(r,i),T=Ks(),I=po(r,o);t("getCompletionData: Get current token: "+(Ks()-T)),T=Ks();let R=Xv(r,o,I);t("getCompletionData: Is inside comment: "+(Ks()-T));let M=!1,N=!1;if(R){if(Iue(r,o)){if(r.text.charCodeAt(o-1)===64)return{kind:1};{let Ge=sm(o,r);if(!/[^*|\s(/)]/.test(r.text.substring(Ge,o)))return{kind:2}}}let pe=$et(I,o);if(pe){if(pe.tagName.pos<=o&&o<=pe.tagName.end)return{kind:1};let Ge=nn(pe);if(Ge&&(I=po(r,o),(!I||!Wg(I)&&(I.parent.kind!==355||I.parent.name!==I))&&(M=J(Ge))),!M&&n_(pe)&&(Fl(pe.name)||pe.name.pos<=o&&o<=pe.name.end))return{kind:3,tag:pe}}if(!M){t("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}T=Ks();let O=!M&&ld(r),H=EQ(o,r),K=H.previousToken,Z=H.contextToken;t("getCompletionData: Get previous token: "+(Ks()-T));let V=I,ue,G=!1,ne=!1,he=!1,ye=!1,$=!1,Y=!1,oe,fe=zd(r,o),Ne=0,me=!1,ie=0;if(Z){let pe=$Me(Z,r);if(pe.keywordCompletion){if(pe.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[Tet(pe.keywordCompletion)],isNewIdentifierLocation:pe.isNewIdentifierLocation};Ne=Iet(pe.keywordCompletion)}if(pe.replacementSpan&&s.includeCompletionsForImportStatements&&s.includeCompletionsWithInsertText&&(ie|=2,oe=pe,me=pe.isNewIdentifierLocation),!pe.replacementSpan&&ro(Z))return t("Returning an empty list because completion was requested in an invalid position."),Ne?kMe(Ne,O,_a()):void 0;let Ge=Z.parent;if(Z.kind===25||Z.kind===29)switch(G=Z.kind===25,ne=Z.kind===29,Ge.kind){case 211:ue=Ge,V=ue.expression;let ke=IR(ue);if(Fl(ke)||(la(V)||ea(V))&&V.end===Z.pos&&V.getChildCount(r)&&Ya(V.getChildren(r)).kind!==22)return;break;case 166:V=Ge.left;break;case 267:V=Ge.name;break;case 205:V=Ge;break;case 236:V=Ge.getFirstToken(r),C.assert(V.kind===102||V.kind===105);break;default:return}else if(!oe){if(Ge&&Ge.kind===211&&(Z=Ge,Ge=Ge.parent),I.parent===fe)switch(I.kind){case 32:(I.parent.kind===284||I.parent.kind===286)&&(fe=I);break;case 44:I.parent.kind===285&&(fe=I);break}switch(Ge.kind){case 287:Z.kind===44&&(ye=!0,fe=Z);break;case 226:if(!YMe(Ge))break;case 285:case 284:case 286:Y=!0,Z.kind===30&&(he=!0,fe=Z);break;case 294:case 293:(K.kind===20||K.kind===80&&K.parent.kind===291)&&(Y=!0);break;case 291:if(Ge.initializer===K&&K.endZS(pe?u.getPackageJsonAutoImportProvider():e,u));if(G||ne)rn();else if(he)Ee=m.getJsxIntrinsicTagNamesAt(fe),C.assertEachIsDefined(Ee,"getJsxIntrinsicTagNames() should all be defined"),Qt(),Le=1,Ne=0;else if(ye){let pe=Z.parent.parent.openingElement.tagName,Ge=m.getSymbolAtLocation(pe);Ge&&(Ee=[Ge]),Le=1,Ne=0}else if(!Qt())return Ne?kMe(Ne,O,me):void 0;t("getCompletionData: Semantic work: "+(Ks()-ve));let at=K&&qet(K,o,r,m),yt=!ai(K,us)&&!Y?Vi(at&&(at.isUnion()?at.types:[at]),pe=>pe.isLiteral()&&!(pe.flags&1024)?pe.value:void 0):[],Qe=K&&at&&Het(K,at,m);return{kind:0,symbols:Ee,completionKind:Le,isInSnippetScope:N,propertyAccessToConvert:ue,isNewIdentifierLocation:me,location:fe,keywordFilters:Ne,literals:yt,symbolToOriginInfoMap:Me,recommendedCompletion:Qe,previousToken:K,contextToken:Z,isJsxInitializer:$,insideJsDocTagTypeExpression:M,symbolToSortTextMap:Fe,isTypeOnlyLocation:Se,isJsxIdentifierExpected:Y,isRightOfOpenTag:he,isRightOfDotOrQuestionDot:G||ne,importStatementCompletion:oe,hasUnresolvedAutoImports:He,flags:ie};function gt(pe){switch(pe.kind){case 348:case 355:case 349:case 351:case 353:case 356:case 357:return!0;case 352:return!!pe.constraint;default:return!1}}function nn(pe){if(gt(pe)){let Ge=am(pe)?pe.constraint:pe.typeExpression;return Ge&&Ge.kind===316?Ge:void 0}if(fI(pe)||a5(pe))return pe.class}function rn(){Le=2;let pe=zy(V),Ge=pe&&!V.isTypeOf||Zh(V.parent)||iO(Z,r,m),ke=HF(V);if(Qd(V)||pe||zr(V)){let Dt=Jl(V.parent);Dt&&(me=!0);let Pt=m.getSymbolAtLocation(V);if(Pt&&(Pt=bu(Pt,m),Pt.flags&1920)){let Kt=m.getExportsOfModule(Pt);C.assertEachIsDefined(Kt,"getExportsOfModule() should all be defined");let Tn=yi=>m.isValidPropertyAccess(pe?V:V.parent,yi.name),On=yi=>Ume(yi,m),Gn=Dt?yi=>{var Di;return!!(yi.flags&1920)&&!((Di=yi.declarations)!=null&&Di.every(or=>or.parent===V.parent))}:ke?yi=>On(yi)||Tn(yi):Ge||M?On:Tn;for(let yi of Kt)Gn(yi)&&Ee.push(yi);if(!Ge&&!M&&Pt.declarations&&Pt.declarations.some(yi=>yi.kind!==312&&yi.kind!==267&&yi.kind!==266)){let yi=m.getTypeOfSymbolAtLocation(Pt,V).getNonOptionalType(),Di=!1;if(yi.isNullableType()){let or=G&&!ne&&s.includeAutomaticOptionalChainCompletions!==!1;(or||ne)&&(yi=yi.getNonNullableType(),or&&(Di=!0))}Nn(yi,!!(V.flags&65536),Di)}return}}if(!Ge||xS(V)){m.tryGetThisTypeAt(V,!1);let Dt=m.getTypeAtLocation(V).getNonOptionalType();if(Ge)Nn(Dt.getNonNullableType(),!1,!1);else{let Pt=!1;if(Dt.isNullableType()){let Kt=G&&!ne&&s.includeAutomaticOptionalChainCompletions!==!1;(Kt||ne)&&(Dt=Dt.getNonNullableType(),Kt&&(Pt=!0))}Nn(Dt,!!(V.flags&65536),Pt)}}}function Nn(pe,Ge,ke){me=!!pe.getStringIndexType(),ne&&Et(pe.getCallSignatures())&&(me=!0);let Dt=V.kind===205?V:V.parent;if(b)for(let Pt of pe.getApparentProperties())m.isValidPropertyAccessForCompletions(Dt,pe,Pt)&&Xn(Pt,!1,ke);else Ee.push(...tr(IQ(pe,m),Pt=>m.isValidPropertyAccessForCompletions(Dt,pe,Pt)));if(Ge&&s.includeCompletionsWithInsertText){let Pt=m.getPromisedTypeOfPromise(pe);if(Pt)for(let Kt of Pt.getApparentProperties())m.isValidPropertyAccessForCompletions(Dt,Pt,Kt)&&Xn(Kt,!0,ke)}}function Xn(pe,Ge,ke){var Dt;let Pt=Zt(pe.declarations,Gn=>ai(Oo(Gn),Za));if(Pt){let Gn=_n(Pt.expression),yi=Gn&&m.getSymbolAtLocation(Gn),Di=yi&&Vme(yi,Z,m),or=Di&&Ta(Di);if(or&&xm(At,or)){let Vr=Ee.length;Ee.push(Di);let Eo=Di.parent;if(!Eo||!sO(Eo)||m.tryGetMemberInModuleExportsAndProperties(Di.name,Eo)!==Di)Me[Vr]={kind:On(2)};else{let Mi=Yc(em(Eo.name))?(Dt=O6(Eo))==null?void 0:Dt.fileName:void 0,{moduleSpecifier:Ci}=(Ce||(Ce=Fu.createImportSpecifierResolver(r,e,u,s))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:Mi,isFromPackageJson:!1,moduleSymbol:Eo,symbol:Di,targetFlags:bu(Di,m).flags}],o,_0(fe))||{};if(Ci){let Kr={kind:On(6),moduleSymbol:Eo,isDefaultExport:!1,symbolName:Di.name,exportName:Di.name,fileName:Mi,moduleSpecifier:Ci};Me[Vr]=Kr}}}else if(s.includeCompletionsWithInsertText){if(or&&At.has(or))return;Tn(pe),Kt(pe),Ee.push(pe)}}else Tn(pe),Kt(pe),Ee.push(pe);function Kt(Gn){rtt(Gn)&&(Fe[Ta(Gn)]=Wu.LocalDeclarationPriority)}function Tn(Gn){s.includeCompletionsWithInsertText&&(Ge&&xm(At,Ta(Gn))?Me[Ee.length]={kind:On(8)}:ke&&(Me[Ee.length]={kind:16}))}function On(Gn){return ke?Gn|16:Gn}}function _n(pe){return Ve(pe)?pe:zr(pe)?_n(pe.expression):void 0}function Qt(){return(En()||wn()||ho()||Ue()||mt()||ft()||Yt()||Nt()||vi()||(ki(),1))===1}function Yt(){return We(Z)?(Le=5,me=!0,Ne=4,1):0}function vi(){let pe=j(Z),Ge=pe&&m.getContextualType(pe.attributes);if(!Ge)return 0;let ke=pe&&m.getContextualType(pe.attributes,4);return Ee=xo(Ee,ae(AQ(Ge,ke,pe.attributes,m),pe.attributes.properties)),q(),Le=3,me=!1,1}function ho(){return oe?(me=!0,tt(),1):0}function ki(){Ne=pt(Z)?5:1,Le=1,me=_a(),K!==Z&&C.assert(!!K,"Expected 'contextToken' to be defined when different from 'previousToken'.");let pe=K!==Z?K.getStart():o,Ge=bi(Z,pe,r)||r;N=nr(Ge);let ke=(Se?0:111551)|788968|1920|2097152,Dt=K&&!_0(K);Ee=xo(Ee,m.getSymbolsInScope(Ge,ke)),C.assertEachIsDefined(Ee,"getSymbolsInScope() should all be defined");for(let Pt=0;PtTn.getSourceFile()===r)&&(Fe[Ta(Kt)]=Wu.GlobalsOrKeywords),Dt&&!(Kt.flags&111551)){let Tn=Kt.declarations&&vn(Kt.declarations,sL);if(Tn){let On={kind:64,declaration:Tn};Me[Pt]=On}}}if(s.includeCompletionsWithInsertText&&Ge.kind!==312){let Pt=m.tryGetThisTypeAt(Ge,!1,pi(Ge.parent)?Ge:void 0);if(Pt&&!ntt(Pt,r,m))for(let Kt of IQ(Pt,m))Me[Ee.length]={kind:1},Ee.push(Kt),Fe[Ta(Kt)]=Wu.SuggestedClassMembers}tt(),Se&&(Ne=Z&&pS(Z.parent)?6:7)}function Ro(){return oe?!0:s.includeCompletionsForModuleExports?r.externalModuleIndicator||r.commonJsModuleIndicator||oX(e.getCompilerOptions())?!0:Pue(e):!1}function nr(pe){switch(pe.kind){case 312:case 228:case 294:case 241:return!0;default:return Ki(pe)}}function qr(){return M||!!oe&&a0(fe.parent)||!xr(Z)&&(iO(Z,r,m)||Zh(fe)||ln(Z))}function xr(pe){return pe&&(pe.kind===114&&(pe.parent.kind===186||zR(pe.parent))||pe.kind===131&&pe.parent.kind===182)}function ln(pe){if(pe){let Ge=pe.parent.kind;switch(pe.kind){case 59:return Ge===172||Ge===171||Ge===169||Ge===260||xA(Ge);case 64:return Ge===265||Ge===168;case 130:return Ge===234;case 30:return Ge===183||Ge===216;case 96:return Ge===168;case 152:return Ge===238}}return!1}function tt(){var pe,Ge;if(!Ro()||(C.assert(!l?.data,"Should not run 'collectAutoImports' when faster path is available via `data`"),l&&!l.source))return;ie|=1;let Dt=K===Z&&oe?"":K&&Ve(K)?K.text.toLowerCase():"",Pt=(pe=u.getModuleSpecifierCache)==null?void 0:pe.call(u),Kt=bO(r,u,e,s,g),Tn=(Ge=u.getPackageJsonAutoImportProvider)==null?void 0:Ge.call(u),On=l?void 0:_P(r,s,u);NMe("collectAutoImports",u,Ce||(Ce=Fu.createImportSpecifierResolver(r,e,u,s)),e,o,s,!!oe,_0(fe),yi=>{Kt.search(r.path,he,(Di,or)=>{if(!$p(Di,as(u.getCompilationSettings()))||!l&&OA(Di)||!Se&&!oe&&!(or&111551)||Se&&!(or&790504))return!1;let Vr=Di.charCodeAt(0);return he&&(Vr<65||Vr>90)?!1:l?!0:nLe(Di,Dt)},(Di,or,Vr,Eo)=>{if(l&&!Et(Di,Fs=>l.source===em(Fs.moduleSymbol.name))||(Di=tr(Di,Gn),!Di.length))return;let Mi=yi.tryResolve(Di,Vr)||{};if(Mi==="failed")return;let Ci=Di[0],Kr;Mi!=="skipped"&&({exportInfo:Ci=Di[0],moduleSpecifier:Kr}=Mi);let Po=Ci.exportKind===1,Dn=Po&&TR(Ci.symbol)||Ci.symbol;zt(Dn,{kind:Kr?32:4,moduleSpecifier:Kr,symbolName:or,exportMapKey:Eo,exportName:Ci.exportKind===2?"export=":Ci.symbol.name,fileName:Ci.moduleFileName,isDefaultExport:Po,moduleSymbol:Ci.moduleSymbol,isFromPackageJson:Ci.isFromPackageJson})}),He=yi.skippedAny(),ie|=yi.resolvedAny()?8:0,ie|=yi.resolvedBeyondLimit()?16:0});function Gn(yi){let Di=ai(yi.moduleSymbol.valueDeclaration,no);if(!Di){let or=em(yi.moduleSymbol.name);return B_.nodeCoreModules.has(or)&&uo(or,"node:")!==DW(r,e)?!1:On?On.allowsImportingAmbientModule(yi.moduleSymbol,je(yi.isFromPackageJson)):!0}return zX(yi.isFromPackageJson?Tn:e,r,Di,s,On,je(yi.isFromPackageJson),Pt)}}function zt(pe,Ge){let ke=Ta(pe);Fe[ke]!==Wu.GlobalsOrKeywords&&(Me[Ee.length]=Ge,Fe[ke]=oe?Wu.LocationPriority:Wu.AutoImportSuggestions,Ee.push(pe))}function Rn(pe,Ge){cr(fe)||pe.forEach(ke=>{if(!ui(ke))return;let Dt=SQ(ke,as(i),void 0,0,!1);if(!Dt)return;let{name:Pt}=Dt,Kt=wet(ke,Pt,Ge,e,u,i,s,p);if(!Kt)return;let Tn={kind:128,...Kt};ie|=32,Me[Ee.length]=Tn,Ee.push(ke)})}function ui(pe){return!!(pe.flags&8196)}function bi(pe,Ge,ke){let Dt=pe;for(;Dt&&!HK(Dt,Ge,ke);)Dt=Dt.parent;return Dt}function ro(pe){let Ge=Ks(),ke=ja(pe)||xt(pe)||Vt(pe)||No(pe)||H7(pe);return t("getCompletionsAtPosition: isCompletionListBlocker: "+(Ks()-Ge)),ke}function No(pe){if(pe.kind===12)return!0;if(pe.kind===32&&pe.parent){if(fe===pe.parent&&(fe.kind===286||fe.kind===285))return!1;if(pe.parent.kind===286)return fe.parent.kind!==286;if(pe.parent.kind===287||pe.parent.kind===285)return!!pe.parent.parent&&pe.parent.parent.kind===284}return!1}function _a(){if(Z){let pe=Z.parent.kind,Ge=TQ(Z);switch(Ge){case 28:return pe===213||pe===176||pe===214||pe===209||pe===226||pe===184||pe===210;case 21:return pe===213||pe===176||pe===214||pe===217||pe===196;case 23:return pe===209||pe===181||pe===167;case 144:case 145:case 102:return!0;case 25:return pe===267;case 19:return pe===263||pe===210;case 64:return pe===260||pe===226;case 16:return pe===228;case 17:return pe===239;case 134:return pe===174||pe===304;case 42:return pe===174}if(A9(Ge))return!0}return!1}function ja(pe){return(fH(pe)||qV(pe))&&(tO(pe,o)||o===pe.end&&(!!pe.isUnterminated||fH(pe)))}function En(){let pe=ett(Z);if(!pe)return 0;let ke=(oI(pe.parent)?pe.parent:void 0)||pe,Dt=XMe(ke,m);if(!Dt)return 0;let Pt=m.getTypeFromTypeNode(ke),Kt=IQ(Dt,m),Tn=IQ(Pt,m),On=new Set;return Tn.forEach(Gn=>On.add(Gn.escapedName)),Ee=xo(Ee,tr(Kt,Gn=>!On.has(Gn.escapedName))),Le=0,me=!0,1}function wn(){let pe=Ee.length,Ge=Ket(Z,o,r);if(!Ge)return 0;Le=0;let ke,Dt;if(Ge.kind===210){let Pt=itt(Ge,m);if(Pt===void 0)return Ge.flags&67108864?2:0;let Kt=m.getContextualType(Ge,4),Tn=(Kt||Pt).getStringIndexType(),On=(Kt||Pt).getNumberIndexType();if(me=!!Tn||!!On,ke=AQ(Pt,Kt,Ge,m),Dt=Ge.properties,ke.length===0&&!On)return 0}else{C.assert(Ge.kind===206),me=!1;let Pt=D_(Ge.parent);if(!rR(Pt))return C.fail("Root declaration is not variable-like.");let Kt=Oy(Pt)||!!yu(Pt)||Pt.parent.parent.kind===250;if(!Kt&&Pt.kind===169&&(bt(Pt.parent)?Kt=!!m.getContextualType(Pt.parent):(Pt.parent.kind===174||Pt.parent.kind===178)&&(Kt=bt(Pt.parent.parent)&&!!m.getContextualType(Pt.parent.parent))),Kt){let Tn=m.getTypeAtLocation(Ge);if(!Tn)return 2;ke=m.getPropertiesOfType(Tn).filter(On=>m.isPropertyAccessible(Ge,!1,!1,Tn,On)),Dt=Ge.elements}}if(ke&&ke.length>0){let Pt=fn(ke,C.checkDefined(Dt));Ee=xo(Ee,Pt),q(),Ge.kind===210&&s.includeCompletionsWithObjectLiteralMethodSnippets&&s.includeCompletionsWithInsertText&&(Lt(pe),Rn(Pt,Ge))}return 1}function Ue(){if(!Z)return 0;let pe=Z.kind===19||Z.kind===28?ai(Z.parent,w3):sW(Z)?ai(Z.parent.parent,w3):void 0;if(!pe)return 0;sW(Z)||(Ne=8);let{moduleSpecifier:Ge}=pe.kind===275?pe.parent.parent:pe.parent;if(!Ge)return me=!0,pe.kind===275?2:0;let ke=m.getSymbolAtLocation(Ge);if(!ke)return me=!0,2;Le=3,me=!1;let Dt=m.getExportsAndPropertiesOfModule(ke),Pt=new Set(pe.elements.filter(Tn=>!J(Tn)).map(Tn=>(Tn.propertyName||Tn.name).escapedText)),Kt=Dt.filter(Tn=>Tn.escapedName!=="default"&&!Pt.has(Tn.escapedName));return Ee=xo(Ee,Kt),Kt.length||(Ne=0),1}function mt(){if(Z===void 0)return 0;let pe=Z.kind===19||Z.kind===28?ai(Z.parent,cI):Z.kind===59?ai(Z.parent.parent,cI):void 0;if(pe===void 0)return 0;let Ge=new Set(pe.elements.map(i7));return Ee=tr(m.getTypeAtLocation(pe).getApparentProperties(),ke=>!Ge.has(ke.escapedName)),1}function ft(){var pe;let Ge=Z&&(Z.kind===19||Z.kind===28)?ai(Z.parent,Df):void 0;if(!Ge)return 0;let ke=zn(Ge,Xm(no,Jl));return Le=5,me=!1,(pe=ke.locals)==null||pe.forEach((Dt,Pt)=>{var Kt,Tn;Ee.push(Dt),(Tn=(Kt=ke.symbol)==null?void 0:Kt.exports)!=null&&Tn.has(Pt)&&(Fe[Ta(Dt)]=Wu.OptionalMember)}),1}function Nt(){let pe=Zet(r,Z,fe,o);if(!pe)return 0;if(Le=3,me=!0,Ne=Z.kind===42?0:pi(pe)?2:3,!pi(pe))return 1;let Ge=Z.kind===27?Z.parent.parent:Z.parent,ke=$c(Ge)?cd(Ge):0;if(Z.kind===80&&!J(Z))switch(Z.getText()){case"private":ke=ke|2;break;case"static":ke=ke|256;break;case"override":ke=ke|16;break}if(Il(Ge)&&(ke|=256),!(ke&2)){let Dt=pi(pe)&&ke&16?yA(x_(pe)):PC(pe),Pt=Zi(Dt,Kt=>{let Tn=m.getTypeAtLocation(Kt);return ke&256?Tn?.symbol&&m.getPropertiesOfType(m.getTypeOfSymbolAtLocation(Tn.symbol,pe)):Tn&&m.getPropertiesOfType(Tn)});Ee=xo(Ee,w(Pt,pe.members,ke)),Ke(Ee,(Kt,Tn)=>{let On=Kt?.valueDeclaration;if(On&&$c(On)&&On.name&&Za(On.name)){let Gn={kind:512,symbolName:m.symbolToString(Kt)};Me[Tn]=Gn}})}return 1}function le(pe){return!!pe.parent&&Co(pe.parent)&&Pl(pe.parent.parent)&&(hC(pe.kind)||Wg(pe))}function We(pe){if(pe){let Ge=pe.parent;switch(pe.kind){case 21:case 28:return Pl(pe.parent)?pe.parent:void 0;default:if(le(pe))return Ge.parent}}}function pt(pe){if(pe){let Ge,ke=zn(pe.parent,Dt=>pi(Dt)?"quit":zs(Dt)&&Ge===Dt.body?!0:(Ge=Dt,!1));return ke&&ke}}function j(pe){if(pe){let Ge=pe.parent;switch(pe.kind){case 32:case 31:case 44:case 80:case 211:case 292:case 291:case 293:if(Ge&&(Ge.kind===285||Ge.kind===286)){if(pe.kind===32){let ke=Ac(pe.pos,r,void 0);if(!Ge.typeArguments||ke&&ke.kind===44)break}return Ge}else if(Ge.kind===291)return Ge.parent.parent;break;case 11:if(Ge&&(Ge.kind===291||Ge.kind===293))return Ge.parent.parent;break;case 20:if(Ge&&Ge.kind===294&&Ge.parent&&Ge.parent.kind===291)return Ge.parent.parent.parent;if(Ge&&Ge.kind===293)return Ge.parent.parent;break}}}function ot(pe,Ge){return r.getLineEndOfPosition(pe.getEnd())=pe.pos;case 25:return ke===207;case 59:return ke===208;case 23:return ke===207;case 21:return ke===299||ht(ke);case 19:return ke===266;case 30:return ke===263||ke===231||ke===264||ke===265||xA(ke);case 126:return ke===172&&!pi(Ge.parent);case 26:return ke===169||!!Ge.parent&&Ge.parent.kind===207;case 125:case 123:case 124:return ke===169&&!Pl(Ge.parent);case 130:return ke===276||ke===281||ke===274;case 139:case 153:return!xQ(pe);case 80:{if(ke===276&&pe===Ge.name&&pe.text==="type"||zn(pe.parent,Oi)&&ot(pe,o))return!1;break}case 86:case 94:case 120:case 100:case 115:case 102:case 121:case 87:case 140:return!0;case 156:return ke!==276;case 42:return ea(pe.parent)&&!jl(pe.parent)}if(A9(TQ(pe))&&xQ(pe)||le(pe)&&(!Ve(pe)||hC(TQ(pe))||J(pe)))return!1;switch(TQ(pe)){case 128:case 86:case 87:case 138:case 94:case 100:case 120:case 121:case 123:case 124:case 125:case 126:case 115:return!0;case 134:return Jo(pe.parent)}if(zn(pe.parent,pi)&&pe===K&&Ye(pe,o))return!1;let Pt=p0(pe.parent,172);if(Pt&&pe!==K&&pi(K.parent.parent)&&o<=K.end){if(Ye(pe,K.end))return!1;if(pe.kind!==64&&(Dw(Pt)||N6(Pt)))return!0}return Wg(pe)&&!np(pe.parent)&&!O_(pe.parent)&&!((pi(pe.parent)||fd(pe.parent)||_l(pe.parent))&&(pe!==K||o>K.end))}function Ye(pe,Ge){return pe.kind!==64&&(pe.kind===27||!Af(pe.end,Ge,r))}function ht(pe){return xA(pe)&&pe!==176}function Vt(pe){if(pe.kind===9){let Ge=pe.getFullText();return Ge.charAt(Ge.length-1)==="."}return!1}function yn(pe){return pe.parent.kind===261&&!iO(pe,r,m)}function fn(pe,Ge){if(Ge.length===0)return pe;let ke=new Set,Dt=new Set;for(let Kt of Ge){if(Kt.kind!==303&&Kt.kind!==304&&Kt.kind!==208&&Kt.kind!==174&&Kt.kind!==177&&Kt.kind!==178&&Kt.kind!==305||J(Kt))continue;let Tn;if(qv(Kt))mn(Kt,ke);else if(Qa(Kt)&&Kt.propertyName)Kt.propertyName.kind===80&&(Tn=Kt.propertyName.escapedText);else{let On=Oo(Kt);Tn=On&&R_(On)?kC(On):void 0}Tn!==void 0&&Dt.add(Tn)}let Pt=pe.filter(Kt=>!Dt.has(Kt.escapedName));return Oe(ke,Pt),Pt}function mn(pe,Ge){let ke=pe.expression,Dt=m.getSymbolAtLocation(ke),Pt=Dt&&m.getTypeOfSymbolAtLocation(Dt,ke),Kt=Pt&&Pt.properties;Kt&&Kt.forEach(Tn=>{Ge.add(Tn.name)})}function q(){Ee.forEach(pe=>{if(pe.flags&16777216){let Ge=Ta(pe);Fe[Ge]=Fe[Ge]??Wu.OptionalMember}})}function Oe(pe,Ge){if(pe.size!==0)for(let ke of Ge)pe.has(ke.name)&&(Fe[Ta(ke)]=Wu.MemberDeclaredBySpreadAssignment)}function Lt(pe){for(let Ge=pe;Ge!Dt.has(Pt.escapedName)&&!!Pt.declarations&&!(If(Pt)&2)&&!(Pt.valueDeclaration&&ad(Pt.valueDeclaration)))}function ae(pe,Ge){let ke=new Set,Dt=new Set;for(let Kt of Ge)J(Kt)||(Kt.kind===291?ke.add(lN(Kt.name)):pI(Kt)&&mn(Kt,Dt));let Pt=pe.filter(Kt=>!ke.has(Kt.escapedName));return Oe(Dt,Pt),Pt}function J(pe){return pe.getStart(r)<=o&&o<=pe.getEnd()}}function Ket(e,t,r){var i;if(e){let{parent:o}=e;switch(e.kind){case 19:case 28:if(wa(o)||om(o))return o;break;case 42:return jl(o)?ai(o.parent,wa):void 0;case 134:return ai(o.parent,wa);case 80:if(e.text==="async"&&np(e.parent))return e.parent.parent;{if(wa(e.parent.parent)&&(qv(e.parent)||np(e.parent)&&Es(r,e.getEnd()).line!==Es(r,t).line))return e.parent.parent;let l=zn(o,_c);if(l?.getLastToken(r)===e&&wa(l.parent))return l.parent}break;default:if((i=o.parent)!=null&&i.parent&&(jl(o.parent)||Zp(o.parent)||vp(o.parent))&&wa(o.parent.parent))return o.parent.parent;if(qv(o)&&wa(o.parent))return o.parent;let s=zn(o,_c);if(e.kind!==59&&s?.getLastToken(r)===e&&wa(s.parent))return s.parent}}}function EQ(e,t){let r=Ac(e,t);return r&&e<=r.end&&(Yh(r)||Fd(r.kind))?{contextToken:Ac(r.getFullStart(),t,void 0),previousToken:r}:{contextToken:r,previousToken:r}}function jMe(e,t,r,i){let o=t.isPackageJsonImport?i.getPackageJsonAutoImportProvider():r,s=o.getTypeChecker(),l=t.ambientModuleName?s.tryFindAmbientModule(t.ambientModuleName):t.fileName?s.getMergedSymbol(C.checkDefined(o.getSourceFile(t.fileName)).symbol):void 0;if(!l)return;let u=t.exportName==="export="?s.resolveExternalModuleSymbol(l):s.tryGetMemberInModuleExportsAndProperties(t.exportName,l);return u?(u=t.exportName==="default"&&TR(u)||u,{symbol:u,origin:Fet(t,e,l)}):void 0}function SQ(e,t,r,i,o){if(vet(r))return;let s=met(r)?r.symbolName:e.name;if(s===void 0||e.flags&1536&&kL(s.charCodeAt(0))||ek(e))return;let l={name:s,needsConvertPropertyAccess:!1};if($p(s,t,o?1:0)||e.valueDeclaration&&ad(e.valueDeclaration))return l;switch(i){case 3:return wme(r)?{name:r.symbolName,needsConvertPropertyAccess:!1}:void 0;case 0:return{name:JSON.stringify(s),needsConvertPropertyAccess:!1};case 2:case 1:return s.charCodeAt(0)===32?void 0:{name:s,needsConvertPropertyAccess:!0};case 5:case 4:return l;default:C.assertNever(i)}}function UMe(e,t){if(!t)return HMe(e);let r=e+8+1;return I9[r]||(I9[r]=HMe(e).filter(i=>!Xet(y1(i.name))))}function HMe(e){return I9[e]||(I9[e]=Xme().filter(t=>{let r=y1(t.name);switch(e){case 0:return!1;case 1:return JMe(r)||r===138||r===144||r===156||r===145||r===128||sP(r)&&r!==157;case 5:return JMe(r);case 2:return A9(r);case 3:return qMe(r);case 4:return hC(r);case 6:return sP(r)||r===87;case 7:return sP(r);case 8:return r===156;default:return C.assertNever(e)}}))}function Xet(e){switch(e){case 128:case 133:case 163:case 136:case 138:case 94:case 162:case 119:case 140:case 120:case 142:case 143:case 144:case 145:case 146:case 150:case 151:case 164:case 123:case 124:case 125:case 148:case 154:case 155:case 156:case 158:case 159:return!0;default:return!1}}function qMe(e){return e===148}function A9(e){switch(e){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return JV(e)}}function JMe(e){return e===134||e===135||e===160||e===130||e===152||e===156||!m3(e)&&!A9(e)}function TQ(e){return Ve(e)?n0(e)??0:e.kind}function Yet(e,t){let r=[];if(e){let i=e.getSourceFile(),o=e.parent,s=i.getLineAndCharacterOfPosition(e.end).line,l=i.getLineAndCharacterOfPosition(t).line;(Lc(o)||Kl(o)&&o.moduleSpecifier)&&e===o.moduleSpecifier&&s===l&&r.push({name:ma(132),kind:"keyword",kindModifiers:"",sortText:Wu.GlobalsOrKeywords})}return r}function $et(e,t){return zn(e,r=>Xx(r)&&eO(r,t)?!0:t_(r)?"quit":!1)}function AQ(e,t,r,i){let o=t&&t!==e,s=o&&!(t.flags&3)?i.getUnionType([e,t]):e,l=Qet(s,r,i);return s.isClass()&&KMe(l)?[]:o?tr(l,u):l;function u(p){return De(p.declarations)?Et(p.declarations,g=>g.parent!==r):!0}}function Qet(e,t,r){return e.isUnion()?r.getAllPossiblePropertiesOfTypes(tr(e.types,i=>!(i.flags&402784252||r.isArrayLikeType(i)||r.isTypeInvalidDueToUnionDiscriminant(i,t)||r.typeHasCallOrConstructSignatures(i)||i.isClass()&&KMe(i.getApparentProperties())))):e.getApparentProperties()}function KMe(e){return Et(e,t=>!!(If(t)&6))}function IQ(e,t){return e.isUnion()?C.checkEachDefined(t.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):C.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function Zet(e,t,r,i){switch(r.kind){case 358:return ai(r.parent,GA);case 1:let o=ai(Zs(aa(r.parent,no).statements),GA);if(o&&!bs(o,20,e))return o;break;case 81:if(ai(r.parent,Jo))return zn(r,pi);break;case 80:{if(n0(r)||Jo(r.parent)&&r.parent.initializer===r)return;if(xQ(r))return zn(r,GA)}}if(t){if(r.kind===137||Ve(t)&&Jo(t.parent)&&pi(r))return zn(t,pi);switch(t.kind){case 64:return;case 27:case 20:return xQ(r)&&r.parent.name===r?r.parent.parent:ai(r,GA);case 19:case 28:return ai(t.parent,GA);default:if(GA(r)){if(Es(e,t.getEnd()).line!==Es(e,i).line)return r;let o=pi(t.parent.parent)?A9:qMe;return o(t.kind)||t.kind===42||Ve(t)&&o(n0(t)??0)?t.parent.parent:void 0}return}}}function ett(e){if(!e)return;let t=e.parent;switch(e.kind){case 19:if(yp(t))return t;break;case 27:case 28:case 80:if(t.kind===171&&yp(t.parent))return t.parent;break}}function XMe(e,t){if(!e)return;if(qi(e)&&P6(e.parent))return t.getTypeArgumentConstraint(e);let r=XMe(e.parent,t);if(r)switch(e.kind){case 171:return t.getTypeOfPropertyOfContextualType(r,e.symbol.escapedName);case 193:case 187:case 192:return r}}function xQ(e){return e.parent&&T6(e.parent)&&GA(e.parent.parent)}function ttt(e,t,r,i){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!r&&Kue(r)&&i===r.getStart(e)+1;case"#":return!!r&&Xi(r)&&!!su(r);case"<":return!!r&&r.kind===30&&(!_r(r.parent)||YMe(r.parent));case"/":return!!r&&(us(r)?!!jL(r):r.kind===44&&K1(r.parent));case" ":return!!r&&vN(r)&&r.parent.kind===312;default:return C.assertNever(t)}}function YMe({left:e}){return Fl(e)}function ntt(e,t,r){let i=r.resolveName("self",void 0,111551,!1);if(i&&r.getTypeOfSymbolAtLocation(i,t)===e)return!0;let o=r.resolveName("global",void 0,111551,!1);if(o&&r.getTypeOfSymbolAtLocation(o,t)===e)return!0;let s=r.resolveName("globalThis",void 0,111551,!1);return!!(s&&r.getTypeOfSymbolAtLocation(s,t)===e)}function rtt(e){return!!(e.valueDeclaration&&cd(e.valueDeclaration)&256&&pi(e.valueDeclaration.parent))}function itt(e,t){let r=t.getContextualType(e);if(r)return r;let i=Fv(e.parent);if(_r(i)&&i.operatorToken.kind===64&&e===i.left)return t.getTypeAtLocation(i);if(bt(i))return t.getContextualType(i)}function $Me(e,t){var r,i,o;let s,l=!1,u=p();return{isKeywordOnlyCompletion:l,keywordCompletion:s,isNewIdentifierLocation:!!(u||s===156),isTopLevelTypeOnly:!!((i=(r=ai(u,Lc))==null?void 0:r.importClause)!=null&&i.isTypeOnly)||!!((o=ai(u,tu))!=null&&o.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!u&&ZMe(u,e),replacementSpan:ott(u)};function p(){let g=e.parent;if(tu(g)){let m=g.getLastToken(t);if(Ve(e)&&m!==e){s=161,l=!0;return}return s=e.kind===156?void 0:156,jme(g.moduleReference)?g:void 0}if(ZMe(g,e)&&eLe(g.parent))return g;if(jg(g)||Zy(g)){if(!g.parent.isTypeOnly&&(e.kind===19||e.kind===102||e.kind===28)&&(s=156),eLe(g))if(e.kind===20||e.kind===80)l=!0,s=161;else return g.parent.parent;return}if(Kl(g)&&e.kind===42||Df(g)&&e.kind===20){l=!0,s=161;return}if(vN(e)&&no(g))return s=156,e;if(vN(e)&&Lc(g))return s=156,jme(g.moduleSpecifier)?g:void 0}}function ott(e){var t;if(!e)return;let r=zn(e,Xm(Lc,tu))??e,i=r.getSourceFile();if(DS(r,i))return Rd(r,i);C.assert(r.kind!==102&&r.kind!==276);let o=r.kind===272?QMe((t=r.importClause)==null?void 0:t.namedBindings)??r.moduleSpecifier:r.moduleReference,s={pos:r.getFirstToken().getStart(),end:o.pos};if(DS(s,i))return ib(s)}function QMe(e){var t;return vn((t=ai(e,jg))==null?void 0:t.elements,r=>{var i;return!r.propertyName&&OA(r.name.text)&&((i=Ac(r.name.pos,e.getSourceFile(),e))==null?void 0:i.kind)!==28})}function ZMe(e,t){return tp(e)&&(e.isTypeOnly||t===e.name&&sW(t))}function eLe(e){if(!jme(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(jg(e)){let t=QMe(e);return(t?e.elements.indexOf(t):e.elements.length)<2}return!0}function jme(e){var t;return Fl(e)?!0:!((t=ai(Th(e)?e.expression:e,us))!=null&&t.text)}function att(e,t){if(!e)return;let r=zn(e,o=>D1(o)||tLe(o)||ta(o)?"quit":(Co(o)||_l(o))&&!j1(o.parent)),i=zn(t,o=>D1(o)||tLe(o)||ta(o)?"quit":Oi(o));return r||i}function tLe(e){return e.parent&&Bs(e.parent)&&(e.parent.body===e||e.kind===39)}function Ume(e,t,r=new Map){return i(e)||i(bu(e.exportSymbol||e,t));function i(o){return!!(o.flags&788968)||t.isUnknownSymbol(o)||!!(o.flags&1536)&&xm(r,Ta(o))&&t.getExportsOfModule(o).some(s=>Ume(s,t,r))}}function stt(e,t){let r=bu(e,t).declarations;return!!De(r)&&Jn(r,RW)}function nLe(e,t){if(t.length===0)return!0;let r=!1,i,o=0,s=e.length;for(let l=0;l(e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",e.SwitchCases="SwitchCases/",e.ObjectLiteralMemberWithComma="ObjectLiteralMemberWithComma/",e))(qme||{}),Jme=(e=>(e[e.ThisType=1]="ThisType",e[e.SymbolMember=2]="SymbolMember",e[e.Export=4]="Export",e[e.Promise=8]="Promise",e[e.Nullable=16]="Nullable",e[e.ResolvedExport=32]="ResolvedExport",e[e.TypeOnlyAlias=64]="TypeOnlyAlias",e[e.ObjectLiteralMethod=128]="ObjectLiteralMethod",e[e.Ignore=256]="Ignore",e[e.ComputedPropertyName=512]="ComputedPropertyName",e[e.SymbolMemberNoExport=2]="SymbolMemberNoExport",e[e.SymbolMemberExport=6]="SymbolMemberExport",e))(Jme||{}),Kme=(e=>(e[e.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",e[e.Global=1]="Global",e[e.PropertyAccess=2]="PropertyAccess",e[e.MemberLike=3]="MemberLike",e[e.String=4]="String",e[e.None=5]="None",e))(Kme||{}),I9=[],Xme=Ed(()=>{let e=[];for(let t=83;t<=165;t++)e.push({name:ma(t),kind:"keyword",kindModifiers:"",sortText:Wu.GlobalsOrKeywords});return e})}});function Yme(){let e=new Map;function t(r){let i=e.get(r.name);(!i||t_e[i.kind]({name:rg(I.value,b),kindModifiers:"",kind:"string",sortText:Wu.LocationPriority,replacementSpan:eX(t)}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:m,entries:T}}default:return C.assertNever(e)}}function ftt(e,t,r,i,o,s,l,u){if(!i||!us(i))return;let p=oLe(t,i,r,o,s,u);return p&&mtt(e,i,p,t,o.getTypeChecker(),l)}function mtt(e,t,r,i,o,s){switch(r.kind){case 0:{let l=vn(r.paths,u=>u.name===e);return l&&T9(e,iLe(l.extension),l.kind,[sf(e)])}case 1:{let l=vn(r.symbols,u=>u.name===e);return l&&Gme(l,l.name,o,i,t,s)}case 2:return vn(r.types,l=>l.value===e)?T9(e,"","string",[sf(e)]):void 0;default:return C.assertNever(r)}}function rLe(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map(({name:o,kind:s,span:l,extension:u})=>({name:o,kind:s,kindModifiers:iLe(u),sortText:Wu.LocationPriority,replacementSpan:l}))}}function iLe(e){switch(e){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case".d.mts":return".d.mts";case".mjs":return".mjs";case".mts":return".mts";case".d.cts":return".d.cts";case".cjs":return".cjs";case".cts":return".cts";case".tsbuildinfo":return C.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return C.assertNever(e)}}function oLe(e,t,r,i,o,s){let l=i.getTypeChecker(),u=$me(t.parent);switch(u.kind){case 201:{let I=$me(u.parent);return I.kind===205?{kind:0,paths:lLe(e,t,i,o,s)}:p(I)}case 303:return wa(u.parent)&&u.name===t?gtt(l,u.parent):g()||g(0);case 212:{let{expression:I,argumentExpression:R}=u;return t===vs(R)?aLe(l.getTypeAtLocation(I)):void 0}case 213:case 214:case 291:if(!Ptt(t)&&!Wp(u)){let I=QO.getArgumentInfoForCompletions(u.kind===291?u.parent:t,r,e,l);return I&&htt(I.invocation,t,I,l)||g(0)}case 272:case 278:case 283:return{kind:0,paths:lLe(e,t,i,o,s)};case 296:let m=NW(l,u.parent.clauses),b=g();return b?{kind:2,types:b.types.filter(I=>!m.hasValue(I.value)),isNewIdentifier:!1}:void 0;default:return g()||g(0)}function p(m){switch(m.kind){case 233:case 183:{let I=zn(u,R=>R.parent===m);return I?{kind:2,types:DQ(l.getTypeArgumentConstraint(I)),isNewIdentifier:!1}:void 0}case 199:let{indexType:b,objectType:T}=m;return eO(b,r)?aLe(l.getTypeFromTypeNode(T)):void 0;case 192:{let I=p($me(m.parent));if(!I)return;let R=_tt(m,u);return I.kind===1?{kind:1,symbols:I.symbols.filter(M=>!wr(R,M.name)),hasIndexSignature:I.hasIndexSignature}:{kind:2,types:I.types.filter(M=>!wr(R,M.value)),isNewIdentifier:!1}}default:return}}function g(m=4){let b=DQ(gW(t,l,m));if(b.length)return{kind:2,types:b,isNewIdentifier:!1}}}function $me(e){switch(e.kind){case 196:return KL(e);case 217:return Fv(e);default:return e}}function _tt(e,t){return Vi(e.types,r=>r!==t&&Yy(r)&&Na(r.literal)?r.literal.text:void 0)}function htt(e,t,r,i){let o=!1,s=new Map,l=sd(e)?C.checkDefined(zn(t.parent,O_)):t,u=i.getCandidateSignaturesForStringLiteralCompletions(e,l),p=Zi(u,g=>{if(!Xu(g)&&r.argumentCount>g.parameters.length)return;let m=g.getTypeParameterAtPosition(r.argumentIndex);if(sd(e)){let b=i.getTypeOfPropertyOfType(m,bk(l.name));b&&(m=b)}return o=o||!!(m.flags&4),DQ(m,s)});return De(p)?{kind:2,types:p,isNewIdentifier:o}:void 0}function aLe(e){return e&&{kind:1,symbols:tr(e.getApparentProperties(),t=>!(t.valueDeclaration&&ad(t.valueDeclaration))),hasIndexSignature:SX(e)}}function gtt(e,t){let r=e.getContextualType(t);if(!r)return;let i=e.getContextualType(t,4);return{kind:1,symbols:AQ(r,i,t,e),hasIndexSignature:SX(r)}}function DQ(e,t=new Map){return e?(e=iX(e),e.isUnion()?Zi(e.types,r=>DQ(r,t)):e.isStringLiteral()&&!(e.flags&1024)&&xm(t,e.value)?[e]:et):et}function TP(e,t,r){return{name:e,kind:t,extension:r}}function Qme(e){return TP(e,"directory",void 0)}function sLe(e,t,r){let i=Ctt(e,t),o=e.length===0?void 0:vu(t,e.length);return r.map(({name:s,kind:l,extension:u})=>s.includes(il)||s.includes(HM)?{name:s,kind:l,extension:u,span:o}:{name:s,kind:l,extension:u,span:i})}function lLe(e,t,r,i,o){return sLe(t.text,t.getStart(e)+1,vtt(e,t,r,i,o))}function vtt(e,t,r,i,o){let s=Mu(t.text),l=us(t)?r.getModeForUsageLocation(e,t):void 0,u=e.path,p=li(u),g=r.getCompilerOptions(),m=r.getTypeChecker(),b=Zme(g,1,e,m,o,l);return Ntt(s)||!g.baseUrl&&!g.paths&&(dp(s)||qne(s))?ytt(s,p,g,i,u,b):Ttt(s,p,l,g,i,b,m)}function Zme(e,t,r,i,o,s){return{extensionsToSearch:ts(btt(e,i)),referenceKind:t,importingSourceFile:r,endingPreference:o?.importModuleSpecifierEnding,resolutionMode:s}}function ytt(e,t,r,i,o,s){return r.rootDirs?Stt(r.rootDirs,e,t,s,r,i,o):Vo(JO(e,t,s,i,!0,o).values())}function btt(e,t){let r=t?Vi(t.getAmbientModules(),s=>{let l=s.name.slice(1,-1);if(!(!l.startsWith("*.")||l.includes("/")))return l.slice(1)}):[],i=[...$C(e),r],o=dd(e);return lW(o)?fk(e,i):i}function Ett(e,t,r,i){e=e.map(s=>zc(va(dp(s)?s:Zr(t,s))));let o=Zt(e,s=>ym(s,r,t,i)?r.substr(s.length):void 0);return h1([...e.map(s=>Zr(s,o)),r].map(s=>$b(s)),rS,ju)}function Stt(e,t,r,i,o,s,l){let u=o.project||s.getCurrentDirectory(),p=!(s.useCaseSensitiveFileNames&&s.useCaseSensitiveFileNames()),g=Ett(e,u,r,p);return h1(Zi(g,m=>Vo(JO(t,m,i,s,!0,l).values())),(m,b)=>m.name===b.name&&m.kind===b.kind&&m.extension===b.extension)}function JO(e,t,r,i,o,s,l=Yme()){var u;e===void 0&&(e=""),e=Mu(e),Pv(e)||(e=li(e)),e===""&&(e="."+il),e=zc(e);let p=Dy(t,e),g=Pv(p)?p:li(p);if(!o){let I=Yue(g,i);if(I){let M=UC(I,i).typesVersions;if(typeof M=="object"){let N=(u=P5(M))==null?void 0:u.paths;if(N){let O=li(I),H=p.slice(zc(O).length);if(uLe(l,H,O,r,i,N))return l}}}}let m=!(i.useCaseSensitiveFileNames&&i.useCaseSensitiveFileNames());if(!SW(i,g))return l;let b=AX(i,g,r.extensionsToSearch,void 0,["./*"]);if(b)for(let I of b){if(I=va(I),s&&Pg(I,s,t,m)===0)continue;let{name:R,extension:M}=cLe(rc(I),i.getCompilationSettings(),r,!1);l.add(TP(R,"script",M))}let T=EW(i,g);if(T)for(let I of T){let R=rc(va(I));R!=="@types"&&l.add(Qme(R))}return l}function cLe(e,t,r,i){let o=nE.tryGetRealFileNameForNonJsDeclarationFileName(e);if(o)return{name:o,extension:Gg(o)};if(r.referenceKind===0)return{name:e,extension:Gg(e)};let s=Aw({importModuleSpecifierEnding:r.endingPreference},t,r.importingSourceFile).getAllowedEndingsInPreferredOrder(r.resolutionMode);if(i&&(s=s.filter(u=>u!==0&&u!==1)),s[0]===3){if(Ec(e,Ik))return{name:e,extension:Gg(e)};let u=nE.tryGetJSExtensionForFile(e,t);return u?{name:m0(e,u),extension:u}:{name:e,extension:Gg(e)}}if(!i&&(s[0]===0||s[0]===1)&&Ec(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:Td(e),extension:Gg(e)};let l=nE.tryGetJSExtensionForFile(e,t);return l?{name:m0(e,l),extension:l}:{name:e,extension:Gg(e)}}function uLe(e,t,r,i,o,s){let l=p=>s[p],u=(p,g)=>{let m=DR(p),b=DR(g),T=typeof m=="object"?m.prefix.length:p.length,I=typeof b=="object"?b.prefix.length:g.length;return tl(I,T)};return dLe(e,!1,t,r,i,o,Jh(s),l,u)}function dLe(e,t,r,i,o,s,l,u,p){let g=[],m;for(let b of l){if(b===".")continue;let T=b.replace(/^\.\//,""),I=u(b);if(I){let R=DR(T);if(!R)continue;let M=typeof R=="object"&&k8(R,r);M&&(m===void 0||p(b,m)===-1)&&(m=b,g=g.filter(O=>!O.matchedPattern)),(typeof R=="string"||m===void 0||p(b,m)!==1)&&g.push({matchedPattern:M,results:Att(T,I,r,i,o,t&&M,s).map(({name:O,kind:H,extension:K})=>TP(O,H,K))})}}return g.forEach(b=>b.results.forEach(T=>e.add(T))),m!==void 0}function Ttt(e,t,r,i,o,s,l){let{baseUrl:u,paths:p}=i,g=Yme(),m=dd(i);if(u){let T=va(Zr(o.getCurrentDirectory(),u));JO(e,T,s,o,!1,void 0,g)}if(p){let T=E3(i,o);uLe(g,e,T,s,o,p)}let b=fLe(e);for(let T of xtt(e,b,l))g.add(TP(T,"external module name",void 0));if(hLe(o,i,t,b,s,g),lW(m)){let T=!1;if(b===void 0)for(let I of Dtt(o,t)){let R=TP(I,"external module name",void 0);g.has(R.name)||(T=!0,g.add(R))}if(!T){let I=R=>{let M=Zr(R,"node_modules");SW(o,M)&&JO(e,M,s,o,!1,void 0,g)};if(b&&c7(i)){let R=I;I=M=>{let N=Wc(e);N.shift();let O=N.shift();if(!O)return R(M);if(uo(O,"@")){let Z=N.shift();if(!Z)return R(M);O=Zr(O,Z)}let H=Zr(M,"node_modules",O),K=Zr(H,"package.json");if(gO(o,K)){let V=UC(K,o).exports;if(V){if(typeof V!="object"||V===null)return;let ue=Jh(V),G=N.join("/")+(N.length&&Pv(e)?"/":""),ne=tb(i,r);dLe(g,!0,G,H,s,o,ue,he=>yA(pLe(V[he],ne)),Dq);return}}return R(M)}}Em(t,I)}}return Vo(g.values())}function pLe(e,t){if(typeof e=="string")return e;if(e&&typeof e=="object"&&!Do(e)){for(let r in e)if(r==="default"||t.includes(r)||Sw(t,r)){let i=e[r];return pLe(i,t)}}}function fLe(e){return e_e(e)?Pv(e)?e:li(e):void 0}function Att(e,t,r,i,o,s,l){if(!Sl(e,"*"))return e.includes("*")?et:g(e,"script");let u=e.slice(0,e.length-1),p=dG(r,u);if(p===void 0)return e[e.length-2]==="/"?g(u,"directory"):Zi(t,b=>{var T;return(T=mLe("",i,b,o,s,l))==null?void 0:T.map(({name:I,...R})=>({name:u+I,...R}))});return Zi(t,m=>mLe(p,i,m,o,s,l));function g(m,b){return uo(m,r)?[{name:$b(m),kind:b,extension:void 0}]:et}}function mLe(e,t,r,i,o,s){if(!s.readDirectory)return;let l=DR(r);if(l===void 0||wo(l))return;let u=Dy(l.prefix),p=Pv(l.prefix)?u:li(u),g=Pv(l.prefix)?"":rc(u),m=e_e(e),b=m?Pv(e)?e:li(e):void 0,T=m?Zr(p,g+b):p,I=va(l.suffix),R=I&&b3("_"+I),M=R?[m0(I,R),I]:[I],N=va(Zr(t,T)),O=m?N:zc(N)+g,H=I?M.map(ue=>"**/*"+ue):["./*"],K=Vi(AX(s,N,i.extensionsToSearch,void 0,H),ue=>{let G=V(ue);if(G){if(e_e(G))return Qme(Wc(_Le(G))[1]);let{name:ne,extension:he}=cLe(G,s.getCompilationSettings(),i,o);return TP(ne,"script",he)}}),Z=I?et:Vi(EW(s,N),ue=>ue==="node_modules"?void 0:Qme(ue));return[...K,...Z];function V(ue){return Zt(M,G=>{let ne=Itt(va(ue),O,G);return ne===void 0?void 0:_Le(ne)})}}function Itt(e,t,r){return uo(e,t)&&Sl(e,r)?e.slice(t.length,e.length-r.length):void 0}function _Le(e){return e[0]===il?e.slice(1):e}function xtt(e,t,r){let o=r.getAmbientModules().map(s=>em(s.name)).filter(s=>uo(s,e)&&!s.includes("*"));if(t!==void 0){let s=zc(t);return o.map(l=>ZD(l,s))}return o}function Rtt(e,t,r,i){let o=po(e,t),s=Kh(e.text,o.pos),l=s&&vn(s,R=>t>=R.pos&&t<=R.end);if(!l)return;let u=e.text.slice(l.pos,t),p=gLe.exec(u);if(!p)return;let[,g,m,b]=p,T=li(e.path),I=m==="path"?JO(b,T,Zme(r,0,e),i,!0,e.path):m==="types"?hLe(i,r,T,fLe(b),Zme(r,1,e)):C.fail();return sLe(b,l.pos+g.length,Vo(I.values()))}function hLe(e,t,r,i,o,s=Yme()){let l=new Map,u=TW(()=>FN(t,e))||et;for(let g of u)p(g);for(let g of IX(r,e)){let m=Zr(li(g),"node_modules/@types");p(m)}return s;function p(g){if(SW(e,g))for(let m of EW(e,g)){let b=Tw(m);if(!(t.types&&!wr(t.types,b)))if(i===void 0)l.has(b)||(s.add(TP(b,"external module name",void 0)),l.set(b,!0));else{let T=Zr(g,m),I=AU(i,b,Wv(e));I!==void 0&&JO(I,T,o,e,!1,void 0,s)}}}}function Dtt(e,t){if(!e.readFile||!e.fileExists)return et;let r=[];for(let i of IX(t,e)){let o=UC(i,e);for(let s of vLe){let l=o[s];if(l)for(let u in l)Rs(l,u)&&!uo(u,"@types/")&&r.push(u)}}return r}function Ctt(e,t){let r=Math.max(e.lastIndexOf(il),e.lastIndexOf(HM)),i=r!==-1?r+1:0,o=e.length-i;return o===0||$p(e.substr(i,o),99)?void 0:vu(t+i,o)}function Ntt(e){if(e&&e.length>=2&&e.charCodeAt(0)===46){let t=e.length>=3&&e.charCodeAt(1)===46?2:1,r=e.charCodeAt(t);return r===47||r===92}return!1}function e_e(e){return e.includes(il)}function Ptt(e){return la(e.parent)&&Xc(e.parent.arguments)===e&&Ve(e.parent.expression)&&e.parent.expression.escapedText==="require"}var t_e,gLe,vLe,Mtt=A({"src/services/stringCompletions.ts"(){"use strict";rle(),ci(),n_e(),t_e={directory:0,script:1,"external module name":2},gLe=/^(\/\/\/\s*ftt,getStringLiteralCompletions:()=>dtt});var Ltt=A({"src/services/_namespaces/ts.Completions.StringCompletions.ts"(){"use strict";Mtt()}}),OI={};X(OI,{CompletionKind:()=>Kme,CompletionSource:()=>qme,SortText:()=>Wu,StringCompletions:()=>CQ,SymbolOriginInfoKind:()=>Jme,createCompletionDetails:()=>T9,createCompletionDetailsForSymbol:()=>Gme,getCompletionEntriesFromSymbols:()=>zme,getCompletionEntryDetails:()=>Vet,getCompletionEntrySymbol:()=>Uet,getCompletionsAtPosition:()=>yet,getPropertiesForObjectExpression:()=>AQ,moduleSpecifierResolutionCacheAttemptLimit:()=>Hme,moduleSpecifierResolutionLimit:()=>RQ});var n_e=A({"src/services/_namespaces/ts.Completions.ts"(){"use strict";utt(),Ltt()}});function r_e(e,t,r,i){let o=Ftt(e,r,i);return(s,l,u)=>{let{directImports:p,indirectUsers:g}=ktt(e,t,o,l,r,i);return{indirectUsers:g,...wtt(p,s,l.exportKind,r,u)}}}function ktt(e,t,r,{exportingModuleSymbol:i,exportKind:o},s,l){let u=xI(),p=xI(),g=[],m=!!i.globalExports,b=m?void 0:[];return I(i),{directImports:g,indirectUsers:T()};function T(){if(m)return e;if(i.declarations)for(let K of i.declarations)I1(K)&&t.has(K.getSourceFile().fileName)&&O(K);return b.map(Vn)}function I(K){let Z=H(K);if(Z){for(let V of Z)if(u(V))switch(l&&l.throwIfCancellationRequested(),V.kind){case 213:if(Wp(V)){R(V);break}if(!m){let G=V.parent;if(o===2&&G.kind===260){let{name:ne}=G;if(ne.kind===80){g.push(ne);break}}}break;case 80:break;case 271:N(V,V.name,ei(V,32),!1);break;case 272:g.push(V);let ue=V.importClause&&V.importClause.namedBindings;ue&&ue.kind===274?N(V,ue.name,!1,!0):!m&&MA(V)&&O(x9(V));break;case 278:V.exportClause?V.exportClause.kind===280?O(x9(V),!0):g.push(V):I(Vtt(V,s));break;case 205:!m&&V.isTypeOf&&!V.qualifier&&M(V)&&O(V.getSourceFile(),!0),g.push(V);break;default:C.failBadSyntaxKind(V,"Unexpected import kind.")}}}function R(K){let Z=zn(K,NQ)||K.getSourceFile();O(Z,!!M(K,!0))}function M(K,Z=!1){return zn(K,V=>Z&&NQ(V)?"quit":Cm(V)&&Et(V.modifiers,eI))}function N(K,Z,V,ue){if(o===2)ue||g.push(K);else if(!m){let G=x9(K);C.assert(G.kind===312||G.kind===267),V||Ott(G,Z,s)?O(G,!0):O(G)}}function O(K,Z=!1){if(C.assert(!m),!p(K)||(b.push(K),!Z))return;let ue=s.getMergedSymbol(K.symbol);if(!ue)return;C.assert(!!(ue.flags&1536));let G=H(ue);if(G)for(let ne of G)lg(ne)||O(x9(ne),!0)}function H(K){return r.get(Ta(K).toString())}}function wtt(e,t,r,i,o){let s=[],l=[];function u(T,I){s.push([T,I])}if(e)for(let T of e)p(T);return{importSearches:s,singleReferences:l};function p(T){if(T.kind===271){o_e(T)&&g(T.name);return}if(T.kind===80){g(T);return}if(T.kind===205){if(T.qualifier){let M=Bp(T.qualifier);M.escapedText===bl(t)&&l.push(M)}else r===2&&l.push(T.argument.literal);return}if(T.moduleSpecifier.kind!==11)return;if(T.kind===278){T.exportClause&&Df(T.exportClause)&&m(T.exportClause);return}let{name:I,namedBindings:R}=T.importClause||{name:void 0,namedBindings:void 0};if(R)switch(R.kind){case 274:g(R.name);break;case 275:(r===0||r===1)&&m(R);break;default:C.assertNever(R)}if(I&&(r===1||r===2)&&(!o||I.escapedText===uW(t))){let M=i.getSymbolAtLocation(I);u(I,M)}}function g(T){r===2&&(!o||b(T.escapedText))&&u(T,i.getSymbolAtLocation(T))}function m(T){if(T)for(let I of T.elements){let{name:R,propertyName:M}=I;if(b((M||R).escapedText))if(M)l.push(M),(!o||R.escapedText===t.escapedName)&&u(R,i.getSymbolAtLocation(R));else{let N=I.kind===281&&I.propertyName?i.getExportSpecifierLocalTargetSymbol(I):i.getSymbolAtLocation(R);u(R,N)}}}function b(T){return T===t.escapedName||r!==0&&T==="default"}}function Ott(e,t,r){let i=r.getSymbolAtLocation(t);return!!bLe(e,o=>{if(!Kl(o))return;let{exportClause:s,moduleSpecifier:l}=o;return!l&&s&&Df(s)&&s.elements.some(u=>r.getExportSpecifierLocalTargetSymbol(u)===i)})}function yLe(e,t,r){var i;let o=[],s=e.getTypeChecker();for(let l of t){let u=r.valueDeclaration;if(u?.kind===312){for(let p of l.referencedFiles)e.getSourceFileFromReference(l,p)===u&&o.push({kind:"reference",referencingFile:l,ref:p});for(let p of l.typeReferenceDirectives){let g=(i=e.getResolvedTypeReferenceDirectives().get(p.fileName,p.resolutionMode||l.impliedNodeFormat))==null?void 0:i.resolvedTypeReferenceDirective;g!==void 0&&g.resolvedFileName===u.fileName&&o.push({kind:"reference",referencingFile:l,ref:p})}}ELe(l,(p,g)=>{s.getSymbolAtLocation(g)===r&&o.push(Xs(p)?{kind:"implicit",literal:g,referencingFile:l}:{kind:"import",literal:g})})}return o}function Ftt(e,t,r){let i=new Map;for(let o of e)r&&r.throwIfCancellationRequested(),ELe(o,(s,l)=>{let u=t.getSymbolAtLocation(l);if(u){let p=Ta(u).toString(),g=i.get(p);g||i.set(p,g=[]),g.push(s)}});return i}function bLe(e,t){return Ke(e.kind===312?e.statements:e.body.statements,r=>t(r)||NQ(r)&&Ke(r.body&&r.body.statements,t))}function ELe(e,t){if(e.externalModuleIndicator||e.imports!==void 0)for(let r of e.imports)t(CC(r),r);else bLe(e,r=>{switch(r.kind){case 278:case 272:{let i=r;i.moduleSpecifier&&Na(i.moduleSpecifier)&&t(i,i.moduleSpecifier);break}case 271:{let i=r;o_e(i)&&t(i,i.moduleReference.expression);break}}})}function SLe(e,t,r,i){return i?o():o()||s();function o(){var p;let{parent:g}=e,m=g.parent;if(t.exportSymbol)return g.kind===211?(p=t.declarations)!=null&&p.some(I=>I===g)&&_r(m)?T(m,!1):void 0:l(t.exportSymbol,u(g));{let I=ztt(g,e);if(I&&ei(I,32))return tu(I)&&I.moduleReference===e?i?void 0:{kind:0,symbol:r.getSymbolAtLocation(I.name)}:l(t,u(I));if(Sh(g))return l(t,0);if(Ll(g))return b(g);if(Ll(m))return b(m);if(_r(g))return T(g,!0);if(_r(m))return T(m,!0);if(VS(g)||xH(g))return l(t,0)}function b(I){if(!I.symbol.parent)return;let R=I.isExportEquals?2:1;return{kind:1,symbol:t,exportInfo:{exportingModuleSymbol:I.symbol.parent,exportKind:R}}}function T(I,R){let M;switch(Wl(I)){case 1:M=0;break;case 2:M=2;break;default:return}let N=R?r.getSymbolAtLocation(yU(aa(I.left,ks))):t;return N&&l(N,M)}}function s(){if(!Btt(e))return;let g=r.getImmediateAliasedSymbol(t);if(!g||(g=Gtt(g,r),g.escapedName==="export="&&(g=Wtt(g,r),g===void 0)))return;let m=uW(g);if(m===void 0||m==="default"||m===t.escapedName)return{kind:0,symbol:g}}function l(p,g){let m=i_e(p,g,r);return m&&{kind:1,symbol:p,exportInfo:m}}function u(p){return ei(p,2048)?1:0}}function Wtt(e,t){var r,i;if(e.flags&2097152)return t.getImmediateAliasedSymbol(e);let o=C.checkDefined(e.valueDeclaration);if(Ll(o))return(r=ai(o.expression,A_))==null?void 0:r.symbol;if(_r(o))return(i=ai(o.right,A_))==null?void 0:i.symbol;if(no(o))return o.symbol}function ztt(e,t){let r=Oi(e)?e:Qa(e)?Vx(e):void 0;return r?e.name!==t||$1(r.parent)?void 0:Ml(r.parent.parent)?r.parent.parent:void 0:e}function Btt(e){let{parent:t}=e;switch(t.kind){case 271:return t.name===e&&o_e(t);case 276:return!t.propertyName;case 273:case 274:return C.assert(t.name===e),!0;case 208:return cr(e)&&C1(t.parent.parent);default:return!1}}function i_e(e,t,r){let i=e.parent;if(!i)return;let o=r.getMergedSymbol(i);return sO(o)?{exportingModuleSymbol:o,exportKind:t}:void 0}function Gtt(e,t){if(e.declarations)for(let r of e.declarations){if(Ju(r)&&!r.propertyName&&!r.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(r)||e;if(zr(r)&&tg(r.expression)&&!Xi(r.name))return t.getSymbolAtLocation(r);if(np(r)&&_r(r.parent.parent)&&Wl(r.parent.parent)===2)return t.getExportSpecifierLocalTargetSymbol(r.name)}return e}function Vtt(e,t){return t.getMergedSymbol(x9(e).symbol)}function x9(e){if(e.kind===213)return e.getSourceFile();let{parent:t}=e;return t.kind===312?t:(C.assert(t.kind===268),aa(t.parent,NQ))}function NQ(e){return e.kind===267&&e.name.kind===11}function o_e(e){return e.moduleReference.kind===283&&e.moduleReference.expression.kind===11}var a_e,s_e,jtt=A({"src/services/importTracker.ts"(){"use strict";ci(),a_e=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))(a_e||{}),s_e=(e=>(e[e.Import=0]="Import",e[e.Export=1]="Export",e))(s_e||{})}});function pg(e,t=1){return{kind:t,node:e.name||e,context:Utt(e)}}function l_e(e){return e&&e.kind===void 0}function Utt(e){if(qu(e))return rT(e);if(e.parent){if(!qu(e.parent)&&!Ll(e.parent)){if(cr(e)){let r=_r(e.parent)?e.parent:ks(e.parent)&&_r(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(r&&Wl(r)!==0)return rT(r)}if(w_(e.parent)||K1(e.parent))return e.parent.parent;if(zS(e.parent)||J1(e.parent)||fC(e.parent))return e.parent;if(us(e)){let r=jL(e);if(r){let i=zn(r,o=>qu(o)||Ki(o)||Xx(o));return qu(i)?rT(i):i}}let t=zn(e,Za);return t?rT(t.parent):void 0}if(e.parent.name===e||Pl(e.parent)||Ll(e.parent)||(IA(e.parent)||Qa(e.parent))&&e.parent.propertyName===e||e.kind===90&&ei(e.parent,2080))return rT(e.parent)}}function rT(e){if(e)switch(e.kind){case 260:return!jc(e.parent)||e.parent.declarations.length!==1?e:Ml(e.parent.parent)?e.parent.parent:Jx(e.parent.parent)?rT(e.parent.parent):e.parent;case 208:return rT(e.parent.parent);case 276:return e.parent.parent.parent;case 281:case 274:return e.parent.parent;case 273:case 280:return e.parent;case 226:return eu(e.parent)?e.parent:e;case 250:case 249:return{start:e.initializer,end:e.expression};case 303:case 304:return Yv(e.parent)?rT(zn(e.parent,t=>_r(t)||Jx(t))):e;case 255:return{start:vn(e.getChildren(e.getSourceFile()),t=>t.kind===109),end:e.caseBlock};default:return e}}function c_e(e,t,r){if(!r)return;let i=l_e(r)?D9(r.start,t,r.end):D9(r,t);return i.start!==e.start||i.length!==e.length?{contextSpan:i}:void 0}function Htt(e,t,r,i,o){let s=zd(i,o),l={use:1},u=FI.getReferencedSymbolsForNode(o,s,e,r,t,l),p=e.getTypeChecker(),g=FI.getAdjustedNode(s,l),m=qtt(g)?p.getSymbolAtLocation(g):void 0;return!u||!u.length?void 0:Vi(u,({definition:b,references:T})=>b&&{definition:p.runWithCancellationToken(t,I=>Xtt(b,I,s)),references:T.map(I=>$tt(I,m))})}function qtt(e){return e.kind===90||!!NC(e)||YL(e)||e.kind===137&&Pl(e.parent)}function Jtt(e,t,r,i,o){let s=zd(i,o),l,u=TLe(e,t,r,s,o);if(s.parent.kind===211||s.parent.kind===208||s.parent.kind===212||s.kind===108)l=u&&[...u];else if(u){let g=PM(u),m=new Map;for(;!g.isEmpty();){let b=g.dequeue();if(!xm(m,ss(b.node)))continue;l=In(l,b);let T=TLe(e,t,r,b.node,b.node.pos);T&&g.enqueue(...T)}}let p=e.getTypeChecker();return Ft(l,g=>Ztt(g,p))}function TLe(e,t,r,i,o){if(i.kind===312)return;let s=e.getTypeChecker();if(i.parent.kind===304){let l=[];return FI.getReferenceEntriesForShorthandPropertyAssignment(i,s,u=>l.push(pg(u))),l}else if(i.kind===108||Od(i.parent)){let l=s.getSymbolAtLocation(i);return l.valueDeclaration&&[pg(l.valueDeclaration)]}else return ALe(o,i,e,r,t,{implementations:!0,use:1})}function Ktt(e,t,r,i,o,s,l){return Ft(ILe(FI.getReferencedSymbolsForNode(o,i,e,r,t,s)),u=>l(u,i,e.getTypeChecker()))}function ALe(e,t,r,i,o,s={},l=new Set(i.map(u=>u.fileName))){return ILe(FI.getReferencedSymbolsForNode(e,t,r,i,o,s,l))}function ILe(e){return e&&Zi(e,t=>t.references)}function Xtt(e,t,r){let i=(()=>{switch(e.type){case 0:{let{symbol:m}=e,{displayParts:b,kind:T}=xLe(m,t,r),I=b.map(N=>N.text).join(""),R=m.declarations&&Xc(m.declarations),M=R?Oo(R)||R:r;return{...R9(M),name:I,kind:T,displayParts:b,context:rT(R)}}case 1:{let{node:m}=e;return{...R9(m),name:m.text,kind:"label",displayParts:[rp(m.text,17)]}}case 2:{let{node:m}=e,b=ma(m.kind);return{...R9(m),name:b,kind:"keyword",displayParts:[{text:b,kind:"keyword"}]}}case 3:{let{node:m}=e,b=t.getSymbolAtLocation(m),T=b&&ty.getSymbolDisplayPartsDocumentationAndSymbolKind(t,b,m.getSourceFile(),QS(m),m).displayParts||[sf("this")];return{...R9(m),name:"this",kind:"var",displayParts:T}}case 4:{let{node:m}=e;return{...R9(m),name:m.text,kind:"var",displayParts:[rp(pc(m),8)]}}case 5:return{textSpan:ib(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[rp(`"${e.reference.fileName}"`,8)]};default:return C.assertNever(e)}})(),{sourceFile:o,textSpan:s,name:l,kind:u,displayParts:p,context:g}=i;return{containerKind:"",containerName:"",fileName:o.fileName,kind:u,name:l,textSpan:s,displayParts:p,...c_e(s,o,g)}}function R9(e){let t=e.getSourceFile();return{sourceFile:t,textSpan:D9(Za(e)?e.expression:e,t)}}function xLe(e,t,r){let i=FI.getIntersectingMeaningFromDeclarations(r,e),o=e.declarations&&Xc(e.declarations)||r,{displayParts:s,symbolKind:l}=ty.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,o.getSourceFile(),o,o,i);return{displayParts:s,kind:l}}function Ytt(e,t,r,i,o){return{...PQ(e),...i&&Qtt(e,t,r,o)}}function $tt(e,t){let r=RLe(e);return t?{...r,isDefinition:e.kind!==0&&DLe(e.node,t)}:r}function RLe(e){let t=PQ(e);if(e.kind===0)return{...t,isWriteAccess:!1};let{kind:r,node:i}=e;return{...t,isWriteAccess:d_e(i),isInString:r===2?!0:void 0}}function PQ(e){if(e.kind===0)return{textSpan:e.textSpan,fileName:e.fileName};{let t=e.node.getSourceFile(),r=D9(e.node,t);return{textSpan:r,fileName:t.fileName,...c_e(r,t,e.context)}}}function Qtt(e,t,r,i){if(e.kind!==0&&Ve(t)){let{node:o,kind:s}=e,l=o.parent,u=t.text,p=np(l);if(p||uO(l)&&l.name===o&&l.dotDotDotToken===void 0){let g={prefixText:u+": "},m={suffixText:": "+u};if(s===3)return g;if(s===4)return m;if(p){let b=l.parent;return wa(b)&&_r(b.parent)&&tg(b.parent.left)?g:m}else return g}else if(tp(l)&&!l.propertyName){let g=Ju(t.parent)?r.getExportSpecifierLocalTargetSymbol(t.parent):r.getSymbolAtLocation(t);return wr(g.declarations,l)?{prefixText:u+" as "}:Pf}else if(Ju(l)&&!l.propertyName)return t===e.node||r.getSymbolAtLocation(t)===r.getSymbolAtLocation(e.node)?{prefixText:u+" as "}:{suffixText:" as "+u}}if(e.kind!==0&&hp(e.node)&&ks(e.node.parent)){let o=lX(i);return{prefixText:o,suffixText:o}}return Pf}function Ztt(e,t){let r=PQ(e);if(e.kind!==0){let{node:i}=e;return{...r,...ent(i,t)}}else return{...r,kind:"",displayParts:[]}}function ent(e,t){let r=t.getSymbolAtLocation(qu(e)&&e.name?e.name:e);return r?xLe(r,t,e):e.kind===210?{kind:"interface",displayParts:[Yu(21),sf("object literal"),Yu(22)]}:e.kind===231?{kind:"local class",displayParts:[Yu(21),sf("anonymous local class"),Yu(22)]}:{kind:sE(e),displayParts:[]}}function tnt(e){let t=PQ(e);if(e.kind===0)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};let r=d_e(e.node),i={textSpan:t.textSpan,kind:r?"writtenReference":"reference",isInString:e.kind===2?!0:void 0,...t.contextSpan&&{contextSpan:t.contextSpan}};return{fileName:t.fileName,span:i}}function D9(e,t,r){let i=e.getStart(t),o=(r||e).getEnd();return us(e)&&o-i>2&&(C.assert(r===void 0),i+=1,o-=1),r?.kind===269&&(o=r.getFullStart()),dc(i,o)}function u_e(e){return e.kind===0?e.textSpan:D9(e.node,e.node.getSourceFile())}function d_e(e){let t=NC(e);return!!t&&nnt(t)||e.kind===90||BA(e)}function DLe(e,t){var r;if(!t)return!1;let i=NC(e)||(e.kind===90?e.parent:YL(e)||e.kind===137&&Pl(e.parent)?e.parent.parent:void 0),o=i&&_r(i)?i.left:void 0;return!!(i&&((r=t.declarations)!=null&&r.some(s=>s===i||s===o)))}function nnt(e){if(e.flags&33554432)return!0;switch(e.kind){case 226:case 208:case 263:case 231:case 90:case 266:case 306:case 281:case 273:case 271:case 276:case 264:case 345:case 353:case 291:case 267:case 270:case 274:case 280:case 169:case 304:case 265:case 168:return!0;case 303:return!Yv(e.parent);case 262:case 218:case 176:case 174:case 177:case 178:return!!e.body;case 260:case 172:return!!e.initializer||$1(e.parent);case 173:case 171:case 355:case 348:return!1;default:return C.failBadSyntaxKind(e)}}var p_e,f_e,m_e,FI,rnt=A({"src/services/findAllReferences.ts"(){"use strict";ci(),__e(),p_e=(e=>(e[e.Symbol=0]="Symbol",e[e.Label=1]="Label",e[e.Keyword=2]="Keyword",e[e.This=3]="This",e[e.String=4]="String",e[e.TripleSlashReference=5]="TripleSlashReference",e))(p_e||{}),f_e=(e=>(e[e.Span=0]="Span",e[e.Node=1]="Node",e[e.StringLiteral=2]="StringLiteral",e[e.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",e[e.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal",e))(f_e||{}),m_e=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(m_e||{}),(e=>{function t(Ue,mt,ft,Nt,le,We={},pt=new Set(Nt.map(j=>j.fileName))){var j,ot;if(mt=r(mt,We),no(mt)){let mn=w2.getReferenceAtPosition(mt,Ue,ft);if(!mn?.file)return;let q=ft.getTypeChecker().getMergedSymbol(mn.file.symbol);if(q)return g(ft,q,!1,Nt,pt);let Oe=ft.getFileIncludeReasons();return Oe?[{definition:{type:5,reference:mn.reference,file:mt},references:o(mn.file,Oe,ft)||et}]:void 0}if(!We.implementations){let mn=b(mt,Nt,le);if(mn)return mn}let xt=ft.getTypeChecker(),Ye=xt.getSymbolAtLocation(Pl(mt)&&mt.parent.name||mt);if(!Ye){if(!We.implementations&&us(mt)){if(dW(mt)){let mn=ft.getFileIncludeReasons(),q=(ot=(j=ft.getResolvedModuleFromModuleSpecifier(mt))==null?void 0:j.resolvedModule)==null?void 0:ot.resolvedFileName,Oe=q?ft.getSourceFile(q):void 0;if(Oe)return[{definition:{type:4,node:mt},references:o(Oe,mn,ft)||et}]}return qr(mt,Nt,xt,le)}return}if(Ye.escapedName==="export=")return g(ft,Ye.parent,!1,Nt,pt);let ht=l(Ye,ft,Nt,le,We,pt);if(ht&&!(Ye.flags&33554432))return ht;let Vt=s(mt,Ye,xt),yn=Vt&&l(Vt,ft,Nt,le,We,pt),fn=T(Ye,mt,Nt,pt,xt,le,We);return u(ft,ht,fn,yn)}e.getReferencedSymbolsForNode=t;function r(Ue,mt){return mt.use===1?Ue=JK(Ue):mt.use===2&&(Ue=ZF(Ue)),Ue}e.getAdjustedNode=r;function i(Ue,mt,ft,Nt=new Set(ft.map(le=>le.fileName))){var le,We;let pt=(le=mt.getSourceFile(Ue))==null?void 0:le.symbol;if(pt)return((We=g(mt,pt,!1,ft,Nt)[0])==null?void 0:We.references)||et;let j=mt.getFileIncludeReasons(),ot=mt.getSourceFile(Ue);return ot&&j&&o(ot,j,mt)||et}e.getReferencesForFileName=i;function o(Ue,mt,ft){let Nt,le=mt.get(Ue.path)||et;for(let We of le)if(R0(We)){let pt=ft.getSourceFileByPath(We.file),j=ZN(ft,We);l2(j)&&(Nt=In(Nt,{kind:0,fileName:pt.fileName,textSpan:ib(j)}))}return Nt}function s(Ue,mt,ft){if(Ue.parent&&Hk(Ue.parent)){let Nt=ft.getAliasedSymbol(mt),le=ft.getMergedSymbol(Nt);if(Nt!==le)return le}}function l(Ue,mt,ft,Nt,le,We){let pt=Ue.flags&1536&&Ue.declarations&&vn(Ue.declarations,no);if(!pt)return;let j=Ue.exports.get("export="),ot=g(mt,Ue,!!j,ft,We);if(!j||!We.has(pt.fileName))return ot;let xt=mt.getTypeChecker();return Ue=bu(j,xt),u(mt,ot,T(Ue,void 0,ft,We,xt,Nt,le))}function u(Ue,...mt){let ft;for(let Nt of mt)if(!(!Nt||!Nt.length)){if(!ft){ft=Nt;continue}for(let le of Nt){if(!le.definition||le.definition.type!==0){ft.push(le);continue}let We=le.definition.symbol,pt=ri(ft,ot=>!!ot.definition&&ot.definition.type===0&&ot.definition.symbol===We);if(pt===-1){ft.push(le);continue}let j=ft[pt];ft[pt]={definition:j.definition,references:j.references.concat(le.references).sort((ot,xt)=>{let Ye=p(Ue,ot),ht=p(Ue,xt);if(Ye!==ht)return tl(Ye,ht);let Vt=u_e(ot),yn=u_e(xt);return Vt.start!==yn.start?tl(Vt.start,yn.start):tl(Vt.length,yn.length)})}}}return ft}function p(Ue,mt){let ft=mt.kind===0?Ue.getSourceFile(mt.fileName):mt.node.getSourceFile();return Ue.getSourceFiles().indexOf(ft)}function g(Ue,mt,ft,Nt,le){C.assert(!!mt.valueDeclaration);let We=Vi(yLe(Ue,Nt,mt),j=>{if(j.kind==="import"){let ot=j.literal.parent;if(Yy(ot)){let xt=aa(ot.parent,lg);if(ft&&!xt.qualifier)return}return pg(j.literal)}else if(j.kind==="implicit"){let ot=j.literal.text!==Hy&&PN(j.referencingFile,xt=>xt.transformFlags&2?cg(xt)||zS(xt)||X1(xt)?xt:void 0:"skip")||j.referencingFile.statements[0]||j.referencingFile;return pg(ot)}else return{kind:0,fileName:j.referencingFile.fileName,textSpan:ib(j.ref)}});if(mt.declarations)for(let j of mt.declarations)switch(j.kind){case 312:break;case 267:le.has(j.getSourceFile().fileName)&&We.push(pg(j.name));break;default:C.assert(!!(mt.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}let pt=mt.exports.get("export=");if(pt?.declarations)for(let j of pt.declarations){let ot=j.getSourceFile();if(le.has(ot.fileName)){let xt=_r(j)&&zr(j.left)?j.left.expression:Ll(j)?C.checkDefined(bs(j,95,ot)):Oo(j)||j;We.push(pg(xt))}}return We.length?[{definition:{type:0,symbol:mt},references:We}]:et}function m(Ue){return Ue.kind===148&&kS(Ue.parent)&&Ue.parent.operator===148}function b(Ue,mt,ft){if(sP(Ue.kind))return Ue.kind===116&&sI(Ue.parent)||Ue.kind===148&&!m(Ue)?void 0:Le(mt,Ue.kind,ft,Ue.kind===148?m:void 0);if(nR(Ue.parent)&&Ue.parent.name===Ue)return ve(mt,ft);if(tI(Ue)&&Il(Ue.parent))return[{definition:{type:2,node:Ue},references:[pg(Ue)]}];if(Zw(Ue)){let Nt=JF(Ue.parent,Ue.text);return Nt&&me(Nt.parent,Nt)}else if(WK(Ue))return me(Ue.parent,Ue);if(h2(Ue))return nr(Ue,mt,ft);if(Ue.kind===108)return ki(Ue)}function T(Ue,mt,ft,Nt,le,We,pt){let j=mt&&M(Ue,mt,le,!wn(pt))||Ue,ot=mt?bi(mt,j):7,xt=[],Ye=new H(ft,Nt,mt?R(mt):0,le,We,ot,pt,xt),ht=!wn(pt)||!j.declarations?void 0:vn(j.declarations,Ju);if(ht)At(ht.name,j,ht,Ye.createSearch(mt,Ue,void 0),Ye,!0,!0);else if(mt&&mt.kind===90&&j.escapedName==="default"&&j.parent)yt(mt,j,Ye),K(mt,j,{exportingModuleSymbol:j.parent,exportKind:1},Ye);else{let Vt=Ye.createSearch(mt,j,void 0,{allSearchSymbols:mt?ln(j,mt,le,pt.use===2,!!pt.providePrefixAndSuffixTextForRename,!!pt.implementations):[j]});I(j,Ye,Vt)}return xt}function I(Ue,mt,ft){let Nt=he(Ue);if(Nt)Ee(Nt,Nt.getSourceFile(),ft,mt,!(no(Nt)&&!wr(mt.sourceFiles,Nt)));else for(let le of mt.sourceFiles)mt.cancellationToken.throwIfCancellationRequested(),G(le,ft,mt)}function R(Ue){switch(Ue.kind){case 176:case 137:return 1;case 80:if(pi(Ue.parent))return C.assert(Ue.parent.name===Ue),2;default:return 0}}function M(Ue,mt,ft,Nt){let{parent:le}=mt;return Ju(le)&&Nt?Se(mt,Ue,le,ft):Zt(Ue.declarations,We=>{if(!We.parent){if(Ue.flags&33554432)return;C.fail(`Unexpected symbol at ${C.formatSyntaxKind(mt.kind)}: ${C.formatSymbol(Ue)}`)}return yp(We.parent)&&Xy(We.parent.parent)?ft.getPropertyOfType(ft.getTypeFromTypeNode(We.parent.parent),Ue.name):void 0})}let N;(Ue=>{Ue[Ue.None=0]="None",Ue[Ue.Constructor=1]="Constructor",Ue[Ue.Class=2]="Class"})(N||(N={}));function O(Ue){if(!(Ue.flags&33555968))return;let mt=Ue.declarations&&vn(Ue.declarations,ft=>!no(ft)&&!Jl(ft));return mt&&mt.symbol}class H{constructor(mt,ft,Nt,le,We,pt,j,ot){this.sourceFiles=mt,this.sourceFilesSet=ft,this.specialSearchKind=Nt,this.checker=le,this.cancellationToken=We,this.searchMeaning=pt,this.options=j,this.result=ot,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=xI(),this.markSeenReExportRHS=xI(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(mt){return this.sourceFilesSet.has(mt.fileName)}getImportSearches(mt,ft){return this.importTracker||(this.importTracker=r_e(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(mt,ft,this.options.use===2)}createSearch(mt,ft,Nt,le={}){let{text:We=em(bl(TR(ft)||O(ft)||ft)),allSearchSymbols:pt=[ft]}=le,j=ml(We),ot=this.options.implementations&&mt?En(mt,ft,this.checker):void 0;return{symbol:ft,comingFrom:Nt,text:We,escapedText:j,parents:ot,allSearchSymbols:pt,includes:xt=>wr(pt,xt)}}referenceAdder(mt){let ft=Ta(mt),Nt=this.symbolIdToReferences[ft];return Nt||(Nt=this.symbolIdToReferences[ft]=[],this.result.push({definition:{type:0,symbol:mt},references:Nt})),(le,We)=>Nt.push(pg(le,We))}addStringOrCommentReference(mt,ft){this.result.push({definition:void 0,references:[{kind:0,fileName:mt,textSpan:ft}]})}markSearchedSymbols(mt,ft){let Nt=ss(mt),le=this.sourceFileToSeenSymbols[Nt]||(this.sourceFileToSeenSymbols[Nt]=new Set),We=!1;for(let pt of ft)We=Av(le,Ta(pt))||We;return We}}function K(Ue,mt,ft,Nt){let{importSearches:le,singleReferences:We,indirectUsers:pt}=Nt.getImportSearches(mt,ft);if(We.length){let j=Nt.referenceAdder(mt);for(let ot of We)V(ot,Nt)&&j(ot)}for(let[j,ot]of le)He(j.getSourceFile(),Nt.createSearch(j,ot,1),Nt);if(pt.length){let j;switch(ft.exportKind){case 0:j=Nt.createSearch(Ue,mt,1);break;case 1:j=Nt.options.use===2?void 0:Nt.createSearch(Ue,mt,1,{text:"default"});break;case 2:break}if(j)for(let ot of pt)G(ot,j,Nt)}}function Z(Ue,mt,ft,Nt,le,We,pt,j){let ot=r_e(Ue,new Set(Ue.map(Vt=>Vt.fileName)),mt,ft),{importSearches:xt,indirectUsers:Ye,singleReferences:ht}=ot(Nt,{exportKind:pt?1:0,exportingModuleSymbol:le},!1);for(let[Vt]of xt)j(Vt);for(let Vt of ht)Ve(Vt)&&lg(Vt.parent)&&j(Vt);for(let Vt of Ye)for(let yn of fe(Vt,pt?"default":We)){let fn=mt.getSymbolAtLocation(yn),mn=Et(fn?.declarations,q=>!!ai(q,Ll));Ve(yn)&&!IA(yn.parent)&&(fn===Nt||mn)&&j(yn)}}e.eachExportReference=Z;function V(Ue,mt){return Ce(Ue,mt)?mt.options.use!==2?!0:Ve(Ue)?!(IA(Ue.parent)&&Ue.escapedText==="default"):!1:!1}function ue(Ue,mt){if(Ue.declarations)for(let ft of Ue.declarations){let Nt=ft.getSourceFile();He(Nt,mt.createSearch(ft,Ue,0),mt,mt.includesSourceFile(Nt))}}function G(Ue,mt,ft){wY(Ue).get(mt.escapedText)!==void 0&&He(Ue,mt,ft)}function ne(Ue,mt){return Yv(Ue.parent.parent)?mt.getPropertySymbolOfDestructuringAssignment(Ue):void 0}function he(Ue){let{declarations:mt,flags:ft,parent:Nt,valueDeclaration:le}=Ue;if(le&&(le.kind===218||le.kind===231))return le;if(!mt)return;if(ft&8196){let j=vn(mt,ot=>_p(ot,2)||ad(ot));return j?p0(j,263):void 0}if(mt.some(uO))return;let We=Nt&&!(Ue.flags&262144);if(We&&!(sO(Nt)&&!Nt.globalExports))return;let pt;for(let j of mt){let ot=QS(j);if(pt&&pt!==ot||!ot||ot.kind===312&&!Fp(ot))return;if(pt=ot,ws(pt)){let xt;for(;xt=Oj(pt);)pt=xt}}return We?pt.getSourceFile():pt}function ye(Ue,mt,ft,Nt=ft){return $(Ue,mt,ft,()=>!0,Nt)||!1}e.isSymbolReferencedInFile=ye;function $(Ue,mt,ft,Nt,le=ft){let We=pp(Ue.parent,Ue.parent.parent)?Ha(mt.getSymbolsOfParameterPropertyDeclaration(Ue.parent,Ue.text)):mt.getSymbolAtLocation(Ue);if(We)for(let pt of fe(ft,We.name,le)){if(!Ve(pt)||pt===Ue||pt.escapedText!==Ue.escapedText)continue;let j=mt.getSymbolAtLocation(pt);if(j===We||mt.getShorthandAssignmentValueSymbol(pt.parent)===We||Ju(pt.parent)&&Se(pt,j,pt.parent,mt)===We){let ot=Nt(pt);if(ot)return ot}}}e.eachSymbolReferenceInFile=$;function Y(Ue,mt){return tr(fe(mt,Ue),le=>!!NC(le)).reduce((le,We)=>{let pt=Nt(We);return!Et(le.declarationNames)||pt===le.depth?(le.declarationNames.push(We),le.depth=pt):ptYe===le)&&Nt(pt,ot))return!0}return!1}e.someSignatureUsage=oe;function fe(Ue,mt,ft=Ue){return Vi(Ne(Ue,mt,ft),Nt=>{let le=zd(Ue,Nt);return le===Ue?void 0:le})}function Ne(Ue,mt,ft=Ue){let Nt=[];if(!mt||!mt.length)return Nt;let le=Ue.text,We=le.length,pt=mt.length,j=le.indexOf(mt,ft.pos);for(;j>=0&&!(j>ft.end);){let ot=j+pt;(j===0||!Zb(le.charCodeAt(j-1),99))&&(ot===We||!Zb(le.charCodeAt(ot),99))&&Nt.push(j),j=le.indexOf(mt,j+pt+1)}return Nt}function me(Ue,mt){let ft=Ue.getSourceFile(),Nt=mt.text,le=Vi(fe(ft,Nt,Ue),We=>We===mt||Zw(We)&&JF(We,Nt)===mt?pg(We):void 0);return[{definition:{type:1,node:mt},references:le}]}function ie(Ue,mt){switch(Ue.kind){case 81:if(y0(Ue.parent))return!0;case 80:return Ue.text.length===mt.length;case 15:case 11:{let ft=Ue;return(KF(ft)||VK(Ue)||hue(Ue)||la(Ue.parent)&&bS(Ue.parent)&&Ue.parent.arguments[1]===Ue)&&ft.text.length===mt.length}case 9:return KF(Ue)&&Ue.text.length===mt.length;case 90:return mt.length===7;default:return!1}}function ve(Ue,mt){let ft=Zi(Ue,Nt=>(mt.throwIfCancellationRequested(),Vi(fe(Nt,"meta",Nt),le=>{let We=le.parent;if(nR(We))return pg(We)})));return ft.length?[{definition:{type:2,node:ft[0].node},references:ft}]:void 0}function Le(Ue,mt,ft,Nt){let le=Zi(Ue,We=>(ft.throwIfCancellationRequested(),Vi(fe(We,ma(mt),We),pt=>{if(pt.kind===mt&&(!Nt||Nt(pt)))return pg(pt)})));return le.length?[{definition:{type:2,node:le[0].node},references:le}]:void 0}function He(Ue,mt,ft,Nt=!0){return ft.cancellationToken.throwIfCancellationRequested(),Ee(Ue,Ue,mt,ft,Nt)}function Ee(Ue,mt,ft,Nt,le){if(Nt.markSearchedSymbols(mt,ft.allSearchSymbols))for(let We of Ne(mt,ft.text,Ue))Me(mt,We,ft,Nt,le)}function Ce(Ue,mt){return!!($S(Ue)&mt.searchMeaning)}function Me(Ue,mt,ft,Nt,le){let We=zd(Ue,mt);if(!ie(We,ft.text)){!Nt.options.implementations&&(Nt.options.findInStrings&&II(Ue,mt)||Nt.options.findInComments&&Nue(Ue,mt))&&Nt.addStringOrCommentReference(Ue.fileName,vu(mt,ft.text.length));return}if(!Ce(We,Nt))return;let pt=Nt.checker.getSymbolAtLocation(We);if(!pt)return;let j=We.parent;if(tp(j)&&j.propertyName===We)return;if(Ju(j)){C.assert(We.kind===80),At(We,pt,j,ft,Nt,le);return}if(mC(j)&&j.isNameFirst&&j.typeExpression&&GS(j.typeExpression.type)&&j.typeExpression.type.jsDocPropertyTags&&De(j.typeExpression.type.jsDocPropertyTags)){Fe(j.typeExpression.type.jsDocPropertyTags,We,ft,Nt);return}let ot=ui(ft,pt,We,Nt);if(!ot){Bt(pt,ft,Nt);return}switch(Nt.specialSearchKind){case 0:le&&yt(We,ot,Nt);break;case 1:Qe(We,Ue,ft,Nt);break;case 2:gt(We,ft,Nt);break;default:C.assertNever(Nt.specialSearchKind)}cr(We)&&Qa(We.parent)&&C1(We.parent.parent.parent)&&(pt=We.parent.symbol,!pt)||at(We,pt,ft,Nt)}function Fe(Ue,mt,ft,Nt){let le=Nt.referenceAdder(ft.symbol);yt(mt,ft.symbol,Nt),Ke(Ue,We=>{Ad(We.name)&&le(We.name.left)})}function At(Ue,mt,ft,Nt,le,We,pt){C.assert(!pt||!!le.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");let{parent:j,propertyName:ot,name:xt}=ft,Ye=j.parent,ht=Se(Ue,mt,ft,le.checker);if(!pt&&!Nt.includes(ht))return;if(ot?Ue===ot?(Ye.moduleSpecifier||Vt(),We&&le.options.use!==2&&le.markSeenReExportRHS(xt)&&yt(xt,C.checkDefined(ft.symbol),le)):le.markSeenReExportRHS(Ue)&&Vt():le.options.use===2&&xt.escapedText==="default"||Vt(),!wn(le.options)||pt){let fn=Ue.escapedText==="default"||ft.name.escapedText==="default"?1:0,mn=C.checkDefined(ft.symbol),q=i_e(mn,fn,le.checker);q&&K(Ue,mn,q,le)}if(Nt.comingFrom!==1&&Ye.moduleSpecifier&&!ot&&!wn(le.options)){let yn=le.checker.getExportSpecifierLocalTargetSymbol(ft);yn&&ue(yn,le)}function Vt(){We&&yt(Ue,ht,le)}}function Se(Ue,mt,ft,Nt){return je(Ue,ft)&&Nt.getExportSpecifierLocalTargetSymbol(ft)||mt}function je(Ue,mt){let{parent:ft,propertyName:Nt,name:le}=mt;return C.assert(Nt===Ue||le===Ue),Nt?Nt===Ue:!ft.parent.moduleSpecifier}function at(Ue,mt,ft,Nt){let le=SLe(Ue,mt,Nt.checker,ft.comingFrom===1);if(!le)return;let{symbol:We}=le;le.kind===0?wn(Nt.options)||ue(We,Nt):K(Ue,We,le.exportInfo,Nt)}function Bt({flags:Ue,valueDeclaration:mt},ft,Nt){let le=Nt.checker.getShorthandAssignmentValueSymbol(mt),We=mt&&Oo(mt);!(Ue&33554432)&&We&&ft.includes(le)&&yt(We,le,Nt)}function yt(Ue,mt,ft){let{kind:Nt,symbol:le}="kind"in mt?mt:{kind:void 0,symbol:mt};if(ft.options.use===2&&Ue.kind===90)return;let We=ft.referenceAdder(le);ft.options.implementations?Qt(Ue,We,ft):We(Ue,Nt)}function Qe(Ue,mt,ft,Nt){iP(Ue)&&yt(Ue,ft.symbol,Nt);let le=()=>Nt.referenceAdder(ft.symbol);if(pi(Ue.parent))C.assert(Ue.kind===90||Ue.parent.name===Ue),nn(ft.symbol,mt,le());else{let We=ja(Ue);We&&(Nn(We,le()),_n(We,Nt))}}function gt(Ue,mt,ft){yt(Ue,mt.symbol,ft);let Nt=Ue.parent;if(ft.options.use===2||!pi(Nt))return;C.assert(Nt.name===Ue);let le=ft.referenceAdder(mt.symbol);for(let We of Nt.members)RA(We)&&sa(We)&&We.body&&We.body.forEachChild(function pt(j){j.kind===110?le(j):!ea(j)&&!pi(j)&&j.forEachChild(pt)})}function nn(Ue,mt,ft){let Nt=rn(Ue);if(Nt&&Nt.declarations)for(let le of Nt.declarations){let We=bs(le,137,mt);C.assert(le.kind===176&&!!We),ft(We)}Ue.exports&&Ue.exports.forEach(le=>{let We=le.valueDeclaration;if(We&&We.kind===174){let pt=We.body;pt&&_a(pt,110,j=>{iP(j)&&ft(j)})}})}function rn(Ue){return Ue.members&&Ue.members.get("__constructor")}function Nn(Ue,mt){let ft=rn(Ue.symbol);if(ft&&ft.declarations)for(let Nt of ft.declarations){C.assert(Nt.kind===176);let le=Nt.body;le&&_a(le,108,We=>{wK(We)&&mt(We)})}}function Xn(Ue){return!!rn(Ue.symbol)}function _n(Ue,mt){if(Xn(Ue))return;let ft=Ue.symbol,Nt=mt.createSearch(void 0,ft,void 0);I(ft,mt,Nt)}function Qt(Ue,mt,ft){if(Wg(Ue)&&ro(Ue.parent)){mt(Ue);return}if(Ue.kind!==80)return;Ue.parent.kind===304&&No(Ue,ft.checker,mt);let Nt=Yt(Ue);if(Nt){mt(Nt);return}let le=zn(Ue,j=>!Ad(j.parent)&&!qi(j.parent)&&!dS(j.parent)),We=le.parent;if(N6(We)&&We.type===le&&ft.markSeenContainingTypeReference(We))if(Oy(We))pt(We.initializer);else if(ea(We)&&We.body){let j=We.body;j.kind===241?R1(j,ot=>{ot.expression&&pt(ot.expression)}):pt(j)}else pS(We)&&pt(We.expression);function pt(j){vi(j)&&mt(j)}}function Yt(Ue){return Ve(Ue)||zr(Ue)?Yt(Ue.parent):Hv(Ue)?ai(Ue.parent.parent,Xm(pi,fd)):void 0}function vi(Ue){switch(Ue.kind){case 217:return vi(Ue.expression);case 219:case 218:case 210:case 231:case 209:return!0;default:return!1}}function ho(Ue,mt,ft,Nt){if(Ue===mt)return!0;let le=Ta(Ue)+","+Ta(mt),We=ft.get(le);if(We!==void 0)return We;ft.set(le,!1);let pt=!!Ue.declarations&&Ue.declarations.some(j=>PC(j).some(ot=>{let xt=Nt.getTypeAtLocation(ot);return!!xt&&!!xt.symbol&&ho(xt.symbol,mt,ft,Nt)}));return ft.set(le,pt),pt}function ki(Ue){let mt=CL(Ue,!1);if(!mt)return;let ft=256;switch(mt.kind){case 172:case 171:case 174:case 173:case 176:case 177:case 178:ft&=Gy(mt),mt=mt.parent;break;default:return}let Nt=mt.getSourceFile(),le=Vi(fe(Nt,"super",mt),We=>{if(We.kind!==108)return;let pt=CL(We,!1);return pt&&sa(pt)===!!ft&&pt.parent.symbol===mt.symbol?pg(We):void 0});return[{definition:{type:0,symbol:mt.symbol},references:le}]}function Ro(Ue){return Ue.kind===80&&Ue.parent.kind===169&&Ue.parent.name===Ue}function nr(Ue,mt,ft){let Nt=wd(Ue,!1,!1),le=256;switch(Nt.kind){case 174:case 173:if(Im(Nt)){le&=Gy(Nt),Nt=Nt.parent;break}case 172:case 171:case 176:case 177:case 178:le&=Gy(Nt),Nt=Nt.parent;break;case 312:if(ac(Nt)||Ro(Ue))return;case 262:case 218:break;default:return}let We=Zi(Nt.kind===312?mt:[Nt.getSourceFile()],j=>(ft.throwIfCancellationRequested(),fe(j,"this",no(Nt)?j:Nt).filter(ot=>{if(!h2(ot))return!1;let xt=wd(ot,!1,!1);if(!A_(xt))return!1;switch(Nt.kind){case 218:case 262:return Nt.symbol===xt.symbol;case 174:case 173:return Im(Nt)&&Nt.symbol===xt.symbol;case 231:case 263:case 210:return xt.parent&&A_(xt.parent)&&Nt.symbol===xt.parent.symbol&&sa(xt)===!!le;case 312:return xt.kind===312&&!ac(xt)&&!Ro(ot)}}))).map(j=>pg(j));return[{definition:{type:3,node:Zt(We,j=>Co(j.node.parent)?j.node:void 0)||Ue},references:We}]}function qr(Ue,mt,ft,Nt){let le=QF(Ue,ft),We=Zi(mt,pt=>(Nt.throwIfCancellationRequested(),Vi(fe(pt,Ue.text),j=>{if(us(j)&&j.text===Ue.text)if(le){let ot=QF(j,ft);if(le!==ft.getStringType()&&(le===ot||xr(j,ft)))return pg(j,2)}else return QA(j)&&!DS(j,pt)?void 0:pg(j,2)})));return[{definition:{type:4,node:Ue},references:We}]}function xr(Ue,mt){if(gp(Ue.parent))return mt.getPropertyOfType(mt.getTypeAtLocation(Ue.parent.parent),Ue.text)}function ln(Ue,mt,ft,Nt,le,We){let pt=[];return tt(Ue,mt,ft,Nt,!(Nt&&le),(j,ot,xt)=>{xt&&Rn(Ue)!==Rn(xt)&&(xt=void 0),pt.push(xt||ot||j)},()=>!We),pt}function tt(Ue,mt,ft,Nt,le,We,pt){let j=FO(mt);if(j){let fn=ft.getShorthandAssignmentValueSymbol(mt.parent);if(fn&&Nt)return We(fn,void 0,void 0,3);let mn=ft.getContextualType(j.parent),q=mn&&Zt(s9(j,ft,mn,!0),ae=>Vt(ae,4));if(q)return q;let Oe=ne(mt,ft),Lt=Oe&&We(Oe,void 0,void 0,4);if(Lt)return Lt;let w=fn&&We(fn,void 0,void 0,3);if(w)return w}let ot=s(mt,Ue,ft);if(ot){let fn=We(ot,void 0,void 0,1);if(fn)return fn}let xt=Vt(Ue);if(xt)return xt;if(Ue.valueDeclaration&&pp(Ue.valueDeclaration,Ue.valueDeclaration.parent)){let fn=ft.getSymbolsOfParameterPropertyDeclaration(aa(Ue.valueDeclaration,Co),Ue.name);return C.assert(fn.length===2&&!!(fn[0].flags&1)&&!!(fn[1].flags&4)),Vt(Ue.flags&1?fn[1]:fn[0])}let Ye=dl(Ue,281);if(!Nt||Ye&&!Ye.propertyName){let fn=Ye&&ft.getExportSpecifierLocalTargetSymbol(Ye);if(fn){let mn=We(fn,void 0,void 0,1);if(mn)return mn}}if(!Nt){let fn;return le?fn=uO(mt.parent)?pW(ft,mt.parent):void 0:fn=yn(Ue,ft),fn&&Vt(fn,4)}if(C.assert(Nt),le){let fn=yn(Ue,ft);return fn&&Vt(fn,4)}function Vt(fn,mn){return Zt(ft.getRootSymbols(fn),q=>We(fn,q,void 0,mn)||(q.parent&&q.parent.flags&96&&pt(q)?zt(q.parent,q.name,ft,Oe=>We(fn,q,Oe,mn)):void 0))}function yn(fn,mn){let q=dl(fn,208);if(q&&uO(q))return pW(mn,q)}}function zt(Ue,mt,ft,Nt){let le=new Map;return We(Ue);function We(pt){if(!(!(pt.flags&96)||!xm(le,Ta(pt))))return Zt(pt.declarations,j=>Zt(PC(j),ot=>{let xt=ft.getTypeAtLocation(ot),Ye=xt&&xt.symbol&&ft.getPropertyOfType(xt,mt);return xt&&Ye&&(Zt(ft.getRootSymbols(Ye),Nt)||We(xt.symbol))}))}}function Rn(Ue){return Ue.valueDeclaration?!!(cd(Ue.valueDeclaration)&256):!1}function ui(Ue,mt,ft,Nt){let{checker:le}=Nt;return tt(mt,ft,le,!1,Nt.options.use!==2||!!Nt.options.providePrefixAndSuffixTextForRename,(We,pt,j,ot)=>(j&&Rn(mt)!==Rn(j)&&(j=void 0),Ue.includes(j||pt||We)?{symbol:pt&&!(Al(We)&6)?pt:We,kind:ot}:void 0),We=>!(Ue.parents&&!Ue.parents.some(pt=>ho(We.parent,pt,Nt.inheritsFromCache,le))))}function bi(Ue,mt){let ft=$S(Ue),{declarations:Nt}=mt;if(Nt){let le;do{le=ft;for(let We of Nt){let pt=Yw(We);pt&ft&&(ft|=pt)}}while(ft!==le)}return ft}e.getIntersectingMeaningFromDeclarations=bi;function ro(Ue){return Ue.flags&33554432?!(fd(Ue)||Dm(Ue)):rR(Ue)?Oy(Ue):zs(Ue)?!!Ue.body:pi(Ue)||mL(Ue)}function No(Ue,mt,ft){let Nt=mt.getSymbolAtLocation(Ue),le=mt.getShorthandAssignmentValueSymbol(Nt.valueDeclaration);if(le)for(let We of le.getDeclarations())Yw(We)&1&&ft(We)}e.getReferenceEntriesForShorthandPropertyAssignment=No;function _a(Ue,mt,ft){Ho(Ue,Nt=>{Nt.kind===mt&&ft(Nt),_a(Nt,mt,ft)})}function ja(Ue){return lU(qF(Ue).parent)}function En(Ue,mt,ft){let Nt=_2(Ue)?Ue.parent:void 0,le=Nt&&ft.getTypeAtLocation(Nt.expression),We=Vi(le&&(le.isUnionOrIntersection()?le.types:le.symbol===mt.parent?void 0:[le]),pt=>pt.symbol&&pt.symbol.flags&96?pt.symbol:void 0);return We.length===0?void 0:We}function wn(Ue){return Ue.use===2&&Ue.providePrefixAndSuffixTextForRename}})(FI||(FI={}))}}),Os={};X(Os,{Core:()=>FI,DefinitionKind:()=>p_e,EntryKind:()=>f_e,ExportKind:()=>a_e,FindReferencesUse:()=>m_e,ImportExport:()=>s_e,createImportTracker:()=>r_e,findModuleReferences:()=>yLe,findReferenceOrRenameEntries:()=>Ktt,findReferencedSymbols:()=>Htt,getContextNode:()=>rT,getExportInfo:()=>i_e,getImplementationsAtPosition:()=>Jtt,getImportOrExportSymbol:()=>SLe,getReferenceEntriesForNode:()=>ALe,getTextSpanOfEntry:()=>u_e,isContextWithStartAndEndNode:()=>l_e,isDeclarationOfSymbol:()=>DLe,isWriteAccessForReference:()=>d_e,nodeEntry:()=>pg,toContextSpan:()=>c_e,toHighlightSpan:()=>tnt,toReferenceEntry:()=>RLe,toRenameLocation:()=>Ytt});var __e=A({"src/services/_namespaces/ts.FindAllReferences.ts"(){"use strict";jtt(),rnt()}});function CLe(e,t,r,i,o){var s;let l=PLe(t,r,e),u=l&&[_nt(l.reference.fileName,l.fileName,l.unverified)]||et;if(l?.file)return u;let p=zd(t,r);if(p===t)return;let{parent:g}=p,m=e.getTypeChecker();if(p.kind===164||Ve(p)&&i5(g)&&g.tagName===p)return ont(m,p)||et;if(Zw(p)){let N=JF(p.parent,p.text);return N?[h_e(m,N,"label",p.text,void 0)]:void 0}switch(p.kind){case 107:let N=zn(p.parent,H=>Il(H)?"quit":zs(H));return N?[C9(m,N)]:void 0;case 90:if(!IN(p.parent))break;case 84:let O=zn(p.parent,SN);if(O)return[mnt(O,t)];break}if(p.kind===135){let N=zn(p,H=>zs(H));return N&&Et(N.modifiers,H=>H.kind===134)?[C9(m,N)]:void 0}if(p.kind===127){let N=zn(p,H=>zs(H));return N&&N.asteriskToken?[C9(m,N)]:void 0}if(tI(p)&&Il(p.parent)){let N=p.parent.parent,{symbol:O,failedAliasResolution:H}=MQ(N,m,o),K=tr(N.members,Il),Z=O?m.symbolToString(O,N):"",V=p.getSourceFile();return Ft(K,ue=>{let{pos:G}=P_(ue);return G=La(V.text,G),h_e(m,ue,"constructor","static {}",Z,!1,H,{start:G,length:6})})}let{symbol:b,failedAliasResolution:T}=MQ(p,m,o),I=p;if(i&&T){let N=Ke([p,...b?.declarations||et],H=>zn(H,sie)),O=N&&cR(N);O&&({symbol:b,failedAliasResolution:T}=MQ(O,m,o),I=O)}if(!b&&dW(I)){let N=(s=e.getResolvedModuleFromModuleSpecifier(I))==null?void 0:s.resolvedModule;if(N)return[{name:I.text,fileName:N.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:vu(0,0),failedAliasResolution:T,isAmbient:Su(N.resolvedFileName),unverified:I!==p}]}if(!b)return xo(u,dnt(p,m));if(i&&Jn(b.declarations,N=>N.getSourceFile().fileName===t.fileName))return;let R=gnt(m,p);if(R&&!(sd(p.parent)&&vnt(R))){let N=C9(m,R,T);if(m.getRootSymbols(b).some(O=>int(O,R)))return[N];{let O=AP(m,b,p,T,R)||et;return p.kind===108?[N,...O]:[...O,N]}}if(p.parent.kind===304){let N=m.getShorthandAssignmentValueSymbol(b.valueDeclaration),O=N?.declarations?N.declarations.map(H=>XO(H,m,N,p,!1,T)):et;return xo(O,NLe(m,p))}if(ic(p)&&Qa(g)&&om(g.parent)&&p===(g.propertyName||g.name)){let N=cO(p),O=m.getTypeAtLocation(g.parent);return N===void 0?et:Zi(O.isUnion()?O.types:[O],H=>{let K=H.getProperty(N);return K&&AP(m,K,p)})}let M=NLe(m,p);return xo(u,M.length?M:AP(m,b,p,T))}function int(e,t){var r;return e===t.symbol||e===t.symbol.parent||Mc(t.parent)||!T1(t.parent)&&e===((r=ai(t.parent,A_))==null?void 0:r.symbol)}function NLe(e,t){let r=FO(t);if(r){let i=r&&e.getContextualType(r.parent);if(i)return Zi(s9(r,e,i,!1),o=>AP(e,o,t))}return et}function ont(e,t){let r=zn(t,$c);if(!(r&&r.name))return;let i=zn(r,pi);if(!i)return;let o=x_(i);if(!o)return;let s=vs(o.expression),l=Zc(s)?s.symbol:e.getSymbolAtLocation(s);if(!l)return;let u=Hi(Zx(r.name)),p=fc(r)?e.getPropertyOfType(e.getTypeOfSymbol(l),u):e.getPropertyOfType(e.getDeclaredTypeOfSymbol(l),u);if(p)return AP(e,p,t)}function PLe(e,t,r){var i,o;let s=IP(e.referencedFiles,t);if(s){let p=r.getSourceFileFromReference(e,s);return p&&{reference:s,fileName:p.fileName,file:p,unverified:!1}}let l=IP(e.typeReferenceDirectives,t);if(l){let p=(i=r.getResolvedTypeReferenceDirectives().get(l.fileName,l.resolutionMode||e.impliedNodeFormat))==null?void 0:i.resolvedTypeReferenceDirective,g=p&&r.getSourceFile(p.resolvedFileName);return g&&{reference:l,fileName:g.fileName,file:g,unverified:!1}}let u=IP(e.libReferenceDirectives,t);if(u){let p=r.getLibFileFromReference(u);return p&&{reference:u,fileName:p.fileName,file:p,unverified:!1}}if(e.imports.length||e.moduleAugmentations.length){let p=g2(e,t),g;if(dW(p)&&Yc(p.text)&&(g=r.getResolvedModuleFromModuleSpecifier(p))){let m=(o=g.resolvedModule)==null?void 0:o.resolvedFileName,b=m||Dy(li(e.fileName),p.text);return{file:r.getSourceFile(b),fileName:b,reference:{pos:p.getStart(),end:p.getEnd(),fileName:p.text},unverified:!m}}}}function ant(e,t){let r=t.symbol.name;if(!v_e.has(r))return!1;let i=e.resolveName(r,void 0,788968,!1);return!!i&&i===t.target.symbol}function MLe(e,t){if(!t.aliasSymbol)return!1;let r=t.aliasSymbol.name;if(!v_e.has(r))return!1;let i=e.resolveName(r,void 0,788968,!1);return!!i&&i===t.aliasSymbol}function snt(e,t,r,i){var o,s;if(Wr(t)&4&&ant(e,t))return KO(e.getTypeArguments(t)[0],e,r,i);if(MLe(e,t)&&t.aliasTypeArguments)return KO(t.aliasTypeArguments[0],e,r,i);if(Wr(t)&32&&t.target&&MLe(e,t.target)){let l=(s=(o=t.aliasSymbol)==null?void 0:o.declarations)==null?void 0:s[0];if(l&&Dm(l)&&Rf(l.type)&&l.type.typeArguments)return KO(e.getTypeAtLocation(l.type.typeArguments[0]),e,r,i)}return[]}function lnt(e,t,r){let i=zd(t,r);if(i===t)return;if(nR(i.parent)&&i.parent.name===i)return KO(e.getTypeAtLocation(i.parent),e,i.parent,!1);let{symbol:o,failedAliasResolution:s}=MQ(i,e,!1);if(!o)return;let l=e.getTypeOfSymbolAtLocation(o,i),u=cnt(o,l,e),p=u&&KO(u,e,i,s),[g,m]=p&&p.length!==0?[u,p]:[l,KO(l,e,i,s)];return m.length?[...snt(e,g,i,s),...m]:!(o.flags&111551)&&o.flags&788968?AP(e,bu(o,e),i,s):void 0}function KO(e,t,r,i){return Zi(e.isUnion()&&!(e.flags&32)?e.types:[e],o=>o.symbol&&AP(t,o.symbol,r,i))}function cnt(e,t,r){if(t.symbol===e||e.valueDeclaration&&t.symbol&&Oi(e.valueDeclaration)&&e.valueDeclaration.initializer===t.symbol.valueDeclaration){let i=t.getCallSignatures();if(i.length===1)return r.getReturnTypeOfSignature(Ha(i))}}function unt(e,t,r){let i=CLe(e,t,r);if(!i||i.length===0)return;let o=IP(t.referencedFiles,r)||IP(t.typeReferenceDirectives,r)||IP(t.libReferenceDirectives,r);if(o)return{definitions:i,textSpan:ib(o)};let s=zd(t,r),l=vu(s.getStart(),s.getWidth());return{definitions:i,textSpan:l}}function dnt(e,t){return Vi(t.getIndexInfosAtLocation(e),r=>r.declaration&&C9(t,r.declaration))}function MQ(e,t,r){let i=t.getSymbolAtLocation(e),o=!1;if(i?.declarations&&i.flags&2097152&&!r&&pnt(e,i.declarations[0])){let s=t.getAliasedSymbol(i);if(s.declarations)return{symbol:s};o=!0}return{symbol:i,failedAliasResolution:o}}function pnt(e,t){return e.kind!==80?!1:e.parent===t?!0:t.kind!==274}function fnt(e){if(!DC(e))return!1;let t=zn(e,r=>Mc(r)?!0:DC(r)?!1:"quit");return!!t&&Wl(t)===5}function AP(e,t,r,i,o){let s=tr(t.declarations,b=>b!==o),l=tr(s,b=>!fnt(b)),u=Et(l)?l:s;return p()||g()||Ft(u,b=>XO(b,e,t,r,!1,i));function p(){if(t.flags&32&&!(t.flags&19)&&(iP(r)||r.kind===137)){let b=vn(s,pi)||C.fail("Expected declaration to have at least one class-like declaration");return m(b.members,!0)}}function g(){return OK(r)||jK(r)?m(s,!1):void 0}function m(b,T){if(!b)return;let I=b.filter(T?Pl:ea),R=I.filter(M=>!!M.body);return I.length?R.length!==0?R.map(M=>XO(M,e,t,r)):[XO(Ya(I),e,t,r,!1,i)]:void 0}}function XO(e,t,r,i,o,s){let l=t.symbolToString(r),u=ty.getSymbolKind(t,r,i),p=r.parent?t.symbolToString(r.parent,i):"";return h_e(t,e,u,l,p,o,s)}function h_e(e,t,r,i,o,s,l,u){let p=t.getSourceFile();if(!u){let g=Oo(t)||t;u=Rd(g,p)}return{fileName:p.fileName,textSpan:u,kind:r,name:i,containerKind:void 0,containerName:o,...Os.toContextSpan(u,p,Os.getContextNode(t)),isLocal:!g_e(e,t),isAmbient:!!(t.flags&33554432),unverified:s,failedAliasResolution:l}}function mnt(e,t){let r=Os.getContextNode(e),i=Rd(l_e(r)?r.start:r,t);return{fileName:t.fileName,textSpan:i,kind:"keyword",name:"switch",containerKind:void 0,containerName:"",...Os.toContextSpan(i,t,r),isLocal:!0,isAmbient:!1,unverified:!1,failedAliasResolution:void 0}}function g_e(e,t){if(e.isDeclarationVisible(t))return!0;if(!t.parent)return!1;if(Oy(t.parent)&&t.parent.initializer===t)return g_e(e,t.parent);switch(t.kind){case 172:case 177:case 178:case 174:if(_p(t,2))return!1;case 176:case 303:case 304:case 210:case 231:case 219:case 218:return g_e(e,t.parent);default:return!1}}function C9(e,t,r){return XO(t,e,t.symbol,t,!1,r)}function IP(e,t){return vn(e,r=>ZM(r,t))}function _nt(e,t,r){return{fileName:t,textSpan:dc(0,0),kind:"script",name:e,containerName:void 0,containerKind:void 0,unverified:r}}function hnt(e){let t=zn(e,i=>!_2(i)),r=t?.parent;return r&&T1(r)&&e3(r)===t?r:void 0}function gnt(e,t){let r=hnt(t),i=r&&e.getResolvedSignature(r);return ai(i&&i.declaration,o=>ea(o)&&!bh(o))}function vnt(e){switch(e.kind){case 176:case 185:case 180:return!0;default:return!1}}var v_e,ynt=A({"src/services/goToDefinition.ts"(){"use strict";ci(),__e(),v_e=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"])}}),w2={};X(w2,{createDefinitionInfo:()=>XO,findReferenceInPosition:()=>IP,getDefinitionAndBoundSpan:()=>unt,getDefinitionAtPosition:()=>CLe,getReferenceAtPosition:()=>PLe,getTypeDefinitionAtPosition:()=>lnt});var bnt=A({"src/services/_namespaces/ts.GoToDefinition.ts"(){"use strict";ynt()}});function Ent(e){return e.includeInlayParameterNameHints==="literals"||e.includeInlayParameterNameHints==="all"}function Snt(e){return e.includeInlayParameterNameHints==="literals"}function LLe(e){return e.interactiveInlayHints===!0}function Tnt(e){let{file:t,program:r,span:i,cancellationToken:o,preferences:s}=e,l=t.text,u=r.getCompilerOptions(),p=af(t,s),g=r.getTypeChecker(),m=[];return b(t),m;function b(me){if(!(!me||me.getFullWidth()===0)){switch(me.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 174:case 219:o.throwIfCancellationRequested()}if(f6(i,me.pos,me.getFullWidth())&&!(qi(me)&&!Hv(me)))return s.includeInlayVariableTypeHints&&Oi(me)||s.includeInlayPropertyDeclarationTypeHints&&Jo(me)?H(me):s.includeInlayEnumMemberValueHints&&Q1(me)?N(me):Ent(s)&&(la(me)||H1(me))?K(me):(s.includeInlayFunctionParameterTypeHints&&zs(me)&&Z3(me)&&he(me),s.includeInlayFunctionLikeReturnTypeHints&&T(me)&&G(me)),Ho(me,b)}}function T(me){return Bs(me)||ws(me)||Sc(me)||jl(me)||Zp(me)}function I(me,ie,ve,Le){let He=`${Le?"...":""}${me}`,Ee;LLe(s)?(Ee=[Ne(He,ie),{text:":"}],He=""):He+=":",m.push({text:He,position:ve,kind:"Parameter",whitespaceAfter:!0,displayParts:Ee})}function R(me,ie){m.push({text:typeof me=="string"?`: ${me}`:"",displayParts:typeof me=="string"?void 0:[{text:": "},...me],position:ie,kind:"Type",whitespaceBefore:!0})}function M(me,ie){m.push({text:`= ${me}`,position:ie,kind:"Enum",whitespaceBefore:!0})}function N(me){if(me.initializer)return;let ie=g.getConstantValue(me);ie!==void 0&&M(ie.toString(),me.end)}function O(me){return me.symbol&&me.symbol.flags&1536}function H(me){if(!me.initializer||ta(me.name)||Oi(me)&&!fe(me)||yu(me))return;let ve=g.getTypeAtLocation(me);if(O(ve))return;let Le=Y(ve);if(Le){let He=typeof Le=="string"?Le:Le.map(Ce=>Ce.text).join("");if(s.includeInlayVariableTypeHintsWhenTypeMatchesName===!1&&Yb(me.name.getText(),He))return;R(Le,me.name.end)}}function K(me){let ie=me.arguments;if(!ie||!ie.length)return;let ve=[],Le=g.getResolvedSignatureForSignatureHelp(me,ve);if(!Le||!ve.length)return;let He=0;for(let Ee of ie){let Ce=vs(Ee);if(Snt(s)&&!ue(Ce)){He++;continue}let Me=0;if(Zm(Ce)){let At=g.getTypeAtLocation(Ce.expression);if(g.isTupleType(At)){let{elementFlags:Se,fixedLength:je}=At.target;if(je===0)continue;let at=ri(Se,yt=>!(yt&1));(at<0?je:at)>0&&(Me=at<0?je:at)}}let Fe=g.getParameterIdentifierInfoAtPosition(Le,He);if(He=He+(Me||1),Fe){let{parameter:At,parameterName:Se,isRestParameter:je}=Fe;if(!(s.includeInlayParameterNameHintsWhenArgumentMatchesName||!Z(Ce,Se))&&!je)continue;let Bt=Hi(Se);if(V(Ce,Bt))continue;I(Bt,At,Ee.getStart(),je)}}}function Z(me,ie){return Ve(me)?me.text===ie:zr(me)?me.name.text===ie:!1}function V(me,ie){if(!$p(ie,u.target,dk(t.scriptKind)))return!1;let ve=Kh(l,me.pos);if(!ve?.length)return!1;let Le=kLe(ie);return Et(ve,He=>Le.test(l.substring(He.pos,He.end)))}function ue(me){switch(me.kind){case 224:{let ie=me.operand;return S1(ie)||Ve(ie)&&oN(ie.escapedText)}case 112:case 97:case 106:case 15:case 228:return!0;case 80:{let ie=me.escapedText;return oe(ie)||oN(ie)}}return S1(me)}function G(me){if(Bs(me)&&!bs(me,21,t)||tm(me)||!me.body)return;let ve=g.getSignatureFromDeclaration(me);if(!ve)return;let Le=g.getReturnTypeOfSignature(ve);if(O(Le))return;let He=Y(Le);He&&R(He,ne(me))}function ne(me){let ie=bs(me,22,t);return ie?ie.end:me.parameters.end}function he(me){let ie=g.getSignatureFromDeclaration(me);if(ie)for(let ve=0;ve{let He=g.typeToTypeNode(me,void 0,71286784);C.assertIsDefined(He,"should always get typenode"),ve.writeNode(4,He,t,Le)})}function Y(me){if(!LLe(s))return $(me);let ve=g.typeToTypeNode(me,void 0,71286784);C.assertIsDefined(ve,"should always get typenode");let Le=[];return He(ve),Le;function He(Fe){var At,Se;if(!Fe)return;let je=ma(Fe.kind);if(je){Le.push({text:je});return}if(S1(Fe)){Le.push({text:Me(Fe)});return}switch(Fe.kind){case 80:C.assertNode(Fe,Ve);let at=Sr(Fe),Bt=Fe.symbol&&Fe.symbol.declarations&&Fe.symbol.declarations.length&&Oo(Fe.symbol.declarations[0]);Bt?Le.push(Ne(at,Bt)):Le.push({text:at});break;case 166:C.assertNode(Fe,Ad),He(Fe.left),Le.push({text:"."}),He(Fe.right);break;case 182:C.assertNode(Fe,Bk),Fe.assertsModifier&&Le.push({text:"asserts "}),He(Fe.parameterName),Fe.type&&(Le.push({text:" is "}),He(Fe.type));break;case 183:C.assertNode(Fe,Rf),He(Fe.typeName),Fe.typeArguments&&(Le.push({text:"<"}),Ce(Fe.typeArguments,", "),Le.push({text:">"}));break;case 168:C.assertNode(Fe,_l),Fe.modifiers&&Ce(Fe.modifiers," "),He(Fe.name),Fe.constraint&&(Le.push({text:" extends "}),He(Fe.constraint)),Fe.default&&(Le.push({text:" = "}),He(Fe.default));break;case 169:C.assertNode(Fe,Co),Fe.modifiers&&Ce(Fe.modifiers," "),Fe.dotDotDotToken&&Le.push({text:"..."}),He(Fe.name),Fe.questionToken&&Le.push({text:"?"}),Fe.type&&(Le.push({text:": "}),He(Fe.type));break;case 185:C.assertNode(Fe,OR),Le.push({text:"new "}),Ee(Fe),Le.push({text:" => "}),He(Fe.type);break;case 186:C.assertNode(Fe,rI),Le.push({text:"typeof "}),He(Fe.exprName),Fe.typeArguments&&(Le.push({text:"<"}),Ce(Fe.typeArguments,", "),Le.push({text:">"}));break;case 187:C.assertNode(Fe,yp),Le.push({text:"{"}),Fe.members.length&&(Le.push({text:" "}),Ce(Fe.members,"; "),Le.push({text:" "})),Le.push({text:"}"});break;case 188:C.assertNode(Fe,Gk),He(Fe.elementType),Le.push({text:"[]"});break;case 189:C.assertNode(Fe,iI),Le.push({text:"["}),Ce(Fe.elements,", "),Le.push({text:"]"});break;case 202:C.assertNode(Fe,FR),Fe.dotDotDotToken&&Le.push({text:"..."}),He(Fe.name),Fe.questionToken&&Le.push({text:"?"}),Le.push({text:": "}),He(Fe.type);break;case 190:C.assertNode(Fe,Y7),He(Fe.type),Le.push({text:"?"});break;case 191:C.assertNode(Fe,$7),Le.push({text:"..."}),He(Fe.type);break;case 192:C.assertNode(Fe,Xy),Ce(Fe.types," | ");break;case 193:C.assertNode(Fe,oI),Ce(Fe.types," & ");break;case 194:C.assertNode(Fe,aI),He(Fe.checkType),Le.push({text:" extends "}),He(Fe.extendsType),Le.push({text:" ? "}),He(Fe.trueType),Le.push({text:" : "}),He(Fe.falseType);break;case 195:C.assertNode(Fe,MS),Le.push({text:"infer "}),He(Fe.typeParameter);break;case 196:C.assertNode(Fe,LS),Le.push({text:"("}),He(Fe.type),Le.push({text:")"});break;case 198:C.assertNode(Fe,kS),Le.push({text:`${ma(Fe.operator)} `}),He(Fe.type);break;case 199:C.assertNode(Fe,wS),He(Fe.objectType),Le.push({text:"["}),He(Fe.indexType),Le.push({text:"]"});break;case 200:C.assertNode(Fe,WR),Le.push({text:"{ "}),Fe.readonlyToken&&(Fe.readonlyToken.kind===40?Le.push({text:"+"}):Fe.readonlyToken.kind===41&&Le.push({text:"-"}),Le.push({text:"readonly "})),Le.push({text:"["}),He(Fe.typeParameter),Fe.nameType&&(Le.push({text:" as "}),He(Fe.nameType)),Le.push({text:"]"}),Fe.questionToken&&(Fe.questionToken.kind===40?Le.push({text:"+"}):Fe.questionToken.kind===41&&Le.push({text:"-"}),Le.push({text:"?"})),Le.push({text:": "}),Fe.type&&He(Fe.type),Le.push({text:"; }"});break;case 201:C.assertNode(Fe,Yy),He(Fe.literal);break;case 184:C.assertNode(Fe,bh),Ee(Fe),Le.push({text:" => "}),He(Fe.type);break;case 205:C.assertNode(Fe,lg),Fe.isTypeOf&&Le.push({text:"typeof "}),Le.push({text:"import("}),He(Fe.argument),Fe.assertions&&(Le.push({text:", { assert: "}),Ce(Fe.assertions.assertClause.elements,", "),Le.push({text:" }"})),Le.push({text:")"}),Fe.qualifier&&(Le.push({text:"."}),He(Fe.qualifier)),Fe.typeArguments&&(Le.push({text:"<"}),Ce(Fe.typeArguments,", "),Le.push({text:">"}));break;case 171:C.assertNode(Fe,gp),(At=Fe.modifiers)!=null&&At.length&&(Ce(Fe.modifiers," "),Le.push({text:" "})),He(Fe.name),Fe.questionToken&&Le.push({text:"?"}),Fe.type&&(Le.push({text:": "}),He(Fe.type));break;case 181:C.assertNode(Fe,j1),Le.push({text:"["}),Ce(Fe.parameters,", "),Le.push({text:"]"}),Fe.type&&(Le.push({text:": "}),He(Fe.type));break;case 173:C.assertNode(Fe,yh),(Se=Fe.modifiers)!=null&&Se.length&&(Ce(Fe.modifiers," "),Le.push({text:" "})),He(Fe.name),Fe.questionToken&&Le.push({text:"?"}),Ee(Fe),Fe.type&&(Le.push({text:": "}),He(Fe.type));break;case 179:C.assertNode(Fe,nI),Ee(Fe),Fe.type&&(Le.push({text:": "}),He(Fe.type));break;case 207:C.assertNode(Fe,U1),Le.push({text:"["}),Ce(Fe.elements,", "),Le.push({text:"]"});break;case 206:C.assertNode(Fe,om),Le.push({text:"{"}),Fe.elements.length&&(Le.push({text:" "}),Ce(Fe.elements,", "),Le.push({text:" "})),Le.push({text:"}"});break;case 208:C.assertNode(Fe,Qa),He(Fe.name);break;case 224:C.assertNode(Fe,Qy),Le.push({text:ma(Fe.operator)}),He(Fe.operand);break;case 203:C.assertNode(Fe,Cae),He(Fe.head),Fe.templateSpans.forEach(He);break;case 16:C.assertNode(Fe,ZA),Le.push({text:Me(Fe)});break;case 204:C.assertNode(Fe,vH),He(Fe.type),He(Fe.literal);break;case 17:C.assertNode(Fe,mH),Le.push({text:Me(Fe)});break;case 18:C.assertNode(Fe,q7),Le.push({text:Me(Fe)});break;case 197:C.assertNode(Fe,Vk),Le.push({text:"this"});break;default:C.failBadSyntaxKind(Fe)}}function Ee(Fe){Fe.typeParameters&&(Le.push({text:"<"}),Ce(Fe.typeParameters,", "),Le.push({text:">"})),Le.push({text:"("}),Ce(Fe.parameters,", "),Le.push({text:")"})}function Ce(Fe,At){Fe.forEach((Se,je)=>{je>0&&Le.push({text:At}),He(Se)})}function Me(Fe){switch(Fe.kind){case 11:return p===0?`'${rg(Fe.text,39)}'`:`"${rg(Fe.text,34)}"`;case 16:case 17:case 18:{let At=Fe.rawText??$j(rg(Fe.text,96));switch(Fe.kind){case 16:return"`"+At+"${";case 17:return"}"+At+"${";case 18:return"}"+At+"`"}}}return Fe.text}}function oe(me){return me==="undefined"}function fe(me){if((L1(me)||Oi(me)&&tR(me))&&me.initializer){let ie=vs(me.initializer);return!(ue(ie)||H1(ie)||wa(ie)||pS(ie))}return!0}function Ne(me,ie){let ve=ie.getSourceFile();return{text:me,span:Rd(ie,ve),file:ve.fileName}}}var kLe,Ant=A({"src/services/inlayHints.ts"(){"use strict";ci(),kLe=e=>new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`)}}),LQ={};X(LQ,{provideInlayHints:()=>Tnt});var Int=A({"src/services/_namespaces/ts.InlayHints.ts"(){"use strict";Ant()}});function xnt(e,t){let r=[];return pX(e,i=>{for(let o of Dnt(i)){let s=t_(o)&&o.tags&&vn(o.tags,u=>u.kind===334&&(u.tagName.escapedText==="inheritDoc"||u.tagName.escapedText==="inheritdoc"));if(o.comment===void 0&&!s||t_(o)&&i.kind!==353&&i.kind!==345&&o.tags&&o.tags.some(u=>u.kind===353||u.kind===345)&&!o.tags.some(u=>u.kind===348||u.kind===349))continue;let l=o.comment?O2(o.comment,t):[];s&&s.comment&&(l=l.concat(O2(s.comment,t))),wr(r,l,Rnt)||r.push(l)}}),ts(Qi(r,[E2()]))}function Rnt(e,t){return Ma(e,t,(r,i)=>r.kind===i.kind&&r.text===i.text)}function Dnt(e){switch(e.kind){case 348:case 355:return[e];case 345:case 353:return[e,e.parent];case 330:if(UR(e.parent))return[e.parent.parent];default:return wj(e)}}function Cnt(e,t){let r=[];return pX(e,i=>{let o=o0(i);if(!(o.some(s=>s.kind===353||s.kind===345)&&!o.some(s=>s.kind===348||s.kind===349)))for(let s of o)r.push({name:s.tagName.text,text:FLe(s,t)}),r.push(...wLe(OLe(s),t))}),r}function wLe(e,t){return Zi(e,r=>xo([{name:r.tagName.text,text:FLe(r,t)}],wLe(OLe(r),t)))}function OLe(e){return mC(e)&&e.isNameFirst&&e.typeExpression&&GS(e.typeExpression.type)?e.typeExpression.type.jsDocPropertyTags:void 0}function O2(e,t){return typeof e=="string"?[sf(e)]:Zi(e,r=>r.kind===328?[sf(r.text)]:Gue(r,t))}function FLe(e,t){let{comment:r,kind:i}=e,o=Nnt(i);switch(i){case 356:let u=e.typeExpression;return u?s(u):r===void 0?void 0:O2(r,t);case 336:return s(e.class);case 335:return s(e.class);case 352:let p=e,g=[];if(p.constraint&&g.push(sf(p.constraint.getText())),De(p.typeParameters)){De(g)&&g.push(kl());let b=p.typeParameters[p.typeParameters.length-1];Ke(p.typeParameters,T=>{g.push(o(T.getText())),b!==T&&g.push(Yu(28),kl())})}return r&&g.push(kl(),...O2(r,t)),g;case 351:case 357:return s(e.typeExpression);case 353:case 345:case 355:case 348:case 354:let{name:m}=e;return m?s(m):r===void 0?void 0:O2(r,t);default:return r===void 0?void 0:O2(r,t)}function s(u){return l(u.getText())}function l(u){return r?u.match(/^https?$/)?[sf(u),...O2(r,t)]:[o(u),kl(),...O2(r,t)]:[sf(u)]}}function Nnt(e){switch(e){case 348:return Oue;case 355:return Fue;case 352:return zue;case 353:case 345:return Wue;default:return sf}}function Pnt(){return zLe||(zLe=Ft(b_e,e=>({name:e,kind:"keyword",kindModifiers:"",sortText:OI.SortText.LocationPriority})))}function Mnt(){return BLe||(BLe=Ft(b_e,e=>({name:`@${e}`,kind:"keyword",kindModifiers:"",sortText:OI.SortText.LocationPriority})))}function WLe(e){return{name:e,kind:"",kindModifiers:"",displayParts:[sf(e)],documentation:et,tags:void 0,codeActions:void 0}}function Lnt(e){if(!Ve(e.name))return et;let t=e.name.text,r=e.parent,i=r.parent;return ea(i)?Vi(i.parameters,o=>{if(!Ve(o.name))return;let s=o.name.text;if(!(r.tags.some(l=>l!==e&&n_(l)&&Ve(l.name)&&l.name.escapedText===s)||t!==void 0&&!uo(s,t)))return{name:s,kind:"parameter",kindModifiers:"",sortText:OI.SortText.LocationPriority}}):[]}function knt(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[sf(e)],documentation:et,tags:void 0,codeActions:void 0}}function wnt(e,t,r,i){let o=po(t,r),s=zn(o,t_);if(s&&(s.comment!==void 0||De(s.tags)))return;let l=o.getStart(t);if(!s&&l0;if(M&&!H){let K=N+e+I+" * ",Z=l===r?e+I:"";return{newText:K+e+M+I+O+Z,caretOffset:K.length}}return{newText:N+O,caretOffset:3}}function Ont(e,t){let{text:r}=e,i=sm(t,e),o=i;for(;o<=t&&S_(r.charCodeAt(o));o++);return r.slice(i,o)}function Fnt(e,t,r,i){return e.map(({name:o,dotDotDotToken:s},l)=>{let u=o.kind===80?o.text:"param"+l;return`${r} * @param ${t?s?"{...any} ":"{any} ":""}${u}${i}`}).join("")}function Wnt(e,t){return`${e} * @returns${t}`}function znt(e,t){return Yre(e,r=>y_e(r,t))}function y_e(e,t){switch(e.kind){case 262:case 218:case 174:case 176:case 173:case 219:let r=e;return{commentOwner:e,parameters:r.parameters,hasReturn:N9(r,t)};case 303:return y_e(e.initializer,t);case 263:case 264:case 266:case 306:case 265:return{commentOwner:e};case 171:{let o=e;return o.type&&bh(o.type)?{commentOwner:e,parameters:o.type.parameters,hasReturn:N9(o.type,t)}:{commentOwner:e}}case 243:{let s=e.declarationList.declarations,l=s.length===1&&s[0].initializer?Bnt(s[0].initializer):void 0;return l?{commentOwner:e,parameters:l.parameters,hasReturn:N9(l,t)}:{commentOwner:e}}case 312:return"quit";case 267:return e.parent.kind===267?void 0:{commentOwner:e};case 244:return y_e(e.expression,t);case 226:{let o=e;return Wl(o)===0?"quit":ea(o.right)?{commentOwner:e,parameters:o.right.parameters,hasReturn:N9(o.right,t)}:{commentOwner:e}}case 172:let i=e.initializer;if(i&&(ws(i)||Bs(i)))return{commentOwner:e,parameters:i.parameters,hasReturn:N9(i,t)}}}function N9(e,t){return!!t?.generateReturnInDocTemplate&&(bh(e)||Bs(e)&&bt(e.body)||zs(e)&&e.body&&Xo(e.body)&&!!R1(e.body,r=>r))}function Bnt(e){for(;e.kind===217;)e=e.expression;switch(e.kind){case 218:case 219:return e;case 231:return vn(e.members,Pl)}}var b_e,zLe,BLe,GLe,Gnt=A({"src/services/jsDoc.ts"(){"use strict";ci(),b_e=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","inheritdoc","inner","instance","interface","kind","lends","license","link","linkcode","linkplain","listens","member","memberof","method","mixes","module","name","namespace","overload","override","package","param","private","prop","property","protected","public","readonly","requires","returns","satisfies","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"],GLe=WLe}}),L0={};X(L0,{getDocCommentTemplateAtPosition:()=>wnt,getJSDocParameterNameCompletionDetails:()=>knt,getJSDocParameterNameCompletions:()=>Lnt,getJSDocTagCompletionDetails:()=>WLe,getJSDocTagCompletions:()=>Mnt,getJSDocTagNameCompletionDetails:()=>GLe,getJSDocTagNameCompletions:()=>Pnt,getJsDocCommentsFromDeclarations:()=>xnt,getJsDocTagsFromDeclarations:()=>Cnt});var Vnt=A({"src/services/_namespaces/ts.JsDoc.ts"(){"use strict";Gnt()}});function jnt(e,t,r,i,o,s){let l=hr.ChangeTracker.fromContext({host:r,formatContext:t,preferences:o}),u=s==="SortAndCombine"||s==="All",p=u,g=s==="RemoveUnused"||s==="All",m=kQ(e,e.statements.filter(Lc)),b=art(o,u?()=>ULe(m,o)===2:void 0),T=R=>(g&&(R=Hnt(R,e,i)),p&&(R=VLe(R,b,e,o)),u&&(R=Iv(R,(M,N)=>I_e(M,N,b))),R);m.forEach(R=>I(R,T)),s!=="RemoveUnused"&&srt(e).forEach(R=>I(R,M=>E_e(M,b,o)));for(let R of e.statements.filter(Lu)){if(!R.body)continue;if(kQ(e,R.body.statements.filter(Lc)).forEach(N=>I(N,T)),s!=="RemoveUnused"){let N=R.body.statements.filter(Kl);I(N,O=>E_e(O,b,o))}}return l.getChanges();function I(R,M){if(De(R)===0)return;fr(R[0],1024);let N=p?$D(R,K=>P9(K.moduleSpecifier)):[R],O=u?Iv(N,(K,Z)=>T_e(K[0].moduleSpecifier,Z[0].moduleSpecifier,b)):N,H=Zi(O,K=>P9(K[0].moduleSpecifier)||K[0].moduleSpecifier===void 0?M(K):K);if(H.length===0)l.deleteNodes(e,R,{leadingTriviaOption:hr.LeadingTriviaOption.Exclude,trailingTriviaOption:hr.TrailingTriviaOption.Include},!0);else{let K={leadingTriviaOption:hr.LeadingTriviaOption.Exclude,trailingTriviaOption:hr.TrailingTriviaOption.Include,suffix:Qv(r,t.options)};l.replaceNodeWithNodes(e,R[0],H,K);let Z=l.nodeHasTrailingComment(e,R[0],K);l.deleteNodes(e,R.slice(1),{trailingTriviaOption:hr.TrailingTriviaOption.Include},Z)}}}function kQ(e,t){let r=Mv(e.languageVersion,!1,e.languageVariant),i=[],o=0;for(let s of t)i[o]&&Unt(e,s,r)&&o++,i[o]||(i[o]=[]),i[o].push(s);return i}function Unt(e,t,r){let i=t.getFullStart(),o=t.getStart();r.setText(e.text,i,o-i);let s=0;for(;r.getTokenStart()=2))return!0;return!1}function Hnt(e,t,r){let i=r.getTypeChecker(),o=r.getCompilerOptions(),s=i.getJsxNamespace(t),l=i.getJsxFragmentFactory(t),u=!!(t.transformFlags&2),p=[];for(let m of e){let{importClause:b,moduleSpecifier:T}=m;if(!b){p.push(m);continue}let{name:I,namedBindings:R}=b;if(I&&!g(I)&&(I=void 0),R)if(Zy(R))g(R.name)||(R=void 0);else{let M=R.elements.filter(N=>g(N.name));M.lengthNa(i)&&i.text===r)}function P9(e){return e!==void 0&&us(e)?e.text:void 0}function Jnt(e,t,r,i){let o=wQ(t);return VLe(e,o,r,i)}function VLe(e,t,r,i){if(e.length===0)return e;let o=N8(e,l=>{if(l.attributes){let u=l.attributes.token+" ";for(let p of nS(l.attributes.elements,(g,m)=>ju(g.name.text,m.name.text)))u+=p.name.text+":",u+=us(p.value)?`"${p.value.text}"`:p.value.getText()+" ";return u}return""}),s=[];for(let l in o){let u=o[l],{importWithoutClause:p,typeOnlyImports:g,regularImports:m}=Knt(u);p&&s.push(p);for(let b of[m,g]){let T=b===g,{defaultImports:I,namespaceImports:R,namedImports:M}=b;if(!T&&I.length===1&&R.length===1&&M.length===0){let ne=I[0];s.push(YO(ne,ne.importClause.name,R[0].importClause.namedBindings));continue}let N=Iv(R,(ne,he)=>t(ne.importClause.namedBindings.name.text,he.importClause.namedBindings.name.text));for(let ne of N)s.push(YO(ne,void 0,ne.importClause.namedBindings));let O=Xc(I),H=Xc(M),K=O??H;if(!K)continue;let Z,V=[];if(I.length===1)Z=I[0].importClause.name;else for(let ne of I)V.push(k.createImportSpecifier(!1,k.createIdentifier("default"),ne.importClause.name));V.push(...nrt(M));let ue=k.createNodeArray(jLe(V,t,i),H?.importClause.namedBindings.elements.hasTrailingComma),G=ue.length===0?Z?void 0:k.createNamedImports(et):H?k.updateNamedImports(H.importClause.namedBindings,ue):k.createNamedImports(ue);r&&G&&H?.importClause.namedBindings&&!DS(H.importClause.namedBindings,r)&&fr(G,2),T&&Z&&G?(s.push(YO(K,Z,void 0)),s.push(YO(H??K,void 0,G))):s.push(YO(K,Z,G))}}return s}function Knt(e){let t,r={defaultImports:[],namespaceImports:[],namedImports:[]},i={defaultImports:[],namespaceImports:[],namedImports:[]};for(let o of e){if(o.importClause===void 0){t=t||o;continue}let s=o.importClause.isTypeOnly?r:i,{name:l,namedBindings:u}=o.importClause;l&&s.defaultImports.push(o),u&&(Zy(u)?s.namespaceImports.push(o):s.namedImports.push(o))}return{importWithoutClause:t,typeOnlyImports:r,regularImports:i}}function Xnt(e,t,r){let i=wQ(t);return E_e(e,i,r)}function E_e(e,t,r){if(e.length===0)return e;let{exportWithoutClause:i,namedExports:o,typeOnlyExports:s}=u(e),l=[];i&&l.push(i);for(let p of[o,s]){if(p.length===0)continue;let g=[];g.push(...Zi(p,T=>T.exportClause&&Df(T.exportClause)?T.exportClause.elements:et));let m=jLe(g,t,r),b=p[0];l.push(k.updateExportDeclaration(b,b.modifiers,b.isTypeOnly,b.exportClause&&(Df(b.exportClause)?k.updateNamedExports(b.exportClause,m):k.updateNamespaceExport(b.exportClause,b.exportClause.name)),b.moduleSpecifier,b.attributes))}return l;function u(p){let g,m=[],b=[];for(let T of p)T.exportClause===void 0?g=g||T:T.isTypeOnly?b.push(T):m.push(T);return{exportWithoutClause:g,namedExports:m,typeOnlyExports:b}}}function YO(e,t,r){return k.updateImportDeclaration(e,e.modifiers,k.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,r),e.moduleSpecifier,e.attributes)}function jLe(e,t,r){return Iv(e,(i,o)=>S_e(i,o,t,r))}function S_e(e,t,r,i){switch(i?.organizeImportsTypeOrder){case"first":return Ay(t.isTypeOnly,e.isTypeOnly)||r(e.name.text,t.name.text);case"inline":return r(e.name.text,t.name.text);default:return Ay(e.isTypeOnly,t.isTypeOnly)||r(e.name.text,t.name.text)}}function Ynt(e,t,r){let i=wQ(!!r);return T_e(e,t,i)}function T_e(e,t,r){let i=e===void 0?void 0:P9(e),o=t===void 0?void 0:P9(t);return Ay(i===void 0,o===void 0)||Ay(Yc(i),Yc(o))||r(i,o)}function A_e(e){var t;switch(e.kind){case 271:return(t=ai(e.moduleReference,Th))==null?void 0:t.expression;case 272:return e.moduleSpecifier;case 243:return e.declarationList.declarations[0].initializer.arguments[0]}}function $nt(e,t){return ULe(kQ(e,e.statements.filter(Lc)),t)}function ULe(e,t){let r=F2(t,!1),i=F2(t,!0),o=3,s=!1;for(let l of e){if(l.length>1){let p=YD(l,g=>{var m;return((m=ai(g.moduleSpecifier,Na))==null?void 0:m.text)??""},r,i);if(p&&(o&=p,s=!0),!o)return o}let u=vn(l,p=>{var g,m;return((m=ai((g=p.importClause)==null?void 0:g.namedBindings,jg))==null?void 0:m.elements.length)>1});if(u){let p=x_e(u.importClause.namedBindings.elements,t);if(p&&(o&=p,s=!0),!o)return o}if(o!==3)return o}return s?0:o}function Qnt(e,t){let r=F2(t,!1),i=F2(t,!0);return YD(e,o=>P9(A_e(o))||"",r,i)}function Znt(e,t,r){let i=xv(e,t,el,(o,s)=>I_e(o,s,r));return i<0?~i:i}function ert(e,t,r,i){let o=xv(e,t,el,(s,l)=>S_e(s,l,r,i));return o<0?~o:o}function I_e(e,t,r){return T_e(A_e(e),A_e(t),r)||trt(e,t)}function trt(e,t){return tl(HLe(e),HLe(t))}function HLe(e){var t;switch(e.kind){case 272:return e.importClause?e.importClause.isTypeOnly?1:((t=e.importClause.namedBindings)==null?void 0:t.kind)===274?2:e.importClause.name?3:4:0;case 271:return 5;case 243:return 6}}function nrt(e){return Zi(e,t=>Ft(rrt(t),r=>r.name&&r.propertyName&&r.name.escapedText===r.propertyName.escapedText?k.updateImportSpecifier(r,r.isTypeOnly,void 0,r.name):r))}function rrt(e){var t;return(t=e.importClause)!=null&&t.namedBindings&&jg(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}function wQ(e){return e?Ene:ju}function irt(e,t){let r=ort(t),i=t.organizeImportsCaseFirst??!1,o=t.organizeImportsNumericCollation??!1,s=t.organizeImportsAccentCollation??!0,l=e?s?"accent":"base":s?"variant":"case";return new Intl.Collator(r,{usage:"sort",caseFirst:i||"false",sensitivity:l,numeric:o}).compare}function ort(e){let t=e.organizeImportsLocale;t==="auto"&&(t=Sne()),t===void 0&&(t="en");let r=Intl.Collator.supportedLocalesOf(t);return r.length?r[0]:"en"}function F2(e,t){return(e.organizeImportsCollation??"ordinal")==="unicode"?irt(t,e):wQ(t)}function art(e,t){let r=typeof e.organizeImportsIgnoreCase=="boolean"?e.organizeImportsIgnoreCase:t?.()??!1;return F2(e,r)}function srt(e){let t=[],r=e.statements,i=De(r),o=0,s=0;for(;okQ(e,l))}var qLe,x_e,lrt=A({"src/services/organizeImports.ts"(){"use strict";ci(),qLe=class{has([e,t]){return this._lastPreferences!==t||!this._cache?!1:this._cache.has(e)}get([e,t]){if(!(this._lastPreferences!==t||!this._cache))return this._cache.get(e)}set([e,t],r){this._lastPreferences!==t&&(this._lastPreferences=t,this._cache=void 0),this._cache??(this._cache=new WeakMap),this._cache.set(e,r)}},x_e=bne((e,t)=>{switch(t.organizeImportsTypeOrder){case"first":if(!R8(e,(o,s)=>Ay(s.isTypeOnly,o.isTypeOnly)))return 0;break;case"inline":if(!R8(e,(o,s)=>Nx(!0)(o.name.text,s.name.text)))return 0;break;default:if(!R8(e,(o,s)=>Ay(o.isTypeOnly,s.isTypeOnly)))return 0;break}let r=F2(t,!1),i=F2(t,!0);if(t.organizeImportsTypeOrder!=="inline"){let{type:o,regular:s}=N8(e,p=>p.isTypeOnly?"type":"regular"),l=o?.length?YD(o,p=>p.name.text,r,i):void 0,u=s?.length?YD(s,p=>p.name.text??"",r,i):void 0;return l===void 0?u??0:u===void 0?l:l===0||u===0?0:u&l}return YD(e,o=>o.name.text,r,i)},new qLe)}}),Mm={};X(Mm,{coalesceExports:()=>Xnt,coalesceImports:()=>Jnt,compareImportOrExportSpecifiers:()=>S_e,compareImportsOrRequireStatements:()=>I_e,compareModuleSpecifiers:()=>Ynt,detectImportDeclarationSorting:()=>Qnt,detectImportSpecifierSorting:()=>x_e,detectSorting:()=>$nt,getImportDeclarationInsertionIndex:()=>Znt,getImportSpecifierInsertionIndex:()=>ert,getOrganizeImportsComparer:()=>F2,organizeImports:()=>jnt});var crt=A({"src/services/_namespaces/ts.OrganizeImports.ts"(){"use strict";lrt()}});function urt(e,t){let r=[];return drt(e,t,r),prt(e,r),r.sort((i,o)=>i.textSpan.start-o.textSpan.start)}function drt(e,t,r){let i=40,o=0,s=[...e.statements,e.endOfFileToken],l=s.length;for(;o1&&i.push(M9(s,l,"comment"))}}function KLe(e,t,r,i){$A(e)||R_e(e.pos,t,r,i)}function M9(e,t,r){return WI(dc(e,t),r)}function frt(e,t){switch(e.kind){case 241:if(ea(e.parent))return mrt(e.parent,e,t);switch(e.parent.kind){case 246:case 249:case 250:case 248:case 245:case 247:case 254:case 299:return m(e.parent);case 258:let I=e.parent;if(I.tryBlock===e)return m(e.parent);if(I.finallyBlock===e){let R=bs(I,98,t);if(R)return m(R)}default:return WI(Rd(e,t),"code")}case 268:return m(e.parent);case 263:case 231:case 264:case 266:case 269:case 187:case 206:return m(e);case 189:return m(e,!1,!iI(e.parent),23);case 296:case 297:return b(e.statements);case 210:return g(e);case 209:return g(e,23);case 284:return s(e);case 288:return l(e);case 285:case 286:return u(e.attributes);case 228:case 15:return p(e);case 207:return m(e,!1,!Qa(e.parent),23);case 219:return o(e);case 213:return i(e);case 217:return T(e);case 275:case 279:case 300:return r(e)}function r(I){if(!I.elements.length)return;let R=bs(I,19,t),M=bs(I,20,t);if(!(!R||!M||Af(R.pos,M.pos,t)))return OQ(R,M,I,t,!1,!1)}function i(I){if(!I.arguments.length)return;let R=bs(I,21,t),M=bs(I,22,t);if(!(!R||!M||Af(R.pos,M.pos,t)))return OQ(R,M,I,t,!1,!0)}function o(I){if(Xo(I.body)||Wd(I.body)||Af(I.body.getFullStart(),I.body.getEnd(),t))return;let R=dc(I.body.getFullStart(),I.body.getEnd());return WI(R,"code",Rd(I))}function s(I){let R=dc(I.openingElement.getStart(t),I.closingElement.getEnd()),M=I.openingElement.tagName.getText(t),N="<"+M+">...";return WI(R,"code",R,!1,N)}function l(I){let R=dc(I.openingFragment.getStart(t),I.closingFragment.getEnd());return WI(R,"code",R,!1,"<>...")}function u(I){if(I.properties.length!==0)return M9(I.getStart(t),I.getEnd(),"code")}function p(I){if(!(I.kind===15&&I.text.length===0))return M9(I.getStart(t),I.getEnd(),"code")}function g(I,R=19){return m(I,!1,!pd(I.parent)&&!la(I.parent),R)}function m(I,R=!1,M=!0,N=19,O=N===19?20:24){let H=bs(e,N,t),K=bs(e,O,t);return H&&K&&OQ(H,K,I,t,R,M)}function b(I){return I.length?WI(ib(I),"code"):void 0}function T(I){if(Af(I.getStart(),I.getEnd(),t))return;let R=dc(I.getStart(),I.getEnd());return WI(R,"code",Rd(I))}}function mrt(e,t,r){let i=_rt(e,t,r),o=bs(t,20,r);return i&&o&&OQ(i,o,e,r,e.kind!==219)}function OQ(e,t,r,i,o=!1,s=!0){let l=dc(s?e.getFullStart():e.getStart(i),t.getEnd());return WI(l,"code",Rd(r,i),o)}function WI(e,t,r=e,i=!1,o="..."){return{textSpan:e,kind:t,hintSpan:r,bannerText:o,autoCollapse:i}}function _rt(e,t,r){if(_oe(e.parameters,r)){let i=bs(e,21,r);if(i)return i}return bs(t,19,r)}var XLe,hrt=A({"src/services/outliningElementsCollector.ts"(){"use strict";ci(),XLe=/^#(end)?region(?:\s+(.*))?(?:\r)?$/}}),FQ={};X(FQ,{collectElements:()=>urt});var grt=A({"src/services/_namespaces/ts.OutliningElementsCollector.ts"(){"use strict";hrt()}});function vrt(e,t,r,i){let o=ZF(zd(t,r));if($Le(o)){let s=yrt(o,e.getTypeChecker(),t,e,i);if(s)return s}return WQ(f.You_cannot_rename_this_element)}function yrt(e,t,r,i,o){let s=t.getSymbolAtLocation(e);if(!s){if(us(e)){let T=QF(e,t);if(T&&(T.flags&128||T.flags&1048576&&Jn(T.types,I=>!!(I.flags&128))))return D_e(e.text,e.text,"string","",e,r)}else if(zK(e)){let T=pc(e);return D_e(T,T,"label","",e,r)}return}let{declarations:l}=s;if(!l||l.length===0)return;if(l.some(T=>brt(i,T)))return WQ(f.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(Ve(e)&&e.escapedText==="default"&&s.parent&&s.parent.flags&1536)return;if(us(e)&&jL(e))return o.allowRenameOfImportPath?Srt(e,r,s):void 0;let u=Ert(r,s,t,o);if(u)return WQ(u);let p=ty.getSymbolKind(t,s,e),g=Vue(e)||Qp(e)&&e.parent.kind===167?em(Zf(e)):void 0,m=g||t.symbolToString(s),b=g||t.getFullyQualifiedName(s);return D_e(m,b,p,ty.getSymbolModifiers(t,s),e,r)}function brt(e,t){let r=t.getSourceFile();return e.isSourceFileDefaultLibrary(r)&&Tl(r.fileName,".d.ts")}function Ert(e,t,r,i){if(!i.providePrefixAndSuffixTextForRename&&t.flags&2097152){let l=t.declarations&&vn(t.declarations,u=>tp(u));l&&!l.propertyName&&(t=r.getAliasedSymbol(t))}let{declarations:o}=t;if(!o)return;let s=YLe(e.path);if(s===void 0)return Et(o,l=>vO(l.getSourceFile().path))?f.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(let l of o){let u=YLe(l.getSourceFile().path);if(u){let p=Math.min(s.length,u.length);for(let g=0;g<=p;g++)if(ju(s[g],u[g])!==0)return f.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}function YLe(e){let t=Wc(e),r=t.lastIndexOf("node_modules");if(r!==-1)return t.slice(0,r+2)}function Srt(e,t,r){if(!Yc(e.text))return WQ(f.You_cannot_rename_a_module_via_a_global_import);let i=r.declarations&&vn(r.declarations,no);if(!i)return;let o=Sl(e.text,"/index")||Sl(e.text,"/index.js")?void 0:Ine(Td(i.fileName),"/index"),s=o===void 0?i.fileName:o,l=o===void 0?"module":"directory",u=e.text.lastIndexOf("/")+1,p=vu(e.getStart(t)+1+u,e.text.length-u);return{canRename:!0,fileToRename:s,kind:l,displayName:s,fullDisplayName:e.text,kindModifiers:"",triggerSpan:p}}function D_e(e,t,r,i,o,s){return{canRename:!0,fileToRename:void 0,kind:r,displayName:e,fullDisplayName:t,kindModifiers:i,triggerSpan:Trt(o,s)}}function WQ(e){return{canRename:!1,localizedErrorMessage:Bo(e)}}function Trt(e,t){let r=e.getStart(t),i=e.getWidth(t);return us(e)&&(r+=1,i-=2),vu(r,i)}function $Le(e){switch(e.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return KF(e);default:return!1}}var Art=A({"src/services/rename.ts"(){"use strict";ci()}}),L9={};X(L9,{getRenameInfo:()=>vrt,nodeIsEligibleForRename:()=>$Le});var Irt=A({"src/services/_namespaces/ts.Rename.ts"(){"use strict";Art()}});function xrt(e,t,r,i,o){let s=e.getTypeChecker(),l=eW(t,r);if(!l)return;let u=!!i&&i.kind==="characterTyped";if(u&&(II(t,r,l)||Xv(t,r)))return;let p=!!i&&i.kind==="invoked",g=jrt(l,r,t,s,p);if(!g)return;o.throwIfCancellationRequested();let m=Rrt(g,s,t,l,u);return o.throwIfCancellationRequested(),m?s.runWithCancellationToken(o,b=>m.kind===0?oke(m.candidates,m.resolvedSignature,g,t,b):Hrt(m.symbol,g,t,b)):ld(t)?Crt(g,e,o):void 0}function Rrt({invocation:e,argumentCount:t},r,i,o,s){switch(e.kind){case 0:{if(s&&!Drt(o,e.node,i))return;let l=[],u=r.getResolvedSignatureForSignatureHelp(e.node,l,t);return l.length===0?void 0:{kind:0,candidates:l,resolvedSignature:u}}case 1:{let{called:l}=e;if(s&&!QLe(o,i,Ve(l)?l.parent:l))return;let u=XK(l,t,r);if(u.length!==0)return{kind:0,candidates:u,resolvedSignature:Ha(u)};let p=r.getSymbolAtLocation(l);return p&&{kind:1,symbol:p}}case 2:return{kind:0,candidates:[e.signature],resolvedSignature:e.signature};default:return C.assertNever(e)}}function Drt(e,t,r){if(!T_(t))return!1;let i=t.getChildren(r);switch(e.kind){case 21:return wr(i,e);case 28:{let o=$F(e);return!!o&&wr(i,o)}case 30:return QLe(e,r,t.expression);default:return!1}}function Crt(e,t,r){if(e.invocation.kind===2)return;let i=rke(e.invocation),o=zr(i)?i.name.text:void 0,s=t.getTypeChecker();return o===void 0?void 0:Zt(t.getSourceFiles(),l=>Zt(l.getNamedDeclarations().get(o),u=>{let p=u.symbol&&s.getTypeOfSymbolAtLocation(u.symbol,u),g=p&&p.getCallSignatures();if(g&&g.length)return s.runWithCancellationToken(r,m=>oke(g,g[0],e,l,m,!0))}))}function QLe(e,t,r){let i=e.getFullStart(),o=e.parent;for(;o;){let s=Ac(i,t,o,!0);if(s)return of(r,s);o=o.parent}return C.fail("Could not find preceding token")}function Nrt(e,t,r,i){let o=eke(e,t,r,i);return!o||o.isTypeParameterList||o.invocation.kind!==0?void 0:{invocation:o.invocation.node,argumentCount:o.argumentCount,argumentIndex:o.argumentIndex}}function ZLe(e,t,r,i){let o=Prt(e,r,i);if(!o)return;let{list:s,argumentIndex:l}=o,u=zrt(i,s);l!==0&&C.assertLessThan(l,u);let p=Grt(s,r);return{list:s,argumentIndex:l,argumentCount:u,argumentsSpan:p}}function Prt(e,t,r){if(e.kind===30||e.kind===21)return{list:Urt(e.parent,e,t),argumentIndex:0};{let i=$F(e);return i&&{list:i,argumentIndex:Wrt(r,i,e)}}}function eke(e,t,r,i){let{parent:o}=e;if(T_(o)){let s=o,l=ZLe(e,t,r,i);if(!l)return;let{list:u,argumentIndex:p,argumentCount:g,argumentsSpan:m}=l;return{isTypeParameterList:!!o.typeArguments&&o.typeArguments.pos===u.pos,invocation:{kind:0,node:s},argumentsSpan:m,argumentIndex:p,argumentCount:g}}else{if(QA(e)&&q1(o))return oO(e,t,r)?N_e(o,0,r):void 0;if(ZA(e)&&o.parent.kind===215){let s=o,l=s.parent;C.assert(s.kind===228);let u=oO(e,t,r)?0:1;return N_e(l,u,r)}else if(EN(o)&&q1(o.parent.parent)){let s=o,l=o.parent.parent;if(q7(e)&&!oO(e,t,r))return;let u=s.parent.templateSpans.indexOf(s),p=Brt(u,e,t,r);return N_e(l,p,r)}else if(sd(o)){let s=o.attributes.pos,l=La(r.text,o.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:o},argumentsSpan:vu(s,l-s),argumentIndex:0,argumentCount:1}}else{let s=YK(e,r);if(s){let{called:l,nTypeArguments:u}=s,p={kind:1,called:l},g=dc(l.getStart(r),e.end);return{isTypeParameterList:!0,invocation:p,argumentsSpan:g,argumentIndex:u,argumentCount:u+1}}return}}}function Mrt(e,t,r,i){return Lrt(e,t,r,i)||eke(e,t,r,i)}function tke(e){return _r(e.parent)?tke(e.parent):e}function C_e(e){return _r(e.left)?C_e(e.left)+1:2}function Lrt(e,t,r,i){let o=krt(e);if(o===void 0)return;let s=wrt(o,r,t,i);if(s===void 0)return;let{contextualType:l,argumentIndex:u,argumentCount:p,argumentsSpan:g}=s,m=l.getNonNullableType(),b=m.symbol;if(b===void 0)return;let T=Zs(m.getCallSignatures());return T===void 0?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:T,node:e,symbol:Ort(b)},argumentsSpan:g,argumentIndex:u,argumentCount:p}}function krt(e){switch(e.kind){case 21:case 28:return e;default:return zn(e.parent,t=>Co(t)?!0:Qa(t)||om(t)||U1(t)?!1:"quit")}}function wrt(e,t,r,i){let{parent:o}=e;switch(o.kind){case 217:case 174:case 218:case 219:let s=ZLe(e,r,t,i);if(!s)return;let{argumentIndex:l,argumentCount:u,argumentsSpan:p}=s,g=jl(o)?i.getContextualTypeForObjectLiteralElement(o):i.getContextualType(o);return g&&{contextualType:g,argumentIndex:l,argumentCount:u,argumentsSpan:p};case 226:{let m=tke(o),b=i.getContextualType(m),T=e.kind===21?0:C_e(o)-1,I=C_e(m);return b&&{contextualType:b,argumentIndex:T,argumentCount:I,argumentsSpan:Rd(o)}}default:return}}function Ort(e){return e.name==="__type"&&Zt(e.declarations,t=>{var r;return bh(t)?(r=ai(t.parent,A_))==null?void 0:r.symbol:void 0})||e}function Frt(e,t){let r=t.getTypeAtLocation(e.expression);if(t.isTupleType(r)){let{elementFlags:i,fixedLength:o}=r.target;if(o===0)return 0;let s=ri(i,l=>!(l&1));return s<0?o:s}return 0}function Wrt(e,t,r){return nke(e,t,r)}function zrt(e,t){return nke(e,t,void 0)}function nke(e,t,r){let i=t.getChildren(),o=0,s=!1;for(let l of i){if(r&&l===r)return!s&&l.kind===28&&o++,o;if(Zm(l)){o+=Frt(l,e),s=!0;continue}if(l.kind!==28){o++,s=!0;continue}if(s){s=!1;continue}o++}return r?o:i.length&&Ya(i).kind===28?o+1:o}function Brt(e,t,r,i){return C.assert(r>=t.getStart(),"Assumed 'position' could not occur before node."),xre(t)?oO(t,r,i)?0:e+2:e+1}function N_e(e,t,r){let i=QA(e.template)?1:e.template.templateSpans.length+1;return t!==0&&C.assertLessThan(t,i),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:Vrt(e,r),argumentIndex:t,argumentCount:i}}function Grt(e,t){let r=e.getFullStart(),i=La(t.text,e.getEnd(),!1);return vu(r,i-r)}function Vrt(e,t){let r=e.template,i=r.getStart(),o=r.getEnd();return r.kind===228&&Ya(r.templateSpans).literal.getFullWidth()===0&&(o=La(t.text,o,!1)),vu(i,o-i)}function jrt(e,t,r,i,o){for(let s=e;!no(s)&&(o||!Xo(s));s=s.parent){C.assert(of(s.parent,s),"Not a subspan",()=>`Child: ${C.formatSyntaxKind(s.kind)}, parent: ${C.formatSyntaxKind(s.parent.kind)}`);let l=Mrt(s,t,r,i);if(l)return l}}function Urt(e,t,r){let i=e.getChildren(r),o=i.indexOf(t);return C.assert(o>=0&&i.length>o+1),i[o+1]}function rke(e){return e.kind===0?e3(e.node):e.called}function ike(e){return e.kind===0?e.node:e.kind===1?e.called:e.node}function oke(e,t,{isTypeParameterList:r,argumentCount:i,argumentsSpan:o,invocation:s,argumentIndex:l},u,p,g){var m;let b=ike(s),T=s.kind===2?s.symbol:p.getSymbolAtLocation(rke(s))||g&&((m=t.declaration)==null?void 0:m.symbol),I=T?dP(p,T,g?u:void 0,void 0):et,R=Ft(e,K=>Jrt(K,I,r,p,b,u));l!==0&&C.assertLessThan(l,i);let M=0,N=0;for(let K=0;K1)){let V=0;for(let ue of Z){if(ue.isVariadic||ue.parameters.length>=i){M=N+V;break}V++}}N+=Z.length}C.assert(M!==-1);let O={items:$d(R,el),applicableSpan:o,selectedItemIndex:M,argumentIndex:l,argumentCount:i},H=O.items[M];if(H.isVariadic){let K=ri(H.parameters,Z=>!!Z.isRest);-1ake(b,r,i,o,l)),p=e.getDocumentationComment(r),g=e.getJsDocTags(r);return{isVariadic:!1,prefixDisplayParts:[...s,Yu(30)],suffixDisplayParts:[Yu(32)],separatorDisplayParts:P_e,parameters:u,documentation:p,tags:g}}function Jrt(e,t,r,i,o,s){let l=(r?Xrt:Yrt)(e,i,o,s);return Ft(l,({isVariadic:u,parameters:p,prefix:g,suffix:m})=>{let b=[...t,...g],T=[...m,...Krt(e,o,i)],I=e.getDocumentationComment(i),R=e.getJsDocTags();return{isVariadic:u,prefixDisplayParts:b,suffixDisplayParts:T,separatorDisplayParts:P_e,parameters:p,documentation:I,tags:R}})}function Krt(e,t,r){return ob(i=>{i.writePunctuation(":"),i.writeSpace(" ");let o=r.getTypePredicateOfSignature(e);o?r.writeTypePredicate(o,t,void 0,i):r.writeType(r.getReturnTypeOfSignature(e),t,void 0,i)})}function Xrt(e,t,r,i){let o=(e.target||e).typeParameters,s=oE(),l=(o||et).map(p=>ake(p,t,r,i,s)),u=e.thisParameter?[t.symbolToParameterDeclaration(e.thisParameter,r,$O)]:[];return t.getExpandedParameters(e).map(p=>{let g=k.createNodeArray([...u,...Ft(p,b=>t.symbolToParameterDeclaration(b,r,$O))]),m=ob(b=>{s.writeList(2576,g,i,b)});return{isVariadic:!1,parameters:l,prefix:[Yu(30)],suffix:[Yu(32),...m]}})}function Yrt(e,t,r,i){let o=oE(),s=ob(p=>{if(e.typeParameters&&e.typeParameters.length){let g=k.createNodeArray(e.typeParameters.map(m=>t.typeParameterToDeclaration(m,r,$O)));o.writeList(53776,g,i,p)}}),l=t.getExpandedParameters(e),u=t.hasEffectiveRestParameter(e)?l.length===1?p=>!0:p=>{var g;return!!(p.length&&((g=ai(p[p.length-1],fh))==null?void 0:g.links.checkFlags)&32768)}:p=>!1;return l.map(p=>({isVariadic:u(p),parameters:p.map(g=>$rt(g,t,r,i,o)),prefix:[...s,Yu(21)],suffix:[Yu(22)]}))}function $rt(e,t,r,i,o){let s=ob(p=>{let g=t.symbolToParameterDeclaration(e,r,$O);o.writeNode(4,g,i,p)}),l=t.isOptionalParameter(e.valueDeclaration),u=fh(e)&&!!(e.links.checkFlags&32768);return{name:e.name,documentation:e.getDocumentationComment(t),displayParts:s,isOptional:l,isRest:u}}function ake(e,t,r,i,o){let s=ob(l=>{let u=t.typeParameterToDeclaration(e,r,$O);o.writeNode(4,u,i,l)});return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(t),displayParts:s,isOptional:!1,isRest:!1}}var $O,P_e,Qrt=A({"src/services/signatureHelp.ts"(){"use strict";ci(),$O=70246400,P_e=[Yu(28),kl()]}}),QO={};X(QO,{getArgumentInfoForCompletions:()=>Nrt,getSignatureHelpItems:()=>xrt});var Zrt=A({"src/services/_namespaces/ts.SignatureHelp.ts"(){"use strict";Qrt()}});function eit(e,t){var r,i;let o={textSpan:dc(t.getFullStart(),t.getEnd())},s=t;e:for(;;){let p=nit(s);if(!p.length)break;for(let g=0;ge)break e;let I=ah(Qb(t.text,b.end));if(I&&I.kind===2&&u(I.pos,I.end),tit(t,e,b)){if(ZV(b)&&zs(s)&&!Af(b.getStart(t),b.getEnd(),t)&&l(b.getStart(t),b.getEnd()),Xo(b)||EN(b)||ZA(b)||q7(b)||m&&ZA(m)||jc(b)&&Ml(s)||HR(b)&&jc(s)||Oi(b)&&HR(s)&&p.length===1||Z1(b)||b0(b)||GS(b)){s=b;break}if(EN(s)&&T&&S6(T)){let O=b.getFullStart()-2,H=T.getStart()+1;l(O,H)}let R=HR(b)&&rit(m)&&iit(T)&&!Af(m.getStart(),T.getStart(),t),M=R?m.getEnd():b.getStart(),N=R?T.getStart():oit(t,b);if(Op(b)&&((r=b.jsDoc)!=null&&r.length)&&l(Ha(b.jsDoc).getStart(),N),HR(b)){let O=b.getChildren()[0];O&&Op(O)&&((i=O.jsDoc)!=null&&i.length)&&O.getStart()!==b.pos&&(M=Math.min(M,Ha(O.jsDoc).getStart()))}l(M,N),(Na(b)||DA(b))&&l(M+1,N-1),s=b;break}if(g===p.length-1)break e}}return o;function l(p,g){if(p!==g){let m=dc(p,g);(!o||!b2(m,o.textSpan)&&ire(m,e))&&(o={textSpan:m,...o&&{parent:o}})}}function u(p,g){l(p,g);let m=p;for(;t.text.charCodeAt(m)===47;)m++;l(m,g)}}function tit(e,t,r){return C.assert(r.pos<=t),tu===e.readonlyToken||u.kind===148||u===e.questionToken||u.kind===58),l=ZO(s,({kind:u})=>u===23||u===168||u===24);return[r,e4(zQ(l,({kind:u})=>u===59)),o]}if(gp(e)){let r=ZO(e.getChildren(),l=>l===e.name||wr(e.modifiers,l)),i=((t=r[0])==null?void 0:t.kind)===327?r[0]:void 0,o=i?r.slice(1):r,s=zQ(o,({kind:l})=>l===59);return i?[i,e4(s)]:s}if(Co(e)){let r=ZO(e.getChildren(),o=>o===e.dotDotDotToken||o===e.name),i=ZO(r,o=>o===r[0]||o===e.questionToken);return zQ(i,({kind:o})=>o===64)}return Qa(e)?zQ(e.getChildren(),({kind:r})=>r===64):e.getChildren()}function ZO(e,t){let r=[],i;for(let o of e)t(o)?(i=i||[],i.push(o)):(i&&(r.push(e4(i)),i=void 0),r.push(o));return i&&r.push(e4(i)),r}function zQ(e,t,r=!0){if(e.length<2)return e;let i=ri(e,t);if(i===-1)return e;let o=e.slice(0,i),s=e[i],l=Ya(e),u=r&&l.kind===27,p=e.slice(i+1,u?e.length-1:void 0),g=CM([o.length?e4(o):void 0,s,p.length?e4(p):void 0]);return u?g.concat(l):g}function e4(e){return C.assertGreaterThanOrEqual(e.length,1),gh(Ah.createSyntaxList(e),e[0].pos,Ya(e).end)}function rit(e){let t=e&&e.kind;return t===19||t===23||t===21||t===286}function iit(e){let t=e&&e.kind;return t===20||t===24||t===22||t===287}function oit(e,t){switch(t.kind){case 348:case 345:case 355:case 353:case 350:return e.getLineEndOfPosition(t.getStart());default:return t.getEnd()}}var ske,ait=A({"src/services/smartSelection.ts"(){"use strict";ci(),ske=Xm(Lc,tu)}}),BQ={};X(BQ,{getSmartSelectionRange:()=>eit});var sit=A({"src/services/_namespaces/ts.SmartSelectionRange.ts"(){"use strict";ait()}});function lke(e,t,r){let i=cke(e,t,r);if(i!=="")return i;let o=AR(t);return o&32?dl(t,231)?"local class":"class":o&384?"enum":o&524288?"type":o&64?"interface":o&262144?"type parameter":o&8?"enum member":o&2097152?"alias":o&1536?"module":i}function cke(e,t,r){let i=e.getRootSymbols(t);if(i.length===1&&Ha(i).flags&8192&&e.getTypeOfSymbolAtLocation(t,r).getNonNullableType().getCallSignatures().length!==0)return"method";if(e.isUndefinedSymbol(t))return"var";if(e.isArgumentsSymbol(t))return"local var";if(r.kind===110&&bt(r)||FA(r))return"parameter";let o=AR(t);if(o&3)return mX(t)?"parameter":t.valueDeclaration&&tR(t.valueDeclaration)?"const":t.valueDeclaration&&xL(t.valueDeclaration)?"using":t.valueDeclaration&&IL(t.valueDeclaration)?"await using":Ke(t.declarations,U6)?"let":pke(t)?"local var":"var";if(o&16)return pke(t)?"local function":"function";if(o&32768)return"getter";if(o&65536)return"setter";if(o&8192)return"method";if(o&16384)return"constructor";if(o&131072)return"index";if(o&4){if(o&33554432&&t.links.checkFlags&6){let s=Ke(e.getRootSymbols(t),l=>{if(l.getFlags()&98311)return"property"});return s||(e.getTypeOfSymbolAtLocation(t,r).getCallSignatures().length?"method":"property")}return"property"}return""}function uke(e){if(e.declarations&&e.declarations.length){let[t,...r]=e.declarations,i=De(r)&&RW(t)&&Et(r,s=>!RW(s))?65536:0,o=aP(t,i);if(o)return o.split(",")}return[]}function lit(e,t){if(!t)return"";let r=new Set(uke(t));if(t.flags&2097152){let i=e.getAliasedSymbol(t);i!==t&&Ke(uke(i),o=>{r.add(o)})}return t.flags&16777216&&r.add("optional"),r.size>0?Vo(r.values()).join(","):""}function dke(e,t,r,i,o,s,l,u){var p;let g=[],m=[],b=[],T=AR(t),I=l&1?cke(e,t,o):"",R=!1,M=o.kind===110&&n3(o)||FA(o),N,O,H=!1;if(o.kind===110&&!M)return{displayParts:[Ep(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(I!==""||T&32||T&2097152){if(I==="getter"||I==="setter"){let fe=vn(t.declarations,Ne=>Ne.name===o);if(fe)switch(fe.kind){case 177:I="getter";break;case 178:I="setter";break;case 172:I="accessor";break;default:C.assertNever(fe)}else I="property"}let Y;if(s??(s=M?e.getTypeAtLocation(o):e.getTypeOfSymbolAtLocation(t,o)),o.parent&&o.parent.kind===211){let fe=o.parent.name;(fe===o||fe&&fe.getFullWidth()===0)&&(o=o.parent)}let oe;if(T_(o)?oe=o:(wK(o)||iP(o)||o.parent&&(sd(o.parent)||q1(o.parent))&&ea(t.valueDeclaration))&&(oe=o.parent),oe){Y=e.getResolvedSignature(oe);let fe=oe.kind===214||la(oe)&&oe.expression.kind===108,Ne=fe?s.getConstructSignatures():s.getCallSignatures();if(Y&&!wr(Ne,Y.target)&&!wr(Ne,Y)&&(Y=Ne.length?Ne[0]:void 0),Y){switch(fe&&T&32?(I="constructor",ne(s.symbol,I)):T&2097152?(I="alias",he(I),g.push(kl()),fe&&(Y.flags&4&&(g.push(Ep(128)),g.push(kl())),g.push(Ep(105)),g.push(kl())),G(t)):ne(t,I),I){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":g.push(Yu(59)),g.push(kl()),!(Wr(s)&16)&&s.symbol&&(Jr(g,dP(e,s.symbol,i,void 0,5)),g.push(E2())),fe&&(Y.flags&4&&(g.push(Ep(128)),g.push(kl())),g.push(Ep(105)),g.push(kl())),ye(Y,Ne,262144);break;default:ye(Y,Ne)}R=!0,H=Ne.length>1}}else if(jK(o)&&!(T&98304)||o.kind===137&&o.parent.kind===176){let fe=o.parent;if(t.declarations&&vn(t.declarations,me=>me===(o.kind===137?fe.parent:fe))){let me=fe.kind===176?s.getNonNullableType().getConstructSignatures():s.getNonNullableType().getCallSignatures();e.isImplementationOfOverload(fe)?Y=me[0]:Y=e.getSignatureFromDeclaration(fe),fe.kind===176?(I="constructor",ne(s.symbol,I)):ne(fe.kind===179&&!(s.symbol.flags&2048||s.symbol.flags&4096)?s.symbol:t,I),Y&&ye(Y,me),R=!0,H=me.length>1}}}if(T&32&&!R&&!M&&(V(),dl(t,231)?he("local class"):g.push(Ep(86)),g.push(kl()),G(t),$(t,r)),T&64&&l&2&&(Z(),g.push(Ep(120)),g.push(kl()),G(t),$(t,r)),T&524288&&l&2&&(Z(),g.push(Ep(156)),g.push(kl()),G(t),$(t,r),g.push(kl()),g.push(uP(64)),g.push(kl()),Jr(g,pO(e,o.parent&&kg(o.parent)?e.getTypeAtLocation(o.parent):e.getDeclaredTypeOfSymbol(t),i,8388608))),T&384&&(Z(),Et(t.declarations,Y=>v0(Y)&&x1(Y))&&(g.push(Ep(87)),g.push(kl())),g.push(Ep(94)),g.push(kl()),G(t)),T&1536&&!M){Z();let Y=dl(t,267),oe=Y&&Y.name&&Y.name.kind===80;g.push(Ep(oe?145:144)),g.push(kl()),G(t)}if(T&262144&&l&2)if(Z(),g.push(Yu(21)),g.push(sf("type parameter")),g.push(Yu(22)),g.push(kl()),G(t),t.parent)ue(),G(t.parent,i),$(t.parent,i);else{let Y=dl(t,168);if(Y===void 0)return C.fail();let oe=Y.parent;if(oe)if(ea(oe)){ue();let fe=e.getSignatureFromDeclaration(oe);oe.kind===180?(g.push(Ep(105)),g.push(kl())):oe.kind!==179&&oe.name&&G(oe.symbol),Jr(g,gX(e,fe,r,32))}else Dm(oe)&&(ue(),g.push(Ep(156)),g.push(kl()),G(oe.symbol),$(oe.symbol,r))}if(T&8){I="enum member",ne(t,"enum member");let Y=(p=t.declarations)==null?void 0:p[0];if(Y?.kind===306){let oe=e.getConstantValue(Y);oe!==void 0&&(g.push(kl()),g.push(uP(64)),g.push(kl()),g.push(rp(rie(oe),typeof oe=="number"?7:8)))}}if(t.flags&2097152){if(Z(),!R||m.length===0&&b.length===0){let Y=e.getAliasedSymbol(t);if(Y!==t&&Y.declarations&&Y.declarations.length>0){let oe=Y.declarations[0],fe=Oo(oe);if(fe&&!R){let Ne=B6(oe)&&ei(oe,128),me=t.name!=="default"&&!Ne,ie=dke(e,Y,Vn(oe),oe,fe,s,l,me?t:Y);g.push(...ie.displayParts),g.push(E2()),N=ie.documentation,O=ie.tags}else N=Y.getContextualDocumentationComment(oe,e),O=Y.getJsDocTags(e)}}if(t.declarations)switch(t.declarations[0].kind){case 270:g.push(Ep(95)),g.push(kl()),g.push(Ep(145));break;case 277:g.push(Ep(95)),g.push(kl()),g.push(Ep(t.declarations[0].isExportEquals?64:90));break;case 281:g.push(Ep(95));break;default:g.push(Ep(102))}g.push(kl()),G(t),Ke(t.declarations,Y=>{if(Y.kind===271){let oe=Y;if(l0(oe))g.push(kl()),g.push(uP(64)),g.push(kl()),g.push(Ep(149)),g.push(Yu(21)),g.push(rp(pc(RC(oe)),8)),g.push(Yu(22));else{let fe=e.getSymbolAtLocation(oe.moduleReference);fe&&(g.push(kl()),g.push(uP(64)),g.push(kl()),G(fe,i))}return!0}})}if(!R)if(I!==""){if(s){if(M?(Z(),g.push(Ep(110))):ne(t,I),I==="property"||I==="accessor"||I==="getter"||I==="setter"||I==="JSX attribute"||T&3||I==="local var"||I==="index"||I==="using"||I==="await using"||M){if(g.push(Yu(59)),g.push(kl()),s.symbol&&s.symbol.flags&262144&&I!=="index"){let Y=ob(oe=>{let fe=e.typeParameterToDeclaration(s,i,M_e);K().writeNode(4,fe,Vn(Lo(i)),oe)});Jr(g,Y)}else Jr(g,pO(e,s,i));if(fh(t)&&t.links.target&&fh(t.links.target)&&t.links.target.links.tupleLabelDeclaration){let Y=t.links.target.links.tupleLabelDeclaration;C.assertNode(Y.name,Ve),g.push(kl()),g.push(Yu(21)),g.push(sf(Sr(Y.name))),g.push(Yu(22))}}else if(T&16||T&8192||T&16384||T&131072||T&98304||I==="method"){let Y=s.getNonNullableType().getCallSignatures();Y.length&&(ye(Y[0],Y),H=Y.length>1)}}}else I=lke(e,t,o);if(m.length===0&&!H&&(m=t.getContextualDocumentationComment(i,e)),m.length===0&&T&4&&t.parent&&t.declarations&&Ke(t.parent.declarations,Y=>Y.kind===312))for(let Y of t.declarations){if(!Y.parent||Y.parent.kind!==226)continue;let oe=e.getSymbolAtLocation(Y.parent.right);if(oe&&(m=oe.getDocumentationComment(e),b=oe.getJsDocTags(e),m.length>0))break}if(m.length===0&&Ve(o)&&t.valueDeclaration&&Qa(t.valueDeclaration)){let Y=t.valueDeclaration,oe=Y.parent,fe=Y.propertyName||Y.name;if(Ve(fe)&&om(oe)){let Ne=Zf(fe),me=e.getTypeAtLocation(oe);m=Zt(me.isUnion()?me.types:[me],ie=>{let ve=ie.getProperty(Ne);return ve?ve.getDocumentationComment(e):void 0})||et}}return b.length===0&&!H&&(b=t.getContextualJsDocTags(i,e)),m.length===0&&N&&(m=N),b.length===0&&O&&(b=O),{displayParts:g,documentation:m,symbolKind:I,tags:b.length===0?void 0:b};function K(){return oE()}function Z(){g.length&&g.push(E2()),V()}function V(){u&&(he("alias"),g.push(kl()))}function ue(){g.push(kl()),g.push(Ep(103)),g.push(kl())}function G(Y,oe){let fe;u&&Y===t&&(Y=u),I==="index"&&(fe=e.getIndexInfosOfIndexSymbol(Y));let Ne=[];Y.flags&131072&&fe?(Y.parent&&(Ne=dP(e,Y.parent)),Ne.push(Yu(23)),fe.forEach((me,ie)=>{Ne.push(...pO(e,me.keyType)),ie!==fe.length-1&&(Ne.push(kl()),Ne.push(Yu(52)),Ne.push(kl()))}),Ne.push(Yu(24))):Ne=dP(e,Y,oe||r,void 0,7),Jr(g,Ne),t.flags&16777216&&g.push(Yu(58))}function ne(Y,oe){Z(),oe&&(he(oe),Y&&!Et(Y.declarations,fe=>Bs(fe)||(ws(fe)||Zc(fe))&&!fe.name)&&(g.push(kl()),G(Y)))}function he(Y){switch(Y){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":g.push(_X(Y));return;default:g.push(Yu(21)),g.push(_X(Y)),g.push(Yu(22));return}}function ye(Y,oe,fe=0){Jr(g,gX(e,Y,i,fe|32)),oe.length>1&&(g.push(kl()),g.push(Yu(21)),g.push(uP(40)),g.push(rp((oe.length-1).toString(),7)),g.push(kl()),g.push(sf(oe.length===2?"overload":"overloads")),g.push(Yu(22))),m=Y.getDocumentationComment(e),b=Y.getJsDocTags(),oe.length>1&&m.length===0&&b.length===0&&(m=oe[0].getDocumentationComment(e),b=oe[0].getJsDocTags().filter(Ne=>Ne.name!=="deprecated"))}function $(Y,oe){let fe=ob(Ne=>{let me=e.symbolToTypeParameterDeclarations(Y,oe,M_e);K().writeList(53776,me,Vn(Lo(oe)),Ne)});Jr(g,fe)}}function cit(e,t,r,i,o,s=$S(o),l){return dke(e,t,r,i,o,void 0,s,l)}function pke(e){return e.parent?!1:Ke(e.declarations,t=>{if(t.kind===218)return!0;if(t.kind!==260&&t.kind!==262)return!1;for(let r=t.parent;!D1(r);r=r.parent)if(r.kind===312||r.kind===268)return!1;return!0})}var M_e,uit=A({"src/services/symbolDisplay.ts"(){"use strict";ci(),M_e=70246400}}),ty={};X(ty,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>cit,getSymbolKind:()=>lke,getSymbolModifiers:()=>lit});var dit=A({"src/services/_namespaces/ts.SymbolDisplay.ts"(){"use strict";uit()}});function fke(e){let t=e.__pos;return C.assert(typeof t=="number"),t}function L_e(e,t){C.assert(typeof t=="number"),e.__pos=t}function mke(e){let t=e.__end;return C.assert(typeof t=="number"),t}function k_e(e,t){C.assert(typeof t=="number"),e.__end=t}function _ke(e,t){return La(e,t,!1,!0)}function pit(e,t){let r=t;for(;r0?1:0,T=Wy(WC(e,g)+b,e);return T=_ke(e.text,T),Wy(WC(e,T),e)}function w_e(e,t,r){let{end:i}=t,{trailingTriviaOption:o}=r;if(o===2){let s=Qb(e.text,i);if(s){let l=WC(e,t.end);for(let u of s){if(u.kind===2||WC(e,u.pos)>l)break;if(WC(e,u.end)>l)return La(e.text,u.end,!0,!0)}}}}function W2(e,t,r){var i;let{end:o}=t,{trailingTriviaOption:s}=r;if(s===0)return o;if(s===1){let p=xo(Qb(e.text,o),Kh(e.text,o)),g=(i=p?.[p.length-1])==null?void 0:i.end;return g||o}let l=w_e(e,t,r);if(l)return l;let u=La(e.text,o,!0);return u!==o&&(s===2||Uu(e.text.charCodeAt(u-1)))?u:o}function GQ(e,t){return!!t&&!!e.parent&&(t.kind===28||t.kind===27&&e.parent.kind===210)}function fit(e){return ws(e)||Sc(e)}function mit(e){if(e.kind!==219)return e;let t=e.parent.kind===172?e.parent:e.parent.parent;return t.jsDoc=e.jsDoc,t}function _it(e,t){if(e.kind===t.kind)switch(e.kind){case 348:{let r=e,i=t;return Ve(r.name)&&Ve(i.name)&&r.name.escapedText===i.name.escapedText?k.createJSDocParameterTag(void 0,i.name,!1,i.typeExpression,i.isNameFirst,r.comment):void 0}case 349:return k.createJSDocReturnTag(void 0,t.typeExpression,e.comment);case 351:return k.createJSDocTypeTag(void 0,t.typeExpression,e.comment)}}function O_e(e,t){return La(e.text,iT(e,t,{leadingTriviaOption:1}),!1,!0)}function hit(e,t,r,i){let o=O_e(e,i);if(r===void 0||Af(W2(e,t,{}),o,e))return o;let s=Ac(i.getStart(e),e);if(GQ(t,s)){let l=Ac(t.getStart(e),e);if(GQ(r,l)){let u=La(e.text,s.getEnd(),!0,!0);if(Af(l.getStart(e),s.getStart(e),e))return Uu(e.text.charCodeAt(u-1))?u-1:u;if(Uu(e.text.charCodeAt(u)))return u}}return o}function git(e,t){let r=bs(e,19,t),i=bs(e,20,t);return[r?.end,i?.end]}function VQ(e){return wa(e)?e.properties:e.members}function F_e(e,t){for(let r=t.length-1;r>=0;r--){let{span:i,newText:o}=t[r];e=`${e.substring(0,i.start)}${o}${e.substring(ql(i))}`}return e}function vit(e){return La(e,0)===e.length}function jQ(e){let t=An(e,jQ,yke,yit,jQ),r=Xs(t)?t:Object.create(t);return gh(r,fke(e),mke(e)),r}function yit(e,t,r,i,o){let s=Bn(e,t,r,i,o);if(!s)return s;C.assert(e);let l=s===e?k.createNodeArray(s.slice(0)):s;return gh(l,fke(e),mke(e)),l}function hke(e){let t=0,r=ik(e),i=ie=>{ie&&L_e(ie,t)},o=ie=>{ie&&k_e(ie,t)},s=ie=>{ie&&L_e(ie,t)},l=ie=>{ie&&k_e(ie,t)},u=ie=>{ie&&L_e(ie,t)},p=ie=>{ie&&k_e(ie,t)};function g(ie,ve){if(ve||!vit(ie)){t=r.getTextPos();let Le=0;for(;Lg(ie.charCodeAt(ie.length-Le-1));)Le++;t-=Le}}function m(ie){r.write(ie),g(ie,!1)}function b(ie){r.writeComment(ie)}function T(ie){r.writeKeyword(ie),g(ie,!1)}function I(ie){r.writeOperator(ie),g(ie,!1)}function R(ie){r.writePunctuation(ie),g(ie,!1)}function M(ie){r.writeTrailingSemicolon(ie),g(ie,!1)}function N(ie){r.writeParameter(ie),g(ie,!1)}function O(ie){r.writeProperty(ie),g(ie,!1)}function H(ie){r.writeSpace(ie),g(ie,!1)}function K(ie){r.writeStringLiteral(ie),g(ie,!1)}function Z(ie,ve){r.writeSymbol(ie,ve),g(ie,!1)}function V(ie){r.writeLine(ie)}function ue(){r.increaseIndent()}function G(){r.decreaseIndent()}function ne(){return r.getText()}function he(ie){r.rawWrite(ie),g(ie,!1)}function ye(ie){r.writeLiteral(ie),g(ie,!0)}function $(){return r.getTextPos()}function Y(){return r.getLine()}function oe(){return r.getColumn()}function fe(){return r.getIndent()}function Ne(){return r.isAtStartOfLine()}function me(){r.clear(),t=0}return{onBeforeEmitNode:i,onAfterEmitNode:o,onBeforeEmitNodeArray:s,onAfterEmitNodeArray:l,onBeforeEmitToken:u,onAfterEmitToken:p,write:m,writeComment:b,writeKeyword:T,writeOperator:I,writePunctuation:R,writeTrailingSemicolon:M,writeParameter:N,writeProperty:O,writeSpace:H,writeStringLiteral:K,writeSymbol:Z,writeLine:V,increaseIndent:ue,decreaseIndent:G,getText:ne,rawWrite:he,writeLiteral:ye,getTextPos:$,getLine:Y,getColumn:oe,getIndent:fe,isAtStartOfLine:Ne,hasTrailingComment:()=>r.hasTrailingComment(),hasTrailingWhitespace:()=>r.hasTrailingWhitespace(),clear:me}}function bit(e){let t;for(let g of e.statements)if(Am(g))t=g;else break;let r=0,i=e.text;if(t)return r=t.end,p(),r;let o=d6(i);o!==void 0&&(r=o.length,p());let s=Kh(i,r);if(!s)return r;let l,u;for(let g of s){if(g.kind===3){if(W6(i,g.pos)){l={range:g,pinnedOrTripleSlash:!0};continue}}else if(lj(i,g.pos,g.end)){l={range:g,pinnedOrTripleSlash:!0};continue}if(l){if(l.pinnedOrTripleSlash)break;let m=e.getLineAndCharacterOfPosition(g.pos).line,b=e.getLineAndCharacterOfPosition(l.range.end).line;if(m>=b+2)break}if(e.statements.length){u===void 0&&(u=e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line);let m=e.getLineAndCharacterOfPosition(g.end).line;if(u(e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine",e))(W_e||{}),z_e=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))(z_e||{}),xP={leadingTriviaOption:0,trailingTriviaOption:0},vke=class W0e{constructor(t,r){this.newLineCharacter=t,this.formatContext=r,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(t){return new W0e(Qv(t.host,t.formatContext.options),t.formatContext)}static with(t,r){let i=W0e.fromContext(t);return r(i),i.getChanges()}pushRaw(t,r){C.assertEqual(t.fileName,r.fileName);for(let i of r.textChanges)this.changes.push({kind:3,sourceFile:t,text:i.newText,range:oW(i.span)})}deleteRange(t,r){this.changes.push({kind:0,sourceFile:t,range:r})}delete(t,r){this.deletedNodes.push({sourceFile:t,node:r})}deleteNode(t,r,i={leadingTriviaOption:1}){this.deleteRange(t,t4(t,r,r,i))}deleteNodes(t,r,i={leadingTriviaOption:1},o){for(let s of r){let l=iT(t,s,i,o),u=W2(t,s,i);this.deleteRange(t,{pos:l,end:u}),o=!!w_e(t,s,i)}}deleteModifier(t,r){this.deleteRange(t,{pos:r.getStart(t),end:La(t.text,r.end,!0)})}deleteNodeRange(t,r,i,o={leadingTriviaOption:1}){let s=iT(t,r,o),l=W2(t,i,o);this.deleteRange(t,{pos:s,end:l})}deleteNodeRangeExcludingEnd(t,r,i,o={leadingTriviaOption:1}){let s=iT(t,r,o),l=i===void 0?t.text.length:iT(t,i,o);this.deleteRange(t,{pos:s,end:l})}replaceRange(t,r,i,o={}){this.changes.push({kind:1,sourceFile:t,range:r,options:o,node:i})}replaceNode(t,r,i,o=xP){this.replaceRange(t,t4(t,r,r,o),i,o)}replaceNodeRange(t,r,i,o,s=xP){this.replaceRange(t,t4(t,r,i,s),o,s)}replaceRangeWithNodes(t,r,i,o={}){this.changes.push({kind:2,sourceFile:t,range:r,options:o,nodes:i})}replaceNodeWithNodes(t,r,i,o=xP){this.replaceRangeWithNodes(t,t4(t,r,r,o),i,o)}replaceNodeWithText(t,r,i){this.replaceRangeWithText(t,t4(t,r,r,xP),i)}replaceNodeRangeWithNodes(t,r,i,o,s=xP){this.replaceRangeWithNodes(t,t4(t,r,i,s),o,s)}nodeHasTrailingComment(t,r,i=xP){return!!w_e(t,r,i)}nextCommaToken(t,r){let i=lE(r,r.parent,t);return i&&i.kind===28?i:void 0}replacePropertyAssignment(t,r,i){let o=this.nextCommaToken(t,r)?"":","+this.newLineCharacter;this.replaceNode(t,r,i,{suffix:o})}insertNodeAt(t,r,i,o={}){this.replaceRange(t,Tf(r),i,o)}insertNodesAt(t,r,i,o={}){this.replaceRangeWithNodes(t,Tf(r),i,o)}insertNodeAtTopOfFile(t,r,i){this.insertAtTopOfFile(t,r,i)}insertNodesAtTopOfFile(t,r,i){this.insertAtTopOfFile(t,r,i)}insertAtTopOfFile(t,r,i){let o=bit(t),s={prefix:o===0?void 0:this.newLineCharacter,suffix:(Uu(t.text.charCodeAt(o))?"":this.newLineCharacter)+(i?this.newLineCharacter:"")};Do(r)?this.insertNodesAt(t,o,r,s):this.insertNodeAt(t,o,r,s)}insertNodesAtEndOfFile(t,r,i){this.insertAtEndOfFile(t,r,i)}insertAtEndOfFile(t,r,i){let o=t.end+1,s={prefix:this.newLineCharacter,suffix:this.newLineCharacter+(i?this.newLineCharacter:"")};this.insertNodesAt(t,o,r,s)}insertStatementsInNewFile(t,r,i){this.newFileChanges||(this.newFileChanges=Xp()),this.newFileChanges.add(t,{oldFile:i,statements:r})}insertFirstParameter(t,r,i){let o=Xc(r);o?this.insertNodeBefore(t,o,i):this.insertNodeAt(t,r.pos,i)}insertNodeBefore(t,r,i,o=!1,s={}){this.insertNodeAt(t,iT(t,r,s),i,this.getOptionsForInsertNodeBefore(r,i,o))}insertNodesBefore(t,r,i,o=!1,s={}){this.insertNodesAt(t,iT(t,r,s),i,this.getOptionsForInsertNodeBefore(r,Ha(i),o))}insertModifierAt(t,r,i,o={}){this.insertNodeAt(t,r,k.createToken(i),o)}insertModifierBefore(t,r,i){return this.insertModifierAt(t,i.getStart(t),r,{suffix:" "})}insertCommentBeforeLine(t,r,i,o){let s=Wy(r,t),l=Uue(t.text,s),u=gke(t,l),p=g2(t,u?l:i),g=t.text.slice(s,l),m=`${u?"":this.newLineCharacter}//${o}${this.newLineCharacter}${g}`;this.insertText(t,p.getStart(t),m)}insertJsdocCommentBefore(t,r,i){let o=r.getStart(t);if(r.jsDoc)for(let u of r.jsDoc)this.deleteRange(t,{pos:sm(u.getStart(t),t),end:W2(t,u,{})});let s=_W(t.text,o-1),l=t.text.slice(s,o);this.insertNodeAt(t,o,i,{suffix:this.newLineCharacter+l})}createJSDocText(t,r){let i=Zi(r.jsDoc,s=>wo(s.comment)?k.createJSDocText(s.comment):s.comment),o=ah(r.jsDoc);return o&&Af(o.pos,o.end,t)&&De(i)===0?void 0:k.createNodeArray(Qi(i,k.createJSDocText(` +`)))}replaceJSDocComment(t,r,i){this.insertJsdocCommentBefore(t,mit(r),k.createJSDocComment(this.createJSDocText(t,r),k.createNodeArray(i)))}addJSDocTags(t,r,i){let o=$d(r.jsDoc,l=>l.tags),s=i.filter(l=>!o.some((u,p)=>{let g=_it(u,l);return g&&(o[p]=g),!!g}));this.replaceJSDocComment(t,r,[...o,...s])}filterJSDocTags(t,r,i){this.replaceJSDocComment(t,r,tr($d(r.jsDoc,o=>o.tags),i))}replaceRangeWithText(t,r,i){this.changes.push({kind:3,sourceFile:t,range:r,text:i})}insertText(t,r,i){this.replaceRangeWithText(t,Tf(r),i)}tryInsertTypeAnnotation(t,r,i){let o;if(ea(r)){if(o=bs(r,22,t),!o){if(!Bs(r))return!1;o=Ha(r.parameters)}}else o=(r.kind===260?r.exclamationToken:r.questionToken)??r.name;return this.insertNodeAt(t,o.end,i,{prefix:": "}),!0}tryInsertThisTypeAnnotation(t,r,i){let o=bs(r,21,t).getStart(t)+1,s=r.parameters.length?", ":"";this.insertNodeAt(t,o,i,{prefix:"this: ",suffix:s})}insertTypeParameters(t,r,i){let o=(bs(r,21,t)||Ha(r.parameters)).getStart(t);this.insertNodesAt(t,o,i,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(t,r,i){return Ki(t)||$c(t)?{suffix:i?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:Oi(t)?{suffix:", "}:Co(t)?Co(r)?{suffix:", "}:{}:Na(t)&&Lc(t.parent)||jg(t)?{suffix:", "}:tp(t)?{suffix:","+(i?this.newLineCharacter:" ")}:C.failBadSyntaxKind(t)}insertNodeAtConstructorStart(t,r,i){let o=Xc(r.body.statements);!o||!r.body.multiLine?this.replaceConstructorBody(t,r,[i,...r.body.statements]):this.insertNodeBefore(t,o,i)}insertNodeAtConstructorStartAfterSuperCall(t,r,i){let o=vn(r.body.statements,s=>eu(s)&&gS(s.expression));!o||!r.body.multiLine?this.replaceConstructorBody(t,r,[...r.body.statements,i]):this.insertNodeAfter(t,o,i)}insertNodeAtConstructorEnd(t,r,i){let o=Zs(r.body.statements);!o||!r.body.multiLine?this.replaceConstructorBody(t,r,[...r.body.statements,i]):this.insertNodeAfter(t,o,i)}replaceConstructorBody(t,r,i){this.replaceNode(t,r.body,k.createBlock(i,!0))}insertNodeAtEndOfScope(t,r,i){let o=iT(t,r.getLastToken(),{});this.insertNodeAt(t,o,i,{prefix:Uu(t.text.charCodeAt(r.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})}insertMemberAtStart(t,r,i){this.insertNodeAtStartWorker(t,r,i)}insertNodeAtObjectStart(t,r,i){this.insertNodeAtStartWorker(t,r,i)}insertNodeAtStartWorker(t,r,i){let o=this.guessIndentationFromExistingMembers(t,r)??this.computeIndentationForNewMember(t,r);this.insertNodeAt(t,VQ(r).pos,i,this.getInsertNodeAtStartInsertOptions(t,r,o))}guessIndentationFromExistingMembers(t,r){let i,o=r;for(let s of VQ(r)){if(M3(o,s,t))return;let l=s.getStart(t),u=wc.SmartIndenter.findFirstNonWhitespaceColumn(sm(l,t),l,t,this.formatContext.options);if(i===void 0)i=u;else if(u!==i)return;o=s}return i}computeIndentationForNewMember(t,r){let i=r.getStart(t);return wc.SmartIndenter.findFirstNonWhitespaceColumn(sm(i,t),i,t,this.formatContext.options)+(this.formatContext.options.indentSize??4)}getInsertNodeAtStartInsertOptions(t,r,i){let s=VQ(r).length===0,l=xm(this.classesWithNodesInsertedAtStart,ss(r),{node:r,sourceFile:t}),u=wa(r)&&(!$f(t)||!s),p=wa(r)&&$f(t)&&s&&!l;return{indentation:i,prefix:(p?",":"")+this.newLineCharacter,suffix:u?",":fd(r)&&s?";":""}}insertNodeAfterComma(t,r,i){let o=this.insertNodeAfterWorker(t,this.nextCommaToken(t,r)||r,i);this.insertNodeAt(t,o,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAfter(t,r,i){let o=this.insertNodeAfterWorker(t,r,i);this.insertNodeAt(t,o,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAtEndOfList(t,r,i){this.insertNodeAt(t,r.end,i,{prefix:", "})}insertNodesAfter(t,r,i){let o=this.insertNodeAfterWorker(t,r,Ha(i));this.insertNodesAt(t,o,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAfterWorker(t,r,i){return Eit(r,i)&&t.text.charCodeAt(r.end-1)!==59&&this.replaceRange(t,Tf(r.end),k.createToken(27)),W2(t,r,{})}getInsertNodeAfterOptions(t,r){let i=this.getInsertNodeAfterOptionsWorker(r);return{...i,prefix:r.end===t.end&&Ki(r)?i.prefix?` +${i.prefix}`:` +`:i.prefix}}getInsertNodeAfterOptionsWorker(t){switch(t.kind){case 263:case 267:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 260:case 11:case 80:return{prefix:", "};case 303:return{suffix:","+this.newLineCharacter};case 95:return{prefix:" "};case 169:return{};default:return C.assert(Ki(t)||T6(t)),{suffix:this.newLineCharacter}}}insertName(t,r,i){if(C.assert(!r.name),r.kind===219){let o=bs(r,39,t),s=bs(r,21,t);s?(this.insertNodesAt(t,s.getStart(t),[k.createToken(100),k.createIdentifier(i)],{joiner:" "}),Kg(this,t,o)):(this.insertText(t,Ha(r.parameters).getStart(t),`function ${i}(`),this.replaceRange(t,o,k.createToken(22))),r.body.kind!==241&&(this.insertNodesAt(t,r.body.getStart(t),[k.createToken(19),k.createToken(107)],{joiner:" ",suffix:" "}),this.insertNodesAt(t,r.body.end,[k.createToken(27),k.createToken(20)],{joiner:" "}))}else{let o=bs(r,r.kind===218?100:86,t).end;this.insertNodeAt(t,o,k.createIdentifier(i),{prefix:" "})}}insertExportModifier(t,r){this.insertText(t,r.getStart(t),"export ")}insertImportSpecifierAtIndex(t,r,i,o){let s=i.elements[o-1];s?this.insertNodeInListAfter(t,s,r):this.insertNodeBefore(t,i.elements[0],r,!Af(i.elements[0].getStart(),i.parent.parent.getStart(),t))}insertNodeInListAfter(t,r,i,o=wc.SmartIndenter.getContainingList(r,t)){if(!o){C.fail("node is not a list element");return}let s=Qx(o,r);if(s<0)return;let l=r.getEnd();if(s!==o.length-1){let u=po(t,r.end);if(u&&GQ(r,u)){let p=o[s+1],g=_ke(t.text,p.getFullStart()),m=`${ma(u.kind)}${t.text.substring(u.end,g)}`;this.insertNodesAt(t,g,[i],{suffix:m})}}else{let u=r.getStart(t),p=sm(u,t),g,m=!1;if(o.length===1)g=28;else{let b=Ac(r.pos,t);g=GQ(r,b)?b.kind:28,m=sm(o[s-1].getStart(t),t)!==p}if((pit(t.text,r.end)||!Af(o.pos,o.end,t))&&(m=!0),m){this.replaceRange(t,Tf(l),k.createToken(g));let b=wc.SmartIndenter.findFirstNonWhitespaceColumn(p,u,t,this.formatContext.options),T=La(t.text,l,!0,!1);for(;T!==l&&Uu(t.text.charCodeAt(T-1));)T--;this.replaceRange(t,Tf(T),i,{indentation:b,prefix:this.newLineCharacter})}else this.replaceRange(t,Tf(l),i,{prefix:`${ma(g)} `})}}parenthesizeExpression(t,r){this.replaceRange(t,CU(r),k.createParenthesizedExpression(r))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach(({node:t,sourceFile:r})=>{let[i,o]=git(t,r);if(i!==void 0&&o!==void 0){let s=VQ(t).length===0,l=Af(i,o,r);s&&l&&i!==o-1&&this.deleteRange(r,Tf(i,o-1)),l&&this.insertText(r,o-1,this.newLineCharacter)}})}finishDeleteDeclarations(){let t=new Set;for(let{sourceFile:r,node:i}of this.deletedNodes)this.deletedNodes.some(o=>o.sourceFile===r&&gue(o.node,i))||(Do(i)?this.deleteRange(r,NU(r,i)):B_e.deleteDeclaration(this,t,r,i));t.forEach(r=>{let i=r.getSourceFile(),o=wc.SmartIndenter.getContainingList(r,i);if(r!==Ya(o))return;let s=to(o,l=>!t.has(l),o.length-2);s!==-1&&this.deleteRange(i,{pos:o[s].end,end:O_e(i,o[s+1])})})}getChanges(t){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();let r=UQ.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,t);return this.newFileChanges&&this.newFileChanges.forEach((i,o)=>{r.push(UQ.newFileChanges(o,i,this.newLineCharacter,this.formatContext))}),r}createNewFile(t,r,i){this.insertStatementsInNewFile(r,i,t)}},(e=>{function t(u,p,g,m){return Vi($D(u,b=>b.sourceFile.path),b=>{let T=b[0].sourceFile,I=Iv(b,(M,N)=>M.range.pos-N.range.pos||M.range.end-N.range.end);for(let M=0;M`${JSON.stringify(I[M].range)} and ${JSON.stringify(I[M+1].range)}`);let R=Vi(I,M=>{let N=ib(M.range),O=M.kind===1?Vn(Nl(M.node))??M.sourceFile:M.kind===2?Vn(Nl(M.nodes[0]))??M.sourceFile:M.sourceFile,H=o(M,O,T,p,g,m);if(!(N.length===H.length&&nde(O.text,H,N.start)))return aO(N,H)});return R.length>0?{fileName:T.fileName,textChanges:R}:void 0})}e.getTextChangesFromChanges=t;function r(u,p,g,m){let b=i(K3(u),p,g,m);return{fileName:u,textChanges:[aO(vu(0,0),b)],isNewFile:!0}}e.newFileChanges=r;function i(u,p,g,m){let b=Zi(p,R=>R.statements.map(M=>M===4?"":l(M,R.oldFile,g).text)).join(g),T=rw("any file name",b,{languageVersion:99,jsDocParsingMode:1},!0,u),I=wc.formatDocument(T,m);return F_e(b,I)+g}e.newFileChangesWorker=i;function o(u,p,g,m,b,T){var I;if(u.kind===0)return"";if(u.kind===3)return u.text;let{options:R={},range:{pos:M}}=u,N=K=>s(K,p,g,M,R,m,b,T),O=u.kind===2?u.nodes.map(K=>Px(N(K),m)).join(((I=u.options)==null?void 0:I.joiner)||m):N(u.node),H=R.indentation!==void 0||sm(M,p)===M?O:O.replace(/^\s+/,"");return(R.prefix||"")+H+(!R.suffix||Sl(H,R.suffix)?"":R.suffix)}function s(u,p,g,m,{indentation:b,prefix:T,delta:I},R,M,N){let{node:O,text:H}=l(u,p,R);N&&N(O,H);let K=CW(M,p),Z=b!==void 0?b:wc.SmartIndenter.getIndentation(m,g,K,T===R||sm(m,p)===m);I===void 0&&(I=wc.SmartIndenter.shouldIndentChildNode(K,u)&&K.indentSize||0);let V={text:H,getLineAndCharacterOfPosition(G){return Es(this,G)}},ue=wc.formatNodeGivenIndentation(O,V,p.languageVariant,Z,I,{...M,options:K});return F_e(H,ue)}function l(u,p,g){let m=hke(g),b=yO(g);return x0({newLine:b,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},m).writeNode(4,u,p,m),{text:m.getText(),node:jQ(u)}}e.getNonformattedText=l})(UQ||(UQ={})),yke={...KN,factory:Rk(KN.factory.flags|1,KN.factory.baseFactory)},(e=>{function t(s,l,u,p){switch(p.kind){case 169:{let I=p.parent;Bs(I)&&I.parameters.length===1&&!bs(I,21,u)?s.replaceNodeWithText(u,p,"()"):n4(s,l,u,p);break}case 272:case 271:let g=u.imports.length&&p===Ha(u.imports).parent||p===vn(u.statements,_S);Kg(s,u,p,{leadingTriviaOption:g?0:Op(p)?2:3});break;case 208:let m=p.parent;m.kind===207&&p!==Ya(m.elements)?Kg(s,u,p):n4(s,l,u,p);break;case 260:o(s,l,u,p);break;case 168:n4(s,l,u,p);break;case 276:let T=p.parent;T.elements.length===1?i(s,u,T):n4(s,l,u,p);break;case 274:i(s,u,p);break;case 27:Kg(s,u,p,{trailingTriviaOption:0});break;case 100:Kg(s,u,p,{leadingTriviaOption:0});break;case 263:case 262:Kg(s,u,p,{leadingTriviaOption:Op(p)?2:3});break;default:p.parent?Eh(p.parent)&&p.parent.name===p?r(s,u,p.parent):la(p.parent)&&wr(p.parent.arguments,p)?n4(s,l,u,p):Kg(s,u,p):Kg(s,u,p)}}e.deleteDeclaration=t;function r(s,l,u){if(!u.namedBindings)Kg(s,l,u.parent);else{let p=u.name.getStart(l),g=po(l,u.name.end);if(g&&g.kind===28){let m=La(l.text,g.end,!1,!0);s.deleteRange(l,{pos:p,end:m})}else Kg(s,l,u.name)}}function i(s,l,u){if(u.parent.name){let p=C.checkDefined(po(l,u.pos-1));s.deleteRange(l,{pos:p.getStart(l),end:u.end})}else{let p=p0(u,272);Kg(s,l,p)}}function o(s,l,u,p){let{parent:g}=p;if(g.kind===299){s.deleteNodeRange(u,bs(g,21,u),bs(g,22,u));return}if(g.declarations.length!==1){n4(s,l,u,p);return}let m=g.parent;switch(m.kind){case 250:case 249:s.replaceNode(u,p,k.createObjectLiteralExpression());break;case 248:Kg(s,u,g);break;case 243:Kg(s,u,m,{leadingTriviaOption:Op(m)?2:3});break;default:C.assertNever(m)}}})(B_e||(B_e={}))}}),hr={};X(hr,{ChangeTracker:()=>vke,LeadingTriviaOption:()=>W_e,TrailingTriviaOption:()=>z_e,applyChanges:()=>F_e,assignPositionsToNode:()=>jQ,createWriter:()=>hke,deleteNode:()=>Kg,isThisTypeAnnotatable:()=>fit,isValidLocationToAddComment:()=>gke});var Tit=A({"src/services/_namespaces/ts.textChanges.ts"(){"use strict";Sit()}}),G_e,V_e,Ait=A({"src/services/formatting/formattingContext.ts"(){"use strict";ci(),G_e=(e=>(e[e.FormatDocument=0]="FormatDocument",e[e.FormatSelection=1]="FormatSelection",e[e.FormatOnEnter=2]="FormatOnEnter",e[e.FormatOnSemicolon=3]="FormatOnSemicolon",e[e.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",e[e.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace",e))(G_e||{}),V_e=class{constructor(e,t,r){this.sourceFile=e,this.formattingRequestKind=t,this.options=r}updateContext(e,t,r,i,o){this.currentTokenSpan=C.checkDefined(e),this.currentTokenParent=C.checkDefined(t),this.nextTokenSpan=C.checkDefined(r),this.nextTokenParent=C.checkDefined(i),this.contextNode=C.checkDefined(o),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0}ContextNodeAllOnSameLine(){return this.contextNodeAllOnSameLine===void 0&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine}NextNodeAllOnSameLine(){return this.nextNodeAllOnSameLine===void 0&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine}TokensAreOnSameLine(){if(this.tokensAreOnSameLine===void 0){let e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,t=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===t}return this.tokensAreOnSameLine}ContextNodeBlockIsOnOneLine(){return this.contextNodeBlockIsOnOneLine===void 0&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine}NextNodeBlockIsOnOneLine(){return this.nextNodeBlockIsOnOneLine===void 0&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine}NodeIsOnOneLine(e){let t=this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line,r=this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line;return t===r}BlockIsOnOneLine(e){let t=bs(e,19,this.sourceFile),r=bs(e,20,this.sourceFile);if(t&&r){let i=this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line,o=this.sourceFile.getLineAndCharacterOfPosition(r.getStart(this.sourceFile)).line;return i===o}return!1}}}});function j_e(e,t,r,i,o){let s=t===1?Eke:bke;s.setText(e),s.resetTokenState(r);let l=!0,u,p,g,m,b,T=o({advance:I,readTokenInfo:V,readEOFTokenRange:G,isOnToken:ne,isOnEOF:he,getCurrentLeadingTrivia:()=>u,lastTrailingTriviaWasNewLine:()=>l,skipToEndOf:$,skipToStartOf:Y,getTokenFullStart:()=>b?.token.pos??s.getTokenStart(),getStartPos:()=>b?.token.pos??s.getTokenStart()});return b=void 0,s.setText(void 0),T;function I(){b=void 0,s.getTokenFullStart()!==r?l=!!p&&Ya(p).kind===4:s.scan(),u=void 0,p=void 0;let fe=s.getTokenFullStart();for(;fe(e[e.None=0]="None",e[e.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",e[e.StopProcessingTokenActions=2]="StopProcessingTokenActions",e[e.InsertSpace=4]="InsertSpace",e[e.InsertNewLine=8]="InsertNewLine",e[e.DeleteSpace=16]="DeleteSpace",e[e.DeleteToken=32]="DeleteToken",e[e.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",e[e.StopAction=3]="StopAction",e[e.ModifySpaceAction=28]="ModifySpaceAction",e[e.ModifyTokenAction=96]="ModifyTokenAction",e))(U_e||{}),H_e=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(H_e||{})}});function Ske(){let e=[];for(let ue=0;ue<=165;ue++)ue!==1&&e.push(ue);function t(...ue){return{tokens:e.filter(G=>!ue.some(ne=>ne===G)),isSpecific:!1}}let r={tokens:e,isSpecific:!1},i=RP([...e,3]),o=RP([...e,1]),s=Ake(83,165),l=Ake(30,79),u=[103,104,165,130,142,152],p=[46,47,55,54],g=[9,10,80,21,23,19,110,105],m=[80,21,110,105],b=[80,22,24,105],T=[80,21,110,105],I=[80,22,24,105],R=[2,3],M=[80,...PW],N=i,O=RP([80,32,3,86,95,102]),H=RP([22,3,92,113,98,93,85]),K=[Yr("IgnoreBeforeComment",r,R,k9,1),Yr("IgnoreAfterLineComment",2,r,k9,1),Yr("NotSpaceBeforeColon",r,59,[Yi,w9,Rke],16),Yr("SpaceAfterColon",59,r,[Yi,w9,jit],4),Yr("NoSpaceBeforeQuestionMark",r,58,[Yi,w9,Rke],16),Yr("SpaceAfterQuestionMarkInConditionalOperator",58,r,[Yi,Nit],4),Yr("NoSpaceAfterQuestionMark",58,r,[Yi,Cit],16),Yr("NoSpaceBeforeDot",r,[25,29],[Yi,not],16),Yr("NoSpaceAfterDot",[25,29],r,[Yi],16),Yr("NoSpaceBetweenImportParenInImportType",102,21,[Yi,Git],16),Yr("NoSpaceAfterUnaryPrefixOperator",p,g,[Yi,w9],16),Yr("NoSpaceAfterUnaryPreincrementOperator",46,m,[Yi],16),Yr("NoSpaceAfterUnaryPredecrementOperator",47,T,[Yi],16),Yr("NoSpaceBeforeUnaryPostincrementOperator",b,46,[Yi,jke],16),Yr("NoSpaceBeforeUnaryPostdecrementOperator",I,47,[Yi,jke],16),Yr("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[Yi,sb],4),Yr("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[Yi,sb],4),Yr("SpaceAfterAddWhenFollowedByPreincrement",40,46,[Yi,sb],4),Yr("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[Yi,sb],4),Yr("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[Yi,sb],4),Yr("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[Yi,sb],4),Yr("NoSpaceAfterCloseBrace",20,[28,27],[Yi],16),Yr("NewLineBeforeCloseBraceInBlockContext",i,20,[Cke],8),Yr("SpaceAfterCloseBrace",20,t(22),[Yi,Lit],4),Yr("SpaceBetweenCloseBraceAndElse",20,93,[Yi],4),Yr("SpaceBetweenCloseBraceAndWhile",20,117,[Yi],4),Yr("NoSpaceBetweenEmptyBraceBrackets",19,20,[Yi,wke],16),Yr("SpaceAfterConditionalClosingParen",22,23,[O9],4),Yr("NoSpaceBetweenFunctionKeywordAndStar",100,42,[Mke],16),Yr("SpaceAfterStarInGeneratorDeclaration",42,80,[Mke],4),Yr("SpaceAfterFunctionInFuncDecl",100,r,[oT],4),Yr("NewLineAfterOpenBraceInBlockContext",19,r,[Cke],8),Yr("SpaceAfterGetSetInMember",[139,153],80,[oT],4),Yr("NoSpaceBetweenYieldKeywordAndStar",127,42,[Yi,Vke],16),Yr("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],r,[Yi,Vke],4),Yr("NoSpaceBetweenReturnAndSemicolon",107,27,[Yi],16),Yr("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],r,[Yi],4),Yr("SpaceAfterLetConstInVariableDeclaration",[121,87],r,[Yi,qit],4),Yr("NoSpaceBeforeOpenParenInFuncCall",r,21,[Yi,Oit,Fit],16),Yr("SpaceBeforeBinaryKeywordOperator",r,u,[Yi,sb],4),Yr("SpaceAfterBinaryKeywordOperator",u,r,[Yi,sb],4),Yr("SpaceAfterVoidOperator",116,r,[Yi,$it],4),Yr("SpaceBetweenAsyncAndOpenParen",134,21,[Bit,Yi],4),Yr("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[Yi],4),Yr("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[Yi],16),Yr("SpaceBeforeJsxAttribute",r,80,[Vit,Yi],4),Yr("SpaceBeforeSlashInJsxOpeningElement",r,44,[zke,Yi],4),Yr("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[zke,Yi],16),Yr("NoSpaceBeforeEqualInJsxAttribute",r,64,[Fke,Yi],16),Yr("NoSpaceAfterEqualInJsxAttribute",64,r,[Fke,Yi],16),Yr("NoSpaceBeforeJsxNamespaceColon",80,59,[Wke],16),Yr("NoSpaceAfterJsxNamespaceColon",59,80,[Wke],16),Yr("NoSpaceAfterModuleImport",[144,149],21,[Yi],16),Yr("SpaceAfterCertainTypeScriptKeywords",[128,129,86,138,90,94,95,96,139,119,102,120,144,145,123,125,124,148,153,126,156,161,143,140],r,[Yi],4),Yr("SpaceBeforeCertainTypeScriptKeywords",r,[96,119,161],[Yi],4),Yr("SpaceAfterModuleName",11,19,[Jit],4),Yr("SpaceBeforeArrow",r,39,[Yi],4),Yr("SpaceAfterArrow",39,r,[Yi],4),Yr("NoSpaceAfterEllipsis",26,80,[Yi],16),Yr("NoSpaceAfterOptionalParameters",58,[22,28],[Yi,w9],16),Yr("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[Yi,Kit],16),Yr("NoSpaceBeforeOpenAngularBracket",M,30,[Yi,F9],16),Yr("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[Yi,F9],16),Yr("NoSpaceAfterOpenAngularBracket",30,r,[Yi,F9],16),Yr("NoSpaceBeforeCloseAngularBracket",r,32,[Yi,F9],16),Yr("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[Yi,F9,Mit,Yit],16),Yr("SpaceBeforeAt",[22,80],60,[Yi],4),Yr("NoSpaceAfterAt",60,r,[Yi],16),Yr("SpaceAfterDecorator",r,[128,80,95,90,86,126,125,123,124,139,153,23,42],[Hit],4),Yr("NoSpaceBeforeNonNullAssertionOperator",r,54,[Yi,Qit],16),Yr("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[Yi,Xit],16),Yr("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[Yi],4)],Z=[Yr("SpaceAfterConstructor",137,21,[lf("insertSpaceAfterConstructor"),Yi],4),Yr("NoSpaceAfterConstructor",137,21,[G_("insertSpaceAfterConstructor"),Yi],16),Yr("SpaceAfterComma",28,r,[lf("insertSpaceAfterCommaDelimiter"),Yi,Q_e,Wit,zit],4),Yr("NoSpaceAfterComma",28,r,[G_("insertSpaceAfterCommaDelimiter"),Yi,Q_e],16),Yr("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[lf("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),oT],4),Yr("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[G_("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),oT],16),Yr("SpaceAfterKeywordInControl",s,21,[lf("insertSpaceAfterKeywordsInControlFlowStatements"),O9],4),Yr("NoSpaceAfterKeywordInControl",s,21,[G_("insertSpaceAfterKeywordsInControlFlowStatements"),O9],16),Yr("SpaceAfterOpenParen",21,r,[lf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Yi],4),Yr("SpaceBeforeCloseParen",r,22,[lf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Yi],4),Yr("SpaceBetweenOpenParens",21,21,[lf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Yi],4),Yr("NoSpaceBetweenParens",21,22,[Yi],16),Yr("NoSpaceAfterOpenParen",21,r,[G_("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Yi],16),Yr("NoSpaceBeforeCloseParen",r,22,[G_("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Yi],16),Yr("SpaceAfterOpenBracket",23,r,[lf("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Yi],4),Yr("SpaceBeforeCloseBracket",r,24,[lf("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Yi],4),Yr("NoSpaceBetweenBrackets",23,24,[Yi],16),Yr("NoSpaceAfterOpenBracket",23,r,[G_("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Yi],16),Yr("NoSpaceBeforeCloseBracket",r,24,[G_("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Yi],16),Yr("SpaceAfterOpenBrace",19,r,[xke("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Dke],4),Yr("SpaceBeforeCloseBrace",r,20,[xke("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Dke],4),Yr("NoSpaceBetweenEmptyBraceBrackets",19,20,[Yi,wke],16),Yr("NoSpaceAfterOpenBrace",19,r,[q_e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Yi],16),Yr("NoSpaceBeforeCloseBrace",r,20,[q_e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Yi],16),Yr("SpaceBetweenEmptyBraceBrackets",19,20,[lf("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),Yr("NoSpaceBetweenEmptyBraceBrackets",19,20,[q_e("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),Yi],16),Yr("SpaceAfterTemplateHeadAndMiddle",[16,17],r,[lf("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Oke],4,1),Yr("SpaceBeforeTemplateMiddleAndTail",r,[17,18],[lf("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Yi],4),Yr("NoSpaceAfterTemplateHeadAndMiddle",[16,17],r,[G_("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Oke],16,1),Yr("NoSpaceBeforeTemplateMiddleAndTail",r,[17,18],[G_("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Yi],16),Yr("SpaceAfterOpenBraceInJsxExpression",19,r,[lf("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Yi,qQ],4),Yr("SpaceBeforeCloseBraceInJsxExpression",r,20,[lf("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Yi,qQ],4),Yr("NoSpaceAfterOpenBraceInJsxExpression",19,r,[G_("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Yi,qQ],16),Yr("NoSpaceBeforeCloseBraceInJsxExpression",r,20,[G_("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Yi,qQ],16),Yr("SpaceAfterSemicolonInFor",27,r,[lf("insertSpaceAfterSemicolonInForStatements"),Yi,K_e],4),Yr("NoSpaceAfterSemicolonInFor",27,r,[G_("insertSpaceAfterSemicolonInForStatements"),Yi,K_e],16),Yr("SpaceBeforeBinaryOperator",r,l,[lf("insertSpaceBeforeAndAfterBinaryOperators"),Yi,sb],4),Yr("SpaceAfterBinaryOperator",l,r,[lf("insertSpaceBeforeAndAfterBinaryOperators"),Yi,sb],4),Yr("NoSpaceBeforeBinaryOperator",r,l,[G_("insertSpaceBeforeAndAfterBinaryOperators"),Yi,sb],16),Yr("NoSpaceAfterBinaryOperator",l,r,[G_("insertSpaceBeforeAndAfterBinaryOperators"),Yi,sb],16),Yr("SpaceBeforeOpenParenInFuncDecl",r,21,[lf("insertSpaceBeforeFunctionParenthesis"),Yi,oT],4),Yr("NoSpaceBeforeOpenParenInFuncDecl",r,21,[G_("insertSpaceBeforeFunctionParenthesis"),Yi,oT],16),Yr("NewLineBeforeOpenBraceInControl",H,19,[lf("placeOpenBraceOnNewLineForControlBlocks"),O9,$_e],8,1),Yr("NewLineBeforeOpenBraceInFunction",N,19,[lf("placeOpenBraceOnNewLineForFunctions"),oT,$_e],8,1),Yr("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",O,19,[lf("placeOpenBraceOnNewLineForFunctions"),Lke,$_e],8,1),Yr("SpaceAfterTypeAssertion",32,r,[lf("insertSpaceAfterTypeAssertion"),Yi,ehe],4),Yr("NoSpaceAfterTypeAssertion",32,r,[G_("insertSpaceAfterTypeAssertion"),Yi,ehe],16),Yr("SpaceBeforeTypeAnnotation",r,[58,59],[lf("insertSpaceBeforeTypeAnnotation"),Yi,X_e],4),Yr("NoSpaceBeforeTypeAnnotation",r,[58,59],[G_("insertSpaceBeforeTypeAnnotation"),Yi,X_e],16),Yr("NoOptionalSemicolon",27,o,[Ike("semicolons","remove"),eot],32),Yr("OptionalSemicolon",r,o,[Ike("semicolons","insert"),tot],64)],V=[Yr("NoSpaceBeforeSemicolon",r,27,[Yi],16),Yr("SpaceBeforeOpenBraceInControl",H,19,[J_e("placeOpenBraceOnNewLineForControlBlocks"),O9,Z_e,Y_e],4,1),Yr("SpaceBeforeOpenBraceInFunction",N,19,[J_e("placeOpenBraceOnNewLineForFunctions"),oT,HQ,Z_e,Y_e],4,1),Yr("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",O,19,[J_e("placeOpenBraceOnNewLineForFunctions"),Lke,Z_e,Y_e],4,1),Yr("NoSpaceBeforeComma",r,28,[Yi],16),Yr("NoSpaceBeforeOpenBracket",t(134,84),23,[Yi],16),Yr("NoSpaceAfterCloseBracket",24,r,[Yi,Uit],16),Yr("SpaceAfterSemicolon",27,r,[Yi],4),Yr("SpaceBetweenForAndAwaitKeyword",99,135,[Yi],4),Yr("SpaceBetweenStatements",[22,92,93,84],r,[Yi,Q_e,Rit],4),Yr("SpaceAfterTryCatchFinally",[113,85,98],19,[Yi],4)];return[...K,...Z,...V]}function Yr(e,t,r,i,o,s=0){return{leftTokenRange:Tke(t),rightTokenRange:Tke(r),rule:{debugName:e,context:i,action:o,flags:s}}}function RP(e){return{tokens:e,isSpecific:!0}}function Tke(e){return typeof e=="number"?RP([e]):Do(e)?RP(e):e}function Ake(e,t,r=[]){let i=[];for(let o=e;o<=t;o++)wr(r,o)||i.push(o);return RP(i)}function Ike(e,t){return r=>r.options&&r.options[e]===t}function lf(e){return t=>t.options&&Rs(t.options,e)&&!!t.options[e]}function q_e(e){return t=>t.options&&Rs(t.options,e)&&!t.options[e]}function G_(e){return t=>!t.options||!Rs(t.options,e)||!t.options[e]}function J_e(e){return t=>!t.options||!Rs(t.options,e)||!t.options[e]||t.TokensAreOnSameLine()}function xke(e){return t=>!t.options||!Rs(t.options,e)||!!t.options[e]}function K_e(e){return e.contextNode.kind===248}function Rit(e){return!K_e(e)}function sb(e){switch(e.contextNode.kind){case 226:return e.contextNode.operatorToken.kind!==28;case 227:case 194:case 234:case 281:case 276:case 182:case 192:case 193:case 238:return!0;case 208:case 265:case 271:case 277:case 260:case 169:case 306:case 172:case 171:return e.currentTokenSpan.kind===64||e.nextTokenSpan.kind===64;case 249:case 168:return e.currentTokenSpan.kind===103||e.nextTokenSpan.kind===103||e.currentTokenSpan.kind===64||e.nextTokenSpan.kind===64;case 250:return e.currentTokenSpan.kind===165||e.nextTokenSpan.kind===165}return!1}function w9(e){return!sb(e)}function Rke(e){return!X_e(e)}function X_e(e){let t=e.contextNode.kind;return t===172||t===171||t===169||t===260||xA(t)}function Dit(e){return Jo(e.contextNode)&&e.contextNode.questionToken}function Cit(e){return!Dit(e)}function Nit(e){return e.contextNode.kind===227||e.contextNode.kind===194}function Y_e(e){return e.TokensAreOnSameLine()||HQ(e)}function Dke(e){return e.contextNode.kind===206||e.contextNode.kind===200||Pit(e)}function $_e(e){return HQ(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function Cke(e){return Nke(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function Pit(e){return Nke(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function Nke(e){return Pke(e.contextNode)}function HQ(e){return Pke(e.nextTokenParent)}function Pke(e){if(kke(e))return!0;switch(e.kind){case 241:case 269:case 210:case 268:return!0}return!1}function oT(e){switch(e.contextNode.kind){case 262:case 174:case 173:case 177:case 178:case 179:case 218:case 176:case 219:case 264:return!0}return!1}function Mit(e){return!oT(e)}function Mke(e){return e.contextNode.kind===262||e.contextNode.kind===218}function Lke(e){return kke(e.contextNode)}function kke(e){switch(e.kind){case 263:case 231:case 264:case 266:case 187:case 267:case 278:case 279:case 272:case 275:return!0}return!1}function Lit(e){switch(e.currentTokenParent.kind){case 263:case 267:case 266:case 299:case 268:case 255:return!0;case 241:{let t=e.currentTokenParent.parent;if(!t||t.kind!==219&&t.kind!==218)return!0}}return!1}function O9(e){switch(e.contextNode.kind){case 245:case 255:case 248:case 249:case 250:case 247:case 258:case 246:case 254:case 299:return!0;default:return!1}}function wke(e){return e.contextNode.kind===210}function kit(e){return e.contextNode.kind===213}function wit(e){return e.contextNode.kind===214}function Oit(e){return kit(e)||wit(e)}function Fit(e){return e.currentTokenSpan.kind!==28}function Wit(e){return e.nextTokenSpan.kind!==24}function zit(e){return e.nextTokenSpan.kind!==22}function Bit(e){return e.contextNode.kind===219}function Git(e){return e.contextNode.kind===205}function Yi(e){return e.TokensAreOnSameLine()&&e.contextNode.kind!==12}function Oke(e){return e.contextNode.kind!==12}function Q_e(e){return e.contextNode.kind!==284&&e.contextNode.kind!==288}function qQ(e){return e.contextNode.kind===294||e.contextNode.kind===293}function Vit(e){return e.nextTokenParent.kind===291||e.nextTokenParent.kind===295&&e.nextTokenParent.parent.kind===291}function Fke(e){return e.contextNode.kind===291}function jit(e){return e.nextTokenParent.kind!==295}function Wke(e){return e.nextTokenParent.kind===295}function zke(e){return e.contextNode.kind===285}function Uit(e){return!oT(e)&&!HQ(e)}function Hit(e){return e.TokensAreOnSameLine()&&Sf(e.contextNode)&&Bke(e.currentTokenParent)&&!Bke(e.nextTokenParent)}function Bke(e){for(;e&&bt(e);)e=e.parent;return e&&e.kind===170}function qit(e){return e.currentTokenParent.kind===261&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function Z_e(e){return e.formattingRequestKind!==2}function Jit(e){return e.contextNode.kind===267}function Kit(e){return e.contextNode.kind===187}function Xit(e){return e.contextNode.kind===180}function Gke(e,t){if(e.kind!==30&&e.kind!==32)return!1;switch(t.kind){case 183:case 216:case 265:case 263:case 231:case 264:case 262:case 218:case 219:case 174:case 173:case 179:case 180:case 213:case 214:case 233:return!0;default:return!1}}function F9(e){return Gke(e.currentTokenSpan,e.currentTokenParent)||Gke(e.nextTokenSpan,e.nextTokenParent)}function ehe(e){return e.contextNode.kind===216}function Yit(e){return!ehe(e)}function $it(e){return e.currentTokenSpan.kind===116&&e.currentTokenParent.kind===222}function Vke(e){return e.contextNode.kind===229&&e.contextNode.expression!==void 0}function Qit(e){return e.contextNode.kind===235}function jke(e){return!Zit(e)}function Zit(e){switch(e.contextNode.kind){case 245:case 248:case 249:case 250:case 246:case 247:return!0;default:return!1}}function eot(e){let t=e.nextTokenSpan.kind,r=e.nextTokenSpan.pos;if(hR(t)){let s=e.nextTokenParent===e.currentTokenParent?lE(e.currentTokenParent,zn(e.currentTokenParent,l=>!l.parent),e.sourceFile):e.nextTokenParent.getFirstToken(e.sourceFile);if(!s)return!0;t=s.kind,r=s.getStart(e.sourceFile)}let i=e.sourceFile.getLineAndCharacterOfPosition(e.currentTokenSpan.pos).line,o=e.sourceFile.getLineAndCharacterOfPosition(r).line;return i===o?t===20||t===1:t===240||t===27?!1:e.contextNode.kind===264||e.contextNode.kind===265?!gp(e.currentTokenParent)||!!e.currentTokenParent.type||t!==21:Jo(e.currentTokenParent)?!e.currentTokenParent.initializer:e.currentTokenParent.kind!==248&&e.currentTokenParent.kind!==242&&e.currentTokenParent.kind!==240&&t!==23&&t!==21&&t!==40&&t!==41&&t!==44&&t!==14&&t!==28&&t!==228&&t!==16&&t!==15&&t!==25}function tot(e){return bW(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function not(e){return!zr(e.contextNode)||!hp(e.contextNode.expression)||e.contextNode.expression.getText().includes(".")}var rot=A({"src/services/formatting/rules.ts"(){"use strict";ci(),o4()}});function iot(e,t){return{options:e,getRules:oot(),host:t}}function oot(){return the===void 0&&(the=sot(Ske())),the}function aot(e){let t=0;return e&1&&(t|=28),e&2&&(t|=96),e&28&&(t|=28),e&96&&(t|=96),t}function sot(e){let t=lot(e);return r=>{let i=t[Uke(r.currentTokenSpan.kind,r.nextTokenSpan.kind)];if(i){let o=[],s=0;for(let l of i){let u=~aot(s);l.action&u&&Jn(l.context,p=>p(r))&&(o.push(l),s|=l.action)}if(o.length)return o}}}function lot(e){let t=new Array(JQ*JQ),r=new Array(t.length);for(let i of e){let o=i.leftTokenRange.isSpecific&&i.rightTokenRange.isSpecific;for(let s of i.leftTokenRange.tokens)for(let l of i.rightTokenRange.tokens){let u=Uke(s,l),p=t[u];p===void 0&&(p=t[u]=[]),cot(p,i.rule,o,r,u)}}return t}function Uke(e,t){return C.assert(e<=165&&t<=165,"Must compute formatting context from tokens"),e*JQ+t}function cot(e,t,r,i,o){let s=t.action&3?r?0:DP.StopRulesAny:t.context!==k9?r?DP.ContextRulesSpecific:DP.ContextRulesAny:r?DP.NoContextRulesSpecific:DP.NoContextRulesAny,l=i[o]||0;e.splice(uot(l,s),0,t),i[o]=dot(l,s)}function uot(e,t){let r=0;for(let i=0;i<=t;i+=z2)r+=e&W9,e>>=z2;return r}function dot(e,t){let r=(e>>t&W9)+1;return C.assert((r&W9)===r,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(W9<(e[e.StopRulesSpecific=0]="StopRulesSpecific",e[e.StopRulesAny=z2*1]="StopRulesAny",e[e.ContextRulesSpecific=z2*2]="ContextRulesSpecific",e[e.ContextRulesAny=z2*3]="ContextRulesAny",e[e.NoContextRulesSpecific=z2*4]="NoContextRulesSpecific",e[e.NoContextRulesAny=z2*5]="NoContextRulesAny",e))(DP||{})}});function KQ(e,t,r){let i={pos:e,end:t,kind:r};return C.isDebugging&&Object.defineProperty(i,"__debugKind",{get:()=>C.formatSyntaxKind(r)}),i}function fot(e,t,r){let i=t.getLineAndCharacterOfPosition(e).line;if(i===0)return[];let o=bL(i,t);for(;S_(t.text.charCodeAt(o));)o--;Uu(t.text.charCodeAt(o))&&o--;let s={pos:Wy(i-1,t),end:o+1};return z9(s,t,r,2)}function mot(e,t,r){let i=nhe(e,27,t);return Hke(rhe(i),t,r,3)}function _ot(e,t,r){let i=nhe(e,19,t);if(!i)return[];let o=i.parent,s=rhe(o),l={pos:sm(s.getStart(t),t),end:e};return z9(l,t,r,4)}function hot(e,t,r){let i=nhe(e,20,t);return Hke(rhe(i),t,r,5)}function got(e,t){let r={pos:0,end:e.text.length};return z9(r,e,t,0)}function vot(e,t,r,i){let o={pos:sm(e,r),end:t};return z9(o,r,i,1)}function nhe(e,t,r){let i=Ac(e,r);return i&&i.kind===t&&e===i.getEnd()?i:void 0}function rhe(e){let t=e;for(;t&&t.parent&&t.parent.end===e.end&&!yot(t.parent,t);)t=t.parent;return t}function yot(e,t){switch(e.kind){case 263:case 264:return of(e.members,t);case 267:let r=e.body;return!!r&&r.kind===268&&of(r.statements,t);case 312:case 241:case 268:return of(e.statements,t);case 299:return of(e.block.statements,t)}return!1}function bot(e,t){return r(t);function r(i){let o=Ho(i,s=>UK(s.getStart(t),s.end,e)&&s);if(o){let s=r(o);if(s)return s}return i}}function Eot(e,t){if(!e.length)return o;let r=e.filter(s=>oP(t,s.start,s.start+s.length)).sort((s,l)=>s.start-l.start);if(!r.length)return o;let i=0;return s=>{for(;;){if(i>=r.length)return!1;let l=r[i];if(s.end<=l.start)return!1;if(YF(s.pos,s.end,l.start,l.start+l.length))return!0;i++}};function o(){return!1}}function Sot(e,t,r){let i=e.getStart(r);if(i===t.pos&&e.end===t.end)return i;let o=Ac(t.pos,r);return!o||o.end>=t.pos?e.pos:o.end}function Tot(e,t,r){let i=-1,o;for(;e;){let s=r.getLineAndCharacterOfPosition(e.getStart(r)).line;if(i!==-1&&s!==i)break;if(V_.shouldIndentChildNode(t,e,o,r))return t.indentSize;i=s,o=e,e=e.parent}return 0}function Aot(e,t,r,i,o,s){let l={pos:e.pos,end:e.end};return j_e(t.text,r,l.pos,l.end,u=>qke(l,e,i,o,u,s,1,p=>!1,t))}function Hke(e,t,r,i){if(!e)return[];let o={pos:sm(e.getStart(t),t),end:e.end};return z9(o,t,r,i)}function z9(e,t,r,i){let o=bot(e,t);return j_e(t.text,t.languageVariant,Sot(o,e,t),e.end,s=>qke(e,o,V_.getIndentationForNode(o,e,t,r.options),Tot(o,r.options,t),s,r,i,Eot(t.parseDiagnostics,e),t))}function qke(e,t,r,i,o,{options:s,getRules:l,host:u},p,g,m){var b;let T=new V_e(m,p,s),I,R,M,N,O,H=-1,K=[];if(o.advance(),o.isOnToken()){let Se=m.getLineAndCharacterOfPosition(t.getStart(m)).line,je=Se;Sf(t)&&(je=m.getLineAndCharacterOfPosition(cj(t,m)).line),he(t,t,Se,je,r,i)}let Z=o.getCurrentLeadingTrivia();if(Z){let Se=V_.nodeWillIndentChild(s,t,void 0,m,!1)?r+s.indentSize:r;ye(Z,Se,!0,je=>{Y(je,m.getLineAndCharacterOfPosition(je.pos),t,t,void 0),fe(je.pos,Se,!1)}),s.trimTrailingWhitespace!==!1&&He(Z)}if(R&&o.getTokenFullStart()>=e.end){let Se=o.isOnEOF()?o.readEOFTokenRange():o.isOnToken()?o.readTokenInfo(t).token:void 0;if(Se&&Se.pos===I){let je=((b=Ac(Se.end,m,t))==null?void 0:b.parent)||M;oe(Se,m.getLineAndCharacterOfPosition(Se.pos).line,je,R,N,M,je,void 0)}}return K;function V(Se,je,at,Bt,yt){if(oP(Bt,Se,je)||nO(Bt,Se,je)){if(yt!==-1)return yt}else{let Qe=m.getLineAndCharacterOfPosition(Se).line,gt=sm(Se,m),nn=V_.findFirstNonWhitespaceColumn(gt,Se,m,s);if(Qe!==at||Se===nn){let rn=V_.getBaseIndentation(s);return rn>nn?rn:nn}}return-1}function ue(Se,je,at,Bt,yt,Qe){let gt=V_.shouldIndentChildNode(s,Se)?s.indentSize:0;return Qe===je?{indentation:je===O?H:yt.getIndentation(),delta:Math.min(s.indentSize,yt.getDelta(Se)+gt)}:at===-1?Se.kind===21&&je===O?{indentation:H,delta:yt.getDelta(Se)}:V_.childStartsOnTheSameLineWithElseInIfStatement(Bt,Se,je,m)||V_.childIsUnindentedBranchOfConditionalExpression(Bt,Se,je,m)||V_.argumentStartsOnSameLineAsPreviousArgument(Bt,Se,je,m)?{indentation:yt.getIndentation(),delta:gt}:{indentation:yt.getIndentation()+yt.getDelta(Se),delta:gt}:{indentation:at,delta:gt}}function G(Se){if(Cm(Se)){let je=vn(Se.modifiers,Ia,ri(Se.modifiers,Eu));if(je)return je.kind}switch(Se.kind){case 263:return 86;case 264:return 120;case 262:return 100;case 266:return 266;case 177:return 139;case 178:return 153;case 174:if(Se.asteriskToken)return 42;case 172:case 169:let je=Oo(Se);if(je)return je.kind}}function ne(Se,je,at,Bt){return{getIndentationForComment:(gt,nn,rn)=>{switch(gt){case 20:case 24:case 22:return at+Qe(rn)}return nn!==-1?nn:at},getIndentationForToken:(gt,nn,rn,Nn)=>!Nn&&yt(gt,nn,rn)?at+Qe(rn):at,getIndentation:()=>at,getDelta:Qe,recomputeIndentation:(gt,nn)=>{V_.shouldIndentChildNode(s,nn,Se,m)&&(at+=gt?s.indentSize:-s.indentSize,Bt=V_.shouldIndentChildNode(s,Se)?s.indentSize:0)}};function yt(gt,nn,rn){switch(nn){case 19:case 20:case 22:case 93:case 117:case 60:return!1;case 44:case 32:switch(rn.kind){case 286:case 287:case 285:return!1}break;case 23:case 24:if(rn.kind!==200)return!1;break}return je!==gt&&!(Sf(Se)&&nn===G(Se))}function Qe(gt){return V_.nodeWillIndentChild(s,Se,gt,m,!0)?Bt:0}}function he(Se,je,at,Bt,yt,Qe){if(!oP(e,Se.getStart(m),Se.getEnd()))return;let gt=ne(Se,at,yt,Qe),nn=je;for(Ho(Se,_n=>{rn(_n,-1,Se,gt,at,Bt,!1)},_n=>{Nn(_n,Se,at,gt)});o.isOnToken()&&o.getTokenFullStart()Math.min(Se.end,e.end))break;Xn(_n,Se,gt,Se)}function rn(_n,Qt,Yt,vi,ho,ki,Ro,nr){if(C.assert(!Xs(_n)),Fl(_n)||eie(Yt,_n))return Qt;let qr=_n.getStart(m),xr=m.getLineAndCharacterOfPosition(qr).line,ln=xr;Sf(_n)&&(ln=m.getLineAndCharacterOfPosition(cj(_n,m)).line);let tt=-1;if(Ro&&of(e,Yt)&&(tt=V(qr,_n.end,ho,e,Qt),tt!==-1&&(Qt=tt)),!oP(e,_n.pos,_n.end))return _n.ende.end)return Qt;if(ui.token.end>qr){ui.token.pos>qr&&o.skipToStartOf(_n);break}Xn(ui,Se,vi,Se)}if(!o.isOnToken()||o.getTokenFullStart()>=e.end)return Qt;if(AA(_n)){let ui=o.readTokenInfo(_n);if(_n.kind!==12)return C.assert(ui.token.end===_n.end,"Token end is child end"),Xn(ui,Se,vi,_n),Qt}let zt=_n.kind===170?xr:ki,Rn=ue(_n,xr,tt,Se,vi,zt);return he(_n,nn,xr,ln,Rn.indentation,Rn.delta),nn=Se,nr&&Yt.kind===209&&Qt===-1&&(Qt=Rn.indentation),Qt}function Nn(_n,Qt,Yt,vi){C.assert(E1(_n)),C.assert(!Xs(_n));let ho=Iot(Qt,_n),ki=vi,Ro=Yt;if(!oP(e,_n.pos,_n.end)){_n.end_n.pos)break;if(xr.token.kind===ho){Ro=m.getLineAndCharacterOfPosition(xr.token.pos).line,Xn(xr,Qt,vi,Qt);let ln;if(H!==-1)ln=H;else{let tt=sm(xr.token.pos,m);ln=V_.findFirstNonWhitespaceColumn(tt,xr.token.pos,m,s)}ki=ne(Qt,Yt,ln,s.indentSize)}else Xn(xr,Qt,vi,Qt)}let nr=-1;for(let xr=0;xr<_n.length;xr++){let ln=_n[xr];nr=rn(ln,nr,Se,ki,Ro,Ro,!0,xr===0)}let qr=xot(ho);if(qr!==0&&o.isOnToken()&&o.getTokenFullStart()fe(Rn.pos,zt,!1))}ln!==-1&&tt&&(fe(_n.token.pos,ln,nr===1),O=xr.line,H=ln)}o.advance(),nn=Qt}}function ye(Se,je,at,Bt){for(let yt of Se){let Qe=of(e,yt);switch(yt.kind){case 3:Qe&&ie(yt,je,!at),at=!1;break;case 2:at&&Qe&&Bt(yt),at=!1;break;case 4:at=!0;break}}return at}function $(Se,je,at,Bt){for(let yt of Se)if(iW(yt.kind)&&of(e,yt)){let Qe=m.getLineAndCharacterOfPosition(yt.pos);Y(yt,Qe,je,at,Bt)}}function Y(Se,je,at,Bt,yt){let Qe=g(Se),gt=0;if(!Qe)if(R)gt=oe(Se,je.line,at,R,N,M,Bt,yt);else{let nn=m.getLineAndCharacterOfPosition(e.pos);ve(nn.line,je.line)}return R=Se,I=Se.end,M=at,N=je.line,gt}function oe(Se,je,at,Bt,yt,Qe,gt,nn){T.updateContext(Bt,Qe,Se,at,gt);let rn=l(T),Nn=T.options.trimTrailingWhitespace!==!1,Xn=0;return rn?Gt(rn,_n=>{if(Xn=At(_n,Bt,yt,Se,je),nn)switch(Xn){case 2:at.getStart(m)===Se.pos&&nn.recomputeIndentation(!1,gt);break;case 1:at.getStart(m)===Se.pos&&nn.recomputeIndentation(!0,gt);break;default:C.assert(Xn===0)}Nn=Nn&&!(_n.action&16)&&_n.flags!==1}):Nn=Nn&&Se.kind!==1,je!==yt&&Nn&&ve(yt,je,Bt),Xn}function fe(Se,je,at){let Bt=ihe(je,s);if(at)Me(Se,0,Bt);else{let yt=m.getLineAndCharacterOfPosition(Se),Qe=Wy(yt.line,m);(je!==Ne(Qe,yt.character)||me(Bt,Qe))&&Me(Qe,yt.character,Bt)}}function Ne(Se,je){let at=0;for(let Bt=0;Bt0){let ki=ihe(ho,s);Me(Yt,vi.character,ki)}else Ce(Yt,vi.character)}}function ve(Se,je,at){for(let Bt=Se;BtQe)continue;let gt=Le(yt,Qe);gt!==-1&&(C.assert(gt===yt||!S_(m.text.charCodeAt(gt-1))),Ce(gt,Qe+1-gt))}}function Le(Se,je){let at=je;for(;at>=Se&&S_(m.text.charCodeAt(at));)at--;return at!==je?at+1:-1}function He(Se){let je=R?R.end:e.pos;for(let at of Se)iW(at.kind)&&(jetO(g,t)||t===g.end&&(g.kind===2||t===e.getFullWidth()))}function Iot(e,t){switch(e.kind){case 176:case 262:case 218:case 174:case 173:case 219:case 179:case 180:case 184:case 185:case 177:case 178:if(e.typeParameters===t)return 30;if(e.parameters===t)return 21;break;case 213:case 214:if(e.typeArguments===t)return 30;if(e.arguments===t)return 21;break;case 263:case 231:case 264:case 265:if(e.typeParameters===t)return 30;break;case 183:case 215:case 186:case 233:case 205:if(e.typeArguments===t)return 30;break;case 187:return 19}return 0}function xot(e){switch(e){case 21:return 22;case 30:return 32;case 19:return 20}return 0}function ihe(e,t){if((!XQ||XQ.tabSize!==t.tabSize||XQ.indentSize!==t.indentSize)&&(XQ={tabSize:t.tabSize,indentSize:t.indentSize},r4=i4=void 0),t.convertTabsToSpaces){let i,o=Math.floor(e/t.indentSize),s=e%t.indentSize;return i4||(i4=[]),i4[o]===void 0?(i=lO(" ",t.indentSize*o),i4[o]=i):i=i4[o],s?i+lO(" ",s):i}else{let i=Math.floor(e/t.tabSize),o=e-i*t.tabSize,s;return r4||(r4=[]),r4[i]===void 0?r4[i]=s=lO(" ",i):s=r4[i],o?s+lO(" ",o):s}}var XQ,r4,i4,Rot=A({"src/services/formatting/formatting.ts"(){"use strict";ci(),o4()}}),V_,Dot=A({"src/services/formatting/smartIndenter.ts"(){"use strict";ci(),o4(),(e=>{let t;(ie=>{ie[ie.Unknown=-1]="Unknown"})(t||(t={}));function r(ie,ve,Le,He=!1){if(ie>ve.text.length)return u(Le);if(Le.indentStyle===0)return 0;let Ee=Ac(ie,ve,void 0,!0),Ce=Jke(ve,ie,Ee||null);if(Ce&&Ce.kind===3)return i(ve,ie,Le,Ce);if(!Ee)return u(Le);if($K(Ee.kind)&&Ee.getStart(ve)<=ie&&ie=0),Ee<=Ce)return Y(Wy(Ce,ie),ve,ie,Le);let Me=Wy(Ee,ie),{column:Fe,character:At}=$(Me,ve,ie,Le);return Fe===0?Fe:ie.text.charCodeAt(Me+At)===42?Fe-1:Fe}function o(ie,ve,Le){let He=ve;for(;He>0;){let Ce=ie.text.charCodeAt(He);if(!Lg(Ce))break;He--}let Ee=sm(He,ie);return Y(Ee,He,ie,Le)}function s(ie,ve,Le,He,Ee,Ce){let Me,Fe=Le;for(;Fe;){if(HK(Fe,ve,ie)&&Ne(Ce,Fe,Me,ie,!0)){let Se=R(Fe,ie),je=I(Le,Fe,He,ie),at=je!==0?Ee&&je===2?Ce.indentSize:0:He!==Se.line?Ce.indentSize:0;return p(Fe,Se,void 0,at,ie,!0,Ce)}let At=ne(Fe,ie,Ce,!0);if(At!==-1)return At;Me=Fe,Fe=Fe.parent}return u(Ce)}function l(ie,ve,Le,He){let Ee=Le.getLineAndCharacterOfPosition(ie.getStart(Le));return p(ie,Ee,ve,0,Le,!1,He)}e.getIndentationForNode=l;function u(ie){return ie.baseIndentSize||0}e.getBaseIndentation=u;function p(ie,ve,Le,He,Ee,Ce,Me){var Fe;let At=ie.parent;for(;At;){let Se=!0;if(Le){let yt=ie.getStart(Ee);Se=ytLe.end}let je=g(At,ie,Ee),at=je.line===ve.line||N(At,ie,ve.line,Ee);if(Se){let yt=(Fe=K(ie,Ee))==null?void 0:Fe[0],Qe=!!yt&&R(yt,Ee).line>je.line,gt=ne(ie,Ee,Me,Qe);if(gt!==-1||(gt=b(ie,At,ve,at,Ee,Me),gt!==-1))return gt+He}Ne(Me,At,ie,Ee,Ce)&&!at&&(He+=Me.indentSize);let Bt=M(At,ie,ve.line,Ee);ie=At,At=ie.parent,ve=Bt?Ee.getLineAndCharacterOfPosition(ie.getStart(Ee)):je}return He+u(Me)}function g(ie,ve,Le){let He=K(ve,Le),Ee=He?He.pos:ie.getStart(Le);return Le.getLineAndCharacterOfPosition(Ee)}function m(ie,ve,Le){let He=vue(ie);return He&&He.listItemIndex>0?he(He.list.getChildren(),He.listItemIndex-1,ve,Le):-1}function b(ie,ve,Le,He,Ee,Ce){return(qu(ie)||_L(ie))&&(ve.kind===312||!He)?ye(Le,Ee,Ce):-1}let T;(ie=>{ie[ie.Unknown=0]="Unknown",ie[ie.OpenBrace=1]="OpenBrace",ie[ie.CloseBrace=2]="CloseBrace"})(T||(T={}));function I(ie,ve,Le,He){let Ee=lE(ie,ve,He);if(!Ee)return 0;if(Ee.kind===19)return 1;if(Ee.kind===20){let Ce=R(Ee,He).line;return Le===Ce?2:0}return 0}function R(ie,ve){return ve.getLineAndCharacterOfPosition(ie.getStart(ve))}function M(ie,ve,Le,He){if(!(la(ie)&&wr(ie.arguments,ve)))return!1;let Ee=ie.expression.getEnd();return Es(He,Ee).line===Le}e.isArgumentAndStartLineOverlapsExpressionBeingCalled=M;function N(ie,ve,Le,He){if(ie.kind===245&&ie.elseStatement===ve){let Ee=bs(ie,93,He);return C.assert(Ee!==void 0),R(Ee,He).line===Le}return!1}e.childStartsOnTheSameLineWithElseInIfStatement=N;function O(ie,ve,Le,He){if(BR(ie)&&(ve===ie.whenTrue||ve===ie.whenFalse)){let Ee=Es(He,ie.condition.end).line;if(ve===ie.whenTrue)return Le===Ee;{let Ce=R(ie.whenTrue,He).line,Me=Es(He,ie.whenTrue.end).line;return Ee===Ce&&Me===Le}}return!1}e.childIsUnindentedBranchOfConditionalExpression=O;function H(ie,ve,Le,He){if(T_(ie)){if(!ie.arguments)return!1;let Ee=vn(ie.arguments,At=>At.pos===ve.pos);if(!Ee)return!1;let Ce=ie.arguments.indexOf(Ee);if(Ce===0)return!1;let Me=ie.arguments[Ce-1],Fe=Es(He,Me.getEnd()).line;if(Le===Fe)return!0}return!1}e.argumentStartsOnSameLineAsPreviousArgument=H;function K(ie,ve){return ie.parent&&V(ie.getStart(ve),ie.getEnd(),ie.parent,ve)}e.getContainingList=K;function Z(ie,ve,Le){return ve&&V(ie,ie,ve,Le)}function V(ie,ve,Le,He){switch(Le.kind){case 183:return Ee(Le.typeArguments);case 210:return Ee(Le.properties);case 209:return Ee(Le.elements);case 187:return Ee(Le.members);case 262:case 218:case 219:case 174:case 173:case 179:case 176:case 185:case 180:return Ee(Le.typeParameters)||Ee(Le.parameters);case 177:return Ee(Le.parameters);case 263:case 231:case 264:case 265:case 352:return Ee(Le.typeParameters);case 214:case 213:return Ee(Le.typeArguments)||Ee(Le.arguments);case 261:return Ee(Le.declarations);case 275:case 279:return Ee(Le.elements);case 206:case 207:return Ee(Le.elements)}function Ee(Ce){return Ce&&nO(ue(Le,Ce,He),ie,ve)?Ce:void 0}}function ue(ie,ve,Le){let He=ie.getChildren(Le);for(let Ee=1;Ee=0&&ve=0;Me--){if(ie[Me].kind===28)continue;if(Le.getLineAndCharacterOfPosition(ie[Me].end).line!==Ce.line)return ye(Ce,Le,He);Ce=R(ie[Me],Le)}return-1}function ye(ie,ve,Le){let He=ve.getPositionOfLineAndCharacter(ie.line,0);return Y(He,He+ie.character,ve,Le)}function $(ie,ve,Le,He){let Ee=0,Ce=0;for(let Me=ie;MeV_e,FormattingRequestKind:()=>G_e,RuleAction:()=>U_e,RuleFlags:()=>H_e,SmartIndenter:()=>V_,anyContext:()=>k9,createTextRangeWithKind:()=>KQ,formatDocument:()=>got,formatNodeGivenIndentation:()=>Aot,formatOnClosingCurly:()=>hot,formatOnEnter:()=>fot,formatOnOpeningCurly:()=>_ot,formatOnSemicolon:()=>mot,formatSelection:()=>vot,getAllRules:()=>Ske,getFormatContext:()=>iot,getFormattingScanner:()=>j_e,getIndentationString:()=>ihe,getRangeOfEnclosingComment:()=>Jke});var o4=A({"src/services/_namespaces/ts.formatting.ts"(){"use strict";Ait(),Iit(),xit(),rot(),pot(),Rot(),Dot()}}),ci=A({"src/services/_namespaces/ts.ts"(){"use strict";ia(),Kw(),wUe(),oHe(),cHe(),ERe(),EHe(),SHe(),CHe(),zHe(),BHe(),VHe(),YHe(),$He(),vXe(),yXe(),SXe(),VXe(),UXe(),xa(),n_e(),__e(),bnt(),Int(),Vnt(),HRe(),p2e(),crt(),grt(),xh(),Irt(),Zrt(),sit(),dit(),Tit(),o4()}});function Cot(){return Yke??(Yke=new vm(Te))}function Kke(e,t,r,i,o){let s=t?"DeprecationError: ":"DeprecationWarning: ";return s+=`'${e}' `,s+=i?`has been deprecated since v${i}`:"is deprecated",s+=t?" and can no longer be used.":r?` and will no longer be usable after v${r}.`:".",s+=o?` ${ag(o,[e])}`:"",s}function Not(e,t,r,i){let o=Kke(e,!0,t,r,i);return()=>{throw new TypeError(o)}}function Pot(e,t,r,i){let o=!1;return()=>{Xke&&!o&&(C.log.warn(Kke(e,!1,t,r,i)),o=!0)}}function Mot(e,t={}){let r=typeof t.typeScriptVersion=="string"?new vm(t.typeScriptVersion):t.typeScriptVersion??Cot(),i=typeof t.errorAfter=="string"?new vm(t.errorAfter):t.errorAfter,o=typeof t.warnAfter=="string"?new vm(t.warnAfter):t.warnAfter,s=typeof t.since=="string"?new vm(t.since):t.since??o,l=t.error||i&&r.compareTo(i)>=0,u=!o||r.compareTo(o)>=0;return l?Not(e,i,s,t.message):u?Pot(e,i,s,t.message):$a}function Lot(e,t){return function(){return e(),t.apply(this,arguments)}}function ohe(e,t){let r=Mot(t?.name??C.getFunctionName(e),t);return Lot(r,e)}var Xke,Yke,$ke=A({"src/deprecatedCompat/deprecate.ts"(){"use strict";$Q(),Xke=!0}});function YQ(e,t,r,i){if(Object.defineProperty(s,"name",{...Object.getOwnPropertyDescriptor(s,"name"),value:e}),i)for(let l of Object.keys(i)){let u=+l;!isNaN(u)&&Rs(t,`${u}`)&&(t[u]=ohe(t[u],{...i[u],name:e}))}let o=kot(t,r);return s;function s(...l){let u=o(l),p=u!==void 0?t[u]:void 0;if(typeof p=="function")return p(...l);throw new TypeError("Invalid arguments")}}function kot(e,t){return r=>{for(let i=0;Rs(e,`${i}`)&&Rs(t,`${i}`);i++){let o=t[i];if(o(r))return i}}}function Qke(e){return{overload:t=>({bind:r=>({finish:()=>YQ(e,t,r),deprecate:i=>({finish:()=>YQ(e,t,r,i)})})})}}var wot=A({"src/deprecatedCompat/deprecations.ts"(){"use strict";$Q(),$ke()}}),Oot=A({"src/deprecatedCompat/5.0/identifierProperties.ts"(){"use strict";$Q(),$ke(),Toe(e=>{let t=e.getIdentifierConstructor();Rs(t.prototype,"originalKeywordKind")||Object.defineProperty(t.prototype,"originalKeywordKind",{get:ohe(function(){return n0(this)},{name:"originalKeywordKind",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use 'identifierToKeywordKind(identifier)' instead."})}),Rs(t.prototype,"isInJSDocNamespace")||Object.defineProperty(t.prototype,"isInJSDocNamespace",{get:ohe(function(){return this.flags&4096?!0:void 0},{name:"isInJSDocNamespace",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use '.parent' or the surrounding context to determine this instead."})})})}}),$Q=A({"src/deprecatedCompat/_namespaces/ts.ts"(){"use strict";ia(),wot(),Oot()}}),Fot=A({"src/typingsInstallerCore/_namespaces/ts.ts"(){"use strict";ia(),Kw(),she()}});function Zke(e,t,r,i){try{let o=t2(t,Zr(e,"index.d.ts"),{moduleResolution:2},r);return o.resolvedModule&&o.resolvedModule.resolvedFileName}catch(o){i.isEnabled()&&i.writeLine(`Failed to resolve ${t} in folder '${e}': ${o.message}`);return}}function Wot(e,t,r,i){let o=!1;for(let s=r.length;s>0;){let l=ewe(e,t,r,s);s=l.remaining,o=i(l.command)||o}return o}function ewe(e,t,r,i){let o=r.length-i,s,l=i;for(;s=`${e} install --ignore-scripts ${(l===r.length?r:r.slice(o,o+l)).join(" ")} --save-dev --user-agent="typesInstaller/${t}"`,!(s.length<8e3);)l=l-Math.floor(l/2);return{command:s,remaining:i-l}}function twe(e){return`@types/${e}@ts${_e}`}var nwe,rwe,zot=A({"src/typingsInstallerCore/typingsInstaller.ts"(){"use strict";Fot(),she(),nwe={isEnabled:()=>!1,writeLine:$a},rwe=class{constructor(e,t,r,i,o,s=nwe){this.installTypingHost=e,this.globalCachePath=t,this.safeListPath=r,this.typesMapLocation=i,this.throttleLimit=o,this.log=s,this.packageNameToTypingLocation=new Map,this.missingTypingsSet=new Set,this.knownCachesSet=new Set,this.projectWatchers=new Map,this.pendingRunRequests=[],this.installRunCount=1,this.inFlightRequestCount=0,this.latestDistTag="latest",this.log.isEnabled()&&this.log.writeLine(`Global cache location '${t}', safe file path '${r}', types map path ${i}`),this.processCacheLocation(this.globalCachePath)}handleRequest(e){switch(e.kind){case"discover":this.install(e);break;case"closeProject":this.closeProject(e);break;case"typesRegistry":{let t={};this.typesRegistry.forEach((i,o)=>{t[o]=i});let r={kind:zF,typesRegistry:t};this.sendResponse(r);break}case"installPackage":{this.installPackage(e);break}default:C.assertNever(e)}}closeProject(e){this.closeWatchers(e.projectName)}closeWatchers(e){if(this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}'`),!this.projectWatchers.get(e)){this.log.isEnabled()&&this.log.writeLine(`No watchers are registered for project '${e}'`);return}this.projectWatchers.delete(e),this.sendResponse({kind:rP,projectName:e,files:[]}),this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}' - done.`)}install(e){this.log.isEnabled()&&this.log.writeLine(`Got install request${D0(e)}`),e.cachePath&&(this.log.isEnabled()&&this.log.writeLine(`Request specifies cache path '${e.cachePath}', loading cached information...`),this.processCacheLocation(e.cachePath)),this.safeList===void 0&&this.initializeSafeList();let t=B_.discoverTypings(this.installTypingHost,this.log.isEnabled()?r=>this.log.writeLine(r):void 0,e.fileNames,e.projectRootPath,this.safeList,this.packageNameToTypingLocation,e.typeAcquisition,e.unresolvedImports,this.typesRegistry,e.compilerOptions);this.watchFiles(e.projectName,t.filesToWatch),t.newTypingNames.length?this.installTypings(e,e.cachePath||this.globalCachePath,t.cachedTypingPaths,t.newTypingNames):(this.sendResponse(this.createSetTypings(e,t.cachedTypingPaths)),this.log.isEnabled()&&this.log.writeLine("No new typings were requested as a result of typings discovery"))}installPackage(e){let{fileName:t,packageName:r,projectName:i,projectRootPath:o,id:s}=e,l=Em(li(t),u=>{if(this.installTypingHost.fileExists(Zr(u,"package.json")))return u})||o;if(l)this.installWorker(-1,[r],l,u=>{let p=u?`Package ${r} installed.`:`There was an error installing ${r}.`,g={kind:Jw,projectName:i,id:s,success:u,message:p};this.sendResponse(g)});else{let u={kind:Jw,projectName:i,id:s,success:!1,message:"Could not determine a project root path."};this.sendResponse(u)}}initializeSafeList(){if(this.typesMapLocation){let e=B_.loadTypesMap(this.installTypingHost,this.typesMapLocation);if(e){this.log.writeLine(`Loaded safelist from types map file '${this.typesMapLocation}'`),this.safeList=e;return}this.log.writeLine(`Failed to load safelist from types map file '${this.typesMapLocation}'`)}this.safeList=B_.loadSafeList(this.installTypingHost,this.safeListPath)}processCacheLocation(e){if(this.log.isEnabled()&&this.log.writeLine(`Processing cache location '${e}'`),this.knownCachesSet.has(e)){this.log.isEnabled()&&this.log.writeLine("Cache location was already processed...");return}let t=Zr(e,"package.json"),r=Zr(e,"package-lock.json");if(this.log.isEnabled()&&this.log.writeLine(`Trying to find '${t}'...`),this.installTypingHost.fileExists(t)&&this.installTypingHost.fileExists(r)){let i=JSON.parse(this.installTypingHost.readFile(t)),o=JSON.parse(this.installTypingHost.readFile(r));if(this.log.isEnabled()&&(this.log.writeLine(`Loaded content of '${t}':${D0(i)}`),this.log.writeLine(`Loaded content of '${r}':${D0(o)}`)),i.devDependencies&&o.dependencies)for(let s in i.devDependencies){if(!Rs(o.dependencies,s))continue;let l=rc(s);if(!l)continue;let u=Zke(e,l,this.installTypingHost,this.log);if(!u){this.missingTypingsSet.add(l);continue}let p=this.packageNameToTypingLocation.get(l);if(p){if(p.typingLocation===u)continue;this.log.isEnabled()&&this.log.writeLine(`New typing for package ${l} from '${u}' conflicts with existing typing file '${p}'`)}this.log.isEnabled()&&this.log.writeLine(`Adding entry into typings cache: '${l}' => '${u}'`);let g=C8(o.dependencies,s),m=g&&g.version;if(!m)continue;let b={typingLocation:u,version:new vm(m)};this.packageNameToTypingLocation.set(l,b)}}this.log.isEnabled()&&this.log.writeLine(`Finished processing cache location '${e}'`),this.knownCachesSet.add(e)}filterTypings(e){return Vi(e,t=>{let r=r2(t);if(this.missingTypingsSet.has(r)){this.log.isEnabled()&&this.log.writeLine(`'${t}':: '${r}' is in missingTypingsSet - skipping...`);return}let i=B_.validatePackageName(t);if(i!==B_.NameValidationResult.Ok){this.missingTypingsSet.add(r),this.log.isEnabled()&&this.log.writeLine(B_.renderPackageNameValidationFailure(i,t));return}if(!this.typesRegistry.has(r)){this.log.isEnabled()&&this.log.writeLine(`'${t}':: Entry for package '${r}' does not exist in local types registry - skipping...`);return}if(this.packageNameToTypingLocation.get(r)&&B_.isTypingUpToDate(this.packageNameToTypingLocation.get(r),this.typesRegistry.get(r))){this.log.isEnabled()&&this.log.writeLine(`'${t}':: '${r}' already has an up-to-date typing - skipping...`);return}return r})}ensurePackageDirectoryExists(e){let t=Zr(e,"package.json");this.log.isEnabled()&&this.log.writeLine(`Npm config file: ${t}`),this.installTypingHost.fileExists(t)||(this.log.isEnabled()&&this.log.writeLine(`Npm config file: '${t}' is missing, creating new one...`),this.ensureDirectoryExists(e,this.installTypingHost),this.installTypingHost.writeFile(t,'{ "private": true }'))}installTypings(e,t,r,i){this.log.isEnabled()&&this.log.writeLine(`Installing typings ${JSON.stringify(i)}`);let o=this.filterTypings(i);if(o.length===0){this.log.isEnabled()&&this.log.writeLine("All typings are known to be missing or invalid - no need to install more typings"),this.sendResponse(this.createSetTypings(e,r));return}this.ensurePackageDirectoryExists(t);let s=this.installRunCount;this.installRunCount++,this.sendResponse({kind:BF,eventId:s,typingsInstallerVersion:Te,projectName:e.projectName});let l=o.map(twe);this.installTypingsAsync(s,l,t,u=>{try{if(!u){this.log.isEnabled()&&this.log.writeLine(`install request failed, marking packages as missing to prevent repeated requests: ${JSON.stringify(o)}`);for(let g of o)this.missingTypingsSet.add(g);return}this.log.isEnabled()&&this.log.writeLine(`Installed typings ${JSON.stringify(l)}`);let p=[];for(let g of o){let m=Zke(t,g,this.installTypingHost,this.log);if(!m){this.missingTypingsSet.add(g);continue}let b=this.typesRegistry.get(g),T=new vm(b[`ts${_e}`]||b[this.latestDistTag]),I={typingLocation:m,version:T};this.packageNameToTypingLocation.set(g,I),p.push(m)}this.log.isEnabled()&&this.log.writeLine(`Installed typing files ${JSON.stringify(p)}`),this.sendResponse(this.createSetTypings(e,r.concat(p)))}finally{let p={kind:GF,eventId:s,projectName:e.projectName,packagesToInstall:l,installSuccess:u,typingsInstallerVersion:Te};this.sendResponse(p)}})}ensureDirectoryExists(e,t){let r=li(e);t.directoryExists(r)||this.ensureDirectoryExists(r,t),t.directoryExists(e)||t.createDirectory(e)}watchFiles(e,t){if(!t.length){this.closeWatchers(e);return}let r=this.projectWatchers.get(e),i=new Set(t);!r||mh(i,o=>!r.has(o))||mh(r,o=>!i.has(o))?(this.projectWatchers.set(e,i),this.sendResponse({kind:rP,projectName:e,files:t})):this.sendResponse({kind:rP,projectName:e,files:void 0})}createSetTypings(e,t){return{projectName:e.projectName,typeAcquisition:e.typeAcquisition,compilerOptions:e.compilerOptions,typings:t,unresolvedImports:e.unresolvedImports,kind:Hw}}installTypingsAsync(e,t,r,i){this.pendingRunRequests.unshift({requestId:e,packageNames:t,cwd:r,onRequestCompleted:i}),this.executeWithThrottling()}executeWithThrottling(){for(;this.inFlightRequestCount{this.inFlightRequestCount--,e.onRequestCompleted(t),this.executeWithThrottling()})}}}}}),ahe={};X(ahe,{TypingsInstaller:()=>rwe,getNpmCommandForInstallation:()=>ewe,installNpmPackages:()=>Wot,typingsName:()=>twe});var Bot=A({"src/typingsInstallerCore/_namespaces/ts.server.typingsInstaller.ts"(){"use strict";zot()}}),she=A({"src/typingsInstallerCore/_namespaces/ts.server.ts"(){"use strict";VF(),Bot()}}),Got=A({"src/server/types.ts"(){"use strict"}});function lhe(e,t,r,i){return{projectName:e.getProjectName(),fileNames:e.getFileNames(!0,!0).concat(e.getExcludedFiles()),compilerOptions:e.getCompilationSettings(),typeAcquisition:t,unresolvedImports:r,projectRootPath:e.getCurrentDirectory(),cachePath:i,kind:"discover"}}function pl(e){return va(e)}function a4(e,t,r){let i=dp(e)?e:bo(e,t);return r(i)}function iwe(e){return e}function owe(){let e=new Map;return{get(t){return e.get(t)},set(t,r){e.set(t,r)},contains(t){return e.has(t)},remove(t){e.delete(t)}}}function che(e){return/dev\/null\/inferredProject\d+\*/.test(e)}function uhe(e){return`/dev/null/inferredProject${e}*`}function dhe(e){return`/dev/null/autoImportProviderProject${e}*`}function phe(e){return`/dev/null/auxiliaryProject${e}*`}function fhe(){return[]}var QQ,hc,ZQ,ny,Vot=A({"src/server/utilitiesPublic.ts"(){"use strict";lb(),QQ=(e=>(e[e.terse=0]="terse",e[e.normal=1]="normal",e[e.requestTime=2]="requestTime",e[e.verbose=3]="verbose",e))(QQ||{}),hc=fhe(),ZQ=(e=>(e.Err="Err",e.Info="Info",e.Perf="Perf",e))(ZQ||{}),(e=>{function t(){throw new Error("No Project.")}e.ThrowNoProject=t;function r(){throw new Error("The project's language service is disabled.")}e.ThrowProjectLanguageServiceDisabled=r;function i(o,s){throw new Error(`Project '${s.getProjectName()}' does not contain document '${o}'`)}e.ThrowProjectDoesNotContainDocument=i})(ny||(ny={}))}});function eZ(e){let t=rc(e);return t==="tsconfig.json"||t==="jsconfig.json"?t:void 0}function awe(e,t,r){if(!e||e.length===0)return;if(e[0]===t){e.splice(0,1);return}let i=xv(e,t,el,r);i>=0&&e.splice(i,1)}var tZ,nZ,jot=A({"src/server/utilities.ts"(){"use strict";lb(),sT(),tZ=class EWe{constructor(t,r){this.host=t,this.pendingTimeouts=new Map,this.logger=r.hasLevel(3)?r:void 0}schedule(t,r,i){let o=this.pendingTimeouts.get(t);o&&this.host.clearTimeout(o),this.pendingTimeouts.set(t,this.host.setTimeout(EWe.run,r,t,this,i)),this.logger&&this.logger.info(`Scheduled: ${t}${o?", Cancelled earlier one":""}`)}cancel(t){let r=this.pendingTimeouts.get(t);return r?(this.host.clearTimeout(r),this.pendingTimeouts.delete(t)):!1}static run(t,r,i){var o,s;(o=rd)==null||o.logStartScheduledOperation(t),r.pendingTimeouts.delete(t),r.logger&&r.logger.info(`Running: ${t}`),i(),(s=rd)==null||s.logStopScheduledOperation()}},nZ=class SWe{constructor(t,r,i){this.host=t,this.delay=r,this.logger=i}scheduleCollect(){!this.host.gc||this.timerId!==void 0||(this.timerId=this.host.setTimeout(SWe.run,this.delay,this))}static run(t){var r,i;t.timerId=void 0,(r=rd)==null||r.logStartScheduledOperation("GC collect");let o=t.logger.hasLevel(2),s=o&&t.host.getMemoryUsage();if(t.host.gc(),o){let l=t.host.getMemoryUsage();t.logger.perftrc(`GC::before ${s}, after ${l}`)}(i=rd)==null||i.logStopScheduledOperation()}}}}),rZ,mhe,_he,hhe,ghe,vhe,yhe,bhe,Ehe,She,The,Ahe,Ihe,xhe,Rhe=A({"src/server/protocol.ts"(){"use strict";rZ=(e=>(e.JsxClosingTag="jsxClosingTag",e.LinkedEditingRange="linkedEditingRange",e.Brace="brace",e.BraceFull="brace-full",e.BraceCompletion="braceCompletion",e.GetSpanOfEnclosingComment="getSpanOfEnclosingComment",e.Change="change",e.Close="close",e.Completions="completions",e.CompletionInfo="completionInfo",e.CompletionsFull="completions-full",e.CompletionDetails="completionEntryDetails",e.CompletionDetailsFull="completionEntryDetails-full",e.CompileOnSaveAffectedFileList="compileOnSaveAffectedFileList",e.CompileOnSaveEmitFile="compileOnSaveEmitFile",e.Configure="configure",e.Definition="definition",e.DefinitionFull="definition-full",e.DefinitionAndBoundSpan="definitionAndBoundSpan",e.DefinitionAndBoundSpanFull="definitionAndBoundSpan-full",e.Implementation="implementation",e.ImplementationFull="implementation-full",e.EmitOutput="emit-output",e.Exit="exit",e.FileReferences="fileReferences",e.FileReferencesFull="fileReferences-full",e.Format="format",e.Formatonkey="formatonkey",e.FormatFull="format-full",e.FormatonkeyFull="formatonkey-full",e.FormatRangeFull="formatRange-full",e.Geterr="geterr",e.GeterrForProject="geterrForProject",e.SemanticDiagnosticsSync="semanticDiagnosticsSync",e.SyntacticDiagnosticsSync="syntacticDiagnosticsSync",e.SuggestionDiagnosticsSync="suggestionDiagnosticsSync",e.NavBar="navbar",e.NavBarFull="navbar-full",e.Navto="navto",e.NavtoFull="navto-full",e.NavTree="navtree",e.NavTreeFull="navtree-full",e.DocumentHighlights="documentHighlights",e.DocumentHighlightsFull="documentHighlights-full",e.Open="open",e.Quickinfo="quickinfo",e.QuickinfoFull="quickinfo-full",e.References="references",e.ReferencesFull="references-full",e.Reload="reload",e.Rename="rename",e.RenameInfoFull="rename-full",e.RenameLocationsFull="renameLocations-full",e.Saveto="saveto",e.SignatureHelp="signatureHelp",e.SignatureHelpFull="signatureHelp-full",e.FindSourceDefinition="findSourceDefinition",e.Status="status",e.TypeDefinition="typeDefinition",e.ProjectInfo="projectInfo",e.ReloadProjects="reloadProjects",e.Unknown="unknown",e.OpenExternalProject="openExternalProject",e.OpenExternalProjects="openExternalProjects",e.CloseExternalProject="closeExternalProject",e.SynchronizeProjectList="synchronizeProjectList",e.ApplyChangedToOpenFiles="applyChangedToOpenFiles",e.UpdateOpen="updateOpen",e.EncodedSyntacticClassificationsFull="encodedSyntacticClassifications-full",e.EncodedSemanticClassificationsFull="encodedSemanticClassifications-full",e.Cleanup="cleanup",e.GetOutliningSpans="getOutliningSpans",e.GetOutliningSpansFull="outliningSpans",e.TodoComments="todoComments",e.Indentation="indentation",e.DocCommentTemplate="docCommentTemplate",e.CompilerOptionsDiagnosticsFull="compilerOptionsDiagnostics-full",e.NameOrDottedNameSpan="nameOrDottedNameSpan",e.BreakpointStatement="breakpointStatement",e.CompilerOptionsForInferredProjects="compilerOptionsForInferredProjects",e.GetCodeFixes="getCodeFixes",e.GetCodeFixesFull="getCodeFixes-full",e.GetCombinedCodeFix="getCombinedCodeFix",e.GetCombinedCodeFixFull="getCombinedCodeFix-full",e.ApplyCodeActionCommand="applyCodeActionCommand",e.GetSupportedCodeFixes="getSupportedCodeFixes",e.GetApplicableRefactors="getApplicableRefactors",e.GetEditsForRefactor="getEditsForRefactor",e.GetMoveToRefactoringFileSuggestions="getMoveToRefactoringFileSuggestions",e.GetEditsForRefactorFull="getEditsForRefactor-full",e.OrganizeImports="organizeImports",e.OrganizeImportsFull="organizeImports-full",e.GetEditsForFileRename="getEditsForFileRename",e.GetEditsForFileRenameFull="getEditsForFileRename-full",e.ConfigurePlugin="configurePlugin",e.SelectionRange="selectionRange",e.SelectionRangeFull="selectionRange-full",e.ToggleLineComment="toggleLineComment",e.ToggleLineCommentFull="toggleLineComment-full",e.ToggleMultilineComment="toggleMultilineComment",e.ToggleMultilineCommentFull="toggleMultilineComment-full",e.CommentSelection="commentSelection",e.CommentSelectionFull="commentSelection-full",e.UncommentSelection="uncommentSelection",e.UncommentSelectionFull="uncommentSelection-full",e.PrepareCallHierarchy="prepareCallHierarchy",e.ProvideCallHierarchyIncomingCalls="provideCallHierarchyIncomingCalls",e.ProvideCallHierarchyOutgoingCalls="provideCallHierarchyOutgoingCalls",e.ProvideInlayHints="provideInlayHints",e.WatchChange="watchChange",e))(rZ||{}),mhe=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(mhe||{}),_he=(e=>(e.FixedPollingInterval="FixedPollingInterval",e.PriorityPollingInterval="PriorityPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e.UseFsEvents="UseFsEvents",e.UseFsEventsOnParentDirectory="UseFsEventsOnParentDirectory",e))(_he||{}),hhe=(e=>(e.UseFsEvents="UseFsEvents",e.FixedPollingInterval="FixedPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e))(hhe||{}),ghe=(e=>(e.FixedInterval="FixedInterval",e.PriorityInterval="PriorityInterval",e.DynamicPriority="DynamicPriority",e.FixedChunkSize="FixedChunkSize",e))(ghe||{}),vhe=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(vhe||{}),yhe=(e=>(e.None="None",e.Block="Block",e.Smart="Smart",e))(yhe||{}),bhe=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(bhe||{}),Ehe=(e=>(e.None="None",e.Preserve="Preserve",e.ReactNative="ReactNative",e.React="React",e))(Ehe||{}),She=(e=>(e.None="None",e.CommonJS="CommonJS",e.AMD="AMD",e.UMD="UMD",e.System="System",e.ES6="ES6",e.ES2015="ES2015",e.ESNext="ESNext",e.Node16="Node16",e.NodeNext="NodeNext",e.Preserve="Preserve",e))(She||{}),The=(e=>(e.Classic="Classic",e.Node="Node",e.Node10="Node10",e.Node16="Node16",e.NodeNext="NodeNext",e.Bundler="Bundler",e))(The||{}),Ahe=(e=>(e.Crlf="Crlf",e.Lf="Lf",e))(Ahe||{}),Ihe=(e=>(e.ES3="ES3",e.ES5="ES5",e.ES6="ES6",e.ES2015="ES2015",e.ES2016="ES2016",e.ES2017="ES2017",e.ES2018="ES2018",e.ES2019="ES2019",e.ES2020="ES2020",e.ES2021="ES2021",e.ES2022="ES2022",e.ESNext="ESNext",e))(Ihe||{}),xhe=(e=>(e[e.comment=1]="comment",e[e.identifier=2]="identifier",e[e.keyword=3]="keyword",e[e.numericLiteral=4]="numericLiteral",e[e.operator=5]="operator",e[e.stringLiteral=6]="stringLiteral",e[e.regularExpressionLiteral=7]="regularExpressionLiteral",e[e.whiteSpace=8]="whiteSpace",e[e.text=9]="text",e[e.punctuation=10]="punctuation",e[e.className=11]="className",e[e.enumName=12]="enumName",e[e.interfaceName=13]="interfaceName",e[e.moduleName=14]="moduleName",e[e.typeParameterName=15]="typeParameterName",e[e.typeAliasName=16]="typeAliasName",e[e.parameterName=17]="parameterName",e[e.docCommentTagName=18]="docCommentTagName",e[e.jsxOpenTagName=19]="jsxOpenTagName",e[e.jsxCloseTagName=20]="jsxCloseTagName",e[e.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",e[e.jsxAttribute=22]="jsxAttribute",e[e.jsxText=23]="jsxText",e[e.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",e[e.bigintLiteral=25]="bigintLiteral",e))(xhe||{})}}),Dhe={};X(Dhe,{ClassificationType:()=>xhe,CommandTypes:()=>rZ,CompletionTriggerKind:()=>vhe,IndentStyle:()=>yhe,JsxEmit:()=>Ehe,ModuleKind:()=>She,ModuleResolutionKind:()=>The,NewLineKind:()=>Ahe,OrganizeImportsMode:()=>mhe,PollingWatchKind:()=>ghe,ScriptTarget:()=>Ihe,SemicolonPreference:()=>bhe,WatchDirectoryKind:()=>hhe,WatchFileKind:()=>_he});var Uot=A({"src/server/_namespaces/ts.server.protocol.ts"(){"use strict";Rhe()}});function s4(e){return e[0]==="^"||(e.includes("walkThroughSnippet:/")||e.includes("untitled:/"))&&rc(e)[0]==="^"||e.includes(":^")&&!e.includes(il)}function swe(e){return!e||c4(e)?ny.ThrowNoProject():e}function Hot(e){C.assert(typeof e=="number",`Expected position ${e} to be a number.`),C.assert(e>=0,"Expected position to be non-negative.")}function qot(e){C.assert(typeof e.line=="number",`Expected line ${e.line} to be a number.`),C.assert(typeof e.offset=="number",`Expected offset ${e.offset} to be a number.`),C.assert(e.line>0,`Expected line to be non-${e.line===0?"zero":"negative"}`),C.assert(e.offset>0,`Expected offset to be non-${e.offset===0?"zero":"negative"}`)}var iZ,oZ,Jot=A({"src/server/scriptInfo.ts"(){"use strict";lb(),sT(),iZ=class{constructor(e,t,r){this.host=e,this.info=t,this.isOpen=!1,this.ownFileText=!1,this.pendingReloadFromDisk=!1,this.version=r||0}getVersion(){return this.svc?`SVC-${this.version}-${this.svc.getSnapshotVersion()}`:`Text-${this.version}`}hasScriptVersionCache_TestOnly(){return this.svc!==void 0}resetSourceMapInfo(){this.info.sourceFileLike=void 0,this.info.closeSourceMapFileWatcher(),this.info.sourceMapFilePath=void 0,this.info.declarationInfoPath=void 0,this.info.sourceInfos=void 0,this.info.documentPositionMapper=void 0}useText(e){this.svc=void 0,this.text=e,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo(),this.version++}edit(e,t,r){this.switchToScriptVersionCache().edit(e,t-e,r),this.ownFileText=!1,this.text=void 0,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo()}reload(e){return C.assert(e!==void 0),this.pendingReloadFromDisk=!1,!this.text&&this.svc&&(this.text=v2(this.svc.getSnapshot())),this.text!==e?(this.useText(e),this.ownFileText=!1,!0):!1}reloadWithFileText(e){let{text:t,fileSize:r}=e||!this.info.isDynamicOrHasMixedContent()?this.getFileTextAndSize(e):{text:"",fileSize:void 0},i=this.reload(t);return this.fileSize=r,this.ownFileText=!e||e===this.info.fileName,i}scheduleReloadIfNeeded(){return!this.pendingReloadFromDisk&&!this.ownFileText?this.pendingReloadFromDisk=!0:!1}delayReloadFromFileIntoText(){this.pendingReloadFromDisk=!0}getTelemetryFileSize(){return this.fileSize?this.fileSize:this.text?this.text.length:this.svc?this.svc.getSnapshot().getLength():this.getSnapshot().getLength()}getSnapshot(){var e;return((e=this.tryUseScriptVersionCache())==null?void 0:e.getSnapshot())||(this.textSnapshot??(this.textSnapshot=UF.fromString(C.checkDefined(this.text))))}getAbsolutePositionAndLineText(e){let t=this.tryUseScriptVersionCache();if(t)return t.getAbsolutePositionAndLineText(e);let r=this.getLineMap();return e<=r.length?{absolutePosition:r[e-1],lineText:this.text.substring(r[e-1],r[e])}:{absolutePosition:this.text.length,lineText:void 0}}lineToTextSpan(e){let t=this.tryUseScriptVersionCache();if(t)return t.lineToTextSpan(e);let r=this.getLineMap(),i=r[e],o=e+1t===void 0?t=this.host.readFile(r)||"":t;if(!UA(this.info.fileName)){let o=this.host.getFileSize?this.host.getFileSize(r):i().length;if(o>U9)return C.assert(!!this.info.containingProjects.length),this.info.containingProjects[0].projectService.logger.info(`Skipped loading contents of large file ${r} for info ${this.info.fileName}: fileSize: ${o}`),this.info.containingProjects[0].projectService.sendLargeFileReferencedEvent(r,o),{text:"",fileSize:o}}return{text:i()}}switchToScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&(this.svc=rz.fromString(this.getOrLoadText()),this.textSnapshot=void 0,this.version++),this.svc}tryUseScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&this.getOrLoadText(),this.isOpen?(!this.svc&&!this.textSnapshot&&(this.svc=rz.fromString(C.checkDefined(this.text)),this.textSnapshot=void 0),this.svc):this.svc}getOrLoadText(){return(this.text===void 0||this.pendingReloadFromDisk)&&(C.assert(!this.svc||this.pendingReloadFromDisk,"ScriptVersionCache should not be set when reloading from disk"),this.reloadWithFileText()),this.text}getLineMap(){return C.assert(!this.svc,"ScriptVersionCache should not be set"),this.lineMap||(this.lineMap=TA(C.checkDefined(this.text)))}getLineInfo(){let e=this.tryUseScriptVersionCache();if(e)return{getLineCount:()=>e.getLineCount(),getLineText:r=>e.getAbsolutePositionAndLineText(r+1).lineText};let t=this.getLineMap();return Vq(this.text,t)}},oZ=class{constructor(e,t,r,i,o,s){this.host=e,this.fileName=t,this.scriptKind=r,this.hasMixedContent=i,this.path=o,this.containingProjects=[],this.isDynamic=s4(t),this.textStorage=new iZ(e,this,s),(i||this.isDynamic)&&(this.realpath=this.path),this.scriptKind=r||K3(t)}isDynamicOrHasMixedContent(){return this.hasMixedContent||this.isDynamic}isScriptOpen(){return this.textStorage.isOpen}open(e){this.textStorage.isOpen=!0,e!==void 0&&this.textStorage.reload(e)&&this.markContainingProjectsAsDirty()}close(e=!0){this.textStorage.isOpen=!1,e&&this.textStorage.scheduleReloadIfNeeded()&&this.markContainingProjectsAsDirty()}getSnapshot(){return this.textStorage.getSnapshot()}ensureRealPath(){if(this.realpath===void 0&&(this.realpath=this.path,this.host.realpath)){C.assert(!!this.containingProjects.length);let e=this.containingProjects[0],t=this.host.realpath(this.path);t&&(this.realpath=e.toPath(t),this.realpath!==this.path&&e.projectService.realpathToScriptInfos.add(this.realpath,this))}}getRealpathIfDifferent(){return this.realpath&&this.realpath!==this.path?this.realpath:void 0}isSymlink(){return this.realpath&&this.realpath!==this.path}getFormatCodeSettings(){return this.formatSettings}getPreferences(){return this.preferences}attachToProject(e){let t=!this.isAttached(e);return t&&(this.containingProjects.push(e),e.getCompilerOptions().preserveSymlinks||this.ensureRealPath(),e.onFileAddedOrRemoved(this.isSymlink())),t}isAttached(e){switch(this.containingProjects.length){case 0:return!1;case 1:return this.containingProjects[0]===e;case 2:return this.containingProjects[0]===e||this.containingProjects[1]===e;default:return wr(this.containingProjects,e)}}detachFromProject(e){switch(this.containingProjects.length){case 0:return;case 1:this.containingProjects[0]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;case 2:this.containingProjects[0]===e?(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects[0]=this.containingProjects.pop()):this.containingProjects[1]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;default:Mx(this.containingProjects,e)&&e.onFileAddedOrRemoved(this.isSymlink());break}}detachAllProjects(){for(let e of this.containingProjects){k0(e)&&e.getCachedDirectoryStructureHost().addOrDeleteFile(this.fileName,this.path,2);let t=e.getRootFilesMap().get(this.path);e.removeFile(this,!1,!1),e.onFileAddedOrRemoved(this.isSymlink()),t&&!B2(e)&&e.addMissingFileRoot(t.fileName)}Gi(this.containingProjects)}getDefaultProject(){switch(this.containingProjects.length){case 0:return ny.ThrowNoProject();case 1:return swe(this.containingProjects[0]);default:let e,t,r,i,o;for(let s=0;s!e.isOrphan())}isContainedByBackgroundProject(){return Et(this.containingProjects,c4)}lineToTextSpan(e){return this.textStorage.lineToTextSpan(e)}lineOffsetToPosition(e,t,r){return this.textStorage.lineOffsetToPosition(e,t,r)}positionToLineOffset(e){Hot(e);let t=this.textStorage.positionToLineOffset(e);return qot(t),t}isJavaScript(){return this.scriptKind===1||this.scriptKind===2}closeSourceMapFileWatcher(){this.sourceMapFilePath&&!wo(this.sourceMapFilePath)&&(Cf(this.sourceMapFilePath),this.sourceMapFilePath=void 0)}}}});function lwe(e,t){if(e===t||(e||hc).length===0&&(t||hc).length===0)return!0;let r=new Map,i=0;for(let o of e)r.get(o)!==!0&&(r.set(o,!0),i++);for(let o of t){let s=r.get(o);if(s===void 0)return!1;s===!0&&(r.set(o,!1),i--)}return i===0}function Kot(e,t){return e.enable!==t.enable||!lwe(e.include,t.include)||!lwe(e.exclude,t.exclude)}function Xot(e,t){return qy(e)!==qy(t)}function Yot(e,t){return e===t?!1:!Jm(e,t)}var B9,aZ,$ot=A({"src/server/typingsCache.ts"(){"use strict";lb(),sT(),B9={isKnownTypesPackageName:Km,installPackage:Ko,enqueueInstallTypingsRequest:$a,attach:$a,onProjectClosed:$a,globalTypingsCacheLocation:void 0},aZ=class{constructor(e){this.installer=e,this.perProjectCache=new Map}isKnownTypesPackageName(e){return this.installer.isKnownTypesPackageName(e)}installPackage(e){return this.installer.installPackage(e)}enqueueInstallTypingsForProject(e,t,r){let i=e.getTypeAcquisition();if(!i||!i.enable)return;let o=this.perProjectCache.get(e.getProjectName());(r||!o||Kot(i,o.typeAcquisition)||Xot(e.getCompilationSettings(),o.compilerOptions)||Yot(t,o.unresolvedImports))&&(this.perProjectCache.set(e.getProjectName(),{compilerOptions:e.getCompilationSettings(),typeAcquisition:i,typings:o?o.typings:hc,unresolvedImports:t,poisoned:!0}),this.installer.enqueueInstallTypingsRequest(e,i,t))}updateTypingsForProject(e,t,r,i,o){let s=nS(o);return this.perProjectCache.set(e,{compilerOptions:t,typeAcquisition:r,typings:s,unresolvedImports:i,poisoned:!1}),!r||!r.enable?hc:s}onProjectClosed(e){this.perProjectCache.delete(e.getProjectName())&&this.installer.onProjectClosed(e)}}}});function l4(e,t=!1){let r={js:0,jsSize:0,jsx:0,jsxSize:0,ts:0,tsSize:0,tsx:0,tsxSize:0,dts:0,dtsSize:0,deferred:0,deferredSize:0};for(let i of e){let o=t?i.textStorage.getTelemetryFileSize():0;switch(i.scriptKind){case 1:r.js+=1,r.jsSize+=o;break;case 2:r.jsx+=1,r.jsxSize+=o;break;case 3:Su(i.fileName)?(r.dts+=1,r.dtsSize+=o):(r.ts+=1,r.tsSize+=o);break;case 4:r.tsx+=1,r.tsxSize+=o;break;case 7:r.deferred+=1,r.deferredSize+=o;break}}return r}function Qot(e){let t=l4(e.getScriptInfos());return t.js>0&&t.ts===0&&t.tsx===0}function Che(e){let t=l4(e.getRootScriptInfos());return t.ts===0&&t.tsx===0}function Nhe(e){let t=l4(e.getScriptInfos());return t.ts===0&&t.tsx===0}function Phe(e){return!e.some(t=>Tl(t,".ts")&&!Su(t)||Tl(t,".tsx"))}function Mhe(e){return e.generatedFilePath!==void 0}function Zot(e,t){var r,i;let o=e.getSourceFiles();(r=lr)==null||r.push(lr.Phase.Session,"getUnresolvedImports",{count:o.length});let s=e.getTypeChecker().getAmbientModules().map(u=>em(u.getName())),l=XD(Zi(o,u=>eat(e,u,s,t)));return(i=lr)==null||i.pop(),l}function eat(e,t,r,i){return mA(i,t.path,()=>{let o;return e.forEachResolvedModule(({resolvedModule:s},l)=>{(!s||!QC(s.extension))&&!Yc(l)&&!r.some(u=>u===l)&&(o=In(o,Ew(l).packageName))},t),o||hc})}function B2(e){return e.projectKind===0}function k0(e){return e.projectKind===1}function sZ(e){return e.projectKind===2}function c4(e){return e.projectKind===3||e.projectKind===4}var CP,aT,lZ,cZ,uZ,dZ,pZ,G9,tat=A({"src/server/project.ts"(){"use strict";lb(),lb(),sT(),CP=(e=>(e[e.Inferred=0]="Inferred",e[e.Configured=1]="Configured",e[e.External=2]="External",e[e.AutoImportProvider=3]="AutoImportProvider",e[e.Auxiliary=4]="Auxiliary",e))(CP||{}),aT=class TWe{constructor(t,r,i,o,s,l,u,p,g,m,b){switch(this.projectKind=r,this.projectService=i,this.documentRegistry=o,this.compilerOptions=u,this.compileOnSaveEnabled=p,this.watchOptions=g,this.rootFiles=[],this.rootFilesMap=new Map,this.plugins=[],this.cachedUnresolvedImportsPerFile=new Map,this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1,this.lastReportedVersion=0,this.projectProgramVersion=0,this.projectStateVersion=0,this.isInitialLoadPending=Km,this.dirty=!1,this.typingFiles=hc,this.moduleSpecifierCache=Uhe(this),this.createHash=oa(this.projectService.host,this.projectService.host.createHash),this.globalCacheResolutionModuleName=B_.nonRelativeModuleNameForTypingCache,this.updateFromProjectInProgress=!1,this.projectName=t,this.directoryStructureHost=m,this.currentDirectory=this.projectService.getNormalizedAbsolutePath(b),this.getCanonicalFileName=this.projectService.toCanonicalFileName,this.jsDocParsingMode=this.projectService.jsDocParsingMode,this.cancellationToken=new BY(this.projectService.cancellationToken,this.projectService.throttleWaitMilliseconds),this.compilerOptions?(s||qy(this.compilerOptions)||this.projectService.hasDeferredExtension())&&(this.compilerOptions.allowNonTsExtensions=!0):(this.compilerOptions=o9(),this.compilerOptions.allowNonTsExtensions=!0,this.compilerOptions.allowJs=!0),i.serverMode){case 0:this.languageServiceEnabled=!0;break;case 1:this.languageServiceEnabled=!0,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;case 2:this.languageServiceEnabled=!1,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;default:C.assertNever(i.serverMode)}this.setInternalCompilerOptionsForEmittingJsFiles();let T=this.projectService.host;this.projectService.logger.loggingEnabled()?this.trace=I=>this.writeLog(I):T.trace&&(this.trace=I=>T.trace(I)),this.realpath=oa(T,T.realpath),this.resolutionCache=XJ(this,this.currentDirectory,!0),this.languageService=Tpe(this,this.documentRegistry,this.projectService.serverMode),l&&this.disableLanguageService(l),this.markAsDirty(),c4(this)||(this.projectService.pendingEnsureProjectForOpenFiles=!0),this.projectService.onProjectCreation(this)}getResolvedProjectReferenceToRedirect(t){}isNonTsProject(){return Gp(this),Nhe(this)}isJsOnlyProject(){return Gp(this),Qot(this)}static resolveModule(t,r,i,o){return TWe.importServicePluginSync({name:t},[r],i,o).resolvedModule}static importServicePluginSync(t,r,i,o){C.assertIsDefined(i.require);let s,l;for(let u of r){let p=Mu(i.resolvePath(Zr(u,"node_modules")));o(`Loading ${t.name} from ${u} (resolved to ${p})`);let g=i.require(p,t.name);if(!g.error){l=g.module;break}let m=g.error.stack||g.error.message||JSON.stringify(g.error);(s??(s=[])).push(`Failed to load module '${t.name}' from ${p}: ${m}`)}return{pluginConfigEntry:t,resolvedModule:l,errorLogs:s}}static async importServicePluginAsync(t,r,i,o){C.assertIsDefined(i.importPlugin);let s,l;for(let u of r){let p=Zr(u,"node_modules");o(`Dynamically importing ${t.name} from ${u} (resolved to ${p})`);let g;try{g=await i.importPlugin(p,t.name)}catch(b){g={module:void 0,error:b}}if(!g.error){l=g.module;break}let m=g.error.stack||g.error.message||JSON.stringify(g.error);(s??(s=[])).push(`Failed to dynamically import module '${t.name}' from ${p}: ${m}`)}return{pluginConfigEntry:t,resolvedModule:l,errorLogs:s}}isKnownTypesPackageName(t){return this.typingsCache.isKnownTypesPackageName(t)}installPackage(t){return this.typingsCache.installPackage({...t,projectName:this.projectName,projectRootPath:this.toPath(this.currentDirectory)})}getGlobalTypingsCacheLocation(){return this.getGlobalCache()}get typingsCache(){return this.projectService.typingsCache}getSymlinkCache(){return this.symlinks||(this.symlinks=TU(this.getCurrentDirectory(),this.getCanonicalFileName)),this.program&&!this.symlinks.hasProcessedResolutions()&&this.symlinks.setSymlinksFromResolutions(this.program.forEachResolvedModule,this.program.forEachResolvedTypeReferenceDirective,this.program.getAutomaticTypeDirectiveResolutions()),this.symlinks}getCompilationSettings(){return this.compilerOptions}getCompilerOptions(){return this.getCompilationSettings()}getNewLine(){return this.projectService.host.newLine}getProjectVersion(){return this.projectStateVersion.toString()}getProjectReferences(){}getScriptFileNames(){if(!this.rootFiles)return et;let t;return this.rootFilesMap.forEach(r=>{(this.languageServiceEnabled||r.info&&r.info.isScriptOpen())&&(t||(t=[])).push(r.fileName)}),Jr(t,this.typingFiles)||et}getOrCreateScriptInfoAndAttachToProject(t){let r=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,this.currentDirectory,this.directoryStructureHost);if(r){let i=this.rootFilesMap.get(r.path);i&&i.info!==r&&(this.rootFiles.push(r),i.info=r),r.attachToProject(this)}return r}getScriptKind(t){let r=this.projectService.getScriptInfoForPath(this.toPath(t));return r&&r.scriptKind}getScriptVersion(t){let r=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,this.currentDirectory,this.directoryStructureHost);return r&&r.getLatestVersion()}getScriptSnapshot(t){let r=this.getOrCreateScriptInfoAndAttachToProject(t);if(r)return r.getSnapshot()}getCancellationToken(){return this.cancellationToken}getCurrentDirectory(){return this.currentDirectory}getDefaultLibFileName(){let t=li(va(this.projectService.getExecutingFilePath()));return Zr(t,QM(this.compilerOptions))}useCaseSensitiveFileNames(){return this.projectService.host.useCaseSensitiveFileNames}readDirectory(t,r,i,o,s){return this.directoryStructureHost.readDirectory(t,r,i,o,s)}readFile(t){return this.projectService.host.readFile(t)}writeFile(t,r){return this.projectService.host.writeFile(t,r)}fileExists(t){let r=this.toPath(t);return!this.isWatchedMissingFile(r)&&this.directoryStructureHost.fileExists(t)}resolveModuleNameLiterals(t,r,i,o,s,l){return this.resolutionCache.resolveModuleNameLiterals(t,r,i,o,s,l)}getModuleResolutionCache(){return this.resolutionCache.getModuleResolutionCache()}resolveTypeReferenceDirectiveReferences(t,r,i,o,s,l){return this.resolutionCache.resolveTypeReferenceDirectiveReferences(t,r,i,o,s,l)}resolveLibrary(t,r,i,o){return this.resolutionCache.resolveLibrary(t,r,i,o)}directoryExists(t){return this.directoryStructureHost.directoryExists(t)}getDirectories(t){return this.directoryStructureHost.getDirectories(t)}getCachedDirectoryStructureHost(){}toPath(t){return rl(t,this.currentDirectory,this.projectService.toCanonicalFileName)}watchDirectoryOfFailedLookupLocation(t,r,i){return this.projectService.watchFactory.watchDirectory(t,r,i,this.projectService.getWatchOptions(this),kc.FailedLookupLocations,this)}watchAffectingFileLocation(t,r){return this.projectService.watchFactory.watchFile(t,r,2e3,this.projectService.getWatchOptions(this),kc.AffectingFileLocation,this)}clearInvalidateResolutionOfFailedLookupTimer(){return this.projectService.throttledOperations.cancel(`${this.getProjectName()}FailedLookupInvalidation`)}scheduleInvalidateResolutionsOfFailedLookupLocations(){this.projectService.throttledOperations.schedule(`${this.getProjectName()}FailedLookupInvalidation`,1e3,()=>{this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)})}invalidateResolutionsOfFailedLookupLocations(){this.clearInvalidateResolutionOfFailedLookupTimer()&&this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&(this.markAsDirty(),this.projectService.delayEnsureProjectForOpenFiles())}onInvalidatedResolution(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}watchTypeRootsDirectory(t,r,i){return this.projectService.watchFactory.watchDirectory(t,r,i,this.projectService.getWatchOptions(this),kc.TypeRoots,this)}hasChangedAutomaticTypeDirectiveNames(){return this.resolutionCache.hasChangedAutomaticTypeDirectiveNames()}onChangedAutomaticTypeDirectiveNames(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}getGlobalCache(){return this.getTypeAcquisition().enable?this.projectService.typingsInstaller.globalTypingsCacheLocation:void 0}fileIsOpen(t){return this.projectService.openFiles.has(t)}writeLog(t){this.projectService.logger.info(t)}log(t){this.writeLog(t)}error(t){this.projectService.logger.msg(t,"Err")}setInternalCompilerOptionsForEmittingJsFiles(){(this.projectKind===0||this.projectKind===2)&&(this.compilerOptions.noEmitForJsFiles=!0)}getGlobalProjectErrors(){return tr(this.projectErrors,t=>!t.file)||hc}getAllProjectErrors(){return this.projectErrors||hc}setProjectErrors(t){this.projectErrors=t}getLanguageService(t=!0){return t&&Gp(this),this.languageService}getSourceMapper(){return this.getLanguageService().getSourceMapper()}clearSourceMapperCache(){this.languageService.clearSourceMapperCache()}getDocumentPositionMapper(t,r){return this.projectService.getDocumentPositionMapper(this,t,r)}getSourceFileLike(t){return this.projectService.getSourceFileLike(t,this)}shouldEmitFile(t){return t&&!t.isDynamicOrHasMixedContent()&&!this.program.isSourceOfProjectReferenceRedirect(t.path)}getCompileOnSaveAffectedFileList(t){return this.languageServiceEnabled?(Gp(this),this.builderState=Pm.create(this.program,this.builderState,!0),Vi(Pm.getFilesAffectedBy(this.builderState,this.program,t.path,this.cancellationToken,this.projectService.host),r=>this.shouldEmitFile(this.projectService.getScriptInfoForPath(r.path))?r.fileName:void 0)):[]}emitFile(t,r){if(!this.languageServiceEnabled||!this.shouldEmitFile(t))return{emitSkipped:!0,diagnostics:hc};let{emitSkipped:i,diagnostics:o,outputFiles:s}=this.getLanguageService().getEmitOutput(t.fileName);if(!i){for(let l of s){let u=bo(l.name,this.currentDirectory);r(u,l.text,l.writeByteOrderMark)}if(this.builderState&&xf(this.compilerOptions)){let l=s.filter(u=>Su(u.name));if(l.length===1){let u=this.program.getSourceFile(t.fileName),p=this.projectService.host.createHash?this.projectService.host.createHash(l[0].text):nC(l[0].text);Pm.updateSignatureOfFile(this.builderState,p,u.resolvedPath)}}}return{emitSkipped:i,diagnostics:o}}enableLanguageService(){this.languageServiceEnabled||this.projectService.serverMode===2||(this.languageServiceEnabled=!0,this.lastFileExceededProgramSize=void 0,this.projectService.onUpdateLanguageServiceStateForProject(this,!0))}cleanupProgram(){if(this.program){for(let t of this.program.getSourceFiles())this.detachScriptInfoIfNotRoot(t.fileName);this.program.forEachResolvedProjectReference(t=>this.detachScriptInfoFromProject(t.sourceFile.fileName)),this.program=void 0}}disableLanguageService(t){this.languageServiceEnabled&&(C.assert(this.projectService.serverMode!==2),this.languageService.cleanupSemanticCache(),this.languageServiceEnabled=!1,this.cleanupProgram(),this.lastFileExceededProgramSize=t,this.builderState=void 0,this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.resolutionCache.closeTypeRootsWatch(),this.clearGeneratedFileWatch(),this.projectService.verifyDocumentRegistry(),this.projectService.onUpdateLanguageServiceStateForProject(this,!1))}getProjectName(){return this.projectName}removeLocalTypingsFromTypeAcquisition(t){return!t||!t.include?t:{...t,include:this.removeExistingTypings(t.include)}}getExternalFiles(t){return nS(Zi(this.plugins,r=>{if(typeof r.module.getExternalFiles=="function")try{return r.module.getExternalFiles(this,t||0)}catch(i){this.projectService.logger.info(`A plugin threw an exception in getExternalFiles: ${i}`),i.stack&&this.projectService.logger.info(i.stack)}}))}getSourceFile(t){if(this.program)return this.program.getSourceFileByPath(t)}getSourceFileOrConfigFile(t){let r=this.program.getCompilerOptions();return t===r.configFilePath?r.configFile:this.getSourceFile(t)}close(){var t;this.projectService.typingsCache.onProjectClosed(this),this.closeWatchingTypingLocations(),this.cleanupProgram(),Ke(this.externalFiles,r=>this.detachScriptInfoIfNotRoot(r));for(let r of this.rootFiles)r.detachFromProject(this);this.projectService.pendingEnsureProjectForOpenFiles=!0,this.rootFiles=void 0,this.rootFilesMap=void 0,this.externalFiles=void 0,this.program=void 0,this.builderState=void 0,this.resolutionCache.clear(),this.resolutionCache=void 0,this.cachedUnresolvedImportsPerFile=void 0,(t=this.packageJsonWatches)==null||t.forEach(r=>{r.projects.delete(this),r.close()}),this.packageJsonWatches=void 0,this.moduleSpecifierCache.clear(),this.moduleSpecifierCache=void 0,this.directoryStructureHost=void 0,this.exportMapCache=void 0,this.projectErrors=void 0,this.plugins.length=0,this.missingFilesMap&&(ep(this.missingFilesMap,$m),this.missingFilesMap=void 0),this.clearGeneratedFileWatch(),this.clearInvalidateResolutionOfFailedLookupTimer(),this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.noDtsResolutionProject&&this.noDtsResolutionProject.close(),this.noDtsResolutionProject=void 0,this.languageService.dispose(),this.languageService=void 0}detachScriptInfoIfNotRoot(t){let r=this.projectService.getScriptInfo(t);r&&!this.isRoot(r)&&r.detachFromProject(this)}isClosed(){return this.rootFiles===void 0}hasRoots(){return this.rootFiles&&this.rootFiles.length>0}isOrphan(){return!1}getRootFiles(){return this.rootFiles&&this.rootFiles.map(t=>t.fileName)}getRootFilesMap(){return this.rootFilesMap}getRootScriptInfos(){return this.rootFiles}getScriptInfos(){return this.languageServiceEnabled?Ft(this.program.getSourceFiles(),t=>{let r=this.projectService.getScriptInfoForPath(t.resolvedPath);return C.assert(!!r,"getScriptInfo",()=>`scriptInfo for a file '${t.fileName}' Path: '${t.path}' / '${t.resolvedPath}' is missing.`),r}):this.rootFiles}getExcludedFiles(){return hc}getFileNames(t,r){if(!this.program)return[];if(!this.languageServiceEnabled){let o=this.getRootFiles();if(this.compilerOptions){let s=Ape(this.compilerOptions);s&&(o||(o=[])).push(s)}return o}let i=[];for(let o of this.program.getSourceFiles())t&&this.program.isSourceFileFromExternalLibrary(o)||i.push(o.fileName);if(!r){let o=this.program.getCompilerOptions().configFile;if(o&&(i.push(o.fileName),o.extendedSourceFiles))for(let s of o.extendedSourceFiles)i.push(s)}return i}getFileNamesWithRedirectInfo(t){return this.getFileNames().map(r=>({fileName:r,isSourceOfProjectReferenceRedirect:t&&this.isSourceOfProjectReferenceRedirect(r)}))}hasConfigFile(t){if(this.program&&this.languageServiceEnabled){let r=this.program.getCompilerOptions().configFile;if(r){if(t===r.fileName)return!0;if(r.extendedSourceFiles){for(let i of r.extendedSourceFiles)if(t===i)return!0}}}return!1}containsScriptInfo(t){if(this.isRoot(t))return!0;if(!this.program)return!1;let r=this.program.getSourceFileByPath(t.path);return!!r&&r.resolvedPath===t.path}containsFile(t,r){let i=this.projectService.getScriptInfoForNormalizedPath(t);return i&&(i.isScriptOpen()||!r)?this.containsScriptInfo(i):!1}isRoot(t){var r;return this.rootFilesMap&&((r=this.rootFilesMap.get(t.path))==null?void 0:r.info)===t}addRoot(t,r){C.assert(!this.isRoot(t)),this.rootFiles.push(t),this.rootFilesMap.set(t.path,{fileName:r||t.fileName,info:t}),t.attachToProject(this),this.markAsDirty()}addMissingFileRoot(t){let r=this.projectService.toPath(t);this.rootFilesMap.set(r,{fileName:t}),this.markAsDirty()}removeFile(t,r,i){this.isRoot(t)&&this.removeRoot(t),r?this.resolutionCache.removeResolutionsOfFile(t.path):this.resolutionCache.invalidateResolutionOfFile(t.path),this.cachedUnresolvedImportsPerFile.delete(t.path),i&&t.detachFromProject(this),this.markAsDirty()}registerFileUpdate(t){(this.updatedFileNames||(this.updatedFileNames=new Set)).add(t)}markFileAsDirty(t){this.markAsDirty(),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.changedFilesForExportMapCache||(this.changedFilesForExportMapCache=new Set)).add(t)}markAsDirty(){this.dirty||(this.projectStateVersion++,this.dirty=!0)}onAutoImportProviderSettingsChanged(){var t;this.autoImportProviderHost===!1?this.autoImportProviderHost=void 0:(t=this.autoImportProviderHost)==null||t.markAsDirty()}onPackageJsonChange(){this.moduleSpecifierCache.clear(),this.autoImportProviderHost&&this.autoImportProviderHost.markAsDirty()}onFileAddedOrRemoved(t){this.hasAddedorRemovedFiles=!0,t&&(this.hasAddedOrRemovedSymlinks=!0)}onDiscoveredSymlink(){this.hasAddedOrRemovedSymlinks=!0}updateFromProject(){Gp(this)}updateGraph(){var t,r,i,o,s;(t=lr)==null||t.push(lr.Phase.Session,"updateGraph",{name:this.projectName,kind:CP[this.projectKind]}),(r=rd)==null||r.logStartUpdateGraph(),this.resolutionCache.startRecordingFilesWithChangedResolutions();let l=this.updateGraphWorker(),u=this.hasAddedorRemovedFiles;this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1;let p=this.resolutionCache.finishRecordingFilesWithChangedResolutions()||hc;for(let m of p)this.cachedUnresolvedImportsPerFile.delete(m);this.languageServiceEnabled&&this.projectService.serverMode===0&&!this.isOrphan()?((l||p.length)&&(this.lastCachedUnresolvedImportsList=Zot(this.program,this.cachedUnresolvedImportsPerFile)),this.projectService.typingsCache.enqueueInstallTypingsForProject(this,this.lastCachedUnresolvedImportsList,u)):this.lastCachedUnresolvedImportsList=void 0;let g=this.projectProgramVersion===0&&l;return l&&this.projectProgramVersion++,u&&(this.autoImportProviderHost||(this.autoImportProviderHost=void 0),(i=this.autoImportProviderHost)==null||i.markAsDirty()),g&&this.getPackageJsonAutoImportProvider(),(o=rd)==null||o.logStopUpdateGraph(),(s=lr)==null||s.pop(),!l}updateTypingFiles(t){F8(t,this.typingFiles,Nx(!this.useCaseSensitiveFileNames()),$a,r=>this.detachScriptInfoFromProject(r))&&(this.typingFiles=t,this.resolutionCache.setFilesWithInvalidatedNonRelativeUnresolvedImports(this.cachedUnresolvedImportsPerFile),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}closeWatchingTypingLocations(){this.typingWatchers&&ep(this.typingWatchers,$m),this.typingWatchers=void 0}onTypingInstallerWatchInvoke(){this.typingWatchers.isInvoked=!0,this.projectService.updateTypingsForProject({projectName:this.getProjectName(),kind:qw})}watchTypingLocations(t){if(!t){this.typingWatchers.isInvoked=!1;return}if(!t.length){this.closeWatchingTypingLocations();return}let r=new Map(this.typingWatchers);this.typingWatchers||(this.typingWatchers=new Map),this.typingWatchers.isInvoked=!1;let i=(o,s)=>{let l=this.toPath(o);r.delete(l),this.typingWatchers.has(l)||this.typingWatchers.set(l,s==="FileWatcher"?this.projectService.watchFactory.watchFile(o,()=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):this.onTypingInstallerWatchInvoke(),2e3,this.projectService.getWatchOptions(this),kc.TypingInstallerLocationFile,this):this.projectService.watchFactory.watchDirectory(o,u=>{if(this.typingWatchers.isInvoked)return this.writeLog("TypingWatchers already invoked");if(!Tl(u,".json"))return this.writeLog("Ignoring files that are not *.json");if(Pg(u,Zr(this.projectService.typingsInstaller.globalTypingsCacheLocation,"package.json"),!this.useCaseSensitiveFileNames()))return this.writeLog("Ignoring package.json change at global typings location");this.onTypingInstallerWatchInvoke()},1,this.projectService.getWatchOptions(this),kc.TypingInstallerLocationDirectory,this))};for(let o of t){let s=rc(o);if(s==="package.json"||s==="bower.json"){i(o,"FileWatcher");continue}if(ym(this.currentDirectory,o,this.currentDirectory,!this.useCaseSensitiveFileNames())){let l=o.indexOf(il,this.currentDirectory.length+1);i(l!==-1?o.substr(0,l):o,"DirectoryWatcher");continue}if(ym(this.projectService.typingsInstaller.globalTypingsCacheLocation,o,this.currentDirectory,!this.useCaseSensitiveFileNames())){i(this.projectService.typingsInstaller.globalTypingsCacheLocation,"DirectoryWatcher");continue}i(o,"DirectoryWatcher")}r.forEach((o,s)=>{o.close(),this.typingWatchers.delete(s)})}getCurrentProgram(){return this.program}removeExistingTypings(t){let r=M5(this.getCompilerOptions(),this.directoryStructureHost);return t.filter(i=>!r.includes(i))}updateGraphWorker(){var t,r;let i=this.languageService.getCurrentProgram();C.assert(i===this.program),C.assert(!this.isClosed(),"Called update graph worker of closed project"),this.writeLog(`Starting updateGraphWorker: Project: ${this.getProjectName()}`);let o=Ks(),{hasInvalidatedResolutions:s,hasInvalidatedLibResolutions:l}=this.resolutionCache.createHasInvalidatedResolutions(Km,Km);this.hasInvalidatedResolutions=s,this.hasInvalidatedLibResolutions=l,this.resolutionCache.startCachingPerDirectoryResolution(),this.dirty=!1,this.updateFromProjectInProgress=!0,this.program=this.languageService.getProgram(),this.updateFromProjectInProgress=!1,(t=lr)==null||t.push(lr.Phase.Session,"finishCachingPerDirectoryResolution"),this.resolutionCache.finishCachingPerDirectoryResolution(this.program,i),(r=lr)==null||r.pop(),C.assert(i===void 0||this.program!==void 0);let u=!1;if(this.program&&(!i||this.program!==i&&this.program.structureIsReused!==2)){if(u=!0,i){for(let m of i.getSourceFiles()){let b=this.program.getSourceFileByPath(m.resolvedPath);(!b||m.resolvedPath===m.path&&b.resolvedPath!==m.path)&&this.detachScriptInfoFromProject(m.fileName,!!this.program.getSourceFileByPath(m.path),!0)}i.forEachResolvedProjectReference(m=>{this.program.getResolvedProjectReferenceByPath(m.sourceFile.path)||this.detachScriptInfoFromProject(m.sourceFile.fileName,void 0,!0)})}if(hJ(this.program,this.missingFilesMap||(this.missingFilesMap=new Map),(m,b)=>this.addMissingFileWatcher(m,b)),this.generatedFilesMap){let m=Ps(this.compilerOptions);Mhe(this.generatedFilesMap)?(!m||!this.isValidGeneratedFileWatcher(Td(m)+".d.ts",this.generatedFilesMap))&&this.clearGeneratedFileWatch():m?this.clearGeneratedFileWatch():this.generatedFilesMap.forEach((b,T)=>{let I=this.program.getSourceFileByPath(T);(!I||I.resolvedPath!==T||!this.isValidGeneratedFileWatcher(y3(I.fileName,this.compilerOptions,this.currentDirectory,this.program.getCommonSourceDirectory(),this.getCanonicalFileName),b))&&(Cf(b),this.generatedFilesMap.delete(T))})}this.languageServiceEnabled&&this.projectService.serverMode===0&&this.resolutionCache.updateTypeRootsWatch()}this.projectService.verifyProgram(this),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.exportMapCache.releaseSymbols(),this.hasAddedorRemovedFiles||i&&!this.program.structureIsReused?this.exportMapCache.clear():this.changedFilesForExportMapCache&&i&&this.program&&mh(this.changedFilesForExportMapCache,m=>{let b=i.getSourceFileByPath(m),T=this.program.getSourceFileByPath(m);return!b||!T?(this.exportMapCache.clear(),!0):this.exportMapCache.onFileChanged(b,T,!!this.getTypeAcquisition().enable)})),this.changedFilesForExportMapCache&&this.changedFilesForExportMapCache.clear(),(this.hasAddedOrRemovedSymlinks||this.program&&!this.program.structureIsReused&&this.getCompilerOptions().preserveSymlinks)&&(this.symlinks=void 0,this.moduleSpecifierCache.clear());let p=this.externalFiles||hc;this.externalFiles=this.getExternalFiles(),F8(this.externalFiles,p,Nx(!this.useCaseSensitiveFileNames()),m=>{let b=this.projectService.getOrCreateScriptInfoNotOpenedByClient(m,this.currentDirectory,this.directoryStructureHost);b?.attachToProject(this)},m=>this.detachScriptInfoFromProject(m));let g=Ks()-o;return this.sendPerformanceEvent("UpdateGraph",g),this.writeLog(`Finishing updateGraphWorker: Project: ${this.getProjectName()} projectStateVersion: ${this.projectStateVersion} projectProgramVersion: ${this.projectProgramVersion} structureChanged: ${u}${this.program?` structureIsReused:: ${J8[this.program.structureIsReused]}`:""} Elapsed: ${g}ms`),this.projectService.logger.isTestLogger?this.program!==i?this.print(!0,this.hasAddedorRemovedFiles,!0):this.writeLog("Same program as before"):this.hasAddedorRemovedFiles?this.print(!0,!0,!1):this.program!==i&&this.writeLog("Different program with same set of files"),this.projectService.verifyDocumentRegistry(),u}sendPerformanceEvent(t,r){this.projectService.sendPerformanceEvent(t,r)}detachScriptInfoFromProject(t,r,i){let o=this.projectService.getScriptInfo(t);o&&(o.detachFromProject(this),r||this.resolutionCache.removeResolutionsOfFile(o.path,i))}addMissingFileWatcher(t,r){var i;if(k0(this)){let s=this.projectService.configFileExistenceInfoCache.get(t);if((i=s?.config)!=null&&i.projects.has(this.canonicalConfigFilePath))return f2}let o=this.projectService.watchFactory.watchFile(bo(r,this.currentDirectory),(s,l)=>{k0(this)&&this.getCachedDirectoryStructureHost().addOrDeleteFile(s,t,l),l===0&&this.missingFilesMap.has(t)&&(this.missingFilesMap.delete(t),o.close(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))},500,this.projectService.getWatchOptions(this),kc.MissingFile,this);return o}isWatchedMissingFile(t){return!!this.missingFilesMap&&this.missingFilesMap.has(t)}addGeneratedFileWatch(t,r){if(Ps(this.compilerOptions))this.generatedFilesMap||(this.generatedFilesMap=this.createGeneratedFileWatcher(t));else{let i=this.toPath(r);if(this.generatedFilesMap){if(Mhe(this.generatedFilesMap)){C.fail(`${this.projectName} Expected to not have --out watcher for generated file with options: ${JSON.stringify(this.compilerOptions)}`);return}if(this.generatedFilesMap.has(i))return}else this.generatedFilesMap=new Map;this.generatedFilesMap.set(i,this.createGeneratedFileWatcher(t))}}createGeneratedFileWatcher(t){return{generatedFilePath:this.toPath(t),watcher:this.projectService.watchFactory.watchFile(t,()=>{this.clearSourceMapperCache(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)},2e3,this.projectService.getWatchOptions(this),kc.MissingGeneratedFile,this)}}isValidGeneratedFileWatcher(t,r){return this.toPath(t)===r.generatedFilePath}clearGeneratedFileWatch(){this.generatedFilesMap&&(Mhe(this.generatedFilesMap)?Cf(this.generatedFilesMap):ep(this.generatedFilesMap,Cf),this.generatedFilesMap=void 0)}getScriptInfoForNormalizedPath(t){let r=this.projectService.getScriptInfoForPath(this.toPath(t));return r&&!r.isAttached(this)?ny.ThrowProjectDoesNotContainDocument(t,this):r}getScriptInfo(t){return this.projectService.getScriptInfo(t)}filesToString(t){return this.filesToStringWorker(t,!0,!1)}filesToStringWorker(t,r,i){if(this.isInitialLoadPending())return` Files (0) InitialLoadPending +`;if(!this.program)return` Files (0) NoProgram +`;let o=this.program.getSourceFiles(),s=` Files (${o.length}) +`;if(t){for(let l of o)s+=` ${l.fileName}${i?` ${l.version} ${JSON.stringify(l.text)}`:""} +`;r&&(s+=` + +`,QJ(this.program,l=>s+=` ${l} +`))}return s}print(t,r,i){var o;this.writeLog(`Project '${this.projectName}' (${CP[this.projectKind]})`),this.writeLog(this.filesToStringWorker(t&&this.projectService.logger.hasLevel(3),r&&this.projectService.logger.hasLevel(3),i&&this.projectService.logger.hasLevel(3))),this.writeLog("-----------------------------------------------"),this.autoImportProviderHost&&this.autoImportProviderHost.print(!1,!1,!1),(o=this.noDtsResolutionProject)==null||o.print(!1,!1,!1)}setCompilerOptions(t){var r;if(t){t.allowNonTsExtensions=!0;let i=this.compilerOptions;this.compilerOptions=t,this.setInternalCompilerOptionsForEmittingJsFiles(),(r=this.noDtsResolutionProject)==null||r.setCompilerOptions(this.getCompilerOptionsForNoDtsResolutionProject()),M6(i,t)&&(this.cachedUnresolvedImportsPerFile.clear(),this.lastCachedUnresolvedImportsList=void 0,this.resolutionCache.onChangesAffectModuleResolution(),this.moduleSpecifierCache.clear()),this.markAsDirty()}}setWatchOptions(t){this.watchOptions=t}getWatchOptions(){return this.watchOptions}setTypeAcquisition(t){t&&(this.typeAcquisition=this.removeLocalTypingsFromTypeAcquisition(t))}getTypeAcquisition(){return this.typeAcquisition||{}}getChangesSinceVersion(t,r){var i,o;let s=r?p=>Vo(p.entries(),([g,m])=>({fileName:g,isSourceOfProjectReferenceRedirect:m})):p=>Vo(p.keys());this.isInitialLoadPending()||Gp(this);let l={projectName:this.getProjectName(),version:this.projectProgramVersion,isInferred:B2(this),options:this.getCompilationSettings(),languageServiceDisabled:!this.languageServiceEnabled,lastFileExceededProgramSize:this.lastFileExceededProgramSize},u=this.updatedFileNames;if(this.updatedFileNames=void 0,this.lastReportedFileNames&&t===this.lastReportedVersion){if(this.projectProgramVersion===this.lastReportedVersion&&!u)return{info:l,projectErrors:this.getGlobalProjectErrors()};let p=this.lastReportedFileNames,g=((i=this.externalFiles)==null?void 0:i.map(M=>({fileName:pl(M),isSourceOfProjectReferenceRedirect:!1})))||hc,m=g1(this.getFileNamesWithRedirectInfo(!!r).concat(g),M=>M.fileName,M=>M.isSourceOfProjectReferenceRedirect),b=new Map,T=new Map,I=u?Vo(u.keys()):[],R=[];return Bc(m,(M,N)=>{p.has(N)?r&&M!==p.get(N)&&R.push({fileName:N,isSourceOfProjectReferenceRedirect:M}):b.set(N,M)}),Bc(p,(M,N)=>{m.has(N)||T.set(N,M)}),this.lastReportedFileNames=m,this.lastReportedVersion=this.projectProgramVersion,{info:l,changes:{added:s(b),removed:s(T),updated:r?I.map(M=>({fileName:M,isSourceOfProjectReferenceRedirect:this.isSourceOfProjectReferenceRedirect(M)})):I,updatedRedirects:r?R:void 0},projectErrors:this.getGlobalProjectErrors()}}else{let p=this.getFileNamesWithRedirectInfo(!!r),g=((o=this.externalFiles)==null?void 0:o.map(b=>({fileName:pl(b),isSourceOfProjectReferenceRedirect:!1})))||hc,m=p.concat(g);return this.lastReportedFileNames=g1(m,b=>b.fileName,b=>b.isSourceOfProjectReferenceRedirect),this.lastReportedVersion=this.projectProgramVersion,{info:l,files:r?m:m.map(b=>b.fileName),projectErrors:this.getGlobalProjectErrors()}}}removeRoot(t){Mx(this.rootFiles,t),this.rootFilesMap.delete(t.path)}isSourceOfProjectReferenceRedirect(t){return!!this.program&&this.program.isSourceOfProjectReferenceRedirect(t)}getGlobalPluginSearchPaths(){return[...this.projectService.pluginProbeLocations,Zr(this.projectService.getExecutingFilePath(),"../../..")]}enableGlobalPlugins(t){if(!this.projectService.globalPlugins.length)return;let r=this.projectService.host;if(!r.require&&!r.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}let i=this.getGlobalPluginSearchPaths();for(let o of this.projectService.globalPlugins)o&&(t.plugins&&t.plugins.some(s=>s.name===o)||(this.projectService.logger.info(`Loading global plugin ${o}`),this.enablePlugin({name:o,global:!0},i)))}enablePlugin(t,r){this.projectService.requestEnablePlugin(this,t,r)}enableProxy(t,r){try{if(typeof t!="function"){this.projectService.logger.info(`Skipped loading plugin ${r.name} because it did not expose a proper factory function`);return}let i={config:r,project:this,languageService:this.languageService,languageServiceHost:this,serverHost:this.projectService.host,session:this.projectService.session},o=t({typescript:Nwe}),s=o.create(i);for(let l of Object.keys(this.languageService))l in s||(this.projectService.logger.info(`Plugin activation warning: Missing proxied method ${l} in created LS. Patching.`),s[l]=this.languageService[l]);this.projectService.logger.info("Plugin validation succeeded"),this.languageService=s,this.plugins.push({name:r.name,module:o})}catch(i){this.projectService.logger.info(`Plugin activation failed: ${i}`)}}onPluginConfigurationChanged(t,r){this.plugins.filter(i=>i.name===t).forEach(i=>{i.module.onConfigurationChanged&&i.module.onConfigurationChanged(r)})}refreshDiagnostics(){this.projectService.sendProjectsUpdatedInBackgroundEvent()}getPackageJsonsVisibleToFile(t,r){return this.projectService.serverMode!==0?hc:this.projectService.getPackageJsonsVisibleToFile(t,this,r)}getNearestAncestorDirectoryWithPackageJson(t){return this.projectService.getNearestAncestorDirectoryWithPackageJson(t)}getPackageJsonsForAutoImport(t){return this.getPackageJsonsVisibleToFile(Zr(this.currentDirectory,u2),t)}getPackageJsonCache(){return this.projectService.packageJsonCache}getCachedExportInfoMap(){return this.exportMapCache||(this.exportMapCache=WX(this))}clearCachedExportInfoMap(){var t;(t=this.exportMapCache)==null||t.clear()}getModuleSpecifierCache(){return this.moduleSpecifierCache}includePackageJsonAutoImports(){return this.projectService.includePackageJsonAutoImports()===0||!this.languageServiceEnabled||vO(this.currentDirectory)||!this.isDefaultProjectForOpenFiles()?0:this.projectService.includePackageJsonAutoImports()}getHostForAutoImportProvider(){var t,r;return this.program?{fileExists:this.program.fileExists,directoryExists:this.program.directoryExists,realpath:this.program.realpath||((t=this.projectService.host.realpath)==null?void 0:t.bind(this.projectService.host)),getCurrentDirectory:this.getCurrentDirectory.bind(this),readFile:this.projectService.host.readFile.bind(this.projectService.host),getDirectories:this.projectService.host.getDirectories.bind(this.projectService.host),trace:(r=this.projectService.host.trace)==null?void 0:r.bind(this.projectService.host),useCaseSensitiveFileNames:this.program.useCaseSensitiveFileNames(),readDirectory:this.projectService.host.readDirectory.bind(this.projectService.host)}:this.projectService.host}getPackageJsonAutoImportProvider(){var t,r,i;if(this.autoImportProviderHost===!1)return;if(this.projectService.serverMode!==0){this.autoImportProviderHost=!1;return}if(this.autoImportProviderHost){if(Gp(this.autoImportProviderHost),this.autoImportProviderHost.isEmpty()){this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0;return}return this.autoImportProviderHost.getCurrentProgram()}let o=this.includePackageJsonAutoImports();if(o){(t=lr)==null||t.push(lr.Phase.Session,"getPackageJsonAutoImportProvider");let s=Ks();if(this.autoImportProviderHost=dZ.create(o,this,this.getHostForAutoImportProvider(),this.documentRegistry),this.autoImportProviderHost)return Gp(this.autoImportProviderHost),this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider",Ks()-s),(r=lr)==null||r.pop(),this.autoImportProviderHost.getCurrentProgram();(i=lr)==null||i.pop()}}isDefaultProjectForOpenFiles(){return!!Bc(this.projectService.openFiles,(t,r)=>this.projectService.tryGetDefaultProjectForFile(pl(r))===this)}watchNodeModulesForPackageJsonChanges(t){return this.projectService.watchPackageJsonsInNodeModules(t,this)}getIncompleteCompletionsCache(){return this.projectService.getIncompleteCompletionsCache()}getNoDtsResolutionProject(t){return C.assert(this.projectService.serverMode===0),this.noDtsResolutionProject||(this.noDtsResolutionProject=new cZ(this.projectService,this.documentRegistry,this.getCompilerOptionsForNoDtsResolutionProject(),this.currentDirectory)),this.noDtsResolutionProject.rootFile!==t&&(this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this.noDtsResolutionProject,[t]),this.noDtsResolutionProject.rootFile=t),this.noDtsResolutionProject}getCompilerOptionsForNoDtsResolutionProject(){return{...this.getCompilerOptions(),noDtsResolution:!0,allowJs:!0,maxNodeModuleJsDepth:3,diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:et,lib:et,noLib:!0}}},lZ=class extends aT{constructor(e,t,r,i,o,s,l){super(e.newInferredProjectName(),0,e,t,void 0,void 0,r,!1,i,e.host,s),this._isJsInferredProject=!1,this.typeAcquisition=l,this.projectRootPath=o&&e.toCanonicalFileName(o),!o&&!e.useSingleInferredProject&&(this.canonicalCurrentDirectory=e.toCanonicalFileName(this.currentDirectory)),this.enableGlobalPlugins(this.getCompilerOptions())}toggleJsInferredProject(e){e!==this._isJsInferredProject&&(this._isJsInferredProject=e,this.setCompilerOptions())}setCompilerOptions(e){if(!e&&!this.getCompilationSettings())return;let t=ZK(e||this.getCompilationSettings());this._isJsInferredProject&&typeof t.maxNodeModuleJsDepth!="number"?t.maxNodeModuleJsDepth=2:this._isJsInferredProject||(t.maxNodeModuleJsDepth=void 0),t.allowJs=!0,super.setCompilerOptions(t)}addRoot(e){C.assert(e.isScriptOpen()),this.projectService.startWatchingConfigFilesForInferredProjectRoot(e),!this._isJsInferredProject&&e.isJavaScript()?this.toggleJsInferredProject(!0):this.isOrphan()&&this._isJsInferredProject&&!e.isJavaScript()&&this.toggleJsInferredProject(!1),super.addRoot(e)}removeRoot(e){this.projectService.stopWatchingConfigFilesForInferredProjectRoot(e),super.removeRoot(e),!this.isOrphan()&&this._isJsInferredProject&&e.isJavaScript()&&Jn(this.getRootScriptInfos(),t=>!t.isJavaScript())&&this.toggleJsInferredProject(!1)}isOrphan(){return!this.hasRoots()}isProjectWithSingleRoot(){return!this.projectRootPath&&!this.projectService.useSingleInferredProject||this.getRootScriptInfos().length===1}close(){Ke(this.getRootScriptInfos(),e=>this.projectService.stopWatchingConfigFilesForInferredProjectRoot(e)),super.close()}getTypeAcquisition(){return this.typeAcquisition||{enable:Che(this),include:et,exclude:et}}},cZ=class extends aT{constructor(e,t,r,i){super(e.newAuxiliaryProjectName(),4,e,t,!1,void 0,r,!1,void 0,e.host,i)}isOrphan(){return!0}scheduleInvalidateResolutionsOfFailedLookupLocations(){}},uZ=class z0e extends aT{constructor(t,r,i,o){super(t.projectService.newAutoImportProviderProjectName(),3,t.projectService,i,!1,void 0,o,!1,t.getWatchOptions(),t.projectService.host,t.currentDirectory),this.hostProject=t,this.rootFileNames=r,this.useSourceOfProjectReferenceRedirect=oa(this.hostProject,this.hostProject.useSourceOfProjectReferenceRedirect),this.getParsedCommandLine=oa(this.hostProject,this.hostProject.getParsedCommandLine)}static getRootFileNames(t,r,i,o){var s,l;if(!t)return et;let u=r.getCurrentProgram();if(!u)return et;let p=Ks(),g,m,b=Zr(r.currentDirectory,u2),T=r.getPackageJsonsForAutoImport(Zr(r.currentDirectory,b));for(let N of T)(s=N.dependencies)==null||s.forEach((O,H)=>R(H)),(l=N.peerDependencies)==null||l.forEach((O,H)=>R(H));let I=0;if(g){let N=r.getSymlinkCache();for(let O of Vo(g.keys())){if(t===2&&I>this.maxDependencies)return r.log(`AutoImportProviderProject: attempted to add more than ${this.maxDependencies} dependencies. Aborting.`),et;let H=vq(O,r.currentDirectory,o,i,u.getModuleResolutionCache());if(H){let Z=M(H,u,N);if(Z){m=xo(m,Z),I+=Z.length?1:0;continue}}if(!Ke([r.currentDirectory,r.getGlobalTypingsCacheLocation()],Z=>{if(Z){let V=vq(`@types/${O}`,Z,o,i,u.getModuleResolutionCache());if(V){let ue=M(V,u,N);return m=xo(m,ue),I+=ue?.length?1:0,!0}}})&&H&&o.allowJs&&o.maxNodeModuleJsDepth){let Z=M(H,u,N,!0);m=xo(m,Z),I+=Z?.length?1:0}}}return m?.length&&r.log(`AutoImportProviderProject: found ${m.length} root files in ${I} dependencies in ${Ks()-p} ms`),m||et;function R(N){uo(N,"@types/")||(g||(g=new Set)).add(N)}function M(N,O,H,K){var Z;let V=Iq(N,o,i,O.getModuleResolutionCache(),K);if(V){let ue=(Z=i.realpath)==null?void 0:Z.call(i,N.packageDirectory),G=ue?r.toPath(ue):void 0,ne=G&&G!==r.toPath(N.packageDirectory);return ne&&H.setSymlinkedDirectory(N.packageDirectory,{real:zc(ue),realPath:zc(G)}),Vi(V,he=>{let ye=ne?he.replace(N.packageDirectory,ue):he;if(!O.getSourceFile(ye)&&!(ne&&O.getSourceFile(he)))return ye})}}}static create(t,r,i,o){if(t===0)return;let s={...r.getCompilerOptions(),...this.compilerOptionsOverrides},l=this.getRootFileNames(t,r,i,s);if(l.length)return new z0e(r,l,o,s)}isEmpty(){return!Et(this.rootFileNames)}isOrphan(){return!0}updateGraph(){let t=this.rootFileNames;t||(t=z0e.getRootFileNames(this.hostProject.includePackageJsonAutoImports(),this.hostProject,this.hostProject.getHostForAutoImportProvider(),this.getCompilationSettings())),this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this,t),this.rootFileNames=t;let r=this.getCurrentProgram(),i=super.updateGraph();return r&&r!==this.getCurrentProgram()&&this.hostProject.clearCachedExportInfoMap(),i}scheduleInvalidateResolutionsOfFailedLookupLocations(){}hasRoots(){var t;return!!((t=this.rootFileNames)!=null&&t.length)}markAsDirty(){this.rootFileNames=void 0,super.markAsDirty()}getScriptFileNames(){return this.rootFileNames||et}getLanguageService(){throw new Error("AutoImportProviderProject language service should never be used. To get the program, use `project.getCurrentProgram()`.")}onAutoImportProviderSettingsChanged(){throw new Error("AutoImportProviderProject is an auto import provider; use `markAsDirty()` instead.")}onPackageJsonChange(){throw new Error("package.json changes should be notified on an AutoImportProvider's host project")}getHostForAutoImportProvider(){throw new Error("AutoImportProviderProject cannot provide its own host; use `hostProject.getModuleResolutionHostForAutomImportProvider()` instead.")}getProjectReferences(){return this.hostProject.getProjectReferences()}includePackageJsonAutoImports(){return 0}getSymlinkCache(){return this.hostProject.getSymlinkCache()}getModuleResolutionCache(){var t;return(t=this.hostProject.getCurrentProgram())==null?void 0:t.getModuleResolutionCache()}},uZ.maxDependencies=10,uZ.compilerOptionsOverrides={diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:et,lib:et,noLib:!0},dZ=uZ,pZ=class extends aT{constructor(e,t,r,i,o){super(e,1,r,i,!1,void 0,{},!1,void 0,o,li(e)),this.canonicalConfigFilePath=t,this.openFileWatchTriggered=new Map,this.canConfigFileJsonReportNoInputFiles=!1,this.externalProjectRefCount=0,this.isInitialLoadPending=Dv,this.sendLoadingProjectFinish=!1}setCompilerHost(e){this.compilerHost=e}getCompilerHost(){return this.compilerHost}useSourceOfProjectReferenceRedirect(){return this.languageServiceEnabled}getParsedCommandLine(e){let t=va(e),r=this.projectService.toCanonicalFileName(t),i=this.projectService.configFileExistenceInfoCache.get(r);return i||this.projectService.configFileExistenceInfoCache.set(r,i={exists:this.projectService.host.fileExists(t)}),this.projectService.ensureParsedConfigUptoDate(t,r,i,this),this.languageServiceEnabled&&this.projectService.serverMode===0&&this.projectService.watchWildcards(t,i,this),i.exists?i.config.parsedCommandLine:void 0}onReleaseParsedCommandLine(e){this.releaseParsedConfig(this.projectService.toCanonicalFileName(va(e)))}releaseParsedConfig(e){this.projectService.stopWatchingWildCards(e,this),this.projectService.releaseParsedConfig(e,this)}updateGraph(){let e=this.isInitialLoadPending();this.isInitialLoadPending=Km;let t=this.pendingUpdateLevel;this.pendingUpdateLevel=0;let r;switch(t){case 1:this.openFileWatchTriggered.clear(),r=this.projectService.reloadFileNamesOfConfiguredProject(this);break;case 2:this.openFileWatchTriggered.clear();let i=C.checkDefined(this.pendingUpdateReason);this.pendingUpdateReason=void 0,this.projectService.reloadConfiguredProject(this,i,e,!1),r=!0;break;default:r=super.updateGraph()}return this.compilerHost=void 0,this.projectService.sendProjectLoadingFinishEvent(this),this.projectService.sendProjectTelemetry(this),r}getCachedDirectoryStructureHost(){return this.directoryStructureHost}getConfigFilePath(){return this.getProjectName()}getProjectReferences(){return this.projectReferences}updateReferences(e){this.projectReferences=e,this.potentialProjectReferences=void 0}setPotentialProjectReference(e){C.assert(this.isInitialLoadPending()),(this.potentialProjectReferences||(this.potentialProjectReferences=new Set)).add(e)}getResolvedProjectReferenceToRedirect(e){let t=this.getCurrentProgram();return t&&t.getResolvedProjectReferenceToRedirect(e)}forEachResolvedProjectReference(e){var t;return(t=this.getCurrentProgram())==null?void 0:t.forEachResolvedProjectReference(e)}enablePluginsWithOptions(e){var t;if(this.plugins.length=0,!((t=e.plugins)!=null&&t.length)&&!this.projectService.globalPlugins.length)return;let r=this.projectService.host;if(!r.require&&!r.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}let i=this.getGlobalPluginSearchPaths();if(this.projectService.allowLocalPluginLoads){let o=li(this.canonicalConfigFilePath);this.projectService.logger.info(`Local plugin loading enabled; adding ${o} to search paths`),i.unshift(o)}if(e.plugins)for(let o of e.plugins)this.enablePlugin(o,i);return this.enableGlobalPlugins(e)}getGlobalProjectErrors(){return tr(this.projectErrors,e=>!e.file)||hc}getAllProjectErrors(){return this.projectErrors||hc}setProjectErrors(e){this.projectErrors=e}close(){this.projectService.configFileExistenceInfoCache.forEach((e,t)=>this.releaseParsedConfig(t)),this.projectErrors=void 0,this.openFileWatchTriggered.clear(),this.compilerHost=void 0,super.close()}addExternalProjectReference(){this.externalProjectRefCount++}deleteExternalProjectReference(){this.externalProjectRefCount--}isSolution(){return this.getRootFilesMap().size===0&&!this.canConfigFileJsonReportNoInputFiles}getDefaultChildProjectFromProjectWithReferences(e){return V2(this,e.path,t=>zI(t,e)?t:void 0,0)}hasOpenRef(){var e;if(this.externalProjectRefCount)return!0;if(this.isClosed())return!1;let t=this.projectService.configFileExistenceInfoCache.get(this.canonicalConfigFilePath);return this.projectService.hasPendingProjectUpdate(this)?!!((e=t.openFilesImpactedByConfigFile)!=null&&e.size):!!t.openFilesImpactedByConfigFile&&Bc(t.openFilesImpactedByConfigFile,(r,i)=>{let o=this.projectService.getScriptInfoForPath(i);return this.containsScriptInfo(o)||!!V2(this,o.path,s=>s.containsScriptInfo(o),0)})||!1}hasExternalProjectRef(){return!!this.externalProjectRefCount}getEffectiveTypeRoots(){return FN(this.getCompilationSettings(),this)||[]}updateErrorOnNoInputFiles(e){E5(e,this.getConfigFilePath(),this.getCompilerOptions().configFile.configFileSpecs,this.projectErrors,this.canConfigFileJsonReportNoInputFiles)}},G9=class extends aT{constructor(e,t,r,i,o,s,l,u){super(e,2,t,r,!0,o,i,s,u,t.host,li(l||Mu(e))),this.externalProjectName=e,this.compileOnSaveEnabled=s,this.excludedFiles=[],this.enableGlobalPlugins(this.getCompilerOptions())}updateGraph(){let e=super.updateGraph();return this.projectService.sendProjectTelemetry(this),e}getExcludedFiles(){return this.excludedFiles}}}});function cwe(e){let t=new Map;for(let r of e)if(typeof r.type=="object"){let i=r.type;i.forEach(o=>{C.assert(typeof o=="number")}),t.set(r.name,i)}return t}function G2(e){return wo(e.indentStyle)&&(e.indentStyle=gwe.get(e.indentStyle.toLowerCase()),C.assert(e.indentStyle!==void 0)),e}function V9(e){return _we.forEach((t,r)=>{let i=e[r];wo(i)&&(e[r]=t.get(i.toLowerCase()))}),e}function u4(e,t){let r,i;return QR.forEach(o=>{let s=e[o.name];if(s===void 0)return;let l=hwe.get(o.name);(r||(r={}))[o.name]=l?wo(s)?l.get(s.toLowerCase()):s:HS(o,s,t||"",i||(i=[]))}),r&&{watchOptions:r,errors:i}}function Lhe(e){let t;return mw.forEach(r=>{let i=e[r.name];i!==void 0&&((t||(t={}))[r.name]=i)}),t}function fZ(e){return wo(e)?mZ(e):e}function mZ(e){switch(e){case"JS":return 1;case"JSX":return 2;case"TS":return 3;case"TSX":return 4;default:return 0}}function khe(e){let{lazyConfiguredProjectsFromExternalProject:t,...r}=e;return r}function uwe(e,t){for(let r of t)if(r.getProjectName()===e)return r}function _Z(e){return!!e.containingProjects}function dwe(e){return!!e.configFileInfo}function V2(e,t,r,i,o){var s;let l=(s=e.getCurrentProgram())==null?void 0:s.getResolvedProjectReferences();if(!l)return;let u,p=t?e.getResolvedProjectReferenceToRedirect(t):void 0;if(p){let m=pl(p.sourceFile.fileName),b=e.projectService.findConfiguredProjectByProjectName(m);if(b){let T=r(b);if(T)return T}else if(i!==0){u=new Map;let T=whe(l,e.getCompilerOptions(),(I,R)=>p===I?g(I,R):void 0,i,e.projectService,u);if(T)return T;u.clear()}}return whe(l,e.getCompilerOptions(),(m,b)=>p!==m?g(m,b):void 0,i,e.projectService,u);function g(m,b){let T=pl(m.sourceFile.fileName),I=e.projectService.findConfiguredProjectByProjectName(T)||(b===0?void 0:b===1?e.projectService.createConfiguredProject(T):b===2?e.projectService.createAndLoadConfiguredProject(T,o):C.assertNever(b));return I&&r(I)}}function whe(e,t,r,i,o,s){let l=t.disableReferencedProjectLoad?0:i;return Ke(e,u=>{if(!u)return;let p=pl(u.sourceFile.fileName),g=o.toCanonicalFileName(p),m=s?.get(g);if(m!==void 0&&m>=l)return;let b=r(u,l);return b||((s||(s=new Map)).set(g,l),u.references&&whe(u.references,u.commandLine.options,r,l,o,s))})}function pwe(e,t){return e.potentialProjectReferences&&mh(e.potentialProjectReferences,t)}function nat(e,t,r,i){return e.getCurrentProgram()?e.forEachResolvedProjectReference(t):e.isInitialLoadPending()?pwe(e,i):Ke(e.getProjectReferences(),r)}function Ohe(e,t,r){let i=r&&e.projectService.configuredProjects.get(r);return i&&t(i)}function fwe(e,t){return nat(e,r=>Ohe(e,t,r.sourceFile.path),r=>Ohe(e,t,e.toPath(c2(r))),r=>Ohe(e,t,r))}function rat(e,t){return`${wo(t)?`Config: ${t} `:t?`Project: ${t.getProjectName()} `:""}WatchType: ${e}`}function mwe(e){return!e.isScriptOpen()&&e.mTime!==void 0}function zI(e,t){return e.containsScriptInfo(t)&&!e.isSourceOfProjectReferenceRedirect(t.path)}function Gp(e){return e.invalidateResolutionsOfFailedLookupLocations(),e.dirty&&e.updateGraph()}function Fhe(e){k0(e)&&(e.projectOptions=!0)}function Whe(e){let t=1;return()=>e(t++)}function zhe(){return{idToCallbacks:new Map,pathToId:new Map}}function iat(e,t){if(!t||!e.eventHandler||!e.session)return;let r=zhe(),i=zhe(),o=zhe(),s=1;return e.session.addProtocolHandler("watchChange",I=>(g(I.arguments),{responseRequired:!1})),{watchFile:l,watchDirectory:u,getCurrentDirectory:()=>e.host.getCurrentDirectory(),useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames};function l(I,R){return p(r,I,R,M=>({eventName:$9,data:{id:M,path:I}}))}function u(I,R,M){return p(M?o:i,I,R,N=>({eventName:Q9,data:{id:N,path:I,recursive:!!M,ignoreUpdate:I.endsWith("/node_modules")?void 0:!0}}))}function p({pathToId:I,idToCallbacks:R},M,N,O){let H=e.toPath(M),K=I.get(H);K||I.set(H,K=s++);let Z=R.get(K);return Z||(R.set(K,Z=new Set),e.eventHandler(O(K))),Z.add(N),{close(){let V=R.get(K);V?.delete(N)&&(V.size||(R.delete(K),I.delete(H),e.eventHandler({eventName:Z9,data:{id:K}})))}}}function g(I){Do(I)?I.forEach(m):m(I)}function m({id:I,created:R,deleted:M,updated:N}){b(I,R,0),b(I,M,2),b(I,N,1)}function b(I,R,M){R?.length&&(T(r,I,R,(N,O)=>N(O,M)),T(i,I,R,(N,O)=>N(O)),T(o,I,R,(N,O)=>N(O)))}function T(I,R,M,N){var O;(O=I.idToCallbacks.get(R))==null||O.forEach(H=>{M.forEach(K=>N(H,Mu(K)))})}}function oat(){let e;return{get(){return e},set(t){e=t},clear(){e=void 0}}}function Bhe(e){return e.kind!==void 0}function Ghe(e){e.print(!1,!1,!1)}var j9,U9,d4,H9,q9,J9,K9,X9,Y9,hZ,$9,Q9,Z9,Vhe,_we,hwe,gwe,gZ,ez,tz,vZ,yZ,jhe,bZ,aat=A({"src/server/editorServices.ts"(){"use strict";lb(),sT(),Rhe(),j9=20*1024*1024,U9=4*1024*1024,d4="projectsUpdatedInBackground",H9="projectLoadingStart",q9="projectLoadingFinish",J9="largeFileReferenced",K9="configFileDiag",X9="projectLanguageServiceState",Y9="projectInfo",hZ="openFileInfo",$9="createFileWatcher",Q9="createDirectoryWatcher",Z9="closeFileWatcher",Vhe="*ensureProjectForOpenFiles*",_we=cwe(ug),hwe=cwe(QR),gwe=new Map(Object.entries({none:0,block:1,smart:2})),gZ={jquery:{match:/jquery(-[\d.]+)?(\.intellisense)?(\.min)?\.js$/i,types:["jquery"]},WinJS:{match:/^(.*\/winjs-[.\d]+)\/js\/base\.js$/i,exclude:[["^",1,"/.*"]],types:["winjs"]},Kendo:{match:/^(.*\/kendo(-ui)?)\/kendo\.all(\.min)?\.js$/i,exclude:[["^",1,"/.*"]],types:["kendo-ui"]},"Office Nuget":{match:/^(.*\/office\/1)\/excel-\d+\.debug\.js$/i,exclude:[["^",1,"/.*"]],types:["office"]},References:{match:/^(.*\/_references\.js)$/i,exclude:[["^",1,"$"]]}},ez={getFileName:e=>e,getScriptKind:(e,t)=>{let r;if(t){let i=Wx(e);i&&Et(t,o=>o.extension===i?(r=o.scriptKind,!0):!1)}return r},hasMixedContent:(e,t)=>Et(t,r=>r.isMixedContent&&Tl(e,r.extension))},tz={getFileName:e=>e.fileName,getScriptKind:e=>fZ(e.scriptKind),hasMixedContent:e=>!!e.hasMixedContent},vZ={close:$a},yZ=(e=>(e[e.Find=0]="Find",e[e.FindCreate=1]="FindCreate",e[e.FindCreateLoad=2]="FindCreateLoad",e))(yZ||{}),jhe=class B0e{constructor(t){this.filenameToScriptInfo=new Map,this.nodeModulesWatchers=new Map,this.filenameToScriptInfoVersion=new Map,this.allJsFilesForOpenFileTelemetry=new Map,this.externalProjectToConfiguredProjectMap=new Map,this.externalProjects=[],this.inferredProjects=[],this.configuredProjects=new Map,this.newInferredProjectName=Whe(uhe),this.newAutoImportProviderProjectName=Whe(dhe),this.newAuxiliaryProjectName=Whe(phe),this.openFiles=new Map,this.configFileForOpenFiles=new Map,this.openFilesWithNonRootedDiskPath=new Map,this.compilerOptionsForInferredProjectsPerProjectRoot=new Map,this.watchOptionsForInferredProjectsPerProjectRoot=new Map,this.typeAcquisitionForInferredProjectsPerProjectRoot=new Map,this.projectToSizeMap=new Map,this.configFileExistenceInfoCache=new Map,this.safelist=gZ,this.legacySafelist=new Map,this.pendingProjectUpdates=new Map,this.pendingEnsureProjectForOpenFiles=!1,this.seenProjects=new Map,this.sharedExtendedConfigFileWatchers=new Map,this.extendedConfigCache=new Map,this.baseline=$a,this.verifyDocumentRegistry=$a,this.verifyProgram=$a,this.onProjectCreation=$a;var r;this.host=t.host,this.logger=t.logger,this.cancellationToken=t.cancellationToken,this.useSingleInferredProject=t.useSingleInferredProject,this.useInferredProjectPerProjectRoot=t.useInferredProjectPerProjectRoot,this.typingsInstaller=t.typingsInstaller||B9,this.throttleWaitMilliseconds=t.throttleWaitMilliseconds,this.eventHandler=t.eventHandler,this.suppressDiagnosticEvents=t.suppressDiagnosticEvents,this.globalPlugins=t.globalPlugins||hc,this.pluginProbeLocations=t.pluginProbeLocations||hc,this.allowLocalPluginLoads=!!t.allowLocalPluginLoads,this.typesMapLocation=t.typesMapLocation===void 0?Zr(li(this.getExecutingFilePath()),"typesMap.json"):t.typesMapLocation,this.session=t.session,this.jsDocParsingMode=t.jsDocParsingMode,t.serverMode!==void 0?this.serverMode=t.serverMode:this.serverMode=0,this.host.realpath&&(this.realpathToScriptInfos=Xp()),this.currentDirectory=pl(this.host.getCurrentDirectory()),this.toCanonicalFileName=Pu(this.host.useCaseSensitiveFileNames),this.globalCacheLocationDirectoryPath=this.typingsInstaller.globalTypingsCacheLocation?zc(this.toPath(this.typingsInstaller.globalTypingsCacheLocation)):void 0,this.throttledOperations=new tZ(this.host,this.logger),this.typesMapLocation?this.loadTypesMap():this.logger.info("No types map provided; using the default"),this.typingsInstaller.attach(this),this.typingsCache=new aZ(this.typingsInstaller),this.hostConfiguration={formatCodeOptions:jF(this.host.newLine),preferences:Pf,hostInfo:"Unknown host",extraFileExtensions:[]},this.documentRegistry=HX(this.host.useCaseSensitiveFileNames,this.currentDirectory,this.jsDocParsingMode,this);let i=this.logger.hasLevel(3)?2:this.logger.loggingEnabled()?1:0,o=i!==0?s=>this.logger.info(s):$a;this.packageJsonCache=Hhe(this),this.watchFactory=this.serverMode!==0?{watchFile:m2,watchDirectory:m2}:gJ(iat(this,t.canUseWatchEvents)||this.host,i,o,rat),(r=t.incrementalVerifier)==null||r.call(t,this)}toPath(t){return rl(t,this.currentDirectory,this.toCanonicalFileName)}getExecutingFilePath(){return this.getNormalizedAbsolutePath(this.host.getExecutingFilePath())}getNormalizedAbsolutePath(t){return bo(t,this.host.getCurrentDirectory())}setDocument(t,r,i){let o=C.checkDefined(this.getScriptInfoForPath(r));o.cacheSourceFile={key:t,sourceFile:i}}getDocument(t,r){let i=this.getScriptInfoForPath(r);return i&&i.cacheSourceFile&&i.cacheSourceFile.key===t?i.cacheSourceFile.sourceFile:void 0}ensureInferredProjectsUpToDate_TestOnly(){this.ensureProjectStructuresUptoDate()}getCompilerOptionsForInferredProjects(){return this.compilerOptionsForInferredProjects}onUpdateLanguageServiceStateForProject(t,r){if(!this.eventHandler)return;let i={eventName:X9,data:{project:t,languageServiceEnabled:r}};this.eventHandler(i)}loadTypesMap(){try{let t=this.host.readFile(this.typesMapLocation);if(t===void 0){this.logger.info(`Provided types map file "${this.typesMapLocation}" doesn't exist`);return}let r=JSON.parse(t);for(let i of Object.keys(r.typesMap))r.typesMap[i].match=new RegExp(r.typesMap[i].match,"i");this.safelist=r.typesMap;for(let i in r.simpleMap)Rs(r.simpleMap,i)&&this.legacySafelist.set(i,r.simpleMap[i].toLowerCase())}catch(t){this.logger.info(`Error loading types map: ${t}`),this.safelist=gZ,this.legacySafelist.clear()}}updateTypingsForProject(t){let r=this.findProject(t.projectName);if(r)switch(t.kind){case Hw:r.updateTypingFiles(this.typingsCache.updateTypingsForProject(t.projectName,t.compilerOptions,t.typeAcquisition,t.unresolvedImports,t.typings));return;case qw:this.typingsCache.enqueueInstallTypingsForProject(r,r.lastCachedUnresolvedImportsList,!0);return}}watchTypingLocations(t){var r;(r=this.findProject(t.projectName))==null||r.watchTypingLocations(t.files)}delayEnsureProjectForOpenFiles(){this.openFiles.size&&(this.pendingEnsureProjectForOpenFiles=!0,this.throttledOperations.schedule(Vhe,2500,()=>{this.pendingProjectUpdates.size!==0?this.delayEnsureProjectForOpenFiles():this.pendingEnsureProjectForOpenFiles&&(this.ensureProjectForOpenFiles(),this.sendProjectsUpdatedInBackgroundEvent())}))}delayUpdateProjectGraph(t){if(t.markAsDirty(),c4(t))return;let r=t.getProjectName();this.pendingProjectUpdates.set(r,t),this.throttledOperations.schedule(r,250,()=>{this.pendingProjectUpdates.delete(r)&&Gp(t)})}hasPendingProjectUpdate(t){return this.pendingProjectUpdates.has(t.getProjectName())}sendProjectsUpdatedInBackgroundEvent(){if(!this.eventHandler)return;let t={eventName:d4,data:{openFiles:Vo(this.openFiles.keys(),r=>this.getScriptInfoForPath(r).fileName)}};this.eventHandler(t)}sendLargeFileReferencedEvent(t,r){if(!this.eventHandler)return;let i={eventName:J9,data:{file:t,fileSize:r,maxFileSize:U9}};this.eventHandler(i)}sendProjectLoadingStartEvent(t,r){if(!this.eventHandler)return;t.sendLoadingProjectFinish=!0;let i={eventName:H9,data:{project:t,reason:r}};this.eventHandler(i)}sendProjectLoadingFinishEvent(t){if(!this.eventHandler||!t.sendLoadingProjectFinish)return;t.sendLoadingProjectFinish=!1;let r={eventName:q9,data:{project:t}};this.eventHandler(r)}sendPerformanceEvent(t,r){this.performanceEventHandler&&this.performanceEventHandler({kind:t,durationMs:r})}delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(t){this.delayUpdateProjectGraph(t),this.delayEnsureProjectForOpenFiles()}delayUpdateProjectGraphs(t,r){if(t.length){for(let i of t)r&&i.clearSourceMapperCache(),this.delayUpdateProjectGraph(i);this.delayEnsureProjectForOpenFiles()}}setCompilerOptionsForInferredProjects(t,r){C.assert(r===void 0||this.useInferredProjectPerProjectRoot,"Setting compiler options per project root path is only supported when useInferredProjectPerProjectRoot is enabled");let i=V9(t),o=u4(t,r),s=Lhe(t);i.allowNonTsExtensions=!0;let l=r&&this.toCanonicalFileName(r);l?(this.compilerOptionsForInferredProjectsPerProjectRoot.set(l,i),this.watchOptionsForInferredProjectsPerProjectRoot.set(l,o||!1),this.typeAcquisitionForInferredProjectsPerProjectRoot.set(l,s)):(this.compilerOptionsForInferredProjects=i,this.watchOptionsForInferredProjects=o,this.typeAcquisitionForInferredProjects=s);for(let u of this.inferredProjects)(l?u.projectRootPath===l:!u.projectRootPath||!this.compilerOptionsForInferredProjectsPerProjectRoot.has(u.projectRootPath))&&(u.setCompilerOptions(i),u.setTypeAcquisition(s),u.setWatchOptions(o?.watchOptions),u.setProjectErrors(o?.errors),u.compileOnSaveEnabled=i.compileOnSave,u.markAsDirty(),this.delayUpdateProjectGraph(u));this.delayEnsureProjectForOpenFiles()}findProject(t){if(t!==void 0)return che(t)?uwe(t,this.inferredProjects):this.findExternalProjectByProjectName(t)||this.findConfiguredProjectByProjectName(pl(t))}forEachProject(t){this.externalProjects.forEach(t),this.configuredProjects.forEach(t),this.inferredProjects.forEach(t)}forEachEnabledProject(t){this.forEachProject(r=>{!r.isOrphan()&&r.languageServiceEnabled&&t(r)})}getDefaultProjectForFile(t,r){return r?this.ensureDefaultProjectForFile(t):this.tryGetDefaultProjectForFile(t)}tryGetDefaultProjectForFile(t){let r=wo(t)?this.getScriptInfoForNormalizedPath(t):t;return r&&!r.isOrphan()?r.getDefaultProject():void 0}ensureDefaultProjectForFile(t){return this.tryGetDefaultProjectForFile(t)||this.doEnsureDefaultProjectForFile(t)}doEnsureDefaultProjectForFile(t){this.ensureProjectStructuresUptoDate();let r=wo(t)?this.getScriptInfoForNormalizedPath(t):t;return r?r.getDefaultProject():(this.logErrorForScriptInfoNotFound(wo(t)?t:t.fileName),ny.ThrowNoProject())}getScriptInfoEnsuringProjectsUptoDate(t){return this.ensureProjectStructuresUptoDate(),this.getScriptInfo(t)}ensureProjectStructuresUptoDate(){let t=this.pendingEnsureProjectForOpenFiles;this.pendingProjectUpdates.clear();let r=i=>{t=Gp(i)||t};this.externalProjects.forEach(r),this.configuredProjects.forEach(r),this.inferredProjects.forEach(r),t&&this.ensureProjectForOpenFiles()}getFormatCodeOptions(t){let r=this.getScriptInfoForNormalizedPath(t);return r&&r.getFormatCodeSettings()||this.hostConfiguration.formatCodeOptions}getPreferences(t){let r=this.getScriptInfoForNormalizedPath(t);return{...this.hostConfiguration.preferences,...r&&r.getPreferences()}}getHostFormatCodeOptions(){return this.hostConfiguration.formatCodeOptions}getHostPreferences(){return this.hostConfiguration.preferences}onSourceFileChanged(t,r){r===2?this.handleDeletedFile(t):t.isScriptOpen()||(t.delayReloadNonMixedContentFile(),this.delayUpdateProjectGraphs(t.containingProjects,!1),this.handleSourceMapProjects(t))}handleSourceMapProjects(t){if(t.sourceMapFilePath)if(wo(t.sourceMapFilePath)){let r=this.getScriptInfoForPath(t.sourceMapFilePath);this.delayUpdateSourceInfoProjects(r&&r.sourceInfos)}else this.delayUpdateSourceInfoProjects(t.sourceMapFilePath.sourceInfos);this.delayUpdateSourceInfoProjects(t.sourceInfos),t.declarationInfoPath&&this.delayUpdateProjectsOfScriptInfoPath(t.declarationInfoPath)}delayUpdateSourceInfoProjects(t){t&&t.forEach((r,i)=>this.delayUpdateProjectsOfScriptInfoPath(i))}delayUpdateProjectsOfScriptInfoPath(t){let r=this.getScriptInfoForPath(t);r&&this.delayUpdateProjectGraphs(r.containingProjects,!0)}handleDeletedFile(t){if(this.stopWatchingScriptInfo(t),!t.isScriptOpen()){this.deleteScriptInfo(t);let r=t.containingProjects.slice();if(t.detachAllProjects(),this.delayUpdateProjectGraphs(r,!1),this.handleSourceMapProjects(t),t.closeSourceMapFileWatcher(),t.declarationInfoPath){let i=this.getScriptInfoForPath(t.declarationInfoPath);i&&(i.sourceMapFilePath=void 0)}}}watchWildcardDirectory(t,r,i,o){let s=this.watchFactory.watchDirectory(t,u=>{let p=this.toPath(u),g=o.cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(u,p);if(rc(p)==="package.json"&&!vO(p)&&(g&&g.fileExists||!g&&this.host.fileExists(u))){let b=this.getNormalizedAbsolutePath(u);this.logger.info(`Config: ${i} Detected new package.json: ${b}`),this.packageJsonCache.addOrUpdate(b,p),this.watchPackageJsonFile(b,p,l)}let m=this.findConfiguredProjectByProjectName(i);ww({watchedDirPath:this.toPath(t),fileOrDirectory:u,fileOrDirectoryPath:p,configFileName:i,extraFileExtensions:this.hostConfiguration.extraFileExtensions,currentDirectory:this.currentDirectory,options:o.parsedCommandLine.options,program:m?.getCurrentProgram()||o.parsedCommandLine.fileNames,useCaseSensitiveFileNames:this.host.useCaseSensitiveFileNames,writeLog:b=>this.logger.info(b),toPath:b=>this.toPath(b),getScriptKind:m?b=>m.getScriptKind(b):void 0})||(o.updateLevel!==2&&(o.updateLevel=1),o.projects.forEach((b,T)=>{if(!b)return;let I=this.getConfiguredProjectByCanonicalConfigFilePath(T);if(!I)return;let R=m===I?1:0;if(!(I.pendingUpdateLevel!==void 0&&I.pendingUpdateLevel>R))if(this.openFiles.has(p))if(C.checkDefined(this.getScriptInfoForPath(p)).isAttached(I)){let N=Math.max(R,I.openFileWatchTriggered.get(p)||0);I.openFileWatchTriggered.set(p,N)}else I.pendingUpdateLevel=R,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(I);else I.pendingUpdateLevel=R,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(I)}))},r,this.getWatchOptionsFromProjectWatchOptions(o.parsedCommandLine.watchOptions),kc.WildcardDirectory,i),l={packageJsonWatches:void 0,close(){var u;s&&(s.close(),s=void 0,(u=l.packageJsonWatches)==null||u.forEach(p=>{p.projects.delete(l),p.close()}),l.packageJsonWatches=void 0)}};return l}delayUpdateProjectsFromParsedConfigOnConfigFileChange(t,r){let i=this.configFileExistenceInfoCache.get(t);if(!i?.config)return!1;let o=!1;return i.config.updateLevel=2,i.config.projects.forEach((s,l)=>{let u=this.getConfiguredProjectByCanonicalConfigFilePath(l);if(u)if(o=!0,l===t){if(u.isInitialLoadPending())return;u.pendingUpdateLevel=2,u.pendingUpdateReason=r,this.delayUpdateProjectGraph(u)}else u.resolutionCache.removeResolutionsFromProjectReferenceRedirects(this.toPath(t)),this.delayUpdateProjectGraph(u)}),o}onConfigFileChanged(t,r){var i;let o=this.configFileExistenceInfoCache.get(t);if(r===2){o.exists=!1;let s=(i=o.config)!=null&&i.projects.has(t)?this.getConfiguredProjectByCanonicalConfigFilePath(t):void 0;s&&this.removeProject(s)}else o.exists=!0;this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(t,"Change in config file detected"),this.reloadConfiguredProjectForFiles(o.openFilesImpactedByConfigFile,!1,!0,r!==2?el:Dv,"Change in config file detected"),this.delayEnsureProjectForOpenFiles()}removeProject(t){switch(this.logger.info("`remove Project::"),t.print(!0,!0,!1),t.close(),C.shouldAssert(1)&&this.filenameToScriptInfo.forEach(r=>C.assert(!r.isAttached(t),"Found script Info still attached to project",()=>`${t.projectName}: ScriptInfos still attached: ${JSON.stringify(Vo(tS(this.filenameToScriptInfo.values(),i=>i.isAttached(t)?{fileName:i.fileName,projects:i.containingProjects.map(o=>o.projectName),hasMixedContent:i.hasMixedContent}:void 0)),void 0," ")}`)),this.pendingProjectUpdates.delete(t.getProjectName()),t.projectKind){case 2:vA(this.externalProjects,t),this.projectToSizeMap.delete(t.getProjectName());break;case 1:this.configuredProjects.delete(t.canonicalConfigFilePath),this.projectToSizeMap.delete(t.canonicalConfigFilePath);break;case 0:vA(this.inferredProjects,t);break}}assignOrphanScriptInfoToInferredProject(t,r){C.assert(t.isOrphan());let i=this.getOrCreateInferredProjectForProjectRootPathIfEnabled(t,r)||this.getOrCreateSingleInferredProjectIfEnabled()||this.getOrCreateSingleInferredWithoutProjectRoot(t.isDynamic?r||this.currentDirectory:li(dp(t.fileName)?t.fileName:bo(t.fileName,r?this.getNormalizedAbsolutePath(r):this.currentDirectory)));if(i.addRoot(t),t.containingProjects[0]!==i&&(Mx(t.containingProjects,i),t.containingProjects.unshift(i)),i.updateGraph(),!this.useSingleInferredProject&&!i.projectRootPath)for(let o of this.inferredProjects){if(o===i||o.isOrphan())continue;let s=o.getRootScriptInfos();C.assert(s.length===1||!!o.projectRootPath),s.length===1&&Ke(s[0].containingProjects,l=>l!==s[0].containingProjects[0]&&!l.isOrphan())&&o.removeFile(s[0],!0,!0)}return i}assignOrphanScriptInfosToInferredProject(){this.openFiles.forEach((t,r)=>{let i=this.getScriptInfoForPath(r);i.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(i,t)})}closeOpenFile(t,r){let i=t.isDynamic?!1:this.host.fileExists(t.fileName);t.close(i),this.stopWatchingConfigFilesForClosedScriptInfo(t);let o=this.toCanonicalFileName(t.fileName);this.openFilesWithNonRootedDiskPath.get(o)===t&&this.openFilesWithNonRootedDiskPath.delete(o);let s=!1;for(let l of t.containingProjects){if(k0(l)){t.hasMixedContent&&t.registerFileUpdate();let u=l.openFileWatchTriggered.get(t.path);u!==void 0&&(l.openFileWatchTriggered.delete(t.path),l.pendingUpdateLevel!==void 0&&l.pendingUpdateLevelthis.onConfigFileChanged(r,g),2e3,this.getWatchOptionsFromProjectWatchOptions((s=(o=l?.config)==null?void 0:o.parsedCommandLine)==null?void 0:s.watchOptions),kc.ConfigFile,i));let u=l.config.projects;u.set(i.canonicalConfigFilePath,u.get(i.canonicalConfigFilePath)||!1)}configFileExistenceImpactsRootOfInferredProject(t){return t.openFilesImpactedByConfigFile&&Bc(t.openFilesImpactedByConfigFile,el)}releaseParsedConfig(t,r){var i,o,s;let l=this.configFileExistenceInfoCache.get(t);(i=l.config)!=null&&i.projects.delete(r.canonicalConfigFilePath)&&((o=l.config)!=null&&o.projects.size||(l.config=void 0,_J(t,this.sharedExtendedConfigFileWatchers),C.checkDefined(l.watcher),(s=l.openFilesImpactedByConfigFile)!=null&&s.size?this.configFileExistenceImpactsRootOfInferredProject(l)?xF(Wc(li(t)))||(l.watcher.close(),l.watcher=vZ):(l.watcher.close(),l.watcher=void 0):(l.watcher.close(),this.configFileExistenceInfoCache.delete(t))))}closeConfigFileWatcherOnReleaseOfOpenFile(t){t.watcher&&!t.config&&!this.configFileExistenceImpactsRootOfInferredProject(t)&&(t.watcher.close(),t.watcher=void 0)}stopWatchingConfigFilesForClosedScriptInfo(t){C.assert(!t.isScriptOpen()),this.forEachConfigFileLocation(t,r=>{var i,o,s;let l=this.configFileExistenceInfoCache.get(r);if(l){let u=(i=l.openFilesImpactedByConfigFile)==null?void 0:i.get(t.path);(o=l.openFilesImpactedByConfigFile)==null||o.delete(t.path),u&&this.closeConfigFileWatcherOnReleaseOfOpenFile(l),!((s=l.openFilesImpactedByConfigFile)!=null&&s.size)&&!l.config&&(C.assert(!l.watcher),this.configFileExistenceInfoCache.delete(r))}})}startWatchingConfigFilesForInferredProjectRoot(t){C.assert(t.isScriptOpen()),this.forEachConfigFileLocation(t,(r,i)=>{let o=this.configFileExistenceInfoCache.get(r);o||(o={exists:this.host.fileExists(i)},this.configFileExistenceInfoCache.set(r,o)),(o.openFilesImpactedByConfigFile||(o.openFilesImpactedByConfigFile=new Map)).set(t.path,!0),o.watcher||(o.watcher=xF(Wc(li(r)))?this.watchFactory.watchFile(i,(s,l)=>this.onConfigFileChanged(r,l),2e3,this.hostConfiguration.watchOptions,kc.ConfigFileForInferredRoot):vZ)})}stopWatchingConfigFilesForInferredProjectRoot(t){this.forEachConfigFileLocation(t,r=>{var i;let o=this.configFileExistenceInfoCache.get(r);(i=o?.openFilesImpactedByConfigFile)!=null&&i.has(t.path)&&(C.assert(t.isScriptOpen()),o.openFilesImpactedByConfigFile.set(t.path,!1),this.closeConfigFileWatcherOnReleaseOfOpenFile(o))})}forEachConfigFileLocation(t,r){if(this.serverMode!==0)return;C.assert(!_Z(t)||this.openFiles.has(t.path));let i=this.openFiles.get(t.path);if(C.checkDefined(this.getScriptInfo(t.path)).isDynamic)return;let s=li(t.fileName),l=()=>ym(i,s,this.currentDirectory,!this.host.useCaseSensitiveFileNames),u=!i||!l(),p=!dwe(t);do{if(p){let m=a4(s,this.currentDirectory,this.toCanonicalFileName),b=Zr(s,"tsconfig.json"),T=r(Zr(m,"tsconfig.json"),b);if(T)return b;let I=Zr(s,"jsconfig.json");if(T=r(Zr(m,"jsconfig.json"),I),T)return I;if(a6(m))break}let g=li(s);if(g===s)break;s=g,p=!0}while(u||l())}findDefaultConfiguredProject(t){if(!t.isScriptOpen())return;let r=this.getConfigFileNameForFile(t),i=r&&this.findConfiguredProjectByProjectName(r);return i&&zI(i,t)?i:i?.getDefaultChildProjectFromProjectWithReferences(t)}getConfigFileNameForFile(t){if(!dwe(t)){let i=this.configFileForOpenFiles.get(t.path);if(i!==void 0)return i||void 0}this.logger.info(`Search path: ${li(t.fileName)}`);let r=this.forEachConfigFileLocation(t,(i,o)=>this.configFileExists(o,i,t));return r?this.logger.info(`For info: ${t.fileName} :: Config file name: ${r}`):this.logger.info(`For info: ${t.fileName} :: No config files found.`),_Z(t)&&this.configFileForOpenFiles.set(t.path,r||!1),r}printProjects(){this.logger.hasLevel(1)&&(this.logger.startGroup(),this.externalProjects.forEach(Ghe),this.configuredProjects.forEach(Ghe),this.inferredProjects.forEach(Ghe),this.logger.info("Open files: "),this.openFiles.forEach((t,r)=>{let i=this.getScriptInfoForPath(r);this.logger.info(` FileName: ${i.fileName} ProjectRootPath: ${t}`),this.logger.info(` Projects: ${i.containingProjects.map(o=>o.getProjectName())}`)}),this.logger.endGroup())}findConfiguredProjectByProjectName(t){let r=this.toCanonicalFileName(t);return this.getConfiguredProjectByCanonicalConfigFilePath(r)}getConfiguredProjectByCanonicalConfigFilePath(t){return this.configuredProjects.get(t)}findExternalProjectByProjectName(t){return uwe(t,this.externalProjects)}getFilenameForExceededTotalSizeLimitForNonTsFiles(t,r,i,o){if(r&&r.disableSizeLimit||!this.host.getFileSize)return;let s=j9;this.projectToSizeMap.set(t,0),this.projectToSizeMap.forEach(u=>s-=u||0);let l=0;for(let u of i){let p=o.getFileName(u);if(!UA(p)&&(l+=this.host.getFileSize(p),l>j9||l>s)){let g=i.map(m=>o.getFileName(m)).filter(m=>!UA(m)).map(m=>({name:m,size:this.host.getFileSize(m)})).sort((m,b)=>b.size-m.size).slice(0,5);return this.logger.info(`Non TS file size exceeded limit (${l}). Largest files: ${g.map(m=>`${m.name}:${m.size}`).join(", ")}`),p}}this.projectToSizeMap.set(t,l)}createExternalProject(t,r,i,o,s){let l=V9(i),u=u4(i,li(Mu(t))),p=new G9(t,this,this.documentRegistry,l,this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t,l,r,tz),i.compileOnSave===void 0?!0:i.compileOnSave,void 0,u?.watchOptions);return p.setProjectErrors(u?.errors),p.excludedFiles=s,this.addFilesToNonInferredProject(p,r,tz,o),this.externalProjects.push(p),p}sendProjectTelemetry(t){if(this.seenProjects.has(t.projectName)){Fhe(t);return}if(this.seenProjects.set(t.projectName,!0),!this.eventHandler||!this.host.createSHA256Hash){Fhe(t);return}let r=k0(t)?t.projectOptions:void 0;Fhe(t);let i={projectId:this.host.createSHA256Hash(t.projectName),fileStats:l4(t.getScriptInfos(),!0),compilerOptions:Tse(t.getCompilationSettings()),typeAcquisition:s(t.getTypeAcquisition()),extends:r&&r.configHasExtendsProperty,files:r&&r.configHasFilesProperty,include:r&&r.configHasIncludeProperty,exclude:r&&r.configHasExcludeProperty,compileOnSave:t.compileOnSaveEnabled,configFileName:o(),projectType:t instanceof G9?"external":"configured",languageServiceEnabled:t.languageServiceEnabled,version:Te};this.eventHandler({eventName:Y9,data:i});function o(){return k0(t)&&eZ(t.getConfigFilePath())||"other"}function s({enable:l,include:u,exclude:p}){return{enable:l,include:u!==void 0&&u.length!==0,exclude:p!==void 0&&p.length!==0}}}addFilesToNonInferredProject(t,r,i,o){this.updateNonInferredProjectFiles(t,r,i),t.setTypeAcquisition(o),t.markAsDirty()}createConfiguredProject(t){var r;(r=lr)==null||r.instant(lr.Phase.Session,"createConfiguredProject",{configFilePath:t}),this.logger.info(`Creating configuration project ${t}`);let i=this.toCanonicalFileName(t),o=this.configFileExistenceInfoCache.get(i);o?o.exists=!0:this.configFileExistenceInfoCache.set(i,o={exists:!0}),o.config||(o.config={cachedDirectoryStructureHost:dF(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),projects:new Map,updateLevel:2});let s=new pZ(t,i,this,this.documentRegistry,o.config.cachedDirectoryStructureHost);return this.configuredProjects.set(i,s),this.createConfigFileWatcherForParsedConfig(t,i,s),s}createConfiguredProjectWithDelayLoad(t,r){let i=this.createConfiguredProject(t);return i.pendingUpdateLevel=2,i.pendingUpdateReason=r,i}createAndLoadConfiguredProject(t,r){let i=this.createConfiguredProject(t);return this.loadConfiguredProject(i,r),i}createLoadAndUpdateConfiguredProject(t,r){let i=this.createAndLoadConfiguredProject(t,r);return i.updateGraph(),i}loadConfiguredProject(t,r){var i,o;(i=lr)==null||i.push(lr.Phase.Session,"loadConfiguredProject",{configFilePath:t.canonicalConfigFilePath}),this.sendProjectLoadingStartEvent(t,r);let s=va(t.getConfigFilePath()),l=this.ensureParsedConfigUptoDate(s,t.canonicalConfigFilePath,this.configFileExistenceInfoCache.get(t.canonicalConfigFilePath),t),u=l.config.parsedCommandLine;C.assert(!!u.fileNames);let p=u.options;t.projectOptions||(t.projectOptions={configHasExtendsProperty:u.raw.extends!==void 0,configHasFilesProperty:u.raw.files!==void 0,configHasIncludeProperty:u.raw.include!==void 0,configHasExcludeProperty:u.raw.exclude!==void 0}),t.canConfigFileJsonReportNoInputFiles=LN(u.raw),t.setProjectErrors(u.options.configFile.parseDiagnostics),t.updateReferences(u.projectReferences);let g=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.canonicalConfigFilePath,p,u.fileNames,ez);g?(t.disableLanguageService(g),this.configFileExistenceInfoCache.forEach((b,T)=>this.stopWatchingWildCards(T,t))):(t.setCompilerOptions(p),t.setWatchOptions(u.watchOptions),t.enableLanguageService(),this.watchWildcards(s,l,t)),t.enablePluginsWithOptions(p);let m=u.fileNames.concat(t.getExternalFiles(2));this.updateRootAndOptionsOfNonInferredProject(t,m,ez,p,u.typeAcquisition,u.compileOnSave,u.watchOptions),(o=lr)==null||o.pop()}ensureParsedConfigUptoDate(t,r,i,o){var s,l,u;if(i.config){if(!i.config.updateLevel)return i;if(i.config.updateLevel===1)return this.reloadFileNamesOfParsedConfig(t,i.config),i}let p=((s=i.config)==null?void 0:s.cachedDirectoryStructureHost)||dF(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),g=MN(t,R=>this.host.readFile(R)),m=iw(t,wo(g)?g:""),b=m.parseDiagnostics;wo(g)||b.push(g);let T=lw(m,p,li(t),{},t,[],this.hostConfiguration.extraFileExtensions,this.extendedConfigCache);T.errors.length&&b.push(...T.errors),this.logger.info(`Config: ${t} : ${JSON.stringify({rootNames:T.fileNames,options:T.options,watchOptions:T.watchOptions,projectReferences:T.projectReferences},void 0," ")}`);let I=(l=i.config)==null?void 0:l.parsedCommandLine;return i.config?(i.config.parsedCommandLine=T,i.config.watchedDirectoriesStale=!0,i.config.updateLevel=void 0):i.config={parsedCommandLine:T,cachedDirectoryStructureHost:p,projects:new Map},!I&&!$3(this.getWatchOptionsFromProjectWatchOptions(void 0),this.getWatchOptionsFromProjectWatchOptions(T.watchOptions))&&((u=i.watcher)==null||u.close(),i.watcher=void 0),this.createConfigFileWatcherForParsedConfig(t,r,o),pF(r,T.options,this.sharedExtendedConfigFileWatchers,(R,M)=>this.watchFactory.watchFile(R,()=>{var N;fF(this.extendedConfigCache,M,H=>this.toPath(H));let O=!1;(N=this.sharedExtendedConfigFileWatchers.get(M))==null||N.projects.forEach(H=>{O=this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(H,`Change in extended config file ${R} detected`)||O}),O&&this.delayEnsureProjectForOpenFiles()},2e3,this.hostConfiguration.watchOptions,kc.ExtendedConfigFile,t),R=>this.toPath(R)),i}watchWildcards(t,{exists:r,config:i},o){if(i.projects.set(o.canonicalConfigFilePath,!0),r){if(i.watchedDirectories&&!i.watchedDirectoriesStale)return;i.watchedDirectoriesStale=!1,kw(i.watchedDirectories||(i.watchedDirectories=new Map),i.parsedCommandLine.wildcardDirectories,(s,l)=>this.watchWildcardDirectory(s,l,t,i))}else{if(i.watchedDirectoriesStale=!1,!i.watchedDirectories)return;ep(i.watchedDirectories,Cf),i.watchedDirectories=void 0}}stopWatchingWildCards(t,r){let i=this.configFileExistenceInfoCache.get(t);!i.config||!i.config.projects.get(r.canonicalConfigFilePath)||(i.config.projects.set(r.canonicalConfigFilePath,!1),!Bc(i.config.projects,el)&&(i.config.watchedDirectories&&(ep(i.config.watchedDirectories,Cf),i.config.watchedDirectories=void 0),i.config.watchedDirectoriesStale=void 0))}updateNonInferredProjectFiles(t,r,i){let o=t.getRootFilesMap(),s=new Map;for(let l of r){let u=i.getFileName(l),p=pl(u),g=s4(p),m;if(!g&&!t.fileExists(u)){m=a4(p,this.currentDirectory,this.toCanonicalFileName);let b=o.get(m);b?(b.info&&(t.removeFile(b.info,!1,!0),b.info=void 0),b.fileName=p):o.set(m,{fileName:p})}else{let b=i.getScriptKind(l,this.hostConfiguration.extraFileExtensions),T=i.hasMixedContent(l,this.hostConfiguration.extraFileExtensions),I=C.checkDefined(this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(p,t.currentDirectory,b,T,t.directoryStructureHost));m=I.path;let R=o.get(m);!R||R.info!==I?(t.addRoot(I,p),I.isScriptOpen()&&this.removeRootOfInferredProjectIfNowPartOfOtherProject(I)):R.fileName=p}s.set(m,!0)}o.size>s.size&&o.forEach((l,u)=>{s.has(u)||(l.info?t.removeFile(l.info,t.fileExists(l.info.fileName),!0):o.delete(u))})}updateRootAndOptionsOfNonInferredProject(t,r,i,o,s,l,u){t.setCompilerOptions(o),t.setWatchOptions(u),l!==void 0&&(t.compileOnSaveEnabled=l),this.addFilesToNonInferredProject(t,r,i,s)}reloadFileNamesOfConfiguredProject(t){let r=this.reloadFileNamesOfParsedConfig(t.getConfigFilePath(),this.configFileExistenceInfoCache.get(t.canonicalConfigFilePath).config);return t.updateErrorOnNoInputFiles(r),this.updateNonInferredProjectFiles(t,r.concat(t.getExternalFiles(1)),ez),t.markAsDirty(),t.updateGraph()}reloadFileNamesOfParsedConfig(t,r){if(r.updateLevel===void 0)return r.parsedCommandLine.fileNames;C.assert(r.updateLevel===1);let i=r.parsedCommandLine.options.configFile.configFileSpecs,o=kN(i,li(t),r.parsedCommandLine.options,r.cachedDirectoryStructureHost,this.hostConfiguration.extraFileExtensions);return r.parsedCommandLine={...r.parsedCommandLine,fileNames:o},o}setFileNamesOfAutpImportProviderOrAuxillaryProject(t,r){this.updateNonInferredProjectFiles(t,r,ez)}reloadConfiguredProject(t,r,i,o){let s=t.getCachedDirectoryStructureHost();o&&this.clearSemanticCache(t),s.clearCache();let l=t.getConfigFilePath();this.logger.info(`${i?"Loading":"Reloading"} configured project ${l}`),this.loadConfiguredProject(t,r),t.updateGraph(),this.sendConfigFileDiagEvent(t,l)}clearSemanticCache(t){t.resolutionCache.clear(),t.getLanguageService(!1).cleanupSemanticCache(),t.cleanupProgram(),t.markAsDirty()}sendConfigFileDiagEvent(t,r){if(!this.eventHandler||this.suppressDiagnosticEvents)return;let i=t.getLanguageService().getCompilerOptionsDiagnostics();i.push(...t.getAllProjectErrors()),this.eventHandler({eventName:K9,data:{configFileName:t.getConfigFilePath(),diagnostics:i,triggerFile:r}})}getOrCreateInferredProjectForProjectRootPathIfEnabled(t,r){if(!this.useInferredProjectPerProjectRoot||t.isDynamic&&r===void 0)return;if(r){let o=this.toCanonicalFileName(r);for(let s of this.inferredProjects)if(s.projectRootPath===o)return s;return this.createInferredProject(r,!1,r)}let i;for(let o of this.inferredProjects)o.projectRootPath&&ym(o.projectRootPath,t.path,this.host.getCurrentDirectory(),!this.host.useCaseSensitiveFileNames)&&(i&&i.projectRootPath.length>o.projectRootPath.length||(i=o));return i}getOrCreateSingleInferredProjectIfEnabled(){if(this.useSingleInferredProject)return this.inferredProjects.length>0&&this.inferredProjects[0].projectRootPath===void 0?this.inferredProjects[0]:this.createInferredProject("",!0)}getOrCreateSingleInferredWithoutProjectRoot(t){C.assert(!this.useSingleInferredProject);let r=this.toCanonicalFileName(this.getNormalizedAbsolutePath(t));for(let i of this.inferredProjects)if(!i.projectRootPath&&i.isOrphan()&&i.canonicalCurrentDirectory===r)return i;return this.createInferredProject(t)}createInferredProject(t,r,i){let o=i&&this.compilerOptionsForInferredProjectsPerProjectRoot.get(i)||this.compilerOptionsForInferredProjects,s,l;i&&(s=this.watchOptionsForInferredProjectsPerProjectRoot.get(i),l=this.typeAcquisitionForInferredProjectsPerProjectRoot.get(i)),s===void 0&&(s=this.watchOptionsForInferredProjects),l===void 0&&(l=this.typeAcquisitionForInferredProjects),s=s||void 0;let u=new lZ(this,this.documentRegistry,o,s?.watchOptions,i,t,l);return u.setProjectErrors(s?.errors),r?this.inferredProjects.unshift(u):this.inferredProjects.push(u),u}getOrCreateScriptInfoNotOpenedByClient(t,r,i){return this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(pl(t),r,void 0,void 0,i)}getScriptInfo(t){return this.getScriptInfoForNormalizedPath(pl(t))}getScriptInfoOrConfig(t){let r=pl(t),i=this.getScriptInfoForNormalizedPath(r);if(i)return i;let o=this.configuredProjects.get(this.toPath(t));return o&&o.getCompilerOptions().configFile}logErrorForScriptInfoNotFound(t){let r=Vo(this.filenameToScriptInfo.entries(),([i,o])=>({path:i,fileName:o.fileName}));this.logger.msg(`Could not find file ${JSON.stringify(t)}. +All files are: ${JSON.stringify(r)}`,"Err")}getSymlinkedProjects(t){let r;if(this.realpathToScriptInfos){let o=t.getRealpathIfDifferent();o&&Ke(this.realpathToScriptInfos.get(o),i),Ke(this.realpathToScriptInfos.get(t.path),i)}return r;function i(o){if(o!==t)for(let s of o.containingProjects)s.languageServiceEnabled&&!s.isOrphan()&&!s.getCompilerOptions().preserveSymlinks&&!t.isAttached(s)&&(r?Bc(r,(l,u)=>u===o.path?!1:wr(l,s))||r.add(o.path,s):(r=Xp(),r.add(o.path,s)))}}watchClosedScriptInfo(t){if(C.assert(!t.fileWatcher),!t.isDynamicOrHasMixedContent()&&(!this.globalCacheLocationDirectoryPath||!uo(t.path,this.globalCacheLocationDirectoryPath))){let r=t.fileName.indexOf("/node_modules/");!this.host.getModifiedTime||r===-1?t.fileWatcher=this.watchFactory.watchFile(t.fileName,(i,o)=>this.onSourceFileChanged(t,o),500,this.hostConfiguration.watchOptions,kc.ClosedScriptInfo):(t.mTime=this.getModifiedTime(t),t.fileWatcher=this.watchClosedScriptInfoInNodeModules(t.fileName.substring(0,r)))}}createNodeModulesWatcher(t,r){let i=this.watchFactory.watchDirectory(t,s=>{var l;let u=IF(this.toPath(s));if(!u)return;let p=rc(u);if((l=o.affectedModuleSpecifierCacheProjects)!=null&&l.size&&(p==="package.json"||p==="node_modules")&&o.affectedModuleSpecifierCacheProjects.forEach(g=>{var m;(m=g.getModuleSpecifierCache())==null||m.clear()}),o.refreshScriptInfoRefCount)if(r===u)this.refreshScriptInfosInDirectory(r);else{let g=this.getScriptInfoForPath(u);g?mwe(g)&&this.refreshScriptInfo(g):EA(u)||this.refreshScriptInfosInDirectory(u)}},1,this.hostConfiguration.watchOptions,kc.NodeModules),o={refreshScriptInfoRefCount:0,affectedModuleSpecifierCacheProjects:void 0,close:()=>{var s;i&&!o.refreshScriptInfoRefCount&&!((s=o.affectedModuleSpecifierCacheProjects)!=null&&s.size)&&(i.close(),i=void 0,this.nodeModulesWatchers.delete(r))}};return this.nodeModulesWatchers.set(r,o),o}watchPackageJsonsInNodeModules(t,r){var i;let o=this.toPath(t),s=this.nodeModulesWatchers.get(o)||this.createNodeModulesWatcher(t,o);return C.assert(!((i=s.affectedModuleSpecifierCacheProjects)!=null&&i.has(r))),(s.affectedModuleSpecifierCacheProjects||(s.affectedModuleSpecifierCacheProjects=new Set)).add(r),{close:()=>{var l;(l=s.affectedModuleSpecifierCacheProjects)==null||l.delete(r),s.close()}}}watchClosedScriptInfoInNodeModules(t){let r=t+"/node_modules",i=this.toPath(r),o=this.nodeModulesWatchers.get(i)||this.createNodeModulesWatcher(r,i);return o.refreshScriptInfoRefCount++,{close:()=>{o.refreshScriptInfoRefCount--,o.close()}}}getModifiedTime(t){return(this.host.getModifiedTime(t.fileName)||kp).getTime()}refreshScriptInfo(t){let r=this.getModifiedTime(t);if(r!==t.mTime){let i=bV(t.mTime,r);t.mTime=r,this.onSourceFileChanged(t,i)}}refreshScriptInfosInDirectory(t){t=t+il,this.filenameToScriptInfo.forEach(r=>{mwe(r)&&uo(r.path,t)&&this.refreshScriptInfo(r)})}stopWatchingScriptInfo(t){t.fileWatcher&&(t.fileWatcher.close(),t.fileWatcher=void 0)}getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(t,r,i,o,s){if(dp(t)||s4(t))return this.getOrCreateScriptInfoWorker(t,r,!1,void 0,i,o,s);let l=this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(t));if(l)return l}getOrCreateScriptInfoOpenedByClientForNormalizedPath(t,r,i,o,s){return this.getOrCreateScriptInfoWorker(t,r,!0,i,o,s)}getOrCreateScriptInfoForNormalizedPath(t,r,i,o,s,l){return this.getOrCreateScriptInfoWorker(t,this.currentDirectory,r,i,o,s,l)}getOrCreateScriptInfoWorker(t,r,i,o,s,l,u){C.assert(o===void 0||i,"ScriptInfo needs to be opened by client to be able to set its user defined content");let p=a4(t,r,this.toCanonicalFileName),g=this.getScriptInfoForPath(p);if(!g){let m=s4(t);if(C.assert(dp(t)||m||i,"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:Vo(this.openFilesWithNonRootedDiskPath.keys())})} +Script info with non-dynamic relative file name can only be open script info or in context of host currentDirectory`),C.assert(!dp(t)||this.currentDirectory===r||!this.openFilesWithNonRootedDiskPath.has(this.toCanonicalFileName(t)),"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:Vo(this.openFilesWithNonRootedDiskPath.keys())})} +Open script files with non rooted disk path opened with current directory context cannot have same canonical names`),C.assert(!m||this.currentDirectory===r||this.useInferredProjectPerProjectRoot,"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:Vo(this.openFilesWithNonRootedDiskPath.keys())})} +Dynamic files must always be opened with service's current directory or service should support inferred project per projectRootPath.`),!i&&!m&&!(u||this.host).fileExists(t))return;g=new oZ(this.host,t,s,!!l,p,this.filenameToScriptInfoVersion.get(p)),this.filenameToScriptInfo.set(g.path,g),this.filenameToScriptInfoVersion.delete(g.path),i?!dp(t)&&(!m||this.currentDirectory!==r)&&this.openFilesWithNonRootedDiskPath.set(this.toCanonicalFileName(t),g):this.watchClosedScriptInfo(g)}return i&&(this.stopWatchingScriptInfo(g),g.open(o),l&&g.registerFileUpdate()),g}getScriptInfoForNormalizedPath(t){return!dp(t)&&this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(t))||this.getScriptInfoForPath(a4(t,this.currentDirectory,this.toCanonicalFileName))}getScriptInfoForPath(t){return this.filenameToScriptInfo.get(t)}getDocumentPositionMapper(t,r,i){let o=this.getOrCreateScriptInfoNotOpenedByClient(r,t.currentDirectory,this.host);if(!o){i&&t.addGeneratedFileWatch(r,i);return}if(o.getSnapshot(),wo(o.sourceMapFilePath)){let m=this.getScriptInfoForPath(o.sourceMapFilePath);if(m&&(m.getSnapshot(),m.documentPositionMapper!==void 0))return m.sourceInfos=this.addSourceInfoToSourceMap(i,t,m.sourceInfos),m.documentPositionMapper?m.documentPositionMapper:void 0;o.sourceMapFilePath=void 0}else if(o.sourceMapFilePath){o.sourceMapFilePath.sourceInfos=this.addSourceInfoToSourceMap(i,t,o.sourceMapFilePath.sourceInfos);return}else if(o.sourceMapFilePath!==void 0)return;let s,l,u=(m,b)=>{let T=this.getOrCreateScriptInfoNotOpenedByClient(m,t.currentDirectory,this.host);if(!T){l=b;return}s=T;let I=T.getSnapshot();return T.documentPositionMapper!==void 0?T.documentPositionMapper:v2(I)},p=t.projectName,g=XX({getCanonicalFileName:this.toCanonicalFileName,log:m=>this.logger.info(m),getSourceFileLike:m=>this.getSourceFileLike(m,p,o)},o.fileName,o.textStorage.getLineInfo(),u);return u=void 0,s?(o.sourceMapFilePath=s.path,s.declarationInfoPath=o.path,s.documentPositionMapper=g||!1,s.sourceInfos=this.addSourceInfoToSourceMap(i,t,s.sourceInfos)):l?o.sourceMapFilePath={watcher:this.addMissingSourceMapFile(t.currentDirectory===this.currentDirectory?l:bo(l,t.currentDirectory),o.path),sourceInfos:this.addSourceInfoToSourceMap(i,t)}:o.sourceMapFilePath=!1,g}addSourceInfoToSourceMap(t,r,i){if(t){let o=this.getOrCreateScriptInfoNotOpenedByClient(t,r.currentDirectory,r.directoryStructureHost);(i||(i=new Set)).add(o.path)}return i}addMissingSourceMapFile(t,r){return this.watchFactory.watchFile(t,()=>{let o=this.getScriptInfoForPath(r);o&&o.sourceMapFilePath&&!wo(o.sourceMapFilePath)&&(this.delayUpdateProjectGraphs(o.containingProjects,!0),this.delayUpdateSourceInfoProjects(o.sourceMapFilePath.sourceInfos),o.closeSourceMapFileWatcher())},2e3,this.hostConfiguration.watchOptions,kc.MissingSourceMapFile)}getSourceFileLike(t,r,i){let o=r.projectName?r:this.findProject(r);if(o){let l=o.toPath(t),u=o.getSourceFile(l);if(u&&u.resolvedPath===l)return u}let s=this.getOrCreateScriptInfoNotOpenedByClient(t,(o||this).currentDirectory,o?o.directoryStructureHost:this.host);if(s){if(i&&wo(i.sourceMapFilePath)&&s!==i){let l=this.getScriptInfoForPath(i.sourceMapFilePath);l&&(l.sourceInfos||(l.sourceInfos=new Set)).add(s.path)}return s.cacheSourceFile?s.cacheSourceFile.sourceFile:(s.sourceFileLike||(s.sourceFileLike={get text(){return C.fail("shouldnt need text"),""},getLineAndCharacterOfPosition:l=>{let u=s.positionToLineOffset(l);return{line:u.line-1,character:u.offset-1}},getPositionOfLineAndCharacter:(l,u,p)=>s.lineOffsetToPosition(l+1,u+1,p)}),s.sourceFileLike)}}setPerformanceEventHandler(t){this.performanceEventHandler=t}setHostConfiguration(t){var r;if(t.file){let i=this.getScriptInfoForNormalizedPath(pl(t.file));i&&(i.setOptions(G2(t.formatOptions),t.preferences),this.logger.info(`Host configuration update for file ${t.file}`))}else{if(t.hostInfo!==void 0&&(this.hostConfiguration.hostInfo=t.hostInfo,this.logger.info(`Host information ${t.hostInfo}`)),t.formatOptions&&(this.hostConfiguration.formatCodeOptions={...this.hostConfiguration.formatCodeOptions,...G2(t.formatOptions)},this.logger.info("Format host information updated")),t.preferences){let{lazyConfiguredProjectsFromExternalProject:i,includePackageJsonAutoImports:o}=this.hostConfiguration.preferences;this.hostConfiguration.preferences={...this.hostConfiguration.preferences,...t.preferences},i&&!this.hostConfiguration.preferences.lazyConfiguredProjectsFromExternalProject&&this.externalProjectToConfiguredProjectMap.forEach(s=>s.forEach(l=>{!l.isClosed()&&l.hasExternalProjectRef()&&l.pendingUpdateLevel===2&&!this.pendingProjectUpdates.has(l.getProjectName())&&l.updateGraph()})),o!==t.preferences.includePackageJsonAutoImports&&this.forEachProject(s=>{s.onAutoImportProviderSettingsChanged()})}t.extraFileExtensions&&(this.hostConfiguration.extraFileExtensions=t.extraFileExtensions,this.reloadProjects(),this.logger.info("Host file extension mappings updated")),t.watchOptions&&(this.hostConfiguration.watchOptions=(r=u4(t.watchOptions))==null?void 0:r.watchOptions,this.logger.info(`Host watch options changed to ${JSON.stringify(this.hostConfiguration.watchOptions)}, it will be take effect for next watches.`))}}getWatchOptions(t){return this.getWatchOptionsFromProjectWatchOptions(t.getWatchOptions())}getWatchOptionsFromProjectWatchOptions(t){return t&&this.hostConfiguration.watchOptions?{...this.hostConfiguration.watchOptions,...t}:t||this.hostConfiguration.watchOptions}closeLog(){this.logger.close()}reloadProjects(){this.logger.info("reload projects."),this.filenameToScriptInfo.forEach(t=>{this.openFiles.has(t.path)||t.fileWatcher&&this.onSourceFileChanged(t,this.host.fileExists(t.fileName)?1:2)}),this.pendingProjectUpdates.forEach((t,r)=>{this.throttledOperations.cancel(r),this.pendingProjectUpdates.delete(r)}),this.throttledOperations.cancel(Vhe),this.pendingEnsureProjectForOpenFiles=!1,this.configFileExistenceInfoCache.forEach(t=>{t.config&&(t.config.updateLevel=2)}),this.reloadConfiguredProjectForFiles(this.openFiles,!0,!1,Dv,"User requested reload projects"),this.externalProjects.forEach(t=>{this.clearSemanticCache(t),t.updateGraph()}),this.inferredProjects.forEach(t=>this.clearSemanticCache(t)),this.ensureProjectForOpenFiles(),this.logger.info("After reloading projects.."),this.printProjects()}reloadConfiguredProjectForFiles(t,r,i,o,s){let l=new Map,u=p=>{l.has(p.canonicalConfigFilePath)||(l.set(p.canonicalConfigFilePath,!0),this.reloadConfiguredProject(p,s,!1,r))};t?.forEach((p,g)=>{if(this.configFileForOpenFiles.delete(g),!o(p))return;let m=this.getScriptInfoForPath(g);C.assert(m.isScriptOpen());let b=this.getConfigFileNameForFile(m);if(b){let T=this.findConfiguredProjectByProjectName(b)||this.createConfiguredProject(b);l.has(T.canonicalConfigFilePath)||(l.set(T.canonicalConfigFilePath,!0),i?(T.pendingUpdateLevel=2,T.pendingUpdateReason=s,r&&this.clearSemanticCache(T),this.delayUpdateProjectGraph(T)):(this.reloadConfiguredProject(T,s,!1,r),zI(T,m)||V2(T,m.path,R=>(u(R),zI(R,m)),1)&&V2(T,void 0,u,0)))}})}removeRootOfInferredProjectIfNowPartOfOtherProject(t){C.assert(t.containingProjects.length>0);let r=t.containingProjects[0];!r.isOrphan()&&B2(r)&&r.isRoot(t)&&Ke(t.containingProjects,i=>i!==r&&!i.isOrphan())&&r.removeFile(t,!0,!0)}ensureProjectForOpenFiles(){this.logger.info("Before ensureProjectForOpenFiles:"),this.printProjects(),this.openFiles.forEach((t,r)=>{let i=this.getScriptInfoForPath(r);i.isOrphan()?this.assignOrphanScriptInfoToInferredProject(i,t):this.removeRootOfInferredProjectIfNowPartOfOtherProject(i)}),this.pendingEnsureProjectForOpenFiles=!1,this.inferredProjects.forEach(Gp),this.logger.info("After ensureProjectForOpenFiles:"),this.printProjects()}openClientFile(t,r,i,o){return this.openClientFileWithNormalizedPath(pl(t),r,i,!1,o?pl(o):void 0)}getOriginalLocationEnsuringConfiguredProject(t,r){let i=t.isSourceOfProjectReferenceRedirect(r.fileName),o=i?r:t.getSourceMapper().tryGetSourcePosition(r);if(!o)return;let{fileName:s}=o,l=this.getScriptInfo(s);if(!l&&!this.host.fileExists(s))return;let u={fileName:pl(s),path:this.toPath(s)},p=this.getConfigFileNameForFile(u);if(!p)return;let g=this.findConfiguredProjectByProjectName(p);if(!g){if(t.getCompilerOptions().disableReferencedProjectLoad)return i?r:l?.containingProjects.length?o:r;g=this.createAndLoadConfiguredProject(p,`Creating project for original file: ${u.fileName}${r!==o?" for location: "+r.fileName:""}`)}Gp(g);let m=I=>{let R=this.getScriptInfo(s);return R&&zI(I,R)};if(g.isSolution()||!m(g)){if(g=V2(g,s,I=>(Gp(I),m(I)?I:void 0),2,`Creating project referenced in solution ${g.projectName} to find possible configured project for original file: ${u.fileName}${r!==o?" for location: "+r.fileName:""}`),!g)return;if(g===t)return o}T(g);let b=this.getScriptInfo(s);if(!b||!b.containingProjects.length)return;return b.containingProjects.forEach(I=>{k0(I)&&T(I)}),o;function T(I){t.originalConfiguredProjects||(t.originalConfiguredProjects=new Set),t.originalConfiguredProjects.add(I.canonicalConfigFilePath)}}fileExists(t){return!!this.getScriptInfoForNormalizedPath(t)||this.host.fileExists(t)}findExternalProjectContainingOpenScriptInfo(t){return vn(this.externalProjects,r=>(Gp(r),r.containsScriptInfo(t)))}getOrCreateOpenScriptInfo(t,r,i,o,s){let l=this.getOrCreateScriptInfoOpenedByClientForNormalizedPath(t,s?this.getNormalizedAbsolutePath(s):this.currentDirectory,r,i,o);return this.openFiles.set(l.path,s),l}assignProjectToOpenedScriptInfo(t){let r,i,o=this.findExternalProjectContainingOpenScriptInfo(t),s,l,u=!1;return!o&&this.serverMode===0&&(r=this.getConfigFileNameForFile(t),r&&(o=this.findConfiguredProjectByProjectName(r),o?Gp(o):(o=this.createLoadAndUpdateConfiguredProject(r,`Creating possible configured project for ${t.fileName} to open`),u=!0),l=o.containsScriptInfo(t)?o:void 0,s=o,zI(o,t)||V2(o,t.path,p=>{if(Gp(p),Do(s)?s.push(p):s=[o,p],zI(p,t))return l=p,p;!l&&p.containsScriptInfo(t)&&(l=p)},2,`Creating project referenced in solution ${o.projectName} to find possible configured project for ${t.fileName} to open`),l?(r=l.getConfigFilePath(),(l!==o||u)&&(i=l.getAllProjectErrors(),this.sendConfigFileDiagEvent(l,t.fileName))):r=void 0,this.createAncestorProjects(t,o))),t.containingProjects.forEach(Gp),t.isOrphan()&&(Do(s)?s.forEach(p=>this.sendConfigFileDiagEvent(p,t.fileName)):s&&this.sendConfigFileDiagEvent(s,t.fileName),C.assert(this.openFiles.has(t.path)),this.assignOrphanScriptInfoToInferredProject(t,this.openFiles.get(t.path))),C.assert(!t.isOrphan()),{configFileName:r,configFileErrors:i,retainProjects:s}}createAncestorProjects(t,r){if(t.isAttached(r))for(;;){if(!r.isInitialLoadPending()&&(!r.getCompilerOptions().composite||r.getCompilerOptions().disableSolutionSearching))return;let i=this.getConfigFileNameForFile({fileName:r.getConfigFilePath(),path:t.path,configFileInfo:!0});if(!i)return;let o=this.findConfiguredProjectByProjectName(i)||this.createConfiguredProjectWithDelayLoad(i,`Creating project possibly referencing default composite project ${r.getProjectName()} of open file ${t.fileName}`);o.isInitialLoadPending()&&o.setPotentialProjectReference(r.canonicalConfigFilePath),r=o}}loadAncestorProjectTree(t){t=t||Rx(this.configuredProjects,(i,o)=>o.isInitialLoadPending()?void 0:[i,!0]);let r=new Set;for(let i of Vo(this.configuredProjects.values()))pwe(i,o=>t.has(o))&&Gp(i),this.ensureProjectChildren(i,t,r)}ensureProjectChildren(t,r,i){var o;if(!Av(i,t.canonicalConfigFilePath)||t.getCompilerOptions().disableReferencedProjectLoad)return;let s=(o=t.getCurrentProgram())==null?void 0:o.getResolvedProjectReferences();if(s)for(let l of s){if(!l)continue;let u=NJ(l.references,m=>r.has(m.sourceFile.path)?m:void 0);if(!u)continue;let p=pl(l.sourceFile.fileName),g=t.projectService.findConfiguredProjectByProjectName(p)||t.projectService.createAndLoadConfiguredProject(p,`Creating project referenced by : ${t.projectName} as it references project ${u.sourceFile.fileName}`);Gp(g),this.ensureProjectChildren(g,r,i)}}cleanupAfterOpeningFile(t){this.removeOrphanConfiguredProjects(t);for(let r of this.inferredProjects.slice())r.isOrphan()&&this.removeProject(r);this.removeOrphanScriptInfos()}openClientFileWithNormalizedPath(t,r,i,o,s){let l=this.getOrCreateOpenScriptInfo(t,r,i,o,s),{retainProjects:u,...p}=this.assignProjectToOpenedScriptInfo(l);return this.cleanupAfterOpeningFile(u),this.telemetryOnOpenFile(l),this.printProjects(),p}removeOrphanConfiguredProjects(t){let r=new Map(this.configuredProjects),i=l=>{!l.isOrphan()&&l.originalConfiguredProjects&&l.originalConfiguredProjects.forEach((u,p)=>{let g=this.getConfiguredProjectByCanonicalConfigFilePath(p);return g&&s(g)})};t&&(Do(t)?t.forEach(s):s(t)),this.inferredProjects.forEach(i),this.externalProjects.forEach(i),this.configuredProjects.forEach(l=>{l.hasOpenRef()?s(l):r.has(l.canonicalConfigFilePath)&&fwe(l,u=>o(u)&&s(l))}),r.forEach(l=>this.removeProject(l));function o(l){return l.hasOpenRef()||!r.has(l.canonicalConfigFilePath)}function s(l){r.delete(l.canonicalConfigFilePath)&&(i(l),fwe(l,s))}}removeOrphanScriptInfos(){let t=new Map(this.filenameToScriptInfo);this.filenameToScriptInfo.forEach(r=>{if(!r.isScriptOpen()&&r.isOrphan()&&!r.isContainedByBackgroundProject()){if(!r.sourceMapFilePath)return;let i;if(wo(r.sourceMapFilePath)){let o=this.getScriptInfoForPath(r.sourceMapFilePath);i=o&&o.sourceInfos}else i=r.sourceMapFilePath.sourceInfos;if(!i||!mh(i,o=>{let s=this.getScriptInfoForPath(o);return!!s&&(s.isScriptOpen()||!s.isOrphan())}))return}if(t.delete(r.path),r.sourceMapFilePath){let i;if(wo(r.sourceMapFilePath)){t.delete(r.sourceMapFilePath);let o=this.getScriptInfoForPath(r.sourceMapFilePath);i=o&&o.sourceInfos}else i=r.sourceMapFilePath.sourceInfos;i&&i.forEach((o,s)=>t.delete(s))}}),t.forEach(r=>{this.stopWatchingScriptInfo(r),this.deleteScriptInfo(r),r.closeSourceMapFileWatcher()})}telemetryOnOpenFile(t){if(this.serverMode!==0||!this.eventHandler||!t.isJavaScript()||!xm(this.allJsFilesForOpenFileTelemetry,t.path))return;let r=this.ensureDefaultProjectForFile(t);if(!r.languageServiceEnabled)return;let i=r.getSourceFile(t.path),o=!!i&&!!i.checkJsDirective;this.eventHandler({eventName:hZ,data:{info:{checkJs:o}}})}closeClientFile(t,r){let i=this.getScriptInfoForNormalizedPath(pl(t)),o=i?this.closeOpenFile(i,r):!1;return r||this.printProjects(),o}collectChanges(t,r,i,o){for(let s of r){let l=vn(t,u=>u.projectName===s.getProjectName());o.push(s.getChangesSinceVersion(l&&l.version,i))}}synchronizeProjectList(t,r){let i=[];return this.collectChanges(t,this.externalProjects,r,i),this.collectChanges(t,this.configuredProjects.values(),r,i),this.collectChanges(t,this.inferredProjects,r,i),i}applyChangesInOpenFiles(t,r,i){let o,s=!1;if(t)for(let u of t){let p=this.getOrCreateOpenScriptInfo(pl(u.fileName),u.content,fZ(u.scriptKind),u.hasMixedContent,u.projectRootPath?pl(u.projectRootPath):void 0);(o||(o=[])).push(p)}if(r)for(let u of r){let p=this.getScriptInfo(u.fileName);C.assert(!!p),this.applyChangesToFile(p,u.changes)}if(i)for(let u of i)s=this.closeClientFile(u,!0)||s;let l;o&&(l=Zi(o,u=>this.assignProjectToOpenedScriptInfo(u).retainProjects)),s&&this.assignOrphanScriptInfosToInferredProject(),o?(this.cleanupAfterOpeningFile(l),o.forEach(u=>this.telemetryOnOpenFile(u)),this.printProjects()):De(i)&&this.printProjects()}applyChangesToFile(t,r){for(let i of r)t.editContent(i.span.start,i.span.start+i.span.length,i.newText)}closeConfiguredProjectReferencedFromExternalProject(t){t?.forEach(r=>{r.isClosed()||(r.deleteExternalProjectReference(),r.hasOpenRef()||this.removeProject(r))})}closeExternalProject(t,r){let i=pl(t),o=this.externalProjectToConfiguredProjectMap.get(i);if(o)this.closeConfiguredProjectReferencedFromExternalProject(o),this.externalProjectToConfiguredProjectMap.delete(i);else{let s=this.findExternalProjectByProjectName(t);s&&this.removeProject(s)}r&&this.printProjects()}openExternalProjects(t){let r=g1(this.externalProjects,i=>i.getProjectName(),i=>!0);mh(this.externalProjectToConfiguredProjectMap,i=>{r.set(i,!0)});for(let i of t)this.openExternalProject(i,!1),r.delete(i.projectFileName);mh(r,i=>{this.closeExternalProject(i,!1)}),this.printProjects()}static escapeFilenameForRegex(t){return t.replace(this.filenameEscapeRegexp,"\\$&")}resetSafeList(){this.safelist=gZ}applySafeList(t){let r=t.typeAcquisition;C.assert(!!r,"proj.typeAcquisition should be set by now");let i=this.applySafeListWorker(t,t.rootFiles,r);return i?.excludedFiles??[]}applySafeListWorker(t,r,i){if(i.enable===!1||i.disableFilenameBasedTypeAcquisition)return;let o=i.include||(i.include=[]),s=[],l=r.map(b=>Mu(b.fileName));for(let b of Object.keys(this.safelist)){let T=this.safelist[b];for(let I of l)if(T.match.test(I)){if(this.logger.info(`Excluding files based on rule ${b} matching file '${I}'`),T.types)for(let R of T.types)o.includes(R)||o.push(R);if(T.exclude)for(let R of T.exclude){let M=I.replace(T.match,(...N)=>R.map(O=>typeof O=="number"?wo(N[O])?B0e.escapeFilenameForRegex(N[O]):(this.logger.info(`Incorrect RegExp specification in safelist rule ${b} - not enough groups`),"\\*"):O).join(""));s.includes(M)||s.push(M)}else{let R=B0e.escapeFilenameForRegex(I);s.includes(R)||s.push(R)}}}let u=s.map(b=>new RegExp(b,"i")),p,g;for(let b=0;bT.test(l[b])))m(b);else{if(i.enable){let T=rc(lh(l[b]));if(Tl(T,"js")){let I=Td(T),R=lG(I),M=this.legacySafelist.get(R);if(M!==void 0){this.logger.info(`Excluded '${l[b]}' because it matched ${R} from the legacy safelist`),m(b),o.includes(M)||o.push(M);continue}}}/^.+[.-]min\.js$/.test(l[b])?m(b):p?.push(r[b])}return g?{rootFiles:p,excludedFiles:g}:void 0;function m(b){g||(C.assert(!p),p=r.slice(0,b),g=[]),g.push(l[b])}}openExternalProject(t,r){let i=this.findExternalProjectByProjectName(t.projectFileName),o=this.externalProjectToConfiguredProjectMap.get(t.projectFileName),s,l=[];for(let u of t.rootFiles){let p=pl(u.fileName);if(eZ(p)){if(this.serverMode===0&&this.host.fileExists(p)){let g=this.findConfiguredProjectByProjectName(p);g||(g=this.getHostPreferences().lazyConfiguredProjectsFromExternalProject?this.createConfiguredProjectWithDelayLoad(p,`Creating configured project in external project: ${t.projectFileName}`):this.createLoadAndUpdateConfiguredProject(p,`Creating configured project in external project: ${t.projectFileName}`)),o?.has(g)||g.addExternalProjectReference(),(s??(s=new Set)).add(g),o?.delete(g)}}else l.push(u)}if(s)this.externalProjectToConfiguredProjectMap.set(t.projectFileName,s),i&&this.removeProject(i);else{this.externalProjectToConfiguredProjectMap.delete(t.projectFileName);let u=t.typeAcquisition||{};u.include=u.include||[],u.exclude=u.exclude||[],u.enable===void 0&&(u.enable=Phe(l.map(m=>m.fileName)));let p=this.applySafeListWorker(t,l,u),g=p?.excludedFiles??[];if(l=p?.rootFiles??l,i){i.excludedFiles=g;let m=V9(t.options),b=u4(t.options,i.getCurrentDirectory()),T=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.projectFileName,m,l,tz);T?i.disableLanguageService(T):i.enableLanguageService(),i.setProjectErrors(b?.errors),this.updateRootAndOptionsOfNonInferredProject(i,l,tz,m,u,t.options.compileOnSave,b?.watchOptions),i.updateGraph()}else this.createExternalProject(t.projectFileName,l,t.options,u,g).updateGraph()}this.closeConfiguredProjectReferencedFromExternalProject(o),r&&this.printProjects()}hasDeferredExtension(){for(let t of this.hostConfiguration.extraFileExtensions)if(t.scriptKind===7)return!0;return!1}requestEnablePlugin(t,r,i){if(!this.host.importPlugin&&!this.host.require){this.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}if(this.logger.info(`Enabling plugin ${r.name} from candidate paths: ${i.join(",")}`),!r.name||Ew(r.name).rest){this.logger.info(`Skipped loading plugin ${r.name||JSON.stringify(r)} because only package name is allowed plugin name`);return}if(this.host.importPlugin){let o=aT.importServicePluginAsync(r,i,this.host,l=>this.logger.info(l));this.pendingPluginEnablements??(this.pendingPluginEnablements=new Map);let s=this.pendingPluginEnablements.get(t);s||this.pendingPluginEnablements.set(t,s=[]),s.push(o);return}this.endEnablePlugin(t,aT.importServicePluginSync(r,i,this.host,o=>this.logger.info(o)))}endEnablePlugin(t,{pluginConfigEntry:r,resolvedModule:i,errorLogs:o}){var s;if(i){let l=(s=this.currentPluginConfigOverrides)==null?void 0:s.get(r.name);if(l){let u=r.name;r=l,r.name=u}t.enableProxy(i,r)}else Ke(o,l=>this.logger.info(l)),this.logger.info(`Couldn't find ${r.name}`)}hasNewPluginEnablementRequests(){return!!this.pendingPluginEnablements}hasPendingPluginEnablements(){return!!this.currentPluginEnablementPromise}async waitForPendingPlugins(){for(;this.currentPluginEnablementPromise;)await this.currentPluginEnablementPromise}enableRequestedPlugins(){this.pendingPluginEnablements&&this.enableRequestedPluginsAsync()}async enableRequestedPluginsAsync(){if(this.currentPluginEnablementPromise&&await this.waitForPendingPlugins(),!this.pendingPluginEnablements)return;let t=Vo(this.pendingPluginEnablements.entries());this.pendingPluginEnablements=void 0,this.currentPluginEnablementPromise=this.enableRequestedPluginsWorker(t),await this.currentPluginEnablementPromise}async enableRequestedPluginsWorker(t){C.assert(this.currentPluginEnablementPromise===void 0),await Promise.all(Ft(t,([r,i])=>this.enableRequestedPluginsForProjectAsync(r,i))),this.currentPluginEnablementPromise=void 0,this.sendProjectsUpdatedInBackgroundEvent()}async enableRequestedPluginsForProjectAsync(t,r){let i=await Promise.all(r);if(!t.isClosed()){for(let o of i)this.endEnablePlugin(t,o);this.delayUpdateProjectGraph(t)}}configurePlugin(t){this.forEachEnabledProject(r=>r.onPluginConfigurationChanged(t.pluginName,t.configuration)),this.currentPluginConfigOverrides=this.currentPluginConfigOverrides||new Map,this.currentPluginConfigOverrides.set(t.pluginName,t.configuration)}getPackageJsonsVisibleToFile(t,r,i){let o=this.packageJsonCache,s=i&&this.toPath(i),l=[],u=p=>{switch(o.directoryHasPackageJson(p)){case 3:return o.searchDirectoryAndAncestors(p),u(p);case-1:let g=Zr(p,"package.json");this.watchPackageJsonFile(g,this.toPath(g),r);let m=o.getInDirectory(p);m&&l.push(m)}if(s&&s===p)return!0};return Em(li(t),u),l}getNearestAncestorDirectoryWithPackageJson(t){return Em(t,r=>{switch(this.packageJsonCache.directoryHasPackageJson(r)){case-1:return r;case 0:return;case 3:return this.host.fileExists(Zr(r,"package.json"))?r:void 0}})}watchPackageJsonFile(t,r,i){C.assert(i!==void 0);let o=(this.packageJsonFilesMap??(this.packageJsonFilesMap=new Map)).get(r);if(!o){let s=this.watchFactory.watchFile(t,(l,u)=>{switch(u){case 0:return C.fail();case 1:this.packageJsonCache.addOrUpdate(l,r),this.onPackageJsonChange(o);break;case 2:this.packageJsonCache.delete(r),this.onPackageJsonChange(o),o.projects.clear(),o.close()}},250,this.hostConfiguration.watchOptions,kc.PackageJson);o={projects:new Set,close:()=>{var l;o.projects.size||!s||(s.close(),s=void 0,(l=this.packageJsonFilesMap)==null||l.delete(r),this.packageJsonCache.invalidate(r))}},this.packageJsonFilesMap.set(r,o)}o.projects.add(i),(i.packageJsonWatches??(i.packageJsonWatches=new Set)).add(o)}onPackageJsonChange(t){t.projects.forEach(r=>{var i;return(i=r.onPackageJsonChange)==null?void 0:i.call(r)})}includePackageJsonAutoImports(){switch(this.hostConfiguration.preferences.includePackageJsonAutoImports){case"on":return 1;case"off":return 0;default:return 2}}getIncompleteCompletionsCache(){return this.incompleteCompletionsCache||(this.incompleteCompletionsCache=oat())}},jhe.filenameEscapeRegexp=/[-/\\^$*+?.()|[\]{}]/g,bZ=jhe}});function Uhe(e){let t,r,i,o={get(p,g,m,b){if(!(!r||i!==l(p,m,b)))return r.get(g)},set(p,g,m,b,T,I){if(s(p,m,b).set(g,u(T,I,!1)),I){for(let R of T)if(R.isInNodeModules){let M=R.path.substring(0,R.path.indexOf(Ih)+Ih.length-1),N=e.toPath(M);t?.has(N)||(t||(t=new Map)).set(N,e.watchNodeModulesForPackageJsonChanges(M))}}},setModulePaths(p,g,m,b,T){let I=s(p,m,b),R=I.get(g);R?R.modulePaths=T:I.set(g,u(T,void 0,void 0))},setBlockedByPackageJsonDependencies(p,g,m,b,T){let I=s(p,m,b),R=I.get(g);R?R.isBlockedByPackageJsonDependencies=T:I.set(g,u(void 0,void 0,T))},clear(){t?.forEach($m),r?.clear(),t?.clear(),i=void 0},count(){return r?r.size:0}};return C.isDebugging&&Object.defineProperty(o,"__cache",{get:()=>r}),o;function s(p,g,m){let b=l(p,g,m);return r&&i!==b&&o.clear(),i=b,r||(r=new Map)}function l(p,g,m){return`${p},${g.importModuleSpecifierEnding},${g.importModuleSpecifierPreference},${m.overrideImportMode}`}function u(p,g,m){return{modulePaths:p,moduleSpecifiers:g,isBlockedByPackageJsonDependencies:m}}}var sat=A({"src/server/moduleSpecifierCache.ts"(){"use strict";lb()}});function Hhe(e){let t=new Map,r=new Map;return{addOrUpdate:i,invalidate:o,delete:l=>{t.delete(l),r.set(li(l),!0)},getInDirectory:l=>t.get(e.toPath(Zr(l,"package.json")))||void 0,directoryHasPackageJson:l=>s(e.toPath(l)),searchDirectoryAndAncestors:l=>{Em(l,u=>{let p=e.toPath(u);if(s(p)!==3)return!0;let g=Zr(u,"package.json");gO(e,g)?i(g,Zr(p,"package.json")):r.set(p,!0)})}};function i(l,u){let p=C.checkDefined(xX(l,e.host));t.set(u,p),r.delete(li(u))}function o(l){t.delete(l),r.delete(li(l))}function s(l){return t.has(Zr(l,"package.json"))?-1:r.has(l)?0:3}}var lat=A({"src/server/packageJsonCache.ts"(){"use strict";lb()}});function cat(e){let t=e[0],r=e[1];return(1e9*t+r)/1e6}function vwe(e,t){if((B2(e)||sZ(e))&&e.isJsOnlyProject()){let r=e.getScriptInfoForNormalizedPath(t);return r&&!r.isJavaScript()}return!1}function uat(e){return xf(e)||!!e.emitDecoratorMetadata}function ywe(e,t,r){let i=t.getScriptInfoForNormalizedPath(e);return{start:i.positionToLineOffset(r.start),end:i.positionToLineOffset(r.start+r.length),text:W_(r.messageText,` +`),code:r.code,category:aS(r),reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated,source:r.source,relatedInformation:Ft(r.relatedInformation,EZ)}}function EZ(e){return e.file?{span:{start:p4(Es(e.file,e.start)),end:p4(Es(e.file,e.start+e.length)),file:e.file.fileName},message:W_(e.messageText,` +`),category:aS(e),code:e.code}:{message:W_(e.messageText,` +`),category:aS(e),code:e.code}}function p4(e){return{line:e.line+1,offset:e.character+1}}function f4(e,t){let r=e.file&&p4(Es(e.file,e.start)),i=e.file&&p4(Es(e.file,e.start+e.length)),o=W_(e.messageText,` +`),{code:s,source:l}=e,u=aS(e),p={start:r,end:i,text:o,code:s,category:u,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,source:l,relatedInformation:Ft(e.relatedInformation,EZ)};return t?{...p,fileName:e.file&&e.file.fileName}:p}function dat(e,t){return e.every(r=>ql(r.span)i(s,e));return!Do(r)&&r.symLinkedProjects&&r.symLinkedProjects.forEach((s,l)=>{let u=t(l);o.push(...Zi(s,p=>i(p,u)))}),h1(o,Cv)}function SZ(e){return aG(({textSpan:t})=>t.start+100003*t.length,dX(e))}function fat(e,t,r,i,o,s,l){let u=bwe(e,t,r,!0,(m,b)=>m.getLanguageService().findRenameLocations(b.fileName,b.pos,i,o,s),(m,b)=>b(NP(m)));if(Do(u))return u;let p=[],g=SZ(l);return u.forEach((m,b)=>{for(let T of m)!g.has(T)&&!TZ(NP(T),b)&&(p.push(T),g.add(T))}),p}function mat(e,t,r){let i=e.getLanguageService().getDefinitionAtPosition(t.fileName,t.pos,!1,r),o=i&&Xc(i);return o&&!o.isLocal?{fileName:o.fileName,pos:o.textSpan.start}:void 0}function _at(e,t,r,i,o){var s,l;let u=bwe(e,t,r,!1,(b,T)=>(o.info(`Finding references to ${T.fileName} position ${T.pos} in project ${b.getProjectName()}`),b.getLanguageService().findReferences(T.fileName,T.pos)),(b,T)=>{T(NP(b.definition));for(let I of b.references)T(NP(I))});if(Do(u))return u;let p=u.get(t);if(((l=(s=p?.[0])==null?void 0:s.references[0])==null?void 0:l.isDefinition)===void 0)u.forEach(b=>{for(let T of b)for(let I of T.references)delete I.isDefinition});else{let b=SZ(i);for(let I of p)for(let R of I.references)if(R.isDefinition){b.add(R);break}let T=new Set;for(;;){let I=!1;if(u.forEach((R,M)=>{if(T.has(M))return;M.getLanguageService().updateIsDefinitionOfReferencedSymbols(R,b)&&(T.add(M),I=!0)}),!I)break}u.forEach((I,R)=>{if(!T.has(R))for(let M of I)for(let N of M.references)N.isDefinition=!1})}let g=[],m=SZ(i);return u.forEach((b,T)=>{for(let I of b){let R=TZ(NP(I.definition),T),M=R===void 0?I.definition:{...I.definition,textSpan:vu(R.pos,I.definition.textSpan.length),fileName:R.fileName,contextSpan:vat(I.definition,T)},N=vn(g,O=>uX(O.definition,M,i));N||(N={definition:M,references:[]},g.push(N));for(let O of I.references)!m.has(O)&&!TZ(NP(O),T)&&(m.add(O),N.references.push(O))}}),g.filter(b=>b.references.length!==0)}function Khe(e,t,r){for(let i of Do(e)?e:e.projects)r(i,t);!Do(e)&&e.symLinkedProjects&&e.symLinkedProjects.forEach((i,o)=>{for(let s of i)r(s,o)})}function bwe(e,t,r,i,o,s){let l=new Map,u=PM();u.enqueue({project:t,location:r}),Khe(e,r.fileName,(M,N)=>{let O={fileName:N,pos:r.pos};u.enqueue({project:M,location:O})});let p=t.projectService,g=t.getCancellationToken(),m=mat(t,r,i),b=Ed(()=>t.isSourceOfProjectReferenceRedirect(m.fileName)?m:t.getLanguageService().getSourceMapper().tryGetGeneratedPosition(m)),T=Ed(()=>t.isSourceOfProjectReferenceRedirect(m.fileName)?m:t.getLanguageService().getSourceMapper().tryGetSourcePosition(m)),I=new Set;e:for(;!u.isEmpty();){for(;!u.isEmpty();){if(g.isCancellationRequested())break e;let{project:M,location:N}=u.dequeue();if(l.has(M)||Ewe(M,N)||(Gp(M),!M.containsFile(pl(N.fileName))))continue;let O=R(M,N);l.set(M,O??hc),I.add(gat(M))}m&&(p.loadAncestorProjectTree(I),p.forEachEnabledProject(M=>{if(g.isCancellationRequested()||l.has(M))return;let N=hat(m,M,b,T);N&&u.enqueue({project:M,location:N})}))}if(l.size===1)return tG(l.values());return l;function R(M,N){let O=o(M,N);if(O){for(let H of O)s(H,K=>{let Z=p.getOriginalLocationEnsuringConfiguredProject(M,K);if(!Z)return;let V=p.getScriptInfo(Z.fileName);for(let G of V.containingProjects)!G.isOrphan()&&!l.has(G)&&u.enqueue({project:G,location:Z});let ue=p.getSymlinkedProjects(V);ue&&ue.forEach((G,ne)=>{for(let he of G)!he.isOrphan()&&!l.has(he)&&u.enqueue({project:he,location:{fileName:ne,pos:Z.pos}})})});return O}}}function hat(e,t,r,i){if(t.containsFile(pl(e.fileName))&&!Ewe(t,e))return e;let o=r();if(o&&t.containsFile(pl(o.fileName)))return o;let s=i();return s&&t.containsFile(pl(s.fileName))?s:void 0}function Ewe(e,t){if(!t)return!1;let r=e.getLanguageService().getProgram();if(!r)return!1;let i=r.getSourceFile(t.fileName);return!!i&&i.resolvedPath!==i.path&&i.resolvedPath!==e.toPath(t.fileName)}function gat(e){return k0(e)?e.canonicalConfigFilePath:e.getProjectName()}function NP({fileName:e,textSpan:t}){return{fileName:e,pos:t.start}}function TZ(e,t){return cP(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function Swe(e,t){return fW(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function vat(e,t){return fX(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function Rh(e,t){return{start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(ql(e))}}function Xhe(e,t,r){let i=Rh(e,r),o=t&&Rh(t,r);return o?{...i,contextStart:o.start,contextEnd:o.end}:i}function yat(e,t){return{start:Twe(t,e.span.start),end:Twe(t,ql(e.span)),newText:e.newText}}function Twe(e,t){return Bhe(e)?Eat(e.getLineAndCharacterOfPosition(t)):e.positionToLineOffset(t)}function bat(e,t){let r=e.ranges.map(i=>({start:t.positionToLineOffset(i.start),end:t.positionToLineOffset(i.start+i.length)}));return e.wordPattern?{ranges:r,wordPattern:e.wordPattern}:{ranges:r}}function Eat(e){return{line:e.line+1,offset:e.character+1}}function Sat(e){C.assert(e.textChanges.length===1);let t=Ha(e.textChanges);return C.assert(t.span.start===0&&t.span.length===0),{fileName:e.fileName,textChanges:[{start:{line:0,offset:0},end:{line:0,offset:0},newText:t.newText}]}}function Yhe(e,t,r,i){let o=Tat(e,t,i),{line:s,character:l}=zx(TA(o),r);return{line:s+1,offset:l+1}}function Tat(e,t,r){for(let{fileName:i,textChanges:o}of r)if(i===t)for(let s=o.length-1;s>=0;s--){let{newText:l,span:{start:u,length:p}}=o[s];e=e.slice(0,u)+l+e.slice(u+p)}return e}function Awe(e,{fileName:t,textSpan:r,contextSpan:i,isWriteAccess:o,isDefinition:s},{disableLineTextInReferences:l}){let u=C.checkDefined(e.getScriptInfo(t)),p=Xhe(r,i,u),g=l?void 0:Aat(u,p);return{file:t,...p,lineText:g,isWriteAccess:o,isDefinition:s}}function Aat(e,t){let r=e.lineToTextSpan(t.start.line-1);return e.getSnapshot().getText(r.start,ql(r)).replace(/\r|\n/g,"")}function Iat(e){return e===void 0||e&&typeof e=="object"&&typeof e.exportName=="string"&&(e.fileName===void 0||typeof e.fileName=="string")&&(e.ambientModuleName===void 0||typeof e.ambientModuleName=="string"&&(e.isPackageJsonImport===void 0||typeof e.isPackageJsonImport=="boolean"))}var $he,Qhe,Iwe,Zhe,xwe,ege,xat=A({"src/server/session.ts"(){"use strict";lb(),sT(),Rhe(),$he={isCancellationRequested:()=>!1,setRequest:()=>{},resetRequest:()=>{}},Qhe=rZ,Iwe=class{constructor(e){this.operationHost=e}startNew(e){this.complete(),this.requestId=this.operationHost.getCurrentRequestId(),this.executeAction(e)}complete(){this.requestId!==void 0&&(this.operationHost.sendRequestCompletedEvent(this.requestId),this.requestId=void 0),this.setTimerHandle(void 0),this.setImmediateId(void 0)}immediate(e,t){let r=this.requestId;C.assert(r===this.operationHost.getCurrentRequestId(),"immediate: incorrect request id"),this.setImmediateId(this.operationHost.getServerHost().setImmediate(()=>{this.immediateId=void 0,this.operationHost.executeWithRequestId(r,()=>this.executeAction(t))},e))}delay(e,t,r){let i=this.requestId;C.assert(i===this.operationHost.getCurrentRequestId(),"delay: incorrect request id"),this.setTimerHandle(this.operationHost.getServerHost().setTimeout(()=>{this.timerHandle=void 0,this.operationHost.executeWithRequestId(i,()=>this.executeAction(r))},t,e))}executeAction(e){var t,r,i,o,s,l;let u=!1;try{this.operationHost.isCancellationRequested()?(u=!0,(t=lr)==null||t.instant(lr.Phase.Session,"stepCanceled",{seq:this.requestId,early:!0})):((r=lr)==null||r.push(lr.Phase.Session,"stepAction",{seq:this.requestId}),e(this),(i=lr)==null||i.pop())}catch(p){(o=lr)==null||o.popAll(),u=!0,p instanceof Ox?(s=lr)==null||s.instant(lr.Phase.Session,"stepCanceled",{seq:this.requestId}):((l=lr)==null||l.instant(lr.Phase.Session,"stepError",{seq:this.requestId,message:p.message}),this.operationHost.logError(p,`delayed processing of request ${this.requestId}`))}(u||!this.hasPendingWork())&&this.complete()}setTimerHandle(e){this.timerHandle!==void 0&&this.operationHost.getServerHost().clearTimeout(this.timerHandle),this.timerHandle=e}setImmediateId(e){this.immediateId!==void 0&&this.operationHost.getServerHost().clearImmediate(this.immediateId),this.immediateId=e}hasPendingWork(){return!!this.timerHandle||!!this.immediateId}},Zhe=["openExternalProject","openExternalProjects","closeExternalProject","synchronizeProjectList","emit-output","compileOnSaveAffectedFileList","compileOnSaveEmitFile","compilerOptionsDiagnostics-full","encodedSemanticClassifications-full","semanticDiagnosticsSync","suggestionDiagnosticsSync","geterrForProject","reload","reloadProjects","getCodeFixes","getCodeFixes-full","getCombinedCodeFix","getCombinedCodeFix-full","applyCodeActionCommand","getSupportedCodeFixes","getApplicableRefactors","getMoveToRefactoringFileSuggestions","getEditsForRefactor","getEditsForRefactor-full","organizeImports","organizeImports-full","getEditsForFileRename","getEditsForFileRename-full","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls"],xwe=[...Zhe,"definition","definition-full","definitionAndBoundSpan","definitionAndBoundSpan-full","typeDefinition","implementation","implementation-full","references","references-full","rename","renameLocations-full","rename-full","quickinfo","quickinfo-full","completionInfo","completions","completions-full","completionEntryDetails","completionEntryDetails-full","signatureHelp","signatureHelp-full","navto","navto-full","documentHighlights","documentHighlights-full"],ege=class dne{constructor(t){this.changeSeq=0,this.handlers=new Map(Object.entries({status:()=>{let s={version:Te};return this.requiredResponse(s)},openExternalProject:s=>(this.projectService.openExternalProject(s.arguments,!0),this.requiredResponse(!0)),openExternalProjects:s=>(this.projectService.openExternalProjects(s.arguments.projects),this.requiredResponse(!0)),closeExternalProject:s=>(this.projectService.closeExternalProject(s.arguments.projectFileName,!0),this.requiredResponse(!0)),synchronizeProjectList:s=>{let l=this.projectService.synchronizeProjectList(s.arguments.knownProjects,s.arguments.includeProjectReferenceRedirectInfo);if(!l.some(p=>p.projectErrors&&p.projectErrors.length!==0))return this.requiredResponse(l);let u=Ft(l,p=>!p.projectErrors||p.projectErrors.length===0?p:{info:p.info,changes:p.changes,files:p.files,projectErrors:this.convertToDiagnosticsWithLinePosition(p.projectErrors,void 0)});return this.requiredResponse(u)},updateOpen:s=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(s.arguments.openFiles&&ra(s.arguments.openFiles,l=>({fileName:l.file,content:l.fileContent,scriptKind:l.scriptKindName,projectRootPath:l.projectRootPath})),s.arguments.changedFiles&&ra(s.arguments.changedFiles,l=>({fileName:l.fileName,changes:tS(ZB(l.textChanges),u=>{let p=C.checkDefined(this.projectService.getScriptInfo(l.fileName)),g=p.lineOffsetToPosition(u.start.line,u.start.offset),m=p.lineOffsetToPosition(u.end.line,u.end.offset);return g>=0?{span:{start:g,length:m-g},newText:u.newText}:void 0})})),s.arguments.closedFiles),this.requiredResponse(!0)),applyChangedToOpenFiles:s=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(s.arguments.openFiles,s.arguments.changedFiles&&ra(s.arguments.changedFiles,l=>({fileName:l.fileName,changes:ZB(l.changes)})),s.arguments.closedFiles),this.requiredResponse(!0)),exit:()=>(this.exit(),this.notRequired()),definition:s=>this.requiredResponse(this.getDefinition(s.arguments,!0)),"definition-full":s=>this.requiredResponse(this.getDefinition(s.arguments,!1)),definitionAndBoundSpan:s=>this.requiredResponse(this.getDefinitionAndBoundSpan(s.arguments,!0)),"definitionAndBoundSpan-full":s=>this.requiredResponse(this.getDefinitionAndBoundSpan(s.arguments,!1)),findSourceDefinition:s=>this.requiredResponse(this.findSourceDefinition(s.arguments)),"emit-output":s=>this.requiredResponse(this.getEmitOutput(s.arguments)),typeDefinition:s=>this.requiredResponse(this.getTypeDefinition(s.arguments)),implementation:s=>this.requiredResponse(this.getImplementation(s.arguments,!0)),"implementation-full":s=>this.requiredResponse(this.getImplementation(s.arguments,!1)),references:s=>this.requiredResponse(this.getReferences(s.arguments,!0)),"references-full":s=>this.requiredResponse(this.getReferences(s.arguments,!1)),rename:s=>this.requiredResponse(this.getRenameLocations(s.arguments,!0)),"renameLocations-full":s=>this.requiredResponse(this.getRenameLocations(s.arguments,!1)),"rename-full":s=>this.requiredResponse(this.getRenameInfo(s.arguments)),open:s=>(this.openClientFile(pl(s.arguments.file),s.arguments.fileContent,mZ(s.arguments.scriptKindName),s.arguments.projectRootPath?pl(s.arguments.projectRootPath):void 0),this.notRequired()),quickinfo:s=>this.requiredResponse(this.getQuickInfoWorker(s.arguments,!0)),"quickinfo-full":s=>this.requiredResponse(this.getQuickInfoWorker(s.arguments,!1)),getOutliningSpans:s=>this.requiredResponse(this.getOutliningSpans(s.arguments,!0)),outliningSpans:s=>this.requiredResponse(this.getOutliningSpans(s.arguments,!1)),todoComments:s=>this.requiredResponse(this.getTodoComments(s.arguments)),indentation:s=>this.requiredResponse(this.getIndentation(s.arguments)),nameOrDottedNameSpan:s=>this.requiredResponse(this.getNameOrDottedNameSpan(s.arguments)),breakpointStatement:s=>this.requiredResponse(this.getBreakpointStatement(s.arguments)),braceCompletion:s=>this.requiredResponse(this.isValidBraceCompletion(s.arguments)),docCommentTemplate:s=>this.requiredResponse(this.getDocCommentTemplate(s.arguments)),getSpanOfEnclosingComment:s=>this.requiredResponse(this.getSpanOfEnclosingComment(s.arguments)),fileReferences:s=>this.requiredResponse(this.getFileReferences(s.arguments,!0)),"fileReferences-full":s=>this.requiredResponse(this.getFileReferences(s.arguments,!1)),format:s=>this.requiredResponse(this.getFormattingEditsForRange(s.arguments)),formatonkey:s=>this.requiredResponse(this.getFormattingEditsAfterKeystroke(s.arguments)),"format-full":s=>this.requiredResponse(this.getFormattingEditsForDocumentFull(s.arguments)),"formatonkey-full":s=>this.requiredResponse(this.getFormattingEditsAfterKeystrokeFull(s.arguments)),"formatRange-full":s=>this.requiredResponse(this.getFormattingEditsForRangeFull(s.arguments)),completionInfo:s=>this.requiredResponse(this.getCompletions(s.arguments,"completionInfo")),completions:s=>this.requiredResponse(this.getCompletions(s.arguments,"completions")),"completions-full":s=>this.requiredResponse(this.getCompletions(s.arguments,"completions-full")),completionEntryDetails:s=>this.requiredResponse(this.getCompletionEntryDetails(s.arguments,!1)),"completionEntryDetails-full":s=>this.requiredResponse(this.getCompletionEntryDetails(s.arguments,!0)),compileOnSaveAffectedFileList:s=>this.requiredResponse(this.getCompileOnSaveAffectedFileList(s.arguments)),compileOnSaveEmitFile:s=>this.requiredResponse(this.emitFile(s.arguments)),signatureHelp:s=>this.requiredResponse(this.getSignatureHelpItems(s.arguments,!0)),"signatureHelp-full":s=>this.requiredResponse(this.getSignatureHelpItems(s.arguments,!1)),"compilerOptionsDiagnostics-full":s=>this.requiredResponse(this.getCompilerOptionsDiagnostics(s.arguments)),"encodedSyntacticClassifications-full":s=>this.requiredResponse(this.getEncodedSyntacticClassifications(s.arguments)),"encodedSemanticClassifications-full":s=>this.requiredResponse(this.getEncodedSemanticClassifications(s.arguments)),cleanup:()=>(this.cleanup(),this.requiredResponse(!0)),semanticDiagnosticsSync:s=>this.requiredResponse(this.getSemanticDiagnosticsSync(s.arguments)),syntacticDiagnosticsSync:s=>this.requiredResponse(this.getSyntacticDiagnosticsSync(s.arguments)),suggestionDiagnosticsSync:s=>this.requiredResponse(this.getSuggestionDiagnosticsSync(s.arguments)),geterr:s=>(this.errorCheck.startNew(l=>this.getDiagnostics(l,s.arguments.delay,s.arguments.files)),this.notRequired()),geterrForProject:s=>(this.errorCheck.startNew(l=>this.getDiagnosticsForProject(l,s.arguments.delay,s.arguments.file)),this.notRequired()),change:s=>(this.change(s.arguments),this.notRequired()),configure:s=>(this.projectService.setHostConfiguration(s.arguments),this.doOutput(void 0,"configure",s.seq,!0),this.notRequired()),reload:s=>(this.reload(s.arguments,s.seq),this.requiredResponse({reloadFinished:!0})),saveto:s=>{let l=s.arguments;return this.saveToTmp(l.file,l.tmpfile),this.notRequired()},close:s=>{let l=s.arguments;return this.closeClientFile(l.file),this.notRequired()},navto:s=>this.requiredResponse(this.getNavigateToItems(s.arguments,!0)),"navto-full":s=>this.requiredResponse(this.getNavigateToItems(s.arguments,!1)),brace:s=>this.requiredResponse(this.getBraceMatching(s.arguments,!0)),"brace-full":s=>this.requiredResponse(this.getBraceMatching(s.arguments,!1)),navbar:s=>this.requiredResponse(this.getNavigationBarItems(s.arguments,!0)),"navbar-full":s=>this.requiredResponse(this.getNavigationBarItems(s.arguments,!1)),navtree:s=>this.requiredResponse(this.getNavigationTree(s.arguments,!0)),"navtree-full":s=>this.requiredResponse(this.getNavigationTree(s.arguments,!1)),documentHighlights:s=>this.requiredResponse(this.getDocumentHighlights(s.arguments,!0)),"documentHighlights-full":s=>this.requiredResponse(this.getDocumentHighlights(s.arguments,!1)),compilerOptionsForInferredProjects:s=>(this.setCompilerOptionsForInferredProjects(s.arguments),this.requiredResponse(!0)),projectInfo:s=>this.requiredResponse(this.getProjectInfo(s.arguments)),reloadProjects:()=>(this.projectService.reloadProjects(),this.notRequired()),jsxClosingTag:s=>this.requiredResponse(this.getJsxClosingTag(s.arguments)),linkedEditingRange:s=>this.requiredResponse(this.getLinkedEditingRange(s.arguments)),getCodeFixes:s=>this.requiredResponse(this.getCodeFixes(s.arguments,!0)),"getCodeFixes-full":s=>this.requiredResponse(this.getCodeFixes(s.arguments,!1)),getCombinedCodeFix:s=>this.requiredResponse(this.getCombinedCodeFix(s.arguments,!0)),"getCombinedCodeFix-full":s=>this.requiredResponse(this.getCombinedCodeFix(s.arguments,!1)),applyCodeActionCommand:s=>this.requiredResponse(this.applyCodeActionCommand(s.arguments)),getSupportedCodeFixes:s=>this.requiredResponse(this.getSupportedCodeFixes(s.arguments)),getApplicableRefactors:s=>this.requiredResponse(this.getApplicableRefactors(s.arguments)),getEditsForRefactor:s=>this.requiredResponse(this.getEditsForRefactor(s.arguments,!0)),getMoveToRefactoringFileSuggestions:s=>this.requiredResponse(this.getMoveToRefactoringFileSuggestions(s.arguments)),"getEditsForRefactor-full":s=>this.requiredResponse(this.getEditsForRefactor(s.arguments,!1)),organizeImports:s=>this.requiredResponse(this.organizeImports(s.arguments,!0)),"organizeImports-full":s=>this.requiredResponse(this.organizeImports(s.arguments,!1)),getEditsForFileRename:s=>this.requiredResponse(this.getEditsForFileRename(s.arguments,!0)),"getEditsForFileRename-full":s=>this.requiredResponse(this.getEditsForFileRename(s.arguments,!1)),configurePlugin:s=>(this.configurePlugin(s.arguments),this.doOutput(void 0,"configurePlugin",s.seq,!0),this.notRequired()),selectionRange:s=>this.requiredResponse(this.getSmartSelectionRange(s.arguments,!0)),"selectionRange-full":s=>this.requiredResponse(this.getSmartSelectionRange(s.arguments,!1)),prepareCallHierarchy:s=>this.requiredResponse(this.prepareCallHierarchy(s.arguments)),provideCallHierarchyIncomingCalls:s=>this.requiredResponse(this.provideCallHierarchyIncomingCalls(s.arguments)),provideCallHierarchyOutgoingCalls:s=>this.requiredResponse(this.provideCallHierarchyOutgoingCalls(s.arguments)),toggleLineComment:s=>this.requiredResponse(this.toggleLineComment(s.arguments,!0)),"toggleLineComment-full":s=>this.requiredResponse(this.toggleLineComment(s.arguments,!1)),toggleMultilineComment:s=>this.requiredResponse(this.toggleMultilineComment(s.arguments,!0)),"toggleMultilineComment-full":s=>this.requiredResponse(this.toggleMultilineComment(s.arguments,!1)),commentSelection:s=>this.requiredResponse(this.commentSelection(s.arguments,!0)),"commentSelection-full":s=>this.requiredResponse(this.commentSelection(s.arguments,!1)),uncommentSelection:s=>this.requiredResponse(this.uncommentSelection(s.arguments,!0)),"uncommentSelection-full":s=>this.requiredResponse(this.uncommentSelection(s.arguments,!1)),provideInlayHints:s=>this.requiredResponse(this.provideInlayHints(s.arguments))})),this.host=t.host,this.cancellationToken=t.cancellationToken,this.typingsInstaller=t.typingsInstaller||B9,this.byteLength=t.byteLength,this.hrtime=t.hrtime,this.logger=t.logger,this.canUseEvents=t.canUseEvents,this.suppressDiagnosticEvents=t.suppressDiagnosticEvents,this.noGetErrOnBackgroundUpdate=t.noGetErrOnBackgroundUpdate;let{throttleWaitMilliseconds:r}=t;this.eventHandler=this.canUseEvents?t.eventHandler||(s=>this.defaultEventHandler(s)):void 0;let i={executeWithRequestId:(s,l)=>this.executeWithRequestId(s,l),getCurrentRequestId:()=>this.currentRequestId,getServerHost:()=>this.host,logError:(s,l)=>this.logError(s,l),sendRequestCompletedEvent:s=>this.sendRequestCompletedEvent(s),isCancellationRequested:()=>this.cancellationToken.isCancellationRequested()};this.errorCheck=new Iwe(i);let o={host:this.host,logger:this.logger,cancellationToken:this.cancellationToken,useSingleInferredProject:t.useSingleInferredProject,useInferredProjectPerProjectRoot:t.useInferredProjectPerProjectRoot,typingsInstaller:this.typingsInstaller,throttleWaitMilliseconds:r,eventHandler:this.eventHandler,suppressDiagnosticEvents:this.suppressDiagnosticEvents,globalPlugins:t.globalPlugins,pluginProbeLocations:t.pluginProbeLocations,allowLocalPluginLoads:t.allowLocalPluginLoads,typesMapLocation:t.typesMapLocation,serverMode:t.serverMode,session:this,canUseWatchEvents:t.canUseWatchEvents,incrementalVerifier:t.incrementalVerifier};switch(this.projectService=new bZ(o),this.projectService.setPerformanceEventHandler(this.performanceEventHandler.bind(this)),this.gcTimer=new nZ(this.host,7e3,this.logger),this.projectService.serverMode){case 0:break;case 1:Zhe.forEach(s=>this.handlers.set(s,l=>{throw new Error(`Request: ${l.command} not allowed in LanguageServiceMode.PartialSemantic`)}));break;case 2:xwe.forEach(s=>this.handlers.set(s,l=>{throw new Error(`Request: ${l.command} not allowed in LanguageServiceMode.Syntactic`)}));break;default:C.assertNever(this.projectService.serverMode)}}sendRequestCompletedEvent(t){this.event({request_seq:t},"requestCompleted")}addPerformanceData(t,r){this.performanceData||(this.performanceData={}),this.performanceData[t]=(this.performanceData[t]??0)+r}performanceEventHandler(t){switch(t.kind){case"UpdateGraph":this.addPerformanceData("updateGraphDurationMs",t.durationMs);break;case"CreatePackageJsonAutoImportProvider":this.addPerformanceData("createAutoImportProviderProgramDurationMs",t.durationMs);break}}defaultEventHandler(t){switch(t.eventName){case d4:this.projectsUpdatedInBackgroundEvent(t.data.openFiles);break;case H9:this.event({projectName:t.data.project.getProjectName(),reason:t.data.reason},t.eventName);break;case q9:this.event({projectName:t.data.project.getProjectName()},t.eventName);break;case J9:case $9:case Q9:case Z9:this.event(t.data,t.eventName);break;case K9:this.event({triggerFile:t.data.triggerFile,configFile:t.data.configFileName,diagnostics:Ft(t.data.diagnostics,r=>f4(r,!0))},t.eventName);break;case X9:{this.event({projectName:t.data.project.getProjectName(),languageServiceEnabled:t.data.languageServiceEnabled},t.eventName);break}case Y9:{this.event({telemetryEventName:t.eventName,payload:t.data},"telemetry");break}}}projectsUpdatedInBackgroundEvent(t){this.projectService.logger.info(`got projects updated in background ${t}`),t.length&&(!this.suppressDiagnosticEvents&&!this.noGetErrOnBackgroundUpdate&&(this.projectService.logger.info(`Queueing diagnostics update for ${t}`),this.errorCheck.startNew(r=>this.updateErrorCheck(r,t,100,!0))),this.event({openFiles:t},d4))}logError(t,r){this.logErrorWorker(t,r)}logErrorWorker(t,r,i){let o="Exception on executing command "+r;if(t.message&&(o+=`: +`+nP(t.message),t.stack&&(o+=` +`+nP(t.stack))),this.logger.hasLevel(3)){if(i)try{let{file:s,project:l}=this.getFileAndProject(i),u=l.getScriptInfoForNormalizedPath(s);if(u){let p=v2(u.getSnapshot());o+=` + +File text of ${i.file}:${nP(p)} +`}}catch{}if(t.ProgramFiles){o+=` + +Program files: ${JSON.stringify(t.ProgramFiles)} +`,o+=` + +Projects:: +`;let s=0,l=u=>{o+=` +Project '${u.projectName}' (${CP[u.projectKind]}) ${s} +`,o+=u.filesToString(!0),o+=` +----------------------------------------------- +`,s++};this.projectService.externalProjects.forEach(l),this.projectService.configuredProjects.forEach(l),this.projectService.inferredProjects.forEach(l)}}this.logger.msg(o,"Err")}send(t){if(t.type==="event"&&!this.canUseEvents){this.logger.hasLevel(3)&&this.logger.info(`Session does not support events: ignored event: ${D0(t)}`);return}this.writeMessage(t)}writeMessage(t){var r;let i=qhe(t,this.logger,this.byteLength,this.host.newLine);(r=rd)==null||r.logEvent(`Response message size: ${i.length}`),this.host.write(i)}event(t,r){this.send(Jhe(r,t))}doOutput(t,r,i,o,s){let l={seq:0,type:"response",command:r,request_seq:i,success:o,performanceData:this.performanceData};if(o){let u;if(Do(t))l.body=t,u=t.metadata,delete t.metadata;else if(typeof t=="object")if(t.metadata){let{metadata:p,...g}=t;l.body=g,u=p}else l.body=t;else l.body=t;u&&(l.metadata=u)}else C.assert(t===void 0);s&&(l.message=s),this.send(l)}semanticCheck(t,r){var i,o;(i=lr)==null||i.push(lr.Phase.Session,"semanticCheck",{file:t,configFilePath:r.canonicalConfigFilePath});let s=vwe(r,t)?hc:r.getLanguageService().getSemanticDiagnostics(t).filter(l=>!!l.file);this.sendDiagnosticsEvent(t,r,s,"semanticDiag"),(o=lr)==null||o.pop()}syntacticCheck(t,r){var i,o;(i=lr)==null||i.push(lr.Phase.Session,"syntacticCheck",{file:t,configFilePath:r.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,r,r.getLanguageService().getSyntacticDiagnostics(t),"syntaxDiag"),(o=lr)==null||o.pop()}suggestionCheck(t,r){var i,o;(i=lr)==null||i.push(lr.Phase.Session,"suggestionCheck",{file:t,configFilePath:r.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,r,r.getLanguageService().getSuggestionDiagnostics(t),"suggestionDiag"),(o=lr)==null||o.pop()}sendDiagnosticsEvent(t,r,i,o){try{this.event({file:t,diagnostics:i.map(s=>ywe(t,r,s))},o)}catch(s){this.logError(s,o)}}updateErrorCheck(t,r,i,o=!0){C.assert(!this.suppressDiagnosticEvents);let s=this.changeSeq,l=Math.min(i,200),u=0,p=()=>{u++,r.length>u&&t.delay("checkOne",l,g)},g=()=>{if(this.changeSeq!==s)return;let m=r[u];if(wo(m)&&(m=this.toPendingErrorCheck(m),!m)){p();return}let{fileName:b,project:T}=m;if(Gp(T),!!T.containsFile(b,o)&&(this.syntacticCheck(b,T),this.changeSeq===s)){if(T.projectService.serverMode!==0){p();return}t.immediate("semanticCheck",()=>{if(this.semanticCheck(b,T),this.changeSeq===s){if(this.getPreferences(b).disableSuggestions){p();return}t.immediate("suggestionCheck",()=>{this.suggestionCheck(b,T),p()})}})}};r.length>u&&this.changeSeq===s&&t.delay("checkOne",i,g)}cleanProjects(t,r){if(r){this.logger.info(`cleaning ${t}`);for(let i of r)i.getLanguageService(!1).cleanupSemanticCache(),i.cleanupProgram()}}cleanup(){this.cleanProjects("inferred projects",this.projectService.inferredProjects),this.cleanProjects("configured projects",Vo(this.projectService.configuredProjects.values())),this.cleanProjects("external projects",this.projectService.externalProjects),this.host.gc&&(this.logger.info("host.gc()"),this.host.gc())}getEncodedSyntacticClassifications(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t);return i.getEncodedSyntacticClassifications(r,t)}getEncodedSemanticClassifications(t){let{file:r,project:i}=this.getFileAndProject(t),o=t.format==="2020"?"2020":"original";return i.getLanguageService().getEncodedSemanticClassifications(r,t,o)}getProject(t){return t===void 0?void 0:this.projectService.findProject(t)}getConfigFileAndProject(t){let r=this.getProject(t.projectFileName),i=pl(t.file);return{configFile:r&&r.hasConfigFile(i)?i:void 0,project:r}}getConfigFileDiagnostics(t,r,i){let o=r.getAllProjectErrors(),s=r.getLanguageService().getCompilerOptionsDiagnostics(),l=tr(xo(o,s),u=>!!u.file&&u.file.fileName===t);return i?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(l):Ft(l,u=>f4(u,!1))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(t){return t.map(r=>({message:W_(r.messageText,this.host.newLine),start:r.start,length:r.length,category:aS(r),code:r.code,source:r.source,startLocation:r.file&&p4(Es(r.file,r.start)),endLocation:r.file&&p4(Es(r.file,r.start+r.length)),reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated,relatedInformation:Ft(r.relatedInformation,EZ)}))}getCompilerOptionsDiagnostics(t){let r=this.getProject(t.projectFileName);return this.convertToDiagnosticsWithLinePosition(tr(r.getLanguageService().getCompilerOptionsDiagnostics(),i=>!i.file),void 0)}convertToDiagnosticsWithLinePosition(t,r){return t.map(i=>({message:W_(i.messageText,this.host.newLine),start:i.start,length:i.length,category:aS(i),code:i.code,source:i.source,startLocation:r&&r.positionToLineOffset(i.start),endLocation:r&&r.positionToLineOffset(i.start+i.length),reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated,relatedInformation:Ft(i.relatedInformation,EZ)}))}getDiagnosticsWorker(t,r,i,o){let{project:s,file:l}=this.getFileAndProject(t);if(r&&vwe(s,l))return hc;let u=s.getScriptInfoForNormalizedPath(l),p=i(s,l);return o?this.convertToDiagnosticsWithLinePosition(p,u):p.map(g=>ywe(l,s,g))}getDefinition(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=this.mapDefinitionInfoLocations(o.getLanguageService().getDefinitionAtPosition(i,s)||hc,o);return r?this.mapDefinitionInfo(l,o):l.map(dne.mapToOriginalLocation)}mapDefinitionInfoLocations(t,r){return t.map(i=>{let o=Swe(i,r);return o?{...o,containerKind:i.containerKind,containerName:i.containerName,kind:i.kind,name:i.name,failedAliasResolution:i.failedAliasResolution,...i.unverified&&{unverified:i.unverified}}:i})}getDefinitionAndBoundSpan(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=C.checkDefined(o.getScriptInfo(i)),u=o.getLanguageService().getDefinitionAndBoundSpan(i,s);if(!u||!u.definitions)return{definitions:hc,textSpan:void 0};let p=this.mapDefinitionInfoLocations(u.definitions,o),{textSpan:g}=u;return r?{definitions:this.mapDefinitionInfo(p,o),textSpan:Rh(g,l)}:{definitions:p.map(dne.mapToOriginalLocation),textSpan:g}}findSourceDefinition(t){var r;let{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=o.getLanguageService().getDefinitionAtPosition(i,s),u=this.mapDefinitionInfoLocations(l||hc,o).slice();if(this.projectService.serverMode===0&&(!Et(u,I=>pl(I.fileName)!==i&&!I.isAmbient)||Et(u,I=>!!I.failedAliasResolution))){let I=aG(O=>O.textSpan.start,dX(this.host.useCaseSensitiveFileNames));u?.forEach(O=>I.add(O));let R=o.getNoDtsResolutionProject(i),M=R.getLanguageService(),N=(r=M.getDefinitionAtPosition(i,s,!0,!1))==null?void 0:r.filter(O=>pl(O.fileName)!==i);if(Et(N))for(let O of N){if(O.unverified){let H=b(O,o.getLanguageService().getProgram(),M.getProgram());if(Et(H)){for(let K of H)I.add(K);continue}}I.add(O)}else{let O=u.filter(H=>pl(H.fileName)!==i&&H.isAmbient);for(let H of Et(O)?O:m()){let K=g(H.fileName,i,R);if(!K)continue;let Z=this.projectService.getOrCreateScriptInfoNotOpenedByClient(K,R.currentDirectory,R.directoryStructureHost);if(!Z)continue;R.containsScriptInfo(Z)||(R.addRoot(Z),R.updateGraph());let V=M.getProgram(),ue=C.checkDefined(V.getSourceFile(K));for(let G of T(H.name,ue,V))I.add(G)}}u=Vo(I.values())}return u=u.filter(I=>!I.isAmbient&&!I.failedAliasResolution),this.mapDefinitionInfo(u,o);function g(I,R,M){var N,O,H;let K=t7(I);if(K&&I.lastIndexOf(Ih)===K.topLevelNodeModulesIndex){let Z=I.substring(0,K.packageRootIndex),V=(N=o.getModuleResolutionCache())==null?void 0:N.getPackageJsonInfoCache(),ue=o.getCompilationSettings(),G=bw(bo(Z+"/package.json",o.getCurrentDirectory()),yw(V,o,ue));if(!G)return;let ne=Iq(G,{moduleResolution:2},o,o.getModuleResolutionCache()),he=I.substring(K.topLevelPackageNameIndex+1,K.packageRootIndex),ye=zN(Tw(he)),$=o.toPath(I);if(ne&&Et(ne,Y=>o.toPath(Y)===$))return(O=M.resolutionCache.resolveSingleModuleNameWithoutWatching(ye,R).resolvedModule)==null?void 0:O.resolvedFileName;{let Y=I.substring(K.packageRootIndex+1),oe=`${ye}/${Td(Y)}`;return(H=M.resolutionCache.resolveSingleModuleNameWithoutWatching(oe,R).resolvedModule)==null?void 0:H.resolvedFileName}}}function m(){let I=o.getLanguageService(),R=I.getProgram(),M=zd(R.getSourceFile(i),s);return(us(M)||Ve(M))&&ks(M.parent)&&Eoe(M,N=>{var O;if(N===M)return;let H=(O=I.getDefinitionAtPosition(i,N.getStart(),!0,!1))==null?void 0:O.filter(K=>pl(K.fileName)!==i&&K.isAmbient).map(K=>({fileName:K.fileName,name:Zf(M)}));if(Et(H))return H})||hc}function b(I,R,M){var N;let O=M.getSourceFile(I.fileName);if(!O)return;let H=zd(R.getSourceFile(i),s),K=R.getTypeChecker().getSymbolAtLocation(H),Z=K&&dl(K,276);if(!Z)return;let V=((N=Z.propertyName)==null?void 0:N.text)||Z.name.text;return T(V,O,M)}function T(I,R,M){let N=Os.Core.getTopMostDeclarationNamesInFile(I,R);return Vi(N,O=>{let H=M.getTypeChecker().getSymbolAtLocation(O),K=NC(O);if(H&&K)return w2.createDefinitionInfo(K,M.getTypeChecker(),H,K,!0)})}}getEmitOutput(t){let{file:r,project:i}=this.getFileAndProject(t);if(!i.shouldEmitFile(i.getScriptInfo(r)))return{emitSkipped:!0,outputFiles:[],diagnostics:[]};let o=i.getLanguageService().getEmitOutput(r);return t.richResponse?{...o,diagnostics:t.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(o.diagnostics):o.diagnostics.map(s=>f4(s,!0))}:o}mapJSDocTagInfo(t,r,i){return t?t.map(o=>{var s;return{...o,text:i?this.mapDisplayParts(o.text,r):(s=o.text)==null?void 0:s.map(l=>l.text).join("")}}):[]}mapDisplayParts(t,r){return t?t.map(i=>i.kind!=="linkName"?i:{...i,target:this.toFileSpan(i.target.fileName,i.target.textSpan,r)}):[]}mapSignatureHelpItems(t,r,i){return t.map(o=>({...o,documentation:this.mapDisplayParts(o.documentation,r),parameters:o.parameters.map(s=>({...s,documentation:this.mapDisplayParts(s.documentation,r)})),tags:this.mapJSDocTagInfo(o.tags,r,i)}))}mapDefinitionInfo(t,r){return t.map(i=>({...this.toFileSpanWithContext(i.fileName,i.textSpan,i.contextSpan,r),...i.unverified&&{unverified:i.unverified}}))}static mapToOriginalLocation(t){return t.originalFileName?(C.assert(t.originalTextSpan!==void 0,"originalTextSpan should be present if originalFileName is"),{...t,fileName:t.originalFileName,textSpan:t.originalTextSpan,targetFileName:t.fileName,targetTextSpan:t.textSpan,contextSpan:t.originalContextSpan,targetContextSpan:t.contextSpan}):t}toFileSpan(t,r,i){let o=i.getLanguageService(),s=o.toLineColumnOffset(t,r.start),l=o.toLineColumnOffset(t,ql(r));return{file:t,start:{line:s.line+1,offset:s.character+1},end:{line:l.line+1,offset:l.character+1}}}toFileSpanWithContext(t,r,i,o){let s=this.toFileSpan(t,r,o),l=i&&this.toFileSpan(t,i,o);return l?{...s,contextStart:l.start,contextEnd:l.end}:s}getTypeDefinition(t){let{file:r,project:i}=this.getFileAndProject(t),o=this.getPositionInFile(t,r),s=this.mapDefinitionInfoLocations(i.getLanguageService().getTypeDefinitionAtPosition(r,o)||hc,i);return this.mapDefinitionInfo(s,i)}mapImplementationLocations(t,r){return t.map(i=>{let o=Swe(i,r);return o?{...o,kind:i.kind,displayParts:i.displayParts}:i})}getImplementation(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=this.mapImplementationLocations(o.getLanguageService().getImplementationAtPosition(i,s)||hc,o);return r?l.map(({fileName:u,textSpan:p,contextSpan:g})=>this.toFileSpanWithContext(u,p,g,o)):l.map(dne.mapToOriginalLocation)}getSyntacticDiagnosticsSync(t){let{configFile:r}=this.getConfigFileAndProject(t);return r?hc:this.getDiagnosticsWorker(t,!1,(i,o)=>i.getLanguageService().getSyntacticDiagnostics(o),!!t.includeLinePosition)}getSemanticDiagnosticsSync(t){let{configFile:r,project:i}=this.getConfigFileAndProject(t);return r?this.getConfigFileDiagnostics(r,i,!!t.includeLinePosition):this.getDiagnosticsWorker(t,!0,(o,s)=>o.getLanguageService().getSemanticDiagnostics(s).filter(l=>!!l.file),!!t.includeLinePosition)}getSuggestionDiagnosticsSync(t){let{configFile:r}=this.getConfigFileAndProject(t);return r?hc:this.getDiagnosticsWorker(t,!0,(i,o)=>i.getLanguageService().getSuggestionDiagnostics(o),!!t.includeLinePosition)}getJsxClosingTag(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r),s=i.getJsxClosingTagAtPosition(r,o);return s===void 0?void 0:{newText:s.newText,caretOffset:0}}getLinkedEditingRange(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r),s=i.getLinkedEditingRangeAtPosition(r,o),l=this.projectService.getScriptInfoForNormalizedPath(r);if(!(l===void 0||s===void 0))return bat(s,l)}getDocumentHighlights(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=o.getLanguageService().getDocumentHighlights(i,s,t.filesToSearch);return l?r?l.map(({fileName:u,highlightSpans:p})=>{let g=o.getScriptInfo(u);return{file:u,highlightSpans:p.map(({textSpan:m,kind:b,contextSpan:T})=>({...Xhe(m,T,g),kind:b}))}}):l:hc}provideInlayHints(t){let{file:r,project:i}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(r);return i.getLanguageService().provideInlayHints(r,t,this.getPreferences(r)).map(l=>{let{position:u,displayParts:p}=l;return{...l,position:o.positionToLineOffset(u),displayParts:p?.map(({text:g,span:m,file:b})=>{if(m){C.assertIsDefined(b,"Target file should be defined together with its span.");let T=this.projectService.getScriptInfo(b);return{text:g,span:{start:T.positionToLineOffset(m.start),end:T.positionToLineOffset(m.start+m.length),file:b}}}else return{text:g}})}})}setCompilerOptionsForInferredProjects(t){this.projectService.setCompilerOptionsForInferredProjects(t.options,t.projectRootPath)}getProjectInfo(t){return this.getProjectInfoWorker(t.file,t.projectFileName,t.needFileNameList,!1)}getProjectInfoWorker(t,r,i,o){let{project:s}=this.getFileAndProjectWorker(t,r);return Gp(s),{configFileName:s.getProjectName(),languageServiceDisabled:!s.languageServiceEnabled,fileNames:i?s.getFileNames(!1,o):void 0}}getRenameInfo(t){let{file:r,project:i}=this.getFileAndProject(t),o=this.getPositionInFile(t,r),s=this.getPreferences(r);return i.getLanguageService().getRenameInfo(r,o,s)}getProjects(t,r,i){let o,s;if(t.projectFileName){let l=this.getProject(t.projectFileName);l&&(o=[l])}else{let l=r?this.projectService.getScriptInfoEnsuringProjectsUptoDate(t.file):this.projectService.getScriptInfo(t.file);if(l)r||this.projectService.ensureDefaultProjectForFile(l);else return i?hc:(this.projectService.logErrorForScriptInfoNotFound(t.file),ny.ThrowNoProject());o=l.containingProjects,s=this.projectService.getSymlinkedProjects(l)}return o=tr(o,l=>l.languageServiceEnabled&&!l.isOrphan()),!i&&(!o||!o.length)&&!s?(this.projectService.logErrorForScriptInfoNotFound(t.file??t.projectFileName),ny.ThrowNoProject()):s?{projects:o,symLinkedProjects:s}:o}getDefaultProject(t){if(t.projectFileName){let i=this.getProject(t.projectFileName);if(i)return i;if(!t.file)return ny.ThrowNoProject()}return this.projectService.getScriptInfo(t.file).getDefaultProject()}getRenameLocations(t,r){let i=pl(t.file),o=this.getPositionInFile(t,i),s=this.getProjects(t),l=this.getDefaultProject(t),u=this.getPreferences(i),p=this.mapRenameInfo(l.getLanguageService().getRenameInfo(i,o,u),C.checkDefined(this.projectService.getScriptInfo(i)));if(!p.canRename)return r?{info:p,locs:[]}:[];let g=fat(s,l,{fileName:t.file,pos:o},!!t.findInStrings,!!t.findInComments,u,this.host.useCaseSensitiveFileNames);return r?{info:p,locs:this.toSpanGroups(g)}:g}mapRenameInfo(t,r){if(t.canRename){let{canRename:i,fileToRename:o,displayName:s,fullDisplayName:l,kind:u,kindModifiers:p,triggerSpan:g}=t;return{canRename:i,fileToRename:o,displayName:s,fullDisplayName:l,kind:u,kindModifiers:p,triggerSpan:Rh(g,r)}}else return t}toSpanGroups(t){let r=new Map;for(let{fileName:i,textSpan:o,contextSpan:s,originalContextSpan:l,originalTextSpan:u,originalFileName:p,...g}of t){let m=r.get(i);m||r.set(i,m={file:i,locs:[]});let b=C.checkDefined(this.projectService.getScriptInfo(i));m.locs.push({...Xhe(o,s,b),...g})}return Vo(r.values())}getReferences(t,r){let i=pl(t.file),o=this.getProjects(t),s=this.getPositionInFile(t,i),l=_at(o,this.getDefaultProject(t),{fileName:t.file,pos:s},this.host.useCaseSensitiveFileNames,this.logger);if(!r)return l;let u=this.getPreferences(i),p=this.getDefaultProject(t),g=p.getScriptInfoForNormalizedPath(i),m=p.getLanguageService().getQuickInfoAtPosition(i,s),b=m?OO(m.displayParts):"",T=m&&m.textSpan,I=T?g.positionToLineOffset(T.start).offset:0,R=T?g.getSnapshot().getText(T.start,ql(T)):"";return{refs:Zi(l,N=>N.references.map(O=>Awe(this.projectService,O,u))),symbolName:R,symbolStartOffset:I,symbolDisplayString:b}}getFileReferences(t,r){let i=this.getProjects(t),o=t.file,s=this.getPreferences(pl(o)),l=[],u=SZ(this.host.useCaseSensitiveFileNames);return Khe(i,void 0,g=>{if(g.getCancellationToken().isCancellationRequested())return;let m=g.getLanguageService().getFileReferences(o);if(m)for(let b of m)u.has(b)||(l.push(b),u.add(b))}),r?{refs:l.map(g=>Awe(this.projectService,g,s)),symbolName:`"${t.file}"`}:l}openClientFile(t,r,i,o){this.projectService.openClientFileWithNormalizedPath(t,r,i,!1,o)}getPosition(t,r){return t.position!==void 0?t.position:r.lineOffsetToPosition(t.line,t.offset)}getPositionInFile(t,r){let i=this.projectService.getScriptInfoForNormalizedPath(r);return this.getPosition(t,i)}getFileAndProject(t){return this.getFileAndProjectWorker(t.file,t.projectFileName)}getFileAndLanguageServiceForSyntacticOperation(t){let{file:r,project:i}=this.getFileAndProject(t);return{file:r,languageService:i.getLanguageService(!1)}}getFileAndProjectWorker(t,r){let i=pl(t),o=this.getProject(r)||this.projectService.ensureDefaultProjectForFile(i);return{file:i,project:o}}getOutliningSpans(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=o.getOutliningSpans(i);if(r){let l=this.projectService.getScriptInfoForNormalizedPath(i);return s.map(u=>({textSpan:Rh(u.textSpan,l),hintSpan:Rh(u.hintSpan,l),bannerText:u.bannerText,autoCollapse:u.autoCollapse,kind:u.kind}))}else return s}getTodoComments(t){let{file:r,project:i}=this.getFileAndProject(t);return i.getLanguageService().getTodoComments(r,t.descriptors)}getDocCommentTemplate(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.getDocCommentTemplateAtPosition(r,o,this.getPreferences(r),this.getFormatOptions(r))}getSpanOfEnclosingComment(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.onlyMultiLine,s=this.getPositionInFile(t,r);return i.getSpanOfEnclosingComment(r,s,o)}getIndentation(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r),s=t.options?G2(t.options):this.getFormatOptions(r),l=i.getIndentationAtPosition(r,o,s);return{position:o,indentation:l}}getBreakpointStatement(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.getBreakpointStatementAtPosition(r,o)}getNameOrDottedNameSpan(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.getNameOrDottedNameSpan(r,o,o)}isValidBraceCompletion(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.isValidBraceCompletionAtPosition(r,o,t.openingBrace.charCodeAt(0))}getQuickInfoWorker(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=o.getLanguageService().getQuickInfoAtPosition(i,this.getPosition(t,s));if(!l)return;let u=!!this.getPreferences(i).displayPartsForJSDoc;if(r){let p=OO(l.displayParts);return{kind:l.kind,kindModifiers:l.kindModifiers,start:s.positionToLineOffset(l.textSpan.start),end:s.positionToLineOffset(ql(l.textSpan)),displayString:p,documentation:u?this.mapDisplayParts(l.documentation,o):OO(l.documentation),tags:this.mapJSDocTagInfo(l.tags,o,u)}}else return u?l:{...l,tags:this.mapJSDocTagInfo(l.tags,o,!1)}}getFormattingEditsForRange(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfoForNormalizedPath(r),s=o.lineOffsetToPosition(t.line,t.offset),l=o.lineOffsetToPosition(t.endLine,t.endOffset),u=i.getFormattingEditsForRange(r,s,l,this.getFormatOptions(r));if(u)return u.map(p=>this.convertTextChangeToCodeEdit(p,o))}getFormattingEditsForRangeFull(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.options?G2(t.options):this.getFormatOptions(r);return i.getFormattingEditsForRange(r,t.position,t.endPosition,o)}getFormattingEditsForDocumentFull(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.options?G2(t.options):this.getFormatOptions(r);return i.getFormattingEditsForDocument(r,o)}getFormattingEditsAfterKeystrokeFull(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.options?G2(t.options):this.getFormatOptions(r);return i.getFormattingEditsAfterKeystroke(r,t.position,t.key,o)}getFormattingEditsAfterKeystroke(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfoForNormalizedPath(r),s=o.lineOffsetToPosition(t.line,t.offset),l=this.getFormatOptions(r),u=i.getFormattingEditsAfterKeystroke(r,s,t.key,l);if(t.key===` +`&&(!u||u.length===0||dat(u,s))){let{lineText:p,absolutePosition:g}=o.textStorage.getAbsolutePositionAndLineText(t.line);if(p&&p.search("\\S")<0){let m=i.getIndentationAtPosition(r,s,l),b=0,T,I;for(T=0,I=p.length;T({start:o.positionToLineOffset(p.span.start),end:o.positionToLineOffset(ql(p.span)),newText:p.newText?p.newText:""}))}getCompletions(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),u=o.getLanguageService().getCompletionsAtPosition(i,l,{...khe(this.getPreferences(i)),triggerCharacter:t.triggerCharacter,triggerKind:t.triggerKind,includeExternalModuleExports:t.includeExternalModuleExports,includeInsertTextCompletions:t.includeInsertTextCompletions},o.projectService.getFormatCodeOptions(i));if(u===void 0)return;if(r==="completions-full")return u;let p=t.prefix||"",g=Vi(u.entries,b=>{if(u.isMemberCompletion||uo(b.name.toLowerCase(),p.toLowerCase())){let{name:T,kind:I,kindModifiers:R,sortText:M,insertText:N,filterText:O,replacementSpan:H,hasAction:K,source:Z,sourceDisplay:V,labelDetails:ue,isSnippet:G,isRecommended:ne,isPackageJsonImport:he,isImportStatementCompletion:ye,data:$}=b,Y=H?Rh(H,s):void 0;return{name:T,kind:I,kindModifiers:R,sortText:M,insertText:N,filterText:O,replacementSpan:Y,isSnippet:G,hasAction:K||void 0,source:Z,sourceDisplay:V,labelDetails:ue,isRecommended:ne,isPackageJsonImport:he,isImportStatementCompletion:ye,data:$}}});return r==="completions"?(u.metadata&&(g.metadata=u.metadata),g):{...u,optionalReplacementSpan:u.optionalReplacementSpan&&Rh(u.optionalReplacementSpan,s),entries:g}}getCompletionEntryDetails(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),u=o.projectService.getFormatCodeOptions(i),p=!!this.getPreferences(i).displayPartsForJSDoc,g=Vi(t.entryNames,m=>{let{name:b,source:T,data:I}=typeof m=="string"?{name:m,source:void 0,data:void 0}:m;return o.getLanguageService().getCompletionEntryDetails(i,l,b,u,T,this.getPreferences(i),I?aa(I,Iat):void 0)});return r?p?g:g.map(m=>({...m,tags:this.mapJSDocTagInfo(m.tags,o,!1)})):g.map(m=>({...m,codeActions:Ft(m.codeActions,b=>this.mapCodeAction(b)),documentation:this.mapDisplayParts(m.documentation,o),tags:this.mapJSDocTagInfo(m.tags,o,p)}))}getCompileOnSaveAffectedFileList(t){let r=this.getProjects(t,!0,!0),i=this.projectService.getScriptInfo(t.file);return i?pat(i,o=>this.projectService.getScriptInfoForPath(o),r,(o,s)=>{if(!o.compileOnSaveEnabled||!o.languageServiceEnabled||o.isOrphan())return;let l=o.getCompilationSettings();if(!(l.noEmit||Su(s.fileName)&&!uat(l)))return{projectFileName:o.getProjectName(),fileNames:o.getCompileOnSaveAffectedFileList(s),projectUsesOutFile:!!Ps(l)}}):hc}emitFile(t){let{file:r,project:i}=this.getFileAndProject(t);if(i||ny.ThrowNoProject(),!i.languageServiceEnabled)return t.richResponse?{emitSkipped:!0,diagnostics:[]}:!1;let o=i.getScriptInfo(r),{emitSkipped:s,diagnostics:l}=i.emitFile(o,(u,p,g)=>this.host.writeFile(u,p,g));return t.richResponse?{emitSkipped:s,diagnostics:t.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(l):l.map(u=>f4(u,!0))}:!s}getSignatureHelpItems(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),u=o.getLanguageService().getSignatureHelpItems(i,l,t),p=!!this.getPreferences(i).displayPartsForJSDoc;if(u&&r){let g=u.applicableSpan;return{...u,applicableSpan:{start:s.positionToLineOffset(g.start),end:s.positionToLineOffset(g.start+g.length)},items:this.mapSignatureHelpItems(u.items,o,p)}}else return p||!u?u:{...u,items:u.items.map(g=>({...g,tags:this.mapJSDocTagInfo(g.tags,o,!1)}))}}toPendingErrorCheck(t){let r=pl(t),i=this.projectService.tryGetDefaultProjectForFile(r);return i&&{fileName:r,project:i}}getDiagnostics(t,r,i){this.suppressDiagnosticEvents||i.length>0&&this.updateErrorCheck(t,i,r)}change(t){let r=this.projectService.getScriptInfo(t.file);C.assert(!!r),r.textStorage.switchToScriptVersionCache();let i=r.lineOffsetToPosition(t.line,t.offset),o=r.lineOffsetToPosition(t.endLine,t.endOffset);i>=0&&(this.changeSeq++,this.projectService.applyChangesToFile(r,pne({span:{start:i,length:o-i},newText:t.insertString})))}reload(t,r){let i=pl(t.file),o=t.tmpfile===void 0?void 0:pl(t.tmpfile),s=this.projectService.getScriptInfoForNormalizedPath(i);s&&(this.changeSeq++,s.reloadFromFile(o)&&this.doOutput(void 0,"reload",r,!0))}saveToTmp(t,r){let i=this.projectService.getScriptInfo(t);i&&i.saveTo(r)}closeClientFile(t){if(!t)return;let r=va(t);this.projectService.closeClientFile(r)}mapLocationNavigationBarItems(t,r){return Ft(t,i=>({text:i.text,kind:i.kind,kindModifiers:i.kindModifiers,spans:i.spans.map(o=>Rh(o,r)),childItems:this.mapLocationNavigationBarItems(i.childItems,r),indent:i.indent}))}getNavigationBarItems(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=o.getNavigationBarItems(i);return s?r?this.mapLocationNavigationBarItems(s,this.projectService.getScriptInfoForNormalizedPath(i)):s:void 0}toLocationNavigationTree(t,r){return{text:t.text,kind:t.kind,kindModifiers:t.kindModifiers,spans:t.spans.map(i=>Rh(i,r)),nameSpan:t.nameSpan&&Rh(t.nameSpan,r),childItems:Ft(t.childItems,i=>this.toLocationNavigationTree(i,r))}}getNavigationTree(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=o.getNavigationTree(i);return s?r?this.toLocationNavigationTree(s,this.projectService.getScriptInfoForNormalizedPath(i)):s:void 0}getNavigateToItems(t,r){let i=this.getFullNavigateToItems(t);return r?Zi(i,({project:o,navigateToItems:s})=>s.map(l=>{let u=o.getScriptInfo(l.fileName),p={name:l.name,kind:l.kind,kindModifiers:l.kindModifiers,isCaseSensitive:l.isCaseSensitive,matchKind:l.matchKind,file:l.fileName,start:u.positionToLineOffset(l.textSpan.start),end:u.positionToLineOffset(ql(l.textSpan))};return l.kindModifiers&&l.kindModifiers!==""&&(p.kindModifiers=l.kindModifiers),l.containerName&&l.containerName.length>0&&(p.containerName=l.containerName),l.containerKind&&l.containerKind.length>0&&(p.containerKind=l.containerKind),p})):Zi(i,({navigateToItems:o})=>o)}getFullNavigateToItems(t){let{currentFileOnly:r,searchValue:i,maxResultCount:o,projectFileName:s}=t;if(r){C.assertIsDefined(t.file);let{file:T,project:I}=this.getFileAndProject(t);return[{project:I,navigateToItems:I.getLanguageService().getNavigateToItems(i,o,T)}]}let l=this.getHostPreferences(),u=[],p=new Map;if(!t.file&&!s)this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(T=>g(T));else{let T=this.getProjects(t);Khe(T,void 0,I=>g(I))}return u;function g(T){let I=T.getLanguageService().getNavigateToItems(i,o,void 0,T.isNonTsProject(),l.excludeLibrarySymbolsInNavTo),R=tr(I,M=>m(M)&&!TZ(NP(M),T));R.length&&u.push({project:T,navigateToItems:R})}function m(T){let I=T.name;if(!p.has(I))return p.set(I,[T]),!0;let R=p.get(I);for(let M of R)if(b(M,T))return!1;return R.push(T),!0}function b(T,I){return T===I?!0:!T||!I?!1:T.containerKind===I.containerKind&&T.containerName===I.containerName&&T.fileName===I.fileName&&T.isCaseSensitive===I.isCaseSensitive&&T.kind===I.kind&&T.kindModifiers===I.kindModifiers&&T.matchKind===I.matchKind&&T.name===I.name&&T.textSpan.start===I.textSpan.start&&T.textSpan.length===I.textSpan.length}}getSupportedCodeFixes(t){if(!t)return LY();if(t.file){let{file:i,project:o}=this.getFileAndProject(t);return o.getLanguageService().getSupportedCodeFixes(i)}let r=this.getProject(t.projectFileName);return r||ny.ThrowNoProject(),r.getLanguageService().getSupportedCodeFixes()}isLocation(t){return t.line!==void 0}extractPositionOrRange(t,r){let i,o;return this.isLocation(t)?i=s(t):o=this.getRange(t,r),C.checkDefined(i===void 0?o:i);function s(l){return l.position!==void 0?l.position:r.lineOffsetToPosition(l.line,l.offset)}}getRange(t,r){let{startPosition:i,endPosition:o}=this.getStartAndEndPosition(t,r);return{pos:i,end:o}}getApplicableRefactors(t){let{file:r,project:i}=this.getFileAndProject(t),o=i.getScriptInfoForNormalizedPath(r);return i.getLanguageService().getApplicableRefactors(r,this.extractPositionOrRange(t,o),this.getPreferences(r),t.triggerReason,t.kind,t.includeInteractiveActions)}getEditsForRefactor(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=o.getScriptInfoForNormalizedPath(i),l=o.getLanguageService().getEditsForRefactor(i,this.getFormatOptions(i),this.extractPositionOrRange(t,s),t.refactor,t.action,this.getPreferences(i),t.interactiveRefactorArguments);if(l===void 0)return{edits:[]};if(r){let{renameFilename:u,renameLocation:p,edits:g}=l,m;if(u!==void 0&&p!==void 0){let b=o.getScriptInfoForNormalizedPath(pl(u));m=Yhe(v2(b.getSnapshot()),u,p,g)}return{renameLocation:m,renameFilename:u,edits:this.mapTextChangesToCodeEdits(g),notApplicableReason:l.notApplicableReason}}return l}getMoveToRefactoringFileSuggestions(t){let{file:r,project:i}=this.getFileAndProject(t),o=i.getScriptInfoForNormalizedPath(r);return i.getLanguageService().getMoveToRefactoringFileSuggestions(r,this.extractPositionOrRange(t,o),this.getPreferences(r))}organizeImports(t,r){C.assert(t.scope.type==="file");let{file:i,project:o}=this.getFileAndProject(t.scope.args),s=o.getLanguageService().organizeImports({fileName:i,mode:t.mode??(t.skipDestructiveCodeActions?"SortAndCombine":void 0),type:"file"},this.getFormatOptions(i),this.getPreferences(i));return r?this.mapTextChangesToCodeEdits(s):s}getEditsForFileRename(t,r){let i=pl(t.oldFilePath),o=pl(t.newFilePath),s=this.getHostFormatOptions(),l=this.getHostPreferences(),u=new Set,p=[];return this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(g=>{let m=g.getLanguageService().getEditsForFileRename(i,o,s,l),b=[];for(let T of m)u.has(T.fileName)||(p.push(T),b.push(T.fileName));for(let T of b)u.add(T)}),r?p.map(g=>this.mapTextChangeToCodeEdit(g)):p}getCodeFixes(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=o.getScriptInfoForNormalizedPath(i),{startPosition:l,endPosition:u}=this.getStartAndEndPosition(t,s),p;try{p=o.getLanguageService().getCodeFixesAtPosition(i,l,u,t.errorCodes,this.getFormatOptions(i),this.getPreferences(i))}catch(g){let m=o.getLanguageService(),b=[...m.getSyntacticDiagnostics(i),...m.getSemanticDiagnostics(i),...m.getSuggestionDiagnostics(i)].map(I=>eL(l,u-l,I.start,I.length)&&I.code),T=t.errorCodes.find(I=>!b.includes(I));throw T!==void 0&&(g.message=`BADCLIENT: Bad error code, ${T} not found in range ${l}..${u} (found: ${b.join(", ")}); could have caused this error: +${g.message}`),g}return r?p.map(g=>this.mapCodeFixAction(g)):p}getCombinedCodeFix({scope:t,fixId:r},i){C.assert(t.type==="file");let{file:o,project:s}=this.getFileAndProject(t.args),l=s.getLanguageService().getCombinedCodeFix({type:"file",fileName:o},r,this.getFormatOptions(o),this.getPreferences(o));return i?{changes:this.mapTextChangesToCodeEdits(l.changes),commands:l.commands}:l}applyCodeActionCommand(t){let r=t.command;for(let i of gA(r)){let{file:o,project:s}=this.getFileAndProject(i);s.getLanguageService().applyCodeActionCommand(i,this.getFormatOptions(o)).then(l=>{},l=>{})}return{}}getStartAndEndPosition(t,r){let i,o;return t.startPosition!==void 0?i=t.startPosition:(i=r.lineOffsetToPosition(t.startLine,t.startOffset),t.startPosition=i),t.endPosition!==void 0?o=t.endPosition:(o=r.lineOffsetToPosition(t.endLine,t.endOffset),t.endPosition=o),{startPosition:i,endPosition:o}}mapCodeAction({description:t,changes:r,commands:i}){return{description:t,changes:this.mapTextChangesToCodeEdits(r),commands:i}}mapCodeFixAction({fixName:t,description:r,changes:i,commands:o,fixId:s,fixAllDescription:l}){return{fixName:t,description:r,changes:this.mapTextChangesToCodeEdits(i),commands:o,fixId:s,fixAllDescription:l}}mapTextChangesToCodeEdits(t){return t.map(r=>this.mapTextChangeToCodeEdit(r))}mapTextChangeToCodeEdit(t){let r=this.projectService.getScriptInfoOrConfig(t.fileName);return!!t.isNewFile==!!r&&(r||this.projectService.logErrorForScriptInfoNotFound(t.fileName),C.fail("Expected isNewFile for (only) new files. "+JSON.stringify({isNewFile:!!t.isNewFile,hasScriptInfo:!!r}))),r?{fileName:t.fileName,textChanges:t.textChanges.map(i=>yat(i,r))}:Sat(t)}convertTextChangeToCodeEdit(t,r){return{start:r.positionToLineOffset(t.span.start),end:r.positionToLineOffset(t.span.start+t.span.length),newText:t.newText?t.newText:""}}getBraceMatching(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),u=o.getBraceMatchingAtPosition(i,l);return u?r?u.map(p=>Rh(p,s)):u:void 0}getDiagnosticsForProject(t,r,i){if(this.suppressDiagnosticEvents)return;let{fileNames:o,languageServiceDisabled:s}=this.getProjectInfoWorker(i,void 0,!0,!0);if(s)return;let l=o.filter(M=>!M.includes("lib.d.ts"));if(l.length===0)return;let u=[],p=[],g=[],m=[],b=pl(i),T=this.projectService.ensureDefaultProjectForFile(b);for(let M of l)this.getCanonicalFileName(M)===this.getCanonicalFileName(i)?u.push(M):this.projectService.getScriptInfo(M).isScriptOpen()?p.push(M):Su(M)?m.push(M):g.push(M);let R=[...u,...p,...g,...m].map(M=>({fileName:M,project:T}));this.updateErrorCheck(t,R,r,!1)}configurePlugin(t){this.projectService.configurePlugin(t)}getSmartSelectionRange(t,r){let{locations:i}=t,{file:o,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),l=C.checkDefined(this.projectService.getScriptInfo(o));return Ft(i,u=>{let p=this.getPosition(u,l),g=s.getSmartSelectionRange(o,p);return r?this.mapSelectionRange(g,l):g})}toggleLineComment(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfo(i),l=this.getRange(t,s),u=o.toggleLineComment(i,l);if(r){let p=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(g=>this.convertTextChangeToCodeEdit(g,p))}return u}toggleMultilineComment(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getRange(t,s),u=o.toggleMultilineComment(i,l);if(r){let p=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(g=>this.convertTextChangeToCodeEdit(g,p))}return u}commentSelection(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getRange(t,s),u=o.commentSelection(i,l);if(r){let p=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(g=>this.convertTextChangeToCodeEdit(g,p))}return u}uncommentSelection(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getRange(t,s),u=o.uncommentSelection(i,l);if(r){let p=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(g=>this.convertTextChangeToCodeEdit(g,p))}return u}mapSelectionRange(t,r){let i={textSpan:Rh(t.textSpan,r)};return t.parent&&(i.parent=this.mapSelectionRange(t.parent,r)),i}getScriptInfoFromProjectService(t){let r=pl(t),i=this.projectService.getScriptInfoForNormalizedPath(r);return i||(this.projectService.logErrorForScriptInfoNotFound(r),ny.ThrowNoProject())}toProtocolCallHierarchyItem(t){let r=this.getScriptInfoFromProjectService(t.file);return{name:t.name,kind:t.kind,kindModifiers:t.kindModifiers,file:t.file,containerName:t.containerName,span:Rh(t.span,r),selectionSpan:Rh(t.selectionSpan,r)}}toProtocolCallHierarchyIncomingCall(t){let r=this.getScriptInfoFromProjectService(t.from.file);return{from:this.toProtocolCallHierarchyItem(t.from),fromSpans:t.fromSpans.map(i=>Rh(i,r))}}toProtocolCallHierarchyOutgoingCall(t,r){return{to:this.toProtocolCallHierarchyItem(t.to),fromSpans:t.fromSpans.map(i=>Rh(i,r))}}prepareCallHierarchy(t){let{file:r,project:i}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(r);if(o){let s=this.getPosition(t,o),l=i.getLanguageService().prepareCallHierarchy(r,s);return l&&CX(l,u=>this.toProtocolCallHierarchyItem(u))}}provideCallHierarchyIncomingCalls(t){let{file:r,project:i}=this.getFileAndProject(t),o=this.getScriptInfoFromProjectService(r);return i.getLanguageService().provideCallHierarchyIncomingCalls(r,this.getPosition(t,o)).map(l=>this.toProtocolCallHierarchyIncomingCall(l))}provideCallHierarchyOutgoingCalls(t){let{file:r,project:i}=this.getFileAndProject(t),o=this.getScriptInfoFromProjectService(r);return i.getLanguageService().provideCallHierarchyOutgoingCalls(r,this.getPosition(t,o)).map(l=>this.toProtocolCallHierarchyOutgoingCall(l,o))}getCanonicalFileName(t){let r=this.host.useCaseSensitiveFileNames?t:lh(t);return va(r)}exit(){}notRequired(){return{responseRequired:!1}}requiredResponse(t){return{response:t,responseRequired:!0}}addProtocolHandler(t,r){if(this.handlers.has(t))throw new Error(`Protocol handler already exists for command "${t}"`);this.handlers.set(t,r)}setCurrentRequest(t){C.assert(this.currentRequestId===void 0),this.currentRequestId=t,this.cancellationToken.setRequest(t)}resetCurrentRequest(t){C.assert(this.currentRequestId===t),this.currentRequestId=void 0,this.cancellationToken.resetRequest(t)}executeWithRequestId(t,r){try{return this.setCurrentRequest(t),r()}finally{this.resetCurrentRequest(t)}}executeCommand(t){let r=this.handlers.get(t.command);if(r){let i=this.executeWithRequestId(t.seq,()=>r(t));return this.projectService.enableRequestedPlugins(),i}else return this.logger.msg(`Unrecognized JSON command:${D0(t)}`,"Err"),this.doOutput(void 0,"unknown",t.seq,!1,`Unrecognized JSON command: ${t.command}`),{responseRequired:!1}}onMessage(t){var r,i,o,s,l,u,p,g,m,b,T;this.gcTimer.scheduleCollect(),this.performanceData=void 0;let I;this.logger.hasLevel(2)&&(I=this.hrtime(),this.logger.hasLevel(3)&&this.logger.info(`request:${nP(this.toStringMessage(t))}`));let R,M;try{R=this.parseMessage(t),M=R.arguments&&R.arguments.file?R.arguments:void 0,(r=lr)==null||r.instant(lr.Phase.Session,"request",{seq:R.seq,command:R.command}),(i=rd)==null||i.logStartCommand(""+R.command,this.toStringMessage(t).substring(0,100)),(o=lr)==null||o.push(lr.Phase.Session,"executeCommand",{seq:R.seq,command:R.command},!0);let{response:N,responseRequired:O}=this.executeCommand(R);if((s=lr)==null||s.pop(),this.logger.hasLevel(2)){let H=cat(this.hrtime(I)).toFixed(4);O?this.logger.perftrc(`${R.seq}::${R.command}: elapsed time (in milliseconds) ${H}`):this.logger.perftrc(`${R.seq}::${R.command}: async elapsed time (in milliseconds) ${H}`)}(l=rd)==null||l.logStopCommand(""+R.command,"Success"),(u=lr)==null||u.instant(lr.Phase.Session,"response",{seq:R.seq,command:R.command,success:!!N}),N?this.doOutput(N,R.command,R.seq,!0):O&&this.doOutput(void 0,R.command,R.seq,!1,"No content available.")}catch(N){if((p=lr)==null||p.popAll(),N instanceof Ox){(g=rd)==null||g.logStopCommand(""+(R&&R.command),"Canceled: "+N),(m=lr)==null||m.instant(lr.Phase.Session,"commandCanceled",{seq:R?.seq,command:R?.command}),this.doOutput({canceled:!0},R.command,R.seq,!0);return}this.logErrorWorker(N,this.toStringMessage(t),M),(b=rd)==null||b.logStopCommand(""+(R&&R.command),"Error: "+N),(T=lr)==null||T.instant(lr.Phase.Session,"commandError",{seq:R?.seq,command:R?.command,message:N.message}),this.doOutput(void 0,R?R.command:"unknown",R?R.seq:0,!1,"Error processing request. "+N.message+` +`+N.stack)}}parseMessage(t){return JSON.parse(t)}toStringMessage(t){return t}getFormatOptions(t){return this.projectService.getFormatCodeOptions(t)}getPreferences(t){return this.projectService.getPreferences(t)}getHostFormatOptions(){return this.projectService.getHostFormatCodeOptions()}getHostPreferences(){return this.projectService.getHostPreferences()}}}}),BI,AZ,Rwe,Dwe,nz,rz,tge,PP,GI,m4,Rat=A({"src/server/scriptVersionCache.ts"(){"use strict";lb(),sT(),BI=4,AZ=(e=>(e[e.PreStart=0]="PreStart",e[e.Start=1]="Start",e[e.Entire=2]="Entire",e[e.Mid=3]="Mid",e[e.End=4]="End",e[e.PostEnd=5]="PostEnd",e))(AZ||{}),Rwe=class{constructor(){this.goSubtree=!0,this.lineIndex=new PP,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new GI,this.startPath=[this.lineIndex.root],this.stack=[this.lineIndex.root]}get done(){return!1}insertLines(e,t){t&&(this.trailingText=""),e?e=this.initialText+e+this.trailingText:e=this.initialText+this.trailingText;let i=PP.linesFromText(e).lines;i.length>1&&i[i.length-1]===""&&i.pop();let o,s;for(let u=this.endBranch.length-1;u>=0;u--)this.endBranch[u].updateCounts(),this.endBranch[u].charCount()===0&&(s=this.endBranch[u],u>0?o=this.endBranch[u-1]:o=this.branchNode);s&&o.remove(s);let l=this.startPath[this.startPath.length-1];if(i.length>0)if(l.text=i[0],i.length>1){let u=new Array(i.length-1),p=l;for(let b=1;b=0;){let b=this.startPath[g];u=b.insertAt(p,u),g--,p=b}let m=u.length;for(;m>0;){let b=new GI;b.add(this.lineIndex.root),u=b.insertAt(this.lineIndex.root,u),m=u.length,this.lineIndex.root=b}this.lineIndex.root.updateCounts()}else for(let u=this.startPath.length-2;u>=0;u--)this.startPath[u].updateCounts();else{this.startPath[this.startPath.length-2].remove(l);for(let p=this.startPath.length-2;p>=0;p--)this.startPath[p].updateCounts()}return this.lineIndex}post(e,t,r){r===this.lineCollectionAtBranch&&(this.state=4),this.stack.pop()}pre(e,t,r,i,o){let s=this.stack[this.stack.length-1];this.state===2&&o===1&&(this.state=1,this.branchNode=s,this.lineCollectionAtBranch=r);let l;function u(p){return p.isLeaf()?new m4(""):new GI}switch(o){case 0:this.goSubtree=!1,this.state!==4&&s.add(r);break;case 1:this.state===4?this.goSubtree=!1:(l=u(r),s.add(l),this.startPath.push(l));break;case 2:this.state!==4?(l=u(r),s.add(l),this.startPath.push(l)):r.isLeaf()||(l=u(r),s.add(l),this.endBranch.push(l));break;case 3:this.goSubtree=!1;break;case 4:this.state!==4?this.goSubtree=!1:r.isLeaf()||(l=u(r),s.add(l),this.endBranch.push(l));break;case 5:this.goSubtree=!1,this.state!==1&&s.add(r);break}this.goSubtree&&this.stack.push(l)}leaf(e,t,r){this.state===1?this.initialText=r.text.substring(0,e):this.state===2?(this.initialText=r.text.substring(0,e),this.trailingText=r.text.substring(e+t)):this.trailingText=r.text.substring(e+t)}},Dwe=class{constructor(e,t,r){this.pos=e,this.deleteLen=t,this.insertedText=r}getTextChangeRange(){return tL(vu(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},nz=class pA{constructor(){this.changes=[],this.versions=new Array(pA.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(t){if(!(tthis.currentVersion))return t%pA.maxVersions}currentVersionToIndex(){return this.currentVersion%pA.maxVersions}edit(t,r,i){this.changes.push(new Dwe(t,r,i)),(this.changes.length>pA.changeNumberThreshold||r>pA.changeLengthThreshold||i&&i.length>pA.changeLengthThreshold)&&this.getSnapshot()}getSnapshot(){return this._getSnapshot()}_getSnapshot(){let t=this.versions[this.currentVersionToIndex()];if(this.changes.length>0){let r=t.index;for(let i of this.changes)r=r.edit(i.pos,i.deleteLen,i.insertedText);t=new tge(this.currentVersion+1,this,r,this.changes),this.currentVersion=t.version,this.versions[this.currentVersionToIndex()]=t,this.changes=[],this.currentVersion-this.minVersion>=pA.maxVersions&&(this.minVersion=this.currentVersion-pA.maxVersions+1)}return t}getSnapshotVersion(){return this._getSnapshot().version}getAbsolutePositionAndLineText(t){return this._getSnapshot().index.lineNumberToInfo(t)}lineOffsetToPosition(t,r){return this._getSnapshot().index.absolutePositionOfStartOfLine(t)+(r-1)}positionToLineOffset(t){return this._getSnapshot().index.positionToLineOffset(t)}lineToTextSpan(t){let r=this._getSnapshot().index,{lineText:i,absolutePosition:o}=r.lineNumberToInfo(t+1),s=i!==void 0?i.length:r.absolutePositionOfStartOfLine(t+2)-o;return vu(o,s)}getTextChangesBetweenVersions(t,r){if(t=this.minVersion){let i=[];for(let o=t+1;o<=r;o++){let s=this.versions[this.versionToIndex(o)];for(let l of s.changesSincePreviousVersion)i.push(l.getTextChangeRange())}return sre(i)}else return;else return gL}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(t){let r=new pA,i=new tge(0,r,new PP);r.versions[r.currentVersion]=i;let o=PP.linesFromText(t);return i.index.load(o.lines),r}},nz.changeNumberThreshold=8,nz.changeLengthThreshold=256,nz.maxVersions=8,rz=nz,tge=class AWe{constructor(t,r,i,o=hc){this.version=t,this.cache=r,this.index=i,this.changesSincePreviousVersion=o}getText(t,r){return this.index.getText(t,r-t)}getLength(){return this.index.getLength()}getChangeRange(t){if(t instanceof AWe&&this.cache===t.cache)return this.version<=t.version?gL:this.cache.getTextChangesBetweenVersions(t.version,this.version)}},PP=class G0e{constructor(){this.checkEdits=!1}absolutePositionOfStartOfLine(t){return this.lineNumberToInfo(t).absolutePosition}positionToLineOffset(t){let{oneBasedLine:r,zeroBasedColumn:i}=this.root.charOffsetToLineInfo(1,t);return{line:r,offset:i+1}}positionToColumnAndLineText(t){return this.root.charOffsetToLineInfo(1,t)}getLineCount(){return this.root.lineCount()}lineNumberToInfo(t){let r=this.getLineCount();if(t<=r){let{position:i,leaf:o}=this.root.lineNumberToInfo(t,0);return{absolutePosition:i,lineText:o&&o.text}}else return{absolutePosition:this.root.charCount(),lineText:void 0}}load(t){if(t.length>0){let r=[];for(let i=0;i0&&t{i=i.concat(l.text.substring(o,o+s))}}),i}getLength(){return this.root.charCount()}every(t,r,i){i||(i=this.root.charCount());let o={goSubtree:!0,done:!1,leaf(s,l,u){t(u,s,l)||(this.done=!0)}};return this.walk(r,i-r,o),!o.done}edit(t,r,i){if(this.root.charCount()===0)return C.assert(r===0),i!==void 0?(this.load(G0e.linesFromText(i).lines),this):void 0;{let o;if(this.checkEdits){let u=this.getText(0,this.root.charCount());o=u.slice(0,t)+i+u.slice(t+r)}let s=new Rwe,l=!1;if(t>=this.root.charCount()){t=this.root.charCount()-1;let u=this.getText(t,1);i?i=u+i:i=u,r=0,l=!0}else if(r>0){let u=t+r,{zeroBasedColumn:p,lineText:g}=this.positionToColumnAndLineText(u);p===0&&(r+=g.length,i=i?i+g:g)}if(this.root.walk(t,r,s),s.insertLines(i,l),this.checkEdits){let u=s.lineIndex.getText(0,s.lineIndex.getLength());C.assert(o===u,"buffer edit mismatch")}return s.lineIndex}}static buildTreeFromBottom(t){if(t.length0?i[o]=s:i.pop(),{lines:i,lineMap:r}}},GI=class V0e{constructor(t=[]){this.children=t,this.totalChars=0,this.totalLines=0,t.length&&this.updateCounts()}isLeaf(){return!1}updateCounts(){this.totalChars=0,this.totalLines=0;for(let t of this.children)this.totalChars+=t.charCount(),this.totalLines+=t.lineCount()}execWalk(t,r,i,o,s){return i.pre&&i.pre(t,r,this.children[o],this,s),i.goSubtree?(this.children[o].walk(t,r,i),i.post&&i.post(t,r,this.children[o],this,s)):i.goSubtree=!0,i.done}skipChild(t,r,i,o,s){o.pre&&!o.done&&(o.pre(t,r,this.children[i],this,s),o.goSubtree=!0)}walk(t,r,i){let o=0,s=this.children[o].charCount(),l=t;for(;l>=s;)this.skipChild(l,r,o,i,0),l-=s,o++,s=this.children[o].charCount();if(l+r<=s){if(this.execWalk(l,r,i,o,2))return}else{if(this.execWalk(l,s-l,i,o,1))return;let u=r-(s-l);for(o++,s=this.children[o].charCount();u>s;){if(this.execWalk(0,s,i,o,3))return;u-=s,o++,s=this.children[o].charCount()}if(u>0&&this.execWalk(0,u,i,o,4))return}if(i.pre){let u=this.children.length;if(or)return s.isLeaf()?{oneBasedLine:t,zeroBasedColumn:r,lineText:s.text}:s.charOffsetToLineInfo(t,r);r-=s.charCount(),t+=s.lineCount()}let i=this.lineCount();if(i===0)return{oneBasedLine:1,zeroBasedColumn:0,lineText:void 0};let o=C.checkDefined(this.lineNumberToInfo(i,0).leaf);return{oneBasedLine:i,zeroBasedColumn:o.charCount(),lineText:void 0}}lineNumberToInfo(t,r){for(let i of this.children){let o=i.lineCount();if(o>=t)return i.isLeaf()?{position:r,leaf:i}:i.lineNumberToInfo(t,r);t-=o,r+=i.charCount()}return{position:r,leaf:void 0}}splitAfter(t){let r,i=this.children.length;t++;let o=t;if(t=0;T--)p[T].children.length===0&&p.pop()}l&&p.push(l),this.updateCounts();for(let m=0;m{(this.packageInstalledPromise??(this.packageInstalledPromise=new Map)).set(this.packageInstallId,{resolve:o,reject:s})});return this.installer.send(r),i}attach(t){this.projectService=t,this.installer=this.createInstallerProcess()}onProjectClosed(t){this.installer.send({projectName:t.getProjectName(),kind:"closeProject"})}enqueueInstallTypingsRequest(t,r,i){let o=lhe(t,r,i);this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling throttled operation:${D0(o)}`),this.activeRequestCount0?this.activeRequestCount--:C.fail("TIAdapter:: Received too many responses");!this.requestQueue.isEmpty();){let o=this.requestQueue.dequeue();if(this.requestMap.get(o.projectName)===o){this.requestMap.delete(o.projectName),this.scheduleRequest(o);break}this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Skipping defunct request for: ${o.projectName}`)}this.projectService.updateTypingsForProject(t),this.event(t,"setTypings");break}case rP:this.projectService.watchTypingLocations(t);break;default:}}scheduleRequest(t){this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling request for: ${t.projectName}`),this.activeRequestCount++,this.host.setTimeout(()=>{this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Sending request:${D0(t)}`),this.installer.send(t)},IWe.requestDelayMillis,`${t.projectName}::${t.kind}`)}},nge.requestDelayMillis=100,rge=nge}}),Cwe={};X(Cwe,{ActionInvalidate:()=>qw,ActionPackageInstalled:()=>Jw,ActionSet:()=>Hw,ActionWatchTypingLocations:()=>rP,Arguments:()=>_K,AutoImportProviderProject:()=>dZ,AuxiliaryProject:()=>cZ,CharRangeSection:()=>AZ,CloseFileWatcherEvent:()=>Z9,CommandNames:()=>Qhe,ConfigFileDiagEvent:()=>K9,ConfiguredProject:()=>pZ,CreateDirectoryWatcherEvent:()=>Q9,CreateFileWatcherEvent:()=>$9,Errors:()=>ny,EventBeginInstallTypes:()=>BF,EventEndInstallTypes:()=>GF,EventInitializationFailed:()=>mK,EventTypesRegistry:()=>zF,ExternalProject:()=>G9,GcTimer:()=>nZ,InferredProject:()=>lZ,LargeFileReferencedEvent:()=>J9,LineIndex:()=>PP,LineLeaf:()=>m4,LineNode:()=>GI,LogLevel:()=>QQ,Msg:()=>ZQ,OpenFileInfoTelemetryEvent:()=>hZ,Project:()=>aT,ProjectInfoTelemetryEvent:()=>Y9,ProjectKind:()=>CP,ProjectLanguageServiceStateEvent:()=>X9,ProjectLoadingFinishEvent:()=>q9,ProjectLoadingStartEvent:()=>H9,ProjectReferenceProjectLoadKind:()=>yZ,ProjectService:()=>bZ,ProjectsUpdatedInBackgroundEvent:()=>d4,ScriptInfo:()=>oZ,ScriptVersionCache:()=>rz,Session:()=>ege,TextStorage:()=>iZ,ThrottledOperations:()=>tZ,TypingsCache:()=>aZ,TypingsInstallerAdapter:()=>rge,allFilesAreJsOrDts:()=>Nhe,allRootFilesAreJsOrDts:()=>Che,asNormalizedPath:()=>iwe,convertCompilerOptions:()=>V9,convertFormatOptions:()=>G2,convertScriptKindName:()=>mZ,convertTypeAcquisition:()=>Lhe,convertUserPreferences:()=>khe,convertWatchOptions:()=>u4,countEachFileTypes:()=>l4,createInstallTypingsRequest:()=>lhe,createModuleSpecifierCache:()=>Uhe,createNormalizedPathMap:()=>owe,createPackageJsonCache:()=>Hhe,createSortedArray:()=>fhe,emptyArray:()=>hc,findArgument:()=>qxe,forEachResolvedProjectReferenceProject:()=>V2,formatDiagnosticToProtocol:()=>f4,formatMessage:()=>qhe,getBaseConfigFileName:()=>eZ,getLocationInNewDocument:()=>Yhe,hasArgument:()=>Hxe,hasNoTypeScriptSource:()=>Phe,indent:()=>nP,isBackgroundProject:()=>c4,isConfigFile:()=>Bhe,isConfiguredProject:()=>k0,isDynamicFileName:()=>s4,isExternalProject:()=>sZ,isInferredProject:()=>B2,isInferredProjectName:()=>che,makeAutoImportProviderProjectName:()=>dhe,makeAuxiliaryProjectName:()=>phe,makeInferredProjectName:()=>uhe,maxFileSize:()=>U9,maxProgramSizeForNonTsFiles:()=>j9,normalizedPathToPath:()=>a4,nowString:()=>Jxe,nullCancellationToken:()=>$he,nullTypingsInstaller:()=>B9,projectContainsInfoDirectly:()=>zI,protocol:()=>Dhe,removeSorted:()=>awe,stringifyIndented:()=>D0,toEvent:()=>Jhe,toNormalizedPath:()=>pl,tryConvertScriptKindName:()=>fZ,typingsInstaller:()=>ahe,updateProjectIfDirty:()=>Gp});var sT=A({"src/server/_namespaces/ts.server.ts"(){"use strict";VF(),she(),Got(),Vot(),jot(),Uot(),Jot(),$ot(),tat(),aat(),sat(),lat(),xat(),Rat(),Dat()}}),Nwe={};X(Nwe,{ANONYMOUS:()=>MW,AccessFlags:()=>jG,AssertionLevel:()=>mG,AssignmentDeclarationKind:()=>QG,AssignmentKind:()=>BU,Associativity:()=>VU,BreakpointResolver:()=>GY,BuilderFileEmit:()=>HJ,BuilderProgramKind:()=>qJ,BuilderState:()=>Pm,BundleFileSectionKind:()=>hV,CallHierarchy:()=>PI,CharacterCodes:()=>cV,CheckFlags:()=>WG,CheckMode:()=>H5,ClassificationType:()=>kK,ClassificationTypeNames:()=>LK,CommentDirectiveType:()=>TG,Comparison:()=>Be,CompletionInfoFlags:()=>xK,CompletionTriggerKind:()=>EK,Completions:()=>OI,ContainerFlags:()=>kq,ContextFlags:()=>CG,Debug:()=>C,DiagnosticCategory:()=>FM,Diagnostics:()=>f,DocumentHighlights:()=>wW,ElementFlags:()=>VG,EmitFlags:()=>t6,EmitHint:()=>fV,EmitOnly:()=>IG,EndOfLineState:()=>CK,EnumKind:()=>FG,ExitStatus:()=>xG,ExportKind:()=>VX,Extension:()=>uV,ExternalEmitHelpers:()=>pV,FileIncludeKind:()=>q8,FilePreprocessingDiagnosticsKind:()=>AG,FileSystemEntryKind:()=>SV,FileWatcherEventKind:()=>EV,FindAllReferences:()=>Os,FlattenLevel:()=>Qq,FlowFlags:()=>OM,ForegroundColorEscapeSequences:()=>FJ,FunctionFlags:()=>GU,GeneratedIdentifierFlags:()=>H8,GetLiteralTextFlags:()=>FU,GoToDefinition:()=>w2,HighlightSpanKind:()=>TK,IdentifierNameMap:()=>bI,IdentifierNameMultiMap:()=>$q,ImportKind:()=>GX,ImportsNotUsedAsValues:()=>iV,IndentStyle:()=>AK,IndexFlags:()=>UG,IndexKind:()=>JG,InferenceFlags:()=>YG,InferencePriority:()=>XG,InlayHintKind:()=>SK,InlayHints:()=>LQ,InternalEmitFlags:()=>dV,InternalSymbolName:()=>zG,InvalidatedProjectKind:()=>fK,JSDocParsingMode:()=>yV,JsDoc:()=>L0,JsTyping:()=>B_,JsxEmit:()=>rV,JsxFlags:()=>EG,JsxReferenceKind:()=>HG,LanguageServiceMode:()=>vK,LanguageVariant:()=>sV,LexicalEnvironmentFlags:()=>_V,ListFormat:()=>gV,LogLevel:()=>hG,MemberOverrideStatus:()=>RG,ModifierFlags:()=>j8,ModuleDetectionKind:()=>ZG,ModuleInstanceState:()=>Lq,ModuleKind:()=>tC,ModuleResolutionKind:()=>Fx,ModuleSpecifierEnding:()=>$U,NavigateTo:()=>Ade,NavigationBar:()=>kde,NewLineKind:()=>oV,NodeBuilderFlags:()=>NG,NodeCheckFlags:()=>BG,NodeFactoryFlags:()=>oH,NodeFlags:()=>V8,NodeResolutionFeatures:()=>Nq,ObjectFlags:()=>Y8,OperationCanceledException:()=>Ox,OperatorPrecedence:()=>jU,OrganizeImports:()=>Mm,OrganizeImportsMode:()=>bK,OuterExpressionKinds:()=>mV,OutliningElementsCollector:()=>FQ,OutliningSpanKind:()=>RK,OutputFileType:()=>DK,PackageJsonAutoImportPreference:()=>gK,PackageJsonDependencyGroup:()=>hK,PatternMatchKind:()=>OW,PollingInterval:()=>n6,PollingWatchKind:()=>nV,PragmaKindFlags:()=>vV,PrivateIdentifierKind:()=>pH,ProcessLevel:()=>nJ,ProgramUpdateLevel:()=>vJ,QuotePreference:()=>wX,RelationComparisonResult:()=>U8,Rename:()=>L9,ScriptElementKind:()=>PK,ScriptElementKindModifier:()=>MK,ScriptKind:()=>Q8,ScriptSnapshot:()=>UF,ScriptTarget:()=>aV,SemanticClassificationFormat:()=>yK,SemanticMeaning:()=>kX,SemicolonPreference:()=>IK,SignatureCheckMode:()=>q5,SignatureFlags:()=>$8,SignatureHelp:()=>QO,SignatureKind:()=>qG,SmartSelectionRange:()=>BQ,SnippetKind:()=>e6,SortKind:()=>fG,StructureIsReused:()=>J8,SymbolAccessibility:()=>LG,SymbolDisplay:()=>ty,SymbolDisplayPartKind:()=>Xw,SymbolFlags:()=>K8,SymbolFormatFlags:()=>MG,SyntaxKind:()=>G8,SyntheticSymbolKind:()=>kG,Ternary:()=>$G,ThrottledCancellationToken:()=>BY,TokenClass:()=>NK,TokenFlags:()=>SG,TransformFlags:()=>Z8,TypeFacts:()=>U5,TypeFlags:()=>X8,TypeFormatFlags:()=>PG,TypeMapKind:()=>KG,TypePredicateKind:()=>wG,TypeReferenceSerializationKind:()=>OG,UnionReduction:()=>DG,UpToDateStatusType:()=>cK,VarianceFlags:()=>GG,Version:()=>vm,VersionRange:()=>LM,WatchDirectoryFlags:()=>lV,WatchDirectoryKind:()=>tV,WatchFileKind:()=>eV,WatchLogLevel:()=>yJ,WatchType:()=>kc,accessPrivateIdentifier:()=>Ele,addDisposableResourceHelper:()=>j7,addEmitFlags:()=>M_,addEmitHelper:()=>XA,addEmitHelpers:()=>Vg,addInternalEmitFlags:()=>JA,addNodeFactoryPatcher:()=>mSe,addObjectAllocatorPatcher:()=>Toe,addRange:()=>Jr,addRelatedInfo:()=>ka,addSyntheticLeadingComment:()=>mN,addSyntheticTrailingComment:()=>h7,addToSeen:()=>xm,advancedAsyncSuperHelper:()=>Ok,affectsDeclarationPathOptionDeclarations:()=>pq,affectsEmitOptionDeclarations:()=>dq,allKeysStartWithDot:()=>F5,altDirectorySeparator:()=>HM,and:()=>w8,append:()=>In,appendIfUnique:()=>Ng,arrayFrom:()=>Vo,arrayIsEqualTo:()=>Jm,arrayIsHomogeneous:()=>joe,arrayIsSorted:()=>R8,arrayOf:()=>hne,arrayReverseIterator:()=>ZB,arrayToMap:()=>g1,arrayToMultiMap:()=>NM,arrayToNumericMap:()=>vne,arraysEqual:()=>Ma,assertType:()=>K0e,assign:()=>Cx,assignHelper:()=>T7,asyncDelegator:()=>I7,asyncGeneratorHelper:()=>A7,asyncSuperHelper:()=>wk,asyncValues:()=>x7,attachFileToDiagnostics:()=>VA,awaitHelper:()=>YA,awaiterHelper:()=>D7,base64decode:()=>poe,base64encode:()=>doe,binarySearch:()=>xv,binarySearchKey:()=>_A,bindSourceFile:()=>Yse,breakIntoCharacterSpans:()=>gde,breakIntoWordSpans:()=>vde,buildLinkParts:()=>Gue,buildOpts:()=>x5,buildOverload:()=>Qke,bundlerModuleNameResolver:()=>Bse,canBeConvertedToAsync:()=>ZX,canHaveDecorators:()=>US,canHaveExportModifier:()=>gk,canHaveFlowNode:()=>HL,canHaveIllegalDecorators:()=>GH,canHaveIllegalModifiers:()=>ese,canHaveIllegalType:()=>jSe,canHaveIllegalTypeParameters:()=>Zae,canHaveJSDoc:()=>qL,canHaveLocals:()=>ph,canHaveModifiers:()=>Cm,canHaveSymbol:()=>A_,canJsonReportNoInputFiles:()=>LN,canProduceDiagnostics:()=>oF,canUsePropertyAccess:()=>LU,canWatchAffectingLocation:()=>Dce,canWatchAtTypes:()=>Rce,canWatchDirectoryOrFile:()=>xF,cartesianProduct:()=>Dne,cast:()=>aa,chainBundle:()=>Nm,chainDiagnosticMessages:()=>Uo,changeAnyExtension:()=>jM,changeCompilerHostLikeToUseCache:()=>Fw,changeExtension:()=>m0,changeFullExtension:()=>Jne,changesAffectModuleResolution:()=>M6,changesAffectingProgramStructure:()=>Xre,childIsDecorated:()=>xC,classElementOrClassElementParameterIsDecorated:()=>xj,classHasClassThisAssignment:()=>Zq,classHasDeclaredOrExplicitlyAssignedName:()=>eJ,classHasExplicitlyAssignedName:()=>nF,classOrConstructorParameterIsDecorated:()=>Ov,classPrivateFieldGetHelper:()=>B7,classPrivateFieldInHelper:()=>V7,classPrivateFieldSetHelper:()=>G7,classicNameResolver:()=>qse,classifier:()=>Cpe,cleanExtendedConfigCache:()=>fF,clear:()=>Gi,clearMap:()=>ep,clearSharedExtendedConfigFileWatcher:()=>_J,climbPastPropertyAccess:()=>qF,climbPastPropertyOrElementAccess:()=>mue,clone:()=>iG,cloneCompilerOptions:()=>ZK,closeFileWatcher:()=>$m,closeFileWatcherOf:()=>Cf,codefix:()=>Fu,collapseTextChangeRangesAcrossMultipleVersions:()=>sre,collectExternalModuleInfo:()=>Jq,combine:()=>Dx,combinePaths:()=>Zr,commentPragmas:()=>WM,commonOptionsWithBuild:()=>pw,commonPackageFolders:()=>qU,compact:()=>CM,compareBooleans:()=>Ay,compareDataObjects:()=>hU,compareDiagnostics:()=>XC,compareDiagnosticsSkipRelatedInformation:()=>F3,compareEmitHelpers:()=>yae,compareNumberOfDirectorySeparators:()=>mk,comparePaths:()=>Pg,comparePathsCaseInsensitive:()=>E1e,comparePathsCaseSensitive:()=>b1e,comparePatternKeys:()=>Dq,compareProperties:()=>Ane,compareStringsCaseInsensitive:()=>L8,compareStringsCaseInsensitiveEslintCompatible:()=>Ene,compareStringsCaseSensitive:()=>ju,compareStringsCaseSensitiveUI:()=>MM,compareTextSpans:()=>M8,compareValues:()=>tl,compileOnSaveCommandLineOption:()=>uw,compilerOptionsAffectDeclarationPath:()=>Loe,compilerOptionsAffectEmit:()=>Moe,compilerOptionsAffectSemanticDiagnostics:()=>Poe,compilerOptionsDidYouMeanDiagnostics:()=>_w,compilerOptionsIndicateEsModules:()=>oX,compose:()=>q0e,computeCommonSourceDirectoryOfFilenames:()=>ace,computeLineAndCharacterOfPosition:()=>zx,computeLineOfPosition:()=>oC,computeLineStarts:()=>TA,computePositionOfLineAndCharacter:()=>c6,computeSignature:()=>YS,computeSignatureWithDiagnostics:()=>GJ,computeSuggestionDiagnostics:()=>YX,computedOptions:()=>mc,concatenate:()=>xo,concatenateDiagnosticMessageChains:()=>Roe,consumesNodeCoreModules:()=>IW,contains:()=>wr,containsIgnoredPath:()=>iN,containsObjectRestOrSpread:()=>tw,containsParseError:()=>$x,containsPath:()=>ym,convertCompilerOptionsForTelemetry:()=>Tse,convertCompilerOptionsFromJson:()=>qTe,convertJsonOption:()=>HS,convertToBase64:()=>uoe,convertToJson:()=>sw,convertToObject:()=>vse,convertToOptionsWithAbsolutePaths:()=>oq,convertToRelativePath:()=>iC,convertToTSConfig:()=>MTe,convertTypeAcquisitionFromJson:()=>JTe,copyComments:()=>eT,copyEntries:()=>L6,copyLeadingComments:()=>S2,copyProperties:()=>oG,copyTrailingAsLeadingComments:()=>_O,copyTrailingComments:()=>pP,couldStartTrivia:()=>$ne,countWhere:()=>au,createAbstractBuilder:()=>ZIe,createAccessorPropertyBackingField:()=>jH,createAccessorPropertyGetRedirector:()=>lse,createAccessorPropertySetRedirector:()=>cse,createBaseNodeFactory:()=>rae,createBinaryExpressionTrampoline:()=>m5,createBindingHelper:()=>wR,createBuildInfo:()=>Mw,createBuilderProgram:()=>VJ,createBuilderProgramUsingProgramBuildInfo:()=>Ice,createBuilderStatusReporter:()=>Vce,createCacheWithRedirects:()=>bq,createCacheableExportInfoMap:()=>WX,createCachedDirectoryStructureHost:()=>dF,createClassNamedEvaluationHelperBlock:()=>Rle,createClassThisAssignmentBlock:()=>Ile,createClassifier:()=>hRe,createCommentDirectivesMap:()=>tie,createCompilerDiagnostic:()=>Vl,createCompilerDiagnosticForInvalidCustomType:()=>fse,createCompilerDiagnosticFromMessageChain:()=>O3,createCompilerHost:()=>sce,createCompilerHostFromProgramHost:()=>oK,createCompilerHostWorker:()=>SJ,createDetachedDiagnostic:()=>RR,createDiagnosticCollection:()=>vR,createDiagnosticForFileFromMessageChain:()=>Ej,createDiagnosticForNode:()=>Or,createDiagnosticForNodeArray:()=>eR,createDiagnosticForNodeArrayFromMessageChain:()=>AL,createDiagnosticForNodeFromMessageChain:()=>Og,createDiagnosticForNodeInSourceFile:()=>Yf,createDiagnosticForRange:()=>fie,createDiagnosticMessageChainFromDiagnostic:()=>pie,createDiagnosticReporter:()=>Vw,createDocumentPositionMapper:()=>_le,createDocumentRegistry:()=>ade,createDocumentRegistryInternal:()=>HX,createEmitAndSemanticDiagnosticsBuilderProgram:()=>JJ,createEmitHelperFactory:()=>vae,createEmptyExports:()=>Jk,createExpressionForJsxElement:()=>qae,createExpressionForJsxFragment:()=>Jae,createExpressionForObjectLiteralElementLike:()=>Kae,createExpressionForPropertyName:()=>wH,createExpressionFromEntityName:()=>Kk,createExternalHelpersImportDeclarationIfNeeded:()=>WH,createFileDiagnostic:()=>Qc,createFileDiagnosticFromMessageChain:()=>V6,createForOfBindingStatement:()=>kH,createGetCanonicalFileName:()=>Pu,createGetSourceFile:()=>bJ,createGetSymbolAccessibilityDiagnosticForNode:()=>Jv,createGetSymbolAccessibilityDiagnosticForNodeName:()=>$le,createGetSymbolWalker:()=>$se,createIncrementalCompilerHost:()=>sK,createIncrementalProgram:()=>Bce,createInputFiles:()=>hSe,createInputFilesWithFilePaths:()=>rH,createInputFilesWithFileTexts:()=>iH,createJsxFactoryExpression:()=>LH,createLanguageService:()=>Tpe,createLanguageServiceSourceFile:()=>a9,createMemberAccessForPropertyName:()=>jS,createModeAwareCache:()=>vI,createModeAwareCacheKey:()=>WN,createModuleNotFoundChain:()=>k6,createModuleResolutionCache:()=>e2,createModuleResolutionLoader:()=>DJ,createModuleResolutionLoaderUsingGlobalCache:()=>Mce,createModuleSpecifierResolutionHost:()=>ZS,createMultiMap:()=>Xp,createNodeConverters:()=>oae,createNodeFactory:()=>Rk,createOptionNameMap:()=>g5,createOverload:()=>YQ,createPackageJsonImportFilter:()=>_P,createPackageJsonInfo:()=>xX,createParenthesizerRules:()=>iae,createPatternMatcher:()=>dde,createPrependNodes:()=>wJ,createPrinter:()=>x0,createPrinterWithDefaults:()=>fJ,createPrinterWithRemoveComments:()=>oE,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>mJ,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>Lw,createProgram:()=>vF,createProgramHost:()=>aK,createPropertyNameNodeForIdentifierOrLiteral:()=>e7,createQueue:()=>PM,createRange:()=>Tf,createRedirectedBuilderProgram:()=>UJ,createResolutionCache:()=>XJ,createRuntimeTypeSerializer:()=>Mle,createScanner:()=>Mv,createSemanticDiagnosticsBuilderProgram:()=>QIe,createSet:()=>aG,createSolutionBuilder:()=>_xe,createSolutionBuilderHost:()=>fxe,createSolutionBuilderWithWatch:()=>hxe,createSolutionBuilderWithWatchHost:()=>mxe,createSortedArray:()=>QB,createSourceFile:()=>rw,createSourceMapGenerator:()=>dle,createSourceMapSource:()=>gSe,createSuperAccessVariableStatement:()=>iF,createSymbolTable:()=>ua,createSymlinkCache:()=>TU,createSystemWatchFunctions:()=>jne,createTextChange:()=>aO,createTextChangeFromStartLength:()=>aW,createTextChangeRange:()=>tL,createTextRangeFromNode:()=>nX,createTextRangeFromSpan:()=>oW,createTextSpan:()=>vu,createTextSpanFromBounds:()=>dc,createTextSpanFromNode:()=>Rd,createTextSpanFromRange:()=>ib,createTextSpanFromStringLiteralLikeContent:()=>tX,createTextWriter:()=>ik,createTokenRange:()=>fU,createTypeChecker:()=>ole,createTypeReferenceDirectiveResolutionCache:()=>k5,createTypeReferenceResolutionLoader:()=>_F,createUnparsedSourceFile:()=>nH,createWatchCompilerHost:()=>uxe,createWatchCompilerHostOfConfigFile:()=>Fce,createWatchCompilerHostOfFilesAndCompilerOptions:()=>Wce,createWatchFactory:()=>iK,createWatchHost:()=>rK,createWatchProgram:()=>dxe,createWatchStatusReporter:()=>Lce,createWriteFileMeasuringIO:()=>EJ,declarationNameToString:()=>Ds,decodeMappings:()=>Uq,decodedTextSpanIntersectsWith:()=>eL,decorateHelper:()=>v7,deduplicate:()=>h1,defaultIncludeSpec:()=>C5,defaultInitCompilerOptions:()=>R5,defaultMaximumTruncationLength:()=>Ek,detectSortCaseSensitivity:()=>YD,diagnosticCategoryName:()=>aS,diagnosticToString:()=>nT,directoryProbablyExists:()=>Ym,directorySeparator:()=>il,displayPart:()=>rp,displayPartsToString:()=>OO,disposeEmitNodes:()=>aH,disposeResourcesHelper:()=>U7,documentSpansEqual:()=>uX,dumpTracingLegend:()=>Bne,elementAt:()=>Nv,elideNodes:()=>sse,emitComments:()=>Zie,emitDetachedComments:()=>eoe,emitFiles:()=>lF,emitFilesAndReportErrors:()=>NF,emitFilesAndReportErrorsAndGetExitStatus:()=>Oce,emitModuleKindIsNonNodeESM:()=>W3,emitNewLineBeforeLeadingCommentOfPosition:()=>Qie,emitNewLineBeforeLeadingComments:()=>Yie,emitNewLineBeforeLeadingCommentsOfPosition:()=>$ie,emitSkippedWithNoDiagnostics:()=>TF,emitUsingBuildInfo:()=>nce,emptyArray:()=>et,emptyFileSystemEntries:()=>p7,emptyMap:()=>z8,emptyOptions:()=>Pf,emptySet:()=>Nne,endsWith:()=>Sl,ensurePathIsNonModuleName:()=>v1,ensureScriptKind:()=>J3,ensureTrailingDirectorySeparator:()=>zc,entityNameToString:()=>fp,enumerateInsertsAndDeletes:()=>F8,equalOwnProperties:()=>gne,equateStringsCaseInsensitive:()=>Yb,equateStringsCaseSensitive:()=>rS,equateValues:()=>Cv,esDecorateHelper:()=>E7,escapeJsxAttributeString:()=>Zj,escapeLeadingUnderscores:()=>ml,escapeNonAsciiString:()=>rk,escapeSnippetText:()=>G1,escapeString:()=>rg,escapeTemplateSubstitution:()=>$j,every:()=>Jn,expandPreOrPostfixIncrementOrDecrementExpression:()=>l5,explainFiles:()=>QJ,explainIfFileIsRedirectAndImpliedFormat:()=>ZJ,exportAssignmentIsAlias:()=>mR,exportStarHelper:()=>z7,expressionResultIsUnused:()=>Hoe,extend:()=>P8,extendsHelper:()=>C7,extensionFromPath:()=>ZC,extensionIsTS:()=>Y3,extensionsNotSupportingExtensionlessResolution:()=>xk,externalHelpersModuleNameText:()=>Hy,factory:()=>k,fileExtensionIs:()=>Tl,fileExtensionIsOneOf:()=>Ec,fileIncludeReasonToDiagnostics:()=>nK,fileShouldUseJavaScriptRequire:()=>LX,filter:()=>tr,filterMutate:()=>Bi,filterSemanticDiagnostics:()=>yF,find:()=>vn,findAncestor:()=>zn,findBestPatternMatch:()=>uG,findChildOfKind:()=>bs,findComputedPropertyNameCacheAssignment:()=>_5,findConfigFile:()=>oce,findContainingList:()=>$F,findDiagnosticForNode:()=>Que,findFirstNonJsxWhitespaceToken:()=>yue,findIndex:()=>ri,findLast:()=>Qr,findLastIndex:()=>to,findListItemInfo:()=>vue,findMap:()=>Ga,findModifier:()=>y2,findNextToken:()=>lE,findPackageJson:()=>Yue,findPackageJsons:()=>IX,findPrecedingMatchingToken:()=>rW,findPrecedingToken:()=>Ac,findSuperStatementIndexPath:()=>Z5,findTokenOnLeftOfPosition:()=>eW,findUseStrictPrologue:()=>FH,first:()=>Ha,firstDefined:()=>Zt,firstDefinedIterator:()=>ir,firstIterator:()=>tG,firstOrOnly:()=>NX,firstOrUndefined:()=>Xc,firstOrUndefinedIterator:()=>D8,fixupCompilerOptions:()=>tY,flatMap:()=>Zi,flatMapIterator:()=>qf,flatMapToMutable:()=>$d,flatten:()=>ts,flattenCommaList:()=>use,flattenDestructuringAssignment:()=>JS,flattenDestructuringBinding:()=>iE,flattenDiagnosticMessageText:()=>W_,forEach:()=>Ke,forEachAncestor:()=>Yre,forEachAncestorDirectory:()=>Em,forEachChild:()=>Ho,forEachChildRecursively:()=>PN,forEachEmittedFile:()=>cJ,forEachEnclosingBlockScopeContainer:()=>cie,forEachEntry:()=>Bc,forEachExternalModuleToImportFrom:()=>BX,forEachImportClauseDeclaration:()=>d3,forEachKey:()=>mh,forEachLeadingCommentRange:()=>XM,forEachNameInAccessChainWalkingLeft:()=>Eoe,forEachPropertyAssignment:()=>iR,forEachResolvedProjectReference:()=>NJ,forEachReturnStatement:()=>R1,forEachRight:()=>Gt,forEachTrailingCommentRange:()=>YM,forEachTsConfigPropArray:()=>DL,forEachUnique:()=>pX,forEachYieldExpression:()=>_ie,forSomeAncestorDirectory:()=>zEe,formatColorAndReset:()=>aE,formatDiagnostic:()=>TJ,formatDiagnostics:()=>LIe,formatDiagnosticsWithColorAndContext:()=>lce,formatGeneratedName:()=>E0,formatGeneratedNamePart:()=>XR,formatLocation:()=>AJ,formatMessage:()=>bU,formatStringFromArgs:()=>ag,formatting:()=>wc,fullTripleSlashAMDReferencePathRegEx:()=>zU,fullTripleSlashReferencePathRegEx:()=>WU,generateDjb2Hash:()=>nC,generateTSConfig:()=>FTe,generatorHelper:()=>O7,getAdjustedReferenceLocation:()=>JK,getAdjustedRenameLocation:()=>ZF,getAliasDeclarationFromName:()=>Bj,getAllAccessorDeclarations:()=>RS,getAllDecoratorsOfClass:()=>Xq,getAllDecoratorsOfClassElement:()=>tF,getAllJSDocTags:()=>g6,getAllJSDocTagsOfKind:()=>Y1e,getAllKeys:()=>U0e,getAllProjectOutputs:()=>sF,getAllSuperTypeNodes:()=>PC,getAllUnscopedEmitHelpers:()=>dH,getAllowJSCompilerOption:()=>qy,getAllowSyntheticDefaultImports:()=>NS,getAncestor:()=>p0,getAnyExtensionFromPath:()=>Wx,getAreDeclarationMapsEnabled:()=>Tk,getAssignedExpandoInitializer:()=>PA,getAssignedName:()=>_6,getAssignedNameOfIdentifier:()=>HN,getAssignmentDeclarationKind:()=>Wl,getAssignmentDeclarationPropertyAccessKind:()=>BL,getAssignmentTargetKind:()=>wA,getAutomaticTypeDirectiveNames:()=>M5,getBaseFileName:()=>rc,getBinaryOperatorPrecedence:()=>nk,getBuildInfo:()=>cF,getBuildInfoFileVersionMap:()=>jJ,getBuildInfoText:()=>tce,getBuildOrderFromAnyBuildOrder:()=>wF,getBuilderCreationParameters:()=>AF,getBuilderFileEmit:()=>rb,getCheckFlags:()=>Al,getClassExtendsHeritageElement:()=>M1,getClassLikeDeclarationOfSymbol:()=>Bg,getCombinedLocalAndExportSymbolFlags:()=>AR,getCombinedModifierFlags:()=>t0,getCombinedNodeFlags:()=>Lv,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>kV,getCommentRange:()=>L_,getCommonSourceDirectory:()=>QN,getCommonSourceDirectoryOfConfig:()=>a2,getCompilerOptionValue:()=>B3,getCompilerOptionsDiffValue:()=>wTe,getConditions:()=>tb,getConfigFileParsingDiagnostics:()=>XS,getConstantValue:()=>dae,getContainerFlags:()=>Mq,getContainerNode:()=>QS,getContainingClass:()=>su,getContainingClassExcludingClassDecorators:()=>$6,getContainingClassStaticBlock:()=>Aie,getContainingFunction:()=>zp,getContainingFunctionDeclaration:()=>Tie,getContainingFunctionOrClassStaticBlock:()=>Y6,getContainingNodeArray:()=>qoe,getContainingObjectLiteralElement:()=>FO,getContextualTypeFromParent:()=>gW,getContextualTypeFromParentOrAncestorTypeNode:()=>QF,getCurrentTime:()=>Uw,getDeclarationDiagnostics:()=>Qle,getDeclarationEmitExtensionForPath:()=>b3,getDeclarationEmitOutputFilePath:()=>Hie,getDeclarationEmitOutputFilePathWorker:()=>y3,getDeclarationFileExtension:()=>JH,getDeclarationFromName:()=>NC,getDeclarationModifierFlagsFromSymbol:()=>If,getDeclarationOfKind:()=>dl,getDeclarationsOfKind:()=>Jre,getDeclaredExpandoInitializer:()=>OL,getDecorators:()=>Ny,getDefaultCompilerOptions:()=>o9,getDefaultExportInfoWorker:()=>kW,getDefaultFormatCodeSettings:()=>jF,getDefaultLibFileName:()=>QM,getDefaultLibFilePath:()=>Ape,getDefaultLikeExportInfo:()=>LW,getDiagnosticText:()=>ITe,getDiagnosticsWithinSpan:()=>Zue,getDirectoryPath:()=>li,getDirectoryToWatchFailedLookupLocation:()=>KJ,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>Nce,getDocumentPositionMapper:()=>XX,getDocumentSpansEqualityComparer:()=>dX,getESModuleInterop:()=>vh,getEditsForFileRename:()=>lde,getEffectiveBaseTypeNode:()=>x_,getEffectiveConstraintOfTypeParameter:()=>Ux,getEffectiveContainerForJSDocTemplateTag:()=>p3,getEffectiveImplementsTypeNodes:()=>_R,getEffectiveInitializer:()=>wL,getEffectiveJSDocHost:()=>d0,getEffectiveModifierFlags:()=>cd,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>ioe,getEffectiveModifierFlagsNoCache:()=>ooe,getEffectiveReturnTypeNode:()=>tm,getEffectiveSetAccessorTypeAnnotationNode:()=>Xie,getEffectiveTypeAnnotationNode:()=>yu,getEffectiveTypeParameterDeclarations:()=>Py,getEffectiveTypeRoots:()=>FN,getElementOrPropertyAccessArgumentExpressionOrName:()=>u3,getElementOrPropertyAccessName:()=>Fg,getElementsOfBindingOrAssignmentPattern:()=>KR,getEmitDeclarations:()=>xf,getEmitFlags:()=>Va,getEmitHelpers:()=>g7,getEmitModuleDetectionKind:()=>UU,getEmitModuleKind:()=>ku,getEmitModuleResolutionKind:()=>dd,getEmitScriptTarget:()=>as,getEmitStandardClassFields:()=>Noe,getEnclosingBlockScopeContainer:()=>_h,getEnclosingContainer:()=>bj,getEncodedSemanticClassifications:()=>jX,getEncodedSyntacticClassifications:()=>UX,getEndLinePosition:()=>bL,getEntityNameFromTypeNode:()=>PL,getEntrypointsFromPackageJsonInfo:()=>Iq,getErrorCountForSummary:()=>DF,getErrorSpanForNode:()=>hS,getErrorSummaryText:()=>kce,getEscapedTextOfIdentifierOrLiteral:()=>kC,getEscapedTextOfJsxAttributeName:()=>lN,getEscapedTextOfJsxNamespacedName:()=>HA,getExpandoInitializer:()=>c0,getExportAssignmentExpression:()=>Gj,getExportInfoMap:()=>bO,getExportNeedsImportStarHelper:()=>hle,getExpressionAssociativity:()=>Kj,getExpressionPrecedence:()=>OC,getExternalHelpersModuleName:()=>Yk,getExternalModuleImportEqualsDeclarationExpression:()=>RC,getExternalModuleName:()=>uR,getExternalModuleNameFromDeclaration:()=>jie,getExternalModuleNameFromPath:()=>tU,getExternalModuleNameLiteral:()=>mI,getExternalModuleRequireArgument:()=>Dj,getFallbackOptions:()=>Ow,getFileEmitOutput:()=>_ce,getFileMatcherPatterns:()=>q3,getFileNamesFromConfigSpecs:()=>kN,getFileWatcherEventKind:()=>bV,getFilesInErrorForSummary:()=>CF,getFirstConstructorWithBody:()=>ig,getFirstIdentifier:()=>Bp,getFirstNonSpaceCharacterPosition:()=>Uue,getFirstProjectOutput:()=>pJ,getFixableErrorSpanExpression:()=>DX,getFormatCodeSettingsForWriting:()=>CW,getFullWidth:()=>vL,getFunctionFlags:()=>Gc,getHeritageClause:()=>QL,getHostSignatureFromJSDoc:()=>u0,getIdentifierAutoGenerate:()=>SSe,getIdentifierGeneratedImportReference:()=>gae,getIdentifierTypeArguments:()=>PS,getImmediatelyInvokedFunctionExpression:()=>vS,getImpliedNodeFormatForFile:()=>Bw,getImpliedNodeFormatForFileWorker:()=>LJ,getImportNeedsImportDefaultHelper:()=>qq,getImportNeedsImportStarHelper:()=>$5,getIndentSize:()=>bR,getIndentString:()=>g3,getInferredLibraryNameResolveFrom:()=>gF,getInitializedVariables:()=>qC,getInitializerOfBinaryExpression:()=>Lj,getInitializerOfBindingOrAssignmentElement:()=>Qk,getInterfaceBaseTypeNodes:()=>MC,getInternalEmitFlags:()=>Tm,getInvokedExpression:()=>e3,getIsolatedModules:()=>im,getJSDocAugmentsTag:()=>hre,getJSDocClassTag:()=>OV,getJSDocCommentRanges:()=>Tj,getJSDocCommentsAndTags:()=>wj,getJSDocDeprecatedTag:()=>FV,getJSDocDeprecatedTagNoCache:()=>Tre,getJSDocEnumTag:()=>WV,getJSDocHost:()=>SS,getJSDocImplementsTags:()=>gre,getJSDocOverloadTags:()=>Fj,getJSDocOverrideTagNoCache:()=>Sre,getJSDocParameterTags:()=>jx,getJSDocParameterTagsNoCache:()=>pre,getJSDocPrivateTag:()=>H1e,getJSDocPrivateTagNoCache:()=>yre,getJSDocProtectedTag:()=>q1e,getJSDocProtectedTagNoCache:()=>bre,getJSDocPublicTag:()=>U1e,getJSDocPublicTagNoCache:()=>vre,getJSDocReadonlyTag:()=>J1e,getJSDocReadonlyTagNoCache:()=>Ere,getJSDocReturnTag:()=>Are,getJSDocReturnType:()=>rL,getJSDocRoot:()=>fR,getJSDocSatisfiesExpressionType:()=>wU,getJSDocSatisfiesTag:()=>zV,getJSDocTags:()=>o0,getJSDocTagsNoCache:()=>X1e,getJSDocTemplateTag:()=>K1e,getJSDocThisTag:()=>h6,getJSDocType:()=>i0,getJSDocTypeAliasName:()=>BH,getJSDocTypeAssertionType:()=>u5,getJSDocTypeParameterDeclarations:()=>A3,getJSDocTypeParameterTags:()=>fre,getJSDocTypeParameterTagsNoCache:()=>mre,getJSDocTypeTag:()=>r0,getJSXImplicitImportBase:()=>V3,getJSXRuntimeImport:()=>j3,getJSXTransformEnabled:()=>G3,getKeyForCompilerOptions:()=>yq,getLanguageVariant:()=>dk,getLastChild:()=>gU,getLeadingCommentRanges:()=>Kh,getLeadingCommentRangesOfNode:()=>Sj,getLeftmostAccessExpression:()=>IR,getLeftmostExpression:()=>xR,getLibraryNameFromLibFileName:()=>PJ,getLineAndCharacterOfPosition:()=>Es,getLineInfo:()=>Vq,getLineOfLocalPosition:()=>WC,getLineOfLocalPositionFromLineMap:()=>IS,getLineStartPositionForPosition:()=>sm,getLineStarts:()=>Mg,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>goe,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>hoe,getLinesBetweenPositions:()=>aC,getLinesBetweenRangeEndAndRangeStart:()=>mU,getLinesBetweenRangeEndPositions:()=>FEe,getLiteralText:()=>nie,getLocalNameForExternalImport:()=>JR,getLocalSymbolForExportDefault:()=>TR,getLocaleSpecificMessage:()=>Bo,getLocaleTimeString:()=>jw,getMappedContextSpan:()=>fX,getMappedDocumentSpan:()=>fW,getMappedLocation:()=>cP,getMatchedFileSpec:()=>eK,getMatchedIncludeSpec:()=>tK,getMeaningFromDeclaration:()=>Yw,getMeaningFromLocation:()=>$S,getMembersOfDeclaration:()=>hie,getModeForFileReference:()=>Ww,getModeForResolutionAtIndex:()=>cce,getModeForUsageLocation:()=>xJ,getModifiedTime:()=>bA,getModifiers:()=>b1,getModuleInstanceState:()=>qg,getModuleNameStringLiteralAt:()=>Gw,getModuleSpecifierEndingPreference:()=>Foe,getModuleSpecifierResolverHost:()=>aX,getNameForExportedSymbol:()=>xW,getNameFromImportAttribute:()=>i7,getNameFromIndexInfo:()=>uie,getNameFromPropertyName:()=>cO,getNameOfAccessExpression:()=>yU,getNameOfCompilerOptionValue:()=>iq,getNameOfDeclaration:()=>Oo,getNameOfExpando:()=>Pj,getNameOfJSDocTypedef:()=>dre,getNameOrArgument:()=>zL,getNameTable:()=>wY,getNamesForExportedSymbol:()=>ede,getNamespaceDeclarationNode:()=>dR,getNewLineCharacter:()=>Gv,getNewLineKind:()=>yO,getNewLineOrDefaultFromHost:()=>Qv,getNewTargetContainer:()=>xie,getNextJSDocCommentLocation:()=>Oj,getNodeForGeneratedName:()=>ew,getNodeId:()=>ss,getNodeKind:()=>sE,getNodeModifiers:()=>aP,getNodeModulePathParts:()=>t7,getNonAssignedNameOfDeclaration:()=>m6,getNonAssignmentOperatorForCompoundAssignment:()=>VN,getNonAugmentationDeclaration:()=>mj,getNonDecoratorTokenPosOfNode:()=>cj,getNormalizedAbsolutePath:()=>bo,getNormalizedAbsolutePathWithoutRoot:()=>xV,getNormalizedPathComponents:()=>VM,getObjectFlags:()=>Wr,getOperator:()=>Yj,getOperatorAssociativity:()=>Xj,getOperatorPrecedence:()=>tk,getOptionFromName:()=>eq,getOptionsForLibraryResolution:()=>Eq,getOptionsNameMap:()=>$R,getOrCreateEmitNode:()=>wu,getOrCreateExternalHelpersModuleNameIfNeeded:()=>Qae,getOrUpdate:()=>mA,getOriginalNode:()=>Nl,getOriginalNodeId:()=>Ou,getOriginalSourceFile:()=>REe,getOutputDeclarationFileName:()=>$N,getOutputDeclarationFileNameWorker:()=>uJ,getOutputExtension:()=>aF,getOutputFileNames:()=>PIe,getOutputJSFileNameWorker:()=>dJ,getOutputPathsFor:()=>YN,getOutputPathsForBundle:()=>XN,getOwnEmitOutputFilePath:()=>Uie,getOwnKeys:()=>Jh,getOwnValues:()=>hA,getPackageJsonInfo:()=>eE,getPackageJsonTypesVersionsPaths:()=>P5,getPackageJsonsVisibleToFile:()=>$ue,getPackageNameFromTypesPackageName:()=>zN,getPackageScopeForPath:()=>bw,getParameterSymbolFromJSDoc:()=>JL,getParameterTypeNode:()=>KEe,getParentNodeInSpan:()=>dO,getParseTreeNode:()=>Lo,getParsedCommandLineOfConfigFile:()=>ow,getPathComponents:()=>Wc,getPathComponentsRelativeTo:()=>DV,getPathFromPathComponents:()=>Ry,getPathUpdater:()=>JX,getPathsBasePath:()=>E3,getPatternFromSpec:()=>koe,getPendingEmitKind:()=>d2,getPositionOfLineAndCharacter:()=>JM,getPossibleGenericSignatures:()=>XK,getPossibleOriginalInputExtensionForExtension:()=>qie,getPossibleTypeArgumentsInfo:()=>YK,getPreEmitDiagnostics:()=>MIe,getPrecedingNonSpaceCharacterPosition:()=>_W,getPrivateIdentifier:()=>Yq,getProperties:()=>Kq,getProperty:()=>C8,getPropertyArrayElementValue:()=>Sie,getPropertyAssignmentAliasLikeExpression:()=>zie,getPropertyNameForPropertyNameNode:()=>TS,getPropertyNameForUniqueESSymbol:()=>IEe,getPropertyNameFromType:()=>rm,getPropertyNameOfBindingOrAssignmentElement:()=>zH,getPropertySymbolFromBindingElement:()=>pW,getPropertySymbolsFromContextualType:()=>s9,getQuoteFromPreference:()=>lX,getQuotePreference:()=>af,getRangesWhere:()=>$B,getRefactorContextSpan:()=>DI,getReferencedFileLocation:()=>ZN,getRegexFromPattern:()=>jy,getRegularExpressionForWildcard:()=>YC,getRegularExpressionsForWildcards:()=>U3,getRelativePathFromDirectory:()=>bm,getRelativePathFromFile:()=>UM,getRelativePathToDirectoryOrUrl:()=>SA,getRenameLocation:()=>mO,getReplacementSpanForContextToken:()=>eX,getResolutionDiagnostic:()=>OJ,getResolutionModeOverride:()=>s2,getResolveJsonModule:()=>h0,getResolvePackageJsonExports:()=>c7,getResolvePackageJsonImports:()=>u7,getResolvedExternalModuleName:()=>v3,getRestIndicatorOfBindingOrAssignmentElement:()=>p5,getRestParameterElementType:()=>Aj,getRightMostAssignedExpression:()=>FL,getRootDeclaration:()=>D_,getRootDirectoryOfResolutionCache:()=>Pce,getRootLength:()=>dh,getRootPathSplitLength:()=>rxe,getScriptKind:()=>vX,getScriptKindFromFileName:()=>K3,getScriptTargetFeatures:()=>s7,getSelectedEffectiveModifierFlags:()=>WA,getSelectedSyntacticModifierFlags:()=>noe,getSemanticClassifications:()=>ide,getSemanticJsxChildren:()=>gR,getSetAccessorTypeAnnotationNode:()=>Jie,getSetAccessorValueParameter:()=>zC,getSetExternalModuleIndicator:()=>pk,getShebang:()=>d6,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>kj,getSingleVariableOfVariableStatement:()=>kA,getSnapshotText:()=>v2,getSnippetElement:()=>sH,getSourceFileOfModule:()=>O6,getSourceFileOfNode:()=>Vn,getSourceFilePathInNewDir:()=>S3,getSourceFilePathInNewDirWorker:()=>T3,getSourceFileVersionAsHashFromText:()=>PF,getSourceFilesToEmit:()=>nU,getSourceMapRange:()=>jv,getSourceMapper:()=>bde,getSourceTextOfNodeFromSourceFile:()=>A1,getSpanOfTokenAtPosition:()=>hh,getSpellingSuggestion:()=>QD,getStartPositionOfLine:()=>Wy,getStartPositionOfRange:()=>HC,getStartsOnNewLine:()=>fN,getStaticPropertiesAndClassStaticBlock:()=>eF,getStrictOptionValue:()=>ud,getStringComparer:()=>Nx,getSubPatternFromSpec:()=>H3,getSuperCallFromStatement:()=>Q5,getSuperContainer:()=>CL,getSupportedCodeFixes:()=>LY,getSupportedExtensions:()=>$C,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>fk,getSwitchedType:()=>TX,getSymbolId:()=>Ta,getSymbolNameForPrivateIdentifier:()=>ZL,getSymbolTarget:()=>yX,getSyntacticClassifications:()=>ode,getSyntacticModifierFlags:()=>Gy,getSyntacticModifierFlagsNoCache:()=>aU,getSynthesizedDeepClone:()=>sl,getSynthesizedDeepCloneWithReplacements:()=>fO,getSynthesizedDeepClones:()=>cE,getSynthesizedDeepClonesWithReplacements:()=>bX,getSyntheticLeadingComments:()=>kR,getSyntheticTrailingComments:()=>Mk,getTargetLabel:()=>JF,getTargetOfBindingOrAssignmentElement:()=>eb,getTemporaryModuleResolutionState:()=>yw,getTextOfConstantValue:()=>rie,getTextOfIdentifierOrLiteral:()=>Zf,getTextOfJSDocComment:()=>oL,getTextOfJsxAttributeName:()=>bk,getTextOfJsxNamespacedName:()=>cN,getTextOfNode:()=>pc,getTextOfNodeFromSourceText:()=>EC,getTextOfPropertyName:()=>Zx,getThisContainer:()=>wd,getThisParameter:()=>k1,getTokenAtPosition:()=>po,getTokenPosOfNode:()=>s0,getTokenSourceMapRange:()=>bSe,getTouchingPropertyName:()=>zd,getTouchingToken:()=>g2,getTrailingCommentRanges:()=>Qb,getTrailingSemicolonDeferringWriter:()=>eU,getTransformFlagsSubtreeExclusions:()=>aae,getTransformers:()=>sJ,getTsBuildInfoEmitOutputFilePath:()=>Kv,getTsConfigObjectLiteralExpression:()=>IC,getTsConfigPropArrayElementValue:()=>X6,getTypeAnnotationNode:()=>Kie,getTypeArgumentOrTypeParameterList:()=>Rue,getTypeKeywordOfTypeOnlyImport:()=>cX,getTypeNode:()=>_ae,getTypeNodeIfAccessible:()=>mP,getTypeParameterFromJsDoc:()=>Lie,getTypeParameterOwner:()=>z1e,getTypesPackageName:()=>W5,getUILocale:()=>Sne,getUniqueName:()=>tT,getUniqueSymbolId:()=>jue,getUseDefineForClassFields:()=>pN,getWatchErrorSummaryDiagnosticMessage:()=>YJ,getWatchFactory:()=>gJ,group:()=>$D,groupBy:()=>N8,guessIndentation:()=>Hre,handleNoEmitOptions:()=>kJ,hasAbstractModifier:()=>F1,hasAccessorModifier:()=>C_,hasAmbientModifier:()=>oU,hasChangesInResolutions:()=>aj,hasChildOfKind:()=>rO,hasContextSensitiveParameters:()=>Z3,hasDecorators:()=>Sf,hasDocComment:()=>Iue,hasDynamicName:()=>By,hasEffectiveModifier:()=>_p,hasEffectiveModifiers:()=>I3,hasEffectiveReadonlyModifier:()=>BC,hasExtension:()=>EA,hasIndexSignature:()=>SX,hasInitializer:()=>Oy,hasInvalidEscape:()=>Qj,hasJSDocNodes:()=>Op,hasJSDocParameterTags:()=>_re,hasJSFileExtension:()=>W1,hasJsonModuleEmitEnabled:()=>z3,hasOnlyExpressionInitializer:()=>fS,hasOverrideModifier:()=>x3,hasPossibleExternalModuleReference:()=>lie,hasProperty:()=>Rs,hasPropertyAccessExpressionWithName:()=>Qw,hasQuestionToken:()=>LA,hasRecordedExternalHelpers:()=>$ae,hasResolutionModeOverride:()=>$oe,hasRestParameter:()=>nj,hasScopeMarker:()=>Fre,hasStaticModifier:()=>fc,hasSyntacticModifier:()=>ei,hasSyntacticModifiers:()=>toe,hasTSFileExtension:()=>UA,hasTabstop:()=>Koe,hasTrailingDirectorySeparator:()=>Pv,hasType:()=>N6,hasTypeArguments:()=>bEe,hasZeroOrOneAsteriskCharacter:()=>SU,helperString:()=>uH,hostGetCanonicalFileName:()=>Wv,hostUsesCaseSensitiveFileNames:()=>ER,idText:()=>Sr,identifierIsThisKeyword:()=>iU,identifierToKeywordKind:()=>n0,identity:()=>el,identitySourceMapConsumer:()=>Y5,ignoreSourceNewlines:()=>cH,ignoredPaths:()=>GM,importDefaultHelper:()=>W7,importFromModuleSpecifier:()=>CC,importNameElisionDisabled:()=>EU,importStarHelper:()=>kk,indexOfAnyCharCode:()=>Kc,indexOfNode:()=>Qx,indicesOf:()=>DM,inferredTypesContainingFile:()=>u2,injectClassNamedEvaluationHelperBlockIfMissing:()=>rF,injectClassThisAssignmentIfMissing:()=>xle,insertImports:()=>lP,insertLeadingStatement:()=>zSe,insertSorted:()=>Ty,insertStatementAfterCustomPrologue:()=>mS,insertStatementAfterStandardPrologue:()=>uEe,insertStatementsAfterCustomPrologue:()=>sj,insertStatementsAfterStandardPrologue:()=>Qh,intersperse:()=>Qi,intrinsicTagNameToString:()=>OU,introducesArgumentsExoticObject:()=>bie,inverseJsxOptionMap:()=>wN,isAbstractConstructorSymbol:()=>voe,isAbstractModifier:()=>Iae,isAccessExpression:()=>ks,isAccessibilityModifier:()=>QK,isAccessor:()=>Ly,isAccessorModifier:()=>Rae,isAliasSymbolDeclaration:()=>SEe,isAliasableExpression:()=>$L,isAmbientModule:()=>Lu,isAmbientPropertyDeclaration:()=>hj,isAnonymousFunctionDefinition:()=>wC,isAnyDirectorySeparator:()=>TV,isAnyImportOrBareOrAccessedRequire:()=>sie,isAnyImportOrReExport:()=>SL,isAnyImportSyntax:()=>_S,isAnySupportedFileExtension:()=>JEe,isApplicableVersionedTypesKey:()=>Sw,isArgumentExpressionOfElementAccess:()=>GK,isArray:()=>Do,isArrayBindingElement:()=>A6,isArrayBindingOrAssignmentElement:()=>pL,isArrayBindingOrAssignmentPattern:()=>YV,isArrayBindingPattern:()=>U1,isArrayLiteralExpression:()=>pd,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>Yv,isArrayTypeNode:()=>Gk,isArrowFunction:()=>Bs,isAsExpression:()=>jk,isAssertClause:()=>kae,isAssertEntry:()=>PSe,isAssertionExpression:()=>pS,isAssertsKeyword:()=>Tae,isAssignmentDeclaration:()=>DC,isAssignmentExpression:()=>Mc,isAssignmentOperator:()=>zv,isAssignmentPattern:()=>vC,isAssignmentTarget:()=>ng,isAsteriskToken:()=>Fk,isAsyncFunction:()=>LC,isAsyncModifier:()=>hN,isAutoAccessorPropertyDeclaration:()=>kd,isAwaitExpression:()=>$y,isAwaitKeyword:()=>gH,isBigIntLiteral:()=>H7,isBinaryExpression:()=>_r,isBinaryOperatorToken:()=>ase,isBindableObjectDefinePropertyCall:()=>bS,isBindableStaticAccessExpression:()=>N1,isBindableStaticElementAccessExpression:()=>c3,isBindableStaticNameExpression:()=>ES,isBindingElement:()=>Qa,isBindingElementOfBareOrAccessedRequire:()=>Cie,isBindingName:()=>uS,isBindingOrAssignmentElement:()=>Pre,isBindingOrAssignmentPattern:()=>uL,isBindingPattern:()=>ta,isBlock:()=>Xo,isBlockOrCatchScoped:()=>uj,isBlockScope:()=>gj,isBlockScopedContainerTopLevel:()=>aie,isBooleanLiteral:()=>gC,isBreakOrContinueStatement:()=>fC,isBreakStatement:()=>DSe,isBuildInfoFile:()=>ece,isBuilderProgram:()=>wce,isBundle:()=>AH,isBundleFileTextLike:()=>boe,isCallChain:()=>lS,isCallExpression:()=>la,isCallExpressionTarget:()=>wK,isCallLikeExpression:()=>T1,isCallLikeOrFunctionLikeExpression:()=>$V,isCallOrNewExpression:()=>T_,isCallOrNewExpressionTarget:()=>OK,isCallSignatureDeclaration:()=>nI,isCallToHelper:()=>_N,isCaseBlock:()=>TN,isCaseClause:()=>GR,isCaseKeyword:()=>Dae,isCaseOrDefaultClause:()=>D6,isCatchClause:()=>$1,isCatchClauseVariableDeclaration:()=>Joe,isCatchClauseVariableDeclarationOrBindingElement:()=>dj,isCheckJsEnabledForFile:()=>hk,isChildOfNodeWithKind:()=>pEe,isCircularBuildOrder:()=>TI,isClassDeclaration:()=>Tc,isClassElement:()=>$c,isClassExpression:()=>Zc,isClassInstanceProperty:()=>Cre,isClassLike:()=>pi,isClassMemberModifier:()=>JV,isClassNamedEvaluationHelperBlock:()=>SI,isClassOrTypeElement:()=>T6,isClassStaticBlockDeclaration:()=>Il,isClassThisAssignmentBlock:()=>UN,isCollapsedRange:()=>OEe,isColonToken:()=>Eae,isCommaExpression:()=>Xk,isCommaListExpression:()=>bN,isCommaSequence:()=>DN,isCommaToken:()=>bae,isComment:()=>iW,isCommonJsExportPropertyAssignment:()=>J6,isCommonJsExportedExpression:()=>vie,isCompoundAssignment:()=>GN,isComputedNonLiteralName:()=>TL,isComputedPropertyName:()=>Za,isConciseBody:()=>x6,isConditionalExpression:()=>BR,isConditionalTypeNode:()=>aI,isConstTypeReference:()=>kg,isConstructSignatureDeclaration:()=>zk,isConstructorDeclaration:()=>Pl,isConstructorTypeNode:()=>OR,isContextualKeyword:()=>m3,isContinueStatement:()=>RSe,isCustomPrologue:()=>RL,isDebuggerStatement:()=>CSe,isDeclaration:()=>qu,isDeclarationBindingElement:()=>cL,isDeclarationFileName:()=>Su,isDeclarationName:()=>Wg,isDeclarationNameOfEnumOrNamespace:()=>_U,isDeclarationReadonly:()=>j6,isDeclarationStatement:()=>Gre,isDeclarationWithTypeParameterChildren:()=>yj,isDeclarationWithTypeParameters:()=>vj,isDecorator:()=>Eu,isDecoratorTarget:()=>pue,isDefaultClause:()=>IN,isDefaultImport:()=>MA,isDefaultModifier:()=>X7,isDefaultedExpandoInitializer:()=>Nie,isDeleteExpression:()=>Pae,isDeleteTarget:()=>zj,isDeprecatedDeclaration:()=>RW,isDestructuringAssignment:()=>Bv,isDiagnosticWithLocation:()=>RX,isDiskPathRoot:()=>AV,isDoStatement:()=>ISe,isDocumentRegistryEntry:()=>EO,isDotDotDotToken:()=>J7,isDottedName:()=>VC,isDynamicName:()=>h3,isESSymbolIdentifier:()=>xEe,isEffectiveExternalModule:()=>NA,isEffectiveModuleDeclaration:()=>oie,isEffectiveStrictModeSourceFile:()=>_j,isElementAccessChain:()=>BV,isElementAccessExpression:()=>Ys,isEmittedFileOfProgram:()=>ice,isEmptyArrayLiteral:()=>coe,isEmptyBindingElement:()=>cre,isEmptyBindingPattern:()=>lre,isEmptyObjectLiteral:()=>dU,isEmptyStatement:()=>EH,isEmptyStringLiteral:()=>Rj,isEntityName:()=>Qd,isEntityNameExpression:()=>zl,isEnumConst:()=>x1,isEnumDeclaration:()=>v0,isEnumMember:()=>Q1,isEqualityOperatorKind:()=>vW,isEqualsGreaterThanToken:()=>Sae,isExclamationToken:()=>Wk,isExcludedFile:()=>bse,isExclusivelyTypeOnlyImportOrExport:()=>IJ,isExpandoPropertyDeclaration:()=>r7,isExportAssignment:()=>Ll,isExportDeclaration:()=>Kl,isExportModifier:()=>eI,isExportName:()=>c5,isExportNamespaceAsDefaultDeclaration:()=>z6,isExportOrDefaultModifier:()=>Zk,isExportSpecifier:()=>Ju,isExportsIdentifier:()=>yS,isExportsOrModuleExportsOrAlias:()=>tE,isExpression:()=>bt,isExpressionNode:()=>eg,isExpressionOfExternalModuleImportEqualsDeclaration:()=>hue,isExpressionOfOptionalChainRoot:()=>b6,isExpressionStatement:()=>eu,isExpressionWithTypeArguments:()=>Hv,isExpressionWithTypeArgumentsInClassExtendsClause:()=>R3,isExternalModule:()=>ac,isExternalModuleAugmentation:()=>I1,isExternalModuleImportEqualsDeclaration:()=>l0,isExternalModuleIndicator:()=>fL,isExternalModuleNameRelative:()=>Yc,isExternalModuleReference:()=>Th,isExternalModuleSymbol:()=>sO,isExternalOrCommonJsModule:()=>Fp,isFileLevelReservedGeneratedIdentifier:()=>lL,isFileLevelUniqueName:()=>F6,isFileProbablyExternalModule:()=>nw,isFirstDeclarationOfSymbolParameter:()=>mX,isFixablePromiseHandler:()=>QX,isForInOrOfStatement:()=>Jx,isForInStatement:()=>t5,isForInitializer:()=>Ef,isForOfStatement:()=>Uk,isForStatement:()=>FS,isFunctionBlock:()=>D1,isFunctionBody:()=>ZV,isFunctionDeclaration:()=>Sc,isFunctionExpression:()=>ws,isFunctionExpressionOrArrowFunction:()=>B1,isFunctionLike:()=>ea,isFunctionLikeDeclaration:()=>zs,isFunctionLikeKind:()=>xA,isFunctionLikeOrClassStaticBlockDeclaration:()=>qx,isFunctionOrConstructorTypeNode:()=>Nre,isFunctionOrModuleBlock:()=>KV,isFunctionSymbol:()=>Mie,isFunctionTypeNode:()=>bh,isFutureReservedKeyword:()=>TEe,isGeneratedIdentifier:()=>ol,isGeneratedPrivateIdentifier:()=>cS,isGetAccessor:()=>wy,isGetAccessorDeclaration:()=>Zp,isGetOrSetAccessorDeclaration:()=>v6,isGlobalDeclaration:()=>dRe,isGlobalScopeAugmentation:()=>I_,isGrammarError:()=>eie,isHeritageClause:()=>ef,isHoistedFunction:()=>H6,isHoistedVariableStatement:()=>q6,isIdentifier:()=>Ve,isIdentifierANonContextualKeyword:()=>Uj,isIdentifierName:()=>Wie,isIdentifierOrThisTypeNode:()=>nse,isIdentifierPart:()=>Zb,isIdentifierStart:()=>Xh,isIdentifierText:()=>$p,isIdentifierTypePredicate:()=>Eie,isIdentifierTypeReference:()=>Voe,isIfStatement:()=>OS,isIgnoredFileFromWildCardWatching:()=>ww,isImplicitGlob:()=>IU,isImportAttribute:()=>wae,isImportAttributeName:()=>Dre,isImportAttributes:()=>cI,isImportCall:()=>Wp,isImportClause:()=>Eh,isImportDeclaration:()=>Lc,isImportEqualsDeclaration:()=>tu,isImportKeyword:()=>vN,isImportMeta:()=>nR,isImportOrExportSpecifier:()=>IA,isImportOrExportSpecifierName:()=>Vue,isImportSpecifier:()=>tp,isImportTypeAssertionContainer:()=>NSe,isImportTypeNode:()=>lg,isImportableFile:()=>zX,isInComment:()=>Xv,isInCompoundLikeAssignment:()=>Wj,isInExpressionContext:()=>n3,isInJSDoc:()=>LL,isInJSFile:()=>cr,isInJSXText:()=>Tue,isInJsonFile:()=>i3,isInNonReferenceComment:()=>Nue,isInReferenceComment:()=>Cue,isInRightSideOfInternalImportEqualsDeclaration:()=>HF,isInString:()=>II,isInTemplateString:()=>KK,isInTopLevelContext:()=>Q6,isInTypeQuery:()=>xS,isIncrementalCompilation:()=>dN,isIndexSignatureDeclaration:()=>j1,isIndexedAccessTypeNode:()=>wS,isInferTypeNode:()=>MS,isInfinityOrNaNString:()=>oN,isInitializedProperty:()=>Dw,isInitializedVariable:()=>uk,isInsideJsxElement:()=>nW,isInsideJsxElementOrAttribute:()=>Sue,isInsideNodeModules:()=>vO,isInsideTemplateLiteral:()=>oO,isInstanceOfExpression:()=>D3,isInstantiatedModule:()=>Oq,isInterfaceDeclaration:()=>fd,isInternalDeclaration:()=>rj,isInternalModuleImportEqualsDeclaration:()=>sR,isInternalName:()=>OH,isIntersectionTypeNode:()=>oI,isIntrinsicJsxName:()=>yR,isIterationStatement:()=>ky,isJSDoc:()=>t_,isJSDocAllType:()=>Bae,isJSDocAugmentsTag:()=>fI,isJSDocAuthorTag:()=>wSe,isJSDocCallbackTag:()=>xH,isJSDocClassTag:()=>Vae,isJSDocCommentContainingNode:()=>C6,isJSDocConstructSignature:()=>pR,isJSDocDeprecatedTag:()=>PH,isJSDocEnumTag:()=>qk,isJSDocFunctionType:()=>jR,isJSDocImplementsTag:()=>a5,isJSDocIndexSignature:()=>o3,isJSDocLikeText:()=>HH,isJSDocLink:()=>Wae,isJSDocLinkCode:()=>zae,isJSDocLinkLike:()=>CA,isJSDocLinkPlain:()=>LSe,isJSDocMemberName:()=>y0,isJSDocNameReference:()=>xN,isJSDocNamepathType:()=>kSe,isJSDocNamespaceBody:()=>iEe,isJSDocNode:()=>Kx,isJSDocNonNullableType:()=>n5,isJSDocNullableType:()=>VR,isJSDocOptionalParameter:()=>yk,isJSDocOptionalType:()=>IH,isJSDocOverloadTag:()=>UR,isJSDocOverrideTag:()=>i5,isJSDocParameterTag:()=>n_,isJSDocPrivateTag:()=>DH,isJSDocPropertyLikeTag:()=>mC,isJSDocPropertyTag:()=>jae,isJSDocProtectedTag:()=>CH,isJSDocPublicTag:()=>RH,isJSDocReadonlyTag:()=>NH,isJSDocReturnTag:()=>o5,isJSDocSatisfiesExpression:()=>kU,isJSDocSatisfiesTag:()=>s5,isJSDocSeeTag:()=>OSe,isJSDocSignature:()=>b0,isJSDocTag:()=>Xx,isJSDocTemplateTag:()=>am,isJSDocThisTag:()=>MH,isJSDocThrowsTag:()=>WSe,isJSDocTypeAlias:()=>Qf,isJSDocTypeAssertion:()=>qR,isJSDocTypeExpression:()=>Z1,isJSDocTypeLiteral:()=>GS,isJSDocTypeTag:()=>RN,isJSDocTypedefTag:()=>VS,isJSDocUnknownTag:()=>FSe,isJSDocUnknownType:()=>Gae,isJSDocVariadicType:()=>r5,isJSXTagName:()=>aR,isJsonEqual:()=>$3,isJsonSourceFile:()=>$f,isJsxAttribute:()=>O_,isJsxAttributeLike:()=>R6,isJsxAttributeName:()=>Yoe,isJsxAttributes:()=>Y1,isJsxChild:()=>hL,isJsxClosingElement:()=>K1,isJsxClosingFragment:()=>Oae,isJsxElement:()=>cg,isJsxExpression:()=>AN,isJsxFragment:()=>X1,isJsxNamespacedName:()=>e_,isJsxOpeningElement:()=>w_,isJsxOpeningFragment:()=>dI,isJsxOpeningLikeElement:()=>sd,isJsxOpeningLikeElementTagName:()=>fue,isJsxSelfClosingElement:()=>zS,isJsxSpreadAttribute:()=>pI,isJsxTagNameExpression:()=>yC,isJsxText:()=>$A,isJumpStatementTarget:()=>Zw,isKeyword:()=>Fd,isKeywordOrPunctuation:()=>f3,isKnownSymbol:()=>ek,isLabelName:()=>zK,isLabelOfLabeledStatement:()=>WK,isLabeledStatement:()=>J1,isLateVisibilityPaintedStatement:()=>G6,isLeftHandSideExpression:()=>Zd,isLeftHandSideOfAssignment:()=>wEe,isLet:()=>U6,isLineBreak:()=>Uu,isLiteralComputedPropertyDeclarationName:()=>YL,isLiteralExpression:()=>S1,isLiteralExpressionOfObject:()=>HV,isLiteralImportTypeNode:()=>zy,isLiteralKind:()=>_C,isLiteralLikeAccess:()=>l3,isLiteralLikeElementAccess:()=>WL,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>KF,isLiteralTypeLikeExpression:()=>USe,isLiteralTypeLiteral:()=>wre,isLiteralTypeNode:()=>Yy,isLocalName:()=>Ug,isLogicalOperator:()=>aoe,isLogicalOrCoalescingAssignmentExpression:()=>sU,isLogicalOrCoalescingAssignmentOperator:()=>GC,isLogicalOrCoalescingBinaryExpression:()=>ak,isLogicalOrCoalescingBinaryOperator:()=>ok,isMappedTypeNode:()=>WR,isMemberName:()=>Yh,isMetaProperty:()=>yN,isMethodDeclaration:()=>jl,isMethodOrAccessor:()=>RA,isMethodSignature:()=>yh,isMinusToken:()=>hH,isMissingDeclaration:()=>MSe,isMissingPackageJsonInfo:()=>Fse,isModifier:()=>Ia,isModifierKind:()=>kv,isModifierLike:()=>al,isModuleAugmentationExternal:()=>fj,isModuleBlock:()=>k_,isModuleBody:()=>Wre,isModuleDeclaration:()=>Jl,isModuleExportsAccessExpression:()=>tg,isModuleIdentifier:()=>Mj,isModuleName:()=>ose,isModuleOrEnumDeclaration:()=>mL,isModuleReference:()=>jre,isModuleSpecifierLike:()=>dW,isModuleWithStringLiteralName:()=>B6,isNameOfFunctionDeclaration:()=>jK,isNameOfModuleDeclaration:()=>VK,isNamedClassElement:()=>Z1e,isNamedDeclaration:()=>od,isNamedEvaluation:()=>mp,isNamedEvaluationSource:()=>Hj,isNamedExportBindings:()=>VV,isNamedExports:()=>Df,isNamedImportBindings:()=>ej,isNamedImports:()=>jg,isNamedImportsOrExports:()=>w3,isNamedTupleMember:()=>FR,isNamespaceBody:()=>rEe,isNamespaceExport:()=>Sh,isNamespaceExportDeclaration:()=>Hk,isNamespaceImport:()=>Zy,isNamespaceReexportDeclaration:()=>Die,isNewExpression:()=>H1,isNewExpressionTarget:()=>iP,isNoSubstitutionTemplateLiteral:()=>QA,isNode:()=>$1e,isNodeArray:()=>E1,isNodeArrayMultiLine:()=>_oe,isNodeDescendantOf:()=>P1,isNodeKind:()=>aL,isNodeLikeSystem:()=>pG,isNodeModulesDirectory:()=>a6,isNodeWithPossibleHoistedDeclaration:()=>wie,isNonContextualKeyword:()=>jj,isNonExportDefaultModifier:()=>qSe,isNonGlobalAmbientModule:()=>pj,isNonGlobalDeclaration:()=>rde,isNonNullAccess:()=>Xoe,isNonNullChain:()=>E6,isNonNullExpression:()=>lI,isNonStaticMethodOrAccessorWithPrivateName:()=>gle,isNotEmittedOrPartiallyEmittedNode:()=>nEe,isNotEmittedStatement:()=>TH,isNullishCoalesce:()=>GV,isNumber:()=>Rv,isNumericLiteral:()=>hp,isNumericLiteralName:()=>sg,isObjectBindingElementWithoutPropertyName:()=>uO,isObjectBindingOrAssignmentElement:()=>dL,isObjectBindingOrAssignmentPattern:()=>XV,isObjectBindingPattern:()=>om,isObjectLiteralElement:()=>tj,isObjectLiteralElementLike:()=>wg,isObjectLiteralExpression:()=>wa,isObjectLiteralMethod:()=>Im,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>K6,isObjectTypeDeclaration:()=>GA,isOctalDigit:()=>u6,isOmittedExpression:()=>Vc,isOptionalChain:()=>Hu,isOptionalChainRoot:()=>dC,isOptionalDeclaration:()=>sN,isOptionalJSDocPropertyLikeTag:()=>vk,isOptionalTypeNode:()=>Y7,isOuterExpression:()=>d5,isOutermostOptionalChain:()=>pC,isOverrideModifier:()=>xae,isPackageJsonInfo:()=>L5,isPackedArrayLiteral:()=>MU,isParameter:()=>Co,isParameterDeclaration:()=>L1,isParameterPropertyDeclaration:()=>pp,isParameterPropertyModifier:()=>hC,isParenthesizedExpression:()=>Wd,isParenthesizedTypeNode:()=>LS,isParseTreeNode:()=>uC,isPartOfTypeNode:()=>Zh,isPartOfTypeQuery:()=>r3,isPartiallyEmittedExpression:()=>e5,isPatternMatch:()=>k8,isPinnedComment:()=>W6,isPlainJsFile:()=>yL,isPlusToken:()=>_H,isPossiblyTypeArgumentPosition:()=>iO,isPostfixUnaryExpression:()=>yH,isPrefixUnaryExpression:()=>Qy,isPrivateIdentifier:()=>Xi,isPrivateIdentifierClassElementDeclaration:()=>ad,isPrivateIdentifierPropertyAccessExpression:()=>Hx,isPrivateIdentifierSymbol:()=>Bie,isProgramBundleEmitBuildInfo:()=>bce,isProgramUptoDate:()=>MJ,isPrologueDirective:()=>Am,isPropertyAccessChain:()=>y6,isPropertyAccessEntityNameExpression:()=>sk,isPropertyAccessExpression:()=>zr,isPropertyAccessOrQualifiedName:()=>Lre,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>Mre,isPropertyAssignment:()=>_c,isPropertyDeclaration:()=>Jo,isPropertyName:()=>ic,isPropertyNameLiteral:()=>R_,isPropertySignature:()=>gp,isProtoSetter:()=>Gie,isPrototypeAccess:()=>Vy,isPrototypePropertyAssignment:()=>GL,isPunctuation:()=>Vj,isPushOrUnshiftIdentifier:()=>qj,isQualifiedName:()=>Ad,isQuestionDotToken:()=>K7,isQuestionOrExclamationToken:()=>tse,isQuestionOrPlusOrMinusToken:()=>ise,isQuestionToken:()=>Ky,isRawSourceMap:()=>fle,isReadonlyKeyword:()=>Aae,isReadonlyKeywordOrPlusOrMinusToken:()=>rse,isRecognizedTripleSlashComment:()=>lj,isReferenceFileLocation:()=>l2,isReferencedFile:()=>R0,isRegularExpressionLiteral:()=>fH,isRequireCall:()=>Sd,isRequireVariableStatement:()=>Nj,isRestParameter:()=>$h,isRestTypeNode:()=>$7,isReturnStatement:()=>Rm,isReturnStatementWithFixablePromiseHandler:()=>FW,isRightSideOfAccessExpression:()=>uU,isRightSideOfInstanceofExpression:()=>loe,isRightSideOfPropertyAccess:()=>_2,isRightSideOfQualifiedName:()=>_ue,isRightSideOfQualifiedNameOrPropertyAccess:()=>jC,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>soe,isRootedDiskPath:()=>dp,isSameEntityName:()=>lR,isSatisfiesExpression:()=>bH,isScopeMarker:()=>Ore,isSemicolonClassElement:()=>Mae,isSetAccessor:()=>wv,isSetAccessorDeclaration:()=>vp,isShebangTrivia:()=>CV,isShiftOperatorOrHigher:()=>VH,isShorthandAmbientModuleSymbol:()=>SC,isShorthandPropertyAssignment:()=>np,isSignedNumericLiteral:()=>_3,isSimpleCopiableExpression:()=>rE,isSimpleInlineableExpression:()=>F_,isSimpleParameter:()=>Sle,isSimpleParameterList:()=>Cw,isSingleOrDoubleQuote:()=>kL,isSourceFile:()=>no,isSourceFileFromLibrary:()=>T2,isSourceFileJS:()=>ld,isSourceFileNotJS:()=>_Ee,isSourceFileNotJson:()=>Cj,isSourceMapping:()=>mle,isSpecialPropertyDeclaration:()=>Pie,isSpreadAssignment:()=>qv,isSpreadElement:()=>Zm,isStatement:()=>Ki,isStatementButNotDeclaration:()=>_L,isStatementOrBlock:()=>Vre,isStatementWithLocals:()=>Zre,isStatic:()=>sa,isStaticModifier:()=>tI,isString:()=>wo,isStringAKeyword:()=>AEe,isStringANonContextualKeyword:()=>OA,isStringAndEmptyAnonymousObjectIntersection:()=>Due,isStringDoubleQuoted:()=>s3,isStringLiteral:()=>Na,isStringLiteralLike:()=>us,isStringLiteralOrJsxExpression:()=>Ure,isStringLiteralOrTemplate:()=>Kue,isStringOrNumericLiteralLike:()=>Qp,isStringOrRegularExpressionOrTemplateLiteral:()=>$K,isStringTextContainingNode:()=>qV,isSuperCall:()=>gS,isSuperKeyword:()=>gN,isSuperOrSuperProperty:()=>mEe,isSuperProperty:()=>Od,isSupportedSourceFileName:()=>Woe,isSwitchStatement:()=>SN,isSyntaxList:()=>HR,isSyntheticExpression:()=>ASe,isSyntheticReference:()=>uI,isTagName:()=>BK,isTaggedTemplateExpression:()=>q1,isTaggedTemplateTag:()=>due,isTemplateExpression:()=>Q7,isTemplateHead:()=>ZA,isTemplateLiteral:()=>DA,isTemplateLiteralKind:()=>My,isTemplateLiteralToken:()=>xre,isTemplateLiteralTypeNode:()=>Cae,isTemplateLiteralTypeSpan:()=>vH,isTemplateMiddle:()=>mH,isTemplateMiddleOrTemplateTail:()=>S6,isTemplateSpan:()=>EN,isTemplateTail:()=>q7,isTextWhiteSpaceLike:()=>kue,isThis:()=>h2,isThisContainerOrFunctionBlock:()=>Iie,isThisIdentifier:()=>O1,isThisInTypeQuery:()=>FA,isThisInitializedDeclaration:()=>Z6,isThisInitializedObjectBindingExpression:()=>Rie,isThisProperty:()=>NL,isThisTypeNode:()=>Vk,isThisTypeParameter:()=>aN,isThisTypePredicate:()=>fEe,isThrowStatement:()=>SH,isToken:()=>AA,isTokenKind:()=>UV,isTraceEnabled:()=>Hg,isTransientSymbol:()=>fh,isTrivia:()=>hR,isTryStatement:()=>WS,isTupleTypeNode:()=>iI,isTypeAlias:()=>UL,isTypeAliasDeclaration:()=>Dm,isTypeAssertionExpression:()=>Nae,isTypeDeclaration:()=>PR,isTypeElement:()=>dS,isTypeKeyword:()=>sP,isTypeKeywordToken:()=>rX,isTypeKeywordTokenOrIdentifier:()=>sW,isTypeLiteralNode:()=>yp,isTypeNode:()=>qi,isTypeNodeKind:()=>vU,isTypeOfExpression:()=>zR,isTypeOnlyExportDeclaration:()=>Rre,isTypeOnlyImportDeclaration:()=>sL,isTypeOnlyImportOrExportDeclaration:()=>a0,isTypeOperatorNode:()=>kS,isTypeParameterDeclaration:()=>_l,isTypePredicateNode:()=>Bk,isTypeQueryNode:()=>rI,isTypeReferenceNode:()=>Rf,isTypeReferenceType:()=>P6,isTypeUsableAsPropertyName:()=>nm,isUMDExportSymbol:()=>k3,isUnaryExpression:()=>QV,isUnaryExpressionWithWrite:()=>kre,isUnicodeIdentifierStart:()=>l6,isUnionTypeNode:()=>Xy,isUnparsedNode:()=>jV,isUnparsedPrepend:()=>Fae,isUnparsedSource:()=>BS,isUnparsedTextLike:()=>Ire,isUrl:()=>qne,isValidBigIntString:()=>Q3,isValidESSymbolDeclaration:()=>yie,isValidTypeOnlyAliasUseSite:()=>_0,isValueSignatureDeclaration:()=>Oie,isVarAwaitUsing:()=>IL,isVarConst:()=>tR,isVarUsing:()=>xL,isVariableDeclaration:()=>Oi,isVariableDeclarationInVariableStatement:()=>AC,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>C1,isVariableDeclarationInitializedToRequire:()=>a3,isVariableDeclarationList:()=>jc,isVariableLike:()=>rR,isVariableLikeOrAccessor:()=>gie,isVariableStatement:()=>Ml,isVoidExpression:()=>sI,isWatchSet:()=>WEe,isWhileStatement:()=>xSe,isWhiteSpaceLike:()=>Lg,isWhiteSpaceSingleLine:()=>S_,isWithStatement:()=>Lae,isWriteAccess:()=>BA,isWriteOnlyAccess:()=>L3,isYieldExpression:()=>Z7,jsxModeNeedsExplicitImport:()=>MX,keywordPart:()=>Ep,last:()=>Ya,lastOrUndefined:()=>Zs,length:()=>De,libMap:()=>T5,libs:()=>dw,lineBreakPart:()=>E2,linkNamePart:()=>Bue,linkPart:()=>hX,linkTextPart:()=>mW,listFiles:()=>$J,loadModuleFromGlobalCache:()=>Jse,loadWithModeAwareCache:()=>zw,makeIdentifierFromModuleName:()=>iie,makeImport:()=>$v,makeImportIfNecessary:()=>Lue,makeStringLiteral:()=>RI,mangleScopedPackageName:()=>r2,map:()=>Ft,mapAllOrFail:()=>fA,mapDefined:()=>Vi,mapDefinedEntries:()=>Rx,mapDefinedIterator:()=>tS,mapEntries:()=>fne,mapIterator:()=>ra,mapOneOrMany:()=>CX,mapToDisplayParts:()=>ob,matchFiles:()=>xU,matchPatternOrExact:()=>RU,matchedText:()=>Rne,matchesExclude:()=>S5,maybeBind:()=>oa,maybeSetLocalizedDiagnosticMessages:()=>xoe,memoize:()=>Ed,memoizeCached:()=>bne,memoizeOne:()=>ch,memoizeWeak:()=>H0e,metadataHelper:()=>y7,min:()=>sG,minAndMax:()=>Boe,missingFileModifiedTime:()=>kp,modifierToFlag:()=>zA,modifiersToFlags:()=>N_,moduleOptionDeclaration:()=>lq,moduleResolutionIsEqualTo:()=>$re,moduleResolutionNameAndModeGetter:()=>EF,moduleResolutionOptionDeclarations:()=>A5,moduleResolutionSupportsPackageJsonExportsAndImports:()=>jA,moduleResolutionUsesNodeModules:()=>lW,moduleSpecifiers:()=>nE,moveEmitHelpers:()=>fae,moveRangeEnd:()=>P3,moveRangePastDecorators:()=>zg,moveRangePastModifiers:()=>P_,moveRangePos:()=>f0,moveSyntheticComments:()=>uae,mutateMap:()=>KC,mutateMapSkippingNewValues:()=>og,needsParentheses:()=>hW,needsScopeMarker:()=>I6,newCaseClauseTracker:()=>NW,newPrivateEnvironment:()=>ble,noEmitNotification:()=>Nw,noEmitSubstitution:()=>JN,noTransformers:()=>lJ,noTruncationMaximumTruncationLength:()=>a7,nodeCanBeDecorated:()=>t3,nodeHasName:()=>nL,nodeIsDecorated:()=>oR,nodeIsMissing:()=>Fl,nodeIsPresent:()=>Xf,nodeIsSynthesized:()=>Xs,nodeModuleNameResolver:()=>Gse,nodeModulesPathPart:()=>Ih,nodeNextJsonConfigResolver:()=>Vse,nodeOrChildIsDecorated:()=>ML,nodeOverlapsWithStartEnd:()=>XF,nodePosToString:()=>aEe,nodeSeenTracker:()=>xI,nodeStartsNewLexicalEnvironment:()=>Jj,nodeToDisplayParts:()=>oRe,noop:()=>$a,noopFileWatcher:()=>f2,normalizePath:()=>va,normalizeSlashes:()=>Mu,not:()=>O8,notImplemented:()=>Ko,notImplementedResolver:()=>uF,nullNodeConverters:()=>eH,nullParenthesizerRules:()=>ZU,nullTransformationContext:()=>KN,objectAllocator:()=>lu,operatorPart:()=>uP,optionDeclarations:()=>ug,optionMapToObject:()=>y5,optionsAffectingProgramStructure:()=>fq,optionsForBuild:()=>_q,optionsForWatch:()=>QR,optionsHaveChanges:()=>Yx,optionsHaveModuleResolutionChanges:()=>Kre,or:()=>Xm,orderedRemoveItem:()=>Mx,orderedRemoveItemAt:()=>Iy,outFile:()=>Ps,packageIdToPackageName:()=>w6,packageIdToString:()=>Fy,paramHelper:()=>b7,parameterIsThisKeyword:()=>w1,parameterNamePart:()=>Oue,parseBaseNodeFactory:()=>YH,parseBigInt:()=>Goe,parseBuildCommand:()=>ATe,parseCommandLine:()=>STe,parseCommandLineWorker:()=>ZH,parseConfigFileTextToJson:()=>tq,parseConfigFileWithSystem:()=>oxe,parseConfigHostFromCompilerHostLike:()=>bF,parseCustomTypeOption:()=>v5,parseIsolatedEntityName:()=>_I,parseIsolatedJSDocComment:()=>pse,parseJSDocTypeExpressionForTests:()=>cTe,parseJsonConfigFileContent:()=>WTe,parseJsonSourceFileConfigFileContent:()=>lw,parseJsonText:()=>iw,parseListTypeOption:()=>mse,parseNodeFactory:()=>Ah,parseNodeModuleFromPath:()=>vw,parsePackageName:()=>Ew,parsePseudoBigInt:()=>tN,parseValidBigInt:()=>PU,patchWriteFileEnsuringDirectory:()=>Une,pathContainsNodeModules:()=>I0,pathIsAbsolute:()=>rC,pathIsBareSpecifier:()=>IV,pathIsRelative:()=>wp,patternText:()=>xne,perfLogger:()=>rd,performIncrementalCompilation:()=>cxe,performance:()=>Wne,plainJSErrors:()=>SF,positionBelongsToNode:()=>HK,positionIsASICandidate:()=>bW,positionIsSynthesized:()=>Qm,positionsAreOnSameLine:()=>Af,preProcessFile:()=>MRe,probablyUsesSemicolons:()=>hO,processCommentPragmas:()=>KH,processPragmasIntoFields:()=>XH,processTaggedTemplateExpression:()=>tJ,programContainsEsModules:()=>Mue,programContainsModules:()=>Pue,projectReferenceIsEqualTo:()=>oj,propKeyHelper:()=>L7,propertyNamePart:()=>Fue,pseudoBigIntToString:()=>z1,punctuationPart:()=>Yu,pushIfUnique:()=>bf,quote:()=>fP,quotePreferenceFromString:()=>sX,rangeContainsPosition:()=>eO,rangeContainsPositionExclusive:()=>tO,rangeContainsRange:()=>of,rangeContainsRangeExclusive:()=>gue,rangeContainsStartEnd:()=>nO,rangeEndIsOnSameLineAsRangeStart:()=>ck,rangeEndPositionsAreOnSameLine:()=>foe,rangeEquals:()=>eG,rangeIsOnSingleLine:()=>DS,rangeOfNode:()=>CU,rangeOfTypeParameters:()=>NU,rangeOverlapsWithStartEnd:()=>oP,rangeStartIsOnSameLineAsRangeEnd:()=>moe,rangeStartPositionsAreOnSameLine:()=>M3,readBuilderProgram:()=>kF,readConfigFile:()=>aw,readHelper:()=>P7,readJson:()=>UC,readJsonConfigFile:()=>gse,readJsonOrUndefined:()=>pU,reduceEachLeadingCommentRange:()=>Qne,reduceEachTrailingCommentRange:()=>Zne,reduceLeft:()=>nd,reduceLeftIterator:()=>Ar,reducePathComponents:()=>sS,refactor:()=>NI,regExpEscape:()=>HEe,relativeComplement:()=>mne,removeAllComments:()=>Nk,removeEmitHelper:()=>ESe,removeExtension:()=>_k,removeFileExtension:()=>Td,removeIgnoredPath:()=>IF,removeMinAndVersionNumbers:()=>lG,removeOptionality:()=>Aue,removePrefix:()=>ZD,removeSuffix:()=>Px,removeTrailingDirectorySeparator:()=>$b,repeatString:()=>lO,replaceElement:()=>rG,replaceFirstStar:()=>qA,resolutionExtensionIsTSOrJson:()=>QC,resolveConfigFileProjectName:()=>lK,resolveJSModule:()=>zse,resolveLibrary:()=>w5,resolveModuleName:()=>t2,resolveModuleNameFromCache:()=>EAe,resolvePackageNameToPackageJson:()=>vq,resolvePath:()=>Dy,resolveProjectReferencePath:()=>c2,resolveTripleslashReference:()=>mF,resolveTypeReferenceDirective:()=>wse,resolvingEmptyArray:()=>o7,restHelper:()=>R7,returnFalse:()=>Km,returnNoopFileWatcher:()=>m2,returnTrue:()=>Dv,returnUndefined:()=>Xb,returnsPromise:()=>$X,runInitializersHelper:()=>S7,sameFlatMap:()=>eS,sameMap:()=>Io,sameMapping:()=>lIe,scanShebangTrivia:()=>NV,scanTokenAtPosition:()=>mie,scanner:()=>$u,screenStartingMessageCodes:()=>LF,semanticDiagnosticsOptionDeclarations:()=>uq,serializeCompilerOptions:()=>b5,server:()=>Cwe,servicesVersion:()=>Ipe,setCommentRange:()=>oc,setConfigFileInOptions:()=>aq,setConstantValue:()=>pae,setEachParent:()=>NR,setEmitFlags:()=>fr,setFunctionNameHelper:()=>k7,setGetSourceFileAsHashVersioned:()=>MF,setIdentifierAutoGenerate:()=>Lk,setIdentifierGeneratedImportReference:()=>hae,setIdentifierTypeArguments:()=>Uv,setInternalEmitFlags:()=>Pk,setLocalizedDiagnosticMessages:()=>Ioe,setModuleDefaultHelper:()=>F7,setNodeFlags:()=>Uoe,setObjectAllocator:()=>Aoe,setOriginalNode:()=>Pr,setParent:()=>qa,setParentRecursive:()=>Uy,setPrivateIdentifier:()=>qS,setSnippetElement:()=>lH,setSourceMapRange:()=>Ca,setStackTraceLimit:()=>p1e,setStartsOnNewLine:()=>_7,setSyntheticLeadingComments:()=>g0,setSyntheticTrailingComments:()=>KA,setSys:()=>g1e,setSysLog:()=>Vne,setTextRange:()=>dt,setTextRangeEnd:()=>CR,setTextRangePos:()=>nN,setTextRangePosEnd:()=>gh,setTextRangePosWidth:()=>rN,setTokenSourceMapRange:()=>cae,setTypeNode:()=>mae,setUILocale:()=>Tne,setValueDeclaration:()=>VL,shouldAllowImportingTsExtension:()=>i2,shouldPreserveConstEnums:()=>V1,shouldUseUriStyleNodeCoreModules:()=>DW,showModuleSpecifier:()=>yoe,signatureHasLiteralTypes:()=>Fq,signatureHasRestParameter:()=>Xu,signatureToDisplayParts:()=>gX,single:()=>nG,singleElementArray:()=>yA,singleIterator:()=>pne,singleOrMany:()=>sh,singleOrUndefined:()=>ah,skipAlias:()=>bu,skipAssertions:()=>GSe,skipConstraint:()=>iX,skipOuterExpressions:()=>Xl,skipParentheses:()=>vs,skipPartiallyEmittedExpressions:()=>Sm,skipTrivia:()=>La,skipTypeChecking:()=>eN,skipTypeParentheses:()=>XL,skipWhile:()=>Cne,sliceAfter:()=>DU,some:()=>Et,sort:()=>nS,sortAndDeduplicate:()=>XD,sortAndDeduplicateDiagnostics:()=>Gx,sourceFileAffectingCompilerOptions:()=>I5,sourceFileMayBeEmitted:()=>AS,sourceMapCommentRegExp:()=>K5,sourceMapCommentRegExpDontCareLineStart:()=>Hq,spacePart:()=>kl,spanMap:()=>YB,spreadArrayHelper:()=>M7,stableSort:()=>Iv,startEndContainsRange:()=>UK,startEndOverlapsWithStartEnd:()=>YF,startOnNewLine:()=>Ku,startTracing:()=>zne,startsWith:()=>uo,startsWithDirectory:()=>RV,startsWithUnderscore:()=>PX,startsWithUseStrict:()=>Xae,stringContainsAt:()=>nde,stringToToken:()=>y1,stripQuotes:()=>em,supportedDeclarationExtensions:()=>Ak,supportedJSExtensions:()=>YU,supportedJSExtensionsFlat:()=>LR,supportedLocaleDirectories:()=>ij,supportedTSExtensions:()=>MR,supportedTSExtensionsFlat:()=>XU,supportedTSImplementationExtensions:()=>Ik,suppressLeadingAndTrailingTrivia:()=>Sp,suppressLeadingTrivia:()=>EX,suppressTrailingTrivia:()=>Hue,symbolEscapedNameNoDefault:()=>uW,symbolName:()=>bl,symbolNameNoDefault:()=>cW,symbolPart:()=>wue,symbolToDisplayParts:()=>dP,syntaxMayBeASICandidate:()=>FX,syntaxRequiresTrailingSemicolonOrASI:()=>yW,sys:()=>gu,sysLog:()=>zM,tagNamesAreEquivalent:()=>S0,takeWhile:()=>W8,targetOptionDeclaration:()=>fw,templateObjectHelper:()=>N7,testFormatSettings:()=>uue,textChangeRangeIsUnchanged:()=>are,textChangeRangeNewSpan:()=>cC,textChanges:()=>hr,textOrKeywordPart:()=>_X,textPart:()=>sf,textRangeContainsPositionInclusive:()=>ZM,textSpanContainsPosition:()=>LV,textSpanContainsTextSpan:()=>nre,textSpanEnd:()=>ql,textSpanIntersection:()=>ore,textSpanIntersectsWith:()=>f6,textSpanIntersectsWithPosition:()=>ire,textSpanIntersectsWithTextSpan:()=>W1e,textSpanIsEmpty:()=>tre,textSpanOverlap:()=>rre,textSpanOverlapsWith:()=>F1e,textSpansEqual:()=>b2,textToKeywordObj:()=>$M,timestamp:()=>Ks,toArray:()=>gA,toBuilderFileEmit:()=>Tce,toBuilderStateFileInfoForMultiEmit:()=>Sce,toEditorSettings:()=>wO,toFileNameLowerCase:()=>lh,toLowerCase:()=>yne,toPath:()=>rl,toProgramEmitPending:()=>Ace,tokenIsIdentifierOrKeyword:()=>id,tokenIsIdentifierOrKeywordOrGreaterThan:()=>Yne,tokenToString:()=>ma,trace:()=>To,tracing:()=>lr,tracingEnabled:()=>wM,transform:()=>NDe,transformClassFields:()=>Ple,transformDeclarations:()=>aJ,transformECMAScriptModule:()=>oJ,transformES2015:()=>qle,transformES2016:()=>Hle,transformES2017:()=>wle,transformES2018:()=>Ole,transformES2019:()=>Fle,transformES2020:()=>Wle,transformES2021:()=>zle,transformES5:()=>Jle,transformESDecorators:()=>kle,transformESNext:()=>Ble,transformGenerators:()=>Kle,transformJsx:()=>Ule,transformLegacyDecorators:()=>Lle,transformModule:()=>iJ,transformNamedEvaluation:()=>bp,transformNodeModule:()=>Yle,transformNodes:()=>Pw,transformSystemModule:()=>Xle,transformTypeScript:()=>Nle,transpile:()=>BRe,transpileModule:()=>Ede,transpileOptionValueCompilerOptions:()=>mq,tryAddToSet:()=>Av,tryAndIgnoreErrors:()=>TW,tryCast:()=>ai,tryDirectoryExists:()=>SW,tryExtractTSExtension:()=>C3,tryFileExists:()=>gO,tryGetClassExtendingExpressionWithTypeArguments:()=>lU,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>cU,tryGetDirectories:()=>EW,tryGetExtensionFromPath:()=>Gg,tryGetImportFromModuleSpecifier:()=>jL,tryGetJSDocSatisfiesTypeNode:()=>n7,tryGetModuleNameFromFile:()=>$k,tryGetModuleSpecifierFromDeclaration:()=>cR,tryGetNativePerformanceHooks:()=>wne,tryGetPropertyAccessOrIdentifierToString:()=>lk,tryGetPropertyNameOfBindingOrAssignmentElement:()=>f5,tryGetSourceMappingURL:()=>ple,tryGetTextOfPropertyName:()=>TC,tryIOAndConsumeErrors:()=>AW,tryParseJson:()=>N3,tryParsePattern:()=>DR,tryParsePatterns:()=>X3,tryParseRawSourceMap:()=>jq,tryReadDirectory:()=>AX,tryReadFile:()=>MN,tryRemoveDirectoryPrefix:()=>AU,tryRemoveExtension:()=>zoe,tryRemovePrefix:()=>dG,tryRemoveSuffix:()=>Ine,typeAcquisitionDeclarations:()=>mw,typeAliasNamePart:()=>Wue,typeDirectiveIsEqualTo:()=>Qre,typeKeywords:()=>PW,typeParameterNamePart:()=>zue,typeToDisplayParts:()=>pO,unchangedPollThresholds:()=>BM,unchangedTextChangeRange:()=>gL,unescapeLeadingUnderscores:()=>Hi,unmangleScopedPackageName:()=>Tw,unorderedRemoveItem:()=>vA,unorderedRemoveItemAt:()=>cG,unreachableCodeIsError:()=>Doe,unusedLabelIsError:()=>Coe,unwrapInnermostStatementOfLabel:()=>Ij,updateErrorForNoInputFiles:()=>E5,updateLanguageServiceSourceFile:()=>kY,updateMissingFilePathsWatch:()=>hJ,updateResolutionField:()=>ZR,updateSharedExtendedConfigFileWatcher:()=>pF,updateSourceFile:()=>qH,updateWatchingWildcardDirectories:()=>kw,usesExtensionsOnImports:()=>Ooe,usingSingleLineStringWriter:()=>bC,utf16EncodeAsString:()=>Bx,validateLocaleAndSetLanguage:()=>B1e,valuesHelper:()=>w7,version:()=>Te,versionMajorMinor:()=>_e,visitArray:()=>xw,visitCommaListElements:()=>Rw,visitEachChild:()=>An,visitFunctionBody:()=>rf,visitIterationBody:()=>Id,visitLexicalEnvironment:()=>Gq,visitNode:()=>rt,visitNodes:()=>Bn,visitParameterList:()=>xl,walkUpBindingElementsAndPatterns:()=>Vx,walkUpLexicalEnvironments:()=>yle,walkUpOuterExpressions:()=>Yae,walkUpParenthesizedExpressions:()=>Fv,walkUpParenthesizedTypes:()=>KL,walkUpParenthesizedTypesAndGetParentAndChild:()=>Fie,whitespaceOrMapCommentRegExp:()=>X5,writeCommentRange:()=>SR,writeFile:()=>FC,writeFileEnsuringDirectories:()=>rU,zipWith:()=>Un});var lb=A({"src/server/_namespaces/ts.ts"(){"use strict";ia(),Kw(),ci(),$Q(),sT()}}),Pwe={};X(Pwe,{ActionInvalidate:()=>qw,ActionPackageInstalled:()=>Jw,ActionSet:()=>Hw,ActionWatchTypingLocations:()=>rP,Arguments:()=>_K,AutoImportProviderProject:()=>dZ,AuxiliaryProject:()=>cZ,CharRangeSection:()=>AZ,CloseFileWatcherEvent:()=>Z9,CommandNames:()=>Qhe,ConfigFileDiagEvent:()=>K9,ConfiguredProject:()=>pZ,CreateDirectoryWatcherEvent:()=>Q9,CreateFileWatcherEvent:()=>$9,Errors:()=>ny,EventBeginInstallTypes:()=>BF,EventEndInstallTypes:()=>GF,EventInitializationFailed:()=>mK,EventTypesRegistry:()=>zF,ExternalProject:()=>G9,GcTimer:()=>nZ,InferredProject:()=>lZ,LargeFileReferencedEvent:()=>J9,LineIndex:()=>PP,LineLeaf:()=>m4,LineNode:()=>GI,LogLevel:()=>QQ,Msg:()=>ZQ,OpenFileInfoTelemetryEvent:()=>hZ,Project:()=>aT,ProjectInfoTelemetryEvent:()=>Y9,ProjectKind:()=>CP,ProjectLanguageServiceStateEvent:()=>X9,ProjectLoadingFinishEvent:()=>q9,ProjectLoadingStartEvent:()=>H9,ProjectReferenceProjectLoadKind:()=>yZ,ProjectService:()=>bZ,ProjectsUpdatedInBackgroundEvent:()=>d4,ScriptInfo:()=>oZ,ScriptVersionCache:()=>rz,Session:()=>ege,TextStorage:()=>iZ,ThrottledOperations:()=>tZ,TypingsCache:()=>aZ,TypingsInstallerAdapter:()=>rge,allFilesAreJsOrDts:()=>Nhe,allRootFilesAreJsOrDts:()=>Che,asNormalizedPath:()=>iwe,convertCompilerOptions:()=>V9,convertFormatOptions:()=>G2,convertScriptKindName:()=>mZ,convertTypeAcquisition:()=>Lhe,convertUserPreferences:()=>khe,convertWatchOptions:()=>u4,countEachFileTypes:()=>l4,createInstallTypingsRequest:()=>lhe,createModuleSpecifierCache:()=>Uhe,createNormalizedPathMap:()=>owe,createPackageJsonCache:()=>Hhe,createSortedArray:()=>fhe,emptyArray:()=>hc,findArgument:()=>qxe,forEachResolvedProjectReferenceProject:()=>V2,formatDiagnosticToProtocol:()=>f4,formatMessage:()=>qhe,getBaseConfigFileName:()=>eZ,getLocationInNewDocument:()=>Yhe,hasArgument:()=>Hxe,hasNoTypeScriptSource:()=>Phe,indent:()=>nP,isBackgroundProject:()=>c4,isConfigFile:()=>Bhe,isConfiguredProject:()=>k0,isDynamicFileName:()=>s4,isExternalProject:()=>sZ,isInferredProject:()=>B2,isInferredProjectName:()=>che,makeAutoImportProviderProjectName:()=>dhe,makeAuxiliaryProjectName:()=>phe,makeInferredProjectName:()=>uhe,maxFileSize:()=>U9,maxProgramSizeForNonTsFiles:()=>j9,normalizedPathToPath:()=>a4,nowString:()=>Jxe,nullCancellationToken:()=>$he,nullTypingsInstaller:()=>B9,projectContainsInfoDirectly:()=>zI,protocol:()=>Dhe,removeSorted:()=>awe,stringifyIndented:()=>D0,toEvent:()=>Jhe,toNormalizedPath:()=>pl,tryConvertScriptKindName:()=>fZ,typingsInstaller:()=>ahe,updateProjectIfDirty:()=>Gp});var Cat=A({"src/typescript/_namespaces/ts.server.ts"(){"use strict";VF(),sT()}}),Mwe={};X(Mwe,{ANONYMOUS:()=>MW,AccessFlags:()=>jG,AssertionLevel:()=>mG,AssignmentDeclarationKind:()=>QG,AssignmentKind:()=>BU,Associativity:()=>VU,BreakpointResolver:()=>GY,BuilderFileEmit:()=>HJ,BuilderProgramKind:()=>qJ,BuilderState:()=>Pm,BundleFileSectionKind:()=>hV,CallHierarchy:()=>PI,CharacterCodes:()=>cV,CheckFlags:()=>WG,CheckMode:()=>H5,ClassificationType:()=>kK,ClassificationTypeNames:()=>LK,CommentDirectiveType:()=>TG,Comparison:()=>Be,CompletionInfoFlags:()=>xK,CompletionTriggerKind:()=>EK,Completions:()=>OI,ContainerFlags:()=>kq,ContextFlags:()=>CG,Debug:()=>C,DiagnosticCategory:()=>FM,Diagnostics:()=>f,DocumentHighlights:()=>wW,ElementFlags:()=>VG,EmitFlags:()=>t6,EmitHint:()=>fV,EmitOnly:()=>IG,EndOfLineState:()=>CK,EnumKind:()=>FG,ExitStatus:()=>xG,ExportKind:()=>VX,Extension:()=>uV,ExternalEmitHelpers:()=>pV,FileIncludeKind:()=>q8,FilePreprocessingDiagnosticsKind:()=>AG,FileSystemEntryKind:()=>SV,FileWatcherEventKind:()=>EV,FindAllReferences:()=>Os,FlattenLevel:()=>Qq,FlowFlags:()=>OM,ForegroundColorEscapeSequences:()=>FJ,FunctionFlags:()=>GU,GeneratedIdentifierFlags:()=>H8,GetLiteralTextFlags:()=>FU,GoToDefinition:()=>w2,HighlightSpanKind:()=>TK,IdentifierNameMap:()=>bI,IdentifierNameMultiMap:()=>$q,ImportKind:()=>GX,ImportsNotUsedAsValues:()=>iV,IndentStyle:()=>AK,IndexFlags:()=>UG,IndexKind:()=>JG,InferenceFlags:()=>YG,InferencePriority:()=>XG,InlayHintKind:()=>SK,InlayHints:()=>LQ,InternalEmitFlags:()=>dV,InternalSymbolName:()=>zG,InvalidatedProjectKind:()=>fK,JSDocParsingMode:()=>yV,JsDoc:()=>L0,JsTyping:()=>B_,JsxEmit:()=>rV,JsxFlags:()=>EG,JsxReferenceKind:()=>HG,LanguageServiceMode:()=>vK,LanguageVariant:()=>sV,LexicalEnvironmentFlags:()=>_V,ListFormat:()=>gV,LogLevel:()=>hG,MemberOverrideStatus:()=>RG,ModifierFlags:()=>j8,ModuleDetectionKind:()=>ZG,ModuleInstanceState:()=>Lq,ModuleKind:()=>tC,ModuleResolutionKind:()=>Fx,ModuleSpecifierEnding:()=>$U,NavigateTo:()=>Ade,NavigationBar:()=>kde,NewLineKind:()=>oV,NodeBuilderFlags:()=>NG,NodeCheckFlags:()=>BG,NodeFactoryFlags:()=>oH,NodeFlags:()=>V8,NodeResolutionFeatures:()=>Nq,ObjectFlags:()=>Y8,OperationCanceledException:()=>Ox,OperatorPrecedence:()=>jU,OrganizeImports:()=>Mm,OrganizeImportsMode:()=>bK,OuterExpressionKinds:()=>mV,OutliningElementsCollector:()=>FQ,OutliningSpanKind:()=>RK,OutputFileType:()=>DK,PackageJsonAutoImportPreference:()=>gK,PackageJsonDependencyGroup:()=>hK,PatternMatchKind:()=>OW,PollingInterval:()=>n6,PollingWatchKind:()=>nV,PragmaKindFlags:()=>vV,PrivateIdentifierKind:()=>pH,ProcessLevel:()=>nJ,ProgramUpdateLevel:()=>vJ,QuotePreference:()=>wX,RelationComparisonResult:()=>U8,Rename:()=>L9,ScriptElementKind:()=>PK,ScriptElementKindModifier:()=>MK,ScriptKind:()=>Q8,ScriptSnapshot:()=>UF,ScriptTarget:()=>aV,SemanticClassificationFormat:()=>yK,SemanticMeaning:()=>kX,SemicolonPreference:()=>IK,SignatureCheckMode:()=>q5,SignatureFlags:()=>$8,SignatureHelp:()=>QO,SignatureKind:()=>qG,SmartSelectionRange:()=>BQ,SnippetKind:()=>e6,SortKind:()=>fG,StructureIsReused:()=>J8,SymbolAccessibility:()=>LG,SymbolDisplay:()=>ty,SymbolDisplayPartKind:()=>Xw,SymbolFlags:()=>K8,SymbolFormatFlags:()=>MG,SyntaxKind:()=>G8,SyntheticSymbolKind:()=>kG,Ternary:()=>$G,ThrottledCancellationToken:()=>BY,TokenClass:()=>NK,TokenFlags:()=>SG,TransformFlags:()=>Z8,TypeFacts:()=>U5,TypeFlags:()=>X8,TypeFormatFlags:()=>PG,TypeMapKind:()=>KG,TypePredicateKind:()=>wG,TypeReferenceSerializationKind:()=>OG,UnionReduction:()=>DG,UpToDateStatusType:()=>cK,VarianceFlags:()=>GG,Version:()=>vm,VersionRange:()=>LM,WatchDirectoryFlags:()=>lV,WatchDirectoryKind:()=>tV,WatchFileKind:()=>eV,WatchLogLevel:()=>yJ,WatchType:()=>kc,accessPrivateIdentifier:()=>Ele,addDisposableResourceHelper:()=>j7,addEmitFlags:()=>M_,addEmitHelper:()=>XA,addEmitHelpers:()=>Vg,addInternalEmitFlags:()=>JA,addNodeFactoryPatcher:()=>mSe,addObjectAllocatorPatcher:()=>Toe,addRange:()=>Jr,addRelatedInfo:()=>ka,addSyntheticLeadingComment:()=>mN,addSyntheticTrailingComment:()=>h7,addToSeen:()=>xm,advancedAsyncSuperHelper:()=>Ok,affectsDeclarationPathOptionDeclarations:()=>pq,affectsEmitOptionDeclarations:()=>dq,allKeysStartWithDot:()=>F5,altDirectorySeparator:()=>HM,and:()=>w8,append:()=>In,appendIfUnique:()=>Ng,arrayFrom:()=>Vo,arrayIsEqualTo:()=>Jm,arrayIsHomogeneous:()=>joe,arrayIsSorted:()=>R8,arrayOf:()=>hne,arrayReverseIterator:()=>ZB,arrayToMap:()=>g1,arrayToMultiMap:()=>NM,arrayToNumericMap:()=>vne,arraysEqual:()=>Ma,assertType:()=>K0e,assign:()=>Cx,assignHelper:()=>T7,asyncDelegator:()=>I7,asyncGeneratorHelper:()=>A7,asyncSuperHelper:()=>wk,asyncValues:()=>x7,attachFileToDiagnostics:()=>VA,awaitHelper:()=>YA,awaiterHelper:()=>D7,base64decode:()=>poe,base64encode:()=>doe,binarySearch:()=>xv,binarySearchKey:()=>_A,bindSourceFile:()=>Yse,breakIntoCharacterSpans:()=>gde,breakIntoWordSpans:()=>vde,buildLinkParts:()=>Gue,buildOpts:()=>x5,buildOverload:()=>Qke,bundlerModuleNameResolver:()=>Bse,canBeConvertedToAsync:()=>ZX,canHaveDecorators:()=>US,canHaveExportModifier:()=>gk,canHaveFlowNode:()=>HL,canHaveIllegalDecorators:()=>GH,canHaveIllegalModifiers:()=>ese,canHaveIllegalType:()=>jSe,canHaveIllegalTypeParameters:()=>Zae,canHaveJSDoc:()=>qL,canHaveLocals:()=>ph,canHaveModifiers:()=>Cm,canHaveSymbol:()=>A_,canJsonReportNoInputFiles:()=>LN,canProduceDiagnostics:()=>oF,canUsePropertyAccess:()=>LU,canWatchAffectingLocation:()=>Dce,canWatchAtTypes:()=>Rce,canWatchDirectoryOrFile:()=>xF,cartesianProduct:()=>Dne,cast:()=>aa,chainBundle:()=>Nm,chainDiagnosticMessages:()=>Uo,changeAnyExtension:()=>jM,changeCompilerHostLikeToUseCache:()=>Fw,changeExtension:()=>m0,changeFullExtension:()=>Jne,changesAffectModuleResolution:()=>M6,changesAffectingProgramStructure:()=>Xre,childIsDecorated:()=>xC,classElementOrClassElementParameterIsDecorated:()=>xj,classHasClassThisAssignment:()=>Zq,classHasDeclaredOrExplicitlyAssignedName:()=>eJ,classHasExplicitlyAssignedName:()=>nF,classOrConstructorParameterIsDecorated:()=>Ov,classPrivateFieldGetHelper:()=>B7,classPrivateFieldInHelper:()=>V7,classPrivateFieldSetHelper:()=>G7,classicNameResolver:()=>qse,classifier:()=>Cpe,cleanExtendedConfigCache:()=>fF,clear:()=>Gi,clearMap:()=>ep,clearSharedExtendedConfigFileWatcher:()=>_J,climbPastPropertyAccess:()=>qF,climbPastPropertyOrElementAccess:()=>mue,clone:()=>iG,cloneCompilerOptions:()=>ZK,closeFileWatcher:()=>$m,closeFileWatcherOf:()=>Cf,codefix:()=>Fu,collapseTextChangeRangesAcrossMultipleVersions:()=>sre,collectExternalModuleInfo:()=>Jq,combine:()=>Dx,combinePaths:()=>Zr,commentPragmas:()=>WM,commonOptionsWithBuild:()=>pw,commonPackageFolders:()=>qU,compact:()=>CM,compareBooleans:()=>Ay,compareDataObjects:()=>hU,compareDiagnostics:()=>XC,compareDiagnosticsSkipRelatedInformation:()=>F3,compareEmitHelpers:()=>yae,compareNumberOfDirectorySeparators:()=>mk,comparePaths:()=>Pg,comparePathsCaseInsensitive:()=>E1e,comparePathsCaseSensitive:()=>b1e,comparePatternKeys:()=>Dq,compareProperties:()=>Ane,compareStringsCaseInsensitive:()=>L8,compareStringsCaseInsensitiveEslintCompatible:()=>Ene,compareStringsCaseSensitive:()=>ju,compareStringsCaseSensitiveUI:()=>MM,compareTextSpans:()=>M8,compareValues:()=>tl,compileOnSaveCommandLineOption:()=>uw,compilerOptionsAffectDeclarationPath:()=>Loe,compilerOptionsAffectEmit:()=>Moe,compilerOptionsAffectSemanticDiagnostics:()=>Poe,compilerOptionsDidYouMeanDiagnostics:()=>_w,compilerOptionsIndicateEsModules:()=>oX,compose:()=>q0e,computeCommonSourceDirectoryOfFilenames:()=>ace,computeLineAndCharacterOfPosition:()=>zx,computeLineOfPosition:()=>oC,computeLineStarts:()=>TA,computePositionOfLineAndCharacter:()=>c6,computeSignature:()=>YS,computeSignatureWithDiagnostics:()=>GJ,computeSuggestionDiagnostics:()=>YX,computedOptions:()=>mc,concatenate:()=>xo,concatenateDiagnosticMessageChains:()=>Roe,consumesNodeCoreModules:()=>IW,contains:()=>wr,containsIgnoredPath:()=>iN,containsObjectRestOrSpread:()=>tw,containsParseError:()=>$x,containsPath:()=>ym,convertCompilerOptionsForTelemetry:()=>Tse,convertCompilerOptionsFromJson:()=>qTe,convertJsonOption:()=>HS,convertToBase64:()=>uoe,convertToJson:()=>sw,convertToObject:()=>vse,convertToOptionsWithAbsolutePaths:()=>oq,convertToRelativePath:()=>iC,convertToTSConfig:()=>MTe,convertTypeAcquisitionFromJson:()=>JTe,copyComments:()=>eT,copyEntries:()=>L6,copyLeadingComments:()=>S2,copyProperties:()=>oG,copyTrailingAsLeadingComments:()=>_O,copyTrailingComments:()=>pP,couldStartTrivia:()=>$ne,countWhere:()=>au,createAbstractBuilder:()=>ZIe,createAccessorPropertyBackingField:()=>jH,createAccessorPropertyGetRedirector:()=>lse,createAccessorPropertySetRedirector:()=>cse,createBaseNodeFactory:()=>rae,createBinaryExpressionTrampoline:()=>m5,createBindingHelper:()=>wR,createBuildInfo:()=>Mw,createBuilderProgram:()=>VJ,createBuilderProgramUsingProgramBuildInfo:()=>Ice,createBuilderStatusReporter:()=>Vce,createCacheWithRedirects:()=>bq,createCacheableExportInfoMap:()=>WX,createCachedDirectoryStructureHost:()=>dF,createClassNamedEvaluationHelperBlock:()=>Rle,createClassThisAssignmentBlock:()=>Ile,createClassifier:()=>hRe,createCommentDirectivesMap:()=>tie,createCompilerDiagnostic:()=>Vl,createCompilerDiagnosticForInvalidCustomType:()=>fse,createCompilerDiagnosticFromMessageChain:()=>O3,createCompilerHost:()=>sce,createCompilerHostFromProgramHost:()=>oK,createCompilerHostWorker:()=>SJ,createDetachedDiagnostic:()=>RR,createDiagnosticCollection:()=>vR,createDiagnosticForFileFromMessageChain:()=>Ej,createDiagnosticForNode:()=>Or,createDiagnosticForNodeArray:()=>eR,createDiagnosticForNodeArrayFromMessageChain:()=>AL,createDiagnosticForNodeFromMessageChain:()=>Og,createDiagnosticForNodeInSourceFile:()=>Yf,createDiagnosticForRange:()=>fie,createDiagnosticMessageChainFromDiagnostic:()=>pie,createDiagnosticReporter:()=>Vw,createDocumentPositionMapper:()=>_le,createDocumentRegistry:()=>ade,createDocumentRegistryInternal:()=>HX,createEmitAndSemanticDiagnosticsBuilderProgram:()=>JJ,createEmitHelperFactory:()=>vae,createEmptyExports:()=>Jk,createExpressionForJsxElement:()=>qae,createExpressionForJsxFragment:()=>Jae,createExpressionForObjectLiteralElementLike:()=>Kae,createExpressionForPropertyName:()=>wH,createExpressionFromEntityName:()=>Kk,createExternalHelpersImportDeclarationIfNeeded:()=>WH,createFileDiagnostic:()=>Qc,createFileDiagnosticFromMessageChain:()=>V6,createForOfBindingStatement:()=>kH,createGetCanonicalFileName:()=>Pu,createGetSourceFile:()=>bJ,createGetSymbolAccessibilityDiagnosticForNode:()=>Jv,createGetSymbolAccessibilityDiagnosticForNodeName:()=>$le,createGetSymbolWalker:()=>$se,createIncrementalCompilerHost:()=>sK,createIncrementalProgram:()=>Bce,createInputFiles:()=>hSe,createInputFilesWithFilePaths:()=>rH,createInputFilesWithFileTexts:()=>iH,createJsxFactoryExpression:()=>LH,createLanguageService:()=>Tpe,createLanguageServiceSourceFile:()=>a9,createMemberAccessForPropertyName:()=>jS,createModeAwareCache:()=>vI,createModeAwareCacheKey:()=>WN,createModuleNotFoundChain:()=>k6,createModuleResolutionCache:()=>e2,createModuleResolutionLoader:()=>DJ,createModuleResolutionLoaderUsingGlobalCache:()=>Mce,createModuleSpecifierResolutionHost:()=>ZS,createMultiMap:()=>Xp,createNodeConverters:()=>oae,createNodeFactory:()=>Rk,createOptionNameMap:()=>g5,createOverload:()=>YQ,createPackageJsonImportFilter:()=>_P,createPackageJsonInfo:()=>xX,createParenthesizerRules:()=>iae,createPatternMatcher:()=>dde,createPrependNodes:()=>wJ,createPrinter:()=>x0,createPrinterWithDefaults:()=>fJ,createPrinterWithRemoveComments:()=>oE,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>mJ,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>Lw,createProgram:()=>vF,createProgramHost:()=>aK,createPropertyNameNodeForIdentifierOrLiteral:()=>e7,createQueue:()=>PM,createRange:()=>Tf,createRedirectedBuilderProgram:()=>UJ,createResolutionCache:()=>XJ,createRuntimeTypeSerializer:()=>Mle,createScanner:()=>Mv,createSemanticDiagnosticsBuilderProgram:()=>QIe,createSet:()=>aG,createSolutionBuilder:()=>_xe,createSolutionBuilderHost:()=>fxe,createSolutionBuilderWithWatch:()=>hxe,createSolutionBuilderWithWatchHost:()=>mxe,createSortedArray:()=>QB,createSourceFile:()=>rw,createSourceMapGenerator:()=>dle,createSourceMapSource:()=>gSe,createSuperAccessVariableStatement:()=>iF,createSymbolTable:()=>ua,createSymlinkCache:()=>TU,createSystemWatchFunctions:()=>jne,createTextChange:()=>aO,createTextChangeFromStartLength:()=>aW,createTextChangeRange:()=>tL,createTextRangeFromNode:()=>nX,createTextRangeFromSpan:()=>oW,createTextSpan:()=>vu,createTextSpanFromBounds:()=>dc,createTextSpanFromNode:()=>Rd,createTextSpanFromRange:()=>ib,createTextSpanFromStringLiteralLikeContent:()=>tX,createTextWriter:()=>ik,createTokenRange:()=>fU,createTypeChecker:()=>ole,createTypeReferenceDirectiveResolutionCache:()=>k5,createTypeReferenceResolutionLoader:()=>_F,createUnparsedSourceFile:()=>nH,createWatchCompilerHost:()=>uxe,createWatchCompilerHostOfConfigFile:()=>Fce,createWatchCompilerHostOfFilesAndCompilerOptions:()=>Wce,createWatchFactory:()=>iK,createWatchHost:()=>rK,createWatchProgram:()=>dxe,createWatchStatusReporter:()=>Lce,createWriteFileMeasuringIO:()=>EJ,declarationNameToString:()=>Ds,decodeMappings:()=>Uq,decodedTextSpanIntersectsWith:()=>eL,decorateHelper:()=>v7,deduplicate:()=>h1,defaultIncludeSpec:()=>C5,defaultInitCompilerOptions:()=>R5,defaultMaximumTruncationLength:()=>Ek,detectSortCaseSensitivity:()=>YD,diagnosticCategoryName:()=>aS,diagnosticToString:()=>nT,directoryProbablyExists:()=>Ym,directorySeparator:()=>il,displayPart:()=>rp,displayPartsToString:()=>OO,disposeEmitNodes:()=>aH,disposeResourcesHelper:()=>U7,documentSpansEqual:()=>uX,dumpTracingLegend:()=>Bne,elementAt:()=>Nv,elideNodes:()=>sse,emitComments:()=>Zie,emitDetachedComments:()=>eoe,emitFiles:()=>lF,emitFilesAndReportErrors:()=>NF,emitFilesAndReportErrorsAndGetExitStatus:()=>Oce,emitModuleKindIsNonNodeESM:()=>W3,emitNewLineBeforeLeadingCommentOfPosition:()=>Qie,emitNewLineBeforeLeadingComments:()=>Yie,emitNewLineBeforeLeadingCommentsOfPosition:()=>$ie,emitSkippedWithNoDiagnostics:()=>TF,emitUsingBuildInfo:()=>nce,emptyArray:()=>et,emptyFileSystemEntries:()=>p7,emptyMap:()=>z8,emptyOptions:()=>Pf,emptySet:()=>Nne,endsWith:()=>Sl,ensurePathIsNonModuleName:()=>v1,ensureScriptKind:()=>J3,ensureTrailingDirectorySeparator:()=>zc,entityNameToString:()=>fp,enumerateInsertsAndDeletes:()=>F8,equalOwnProperties:()=>gne,equateStringsCaseInsensitive:()=>Yb,equateStringsCaseSensitive:()=>rS,equateValues:()=>Cv,esDecorateHelper:()=>E7,escapeJsxAttributeString:()=>Zj,escapeLeadingUnderscores:()=>ml,escapeNonAsciiString:()=>rk,escapeSnippetText:()=>G1,escapeString:()=>rg,escapeTemplateSubstitution:()=>$j,every:()=>Jn,expandPreOrPostfixIncrementOrDecrementExpression:()=>l5,explainFiles:()=>QJ,explainIfFileIsRedirectAndImpliedFormat:()=>ZJ,exportAssignmentIsAlias:()=>mR,exportStarHelper:()=>z7,expressionResultIsUnused:()=>Hoe,extend:()=>P8,extendsHelper:()=>C7,extensionFromPath:()=>ZC,extensionIsTS:()=>Y3,extensionsNotSupportingExtensionlessResolution:()=>xk,externalHelpersModuleNameText:()=>Hy,factory:()=>k,fileExtensionIs:()=>Tl,fileExtensionIsOneOf:()=>Ec,fileIncludeReasonToDiagnostics:()=>nK,fileShouldUseJavaScriptRequire:()=>LX,filter:()=>tr,filterMutate:()=>Bi,filterSemanticDiagnostics:()=>yF,find:()=>vn,findAncestor:()=>zn,findBestPatternMatch:()=>uG,findChildOfKind:()=>bs,findComputedPropertyNameCacheAssignment:()=>_5,findConfigFile:()=>oce,findContainingList:()=>$F,findDiagnosticForNode:()=>Que,findFirstNonJsxWhitespaceToken:()=>yue,findIndex:()=>ri,findLast:()=>Qr,findLastIndex:()=>to,findListItemInfo:()=>vue,findMap:()=>Ga,findModifier:()=>y2,findNextToken:()=>lE,findPackageJson:()=>Yue,findPackageJsons:()=>IX,findPrecedingMatchingToken:()=>rW,findPrecedingToken:()=>Ac,findSuperStatementIndexPath:()=>Z5,findTokenOnLeftOfPosition:()=>eW,findUseStrictPrologue:()=>FH,first:()=>Ha,firstDefined:()=>Zt,firstDefinedIterator:()=>ir,firstIterator:()=>tG,firstOrOnly:()=>NX,firstOrUndefined:()=>Xc,firstOrUndefinedIterator:()=>D8,fixupCompilerOptions:()=>tY,flatMap:()=>Zi,flatMapIterator:()=>qf,flatMapToMutable:()=>$d,flatten:()=>ts,flattenCommaList:()=>use,flattenDestructuringAssignment:()=>JS,flattenDestructuringBinding:()=>iE,flattenDiagnosticMessageText:()=>W_,forEach:()=>Ke,forEachAncestor:()=>Yre,forEachAncestorDirectory:()=>Em,forEachChild:()=>Ho,forEachChildRecursively:()=>PN,forEachEmittedFile:()=>cJ,forEachEnclosingBlockScopeContainer:()=>cie,forEachEntry:()=>Bc,forEachExternalModuleToImportFrom:()=>BX,forEachImportClauseDeclaration:()=>d3,forEachKey:()=>mh,forEachLeadingCommentRange:()=>XM,forEachNameInAccessChainWalkingLeft:()=>Eoe,forEachPropertyAssignment:()=>iR,forEachResolvedProjectReference:()=>NJ,forEachReturnStatement:()=>R1,forEachRight:()=>Gt,forEachTrailingCommentRange:()=>YM,forEachTsConfigPropArray:()=>DL,forEachUnique:()=>pX,forEachYieldExpression:()=>_ie,forSomeAncestorDirectory:()=>zEe,formatColorAndReset:()=>aE,formatDiagnostic:()=>TJ,formatDiagnostics:()=>LIe,formatDiagnosticsWithColorAndContext:()=>lce,formatGeneratedName:()=>E0,formatGeneratedNamePart:()=>XR,formatLocation:()=>AJ,formatMessage:()=>bU,formatStringFromArgs:()=>ag,formatting:()=>wc,fullTripleSlashAMDReferencePathRegEx:()=>zU,fullTripleSlashReferencePathRegEx:()=>WU,generateDjb2Hash:()=>nC,generateTSConfig:()=>FTe,generatorHelper:()=>O7,getAdjustedReferenceLocation:()=>JK,getAdjustedRenameLocation:()=>ZF,getAliasDeclarationFromName:()=>Bj,getAllAccessorDeclarations:()=>RS,getAllDecoratorsOfClass:()=>Xq,getAllDecoratorsOfClassElement:()=>tF,getAllJSDocTags:()=>g6,getAllJSDocTagsOfKind:()=>Y1e,getAllKeys:()=>U0e,getAllProjectOutputs:()=>sF,getAllSuperTypeNodes:()=>PC,getAllUnscopedEmitHelpers:()=>dH,getAllowJSCompilerOption:()=>qy,getAllowSyntheticDefaultImports:()=>NS,getAncestor:()=>p0,getAnyExtensionFromPath:()=>Wx,getAreDeclarationMapsEnabled:()=>Tk,getAssignedExpandoInitializer:()=>PA,getAssignedName:()=>_6,getAssignedNameOfIdentifier:()=>HN,getAssignmentDeclarationKind:()=>Wl,getAssignmentDeclarationPropertyAccessKind:()=>BL,getAssignmentTargetKind:()=>wA,getAutomaticTypeDirectiveNames:()=>M5,getBaseFileName:()=>rc,getBinaryOperatorPrecedence:()=>nk,getBuildInfo:()=>cF,getBuildInfoFileVersionMap:()=>jJ,getBuildInfoText:()=>tce,getBuildOrderFromAnyBuildOrder:()=>wF,getBuilderCreationParameters:()=>AF,getBuilderFileEmit:()=>rb,getCheckFlags:()=>Al,getClassExtendsHeritageElement:()=>M1,getClassLikeDeclarationOfSymbol:()=>Bg,getCombinedLocalAndExportSymbolFlags:()=>AR,getCombinedModifierFlags:()=>t0,getCombinedNodeFlags:()=>Lv,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>kV,getCommentRange:()=>L_,getCommonSourceDirectory:()=>QN,getCommonSourceDirectoryOfConfig:()=>a2,getCompilerOptionValue:()=>B3,getCompilerOptionsDiffValue:()=>wTe,getConditions:()=>tb,getConfigFileParsingDiagnostics:()=>XS,getConstantValue:()=>dae,getContainerFlags:()=>Mq,getContainerNode:()=>QS,getContainingClass:()=>su,getContainingClassExcludingClassDecorators:()=>$6,getContainingClassStaticBlock:()=>Aie,getContainingFunction:()=>zp,getContainingFunctionDeclaration:()=>Tie,getContainingFunctionOrClassStaticBlock:()=>Y6,getContainingNodeArray:()=>qoe,getContainingObjectLiteralElement:()=>FO,getContextualTypeFromParent:()=>gW,getContextualTypeFromParentOrAncestorTypeNode:()=>QF,getCurrentTime:()=>Uw,getDeclarationDiagnostics:()=>Qle,getDeclarationEmitExtensionForPath:()=>b3,getDeclarationEmitOutputFilePath:()=>Hie,getDeclarationEmitOutputFilePathWorker:()=>y3,getDeclarationFileExtension:()=>JH,getDeclarationFromName:()=>NC,getDeclarationModifierFlagsFromSymbol:()=>If,getDeclarationOfKind:()=>dl,getDeclarationsOfKind:()=>Jre,getDeclaredExpandoInitializer:()=>OL,getDecorators:()=>Ny,getDefaultCompilerOptions:()=>o9,getDefaultExportInfoWorker:()=>kW,getDefaultFormatCodeSettings:()=>jF,getDefaultLibFileName:()=>QM,getDefaultLibFilePath:()=>Ape,getDefaultLikeExportInfo:()=>LW,getDiagnosticText:()=>ITe,getDiagnosticsWithinSpan:()=>Zue,getDirectoryPath:()=>li,getDirectoryToWatchFailedLookupLocation:()=>KJ,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>Nce,getDocumentPositionMapper:()=>XX,getDocumentSpansEqualityComparer:()=>dX,getESModuleInterop:()=>vh,getEditsForFileRename:()=>lde,getEffectiveBaseTypeNode:()=>x_,getEffectiveConstraintOfTypeParameter:()=>Ux,getEffectiveContainerForJSDocTemplateTag:()=>p3,getEffectiveImplementsTypeNodes:()=>_R,getEffectiveInitializer:()=>wL,getEffectiveJSDocHost:()=>d0,getEffectiveModifierFlags:()=>cd,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>ioe,getEffectiveModifierFlagsNoCache:()=>ooe,getEffectiveReturnTypeNode:()=>tm,getEffectiveSetAccessorTypeAnnotationNode:()=>Xie,getEffectiveTypeAnnotationNode:()=>yu,getEffectiveTypeParameterDeclarations:()=>Py,getEffectiveTypeRoots:()=>FN,getElementOrPropertyAccessArgumentExpressionOrName:()=>u3,getElementOrPropertyAccessName:()=>Fg,getElementsOfBindingOrAssignmentPattern:()=>KR,getEmitDeclarations:()=>xf,getEmitFlags:()=>Va,getEmitHelpers:()=>g7,getEmitModuleDetectionKind:()=>UU,getEmitModuleKind:()=>ku,getEmitModuleResolutionKind:()=>dd,getEmitScriptTarget:()=>as,getEmitStandardClassFields:()=>Noe,getEnclosingBlockScopeContainer:()=>_h,getEnclosingContainer:()=>bj,getEncodedSemanticClassifications:()=>jX,getEncodedSyntacticClassifications:()=>UX,getEndLinePosition:()=>bL,getEntityNameFromTypeNode:()=>PL,getEntrypointsFromPackageJsonInfo:()=>Iq,getErrorCountForSummary:()=>DF,getErrorSpanForNode:()=>hS,getErrorSummaryText:()=>kce,getEscapedTextOfIdentifierOrLiteral:()=>kC,getEscapedTextOfJsxAttributeName:()=>lN,getEscapedTextOfJsxNamespacedName:()=>HA,getExpandoInitializer:()=>c0,getExportAssignmentExpression:()=>Gj,getExportInfoMap:()=>bO,getExportNeedsImportStarHelper:()=>hle,getExpressionAssociativity:()=>Kj,getExpressionPrecedence:()=>OC,getExternalHelpersModuleName:()=>Yk,getExternalModuleImportEqualsDeclarationExpression:()=>RC,getExternalModuleName:()=>uR,getExternalModuleNameFromDeclaration:()=>jie,getExternalModuleNameFromPath:()=>tU,getExternalModuleNameLiteral:()=>mI,getExternalModuleRequireArgument:()=>Dj,getFallbackOptions:()=>Ow,getFileEmitOutput:()=>_ce,getFileMatcherPatterns:()=>q3,getFileNamesFromConfigSpecs:()=>kN,getFileWatcherEventKind:()=>bV,getFilesInErrorForSummary:()=>CF,getFirstConstructorWithBody:()=>ig,getFirstIdentifier:()=>Bp,getFirstNonSpaceCharacterPosition:()=>Uue,getFirstProjectOutput:()=>pJ,getFixableErrorSpanExpression:()=>DX,getFormatCodeSettingsForWriting:()=>CW,getFullWidth:()=>vL,getFunctionFlags:()=>Gc,getHeritageClause:()=>QL,getHostSignatureFromJSDoc:()=>u0,getIdentifierAutoGenerate:()=>SSe,getIdentifierGeneratedImportReference:()=>gae,getIdentifierTypeArguments:()=>PS,getImmediatelyInvokedFunctionExpression:()=>vS,getImpliedNodeFormatForFile:()=>Bw,getImpliedNodeFormatForFileWorker:()=>LJ,getImportNeedsImportDefaultHelper:()=>qq,getImportNeedsImportStarHelper:()=>$5,getIndentSize:()=>bR,getIndentString:()=>g3,getInferredLibraryNameResolveFrom:()=>gF,getInitializedVariables:()=>qC,getInitializerOfBinaryExpression:()=>Lj,getInitializerOfBindingOrAssignmentElement:()=>Qk,getInterfaceBaseTypeNodes:()=>MC,getInternalEmitFlags:()=>Tm,getInvokedExpression:()=>e3,getIsolatedModules:()=>im,getJSDocAugmentsTag:()=>hre,getJSDocClassTag:()=>OV,getJSDocCommentRanges:()=>Tj,getJSDocCommentsAndTags:()=>wj,getJSDocDeprecatedTag:()=>FV,getJSDocDeprecatedTagNoCache:()=>Tre,getJSDocEnumTag:()=>WV,getJSDocHost:()=>SS,getJSDocImplementsTags:()=>gre,getJSDocOverloadTags:()=>Fj,getJSDocOverrideTagNoCache:()=>Sre,getJSDocParameterTags:()=>jx,getJSDocParameterTagsNoCache:()=>pre,getJSDocPrivateTag:()=>H1e,getJSDocPrivateTagNoCache:()=>yre,getJSDocProtectedTag:()=>q1e,getJSDocProtectedTagNoCache:()=>bre,getJSDocPublicTag:()=>U1e,getJSDocPublicTagNoCache:()=>vre,getJSDocReadonlyTag:()=>J1e,getJSDocReadonlyTagNoCache:()=>Ere,getJSDocReturnTag:()=>Are,getJSDocReturnType:()=>rL,getJSDocRoot:()=>fR,getJSDocSatisfiesExpressionType:()=>wU,getJSDocSatisfiesTag:()=>zV,getJSDocTags:()=>o0,getJSDocTagsNoCache:()=>X1e,getJSDocTemplateTag:()=>K1e,getJSDocThisTag:()=>h6,getJSDocType:()=>i0,getJSDocTypeAliasName:()=>BH,getJSDocTypeAssertionType:()=>u5,getJSDocTypeParameterDeclarations:()=>A3,getJSDocTypeParameterTags:()=>fre,getJSDocTypeParameterTagsNoCache:()=>mre,getJSDocTypeTag:()=>r0,getJSXImplicitImportBase:()=>V3,getJSXRuntimeImport:()=>j3,getJSXTransformEnabled:()=>G3,getKeyForCompilerOptions:()=>yq,getLanguageVariant:()=>dk,getLastChild:()=>gU,getLeadingCommentRanges:()=>Kh,getLeadingCommentRangesOfNode:()=>Sj,getLeftmostAccessExpression:()=>IR,getLeftmostExpression:()=>xR,getLibraryNameFromLibFileName:()=>PJ,getLineAndCharacterOfPosition:()=>Es,getLineInfo:()=>Vq,getLineOfLocalPosition:()=>WC,getLineOfLocalPositionFromLineMap:()=>IS,getLineStartPositionForPosition:()=>sm,getLineStarts:()=>Mg,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>goe,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>hoe,getLinesBetweenPositions:()=>aC,getLinesBetweenRangeEndAndRangeStart:()=>mU,getLinesBetweenRangeEndPositions:()=>FEe,getLiteralText:()=>nie,getLocalNameForExternalImport:()=>JR,getLocalSymbolForExportDefault:()=>TR,getLocaleSpecificMessage:()=>Bo,getLocaleTimeString:()=>jw,getMappedContextSpan:()=>fX,getMappedDocumentSpan:()=>fW,getMappedLocation:()=>cP,getMatchedFileSpec:()=>eK,getMatchedIncludeSpec:()=>tK,getMeaningFromDeclaration:()=>Yw,getMeaningFromLocation:()=>$S,getMembersOfDeclaration:()=>hie,getModeForFileReference:()=>Ww,getModeForResolutionAtIndex:()=>cce,getModeForUsageLocation:()=>xJ,getModifiedTime:()=>bA,getModifiers:()=>b1,getModuleInstanceState:()=>qg,getModuleNameStringLiteralAt:()=>Gw,getModuleSpecifierEndingPreference:()=>Foe,getModuleSpecifierResolverHost:()=>aX,getNameForExportedSymbol:()=>xW,getNameFromImportAttribute:()=>i7,getNameFromIndexInfo:()=>uie,getNameFromPropertyName:()=>cO,getNameOfAccessExpression:()=>yU,getNameOfCompilerOptionValue:()=>iq,getNameOfDeclaration:()=>Oo,getNameOfExpando:()=>Pj,getNameOfJSDocTypedef:()=>dre,getNameOrArgument:()=>zL,getNameTable:()=>wY,getNamesForExportedSymbol:()=>ede,getNamespaceDeclarationNode:()=>dR,getNewLineCharacter:()=>Gv,getNewLineKind:()=>yO,getNewLineOrDefaultFromHost:()=>Qv,getNewTargetContainer:()=>xie,getNextJSDocCommentLocation:()=>Oj,getNodeForGeneratedName:()=>ew,getNodeId:()=>ss,getNodeKind:()=>sE,getNodeModifiers:()=>aP,getNodeModulePathParts:()=>t7,getNonAssignedNameOfDeclaration:()=>m6,getNonAssignmentOperatorForCompoundAssignment:()=>VN,getNonAugmentationDeclaration:()=>mj,getNonDecoratorTokenPosOfNode:()=>cj,getNormalizedAbsolutePath:()=>bo,getNormalizedAbsolutePathWithoutRoot:()=>xV,getNormalizedPathComponents:()=>VM,getObjectFlags:()=>Wr,getOperator:()=>Yj,getOperatorAssociativity:()=>Xj,getOperatorPrecedence:()=>tk,getOptionFromName:()=>eq,getOptionsForLibraryResolution:()=>Eq,getOptionsNameMap:()=>$R,getOrCreateEmitNode:()=>wu,getOrCreateExternalHelpersModuleNameIfNeeded:()=>Qae,getOrUpdate:()=>mA,getOriginalNode:()=>Nl,getOriginalNodeId:()=>Ou,getOriginalSourceFile:()=>REe,getOutputDeclarationFileName:()=>$N,getOutputDeclarationFileNameWorker:()=>uJ,getOutputExtension:()=>aF,getOutputFileNames:()=>PIe,getOutputJSFileNameWorker:()=>dJ,getOutputPathsFor:()=>YN,getOutputPathsForBundle:()=>XN,getOwnEmitOutputFilePath:()=>Uie,getOwnKeys:()=>Jh,getOwnValues:()=>hA,getPackageJsonInfo:()=>eE,getPackageJsonTypesVersionsPaths:()=>P5,getPackageJsonsVisibleToFile:()=>$ue,getPackageNameFromTypesPackageName:()=>zN,getPackageScopeForPath:()=>bw,getParameterSymbolFromJSDoc:()=>JL,getParameterTypeNode:()=>KEe,getParentNodeInSpan:()=>dO,getParseTreeNode:()=>Lo,getParsedCommandLineOfConfigFile:()=>ow,getPathComponents:()=>Wc,getPathComponentsRelativeTo:()=>DV,getPathFromPathComponents:()=>Ry,getPathUpdater:()=>JX,getPathsBasePath:()=>E3,getPatternFromSpec:()=>koe,getPendingEmitKind:()=>d2,getPositionOfLineAndCharacter:()=>JM,getPossibleGenericSignatures:()=>XK,getPossibleOriginalInputExtensionForExtension:()=>qie,getPossibleTypeArgumentsInfo:()=>YK,getPreEmitDiagnostics:()=>MIe,getPrecedingNonSpaceCharacterPosition:()=>_W,getPrivateIdentifier:()=>Yq,getProperties:()=>Kq,getProperty:()=>C8,getPropertyArrayElementValue:()=>Sie,getPropertyAssignmentAliasLikeExpression:()=>zie,getPropertyNameForPropertyNameNode:()=>TS,getPropertyNameForUniqueESSymbol:()=>IEe,getPropertyNameFromType:()=>rm,getPropertyNameOfBindingOrAssignmentElement:()=>zH,getPropertySymbolFromBindingElement:()=>pW,getPropertySymbolsFromContextualType:()=>s9,getQuoteFromPreference:()=>lX,getQuotePreference:()=>af,getRangesWhere:()=>$B,getRefactorContextSpan:()=>DI,getReferencedFileLocation:()=>ZN,getRegexFromPattern:()=>jy,getRegularExpressionForWildcard:()=>YC,getRegularExpressionsForWildcards:()=>U3,getRelativePathFromDirectory:()=>bm,getRelativePathFromFile:()=>UM,getRelativePathToDirectoryOrUrl:()=>SA,getRenameLocation:()=>mO,getReplacementSpanForContextToken:()=>eX,getResolutionDiagnostic:()=>OJ,getResolutionModeOverride:()=>s2,getResolveJsonModule:()=>h0,getResolvePackageJsonExports:()=>c7,getResolvePackageJsonImports:()=>u7,getResolvedExternalModuleName:()=>v3,getRestIndicatorOfBindingOrAssignmentElement:()=>p5,getRestParameterElementType:()=>Aj,getRightMostAssignedExpression:()=>FL,getRootDeclaration:()=>D_,getRootDirectoryOfResolutionCache:()=>Pce,getRootLength:()=>dh,getRootPathSplitLength:()=>rxe,getScriptKind:()=>vX,getScriptKindFromFileName:()=>K3,getScriptTargetFeatures:()=>s7,getSelectedEffectiveModifierFlags:()=>WA,getSelectedSyntacticModifierFlags:()=>noe,getSemanticClassifications:()=>ide,getSemanticJsxChildren:()=>gR,getSetAccessorTypeAnnotationNode:()=>Jie,getSetAccessorValueParameter:()=>zC,getSetExternalModuleIndicator:()=>pk,getShebang:()=>d6,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>kj,getSingleVariableOfVariableStatement:()=>kA,getSnapshotText:()=>v2,getSnippetElement:()=>sH,getSourceFileOfModule:()=>O6,getSourceFileOfNode:()=>Vn,getSourceFilePathInNewDir:()=>S3,getSourceFilePathInNewDirWorker:()=>T3,getSourceFileVersionAsHashFromText:()=>PF,getSourceFilesToEmit:()=>nU,getSourceMapRange:()=>jv,getSourceMapper:()=>bde,getSourceTextOfNodeFromSourceFile:()=>A1,getSpanOfTokenAtPosition:()=>hh,getSpellingSuggestion:()=>QD,getStartPositionOfLine:()=>Wy,getStartPositionOfRange:()=>HC,getStartsOnNewLine:()=>fN,getStaticPropertiesAndClassStaticBlock:()=>eF,getStrictOptionValue:()=>ud,getStringComparer:()=>Nx,getSubPatternFromSpec:()=>H3,getSuperCallFromStatement:()=>Q5,getSuperContainer:()=>CL,getSupportedCodeFixes:()=>LY,getSupportedExtensions:()=>$C,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>fk,getSwitchedType:()=>TX,getSymbolId:()=>Ta,getSymbolNameForPrivateIdentifier:()=>ZL,getSymbolTarget:()=>yX,getSyntacticClassifications:()=>ode,getSyntacticModifierFlags:()=>Gy,getSyntacticModifierFlagsNoCache:()=>aU,getSynthesizedDeepClone:()=>sl,getSynthesizedDeepCloneWithReplacements:()=>fO,getSynthesizedDeepClones:()=>cE,getSynthesizedDeepClonesWithReplacements:()=>bX,getSyntheticLeadingComments:()=>kR,getSyntheticTrailingComments:()=>Mk,getTargetLabel:()=>JF,getTargetOfBindingOrAssignmentElement:()=>eb,getTemporaryModuleResolutionState:()=>yw,getTextOfConstantValue:()=>rie,getTextOfIdentifierOrLiteral:()=>Zf,getTextOfJSDocComment:()=>oL,getTextOfJsxAttributeName:()=>bk,getTextOfJsxNamespacedName:()=>cN,getTextOfNode:()=>pc,getTextOfNodeFromSourceText:()=>EC,getTextOfPropertyName:()=>Zx,getThisContainer:()=>wd,getThisParameter:()=>k1,getTokenAtPosition:()=>po,getTokenPosOfNode:()=>s0,getTokenSourceMapRange:()=>bSe,getTouchingPropertyName:()=>zd,getTouchingToken:()=>g2,getTrailingCommentRanges:()=>Qb,getTrailingSemicolonDeferringWriter:()=>eU,getTransformFlagsSubtreeExclusions:()=>aae,getTransformers:()=>sJ,getTsBuildInfoEmitOutputFilePath:()=>Kv,getTsConfigObjectLiteralExpression:()=>IC,getTsConfigPropArrayElementValue:()=>X6,getTypeAnnotationNode:()=>Kie,getTypeArgumentOrTypeParameterList:()=>Rue,getTypeKeywordOfTypeOnlyImport:()=>cX,getTypeNode:()=>_ae,getTypeNodeIfAccessible:()=>mP,getTypeParameterFromJsDoc:()=>Lie,getTypeParameterOwner:()=>z1e,getTypesPackageName:()=>W5,getUILocale:()=>Sne,getUniqueName:()=>tT,getUniqueSymbolId:()=>jue,getUseDefineForClassFields:()=>pN,getWatchErrorSummaryDiagnosticMessage:()=>YJ,getWatchFactory:()=>gJ,group:()=>$D,groupBy:()=>N8,guessIndentation:()=>Hre,handleNoEmitOptions:()=>kJ,hasAbstractModifier:()=>F1,hasAccessorModifier:()=>C_,hasAmbientModifier:()=>oU,hasChangesInResolutions:()=>aj,hasChildOfKind:()=>rO,hasContextSensitiveParameters:()=>Z3,hasDecorators:()=>Sf,hasDocComment:()=>Iue,hasDynamicName:()=>By,hasEffectiveModifier:()=>_p,hasEffectiveModifiers:()=>I3,hasEffectiveReadonlyModifier:()=>BC,hasExtension:()=>EA,hasIndexSignature:()=>SX,hasInitializer:()=>Oy,hasInvalidEscape:()=>Qj,hasJSDocNodes:()=>Op,hasJSDocParameterTags:()=>_re,hasJSFileExtension:()=>W1,hasJsonModuleEmitEnabled:()=>z3,hasOnlyExpressionInitializer:()=>fS,hasOverrideModifier:()=>x3,hasPossibleExternalModuleReference:()=>lie,hasProperty:()=>Rs,hasPropertyAccessExpressionWithName:()=>Qw,hasQuestionToken:()=>LA,hasRecordedExternalHelpers:()=>$ae,hasResolutionModeOverride:()=>$oe,hasRestParameter:()=>nj,hasScopeMarker:()=>Fre,hasStaticModifier:()=>fc,hasSyntacticModifier:()=>ei,hasSyntacticModifiers:()=>toe,hasTSFileExtension:()=>UA,hasTabstop:()=>Koe,hasTrailingDirectorySeparator:()=>Pv,hasType:()=>N6,hasTypeArguments:()=>bEe,hasZeroOrOneAsteriskCharacter:()=>SU,helperString:()=>uH,hostGetCanonicalFileName:()=>Wv,hostUsesCaseSensitiveFileNames:()=>ER,idText:()=>Sr,identifierIsThisKeyword:()=>iU,identifierToKeywordKind:()=>n0,identity:()=>el,identitySourceMapConsumer:()=>Y5,ignoreSourceNewlines:()=>cH,ignoredPaths:()=>GM,importDefaultHelper:()=>W7,importFromModuleSpecifier:()=>CC,importNameElisionDisabled:()=>EU,importStarHelper:()=>kk,indexOfAnyCharCode:()=>Kc,indexOfNode:()=>Qx,indicesOf:()=>DM,inferredTypesContainingFile:()=>u2,injectClassNamedEvaluationHelperBlockIfMissing:()=>rF,injectClassThisAssignmentIfMissing:()=>xle,insertImports:()=>lP,insertLeadingStatement:()=>zSe,insertSorted:()=>Ty,insertStatementAfterCustomPrologue:()=>mS,insertStatementAfterStandardPrologue:()=>uEe,insertStatementsAfterCustomPrologue:()=>sj,insertStatementsAfterStandardPrologue:()=>Qh,intersperse:()=>Qi,intrinsicTagNameToString:()=>OU,introducesArgumentsExoticObject:()=>bie,inverseJsxOptionMap:()=>wN,isAbstractConstructorSymbol:()=>voe,isAbstractModifier:()=>Iae,isAccessExpression:()=>ks,isAccessibilityModifier:()=>QK,isAccessor:()=>Ly,isAccessorModifier:()=>Rae,isAliasSymbolDeclaration:()=>SEe,isAliasableExpression:()=>$L,isAmbientModule:()=>Lu,isAmbientPropertyDeclaration:()=>hj,isAnonymousFunctionDefinition:()=>wC,isAnyDirectorySeparator:()=>TV,isAnyImportOrBareOrAccessedRequire:()=>sie,isAnyImportOrReExport:()=>SL,isAnyImportSyntax:()=>_S,isAnySupportedFileExtension:()=>JEe,isApplicableVersionedTypesKey:()=>Sw,isArgumentExpressionOfElementAccess:()=>GK,isArray:()=>Do,isArrayBindingElement:()=>A6,isArrayBindingOrAssignmentElement:()=>pL,isArrayBindingOrAssignmentPattern:()=>YV,isArrayBindingPattern:()=>U1,isArrayLiteralExpression:()=>pd,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>Yv,isArrayTypeNode:()=>Gk,isArrowFunction:()=>Bs,isAsExpression:()=>jk,isAssertClause:()=>kae,isAssertEntry:()=>PSe,isAssertionExpression:()=>pS,isAssertsKeyword:()=>Tae,isAssignmentDeclaration:()=>DC,isAssignmentExpression:()=>Mc,isAssignmentOperator:()=>zv,isAssignmentPattern:()=>vC,isAssignmentTarget:()=>ng,isAsteriskToken:()=>Fk,isAsyncFunction:()=>LC,isAsyncModifier:()=>hN,isAutoAccessorPropertyDeclaration:()=>kd,isAwaitExpression:()=>$y,isAwaitKeyword:()=>gH,isBigIntLiteral:()=>H7,isBinaryExpression:()=>_r,isBinaryOperatorToken:()=>ase,isBindableObjectDefinePropertyCall:()=>bS,isBindableStaticAccessExpression:()=>N1,isBindableStaticElementAccessExpression:()=>c3,isBindableStaticNameExpression:()=>ES,isBindingElement:()=>Qa,isBindingElementOfBareOrAccessedRequire:()=>Cie,isBindingName:()=>uS,isBindingOrAssignmentElement:()=>Pre,isBindingOrAssignmentPattern:()=>uL,isBindingPattern:()=>ta,isBlock:()=>Xo,isBlockOrCatchScoped:()=>uj,isBlockScope:()=>gj,isBlockScopedContainerTopLevel:()=>aie,isBooleanLiteral:()=>gC,isBreakOrContinueStatement:()=>fC,isBreakStatement:()=>DSe,isBuildInfoFile:()=>ece,isBuilderProgram:()=>wce,isBundle:()=>AH,isBundleFileTextLike:()=>boe,isCallChain:()=>lS,isCallExpression:()=>la,isCallExpressionTarget:()=>wK,isCallLikeExpression:()=>T1,isCallLikeOrFunctionLikeExpression:()=>$V,isCallOrNewExpression:()=>T_,isCallOrNewExpressionTarget:()=>OK,isCallSignatureDeclaration:()=>nI,isCallToHelper:()=>_N,isCaseBlock:()=>TN,isCaseClause:()=>GR,isCaseKeyword:()=>Dae,isCaseOrDefaultClause:()=>D6,isCatchClause:()=>$1,isCatchClauseVariableDeclaration:()=>Joe,isCatchClauseVariableDeclarationOrBindingElement:()=>dj,isCheckJsEnabledForFile:()=>hk,isChildOfNodeWithKind:()=>pEe,isCircularBuildOrder:()=>TI,isClassDeclaration:()=>Tc,isClassElement:()=>$c,isClassExpression:()=>Zc,isClassInstanceProperty:()=>Cre,isClassLike:()=>pi,isClassMemberModifier:()=>JV,isClassNamedEvaluationHelperBlock:()=>SI,isClassOrTypeElement:()=>T6,isClassStaticBlockDeclaration:()=>Il,isClassThisAssignmentBlock:()=>UN,isCollapsedRange:()=>OEe,isColonToken:()=>Eae,isCommaExpression:()=>Xk,isCommaListExpression:()=>bN,isCommaSequence:()=>DN,isCommaToken:()=>bae,isComment:()=>iW,isCommonJsExportPropertyAssignment:()=>J6,isCommonJsExportedExpression:()=>vie,isCompoundAssignment:()=>GN,isComputedNonLiteralName:()=>TL,isComputedPropertyName:()=>Za,isConciseBody:()=>x6,isConditionalExpression:()=>BR,isConditionalTypeNode:()=>aI,isConstTypeReference:()=>kg,isConstructSignatureDeclaration:()=>zk,isConstructorDeclaration:()=>Pl,isConstructorTypeNode:()=>OR,isContextualKeyword:()=>m3,isContinueStatement:()=>RSe,isCustomPrologue:()=>RL,isDebuggerStatement:()=>CSe,isDeclaration:()=>qu,isDeclarationBindingElement:()=>cL,isDeclarationFileName:()=>Su,isDeclarationName:()=>Wg,isDeclarationNameOfEnumOrNamespace:()=>_U,isDeclarationReadonly:()=>j6,isDeclarationStatement:()=>Gre,isDeclarationWithTypeParameterChildren:()=>yj,isDeclarationWithTypeParameters:()=>vj,isDecorator:()=>Eu,isDecoratorTarget:()=>pue,isDefaultClause:()=>IN,isDefaultImport:()=>MA,isDefaultModifier:()=>X7,isDefaultedExpandoInitializer:()=>Nie,isDeleteExpression:()=>Pae,isDeleteTarget:()=>zj,isDeprecatedDeclaration:()=>RW,isDestructuringAssignment:()=>Bv,isDiagnosticWithLocation:()=>RX,isDiskPathRoot:()=>AV,isDoStatement:()=>ISe,isDocumentRegistryEntry:()=>EO,isDotDotDotToken:()=>J7,isDottedName:()=>VC,isDynamicName:()=>h3,isESSymbolIdentifier:()=>xEe,isEffectiveExternalModule:()=>NA,isEffectiveModuleDeclaration:()=>oie,isEffectiveStrictModeSourceFile:()=>_j,isElementAccessChain:()=>BV,isElementAccessExpression:()=>Ys,isEmittedFileOfProgram:()=>ice,isEmptyArrayLiteral:()=>coe,isEmptyBindingElement:()=>cre,isEmptyBindingPattern:()=>lre,isEmptyObjectLiteral:()=>dU,isEmptyStatement:()=>EH,isEmptyStringLiteral:()=>Rj,isEntityName:()=>Qd,isEntityNameExpression:()=>zl,isEnumConst:()=>x1,isEnumDeclaration:()=>v0,isEnumMember:()=>Q1,isEqualityOperatorKind:()=>vW,isEqualsGreaterThanToken:()=>Sae,isExclamationToken:()=>Wk,isExcludedFile:()=>bse,isExclusivelyTypeOnlyImportOrExport:()=>IJ,isExpandoPropertyDeclaration:()=>r7,isExportAssignment:()=>Ll,isExportDeclaration:()=>Kl,isExportModifier:()=>eI,isExportName:()=>c5,isExportNamespaceAsDefaultDeclaration:()=>z6,isExportOrDefaultModifier:()=>Zk,isExportSpecifier:()=>Ju,isExportsIdentifier:()=>yS,isExportsOrModuleExportsOrAlias:()=>tE,isExpression:()=>bt,isExpressionNode:()=>eg,isExpressionOfExternalModuleImportEqualsDeclaration:()=>hue,isExpressionOfOptionalChainRoot:()=>b6,isExpressionStatement:()=>eu,isExpressionWithTypeArguments:()=>Hv,isExpressionWithTypeArgumentsInClassExtendsClause:()=>R3,isExternalModule:()=>ac,isExternalModuleAugmentation:()=>I1,isExternalModuleImportEqualsDeclaration:()=>l0,isExternalModuleIndicator:()=>fL,isExternalModuleNameRelative:()=>Yc,isExternalModuleReference:()=>Th,isExternalModuleSymbol:()=>sO,isExternalOrCommonJsModule:()=>Fp,isFileLevelReservedGeneratedIdentifier:()=>lL,isFileLevelUniqueName:()=>F6,isFileProbablyExternalModule:()=>nw,isFirstDeclarationOfSymbolParameter:()=>mX,isFixablePromiseHandler:()=>QX,isForInOrOfStatement:()=>Jx,isForInStatement:()=>t5,isForInitializer:()=>Ef,isForOfStatement:()=>Uk,isForStatement:()=>FS,isFunctionBlock:()=>D1,isFunctionBody:()=>ZV,isFunctionDeclaration:()=>Sc,isFunctionExpression:()=>ws,isFunctionExpressionOrArrowFunction:()=>B1,isFunctionLike:()=>ea,isFunctionLikeDeclaration:()=>zs,isFunctionLikeKind:()=>xA,isFunctionLikeOrClassStaticBlockDeclaration:()=>qx,isFunctionOrConstructorTypeNode:()=>Nre,isFunctionOrModuleBlock:()=>KV,isFunctionSymbol:()=>Mie,isFunctionTypeNode:()=>bh,isFutureReservedKeyword:()=>TEe,isGeneratedIdentifier:()=>ol,isGeneratedPrivateIdentifier:()=>cS,isGetAccessor:()=>wy,isGetAccessorDeclaration:()=>Zp,isGetOrSetAccessorDeclaration:()=>v6,isGlobalDeclaration:()=>dRe,isGlobalScopeAugmentation:()=>I_,isGrammarError:()=>eie,isHeritageClause:()=>ef,isHoistedFunction:()=>H6,isHoistedVariableStatement:()=>q6,isIdentifier:()=>Ve,isIdentifierANonContextualKeyword:()=>Uj,isIdentifierName:()=>Wie,isIdentifierOrThisTypeNode:()=>nse,isIdentifierPart:()=>Zb,isIdentifierStart:()=>Xh,isIdentifierText:()=>$p,isIdentifierTypePredicate:()=>Eie,isIdentifierTypeReference:()=>Voe,isIfStatement:()=>OS,isIgnoredFileFromWildCardWatching:()=>ww,isImplicitGlob:()=>IU,isImportAttribute:()=>wae,isImportAttributeName:()=>Dre,isImportAttributes:()=>cI,isImportCall:()=>Wp,isImportClause:()=>Eh,isImportDeclaration:()=>Lc,isImportEqualsDeclaration:()=>tu,isImportKeyword:()=>vN,isImportMeta:()=>nR,isImportOrExportSpecifier:()=>IA,isImportOrExportSpecifierName:()=>Vue,isImportSpecifier:()=>tp,isImportTypeAssertionContainer:()=>NSe,isImportTypeNode:()=>lg,isImportableFile:()=>zX,isInComment:()=>Xv,isInCompoundLikeAssignment:()=>Wj,isInExpressionContext:()=>n3,isInJSDoc:()=>LL,isInJSFile:()=>cr,isInJSXText:()=>Tue,isInJsonFile:()=>i3,isInNonReferenceComment:()=>Nue,isInReferenceComment:()=>Cue,isInRightSideOfInternalImportEqualsDeclaration:()=>HF,isInString:()=>II,isInTemplateString:()=>KK,isInTopLevelContext:()=>Q6,isInTypeQuery:()=>xS,isIncrementalCompilation:()=>dN,isIndexSignatureDeclaration:()=>j1,isIndexedAccessTypeNode:()=>wS,isInferTypeNode:()=>MS,isInfinityOrNaNString:()=>oN,isInitializedProperty:()=>Dw,isInitializedVariable:()=>uk,isInsideJsxElement:()=>nW,isInsideJsxElementOrAttribute:()=>Sue,isInsideNodeModules:()=>vO,isInsideTemplateLiteral:()=>oO,isInstanceOfExpression:()=>D3,isInstantiatedModule:()=>Oq,isInterfaceDeclaration:()=>fd,isInternalDeclaration:()=>rj,isInternalModuleImportEqualsDeclaration:()=>sR,isInternalName:()=>OH,isIntersectionTypeNode:()=>oI,isIntrinsicJsxName:()=>yR,isIterationStatement:()=>ky,isJSDoc:()=>t_,isJSDocAllType:()=>Bae,isJSDocAugmentsTag:()=>fI,isJSDocAuthorTag:()=>wSe,isJSDocCallbackTag:()=>xH,isJSDocClassTag:()=>Vae,isJSDocCommentContainingNode:()=>C6,isJSDocConstructSignature:()=>pR,isJSDocDeprecatedTag:()=>PH,isJSDocEnumTag:()=>qk,isJSDocFunctionType:()=>jR,isJSDocImplementsTag:()=>a5,isJSDocIndexSignature:()=>o3,isJSDocLikeText:()=>HH,isJSDocLink:()=>Wae,isJSDocLinkCode:()=>zae,isJSDocLinkLike:()=>CA,isJSDocLinkPlain:()=>LSe,isJSDocMemberName:()=>y0,isJSDocNameReference:()=>xN,isJSDocNamepathType:()=>kSe,isJSDocNamespaceBody:()=>iEe,isJSDocNode:()=>Kx,isJSDocNonNullableType:()=>n5,isJSDocNullableType:()=>VR,isJSDocOptionalParameter:()=>yk,isJSDocOptionalType:()=>IH,isJSDocOverloadTag:()=>UR,isJSDocOverrideTag:()=>i5,isJSDocParameterTag:()=>n_,isJSDocPrivateTag:()=>DH,isJSDocPropertyLikeTag:()=>mC,isJSDocPropertyTag:()=>jae,isJSDocProtectedTag:()=>CH,isJSDocPublicTag:()=>RH,isJSDocReadonlyTag:()=>NH,isJSDocReturnTag:()=>o5,isJSDocSatisfiesExpression:()=>kU,isJSDocSatisfiesTag:()=>s5,isJSDocSeeTag:()=>OSe,isJSDocSignature:()=>b0,isJSDocTag:()=>Xx,isJSDocTemplateTag:()=>am,isJSDocThisTag:()=>MH,isJSDocThrowsTag:()=>WSe,isJSDocTypeAlias:()=>Qf,isJSDocTypeAssertion:()=>qR,isJSDocTypeExpression:()=>Z1,isJSDocTypeLiteral:()=>GS,isJSDocTypeTag:()=>RN,isJSDocTypedefTag:()=>VS,isJSDocUnknownTag:()=>FSe,isJSDocUnknownType:()=>Gae,isJSDocVariadicType:()=>r5,isJSXTagName:()=>aR,isJsonEqual:()=>$3,isJsonSourceFile:()=>$f,isJsxAttribute:()=>O_,isJsxAttributeLike:()=>R6,isJsxAttributeName:()=>Yoe,isJsxAttributes:()=>Y1,isJsxChild:()=>hL,isJsxClosingElement:()=>K1,isJsxClosingFragment:()=>Oae,isJsxElement:()=>cg,isJsxExpression:()=>AN,isJsxFragment:()=>X1,isJsxNamespacedName:()=>e_,isJsxOpeningElement:()=>w_,isJsxOpeningFragment:()=>dI,isJsxOpeningLikeElement:()=>sd,isJsxOpeningLikeElementTagName:()=>fue,isJsxSelfClosingElement:()=>zS,isJsxSpreadAttribute:()=>pI,isJsxTagNameExpression:()=>yC,isJsxText:()=>$A,isJumpStatementTarget:()=>Zw,isKeyword:()=>Fd,isKeywordOrPunctuation:()=>f3,isKnownSymbol:()=>ek,isLabelName:()=>zK,isLabelOfLabeledStatement:()=>WK,isLabeledStatement:()=>J1,isLateVisibilityPaintedStatement:()=>G6,isLeftHandSideExpression:()=>Zd,isLeftHandSideOfAssignment:()=>wEe,isLet:()=>U6,isLineBreak:()=>Uu,isLiteralComputedPropertyDeclarationName:()=>YL,isLiteralExpression:()=>S1,isLiteralExpressionOfObject:()=>HV,isLiteralImportTypeNode:()=>zy,isLiteralKind:()=>_C,isLiteralLikeAccess:()=>l3,isLiteralLikeElementAccess:()=>WL,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>KF,isLiteralTypeLikeExpression:()=>USe,isLiteralTypeLiteral:()=>wre,isLiteralTypeNode:()=>Yy,isLocalName:()=>Ug,isLogicalOperator:()=>aoe,isLogicalOrCoalescingAssignmentExpression:()=>sU,isLogicalOrCoalescingAssignmentOperator:()=>GC,isLogicalOrCoalescingBinaryExpression:()=>ak,isLogicalOrCoalescingBinaryOperator:()=>ok,isMappedTypeNode:()=>WR,isMemberName:()=>Yh,isMetaProperty:()=>yN,isMethodDeclaration:()=>jl,isMethodOrAccessor:()=>RA,isMethodSignature:()=>yh,isMinusToken:()=>hH,isMissingDeclaration:()=>MSe,isMissingPackageJsonInfo:()=>Fse,isModifier:()=>Ia,isModifierKind:()=>kv,isModifierLike:()=>al,isModuleAugmentationExternal:()=>fj,isModuleBlock:()=>k_,isModuleBody:()=>Wre,isModuleDeclaration:()=>Jl,isModuleExportsAccessExpression:()=>tg,isModuleIdentifier:()=>Mj,isModuleName:()=>ose,isModuleOrEnumDeclaration:()=>mL,isModuleReference:()=>jre,isModuleSpecifierLike:()=>dW,isModuleWithStringLiteralName:()=>B6,isNameOfFunctionDeclaration:()=>jK,isNameOfModuleDeclaration:()=>VK,isNamedClassElement:()=>Z1e,isNamedDeclaration:()=>od,isNamedEvaluation:()=>mp,isNamedEvaluationSource:()=>Hj,isNamedExportBindings:()=>VV,isNamedExports:()=>Df,isNamedImportBindings:()=>ej,isNamedImports:()=>jg,isNamedImportsOrExports:()=>w3,isNamedTupleMember:()=>FR,isNamespaceBody:()=>rEe,isNamespaceExport:()=>Sh,isNamespaceExportDeclaration:()=>Hk,isNamespaceImport:()=>Zy,isNamespaceReexportDeclaration:()=>Die,isNewExpression:()=>H1,isNewExpressionTarget:()=>iP,isNoSubstitutionTemplateLiteral:()=>QA,isNode:()=>$1e,isNodeArray:()=>E1,isNodeArrayMultiLine:()=>_oe,isNodeDescendantOf:()=>P1,isNodeKind:()=>aL,isNodeLikeSystem:()=>pG,isNodeModulesDirectory:()=>a6,isNodeWithPossibleHoistedDeclaration:()=>wie,isNonContextualKeyword:()=>jj,isNonExportDefaultModifier:()=>qSe,isNonGlobalAmbientModule:()=>pj,isNonGlobalDeclaration:()=>rde,isNonNullAccess:()=>Xoe,isNonNullChain:()=>E6,isNonNullExpression:()=>lI,isNonStaticMethodOrAccessorWithPrivateName:()=>gle,isNotEmittedOrPartiallyEmittedNode:()=>nEe,isNotEmittedStatement:()=>TH,isNullishCoalesce:()=>GV,isNumber:()=>Rv,isNumericLiteral:()=>hp,isNumericLiteralName:()=>sg,isObjectBindingElementWithoutPropertyName:()=>uO,isObjectBindingOrAssignmentElement:()=>dL,isObjectBindingOrAssignmentPattern:()=>XV,isObjectBindingPattern:()=>om,isObjectLiteralElement:()=>tj,isObjectLiteralElementLike:()=>wg,isObjectLiteralExpression:()=>wa,isObjectLiteralMethod:()=>Im,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>K6,isObjectTypeDeclaration:()=>GA,isOctalDigit:()=>u6,isOmittedExpression:()=>Vc,isOptionalChain:()=>Hu,isOptionalChainRoot:()=>dC,isOptionalDeclaration:()=>sN,isOptionalJSDocPropertyLikeTag:()=>vk,isOptionalTypeNode:()=>Y7,isOuterExpression:()=>d5,isOutermostOptionalChain:()=>pC,isOverrideModifier:()=>xae,isPackageJsonInfo:()=>L5,isPackedArrayLiteral:()=>MU,isParameter:()=>Co,isParameterDeclaration:()=>L1,isParameterPropertyDeclaration:()=>pp,isParameterPropertyModifier:()=>hC,isParenthesizedExpression:()=>Wd,isParenthesizedTypeNode:()=>LS,isParseTreeNode:()=>uC,isPartOfTypeNode:()=>Zh,isPartOfTypeQuery:()=>r3,isPartiallyEmittedExpression:()=>e5,isPatternMatch:()=>k8,isPinnedComment:()=>W6,isPlainJsFile:()=>yL,isPlusToken:()=>_H,isPossiblyTypeArgumentPosition:()=>iO,isPostfixUnaryExpression:()=>yH,isPrefixUnaryExpression:()=>Qy,isPrivateIdentifier:()=>Xi,isPrivateIdentifierClassElementDeclaration:()=>ad,isPrivateIdentifierPropertyAccessExpression:()=>Hx,isPrivateIdentifierSymbol:()=>Bie,isProgramBundleEmitBuildInfo:()=>bce,isProgramUptoDate:()=>MJ,isPrologueDirective:()=>Am,isPropertyAccessChain:()=>y6,isPropertyAccessEntityNameExpression:()=>sk,isPropertyAccessExpression:()=>zr,isPropertyAccessOrQualifiedName:()=>Lre,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>Mre,isPropertyAssignment:()=>_c,isPropertyDeclaration:()=>Jo,isPropertyName:()=>ic,isPropertyNameLiteral:()=>R_,isPropertySignature:()=>gp,isProtoSetter:()=>Gie,isPrototypeAccess:()=>Vy,isPrototypePropertyAssignment:()=>GL,isPunctuation:()=>Vj,isPushOrUnshiftIdentifier:()=>qj,isQualifiedName:()=>Ad,isQuestionDotToken:()=>K7,isQuestionOrExclamationToken:()=>tse,isQuestionOrPlusOrMinusToken:()=>ise,isQuestionToken:()=>Ky,isRawSourceMap:()=>fle,isReadonlyKeyword:()=>Aae,isReadonlyKeywordOrPlusOrMinusToken:()=>rse,isRecognizedTripleSlashComment:()=>lj,isReferenceFileLocation:()=>l2,isReferencedFile:()=>R0,isRegularExpressionLiteral:()=>fH,isRequireCall:()=>Sd,isRequireVariableStatement:()=>Nj,isRestParameter:()=>$h,isRestTypeNode:()=>$7,isReturnStatement:()=>Rm,isReturnStatementWithFixablePromiseHandler:()=>FW,isRightSideOfAccessExpression:()=>uU,isRightSideOfInstanceofExpression:()=>loe,isRightSideOfPropertyAccess:()=>_2,isRightSideOfQualifiedName:()=>_ue,isRightSideOfQualifiedNameOrPropertyAccess:()=>jC,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>soe,isRootedDiskPath:()=>dp,isSameEntityName:()=>lR,isSatisfiesExpression:()=>bH,isScopeMarker:()=>Ore,isSemicolonClassElement:()=>Mae,isSetAccessor:()=>wv,isSetAccessorDeclaration:()=>vp,isShebangTrivia:()=>CV,isShiftOperatorOrHigher:()=>VH,isShorthandAmbientModuleSymbol:()=>SC,isShorthandPropertyAssignment:()=>np,isSignedNumericLiteral:()=>_3,isSimpleCopiableExpression:()=>rE,isSimpleInlineableExpression:()=>F_,isSimpleParameter:()=>Sle,isSimpleParameterList:()=>Cw,isSingleOrDoubleQuote:()=>kL,isSourceFile:()=>no,isSourceFileFromLibrary:()=>T2,isSourceFileJS:()=>ld,isSourceFileNotJS:()=>_Ee,isSourceFileNotJson:()=>Cj,isSourceMapping:()=>mle,isSpecialPropertyDeclaration:()=>Pie,isSpreadAssignment:()=>qv,isSpreadElement:()=>Zm,isStatement:()=>Ki,isStatementButNotDeclaration:()=>_L,isStatementOrBlock:()=>Vre,isStatementWithLocals:()=>Zre,isStatic:()=>sa,isStaticModifier:()=>tI,isString:()=>wo,isStringAKeyword:()=>AEe,isStringANonContextualKeyword:()=>OA,isStringAndEmptyAnonymousObjectIntersection:()=>Due,isStringDoubleQuoted:()=>s3,isStringLiteral:()=>Na,isStringLiteralLike:()=>us,isStringLiteralOrJsxExpression:()=>Ure,isStringLiteralOrTemplate:()=>Kue,isStringOrNumericLiteralLike:()=>Qp,isStringOrRegularExpressionOrTemplateLiteral:()=>$K,isStringTextContainingNode:()=>qV,isSuperCall:()=>gS,isSuperKeyword:()=>gN,isSuperOrSuperProperty:()=>mEe,isSuperProperty:()=>Od,isSupportedSourceFileName:()=>Woe,isSwitchStatement:()=>SN,isSyntaxList:()=>HR,isSyntheticExpression:()=>ASe,isSyntheticReference:()=>uI,isTagName:()=>BK,isTaggedTemplateExpression:()=>q1,isTaggedTemplateTag:()=>due,isTemplateExpression:()=>Q7,isTemplateHead:()=>ZA,isTemplateLiteral:()=>DA,isTemplateLiteralKind:()=>My,isTemplateLiteralToken:()=>xre,isTemplateLiteralTypeNode:()=>Cae,isTemplateLiteralTypeSpan:()=>vH,isTemplateMiddle:()=>mH,isTemplateMiddleOrTemplateTail:()=>S6,isTemplateSpan:()=>EN,isTemplateTail:()=>q7,isTextWhiteSpaceLike:()=>kue,isThis:()=>h2,isThisContainerOrFunctionBlock:()=>Iie,isThisIdentifier:()=>O1,isThisInTypeQuery:()=>FA,isThisInitializedDeclaration:()=>Z6,isThisInitializedObjectBindingExpression:()=>Rie,isThisProperty:()=>NL,isThisTypeNode:()=>Vk,isThisTypeParameter:()=>aN,isThisTypePredicate:()=>fEe,isThrowStatement:()=>SH,isToken:()=>AA,isTokenKind:()=>UV,isTraceEnabled:()=>Hg,isTransientSymbol:()=>fh,isTrivia:()=>hR,isTryStatement:()=>WS,isTupleTypeNode:()=>iI,isTypeAlias:()=>UL,isTypeAliasDeclaration:()=>Dm,isTypeAssertionExpression:()=>Nae,isTypeDeclaration:()=>PR,isTypeElement:()=>dS,isTypeKeyword:()=>sP,isTypeKeywordToken:()=>rX,isTypeKeywordTokenOrIdentifier:()=>sW,isTypeLiteralNode:()=>yp,isTypeNode:()=>qi,isTypeNodeKind:()=>vU,isTypeOfExpression:()=>zR,isTypeOnlyExportDeclaration:()=>Rre,isTypeOnlyImportDeclaration:()=>sL,isTypeOnlyImportOrExportDeclaration:()=>a0,isTypeOperatorNode:()=>kS,isTypeParameterDeclaration:()=>_l,isTypePredicateNode:()=>Bk,isTypeQueryNode:()=>rI,isTypeReferenceNode:()=>Rf,isTypeReferenceType:()=>P6,isTypeUsableAsPropertyName:()=>nm,isUMDExportSymbol:()=>k3,isUnaryExpression:()=>QV,isUnaryExpressionWithWrite:()=>kre,isUnicodeIdentifierStart:()=>l6,isUnionTypeNode:()=>Xy,isUnparsedNode:()=>jV,isUnparsedPrepend:()=>Fae,isUnparsedSource:()=>BS,isUnparsedTextLike:()=>Ire,isUrl:()=>qne,isValidBigIntString:()=>Q3,isValidESSymbolDeclaration:()=>yie,isValidTypeOnlyAliasUseSite:()=>_0,isValueSignatureDeclaration:()=>Oie,isVarAwaitUsing:()=>IL,isVarConst:()=>tR,isVarUsing:()=>xL,isVariableDeclaration:()=>Oi,isVariableDeclarationInVariableStatement:()=>AC,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>C1,isVariableDeclarationInitializedToRequire:()=>a3,isVariableDeclarationList:()=>jc,isVariableLike:()=>rR,isVariableLikeOrAccessor:()=>gie,isVariableStatement:()=>Ml,isVoidExpression:()=>sI,isWatchSet:()=>WEe,isWhileStatement:()=>xSe,isWhiteSpaceLike:()=>Lg,isWhiteSpaceSingleLine:()=>S_,isWithStatement:()=>Lae,isWriteAccess:()=>BA,isWriteOnlyAccess:()=>L3,isYieldExpression:()=>Z7,jsxModeNeedsExplicitImport:()=>MX,keywordPart:()=>Ep,last:()=>Ya,lastOrUndefined:()=>Zs,length:()=>De,libMap:()=>T5,libs:()=>dw,lineBreakPart:()=>E2,linkNamePart:()=>Bue,linkPart:()=>hX,linkTextPart:()=>mW,listFiles:()=>$J,loadModuleFromGlobalCache:()=>Jse,loadWithModeAwareCache:()=>zw,makeIdentifierFromModuleName:()=>iie,makeImport:()=>$v,makeImportIfNecessary:()=>Lue,makeStringLiteral:()=>RI,mangleScopedPackageName:()=>r2,map:()=>Ft,mapAllOrFail:()=>fA,mapDefined:()=>Vi,mapDefinedEntries:()=>Rx,mapDefinedIterator:()=>tS,mapEntries:()=>fne,mapIterator:()=>ra,mapOneOrMany:()=>CX,mapToDisplayParts:()=>ob,matchFiles:()=>xU,matchPatternOrExact:()=>RU,matchedText:()=>Rne,matchesExclude:()=>S5,maybeBind:()=>oa,maybeSetLocalizedDiagnosticMessages:()=>xoe,memoize:()=>Ed,memoizeCached:()=>bne,memoizeOne:()=>ch,memoizeWeak:()=>H0e,metadataHelper:()=>y7,min:()=>sG,minAndMax:()=>Boe,missingFileModifiedTime:()=>kp,modifierToFlag:()=>zA,modifiersToFlags:()=>N_,moduleOptionDeclaration:()=>lq,moduleResolutionIsEqualTo:()=>$re,moduleResolutionNameAndModeGetter:()=>EF,moduleResolutionOptionDeclarations:()=>A5,moduleResolutionSupportsPackageJsonExportsAndImports:()=>jA,moduleResolutionUsesNodeModules:()=>lW,moduleSpecifiers:()=>nE,moveEmitHelpers:()=>fae,moveRangeEnd:()=>P3,moveRangePastDecorators:()=>zg,moveRangePastModifiers:()=>P_,moveRangePos:()=>f0,moveSyntheticComments:()=>uae,mutateMap:()=>KC,mutateMapSkippingNewValues:()=>og,needsParentheses:()=>hW,needsScopeMarker:()=>I6,newCaseClauseTracker:()=>NW,newPrivateEnvironment:()=>ble,noEmitNotification:()=>Nw,noEmitSubstitution:()=>JN,noTransformers:()=>lJ,noTruncationMaximumTruncationLength:()=>a7,nodeCanBeDecorated:()=>t3,nodeHasName:()=>nL,nodeIsDecorated:()=>oR,nodeIsMissing:()=>Fl,nodeIsPresent:()=>Xf,nodeIsSynthesized:()=>Xs,nodeModuleNameResolver:()=>Gse,nodeModulesPathPart:()=>Ih,nodeNextJsonConfigResolver:()=>Vse,nodeOrChildIsDecorated:()=>ML,nodeOverlapsWithStartEnd:()=>XF,nodePosToString:()=>aEe,nodeSeenTracker:()=>xI,nodeStartsNewLexicalEnvironment:()=>Jj,nodeToDisplayParts:()=>oRe,noop:()=>$a,noopFileWatcher:()=>f2,normalizePath:()=>va,normalizeSlashes:()=>Mu,not:()=>O8,notImplemented:()=>Ko,notImplementedResolver:()=>uF,nullNodeConverters:()=>eH,nullParenthesizerRules:()=>ZU,nullTransformationContext:()=>KN,objectAllocator:()=>lu,operatorPart:()=>uP,optionDeclarations:()=>ug,optionMapToObject:()=>y5,optionsAffectingProgramStructure:()=>fq,optionsForBuild:()=>_q,optionsForWatch:()=>QR,optionsHaveChanges:()=>Yx,optionsHaveModuleResolutionChanges:()=>Kre,or:()=>Xm,orderedRemoveItem:()=>Mx,orderedRemoveItemAt:()=>Iy,outFile:()=>Ps,packageIdToPackageName:()=>w6,packageIdToString:()=>Fy,paramHelper:()=>b7,parameterIsThisKeyword:()=>w1,parameterNamePart:()=>Oue,parseBaseNodeFactory:()=>YH,parseBigInt:()=>Goe,parseBuildCommand:()=>ATe,parseCommandLine:()=>STe,parseCommandLineWorker:()=>ZH,parseConfigFileTextToJson:()=>tq,parseConfigFileWithSystem:()=>oxe,parseConfigHostFromCompilerHostLike:()=>bF,parseCustomTypeOption:()=>v5,parseIsolatedEntityName:()=>_I,parseIsolatedJSDocComment:()=>pse,parseJSDocTypeExpressionForTests:()=>cTe,parseJsonConfigFileContent:()=>WTe,parseJsonSourceFileConfigFileContent:()=>lw,parseJsonText:()=>iw,parseListTypeOption:()=>mse,parseNodeFactory:()=>Ah,parseNodeModuleFromPath:()=>vw,parsePackageName:()=>Ew,parsePseudoBigInt:()=>tN,parseValidBigInt:()=>PU,patchWriteFileEnsuringDirectory:()=>Une,pathContainsNodeModules:()=>I0,pathIsAbsolute:()=>rC,pathIsBareSpecifier:()=>IV,pathIsRelative:()=>wp,patternText:()=>xne,perfLogger:()=>rd,performIncrementalCompilation:()=>cxe,performance:()=>Wne,plainJSErrors:()=>SF,positionBelongsToNode:()=>HK,positionIsASICandidate:()=>bW,positionIsSynthesized:()=>Qm,positionsAreOnSameLine:()=>Af,preProcessFile:()=>MRe,probablyUsesSemicolons:()=>hO,processCommentPragmas:()=>KH,processPragmasIntoFields:()=>XH,processTaggedTemplateExpression:()=>tJ,programContainsEsModules:()=>Mue,programContainsModules:()=>Pue,projectReferenceIsEqualTo:()=>oj,propKeyHelper:()=>L7,propertyNamePart:()=>Fue,pseudoBigIntToString:()=>z1,punctuationPart:()=>Yu,pushIfUnique:()=>bf,quote:()=>fP,quotePreferenceFromString:()=>sX,rangeContainsPosition:()=>eO,rangeContainsPositionExclusive:()=>tO,rangeContainsRange:()=>of,rangeContainsRangeExclusive:()=>gue,rangeContainsStartEnd:()=>nO,rangeEndIsOnSameLineAsRangeStart:()=>ck,rangeEndPositionsAreOnSameLine:()=>foe,rangeEquals:()=>eG,rangeIsOnSingleLine:()=>DS,rangeOfNode:()=>CU,rangeOfTypeParameters:()=>NU,rangeOverlapsWithStartEnd:()=>oP,rangeStartIsOnSameLineAsRangeEnd:()=>moe,rangeStartPositionsAreOnSameLine:()=>M3,readBuilderProgram:()=>kF,readConfigFile:()=>aw,readHelper:()=>P7,readJson:()=>UC,readJsonConfigFile:()=>gse,readJsonOrUndefined:()=>pU,reduceEachLeadingCommentRange:()=>Qne,reduceEachTrailingCommentRange:()=>Zne,reduceLeft:()=>nd,reduceLeftIterator:()=>Ar,reducePathComponents:()=>sS,refactor:()=>NI,regExpEscape:()=>HEe,relativeComplement:()=>mne,removeAllComments:()=>Nk,removeEmitHelper:()=>ESe,removeExtension:()=>_k,removeFileExtension:()=>Td,removeIgnoredPath:()=>IF,removeMinAndVersionNumbers:()=>lG,removeOptionality:()=>Aue,removePrefix:()=>ZD,removeSuffix:()=>Px,removeTrailingDirectorySeparator:()=>$b,repeatString:()=>lO,replaceElement:()=>rG,replaceFirstStar:()=>qA,resolutionExtensionIsTSOrJson:()=>QC,resolveConfigFileProjectName:()=>lK,resolveJSModule:()=>zse,resolveLibrary:()=>w5,resolveModuleName:()=>t2,resolveModuleNameFromCache:()=>EAe,resolvePackageNameToPackageJson:()=>vq,resolvePath:()=>Dy,resolveProjectReferencePath:()=>c2,resolveTripleslashReference:()=>mF,resolveTypeReferenceDirective:()=>wse,resolvingEmptyArray:()=>o7,restHelper:()=>R7,returnFalse:()=>Km,returnNoopFileWatcher:()=>m2,returnTrue:()=>Dv,returnUndefined:()=>Xb,returnsPromise:()=>$X,runInitializersHelper:()=>S7,sameFlatMap:()=>eS,sameMap:()=>Io,sameMapping:()=>lIe,scanShebangTrivia:()=>NV,scanTokenAtPosition:()=>mie,scanner:()=>$u,screenStartingMessageCodes:()=>LF,semanticDiagnosticsOptionDeclarations:()=>uq,serializeCompilerOptions:()=>b5,server:()=>Pwe,servicesVersion:()=>Ipe,setCommentRange:()=>oc,setConfigFileInOptions:()=>aq,setConstantValue:()=>pae,setEachParent:()=>NR,setEmitFlags:()=>fr,setFunctionNameHelper:()=>k7,setGetSourceFileAsHashVersioned:()=>MF,setIdentifierAutoGenerate:()=>Lk,setIdentifierGeneratedImportReference:()=>hae,setIdentifierTypeArguments:()=>Uv,setInternalEmitFlags:()=>Pk,setLocalizedDiagnosticMessages:()=>Ioe,setModuleDefaultHelper:()=>F7,setNodeFlags:()=>Uoe,setObjectAllocator:()=>Aoe,setOriginalNode:()=>Pr,setParent:()=>qa,setParentRecursive:()=>Uy,setPrivateIdentifier:()=>qS,setSnippetElement:()=>lH,setSourceMapRange:()=>Ca,setStackTraceLimit:()=>p1e,setStartsOnNewLine:()=>_7,setSyntheticLeadingComments:()=>g0,setSyntheticTrailingComments:()=>KA,setSys:()=>g1e,setSysLog:()=>Vne,setTextRange:()=>dt,setTextRangeEnd:()=>CR,setTextRangePos:()=>nN,setTextRangePosEnd:()=>gh,setTextRangePosWidth:()=>rN,setTokenSourceMapRange:()=>cae,setTypeNode:()=>mae,setUILocale:()=>Tne,setValueDeclaration:()=>VL,shouldAllowImportingTsExtension:()=>i2,shouldPreserveConstEnums:()=>V1,shouldUseUriStyleNodeCoreModules:()=>DW,showModuleSpecifier:()=>yoe,signatureHasLiteralTypes:()=>Fq,signatureHasRestParameter:()=>Xu,signatureToDisplayParts:()=>gX,single:()=>nG,singleElementArray:()=>yA,singleIterator:()=>pne,singleOrMany:()=>sh,singleOrUndefined:()=>ah,skipAlias:()=>bu,skipAssertions:()=>GSe,skipConstraint:()=>iX,skipOuterExpressions:()=>Xl,skipParentheses:()=>vs,skipPartiallyEmittedExpressions:()=>Sm,skipTrivia:()=>La,skipTypeChecking:()=>eN,skipTypeParentheses:()=>XL,skipWhile:()=>Cne,sliceAfter:()=>DU,some:()=>Et,sort:()=>nS,sortAndDeduplicate:()=>XD,sortAndDeduplicateDiagnostics:()=>Gx,sourceFileAffectingCompilerOptions:()=>I5,sourceFileMayBeEmitted:()=>AS,sourceMapCommentRegExp:()=>K5,sourceMapCommentRegExpDontCareLineStart:()=>Hq,spacePart:()=>kl,spanMap:()=>YB,spreadArrayHelper:()=>M7,stableSort:()=>Iv,startEndContainsRange:()=>UK,startEndOverlapsWithStartEnd:()=>YF,startOnNewLine:()=>Ku,startTracing:()=>zne,startsWith:()=>uo,startsWithDirectory:()=>RV,startsWithUnderscore:()=>PX,startsWithUseStrict:()=>Xae,stringContainsAt:()=>nde,stringToToken:()=>y1,stripQuotes:()=>em,supportedDeclarationExtensions:()=>Ak,supportedJSExtensions:()=>YU,supportedJSExtensionsFlat:()=>LR,supportedLocaleDirectories:()=>ij,supportedTSExtensions:()=>MR,supportedTSExtensionsFlat:()=>XU,supportedTSImplementationExtensions:()=>Ik,suppressLeadingAndTrailingTrivia:()=>Sp,suppressLeadingTrivia:()=>EX,suppressTrailingTrivia:()=>Hue,symbolEscapedNameNoDefault:()=>uW,symbolName:()=>bl,symbolNameNoDefault:()=>cW,symbolPart:()=>wue,symbolToDisplayParts:()=>dP,syntaxMayBeASICandidate:()=>FX,syntaxRequiresTrailingSemicolonOrASI:()=>yW,sys:()=>gu,sysLog:()=>zM,tagNamesAreEquivalent:()=>S0,takeWhile:()=>W8,targetOptionDeclaration:()=>fw,templateObjectHelper:()=>N7,testFormatSettings:()=>uue,textChangeRangeIsUnchanged:()=>are,textChangeRangeNewSpan:()=>cC,textChanges:()=>hr,textOrKeywordPart:()=>_X,textPart:()=>sf,textRangeContainsPositionInclusive:()=>ZM,textSpanContainsPosition:()=>LV,textSpanContainsTextSpan:()=>nre,textSpanEnd:()=>ql,textSpanIntersection:()=>ore,textSpanIntersectsWith:()=>f6,textSpanIntersectsWithPosition:()=>ire,textSpanIntersectsWithTextSpan:()=>W1e,textSpanIsEmpty:()=>tre,textSpanOverlap:()=>rre,textSpanOverlapsWith:()=>F1e,textSpansEqual:()=>b2,textToKeywordObj:()=>$M,timestamp:()=>Ks,toArray:()=>gA,toBuilderFileEmit:()=>Tce,toBuilderStateFileInfoForMultiEmit:()=>Sce,toEditorSettings:()=>wO,toFileNameLowerCase:()=>lh,toLowerCase:()=>yne,toPath:()=>rl,toProgramEmitPending:()=>Ace,tokenIsIdentifierOrKeyword:()=>id,tokenIsIdentifierOrKeywordOrGreaterThan:()=>Yne,tokenToString:()=>ma,trace:()=>To,tracing:()=>lr,tracingEnabled:()=>wM,transform:()=>NDe,transformClassFields:()=>Ple,transformDeclarations:()=>aJ,transformECMAScriptModule:()=>oJ,transformES2015:()=>qle,transformES2016:()=>Hle,transformES2017:()=>wle,transformES2018:()=>Ole,transformES2019:()=>Fle,transformES2020:()=>Wle,transformES2021:()=>zle,transformES5:()=>Jle,transformESDecorators:()=>kle,transformESNext:()=>Ble,transformGenerators:()=>Kle,transformJsx:()=>Ule,transformLegacyDecorators:()=>Lle,transformModule:()=>iJ,transformNamedEvaluation:()=>bp,transformNodeModule:()=>Yle,transformNodes:()=>Pw,transformSystemModule:()=>Xle,transformTypeScript:()=>Nle,transpile:()=>BRe,transpileModule:()=>Ede,transpileOptionValueCompilerOptions:()=>mq,tryAddToSet:()=>Av,tryAndIgnoreErrors:()=>TW,tryCast:()=>ai,tryDirectoryExists:()=>SW,tryExtractTSExtension:()=>C3,tryFileExists:()=>gO,tryGetClassExtendingExpressionWithTypeArguments:()=>lU,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>cU,tryGetDirectories:()=>EW,tryGetExtensionFromPath:()=>Gg,tryGetImportFromModuleSpecifier:()=>jL,tryGetJSDocSatisfiesTypeNode:()=>n7,tryGetModuleNameFromFile:()=>$k,tryGetModuleSpecifierFromDeclaration:()=>cR,tryGetNativePerformanceHooks:()=>wne,tryGetPropertyAccessOrIdentifierToString:()=>lk,tryGetPropertyNameOfBindingOrAssignmentElement:()=>f5,tryGetSourceMappingURL:()=>ple,tryGetTextOfPropertyName:()=>TC,tryIOAndConsumeErrors:()=>AW,tryParseJson:()=>N3,tryParsePattern:()=>DR,tryParsePatterns:()=>X3,tryParseRawSourceMap:()=>jq,tryReadDirectory:()=>AX,tryReadFile:()=>MN,tryRemoveDirectoryPrefix:()=>AU,tryRemoveExtension:()=>zoe,tryRemovePrefix:()=>dG,tryRemoveSuffix:()=>Ine,typeAcquisitionDeclarations:()=>mw,typeAliasNamePart:()=>Wue,typeDirectiveIsEqualTo:()=>Qre,typeKeywords:()=>PW,typeParameterNamePart:()=>zue,typeToDisplayParts:()=>pO,unchangedPollThresholds:()=>BM,unchangedTextChangeRange:()=>gL,unescapeLeadingUnderscores:()=>Hi,unmangleScopedPackageName:()=>Tw,unorderedRemoveItem:()=>vA,unorderedRemoveItemAt:()=>cG,unreachableCodeIsError:()=>Doe,unusedLabelIsError:()=>Coe,unwrapInnermostStatementOfLabel:()=>Ij,updateErrorForNoInputFiles:()=>E5,updateLanguageServiceSourceFile:()=>kY,updateMissingFilePathsWatch:()=>hJ,updateResolutionField:()=>ZR,updateSharedExtendedConfigFileWatcher:()=>pF,updateSourceFile:()=>qH,updateWatchingWildcardDirectories:()=>kw,usesExtensionsOnImports:()=>Ooe,usingSingleLineStringWriter:()=>bC,utf16EncodeAsString:()=>Bx,validateLocaleAndSetLanguage:()=>B1e,valuesHelper:()=>w7,version:()=>Te,versionMajorMinor:()=>_e,visitArray:()=>xw,visitCommaListElements:()=>Rw,visitEachChild:()=>An,visitFunctionBody:()=>rf,visitIterationBody:()=>Id,visitLexicalEnvironment:()=>Gq,visitNode:()=>rt,visitNodes:()=>Bn,visitParameterList:()=>xl,walkUpBindingElementsAndPatterns:()=>Vx,walkUpLexicalEnvironments:()=>yle,walkUpOuterExpressions:()=>Yae,walkUpParenthesizedExpressions:()=>Fv,walkUpParenthesizedTypes:()=>KL,walkUpParenthesizedTypesAndGetParentAndChild:()=>Fie,whitespaceOrMapCommentRegExp:()=>X5,writeCommentRange:()=>SR,writeFile:()=>FC,writeFileEnsuringDirectories:()=>rU,zipWith:()=>Un});var Lwe=A({"src/typescript/_namespaces/ts.ts"(){"use strict";ia(),Kw(),ci(),lb(),Cat()}}),Nat=F({"src/typescript/typescript.ts"(e,t){Lwe(),Lwe(),typeof console<"u"&&(C.loggingHost={log(r,i){switch(r){case 1:return console.error(i);case 2:return console.warn(i);case 3:return console.log(i);case 4:return console.log(i)}}}),t.exports=Mwe}});return Nat()})();typeof une<"u"&&une.exports&&(une.exports=ZE);var Tbt=ZE.createClassifier,xWe=ZE.createLanguageService,Abt=ZE.displayPartsToString,Ibt=ZE.EndOfLineState,xbt=ZE.flattenDiagnosticMessageText,Rbt=ZE.IndentStyle,RM=ZE.ScriptKind,Dbt=ZE.ScriptTarget,Cbt=ZE.TokenClass,RWe=ZE,_o={};_o["lib.d.ts"]=`/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + +/// + +/// +/// +/// +/// +`;_o["lib.decorators.d.ts"]=`/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + +/// + +/** + * The decorator context types provided to class element decorators. + */ +type ClassMemberDecoratorContext = + | ClassMethodDecoratorContext + | ClassGetterDecoratorContext + | ClassSetterDecoratorContext + | ClassFieldDecoratorContext + | ClassAccessorDecoratorContext; + +/** + * The decorator context types provided to any decorator. + */ +type DecoratorContext = + | ClassDecoratorContext + | ClassMemberDecoratorContext; + +type DecoratorMetadataObject = Record & object; + +type DecoratorMetadata = typeof globalThis extends { Symbol: { readonly metadata: symbol; }; } ? DecoratorMetadataObject : DecoratorMetadataObject | undefined; + +/** + * Context provided to a class decorator. + * @template Class The type of the decorated class associated with this context. + */ +interface ClassDecoratorContext< + Class extends abstract new (...args: any) => any = abstract new (...args: any) => any, +> { + /** The kind of element that was decorated. */ + readonly kind: "class"; + + /** The name of the decorated class. */ + readonly name: string | undefined; + + /** + * Adds a callback to be invoked after the class definition has been finalized. + * + * @example + * \`\`\`ts + * function customElement(name: string): ClassDecoratorFunction { + * return (target, context) => { + * context.addInitializer(function () { + * customElements.define(name, this); + * }); + * } + * } + * + * @customElement("my-element") + * class MyElement {} + * \`\`\` + */ + addInitializer(initializer: (this: Class) => void): void; + + readonly metadata: DecoratorMetadata; +} + +/** + * Context provided to a class method decorator. + * @template This The type on which the class element will be defined. For a static class element, this will be + * the type of the constructor. For a non-static class element, this will be the type of the instance. + * @template Value The type of the decorated class method. + */ +interface ClassMethodDecoratorContext< + This = unknown, + Value extends (this: This, ...args: any) => any = (this: This, ...args: any) => any, +> { + /** The kind of class element that was decorated. */ + readonly kind: "method"; + + /** The name of the decorated class element. */ + readonly name: string | symbol; + + /** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */ + readonly static: boolean; + + /** A value indicating whether the class element has a private name. */ + readonly private: boolean; + + /** An object that can be used to access the current value of the class element at runtime. */ + readonly access: { + /** + * Determines whether an object has a property with the same name as the decorated element. + */ + has(object: This): boolean; + /** + * Gets the current value of the method from the provided object. + * + * @example + * let fn = context.access.get(instance); + */ + get(object: This): Value; + }; + + /** + * Adds a callback to be invoked either before static initializers are run (when + * decorating a \`static\` element), or before instance initializers are run (when + * decorating a non-\`static\` element). + * + * @example + * \`\`\`ts + * const bound: ClassMethodDecoratorFunction = (value, context) { + * if (context.private) throw new TypeError("Not supported on private methods."); + * context.addInitializer(function () { + * this[context.name] = this[context.name].bind(this); + * }); + * } + * + * class C { + * message = "Hello"; + * + * @bound + * m() { + * console.log(this.message); + * } + * } + * \`\`\` + */ + addInitializer(initializer: (this: This) => void): void; + + readonly metadata: DecoratorMetadata; +} + +/** + * Context provided to a class getter decorator. + * @template This The type on which the class element will be defined. For a static class element, this will be + * the type of the constructor. For a non-static class element, this will be the type of the instance. + * @template Value The property type of the decorated class getter. + */ +interface ClassGetterDecoratorContext< + This = unknown, + Value = unknown, +> { + /** The kind of class element that was decorated. */ + readonly kind: "getter"; + + /** The name of the decorated class element. */ + readonly name: string | symbol; + + /** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */ + readonly static: boolean; + + /** A value indicating whether the class element has a private name. */ + readonly private: boolean; + + /** An object that can be used to access the current value of the class element at runtime. */ + readonly access: { + /** + * Determines whether an object has a property with the same name as the decorated element. + */ + has(object: This): boolean; + /** + * Invokes the getter on the provided object. + * + * @example + * let value = context.access.get(instance); + */ + get(object: This): Value; + }; + + /** + * Adds a callback to be invoked either before static initializers are run (when + * decorating a \`static\` element), or before instance initializers are run (when + * decorating a non-\`static\` element). + */ + addInitializer(initializer: (this: This) => void): void; + + readonly metadata: DecoratorMetadata; +} + +/** + * Context provided to a class setter decorator. + * @template This The type on which the class element will be defined. For a static class element, this will be + * the type of the constructor. For a non-static class element, this will be the type of the instance. + * @template Value The type of the decorated class setter. + */ +interface ClassSetterDecoratorContext< + This = unknown, + Value = unknown, +> { + /** The kind of class element that was decorated. */ + readonly kind: "setter"; + + /** The name of the decorated class element. */ + readonly name: string | symbol; + + /** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */ + readonly static: boolean; + + /** A value indicating whether the class element has a private name. */ + readonly private: boolean; + + /** An object that can be used to access the current value of the class element at runtime. */ + readonly access: { + /** + * Determines whether an object has a property with the same name as the decorated element. + */ + has(object: This): boolean; + /** + * Invokes the setter on the provided object. + * + * @example + * context.access.set(instance, value); + */ + set(object: This, value: Value): void; + }; + + /** + * Adds a callback to be invoked either before static initializers are run (when + * decorating a \`static\` element), or before instance initializers are run (when + * decorating a non-\`static\` element). + */ + addInitializer(initializer: (this: This) => void): void; + + readonly metadata: DecoratorMetadata; +} + +/** + * Context provided to a class \`accessor\` field decorator. + * @template This The type on which the class element will be defined. For a static class element, this will be + * the type of the constructor. For a non-static class element, this will be the type of the instance. + * @template Value The type of decorated class field. + */ +interface ClassAccessorDecoratorContext< + This = unknown, + Value = unknown, +> { + /** The kind of class element that was decorated. */ + readonly kind: "accessor"; + + /** The name of the decorated class element. */ + readonly name: string | symbol; + + /** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */ + readonly static: boolean; + + /** A value indicating whether the class element has a private name. */ + readonly private: boolean; + + /** An object that can be used to access the current value of the class element at runtime. */ + readonly access: { + /** + * Determines whether an object has a property with the same name as the decorated element. + */ + has(object: This): boolean; + + /** + * Invokes the getter on the provided object. + * + * @example + * let value = context.access.get(instance); + */ + get(object: This): Value; + + /** + * Invokes the setter on the provided object. + * + * @example + * context.access.set(instance, value); + */ + set(object: This, value: Value): void; + }; + + /** + * Adds a callback to be invoked either before static initializers are run (when + * decorating a \`static\` element), or before instance initializers are run (when + * decorating a non-\`static\` element). + */ + addInitializer(initializer: (this: This) => void): void; + + readonly metadata: DecoratorMetadata; +} + +/** + * Describes the target provided to class \`accessor\` field decorators. + * @template This The \`this\` type to which the target applies. + * @template Value The property type for the class \`accessor\` field. + */ +interface ClassAccessorDecoratorTarget { + /** + * Invokes the getter that was defined prior to decorator application. + * + * @example + * let value = target.get.call(instance); + */ + get(this: This): Value; + + /** + * Invokes the setter that was defined prior to decorator application. + * + * @example + * target.set.call(instance, value); + */ + set(this: This, value: Value): void; +} + +/** + * Describes the allowed return value from a class \`accessor\` field decorator. + * @template This The \`this\` type to which the target applies. + * @template Value The property type for the class \`accessor\` field. + */ +interface ClassAccessorDecoratorResult { + /** + * An optional replacement getter function. If not provided, the existing getter function is used instead. + */ + get?(this: This): Value; + + /** + * An optional replacement setter function. If not provided, the existing setter function is used instead. + */ + set?(this: This, value: Value): void; + + /** + * An optional initializer mutator that is invoked when the underlying field initializer is evaluated. + * @param value The incoming initializer value. + * @returns The replacement initializer value. + */ + init?(this: This, value: Value): Value; +} + +/** + * Context provided to a class field decorator. + * @template This The type on which the class element will be defined. For a static class element, this will be + * the type of the constructor. For a non-static class element, this will be the type of the instance. + * @template Value The type of the decorated class field. + */ +interface ClassFieldDecoratorContext< + This = unknown, + Value = unknown, +> { + /** The kind of class element that was decorated. */ + readonly kind: "field"; + + /** The name of the decorated class element. */ + readonly name: string | symbol; + + /** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */ + readonly static: boolean; + + /** A value indicating whether the class element has a private name. */ + readonly private: boolean; + + /** An object that can be used to access the current value of the class element at runtime. */ + readonly access: { + /** + * Determines whether an object has a property with the same name as the decorated element. + */ + has(object: This): boolean; + + /** + * Gets the value of the field on the provided object. + */ + get(object: This): Value; + + /** + * Sets the value of the field on the provided object. + */ + set(object: This, value: Value): void; + }; + + /** + * Adds a callback to be invoked either before static initializers are run (when + * decorating a \`static\` element), or before instance initializers are run (when + * decorating a non-\`static\` element). + */ + addInitializer(initializer: (this: This) => void): void; + + readonly metadata: DecoratorMetadata; +} +`;_o["lib.decorators.legacy.d.ts"]=`/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + +/// + +declare type ClassDecorator = (target: TFunction) => TFunction | void; +declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void; +declare type MethodDecorator = (target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor | void; +declare type ParameterDecorator = (target: Object, propertyKey: string | symbol | undefined, parameterIndex: number) => void; +`;_o["lib.dom.asynciterable.d.ts"]=`/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + +/// + +///////////////////////////// +/// Window Async Iterable APIs +///////////////////////////// + +interface FileSystemDirectoryHandle { + [Symbol.asyncIterator](): AsyncIterableIterator<[string, FileSystemHandle]>; + entries(): AsyncIterableIterator<[string, FileSystemHandle]>; + keys(): AsyncIterableIterator; + values(): AsyncIterableIterator; +} +`;_o["lib.dom.d.ts"]=`/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + +/// + +///////////////////////////// +/// Window APIs +///////////////////////////// + +interface AddEventListenerOptions extends EventListenerOptions { + once?: boolean; + passive?: boolean; + signal?: AbortSignal; +} + +interface AesCbcParams extends Algorithm { + iv: BufferSource; +} + +interface AesCtrParams extends Algorithm { + counter: BufferSource; + length: number; +} + +interface AesDerivedKeyParams extends Algorithm { + length: number; +} + +interface AesGcmParams extends Algorithm { + additionalData?: BufferSource; + iv: BufferSource; + tagLength?: number; +} + +interface AesKeyAlgorithm extends KeyAlgorithm { + length: number; +} + +interface AesKeyGenParams extends Algorithm { + length: number; +} + +interface Algorithm { + name: string; +} + +interface AnalyserOptions extends AudioNodeOptions { + fftSize?: number; + maxDecibels?: number; + minDecibels?: number; + smoothingTimeConstant?: number; +} + +interface AnimationEventInit extends EventInit { + animationName?: string; + elapsedTime?: number; + pseudoElement?: string; +} + +interface AnimationPlaybackEventInit extends EventInit { + currentTime?: CSSNumberish | null; + timelineTime?: CSSNumberish | null; +} + +interface AssignedNodesOptions { + flatten?: boolean; +} + +interface AudioBufferOptions { + length: number; + numberOfChannels?: number; + sampleRate: number; +} + +interface AudioBufferSourceOptions { + buffer?: AudioBuffer | null; + detune?: number; + loop?: boolean; + loopEnd?: number; + loopStart?: number; + playbackRate?: number; +} + +interface AudioConfiguration { + bitrate?: number; + channels?: string; + contentType: string; + samplerate?: number; + spatialRendering?: boolean; +} + +interface AudioContextOptions { + latencyHint?: AudioContextLatencyCategory | number; + sampleRate?: number; +} + +interface AudioNodeOptions { + channelCount?: number; + channelCountMode?: ChannelCountMode; + channelInterpretation?: ChannelInterpretation; +} + +interface AudioProcessingEventInit extends EventInit { + inputBuffer: AudioBuffer; + outputBuffer: AudioBuffer; + playbackTime: number; +} + +interface AudioTimestamp { + contextTime?: number; + performanceTime?: DOMHighResTimeStamp; +} + +interface AudioWorkletNodeOptions extends AudioNodeOptions { + numberOfInputs?: number; + numberOfOutputs?: number; + outputChannelCount?: number[]; + parameterData?: Record; + processorOptions?: any; +} + +interface AuthenticationExtensionsClientInputs { + appid?: string; + credProps?: boolean; + hmacCreateSecret?: boolean; + minPinLength?: boolean; +} + +interface AuthenticationExtensionsClientOutputs { + appid?: boolean; + credProps?: CredentialPropertiesOutput; + hmacCreateSecret?: boolean; +} + +interface AuthenticatorSelectionCriteria { + authenticatorAttachment?: AuthenticatorAttachment; + requireResidentKey?: boolean; + residentKey?: ResidentKeyRequirement; + userVerification?: UserVerificationRequirement; +} + +interface AvcEncoderConfig { + format?: AvcBitstreamFormat; +} + +interface BiquadFilterOptions extends AudioNodeOptions { + Q?: number; + detune?: number; + frequency?: number; + gain?: number; + type?: BiquadFilterType; +} + +interface BlobEventInit { + data: Blob; + timecode?: DOMHighResTimeStamp; +} + +interface BlobPropertyBag { + endings?: EndingType; + type?: string; +} + +interface CSSMatrixComponentOptions { + is2D?: boolean; +} + +interface CSSNumericType { + angle?: number; + flex?: number; + frequency?: number; + length?: number; + percent?: number; + percentHint?: CSSNumericBaseType; + resolution?: number; + time?: number; +} + +interface CSSStyleSheetInit { + baseURL?: string; + disabled?: boolean; + media?: MediaList | string; +} + +interface CacheQueryOptions { + ignoreMethod?: boolean; + ignoreSearch?: boolean; + ignoreVary?: boolean; +} + +interface CanvasRenderingContext2DSettings { + alpha?: boolean; + colorSpace?: PredefinedColorSpace; + desynchronized?: boolean; + willReadFrequently?: boolean; +} + +interface ChannelMergerOptions extends AudioNodeOptions { + numberOfInputs?: number; +} + +interface ChannelSplitterOptions extends AudioNodeOptions { + numberOfOutputs?: number; +} + +interface CheckVisibilityOptions { + checkOpacity?: boolean; + checkVisibilityCSS?: boolean; +} + +interface ClientQueryOptions { + includeUncontrolled?: boolean; + type?: ClientTypes; +} + +interface ClipboardEventInit extends EventInit { + clipboardData?: DataTransfer | null; +} + +interface ClipboardItemOptions { + presentationStyle?: PresentationStyle; +} + +interface CloseEventInit extends EventInit { + code?: number; + reason?: string; + wasClean?: boolean; +} + +interface CompositionEventInit extends UIEventInit { + data?: string; +} + +interface ComputedEffectTiming extends EffectTiming { + activeDuration?: CSSNumberish; + currentIteration?: number | null; + endTime?: CSSNumberish; + localTime?: CSSNumberish | null; + progress?: number | null; + startTime?: CSSNumberish; +} + +interface ComputedKeyframe { + composite: CompositeOperationOrAuto; + computedOffset: number; + easing: string; + offset: number | null; + [property: string]: string | number | null | undefined; +} + +interface ConstantSourceOptions { + offset?: number; +} + +interface ConstrainBooleanParameters { + exact?: boolean; + ideal?: boolean; +} + +interface ConstrainDOMStringParameters { + exact?: string | string[]; + ideal?: string | string[]; +} + +interface ConstrainDoubleRange extends DoubleRange { + exact?: number; + ideal?: number; +} + +interface ConstrainULongRange extends ULongRange { + exact?: number; + ideal?: number; +} + +interface ConvolverOptions extends AudioNodeOptions { + buffer?: AudioBuffer | null; + disableNormalization?: boolean; +} + +interface CredentialCreationOptions { + publicKey?: PublicKeyCredentialCreationOptions; + signal?: AbortSignal; +} + +interface CredentialPropertiesOutput { + rk?: boolean; +} + +interface CredentialRequestOptions { + mediation?: CredentialMediationRequirement; + publicKey?: PublicKeyCredentialRequestOptions; + signal?: AbortSignal; +} + +interface CryptoKeyPair { + privateKey: CryptoKey; + publicKey: CryptoKey; +} + +interface CustomEventInit extends EventInit { + detail?: T; +} + +interface DOMMatrix2DInit { + a?: number; + b?: number; + c?: number; + d?: number; + e?: number; + f?: number; + m11?: number; + m12?: number; + m21?: number; + m22?: number; + m41?: number; + m42?: number; +} + +interface DOMMatrixInit extends DOMMatrix2DInit { + is2D?: boolean; + m13?: number; + m14?: number; + m23?: number; + m24?: number; + m31?: number; + m32?: number; + m33?: number; + m34?: number; + m43?: number; + m44?: number; +} + +interface DOMPointInit { + w?: number; + x?: number; + y?: number; + z?: number; +} + +interface DOMQuadInit { + p1?: DOMPointInit; + p2?: DOMPointInit; + p3?: DOMPointInit; + p4?: DOMPointInit; +} + +interface DOMRectInit { + height?: number; + width?: number; + x?: number; + y?: number; +} + +interface DelayOptions extends AudioNodeOptions { + delayTime?: number; + maxDelayTime?: number; +} + +interface DeviceMotionEventAccelerationInit { + x?: number | null; + y?: number | null; + z?: number | null; +} + +interface DeviceMotionEventInit extends EventInit { + acceleration?: DeviceMotionEventAccelerationInit; + accelerationIncludingGravity?: DeviceMotionEventAccelerationInit; + interval?: number; + rotationRate?: DeviceMotionEventRotationRateInit; +} + +interface DeviceMotionEventRotationRateInit { + alpha?: number | null; + beta?: number | null; + gamma?: number | null; +} + +interface DeviceOrientationEventInit extends EventInit { + absolute?: boolean; + alpha?: number | null; + beta?: number | null; + gamma?: number | null; +} + +interface DisplayMediaStreamOptions { + audio?: boolean | MediaTrackConstraints; + video?: boolean | MediaTrackConstraints; +} + +interface DocumentTimelineOptions { + originTime?: DOMHighResTimeStamp; +} + +interface DoubleRange { + max?: number; + min?: number; +} + +interface DragEventInit extends MouseEventInit { + dataTransfer?: DataTransfer | null; +} + +interface DynamicsCompressorOptions extends AudioNodeOptions { + attack?: number; + knee?: number; + ratio?: number; + release?: number; + threshold?: number; +} + +interface EcKeyAlgorithm extends KeyAlgorithm { + namedCurve: NamedCurve; +} + +interface EcKeyGenParams extends Algorithm { + namedCurve: NamedCurve; +} + +interface EcKeyImportParams extends Algorithm { + namedCurve: NamedCurve; +} + +interface EcdhKeyDeriveParams extends Algorithm { + public: CryptoKey; +} + +interface EcdsaParams extends Algorithm { + hash: HashAlgorithmIdentifier; +} + +interface EffectTiming { + delay?: number; + direction?: PlaybackDirection; + duration?: number | CSSNumericValue | string; + easing?: string; + endDelay?: number; + fill?: FillMode; + iterationStart?: number; + iterations?: number; + playbackRate?: number; +} + +interface ElementCreationOptions { + is?: string; +} + +interface ElementDefinitionOptions { + extends?: string; +} + +interface EncodedVideoChunkInit { + data: AllowSharedBufferSource; + duration?: number; + timestamp: number; + type: EncodedVideoChunkType; +} + +interface EncodedVideoChunkMetadata { + decoderConfig?: VideoDecoderConfig; +} + +interface ErrorEventInit extends EventInit { + colno?: number; + error?: any; + filename?: string; + lineno?: number; + message?: string; +} + +interface EventInit { + bubbles?: boolean; + cancelable?: boolean; + composed?: boolean; +} + +interface EventListenerOptions { + capture?: boolean; +} + +interface EventModifierInit extends UIEventInit { + altKey?: boolean; + ctrlKey?: boolean; + metaKey?: boolean; + modifierAltGraph?: boolean; + modifierCapsLock?: boolean; + modifierFn?: boolean; + modifierFnLock?: boolean; + modifierHyper?: boolean; + modifierNumLock?: boolean; + modifierScrollLock?: boolean; + modifierSuper?: boolean; + modifierSymbol?: boolean; + modifierSymbolLock?: boolean; + shiftKey?: boolean; +} + +interface EventSourceInit { + withCredentials?: boolean; +} + +interface FilePropertyBag extends BlobPropertyBag { + lastModified?: number; +} + +interface FileSystemCreateWritableOptions { + keepExistingData?: boolean; +} + +interface FileSystemFlags { + create?: boolean; + exclusive?: boolean; +} + +interface FileSystemGetDirectoryOptions { + create?: boolean; +} + +interface FileSystemGetFileOptions { + create?: boolean; +} + +interface FileSystemRemoveOptions { + recursive?: boolean; +} + +interface FocusEventInit extends UIEventInit { + relatedTarget?: EventTarget | null; +} + +interface FocusOptions { + preventScroll?: boolean; +} + +interface FontFaceDescriptors { + ascentOverride?: string; + descentOverride?: string; + display?: FontDisplay; + featureSettings?: string; + lineGapOverride?: string; + stretch?: string; + style?: string; + unicodeRange?: string; + weight?: string; +} + +interface FontFaceSetLoadEventInit extends EventInit { + fontfaces?: FontFace[]; +} + +interface FormDataEventInit extends EventInit { + formData: FormData; +} + +interface FullscreenOptions { + navigationUI?: FullscreenNavigationUI; +} + +interface GainOptions extends AudioNodeOptions { + gain?: number; +} + +interface GamepadEffectParameters { + duration?: number; + startDelay?: number; + strongMagnitude?: number; + weakMagnitude?: number; +} + +interface GamepadEventInit extends EventInit { + gamepad: Gamepad; +} + +interface GetAnimationsOptions { + subtree?: boolean; +} + +interface GetNotificationOptions { + tag?: string; +} + +interface GetRootNodeOptions { + composed?: boolean; +} + +interface HashChangeEventInit extends EventInit { + newURL?: string; + oldURL?: string; +} + +interface HkdfParams extends Algorithm { + hash: HashAlgorithmIdentifier; + info: BufferSource; + salt: BufferSource; +} + +interface HmacImportParams extends Algorithm { + hash: HashAlgorithmIdentifier; + length?: number; +} + +interface HmacKeyAlgorithm extends KeyAlgorithm { + hash: KeyAlgorithm; + length: number; +} + +interface HmacKeyGenParams extends Algorithm { + hash: HashAlgorithmIdentifier; + length?: number; +} + +interface IDBDatabaseInfo { + name?: string; + version?: number; +} + +interface IDBIndexParameters { + multiEntry?: boolean; + unique?: boolean; +} + +interface IDBObjectStoreParameters { + autoIncrement?: boolean; + keyPath?: string | string[] | null; +} + +interface IDBTransactionOptions { + durability?: IDBTransactionDurability; +} + +interface IDBVersionChangeEventInit extends EventInit { + newVersion?: number | null; + oldVersion?: number; +} + +interface IIRFilterOptions extends AudioNodeOptions { + feedback: number[]; + feedforward: number[]; +} + +interface IdleRequestOptions { + timeout?: number; +} + +interface ImageBitmapOptions { + colorSpaceConversion?: ColorSpaceConversion; + imageOrientation?: ImageOrientation; + premultiplyAlpha?: PremultiplyAlpha; + resizeHeight?: number; + resizeQuality?: ResizeQuality; + resizeWidth?: number; +} + +interface ImageBitmapRenderingContextSettings { + alpha?: boolean; +} + +interface ImageDataSettings { + colorSpace?: PredefinedColorSpace; +} + +interface ImageEncodeOptions { + quality?: number; + type?: string; +} + +interface ImportMeta { + url: string; +} + +interface InputEventInit extends UIEventInit { + data?: string | null; + dataTransfer?: DataTransfer | null; + inputType?: string; + isComposing?: boolean; + targetRanges?: StaticRange[]; +} + +interface IntersectionObserverEntryInit { + boundingClientRect: DOMRectInit; + intersectionRatio: number; + intersectionRect: DOMRectInit; + isIntersecting: boolean; + rootBounds: DOMRectInit | null; + target: Element; + time: DOMHighResTimeStamp; +} + +interface IntersectionObserverInit { + root?: Element | Document | null; + rootMargin?: string; + threshold?: number | number[]; +} + +interface JsonWebKey { + alg?: string; + crv?: string; + d?: string; + dp?: string; + dq?: string; + e?: string; + ext?: boolean; + k?: string; + key_ops?: string[]; + kty?: string; + n?: string; + oth?: RsaOtherPrimesInfo[]; + p?: string; + q?: string; + qi?: string; + use?: string; + x?: string; + y?: string; +} + +interface KeyAlgorithm { + name: string; +} + +interface KeyboardEventInit extends EventModifierInit { + /** @deprecated */ + charCode?: number; + code?: string; + isComposing?: boolean; + key?: string; + /** @deprecated */ + keyCode?: number; + location?: number; + repeat?: boolean; +} + +interface Keyframe { + composite?: CompositeOperationOrAuto; + easing?: string; + offset?: number | null; + [property: string]: string | number | null | undefined; +} + +interface KeyframeAnimationOptions extends KeyframeEffectOptions { + id?: string; + timeline?: AnimationTimeline | null; +} + +interface KeyframeEffectOptions extends EffectTiming { + composite?: CompositeOperation; + iterationComposite?: IterationCompositeOperation; + pseudoElement?: string | null; +} + +interface LockInfo { + clientId?: string; + mode?: LockMode; + name?: string; +} + +interface LockManagerSnapshot { + held?: LockInfo[]; + pending?: LockInfo[]; +} + +interface LockOptions { + ifAvailable?: boolean; + mode?: LockMode; + signal?: AbortSignal; + steal?: boolean; +} + +interface MIDIConnectionEventInit extends EventInit { + port?: MIDIPort; +} + +interface MIDIMessageEventInit extends EventInit { + data?: Uint8Array; +} + +interface MIDIOptions { + software?: boolean; + sysex?: boolean; +} + +interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo { + configuration?: MediaDecodingConfiguration; +} + +interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo { + configuration?: MediaEncodingConfiguration; +} + +interface MediaCapabilitiesInfo { + powerEfficient: boolean; + smooth: boolean; + supported: boolean; +} + +interface MediaConfiguration { + audio?: AudioConfiguration; + video?: VideoConfiguration; +} + +interface MediaDecodingConfiguration extends MediaConfiguration { + type: MediaDecodingType; +} + +interface MediaElementAudioSourceOptions { + mediaElement: HTMLMediaElement; +} + +interface MediaEncodingConfiguration extends MediaConfiguration { + type: MediaEncodingType; +} + +interface MediaEncryptedEventInit extends EventInit { + initData?: ArrayBuffer | null; + initDataType?: string; +} + +interface MediaImage { + sizes?: string; + src: string; + type?: string; +} + +interface MediaKeyMessageEventInit extends EventInit { + message: ArrayBuffer; + messageType: MediaKeyMessageType; +} + +interface MediaKeySystemConfiguration { + audioCapabilities?: MediaKeySystemMediaCapability[]; + distinctiveIdentifier?: MediaKeysRequirement; + initDataTypes?: string[]; + label?: string; + persistentState?: MediaKeysRequirement; + sessionTypes?: string[]; + videoCapabilities?: MediaKeySystemMediaCapability[]; +} + +interface MediaKeySystemMediaCapability { + contentType?: string; + encryptionScheme?: string | null; + robustness?: string; +} + +interface MediaMetadataInit { + album?: string; + artist?: string; + artwork?: MediaImage[]; + title?: string; +} + +interface MediaPositionState { + duration?: number; + playbackRate?: number; + position?: number; +} + +interface MediaQueryListEventInit extends EventInit { + matches?: boolean; + media?: string; +} + +interface MediaRecorderOptions { + audioBitsPerSecond?: number; + bitsPerSecond?: number; + mimeType?: string; + videoBitsPerSecond?: number; +} + +interface MediaSessionActionDetails { + action: MediaSessionAction; + fastSeek?: boolean; + seekOffset?: number; + seekTime?: number; +} + +interface MediaStreamAudioSourceOptions { + mediaStream: MediaStream; +} + +interface MediaStreamConstraints { + audio?: boolean | MediaTrackConstraints; + peerIdentity?: string; + preferCurrentTab?: boolean; + video?: boolean | MediaTrackConstraints; +} + +interface MediaStreamTrackEventInit extends EventInit { + track: MediaStreamTrack; +} + +interface MediaTrackCapabilities { + aspectRatio?: DoubleRange; + autoGainControl?: boolean[]; + channelCount?: ULongRange; + deviceId?: string; + displaySurface?: string; + echoCancellation?: boolean[]; + facingMode?: string[]; + frameRate?: DoubleRange; + groupId?: string; + height?: ULongRange; + noiseSuppression?: boolean[]; + sampleRate?: ULongRange; + sampleSize?: ULongRange; + width?: ULongRange; +} + +interface MediaTrackConstraintSet { + aspectRatio?: ConstrainDouble; + autoGainControl?: ConstrainBoolean; + channelCount?: ConstrainULong; + deviceId?: ConstrainDOMString; + displaySurface?: ConstrainDOMString; + echoCancellation?: ConstrainBoolean; + facingMode?: ConstrainDOMString; + frameRate?: ConstrainDouble; + groupId?: ConstrainDOMString; + height?: ConstrainULong; + noiseSuppression?: ConstrainBoolean; + sampleRate?: ConstrainULong; + sampleSize?: ConstrainULong; + width?: ConstrainULong; +} + +interface MediaTrackConstraints extends MediaTrackConstraintSet { + advanced?: MediaTrackConstraintSet[]; +} + +interface MediaTrackSettings { + aspectRatio?: number; + autoGainControl?: boolean; + channelCount?: number; + deviceId?: string; + displaySurface?: string; + echoCancellation?: boolean; + facingMode?: string; + frameRate?: number; + groupId?: string; + height?: number; + noiseSuppression?: boolean; + sampleRate?: number; + sampleSize?: number; + width?: number; +} + +interface MediaTrackSupportedConstraints { + aspectRatio?: boolean; + autoGainControl?: boolean; + channelCount?: boolean; + deviceId?: boolean; + displaySurface?: boolean; + echoCancellation?: boolean; + facingMode?: boolean; + frameRate?: boolean; + groupId?: boolean; + height?: boolean; + noiseSuppression?: boolean; + sampleRate?: boolean; + sampleSize?: boolean; + width?: boolean; +} + +interface MessageEventInit extends EventInit { + data?: T; + lastEventId?: string; + origin?: string; + ports?: MessagePort[]; + source?: MessageEventSource | null; +} + +interface MouseEventInit extends EventModifierInit { + button?: number; + buttons?: number; + clientX?: number; + clientY?: number; + movementX?: number; + movementY?: number; + relatedTarget?: EventTarget | null; + screenX?: number; + screenY?: number; +} + +interface MultiCacheQueryOptions extends CacheQueryOptions { + cacheName?: string; +} + +interface MutationObserverInit { + /** Set to a list of attribute local names (without namespace) if not all attribute mutations need to be observed and attributes is true or omitted. */ + attributeFilter?: string[]; + /** Set to true if attributes is true or omitted and target's attribute value before the mutation needs to be recorded. */ + attributeOldValue?: boolean; + /** Set to true if mutations to target's attributes are to be observed. Can be omitted if attributeOldValue or attributeFilter is specified. */ + attributes?: boolean; + /** Set to true if mutations to target's data are to be observed. Can be omitted if characterDataOldValue is specified. */ + characterData?: boolean; + /** Set to true if characterData is set to true or omitted and target's data before the mutation needs to be recorded. */ + characterDataOldValue?: boolean; + /** Set to true if mutations to target's children are to be observed. */ + childList?: boolean; + /** Set to true if mutations to not just target, but also target's descendants are to be observed. */ + subtree?: boolean; +} + +interface NavigationPreloadState { + enabled?: boolean; + headerValue?: string; +} + +interface NotificationOptions { + badge?: string; + body?: string; + data?: any; + dir?: NotificationDirection; + icon?: string; + lang?: string; + requireInteraction?: boolean; + silent?: boolean | null; + tag?: string; +} + +interface OfflineAudioCompletionEventInit extends EventInit { + renderedBuffer: AudioBuffer; +} + +interface OfflineAudioContextOptions { + length: number; + numberOfChannels?: number; + sampleRate: number; +} + +interface OptionalEffectTiming { + delay?: number; + direction?: PlaybackDirection; + duration?: number | string; + easing?: string; + endDelay?: number; + fill?: FillMode; + iterationStart?: number; + iterations?: number; + playbackRate?: number; +} + +interface OscillatorOptions extends AudioNodeOptions { + detune?: number; + frequency?: number; + periodicWave?: PeriodicWave; + type?: OscillatorType; +} + +interface PageTransitionEventInit extends EventInit { + persisted?: boolean; +} + +interface PannerOptions extends AudioNodeOptions { + coneInnerAngle?: number; + coneOuterAngle?: number; + coneOuterGain?: number; + distanceModel?: DistanceModelType; + maxDistance?: number; + orientationX?: number; + orientationY?: number; + orientationZ?: number; + panningModel?: PanningModelType; + positionX?: number; + positionY?: number; + positionZ?: number; + refDistance?: number; + rolloffFactor?: number; +} + +interface PaymentCurrencyAmount { + currency: string; + value: string; +} + +interface PaymentDetailsBase { + displayItems?: PaymentItem[]; + modifiers?: PaymentDetailsModifier[]; +} + +interface PaymentDetailsInit extends PaymentDetailsBase { + id?: string; + total: PaymentItem; +} + +interface PaymentDetailsModifier { + additionalDisplayItems?: PaymentItem[]; + data?: any; + supportedMethods: string; + total?: PaymentItem; +} + +interface PaymentDetailsUpdate extends PaymentDetailsBase { + paymentMethodErrors?: any; + total?: PaymentItem; +} + +interface PaymentItem { + amount: PaymentCurrencyAmount; + label: string; + pending?: boolean; +} + +interface PaymentMethodChangeEventInit extends PaymentRequestUpdateEventInit { + methodDetails?: any; + methodName?: string; +} + +interface PaymentMethodData { + data?: any; + supportedMethods: string; +} + +interface PaymentRequestUpdateEventInit extends EventInit { +} + +interface PaymentValidationErrors { + error?: string; + paymentMethod?: any; +} + +interface Pbkdf2Params extends Algorithm { + hash: HashAlgorithmIdentifier; + iterations: number; + salt: BufferSource; +} + +interface PerformanceMarkOptions { + detail?: any; + startTime?: DOMHighResTimeStamp; +} + +interface PerformanceMeasureOptions { + detail?: any; + duration?: DOMHighResTimeStamp; + end?: string | DOMHighResTimeStamp; + start?: string | DOMHighResTimeStamp; +} + +interface PerformanceObserverInit { + buffered?: boolean; + entryTypes?: string[]; + type?: string; +} + +interface PeriodicWaveConstraints { + disableNormalization?: boolean; +} + +interface PeriodicWaveOptions extends PeriodicWaveConstraints { + imag?: number[] | Float32Array; + real?: number[] | Float32Array; +} + +interface PermissionDescriptor { + name: PermissionName; +} + +interface PictureInPictureEventInit extends EventInit { + pictureInPictureWindow: PictureInPictureWindow; +} + +interface PlaneLayout { + offset: number; + stride: number; +} + +interface PointerEventInit extends MouseEventInit { + coalescedEvents?: PointerEvent[]; + height?: number; + isPrimary?: boolean; + pointerId?: number; + pointerType?: string; + predictedEvents?: PointerEvent[]; + pressure?: number; + tangentialPressure?: number; + tiltX?: number; + tiltY?: number; + twist?: number; + width?: number; +} + +interface PopStateEventInit extends EventInit { + state?: any; +} + +interface PositionOptions { + enableHighAccuracy?: boolean; + maximumAge?: number; + timeout?: number; +} + +interface ProgressEventInit extends EventInit { + lengthComputable?: boolean; + loaded?: number; + total?: number; +} + +interface PromiseRejectionEventInit extends EventInit { + promise: Promise; + reason?: any; +} + +interface PropertyDefinition { + inherits: boolean; + initialValue?: string; + name: string; + syntax?: string; +} + +interface PropertyIndexedKeyframes { + composite?: CompositeOperationOrAuto | CompositeOperationOrAuto[]; + easing?: string | string[]; + offset?: number | (number | null)[]; + [property: string]: string | string[] | number | null | (number | null)[] | undefined; +} + +interface PublicKeyCredentialCreationOptions { + attestation?: AttestationConveyancePreference; + authenticatorSelection?: AuthenticatorSelectionCriteria; + challenge: BufferSource; + excludeCredentials?: PublicKeyCredentialDescriptor[]; + extensions?: AuthenticationExtensionsClientInputs; + pubKeyCredParams: PublicKeyCredentialParameters[]; + rp: PublicKeyCredentialRpEntity; + timeout?: number; + user: PublicKeyCredentialUserEntity; +} + +interface PublicKeyCredentialDescriptor { + id: BufferSource; + transports?: AuthenticatorTransport[]; + type: PublicKeyCredentialType; +} + +interface PublicKeyCredentialEntity { + name: string; +} + +interface PublicKeyCredentialParameters { + alg: COSEAlgorithmIdentifier; + type: PublicKeyCredentialType; +} + +interface PublicKeyCredentialRequestOptions { + allowCredentials?: PublicKeyCredentialDescriptor[]; + challenge: BufferSource; + extensions?: AuthenticationExtensionsClientInputs; + rpId?: string; + timeout?: number; + userVerification?: UserVerificationRequirement; +} + +interface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity { + id?: string; +} + +interface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity { + displayName: string; + id: BufferSource; +} + +interface PushSubscriptionJSON { + endpoint?: string; + expirationTime?: EpochTimeStamp | null; + keys?: Record; +} + +interface PushSubscriptionOptionsInit { + applicationServerKey?: BufferSource | string | null; + userVisibleOnly?: boolean; +} + +interface QueuingStrategy { + highWaterMark?: number; + size?: QueuingStrategySize; +} + +interface QueuingStrategyInit { + /** + * Creates a new ByteLengthQueuingStrategy with the provided high water mark. + * + * Note that the provided high water mark will not be validated ahead of time. Instead, if it is negative, NaN, or not a number, the resulting ByteLengthQueuingStrategy will cause the corresponding stream constructor to throw. + */ + highWaterMark: number; +} + +interface RTCAnswerOptions extends RTCOfferAnswerOptions { +} + +interface RTCCertificateExpiration { + expires?: number; +} + +interface RTCConfiguration { + bundlePolicy?: RTCBundlePolicy; + certificates?: RTCCertificate[]; + iceCandidatePoolSize?: number; + iceServers?: RTCIceServer[]; + iceTransportPolicy?: RTCIceTransportPolicy; + rtcpMuxPolicy?: RTCRtcpMuxPolicy; +} + +interface RTCDTMFToneChangeEventInit extends EventInit { + tone?: string; +} + +interface RTCDataChannelEventInit extends EventInit { + channel: RTCDataChannel; +} + +interface RTCDataChannelInit { + id?: number; + maxPacketLifeTime?: number; + maxRetransmits?: number; + negotiated?: boolean; + ordered?: boolean; + protocol?: string; +} + +interface RTCDtlsFingerprint { + algorithm?: string; + value?: string; +} + +interface RTCEncodedAudioFrameMetadata { + contributingSources?: number[]; + payloadType?: number; + sequenceNumber?: number; + synchronizationSource?: number; +} + +interface RTCEncodedVideoFrameMetadata { + contributingSources?: number[]; + dependencies?: number[]; + frameId?: number; + height?: number; + payloadType?: number; + spatialIndex?: number; + synchronizationSource?: number; + temporalIndex?: number; + timestamp?: number; + width?: number; +} + +interface RTCErrorEventInit extends EventInit { + error: RTCError; +} + +interface RTCErrorInit { + errorDetail: RTCErrorDetailType; + httpRequestStatusCode?: number; + receivedAlert?: number; + sctpCauseCode?: number; + sdpLineNumber?: number; + sentAlert?: number; +} + +interface RTCIceCandidateInit { + candidate?: string; + sdpMLineIndex?: number | null; + sdpMid?: string | null; + usernameFragment?: string | null; +} + +interface RTCIceCandidatePair { + local?: RTCIceCandidate; + remote?: RTCIceCandidate; +} + +interface RTCIceCandidatePairStats extends RTCStats { + availableIncomingBitrate?: number; + availableOutgoingBitrate?: number; + bytesReceived?: number; + bytesSent?: number; + currentRoundTripTime?: number; + lastPacketReceivedTimestamp?: DOMHighResTimeStamp; + lastPacketSentTimestamp?: DOMHighResTimeStamp; + localCandidateId: string; + nominated?: boolean; + remoteCandidateId: string; + requestsReceived?: number; + requestsSent?: number; + responsesReceived?: number; + responsesSent?: number; + state: RTCStatsIceCandidatePairState; + totalRoundTripTime?: number; + transportId: string; +} + +interface RTCIceServer { + credential?: string; + urls: string | string[]; + username?: string; +} + +interface RTCInboundRtpStreamStats extends RTCReceivedRtpStreamStats { + audioLevel?: number; + bytesReceived?: number; + concealedSamples?: number; + concealmentEvents?: number; + decoderImplementation?: string; + estimatedPlayoutTimestamp?: DOMHighResTimeStamp; + fecPacketsDiscarded?: number; + fecPacketsReceived?: number; + firCount?: number; + frameHeight?: number; + frameWidth?: number; + framesDecoded?: number; + framesDropped?: number; + framesPerSecond?: number; + framesReceived?: number; + headerBytesReceived?: number; + insertedSamplesForDeceleration?: number; + jitterBufferDelay?: number; + jitterBufferEmittedCount?: number; + keyFramesDecoded?: number; + lastPacketReceivedTimestamp?: DOMHighResTimeStamp; + mid?: string; + nackCount?: number; + packetsDiscarded?: number; + pliCount?: number; + qpSum?: number; + remoteId?: string; + removedSamplesForAcceleration?: number; + silentConcealedSamples?: number; + totalAudioEnergy?: number; + totalDecodeTime?: number; + totalInterFrameDelay?: number; + totalProcessingDelay?: number; + totalSamplesDuration?: number; + totalSamplesReceived?: number; + totalSquaredInterFrameDelay?: number; + trackIdentifier: string; +} + +interface RTCLocalSessionDescriptionInit { + sdp?: string; + type?: RTCSdpType; +} + +interface RTCOfferAnswerOptions { +} + +interface RTCOfferOptions extends RTCOfferAnswerOptions { + iceRestart?: boolean; + offerToReceiveAudio?: boolean; + offerToReceiveVideo?: boolean; +} + +interface RTCOutboundRtpStreamStats extends RTCSentRtpStreamStats { + firCount?: number; + frameHeight?: number; + frameWidth?: number; + framesEncoded?: number; + framesPerSecond?: number; + framesSent?: number; + headerBytesSent?: number; + hugeFramesSent?: number; + keyFramesEncoded?: number; + mediaSourceId?: string; + nackCount?: number; + pliCount?: number; + qpSum?: number; + qualityLimitationResolutionChanges?: number; + remoteId?: string; + retransmittedBytesSent?: number; + retransmittedPacketsSent?: number; + rid?: string; + rtxSsrc?: number; + targetBitrate?: number; + totalEncodeTime?: number; + totalEncodedBytesTarget?: number; + totalPacketSendDelay?: number; +} + +interface RTCPeerConnectionIceErrorEventInit extends EventInit { + address?: string | null; + errorCode: number; + errorText?: string; + port?: number | null; + url?: string; +} + +interface RTCPeerConnectionIceEventInit extends EventInit { + candidate?: RTCIceCandidate | null; + url?: string | null; +} + +interface RTCReceivedRtpStreamStats extends RTCRtpStreamStats { + jitter?: number; + packetsLost?: number; + packetsReceived?: number; +} + +interface RTCRtcpParameters { + cname?: string; + reducedSize?: boolean; +} + +interface RTCRtpCapabilities { + codecs: RTCRtpCodecCapability[]; + headerExtensions: RTCRtpHeaderExtensionCapability[]; +} + +interface RTCRtpCodec { + channels?: number; + clockRate: number; + mimeType: string; + sdpFmtpLine?: string; +} + +interface RTCRtpCodecCapability extends RTCRtpCodec { +} + +interface RTCRtpCodecParameters extends RTCRtpCodec { + payloadType: number; +} + +interface RTCRtpCodingParameters { + rid?: string; +} + +interface RTCRtpContributingSource { + audioLevel?: number; + rtpTimestamp: number; + source: number; + timestamp: DOMHighResTimeStamp; +} + +interface RTCRtpEncodingParameters extends RTCRtpCodingParameters { + active?: boolean; + maxBitrate?: number; + maxFramerate?: number; + networkPriority?: RTCPriorityType; + priority?: RTCPriorityType; + scaleResolutionDownBy?: number; +} + +interface RTCRtpHeaderExtensionCapability { + uri: string; +} + +interface RTCRtpHeaderExtensionParameters { + encrypted?: boolean; + id: number; + uri: string; +} + +interface RTCRtpParameters { + codecs: RTCRtpCodecParameters[]; + headerExtensions: RTCRtpHeaderExtensionParameters[]; + rtcp: RTCRtcpParameters; +} + +interface RTCRtpReceiveParameters extends RTCRtpParameters { +} + +interface RTCRtpSendParameters extends RTCRtpParameters { + degradationPreference?: RTCDegradationPreference; + encodings: RTCRtpEncodingParameters[]; + transactionId: string; +} + +interface RTCRtpStreamStats extends RTCStats { + codecId?: string; + kind: string; + ssrc: number; + transportId?: string; +} + +interface RTCRtpSynchronizationSource extends RTCRtpContributingSource { +} + +interface RTCRtpTransceiverInit { + direction?: RTCRtpTransceiverDirection; + sendEncodings?: RTCRtpEncodingParameters[]; + streams?: MediaStream[]; +} + +interface RTCSentRtpStreamStats extends RTCRtpStreamStats { + bytesSent?: number; + packetsSent?: number; +} + +interface RTCSessionDescriptionInit { + sdp?: string; + type: RTCSdpType; +} + +interface RTCSetParameterOptions { +} + +interface RTCStats { + id: string; + timestamp: DOMHighResTimeStamp; + type: RTCStatsType; +} + +interface RTCTrackEventInit extends EventInit { + receiver: RTCRtpReceiver; + streams?: MediaStream[]; + track: MediaStreamTrack; + transceiver: RTCRtpTransceiver; +} + +interface RTCTransportStats extends RTCStats { + bytesReceived?: number; + bytesSent?: number; + dtlsCipher?: string; + dtlsState: RTCDtlsTransportState; + localCertificateId?: string; + remoteCertificateId?: string; + selectedCandidatePairId?: string; + srtpCipher?: string; + tlsVersion?: string; +} + +interface ReadableStreamGetReaderOptions { + /** + * Creates a ReadableStreamBYOBReader and locks the stream to the new reader. + * + * This call behaves the same way as the no-argument variant, except that it only works on readable byte streams, i.e. streams which were constructed specifically with the ability to handle "bring your own buffer" reading. The returned BYOB reader provides the ability to directly read individual chunks from the stream via its read() method, into developer-supplied buffers, allowing more precise control over allocation. + */ + mode?: ReadableStreamReaderMode; +} + +interface ReadableStreamReadDoneResult { + done: true; + value?: T; +} + +interface ReadableStreamReadValueResult { + done: false; + value: T; +} + +interface ReadableWritablePair { + readable: ReadableStream; + /** + * Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use. + * + * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader. + */ + writable: WritableStream; +} + +interface RegistrationOptions { + scope?: string; + type?: WorkerType; + updateViaCache?: ServiceWorkerUpdateViaCache; +} + +interface ReportingObserverOptions { + buffered?: boolean; + types?: string[]; +} + +interface RequestInit { + /** A BodyInit object or null to set request's body. */ + body?: BodyInit | null; + /** A string indicating how the request will interact with the browser's cache to set request's cache. */ + cache?: RequestCache; + /** A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request's credentials. */ + credentials?: RequestCredentials; + /** A Headers object, an object literal, or an array of two-item arrays to set request's headers. */ + headers?: HeadersInit; + /** A cryptographic hash of the resource to be fetched by request. Sets request's integrity. */ + integrity?: string; + /** A boolean to set request's keepalive. */ + keepalive?: boolean; + /** A string to set request's method. */ + method?: string; + /** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. */ + mode?: RequestMode; + priority?: RequestPriority; + /** A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect. */ + redirect?: RequestRedirect; + /** A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer. */ + referrer?: string; + /** A referrer policy to set request's referrerPolicy. */ + referrerPolicy?: ReferrerPolicy; + /** An AbortSignal to set request's signal. */ + signal?: AbortSignal | null; + /** Can only be null. Used to disassociate request from any Window. */ + window?: null; +} + +interface ResizeObserverOptions { + box?: ResizeObserverBoxOptions; +} + +interface ResponseInit { + headers?: HeadersInit; + status?: number; + statusText?: string; +} + +interface RsaHashedImportParams extends Algorithm { + hash: HashAlgorithmIdentifier; +} + +interface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm { + hash: KeyAlgorithm; +} + +interface RsaHashedKeyGenParams extends RsaKeyGenParams { + hash: HashAlgorithmIdentifier; +} + +interface RsaKeyAlgorithm extends KeyAlgorithm { + modulusLength: number; + publicExponent: BigInteger; +} + +interface RsaKeyGenParams extends Algorithm { + modulusLength: number; + publicExponent: BigInteger; +} + +interface RsaOaepParams extends Algorithm { + label?: BufferSource; +} + +interface RsaOtherPrimesInfo { + d?: string; + r?: string; + t?: string; +} + +interface RsaPssParams extends Algorithm { + saltLength: number; +} + +interface SVGBoundingBoxOptions { + clipped?: boolean; + fill?: boolean; + markers?: boolean; + stroke?: boolean; +} + +interface ScrollIntoViewOptions extends ScrollOptions { + block?: ScrollLogicalPosition; + inline?: ScrollLogicalPosition; +} + +interface ScrollOptions { + behavior?: ScrollBehavior; +} + +interface ScrollToOptions extends ScrollOptions { + left?: number; + top?: number; +} + +interface SecurityPolicyViolationEventInit extends EventInit { + blockedURI?: string; + columnNumber?: number; + disposition: SecurityPolicyViolationEventDisposition; + documentURI: string; + effectiveDirective: string; + lineNumber?: number; + originalPolicy: string; + referrer?: string; + sample?: string; + sourceFile?: string; + statusCode: number; + violatedDirective: string; +} + +interface ShadowRootInit { + delegatesFocus?: boolean; + mode: ShadowRootMode; + slotAssignment?: SlotAssignmentMode; +} + +interface ShareData { + files?: File[]; + text?: string; + title?: string; + url?: string; +} + +interface SpeechSynthesisErrorEventInit extends SpeechSynthesisEventInit { + error: SpeechSynthesisErrorCode; +} + +interface SpeechSynthesisEventInit extends EventInit { + charIndex?: number; + charLength?: number; + elapsedTime?: number; + name?: string; + utterance: SpeechSynthesisUtterance; +} + +interface StaticRangeInit { + endContainer: Node; + endOffset: number; + startContainer: Node; + startOffset: number; +} + +interface StereoPannerOptions extends AudioNodeOptions { + pan?: number; +} + +interface StorageEstimate { + quota?: number; + usage?: number; +} + +interface StorageEventInit extends EventInit { + key?: string | null; + newValue?: string | null; + oldValue?: string | null; + storageArea?: Storage | null; + url?: string; +} + +interface StreamPipeOptions { + preventAbort?: boolean; + preventCancel?: boolean; + /** + * Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered. + * + * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader. + * + * Errors and closures of the source and destination streams propagate as follows: + * + * An error in this source readable stream will abort destination, unless preventAbort is truthy. The returned promise will be rejected with the source's error, or with any error that occurs during aborting the destination. + * + * An error in destination will cancel this source readable stream, unless preventCancel is truthy. The returned promise will be rejected with the destination's error, or with any error that occurs during canceling the source. + * + * When this source readable stream closes, destination will be closed, unless preventClose is truthy. The returned promise will be fulfilled once this process completes, unless an error is encountered while closing the destination, in which case it will be rejected with that error. + * + * If destination starts out closed or closing, this source readable stream will be canceled, unless preventCancel is true. The returned promise will be rejected with an error indicating piping to a closed stream failed, or with any error that occurs during canceling the source. + * + * The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set. + */ + preventClose?: boolean; + signal?: AbortSignal; +} + +interface StructuredSerializeOptions { + transfer?: Transferable[]; +} + +interface SubmitEventInit extends EventInit { + submitter?: HTMLElement | null; +} + +interface TextDecodeOptions { + stream?: boolean; +} + +interface TextDecoderOptions { + fatal?: boolean; + ignoreBOM?: boolean; +} + +interface TextEncoderEncodeIntoResult { + read: number; + written: number; +} + +interface ToggleEventInit extends EventInit { + newState?: string; + oldState?: string; +} + +interface TouchEventInit extends EventModifierInit { + changedTouches?: Touch[]; + targetTouches?: Touch[]; + touches?: Touch[]; +} + +interface TouchInit { + altitudeAngle?: number; + azimuthAngle?: number; + clientX?: number; + clientY?: number; + force?: number; + identifier: number; + pageX?: number; + pageY?: number; + radiusX?: number; + radiusY?: number; + rotationAngle?: number; + screenX?: number; + screenY?: number; + target: EventTarget; + touchType?: TouchType; +} + +interface TrackEventInit extends EventInit { + track?: TextTrack | null; +} + +interface Transformer { + flush?: TransformerFlushCallback; + readableType?: undefined; + start?: TransformerStartCallback; + transform?: TransformerTransformCallback; + writableType?: undefined; +} + +interface TransitionEventInit extends EventInit { + elapsedTime?: number; + propertyName?: string; + pseudoElement?: string; +} + +interface UIEventInit extends EventInit { + detail?: number; + view?: Window | null; + /** @deprecated */ + which?: number; +} + +interface ULongRange { + max?: number; + min?: number; +} + +interface UnderlyingByteSource { + autoAllocateChunkSize?: number; + cancel?: UnderlyingSourceCancelCallback; + pull?: (controller: ReadableByteStreamController) => void | PromiseLike; + start?: (controller: ReadableByteStreamController) => any; + type: "bytes"; +} + +interface UnderlyingDefaultSource { + cancel?: UnderlyingSourceCancelCallback; + pull?: (controller: ReadableStreamDefaultController) => void | PromiseLike; + start?: (controller: ReadableStreamDefaultController) => any; + type?: undefined; +} + +interface UnderlyingSink { + abort?: UnderlyingSinkAbortCallback; + close?: UnderlyingSinkCloseCallback; + start?: UnderlyingSinkStartCallback; + type?: undefined; + write?: UnderlyingSinkWriteCallback; +} + +interface UnderlyingSource { + autoAllocateChunkSize?: number; + cancel?: UnderlyingSourceCancelCallback; + pull?: UnderlyingSourcePullCallback; + start?: UnderlyingSourceStartCallback; + type?: ReadableStreamType; +} + +interface ValidityStateFlags { + badInput?: boolean; + customError?: boolean; + patternMismatch?: boolean; + rangeOverflow?: boolean; + rangeUnderflow?: boolean; + stepMismatch?: boolean; + tooLong?: boolean; + tooShort?: boolean; + typeMismatch?: boolean; + valueMissing?: boolean; +} + +interface VideoColorSpaceInit { + fullRange?: boolean | null; + matrix?: VideoMatrixCoefficients | null; + primaries?: VideoColorPrimaries | null; + transfer?: VideoTransferCharacteristics | null; +} + +interface VideoConfiguration { + bitrate: number; + colorGamut?: ColorGamut; + contentType: string; + framerate: number; + hdrMetadataType?: HdrMetadataType; + height: number; + scalabilityMode?: string; + transferFunction?: TransferFunction; + width: number; +} + +interface VideoDecoderConfig { + codec: string; + codedHeight?: number; + codedWidth?: number; + colorSpace?: VideoColorSpaceInit; + description?: AllowSharedBufferSource; + displayAspectHeight?: number; + displayAspectWidth?: number; + hardwareAcceleration?: HardwareAcceleration; + optimizeForLatency?: boolean; +} + +interface VideoDecoderInit { + error: WebCodecsErrorCallback; + output: VideoFrameOutputCallback; +} + +interface VideoDecoderSupport { + config?: VideoDecoderConfig; + supported?: boolean; +} + +interface VideoEncoderConfig { + alpha?: AlphaOption; + avc?: AvcEncoderConfig; + bitrate?: number; + bitrateMode?: VideoEncoderBitrateMode; + codec: string; + displayHeight?: number; + displayWidth?: number; + framerate?: number; + hardwareAcceleration?: HardwareAcceleration; + height: number; + latencyMode?: LatencyMode; + scalabilityMode?: string; + width: number; +} + +interface VideoEncoderEncodeOptions { + keyFrame?: boolean; +} + +interface VideoEncoderInit { + error: WebCodecsErrorCallback; + output: EncodedVideoChunkOutputCallback; +} + +interface VideoEncoderSupport { + config?: VideoEncoderConfig; + supported?: boolean; +} + +interface VideoFrameBufferInit { + codedHeight: number; + codedWidth: number; + colorSpace?: VideoColorSpaceInit; + displayHeight?: number; + displayWidth?: number; + duration?: number; + format: VideoPixelFormat; + layout?: PlaneLayout[]; + timestamp: number; + visibleRect?: DOMRectInit; +} + +interface VideoFrameCallbackMetadata { + captureTime?: DOMHighResTimeStamp; + expectedDisplayTime: DOMHighResTimeStamp; + height: number; + mediaTime: number; + presentationTime: DOMHighResTimeStamp; + presentedFrames: number; + processingDuration?: number; + receiveTime?: DOMHighResTimeStamp; + rtpTimestamp?: number; + width: number; +} + +interface VideoFrameCopyToOptions { + layout?: PlaneLayout[]; + rect?: DOMRectInit; +} + +interface VideoFrameInit { + alpha?: AlphaOption; + displayHeight?: number; + displayWidth?: number; + duration?: number; + timestamp?: number; + visibleRect?: DOMRectInit; +} + +interface WaveShaperOptions extends AudioNodeOptions { + curve?: number[] | Float32Array; + oversample?: OverSampleType; +} + +interface WebGLContextAttributes { + alpha?: boolean; + antialias?: boolean; + depth?: boolean; + desynchronized?: boolean; + failIfMajorPerformanceCaveat?: boolean; + powerPreference?: WebGLPowerPreference; + premultipliedAlpha?: boolean; + preserveDrawingBuffer?: boolean; + stencil?: boolean; +} + +interface WebGLContextEventInit extends EventInit { + statusMessage?: string; +} + +interface WebTransportCloseInfo { + closeCode?: number; + reason?: string; +} + +interface WebTransportErrorOptions { + source?: WebTransportErrorSource; + streamErrorCode?: number | null; +} + +interface WebTransportHash { + algorithm?: string; + value?: BufferSource; +} + +interface WebTransportOptions { + allowPooling?: boolean; + congestionControl?: WebTransportCongestionControl; + requireUnreliable?: boolean; + serverCertificateHashes?: WebTransportHash[]; +} + +interface WebTransportSendStreamOptions { + sendOrder?: number; +} + +interface WheelEventInit extends MouseEventInit { + deltaMode?: number; + deltaX?: number; + deltaY?: number; + deltaZ?: number; +} + +interface WindowPostMessageOptions extends StructuredSerializeOptions { + targetOrigin?: string; +} + +interface WorkerOptions { + credentials?: RequestCredentials; + name?: string; + type?: WorkerType; +} + +interface WorkletOptions { + credentials?: RequestCredentials; +} + +interface WriteParams { + data?: BufferSource | Blob | string | null; + position?: number | null; + size?: number | null; + type: WriteCommandType; +} + +type NodeFilter = ((node: Node) => number) | { acceptNode(node: Node): number; }; + +declare var NodeFilter: { + readonly FILTER_ACCEPT: 1; + readonly FILTER_REJECT: 2; + readonly FILTER_SKIP: 3; + readonly SHOW_ALL: 0xFFFFFFFF; + readonly SHOW_ELEMENT: 0x1; + readonly SHOW_ATTRIBUTE: 0x2; + readonly SHOW_TEXT: 0x4; + readonly SHOW_CDATA_SECTION: 0x8; + readonly SHOW_ENTITY_REFERENCE: 0x10; + readonly SHOW_ENTITY: 0x20; + readonly SHOW_PROCESSING_INSTRUCTION: 0x40; + readonly SHOW_COMMENT: 0x80; + readonly SHOW_DOCUMENT: 0x100; + readonly SHOW_DOCUMENT_TYPE: 0x200; + readonly SHOW_DOCUMENT_FRAGMENT: 0x400; + readonly SHOW_NOTATION: 0x800; +}; + +type XPathNSResolver = ((prefix: string | null) => string | null) | { lookupNamespaceURI(prefix: string | null): string | null; }; + +/** + * The ANGLE_instanced_arrays extension is part of the WebGL API and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays) + */ +interface ANGLE_instanced_arrays { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawArraysInstancedANGLE) */ + drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawElementsInstancedANGLE) */ + drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/vertexAttribDivisorANGLE) */ + vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void; + readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: 0x88FE; +} + +interface ARIAMixin { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaAtomic) */ + ariaAtomic: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaAutoComplete) */ + ariaAutoComplete: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaBusy) */ + ariaBusy: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaChecked) */ + ariaChecked: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColCount) */ + ariaColCount: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColIndex) */ + ariaColIndex: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColSpan) */ + ariaColSpan: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaCurrent) */ + ariaCurrent: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaDescription) */ + ariaDescription: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaDisabled) */ + ariaDisabled: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaExpanded) */ + ariaExpanded: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaHasPopup) */ + ariaHasPopup: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaHidden) */ + ariaHidden: string | null; + ariaInvalid: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaKeyShortcuts) */ + ariaKeyShortcuts: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLabel) */ + ariaLabel: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLevel) */ + ariaLevel: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLive) */ + ariaLive: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaModal) */ + ariaModal: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaMultiLine) */ + ariaMultiLine: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaMultiSelectable) */ + ariaMultiSelectable: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaOrientation) */ + ariaOrientation: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaPlaceholder) */ + ariaPlaceholder: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaPosInSet) */ + ariaPosInSet: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaPressed) */ + ariaPressed: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaReadOnly) */ + ariaReadOnly: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRequired) */ + ariaRequired: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRoleDescription) */ + ariaRoleDescription: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowCount) */ + ariaRowCount: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowIndex) */ + ariaRowIndex: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowSpan) */ + ariaRowSpan: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSelected) */ + ariaSelected: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSetSize) */ + ariaSetSize: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSort) */ + ariaSort: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueMax) */ + ariaValueMax: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueMin) */ + ariaValueMin: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueNow) */ + ariaValueNow: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueText) */ + ariaValueText: string | null; + role: string | null; +} + +/** + * A controller object that allows you to abort one or more DOM requests as and when desired. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController) + */ +interface AbortController { + /** + * Returns the AbortSignal object associated with this object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/signal) + */ + readonly signal: AbortSignal; + /** + * Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/abort) + */ + abort(reason?: any): void; +} + +declare var AbortController: { + prototype: AbortController; + new(): AbortController; +}; + +interface AbortSignalEventMap { + "abort": Event; +} + +/** + * A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal) + */ +interface AbortSignal extends EventTarget { + /** + * Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/aborted) + */ + readonly aborted: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_event) */ + onabort: ((this: AbortSignal, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/reason) */ + readonly reason: any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/throwIfAborted) */ + throwIfAborted(): void; + addEventListener(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var AbortSignal: { + prototype: AbortSignal; + new(): AbortSignal; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static) */ + abort(reason?: any): AbortSignal; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout_static) */ + timeout(milliseconds: number): AbortSignal; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange) */ +interface AbstractRange { + /** + * Returns true if range is collapsed, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/collapsed) + */ + readonly collapsed: boolean; + /** + * Returns range's end node. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/endContainer) + */ + readonly endContainer: Node; + /** + * Returns range's end offset. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/endOffset) + */ + readonly endOffset: number; + /** + * Returns range's start node. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/startContainer) + */ + readonly startContainer: Node; + /** + * Returns range's start offset. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/startOffset) + */ + readonly startOffset: number; +} + +declare var AbstractRange: { + prototype: AbstractRange; + new(): AbstractRange; +}; + +interface AbstractWorkerEventMap { + "error": ErrorEvent; +} + +interface AbstractWorker { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/error_event) */ + onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null; + addEventListener(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +/** + * A node able to provide real-time frequency and time-domain analysis information. It is an AudioNode that passes the audio stream unchanged from the input to the output, but allows you to take the generated data, process it, and create audio visualizations. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode) + */ +interface AnalyserNode extends AudioNode { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/fftSize) */ + fftSize: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/frequencyBinCount) */ + readonly frequencyBinCount: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/maxDecibels) */ + maxDecibels: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/minDecibels) */ + minDecibels: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/smoothingTimeConstant) */ + smoothingTimeConstant: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getByteFrequencyData) */ + getByteFrequencyData(array: Uint8Array): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getByteTimeDomainData) */ + getByteTimeDomainData(array: Uint8Array): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getFloatFrequencyData) */ + getFloatFrequencyData(array: Float32Array): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getFloatTimeDomainData) */ + getFloatTimeDomainData(array: Float32Array): void; +} + +declare var AnalyserNode: { + prototype: AnalyserNode; + new(context: BaseAudioContext, options?: AnalyserOptions): AnalyserNode; +}; + +interface Animatable { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animate) */ + animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAnimations) */ + getAnimations(options?: GetAnimationsOptions): Animation[]; +} + +interface AnimationEventMap { + "cancel": AnimationPlaybackEvent; + "finish": AnimationPlaybackEvent; + "remove": Event; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation) */ +interface Animation extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/currentTime) */ + currentTime: CSSNumberish | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/effect) */ + effect: AnimationEffect | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finished) */ + readonly finished: Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/id) */ + id: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/cancel_event) */ + oncancel: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finish_event) */ + onfinish: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/remove_event) */ + onremove: ((this: Animation, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/pending) */ + readonly pending: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/playState) */ + readonly playState: AnimationPlayState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/playbackRate) */ + playbackRate: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/ready) */ + readonly ready: Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/replaceState) */ + readonly replaceState: AnimationReplaceState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/startTime) */ + startTime: CSSNumberish | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/timeline) */ + timeline: AnimationTimeline | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/cancel) */ + cancel(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/commitStyles) */ + commitStyles(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finish) */ + finish(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/pause) */ + pause(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/persist) */ + persist(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/play) */ + play(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/reverse) */ + reverse(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/updatePlaybackRate) */ + updatePlaybackRate(playbackRate: number): void; + addEventListener(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var Animation: { + prototype: Animation; + new(effect?: AnimationEffect | null, timeline?: AnimationTimeline | null): Animation; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect) */ +interface AnimationEffect { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/getComputedTiming) */ + getComputedTiming(): ComputedEffectTiming; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/getTiming) */ + getTiming(): EffectTiming; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/updateTiming) */ + updateTiming(timing?: OptionalEffectTiming): void; +} + +declare var AnimationEffect: { + prototype: AnimationEffect; + new(): AnimationEffect; +}; + +/** + * Events providing information related to animations. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent) + */ +interface AnimationEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/animationName) */ + readonly animationName: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/elapsedTime) */ + readonly elapsedTime: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/pseudoElement) */ + readonly pseudoElement: string; +} + +declare var AnimationEvent: { + prototype: AnimationEvent; + new(type: string, animationEventInitDict?: AnimationEventInit): AnimationEvent; +}; + +interface AnimationFrameProvider { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame) */ + cancelAnimationFrame(handle: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame) */ + requestAnimationFrame(callback: FrameRequestCallback): number; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent) */ +interface AnimationPlaybackEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent/currentTime) */ + readonly currentTime: CSSNumberish | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent/timelineTime) */ + readonly timelineTime: CSSNumberish | null; +} + +declare var AnimationPlaybackEvent: { + prototype: AnimationPlaybackEvent; + new(type: string, eventInitDict?: AnimationPlaybackEventInit): AnimationPlaybackEvent; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline) */ +interface AnimationTimeline { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/currentTime) */ + readonly currentTime: CSSNumberish | null; +} + +declare var AnimationTimeline: { + prototype: AnimationTimeline; + new(): AnimationTimeline; +}; + +/** + * A DOM element's attribute as an object. In most DOM methods, you will probably directly retrieve the attribute as a string (e.g., Element.getAttribute(), but certain functions (e.g., Element.getAttributeNode()) or means of iterating give Attr types. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr) + */ +interface Attr extends Node { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/localName) */ + readonly localName: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/name) */ + readonly name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/namespaceURI) */ + readonly namespaceURI: string | null; + readonly ownerDocument: Document; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/ownerElement) */ + readonly ownerElement: Element | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/prefix) */ + readonly prefix: string | null; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/specified) + */ + readonly specified: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/value) */ + value: string; +} + +declare var Attr: { + prototype: Attr; + new(): Attr; +}; + +/** + * A short audio asset residing in memory, created from an audio file using the AudioContext.decodeAudioData() method, or from raw data using AudioContext.createBuffer(). Once put into an AudioBuffer, the audio can then be played by being passed into an AudioBufferSourceNode. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer) + */ +interface AudioBuffer { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/duration) */ + readonly duration: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/length) */ + readonly length: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/numberOfChannels) */ + readonly numberOfChannels: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/sampleRate) */ + readonly sampleRate: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/copyFromChannel) */ + copyFromChannel(destination: Float32Array, channelNumber: number, bufferOffset?: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/copyToChannel) */ + copyToChannel(source: Float32Array, channelNumber: number, bufferOffset?: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/getChannelData) */ + getChannelData(channel: number): Float32Array; +} + +declare var AudioBuffer: { + prototype: AudioBuffer; + new(options: AudioBufferOptions): AudioBuffer; +}; + +/** + * An AudioScheduledSourceNode which represents an audio source consisting of in-memory audio data, stored in an AudioBuffer. It's especially useful for playing back audio which has particularly stringent timing accuracy requirements, such as for sounds that must match a specific rhythm and can be kept in memory rather than being played from disk or the network. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode) + */ +interface AudioBufferSourceNode extends AudioScheduledSourceNode { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/buffer) */ + buffer: AudioBuffer | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/detune) */ + readonly detune: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loop) */ + loop: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loopEnd) */ + loopEnd: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loopStart) */ + loopStart: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/playbackRate) */ + readonly playbackRate: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/start) */ + start(when?: number, offset?: number, duration?: number): void; + addEventListener(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var AudioBufferSourceNode: { + prototype: AudioBufferSourceNode; + new(context: BaseAudioContext, options?: AudioBufferSourceOptions): AudioBufferSourceNode; +}; + +/** + * An audio-processing graph built from audio modules linked together, each represented by an AudioNode. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext) + */ +interface AudioContext extends BaseAudioContext { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/baseLatency) */ + readonly baseLatency: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/outputLatency) */ + readonly outputLatency: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/close) */ + close(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaElementSource) */ + createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaStreamDestination) */ + createMediaStreamDestination(): MediaStreamAudioDestinationNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaStreamSource) */ + createMediaStreamSource(mediaStream: MediaStream): MediaStreamAudioSourceNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/getOutputTimestamp) */ + getOutputTimestamp(): AudioTimestamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/resume) */ + resume(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/suspend) */ + suspend(): Promise; + addEventListener(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var AudioContext: { + prototype: AudioContext; + new(contextOptions?: AudioContextOptions): AudioContext; +}; + +/** + * AudioDestinationNode has no output (as it is the output, no more AudioNode can be linked after it in the audio graph) and one input. The number of channels in the input must be between 0 and the maxChannelCount value or an exception is raised. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDestinationNode) + */ +interface AudioDestinationNode extends AudioNode { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDestinationNode/maxChannelCount) */ + readonly maxChannelCount: number; +} + +declare var AudioDestinationNode: { + prototype: AudioDestinationNode; + new(): AudioDestinationNode; +}; + +/** + * The position and orientation of the unique person listening to the audio scene, and is used in audio spatialization. All PannerNodes spatialize in relation to the AudioListener stored in the BaseAudioContext.listener attribute. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener) + */ +interface AudioListener { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardX) */ + readonly forwardX: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardY) */ + readonly forwardY: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardZ) */ + readonly forwardZ: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionX) */ + readonly positionX: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionY) */ + readonly positionY: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionZ) */ + readonly positionZ: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upX) */ + readonly upX: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upY) */ + readonly upY: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upZ) */ + readonly upZ: AudioParam; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/setOrientation) + */ + setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, zUp: number): void; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/setPosition) + */ + setPosition(x: number, y: number, z: number): void; +} + +declare var AudioListener: { + prototype: AudioListener; + new(): AudioListener; +}; + +/** + * A generic interface for representing an audio processing module. Examples include: + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode) + */ +interface AudioNode extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelCount) */ + channelCount: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelCountMode) */ + channelCountMode: ChannelCountMode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelInterpretation) */ + channelInterpretation: ChannelInterpretation; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/context) */ + readonly context: BaseAudioContext; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/numberOfInputs) */ + readonly numberOfInputs: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/numberOfOutputs) */ + readonly numberOfOutputs: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/connect) */ + connect(destinationNode: AudioNode, output?: number, input?: number): AudioNode; + connect(destinationParam: AudioParam, output?: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect) */ + disconnect(): void; + disconnect(output: number): void; + disconnect(destinationNode: AudioNode): void; + disconnect(destinationNode: AudioNode, output: number): void; + disconnect(destinationNode: AudioNode, output: number, input: number): void; + disconnect(destinationParam: AudioParam): void; + disconnect(destinationParam: AudioParam, output: number): void; +} + +declare var AudioNode: { + prototype: AudioNode; + new(): AudioNode; +}; + +/** + * The Web Audio API's AudioParam interface represents an audio-related parameter, usually a parameter of an AudioNode (such as GainNode.gain). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam) + */ +interface AudioParam { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/automationRate) */ + automationRate: AutomationRate; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/defaultValue) */ + readonly defaultValue: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/maxValue) */ + readonly maxValue: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/minValue) */ + readonly minValue: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/value) */ + value: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/cancelAndHoldAtTime) */ + cancelAndHoldAtTime(cancelTime: number): AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/cancelScheduledValues) */ + cancelScheduledValues(cancelTime: number): AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/exponentialRampToValueAtTime) */ + exponentialRampToValueAtTime(value: number, endTime: number): AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/linearRampToValueAtTime) */ + linearRampToValueAtTime(value: number, endTime: number): AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setTargetAtTime) */ + setTargetAtTime(target: number, startTime: number, timeConstant: number): AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueAtTime) */ + setValueAtTime(value: number, startTime: number): AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime) */ + setValueCurveAtTime(values: number[] | Float32Array, startTime: number, duration: number): AudioParam; +} + +declare var AudioParam: { + prototype: AudioParam; + new(): AudioParam; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParamMap) */ +interface AudioParamMap { + forEach(callbackfn: (value: AudioParam, key: string, parent: AudioParamMap) => void, thisArg?: any): void; +} + +declare var AudioParamMap: { + prototype: AudioParamMap; + new(): AudioParamMap; +}; + +/** + * The Web Audio API events that occur when a ScriptProcessorNode input buffer is ready to be processed. + * @deprecated As of the August 29 2014 Web Audio API spec publication, this feature has been marked as deprecated, and is soon to be replaced by AudioWorklet. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent) + */ +interface AudioProcessingEvent extends Event { + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/inputBuffer) + */ + readonly inputBuffer: AudioBuffer; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/outputBuffer) + */ + readonly outputBuffer: AudioBuffer; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/playbackTime) + */ + readonly playbackTime: number; +} + +/** @deprecated */ +declare var AudioProcessingEvent: { + prototype: AudioProcessingEvent; + new(type: string, eventInitDict: AudioProcessingEventInit): AudioProcessingEvent; +}; + +interface AudioScheduledSourceNodeEventMap { + "ended": Event; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode) */ +interface AudioScheduledSourceNode extends AudioNode { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/ended_event) */ + onended: ((this: AudioScheduledSourceNode, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/start) */ + start(when?: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/stop) */ + stop(when?: number): void; + addEventListener(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var AudioScheduledSourceNode: { + prototype: AudioScheduledSourceNode; + new(): AudioScheduledSourceNode; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorklet) + */ +interface AudioWorklet extends Worklet { +} + +declare var AudioWorklet: { + prototype: AudioWorklet; + new(): AudioWorklet; +}; + +interface AudioWorkletNodeEventMap { + "processorerror": Event; +} + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode) + */ +interface AudioWorkletNode extends AudioNode { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/processorerror_event) */ + onprocessorerror: ((this: AudioWorkletNode, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/parameters) */ + readonly parameters: AudioParamMap; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/port) */ + readonly port: MessagePort; + addEventListener(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var AudioWorkletNode: { + prototype: AudioWorkletNode; + new(context: BaseAudioContext, name: string, options?: AudioWorkletNodeOptions): AudioWorkletNode; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse) + */ +interface AuthenticatorAssertionResponse extends AuthenticatorResponse { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/authenticatorData) */ + readonly authenticatorData: ArrayBuffer; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/signature) */ + readonly signature: ArrayBuffer; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/userHandle) */ + readonly userHandle: ArrayBuffer | null; +} + +declare var AuthenticatorAssertionResponse: { + prototype: AuthenticatorAssertionResponse; + new(): AuthenticatorAssertionResponse; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse) + */ +interface AuthenticatorAttestationResponse extends AuthenticatorResponse { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/attestationObject) */ + readonly attestationObject: ArrayBuffer; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getAuthenticatorData) */ + getAuthenticatorData(): ArrayBuffer; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getPublicKey) */ + getPublicKey(): ArrayBuffer | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getPublicKeyAlgorithm) */ + getPublicKeyAlgorithm(): COSEAlgorithmIdentifier; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getTransports) */ + getTransports(): string[]; +} + +declare var AuthenticatorAttestationResponse: { + prototype: AuthenticatorAttestationResponse; + new(): AuthenticatorAttestationResponse; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorResponse) + */ +interface AuthenticatorResponse { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorResponse/clientDataJSON) */ + readonly clientDataJSON: ArrayBuffer; +} + +declare var AuthenticatorResponse: { + prototype: AuthenticatorResponse; + new(): AuthenticatorResponse; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BarProp) */ +interface BarProp { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BarProp/visible) */ + readonly visible: boolean; +} + +declare var BarProp: { + prototype: BarProp; + new(): BarProp; +}; + +interface BaseAudioContextEventMap { + "statechange": Event; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext) */ +interface BaseAudioContext extends EventTarget { + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/audioWorklet) + */ + readonly audioWorklet: AudioWorklet; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/currentTime) */ + readonly currentTime: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/destination) */ + readonly destination: AudioDestinationNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/listener) */ + readonly listener: AudioListener; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/statechange_event) */ + onstatechange: ((this: BaseAudioContext, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/sampleRate) */ + readonly sampleRate: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/state) */ + readonly state: AudioContextState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createAnalyser) */ + createAnalyser(): AnalyserNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBiquadFilter) */ + createBiquadFilter(): BiquadFilterNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBuffer) */ + createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBufferSource) */ + createBufferSource(): AudioBufferSourceNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createChannelMerger) */ + createChannelMerger(numberOfInputs?: number): ChannelMergerNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createChannelSplitter) */ + createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createConstantSource) */ + createConstantSource(): ConstantSourceNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createConvolver) */ + createConvolver(): ConvolverNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createDelay) */ + createDelay(maxDelayTime?: number): DelayNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createDynamicsCompressor) */ + createDynamicsCompressor(): DynamicsCompressorNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createGain) */ + createGain(): GainNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createIIRFilter) */ + createIIRFilter(feedforward: number[], feedback: number[]): IIRFilterNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createOscillator) */ + createOscillator(): OscillatorNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPanner) */ + createPanner(): PannerNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPeriodicWave) */ + createPeriodicWave(real: number[] | Float32Array, imag: number[] | Float32Array, constraints?: PeriodicWaveConstraints): PeriodicWave; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createScriptProcessor) + */ + createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createStereoPanner) */ + createStereoPanner(): StereoPannerNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createWaveShaper) */ + createWaveShaper(): WaveShaperNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/decodeAudioData) */ + decodeAudioData(audioData: ArrayBuffer, successCallback?: DecodeSuccessCallback | null, errorCallback?: DecodeErrorCallback | null): Promise; + addEventListener(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var BaseAudioContext: { + prototype: BaseAudioContext; + new(): BaseAudioContext; +}; + +/** + * The beforeunload event is fired when the window, the document and its resources are about to be unloaded. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BeforeUnloadEvent) + */ +interface BeforeUnloadEvent extends Event { + /** @deprecated */ + returnValue: any; +} + +declare var BeforeUnloadEvent: { + prototype: BeforeUnloadEvent; + new(): BeforeUnloadEvent; +}; + +/** + * A simple low-order filter, and is created using the AudioContext.createBiquadFilter() method. It is an AudioNode that can represent different kinds of filters, tone control devices, and graphic equalizers. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode) + */ +interface BiquadFilterNode extends AudioNode { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/Q) */ + readonly Q: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/detune) */ + readonly detune: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/frequency) */ + readonly frequency: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/gain) */ + readonly gain: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/type) */ + type: BiquadFilterType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/getFrequencyResponse) */ + getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void; +} + +declare var BiquadFilterNode: { + prototype: BiquadFilterNode; + new(context: BaseAudioContext, options?: BiquadFilterOptions): BiquadFilterNode; +}; + +/** + * A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob) + */ +interface Blob { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size) */ + readonly size: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/type) */ + readonly type: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer) */ + arrayBuffer(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice) */ + slice(start?: number, end?: number, contentType?: string): Blob; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream) */ + stream(): ReadableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */ + text(): Promise; +} + +declare var Blob: { + prototype: Blob; + new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent) */ +interface BlobEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent/data) */ + readonly data: Blob; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent/timecode) */ + readonly timecode: DOMHighResTimeStamp; +} + +declare var BlobEvent: { + prototype: BlobEvent; + new(type: string, eventInitDict: BlobEventInit): BlobEvent; +}; + +interface Body { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body) */ + readonly body: ReadableStream | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed) */ + readonly bodyUsed: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer) */ + arrayBuffer(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob) */ + blob(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData) */ + formData(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json) */ + json(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text) */ + text(): Promise; +} + +interface BroadcastChannelEventMap { + "message": MessageEvent; + "messageerror": MessageEvent; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel) */ +interface BroadcastChannel extends EventTarget { + /** + * Returns the channel name (as passed to the constructor). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/name) + */ + readonly name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/message_event) */ + onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/messageerror_event) */ + onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null; + /** + * Closes the BroadcastChannel object, opening it up to garbage collection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/close) + */ + close(): void; + /** + * Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/postMessage) + */ + postMessage(message: any): void; + addEventListener(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var BroadcastChannel: { + prototype: BroadcastChannel; + new(name: string): BroadcastChannel; +}; + +/** + * This Streams API interface provides\xA0a built-in byte length queuing strategy that can be used when constructing streams. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy) + */ +interface ByteLengthQueuingStrategy extends QueuingStrategy { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/highWaterMark) */ + readonly highWaterMark: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/size) */ + readonly size: QueuingStrategySize; +} + +declare var ByteLengthQueuingStrategy: { + prototype: ByteLengthQueuingStrategy; + new(init: QueuingStrategyInit): ByteLengthQueuingStrategy; +}; + +/** + * A CDATA section that can be used within XML to include extended portions of unescaped text. The symbols < and & don\u2019t need escaping as they normally do when inside a CDATA section. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CDATASection) + */ +interface CDATASection extends Text { +} + +declare var CDATASection: { + prototype: CDATASection; + new(): CDATASection; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSAnimation) */ +interface CSSAnimation extends Animation { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSAnimation/animationName) */ + readonly animationName: string; + addEventListener(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var CSSAnimation: { + prototype: CSSAnimation; + new(): CSSAnimation; +}; + +/** + * A single condition CSS at-rule, which consists of a condition and a statement block. It is a child of CSSGroupingRule. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSConditionRule) + */ +interface CSSConditionRule extends CSSGroupingRule { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSConditionRule/conditionText) */ + readonly conditionText: string; +} + +declare var CSSConditionRule: { + prototype: CSSConditionRule; + new(): CSSConditionRule; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule) */ +interface CSSContainerRule extends CSSConditionRule { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule/containerName) */ + readonly containerName: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule/containerQuery) */ + readonly containerQuery: string; +} + +declare var CSSContainerRule: { + prototype: CSSContainerRule; + new(): CSSContainerRule; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule) */ +interface CSSCounterStyleRule extends CSSRule { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/additiveSymbols) */ + additiveSymbols: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/fallback) */ + fallback: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/name) */ + name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/negative) */ + negative: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/pad) */ + pad: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/prefix) */ + prefix: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/range) */ + range: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/speakAs) */ + speakAs: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/suffix) */ + suffix: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/symbols) */ + symbols: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/system) */ + system: string; +} + +declare var CSSCounterStyleRule: { + prototype: CSSCounterStyleRule; + new(): CSSCounterStyleRule; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule) */ +interface CSSFontFaceRule extends CSSRule { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule/style) */ + readonly style: CSSStyleDeclaration; +} + +declare var CSSFontFaceRule: { + prototype: CSSFontFaceRule; + new(): CSSFontFaceRule; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFeatureValuesRule) */ +interface CSSFontFeatureValuesRule extends CSSRule { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFeatureValuesRule/fontFamily) */ + fontFamily: string; +} + +declare var CSSFontFeatureValuesRule: { + prototype: CSSFontFeatureValuesRule; + new(): CSSFontFeatureValuesRule; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule) */ +interface CSSFontPaletteValuesRule extends CSSRule { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/basePalette) */ + readonly basePalette: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/fontFamily) */ + readonly fontFamily: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/name) */ + readonly name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/overrideColors) */ + readonly overrideColors: string; +} + +declare var CSSFontPaletteValuesRule: { + prototype: CSSFontPaletteValuesRule; + new(): CSSFontPaletteValuesRule; +}; + +/** + * Any CSS at-rule that contains other rules nested within it. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule) + */ +interface CSSGroupingRule extends CSSRule { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/cssRules) */ + readonly cssRules: CSSRuleList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/deleteRule) */ + deleteRule(index: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/insertRule) */ + insertRule(rule: string, index?: number): number; +} + +declare var CSSGroupingRule: { + prototype: CSSGroupingRule; + new(): CSSGroupingRule; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImageValue) */ +interface CSSImageValue extends CSSStyleValue { +} + +declare var CSSImageValue: { + prototype: CSSImageValue; + new(): CSSImageValue; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule) */ +interface CSSImportRule extends CSSRule { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/href) */ + readonly href: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/layerName) */ + readonly layerName: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/media) */ + readonly media: MediaList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/styleSheet) */ + readonly styleSheet: CSSStyleSheet | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/supportsText) */ + readonly supportsText: string | null; +} + +declare var CSSImportRule: { + prototype: CSSImportRule; + new(): CSSImportRule; +}; + +/** + * An object representing a set of style for a given keyframe. It corresponds to the contains of a single keyframe of a @keyframes at-rule. It implements the CSSRule interface with a type value of 8 (CSSRule.KEYFRAME_RULE). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule) + */ +interface CSSKeyframeRule extends CSSRule { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/keyText) */ + keyText: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/style) */ + readonly style: CSSStyleDeclaration; +} + +declare var CSSKeyframeRule: { + prototype: CSSKeyframeRule; + new(): CSSKeyframeRule; +}; + +/** + * An object representing a complete set of keyframes for a CSS animation. It corresponds to the contains of a whole @keyframes at-rule. It implements the CSSRule interface with a type value of 7 (CSSRule.KEYFRAMES_RULE). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule) + */ +interface CSSKeyframesRule extends CSSRule { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/cssRules) */ + readonly cssRules: CSSRuleList; + readonly length: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/name) */ + name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/appendRule) */ + appendRule(rule: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/deleteRule) */ + deleteRule(select: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/findRule) */ + findRule(select: string): CSSKeyframeRule | null; + [index: number]: CSSKeyframeRule; +} + +declare var CSSKeyframesRule: { + prototype: CSSKeyframesRule; + new(): CSSKeyframesRule; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue) */ +interface CSSKeywordValue extends CSSStyleValue { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue/value) */ + value: string; +} + +declare var CSSKeywordValue: { + prototype: CSSKeywordValue; + new(value: string): CSSKeywordValue; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerBlockRule) */ +interface CSSLayerBlockRule extends CSSGroupingRule { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerBlockRule/name) */ + readonly name: string; +} + +declare var CSSLayerBlockRule: { + prototype: CSSLayerBlockRule; + new(): CSSLayerBlockRule; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerStatementRule) */ +interface CSSLayerStatementRule extends CSSRule { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerStatementRule/nameList) */ + readonly nameList: ReadonlyArray; +} + +declare var CSSLayerStatementRule: { + prototype: CSSLayerStatementRule; + new(): CSSLayerStatementRule; +}; + +interface CSSMathClamp extends CSSMathValue { + readonly lower: CSSNumericValue; + readonly upper: CSSNumericValue; + readonly value: CSSNumericValue; +} + +declare var CSSMathClamp: { + prototype: CSSMathClamp; + new(lower: CSSNumberish, value: CSSNumberish, upper: CSSNumberish): CSSMathClamp; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert) */ +interface CSSMathInvert extends CSSMathValue { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert/value) */ + readonly value: CSSNumericValue; +} + +declare var CSSMathInvert: { + prototype: CSSMathInvert; + new(arg: CSSNumberish): CSSMathInvert; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax) */ +interface CSSMathMax extends CSSMathValue { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax/values) */ + readonly values: CSSNumericArray; +} + +declare var CSSMathMax: { + prototype: CSSMathMax; + new(...args: CSSNumberish[]): CSSMathMax; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin) */ +interface CSSMathMin extends CSSMathValue { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin/values) */ + readonly values: CSSNumericArray; +} + +declare var CSSMathMin: { + prototype: CSSMathMin; + new(...args: CSSNumberish[]): CSSMathMin; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate) */ +interface CSSMathNegate extends CSSMathValue { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate/value) */ + readonly value: CSSNumericValue; +} + +declare var CSSMathNegate: { + prototype: CSSMathNegate; + new(arg: CSSNumberish): CSSMathNegate; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct) */ +interface CSSMathProduct extends CSSMathValue { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct/values) */ + readonly values: CSSNumericArray; +} + +declare var CSSMathProduct: { + prototype: CSSMathProduct; + new(...args: CSSNumberish[]): CSSMathProduct; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum) */ +interface CSSMathSum extends CSSMathValue { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum/values) */ + readonly values: CSSNumericArray; +} + +declare var CSSMathSum: { + prototype: CSSMathSum; + new(...args: CSSNumberish[]): CSSMathSum; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue) */ +interface CSSMathValue extends CSSNumericValue { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue/operator) */ + readonly operator: CSSMathOperator; +} + +declare var CSSMathValue: { + prototype: CSSMathValue; + new(): CSSMathValue; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent) */ +interface CSSMatrixComponent extends CSSTransformComponent { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent/matrix) */ + matrix: DOMMatrix; +} + +declare var CSSMatrixComponent: { + prototype: CSSMatrixComponent; + new(matrix: DOMMatrixReadOnly, options?: CSSMatrixComponentOptions): CSSMatrixComponent; +}; + +/** + * A single CSS @media rule. It implements the CSSConditionRule interface, and therefore the CSSGroupingRule and the CSSRule interface with a type value of 4 (CSSRule.MEDIA_RULE). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMediaRule) + */ +interface CSSMediaRule extends CSSConditionRule { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMediaRule/media) */ + readonly media: MediaList; +} + +declare var CSSMediaRule: { + prototype: CSSMediaRule; + new(): CSSMediaRule; +}; + +/** + * An object representing a single CSS @namespace at-rule. It implements the CSSRule interface, with a type value of 10 (CSSRule.NAMESPACE_RULE). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule) + */ +interface CSSNamespaceRule extends CSSRule { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule/namespaceURI) */ + readonly namespaceURI: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule/prefix) */ + readonly prefix: string; +} + +declare var CSSNamespaceRule: { + prototype: CSSNamespaceRule; + new(): CSSNamespaceRule; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray) */ +interface CSSNumericArray { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray/length) */ + readonly length: number; + forEach(callbackfn: (value: CSSNumericValue, key: number, parent: CSSNumericArray) => void, thisArg?: any): void; + [index: number]: CSSNumericValue; +} + +declare var CSSNumericArray: { + prototype: CSSNumericArray; + new(): CSSNumericArray; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue) */ +interface CSSNumericValue extends CSSStyleValue { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/add) */ + add(...values: CSSNumberish[]): CSSNumericValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/div) */ + div(...values: CSSNumberish[]): CSSNumericValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/equals) */ + equals(...value: CSSNumberish[]): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/max) */ + max(...values: CSSNumberish[]): CSSNumericValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/min) */ + min(...values: CSSNumberish[]): CSSNumericValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/mul) */ + mul(...values: CSSNumberish[]): CSSNumericValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/sub) */ + sub(...values: CSSNumberish[]): CSSNumericValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/to) */ + to(unit: string): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/toSum) */ + toSum(...units: string[]): CSSMathSum; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/type) */ + type(): CSSNumericType; +} + +declare var CSSNumericValue: { + prototype: CSSNumericValue; + new(): CSSNumericValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/parse_static) */ + parse(cssText: string): CSSNumericValue; +}; + +/** + * CSSPageRule is an interface representing a single CSS @page rule. It implements the CSSRule interface with a type value of 6 (CSSRule.PAGE_RULE). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule) + */ +interface CSSPageRule extends CSSGroupingRule { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule/selectorText) */ + selectorText: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule/style) */ + readonly style: CSSStyleDeclaration; +} + +declare var CSSPageRule: { + prototype: CSSPageRule; + new(): CSSPageRule; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective) */ +interface CSSPerspective extends CSSTransformComponent { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective/length) */ + length: CSSPerspectiveValue; +} + +declare var CSSPerspective: { + prototype: CSSPerspective; + new(length: CSSPerspectiveValue): CSSPerspective; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule) */ +interface CSSPropertyRule extends CSSRule { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/inherits) */ + readonly inherits: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/initialValue) */ + readonly initialValue: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/name) */ + readonly name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/syntax) */ + readonly syntax: string; +} + +declare var CSSPropertyRule: { + prototype: CSSPropertyRule; + new(): CSSPropertyRule; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate) */ +interface CSSRotate extends CSSTransformComponent { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/angle) */ + angle: CSSNumericValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/x) */ + x: CSSNumberish; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/y) */ + y: CSSNumberish; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/z) */ + z: CSSNumberish; +} + +declare var CSSRotate: { + prototype: CSSRotate; + new(angle: CSSNumericValue): CSSRotate; + new(x: CSSNumberish, y: CSSNumberish, z: CSSNumberish, angle: CSSNumericValue): CSSRotate; +}; + +/** + * A single CSS rule. There are several types of rules, listed in the Type constants section below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule) + */ +interface CSSRule { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/cssText) */ + cssText: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/parentRule) */ + readonly parentRule: CSSRule | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/parentStyleSheet) */ + readonly parentStyleSheet: CSSStyleSheet | null; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/type) + */ + readonly type: number; + readonly STYLE_RULE: 1; + readonly CHARSET_RULE: 2; + readonly IMPORT_RULE: 3; + readonly MEDIA_RULE: 4; + readonly FONT_FACE_RULE: 5; + readonly PAGE_RULE: 6; + readonly NAMESPACE_RULE: 10; + readonly KEYFRAMES_RULE: 7; + readonly KEYFRAME_RULE: 8; + readonly SUPPORTS_RULE: 12; + readonly COUNTER_STYLE_RULE: 11; + readonly FONT_FEATURE_VALUES_RULE: 14; +} + +declare var CSSRule: { + prototype: CSSRule; + new(): CSSRule; + readonly STYLE_RULE: 1; + readonly CHARSET_RULE: 2; + readonly IMPORT_RULE: 3; + readonly MEDIA_RULE: 4; + readonly FONT_FACE_RULE: 5; + readonly PAGE_RULE: 6; + readonly NAMESPACE_RULE: 10; + readonly KEYFRAMES_RULE: 7; + readonly KEYFRAME_RULE: 8; + readonly SUPPORTS_RULE: 12; + readonly COUNTER_STYLE_RULE: 11; + readonly FONT_FEATURE_VALUES_RULE: 14; +}; + +/** + * A CSSRuleList is an (indirect-modify only) array-like object containing an ordered collection of CSSRule objects. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList) + */ +interface CSSRuleList { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList/length) */ + readonly length: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList/item) */ + item(index: number): CSSRule | null; + [index: number]: CSSRule; +} + +declare var CSSRuleList: { + prototype: CSSRuleList; + new(): CSSRuleList; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale) */ +interface CSSScale extends CSSTransformComponent { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/x) */ + x: CSSNumberish; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/y) */ + y: CSSNumberish; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/z) */ + z: CSSNumberish; +} + +declare var CSSScale: { + prototype: CSSScale; + new(x: CSSNumberish, y: CSSNumberish, z?: CSSNumberish): CSSScale; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew) */ +interface CSSSkew extends CSSTransformComponent { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ax) */ + ax: CSSNumericValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ay) */ + ay: CSSNumericValue; +} + +declare var CSSSkew: { + prototype: CSSSkew; + new(ax: CSSNumericValue, ay: CSSNumericValue): CSSSkew; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX) */ +interface CSSSkewX extends CSSTransformComponent { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX/ax) */ + ax: CSSNumericValue; +} + +declare var CSSSkewX: { + prototype: CSSSkewX; + new(ax: CSSNumericValue): CSSSkewX; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY) */ +interface CSSSkewY extends CSSTransformComponent { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY/ay) */ + ay: CSSNumericValue; +} + +declare var CSSSkewY: { + prototype: CSSSkewY; + new(ay: CSSNumericValue): CSSSkewY; +}; + +/** + * An object that is a CSS declaration block, and exposes style information and various style-related methods and properties. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration) + */ +interface CSSStyleDeclaration { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/accent-color) */ + accentColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-content) */ + alignContent: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-items) */ + alignItems: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-self) */ + alignSelf: string; + alignmentBaseline: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/all) */ + all: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation) */ + animation: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-composition) */ + animationComposition: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-delay) */ + animationDelay: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-direction) */ + animationDirection: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-duration) */ + animationDuration: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-fill-mode) */ + animationFillMode: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-iteration-count) */ + animationIterationCount: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-name) */ + animationName: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-play-state) */ + animationPlayState: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-timing-function) */ + animationTimingFunction: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/appearance) */ + appearance: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/aspect-ratio) */ + aspectRatio: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/backdrop-filter) */ + backdropFilter: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/backface-visibility) */ + backfaceVisibility: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background) */ + background: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-attachment) */ + backgroundAttachment: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-blend-mode) */ + backgroundBlendMode: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-clip) */ + backgroundClip: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-color) */ + backgroundColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-image) */ + backgroundImage: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-origin) */ + backgroundOrigin: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-position) */ + backgroundPosition: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-position-x) */ + backgroundPositionX: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-position-y) */ + backgroundPositionY: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-repeat) */ + backgroundRepeat: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-size) */ + backgroundSize: string; + baselineShift: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/baseline-source) */ + baselineSource: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/block-size) */ + blockSize: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border) */ + border: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block) */ + borderBlock: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-color) */ + borderBlockColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end) */ + borderBlockEnd: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end-color) */ + borderBlockEndColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end-style) */ + borderBlockEndStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end-width) */ + borderBlockEndWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start) */ + borderBlockStart: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start-color) */ + borderBlockStartColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start-style) */ + borderBlockStartStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start-width) */ + borderBlockStartWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-style) */ + borderBlockStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-width) */ + borderBlockWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom) */ + borderBottom: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-color) */ + borderBottomColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-left-radius) */ + borderBottomLeftRadius: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-right-radius) */ + borderBottomRightRadius: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-style) */ + borderBottomStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-width) */ + borderBottomWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-collapse) */ + borderCollapse: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-color) */ + borderColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-end-end-radius) */ + borderEndEndRadius: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-end-start-radius) */ + borderEndStartRadius: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image) */ + borderImage: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-outset) */ + borderImageOutset: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-repeat) */ + borderImageRepeat: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-slice) */ + borderImageSlice: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-source) */ + borderImageSource: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-width) */ + borderImageWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline) */ + borderInline: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-color) */ + borderInlineColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end) */ + borderInlineEnd: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end-color) */ + borderInlineEndColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end-style) */ + borderInlineEndStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end-width) */ + borderInlineEndWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start) */ + borderInlineStart: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start-color) */ + borderInlineStartColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start-style) */ + borderInlineStartStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start-width) */ + borderInlineStartWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-style) */ + borderInlineStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-width) */ + borderInlineWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left) */ + borderLeft: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left-color) */ + borderLeftColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left-style) */ + borderLeftStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left-width) */ + borderLeftWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-radius) */ + borderRadius: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right) */ + borderRight: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right-color) */ + borderRightColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right-style) */ + borderRightStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right-width) */ + borderRightWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-spacing) */ + borderSpacing: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-start-end-radius) */ + borderStartEndRadius: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-start-start-radius) */ + borderStartStartRadius: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-style) */ + borderStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top) */ + borderTop: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-color) */ + borderTopColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-left-radius) */ + borderTopLeftRadius: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-right-radius) */ + borderTopRightRadius: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-style) */ + borderTopStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-width) */ + borderTopWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-width) */ + borderWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/bottom) */ + bottom: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-shadow) */ + boxShadow: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-sizing) */ + boxSizing: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/break-after) */ + breakAfter: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/break-before) */ + breakBefore: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/break-inside) */ + breakInside: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/caption-side) */ + captionSide: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/caret-color) */ + caretColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clear) */ + clear: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clip) + */ + clip: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clip-path) */ + clipPath: string; + clipRule: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color) */ + color: string; + colorInterpolation: string; + colorInterpolationFilters: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-scheme) */ + colorScheme: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-count) */ + columnCount: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-fill) */ + columnFill: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-gap) */ + columnGap: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule) */ + columnRule: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule-color) */ + columnRuleColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule-style) */ + columnRuleStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule-width) */ + columnRuleWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-span) */ + columnSpan: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-width) */ + columnWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/columns) */ + columns: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain) */ + contain: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-contain-intrinsic-block-size) */ + containIntrinsicBlockSize: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-height) */ + containIntrinsicHeight: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-contain-intrinsic-inline-size) */ + containIntrinsicInlineSize: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-size) */ + containIntrinsicSize: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-width) */ + containIntrinsicWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/container) */ + container: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/container-name) */ + containerName: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/container-type) */ + containerType: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/content) */ + content: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-increment) */ + counterIncrement: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-reset) */ + counterReset: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-set) */ + counterSet: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssFloat) */ + cssFloat: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssText) */ + cssText: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/cursor) */ + cursor: string; + cx: string; + cy: string; + d: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/direction) */ + direction: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/display) */ + display: string; + dominantBaseline: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/empty-cells) */ + emptyCells: string; + fill: string; + fillOpacity: string; + fillRule: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/filter) */ + filter: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex) */ + flex: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-basis) */ + flexBasis: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-direction) */ + flexDirection: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-flow) */ + flexFlow: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-grow) */ + flexGrow: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-shrink) */ + flexShrink: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-wrap) */ + flexWrap: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/float) */ + float: string; + floodColor: string; + floodOpacity: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font) */ + font: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-family) */ + fontFamily: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-feature-settings) */ + fontFeatureSettings: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-kerning) */ + fontKerning: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-optical-sizing) */ + fontOpticalSizing: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-palette) */ + fontPalette: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-size) */ + fontSize: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-size-adjust) */ + fontSizeAdjust: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-stretch) */ + fontStretch: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-style) */ + fontStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis) */ + fontSynthesis: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-small-caps) */ + fontSynthesisSmallCaps: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-style) */ + fontSynthesisStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-weight) */ + fontSynthesisWeight: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant) */ + fontVariant: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-alternates) */ + fontVariantAlternates: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-caps) */ + fontVariantCaps: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-east-asian) */ + fontVariantEastAsian: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-ligatures) */ + fontVariantLigatures: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-numeric) */ + fontVariantNumeric: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-position) */ + fontVariantPosition: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variation-settings) */ + fontVariationSettings: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-weight) */ + fontWeight: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/forced-color-adjust) */ + forcedColorAdjust: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/gap) */ + gap: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid) */ + grid: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-area) */ + gridArea: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-auto-columns) */ + gridAutoColumns: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-auto-flow) */ + gridAutoFlow: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-auto-rows) */ + gridAutoRows: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-column) */ + gridColumn: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-column-end) */ + gridColumnEnd: string; + /** @deprecated This is a legacy alias of \`columnGap\`. */ + gridColumnGap: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-column-start) */ + gridColumnStart: string; + /** @deprecated This is a legacy alias of \`gap\`. */ + gridGap: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-row) */ + gridRow: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-row-end) */ + gridRowEnd: string; + /** @deprecated This is a legacy alias of \`rowGap\`. */ + gridRowGap: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-row-start) */ + gridRowStart: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template) */ + gridTemplate: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template-areas) */ + gridTemplateAreas: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template-columns) */ + gridTemplateColumns: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template-rows) */ + gridTemplateRows: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/height) */ + height: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/hyphenate-character) */ + hyphenateCharacter: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/hyphens) */ + hyphens: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/image-orientation) + */ + imageOrientation: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/image-rendering) */ + imageRendering: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inline-size) */ + inlineSize: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset) */ + inset: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-block) */ + insetBlock: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-block-end) */ + insetBlockEnd: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-block-start) */ + insetBlockStart: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-inline) */ + insetInline: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-inline-end) */ + insetInlineEnd: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-inline-start) */ + insetInlineStart: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/isolation) */ + isolation: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-content) */ + justifyContent: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-items) */ + justifyItems: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-self) */ + justifySelf: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/left) */ + left: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/length) */ + readonly length: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/letter-spacing) */ + letterSpacing: string; + lightingColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/line-break) */ + lineBreak: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/line-height) */ + lineHeight: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style) */ + listStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style-image) */ + listStyleImage: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style-position) */ + listStylePosition: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style-type) */ + listStyleType: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin) */ + margin: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-block) */ + marginBlock: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-block-end) */ + marginBlockEnd: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-block-start) */ + marginBlockStart: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-bottom) */ + marginBottom: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-inline) */ + marginInline: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-inline-end) */ + marginInlineEnd: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-inline-start) */ + marginInlineStart: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-left) */ + marginLeft: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-right) */ + marginRight: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-top) */ + marginTop: string; + marker: string; + markerEnd: string; + markerMid: string; + markerStart: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask) */ + mask: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-clip) */ + maskClip: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-composite) */ + maskComposite: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-image) */ + maskImage: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-mode) */ + maskMode: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-origin) */ + maskOrigin: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-position) */ + maskPosition: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-repeat) */ + maskRepeat: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-size) */ + maskSize: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-type) */ + maskType: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/math-depth) */ + mathDepth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/math-style) */ + mathStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-block-size) */ + maxBlockSize: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-height) */ + maxHeight: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-inline-size) */ + maxInlineSize: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-width) */ + maxWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-block-size) */ + minBlockSize: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-height) */ + minHeight: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-inline-size) */ + minInlineSize: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-width) */ + minWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mix-blend-mode) */ + mixBlendMode: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/object-fit) */ + objectFit: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/object-position) */ + objectPosition: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset) */ + offset: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-anchor) */ + offsetAnchor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-distance) */ + offsetDistance: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-path) */ + offsetPath: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-position) */ + offsetPosition: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-rotate) */ + offsetRotate: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/opacity) */ + opacity: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/order) */ + order: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/orphans) */ + orphans: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline) */ + outline: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-color) */ + outlineColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-offset) */ + outlineOffset: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-style) */ + outlineStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-width) */ + outlineWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow) */ + overflow: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-anchor) */ + overflowAnchor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-clip-margin) */ + overflowClipMargin: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-wrap) */ + overflowWrap: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-x) */ + overflowX: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-y) */ + overflowY: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior) */ + overscrollBehavior: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-block) */ + overscrollBehaviorBlock: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-inline) */ + overscrollBehaviorInline: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-x) */ + overscrollBehaviorX: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-y) */ + overscrollBehaviorY: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding) */ + padding: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-block) */ + paddingBlock: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-block-end) */ + paddingBlockEnd: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-block-start) */ + paddingBlockStart: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-bottom) */ + paddingBottom: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-inline) */ + paddingInline: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-inline-end) */ + paddingInlineEnd: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-inline-start) */ + paddingInlineStart: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-left) */ + paddingLeft: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-right) */ + paddingRight: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-top) */ + paddingTop: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page) */ + page: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-after) */ + pageBreakAfter: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-before) */ + pageBreakBefore: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-inside) */ + pageBreakInside: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/paint-order) */ + paintOrder: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/parentRule) */ + readonly parentRule: CSSRule | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective) */ + perspective: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective-origin) */ + perspectiveOrigin: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/place-content) */ + placeContent: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/place-items) */ + placeItems: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/place-self) */ + placeSelf: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/pointer-events) */ + pointerEvents: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/position) */ + position: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/print-color-adjust) */ + printColorAdjust: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/quotes) */ + quotes: string; + r: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/resize) */ + resize: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/right) */ + right: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/rotate) */ + rotate: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/row-gap) */ + rowGap: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/ruby-position) */ + rubyPosition: string; + rx: string; + ry: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scale) */ + scale: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-behavior) */ + scrollBehavior: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin) */ + scrollMargin: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block) */ + scrollMarginBlock: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-end) */ + scrollMarginBlockEnd: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-start) */ + scrollMarginBlockStart: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-bottom) */ + scrollMarginBottom: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline) */ + scrollMarginInline: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-end) */ + scrollMarginInlineEnd: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-start) */ + scrollMarginInlineStart: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-left) */ + scrollMarginLeft: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-right) */ + scrollMarginRight: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-top) */ + scrollMarginTop: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding) */ + scrollPadding: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block) */ + scrollPaddingBlock: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-end) */ + scrollPaddingBlockEnd: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-start) */ + scrollPaddingBlockStart: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-bottom) */ + scrollPaddingBottom: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline) */ + scrollPaddingInline: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-end) */ + scrollPaddingInlineEnd: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-start) */ + scrollPaddingInlineStart: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-left) */ + scrollPaddingLeft: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-right) */ + scrollPaddingRight: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-top) */ + scrollPaddingTop: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-align) */ + scrollSnapAlign: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-stop) */ + scrollSnapStop: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type) */ + scrollSnapType: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scrollbar-color) */ + scrollbarColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scrollbar-gutter) */ + scrollbarGutter: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scrollbar-width) */ + scrollbarWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-image-threshold) */ + shapeImageThreshold: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-margin) */ + shapeMargin: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-outside) */ + shapeOutside: string; + shapeRendering: string; + stopColor: string; + stopOpacity: string; + stroke: string; + strokeDasharray: string; + strokeDashoffset: string; + strokeLinecap: string; + strokeLinejoin: string; + strokeMiterlimit: string; + strokeOpacity: string; + strokeWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/tab-size) */ + tabSize: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/table-layout) */ + tableLayout: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-align) */ + textAlign: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-align-last) */ + textAlignLast: string; + textAnchor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-combine-upright) */ + textCombineUpright: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration) */ + textDecoration: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-color) */ + textDecorationColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-line) */ + textDecorationLine: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-skip-ink) */ + textDecorationSkipInk: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-style) */ + textDecorationStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-thickness) */ + textDecorationThickness: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis) */ + textEmphasis: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis-color) */ + textEmphasisColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis-position) */ + textEmphasisPosition: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis-style) */ + textEmphasisStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-indent) */ + textIndent: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-orientation) */ + textOrientation: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-overflow) */ + textOverflow: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-rendering) */ + textRendering: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-shadow) */ + textShadow: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-transform) */ + textTransform: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-underline-offset) */ + textUnderlineOffset: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-underline-position) */ + textUnderlinePosition: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-wrap) */ + textWrap: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/top) */ + top: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/touch-action) */ + touchAction: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform) */ + transform: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-box) */ + transformBox: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-origin) */ + transformOrigin: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-style) */ + transformStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition) */ + transition: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-delay) */ + transitionDelay: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-duration) */ + transitionDuration: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-property) */ + transitionProperty: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-timing-function) */ + transitionTimingFunction: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/translate) */ + translate: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/unicode-bidi) */ + unicodeBidi: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/user-select) */ + userSelect: string; + vectorEffect: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/vertical-align) */ + verticalAlign: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/visibility) */ + visibility: string; + /** + * @deprecated This is a legacy alias of \`alignContent\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-content) + */ + webkitAlignContent: string; + /** + * @deprecated This is a legacy alias of \`alignItems\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-items) + */ + webkitAlignItems: string; + /** + * @deprecated This is a legacy alias of \`alignSelf\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-self) + */ + webkitAlignSelf: string; + /** + * @deprecated This is a legacy alias of \`animation\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation) + */ + webkitAnimation: string; + /** + * @deprecated This is a legacy alias of \`animationDelay\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-delay) + */ + webkitAnimationDelay: string; + /** + * @deprecated This is a legacy alias of \`animationDirection\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-direction) + */ + webkitAnimationDirection: string; + /** + * @deprecated This is a legacy alias of \`animationDuration\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-duration) + */ + webkitAnimationDuration: string; + /** + * @deprecated This is a legacy alias of \`animationFillMode\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-fill-mode) + */ + webkitAnimationFillMode: string; + /** + * @deprecated This is a legacy alias of \`animationIterationCount\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-iteration-count) + */ + webkitAnimationIterationCount: string; + /** + * @deprecated This is a legacy alias of \`animationName\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-name) + */ + webkitAnimationName: string; + /** + * @deprecated This is a legacy alias of \`animationPlayState\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-play-state) + */ + webkitAnimationPlayState: string; + /** + * @deprecated This is a legacy alias of \`animationTimingFunction\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-timing-function) + */ + webkitAnimationTimingFunction: string; + /** + * @deprecated This is a legacy alias of \`appearance\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/appearance) + */ + webkitAppearance: string; + /** + * @deprecated This is a legacy alias of \`backfaceVisibility\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/backface-visibility) + */ + webkitBackfaceVisibility: string; + /** + * @deprecated This is a legacy alias of \`backgroundClip\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-clip) + */ + webkitBackgroundClip: string; + /** + * @deprecated This is a legacy alias of \`backgroundOrigin\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-origin) + */ + webkitBackgroundOrigin: string; + /** + * @deprecated This is a legacy alias of \`backgroundSize\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-size) + */ + webkitBackgroundSize: string; + /** + * @deprecated This is a legacy alias of \`borderBottomLeftRadius\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-left-radius) + */ + webkitBorderBottomLeftRadius: string; + /** + * @deprecated This is a legacy alias of \`borderBottomRightRadius\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-right-radius) + */ + webkitBorderBottomRightRadius: string; + /** + * @deprecated This is a legacy alias of \`borderRadius\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-radius) + */ + webkitBorderRadius: string; + /** + * @deprecated This is a legacy alias of \`borderTopLeftRadius\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-left-radius) + */ + webkitBorderTopLeftRadius: string; + /** + * @deprecated This is a legacy alias of \`borderTopRightRadius\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-right-radius) + */ + webkitBorderTopRightRadius: string; + /** + * @deprecated This is a legacy alias of \`boxAlign\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-align) + */ + webkitBoxAlign: string; + /** + * @deprecated This is a legacy alias of \`boxFlex\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-flex) + */ + webkitBoxFlex: string; + /** + * @deprecated This is a legacy alias of \`boxOrdinalGroup\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-ordinal-group) + */ + webkitBoxOrdinalGroup: string; + /** + * @deprecated This is a legacy alias of \`boxOrient\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-orient) + */ + webkitBoxOrient: string; + /** + * @deprecated This is a legacy alias of \`boxPack\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-pack) + */ + webkitBoxPack: string; + /** + * @deprecated This is a legacy alias of \`boxShadow\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-shadow) + */ + webkitBoxShadow: string; + /** + * @deprecated This is a legacy alias of \`boxSizing\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-sizing) + */ + webkitBoxSizing: string; + /** + * @deprecated This is a legacy alias of \`filter\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/filter) + */ + webkitFilter: string; + /** + * @deprecated This is a legacy alias of \`flex\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex) + */ + webkitFlex: string; + /** + * @deprecated This is a legacy alias of \`flexBasis\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-basis) + */ + webkitFlexBasis: string; + /** + * @deprecated This is a legacy alias of \`flexDirection\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-direction) + */ + webkitFlexDirection: string; + /** + * @deprecated This is a legacy alias of \`flexFlow\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-flow) + */ + webkitFlexFlow: string; + /** + * @deprecated This is a legacy alias of \`flexGrow\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-grow) + */ + webkitFlexGrow: string; + /** + * @deprecated This is a legacy alias of \`flexShrink\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-shrink) + */ + webkitFlexShrink: string; + /** + * @deprecated This is a legacy alias of \`flexWrap\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-wrap) + */ + webkitFlexWrap: string; + /** + * @deprecated This is a legacy alias of \`justifyContent\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-content) + */ + webkitJustifyContent: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-line-clamp) */ + webkitLineClamp: string; + /** + * @deprecated This is a legacy alias of \`mask\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask) + */ + webkitMask: string; + /** + * @deprecated This is a legacy alias of \`maskBorder\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border) + */ + webkitMaskBoxImage: string; + /** + * @deprecated This is a legacy alias of \`maskBorderOutset\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-outset) + */ + webkitMaskBoxImageOutset: string; + /** + * @deprecated This is a legacy alias of \`maskBorderRepeat\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-repeat) + */ + webkitMaskBoxImageRepeat: string; + /** + * @deprecated This is a legacy alias of \`maskBorderSlice\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-slice) + */ + webkitMaskBoxImageSlice: string; + /** + * @deprecated This is a legacy alias of \`maskBorderSource\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-source) + */ + webkitMaskBoxImageSource: string; + /** + * @deprecated This is a legacy alias of \`maskBorderWidth\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-width) + */ + webkitMaskBoxImageWidth: string; + /** + * @deprecated This is a legacy alias of \`maskClip\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-clip) + */ + webkitMaskClip: string; + /** + * @deprecated This is a legacy alias of \`maskComposite\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-composite) + */ + webkitMaskComposite: string; + /** + * @deprecated This is a legacy alias of \`maskImage\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-image) + */ + webkitMaskImage: string; + /** + * @deprecated This is a legacy alias of \`maskOrigin\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-origin) + */ + webkitMaskOrigin: string; + /** + * @deprecated This is a legacy alias of \`maskPosition\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-position) + */ + webkitMaskPosition: string; + /** + * @deprecated This is a legacy alias of \`maskRepeat\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-repeat) + */ + webkitMaskRepeat: string; + /** + * @deprecated This is a legacy alias of \`maskSize\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-size) + */ + webkitMaskSize: string; + /** + * @deprecated This is a legacy alias of \`order\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/order) + */ + webkitOrder: string; + /** + * @deprecated This is a legacy alias of \`perspective\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective) + */ + webkitPerspective: string; + /** + * @deprecated This is a legacy alias of \`perspectiveOrigin\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective-origin) + */ + webkitPerspectiveOrigin: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-fill-color) */ + webkitTextFillColor: string; + /** + * @deprecated This is a legacy alias of \`textSizeAdjust\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-size-adjust) + */ + webkitTextSizeAdjust: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke) */ + webkitTextStroke: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-color) */ + webkitTextStrokeColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-width) */ + webkitTextStrokeWidth: string; + /** + * @deprecated This is a legacy alias of \`transform\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform) + */ + webkitTransform: string; + /** + * @deprecated This is a legacy alias of \`transformOrigin\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-origin) + */ + webkitTransformOrigin: string; + /** + * @deprecated This is a legacy alias of \`transformStyle\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-style) + */ + webkitTransformStyle: string; + /** + * @deprecated This is a legacy alias of \`transition\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition) + */ + webkitTransition: string; + /** + * @deprecated This is a legacy alias of \`transitionDelay\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-delay) + */ + webkitTransitionDelay: string; + /** + * @deprecated This is a legacy alias of \`transitionDuration\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-duration) + */ + webkitTransitionDuration: string; + /** + * @deprecated This is a legacy alias of \`transitionProperty\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-property) + */ + webkitTransitionProperty: string; + /** + * @deprecated This is a legacy alias of \`transitionTimingFunction\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-timing-function) + */ + webkitTransitionTimingFunction: string; + /** + * @deprecated This is a legacy alias of \`userSelect\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/user-select) + */ + webkitUserSelect: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/white-space) */ + whiteSpace: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/widows) */ + widows: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/width) */ + width: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/will-change) */ + willChange: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/word-break) */ + wordBreak: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/word-spacing) */ + wordSpacing: string; + /** @deprecated */ + wordWrap: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/writing-mode) */ + writingMode: string; + x: string; + y: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/z-index) */ + zIndex: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyPriority) */ + getPropertyPriority(property: string): string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyValue) */ + getPropertyValue(property: string): string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/item) */ + item(index: number): string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/removeProperty) */ + removeProperty(property: string): string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/setProperty) */ + setProperty(property: string, value: string | null, priority?: string): void; + [index: number]: string; +} + +declare var CSSStyleDeclaration: { + prototype: CSSStyleDeclaration; + new(): CSSStyleDeclaration; +}; + +/** + * CSSStyleRule represents a single CSS style rule. It implements the CSSRule interface with a type value of 1 (CSSRule.STYLE_RULE). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule) + */ +interface CSSStyleRule extends CSSGroupingRule { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/selectorText) */ + selectorText: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/style) */ + readonly style: CSSStyleDeclaration; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/styleMap) */ + readonly styleMap: StylePropertyMap; +} + +declare var CSSStyleRule: { + prototype: CSSStyleRule; + new(): CSSStyleRule; +}; + +/** + * A single CSS style sheet. It inherits properties and methods from its parent, StyleSheet. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet) + */ +interface CSSStyleSheet extends StyleSheet { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/cssRules) */ + readonly cssRules: CSSRuleList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/ownerRule) */ + readonly ownerRule: CSSRule | null; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/rules) + */ + readonly rules: CSSRuleList; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/addRule) + */ + addRule(selector?: string, style?: string, index?: number): number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/deleteRule) */ + deleteRule(index: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/insertRule) */ + insertRule(rule: string, index?: number): number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/removeRule) + */ + removeRule(index?: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/replace) */ + replace(text: string): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/replaceSync) */ + replaceSync(text: string): void; +} + +declare var CSSStyleSheet: { + prototype: CSSStyleSheet; + new(options?: CSSStyleSheetInit): CSSStyleSheet; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue) */ +interface CSSStyleValue { + toString(): string; +} + +declare var CSSStyleValue: { + prototype: CSSStyleValue; + new(): CSSStyleValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue/parse_static) */ + parse(property: string, cssText: string): CSSStyleValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue/parseAll_static) */ + parseAll(property: string, cssText: string): CSSStyleValue[]; +}; + +/** + * An object representing a single CSS @supports at-rule. It implements the CSSConditionRule interface, and therefore the CSSRule and CSSGroupingRule interfaces with a type value of 12 (CSSRule.SUPPORTS_RULE). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSupportsRule) + */ +interface CSSSupportsRule extends CSSConditionRule { +} + +declare var CSSSupportsRule: { + prototype: CSSSupportsRule; + new(): CSSSupportsRule; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent) */ +interface CSSTransformComponent { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/is2D) */ + is2D: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/toMatrix) */ + toMatrix(): DOMMatrix; + toString(): string; +} + +declare var CSSTransformComponent: { + prototype: CSSTransformComponent; + new(): CSSTransformComponent; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue) */ +interface CSSTransformValue extends CSSStyleValue { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/is2D) */ + readonly is2D: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/length) */ + readonly length: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/toMatrix) */ + toMatrix(): DOMMatrix; + forEach(callbackfn: (value: CSSTransformComponent, key: number, parent: CSSTransformValue) => void, thisArg?: any): void; + [index: number]: CSSTransformComponent; +} + +declare var CSSTransformValue: { + prototype: CSSTransformValue; + new(transforms: CSSTransformComponent[]): CSSTransformValue; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransition) */ +interface CSSTransition extends Animation { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransition/transitionProperty) */ + readonly transitionProperty: string; + addEventListener(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var CSSTransition: { + prototype: CSSTransition; + new(): CSSTransition; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate) */ +interface CSSTranslate extends CSSTransformComponent { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/x) */ + x: CSSNumericValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/y) */ + y: CSSNumericValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/z) */ + z: CSSNumericValue; +} + +declare var CSSTranslate: { + prototype: CSSTranslate; + new(x: CSSNumericValue, y: CSSNumericValue, z?: CSSNumericValue): CSSTranslate; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue) */ +interface CSSUnitValue extends CSSNumericValue { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit) */ + readonly unit: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/value) */ + value: number; +} + +declare var CSSUnitValue: { + prototype: CSSUnitValue; + new(value: number, unit: string): CSSUnitValue; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue) */ +interface CSSUnparsedValue extends CSSStyleValue { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue/length) */ + readonly length: number; + forEach(callbackfn: (value: CSSUnparsedSegment, key: number, parent: CSSUnparsedValue) => void, thisArg?: any): void; + [index: number]: CSSUnparsedSegment; +} + +declare var CSSUnparsedValue: { + prototype: CSSUnparsedValue; + new(members: CSSUnparsedSegment[]): CSSUnparsedValue; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue) */ +interface CSSVariableReferenceValue { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/fallback) */ + readonly fallback: CSSUnparsedValue | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/variable) */ + variable: string; +} + +declare var CSSVariableReferenceValue: { + prototype: CSSVariableReferenceValue; + new(variable: string, fallback?: CSSUnparsedValue | null): CSSVariableReferenceValue; +}; + +/** + * Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don't have to use it in conjunction with service workers, even though it is defined in the service worker spec. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache) + */ +interface Cache { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/add) */ + add(request: RequestInfo | URL): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll) */ + addAll(requests: RequestInfo[]): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/delete) */ + delete(request: RequestInfo | URL, options?: CacheQueryOptions): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/keys) */ + keys(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/match) */ + match(request: RequestInfo | URL, options?: CacheQueryOptions): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/matchAll) */ + matchAll(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/put) */ + put(request: RequestInfo | URL, response: Response): Promise; +} + +declare var Cache: { + prototype: Cache; + new(): Cache; +}; + +/** + * The storage for Cache objects. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage) + */ +interface CacheStorage { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/delete) */ + delete(cacheName: string): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/has) */ + has(cacheName: string): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/keys) */ + keys(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/match) */ + match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/open) */ + open(cacheName: string): Promise; +} + +declare var CacheStorage: { + prototype: CacheStorage; + new(): CacheStorage; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack) */ +interface CanvasCaptureMediaStreamTrack extends MediaStreamTrack { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack/canvas) */ + readonly canvas: HTMLCanvasElement; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack/requestFrame) */ + requestFrame(): void; + addEventListener(type: K, listener: (this: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var CanvasCaptureMediaStreamTrack: { + prototype: CanvasCaptureMediaStreamTrack; + new(): CanvasCaptureMediaStreamTrack; +}; + +interface CanvasCompositing { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/globalAlpha) */ + globalAlpha: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation) */ + globalCompositeOperation: GlobalCompositeOperation; +} + +interface CanvasDrawImage { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawImage) */ + drawImage(image: CanvasImageSource, dx: number, dy: number): void; + drawImage(image: CanvasImageSource, dx: number, dy: number, dw: number, dh: number): void; + drawImage(image: CanvasImageSource, sx: number, sy: number, sw: number, sh: number, dx: number, dy: number, dw: number, dh: number): void; +} + +interface CanvasDrawPath { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/beginPath) */ + beginPath(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/clip) */ + clip(fillRule?: CanvasFillRule): void; + clip(path: Path2D, fillRule?: CanvasFillRule): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fill) */ + fill(fillRule?: CanvasFillRule): void; + fill(path: Path2D, fillRule?: CanvasFillRule): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isPointInPath) */ + isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean; + isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isPointInStroke) */ + isPointInStroke(x: number, y: number): boolean; + isPointInStroke(path: Path2D, x: number, y: number): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/stroke) */ + stroke(): void; + stroke(path: Path2D): void; +} + +interface CanvasFillStrokeStyles { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillStyle) */ + fillStyle: string | CanvasGradient | CanvasPattern; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeStyle) */ + strokeStyle: string | CanvasGradient | CanvasPattern; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createConicGradient) */ + createConicGradient(startAngle: number, x: number, y: number): CanvasGradient; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createLinearGradient) */ + createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createPattern) */ + createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createRadialGradient) */ + createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient; +} + +interface CanvasFilters { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/filter) */ + filter: string; +} + +/** + * An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient(). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient) + */ +interface CanvasGradient { + /** + * Adds a color stop with the given color to the gradient at the given offset. 0.0 is the offset at one end of the gradient, 1.0 is the offset at the other end. + * + * Throws an "IndexSizeError" DOMException if the offset is out of range. Throws a "SyntaxError" DOMException if the color cannot be parsed. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient/addColorStop) + */ + addColorStop(offset: number, color: string): void; +} + +declare var CanvasGradient: { + prototype: CanvasGradient; + new(): CanvasGradient; +}; + +interface CanvasImageData { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createImageData) */ + createImageData(sw: number, sh: number, settings?: ImageDataSettings): ImageData; + createImageData(imagedata: ImageData): ImageData; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getImageData) */ + getImageData(sx: number, sy: number, sw: number, sh: number, settings?: ImageDataSettings): ImageData; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/putImageData) */ + putImageData(imagedata: ImageData, dx: number, dy: number): void; + putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX: number, dirtyY: number, dirtyWidth: number, dirtyHeight: number): void; +} + +interface CanvasImageSmoothing { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/imageSmoothingEnabled) */ + imageSmoothingEnabled: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/imageSmoothingQuality) */ + imageSmoothingQuality: ImageSmoothingQuality; +} + +interface CanvasPath { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/arc) */ + arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/arcTo) */ + arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/bezierCurveTo) */ + bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/closePath) */ + closePath(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/ellipse) */ + ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineTo) */ + lineTo(x: number, y: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/moveTo) */ + moveTo(x: number, y: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/quadraticCurveTo) */ + quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/rect) */ + rect(x: number, y: number, w: number, h: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */ + roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | (number | DOMPointInit)[]): void; +} + +interface CanvasPathDrawingStyles { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineCap) */ + lineCap: CanvasLineCap; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineDashOffset) */ + lineDashOffset: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineJoin) */ + lineJoin: CanvasLineJoin; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineWidth) */ + lineWidth: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/miterLimit) */ + miterLimit: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getLineDash) */ + getLineDash(): number[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */ + setLineDash(segments: number[]): void; +} + +/** + * An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasPattern) + */ +interface CanvasPattern { + /** + * Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasPattern/setTransform) + */ + setTransform(transform?: DOMMatrix2DInit): void; +} + +declare var CanvasPattern: { + prototype: CanvasPattern; + new(): CanvasPattern; +}; + +interface CanvasRect { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/clearRect) */ + clearRect(x: number, y: number, w: number, h: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillRect) */ + fillRect(x: number, y: number, w: number, h: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeRect) */ + strokeRect(x: number, y: number, w: number, h: number): void; +} + +/** + * The CanvasRenderingContext2D interface, part of the Canvas API, provides the 2D rendering context for the drawing surface of a element. It is used for drawing shapes, text, images, and other objects. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D) + */ +interface CanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform, CanvasUserInterface { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/canvas) */ + readonly canvas: HTMLCanvasElement; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getContextAttributes) */ + getContextAttributes(): CanvasRenderingContext2DSettings; +} + +declare var CanvasRenderingContext2D: { + prototype: CanvasRenderingContext2D; + new(): CanvasRenderingContext2D; +}; + +interface CanvasShadowStyles { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowBlur) */ + shadowBlur: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowColor) */ + shadowColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowOffsetX) */ + shadowOffsetX: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowOffsetY) */ + shadowOffsetY: number; +} + +interface CanvasState { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/reset) */ + reset(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/restore) */ + restore(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/save) */ + save(): void; +} + +interface CanvasText { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillText) */ + fillText(text: string, x: number, y: number, maxWidth?: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/measureText) */ + measureText(text: string): TextMetrics; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeText) */ + strokeText(text: string, x: number, y: number, maxWidth?: number): void; +} + +interface CanvasTextDrawingStyles { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/direction) */ + direction: CanvasDirection; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/font) */ + font: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontKerning) */ + fontKerning: CanvasFontKerning; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontStretch) */ + fontStretch: CanvasFontStretch; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontVariantCaps) */ + fontVariantCaps: CanvasFontVariantCaps; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/letterSpacing) */ + letterSpacing: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textAlign) */ + textAlign: CanvasTextAlign; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textBaseline) */ + textBaseline: CanvasTextBaseline; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textRendering) */ + textRendering: CanvasTextRendering; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/wordSpacing) */ + wordSpacing: string; +} + +interface CanvasTransform { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getTransform) */ + getTransform(): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/resetTransform) */ + resetTransform(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/rotate) */ + rotate(angle: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/scale) */ + scale(x: number, y: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setTransform) */ + setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void; + setTransform(transform?: DOMMatrix2DInit): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/transform) */ + transform(a: number, b: number, c: number, d: number, e: number, f: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/translate) */ + translate(x: number, y: number): void; +} + +interface CanvasUserInterface { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawFocusIfNeeded) */ + drawFocusIfNeeded(element: Element): void; + drawFocusIfNeeded(path: Path2D, element: Element): void; +} + +/** + * The ChannelMergerNode interface, often used in conjunction with its opposite, ChannelSplitterNode, reunites different mono inputs into a single output. Each input is used to fill a channel of the output. This is useful for accessing each channels separately, e.g. for performing channel mixing where gain must be separately controlled on each channel. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ChannelMergerNode) + */ +interface ChannelMergerNode extends AudioNode { +} + +declare var ChannelMergerNode: { + prototype: ChannelMergerNode; + new(context: BaseAudioContext, options?: ChannelMergerOptions): ChannelMergerNode; +}; + +/** + * The ChannelSplitterNode interface, often used in conjunction with its opposite, ChannelMergerNode, separates the different channels of an audio source into a set of mono outputs. This is useful for accessing each channel separately, e.g. for performing channel mixing where gain must be separately controlled on each channel. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ChannelSplitterNode) + */ +interface ChannelSplitterNode extends AudioNode { +} + +declare var ChannelSplitterNode: { + prototype: ChannelSplitterNode; + new(context: BaseAudioContext, options?: ChannelSplitterOptions): ChannelSplitterNode; +}; + +/** + * The CharacterData abstract interface represents a Node object that contains characters. This is an abstract interface, meaning there aren't any object of type CharacterData: it is implemented by other interfaces, like Text, Comment, or ProcessingInstruction which aren't abstract. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData) + */ +interface CharacterData extends Node, ChildNode, NonDocumentTypeChildNode { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/data) */ + data: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/length) */ + readonly length: number; + readonly ownerDocument: Document; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/appendData) */ + appendData(data: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/deleteData) */ + deleteData(offset: number, count: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/insertData) */ + insertData(offset: number, data: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceData) */ + replaceData(offset: number, count: number, data: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/substringData) */ + substringData(offset: number, count: number): string; +} + +declare var CharacterData: { + prototype: CharacterData; + new(): CharacterData; +}; + +interface ChildNode extends Node { + /** + * Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes. + * + * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/after) + */ + after(...nodes: (Node | string)[]): void; + /** + * Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes. + * + * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/before) + */ + before(...nodes: (Node | string)[]): void; + /** + * Removes node. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/remove) + */ + remove(): void; + /** + * Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes. + * + * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceWith) + */ + replaceWith(...nodes: (Node | string)[]): void; +} + +/** @deprecated */ +interface ClientRect extends DOMRect { +} + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard) + */ +interface Clipboard extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/read) */ + read(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/readText) */ + readText(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/write) */ + write(data: ClipboardItems): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/writeText) */ + writeText(data: string): Promise; +} + +declare var Clipboard: { + prototype: Clipboard; + new(): Clipboard; +}; + +/** + * Events providing information related to modification of the clipboard, that is cut, copy, and paste events. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardEvent) + */ +interface ClipboardEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardEvent/clipboardData) */ + readonly clipboardData: DataTransfer | null; +} + +declare var ClipboardEvent: { + prototype: ClipboardEvent; + new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem) + */ +interface ClipboardItem { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/types) */ + readonly types: ReadonlyArray; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/getType) */ + getType(type: string): Promise; +} + +declare var ClipboardItem: { + prototype: ClipboardItem; + new(items: Record>, options?: ClipboardItemOptions): ClipboardItem; +}; + +/** + * A CloseEvent is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object's onclose attribute. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent) + */ +interface CloseEvent extends Event { + /** + * Returns the WebSocket connection close code provided by the server. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/code) + */ + readonly code: number; + /** + * Returns the WebSocket connection close reason provided by the server. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/reason) + */ + readonly reason: string; + /** + * Returns true if the connection closed cleanly; false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/wasClean) + */ + readonly wasClean: boolean; +} + +declare var CloseEvent: { + prototype: CloseEvent; + new(type: string, eventInitDict?: CloseEventInit): CloseEvent; +}; + +/** + * Textual notations within markup; although it is generally not visually shown, such comments are available to be read in the source view. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Comment) + */ +interface Comment extends CharacterData { +} + +declare var Comment: { + prototype: Comment; + new(data?: string): Comment; +}; + +/** + * The DOM CompositionEvent represents events that occur due to the user indirectly entering text. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent) + */ +interface CompositionEvent extends UIEvent { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent/data) */ + readonly data: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent/initCompositionEvent) + */ + initCompositionEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: WindowProxy | null, dataArg?: string): void; +} + +declare var CompositionEvent: { + prototype: CompositionEvent; + new(type: string, eventInitDict?: CompositionEventInit): CompositionEvent; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream) */ +interface CompressionStream extends GenericTransformStream { +} + +declare var CompressionStream: { + prototype: CompressionStream; + new(format: CompressionFormat): CompressionStream; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConstantSourceNode) */ +interface ConstantSourceNode extends AudioScheduledSourceNode { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConstantSourceNode/offset) */ + readonly offset: AudioParam; + addEventListener(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var ConstantSourceNode: { + prototype: ConstantSourceNode; + new(context: BaseAudioContext, options?: ConstantSourceOptions): ConstantSourceNode; +}; + +/** + * An AudioNode that performs a Linear Convolution on a given AudioBuffer, often used to achieve a reverb effect. A ConvolverNode always has exactly one input and one output. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode) + */ +interface ConvolverNode extends AudioNode { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode/buffer) */ + buffer: AudioBuffer | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode/normalize) */ + normalize: boolean; +} + +declare var ConvolverNode: { + prototype: ConvolverNode; + new(context: BaseAudioContext, options?: ConvolverOptions): ConvolverNode; +}; + +/** + * This Streams API interface provides\xA0a built-in byte length queuing strategy that can be used when constructing streams. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy) + */ +interface CountQueuingStrategy extends QueuingStrategy { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/highWaterMark) */ + readonly highWaterMark: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/size) */ + readonly size: QueuingStrategySize; +} + +declare var CountQueuingStrategy: { + prototype: CountQueuingStrategy; + new(init: QueuingStrategyInit): CountQueuingStrategy; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential) + */ +interface Credential { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential/id) */ + readonly id: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential/type) */ + readonly type: string; +} + +declare var Credential: { + prototype: Credential; + new(): Credential; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer) + */ +interface CredentialsContainer { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/create) */ + create(options?: CredentialCreationOptions): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/get) */ + get(options?: CredentialRequestOptions): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/preventSilentAccess) */ + preventSilentAccess(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/store) */ + store(credential: Credential): Promise; +} + +declare var CredentialsContainer: { + prototype: CredentialsContainer; + new(): CredentialsContainer; +}; + +/** + * Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto) + */ +interface Crypto { + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/subtle) + */ + readonly subtle: SubtleCrypto; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues) */ + getRandomValues(array: T): T; + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/randomUUID) + */ + randomUUID(): \`\${string}-\${string}-\${string}-\${string}-\${string}\`; +} + +declare var Crypto: { + prototype: Crypto; + new(): Crypto; +}; + +/** + * The CryptoKey dictionary of the Web Crypto API represents a cryptographic key. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey) + */ +interface CryptoKey { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/algorithm) */ + readonly algorithm: KeyAlgorithm; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/extractable) */ + readonly extractable: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/type) */ + readonly type: KeyType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/usages) */ + readonly usages: KeyUsage[]; +} + +declare var CryptoKey: { + prototype: CryptoKey; + new(): CryptoKey; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry) */ +interface CustomElementRegistry { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/define) */ + define(name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/get) */ + get(name: string): CustomElementConstructor | undefined; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/getName) */ + getName(constructor: CustomElementConstructor): string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/upgrade) */ + upgrade(root: Node): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/whenDefined) */ + whenDefined(name: string): Promise; +} + +declare var CustomElementRegistry: { + prototype: CustomElementRegistry; + new(): CustomElementRegistry; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent) */ +interface CustomEvent extends Event { + /** + * Returns any custom data event was created with. Typically used for synthetic events. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/detail) + */ + readonly detail: T; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/initCustomEvent) + */ + initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void; +} + +declare var CustomEvent: { + prototype: CustomEvent; + new(type: string, eventInitDict?: CustomEventInit): CustomEvent; +}; + +/** + * An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException) + */ +interface DOMException extends Error { + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code) + */ + readonly code: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/message) */ + readonly message: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/name) */ + readonly name: string; + readonly INDEX_SIZE_ERR: 1; + readonly DOMSTRING_SIZE_ERR: 2; + readonly HIERARCHY_REQUEST_ERR: 3; + readonly WRONG_DOCUMENT_ERR: 4; + readonly INVALID_CHARACTER_ERR: 5; + readonly NO_DATA_ALLOWED_ERR: 6; + readonly NO_MODIFICATION_ALLOWED_ERR: 7; + readonly NOT_FOUND_ERR: 8; + readonly NOT_SUPPORTED_ERR: 9; + readonly INUSE_ATTRIBUTE_ERR: 10; + readonly INVALID_STATE_ERR: 11; + readonly SYNTAX_ERR: 12; + readonly INVALID_MODIFICATION_ERR: 13; + readonly NAMESPACE_ERR: 14; + readonly INVALID_ACCESS_ERR: 15; + readonly VALIDATION_ERR: 16; + readonly TYPE_MISMATCH_ERR: 17; + readonly SECURITY_ERR: 18; + readonly NETWORK_ERR: 19; + readonly ABORT_ERR: 20; + readonly URL_MISMATCH_ERR: 21; + readonly QUOTA_EXCEEDED_ERR: 22; + readonly TIMEOUT_ERR: 23; + readonly INVALID_NODE_TYPE_ERR: 24; + readonly DATA_CLONE_ERR: 25; +} + +declare var DOMException: { + prototype: DOMException; + new(message?: string, name?: string): DOMException; + readonly INDEX_SIZE_ERR: 1; + readonly DOMSTRING_SIZE_ERR: 2; + readonly HIERARCHY_REQUEST_ERR: 3; + readonly WRONG_DOCUMENT_ERR: 4; + readonly INVALID_CHARACTER_ERR: 5; + readonly NO_DATA_ALLOWED_ERR: 6; + readonly NO_MODIFICATION_ALLOWED_ERR: 7; + readonly NOT_FOUND_ERR: 8; + readonly NOT_SUPPORTED_ERR: 9; + readonly INUSE_ATTRIBUTE_ERR: 10; + readonly INVALID_STATE_ERR: 11; + readonly SYNTAX_ERR: 12; + readonly INVALID_MODIFICATION_ERR: 13; + readonly NAMESPACE_ERR: 14; + readonly INVALID_ACCESS_ERR: 15; + readonly VALIDATION_ERR: 16; + readonly TYPE_MISMATCH_ERR: 17; + readonly SECURITY_ERR: 18; + readonly NETWORK_ERR: 19; + readonly ABORT_ERR: 20; + readonly URL_MISMATCH_ERR: 21; + readonly QUOTA_EXCEEDED_ERR: 22; + readonly TIMEOUT_ERR: 23; + readonly INVALID_NODE_TYPE_ERR: 24; + readonly DATA_CLONE_ERR: 25; +}; + +/** + * An object providing methods which are not dependent on any particular document. Such an object is returned by the Document.implementation property. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation) + */ +interface DOMImplementation { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocument) */ + createDocument(namespace: string | null, qualifiedName: string | null, doctype?: DocumentType | null): XMLDocument; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocumentType) */ + createDocumentType(qualifiedName: string, publicId: string, systemId: string): DocumentType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createHTMLDocument) */ + createHTMLDocument(title?: string): Document; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/hasFeature) + */ + hasFeature(...args: any[]): true; +} + +declare var DOMImplementation: { + prototype: DOMImplementation; + new(): DOMImplementation; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix) */ +interface DOMMatrix extends DOMMatrixReadOnly { + a: number; + b: number; + c: number; + d: number; + e: number; + f: number; + m11: number; + m12: number; + m13: number; + m14: number; + m21: number; + m22: number; + m23: number; + m24: number; + m31: number; + m32: number; + m33: number; + m34: number; + m41: number; + m42: number; + m43: number; + m44: number; + invertSelf(): DOMMatrix; + multiplySelf(other?: DOMMatrixInit): DOMMatrix; + preMultiplySelf(other?: DOMMatrixInit): DOMMatrix; + rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix; + rotateFromVectorSelf(x?: number, y?: number): DOMMatrix; + rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scale3dSelf) */ + scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scaleSelf) */ + scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; + setMatrixValue(transformList: string): DOMMatrix; + skewXSelf(sx?: number): DOMMatrix; + skewYSelf(sy?: number): DOMMatrix; + translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix; +} + +declare var DOMMatrix: { + prototype: DOMMatrix; + new(init?: string | number[]): DOMMatrix; + fromFloat32Array(array32: Float32Array): DOMMatrix; + fromFloat64Array(array64: Float64Array): DOMMatrix; + fromMatrix(other?: DOMMatrixInit): DOMMatrix; +}; + +type SVGMatrix = DOMMatrix; +declare var SVGMatrix: typeof DOMMatrix; + +type WebKitCSSMatrix = DOMMatrix; +declare var WebKitCSSMatrix: typeof DOMMatrix; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly) */ +interface DOMMatrixReadOnly { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/a) */ + readonly a: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/b) */ + readonly b: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/c) */ + readonly c: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/d) */ + readonly d: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/e) */ + readonly e: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/f) */ + readonly f: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/is2D) */ + readonly is2D: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/isIdentity) */ + readonly isIdentity: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m11) */ + readonly m11: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m12) */ + readonly m12: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m13) */ + readonly m13: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m14) */ + readonly m14: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m21) */ + readonly m21: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m22) */ + readonly m22: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m23) */ + readonly m23: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m24) */ + readonly m24: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m31) */ + readonly m31: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m32) */ + readonly m32: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m33) */ + readonly m33: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m34) */ + readonly m34: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m41) */ + readonly m41: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m42) */ + readonly m42: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m43) */ + readonly m43: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m44) */ + readonly m44: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipX) */ + flipX(): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipY) */ + flipY(): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/inverse) */ + inverse(): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/multiply) */ + multiply(other?: DOMMatrixInit): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotate) */ + rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateAxisAngle) */ + rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateFromVector) */ + rotateFromVector(x?: number, y?: number): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale) */ + scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale3d) */ + scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scaleNonUniform) + */ + scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewX) */ + skewX(sx?: number): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewY) */ + skewY(sy?: number): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat32Array) */ + toFloat32Array(): Float32Array; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat64Array) */ + toFloat64Array(): Float64Array; + toJSON(): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/transformPoint) */ + transformPoint(point?: DOMPointInit): DOMPoint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/translate) */ + translate(tx?: number, ty?: number, tz?: number): DOMMatrix; + toString(): string; +} + +declare var DOMMatrixReadOnly: { + prototype: DOMMatrixReadOnly; + new(init?: string | number[]): DOMMatrixReadOnly; + fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly; + fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly; + fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly; +}; + +/** + * Provides the ability to parse XML or HTML source code from a string into a DOM Document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMParser) + */ +interface DOMParser { + /** + * Parses string using either the HTML or XML parser, according to type, and returns the resulting Document. type can be "text/html" (which will invoke the HTML parser), or any of "text/xml", "application/xml", "application/xhtml+xml", or "image/svg+xml" (which will invoke the XML parser). + * + * For the XML parser, if string cannot be parsed, then the returned Document will contain elements describing the resulting error. + * + * Note that script elements are not evaluated during parsing, and the resulting document's encoding will always be UTF-8. + * + * Values other than the above for type will cause a TypeError exception to be thrown. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMParser/parseFromString) + */ + parseFromString(string: string, type: DOMParserSupportedType): Document; +} + +declare var DOMParser: { + prototype: DOMParser; + new(): DOMParser; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint) */ +interface DOMPoint extends DOMPointReadOnly { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/w) */ + w: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/x) */ + x: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/y) */ + y: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/z) */ + z: number; +} + +declare var DOMPoint: { + prototype: DOMPoint; + new(x?: number, y?: number, z?: number, w?: number): DOMPoint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/fromPoint_static) */ + fromPoint(other?: DOMPointInit): DOMPoint; +}; + +type SVGPoint = DOMPoint; +declare var SVGPoint: typeof DOMPoint; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly) */ +interface DOMPointReadOnly { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/w) */ + readonly w: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/x) */ + readonly x: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */ + readonly y: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/z) */ + readonly z: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/matrixTransform) */ + matrixTransform(matrix?: DOMMatrixInit): DOMPoint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/toJSON) */ + toJSON(): any; +} + +declare var DOMPointReadOnly: { + prototype: DOMPointReadOnly; + new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/fromPoint_static) */ + fromPoint(other?: DOMPointInit): DOMPointReadOnly; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad) */ +interface DOMQuad { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p1) */ + readonly p1: DOMPoint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p2) */ + readonly p2: DOMPoint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p3) */ + readonly p3: DOMPoint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p4) */ + readonly p4: DOMPoint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/getBounds) */ + getBounds(): DOMRect; + toJSON(): any; +} + +declare var DOMQuad: { + prototype: DOMQuad; + new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad; + fromQuad(other?: DOMQuadInit): DOMQuad; + fromRect(other?: DOMRectInit): DOMQuad; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect) */ +interface DOMRect extends DOMRectReadOnly { + height: number; + width: number; + x: number; + y: number; +} + +declare var DOMRect: { + prototype: DOMRect; + new(x?: number, y?: number, width?: number, height?: number): DOMRect; + fromRect(other?: DOMRectInit): DOMRect; +}; + +type SVGRect = DOMRect; +declare var SVGRect: typeof DOMRect; + +interface DOMRectList { + readonly length: number; + item(index: number): DOMRect | null; + [index: number]: DOMRect; +} + +declare var DOMRectList: { + prototype: DOMRectList; + new(): DOMRectList; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly) */ +interface DOMRectReadOnly { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/bottom) */ + readonly bottom: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/height) */ + readonly height: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/left) */ + readonly left: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/right) */ + readonly right: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/top) */ + readonly top: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/width) */ + readonly width: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/x) */ + readonly x: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/y) */ + readonly y: number; + toJSON(): any; +} + +declare var DOMRectReadOnly: { + prototype: DOMRectReadOnly; + new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/fromRect_static) */ + fromRect(other?: DOMRectInit): DOMRectReadOnly; +}; + +/** + * A type returned by some APIs which contains a list of DOMString (strings). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList) + */ +interface DOMStringList { + /** + * Returns the number of strings in strings. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/length) + */ + readonly length: number; + /** + * Returns true if strings contains string, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/contains) + */ + contains(string: string): boolean; + /** + * Returns the string with index index from strings. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/item) + */ + item(index: number): string | null; + [index: number]: string; +} + +declare var DOMStringList: { + prototype: DOMStringList; + new(): DOMStringList; +}; + +/** + * Used by the dataset\xA0HTML\xA0attribute to represent data for custom attributes added to elements. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringMap) + */ +interface DOMStringMap { + [name: string]: string | undefined; +} + +declare var DOMStringMap: { + prototype: DOMStringMap; + new(): DOMStringMap; +}; + +/** + * A set of space-separated tokens. Such a set is returned by Element.classList, HTMLLinkElement.relList, HTMLAnchorElement.relList, HTMLAreaElement.relList, HTMLIframeElement.sandbox, or HTMLOutputElement.htmlFor. It is indexed beginning with 0 as with JavaScript Array objects. DOMTokenList is always case-sensitive. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList) + */ +interface DOMTokenList { + /** + * Returns the number of tokens. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/length) + */ + readonly length: number; + /** + * Returns the associated set as string. + * + * Can be set, to change the associated attribute. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/value) + */ + value: string; + toString(): string; + /** + * Adds all arguments passed, except those already present. + * + * Throws a "SyntaxError" DOMException if one of the arguments is the empty string. + * + * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/add) + */ + add(...tokens: string[]): void; + /** + * Returns true if token is present, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/contains) + */ + contains(token: string): boolean; + /** + * Returns the token with index index. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/item) + */ + item(index: number): string | null; + /** + * Removes arguments passed, if they are present. + * + * Throws a "SyntaxError" DOMException if one of the arguments is the empty string. + * + * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/remove) + */ + remove(...tokens: string[]): void; + /** + * Replaces token with newToken. + * + * Returns true if token was replaced with newToken, and false otherwise. + * + * Throws a "SyntaxError" DOMException if one of the arguments is the empty string. + * + * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/replace) + */ + replace(token: string, newToken: string): boolean; + /** + * Returns true if token is in the associated attribute's supported tokens. Returns false otherwise. + * + * Throws a TypeError if the associated attribute has no supported tokens defined. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/supports) + */ + supports(token: string): boolean; + /** + * If force is not given, "toggles" token, removing it if it's present and adding it if it's not present. If force is true, adds token (same as add()). If force is false, removes token (same as remove()). + * + * Returns true if token is now present, and false otherwise. + * + * Throws a "SyntaxError" DOMException if token is empty. + * + * Throws an "InvalidCharacterError" DOMException if token contains any spaces. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/toggle) + */ + toggle(token: string, force?: boolean): boolean; + forEach(callbackfn: (value: string, key: number, parent: DOMTokenList) => void, thisArg?: any): void; + [index: number]: string; +} + +declare var DOMTokenList: { + prototype: DOMTokenList; + new(): DOMTokenList; +}; + +/** + * Used to hold the data that is being dragged during a drag and drop operation. It may hold one or more data items, each of one or more data types. For more information about drag and drop, see HTML Drag and Drop API. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer) + */ +interface DataTransfer { + /** + * Returns the kind of operation that is currently selected. If the kind of operation isn't one of those that is allowed by the effectAllowed attribute, then the operation will fail. + * + * Can be set, to change the selected operation. + * + * The possible values are "none", "copy", "link", and "move". + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/dropEffect) + */ + dropEffect: "none" | "copy" | "link" | "move"; + /** + * Returns the kinds of operations that are to be allowed. + * + * Can be set (during the dragstart event), to change the allowed operations. + * + * The possible values are "none", "copy", "copyLink", "copyMove", "link", "linkMove", "move", "all", and "uninitialized", + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/effectAllowed) + */ + effectAllowed: "none" | "copy" | "copyLink" | "copyMove" | "link" | "linkMove" | "move" | "all" | "uninitialized"; + /** + * Returns a FileList of the files being dragged, if any. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/files) + */ + readonly files: FileList; + /** + * Returns a DataTransferItemList object, with the drag data. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/items) + */ + readonly items: DataTransferItemList; + /** + * Returns a frozen array listing the formats that were set in the dragstart event. In addition, if any files are being dragged, then one of the types will be the string "Files". + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/types) + */ + readonly types: ReadonlyArray; + /** + * Removes the data of the specified formats. Removes all data if the argument is omitted. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/clearData) + */ + clearData(format?: string): void; + /** + * Returns the specified data. If there is no such data, returns the empty string. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/getData) + */ + getData(format: string): string; + /** + * Adds the specified data. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/setData) + */ + setData(format: string, data: string): void; + /** + * Uses the given element to update the drag feedback, replacing any previously specified feedback. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/setDragImage) + */ + setDragImage(image: Element, x: number, y: number): void; +} + +declare var DataTransfer: { + prototype: DataTransfer; + new(): DataTransfer; +}; + +/** + * One drag data item. During a drag operation, each drag event has a dataTransfer property which contains a list of drag data items. Each item in the list is a DataTransferItem object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem) + */ +interface DataTransferItem { + /** + * Returns the drag data item kind, one of: "string", "file". + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/kind) + */ + readonly kind: string; + /** + * Returns the drag data item type string. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/type) + */ + readonly type: string; + /** + * Returns a File object, if the drag data item kind is File. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/getAsFile) + */ + getAsFile(): File | null; + /** + * Invokes the callback with the string data as the argument, if the drag data item kind is text. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/getAsString) + */ + getAsString(callback: FunctionStringCallback | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/webkitGetAsEntry) */ + webkitGetAsEntry(): FileSystemEntry | null; +} + +declare var DataTransferItem: { + prototype: DataTransferItem; + new(): DataTransferItem; +}; + +/** + * A list of DataTransferItem objects representing items being dragged. During a drag operation, each DragEvent has a dataTransfer property and that property is a DataTransferItemList. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList) + */ +interface DataTransferItemList { + /** + * Returns the number of items in the drag data store. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/length) + */ + readonly length: number; + /** + * Adds a new entry for the given data to the drag data store. If the data is plain text then a type string has to be provided also. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/add) + */ + add(data: string, type: string): DataTransferItem | null; + add(data: File): DataTransferItem | null; + /** + * Removes all the entries in the drag data store. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/clear) + */ + clear(): void; + /** + * Removes the indexth entry in the drag data store. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/remove) + */ + remove(index: number): void; + [index: number]: DataTransferItem; +} + +declare var DataTransferItemList: { + prototype: DataTransferItemList; + new(): DataTransferItemList; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream) */ +interface DecompressionStream extends GenericTransformStream { +} + +declare var DecompressionStream: { + prototype: DecompressionStream; + new(format: CompressionFormat): DecompressionStream; +}; + +/** + * A delay-line; an AudioNode audio-processing module that causes a delay between the arrival of an input data and its propagation to the output. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DelayNode) + */ +interface DelayNode extends AudioNode { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DelayNode/delayTime) */ + readonly delayTime: AudioParam; +} + +declare var DelayNode: { + prototype: DelayNode; + new(context: BaseAudioContext, options?: DelayOptions): DelayNode; +}; + +/** + * The DeviceMotionEvent provides web developers with information about the speed of changes for the device's position and orientation. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent) + */ +interface DeviceMotionEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/acceleration) */ + readonly acceleration: DeviceMotionEventAcceleration | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/accelerationIncludingGravity) */ + readonly accelerationIncludingGravity: DeviceMotionEventAcceleration | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/interval) */ + readonly interval: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/rotationRate) */ + readonly rotationRate: DeviceMotionEventRotationRate | null; +} + +declare var DeviceMotionEvent: { + prototype: DeviceMotionEvent; + new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration) + */ +interface DeviceMotionEventAcceleration { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/x) */ + readonly x: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/y) */ + readonly y: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/z) */ + readonly z: number | null; +} + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate) + */ +interface DeviceMotionEventRotationRate { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/alpha) */ + readonly alpha: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/beta) */ + readonly beta: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/gamma) */ + readonly gamma: number | null; +} + +/** + * The DeviceOrientationEvent provides web developers with information from the physical orientation of the device running the web page. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent) + */ +interface DeviceOrientationEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/absolute) */ + readonly absolute: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/alpha) */ + readonly alpha: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/beta) */ + readonly beta: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/gamma) */ + readonly gamma: number | null; +} + +declare var DeviceOrientationEvent: { + prototype: DeviceOrientationEvent; + new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent; +}; + +interface DocumentEventMap extends GlobalEventHandlersEventMap { + "DOMContentLoaded": Event; + "fullscreenchange": Event; + "fullscreenerror": Event; + "pointerlockchange": Event; + "pointerlockerror": Event; + "readystatechange": Event; + "visibilitychange": Event; +} + +/** + * Any web page loaded in the browser and serves as an entry point into the web page's content, which is the DOM tree. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document) + */ +interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEventHandlers, NonElementParentNode, ParentNode, XPathEvaluatorBase { + /** + * Sets or gets the URL for the current document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/URL) + */ + readonly URL: string; + /** + * Sets or gets the color of all active links in the document. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/alinkColor) + */ + alinkColor: string; + /** + * Returns a reference to the collection of elements contained by the object. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/all) + */ + readonly all: HTMLAllCollection; + /** + * Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/anchors) + */ + readonly anchors: HTMLCollectionOf; + /** + * Retrieves a collection of all applet objects in the document. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/applets) + */ + readonly applets: HTMLCollection; + /** + * Deprecated. Sets or retrieves a value that indicates the background color behind the object. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/bgColor) + */ + bgColor: string; + /** + * Specifies the beginning and end of the document body. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/body) + */ + body: HTMLElement; + /** + * Returns document's encoding. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet) + */ + readonly characterSet: string; + /** + * Gets or sets the character set used to encode the object. + * @deprecated This is a legacy alias of \`characterSet\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet) + */ + readonly charset: string; + /** + * Gets a value that indicates whether standards-compliant mode is switched on for the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/compatMode) + */ + readonly compatMode: string; + /** + * Returns document's content type. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/contentType) + */ + readonly contentType: string; + /** + * Returns the HTTP cookies that apply to the Document. If there are no cookies or cookies can't be applied to this resource, the empty string will be returned. + * + * Can be set, to add a new cookie to the element's set of HTTP cookies. + * + * If the contents are sandboxed into a unique origin (e.g. in an iframe with the sandbox attribute), a "SecurityError" DOMException will be thrown on getting and setting. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/cookie) + */ + cookie: string; + /** + * Returns the script element, or the SVG script element, that is currently executing, as long as the element represents a classic script. In the case of reentrant script execution, returns the one that most recently started executing amongst those that have not yet finished executing. + * + * Returns null if the Document is not currently executing a script or SVG script element (e.g., because the running script is an event handler, or a timeout), or if the currently executing script or SVG script element represents a module script. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/currentScript) + */ + readonly currentScript: HTMLOrSVGScriptElement | null; + /** + * Returns the Window object of the active document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/defaultView) + */ + readonly defaultView: (WindowProxy & typeof globalThis) | null; + /** + * Sets or gets a value that indicates whether the document can be edited. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/designMode) + */ + designMode: string; + /** + * Sets or retrieves a value that indicates the reading order of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/dir) + */ + dir: string; + /** + * Gets an object representing the document type declaration associated with the current document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/doctype) + */ + readonly doctype: DocumentType | null; + /** + * Gets a reference to the root node of the document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/documentElement) + */ + readonly documentElement: HTMLElement; + /** + * Returns document's URL. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/documentURI) + */ + readonly documentURI: string; + /** + * Sets or gets the security domain of the document. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/domain) + */ + domain: string; + /** + * Retrieves a collection of all embed objects in the document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/embeds) + */ + readonly embeds: HTMLCollectionOf; + /** + * Sets or gets the foreground (text) color of the document. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fgColor) + */ + fgColor: string; + /** + * Retrieves a collection, in source order, of all form objects in the document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/forms) + */ + readonly forms: HTMLCollectionOf; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreen) + */ + readonly fullscreen: boolean; + /** + * Returns true if document has the ability to display elements fullscreen and fullscreen is supported, or false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenEnabled) + */ + readonly fullscreenEnabled: boolean; + /** + * Returns the head element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/head) + */ + readonly head: HTMLHeadElement; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hidden) */ + readonly hidden: boolean; + /** + * Retrieves a collection, in source order, of img objects in the document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/images) + */ + readonly images: HTMLCollectionOf; + /** + * Gets the implementation object of the current document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/implementation) + */ + readonly implementation: DOMImplementation; + /** + * Returns the character encoding used to create the webpage that is loaded into the document object. + * @deprecated This is a legacy alias of \`characterSet\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet) + */ + readonly inputEncoding: string; + /** + * Gets the date that the page was last modified, if the page supplies one. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/lastModified) + */ + readonly lastModified: string; + /** + * Sets or gets the color of the document links. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/linkColor) + */ + linkColor: string; + /** + * Retrieves a collection of all a objects that specify the href property and all area objects in the document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/links) + */ + readonly links: HTMLCollectionOf; + /** + * Contains information about the current URL. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/location) + */ + get location(): Location; + set location(href: string | Location); + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenchange_event) */ + onfullscreenchange: ((this: Document, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenerror_event) */ + onfullscreenerror: ((this: Document, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pointerlockchange_event) */ + onpointerlockchange: ((this: Document, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pointerlockerror_event) */ + onpointerlockerror: ((this: Document, ev: Event) => any) | null; + /** + * Fires when the state of the object has changed. + * @param ev The event + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/readystatechange_event) + */ + onreadystatechange: ((this: Document, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/visibilitychange_event) */ + onvisibilitychange: ((this: Document, ev: Event) => any) | null; + readonly ownerDocument: null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pictureInPictureEnabled) */ + readonly pictureInPictureEnabled: boolean; + /** + * Return an HTMLCollection of the embed elements in the Document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/plugins) + */ + readonly plugins: HTMLCollectionOf; + /** + * Retrieves a value that indicates the current state of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/readyState) + */ + readonly readyState: DocumentReadyState; + /** + * Gets the URL of the location that referred the user to the current page. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/referrer) + */ + readonly referrer: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/rootElement) + */ + readonly rootElement: SVGSVGElement | null; + /** + * Retrieves a collection of all script objects in the document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scripts) + */ + readonly scripts: HTMLCollectionOf; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scrollingElement) */ + readonly scrollingElement: Element | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/timeline) */ + readonly timeline: DocumentTimeline; + /** + * Contains the title of the document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/title) + */ + title: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/visibilityState) */ + readonly visibilityState: DocumentVisibilityState; + /** + * Sets or gets the color of the links that the user has visited. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/vlinkColor) + */ + vlinkColor: string; + /** + * Moves node from another document and returns it. + * + * If node is a document, throws a "NotSupportedError" DOMException or, if node is a shadow root, throws a "HierarchyRequestError" DOMException. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/adoptNode) + */ + adoptNode(node: T): T; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/captureEvents) + */ + captureEvents(): void; + /** @deprecated */ + caretRangeFromPoint(x: number, y: number): Range | null; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/clear) + */ + clear(): void; + /** + * Closes an output stream and forces the sent data to display. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/close) + */ + close(): void; + /** + * Creates an attribute object with a specified name. + * @param name String that sets the attribute object's name. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttribute) + */ + createAttribute(localName: string): Attr; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttributeNS) */ + createAttributeNS(namespace: string | null, qualifiedName: string): Attr; + /** + * Returns a CDATASection node whose data is data. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createCDATASection) + */ + createCDATASection(data: string): CDATASection; + /** + * Creates a comment object with the specified data. + * @param data Sets the comment object's data. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createComment) + */ + createComment(data: string): Comment; + /** + * Creates a new document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createDocumentFragment) + */ + createDocumentFragment(): DocumentFragment; + /** + * Creates an instance of the element for the specified tag. + * @param tagName The name of an element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElement) + */ + createElement(tagName: K, options?: ElementCreationOptions): HTMLElementTagNameMap[K]; + /** @deprecated */ + createElement(tagName: K, options?: ElementCreationOptions): HTMLElementDeprecatedTagNameMap[K]; + createElement(tagName: string, options?: ElementCreationOptions): HTMLElement; + /** + * Returns an element with namespace namespace. Its namespace prefix will be everything before ":" (U+003E) in qualifiedName or null. Its local name will be everything after ":" (U+003E) in qualifiedName or qualifiedName. + * + * If localName does not match the Name production an "InvalidCharacterError" DOMException will be thrown. + * + * If one of the following conditions is true a "NamespaceError" DOMException will be thrown: + * + * localName does not match the QName production. + * Namespace prefix is not null and namespace is the empty string. + * Namespace prefix is "xml" and namespace is not the XML namespace. + * qualifiedName or namespace prefix is "xmlns" and namespace is not the XMLNS namespace. + * namespace is the XMLNS namespace and neither qualifiedName nor namespace prefix is "xmlns". + * + * When supplied, options's is can be used to create a customized built-in element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElementNS) + */ + createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: string): HTMLElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: K): SVGElementTagNameMap[K]; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement; + createElementNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", qualifiedName: K): MathMLElementTagNameMap[K]; + createElementNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", qualifiedName: string): MathMLElement; + createElementNS(namespaceURI: string | null, qualifiedName: string, options?: ElementCreationOptions): Element; + createElementNS(namespace: string | null, qualifiedName: string, options?: string | ElementCreationOptions): Element; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createEvent) */ + createEvent(eventInterface: "AnimationEvent"): AnimationEvent; + createEvent(eventInterface: "AnimationPlaybackEvent"): AnimationPlaybackEvent; + createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent; + createEvent(eventInterface: "BeforeUnloadEvent"): BeforeUnloadEvent; + createEvent(eventInterface: "BlobEvent"): BlobEvent; + createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent; + createEvent(eventInterface: "CloseEvent"): CloseEvent; + createEvent(eventInterface: "CompositionEvent"): CompositionEvent; + createEvent(eventInterface: "CustomEvent"): CustomEvent; + createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent; + createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent; + createEvent(eventInterface: "DragEvent"): DragEvent; + createEvent(eventInterface: "ErrorEvent"): ErrorEvent; + createEvent(eventInterface: "Event"): Event; + createEvent(eventInterface: "Events"): Event; + createEvent(eventInterface: "FocusEvent"): FocusEvent; + createEvent(eventInterface: "FontFaceSetLoadEvent"): FontFaceSetLoadEvent; + createEvent(eventInterface: "FormDataEvent"): FormDataEvent; + createEvent(eventInterface: "GamepadEvent"): GamepadEvent; + createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent; + createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent; + createEvent(eventInterface: "InputEvent"): InputEvent; + createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent; + createEvent(eventInterface: "MIDIConnectionEvent"): MIDIConnectionEvent; + createEvent(eventInterface: "MIDIMessageEvent"): MIDIMessageEvent; + createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent; + createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent; + createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent; + createEvent(eventInterface: "MediaStreamTrackEvent"): MediaStreamTrackEvent; + createEvent(eventInterface: "MessageEvent"): MessageEvent; + createEvent(eventInterface: "MouseEvent"): MouseEvent; + createEvent(eventInterface: "MouseEvents"): MouseEvent; + createEvent(eventInterface: "MutationEvent"): MutationEvent; + createEvent(eventInterface: "MutationEvents"): MutationEvent; + createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent; + createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent; + createEvent(eventInterface: "PaymentMethodChangeEvent"): PaymentMethodChangeEvent; + createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent; + createEvent(eventInterface: "PictureInPictureEvent"): PictureInPictureEvent; + createEvent(eventInterface: "PointerEvent"): PointerEvent; + createEvent(eventInterface: "PopStateEvent"): PopStateEvent; + createEvent(eventInterface: "ProgressEvent"): ProgressEvent; + createEvent(eventInterface: "PromiseRejectionEvent"): PromiseRejectionEvent; + createEvent(eventInterface: "RTCDTMFToneChangeEvent"): RTCDTMFToneChangeEvent; + createEvent(eventInterface: "RTCDataChannelEvent"): RTCDataChannelEvent; + createEvent(eventInterface: "RTCErrorEvent"): RTCErrorEvent; + createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent; + createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent; + createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent; + createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent; + createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent; + createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent; + createEvent(eventInterface: "StorageEvent"): StorageEvent; + createEvent(eventInterface: "SubmitEvent"): SubmitEvent; + createEvent(eventInterface: "ToggleEvent"): ToggleEvent; + createEvent(eventInterface: "TouchEvent"): TouchEvent; + createEvent(eventInterface: "TrackEvent"): TrackEvent; + createEvent(eventInterface: "TransitionEvent"): TransitionEvent; + createEvent(eventInterface: "UIEvent"): UIEvent; + createEvent(eventInterface: "UIEvents"): UIEvent; + createEvent(eventInterface: "WebGLContextEvent"): WebGLContextEvent; + createEvent(eventInterface: "WheelEvent"): WheelEvent; + createEvent(eventInterface: string): Event; + /** + * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document. + * @param root The root element or node to start traversing on. + * @param whatToShow The type of nodes or elements to appear in the node list + * @param filter A custom NodeFilter function to use. For more information, see filter. Use null for no filter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createNodeIterator) + */ + createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter | null): NodeIterator; + /** + * Returns a ProcessingInstruction node whose target is target and data is data. If target does not match the Name production an "InvalidCharacterError" DOMException will be thrown. If data contains "?>" an "InvalidCharacterError" DOMException will be thrown. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createProcessingInstruction) + */ + createProcessingInstruction(target: string, data: string): ProcessingInstruction; + /** + * Returns an empty range object that has both of its boundary points positioned at the beginning of the document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createRange) + */ + createRange(): Range; + /** + * Creates a text string from the specified value. + * @param data String that specifies the nodeValue property of the text node. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createTextNode) + */ + createTextNode(data: string): Text; + /** + * Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document. + * @param root The root element or node to start traversing on. + * @param whatToShow The type of nodes or elements to appear in the node list. For more information, see whatToShow. + * @param filter A custom NodeFilter function to use. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createTreeWalker) + */ + createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter | null): TreeWalker; + /** + * Executes a command on the current document, current selection, or the given range. + * @param commandId String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script. + * @param showUI Display the user interface, defaults to false. + * @param value Value to assign. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/execCommand) + */ + execCommand(commandId: string, showUI?: boolean, value?: string): boolean; + /** + * Stops document's fullscreen element from being displayed fullscreen and resolves promise when done. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitFullscreen) + */ + exitFullscreen(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitPictureInPicture) */ + exitPictureInPicture(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitPointerLock) */ + exitPointerLock(): void; + /** + * Returns a reference to the first object with the specified value of the ID attribute. + * @param elementId String that specifies the ID value. + */ + getElementById(elementId: string): HTMLElement | null; + /** + * Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByClassName) + */ + getElementsByClassName(classNames: string): HTMLCollectionOf; + /** + * Gets a collection of objects based on the value of the NAME or ID attribute. + * @param elementName Gets a collection of objects based on the value of the NAME or ID attribute. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByName) + */ + getElementsByName(elementName: string): NodeListOf; + /** + * Retrieves a collection of objects based on the specified element name. + * @param name Specifies the name of an element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByTagName) + */ + getElementsByTagName(qualifiedName: K): HTMLCollectionOf; + getElementsByTagName(qualifiedName: K): HTMLCollectionOf; + getElementsByTagName(qualifiedName: K): HTMLCollectionOf; + /** @deprecated */ + getElementsByTagName(qualifiedName: K): HTMLCollectionOf; + getElementsByTagName(qualifiedName: string): HTMLCollectionOf; + /** + * If namespace and localName are "*" returns a HTMLCollection of all descendant elements. + * + * If only namespace is "*" returns a HTMLCollection of all descendant elements whose local name is localName. + * + * If only localName is "*" returns a HTMLCollection of all descendant elements whose namespace is namespace. + * + * Otherwise, returns a HTMLCollection of all descendant elements whose namespace is namespace and local name is localName. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByTagNameNS) + */ + getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf; + getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf; + getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf; + getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf; + /** + * Returns an object representing the current selection of the document that is loaded into the object displaying a webpage. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getSelection) + */ + getSelection(): Selection | null; + /** + * Gets a value indicating whether the object currently has focus. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hasFocus) + */ + hasFocus(): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hasStorageAccess) */ + hasStorageAccess(): Promise; + /** + * Returns a copy of node. If deep is true, the copy also includes the node's descendants. + * + * If node is a document or a shadow root, throws a "NotSupportedError" DOMException. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/importNode) + */ + importNode(node: T, deep?: boolean): T; + /** + * Opens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the write method and the writeln method. + * @param url Specifies a MIME type for the document. + * @param name Specifies the name of the window. This name is used as the value for the TARGET attribute on a form or an anchor element. + * @param features Contains a list of items separated by commas. Each item consists of an option and a value, separated by an equals sign (for example, "fullscreen=yes, toolbar=yes"). The following values are supported. + * @param replace Specifies whether the existing entry for the document is replaced in the history list. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/open) + */ + open(unused1?: string, unused2?: string): Document; + open(url: string | URL, name: string, features: string): WindowProxy | null; + /** + * Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document. + * @param commandId Specifies a command identifier. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandEnabled) + */ + queryCommandEnabled(commandId: string): boolean; + /** + * Returns a Boolean value that indicates whether the specified command is in the indeterminate state. + * @param commandId String that specifies a command identifier. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandIndeterm) + */ + queryCommandIndeterm(commandId: string): boolean; + /** + * Returns a Boolean value that indicates the current state of the command. + * @param commandId String that specifies a command identifier. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandState) + */ + queryCommandState(commandId: string): boolean; + /** + * Returns a Boolean value that indicates whether the current command is supported on the current range. + * @param commandId Specifies a command identifier. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandSupported) + */ + queryCommandSupported(commandId: string): boolean; + /** + * Returns the current value of the document, range, or current selection for the given command. + * @param commandId String that specifies a command identifier. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandValue) + */ + queryCommandValue(commandId: string): string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/releaseEvents) + */ + releaseEvents(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/requestStorageAccess) */ + requestStorageAccess(): Promise; + /** + * Writes one or more HTML expressions to a document in the specified window. + * @param content Specifies the text and HTML tags to write. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/write) + */ + write(...text: string[]): void; + /** + * Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window. + * @param content The text and HTML tags to write. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/writeln) + */ + writeln(...text: string[]): void; + addEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var Document: { + prototype: Document; + new(): Document; +}; + +/** + * A minimal document object that has no parent. It is used as a lightweight version of Document that stores a segment of a document structure comprised of nodes just like a standard document. The key difference is that because the document fragment isn't part of the active document tree structure, changes made to the fragment don't affect the document, cause reflow, or incur any performance impact that can occur when changes are made. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentFragment) + */ +interface DocumentFragment extends Node, NonElementParentNode, ParentNode { + readonly ownerDocument: Document; + getElementById(elementId: string): HTMLElement | null; +} + +declare var DocumentFragment: { + prototype: DocumentFragment; + new(): DocumentFragment; +}; + +interface DocumentOrShadowRoot { + /** + * Returns the deepest element in the document through which or to which key events are being routed. This is, roughly speaking, the focused element in the document. + * + * For the purposes of this API, when a child browsing context is focused, its container is focused in the parent browsing context. For example, if the user moves the focus to a text control in an iframe, the iframe is the element returned by the activeElement API in the iframe's node document. + * + * Similarly, when the focused element is in a different node tree than documentOrShadowRoot, the element returned will be the host that's located in the same node tree as documentOrShadowRoot if documentOrShadowRoot is a shadow-including inclusive ancestor of the focused element, and null if not. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/activeElement) + */ + readonly activeElement: Element | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/adoptedStyleSheets) */ + adoptedStyleSheets: CSSStyleSheet[]; + /** + * Returns document's fullscreen element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenElement) + */ + readonly fullscreenElement: Element | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pictureInPictureElement) */ + readonly pictureInPictureElement: Element | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pointerLockElement) */ + readonly pointerLockElement: Element | null; + /** + * Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/styleSheets) + */ + readonly styleSheets: StyleSheetList; + /** + * Returns the element for the specified x coordinate and the specified y coordinate. + * @param x The x-offset + * @param y The y-offset + */ + elementFromPoint(x: number, y: number): Element | null; + elementsFromPoint(x: number, y: number): Element[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getAnimations) */ + getAnimations(): Animation[]; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentTimeline) */ +interface DocumentTimeline extends AnimationTimeline { +} + +declare var DocumentTimeline: { + prototype: DocumentTimeline; + new(options?: DocumentTimelineOptions): DocumentTimeline; +}; + +/** + * A Node containing a doctype. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType) + */ +interface DocumentType extends Node, ChildNode { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/name) */ + readonly name: string; + readonly ownerDocument: Document; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/publicId) */ + readonly publicId: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/systemId) */ + readonly systemId: string; +} + +declare var DocumentType: { + prototype: DocumentType; + new(): DocumentType; +}; + +/** + * A DOM event that represents a drag and drop interaction. The user initiates a drag by placing a pointer device (such as a mouse) on the touch surface and then dragging the pointer to a new location (such as another DOM element). Applications are free to interpret a drag and drop interaction in an application-specific way. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DragEvent) + */ +interface DragEvent extends MouseEvent { + /** + * Returns the DataTransfer object for the event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DragEvent/dataTransfer) + */ + readonly dataTransfer: DataTransfer | null; +} + +declare var DragEvent: { + prototype: DragEvent; + new(type: string, eventInitDict?: DragEventInit): DragEvent; +}; + +/** + * Inherits properties from its parent, AudioNode. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode) + */ +interface DynamicsCompressorNode extends AudioNode { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/attack) */ + readonly attack: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/knee) */ + readonly knee: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/ratio) */ + readonly ratio: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/reduction) */ + readonly reduction: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/release) */ + readonly release: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/threshold) */ + readonly threshold: AudioParam; +} + +declare var DynamicsCompressorNode: { + prototype: DynamicsCompressorNode; + new(context: BaseAudioContext, options?: DynamicsCompressorOptions): DynamicsCompressorNode; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_blend_minmax) */ +interface EXT_blend_minmax { + readonly MIN_EXT: 0x8007; + readonly MAX_EXT: 0x8008; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_float) */ +interface EXT_color_buffer_float { +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_half_float) */ +interface EXT_color_buffer_half_float { + readonly RGBA16F_EXT: 0x881A; + readonly RGB16F_EXT: 0x881B; + readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211; + readonly UNSIGNED_NORMALIZED_EXT: 0x8C17; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_float_blend) */ +interface EXT_float_blend { +} + +/** + * The EXT_frag_depth extension is part of the WebGL API and enables to set a depth value of a fragment from within the fragment shader. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_frag_depth) + */ +interface EXT_frag_depth { +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_sRGB) */ +interface EXT_sRGB { + readonly SRGB_EXT: 0x8C40; + readonly SRGB_ALPHA_EXT: 0x8C42; + readonly SRGB8_ALPHA8_EXT: 0x8C43; + readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: 0x8210; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_shader_texture_lod) */ +interface EXT_shader_texture_lod { +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_compression_bptc) */ +interface EXT_texture_compression_bptc { + readonly COMPRESSED_RGBA_BPTC_UNORM_EXT: 0x8E8C; + readonly COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT: 0x8E8D; + readonly COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT: 0x8E8E; + readonly COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT: 0x8E8F; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_compression_rgtc) */ +interface EXT_texture_compression_rgtc { + readonly COMPRESSED_RED_RGTC1_EXT: 0x8DBB; + readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: 0x8DBC; + readonly COMPRESSED_RED_GREEN_RGTC2_EXT: 0x8DBD; + readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: 0x8DBE; +} + +/** + * The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_filter_anisotropic) + */ +interface EXT_texture_filter_anisotropic { + readonly TEXTURE_MAX_ANISOTROPY_EXT: 0x84FE; + readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: 0x84FF; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_norm16) */ +interface EXT_texture_norm16 { + readonly R16_EXT: 0x822A; + readonly RG16_EXT: 0x822C; + readonly RGB16_EXT: 0x8054; + readonly RGBA16_EXT: 0x805B; + readonly R16_SNORM_EXT: 0x8F98; + readonly RG16_SNORM_EXT: 0x8F99; + readonly RGB16_SNORM_EXT: 0x8F9A; + readonly RGBA16_SNORM_EXT: 0x8F9B; +} + +interface ElementEventMap { + "fullscreenchange": Event; + "fullscreenerror": Event; +} + +/** + * Element is the most general base class from which all objects in a Document inherit. It only has methods and properties common to all kinds of elements. More specific classes inherit from Element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element) + */ +interface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, NonDocumentTypeChildNode, ParentNode, Slottable { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/attributes) */ + readonly attributes: NamedNodeMap; + /** + * Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/classList) + */ + readonly classList: DOMTokenList; + /** + * Returns the value of element's class content attribute. Can be set to change it. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/className) + */ + className: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientHeight) */ + readonly clientHeight: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientLeft) */ + readonly clientLeft: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientTop) */ + readonly clientTop: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientWidth) */ + readonly clientWidth: number; + /** + * Returns the value of element's id content attribute. Can be set to change it. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/id) + */ + id: string; + /** + * Returns the local name. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/localName) + */ + readonly localName: string; + /** + * Returns the namespace. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/namespaceURI) + */ + readonly namespaceURI: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/fullscreenchange_event) */ + onfullscreenchange: ((this: Element, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/fullscreenerror_event) */ + onfullscreenerror: ((this: Element, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/outerHTML) */ + outerHTML: string; + readonly ownerDocument: Document; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/part) */ + readonly part: DOMTokenList; + /** + * Returns the namespace prefix. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/prefix) + */ + readonly prefix: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollHeight) */ + readonly scrollHeight: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollLeft) */ + scrollLeft: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTop) */ + scrollTop: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollWidth) */ + readonly scrollWidth: number; + /** + * Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/shadowRoot) + */ + readonly shadowRoot: ShadowRoot | null; + /** + * Returns the value of element's slot content attribute. Can be set to change it. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/slot) + */ + slot: string; + /** + * Returns the HTML-uppercased qualified name. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/tagName) + */ + readonly tagName: string; + /** + * Creates a shadow root for element and returns it. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/attachShadow) + */ + attachShadow(init: ShadowRootInit): ShadowRoot; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/checkVisibility) */ + checkVisibility(options?: CheckVisibilityOptions): boolean; + /** + * Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/closest) + */ + closest(selector: K): HTMLElementTagNameMap[K] | null; + closest(selector: K): SVGElementTagNameMap[K] | null; + closest(selector: K): MathMLElementTagNameMap[K] | null; + closest(selectors: string): E | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/computedStyleMap) */ + computedStyleMap(): StylePropertyMapReadOnly; + /** + * Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttribute) + */ + getAttribute(qualifiedName: string): string | null; + /** + * Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNS) + */ + getAttributeNS(namespace: string | null, localName: string): string | null; + /** + * Returns the qualified names of all element's attributes. Can contain duplicates. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNames) + */ + getAttributeNames(): string[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNode) */ + getAttributeNode(qualifiedName: string): Attr | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNodeNS) */ + getAttributeNodeNS(namespace: string | null, localName: string): Attr | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getBoundingClientRect) */ + getBoundingClientRect(): DOMRect; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getClientRects) */ + getClientRects(): DOMRectList; + /** + * Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByClassName) + */ + getElementsByClassName(classNames: string): HTMLCollectionOf; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagName) */ + getElementsByTagName(qualifiedName: K): HTMLCollectionOf; + getElementsByTagName(qualifiedName: K): HTMLCollectionOf; + getElementsByTagName(qualifiedName: K): HTMLCollectionOf; + /** @deprecated */ + getElementsByTagName(qualifiedName: K): HTMLCollectionOf; + getElementsByTagName(qualifiedName: string): HTMLCollectionOf; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagNameNS) */ + getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf; + getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf; + getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf; + getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf; + /** + * Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttribute) + */ + hasAttribute(qualifiedName: string): boolean; + /** + * Returns true if element has an attribute whose namespace is namespace and local name is localName. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttributeNS) + */ + hasAttributeNS(namespace: string | null, localName: string): boolean; + /** + * Returns true if element has attributes, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttributes) + */ + hasAttributes(): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasPointerCapture) */ + hasPointerCapture(pointerId: number): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentElement) */ + insertAdjacentElement(where: InsertPosition, element: Element): Element | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentHTML) */ + insertAdjacentHTML(position: InsertPosition, text: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentText) */ + insertAdjacentText(where: InsertPosition, data: string): void; + /** + * Returns true if matching selectors against element's root yields element, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/matches) + */ + matches(selectors: string): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/releasePointerCapture) */ + releasePointerCapture(pointerId: number): void; + /** + * Removes element's first attribute whose qualified name is qualifiedName. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttribute) + */ + removeAttribute(qualifiedName: string): void; + /** + * Removes element's attribute whose namespace is namespace and local name is localName. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNS) + */ + removeAttributeNS(namespace: string | null, localName: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNode) */ + removeAttributeNode(attr: Attr): Attr; + /** + * Displays element fullscreen and resolves promise when done. + * + * When supplied, options's navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to "show", navigation simplicity is preferred over screen space, and if set to "hide", more screen space is preferred. User agents are always free to honor user preference over the application's. The default value "auto" indicates no application preference. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/requestFullscreen) + */ + requestFullscreen(options?: FullscreenOptions): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/requestPointerLock) */ + requestPointerLock(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scroll) */ + scroll(options?: ScrollToOptions): void; + scroll(x: number, y: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollBy) */ + scrollBy(options?: ScrollToOptions): void; + scrollBy(x: number, y: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView) */ + scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTo) */ + scrollTo(options?: ScrollToOptions): void; + scrollTo(x: number, y: number): void; + /** + * Sets the value of element's first attribute whose qualified name is qualifiedName to value. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttribute) + */ + setAttribute(qualifiedName: string, value: string): void; + /** + * Sets the value of element's attribute whose namespace is namespace and local name is localName to value. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNS) + */ + setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNode) */ + setAttributeNode(attr: Attr): Attr | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNodeNS) */ + setAttributeNodeNS(attr: Attr): Attr | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setPointerCapture) */ + setPointerCapture(pointerId: number): void; + /** + * If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName. + * + * Returns true if qualifiedName is now present, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/toggleAttribute) + */ + toggleAttribute(qualifiedName: string, force?: boolean): boolean; + /** + * @deprecated This is a legacy alias of \`matches\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/matches) + */ + webkitMatchesSelector(selectors: string): boolean; + addEventListener(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var Element: { + prototype: Element; + new(): Element; +}; + +interface ElementCSSInlineStyle { + readonly attributeStyleMap: StylePropertyMap; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/style) */ + readonly style: CSSStyleDeclaration; +} + +interface ElementContentEditable { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/contentEditable) */ + contentEditable: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/enterKeyHint) */ + enterKeyHint: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/inputMode) */ + inputMode: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/isContentEditable) */ + readonly isContentEditable: boolean; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals) */ +interface ElementInternals extends ARIAMixin { + /** + * Returns the form owner of internals's target element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/form) + */ + readonly form: HTMLFormElement | null; + /** + * Returns a NodeList of all the label elements that internals's target element is associated with. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/labels) + */ + readonly labels: NodeList; + /** + * Returns the ShadowRoot for internals's target element, if the target element is a shadow host, or null otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/shadowRoot) + */ + readonly shadowRoot: ShadowRoot | null; + /** + * Returns the error message that would be shown to the user if internals's target element was to be checked for validity. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/validationMessage) + */ + readonly validationMessage: string; + /** + * Returns the ValidityState object for internals's target element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/validity) + */ + readonly validity: ValidityState; + /** + * Returns true if internals's target element will be validated when the form is submitted; false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/willValidate) + */ + readonly willValidate: boolean; + /** + * Returns true if internals's target element has no validity problems; false otherwise. Fires an invalid event at the element in the latter case. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/checkValidity) + */ + checkValidity(): boolean; + /** + * Returns true if internals's target element has no validity problems; otherwise, returns false, fires an invalid event at the element, and (if the event isn't canceled) reports the problem to the user. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/reportValidity) + */ + reportValidity(): boolean; + /** + * Sets both the state and submission value of internals's target element to value. + * + * If value is null, the element won't participate in form submission. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/setFormValue) + */ + setFormValue(value: File | string | FormData | null, state?: File | string | FormData | null): void; + /** + * Marks internals's target element as suffering from the constraints indicated by the flags argument, and sets the element's validation message to message. If anchor is specified, the user agent might use it to indicate problems with the constraints of internals's target element when the form owner is validated interactively or reportValidity() is called. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/setValidity) + */ + setValidity(flags?: ValidityStateFlags, message?: string, anchor?: HTMLElement): void; +} + +declare var ElementInternals: { + prototype: ElementInternals; + new(): ElementInternals; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk) */ +interface EncodedVideoChunk { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/byteLength) */ + readonly byteLength: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/duration) */ + readonly duration: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/timestamp) */ + readonly timestamp: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/type) */ + readonly type: EncodedVideoChunkType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/copyTo) */ + copyTo(destination: AllowSharedBufferSource): void; +} + +declare var EncodedVideoChunk: { + prototype: EncodedVideoChunk; + new(init: EncodedVideoChunkInit): EncodedVideoChunk; +}; + +/** + * Events providing information related to errors in scripts or in files. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent) + */ +interface ErrorEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/colno) */ + readonly colno: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/error) */ + readonly error: any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/filename) */ + readonly filename: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/lineno) */ + readonly lineno: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/message) */ + readonly message: string; +} + +declare var ErrorEvent: { + prototype: ErrorEvent; + new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent; +}; + +/** + * An event which takes place in the DOM. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event) + */ +interface Event { + /** + * Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/bubbles) + */ + readonly bubbles: boolean; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelBubble) + */ + cancelBubble: boolean; + /** + * Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelable) + */ + readonly cancelable: boolean; + /** + * Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composed) + */ + readonly composed: boolean; + /** + * Returns the object whose event listener's callback is currently being invoked. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/currentTarget) + */ + readonly currentTarget: EventTarget | null; + /** + * Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/defaultPrevented) + */ + readonly defaultPrevented: boolean; + /** + * Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/eventPhase) + */ + readonly eventPhase: number; + /** + * Returns true if event was dispatched by the user agent, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) + */ + readonly isTrusted: boolean; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/returnValue) + */ + returnValue: boolean; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/srcElement) + */ + readonly srcElement: EventTarget | null; + /** + * Returns the object to which event is dispatched (its target). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/target) + */ + readonly target: EventTarget | null; + /** + * Returns the event's timestamp as the number of milliseconds measured relative to the time origin. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/timeStamp) + */ + readonly timeStamp: DOMHighResTimeStamp; + /** + * Returns the type of event, e.g. "click", "hashchange", or "submit". + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/type) + */ + readonly type: string; + /** + * Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composedPath) + */ + composedPath(): EventTarget[]; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/initEvent) + */ + initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void; + /** + * If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/preventDefault) + */ + preventDefault(): void; + /** + * Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopImmediatePropagation) + */ + stopImmediatePropagation(): void; + /** + * When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopPropagation) + */ + stopPropagation(): void; + readonly NONE: 0; + readonly CAPTURING_PHASE: 1; + readonly AT_TARGET: 2; + readonly BUBBLING_PHASE: 3; +} + +declare var Event: { + prototype: Event; + new(type: string, eventInitDict?: EventInit): Event; + readonly NONE: 0; + readonly CAPTURING_PHASE: 1; + readonly AT_TARGET: 2; + readonly BUBBLING_PHASE: 3; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventCounts) */ +interface EventCounts { + forEach(callbackfn: (value: number, key: string, parent: EventCounts) => void, thisArg?: any): void; +} + +declare var EventCounts: { + prototype: EventCounts; + new(): EventCounts; +}; + +interface EventListener { + (evt: Event): void; +} + +interface EventListenerObject { + handleEvent(object: Event): void; +} + +interface EventSourceEventMap { + "error": Event; + "message": MessageEvent; + "open": Event; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource) */ +interface EventSource extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/error_event) */ + onerror: ((this: EventSource, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/message_event) */ + onmessage: ((this: EventSource, ev: MessageEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/open_event) */ + onopen: ((this: EventSource, ev: Event) => any) | null; + /** + * Returns the state of this EventSource object's connection. It can have the values described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/readyState) + */ + readonly readyState: number; + /** + * Returns the URL providing the event stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/url) + */ + readonly url: string; + /** + * Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/withCredentials) + */ + readonly withCredentials: boolean; + /** + * Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/close) + */ + close(): void; + readonly CONNECTING: 0; + readonly OPEN: 1; + readonly CLOSED: 2; + addEventListener(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var EventSource: { + prototype: EventSource; + new(url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource; + readonly CONNECTING: 0; + readonly OPEN: 1; + readonly CLOSED: 2; +}; + +/** + * EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget) + */ +interface EventTarget { + /** + * Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. + * + * The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. + * + * When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. + * + * When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in \xA7 2.8 Observing event listeners. + * + * When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. + * + * If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. + * + * The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) + */ + addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void; + /** + * Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent) + */ + dispatchEvent(event: Event): boolean; + /** + * Removes the event listener in target's event listener list with the same type, callback, and options. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) + */ + removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void; +} + +declare var EventTarget: { + prototype: EventTarget; + new(): EventTarget; +}; + +/** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/External) + */ +interface External { + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/External/AddSearchProvider) + */ + AddSearchProvider(): void; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/External/IsSearchProviderInstalled) + */ + IsSearchProviderInstalled(): void; +} + +/** @deprecated */ +declare var External: { + prototype: External; + new(): External; +}; + +/** + * Provides information about files and allows JavaScript in a web page to access their content. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/File) + */ +interface File extends Blob { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified) */ + readonly lastModified: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name) */ + readonly name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/webkitRelativePath) */ + readonly webkitRelativePath: string; +} + +declare var File: { + prototype: File; + new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File; +}; + +/** + * An object of this type is returned by the files property of the HTML element; this lets you access the list of files selected with the element. It's also used for a list of files dropped into web content when using the drag and drop API; see the DataTransfer object for details on this usage. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList) + */ +interface FileList { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/length) */ + readonly length: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/item) */ + item(index: number): File | null; + [index: number]: File; +} + +declare var FileList: { + prototype: FileList; + new(): FileList; +}; + +interface FileReaderEventMap { + "abort": ProgressEvent; + "error": ProgressEvent; + "load": ProgressEvent; + "loadend": ProgressEvent; + "loadstart": ProgressEvent; + "progress": ProgressEvent; +} + +/** + * Lets web applications asynchronously read the contents of files (or raw data buffers) stored on the user's computer, using File or Blob objects to specify the file or data to read. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader) + */ +interface FileReader extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/error) */ + readonly error: DOMException | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort_event) */ + onabort: ((this: FileReader, ev: ProgressEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/error_event) */ + onerror: ((this: FileReader, ev: ProgressEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/load_event) */ + onload: ((this: FileReader, ev: ProgressEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadend_event) */ + onloadend: ((this: FileReader, ev: ProgressEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadstart_event) */ + onloadstart: ((this: FileReader, ev: ProgressEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/progress_event) */ + onprogress: ((this: FileReader, ev: ProgressEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readyState) */ + readonly readyState: typeof FileReader.EMPTY | typeof FileReader.LOADING | typeof FileReader.DONE; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/result) */ + readonly result: string | ArrayBuffer | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort) */ + abort(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsArrayBuffer) */ + readAsArrayBuffer(blob: Blob): void; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsBinaryString) + */ + readAsBinaryString(blob: Blob): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsDataURL) */ + readAsDataURL(blob: Blob): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsText) */ + readAsText(blob: Blob, encoding?: string): void; + readonly EMPTY: 0; + readonly LOADING: 1; + readonly DONE: 2; + addEventListener(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var FileReader: { + prototype: FileReader; + new(): FileReader; + readonly EMPTY: 0; + readonly LOADING: 1; + readonly DONE: 2; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem) */ +interface FileSystem { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem/name) */ + readonly name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem/root) */ + readonly root: FileSystemDirectoryEntry; +} + +declare var FileSystem: { + prototype: FileSystem; + new(): FileSystem; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry) */ +interface FileSystemDirectoryEntry extends FileSystemEntry { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/createReader) */ + createReader(): FileSystemDirectoryReader; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/getDirectory) */ + getDirectory(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/getFile) */ + getFile(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void; +} + +declare var FileSystemDirectoryEntry: { + prototype: FileSystemDirectoryEntry; + new(): FileSystemDirectoryEntry; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle) + */ +interface FileSystemDirectoryHandle extends FileSystemHandle { + readonly kind: "directory"; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getDirectoryHandle) */ + getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getFileHandle) */ + getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/removeEntry) */ + removeEntry(name: string, options?: FileSystemRemoveOptions): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/resolve) */ + resolve(possibleDescendant: FileSystemHandle): Promise; +} + +declare var FileSystemDirectoryHandle: { + prototype: FileSystemDirectoryHandle; + new(): FileSystemDirectoryHandle; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryReader) */ +interface FileSystemDirectoryReader { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryReader/readEntries) */ + readEntries(successCallback: FileSystemEntriesCallback, errorCallback?: ErrorCallback): void; +} + +declare var FileSystemDirectoryReader: { + prototype: FileSystemDirectoryReader; + new(): FileSystemDirectoryReader; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry) */ +interface FileSystemEntry { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/filesystem) */ + readonly filesystem: FileSystem; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/fullPath) */ + readonly fullPath: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/isDirectory) */ + readonly isDirectory: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/isFile) */ + readonly isFile: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/name) */ + readonly name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/getParent) */ + getParent(successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void; +} + +declare var FileSystemEntry: { + prototype: FileSystemEntry; + new(): FileSystemEntry; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileEntry) */ +interface FileSystemFileEntry extends FileSystemEntry { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileEntry/file) */ + file(successCallback: FileCallback, errorCallback?: ErrorCallback): void; +} + +declare var FileSystemFileEntry: { + prototype: FileSystemFileEntry; + new(): FileSystemFileEntry; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle) + */ +interface FileSystemFileHandle extends FileSystemHandle { + readonly kind: "file"; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/createWritable) */ + createWritable(options?: FileSystemCreateWritableOptions): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/getFile) */ + getFile(): Promise; +} + +declare var FileSystemFileHandle: { + prototype: FileSystemFileHandle; + new(): FileSystemFileHandle; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle) + */ +interface FileSystemHandle { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/kind) */ + readonly kind: FileSystemHandleKind; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/name) */ + readonly name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/isSameEntry) */ + isSameEntry(other: FileSystemHandle): Promise; +} + +declare var FileSystemHandle: { + prototype: FileSystemHandle; + new(): FileSystemHandle; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream) + */ +interface FileSystemWritableFileStream extends WritableStream { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/seek) */ + seek(position: number): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/truncate) */ + truncate(size: number): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/write) */ + write(data: FileSystemWriteChunkType): Promise; +} + +declare var FileSystemWritableFileStream: { + prototype: FileSystemWritableFileStream; + new(): FileSystemWritableFileStream; +}; + +/** + * Focus-related events like focus, blur, focusin, or focusout. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FocusEvent) + */ +interface FocusEvent extends UIEvent { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FocusEvent/relatedTarget) */ + readonly relatedTarget: EventTarget | null; +} + +declare var FocusEvent: { + prototype: FocusEvent; + new(type: string, eventInitDict?: FocusEventInit): FocusEvent; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace) */ +interface FontFace { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/ascentOverride) */ + ascentOverride: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/descentOverride) */ + descentOverride: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/display) */ + display: FontDisplay; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/family) */ + family: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/featureSettings) */ + featureSettings: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/lineGapOverride) */ + lineGapOverride: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/loaded) */ + readonly loaded: Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/status) */ + readonly status: FontFaceLoadStatus; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/stretch) */ + stretch: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/style) */ + style: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange) */ + unicodeRange: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/weight) */ + weight: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/load) */ + load(): Promise; +} + +declare var FontFace: { + prototype: FontFace; + new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace; +}; + +interface FontFaceSetEventMap { + "loading": Event; + "loadingdone": Event; + "loadingerror": Event; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet) */ +interface FontFaceSet extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loading_event) */ + onloading: ((this: FontFaceSet, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingdone_event) */ + onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingerror_event) */ + onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/ready) */ + readonly ready: Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/status) */ + readonly status: FontFaceSetLoadStatus; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/check) */ + check(font: string, text?: string): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/load) */ + load(font: string, text?: string): Promise; + forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void; + addEventListener(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var FontFaceSet: { + prototype: FontFaceSet; + new(initialFaces: FontFace[]): FontFaceSet; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent) */ +interface FontFaceSetLoadEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent/fontfaces) */ + readonly fontfaces: ReadonlyArray; +} + +declare var FontFaceSetLoadEvent: { + prototype: FontFaceSetLoadEvent; + new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent; +}; + +interface FontFaceSource { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fonts) */ + readonly fonts: FontFaceSet; +} + +/** + * Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to "multipart/form-data". + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData) + */ +interface FormData { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/append) */ + append(name: string, value: string | Blob): void; + append(name: string, value: string): void; + append(name: string, blobValue: Blob, filename?: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/delete) */ + delete(name: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/get) */ + get(name: string): FormDataEntryValue | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/getAll) */ + getAll(name: string): FormDataEntryValue[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/has) */ + has(name: string): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/set) */ + set(name: string, value: string | Blob): void; + set(name: string, value: string): void; + set(name: string, blobValue: Blob, filename?: string): void; + forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void; +} + +declare var FormData: { + prototype: FormData; + new(form?: HTMLFormElement, submitter?: HTMLElement | null): FormData; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormDataEvent) */ +interface FormDataEvent extends Event { + /** + * Returns a FormData object representing names and values of elements associated to the target form. Operations on the FormData object will affect form data to be submitted. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormDataEvent/formData) + */ + readonly formData: FormData; +} + +declare var FormDataEvent: { + prototype: FormDataEvent; + new(type: string, eventInitDict: FormDataEventInit): FormDataEvent; +}; + +/** + * A change in volume. It is an AudioNode audio-processing module that causes a given gain to be applied to the input data before its propagation to the output. A GainNode always has exactly one input and one output, both with the same number of channels. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GainNode) + */ +interface GainNode extends AudioNode { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GainNode/gain) */ + readonly gain: AudioParam; +} + +declare var GainNode: { + prototype: GainNode; + new(context: BaseAudioContext, options?: GainOptions): GainNode; +}; + +/** + * This Gamepad API interface defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad) + */ +interface Gamepad { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/axes) */ + readonly axes: ReadonlyArray; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/buttons) */ + readonly buttons: ReadonlyArray; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/connected) */ + readonly connected: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/id) */ + readonly id: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/index) */ + readonly index: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/mapping) */ + readonly mapping: GamepadMappingType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/timestamp) */ + readonly timestamp: DOMHighResTimeStamp; + readonly vibrationActuator: GamepadHapticActuator | null; +} + +declare var Gamepad: { + prototype: Gamepad; + new(): Gamepad; +}; + +/** + * An individual button of a gamepad or other controller, allowing access to the current state of different types of buttons available on the control device. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton) + */ +interface GamepadButton { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/pressed) */ + readonly pressed: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/touched) */ + readonly touched: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/value) */ + readonly value: number; +} + +declare var GamepadButton: { + prototype: GamepadButton; + new(): GamepadButton; +}; + +/** + * This Gamepad API interface contains references to gamepads connected to the system, which is what the gamepad events Window.gamepadconnected and Window.gamepaddisconnected are fired in response to. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadEvent) + */ +interface GamepadEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadEvent/gamepad) */ + readonly gamepad: Gamepad; +} + +declare var GamepadEvent: { + prototype: GamepadEvent; + new(type: string, eventInitDict: GamepadEventInit): GamepadEvent; +}; + +/** + * This Gamepad API interface represents hardware in the controller designed to provide haptic feedback to the user (if available), most commonly vibration hardware. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator) + */ +interface GamepadHapticActuator { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator/type) */ + readonly type: GamepadHapticActuatorType; + playEffect(type: GamepadHapticEffectType, params?: GamepadEffectParameters): Promise; + reset(): Promise; +} + +declare var GamepadHapticActuator: { + prototype: GamepadHapticActuator; + new(): GamepadHapticActuator; +}; + +interface GenericTransformStream { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */ + readonly readable: ReadableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/writable) */ + readonly writable: WritableStream; +} + +/** + * An object able to programmatically obtain the position of the device. It gives Web content access to the location of the device. This allows a Web site or app to offer customized results based on the user's location. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation) + */ +interface Geolocation { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/clearWatch) */ + clearWatch(watchId: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/getCurrentPosition) */ + getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/watchPosition) */ + watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): number; +} + +declare var Geolocation: { + prototype: Geolocation; + new(): Geolocation; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates) + */ +interface GeolocationCoordinates { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/accuracy) */ + readonly accuracy: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/altitude) */ + readonly altitude: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/altitudeAccuracy) */ + readonly altitudeAccuracy: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/heading) */ + readonly heading: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/latitude) */ + readonly latitude: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/longitude) */ + readonly longitude: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/speed) */ + readonly speed: number | null; +} + +declare var GeolocationCoordinates: { + prototype: GeolocationCoordinates; + new(): GeolocationCoordinates; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition) + */ +interface GeolocationPosition { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/coords) */ + readonly coords: GeolocationCoordinates; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/timestamp) */ + readonly timestamp: EpochTimeStamp; +} + +declare var GeolocationPosition: { + prototype: GeolocationPosition; + new(): GeolocationPosition; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError) */ +interface GeolocationPositionError { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError/code) */ + readonly code: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError/message) */ + readonly message: string; + readonly PERMISSION_DENIED: 1; + readonly POSITION_UNAVAILABLE: 2; + readonly TIMEOUT: 3; +} + +declare var GeolocationPositionError: { + prototype: GeolocationPositionError; + new(): GeolocationPositionError; + readonly PERMISSION_DENIED: 1; + readonly POSITION_UNAVAILABLE: 2; + readonly TIMEOUT: 3; +}; + +interface GlobalEventHandlersEventMap { + "abort": UIEvent; + "animationcancel": AnimationEvent; + "animationend": AnimationEvent; + "animationiteration": AnimationEvent; + "animationstart": AnimationEvent; + "auxclick": MouseEvent; + "beforeinput": InputEvent; + "beforetoggle": Event; + "blur": FocusEvent; + "cancel": Event; + "canplay": Event; + "canplaythrough": Event; + "change": Event; + "click": MouseEvent; + "close": Event; + "compositionend": CompositionEvent; + "compositionstart": CompositionEvent; + "compositionupdate": CompositionEvent; + "contextmenu": MouseEvent; + "copy": ClipboardEvent; + "cuechange": Event; + "cut": ClipboardEvent; + "dblclick": MouseEvent; + "drag": DragEvent; + "dragend": DragEvent; + "dragenter": DragEvent; + "dragleave": DragEvent; + "dragover": DragEvent; + "dragstart": DragEvent; + "drop": DragEvent; + "durationchange": Event; + "emptied": Event; + "ended": Event; + "error": ErrorEvent; + "focus": FocusEvent; + "focusin": FocusEvent; + "focusout": FocusEvent; + "formdata": FormDataEvent; + "gotpointercapture": PointerEvent; + "input": Event; + "invalid": Event; + "keydown": KeyboardEvent; + "keypress": KeyboardEvent; + "keyup": KeyboardEvent; + "load": Event; + "loadeddata": Event; + "loadedmetadata": Event; + "loadstart": Event; + "lostpointercapture": PointerEvent; + "mousedown": MouseEvent; + "mouseenter": MouseEvent; + "mouseleave": MouseEvent; + "mousemove": MouseEvent; + "mouseout": MouseEvent; + "mouseover": MouseEvent; + "mouseup": MouseEvent; + "paste": ClipboardEvent; + "pause": Event; + "play": Event; + "playing": Event; + "pointercancel": PointerEvent; + "pointerdown": PointerEvent; + "pointerenter": PointerEvent; + "pointerleave": PointerEvent; + "pointermove": PointerEvent; + "pointerout": PointerEvent; + "pointerover": PointerEvent; + "pointerup": PointerEvent; + "progress": ProgressEvent; + "ratechange": Event; + "reset": Event; + "resize": UIEvent; + "scroll": Event; + "scrollend": Event; + "securitypolicyviolation": SecurityPolicyViolationEvent; + "seeked": Event; + "seeking": Event; + "select": Event; + "selectionchange": Event; + "selectstart": Event; + "slotchange": Event; + "stalled": Event; + "submit": SubmitEvent; + "suspend": Event; + "timeupdate": Event; + "toggle": Event; + "touchcancel": TouchEvent; + "touchend": TouchEvent; + "touchmove": TouchEvent; + "touchstart": TouchEvent; + "transitioncancel": TransitionEvent; + "transitionend": TransitionEvent; + "transitionrun": TransitionEvent; + "transitionstart": TransitionEvent; + "volumechange": Event; + "waiting": Event; + "webkitanimationend": Event; + "webkitanimationiteration": Event; + "webkitanimationstart": Event; + "webkittransitionend": Event; + "wheel": WheelEvent; +} + +interface GlobalEventHandlers { + /** + * Fires when the user aborts the download. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/abort_event) + */ + onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationcancel_event) */ + onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event) */ + onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event) */ + onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event) */ + onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/auxclick_event) */ + onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/beforeinput_event) */ + onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/beforetoggle_event) */ + onbeforetoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Fires when the object loses the input focus. + * @param ev The focus event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/blur_event) + */ + onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/cancel_event) */ + oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Occurs when playback is possible, but would require further buffering. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplay_event) + */ + oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplaythrough_event) */ + oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Fires when the contents of the object or selection have changed. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/change_event) + */ + onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Fires when the user clicks the left mouse button on the object + * @param ev The mouse event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/click_event) + */ + onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */ + onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Fires when the user clicks the right mouse button in the client area, opening the context menu. + * @param ev The mouse event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event) + */ + oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/copy_event) */ + oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/cuechange_event) */ + oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/cut_event) */ + oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null; + /** + * Fires when the user double-clicks the object. + * @param ev The mouse event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/dblclick_event) + */ + ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; + /** + * Fires on the source object continuously during a drag operation. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drag_event) + */ + ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; + /** + * Fires on the source object when the user releases the mouse at the close of a drag operation. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragend_event) + */ + ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; + /** + * Fires on the target element when the user drags the object to a valid drop target. + * @param ev The drag event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragenter_event) + */ + ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; + /** + * Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation. + * @param ev The drag event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragleave_event) + */ + ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; + /** + * Fires on the target element continuously while the user drags the object over a valid drop target. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragover_event) + */ + ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; + /** + * Fires on the source object when the user starts to drag a text selection or selected object. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragstart_event) + */ + ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drop_event) */ + ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; + /** + * Occurs when the duration attribute is updated. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/durationchange_event) + */ + ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Occurs when the media element is reset to its initial state. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/emptied_event) + */ + onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Occurs when the end of playback is reached. + * @param ev The event + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended_event) + */ + onended: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Fires when an error occurs during object loading. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/error_event) + */ + onerror: OnErrorEventHandler; + /** + * Fires when the object receives focus. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/focus_event) + */ + onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/formdata_event) */ + onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/gotpointercapture_event) */ + ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/input_event) */ + oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/invalid_event) */ + oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Fires when the user presses a key. + * @param ev The keyboard event + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keydown_event) + */ + onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null; + /** + * Fires when the user presses an alphanumeric key. + * @param ev The event. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keypress_event) + */ + onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null; + /** + * Fires when the user releases a key. + * @param ev The keyboard event + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keyup_event) + */ + onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null; + /** + * Fires immediately after the browser loads the object. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGElement/load_event) + */ + onload: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Occurs when media data is loaded at the current playback position. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadeddata_event) + */ + onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Occurs when the duration and dimensions of the media have been determined. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadedmetadata_event) + */ + onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Occurs when Internet Explorer begins looking for media data. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadstart_event) + */ + onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/lostpointercapture_event) */ + onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; + /** + * Fires when the user clicks the object with either mouse button. + * @param ev The mouse event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousedown_event) + */ + onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseenter_event) */ + onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseleave_event) */ + onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; + /** + * Fires when the user moves the mouse over the object. + * @param ev The mouse event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousemove_event) + */ + onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; + /** + * Fires when the user moves the mouse pointer outside the boundaries of the object. + * @param ev The mouse event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseout_event) + */ + onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; + /** + * Fires when the user moves the mouse pointer into the object. + * @param ev The mouse event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseover_event) + */ + onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; + /** + * Fires when the user releases a mouse button while the mouse is over the object. + * @param ev The mouse event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseup_event) + */ + onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/paste_event) */ + onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null; + /** + * Occurs when playback is paused. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/pause_event) + */ + onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Occurs when the play method is requested. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/play_event) + */ + onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Occurs when the audio or video has started playing. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/playing_event) + */ + onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointercancel_event) */ + onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerdown_event) */ + onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerenter_event) */ + onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerleave_event) */ + onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointermove_event) */ + onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerout_event) */ + onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerover_event) */ + onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerup_event) */ + onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; + /** + * Occurs to indicate progress while downloading media data. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/progress_event) + */ + onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null; + /** + * Occurs when the playback rate is increased or decreased. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ratechange_event) + */ + onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Fires when the user resets a form. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reset_event) + */ + onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/resize_event) */ + onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null; + /** + * Fires when the user repositions the scroll box in the scroll bar on the object. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scroll_event) + */ + onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scrollend_event) */ + onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/securitypolicyviolation_event) */ + onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null; + /** + * Occurs when the seek operation ends. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeked_event) + */ + onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Occurs when the current playback position is moved. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeking_event) + */ + onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Fires when the current selection changes. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/select_event) + */ + onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/selectionchange_event) */ + onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/selectstart_event) */ + onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/slotchange_event) */ + onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Occurs when the download has stopped. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/stalled_event) + */ + onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/submit_event) */ + onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null; + /** + * Occurs if the load operation has been intentionally halted. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/suspend_event) + */ + onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Occurs to indicate the current playback position. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/timeupdate_event) + */ + ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/toggle_event) */ + ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchcancel_event) */ + ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchend_event) */ + ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchmove_event) */ + ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchstart_event) */ + ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitioncancel_event) */ + ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event) */ + ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionrun_event) */ + ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionstart_event) */ + ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; + /** + * Occurs when the volume is changed, or playback is muted or unmuted. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/volumechange_event) + */ + onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Occurs when playback stops because the next frame of a video resource is not available. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/waiting_event) + */ + onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * @deprecated This is a legacy alias of \`onanimationend\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event) + */ + onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * @deprecated This is a legacy alias of \`onanimationiteration\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event) + */ + onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * @deprecated This is a legacy alias of \`onanimationstart\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event) + */ + onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * @deprecated This is a legacy alias of \`ontransitionend\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event) + */ + onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/wheel_event) */ + onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null; + addEventListener(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection) */ +interface HTMLAllCollection { + /** + * Returns the number of elements in the collection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/length) + */ + readonly length: number; + /** + * Returns the item with index index from the collection (determined by tree order). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/item) + */ + item(nameOrIndex?: string): HTMLCollection | Element | null; + /** + * Returns the item with ID or name name from the collection. + * + * If there are multiple matching items, then an HTMLCollection object containing all those elements is returned. + * + * Only button, form, iframe, input, map, meta, object, select, and textarea elements can have a name for the purpose of this method; their name is given by the value of their name attribute. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/namedItem) + */ + namedItem(name: string): HTMLCollection | Element | null; + [index: number]: Element; +} + +declare var HTMLAllCollection: { + prototype: HTMLAllCollection; + new(): HTMLAllCollection; +}; + +/** + * Hyperlink elements and provides special properties and methods (beyond those of the regular HTMLElement object interface that they inherit from) for manipulating the layout and presentation of such elements. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement) + */ +interface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils { + /** + * Sets or retrieves the character set used to encode the object. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/charset) + */ + charset: string; + /** + * Sets or retrieves the coordinates of the object. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/coords) + */ + coords: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/download) */ + download: string; + /** + * Sets or retrieves the language code of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/hreflang) + */ + hreflang: string; + /** + * Sets or retrieves the shape of the object. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/name) + */ + name: string; + ping: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/referrerPolicy) */ + referrerPolicy: string; + /** + * Sets or retrieves the relationship between the object and the destination of the link. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/rel) + */ + rel: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/relList) */ + readonly relList: DOMTokenList; + /** + * Sets or retrieves the relationship between the object and the destination of the link. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/rev) + */ + rev: string; + /** + * Sets or retrieves the shape of the object. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/shape) + */ + shape: string; + /** + * Sets or retrieves the window or frame at which to target content. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/target) + */ + target: string; + /** + * Retrieves or sets the text of the object as a string. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/text) + */ + text: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/type) */ + type: string; + addEventListener(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLAnchorElement: { + prototype: HTMLAnchorElement; + new(): HTMLAnchorElement; +}; + +/** + * Provides special properties and methods (beyond those of the regular object HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of elements. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement) + */ +interface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils { + /** + * Sets or retrieves a text alternative to the graphic. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/alt) + */ + alt: string; + /** + * Sets or retrieves the coordinates of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/coords) + */ + coords: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/download) */ + download: string; + /** + * Sets or gets whether clicks in this region cause action. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/noHref) + */ + noHref: boolean; + ping: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/referrerPolicy) */ + referrerPolicy: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/rel) */ + rel: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/relList) */ + readonly relList: DOMTokenList; + /** + * Sets or retrieves the shape of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/shape) + */ + shape: string; + /** + * Sets or retrieves the window or frame at which to target content. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/target) + */ + target: string; + addEventListener(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLAreaElement: { + prototype: HTMLAreaElement; + new(): HTMLAreaElement; +}; + +/** + * Provides access to the properties of